From: Vito Macchia Date: Thu, 5 Nov 2020 14:25:33 +0000 (+0100) Subject: Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0... X-Git-Url: http://repos.xcallymotion.com/base/%22./banner.jpg//%22?a=commitdiff_plain;h=57801b9df9dfde9a4dcccf15f771ffbb287af0db;p=motion-next.git Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0-alpha --- diff --git a/apidoc/api_project.js b/apidoc/api_project.js index 5ddc7e2..6a5792a 100644 --- a/apidoc/api_project.js +++ b/apidoc/api_project.js @@ -17,7 +17,7 @@ define({ "apidoc": "0.3.0", "generator": { "name": "apidoc", - "time": "2020-11-04T18:00:21.372Z", + "time": "2020-11-05T14:21:07.009Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/apidoc/api_project.json b/apidoc/api_project.json index 4f7460e..f12f778 100644 --- a/apidoc/api_project.json +++ b/apidoc/api_project.json @@ -17,7 +17,7 @@ "apidoc": "0.3.0", "generator": { "name": "apidoc", - "time": "2020-11-04T18:00:21.372Z", + "time": "2020-11-05T14:21:07.009Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/public/18-4967bb0e47bf9114dedd.js b/public/18-4967bb0e47bf9114dedd.js index c03886a..f7fe0c5 100644 --- a/public/18-4967bb0e47bf9114dedd.js +++ b/public/18-4967bb0e47bf9114dedd.js @@ -1 +1 @@ -var a2_0x39f9=['getEventPath','_erasNarrowRegex','mdp-time-picker','\x22\x20height=\x22','[*_]{2}.+?[*_]{2}','goat','#9900FF','$ctrl.helper','clockHours','ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ','rgb(0,\x20214,\x20214)','getPart','createNew','thumbsdown','cronMonthName','zipWith','ALPHA','md-truncate','material.components.bottomSheet','2.1.2','observe','focusOnOpen','00000000','abstract\x20as\x20async\x20await\x20become\x20box\x20break\x20const\x20continue\x20crate\x20do\x20dyn\x20else\x20enum\x20extern\x20false\x20final\x20fn\x20for\x20if\x20impl\x20in\x20let\x20loop\x20macro\x20match\x20mod\x20move\x20mut\x20override\x20priv\x20pub\x20ref\x20return\x20self\x20Self\x20static\x20struct\x20super\x20trait\x20true\x20try\x20type\x20typeof\x20unsafe\x20unsized\x20use\x20virtual\x20where\x20while\x20yield','=?max','self','point','floorid:%s\x20mstrm:%s','supports','[!-~]','%d\x20iyyirn','HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ','(,|\x5cn|\x5c))','gridster','md-dense','[včera\x20v]\x20LT','\x5c(quote\x20','invalidateLayout','YYYY\x20MMMM\x20D,\x20a\x20h:mm','calculateSlideToOrigin','hex3','$view','#455a64','You\x20must\x20provide\x20an\x20element\x20to\x20the\x20update-scroll\x20function','ngSortableVersion',']\x20*/\x0a','conversion','trackBy','ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.','transitionInClass','aliases','bliain','.md-fab-toolbar','toasty-theme-','iso','%d\x20oeren','ein\x20Tag','via','#29b6f6','animating','NG_DEFAULT_TEMPLATE_URL','chartLine','raised_hand','.gridster-no-drag','mdColorAlphaChannel',':%s','white_square_button','toISOString','rule','jldoctest','getPointsAtEvent','Content-Type:\x20application/sdp\x0d\x0a','intersectionWith','define\x20undef\x20ifdef\x20ifndef\x20else\x20endif\x20include','inputKeydown','\x20யாமம்','rpc\x20returns','(/?):','displayResolution','%[qQwWx]?<','force\x20new\x20connection','#b9f6ca','[Jutro\x20o]\x20LT','\x5cb(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\x5cd]+[\x5cd_]+[\x5cd]+|[\x5cd]+)(\x5c.([\x5cd]+[\x5cd_]+[\x5cd]+|[\x5cd]+))?|\x5c.([\x5cd]+[\x5cd_]+[\x5cd]+|[\x5cd]+))([eE][-+]?\x5cd+)?)[lLfF]?','?^ngModel','loadFailureHandler','Missing\x20parameter:\x20','prevBufferLen','Deprecation\x20warning:\x20','$drop','','preventManipulation','#ccff90','%d\x20maanden','return\x20throw\x20case','dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi','scaleLabel','pullMode','januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december','md-tabs-wrapper','import\x20as\x20exposing','(max-width:\x20599px)','onAuthenticated','[minulé]\x20dddd\x20[v]\x20LT','removeModelChangeListener','createTransport','outbound','[gelecek]\x20dddd\x20[saat]\x20LT','Title','lightness','endIndex','ig_al_ar_az_og_ol_lr','noTransition','^1\x5c.\x5c.(\x5cd+)$','година','#6d4c41','EIO','step21','use\x20moment.updateLocale(localeName,\x20config)\x20to\x20change\x20an\x20existing\x20locale.\x20moment.defineLocale(localeName,\x20config)\x20should\x20only\x20be\x20used\x20for\x20creating\x20a\x20new\x20locale\x20See\x20http://momentjs.com/guides/#/warnings/define-locale/\x20for\x20more\x20info.','popupDelay','keys','$$lowercase','JSON_CALLBACK','contentExp','propEq','Бир\x20неча\x20%s\x20олдин','indexOf','Duplicate\x20parameter\x20name\x20\x27','sekundami','$asArray','Duration','','TRANSFORM_ORIGIN','_getSelectedOptions','IF\x20DO\x20WHILE\x20ENDWHILE\x20CALL\x20ENDIF\x20SUB\x20ENDSUB\x20GOTO\x20REPEAT\x20ENDREPEAT\x20EQ\x20LT\x20GT\x20NE\x20GE\x20LE\x20OR\x20XOR','getFullYear','addResizeListener',',\x20reason:\x20','kbd','isHorizontal','content-type','nekaj\x20sekundami','extendWith','$validators','[a-zA-Z_][\x5cw.]*(=(?!>))?|[-+*/%](?!>)','mdShrinkSpeedFactor','जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर','mwFormConfirmationPageBuilder','preparationClasses','[พรุ่งนี้\x20เวลา]\x20LT','[ve\x20čtvrtek\x20v]\x20LT','[Namuhla\x20nga]\x20LT','init_incoming','#3300CC','write','requests','[రేపు]\x20LT','new_moon','$mdMenu:\x20Menu\x20elements\x20should\x20always\x20contain\x20a\x20`md-menu-content`\x20element,otherwise\x20interactivity\x20features\x20will\x20not\x20work\x20properly.','ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ','ਇੱਕ\x20ਸਾਲ','_active','#CC9900','uib/template/typeahead/typeahead-popup.html','moment().','1\x20小時','invokeHooks','__views__','[\x5cs\x5cS]*','useStrategy','JsSIP:RTCSession:DTMF','^uibDatepicker','page_facing_up','pointerdown','[T~ómó~rró~w\x20át]\x20LT','dizzy','dropdownAppendTo','isStateClass','row','parts','draggable','mdColorPickerContainer.tpl.html','_late_sdp','entsambama','$translationCache','reset\x20input\x20blur','dddd[n\x20je]\x20LT','$mdExpansionPanelGroup.register()\x20Expects\x20name\x20to\x20be\x20a\x20string','bfcpUserId','(\x5cb[a-z\x27][a-zA-Z0-9_\x27]*:[a-z\x27][a-zA-Z0-9_\x27]*)|(\x5cb[a-z\x27][a-zA-Z0-9_\x27]*)','P0D','%d\x20分鐘','excel','_is_replied','soniya','spotify','getTimestampFromNode','transclude','tempClasses','stretch','fillStyle','msapplication-navbutton-color','decodeParams','$cfg.viewDecl.$context','border-bottom-right-radius','%[Qwi]?\x5c(','`[\x5cs\x5cS]','after\x20called\x20too\x20many\x20times','Windows\x20NT\x20[VER]','reconnectScope','requestError','#795548','\x0a\x0a','\x5c${','clock10','[A-Z]+','selectPrevious','\x5c$(\x5c{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\x5c(([a-zA-Z0-9_])*\x5c)','unu\x20minuto','mdAutoSelect','square','reset','.md-label','false\x20true\x20FALSE\x20TRUE\x20nil\x20YES\x20NO\x20NULL','fontString','list1','heart_eyes','uibUncheckable','BACKSLASH_ESCAPE','ui.router.state.events','vm.isOpen\x20=\x20false','getResultHandler','directionX','un\x20año','maxSizeY','dateFilter','md-checkbox-column','getTokens','UrlMatcherFactory','dropRight','text/html','isDateComplete','Manager','%d\x20mesos','ciphers','JⒿJĴɈ','keyPressedOnInput','oden','__lodash_hash_undefined__','ondisconnect','wheelSpeed','registeredParent','textNoResults','Last','ClipboardJS','xGoogleFlag','vas_hét_kedd_sze_csüt_pén_szo','distance','emit\x20\x22requestSucceeded\x22','showYear','Webkit','deviceId','horse','toasty-shake','Dàmh','actionByKey','pageXOffset','D_H_Ma_Më_E_P_Sh','arrow_right_hook','[ગઇકાલે]\x20LT','TransportError','domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato','removeClass','%d\x20منٹ','search','dropdownMenuTemplateUrl','a\x20few\x20seconds','(\x5c!|\x5c?)?:','extends\x20with','expectedEndTime','getDaysInMonth','buildLabelDiffs','mwQuestionOfferedAnswerListBuilder','model.localizationMap\x20will\x20be\x20removed\x20from\x20model\x20on\x20next\x20rlease,\x20please\x20use\x20root\x20config\x20e.g.\x20$mdDateRangePicker.show({localizationMap})\x20instead','0f0','4.17.20','_fullWeekdaysParse','\x22\x5c\x5c\x22','tagName','sekunnin','Monday','دقيقتين','rowCount','marker-start','Size','step','md-calendar-parent-action','mdDisableBackdrop','switch','createRipple','tydzień','sv-visibility-hidden','#eceff1','អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍','b16','(\x5cs*\x5c(.*?\x5c))?[;{]','opts','এক\x20মিনিট','EPSILON','newEndIndex','i\x20%s','star2','bir\x20kun','debounceUpdate','hsla(','and\x20elif\x20is\x20global\x20as\x20in\x20if\x20from\x20raise\x20for\x20except\x20finally\x20print\x20import\x20pass\x20return\x20exec\x20else\x20break\x20not\x20with\x20class\x20assert\x20yield\x20try\x20while\x20continue\x20del\x20or\x20def\x20lambda\x20async\x20await\x20nonlocal|10','coffeescript','Windows\x20NT\x204.0','_loop','>','styleTabItemFocus','normalize','overflow-x','ChartJsFactory','EventEmitter','rtpmap:%d\x20%s/%s/%s','$uiView.creationContext','isBetween','%d\x20يىل','\x22REGISTER\x22','traceTransitionStart','setPointerCapture','scad','endTime','^#!/usr/bin/env','md-bottom','maybeReconnectOnOpen','getOwnPropertyNames','_onDrop','iceOptions','\x5cb(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\x5cb','tiger','$mdCheckboxInkRipple','.\x20Available\x20handlers:\x20',':\x20Ignored\x20\x20<>\x20','год_гады_гадоў','$mdpLocale','resendProvisionalTimer','contenteditable','requestsCount','Paz_Pts_Sal_Çar_Per_Cum_Cts','_local_uri','Glob','ڇنڇر','Invalid\x20tone:\x20','سنة','\x5c^[\x5cw\x5c-\x5c.\x5c:]+','ਇਕ\x20ਮਿੰਟ','700\x20800\x20900','sortedIndexOf','MD-CONTENT','formSubmitted','break-inside','ExpansionPanelGroup\x20\x27{0}\x27\x20is\x20not\x20available!\x20Did\x20you\x20use\x20md-component-id=\x27{0}\x27?','runTranslate','%d\x20tuần','connecting','mdCalendarMonthBody','mdMenu:\x20The\x20$mdOpenMenu\x20method\x20is\x20deprecated.\x20Please\x20use\x20`$mdMenu.open`.','één\x20uur','prependOnceListener','MMM','notstring','visible','$from$','selectedDt','locationConfig','anguished','%[qQwWx]?-','[Өнгөрсөн]\x20dddd\x20LT','baseball','contentText','forceBase64','priority','restrictX','ఒక\x20గంట','SCRIPT','\x22cause\x22','resume','রাত','md-fab-actions','_overflowDayOfYear','#616161','yellow','simulcast','inputAriaLabel','rgb(0,\x20255,\x20128)','Sortable','1926-12-25','\x5cb(?:FALSE|TRUE)\x5cb','maxlength','enumerateDevices','eight','orderBy','cutoutPercentage','_quote','1xx\x20response\x20received\x20without\x20to\x20tag','getRawNode','getHeaders','','findIndex','%d\x20mionaidean','withParams','activeIdx','epxansionPanelGroupCtrl','type\x20alias','=?mdPageSelect','ng-sortable','_disposables','scrollbarXWidth','ready','pointLabels','japan','buildPath','GET','ng-cloak','bind','zeroLineColor','getHeader','recalculateTimingStyles','def\x20defp\x20defmacro','eine\x20Minute','YYYY\x20[ҫулхи]\x20MMMM\x20[уйӑхӗн]\x20D[-мӗшӗ]','stew','stubString','({|$)','unhold()','onAdd','f8f8ff','\x0a\x0a','setupAutocompleteAria','=?mdSearchText','suggestedMax','allowMultiple','newPanelPosition','aria-valuenow','deleteOption','parsePayloads','\x20mesen','rtcpRsize','[minulý]\x20dddd\x20[o]\x20LT','xmlns:ns1','isSet','DD/M/YYYY','Invalid\x20byte\x20index','fist','[;.\x5c-]','[ស្អែក\x20ម៉ោង]\x20LT','parking','reconnectionDelay','@lazyLoad','dddd,\x20D.\x20MMMM\x20YYYY\x20[kl.]\x20H:mm','.js\x22\x20onload=\x22retargetLinks()\x22>','\x20from\x20\x27','lastIndexOf','uair\x20an\x20chloig','#43a047','glWidth','padHours','[mañá\x20','primary','^[a-zA-Z][a-zA-Z0-9_-]*\x5c(.*\x5c)','podspec','\x20жил','firstRenderableDate','__halt_compiler.+?;','un\x20an','peerconnection.setRemoteDescription()\x20failed','inline\x20no_inline\x20type_spec\x20source_file\x20fact_table\x20obsolete\x20memo\x20loop_check\x20minimal_model\x20terminates\x20does_not_terminate\x20check_termination\x20promise_equivalent_clauses\x20foreign_proc\x20foreign_decl\x20foreign_code\x20foreign_type\x20foreign_import_module\x20foreign_export_enum\x20foreign_export\x20foreign_enum\x20may_call_mercury\x20will_not_call_mercury\x20thread_safe\x20not_thread_safe\x20maybe_thread_safe\x20promise_pure\x20promise_semipure\x20tabled_for_io\x20local\x20untrailed\x20trailed\x20attach_to_io_state\x20can_pass_as_mercury_type\x20stable\x20will_not_throw_exception\x20may_modify_trail\x20will_not_modify_trail\x20may_duplicate\x20may_not_duplicate\x20affects_liveness\x20does_not_affect_liveness\x20doesnt_affect_liveness\x20no_sharing\x20unknown_sharing\x20sharing','app/directives/matrix-item/matrix-item.html','[;{}]','cleanupBlocks_','_fixBounds','apacheconf','down','embedTemplateUrl','dismissOnTimeout','onChange','NOT_SUPPORTED_ERROR','weekdaysMin','cssFloat','üks\x20tund','found','to_tag','Status_Line','Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des','\x20->\x20','א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳','times','getLastDateOfMonth','ein\x20Monat','mw-form-page-element-builder.html','Invalid\x20target:\x20','clock1','UibButtonsController','[\x20\x5ct]*=','offsetY','ی_د_س_چ_پ_ه_ش','minibus','','isRejectionPromise','Meán\x20Fómhair','md-max','translateX','
','uncheckable','a8m.ends-with','\x5cb(\x5cd+|0[0-9A-Za-z]+)\x5c.?\x5cb','trailing','[Today\x20at]\x20LT','websocket\x20error','mdOnAppend','hex4','Moz','panels','STATUS_CANCELED','Promise','border-left-style','\x22q\x22','isoWeekYear','GGGG','confirm','-option-','\x5cb(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\x5cb','DetectRTC','transports','session\x20ended','#ba68c8','A\x20h:mm','%d\x20ثانية','LANGUAGE_HANDLER\x20TRIGGER\x20EVENT_TRIGGER\x20FDW_HANDLER\x20INDEX_AM_HANDLER\x20TSM_HANDLER','mdInputContainer','layoutFill','%d\x20кун','touch','Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis','dddd[n],\x20[la]\x20D[-an\x20de]\x20MMMM,\x20YYYY\x20HH:mm','un\x20anno','_$element','waitTransitionEnd','accentPalette','getCursorPosition','Not\x20Acceptable\x20Here','[object\x20SVGAnimatedString]','nodeValue','%d\x20ossan','postText','rid:%s\x20%s','Missing\x20required\x20arguments','hideBackdrop','Unknown\x20unit\x20','templateProvider','define','#1b5e20','\x5cs*(?:=|:=)\x5cs*)?(\x5c(.*\x5c))?\x5cs*\x5cB\x5c->\x5c*?','wrap','uib-tab-heading','$mdSelect.show()\x20expected\x20a\x20target\x20element\x20in\x20options.target\x20but\x20got\x20\x27{0}\x27!','$mdContactChipsCtrl','md-asc','rotation','\x5cs+=\x5cs+{','oldRow','za\x20%s','angularMaterialFormBuilder','wa’\x20tup','_eras','blur','LEFT_ARROW','_ncHex','[object\x20FileConstructor]','_dynConfiguration','Use\x20Identity\x20Header','GridsterItemCtrl','multiKeyBackground','newTag','fontSize','MSPointerEvent','%d\x20weeks','updateBlock_','sedinten','يوليو','$viewContentLoaded','isInProgress','htmlVoidElements','abstract\x20alias\x20align\x20asm\x20assert\x20auto\x20body\x20break\x20byte\x20case\x20cast\x20catch\x20class\x20const\x20continue\x20debug\x20default\x20delete\x20deprecated\x20do\x20else\x20enum\x20export\x20extern\x20final\x20finally\x20for\x20foreach\x20foreach_reverse|10\x20goto\x20if\x20immutable\x20import\x20in\x20inout\x20int\x20interface\x20invariant\x20is\x20lazy\x20macro\x20mixin\x20module\x20new\x20nothrow\x20out\x20override\x20package\x20pragma\x20private\x20protected\x20public\x20pure\x20ref\x20return\x20scope\x20shared\x20static\x20struct\x20super\x20switch\x20synchronized\x20template\x20this\x20throw\x20try\x20typedef\x20typeid\x20typeof\x20union\x20unittest\x20version\x20void\x20volatile\x20while\x20with\x20__FILE__\x20__LINE__\x20__gshared|10\x20__thread\x20__traits\x20__DATE__\x20__EOF__\x20__TIME__\x20__TIMESTAMP__\x20__VENDOR__\x20__VERSION__','\x22[^\x0d\x0a\x22]*\x22','endOf','xlsx','$mdProgressCircular','\x5cb_*rig[A-Z]+[A-Za-z0-9_\x5c-]*','centerVariant','[object\x20DOMException]','Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος','splice','[Inné\x20ag]\x20LT','_md-datepicker-floating-label','pivot','longestTextCache','select,[contenteditable]','isRegExp','$viewChangeListeners','modal-open','angular.password','Today','sortableMouseAligned','Timer\x20D\x20expired\x20for\x20transaction\x20','offsetGridLines','%d\x20שניות','font-size-adjust','एका\x20वर्षा','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','-\x5cw\x5cb','Enable','Aको\x20h:mm:ss\x20बजे','yhden','рӯз','icon\x20','\x20órája','shoe','dnem','mdExpansionPanelFooter','mdAutoHide','activeClasses','$DOCUMENT','une\x20semaine','Ai_Sm_Mo_Bu_Br_Su_Sn','First','setupStaticChips','propagateContainerEvents','\x22terminated\x22','negativeScrollAdjustment','bash','of\x20and\x20for\x20in\x20not\x20or\x20if\x20then','point_up','cloneForm','shipit','nestLevel','maxptime','componentProvider','ltr','\x27uncu','sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag','addValidAttrs','REFER\x20succeeded','sun_mán_týs_mik_hós_frí_ley','Proxy\x20Authentication\x20Required','cat','[Σήμερα\x20{}]\x20LT','button','ngValue','toHsvString','unit','md-menu','createFromInputFallback','\x5c(\x5c)','%d\x20months','mdColorGenericPalette','_ordinalParse','separatorKeys','localData','Row\x20selection:\x20Expected\x20an\x20array.\x20Recived\x20','createTextRange','LinearScaleBase','HH.mm','_duration','443','tile\x20%d','mdColorPicker.tpl.html','[a-zA-Z_$][a-zA-Z0-9_$]*','str','createComment','$datepickerLiteralWarning','originalRight','#dcedc8','MIN_INTER_TONE_GAP','%d\x20aý','MEDIA','300\x20400\x20A200\x20A400','getBlob','год','mdMenu','nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota','uiSrefActive','selectedItem','true\x20false\x20null\x20undefined\x20NaN\x20Infinity','handleMenuItemMouseLeave','EEEE','rgba','isDefaultValue','hgroup','keyboardNav','min-height','firstDayOfMonth','angucomplete-alt','limit','border-top-style','\x20\x20','.dialog-close,\x20md-dialog-actions\x20button:last-child','setChannel','eZee[_\x27]?(Tab|Go)[0-9]+|TabLC7|Looney\x20Tunes\x20Tab','forceEllipses','san\x20kelen','Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık','exists','vertical','deg)','oRequestAnimationFrame','beforeSetDimensions','[0-9a-fA-F]','#90a4ae','sip_uri','%d\x20វិនាទី','gridster-loaded','_listeners','%d\x20taun','BEFORE','Invalid\x20argument.\x20undefined\x20\x27sockets\x27\x20argument','rowHeight','parentNode','\x22\x20for\x20mode\x20\x22','WebRTC\x20not\x20supported','quarters','not\x20null\x20constant\x20access\x20function\x20procedure\x20in\x20out\x20aliased\x20exception','year','anonymous','date-end=\x22model.dateEnd\x22\x20','gt-xs','_wrapTemplate','Data\x20inválida','%d\x20دقائق','addToGroup','beforeunload','setElementSizeX','_newMessage','Windows\x202000','Cache','[\x5c+\x5c-]','focusInput','#607d8b','708090','oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ','websocket\x20closed\x20before\x20onclose\x20event','^mwFormPageBuilder','dny','md-container-class','onResize','ttl','\x5c[noprocess\x5c]','pointerEvents','pending','localDescription','#78909c','[Бүгін\x20сағат]\x20LT','lineJoin','\x20मिणटां','setSelectionRange','sqrt','selectedAnswers','GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ','resetIds','COMMENT_NODE','addPage','ਦੁਪਹਿਰ','sips','translateNamespace','ਸ਼ਾਮ','_setPosition','border-bottom-color','secondaryPlaceholder','=mdDebounceInterval','firstDayOfWeek','deciduous_tree','_setTransform','strokeWidth','Content-Type:\x20application/dtmf-relay','shortFmt','_sorted','pouting_cat','showWeeks','Bad\x20Request','TAB','while','You\x20must\x20provide\x20an\x20axis\x20to\x20the\x20update-scroll\x20function','shared\x20guarded\x20stdin\x20stdout\x20stderr\x20result\x20true\x20false','_erasRegex','sameElse','tls','%d\x20marama','\x0a\x20\x20{{$pagination.label.page}}\x0a\x0a\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20{{page}}\x0a\x20\x20\x20\x20\x0a\x20\x20\x0a\x0a\x0a\x0a\x20\x20{{$pagination.label.rowsPerPage}}\x0a\x0a\x20\x20\x0a\x20\x20\x20\x20{{::option.label\x20?\x20option.label\x20:\x20option}}\x0a\x20\x20\x0a\x0a\x0a\x0a\x20\x20{{$pagination.min()}}\x20-\x20{{$pagination.max()}}\x20{{$pagination.label.of}}\x20{{$pagination.total}}\x0a\x0a\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x0a\x0a\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x0a\x0a\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x0a\x0a\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x0a','defaultValue','_algorithm','@[A-z0-9_]+','via_host','applyTransitionDelay','\x5c$\x5c(','_reduceTranslateValues','^[=\x5c*]{4,}\x5cn','quoteStrings','shortMonths','resetSelectedChip','cow2','ng-animate','_md-button-wrap','names','setCurrentPage','ctrl.formData.pages.length','onwheel',')*[\x20]*\x5c|','getNearestContentElement','stale','useValue','星期日_星期一_星期二_星期三_星期四_星期五_星期六','%d\x20segons','columnOrder','#FF9900','interface\x20namespace','_id','_location','$locale','violin','drawTitle','[#$][a-zA-Z_][\x5cw.]*','_history','as\x20break\x20case\x20catch\x20class\x20const\x20continue\x20default\x20delete\x20do\x20dynamic\x20each\x20else\x20extends\x20final\x20finally\x20for\x20function\x20get\x20if\x20implements\x20import\x20in\x20include\x20instanceof\x20interface\x20internal\x20is\x20namespace\x20native\x20new\x20override\x20package\x20private\x20protected\x20public\x20return\x20set\x20static\x20super\x20switch\x20this\x20throw\x20try\x20typeof\x20use\x20var\x20void\x20while\x20with','configuration\x20parameters\x20after\x20validation:','#-}','query','onSuccess','isError','rokmi','marquee','nist','align-tops','000000','positionArrow','A\x20h:mm:ss\x20વાગ્યે','egg','getPixelForTick','tada',',0.1)','radar','fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS','[Hôm\x20qua\x20lúc]\x20LT','[W]\x20dddd\x20[o]\x20LT','monkey','%\x5c}','MMMM','\x27\x20state]:\x20target\x20ui-view:\x20\x27','isFullWidth','checked','','scrollbarYRight','ایک\x20دن','newRTCSession()','_expires','chartDatasetOverride','_timeout','\x22text\x22','sanje','scheme','pointermove','dg._dl._dt._dc._dj._dv._ds.','resetInputFocused','\x22ip\x22','.md-icon\x20~\x20','remoteUrlDataField','chosenClass','ng-leave','(\x5cb0[xX][a-fA-F0-9_]+)|(\x5cb\x5cd(\x5cd|_\x5cd)*(\x5c.(\x5cd(\x5cd|_\x5cd)*)?)?(_*[eE]([-+]\x5cd(_\x5cd|\x5cd)*)?)?[_a-z]*)','iterator','cellClickHandler','OFFSET_END','mwForm.questionUpdate','[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*','mdVertical','handleParentClick','Utils','[danes\x20ob]\x20LT','Add-Computer\x20Add-Content\x20Add-History\x20Add-JobTrigger\x20Add-Member\x20Add-PSSnapin\x20Add-Type\x20Checkpoint-Computer\x20Clear-Content\x20Clear-EventLog\x20Clear-History\x20Clear-Host\x20Clear-Item\x20Clear-ItemProperty\x20Clear-Variable\x20Compare-Object\x20Complete-Transaction\x20Connect-PSSession\x20Connect-WSMan\x20Convert-Path\x20ConvertFrom-Csv\x20ConvertFrom-Json\x20ConvertFrom-SecureString\x20ConvertFrom-StringData\x20ConvertTo-Csv\x20ConvertTo-Html\x20ConvertTo-Json\x20ConvertTo-SecureString\x20ConvertTo-Xml\x20Copy-Item\x20Copy-ItemProperty\x20Debug-Process\x20Disable-ComputerRestore\x20Disable-JobTrigger\x20Disable-PSBreakpoint\x20Disable-PSRemoting\x20Disable-PSSessionConfiguration\x20Disable-WSManCredSSP\x20Disconnect-PSSession\x20Disconnect-WSMan\x20Disable-ScheduledJob\x20Enable-ComputerRestore\x20Enable-JobTrigger\x20Enable-PSBreakpoint\x20Enable-PSRemoting\x20Enable-PSSessionConfiguration\x20Enable-ScheduledJob\x20Enable-WSManCredSSP\x20Enter-PSSession\x20Exit-PSSession\x20Export-Alias\x20Export-Clixml\x20Export-Console\x20Export-Counter\x20Export-Csv\x20Export-FormatData\x20Export-ModuleMember\x20Export-PSSession\x20ForEach-Object\x20Format-Custom\x20Format-List\x20Format-Table\x20Format-Wide\x20Get-Acl\x20Get-Alias\x20Get-AuthenticodeSignature\x20Get-ChildItem\x20Get-Command\x20Get-ComputerRestorePoint\x20Get-Content\x20Get-ControlPanelItem\x20Get-Counter\x20Get-Credential\x20Get-Culture\x20Get-Date\x20Get-Event\x20Get-EventLog\x20Get-EventSubscriber\x20Get-ExecutionPolicy\x20Get-FormatData\x20Get-Host\x20Get-HotFix\x20Get-Help\x20Get-History\x20Get-IseSnippet\x20Get-Item\x20Get-ItemProperty\x20Get-Job\x20Get-JobTrigger\x20Get-Location\x20Get-Member\x20Get-Module\x20Get-PfxCertificate\x20Get-Process\x20Get-PSBreakpoint\x20Get-PSCallStack\x20Get-PSDrive\x20Get-PSProvider\x20Get-PSSession\x20Get-PSSessionConfiguration\x20Get-PSSnapin\x20Get-Random\x20Get-ScheduledJob\x20Get-ScheduledJobOption\x20Get-Service\x20Get-TraceSource\x20Get-Transaction\x20Get-TypeData\x20Get-UICulture\x20Get-Unique\x20Get-Variable\x20Get-Verb\x20Get-WinEvent\x20Get-WmiObject\x20Get-WSManCredSSP\x20Get-WSManInstance\x20Group-Object\x20Import-Alias\x20Import-Clixml\x20Import-Counter\x20Import-Csv\x20Import-IseSnippet\x20Import-LocalizedData\x20Import-PSSession\x20Import-Module\x20Invoke-AsWorkflow\x20Invoke-Command\x20Invoke-Expression\x20Invoke-History\x20Invoke-Item\x20Invoke-RestMethod\x20Invoke-WebRequest\x20Invoke-WmiMethod\x20Invoke-WSManAction\x20Join-Path\x20Limit-EventLog\x20Measure-Command\x20Measure-Object\x20Move-Item\x20Move-ItemProperty\x20New-Alias\x20New-Event\x20New-EventLog\x20New-IseSnippet\x20New-Item\x20New-ItemProperty\x20New-JobTrigger\x20New-Object\x20New-Module\x20New-ModuleManifest\x20New-PSDrive\x20New-PSSession\x20New-PSSessionConfigurationFile\x20New-PSSessionOption\x20New-PSTransportOption\x20New-PSWorkflowExecutionOption\x20New-PSWorkflowSession\x20New-ScheduledJobOption\x20New-Service\x20New-TimeSpan\x20New-Variable\x20New-WebServiceProxy\x20New-WinEvent\x20New-WSManInstance\x20New-WSManSessionOption\x20Out-Default\x20Out-File\x20Out-GridView\x20Out-Host\x20Out-Null\x20Out-Printer\x20Out-String\x20Pop-Location\x20Push-Location\x20Read-Host\x20Receive-Job\x20Register-EngineEvent\x20Register-ObjectEvent\x20Register-PSSessionConfiguration\x20Register-ScheduledJob\x20Register-WmiEvent\x20Remove-Computer\x20Remove-Event\x20Remove-EventLog\x20Remove-Item\x20Remove-ItemProperty\x20Remove-Job\x20Remove-JobTrigger\x20Remove-Module\x20Remove-PSBreakpoint\x20Remove-PSDrive\x20Remove-PSSession\x20Remove-PSSnapin\x20Remove-TypeData\x20Remove-Variable\x20Remove-WmiObject\x20Remove-WSManInstance\x20Rename-Computer\x20Rename-Item\x20Rename-ItemProperty\x20Reset-ComputerMachinePassword\x20Resolve-Path\x20Restart-Computer\x20Restart-Service\x20Restore-Computer\x20Resume-Job\x20Resume-Service\x20Save-Help\x20Select-Object\x20Select-String\x20Select-Xml\x20Send-MailMessage\x20Set-Acl\x20Set-Alias\x20Set-AuthenticodeSignature\x20Set-Content\x20Set-Date\x20Set-ExecutionPolicy\x20Set-Item\x20Set-ItemProperty\x20Set-JobTrigger\x20Set-Location\x20Set-PSBreakpoint\x20Set-PSDebug\x20Set-PSSessionConfiguration\x20Set-ScheduledJob\x20Set-ScheduledJobOption\x20Set-Service\x20Set-StrictMode\x20Set-TraceSource\x20Set-Variable\x20Set-WmiInstance\x20Set-WSManInstance\x20Set-WSManQuickConfig\x20Show-Command\x20Show-ControlPanelItem\x20Show-EventLog\x20Sort-Object\x20Split-Path\x20Start-Job\x20Start-Process\x20Start-Service\x20Start-Sleep\x20Start-Transaction\x20Start-Transcript\x20Stop-Computer\x20Stop-Job\x20Stop-Process\x20Stop-Service\x20Stop-Transcript\x20Suspend-Job\x20Suspend-Service\x20Tee-Object\x20Test-ComputerSecureChannel\x20Test-Connection\x20Test-ModuleManifest\x20Test-Path\x20Test-PSSessionConfigurationFile\x20Trace-Command\x20Unblock-File\x20Undo-Transaction\x20Unregister-Event\x20Unregister-PSSessionConfiguration\x20Unregister-ScheduledJob\x20Update-FormatData\x20Update-Help\x20Update-List\x20Update-TypeData\x20Use-Transaction\x20Wait-Event\x20Wait-Job\x20Wait-Process\x20Where-Object\x20Write-Debug\x20Write-Error\x20Write-EventLog\x20Write-Host\x20Write-Output\x20Write-Progress\x20Write-Verbose\x20Write-Warning\x20Add-MDTPersistentDrive\x20Disable-MDTMonitorService\x20Enable-MDTMonitorService\x20Get-MDTDeploymentShareStatistics\x20Get-MDTMonitorData\x20Get-MDTOperatingSystemCatalog\x20Get-MDTPersistentDrive\x20Import-MDTApplication\x20Import-MDTDriver\x20Import-MDTOperatingSystem\x20Import-MDTPackage\x20Import-MDTTaskSequence\x20New-MDTDatabase\x20Remove-MDTMonitorData\x20Remove-MDTPersistentDrive\x20Restore-MDTPersistentDrive\x20Set-MDTMonitorData\x20Test-MDTDeploymentShare\x20Test-MDTMonitorData\x20Update-MDTDatabaseSchema\x20Update-MDTDeploymentShare\x20Update-MDTLinkedDS\x20Update-MDTMedia\x20Add-VamtProductKey\x20Export-VamtData\x20Find-VamtManagedMachine\x20Get-VamtConfirmationId\x20Get-VamtProduct\x20Get-VamtProductKey\x20Import-VamtData\x20Initialize-VamtData\x20Install-VamtConfirmationId\x20Install-VamtProductActivation\x20Install-VamtProductKey\x20Update-VamtProduct\x20Add-CIDatastore\x20Add-KeyManagementServer\x20Add-NodeKeys\x20Add-NsxDynamicCriteria\x20Add-NsxDynamicMemberSet\x20Add-NsxEdgeInterfaceAddress\x20Add-NsxFirewallExclusionListMember\x20Add-NsxFirewallRuleMember\x20Add-NsxIpSetMember\x20Add-NsxLicense\x20Add-NsxLoadBalancerPoolMember\x20Add-NsxLoadBalancerVip\x20Add-NsxSecondaryManager\x20Add-NsxSecurityGroupMember\x20Add-NsxSecurityPolicyRule\x20Add-NsxSecurityPolicyRuleGroup\x20Add-NsxSecurityPolicyRuleService\x20Add-NsxServiceGroupMember\x20Add-NsxTransportZoneMember\x20Add-PassthroughDevice\x20Add-VDSwitchPhysicalNetworkAdapter\x20Add-VDSwitchVMHost\x20Add-VMHost\x20Add-VMHostNtpServer\x20Add-VirtualSwitchPhysicalNetworkAdapter\x20Add-XmlElement\x20Add-vRACustomForm\x20Add-vRAPrincipalToTenantRole\x20Add-vRAReservationNetwork\x20Add-vRAReservationStorage\x20Clear-NsxEdgeInterface\x20Clear-NsxManagerTimeSettings\x20Compress-Archive\x20Connect-CIServer\x20Connect-CisServer\x20Connect-HCXServer\x20Connect-NIServer\x20Connect-NsxLogicalSwitch\x20Connect-NsxServer\x20Connect-NsxtServer\x20Connect-SrmServer\x20Connect-VIServer\x20Connect-Vmc\x20Connect-vRAServer\x20Connect-vRNIServer\x20ConvertFrom-Markdown\x20ConvertTo-MOFInstance\x20Copy-DatastoreItem\x20Copy-HardDisk\x20Copy-NsxEdge\x20Copy-VDisk\x20Copy-VMGuestFile\x20Debug-Runspace\x20Disable-NsxEdgeSsh\x20Disable-RunspaceDebug\x20Disable-vRNIDataSource\x20Disconnect-CIServer\x20Disconnect-CisServer\x20Disconnect-HCXServer\x20Disconnect-NsxLogicalSwitch\x20Disconnect-NsxServer\x20Disconnect-NsxtServer\x20Disconnect-SrmServer\x20Disconnect-VIServer\x20Disconnect-Vmc\x20Disconnect-vRAServer\x20Disconnect-vRNIServer\x20Dismount-Tools\x20Enable-NsxEdgeSsh\x20Enable-RunspaceDebug\x20Enable-vRNIDataSource\x20Expand-Archive\x20Export-NsxObject\x20Export-SpbmStoragePolicy\x20Export-VApp\x20Export-VDPortGroup\x20Export-VDSwitch\x20Export-VMHostProfile\x20Export-vRAIcon\x20Export-vRAPackage\x20Find-Command\x20Find-DscResource\x20Find-Module\x20Find-NsxWhereVMUsed\x20Find-Package\x20Find-PackageProvider\x20Find-RoleCapability\x20Find-Script\x20Format-Hex\x20Format-VMHostDiskPartition\x20Format-XML\x20Generate-VersionInfo\x20Get-AdvancedSetting\x20Get-AlarmAction\x20Get-AlarmActionTrigger\x20Get-AlarmDefinition\x20Get-Annotation\x20Get-CDDrive\x20Get-CIAccessControlRule\x20Get-CIDatastore\x20Get-CINetworkAdapter\x20Get-CIRole\x20Get-CIUser\x20Get-CIVApp\x20Get-CIVAppNetwork\x20Get-CIVAppStartRule\x20Get-CIVAppTemplate\x20Get-CIVM\x20Get-CIVMTemplate\x20Get-CIView\x20Get-Catalog\x20Get-CisCommand\x20Get-CisService\x20Get-CloudCommand\x20Get-Cluster\x20Get-CompatibleVersionAddtionaPropertiesStr\x20Get-ComplexResourceQualifier\x20Get-ConfigurationErrorCount\x20Get-ContentLibraryItem\x20Get-CustomAttribute\x20Get-DSCResourceModules\x20Get-Datacenter\x20Get-Datastore\x20Get-DatastoreCluster\x20Get-DrsClusterGroup\x20Get-DrsRecommendation\x20Get-DrsRule\x20Get-DrsVMHostRule\x20Get-DscResource\x20Get-EdgeGateway\x20Get-EncryptedPassword\x20Get-ErrorReport\x20Get-EsxCli\x20Get-EsxTop\x20Get-ExternalNetwork\x20Get-FileHash\x20Get-FloppyDrive\x20Get-Folder\x20Get-HAPrimaryVMHost\x20Get-HCXAppliance\x20Get-HCXApplianceCompute\x20Get-HCXApplianceDVS\x20Get-HCXApplianceDatastore\x20Get-HCXApplianceNetwork\x20Get-HCXContainer\x20Get-HCXDatastore\x20Get-HCXGateway\x20Get-HCXInterconnectStatus\x20Get-HCXJob\x20Get-HCXMigration\x20Get-HCXNetwork\x20Get-HCXNetworkExtension\x20Get-HCXReplication\x20Get-HCXReplicationSnapshot\x20Get-HCXService\x20Get-HCXSite\x20Get-HCXSitePairing\x20Get-HCXVM\x20Get-HardDisk\x20Get-IScsiHbaTarget\x20Get-InnerMostErrorRecord\x20Get-InstallPath\x20Get-InstalledModule\x20Get-InstalledScript\x20Get-Inventory\x20Get-ItemPropertyValue\x20Get-KeyManagementServer\x20Get-KmipClientCertificate\x20Get-KmsCluster\x20Get-Log\x20Get-LogType\x20Get-MarkdownOption\x20Get-Media\x20Get-MofInstanceName\x20Get-MofInstanceText\x20Get-NetworkAdapter\x20Get-NetworkPool\x20Get-NfsUser\x20Get-NicTeamingPolicy\x20Get-NsxApplicableMember\x20Get-NsxApplicableSecurityAction\x20Get-NsxBackingDVSwitch\x20Get-NsxBackingPortGroup\x20Get-NsxCliDfwAddrSet\x20Get-NsxCliDfwFilter\x20Get-NsxCliDfwRule\x20Get-NsxClusterStatus\x20Get-NsxController\x20Get-NsxDynamicCriteria\x20Get-NsxDynamicMemberSet\x20Get-NsxEdge\x20Get-NsxEdgeBgp\x20Get-NsxEdgeBgpNeighbour\x20Get-NsxEdgeCertificate\x20Get-NsxEdgeCsr\x20Get-NsxEdgeFirewall\x20Get-NsxEdgeFirewallRule\x20Get-NsxEdgeInterface\x20Get-NsxEdgeInterfaceAddress\x20Get-NsxEdgeNat\x20Get-NsxEdgeNatRule\x20Get-NsxEdgeOspf\x20Get-NsxEdgeOspfArea\x20Get-NsxEdgeOspfInterface\x20Get-NsxEdgePrefix\x20Get-NsxEdgeRedistributionRule\x20Get-NsxEdgeRouting\x20Get-NsxEdgeStaticRoute\x20Get-NsxEdgeSubInterface\x20Get-NsxFirewallExclusionListMember\x20Get-NsxFirewallGlobalConfiguration\x20Get-NsxFirewallPublishStatus\x20Get-NsxFirewallRule\x20Get-NsxFirewallRuleMember\x20Get-NsxFirewallSavedConfiguration\x20Get-NsxFirewallSection\x20Get-NsxFirewallThreshold\x20Get-NsxIpPool\x20Get-NsxIpSet\x20Get-NsxLicense\x20Get-NsxLoadBalancer\x20Get-NsxLoadBalancerApplicationProfile\x20Get-NsxLoadBalancerApplicationRule\x20Get-NsxLoadBalancerMonitor\x20Get-NsxLoadBalancerPool\x20Get-NsxLoadBalancerPoolMember\x20Get-NsxLoadBalancerStats\x20Get-NsxLoadBalancerVip\x20Get-NsxLogicalRouter\x20Get-NsxLogicalRouterBgp\x20Get-NsxLogicalRouterBgpNeighbour\x20Get-NsxLogicalRouterBridge\x20Get-NsxLogicalRouterBridging\x20Get-NsxLogicalRouterInterface\x20Get-NsxLogicalRouterOspf\x20Get-NsxLogicalRouterOspfArea\x20Get-NsxLogicalRouterOspfInterface\x20Get-NsxLogicalRouterPrefix\x20Get-NsxLogicalRouterRedistributionRule\x20Get-NsxLogicalRouterRouting\x20Get-NsxLogicalRouterStaticRoute\x20Get-NsxLogicalSwitch\x20Get-NsxMacSet\x20Get-NsxManagerBackup\x20Get-NsxManagerCertificate\x20Get-NsxManagerComponentSummary\x20Get-NsxManagerNetwork\x20Get-NsxManagerRole\x20Get-NsxManagerSsoConfig\x20Get-NsxManagerSyncStatus\x20Get-NsxManagerSyslogServer\x20Get-NsxManagerSystemSummary\x20Get-NsxManagerTimeSettings\x20Get-NsxManagerVcenterConfig\x20Get-NsxSecondaryManager\x20Get-NsxSecurityGroup\x20Get-NsxSecurityGroupEffectiveIpAddress\x20Get-NsxSecurityGroupEffectiveMacAddress\x20Get-NsxSecurityGroupEffectiveMember\x20Get-NsxSecurityGroupEffectiveVirtualMachine\x20Get-NsxSecurityGroupEffectiveVnic\x20Get-NsxSecurityGroupMemberTypes\x20Get-NsxSecurityPolicy\x20Get-NsxSecurityPolicyHighestUsedPrecedence\x20Get-NsxSecurityPolicyRule\x20Get-NsxSecurityTag\x20Get-NsxSecurityTagAssignment\x20Get-NsxSegmentIdRange\x20Get-NsxService\x20Get-NsxServiceDefinition\x20Get-NsxServiceGroup\x20Get-NsxServiceGroupMember\x20Get-NsxServiceProfile\x20Get-NsxSpoofguardNic\x20Get-NsxSpoofguardPolicy\x20Get-NsxSslVpn\x20Get-NsxSslVpnAuthServer\x20Get-NsxSslVpnClientInstallationPackage\x20Get-NsxSslVpnIpPool\x20Get-NsxSslVpnPrivateNetwork\x20Get-NsxSslVpnUser\x20Get-NsxTransportZone\x20Get-NsxUserRole\x20Get-NsxVdsContext\x20Get-NsxtPolicyService\x20Get-NsxtService\x20Get-OSCustomizationNicMapping\x20Get-OSCustomizationSpec\x20Get-Org\x20Get-OrgNetwork\x20Get-OrgVdc\x20Get-OrgVdcNetwork\x20Get-OvfConfiguration\x20Get-PSCurrentConfigurationNode\x20Get-PSDefaultConfigurationDocument\x20Get-PSMetaConfigDocumentInstVersionInfo\x20Get-PSMetaConfigurationProcessed\x20Get-PSReadLineKeyHandler\x20Get-PSReadLineOption\x20Get-PSRepository\x20Get-PSTopConfigurationName\x20Get-PSVersion\x20Get-Package\x20Get-PackageProvider\x20Get-PackageSource\x20Get-PassthroughDevice\x20Get-PositionInfo\x20Get-PowerCLICommunity\x20Get-PowerCLIConfiguration\x20Get-PowerCLIHelp\x20Get-PowerCLIVersion\x20Get-PowerNsxVersion\x20Get-ProviderVdc\x20Get-PublicKeyFromFile\x20Get-PublicKeyFromStore\x20Get-ResourcePool\x20Get-Runspace\x20Get-RunspaceDebug\x20Get-ScsiController\x20Get-ScsiLun\x20Get-ScsiLunPath\x20Get-SecurityInfo\x20Get-SecurityPolicy\x20Get-Snapshot\x20Get-SpbmCapability\x20Get-SpbmCompatibleStorage\x20Get-SpbmEntityConfiguration\x20Get-SpbmFaultDomain\x20Get-SpbmPointInTimeReplica\x20Get-SpbmReplicationGroup\x20Get-SpbmReplicationPair\x20Get-SpbmStoragePolicy\x20Get-Stat\x20Get-StatInterval\x20Get-StatType\x20Get-Tag\x20Get-TagAssignment\x20Get-TagCategory\x20Get-Task\x20Get-Template\x20Get-TimeZone\x20Get-Uptime\x20Get-UsbDevice\x20Get-VAIOFilter\x20Get-VApp\x20Get-VDBlockedPolicy\x20Get-VDPort\x20Get-VDPortgroup\x20Get-VDPortgroupOverridePolicy\x20Get-VDSecurityPolicy\x20Get-VDSwitch\x20Get-VDSwitchPrivateVlan\x20Get-VDTrafficShapingPolicy\x20Get-VDUplinkLacpPolicy\x20Get-VDUplinkTeamingPolicy\x20Get-VDisk\x20Get-VIAccount\x20Get-VICommand\x20Get-VICredentialStoreItem\x20Get-VIEvent\x20Get-VIObjectByVIView\x20Get-VIPermission\x20Get-VIPrivilege\x20Get-VIProperty\x20Get-VIRole\x20Get-VM\x20Get-VMGuest\x20Get-VMHost\x20Get-VMHostAccount\x20Get-VMHostAdvancedConfiguration\x20Get-VMHostAuthentication\x20Get-VMHostAvailableTimeZone\x20Get-VMHostDiagnosticPartition\x20Get-VMHostDisk\x20Get-VMHostDiskPartition\x20Get-VMHostFirewallDefaultPolicy\x20Get-VMHostFirewallException\x20Get-VMHostFirmware\x20Get-VMHostHardware\x20Get-VMHostHba\x20Get-VMHostModule\x20Get-VMHostNetwork\x20Get-VMHostNetworkAdapter\x20Get-VMHostNtpServer\x20Get-VMHostPatch\x20Get-VMHostPciDevice\x20Get-VMHostProfile\x20Get-VMHostProfileImageCacheConfiguration\x20Get-VMHostProfileRequiredInput\x20Get-VMHostProfileStorageDeviceConfiguration\x20Get-VMHostProfileUserConfiguration\x20Get-VMHostProfileVmPortGroupConfiguration\x20Get-VMHostRoute\x20Get-VMHostService\x20Get-VMHostSnmp\x20Get-VMHostStartPolicy\x20Get-VMHostStorage\x20Get-VMHostSysLogServer\x20Get-VMQuestion\x20Get-VMResourceConfiguration\x20Get-VMStartPolicy\x20Get-VTpm\x20Get-VTpmCSR\x20Get-VTpmCertificate\x20Get-VasaProvider\x20Get-VasaStorageArray\x20Get-View\x20Get-VirtualPortGroup\x20Get-VirtualSwitch\x20Get-VmcSddcNetworkService\x20Get-VmcService\x20Get-VsanClusterConfiguration\x20Get-VsanComponent\x20Get-VsanDisk\x20Get-VsanDiskGroup\x20Get-VsanEvacuationPlan\x20Get-VsanFaultDomain\x20Get-VsanIscsiInitiatorGroup\x20Get-VsanIscsiInitiatorGroupTargetAssociation\x20Get-VsanIscsiLun\x20Get-VsanIscsiTarget\x20Get-VsanObject\x20Get-VsanResyncingComponent\x20Get-VsanRuntimeInfo\x20Get-VsanSpaceUsage\x20Get-VsanStat\x20Get-VsanView\x20Get-vRAApplianceServiceStatus\x20Get-vRAAuthorizationRole\x20Get-vRABlueprint\x20Get-vRABusinessGroup\x20Get-vRACatalogItem\x20Get-vRACatalogItemRequestTemplate\x20Get-vRACatalogPrincipal\x20Get-vRAComponentRegistryService\x20Get-vRAComponentRegistryServiceEndpoint\x20Get-vRAComponentRegistryServiceStatus\x20Get-vRAContent\x20Get-vRAContentData\x20Get-vRAContentType\x20Get-vRACustomForm\x20Get-vRAEntitledCatalogItem\x20Get-vRAEntitledService\x20Get-vRAEntitlement\x20Get-vRAExternalNetworkProfile\x20Get-vRAGroupPrincipal\x20Get-vRAIcon\x20Get-vRANATNetworkProfile\x20Get-vRANetworkProfileIPAddressList\x20Get-vRANetworkProfileIPRangeSummary\x20Get-vRAPackage\x20Get-vRAPackageContent\x20Get-vRAPropertyDefinition\x20Get-vRAPropertyGroup\x20Get-vRARequest\x20Get-vRARequestDetail\x20Get-vRAReservation\x20Get-vRAReservationComputeResource\x20Get-vRAReservationComputeResourceMemory\x20Get-vRAReservationComputeResourceNetwork\x20Get-vRAReservationComputeResourceResourcePool\x20Get-vRAReservationComputeResourceStorage\x20Get-vRAReservationPolicy\x20Get-vRAReservationTemplate\x20Get-vRAReservationType\x20Get-vRAResource\x20Get-vRAResourceAction\x20Get-vRAResourceActionRequestTemplate\x20Get-vRAResourceMetric\x20Get-vRAResourceOperation\x20Get-vRAResourceType\x20Get-vRARoutedNetworkProfile\x20Get-vRAService\x20Get-vRAServiceBlueprint\x20Get-vRASourceMachine\x20Get-vRAStorageReservationPolicy\x20Get-vRATenant\x20Get-vRATenantDirectory\x20Get-vRATenantDirectoryStatus\x20Get-vRATenantRole\x20Get-vRAUserPrincipal\x20Get-vRAUserPrincipalGroupMembership\x20Get-vRAVersion\x20Get-vRNIAPIVersion\x20Get-vRNIApplication\x20Get-vRNIApplicationTier\x20Get-vRNIDataSource\x20Get-vRNIDataSourceSNMPConfig\x20Get-vRNIDatastore\x20Get-vRNIDistributedSwitch\x20Get-vRNIDistributedSwitchPortGroup\x20Get-vRNIEntity\x20Get-vRNIEntityName\x20Get-vRNIFirewallRule\x20Get-vRNIFlow\x20Get-vRNIHost\x20Get-vRNIHostVMKNic\x20Get-vRNIIPSet\x20Get-vRNIL2Network\x20Get-vRNINSXManager\x20Get-vRNINodes\x20Get-vRNIProblem\x20Get-vRNIRecommendedRules\x20Get-vRNIRecommendedRulesNsxBundle\x20Get-vRNISecurityGroup\x20Get-vRNISecurityTag\x20Get-vRNIService\x20Get-vRNIServiceGroup\x20Get-vRNIVM\x20Get-vRNIVMvNIC\x20Get-vRNIvCenter\x20Get-vRNIvCenterCluster\x20Get-vRNIvCenterDatacenter\x20Get-vRNIvCenterFolder\x20Grant-NsxSpoofguardNicApproval\x20Import-CIVApp\x20Import-CIVAppTemplate\x20Import-NsxObject\x20Import-PackageProvider\x20Import-PowerShellDataFile\x20Import-SpbmStoragePolicy\x20Import-VApp\x20Import-VMHostProfile\x20Import-vRAContentData\x20Import-vRAIcon\x20Import-vRAPackage\x20Initialize-ConfigurationRuntimeState\x20Install-Module\x20Install-NsxCluster\x20Install-Package\x20Install-PackageProvider\x20Install-Script\x20Install-VMHostPatch\x20Invoke-DrsRecommendation\x20Invoke-NsxCli\x20Invoke-NsxClusterResolveAll\x20Invoke-NsxManagerSync\x20Invoke-NsxRestMethod\x20Invoke-NsxWebRequest\x20Invoke-VMHostProfile\x20Invoke-VMScript\x20Invoke-XpathQuery\x20Invoke-vRADataCollection\x20Invoke-vRARestMethod\x20Invoke-vRATenantDirectorySync\x20Invoke-vRNIRestMethod\x20Join-String\x20Mount-Tools\x20Move-Cluster\x20Move-Datacenter\x20Move-Datastore\x20Move-Folder\x20Move-HardDisk\x20Move-Inventory\x20Move-NsxSecurityPolicyRule\x20Move-ResourcePool\x20Move-Template\x20Move-VApp\x20Move-VDisk\x20Move-VM\x20Move-VMHost\x20New-AdvancedSetting\x20New-AlarmAction\x20New-AlarmActionTrigger\x20New-CDDrive\x20New-CIAccessControlRule\x20New-CIVApp\x20New-CIVAppNetwork\x20New-CIVAppTemplate\x20New-CIVM\x20New-Cluster\x20New-CustomAttribute\x20New-Datacenter\x20New-Datastore\x20New-DatastoreCluster\x20New-DatastoreDrive\x20New-DrsClusterGroup\x20New-DrsRule\x20New-DrsVMHostRule\x20New-DscChecksum\x20New-FloppyDrive\x20New-Folder\x20New-Guid\x20New-HCXAppliance\x20New-HCXMigration\x20New-HCXNetworkExtension\x20New-HCXNetworkMapping\x20New-HCXReplication\x20New-HCXSitePairing\x20New-HCXStaticRoute\x20New-HardDisk\x20New-IScsiHbaTarget\x20New-KmipClientCertificate\x20New-NetworkAdapter\x20New-NfsUser\x20New-NsxAddressSpec\x20New-NsxClusterVxlanConfig\x20New-NsxController\x20New-NsxDynamicCriteriaSpec\x20New-NsxEdge\x20New-NsxEdgeBgpNeighbour\x20New-NsxEdgeCsr\x20New-NsxEdgeFirewallRule\x20New-NsxEdgeInterfaceSpec\x20New-NsxEdgeNatRule\x20New-NsxEdgeOspfArea\x20New-NsxEdgeOspfInterface\x20New-NsxEdgePrefix\x20New-NsxEdgeRedistributionRule\x20New-NsxEdgeSelfSignedCertificate\x20New-NsxEdgeStaticRoute\x20New-NsxEdgeSubInterface\x20New-NsxEdgeSubInterfaceSpec\x20New-NsxFirewallRule\x20New-NsxFirewallSavedConfiguration\x20New-NsxFirewallSection\x20New-NsxIpPool\x20New-NsxIpSet\x20New-NsxLoadBalancerApplicationProfile\x20New-NsxLoadBalancerApplicationRule\x20New-NsxLoadBalancerMemberSpec\x20New-NsxLoadBalancerMonitor\x20New-NsxLoadBalancerPool\x20New-NsxLogicalRouter\x20New-NsxLogicalRouterBgpNeighbour\x20New-NsxLogicalRouterBridge\x20New-NsxLogicalRouterInterface\x20New-NsxLogicalRouterInterfaceSpec\x20New-NsxLogicalRouterOspfArea\x20New-NsxLogicalRouterOspfInterface\x20New-NsxLogicalRouterPrefix\x20New-NsxLogicalRouterRedistributionRule\x20New-NsxLogicalRouterStaticRoute\x20New-NsxLogicalSwitch\x20New-NsxMacSet\x20New-NsxManager\x20New-NsxSecurityGroup\x20New-NsxSecurityPolicy\x20New-NsxSecurityPolicyAssignment\x20New-NsxSecurityPolicyFirewallRuleSpec\x20New-NsxSecurityPolicyGuestIntrospectionSpec\x20New-NsxSecurityPolicyNetworkIntrospectionSpec\x20New-NsxSecurityTag\x20New-NsxSecurityTagAssignment\x20New-NsxSegmentIdRange\x20New-NsxService\x20New-NsxServiceGroup\x20New-NsxSpoofguardPolicy\x20New-NsxSslVpnAuthServer\x20New-NsxSslVpnClientInstallationPackage\x20New-NsxSslVpnIpPool\x20New-NsxSslVpnPrivateNetwork\x20New-NsxSslVpnUser\x20New-NsxTransportZone\x20New-NsxVdsContext\x20New-OSCustomizationNicMapping\x20New-OSCustomizationSpec\x20New-Org\x20New-OrgNetwork\x20New-OrgVdc\x20New-OrgVdcNetwork\x20New-ResourcePool\x20New-ScriptFileInfo\x20New-ScsiController\x20New-Snapshot\x20New-SpbmRule\x20New-SpbmRuleSet\x20New-SpbmStoragePolicy\x20New-StatInterval\x20New-Tag\x20New-TagAssignment\x20New-TagCategory\x20New-Template\x20New-TemporaryFile\x20New-VAIOFilter\x20New-VApp\x20New-VDPortgroup\x20New-VDSwitch\x20New-VDSwitchPrivateVlan\x20New-VDisk\x20New-VICredentialStoreItem\x20New-VIInventoryDrive\x20New-VIPermission\x20New-VIProperty\x20New-VIRole\x20New-VISamlSecurityContext\x20New-VM\x20New-VMHostAccount\x20New-VMHostNetworkAdapter\x20New-VMHostProfile\x20New-VMHostProfileVmPortGroupConfiguration\x20New-VMHostRoute\x20New-VTpm\x20New-VasaProvider\x20New-VcsOAuthSecurityContext\x20New-VirtualPortGroup\x20New-VirtualSwitch\x20New-VsanDisk\x20New-VsanDiskGroup\x20New-VsanFaultDomain\x20New-VsanIscsiInitiatorGroup\x20New-VsanIscsiInitiatorGroupTargetAssociation\x20New-VsanIscsiLun\x20New-VsanIscsiTarget\x20New-vRABusinessGroup\x20New-vRAEntitlement\x20New-vRAExternalNetworkProfile\x20New-vRAGroupPrincipal\x20New-vRANATNetworkProfile\x20New-vRANetworkProfileIPRangeDefinition\x20New-vRAPackage\x20New-vRAPropertyDefinition\x20New-vRAPropertyGroup\x20New-vRAReservation\x20New-vRAReservationNetworkDefinition\x20New-vRAReservationPolicy\x20New-vRAReservationStorageDefinition\x20New-vRARoutedNetworkProfile\x20New-vRAService\x20New-vRAStorageReservationPolicy\x20New-vRATenant\x20New-vRATenantDirectory\x20New-vRAUserPrincipal\x20New-vRNIApplication\x20New-vRNIApplicationTier\x20New-vRNIDataSource\x20Open-VMConsoleWindow\x20Publish-Module\x20Publish-NsxSpoofguardPolicy\x20Publish-Script\x20Register-PSRepository\x20Register-PackageSource\x20Remove-AdvancedSetting\x20Remove-AlarmAction\x20Remove-AlarmActionTrigger\x20Remove-Alias\x20Remove-CDDrive\x20Remove-CIAccessControlRule\x20Remove-CIVApp\x20Remove-CIVAppNetwork\x20Remove-CIVAppTemplate\x20Remove-Cluster\x20Remove-CustomAttribute\x20Remove-Datacenter\x20Remove-Datastore\x20Remove-DatastoreCluster\x20Remove-DrsClusterGroup\x20Remove-DrsRule\x20Remove-DrsVMHostRule\x20Remove-FloppyDrive\x20Remove-Folder\x20Remove-HCXAppliance\x20Remove-HCXNetworkExtension\x20Remove-HCXReplication\x20Remove-HCXSitePairing\x20Remove-HardDisk\x20Remove-IScsiHbaTarget\x20Remove-Inventory\x20Remove-KeyManagementServer\x20Remove-NetworkAdapter\x20Remove-NfsUser\x20Remove-NsxCluster\x20Remove-NsxClusterVxlanConfig\x20Remove-NsxController\x20Remove-NsxDynamicCriteria\x20Remove-NsxDynamicMemberSet\x20Remove-NsxEdge\x20Remove-NsxEdgeBgpNeighbour\x20Remove-NsxEdgeCertificate\x20Remove-NsxEdgeCsr\x20Remove-NsxEdgeFirewallRule\x20Remove-NsxEdgeInterfaceAddress\x20Remove-NsxEdgeNatRule\x20Remove-NsxEdgeOspfArea\x20Remove-NsxEdgeOspfInterface\x20Remove-NsxEdgePrefix\x20Remove-NsxEdgeRedistributionRule\x20Remove-NsxEdgeStaticRoute\x20Remove-NsxEdgeSubInterface\x20Remove-NsxFirewallExclusionListMember\x20Remove-NsxFirewallRule\x20Remove-NsxFirewallRuleMember\x20Remove-NsxFirewallSavedConfiguration\x20Remove-NsxFirewallSection\x20Remove-NsxIpPool\x20Remove-NsxIpSet\x20Remove-NsxIpSetMember\x20Remove-NsxLoadBalancerApplicationProfile\x20Remove-NsxLoadBalancerMonitor\x20Remove-NsxLoadBalancerPool\x20Remove-NsxLoadBalancerPoolMember\x20Remove-NsxLoadBalancerVip\x20Remove-NsxLogicalRouter\x20Remove-NsxLogicalRouterBgpNeighbour\x20Remove-NsxLogicalRouterBridge\x20Remove-NsxLogicalRouterInterface\x20Remove-NsxLogicalRouterOspfArea\x20Remove-NsxLogicalRouterOspfInterface\x20Remove-NsxLogicalRouterPrefix\x20Remove-NsxLogicalRouterRedistributionRule\x20Remove-NsxLogicalRouterStaticRoute\x20Remove-NsxLogicalSwitch\x20Remove-NsxMacSet\x20Remove-NsxSecondaryManager\x20Remove-NsxSecurityGroup\x20Remove-NsxSecurityGroupMember\x20Remove-NsxSecurityPolicy\x20Remove-NsxSecurityPolicyAssignment\x20Remove-NsxSecurityPolicyRule\x20Remove-NsxSecurityPolicyRuleGroup\x20Remove-NsxSecurityPolicyRuleService\x20Remove-NsxSecurityTag\x20Remove-NsxSecurityTagAssignment\x20Remove-NsxSegmentIdRange\x20Remove-NsxService\x20Remove-NsxServiceGroup\x20Remove-NsxSpoofguardPolicy\x20Remove-NsxSslVpnClientInstallationPackage\x20Remove-NsxSslVpnIpPool\x20Remove-NsxSslVpnPrivateNetwork\x20Remove-NsxSslVpnUser\x20Remove-NsxTransportZone\x20Remove-NsxTransportZoneMember\x20Remove-NsxVdsContext\x20Remove-OSCustomizationNicMapping\x20Remove-OSCustomizationSpec\x20Remove-Org\x20Remove-OrgNetwork\x20Remove-OrgVdc\x20Remove-OrgVdcNetwork\x20Remove-PSReadLineKeyHandler\x20Remove-PassthroughDevice\x20Remove-ResourcePool\x20Remove-Snapshot\x20Remove-SpbmStoragePolicy\x20Remove-StatInterval\x20Remove-Tag\x20Remove-TagAssignment\x20Remove-TagCategory\x20Remove-Template\x20Remove-UsbDevice\x20Remove-VAIOFilter\x20Remove-VApp\x20Remove-VDPortGroup\x20Remove-VDSwitch\x20Remove-VDSwitchPhysicalNetworkAdapter\x20Remove-VDSwitchPrivateVlan\x20Remove-VDSwitchVMHost\x20Remove-VDisk\x20Remove-VICredentialStoreItem\x20Remove-VIPermission\x20Remove-VIProperty\x20Remove-VIRole\x20Remove-VM\x20Remove-VMHost\x20Remove-VMHostAccount\x20Remove-VMHostNetworkAdapter\x20Remove-VMHostNtpServer\x20Remove-VMHostProfile\x20Remove-VMHostProfileVmPortGroupConfiguration\x20Remove-VMHostRoute\x20Remove-VTpm\x20Remove-VasaProvider\x20Remove-VirtualPortGroup\x20Remove-VirtualSwitch\x20Remove-VirtualSwitchPhysicalNetworkAdapter\x20Remove-VsanDisk\x20Remove-VsanDiskGroup\x20Remove-VsanFaultDomain\x20Remove-VsanIscsiInitiatorGroup\x20Remove-VsanIscsiInitiatorGroupTargetAssociation\x20Remove-VsanIscsiLun\x20Remove-VsanIscsiTarget\x20Remove-vRABusinessGroup\x20Remove-vRACustomForm\x20Remove-vRAExternalNetworkProfile\x20Remove-vRAGroupPrincipal\x20Remove-vRAIcon\x20Remove-vRANATNetworkProfile\x20Remove-vRAPackage\x20Remove-vRAPrincipalFromTenantRole\x20Remove-vRAPropertyDefinition\x20Remove-vRAPropertyGroup\x20Remove-vRAReservation\x20Remove-vRAReservationNetwork\x20Remove-vRAReservationPolicy\x20Remove-vRAReservationStorage\x20Remove-vRARoutedNetworkProfile\x20Remove-vRAService\x20Remove-vRAStorageReservationPolicy\x20Remove-vRATenant\x20Remove-vRATenantDirectory\x20Remove-vRAUserPrincipal\x20Remove-vRNIApplication\x20Remove-vRNIApplicationTier\x20Remove-vRNIDataSource\x20Repair-NsxEdge\x20Repair-VsanObject\x20Request-vRACatalogItem\x20Request-vRAResourceAction\x20Restart-CIVApp\x20Restart-CIVAppGuest\x20Restart-CIVM\x20Restart-CIVMGuest\x20Restart-VM\x20Restart-VMGuest\x20Restart-VMHost\x20Restart-VMHostService\x20Resume-HCXReplication\x20Revoke-NsxSpoofguardNicApproval\x20Save-Module\x20Save-Package\x20Save-Script\x20Search-Cloud\x20Set-AdvancedSetting\x20Set-AlarmDefinition\x20Set-Annotation\x20Set-CDDrive\x20Set-CIAccessControlRule\x20Set-CINetworkAdapter\x20Set-CIVApp\x20Set-CIVAppNetwork\x20Set-CIVAppStartRule\x20Set-CIVAppTemplate\x20Set-Cluster\x20Set-CustomAttribute\x20Set-Datacenter\x20Set-Datastore\x20Set-DatastoreCluster\x20Set-DrsClusterGroup\x20Set-DrsRule\x20Set-DrsVMHostRule\x20Set-FloppyDrive\x20Set-Folder\x20Set-HCXAppliance\x20Set-HCXMigration\x20Set-HCXReplication\x20Set-HardDisk\x20Set-IScsiHbaTarget\x20Set-KeyManagementServer\x20Set-KmsCluster\x20Set-MarkdownOption\x20Set-NetworkAdapter\x20Set-NfsUser\x20Set-NicTeamingPolicy\x20Set-NodeExclusiveResources\x20Set-NodeManager\x20Set-NodeResourceSource\x20Set-NodeResources\x20Set-NsxEdge\x20Set-NsxEdgeBgp\x20Set-NsxEdgeFirewall\x20Set-NsxEdgeInterface\x20Set-NsxEdgeNat\x20Set-NsxEdgeOspf\x20Set-NsxEdgeRouting\x20Set-NsxFirewallGlobalConfiguration\x20Set-NsxFirewallRule\x20Set-NsxFirewallSavedConfiguration\x20Set-NsxFirewallThreshold\x20Set-NsxLoadBalancer\x20Set-NsxLoadBalancerPoolMember\x20Set-NsxLogicalRouter\x20Set-NsxLogicalRouterBgp\x20Set-NsxLogicalRouterBridging\x20Set-NsxLogicalRouterInterface\x20Set-NsxLogicalRouterOspf\x20Set-NsxLogicalRouterRouting\x20Set-NsxManager\x20Set-NsxManagerRole\x20Set-NsxManagerTimeSettings\x20Set-NsxSecurityPolicy\x20Set-NsxSecurityPolicyFirewallRule\x20Set-NsxSslVpn\x20Set-OSCustomizationNicMapping\x20Set-OSCustomizationSpec\x20Set-Org\x20Set-OrgNetwork\x20Set-OrgVdc\x20Set-OrgVdcNetwork\x20Set-PSCurrentConfigurationNode\x20Set-PSDefaultConfigurationDocument\x20Set-PSMetaConfigDocInsProcessedBeforeMeta\x20Set-PSMetaConfigVersionInfoV2\x20Set-PSReadLineKeyHandler\x20Set-PSReadLineOption\x20Set-PSRepository\x20Set-PSTopConfigurationName\x20Set-PackageSource\x20Set-PowerCLIConfiguration\x20Set-ResourcePool\x20Set-ScsiController\x20Set-ScsiLun\x20Set-ScsiLunPath\x20Set-SecurityPolicy\x20Set-Snapshot\x20Set-SpbmEntityConfiguration\x20Set-SpbmStoragePolicy\x20Set-StatInterval\x20Set-Tag\x20Set-TagCategory\x20Set-Template\x20Set-VAIOFilter\x20Set-VApp\x20Set-VDBlockedPolicy\x20Set-VDPort\x20Set-VDPortgroup\x20Set-VDPortgroupOverridePolicy\x20Set-VDSecurityPolicy\x20Set-VDSwitch\x20Set-VDTrafficShapingPolicy\x20Set-VDUplinkLacpPolicy\x20Set-VDUplinkTeamingPolicy\x20Set-VDVlanConfiguration\x20Set-VDisk\x20Set-VIPermission\x20Set-VIRole\x20Set-VM\x20Set-VMHost\x20Set-VMHostAccount\x20Set-VMHostAdvancedConfiguration\x20Set-VMHostAuthentication\x20Set-VMHostDiagnosticPartition\x20Set-VMHostFirewallDefaultPolicy\x20Set-VMHostFirewallException\x20Set-VMHostFirmware\x20Set-VMHostHba\x20Set-VMHostModule\x20Set-VMHostNetwork\x20Set-VMHostNetworkAdapter\x20Set-VMHostProfile\x20Set-VMHostProfileImageCacheConfiguration\x20Set-VMHostProfileStorageDeviceConfiguration\x20Set-VMHostProfileUserConfiguration\x20Set-VMHostProfileVmPortGroupConfiguration\x20Set-VMHostRoute\x20Set-VMHostService\x20Set-VMHostSnmp\x20Set-VMHostStartPolicy\x20Set-VMHostStorage\x20Set-VMHostSysLogServer\x20Set-VMQuestion\x20Set-VMResourceConfiguration\x20Set-VMStartPolicy\x20Set-VTpm\x20Set-VirtualPortGroup\x20Set-VirtualSwitch\x20Set-VsanClusterConfiguration\x20Set-VsanFaultDomain\x20Set-VsanIscsiInitiatorGroup\x20Set-VsanIscsiLun\x20Set-VsanIscsiTarget\x20Set-vRABusinessGroup\x20Set-vRACatalogItem\x20Set-vRACustomForm\x20Set-vRAEntitlement\x20Set-vRAExternalNetworkProfile\x20Set-vRANATNetworkProfile\x20Set-vRAReservation\x20Set-vRAReservationNetwork\x20Set-vRAReservationPolicy\x20Set-vRAReservationStorage\x20Set-vRARoutedNetworkProfile\x20Set-vRAService\x20Set-vRAStorageReservationPolicy\x20Set-vRATenant\x20Set-vRATenantDirectory\x20Set-vRAUserPrincipal\x20Set-vRNIDataSourceSNMPConfig\x20Show-Markdown\x20Start-CIVApp\x20Start-CIVM\x20Start-HCXMigration\x20Start-HCXReplication\x20Start-SpbmReplicationFailover\x20Start-SpbmReplicationPrepareFailover\x20Start-SpbmReplicationPromote\x20Start-SpbmReplicationReverse\x20Start-SpbmReplicationTestFailover\x20Start-ThreadJob\x20Start-VApp\x20Start-VM\x20Start-VMHost\x20Start-VMHostService\x20Start-VsanClusterDiskUpdate\x20Start-VsanClusterRebalance\x20Start-VsanEncryptionConfiguration\x20Stop-CIVApp\x20Stop-CIVAppGuest\x20Stop-CIVM\x20Stop-CIVMGuest\x20Stop-SpbmReplicationTestFailover\x20Stop-Task\x20Stop-VApp\x20Stop-VM\x20Stop-VMGuest\x20Stop-VMHost\x20Stop-VMHostService\x20Stop-VsanClusterRebalance\x20Suspend-CIVApp\x20Suspend-CIVM\x20Suspend-HCXReplication\x20Suspend-VM\x20Suspend-VMGuest\x20Suspend-VMHost\x20Sync-SpbmReplicationGroup\x20Test-ConflictingResources\x20Test-HCXMigration\x20Test-HCXReplication\x20Test-Json\x20Test-ModuleReloadRequired\x20Test-MofInstanceText\x20Test-NodeManager\x20Test-NodeResourceSource\x20Test-NodeResources\x20Test-ScriptFileInfo\x20Test-VMHostProfileCompliance\x20Test-VMHostSnmp\x20Test-VsanClusterHealth\x20Test-VsanNetworkPerformance\x20Test-VsanStoragePerformance\x20Test-VsanVMCreation\x20Test-vRAPackage\x20Uninstall-Module\x20Uninstall-Package\x20Uninstall-Script\x20Unlock-VM\x20Unregister-PSRepository\x20Unregister-PackageSource\x20Update-ConfigurationDocumentRef\x20Update-ConfigurationErrorCount\x20Update-DependsOn\x20Update-LocalConfigManager\x20Update-Module\x20Update-ModuleManifest\x20Update-ModuleVersion\x20Update-PowerNsx\x20Update-Script\x20Update-ScriptFileInfo\x20Update-Tools\x20Update-VsanHclDatabase\x20ValidateUpdate-ConfigurationData\x20Wait-Debugger\x20Wait-NsxControllerJob\x20Wait-NsxGenericJob\x20Wait-NsxJob\x20Wait-Task\x20Wait-Tools\x20Write-Information\x20Write-Log\x20Write-MetaConfigFile\x20Write-NodeMOFFile','хвилина','matcher','useContentExp','[u]\x20[nedjelju]\x20[u]\x20LT','submitStatus','data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==','(\x5c-|\x5c+)?\x5cd+([./]\x5cd+)?','[\x5c$\x5c@]','Invalid\x20target\x20mode\x20\x22','removed','eka\x20disan','\x5c*?','gridster-no-drag','noIncrementMinutes','pbi','getPropertyValue','>','Missing\x20event\x20id\x20parameter','koko','IPv6','The\x20value\x20of\x20\x22defaultMaxListeners\x22\x20is\x20out\x20of\x20range.\x20It\x20must\x20be\x20a\x20non-negative\x20number.\x20Received\x20','defaultViewBoxSize','attachRipple','\x5c/\x5c*','Connection\x20Error','\x20\x20\x20\x20\x20max-range=\x22maxRange\x22\x20','create_node','setImmediate','onOpenComplete','/engine.io','missing\x20or\x20invalid\x20JsSIP.Socket\x20method:\x20','WⓌWẀẂŴẆẄẈⱲ','cols','%d\x20ár','performing\x20disconnect\x20(%s)','unzip','&visual=','spawn\x20spawn_link\x20self','router.$id','md-in-menu-bar','\x5cb(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\x5c()','let','defaultFontFamily','$normalize','titleBlock','шаб','toLocaleDateString','monthFormatter','ári','uib/template/timepicker/timepicker.html','ben','YYYY/MM/DD','ff69b4','_accepted','sortable-fallback','gruu','день','cop','#000','abort','animated','scrollingElement','\x20वर्सां','getContentElement','//player.vimeo.com/video/','xPadding','[ڪالهه]\x20LT','gggg','STATUS_CONNECTED','mdColorSliders','SonyDTV|HbbTV','md-left','transitionOutClass','mean','%q\x5c[','translateLanguageChanged','reloadState','DDD','[Hoje\x20às]\x20LT','^[A-Za-z0-9_.$]+:','صبح','\x20\x20\x20\x20\x20\x20{{\x20dialog.cancel\x20}}','value','UAS','contentWidth','frameborder','codepenEmbed','handleKeyDown','ariaValue','সন্ধ্যা','$watchCollection','mdp-animate-prev','\x5c$1','%d\x20mis','parseUrl','ps--active-x','BⒷBḂḄḆɃƂƁ','$viewVaue','creationData','TRANSITIONEND','hospital','trustAsHtml','[ui-view#','[Heddiw\x20am]\x20LT','sunny','ngChecked','moveDownElement','PopupCloseDelay','hasValue','resource','rgb(163,\x200,\x200)','වසර\x20%d','seminit','encoder','%d\x20secondes','FxiOS/[VER]','slugify','rgb(51,\x20255,\x20255)','movingItem','rgba(0,\x200,\x200,\x200)','visibleWatcher','md-on-select=\x22handleOnSelect($dates)\x22\x20','zephir','mozGetUserMedia','flow.img','\x5cb[a-zA-Z][a-zA-Z0-9_-]*','iced','600\x20700\x20800\x20900\x20A200\x20A400\x20A700','^[0-9]+\x20','ஞா_தி_செ_பு_வி_வெ_ச','formData','weeksInYear','settings','\x5cb[A-Z][A-Za-z0-9_]*','uibPopoverPopup','nonce=\x22','rgb(102,\x20102,\x20255)','BINARY_ACK','^^mdSelectMenu','webOS/[VER]','contentHeight','coerce','cache\x20database_names\x20database_schemanames\x20database_tablenames\x20define_tag\x20define_type\x20email_batch\x20encode_set\x20html_comment\x20handle\x20handle_error\x20header\x20if\x20inline\x20iterate\x20ljax_target\x20link\x20link_currentaction\x20link_currentgroup\x20link_currentrecord\x20link_detail\x20link_firstgroup\x20link_firstrecord\x20link_lastgroup\x20link_lastrecord\x20link_nextgroup\x20link_nextrecord\x20link_prevgroup\x20link_prevrecord\x20log\x20loop\x20namespace_using\x20output_none\x20portal\x20private\x20protect\x20records\x20referer\x20referrer\x20repeating\x20resultset\x20rows\x20search_args\x20search_arguments\x20select\x20sort_args\x20sort_arguments\x20thread_atomic\x20value_list\x20while\x20abort\x20case\x20else\x20fail_if\x20fail_ifnot\x20fail\x20if_empty\x20if_false\x20if_null\x20if_true\x20loop_abort\x20loop_continue\x20loop_count\x20params\x20params_up\x20return\x20return_value\x20run_children\x20soap_definetag\x20soap_lastrequest\x20soap_lastresponse\x20tag_name\x20ascending\x20average\x20by\x20define\x20descending\x20do\x20equals\x20frozen\x20group\x20handle_failure\x20import\x20in\x20into\x20join\x20let\x20match\x20max\x20min\x20on\x20order\x20parent\x20protected\x20provide\x20public\x20require\x20returnhome\x20skip\x20split_thread\x20sum\x20take\x20thread\x20to\x20trait\x20type\x20where\x20with\x20yield\x20yieldhome','nav-index','contentElement','eventType','![a-z]*','sena','_weekdaysShortStrictRegex','z9hG4bK','#bcaaa4','determineDataLimits','jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets','(//|\x22|#|/\x5c*|\x5cs+/\x5cw+)','hourValues','updateSnapshot','addPreset','footerMarginTop','white_square','%d\x20ਘੰਟੇ','%sකට\x20පෙර','(Procedure|Declare)(C|CDLL|DLL)?','variants','nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ','در\x20%s','(min-width:\x20960px)\x20and\x20(max-width:\x201279px)','terminating\x20session','$$uibDatepickerpopupCss','[Gëschter\x20um]\x20LT','rgb(51,\x20153,\x20255)','\x5c]\x5c[','ArchiveRecord\x20AreaLightSource\x20Atmosphere\x20Attribute\x20AttributeBegin\x20AttributeEnd\x20Basis\x20Begin\x20Blobby\x20Bound\x20Clipping\x20ClippingPlane\x20Color\x20ColorSamples\x20ConcatTransform\x20Cone\x20CoordinateSystem\x20CoordSysTransform\x20CropWindow\x20Curves\x20Cylinder\x20DepthOfField\x20Detail\x20DetailRange\x20Disk\x20Displacement\x20Display\x20End\x20ErrorHandler\x20Exposure\x20Exterior\x20Format\x20FrameAspectRatio\x20FrameBegin\x20FrameEnd\x20GeneralPolygon\x20GeometricApproximation\x20Geometry\x20Hider\x20Hyperboloid\x20Identity\x20Illuminate\x20Imager\x20Interior\x20LightSource\x20MakeCubeFaceEnvironment\x20MakeLatLongEnvironment\x20MakeShadow\x20MakeTexture\x20Matte\x20MotionBegin\x20MotionEnd\x20NuPatch\x20ObjectBegin\x20ObjectEnd\x20ObjectInstance\x20Opacity\x20Option\x20Orientation\x20Paraboloid\x20Patch\x20PatchMesh\x20Perspective\x20PixelFilter\x20PixelSamples\x20PixelVariance\x20Points\x20PointsGeneralPolygons\x20PointsPolygons\x20Polygon\x20Procedural\x20Projection\x20Quantize\x20ReadArchive\x20RelativeDetail\x20ReverseOrientation\x20Rotate\x20Scale\x20ScreenWindow\x20ShadingInterpolation\x20ShadingRate\x20Shutter\x20Sides\x20Skew\x20SolidBegin\x20SolidEnd\x20Sphere\x20SubdivisionMesh\x20Surface\x20TextureCoordinates\x20Torus\x20Transform\x20TransformBegin\x20TransformEnd\x20TransformPoints\x20Translate\x20TrimCurve\x20WorldBegin\x20WorldEnd','binary','rgb(255,255,255)','uib/template/datepicker/month.html','backdrop','rateDenominator','new\x20','stripTrailingSlashes','sip','typeahead-','do_lu_ma_mi_ju_vi_sá','Loop\x20Detected','saɛa','Controller','setUTCMinutes','tickWidth','getItem','all\x20alter\x20analyze\x20and\x20any\x20array\x20as\x20asc\x20begin\x20between\x20binary\x20boolean\x20break\x20bucket\x20build\x20by\x20call\x20case\x20cast\x20cluster\x20collate\x20collection\x20commit\x20connect\x20continue\x20correlate\x20cover\x20create\x20database\x20dataset\x20datastore\x20declare\x20decrement\x20delete\x20derived\x20desc\x20describe\x20distinct\x20do\x20drop\x20each\x20element\x20else\x20end\x20every\x20except\x20exclude\x20execute\x20exists\x20explain\x20fetch\x20first\x20flatten\x20for\x20force\x20from\x20function\x20grant\x20group\x20gsi\x20having\x20if\x20ignore\x20ilike\x20in\x20include\x20increment\x20index\x20infer\x20inline\x20inner\x20insert\x20intersect\x20into\x20is\x20join\x20key\x20keys\x20keyspace\x20known\x20last\x20left\x20let\x20letting\x20like\x20limit\x20lsm\x20map\x20mapping\x20matched\x20materialized\x20merge\x20minus\x20namespace\x20nest\x20not\x20number\x20object\x20offset\x20on\x20option\x20or\x20order\x20outer\x20over\x20parse\x20partition\x20password\x20path\x20pool\x20prepare\x20primary\x20private\x20privilege\x20procedure\x20public\x20raw\x20realm\x20reduce\x20rename\x20return\x20returning\x20revoke\x20right\x20role\x20rollback\x20satisfies\x20schema\x20select\x20self\x20semi\x20set\x20show\x20some\x20start\x20statistics\x20string\x20system\x20then\x20to\x20transaction\x20trigger\x20truncate\x20under\x20union\x20unique\x20unknown\x20unnest\x20unset\x20update\x20upsert\x20use\x20user\x20using\x20validate\x20value\x20valued\x20values\x20via\x20view\x20when\x20where\x20while\x20with\x20within\x20work\x20xor','railXWidth','uibTypeaheadMatch','ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر','&part=snippet,statistics','iput','record-route','uns\x20segons','getViewValue','domNode','$translateReady','ngDateFilter','IncomingRequest','munud','bookmark_tabs','encodeBase64Packet','sin','md-with-secondary','%s后','ms-my','formatYear','adjustTop','c71585','[ihttin\x20ti]\x20LT','goto/16','onShowing','newVisibleEnd','srcEvent','mⓜmḿṁṃɱɯ','writeBuffer','ship','bir\x20dakika','isindex','[object\x20Object]','<<\x5cs*[a-zA-Z_][a-zA-Z_0-9$]*\x5cs*>>','md-vertical','جولائی','\x5cb(((0[xX](([\x5cda-fA-F][\x5cda-fA-F_]*|_[\x5cda-fA-F][\x5cda-fA-F_]*)\x5c.([\x5cda-fA-F][\x5cda-fA-F_]*|_[\x5cda-fA-F][\x5cda-fA-F_]*)|\x5c.?([\x5cda-fA-F][\x5cda-fA-F_]*|_[\x5cda-fA-F][\x5cda-fA-F_]*))[pP][+-]?(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd))|((0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd)(\x5c.\x5cd*|([eE][+-]?(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd)))|\x5cd+\x5c.(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd)(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd)|\x5c.(0|[1-9][\x5cd_]*)([eE][+-]?(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd))?))([fF]|L|i|[fF]i|Li)?|','has','\x20\x20\x20\x20','mdp-event.svg','borderJoinStyle','box','[Í\x20morgin\x20kl.]\x20LT','një\x20muaj','negate','icl','[上]ddddLT','waitingOnPromise','middle','womans_hat','beforeTickToLabelConversion','meta-string','propertyOf','saveSnapshot','\x20target','\x20network-cost\x20%d','group\x20clone\x20ms\x20master\x20location\x20colocation\x20order\x20fencing_topology\x20rsc_ticket\x20acl_target\x20acl_group\x20user\x20role\x20tag\x20xml','-ші','YYYYY','queuePromise','navigate-next.svg','kind','Dum_Lun_Mar_Mie_Joi_Vin_Sâm','კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ','h:mm:ss\x20a','#bdbdbd','_viewConfigs','md-no-proxy','dana','EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ','early-only','годину_години_годин','PluginBase','^ngModel','fallbackOnBody','instantiate','ssrcGroups','[object\x20Uint16Array]','column',':\x20(','pattern','interface\x20extends','#7b1fa2','iteratee',';tag=','dismiss','disableAutodetect','=?mdDelay','puS\x20lup','md-focus','HashLocationService','blush','stripLastPathElement','prieš\x20%s','ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳','\x5c]$','\x20сар','modalAnimation','\x5c^\x5c{','wrapperId','processing','statefulFilter','%d\x20sekondes','toUpperCase','ngAnimateSwap','categorySpacing','true\x20false\x20unknown\x20inf\x20minf\x20ind\x20und\x20%e\x20%i\x20%pi\x20%phi\x20%gamma','controllers','unnest','[prošlog]\x20[utorka]\x20[u]\x20LT','watermelon','parseSimulcastStreamList','před\x20%s','\x22\x20autoplay=\x22false\x22\x20frameborder=\x220\x22\x20scrolling=\x22no\x22\x20allowfullscreen=\x22true\x22>','UA\x20is\x20in\x20READY\x20status,\x20not\x20restarted','ddd,\x20Do\x20MMM\x20YYYY,\x20[klo]\x20HH.mm','momentProperties','namespace\x20const\x20typedef\x20struct\x20enum\x20service\x20exception\x20void\x20oneway\x20set\x20list\x20map\x20required\x20optional','[данас\x20у]\x20LT','[Leschte]\x20dddd\x20[um]\x20LT','_md-datepicker-has-calendar-icon','fade','expires','isPrevDisabled','ts-refclk:%s','setupArrowkeyEvents','MdContactChipsCtrl','0x[0-9a-f]+','sewulan','school_satchel','transitionHook','verilog','neckbeard','z1000|Z99\x202G|z930|z990|z909|Z919|z900','%d\x20tassaɛin','ngCsv.config','draw','%[Qwi]?\x5c[','\x5cB\x27(?![\x27\x5cs])','useOnSelect','clock12','utcOffset','createRange','outsideClick','session\x20onmute','parseMessage()\x20|','u7533','basicImage','Do\x20MMMM[ta]\x20YYYY','חודש','[फाल्यां]\x20LT','D.\x20MMMM\x20YYYY','một\x20phút','changeDisplayDate','styles','house_with_garden','onLoaderError','uib/template/popover/popover-template.html','instanceReady','detectOS','_start','జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్','fearful','umbrella','timer_F',')\x5c.?','%d\x20дакика','hbs','checkboxesView','%d\x20седмици','hoverRow','miesiące','writing\x20close\x20packet','control','SIP','chartDoughnut','aayá\x20%d','toasty-clear','focusMenuContainer','scss','$mdMenu.open($event)','D\x20[de]\x20MMMM\x20[de]\x20YYYY','អា_ច_អ_ព_ព្រ_សុ_ស','`.+?\x27','iphone','tera’\x20jar\x20wa’_tera’\x20jar\x20cha’_tera’\x20jar\x20wej_tera’\x20jar\x20loS_tera’\x20jar\x20vagh_tera’\x20jar\x20jav_tera’\x20jar\x20Soch_tera’\x20jar\x20chorgh_tera’\x20jar\x20Hut_tera’\x20jar\x20wa’maH_tera’\x20jar\x20wa’maH\x20wa’_tera’\x20jar\x20wa’maH\x20cha’','d2b48c','waxing_gibbous_moon','_cancel_reason','selectNext','[prošle]\x20[nedjelje]\x20[u]\x20LT','_nulling','put\x20abs\x20acos\x20aliasReference\x20annuity\x20arrayDecode\x20arrayEncode\x20asin\x20atan\x20atan2\x20average\x20avg\x20avgDev\x20base64Decode\x20base64Encode\x20baseConvert\x20binaryDecode\x20binaryEncode\x20byteOffset\x20byteToNum\x20cachedURL\x20cachedURLs\x20charToNum\x20cipherNames\x20codepointOffset\x20codepointProperty\x20codepointToNum\x20codeunitOffset\x20commandNames\x20compound\x20compress\x20constantNames\x20cos\x20date\x20dateFormat\x20decompress\x20difference\x20directories\x20diskSpace\x20DNSServers\x20exp\x20exp1\x20exp2\x20exp10\x20extents\x20files\x20flushEvents\x20folders\x20format\x20functionNames\x20geometricMean\x20global\x20globals\x20hasMemory\x20harmonicMean\x20hostAddress\x20hostAddressToName\x20hostName\x20hostNameToAddress\x20isNumber\x20ISOToMac\x20itemOffset\x20keys\x20len\x20length\x20libURLErrorData\x20libUrlFormData\x20libURLftpCommand\x20libURLLastHTTPHeaders\x20libURLLastRHHeaders\x20libUrlMultipartFormAddPart\x20libUrlMultipartFormData\x20libURLVersion\x20lineOffset\x20ln\x20ln1\x20localNames\x20log\x20log2\x20log10\x20longFilePath\x20lower\x20macToISO\x20matchChunk\x20matchText\x20matrixMultiply\x20max\x20md5Digest\x20median\x20merge\x20messageAuthenticationCode\x20messageDigest\x20millisec\x20millisecs\x20millisecond\x20milliseconds\x20min\x20monthNames\x20nativeCharToNum\x20normalizeText\x20num\x20number\x20numToByte\x20numToChar\x20numToCodepoint\x20numToNativeChar\x20offset\x20open\x20openfiles\x20openProcesses\x20openProcessIDs\x20openSockets\x20paragraphOffset\x20paramCount\x20param\x20params\x20peerAddress\x20pendingMessages\x20platform\x20popStdDev\x20populationStandardDeviation\x20populationVariance\x20popVariance\x20processID\x20random\x20randomBytes\x20replaceText\x20result\x20revCreateXMLTree\x20revCreateXMLTreeFromFile\x20revCurrentRecord\x20revCurrentRecordIsFirst\x20revCurrentRecordIsLast\x20revDatabaseColumnCount\x20revDatabaseColumnIsNull\x20revDatabaseColumnLengths\x20revDatabaseColumnNames\x20revDatabaseColumnNamed\x20revDatabaseColumnNumbered\x20revDatabaseColumnTypes\x20revDatabaseConnectResult\x20revDatabaseCursors\x20revDatabaseID\x20revDatabaseTableNames\x20revDatabaseType\x20revDataFromQuery\x20revdb_closeCursor\x20revdb_columnbynumber\x20revdb_columncount\x20revdb_columnisnull\x20revdb_columnlengths\x20revdb_columnnames\x20revdb_columntypes\x20revdb_commit\x20revdb_connect\x20revdb_connections\x20revdb_connectionerr\x20revdb_currentrecord\x20revdb_cursorconnection\x20revdb_cursorerr\x20revdb_cursors\x20revdb_dbtype\x20revdb_disconnect\x20revdb_execute\x20revdb_iseof\x20revdb_isbof\x20revdb_movefirst\x20revdb_movelast\x20revdb_movenext\x20revdb_moveprev\x20revdb_query\x20revdb_querylist\x20revdb_recordcount\x20revdb_rollback\x20revdb_tablenames\x20revGetDatabaseDriverPath\x20revNumberOfRecords\x20revOpenDatabase\x20revOpenDatabases\x20revQueryDatabase\x20revQueryDatabaseBlob\x20revQueryResult\x20revQueryIsAtStart\x20revQueryIsAtEnd\x20revUnixFromMacPath\x20revXMLAttribute\x20revXMLAttributes\x20revXMLAttributeValues\x20revXMLChildContents\x20revXMLChildNames\x20revXMLCreateTreeFromFileWithNamespaces\x20revXMLCreateTreeWithNamespaces\x20revXMLDataFromXPathQuery\x20revXMLEvaluateXPath\x20revXMLFirstChild\x20revXMLMatchingNode\x20revXMLNextSibling\x20revXMLNodeContents\x20revXMLNumberOfChildren\x20revXMLParent\x20revXMLPreviousSibling\x20revXMLRootNode\x20revXMLRPC_CreateRequest\x20revXMLRPC_Documents\x20revXMLRPC_Error\x20revXMLRPC_GetHost\x20revXMLRPC_GetMethod\x20revXMLRPC_GetParam\x20revXMLText\x20revXMLRPC_Execute\x20revXMLRPC_GetParamCount\x20revXMLRPC_GetParamNode\x20revXMLRPC_GetParamType\x20revXMLRPC_GetPath\x20revXMLRPC_GetPort\x20revXMLRPC_GetProtocol\x20revXMLRPC_GetRequest\x20revXMLRPC_GetResponse\x20revXMLRPC_GetSocket\x20revXMLTree\x20revXMLTrees\x20revXMLValidateDTD\x20revZipDescribeItem\x20revZipEnumerateItems\x20revZipOpenArchives\x20round\x20sampVariance\x20sec\x20secs\x20seconds\x20sentenceOffset\x20sha1Digest\x20shell\x20shortFilePath\x20sin\x20specialFolderPath\x20sqrt\x20standardDeviation\x20statRound\x20stdDev\x20sum\x20sysError\x20systemVersion\x20tan\x20tempName\x20textDecode\x20textEncode\x20tick\x20ticks\x20time\x20to\x20tokenOffset\x20toLower\x20toUpper\x20transpose\x20truewordOffset\x20trunc\x20uniDecode\x20uniEncode\x20upper\x20URLDecode\x20URLEncode\x20URLStatus\x20uuid\x20value\x20variableNames\x20variance\x20version\x20waitDepth\x20weekdayNames\x20wordOffset\x20xsltApplyStylesheet\x20xsltApplyStylesheetFromFile\x20xsltLoadStylesheet\x20xsltLoadStylesheetFromFile\x20add\x20breakpoint\x20cancel\x20clear\x20local\x20variable\x20file\x20word\x20line\x20folder\x20directory\x20URL\x20close\x20socket\x20process\x20combine\x20constant\x20convert\x20create\x20new\x20alias\x20folder\x20directory\x20decrypt\x20delete\x20variable\x20word\x20line\x20folder\x20directory\x20URL\x20dispatch\x20divide\x20do\x20encrypt\x20filter\x20get\x20include\x20intersect\x20kill\x20libURLDownloadToFile\x20libURLFollowHttpRedirects\x20libURLftpUpload\x20libURLftpUploadFile\x20libURLresetAll\x20libUrlSetAuthCallback\x20libURLSetDriver\x20libURLSetCustomHTTPHeaders\x20libUrlSetExpect100\x20libURLSetFTPListCommand\x20libURLSetFTPMode\x20libURLSetFTPStopTime\x20libURLSetStatusCallback\x20load\x20extension\x20loadedExtensions\x20multiply\x20socket\x20prepare\x20process\x20post\x20seek\x20rel\x20relative\x20read\x20from\x20process\x20rename\x20replace\x20require\x20resetAll\x20resolve\x20revAddXMLNode\x20revAppendXML\x20revCloseCursor\x20revCloseDatabase\x20revCommitDatabase\x20revCopyFile\x20revCopyFolder\x20revCopyXMLNode\x20revDeleteFolder\x20revDeleteXMLNode\x20revDeleteAllXMLTrees\x20revDeleteXMLTree\x20revExecuteSQL\x20revGoURL\x20revInsertXMLNode\x20revMoveFolder\x20revMoveToFirstRecord\x20revMoveToLastRecord\x20revMoveToNextRecord\x20revMoveToPreviousRecord\x20revMoveToRecord\x20revMoveXMLNode\x20revPutIntoXMLNode\x20revRollBackDatabase\x20revSetDatabaseDriverPath\x20revSetXMLAttribute\x20revXMLRPC_AddParam\x20revXMLRPC_DeleteAllDocuments\x20revXMLAddDTD\x20revXMLRPC_Free\x20revXMLRPC_FreeAll\x20revXMLRPC_DeleteDocument\x20revXMLRPC_DeleteParam\x20revXMLRPC_SetHost\x20revXMLRPC_SetMethod\x20revXMLRPC_SetPort\x20revXMLRPC_SetProtocol\x20revXMLRPC_SetSocket\x20revZipAddItemWithData\x20revZipAddItemWithFile\x20revZipAddUncompressedItemWithData\x20revZipAddUncompressedItemWithFile\x20revZipCancel\x20revZipCloseArchive\x20revZipDeleteItem\x20revZipExtractItemToFile\x20revZipExtractItemToVariable\x20revZipSetProgressCallback\x20revZipRenameItem\x20revZipReplaceItemWithData\x20revZipReplaceItemWithFile\x20revZipOpenArchive\x20send\x20set\x20sort\x20split\x20start\x20stop\x20subtract\x20symmetric\x20union\x20unload\x20vectorDotProduct\x20wait\x20write','#aa00ff','patch','Si_Mo_Ti_Wo_To_Fr_So','Sunday','Text','refer_to','dolphin','minutė_minutės_minutę','cloneWith','gml','\x5c+1','svPlaceholder','dates','_configureTrapFocus','phones','@(?:file|property|field|get|set|receiver|param|setparam|delegate)\x5cs*:(?:\x5cs*','CustomEvent','#0066FF','themoreyouknow','Supported:\x20','ps-scroll-up','rugby_football','mw-form-page-builder.html','encodeDashes','church','á\x20~míñ~úté','%d\x20سيڪنڊ','updateScope_','\x5cs=>','[Sini\x20lɛrɛ]\x20LT','$$nextSibling','`?[A-Z$_][0-9a-zA-Z$_]*','दोपहर','\x22\x20specified\x20for\x20md-menu\x20on\x20Y\x20axis.','getTime','INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY','%d\x20ਦਿਨ','handbag','[wa’leS]\x20LT','[yarın\x20saat]\x20LT','[Dziś\x20o]\x20LT','withOffsetX','mdColors','\x22uuid:\x22','[letzten]\x20dddd\x20[um]\x20LT\x20[Uhr]','xLabel','x-google-flag:%s','information_source','\x5cbL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\x5cb','helpers','N|0\x20P|0\x20X|0\x20a|0\x20ab\x20abc\x20abo\x20al\x20am\x20an|0\x20ar\x20arga\x20argd\x20arge\x20argdo\x20argg\x20argl\x20argu\x20as\x20au\x20aug\x20aun\x20b|0\x20bN\x20ba\x20bad\x20bd\x20be\x20bel\x20bf\x20bl\x20bm\x20bn\x20bo\x20bp\x20br\x20brea\x20breaka\x20breakd\x20breakl\x20bro\x20bufdo\x20buffers\x20bun\x20bw\x20c|0\x20cN\x20cNf\x20ca\x20cabc\x20caddb\x20cad\x20caddf\x20cal\x20cat\x20cb\x20cc\x20ccl\x20cd\x20ce\x20cex\x20cf\x20cfir\x20cgetb\x20cgete\x20cg\x20changes\x20chd\x20che\x20checkt\x20cl\x20cla\x20clo\x20cm\x20cmapc\x20cme\x20cn\x20cnew\x20cnf\x20cno\x20cnorea\x20cnoreme\x20co\x20col\x20colo\x20com\x20comc\x20comp\x20con\x20conf\x20cope\x20cp\x20cpf\x20cq\x20cr\x20cs\x20cst\x20cu\x20cuna\x20cunme\x20cw\x20delm\x20deb\x20debugg\x20delc\x20delf\x20dif\x20diffg\x20diffo\x20diffp\x20diffpu\x20diffs\x20diffthis\x20dig\x20di\x20dl\x20dell\x20dj\x20dli\x20do\x20doautoa\x20dp\x20dr\x20ds\x20dsp\x20e|0\x20ea\x20ec\x20echoe\x20echoh\x20echom\x20echon\x20el\x20elsei\x20em\x20en\x20endfo\x20endf\x20endt\x20endw\x20ene\x20ex\x20exe\x20exi\x20exu\x20f|0\x20files\x20filet\x20fin\x20fina\x20fini\x20fir\x20fix\x20fo\x20foldc\x20foldd\x20folddoc\x20foldo\x20for\x20fu\x20go\x20gr\x20grepa\x20gu\x20gv\x20ha\x20helpf\x20helpg\x20helpt\x20hi\x20hid\x20his\x20ia\x20iabc\x20if\x20ij\x20il\x20im\x20imapc\x20ime\x20ino\x20inorea\x20inoreme\x20int\x20is\x20isp\x20iu\x20iuna\x20iunme\x20j|0\x20ju\x20k|0\x20keepa\x20kee\x20keepj\x20lN\x20lNf\x20l|0\x20lad\x20laddb\x20laddf\x20la\x20lan\x20lat\x20lb\x20lc\x20lch\x20lcl\x20lcs\x20le\x20lefta\x20let\x20lex\x20lf\x20lfir\x20lgetb\x20lgete\x20lg\x20lgr\x20lgrepa\x20lh\x20ll\x20lla\x20lli\x20lmak\x20lm\x20lmapc\x20lne\x20lnew\x20lnf\x20ln\x20loadk\x20lo\x20loc\x20lockv\x20lol\x20lope\x20lp\x20lpf\x20lr\x20ls\x20lt\x20lu\x20lua\x20luad\x20luaf\x20lv\x20lvimgrepa\x20lw\x20m|0\x20ma\x20mak\x20map\x20mapc\x20marks\x20mat\x20me\x20menut\x20mes\x20mk\x20mks\x20mksp\x20mkv\x20mkvie\x20mod\x20mz\x20mzf\x20nbc\x20nb\x20nbs\x20new\x20nm\x20nmapc\x20nme\x20nn\x20nnoreme\x20noa\x20no\x20noh\x20norea\x20noreme\x20norm\x20nu\x20nun\x20nunme\x20ol\x20o|0\x20om\x20omapc\x20ome\x20on\x20ono\x20onoreme\x20opt\x20ou\x20ounme\x20ow\x20p|0\x20profd\x20prof\x20pro\x20promptr\x20pc\x20ped\x20pe\x20perld\x20po\x20popu\x20pp\x20pre\x20prev\x20ps\x20pt\x20ptN\x20ptf\x20ptj\x20ptl\x20ptn\x20ptp\x20ptr\x20pts\x20pu\x20pw\x20py3\x20python3\x20py3d\x20py3f\x20py\x20pyd\x20pyf\x20quita\x20qa\x20rec\x20red\x20redi\x20redr\x20redraws\x20reg\x20res\x20ret\x20retu\x20rew\x20ri\x20rightb\x20rub\x20rubyd\x20rubyf\x20rund\x20ru\x20rv\x20sN\x20san\x20sa\x20sal\x20sav\x20sb\x20sbN\x20sba\x20sbf\x20sbl\x20sbm\x20sbn\x20sbp\x20sbr\x20scrip\x20scripte\x20scs\x20se\x20setf\x20setg\x20setl\x20sf\x20sfir\x20sh\x20sim\x20sig\x20sil\x20sl\x20sla\x20sm\x20smap\x20smapc\x20sme\x20sn\x20sni\x20sno\x20snor\x20snoreme\x20sor\x20so\x20spelld\x20spe\x20spelli\x20spellr\x20spellu\x20spellw\x20sp\x20spr\x20sre\x20st\x20sta\x20startg\x20startr\x20star\x20stopi\x20stj\x20sts\x20sun\x20sunm\x20sunme\x20sus\x20sv\x20sw\x20sy\x20synti\x20sync\x20tN\x20tabN\x20tabc\x20tabdo\x20tabe\x20tabf\x20tabfir\x20tabl\x20tabm\x20tabnew\x20tabn\x20tabo\x20tabp\x20tabr\x20tabs\x20tab\x20ta\x20tags\x20tc\x20tcld\x20tclf\x20te\x20tf\x20th\x20tj\x20tl\x20tm\x20tn\x20to\x20tp\x20tr\x20try\x20ts\x20tu\x20u|0\x20undoj\x20undol\x20una\x20unh\x20unl\x20unlo\x20unm\x20unme\x20uns\x20up\x20ve\x20verb\x20vert\x20vim\x20vimgrepa\x20vi\x20viu\x20vie\x20vm\x20vmapc\x20vme\x20vne\x20vn\x20vnoreme\x20vs\x20vu\x20vunme\x20windo\x20w|0\x20wN\x20wa\x20wh\x20wi\x20winc\x20winp\x20wn\x20wp\x20wq\x20wqa\x20ws\x20wu\x20wv\x20x|0\x20xa\x20xmapc\x20xm\x20xme\x20xn\x20xnoreme\x20xu\x20xunme\x20y|0\x20z|0\x20~\x20Next\x20Print\x20append\x20abbreviate\x20abclear\x20aboveleft\x20all\x20amenu\x20anoremenu\x20args\x20argadd\x20argdelete\x20argedit\x20argglobal\x20arglocal\x20argument\x20ascii\x20autocmd\x20augroup\x20aunmenu\x20buffer\x20bNext\x20ball\x20badd\x20bdelete\x20behave\x20belowright\x20bfirst\x20blast\x20bmodified\x20bnext\x20botright\x20bprevious\x20brewind\x20break\x20breakadd\x20breakdel\x20breaklist\x20browse\x20bunload\x20bwipeout\x20change\x20cNext\x20cNfile\x20cabbrev\x20cabclear\x20caddbuffer\x20caddexpr\x20caddfile\x20call\x20catch\x20cbuffer\x20cclose\x20center\x20cexpr\x20cfile\x20cfirst\x20cgetbuffer\x20cgetexpr\x20cgetfile\x20chdir\x20checkpath\x20checktime\x20clist\x20clast\x20close\x20cmap\x20cmapclear\x20cmenu\x20cnext\x20cnewer\x20cnfile\x20cnoremap\x20cnoreabbrev\x20cnoremenu\x20copy\x20colder\x20colorscheme\x20command\x20comclear\x20compiler\x20continue\x20confirm\x20copen\x20cprevious\x20cpfile\x20cquit\x20crewind\x20cscope\x20cstag\x20cunmap\x20cunabbrev\x20cunmenu\x20cwindow\x20delete\x20delmarks\x20debug\x20debuggreedy\x20delcommand\x20delfunction\x20diffupdate\x20diffget\x20diffoff\x20diffpatch\x20diffput\x20diffsplit\x20digraphs\x20display\x20deletel\x20djump\x20dlist\x20doautocmd\x20doautoall\x20deletep\x20drop\x20dsearch\x20dsplit\x20edit\x20earlier\x20echo\x20echoerr\x20echohl\x20echomsg\x20else\x20elseif\x20emenu\x20endif\x20endfor\x20endfunction\x20endtry\x20endwhile\x20enew\x20execute\x20exit\x20exusage\x20file\x20filetype\x20find\x20finally\x20finish\x20first\x20fixdel\x20fold\x20foldclose\x20folddoopen\x20folddoclosed\x20foldopen\x20function\x20global\x20goto\x20grep\x20grepadd\x20gui\x20gvim\x20hardcopy\x20help\x20helpfind\x20helpgrep\x20helptags\x20highlight\x20hide\x20history\x20insert\x20iabbrev\x20iabclear\x20ijump\x20ilist\x20imap\x20imapclear\x20imenu\x20inoremap\x20inoreabbrev\x20inoremenu\x20intro\x20isearch\x20isplit\x20iunmap\x20iunabbrev\x20iunmenu\x20join\x20jumps\x20keepalt\x20keepmarks\x20keepjumps\x20lNext\x20lNfile\x20list\x20laddexpr\x20laddbuffer\x20laddfile\x20last\x20language\x20later\x20lbuffer\x20lcd\x20lchdir\x20lclose\x20lcscope\x20left\x20leftabove\x20lexpr\x20lfile\x20lfirst\x20lgetbuffer\x20lgetexpr\x20lgetfile\x20lgrep\x20lgrepadd\x20lhelpgrep\x20llast\x20llist\x20lmake\x20lmap\x20lmapclear\x20lnext\x20lnewer\x20lnfile\x20lnoremap\x20loadkeymap\x20loadview\x20lockmarks\x20lockvar\x20lolder\x20lopen\x20lprevious\x20lpfile\x20lrewind\x20ltag\x20lunmap\x20luado\x20luafile\x20lvimgrep\x20lvimgrepadd\x20lwindow\x20move\x20mark\x20make\x20mapclear\x20match\x20menu\x20menutranslate\x20messages\x20mkexrc\x20mksession\x20mkspell\x20mkvimrc\x20mkview\x20mode\x20mzscheme\x20mzfile\x20nbclose\x20nbkey\x20nbsart\x20next\x20nmap\x20nmapclear\x20nmenu\x20nnoremap\x20nnoremenu\x20noautocmd\x20noremap\x20nohlsearch\x20noreabbrev\x20noremenu\x20normal\x20number\x20nunmap\x20nunmenu\x20oldfiles\x20open\x20omap\x20omapclear\x20omenu\x20only\x20onoremap\x20onoremenu\x20options\x20ounmap\x20ounmenu\x20ownsyntax\x20print\x20profdel\x20profile\x20promptfind\x20promptrepl\x20pclose\x20pedit\x20perl\x20perldo\x20pop\x20popup\x20ppop\x20preserve\x20previous\x20psearch\x20ptag\x20ptNext\x20ptfirst\x20ptjump\x20ptlast\x20ptnext\x20ptprevious\x20ptrewind\x20ptselect\x20put\x20pwd\x20py3do\x20py3file\x20python\x20pydo\x20pyfile\x20quit\x20quitall\x20qall\x20read\x20recover\x20redo\x20redir\x20redraw\x20redrawstatus\x20registers\x20resize\x20retab\x20return\x20rewind\x20right\x20rightbelow\x20ruby\x20rubydo\x20rubyfile\x20rundo\x20runtime\x20rviminfo\x20substitute\x20sNext\x20sandbox\x20sargument\x20sall\x20saveas\x20sbuffer\x20sbNext\x20sball\x20sbfirst\x20sblast\x20sbmodified\x20sbnext\x20sbprevious\x20sbrewind\x20scriptnames\x20scriptencoding\x20scscope\x20set\x20setfiletype\x20setglobal\x20setlocal\x20sfind\x20sfirst\x20shell\x20simalt\x20sign\x20silent\x20sleep\x20slast\x20smagic\x20smapclear\x20smenu\x20snext\x20sniff\x20snomagic\x20snoremap\x20snoremenu\x20sort\x20source\x20spelldump\x20spellgood\x20spellinfo\x20spellrepall\x20spellundo\x20spellwrong\x20split\x20sprevious\x20srewind\x20stop\x20stag\x20startgreplace\x20startreplace\x20startinsert\x20stopinsert\x20stjump\x20stselect\x20sunhide\x20sunmap\x20sunmenu\x20suspend\x20sview\x20swapname\x20syntax\x20syntime\x20syncbind\x20tNext\x20tabNext\x20tabclose\x20tabedit\x20tabfind\x20tabfirst\x20tablast\x20tabmove\x20tabnext\x20tabonly\x20tabprevious\x20tabrewind\x20tag\x20tcl\x20tcldo\x20tclfile\x20tearoff\x20tfirst\x20throw\x20tjump\x20tlast\x20tmenu\x20tnext\x20topleft\x20tprevious\x20trewind\x20tselect\x20tunmenu\x20undo\x20undojoin\x20undolist\x20unabbreviate\x20unhide\x20unlet\x20unlockvar\x20unmap\x20unmenu\x20unsilent\x20update\x20vglobal\x20version\x20verbose\x20vertical\x20vimgrep\x20vimgrepadd\x20visual\x20viusage\x20view\x20vmap\x20vmapclear\x20vmenu\x20vnew\x20vnoremap\x20vnoremenu\x20vsplit\x20vunmap\x20vunmenu\x20write\x20wNext\x20wall\x20while\x20winsize\x20wincmd\x20winpos\x20wnext\x20wprevious\x20wqall\x20wsverb\x20wundo\x20wviminfo\x20xit\x20xall\x20xmapclear\x20xmap\x20xmenu\x20xnoremap\x20xnoremenu\x20xunmap\x20xunmenu\x20yank','Active','#5d4037','getElementsByName','capricorn','ਰਾਤ','clientWidth','дзень_дні_дзён','article','registerExpanded','isNaN','\x27\x20+\x0a__e(','FormImageBuilderId','MediaDevices','(\x5cW|$)','narrow','_reverseXPosition','%d\x20mìosan','شهران','DataView','PathUtils','[u]\x20[srijedu]\x20[u]\x20LT','md-autocomplete-wrap','','Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO','handlebars','imageField','MIN_DURATION','D.\x20MMMM\x20YYYY.\x20H:mm','uib/template/popover/popover.html','A700','ease','defaultFontSize','acronym','zzz','no_mouth','_md-panel-animate-scale-out\x20_md-panel-animate-enter\x20_md-panel-animate-leave','modalRendered','#ef5350','bufferedInputHandler','setHours','destroyTransaction','rest_arg','jitter','highlightClass','Removing\x20(previous)\x20el','FIRSTDAYOFWEEK','$setValidity','isSameOrBefore','មួយនាទី','samp','renderInverted','bfcpFloorCtrl','isWebRTCSupported','%d\x20ماه','','icecandidate','function\x20calls','inputDirective','um\x20dia','dropdownNested','applyThemeColors','Timer\x20J\x20expired\x20for\x20transaction\x20','rotate','_groups','IEMobile|MSIEMobile','_direction','\x20(KHTML,\x20like\x20Gecko)\x20Nodejs/','https:','$model','_connecting','SELECT','md-input','angular-toasty','keyword','@?mdEscapeOptions','ui.bootstrap.popover','_actualPosition','A200','id=%s\x20%s','Minute','padEnd','querySelectorAll','function\x20constructor|10\x20destructor|10\x20procedure|10\x20method|10','spades','put','menuitemradio','','GridsterResizable','#3399FF','virtualPageSelect','մի\x20քանի\x20վայրկյան','\x20de\x20','emit\x20\x22getusermediafailed\x22\x20[error:%o]','(-?)(\x5cb0[xX][a-fA-F0-9]+|(\x5cb\x5cd+(\x5c.\x5cd*)?|\x5c.\x5cd+)([eE][-+]?\x5cd+)?)','addGroup','blue','ESCAPE','public\x20protected\x20internal\x20private\x20constructor','beforeDraw','a8m.omit','abs\x20batch\x20capitalize\x20column\x20convert_encoding\x20date\x20date_modify\x20default\x20escape\x20filter\x20first\x20format\x20inky_to_html\x20inline_css\x20join\x20json_encode\x20keys\x20last\x20length\x20lower\x20map\x20markdown\x20merge\x20nl2br\x20number_format\x20raw\x20reduce\x20replace\x20reverse\x20round\x20slice\x20sort\x20spaceless\x20split\x20striptags\x20title\x20trim\x20upper\x20url_encode','preferredLanguage','getItems','resolver','u7a7a','loaderCache','%s\x20بعد','sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru','select_container_','getNg1ViewConfigFactory','a8m.math.abs','uibDateParser','fallbackTranslationResolver','FALLBACK_PHONE','[assant\x20g]\x20LT','kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ','_days','._md-chip-editing','rgb(102,\x20255,\x20102)','standard','^\x5c-','[prošlog]\x20[četvrtka]\x20[u]\x20LT','missing\x20channel\x20labels\x20property:\x20','previousItem','This\x20field\x20is\x20required','selector-attr','addBox',':\x20<-\x20Success\x20\x20','mdScrollShrink','scissors','en\x20uke','#fdd835','floatingScrollbars','md-checkbox','rage','\x5c*\x5c/','getLocalizationVal','_receiveInviteResponse','dim._lun._mar._mer._jeu._ven._sam.','centerHorizontally','%d\x20минут','ignoring\x20socket\x20cache\x20for\x20%s','art','defimpl\x20defmodule\x20defprotocol\x20defrecord','एक\x20दिवस','walking','%d\x20վայրկյան','numberOfPages','got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet','onPaginationChange','server\x20error','game_die','socket\x20error\x20%j','%d\x20เดือน','_randomizationFactor','distanceX','Dom_Seg_Ters_Kua_Kint_Sest_Sab','rgb(255,\x20102,\x20255)','$viewValue','igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata','.invalid',';ob','xhr','thumbs-up','T98\x204G|\x5cbP80\x5cb|\x5cbX90HD\x5cb|X98\x20Air|X98\x20Air\x203G|\x5cbX89\x5cb|P80\x203G|\x5cbX80h\x5cb|P98\x20Air|\x5cbX89HD\x5cb|P98\x203G|\x5cbP90HD\x5cb|P89\x203G|X98\x203G|\x5cbP70h\x5cb|P79HD\x203G|G18d\x203G|\x5cbP79HD\x5cb|\x5cbP89s\x5cb|\x5cbA88\x5cb|\x5cbP10HD\x5cb|\x5cbP19HD\x5cb|G18\x203G|\x5cbP78HD\x5cb|\x5cbA78\x5cb|\x5cbP75\x5cb|G17s\x203G|G17h\x203G|\x5cbP85t\x5cb|\x5cbP90\x5cb|\x5cbP11\x5cb|\x5cbP98t\x5cb|\x5cbP98HD\x5cb|\x5cbG18d\x5cb|\x5cbP85s\x5cb|\x5cbP11HD\x5cb|\x5cbP88s\x5cb|\x5cbA80HD\x5cb|\x5cbA80se\x5cb|\x5cbA10h\x5cb|\x5cbP89\x5cb|\x5cbP78s\x5cb|\x5cbG18\x5cb|\x5cbP85\x5cb|\x5cbA70h\x5cb|\x5cbA70\x5cb|\x5cbG17\x5cb|\x5cbP18\x5cb|\x5cbA80s\x5cb|\x5cbA11s\x5cb|\x5cbP88HD\x5cb|\x5cbA80h\x5cb|\x5cbP76s\x5cb|\x5cbP76h\x5cb|\x5cbP98\x5cb|\x5cbA10HD\x5cb|\x5cbP78\x5cb|\x5cbP88\x5cb|\x5cbA11\x5cb|\x5cbA10t\x5cb|\x5cbP76a\x5cb|\x5cbP76t\x5cb|\x5cbP76e\x5cb|\x5cbP85HD\x5cb|\x5cbP85a\x5cb|\x5cbP86\x5cb|\x5cbP75HD\x5cb|\x5cbP76v\x5cb|\x5cbA12\x5cb|\x5cbP75a\x5cb|\x5cbA15\x5cb|\x5cbP76Ti\x5cb|\x5cbP81HD\x5cb|\x5cbA10\x5cb|\x5cbT760VE\x5cb|\x5cbT720HD\x5cb|\x5cbP76\x5cb|\x5cbP73\x5cb|\x5cbP71\x5cb|\x5cbP72\x5cb|\x5cbT720SE\x5cb|\x5cbC520Ti\x5cb|\x5cbT760\x5cb|\x5cbT720VE\x5cb|T720-3GE|T720-WiFi','we\x20are\x20currently\x20writing\x20-\x20waiting\x20to\x20pause','-_-','getNumberOfDaysInMonth','97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2','មួយថ្ងៃ','unwatchItemSize_','Please\x20invoke\x20getUserMedia\x20once.','image-resolution','embedOptions','five','unregisterFn','availableItems','[\x20\x5ct\x5cf]*','border-image-slice','bullet','ty1','md-no-stick','item','beforeFit','\x5cb[a-z\x5cd_]*_t\x5cb','h++','exposing','Súl_Lún_Mai_Már_Xhú_Vié_Sát','meanBy','$$csp','','accent','Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu','where','\x27Helvetica\x20Neue\x27,\x20\x27Helvetica\x27,\x20\x27Arial\x27,\x20sans-serif','chars','two_women_holding_hands','a8m.uri-encode','animateWith','\x5c$[A-Za-z0-9_]+','transitionend','выр_тун_ытл_юн_кӗҫ_эрн_шӑм','\x5cb[A-Z][\x5cw]*(\x5c((\x5c.\x5c.|,|\x5cw+)\x5c))?','-theme.md-','set\x20sets\x20parameter\x20parameters\x20variable\x20variables\x20scalar\x20scalars\x20equation\x20equations','\x0d\x0a\x0d\x0a','statistics','floatItemsUp','timing','neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota','gridster-resized','tBodies','relativeTo','onTransportError()','annotate','வைகறை','un\x20nebeud\x20segondennoù','tokyo_tower','[*!#%]','attach','sendRequest()','^dsconfig','$$ngMessageNode','restroom','1\x20dzień','dddd,\x20D\x20MMMM\x20YYYY\x20HH:mm','|\x5cb(return)\x5cb)\x5cs*','b22222','RFC2833','in\x20by\x20as','فيبروري','\x22optional\x22','ffd700','updateSocketIds','dni','sockets','[прошлог]\x20[уторка]\x20[у]\x20LT','twitchtvEmbed','inputContainer','[Idag]\x20LT','wrapFn','\x0a}\x0a','.ne-code','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','rgb(255,\x20204,\x20204)','HH:mm:ss.SSSS','doughnut','ruri','^```\x5cw*\x5cs*$','remoteUrlResponseFormatter','spotifyEmbed','labelY','gcode','ps--y','mdVirtualRepeat','CONNECTION_ERROR','isRTPSenderReplaceTracksSupported','_sendUpdate','statue_of_liberty','mdExpansionPanelHeader','_isValid','%d\x20xhur','NETWORK_ERROR','બપોર','bank','minWidth','néhány\x20másodperce','getButtonEl','$stateChangeCancel','yAlign','[+-]\x5cd{4}','createBackdrop','_showClone','$includeContentError','part_alternation_mark','%d\x20မိနစ်','if\x20else\x20elseif\x20end\x20error','unless','muted','ui.bootstrap.rating','هڪ\x20ڏينهن','789','canceling\x20session','[I\x20går\x20klokka]\x20LT','opaque','ore','mobileGrade','mw-form-image-builder.html','_onDragOver','POSITIVE_INFINITY','layout-align-lt-md','Aib','\x5c$&','onLoad','-remove','[Àna\x20ni]\x20LT','calculateTotal','abstype\x20and\x20andalso\x20as\x20case\x20datatype\x20do\x20else\x20end\x20eqtype\x20exception\x20fn\x20fun\x20functor\x20handle\x20if\x20in\x20include\x20infix\x20infixr\x20let\x20local\x20nonfix\x20of\x20op\x20open\x20orelse\x20raise\x20rec\x20sharing\x20sig\x20signature\x20struct\x20structure\x20then\x20type\x20val\x20with\x20withtype\x20where\x20while','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','0\x200','isDefined','connect()','wákati\x20%d','mdCalendarYear','swipePropagation','moveInProgress','\x22\x20ng-transclude>','((u8?|U)|L)?\x22','IN\x20IP%d\x20%s','md-sort','getHooks','PaleMoon/[VER]','bidi','bezierCurveTo','disappointed_relieved','9400d3','registrar_server','(\x5cbwith\x5cs+)?\x5cb(function|procedure)\x5cs+','NF-Browser','Cannot\x20parse\x20rgb\x20value','postal_horn','receiveRefer()','Uint16Array','aria-multiselectable','An\x20Lùnastal','$pagination.total','reconnect\x20success','sanitize','hankey','rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ','Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib','Missing\x20Contact\x20header\x20field',',\x20__e\x20=\x20_.escape','q[qwxr]?\x5cs*\x5c(','$event','P2D\x20P3D\x20HALF_PI\x20PI\x20QUARTER_PI\x20TAU\x20TWO_PI','#|&','cloneHidden','Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu','#CCCC00','md-fab-toolbar','and\x20case\x20default\x20else\x20elsif\x20false\x20if\x20in\x20import\x20enherits\x20node\x20or\x20true\x20undef\x20unless\x20main\x20settings\x20$string\x20','isRemoved','YYYY-MM-DD[T]HH:mm:ss.SSS[Z]','flow.transfers','dddd,\x20MMMM\x20D,\x20YYYY\x20h:mm\x20A','Rectangle','speaker','dddd,\x20[li]\x20D.\x20MMMM\x20[dallas]\x20YYYY\x20HH.mm','_getMatchingNodes','railYRatio','တစ်နှစ်','_segments','radians','ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ','mdColor','{{\x20step\x20}}','chartBase','uib/template/progressbar/bar.html','calling','older_woman','wheelDelta','','a\x20h:mm','parseAttributeBoolean','\x20өдрийн','TPC-PA762','%d\x20semaines','en\x20%s','','Sul_Llun_Maw_Mer_Iau_Gwe_Sad','%d\x20iminyaka','attachEvent','yAxes','onPaginate','$stateChangeStart','DD.MM.YYYY.','མཚན་མོ','$mdTheme','===\x5cs','listEnter','material.components.panel','earth_americas','#o[0-7]+(/[0-7]+)?','klukkustundum','[^a-zA-Z0-9_\x5c}\x5c$]','cancelLabel','YYYY\x20[m.]\x20MMMM\x20D\x20[d.]','updateLocale','(?:0|1)[0-9]|2[0-3]','toasty','dddd\x20[օրը\x20ժամը]\x20LT','codeServices','#80deea','\x27\x20not\x20valid\x20for\x20state\x20\x27','\x5cb(0o[0-7]+)[lLjJ]?','prgb','removeBlobs','[Aujourd’hui\x20à]\x20LT','hodinu','womens','\x27iensa\x20ziua','nextNode','__uiNodeId','неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи','itemsLength','isRoot','confused','ден','#FF0099','action','chipBuffer','\x20has\x20been\x20stopped\x20(disposed)','Windows\x20Mobile','maxes','synchronous','module-def','iceUfrag','_focused','mediaDevices','md-option','mdHtmlContent','lines','kind\x20do\x20while\x20private\x20call\x20intrinsic\x20where\x20elsewhere\x20type\x20endtype\x20endmodule\x20endselect\x20endinterface\x20end\x20enddo\x20endif\x20if\x20forall\x20endforall\x20only\x20contains\x20default\x20return\x20stop\x20then\x20public\x20subroutine|10\x20function\x20program\x20.and.\x20.or.\x20.not.\x20.le.\x20.eq.\x20.ge.\x20.gt.\x20.lt.\x20goto\x20save\x20else\x20use\x20module\x20select\x20case\x20access\x20blank\x20direct\x20exist\x20file\x20fmt\x20form\x20formatted\x20iostat\x20name\x20named\x20nextrec\x20number\x20opened\x20rec\x20recl\x20sequential\x20status\x20unformatted\x20unit\x20continue\x20format\x20pause\x20cycle\x20exit\x20c_null_char\x20c_alert\x20c_backspace\x20c_form_feed\x20flush\x20wait\x20decimal\x20round\x20iomsg\x20synchronous\x20nopass\x20non_overridable\x20pass\x20protected\x20volatile\x20abstract\x20extends\x20import\x20non_intrinsic\x20value\x20deferred\x20generic\x20final\x20enumerator\x20class\x20associate\x20bind\x20enum\x20c_int\x20c_short\x20c_long\x20c_long_long\x20c_signed_char\x20c_size_t\x20c_int8_t\x20c_int16_t\x20c_int32_t\x20c_int64_t\x20c_int_least8_t\x20c_int_least16_t\x20c_int_least32_t\x20c_int_least64_t\x20c_int_fast8_t\x20c_int_fast16_t\x20c_int_fast32_t\x20c_int_fast64_t\x20c_intmax_t\x20C_intptr_t\x20c_float\x20c_double\x20c_long_double\x20c_float_complex\x20c_double_complex\x20c_long_double_complex\x20c_bool\x20c_char\x20c_null_ptr\x20c_null_funptr\x20c_new_line\x20c_carriage_return\x20c_horizontal_tab\x20c_vertical_tab\x20iso_c_binding\x20c_loc\x20c_funloc\x20c_associated\x20\x20c_f_pointer\x20c_ptr\x20c_funptr\x20iso_fortran_env\x20character_storage_size\x20error_unit\x20file_storage_size\x20input_unit\x20iostat_end\x20iostat_eor\x20numeric_storage_size\x20output_unit\x20c_f_procpointer\x20ieee_arithmetic\x20ieee_support_underflow_control\x20ieee_get_underflow_mode\x20ieee_set_underflow_mode\x20newunit\x20contiguous\x20recursive\x20pad\x20position\x20action\x20delim\x20readwrite\x20eor\x20advance\x20nml\x20interface\x20procedure\x20namelist\x20include\x20sequence\x20elemental\x20pure\x20integer\x20real\x20character\x20complex\x20logical\x20dimension\x20allocatable|10\x20parameter\x20external\x20implicit|10\x20none\x20double\x20precision\x20assign\x20intent\x20optional\x20pointer\x20target\x20in\x20out\x20common\x20equivalence\x20data','One\x20of\x20component\x20or\x20template\x20or\x20templateUrl\x20options\x20is\x20required.','%d\x20emahora','[Rīt\x20pulksten]\x20LT','#ffab91','prevButton','\x20цаг','sejam','defaultMaxListeners','selectionTemplate','typeaheadAppendTo','ui.router.init','[ມື້ນີ້ເວລາ]\x20LT','beginResponse','positionElements','md-min','مئی','Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos','יומיים','dddd,\x20D\x20[de]\x20MMMM\x20[de]\x20YYYY\x20[às]\x20HH:mm','mdColorPickerAlpha','toggleSelectedAnswer','clock1030','$$forceReflow','$translateLoadingStart','socket','cloneArray','So._Mo._Di._Mi._Do._Fr._Sa.','INVALID_STATE_ERROR','jedna\x20minuta','\x22<\x22','[ng-animate-ref]','template','wind_chime','baby_symbol','kelios\x20sekundės','border-left-color','isWebsiteHasMicrophonePermissions','%,0,0)','\x20म्हयन्यानी','large_orange_diamond','секунда_секунди_секунд','gauss','transport\x20open\x20-\x20closing','authenticate()\x20|\x20using\x20qop=auth\x20[a2:\x22%s\x22]','@fieldSeparator','-panel','stun:stun.l.google.com:19302','round_pushpin','clearTimeout','_defaultErrorHandler','ek\x20vor','nc=','Replaced\x20INVITE\x20rejected\x20by\x20the\x20user','sending\x20message:\x0a\x0a','clearCache','=%s','gündüz','padString','#[a-zA-Z_]\x5cw*\x5c$?','left\x20bottom','_eventTypes','signal_strength','updateTabOrder','','%d\x20daqiqa','një\x20ditë','app/directives/textarea-item/textarea-view.html','[^\x5c\x5c]`','getClientRects','#b388ff','&?mdOnSelect','disableScrollAround','shaved_ice','&','%d\x20बर्ष','languages','material.core.interaction','Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec','a8m.latinize','Do\x20MMMM\x20YYYY\x20H:mm','escapeUser','\x22\x20class=\x22jsbin-embed\x20foo\x22\x20src=\x22','pointBorderWidth','တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ','ಮಧ್ಯಾಹ್ನ','operator','waQ','Method\x20Not\x20Allowed','\x5c{\x5c{','removeCol','nodejs.util.inspect.custom','Rows\x20per\x20page:','timezones','Playstation.*(Portable|Vita)','rgba(0,0,0,0.25)','$translateLoadingSuccess','gridsterItem','jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.','Noll','[Dje\x20në]\x20LT','HH:mm','wenteka\x20nga\x20%s','isBuffering','buildCalendarForYear','ngSortable.','sendDTMF()\x20|\x20tones:\x20%s','aria-activedescendant','currentlyOpenMenu','a8m.fuzzy-by','parsingFlags','diToken','^mdSidenav','An\x20t-Ògmhios','[Өчигдөр]\x20LT','DISCONNECT','accept_on\x20alias\x20always\x20always_comb\x20always_ff\x20always_latch\x20and\x20assert\x20assign\x20assume\x20automatic\x20before\x20begin\x20bind\x20bins\x20binsof\x20bit\x20break\x20buf|0\x20bufif0\x20bufif1\x20byte\x20case\x20casex\x20casez\x20cell\x20chandle\x20checker\x20class\x20clocking\x20cmos\x20config\x20const\x20constraint\x20context\x20continue\x20cover\x20covergroup\x20coverpoint\x20cross\x20deassign\x20default\x20defparam\x20design\x20disable\x20dist\x20do\x20edge\x20else\x20end\x20endcase\x20endchecker\x20endclass\x20endclocking\x20endconfig\x20endfunction\x20endgenerate\x20endgroup\x20endinterface\x20endmodule\x20endpackage\x20endprimitive\x20endprogram\x20endproperty\x20endspecify\x20endsequence\x20endtable\x20endtask\x20enum\x20event\x20eventually\x20expect\x20export\x20extends\x20extern\x20final\x20first_match\x20for\x20force\x20foreach\x20forever\x20fork\x20forkjoin\x20function\x20generate|5\x20genvar\x20global\x20highz0\x20highz1\x20if\x20iff\x20ifnone\x20ignore_bins\x20illegal_bins\x20implements\x20implies\x20import\x20incdir\x20include\x20initial\x20inout\x20input\x20inside\x20instance\x20int\x20integer\x20interconnect\x20interface\x20intersect\x20join\x20join_any\x20join_none\x20large\x20let\x20liblist\x20library\x20local\x20localparam\x20logic\x20longint\x20macromodule\x20matches\x20medium\x20modport\x20module\x20nand\x20negedge\x20nettype\x20new\x20nexttime\x20nmos\x20nor\x20noshowcancelled\x20not\x20notif0\x20notif1\x20or\x20output\x20package\x20packed\x20parameter\x20pmos\x20posedge\x20primitive\x20priority\x20program\x20property\x20protected\x20pull0\x20pull1\x20pulldown\x20pullup\x20pulsestyle_ondetect\x20pulsestyle_onevent\x20pure\x20rand\x20randc\x20randcase\x20randsequence\x20rcmos\x20real\x20realtime\x20ref\x20reg\x20reject_on\x20release\x20repeat\x20restrict\x20return\x20rnmos\x20rpmos\x20rtran\x20rtranif0\x20rtranif1\x20s_always\x20s_eventually\x20s_nexttime\x20s_until\x20s_until_with\x20scalared\x20sequence\x20shortint\x20shortreal\x20showcancelled\x20signed\x20small\x20soft\x20solve\x20specify\x20specparam\x20static\x20string\x20strong\x20strong0\x20strong1\x20struct\x20super\x20supply0\x20supply1\x20sync_accept_on\x20sync_reject_on\x20table\x20tagged\x20task\x20this\x20throughout\x20time\x20timeprecision\x20timeunit\x20tran\x20tranif0\x20tranif1\x20tri\x20tri0\x20tri1\x20triand\x20trior\x20trireg\x20type\x20typedef\x20union\x20unique\x20unique0\x20unsigned\x20until\x20until_with\x20untyped\x20use\x20uwire\x20var\x20vectored\x20virtual\x20void\x20wait\x20wait_order\x20wand\x20weak\x20weak0\x20weak1\x20while\x20wildcard\x20wire\x20with\x20within\x20wor\x20xnor\x20xor','renderSection','begin\x20end\x20if\x20then\x20else\x20while\x20do\x20for\x20break\x20continue\x20with\x20until\x20repeat\x20exit\x20and\x20or\x20xor\x20not\x20return\x20mod\x20div\x20switch\x20case\x20default\x20var\x20globalvar\x20enum\x20#macro\x20#region\x20#endregion','parseImageAttributes','ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ','e0ffff','goberserk','en\x20mesec','uibDropdownToggle','bool','thor','\x20/>','okta\x20jahki','.2byte\x20.4byte\x20.align\x20.ascii\x20.asciz\x20.balign\x20.byte\x20.code\x20.data\x20.else\x20.end\x20.endif\x20.endm\x20.endr\x20.equ\x20.err\x20.exitm\x20.extern\x20.global\x20.hword\x20.if\x20.ifdef\x20.ifndef\x20.include\x20.irp\x20.long\x20.macro\x20.rept\x20.req\x20.section\x20.set\x20.skip\x20.space\x20.text\x20.word\x20.arm\x20.thumb\x20.code16\x20.code32\x20.force_thumb\x20.thumb_func\x20.ltorg\x20ALIAS\x20ALIGN\x20ARM\x20AREA\x20ASSERT\x20ATTR\x20CN\x20CODE\x20CODE16\x20CODE32\x20COMMON\x20CP\x20DATA\x20DCB\x20DCD\x20DCDU\x20DCDO\x20DCFD\x20DCFDU\x20DCI\x20DCQ\x20DCQU\x20DCW\x20DCWU\x20DN\x20ELIF\x20ELSE\x20END\x20ENDFUNC\x20ENDIF\x20ENDP\x20ENTRY\x20EQU\x20EXPORT\x20EXPORTAS\x20EXTERN\x20FIELD\x20FILL\x20FUNCTION\x20GBLA\x20GBLL\x20GBLS\x20GET\x20GLOBAL\x20IF\x20IMPORT\x20INCBIN\x20INCLUDE\x20INFO\x20KEEP\x20LCLA\x20LCLL\x20LCLS\x20LTORG\x20MACRO\x20MAP\x20MEND\x20MEXIT\x20NOFP\x20OPT\x20PRESERVE8\x20PROC\x20QN\x20READONLY\x20RELOC\x20REQUIRE\x20REQUIRE8\x20RLIST\x20FN\x20ROUT\x20SETA\x20SETL\x20SETS\x20SN\x20SPACE\x20SUBT\x20THUMB\x20THUMBX\x20TTL\x20WHILE\x20WEND\x20','noToggleMeridian','carousel','optionsFactory','#[\x5cw-]+','&!autoplay\x22\x20height=\x22','perl','heart_decoration','received\x20WebSocket\x20message','mousedown\x20touchstart','%d\x20dagar','`','saa\x20limoja','$$topModalIndex','axapta','hasNotFound','1\x20ເດືອນ','notebook','Delay','ice-pwd:%s','flowDragLeave','a8m.last','lisp','n1ql','ALLOWED_METHODS','1\x20小时','bars','\x5cs+','wrapper','isEnded','[\x20\x5ct\x5cn\x5cr]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*','pixelsToRows','flowDropEnabled','OPEN','Coordinated\x20Universal\x20Time','chips','','four_leaf_clover','\x20\x20\x20\x20','plugin','bool\x20cdouble\x20cent\x20cfloat\x20char\x20creal\x20dchar\x20delegate\x20double\x20dstring\x20float\x20function\x20idouble\x20ifloat\x20ireal\x20long\x20real\x20short\x20string\x20ubyte\x20ucent\x20uint\x20ulong\x20ushort\x20wchar\x20wstring','\x27ncı','#(c|C)\x5c(','authenticate()\x20|\x20no\x20plain\x20SIP\x20password,\x20and\x20stored\x20`realm`\x20does\x20not\x20match\x20the\x20given\x20`realm`,\x20cannot\x20authenticate\x20[stored:\x22%s\x22,\x20given:\x22%s\x22]','$uiViewName','from-tag','cancellable','true\x20false\x20Some\x20None\x20Ok\x20Err','major','findNode','beforeDatasetsUpdate','[oxhi\x20à]\x20LT','$md.swipedown','[prejšnjo]\x20[soboto]\x20[ob]\x20LT','UibAlertController','functionToString','-(?!infinity)[a-zA-Z_][\x5cw.]*','un\x20devezh','[UnexpectedJSONParseError]:\x20','md-theme=\x22','ngSortableConfig','#\x5c{','mouseup\x20touchend\x20touchcancel','^\x5c.\x5cw.*$','mojolicious','audioinput','#33CCCC','[Imorgon]\x20LT','inputType','_weekdaysRegex','%d\x20ദിവസം','rgb(0,\x200,\x2092)','_baseHref','ui-view:\x20','week','YYYY[ko]\x20MMMM[ren]\x20D[a]','xyz','Internal\x20Error','ngBlur','vector-effect','#fff59d','InputView','isDatasetVisible','[ម្សិលមិញ\x20ម៉ោង]\x20LT','matchInsensitive','\x20өдөр','утра','_appendGhost','rgb(153,\x20255,\x20204)','_md-panel-offscreen','removeData','#69f0ae','black','formatArgs','now','#ffecb3','#283593','$materialScrollFixed','calendarScroller','%d\x20dagen','900','','','NaN','updateOffset','Dolfin','agent','margin','日_一_二_三_四_五_六','wa’\x20jaj','angular-cron-jobs','#aed581','cd5c5c','jaj','endsParent','md-calendar-parent-changed','reasonml','[\x5c*&\x5cs]+)+','недела_понеделник_вторник_среда_четврток_петок_сабота','offsetTop','dvd','dddd\x20D\x20MMMM\x20[de]\x20YYYY\x20[a\x20les]\x20H:mm','getValueOrDefault','_findTabReverse','\x22nonce\x22','#FF33FF','hashchange','rp,rt','onColorSet','#ff8f00','translateX(','\x20\x20\x20\x20$&','arrow_up','ก่อนเที่ยง','uid','0px','two_men_holding_hands','^\x5cw','[Ddoe\x20am]\x20LT','godina','reconnection','cached','footer','[I]\x20dddd[s]\x20LT','name_badge','isPromise','toHex','afterLeave','Invalid\x20type\x20of\x20a\x20first\x20argument,\x20a\x20non-empty\x20string\x20expected.','numeric','عامان','facepunch','jsx','mdDateRangePickerCtrl','removeChipAndFocusInput','بىر\x20كۈن','removeAllInterceptors','Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado','b64','ist','forEach','md-expansion-panel-expanded','\x20minuti','\x200\x201\x201\x20','subscribe','gridster-mobile-changed','[a-z]+\x22\x22\x22','ps--in-scrolling','uas','^(\x5cs*)?(class|instance)\x5cb','Calendar','>','%s\x20мурун','blowfish','`[A-Z][\x5cw\x27]*','md-auto-focus','0\x200\x20','mozCancelAnimationFrame','mousewheel\x20wheel','\x20dialog\x20created\x20with\x20status\x20','arrow_upper_right','menuitem','embed','$$childTail','TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10','partly_sunny','md-','trophy','transport\x20error\x20occurred,\x20deleting\x20transaction\x20','quadraticCurveTo','$panel','textarea,[contenteditable]','שנתיים','{{\x20timepicker.time.format(timepicker.hoursFormat)\x20}}:{{\x20timepicker.time.format(timepicker.minutesFormat)\x20}}AM=\x2012\x20}\x22>PM','minuteStep','%d\x20سنوات','mdpOpenOnClick','timestampParam','HTTPs\x20is\x20required\x20to\x20get\x20label\x20of\x20this\x20','[\x22)]','í~ñ\x20%s','headingId','reply_sl','authenticate()\x20|\x20using\x20qop=null\x20[a2:\x22%s\x22]','racehorse','dddd\x20[në]\x20LT','_left','%d\x20ปี','collapseAll','uma\x20hora','a8m.search-field','right','routeros','#689f38','md-table-pagination','isString','i\x5cd+','\x22/>','_findSession','hh:mm\x20A','omitBy','from_uri','with\x20(obj)\x20{\x0a','<%{1,2}={0,2}','Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.','timer_B','Márt','chartSeries','.md-track-ticks','-كۈنى','\x5c\x5c\x27\x5cw','extends\x20implements','getUserMedia()\x20failed','IN_PROGRESS','order','cloud','getMomentStartOf','Android.*(bq)?.*\x5cb(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris\x20([E|M]10|M8))\x5cb|Maxwell.*Lite|Maxwell.*Plus','\x5cs*=\x5cs*class\x5cs*\x5c(','$cacheFactory','98fb98','>li','oc-lnc','Kobo\x20Touch|\x5cbK080\x5cb|\x5cbVox\x5cb\x20Build|\x5cbArc\x5cb\x20Build','md-input-focused','intersectionBy','[#$=]?0x[0-9a-f]+','string','bir\x20il','bufferTimeout','pastFuture','dddd\x20[{}]\x20LT','success','$material','csvColumnOrder','transport','STATUS_ACCEPTED','STANDALONEMONTH','onToggle','dango','LOG_ERROR','нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота','\x20connected','isEditable','backdropClass','#9ccc65','arrow_down_small','нд_пн_ат_ср_чц_пт_сб','getResponsiveAttribute','windowClass','няколко\x20секунди','runSessionTimer()\x20|\x20sending\x20session\x20refresh\x20request','selectPage','pub_gruu','\x20ימים','post\x20%s','Illegal','пӗр\x20кун','Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday','alias\x20batch\x20cd\x20clear\x20command\x20connect\x20connection-factory\x20connection-info\x20data-source\x20deploy\x20deployment-info\x20deployment-overlay\x20echo\x20echo-dmr\x20help\x20history\x20if\x20jdbc-driver-info\x20jms-queue|20\x20jms-topic|20\x20ls\x20patch\x20pwd\x20quit\x20read-attribute\x20read-operation\x20reload\x20rollout-plan\x20run-batch\x20set\x20shutdown\x20try\x20unalias\x20undeploy\x20unset\x20version\x20xa-data-source','[object\x20DataView]','border-image-outset','onError','/%s','emit\x20\x22peerconnection\x22','getPointBorderColor','linkScales','@?mdMenuClass','onInvalid','((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)(\x5c.(25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)(\x5c.(25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)(\x5c.(25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)(\x5c.(25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)(\x5c.(25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)(\x5c.(25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)(\x5c.(25[0-5]|2[0-4]\x5cd|1\x5cd\x5cd|[1-9]?\x5cd)){3}))|:)))\x5cb','januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember','#ffb300','#(o|O)[0-7]+(/[0-7]+)?','containerWidth','Path\x20\x27','$browser','gridster-mobile','SUMMARY','dddd,\x20D\x20MMMM\x20YYYY,\x20A\x20h:mm\x20बजे','procedure|10','unregistered','^mwFormQuestion','A100','[.]{3}','%d\x20ថ្ងៃ','fallbackFromIncorrectStorageValue','blue_heart','hasTransitions','päivän','getterSetter','2.29.1','%d\x20ತಿಂಗಳು','rok','meridians','getModelOption','showAnalog','\x20éve','{{option.value}}This\x20field\x20is\x20required','mdOnSelect','fromUrl','ui.bootstrap.datepicker','setup\x20draw','ui.bootstrap.pager','[la\x20scorsa]\x20dddd\x20[alle]\x20LT','uma\x20semana','trait\x20enum\x20struct\x20union','^?mdFabSpeedDial','SamsungBrowser/[VER]','_uac_pending_reply','Map','__takeCount__','data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=','mdAutofocus','$digest','track','turtle','sekúnd','terminate','\x5cd+\x5c.(?!\x5cd)(?:i\x5cb)?','dddd\x20[klo]\x20LT','rgb(0,\x200,\x20163)','JsSIP:AckClientTransaction','bdi',':(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)','ديسمبر','hoverEdit','reverse','capital_abcd','Uint32Array','windowEventName','(\x5c.\x5c.\x5c.)','%d\x20Sekonnen','prevPages','colorElement','rgb(255,\x2051,\x2051)','D\x20MMMM\x20[năm]\x20YYYY\x20HH:mm','=showAnalog','Invalid\x20Identity\x20Header','0ms','innerWrapper','#f5f5f5','socket\x20closing\x20-\x20telling\x20transport\x20to\x20close','[کل\x20بوقت]\x20LT','instance_id','sanga\x20dama\x20dama','rpc','erasAbbrRegex','dragon_face','Invalid\x20attempt\x20to\x20iterate\x20non-iterable\x20instance.\x0aIn\x20order\x20to\x20be\x20iterable,\x20non-array\x20objects\x20must\x20have\x20a\x20[Symbol.iterator]()\x20method.','#d81b60','$sniffer','\x20\x20\x20\x20\x20selected-template=\x22ngModel.selectedTemplate\x22\x20','checkered_flag','createDataChannel','UTC','uib/template/tabs/tabset.html','isAlreadyOpening','get_node','mergeFormWithResponse','sendMessage','layout','legendItems','getFilename','calculateMD5','%d\x20મહિનો','md-slider-wrapper','viewportOffset','setHasPlaceholder','mesec','PlayBook|RIM\x20Tablet','stop','50\x20100\x20200\x20300\x20400\x20A100','D\x20MMMM\x20YYYY,\x20Aको\x20h:mm\x20बजे','/\x5c\x5c','%d\x20йил','một\x20ngày',')(.*)','eventNames','$mdChipsCtrl.items','Die_Hën_Mar_Mër_Enj_Pre_Sht','UNDERSCORE_IDENT_RE','cleanupStyles','msid:%s','reverseSort','md-calendar-date-today','[^,:\x5cn\x5cs\x5c.]','max-width','%s\x20yang\x20lepas','_getEvents','#546e7a','á\x20~móñ~th',')((\x5c-|/)[a-zA-Z0-9]+)*\x5cs','beforeInit','%s\x20ago','$render','_md-datepicker-has-triangle-icon','renderTokens','root','translateCompile','a8m.math.sum','endIdx','_config','attribute','STATUS_EARLY','$stateProvider','800\x20900','[Nesër\x20në]\x20LT','willInsertAfter','$translateMessageFormatInterpolation','#bf360c','_otherwiseFn','strawberry','material.components.tooltip','missing\x20channels\x20property:\x20','doy','rawDefinition','=ngModel','transformTemplate','[గత]\x20dddd,\x20LT','weekNumberFormatter','evil','clubs','removeElement','alcuni\x20secondi','tab','wⓦwẁẃŵẇẅẘẉⱳ','selectView','[Маргааш]\x20LT','home','[วันนี้\x20เวลา]\x20LT','[heute\x20um]\x20LT\x20[Uhr]','[Hôm\x20nay\x20lúc]\x20LT','activeMonth2','อา._จ._อ._พ._พฤ._ศ._ส.','?autoplay=0','LOG_REJECTED_RESULT','chartPie','eio_iframe_','rgbaString','adoc','(\x5c$|\x5cb)','$modelValue','//embed.plnkr.co/',';\x0a__p\x20+=\x20\x27','\x5cn\x5cn','isNative','no_entry_sign','Contact:\x20*','inputFocusedOnWindowBlur','=mdpDateFilter','%d-мӗш','[Утре\x20во]\x20LT','$mdpTimePicker','-MM-DD[T]HH:mm:ss.SSS','packetCreate',';transport=ws','md-row','vm.isOpen\x20=\x20true','panel\x20with\x20componentId\x20\x22','[(=:]|$','rgb(204,\x20230,\x20255)','minDate\x20+\x20maxDate','loaded','Luan','$$disconnected','sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur','built_in','a8m.math.max','Invalid\x20tags:\x20','mínútum','(\x5cd+)','_reconnect','Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.','_pf','lipstick','reloadOnSearch','selectedOptions','directive','2019-04-30','tickFormatFunction','sessionTimersExpires','@[a-zA-Z_][a-zA-Z_\x5cd]*','.ps__scrollbar-x-rail','dragend','\x5c([^\x5c(]','md-auto-hide','\x27\x5c\x5c?.','','Using\x20a\x20class\x20of\x20md-actions\x20is\x20deprecated,\x20please\x20use\x20.','જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.','$shouldWatch','useColors','twttr','[Demain\x20à]\x20LT','D\x20MMMM\x20YYYY\x20թ.','fadeOutComplete','abc','toRgb','tablet','$injector','\x5cb(\x5cd+|\x5cd+\x5c.|\x5c.\x5cd+|\x5cd+\x5c.\x5cd+)[Bb][-+]?\x5cd+\x5cb','native','twttr\x20is\x20not\x20defined.\x20Load\x20http://platform.twitter.com/widgets.js','_end_time','trying','bnf','dispatchEvent','lihora','IPv4','material-icons','useOnRemoveExpression','sput','buildUrl','(\x5c(.*?\x5c)|','md-not-found','showGmtInfo','$mdSidenav','ltrim','_md-nested-menu','focusChip','isDayEnabled','\x20दिसांनी','_targetState','\x20voramni','val\x20is\x20not\x20a\x20non-empty\x20string\x20or\x20a\x20valid\x20number.\x20val=','isSupported','BeOS','protobuf','layoutNoWrap','eval\x20isFinite\x20isNaN\x20parseFloat\x20parseInt\x20decodeURI\x20decodeURIComponent\x20encodeURI\x20encodeURIComponent\x20escape\x20unescape\x20Object\x20Function\x20Boolean\x20Error\x20EvalError\x20InternalError\x20RangeError\x20ReferenceError\x20StopIteration\x20SyntaxError\x20TypeError\x20URIError\x20Number\x20Math\x20Date\x20String\x20RegExp\x20Array\x20Float32Array\x20Float64Array\x20Int16Array\x20Int32Array\x20Int8Array\x20Uint16Array\x20Uint32Array\x20Uint8Array\x20Uint8ClampedArray\x20ArrayBuffer\x20DataView\x20JSON\x20Intl\x20arguments\x20require\x20module\x20console\x20window\x20document\x20Symbol\x20Set\x20Map\x20WeakSet\x20WeakMap\x20Proxy\x20Reflect\x20Behavior\x20bool\x20color\x20coordinate\x20date\x20double\x20enumeration\x20font\x20geocircle\x20georectangle\x20geoshape\x20int\x20list\x20matrix4x4\x20parent\x20point\x20quaternion\x20real\x20rect\x20size\x20string\x20url\x20variant\x20vector2d\x20vector3d\x20vector4dPromise','#CC3366','getRuler','md-colspan','%d\x20hours','user','runInContext','getFocusedTab','flow.btn','1px\x201px\x200px\x20rgba(0,0,0,0.4),\x20-1px\x20-1px\x200px\x20rgba(0,0,0,0.4)','column-reverse','[भोलि]\x20LT','csvHeader','engem\x20Joer','[minulou\x20neděli\x20v]\x20LT','labelMoments','_rtcOfferConstraints','lookup','#8c9eff','showClose','millisecond','containerHint','_index','terminators','ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר','#80d8ff','messages','transform','ಸಂಜೆ','ಒಂದು\x20ತಿಂಗಳು','dow','еден\x20час','dddd\x20[diwethaf\x20am]\x20LT','$uibPosition','(?:TODO|FIXME|NOTE|BUG|XXX):','text-decoration-style','focusout','#cfd8dc','getAttribute','modalScope','ساعة\x20واحدة','onSuccessResponse','آچر','o\x20lună','FxiOS','DOMSubtreeModified','subPath','sending\x20ack\x20%j','#2e7d32','\x20\x20\x20\x20\x20one-panel=\x22onePanel\x22\x20','bir\x20dəqiqə','first-day-of-week=\x22config.firstDayOfWeek\x20||\x20model.firstDayOfWeek\x22\x20','pascalprechtTranslateOverrider','#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})','cleanup','open_hands','session_timers_refresh_method','bir\x20saat','$$rowSelect','Як_Ду_Се_Чо_Па_Жу_Ша','palette','dagar','startScrolling','evalAttr','isInMaxRange','#0000FF','#64ffda','a8m.ucfirst','[վաղը]\x20LT','domOperation','جنوری','_navBarEl','attempting\x20reconnect','calculateCircumference','\x5c]|\x5c?>','Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag','[В]\x20dddd,\x20[в]\x20LT','Lin_Lun_Mar_Miy_Huw_Biy_Sab','typeaheadSelectOnExact','innerRadius','uibTab','ui.bootstrap.dropdown','presets','#81c784','sebulan','angular.filter','#\x5cd+','isFirstRender','#ffd54f','useMissingTranslationHandler',')((\x5c-|/)[a-zA-Z0-9]+)+\x5cs','descriptionField','langData','elem','uro','%d\x20месеци','_ok','\x20OPR/[VER]','xsd','titleFontSize','location','color:\x20inherit','md-close','colCount','layout-align','Layout\x20direction\x20({{RadioButton.item.config.direction\x20==\x20\x27horizontal\x27\x20?\x20\x27Vertical\x27:\x20\x27Horizontal\x27\x20}})\x20','\x22udp\x22','buildWeekHeader','ps__scrollbar-y','invalid\x20WebSocket\x20URI:\x20','border-spacing','getTitle','mangleOffer()\x20|\x20remote\x20on\x20hold,\x20mangling\x20offer','_tones','minutou','[\x5cn]','invalidDate','left_luggage','d\x27a','uib/template/progressbar/progressbar.html','poodle','[В\x20следующую]\x20dddd,\x20[в]\x20LT','zile','offsetSize','\x27ünji','invalid\x20rule','probe\x20transport\x20\x22%s\x22\x20pong','\x5c|[^]*?\x5c|','md-menu-origin','#d84315','onChanged','No\x20such\x20reload\x20state\x20\x27','editElement','{Param:','$mdListInkRipple','isFinite','scrollIntoView','[明天]\x20LT','%s\x20temu','-ми','\x5cb(0[oO][0-7]+)','page-break-before','$templateCache','hookOrder','ps-scroll-right','boolean\x20byte\x20cbool\x20cbyte\x20cchar\x20cdate\x20cdec\x20cdbl\x20char\x20cint\x20clng\x20cobj\x20csbyte\x20cshort\x20csng\x20cstr\x20ctype\x20date\x20decimal\x20directcast\x20double\x20gettype\x20getxmlnamespace\x20iif\x20integer\x20long\x20object\x20sbyte\x20short\x20single\x20string\x20trycast\x20typeof\x20uinteger\x20ulong\x20ushort','(\x5c(|:|=|;|,|//|/\x5c*|$)','mdTabScroll','isNewItem','easeFn','aria-haspopup','_getDefaultMatchCriteria','\x20vloaz','_credentials','D\x20[de]\x20MMMM\x20[de]\x20YYYY\x20HH:mm','authenticate()\x20|\x20challenge\x20without\x20Digest\x20qop\x20different\x20than\x20\x22auth\x22\x20or\x20\x22auth-int\x22,\x20authentication\x20aborted','ένα\x20λεπτό','[native\x20code]','profile','newTransaction','inputItem','[!-\x27]','autoSwitch','ERAS','\x5cb\x5cd+','selectedTemplateName','Android\x20[VER]','UibPagerController','return','clap','\x20device.','%[qQwWx]?/','selectElement','_isCaseInsensitive','expand','newDraggableIndex','traceViewServiceUIViewEvent','=?mdpAutoSwitch','question','[прошле]\x20[суботе]\x20[у]\x20LT','tweetOptions','partialRight','1\x20นาที','_focusNextTab','ckeditor','اکتوبر','resetScroll','labelColors','један\x20сат','webkitCancelRequestAnimationFrame','ένας\x20χρόνος','isDecimal','finishedReconstruction','ഉച്ച\x20കഴിഞ്ഞ്','lastElementChild','setLocalDescription','function\x20constructor\x20destructor\x20procedure','VIEW_HOURS','%d\x20timer','random','разделительстраниц\x20разделительстрок\x20символтабуляции\x20ansitooem\x20oemtoansi\x20ввестивидсубконто\x20ввестиперечисление\x20ввестипериод\x20ввестиплансчетов\x20выбранныйплансчетов\x20датагод\x20датамесяц\x20датачисло\x20заголовоксистемы\x20значениевстроку\x20значениеизстроки\x20каталогиб\x20каталогпользователя\x20кодсимв\x20конгода\x20конецпериодаби\x20конецрассчитанногопериодаби\x20конецстандартногоинтервала\x20конквартала\x20конмесяца\x20коннедели\x20лог\x20лог10\x20максимальноеколичествосубконто\x20названиеинтерфейса\x20названиенабораправ\x20назначитьвид\x20назначитьсчет\x20найтиссылки\x20началопериодаби\x20началостандартногоинтервала\x20начгода\x20начквартала\x20начмесяца\x20начнедели\x20номерднягода\x20номерднянедели\x20номернеделигода\x20обработкаожидания\x20основнойжурналрасчетов\x20основнойплансчетов\x20основнойязык\x20очиститьокносообщений\x20периодстр\x20получитьвремята\x20получитьдатута\x20получитьдокументта\x20получитьзначенияотбора\x20получитьпозициюта\x20получитьпустоезначение\x20получитьта\x20префиксавтонумерации\x20пропись\x20пустоезначение\x20разм\x20разобратьпозициюдокумента\x20рассчитатьрегистрына\x20рассчитатьрегистрыпо\x20симв\x20создатьобъект\x20статусвозврата\x20стрколичествострок\x20сформироватьпозициюдокумента\x20счетпокоду\x20текущеевремя\x20типзначения\x20типзначениястр\x20установитьтана\x20установитьтапо\x20фиксшаблон\x20шаблон\x20acos\x20asin\x20atan\x20base64значение\x20base64строка\x20cos\x20exp\x20log\x20log10\x20pow\x20sin\x20sqrt\x20tan\x20xmlзначение\x20xmlстрока\x20xmlтип\x20xmlтипзнч\x20активноеокно\x20безопасныйрежим\x20безопасныйрежимразделенияданных\x20булево\x20ввестидату\x20ввестизначение\x20ввестистроку\x20ввестичисло\x20возможностьчтенияxml\x20вопрос\x20восстановитьзначение\x20врег\x20выгрузитьжурналрегистрации\x20выполнитьобработкуоповещения\x20выполнитьпроверкуправдоступа\x20вычислить\x20год\x20данныеформывзначение\x20дата\x20день\x20деньгода\x20деньнедели\x20добавитьмесяц\x20заблокироватьданныедляредактирования\x20заблокироватьработупользователя\x20завершитьработусистемы\x20загрузитьвнешнююкомпоненту\x20закрытьсправку\x20записатьjson\x20записатьxml\x20записатьдатуjson\x20записьжурналарегистрации\x20заполнитьзначениясвойств\x20запроситьразрешениепользователя\x20запуститьприложение\x20запуститьсистему\x20зафиксироватьтранзакцию\x20значениевданныеформы\x20значениевстрокувнутр\x20значениевфайл\x20значениезаполнено\x20значениеизстрокивнутр\x20значениеизфайла\x20изxmlтипа\x20импортмоделиxdto\x20имякомпьютера\x20имяпользователя\x20инициализироватьпредопределенныеданные\x20информацияобошибке\x20каталогбиблиотекимобильногоустройства\x20каталогвременныхфайлов\x20каталогдокументов\x20каталогпрограммы\x20кодироватьстроку\x20кодлокализацииинформационнойбазы\x20кодсимвола\x20командасистемы\x20конецгода\x20конецдня\x20конецквартала\x20конецмесяца\x20конецминуты\x20конецнедели\x20конецчаса\x20конфигурациябазыданныхизмененадинамически\x20конфигурацияизменена\x20копироватьданныеформы\x20копироватьфайл\x20краткоепредставлениеошибки\x20лев\x20макс\x20местноевремя\x20месяц\x20мин\x20минута\x20монопольныйрежим\x20найти\x20найтинедопустимыесимволыxml\x20найтиокнопонавигационнойссылке\x20найтипомеченныенаудаление\x20найтипоссылкам\x20найтифайлы\x20началогода\x20началодня\x20началоквартала\x20началомесяца\x20началоминуты\x20началонедели\x20началочаса\x20начатьзапросразрешенияпользователя\x20начатьзапускприложения\x20начатькопированиефайла\x20начатьперемещениефайла\x20начатьподключениевнешнейкомпоненты\x20начатьподключениерасширенияработыскриптографией\x20начатьподключениерасширенияработысфайлами\x20начатьпоискфайлов\x20начатьполучениекаталогавременныхфайлов\x20начатьполучениекаталогадокументов\x20начатьполучениерабочегокаталогаданныхпользователя\x20начатьполучениефайлов\x20начатьпомещениефайла\x20начатьпомещениефайлов\x20начатьсозданиедвоичныхданныхизфайла\x20начатьсозданиекаталога\x20начатьтранзакцию\x20начатьудалениефайлов\x20начатьустановкувнешнейкомпоненты\x20начатьустановкурасширенияработыскриптографией\x20начатьустановкурасширенияработысфайлами\x20неделягода\x20необходимостьзавершениясоединения\x20номерсеансаинформационнойбазы\x20номерсоединенияинформационнойбазы\x20нрег\x20нстр\x20обновитьинтерфейс\x20обновитьнумерациюобъектов\x20обновитьповторноиспользуемыезначения\x20обработкапрерыванияпользователя\x20объединитьфайлы\x20окр\x20описаниеошибки\x20оповестить\x20оповеститьобизменении\x20отключитьобработчикзапросанастроекклиенталицензирования\x20отключитьобработчикожидания\x20отключитьобработчикоповещения\x20открытьзначение\x20открытьиндекссправки\x20открытьсодержаниесправки\x20открытьсправку\x20открытьформу\x20открытьформумодально\x20отменитьтранзакцию\x20очиститьжурналрегистрации\x20очиститьнастройкипользователя\x20очиститьсообщения\x20параметрыдоступа\x20перейтипонавигационнойссылке\x20переместитьфайл\x20подключитьвнешнююкомпоненту\x20подключитьобработчикзапросанастроекклиенталицензирования\x20подключитьобработчикожидания\x20подключитьобработчикоповещения\x20подключитьрасширениеработыскриптографией\x20подключитьрасширениеработысфайлами\x20подробноепредставлениеошибки\x20показатьвводдаты\x20показатьвводзначения\x20показатьвводстроки\x20показатьвводчисла\x20показатьвопрос\x20показатьзначение\x20показатьинформациюобошибке\x20показатьнакарте\x20показатьоповещениепользователя\x20показатьпредупреждение\x20полноеимяпользователя\x20получитьcomобъект\x20получитьxmlтип\x20получитьадреспоместоположению\x20получитьблокировкусеансов\x20получитьвремязавершенияспящегосеанса\x20получитьвремязасыпанияпассивногосеанса\x20получитьвремяожиданияблокировкиданных\x20получитьданныевыбора\x20получитьдополнительныйпараметрклиенталицензирования\x20получитьдопустимыекодылокализации\x20получитьдопустимыечасовыепояса\x20получитьзаголовокклиентскогоприложения\x20получитьзаголовоксистемы\x20получитьзначенияотборажурналарегистрации\x20получитьидентификаторконфигурации\x20получитьизвременногохранилища\x20получитьимявременногофайла\x20получитьимяклиенталицензирования\x20получитьинформациюэкрановклиента\x20получитьиспользованиежурналарегистрации\x20получитьиспользованиесобытияжурналарегистрации\x20получитькраткийзаголовокприложения\x20получитьмакетоформления\x20получитьмаскувсефайлы\x20получитьмаскувсефайлыклиента\x20получитьмаскувсефайлысервера\x20получитьместоположениепоадресу\x20получитьминимальнуюдлинупаролейпользователей\x20получитьнавигационнуюссылку\x20получитьнавигационнуюссылкуинформационнойбазы\x20получитьобновлениеконфигурациибазыданных\x20получитьобновлениепредопределенныхданныхинформационнойбазы\x20получитьобщиймакет\x20получитьобщуюформу\x20получитьокна\x20получитьоперативнуюотметкувремени\x20получитьотключениебезопасногорежима\x20получитьпараметрыфункциональныхопцийинтерфейса\x20получитьполноеимяпредопределенногозначения\x20получитьпредставлениянавигационныхссылок\x20получитьпроверкусложностипаролейпользователей\x20получитьразделительпути\x20получитьразделительпутиклиента\x20получитьразделительпутисервера\x20получитьсеансыинформационнойбазы\x20получитьскоростьклиентскогосоединения\x20получитьсоединенияинформационнойбазы\x20получитьсообщенияпользователю\x20получитьсоответствиеобъектаиформы\x20получитьсоставстандартногоинтерфейсаodata\x20получитьструктурухранениябазыданных\x20получитьтекущийсеансинформационнойбазы\x20получитьфайл\x20получитьфайлы\x20получитьформу\x20получитьфункциональнуюопцию\x20получитьфункциональнуюопциюинтерфейса\x20получитьчасовойпоясинформационнойбазы\x20пользователиос\x20поместитьвовременноехранилище\x20поместитьфайл\x20поместитьфайлы\x20прав\x20праводоступа\x20предопределенноезначение\x20представлениекодалокализации\x20представлениепериода\x20представлениеправа\x20представлениеприложения\x20представлениесобытияжурналарегистрации\x20представлениечасовогопояса\x20предупреждение\x20прекратитьработусистемы\x20привилегированныйрежим\x20продолжитьвызов\x20прочитатьjson\x20прочитатьxml\x20прочитатьдатуjson\x20пустаястрока\x20рабочийкаталогданныхпользователя\x20разблокироватьданныедляредактирования\x20разделитьфайл\x20разорватьсоединениесвнешнимисточникомданных\x20раскодироватьстроку\x20рольдоступна\x20секунда\x20сигнал\x20символ\x20скопироватьжурналрегистрации\x20смещениелетнеговремени\x20смещениестандартноговремени\x20соединитьбуферыдвоичныхданных\x20создатькаталог\x20создатьфабрикуxdto\x20сокрл\x20сокрлп\x20сокрп\x20сообщить\x20состояние\x20сохранитьзначение\x20сохранитьнастройкипользователя\x20сред\x20стрдлина\x20стрзаканчиваетсяна\x20стрзаменить\x20стрнайти\x20стрначинаетсяс\x20строка\x20строкасоединенияинформационнойбазы\x20стрполучитьстроку\x20стрразделить\x20стрсоединить\x20стрсравнить\x20стрчисловхождений\x20стрчислострок\x20стршаблон\x20текущаядата\x20текущаядатасеанса\x20текущаяуниверсальнаядата\x20текущаяуниверсальнаядатавмиллисекундах\x20текущийвариантинтерфейсаклиентскогоприложения\x20текущийвариантосновногошрифтаклиентскогоприложения\x20текущийкодлокализации\x20текущийрежимзапуска\x20текущийязык\x20текущийязыксистемы\x20тип\x20типзнч\x20транзакцияактивна\x20трег\x20удалитьданныеинформационнойбазы\x20удалитьизвременногохранилища\x20удалитьобъекты\x20удалитьфайлы\x20универсальноевремя\x20установитьбезопасныйрежим\x20установитьбезопасныйрежимразделенияданных\x20установитьблокировкусеансов\x20установитьвнешнююкомпоненту\x20установитьвремязавершенияспящегосеанса\x20установитьвремязасыпанияпассивногосеанса\x20установитьвремяожиданияблокировкиданных\x20установитьзаголовокклиентскогоприложения\x20установитьзаголовоксистемы\x20установитьиспользованиежурналарегистрации\x20установитьиспользованиесобытияжурналарегистрации\x20установитькраткийзаголовокприложения\x20установитьминимальнуюдлинупаролейпользователей\x20установитьмонопольныйрежим\x20установитьнастройкиклиенталицензирования\x20установитьобновлениепредопределенныхданныхинформационнойбазы\x20установитьотключениебезопасногорежима\x20установитьпараметрыфункциональныхопцийинтерфейса\x20установитьпривилегированныйрежим\x20установитьпроверкусложностипаролейпользователей\x20установитьрасширениеработыскриптографией\x20установитьрасширениеработысфайлами\x20установитьсоединениесвнешнимисточникомданных\x20установитьсоответствиеобъектаиформы\x20установитьсоставстандартногоинтерфейсаodata\x20установитьчасовойпоясинформационнойбазы\x20установитьчасовойпояссеанса\x20формат\x20цел\x20час\x20часовойпояс\x20часовойпояссеанса\x20число\x20числопрописью\x20этоадресвременногохранилища\x20wsссылки\x20библиотекакартинок\x20библиотекамакетовоформлениякомпоновкиданных\x20библиотекастилей\x20бизнеспроцессы\x20внешниеисточникиданных\x20внешниеобработки\x20внешниеотчеты\x20встроенныепокупки\x20главныйинтерфейс\x20главныйстиль\x20документы\x20доставляемыеуведомления\x20журналыдокументов\x20задачи\x20информацияобинтернетсоединении\x20использованиерабочейдаты\x20историяработыпользователя\x20константы\x20критерииотбора\x20метаданные\x20обработки\x20отображениерекламы\x20отправкадоставляемыхуведомлений\x20отчеты\x20панельзадачос\x20параметрзапуска\x20параметрысеанса\x20перечисления\x20планывидоврасчета\x20планывидовхарактеристик\x20планыобмена\x20планысчетов\x20полнотекстовыйпоиск\x20пользователиинформационнойбазы\x20последовательности\x20проверкавстроенныхпокупок\x20рабочаядата\x20расширенияконфигурации\x20регистрыбухгалтерии\x20регистрынакопления\x20регистрырасчета\x20регистрысведений\x20регламентныезадания\x20сериализаторxdto\x20справочники\x20средствагеопозиционирования\x20средствакриптографии\x20средствамультимедиа\x20средстваотображениярекламы\x20средствапочты\x20средствателефонии\x20фабрикаxdto\x20файловыепотоки\x20фоновыезадания\x20хранилищанастроек\x20хранилищевариантовотчетов\x20хранилищенастроекданныхформ\x20хранилищеобщихнастроек\x20хранилищепользовательскихнастроекдинамическихсписков\x20хранилищепользовательскихнастроекотчетов\x20хранилищесистемныхнастроек\x20','yyyy-MM-ddTHH:mm:ss.sss','$location','$resource','first-letter','uiSref','lexemes','ett\x20minutt','%d\x20周','updateTextContent','mdExpansionPanelCollapsed','embedSrc','factor','rearg','uibCarousel','mergeWith','top','!!!!\x20duplicate\x20uiView\x20named:','\x5c$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+','_to_tag','munutenn','lips','_ua','relativeTime','[Kala\x20wingi\x20pukul]\x20LT','[a-z]+\x22','_mode','\x22`\x22','kuu\x20aja','an\x20hour','isOptional','construct','updateIndexes_','one','reconnectionAttempts','getOption','gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.','_bodyFontFamily','trace\x20this','onEvict','\x27\x20is\x20already\x20defined','%d\x20วินาที',',\x5cs*,','deň','mdp-access-time.svg','buildLabels','provide','reduceRight','applyViewConfigs','$resolve','fontFamily','एक\x20म्हयनो','ACCEPTREJECT','spanGaps','assignIn','ui.router.state','cool','animationDelay','###','devezh','getSelectedLabels','\x22multipart\x22','tickHeight','elementButtons','priorWebsocketSuccess','defaultFontSet','msCancelAnimationFrame','$$mdLayout','FⒻFḞƑꝻ','md-radio-button','setCancelButtonLabel','btnCheckboxTrue','$$interimElement','_weekdaysMinStrictRegex','eine\x20Woche','swapItems','UibYearpickerController','toLength','$mdBottomSheet','changeSelectedDate','hp.*TouchPad','internal','_$mdTheming','arrow_up_small','\x5c.)+{','//[a-z]*','listen','color','md-option-empty','\x22audio\x22','(\x5c(.*\x5c))?\x5cs*\x5cB[-=]>','uib:datepicker.focus','%d\x20ثانیه','dddd\x20LT[ට]','firstElementChild',')\x5cs','mousewheel','ایک\x20منٹ','Comparable\x20DateTime\x20Duration\x20Function\x20Iterable\x20Iterator\x20List\x20Map\x20Match\x20Null\x20Object\x20Pattern\x20RegExp\x20Set\x20Stopwatch\x20String\x20StringBuffer\x20StringSink\x20Symbol\x20Type\x20Uri\x20bool\x20double\x20dynamic\x20int\x20num\x20print\x20Element\x20ElementList\x20document\x20querySelector\x20querySelectorAll\x20window','D.\x20MMMM\x20YYYY\x20HH:mm','ng-repeat','\x5cw+-?\x5cw+','msSaveBlob','STATUS_ANSWERED','luminosity','overrideSuggestions','mdInvert','$mdExpansionPanelGroup','goToPrevPage','showDigital','mwConfirmClick','\x5cbid\x5cs*:','თვე','@mdContactImage','#ffe57f','session\x20progress','aspect','DELETE','processPacketQueue','_setACKTimer','_audioMuted','35px','hearts','mdRowSelect','wondering','NNNNN','unu\x20tago','\x20webkitTransitionEnd','array','microphone','.*?','0b\x201b','[Wczoraj\x20o]\x20LT','exception','_toggleMuteAudio','Year','=?mdConnectedIf','1\x20เดือน','mdFloatingLabel','pirms\x20%s','waning_gibbous_moon','applyRawParams','color.toRgbString()','mdCalendarMonth','fried_shrimp','सांजे','inspect','\x20Jahren','parseDate','r16','SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT\x20SYSRES_CONST_ACCES_RIGHT_TYPE_FULL\x20SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW\x20SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_NO_ACCESS_VIEW\x20SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_VIEW\x20SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE\x20SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE\x20SYSRES_CONST_ACCESS_TYPE_CHANGE\x20SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE\x20SYSRES_CONST_ACCESS_TYPE_EXISTS\x20SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE\x20SYSRES_CONST_ACCESS_TYPE_FULL\x20SYSRES_CONST_ACCESS_TYPE_FULL_CODE\x20SYSRES_CONST_ACCESS_TYPE_VIEW\x20SYSRES_CONST_ACCESS_TYPE_VIEW_CODE\x20SYSRES_CONST_ACTION_TYPE_ABORT\x20SYSRES_CONST_ACTION_TYPE_ACCEPT\x20SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS\x20SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT\x20SYSRES_CONST_ACTION_TYPE_CHANGE_CARD\x20SYSRES_CONST_ACTION_TYPE_CHANGE_KIND\x20SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE\x20SYSRES_CONST_ACTION_TYPE_CONTINUE\x20SYSRES_CONST_ACTION_TYPE_COPY\x20SYSRES_CONST_ACTION_TYPE_CREATE\x20SYSRES_CONST_ACTION_TYPE_CREATE_VERSION\x20SYSRES_CONST_ACTION_TYPE_DELETE\x20SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT\x20SYSRES_CONST_ACTION_TYPE_DELETE_VERSION\x20SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS\x20SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS\x20SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE\x20SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD\x20SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD\x20SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK\x20SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK\x20SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK\x20SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK\x20SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE\x20SYSRES_CONST_ACTION_TYPE_LOCK\x20SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER\x20SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY\x20SYSRES_CONST_ACTION_TYPE_MARK_AS_READED\x20SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED\x20SYSRES_CONST_ACTION_TYPE_MODIFY\x20SYSRES_CONST_ACTION_TYPE_MODIFY_CARD\x20SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE\x20SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION\x20SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE\x20SYSRES_CONST_ACTION_TYPE_PERFORM\x20SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY\x20SYSRES_CONST_ACTION_TYPE_RESTART\x20SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE\x20SYSRES_CONST_ACTION_TYPE_REVISION\x20SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL\x20SYSRES_CONST_ACTION_TYPE_SIGN\x20SYSRES_CONST_ACTION_TYPE_START\x20SYSRES_CONST_ACTION_TYPE_UNLOCK\x20SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER\x20SYSRES_CONST_ACTION_TYPE_VERSION_STATE\x20SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY\x20SYSRES_CONST_ACTION_TYPE_VIEW\x20SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY\x20SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY\x20SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY\x20SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE\x20SYSRES_CONST_ADD_REFERENCE_MODE_NAME\x20SYSRES_CONST_ADDITION_REQUISITE_CODE\x20SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE\x20SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME\x20SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME\x20SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME\x20SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME\x20SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION\x20SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE\x20SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION\x20SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS\x20SYSRES_CONST_ALL_USERS_GROUP\x20SYSRES_CONST_ALL_USERS_GROUP_NAME\x20SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME\x20SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE\x20SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME\x20SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE\x20SYSRES_CONST_APPROVING_SIGNATURE_NAME\x20SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE\x20SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE\x20SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE\x20SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN\x20SYSRES_CONST_ATTACH_TYPE_DOC\x20SYSRES_CONST_ATTACH_TYPE_EDOC\x20SYSRES_CONST_ATTACH_TYPE_FOLDER\x20SYSRES_CONST_ATTACH_TYPE_JOB\x20SYSRES_CONST_ATTACH_TYPE_REFERENCE\x20SYSRES_CONST_ATTACH_TYPE_TASK\x20SYSRES_CONST_AUTH_ENCODED_PASSWORD\x20SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE\x20SYSRES_CONST_AUTH_NOVELL\x20SYSRES_CONST_AUTH_PASSWORD\x20SYSRES_CONST_AUTH_PASSWORD_CODE\x20SYSRES_CONST_AUTH_WINDOWS\x20SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME\x20SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE\x20SYSRES_CONST_AUTO_ENUM_METHOD_FLAG\x20SYSRES_CONST_AUTO_NUMERATION_CODE\x20SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG\x20SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE\x20SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE\x20SYSRES_CONST_AUTOTEXT_USAGE_ALL\x20SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE\x20SYSRES_CONST_AUTOTEXT_USAGE_SIGN\x20SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE\x20SYSRES_CONST_AUTOTEXT_USAGE_WORK\x20SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE\x20SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE\x20SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE\x20SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE\x20SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE\x20SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR\x20SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR\x20SYSRES_CONST_BTN_PART\x20SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE\x20SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE\x20SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE\x20SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT\x20SYSRES_CONST_CARD_PART\x20SYSRES_CONST_CARD_REFERENCE_MODE_NAME\x20SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE\x20SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE\x20SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE\x20SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE\x20SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE\x20SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE\x20SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE\x20SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE\x20SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE\x20SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE\x20SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN\x20SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER\x20SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS\x20SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS\x20SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE\x20SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER\x20SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE\x20SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT\x20SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT\x20SYSRES_CONST_CODE_COMPONENT_TYPE_URL\x20SYSRES_CONST_CODE_REQUISITE_ACCESS\x20SYSRES_CONST_CODE_REQUISITE_CODE\x20SYSRES_CONST_CODE_REQUISITE_COMPONENT\x20SYSRES_CONST_CODE_REQUISITE_DESCRIPTION\x20SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT\x20SYSRES_CONST_CODE_REQUISITE_RECORD\x20SYSRES_CONST_COMMENT_REQ_CODE\x20SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE\x20SYSRES_CONST_COMP_CODE_GRD\x20SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE\x20SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS\x20SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS\x20SYSRES_CONST_COMPONENT_TYPE_DOCS\x20SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS\x20SYSRES_CONST_COMPONENT_TYPE_EDOCS\x20SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE\x20SYSRES_CONST_COMPONENT_TYPE_OTHER\x20SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES\x20SYSRES_CONST_COMPONENT_TYPE_REFERENCES\x20SYSRES_CONST_COMPONENT_TYPE_REPORTS\x20SYSRES_CONST_COMPONENT_TYPE_SCRIPTS\x20SYSRES_CONST_COMPONENT_TYPE_URL\x20SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE\x20SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION\x20SYSRES_CONST_CONST_FIRM_STATUS_COMMON\x20SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL\x20SYSRES_CONST_CONST_NEGATIVE_VALUE\x20SYSRES_CONST_CONST_POSITIVE_VALUE\x20SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE\x20SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE\x20SYSRES_CONST_CONTENTS_REQUISITE_CODE\x20SYSRES_CONST_DATA_TYPE_BOOLEAN\x20SYSRES_CONST_DATA_TYPE_DATE\x20SYSRES_CONST_DATA_TYPE_FLOAT\x20SYSRES_CONST_DATA_TYPE_INTEGER\x20SYSRES_CONST_DATA_TYPE_PICK\x20SYSRES_CONST_DATA_TYPE_REFERENCE\x20SYSRES_CONST_DATA_TYPE_STRING\x20SYSRES_CONST_DATA_TYPE_TEXT\x20SYSRES_CONST_DATA_TYPE_VARIANT\x20SYSRES_CONST_DATE_CLOSE_REQ_CODE\x20SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR\x20SYSRES_CONST_DATE_OPEN_REQ_CODE\x20SYSRES_CONST_DATE_REQUISITE\x20SYSRES_CONST_DATE_REQUISITE_CODE\x20SYSRES_CONST_DATE_REQUISITE_NAME\x20SYSRES_CONST_DATE_REQUISITE_TYPE\x20SYSRES_CONST_DATE_TYPE_CHAR\x20SYSRES_CONST_DATETIME_FORMAT_VALUE\x20SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE\x20SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE\x20SYSRES_CONST_DESCRIPTION_REQUISITE_CODE\x20SYSRES_CONST_DET1_PART\x20SYSRES_CONST_DET2_PART\x20SYSRES_CONST_DET3_PART\x20SYSRES_CONST_DET4_PART\x20SYSRES_CONST_DET5_PART\x20SYSRES_CONST_DET6_PART\x20SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE\x20SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE\x20SYSRES_CONST_DETAIL_REQ_CODE\x20SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE\x20SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME\x20SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE\x20SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME\x20SYSRES_CONST_DOCUMENT_STORAGES_CODE\x20SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME\x20SYSRES_CONST_DOUBLE_REQUISITE_CODE\x20SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE\x20SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE\x20SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE\x20SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE\x20SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE\x20SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE\x20SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE\x20SYSRES_CONST_EDITORS_REFERENCE_CODE\x20SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE\x20SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE\x20SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE\x20SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE\x20SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE\x20SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE\x20SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE\x20SYSRES_CONST_EDOC_DATE_REQUISITE_CODE\x20SYSRES_CONST_EDOC_KIND_REFERENCE_CODE\x20SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE\x20SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE\x20SYSRES_CONST_EDOC_NONE_ENCODE_CODE\x20SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE\x20SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE\x20SYSRES_CONST_EDOC_READONLY_ACCESS_CODE\x20SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE\x20SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE\x20SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE\x20SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE\x20SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE\x20SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE\x20SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE\x20SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE\x20SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE\x20SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE\x20SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE\x20SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE\x20SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE\x20SYSRES_CONST_EDOC_WRITE_ACCES_CODE\x20SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE\x20SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE\x20SYSRES_CONST_END_DATE_REQUISITE_CODE\x20SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE\x20SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE\x20SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE\x20SYSRES_CONST_EXIST_CONST\x20SYSRES_CONST_EXIST_VALUE\x20SYSRES_CONST_EXPORT_LOCK_TYPE_ASK\x20SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK\x20SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK\x20SYSRES_CONST_EXPORT_VERSION_TYPE_ASK\x20SYSRES_CONST_EXPORT_VERSION_TYPE_LAST\x20SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE\x20SYSRES_CONST_EXTENSION_REQUISITE_CODE\x20SYSRES_CONST_FILTER_NAME_REQUISITE_CODE\x20SYSRES_CONST_FILTER_REQUISITE_CODE\x20SYSRES_CONST_FILTER_TYPE_COMMON_CODE\x20SYSRES_CONST_FILTER_TYPE_COMMON_NAME\x20SYSRES_CONST_FILTER_TYPE_USER_CODE\x20SYSRES_CONST_FILTER_TYPE_USER_NAME\x20SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME\x20SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR\x20SYSRES_CONST_FLOAT_REQUISITE_TYPE\x20SYSRES_CONST_FOLDER_AUTHOR_VALUE\x20SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS\x20SYSRES_CONST_FOLDER_KIND_COMPONENTS\x20SYSRES_CONST_FOLDER_KIND_EDOCS\x20SYSRES_CONST_FOLDER_KIND_JOBS\x20SYSRES_CONST_FOLDER_KIND_TASKS\x20SYSRES_CONST_FOLDER_TYPE_COMMON\x20SYSRES_CONST_FOLDER_TYPE_COMPONENT\x20SYSRES_CONST_FOLDER_TYPE_FAVORITES\x20SYSRES_CONST_FOLDER_TYPE_INBOX\x20SYSRES_CONST_FOLDER_TYPE_OUTBOX\x20SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH\x20SYSRES_CONST_FOLDER_TYPE_SEARCH\x20SYSRES_CONST_FOLDER_TYPE_SHORTCUTS\x20SYSRES_CONST_FOLDER_TYPE_USER\x20SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG\x20SYSRES_CONST_FULL_SUBSTITUTE_TYPE\x20SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE\x20SYSRES_CONST_FUNCTION_CANCEL_RESULT\x20SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM\x20SYSRES_CONST_FUNCTION_CATEGORY_USER\x20SYSRES_CONST_FUNCTION_FAILURE_RESULT\x20SYSRES_CONST_FUNCTION_SAVE_RESULT\x20SYSRES_CONST_GENERATED_REQUISITE\x20SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR\x20SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE\x20SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE\x20SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME\x20SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE\x20SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME\x20SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE\x20SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE\x20SYSRES_CONST_GROUP_NAME_REQUISITE_CODE\x20SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE\x20SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE\x20SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE\x20SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE\x20SYSRES_CONST_GROUP_USER_REQUISITE_CODE\x20SYSRES_CONST_GROUPS_REFERENCE_CODE\x20SYSRES_CONST_GROUPS_REQUISITE_CODE\x20SYSRES_CONST_HIDDEN_MODE_NAME\x20SYSRES_CONST_HIGH_LVL_REQUISITE_CODE\x20SYSRES_CONST_HISTORY_ACTION_CREATE_CODE\x20SYSRES_CONST_HISTORY_ACTION_DELETE_CODE\x20SYSRES_CONST_HISTORY_ACTION_EDIT_CODE\x20SYSRES_CONST_HOUR_CHAR\x20SYSRES_CONST_ID_REQUISITE_CODE\x20SYSRES_CONST_IDSPS_REQUISITE_CODE\x20SYSRES_CONST_IMAGE_MODE_COLOR\x20SYSRES_CONST_IMAGE_MODE_GREYSCALE\x20SYSRES_CONST_IMAGE_MODE_MONOCHROME\x20SYSRES_CONST_IMPORTANCE_HIGH\x20SYSRES_CONST_IMPORTANCE_LOW\x20SYSRES_CONST_IMPORTANCE_NORMAL\x20SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE\x20SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE\x20SYSRES_CONST_INT_REQUISITE\x20SYSRES_CONST_INT_REQUISITE_TYPE\x20SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR\x20SYSRES_CONST_INTEGER_TYPE_CHAR\x20SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE\x20SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE\x20SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE\x20SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE\x20SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE\x20SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE\x20SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE\x20SYSRES_CONST_JOB_BLOCK_DESCRIPTION\x20SYSRES_CONST_JOB_KIND_CONTROL_JOB\x20SYSRES_CONST_JOB_KIND_JOB\x20SYSRES_CONST_JOB_KIND_NOTICE\x20SYSRES_CONST_JOB_STATE_ABORTED\x20SYSRES_CONST_JOB_STATE_COMPLETE\x20SYSRES_CONST_JOB_STATE_WORKING\x20SYSRES_CONST_KIND_REQUISITE_CODE\x20SYSRES_CONST_KIND_REQUISITE_NAME\x20SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE\x20SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE\x20SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE\x20SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE\x20SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE\x20SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE\x20SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE\x20SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE\x20SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE\x20SYSRES_CONST_KOD_INPUT_TYPE\x20SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE\x20SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE\x20SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR\x20SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT\x20SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT\x20SYSRES_CONST_LINK_OBJECT_KIND_EDOC\x20SYSRES_CONST_LINK_OBJECT_KIND_FOLDER\x20SYSRES_CONST_LINK_OBJECT_KIND_JOB\x20SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE\x20SYSRES_CONST_LINK_OBJECT_KIND_TASK\x20SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE\x20SYSRES_CONST_LIST_REFERENCE_MODE_NAME\x20SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE\x20SYSRES_CONST_MAIN_VIEW_CODE\x20SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG\x20SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE\x20SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE\x20SYSRES_CONST_MAXIMIZED_MODE_NAME\x20SYSRES_CONST_ME_VALUE\x20SYSRES_CONST_MESSAGE_ATTENTION_CAPTION\x20SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION\x20SYSRES_CONST_MESSAGE_ERROR_CAPTION\x20SYSRES_CONST_MESSAGE_INFORMATION_CAPTION\x20SYSRES_CONST_MINIMIZED_MODE_NAME\x20SYSRES_CONST_MINUTE_CHAR\x20SYSRES_CONST_MODULE_REQUISITE_CODE\x20SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION\x20SYSRES_CONST_MONTH_FORMAT_VALUE\x20SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE\x20SYSRES_CONST_NAME_REQUISITE_CODE\x20SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE\x20SYSRES_CONST_NAMEAN_INPUT_TYPE\x20SYSRES_CONST_NEGATIVE_PICK_VALUE\x20SYSRES_CONST_NEGATIVE_VALUE\x20SYSRES_CONST_NO\x20SYSRES_CONST_NO_PICK_VALUE\x20SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE\x20SYSRES_CONST_NO_VALUE\x20SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE\x20SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE\x20SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE\x20SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE\x20SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE\x20SYSRES_CONST_NORMAL_MODE_NAME\x20SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE\x20SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME\x20SYSRES_CONST_NOTE_REQUISITE_CODE\x20SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION\x20SYSRES_CONST_NUM_REQUISITE\x20SYSRES_CONST_NUM_STR_REQUISITE_CODE\x20SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG\x20SYSRES_CONST_NUMERATION_AUTO_STRONG\x20SYSRES_CONST_NUMERATION_FROM_DICTONARY\x20SYSRES_CONST_NUMERATION_MANUAL\x20SYSRES_CONST_NUMERIC_TYPE_CHAR\x20SYSRES_CONST_NUMREQ_REQUISITE_CODE\x20SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE\x20SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE\x20SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE\x20SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE\x20SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE\x20SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX\x20SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR\x20SYSRES_CONST_ORIGINALREF_REQUISITE_CODE\x20SYSRES_CONST_OURFIRM_REF_CODE\x20SYSRES_CONST_OURFIRM_REQUISITE_CODE\x20SYSRES_CONST_OURFIRM_VAR\x20SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE\x20SYSRES_CONST_PICK_NEGATIVE_RESULT\x20SYSRES_CONST_PICK_POSITIVE_RESULT\x20SYSRES_CONST_PICK_REQUISITE\x20SYSRES_CONST_PICK_REQUISITE_TYPE\x20SYSRES_CONST_PICK_TYPE_CHAR\x20SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE\x20SYSRES_CONST_PLATFORM_VERSION_COMMENT\x20SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE\x20SYSRES_CONST_POSITIVE_PICK_VALUE\x20SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE\x20SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE\x20SYSRES_CONST_PRIORITY_REQUISITE_CODE\x20SYSRES_CONST_QUALIFIED_TASK_TYPE\x20SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE\x20SYSRES_CONST_RECSTAT_REQUISITE_CODE\x20SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR\x20SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE\x20SYSRES_CONST_REF_REQUISITE\x20SYSRES_CONST_REF_REQUISITE_TYPE\x20SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE\x20SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE\x20SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE\x20SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE\x20SYSRES_CONST_REFERENCE_TYPE_CHAR\x20SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME\x20SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE\x20SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE\x20SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING\x20SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN\x20SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY\x20SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE\x20SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL\x20SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE\x20SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE\x20SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE\x20SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE\x20SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE\x20SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE\x20SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE\x20SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE\x20SYSRES_CONST_REQ_MODE_AVAILABLE_CODE\x20SYSRES_CONST_REQ_MODE_EDIT_CODE\x20SYSRES_CONST_REQ_MODE_HIDDEN_CODE\x20SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE\x20SYSRES_CONST_REQ_MODE_VIEW_CODE\x20SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE\x20SYSRES_CONST_REQ_SECTION_VALUE\x20SYSRES_CONST_REQ_TYPE_VALUE\x20SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT\x20SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL\x20SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME\x20SYSRES_CONST_REQUISITE_FORMAT_LEFT\x20SYSRES_CONST_REQUISITE_FORMAT_RIGHT\x20SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT\x20SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE\x20SYSRES_CONST_REQUISITE_SECTION_ACTIONS\x20SYSRES_CONST_REQUISITE_SECTION_BUTTON\x20SYSRES_CONST_REQUISITE_SECTION_BUTTONS\x20SYSRES_CONST_REQUISITE_SECTION_CARD\x20SYSRES_CONST_REQUISITE_SECTION_TABLE\x20SYSRES_CONST_REQUISITE_SECTION_TABLE10\x20SYSRES_CONST_REQUISITE_SECTION_TABLE11\x20SYSRES_CONST_REQUISITE_SECTION_TABLE12\x20SYSRES_CONST_REQUISITE_SECTION_TABLE13\x20SYSRES_CONST_REQUISITE_SECTION_TABLE14\x20SYSRES_CONST_REQUISITE_SECTION_TABLE15\x20SYSRES_CONST_REQUISITE_SECTION_TABLE16\x20SYSRES_CONST_REQUISITE_SECTION_TABLE17\x20SYSRES_CONST_REQUISITE_SECTION_TABLE18\x20SYSRES_CONST_REQUISITE_SECTION_TABLE19\x20SYSRES_CONST_REQUISITE_SECTION_TABLE2\x20SYSRES_CONST_REQUISITE_SECTION_TABLE20\x20SYSRES_CONST_REQUISITE_SECTION_TABLE21\x20SYSRES_CONST_REQUISITE_SECTION_TABLE22\x20SYSRES_CONST_REQUISITE_SECTION_TABLE23\x20SYSRES_CONST_REQUISITE_SECTION_TABLE24\x20SYSRES_CONST_REQUISITE_SECTION_TABLE3\x20SYSRES_CONST_REQUISITE_SECTION_TABLE4\x20SYSRES_CONST_REQUISITE_SECTION_TABLE5\x20SYSRES_CONST_REQUISITE_SECTION_TABLE6\x20SYSRES_CONST_REQUISITE_SECTION_TABLE7\x20SYSRES_CONST_REQUISITE_SECTION_TABLE8\x20SYSRES_CONST_REQUISITE_SECTION_TABLE9\x20SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE\x20SYSRES_CONST_RIGHT_ALIGNMENT_CODE\x20SYSRES_CONST_ROLES_REFERENCE_CODE\x20SYSRES_CONST_ROUTE_STEP_AFTER_RUS\x20SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS\x20SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS\x20SYSRES_CONST_ROUTE_TYPE_COMPLEX\x20SYSRES_CONST_ROUTE_TYPE_PARALLEL\x20SYSRES_CONST_ROUTE_TYPE_SERIAL\x20SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE\x20SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE\x20SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE\x20SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION\x20SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE\x20SYSRES_CONST_SEARCHES_COMPONENT_CONTENT\x20SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME\x20SYSRES_CONST_SEARCHES_EDOC_CONTENT\x20SYSRES_CONST_SEARCHES_FOLDER_CONTENT\x20SYSRES_CONST_SEARCHES_JOB_CONTENT\x20SYSRES_CONST_SEARCHES_REFERENCE_CODE\x20SYSRES_CONST_SEARCHES_TASK_CONTENT\x20SYSRES_CONST_SECOND_CHAR\x20SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE\x20SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE\x20SYSRES_CONST_SECTION_REQUISITE_CODE\x20SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE\x20SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE\x20SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE\x20SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE\x20SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE\x20SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE\x20SYSRES_CONST_SELECT_REFERENCE_MODE_NAME\x20SYSRES_CONST_SELECT_TYPE_SELECTABLE\x20SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD\x20SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD\x20SYSRES_CONST_SELECT_TYPE_UNSLECTABLE\x20SYSRES_CONST_SERVER_TYPE_MAIN\x20SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE\x20SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE\x20SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE\x20SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE\x20SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE\x20SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE\x20SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE\x20SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE\x20SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE\x20SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE\x20SYSRES_CONST_STATE_REQ_NAME\x20SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE\x20SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE\x20SYSRES_CONST_STATE_REQUISITE_CODE\x20SYSRES_CONST_STATIC_ROLE_TYPE_CODE\x20SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE\x20SYSRES_CONST_STATUS_VALUE_AUTOCLEANING\x20SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE\x20SYSRES_CONST_STATUS_VALUE_COMPLETE\x20SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE\x20SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE\x20SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE\x20SYSRES_CONST_STATUS_VALUE_RED_SQUARE\x20SYSRES_CONST_STATUS_VALUE_SUSPEND\x20SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE\x20SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE\x20SYSRES_CONST_STORAGE_TYPE_FILE\x20SYSRES_CONST_STORAGE_TYPE_SQL_SERVER\x20SYSRES_CONST_STR_REQUISITE\x20SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE\x20SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR\x20SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR\x20SYSRES_CONST_STRING_REQUISITE_CODE\x20SYSRES_CONST_STRING_REQUISITE_TYPE\x20SYSRES_CONST_STRING_TYPE_CHAR\x20SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE\x20SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION\x20SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE\x20SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE\x20SYSRES_CONST_SYSTEM_VERSION_COMMENT\x20SYSRES_CONST_TASK_ACCESS_TYPE_ALL\x20SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS\x20SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL\x20SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION\x20SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD\x20SYSRES_CONST_TASK_ENCODE_TYPE_NONE\x20SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD\x20SYSRES_CONST_TASK_ROUTE_ALL_CONDITION\x20SYSRES_CONST_TASK_ROUTE_AND_CONDITION\x20SYSRES_CONST_TASK_ROUTE_OR_CONDITION\x20SYSRES_CONST_TASK_STATE_ABORTED\x20SYSRES_CONST_TASK_STATE_COMPLETE\x20SYSRES_CONST_TASK_STATE_CONTINUED\x20SYSRES_CONST_TASK_STATE_CONTROL\x20SYSRES_CONST_TASK_STATE_INIT\x20SYSRES_CONST_TASK_STATE_WORKING\x20SYSRES_CONST_TASK_TITLE\x20SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE\x20SYSRES_CONST_TASK_TYPES_REFERENCE_CODE\x20SYSRES_CONST_TEMPLATES_REFERENCE_CODE\x20SYSRES_CONST_TEST_DATE_REQUISITE_NAME\x20SYSRES_CONST_TEST_DEV_DATABASE_NAME\x20SYSRES_CONST_TEST_DEV_SYSTEM_CODE\x20SYSRES_CONST_TEST_EDMS_DATABASE_NAME\x20SYSRES_CONST_TEST_EDMS_MAIN_CODE\x20SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME\x20SYSRES_CONST_TEST_EDMS_SECOND_CODE\x20SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME\x20SYSRES_CONST_TEST_EDMS_SYSTEM_CODE\x20SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME\x20SYSRES_CONST_TEXT_REQUISITE\x20SYSRES_CONST_TEXT_REQUISITE_CODE\x20SYSRES_CONST_TEXT_REQUISITE_TYPE\x20SYSRES_CONST_TEXT_TYPE_CHAR\x20SYSRES_CONST_TYPE_CODE_REQUISITE_CODE\x20SYSRES_CONST_TYPE_REQUISITE_CODE\x20SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR\x20SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE\x20SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE\x20SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE\x20SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE\x20SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME\x20SYSRES_CONST_USE_ACCESS_TYPE_CODE\x20SYSRES_CONST_USE_ACCESS_TYPE_NAME\x20SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE\x20SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE\x20SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE\x20SYSRES_CONST_USER_CATEGORY_NORMAL\x20SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE\x20SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE\x20SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE\x20SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE\x20SYSRES_CONST_USER_COMMON_CATEGORY\x20SYSRES_CONST_USER_COMMON_CATEGORY_CODE\x20SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE\x20SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE\x20SYSRES_CONST_USER_LOGIN_REQUISITE_CODE\x20SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE\x20SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE\x20SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE\x20SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE\x20SYSRES_CONST_USER_SERVICE_CATEGORY\x20SYSRES_CONST_USER_SERVICE_CATEGORY_CODE\x20SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE\x20SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME\x20SYSRES_CONST_USER_STATUS_DEVELOPER_CODE\x20SYSRES_CONST_USER_STATUS_DEVELOPER_NAME\x20SYSRES_CONST_USER_STATUS_DISABLED_CODE\x20SYSRES_CONST_USER_STATUS_DISABLED_NAME\x20SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE\x20SYSRES_CONST_USER_STATUS_USER_CODE\x20SYSRES_CONST_USER_STATUS_USER_NAME\x20SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED\x20SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER\x20SYSRES_CONST_USER_TYPE_REQUISITE_CODE\x20SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE\x20SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE\x20SYSRES_CONST_USERS_REFERENCE_CODE\x20SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME\x20SYSRES_CONST_USERS_REQUISITE_CODE\x20SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE\x20SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE\x20SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE\x20SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE\x20SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE\x20SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME\x20SYSRES_CONST_VIEW_DEFAULT_CODE\x20SYSRES_CONST_VIEW_DEFAULT_NAME\x20SYSRES_CONST_VIEWER_REQUISITE_CODE\x20SYSRES_CONST_WAITING_BLOCK_DESCRIPTION\x20SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING\x20\x20SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING\x20SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE\x20SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE\x20SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE\x20SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE\x20SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE\x20SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS\x20SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS\x20SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD\x20SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT\x20SYSRES_CONST_XML_ENCODING\x20SYSRES_CONST_XREC_STAT_REQUISITE_CODE\x20SYSRES_CONST_XRECID_FIELD_NAME\x20SYSRES_CONST_YES\x20SYSRES_CONST_YES_NO_2_REQUISITE_CODE\x20SYSRES_CONST_YES_NO_REQUISITE_CODE\x20SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE\x20SYSRES_CONST_YES_PICK_VALUE\x20SYSRES_CONST_YES_VALUE\x20CR\x20FALSE\x20nil\x20NO_VALUE\x20NULL\x20TAB\x20TRUE\x20YES_VALUE\x20ADMINISTRATORS_GROUP_NAME\x20CUSTOMIZERS_GROUP_NAME\x20DEVELOPERS_GROUP_NAME\x20SERVICE_USERS_GROUP_NAME\x20DECISION_BLOCK_FIRST_OPERAND_PROPERTY\x20DECISION_BLOCK_NAME_PROPERTY\x20DECISION_BLOCK_OPERATION_PROPERTY\x20DECISION_BLOCK_RESULT_TYPE_PROPERTY\x20DECISION_BLOCK_SECOND_OPERAND_PROPERTY\x20ANY_FILE_EXTENTION\x20COMPRESSED_DOCUMENT_EXTENSION\x20EXTENDED_DOCUMENT_EXTENSION\x20SHORT_COMPRESSED_DOCUMENT_EXTENSION\x20SHORT_EXTENDED_DOCUMENT_EXTENSION\x20JOB_BLOCK_ABORT_DEADLINE_PROPERTY\x20JOB_BLOCK_AFTER_FINISH_EVENT\x20JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT\x20JOB_BLOCK_ATTACHMENT_PROPERTY\x20JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY\x20JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY\x20JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT\x20JOB_BLOCK_BEFORE_START_EVENT\x20JOB_BLOCK_CREATED_JOBS_PROPERTY\x20JOB_BLOCK_DEADLINE_PROPERTY\x20JOB_BLOCK_EXECUTION_RESULTS_PROPERTY\x20JOB_BLOCK_IS_PARALLEL_PROPERTY\x20JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY\x20JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY\x20JOB_BLOCK_JOB_TEXT_PROPERTY\x20JOB_BLOCK_NAME_PROPERTY\x20JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY\x20JOB_BLOCK_PERFORMER_PROPERTY\x20JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY\x20JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY\x20JOB_BLOCK_SUBJECT_PROPERTY\x20ENGLISH_LANGUAGE_CODE\x20RUSSIAN_LANGUAGE_CODE\x20smHidden\x20smMaximized\x20smMinimized\x20smNormal\x20wmNo\x20wmYes\x20COMPONENT_TOKEN_LINK_KIND\x20DOCUMENT_LINK_KIND\x20EDOCUMENT_LINK_KIND\x20FOLDER_LINK_KIND\x20JOB_LINK_KIND\x20REFERENCE_LINK_KIND\x20TASK_LINK_KIND\x20COMPONENT_TOKEN_LOCK_TYPE\x20EDOCUMENT_VERSION_LOCK_TYPE\x20MONITOR_BLOCK_AFTER_FINISH_EVENT\x20MONITOR_BLOCK_BEFORE_START_EVENT\x20MONITOR_BLOCK_DEADLINE_PROPERTY\x20MONITOR_BLOCK_INTERVAL_PROPERTY\x20MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY\x20MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY\x20MONITOR_BLOCK_NAME_PROPERTY\x20MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY\x20MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY\x20NOTICE_BLOCK_AFTER_FINISH_EVENT\x20NOTICE_BLOCK_ATTACHMENT_PROPERTY\x20NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY\x20NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY\x20NOTICE_BLOCK_BEFORE_START_EVENT\x20NOTICE_BLOCK_CREATED_NOTICES_PROPERTY\x20NOTICE_BLOCK_DEADLINE_PROPERTY\x20NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY\x20NOTICE_BLOCK_NAME_PROPERTY\x20NOTICE_BLOCK_NOTICE_TEXT_PROPERTY\x20NOTICE_BLOCK_PERFORMER_PROPERTY\x20NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY\x20NOTICE_BLOCK_SUBJECT_PROPERTY\x20dseAfterCancel\x20dseAfterClose\x20dseAfterDelete\x20dseAfterDeleteOutOfTransaction\x20dseAfterInsert\x20dseAfterOpen\x20dseAfterScroll\x20dseAfterUpdate\x20dseAfterUpdateOutOfTransaction\x20dseBeforeCancel\x20dseBeforeClose\x20dseBeforeDelete\x20dseBeforeDetailUpdate\x20dseBeforeInsert\x20dseBeforeOpen\x20dseBeforeUpdate\x20dseOnAnyRequisiteChange\x20dseOnCloseRecord\x20dseOnDeleteError\x20dseOnOpenRecord\x20dseOnPrepareUpdate\x20dseOnUpdateError\x20dseOnUpdateRatifiedRecord\x20dseOnValidDelete\x20dseOnValidUpdate\x20reOnChange\x20reOnChangeValues\x20SELECTION_BEGIN_ROUTE_EVENT\x20SELECTION_END_ROUTE_EVENT\x20CURRENT_PERIOD_IS_REQUIRED\x20PREVIOUS_CARD_TYPE_NAME\x20SHOW_RECORD_PROPERTIES_FORM\x20ACCESS_RIGHTS_SETTING_DIALOG_CODE\x20ADMINISTRATOR_USER_CODE\x20ANALYTIC_REPORT_TYPE\x20asrtHideLocal\x20asrtHideRemote\x20CALCULATED_ROLE_TYPE_CODE\x20COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE\x20DCTS_TEST_PROTOCOLS_FOLDER_PATH\x20E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED\x20E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER\x20E_EDOC_VERSION_ALREDY_SIGNED\x20E_EDOC_VERSION_ALREDY_SIGNED_BY_USER\x20EDOC_TYPES_CODE_REQUISITE_FIELD_NAME\x20EDOCUMENTS_ALIAS_NAME\x20FILES_FOLDER_PATH\x20FILTER_OPERANDS_DELIMITER\x20FILTER_OPERATIONS_DELIMITER\x20FORMCARD_NAME\x20FORMLIST_NAME\x20GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE\x20GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE\x20INTEGRATED_REPORT_TYPE\x20IS_BUILDER_APPLICATION_ROLE\x20IS_BUILDER_APPLICATION_ROLE2\x20IS_BUILDER_USERS\x20ISBSYSDEV\x20LOG_FOLDER_PATH\x20mbCancel\x20mbNo\x20mbNoToAll\x20mbOK\x20mbYes\x20mbYesToAll\x20MEMORY_DATASET_DESRIPTIONS_FILENAME\x20mrNo\x20mrNoToAll\x20mrYes\x20mrYesToAll\x20MULTIPLE_SELECT_DIALOG_CODE\x20NONOPERATING_RECORD_FLAG_FEMININE\x20NONOPERATING_RECORD_FLAG_MASCULINE\x20OPERATING_RECORD_FLAG_FEMININE\x20OPERATING_RECORD_FLAG_MASCULINE\x20PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE\x20PROGRAM_INITIATED_LOOKUP_ACTION\x20ratDelete\x20ratEdit\x20ratInsert\x20REPORT_TYPE\x20REQUIRED_PICK_VALUES_VARIABLE\x20rmCard\x20rmList\x20SBRTE_PROGID_DEV\x20SBRTE_PROGID_RELEASE\x20STATIC_ROLE_TYPE_CODE\x20SUPPRESS_EMPTY_TEMPLATE_CREATION\x20SYSTEM_USER_CODE\x20UPDATE_DIALOG_DATASET\x20USED_IN_OBJECT_HINT_PARAM\x20USER_INITIATED_LOOKUP_ACTION\x20USER_NAME_FORMAT\x20USER_SELECTION_RESTRICTIONS\x20WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH\x20ELS_SUBTYPE_CONTROL_NAME\x20ELS_FOLDER_KIND_CONTROL_NAME\x20REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME\x20PRIVILEGE_COMPONENT_FULL_ACCESS\x20PRIVILEGE_DEVELOPMENT_EXPORT\x20PRIVILEGE_DEVELOPMENT_IMPORT\x20PRIVILEGE_DOCUMENT_DELETE\x20PRIVILEGE_ESD\x20PRIVILEGE_FOLDER_DELETE\x20PRIVILEGE_MANAGE_ACCESS_RIGHTS\x20PRIVILEGE_MANAGE_REPLICATION\x20PRIVILEGE_MANAGE_SESSION_SERVER\x20PRIVILEGE_OBJECT_FULL_ACCESS\x20PRIVILEGE_OBJECT_VIEW\x20PRIVILEGE_RESERVE_LICENSE\x20PRIVILEGE_SYSTEM_CUSTOMIZE\x20PRIVILEGE_SYSTEM_DEVELOP\x20PRIVILEGE_SYSTEM_INSTALL\x20PRIVILEGE_TASK_DELETE\x20PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE\x20PRIVILEGES_PSEUDOREFERENCE_CODE\x20ACCESS_TYPES_PSEUDOREFERENCE_CODE\x20ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE\x20ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE\x20ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE\x20AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE\x20COMPONENTS_PSEUDOREFERENCE_CODE\x20FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE\x20GROUPS_PSEUDOREFERENCE_CODE\x20RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE\x20REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE\x20REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE\x20REFTYPES_PSEUDOREFERENCE_CODE\x20REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE\x20SEND_PROTOCOL_PSEUDOREFERENCE_CODE\x20SUBSTITUTES_PSEUDOREFERENCE_CODE\x20SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE\x20UNITS_PSEUDOREFERENCE_CODE\x20USERS_PSEUDOREFERENCE_CODE\x20VIEWERS_PSEUDOREFERENCE_CODE\x20CERTIFICATE_TYPE_ENCRYPT\x20CERTIFICATE_TYPE_SIGN\x20CERTIFICATE_TYPE_SIGN_AND_ENCRYPT\x20STORAGE_TYPE_FILE\x20STORAGE_TYPE_NAS_CIFS\x20STORAGE_TYPE_SAPERION\x20STORAGE_TYPE_SQL_SERVER\x20COMPTYPE2_REQUISITE_DOCUMENTS_VALUE\x20COMPTYPE2_REQUISITE_TASKS_VALUE\x20COMPTYPE2_REQUISITE_FOLDERS_VALUE\x20COMPTYPE2_REQUISITE_REFERENCES_VALUE\x20SYSREQ_CODE\x20SYSREQ_COMPTYPE2\x20SYSREQ_CONST_AVAILABLE_FOR_WEB\x20SYSREQ_CONST_COMMON_CODE\x20SYSREQ_CONST_COMMON_VALUE\x20SYSREQ_CONST_FIRM_CODE\x20SYSREQ_CONST_FIRM_STATUS\x20SYSREQ_CONST_FIRM_VALUE\x20SYSREQ_CONST_SERVER_STATUS\x20SYSREQ_CONTENTS\x20SYSREQ_DATE_OPEN\x20SYSREQ_DATE_CLOSE\x20SYSREQ_DESCRIPTION\x20SYSREQ_DESCRIPTION_LOCALIZE_ID\x20SYSREQ_DOUBLE\x20SYSREQ_EDOC_ACCESS_TYPE\x20SYSREQ_EDOC_AUTHOR\x20SYSREQ_EDOC_CREATED\x20SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE\x20SYSREQ_EDOC_EDITOR\x20SYSREQ_EDOC_ENCODE_TYPE\x20SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME\x20SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION\x20SYSREQ_EDOC_EXPORT_DATE\x20SYSREQ_EDOC_EXPORTER\x20SYSREQ_EDOC_KIND\x20SYSREQ_EDOC_LIFE_STAGE_NAME\x20SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE\x20SYSREQ_EDOC_MODIFIED\x20SYSREQ_EDOC_NAME\x20SYSREQ_EDOC_NOTE\x20SYSREQ_EDOC_QUALIFIED_ID\x20SYSREQ_EDOC_SESSION_KEY\x20SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME\x20SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION\x20SYSREQ_EDOC_SIGNATURE_TYPE\x20SYSREQ_EDOC_SIGNED\x20SYSREQ_EDOC_STORAGE\x20SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE\x20SYSREQ_EDOC_STORAGES_CHECK_RIGHTS\x20SYSREQ_EDOC_STORAGES_COMPUTER_NAME\x20SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE\x20SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE\x20SYSREQ_EDOC_STORAGES_FUNCTION\x20SYSREQ_EDOC_STORAGES_INITIALIZED\x20SYSREQ_EDOC_STORAGES_LOCAL_PATH\x20SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME\x20SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT\x20SYSREQ_EDOC_STORAGES_SERVER_NAME\x20SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME\x20SYSREQ_EDOC_STORAGES_TYPE\x20SYSREQ_EDOC_TEXT_MODIFIED\x20SYSREQ_EDOC_TYPE_ACT_CODE\x20SYSREQ_EDOC_TYPE_ACT_DESCRIPTION\x20SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID\x20SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE\x20SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS\x20SYSREQ_EDOC_TYPE_ACT_SECTION\x20SYSREQ_EDOC_TYPE_ADD_PARAMS\x20SYSREQ_EDOC_TYPE_COMMENT\x20SYSREQ_EDOC_TYPE_EVENT_TEXT\x20SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR\x20SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID\x20SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID\x20SYSREQ_EDOC_TYPE_NUMERATION_METHOD\x20SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE\x20SYSREQ_EDOC_TYPE_REQ_CODE\x20SYSREQ_EDOC_TYPE_REQ_DESCRIPTION\x20SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID\x20SYSREQ_EDOC_TYPE_REQ_IS_LEADING\x20SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED\x20SYSREQ_EDOC_TYPE_REQ_NUMBER\x20SYSREQ_EDOC_TYPE_REQ_ON_CHANGE\x20SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS\x20SYSREQ_EDOC_TYPE_REQ_ON_SELECT\x20SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND\x20SYSREQ_EDOC_TYPE_REQ_SECTION\x20SYSREQ_EDOC_TYPE_VIEW_CARD\x20SYSREQ_EDOC_TYPE_VIEW_CODE\x20SYSREQ_EDOC_TYPE_VIEW_COMMENT\x20SYSREQ_EDOC_TYPE_VIEW_IS_MAIN\x20SYSREQ_EDOC_TYPE_VIEW_NAME\x20SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID\x20SYSREQ_EDOC_VERSION_AUTHOR\x20SYSREQ_EDOC_VERSION_CRC\x20SYSREQ_EDOC_VERSION_DATA\x20SYSREQ_EDOC_VERSION_EDITOR\x20SYSREQ_EDOC_VERSION_EXPORT_DATE\x20SYSREQ_EDOC_VERSION_EXPORTER\x20SYSREQ_EDOC_VERSION_HIDDEN\x20SYSREQ_EDOC_VERSION_LIFE_STAGE\x20SYSREQ_EDOC_VERSION_MODIFIED\x20SYSREQ_EDOC_VERSION_NOTE\x20SYSREQ_EDOC_VERSION_SIGNATURE_TYPE\x20SYSREQ_EDOC_VERSION_SIGNED\x20SYSREQ_EDOC_VERSION_SIZE\x20SYSREQ_EDOC_VERSION_SOURCE\x20SYSREQ_EDOC_VERSION_TEXT_MODIFIED\x20SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE\x20SYSREQ_FOLDER_KIND\x20SYSREQ_FUNC_CATEGORY\x20SYSREQ_FUNC_COMMENT\x20SYSREQ_FUNC_GROUP\x20SYSREQ_FUNC_GROUP_COMMENT\x20SYSREQ_FUNC_GROUP_NUMBER\x20SYSREQ_FUNC_HELP\x20SYSREQ_FUNC_PARAM_DEF_VALUE\x20SYSREQ_FUNC_PARAM_IDENT\x20SYSREQ_FUNC_PARAM_NUMBER\x20SYSREQ_FUNC_PARAM_TYPE\x20SYSREQ_FUNC_TEXT\x20SYSREQ_GROUP_CATEGORY\x20SYSREQ_ID\x20SYSREQ_LAST_UPDATE\x20SYSREQ_LEADER_REFERENCE\x20SYSREQ_LINE_NUMBER\x20SYSREQ_MAIN_RECORD_ID\x20SYSREQ_NAME\x20SYSREQ_NAME_LOCALIZE_ID\x20SYSREQ_NOTE\x20SYSREQ_ORIGINAL_RECORD\x20SYSREQ_OUR_FIRM\x20SYSREQ_PROFILING_SETTINGS_BATCH_LOGING\x20SYSREQ_PROFILING_SETTINGS_BATCH_SIZE\x20SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED\x20SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED\x20SYSREQ_PROFILING_SETTINGS_START_LOGGED\x20SYSREQ_RECORD_STATUS\x20SYSREQ_REF_REQ_FIELD_NAME\x20SYSREQ_REF_REQ_FORMAT\x20SYSREQ_REF_REQ_GENERATED\x20SYSREQ_REF_REQ_LENGTH\x20SYSREQ_REF_REQ_PRECISION\x20SYSREQ_REF_REQ_REFERENCE\x20SYSREQ_REF_REQ_SECTION\x20SYSREQ_REF_REQ_STORED\x20SYSREQ_REF_REQ_TOKENS\x20SYSREQ_REF_REQ_TYPE\x20SYSREQ_REF_REQ_VIEW\x20SYSREQ_REF_TYPE_ACT_CODE\x20SYSREQ_REF_TYPE_ACT_DESCRIPTION\x20SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID\x20SYSREQ_REF_TYPE_ACT_ON_EXECUTE\x20SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS\x20SYSREQ_REF_TYPE_ACT_SECTION\x20SYSREQ_REF_TYPE_ADD_PARAMS\x20SYSREQ_REF_TYPE_COMMENT\x20SYSREQ_REF_TYPE_COMMON_SETTINGS\x20SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME\x20SYSREQ_REF_TYPE_EVENT_TEXT\x20SYSREQ_REF_TYPE_MAIN_LEADING_REF\x20SYSREQ_REF_TYPE_NAME_IN_SINGULAR\x20SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID\x20SYSREQ_REF_TYPE_NAME_LOCALIZE_ID\x20SYSREQ_REF_TYPE_NUMERATION_METHOD\x20SYSREQ_REF_TYPE_REQ_CODE\x20SYSREQ_REF_TYPE_REQ_DESCRIPTION\x20SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID\x20SYSREQ_REF_TYPE_REQ_IS_CONTROL\x20SYSREQ_REF_TYPE_REQ_IS_FILTER\x20SYSREQ_REF_TYPE_REQ_IS_LEADING\x20SYSREQ_REF_TYPE_REQ_IS_REQUIRED\x20SYSREQ_REF_TYPE_REQ_NUMBER\x20SYSREQ_REF_TYPE_REQ_ON_CHANGE\x20SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS\x20SYSREQ_REF_TYPE_REQ_ON_SELECT\x20SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND\x20SYSREQ_REF_TYPE_REQ_SECTION\x20SYSREQ_REF_TYPE_VIEW_CARD\x20SYSREQ_REF_TYPE_VIEW_CODE\x20SYSREQ_REF_TYPE_VIEW_COMMENT\x20SYSREQ_REF_TYPE_VIEW_IS_MAIN\x20SYSREQ_REF_TYPE_VIEW_NAME\x20SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID\x20SYSREQ_REFERENCE_TYPE_ID\x20SYSREQ_STATE\x20SYSREQ_STATЕ\x20SYSREQ_SYSTEM_SETTINGS_VALUE\x20SYSREQ_TYPE\x20SYSREQ_UNIT\x20SYSREQ_UNIT_ID\x20SYSREQ_USER_GROUPS_GROUP_FULL_NAME\x20SYSREQ_USER_GROUPS_GROUP_NAME\x20SYSREQ_USER_GROUPS_GROUP_SERVER_NAME\x20SYSREQ_USERS_ACCESS_RIGHTS\x20SYSREQ_USERS_AUTHENTICATION\x20SYSREQ_USERS_CATEGORY\x20SYSREQ_USERS_COMPONENT\x20SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC\x20SYSREQ_USERS_DOMAIN\x20SYSREQ_USERS_FULL_USER_NAME\x20SYSREQ_USERS_GROUP\x20SYSREQ_USERS_IS_MAIN_SERVER\x20SYSREQ_USERS_LOGIN\x20SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC\x20SYSREQ_USERS_STATUS\x20SYSREQ_USERS_USER_CERTIFICATE\x20SYSREQ_USERS_USER_CERTIFICATE_INFO\x20SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME\x20SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION\x20SYSREQ_USERS_USER_CERTIFICATE_STATE\x20SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME\x20SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT\x20SYSREQ_USERS_USER_DEFAULT_CERTIFICATE\x20SYSREQ_USERS_USER_DESCRIPTION\x20SYSREQ_USERS_USER_GLOBAL_NAME\x20SYSREQ_USERS_USER_LOGIN\x20SYSREQ_USERS_USER_MAIN_SERVER\x20SYSREQ_USERS_USER_TYPE\x20SYSREQ_WORK_RULES_FOLDER_ID\x20RESULT_VAR_NAME\x20RESULT_VAR_NAME_ENG\x20AUTO_NUMERATION_RULE_ID\x20CANT_CHANGE_ID_REQUISITE_RULE_ID\x20CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID\x20CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID\x20CHECK_CODE_REQUISITE_RULE_ID\x20CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID\x20CHECK_FILTRATER_CHANGES_RULE_ID\x20CHECK_RECORD_INTERVAL_RULE_ID\x20CHECK_REFERENCE_INTERVAL_RULE_ID\x20CHECK_REQUIRED_DATA_FULLNESS_RULE_ID\x20CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID\x20MAKE_RECORD_UNRATIFIED_RULE_ID\x20RESTORE_AUTO_NUMERATION_RULE_ID\x20SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID\x20SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID\x20SET_IDSPS_VALUE_RULE_ID\x20SET_NEXT_CODE_VALUE_RULE_ID\x20SET_OURFIRM_BOUNDS_RULE_ID\x20SET_OURFIRM_REQUISITE_RULE_ID\x20SCRIPT_BLOCK_AFTER_FINISH_EVENT\x20SCRIPT_BLOCK_BEFORE_START_EVENT\x20SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY\x20SCRIPT_BLOCK_NAME_PROPERTY\x20SCRIPT_BLOCK_SCRIPT_PROPERTY\x20SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY\x20SUBTASK_BLOCK_AFTER_FINISH_EVENT\x20SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT\x20SUBTASK_BLOCK_ATTACHMENTS_PROPERTY\x20SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY\x20SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY\x20SUBTASK_BLOCK_BEFORE_START_EVENT\x20SUBTASK_BLOCK_CREATED_TASK_PROPERTY\x20SUBTASK_BLOCK_CREATION_EVENT\x20SUBTASK_BLOCK_DEADLINE_PROPERTY\x20SUBTASK_BLOCK_IMPORTANCE_PROPERTY\x20SUBTASK_BLOCK_INITIATOR_PROPERTY\x20SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY\x20SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY\x20SUBTASK_BLOCK_JOBS_TYPE_PROPERTY\x20SUBTASK_BLOCK_NAME_PROPERTY\x20SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY\x20SUBTASK_BLOCK_PERFORMERS_PROPERTY\x20SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY\x20SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY\x20SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY\x20SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY\x20SUBTASK_BLOCK_START_EVENT\x20SUBTASK_BLOCK_STEP_CONTROL_PROPERTY\x20SUBTASK_BLOCK_SUBJECT_PROPERTY\x20SUBTASK_BLOCK_TASK_CONTROL_PROPERTY\x20SUBTASK_BLOCK_TEXT_PROPERTY\x20SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY\x20SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY\x20SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY\x20SYSCOMP_CONTROL_JOBS\x20SYSCOMP_FOLDERS\x20SYSCOMP_JOBS\x20SYSCOMP_NOTICES\x20SYSCOMP_TASKS\x20SYSDLG_CREATE_EDOCUMENT\x20SYSDLG_CREATE_EDOCUMENT_VERSION\x20SYSDLG_CURRENT_PERIOD\x20SYSDLG_EDIT_FUNCTION_HELP\x20SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE\x20SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS\x20SYSDLG_EXPORT_SINGLE_EDOCUMENT\x20SYSDLG_IMPORT_EDOCUMENT\x20SYSDLG_MULTIPLE_SELECT\x20SYSDLG_SETUP_ACCESS_RIGHTS\x20SYSDLG_SETUP_DEFAULT_RIGHTS\x20SYSDLG_SETUP_FILTER_CONDITION\x20SYSDLG_SETUP_SIGN_RIGHTS\x20SYSDLG_SETUP_TASK_OBSERVERS\x20SYSDLG_SETUP_TASK_ROUTE\x20SYSDLG_SETUP_USERS_LIST\x20SYSDLG_SIGN_EDOCUMENT\x20SYSDLG_SIGN_MULTIPLE_EDOCUMENTS\x20SYSREF_ACCESS_RIGHTS_TYPES\x20SYSREF_ADMINISTRATION_HISTORY\x20SYSREF_ALL_AVAILABLE_COMPONENTS\x20SYSREF_ALL_AVAILABLE_PRIVILEGES\x20SYSREF_ALL_REPLICATING_COMPONENTS\x20SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS\x20SYSREF_CALENDAR_EVENTS\x20SYSREF_COMPONENT_TOKEN_HISTORY\x20SYSREF_COMPONENT_TOKENS\x20SYSREF_COMPONENTS\x20SYSREF_CONSTANTS\x20SYSREF_DATA_RECEIVE_PROTOCOL\x20SYSREF_DATA_SEND_PROTOCOL\x20SYSREF_DIALOGS\x20SYSREF_DIALOGS_REQUISITES\x20SYSREF_EDITORS\x20SYSREF_EDOC_CARDS\x20SYSREF_EDOC_TYPES\x20SYSREF_EDOCUMENT_CARD_REQUISITES\x20SYSREF_EDOCUMENT_CARD_TYPES\x20SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE\x20SYSREF_EDOCUMENT_CARDS\x20SYSREF_EDOCUMENT_HISTORY\x20SYSREF_EDOCUMENT_KINDS\x20SYSREF_EDOCUMENT_REQUISITES\x20SYSREF_EDOCUMENT_SIGNATURES\x20SYSREF_EDOCUMENT_TEMPLATES\x20SYSREF_EDOCUMENT_TEXT_STORAGES\x20SYSREF_EDOCUMENT_VIEWS\x20SYSREF_FILTERER_SETUP_CONFLICTS\x20SYSREF_FILTRATER_SETTING_CONFLICTS\x20SYSREF_FOLDER_HISTORY\x20SYSREF_FOLDERS\x20SYSREF_FUNCTION_GROUPS\x20SYSREF_FUNCTION_PARAMS\x20SYSREF_FUNCTIONS\x20SYSREF_JOB_HISTORY\x20SYSREF_LINKS\x20SYSREF_LOCALIZATION_DICTIONARY\x20SYSREF_LOCALIZATION_LANGUAGES\x20SYSREF_MODULES\x20SYSREF_PRIVILEGES\x20SYSREF_RECORD_HISTORY\x20SYSREF_REFERENCE_REQUISITES\x20SYSREF_REFERENCE_TYPE_VIEWS\x20SYSREF_REFERENCE_TYPES\x20SYSREF_REFERENCES\x20SYSREF_REFERENCES_REQUISITES\x20SYSREF_REMOTE_SERVERS\x20SYSREF_REPLICATION_SESSIONS_LOG\x20SYSREF_REPLICATION_SESSIONS_PROTOCOL\x20SYSREF_REPORTS\x20SYSREF_ROLES\x20SYSREF_ROUTE_BLOCK_GROUPS\x20SYSREF_ROUTE_BLOCKS\x20SYSREF_SCRIPTS\x20SYSREF_SEARCHES\x20SYSREF_SERVER_EVENTS\x20SYSREF_SERVER_EVENTS_HISTORY\x20SYSREF_STANDARD_ROUTE_GROUPS\x20SYSREF_STANDARD_ROUTES\x20SYSREF_STATUSES\x20SYSREF_SYSTEM_SETTINGS\x20SYSREF_TASK_HISTORY\x20SYSREF_TASK_KIND_GROUPS\x20SYSREF_TASK_KINDS\x20SYSREF_TASK_RIGHTS\x20SYSREF_TASK_SIGNATURES\x20SYSREF_TASKS\x20SYSREF_UNITS\x20SYSREF_USER_GROUPS\x20SYSREF_USER_GROUPS_REFERENCE\x20SYSREF_USER_SUBSTITUTION\x20SYSREF_USERS\x20SYSREF_USERS_REFERENCE\x20SYSREF_VIEWERS\x20SYSREF_WORKING_TIME_CALENDARS\x20ACCESS_RIGHTS_TABLE_NAME\x20EDMS_ACCESS_TABLE_NAME\x20EDOC_TYPES_TABLE_NAME\x20TEST_DEV_DB_NAME\x20TEST_DEV_SYSTEM_CODE\x20TEST_EDMS_DB_NAME\x20TEST_EDMS_MAIN_CODE\x20TEST_EDMS_MAIN_DB_NAME\x20TEST_EDMS_SECOND_CODE\x20TEST_EDMS_SECOND_DB_NAME\x20TEST_EDMS_SYSTEM_CODE\x20TEST_ISB5_MAIN_CODE\x20TEST_ISB5_SECOND_CODE\x20TEST_SQL_SERVER_2005_NAME\x20TEST_SQL_SERVER_NAME\x20ATTENTION_CAPTION\x20cbsCommandLinks\x20cbsDefault\x20CONFIRMATION_CAPTION\x20ERROR_CAPTION\x20INFORMATION_CAPTION\x20mrCancel\x20mrOk\x20EDOC_VERSION_ACTIVE_STAGE_CODE\x20EDOC_VERSION_DESIGN_STAGE_CODE\x20EDOC_VERSION_OBSOLETE_STAGE_CODE\x20cpDataEnciphermentEnabled\x20cpDigitalSignatureEnabled\x20cpID\x20cpIssuer\x20cpPluginVersion\x20cpSerial\x20cpSubjectName\x20cpSubjSimpleName\x20cpValidFromDate\x20cpValidToDate\x20ISBL_SYNTAX\x20NO_SYNTAX\x20XML_SYNTAX\x20WAIT_BLOCK_AFTER_FINISH_EVENT\x20WAIT_BLOCK_BEFORE_START_EVENT\x20WAIT_BLOCK_DEADLINE_PROPERTY\x20WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY\x20WAIT_BLOCK_NAME_PROPERTY\x20WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY\x20SYSRES_COMMON\x20SYSRES_CONST\x20SYSRES_MBFUNC\x20SYSRES_SBDATA\x20SYSRES_SBGUI\x20SYSRES_SBINTF\x20SYSRES_SBREFDSC\x20SYSRES_SQLERRORS\x20SYSRES_SYSCOMP\x20atUser\x20atGroup\x20atRole\x20aemEnabledAlways\x20aemDisabledAlways\x20aemEnabledOnBrowse\x20aemEnabledOnEdit\x20aemDisabledOnBrowseEmpty\x20apBegin\x20apEnd\x20alLeft\x20alRight\x20asmNever\x20asmNoButCustomize\x20asmAsLastTime\x20asmYesButCustomize\x20asmAlways\x20cirCommon\x20cirRevoked\x20ctSignature\x20ctEncode\x20ctSignatureEncode\x20clbUnchecked\x20clbChecked\x20clbGrayed\x20ceISB\x20ceAlways\x20ceNever\x20ctDocument\x20ctReference\x20ctScript\x20ctUnknown\x20ctReport\x20ctDialog\x20ctFunction\x20ctFolder\x20ctEDocument\x20ctTask\x20ctJob\x20ctNotice\x20ctControlJob\x20cfInternal\x20cfDisplay\x20ciUnspecified\x20ciWrite\x20ciRead\x20ckFolder\x20ckEDocument\x20ckTask\x20ckJob\x20ckComponentToken\x20ckAny\x20ckReference\x20ckScript\x20ckReport\x20ckDialog\x20ctISBLEditor\x20ctBevel\x20ctButton\x20ctCheckListBox\x20ctComboBox\x20ctComboEdit\x20ctGrid\x20ctDBCheckBox\x20ctDBComboBox\x20ctDBEdit\x20ctDBEllipsis\x20ctDBMemo\x20ctDBNavigator\x20ctDBRadioGroup\x20ctDBStatusLabel\x20ctEdit\x20ctGroupBox\x20ctInplaceHint\x20ctMemo\x20ctPanel\x20ctListBox\x20ctRadioButton\x20ctRichEdit\x20ctTabSheet\x20ctWebBrowser\x20ctImage\x20ctHyperLink\x20ctLabel\x20ctDBMultiEllipsis\x20ctRibbon\x20ctRichView\x20ctInnerPanel\x20ctPanelGroup\x20ctBitButton\x20cctDate\x20cctInteger\x20cctNumeric\x20cctPick\x20cctReference\x20cctString\x20cctText\x20cltInternal\x20cltPrimary\x20cltGUI\x20dseBeforeOpen\x20dseAfterOpen\x20dseBeforeClose\x20dseAfterClose\x20dseOnValidDelete\x20dseBeforeDelete\x20dseAfterDelete\x20dseAfterDeleteOutOfTransaction\x20dseOnDeleteError\x20dseBeforeInsert\x20dseAfterInsert\x20dseOnValidUpdate\x20dseBeforeUpdate\x20dseOnUpdateRatifiedRecord\x20dseAfterUpdate\x20dseAfterUpdateOutOfTransaction\x20dseOnUpdateError\x20dseAfterScroll\x20dseOnOpenRecord\x20dseOnCloseRecord\x20dseBeforeCancel\x20dseAfterCancel\x20dseOnUpdateDeadlockError\x20dseBeforeDetailUpdate\x20dseOnPrepareUpdate\x20dseOnAnyRequisiteChange\x20dssEdit\x20dssInsert\x20dssBrowse\x20dssInActive\x20dftDate\x20dftShortDate\x20dftDateTime\x20dftTimeStamp\x20dotDays\x20dotHours\x20dotMinutes\x20dotSeconds\x20dtkndLocal\x20dtkndUTC\x20arNone\x20arView\x20arEdit\x20arFull\x20ddaView\x20ddaEdit\x20emLock\x20emEdit\x20emSign\x20emExportWithLock\x20emImportWithUnlock\x20emChangeVersionNote\x20emOpenForModify\x20emChangeLifeStage\x20emDelete\x20emCreateVersion\x20emImport\x20emUnlockExportedWithLock\x20emStart\x20emAbort\x20emReInit\x20emMarkAsReaded\x20emMarkAsUnreaded\x20emPerform\x20emAccept\x20emResume\x20emChangeRights\x20emEditRoute\x20emEditObserver\x20emRecoveryFromLocalCopy\x20emChangeWorkAccessType\x20emChangeEncodeTypeToCertificate\x20emChangeEncodeTypeToPassword\x20emChangeEncodeTypeToNone\x20emChangeEncodeTypeToCertificatePassword\x20emChangeStandardRoute\x20emGetText\x20emOpenForView\x20emMoveToStorage\x20emCreateObject\x20emChangeVersionHidden\x20emDeleteVersion\x20emChangeLifeCycleStage\x20emApprovingSign\x20emExport\x20emContinue\x20emLockFromEdit\x20emUnLockForEdit\x20emLockForServer\x20emUnlockFromServer\x20emDelegateAccessRights\x20emReEncode\x20ecotFile\x20ecotProcess\x20eaGet\x20eaCopy\x20eaCreate\x20eaCreateStandardRoute\x20edltAll\x20edltNothing\x20edltQuery\x20essmText\x20essmCard\x20esvtLast\x20esvtLastActive\x20esvtSpecified\x20edsfExecutive\x20edsfArchive\x20edstSQLServer\x20edstFile\x20edvstNone\x20edvstEDocumentVersionCopy\x20edvstFile\x20edvstTemplate\x20edvstScannedFile\x20vsDefault\x20vsDesign\x20vsActive\x20vsObsolete\x20etNone\x20etCertificate\x20etPassword\x20etCertificatePassword\x20ecException\x20ecWarning\x20ecInformation\x20estAll\x20estApprovingOnly\x20evtLast\x20evtLastActive\x20evtQuery\x20fdtString\x20fdtNumeric\x20fdtInteger\x20fdtDate\x20fdtText\x20fdtUnknown\x20fdtWideString\x20fdtLargeInteger\x20ftInbox\x20ftOutbox\x20ftFavorites\x20ftCommonFolder\x20ftUserFolder\x20ftComponents\x20ftQuickLaunch\x20ftShortcuts\x20ftSearch\x20grhAuto\x20grhX1\x20grhX2\x20grhX3\x20hltText\x20hltRTF\x20hltHTML\x20iffBMP\x20iffJPEG\x20iffMultiPageTIFF\x20iffSinglePageTIFF\x20iffTIFF\x20iffPNG\x20im8bGrayscale\x20im24bRGB\x20im1bMonochrome\x20itBMP\x20itJPEG\x20itWMF\x20itPNG\x20ikhInformation\x20ikhWarning\x20ikhError\x20ikhNoIcon\x20icUnknown\x20icScript\x20icFunction\x20icIntegratedReport\x20icAnalyticReport\x20icDataSetEventHandler\x20icActionHandler\x20icFormEventHandler\x20icLookUpEventHandler\x20icRequisiteChangeEventHandler\x20icBeforeSearchEventHandler\x20icRoleCalculation\x20icSelectRouteEventHandler\x20icBlockPropertyCalculation\x20icBlockQueryParamsEventHandler\x20icChangeSearchResultEventHandler\x20icBlockEventHandler\x20icSubTaskInitEventHandler\x20icEDocDataSetEventHandler\x20icEDocLookUpEventHandler\x20icEDocActionHandler\x20icEDocFormEventHandler\x20icEDocRequisiteChangeEventHandler\x20icStructuredConversionRule\x20icStructuredConversionEventBefore\x20icStructuredConversionEventAfter\x20icWizardEventHandler\x20icWizardFinishEventHandler\x20icWizardStepEventHandler\x20icWizardStepFinishEventHandler\x20icWizardActionEnableEventHandler\x20icWizardActionExecuteEventHandler\x20icCreateJobsHandler\x20icCreateNoticesHandler\x20icBeforeLookUpEventHandler\x20icAfterLookUpEventHandler\x20icTaskAbortEventHandler\x20icWorkflowBlockActionHandler\x20icDialogDataSetEventHandler\x20icDialogActionHandler\x20icDialogLookUpEventHandler\x20icDialogRequisiteChangeEventHandler\x20icDialogFormEventHandler\x20icDialogValidCloseEventHandler\x20icBlockFormEventHandler\x20icTaskFormEventHandler\x20icReferenceMethod\x20icEDocMethod\x20icDialogMethod\x20icProcessMessageHandler\x20isShow\x20isHide\x20isByUserSettings\x20jkJob\x20jkNotice\x20jkControlJob\x20jtInner\x20jtLeft\x20jtRight\x20jtFull\x20jtCross\x20lbpAbove\x20lbpBelow\x20lbpLeft\x20lbpRight\x20eltPerConnection\x20eltPerUser\x20sfcUndefined\x20sfcBlack\x20sfcGreen\x20sfcRed\x20sfcBlue\x20sfcOrange\x20sfcLilac\x20sfsItalic\x20sfsStrikeout\x20sfsNormal\x20ldctStandardRoute\x20ldctWizard\x20ldctScript\x20ldctFunction\x20ldctRouteBlock\x20ldctIntegratedReport\x20ldctAnalyticReport\x20ldctReferenceType\x20ldctEDocumentType\x20ldctDialog\x20ldctServerEvents\x20mrcrtNone\x20mrcrtUser\x20mrcrtMaximal\x20mrcrtCustom\x20vtEqual\x20vtGreaterOrEqual\x20vtLessOrEqual\x20vtRange\x20rdYesterday\x20rdToday\x20rdTomorrow\x20rdThisWeek\x20rdThisMonth\x20rdThisYear\x20rdNextMonth\x20rdNextWeek\x20rdLastWeek\x20rdLastMonth\x20rdWindow\x20rdFile\x20rdPrinter\x20rdtString\x20rdtNumeric\x20rdtInteger\x20rdtDate\x20rdtReference\x20rdtAccount\x20rdtText\x20rdtPick\x20rdtUnknown\x20rdtLargeInteger\x20rdtDocument\x20reOnChange\x20reOnChangeValues\x20ttGlobal\x20ttLocal\x20ttUser\x20ttSystem\x20ssmBrowse\x20ssmSelect\x20ssmMultiSelect\x20ssmBrowseModal\x20smSelect\x20smLike\x20smCard\x20stNone\x20stAuthenticating\x20stApproving\x20sctString\x20sctStream\x20sstAnsiSort\x20sstNaturalSort\x20svtEqual\x20svtContain\x20soatString\x20soatNumeric\x20soatInteger\x20soatDatetime\x20soatReferenceRecord\x20soatText\x20soatPick\x20soatBoolean\x20soatEDocument\x20soatAccount\x20soatIntegerCollection\x20soatNumericCollection\x20soatStringCollection\x20soatPickCollection\x20soatDatetimeCollection\x20soatBooleanCollection\x20soatReferenceRecordCollection\x20soatEDocumentCollection\x20soatAccountCollection\x20soatContents\x20soatUnknown\x20tarAbortByUser\x20tarAbortByWorkflowException\x20tvtAllWords\x20tvtExactPhrase\x20tvtAnyWord\x20usNone\x20usCompleted\x20usRedSquare\x20usBlueSquare\x20usYellowSquare\x20usGreenSquare\x20usOrangeSquare\x20usPurpleSquare\x20usFollowUp\x20utUnknown\x20utUser\x20utDeveloper\x20utAdministrator\x20utSystemDeveloper\x20utDisconnected\x20btAnd\x20btDetailAnd\x20btOr\x20btNotOr\x20btOnly\x20vmView\x20vmSelect\x20vmNavigation\x20vsmSingle\x20vsmMultiple\x20vsmMultipleCheck\x20vsmNoSelection\x20wfatPrevious\x20wfatNext\x20wfatCancel\x20wfatFinish\x20wfepUndefined\x20wfepText3\x20wfepText6\x20wfepText9\x20wfepSpinEdit\x20wfepDropDown\x20wfepRadioGroup\x20wfepFlag\x20wfepText12\x20wfepText15\x20wfepText18\x20wfepText21\x20wfepText24\x20wfepText27\x20wfepText30\x20wfepRadioGroupColumn1\x20wfepRadioGroupColumn2\x20wfepRadioGroupColumn3\x20wfetQueryParameter\x20wfetText\x20wfetDelimiter\x20wfetLabel\x20wptString\x20wptInteger\x20wptNumeric\x20wptBoolean\x20wptDateTime\x20wptPick\x20wptText\x20wptUser\x20wptUserList\x20wptEDocumentInfo\x20wptEDocumentInfoList\x20wptReferenceRecordInfo\x20wptReferenceRecordInfoList\x20wptFolderInfo\x20wptTaskInfo\x20wptContents\x20wptFileName\x20wptDate\x20wsrComplete\x20wsrGoNext\x20wsrGoPrevious\x20wsrCustom\x20wsrCancel\x20wsrGoFinal\x20wstForm\x20wstEDocument\x20wstTaskCard\x20wstReferenceRecordCard\x20wstFinal\x20waAll\x20waPerformers\x20waManual\x20wsbStart\x20wsbFinish\x20wsbNotice\x20wsbStep\x20wsbDecision\x20wsbWait\x20wsbMonitor\x20wsbScript\x20wsbConnector\x20wsbSubTask\x20wsbLifeCycleStage\x20wsbPause\x20wdtInteger\x20wdtFloat\x20wdtString\x20wdtPick\x20wdtDateTime\x20wdtBoolean\x20wdtTask\x20wdtJob\x20wdtFolder\x20wdtEDocument\x20wdtReferenceRecord\x20wdtUser\x20wdtGroup\x20wdtRole\x20wdtIntegerCollection\x20wdtFloatCollection\x20wdtStringCollection\x20wdtPickCollection\x20wdtDateTimeCollection\x20wdtBooleanCollection\x20wdtTaskCollection\x20wdtJobCollection\x20wdtFolderCollection\x20wdtEDocumentCollection\x20wdtReferenceRecordCollection\x20wdtUserCollection\x20wdtGroupCollection\x20wdtRoleCollection\x20wdtContents\x20wdtUserList\x20wdtSearchDescription\x20wdtDeadLine\x20wdtPickSet\x20wdtAccountCollection\x20wiLow\x20wiNormal\x20wiHigh\x20wrtSoft\x20wrtHard\x20wsInit\x20wsRunning\x20wsDone\x20wsControlled\x20wsAborted\x20wsContinued\x20wtmFull\x20wtmFromCurrent\x20wtmOnlyCurrent\x20','controlPointNextX','PATH\x20','$mdIcon','ngShow','possiblePageFlow','animation','[!@#$^&\x27,?+~`|:]','isPromisesSupported','onPacket','isIos','dddd,\x20YYYY\x20оны\x20MMMMын\x20D\x20HH:mm','1\x20ຊົ່ວໂມງ','mdExtraName','mdToast','japanese_goblin','pause','man_with_gua_pi_mao','pound','_response','[Vandag\x20om]\x20LT','në\x20%s','mdColors:\x20couldn\x27t\x20find\x20\x27{palette}\x27\x20in\x20the\x20palettes.','#e1bee7','ngMax','\x27,\x20\x27_system\x27,\x20\x27location=yes\x27)\x22\x20>','md-gutter','start','pan-x','#0033FF','makeEvent','[Igår]\x20LT','Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg','target=\x22','DIS','expect','Ýk_Dş_Sş_Çr_Pn_An_Şn','isNewInput','))\x20==\x20null\x20?\x20\x27\x27\x20:\x20__t)\x20+\x0a\x27','encoded','exec','begin','Windows\x208.1','ثانيتان',';[\x20\x5ct]*#','TRANSFORM','ng-anchor-out','md-table-pagination.html','material.components.showHide','border','align','substr','*[md-chip-remove]','jednog\x20sata','app/directives/matrix-item/matrix-view.html','','[இன்று]\x20LT','any','Unclosed\x20section\x20\x22','translateSanitizeStrategy','.drag-handle','rtpmap:%d\x20%s','секунда','$mdComponentRegistry','utils','^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\x5cs+(test)?','focus','maxMode','%d\x20કલાક','AMPMS','play','una\x20settimana','','\x27[A-Za-z_](?!\x27)[\x5cw\x27]*','set','<3','_placeholder','\x22]\x22','.3s','Pantech.*P4100','modalOptions','FormParagraphBuilderId','emit\x20\x22ended\x22',':-\x5c|-->','Couldn\x27t\x20refresh\x20translation\x20table,\x20no\x20loader\x20registered!','toLocaleLowerCase','pausing','curr','به‌یانی','%s前','align-content','nolla','anchors','\x27auto\x27\x20array\x20mode\x20is\x20for\x20query\x20parameters\x20only','\x27).style.height=document.body.scrollHeight\x20+\x20\x27px\x27\x22\x20style=\x22margin:10px\x200;\x22>!function(){\x22use\x20strict\x22;window.retargetLinks=function(){\x20var\x20gists=document.getElementsByClassName(\x22gist\x22);for(var\x20i=0,links;i\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x5cb\x5cd+(\x5c.\x5cd+)?(ms|s|h|m)?','md-dialog\x20cannot\x20have\x20both\x20`htmlContent`\x20and\x20`textContent`','ìsẹjú\x20aayá\x20die','white_flower','-nci','hljs','mdSelectMenu','48px','app/directives/agreement-item/agreement-view.html','uiView','DIALOG_ERROR','Android.*\x5cbOYO\x5cb|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB','onconnecting','(root)','=mdScope','TransitionHookPhase','CSS','current','uibDatepickerPopup\x20must\x20have\x20a\x20date\x20format\x20specified.','moveUpPage','_transactions','hasPrevious','isIonicTap','#4db6ac','\x5cw[\x5cw\x20:\x5c/.-]*:(?=[\x20\x09]|$)','mwFormParagraphBuilder','$translateLocalStorage','%d\x20days','showComments','svElement','[a-zA-Z_]\x5cw*[!?=]?','%s後','\x5cs*#','webkitRTCPeerConnection','toPairs','_children','နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ','_$mdUtil',':(?!\x5cs)','nóiméad','[昨天]\x20LT','initialValue','puppet','typeaheadEditable','[minulú\x20sobotu\x20o]\x20LT','hsva','GGGG[W]WW','-ри','[ວັນ]dddd[ແລ້ວນີ້ເວລາ]\x20LT','ngModel','ngDisabled','getLength','expectAsync','%d\x20dakika','ⴷⴰⴷⵅ\x20ⵙ\x20ⵢⴰⵏ\x20%s','mailbox_with_mail','valuesIn','ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం','\x5c.[a-zA-Z][a-zA-Z0-9_-]*(?=[\x5c.\x5cs\x5cn\x5c[\x5c:,])','gridster-item','#9e9d24','tabindex=\x22','md-whiteframe-','_overflowWeeks','$translateUrlLoader','mwForm.pageEvents.pageMoved','focusIndex','%d\x20minutoj','&autoplay=0','splitEqual','pingIntervalTimer','kissing_cat','#ff5722','ஒரு\x20நாள்','getMonth','isORTCSupported','flowDrop','$$animationProvider','message','una\x20semana','aborted','contentEditable','\x20सॅकंडांनी','asYears','rgb(153,\x20255,\x20255)','Accepted','ALIGN_END','allItems','^uibTab','\x5cs|{|;','[Сёння\x20ў]\x20LT','uibMonthpicker','sync','9acd32','responsive','\x22>','uibDropdownService','_sip_uri','temp-gruu','_inkbar','cut','filterUpgrades','sid','drag-scrollbar','വൈകുന്നേരം','getResponseSheetRows',':\x20Started\x20\x20->\x20','300','DOCUMENT_FRAGMENT_NODE','sekuntia','getElementAtEvent','ngTrim','_md-panel-animate-leave','inSelectedDateRange','[object\x20HTMLCanvasElement]','TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ','isDefaultPrevented','%d\x20h~óúrs','PAGE_UP',']\x20LT','valid','new()\x20[configuration:%o]','removeAttributeNode','&select','md-select-on-focus','\x5cs*([\x5cw_-]+:)?','QNX','f5fffa','sctpPort','ggggg','_monthsParseExact','addRange','last_quarter_moon','md-calendar-date','mailto:','transition-timing-function','rgba(0,0,0,0.12)','onAccept','md-template','each','wss','extend','padding-right','mdNoAutogrow','%d\x20maande','flexOrderLtMd','%s\x20tới','No\x20ACK','layoutLtMd','drawRoundedRectangle','$translate','stubObject','infix\x20infixl\x20infixr','ctrl.formPage.elements.length','handleMousedown','%q<','script,style','$mdSelect','urlRouterProvider','rgb(204,\x20255,\x20204)','toasty-added','}}\x27','removeAttribute','\x20md-no-float','transportError','directionLinks','setDimensions','$urlMatcherFactory','^mwFormQuestionBuilder','ein\x20tími','%s\x20kọjá','name\x20count\x20channels\x20instance-data\x20instance-state\x20instance\x20of','AudioContext','janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris','segment','rgb(153,\x20153,\x20153)',':auth:','ui.bootstrap.multiMap','ទី%d','Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag','=mdPage','.columnContainer','(\x5cbwith\x5cs+)?(\x5cbprivate\x5cs+)?\x5cbpackage\x5cs+(\x5cbbody\x5cs+)?','transitions',',\x20__j\x20=\x20Array.prototype.join;\x0afunction\x20print()\x20{\x20__p\x20+=\x20__j.call(arguments,\x20\x27\x27)\x20}\x0a','_weekdaysStrictRegex','ප.ව.','_connectionPromiseQueue','end_time','array\x20bool\x20char\x20exn\x20int\x20list\x20option\x20order\x20real\x20ref\x20string\x20substring\x20vector\x20unit\x20word','KEY_CODE','relaxed','_onClose','meridian','dddd\x20[lepas\x20pukul]\x20LT','nut_and_bolt','rgba(0,\x200,\x200,\x200.1)','showLtLg','received','.md-errors-spacer','#42a5f5','_isAMomentObject','failed','\x5cbsignal\x5cb','\x5cB(\x27[A-Za-z])\x5cb','एका\x20महिन्या','STATUS_WAITING_FOR_ANSWER','_G\x20_VERSION\x20assert\x20collectgarbage\x20dofile\x20error\x20getfenv\x20getmetatable\x20ipairs\x20load\x20loadfile\x20loadstring\x20module\x20next\x20pairs\x20pcall\x20print\x20rawequal\x20rawget\x20rawset\x20require\x20select\x20setfenv\x20setmetatable\x20tonumber\x20tostring\x20type\x20unpack\x20xpcall\x20coroutine\x20debug\x20io\x20math\x20os\x20package\x20string\x20table','bn-bd','XⓍXẊẌ','md-fab-trigger\x20button\x20md-icon','a8m.every','_animateOpen','matchMedia','[Í\x20dag\x20kl.]\x20LT','An\x20Giblean','First\x20Hop\x20Lacks\x20Outbound\x20Support','#0033CC','December','tilesInvalidated','D/‏M/‏YYYY','sticky','[გუშინ]\x20LT[-ზე]','_$animate','authenticate()\x20|\x20challenge\x20without\x20Digest\x20realm,\x20authentication\x20aborted','getRows','','mirror','mountain_bicyclist','rgb(214,\x200,\x20214)','cancelable','/\x5c*\x5c*','text-decoration-color','[bugün\x20saat]\x20LT','cloneNode','addPart','poll','scrollbarXActive','неколико\x20секунди','pár\x20sekúnd','Param','_closed','$$cookieWriter','md-calendar','msgOpenCalendar','[Yfory\x20am]\x20LT','(link|image:?):','_from_tag','okLabel','md-checkbox-enabled','clapper','_onTapStart','absPosition','$0\x20$1\x20$2\x20$3\x20$4\x20$5\x20$6\x20$7\x20$8\x20$9\x20$10\x20$11\x20$12\x20$13\x20$14\x20$15\x20$16\x20$17\x20$18\x20$19\x20$20\x20$21\x20$22\x20$23\x20$24\x20$25\x20$26\x20$27\x20$28\x20$29\x20$30\x20$31\x20zero\x20at\x20v0\x20v1\x20a0\x20a1\x20a2\x20a3\x20a4\x20a5\x20a6\x20a7\x20t0\x20t1\x20t2\x20t3\x20t4\x20t5\x20t6\x20t7\x20t8\x20t9\x20s0\x20s1\x20s2\x20s3\x20s4\x20s5\x20s6\x20s7\x20s8\x20k0\x20k1\x20gp\x20sp\x20fp\x20ra\x20$f0\x20$f1\x20$f2\x20$f2\x20$f4\x20$f5\x20$f6\x20$f7\x20$f8\x20$f9\x20$f10\x20$f11\x20$f12\x20$f13\x20$f14\x20$f15\x20$f16\x20$f17\x20$f18\x20$f19\x20$f20\x20$f21\x20$f22\x20$f23\x20$f24\x20$f25\x20$f26\x20$f27\x20$f28\x20$f29\x20$f30\x20$f31\x20Context\x20Random\x20EntryLo0\x20EntryLo1\x20Context\x20PageMask\x20Wired\x20EntryHi\x20HWREna\x20BadVAddr\x20Count\x20Compare\x20SR\x20IntCtl\x20SRSCtl\x20SRSMap\x20Cause\x20EPC\x20PRId\x20EBase\x20Config\x20Config1\x20Config2\x20Config3\x20LLAddr\x20Debug\x20DEPC\x20DESAVE\x20CacheErr\x20ECC\x20ErrorEPC\x20TagLo\x20DataLo\x20TagHi\x20DataHi\x20WatchLo\x20WatchHi\x20PerfCtl\x20PerfCnt\x20','focusLastChipThenInput','MSI\x20\x5cb(Primo\x2073K|Primo\x2073L|Primo\x2081L|Primo\x2077|Primo\x2093|Primo\x2075|Primo\x2076|Primo\x2073|Primo\x2081|Primo\x2091|Primo\x2090|Enjoy\x2071|Enjoy\x207|Enjoy\x2010)\x5cb','YYYY\x20[m.]\x20MMMM\x20D\x20[d.],\x20HH:mm\x20[val.]','ರಾತ್ರಿ','$$mdAnimate','$$mdDateUtil','.md-expansion-panel-header-container','pagedown','\x20\x20\x20\x20\x20\x20\x20\x20\x20{{video.title}}\x20\x20\x20{{video.description}}\x20\x20\x20\x20{{video.views}}\x20\x20{{video.likes}}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{pdf.url}}\x20\x20\x20\x20\x20View\x20PDF\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','=?mdSelected','minNotZero','video','dateUtil','AAsmall','setElement','del','\x20to:\x20','elementFromPoint','currentDate','asDays','keyCode','f5f5dc','#(b|B)[0-1]+(/[0-1]+)?','refreshIndex','[avui\x20a\x20','[Кеше\x20сағат]\x20LT','createRandomToken','selectedObjectData','deltaK','%d\x20il','useCookieStorage','YYYY年M月D日(ddd)\x20HH:mm','a8m.first','algorithm','%d\x20மணி\x20நேரம்','Request\x20Terminated','mins','postgres','startOf','changeWatcher','QPAD\x20E704|\x5cbIvoryS\x5cb|E-TAB\x20IVORY|\x5cbE-TAB\x5cb','YYYYYYMMDD','non-potable_water','onEnd','ps-scroll-left','_nextDay','pie','backdropPaddingY','\x20+\x20(','flowInit','japanese_castle','#558b2f','md-theme-watch','ng-value','mul','stubTrue','$eval','dddd,\x20D\x20MMMM\x20YYYY,\x20A\x20h:mm\x20ਵਜੇ','$scope','onCleanup','import\x20qualified\x20as\x20hiding','urlSanitizationWhitelist','loadViews','_\x20__\x20%|0\x20%%|0','parseTwoDigitYear','traceTransitionIgnored','بىر\x20سائەت','isInMenuBar','retry_after','Dotted\x20member\x20path\x20\x22@{0}\x22\x20is\x20invalid.','sendXhr','સાંજ','#CC00CC','translateAttr','reply','countBy','\x20-\x20','osName','\x22auth-int\x22','.**','openOnHoverEnabled','maintainAspectRatio','selectTarget','минуте','uibPagination','ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ','Block','uibDatepickerPopup','scrollbarXBottom','[Hodiaŭ\x20je]\x20LT','addPanel','$validate','&lang=','codepenHeight','ngKeypress','Windows\x20XP','Trident/[VER]','data-clipboard-','як\x20моҳ','LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ','_status','align-start','фурсат','H:mm','Use\x20Proxy','une\x20heure','एक\x20घण्टा','onExternalChange','autoSetItemPosition','agreementItem','borderColor','emit\x20\x22progress\x22','registered','D\x20MMMM\x20YYYY\x20เวลา\x20H:mm','initElement','[Днес\x20в]\x20LT','\x22;\x22','ticks','rid:%s\x20%s\x20%s','dismissHint','dddd,\x20D\x20[de]\x20MMMM\x20[de]\x20YYYY\x20h:mm\x20A','%d\x20saniyə','global\x20local\x20beep\x20delay\x20put\x20len\x20typeof\x20pick\x20log\x20time\x20set\x20find\x20environment\x20terminal\x20error\x20execute\x20parse\x20resolve\x20toarray\x20tobool\x20toid\x20toip\x20toip6\x20tonum\x20tostr\x20totime','M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA','fun','uri_headers','bath','Register\x20request\x20in\x20progress...','Function','#ffd600','#fff176','\x5cb(null|true|false)','','tweets','onBefore','arrow_down','FormQuestionBuilderId','removeHookFromRegistry','[Il-bieraħ\x20fil-]LT','confetti_ball','\x5c}\x22','boundaryLinks','noPause','Unauthorized','mwQuestionDivisionBuilder','overflowY','movie_camera','isValid','\x27\x20in\x20pattern\x20\x27','chicken','final','session\x20connecting','checkTransaction','handleClickSelectThisMonth','RTCIceGatherer','delphi','','animationDuration','=?mdZIndex','%d\x20minuto','ripples','visited','#fb8c00','emit\x20\x22unmuted\x22','Element','$element','דקה','','maxDuration','extraName','ngCookies','date-start=\x22model.dateStart\x22\x20','(\x5c(|<)','(\x5cbEnd\x5cb)','heavy_exclamation_mark','displayDate','_flushTypeQueue','στις','chain','haml','$translateProvider\x20couldn\x27t\x20find\x20translationTable\x20for\x20langKey:\x20\x27','setupInputEvents','sortedLastIndexOf','applyRegex','offsetWidth','#ff8a65','An\x20t-Samhain','বিকাল','00ced1','nestedObjectDelimeter','%d\x20minut','eit\x20år','$formatters','ssrc:%d','lastPage','addResolvables','removeFromGroup','\x22>','rgb(0,\x20214,\x20108)','do_not_litter','mdBottomSheet','Déar','eno\x20leto','updateBezierControlPoints','moonscript','usingBrowserWebSocket','bool\x20break\x20call\x20callexe\x20checkinterrupt\x20clear\x20clearg\x20closeall\x20cls\x20comlog\x20compile\x20continue\x20create\x20debug\x20declare\x20delete\x20disable\x20dlibrary\x20dllcall\x20do\x20dos\x20ed\x20edit\x20else\x20elseif\x20enable\x20end\x20endfor\x20endif\x20endp\x20endo\x20errorlog\x20errorlogat\x20expr\x20external\x20fn\x20for\x20format\x20goto\x20gosub\x20graph\x20if\x20keyword\x20let\x20lib\x20library\x20line\x20load\x20loadarray\x20loadexe\x20loadf\x20loadk\x20loadm\x20loadp\x20loads\x20loadx\x20local\x20locate\x20loopnextindex\x20lprint\x20lpwidth\x20lshow\x20matrix\x20msym\x20ndpclex\x20new\x20open\x20output\x20outwidth\x20plot\x20plotsym\x20pop\x20prcsn\x20print\x20printdos\x20proc\x20push\x20retp\x20return\x20rndcon\x20rndmod\x20rndmult\x20rndseed\x20run\x20save\x20saveall\x20screen\x20scroll\x20setarray\x20show\x20sparse\x20stop\x20string\x20struct\x20system\x20trace\x20trap\x20threadfor\x20threadendfor\x20threadbegin\x20threadjoin\x20threadstat\x20threadend\x20until\x20use\x20while\x20winprint\x20ne\x20ge\x20le\x20gt\x20lt\x20and\x20xor\x20or\x20not\x20eq\x20eqv','isUserInvoked','onIsOpenChanged','SAS','traceUIViewConfigUpdated','false\x20int\x20abstract\x20private\x20char\x20boolean\x20static\x20null\x20if\x20for\x20true\x20while\x20long\x20throw\x20finally\x20protected\x20final\x20return\x20void\x20enum\x20else\x20break\x20new\x20catch\x20byte\x20super\x20case\x20short\x20default\x20double\x20public\x20try\x20this\x20switch\x20continue\x20reverse\x20firstfast\x20firstonly\x20forupdate\x20nofetch\x20sum\x20avg\x20minof\x20maxof\x20count\x20order\x20group\x20by\x20asc\x20desc\x20index\x20hint\x20like\x20dispaly\x20edit\x20client\x20server\x20ttsbegin\x20ttscommit\x20str\x20real\x20date\x20container\x20anytype\x20common\x20div\x20mod','assertive','_$log','getSeconds','#CC3399','mwForm.pageEvents.pageNameChanged','afterLabel','emit\x20\x22peerconnection:createofferfailed\x22\x20[error:%o]','material.core.theming.palette','lazyResolve','^#!','#1a237e','em\x20%s','#\x5c!?\x5c[','кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав','activeDate2','un\x20minuto','fed','isChrome','align-bottoms','Bad\x20Identity-Info','\x20\x20\x20','mouseout','BEFORE_NG_ARIA','usePointStyle','oras\x20%d','currentTarget','gridster-desktop','[^\x5c[\x5c]\x5c.,\x5c+\x5c-<>\x20\x0d\x0a]','margin-left','einem\x20Tag','selectedTemplate','received\x20message\x20with\x20CRLF\x20Keep\x20Alive\x20response','^?mdFabToolbar','noNext','uib-datepicker','pig2','mozRequestAnimationFrame','hostRegex','mdSliderContainer','(is|$)','nem','reduce','moveItemDown','dddd\x20[a\x20la','cinema','registerUIView','_calculatePanelPosition','validates','NOWAIT','NG_TRANSLATE_LANG_KEY','CPU\x20OS\x2013','.md-subheader-content','__retries','$message','%d\x20മിനിറ്റ്','threshold','NOT_SUBMITTED','[a-zA-Z_][a-zA-Z0-9\x5c._]*','SEARCH','scrollFn','!\x5cd+','%d\x20ນາທີ','[wiki\x20iliyopita]\x20dddd\x20[saat]\x20LT','strike','ariaRequired','getLabelDiff','_announceTimeout','metaKey','22nd','$$uibTypeaheadCss','offeredAnswers','db7093','eyes','dddd\x20[ម៉ោង]\x20LT','langPromises','outline-color','rgba(0,0,0,0.1)','.mdp-pointer','WebsocketLatency','[object\x20Function]','[;$]','Date\x20range\x20picker','&theme_color=','|unless)\x5cs*','\x22OPTIONS\x22','Color()\x20has\x20been\x20deprecated.\x20Use\x20$mdThemingProviderTheme.','%s\x20ನಂತರ','jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des','%d\x20თვე','Κυ_Δε_Τρ_Τε_Πε_Πα_Σα','cyclone','%d\x20semanas','ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת','1\x20個月','Friday','fff','after\x20and\x20andalso|10\x20band\x20begin\x20bnot\x20bor\x20bsl\x20bsr\x20bxor\x20case\x20catch\x20cond\x20div\x20end\x20fun\x20if\x20let\x20not\x20of\x20or\x20orelse|10\x20query\x20receive\x20rem\x20try\x20when\x20xor','#CC0066','RFC_2822','[düýn]\x20LT','%d\x20yıl','ທີ່','\x20\x20\x20\x20\x20\x20\x20\x20ng-bind-html=\x22::dialog.mdHtmlContent\x22>','selectNodeContents','Mac\x20OS\x20X','Last\x20Month','[काल]\x20LT','forced\x20close','reject','','swipeEasing','v_h_k_sze_cs_p_szo','mozRTCPeerConnection','canPageForward','invalid','пред\x20%s','00008b','COMMENT','percent','herb','orderedConfig','\x22SIP\x22','nodebuffer','dddd\x20[pukul]\x20LT','freeze','ariaTabIndex','wheelchair','responseError','cubicInterpolationMode','browserLanguage','moveDownPage','no_mobile_phones','ngHref','moment().min\x20is\x20deprecated,\x20use\x20moment.max\x20instead.\x20http://momentjs.com/guides/#/warnings/min-max/','#DCDCDC','rejecting\x20session','find','foregroundPalette','abstract','$$animateJs','(.*)','يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر','#03a9f4','targetTouches','from\x20+','\x20\x20\x20\x20','#6600CC','footerAlign','(url|data-uri)\x5c(','->{','$log','figure','remoteUrlRequestWithCredentials','','onSwipe','UibRatingController','%d年','[huomenna]\x20[klo]\x20LT','a8m.filter-by','titleFontColor','_is_canceled','એક\x20વર્ષ','mapKeys','selected-template=\x22model.selectedTemplate\x22\x20','rgb(163,\x20163,\x200)','getItemSize','جون','ustream','%d\x20سیکنڈ','getSelectedDate','Son_Maa_Din_Woe_Don_Vry_Sat','removeCloneOnHide','MEDIA_PRIORITY','fallbackOffset','Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea','fromString','outline','Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado','mdContainerClass','%d\x20ժամ','\x5c(\x5c-','YYYY','ui.bootstrap.dateparser','buildToPath','b0c4de','potable_water','refresher','outgoing','klukkustund','md-chip','decorator','rgb(255,\x20255,\x20255)','[\x5c$%]\x5c{','8a2be2','MD-SELECT','mdFoot','%d\x20സെക്കൻഡ്','BEGIN\x20END\x20if\x20else\x20while\x20do\x20for\x20in\x20break\x20continue\x20delete\x20next\x20nextfile\x20function\x20func\x20exit|10','#00695c','md-absolute\x20md-hide','navigate-first.svg','[0-2]?[0-9]{1}|3[0-1]{1}','\x0a\x0a','Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des','array\x20bool\x20bytes\x20char\x20exn|5\x20float\x20int\x20int32\x20int64\x20list\x20lazy_t|5\x20nativeint|5\x20string\x20unit\x20in_channel\x20out_channel\x20ref','секунда_секунды_секунд','_limit','if\x20else\x20elif\x20endif\x20define\x20undef\x20warning\x20error\x20line\x20region\x20endregion\x20pragma\x20checksum','sø._ma._ti._on._to._fr._lø.','weekdays','בערב','rgb(255,\x20255,\x200)','_router','[object\x20Error]','longestText','disconnectScope','mdNoAsterisk','md-foot','collapsing','min-expires','nimrod','ar-ly','getSelectedMonthIndex','msec','\x20\x20changed\x20to\x20CONFIRMED\x20state','CHAR','MMMM\x20D,\x20YYYY\x20HH:mm','=?mdSeparatorKeys','arrow_forward','நண்பகல்','BY\x20CACHE\x20INCREMENT\x20MAXVALUE\x20MINVALUE','namedPage','getDataset','arc','bho\x20chionn\x20%s','^.+?\x5cn[=-]{2,}$','controllerProvider','D\x20MMMM\x20[de]\x20YYYY','xmlns','disableBackdrop','Nexus\x20One|Nexus\x20S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus\x204|Nexus\x205|Nexus\x206','\x20TextNumberEmail','\x20(NodeOS)\x20AppleWebKit/','Ambiguous','scrollOffset','MenuBarController','sum','banana','requestTimeout','MMMM\x20D,\x20YYYY\x20h:mm\x20A','virtual','>','\x5cs*(?:=|:=)\x5cs*)?(\x5c(.*\x5c))?\x5cs*\x5cB!?[-~]{1,2}>\x5c*?','#006064','පස්\x20වරු','Unsupported\x20URI\x20Scheme','جانفي','ບໍ່ເທົ່າໃດວິນາທີ','reconnect','livescript','[object\x20ArrayBuffer]','Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar','يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر','isScrollbarXUsingBottom','currentStyle','Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis','\x0aArguments:\x20','декілька\x20секунд','$timeout_','mdListItem','[\x27’]','marginBottom','marks','xAlign','бір\x20ай','autocompleteCtrl','border-top-left-radius','D\x20MMMM\x20YYYY,\x20A\x20h:mm\x20वाजता','digital','onDialogError()','iPod.*CPU[a-z\x20]+[VER]','[јуче\x20у]\x20LT','answer','\x20காலை','Diardaoin','ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்','ncalls\x20tottime|10\x20cumtime|10\x20filename','getDate','blockquote','calendarFormat','Busy','landscape','సాయంత్రం','assertFn','isPlainObject','dddd,\x20D\x20MMMM\x20YYYY\x20г.,\x20H:mm','\x22%\x22','PROVISIONAL_RESPONSE_INTERVAL','a8m.angular','#CC6600','END','xquery','\x20\x20\x20\x20\x20\x20{{\x20dialog.ok\x20}}','handleEvent','\x5cb(101G9|80G9|A101IT)\x5cb|Qilive\x2097R|Archos5|\x5cbARCHOS\x20(70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\x20Cobalt|\x20TITANIUM(HD|)|\x20Xenon|\x20Neon|XSK|\x202|\x20XS\x202|\x20PLATINUM|\x20CARBON|GAMEPAD)\x5cb','Provide\x20Referrer\x20Identity','hace\x20%s','defaultTarget','ngMessageExp','exiting','handleClickSelectThisYear','rawDescription','1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月','एका\x20दिसान','tolino\x20tab\x20[0-9.]+|tolino\x20shine','mousemove\x20touchmove\x20pointermove','ja%s','calculateTotalPages','contactQuery','Event:\x20','green','insertTab','getSources','showInOpen','MONTH','panelEl','Нэгдүгээр\x20сар_Хоёрдугаар\x20сар_Гуравдугаар\x20сар_Дөрөвдүгээр\x20сар_Тавдугаар\x20сар_Зургадугаар\x20сар_Долдугаар\x20сар_Наймдугаар\x20сар_Есдүгээр\x20сар_Аравдугаар\x20сар_Арван\x20нэгдүгээр\x20сар_Арван\x20хоёрдугаар\x20сар','font-variant','smirk','sø_ma_ti_on_to_fr_lø','след\x20%s','_$q','TransitionHook','oldIndex','invalid\x20INFO\x20DTMF\x20received,\x20discarded','uib/template/tabs/tab.html','toHexString','managers','channel\x20and\x20label\x20counts\x20mismatch:\x20','NG_EMBED_FILTER_DEFAULT_OPTIONS','lastStartedTransitionId','#ff1744','$uiRouterProvider','showSpinners','configUpdated','અમુક\x20પળો','Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ','unfold','minuutin','DATETIME_FORMATS','ui.router.angular1','#00b0ff','Safari','%s\x20առաջ','positiveValues','audioOutputDevices','$transclude','PAGE_SIZE','%d\x20ans','translateDefault','неколку\x20секунди','vertical_traffic_light','layoutService','ساعتان','hsv','vanilla.hashBangLocation','dddd\x20[پیش]\x20[ساعت]\x20LT','ideone','defaultSquashPolicy','4b0082','%d\x20d~áýs','handleWindowBlur','maxScrollbarLength','Céad','application/sdp','weight','generation','\x22ACK\x22','next','Function\x20PageEx\x20Section\x20SectionGroup','x-uib-tab-heading','sr-cyrl','sata','buildOrUpdateElements','waitUntilQuiet','#5e35b1','isConnected','rage1','\x27\x5cw[\x5cw\x5cd_]*(?!\x27)','=mdLimit','$mdPanel','translateKeepContent','hourStep','.md-scale','\x5cb([1-9][0-9_]*|0)','μία\x20ώρα','h:mm:ss.SSS\x20a','will-change','\x20tunni','JsSIP:InviteClientTransaction','Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru','[\x5c$\x5c%\x5c@](\x5c^\x5cw\x5cb|#\x5cw+|[^\x5cs\x5cw{]|{\x5cw+}|\x5cw+)','_changeInProgress','false\x20synchronized\x20int\x20abstract\x20float\x20private\x20char\x20boolean\x20static\x20null\x20if\x20const\x20for\x20true\x20while\x20long\x20throw\x20strictfp\x20finally\x20protected\x20import\x20native\x20final\x20return\x20void\x20enum\x20else\x20extends\x20implements\x20break\x20transient\x20new\x20catch\x20instanceof\x20byte\x20super\x20volatile\x20case\x20assert\x20short\x20package\x20default\x20double\x20public\x20try\x20this\x20switch\x20continue\x20throws\x20privileged\x20aspectOf\x20adviceexecution\x20proceed\x20cflowbelow\x20cflow\x20initialization\x20preinitialization\x20staticinitialization\x20withincode\x20target\x20within\x20execution\x20getWithinTypeName\x20handler\x20thisJoinPoint\x20thisJoinPointStaticPart\x20thisEnclosingJoinPointStaticPart\x20declare\x20parents\x20warning\x20error\x20soft\x20precedence\x20thisAspectInstance','[object\x20Int8Array]','drawImage','$index','moyai','^Content','responseText','mdFontIcon','%d\x20گھنٹے','%d時間','train2','watch','md-chips>md-autocomplete','#3366CC','app/directives/textarea-item/textarea-item.html','[u]\x20[nedelju]\x20[u]\x20LT','defaultAction','A\x20h:mm:ss\x20बजे','%d\x20ساڵ','getMenus','sunglasses','Expected\x20','tickMoments','showButtonBar','\x0a','#00acc1','YYYY년\x20MMMM\x20D일','debug','addByteOrderMarker','^TAP\x20version\x20(\x5cd+)$','datasets','$animate','Invalid\x20parameter\x20name\x20\x27','soccer','@decimalSeparator','badInput','clone','selectImageButtonClicked','bindKeydown','lodash.templateSources[','getLastInteractionType','$translateSanitizationProvider','fired','invalid\x20transportType:\x20','_bubble','%sमा','Invalid\x20UTF-8\x20detected','contrastDarkColors','cls','setInterval','\x5cbSamsung\x5cb|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F','$swipe','_applyModification','[В\x20прошлый]\x20dddd,\x20[в]\x20LT','filter','YYYY-MM-DDTHH:mm:ss[Z]','twisted_rightwards_arrows','$transition$','STATUS_INVITE_SENT','crying_cat_face','show-template=\x22config.showTemplate\x20||\x20model.showTemplate\x22\x20','incrementSeconds','word-wrap','bindTopIndex','java','exclamation','panelContainer','(::','convenience_store','tedEmbed','questionResponse','border-right-style','flatMapDeep','7cfc00','activeDateId','resetChipBuffer','%d\x20شهرا','\x20DeleteAdd\x20Column\x20DeleteAdd\x20row','минуту_минуты_минут','\x0a\x20\x20\x20\x20Every:\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20on\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20=\x205\x22>on\x20the\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20=\x205\x22\x20class=\x22cron-select-wrap\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20of\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20=\x202\x22>at\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20=\x203\x22\x20class=\x22cron-select-wrap\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20=\x203\x22>\x20:\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20=\x202\x22\x20class=\x22cron-select-wrap\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20past\x20the\x20hour\x0a\x20\x20\x20\x20\x0a','\x22)\x22','tcl','[v\x20piatok\x20o]\x20LT','increasePageOffset','[ng-messages]','STATUS_DISCONNECTED','\x5c}\x5c}','keyValsToObjectR','triumph','django','#f44336','clearRipples','isSctpDataChannelsSupported','კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი','
\x0a\x20\x20\x0a\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20
\x0a\x20\x20\x0a\x0a','um\x20ano','%d\x20diimmut','vbscript','ECA','moveUp','newListener','^#{1,6}','_monthsStrictRegex','type\x20yield\x20lazy\x20override\x20def\x20with\x20val\x20var\x20sealed\x20abstract\x20private\x20trait\x20object\x20if\x20forSome\x20for\x20while\x20throw\x20finally\x20protected\x20extends\x20import\x20final\x20return\x20else\x20break\x20new\x20catch\x20super\x20class\x20case\x20package\x20default\x20try\x20this\x20match\x20continue\x20throws\x20implicit','material.core.animate','_defaultSquashPolicy','lastDay','sendDTMF()\x20|\x20no\x20local\x20audio\x20track\x20to\x20send\x20DTMF\x20with','amdD','map','setahun','YYYY\x20[ҫулхи]\x20MMMM\x20[уйӑхӗн]\x20D[-мӗшӗ],\x20HH:mm','дана','defaultResolvePolicy','emit\x20\x22sending\x22\x20[request:%o]','ngRequired','toLowerCase','translate(','createDateObject','progressbar','createLocalDescription()\x20|\x20invalid\x20type\x20\x22','_processInDialogSdpOffer()\x20failed\x20[error:\x20%o]','sekundė_sekundžių_sekundes','quoted_string','\x27(\x5c\x5c[^\x27]+|[^\x27])\x27','(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\x5c[)','Version/[VER]','[Domani\x20a','','[la]\x20D[-an\x20de]\x20MMMM,\x20YYYY\x20HH:mm','last_response','genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre','(\x5cbend\x5cb)','mdZIndex','smiley','pgsql','makeTargetState','setDefaultNextPage','newDTMF','yLabels','\x5c\x5c/','_md','hmmss','screenY','related','^\x5cs*\x5cw+\x5cs*(,|%)','ngclipboardSuccess','div','outbox_tray','Extension\x20Required','matchCriteria','\x22sip\x22','orientationchange','do\x20while\x20select\x20delete\x20by\x20update\x20from','\x20\x20
','lossy','responseData','dddd,\x20D\x20MMMM\x20YYYY,\x20Aको\x20h:mm\x20बजे','TEMPORARY','deltaY','a8m.is-null','#90caf9','tablets','$interpolate','dateFormat','ignored','hours','\x20is\x20reserved!','rage2','data-ng-animate','%d\x20urte',';\x20text=\x22','%d\x20年','\x20secunds','en\x20','\x5cbMicroMessenger\x5cb','-add','scrollbarWidth','slides','JsSIP:ERROR:RTCSession','eraName','Kindle\x20Fire','black_square_button','loadingAsync','socket\x20open','Queue','arrows_counterclockwise','setTransport','އާދިއްތަ','relatedTarget','then','रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि','tHead','purple_heart','keysIn','end','jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec','[у]\x20dddd\x20[у]\x20LT','Cancel','q[qwxr]?\x5cs*\x5c{','goToNextPage','calendar','Date','transitionDuration','=?mdOnPaginate','bir\x20ay','_reconnection','[apopo\x20i]\x20LT','transparent','gridHeight','yaml','[danas\x20u]\x20LT','%d\x20সেকেন্ড','close()',':focus','baidubrowser','ffe4c4','openFocusedMenu','target-right','uibDropdownMenu','1\x20天','জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে','variable','ty2','calendarPaneOpenedFrom','php7','isEditing','borderRightWidth','touches','flags','uuid:','-inci','\x5cb(TB-1207)\x5cb','چۈشتىن\x20كېيىن','datepickerPopupTemplateUrl','off','require','clock6','callbacks','@addBom','Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr',':\x20NOT\x20SHOWN','handleResult','chunkBy','999999px','SELECTED_DATE_CLASS','mipsasm','apache','transition-delay','NNN','groupName','LEFT','horse_racing','parseSDP','_positions','before','INVITE','keyBy','thing\x20room\x20person\x20man\x20woman\x20animal\x20container\x20supporter\x20backdrop\x20door\x20scenery\x20open\x20closed\x20locked\x20inside\x20gender\x20is\x20are\x20say\x20understand\x20kind\x20of\x20rule','una\x20ora','URLMATCHER','isConcatSpreadable','mánuður','paddingRight','toPath','ha1','^time:','focusFirst','notebook_with_decorative_cover','čez\x20%s','ح_ن_ث_ر_خ_ج_س','toIsoString()\x20is\x20deprecated.\x20Please\x20use\x20toISOString()\x20instead\x20(notice\x20the\x20capitals)','itemSort','((0|[1-9][\x5cd_]*)|0[bB][01_]+|0[xX]([\x5cda-fA-F][\x5cda-fA-F_]*|_[\x5cda-fA-F][\x5cda-fA-F_]*))','implementation','mdClose','elm','emit\x20\x22accepted\x22','class\x20module','isSame','md-dialog-is-showing','contentIdFor','copyRect','_expansion_panel_id_','dimBackground','symbol','isGetUserMediaSupported','duration','onerror','0[xX][0-9a-fA-F]+[Li]?\x5cb','D\x20MMMM\x20YYYY,\x20dddd\x20HH:mm','preAssignBindingsEnabled','continue','_onDragStart','layoutDelegate','Windows','@mdMode','haircut','eachRight','\x5cW\x5c.|;','md-grid-list:\x20md-cols\x20attribute\x20was\x20not\x20found,\x20or\x20contained\x20a\x20non-numeric\x20value','view','panel-default','_$window','%d\x20ساعات','_params','ddd,\x20D\x20MMM\x20YYYY\x20HH:mm','_removeFrom','mdpIconsRegistry','^\x5c+{4,}\x5cn','$new','mdColorPickerContainer','hasBackdrop','getInput','#FFCC00','`\x20will\x20affect\x20the\x20dialog\x20opening\x20animations.','October','%d\x20വർഷം','peerconnection','\x5cb(F5281|E2371)\x5cb','insert','heart_eyes_cat','background-size','mobileDetectRules','\x20OPR/','gridsterNoDrag','session_timers','дня','[mañana\x20a\x20la','initResponsesForCurrentPage','Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀','endAngle','_createBackdrop','$mdSelect.disabled','getPointPositionForValue','%s\x20liuba','_reconnectionDelayMax','pig_nose','noInlineStyle','minutami','NG_EMBED_DEFAULT_OPTIONS','_setLocalMediaStatus','sec','#9c27b0','#FF0000','\x0a\x0a\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x0a\x0a','\x20can\x20only\x20have\x20*one*\x20child\x20,\x20','mushroom','mobileBreakPoint','md-tab-data','\x5cb(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\x5c.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)','[-]?(infinity|inf)','STATUS_ANSWERED','canvasHelpers','points','authenticate()\x20|\x20no\x20plain\x20SIP\x20password,\x20and\x20stored\x20`realm`\x20does\x20not\x20match\x20the\x20given\x20`realm`,\x20cannot\x20authenticate\x20[stored:\x22%s\x22,\x20given:\x22%s\x22]','padding','filter','[Aujourd’hui\x20à]\x20LT','pageup','contentEl','custom','big','ئەیلوول','revolving_hearts','target','Symbol','','mwFormConfirmationPage','earth_americas','clockHours','T98\x204G|\x5cbP80\x5cb|\x5cbX90HD\x5cb|X98\x20Air|X98\x20Air\x203G|\x5cbX89\x5cb|P80\x203G|\x5cbX80h\x5cb|P98\x20Air|\x5cbX89HD\x5cb|P98\x203G|\x5cbP90HD\x5cb|P89\x203G|X98\x203G|\x5cbP70h\x5cb|P79HD\x203G|G18d\x203G|\x5cbP79HD\x5cb|\x5cbP89s\x5cb|\x5cbA88\x5cb|\x5cbP10HD\x5cb|\x5cbP19HD\x5cb|G18\x203G|\x5cbP78HD\x5cb|\x5cbA78\x5cb|\x5cbP75\x5cb|G17s\x203G|G17h\x203G|\x5cbP85t\x5cb|\x5cbP90\x5cb|\x5cbP11\x5cb|\x5cbP98t\x5cb|\x5cbP98HD\x5cb|\x5cbG18d\x5cb|\x5cbP85s\x5cb|\x5cbP11HD\x5cb|\x5cbP88s\x5cb|\x5cbA80HD\x5cb|\x5cbA80se\x5cb|\x5cbA10h\x5cb|\x5cbP89\x5cb|\x5cbP78s\x5cb|\x5cbG18\x5cb|\x5cbP85\x5cb|\x5cbA70h\x5cb|\x5cbA70\x5cb|\x5cbG17\x5cb|\x5cbP18\x5cb|\x5cbA80s\x5cb|\x5cbA11s\x5cb|\x5cbP88HD\x5cb|\x5cbA80h\x5cb|\x5cbP76s\x5cb|\x5cbP76h\x5cb|\x5cbP98\x5cb|\x5cbA10HD\x5cb|\x5cbP78\x5cb|\x5cbP88\x5cb|\x5cbA11\x5cb|\x5cbA10t\x5cb|\x5cbP76a\x5cb|\x5cbP76t\x5cb|\x5cbP76e\x5cb|\x5cbP85HD\x5cb|\x5cbP85a\x5cb|\x5cbP86\x5cb|\x5cbP75HD\x5cb|\x5cbP76v\x5cb|\x5cbA12\x5cb|\x5cbP75a\x5cb|\x5cbA15\x5cb|\x5cbP76Ti\x5cb|\x5cbP81HD\x5cb|\x5cbA10\x5cb|\x5cbT760VE\x5cb|\x5cbT720HD\x5cb|\x5cbP76\x5cb|\x5cbP73\x5cb|\x5cbP71\x5cb|\x5cbP72\x5cb|\x5cbT720SE\x5cb|\x5cbC520Ti\x5cb|\x5cbT760\x5cb|\x5cbT720VE\x5cb|T720-3GE|T720-WiFi','_reconnectionAttempts','uib/template/tooltip/tooltip-html-popup.html','bir\x20sagat','_createDialog','YYYY.\x20MMMM\x20D.\x20H:mm','urlParams','=\x27{{','%d\x20heures','tfoot','getYearDistance','panelContainer','$new','secondaryPlaceholder','close\x20(%s)','_placeholder','/','First\x20Hop\x20Lacks\x20Outbound\x20Support','_getPresetByName','setHasPlaceholder','getOwnPropertySymbols','potable_water','md-focused','#\x5c|','headers','new()\x20[configuration:%o]','search','changeDate','isContentEditable','_$timeout','!?[-~]{1,2}>\x5c*?','__dir__','pen','showLabelBackdrop','hook','سبتمبر','highlightClass','closePath','SIP_FAILURE_CODE','material.components.panel','translationNotFoundIndicatorRight','_route_set','arrow_lower_left','секунду_секунды_секунд','addion\x20cfunc\x20cmd\x20cmpopt\x20comfunc\x20const\x20defcfunc\x20deffunc\x20define\x20else\x20endif\x20enum\x20epack\x20func\x20global\x20if\x20ifdef\x20ifndef\x20include\x20modcfunc\x20modfunc\x20modinit\x20modterm\x20module\x20pack\x20packopt\x20regcmd\x20runtime\x20undef\x20usecom\x20uselib','tra','хвилину','PATH','getDirection','Request-URI\x20Too\x20Long','2f4f4f','#ff8f00','\x5c]\x5c[','$viewContentLoaded','touchAction','_md-opaque-enter','alias\x20batch\x20cd\x20clear\x20command\x20connect\x20connection-factory\x20connection-info\x20data-source\x20deploy\x20deployment-info\x20deployment-overlay\x20echo\x20echo-dmr\x20help\x20history\x20if\x20jdbc-driver-info\x20jms-queue|20\x20jms-topic|20\x20ls\x20patch\x20pwd\x20quit\x20read-attribute\x20read-operation\x20reload\x20rollout-plan\x20run-batch\x20set\x20shutdown\x20try\x20unalias\x20undeploy\x20unset\x20version\x20xa-data-source','curly_loop','updateHours','#FF9900','%d\x20jaroj','جولائی','soundCloudEmbed','Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr','Invalid\x20parameter\x20name\x20\x27','FormQuestionBuilderId','ngSortableVersion','cancellable','rgbaToRgb','getToggleElement','ночі','uib/template/timepicker/timepicker.html','forEachRight','isMoment','setDialogParentGetter','quarters','%d\x20%d','dancer','1\x20ມື້','_restoreCache','1\x20年','domingo_lunes_martes_miércoles_jueves_viernes_sábado','invalid','updateSeconds','mdTableProgress','mdp-event','$normalize','пӗр\x20уйӑх','grin','\x20UTC','^flowInit','\x20секунд','mdOpenOnFocus','protobuf','\x5cbSamsung\x5cb|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F','callbacks','screenX','scrollWidth','heavy_dollar_sign','-га','parseHeader','run\x20cmd\x20entrypoint\x20volume\x20add\x20copy\x20workdir\x20label\x20healthcheck\x20shell','TextareaView','#9933FF','inputMask','#+[A-Za-z_0-9]*\x5c(','strictMode','थोडया\x20सॅकंडांनी','a8m.ends-with','\x20rep','Content-Length:\x20','flex-offset-lt-md','GridsterResizable','__halt_compiler.+?;','allSelected','centerVertically','y-axis-0','activeDate','context_','Unable\x20to\x20load\x20data,\x20a\x20key\x20is\x20not\x20a\x20non-empty\x20string.','setSpace','[下]ddddLT','1時間','[a-zA-Z_]\x5cw*[!?=]?|[-+~]\x5c@|<<|>>|=~|===?|<=>|[<>]=?|\x5c*\x5c*|[-/+%^&*~`|]|\x5c[\x5c]=?','ignore','{{::day.name}}{{::day.name}}','mwFormParagraphBuilder','setElementPosition','onmousewheel','[Môre\x20om]\x20LT','#eeeeee','colspan','ansi256','RFC_2822','material.components.button','Precondition\x20Failure','on\x20off\x20all','polite','^uibAccordionGroup','notstring','-radius','resolvePolicies','процедура|функция','Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday','\x22}\x22','sin','clock6','setDisableHeaderCheck','listLanguages','takeWhile','//ideone.com/embed/','select_','malam','cancel','clientRect','fieldRequired','receiveInviteResponse()','template-variable','a8m.slugify','innerWrapper','_findSession','md-not-found','_onMessage','de\x20gener_de\x20febrer_de\x20març_d\x27abril_de\x20maig_de\x20juny_de\x20juliol_d\x27agost_de\x20setembre_d\x27octubre_de\x20novembre_de\x20desembre','x-axis','h:mm:ss\x20A','uib/template/carousel/slide.html','dropdownAppendTo','=\x22url(#','md-truncate','get\x20set\x20args\x20call','showCalendar','md-content','[ng-animate-ref]','eraName','Remove','setIsPlaceholder','terminated','ABS\x20ASC\x20AND\x20ATN\x20AUTO|0\x20BEEP\x20BLOAD|10\x20BSAVE|10\x20CALL\x20CALLS\x20CDBL\x20CHAIN\x20CHDIR\x20CHR$|10\x20CINT\x20CIRCLE\x20CLEAR\x20CLOSE\x20CLS\x20COLOR\x20COM\x20COMMON\x20CONT\x20COS\x20CSNG\x20CSRLIN\x20CVD\x20CVI\x20CVS\x20DATA\x20DATE$\x20DEFDBL\x20DEFINT\x20DEFSNG\x20DEFSTR\x20DEF|0\x20SEG\x20USR\x20DELETE\x20DIM\x20DRAW\x20EDIT\x20END\x20ENVIRON\x20ENVIRON$\x20EOF\x20EQV\x20ERASE\x20ERDEV\x20ERDEV$\x20ERL\x20ERR\x20ERROR\x20EXP\x20FIELD\x20FILES\x20FIX\x20FOR|0\x20FRE\x20GET\x20GOSUB|10\x20GOTO\x20HEX$\x20IF\x20THEN\x20ELSE|0\x20INKEY$\x20INP\x20INPUT\x20INPUT#\x20INPUT$\x20INSTR\x20IMP\x20INT\x20IOCTL\x20IOCTL$\x20KEY\x20ON\x20OFF\x20LIST\x20KILL\x20LEFT$\x20LEN\x20LET\x20LINE\x20LLIST\x20LOAD\x20LOC\x20LOCATE\x20LOF\x20LOG\x20LPRINT\x20USING\x20LSET\x20MERGE\x20MID$\x20MKDIR\x20MKD$\x20MKI$\x20MKS$\x20MOD\x20NAME\x20NEW\x20NEXT\x20NOISE\x20NOT\x20OCT$\x20ON\x20OR\x20PEN\x20PLAY\x20STRIG\x20OPEN\x20OPTION\x20BASE\x20OUT\x20PAINT\x20PALETTE\x20PCOPY\x20PEEK\x20PMAP\x20POINT\x20POKE\x20POS\x20PRINT\x20PRINT]\x20PSET\x20PRESET\x20PUT\x20RANDOMIZE\x20READ\x20REM\x20RENUM\x20RESET|0\x20RESTORE\x20RESUME\x20RETURN|0\x20RIGHT$\x20RMDIR\x20RND\x20RSET\x20RUN\x20SAVE\x20SCREEN\x20SGN\x20SHELL\x20SIN\x20SOUND\x20SPACE$\x20SPC\x20SQR\x20STEP\x20STICK\x20STOP\x20STR$\x20STRING$\x20SWAP\x20SYSTEM\x20TAB\x20TAN\x20TIME$\x20TIMER\x20TROFF\x20TRON\x20TO\x20USR\x20VAL\x20VARPTR\x20VARPTR$\x20VIEW\x20WAIT\x20WHILE\x20WEND\x20WIDTH\x20WINDOW\x20WRITE\x20XOR','key','md-asc','\x5cb(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?','activeYear','\x20','يونيو','[আগামীকাল]\x20LT','powershell','star','onChange','\x5c$[A-z0-9_]+','gmtOffset','dynamic','setHours','circle','chart.js','afterDraw','','margin-right','00bfff','selectNext','Undecipherable','stack','\x20*\x20','setCurrentView','removeRow','scaleMerge','1912-07-29','[το\x20προηγούμενο]\x20dddd\x20[{}]\x20LT','isDate','requestError','\x20{{column.value}}{{row.value}}This\x20is\x20required','trident','=%s','$browser','reverseContainerStretch','Cannot\x20enable\x20events\x20at\x20runtime\x20(use\x20$stateEventsProvider','$translateChangeError','chartDatasetOverride','\x22retry_after\x22','highlightAction','in\x20of\x20if\x20for\x20while\x20finally\x20var\x20new\x20function\x20do\x20return\x20void\x20else\x20break\x20catch\x20instanceof\x20with\x20throw\x20case\x20default\x20try\x20this\x20switch\x20continue\x20typeof\x20delete\x20let\x20yield\x20const\x20export\x20super\x20debugger\x20as\x20async\x20await\x20static\x20import\x20from\x20as','#536dfe','%d\x20စက္ကန့်','@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\x5cb','UAS','Timer\x20H\x20expired\x20for\x20transaction\x20','މާރިޗު','_states','sparkles','notEmpty','summary','md-calendar-date-today','អា_ច_អ_ព_ព្រ_សុ_ស','transitionHistory','[Fuddlo]\x20dddd[,]\x20LT','PALETTES','mesecev','mesiacom','jedna\x20minuta','tempClasses','.\x20Available\x20handlers:\x20','Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου','aria-disabled','glBorderDash','_getTabs','getRelativePosition','MISSING_SDP','Controller','md-foot','control:%s','rgba(0,0,0,0.1)','min','updateLayout','md-fab-action-item','bindings','mdVirtualRepeat','layout-align','[Дирӯз\x20соати]\x20LT','UTC','_stateRegistry','viensas\x20secunds','spaghetti','%d\x20മിനിറ്റ്','dismiss','NG_DEFAULT_TEMPLATE_URL','[]{}%#\x27\x22','_onDragOver','[a-zA-Z_][a-zA-Z0-9_.]*(\x5c!|\x5c?)?','border-right','Deprecation\x20warning:\x20','Decline','^[^\x5c[\x5c]\x5cn]+?\x5cn[=\x5c-~\x5c^\x5c+]{2,}$','offsetTop','handleHookResult','typeaheadAppendToBody','authorization_user','mìos','ਇੱਕ\x20ਮਹੀਨਾ','headerize','Timer\x20L\x20expired\x20for\x20transaction\x20','enableSvg','uibTab','fqn','reposition','max-forwards','pointHoverBorderColor','First','\x20not\x20found','timer_D','#ef5350','pointHoverBorderWidth','app/directives/label-item/label-item.html','changed','isPromisesSupported','.md-nav-item','pin','openClass','_callInterceptors','einem\x20Monat','[Rytoj]\x20LT','stundas_stundām_stunda_stundas','\x20\x5cbi?OS\x5cb\x20[VER][\x20;]{1}','1\x20小時','%d\x20diimmut','uib/template/modal/window.html','\x20de\x20','md-max','एक\x20घण्टा','އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި','libra','dropDown','offsetGridLines','forceNew','defaultTarget','disableBackdrop','hasPrevious','^[a-zA-Z][a-zA-Z0-9_-]*\x5c(.*\x5c)','isLocal','message','material.components.menuBar','_initTabs','/socket.io','href','titleFontFamily','rgb(102,\x20179,\x20255)','port','ng-animate-shim','[a-zA-Z][a-zA-Z0-9_-]*','_localMediaStream','flex-grow','_|0\x20as\x20at\x20cofix\x20else\x20end\x20exists\x20exists2\x20fix\x20for\x20forall\x20fun\x20if\x20IF\x20in\x20let\x20match\x20mod\x20Prop\x20return\x20Set\x20then\x20Type\x20using\x20where\x20with\x20Abort\x20About\x20Add\x20Admit\x20Admitted\x20All\x20Arguments\x20Assumptions\x20Axiom\x20Back\x20BackTo\x20Backtrack\x20Bind\x20Blacklist\x20Canonical\x20Cd\x20Check\x20Class\x20Classes\x20Close\x20Coercion\x20Coercions\x20CoFixpoint\x20CoInductive\x20Collection\x20Combined\x20Compute\x20Conjecture\x20Conjectures\x20Constant\x20constr\x20Constraint\x20Constructors\x20Context\x20Corollary\x20CreateHintDb\x20Cut\x20Declare\x20Defined\x20Definition\x20Delimit\x20Dependencies\x20DependentDerive\x20Drop\x20eauto\x20End\x20Equality\x20Eval\x20Example\x20Existential\x20Existentials\x20Existing\x20Export\x20exporting\x20Extern\x20Extract\x20Extraction\x20Fact\x20Field\x20Fields\x20File\x20Fixpoint\x20Focus\x20for\x20From\x20Function\x20Functional\x20Generalizable\x20Global\x20Goal\x20Grab\x20Grammar\x20Graph\x20Guarded\x20Heap\x20Hint\x20HintDb\x20Hints\x20Hypotheses\x20Hypothesis\x20ident\x20Identity\x20If\x20Immediate\x20Implicit\x20Import\x20Include\x20Inductive\x20Infix\x20Info\x20Initial\x20Inline\x20Inspect\x20Instance\x20Instances\x20Intro\x20Intros\x20Inversion\x20Inversion_clear\x20Language\x20Left\x20Lemma\x20Let\x20Libraries\x20Library\x20Load\x20LoadPath\x20Local\x20Locate\x20Ltac\x20ML\x20Mode\x20Module\x20Modules\x20Monomorphic\x20Morphism\x20Next\x20NoInline\x20Notation\x20Obligation\x20Obligations\x20Opaque\x20Open\x20Optimize\x20Options\x20Parameter\x20Parameters\x20Parametric\x20Path\x20Paths\x20pattern\x20Polymorphic\x20Preterm\x20Print\x20Printing\x20Program\x20Projections\x20Proof\x20Proposition\x20Pwd\x20Qed\x20Quit\x20Rec\x20Record\x20Recursive\x20Redirect\x20Relation\x20Remark\x20Remove\x20Require\x20Reserved\x20Reset\x20Resolve\x20Restart\x20Rewrite\x20Right\x20Ring\x20Rings\x20Save\x20Scheme\x20Scope\x20Scopes\x20Script\x20Search\x20SearchAbout\x20SearchHead\x20SearchPattern\x20SearchRewrite\x20Section\x20Separate\x20Set\x20Setoid\x20Show\x20Solve\x20Sorted\x20Step\x20Strategies\x20Strategy\x20Structure\x20SubClass\x20Table\x20Tables\x20Tactic\x20Term\x20Test\x20Theorem\x20Time\x20Timeout\x20Transparent\x20Type\x20Typeclasses\x20Types\x20Undelimit\x20Undo\x20Unfocus\x20Unfocused\x20Unfold\x20Universe\x20Universes\x20Unset\x20Unshelve\x20using\x20Variable\x20Variables\x20Variant\x20Verbose\x20Visibility\x20where\x20with','$translateSanitization','tl-ph','\x20வைகறை','Unsupported\x20URI\x20Scheme','onCompiling','originalCanvasStyleWidth','\x22\x20autoplay=\x22false\x22\x20frameborder=\x220\x22\x20scrolling=\x22no\x22\x20allowfullscreen=\x22true\x22>','\x5c*(\x5c.[a-z\x5c-]+)+','material.components.select','ui.bootstrap.dateparser','BELOW','chips','isNextDisabled','selected','material.components.fabToolbar','passwordMatch','','неколку\x20секунди','calendarButton','/embed/\x22\x20width=\x22','pingInterval','hoverRadius','matches','abort\x20else\x20new\x20return\x20abs\x20elsif\x20not\x20reverse\x20abstract\x20end\x20accept\x20entry\x20select\x20access\x20exception\x20of\x20separate\x20aliased\x20exit\x20or\x20some\x20all\x20others\x20subtype\x20and\x20for\x20out\x20synchronized\x20array\x20function\x20overriding\x20at\x20tagged\x20generic\x20package\x20task\x20begin\x20goto\x20pragma\x20terminate\x20body\x20private\x20then\x20if\x20procedure\x20type\x20case\x20in\x20protected\x20constant\x20interface\x20is\x20raise\x20use\x20declare\x20range\x20delay\x20limited\x20record\x20when\x20delta\x20loop\x20rem\x20while\x20digits\x20renames\x20with\x20do\x20mod\x20requeue\x20xor','getParam','(\x5cs*,\x5cs*','\x20context:\x20','plist','router.$id','päivää','%d\x20տարի','minTime','Sortable','D_H_Ma_Më_E_P_Sh','select','9370db','quoted_string','true\x20false\x20none\x20minimal\x20full\x20all\x20void\x20and\x20or\x20not\x20bw\x20nbw\x20ew\x20new\x20cn\x20ncn\x20lt\x20lte\x20gt\x20gte\x20eq\x20neq\x20rx\x20nrx\x20ft','groupName','Windows\x20Phone\x20[VER]','SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533','resize','SQRT2','node-webkit','les','як\x20сол','.md-button','ELEMENT_MAX_PIXELS','md-no-animation','stableSort','waitUntilQuiet','isSame','STATUS_WAITING_FOR_ACK','clipboardAction','Class','\x0a\x20\x20{{heading}}\x0a\x0a','REM','[u]\x20[subotu]\x20[u]\x20LT','eventNames','chartSeries','bottom-right','isReadonly','resolvePolicy','IFRAME','#8bc34a','cert','Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo','notebook','heart','fromData','addMethod','tennis','','cal','fá\x20sekund','zoneAbbr','=?mdNumeric','[sjutra\x20u]\x20LT','CTL','authorization','bho\x20chionn\x20%s','fontFamily','#f8bbd0','GridsterDraggable','#0099CC','default','aria-level','actionKey','%d\x20ရက်','__actions__','color:\x20','xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617','cached','public\x20protected\x20internal\x20private\x20constructor','pan-x','#ccff90','#69f0ae','uib/template/progressbar/progress.html','MP11\x20OCTA|MP10\x20OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\x5cbMPG7\x5cb|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010','@[\x5cw-]+\x5cs*:','%d\x20ⵉⵙⴳⴰⵙⵏ','domNode','\x20/\x20','Endeavour\x20800NG|Endeavour\x201010','useFactory','ui.bootstrap.progressbar','set_type','#f06292','\x20md-no-float','dailymotion','COMMENT_NODE','mousedown\x20touchstart\x20pointerdown','mdPageSelect','doWrite','chartBase','addElement','polarArea','$to','ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්','SSSSSSSS','#039be5','no_smoking','uib/template/typeahead/typeahead-match.html','emit\x20\x22sdp\x22','hwb','en-gb','configureInput','freeze','ցերեկվա','So_Mé_Dë_Më_Do_Fr_Sa','_computeIsAligned','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','en-ie','maxSelections','isDateWithinRange','Min_Sen_Sel_Rab_Kam_Jum_Sab','regexp','\x22branch\x22','#212121','wolf','[Эртага]\x20LT\x20[да]','lilanga','%r<','NON_INVITE_CLIENT','[ovddit]\x20dddd\x20[ti]\x20LT','တစ်ရက်','_reverseXPosition','Palm|Pre|Pixi','hwb(','maxMode','getResponseSheetRow','isNewItem','addToSortableElements','','timezones','uniqueId','ds.clock','typeaheadMinLength','bouquet','method','#33CC00','Lone\x20surrogate\x20U+','#ffff8d','registerHeader','addInterpolation','[minulú\x20stredu\x20o]\x20LT','tent','data-timestamp','Color()\x20has\x20been\x20deprecated.\x20Use\x20$mdThemingProviderTheme.','locationService','=mdMonthFilter','OFFSET_END','delay','^[0-9]+\x20','%d\x20ساعة','měsíce','buildHooksForPhase','calling','$extractResponseForQuestionWithOfferedAnswers','relativeTo','afterTitle','escapeToClose','_configuration','_connection','00000001','reduce','floorctrl:%s','visual','isState','kuukautta','attribute','$mdSidenavController','registeredStyles','NEGATIVE_INFINITY','$uibTooltip','jsfiddleHeight','abcd','MenuItemController','ramen','md.data.table','_receiveReinvite','\x22auth\x22','-üncü','_liveElement','Directive','getElementById','deletearrow_drop_uparrow_drop_down\x20\x20\x20UNKNOWN\x20TYPE

Required\x20field','clojure-repl','segundu\x20%d','ssrc:%d',';+sip.instance=\x22','_contentType','disableTheming','mdColor','\x222\x22','lossy','[prejšnji]\x20dddd\x20[ob]\x20LT','chart-destroy','touch','getChipIndex','%d\x20xhur','$stateChangeCancel','/(PROG|ATTR|MN|POS|END)\x5cb','easeInBounce','onTransportError','variable','жк_дй_сй_ср_бй_жм_сн','1.1.26','GridsterTouch','interpolate','isFolded','getBaseHref','getPointAtEvent','бир\x20соат','boot','appendTo\x20element\x20not\x20found.\x20Make\x20sure\x20that\x20the\x20element\x20passed\x20is\x20in\x20DOM.','max_interval','toJson','gridster-item-initialized','\x0a','selectCtrl','uibTooltip','раніцы','monthCtrl','pullMode','setParam','ޖޫން','ass','dolphin','[a-zA-Z]\x5cw*','xMidYMid\x20meet','$mdTabsTemplate','restoreFocusTo','सकाळीं','mediaClockName','unusedInput','getQuestionWithResponseList','якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе','useValue','минут','^!!!(\x20(5|1\x5c.1|Strict|Frameset|Basic|Mobile|RDFa|XML\x5cb.*))?$','_focusLastTab','%[0-9]+','applyRegex','background-repeat','_bottom','Dé\x20Máirt','argument_relative\x20argument\x20argument0\x20argument1\x20argument2\x20argument3\x20argument4\x20argument5\x20argument6\x20argument7\x20argument8\x20argument9\x20argument10\x20argument11\x20argument12\x20argument13\x20argument14\x20argument15\x20argument_count\x20x\x20y\x20xprevious\x20yprevious\x20xstart\x20ystart\x20hspeed\x20vspeed\x20direction\x20speed\x20friction\x20gravity\x20gravity_direction\x20path_index\x20path_position\x20path_positionprevious\x20path_speed\x20path_scale\x20path_orientation\x20path_endaction\x20object_index\x20id\x20solid\x20persistent\x20mask_index\x20instance_count\x20instance_id\x20room_speed\x20fps\x20fps_real\x20current_time\x20current_year\x20current_month\x20current_day\x20current_weekday\x20current_hour\x20current_minute\x20current_second\x20alarm\x20timeline_index\x20timeline_position\x20timeline_speed\x20timeline_running\x20timeline_loop\x20room\x20room_first\x20room_last\x20room_width\x20room_height\x20room_caption\x20room_persistent\x20score\x20lives\x20health\x20show_score\x20show_lives\x20show_health\x20caption_score\x20caption_lives\x20caption_health\x20event_type\x20event_number\x20event_object\x20event_action\x20application_surface\x20gamemaker_pro\x20gamemaker_registered\x20gamemaker_version\x20error_occurred\x20error_last\x20debug_mode\x20keyboard_key\x20keyboard_lastkey\x20keyboard_lastchar\x20keyboard_string\x20mouse_x\x20mouse_y\x20mouse_button\x20mouse_lastbutton\x20cursor_sprite\x20visible\x20sprite_index\x20sprite_width\x20sprite_height\x20sprite_xoffset\x20sprite_yoffset\x20image_number\x20image_index\x20image_speed\x20depth\x20image_xscale\x20image_yscale\x20image_angle\x20image_alpha\x20image_blend\x20bbox_left\x20bbox_right\x20bbox_top\x20bbox_bottom\x20layer\x20background_colour\x20\x20background_showcolour\x20background_color\x20background_showcolor\x20view_enabled\x20view_current\x20view_visible\x20view_xview\x20view_yview\x20view_wview\x20view_hview\x20view_xport\x20view_yport\x20view_wport\x20view_hport\x20view_angle\x20view_hborder\x20view_vborder\x20view_hspeed\x20view_vspeed\x20view_object\x20view_surface_id\x20view_camera\x20game_id\x20game_display_name\x20game_project_name\x20game_save_id\x20working_directory\x20temp_directory\x20program_directory\x20browser_width\x20browser_height\x20os_type\x20os_device\x20os_browser\x20os_version\x20display_aa\x20async_load\x20delta_time\x20webgl_enabled\x20event_data\x20iap_data\x20phy_rotation\x20phy_position_x\x20phy_position_y\x20phy_angular_velocity\x20phy_linear_velocity_x\x20phy_linear_velocity_y\x20phy_speed_x\x20phy_speed_y\x20phy_speed\x20phy_angular_damping\x20phy_linear_damping\x20phy_bullet\x20phy_fixed_rotation\x20phy_active\x20phy_mass\x20phy_inertia\x20phy_com_x\x20phy_com_y\x20phy_dynamic\x20phy_kinematic\x20phy_sleeping\x20phy_collision_points\x20phy_collision_x\x20phy_collision_y\x20phy_col_normal_x\x20phy_col_normal_y\x20phy_position_xprevious\x20phy_position_yprevious','_expires','beforeInit','\x22uas\x22','mdColorHistory','\x5cw+','TX-A1301|TX-M9002|Q702|kf026','Error\x20retrieving\x20template\x20from\x20URL.','dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato','[a-z/_]+','#fbc02d','[ഇന്നലെ]\x20LT','degi','green','[la]\x20D[-an\x20de]\x20MMMM,\x20YYYY\x20HH:mm','missing\x20channel\x20labels\x20property:\x20','dddd\x20[at]\x20LT',';expires=0','alog\x20alog10\x20amax0\x20amax1\x20amin0\x20amin1\x20amod\x20cabs\x20ccos\x20cexp\x20clog\x20csin\x20csqrt\x20dabs\x20dacos\x20dasin\x20datan\x20datan2\x20dcos\x20dcosh\x20ddim\x20dexp\x20dint\x20dlog\x20dlog10\x20dmax1\x20dmin1\x20dmod\x20dnint\x20dsign\x20dsin\x20dsinh\x20dsqrt\x20dtan\x20dtanh\x20float\x20iabs\x20idim\x20idint\x20idnint\x20ifix\x20isign\x20max0\x20max1\x20min0\x20min1\x20sngl\x20algama\x20cdabs\x20cdcos\x20cdexp\x20cdlog\x20cdsin\x20cdsqrt\x20cqabs\x20cqcos\x20cqexp\x20cqlog\x20cqsin\x20cqsqrt\x20dcmplx\x20dconjg\x20derf\x20derfc\x20dfloat\x20dgamma\x20dimag\x20dlgama\x20iqint\x20qabs\x20qacos\x20qasin\x20qatan\x20qatan2\x20qcmplx\x20qconjg\x20qcos\x20qcosh\x20qdim\x20qerf\x20qerfc\x20qexp\x20qgamma\x20qimag\x20qlgama\x20qlog\x20qlog10\x20qmax1\x20qmin1\x20qmod\x20qnint\x20qsign\x20qsin\x20qsinh\x20qsqrt\x20qtan\x20qtanh\x20abs\x20acos\x20aimag\x20aint\x20anint\x20asin\x20atan\x20atan2\x20char\x20cmplx\x20conjg\x20cos\x20cosh\x20exp\x20ichar\x20index\x20int\x20log\x20log10\x20max\x20min\x20nint\x20sign\x20sin\x20sinh\x20sqrt\x20tan\x20tanh\x20print\x20write\x20dim\x20lge\x20lgt\x20lle\x20llt\x20mod\x20nullify\x20allocate\x20deallocate\x20adjustl\x20adjustr\x20all\x20allocated\x20any\x20associated\x20bit_size\x20btest\x20ceiling\x20count\x20cshift\x20date_and_time\x20digits\x20dot_product\x20eoshift\x20epsilon\x20exponent\x20floor\x20fraction\x20huge\x20iand\x20ibclr\x20ibits\x20ibset\x20ieor\x20ior\x20ishft\x20ishftc\x20lbound\x20len_trim\x20matmul\x20maxexponent\x20maxloc\x20maxval\x20merge\x20minexponent\x20minloc\x20minval\x20modulo\x20mvbits\x20nearest\x20pack\x20present\x20product\x20radix\x20random_number\x20random_seed\x20range\x20repeat\x20reshape\x20rrspacing\x20scale\x20scan\x20selected_int_kind\x20selected_real_kind\x20set_exponent\x20shape\x20size\x20spacing\x20spread\x20sum\x20system_clock\x20tiny\x20transpose\x20trim\x20ubound\x20unpack\x20verify\x20achar\x20iachar\x20transfer\x20dble\x20entry\x20dprod\x20cpu_time\x20command_argument_count\x20get_command\x20get_command_argument\x20get_environment_variable\x20is_iostat_end\x20ieee_arithmetic\x20ieee_support_underflow_control\x20ieee_get_underflow_mode\x20ieee_set_underflow_mode\x20is_iostat_eor\x20move_alloc\x20new_line\x20selected_char_kind\x20same_type_as\x20extends_type_ofacosh\x20asinh\x20atanh\x20bessel_j0\x20bessel_j1\x20bessel_jn\x20bessel_y0\x20bessel_y1\x20bessel_yn\x20erf\x20erfc\x20erfc_scaled\x20gamma\x20log_gamma\x20hypot\x20norm2\x20atomic_define\x20atomic_ref\x20execute_command_line\x20leadz\x20trailz\x20storage_size\x20merge_bits\x20bge\x20bgt\x20ble\x20blt\x20dshiftl\x20dshiftr\x20findloc\x20iall\x20iany\x20iparity\x20image_index\x20lcobound\x20ucobound\x20maskl\x20maskr\x20num_images\x20parity\x20popcnt\x20poppar\x20shifta\x20shiftl\x20shiftr\x20this_image','бірнеше\x20секунд','\x27rule\x27\x20must\x20be\x20a\x20string\x20or\x20function','initial','_contact','onevent','isAndroid','null\x20false\x20true','removable','text-shadow','foregroundShadow','%d\x20hours','silentRejection','\x5cb([1-9][0-9_]*|0)','autocomplete-required','inputChanged','primitive\x20rsc_template','MaxListenersExceededWarning','donparam','\x22\x20was\x20given\x20as\x20the\x20first\x20argument\x20for\x20mustache#render(template,\x20view,\x20partials)','ის\x20წინ','city_sunset','womans_clothes','YYYY年M月D日(ddd)\x20HH:mm','იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ','simulcast_03','decodeParams','mipsasm','бир\x20дакика','[object\x20Map]','openPanels','dd\x20MMM\x20yyyy','\x20óra','d3d3d3','[minulý]\x20dddd\x20[o]\x20LT','[keçən\x20həftə]\x20dddd\x20[saat]\x20LT','calendarPaneOpenedFrom','urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua','UibTabsetController','#FFCC33','app/directives/input-item/input-view.html','pár\x20sekund','vm.isOpen','currentlyOpenMenu','buildOrUpdateControllers','clock930','getNgClassMap','_loop','tiles','_focusPreviousTab','setNumPages','return\x20this','%d\x20महिने','outsideClick','Aको\x20h:mm:ss\x20बजे','DDD','en-au','SEARCH','$injector','md-input-container','([G])([0-9]+\x5c.?[0-9]?)','true\x20false\x20null\x20and\x20or\x20shl\x20shr\x20mod','toDataURL','%s\x20ang\x20nakalipas','traceHookResult','md-icon-left','Request\x20Entity\x20Too\x20Large','hljs','%d\x20уйӑх','dir1','startOf','no_bell','[Hôm\x20qua\x20lúc]\x20LT','The\x20transition\x20was\x20ignored','(-?)(\x5cb0[xX][a-fA-F0-9]+|(\x5cb\x5cd+(\x5c.\x5cd*)?f?|\x5c.\x5cd+f?)([eE][-+]?\x5cd+f?)?)','localeData','md-column','CONNECT','prevButton','getPointBorderWidth','parseAttributeBoolean','stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia','creationContext','functionsIn','USER_DENIED_MEDIA_ACCESS','rename_node','$_COOKIE\x20$_FILES\x20$_GET\x20$_GET_BINARY\x20$_GET_RAW\x20$_POST\x20$_POST_BINARY\x20$_POST_RAW\x20$_SESSION\x20$_SERVER\x20codepoint\x20codepoints\x20segment\x20segments\x20codeunit\x20codeunits\x20sentence\x20sentences\x20trueWord\x20trueWords\x20paragraph\x20after\x20byte\x20bytes\x20english\x20the\x20until\x20http\x20forever\x20descending\x20using\x20line\x20real8\x20with\x20seventh\x20for\x20stdout\x20finally\x20element\x20word\x20words\x20fourth\x20before\x20black\x20ninth\x20sixth\x20characters\x20chars\x20stderr\x20uInt1\x20uInt1s\x20uInt2\x20uInt2s\x20stdin\x20string\x20lines\x20relative\x20rel\x20any\x20fifth\x20items\x20from\x20middle\x20mid\x20at\x20else\x20of\x20catch\x20then\x20third\x20it\x20file\x20milliseconds\x20seconds\x20second\x20secs\x20sec\x20int1\x20int1s\x20int4\x20int4s\x20internet\x20int2\x20int2s\x20normal\x20text\x20item\x20last\x20long\x20detailed\x20effective\x20uInt4\x20uInt4s\x20repeat\x20end\x20repeat\x20URL\x20in\x20try\x20into\x20switch\x20to\x20words\x20https\x20token\x20binfile\x20each\x20tenth\x20as\x20ticks\x20tick\x20system\x20real4\x20by\x20dateItems\x20without\x20char\x20character\x20ascending\x20eighth\x20whole\x20dateTime\x20numeric\x20short\x20first\x20ftp\x20integer\x20abbreviated\x20abbr\x20abbrev\x20private\x20case\x20while\x20if\x20div\x20mod\x20wrap\x20and\x20or\x20bitAnd\x20bitNot\x20bitOr\x20bitXor\x20among\x20not\x20in\x20a\x20an\x20within\x20contains\x20ends\x20with\x20begins\x20the\x20keys\x20of\x20keys','creationData','ui-sref-opts=\x22{{ctrl.srefOpts}}\x22\x20','zero','\x27n\x20þora','factor','_createBackdrop','ng-model','[ម្សិលមិញ\x20ម៉ោង]\x20LT','close()','D\x20MMMM\x20YYYY\x20[pukul]\x20HH.mm','movingItem','synchronous','resetPages','ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu','config','destroyRTCSession','kelias\x20sekundes','honeybee','european_post_office','ng-model=\x22ctrl.date\x22\x20ng-if=\x22ctrl.isCalendarOpen\x22>','#ffcc80','%s\x20soň','\x20\x20\x20\x20\x20one-panel=\x22onePanel\x22\x20','pos','$$rAF','ea7e5d','dropdownAppendToBody','asDays','D\x27A','एक\x20दिन','%s\x20ʼzo','reconnect_failed','calendarCtrl','_$animate','auth','addHeader','dan','Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru','mdIsOpen','$mdUserTemplate','ensureScalesHaveIDs','A400','%d\x20uur','setupMousewheelEvents','ViewService:\x20No\x20view\x20config\x20factory\x20registered\x20for\x20type\x20','include','promise','(url|data-uri)\x5c(','isValidDate','%d\x20oeren','wheelDelta','sget','reconnectionDelay','toJSON','$validate','iePointerMap','_findDialog','locale','icons/ic_keyboard_arrow_right_black_24px.svg','material.components.colors','\x27inci','banana','with\x20(obj)\x20{\x0a','=?mdClearButton','method=','gridster-draggable-changed','NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark','\x5cbimport\x5cb','nextDay','mergeR','\x5cs*(?:=|:=)\x5cs*)?(\x5c(.*\x5c))?\x5cs*\x5cB\x5c->\x5c*?','onClose','getResponseHeader','isHorizontal','exposing','چۈشتىن\x20بۇرۇن','uz-latn','ng-disabled','$watchCollection','_nextDay','replace','=mdColorPicker','dddd\x20[kuni\x20soat]\x20LT\x20[da]','ngClick','heavy_division_sign','[မနေ.က]\x20LT\x20[မှာ]','[Bi\x20lɛrɛ]\x20LT','mwQuestionPriorityListBuilder','TECNO\x20P9|TECNO\x20DP8D','_setPosition','isPreview','last_quarter_moon_with_face','Disathairne','sotn_vuos_maŋ_gask_duor_bear_láv','$element','caseInsensitive','$templateFactory','arrow_upper_left','ett\x20år','end_doc','borderDashOffset','query','datepicker','pageElement','এক\x20ঘন্টা','mw-label.html','','onFinish','[Šiandien]\x20LT','toast','type=\x22','Sv_P_O_T_C_Pk_S','.js\x22\x20onload=\x22retargetLinks()\x22>','lassoscript','-nci','[Σήμερα\x20{}]\x20LT','getFocusedTabId','getFocusedYearIndex','_segments','currentHue','Жк_Дй_Шй_Шр_Бй_Жм_Иш','Build/[VER]','shared\x20guarded\x20stdin\x20stdout\x20stderr\x20result\x20true\x20false','yAxes','stop()','#CCCC00','remoteUrlRequestWithCredentials','\x22INVITE\x22','siku\x20%d','twitchtvEmbed','\x20\x20\x20\x20\x20\x20\x20\x20','%s\x20ичинде','[јуче\x20у]\x20LT','%d\x20mis','relatedRect','doctag','#64b5f6','border-image-repeat','serializeToString','core','$ctrl.handle','_monthsParse','horizontal','NOTIFY','userInputNgModelCtrl','MeeGo','#b0bec5','sortedIndexOf','Fine7\x20Genius|Fine7\x20Shine|Fine7\x20Air|Fine8\x20Style|Fine9\x20More|Fine10\x20Joy|Fine11\x20Wide','[у]\x20[недељу]\x20[у]\x20LT','Windows\x20Vista','BrowserLocationConfig','maxScrollbarLength','click\x20touchend','CⒸCĆĈĊČÇḈƇȻꜾ','1\x20ชั่วโมง','translateLanguageChanged','invertSwap','grow','Error','today','actionByKey','Redirected','%d\x20минути','inLabelRange','__iteratees__','cornerRadius','app/directives/select-item/select-view.html','getItem','\x27\x20is\x20already\x20defined','Skyfire/[VER]','md-ripple-scaled\x20md-ripple-active','repeatName','lastActive','સવાર','done','contact','CLICK_OUTSIDE','legendItems','[v\x20stredu\x20o]\x20LT','Gear','mdFabSpeedDialFlingAnimation','-чү','presentation','Master\x20Started\x20Slave\x20Stopped\x20start\x20promote\x20demote\x20stop\x20monitor\x20true\x20false','một\x20tuần','-panel','@?mdRemovedMessage','\x5cb_*rig[A-Z]+[A-Za-z0-9_\x5c-]*','useClass','localDescription','\x22text\x22','pre-pause\x20writing\x20complete','%d\x20orë','getInnerHTML','=?mdRequireMatch','shouldApply','MemoryLocationConfig','\x27iensa\x20ziua','-كۈنى','parameters','embedData','jQuery','nokre\x20sekund','','HOOK','_md-panel-animate-scale-out\x20_md-panel-animate-enter\x20_md-panel-animate-leave','soundCloudOptions','stable','päivä','localStorage','ConfigurationError','mizar','300\x20400\x20A200\x20A400\x20A700','rgb(255,\x20204,\x20255)','resetSelectedChip','getNearestContentElement','handleDirectionalChanges','ngMessageExp','hmmss','no_entry','rati','#616161','waitingOnPromise','00ff7f','catchAll','roller_coaster','translate-cloak','asMilliseconds','animationObject','ng-click=\x22ctrl.mdNavClick()\x22',',\x200)','\x5cb(((0[xX](([\x5cda-fA-F][\x5cda-fA-F_]*|_[\x5cda-fA-F][\x5cda-fA-F_]*)\x5c.([\x5cda-fA-F][\x5cda-fA-F_]*|_[\x5cda-fA-F][\x5cda-fA-F_]*)|\x5c.?([\x5cda-fA-F][\x5cda-fA-F_]*|_[\x5cda-fA-F][\x5cda-fA-F_]*))[pP][+-]?(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd))|((0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd)(\x5c.\x5cd*|([eE][+-]?(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd)))|\x5cd+\x5c.(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd)(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd)|\x5c.(0|[1-9][\x5cd_]*)([eE][+-]?(0|[1-9][\x5cd_]*|\x5cd[\x5cd_]*|[\x5cd_]+?\x5cd))?))([fF]|L|i|[fF]i|Li)?|','wss','fakeHandler','%d\x20phút','addValidElements','modalRendered','getMomentStartOf','menuitem','waitFor','metai_metų_metus','md-icon-right','Samh','localhost','mdColorPickerDialog.tpl.html','(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\x5c[','http://www.w3.org/2000/svg','getAttachId','labelItem','leta','[a-z]+\x22\x22\x22','ಒಂದು\x20ದಿನ','probing\x20transport\x20\x22%s\x22','uib/template/alert/alert.html','header\x20\x22','(~)?\x22','ngSwitchWhen','md-table-select','[прошлог]\x20[четвртка]\x20[у]\x20LT','%d秒','\x20rate=%s','\x5cb(\x5cd+|\x5cd+\x5c.|\x5c.\x5cd+|\x5cd+\x5c.\x5cd+)[Ee][-+]?\x5cd+\x5cb','mouseup','[a-zA-Z][a-zA-Z_0-9]*(\x27|\x5c.\x27)+','_hookBuilder','\x27handler\x27\x20must\x20be\x20a\x20string,\x20function,\x20TargetState,\x20or\x20have\x20a\x20state:\x20\x27newtarget\x27\x20property','dropRight','процедура\x20функция','\x5cbend\x5csif\x5cb','centerVariant','ein\x20tími','%s\x20yang\x20lalu','Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag','_earlyDialogs','Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember','focusDropdownEntry','mobileDetectRules','@?mdNavigationHint','activeYear2','render',':(?!\x5cs)','bufferTimeout','nav-up','materialFamily','rateNumerator','getTooltipSize','last_response','asSeconds','%d\x20سېكونت','এক\x20বছর',')\x5cs','getTop','isRemovable','No\x20interim\x20elements\x20currently\x20showing\x20up.','(\x5cn{2}|\x27)','suspect','cmake.in','mouseActive','fast_forward','initResponsesForCurrentPage','Resolvable(token:\x20','md-','returnValue','targetIndex','laughing','%s\x20kọjá','mwFormBuilder','_lastX','viewportOffset','YYYY-M-D','एका\x20मिणटान','mdOptgroup','viewDecl.resolveAs','[Tomorrow\x20at]\x20LT','ühe\x20tunni','#ffca28','\x22Digest\x22','JsSIP:SIPMessage','\x22multipart\x22','badcfg','plugin','isFocusInLastItem','hideVerticalScrollbar','which','align-end','_eventsCount','%[qQwWx]?<','label:%s','-ne\x20-eq\x20-lt\x20-gt\x20-ge\x20-le\x20-not\x20-like\x20-notlike\x20-match\x20-notmatch\x20-contains\x20-notcontains\x20-in\x20-notin\x20-replace','\x20vorsam','newRTCSession','\x22!\x22','move-left','pointerup','\x27n\x20ar','_scale','TransitionService','positionElements','ERAS','Delay','autohotkey','offsetParent','#6600CC','ngReadonly','Android.*(\x5cbMID\x5cb|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)','range','chartBubble','[昨日]\x20LT','[prošlog]\x20[ponedjeljka]\x20[u]\x20LT','rgb(245,\x20123,\x200)','=?mdOnPaginate','This\x20field\x20is\x20required','eval\x20isFinite\x20isNaN\x20parseFloat\x20parseInt\x20decodeURI\x20decodeURIComponent\x20encodeURI\x20encodeURIComponent\x20escape\x20unescape\x20Object\x20Function\x20Boolean\x20Error\x20EvalError\x20InternalError\x20RangeError\x20ReferenceError\x20StopIteration\x20SyntaxError\x20TypeError\x20URIError\x20Number\x20Math\x20Date\x20String\x20RegExp\x20Array\x20Float32Array\x20Float64Array\x20Int16Array\x20Int32Array\x20Int8Array\x20Uint16Array\x20Uint32Array\x20Uint8Array\x20Uint8ClampedArray\x20ArrayBuffer\x20DataView\x20JSON\x20Intl\x20arguments\x20require\x20module\x20console\x20window\x20document\x20any\x20number\x20boolean\x20string\x20void\x20Promise','bar_chart','def\x20defp\x20defmacro','led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro','%d\x20小時','ui.bootstrap.accordion','UIRouter\x20instance\x20#','isEdge','minutou','backoff','\x0a}\x0a','ned._pon._uto._sre._čet._pet._sub.','\x5cb(0[bB][01]+)','_algorithm','translateNamespaceDirective','Using\x20a\x20class\x20of\x20md-actions\x20is\x20deprecated,\x20please\x20use\x20.','#3e2723','(min-width:\x20600px)','showDigital','ngAria','isPanelActive','jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember','μία\x20μέρα','all\x20any\x20no-route\x20self\x20urpf-failed\x20egress|5\x20unknown','[mañá\x20','So_Mo_Di_Mi_Do_Fr_Sa','endSameAsBegin','січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень','\x20Layout\x20direction\x20({{Checkboxes.item.config.direction\x20==\x20\x27horizontal\x27\x20?\x20\x27Vertical\x27\x20:\x20\x27Horizontal\x27}})\x20','A\x20h:mm','defaultMaxListeners','rowboat','#4D5360','%d\x20ڪلاڪ','[%-]?%>','terminator_end','ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ','\x5c$\x5c(','necktie','cmpl','rgb(0,\x20245,\x20123)','YYYY년\x20MMMM\x20D일\x20dddd\x20A\x20h:mm','suppressDeprecationWarnings','\x22\x20\x22','infinite','ANY\x20AbstractArray\x20AbstractChannel\x20AbstractFloat\x20AbstractMatrix\x20AbstractRNG\x20AbstractSerializer\x20AbstractSet\x20AbstractSparseArray\x20AbstractSparseMatrix\x20AbstractSparseVector\x20AbstractString\x20AbstractUnitRange\x20AbstractVecOrMat\x20AbstractVector\x20Any\x20ArgumentError\x20Array\x20AssertionError\x20Associative\x20Base64DecodePipe\x20Base64EncodePipe\x20Bidiagonal\x20BigFloat\x20BigInt\x20BitArray\x20BitMatrix\x20BitVector\x20Bool\x20BoundsError\x20BufferStream\x20CachingPool\x20CapturedException\x20CartesianIndex\x20CartesianRange\x20Cchar\x20Cdouble\x20Cfloat\x20Channel\x20Char\x20Cint\x20Cintmax_t\x20Clong\x20Clonglong\x20ClusterManager\x20Cmd\x20CodeInfo\x20Colon\x20Complex\x20Complex128\x20Complex32\x20Complex64\x20CompositeException\x20Condition\x20ConjArray\x20ConjMatrix\x20ConjVector\x20Cptrdiff_t\x20Cshort\x20Csize_t\x20Cssize_t\x20Cstring\x20Cuchar\x20Cuint\x20Cuintmax_t\x20Culong\x20Culonglong\x20Cushort\x20Cwchar_t\x20Cwstring\x20DataType\x20Date\x20DateFormat\x20DateTime\x20DenseArray\x20DenseMatrix\x20DenseVecOrMat\x20DenseVector\x20Diagonal\x20Dict\x20DimensionMismatch\x20Dims\x20DirectIndexString\x20Display\x20DivideError\x20DomainError\x20EOFError\x20EachLine\x20Enum\x20Enumerate\x20ErrorException\x20Exception\x20ExponentialBackOff\x20Expr\x20Factorization\x20FileMonitor\x20Float16\x20Float32\x20Float64\x20Function\x20Future\x20GlobalRef\x20GotoNode\x20HTML\x20Hermitian\x20IO\x20IOBuffer\x20IOContext\x20IOStream\x20IPAddr\x20IPv4\x20IPv6\x20IndexCartesian\x20IndexLinear\x20IndexStyle\x20InexactError\x20InitError\x20Int\x20Int128\x20Int16\x20Int32\x20Int64\x20Int8\x20IntSet\x20Integer\x20InterruptException\x20InvalidStateException\x20Irrational\x20KeyError\x20LabelNode\x20LinSpace\x20LineNumberNode\x20LoadError\x20LowerTriangular\x20MIME\x20Matrix\x20MersenneTwister\x20Method\x20MethodError\x20MethodTable\x20Module\x20NTuple\x20NewvarNode\x20NullException\x20Nullable\x20Number\x20ObjectIdDict\x20OrdinalRange\x20OutOfMemoryError\x20OverflowError\x20Pair\x20ParseError\x20PartialQuickSort\x20PermutedDimsArray\x20Pipe\x20PollingFileWatcher\x20ProcessExitedException\x20Ptr\x20QuoteNode\x20RandomDevice\x20Range\x20RangeIndex\x20Rational\x20RawFD\x20ReadOnlyMemoryError\x20Real\x20ReentrantLock\x20Ref\x20Regex\x20RegexMatch\x20RemoteChannel\x20RemoteException\x20RevString\x20RoundingMode\x20RowVector\x20SSAValue\x20SegmentationFault\x20SerializationState\x20Set\x20SharedArray\x20SharedMatrix\x20SharedVector\x20Signed\x20SimpleVector\x20Slot\x20SlotNumber\x20SparseMatrixCSC\x20SparseVector\x20StackFrame\x20StackOverflowError\x20StackTrace\x20StepRange\x20StepRangeLen\x20StridedArray\x20StridedMatrix\x20StridedVecOrMat\x20StridedVector\x20String\x20SubArray\x20SubString\x20SymTridiagonal\x20Symbol\x20Symmetric\x20SystemError\x20TCPSocket\x20Task\x20Text\x20TextDisplay\x20Timer\x20Tridiagonal\x20Tuple\x20Type\x20TypeError\x20TypeMapEntry\x20TypeMapLevel\x20TypeName\x20TypeVar\x20TypedSlot\x20UDPSocket\x20UInt\x20UInt128\x20UInt16\x20UInt32\x20UInt64\x20UInt8\x20UndefRefError\x20UndefVarError\x20UnicodeError\x20UniformScaling\x20Union\x20UnionAll\x20UnitRange\x20Unsigned\x20UpperTriangular\x20Val\x20Vararg\x20VecElement\x20VecOrMat\x20Vector\x20VersionNumber\x20Void\x20WeakKeyDict\x20WeakRef\x20WorkerConfig\x20WorkerPool\x20','dim_lun_mard_merk_ĵaŭ_ven_sab','implementation','jar\x20wa’_jar\x20cha’_jar\x20wej_jar\x20loS_jar\x20vagh_jar\x20jav_jar\x20Soch_jar\x20chorgh_jar\x20Hut_jar\x20wa’maH_jar\x20wa’maH\x20wa’_jar\x20wa’maH\x20cha’','rgba(','#CC3399','%d\x20मिनिटां','false\x20nil\x20true','useColors','symbols','[Сьогодні\x20','^^mdSelectMenu','hasNext','{{option.value}}This\x20field\x20is\x20required','mdPanelRef','THEMES','stuck_out_tongue','border-bottom-left-radius','$translatePartialLoaderStructureChanged','Aib','e\x20puer\x20Sekonnen','factory','hrs','selectedIndex','handlers','lastPage','مايو','file_folder','usingBrowserWebSocket','(L|u|U|Lu|LU|uL|UL)?','\x27n\x20dag','setLineDash','import','dddd,\x20D\x20[de]\x20MMMM\x20[de]\x20YYYY\x20HH:mm','$mdExpansionPanel','dom_lun_mar_mer_gio_ven_sab','getMinutes','stripLastPathElement','columnWidths','%s\x20كېيىن','_md-toolbar-transitions','box','minor','fromConfig','older_woman','ariaLabel','modalInClass','Invalid\x20state\x20ref\x20\x27','onInputEvent','\x5c+1','_groups','[fosta]\x20dddd\x20[la]\x20LT','[:,]\x5cs*','Monday','when','weekdaysShort','_roundA','es-do','MD-SELECT','rtl','_pluginapi','mdDirection','un\x20mese','пред\x20%s','awk','\x0a\x0a','%d\x20isgasn','[W\x20zeszły]\x20dddd\x20[o]\x20LT','FORM','dddd\x20[عند\x20الساعة]\x20LT','Animation','%d\x20মিনিট','attempt','\x22handling\x22','ماي','%d\x20saat','hostname','sec','addPanel','isDuration','_history','eftir\x20%s','sanitize','cherries','deps','','$mdMenuIsOpen','iceconnectionstatechange','parentLocale','websocket\x20error','http\x20error','getTitle','accordiongroup-','footerFontSize','insert','Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀','chart_with_downwards_trend','zeroLineWidth','removeBlobs','ff8c00','priorWebsocketSuccess','MESSAGE','%[qQwWx]?/','getLabels','onBefore','legend','array_agg\x20array_append\x20array_concat\x20array_contains\x20array_count\x20array_distinct\x20array_ifnull\x20array_length\x20array_max\x20array_min\x20array_position\x20array_prepend\x20array_put\x20array_range\x20array_remove\x20array_repeat\x20array_replace\x20array_reverse\x20array_sort\x20array_sum\x20avg\x20count\x20max\x20min\x20sum\x20greatest\x20least\x20ifmissing\x20ifmissingornull\x20ifnull\x20missingif\x20nullif\x20ifinf\x20ifnan\x20ifnanorinf\x20naninf\x20neginfif\x20posinfif\x20clock_millis\x20clock_str\x20date_add_millis\x20date_add_str\x20date_diff_millis\x20date_diff_str\x20date_part_millis\x20date_part_str\x20date_trunc_millis\x20date_trunc_str\x20duration_to_str\x20millis\x20str_to_millis\x20millis_to_str\x20millis_to_utc\x20millis_to_zone_name\x20now_millis\x20now_str\x20str_to_duration\x20str_to_utc\x20str_to_zone_name\x20decode_json\x20encode_json\x20encoded_size\x20poly_length\x20base64\x20base64_encode\x20base64_decode\x20meta\x20uuid\x20abs\x20acos\x20asin\x20atan\x20atan2\x20ceil\x20cos\x20degrees\x20e\x20exp\x20ln\x20log\x20floor\x20pi\x20power\x20radians\x20random\x20round\x20sign\x20sin\x20sqrt\x20tan\x20trunc\x20object_length\x20object_names\x20object_pairs\x20object_inner_pairs\x20object_values\x20object_inner_values\x20object_add\x20object_put\x20object_remove\x20object_unwrap\x20regexp_contains\x20regexp_like\x20regexp_position\x20regexp_replace\x20contains\x20initcap\x20length\x20lower\x20ltrim\x20position\x20repeat\x20replace\x20rtrim\x20split\x20substr\x20title\x20trim\x20upper\x20isarray\x20isatom\x20isboolean\x20isnumber\x20isobject\x20isstring\x20type\x20toarray\x20toatom\x20toboolean\x20tonumber\x20toobject\x20tostring','aria-describedby','translate(','doughnutMode','lastRipple','grade','_md-panel-animate-scale-out\x20_md-panel-animate-leave','dddd,\x20D\x20MMMM\x20YYYY,\x20A\x20h:mm\x20વાગ્યે','gist-','ui.bootstrap.dropdown','angularMaterialFormBuilder','[W\x20zeszłą\x20niedzielę\x20o]\x20LT','uploaderPage','[Dinten\x20puniko\x20pukul]\x20LT','panel','connecting','pushpin','touchcancel','%s\x20में','minuteStep','Invalid\x20argument.\x20invalid\x20\x27JsSIP.Socket\x27\x20instance','renderPartial','createMetaData','7fff00','[Вчера\x20в]\x20LT','Via','onChangePageSize','','oldTouchAction','_getPathTypes','CT695|CT888|CT[\x5cs]?910|CT7\x20Tab|CT9\x20Tab|CT3\x20Tab|CT2\x20Tab|CT1\x20Tab|C820|C720|\x5cbCT-1\x5cb','currency_exchange','800080','2.18.3','md-dialog-fullscreen','receiveNotify()\x20|\x20error\x20parsing\x20NOTIFY\x20body:\x20\x22','_runSessionTimer','_rules','یک\x20ساعت','.ps__scrollbar-x-rail','timer_M','assembly\x20module\x20package\x20import\x20alias\x20class\x20interface\x20object\x20given\x20value\x20assign\x20void\x20function\x20new\x20of\x20extends\x20satisfies\x20abstracts\x20in\x20out\x20return\x20break\x20continue\x20throw\x20assert\x20dynamic\x20if\x20else\x20switch\x20case\x20for\x20while\x20try\x20catch\x20finally\x20then\x20let\x20this\x20outer\x20super\x20is\x20exists\x20nonempty','an\x20','EAGER','attrs2','D\x20MMMM\x20[năm]\x20YYYY','[atzo]\x20LT[etan]','$pristine','flex-order','\x22,\x22','%d\x20dagar','camel','సాయంత్రం','borderColor','multipart','msid:%s','\x22::\x22','deRegister','[:+?]?=','worried','There\x20are\x20','body','msgCalendar','_mangleOffer','reconstructPacket','$$uibTimepickerCss','dddd,\x20D\x20MMMM\x20YYYY\x20[pukul]\x20HH.mm','\x27üncü','ng-animate','en-il','createTransport','footerFontColor','strokeRect','Not\x20enough\x20arguments','uib/template/datepicker/day.html','touchmove\x20mousemove','@fieldSeparator','webkitRTCPeerConnection','innocent','setHasValue','ngMaterialDateRangePicker','mwFormConfirmationPageBuilder','YYYY年M月D日dddd\x20HH:mm','_onTapStart','TransportError','getDates','Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj','வது','poll','datepickerTemplateUrl','newInfo','webOS','overriding\x20function\x20procedure\x20with\x20is\x20renames\x20return','ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ','new()','updateGlobals','cross','[Idag]\x20LT','flex-basis','Record-Route:\x20','ngclipboardSuccess','ALIGN_START','answerChanged','leave','flatObject','#f3e5f5','ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച','setup:%s','mionaid','ui.bootstrap.modal','encode','NNNNN','protocol','(^using\x5cs+[A-Za-z0-9_\x5c.]+;$|\x5cbfunctions*[^\x5c(])','Placement','$compileProvider','IterationCount','dddd\x20[kl.]\x20LT','inputDirective','weekday','','\x20TextNumberEmail','feet','peerconnection.setRemoteDescription()\x20failed','petang','watchDigests','setElement','.rowContainer','DOMSubtreeModified','low_brightness','buttons','_sendReinvite','dddd\x20[សប្តាហ៍មុន]\x20[ម៉ោង]\x20LT','_children','newTransaction','\x22%\x22','isoWeeksInISOWeekYear','bir\x20ay','decreasePageOffset','-րդ','mdColorHex','mdBufferValue','renderSection','error\x20parsing\x20\x22','(\x27|\x5c.\x27)+','Ħa_Tn_Tl_Er_Ħa_Ġi_Si','getVersion','MEDIA','isNative','resolver','uibPopoverTemplatePopup','_doneCallbacks','unmute','moment().','hslString','baseball','md-select-menu','%d\x20dias','\x5cw+-?\x5cw+','getPropertyValue','\x27\x20optional:\x20','ng-leave','mwForm.pageFlow.goToNextPage','hasTransitionAll','_showClone','bulb','isReadable','ps-scroll-up','enumerable','comment','ack','[\x5cx0E-\x7f]','directivePriority','GGGG-[W]WW-E','///+\x5cs*','هڪ\x20ڪلاڪ','isOpera','Faoi','initialized','respectPreAssignBindingsEnabled','일요일_월요일_화요일_수요일_목요일_금요일_토요일','#33CCCC','D\x20MMMM\x20YYYY\x20г.,\x20H:mm','Invalid\x20HTML\x20for\x20md-menu:\x20','OutgoingRequest','#ad1457','D.\x20M.\x20YYYY.','onScroll','fromState','fil','htmlElements','beforeTickToLabelConversion','thisArg','_router','removeChild','getAudioTracks','dddd,\x20D.\x20MMMM\x20YYYY.\x20H:mm','عام\x20واحد','option','عامان','6b8e23','\x20Monate','Transition\x20Rejection($id:\x20','hotsprings','_disableDelayedDragEvents','\x22pending\x22','md-panel-is-showing','=?frequency','attachScopeListeners','','isBoolean','appendChild','ഒരു\x20മിനിറ്റ്','mdGridTile','kelios\x20sekundės','packet','Wrong\x20Status','busstop','lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj','sön_mån_tis_ons_tor_fre_lör','icl','f08080','일_월_화_수_목_금_토','qw\x5cs+q','onCreate','webkitCancelRequestAnimationFrame','colorElement','requestFailed','bfcpConfId','tedEmbed','shortDays','divisionList','keyPressedOnInput','Float32Array','defaultSizeY','января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря','Row\x20selection:\x20ngModel\x20is\x20not\x20defined.','M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10','mdDatepicker','getTransform','///','wákati\x20kan','getNg1ViewConfigFactory','_isReadyToReOffer()\x20|\x20there\x20is\x20another\x20INVITE/UPDATE\x20transaction\x20in\x20progress','ne_po_ut_st_št_pi_so','You\x20must\x20define\x20options.controllerAs\x20when\x20options.bindToController\x20is\x20true.','%r{','afterCalculateTickRotation','scatter','vài\x20giây','uiCanExit','heart-broken','containment','ariaTabIndex','leading','renegotiate()','setPing','%d\x20ثانية','\x5cb(extends|implements)\x20+','unhold','aHrefSanitizationWhitelist','registerAvailableLanguageKeys','$onInit','Invalid\x20\x22target\x22\x20attribute.\x20You\x20can\x27t\x20cut\x20text\x20from\x20elements\x20with\x20\x22readonly\x22\x20or\x20\x22disabled\x22\x20attributes','[a-zA-Z]','\x5cb(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\x5cb','list-style','%d년','session\x20progress','milliseconds','VIDEO','ދުވަސް\x20%d','measureText',')\x5cb','_config','padStart','\x5c.[a-zA-Z][a-zA-Z0-9_-]*(?=[\x5c.\x5cs\x5cn\x5c[\x5c:,])','\x5cb(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\x5cb','.invalid','max-message-size:%s','mahjong','A\x20h:mm:ss\x20बजे','rose','transitionDelay','#546e7a','available','%d\x20giorni','onFailed','ένας\x20χρόνος','$mdSelect.toggle($event)','','#455a64','NOT_READY_ERROR','MdTabsController','invoke','rec\x20with\x20let\x20in\x20inherit\x20assert\x20if\x20else\x20then','دقيقتين','sad','meta-keyword','Content-type','aria-hidden','onChanged','මාසය','modalOptions','likes','oncoming_police_car','[\x5c]-~]','valid','_closeTo','calculateTotal','^_{4,}\x5cn','new\x20Resolvable():\x20token\x20argument\x20is\x20required','relieved','TypeError','getViewportTop','store','cherry_blossom','fallbackClass','mapObj','sendBuffer','translate3d','openOnFocus','#dcedc8','mwForm.pageEvents.pageCurrentChanged','_md-datepicker-has-calendar-icon','^\x27{3,}[\x20\x5ct]*$','_isOnscreen','useBothWheelAxes','sekundė_sekundžių_sekundes','coerce','rgb(163,\x2082,\x200)','meridiem','_isStrictMode','handleClickNextMonth','minútami','янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек','record-route','typeaheadWaitMs','[Warcʼhoazh\x20da]\x20LT','withAnimation','retinaScale','^\x5c[.+?\x5c]$','en\x20dan','gml','clock1230','ABORT\x20ALTER\x20ANALYZE\x20BEGIN\x20CALL\x20CHECKPOINT|10\x20CLOSE\x20CLUSTER\x20COMMENT\x20COMMIT\x20COPY\x20CREATE\x20DEALLOCATE\x20DECLARE\x20DELETE\x20DISCARD\x20DO\x20DROP\x20END\x20EXECUTE\x20EXPLAIN\x20FETCH\x20GRANT\x20IMPORT\x20INSERT\x20LISTEN\x20LOAD\x20LOCK\x20MOVE\x20NOTIFY\x20PREPARE\x20REASSIGN|10\x20REFRESH\x20REINDEX\x20RELEASE\x20RESET\x20REVOKE\x20ROLLBACK\x20SAVEPOINT\x20SECURITY\x20SELECT\x20SET\x20SHOW\x20START\x20TRUNCATE\x20UNLISTEN|10\x20UPDATE\x20VACUUM|10\x20VALUES\x20AGGREGATE\x20COLLATION\x20CONVERSION|10\x20DATABASE\x20DEFAULT\x20PRIVILEGES\x20DOMAIN\x20TRIGGER\x20EXTENSION\x20FOREIGN\x20WRAPPER|10\x20TABLE\x20FUNCTION\x20GROUP\x20LANGUAGE\x20LARGE\x20OBJECT\x20MATERIALIZED\x20VIEW\x20OPERATOR\x20CLASS\x20FAMILY\x20POLICY\x20PUBLICATION|10\x20ROLE\x20RULE\x20SCHEMA\x20SEQUENCE\x20SERVER\x20STATISTICS\x20SUBSCRIPTION\x20SYSTEM\x20TABLESPACE\x20CONFIGURATION\x20DICTIONARY\x20PARSER\x20TEMPLATE\x20TYPE\x20USER\x20MAPPING\x20PREPARED\x20ACCESS\x20METHOD\x20CAST\x20AS\x20TRANSFORM\x20TRANSACTION\x20OWNED\x20TO\x20INTO\x20SESSION\x20AUTHORIZATION\x20INDEX\x20PROCEDURE\x20ASSERTION\x20ALL\x20ANALYSE\x20AND\x20ANY\x20ARRAY\x20ASC\x20ASYMMETRIC|10\x20BOTH\x20CASE\x20CHECK\x20COLLATE\x20COLUMN\x20CONCURRENTLY|10\x20CONSTRAINT\x20CROSS\x20DEFERRABLE\x20RANGE\x20DESC\x20DISTINCT\x20ELSE\x20EXCEPT\x20FOR\x20FREEZE|10\x20FROM\x20FULL\x20HAVING\x20ILIKE\x20IN\x20INITIALLY\x20INNER\x20INTERSECT\x20IS\x20ISNULL\x20JOIN\x20LATERAL\x20LEADING\x20LIKE\x20LIMIT\x20NATURAL\x20NOT\x20NOTNULL\x20NULL\x20OFFSET\x20ON\x20ONLY\x20OR\x20ORDER\x20OUTER\x20OVERLAPS\x20PLACING\x20PRIMARY\x20REFERENCES\x20RETURNING\x20SIMILAR\x20SOME\x20SYMMETRIC\x20TABLESAMPLE\x20THEN\x20TRAILING\x20UNION\x20UNIQUE\x20USING\x20VARIADIC|10\x20VERBOSE\x20WHEN\x20WHERE\x20WINDOW\x20WITH\x20BY\x20RETURNS\x20INOUT\x20OUT\x20SETOF|10\x20IF\x20STRICT\x20CURRENT\x20CONTINUE\x20OWNER\x20LOCATION\x20OVER\x20PARTITION\x20WITHIN\x20BETWEEN\x20ESCAPE\x20EXTERNAL\x20INVOKER\x20DEFINER\x20WORK\x20RENAME\x20VERSION\x20CONNECTION\x20CONNECT\x20TABLES\x20TEMP\x20TEMPORARY\x20FUNCTIONS\x20SEQUENCES\x20TYPES\x20SCHEMAS\x20OPTION\x20CASCADE\x20RESTRICT\x20ADD\x20ADMIN\x20EXISTS\x20VALID\x20VALIDATE\x20ENABLE\x20DISABLE\x20REPLICA|10\x20ALWAYS\x20PASSING\x20COLUMNS\x20PATH\x20REF\x20VALUE\x20OVERRIDING\x20IMMUTABLE\x20STABLE\x20VOLATILE\x20BEFORE\x20AFTER\x20EACH\x20ROW\x20PROCEDURAL\x20ROUTINE\x20NO\x20HANDLER\x20VALIDATOR\x20OPTIONS\x20STORAGE\x20OIDS|10\x20WITHOUT\x20INHERIT\x20DEPENDS\x20CALLED\x20INPUT\x20LEAKPROOF|10\x20COST\x20ROWS\x20NOWAIT\x20SEARCH\x20UNTIL\x20ENCRYPTED|10\x20PASSWORD\x20CONFLICT|10\x20INSTEAD\x20INHERITS\x20CHARACTERISTICS\x20WRITE\x20CURSOR\x20ALSO\x20STATEMENT\x20SHARE\x20EXCLUSIVE\x20INLINE\x20ISOLATION\x20REPEATABLE\x20READ\x20COMMITTED\x20SERIALIZABLE\x20UNCOMMITTED\x20LOCAL\x20GLOBAL\x20SQL\x20PROCEDURES\x20RECURSIVE\x20SNAPSHOT\x20ROLLUP\x20CUBE\x20TRUSTED|10\x20INCLUDE\x20FOLLOWING\x20PRECEDING\x20UNBOUNDED\x20RANGE\x20GROUPS\x20UNENCRYPTED|10\x20SYSID\x20FORMAT\x20DELIMITER\x20HEADER\x20QUOTE\x20ENCODING\x20FILTER\x20OFF\x20FORCE_QUOTE\x20FORCE_NOT_NULL\x20FORCE_NULL\x20COSTS\x20BUFFERS\x20TIMING\x20SUMMARY\x20DISABLE_PAGE_SKIPPING\x20RESTART\x20CYCLE\x20GENERATED\x20IDENTITY\x20DEFERRED\x20IMMEDIATE\x20LEVEL\x20LOGGED\x20UNLOGGED\x20OF\x20NOTHING\x20NONE\x20EXCLUDE\x20ATTRIBUTE\x20USAGE\x20ROUTINES\x20TRUE\x20FALSE\x20NAN\x20INFINITY\x20ALIAS\x20BEGIN\x20CONSTANT\x20DECLARE\x20END\x20EXCEPTION\x20RETURN\x20PERFORM|10\x20RAISE\x20GET\x20DIAGNOSTICS\x20STACKED|10\x20FOREACH\x20LOOP\x20ELSIF\x20EXIT\x20WHILE\x20REVERSE\x20SLICE\x20DEBUG\x20LOG\x20INFO\x20NOTICE\x20WARNING\x20ASSERT\x20OPEN\x20SUPERUSER\x20NOSUPERUSER\x20CREATEDB\x20NOCREATEDB\x20CREATEROLE\x20NOCREATEROLE\x20INHERIT\x20NOINHERIT\x20LOGIN\x20NOLOGIN\x20REPLICATION\x20NOREPLICATION\x20BYPASSRLS\x20NOBYPASSRLS\x20','listen','newStartIndex','elementFromPoint','[Domani\x20alle]\x20LT','\x5c$[^01]|#[^0-9a-fA-F]','A\x20h:mm:ss\x20সময়','\x20ret','microphone','flex-flow','mousewheel\x20wheel','NG_EMBED_REGEXP_PATTERNS','Chips\x20container.\x20Use\x20arrow\x20keys\x20to\x20select\x20chips.','resolved','cancelAutoHide','deselect','onPacket','thrift','mathematica','för\x20%s\x20sedan','шаб','dayOfYear','tap','showAnalog','complete','หลังเที่ยง','mdHead','append\x20cap\x20close\x20complex\x20copy\x20imag\x20len\x20make\x20new\x20panic\x20print\x20println\x20real\x20recover\x20delete','useLocalStorage','یه‌ك\x20مانگ','[ਅਗਲਾ]\x20dddd,\x20LT','service','','\x20;text=\x22'];(function(_0x434440,_0x4f0c55){var _0x4bfe5e=function(_0x6c91c8){while(--_0x6c91c8){_0x434440['push'](_0x434440['shift']());}};_0x4bfe5e(++_0x4f0c55);}(a2_0x4f0c,0x133));var a2_0x4bfe=function(_0x434440,_0x4f0c55){_0x434440=_0x434440-0x0;var _0x4bfe5e=a2_0x4f0c[_0x434440];return _0x4bfe5e;};var _0x411650=a2_0x4bfe;(self[_0x411650('0x2c37')]=self[_0x411650('0x2c37')]||[])[_0x411650('0x1a90')]([[0x12],{0x251:function(_0x6c91c8,_0x32f2b0,_0x5dfdd4){!function(_0x44a9e0,_0x3ee315){var _0x2877f5=a2_0x4bfe;'use strict';var _0x71f9e0=angular,_0x1b7727=_0x3ee315&&_0x3ee315['module']?_0x3ee315:_0x71f9e0,_0x5624a4=function(){var _0x5d72d2=a2_0x4bfe;for(var _0x5753ea=0x0,_0x505937=0x0,_0x26dc16=arguments[_0x5d72d2('0x175a')];_0x505937<_0x26dc16;_0x505937++)_0x5753ea+=arguments[_0x505937][_0x5d72d2('0x175a')];var _0x44975e=Array(_0x5753ea),_0x4dc2c5=0x0;for(_0x505937=0x0;_0x505937<_0x26dc16;_0x505937++)for(var _0x43a09d=arguments[_0x505937],_0x487e1e=0x0,_0x4c1ce7=_0x43a09d[_0x5d72d2('0x175a')];_0x487e1e<_0x4c1ce7;_0x487e1e++,_0x4dc2c5++)_0x44975e[_0x4dc2c5]=_0x43a09d[_0x487e1e];return _0x44975e;};function _0xcdee2a(_0x2c0a0f){return function _0x1b8a59(){var _0x41a1a1=a2_0x4bfe;if(arguments[_0x41a1a1('0x175a')]>=_0x2c0a0f[_0x41a1a1('0x175a')])return _0x2c0a0f['apply'](this,arguments);var _0x153846=Array[_0x41a1a1('0x5a')][_0x41a1a1('0x2c0a')]['call'](arguments);return _0x1b8a59[_0x41a1a1('0x1ecd')][_0x41a1a1('0x177a')](_0x1b8a59,_0x5624a4([this],_0x153846));};}function _0x725902(){var _0x59c08a=a2_0x4bfe,_0x29e95a=arguments,_0x44b8ee=_0x29e95a[_0x59c08a('0x175a')]-0x1;return function(){for(var _0x42bcbb=_0x44b8ee,_0x4ac637=_0x29e95a[_0x44b8ee]['apply'](this,arguments);_0x42bcbb--;)_0x4ac637=_0x29e95a[_0x42bcbb]['call'](this,_0x4ac637);return _0x4ac637;};}function _0x191328(){var _0x3ba3ad=a2_0x4bfe;for(var _0xcdf46f=[],_0x13c9d5=0x0;_0x13c9d5=0x0&&_0x3704f5[_0x247437('0x1f40')](_0x4f296d,0x1),_0x3704f5;}var _0x332568=_0xcdee2a(_0x176e15);function _0x176e15(_0x488529,_0x2d071c){var _0x223683=_0x2877f5;return _0x488529[_0x223683('0x1a90')](_0x2d071c),_0x2d071c;}var _0x2ad7e2=function(_0x3ea255){var _0x554c79=_0x2877f5;return _0x3ea255[_0x554c79('0x2c0a')]()[_0x554c79('0x247d')](function(_0x2f3c5f){'function'==typeof _0x2f3c5f&&_0x2f3c5f(),_0xf7741b(_0x3ea255,_0x2f3c5f);});};function _0x1b8ff7(_0x1a704){var _0x1c06e0=_0x2877f5;for(var _0x3e975c=[],_0x472478=0x1;_0x472478this[_0x55860c('0xb6b')]&&this[_0x55860c('0x6e5')](),_0x4dda8c;},_0x201e28[_0xbc4fd6('0x5a')]['evict']=function(){var _0xaba13e=_0xbc4fd6,_0x231718=this[_0xaba13e('0x30c9')][_0xaba13e('0x2967')]();return this['_evictListeners'][_0xaba13e('0x247d')](function(_0x56b13b){return _0x56b13b(_0x231718);}),_0x231718;},_0x201e28[_0xbc4fd6('0x5a')][_0xbc4fd6('0x27d2')]=function(){var _0x3d7e59=_0xbc4fd6;if(this[_0x3d7e59('0x399e')]())return this[_0x3d7e59('0x30c9')]['splice'](0x0,0x1)[0x0];},_0x201e28[_0xbc4fd6('0x5a')][_0xbc4fd6('0x10f0')]=function(){var _0x5ef9c4=_0xbc4fd6,_0x4d43fc=this[_0x5ef9c4('0x30c9')];return this[_0x5ef9c4('0x30c9')]=[],_0x4d43fc;},_0x201e28[_0xbc4fd6('0x5a')]['size']=function(){var _0xb38414=_0xbc4fd6;return this[_0xb38414('0x30c9')][_0xb38414('0x175a')];},_0x201e28[_0xbc4fd6('0x5a')][_0xbc4fd6('0x2371')]=function(_0x55b8c8){var _0x396860=_0xbc4fd6,_0x1c91ff=this[_0x396860('0x30c9')][_0x396860('0xe1c')](_0x55b8c8);return _0x1c91ff>-0x1&&this[_0x396860('0x30c9')][_0x396860('0x1f40')](_0x1c91ff,0x1)[0x0];},_0x201e28['prototype'][_0xbc4fd6('0x891')]=function(){var _0x480a3d=_0xbc4fd6;return this[_0x480a3d('0x30c9')][this[_0x480a3d('0x30c9')]['length']-0x1];},_0x201e28[_0xbc4fd6('0x5a')]['peekHead']=function(){var _0x240cb8=_0xbc4fd6;if(this[_0x240cb8('0x399e')]())return this[_0x240cb8('0x30c9')][0x0];},_0x201e28;}();(_0x454da6=_0x44a9e0[_0x2877f5('0x9f1')]||(_0x44a9e0['RejectType']={}))[_0x454da6[_0x2877f5('0x74b')]=0x2]=_0x2877f5('0x74b'),_0x454da6[_0x454da6[_0x2877f5('0x20d4')]=0x3]=_0x2877f5('0x20d4'),_0x454da6[_0x454da6[_0x2877f5('0x1363')]=0x4]=_0x2877f5('0x1363'),_0x454da6[_0x454da6[_0x2877f5('0x1cec')]=0x5]='IGNORED',_0x454da6[_0x454da6[_0x2877f5('0x3048')]=0x6]=_0x2877f5('0x3048');var _0x3fe647=0x0,_0x250c92=function(){var _0x171965=_0x2877f5;function _0x2e626b(_0x4e547,_0x546a72,_0x48aa79){var _0x2b66ed=a2_0x4bfe;this[_0x2b66ed('0x28bf')]=_0x3fe647++,this[_0x2b66ed('0x21a5')]=_0x4e547,this['message']=_0x546a72,this[_0x2b66ed('0x25ee')]=_0x48aa79;}return _0x2e626b[_0x171965('0x30a1')]=function(_0x202035){var _0x2fdfea=_0x171965;return _0x202035&&_0x2fdfea('0x19aa')==typeof _0x202035[_0x2fdfea('0x26b5')]&&_0x3d3db3(_0x2e626b)(_0x202035[_0x2fdfea('0x1252')]);},_0x2e626b[_0x171965('0x1778')]=function(_0x56af2b,_0x2195d0){var _0x168a42=_0x171965,_0x2ce0cc=_0x168a42('0xae8'),_0x1610e7=new _0x2e626b(_0x44a9e0[_0x168a42('0x9f1')]['SUPERSEDED'],_0x2ce0cc,_0x56af2b);return _0x2195d0&&_0x2195d0[_0x168a42('0x1a08')]&&(_0x1610e7[_0x168a42('0x1a08')]=!0x0),_0x1610e7;},_0x2e626b[_0x171965('0x1a08')]=function(_0x51b590){var _0xf1977a=_0x171965;return _0x2e626b[_0xf1977a('0x1778')](_0x51b590,{'redirected':!0x0});},_0x2e626b[_0x171965('0x3187')]=function(_0xbfa3f1){var _0x4065b7=_0x171965,_0x4b46d6='This\x20transition\x20is\x20invalid';return new _0x2e626b(_0x44a9e0[_0x4065b7('0x9f1')]['INVALID'],_0x4b46d6,_0xbfa3f1);},_0x2e626b['ignored']=function(_0x3173a1){var _0x38c53a=_0x171965,_0x1f3a98=_0x38c53a('0x346a');return new _0x2e626b(_0x44a9e0[_0x38c53a('0x9f1')][_0x38c53a('0x1cec')],_0x1f3a98,_0x3173a1);},_0x2e626b[_0x171965('0xe8f')]=function(_0x3b75bb){var _0x125c7d=_0x171965,_0x3a046a=_0x125c7d('0x2f62');return new _0x2e626b(_0x44a9e0[_0x125c7d('0x9f1')][_0x125c7d('0x20d4')],_0x3a046a,_0x3b75bb);},_0x2e626b[_0x171965('0xe08')]=function(_0x1a94a0){var _0x5f2516=_0x171965,_0xb5c5de=_0x5f2516('0x2945');return new _0x2e626b(_0x44a9e0['RejectType']['ERROR'],_0xb5c5de,_0x1a94a0);},_0x2e626b[_0x171965('0x801')]=function(_0x58a854){var _0x54e9d8=_0x171965;return _0x3d3db3(_0x2e626b)(_0x58a854)?_0x58a854:_0x2e626b[_0x54e9d8('0xe08')](_0x58a854);},_0x2e626b[_0x171965('0x5a')]['toString']=function(){var _0x62f45c=_0x171965,_0x5a217b,_0x1a8c63=(_0x5a217b=this['detail'])&&_0x5a217b['toString']!==Object[_0x62f45c('0x5a')][_0x62f45c('0x6ef')]?_0x5a217b[_0x62f45c('0x6ef')]():_0x21554a(_0x5a217b),_0x54cc34=this;return _0x62f45c('0x37e9')+_0x54cc34[_0x62f45c('0x28bf')]+_0x62f45c('0x12af')+_0x54cc34[_0x62f45c('0x21a5')]+_0x62f45c('0xf2a')+_0x54cc34[_0x62f45c('0x3273')]+_0x62f45c('0x2e54')+_0x1a8c63+')';},_0x2e626b[_0x171965('0x5a')][_0x171965('0x2c8f')]=function(){return _0x45ee70(_0x2e1b24(this),{'_transitionRejection':this});},_0x2e626b;}();function _0x1e0a7f(_0x3aa52a,_0x2cd300){var _0x168f72=_0x2877f5;return _0x2cd300['length']<=_0x3aa52a?_0x2cd300:_0x2cd300[_0x168f72('0x3102')](0x0,_0x3aa52a-0x3)+'...';}function _0x1e58a0(_0x1b2bcc,_0x123734){var _0x544ab6=_0x2877f5;for(;_0x123734[_0x544ab6('0x175a')]<_0x1b2bcc;)_0x123734+='\x20';return _0x123734;}function _0x250bbc(_0x204e7e){var _0x106d9d=_0x2877f5;return _0x204e7e[_0x106d9d('0x34c8')](/^([A-Z])/,function(_0x2bbb3c){var _0x281889=_0x106d9d;return _0x2bbb3c[_0x281889('0x856')]();})[_0x106d9d('0x34c8')](/([A-Z])/g,function(_0x579593){return'-'+_0x579593['toLowerCase']();});}function _0x2eb97f(_0x314dad){var _0x2a5c99=_0x2877f5,_0x34ad09=_0x271eb3(_0x314dad),_0x339b98=_0x34ad09['match'](/^(function [^ ]+\([^)]*\))/),_0x1b8f20=_0x339b98?_0x339b98[0x1]:_0x34ad09,_0x1b33dc=_0x314dad[_0x2a5c99('0x455')]||'';return _0x1b33dc&&_0x1b8f20[_0x2a5c99('0x21ae')](/function \(/)?_0x2a5c99('0xd08')+_0x1b33dc+_0x1b8f20[_0x2a5c99('0x3102')](0x9):_0x1b8f20;}function _0x271eb3(_0xaee4e2){var _0x19076d=_0x2877f5,_0xa1a508=_0x49ad08(_0xaee4e2)?_0xaee4e2[_0x19076d('0x2c0a')](-0x1)[0x0]:_0xaee4e2;return _0xa1a508&&_0xa1a508[_0x19076d('0x6ef')]()||'undefined';}var _0x40814b=_0x250c92[_0x2877f5('0x30a1')],_0x59ac27=function(_0x27d868){var _0x36d1f4=_0x2877f5;return _0x50b2a7(_0x27d868)&&!_0x49ad08(_0x27d868)&&_0x27d868[_0x36d1f4('0xfc5')]!==Object&&_0x27da05(_0x27d868[_0x36d1f4('0x6ef')]);},_0x387fcb=_0x449885([[_0x1d472c,_0x288ab9('undefined')],[_0x4d7641,_0x288ab9(_0x2877f5('0x14b5'))],[_0x3aced7,_0x288ab9(_0x2877f5('0x2784'))],[_0x40814b,function(_0x264cde){var _0x5cefc6=_0x2877f5;return _0x264cde[_0x5cefc6('0x1252')][_0x5cefc6('0x6ef')]();}],[_0x59ac27,function(_0x2e12fd){var _0x2cdb12=_0x2877f5;return _0x2e12fd[_0x2cdb12('0x6ef')]();}],[_0x14a074,_0x2eb97f],[_0x288ab9(!0x0),_0x4acb32]]);function _0x21554a(_0x5a1e97){var _0x1cd062=_0x2877f5,_0x4aa29c=[];function _0x3d3cd8(_0x11e33a){var _0x4cabcc=a2_0x4bfe;if(_0x50b2a7(_0x11e33a)){if(-0x1!==_0x4aa29c[_0x4cabcc('0xe1c')](_0x11e33a))return'[circular\x20ref]';_0x4aa29c[_0x4cabcc('0x1a90')](_0x11e33a);}return _0x387fcb(_0x11e33a);}return _0x1d472c(_0x5a1e97)?_0x3d3cd8(_0x5a1e97):JSON['stringify'](_0x5a1e97,function(_0x52381f,_0x3bf551){return _0x3d3cd8(_0x3bf551);})[_0x1cd062('0x34c8')](/\\"/g,'\x22');}var _0x565a68=function(_0x5d18b0){return function(_0x3cc44d){var _0x42263c=a2_0x4bfe;if(!_0x3cc44d)return['',''];var _0x35f3ca=_0x3cc44d[_0x42263c('0xe1c')](_0x5d18b0);return-0x1===_0x35f3ca?[_0x3cc44d,'']:[_0x3cc44d['substr'](0x0,_0x35f3ca),_0x3cc44d[_0x42263c('0x3102')](_0x35f3ca+0x1)];};},_0x307493=new RegExp('^(?:[a-z]+:)?//[^/]+/'),_0x12b18b=function(_0x388f51){var _0x4ebf02=_0x2877f5;return _0x388f51[_0x4ebf02('0x34c8')](/\/[^/]*$/,'');},_0x477382=_0x565a68('#'),_0x1296c0=_0x565a68('?'),_0x212dcb=_0x565a68('='),_0x2d1e65=function(_0x2bc416){var _0x138e46=_0x2877f5;return _0x2bc416?_0x2bc416[_0x138e46('0x34c8')](/^#/,''):'';};function _0x19099c(_0x5c0ab0){var _0x2c2c54=new RegExp('('+_0x5c0ab0+')','g');return function(_0x310399){var _0x2d466d=a2_0x4bfe;return _0x310399[_0x2d466d('0x23ee')](_0x2c2c54)[_0x2d466d('0x3127')](_0x4acb32);};}function _0x3bf27c(_0x658abb,_0x138355){return _0x3f2c2e(_0x142905(_0x658abb))&&_0x3f2c2e(_0x138355)?_0x658abb['slice'](0x0,-0x1)['concat'](_0x142905(_0x658abb)+_0x138355):_0x5056ca(_0x658abb,_0x138355);}var _0x3e0fe6={'log':_0x2ab390,'error':_0x2ab390,'table':_0x2ab390};function _0x3f3ec3(_0x1aa24a){var _0x5b3996=_0x2877f5,_0x2c5388=function(_0x5dd7b6){var _0x23f0ec=a2_0x4bfe;return Function[_0x23f0ec('0x5a')][_0x23f0ec('0x1ecd')][_0x23f0ec('0x2449')](_0x5dd7b6,_0x1aa24a);};return{'log':_0x2c5388(_0x1aa24a[_0x5b3996('0xe46')]),'error':_0x2c5388(_0x1aa24a['log']),'table':_0x2c5388(_0x1aa24a['log'])};}function _0x4c9544(_0x4be59d){var _0x1c561e=_0x2877f5,_0x3d2743=_0x4be59d[_0x1c561e('0xe46')]['bind'](_0x4be59d);return{'log':_0x3d2743,'error':_0x4be59d[_0x1c561e('0x2534')]?_0x4be59d[_0x1c561e('0x2534')]['bind'](_0x4be59d):_0x3d2743,'table':_0x4be59d[_0x1c561e('0x1339')]?_0x4be59d[_0x1c561e('0x1339')][_0x1c561e('0x1ecd')](_0x4be59d):_0x3d2743};}function _0xd3224f(){var _0x72d328=_0x2877f5;return _0x72d328('0x9d1')!=typeof document&&document['documentMode']&&0x9===document[_0x72d328('0x2320')]?window&&window[_0x72d328('0xe0c')]?_0x3f3ec3(window[_0x72d328('0xe0c')]):_0x3e0fe6:console[_0x72d328('0x1339')]&&console[_0x72d328('0x2534')]?console:_0x4c9544(console);}var _0xa882c6=_0xd3224f();function _0x434f5f(_0x5ac622){var _0x54ad32=_0x2877f5;if(!_0x5ac622)return _0x54ad32('0x2635');var _0x4214e2=_0x5ac622[_0x54ad32('0x3473')]?_0x5ac622[_0x54ad32('0x3473')][_0x54ad32('0x455')]||_0x54ad32('0xd32'):_0x54ad32('0xa69');return _0x54ad32('0xb7d')+_0x5ac622['id']+'\x20'+_0x5ac622['$type']+':'+_0x5ac622[_0x54ad32('0x324f')]+'\x20('+_0x5ac622['name']+'@'+_0x4214e2+')]';}var _0x10e62e,_0x3e6f0b=function(_0x38a3e9){var _0x22bb9c=_0x2877f5,_0x5c0a7f=_0x38a3e9[_0x22bb9c('0x3681')],_0x3f0dcf=_0x5c0a7f[_0x22bb9c('0x1df5')][_0x22bb9c('0x455')]||_0x22bb9c('0xd32');return'[View#'+_0x38a3e9[_0x22bb9c('0x28bf')]+'\x20from\x20\x27'+_0x3f0dcf+'\x27\x20state]:\x20target\x20ui-view:\x20\x27'+_0x5c0a7f['$uiViewName']+'@'+_0x5c0a7f['$uiViewContextAnchor']+'\x27';};function _0x3872e8(_0x43272f){var _0x576085=_0x2877f5;return _0x3b8221(_0x43272f)?_0x44a9e0['Category'][_0x43272f]:_0x44a9e0[_0x576085('0x2298')][_0x44a9e0[_0x576085('0x2298')][_0x43272f]];}(_0x10e62e=_0x44a9e0[_0x2877f5('0x2298')]||(_0x44a9e0[_0x2877f5('0x2298')]={}))[_0x10e62e[_0x2877f5('0x1937')]=0x0]=_0x2877f5('0x1937'),_0x10e62e[_0x10e62e['TRANSITION']=0x1]=_0x2877f5('0x3f7'),_0x10e62e[_0x10e62e[_0x2877f5('0x354e')]=0x2]=_0x2877f5('0x354e'),_0x10e62e[_0x10e62e['UIVIEW']=0x3]=_0x2877f5('0x686'),_0x10e62e[_0x10e62e['VIEWCONFIG']=0x4]=_0x2877f5('0x3045');var _0xcb9b16=_0x58a1b9('$id'),_0x222eff=_0x58a1b9(_0x2877f5('0x32aa')),_0x321171=function(_0xc6c87b){var _0x5358a2=_0x2877f5;return _0x5358a2('0x442')+_0xcb9b16(_0xc6c87b)+'-'+_0x222eff(_0xc6c87b);},_0xb035d6=function(){var _0x32de77=_0x2877f5;function _0x6033ca(){var _0x2e7c92=a2_0x4bfe;this[_0x2e7c92('0x1712')]={},this[_0x2e7c92('0x26bb')]=0x0;}return _0x6033ca['prototype'][_0x32de77('0xf4')]=function(_0x3d40bf,_0x3b2bfc){var _0x30c472=_0x32de77,_0x2a158d=this;_0x3b2bfc[_0x30c472('0x175a')]||(_0x3b2bfc=Object[_0x30c472('0x1a3f')](_0x44a9e0[_0x30c472('0x2298')])['map'](function(_0x4cbb8c){return parseInt(_0x4cbb8c,0xa);})[_0x30c472('0x3127')](function(_0x516fc8){return!isNaN(_0x516fc8);})[_0x30c472('0x2d86')](function(_0x32a726){var _0x53385b=_0x30c472;return _0x44a9e0[_0x53385b('0x2298')][_0x32a726];})),_0x3b2bfc[_0x30c472('0x2d86')](_0x3872e8)[_0x30c472('0x247d')](function(_0x5560e2){var _0x42bb78=_0x30c472;return _0x2a158d[_0x42bb78('0x1712')][_0x5560e2]=_0x3d40bf;});},_0x6033ca[_0x32de77('0x5a')]['enable']=function(){var _0x201582=_0x32de77;for(var _0x1b4b00=[],_0x19b5e8=0x0;_0x19b5e8\x20'+_0x21554a(_0x414c3a));},_0x6033ca[_0x32de77('0x5a')][_0x32de77('0x139b')]=function(_0x12b9b){var _0x16c250=_0x32de77;this['enabled'](_0x44a9e0[_0x16c250('0x2298')][_0x16c250('0x3f7')])&&_0xa882c6[_0x16c250('0xe46')](_0x321171(_0x12b9b)+_0x16c250('0x38de')+_0x21554a(_0x12b9b));},_0x6033ca[_0x32de77('0x5a')][_0x32de77('0x23da')]=function(_0x4845fc,_0x4337ce,_0x5146b9){var _0x332ad5=_0x32de77;if(this['enabled'](_0x44a9e0['Category'][_0x332ad5('0x354e')])){var _0x3e70a4=_0x58a1b9(_0x332ad5('0x20d5'))(_0x5146b9)||_0x332ad5('0x2373'),_0x40fa14=_0x58a1b9(_0x332ad5('0x22ee'))(_0x5146b9)||_0x58a1b9(_0x332ad5('0x25c6'))(_0x5146b9)||'unknown',_0x4df0df=_0x2eb97f(_0x4845fc[_0x332ad5('0x2df7')]['callback']);_0xa882c6[_0x332ad5('0xe46')](_0x321171(_0x4337ce)+_0x332ad5('0x70e')+_0x3e70a4+_0x332ad5('0x32a8')+_0x40fa14+',\x20'+_0x1e0a7f(0xc8,_0x4df0df));}},_0x6033ca[_0x32de77('0x5a')][_0x32de77('0x3461')]=function(_0x491b60,_0xb55c80,_0x1aa8e3){var _0x4f59e8=_0x32de77;this[_0x4f59e8('0x25f9')](_0x44a9e0[_0x4f59e8('0x2298')][_0x4f59e8('0x354e')])&&_0xa882c6['log'](_0x321171(_0xb55c80)+':\x20\x20\x20<-\x20Hook\x20returned:\x20'+_0x1e0a7f(0xc8,_0x21554a(_0x491b60)));},_0x6033ca[_0x32de77('0x5a')][_0x32de77('0xe04')]=function(_0x3e0664,_0x4218f3,_0x16ed30){var _0x415d04=_0x32de77;this[_0x415d04('0x25f9')](_0x44a9e0[_0x415d04('0x2298')][_0x415d04('0x1937')])&&_0xa882c6[_0x415d04('0xe46')](_0x321171(_0x16ed30)+_0x415d04('0x3970')+_0x3e0664+'\x20('+_0x4218f3+')');},_0x6033ca[_0x32de77('0x5a')]['traceResolvableResolved']=function(_0x4895d4,_0x9236c8){var _0xda86a8=_0x32de77;this[_0xda86a8('0x25f9')](_0x44a9e0[_0xda86a8('0x2298')][_0xda86a8('0x1937')])&&_0xa882c6[_0xda86a8('0xe46')](_0x321171(_0x9236c8)+_0xda86a8('0x19cb')+_0x4895d4+'\x20to:\x20'+_0x1e0a7f(0xc8,_0x21554a(_0x4895d4[_0xda86a8('0xcee')])));},_0x6033ca['prototype'][_0x32de77('0x3a')]=function(_0x555e4f,_0xb046df){var _0x267507=_0x32de77;this[_0x267507('0x25f9')](_0x44a9e0[_0x267507('0x2298')][_0x267507('0x3f7')])&&_0xa882c6[_0x267507('0xe46')](_0x321171(_0xb046df)+_0x267507('0x1acc')+_0x21554a(_0xb046df)+_0x267507('0x1a2d')+_0x555e4f);},_0x6033ca['prototype'][_0x32de77('0x1504')]=function(_0x15f6dd,_0x20cd49){var _0x567c1e=_0x32de77;this['enabled'](_0x44a9e0[_0x567c1e('0x2298')][_0x567c1e('0x3f7')])&&_0xa882c6[_0x567c1e('0xe46')](_0x321171(_0x20cd49)+_0x567c1e('0x397')+_0x21554a(_0x20cd49)+_0x567c1e('0x1d8e')+_0x15f6dd['name']);},_0x6033ca[_0x32de77('0x5a')][_0x32de77('0x2e3f')]=function(_0x25dad1,_0x5c5300,_0x37f1b5){var _0x2995f1=_0x32de77;void 0x0===_0x37f1b5&&(_0x37f1b5=''),this[_0x2995f1('0x25f9')](_0x44a9e0[_0x2995f1('0x2298')][_0x2995f1('0x686')])&&_0xa882c6[_0x2995f1('0xe46')]('ui-view:\x20'+_0x1e58a0(0x1e,_0x25dad1)+'\x20'+_0x434f5f(_0x5c5300)+_0x37f1b5);},_0x6033ca[_0x32de77('0x5a')][_0x32de77('0x1299')]=function(_0x263550,_0x2379ce){var _0x51c2d5=_0x32de77;this[_0x51c2d5('0x25f9')](_0x44a9e0['Category'][_0x51c2d5('0x686')])&&this[_0x51c2d5('0x2e3f')](_0x51c2d5('0x39a1'),_0x263550,_0x51c2d5('0x21c7')+_0x2379ce+'\x27');},_0x6033ca['prototype']['traceUIViewFill']=function(_0x58ea45,_0x137b2f){var _0x3a9d76=_0x32de77;this[_0x3a9d76('0x25f9')](_0x44a9e0['Category']['UIVIEW'])&&this[_0x3a9d76('0x2e3f')](_0x3a9d76('0x2126'),_0x58ea45,_0x3a9d76('0xd60')+_0x1e0a7f(0xc8,_0x137b2f));},_0x6033ca[_0x32de77('0x5a')][_0x32de77('0x47f')]=function(_0x37e284){var _0x3f8bad=_0x32de77;if(this[_0x3f8bad('0x25f9')](_0x44a9e0['Category'][_0x3f8bad('0x3045')])){var _0x31df06=_0x3f8bad('0x28ee'),_0x146712='view\x20config\x20state\x20(view\x20name)',_0x452cce=_0x37e284[_0x3f8bad('0x2d86')](function(_0xa2360b){var _0x146e3b=_0x3f8bad,_0xe40d14,_0x381b8b=_0xa2360b[_0x146e3b('0x91b')],_0x2621c6=_0xa2360b[_0x146e3b('0x1a57')],_0x54626f=_0x381b8b&&_0x381b8b[_0x146e3b('0x324f')],_0x39d9e9=_0x2621c6&&_0x2621c6[_0x146e3b('0x3681')]['$context'][_0x146e3b('0x455')]+_0x146e3b('0x2dd8')+_0x2621c6['viewDecl'][_0x146e3b('0x1183')]+')';return(_0xe40d14={})[_0x31df06]=_0x54626f,_0xe40d14[_0x146712]=_0x39d9e9,_0xe40d14;})['sort'](function(_0x94689b,_0x1c15ba){return(_0x94689b[_0x31df06]||'')['localeCompare'](_0x1c15ba[_0x31df06]||'');});_0xa882c6['table'](_0x452cce);}},_0x6033ca['prototype'][_0x32de77('0x1615')]=function(_0x2b032e,_0x2f93c5){var _0x2f4494=_0x32de77;this[_0x2f4494('0x25f9')](_0x44a9e0['Category'][_0x2f4494('0x3045')])&&_0xa882c6[_0x2f4494('0xe46')](_0x2f4494('0x3673')+_0x2b032e+'\x20'+_0x3e6f0b(_0x2f93c5));},_0x6033ca['prototype'][_0x32de77('0x2b2b')]=function(_0x2b1274,_0x36e192){var _0x45a227=_0x32de77;this['enabled'](_0x44a9e0[_0x45a227('0x2298')]['VIEWCONFIG'])&&_0xa882c6[_0x45a227('0xe46')](_0x45a227('0x3673')+_0x2b1274+'\x20'+_0x434f5f(_0x36e192));},_0x6033ca;}(),_0x59472f=new _0xb035d6(),_0x462dfb=function(){var _0x89a228=_0x2877f5;function _0x75da87(_0x1dc407){this['pattern']=/.*/,this['inherit']=!0x0,_0x45ee70(this,_0x1dc407);}return _0x75da87[_0x89a228('0x5a')]['is']=function(_0x26f596,_0x5938b0){return!0x0;},_0x75da87[_0x89a228('0x5a')][_0x89a228('0x3773')]=function(_0x9414b3,_0x6d80bc){return _0x9414b3;},_0x75da87[_0x89a228('0x5a')]['decode']=function(_0xf8e433,_0x5a4c98){return _0xf8e433;},_0x75da87['prototype']['equals']=function(_0x50c027,_0x4a50d9){return _0x50c027==_0x4a50d9;},_0x75da87[_0x89a228('0x5a')][_0x89a228('0x1c26')]=function(){var _0x37934d=_0x89a228,_0x16ff44=this[_0x37934d('0x2eb1')][_0x37934d('0x6ef')]();return _0x16ff44[_0x37934d('0x3102')](0x1,_0x16ff44[_0x37934d('0x175a')]-0x2);},_0x75da87[_0x89a228('0x5a')][_0x89a228('0x6ef')]=function(){var _0x193170=_0x89a228;return _0x193170('0x7a4')+this['name']+'}';},_0x75da87[_0x89a228('0x5a')][_0x89a228('0x318b')]=function(_0x2cb910){var _0x163f8c=_0x89a228;return this['is'](_0x2cb910)?_0x2cb910:this[_0x163f8c('0xab1')](_0x2cb910);},_0x75da87['prototype'][_0x89a228('0x30bb')]=function(_0x5a41ca,_0x10b8c7){var _0x212d38=_0x89a228;if(!_0x5a41ca)return this;if(_0x212d38('0x1ae7')===_0x5a41ca&&!_0x10b8c7)throw new Error(_0x212d38('0x1925'));return new _0x2174c6(this,_0x5a41ca);},_0x75da87;}();function _0x2174c6(_0x172a15,_0x5579af){var _0x4881bf=_0x2877f5,_0xb5666b=this;function _0xf91258(_0x73f409){return _0x49ad08(_0x73f409)?_0x73f409:_0x417a63(_0x73f409)?[_0x73f409]:[];}function _0x3905d1(_0xf84bd9){var _0x3ebaf2=a2_0x4bfe;switch(_0xf84bd9[_0x3ebaf2('0x175a')]){case 0x0:return;case 0x1:return _0x3ebaf2('0x1ae7')===_0x5579af?_0xf84bd9[0x0]:_0xf84bd9;default:return _0xf84bd9;}}function _0x493131(_0x325020,_0x2d2540){return function(_0x2bcb11){var _0x4349f4=a2_0x4bfe;if(_0x49ad08(_0x2bcb11)&&0x0===_0x2bcb11[_0x4349f4('0x175a')])return _0x2bcb11;var _0x50bcbe=_0x51960c(_0xf91258(_0x2bcb11),_0x325020);return!0x0===_0x2d2540?0x0===_0x446b5b(_0x50bcbe,function(_0x35e790){return!_0x35e790;})[_0x4349f4('0x175a')]:_0x3905d1(_0x50bcbe);};}function _0x25afe5(_0x30f980){return function(_0x2af17c,_0x36a726){var _0xcce94c=a2_0x4bfe,_0x2ad1b5=_0xf91258(_0x2af17c),_0x14b527=_0xf91258(_0x36a726);if(_0x2ad1b5[_0xcce94c('0x175a')]!==_0x14b527[_0xcce94c('0x175a')])return!0x1;for(var _0x5e6aa8=0x0;_0x5e6aa8<_0x2ad1b5[_0xcce94c('0x175a')];_0x5e6aa8++)if(!_0x30f980(_0x2ad1b5[_0x5e6aa8],_0x14b527[_0x5e6aa8]))return!0x1;return!0x0;};}[_0x4881bf('0x3773'),_0x4881bf('0xab1'),_0x4881bf('0xa9b'),_0x4881bf('0x318b')]['forEach'](function(_0x763eed){var _0x3e752c=_0x4881bf,_0x20c09a=_0x172a15[_0x763eed][_0x3e752c('0x1ecd')](_0x172a15),_0x3e65eb='equals'===_0x763eed?_0x25afe5:_0x493131;_0xb5666b[_0x763eed]=_0x3e65eb(_0x20c09a);}),_0x45ee70(this,{'dynamic':_0x172a15[_0x4881bf('0x31f4')],'name':_0x172a15['name'],'pattern':_0x172a15['pattern'],'inherit':_0x172a15[_0x4881bf('0xf40')],'raw':_0x172a15[_0x4881bf('0x18ca')],'is':_0x493131(_0x172a15['is']['bind'](_0x172a15),!0x0),'$arrayMode':_0x5579af});}var _0x1ea9fd,_0x5e6bad=Object['prototype'][_0x2877f5('0x1522')],_0x44ca5b=function(_0x1aa78f){var _0x214805=_0x2877f5;return 0x0===[_0x214805('0x248e'),'type',_0x214805('0x182f'),_0x214805('0x305'),_0x214805('0x31f4')][_0x214805('0x3127')](_0x5e6bad['bind'](_0x1aa78f||{}))['length'];};function _0x2f7cc6(_0x3fd890,_0x4054d4,_0x13baed){var _0x49ff09=_0x2877f5,_0x9f2650=!0x1===_0x13baed[_0x49ff09('0x1432')]&&_0x4054d4===_0x44a9e0[_0x49ff09('0x1499')]['SEARCH']||void 0x0,_0x1b5e43=_0x42a99f([_0x13baed[_0x49ff09('0x31f4')],_0x9f2650],_0x417a63),_0x43954a=_0x417a63(_0x1b5e43)?{'dynamic':_0x1b5e43}:{},_0x759978=_0x141688(_0x13baed&&_0x13baed[_0x49ff09('0x46e')]&&_0x13baed[_0x49ff09('0x46e')][_0x3fd890]);return _0x45ee70(_0x43954a,_0x759978);}function _0x141688(_0x263dd9){var _0x58c9b2=_0x2877f5;function _0x38c582(){var _0x2ad57a=a2_0x4bfe;return _0x263dd9[_0x2ad57a('0x248e')];}_0x263dd9=_0x44ca5b(_0x263dd9)?{'value':_0x263dd9}:_0x263dd9,_0x38c582[_0x58c9b2('0x2517')]=!0x0;var _0x1db91f=_0x14a074(_0x263dd9[_0x58c9b2('0x248e')])?_0x263dd9[_0x58c9b2('0x248e')]:_0x38c582;return _0x45ee70(_0x263dd9,{'$$fn':_0x1db91f});}function _0x5cb7e4(_0x2ed4eb,_0x1b436a,_0x6f95d2,_0x563a80,_0x561caf){var _0x122a68=_0x2877f5;if(_0x2ed4eb[_0x122a68('0x21a5')]&&_0x1b436a&&'string'!==_0x1b436a[_0x122a68('0x455')])throw new Error(_0x122a68('0x152c')+_0x563a80+_0x122a68('0x106d'));if(_0x2ed4eb[_0x122a68('0x21a5')]&&_0x1b436a&&_0x122a68('0x151d')===_0x1b436a[_0x122a68('0x455')]&&_0x561caf[_0x122a68('0x21a5')](_0x2ed4eb[_0x122a68('0x21a5')]))return _0x561caf[_0x122a68('0x21a5')](_0x2ed4eb['type']);if(_0x1b436a)return _0x1b436a;if(!_0x2ed4eb[_0x122a68('0x21a5')]){var _0x542874=_0x6f95d2===_0x44a9e0[_0x122a68('0x1499')][_0x122a68('0x2ffb')]?'any':_0x6f95d2===_0x44a9e0['DefType'][_0x122a68('0x3164')]?_0x122a68('0x75f'):_0x6f95d2===_0x44a9e0[_0x122a68('0x1499')][_0x122a68('0x345a')]?'query':_0x122a68('0x151d');return _0x561caf[_0x122a68('0x21a5')](_0x542874);}return _0x2ed4eb[_0x122a68('0x21a5')]instanceof _0x462dfb?_0x2ed4eb[_0x122a68('0x21a5')]:_0x561caf[_0x122a68('0x21a5')](_0x2ed4eb[_0x122a68('0x21a5')]);}function _0x341f21(_0x4c5774,_0x40b9ea,_0x499f9a){var _0x4e9b65=_0x2877f5,_0x3948a2=_0x4c5774['squash'];if(!_0x40b9ea||!0x1===_0x3948a2)return!0x1;if(!_0x417a63(_0x3948a2)||null==_0x3948a2)return _0x499f9a;if(!0x0===_0x3948a2||_0x3f2c2e(_0x3948a2))return _0x3948a2;throw new Error(_0x4e9b65('0x17e0')+_0x3948a2+_0x4e9b65('0x2330'));}function _0x35903c(_0x1bd0b4,_0x55d7ce,_0x298746,_0x3dbea6){var _0xa52c33=_0x2877f5,_0x47429c=[{'from':'','to':_0x298746||_0x55d7ce?void 0x0:''},{'from':null,'to':_0x298746||_0x55d7ce?void 0x0:''}],_0x509eff=_0x49ad08(_0x1bd0b4['replace'])?_0x1bd0b4[_0xa52c33('0x34c8')]:[];_0x3f2c2e(_0x3dbea6)&&_0x509eff[_0xa52c33('0x1a90')]({'from':_0x3dbea6,'to':void 0x0});var _0x165440=_0x51960c(_0x509eff,_0x4103e4(_0xa52c33('0x2f5')));return _0x446b5b(_0x47429c,function(_0x3cb5a0){var _0x2a7fff=_0xa52c33;return-0x1===_0x165440['indexOf'](_0x3cb5a0[_0x2a7fff('0x2f5')]);})[_0xa52c33('0x12b4')](_0x509eff);}(_0x1ea9fd=_0x44a9e0[_0x2877f5('0x1499')]||(_0x44a9e0[_0x2877f5('0x1499')]={}))[_0x1ea9fd[_0x2877f5('0x3164')]=0x0]=_0x2877f5('0x3164'),_0x1ea9fd[_0x1ea9fd[_0x2877f5('0x345a')]=0x1]=_0x2877f5('0x345a'),_0x1ea9fd[_0x1ea9fd[_0x2877f5('0x2ffb')]=0x2]=_0x2877f5('0x2ffb');var _0x48cf64=function(){var _0x59d9e5=_0x2877f5;function _0x55043d(_0x27ebd2,_0x2321da,_0x5ab5d0,_0x1003da,_0x48025b){var _0x49d6f5=a2_0x4bfe,_0x18cb0a=_0x2f7cc6(_0x27ebd2,_0x5ab5d0,_0x48025b);_0x2321da=_0x5cb7e4(_0x18cb0a,_0x2321da,_0x5ab5d0,_0x27ebd2,_0x1003da[_0x49d6f5('0x2fbe')]);var _0x168fda=_0x470e73();_0x2321da=_0x168fda?_0x2321da['$asArray'](_0x168fda,_0x5ab5d0===_0x44a9e0['DefType']['SEARCH']):_0x2321da;var _0x50fb6b=void 0x0!==_0x18cb0a[_0x49d6f5('0x248e')]||_0x5ab5d0===_0x44a9e0[_0x49d6f5('0x1499')]['SEARCH'],_0x1e08f8=_0x417a63(_0x18cb0a[_0x49d6f5('0x31f4')])?!!_0x18cb0a[_0x49d6f5('0x31f4')]:!!_0x2321da['dynamic'],_0x1db907=_0x417a63(_0x18cb0a[_0x49d6f5('0x18ca')])?!!_0x18cb0a[_0x49d6f5('0x18ca')]:!!_0x2321da['raw'],_0x22b59c=_0x341f21(_0x18cb0a,_0x50fb6b,_0x1003da[_0x49d6f5('0x105f')]()),_0x1826f0=_0x35903c(_0x18cb0a,_0x168fda,_0x50fb6b,_0x22b59c),_0x433cb7=_0x417a63(_0x18cb0a[_0x49d6f5('0xf40')])?!!_0x18cb0a[_0x49d6f5('0xf40')]:!!_0x2321da['inherit'];function _0x470e73(){var _0x3c982d=_0x49d6f5,_0x4c862c={'array':_0x5ab5d0===_0x44a9e0[_0x3c982d('0x1499')]['SEARCH']&&_0x3c982d('0x1ae7')},_0x307467=_0x27ebd2['match'](/\[\]$/)?{'array':!0x0}:{};return _0x45ee70(_0x4c862c,_0x307467,_0x18cb0a)['array'];}_0x45ee70(this,{'id':_0x27ebd2,'type':_0x2321da,'location':_0x5ab5d0,'isOptional':_0x50fb6b,'dynamic':_0x1e08f8,'raw':_0x1db907,'squash':_0x22b59c,'replace':_0x1826f0,'inherit':_0x433cb7,'array':_0x168fda,'config':_0x18cb0a});}return _0x55043d['values']=function(_0x4c1003,_0x38db01){var _0xdfd542=a2_0x4bfe;void 0x0===_0x38db01&&(_0x38db01={});for(var _0x1b6735={},_0x30e3a4=0x0,_0x10683f=_0x4c1003;_0x30e3a4<_0x10683f[_0xdfd542('0x175a')];_0x30e3a4++){var _0x1cbebb=_0x10683f[_0x30e3a4];_0x1b6735[_0x1cbebb['id']]=_0x1cbebb['value'](_0x38db01[_0x1cbebb['id']]);}return _0x1b6735;},_0x55043d['changed']=function(_0x2dd5e6,_0x4e117c,_0x488b0f){return void 0x0===_0x4e117c&&(_0x4e117c={}),void 0x0===_0x488b0f&&(_0x488b0f={}),_0x2dd5e6['filter'](function(_0x3fc806){var _0x38800a=a2_0x4bfe;return!_0x3fc806[_0x38800a('0x21a5')][_0x38800a('0xa9b')](_0x4e117c[_0x3fc806['id']],_0x488b0f[_0x3fc806['id']]);});},_0x55043d[_0x59d9e5('0xa9b')]=function(_0x46104e,_0x257263,_0x5391c3){var _0x13de68=_0x59d9e5;return void 0x0===_0x257263&&(_0x257263={}),void 0x0===_0x5391c3&&(_0x5391c3={}),0x0===_0x55043d[_0x13de68('0x3259')](_0x46104e,_0x257263,_0x5391c3)[_0x13de68('0x175a')];},_0x55043d[_0x59d9e5('0x2937')]=function(_0x2e90b9,_0x578400){var _0x2ea8c0=_0x59d9e5;return void 0x0===_0x578400&&(_0x578400={}),_0x2e90b9[_0x2ea8c0('0x2d86')](function(_0x2454ad){var _0x3d478e=_0x2ea8c0;return _0x2454ad[_0x3d478e('0x2937')](_0x578400[_0x2454ad['id']]);})[_0x2ea8c0('0x33b0')](_0x13419c,!0x0);},_0x55043d[_0x59d9e5('0x5a')][_0x59d9e5('0x1bd1')]=function(_0x44f6af){var _0x46a8f4=_0x59d9e5;return this[_0x46a8f4('0xd6a')]&&this[_0x46a8f4('0x21a5')]['equals'](this[_0x46a8f4('0x248e')](),_0x44f6af);},_0x55043d['prototype'][_0x59d9e5('0x248e')]=function(_0x15e84d){var _0x1cb334=_0x59d9e5,_0x1d61ef=this,_0x176223=function(){var _0xe74b67=a2_0x4bfe;if(_0x1d61ef[_0xe74b67('0x19f5')])return _0x1d61ef[_0xe74b67('0x19f5')][_0xe74b67('0x1160')];if(!_0x18a5ff[_0xe74b67('0x345b')])throw new Error(_0xe74b67('0x1771'));var _0x15fca6=_0x18a5ff[_0xe74b67('0x345b')][_0xe74b67('0x3845')](_0x1d61ef[_0xe74b67('0x3486')]['$$fn']);if(null!=_0x15fca6&&!_0x1d61ef['type']['is'](_0x15fca6))throw new Error(_0xe74b67('0x1006')+_0x15fca6+_0xe74b67('0x3657')+_0x1d61ef['id']+_0xe74b67('0x52d')+_0x1d61ef['type'][_0xe74b67('0x455')]+')');return _0x1d61ef[_0xe74b67('0x3486')][_0xe74b67('0x208d')]['__cacheable']&&(_0x1d61ef['_defaultValueCache']={'defaultValue':_0x15fca6}),_0x15fca6;};return _0x15e84d=function(_0x1a8ae7){var _0x5d9cd2=a2_0x4bfe;for(var _0x23118a=0x0,_0x409ca6=_0x1d61ef[_0x5d9cd2('0x34c8')];_0x23118a<_0x409ca6[_0x5d9cd2('0x175a')];_0x23118a++){var _0x517af6=_0x409ca6[_0x23118a];if(_0x517af6[_0x5d9cd2('0x2f5')]===_0x1a8ae7)return _0x517af6['to'];}return _0x1a8ae7;}(_0x15e84d),_0x1d472c(_0x15e84d)?_0x176223():this[_0x1cb334('0x21a5')][_0x1cb334('0x318b')](_0x15e84d);},_0x55043d[_0x59d9e5('0x5a')][_0x59d9e5('0x917')]=function(){var _0x383953=_0x59d9e5;return this[_0x383953('0x12')]===_0x44a9e0[_0x383953('0x1499')]['SEARCH'];},_0x55043d[_0x59d9e5('0x5a')]['validates']=function(_0x17a882){var _0x56790e=_0x59d9e5;if((_0x1d472c(_0x17a882)||null===_0x17a882)&&this[_0x56790e('0xd6a')])return!0x0;var _0x29e8c0=this[_0x56790e('0x21a5')][_0x56790e('0x318b')](_0x17a882);if(!this[_0x56790e('0x21a5')]['is'](_0x29e8c0))return!0x1;var _0x1eaaab=this[_0x56790e('0x21a5')][_0x56790e('0x3773')](_0x29e8c0);return!(_0x3f2c2e(_0x1eaaab)&&!this[_0x56790e('0x21a5')]['pattern'][_0x56790e('0x27cd')](_0x1eaaab));},_0x55043d[_0x59d9e5('0x5a')][_0x59d9e5('0x6ef')]=function(){var _0x42db4b=_0x59d9e5;return'{Param:'+this['id']+'\x20'+this[_0x42db4b('0x21a5')]+_0x42db4b('0x2c7c')+this[_0x42db4b('0x182f')]+_0x42db4b('0x37bf')+this[_0x42db4b('0xd6a')]+'}';},_0x55043d;}(),_0x228411=function(){var _0x41d888=_0x2877f5;function _0x328f1a(){var _0x9fff88=a2_0x4bfe;this[_0x9fff88('0x25fb')]=!0x0,this['typeQueue']=[],this['defaultTypes']=_0x23cd83(_0x328f1a[_0x9fff88('0x5a')],[_0x9fff88('0x206a'),_0x9fff88('0x151d'),'query',_0x9fff88('0x75f'),_0x9fff88('0x81f'),_0x9fff88('0x2d4d'),_0x9fff88('0x1408'),'json',_0x9fff88('0x268b')]);var _0x9470d7=function(_0x5caf7d,_0x207109){return new _0x462dfb(_0x45ee70({'name':_0x207109},_0x5caf7d));};this['types']=_0x4e6d69(_0x51960c(this[_0x9fff88('0x362e')],_0x9470d7),{});}return _0x328f1a[_0x41d888('0x5a')][_0x41d888('0x38af')]=function(){var _0x13efc2=_0x41d888;this[_0x13efc2('0x19d5')]={};},_0x328f1a[_0x41d888('0x5a')][_0x41d888('0x21a5')]=function(_0x3ccb00,_0x2cdad1,_0x14bf12){var _0x1eb129=_0x41d888;if(!_0x417a63(_0x2cdad1))return this['types'][_0x3ccb00];if(this[_0x1eb129('0x19d5')][_0x1eb129('0x1522')](_0x3ccb00))throw new Error(_0x1eb129('0x12dd')+_0x3ccb00+_0x1eb129('0x2ade'));return this['types'][_0x3ccb00]=new _0x462dfb(_0x45ee70({'name':_0x3ccb00},_0x2cdad1)),_0x14bf12&&(this[_0x1eb129('0x2c14')][_0x1eb129('0x1a90')]({'name':_0x3ccb00,'def':_0x14bf12}),this['enqueue']||this[_0x1eb129('0x3611')]()),this;},_0x328f1a[_0x41d888('0x5a')][_0x41d888('0x3611')]=function(){var _0x1694b4=_0x41d888;for(;this[_0x1694b4('0x2c14')]['length'];){var _0xf509b8=this[_0x1694b4('0x2c14')][_0x1694b4('0x2967')]();if(_0xf509b8[_0x1694b4('0x2eb1')])throw new Error(_0x1694b4('0xe06'));_0x45ee70(this[_0x1694b4('0x19d5')][_0xf509b8[_0x1694b4('0x455')]],_0x18a5ff['$injector'][_0x1694b4('0x3845')](_0xf509b8[_0x1694b4('0x2f58')]));}},_0x328f1a;}();function _0x30491a(){var _0x56d769=function(_0x3dc2f4){var _0x333f72=function(_0x4f53fb){var _0x53b3db=a2_0x4bfe;return null!=_0x4f53fb?_0x4f53fb[_0x53b3db('0x6ef')]():_0x4f53fb;},_0x4d656e={'encode':_0x333f72,'decode':_0x333f72,'is':_0x3d3db3(String),'pattern':/.*/,'equals':function(_0x330e13,_0xc605dd){return _0x330e13==_0xc605dd;}};return _0x45ee70({},_0x4d656e,_0x3dc2f4);};_0x45ee70(_0x228411['prototype'],{'string':_0x56d769({}),'path':_0x56d769({'pattern':/[^/]*/}),'query':_0x56d769({}),'hash':_0x56d769({'inherit':!0x1}),'int':_0x56d769({'decode':function(_0x566c53){return parseInt(_0x566c53,0xa);},'is':function(_0x4072d3){var _0x16ce9e=a2_0x4bfe;return!_0xd9abc(_0x4072d3)&&this[_0x16ce9e('0xab1')](_0x4072d3[_0x16ce9e('0x6ef')]())===_0x4072d3;},'pattern':/-?\d+/}),'bool':_0x56d769({'encode':function(_0x38a2b8){return _0x38a2b8?0x1:0x0;},'decode':function(_0x2b5b0e){return 0x0!==parseInt(_0x2b5b0e,0xa);},'is':_0x3d3db3(Boolean),'pattern':/0|1/}),'date':_0x56d769({'encode':function(_0x29940c){var _0xda778f=a2_0x4bfe;return this['is'](_0x29940c)?[_0x29940c[_0xda778f('0x1ea3')](),('0'+(_0x29940c['getMonth']()+0x1))[_0xda778f('0x2c0a')](-0x2),('0'+_0x29940c[_0xda778f('0x521')]())['slice'](-0x2)][_0xda778f('0x6a8')]('-'):void 0x0;},'decode':function(_0x45f0c9){var _0x196b77=a2_0x4bfe;if(this['is'](_0x45f0c9))return _0x45f0c9;var _0x1df30d=this[_0x196b77('0x1a30')]['exec'](_0x45f0c9);return _0x1df30d?new Date(_0x1df30d[0x1],_0x1df30d[0x2]-0x1,_0x1df30d[0x3]):void 0x0;},'is':function(_0x55435d){var _0x24c26e=a2_0x4bfe;return _0x55435d instanceof Date&&!isNaN(_0x55435d[_0x24c26e('0xcde')]());},'equals':function(_0x1f744f,_0x31fb12){var _0x22b1fb=a2_0x4bfe;return[_0x22b1fb('0x1ea3'),_0x22b1fb('0x48b'),_0x22b1fb('0x521')][_0x22b1fb('0x33b0')](function(_0x5c19c9,_0x2d883e){return _0x5c19c9&&_0x1f744f[_0x2d883e]()===_0x31fb12[_0x2d883e]();},!0x0);},'pattern':/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,'capture':/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),'json':_0x56d769({'encode':_0x534786,'decode':_0x570ec9,'is':_0x3d3db3(Object),'equals':_0x571c7e,'pattern':/[^/]*/}),'any':_0x56d769({'encode':_0x4acb32,'decode':_0x4acb32,'is':function(){return!0x0;},'equals':_0x571c7e})});}_0x30491a();var _0x542b57=function(){function _0x4a35f6(_0x16a129){void 0x0===_0x16a129&&(_0x16a129={}),_0x45ee70(this,_0x16a129);}return _0x4a35f6['prototype']['$inherit']=function(_0x4e7e48,_0x52991c,_0x52cfe0){var _0x1cecef=a2_0x4bfe,_0x1d125e,_0x33e22d=_0x4b6e3c(_0x52991c,_0x52cfe0),_0x4ff0dd={},_0x55c185=[];for(var _0x3665c7 in _0x33e22d)if(_0x33e22d[_0x3665c7]&&_0x33e22d[_0x3665c7][_0x1cecef('0x46e')]&&(_0x1d125e=Object['keys'](_0x33e22d[_0x3665c7][_0x1cecef('0x46e')]))[_0x1cecef('0x175a')])for(var _0x5214ca in _0x1d125e)_0x55c185[_0x1cecef('0xe1c')](_0x1d125e[_0x5214ca])>=0x0||(_0x55c185['push'](_0x1d125e[_0x5214ca]),_0x4ff0dd[_0x1d125e[_0x5214ca]]=this[_0x1d125e[_0x5214ca]]);return _0x45ee70({},_0x4ff0dd,_0x4e7e48);},_0x4a35f6;}(),_0x37d081=function(){var _0x22e92b=_0x2877f5;function _0x277e61(_0xcebcfd){var _0xdd5d75=a2_0x4bfe;if(_0xcebcfd instanceof _0x277e61){var _0x41e681=_0xcebcfd;this[_0xdd5d75('0x380')]=_0x41e681[_0xdd5d75('0x380')],this[_0xdd5d75('0xe80')]=_0x41e681[_0xdd5d75('0xe80')]['slice'](),this[_0xdd5d75('0x236e')]=_0x45ee70({},_0x41e681[_0xdd5d75('0x236e')]),this[_0xdd5d75('0x102a')]=_0x41e681[_0xdd5d75('0x102a')][_0xdd5d75('0x2c0a')](),this[_0xdd5d75('0xe3a')]=_0x41e681[_0xdd5d75('0xe3a')]&&_0x41e681[_0xdd5d75('0xe3a')][_0xdd5d75('0x2c0a')]();}else{var _0x420354=_0xcebcfd;this[_0xdd5d75('0x380')]=_0x420354,this[_0xdd5d75('0xe80')]=_0x420354[_0xdd5d75('0x3549')]({'inherit':!0x1}),this[_0xdd5d75('0x236e')]={},this[_0xdd5d75('0x102a')]=_0x420354[_0xdd5d75('0x102a')][_0xdd5d75('0x2d86')](function(_0x16447a){var _0x3511aa=_0xdd5d75;return _0x16447a[_0x3511aa('0x859')]();});}}return _0x277e61[_0x22e92b('0x5a')][_0x22e92b('0x859')]=function(){return new _0x277e61(this);},_0x277e61[_0x22e92b('0x5a')][_0x22e92b('0x1425')]=function(_0x176116){var _0x197cfa=_0x22e92b,_0x5a7b34=function(_0x2eaa31){var _0x9f40f0=a2_0x4bfe;return[_0x2eaa31['id'],_0x2eaa31[_0x9f40f0('0x248e')](_0x176116[_0x2eaa31['id']])];};return this[_0x197cfa('0x236e')]=this[_0x197cfa('0xe80')][_0x197cfa('0x33b0')](function(_0x482cd7,_0xb17c0d){return _0xafdea(_0x482cd7,_0x5a7b34(_0xb17c0d));},{}),this;},_0x277e61[_0x22e92b('0x5a')][_0x22e92b('0x25f3')]=function(_0x4db510){var _0x3f9c07=_0x22e92b;return _0x42a99f(this[_0x3f9c07('0xe80')],_0x480afb('id',_0x4db510));},_0x277e61[_0x22e92b('0x5a')][_0x22e92b('0xa9b')]=function(_0x3c20b6,_0x298362){var _0x330392=_0x22e92b,_0x5cd607=this[_0x330392('0x2d82')](_0x3c20b6,_0x298362);return _0x5cd607&&0x0===_0x5cd607['length'];},_0x277e61[_0x22e92b('0x5a')][_0x22e92b('0x2d82')]=function(_0x24f289,_0x1e1ad4){var _0x4fac8f=_0x22e92b;if(this[_0x4fac8f('0x380')]!==_0x24f289['state'])return!0x1;var _0x92c864=_0x1e1ad4?_0x1e1ad4(this):this[_0x4fac8f('0xe80')];return _0x48cf64['changed'](_0x92c864,this[_0x4fac8f('0x236e')],_0x24f289[_0x4fac8f('0x236e')]);},_0x277e61[_0x22e92b('0x859')]=function(_0x293473){var _0x1ca1d5=_0x22e92b;return _0x293473[_0x1ca1d5('0x859')]();},_0x277e61;}(),_0x57c6a8=function(){var _0x376ba8=_0x2877f5;function _0x2864d5(_0x4eccf3,_0x181b3a,_0xe51ed5,_0x407d5a){var _0x3baa8f=a2_0x4bfe;this[_0x3baa8f('0x3238')]=_0x4eccf3,this[_0x3baa8f('0x14b7')]=_0x181b3a,this[_0x3baa8f('0x14b7')]=_0x181b3a,this[_0x3baa8f('0x1a59')]=_0x45ee70({},_0xe51ed5||{}),this[_0x3baa8f('0x1d2')]=_0x45ee70({},_0x407d5a||{}),this[_0x3baa8f('0x958')]=_0x4eccf3[_0x3baa8f('0x1382')][_0x3baa8f('0x16fd')](_0x181b3a,this['_options'][_0x3baa8f('0xf16')]);}return _0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0x455')]=function(){var _0x3f4f43=_0x376ba8;return this[_0x3f4f43('0x958')]&&this[_0x3f4f43('0x958')]['name']||this[_0x3f4f43('0x14b7')];},_0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0x306b')]=function(){var _0x40d50c=_0x376ba8;return this[_0x40d50c('0x14b7')];},_0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0x46e')]=function(){return this['_params'];},_0x2864d5[_0x376ba8('0x5a')]['$state']=function(){return this['_definition'];},_0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0x380')]=function(){var _0x352eec=_0x376ba8;return this[_0x352eec('0x958')]&&this[_0x352eec('0x958')][_0x352eec('0x1840')];},_0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0xded')]=function(){var _0x43350c=_0x376ba8;return this[_0x43350c('0x1d2')];},_0x2864d5[_0x376ba8('0x5a')]['exists']=function(){var _0x2fe6d6=_0x376ba8;return!(!this[_0x2fe6d6('0x958')]||!this[_0x2fe6d6('0x958')][_0x2fe6d6('0x1840')]);},_0x2864d5['prototype'][_0x376ba8('0x3852')]=function(){return!this['error']();},_0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0x2534')]=function(){var _0x5e7231=_0x376ba8,_0xc91e71=this[_0x5e7231('0xded')]()[_0x5e7231('0xf16')];if(!this[_0x5e7231('0x958')]&&_0xc91e71){var _0x489127=_0xc91e71[_0x5e7231('0x455')]?_0xc91e71[_0x5e7231('0x455')]:_0xc91e71;return _0x5e7231('0x5bc')+this[_0x5e7231('0x455')]()+_0x5e7231('0x1855')+_0x489127+'\x27';}return this[_0x5e7231('0x958')]?this['_definition'][_0x5e7231('0x1840')]?void 0x0:'State\x20\x27'+this['name']()+_0x5e7231('0x316'):_0x5e7231('0x1625')+this[_0x5e7231('0x455')]()+'\x27';},_0x2864d5[_0x376ba8('0x5a')]['toString']=function(){var _0x4a8bf7=_0x376ba8;return'\x27'+this[_0x4a8bf7('0x455')]()+'\x27'+_0x21554a(this[_0x4a8bf7('0x46e')]());},_0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0x2782')]=function(_0x2a307c){var _0x5a7684=_0x376ba8;return new _0x2864d5(this['_stateRegistry'],_0x2a307c,this['_params'],this[_0x5a7684('0x1d2')]);},_0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0xa76')]=function(_0x538366,_0x3c793e){var _0x1af616=_0x376ba8;void 0x0===_0x3c793e&&(_0x3c793e=!0x1);var _0x8ebdbd=_0x3c793e?_0x538366:_0x45ee70({},this[_0x1af616('0x1a59')],_0x538366);return new _0x2864d5(this[_0x1af616('0x3238')],this['_identifier'],_0x8ebdbd,this[_0x1af616('0x1d2')]);},_0x2864d5[_0x376ba8('0x5a')][_0x376ba8('0x30d7')]=function(_0x22a68a,_0x10d8a0){var _0x1c6a10=_0x376ba8;void 0x0===_0x10d8a0&&(_0x10d8a0=!0x1);var _0x49be72=_0x10d8a0?_0x22a68a:_0x45ee70({},this['_options'],_0x22a68a);return new _0x2864d5(this[_0x1c6a10('0x3238')],this['_identifier'],this['_params'],_0x49be72);},_0x2864d5[_0x376ba8('0xfb9')]=function(_0x3aaeb2){var _0x2e3cc8=_0x376ba8;return _0x3aaeb2&&_0x3aaeb2[_0x2e3cc8('0x380')]&&(_0x3f2c2e(_0x3aaeb2[_0x2e3cc8('0x380')])||_0x50b2a7(_0x3aaeb2[_0x2e3cc8('0x380')])&&_0x3f2c2e(_0x3aaeb2[_0x2e3cc8('0x380')]['name']));},_0x2864d5;}(),_0x56d648=function(){var _0x9df83b=_0x2877f5;function _0x4064a2(){}return _0x4064a2[_0x9df83b('0x39bd')]=function(_0x342e96,_0x55c518){var _0x3a9a6a=_0x9df83b,_0x55cf83=_0x142905(_0x55c518)['state'];return new _0x57c6a8(_0x342e96,_0x55cf83,_0x55c518['map'](_0x4103e4(_0x3a9a6a('0x236e')))[_0x3a9a6a('0x33b0')](_0x2d1fcb,{}),{});},_0x4064a2[_0x9df83b('0x2138')]=function(_0x1c2d5f){var _0x55bc17=_0x9df83b,_0xcfff8c=_0x1c2d5f[_0x55bc17('0x46e')]();return _0x1c2d5f[_0x55bc17('0x1f57')]()['path'][_0x55bc17('0x2d86')](function(_0x38db6c){var _0x4cda4e=_0x55bc17;return new _0x37d081(_0x38db6c)[_0x4cda4e('0x1425')](_0xcfff8c);});},_0x4064a2[_0x9df83b('0x30ad')]=function(_0x1273a8,_0x288a14){var _0xf94777=_0x9df83b,_0x21c454=_0x4064a2[_0xf94777('0x2138')](_0x288a14);return _0x288a14[_0xf94777('0xded')]()[_0xf94777('0xf40')]?_0x4064a2['inheritParams'](_0x1273a8,_0x21c454,Object[_0xf94777('0x1a3f')](_0x288a14['params']())):_0x21c454;},_0x4064a2['applyViewConfigs']=function(_0x2072be,_0x2049e8,_0x1c1d22){var _0xfe0e1e=_0x9df83b;_0x2049e8[_0xfe0e1e('0x3127')](function(_0x1e0b55){var _0x4a6357=_0xfe0e1e;return _0x3f84d6(_0x1c1d22,_0x1e0b55[_0x4a6357('0x380')]);})[_0xfe0e1e('0x247d')](function(_0x2d07b3){var _0x12883a=_0xfe0e1e,_0x1d2f2b=_0x5c51e9(_0x2d07b3[_0x12883a('0x380')][_0x12883a('0xe3a')]||{}),_0x5d9f90=_0x4064a2[_0x12883a('0x283')](_0x2049e8,function(_0x26e73a){return _0x26e73a===_0x2d07b3;}),_0x347f94=_0x1d2f2b[_0x12883a('0x2d86')](function(_0x682e57){var _0x2cf38a=_0x12883a;return _0x2072be[_0x2cf38a('0x1395')](_0x5d9f90,_0x682e57);});_0x2d07b3[_0x12883a('0xe3a')]=_0x347f94[_0x12883a('0x33b0')](_0x40987e,[]);});},_0x4064a2['inheritParams']=function(_0x3deb2c,_0x3e6c7c,_0x26f9ed){var _0x2c80bc=_0x9df83b;function _0x5b2ceb(_0xf2e1ac,_0x1a742b){var _0x114197=a2_0x4bfe,_0x245ff2=_0x42a99f(_0xf2e1ac,_0x480afb('state',_0x1a742b));return _0x45ee70({},_0x245ff2&&_0x245ff2[_0x114197('0x236e')]);}void 0x0===_0x26f9ed&&(_0x26f9ed=[]);var _0x4bf081=_0x3deb2c[_0x2c80bc('0x2d86')](function(_0x38606c){return _0x38606c['paramSchema'];})[_0x2c80bc('0x33b0')](_0x40987e,[])['filter'](function(_0x2fbb0d){var _0x3b48ef=_0x2c80bc;return!_0x2fbb0d[_0x3b48ef('0xf40')];})[_0x2c80bc('0x2d86')](_0x4103e4('id'));function _0x2fbc4e(_0x3bf0a8){var _0x2d5c8e=_0x2c80bc,_0x335470=_0x45ee70({},_0x3bf0a8&&_0x3bf0a8[_0x2d5c8e('0x236e')]),_0x2e61cf=_0x23cd83(_0x335470,_0x26f9ed);_0x335470=_0x4e416f(_0x335470,_0x26f9ed);var _0x267e97=_0x4e416f(_0x5b2ceb(_0x3deb2c,_0x3bf0a8[_0x2d5c8e('0x380')])||{},_0x4bf081),_0x3af036=_0x45ee70(_0x335470,_0x267e97,_0x2e61cf);return new _0x37d081(_0x3bf0a8['state'])['applyRawParams'](_0x3af036);}return _0x3e6c7c[_0x2c80bc('0x2d86')](_0x2fbc4e);},_0x4064a2[_0x9df83b('0x2fc7')]=function(_0x4b7159,_0x1c3e55,_0x4ee005){var _0x4d0d4a=_0x9df83b;for(var _0x2c7210,_0x18648e,_0x20bd8f,_0x4b5fa1,_0x10bbe1=Math[_0x4d0d4a('0x3230')](_0x4b7159[_0x4d0d4a('0x175a')],_0x1c3e55[_0x4d0d4a('0x175a')]),_0x393ebd=0x0,_0x36785e=function(_0xacb161,_0x11ac34){var _0x471c46=_0x4d0d4a;return _0xacb161[_0x471c46('0xa9b')](_0x11ac34,_0x4064a2[_0x471c46('0x2c36')]);};_0x393ebd<_0x10bbe1&&_0x4b7159[_0x393ebd][_0x4d0d4a('0x380')]!==_0x4ee005&&_0x36785e(_0x4b7159[_0x393ebd],_0x1c3e55[_0x393ebd]);)_0x393ebd++;function _0x417f7a(_0x6ce24d,_0x42b646){var _0x48c217=_0x4d0d4a,_0x192b3b=_0x6ce24d[_0x48c217('0x859')]();return _0x192b3b[_0x48c217('0x236e')]=_0x1c3e55[_0x42b646][_0x48c217('0x236e')],_0x192b3b;}_0x18648e=(_0x2c7210=_0x4b7159)['slice'](0x0,_0x393ebd),_0x20bd8f=_0x2c7210[_0x4d0d4a('0x2c0a')](_0x393ebd);var _0x14a414=_0x18648e[_0x4d0d4a('0x2d86')](_0x417f7a);return _0x4b5fa1=_0x1c3e55[_0x4d0d4a('0x2c0a')](_0x393ebd),{'from':_0x2c7210,'to':_0x14a414[_0x4d0d4a('0x12b4')](_0x4b5fa1),'retained':_0x18648e,'retainedWithToParams':_0x14a414,'exiting':_0x20bd8f,'entering':_0x4b5fa1};},_0x4064a2[_0x9df83b('0x1d60')]=function(_0x1f2160,_0x3b53d6,_0x20f0f0){var _0x3c7a8b=_0x9df83b,_0x46ca31=!0x1;return _0x3c52f1(_0x1f2160,_0x3b53d6)[_0x3c7a8b('0x33b0')](function(_0x970a32,_0xdf1f82){var _0x38aa43=_0x3c7a8b,_0x2e5b59=_0xdf1f82[0x0],_0x141e10=_0xdf1f82[0x1];return(_0x46ca31=_0x46ca31||!_0x2e5b59[_0x38aa43('0xa9b')](_0x141e10,_0x20f0f0))?_0x970a32:_0x970a32['concat'](_0x2e5b59);},[]);},_0x4064a2[_0x9df83b('0xa9b')]=function(_0x21f47a,_0x2496f3,_0x32838e){var _0xf35418=_0x9df83b;return _0x21f47a[_0xf35418('0x175a')]===_0x2496f3[_0xf35418('0x175a')]&&_0x4064a2[_0xf35418('0x1d60')](_0x21f47a,_0x2496f3,_0x32838e)[_0xf35418('0x175a')]===_0x21f47a['length'];},_0x4064a2[_0x9df83b('0x283')]=function(_0x280d8c,_0x2aecce){var _0x4fa716=_0x9df83b,_0x3d1fe6=_0x42a99f(_0x280d8c,_0x2aecce),_0x48a304=_0x280d8c['indexOf'](_0x3d1fe6);return-0x1===_0x48a304?void 0x0:_0x280d8c[_0x4fa716('0x2c0a')](0x0,_0x48a304+0x1);},_0x4064a2[_0x9df83b('0x2c36')]=function(_0x42432b){var _0x177e8a=_0x9df83b;return _0x42432b[_0x177e8a('0x380')][_0x177e8a('0x3549')]({'inherit':!0x1})[_0x177e8a('0x3127')](function(_0x48d1f3){var _0x21e65a=_0x177e8a;return!_0x48d1f3[_0x21e65a('0x31f4')];});},_0x4064a2[_0x9df83b('0x236e')]=function(_0x567ef4){return _0x567ef4['reduce'](function(_0x1c6e44,_0x3e888d){return _0x45ee70(_0x1c6e44,_0x3e888d['paramValues']);},{});},_0x4064a2;}(),_0x43f7de={'when':{'LAZY':'LAZY','EAGER':'EAGER'},'async':{'WAIT':_0x2877f5('0x6c1'),'NOWAIT':'NOWAIT'}},_0x2c9320={'when':_0x2877f5('0x30e9'),'async':'WAIT'},_0x305b72=function(){var _0x5c46e9=_0x2877f5;function _0x343210(_0x2cddd8,_0x276fd3,_0x44a6dd,_0x4a13e8,_0x1d7482){var _0x2d6ec2=a2_0x4bfe;if(this[_0x2d6ec2('0x3885')]=!0x1,this['promise']=void 0x0,_0x2cddd8 instanceof _0x343210)_0x45ee70(this,_0x2cddd8);else{if(_0x27da05(_0x276fd3)){if(_0xd9abc(_0x2cddd8))throw new Error(_0x2d6ec2('0x3856'));if(!_0x27da05(_0x276fd3))throw new Error('new\x20Resolvable():\x20resolveFn\x20argument\x20must\x20be\x20a\x20function');this[_0x2d6ec2('0x3b7')]=_0x2cddd8,this[_0x2d6ec2('0x2686')]=_0x4a13e8,this[_0x2d6ec2('0x656')]=_0x276fd3,this['deps']=_0x44a6dd||[],this[_0x2d6ec2('0xcee')]=_0x1d7482,this[_0x2d6ec2('0x3885')]=void 0x0!==_0x1d7482,this[_0x2d6ec2('0x34a6')]=this[_0x2d6ec2('0x3885')]?_0x18a5ff['$q'][_0x2d6ec2('0x36d1')](this[_0x2d6ec2('0xcee')]):void 0x0;}else{if(_0x50b2a7(_0x2cddd8)&&_0x2cddd8[_0x2d6ec2('0x3b7')]&&(_0x2cddd8[_0x2d6ec2('0x1522')](_0x2d6ec2('0x656'))||_0x2cddd8[_0x2d6ec2('0x1522')](_0x2d6ec2('0xcee')))){var _0x35d199=_0x2cddd8;return new _0x343210(_0x35d199['token'],_0x35d199[_0x2d6ec2('0x656')],_0x35d199[_0x2d6ec2('0x36ef')],_0x35d199[_0x2d6ec2('0x2686')],_0x35d199[_0x2d6ec2('0xcee')]);}}}}return _0x343210[_0x5c46e9('0x5a')][_0x5c46e9('0x2184')]=function(_0x4e8330){var _0x2b9a1d=_0x5c46e9,_0x15503a=this['policy']||{},_0x4d07bb=_0x4e8330&&_0x4e8330['resolvePolicy']||{};return{'when':_0x15503a[_0x2b9a1d('0x36d1')]||_0x4d07bb[_0x2b9a1d('0x36d1')]||_0x2c9320['when'],'async':_0x15503a[_0x2b9a1d('0x2db9')]||_0x4d07bb[_0x2b9a1d('0x2db9')]||_0x2c9320[_0x2b9a1d('0x2db9')]};},_0x343210[_0x5c46e9('0x5a')][_0x5c46e9('0x16ab')]=function(_0x50c925,_0x6f6790){var _0x2be26f=_0x5c46e9,_0x3be628=this,_0x14dcf9=_0x18a5ff['$q'],_0x5a11d7=function(){var _0x4cbc20=a2_0x4bfe;return _0x14dcf9['all'](_0x50c925[_0x4cbc20('0xa73')](_0x3be628)[_0x4cbc20('0x2d86')](function(_0x1075e2){return _0x1075e2['get'](_0x50c925,_0x6f6790);}));},_0x225d83=function(_0x26c2a6){var _0x16ae3=a2_0x4bfe;return _0x3be628[_0x16ae3('0x656')][_0x16ae3('0x177a')](null,_0x26c2a6);},_0x1c96b3=_0x50c925['findNode'](this),_0x9c8081=_0x1c96b3&&_0x1c96b3[_0x2be26f('0x380')],_0x1871b1=this[_0x2be26f('0x2184')](_0x9c8081)[_0x2be26f('0x2db9')],_0x4a9bc9=_0x27da05(_0x1871b1)?_0x1871b1:_0x4acb32,_0x3da212=function(_0xd591da){var _0x230177=_0x2be26f;return _0x3be628[_0x230177('0xcee')]=_0xd591da,_0x3be628[_0x230177('0x3885')]=!0x0,_0x3be628[_0x230177('0x656')]=null,_0x59472f[_0x230177('0xe15')](_0x3be628,_0x6f6790),_0x3be628[_0x230177('0xcee')];};return this[_0x2be26f('0x34a6')]=_0x14dcf9[_0x2be26f('0x36d1')]()['then'](_0x5a11d7)[_0x2be26f('0x26b5')](_0x225d83)[_0x2be26f('0x26b5')](_0x4a9bc9)[_0x2be26f('0x26b5')](_0x3da212);},_0x343210['prototype'][_0x5c46e9('0x1861')]=function(_0x44b479,_0x37f58d){var _0x1b5d09=_0x5c46e9;return this[_0x1b5d09('0x34a6')]||this[_0x1b5d09('0x16ab')](_0x44b479,_0x37f58d);},_0x343210[_0x5c46e9('0x5a')]['toString']=function(){var _0x21ad68=_0x5c46e9;return _0x21ad68('0x35ae')+_0x21554a(this[_0x21ad68('0x3b7')])+_0x21ad68('0x2be7')+this['deps'][_0x21ad68('0x2d86')](_0x21554a)+'])';},_0x343210[_0x5c46e9('0x5a')][_0x5c46e9('0x859')]=function(){return new _0x343210(this);},_0x343210['fromData']=function(_0x4531f5,_0x537cef){return new _0x343210(_0x4531f5,function(){return _0x537cef;},null,null,_0x537cef);},_0x343210;}(),_0x47a12c=_0x43f7de[_0x2877f5('0x36d1')],_0xca3dd4=[_0x47a12c[_0x2877f5('0x3730')],_0x47a12c[_0x2877f5('0x30e9')]],_0x354895=[_0x47a12c[_0x2877f5('0x3730')]],_0x3143c4=_0x2877f5('0x1465'),_0x474a90=function(){var _0x3394b5=_0x2877f5;function _0x21facf(_0x5c4a21){var _0x3fe03e=a2_0x4bfe;this[_0x3fe03e('0xdde')]=_0x5c4a21;}return _0x21facf[_0x3394b5('0x5a')][_0x3394b5('0x2566')]=function(){var _0x584e5f=_0x3394b5;return this[_0x584e5f('0xdde')]['reduce'](function(_0x59004a,_0x1a2c2b){var _0x37ebff=_0x584e5f;return _0x59004a[_0x37ebff('0x12b4')](_0x1a2c2b['resolvables']['map'](function(_0x31afef){var _0x2624ce=_0x37ebff;return _0x31afef[_0x2624ce('0x3b7')];}));},[])[_0x584e5f('0x33b0')](_0x3b3fbf,[]);},_0x21facf['prototype']['getResolvable']=function(_0x55845c){var _0xa9cbe0=_0x3394b5;return _0x142905(this[_0xa9cbe0('0xdde')][_0xa9cbe0('0x2d86')](function(_0x5a6247){var _0x3cc4bc=_0xa9cbe0;return _0x5a6247[_0x3cc4bc('0x102a')];})[_0xa9cbe0('0x33b0')](_0x40987e,[])[_0xa9cbe0('0x3127')](function(_0xaeaf1f){var _0x9fd1bb=_0xa9cbe0;return _0xaeaf1f[_0x9fd1bb('0x3b7')]===_0x55845c;}));},_0x21facf['prototype']['getPolicy']=function(_0x4a376c){var _0x2ce515=_0x3394b5,_0x46fcb9=this[_0x2ce515('0x285c')](_0x4a376c);return _0x4a376c['getPolicy'](_0x46fcb9[_0x2ce515('0x380')]);},_0x21facf[_0x3394b5('0x5a')]['subContext']=function(_0x12c155){var _0x8a6e55=_0x3394b5;return new _0x21facf(_0x56d648[_0x8a6e55('0x283')](this['_path'],function(_0x51f60a){var _0x5c41b3=_0x8a6e55;return _0x51f60a[_0x5c41b3('0x380')]===_0x12c155;}));},_0x21facf[_0x3394b5('0x5a')][_0x3394b5('0x29e1')]=function(_0x14d175,_0x1cd4cc){var _0x556fb0=_0x3394b5,_0x101601=_0x42a99f(this[_0x556fb0('0xdde')],_0x480afb(_0x556fb0('0x380'),_0x1cd4cc)),_0x31e096=_0x14d175[_0x556fb0('0x2d86')](function(_0x1764be){var _0x1bf594=_0x556fb0;return _0x1764be[_0x1bf594('0x3b7')];});_0x101601[_0x556fb0('0x102a')]=_0x101601['resolvables'][_0x556fb0('0x3127')](function(_0x44ff70){var _0x1a5c7d=_0x556fb0;return-0x1===_0x31e096[_0x1a5c7d('0xe1c')](_0x44ff70[_0x1a5c7d('0x3b7')]);})[_0x556fb0('0x12b4')](_0x14d175);},_0x21facf[_0x3394b5('0x5a')]['resolvePath']=function(_0x24d207,_0x418b9d){var _0x230beb=_0x3394b5,_0x27a101=this;void 0x0===_0x24d207&&(_0x24d207=_0x230beb('0x30e9'));var _0x50446f=(_0x3f84d6(_0xca3dd4,_0x24d207)?_0x24d207:_0x230beb('0x30e9'))===_0x43f7de[_0x230beb('0x36d1')][_0x230beb('0x3730')]?_0x354895:_0xca3dd4;_0x59472f['traceResolvePath'](this['_path'],_0x24d207,_0x418b9d);var _0x4a42bf=function(_0x5b093e,_0x4dd25a){return function(_0x45aec8){var _0x3ef1ed=a2_0x4bfe;return _0x3f84d6(_0x5b093e,_0x27a101[_0x3ef1ed('0x2184')](_0x45aec8)[_0x4dd25a]);};},_0x4531e2=this[_0x230beb('0xdde')][_0x230beb('0x33b0')](function(_0xc22530,_0x5afe17){var _0x2da5c1=_0x230beb,_0x3e7f53=_0x5afe17[_0x2da5c1('0x102a')]['filter'](_0x4a42bf(_0x50446f,_0x2da5c1('0x36d1'))),_0x40d527=_0x3e7f53['filter'](_0x4a42bf([_0x2da5c1('0x2498')],_0x2da5c1('0x2db9'))),_0x537649=_0x3e7f53['filter'](_0x3d2611(_0x4a42bf([_0x2da5c1('0x2498')],_0x2da5c1('0x2db9')))),_0x140716=_0x27a101[_0x2da5c1('0x29c2')](_0x5afe17[_0x2da5c1('0x380')]),_0x1819cf=function(_0x400942){var _0x3c9cc3=_0x2da5c1;return _0x400942[_0x3c9cc3('0x1861')](_0x140716,_0x418b9d)['then'](function(_0x3c490b){var _0x42ea0d=_0x3c9cc3;return{'token':_0x400942[_0x42ea0d('0x3b7')],'value':_0x3c490b};});};return _0x40d527['forEach'](_0x1819cf),_0xc22530[_0x2da5c1('0x12b4')](_0x537649[_0x2da5c1('0x2d86')](_0x1819cf));},[]);return _0x18a5ff['$q'][_0x230beb('0x130c')](_0x4531e2);},_0x21facf[_0x3394b5('0x5a')][_0x3394b5('0xe91')]=function(){var _0x1ecc33=_0x3394b5;return this[_0x1ecc33('0x872')]||(this[_0x1ecc33('0x872')]=new _0x517945(this));},_0x21facf['prototype']['findNode']=function(_0x16f5a2){var _0x493be4=_0x3394b5;return _0x42a99f(this[_0x493be4('0xdde')],function(_0x2bb2c6){return _0x3f84d6(_0x2bb2c6['resolvables'],_0x16f5a2);});},_0x21facf[_0x3394b5('0x5a')][_0x3394b5('0xa73')]=function(_0x1c7b76){var _0x2ba6e3=_0x3394b5,_0x246229=this,_0x29c963=this[_0x2ba6e3('0x285c')](_0x1c7b76),_0x43fc8e=(_0x56d648[_0x2ba6e3('0x283')](this[_0x2ba6e3('0xdde')],function(_0x4e28bf){return _0x4e28bf===_0x29c963;})||this[_0x2ba6e3('0xdde')])['reduce'](function(_0x320d45,_0x261b17){var _0x3fb920=_0x2ba6e3;return _0x320d45['concat'](_0x261b17[_0x3fb920('0x102a')]);},[])['filter'](function(_0x3cceb8){return _0x3cceb8!==_0x1c7b76;}),_0x2e4043=function(_0x4f1dd0){var _0x34ac7f=_0x2ba6e3,_0x3fb3b3=_0x43fc8e[_0x34ac7f('0x3127')](function(_0x23e9bc){var _0x5b0fe3=_0x34ac7f;return _0x23e9bc[_0x5b0fe3('0x3b7')]===_0x4f1dd0;});if(_0x3fb3b3[_0x34ac7f('0x175a')])return _0x142905(_0x3fb3b3);var _0x3b4c90=_0x246229[_0x34ac7f('0xe91')]()[_0x34ac7f('0x2066')](_0x4f1dd0);if(_0x1d472c(_0x3b4c90))throw new Error('Could\x20not\x20find\x20Dependency\x20Injection\x20token:\x20'+_0x21554a(_0x4f1dd0));return new _0x305b72(_0x4f1dd0,function(){return _0x3b4c90;},[],_0x3b4c90);};return _0x1c7b76[_0x2ba6e3('0x36ef')][_0x2ba6e3('0x2d86')](_0x2e4043);},_0x21facf;}(),_0x517945=function(){var _0x3ff733=_0x2877f5;function _0x248943(_0x495fda){var _0x466865=a2_0x4bfe;this[_0x466865('0xda5')]=_0x495fda,this[_0x466865('0xc4c')]=this['get'](_0x3143c4)||_0x18a5ff['$injector'];}return _0x248943['prototype']['get']=function(_0x598572){var _0x186d49=a2_0x4bfe,_0x35a73b=this[_0x186d49('0xda5')][_0x186d49('0x159d')](_0x598572);if(_0x35a73b){if(_0x186d49('0x2498')===this[_0x186d49('0xda5')][_0x186d49('0x2184')](_0x35a73b)[_0x186d49('0x2db9')])return _0x35a73b[_0x186d49('0x1861')](this[_0x186d49('0xda5')]);if(!_0x35a73b[_0x186d49('0x3885')])throw new Error(_0x186d49('0x3989')+_0x21554a(_0x35a73b[_0x186d49('0x3b7')]));return _0x35a73b[_0x186d49('0xcee')];}return this[_0x186d49('0x2066')](_0x598572);},_0x248943['prototype'][_0x3ff733('0x1b53')]=function(_0x6e6afe){var _0x5ef5b8=_0x3ff733,_0x4157f4=this['context'][_0x5ef5b8('0x159d')](_0x6e6afe);return _0x4157f4?_0x4157f4[_0x5ef5b8('0x1861')](this[_0x5ef5b8('0xda5')]):_0x18a5ff['$q'][_0x5ef5b8('0x36d1')](this[_0x5ef5b8('0xc4c')][_0x5ef5b8('0x1861')](_0x6e6afe));},_0x248943[_0x3ff733('0x5a')][_0x3ff733('0x2066')]=function(_0x50c79b){var _0x4b5778=_0x3ff733;return this[_0x4b5778('0xc4c')]&&this['native'][_0x4b5778('0x1861')](_0x50c79b);},_0x248943;}(),_0x45ab32=function(_0x30630a){var _0x26a55e=_0x2877f5;if(!_0x3f2c2e(_0x30630a))return!0x1;var _0x595b0b='^'===_0x30630a[_0x26a55e('0x40')](0x0);return{'val':_0x595b0b?_0x30630a['substring'](0x1):_0x30630a,'root':_0x595b0b};};function _0x1a1025(_0x33e747){var _0x3e5e7b=_0x2877f5;return _0x33e747[_0x3e5e7b('0x455')];}function _0x3e5a3c(_0x224f22){var _0x5e269e=_0x2877f5;return _0x224f22['self'][_0x5e269e('0x125d')]=function(){return _0x224f22;},_0x224f22[_0x5e269e('0x1840')];}function _0x4483f8(_0x59ca4e){var _0x195d10=_0x2877f5;return _0x59ca4e[_0x195d10('0x38bb')]&&_0x59ca4e['parent']['data']&&(_0x59ca4e[_0x195d10('0xcee')]=_0x59ca4e[_0x195d10('0x1840')][_0x195d10('0xcee')]=_0x4e6d69(_0x59ca4e[_0x195d10('0x38bb')][_0x195d10('0xcee')],_0x59ca4e[_0x195d10('0xcee')])),_0x59ca4e[_0x195d10('0xcee')];}var _0x4918c0=function(_0x49ef01,_0x253198){return function(_0x5fa215){var _0x5b90be=a2_0x4bfe,_0xaff9a6=_0x5fa215['self'];if(_0xaff9a6&&_0xaff9a6[_0x5b90be('0x365f')]&&_0xaff9a6[_0x5b90be('0x455')]&&_0xaff9a6[_0x5b90be('0x455')][_0x5b90be('0x21ae')](/\.\*\*$/)){var _0xc620d6={};_0xf0a601(_0xaff9a6,_0xc620d6),_0xc620d6[_0x5b90be('0x365f')]+=_0x5b90be('0x3103'),_0xaff9a6=_0xc620d6;}var _0x348896=_0x5fa215['parent'],_0x1420a9=_0x45ab32(_0xaff9a6['url']),_0x443fcc=_0x1420a9?_0x49ef01[_0x5b90be('0xd1b')](_0x1420a9[_0x5b90be('0x698')],{'state':_0xaff9a6}):_0xaff9a6[_0x5b90be('0x365f')];if(!_0x443fcc)return null;if(!_0x49ef01['isMatcher'](_0x443fcc))throw new Error(_0x5b90be('0x4aa')+_0x443fcc+_0x5b90be('0x2751')+_0x5fa215+'\x27');return _0x1420a9&&_0x1420a9[_0x5b90be('0x1ad')]?_0x443fcc:(_0x348896&&_0x348896[_0x5b90be('0x1fa0')]||_0x253198())[_0x5b90be('0x365f')]['append'](_0x443fcc);};},_0x4c64d5=function(_0x1f5300){return function(_0x59b2c4){var _0x31166d=a2_0x4bfe;return!_0x1f5300(_0x59b2c4)&&_0x59b2c4[_0x31166d('0x365f')]?_0x59b2c4:_0x59b2c4['parent']?_0x59b2c4[_0x31166d('0x38bb')]['navigable']:null;};},_0x1640f0=function(_0x791e3b){return function(_0x48204b){var _0x29299f=a2_0x4bfe,_0x3e001e=function(_0x4cd756,_0x22a25c){return _0x791e3b['fromConfig'](_0x22a25c,null,_0x48204b['self']);},_0x1b7b71=_0x48204b[_0x29299f('0x365f')]&&_0x48204b[_0x29299f('0x365f')][_0x29299f('0x3549')]({'inherit':!0x1})||[],_0x5ccbc8=_0x5c51e9(_0x412593(_0x4e416f(_0x48204b['params']||{},_0x1b7b71['map'](_0x4103e4('id'))),_0x3e001e));return _0x1b7b71[_0x29299f('0x12b4')](_0x5ccbc8)[_0x29299f('0x2d86')](function(_0x2c99bb){return[_0x2c99bb['id'],_0x2c99bb];})[_0x29299f('0x33b0')](_0xafdea,{});};};function _0x56deea(_0x333aeb){var _0x279e1d=_0x2877f5;return _0x333aeb['parent']?_0x333aeb[_0x279e1d('0x38bb')][_0x279e1d('0x75f')][_0x279e1d('0x12b4')](_0x333aeb):[_0x333aeb];}function _0x4cabd4(_0x5bc245){var _0x349a79=_0x2877f5,_0xc87e64=_0x5bc245[_0x349a79('0x38bb')]?_0x45ee70({},_0x5bc245[_0x349a79('0x38bb')][_0x349a79('0x287a')]):{};return _0xc87e64[_0x5bc245[_0x349a79('0x455')]]=!0x0,_0xc87e64;}function _0xd526a2(_0x197215){var _0x258cdc=_0x2877f5,_0x365568=function(_0x2119ba,_0x149b5b){var _0x294461=a2_0x4bfe;return Object['keys'](_0x2119ba||{})[_0x294461('0x2d86')](function(_0x37bbfb){return{'token':_0x37bbfb,'val':_0x2119ba[_0x37bbfb],'deps':void 0x0,'policy':_0x149b5b[_0x37bbfb]};});},_0x38b2e5=function(_0x1bfeea){var _0x405fcf=a2_0x4bfe,_0x13c5f9=_0x18a5ff['$injector'];return _0x1bfeea['$inject']||_0x13c5f9&&_0x13c5f9[_0x405fcf('0x693')](_0x1bfeea,_0x13c5f9[_0x405fcf('0x1330')])||_0x405fcf('0x1630');},_0x256a65=function(_0x255447){var _0x38ddfb=a2_0x4bfe;return!(!_0x255447[_0x38ddfb('0x3b7')]||!_0x255447['resolveFn']);},_0xf2d19c=function(_0x3b5b2f){var _0x473338=a2_0x4bfe;return!(!_0x3b5b2f[_0x473338('0x24e6')]&&!_0x3b5b2f['token']||!(_0x3b5b2f[_0x473338('0x3406')]||_0x3b5b2f[_0x473338('0x3339')]||_0x3b5b2f[_0x473338('0xe65')]||_0x3b5b2f[_0x473338('0x353e')]));},_0x3cb6fe=function(_0x1b31eb){var _0x2cc1c3=a2_0x4bfe;return!!(_0x1b31eb&&_0x1b31eb[_0x2cc1c3('0x698')]&&(_0x3f2c2e(_0x1b31eb['val'])||_0x49ad08(_0x1b31eb[_0x2cc1c3('0x698')])||_0x27da05(_0x1b31eb['val'])));},_0x147ef9=function(_0x441690){var _0x467402=a2_0x4bfe;return _0x441690[_0x467402('0x24e6')]||_0x441690[_0x467402('0x3b7')];},_0x1e32e8=_0x449885([[_0x4103e4(_0x258cdc('0x656')),function(_0x93ec14){var _0x5cccd7=_0x258cdc;return new _0x305b72(_0x147ef9(_0x93ec14),_0x93ec14['resolveFn'],_0x93ec14['deps'],_0x93ec14[_0x5cccd7('0x2686')]);}],[_0x4103e4(_0x258cdc('0x3339')),function(_0x4f7fa8){var _0x24d0a8=_0x258cdc;return new _0x305b72(_0x147ef9(_0x4f7fa8),_0x4f7fa8['useFactory'],_0x4f7fa8[_0x24d0a8('0x36ef')]||_0x4f7fa8[_0x24d0a8('0x14ba')],_0x4f7fa8['policy']);}],[_0x4103e4(_0x258cdc('0x353e')),function(_0x2225f6){var _0x4cd04f=_0x258cdc;return new _0x305b72(_0x147ef9(_0x2225f6),function(){var _0x4654d6=a2_0x4bfe;return new _0x2225f6[(_0x4654d6('0x353e'))]();},[],_0x2225f6[_0x4cd04f('0x2686')]);}],[_0x4103e4(_0x258cdc('0x3406')),function(_0x3974ac){var _0x5e2762=_0x258cdc;return new _0x305b72(_0x147ef9(_0x3974ac),function(){var _0x119243=a2_0x4bfe;return _0x3974ac[_0x119243('0x3406')];},[],_0x3974ac[_0x5e2762('0x2686')],_0x3974ac[_0x5e2762('0x3406')]);}],[_0x4103e4(_0x258cdc('0xe65')),function(_0x197fca){var _0xe4db67=_0x258cdc;return new _0x305b72(_0x147ef9(_0x197fca),_0x4acb32,[_0x197fca[_0xe4db67('0xe65')]],_0x197fca[_0xe4db67('0x2686')]);}]]),_0x1ee480=_0x449885([[_0x191328(_0x4103e4(_0x258cdc('0x698')),_0x3f2c2e),function(_0x76c58c){var _0x1c32b6=_0x258cdc;return new _0x305b72(_0x76c58c['token'],_0x4acb32,[_0x76c58c[_0x1c32b6('0x698')]],_0x76c58c[_0x1c32b6('0x2686')]);}],[_0x191328(_0x4103e4(_0x258cdc('0x698')),_0x49ad08),function(_0x2cb3f7){var _0xd493c8=_0x258cdc;return new _0x305b72(_0x2cb3f7[_0xd493c8('0x3b7')],_0x142905(_0x2cb3f7[_0xd493c8('0x698')]),_0x2cb3f7['val'][_0xd493c8('0x2c0a')](0x0,-0x1),_0x2cb3f7['policy']);}],[_0x191328(_0x4103e4(_0x258cdc('0x698')),_0x27da05),function(_0x21d7eb){var _0x16e47f=_0x258cdc;return new _0x305b72(_0x21d7eb['token'],_0x21d7eb[_0x16e47f('0x698')],_0x38b2e5(_0x21d7eb[_0x16e47f('0x698')]),_0x21d7eb[_0x16e47f('0x2686')]);}]]),_0xa8fc39=_0x449885([[_0x3d3db3(_0x305b72),function(_0x138c9e){return _0x138c9e;}],[_0x256a65,_0x1e32e8],[_0xf2d19c,_0x1e32e8],[_0x3cb6fe,_0x1ee480],[_0x288ab9(!0x0),function(_0x36d4df){var _0x1639f1=_0x258cdc;throw new Error(_0x1639f1('0x21d5')+_0x21554a(_0x36d4df));}]]),_0x1664f9=_0x197215['resolve'];return(_0x49ad08(_0x1664f9)?_0x1664f9:_0x365568(_0x1664f9,_0x197215[_0x258cdc('0x32cc')]||{}))['map'](_0xa8fc39);}var _0x46be3c,_0x15525b,_0x4baf2d=function(){var _0x1cebc8=_0x2877f5;function _0x1e39f8(_0x5be733,_0x5802b7){var _0x3578f0=a2_0x4bfe;this[_0x3578f0('0x1382')]=_0x5be733;var _0x295b5d=this,_0x46344e=function(){return _0x5be733['find']('');},_0x178a8a=function(_0x4b308c){var _0x22950a=_0x3578f0;return''===_0x4b308c[_0x22950a('0x455')];};function _0x362d59(_0x1a6c94){var _0x49c742=_0x3578f0;return _0x178a8a(_0x1a6c94)?null:_0x5be733[_0x49c742('0x16fd')](_0x295b5d[_0x49c742('0x2f2b')](_0x1a6c94))||_0x46344e();}this[_0x3578f0('0x2711')]={'name':[_0x1a1025],'self':[_0x3e5a3c],'parent':[_0x362d59],'data':[_0x4483f8],'url':[_0x4918c0(_0x5802b7,_0x46344e)],'navigable':[_0x4c64d5(_0x178a8a)],'params':[_0x1640f0(_0x5802b7[_0x3578f0('0x451')])],'views':[],'path':[_0x56deea],'includes':[_0x4cabd4],'resolvables':[_0xd526a2]};}return _0x1e39f8[_0x1cebc8('0x5a')]['builder']=function(_0x4abaf8,_0x249db5){var _0x11dcfe=_0x1cebc8,_0x2656ca=this[_0x11dcfe('0x2711')],_0x48d16a=_0x2656ca[_0x4abaf8]||[];return _0x3f2c2e(_0x4abaf8)&&!_0x417a63(_0x249db5)?_0x48d16a[_0x11dcfe('0x175a')]>0x1?_0x48d16a:_0x48d16a[0x0]:_0x3f2c2e(_0x4abaf8)&&_0x27da05(_0x249db5)?(_0x2656ca[_0x4abaf8]=_0x48d16a,_0x2656ca[_0x4abaf8][_0x11dcfe('0x1a90')](_0x249db5),function(){var _0xc2d89f=_0x11dcfe;return _0x2656ca[_0x4abaf8][_0xc2d89f('0x1f40')](_0x2656ca[_0x4abaf8][_0xc2d89f('0xe1c')](_0x249db5,0x1))&&null;}):void 0x0;},_0x1e39f8[_0x1cebc8('0x5a')][_0x1cebc8('0x173f')]=function(_0x541f4b){var _0x3c4f59=_0x1cebc8,_0x17d783=this,_0x3f2d3d=_0x17d783[_0x3c4f59('0x1382')],_0xeb70ab=_0x17d783[_0x3c4f59('0x2711')],_0x43db0f=this[_0x3c4f59('0x2f2b')](_0x541f4b);if(_0x43db0f&&!_0x3f2d3d[_0x3c4f59('0x16fd')](_0x43db0f,void 0x0,!0x1))return null;for(var _0x4ed3de in _0xeb70ab)if(_0xeb70ab[_0x3c4f59('0x1522')](_0x4ed3de)){var _0x18aa54=_0xeb70ab[_0x4ed3de]['reduce'](function(_0x276ef3,_0x3826e1){return function(_0x59aaa1){return _0x3826e1(_0x59aaa1,_0x276ef3);};},_0x2ab390);_0x541f4b[_0x4ed3de]=_0x18aa54(_0x541f4b);}return _0x541f4b;},_0x1e39f8[_0x1cebc8('0x5a')]['parentName']=function(_0x31f7c7){var _0x13948d=_0x1cebc8,_0x24dd82=_0x31f7c7['name']||'',_0x3d4894=_0x24dd82[_0x13948d('0x23ee')]('.');if('**'===_0x3d4894[_0x13948d('0x9b1')]()&&_0x3d4894['pop'](),_0x3d4894['length']){if(_0x31f7c7[_0x13948d('0x38bb')])throw new Error('States\x20that\x20specify\x20the\x20\x27parent:\x27\x20property\x20should\x20not\x20have\x20a\x20\x27.\x27\x20in\x20their\x20name\x20('+_0x24dd82+')');return _0x3d4894['join']('.');}return _0x31f7c7[_0x13948d('0x38bb')]?_0x3f2c2e(_0x31f7c7[_0x13948d('0x38bb')])?_0x31f7c7[_0x13948d('0x38bb')]:_0x31f7c7[_0x13948d('0x38bb')]['name']:'';},_0x1e39f8['prototype']['name']=function(_0x4f6db9){var _0x2c01cd=_0x1cebc8,_0x3e7cca=_0x4f6db9[_0x2c01cd('0x455')];if(-0x1!==_0x3e7cca[_0x2c01cd('0xe1c')]('.')||!_0x4f6db9[_0x2c01cd('0x38bb')])return _0x3e7cca;var _0x51de27=_0x3f2c2e(_0x4f6db9['parent'])?_0x4f6db9[_0x2c01cd('0x38bb')]:_0x4f6db9[_0x2c01cd('0x38bb')][_0x2c01cd('0x455')];return _0x51de27?_0x51de27+'.'+_0x3e7cca:_0x3e7cca;},_0x1e39f8;}(),_0x52be0f=function(){var _0x4b5ec2=_0x2877f5;function _0x32e774(_0x109f59){var _0x85171f=a2_0x4bfe;return _0x32e774[_0x85171f('0x126')](_0x109f59||{});}return _0x32e774[_0x4b5ec2('0x126')]=function(_0x35cabc){var _0x347096=_0x4b5ec2;_0x35cabc=_0x32e774['isStateClass'](_0x35cabc)?new _0x35cabc():_0x35cabc;var _0x57afff=_0x4e6d69(_0x4e6d69(_0x35cabc,_0x32e774['prototype']));return _0x35cabc['$$state']=function(){return _0x57afff;},_0x57afff['self']=_0x35cabc,_0x57afff[_0x347096('0x2b39')]={'nameGlob':_0x1629cd[_0x347096('0x1578')](_0x57afff['name'])},_0x57afff;},_0x32e774[_0x4b5ec2('0x5a')]['is']=function(_0x379295){var _0x11195d=_0x4b5ec2;return this===_0x379295||this[_0x11195d('0x1840')]===_0x379295||this['fqn']()===_0x379295;},_0x32e774[_0x4b5ec2('0x5a')]['fqn']=function(){var _0x5beb97=_0x4b5ec2;if(!(this[_0x5beb97('0x38bb')]&&this[_0x5beb97('0x38bb')]instanceof this['constructor']))return this['name'];var _0x586126=this[_0x5beb97('0x38bb')]['fqn']();return _0x586126?_0x586126+'.'+this[_0x5beb97('0x455')]:this[_0x5beb97('0x455')];},_0x32e774[_0x4b5ec2('0x5a')][_0x4b5ec2('0x1ad')]=function(){var _0x3389ff=_0x4b5ec2;return this[_0x3389ff('0x38bb')]&&this['parent'][_0x3389ff('0x1ad')]()||this;},_0x32e774[_0x4b5ec2('0x5a')][_0x4b5ec2('0x3549')]=function(_0x526d1c){var _0xd683d9=_0x4b5ec2;return((_0x526d1c=_0x1b8ff7(_0x526d1c,{'inherit':!0x0,'matchingKeys':null}))[_0xd683d9('0xf40')]&&this['parent']&&this[_0xd683d9('0x38bb')][_0xd683d9('0x3549')]()||[])[_0xd683d9('0x12b4')](_0x5c51e9(this[_0xd683d9('0x46e')]))[_0xd683d9('0x3127')](function(_0x3039bd){var _0x4a0b12=_0xd683d9;return!_0x526d1c[_0x4a0b12('0x2190')]||_0x526d1c[_0x4a0b12('0x2190')]['hasOwnProperty'](_0x3039bd['id']);});},_0x32e774[_0x4b5ec2('0x5a')][_0x4b5ec2('0x25f3')]=function(_0x5c2a66,_0x57237e){var _0x4cbbf9=_0x4b5ec2;return void 0x0===_0x57237e&&(_0x57237e={}),this['url']&&this[_0x4cbbf9('0x365f')][_0x4cbbf9('0x25f3')](_0x5c2a66,_0x57237e)||_0x42a99f(_0x5c51e9(this[_0x4cbbf9('0x46e')]),_0x480afb('id',_0x5c2a66))||_0x57237e[_0x4cbbf9('0xf40')]&&this[_0x4cbbf9('0x38bb')]&&this['parent'][_0x4cbbf9('0x25f3')](_0x5c2a66);},_0x32e774[_0x4b5ec2('0x5a')][_0x4b5ec2('0x6ef')]=function(){var _0x4255bf=_0x4b5ec2;return this[_0x4255bf('0x324f')]();},_0x32e774[_0x4b5ec2('0x20b9')]=function(_0x11fd6f){var _0x8d29b8=_0x4b5ec2;return _0x27da05(_0x11fd6f)&&!0x0===_0x11fd6f[_0x8d29b8('0x8f0')];},_0x32e774['isStateDeclaration']=function(_0x4241a1){return _0x27da05(_0x4241a1['$$state']);},_0x32e774[_0x4b5ec2('0x33b3')]=function(_0x161e10){var _0x1ac6f2=_0x4b5ec2;return _0x50b2a7(_0x161e10[_0x1ac6f2('0x2b39')]);},_0x32e774;}(),_0x431407=function(){var _0x282b58=_0x2877f5;function _0x264294(_0x1c9ffe){var _0x1323bd=a2_0x4bfe;this[_0x1323bd('0x3218')]=_0x1c9ffe;}return _0x264294[_0x282b58('0x5a')][_0x282b58('0x23d1')]=function(_0x4b112b){var _0x5baefd=_0x282b58;return 0x0===(_0x4b112b=_0x4b112b||'')[_0x5baefd('0xe1c')]('.')||0x0===_0x4b112b[_0x5baefd('0xe1c')]('^');},_0x264294[_0x282b58('0x5a')][_0x282b58('0x16fd')]=function(_0x2daaa1,_0x50b629,_0x32c067){var _0x1e5289=_0x282b58;if(void 0x0===_0x32c067&&(_0x32c067=!0x0),_0x2daaa1||''===_0x2daaa1){var _0x5d8f09=_0x3f2c2e(_0x2daaa1),_0x31703b=_0x5d8f09?_0x2daaa1:_0x2daaa1['name'];this[_0x1e5289('0x23d1')](_0x31703b)&&(_0x31703b=this[_0x1e5289('0xee6')](_0x31703b,_0x50b629));var _0x2f774f=this[_0x1e5289('0x3218')][_0x31703b];if(_0x2f774f&&(_0x5d8f09||!(_0x5d8f09||_0x2f774f!==_0x2daaa1&&_0x2f774f[_0x1e5289('0x1840')]!==_0x2daaa1)))return _0x2f774f;if(_0x5d8f09&&_0x32c067){var _0x363568=_0x5c51e9(this[_0x1e5289('0x3218')])[_0x1e5289('0x3127')](function(_0x2cee65){var _0x2f243e=_0x1e5289;return _0x2cee65[_0x2f243e('0x2b39')][_0x2f243e('0x2e41')]&&_0x2cee65[_0x2f243e('0x2b39')][_0x2f243e('0x2e41')][_0x2f243e('0x32a4')](_0x31703b);});return _0x363568[_0x1e5289('0x175a')]>0x1&&_0xa882c6[_0x1e5289('0x2534')](_0x1e5289('0x1336')+_0x31703b+'\x20using\x20glob:\x20',_0x363568[_0x1e5289('0x2d86')](function(_0x1f48c7){var _0x54e4d4=_0x1e5289;return _0x1f48c7[_0x54e4d4('0x455')];})),_0x363568[0x0];}}},_0x264294[_0x282b58('0x5a')]['resolvePath']=function(_0x250c7a,_0x5adaf0){var _0x542f06=_0x282b58;if(!_0x5adaf0)throw new Error(_0x542f06('0x1c38')+_0x250c7a+'\x27');for(var _0x5968c5=this['find'](_0x5adaf0),_0xc45a3a=_0x250c7a['split']('.'),_0x174723=_0xc45a3a['length'],_0x58f96d=0x0,_0x5bd78b=_0x5968c5;_0x58f96d<_0x174723;_0x58f96d++)if(''!==_0xc45a3a[_0x58f96d]||0x0!==_0x58f96d){if('^'!==_0xc45a3a[_0x58f96d])break;if(!_0x5bd78b[_0x542f06('0x38bb')])throw new Error(_0x542f06('0x21a9')+_0x250c7a+_0x542f06('0xb90')+_0x5968c5[_0x542f06('0x455')]+'\x27');_0x5bd78b=_0x5bd78b[_0x542f06('0x38bb')];}else _0x5bd78b=_0x5968c5;var _0xec86f6=_0xc45a3a['slice'](_0x58f96d)['join']('.');return _0x5bd78b[_0x542f06('0x455')]+(_0x5bd78b[_0x542f06('0x455')]&&_0xec86f6?'.':'')+_0xec86f6;},_0x264294;}(),_0x5b2973=function(){var _0x5ed59c=_0x2877f5;function _0x396e3d(_0x1a374b,_0x3902a5,_0x270a60,_0x4da129){var _0x41f2dd=a2_0x4bfe;this[_0x41f2dd('0x2b79')]=_0x1a374b,this[_0x41f2dd('0xddb')]=_0x3902a5,this['builder']=_0x270a60,this['listeners']=_0x4da129,this[_0x41f2dd('0x1d99')]=[];}return _0x396e3d[_0x5ed59c('0x5a')][_0x5ed59c('0x38af')]=function(){var _0x148632=_0x5ed59c;this[_0x148632('0x1d99')]=[];},_0x396e3d[_0x5ed59c('0x5a')]['register']=function(_0x274813){var _0x3e6647=_0x5ed59c,_0x1a752f=this['queue'],_0x530d02=_0x52be0f[_0x3e6647('0x126')](_0x274813),_0x8bd586=_0x530d02[_0x3e6647('0x455')];if(!_0x3f2c2e(_0x8bd586))throw new Error(_0x3e6647('0x1691'));if(this[_0x3e6647('0xddb')][_0x3e6647('0x1522')](_0x8bd586)||_0x3f84d6(_0x1a752f['map'](_0x4103e4(_0x3e6647('0x455'))),_0x8bd586))throw new Error(_0x3e6647('0x2032')+_0x8bd586+_0x3e6647('0x352a'));return _0x1a752f[_0x3e6647('0x1a90')](_0x530d02),this['flush'](),_0x530d02;},_0x396e3d[_0x5ed59c('0x5a')][_0x5ed59c('0x1781')]=function(){var _0x3d9717=_0x5ed59c;for(var _0x546605=this,_0xb37e2c=this,_0x2a5af7=_0xb37e2c[_0x3d9717('0x1d99')],_0x51f33c=_0xb37e2c[_0x3d9717('0xddb')],_0x482db0=_0xb37e2c[_0x3d9717('0x1a49')],_0x4d1c97=[],_0x4f440d=[],_0x4c80a4={},_0x5df437=function(_0x42e79b){var _0x35cb26=_0x3d9717;return _0x546605[_0x35cb26('0xddb')][_0x35cb26('0x1522')](_0x42e79b)&&_0x546605[_0x35cb26('0xddb')][_0x42e79b];},_0xdf750a=function(){var _0x3e5450=_0x3d9717;_0x4d1c97[_0x3e5450('0x175a')]&&_0x546605['listeners']['forEach'](function(_0x38b327){var _0xe550c1=_0x3e5450;return _0x38b327(_0xe550c1('0x2018'),_0x4d1c97[_0xe550c1('0x2d86')](function(_0x4e8310){var _0x351f63=_0xe550c1;return _0x4e8310[_0x351f63('0x1840')];}));});};_0x2a5af7[_0x3d9717('0x175a')]>0x0;){var _0x238aff=_0x2a5af7[_0x3d9717('0x2967')](),_0x5ec07a=_0x238aff[_0x3d9717('0x455')],_0x23d1e1=_0x482db0[_0x3d9717('0x173f')](_0x238aff),_0x5cff4e=_0x4f440d['indexOf'](_0x238aff);if(_0x23d1e1){var _0x2d46e7=_0x5df437(_0x5ec07a);if(_0x2d46e7&&_0x2d46e7[_0x3d9717('0x455')]===_0x5ec07a)throw new Error(_0x3d9717('0x2032')+_0x5ec07a+_0x3d9717('0x352a'));var _0x20cda6=_0x5df437(_0x5ec07a+_0x3d9717('0x1bbb'));_0x20cda6&&this[_0x3d9717('0x2b79')][_0x3d9717('0x1c21')]['deregister'](_0x20cda6),_0x51f33c[_0x5ec07a]=_0x238aff,this[_0x3d9717('0x1349')](_0x238aff),_0x5cff4e>=0x0&&_0x4f440d[_0x3d9717('0x1f40')](_0x5cff4e,0x1),_0x4d1c97[_0x3d9717('0x1a90')](_0x238aff);}else{var _0x3284cd=_0x4c80a4[_0x5ec07a];if(_0x4c80a4[_0x5ec07a]=_0x2a5af7[_0x3d9717('0x175a')],_0x5cff4e>=0x0&&_0x3284cd===_0x2a5af7[_0x3d9717('0x175a')])return _0x2a5af7[_0x3d9717('0x1a90')](_0x238aff),_0xdf750a(),_0x51f33c;_0x5cff4e<0x0&&_0x4f440d[_0x3d9717('0x1a90')](_0x238aff),_0x2a5af7[_0x3d9717('0x1a90')](_0x238aff);}}return _0xdf750a(),_0x51f33c;},_0x396e3d['prototype'][_0x5ed59c('0x1349')]=function(_0xd8ad3a){var _0x27abdf=_0x5ed59c;if(!_0xd8ad3a[_0x27abdf('0x202d')]&&_0xd8ad3a['url']){var _0x4a40b3=this[_0x27abdf('0x2b79')][_0x27abdf('0xf24')][_0x27abdf('0x1911')];_0x4a40b3[_0x27abdf('0xb25')](_0x4a40b3[_0x27abdf('0xa5c')][_0x27abdf('0x126')](_0xd8ad3a));}},_0x396e3d;}(),_0x25dbe5=function(){var _0x5e8f46=_0x2877f5;function _0x269619(_0xe2edd7){var _0x4307ce=a2_0x4bfe;this[_0x4307ce('0x2b79')]=_0xe2edd7,this[_0x4307ce('0xddb')]={},this['listeners']=[],this[_0x4307ce('0x1382')]=new _0x431407(this[_0x4307ce('0xddb')]),this[_0x4307ce('0x1a49')]=new _0x4baf2d(this[_0x4307ce('0x1382')],_0xe2edd7[_0x4307ce('0x14b4')]),this[_0x4307ce('0x17d9')]=new _0x5b2973(_0xe2edd7,this[_0x4307ce('0xddb')],this[_0x4307ce('0x1a49')],this[_0x4307ce('0x2425')]),this[_0x4307ce('0x1589')]();}return _0x269619['prototype'][_0x5e8f46('0x1589')]=function(){var _0x369518=_0x5e8f46,_0x27168b={'name':'','url':'^','views':null,'params':{'#':{'value':null,'type':'hash','dynamic':!0x0}},'abstract':!0x0};(this[_0x369518('0x1961')]=this[_0x369518('0x17d9')][_0x369518('0x2bd7')](_0x27168b))[_0x369518('0x1fa0')]=null;},_0x269619[_0x5e8f46('0x5a')][_0x5e8f46('0x38af')]=function(){var _0x5692f0=_0x5e8f46,_0x33f425=this;this[_0x5692f0('0x17d9')][_0x5692f0('0x38af')](),this[_0x5692f0('0x2425')]=[],this[_0x5692f0('0x1861')]()[_0x5692f0('0x247d')](function(_0xd8c0fe){var _0x584e78=_0x5692f0;return _0x33f425[_0x584e78('0x1861')](_0xd8c0fe)&&_0x33f425[_0x584e78('0x10ee')](_0xd8c0fe);});},_0x269619[_0x5e8f46('0x5a')]['onStatesChanged']=function(_0x22829a){var _0x3b939d=_0x5e8f46;return this['listeners'][_0x3b939d('0x1a90')](_0x22829a),function(){var _0x14e025=_0x3b939d;_0xf7741b(this[_0x14e025('0x2425')])(_0x22829a);}[_0x3b939d('0x1ecd')](this);},_0x269619[_0x5e8f46('0x5a')][_0x5e8f46('0x1ad')]=function(){var _0x5cfba2=_0x5e8f46;return this[_0x5cfba2('0x1961')];},_0x269619['prototype'][_0x5e8f46('0x2bd7')]=function(_0x53adab){var _0x1c0ba3=_0x5e8f46;return this[_0x1c0ba3('0x17d9')][_0x1c0ba3('0x2bd7')](_0x53adab);},_0x269619[_0x5e8f46('0x5a')][_0x5e8f46('0x2b9c')]=function(_0x26cbf1){var _0x20d4da=_0x5e8f46,_0xe2b89c=this,_0x375d4b=this[_0x20d4da('0x1861')]()['map'](function(_0x10f7c1){return _0x10f7c1['$$state']();}),_0x4afefc=function(_0x2a5bc8){var _0x5940aa=_0x20d4da,_0x4250e1=_0x375d4b[_0x5940aa('0x3127')](function(_0x233704){var _0x582f8f=_0x5940aa;return-0x1!==_0x2a5bc8[_0x582f8f('0xe1c')](_0x233704['parent']);});return 0x0===_0x4250e1['length']?_0x4250e1:_0x4250e1['concat'](_0x4afefc(_0x4250e1));},_0x25fa76=_0x4afefc([_0x26cbf1]),_0x5f5ce1=[_0x26cbf1][_0x20d4da('0x12b4')](_0x25fa76)[_0x20d4da('0x2572')]();return _0x5f5ce1[_0x20d4da('0x247d')](function(_0x48c5a3){var _0x28b2e0=_0x20d4da,_0x4af22b=_0xe2b89c[_0x28b2e0('0x2b79')][_0x28b2e0('0xf24')][_0x28b2e0('0x1911')];_0x4af22b[_0x28b2e0('0x1911')]()['filter'](_0x480afb(_0x28b2e0('0x380'),_0x48c5a3))[_0x28b2e0('0x247d')](function(_0x2c4c20){var _0x5bd7cd=_0x28b2e0;return _0x4af22b[_0x5bd7cd('0x15d')](_0x2c4c20);}),delete _0xe2b89c[_0x28b2e0('0xddb')][_0x48c5a3['name']];}),_0x5f5ce1;},_0x269619['prototype'][_0x5e8f46('0x10ee')]=function(_0x1cc883){var _0x691077=_0x5e8f46,_0xea68e8=this[_0x691077('0x1861')](_0x1cc883);if(!_0xea68e8)throw new Error(_0x691077('0x844')+_0x1cc883);var _0x4182d8=this[_0x691077('0x2b9c')](_0xea68e8['$$state']());return this[_0x691077('0x2425')][_0x691077('0x247d')](function(_0x36b92b){var _0x234fc8=_0x691077;return _0x36b92b(_0x234fc8('0x24ec'),_0x4182d8['map'](function(_0x18b140){return _0x18b140['self'];}));}),_0x4182d8;},_0x269619['prototype'][_0x5e8f46('0x1861')]=function(_0x3e3dd7,_0x4a8366){var _0x12ecf4=_0x5e8f46,_0x505269=this;if(0x0===arguments['length'])return Object['keys'](this[_0x12ecf4('0xddb')])[_0x12ecf4('0x2d86')](function(_0x58c398){var _0x1835e6=_0x12ecf4;return _0x505269[_0x1835e6('0xddb')][_0x58c398][_0x1835e6('0x1840')];});var _0x183301=this[_0x12ecf4('0x1382')][_0x12ecf4('0x16fd')](_0x3e3dd7,_0x4a8366);return _0x183301&&_0x183301['self']||null;},_0x269619[_0x5e8f46('0x5a')][_0x5e8f46('0x38d2')]=function(_0x2ed744,_0x47e347){var _0x23ebd3=_0x5e8f46;return this[_0x23ebd3('0x1a49')]['builder'](_0x2ed744,_0x47e347);},_0x269619;}();(_0x15525b=_0x44a9e0[_0x2877f5('0x28b8')]||(_0x44a9e0['TransitionHookPhase']={}))[_0x15525b[_0x2877f5('0x884')]=0x0]=_0x2877f5('0x884'),_0x15525b[_0x15525b[_0x2877f5('0x3052')]=0x1]=_0x2877f5('0x3052'),_0x15525b[_0x15525b['RUN']=0x2]='RUN',_0x15525b[_0x15525b[_0x2877f5('0x1d6a')]=0x3]=_0x2877f5('0x1d6a'),_0x15525b[_0x15525b[_0x2877f5('0x3048')]=0x4]='ERROR',(_0x46be3c=_0x44a9e0[_0x2877f5('0x2069')]||(_0x44a9e0['TransitionHookScope']={}))[_0x46be3c[_0x2877f5('0x3f7')]=0x0]=_0x2877f5('0x3f7'),_0x46be3c[_0x46be3c[_0x2877f5('0x2c8e')]=0x1]=_0x2877f5('0x2c8e');var _0x2cfcac={'current':_0x2ab390,'transition':null,'traceData':{},'bind':null},_0x3484ca=function(){var _0x6aab96=_0x2877f5;function _0x491077(_0x1a2e86,_0x1503b8,_0x15867a,_0x30dda3){var _0x7df4a5=a2_0x4bfe,_0x3e8fb0=this;this['transition']=_0x1a2e86,this['stateContext']=_0x1503b8,this['registeredHook']=_0x15867a,this[_0x7df4a5('0xded')]=_0x30dda3,this['isSuperseded']=function(){var _0x1210c2=_0x7df4a5;return _0x3e8fb0[_0x1210c2('0x21a5')][_0x1210c2('0x3607')]===_0x44a9e0[_0x1210c2('0x28b8')]['RUN']&&!_0x3e8fb0[_0x1210c2('0xded')][_0x1210c2('0x20d1')]['isActive']();},this[_0x7df4a5('0xded')]=_0x1b8ff7(_0x30dda3,_0x2cfcac),this[_0x7df4a5('0x21a5')]=_0x15867a['eventType'];}return _0x491077[_0x6aab96('0xa45')]=function(_0x1fa8cc,_0x9c3c64){var _0x6e88bf=_0x6aab96,_0x2b987e=function(_0x12a4e4,_0x24bd36){var _0x48d5ee=a2_0x4bfe;return _0x12a4e4[_0x48d5ee('0x26b5')](function(){var _0x2b7fd0=_0x48d5ee;return _0x24bd36[_0x2b7fd0('0xf5a')]();});};return _0x1fa8cc[_0x6e88bf('0x33b0')](_0x2b987e,_0x9c3c64||_0x18a5ff['$q'][_0x6e88bf('0x36d1')]());},_0x491077['invokeHooks']=function(_0x15177b,_0x59ba40){var _0x481c80=_0x6aab96;for(var _0x35815b=0x0;_0x35815b<_0x15177b[_0x481c80('0x175a')];_0x35815b++){var _0x1c440c=_0x15177b[_0x35815b]['invokeHook']();if(_0x3aced7(_0x1c440c)){var _0x253284=_0x15177b['slice'](_0x35815b+0x1);return _0x491077[_0x481c80('0xa45')](_0x253284,_0x1c440c)[_0x481c80('0x26b5')](_0x59ba40);}}return _0x59ba40();},_0x491077[_0x6aab96('0xa00')]=function(_0x11d7a5){var _0x44faa0=_0x6aab96;_0x11d7a5[_0x44faa0('0x247d')](function(_0x57ce30){return _0x57ce30['invokeHook']();});},_0x491077['prototype'][_0x6aab96('0x1511')]=function(_0x5a7a46){var _0x335796=_0x6aab96;this['transition'][_0x335796('0x2b79')]['stateService'][_0x335796('0xb')]()(_0x5a7a46);},_0x491077[_0x6aab96('0x5a')][_0x6aab96('0xf5a')]=function(){var _0x48483e=_0x6aab96,_0x52dc6e=this,_0x11c61c=this['registeredHook'];if(!_0x11c61c[_0x48483e('0xd79')]){var _0x5143b0=this[_0x48483e('0x232b')]();if(_0x5143b0)return _0x5143b0;var _0x1a576f=this[_0x48483e('0xded')];_0x59472f[_0x48483e('0x23da')](this,this[_0x48483e('0x20d1')],_0x1a576f);var _0x5733a8=function(){var _0x1afd5d=_0x48483e;return _0x11c61c['callback'][_0x1afd5d('0x2449')](_0x1a576f[_0x1afd5d('0x1ecd')],_0x52dc6e[_0x1afd5d('0x20d1')],_0x52dc6e[_0x1afd5d('0x610')]);},_0x34d944=function(_0x53ee82){var _0x327bd7=_0x48483e;return _0x250c92[_0x327bd7('0x801')](_0x53ee82)[_0x327bd7('0x2c8f')]();},_0x5c705d=function(_0x5c4e06){var _0xae183d=_0x48483e;return _0x11c61c[_0xae183d('0x545')][_0xae183d('0x1d8a')](_0x52dc6e)(_0x5c4e06);},_0x46a1d8=function(_0xb18fb1){var _0x350f8f=_0x48483e;return _0x11c61c[_0x350f8f('0x545')][_0x350f8f('0xad9')](_0x52dc6e)(_0xb18fb1);};try{var _0x43e3f4=_0x5733a8();return!this[_0x48483e('0x21a5')][_0x48483e('0x3483')]&&_0x3aced7(_0x43e3f4)?_0x43e3f4[_0x48483e('0x2287')](_0x34d944)[_0x48483e('0x26b5')](_0x46a1d8,_0x5c705d):_0x46a1d8(_0x43e3f4);}catch(_0x8ce61a){return _0x5c705d(_0x250c92[_0x48483e('0x801')](_0x8ce61a));}finally{_0x11c61c[_0x48483e('0x17d2')]&&++_0x11c61c[_0x48483e('0x23ad')]>=_0x11c61c['invokeLimit']&&_0x11c61c[_0x48483e('0x10ee')]();}}},_0x491077[_0x6aab96('0x5a')][_0x6aab96('0x3246')]=function(_0x28adbf){var _0x2a0730=_0x6aab96,_0x523caf=this,_0x561be3=this[_0x2a0730('0x232b')]();return _0x561be3||(_0x3aced7(_0x28adbf)?_0x28adbf[_0x2a0730('0x26b5')](function(_0x205264){var _0xf661d=_0x2a0730;return _0x523caf[_0xf661d('0x3246')](_0x205264);}):(_0x59472f[_0x2a0730('0x3461')](_0x28adbf,this[_0x2a0730('0x20d1')],this[_0x2a0730('0xded')]),!0x1===_0x28adbf?_0x250c92['aborted'](_0x2a0730('0x30ac'))['toPromise']():_0x3d3db3(_0x57c6a8)(_0x28adbf)?_0x250c92[_0x2a0730('0x1a08')](_0x28adbf)[_0x2a0730('0x2c8f')]():void 0x0));},_0x491077[_0x6aab96('0x5a')]['getNotCurrentRejection']=function(){var _0x5b5799=_0x6aab96,_0x3d459d=this[_0x5b5799('0x20d1')]['router'];return _0x3d459d[_0x5b5799('0x18f9')]?_0x250c92['aborted'](_0x5b5799('0x35e8')+_0x3d459d[_0x5b5799('0x28bf')]+_0x5b5799('0x24fc'))['toPromise']():this[_0x5b5799('0x20d1')][_0x5b5799('0x4c2')]?_0x250c92[_0x5b5799('0xe8f')]()[_0x5b5799('0x2c8f')]():this[_0x5b5799('0x271e')]()?_0x250c92[_0x5b5799('0x1778')](this['options']['current']())[_0x5b5799('0x2c8f')]():void 0x0;},_0x491077[_0x6aab96('0x5a')][_0x6aab96('0x6ef')]=function(){var _0xe26660=_0x6aab96,_0x5f2511=this,_0x396c20=_0x5f2511[_0xe26660('0xded')],_0x22b599=_0x5f2511[_0xe26660('0x2df7')];return(_0x58a1b9(_0xe26660('0x20d5'))(_0x396c20)||_0xe26660('0x2373'))+_0xe26660('0x32a8')+(_0x58a1b9(_0xe26660('0x22ee'))(_0x396c20)||_0x58a1b9(_0xe26660('0x25c6'))(_0x396c20)||_0xe26660('0x2f35'))+',\x20'+_0x1e0a7f(0xc8,_0x271eb3(_0x22b599[_0xe26660('0x1aa1')]));},_0x491077[_0x6aab96('0x191a')]=function(_0xadc02b){return function(_0x3a65ba){var _0x1d7447=a2_0x4bfe;return _0xadc02b[_0x1d7447('0x3246')](_0x3a65ba);};},_0x491077[_0x6aab96('0x24ce')]=function(_0x24af56){return function(_0xca25fa){_0x3aced7(_0xca25fa)&&_0xca25fa['catch'](function(_0x353f04){var _0x147bf4=a2_0x4bfe;return _0x24af56[_0x147bf4('0x1511')](_0x250c92[_0x147bf4('0x801')](_0x353f04));});};},_0x491077[_0x6aab96('0x1834')]=function(_0x58833b){return function(_0x162143){return _0x58833b['logError'](_0x162143);};},_0x491077['REJECT_ERROR']=function(_0x228834){return function(_0x120da1){return _0x2e1b24(_0x120da1);};},_0x491077['THROW_ERROR']=function(_0x11a689){return function(_0x1ac3fc){throw _0x1ac3fc;};},_0x491077;}();function _0x5e9c18(_0x456c93,_0x4f4f01,_0x5193de){var _0x2fb913=_0x3f2c2e(_0x4f4f01)?[_0x4f4f01]:_0x4f4f01;function _0x45f2af(_0x3d084e){var _0x4495d8=a2_0x4bfe;for(var _0x35c595=_0x2fb913,_0x24b575=0x0;_0x24b575<_0x35c595[_0x4495d8('0x175a')];_0x24b575++){var _0x13fc5a=new _0x1629cd(_0x35c595[_0x24b575]);if(_0x13fc5a&&_0x13fc5a[_0x4495d8('0x32a4')](_0x3d084e[_0x4495d8('0x455')])||!_0x13fc5a&&_0x35c595[_0x24b575]===_0x3d084e[_0x4495d8('0x455')])return!0x0;}return!0x1;}return!!(_0x27da05(_0x2fb913)?_0x2fb913:_0x45f2af)(_0x456c93,_0x5193de);}var _0x1dfb02=function(){var _0x3f61b5=_0x2877f5;function _0x17cf31(_0xbc848,_0x454cc6,_0x5cce82,_0x2ee8b8,_0x34f177,_0x485e9d){var _0x32957f=a2_0x4bfe;void 0x0===_0x485e9d&&(_0x485e9d={}),this['tranSvc']=_0xbc848,this[_0x32957f('0x545')]=_0x454cc6,this[_0x32957f('0x1aa1')]=_0x5cce82,this[_0x32957f('0x183f')]=_0x2ee8b8,this[_0x32957f('0x2086')]=_0x34f177,this['invokeCount']=0x0,this['_deregistered']=!0x1,this['priority']=_0x485e9d['priority']||0x0,this['bind']=_0x485e9d[_0x32957f('0x1ecd')]||null,this[_0x32957f('0x17d2')]=_0x485e9d[_0x32957f('0x17d2')];}return _0x17cf31['prototype']['_matchingNodes']=function(_0x4d6b73,_0x5cfbb9,_0xee9032){var _0x47bb46=a2_0x4bfe;if(!0x0===_0x5cfbb9)return _0x4d6b73;var _0x41368b=_0x4d6b73[_0x47bb46('0x3127')](function(_0x35ce0a){var _0x3fde8=_0x47bb46;return _0x5e9c18(_0x35ce0a[_0x3fde8('0x380')],_0x5cfbb9,_0xee9032);});return _0x41368b[_0x47bb46('0x175a')]?_0x41368b:null;},_0x17cf31[_0x3f61b5('0x5a')][_0x3f61b5('0x2878')]=function(){var _0x15e622=_0x3f61b5;return _0x412593(this[_0x15e622('0x58a')][_0x15e622('0x36d7')][_0x15e622('0x3722')](),function(){return!0x0;});},_0x17cf31[_0x3f61b5('0x5a')][_0x3f61b5('0x2bc')]=function(_0x4802be,_0x2294dd){var _0x28ffbe=_0x3f61b5,_0x1b728a=this,_0x15535e=_0x45ee70(this[_0x28ffbe('0x2878')](),this[_0x28ffbe('0x183f')]);return _0x5c51e9(this[_0x28ffbe('0x58a')][_0x28ffbe('0x36d7')][_0x28ffbe('0x3722')]())[_0x28ffbe('0x33b0')](function(_0x37d12b,_0x38ef59){var _0x2054d9=_0x28ffbe,_0x2f15bc=_0x38ef59[_0x2054d9('0x1789')]===_0x44a9e0['TransitionHookScope'][_0x2054d9('0x2c8e')],_0x868d6b=_0x4802be[_0x38ef59[_0x2054d9('0x455')]]||[],_0x29a4b1=_0x2f15bc?_0x868d6b:[_0x142905(_0x868d6b)];return _0x37d12b[_0x38ef59[_0x2054d9('0x455')]]=_0x1b728a[_0x2054d9('0x168d')](_0x29a4b1,_0x15535e[_0x38ef59[_0x2054d9('0x455')]],_0x2294dd),_0x37d12b;},{});},_0x17cf31[_0x3f61b5('0x5a')][_0x3f61b5('0x32a4')]=function(_0x25c9f9,_0x13e65f){var _0x344ee2=_0x3f61b5,_0x3b01ee=this[_0x344ee2('0x2bc')](_0x25c9f9,_0x13e65f);return _0x5c51e9(_0x3b01ee)[_0x344ee2('0xafb')](_0x4acb32)?_0x3b01ee:null;},_0x17cf31['prototype'][_0x3f61b5('0x10ee')]=function(){var _0xe39df9=_0x3f61b5;this[_0xe39df9('0x2086')](this),this['_deregistered']=!0x0;},_0x17cf31;}();function _0x29a365(_0x2b7889,_0x439f0c,_0x9e6a16){var _0x560201=_0x2877f5,_0x1ff6c5=(_0x2b7889[_0x560201('0x2ec8')]=_0x2b7889[_0x560201('0x2ec8')]||{})[_0x9e6a16[_0x560201('0x455')]]=[],_0x5f469a=_0xf7741b(_0x1ff6c5);function _0x4501dc(_0xf97f0,_0x48b521,_0xd1a7c3){var _0x9e063f=_0x560201;void 0x0===_0xd1a7c3&&(_0xd1a7c3={});var _0xe8136d=new _0x1dfb02(_0x439f0c,_0x9e6a16,_0x48b521,_0xf97f0,_0x5f469a,_0xd1a7c3);return _0x1ff6c5[_0x9e063f('0x1a90')](_0xe8136d),_0xe8136d[_0x9e063f('0x10ee')][_0x9e063f('0x1ecd')](_0xe8136d);}return _0x2b7889[_0x9e6a16[_0x560201('0x455')]]=_0x4501dc,_0x4501dc;}var _0x7a42f9=function(){var _0xf2746e=_0x2877f5;function _0x5de875(_0xde6ed2){var _0x3b9aba=a2_0x4bfe;this[_0x3b9aba('0x20d1')]=_0xde6ed2;}return _0x5de875[_0xf2746e('0x5a')][_0xf2746e('0x33a7')]=function(_0x15e284){var _0x525e84=_0xf2746e,_0x4d2398=this;return this[_0x525e84('0x20d1')][_0x525e84('0x2b79')]['transitionService']['_pluginapi'][_0x525e84('0xb5')](_0x15e284)[_0x525e84('0x2d86')](function(_0x547bcd){return _0x4d2398['buildHooks'](_0x547bcd);})['reduce'](_0x40987e,[])[_0x525e84('0x3127')](_0x4acb32);},_0x5de875[_0xf2746e('0x5a')][_0xf2746e('0x2d26')]=function(_0x25ca67){var _0xb2ce0a=_0xf2746e,_0x37c670=this[_0xb2ce0a('0x20d1')],_0x5c59ef=_0x37c670['treeChanges'](),_0x5733f7=this[_0xb2ce0a('0xfda')](_0x25ca67,_0x5c59ef,_0x37c670);if(!_0x5733f7)return[];var _0x51065f={'transition':_0x37c670,'current':_0x37c670[_0xb2ce0a('0xded')]()[_0xb2ce0a('0x34c')]},_0x47adb2=function(_0x545815){var _0x29e9d6=_0xb2ce0a;return _0x545815[_0x29e9d6('0x32a4')](_0x5c59ef,_0x37c670)[_0x25ca67['criteriaMatchPath'][_0x29e9d6('0x455')]][_0x29e9d6('0x2d86')](function(_0x26b6e4){var _0x298bfe=_0x29e9d6,_0x1b0ce3=_0x45ee70({'bind':_0x545815[_0x298bfe('0x1ecd')],'traceData':{'hookType':_0x25ca67['name'],'context':_0x26b6e4}},_0x51065f),_0x4d5912=_0x25ca67['criteriaMatchPath'][_0x298bfe('0x1789')]===_0x44a9e0[_0x298bfe('0x2069')][_0x298bfe('0x2c8e')]?_0x26b6e4[_0x298bfe('0x380')][_0x298bfe('0x1840')]:null,_0x5c5e69=new _0x3484ca(_0x37c670,_0x4d5912,_0x545815,_0x1b0ce3);return{'hook':_0x545815,'node':_0x26b6e4,'transitionHook':_0x5c5e69};});};return _0x5733f7[_0xb2ce0a('0x2d86')](_0x47adb2)['reduce'](_0x40987e,[])[_0xb2ce0a('0x3902')](_0x2613bf(_0x25ca67['reverseSort']))[_0xb2ce0a('0x2d86')](function(_0x5db1bd){var _0x2af74e=_0xb2ce0a;return _0x5db1bd[_0x2af74e('0x2921')];});},_0x5de875[_0xf2746e('0x5a')]['getMatchingHooks']=function(_0x1ef1ae,_0x313276,_0x25a1ea){var _0x547857=_0xf2746e,_0x1e10a1=_0x1ef1ae[_0x547857('0x3607')]===_0x44a9e0['TransitionHookPhase'][_0x547857('0x884')],_0x382416=this['transition'][_0x547857('0x2b79')][_0x547857('0x170')];return(_0x1e10a1?[_0x382416]:[this[_0x547857('0x20d1')],_0x382416])[_0x547857('0x2d86')](function(_0x28944d){var _0x3e23a0=_0x547857;return _0x28944d['getHooks'](_0x1ef1ae[_0x3e23a0('0x455')]);})[_0x547857('0x3127')](_0x7c6609(_0x49ad08,'broken\x20event\x20named:\x20'+_0x1ef1ae['name']))[_0x547857('0x33b0')](_0x40987e,[])['filter'](function(_0x399685){var _0x2d988d=_0x547857;return _0x399685[_0x2d988d('0x32a4')](_0x313276,_0x25a1ea);});},_0x5de875;}();function _0x2613bf(_0x200184){return void 0x0===_0x200184&&(_0x200184=!0x1),function(_0x2914f9,_0x1c0ffb){var _0x5f46db=a2_0x4bfe,_0x597386=_0x200184?-0x1:0x1,_0x1673d8=(_0x2914f9[_0x5f46db('0x2503')][_0x5f46db('0x380')]['path'][_0x5f46db('0x175a')]-_0x1c0ffb[_0x5f46db('0x2503')][_0x5f46db('0x380')]['path']['length'])*_0x597386;return 0x0!==_0x1673d8?_0x1673d8:_0x1c0ffb[_0x5f46db('0x3157')]['priority']-_0x2914f9[_0x5f46db('0x3157')][_0x5f46db('0x19d3')];};}var _0x3a4bd2=_0x4103e4('self'),_0x5c149b=function(){var _0x313efe=_0x2877f5;function _0x4ebedc(_0x432e57,_0x192f37,_0x2b17c8){var _0x59c0a7=a2_0x4bfe,_0x464ded=this;if(this[_0x59c0a7('0x1297')]=_0x18a5ff['$q']['defer'](),this[_0x59c0a7('0x34a6')]=this[_0x59c0a7('0x1297')][_0x59c0a7('0x34a6')],this[_0x59c0a7('0x2ec8')]={},this[_0x59c0a7('0x358a')]=new _0x7a42f9(this),this[_0x59c0a7('0x7b2')]=function(){var _0x5c6bda=_0x59c0a7;return _0x464ded[_0x5c6bda('0x2b79')][_0x5c6bda('0x2514')]['transition']===_0x464ded;},this[_0x59c0a7('0x2b79')]=_0x2b17c8,this[_0x59c0a7('0x2b4a')]=_0x192f37,!_0x192f37['valid']())throw new Error(_0x192f37[_0x59c0a7('0x2534')]());this[_0x59c0a7('0x1d2')]=_0x45ee70({'current':_0x288ab9(this)},_0x192f37[_0x59c0a7('0xded')]()),this[_0x59c0a7('0x28bf')]=_0x2b17c8[_0x59c0a7('0x170')][_0x59c0a7('0x38ce')]++;var _0x416edb=_0x56d648[_0x59c0a7('0x30ad')](_0x432e57,_0x192f37);this[_0x59c0a7('0x23cd')]=_0x56d648[_0x59c0a7('0x2fc7')](_0x432e57,_0x416edb,this['_options']['reloadState']),this['createTransitionHookRegFns']();var _0x7ffc34=this[_0x59c0a7('0x358a')][_0x59c0a7('0x33a7')](_0x44a9e0['TransitionHookPhase'][_0x59c0a7('0x884')]);_0x3484ca[_0x59c0a7('0x1fe')](_0x7ffc34,function(){return null;}),this[_0x59c0a7('0x1965')](_0x2b17c8);}return _0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x3703')]=function(_0x2530e6,_0x3df885,_0x498b7f){},_0x4ebedc[_0x313efe('0x5a')]['onStart']=function(_0x36b066,_0x10d342,_0x47e5cf){},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x2743')]=function(_0x634037,_0x297872,_0x2845df){},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x2aaa')]=function(_0x44a52a,_0x17b30f,_0x23468d){},_0x4ebedc['prototype'][_0x313efe('0xc3f')]=function(_0x208b0a,_0x3d65bc,_0x1a35ea){},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x34ec')]=function(_0x2ea0d1,_0x273bfc,_0x5ecf60){},_0x4ebedc['prototype'][_0x313efe('0x13ab')]=function(_0x4cdd9c,_0x308a7d,_0x41f237){},_0x4ebedc['prototype'][_0x313efe('0x212f')]=function(_0x358477,_0x4e3f3a,_0x1ef7b2){},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x1acf')]=function(){var _0x4d2a1c=_0x313efe,_0xc9d5b7=this;this[_0x4d2a1c('0x2b79')][_0x4d2a1c('0x170')]['_pluginapi']['_getEvents']()[_0x4d2a1c('0x3127')](function(_0x47ffef){var _0x31a7cc=_0x4d2a1c;return _0x47ffef[_0x31a7cc('0x3607')]!==_0x44a9e0[_0x31a7cc('0x28b8')]['CREATE'];})['forEach'](function(_0xb029b5){var _0x427f37=_0x4d2a1c;return _0x29a365(_0xc9d5b7,_0xc9d5b7[_0x427f37('0x2b79')]['transitionService'],_0xb029b5);});},_0x4ebedc['prototype']['getHooks']=function(_0x1c5779){var _0x3485b3=_0x313efe;return this[_0x3485b3('0x2ec8')][_0x1c5779];},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x1965')]=function(_0x438a3e){var _0x37dc11=_0x313efe,_0xac0476=this[_0x37dc11('0x23cd')][_0x37dc11('0x1b96')][_0x37dc11('0x2d86')](function(_0x28b47b){return _0x28b47b['state'];});_0x56d648[_0x37dc11('0x1965')](_0x438a3e[_0x37dc11('0x170')]['$view'],this[_0x37dc11('0x23cd')]['to'],_0xac0476);},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x28d')]=function(){var _0x1dc723=_0x313efe;return _0x142905(this[_0x1dc723('0x23cd')][_0x1dc723('0x2f5')])[_0x1dc723('0x380')];},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x3346')]=function(){var _0x14d705=_0x313efe;return _0x142905(this[_0x14d705('0x23cd')]['to'])['state'];},_0x4ebedc[_0x313efe('0x5a')]['from']=function(){var _0x39adfb=_0x313efe;return this[_0x39adfb('0x28d')]()['self'];},_0x4ebedc[_0x313efe('0x5a')]['to']=function(){var _0x45e9a5=_0x313efe;return this[_0x45e9a5('0x3346')]()[_0x45e9a5('0x1840')];},_0x4ebedc[_0x313efe('0x5a')]['targetState']=function(){return this['_targetState'];},_0x4ebedc['prototype']['is']=function(_0x18e13d){var _0x27fdff=_0x313efe;return _0x18e13d instanceof _0x4ebedc?this['is']({'to':_0x18e13d[_0x27fdff('0x3346')]()[_0x27fdff('0x455')],'from':_0x18e13d[_0x27fdff('0x28d')]()['name']}):!(_0x18e13d['to']&&!_0x5e9c18(this[_0x27fdff('0x3346')](),_0x18e13d['to'],this)||_0x18e13d[_0x27fdff('0x2f5')]&&!_0x5e9c18(this[_0x27fdff('0x28d')](),_0x18e13d['from'],this));},_0x4ebedc[_0x313efe('0x5a')]['params']=function(_0x1f0b68){var _0xbabc4a=_0x313efe;return void 0x0===_0x1f0b68&&(_0x1f0b68='to'),Object[_0xbabc4a('0x3350')](this[_0xbabc4a('0x23cd')][_0x1f0b68][_0xbabc4a('0x2d86')](_0x4103e4(_0xbabc4a('0x236e')))[_0xbabc4a('0x33b0')](_0x2d1fcb,{}));},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x10d6')]=function(){var _0x4b633b=_0x313efe,_0x196794=this[_0x4b633b('0x46e')](_0x4b633b('0x2f5')),_0x288f93=this[_0x4b633b('0x46e')]('to'),_0xd605b8=[][_0x4b633b('0x12b4')](this[_0x4b633b('0x23cd')]['to'])[_0x4b633b('0x12b4')](this[_0x4b633b('0x23cd')][_0x4b633b('0x2f5')])['map'](function(_0x560ad6){var _0xe5ab4a=_0x4b633b;return _0x560ad6[_0xe5ab4a('0xe80')];})[_0x4b633b('0x33b0')](_0x4fe708,[])[_0x4b633b('0x33b0')](_0x3b3fbf,[]);return _0x48cf64['changed'](_0xd605b8,_0x196794,_0x288f93)['reduce'](function(_0x304443,_0x8698ff){return _0x304443[_0x8698ff['id']]=_0x288f93[_0x8698ff['id']],_0x304443;},{});},_0x4ebedc['prototype'][_0x313efe('0xe91')]=function(_0x24ab97,_0x515aa4){var _0x27e1f8=_0x313efe;void 0x0===_0x515aa4&&(_0x515aa4='to');var _0x435f7c=this[_0x27e1f8('0x23cd')][_0x515aa4];return _0x24ab97&&(_0x435f7c=_0x56d648[_0x27e1f8('0x283')](_0x435f7c,function(_0x27aee5){var _0xd5b4a9=_0x27e1f8;return _0x27aee5[_0xd5b4a9('0x380')]===_0x24ab97||_0x27aee5[_0xd5b4a9('0x380')][_0xd5b4a9('0x455')]===_0x24ab97;})),new _0x474a90(_0x435f7c)['injector']();},_0x4ebedc[_0x313efe('0x5a')]['getResolveTokens']=function(_0x25505d){var _0x50bba8=_0x313efe;return void 0x0===_0x25505d&&(_0x25505d='to'),new _0x474a90(this[_0x50bba8('0x23cd')][_0x25505d])[_0x50bba8('0x2566')]();},_0x4ebedc[_0x313efe('0x5a')]['addResolvable']=function(_0x3c109b,_0x301ef9){var _0x3de2c0=_0x313efe;void 0x0===_0x301ef9&&(_0x301ef9=''),_0x3c109b=_0x3d3db3(_0x305b72)(_0x3c109b)?_0x3c109b:new _0x305b72(_0x3c109b);var _0x48f52e=_0x3de2c0('0x151d')==typeof _0x301ef9?_0x301ef9:_0x301ef9[_0x3de2c0('0x455')],_0x5c6151=this['_treeChanges']['to'],_0x1027a3=_0x42a99f(_0x5c6151,function(_0x1b0fad){var _0xd06d92=_0x3de2c0;return _0x1b0fad['state'][_0xd06d92('0x455')]===_0x48f52e;});new _0x474a90(_0x5c6151)['addResolvables']([_0x3c109b],_0x1027a3[_0x3de2c0('0x380')]);},_0x4ebedc['prototype'][_0x313efe('0x329b')]=function(){var _0x386add=_0x313efe;return this['_options'][_0x386add('0x329b')]||null;},_0x4ebedc['prototype'][_0x313efe('0x1546')]=function(){var _0x38e5f5=_0x313efe,_0x37d300=this[_0x38e5f5('0x329b')]();return _0x37d300&&_0x37d300[_0x38e5f5('0x1546')]()||this;},_0x4ebedc[_0x313efe('0x5a')]['options']=function(){var _0x4e2bf5=_0x313efe;return this[_0x4e2bf5('0x1d2')];},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x1b96')]=function(){var _0x40c7b8=_0x313efe;return _0x51960c(this[_0x40c7b8('0x23cd')][_0x40c7b8('0x1b96')],_0x4103e4('state'))[_0x40c7b8('0x2d86')](_0x3a4bd2);},_0x4ebedc['prototype']['exiting']=function(){var _0x19bcac=_0x313efe;return _0x51960c(this['_treeChanges'][_0x19bcac('0xed5')],_0x4103e4(_0x19bcac('0x380')))[_0x19bcac('0x2d86')](_0x3a4bd2)[_0x19bcac('0x2572')]();},_0x4ebedc['prototype'][_0x313efe('0x293c')]=function(){var _0x5d6cbd=_0x313efe;return _0x51960c(this[_0x5d6cbd('0x23cd')][_0x5d6cbd('0x293c')],_0x4103e4(_0x5d6cbd('0x380')))[_0x5d6cbd('0x2d86')](_0x3a4bd2);},_0x4ebedc[_0x313efe('0x5a')]['views']=function(_0x483abd,_0x40244d){var _0xf4c49d=_0x313efe;void 0x0===_0x483abd&&(_0x483abd='entering');var _0x4fdd2d=this[_0xf4c49d('0x23cd')][_0x483abd];return(_0x4fdd2d=_0x40244d?_0x4fdd2d[_0xf4c49d('0x3127')](_0x480afb(_0xf4c49d('0x380'),_0x40244d)):_0x4fdd2d)[_0xf4c49d('0x2d86')](_0x4103e4(_0xf4c49d('0xe3a')))[_0xf4c49d('0x3127')](_0x4acb32)[_0xf4c49d('0x33b0')](_0x40987e,[]);},_0x4ebedc[_0x313efe('0x5a')]['treeChanges']=function(_0x4b0398){var _0x30f732=_0x313efe;return _0x4b0398?this['_treeChanges'][_0x4b0398]:this[_0x30f732('0x23cd')];},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x734')]=function(_0x3cea6a){var _0x1eab2d=_0x313efe;for(var _0x3ff5d4=0x1,_0x465dee=this;null!=(_0x465dee=_0x465dee[_0x1eab2d('0x329b')]());)if(++_0x3ff5d4>0x14)throw new Error(_0x1eab2d('0x42d'));var _0x1fa862={'redirectedFrom':this,'source':_0x1eab2d('0x734')};_0x1eab2d('0x365f')===this[_0x1eab2d('0xded')]()[_0x1eab2d('0x1a07')]&&!0x1!==_0x3cea6a[_0x1eab2d('0xded')]()['location']&&(_0x1fa862[_0x1eab2d('0x12')]='replace');var _0x23700c=_0x45ee70({},this[_0x1eab2d('0xded')](),_0x3cea6a[_0x1eab2d('0xded')](),_0x1fa862);_0x3cea6a=_0x3cea6a['withOptions'](_0x23700c,!0x0);var _0x5a7640=this[_0x1eab2d('0x2b79')][_0x1eab2d('0x170')][_0x1eab2d('0x126')](this[_0x1eab2d('0x23cd')][_0x1eab2d('0x2f5')],_0x3cea6a),_0x249e21=this['_treeChanges'][_0x1eab2d('0x1b96')],_0x29a135=_0x5a7640[_0x1eab2d('0x23cd')][_0x1eab2d('0x1b96')],_0x451f4e=function(_0x45837b){return function(_0x4045c8){var _0x2b881a=a2_0x4bfe;return _0x45837b&&_0x4045c8[_0x2b881a('0x380')][_0x2b881a('0x287a')][_0x45837b[_0x2b881a('0x455')]];};};return _0x56d648[_0x1eab2d('0x1d60')](_0x29a135,_0x249e21,_0x56d648[_0x1eab2d('0x2c36')])[_0x1eab2d('0x3127')](_0x3d2611(_0x451f4e(_0x3cea6a['options']()['reloadState'])))['forEach'](function(_0x25ecfa,_0xf907ef){var _0x376510=_0x1eab2d;_0x25ecfa[_0x376510('0x102a')]=_0x249e21[_0xf907ef][_0x376510('0x102a')];}),_0x5a7640;},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x2ac7')]=function(){var _0x4a5de1=_0x313efe,_0x49823f=this[_0x4a5de1('0x23cd')];if(!(this[_0x4a5de1('0x1d2')][_0x4a5de1('0x2999')]||_0x49823f[_0x4a5de1('0xed5')][_0x4a5de1('0x175a')]||_0x49823f[_0x4a5de1('0x1b96')][_0x4a5de1('0x175a')]||_0x49823f['to'][_0x4a5de1('0x175a')]!==_0x49823f['from']['length']||_0x3c52f1(_0x49823f['to'],_0x49823f[_0x4a5de1('0x2f5')])['map'](function(_0x48d799){var _0x56f09c=_0x4a5de1;return _0x48d799[0x0][_0x56f09c('0x380')]!==_0x48d799[0x1][_0x56f09c('0x380')];})[_0x4a5de1('0x33b0')](_0xbe1a5c,!0x1))){var _0xb825cb=_0x49823f['to'][_0x4a5de1('0x2d86')](function(_0x45a943){var _0x167602=_0x4a5de1;return _0x45a943[_0x167602('0xe80')];}),_0x1f1cc4=[_0x49823f['to'],_0x49823f[_0x4a5de1('0x2f5')]][_0x4a5de1('0x2d86')](function(_0x29dfe1){var _0x4fdbef=_0x4a5de1;return _0x29dfe1[_0x4fdbef('0x2d86')](function(_0x5d50ee){var _0x52fcc2=_0x4fdbef;return _0x5d50ee[_0x52fcc2('0x236e')];});});return _0x3c52f1(_0xb825cb,_0x1f1cc4[0x0],_0x1f1cc4[0x1])[_0x4a5de1('0x2d86')](function(_0x55a10c){var _0x878156=_0x4a5de1,_0x3e03a4=_0x55a10c[0x0],_0x2eba6f=_0x55a10c[0x1],_0x5a9275=_0x55a10c[0x2];return _0x48cf64[_0x878156('0x3259')](_0x3e03a4,_0x2eba6f,_0x5a9275);})[_0x4a5de1('0x33b0')](_0x40987e,[]);}},_0x4ebedc['prototype'][_0x313efe('0x31f4')]=function(){var _0x3b6f92=_0x313efe,_0x4b7738=this[_0x3b6f92('0x2ac7')]();return!!_0x4b7738&&_0x4b7738[_0x3b6f92('0x2d86')](function(_0x47590f){var _0x46d6f1=_0x3b6f92;return _0x47590f[_0x46d6f1('0x31f4')];})[_0x3b6f92('0x33b0')](_0xbe1a5c,!0x1);},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x2e37')]=function(){return!!this['_ignoredReason']();},_0x4ebedc['prototype'][_0x313efe('0xa7f')]=function(){var _0x187dad=_0x313efe,_0xab1f7c=this['router'][_0x187dad('0x2514')]['transition'],_0x3ec95e=this[_0x187dad('0x1d2')]['reloadState'],_0x51b71e=function(_0x2866ea,_0x1c01b1){var _0x16dfa3=_0x187dad;if(_0x2866ea['length']!==_0x1c01b1[_0x16dfa3('0x175a')])return!0x1;var _0x3597d3=_0x56d648[_0x16dfa3('0x1d60')](_0x2866ea,_0x1c01b1);return _0x2866ea[_0x16dfa3('0x175a')]===_0x3597d3[_0x16dfa3('0x3127')](function(_0x25d987){var _0x2ed7a0=_0x16dfa3;return!_0x3ec95e||!_0x25d987['state'][_0x2ed7a0('0x287a')][_0x3ec95e[_0x2ed7a0('0x455')]];})[_0x16dfa3('0x175a')];},_0x2e41a8=this[_0x187dad('0x2fc7')](),_0x2bd3dc=_0xab1f7c&&_0xab1f7c['treeChanges']();return _0x2bd3dc&&_0x51b71e(_0x2bd3dc['to'],_0x2e41a8['to'])&&_0x51b71e(_0x2bd3dc[_0x187dad('0xed5')],_0x2e41a8[_0x187dad('0xed5')])?_0x187dad('0xc5f'):0x0===_0x2e41a8['exiting'][_0x187dad('0x175a')]&&0x0===_0x2e41a8['entering']['length']&&_0x51b71e(_0x2e41a8[_0x187dad('0x2f5')],_0x2e41a8['to'])?_0x187dad('0x1ae'):void 0x0;},_0x4ebedc['prototype'][_0x313efe('0x202f')]=function(){var _0x23ed0d=_0x313efe,_0x48737c=this,_0x22a471=_0x3484ca['runAllHooks'],_0x39ac94=function(_0x1201ff){var _0x473bf4=a2_0x4bfe;return _0x48737c[_0x473bf4('0x358a')][_0x473bf4('0x33a7')](_0x1201ff);},_0x2a5d87=function(){var _0x41d666=a2_0x4bfe;_0x59472f[_0x41d666('0x1504')](_0x48737c[_0x41d666('0x3346')](),_0x48737c),_0x48737c[_0x41d666('0x2341')]=!0x0,_0x48737c[_0x41d666('0x1297')]['resolve'](_0x48737c['to']()),_0x22a471(_0x39ac94(_0x44a9e0[_0x41d666('0x28b8')][_0x41d666('0x1d6a')]));},_0x59a99c=function(_0x471811){var _0x4ef495=a2_0x4bfe;_0x59472f[_0x4ef495('0x3a')](_0x471811,_0x48737c),_0x48737c[_0x4ef495('0x2341')]=!0x1,_0x48737c[_0x4ef495('0x1297')][_0x4ef495('0xf51')](_0x471811),_0x48737c[_0x4ef495('0x162b')]=_0x471811,_0x22a471(_0x39ac94(_0x44a9e0['TransitionHookPhase'][_0x4ef495('0x3048')]));},_0x184902=function(){var _0x8abfdd=a2_0x4bfe,_0x5791fa=_0x39ac94(_0x44a9e0[_0x8abfdd('0x28b8')]['RUN']),_0x8bf870=function(){var _0x116618=_0x8abfdd;return _0x18a5ff['$q'][_0x116618('0x36d1')](void 0x0);};return _0x3484ca[_0x8abfdd('0x1fe')](_0x5791fa,_0x8bf870);},_0x414f8e=function(){var _0x596711=a2_0x4bfe,_0x117e7d=_0x48737c[_0x596711('0x2b79')][_0x596711('0x2514')];return _0x117e7d[_0x596711('0xf86')]=_0x48737c[_0x596711('0x28bf')],_0x117e7d['transition']=_0x48737c,_0x117e7d[_0x596711('0x321e')]['enqueue'](_0x48737c),_0x59472f['traceTransitionStart'](_0x48737c),_0x18a5ff['$q'][_0x596711('0x36d1')](void 0x0);},_0x328c8d=_0x39ac94(_0x44a9e0[_0x23ed0d('0x28b8')]['BEFORE']);return _0x3484ca[_0x23ed0d('0x1fe')](_0x328c8d,_0x414f8e)[_0x23ed0d('0x26b5')](_0x184902)['then'](_0x2a5d87,_0x59a99c),this[_0x23ed0d('0x34a6')];},_0x4ebedc['prototype'][_0x313efe('0x3852')]=function(){var _0x11e486=_0x313efe;return!this[_0x11e486('0x2534')]()||void 0x0!==this[_0x11e486('0x2341')];},_0x4ebedc[_0x313efe('0x5a')]['abort']=function(){var _0x46f4d9=_0x313efe;_0x1d472c(this[_0x46f4d9('0x2341')])&&(this[_0x46f4d9('0x4c2')]=!0x0);},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x2534')]=function(){var _0x1d94d9=_0x313efe,_0x4deae2=this[_0x1d94d9('0x3346')]();if(_0x4deae2['self'][_0x1d94d9('0x202d')])return _0x250c92[_0x1d94d9('0x3187')](_0x1d94d9('0x1d37')+_0x4deae2[_0x1d94d9('0x455')]+'\x27');var _0x3e7069=_0x4deae2['parameters'](),_0x2d2386=this[_0x1d94d9('0x46e')](),_0x1c7838=_0x3e7069[_0x1d94d9('0x3127')](function(_0x282393){var _0x2a9e57=_0x1d94d9;return!_0x282393[_0x2a9e57('0x2937')](_0x2d2386[_0x282393['id']]);});if(_0x1c7838[_0x1d94d9('0x175a')]){var _0x3b8e30=_0x1c7838[_0x1d94d9('0x2d86')](function(_0x1bdd18){return'['+_0x1bdd18['id']+':'+_0x21554a(_0x2d2386[_0x1bdd18['id']])+']';})[_0x1d94d9('0x6a8')](',\x20'),_0x2f2d0d=_0x1d94d9('0x7d7')+_0x4deae2[_0x1d94d9('0x455')]+'\x27:\x20'+_0x3b8e30;return _0x250c92[_0x1d94d9('0x3187')](_0x2f2d0d);}return!0x1===this[_0x1d94d9('0x2341')]?this[_0x1d94d9('0x162b')]:void 0x0;},_0x4ebedc[_0x313efe('0x5a')][_0x313efe('0x6ef')]=function(){var _0x2c2147=_0x313efe,_0x4db1af=this['from'](),_0x10c40f=this['to'](),_0x47e1f8=function(_0x615e2e){return null!==_0x615e2e['#']&&void 0x0!==_0x615e2e['#']?_0x615e2e:_0x4e416f(_0x615e2e,['#']);};return _0x2c2147('0x61e')+this['$id']+_0x2c2147('0xab6')+(_0x50b2a7(_0x4db1af)?_0x4db1af[_0x2c2147('0x455')]:_0x4db1af)+'\x27'+_0x21554a(_0x47e1f8(this[_0x2c2147('0x23cd')][_0x2c2147('0x2f5')][_0x2c2147('0x2d86')](_0x4103e4('paramValues'))[_0x2c2147('0x33b0')](_0x2d1fcb,{})))+_0x2c2147('0x85c')+(this['valid']()?'':'(X)\x20')+'\x27'+(_0x50b2a7(_0x10c40f)?_0x10c40f[_0x2c2147('0x455')]:_0x10c40f)+'\x27'+_0x21554a(_0x47e1f8(this[_0x2c2147('0x46e')]()))+'\x20)';},_0x4ebedc[_0x313efe('0x12c7')]=_0x4ebedc,_0x4ebedc;}();function _0x8ff857(_0x54e706,_0x4d5f9b){var _0x1ce8e4=_0x2877f5,_0x22a46d=['',''],_0x2cd27a=_0x54e706[_0x1ce8e4('0x34c8')](/[\\\[\]\^$*+?.()|{}]/g,_0x1ce8e4('0x524'));if(!_0x4d5f9b)return _0x2cd27a;switch(_0x4d5f9b[_0x1ce8e4('0x182f')]){case!0x1:_0x22a46d=['(',')'+(_0x4d5f9b[_0x1ce8e4('0xd6a')]?'?':'')];break;case!0x0:_0x2cd27a=_0x2cd27a['replace'](/\/$/,''),_0x22a46d=[_0x1ce8e4('0xc36'),_0x1ce8e4('0x527')];break;default:_0x22a46d=['('+_0x4d5f9b[_0x1ce8e4('0x182f')]+'|',')?'];}return _0x2cd27a+_0x22a46d[0x0]+_0x4d5f9b[_0x1ce8e4('0x21a5')][_0x1ce8e4('0x2eb1')][_0x1ce8e4('0x1a07')]+_0x22a46d[0x1];}var _0x5f451e=function(_0x344163,_0x3b935c,_0x29bb0b){return _0x344163[_0x3b935c]=_0x344163[_0x3b935c]||_0x29bb0b();},_0x22b217=_0x19099c('/'),_0x13ec28={'state':{'params':{}},'strict':!0x0,'caseInsensitive':!0x0,'decodeParams':!0x0},_0x2f3c82=function(){var _0x42a475=_0x2877f5;function _0x78540b(_0x381366,_0x17b51a,_0x1e90e2,_0x2ad696){var _0x377d80=a2_0x4bfe,_0x4a70bb=this;this['_cache']={'path':[this]},this[_0x377d80('0x37a4')]=[],this[_0x377d80('0x1a59')]=[],this[_0x377d80('0x34f7')]=[],this[_0x377d80('0x1053')]=[],this['config']=_0x2ad696=_0x1b8ff7(_0x2ad696,_0x13ec28),this['pattern']=_0x381366;for(var _0x5cca98,_0x2f014d,_0x350263,_0x5c3ea5=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,_0x41ca56=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,_0x326741=[],_0x9f84ae=0x0,_0x8099d8=function(_0x167dcc){var _0x5dc360=_0x377d80;if(!_0x78540b[_0x5dc360('0x1614')][_0x5dc360('0x19cd')](_0x167dcc))throw new Error(_0x5dc360('0x3175')+_0x167dcc+_0x5dc360('0x2d8f')+_0x381366+'\x27');if(_0x42a99f(_0x4a70bb['_params'],_0x480afb('id',_0x167dcc)))throw new Error(_0x5dc360('0x1226')+_0x167dcc+'\x27\x20in\x20pattern\x20\x27'+_0x381366+'\x27');},_0x4f8032=function(_0x2f1d2e,_0x49c039){var _0x4a738b=_0x377d80,_0x28f6d2=_0x2f1d2e[0x2]||_0x2f1d2e[0x3],_0x10d653=_0x49c039?_0x2f1d2e[0x4]:_0x2f1d2e[0x4]||('*'===_0x2f1d2e[0x1]?_0x4a738b('0x2887'):null),_0x18f170=function(_0x34168a){var _0x4020e1=_0x4a738b;return _0x4e6d69(_0x17b51a['type'](_0x49c039?_0x4020e1('0x34dd'):_0x4020e1('0x75f')),{'pattern':new RegExp(_0x34168a,_0x4a70bb[_0x4020e1('0x3486')]['caseInsensitive']?'i':void 0x0)});};return{'id':_0x28f6d2,'regexp':_0x10d653,'segment':_0x381366[_0x4a738b('0x92')](_0x9f84ae,_0x2f1d2e[_0x4a738b('0x1b25')]),'type':_0x10d653?_0x17b51a[_0x4a738b('0x21a5')](_0x10d653)||_0x18f170(_0x10d653):null};};(_0x5cca98=_0x5c3ea5['exec'](_0x381366))&&!((_0x2f014d=_0x4f8032(_0x5cca98,!0x1))[_0x377d80('0x19d0')][_0x377d80('0xe1c')]('?')>=0x0);)_0x8099d8(_0x2f014d['id']),this['_params'][_0x377d80('0x1a90')](_0x1e90e2['fromPath'](_0x2f014d['id'],_0x2f014d[_0x377d80('0x21a5')],_0x2ad696['state'])),this[_0x377d80('0x34f7')]['push'](_0x2f014d[_0x377d80('0x19d0')]),_0x326741['push']([_0x2f014d['segment'],_0x142905(this[_0x377d80('0x1a59')])]),_0x9f84ae=_0x5c3ea5[_0x377d80('0x2bff')];var _0x27cc48=(_0x350263=_0x381366['substring'](_0x9f84ae))['indexOf']('?');if(_0x27cc48>=0x0){var _0x51a3e3=_0x350263['substring'](_0x27cc48);if(_0x350263=_0x350263[_0x377d80('0x92')](0x0,_0x27cc48),_0x51a3e3[_0x377d80('0x175a')]>0x0)for(_0x9f84ae=0x0;_0x5cca98=_0x41ca56['exec'](_0x51a3e3);)_0x8099d8((_0x2f014d=_0x4f8032(_0x5cca98,!0x0))['id']),this['_params'][_0x377d80('0x1a90')](_0x1e90e2[_0x377d80('0x2af5')](_0x2f014d['id'],_0x2f014d[_0x377d80('0x21a5')],_0x2ad696[_0x377d80('0x380')])),_0x9f84ae=_0x5c3ea5[_0x377d80('0x2bff')];}this[_0x377d80('0x34f7')][_0x377d80('0x1a90')](_0x350263),this[_0x377d80('0x1053')]=_0x326741[_0x377d80('0x2d86')](function(_0x5285ca){return _0x8ff857['apply'](null,_0x5285ca);})[_0x377d80('0x12b4')](_0x8ff857(_0x350263));}return _0x78540b['encodeDashes']=function(_0x519b16){var _0x29b9e8=a2_0x4bfe;return encodeURIComponent(_0x519b16)[_0x29b9e8('0x34c8')](/-/g,function(_0x431295){var _0x498455=_0x29b9e8;return _0x498455('0x283f')+_0x431295[_0x498455('0x2dd2')](0x0)[_0x498455('0x6ef')](0x10)[_0x498455('0x1a66')]();});},_0x78540b['pathSegmentsAndParams']=function(_0xbfd635){var _0x33c2c3=a2_0x4bfe;return _0x3c52f1(_0xbfd635[_0x33c2c3('0x34f7')],_0xbfd635[_0x33c2c3('0x1a59')][_0x33c2c3('0x3127')](function(_0xf9e3c1){var _0x5e2cf4=_0x33c2c3;return _0xf9e3c1['location']===_0x44a9e0[_0x5e2cf4('0x1499')][_0x5e2cf4('0x3164')];})[_0x33c2c3('0x12b4')](void 0x0))[_0x33c2c3('0x33b0')](_0x40987e,[])[_0x33c2c3('0x3127')](function(_0xe662f6){return''!==_0xe662f6&&_0x417a63(_0xe662f6);});},_0x78540b[_0x42a475('0x172a')]=function(_0x57dcad){var _0xd791ac=_0x42a475;return _0x57dcad['_params'][_0xd791ac('0x3127')](function(_0x2c3b2c){var _0x517780=_0xd791ac;return _0x2c3b2c[_0x517780('0x12')]===_0x44a9e0[_0x517780('0x1499')][_0x517780('0x345a')];});},_0x78540b[_0x42a475('0x2006')]=function(_0x83c20a,_0x9374a){var _0x580a45=_0x42a475,_0x15e338=function(_0x2070f9){var _0xad9be0=a2_0x4bfe;return _0x2070f9['_cache']['segments']=_0x2070f9['_cache']['segments']||_0x2070f9[_0xad9be0('0x2186')][_0xad9be0('0x75f')][_0xad9be0('0x2d86')](_0x78540b[_0xad9be0('0xd14')])[_0xad9be0('0x33b0')](_0x40987e,[])['reduce'](_0x3bf27c,[])['map'](function(_0xecad05){return _0x3f2c2e(_0xecad05)?_0x22b217(_0xecad05):_0xecad05;})[_0xad9be0('0x33b0')](_0x40987e,[]);},_0x5b6a72=function(_0x3df19c){var _0x3f5cc7=a2_0x4bfe;return _0x3df19c['_cache'][_0x3f5cc7('0x2a90')]=_0x3df19c[_0x3f5cc7('0x2186')]['weights']||_0x15e338(_0x3df19c)[_0x3f5cc7('0x2d86')](function(_0x36a3fb){return'/'===_0x36a3fb?0x1:_0x3f2c2e(_0x36a3fb)?0x2:_0x36a3fb instanceof _0x48cf64?0x3:void 0x0;});},_0x2bc10f=function(_0x367466,_0x9bd31e,_0x1866cc){var _0x4c2fcc=a2_0x4bfe;for(var _0x3d4662=Math['max'](_0x367466[_0x4c2fcc('0x175a')],_0x9bd31e['length']);_0x367466[_0x4c2fcc('0x175a')]<_0x3d4662;)_0x367466['push'](_0x1866cc);for(;_0x9bd31e[_0x4c2fcc('0x175a')]<_0x3d4662;)_0x9bd31e[_0x4c2fcc('0x1a90')](_0x1866cc);},_0x279a18=_0x5b6a72(_0x83c20a),_0x1a6a42=_0x5b6a72(_0x9374a);_0x2bc10f(_0x279a18,_0x1a6a42,0x0);var _0x44646f,_0x414dd0,_0x39c204=_0x3c52f1(_0x279a18,_0x1a6a42);for(_0x414dd0=0x0;_0x414dd0<_0x39c204[_0x580a45('0x175a')];_0x414dd0++)if(0x0!=(_0x44646f=_0x39c204[_0x414dd0][0x0]-_0x39c204[_0x414dd0][0x1]))return _0x44646f;return 0x0;},_0x78540b['prototype'][_0x42a475('0x10f')]=function(_0x3fd4dc){var _0x2e2ea6=_0x42a475;return this[_0x2e2ea6('0x37a4')][_0x2e2ea6('0x1a90')](_0x3fd4dc),_0x3fd4dc['_cache']={'path':this[_0x2e2ea6('0x2186')]['path']['concat'](_0x3fd4dc),'parent':this,'pattern':null},_0x3fd4dc;},_0x78540b[_0x42a475('0x5a')][_0x42a475('0x2e5b')]=function(){var _0x1f40fa=_0x42a475;return this[_0x1f40fa('0x2186')][_0x1f40fa('0x75f')][0x0]===this;},_0x78540b[_0x42a475('0x5a')][_0x42a475('0x6ef')]=function(){var _0x4791ff=_0x42a475;return this[_0x4791ff('0x2eb1')];},_0x78540b[_0x42a475('0x5a')][_0x42a475('0x38f1')]=function(_0xb5faa9,_0x38e506){var _0x381a7a=_0x42a475;return _0x417a63(_0xb5faa9)&&(!this['config'][_0x381a7a('0x343b')]||_0x38e506['type'][_0x381a7a('0x18ca')]||_0x49ad08(_0xb5faa9)||(_0xb5faa9=decodeURIComponent(_0xb5faa9)),_0xb5faa9=_0x38e506[_0x381a7a('0x21a5')][_0x381a7a('0xab1')](_0xb5faa9)),_0x38e506[_0x381a7a('0x248e')](_0xb5faa9);},_0x78540b[_0x42a475('0x5a')]['exec']=function(_0x55593d,_0xde4a8b,_0x480c37,_0x342fa5){var _0x1326ad=_0x42a475,_0x552d98=this;void 0x0===_0xde4a8b&&(_0xde4a8b={});var _0xdf9261=_0x5f451e(this['_cache'],_0x1326ad('0x2eb1'),function(){var _0x75a79d=_0x1326ad;return new RegExp(['^',_0x5c7ad4(_0x552d98[_0x75a79d('0x2186')][_0x75a79d('0x75f')][_0x75a79d('0x2d86')](_0x4103e4('_compiled')))[_0x75a79d('0x6a8')](''),!0x1===_0x552d98[_0x75a79d('0x3486')][_0x75a79d('0x2ac6')]?'/?':'','$'][_0x75a79d('0x6a8')](''),_0x552d98[_0x75a79d('0x3486')][_0x75a79d('0x34d7')]?'i':void 0x0);})[_0x1326ad('0x27cd')](_0x55593d);if(!_0xdf9261)return null;var _0x527ae7=this[_0x1326ad('0x3549')](),_0x7c895d=_0x527ae7[_0x1326ad('0x3127')](function(_0x260e78){return!_0x260e78['isSearch']();}),_0x2619a9=_0x527ae7[_0x1326ad('0x3127')](function(_0x39748e){var _0x592bc0=_0x1326ad;return _0x39748e[_0x592bc0('0x917')]();}),_0x42ea29=this[_0x1326ad('0x2186')][_0x1326ad('0x75f')][_0x1326ad('0x2d86')](function(_0x3f7bec){var _0x1eef7d=_0x1326ad;return _0x3f7bec['_segments'][_0x1eef7d('0x175a')]-0x1;})[_0x1326ad('0x33b0')](function(_0x1bfda4,_0x4418e1){return _0x1bfda4+_0x4418e1;}),_0x5e61e0={};if(_0x42ea29!==_0xdf9261[_0x1326ad('0x175a')]-0x1)throw new Error('Unbalanced\x20capture\x20group\x20in\x20route\x20\x27'+this[_0x1326ad('0x2eb1')]+'\x27');function _0x56d059(_0x5eb2d9){var _0x4aec11=_0x1326ad,_0x1b0c43=function(_0x1a4ab9){var _0x4a5324=a2_0x4bfe;return _0x1a4ab9[_0x4a5324('0x23ee')]('')['reverse']()[_0x4a5324('0x6a8')]('');},_0x9b2b66=function(_0x39c448){return _0x39c448['replace'](/\\-/g,'-');},_0x450d44=_0x51960c(_0x1b0c43(_0x5eb2d9)[_0x4aec11('0x23ee')](/-(?!\\)/),_0x1b0c43);return _0x51960c(_0x450d44,_0x9b2b66)[_0x4aec11('0x2572')]();}for(var _0x4b5c4c=0x0;_0x4b5c4c<_0x42ea29;_0x4b5c4c++){for(var _0x525783=_0x7c895d[_0x4b5c4c],_0x2cade5=_0xdf9261[_0x4b5c4c+0x1],_0x756ecf=0x0;_0x756ecf<_0x525783[_0x1326ad('0x34c8')]['length'];_0x756ecf++)_0x525783[_0x1326ad('0x34c8')][_0x756ecf][_0x1326ad('0x2f5')]===_0x2cade5&&(_0x2cade5=_0x525783[_0x1326ad('0x34c8')][_0x756ecf]['to']);_0x2cade5&&!0x0===_0x525783[_0x1326ad('0x305')]&&(_0x2cade5=_0x56d059(_0x2cade5)),_0x5e61e0[_0x525783['id']]=this[_0x1326ad('0x38f1')](_0x2cade5,_0x525783);}return _0x2619a9['forEach'](function(_0x267cd1){var _0x4fe3c=_0x1326ad;for(var _0x9e6217=_0xde4a8b[_0x267cd1['id']],_0x3a359a=0x0;_0x3a359a<_0x267cd1[_0x4fe3c('0x34c8')][_0x4fe3c('0x175a')];_0x3a359a++)_0x267cd1[_0x4fe3c('0x34c8')][_0x3a359a][_0x4fe3c('0x2f5')]===_0x9e6217&&(_0x9e6217=_0x267cd1['replace'][_0x3a359a]['to']);_0x5e61e0[_0x267cd1['id']]=_0x552d98[_0x4fe3c('0x38f1')](_0x9e6217,_0x267cd1);}),_0x480c37&&(_0x5e61e0['#']=_0x480c37),_0x5e61e0;},_0x78540b[_0x42a475('0x5a')][_0x42a475('0x3549')]=function(_0x1ecb45){var _0x441e66=_0x42a475;return void 0x0===_0x1ecb45&&(_0x1ecb45={}),!0x1===_0x1ecb45[_0x441e66('0xf40')]?this['_params']:_0x5c7ad4(this[_0x441e66('0x2186')][_0x441e66('0x75f')][_0x441e66('0x2d86')](function(_0x237526){var _0x5d2eb0=_0x441e66;return _0x237526[_0x5d2eb0('0x1a59')];}));},_0x78540b[_0x42a475('0x5a')][_0x42a475('0x25f3')]=function(_0x40ce74,_0x13934e){var _0x5e7e05=_0x42a475,_0xa8adcc=this;void 0x0===_0x13934e&&(_0x13934e={});var _0x55a1e7=function(){var _0x382f56=a2_0x4bfe;for(var _0x4b2672=0x0,_0x2703b6=_0xa8adcc[_0x382f56('0x1a59')];_0x4b2672<_0x2703b6[_0x382f56('0x175a')];_0x4b2672++){var _0x14c794=_0x2703b6[_0x4b2672];if(_0x14c794['id']===_0x40ce74)return _0x14c794;}},_0x8b9087=this[_0x5e7e05('0x2186')][_0x5e7e05('0x38bb')];return _0x55a1e7()||!0x1!==_0x13934e['inherit']&&_0x8b9087&&_0x8b9087['parameter'](_0x40ce74,_0x13934e)||null;},_0x78540b[_0x42a475('0x5a')]['validates']=function(_0xa7b34){var _0xe621d=_0x42a475,_0x2a1d13=function(_0x458cba,_0xce1693){var _0x28b06a=a2_0x4bfe;return!_0x458cba||_0x458cba[_0x28b06a('0x2937')](_0xce1693);};return _0xa7b34=_0xa7b34||{},this[_0xe621d('0x3549')]()['filter'](function(_0x1b7cb9){var _0x41df82=_0xe621d;return _0xa7b34[_0x41df82('0x1522')](_0x1b7cb9['id']);})[_0xe621d('0x2d86')](function(_0x47d572){return _0x2a1d13(_0x47d572,_0xa7b34[_0x47d572['id']]);})[_0xe621d('0x33b0')](_0x13419c,!0x0);},_0x78540b[_0x42a475('0x5a')][_0x42a475('0x1da4')]=function(_0x5a63d1){var _0x62ae6f=_0x42a475;void 0x0===_0x5a63d1&&(_0x5a63d1={});var _0x2fcc18=this['_cache'][_0x62ae6f('0x75f')],_0x5b0073=_0x2fcc18[_0x62ae6f('0x2d86')](_0x78540b[_0x62ae6f('0xd14')])[_0x62ae6f('0x33b0')](_0x40987e,[])['map'](function(_0x57ac7b){return _0x3f2c2e(_0x57ac7b)?_0x57ac7b:_0x1dbd0f(_0x57ac7b);}),_0x5c451d=_0x2fcc18[_0x62ae6f('0x2d86')](_0x78540b[_0x62ae6f('0x172a')])['reduce'](_0x40987e,[])[_0x62ae6f('0x2d86')](_0x1dbd0f),_0x31117d=function(_0x37e6eb){var _0x4e4dcd=_0x62ae6f;return!0x1===_0x37e6eb[_0x4e4dcd('0x28e7')];};if(_0x5b0073[_0x62ae6f('0x12b4')](_0x5c451d)[_0x62ae6f('0x3127')](_0x31117d)['length'])return null;function _0x1dbd0f(_0x329fce){var _0x4e70c0=_0x62ae6f,_0x4a3af1=_0x329fce[_0x4e70c0('0x248e')](_0x5a63d1[_0x329fce['id']]),_0x1488e5=_0x329fce['validates'](_0x4a3af1),_0xe5d7f9=_0x329fce[_0x4e70c0('0x1bd1')](_0x4a3af1),_0xac47ae=!!_0xe5d7f9&&_0x329fce['squash'],_0x494142=_0x329fce['type']['encode'](_0x4a3af1);return{'param':_0x329fce,'value':_0x4a3af1,'isValid':_0x1488e5,'isDefaultValue':_0xe5d7f9,'squash':_0xac47ae,'encoded':_0x494142};}var _0x311485=_0x5b0073[_0x62ae6f('0x33b0')](function(_0x31261f,_0x1690d7){var _0xd82ee6=_0x62ae6f;if(_0x3f2c2e(_0x1690d7))return _0x31261f+_0x1690d7;var _0xbc9f20=_0x1690d7[_0xd82ee6('0x182f')],_0x16f1ab=_0x1690d7[_0xd82ee6('0x21c0')],_0x29b887=_0x1690d7[_0xd82ee6('0x1e95')];return!0x0===_0xbc9f20?_0x31261f['match'](/\/$/)?_0x31261f[_0xd82ee6('0x2c0a')](0x0,-0x1):_0x31261f:_0x3f2c2e(_0xbc9f20)?_0x31261f+_0xbc9f20:!0x1!==_0xbc9f20||null==_0x16f1ab?_0x31261f:_0x49ad08(_0x16f1ab)?_0x31261f+_0x51960c(_0x16f1ab,_0x78540b['encodeDashes'])[_0xd82ee6('0x6a8')]('-'):_0x29b887[_0xd82ee6('0x18ca')]?_0x31261f+_0x16f1ab:_0x31261f+encodeURIComponent(_0x16f1ab);},''),_0x3771ff=_0x5c451d[_0x62ae6f('0x2d86')](function(_0x2c9622){var _0x3ebd97=_0x62ae6f,_0x10ed9a=_0x2c9622[_0x3ebd97('0x1e95')],_0x3aeb34=_0x2c9622[_0x3ebd97('0x182f')],_0x566d39=_0x2c9622[_0x3ebd97('0x21c0')],_0x52876f=_0x2c9622[_0x3ebd97('0x1bd1')];if(!(null==_0x566d39||_0x52876f&&!0x1!==_0x3aeb34)&&(_0x49ad08(_0x566d39)||(_0x566d39=[_0x566d39]),0x0!==_0x566d39[_0x3ebd97('0x175a')]))return _0x10ed9a[_0x3ebd97('0x18ca')]||(_0x566d39=_0x51960c(_0x566d39,encodeURIComponent)),_0x566d39['map'](function(_0x43aa90){return _0x10ed9a['id']+'='+_0x43aa90;});})[_0x62ae6f('0x3127')](_0x4acb32)['reduce'](_0x40987e,[])[_0x62ae6f('0x6a8')]('&');return _0x311485+(_0x3771ff?'?'+_0x3771ff:'')+(_0x5a63d1['#']?'#'+_0x5a63d1['#']:'');},_0x78540b['nameValidator']=/^\w+([-.]+\w+)*(?:\[\])?$/,_0x78540b;}(),_0x324354=function(){var _0xd1a745=_0x2877f5;return(_0x324354=Object['assign']||function(_0x34b605){var _0x575da8=a2_0x4bfe;for(var _0x10e446,_0x34f5ca=0x1,_0x5d75ce=arguments[_0x575da8('0x175a')];_0x34f5ca<_0x5d75ce;_0x34f5ca++)for(var _0x2dd026 in _0x10e446=arguments[_0x34f5ca])Object[_0x575da8('0x5a')][_0x575da8('0x1522')]['call'](_0x10e446,_0x2dd026)&&(_0x34b605[_0x2dd026]=_0x10e446[_0x2dd026]);return _0x34b605;})[_0xd1a745('0x177a')](this,arguments);},_0x3b6d8b=function(){var _0x328633=_0x2877f5;function _0x4dbe34(_0x5d9e07){var _0x28f80b=a2_0x4bfe;this[_0x28f80b('0x2b79')]=_0x5d9e07;}return _0x4dbe34[_0x328633('0x5a')]['fromConfig']=function(_0x393597,_0x1bd567,_0x348d6f){var _0x5d7102=_0x328633;return new _0x48cf64(_0x393597,_0x1bd567,_0x44a9e0[_0x5d7102('0x1499')][_0x5d7102('0x2ffb')],this['router'][_0x5d7102('0xf24')]['config'],_0x348d6f);},_0x4dbe34[_0x328633('0x5a')]['fromPath']=function(_0x1eca87,_0x398a82,_0x1a4bd9){var _0x1ffd3e=_0x328633;return new _0x48cf64(_0x1eca87,_0x398a82,_0x44a9e0[_0x1ffd3e('0x1499')][_0x1ffd3e('0x3164')],this[_0x1ffd3e('0x2b79')]['urlService']['config'],_0x1a4bd9);},_0x4dbe34[_0x328633('0x5a')][_0x328633('0x2af5')]=function(_0x2c67f5,_0x5a8a06,_0x55afbd){var _0x52348e=_0x328633;return new _0x48cf64(_0x2c67f5,_0x5a8a06,_0x44a9e0[_0x52348e('0x1499')]['SEARCH'],this['router'][_0x52348e('0xf24')][_0x52348e('0x3486')],_0x55afbd);},_0x4dbe34;}(),_0x4b0b96=function(){var _0x1c4ca3=_0x2877f5;function _0x11d28f(_0x3d14c4){var _0x52d7f0=a2_0x4bfe,_0x4e7ec1=this;this[_0x52d7f0('0x2b79')]=_0x3d14c4,this[_0x52d7f0('0x451')]=new _0x3b6d8b(this['router']),this['UrlMatcher']=_0x2f3c82,this['Param']=_0x48cf64,this[_0x52d7f0('0x34d7')]=function(_0x1e4c97){var _0x359004=_0x52d7f0;return _0x4e7ec1['router'][_0x359004('0xf24')][_0x359004('0x3486')][_0x359004('0x34d7')](_0x1e4c97);},this[_0x52d7f0('0x105f')]=function(_0x4d8005){var _0x5de6ab=_0x52d7f0;return _0x4e7ec1[_0x5de6ab('0x2b79')][_0x5de6ab('0xf24')][_0x5de6ab('0x3486')][_0x5de6ab('0x105f')](_0x4d8005);},this[_0x52d7f0('0x319f')]=function(_0x2eb09b){var _0x5d2b9c=_0x52d7f0;return _0x4e7ec1[_0x5d2b9c('0x2b79')][_0x5d2b9c('0xf24')][_0x5d2b9c('0x3486')]['strictMode'](_0x2eb09b);},this[_0x52d7f0('0x21a5')]=function(_0x588383,_0x182a7f,_0xe3c3cd){var _0x56a8b6=_0x52d7f0;return _0x4e7ec1['router'][_0x56a8b6('0xf24')][_0x56a8b6('0x3486')][_0x56a8b6('0x21a5')](_0x588383,_0x182a7f,_0xe3c3cd)||_0x4e7ec1;};}return _0x11d28f[_0x1c4ca3('0x5a')]['compile']=function(_0x3e40d7,_0x267a22){var _0x53dde9=_0x1c4ca3,_0x23baa3=this[_0x53dde9('0x2b79')][_0x53dde9('0xf24')][_0x53dde9('0x3486')],_0x2d76c5=_0x267a22&&!_0x267a22[_0x53dde9('0x380')]&&_0x267a22[_0x53dde9('0x46e')];_0x267a22=_0x2d76c5?_0x324354({'state':{'params':_0x2d76c5}},_0x267a22):_0x267a22;var _0x4928c8={'strict':_0x23baa3['_isStrictMode'],'caseInsensitive':_0x23baa3[_0x53dde9('0x956')],'decodeParams':_0x23baa3['_decodeParams']};return new _0x2f3c82(_0x3e40d7,_0x23baa3[_0x53dde9('0x2fbe')],this[_0x53dde9('0x451')],_0x45ee70(_0x4928c8,_0x267a22));},_0x11d28f[_0x1c4ca3('0x5a')][_0x1c4ca3('0x25b9')]=function(_0x5c8d32){var _0x3877b0=_0x1c4ca3;if(!_0x50b2a7(_0x5c8d32))return!0x1;var _0x810786=!0x0;return _0x2cd1cb(_0x2f3c82[_0x3877b0('0x5a')],function(_0x5adfc8,_0xab5062){_0x27da05(_0x5adfc8)&&(_0x810786=_0x810786&&_0x417a63(_0x5c8d32[_0xab5062])&&_0x27da05(_0x5c8d32[_0xab5062]));}),_0x810786;},_0x11d28f[_0x1c4ca3('0x5a')][_0x1c4ca3('0x2b72')]=function(){var _0x144daa=_0x1c4ca3,_0x4b8bfa=this[_0x144daa('0x2b79')][_0x144daa('0xf24')][_0x144daa('0x3486')];return _0x4b8bfa[_0x144daa('0x2fbe')]['enqueue']=!0x1,_0x4b8bfa[_0x144daa('0x2fbe')][_0x144daa('0x3611')](),this;},_0x11d28f;}(),_0x391d79=function(){var _0x5064e2=_0x2877f5;function _0x3cefea(_0x37f019){var _0x21d9bc=a2_0x4bfe;this[_0x21d9bc('0x2b79')]=_0x37f019;}return _0x3cefea[_0x5064e2('0x5a')]['compile']=function(_0x48323e){var _0x40fa73=_0x5064e2;return this[_0x40fa73('0x2b79')][_0x40fa73('0x14b4')][_0x40fa73('0xd1b')](_0x48323e);},_0x3cefea[_0x5064e2('0x5a')][_0x5064e2('0x126')]=function(_0x31b9e0,_0x56698d){var _0x28a084=_0x5064e2,_0x3b7cd3=this,_0x535a81=_0x52be0f['isState'],_0x3c2220=_0x52be0f['isStateDeclaration'],_0x539d87=_0x449885([[_0x3f2c2e,function(_0x31a0c2){return _0x539d87(_0x3b7cd3['compile'](_0x31a0c2));}],[_0x3d3db3(_0x2f3c82),function(_0x351ec6){return _0x3b7cd3['fromUrlMatcher'](_0x351ec6,_0x56698d);}],[_0xc93f9d(_0x535a81,_0x3c2220),function(_0x239619){var _0x4281a1=a2_0x4bfe;return _0x3b7cd3['fromState'](_0x239619,_0x3b7cd3[_0x4281a1('0x2b79')]);}],[_0x3d3db3(RegExp),function(_0x531c73){var _0xedf05c=a2_0x4bfe;return _0x3b7cd3[_0xedf05c('0xb68')](_0x531c73,_0x56698d);}],[_0x27da05,function(_0x3032e5){return new _0x36896b(_0x3032e5,_0x56698d);}]]),_0x33cfe6=_0x539d87(_0x31b9e0);if(!_0x33cfe6)throw new Error(_0x28a084('0x168b'));return _0x33cfe6;},_0x3cefea[_0x5064e2('0x5a')][_0x5064e2('0x26ad')]=function(_0x561ff0,_0x570674){var _0x22f240=_0x5064e2,_0x17caeb=_0x570674;function _0x541020(_0x2cfec0){var _0x5d932c=a2_0x4bfe,_0x553e86=_0x561ff0[_0x5d932c('0x27cd')](_0x2cfec0[_0x5d932c('0x75f')],_0x2cfec0['search'],_0x2cfec0[_0x5d932c('0x206a')]);return _0x561ff0[_0x5d932c('0x2937')](_0x553e86)&&_0x553e86;}function _0x49d07c(_0x416b0c){var _0xf63224=a2_0x4bfe,_0x4c0283=_0x561ff0[_0xf63224('0x3549')]()[_0xf63224('0x3127')](function(_0x1f5175){var _0x18d98f=_0xf63224;return _0x1f5175[_0x18d98f('0xd6a')];});return _0x4c0283['length']?_0x4c0283[_0xf63224('0x3127')](function(_0x3387ef){return _0x416b0c[_0x3387ef['id']];})[_0xf63224('0x175a')]/_0x4c0283[_0xf63224('0x175a')]:0.000001;}_0x3f2c2e(_0x570674)&&(_0x570674=this['router'][_0x22f240('0x14b4')][_0x22f240('0xd1b')](_0x570674)),_0x3d3db3(_0x2f3c82)(_0x570674)&&(_0x17caeb=function(_0xeb4317){var _0x216e58=_0x22f240;return _0x570674[_0x216e58('0x1da4')](_0xeb4317);});var _0x3dd969={'urlMatcher':_0x561ff0,'matchPriority':_0x49d07c,'type':_0x22f240('0x2898')};return _0x45ee70(new _0x36896b(_0x541020,_0x17caeb),_0x3dd969);},_0x3cefea[_0x5064e2('0x5a')][_0x5064e2('0x37db')]=function(_0x69ff0,_0x40a9da){var _0x8e7555=_0x5064e2,_0x2317e0=_0x52be0f[_0x8e7555('0x1490')](_0x69ff0)?_0x69ff0[_0x8e7555('0x125d')]():_0x69ff0,_0x2be3c7=function(_0x25a69b){var _0x5143d3=_0x8e7555,_0x362cae=_0x40a9da[_0x5143d3('0xea2')],_0x3ca2d2=_0x40a9da[_0x5143d3('0x2514')];_0x362cae[_0x5143d3('0x3277')](_0x2317e0,_0x25a69b)!==_0x362cae[_0x5143d3('0x3277')](_0x3ca2d2[_0x5143d3('0x34c')],_0x3ca2d2[_0x5143d3('0x46e')])&&_0x362cae['transitionTo'](_0x2317e0,_0x25a69b,{'inherit':!0x0,'source':_0x5143d3('0x365f')});},_0x1d8346={'state':_0x2317e0,'type':_0x8e7555('0x2c8e')};return _0x45ee70(this[_0x8e7555('0x26ad')](_0x2317e0[_0x8e7555('0x365f')],_0x2be3c7),_0x1d8346);},_0x3cefea['prototype'][_0x5064e2('0xb68')]=function(_0x1c8be6,_0x3f65e1){var _0x4e87ca=_0x5064e2;if(_0x1c8be6[_0x4e87ca('0x7dc')]||_0x1c8be6['sticky'])throw new Error(_0x4e87ca('0x2b01'));var _0x375b85=function(_0xf49c42){var _0x279bdc=_0x4e87ca;return _0x3f65e1[_0x279bdc('0x34c8')](/\$(\$|\d{1,2})/,function(_0x106830,_0x35ffb1){return _0xf49c42['$'===_0x35ffb1?0x0:Number(_0x35ffb1)];});},_0x3f9813=_0x3f2c2e(_0x3f65e1)?_0x375b85:_0x3f65e1,_0x133f28=function(_0x2893c5){var _0x55b0ed=_0x4e87ca;return _0x1c8be6[_0x55b0ed('0x27cd')](_0x2893c5[_0x55b0ed('0x75f')]);},_0x4715db={'regexp':_0x1c8be6,'type':_0x4e87ca('0x234a')};return _0x45ee70(new _0x36896b(_0x133f28,_0x3f9813),_0x4715db);},_0x3cefea[_0x5064e2('0x7ac')]=function(_0x4c2ad3){var _0x5760c8=_0x5064e2;return _0x4c2ad3&&['type','match',_0x5760c8('0x38a8')][_0x5760c8('0xafb')](function(_0x218ace){return _0x417a63(_0x4c2ad3[_0x218ace]);});},_0x3cefea;}(),_0x36896b=function(){function _0x3f8054(_0x392d92,_0xd0e755){var _0x3ef2b3=a2_0x4bfe,_0x5f0be7=this;this[_0x3ef2b3('0x21ae')]=_0x392d92,this[_0x3ef2b3('0x21a5')]=_0x3ef2b3('0x1b9a'),this[_0x3ef2b3('0x2d14')]=function(_0x215dad){var _0x5144ea=_0x3ef2b3;return 0x0-_0x5f0be7[_0x5144ea('0x28bf')];},this[_0x3ef2b3('0x38a8')]=_0xd0e755||_0x4acb32;}return _0x3f8054;}();function _0x5aa631(_0x4f6b74,_0x5b9a73,_0x390954,_0x2355ce){var _0x13abc5=_0x2877f5;return'/'===_0x2355ce?_0x4f6b74:_0x5b9a73?_0x12b18b(_0x2355ce)+_0x4f6b74:_0x390954?_0x2355ce[_0x13abc5('0x2c0a')](0x1)+_0x4f6b74:_0x4f6b74;}var _0x355fdd,_0x33ce04=function(){var _0x4444b7=_0x2877f5;function _0xdb9be3(_0x9b44bf){var _0x3975fe=a2_0x4bfe,_0x35e5e4=this;this['router']=_0x9b44bf,this[_0x3975fe('0x1dc3')]=function(_0xf41c64){var _0x33254c=_0x3975fe;return _0x35e5e4['router'][_0x33254c('0xf24')][_0x33254c('0x1dc3')](_0xf41c64);},this[_0x3975fe('0x3879')]=function(_0x36f2cd){var _0x5c0f0c=_0x3975fe;return _0x35e5e4[_0x5c0f0c('0x2b79')]['urlService'][_0x5c0f0c('0x3879')](_0x36f2cd);},this[_0x3975fe('0xc9f')]=function(_0x330bd1){var _0x3f2965=_0x3975fe;return _0x35e5e4[_0x3f2965('0x2b79')][_0x3f2965('0xf24')][_0x3f2965('0xc9f')](_0x330bd1);},this[_0x3975fe('0x21ae')]=function(_0x57ecb4){var _0x1ad819=_0x3975fe;return _0x35e5e4[_0x1ad819('0x2b79')]['urlService']['match'](_0x57ecb4);},this[_0x3975fe('0x3424')]=function(_0x56a1f1){var _0x153bec=_0x3975fe;return _0x35e5e4['router'][_0x153bec('0xf24')][_0x153bec('0x1911')][_0x153bec('0x3424')](_0x56a1f1);},this[_0x3975fe('0xc05')]=function(_0x573ad3){var _0x45ae48=_0x3975fe;return _0x35e5e4[_0x45ae48('0x2b79')][_0x45ae48('0xf24')][_0x45ae48('0x1911')][_0x45ae48('0xc05')](_0x573ad3);},this[_0x3975fe('0x15d')]=function(_0x461286){var _0x450b38=_0x3975fe;return _0x35e5e4[_0x450b38('0x2b79')][_0x450b38('0xf24')][_0x450b38('0x1911')][_0x450b38('0x15d')](_0x461286);},this[_0x3975fe('0xb25')]=function(_0x41f4b1){var _0x567e22=_0x3975fe;return _0x35e5e4[_0x567e22('0x2b79')][_0x567e22('0xf24')][_0x567e22('0x1911')]['rule'](_0x41f4b1);},this[_0x3975fe('0x1911')]=function(){var _0x166810=_0x3975fe;return _0x35e5e4[_0x166810('0x2b79')][_0x166810('0xf24')][_0x166810('0x1911')]['rules']();},this[_0x3975fe('0x3902')]=function(_0x404d65){var _0x19b1bb=_0x3975fe;return _0x35e5e4['router']['urlService'][_0x19b1bb('0x1911')][_0x19b1bb('0x3902')](_0x404d65);},this[_0x3975fe('0x36d1')]=function(_0x14a94a,_0x183f17,_0x491407){var _0x26e121=_0x3975fe;return _0x35e5e4[_0x26e121('0x2b79')][_0x26e121('0xf24')]['rules'][_0x26e121('0x36d1')](_0x14a94a,_0x183f17,_0x491407);},this[_0x3975fe('0xa5c')]=new _0x391d79(_0x9b44bf);}return _0xdb9be3['prototype'][_0x4444b7('0x3956')]=function(_0x48532a){var _0x2f2aa1=_0x4444b7,_0x4b442d=this['router']['locationService'];_0x48532a?this[_0x2f2aa1('0x12')]=_0x4b442d[_0x2f2aa1('0x365f')]():_0x4b442d[_0x2f2aa1('0x365f')]()!==this[_0x2f2aa1('0x12')]&&_0x4b442d['url'](this['location'],!0x0);},_0xdb9be3[_0x4444b7('0x5a')][_0x4444b7('0x1a90')]=function(_0x1d2ecd,_0x3f7bf3,_0x1c7ce3){var _0x3435c2=_0x4444b7,_0x4f1505=_0x1c7ce3&&!!_0x1c7ce3[_0x3435c2('0x34c8')];this[_0x3435c2('0x2b79')]['urlService']['url'](_0x1d2ecd[_0x3435c2('0x1da4')](_0x3f7bf3||{}),_0x4f1505);},_0xdb9be3[_0x4444b7('0x5a')][_0x4444b7('0x3277')]=function(_0xfeab3,_0xcd8501,_0x5e6b13){var _0xa174de=_0x4444b7,_0x1cc81f=_0xfeab3[_0xa174de('0x1da4')](_0xcd8501);if(null==_0x1cc81f)return null;_0x5e6b13=_0x5e6b13||{'absolute':!0x1};var _0x54d5f8=this[_0xa174de('0x2b79')]['urlService'][_0xa174de('0x3486')],_0x5619e8=_0x54d5f8['html5Mode']();if(_0x5619e8||null===_0x1cc81f||(_0x1cc81f='#'+_0x54d5f8[_0xa174de('0x1e98')]()+_0x1cc81f),_0x1cc81f=_0x5aa631(_0x1cc81f,_0x5619e8,_0x5e6b13[_0xa174de('0x23b')],_0x54d5f8['baseHref']()),!_0x5e6b13[_0xa174de('0x23b')]||!_0x1cc81f)return _0x1cc81f;var _0x148ac2=!_0x5619e8&&_0x1cc81f?'/':'',_0x397173=_0x54d5f8['port'](),_0x2054de=0x50===_0x397173||0x1bb===_0x397173?'':':'+_0x397173;return[_0x54d5f8[_0xa174de('0x3775')](),'://',_0x54d5f8[_0xa174de('0x2bea')](),_0x2054de,_0x148ac2,_0x1cc81f]['join']('');},Object['defineProperty'](_0xdb9be3[_0x4444b7('0x5a')],_0x4444b7('0x1bdc'),{'get':function(){var _0x2dd9ff=_0x4444b7;return this[_0x2dd9ff('0x2b79')][_0x2dd9ff('0xf24')][_0x2dd9ff('0x1bdc')];},'enumerable':!0x1,'configurable':!0x0}),_0xdb9be3;}(),_0x4f2939=function(){var _0x396033=_0x2877f5;function _0x1e0d40(_0x196548){var _0x743230=a2_0x4bfe,_0x116b1b=this;this['router']=_0x196548,this['_uiViews']=[],this['_viewConfigs']=[],this[_0x743230('0x21a1')]={},this[_0x743230('0x2cf0')]=[],this['_pluginapi']={'_rootViewContext':this[_0x743230('0xd72')][_0x743230('0x1ecd')](this),'_viewConfigFactory':this[_0x743230('0x1345')]['bind'](this),'_registeredUIView':function(_0x5e9ee4){var _0x526f85=_0x743230;return _0x42a99f(_0x116b1b[_0x526f85('0x37d')],function(_0xaa3df9){var _0x1ee683=_0x526f85;return _0x116b1b[_0x1ee683('0x2b79')][_0x1ee683('0x28bf')]+'.'+_0xaa3df9['id']===_0x5e9ee4;});},'_registeredUIViews':function(){return _0x116b1b['_uiViews'];},'_activeViewConfigs':function(){var _0x39c7a2=_0x743230;return _0x116b1b[_0x39c7a2('0x1261')];},'_onSync':function(_0x1da473){var _0x19d336=_0x743230;return _0x116b1b[_0x19d336('0x2cf0')][_0x19d336('0x1a90')](_0x1da473),function(){var _0x49ea80=_0x19d336;return _0xf7741b(_0x116b1b[_0x49ea80('0x2cf0')],_0x1da473);};}};}return _0x1e0d40[_0x396033('0x1f72')]=function(_0x49af27,_0x114478){var _0x2be45d=_0x396033;void 0x0===_0x114478&&(_0x114478='');var _0x33f669=_0x114478[_0x2be45d('0x23ee')]('@'),_0x173134=_0x33f669[0x0]||_0x2be45d('0x6b8'),_0x3d1c48=_0x3f2c2e(_0x33f669[0x1])?_0x33f669[0x1]:'^',_0x257226=/^(\^(?:\.\^)*)\.(.*$)/[_0x2be45d('0x27cd')](_0x173134);if(_0x257226&&(_0x3d1c48=_0x257226[0x1],_0x173134=_0x257226[0x2]),'!'===_0x173134[_0x2be45d('0x40')](0x0)&&(_0x173134=_0x173134[_0x2be45d('0x3102')](0x1),_0x3d1c48=''),/^(\^(?:\.\^)*)$/[_0x2be45d('0x27cd')](_0x3d1c48)){var _0x4519db=_0x3d1c48[_0x2be45d('0x23ee')]('.')['reduce'](function(_0x1e176c,_0x3db58b){return _0x1e176c['parent'];},_0x49af27);_0x3d1c48=_0x4519db[_0x2be45d('0x455')];}else'.'===_0x3d1c48&&(_0x3d1c48=_0x49af27['name']);return{'uiViewName':_0x173134,'uiViewContextAnchor':_0x3d1c48};},_0x1e0d40[_0x396033('0x5a')][_0x396033('0xd72')]=function(_0x31bbbc){var _0x33971c=_0x396033;return this[_0x33971c('0x32f7')]=_0x31bbbc||this[_0x33971c('0x32f7')];},_0x1e0d40[_0x396033('0x5a')]['_viewConfigFactory']=function(_0x28e89f,_0x121359){var _0xdf13e8=_0x396033;this[_0xdf13e8('0x21a1')][_0x28e89f]=_0x121359;},_0x1e0d40[_0x396033('0x5a')][_0x396033('0x1395')]=function(_0x541738,_0x3cf180){var _0xdb8cc6=_0x396033,_0x35288e=this[_0xdb8cc6('0x21a1')][_0x3cf180[_0xdb8cc6('0x3b4')]];if(!_0x35288e)throw new Error(_0xdb8cc6('0x34a4')+_0x3cf180[_0xdb8cc6('0x3b4')]);var _0x30a34b=_0x35288e(_0x541738,_0x3cf180);return _0x49ad08(_0x30a34b)?_0x30a34b:[_0x30a34b];},_0x1e0d40[_0x396033('0x5a')][_0x396033('0x16af')]=function(_0x166b05){var _0x315d65=_0x396033;_0x59472f[_0x315d65('0x1615')]('<-\x20Removing',_0x166b05),_0xf7741b(this['_viewConfigs'],_0x166b05);},_0x1e0d40['prototype'][_0x396033('0x279e')]=function(_0xbd3046){var _0x3e5ac4=_0x396033;_0x59472f[_0x3e5ac4('0x1615')](_0x3e5ac4('0xe6f'),_0xbd3046),this[_0x3e5ac4('0x1261')][_0x3e5ac4('0x1a90')](_0xbd3046);},_0x1e0d40[_0x396033('0x5a')][_0x396033('0x1dc3')]=function(){var _0x4e777f=_0x396033,_0x3c77e4=this,_0xed11d9=this['_uiViews'][_0x4e777f('0x2d86')](function(_0x4c62b9){return[_0x4c62b9['fqn'],_0x4c62b9];})[_0x4e777f('0x33b0')](_0xafdea,{});function _0x5c5926(_0x932993){var _0xc6946d=_0x4e777f,_0x3e042f=function(_0x8879c7){var _0x25afb3=a2_0x4bfe;return _0x8879c7&&_0x8879c7[_0x25afb3('0x38bb')]?_0x3e042f(_0x8879c7[_0x25afb3('0x38bb')])+0x1:0x1;};return 0x2710*_0x932993[_0xc6946d('0x324f')][_0xc6946d('0x23ee')]('.')[_0xc6946d('0x175a')]+_0x3e042f(_0x932993[_0xc6946d('0x3473')]);}function _0x163c1d(_0x433795){var _0x1d21c2=_0x4e777f;for(var _0x4729b4=_0x433795[_0x1d21c2('0x3681')]['$context'],_0x776dbe=0x0;++_0x776dbe&&_0x4729b4['parent'];)_0x4729b4=_0x4729b4[_0x1d21c2('0x38bb')];return _0x776dbe;}var _0x51ddde=_0xcdee2a(function(_0x234712,_0x1b5c20,_0x5d5673,_0x4a8a5a){return _0x1b5c20*(_0x234712(_0x5d5673)-_0x234712(_0x4a8a5a));}),_0x31eef0=function(_0x28df0b){var _0x540192=_0x4e777f,_0x17d257=_0x3c77e4[_0x540192('0x1261')][_0x540192('0x3127')](_0x1e0d40['matches'](_0xed11d9,_0x28df0b));return _0x17d257[_0x540192('0x175a')]>0x1&&_0x17d257[_0x540192('0x3902')](_0x51ddde(_0x163c1d,-0x1)),{'uiView':_0x28df0b,'viewConfig':_0x17d257[0x0]};},_0x4b9a98=function(_0xa3b214){var _0x4dae84=_0x4e777f;-0x1!==_0x3c77e4[_0x4dae84('0x37d')][_0x4dae84('0xe1c')](_0xa3b214[_0x4dae84('0x91b')])&&_0xa3b214[_0x4dae84('0x91b')]['configUpdated'](_0xa3b214[_0x4dae84('0x1a57')]);},_0x4a2935=this[_0x4e777f('0x37d')]['sort'](_0x51ddde(_0x5c5926,0x1))[_0x4e777f('0x2d86')](_0x31eef0),_0x7b717d=_0x4a2935[_0x4e777f('0x2d86')](function(_0x1a9924){var _0x14e908=_0x4e777f;return _0x1a9924[_0x14e908('0x1a57')];}),_0x249a23=this[_0x4e777f('0x1261')][_0x4e777f('0x3127')](function(_0x3671d1){return!_0x3f84d6(_0x7b717d,_0x3671d1);})[_0x4e777f('0x2d86')](function(_0x273153){return{'uiView':void 0x0,'viewConfig':_0x273153};});_0x4a2935['forEach'](_0x4b9a98);var _0x27e3db=_0x4a2935['concat'](_0x249a23);this[_0x4e777f('0x2cf0')]['forEach'](function(_0x646af1){return _0x646af1(_0x27e3db);}),_0x59472f[_0x4e777f('0x47f')](_0x27e3db);},_0x1e0d40[_0x396033('0x5a')][_0x396033('0xe96')]=function(_0x5dbe50){var _0x4f4749=_0x396033;_0x59472f[_0x4f4749('0x2b2b')](_0x4f4749('0xe6f'),_0x5dbe50);var _0x9c40b1=this[_0x4f4749('0x37d')],_0x53f29a=function(_0x42e270){var _0x151afb=_0x4f4749;return _0x42e270[_0x151afb('0x324f')]===_0x5dbe50['fqn']&&_0x42e270[_0x151afb('0x3b4')]===_0x5dbe50['$type'];};return _0x9c40b1[_0x4f4749('0x3127')](_0x53f29a)[_0x4f4749('0x175a')]&&_0x59472f[_0x4f4749('0x2b2b')](_0x4f4749('0x2243'),_0x5dbe50),_0x9c40b1[_0x4f4749('0x1a90')](_0x5dbe50),this[_0x4f4749('0x1dc3')](),function(){var _0x4a2010=_0x4f4749;-0x1!==_0x9c40b1['indexOf'](_0x5dbe50)?(_0x59472f['traceViewServiceUIViewEvent'](_0x4a2010('0x436'),_0x5dbe50),_0xf7741b(_0x9c40b1)(_0x5dbe50)):_0x59472f['traceViewServiceUIViewEvent']('Tried\x20removing\x20non-registered\x20uiView',_0x5dbe50);};},_0x1e0d40[_0x396033('0x5a')][_0x396033('0x383c')]=function(){var _0x593453=_0x396033;return this[_0x593453('0x37d')][_0x593453('0x2d86')](_0x4103e4(_0x593453('0x324f')));},_0x1e0d40['prototype'][_0x396033('0x1210')]=function(){var _0x597b8a=_0x396033;return this[_0x597b8a('0x37d')][_0x597b8a('0x3127')](_0x4103e4('$config'))[_0x597b8a('0x2d86')](_0x4103e4(_0x597b8a('0x455')));},_0x1e0d40[_0x396033('0x32a4')]=function(_0x3a9080,_0x4fce7e){return function(_0x4a1e58){var _0x231b7c=a2_0x4bfe;if(_0x4fce7e[_0x231b7c('0x3b4')]!==_0x4a1e58['viewDecl'][_0x231b7c('0x3b4')])return!0x1;var _0x9dd679=_0x4a1e58[_0x231b7c('0x3681')],_0x2b202a=_0x9dd679[_0x231b7c('0x541')][_0x231b7c('0x23ee')]('.'),_0x13babf=_0x4fce7e[_0x231b7c('0x324f')][_0x231b7c('0x23ee')]('.');if(!_0x571c7e(_0x2b202a,_0x13babf[_0x231b7c('0x2c0a')](0x0-_0x2b202a[_0x231b7c('0x175a')])))return!0x1;var _0xb79847=0x1-_0x2b202a[_0x231b7c('0x175a')]||void 0x0,_0x2c5beb=_0x13babf[_0x231b7c('0x2c0a')](0x0,_0xb79847)[_0x231b7c('0x6a8')]('.'),_0x129b17=_0x3a9080[_0x2c5beb]['creationContext'];return _0x9dd679['$uiViewContextAnchor']===(_0x129b17&&_0x129b17[_0x231b7c('0x455')]);};},_0x1e0d40;}(),_0x351348=function(){var _0x47d9c7=_0x2877f5;function _0x5390dc(){var _0x48bb62=a2_0x4bfe;this[_0x48bb62('0x46e')]=new _0x542b57(),this[_0x48bb62('0xf86')]=-0x1,this['transitionHistory']=new _0x347668([],0x1),this[_0x48bb62('0x38ca')]=new _0x347668([],0x1);}return _0x5390dc[_0x47d9c7('0x5a')]['dispose']=function(){var _0x228287=_0x47d9c7;this['transitionHistory'][_0x228287('0x10f0')](),this[_0x228287('0x38ca')][_0x228287('0x10f0')](),this[_0x228287('0x20d1')]=null;},_0x5390dc;}(),_0x47e5d5=function(_0x5f2439,_0x521da3){var _0x4dc842=_0x2877f5;return(_0x521da3[_0x4dc842('0x19d3')]||0x0)-(_0x5f2439[_0x4dc842('0x19d3')]||0x0);},_0x166d2d=function(_0x3cd342,_0x3132aa){var _0x437f92=_0x2877f5,_0x14f18c={'STATE':0x4,'URLMATCHER':0x4,'REGEXP':0x3,'RAW':0x2,'OTHER':0x1};return(_0x14f18c[_0x3cd342['type']]||0x0)-(_0x14f18c[_0x3132aa[_0x437f92('0x21a5')]]||0x0);},_0x413263=function(_0x2215e7,_0x3a9ca2){var _0x284a71=_0x2877f5;return _0x2215e7[_0x284a71('0x1d5b')]&&_0x3a9ca2[_0x284a71('0x1d5b')]?_0x2f3c82[_0x284a71('0x2006')](_0x2215e7['urlMatcher'],_0x3a9ca2['urlMatcher']):0x0;},_0x2028c4=function(_0x1fd6cc,_0x5c4053){var _0x4df453=_0x2877f5,_0xe5cc10={'STATE':!0x0,'URLMATCHER':!0x0};return _0xe5cc10[_0x1fd6cc[_0x4df453('0x21a5')]]&&_0xe5cc10[_0x5c4053['type']]?0x0:(_0x1fd6cc[_0x4df453('0x28bf')]||0x0)-(_0x5c4053[_0x4df453('0x28bf')]||0x0);};function _0xea5203(_0x3cd078){var _0x18f85b=_0x2877f5;if(!(_0x27da05(_0x3cd078)||_0x3f2c2e(_0x3cd078)||_0x3d3db3(_0x57c6a8)(_0x3cd078)||_0x57c6a8[_0x18f85b('0xfb9')](_0x3cd078)))throw new Error(_0x18f85b('0x358b'));return _0x27da05(_0x3cd078)?_0x3cd078:_0x288ab9(_0x3cd078);}_0x355fdd=function(_0x5f2fd2,_0x41eca6){var _0x3c6d26=_0x47e5d5(_0x5f2fd2,_0x41eca6);return 0x0!==_0x3c6d26||0x0!==(_0x3c6d26=_0x166d2d(_0x5f2fd2,_0x41eca6))||0x0!==(_0x3c6d26=_0x413263(_0x5f2fd2,_0x41eca6))?_0x3c6d26:_0x2028c4(_0x5f2fd2,_0x41eca6);};var _0x5a69ca=function(){var _0x46f368=_0x2877f5;function _0x5684e7(_0x24f9c6){var _0x575891=a2_0x4bfe;this[_0x575891('0x2b79')]=_0x24f9c6,this[_0x575891('0x1571')]=_0x355fdd,this['_rules']=[],this[_0x575891('0x2c3')]=0x0,this[_0x575891('0xa5c')]=new _0x391d79(_0x24f9c6);}return _0x5684e7['prototype'][_0x46f368('0x38af')]=function(_0x1861b2){var _0x426083=_0x46f368;this[_0x426083('0x372a')]=[],delete this['_otherwiseFn'];},_0x5684e7['prototype'][_0x46f368('0x3424')]=function(_0xfe0699){var _0x1c0f2e=_0x46f368,_0x4f1901=_0xea5203(_0xfe0699),_0x2dad00=function(_0x84d005,_0x1ee82b){var _0x429d58=a2_0x4bfe;return 0x0===_0x1ee82b[_0x429d58('0x2514')][_0x429d58('0x321e')][_0x429d58('0x399e')]()&&!!/^\/?$/[_0x429d58('0x27cd')](_0x84d005[_0x429d58('0x75f')]);};this[_0x1c0f2e('0xb25')](this[_0x1c0f2e('0xa5c')]['create'](_0x2dad00,_0x4f1901));},_0x5684e7[_0x46f368('0x5a')][_0x46f368('0xc05')]=function(_0x28f266){var _0x9b631f=_0x46f368,_0x35937e=_0xea5203(_0x28f266);this[_0x9b631f('0x30e2')]=this[_0x9b631f('0xa5c')][_0x9b631f('0x126')](_0x288ab9(!0x0),_0x35937e),this['_sorted']=!0x1;},_0x5684e7['prototype'][_0x46f368('0x15d')]=function(_0x30b3b2){var _0x5aefbd=_0x46f368;_0xf7741b(this[_0x5aefbd('0x372a')],_0x30b3b2);},_0x5684e7[_0x46f368('0x5a')][_0x46f368('0xb25')]=function(_0x495bb4){var _0x1a8938=_0x46f368,_0xe36461=this;if(!_0x391d79[_0x1a8938('0x7ac')](_0x495bb4))throw new Error(_0x1a8938('0x1540'));return _0x495bb4[_0x1a8938('0x28bf')]=this[_0x1a8938('0x2c3')]++,_0x495bb4['priority']=_0x495bb4['priority']||0x0,this[_0x1a8938('0x372a')][_0x1a8938('0x1a90')](_0x495bb4),this[_0x1a8938('0x9d9')]=!0x1,function(){return _0xe36461['removeRule'](_0x495bb4);};},_0x5684e7[_0x46f368('0x5a')][_0x46f368('0x1911')]=function(){var _0x338ff5=_0x46f368;return this[_0x338ff5('0x7cc')](),this[_0x338ff5('0x372a')][_0x338ff5('0x12b4')](this['_otherwiseFn']?[this[_0x338ff5('0x30e2')]]:[]);},_0x5684e7['prototype'][_0x46f368('0x3902')]=function(_0x1094ba){var _0x46a35c=_0x46f368;for(var _0x8d8919=this[_0x46a35c('0x32bf')](this[_0x46a35c('0x372a')],this[_0x46a35c('0x1571')]=_0x1094ba||this[_0x46a35c('0x1571')]),_0x2b970a=0x0,_0x27c590=0x0;_0x27c590<_0x8d8919['length'];_0x27c590++)_0x8d8919[_0x27c590]['_group']=_0x2b970a,_0x27c590<_0x8d8919['length']-0x1&&0x0!==this[_0x46a35c('0x1571')](_0x8d8919[_0x27c590],_0x8d8919[_0x27c590+0x1])&&_0x2b970a++;this[_0x46a35c('0x372a')]=_0x8d8919,this[_0x46a35c('0x9d9')]=!0x0;},_0x5684e7['prototype'][_0x46f368('0x7cc')]=function(){var _0x1cadd3=_0x46f368;this[_0x1cadd3('0x9d9')]||this[_0x1cadd3('0x3902')]();},_0x5684e7[_0x46f368('0x5a')][_0x46f368('0x32bf')]=function(_0x1d9928,_0x4add5f){var _0x3e31b2=_0x46f368,_0x22f761=_0x1d9928[_0x3e31b2('0x2d86')](function(_0x3b4357,_0x304eef){return{'elem':_0x3b4357,'idx':_0x304eef};});return _0x22f761['sort'](function(_0x588ba1,_0x1b910d){var _0x5c4ddd=_0x3e31b2,_0x1fb3db=_0x4add5f(_0x588ba1[_0x5c4ddd('0xb89')],_0x1b910d[_0x5c4ddd('0xb89')]);return 0x0===_0x1fb3db?_0x588ba1['idx']-_0x1b910d[_0x5c4ddd('0x1fb2')]:_0x1fb3db;}),_0x22f761[_0x3e31b2('0x2d86')](function(_0x558a4e){var _0x5b24d4=_0x3e31b2;return _0x558a4e[_0x5b24d4('0xb89')];});},_0x5684e7[_0x46f368('0x5a')][_0x46f368('0x36d1')]=function(_0x36e4ad,_0x529a0a,_0x1c4b62){var _0x631629=_0x46f368,_0x4f1ac7=this['urlRuleFactory'][_0x631629('0x126')](_0x36e4ad,_0x529a0a);return _0x417a63(_0x1c4b62&&_0x1c4b62['priority'])&&(_0x4f1ac7['priority']=_0x1c4b62[_0x631629('0x19d3')]),this[_0x631629('0xb25')](_0x4f1ac7),_0x4f1ac7;},_0x5684e7;}(),_0x1f20d0=function(){var _0xe83e7=_0x2877f5;function _0x4493b6(_0x5728e2){var _0x14e900=a2_0x4bfe,_0x41dbdf=this;this[_0x14e900('0x2b79')]=_0x5728e2,this['paramTypes']=new _0x228411(),this[_0x14e900('0x1273')]=!0x0,this['_isCaseInsensitive']=!0x1,this[_0x14e900('0x386b')]=!0x0,this[_0x14e900('0x13cf')]=!0x1,this['dispose']=function(){var _0x2289c3=_0x14e900;return _0x41dbdf['paramTypes'][_0x2289c3('0x38af')]();},this[_0x14e900('0x223b')]=function(){var _0x1f9e1e=_0x14e900;return _0x41dbdf[_0x1f9e1e('0x2b79')]['locationConfig'][_0x1f9e1e('0x223b')]();},this['hashPrefix']=function(_0x1d7fd0){var _0x4d727a=_0x14e900;return _0x41dbdf[_0x4d727a('0x2b79')][_0x4d727a('0x1010')]['hashPrefix'](_0x1d7fd0);},this[_0x14e900('0x2bea')]=function(){var _0x194870=_0x14e900;return _0x41dbdf[_0x194870('0x2b79')][_0x194870('0x1010')][_0x194870('0x2bea')]();},this[_0x14e900('0x2c2f')]=function(){var _0x5cf2ec=_0x14e900;return _0x41dbdf[_0x5cf2ec('0x2b79')]['locationConfig'][_0x5cf2ec('0x2c2f')]();},this[_0x14e900('0x327a')]=function(){var _0x4c3dd4=_0x14e900;return _0x41dbdf[_0x4c3dd4('0x2b79')]['locationConfig'][_0x4c3dd4('0x327a')]();},this['protocol']=function(){var _0x55d293=_0x14e900;return _0x41dbdf[_0x55d293('0x2b79')][_0x55d293('0x1010')][_0x55d293('0x3775')]();};}return _0x4493b6[_0xe83e7('0x5a')][_0xe83e7('0x34d7')]=function(_0x56e319){var _0x36f685=_0xe83e7;return this[_0x36f685('0x956')]=_0x417a63(_0x56e319)?_0x56e319:this[_0x36f685('0x956')];},_0x4493b6[_0xe83e7('0x5a')][_0xe83e7('0x105f')]=function(_0x342100){var _0x1416a5=_0xe83e7;if(_0x417a63(_0x342100)&&!0x0!==_0x342100&&!0x1!==_0x342100&&!_0x3f2c2e(_0x342100))throw new Error('Invalid\x20squash\x20policy:\x20'+_0x342100+_0x1416a5('0x5a3'));return this[_0x1416a5('0x13cf')]=_0x417a63(_0x342100)?_0x342100:this['_defaultSquashPolicy'];},_0x4493b6[_0xe83e7('0x5a')][_0xe83e7('0x319f')]=function(_0x4c4fe8){var _0xa69a2a=_0xe83e7;return this[_0xa69a2a('0x386b')]=_0x417a63(_0x4c4fe8)?_0x4c4fe8:this['_isStrictMode'];},_0x4493b6[_0xe83e7('0x5a')][_0xe83e7('0x21a5')]=function(_0x55ec9f,_0x521ab8,_0x3a71ad){var _0x46e006=_0xe83e7,_0x4776dd=this[_0x46e006('0x2fbe')]['type'](_0x55ec9f,_0x521ab8,_0x3a71ad);return _0x417a63(_0x521ab8)?this:_0x4776dd;},_0x4493b6;}(),_0x45c13f=function(){var _0x3bdc71=_0x2877f5;function _0x4e4e34(_0x6d8e){var _0x3611a0=a2_0x4bfe,_0x2a2a42=this;this[_0x3611a0('0x2b79')]=_0x6d8e,this[_0x3611a0('0x1bdc')]=!0x1,this[_0x3611a0('0x1911')]=new _0x5a69ca(this[_0x3611a0('0x2b79')]),this[_0x3611a0('0x3486')]=new _0x1f20d0(this['router']),this[_0x3611a0('0x365f')]=function(_0x272e65,_0x122d0e,_0x2299fe){var _0x53fc76=_0x3611a0;return _0x2a2a42[_0x53fc76('0x2b79')][_0x53fc76('0x33a0')][_0x53fc76('0x365f')](_0x272e65,_0x122d0e,_0x2299fe);},this[_0x3611a0('0x75f')]=function(){var _0x46d5bc=_0x3611a0;return _0x2a2a42[_0x46d5bc('0x2b79')][_0x46d5bc('0x33a0')][_0x46d5bc('0x75f')]();},this[_0x3611a0('0x314f')]=function(){var _0x9b3318=_0x3611a0;return _0x2a2a42[_0x9b3318('0x2b79')][_0x9b3318('0x33a0')][_0x9b3318('0x314f')]();},this['hash']=function(){var _0x521355=_0x3611a0;return _0x2a2a42[_0x521355('0x2b79')][_0x521355('0x33a0')][_0x521355('0x206a')]();},this['onChange']=function(_0x1d914d){var _0xdae269=_0x3611a0;return _0x2a2a42[_0xdae269('0x2b79')][_0xdae269('0x33a0')][_0xdae269('0x31f1')](_0x1d914d);};}return _0x4e4e34[_0x3bdc71('0x5a')][_0x3bdc71('0x38af')]=function(){var _0x53130a=_0x3bdc71;this[_0x53130a('0x3879')](!0x1),this[_0x53130a('0x1911')]['dispose']();},_0x4e4e34[_0x3bdc71('0x5a')][_0x3bdc71('0x14d3')]=function(){var _0x1b289f=_0x3bdc71;return{'path':this[_0x1b289f('0x75f')](),'search':this[_0x1b289f('0x314f')](),'hash':this[_0x1b289f('0x206a')]()};},_0x4e4e34[_0x3bdc71('0x5a')][_0x3bdc71('0x1dc3')]=function(_0x3df4d4){var _0x2b9dd1=_0x3bdc71;if(!_0x3df4d4||!_0x3df4d4[_0x2b9dd1('0x1859')]){var _0x24d6c0=this[_0x2b9dd1('0x2b79')],_0x57187a=_0x24d6c0['urlService'],_0x46c6fc=_0x24d6c0['stateService'],_0x59e08e={'path':_0x57187a[_0x2b9dd1('0x75f')](),'search':_0x57187a[_0x2b9dd1('0x314f')](),'hash':_0x57187a[_0x2b9dd1('0x206a')]()},_0x5bd11e=this[_0x2b9dd1('0x21ae')](_0x59e08e);_0x449885([[_0x3f2c2e,function(_0x98ca1f){var _0x3473ab=_0x2b9dd1;return _0x57187a[_0x3473ab('0x365f')](_0x98ca1f,!0x0);}],[_0x57c6a8[_0x2b9dd1('0xfb9')],function(_0x40cb9d){var _0x3a890b=_0x2b9dd1;return _0x46c6fc['go'](_0x40cb9d[_0x3a890b('0x380')],_0x40cb9d[_0x3a890b('0x46e')],_0x40cb9d['options']);}],[_0x3d3db3(_0x57c6a8),function(_0x56c361){var _0x247e20=_0x2b9dd1;return _0x46c6fc['go'](_0x56c361[_0x247e20('0x380')](),_0x56c361[_0x247e20('0x46e')](),_0x56c361[_0x247e20('0xded')]());}]])(_0x5bd11e&&_0x5bd11e[_0x2b9dd1('0xb25')][_0x2b9dd1('0x38a8')](_0x5bd11e['match'],_0x59e08e,this[_0x2b9dd1('0x2b79')]));}},_0x4e4e34[_0x3bdc71('0x5a')][_0x3bdc71('0x3879')]=function(_0x529273){var _0x3ce7e9=_0x3bdc71,_0x119e5f=this;if(!0x1!==_0x529273)return this[_0x3ce7e9('0x27a8')]=this[_0x3ce7e9('0x27a8')]||this['router'][_0x3ce7e9('0xf24')][_0x3ce7e9('0x31f1')](function(_0x34f126){var _0x4634be=_0x3ce7e9;return _0x119e5f[_0x4634be('0x1dc3')](_0x34f126);});this[_0x3ce7e9('0x27a8')]&&this[_0x3ce7e9('0x27a8')](),delete this['_stopListeningFn'];},_0x4e4e34[_0x3bdc71('0x5a')]['deferIntercept']=function(_0x357a82){var _0x33248e=_0x3bdc71;void 0x0===_0x357a82&&(_0x357a82=!0x0),this[_0x33248e('0x1bdc')]=_0x357a82;},_0x4e4e34[_0x3bdc71('0x5a')][_0x3bdc71('0x21ae')]=function(_0x5b5165){var _0x1ed5ed=_0x3bdc71,_0x21a413=this;_0x5b5165=_0x45ee70({'path':'','search':{},'hash':''},_0x5b5165);for(var _0x2f1a16,_0x1f6e27=this['rules'][_0x1ed5ed('0x1911')](),_0xad57=function(_0x1a0532){var _0x41f42c=_0x1ed5ed,_0x36177f=_0x1a0532[_0x41f42c('0x21ae')](_0x5b5165,_0x21a413[_0x41f42c('0x2b79')]);return _0x36177f&&{'match':_0x36177f,'rule':_0x1a0532,'weight':_0x1a0532[_0x41f42c('0x2d14')](_0x36177f)};},_0x34e1be=0x0;_0x34e1be<_0x1f6e27[_0x1ed5ed('0x175a')]&&(!_0x2f1a16||_0x2f1a16[_0x1ed5ed('0xb25')]['_group']===_0x1f6e27[_0x34e1be][_0x1ed5ed('0xceb')]);_0x34e1be++){var _0x4500a7=_0xad57(_0x1f6e27[_0x34e1be]);_0x2f1a16=!_0x2f1a16||_0x4500a7&&_0x4500a7['weight']>_0x2f1a16[_0x1ed5ed('0x55')]?_0x4500a7:_0x2f1a16;}return _0x2f1a16;},_0x4e4e34;}(),_0x2c17ec=0x0,_0x4568c3=[_0x2877f5('0x327a'),'protocol',_0x2877f5('0x2bea'),'baseHref',_0x2877f5('0x2c2f'),'hashPrefix'],_0x4bed38=_0x2555bc(_0x2877f5('0x100f'),['url',_0x2877f5('0x75f'),_0x2877f5('0x314f'),'hash',_0x2877f5('0x31f1')]),_0x34f7df=_0x2555bc(_0x2877f5('0x2505'),_0x4568c3),_0x47e155=function(){var _0x276ae9=_0x2877f5;function _0x12089f(_0x2b2eb4,_0x1a8309){var _0x430275=a2_0x4bfe;void 0x0===_0x2b2eb4&&(_0x2b2eb4=_0x4bed38),void 0x0===_0x1a8309&&(_0x1a8309=_0x34f7df),this[_0x430275('0x33a0')]=_0x2b2eb4,this[_0x430275('0x1010')]=_0x1a8309,this[_0x430275('0x28bf')]=_0x2c17ec++,this[_0x430275('0x18f9')]=!0x1,this[_0x430275('0x227d')]=[],this[_0x430275('0x25d2')]=_0x59472f,this[_0x430275('0x228b')]=new _0x4f2939(this),this[_0x430275('0x2514')]=new _0x351348(),this[_0x430275('0x170')]=new _0x7a69cc(this),this[_0x430275('0x14b4')]=new _0x4b0b96(this),this[_0x430275('0x300e')]=new _0x33ce04(this),this[_0x430275('0xf24')]=new _0x45c13f(this),this[_0x430275('0x1c21')]=new _0x25dbe5(this),this[_0x430275('0xea2')]=new _0x2ebe9e(this),this[_0x430275('0x1cdc')]={},this['viewService'][_0x430275('0x36d7')][_0x430275('0xd72')](this[_0x430275('0x1c21')][_0x430275('0x1ad')]()),this['globals'][_0x430275('0x23cf')]=this[_0x430275('0x1c21')][_0x430275('0x1ad')](),this[_0x430275('0x2514')][_0x430275('0x34c')]=this[_0x430275('0x2514')][_0x430275('0x23cf')][_0x430275('0x1840')],this[_0x430275('0x121b')](this[_0x430275('0x2514')]),this['disposable'](this[_0x430275('0xea2')]),this[_0x430275('0x121b')](this[_0x430275('0x1c21')]),this['disposable'](this[_0x430275('0x170')]),this[_0x430275('0x121b')](this[_0x430275('0xf24')]),this[_0x430275('0x121b')](_0x2b2eb4),this[_0x430275('0x121b')](_0x1a8309);}return _0x12089f[_0x276ae9('0x5a')][_0x276ae9('0x121b')]=function(_0x4ba3c6){this['_disposables']['push'](_0x4ba3c6);},_0x12089f[_0x276ae9('0x5a')][_0x276ae9('0x38af')]=function(_0x1d216b){var _0x2d595d=_0x276ae9,_0x1f962d=this;_0x1d216b&&_0x27da05(_0x1d216b['dispose'])?_0x1d216b['dispose'](this):(this[_0x2d595d('0x18f9')]=!0x0,this[_0x2d595d('0x227d')]['slice']()[_0x2d595d('0x247d')](function(_0x6a836c){var _0x485870=_0x2d595d;try{_0x485870('0x19aa')==typeof _0x6a836c[_0x485870('0x38af')]&&_0x6a836c['dispose'](_0x1f962d),_0xf7741b(_0x1f962d[_0x485870('0x227d')],_0x6a836c);}catch(_0x446f7f){}}));},_0x12089f[_0x276ae9('0x5a')][_0x276ae9('0x35c2')]=function(_0x20dfb5,_0x26f24f){var _0x208d30=_0x276ae9;void 0x0===_0x26f24f&&(_0x26f24f={});var _0x2b74b5=new _0x20dfb5(this,_0x26f24f);if(!_0x2b74b5['name'])throw new Error(_0x208d30('0x275f')+_0x2b74b5);return this[_0x208d30('0x227d')][_0x208d30('0x1a90')](_0x2b74b5),this[_0x208d30('0x1cdc')][_0x2b74b5[_0x208d30('0x455')]]=_0x2b74b5;},_0x12089f['prototype'][_0x276ae9('0x25c5')]=function(_0x4d68f3){var _0x4c207c=_0x276ae9;return _0x4d68f3?this['_plugins'][_0x4d68f3]:_0x5c51e9(this[_0x4c207c('0x1cdc')]);},_0x12089f;}();function _0x9ac373(_0x2cd72d){var _0xd79c02=_0x2877f5;_0x2cd72d[_0xd79c02('0xf48')](_0x305b72[_0xd79c02('0x32d3')](_0x47e155,_0x2cd72d[_0xd79c02('0x2b79')]),''),_0x2cd72d[_0xd79c02('0xf48')](_0x305b72[_0xd79c02('0x32d3')](_0x5c149b,_0x2cd72d),''),_0x2cd72d[_0xd79c02('0xf48')](_0x305b72[_0xd79c02('0x32d3')](_0xd79c02('0x2df4'),_0x2cd72d),''),_0x2cd72d[_0xd79c02('0xf48')](_0x305b72[_0xd79c02('0x32d3')](_0xd79c02('0x2e4a'),_0x2cd72d[_0xd79c02('0x46e')]()),''),_0x2cd72d[_0xd79c02('0x1b96')]()[_0xd79c02('0x247d')](function(_0x12238e){var _0x147502=_0xd79c02;_0x2cd72d[_0x147502('0xf48')](_0x305b72[_0x147502('0x32d3')]('$state$',_0x12238e),_0x12238e);});}var _0x36d8b9=function(_0x45cb63){return _0x45cb63['onCreate']({},_0x9ac373);},_0x339140=_0x3f84d6([_0x2877f5('0x2df4'),_0x5c149b]),_0x113b93=function(_0xc20e30){var _0xdf1649=_0x2877f5,_0x45a897=_0x5c51e9(_0xc20e30['treeChanges']())[_0xdf1649('0x33b0')](_0x40987e,[])['reduce'](_0x3b3fbf,[]),_0x8a8076=function(_0x3bee72){var _0x2e08cb=_0xdf1649;return _0x339140(_0x3bee72[_0x2e08cb('0x3b7')])?_0x305b72[_0x2e08cb('0x32d3')](_0x3bee72[_0x2e08cb('0x3b7')],null):_0x3bee72;};_0x45a897[_0xdf1649('0x247d')](function(_0x49893e){_0x49893e['resolvables']=_0x49893e['resolvables']['map'](_0x8a8076);});},_0x5901ab=function(_0x148130){var _0x1a55ce=_0x2877f5,_0x5d04d0=_0x148130['to']()['redirectTo'];if(_0x5d04d0){var _0x285997=_0x148130[_0x1a55ce('0x2b79')][_0x1a55ce('0xea2')];return _0x27da05(_0x5d04d0)?_0x18a5ff['$q'][_0x1a55ce('0x36d1')](_0x5d04d0(_0x148130))[_0x1a55ce('0x26b5')](_0x262013):_0x262013(_0x5d04d0);}function _0x262013(_0x258c0f){var _0x1100ab=_0x1a55ce;if(_0x258c0f)return _0x258c0f instanceof _0x57c6a8?_0x258c0f:_0x3f2c2e(_0x258c0f)?_0x285997['target'](_0x258c0f,_0x148130[_0x1100ab('0x46e')](),_0x148130[_0x1100ab('0xded')]()):_0x258c0f[_0x1100ab('0x380')]||_0x258c0f[_0x1100ab('0x46e')]?_0x285997[_0x1100ab('0x312f')](_0x258c0f['state']||_0x148130['to'](),_0x258c0f[_0x1100ab('0x46e')]||_0x148130[_0x1100ab('0x46e')](),_0x148130[_0x1100ab('0xded')]()):void 0x0;}},_0x3db8e2=function(_0x584f24){var _0x149b05=_0x2877f5;return _0x584f24[_0x149b05('0x2a85')]({'to':function(_0x1675e6){var _0xab8b30=_0x149b05;return!!_0x1675e6[_0xab8b30('0x16ee')];}},_0x5901ab);};function _0x3bc622(_0x997208){return function(_0x838c48,_0x479edb){var _0x37bd0c=a2_0x4bfe;return(0x0,_0x479edb[_0x37bd0c('0x125d')]()[_0x997208])(_0x838c48,_0x479edb);};}var _0x2cde84=_0x3bc622(_0x2877f5('0x2743')),_0x54512c=function(_0x59f26c){return _0x59f26c['onExit']({'exiting':function(_0x4d1ef0){var _0x303b87=a2_0x4bfe;return!!_0x4d1ef0[_0x303b87('0x2743')];}},_0x2cde84);},_0x2b9a9b=_0x3bc622(_0x2877f5('0x2aaa')),_0x3ed031=function(_0x5a6545){var _0x179637=_0x2877f5;return _0x5a6545[_0x179637('0x2aaa')]({'retained':function(_0x3910d2){var _0x1cf969=_0x179637;return!!_0x3910d2[_0x1cf969('0x2aaa')];}},_0x2b9a9b);},_0x50cb57=_0x3bc622(_0x2877f5('0xc3f')),_0x5d47ab=function(_0x3a2cf2){var _0x55676b=_0x2877f5;return _0x3a2cf2[_0x55676b('0xc3f')]({'entering':function(_0x4de575){return!!_0x4de575['onEnter'];}},_0x50cb57);},_0x28f287=0x3e8,_0x436509=function(_0x51a647){var _0x3f116a=_0x2877f5;return new _0x474a90(_0x51a647[_0x3f116a('0x2fc7')]()['to'])[_0x3f116a('0xee6')](_0x3f116a('0x3730'),_0x51a647)[_0x3f116a('0x26b5')](_0x2ab390);},_0x398648=function(_0x5a6f43){var _0x15eefd=_0x2877f5;return _0x5a6f43[_0x15eefd('0x2a85')]({},_0x436509,{'priority':_0x28f287});},_0x55045c=function(_0x162555,_0x29c5b1){var _0x274efd=_0x2877f5;return new _0x474a90(_0x162555[_0x274efd('0x2fc7')]()['to'])[_0x274efd('0x29c2')](_0x29c5b1['$$state']())['resolvePath'](_0x274efd('0x30e9'),_0x162555)[_0x274efd('0x26b5')](_0x2ab390);},_0x532e8d=function(_0x52f67f){var _0x49d289=_0x2877f5;return _0x52f67f[_0x49d289('0xc3f')]({'entering':_0x288ab9(!0x0)},_0x55045c,{'priority':_0x28f287});},_0x4d171a=function(_0x582833){var _0x145baa=_0x2877f5;return new _0x474a90(_0x582833[_0x145baa('0x2fc7')]()['to'])[_0x145baa('0xee6')](_0x145baa('0x30e9'),_0x582833)[_0x145baa('0x26b5')](_0x2ab390);},_0x21e779=function(_0xbc5d){var _0x1c9424=_0x2877f5;return _0xbc5d[_0x1c9424('0x34ec')]({},_0x4d171a,{'priority':_0x28f287});},_0xfab708=function(_0x711cbd){var _0x2b9b8f=_0x2877f5,_0x1dd1b2=_0x18a5ff['$q'],_0x16e779=_0x711cbd['views'](_0x2b9b8f('0x1b96'));if(_0x16e779[_0x2b9b8f('0x175a')])return _0x1dd1b2['all'](_0x16e779[_0x2b9b8f('0x2d86')](function(_0x344ad7){var _0x4b298d=_0x2b9b8f;return _0x1dd1b2[_0x4b298d('0x36d1')](_0x344ad7[_0x4b298d('0x3612')]());}))[_0x2b9b8f('0x26b5')](_0x2ab390);},_0x4a4d91=function(_0x6bbf46){var _0x3f74d8=_0x2877f5;return _0x6bbf46[_0x3f74d8('0x34ec')]({},_0xfab708);},_0xf3bb6e=function(_0x2ff210){var _0x55ceb1=_0x2877f5,_0x2a6db2=_0x2ff210[_0x55ceb1('0xe3a')](_0x55ceb1('0x1b96')),_0x2e731d=_0x2ff210[_0x55ceb1('0xe3a')](_0x55ceb1('0xed5'));if(_0x2a6db2[_0x55ceb1('0x175a')]||_0x2e731d[_0x55ceb1('0x175a')]){var _0x4980a5=_0x2ff210[_0x55ceb1('0x2b79')][_0x55ceb1('0x228b')];_0x2e731d[_0x55ceb1('0x247d')](function(_0x722293){var _0x58c6cf=_0x55ceb1;return _0x4980a5[_0x58c6cf('0x16af')](_0x722293);}),_0x2a6db2[_0x55ceb1('0x247d')](function(_0x217b61){var _0x1861ee=_0x55ceb1;return _0x4980a5[_0x1861ee('0x279e')](_0x217b61);}),_0x4980a5[_0x55ceb1('0x1dc3')]();}},_0x3d4e68=function(_0x3e549a){var _0x1c0cf4=_0x2877f5;return _0x3e549a[_0x1c0cf4('0x13ab')]({},_0xf3bb6e);},_0x1147c1=function(_0x4bb8f6){var _0xdcdebc=_0x2877f5,_0x4269aa=_0x4bb8f6['router'][_0xdcdebc('0x2514')],_0x182a99=function(){var _0x19b867=_0xdcdebc;_0x4269aa[_0x19b867('0x38ca')][_0x19b867('0x25fb')](_0x4bb8f6),_0x4269aa[_0x19b867('0x23cf')]=_0x4bb8f6[_0x19b867('0x3346')](),_0x4269aa[_0x19b867('0x34c')]=_0x4269aa[_0x19b867('0x23cf')][_0x19b867('0x1840')],_0xf0a601(_0x4bb8f6[_0x19b867('0x46e')](),_0x4269aa[_0x19b867('0x46e')]);},_0xfa2c4e=function(){var _0x36be00=_0xdcdebc;_0x4269aa['transition']===_0x4bb8f6&&(_0x4269aa[_0x36be00('0x20d1')]=null);};_0x4bb8f6[_0xdcdebc('0x13ab')]({},_0x182a99,{'priority':0x2710}),_0x4bb8f6[_0xdcdebc('0x34a6')][_0xdcdebc('0x26b5')](_0xfa2c4e,_0xfa2c4e);},_0x3561ef=function(_0x3906b5){var _0x34956a=_0x2877f5;return _0x3906b5[_0x34956a('0x37ff')]({},_0x1147c1);},_0x3bd2d3=function(_0xc694b0){var _0x34d09f=_0x2877f5,_0x11ba28=_0xc694b0['options'](),_0x3a87bc=_0xc694b0[_0x34d09f('0x2b79')][_0x34d09f('0xea2')],_0x46cd93=_0xc694b0['router'][_0x34d09f('0x300e')];if(_0x34d09f('0x365f')!==_0x11ba28[_0x34d09f('0x1a07')]&&_0x11ba28['location']&&_0x3a87bc[_0x34d09f('0x23cf')][_0x34d09f('0x1fa0')]){var _0x56ab56={'replace':_0x34d09f('0x34c8')===_0x11ba28[_0x34d09f('0x12')]};_0x46cd93[_0x34d09f('0x1a90')](_0x3a87bc[_0x34d09f('0x23cf')][_0x34d09f('0x1fa0')][_0x34d09f('0x365f')],_0x3a87bc[_0x34d09f('0x46e')],_0x56ab56);}_0x46cd93[_0x34d09f('0x3956')](!0x0);},_0x1a339f=function(_0xc97232){var _0x36a066=_0x2877f5;return _0xc97232[_0x36a066('0x13ab')]({},_0x3bd2d3,{'priority':0x270f});},_0x1fff32=function(_0x20f7eb){var _0x31bc9a=_0x2877f5,_0x56535d=_0x20f7eb[_0x31bc9a('0x2b79')];function _0x2989a2(){var _0x5dd856=_0x31bc9a;if(_0x5dd856('0x365f')!==_0x20f7eb['originalTransition']()[_0x5dd856('0xded')]()['source']){var _0x593e0c=_0x20f7eb['targetState']();return _0x56535d[_0x5dd856('0xea2')][_0x5dd856('0x312f')](_0x593e0c['identifier'](),_0x593e0c[_0x5dd856('0x46e')](),_0x593e0c['options']());}var _0x125e86=_0x56535d[_0x5dd856('0xf24')],_0x158c9b=_0x125e86['match'](_0x125e86[_0x5dd856('0x14d3')]()),_0x689128=_0x158c9b&&_0x158c9b[_0x5dd856('0xb25')];if(_0x689128&&_0x5dd856('0x2c8e')===_0x689128[_0x5dd856('0x21a5')]){var _0x3c9186=_0x689128[_0x5dd856('0x380')],_0x1ec649=_0x158c9b[_0x5dd856('0x21ae')];return _0x56535d['stateService'][_0x5dd856('0x312f')](_0x3c9186,_0x1ec649,_0x20f7eb[_0x5dd856('0xded')]());}_0x56535d[_0x5dd856('0xf24')][_0x5dd856('0x1dc3')]();}var _0x392c8f=_0x20f7eb['entering']()[_0x31bc9a('0x3127')](function(_0x5bbf15){var _0x5f1513=_0x31bc9a;return!!_0x5bbf15[_0x5f1513('0x125d')]()[_0x5f1513('0x1b87')];})[_0x31bc9a('0x2d86')](function(_0x1f941d){return _0x4bb09d(_0x20f7eb,_0x1f941d);});return _0x18a5ff['$q'][_0x31bc9a('0x130c')](_0x392c8f)[_0x31bc9a('0x26b5')](_0x2989a2);},_0x27217c=function(_0x3e02c1){var _0x4c2e28=_0x2877f5;return _0x3e02c1[_0x4c2e28('0x3703')]({'entering':function(_0x565763){var _0xddd8bd=_0x4c2e28;return!!_0x565763[_0xddd8bd('0x1b87')];}},_0x1fff32);};function _0x4bb09d(_0x4e4787,_0x11dfee){var _0x11155f=_0x2877f5,_0x242bc2=_0x11dfee[_0x11155f('0x125d')]()[_0x11155f('0x1b87')],_0x54c52d=_0x242bc2['_promise'];if(!_0x54c52d){var _0x12ab96=function(_0x35ee49){var _0x40dcc1=_0x11155f;return delete _0x11dfee['lazyLoad'],delete _0x11dfee['$$state']()[_0x40dcc1('0x1b87')],delete _0x242bc2[_0x40dcc1('0xd3')],_0x35ee49;},_0x4e8f09=function(_0x5e12aa){var _0x156ba0=_0x11155f;return delete _0x242bc2[_0x156ba0('0xd3')],_0x18a5ff['$q']['reject'](_0x5e12aa);};_0x54c52d=_0x242bc2['_promise']=_0x18a5ff['$q']['when'](_0x242bc2(_0x4e4787,_0x11dfee))[_0x11155f('0x26b5')](_0x5e3a5d)[_0x11155f('0x26b5')](_0x12ab96,_0x4e8f09);}function _0x5e3a5d(_0xfa72a9){var _0x34732b=_0x11155f;return _0xfa72a9&&Array['isArray'](_0xfa72a9['states'])&&_0xfa72a9[_0x34732b('0xddb')][_0x34732b('0x247d')](function(_0x1804f0){var _0x393f88=_0x34732b;return _0x4e4787[_0x393f88('0x2b79')]['stateRegistry'][_0x393f88('0x2bd7')](_0x1804f0);}),_0xfa72a9;}return _0x54c52d;}var _0x595ab7=function(){function _0x17c1b6(_0x4a9c45,_0x3eea55,_0x22c24f,_0x3e46c5,_0x408e8a,_0x55eff3,_0x51303c,_0x147620){var _0x3fbd39=a2_0x4bfe;void 0x0===_0x408e8a&&(_0x408e8a=!0x1),void 0x0===_0x55eff3&&(_0x55eff3=_0x3484ca[_0x3fbd39('0x191a')]),void 0x0===_0x51303c&&(_0x51303c=_0x3484ca[_0x3fbd39('0x2fac')]),void 0x0===_0x147620&&(_0x147620=!0x1),this[_0x3fbd39('0x455')]=_0x4a9c45,this[_0x3fbd39('0x3607')]=_0x3eea55,this['hookOrder']=_0x22c24f,this[_0x3fbd39('0x30fa')]=_0x3e46c5,this[_0x3fbd39('0x208a')]=_0x408e8a,this[_0x3fbd39('0xad9')]=_0x55eff3,this[_0x3fbd39('0x1d8a')]=_0x51303c,this[_0x3fbd39('0x3483')]=_0x147620;}return _0x17c1b6;}();function _0x10e731(_0x3a03f9){var _0x1c8712=_0x2877f5,_0x7102cc=_0x3a03f9[_0x1c8712('0xa7f')]();if(_0x7102cc){_0x59472f[_0x1c8712('0x139b')](_0x3a03f9);var _0x9e40e1=_0x3a03f9[_0x1c8712('0x2b79')]['globals'][_0x1c8712('0x20d1')];return _0x1c8712('0x1ae')===_0x7102cc&&_0x9e40e1&&_0x9e40e1['abort'](),_0x250c92[_0x1c8712('0x2e37')]()[_0x1c8712('0x2c8f')]();}}var _0x1e1e80=function(_0x294f95){return _0x294f95['onBefore']({},_0x10e731,{'priority':-0x270f});};function _0x1a6e7d(_0x1577b4){var _0x3e0eaa=_0x2877f5;if(!_0x1577b4['valid']())throw new Error(_0x1577b4['error']()[_0x3e0eaa('0x6ef')]());}var _0x3b0007=function(_0x38bd21){var _0xa448bb=_0x2877f5;return _0x38bd21[_0xa448bb('0x3703')]({},_0x1a6e7d,{'priority':-0x2710});},_0x1e3284={'location':!0x0,'relative':null,'inherit':!0x1,'notify':!0x0,'reload':!0x1,'supercede':!0x0,'custom':{},'current':function(){return null;},'source':_0x2877f5('0x2f35')},_0x7a69cc=function(){var _0x479c72=_0x2877f5;function _0x35b6e8(_0x8ae3c4){var _0x51e3dd=a2_0x4bfe;this[_0x51e3dd('0x38ce')]=0x0,this[_0x51e3dd('0x2661')]=[],this[_0x51e3dd('0x2ec8')]={},this[_0x51e3dd('0xb33')]={},this[_0x51e3dd('0x37e0')]=_0x8ae3c4,this[_0x51e3dd('0x2a11')]=_0x8ae3c4[_0x51e3dd('0x228b')],this[_0x51e3dd('0x1e22')]={},this['_pluginapi']=_0x3dbb84(_0x288ab9(this),{},_0x288ab9(this),[_0x51e3dd('0x2afb'),'_defineEvent',_0x51e3dd('0x3722'),_0x51e3dd('0xb5'),_0x51e3dd('0x1ef0')]),this[_0x51e3dd('0x101e')](),this[_0x51e3dd('0x38a4')](),this[_0x51e3dd('0x3d2')](),_0x8ae3c4['globals'][_0x51e3dd('0x38ca')]['onEvict'](_0x113b93);}return _0x35b6e8[_0x479c72('0x5a')][_0x479c72('0x37ff')]=function(_0x40b123,_0xff0ee9,_0x55e3a6){},_0x35b6e8['prototype'][_0x479c72('0x3703')]=function(_0x3b2acf,_0x44a55e,_0x5bbff5){},_0x35b6e8[_0x479c72('0x5a')]['onStart']=function(_0x1b4def,_0x268151,_0x400b60){},_0x35b6e8['prototype'][_0x479c72('0x2743')]=function(_0x3c69b0,_0x3a8686,_0x2f821a){},_0x35b6e8[_0x479c72('0x5a')]['onRetain']=function(_0x5b9eb0,_0x1c7fad,_0x51e468){},_0x35b6e8[_0x479c72('0x5a')][_0x479c72('0xc3f')]=function(_0x11e49d,_0x2943ee,_0x55c0f1){},_0x35b6e8[_0x479c72('0x5a')][_0x479c72('0x34ec')]=function(_0x366289,_0x2e2293,_0x58a123){},_0x35b6e8['prototype'][_0x479c72('0x13ab')]=function(_0x4a5fee,_0x24ac13,_0x8e5f8a){},_0x35b6e8[_0x479c72('0x5a')][_0x479c72('0x212f')]=function(_0x26ce66,_0x24756b,_0xec336d){},_0x35b6e8[_0x479c72('0x5a')]['dispose']=function(_0x37ba7f){var _0x1097cd=_0x479c72;_0x5c51e9(this[_0x1097cd('0x2ec8')])[_0x1097cd('0x247d')](function(_0x4df28a){var _0x3672c2=_0x1097cd;return _0x4df28a[_0x3672c2('0x247d')](function(_0x4f0a85){var _0x308dff=_0x3672c2;_0x4f0a85[_0x308dff('0xd79')]=!0x0,_0xf7741b(_0x4df28a,_0x4f0a85);});});},_0x35b6e8['prototype'][_0x479c72('0x126')]=function(_0x48a2a9,_0x4d1646){var _0x6d05a=_0x479c72;return new _0x5c149b(_0x48a2a9,_0x4d1646,this[_0x6d05a('0x37e0')]);},_0x35b6e8[_0x479c72('0x5a')][_0x479c72('0x38a4')]=function(){var _0x1c64f3=_0x479c72,_0x2c2600=_0x44a9e0[_0x1c64f3('0x28b8')],_0x51c24e=_0x3484ca,_0x164ae3=this[_0x1c64f3('0xb33')],_0x5db759=!0x1,_0x4a77df=!0x0,_0x169ec4=!0x0;this[_0x1c64f3('0x2cec')](_0x1c64f3('0x37ff'),_0x2c2600[_0x1c64f3('0x884')],0x0,_0x164ae3['to'],_0x5db759,_0x51c24e['LOG_REJECTED_RESULT'],_0x51c24e[_0x1c64f3('0x2db8')],_0x169ec4),this['_defineEvent'](_0x1c64f3('0x3703'),_0x2c2600[_0x1c64f3('0x3052')],0x0,_0x164ae3['to']),this[_0x1c64f3('0x2cec')](_0x1c64f3('0x2a85'),_0x2c2600[_0x1c64f3('0x126c')],0x0,_0x164ae3['to']),this['_defineEvent'](_0x1c64f3('0x2743'),_0x2c2600[_0x1c64f3('0x126c')],0x64,_0x164ae3[_0x1c64f3('0xed5')],_0x4a77df),this[_0x1c64f3('0x2cec')](_0x1c64f3('0x2aaa'),_0x2c2600[_0x1c64f3('0x126c')],0xc8,_0x164ae3[_0x1c64f3('0x293c')]),this[_0x1c64f3('0x2cec')](_0x1c64f3('0xc3f'),_0x2c2600[_0x1c64f3('0x126c')],0x12c,_0x164ae3[_0x1c64f3('0x1b96')]),this[_0x1c64f3('0x2cec')](_0x1c64f3('0x34ec'),_0x2c2600[_0x1c64f3('0x126c')],0x190,_0x164ae3['to']),this[_0x1c64f3('0x2cec')]('onSuccess',_0x2c2600[_0x1c64f3('0x1d6a')],0x0,_0x164ae3['to'],_0x5db759,_0x51c24e['LOG_REJECTED_RESULT'],_0x51c24e[_0x1c64f3('0x1834')],_0x169ec4),this['_defineEvent'](_0x1c64f3('0x212f'),_0x2c2600[_0x1c64f3('0x3048')],0x0,_0x164ae3['to'],_0x5db759,_0x51c24e[_0x1c64f3('0x24ce')],_0x51c24e[_0x1c64f3('0x1834')],_0x169ec4);},_0x35b6e8[_0x479c72('0x5a')]['_defineCorePaths']=function(){var _0x56fa4d=_0x479c72,_0x5ca287=_0x44a9e0[_0x56fa4d('0x2069')][_0x56fa4d('0x2c8e')],_0x519099=_0x44a9e0[_0x56fa4d('0x2069')]['TRANSITION'];this[_0x56fa4d('0x2afb')]('to',_0x519099),this[_0x56fa4d('0x2afb')](_0x56fa4d('0x2f5'),_0x519099),this['_definePathType'](_0x56fa4d('0xed5'),_0x5ca287),this[_0x56fa4d('0x2afb')]('retained',_0x5ca287),this[_0x56fa4d('0x2afb')]('entering',_0x5ca287);},_0x35b6e8[_0x479c72('0x5a')][_0x479c72('0x2cec')]=function(_0x450865,_0x2378e2,_0x481c51,_0x5ae7f6,_0xcedae5,_0x2bef4d,_0x21568a,_0x4fbad1){var _0x2be1d2=_0x479c72;void 0x0===_0xcedae5&&(_0xcedae5=!0x1),void 0x0===_0x2bef4d&&(_0x2bef4d=_0x3484ca[_0x2be1d2('0x191a')]),void 0x0===_0x21568a&&(_0x21568a=_0x3484ca[_0x2be1d2('0x2fac')]),void 0x0===_0x4fbad1&&(_0x4fbad1=!0x1);var _0x189a6e=new _0x595ab7(_0x450865,_0x2378e2,_0x481c51,_0x5ae7f6,_0xcedae5,_0x2bef4d,_0x21568a,_0x4fbad1);this[_0x2be1d2('0x2661')][_0x2be1d2('0x1a90')](_0x189a6e),_0x29a365(this,this,_0x189a6e);},_0x35b6e8[_0x479c72('0x5a')]['_getEvents']=function(_0x19a3a3){var _0x21f212=_0x479c72;return(_0x417a63(_0x19a3a3)?this[_0x21f212('0x2661')][_0x21f212('0x3127')](function(_0x445a57){var _0x1a2bc9=_0x21f212;return _0x445a57[_0x1a2bc9('0x3607')]===_0x19a3a3;}):this[_0x21f212('0x2661')][_0x21f212('0x2c0a')]())['sort'](function(_0x1eacad,_0x20e6d7){var _0x259447=_0x21f212,_0x2aebef=_0x1eacad[_0x259447('0x3607')]-_0x20e6d7[_0x259447('0x3607')];return 0x0===_0x2aebef?_0x1eacad[_0x259447('0xae')]-_0x20e6d7[_0x259447('0xae')]:_0x2aebef;});},_0x35b6e8[_0x479c72('0x5a')]['_definePathType']=function(_0x44f91a,_0x52224f){var _0x42626b=_0x479c72;this[_0x42626b('0xb33')][_0x44f91a]={'name':_0x44f91a,'scope':_0x52224f};},_0x35b6e8[_0x479c72('0x5a')][_0x479c72('0x3722')]=function(){var _0x2dd64a=_0x479c72;return this[_0x2dd64a('0xb33')];},_0x35b6e8['prototype'][_0x479c72('0x1ef0')]=function(_0x523a35){var _0x53af49=_0x479c72;return this[_0x53af49('0x2ec8')][_0x523a35];},_0x35b6e8[_0x479c72('0x5a')][_0x479c72('0x3d2')]=function(){var _0x15bacc=_0x479c72,_0x2781d8=this[_0x15bacc('0x1e22')];_0x2781d8[_0x15bacc('0x104f')]=_0x36d8b9(this),_0x2781d8[_0x15bacc('0x2e37')]=_0x1e1e80(this),_0x2781d8['invalid']=_0x3b0007(this),_0x2781d8[_0x15bacc('0x16ee')]=_0x3db8e2(this),_0x2781d8[_0x15bacc('0x2743')]=_0x54512c(this),_0x2781d8['onRetain']=_0x3ed031(this),_0x2781d8[_0x15bacc('0xc3f')]=_0x5d47ab(this),_0x2781d8[_0x15bacc('0xc38')]=_0x398648(this),_0x2781d8['lazyResolve']=_0x532e8d(this),_0x2781d8['resolveAll']=_0x21e779(this),_0x2781d8[_0x15bacc('0x65b')]=_0x4a4d91(this),_0x2781d8[_0x15bacc('0x19b6')]=_0x3d4e68(this),_0x2781d8[_0x15bacc('0x3764')]=_0x3561ef(this),_0x2781d8[_0x15bacc('0x17b4')]=_0x1a339f(this),_0x2781d8['lazyLoad']=_0x27217c(this);},_0x35b6e8;}(),_0x2ebe9e=function(){var _0x28826a=_0x2877f5;function _0x54abdc(_0x45701a){var _0x4804b7=a2_0x4bfe;this[_0x4804b7('0x2b79')]=_0x45701a,this['invalidCallbacks']=[],this[_0x4804b7('0x26cf')]=function(_0x38bad8){var _0x8f379f=_0x4804b7;_0x38bad8 instanceof Error&&_0x38bad8[_0x8f379f('0x31fe')]?(console[_0x8f379f('0x2534')](_0x38bad8),console[_0x8f379f('0x2534')](_0x38bad8[_0x8f379f('0x31fe')])):_0x38bad8 instanceof _0x250c92?(console[_0x8f379f('0x2534')](_0x38bad8[_0x8f379f('0x6ef')]()),_0x38bad8[_0x8f379f('0x25ee')]&&_0x38bad8[_0x8f379f('0x25ee')][_0x8f379f('0x31fe')]&&console['error'](_0x38bad8[_0x8f379f('0x25ee')][_0x8f379f('0x31fe')])):console['error'](_0x38bad8);};var _0x11e03b=[_0x4804b7('0x34c'),_0x4804b7('0x23cf'),_0x4804b7('0x46e'),_0x4804b7('0x20d1')],_0x3602ce=Object['keys'](_0x54abdc['prototype'])[_0x4804b7('0x3127')](_0x3d2611(_0x3f84d6(_0x11e03b)));_0x3dbb84(_0x288ab9(_0x54abdc['prototype']),this,_0x288ab9(this),_0x3602ce);}return Object[_0x28826a('0x2cd6')](_0x54abdc[_0x28826a('0x5a')],_0x28826a('0x20d1'),{'get':function(){var _0xbd3297=_0x28826a;return this[_0xbd3297('0x2b79')][_0xbd3297('0x2514')][_0xbd3297('0x20d1')];},'enumerable':!0x1,'configurable':!0x0}),Object[_0x28826a('0x2cd6')](_0x54abdc[_0x28826a('0x5a')],_0x28826a('0x46e'),{'get':function(){var _0x12a7c0=_0x28826a;return this[_0x12a7c0('0x2b79')][_0x12a7c0('0x2514')]['params'];},'enumerable':!0x1,'configurable':!0x0}),Object[_0x28826a('0x2cd6')](_0x54abdc[_0x28826a('0x5a')],_0x28826a('0x34c'),{'get':function(){var _0x42d99e=_0x28826a;return this[_0x42d99e('0x2b79')][_0x42d99e('0x2514')][_0x42d99e('0x34c')];},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](_0x54abdc[_0x28826a('0x5a')],'$current',{'get':function(){var _0xb52ae2=_0x28826a;return this[_0xb52ae2('0x2b79')]['globals'][_0xb52ae2('0x23cf')];},'enumerable':!0x1,'configurable':!0x0}),_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x38af')]=function(){var _0x2c382e=_0x28826a;this[_0x2c382e('0xb')](_0x2ab390),this[_0x2c382e('0x2e9e')]=[];},_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x2562')]=function(_0x778d6,_0xaf5ba3){var _0x4f0eb1=_0x28826a,_0x2b4575=this,_0x3e739f=_0x56d648[_0x4f0eb1('0x39bd')](this[_0x4f0eb1('0x2b79')][_0x4f0eb1('0x1c21')],_0x778d6),_0x420598=this[_0x4f0eb1('0x2b79')]['globals'],_0x456a71=function(){var _0x3ad7f2=_0x4f0eb1;return _0x420598['transitionHistory'][_0x3ad7f2('0x891')]();},_0x1a443f=_0x456a71(),_0x25aa8f=new _0x347668(this[_0x4f0eb1('0x2e9e')][_0x4f0eb1('0x2c0a')]()),_0x2237ae=new _0x474a90(_0x778d6)[_0x4f0eb1('0xe91')](),_0x3f8b6d=function(_0x8d7ce9){var _0x4b73a7=_0x4f0eb1;if(_0x8d7ce9 instanceof _0x57c6a8){var _0x2ff62a=_0x8d7ce9;return(_0x2ff62a=_0x2b4575[_0x4b73a7('0x312f')](_0x2ff62a[_0x4b73a7('0x306b')](),_0x2ff62a[_0x4b73a7('0x46e')](),_0x2ff62a[_0x4b73a7('0xded')]()))['valid']()?_0x456a71()!==_0x1a443f?_0x250c92[_0x4b73a7('0x1778')]()[_0x4b73a7('0x2c8f')]():_0x2b4575[_0x4b73a7('0x2574')](_0x2ff62a['identifier'](),_0x2ff62a[_0x4b73a7('0x46e')](),_0x2ff62a[_0x4b73a7('0xded')]()):_0x250c92[_0x4b73a7('0x3187')](_0x2ff62a[_0x4b73a7('0x2534')]())['toPromise']();}};function _0x1c23d7(){var _0x1b2224=_0x4f0eb1,_0x1bdefe=_0x25aa8f[_0x1b2224('0x27d2')]();return void 0x0===_0x1bdefe?_0x250c92['invalid'](_0xaf5ba3[_0x1b2224('0x2534')]())['toPromise']():_0x18a5ff['$q'][_0x1b2224('0x36d1')](_0x1bdefe(_0xaf5ba3,_0x3e739f,_0x2237ae))[_0x1b2224('0x26b5')](_0x3f8b6d)[_0x1b2224('0x26b5')](function(_0x5517a0){return _0x5517a0||_0x1c23d7();});}return _0x1c23d7();},_0x54abdc['prototype'][_0x28826a('0x286e')]=function(_0x43aabd){var _0x565b82=_0x28826a;return this['invalidCallbacks'][_0x565b82('0x1a90')](_0x43aabd),function(){var _0x29956e=_0x565b82;_0xf7741b(this[_0x29956e('0x2e9e')])(_0x43aabd);}[_0x565b82('0x1ecd')](this);},_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x2999')]=function(_0x34afa9){var _0x5882bb=_0x28826a;return this[_0x5882bb('0x2574')](this[_0x5882bb('0x34c')],this[_0x5882bb('0x46e')],{'reload':!_0x417a63(_0x34afa9)||_0x34afa9,'inherit':!0x1,'notify':!0x1});},_0x54abdc[_0x28826a('0x5a')]['go']=function(_0x9a1cd9,_0x203990,_0x4749d9){var _0xd128b5=_0x1b8ff7(_0x4749d9,{'relative':this['$current'],'inherit':!0x0},_0x1e3284);return this['transitionTo'](_0x9a1cd9,_0x203990,_0xd128b5);},_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x312f')]=function(_0x24821b,_0xa32f11,_0x272313){var _0x25be5b=_0x28826a;if(void 0x0===_0x272313&&(_0x272313={}),_0x50b2a7(_0x272313['reload'])&&!_0x272313[_0x25be5b('0x2999')]['name'])throw new Error(_0x25be5b('0x167'));var _0x5d8ad9=this[_0x25be5b('0x2b79')][_0x25be5b('0x1c21')];if(_0x272313['reloadState']=!0x0===_0x272313['reload']?_0x5d8ad9[_0x25be5b('0x1ad')]():_0x5d8ad9[_0x25be5b('0x1382')][_0x25be5b('0x16fd')](_0x272313[_0x25be5b('0x2999')],_0x272313[_0x25be5b('0xf16')]),_0x272313[_0x25be5b('0x2999')]&&!_0x272313[_0x25be5b('0x66c')])throw new Error('No\x20such\x20reload\x20state\x20\x27'+(_0x3f2c2e(_0x272313['reload'])?_0x272313[_0x25be5b('0x2999')]:_0x272313[_0x25be5b('0x2999')][_0x25be5b('0x455')])+'\x27');return new _0x57c6a8(this[_0x25be5b('0x2b79')][_0x25be5b('0x1c21')],_0x24821b,_0xa32f11,_0x272313);},_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x21d6')]=function(){var _0x2b9790=_0x28826a,_0x37b53d=this,_0x3b17b8=this[_0x2b9790('0x2b79')][_0x2b9790('0x2514')][_0x2b9790('0x38ca')][_0x2b9790('0x891')](),_0x3c0ab9=function(){var _0x74d9cc=_0x2b9790;return[new _0x37d081(_0x37b53d['router'][_0x74d9cc('0x1c21')]['root']())];};return _0x3b17b8?_0x3b17b8['treeChanges']()['to']:_0x3c0ab9();},_0x54abdc['prototype'][_0x28826a('0x2574')]=function(_0x18bea2,_0x3fd639,_0x358973){var _0x584fb2=_0x28826a,_0x274558=this;void 0x0===_0x3fd639&&(_0x3fd639={}),void 0x0===_0x358973&&(_0x358973={});var _0x2d02d3=this[_0x584fb2('0x2b79')],_0x704499=_0x2d02d3[_0x584fb2('0x2514')];_0x358973=_0x1b8ff7(_0x358973,_0x1e3284);var _0x58d982=function(){return _0x704499['transition'];};_0x358973=_0x45ee70(_0x358973,{'current':_0x58d982});var _0x4a3cb9=this[_0x584fb2('0x312f')](_0x18bea2,_0x3fd639,_0x358973),_0x4666b0=this[_0x584fb2('0x21d6')]();if(!_0x4a3cb9[_0x584fb2('0x2a23')]())return this[_0x584fb2('0x2562')](_0x4666b0,_0x4a3cb9);if(!_0x4a3cb9[_0x584fb2('0x3852')]())return _0x2e1b24(_0x4a3cb9[_0x584fb2('0x2534')]());if(!0x1===_0x358973[_0x584fb2('0xc79')]&&_0x58d982())return _0x250c92[_0x584fb2('0x2e37')](_0x584fb2('0x1356'))['toPromise']();var _0x4e7ec4=function(_0x45d359){return function(_0x2ee08d){var _0x54d0cc=a2_0x4bfe;if(_0x2ee08d instanceof _0x250c92){var _0x343175=_0x2d02d3['globals'][_0x54d0cc('0xf86')]<=_0x45d359['$id'];if(_0x2ee08d[_0x54d0cc('0x21a5')]===_0x44a9e0[_0x54d0cc('0x9f1')][_0x54d0cc('0x1cec')])return _0x343175&&_0x2d02d3[_0x54d0cc('0x300e')]['update'](),_0x18a5ff['$q']['when'](_0x704499[_0x54d0cc('0x34c')]);var _0x1d560f=_0x2ee08d['detail'];if(_0x2ee08d[_0x54d0cc('0x21a5')]===_0x44a9e0['RejectType'][_0x54d0cc('0x74b')]&&_0x2ee08d['redirected']&&_0x1d560f instanceof _0x57c6a8){var _0x5dd667=_0x45d359[_0x54d0cc('0x734')](_0x1d560f);return _0x5dd667[_0x54d0cc('0x202f')]()[_0x54d0cc('0x2287')](_0x4e7ec4(_0x5dd667));}if(_0x2ee08d[_0x54d0cc('0x21a5')]===_0x44a9e0[_0x54d0cc('0x9f1')][_0x54d0cc('0x20d4')])return _0x343175&&_0x2d02d3[_0x54d0cc('0x300e')]['update'](),_0x18a5ff['$q'][_0x54d0cc('0xf51')](_0x2ee08d);}return _0x274558[_0x54d0cc('0xb')]()(_0x2ee08d),_0x18a5ff['$q']['reject'](_0x2ee08d);};},_0x5c9b11=this[_0x584fb2('0x2b79')]['transitionService'][_0x584fb2('0x126')](_0x4666b0,_0x4a3cb9),_0x3e59d9=_0x5c9b11[_0x584fb2('0x202f')]()[_0x584fb2('0x2287')](_0x4e7ec4(_0x5c9b11));return _0x30e924(_0x3e59d9),_0x45ee70(_0x3e59d9,{'transition':_0x5c9b11});},_0x54abdc[_0x28826a('0x5a')]['is']=function(_0xf709ab,_0x5e332b,_0x1cf314){var _0x22ddcb=_0x28826a;_0x1cf314=_0x1b8ff7(_0x1cf314,{'relative':this[_0x22ddcb('0x23cf')]});var _0x2e7a25=this[_0x22ddcb('0x2b79')][_0x22ddcb('0x1c21')][_0x22ddcb('0x1382')]['find'](_0xf709ab,_0x1cf314['relative']);if(_0x417a63(_0x2e7a25)){if(this[_0x22ddcb('0x23cf')]!==_0x2e7a25)return!0x1;if(!_0x5e332b)return!0x0;var _0x204552=_0x2e7a25[_0x22ddcb('0x3549')]({'inherit':!0x0,'matchingKeys':_0x5e332b});return _0x48cf64[_0x22ddcb('0xa9b')](_0x204552,_0x48cf64[_0x22ddcb('0x8c0')](_0x204552,_0x5e332b),this[_0x22ddcb('0x46e')]);}},_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x287a')]=function(_0x15b6d5,_0x2cda2c,_0x3ba689){var _0x5f4539=_0x28826a;_0x3ba689=_0x1b8ff7(_0x3ba689,{'relative':this['$current']});var _0x381dca=_0x3f2c2e(_0x15b6d5)&&_0x1629cd['fromString'](_0x15b6d5);if(_0x381dca){if(!_0x381dca[_0x5f4539('0x32a4')](this['$current'][_0x5f4539('0x455')]))return!0x1;_0x15b6d5=this[_0x5f4539('0x23cf')][_0x5f4539('0x455')];}var _0x49e571=this[_0x5f4539('0x2b79')][_0x5f4539('0x1c21')][_0x5f4539('0x1382')][_0x5f4539('0x16fd')](_0x15b6d5,_0x3ba689[_0x5f4539('0xf16')]),_0x2c7d10=this[_0x5f4539('0x23cf')][_0x5f4539('0x287a')];if(_0x417a63(_0x49e571)){if(!_0x417a63(_0x2c7d10[_0x49e571[_0x5f4539('0x455')]]))return!0x1;if(!_0x2cda2c)return!0x0;var _0x2d55cf=_0x49e571['parameters']({'inherit':!0x0,'matchingKeys':_0x2cda2c});return _0x48cf64[_0x5f4539('0xa9b')](_0x2d55cf,_0x48cf64[_0x5f4539('0x8c0')](_0x2d55cf,_0x2cda2c),this['params']);}},_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x3277')]=function(_0x368dd0,_0x31a3d2,_0x28dbb6){var _0x437bb4=_0x28826a;_0x28dbb6=_0x1b8ff7(_0x28dbb6,{'lossy':!0x0,'inherit':!0x0,'absolute':!0x1,'relative':this[_0x437bb4('0x23cf')]}),_0x31a3d2=_0x31a3d2||{};var _0x5dab1d=this['router'][_0x437bb4('0x1c21')][_0x437bb4('0x1382')][_0x437bb4('0x16fd')](_0x368dd0,_0x28dbb6['relative']);if(!_0x417a63(_0x5dab1d))return null;_0x28dbb6[_0x437bb4('0xf40')]&&(_0x31a3d2=this['params']['$inherit'](_0x31a3d2,this['$current'],_0x5dab1d));var _0x1a55c3=_0x5dab1d&&_0x28dbb6[_0x437bb4('0x33db')]?_0x5dab1d[_0x437bb4('0x1fa0')]:_0x5dab1d;return _0x1a55c3&&void 0x0!==_0x1a55c3[_0x437bb4('0x365f')]&&null!==_0x1a55c3[_0x437bb4('0x365f')]?this[_0x437bb4('0x2b79')]['urlRouter'][_0x437bb4('0x3277')](_0x1a55c3[_0x437bb4('0x365f')],_0x31a3d2,{'absolute':_0x28dbb6[_0x437bb4('0x23b')]}):null;},_0x54abdc['prototype'][_0x28826a('0xb')]=function(_0x270ccb){var _0xabf960=_0x28826a;return this[_0xabf960('0x26cf')]=_0x270ccb||this['_defaultErrorHandler'];},_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x1861')]=function(_0x434653,_0x268d7b){var _0x405efb=_0x28826a,_0x512325=this[_0x405efb('0x2b79')][_0x405efb('0x1c21')];return 0x0===arguments['length']?_0x512325[_0x405efb('0x1861')]():_0x512325[_0x405efb('0x1861')](_0x434653,_0x268d7b||this[_0x405efb('0x23cf')]);},_0x54abdc[_0x28826a('0x5a')][_0x28826a('0x1b87')]=function(_0x5d785f,_0x3b602f){var _0x4551d4=_0x28826a,_0x25fd84=this['get'](_0x5d785f);if(!_0x25fd84||!_0x25fd84['lazyLoad'])throw new Error(_0x4551d4('0x2b6d')+_0x5d785f);var _0x181902=this[_0x4551d4('0x21d6')](),_0x2c5afe=_0x56d648[_0x4551d4('0x39bd')](this[_0x4551d4('0x2b79')][_0x4551d4('0x1c21')],_0x181902);return _0x4bb09d(_0x3b602f=_0x3b602f||this[_0x4551d4('0x2b79')][_0x4551d4('0x170')][_0x4551d4('0x126')](_0x181902,_0x2c5afe),_0x25fd84);},_0x54abdc;}(),_0xc14ff4={'when':function(_0x599d48){return new Promise(function(_0x197dac,_0x2179d0){return _0x197dac(_0x599d48);});},'reject':function(_0x157d3e){return new Promise(function(_0xbda62,_0x2e2088){_0x2e2088(_0x157d3e);});},'defer':function(){var _0x1d955f=_0x2877f5,_0x4ec1fe={};return _0x4ec1fe[_0x1d955f('0x34a6')]=new Promise(function(_0x407947,_0x4445b8){var _0x398efc=_0x1d955f;_0x4ec1fe[_0x398efc('0x16ab')]=_0x407947,_0x4ec1fe['reject']=_0x4445b8;}),_0x4ec1fe;},'all':function(_0x21a7f3){var _0xb57303=_0x2877f5;if(_0x49ad08(_0x21a7f3))return Promise[_0xb57303('0x130c')](_0x21a7f3);if(_0x50b2a7(_0x21a7f3)){var _0x4197fb=Object[_0xb57303('0x1a3f')](_0x21a7f3)[_0xb57303('0x2d86')](function(_0x4fd922){var _0x3b2dde=_0xb57303;return _0x21a7f3[_0x4fd922][_0x3b2dde('0x26b5')](function(_0x540d7d){return{'key':_0x4fd922,'val':_0x540d7d};});});return _0xc14ff4[_0xb57303('0x130c')](_0x4197fb)[_0xb57303('0x26b5')](function(_0x31dbbc){return _0x31dbbc['reduce'](function(_0x1c660d,_0x1c9588){var _0x13a4e4=a2_0x4bfe;return _0x1c660d[_0x1c9588[_0x13a4e4('0x31e8')]]=_0x1c9588['val'],_0x1c660d;},{});});}}},_0x5b0682={},_0x102e38=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,_0x1e5498=/([^\s,]+)/g,_0x4e1be6={'get':function(_0x1e1bd4){return _0x5b0682[_0x1e1bd4];},'has':function(_0x2bbae2){var _0x419cbf=_0x2877f5;return null!=_0x4e1be6[_0x419cbf('0x1861')](_0x2bbae2);},'invoke':function(_0x2d4fcc,_0x526f95,_0x38405f){var _0x1c1b45=_0x2877f5,_0x534e95=_0x45ee70({},_0x5b0682,_0x38405f||{}),_0x2a7b01=_0x4e1be6[_0x1c1b45('0x693')](_0x2d4fcc),_0x288224=_0x7c6609(function(_0xf10ec5){var _0x3101b8=_0x1c1b45;return _0x534e95[_0x3101b8('0x1522')](_0xf10ec5);},function(_0x7cfd7e){return'DI\x20can\x27t\x20find\x20injectable:\x20\x27'+_0x7cfd7e+'\x27';}),_0x49dcea=_0x2a7b01[_0x1c1b45('0x3127')](_0x288224)['map'](function(_0x250562){return _0x534e95[_0x250562];});return _0x27da05(_0x2d4fcc)?_0x2d4fcc[_0x1c1b45('0x177a')](_0x526f95,_0x49dcea):_0x2d4fcc['slice'](-0x1)[0x0][_0x1c1b45('0x177a')](_0x526f95,_0x49dcea);},'annotate':function(_0x522fe7){var _0x5bad1d=_0x2877f5;if(!_0x14a074(_0x522fe7))throw new Error(_0x5bad1d('0x387')+_0x522fe7);if(_0x522fe7&&_0x522fe7[_0x5bad1d('0x28c9')])return _0x522fe7[_0x5bad1d('0x28c9')];if(_0x49ad08(_0x522fe7))return _0x522fe7[_0x5bad1d('0x2c0a')](0x0,-0x1);var _0x316489=_0x522fe7[_0x5bad1d('0x6ef')]()['replace'](_0x102e38,'');return _0x316489[_0x5bad1d('0x2c0a')](_0x316489[_0x5bad1d('0xe1c')]('(')+0x1,_0x316489[_0x5bad1d('0xe1c')](')'))['match'](_0x1e5498)||[];}},_0x41ef92=function(_0x4f9ad0,_0x15999b){var _0x495a21=_0x2877f5,_0x472d58=_0x15999b[0x0],_0x333f0f=_0x15999b[0x1];return _0x4f9ad0[_0x495a21('0x1522')](_0x472d58)?_0x49ad08(_0x4f9ad0[_0x472d58])?_0x4f9ad0[_0x472d58][_0x495a21('0x1a90')](_0x333f0f):_0x4f9ad0[_0x472d58]=[_0x4f9ad0[_0x472d58],_0x333f0f]:_0x4f9ad0[_0x472d58]=_0x333f0f,_0x4f9ad0;},_0x554047=function(_0x1104e6){var _0x42a7bc=_0x2877f5;return _0x1104e6[_0x42a7bc('0x23ee')]('&')['filter'](_0x4acb32)[_0x42a7bc('0x2d86')](_0x212dcb)[_0x42a7bc('0x33b0')](_0x41ef92,{});};function _0x412d4b(_0x5238d2){var _0x1343f0=_0x2877f5,_0x22b1b0=function(_0xa693fd){return _0xa693fd||'';},_0x36b29d=_0x477382(_0x5238d2)[_0x1343f0('0x2d86')](_0x22b1b0),_0x415b3d=_0x36b29d[0x0],_0x354573=_0x36b29d[0x1],_0x37db4b=_0x1296c0(_0x415b3d)[_0x1343f0('0x2d86')](_0x22b1b0);return{'path':_0x37db4b[0x0],'search':_0x37db4b[0x1],'hash':_0x354573,'url':_0x5238d2};}var _0x13616a=function(_0x2efad2){var _0x159abc=_0x2877f5,_0x42b6a4=_0x2efad2[_0x159abc('0x75f')](),_0x3c3900=_0x2efad2[_0x159abc('0x314f')](),_0x3e1fc0=_0x2efad2[_0x159abc('0x206a')](),_0x2ab226=Object[_0x159abc('0x1a3f')](_0x3c3900)[_0x159abc('0x2d86')](function(_0xdb5320){var _0x3dea83=_0x159abc,_0x1e0e9f=_0x3c3900[_0xdb5320];return(_0x49ad08(_0x1e0e9f)?_0x1e0e9f:[_0x1e0e9f])[_0x3dea83('0x2d86')](function(_0x23a62d){return _0xdb5320+'='+_0x23a62d;});})[_0x159abc('0x33b0')](_0x40987e,[])[_0x159abc('0x6a8')]('&');return _0x42b6a4+(_0x2ab226?'?'+_0x2ab226:'')+(_0x3e1fc0?'#'+_0x3e1fc0:'');};function _0x494e46(_0x9d1b91,_0x2f7c99,_0x284264,_0x312b8d){return function(_0x343d27){var _0x5f00a8=a2_0x4bfe,_0x1c692a=_0x343d27['locationService']=new _0x284264(_0x343d27),_0x4e1856=_0x343d27[_0x5f00a8('0x1010')]=new _0x312b8d(_0x343d27,_0x2f7c99);function _0x19c179(_0x456f34){var _0x31d39d=_0x5f00a8;_0x456f34[_0x31d39d('0x38af')](_0x1c692a),_0x456f34[_0x31d39d('0x38af')](_0x4e1856);}return{'name':_0x9d1b91,'service':_0x1c692a,'configuration':_0x4e1856,'dispose':_0x19c179};};}var _0x1294b8,_0x4a4b14=function(){var _0x136f33=_0x2877f5;function _0x2d3b98(_0x993a21,_0x32a141){var _0x4c2c7f=a2_0x4bfe,_0xed735c=this;this[_0x4c2c7f('0xf59')]=_0x32a141,this['_listeners']=[],this['_listener']=function(_0x2daadb){var _0x6111e=_0x4c2c7f;return _0xed735c[_0x6111e('0x2cf0')][_0x6111e('0x247d')](function(_0x4dc052){return _0x4dc052(_0x2daadb);});},this[_0x4c2c7f('0x206a')]=function(){var _0xd45ce7=_0x4c2c7f;return _0x412d4b(_0xed735c['_get']())[_0xd45ce7('0x206a')];},this[_0x4c2c7f('0x75f')]=function(){return _0x412d4b(_0xed735c['_get']())['path'];},this[_0x4c2c7f('0x314f')]=function(){var _0x27919d=_0x4c2c7f;return _0x554047(_0x412d4b(_0xed735c[_0x27919d('0x824')]())['search']);},this[_0x4c2c7f('0x918')]=_0x55685e[_0x4c2c7f('0x12')],this['_history']=_0x55685e[_0x4c2c7f('0xa80')];}return _0x2d3b98[_0x136f33('0x5a')][_0x136f33('0x365f')]=function(_0x3b60d3,_0x1de6bd){var _0x329417=_0x136f33;return void 0x0===_0x1de6bd&&(_0x1de6bd=!0x0),_0x417a63(_0x3b60d3)&&_0x3b60d3!==this[_0x329417('0x824')]()&&(this[_0x329417('0xf4')](null,null,_0x3b60d3,_0x1de6bd),this[_0x329417('0xf59')]&&this[_0x329417('0x2cf0')][_0x329417('0x247d')](function(_0x57fd0a){return _0x57fd0a({'url':_0x3b60d3});})),_0x13616a(this);},_0x2d3b98[_0x136f33('0x5a')][_0x136f33('0x31f1')]=function(_0x4bf111){var _0x29e824=_0x136f33,_0x418795=this;return this[_0x29e824('0x2cf0')][_0x29e824('0x1a90')](_0x4bf111),function(){var _0x24607f=_0x29e824;return _0xf7741b(_0x418795[_0x24607f('0x2cf0')],_0x4bf111);};},_0x2d3b98[_0x136f33('0x5a')][_0x136f33('0x38af')]=function(_0x5f07cb){var _0x57f0fc=_0x136f33;_0x2ad7e2(this[_0x57f0fc('0x2cf0')]);},_0x2d3b98;}(),_0x3f8168=(_0x1294b8=function(_0x1463b2,_0x312bfb){var _0x526dd7=_0x2877f5;return(_0x1294b8=Object[_0x526dd7('0x28fe')]||{'__proto__':[]}instanceof Array&&function(_0x151f42,_0x5848de){var _0x6e3e24=_0x526dd7;_0x151f42[_0x6e3e24('0x2a87')]=_0x5848de;}||function(_0x1219ab,_0x1e35e0){var _0x20e9ac=_0x526dd7;for(var _0x12af0c in _0x1e35e0)_0x1e35e0[_0x20e9ac('0x1522')](_0x12af0c)&&(_0x1219ab[_0x12af0c]=_0x1e35e0[_0x12af0c]);})(_0x1463b2,_0x312bfb);},function(_0x3c9033,_0x2455bd){var _0x256c11=_0x2877f5;function _0x169170(){var _0x3ad00d=a2_0x4bfe;this[_0x3ad00d('0xfc5')]=_0x3c9033;}_0x1294b8(_0x3c9033,_0x2455bd),_0x3c9033[_0x256c11('0x5a')]=null===_0x2455bd?Object[_0x256c11('0x126')](_0x2455bd):(_0x169170[_0x256c11('0x5a')]=_0x2455bd[_0x256c11('0x5a')],new _0x169170());}),_0x331621=function(_0x322bdc){var _0xc1d5cb=_0x2877f5;function _0x552e38(_0x240106){var _0x58a167=a2_0x4bfe,_0x51cd57=_0x322bdc['call'](this,_0x240106,!0x1)||this;return _0x55685e[_0x58a167('0x2e05')](_0x58a167('0x1cac'),_0x51cd57['_listener'],!0x1),_0x51cd57;}return _0x3f8168(_0x552e38,_0x322bdc),_0x552e38[_0xc1d5cb('0x5a')][_0xc1d5cb('0x824')]=function(){var _0x2b0408=_0xc1d5cb;return _0x2d1e65(this[_0x2b0408('0x918')][_0x2b0408('0x206a')]);},_0x552e38[_0xc1d5cb('0x5a')]['_set']=function(_0x8b5bda,_0xa84cfb,_0x4ef4ae,_0x34006e){var _0x24215f=_0xc1d5cb;this['_location'][_0x24215f('0x206a')]=_0x4ef4ae;},_0x552e38[_0xc1d5cb('0x5a')][_0xc1d5cb('0x38af')]=function(_0x2d334b){var _0xa07261=_0xc1d5cb;_0x322bdc['prototype']['dispose'][_0xa07261('0x2449')](this,_0x2d334b),_0x55685e[_0xa07261('0x1940')](_0xa07261('0x1cac'),this[_0xa07261('0x529')]);},_0x552e38;}(_0x4a4b14),_0x2de555=function(){var _0x305a26=function(_0x25f9d3,_0xa98661){return(_0x305a26=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(_0x42516f,_0x10596d){var _0x59b61e=a2_0x4bfe;_0x42516f[_0x59b61e('0x2a87')]=_0x10596d;}||function(_0x413a15,_0x5b3ff5){var _0xdb7100=a2_0x4bfe;for(var _0x5265ff in _0x5b3ff5)_0x5b3ff5[_0xdb7100('0x1522')](_0x5265ff)&&(_0x413a15[_0x5265ff]=_0x5b3ff5[_0x5265ff]);})(_0x25f9d3,_0xa98661);};return function(_0x154dbd,_0x23f812){var _0x415cf3=a2_0x4bfe;function _0x2d4676(){var _0x17b3fc=a2_0x4bfe;this[_0x17b3fc('0xfc5')]=_0x154dbd;}_0x305a26(_0x154dbd,_0x23f812),_0x154dbd[_0x415cf3('0x5a')]=null===_0x23f812?Object['create'](_0x23f812):(_0x2d4676[_0x415cf3('0x5a')]=_0x23f812['prototype'],new _0x2d4676());};}(),_0x381f84=function(_0xd0714f){var _0x5b17fd=_0x2877f5;function _0x5682f4(_0x53abf2){var _0x34fa4d=a2_0x4bfe;return _0xd0714f[_0x34fa4d('0x2449')](this,_0x53abf2,!0x0)||this;}return _0x2de555(_0x5682f4,_0xd0714f),_0x5682f4[_0x5b17fd('0x5a')]['_get']=function(){return this['_url'];},_0x5682f4[_0x5b17fd('0x5a')][_0x5b17fd('0xf4')]=function(_0x4c830d,_0x124219,_0x5a47f7,_0x459a55){this['_url']=_0x5a47f7;},_0x5682f4;}(_0x4a4b14),_0x43c107=function(){var _0x49990d=function(_0x4acd3f,_0x342c2a){var _0xfdba3c=a2_0x4bfe;return(_0x49990d=Object[_0xfdba3c('0x28fe')]||{'__proto__':[]}instanceof Array&&function(_0xe65d63,_0x373961){_0xe65d63['__proto__']=_0x373961;}||function(_0x2dac21,_0xee9695){var _0x51191a=_0xfdba3c;for(var _0x4eed80 in _0xee9695)_0xee9695[_0x51191a('0x1522')](_0x4eed80)&&(_0x2dac21[_0x4eed80]=_0xee9695[_0x4eed80]);})(_0x4acd3f,_0x342c2a);};return function(_0x13ac0d,_0x546297){var _0xf65017=a2_0x4bfe;function _0x4e90(){this['constructor']=_0x13ac0d;}_0x49990d(_0x13ac0d,_0x546297),_0x13ac0d[_0xf65017('0x5a')]=null===_0x546297?Object[_0xf65017('0x126')](_0x546297):(_0x4e90['prototype']=_0x546297['prototype'],new _0x4e90());};}(),_0x5568d6=function(_0x3c7f1e){var _0x61b7be=_0x2877f5;function _0x3387dd(_0x1d0a9d){var _0x5c2413=a2_0x4bfe,_0x294e3c=_0x3c7f1e[_0x5c2413('0x2449')](this,_0x1d0a9d,!0x0)||this;return _0x294e3c[_0x5c2413('0x3831')]=_0x1d0a9d[_0x5c2413('0xf24')][_0x5c2413('0x3486')],_0x55685e[_0x5c2413('0x2e05')](_0x5c2413('0x1fdd'),_0x294e3c[_0x5c2413('0x529')],!0x1),_0x294e3c;}return _0x43c107(_0x3387dd,_0x3c7f1e),_0x3387dd[_0x61b7be('0x5a')][_0x61b7be('0x21d1')]=function(){var _0x38c27d=_0x61b7be;return _0x12b18b(this[_0x38c27d('0x3831')][_0x38c27d('0x223b')]());},_0x3387dd[_0x61b7be('0x5a')][_0x61b7be('0x824')]=function(){var _0x2f105e=_0x61b7be,_0x5d5e2d=this[_0x2f105e('0x918')],_0x65c611=_0x5d5e2d[_0x2f105e('0xba6')],_0x14e688=_0x5d5e2d[_0x2f105e('0x206a')],_0x397892=_0x5d5e2d[_0x2f105e('0x314f')];_0x397892=_0x1296c0(_0x397892)[0x1],_0x14e688=_0x477382(_0x14e688)[0x1];var _0x25d0a7=this['_getBasePrefix'](),_0x461057=_0x65c611===this[_0x2f105e('0x3831')][_0x2f105e('0x223b')](),_0x4abe97=_0x65c611[_0x2f105e('0x3102')](0x0,_0x25d0a7[_0x2f105e('0x175a')])===_0x25d0a7;return(_0x65c611=_0x461057?'/':_0x4abe97?_0x65c611['substring'](_0x25d0a7[_0x2f105e('0x175a')]):_0x65c611)+(_0x397892?'?'+_0x397892:'')+(_0x14e688?'#'+_0x14e688:'');},_0x3387dd[_0x61b7be('0x5a')][_0x61b7be('0xf4')]=function(_0x4cb776,_0x583bf9,_0xd8a5d1,_0x50768c){var _0x192b41=_0x61b7be,_0x2a5ccc=this[_0x192b41('0x21d1')](),_0x39cb5f=_0xd8a5d1&&'/'!==_0xd8a5d1[0x0]?'/':'',_0x64f6e0=''===_0xd8a5d1||'/'===_0xd8a5d1?this['_config'][_0x192b41('0x223b')]():_0x2a5ccc+_0x39cb5f+_0xd8a5d1;_0x50768c?this['_history'][_0x192b41('0x1bae')](_0x4cb776,_0x583bf9,_0x64f6e0):this[_0x192b41('0x36eb')]['pushState'](_0x4cb776,_0x583bf9,_0x64f6e0);},_0x3387dd['prototype'][_0x61b7be('0x38af')]=function(_0x7a342c){var _0x4da674=_0x61b7be;_0x3c7f1e['prototype'][_0x4da674('0x38af')]['call'](this,_0x7a342c),_0x55685e[_0x4da674('0x1940')](_0x4da674('0x1fdd'),this[_0x4da674('0x529')]);},_0x3387dd;}(_0x4a4b14),_0xff8e51=function(){function _0x251709(){var _0x328226=a2_0x4bfe,_0x463c81=this;this['dispose']=_0x2ab390,this['_baseHref']='',this[_0x328226('0x295')]=0x50,this[_0x328226('0x18e4')]=_0x328226('0x1c2c'),this[_0x328226('0x2be2')]=_0x328226('0x3575'),this[_0x328226('0x819')]='',this[_0x328226('0x327a')]=function(){var _0x4c83da=_0x328226;return _0x463c81[_0x4c83da('0x295')];},this[_0x328226('0x3775')]=function(){var _0x340dae=_0x328226;return _0x463c81[_0x340dae('0x18e4')];},this[_0x328226('0x2bea')]=function(){return _0x463c81['_host'];},this[_0x328226('0x223b')]=function(){var _0x5dbca6=_0x328226;return _0x463c81[_0x5dbca6('0x25e8')];},this['html5Mode']=function(){return!0x1;},this[_0x328226('0x1e98')]=function(_0x5d1474){var _0x3ac653=_0x328226;return _0x417a63(_0x5d1474)?_0x463c81['_hashPrefix']=_0x5d1474:_0x463c81[_0x3ac653('0x819')];};}return _0x251709;}(),_0x5e7a9f=function(){var _0x172d43=_0x2877f5;function _0x40cb24(_0x80b298,_0x5f5dd9){var _0x4d20f4=a2_0x4bfe;void 0x0===_0x5f5dd9&&(_0x5f5dd9=!0x1),this[_0x4d20f4('0x23fb')]=_0x5f5dd9,this[_0x4d20f4('0x25e8')]=void 0x0,this['_hashPrefix']='';}return _0x40cb24[_0x172d43('0x5a')][_0x172d43('0x327a')]=function(){var _0x579203=_0x172d43;return location[_0x579203('0x327a')]?Number(location[_0x579203('0x327a')]):_0x579203('0x2f64')===this['protocol']()?0x1bb:0x50;},_0x40cb24[_0x172d43('0x5a')][_0x172d43('0x3775')]=function(){var _0x2f7e39=_0x172d43;return location[_0x2f7e39('0x3775')][_0x2f7e39('0x34c8')](/:/g,'');},_0x40cb24[_0x172d43('0x5a')][_0x172d43('0x2bea')]=function(){var _0x1843ed=_0x172d43;return location[_0x1843ed('0x36e7')];},_0x40cb24['prototype']['html5Mode']=function(){var _0x4deb0f=_0x172d43;return this[_0x4deb0f('0x23fb')];},_0x40cb24[_0x172d43('0x5a')][_0x172d43('0x1e98')]=function(_0x15c123){var _0x1fa5a5=_0x172d43;return _0x417a63(_0x15c123)?this['_hashPrefix']=_0x15c123:this[_0x1fa5a5('0x819')];},_0x40cb24[_0x172d43('0x5a')][_0x172d43('0x223b')]=function(_0x310920){var _0x1463ff=_0x172d43;return _0x417a63(_0x310920)&&(this[_0x1463ff('0x25e8')]=_0x310920),_0x1d472c(this[_0x1463ff('0x25e8')])&&(this[_0x1463ff('0x25e8')]=this[_0x1463ff('0x33eb')]()),this['_baseHref'];},_0x40cb24[_0x172d43('0x5a')][_0x172d43('0x33eb')]=function(){var _0x2bef9d=_0x172d43,_0x3448f7=document[_0x2bef9d('0x2a37')](_0x2bef9d('0x943'))[0x0];return _0x3448f7&&_0x3448f7[_0x2bef9d('0x3277')]?_0x3448f7[_0x2bef9d('0x3277')][_0x2bef9d('0x34c8')](/^([^/:]*:)?\/\/[^/]*/,''):this['_isHtml5']?'/':location[_0x2bef9d('0xba6')]||'/';},_0x40cb24['prototype'][_0x172d43('0x38af')]=function(){},_0x40cb24;}();function _0x10c7ef(_0x23011c){var _0x4f4134=_0x2877f5;return _0x18a5ff[_0x4f4134('0x345b')]=_0x4e1be6,_0x18a5ff['$q']=_0xc14ff4,{'name':_0x4f4134('0x1dda'),'$q':_0xc14ff4,'$injector':_0x4e1be6,'dispose':function(){return null;}};}var _0x578007=_0x494e46(_0x2877f5('0x46a'),!0x1,_0x331621,_0x5e7a9f),_0x2c456e=_0x494e46(_0x2877f5('0x2cd4'),!0x0,_0x5568d6,_0x5e7a9f),_0x3d5874=_0x494e46(_0x2877f5('0x3787'),!0x1,_0x381f84,_0xff8e51),_0x9ff5e6=function(){var _0x350f3b=_0x2877f5;function _0x31453b(){}return _0x31453b['prototype'][_0x350f3b('0x38af')]=function(_0x146a9b){},_0x31453b;}(),_0x26a9c2=Object['freeze']({'__proto__':null,'root':_0x55685e,'fromJson':_0x570ec9,'toJson':_0x534786,'forEach':_0x2cd1cb,'extend':_0x45ee70,'equals':_0x571c7e,'identity':_0x4acb32,'noop':_0x2ab390,'createProxyFunctions':_0x3dbb84,'inherit':_0x4e6d69,'inArray':_0x3f84d6,'_inArray':_0x33f6a1,'removeFrom':_0xf7741b,'_removeFrom':_0x39bd8a,'pushTo':_0x332568,'_pushTo':_0x176e15,'deregAll':_0x2ad7e2,'defaults':_0x1b8ff7,'mergeR':_0x2d1fcb,'ancestors':_0x4b6e3c,'pick':_0x23cd83,'omit':_0x4e416f,'pluck':_0x4a1480,'filter':_0x446b5b,'find':_0x42a99f,'mapObj':_0x412593,'map':_0x51960c,'values':_0x5c51e9,'allTrueR':_0x13419c,'anyTrueR':_0xbe1a5c,'unnestR':_0x40987e,'flattenR':_0x4fe708,'pushR':_0x5056ca,'uniqR':_0x3b3fbf,'unnest':_0x5c7ad4,'flatten':_0x192720,'assertPredicate':_0x7c6609,'assertMap':_0x5f5c15,'assertFn':_0x1de5e5,'pairs':_0x365b04,'arrayTuples':_0x3c52f1,'applyPairs':_0xafdea,'tail':_0x142905,'copy':_0xf0a601,'_extend':_0x5b2adb,'silenceUncaughtInPromise':_0x30e924,'silentRejection':_0x2e1b24,'makeStub':_0x2555bc,'services':_0x18a5ff,'Glob':_0x1629cd,'curry':_0xcdee2a,'compose':_0x725902,'pipe':_0x191328,'prop':_0x4103e4,'propEq':_0x480afb,'parse':_0x58a1b9,'not':_0x3d2611,'and':_0x19d243,'or':_0xc93f9d,'all':_0x4c1c71,'any':_0x375c1c,'is':_0x3d3db3,'eq':_0xc2a725,'val':_0x288ab9,'invoke':_0x245925,'pattern':_0x449885,'isUndefined':_0x1d472c,'isDefined':_0x417a63,'isNull':_0x4d7641,'isNullOrUndefined':_0xd9abc,'isFunction':_0x27da05,'isNumber':_0x3b8221,'isString':_0x3f2c2e,'isObject':_0x50b2a7,'isArray':_0x49ad08,'isDate':_0x181706,'isRegExp':_0x38bd13,'isInjectable':_0x14a074,'isPromise':_0x3aced7,'Queue':_0x347668,'maxLength':_0x1e0a7f,'padString':_0x1e58a0,'kebobString':_0x250bbc,'functionToString':_0x2eb97f,'fnToString':_0x271eb3,'stringify':_0x21554a,'beforeAfterSubstr':_0x565a68,'hostRegex':_0x307493,'stripLastPathElement':_0x12b18b,'splitHash':_0x477382,'splitQuery':_0x1296c0,'splitEqual':_0x212dcb,'trimHashVal':_0x2d1e65,'splitOnDelim':_0x19099c,'joinNeighborsR':_0x3bf27c,get 'Category'(){return _0x44a9e0['Category'];},'Trace':_0xb035d6,'trace':_0x59472f,get 'DefType'(){var _0x16db09=_0x2877f5;return _0x44a9e0[_0x16db09('0x1499')];},'Param':_0x48cf64,'ParamTypes':_0x228411,'StateParams':_0x542b57,'ParamType':_0x462dfb,'PathNode':_0x37d081,'PathUtils':_0x56d648,'resolvePolicies':_0x43f7de,'defaultResolvePolicy':_0x2c9320,'Resolvable':_0x305b72,'NATIVE_INJECTOR_TOKEN':_0x3143c4,'ResolveContext':_0x474a90,'resolvablesBuilder':_0xd526a2,'StateBuilder':_0x4baf2d,'StateObject':_0x52be0f,'StateMatcher':_0x431407,'StateQueueManager':_0x5b2973,'StateRegistry':_0x25dbe5,'StateService':_0x2ebe9e,'TargetState':_0x57c6a8,get 'TransitionHookPhase'(){return _0x44a9e0['TransitionHookPhase'];},get 'TransitionHookScope'(){return _0x44a9e0['TransitionHookScope'];},'HookBuilder':_0x7a42f9,'matchState':_0x5e9c18,'RegisteredHook':_0x1dfb02,'makeEvent':_0x29a365,get 'RejectType'(){return _0x44a9e0['RejectType'];},'Rejection':_0x250c92,'Transition':_0x5c149b,'TransitionHook':_0x3484ca,'TransitionEventType':_0x595ab7,'defaultTransOpts':_0x1e3284,'TransitionService':_0x7a69cc,'UrlRules':_0x5a69ca,'UrlConfig':_0x1f20d0,'UrlMatcher':_0x2f3c82,'ParamFactory':_0x3b6d8b,'UrlMatcherFactory':_0x4b0b96,'UrlRouter':_0x33ce04,'UrlRuleFactory':_0x391d79,'BaseUrlRule':_0x36896b,'UrlService':_0x45c13f,'ViewService':_0x4f2939,'UIRouterGlobals':_0x351348,'UIRouter':_0x47e155,'$q':_0xc14ff4,'$injector':_0x4e1be6,'BaseLocationServices':_0x4a4b14,'HashLocationService':_0x331621,'MemoryLocationService':_0x381f84,'PushStateLocationService':_0x5568d6,'MemoryLocationConfig':_0xff8e51,'BrowserLocationConfig':_0x5e7a9f,'keyValsToObjectR':_0x41ef92,'getParams':_0x554047,'parseUrl':_0x412d4b,'buildUrl':_0x13616a,'locationPluginFactory':_0x494e46,'servicesPlugin':_0x10c7ef,'hashLocationPlugin':_0x578007,'pushStateLocationPlugin':_0x2c456e,'memoryLocationPlugin':_0x3d5874,'UIRouterPluginBase':_0x9ff5e6});function _0x32ac27(){var _0x3012ef=null;return function(_0x12dd35,_0x20f39f){var _0x4be7b3=a2_0x4bfe;return _0x3012ef=_0x3012ef||_0x18a5ff[_0x4be7b3('0x345b')][_0x4be7b3('0x1861')]('$templateFactory'),[new _0x15a06a(_0x12dd35,_0x20f39f,_0x3012ef)];};}var _0x5719c7=function(_0x7de34e,_0x1cf92a){var _0x281d6e=_0x2877f5;return _0x7de34e[_0x281d6e('0x33b0')](function(_0x441abd,_0x1b81f8){return _0x441abd||_0x417a63(_0x1cf92a[_0x1b81f8]);},!0x1);};function _0x2eda94(_0x15f18a){var _0x3dcfaf=_0x2877f5;if(!_0x15f18a['parent'])return{};var _0x180c65=[_0x3dcfaf('0x1230'),_0x3dcfaf('0x3233'),_0x3dcfaf('0x8e7')],_0x4e0278=[_0x3dcfaf('0x2901'),_0x3dcfaf('0x1bd9'),_0x3dcfaf('0x2ea9'),_0x3dcfaf('0x3785'),'async'][_0x3dcfaf('0x12b4')]([_0x3dcfaf('0x19f6'),_0x3dcfaf('0x18f'),_0x3dcfaf('0x4ce'),_0x3dcfaf('0x8ea')]),_0x1d36f7=_0x180c65[_0x3dcfaf('0x12b4')](_0x4e0278);if(_0x417a63(_0x15f18a[_0x3dcfaf('0xe3a')])&&_0x5719c7(_0x1d36f7,_0x15f18a))throw new Error(_0x3dcfaf('0x2032')+_0x15f18a[_0x3dcfaf('0x455')]+'\x27\x20has\x20a\x20\x27views\x27\x20object.\x20It\x20cannot\x20also\x20have\x20\x22view\x20properties\x22\x20at\x20the\x20state\x20level.\x20\x20Move\x20the\x20following\x20properties\x20into\x20a\x20view\x20(in\x20the\x20\x27views\x27\x20object):\x20\x20'+_0x1d36f7[_0x3dcfaf('0x3127')](function(_0xab2e55){return _0x417a63(_0x15f18a[_0xab2e55]);})['join'](',\x20'));var _0xea99b2={},_0x154816=_0x15f18a[_0x3dcfaf('0xe3a')]||{'$default':_0x23cd83(_0x15f18a,_0x1d36f7)};return _0x2cd1cb(_0x154816,function(_0x44692a,_0x427f90){var _0x29dc83=_0x3dcfaf;if(_0x427f90=_0x427f90||'$default',_0x3f2c2e(_0x44692a)&&(_0x44692a={'component':_0x44692a}),_0x44692a=_0x45ee70({},_0x44692a),_0x5719c7(_0x180c65,_0x44692a)&&_0x5719c7(_0x4e0278,_0x44692a))throw new Error('Cannot\x20combine:\x20'+_0x180c65[_0x29dc83('0x6a8')]('|')+_0x29dc83('0xd60')+_0x4e0278[_0x29dc83('0x6a8')]('|')+'\x20in\x20stateview:\x20\x27'+_0x427f90+'@'+_0x15f18a[_0x29dc83('0x455')]+'\x27');_0x44692a[_0x29dc83('0x8ea')]=_0x44692a['resolveAs']||'$resolve',_0x44692a[_0x29dc83('0x3b4')]='ng1',_0x44692a[_0x29dc83('0x1df5')]=_0x15f18a,_0x44692a[_0x29dc83('0x1183')]=_0x427f90;var _0x109af8=_0x4f2939[_0x29dc83('0x1f72')](_0x44692a[_0x29dc83('0x1df5')],_0x44692a[_0x29dc83('0x1183')]);_0x44692a[_0x29dc83('0x541')]=_0x109af8[_0x29dc83('0x476')],_0x44692a['$uiViewContextAnchor']=_0x109af8[_0x29dc83('0xf2e')],_0xea99b2[_0x427f90]=_0x44692a;}),_0xea99b2;}var _0x5c7134=0x0,_0x15a06a=function(){var _0x26be98=_0x2877f5;function _0x21341d(_0x3c34d9,_0xebc809,_0x36ecd1){var _0x19dabf=a2_0x4bfe,_0x1b1c21=this;this[_0x19dabf('0x75f')]=_0x3c34d9,this[_0x19dabf('0x3681')]=_0xebc809,this['factory']=_0x36ecd1,this[_0x19dabf('0x28bf')]=_0x5c7134++,this['loaded']=!0x1,this[_0x19dabf('0x2bd')]=function(_0x45cb19,_0x374417){var _0x5100fb=_0x19dabf;return _0x1b1c21[_0x5100fb('0x1230')]?_0x1b1c21[_0x5100fb('0x36b0')]['makeComponentTemplate'](_0x45cb19,_0x374417,_0x1b1c21[_0x5100fb('0x1230')],_0x1b1c21[_0x5100fb('0x3681')][_0x5100fb('0x3233')]):_0x1b1c21[_0x5100fb('0x2ea9')];};}return _0x21341d[_0x26be98('0x5a')][_0x26be98('0x3612')]=function(){var _0x5bf5e4=_0x26be98,_0x2a5a42=this,_0x4bd450=_0x18a5ff['$q'],_0x1014f8=new _0x474a90(this[_0x5bf5e4('0x75f')]),_0x4fcf9e=this['path'][_0x5bf5e4('0x33b0')](function(_0x1bc9d6,_0x341119){var _0x18aa4d=_0x5bf5e4;return _0x45ee70(_0x1bc9d6,_0x341119[_0x18aa4d('0x236e')]);},{}),_0x59b732={'template':_0x4bd450[_0x5bf5e4('0x36d1')](this[_0x5bf5e4('0x36b0')]['fromConfig'](this[_0x5bf5e4('0x3681')],_0x4fcf9e,_0x1014f8)),'controller':_0x4bd450[_0x5bf5e4('0x36d1')](this[_0x5bf5e4('0x1ba4')](_0x1014f8))};return _0x4bd450[_0x5bf5e4('0x130c')](_0x59b732)[_0x5bf5e4('0x26b5')](function(_0x3eae9b){var _0x210e5d=_0x5bf5e4;return _0x59472f[_0x210e5d('0x1615')]('Loaded',_0x2a5a42),_0x2a5a42['controller']=_0x3eae9b[_0x210e5d('0x19f6')],_0x45ee70(_0x2a5a42,_0x3eae9b['template']),_0x2a5a42;});},_0x21341d[_0x26be98('0x5a')][_0x26be98('0x1ba4')]=function(_0x1d46f5){var _0x2566d6=_0x26be98,_0x5ac2fc=this['viewDecl']['controllerProvider'];if(!_0x14a074(_0x5ac2fc))return this[_0x2566d6('0x3681')]['controller'];var _0x2a741e=_0x18a5ff['$injector'][_0x2566d6('0x693')](_0x5ac2fc),_0x135833=_0x49ad08(_0x5ac2fc)?_0x142905(_0x5ac2fc):_0x5ac2fc;return new _0x305b72('',_0x135833,_0x2a741e)[_0x2566d6('0x1861')](_0x1d46f5);},_0x21341d;}(),_0x4ae08f=function(){var _0x4af941=_0x2877f5;function _0x445fd3(){var _0x5a5737=a2_0x4bfe,_0x596895=this;this[_0x5a5737('0x2f50')]=_0x1b7727[_0x5a5737('0x2ee1')]['minor']<0x3,this[_0x5a5737('0x2b72')]=[_0x5a5737('0x393b'),'$templateCache','$injector',function(_0x3ddf2d,_0x3219dc,_0x2b394b){var _0x17b157=_0x5a5737;return _0x596895[_0x17b157('0x89e')]=_0x2b394b[_0x17b157('0x728')]&&_0x2b394b[_0x17b157('0x728')]('$templateRequest')&&_0x2b394b[_0x17b157('0x1861')](_0x17b157('0x89e')),_0x596895[_0x17b157('0x393b')]=_0x3ddf2d,_0x596895[_0x17b157('0x11c8')]=_0x3219dc,_0x596895;}];}return _0x445fd3[_0x4af941('0x5a')]['useHttpService']=function(_0x3b8037){var _0x645955=_0x4af941;this[_0x645955('0x2f50')]=_0x3b8037;},_0x445fd3[_0x4af941('0x5a')][_0x4af941('0x36c6')]=function(_0x3361e2,_0x576728,_0x4cc34c){var _0xb31682=_0x4af941,_0x120d7e='',_0x249af1=function(_0x3115b5){return _0x18a5ff['$q']['when'](_0x3115b5)['then'](function(_0x11ab17){return{'template':_0x11ab17};});},_0x4e8640=function(_0x34c86a){var _0x5ef172=a2_0x4bfe;return _0x18a5ff['$q']['when'](_0x34c86a)[_0x5ef172('0x26b5')](function(_0x4cd8b0){return{'component':_0x4cd8b0};});};return _0x417a63(_0x3361e2[_0xb31682('0x2ea9')])?_0x249af1(this[_0xb31682('0x1578')](_0x3361e2[_0xb31682('0x2ea9')],_0x576728)):_0x417a63(_0x3361e2[_0xb31682('0x1bd9')])?_0x249af1(this[_0xb31682('0x12e4')](_0x3361e2[_0xb31682('0x1bd9')],_0x576728)):_0x417a63(_0x3361e2['templateProvider'])?_0x249af1(this[_0xb31682('0x118f')](_0x3361e2[_0xb31682('0x2901')],_0x576728,_0x4cc34c)):_0x417a63(_0x3361e2['component'])?_0x4e8640(_0x3361e2[_0xb31682('0x1230')]):_0x417a63(_0x3361e2[_0xb31682('0x8e7')])?_0x4e8640(this[_0xb31682('0x11ad')](_0x3361e2[_0xb31682('0x8e7')],_0x576728,_0x4cc34c)):_0x249af1(_0x120d7e);},_0x445fd3[_0x4af941('0x5a')][_0x4af941('0x1578')]=function(_0x4fc858,_0x50846c){return _0x27da05(_0x4fc858)?_0x4fc858(_0x50846c):_0x4fc858;},_0x445fd3[_0x4af941('0x5a')][_0x4af941('0x12e4')]=function(_0x1056fc,_0x15f3bb){var _0x1129d1=_0x4af941;return _0x27da05(_0x1056fc)&&(_0x1056fc=_0x1056fc(_0x15f3bb)),null==_0x1056fc?null:this[_0x1129d1('0x2f50')]?this[_0x1129d1('0x393b')][_0x1129d1('0x1861')](_0x1056fc,{'cache':this[_0x1129d1('0x11c8')],'headers':{'Accept':_0x1129d1('0x753')}})[_0x1129d1('0x26b5')](function(_0x4d25a4){var _0x4e44b1=_0x1129d1;return _0x4d25a4[_0x4e44b1('0xcee')];}):this[_0x1129d1('0x89e')](_0x1056fc);},_0x445fd3['prototype'][_0x4af941('0x118f')]=function(_0x309a87,_0x20670c,_0xb81fbe){var _0x527662=_0x4af941,_0x1395ae=_0x18a5ff[_0x527662('0x345b')][_0x527662('0x693')](_0x309a87),_0x1e2263=_0x49ad08(_0x309a87)?_0x142905(_0x309a87):_0x309a87;return new _0x305b72('',_0x1e2263,_0x1395ae)['get'](_0xb81fbe);},_0x445fd3[_0x4af941('0x5a')][_0x4af941('0x11ad')]=function(_0x44aef1,_0x59566c,_0x139773){var _0xa66d67=_0x4af941,_0x11aa1e=_0x18a5ff[_0xa66d67('0x345b')][_0xa66d67('0x693')](_0x44aef1),_0x5ede2a=_0x49ad08(_0x44aef1)?_0x142905(_0x44aef1):_0x44aef1;return new _0x305b72('',_0x5ede2a,_0x11aa1e)['get'](_0x139773);},_0x445fd3[_0x4af941('0x5a')][_0x4af941('0xcf')]=function(_0xa15cf1,_0x54bc3b,_0xf61251,_0x365a16){var _0x27acc9=_0x4af941;_0x365a16=_0x365a16||{};var _0x1fe6ed=_0x1b7727[_0x27acc9('0x2ee1')]['minor']>=0x3?'::':'',_0x36a400=function(_0x40a686){var _0x46b687=_0x27acc9,_0x250775=_0x250bbc(_0x40a686);return/^(x|data)-/[_0x46b687('0x27cd')](_0x250775)?'x-'+_0x250775:_0x250775;},_0x293a26=function(_0x4356fa){var _0x50e8d1=_0x27acc9,_0x2fac24=_0x4356fa[_0x50e8d1('0x455')],_0x219fee=_0x4356fa[_0x50e8d1('0x21a5')],_0x3801ff=_0x36a400(_0x2fac24);if(_0xa15cf1['attr'](_0x3801ff)&&!_0x365a16[_0x2fac24])return _0x3801ff+'=\x27'+_0xa15cf1[_0x50e8d1('0x1e52')](_0x3801ff)+'\x27';var _0x330348=_0x365a16[_0x2fac24]||_0x2fac24;if('@'===_0x219fee)return _0x3801ff+_0x50e8d1('0x313c')+_0x1fe6ed+_0x50e8d1('0x1db6')+_0x330348+'}}\x27';if('&'===_0x219fee){var _0x2471ab=_0x54bc3b[_0x50e8d1('0x159d')](_0x330348),_0xab17e5=_0x2471ab&&_0x2471ab[_0x50e8d1('0xcee')],_0x23a133=_0xab17e5&&_0x18a5ff[_0x50e8d1('0x345b')][_0x50e8d1('0x693')](_0xab17e5)||[];return _0x3801ff+_0x50e8d1('0x2ef9')+_0x330348+(_0x49ad08(_0xab17e5)?'['+(_0xab17e5[_0x50e8d1('0x175a')]-0x1)+']':'')+'('+_0x23a133[_0x50e8d1('0x6a8')](',')+')\x27';}return _0x3801ff+'=\x27'+_0x1fe6ed+'$resolve.'+_0x330348+'\x27';},_0x45d060=_0xbbad5a(_0xf61251)[_0x27acc9('0x2d86')](_0x293a26)['join']('\x20'),_0x311914=_0x36a400(_0xf61251);return'<'+_0x311914+'\x20'+_0x45d060+'>';},_0x445fd3;}();function _0xbbad5a(_0x550ce6){var _0x4560ff=_0x2877f5,_0x5c7e00=_0x18a5ff[_0x4560ff('0x345b')][_0x4560ff('0x1861')](_0x550ce6+_0x4560ff('0x33c3'));if(!_0x5c7e00||!_0x5c7e00['length'])throw new Error(_0x4560ff('0xc8d')+_0x550ce6+'\x27');return _0x5c7e00[_0x4560ff('0x2d86')](_0x301dcd)['reduce'](_0x40987e,[]);}var _0x301dcd=function(_0xb52361){var _0x57789c=_0x2877f5;return _0x50b2a7(_0xb52361[_0x57789c('0x2a48')])?_0x4c932e(_0xb52361[_0x57789c('0x2a48')]):_0x4c932e(_0xb52361[_0x57789c('0x1789')]);},_0x4c932e=function(_0x1cd59a){var _0xa2b51e=_0x2877f5;return Object[_0xa2b51e('0x1a3f')](_0x1cd59a||{})['map'](function(_0x11971e){return[_0x11971e,/^([=<@&])[?]?(.*)/['exec'](_0x1cd59a[_0x11971e])];})[_0xa2b51e('0x3127')](function(_0x2fd5c8){return _0x417a63(_0x2fd5c8)&&_0x49ad08(_0x2fd5c8[0x1]);})['map'](function(_0xbdd6b2){return{'name':_0xbdd6b2[0x1][0x2]||_0xbdd6b2[0x0],'type':_0xbdd6b2[0x1][0x1]};});},_0x1d7d38=function(){var _0x329c0a=_0x2877f5;function _0xdfeb4f(_0x104333,_0x5f4f68){var _0x229e88=a2_0x4bfe;this[_0x229e88('0x1c21')]=_0x104333,this['stateService']=_0x5f4f68,_0x3dbb84(_0x288ab9(_0xdfeb4f[_0x229e88('0x5a')]),this,_0x288ab9(this));}return _0xdfeb4f[_0x329c0a('0x5a')]['decorator']=function(_0x271598,_0x105b7d){var _0x3aa2b0=_0x329c0a;return this['stateRegistry'][_0x3aa2b0('0x38d2')](_0x271598,_0x105b7d)||this;},_0xdfeb4f[_0x329c0a('0x5a')][_0x329c0a('0x380')]=function(_0x583151,_0x3f7074){var _0x2870ea=_0x329c0a;return _0x50b2a7(_0x583151)?_0x3f7074=_0x583151:_0x3f7074[_0x2870ea('0x455')]=_0x583151,this[_0x2870ea('0x1c21')][_0x2870ea('0x2bd7')](_0x3f7074),this;},_0xdfeb4f['prototype'][_0x329c0a('0x286e')]=function(_0x3b9f69){var _0x456ea6=_0x329c0a;return this[_0x456ea6('0xea2')][_0x456ea6('0x286e')](_0x3b9f69);},_0xdfeb4f;}(),_0x5c1365=function(_0x4be8ea){return function(_0x4ebe4d){var _0x17e555=_0x4ebe4d[_0x4be8ea],_0x2e5857='onExit'===_0x4be8ea?'from':'to';function _0x544073(_0x13a1a1,_0x28d31f){var _0x2d7abc=a2_0x4bfe,_0x15b5a9=new _0x474a90(_0x13a1a1['treeChanges'](_0x2e5857))[_0x2d7abc('0x29c2')](_0x28d31f[_0x2d7abc('0x125d')]()),_0x4b8771=_0x45ee70(_0x359055(_0x15b5a9),{'$state$':_0x28d31f,'$transition$':_0x13a1a1});return _0x18a5ff[_0x2d7abc('0x345b')][_0x2d7abc('0x3845')](_0x17e555,this,_0x4b8771);}return _0x17e555?_0x544073:void 0x0;};},_0x3baed2=function(){var _0x598917=_0x2877f5;function _0x3f672b(_0x2c050d){this['_urlListeners']=[],this['$locationProvider']=_0x2c050d;var _0x1b3f36=_0x288ab9(_0x2c050d);_0x3dbb84(_0x1b3f36,this,_0x1b3f36,['hashPrefix']);}return _0x3f672b[_0x598917('0xa11')]=function(_0x3ca591){var _0x5c1b1e=_0x598917,_0x8f6299=_0x3ca591['urlMatcherFactory'][_0x5c1b1e('0x21a5')](_0x5c1b1e('0x75f'));_0x8f6299[_0x5c1b1e('0x3773')]=function(_0x5806b2){var _0x2c0779=_0x5c1b1e;return null!=_0x5806b2?_0x5806b2['toString']()[_0x2c0779('0x34c8')](/(~|\/)/g,function(_0x45cfe7){var _0x4eabd1=_0x2c0779;return{'~':'~~','/':_0x4eabd1('0xb93')}[_0x45cfe7];}):_0x5806b2;},_0x8f6299[_0x5c1b1e('0xab1')]=function(_0xb16db5){var _0x51b8ae=_0x5c1b1e;return null!=_0xb16db5?_0xb16db5[_0x51b8ae('0x6ef')]()[_0x51b8ae('0x34c8')](/(~~|~2F)/g,function(_0x5efeba){return{'~~':'~','~2F':'/'}[_0x5efeba];}):_0xb16db5;};},_0x3f672b[_0x598917('0x5a')][_0x598917('0x38af')]=function(){},_0x3f672b['prototype'][_0x598917('0x31f1')]=function(_0x71e169){var _0x580db3=_0x598917,_0x2c9b21=this;return this[_0x580db3('0xdc6')][_0x580db3('0x1a90')](_0x71e169),function(){var _0x498df3=_0x580db3;return _0xf7741b(_0x2c9b21[_0x498df3('0xdc6')])(_0x71e169);};},_0x3f672b['prototype'][_0x598917('0x2c2f')]=function(){var _0x326fbf=_0x598917,_0x290451=this[_0x326fbf('0x619')]['html5Mode']();return(_0x290451=_0x50b2a7(_0x290451)?_0x290451[_0x326fbf('0x25f9')]:_0x290451)&&this[_0x326fbf('0xd81')][_0x326fbf('0xa80')];},_0x3f672b[_0x598917('0x5a')][_0x598917('0x223b')]=function(){var _0x544e21=_0x598917;return this[_0x544e21('0x25e8')]||(this[_0x544e21('0x25e8')]=this[_0x544e21('0x320a')][_0x544e21('0x223b')]()||this[_0x544e21('0x398e')][_0x544e21('0x12')][_0x544e21('0xba6')]);},_0x3f672b[_0x598917('0x5a')]['url']=function(_0x341985,_0xa08390,_0x543573){var _0x5af65d=_0x598917;return void 0x0===_0xa08390&&(_0xa08390=!0x1),_0x417a63(_0x341985)&&this['$location']['url'](_0x341985),_0xa08390&&this['$location'][_0x5af65d('0x34c8')](),_0x543573&&this[_0x5af65d('0x261d')][_0x5af65d('0x380')](_0x543573),this['$location']['url']();},_0x3f672b[_0x598917('0x5a')]['_runtimeServices']=function(_0x87799b,_0x3f22e5,_0x41abb7,_0x507bc4,_0x1209c7){var _0xb8d5c=_0x598917,_0x2c97ad=this;this[_0xb8d5c('0x261d')]=_0x3f22e5,this[_0xb8d5c('0xd81')]=_0x41abb7,this['$browser']=_0x507bc4,this[_0xb8d5c('0x398e')]=_0x1209c7,_0x87799b[_0xb8d5c('0x1db8')](_0xb8d5c('0x1a29'),function(_0x1df6e6){return _0x2c97ad['_urlListeners']['forEach'](function(_0x1974ae){return _0x1974ae(_0x1df6e6);});});var _0x21e599=_0x288ab9(_0x3f22e5);_0x3dbb84(_0x21e599,this,_0x21e599,[_0xb8d5c('0x34c8'),_0xb8d5c('0x75f'),'search',_0xb8d5c('0x206a')]),_0x3dbb84(_0x21e599,this,_0x21e599,[_0xb8d5c('0x327a'),_0xb8d5c('0x3775'),_0xb8d5c('0x2bea')]);},_0x3f672b;}(),_0x1697c8=function(){var _0x40e3d8=_0x2877f5;function _0x2c3079(_0x13eb82){var _0x5721fd=a2_0x4bfe;this[_0x5721fd('0x2b79')]=_0x13eb82;}return _0x2c3079[_0x40e3d8('0x22aa')]=function(_0x127efd,_0x55b01a){return function(_0x511389){var _0x5113c5=a2_0x4bfe;return _0x18a5ff[_0x5113c5('0x345b')]['invoke'](_0x55b01a,null,{'$match':_0x511389,'$stateParams':_0x127efd[_0x5113c5('0x2514')][_0x5113c5('0x46e')]});};},_0x2c3079['prototype']['$get']=function(){var _0x5eda8d=_0x40e3d8,_0x597f77=this['router'][_0x5eda8d('0xf24')];return this[_0x5eda8d('0x2b79')][_0x5eda8d('0x300e')][_0x5eda8d('0x3956')](!0x0),_0x597f77['interceptDeferred']||_0x597f77['listen'](),this['router']['urlRouter'];},_0x2c3079[_0x40e3d8('0x5a')]['rule']=function(_0x1458df){var _0x2c78c8=_0x40e3d8,_0x15bbd1=this;if(!_0x27da05(_0x1458df))throw new Error('\x27rule\x27\x20must\x20be\x20a\x20function');var _0x12805c=new _0x36896b(function(){var _0x40815f=a2_0x4bfe;return _0x1458df(_0x18a5ff[_0x40815f('0x345b')],_0x15bbd1[_0x40815f('0x2b79')]['locationService']);},_0x4acb32);return this[_0x2c78c8('0x2b79')]['urlService'][_0x2c78c8('0x1911')]['rule'](_0x12805c),this;},_0x2c3079[_0x40e3d8('0x5a')]['otherwise']=function(_0x299a2d){var _0x37b959=_0x40e3d8,_0x538e8c=this,_0x3bf8cf=this[_0x37b959('0x2b79')][_0x37b959('0xf24')][_0x37b959('0x1911')];if(_0x3f2c2e(_0x299a2d))_0x3bf8cf['otherwise'](_0x299a2d);else{if(!_0x27da05(_0x299a2d))throw new Error(_0x37b959('0x3423'));_0x3bf8cf[_0x37b959('0xc05')](function(){var _0x20fabb=_0x37b959;return _0x299a2d(_0x18a5ff[_0x20fabb('0x345b')],_0x538e8c[_0x20fabb('0x2b79')][_0x20fabb('0x33a0')]);});}return this;},_0x2c3079[_0x40e3d8('0x5a')][_0x40e3d8('0x36d1')]=function(_0x58de9e,_0x84b431){var _0x2a598f=_0x40e3d8;return(_0x49ad08(_0x84b431)||_0x27da05(_0x84b431))&&(_0x84b431=_0x2c3079[_0x2a598f('0x22aa')](this[_0x2a598f('0x2b79')],_0x84b431)),this[_0x2a598f('0x2b79')]['urlService'][_0x2a598f('0x1911')]['when'](_0x58de9e,_0x84b431),this;},_0x2c3079[_0x40e3d8('0x5a')][_0x40e3d8('0xc9f')]=function(_0x17dc99){var _0x4ed45c=_0x40e3d8;this[_0x4ed45c('0x2b79')][_0x4ed45c('0xf24')][_0x4ed45c('0xc9f')](_0x17dc99);},_0x2c3079;}();_0x1b7727[_0x2877f5('0x122c')](_0x2877f5('0xa44'),[]);var _0x4a62fc=_0x1b7727[_0x2877f5('0x122c')](_0x2877f5('0xaf2'),['ng']),_0x29974f=_0x1b7727[_0x2877f5('0x122c')](_0x2877f5('0x36a'),['ui.router.init']),_0x2e933d=_0x1b7727[_0x2877f5('0x122c')]('ui.router.router',['ui.router.util']),_0x4316c4=_0x1b7727[_0x2877f5('0x122c')](_0x2877f5('0x2ce1'),['ui.router.router','ui.router.util','ui.router.angular1']),_0x4118a5=_0x1b7727['module']('ui.router',[_0x2877f5('0xaf2'),_0x2877f5('0x2ce1'),'ui.router.angular1']),_0x6114b3=(_0x1b7727['module']('ui.router.compat',[_0x2877f5('0x1323')]),null);function _0x526bcd(_0x46c992){var _0x11c0f9=_0x2877f5;(_0x6114b3=this[_0x11c0f9('0x2b79')]=new _0x47e155())['stateProvider']=new _0x1d7d38(_0x6114b3['stateRegistry'],_0x6114b3[_0x11c0f9('0xea2')]),_0x6114b3[_0x11c0f9('0x1c21')][_0x11c0f9('0x38d2')]('views',_0x2eda94),_0x6114b3[_0x11c0f9('0x1c21')][_0x11c0f9('0x38d2')](_0x11c0f9('0x2743'),_0x5c1365('onExit')),_0x6114b3[_0x11c0f9('0x1c21')][_0x11c0f9('0x38d2')](_0x11c0f9('0x2aaa'),_0x5c1365(_0x11c0f9('0x2aaa'))),_0x6114b3['stateRegistry']['decorator'](_0x11c0f9('0xc3f'),_0x5c1365('onEnter')),_0x6114b3[_0x11c0f9('0x228b')]['_pluginapi']['_viewConfigFactory']('ng1',_0x32ac27()),_0x6114b3['urlService']['config'][_0x11c0f9('0x1273')]=!0x1;var _0x244724=_0x6114b3[_0x11c0f9('0x33a0')]=_0x6114b3[_0x11c0f9('0x1010')]=new _0x3baed2(_0x46c992);function _0x41288b(_0x19393f,_0x18e6f5,_0x2639ad,_0x20146e,_0x1e08fb,_0x178695,_0x107c9e){var _0x181fed=_0x11c0f9;return _0x244724[_0x181fed('0x4dc')](_0x1e08fb,_0x19393f,_0x20146e,_0x18e6f5,_0x2639ad),delete _0x6114b3[_0x181fed('0x2b79')],delete _0x6114b3[_0x181fed('0x2b72')],_0x6114b3;}return _0x3baed2[_0x11c0f9('0xa11')](_0x6114b3),_0x6114b3['router']=_0x6114b3,_0x6114b3[_0x11c0f9('0x2b72')]=_0x41288b,_0x41288b['$inject']=[_0x11c0f9('0x261d'),_0x11c0f9('0x320a'),'$window',_0x11c0f9('0xd81'),_0x11c0f9('0x709'),'$http','$templateCache'],_0x6114b3;}_0x526bcd[_0x2877f5('0x28c9')]=[_0x2877f5('0x619')];var _0x47617e=function(_0x539673){var _0x252d95=_0x2877f5;return[_0x252d95('0x3371'),function(_0x1937e0){var _0x54c7a2=_0x252d95,_0x281c39=_0x1937e0[_0x54c7a2('0x2b79')][_0x539673];return _0x281c39['$get']=function(){return _0x281c39;},_0x281c39;}];};function _0x48ecde(_0x54155b,_0x10bb22,_0x347f29){var _0x113373=_0x2877f5;if(_0x18a5ff[_0x113373('0x345b')]=_0x54155b,_0x18a5ff['$q']=_0x10bb22,!Object[_0x113373('0x5a')]['hasOwnProperty'][_0x113373('0x2449')](_0x54155b,'strictDi'))try{_0x54155b[_0x113373('0x3845')](function(_0x55c3bc){});}catch(_0x2bf44e){_0x54155b[_0x113373('0x1330')]=!!/strict mode/[_0x113373('0x27cd')](_0x2bf44e&&_0x2bf44e['toString']());}_0x347f29[_0x113373('0x1c21')][_0x113373('0x1861')]()[_0x113373('0x2d86')](function(_0x5d1a6f){var _0x47081b=_0x113373;return _0x5d1a6f['$$state']()[_0x47081b('0x102a')];})[_0x113373('0x33b0')](_0x40987e,[])[_0x113373('0x3127')](function(_0x43b6f6){var _0x5852f1=_0x113373;return'deferred'===_0x43b6f6[_0x5852f1('0x36ef')];})[_0x113373('0x247d')](function(_0xf894ba){var _0x1f8bee=_0x113373;return _0xf894ba['deps']=_0x54155b[_0x1f8bee('0x693')](_0xf894ba[_0x1f8bee('0x656')],_0x54155b['strictDi']);});}_0x48ecde[_0x2877f5('0x28c9')]=[_0x2877f5('0x345b'),'$q','$uiRouter'];var _0x8d5e1f=function(_0x16e3fc){return _0x16e3fc['urlRouterProvider']=new _0x1697c8(_0x16e3fc);},_0x514b3b=function(){var _0x5ae1de=_0x2877f5;return _0x45ee70(_0x6114b3[_0x5ae1de('0x32f5')],{'$get':function(){var _0x13df50=_0x5ae1de;return _0x6114b3[_0x13df50('0xea2')];}});};function _0x5efa2f(_0x54cc98){var _0x43c463=_0x2877f5;_0x54cc98[_0x43c463('0x1cb1')](function(){var _0x4b17f7=_0x43c463;_0x59472f[_0x4b17f7('0x26bb')]++;});}_0x5efa2f[_0x2877f5('0x28c9')]=[_0x2877f5('0x709')],_0x4a62fc[_0x2877f5('0x210d')]('$uiRouter',_0x526bcd),_0x2e933d[_0x2877f5('0x210d')](_0x2877f5('0x281d'),[_0x2877f5('0x3371'),_0x8d5e1f]),_0x29974f[_0x2877f5('0x210d')](_0x2877f5('0x18c2'),_0x47617e('urlService')),_0x29974f[_0x2877f5('0x210d')](_0x2877f5('0x1303'),[_0x2877f5('0x3371'),function(){var _0x38ba45=_0x2877f5;return _0x6114b3[_0x38ba45('0x14b4')];}]),_0x29974f[_0x2877f5('0x210d')](_0x2877f5('0x34d8'),function(){return new _0x4ae08f();}),_0x4316c4[_0x2877f5('0x210d')](_0x2877f5('0x200f'),_0x47617e(_0x2877f5('0x1c21'))),_0x4316c4[_0x2877f5('0x210d')](_0x2877f5('0x20cd'),_0x47617e(_0x2877f5('0x2514'))),_0x4316c4[_0x2877f5('0x210d')](_0x2877f5('0x1681'),_0x47617e(_0x2877f5('0x170'))),_0x4316c4[_0x2877f5('0x210d')]('$state',['$uiRouterProvider',_0x514b3b]),_0x4316c4[_0x2877f5('0x36b0')](_0x2877f5('0x2e4a'),[_0x2877f5('0x1f44'),function(_0x4a8404){var _0x2d2d70=_0x2877f5;return _0x4a8404[_0x2d2d70('0x2514')][_0x2d2d70('0x46e')];}]),_0x4118a5[_0x2877f5('0x36b0')]('$view',function(){var _0x215bca=_0x2877f5;return _0x6114b3[_0x215bca('0x228b')];}),_0x4118a5[_0x2877f5('0x3897')](_0x2877f5('0x2d62'),function(){return _0x59472f;}),_0x4118a5['run'](_0x5efa2f),_0x29974f[_0x2877f5('0x202f')](['$urlMatcherFactory',function(_0x535dd7){}]),_0x4316c4[_0x2877f5('0x202f')]([_0x2877f5('0x1f57'),function(_0x565cd5){}]),_0x2e933d[_0x2877f5('0x202f')](['$urlRouter',function(_0x46bd9e){}]),_0x4a62fc['run'](_0x48ecde);var _0x317542,_0x403871,_0x561d93,_0x42e4a9,_0x359055=function(_0x5925d1){var _0x1a3906=_0x2877f5;return _0x5925d1[_0x1a3906('0x2566')]()['filter'](_0x3f2c2e)['map'](function(_0x1cf42f){var _0x4f2dd4=_0x1a3906,_0x55beae=_0x5925d1['getResolvable'](_0x1cf42f);return[_0x1cf42f,_0x4f2dd4('0x2498')===_0x5925d1[_0x4f2dd4('0x2184')](_0x55beae)[_0x4f2dd4('0x2db9')]?_0x55beae[_0x4f2dd4('0x34a6')]:_0x55beae['data']];})[_0x1a3906('0x33b0')](_0xafdea,{});};function _0x567ebf(_0x3b856d){var _0x19ae57=_0x2877f5,_0x288104=_0x3b856d[_0x19ae57('0x21ae')](/^\s*({[^}]*})\s*$/);_0x288104&&(_0x3b856d='('+_0x288104[0x1]+')');var _0x1fca09=_0x3b856d[_0x19ae57('0x34c8')](/\n/g,'\x20')[_0x19ae57('0x21ae')](/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!_0x1fca09||0x4!==_0x1fca09[_0x19ae57('0x175a')])throw new Error(_0x19ae57('0x36ca')+_0x3b856d+'\x27');return{'state':_0x1fca09[0x1]||null,'paramExpr':_0x1fca09[0x3]||null};}function _0x1626fe(_0x3d6551){var _0x2a73c6=_0x2877f5,_0x31daff=_0x3d6551[_0x2a73c6('0x38bb')]()[_0x2a73c6('0x830')](_0x2a73c6('0x139e')),_0x70a343=_0x58a1b9('$cfg.path')(_0x31daff);return _0x70a343?_0x142905(_0x70a343)['state']['name']:void 0x0;}function _0x11b65c(_0x4f7a97,_0x11e2d5,_0x51998c){var _0xe05a6=_0x2877f5,_0x16fcef=_0x51998c['uiState']||_0x4f7a97['current']['name'],_0x5df59b=_0x45ee70(_0x1a8a25(_0x11e2d5,_0x4f7a97),_0x51998c['uiStateOpts']||{}),_0x202653=_0x4f7a97['href'](_0x16fcef,_0x51998c[_0xe05a6('0x2ab')],_0x5df59b);return{'uiState':_0x16fcef,'uiStateParams':_0x51998c[_0xe05a6('0x2ab')],'uiStateOpts':_0x5df59b,'href':_0x202653};}function _0x57b310(_0x20f62c){var _0x45fd41=_0x2877f5,_0x1098ed='[object\x20SVGAnimatedString]'===Object[_0x45fd41('0x5a')][_0x45fd41('0x6ef')]['call'](_0x20f62c[_0x45fd41('0x18f6')]('href')),_0x3d3553=_0x45fd41('0x36df')===_0x20f62c[0x0]['nodeName'];return{'attr':_0x3d3553?_0x45fd41('0x908'):_0x1098ed?'xlink:href':_0x45fd41('0x3277'),'isAnchor':'A'===_0x20f62c['prop'](_0x45fd41('0x742'))[_0x45fd41('0x1a66')](),'clickable':!_0x3d3553};}function _0x2c2852(_0x526e5f,_0x2cb0dd,_0x590892,_0xb319c5,_0x4dcba3){return function(_0x392259){var _0x4603fb=a2_0x4bfe,_0x35d95e=_0x392259[_0x4603fb('0x35c5')]||_0x392259[_0x4603fb('0xb54')],_0x528d30=_0x4dcba3();if(!(_0x35d95e>0x1||_0x392259['ctrlKey']||_0x392259[_0x4603fb('0x30d9')]||_0x392259[_0x4603fb('0x1c76')]||_0x392259[_0x4603fb('0x5eb')]||_0x526e5f[_0x4603fb('0x1e52')](_0x4603fb('0x312f')))){var _0x5b8c26=_0x590892(function(){var _0x283afe=_0x4603fb;_0x526e5f[_0x283afe('0x1e52')](_0x283afe('0x2d00'))||_0x2cb0dd['go'](_0x528d30[_0x283afe('0x2cd1')],_0x528d30['uiStateParams'],_0x528d30['uiStateOpts']);});_0x392259[_0x4603fb('0x1f1a')]();var _0x340530=_0xb319c5[_0x4603fb('0x361e')]&&!_0x528d30['href']?0x1:0x0;_0x392259[_0x4603fb('0x1f1a')]=function(){var _0x57b33e=_0x4603fb;_0x340530--<=0x0&&_0x590892[_0x57b33e('0x31ce')](_0x5b8c26);};}};}function _0x1a8a25(_0x201754,_0x3a0747){var _0xf6260=_0x2877f5;return{'relative':_0x1626fe(_0x201754)||_0x3a0747[_0xf6260('0x23cf')],'inherit':!0x0,'source':'sref'};}function _0x14cc16(_0x28e9b6,_0x560756,_0x50bd43,_0x404d62){var _0x180f8b=_0x2877f5,_0x233a21;_0x404d62&&(_0x233a21=_0x404d62[_0x180f8b('0x80b')]),_0x49ad08(_0x233a21)||(_0x233a21=[_0x180f8b('0x160')]);for(var _0x312b1a=_0x28e9b6['on']?'on':_0x180f8b('0x1ecd'),_0x5205ee=0x0,_0x1a66d9=_0x233a21;_0x5205ee<_0x1a66d9[_0x180f8b('0x175a')];_0x5205ee++){var _0x4345b7=_0x1a66d9[_0x5205ee];_0x28e9b6[_0x312b1a](_0x4345b7,_0x50bd43);}_0x560756['$on'](_0x180f8b('0x2f34'),function(){var _0x12138e=_0x180f8b;for(var _0x57b2b6=_0x28e9b6[_0x12138e('0x1202')]?_0x12138e('0x1202'):_0x12138e('0xe5f'),_0x4a3daa=0x0,_0x258cd8=_0x233a21;_0x4a3daa<_0x258cd8['length'];_0x4a3daa++){var _0x439da2=_0x258cd8[_0x4a3daa];_0x28e9b6[_0x57b2b6](_0x439da2,_0x50bd43);}});}function _0x55adef(_0x2f8d95){var _0x73133d=function(_0x2bab0,_0x2202c9,_0x3f8ed1){return _0x2f8d95['is'](_0x2bab0,_0x2202c9,_0x3f8ed1);};return _0x73133d['$stateful']=!0x0,_0x73133d;}function _0x36085c(_0x214e36){var _0x42b8ad=_0x2877f5,_0x4aba6a=function(_0x4c19cf,_0x52b4fa,_0x5e4488){var _0xb63534=a2_0x4bfe;return _0x214e36[_0xb63534('0x287a')](_0x4c19cf,_0x52b4fa,_0x5e4488);};return _0x4aba6a[_0x42b8ad('0x1591')]=!0x0,_0x4aba6a;}function _0x47130a(_0x48dab8,_0x1dcdc0,_0x48862c,_0x30b892,_0x40011d){var _0x46f854=_0x2877f5,_0x29ceb2=_0x58a1b9('viewDecl.controllerAs'),_0x59c213=_0x58a1b9(_0x46f854('0x35ba'));return{'restrict':'ECA','priority':-0x190,'compile':function(_0x3aa87e){var _0x2e5bf8=_0x46f854,_0xd79e28=_0x3aa87e[_0x2e5bf8('0x1fb7')]();return _0x3aa87e[_0x2e5bf8('0x1e61')](),function(_0x2d3e7b,_0x213240){var _0xb9f597=_0x2e5bf8,_0x2c5948=_0x213240[_0xb9f597('0xcee')](_0xb9f597('0x139e'));if(!_0x2c5948)return _0x213240['html'](_0xd79e28),void _0x48dab8(_0x213240[_0xb9f597('0x2f8b')]())(_0x2d3e7b);var _0x5680ff=_0x2c5948[_0xb9f597('0xb80')]||{'viewDecl':{},'getTemplate':_0x2ab390},_0xc74003=_0x5680ff[_0xb9f597('0x75f')]&&new _0x474a90(_0x5680ff[_0xb9f597('0x75f')]);_0x213240[_0xb9f597('0x1fb7')](_0x5680ff[_0xb9f597('0x2bd')](_0x213240,_0xc74003)||_0xd79e28),_0x59472f[_0xb9f597('0x3996')](_0x2c5948[_0xb9f597('0x139e')],_0x213240[_0xb9f597('0x1fb7')]());var _0x114293=_0x48dab8(_0x213240[_0xb9f597('0x2f8b')]()),_0x4a4513=_0x5680ff[_0xb9f597('0x19f6')],_0x453a2a=_0x29ceb2(_0x5680ff),_0x3d19df=_0x59c213(_0x5680ff),_0x4f0784=_0xc74003&&_0x359055(_0xc74003);if(_0x2d3e7b[_0x3d19df]=_0x4f0784,_0x4a4513){var _0x2b0413=_0x1dcdc0(_0x4a4513,_0x45ee70({},_0x4f0784,{'$scope':_0x2d3e7b,'$element':_0x213240}));_0x453a2a&&(_0x2d3e7b[_0x453a2a]=_0x2b0413,_0x2d3e7b[_0x453a2a][_0x3d19df]=_0x4f0784),_0x213240[_0xb9f597('0xcee')](_0xb9f597('0x1832'),_0x2b0413),_0x213240[_0xb9f597('0xfc0')]()[_0xb9f597('0xcee')]('$ngControllerController',_0x2b0413),_0xd084a6(_0x40011d,_0x48862c,_0x2b0413,_0x2d3e7b,_0x5680ff);}if(_0x3f2c2e(_0x5680ff[_0xb9f597('0x1230')]))var _0x2f3726=_0x250bbc(_0x5680ff[_0xb9f597('0x1230')]),_0x534e0e=new RegExp(_0xb9f597('0x1ec5')+_0x2f3726+'$','i'),_0x374ceb=function(){var _0x21d6c0=_0xb9f597,_0x159ded=[][_0x21d6c0('0x2c0a')][_0x21d6c0('0x2449')](_0x213240[0x0][_0x21d6c0('0xfc0')])[_0x21d6c0('0x3127')](function(_0x141523){var _0x8e8794=_0x21d6c0;return _0x141523&&_0x141523[_0x8e8794('0x742')]&&_0x534e0e[_0x8e8794('0x27cd')](_0x141523[_0x8e8794('0x742')]);});return _0x159ded&&_0x1b7727['element'](_0x159ded)[_0x21d6c0('0xcee')]('$'+_0x5680ff['component']+_0x21d6c0('0x322c'));},_0xcd8dd0=_0x2d3e7b[_0xb9f597('0x1cb1')](_0x374ceb,function(_0x2f8080){_0x2f8080&&(_0xd084a6(_0x40011d,_0x48862c,_0x2f8080,_0x2d3e7b,_0x5680ff),_0xcd8dd0());});_0x114293(_0x2d3e7b);};}};}_0x317542=[_0x2877f5('0x1f44'),_0x2877f5('0x1993'),function(_0x5b448f,_0x451aa0){var _0x161136=_0x2877f5,_0x150568=_0x5b448f[_0x161136('0xea2')];return{'restrict':'A','require':['?^uiSrefActive','?^uiSrefActiveEq'],'link':function(_0x58c530,_0x5f063d,_0xf59701,_0x282822){var _0x36c3c2=_0x161136,_0x47a738=_0x57b310(_0x5f063d),_0x2ac055=_0x282822[0x1]||_0x282822[0x0],_0x441b5d=null,_0x45e917={},_0x57f1bd=function(){return _0x11b65c(_0x150568,_0x5f063d,_0x45e917);},_0xcc9dc7=_0x567ebf(_0xf59701[_0x36c3c2('0xe9e')]);function _0x2d7118(){var _0x5b02fc=_0x36c3c2,_0x4de6d1=_0x57f1bd();_0x441b5d&&_0x441b5d(),_0x2ac055&&(_0x441b5d=_0x2ac055[_0x5b02fc('0x29d7')](_0x4de6d1['uiState'],_0x4de6d1[_0x5b02fc('0x2ab')])),null!=_0x4de6d1[_0x5b02fc('0x3277')]&&_0xf59701[_0x5b02fc('0x44c')](_0x47a738[_0x5b02fc('0x1e52')],_0x4de6d1[_0x5b02fc('0x3277')]);}if(_0x45e917[_0x36c3c2('0x2cd1')]=_0xcc9dc7['state'],_0x45e917[_0x36c3c2('0x161a')]=_0xf59701[_0x36c3c2('0x1593')]?_0x58c530[_0x36c3c2('0x1951')](_0xf59701['uiSrefOpts']):{},_0xcc9dc7[_0x36c3c2('0x1238')]&&(_0x58c530[_0x36c3c2('0x1cb1')](_0xcc9dc7[_0x36c3c2('0x1238')],function(_0x504168){var _0x8fe2fd=_0x36c3c2;_0x45e917[_0x8fe2fd('0x2ab')]=_0x45ee70({},_0x504168),_0x2d7118();},!0x0),_0x45e917[_0x36c3c2('0x2ab')]=_0x45ee70({},_0x58c530[_0x36c3c2('0x1951')](_0xcc9dc7[_0x36c3c2('0x1238')]))),_0x2d7118(),_0x58c530['$on'](_0x36c3c2('0x2f34'),_0x5b448f['stateRegistry'][_0x36c3c2('0x246a')](_0x2d7118)),_0x58c530[_0x36c3c2('0x1db8')](_0x36c3c2('0x2f34'),_0x5b448f['transitionService'][_0x36c3c2('0x13ab')]({},_0x2d7118)),_0x47a738[_0x36c3c2('0x24f8')]){var _0xf4d78c=_0x2c2852(_0x5f063d,_0x150568,_0x451aa0,_0x47a738,_0x57f1bd);_0x14cc16(_0x5f063d,_0x58c530,_0xf4d78c,_0x45e917[_0x36c3c2('0x161a')]);}}};}],_0x403871=[_0x2877f5('0x1f44'),'$timeout',function(_0x16b0cd,_0x478902){var _0x3b05a4=_0x2877f5,_0x4312a1=_0x16b0cd['stateService'];return{'restrict':'A','require':[_0x3b05a4('0x2d17'),_0x3b05a4('0x2ba5')],'link':function(_0x2ade4d,_0x48e96e,_0x1c9f95,_0x4245e9){var _0x13ccbc=_0x3b05a4,_0x1bb313,_0x11107a=_0x57b310(_0x48e96e),_0x215a3f=_0x4245e9[0x1]||_0x4245e9[0x0],_0x497dcd=null,_0x41cd52={},_0x195e01=function(){return _0x11b65c(_0x4312a1,_0x48e96e,_0x41cd52);},_0x27d890=['uiState',_0x13ccbc('0x2ab'),'uiStateOpts'],_0x189114=_0x27d890['reduce'](function(_0x2cf224,_0x2a79b6){return _0x2cf224[_0x2a79b6]=_0x2ab390,_0x2cf224;},{});function _0x2a6c20(){var _0x46d440=_0x13ccbc,_0x9fe77c=_0x195e01();_0x497dcd&&_0x497dcd(),_0x215a3f&&(_0x497dcd=_0x215a3f['$$addStateInfo'](_0x9fe77c[_0x46d440('0x2cd1')],_0x9fe77c[_0x46d440('0x2ab')])),null!=_0x9fe77c[_0x46d440('0x3277')]&&_0x1c9f95[_0x46d440('0x44c')](_0x11107a['attr'],_0x9fe77c['href']);}_0x27d890[_0x13ccbc('0x247d')](function(_0x19d099){var _0x39c887=_0x13ccbc;_0x41cd52[_0x19d099]=_0x1c9f95[_0x19d099]?_0x2ade4d[_0x39c887('0x1951')](_0x1c9f95[_0x19d099]):null,_0x1c9f95[_0x39c887('0x2838')](_0x19d099,function(_0x56663c){var _0x231344=_0x39c887;_0x189114[_0x19d099](),_0x189114[_0x19d099]=_0x2ade4d[_0x231344('0x1cb1')](_0x56663c,function(_0x33c864){_0x41cd52[_0x19d099]=_0x33c864,_0x2a6c20();},!0x0);});}),_0x2a6c20(),_0x2ade4d['$on'](_0x13ccbc('0x2f34'),_0x16b0cd[_0x13ccbc('0x1c21')][_0x13ccbc('0x246a')](_0x2a6c20)),_0x2ade4d[_0x13ccbc('0x1db8')](_0x13ccbc('0x2f34'),_0x16b0cd[_0x13ccbc('0x170')][_0x13ccbc('0x13ab')]({},_0x2a6c20)),_0x11107a[_0x13ccbc('0x24f8')]&&(_0x1bb313=_0x2c2852(_0x48e96e,_0x4312a1,_0x478902,_0x11107a,_0x195e01),_0x14cc16(_0x48e96e,_0x2ade4d,_0x1bb313,_0x41cd52[_0x13ccbc('0x161a')]));}};}],_0x561d93=['$state',_0x2877f5('0x2e4a'),_0x2877f5('0x2476'),_0x2877f5('0x1f44'),function(_0x34782f,_0x4dadad,_0x395e6a,_0x217082){var _0x481e58=_0x2877f5;return{'restrict':'A','controller':['$scope',_0x481e58('0x34d6'),_0x481e58('0xa7b'),function(_0x1ef0d7,_0x53246e,_0x2561a0){var _0x1c0dad=_0x481e58,_0x2d71b1,_0x468bd2,_0x58646d=[];_0x2d71b1=_0x395e6a(_0x2561a0[_0x1c0dad('0x1a3d')]||'',!0x1)(_0x1ef0d7);try{_0x468bd2=_0x1ef0d7[_0x1c0dad('0x1951')](_0x2561a0['uiSrefActive']);}catch(_0x4a50f5){}function _0x38d53c(_0x3772da){var _0x2d9cdd=_0x1c0dad;_0x3772da['promise'][_0x2d9cdd('0x26b5')](_0x295aad,_0x2ab390);}function _0x2fc0b4(){var _0x4465ed=_0x1c0dad,_0x410441=_0x217082['stateRegistry'][_0x4465ed('0x246a')](_0x24737a),_0x4fb69d=_0x217082[_0x4465ed('0x170')]['onStart']({},_0x38d53c),_0x3d00bd=_0x1ef0d7[_0x4465ed('0x1db8')](_0x4465ed('0x2232'),_0x295aad);return function(){_0x410441(),_0x4fb69d(),_0x3d00bd();};}function _0x24737a(){_0x57dc72(_0x468bd2);}function _0x57dc72(_0x26c782){_0x50b2a7(_0x26c782)&&(_0x58646d=[],_0x2cd1cb(_0x26c782,function(_0x3d7832,_0x1edb3c){var _0x17edae=function(_0x42027d,_0x505264){var _0x716afa=a2_0x4bfe,_0x1cd97f=_0x567ebf(_0x42027d);_0x18b358(_0x1cd97f[_0x716afa('0x380')],_0x1ef0d7[_0x716afa('0x1951')](_0x1cd97f['paramExpr']),_0x505264);};_0x3f2c2e(_0x3d7832)?_0x17edae(_0x3d7832,_0x1edb3c):_0x49ad08(_0x3d7832)&&_0x2cd1cb(_0x3d7832,function(_0x49849b){_0x17edae(_0x49849b,_0x1edb3c);});}));}function _0x18b358(_0x31d7a8,_0x3246f6,_0xa3b8e7){var _0x1a8940=_0x1c0dad,_0x26db50={'state':_0x34782f[_0x1a8940('0x1861')](_0x31d7a8,_0x1626fe(_0x53246e))||{'name':_0x31d7a8},'params':_0x3246f6,'activeClass':_0xa3b8e7};return _0x58646d[_0x1a8940('0x1a90')](_0x26db50),function(){_0xf7741b(_0x58646d)(_0x26db50);};}function _0x295aad(){var _0x384498=_0x1c0dad,_0x1823dd=function(_0x75280a){var _0x2252c1=a2_0x4bfe;return _0x75280a[_0x2252c1('0x23ee')](/\s/)[_0x2252c1('0x3127')](_0x4acb32);},_0x4637ae=function(_0xe1c8d6){var _0x5da0e3=a2_0x4bfe;return _0xe1c8d6[_0x5da0e3('0x2d86')](function(_0x23b66e){return _0x23b66e['activeClass'];})[_0x5da0e3('0x2d86')](_0x1823dd)[_0x5da0e3('0x33b0')](_0x40987e,[]);},_0x6f81da=_0x4637ae(_0x58646d)['concat'](_0x1823dd(_0x2d71b1))[_0x384498('0x33b0')](_0x3b3fbf,[]),_0x1e3d4f=_0x4637ae(_0x58646d[_0x384498('0x3127')](function(_0x4f9b92){var _0x1bcac2=_0x384498;return _0x34782f[_0x1bcac2('0x287a')](_0x4f9b92[_0x1bcac2('0x380')][_0x1bcac2('0x455')],_0x4f9b92[_0x1bcac2('0x46e')]);})),_0x313ea8=_0x58646d[_0x384498('0x3127')](function(_0x2f0623){var _0xe93d77=_0x384498;return _0x34782f['is'](_0x2f0623['state'][_0xe93d77('0x455')],_0x2f0623['params']);})[_0x384498('0x175a')]?_0x1823dd(_0x2d71b1):[],_0x4c1f4e=_0x1e3d4f[_0x384498('0x12b4')](_0x313ea8)['reduce'](_0x3b3fbf,[]),_0x369aea=_0x6f81da[_0x384498('0x3127')](function(_0x1b7247){return!_0x3f84d6(_0x4c1f4e,_0x1b7247);});_0x1ef0d7[_0x384498('0x123')](function(){var _0x338a85=_0x384498;_0x4c1f4e[_0x338a85('0x247d')](function(_0x50b0dd){var _0x4e0e02=_0x338a85;return _0x53246e[_0x4e0e02('0x2dc8')](_0x50b0dd);}),_0x369aea[_0x338a85('0x247d')](function(_0x16ea26){var _0x1194ed=_0x338a85;return _0x53246e[_0x1194ed('0x3a0')](_0x16ea26);});});}_0x57dc72(_0x468bd2=_0x468bd2||_0x395e6a(_0x2561a0[_0x1c0dad('0x179a')]||'',!0x1)(_0x1ef0d7)),this[_0x1c0dad('0x29d7')]=function(_0x12063a,_0x4f43c2){if(!(_0x50b2a7(_0x468bd2)&&_0x58646d['length']>0x0)){var _0x383f87=_0x18b358(_0x12063a,_0x4f43c2,_0x468bd2);return _0x295aad(),_0x383f87;}},_0x1ef0d7[_0x1c0dad('0x1db8')]('$destroy',_0x2fc0b4()),_0x217082['globals'][_0x1c0dad('0x20d1')]&&_0x38d53c(_0x217082[_0x1c0dad('0x2514')][_0x1c0dad('0x20d1')]),_0x295aad();}]};}],_0x1b7727['module'](_0x2877f5('0x2ce1'))[_0x2877f5('0x1e30')](_0x2877f5('0xe9e'),_0x317542)['directive']('uiSrefActive',_0x561d93)[_0x2877f5('0x1e30')](_0x2877f5('0x1a3d'),_0x561d93)['directive'](_0x2877f5('0x2cd1'),_0x403871),_0x55adef[_0x2877f5('0x28c9')]=['$state'],_0x36085c[_0x2877f5('0x28c9')]=['$state'],_0x1b7727['module'](_0x2877f5('0x2ce1'))[_0x2877f5('0x3127')](_0x2877f5('0x33b3'),_0x55adef)[_0x2877f5('0x3127')](_0x2877f5('0x2dbd'),_0x36085c),_0x42e4a9=[_0x2877f5('0x2a11'),_0x2877f5('0x2a64'),_0x2877f5('0x1e46'),_0x2877f5('0x2476'),'$q',function(_0x5e9041,_0xaead5f,_0x2016b8,_0x5e5a4d,_0x30de73){var _0x50638b=_0x2877f5;function _0x2c3737(){return{'enter':function(_0x4cf88e,_0x360b54,_0x5042e4){var _0x320e4a=a2_0x4bfe;_0x1b7727[_0x320e4a('0x2ee1')][_0x320e4a('0x36c5')]>0x2?_0xaead5f['enter'](_0x4cf88e,null,_0x360b54)['then'](_0x5042e4):_0xaead5f[_0x320e4a('0xa0a')](_0x4cf88e,null,_0x360b54,_0x5042e4);},'leave':function(_0x66fed,_0x367432){var _0x2368f3=a2_0x4bfe;_0x1b7727[_0x2368f3('0x2ee1')]['minor']>0x2?_0xaead5f[_0x2368f3('0x376c')](_0x66fed)[_0x2368f3('0x26b5')](_0x367432):_0xaead5f[_0x2368f3('0x376c')](_0x66fed,_0x367432);}};}function _0x275918(_0x3befad,_0x224f2b){return _0x3befad===_0x224f2b;}var _0x29bedf={'$cfg':{'viewDecl':{'$context':_0x5e9041[_0x50638b('0x36d7')][_0x50638b('0xd72')]()}},'$uiView':{}},_0x2b604e={'count':0x0,'restrict':_0x50638b('0x1890'),'terminal':!0x0,'priority':0x190,'transclude':_0x50638b('0x88a'),'compile':function(_0x3c0dd9,_0xd28eaf,_0x5d8607){return function(_0x2d4f94,_0x295eb1,_0x44f7ab){var _0x5d3bdb=a2_0x4bfe,_0x1a24dd,_0xf210c4,_0x3abea1,_0x44c659,_0x122a14=_0x44f7ab['onload']||'',_0x5117f1=_0x44f7ab[_0x5d3bdb('0x20f7')],_0x11aa72=_0x2c3737(),_0x4c15dc=_0x295eb1['inheritedData'](_0x5d3bdb('0x139e'))||_0x29bedf,_0x361159=_0x5e5a4d(_0x44f7ab[_0x5d3bdb('0x91b')]||_0x44f7ab['name']||'')(_0x2d4f94)||_0x5d3bdb('0x6b8'),_0x369062={'$type':_0x5d3bdb('0x17b0'),'id':_0x2b604e[_0x5d3bdb('0x1eb6')]++,'name':_0x361159,'fqn':_0x4c15dc[_0x5d3bdb('0x139e')][_0x5d3bdb('0x324f')]?_0x4c15dc[_0x5d3bdb('0x139e')]['fqn']+'.'+_0x361159:_0x361159,'config':null,'configUpdated':_0x4a61d5,get 'creationContext'(){var _0x1380b2=_0x5d3bdb,_0x4f4bc5=_0x58a1b9(_0x1380b2('0x12ff'))(_0x4c15dc),_0x5f1f43=_0x58a1b9('$uiView.creationContext')(_0x4c15dc);return _0x4f4bc5||_0x5f1f43;}};function _0x4a61d5(_0x1a360e){var _0x4dee84=_0x5d3bdb;(!_0x1a360e||_0x1a360e instanceof _0x15a06a)&&(_0x275918(_0x44c659,_0x1a360e)||(_0x59472f[_0x4dee84('0x1299')](_0x369062,_0x1a360e&&_0x1a360e[_0x4dee84('0x3681')]&&_0x1a360e['viewDecl']['$context']),_0x44c659=_0x1a360e,_0xadbe21(_0x1a360e)));}_0x59472f[_0x5d3bdb('0x2e3f')]('Linking',_0x369062),_0x295eb1[_0x5d3bdb('0xcee')](_0x5d3bdb('0x139e'),{'$uiView':_0x369062}),_0xadbe21();var _0xad23b5=_0x5e9041[_0x5d3bdb('0xe96')](_0x369062);function _0xd6bfcb(){var _0x3900f9=_0x5d3bdb;if(_0x1a24dd&&(_0x59472f[_0x3900f9('0x2e3f')](_0x3900f9('0x3985'),_0x1a24dd[_0x3900f9('0xcee')](_0x3900f9('0x139e'))),_0x1a24dd[_0x3900f9('0x2371')](),_0x1a24dd=null),_0x3abea1&&(_0x59472f['traceUIViewEvent']('Destroying\x20scope',_0x369062),_0x3abea1[_0x3900f9('0x2f34')](),_0x3abea1=null),_0xf210c4){var _0x1c62ce=_0xf210c4[_0x3900f9('0xcee')](_0x3900f9('0x6c'));_0x59472f[_0x3900f9('0x2e3f')](_0x3900f9('0x1fea'),_0x1c62ce),_0x11aa72['leave'](_0xf210c4,function(){_0x1c62ce['$$animLeave']['resolve'](),_0x1a24dd=null;}),_0x1a24dd=_0xf210c4,_0xf210c4=null;}}function _0xadbe21(_0x71b33c){var _0x38c1f4=_0x5d3bdb,_0x3c15f3=_0x2d4f94['$new'](),_0x20b88e=_0x30de73[_0x38c1f4('0xc99')](),_0x1cbc53=_0x30de73[_0x38c1f4('0xc99')](),_0x3a1a2b={'$cfg':_0x71b33c,'$uiView':_0x369062},_0xf7af12={'$animEnter':_0x20b88e[_0x38c1f4('0x34a6')],'$animLeave':_0x1cbc53[_0x38c1f4('0x34a6')],'$$animLeave':_0x1cbc53};_0x3c15f3[_0x38c1f4('0x29d8')]('$viewContentLoading',_0x361159);var _0x2f67ee=_0x5d8607(_0x3c15f3,function(_0xa896a1){var _0x377143=_0x38c1f4;_0xa896a1[_0x377143('0xcee')](_0x377143('0x6c'),_0xf7af12),_0xa896a1[_0x377143('0xcee')](_0x377143('0x139e'),_0x3a1a2b),_0x11aa72[_0x377143('0xa0a')](_0xa896a1,_0x295eb1,function(){var _0x34585b=_0x377143;_0x20b88e['resolve'](),_0x3abea1&&_0x3abea1[_0x34585b('0x29d8')](_0x34585b('0x2c6c')),(_0x417a63(_0x5117f1)&&!_0x5117f1||_0x2d4f94[_0x34585b('0x1951')](_0x5117f1))&&_0x2016b8(_0xa896a1);}),_0xd6bfcb();});_0xf210c4=_0x2f67ee,(_0x3abea1=_0x3c15f3)[_0x38c1f4('0x29d8')](_0x38c1f4('0x316a'),_0x71b33c||_0x44c659),_0x3abea1[_0x38c1f4('0x1951')](_0x122a14);}_0x2d4f94['$on'](_0x5d3bdb('0x2f34'),function(){var _0x4d63ed=_0x5d3bdb;_0x59472f[_0x4d63ed('0x2e3f')](_0x4d63ed('0x1f9b'),_0x369062),_0xad23b5();});};}};return _0x2b604e;}],_0x47130a[_0x2877f5('0x28c9')]=[_0x2877f5('0x2078'),_0x2877f5('0x500'),_0x2877f5('0x1681'),_0x2877f5('0x2a11'),'$q'];var _0x5cb899=_0x2877f5('0x19aa')==typeof _0x1b7727[_0x2877f5('0x122c')]('ui.router')[_0x2877f5('0x1230')],_0x2bec37=0x0;function _0xd084a6(_0x41f7b5,_0x4b09bb,_0x2d039d,_0x565382,_0x382768){var _0x36df72=_0x2877f5;!_0x27da05(_0x2d039d[_0x36df72('0x3825')])||(_0x382768['viewDecl'][_0x36df72('0x1230')]||_0x382768[_0x36df72('0x3681')][_0x36df72('0x8e7')])&&_0x5cb899||_0x2d039d[_0x36df72('0x3825')]();var _0x50b927=_0x142905(_0x382768['path'])['state']['self'],_0x598d05={'bind':_0x2d039d};if(_0x27da05(_0x2d039d['uiOnParamsChanged'])){var _0x32e02d=new _0x474a90(_0x382768[_0x36df72('0x75f')])[_0x36df72('0x159d')](_0x36df72('0x2df4'))[_0x36df72('0xcee')],_0x570b55=function(_0x4ed106){var _0x47655a=_0x36df72;if(_0x4ed106!==_0x32e02d&&-0x1===_0x4ed106['exiting']()[_0x47655a('0xe1c')](_0x50b927)){var _0x4bcfa7=_0x4ed106[_0x47655a('0x46e')]('to'),_0x1d1a69=_0x4ed106[_0x47655a('0x46e')](_0x47655a('0x2f5')),_0x4712bc=function(_0x5b455b){var _0x439d42=_0x47655a;return _0x5b455b[_0x439d42('0xe80')];},_0x37b488=_0x4ed106['treeChanges']('to')[_0x47655a('0x2d86')](_0x4712bc)[_0x47655a('0x33b0')](_0x40987e,[]),_0x3014fc=_0x4ed106[_0x47655a('0x2fc7')](_0x47655a('0x2f5'))['map'](_0x4712bc)[_0x47655a('0x33b0')](_0x40987e,[]),_0x56492f=_0x37b488[_0x47655a('0x3127')](function(_0x4f9a86){var _0x1afc0f=_0x47655a,_0x3a6bdc=_0x3014fc[_0x1afc0f('0xe1c')](_0x4f9a86);return-0x1===_0x3a6bdc||!_0x3014fc[_0x3a6bdc]['type']['equals'](_0x4bcfa7[_0x4f9a86['id']],_0x1d1a69[_0x4f9a86['id']]);});if(_0x56492f[_0x47655a('0x175a')]){var _0x206c15=_0x56492f[_0x47655a('0x2d86')](function(_0x365ab6){return _0x365ab6['id'];}),_0xec2caf=_0x446b5b(_0x4bcfa7,function(_0x11fd32,_0x1b4bef){var _0x574473=_0x47655a;return-0x1!==_0x206c15[_0x574473('0xe1c')](_0x1b4bef);});_0x2d039d[_0x47655a('0x3ad')](_0xec2caf,_0x4ed106);}}};_0x565382[_0x36df72('0x1db8')](_0x36df72('0x2f34'),_0x4b09bb[_0x36df72('0x13ab')]({},_0x570b55,_0x598d05));}if(_0x27da05(_0x2d039d[_0x36df72('0x3819')])){var _0x1c4250=_0x2bec37++,_0x154cbc=_0x36df72('0x3c8'),_0x478957=function(_0x181818){var _0x149c25=_0x36df72;return!!_0x181818&&(_0x181818[_0x154cbc]&&!0x0===_0x181818[_0x154cbc][_0x1c4250]||_0x478957(_0x181818[_0x149c25('0x329b')]()));},_0x15375f=function(_0x36ffc3){var _0x506c97=_0x36df72,_0x15a5a1,_0x45f67a=_0x36ffc3[_0x154cbc]=_0x36ffc3[_0x154cbc]||{};return _0x478957(_0x36ffc3)||(_0x15a5a1=_0x41f7b5[_0x506c97('0x36d1')](_0x2d039d[_0x506c97('0x3819')](_0x36ffc3)))[_0x506c97('0x26b5')](function(_0x718594){return _0x45f67a[_0x1c4250]=!0x1!==_0x718594;}),_0x15a5a1;},_0xea482d={'exiting':_0x50b927[_0x36df72('0x455')]};_0x565382[_0x36df72('0x1db8')](_0x36df72('0x2f34'),_0x4b09bb['onBefore'](_0xea482d,_0x15375f,_0x598d05));}}function _0x27ae84(){var _0xdf8b85=_0x2877f5,_0x485601=!0x1;this['useAnchorScroll']=function(){_0x485601=!0x0;},this[_0xdf8b85('0x2b72')]=['$anchorScroll','$timeout',function(_0x3a5084,_0x100c79){return _0x485601?_0x3a5084:function(_0x53196e){return _0x100c79(function(){var _0x2489e9=a2_0x4bfe;_0x53196e[0x0][_0x2489e9('0x397e')]();},0x0,!0x1);};}];}_0x1b7727[_0x2877f5('0x122c')](_0x2877f5('0x2ce1'))[_0x2877f5('0x1e30')](_0x2877f5('0x91b'),_0x42e4a9),_0x1b7727[_0x2877f5('0x122c')](_0x2877f5('0x2ce1'))[_0x2877f5('0x1e30')](_0x2877f5('0x91b'),_0x47130a),_0x1b7727[_0x2877f5('0x122c')](_0x2877f5('0x2ce1'))[_0x2877f5('0x210d')](_0x2877f5('0x1e46'),_0x27ae84);var _0x54d5aa=_0x2877f5('0x1323');_0x44a9e0[_0x2877f5('0x345b')]=_0x4e1be6,_0x44a9e0['$q']=_0xc14ff4,_0x44a9e0[_0x2877f5('0x1c36')]=_0x4a4b14,_0x44a9e0['BaseUrlRule']=_0x36896b,_0x44a9e0[_0x2877f5('0x3518')]=_0x5e7a9f,_0x44a9e0[_0x2877f5('0x1f68')]=_0x1629cd,_0x44a9e0[_0x2877f5('0x9c9')]=_0x331621,_0x44a9e0[_0x2877f5('0x1c15')]=_0x7a42f9,_0x44a9e0[_0x2877f5('0x3546')]=_0xff8e51,_0x44a9e0[_0x2877f5('0x2207')]=_0x381f84,_0x44a9e0[_0x2877f5('0x2916')]=_0x3143c4,_0x44a9e0['Ng1ViewConfig']=_0x15a06a,_0x44a9e0['Param']=_0x48cf64,_0x44a9e0['ParamFactory']=_0x3b6d8b,_0x44a9e0['ParamType']=_0x462dfb,_0x44a9e0[_0x2877f5('0xec')]=_0x228411,_0x44a9e0['PathNode']=_0x37d081,_0x44a9e0['PathUtils']=_0x56d648,_0x44a9e0['PushStateLocationService']=_0x5568d6,_0x44a9e0[_0x2877f5('0xf32')]=_0x347668,_0x44a9e0['RegisteredHook']=_0x1dfb02,_0x44a9e0['Rejection']=_0x250c92,_0x44a9e0['Resolvable']=_0x305b72,_0x44a9e0['ResolveContext']=_0x474a90,_0x44a9e0[_0x2877f5('0x1df3')]=_0x4baf2d,_0x44a9e0['StateMatcher']=_0x431407,_0x44a9e0[_0x2877f5('0x10e3')]=_0x52be0f,_0x44a9e0[_0x2877f5('0x91c')]=_0x542b57,_0x44a9e0['StateProvider']=_0x1d7d38,_0x44a9e0[_0x2877f5('0x1760')]=_0x5b2973,_0x44a9e0['StateRegistry']=_0x25dbe5,_0x44a9e0[_0x2877f5('0x1447')]=_0x2ebe9e,_0x44a9e0[_0x2877f5('0x3111')]=_0x57c6a8,_0x44a9e0[_0x2877f5('0x37f')]=_0xb035d6,_0x44a9e0[_0x2877f5('0xa87')]=_0x5c149b,_0x44a9e0[_0x2877f5('0x1621')]=_0x595ab7,_0x44a9e0[_0x2877f5('0x1805')]=_0x3484ca,_0x44a9e0[_0x2877f5('0x35d2')]=_0x7a69cc,_0x44a9e0[_0x2877f5('0x1ff0')]=_0x47e155,_0x44a9e0[_0x2877f5('0x30d0')]=_0x351348,_0x44a9e0[_0x2877f5('0x2a9c')]=_0x9ff5e6,_0x44a9e0['UrlConfig']=_0x1f20d0,_0x44a9e0[_0x2877f5('0x128d')]=_0x2f3c82,_0x44a9e0[_0x2877f5('0x398')]=_0x4b0b96,_0x44a9e0['UrlRouter']=_0x33ce04,_0x44a9e0[_0x2877f5('0x16e6')]=_0x1697c8,_0x44a9e0[_0x2877f5('0x2f38')]=_0x391d79,_0x44a9e0[_0x2877f5('0x8f3')]=_0x5a69ca,_0x44a9e0[_0x2877f5('0x362')]=_0x45c13f,_0x44a9e0[_0x2877f5('0x1e93')]=_0x4f2939,_0x44a9e0[_0x2877f5('0x1f46')]=_0x5b2adb,_0x44a9e0[_0x2877f5('0x235a')]=_0x33f6a1,_0x44a9e0[_0x2877f5('0x1e06')]=_0x176e15,_0x44a9e0[_0x2877f5('0x174b')]=_0x39bd8a,_0x44a9e0[_0x2877f5('0x130c')]=_0x4c1c71,_0x44a9e0[_0x2877f5('0x14b9')]=_0x13419c,_0x44a9e0[_0x2877f5('0x2135')]=_0x4b6e3c,_0x44a9e0[_0x2877f5('0x26a9')]=_0x19d243,_0x44a9e0['any']=_0x375c1c,_0x44a9e0[_0x2877f5('0x122')]=_0xbe1a5c,_0x44a9e0[_0x2877f5('0x7b9')]=_0xafdea,_0x44a9e0[_0x2877f5('0xda')]=_0x3c52f1,_0x44a9e0[_0x2877f5('0x13e1')]=_0x1de5e5,_0x44a9e0[_0x2877f5('0x2fb3')]=_0x5f5c15,_0x44a9e0[_0x2877f5('0x1e2b')]=_0x7c6609,_0x44a9e0[_0x2877f5('0x1e94')]=_0x565a68,_0x44a9e0[_0x2877f5('0x2a4a')]=_0x13616a,_0x44a9e0['compose']=_0x725902,_0x44a9e0[_0x2877f5('0x213')]=_0xf0a601,_0x44a9e0[_0x2877f5('0x350c')]=_0x26a9c2,_0x44a9e0[_0x2877f5('0x470')]=_0x3dbb84,_0x44a9e0[_0x2877f5('0x2393')]=_0xcdee2a,_0x44a9e0['default']=_0x54d5aa,_0x44a9e0[_0x2877f5('0x392b')]=_0x2c9320,_0x44a9e0['defaultTransOpts']=_0x1e3284,_0x44a9e0[_0x2877f5('0x18bb')]=_0x1b8ff7,_0x44a9e0[_0x2877f5('0x28a5')]=_0x2ad7e2,_0x44a9e0['eq']=_0xc2a725,_0x44a9e0['equals']=_0x571c7e,_0x44a9e0[_0x2877f5('0x237f')]=_0x45ee70,_0x44a9e0[_0x2877f5('0x3127')]=_0x446b5b,_0x44a9e0[_0x2877f5('0x16fd')]=_0x42a99f,_0x44a9e0[_0x2877f5('0xaf0')]=_0x192720,_0x44a9e0[_0x2877f5('0x27fc')]=_0x4fe708,_0x44a9e0[_0x2877f5('0x1211')]=_0x271eb3,_0x44a9e0['forEach']=_0x2cd1cb,_0x44a9e0[_0x2877f5('0x410')]=_0x570ec9,_0x44a9e0[_0x2877f5('0xa2a')]=_0x2eb97f,_0x44a9e0['getLocals']=_0x359055,_0x44a9e0[_0x2877f5('0x3811')]=_0x32ac27,_0x44a9e0['getParams']=_0x554047,_0x44a9e0[_0x2877f5('0x1be1')]=_0x578007,_0x44a9e0[_0x2877f5('0x2445')]=_0x307493,_0x44a9e0[_0x2877f5('0x7b8')]=_0x4acb32,_0x44a9e0[_0x2877f5('0x3940')]=_0x3f84d6,_0x44a9e0[_0x2877f5('0xf40')]=_0x4e6d69,_0x44a9e0[_0x2877f5('0x3845')]=_0x245925,_0x44a9e0['is']=_0x3d3db3,_0x44a9e0[_0x2877f5('0x2f1d')]=_0x49ad08,_0x44a9e0['isDate']=_0x181706,_0x44a9e0[_0x2877f5('0x392d')]=_0x417a63,_0x44a9e0['isFunction']=_0x27da05,_0x44a9e0['isInjectable']=_0x14a074,_0x44a9e0['isNull']=_0x4d7641,_0x44a9e0['isNullOrUndefined']=_0xd9abc,_0x44a9e0[_0x2877f5('0x53')]=_0x3b8221,_0x44a9e0[_0x2877f5('0x1d0d')]=_0x50b2a7,_0x44a9e0[_0x2877f5('0x233b')]=_0x3aced7,_0x44a9e0[_0x2877f5('0x2f01')]=_0x38bd13,_0x44a9e0['isString']=_0x3f2c2e,_0x44a9e0['isUndefined']=_0x1d472c,_0x44a9e0[_0x2877f5('0x47e')]=_0x3bf27c,_0x44a9e0[_0x2877f5('0x1388')]=_0x250bbc,_0x44a9e0['keyValsToObjectR']=_0x41ef92,_0x44a9e0[_0x2877f5('0x587')]=_0x494e46,_0x44a9e0[_0x2877f5('0x1011')]=_0x29a365,_0x44a9e0[_0x2877f5('0x1e66')]=_0x2555bc,_0x44a9e0[_0x2877f5('0x2d86')]=_0x51960c,_0x44a9e0[_0x2877f5('0x385d')]=_0x412593,_0x44a9e0['matchState']=_0x5e9c18,_0x44a9e0[_0x2877f5('0x233')]=_0x1e0a7f,_0x44a9e0['memoryLocationPlugin']=_0x3d5874,_0x44a9e0[_0x2877f5('0x34bd')]=_0x2d1fcb,_0x44a9e0[_0x2877f5('0x2e7b')]=_0x2eda94,_0x44a9e0['noop']=_0x2ab390,_0x44a9e0[_0x2877f5('0x1bb3')]=_0x3d2611,_0x44a9e0[_0x2877f5('0x29')]=_0x4e416f,_0x44a9e0['or']=_0xc93f9d,_0x44a9e0[_0x2877f5('0x28c5')]=_0x1e58a0,_0x44a9e0['pairs']=_0x365b04,_0x44a9e0[_0x2877f5('0x207')]=_0x58a1b9,_0x44a9e0[_0x2877f5('0x1d0a')]=_0x412d4b,_0x44a9e0[_0x2877f5('0x2eb1')]=_0x449885,_0x44a9e0['pick']=_0x23cd83,_0x44a9e0[_0x2877f5('0x17e3')]=_0x191328,_0x44a9e0[_0x2877f5('0x260f')]=_0x4a1480,_0x44a9e0['prop']=_0x4103e4,_0x44a9e0[_0x2877f5('0x1b73')]=_0x480afb,_0x44a9e0[_0x2877f5('0x15')]=_0x5056ca,_0x44a9e0[_0x2877f5('0x2191')]=_0x2c456e,_0x44a9e0[_0x2877f5('0xfea')]=_0x332568,_0x44a9e0['removeFrom']=_0xf7741b,_0x44a9e0[_0x2877f5('0xaab')]=_0xd526a2,_0x44a9e0[_0x2877f5('0x31c2')]=_0x43f7de,_0x44a9e0[_0x2877f5('0x1ad')]=_0x55685e,_0x44a9e0['services']=_0x18a5ff,_0x44a9e0[_0x2877f5('0x147f')]=_0x10c7ef,_0x44a9e0['silenceUncaughtInPromise']=_0x30e924,_0x44a9e0[_0x2877f5('0x342d')]=_0x2e1b24,_0x44a9e0[_0x2877f5('0x28cf')]=_0x212dcb,_0x44a9e0['splitHash']=_0x477382,_0x44a9e0[_0x2877f5('0x28b5')]=_0x19099c,_0x44a9e0[_0x2877f5('0x26e3')]=_0x1296c0,_0x44a9e0[_0x2877f5('0xdd6')]=_0x21554a,_0x44a9e0[_0x2877f5('0x36c0')]=_0x12b18b,_0x44a9e0[_0x2877f5('0xddf')]=_0x142905,_0x44a9e0[_0x2877f5('0x33f1')]=_0x534786,_0x44a9e0[_0x2877f5('0x25d2')]=_0x59472f,_0x44a9e0['trimHashVal']=_0x2d1e65,_0x44a9e0[_0x2877f5('0x6b7')]=_0x3b3fbf,_0x44a9e0[_0x2877f5('0x2a59')]=_0x5c7ad4,_0x44a9e0[_0x2877f5('0x1c9')]=_0x40987e,_0x44a9e0[_0x2877f5('0x698')]=_0x288ab9,_0x44a9e0[_0x2877f5('0x8c0')]=_0x5c51e9,_0x44a9e0[_0x2877f5('0x379c')]=_0x5efa2f,Object['defineProperty'](_0x44a9e0,'__esModule',{'value':!0x0});}(_0x32f2b0,_0x5dfdd4(0x1666));},0xdf:function(_0x190a28,_0x43dd26,_0x2c0a2b){!function(_0x20d9be,_0x595270){var _0x1da649=a2_0x4bfe;'use strict';var _0x3da946,_0x13e78a,_0x5ea35c,_0x2c7a9c,_0x401bdb,_0x5872d3=angular,_0x1375b7=_0x595270&&_0x595270[_0x1da649('0x122c')]?_0x595270:_0x5872d3;(function(){var _0x3972be=_0x1da649,_0xc1d52=_0x1375b7[_0x3972be('0x1e34')],_0x4cf8fb=_0x1375b7[_0x3972be('0x392')];function _0x28dbf0(_0x1611ab,_0x10152a){var _0x51b2ae=_0x3972be,_0x174e30,_0x4e1d63;if(Array[_0x51b2ae('0x2f1d')](_0x10152a)&&(_0x174e30=_0x10152a[0x0],_0x4e1d63=_0x10152a[0x1]),!_0x4cf8fb(_0x174e30))throw new Error('invalid\x20parameters\x20to\x20applyPairs');return _0x1611ab[_0x174e30]=_0x4e1d63,_0x1611ab;}function _0x4bfe59(_0x4947ff){var _0x3a9318=_0x3972be;if(_0x4947ff[_0x3a9318('0xded')]()[_0x3a9318('0x3785')]&&_0x4947ff[_0x3a9318('0x3852')]()&&!_0x4947ff['ignored']()){var _0xab0d80=_0x4947ff[_0x3a9318('0xe91')](),_0x49fc85=_0xab0d80[_0x3a9318('0x1861')]('$stateEvents'),_0x243cb3=_0xab0d80['get'](_0x3a9318('0x709')),_0x4a6587=_0xab0d80['get']('$state'),_0x1f5742=_0xab0d80['get'](_0x3a9318('0x281d')),_0x1b2e06=_0x49fc85[_0x3a9318('0x210d')][_0x3a9318('0x25f9')](),_0x2a71e4=_0x4947ff['params']('to'),_0x5a15a2=_0x4947ff[_0x3a9318('0x46e')]('from');if(_0x1b2e06[_0x3a9318('0x2232')]){if(_0x243cb3[_0x3a9318('0x1c18')](_0x3a9318('0x2ef3'),_0x4947ff['to'](),_0x2a71e4,_0x4947ff[_0x3a9318('0x2f5')](),_0x5a15a2,_0x4947ff['options'](),_0x4947ff)[_0x3a9318('0x1859')])return _0x1b2e06[_0x3a9318('0x33e1')]&&_0x243cb3[_0x3a9318('0x1c18')](_0x3a9318('0x33e1'),_0x4947ff['to'](),_0x2a71e4,_0x4947ff['from'](),_0x5a15a2,_0x4947ff[_0x3a9318('0xded')](),_0x4947ff),null==_0x4a6587[_0x3a9318('0x20d1')]&&_0x1f5742[_0x3a9318('0x3956')](),!0x1;var _0x3ac265={'priority':0x270f};_0x4947ff[_0x3a9318('0x13ab')]({},function(){var _0x275b4f=_0x3a9318;_0x243cb3['$broadcast'](_0x275b4f('0x2232'),_0x4947ff['to'](),_0x2a71e4,_0x4947ff[_0x275b4f('0x2f5')](),_0x5a15a2,_0x4947ff[_0x275b4f('0xded')](),_0x4947ff);},_0x3ac265);}_0x1b2e06[_0x3a9318('0x19e3')]&&_0x4947ff[_0x3a9318('0x34a6')][_0x3a9318('0x2287')](function(_0x5e39a2){var _0x33940f=_0x3a9318;(!_0x5e39a2||0x2!==_0x5e39a2[_0x33940f('0x21a5')]&&0x3!==_0x5e39a2['type'])&&(_0x243cb3[_0x33940f('0x1c18')](_0x33940f('0x19e3'),_0x4947ff['to'](),_0x2a71e4,_0x4947ff['from'](),_0x5a15a2,_0x5e39a2,_0x4947ff[_0x33940f('0xded')](),_0x4947ff)[_0x33940f('0x1859')]||_0x1f5742[_0x33940f('0x3956')]());});}}function _0x37bf03(_0x34b38a,_0x49694b,_0x453bb4){var _0x544a1a=_0x3972be,_0x51e8c1=_0x453bb4[_0x544a1a('0x1861')]('$state'),_0x57ca28=_0x453bb4[_0x544a1a('0x1861')]('$rootScope'),_0x4c7103=_0x453bb4[_0x544a1a('0x1861')](_0x544a1a('0x281d')),_0x266fd1={'to':_0x34b38a[_0x544a1a('0x306b')](),'toParams':_0x34b38a[_0x544a1a('0x46e')](),'options':_0x34b38a['options']()},_0x2d9313=_0x57ca28[_0x544a1a('0x1c18')]('$stateNotFound',_0x266fd1,_0x49694b[_0x544a1a('0x380')](),_0x49694b[_0x544a1a('0x46e')]());function _0x37bc0c(){var _0x221683=_0x544a1a;return _0x51e8c1[_0x221683('0x312f')](_0x266fd1['to'],_0x266fd1[_0x221683('0x3646')],_0x266fd1[_0x221683('0xded')]);}return(_0x2d9313['defaultPrevented']||_0x2d9313['retry'])&&_0x4c7103['update'](),!_0x2d9313[_0x544a1a('0x1859')]&&(_0x2d9313[_0x544a1a('0x16ea')]||_0x51e8c1['get'](_0x266fd1['to'])?_0x2d9313[_0x544a1a('0x16ea')]&&_0xc1d52(_0x2d9313[_0x544a1a('0x16ea')]['then'])?_0x2d9313['retry'][_0x544a1a('0x26b5')](_0x37bc0c):_0x37bc0c():void 0x0);}function _0x1d5a21(_0x2a0e38){var _0x557cb8=_0x3972be;_0x1d5a21[_0x557cb8('0x5a')][_0x557cb8('0x93a')]=this;var _0x27b6fa=!0x1,_0x12b520=[_0x557cb8('0x2ef3'),'$stateNotFound',_0x557cb8('0x2232'),_0x557cb8('0x19e3')],_0xd363e5=_0x12b520[_0x557cb8('0x2d86')](function(_0x4bffee){return[_0x4bffee,!0x0];})[_0x557cb8('0x33b0')](_0x28dbf0,{});function _0x4f3bd0(){var _0x10a26c=_0x557cb8;if(_0x27b6fa)throw new Error(_0x10a26c('0x320c'));}function _0x848d3f(_0x587729){var _0x587fbb=_0x557cb8;return _0x27b6fa=!0x0,_0xd363e5[_0x587fbb('0x2731')]&&_0x2a0e38['onInvalid'](_0x37bf03),_0xd363e5[_0x587fbb('0x2ef3')]&&_0x587729['onBefore']({},_0x4bfe59,{'priority':0x3e8}),{'provider':_0x1d5a21[_0x587fbb('0x5a')][_0x587fbb('0x93a')]};}this[_0x557cb8('0x9c4')]=function(){var _0x54fa69=_0x557cb8;for(var _0x243f3a=[],_0x29a355=0x0;_0x29a355{var _0x423afd=_0x411650;function _0x6e2d21(){}_0x517985[_0x423afd('0x1a8b')]=function(_0x391b71,_0x10613b,_0x224abc){var _0x25b65a=!0x1;return _0x224abc=_0x224abc||_0x6e2d21,_0x289e2c['count']=_0x391b71,0x0===_0x391b71?_0x10613b():_0x289e2c;function _0x289e2c(_0x4f9f7f,_0x2079e6){var _0x2008da=a2_0x4bfe;if(_0x289e2c[_0x2008da('0x1eb6')]<=0x0)throw new Error(_0x2008da('0x2881'));--_0x289e2c[_0x2008da('0x1eb6')],_0x4f9f7f?(_0x25b65a=!0x0,_0x10613b(_0x4f9f7f),_0x10613b=_0x224abc):0x0!==_0x289e2c[_0x2008da('0x1eb6')]||_0x25b65a||_0x10613b(null,_0x2079e6);}};},0x573:(_0x574313,_0x1caf36,_0x3b260f)=>{var _0x11bad9,_0x7439e,_0x292c87;!function(_0x44f908,_0x10c42b){var _0x3eee5c=a2_0x4bfe;'use strict';_0x574313[_0x3eee5c('0x1a8b')]?_0x574313[_0x3eee5c('0x1a8b')]=_0x10c42b(_0x3b260f(0x1666)):(_0x7439e=[_0x3b260f(0x1666)],void 0x0===(_0x292c87='function'==typeof(_0x11bad9=_0x10c42b)?_0x11bad9[_0x3eee5c('0x177a')](_0x1caf36,_0x7439e):_0x11bad9)||(_0x574313[_0x3eee5c('0x1a8b')]=_0x292c87));}(window,function(_0x16aedf){var _0x39e32f=a2_0x4bfe;'use strict';_0x16aedf[_0x39e32f('0x122c')](_0x39e32f('0x850'),[])[_0x39e32f('0x1e30')](_0x39e32f('0x1470'),['$q',_0x39e32f('0x1636'),_0x39e32f('0x393b'),_0x39e32f('0x60'),_0x39e32f('0x1993'),'$templateCache','$interpolate',function(_0xeb0ce,_0x27fad7,_0x4761a3,_0x38587f,_0x244f06,_0x16e933,_0x2e1ffb){var _0x2d0157=_0x39e32f,_0x542744=_0x2d0157('0x1d3d');function _0x5d83aa(_0x5279e5,_0x15b7cd,_0x1be030,_0x40e9f2){var _0x4cdd11=_0x2d0157,_0x6629ec,_0x502cda,_0x2c7b59,_0x29e963,_0x20975a,_0x5a82f1,_0x361786=_0x15b7cd['find'](_0x4cdd11('0x10a7')),_0x27f848=0x3,_0x6e423=null,_0x30bd72=_0x4cdd11('0x342f'),_0x406800=null,_0x199fe9=null,_0x4836ba=!0x1,_0x2a7126=_0x15b7cd[0x0][_0x4cdd11('0x2cee')](_0x4cdd11('0x2bc7')),_0x1dbd87=!0x1,_0x24b67a=null;function _0x47edc9(_0x20cc5a,_0x4612c0){var _0x1d4313=_0x4cdd11;_0x20cc5a&&(_0x1d4313('0x1a8')==typeof _0x20cc5a?(_0x5279e5['searchStr']=_0x42d184(_0x20cc5a),_0x54d775({'originalObject':_0x20cc5a})):_0x1d4313('0x151d')==typeof _0x20cc5a&&_0x20cc5a[_0x1d4313('0x175a')]>0x0?_0x5279e5[_0x1d4313('0x309a')]=_0x20cc5a:console&&console['error']&&console[_0x1d4313('0x2534')](_0x1d4313('0x2e08')+(_0x4612c0?_0x1d4313('0x3424'):'')+'\x20value\x20of\x20angucomplete\x20to',_0x20cc5a,_0x1d4313('0x398d')),_0x212593(!0x0));}function _0x1e408b(_0xe1588b){var _0x9423c5=_0x4cdd11;_0x24b67a=null,_0x5279e5[_0x9423c5('0x1de6')](_0xe1588b),document['body'][_0x9423c5('0x1940')]('click',_0x1e408b);}function _0x344431(_0x1bf9f8){var _0x24a0bd=_0x4cdd11;return _0x1bf9f8[_0x24a0bd('0x35c5')]?_0x1bf9f8[_0x24a0bd('0x35c5')]:_0x1bf9f8[_0x24a0bd('0x1f8c')];}function _0x54d775(_0x14a60a){var _0x3b9224=_0x4cdd11;'function'==typeof _0x5279e5[_0x3b9224('0x2f69')]?_0x5279e5[_0x3b9224('0x2f69')](_0x14a60a,_0x5279e5[_0x3b9224('0x10e9')]):_0x5279e5[_0x3b9224('0x2f69')]=_0x14a60a,_0x212593(!!_0x14a60a);}function _0x42d184(_0x5e0e0c){var _0x1cb38b=_0x4cdd11;return _0x5279e5['titleField'][_0x1cb38b('0x23ee')](',')[_0x1cb38b('0x2d86')](function(_0x1b3a01){return _0x5deb15(_0x5e0e0c,_0x1b3a01);})['join']('\x20');}function _0x5deb15(_0x1d6b2a,_0x53c0cc){var _0x33a361=_0x4cdd11,_0x436a4e,_0xad4dbe;if(_0x53c0cc){_0x436a4e=_0x53c0cc[_0x33a361('0x23ee')]('.'),_0xad4dbe=_0x1d6b2a;for(var _0x3f4f2f=0x0;_0x3f4f2f<_0x436a4e['length'];_0x3f4f2f++)_0xad4dbe=_0xad4dbe[_0x436a4e[_0x3f4f2f]];}else _0xad4dbe=_0x1d6b2a;return _0xad4dbe;}function _0x2a7a29(_0x1e4f0b,_0x2d4edc){var _0x31a314=_0x4cdd11,_0x34f49c,_0x204fec,_0x8ed0e4;if(_0x8ed0e4=new RegExp(_0x2d4edc['replace'](/[.*+?^${}()|[\]\\]/g,_0x31a314('0x524')),'i'),_0x1e4f0b)return _0x1e4f0b['match']&&_0x1e4f0b[_0x31a314('0x34c8')]||(_0x1e4f0b=_0x1e4f0b[_0x31a314('0x6ef')]()),_0x34f49c=(_0x204fec=_0x1e4f0b['match'](_0x8ed0e4))?_0x1e4f0b[_0x31a314('0x34c8')](_0x8ed0e4,_0x31a314('0xe5b')+_0x5279e5[_0x31a314('0x2f9f')]+'\x22>'+_0x204fec[0x0]+_0x31a314('0x13b2')):_0x1e4f0b,_0x38587f[_0x31a314('0x1bb2')](_0x34f49c);}function _0x212593(_0x588a38){var _0x8d80=_0x4cdd11;_0x5279e5[_0x8d80('0x321a')]=_0x588a38,_0x406800=_0x5279e5['searchStr'],_0x5279e5['fieldRequired']&&_0x40e9f2&&_0x5279e5[_0x8d80('0x1b59')]&&_0x40e9f2[_0x5279e5['inputName']]['$setValidity'](_0x30bd72,_0x588a38);}function _0x3a1de5(_0xc97f6){var _0x214c5f=_0x4cdd11;!_0x5279e5[_0x214c5f('0x64')]||_0x5279e5[_0x214c5f('0x2f69')]&&_0x5279e5[_0x214c5f('0x2f69')][_0x214c5f('0xff8')]===_0x5279e5[_0x214c5f('0x309a')]||(_0xc97f6&&_0xc97f6[_0x214c5f('0x1f1a')](),_0x244f06[_0x214c5f('0x31ce')](_0x6e423),_0x58a8c8(),_0x54d775({'originalObject':_0x5279e5['searchStr']}),_0x5279e5['clearSelected']&&(_0x5279e5[_0x214c5f('0x309a')]=null),_0x29a5c8());}function _0x5287a8(){var _0x1a105c=_0x4cdd11;return _0x15b7cd[0x0]['querySelectorAll']('.angucomplete-row')[_0x5279e5[_0x1a105c('0x258e')]];}function _0x5cf2d5(_0x5ea32e){var _0x4e694c=_0x4cdd11;_0x2a7126[_0x4e694c('0x1fd3')]=_0x2a7126[_0x4e694c('0x1fd3')]+_0x5ea32e;}function _0x219581(){var _0x1ca8f4=_0x4cdd11,_0x48b7fa=_0x5279e5[_0x1ca8f4('0x2da3')][_0x5279e5[_0x1ca8f4('0x258e')]];_0x5279e5[_0x1ca8f4('0x2f9f')]?_0x361786['val'](_0x42d184(_0x48b7fa[_0x1ca8f4('0xff8')])):_0x361786[_0x1ca8f4('0x698')](_0x48b7fa[_0x1ca8f4('0x2595')]);}function _0x4ebbf0(_0x4d8360){return function(_0x387a7f,_0x384428,_0x536e9c,_0xa26a7){var _0x4d6a13=a2_0x4bfe;_0x384428||_0x536e9c||_0xa26a7||!_0x387a7f[_0x4d6a13('0xcee')]||(_0x387a7f=_0x387a7f[_0x4d6a13('0xcee')]),_0x5279e5[_0x4d6a13('0x2da6')]=!0x1,_0x1fc55c(_0x5deb15(_0x502cda(_0x387a7f),_0x5279e5[_0x4d6a13('0x2a')]),_0x4d8360);};}function _0x232034(_0x1cdd29,_0x303962,_0x8faa8e,_0x2062a9){var _0x236952=_0x4cdd11;_0x5279e5['searching']=_0x4836ba,_0x303962||_0x8faa8e||_0x2062a9||(_0x303962=_0x1cdd29['status']),0x0!==_0x303962&&-0x1!==_0x303962&&(_0x5279e5[_0x236952('0x2f2')]?_0x5279e5[_0x236952('0x2f2')](_0x1cdd29,_0x303962,_0x8faa8e,_0x2062a9):console&&console[_0x236952('0x2534')]&&console[_0x236952('0x2534')](_0x236952('0x36f5')));}function _0x58a8c8(){_0x199fe9&&_0x199fe9['resolve']();}function _0x1f9502(_0x1f31db){var _0x13acbd=_0x4cdd11,_0x1b5984={},_0x131271=_0x5279e5[_0x13acbd('0x1112')]+encodeURIComponent(_0x1f31db);_0x5279e5[_0x13acbd('0x3367')]&&(_0x1b5984={'params':_0x5279e5[_0x13acbd('0x3367')](_0x1f31db)},_0x131271=_0x5279e5[_0x13acbd('0x1112')]),_0x5279e5[_0x13acbd('0x34ff')]&&(_0x1b5984[_0x13acbd('0x3012')]=!0x0),_0x58a8c8(),_0x199fe9=_0xeb0ce['defer'](),_0x1b5984[_0x13acbd('0xbd0')]=_0x199fe9[_0x13acbd('0x34a6')],_0x4836ba=!0x0,_0x4761a3['get'](_0x131271,_0x1b5984)[_0x13acbd('0x26b5')](_0x4ebbf0(_0x1f31db))['catch'](_0x232034)['finally'](function(){_0x4836ba=!0x1;});}function _0x1d766b(_0xeba734){var _0xaed0a0=_0x4cdd11;_0x58a8c8(),_0x199fe9=_0xeb0ce[_0xaed0a0('0xc99')](),_0x5279e5[_0xaed0a0('0x1b52')](_0xeba734,_0x199fe9[_0xaed0a0('0x34a6')])[_0xaed0a0('0x26b5')](_0x4ebbf0(_0xeba734))['catch'](_0x232034);}function _0x29a5c8(){var _0x45c609=_0x4cdd11;_0x5279e5[_0x45c609('0x1af1')]=!0x1,_0x5279e5[_0x45c609('0x2da3')]=[],_0x2a7126&&(_0x2a7126[_0x45c609('0x1fd3')]=0x0);}function _0x3d2079(){var _0x5eb3b4=_0x4cdd11;_0x5279e5['showDropdown']=_0x29e963,_0x5279e5[_0x5eb3b4('0x258e')]=_0x5279e5[_0x5eb3b4('0x954')]?0x0:-0x1,_0x5279e5[_0x5eb3b4('0x2da3')]=[];}function _0x22488f(_0x1dbc31){var _0x1ff010=_0x4cdd11;!_0x1dbc31||_0x1dbc31[_0x1ff010('0x175a')]<_0x27f848||(_0x5279e5[_0x1ff010('0x1ed')]?_0x5279e5[_0x1ff010('0x1280')](function(){var _0x49f982=_0x1ff010,_0x1deff2;_0x1deff2=void 0x0!==_0x5279e5[_0x49f982('0x2095')]()?_0x5279e5[_0x49f982('0x2095')]()(_0x1dbc31,_0x5279e5[_0x49f982('0x1ed')]):function(_0x4a61ac){var _0x229014=_0x49f982,_0x1ae298,_0x2ff2df,_0x629227,_0x30b403,_0x533ab8=_0x5279e5[_0x229014('0xba1')][_0x229014('0x23ee')](','),_0x150211=[];for(void 0x0!==_0x5279e5[_0x229014('0x7d3')]()&&(_0x4a61ac=_0x5279e5[_0x229014('0x7d3')]()(_0x4a61ac)),_0x1ae298=0x0;_0x1ae298<_0x5279e5[_0x229014('0x1ed')][_0x229014('0x175a')];_0x1ae298++){for(_0x2ff2df=!0x1,_0x629227=0x0;_0x629227<_0x533ab8['length'];_0x629227++)_0x30b403=_0x5deb15(_0x5279e5[_0x229014('0x1ed')][_0x1ae298],_0x533ab8[_0x629227])||'',_0x2ff2df=_0x2ff2df||_0x30b403[_0x229014('0x6ef')]()['toLowerCase']()['indexOf'](_0x4a61ac[_0x229014('0x6ef')]()[_0x229014('0x856')]())>=0x0;_0x2ff2df&&(_0x150211[_0x150211[_0x229014('0x175a')]]=_0x5279e5[_0x229014('0x1ed')][_0x1ae298]);}return _0x150211;}(_0x1dbc31),_0x5279e5['searching']=!0x1,_0x1fc55c(_0x1deff2,_0x1dbc31);}):_0x5279e5[_0x1ff010('0x1b52')]?_0x1d766b(_0x1dbc31):_0x1f9502(_0x1dbc31));}function _0x1fc55c(_0x3cf55e,_0x3f2002){var _0x58c46d=_0x4cdd11,_0x301069,_0x1a590a,_0x57de26,_0x332c57,_0x5974e,_0x1bf4a8;if(_0x3cf55e&&_0x3cf55e['length']>0x0)for(_0x5279e5[_0x58c46d('0x2da3')]=[],_0x301069=0x0;_0x301069<_0x3cf55e[_0x58c46d('0x175a')];_0x301069++)_0x5279e5[_0x58c46d('0x3d7')]&&''!==_0x5279e5[_0x58c46d('0x3d7')]&&(_0x332c57=_0x5974e=_0x42d184(_0x3cf55e[_0x301069])),_0x1a590a='',_0x5279e5['descriptionField']&&(_0x1a590a=_0x1bf4a8=_0x5deb15(_0x3cf55e[_0x301069],_0x5279e5[_0x58c46d('0x24be')])),_0x57de26='',_0x5279e5[_0x58c46d('0x11a1')]&&(_0x57de26=_0x5deb15(_0x3cf55e[_0x301069],_0x5279e5[_0x58c46d('0x11a1')])),_0x5279e5['matchClass']&&(_0x5974e=_0x2a7a29(_0x332c57,_0x3f2002),_0x1bf4a8=_0x2a7a29(_0x1a590a,_0x3f2002)),_0x5279e5[_0x58c46d('0x2da3')][_0x5279e5[_0x58c46d('0x2da3')]['length']]={'title':_0x5974e,'description':_0x1bf4a8,'image':_0x57de26,'originalObject':_0x3cf55e[_0x301069]};else _0x5279e5['results']=[];_0x5279e5['autoMatch']&&0x1===_0x5279e5[_0x58c46d('0x2da3')][_0x58c46d('0x175a')]&&function(_0x2479a3,_0x29fce1,_0x988178){var _0x42a559=_0x58c46d;if(!_0x988178)return!0x1;for(var _0x1365fd in _0x29fce1)if(_0x29fce1[_0x1365fd][_0x42a559('0x856')]()===_0x988178[_0x42a559('0x856')]())return _0x5279e5[_0x42a559('0x975')](_0x2479a3),!0x0;return!0x1;}(_0x5279e5['results'][0x0],{'title':_0x332c57,'desc':_0x1a590a||''},_0x5279e5[_0x58c46d('0x309a')])?_0x5279e5[_0x58c46d('0x1af1')]=!0x1:0x0!==_0x5279e5['results']['length']||_0x20975a?_0x5279e5[_0x58c46d('0x1af1')]=!0x0:_0x5279e5['showDropdown']=!0x1;}function _0x1eabda(){var _0x46fd8d=_0x4cdd11;_0x5279e5[_0x46fd8d('0x1ed')]?(_0x5279e5[_0x46fd8d('0x2da6')]=!0x1,_0x1fc55c(_0x5279e5[_0x46fd8d('0x1ed')],'')):_0x5279e5[_0x46fd8d('0x1b52')]?(_0x5279e5[_0x46fd8d('0x2da6')]=!0x0,_0x1d766b('')):(_0x5279e5[_0x46fd8d('0x2da6')]=!0x0,_0x1f9502(''));}_0x15b7cd['on'](_0x4cdd11('0x15e3'),function(_0x134a60){var _0x494120=_0x4cdd11;_0x134a60[_0x494120('0x312f')]['id']?(_0x24b67a=_0x134a60[_0x494120('0x312f')]['id'])===_0x5279e5['id']+_0x494120('0x6a3')&&document[_0x494120('0x3742')][_0x494120('0x2e05')](_0x494120('0x160'),_0x1e408b):_0x24b67a=_0x134a60[_0x494120('0x312f')][_0x494120('0x2630')];}),_0x5279e5[_0x4cdd11('0x258e')]=_0x5279e5[_0x4cdd11('0x954')]?0x0:null,_0x5279e5[_0x4cdd11('0x2da6')]=!0x1,_0x2c7b59=_0x5279e5[_0x4cdd11('0x1cb1')](_0x4cdd11('0xd95'),function(_0x53c6f3){_0x53c6f3&&(_0x2c7b59(),_0x47edc9(_0x53c6f3,!0x0));}),_0x5279e5[_0x4cdd11('0x1cb1')](_0x4cdd11('0x31d0'),function(_0x8c2765,_0x495bd0){var _0x3fd3b1=_0x4cdd11;_0x8c2765!==_0x495bd0&&(_0x8c2765?_0x406800&&-0x1!==_0x5279e5['currentIndex']?_0x212593(!0x0):_0x212593(!0x1):_0x40e9f2[_0x5279e5[_0x3fd3b1('0x1b59')]]['$setValidity'](_0x30bd72,!0x0));}),_0x5279e5[_0x4cdd11('0x1db8')]('angucomplete-alt:clearInput',function(_0x409b38,_0x57e441){var _0x2f83c2=_0x4cdd11;_0x57e441&&_0x57e441!==_0x5279e5['id']||(_0x5279e5[_0x2f83c2('0x309a')]=null,_0x54d775(),_0x212593(!0x1),_0x29a5c8());}),_0x5279e5[_0x4cdd11('0x1db8')]('angucomplete-alt:changeInput',function(_0x8b45b6,_0x558fd9,_0x3d5b87){_0x558fd9&&_0x558fd9===_0x5279e5['id']&&_0x47edc9(_0x3d5b87);}),_0x5279e5[_0x4cdd11('0x1550')]=function(){var _0x2545bb=_0x4cdd11;_0x5279e5['focusIn']&&_0x5279e5[_0x2545bb('0x2cbd')](),0x0!==_0x27f848||_0x5279e5[_0x2545bb('0x309a')]&&0x0!==_0x5279e5[_0x2545bb('0x309a')]['length']||(_0x5279e5[_0x2545bb('0x258e')]=_0x5279e5[_0x2545bb('0x954')]?0x0:_0x5279e5[_0x2545bb('0x258e')],_0x5279e5[_0x2545bb('0x1af1')]=!0x0,_0x1eabda());},_0x5279e5[_0x4cdd11('0x1de6')]=function(){var _0x11d2c7=_0x4cdd11;_0x24b67a&&(_0x24b67a===_0x5279e5['id']+_0x11d2c7('0x6a3')||_0x24b67a['indexOf']('angucomplete')>=0x0)?_0x24b67a=null:(_0x6629ec=_0x244f06(function(){var _0x131d2f=_0x11d2c7;_0x29a5c8(),_0x5279e5[_0x131d2f('0x1280')](function(){var _0xd3b55d=_0x131d2f;_0x5279e5[_0xd3b55d('0x309a')]&&_0x5279e5['searchStr'][_0xd3b55d('0x175a')]>0x0&&_0x361786['val'](_0x5279e5['searchStr']);});},0xc8),_0x58a8c8(),_0x5279e5[_0x11d2c7('0x3101')]&&_0x5279e5[_0x11d2c7('0x3101')](),_0x5279e5['overrideSuggestions']&&_0x5279e5[_0x11d2c7('0x309a')]&&_0x5279e5['searchStr'][_0x11d2c7('0x175a')]>0x0&&-0x1===_0x5279e5['currentIndex']&&_0x3a1de5());},_0x5279e5[_0x4cdd11('0x23e4')]=function(){var _0x1c5af7=_0x4cdd11;_0x6629ec&&_0x244f06[_0x1c5af7('0x31ce')](_0x6629ec);},_0x5279e5[_0x4cdd11('0x21ee')]=function(_0x2678af){_0x5279e5['currentIndex']=_0x2678af;},_0x5279e5[_0x4cdd11('0x975')]=function(_0x5c694c){var _0x5764ad=_0x4cdd11;_0x5279e5['matchClass']&&(_0x5c694c[_0x5764ad('0x2595')]=_0x42d184(_0x5c694c[_0x5764ad('0xff8')]),_0x5c694c[_0x5764ad('0x79c')]=_0x5deb15(_0x5c694c[_0x5764ad('0xff8')],_0x5279e5[_0x5764ad('0x24be')])),_0x5279e5['clearSelected']?_0x5279e5['searchStr']=null:_0x5279e5[_0x5764ad('0x309a')]=_0x5c694c[_0x5764ad('0x2595')],_0x54d775(_0x5c694c),_0x29a5c8();},_0x5279e5[_0x4cdd11('0x1274')]=function(_0x10c57f){var _0x451ba2=_0x4cdd11;return _0x10c57f[_0x451ba2('0x175a')]<_0x27f848?(_0x58a8c8(),_0x29a5c8()):0x0===_0x10c57f[_0x451ba2('0x175a')]&&0x0===_0x27f848&&_0x1eabda(),_0x5279e5[_0x451ba2('0x3430')]&&(_0x10c57f=_0x5279e5['inputChanged'](_0x10c57f)),_0x10c57f;},_0x5279e5[_0x4cdd11('0x2590')]&&''!==_0x5279e5[_0x4cdd11('0x2590')]&&(_0x30bd72=_0x5279e5[_0x4cdd11('0x2590')]),_0x5279e5[_0x4cdd11('0x1512')]&&''!==_0x5279e5['minlength']&&(_0x27f848=parseInt(_0x5279e5[_0x4cdd11('0x1512')],0xa)),_0x5279e5[_0x4cdd11('0x1b13')]||(_0x5279e5['pause']=0x1f4),_0x5279e5[_0x4cdd11('0x29b8')]||(_0x5279e5[_0x4cdd11('0x29b8')]=!0x1),_0x5279e5[_0x4cdd11('0x64')]||(_0x5279e5['overrideSuggestions']=!0x1),_0x5279e5[_0x4cdd11('0x31d0')]&&_0x40e9f2&&(_0x5279e5[_0x4cdd11('0xd95')]?_0x212593(!0x0):_0x212593(!0x1)),_0x5279e5[_0x4cdd11('0x1f37')]=_0x1be030['type']?_0x1be030['type']:'text',_0x5279e5[_0x4cdd11('0x2ee6')]=_0x1be030[_0x4cdd11('0x2ee6')]?_0x1be030['textSearching']:_0x4cdd11('0x221a'),_0x5279e5[_0x4cdd11('0x21c4')]=_0x1be030['textNoResults']?_0x1be030[_0x4cdd11('0x21c4')]:_0x4cdd11('0xe78'),_0x29e963=_0x4cdd11('0x16ae')!==_0x5279e5[_0x4cdd11('0x2ee6')],_0x20975a='false'!==_0x5279e5['textNoResults'],_0x5279e5['maxlength']=_0x1be030[_0x4cdd11('0x146f')]?_0x1be030[_0x4cdd11('0x146f')]:0x80000,_0x361786['on'](_0x4cdd11('0xf04'),function(_0x32c909){var _0x5adcf6=_0x4cdd11,_0x13902c=_0x344431(_0x32c909),_0x465673=null,_0x284a22=null;0xd===_0x13902c&&_0x5279e5[_0x5adcf6('0x2da3')]?(_0x5279e5[_0x5adcf6('0x258e')]>=0x0&&_0x5279e5[_0x5adcf6('0x258e')]<_0x5279e5[_0x5adcf6('0x2da3')][_0x5adcf6('0x175a')]?(_0x32c909[_0x5adcf6('0x1f1a')](),_0x5279e5[_0x5adcf6('0x975')](_0x5279e5['results'][_0x5279e5[_0x5adcf6('0x258e')]])):(_0x3a1de5(_0x32c909),_0x29a5c8()),_0x5279e5[_0x5adcf6('0x1280')]()):0x28===_0x13902c&&_0x5279e5['results']?(_0x32c909[_0x5adcf6('0x1f1a')](),_0x5279e5[_0x5adcf6('0x258e')]+0x1<_0x5279e5['results']['length']&&_0x5279e5[_0x5adcf6('0x1af1')]&&(_0x5279e5[_0x5adcf6('0x1280')](function(){var _0x4d1e69=_0x5adcf6;_0x5279e5[_0x4d1e69('0x258e')]++,_0x219581();}),_0x1dbd87&&(_0x465673=_0x5287a8(),_0x2a7126['getBoundingClientRect']()['top']+parseInt(getComputedStyle(_0x2a7126)[_0x5adcf6('0x1f4c')],0xa)<_0x465673[_0x5adcf6('0x2748')]()[_0x5adcf6('0x24a3')]&&_0x5cf2d5(function(_0x72193b){var _0x42001c=_0x5adcf6,_0x1c4a58=getComputedStyle(_0x72193b);return _0x72193b[_0x42001c('0x1147')]+parseInt(_0x1c4a58[_0x42001c('0x77c')],0xa)+parseInt(_0x1c4a58[_0x42001c('0x6f7')],0xa);}(_0x465673))))):0x26===_0x13902c&&_0x5279e5[_0x5adcf6('0x2da3')]?(_0x32c909[_0x5adcf6('0x1f1a')](),_0x5279e5[_0x5adcf6('0x258e')]>=0x1?(_0x5279e5[_0x5adcf6('0x1280')](function(){_0x5279e5['currentIndex']--,_0x219581();}),_0x1dbd87&&(_0x284a22=_0x5287a8()['getBoundingClientRect']()['top']-(_0x2a7126[_0x5adcf6('0x2748')]()[_0x5adcf6('0x361a')]+parseInt(getComputedStyle(_0x2a7126)[_0x5adcf6('0x244')],0xa)))<0x0&&_0x5cf2d5(_0x284a22-0x1)):0x0===_0x5279e5['currentIndex']&&_0x5279e5[_0x5adcf6('0x1280')](function(){_0x5279e5['currentIndex']=-0x1,_0x361786['val'](_0x5279e5['searchStr']);})):0x9===_0x13902c?_0x5279e5[_0x5adcf6('0x2da3')]&&_0x5279e5[_0x5adcf6('0x2da3')][_0x5adcf6('0x175a')]>0x0&&_0x5279e5['showDropdown']?-0x1===_0x5279e5['currentIndex']&&_0x5279e5[_0x5adcf6('0x64')]?_0x3a1de5():(-0x1===_0x5279e5[_0x5adcf6('0x258e')]&&(_0x5279e5['currentIndex']=0x0),_0x5279e5['selectResult'](_0x5279e5[_0x5adcf6('0x2da3')][_0x5279e5['currentIndex']]),_0x5279e5[_0x5adcf6('0x3964')]()):_0x5279e5[_0x5adcf6('0x309a')]&&_0x5279e5[_0x5adcf6('0x309a')][_0x5adcf6('0x175a')]>0x0&&_0x3a1de5():0x1b===_0x13902c&&_0x32c909[_0x5adcf6('0x1f1a')]();}),_0x361786['on']('keyup\x20compositionend',function(_0x2b6e99){var _0x598e1e=_0x4cdd11,_0x49345c=_0x344431(_0x2b6e99);if(0x25!==_0x49345c&&0x27!==_0x49345c){if(0x26===_0x49345c||0xd===_0x49345c)_0x2b6e99['preventDefault']();else{if(0x28===_0x49345c)_0x2b6e99['preventDefault'](),!_0x5279e5[_0x598e1e('0x1af1')]&&_0x5279e5[_0x598e1e('0x309a')]&&_0x5279e5[_0x598e1e('0x309a')]['length']>=_0x27f848&&(_0x3d2079(),_0x5279e5['searching']=!0x0,_0x22488f(_0x5279e5[_0x598e1e('0x309a')]));else{if(0x1b===_0x49345c)_0x29a5c8(),_0x5279e5[_0x598e1e('0x1280')](function(){var _0x5dfa6c=_0x598e1e;_0x361786['val'](_0x5279e5[_0x5dfa6c('0x309a')]);});else{if(0x0===_0x27f848&&!_0x5279e5[_0x598e1e('0x309a')])return;_0x5279e5[_0x598e1e('0x309a')]&&''!==_0x5279e5[_0x598e1e('0x309a')]?_0x5279e5[_0x598e1e('0x309a')]['length']>=_0x27f848&&(_0x3d2079(),_0x6e423&&_0x244f06[_0x598e1e('0x31ce')](_0x6e423),_0x5279e5[_0x598e1e('0x2da6')]=!0x0,_0x6e423=_0x244f06(function(){var _0x79602a=_0x598e1e;_0x22488f(_0x5279e5[_0x79602a('0x309a')]);},_0x5279e5['pause'])):_0x5279e5[_0x598e1e('0x1af1')]=!0x1,_0x406800&&_0x406800!==_0x5279e5[_0x598e1e('0x309a')]&&!_0x5279e5[_0x598e1e('0x29b8')]&&_0x5279e5[_0x598e1e('0x1280')](function(){_0x54d775();});}}}}}),_0x5a82f1=_0x4cdd11('0x1dbd'),_0x502cda=function(_0x30dc4a){return _0x5279e5[_0x5a82f1]?_0x5279e5[_0x5a82f1](_0x30dc4a):_0x30dc4a;},_0x244f06(function(){var _0x5719dc=_0x4cdd11,_0x1eb7c7=getComputedStyle(_0x2a7126);_0x1dbd87=_0x1eb7c7[_0x5719dc('0x1f4c')]&&_0x5719dc('0x1ae7')===_0x1eb7c7[_0x5719dc('0x395c')];});}return _0x16e933[_0x2d0157('0x29c1')](_0x542744,_0x2d0157('0x21e6')),{'restrict':'EA','require':_0x2d0157('0xe07'),'scope':{'selectedObject':'=','selectedObjectData':'=','disableInput':'=','initialValue':'=','localData':'=','localSearch':'&','remoteUrlRequestFormatter':'=','remoteUrlRequestWithCredentials':'@','remoteUrlResponseFormatter':'=','remoteUrlErrorCallback':'=','remoteApiHandler':'=','id':'@','type':'@','placeholder':'@','textSearching':'@','textNoResults':'@','remoteUrl':'@','remoteUrlDataField':'@','titleField':'@','descriptionField':'@','imageField':'@','inputClass':'@','pause':'@','searchFields':'@','minlength':'@','matchClass':'@','clearSelected':'@','overrideSuggestions':'@','fieldRequired':'=','fieldRequiredClass':'@','inputChanged':'=','autoMatch':'@','focusOut':'&','focusIn':'&','fieldTabindex':'@','inputName':'@','focusFirst':'@','parseInput':'&'},'templateUrl':function(_0x527b6f,_0xeae721){var _0x5517ec=_0x2d0157;return _0xeae721[_0x5517ec('0x1bd9')]||_0x542744;},'compile':function(_0x4723dd){var _0x128795=_0x2d0157,_0x914630=_0x2e1ffb[_0x128795('0x298')](),_0x10123f=_0x2e1ffb[_0x128795('0xa5d')]();if('{{'!==_0x914630||'}}'!==_0x10123f){var _0x1da839=_0x4723dd[_0x128795('0x1fb7')]()[_0x128795('0x34c8')](/\{\{/g,_0x914630)[_0x128795('0x34c8')](/\}\}/g,_0x10123f);_0x4723dd[_0x128795('0x1fb7')](_0x1da839);}return _0x5d83aa;}};}]);});},0x6a9:()=>{var _0x4c32c8=_0x411650;!function(_0x5e4e58,_0x63b199){var _0x39f715=a2_0x4bfe;'use strict';var _0x159ee9,_0x404140,_0xa96904,_0x369b24,_0x2c001d=_0x39f715('0x23d'),_0x27fa84='-remove',_0xa84fb1=_0x39f715('0x3749'),_0x511dff=_0x39f715('0x39b4');void 0x0===_0x5e4e58[_0x39f715('0x6c2')]&&void 0x0!==_0x5e4e58['onwebkittransitionend']?(_0x39f715('0x83'),_0x159ee9=_0x39f715('0x2d3a'),_0x404140='webkitTransitionEnd\x20transitionend'):(_0x159ee9=_0x39f715('0x20d1'),_0x404140='transitionend'),void 0x0===_0x5e4e58[_0x39f715('0xfdc')]&&void 0x0!==_0x5e4e58[_0x39f715('0x1de3')]?(_0x39f715('0x83'),_0xa96904='WebkitAnimation',_0x369b24=_0x39f715('0x1b6')):(_0xa96904=_0x39f715('0xa41'),_0x369b24=_0x39f715('0x1fb4'));var _0x4e8345='Duration',_0x3d2c7e=_0x39f715('0x1d2a'),_0x27a80d=_0x39f715('0x35d5'),_0x3fa38b=_0x39f715('0x4'),_0x4d0864=_0xa96904+_0x27a80d,_0x4ec29b=_0xa96904+_0x4e8345,_0x2dec88=_0x159ee9+_0x27a80d,_0x1e28b1=_0x159ee9+_0x4e8345,_0x567539=_0x63b199[_0x39f715('0x1265')]('ng');function _0x4d13ee(_0x3f6107,_0x64af2e,_0x2ab644){var _0x5cea0c=_0x39f715;if(!_0x3f6107)throw _0x567539('areq','Argument\x20\x27{0}\x27\x20is\x20{1}',_0x64af2e||'?',_0x2ab644||_0x5cea0c('0x20d0'));return _0x3f6107;}function _0x47426d(_0x8bcbb3,_0x21e4a0){var _0x545ec0=_0x39f715;return _0x8bcbb3||_0x21e4a0?_0x8bcbb3?_0x21e4a0?(_0x402d08(_0x8bcbb3)&&(_0x8bcbb3=_0x8bcbb3[_0x545ec0('0x6a8')]('\x20')),_0x402d08(_0x21e4a0)&&(_0x21e4a0=_0x21e4a0[_0x545ec0('0x6a8')]('\x20')),_0x8bcbb3+'\x20'+_0x21e4a0):_0x8bcbb3:_0x21e4a0:'';}function _0x15c068(_0x3e9d66,_0xc512b5,_0x4b556b){var _0x49c53b=_0x39f715,_0x537c36='';return _0x3e9d66=_0x402d08(_0x3e9d66)?_0x3e9d66:_0x3e9d66&&_0x16c3a3(_0x3e9d66)&&_0x3e9d66[_0x49c53b('0x175a')]?_0x3e9d66['split'](/\s+/):[],_0xcc47a(_0x3e9d66,function(_0x2ab48b,_0x2f019e){var _0x33953d=_0x49c53b;_0x2ab48b&&_0x2ab48b[_0x33953d('0x175a')]>0x0&&(_0x537c36+=_0x2f019e>0x0?'\x20':'',_0x537c36+=_0x4b556b?_0xc512b5+_0x2ab48b:_0x2ab48b+_0xc512b5);}),_0x537c36;}function _0x3defed(_0x5215f2){var _0x3e4e66=_0x39f715;if(_0x5215f2 instanceof _0x463531)switch(_0x5215f2[_0x3e4e66('0x175a')]){case 0x0:return _0x5215f2;case 0x1:if(0x1===_0x5215f2[0x0][_0x3e4e66('0x3605')])return _0x5215f2;break;default:return _0x463531(_0x44e968(_0x5215f2));}if(0x1===_0x5215f2['nodeType'])return _0x463531(_0x5215f2);}function _0x44e968(_0x3c1ec9){var _0x1900c0=_0x39f715;if(!_0x3c1ec9[0x0])return _0x3c1ec9;for(var _0x1fed4e=0x0;_0x1fed4e<_0x3c1ec9[_0x1900c0('0x175a')];_0x1fed4e++){var _0x12e164=_0x3c1ec9[_0x1fed4e];if(0x1===_0x12e164['nodeType'])return _0x12e164;}}function _0x3d43c0(_0x158b42){return function(_0x4de326,_0x2ebea5){var _0x493230=a2_0x4bfe;_0x2ebea5[_0x493230('0x2dc8')]&&(!function(_0x44895b,_0x519368,_0x27c179){_0xcc47a(_0x519368,function(_0x761ec0){_0x44895b['addClass'](_0x761ec0,_0x27c179);});}(_0x158b42,_0x4de326,_0x2ebea5[_0x493230('0x2dc8')]),_0x2ebea5['addClass']=null),_0x2ebea5[_0x493230('0x3a0')]&&(!function(_0x2e363f,_0x3d66a2,_0x332611){_0xcc47a(_0x3d66a2,function(_0x543990){var _0x3010a0=a2_0x4bfe;_0x2e363f[_0x3010a0('0x3a0')](_0x543990,_0x332611);});}(_0x158b42,_0x4de326,_0x2ebea5[_0x493230('0x3a0')]),_0x2ebea5['removeClass']=null);};}function _0x574c3d(_0xf8b1f8){var _0x4bc494=_0x39f715;if(!(_0xf8b1f8=_0xf8b1f8||{})[_0x4bc494('0x191')]){var _0x4a9817=_0xf8b1f8['domOperation']||_0xdb04aa;_0xf8b1f8[_0x4bc494('0x23e')]=function(){var _0x56d2c3=_0x4bc494;_0xf8b1f8[_0x56d2c3('0xcd3')]=!0x0,_0x4a9817(),_0x4a9817=_0xdb04aa;},_0xf8b1f8[_0x4bc494('0x191')]=!0x0;}return _0xf8b1f8;}function _0x1b7780(_0x121891,_0x5036d3){_0x4656b1(_0x121891,_0x5036d3),_0x12ae08(_0x121891,_0x5036d3);}function _0x4656b1(_0x422651,_0x135ffa){var _0x467d09=_0x39f715;_0x135ffa[_0x467d09('0x2f5')]&&(_0x422651['css'](_0x135ffa[_0x467d09('0x2f5')]),_0x135ffa[_0x467d09('0x2f5')]=null);}function _0x12ae08(_0x3e4fa8,_0x301942){var _0x3bf499=_0x39f715;_0x301942['to']&&(_0x3e4fa8[_0x3bf499('0x30a3')](_0x301942['to']),_0x301942['to']=null);}function _0x396433(_0x4378ec,_0x12ec2c,_0x5bd47d){var _0x54063a=_0x39f715,_0x2282ff=_0x12ec2c[_0x54063a('0xded')]||{},_0x2e1528=_0x5bd47d[_0x54063a('0xded')]||{},_0x3b2978=(_0x2282ff[_0x54063a('0x2dc8')]||'')+'\x20'+(_0x2e1528['addClass']||''),_0x56a548=(_0x2282ff[_0x54063a('0x3a0')]||'')+'\x20'+(_0x2e1528[_0x54063a('0x3a0')]||''),_0x1b658c=function(_0x19682b,_0x41d399,_0xf3bfb6){var _0x233562=0x1,_0x1c67b3=-0x1,_0x1ee2bd={};_0x19682b=_0x1919d6(_0x19682b),_0x41d399=_0x1919d6(_0x41d399),_0xcc47a(_0x41d399,function(_0x24888a,_0x3b45ab){_0x1ee2bd[_0x3b45ab]=_0x233562;}),_0xf3bfb6=_0x1919d6(_0xf3bfb6),_0xcc47a(_0xf3bfb6,function(_0x130875,_0x13aa3e){_0x1ee2bd[_0x13aa3e]=_0x1ee2bd[_0x13aa3e]===_0x233562?null:_0x1c67b3;});var _0x45b6e1={'addClass':'','removeClass':''};function _0x1919d6(_0xc2616c){var _0x256260=a2_0x4bfe;_0x16c3a3(_0xc2616c)&&(_0xc2616c=_0xc2616c[_0x256260('0x23ee')]('\x20'));var _0x179918={};return _0xcc47a(_0xc2616c,function(_0x55eda6){var _0x158df7=_0x256260;_0x55eda6[_0x158df7('0x175a')]&&(_0x179918[_0x55eda6]=!0x0);}),_0x179918;}return _0xcc47a(_0x1ee2bd,function(_0x4e2f28,_0x33e6f1){var _0x32bb2c=a2_0x4bfe,_0x3faabf,_0x109d97;_0x4e2f28===_0x233562?(_0x3faabf='addClass',_0x109d97=!_0x19682b[_0x33e6f1]||_0x19682b[_0x33e6f1+_0x27fa84]):_0x4e2f28===_0x1c67b3&&(_0x3faabf=_0x32bb2c('0x3a0'),_0x109d97=_0x19682b[_0x33e6f1]||_0x19682b[_0x33e6f1+_0x2c001d]),_0x109d97&&(_0x45b6e1[_0x3faabf][_0x32bb2c('0x175a')]&&(_0x45b6e1[_0x3faabf]+='\x20'),_0x45b6e1[_0x3faabf]+=_0x33e6f1);}),_0x45b6e1;}(_0x4378ec[_0x54063a('0x1e52')](_0x54063a('0xc5')),_0x3b2978,_0x56a548);_0x2e1528[_0x54063a('0x2d8')]&&(_0x2282ff['preparationClasses']=_0x301e7a(_0x2e1528[_0x54063a('0x2d8')],_0x2282ff[_0x54063a('0x2d8')]),delete _0x2e1528[_0x54063a('0x2d8')]);var _0xad77f=_0x2282ff['domOperation']!==_0xdb04aa?_0x2282ff[_0x54063a('0x23e')]:null;return _0x547450(_0x2282ff,_0x2e1528),_0xad77f&&(_0x2282ff['domOperation']=_0xad77f),_0x1b658c[_0x54063a('0x2dc8')]?_0x2282ff[_0x54063a('0x2dc8')]=_0x1b658c[_0x54063a('0x2dc8')]:_0x2282ff[_0x54063a('0x2dc8')]=null,_0x1b658c[_0x54063a('0x3a0')]?_0x2282ff[_0x54063a('0x3a0')]=_0x1b658c[_0x54063a('0x3a0')]:_0x2282ff[_0x54063a('0x3a0')]=null,_0x12ec2c[_0x54063a('0x2dc8')]=_0x2282ff['addClass'],_0x12ec2c[_0x54063a('0x3a0')]=_0x2282ff[_0x54063a('0x3a0')],_0x2282ff;}function _0x2992a6(_0x5c780a){return _0x5c780a instanceof _0x463531?_0x5c780a[0x0]:_0x5c780a;}function _0x59735e(_0x31e1b3,_0x145ae5){var _0x5230e6=_0x39f715,_0x40ca5b=_0x145ae5?_0x5230e6('0x2502'):'',_0x3deb0b=_0xa96904+_0x5230e6('0x2655');return _0x3a7a57(_0x31e1b3,[_0x3deb0b,_0x40ca5b]),[_0x3deb0b,_0x40ca5b];}function _0x3a7a57(_0x5c9327,_0x7205cd){var _0x3baff5=_0x39f715,_0x13a6a9=_0x7205cd[0x0],_0x3de381=_0x7205cd[0x1];_0x5c9327[_0x3baff5('0x14b6')][_0x13a6a9]=_0x3de381;}function _0x301e7a(_0xb5f2bb,_0x4f05e3){return _0xb5f2bb?_0x4f05e3?_0xb5f2bb+'\x20'+_0x4f05e3:_0xb5f2bb:_0x4f05e3;}var _0x5b00dc=function(_0x5b69f3,_0x302767){var _0x37271d=_0x302767?'-'+_0x302767+'s':'';return _0x3a7a57(_0x5b69f3,[_0x2dec88,_0x37271d]),[_0x2dec88,_0x37271d];},_0xa862d9=[_0x39f715('0x2476'),function(_0x36f2bc){return{'link':function(_0xd00b73,_0x5918a4,_0x466be2){var _0x194401=a2_0x4bfe,_0x5dad9b=_0x466be2[_0x194401('0x4e3')];function _0x2c843b(_0x34299d){var _0x21f90a=_0x194401;_0x34299d='on'===_0x34299d||_0x21f90a('0x11cf')===_0x34299d,_0x5918a4[_0x21f90a('0xcee')](_0x511dff,_0x34299d);}_0x16c3a3(_0x5dad9b)&&0x0===_0x5dad9b['length']?_0x5918a4[_0x194401('0xcee')](_0x511dff,!0x0):(_0x2c843b(_0x36f2bc(_0x5dad9b)(_0xd00b73)),_0x466be2[_0x194401('0x2838')](_0x194401('0x4e3'),_0x2c843b));}};}],_0x386ea9=_0x39f715('0x86e'),_0x51ef10=0x3e8,_0x1b1c2c={'transitionDuration':_0x1e28b1,'transitionDelay':_0x2dec88,'transitionProperty':_0x159ee9+_0x3d2c7e,'animationDuration':_0x4ec29b,'animationDelay':_0x4d0864,'animationIterationCount':_0xa96904+_0x39f715('0x3779')},_0xb8d40e={'transitionDuration':_0x1e28b1,'transitionDelay':_0x2dec88,'animationDuration':_0x4ec29b,'animationDelay':_0x4d0864};function _0x33097f(_0x7cff9a,_0x48888c){return[_0x48888c?_0x4d0864:_0x2dec88,_0x7cff9a+'s'];}function _0x355d40(_0x4a8d31,_0x334232,_0x3c18a4){var _0x11669c=_0x39f715,_0x358eb3=Object[_0x11669c('0x126')](null),_0x23c64f=_0x4a8d31['getComputedStyle'](_0x334232)||{};return _0xcc47a(_0x3c18a4,function(_0x577490,_0x42ec1f){var _0x1d730a=_0x11669c,_0x39a1dc,_0x5c4cfb,_0x109bc3=_0x23c64f[_0x577490];if(_0x109bc3){var _0x80e167=_0x109bc3[_0x1d730a('0x40')](0x0);('-'===_0x80e167||'+'===_0x80e167||_0x80e167>=0x0)&&(_0x39a1dc=0x0,_0x5c4cfb=_0x109bc3[_0x1d730a('0x23ee')](/\s*,\s*/),_0xcc47a(_0x5c4cfb,function(_0x3bc8fb){var _0x1d6533=_0x1d730a;'s'===_0x3bc8fb['charAt'](_0x3bc8fb[_0x1d6533('0x175a')]-0x1)&&(_0x3bc8fb=_0x3bc8fb['substring'](0x0,_0x3bc8fb[_0x1d6533('0x175a')]-0x1)),_0x3bc8fb=parseFloat(_0x3bc8fb)||0x0,_0x39a1dc=_0x39a1dc?Math[_0x1d6533('0x2780')](_0x3bc8fb,_0x39a1dc):_0x3bc8fb;}),_0x109bc3=_0x39a1dc),0x0===_0x109bc3&&(_0x109bc3=null),_0x358eb3[_0x42ec1f]=_0x109bc3;}}),_0x358eb3;}function _0x3fd8b3(_0x1ac556){return 0x0===_0x1ac556||null!=_0x1ac556;}function _0x31c8a8(_0x4c5d4e,_0x3fec81){var _0x4b019b=_0x39f715,_0x130a58=_0x159ee9,_0x1b7ad9=_0x4c5d4e+'s';return _0x3fec81?_0x130a58+=_0x4e8345:_0x1b7ad9+=_0x4b019b('0x7db'),[_0x130a58,_0x1b7ad9];}function _0xc85476(_0x4ff9fc,_0x430cbd,_0x405431){_0xcc47a(_0x405431,function(_0x189ca7){_0x4ff9fc[_0x189ca7]=_0x525335(_0x4ff9fc[_0x189ca7])?_0x4ff9fc[_0x189ca7]:_0x430cbd['style']['getPropertyValue'](_0x189ca7);});}var _0x2e5cb1,_0x547450,_0xcc47a,_0x402d08,_0x525335,_0x18279e,_0x3668e2,_0x41cea5,_0x16c3a3,_0x369200,_0x463531,_0xdb04aa,_0x4b79ff=['$animateProvider',function(_0xe734ec){var _0x29950f=_0x39f715;this['$get']=[_0x29950f('0x398e'),_0x29950f('0x2dc3'),_0x29950f('0x49d'),_0x29950f('0x1993'),_0x29950f('0x271'),'$$forceReflow','$sniffer','$$rAFScheduler','$$animateQueue',function(_0x5d2c60,_0xd4eb66,_0x4133cb,_0x304d93,_0x45d56d,_0x16d230,_0x214c6d,_0x370666,_0x38cd7e){var _0x264209=_0x3d43c0(_0xd4eb66),_0x845553=[];function _0x93879(_0x19ee62){var _0x46a4b7=a2_0x4bfe;_0x845553[_0x46a4b7('0x1a90')](_0x19ee62),_0x370666[_0x46a4b7('0x32c0')](function(){var _0x5f736f=_0x46a4b7;_0x45d56d[_0x5f736f('0x1781')]();for(var _0x3e5185=_0x16d230(),_0x2d669d=0x0;_0x2d669d<_0x845553[_0x5f736f('0x175a')];_0x2d669d++)_0x845553[_0x2d669d](_0x3e5185);_0x845553[_0x5f736f('0x175a')]=0x0;});}function _0x3bb428(_0x5aa804,_0x28c6d7,_0x1d6661,_0xd5da3d){var _0x15d300=a2_0x4bfe,_0x483e8d=function(_0x10a97e,_0x373a0d,_0x398637,_0x2360bf,_0x17c3e8){var _0x563719=a2_0x4bfe,_0x16f5b2=_0x45d56d[_0x563719('0x1861')](_0x398637);_0x16f5b2||_0x563719('0x369a')===(_0x16f5b2=_0x355d40(_0x5d2c60,_0x10a97e,_0x17c3e8))['animationIterationCount']&&(_0x16f5b2['animationIterationCount']=0x1);var _0x47261b=_0x2360bf||_0x16f5b2[_0x563719('0x1c7f')]>0x0||_0x16f5b2[_0x563719('0xe5a')]>0x0;return _0x45d56d[_0x563719('0x29c1')](_0x398637,_0x16f5b2,_0x47261b),_0x16f5b2;}(_0x5aa804,0x0,_0x1d6661,_0xd5da3d,_0x1b1c2c),_0x4d6967=_0x483e8d[_0x15d300('0x2853')],_0x3c63a9=_0x483e8d[_0x15d300('0x383a')];return _0x483e8d['maxDelay']=_0x4d6967&&_0x3c63a9?Math[_0x15d300('0x2780')](_0x4d6967,_0x3c63a9):_0x4d6967||_0x3c63a9,_0x483e8d[_0x15d300('0x887')]=Math['max'](_0x483e8d[_0x15d300('0xe5a')]*_0x483e8d[_0x15d300('0x2e7f')],_0x483e8d[_0x15d300('0x1c7f')]),_0x483e8d;}return function(_0x5bcc24,_0x16640a){var _0x71a86c=a2_0x4bfe,_0x24d902=_0x16640a||{};_0x24d902['$$prepared']||(_0x24d902=_0x574c3d(_0x2e5cb1(_0x24d902)));var _0x5f50f7={},_0x3af06f=_0x2992a6(_0x5bcc24);if(!_0x3af06f||!_0x3af06f[_0x71a86c('0x1378')]||!_0x38cd7e[_0x71a86c('0x25f9')]())return _0x36c8c6();var _0x21f72e,_0xa8d5d3,_0x5cfc1b,_0x29e243,_0xf6f146,_0x5b280d,_0x519b77,_0x491dd1,_0x56533f,_0x4d7912,_0x3b5454=[],_0x2ace61=(_0x5bcc24[_0x71a86c('0x1e52')](_0x71a86c('0xc5')),function(_0xc0b8c){var _0x20a57a=_0x71a86c,_0x3b4dfd={};return _0xc0b8c&&(_0xc0b8c['to']||_0xc0b8c[_0x20a57a('0x2f5')])&&(_0x3b4dfd['to']=_0xc0b8c['to'],_0x3b4dfd[_0x20a57a('0x2f5')]=_0xc0b8c[_0x20a57a('0x2f5')]),_0x3b4dfd;}(_0x24d902)),_0x4af131=[];if(0x0===_0x24d902['duration']||!_0x214c6d[_0x71a86c('0x1263')]&&!_0x214c6d[_0x71a86c('0x76d')])return _0x36c8c6();var _0x36db45=_0x24d902[_0x71a86c('0x9e6')]&&_0x402d08(_0x24d902[_0x71a86c('0x9e6')])?_0x24d902['event'][_0x71a86c('0x6a8')]('\x20'):_0x24d902[_0x71a86c('0x9e6')],_0x42714b=_0x36db45&&_0x24d902[_0x71a86c('0x19fb')],_0x1dc451='',_0x42ac28='';_0x42714b?_0x1dc451=_0x15c068(_0x36db45,'ng-',!0x0):_0x36db45&&(_0x1dc451=_0x36db45),_0x24d902[_0x71a86c('0x2dc8')]&&(_0x42ac28+=_0x15c068(_0x24d902[_0x71a86c('0x2dc8')],_0x2c001d)),_0x24d902[_0x71a86c('0x3a0')]&&(_0x42ac28[_0x71a86c('0x175a')]&&(_0x42ac28+='\x20'),_0x42ac28+=_0x15c068(_0x24d902[_0x71a86c('0x3a0')],_0x27fa84)),_0x24d902[_0x71a86c('0x30f6')]&&_0x42ac28[_0x71a86c('0x175a')]&&_0x264209(_0x5bcc24,_0x24d902);var _0x4ca7b7=[_0x1dc451,_0x42ac28][_0x71a86c('0x6a8')]('\x20')['trim'](),_0x5173a1=_0x2ace61['to']&&Object[_0x71a86c('0x1a3f')](_0x2ace61['to'])['length']>0x0;if(!((_0x24d902[_0x71a86c('0x3041')]||'')[_0x71a86c('0x175a')]>0x0)&&!_0x5173a1&&!_0x4ca7b7)return _0x36c8c6();var _0x4d9b5a,_0x8fb0c5,_0x2cc4eb=_0x45d56d[_0x71a86c('0x3295')](_0x3af06f,_0x36db45,_0x24d902[_0x71a86c('0x2dc8')],_0x24d902['removeClass']);if(_0x45d56d[_0x71a86c('0x2674')](_0x2cc4eb))return _0x4ca7b7=null,_0x36c8c6();if(_0x24d902[_0x71a86c('0x1e04')]>0x0){var _0x360acf=parseFloat(_0x24d902['stagger']);_0x4d9b5a={'transitionDelay':_0x360acf,'animationDelay':_0x360acf,'transitionDuration':0x0,'animationDuration':0x0};}else _0x4d9b5a=function(_0x49f0d2,_0x44daed,_0x238b46,_0x45230c){var _0x329ff5=_0x71a86c,_0x781903,_0x3be037=_0x329ff5('0x29f0')+_0x238b46;if(_0x45d56d[_0x329ff5('0x1eb6')](_0x238b46)>0x0&&!(_0x781903=_0x45d56d['get'](_0x3be037))){var _0x4820f3=_0x15c068(_0x44daed,_0x329ff5('0x243a'));_0xd4eb66['addClass'](_0x49f0d2,_0x4820f3),(_0x781903=_0x355d40(_0x5d2c60,_0x49f0d2,_0x45230c))[_0x329ff5('0xe5a')]=Math['max'](_0x781903[_0x329ff5('0xe5a')],0x0),_0x781903['transitionDuration']=Math[_0x329ff5('0x2780')](_0x781903[_0x329ff5('0x1c7f')],0x0),_0xd4eb66[_0x329ff5('0x3a0')](_0x49f0d2,_0x4820f3),_0x45d56d[_0x329ff5('0x29c1')](_0x3be037,_0x781903,!0x0);}return _0x781903||{};}(_0x3af06f,_0x4ca7b7,_0x2cc4eb,_0xb8d40e);if(_0x24d902[_0x71a86c('0x2f60')]||_0xd4eb66[_0x71a86c('0x2dc8')](_0x5bcc24,_0x4ca7b7),_0x24d902[_0x71a86c('0x249c')]){var _0x252071=[_0x159ee9,_0x24d902[_0x71a86c('0x249c')]];_0x3a7a57(_0x3af06f,_0x252071),_0x3b5454[_0x71a86c('0x1a90')](_0x252071);}if(_0x24d902[_0x71a86c('0x296c')]>=0x0){_0x8fb0c5=_0x3af06f[_0x71a86c('0x14b6')][_0x159ee9][_0x71a86c('0x175a')]>0x0;var _0x48c5f5=_0x31c8a8(_0x24d902[_0x71a86c('0x296c')],_0x8fb0c5);_0x3a7a57(_0x3af06f,_0x48c5f5),_0x3b5454[_0x71a86c('0x1a90')](_0x48c5f5);}if(_0x24d902[_0x71a86c('0x3041')]){var _0x46ae19=[_0xa96904,_0x24d902[_0x71a86c('0x3041')]];_0x3a7a57(_0x3af06f,_0x46ae19),_0x3b5454[_0x71a86c('0x1a90')](_0x46ae19);}var _0x3e153a=_0x4d9b5a?_0x24d902[_0x71a86c('0x1084')]>=0x0?_0x24d902[_0x71a86c('0x1084')]:_0x45d56d[_0x71a86c('0x1eb6')](_0x2cc4eb):0x0,_0x4e7521=0x0===_0x3e153a;_0x4e7521&&!_0x24d902[_0x71a86c('0xd1c')]&&_0x5b00dc(_0x3af06f,0x270f);var _0x403e52=_0x3bb428(_0x3af06f,0x0,_0x2cc4eb,!_0x42714b),_0x1cdef7=_0x403e52[_0x71a86c('0x1e1d')];_0x5b280d=Math[_0x71a86c('0x2780')](_0x1cdef7,0x0),_0x491dd1=_0x403e52[_0x71a86c('0x887')];var _0x3e4979={};if(_0x3e4979['hasTransitions']=_0x403e52['transitionDuration']>0x0,_0x3e4979[_0x71a86c('0x39c7')]=_0x403e52[_0x71a86c('0xe5a')]>0x0,_0x3e4979[_0x71a86c('0x37c2')]=_0x3e4979[_0x71a86c('0x2d3f')]&&'all'===_0x403e52[_0x71a86c('0x1207')],_0x3e4979[_0x71a86c('0xbb5')]=_0x5173a1&&(_0x3e4979['hasTransitions']&&!_0x3e4979[_0x71a86c('0x37c2')]||_0x3e4979[_0x71a86c('0x39c7')]&&!_0x3e4979[_0x71a86c('0x2d3f')]),_0x3e4979[_0x71a86c('0x935')]=_0x24d902['duration']&&_0x3e4979[_0x71a86c('0x39c7')],_0x3e4979[_0x71a86c('0x6ad')]=_0x3fd8b3(_0x24d902[_0x71a86c('0x33a3')])&&(_0x3e4979['applyTransitionDuration']||_0x3e4979['hasTransitions']),_0x3e4979['applyAnimationDelay']=_0x3fd8b3(_0x24d902[_0x71a86c('0x33a3')])&&_0x3e4979[_0x71a86c('0x39c7')],_0x3e4979[_0x71a86c('0x2fa4')]=_0x42ac28['length']>0x0,(_0x3e4979[_0x71a86c('0xbb5')]||_0x3e4979['applyAnimationDuration'])&&(_0x491dd1=_0x24d902[_0x71a86c('0x296c')]?parseFloat(_0x24d902[_0x71a86c('0x296c')]):_0x491dd1,_0x3e4979[_0x71a86c('0xbb5')]&&(_0x3e4979['hasTransitions']=!0x0,_0x403e52[_0x71a86c('0x1c7f')]=_0x491dd1,_0x8fb0c5=_0x3af06f[_0x71a86c('0x14b6')][_0x159ee9+_0x3d2c7e][_0x71a86c('0x175a')]>0x0,_0x3b5454[_0x71a86c('0x1a90')](_0x31c8a8(_0x491dd1,_0x8fb0c5))),_0x3e4979['applyAnimationDuration']&&(_0x3e4979[_0x71a86c('0x39c7')]=!0x0,_0x403e52[_0x71a86c('0xe5a')]=_0x491dd1,_0x3b5454[_0x71a86c('0x1a90')]([_0x4ec29b,_0x491dd1+'s']))),0x0===_0x491dd1&&!_0x3e4979[_0x71a86c('0x2fa4')])return _0x36c8c6();var _0x2ea0c1,_0x3011bc=_0x15c068(_0x4ca7b7,_0x71a86c('0xdfa'));null!=_0x24d902[_0x71a86c('0x33a3')]&&(_0x71a86c('0x1ee3')!=typeof _0x24d902[_0x71a86c('0x33a3')]&&(_0x2ea0c1=parseFloat(_0x24d902[_0x71a86c('0x33a3')]),_0x5b280d=Math[_0x71a86c('0x2780')](_0x2ea0c1,0x0)),_0x3e4979[_0x71a86c('0x6ad')]&&_0x3b5454['push'](_0x33097f(_0x2ea0c1)),_0x3e4979['applyAnimationDelay']&&_0x3b5454[_0x71a86c('0x1a90')](_0x33097f(_0x2ea0c1,!0x0)));return null==_0x24d902[_0x71a86c('0x296c')]&&_0x403e52[_0x71a86c('0x1c7f')]>0x0&&(_0x3e4979['recalculateTimingStyles']=_0x3e4979[_0x71a86c('0x2fa4')]||_0x4e7521),_0x519b77=_0x5b280d*_0x51ef10,_0x56533f=_0x491dd1*_0x51ef10,_0x24d902[_0x71a86c('0xd1c')]||(_0x3e4979[_0x71a86c('0x15a3')]=_0x403e52[_0x71a86c('0x1c7f')]>0x0,_0x3e4979[_0x71a86c('0xfd8')]=_0x403e52[_0x71a86c('0xe5a')]>0x0&&_0x4d9b5a[_0x71a86c('0x2853')]>0x0&&0x0===_0x4d9b5a[_0x71a86c('0xe5a')]),_0x24d902[_0x71a86c('0x2f5')]&&(_0x24d902[_0x71a86c('0xa01')]&&_0xc85476(_0x5f50f7,_0x3af06f,Object[_0x71a86c('0x1a3f')](_0x24d902[_0x71a86c('0x2f5')])),_0x4656b1(_0x5bcc24,_0x24d902)),_0x3e4979[_0x71a86c('0x15a3')]||_0x3e4979['blockKeyframeAnimation']?_0x2acd47(_0x491dd1):_0x24d902[_0x71a86c('0xd1c')]||_0x5b00dc(_0x3af06f,!0x1),{'$$willAnimate':!0x0,'end':_0x545555,'start':function(){if(!_0x21f72e)return _0x29e243=new _0x4133cb(_0xf6f146={'end':_0x545555,'cancel':_0x1e0c04,'resume':null,'pause':null}),_0x93879(_0x58ad8),_0x29e243;}};function _0x545555(){_0x40d839();}function _0x1e0c04(){_0x40d839(!0x0);}function _0x40d839(_0x333b37){var _0x3172e8=_0x71a86c;if(!(_0x21f72e||_0x5cfc1b&&_0xa8d5d3)){_0x21f72e=!0x0,_0xa8d5d3=!0x1,_0x4ca7b7&&!_0x24d902[_0x3172e8('0x2f60')]&&_0xd4eb66[_0x3172e8('0x3a0')](_0x5bcc24,_0x4ca7b7),_0x3011bc&&_0xd4eb66['removeClass'](_0x5bcc24,_0x3011bc),_0x59735e(_0x3af06f,!0x1),_0x5b00dc(_0x3af06f,!0x1),_0xcc47a(_0x3b5454,function(_0x569d75){var _0x32608c=_0x3172e8;_0x3af06f[_0x32608c('0x14b6')][_0x569d75[0x0]]='';}),_0x264209(_0x5bcc24,_0x24d902),_0x1b7780(_0x5bcc24,_0x24d902),Object['keys'](_0x5f50f7)['length']&&_0xcc47a(_0x5f50f7,function(_0x272ec1,_0x4a3ead){var _0x4d3c56=_0x3172e8;_0x272ec1?_0x3af06f[_0x4d3c56('0x14b6')][_0x4d3c56('0x146')](_0x4a3ead,_0x272ec1):_0x3af06f[_0x4d3c56('0x14b6')][_0x4d3c56('0x655')](_0x4a3ead);}),_0x24d902[_0x3172e8('0xbe4')]&&_0x24d902['onDone'](),_0x4af131&&_0x4af131[_0x3172e8('0x175a')]&&_0x5bcc24[_0x3172e8('0x1202')](_0x4af131[_0x3172e8('0x6a8')]('\x20'),_0x43504c);var _0x165b4d=_0x5bcc24[_0x3172e8('0xcee')](_0x386ea9);_0x165b4d&&(_0x304d93['cancel'](_0x165b4d[0x0][_0x3172e8('0x3994')]),_0x5bcc24[_0x3172e8('0x29c4')](_0x386ea9)),_0x29e243&&_0x29e243[_0x3172e8('0x3890')](!_0x333b37);}}function _0x2acd47(_0x15c9af){var _0x553c52=_0x71a86c;_0x3e4979[_0x553c52('0x15a3')]&&_0x5b00dc(_0x3af06f,_0x15c9af),_0x3e4979['blockKeyframeAnimation']&&_0x59735e(_0x3af06f,!!_0x15c9af);}function _0x36c8c6(){return _0x29e243=new _0x4133cb({'end':_0x545555,'cancel':_0x1e0c04}),_0x93879(_0xdb04aa),_0x40d839(),{'$$willAnimate':!0x1,'start':function(){return _0x29e243;},'end':_0x545555};}function _0x43504c(_0x11c64d){var _0x1269ad=_0x71a86c;_0x11c64d[_0x1269ad('0x16c5')]();var _0x50b6af=_0x11c64d[_0x1269ad('0x2439')]||_0x11c64d;if(_0x50b6af['target']===_0x3af06f){var _0x9829ce=_0x50b6af['$manualTimeStamp']||Date[_0x1269ad('0x90e')](),_0x3e01d8=parseFloat(_0x50b6af[_0x1269ad('0x2efa')][_0x1269ad('0xc32')](0x3));Math['max'](_0x9829ce-_0x4d7912,0x0)>=_0x519b77&&_0x3e01d8>=_0x491dd1&&(_0x5cfc1b=!0x0,_0x40d839());}}function _0x58ad8(){var _0x2e41eb=_0x71a86c;if(!_0x21f72e){if(_0x3af06f[_0x2e41eb('0x1378')]){var _0x297a1a=function(_0x3d1a60){var _0x48d0db=_0x2e41eb;if(_0x5cfc1b)_0xa8d5d3&&_0x3d1a60&&(_0xa8d5d3=!0x1,_0x40d839());else{if(_0xa8d5d3=!_0x3d1a60,_0x403e52[_0x48d0db('0xe5a')]){var _0x309547=_0x59735e(_0x3af06f,_0xa8d5d3);_0xa8d5d3?_0x3b5454[_0x48d0db('0x1a90')](_0x309547):(_0x121029=_0x309547,_0xcf29f3=(_0x4924eb=_0x3b5454)[_0x48d0db('0xe1c')](_0x121029),_0x121029>=0x0&&_0x4924eb[_0x48d0db('0x1f40')](_0xcf29f3,0x1));}}var _0x4924eb,_0x121029,_0xcf29f3;},_0x110742=_0x3e153a>0x0&&(_0x403e52['transitionDuration']&&0x0===_0x4d9b5a['transitionDuration']||_0x403e52[_0x2e41eb('0xe5a')]&&0x0===_0x4d9b5a[_0x2e41eb('0xe5a')])&&Math[_0x2e41eb('0x2780')](_0x4d9b5a[_0x2e41eb('0x2853')],_0x4d9b5a[_0x2e41eb('0x383a')]);_0x110742?_0x304d93(_0x303b9a,Math[_0x2e41eb('0x2736')](_0x110742*_0x3e153a*_0x51ef10),!0x1):_0x303b9a(),_0xf6f146[_0x2e41eb('0x13f1')]=function(){_0x297a1a(!0x0);},_0xf6f146[_0x2e41eb('0x1b13')]=function(){_0x297a1a(!0x1);};}else _0x40d839();}function _0x303b9a(){var _0x338fee=_0x2e41eb;if(!_0x21f72e){if(_0x2acd47(!0x1),_0xcc47a(_0x3b5454,function(_0x1a1534){var _0x87580a=a2_0x4bfe,_0x172a66=_0x1a1534[0x0],_0x4436a6=_0x1a1534[0x1];_0x3af06f[_0x87580a('0x14b6')][_0x172a66]=_0x4436a6;}),_0x264209(_0x5bcc24,_0x24d902),_0xd4eb66[_0x338fee('0x2dc8')](_0x5bcc24,_0x3011bc),_0x3e4979[_0x338fee('0x2fa4')]){if(_0x3af06f[_0x338fee('0x10ba')]('class')+'\x20'+_0x4ca7b7,_0x2cc4eb=_0x45d56d['cacheKey'](_0x3af06f,_0x36db45,_0x24d902[_0x338fee('0x2dc8')],_0x24d902['removeClass']),_0x403e52=_0x3bb428(_0x3af06f,0x0,_0x2cc4eb,!0x1),_0x1cdef7=_0x403e52['maxDelay'],_0x5b280d=Math[_0x338fee('0x2780')](_0x1cdef7,0x0),0x0===(_0x491dd1=_0x403e52[_0x338fee('0x887')]))return void _0x40d839();_0x3e4979[_0x338fee('0x2d3f')]=_0x403e52[_0x338fee('0x1c7f')]>0x0,_0x3e4979['hasAnimations']=_0x403e52[_0x338fee('0xe5a')]>0x0;}if(_0x3e4979[_0x338fee('0x2103')]&&(_0x1cdef7=_0x338fee('0x1ee3')!=typeof _0x24d902['delay']&&_0x3fd8b3(_0x24d902[_0x338fee('0x33a3')])?parseFloat(_0x24d902[_0x338fee('0x33a3')]):_0x1cdef7,_0x5b280d=Math[_0x338fee('0x2780')](_0x1cdef7,0x0),_0x403e52['animationDelay']=_0x1cdef7,_0x2ea0c1=_0x33097f(_0x1cdef7,!0x0),_0x3b5454['push'](_0x2ea0c1),_0x3af06f[_0x338fee('0x14b6')][_0x2ea0c1[0x0]]=_0x2ea0c1[0x1]),_0x519b77=_0x5b280d*_0x51ef10,_0x56533f=_0x491dd1*_0x51ef10,_0x24d902[_0x338fee('0x2cdf')]){var _0x9ba13,_0x503bd6=_0x24d902[_0x338fee('0x2cdf')];_0x3e4979[_0x338fee('0x2d3f')]&&(_0x9ba13=_0x159ee9+_0x3fa38b,_0x3b5454[_0x338fee('0x1a90')]([_0x9ba13,_0x503bd6]),_0x3af06f[_0x338fee('0x14b6')][_0x9ba13]=_0x503bd6),_0x3e4979[_0x338fee('0x39c7')]&&(_0x9ba13=_0xa96904+_0x3fa38b,_0x3b5454['push']([_0x9ba13,_0x503bd6]),_0x3af06f['style'][_0x9ba13]=_0x503bd6);}_0x403e52[_0x338fee('0x1c7f')]&&_0x4af131['push'](_0x404140),_0x403e52[_0x338fee('0xe5a')]&&_0x4af131['push'](_0x369b24),_0x4d7912=Date[_0x338fee('0x90e')]();var _0x3bd0de=_0x519b77+1.5*_0x56533f,_0x4fb3b7=_0x4d7912+_0x3bd0de,_0x1e7be8=_0x5bcc24[_0x338fee('0xcee')](_0x386ea9)||[],_0x1d234d=!0x0;if(_0x1e7be8['length']){var _0x7f7ddb=_0x1e7be8[0x0];(_0x1d234d=_0x4fb3b7>_0x7f7ddb[_0x338fee('0xa3')])?_0x304d93[_0x338fee('0x31ce')](_0x7f7ddb['timer']):_0x1e7be8[_0x338fee('0x1a90')](_0x40d839);}if(_0x1d234d){var _0x1ff035=_0x304d93(_0x1d25e5,_0x3bd0de,!0x1);_0x1e7be8[0x0]={'timer':_0x1ff035,'expectedEndTime':_0x4fb3b7},_0x1e7be8['push'](_0x40d839),_0x5bcc24[_0x338fee('0xcee')](_0x386ea9,_0x1e7be8);}_0x4af131['length']&&_0x5bcc24['on'](_0x4af131[_0x338fee('0x6a8')]('\x20'),_0x43504c),_0x24d902['to']&&(_0x24d902[_0x338fee('0xa01')]&&_0xc85476(_0x5f50f7,_0x3af06f,Object[_0x338fee('0x1a3f')](_0x24d902['to'])),_0x12ae08(_0x5bcc24,_0x24d902));}}function _0x1d25e5(){var _0x572f35=_0x2e41eb,_0x2e7b53=_0x5bcc24[_0x572f35('0xcee')](_0x386ea9);if(_0x2e7b53){for(var _0x330eee=0x1;_0x330eee<_0x2e7b53[_0x572f35('0x175a')];_0x330eee++)_0x2e7b53[_0x330eee]();_0x5bcc24['removeData'](_0x386ea9);}}}};}];}],_0x15cdd9=[_0x39f715('0x2795'),function(_0x1364b3){var _0x42b628=_0x39f715;_0x1364b3['drivers'][_0x42b628('0x1a90')](_0x42b628('0x1d5d'));var _0x2d4c7b=_0x42b628('0x327b'),_0x1351ef=_0x42b628('0x71a'),_0x34458a=_0x42b628('0x1b14');this[_0x42b628('0x2b72')]=[_0x42b628('0xc2c'),_0x42b628('0x709'),_0x42b628('0x49d'),_0x42b628('0x245c'),_0x42b628('0xd81'),_0x42b628('0x2dc3'),_0x42b628('0x151'),function(_0x1150ea,_0x26449a,_0x2173d7,_0x2e1902,_0x3f089d,_0xe94931,_0x14e857){var _0x181876=_0x42b628;if(!_0x3f089d['animations']&&!_0x3f089d[_0x181876('0x76d')])return _0xdb04aa;var _0x1a9932,_0x3727b4=_0x14e857[0x0][_0x181876('0x3742')],_0x3ca2e0=_0x2992a6(_0x2e1902),_0x2c7fa8=_0x463531((_0x1a9932=_0x3ca2e0)['parentNode']&&0xb===_0x1a9932[_0x181876('0x1378')][_0x181876('0x3605')]||_0x3727b4['contains'](_0x3ca2e0)?_0x3ca2e0:_0x3727b4);return function(_0x28778a){var _0x5a1d56=_0x181876;return _0x28778a['from']&&_0x28778a['to']?function(_0x1ee892,_0x422611,_0x4ea731,_0x3c4e44){var _0x3283bd=a2_0x4bfe,_0x2581da=_0x20f0dd(_0x1ee892),_0x345292=_0x20f0dd(_0x422611),_0x57e431=[];if(_0xcc47a(_0x3c4e44,function(_0x22d1d2){var _0x53986f=a2_0x4bfe,_0x1bf6e8=function(_0x9b1273,_0x3478e2,_0x5ef985){var _0x4d8398=a2_0x4bfe,_0x437390=_0x463531(_0x2992a6(_0x3478e2)[_0x4d8398('0x6a7')](!0x0)),_0x18aef2=_0x342a88(_0x44f345(_0x437390));_0x3478e2[_0x4d8398('0x2dc8')](_0x2d4c7b),_0x5ef985['addClass'](_0x2d4c7b),_0x437390[_0x4d8398('0x2dc8')](_0x1351ef),_0x2c7fa8[_0x4d8398('0x10f')](_0x437390);var _0x231ba3,_0x253ea8=_0x4dfe01();if(!_0x253ea8&&!(_0x231ba3=_0x40867b()))return _0x267ce0();var _0x267c5b=_0x253ea8||_0x231ba3;return{'start':function(){var _0x262529=_0x4d8398,_0x52519d,_0x49bb01=_0x267c5b[_0x262529('0x21ef')]();return _0x49bb01[_0x262529('0x3530')](function(){var _0xce5b87=_0x262529;if(_0x49bb01=null,!_0x231ba3&&(_0x231ba3=_0x40867b()))return(_0x49bb01=_0x231ba3[_0xce5b87('0x21ef')]())[_0xce5b87('0x3530')](function(){var _0x46f793=_0xce5b87;_0x49bb01=null,_0x267ce0(),_0x52519d[_0x46f793('0x3890')]();}),_0x49bb01;_0x267ce0(),_0x52519d[_0xce5b87('0x3890')]();}),_0x52519d=new _0x2173d7({'end':_0x56e833,'cancel':_0x56e833});function _0x56e833(){var _0x1566fe=_0x262529;_0x49bb01&&_0x49bb01[_0x1566fe('0x20ae')]();}}};function _0x242dcd(_0x281c1f){var _0x44c1f1=_0x4d8398,_0x50f516={},_0x50c2ce=_0x2992a6(_0x281c1f)['getBoundingClientRect']();return _0xcc47a(['width',_0x44c1f1('0x28c'),'top','left'],function(_0x5c2c66){var _0x22c486=_0x44c1f1,_0x50d457=_0x50c2ce[_0x5c2c66];switch(_0x5c2c66){case _0x22c486('0x361a'):_0x50d457+=_0x3727b4['scrollTop'];break;case'left':_0x50d457+=_0x3727b4[_0x22c486('0x180e')];}_0x50f516[_0x5c2c66]=Math[_0x22c486('0x2736')](_0x50d457)+'px';}),_0x50f516;}function _0x4dfe01(){var _0xaad90=_0x1150ea(_0x437390,{'addClass':_0x34458a,'delay':!0x0,'from':_0x242dcd(_0x3478e2)});return _0xaad90['$$willAnimate']?_0xaad90:null;}function _0x44f345(_0x2625e7){var _0x502034=_0x4d8398;return _0x2625e7['attr'](_0x502034('0xc5'))||'';}function _0x40867b(){var _0x2c1508=_0x342a88(_0x44f345(_0x5ef985)),_0x516ca5=_0xe8e055(_0x2c1508,_0x18aef2),_0x4bd2fa=_0xe8e055(_0x18aef2,_0x2c1508),_0x2a448c=_0x1150ea(_0x437390,{'to':_0x242dcd(_0x5ef985),'addClass':'ng-anchor-in\x20'+_0x516ca5,'removeClass':'ng-anchor-out\x20'+_0x4bd2fa,'delay':!0x0});return _0x2a448c['$$willAnimate']?_0x2a448c:null;}function _0x267ce0(){var _0x521776=_0x4d8398;_0x437390['remove'](),_0x3478e2[_0x521776('0x3a0')](_0x2d4c7b),_0x5ef985[_0x521776('0x3a0')](_0x2d4c7b);}}(0x0,_0x22d1d2[_0x53986f('0xc66')],_0x22d1d2['in']);_0x1bf6e8&&_0x57e431['push'](_0x1bf6e8);}),!_0x2581da&&!_0x345292&&0x0===_0x57e431[_0x3283bd('0x175a')])return;return{'start':function(){var _0x476a24=_0x3283bd,_0x5c7959=[];_0x2581da&&_0x5c7959[_0x476a24('0x1a90')](_0x2581da[_0x476a24('0x21ef')]()),_0x345292&&_0x5c7959[_0x476a24('0x1a90')](_0x345292[_0x476a24('0x21ef')]()),_0xcc47a(_0x57e431,function(_0x5f20ec){_0x5c7959['push'](_0x5f20ec['start']());});var _0x5d80d9=new _0x2173d7({'end':_0xb7d0d1,'cancel':_0xb7d0d1});return _0x2173d7[_0x476a24('0x130c')](_0x5c7959,function(_0x501425){var _0x5f5176=_0x476a24;_0x5d80d9[_0x5f5176('0x3890')](_0x501425);}),_0x5d80d9;function _0xb7d0d1(){_0xcc47a(_0x5c7959,function(_0x1d1c2c){_0x1d1c2c['end']();});}}};}(_0x28778a[_0x5a1d56('0x2f5')],_0x28778a['to'],_0x28778a['classes'],_0x28778a[_0x5a1d56('0x23b0')]):_0x20f0dd(_0x28778a);};function _0x342a88(_0x1a4b82){return _0x1a4b82['replace'](/\bng-\S+\b/g,'');}function _0xe8e055(_0x1a0657,_0x1b7424){var _0x593a29=_0x181876;return _0x16c3a3(_0x1a0657)&&(_0x1a0657=_0x1a0657[_0x593a29('0x23ee')]('\x20')),_0x16c3a3(_0x1b7424)&&(_0x1b7424=_0x1b7424[_0x593a29('0x23ee')]('\x20')),_0x1a0657['filter'](function(_0x18e591){return-0x1===_0x1b7424['indexOf'](_0x18e591);})[_0x593a29('0x6a8')]('\x20');}function _0x20f0dd(_0x48ee10){var _0x3d6aab=_0x181876,_0x32943a=_0x48ee10[_0x3d6aab('0x88a')],_0x500805=_0x48ee10[_0x3d6aab('0xded')]||{};_0x48ee10[_0x3d6aab('0x19fb')]&&(_0x500805['event']=_0x48ee10[_0x3d6aab('0x9e6')],_0x500805[_0x3d6aab('0x19fb')]=!0x0,_0x500805[_0x3d6aab('0x30f6')]=!0x0,'leave'===_0x48ee10[_0x3d6aab('0x9e6')]&&(_0x500805['onDone']=_0x500805[_0x3d6aab('0x23e')])),_0x500805[_0x3d6aab('0x2d8')]&&(_0x500805['event']=_0x301e7a(_0x500805['event'],_0x500805[_0x3d6aab('0x2d8')]));var _0x5d9ab1=_0x1150ea(_0x32943a,_0x500805);return _0x5d9ab1['$$willAnimate']?_0x5d9ab1:null;}}];}],_0x4ef916=[_0x39f715('0xe6b'),function(_0x4deace){var _0x503e77=_0x39f715;this[_0x503e77('0x2b72')]=[_0x503e77('0x345b'),_0x503e77('0x49d'),_0x503e77('0x2dc3'),function(_0x1a27e7,_0x4db899,_0x250d85){var _0x55950a=_0x3d43c0(_0x250d85);return function(_0x8818a7,_0x59e86e,_0x17aafd,_0x106dc){var _0x5a45a4=a2_0x4bfe,_0x4840e7=!0x1;0x3===arguments[_0x5a45a4('0x175a')]&&_0x41cea5(_0x17aafd)&&(_0x106dc=_0x17aafd,_0x17aafd=null),_0x106dc=_0x574c3d(_0x106dc),_0x17aafd||(_0x17aafd=_0x8818a7[_0x5a45a4('0x1e52')](_0x5a45a4('0xc5'))||'',_0x106dc[_0x5a45a4('0x2dc8')]&&(_0x17aafd+='\x20'+_0x106dc[_0x5a45a4('0x2dc8')]),_0x106dc[_0x5a45a4('0x3a0')]&&(_0x17aafd+='\x20'+_0x106dc[_0x5a45a4('0x3a0')]));var _0x5cb08c,_0x4e6b4f,_0x485b7d,_0x36ae2a,_0x5c6df1,_0x94ec63=_0x106dc[_0x5a45a4('0x2dc8')],_0x38d524=_0x106dc[_0x5a45a4('0x3a0')],_0xa5b039=_0x4f5ff5(_0x17aafd);_0xa5b039[_0x5a45a4('0x175a')]&&(_0x5a45a4('0x376c')===_0x59e86e?(_0x36ae2a='leave',_0x485b7d='afterLeave'):(_0x36ae2a=_0x5a45a4('0x2c8a')+_0x59e86e[_0x5a45a4('0x40')](0x0)[_0x5a45a4('0x1a66')]()+_0x59e86e['substr'](0x1),_0x485b7d=_0x59e86e),_0x5a45a4('0xa0a')!==_0x59e86e&&_0x5a45a4('0xe88')!==_0x59e86e&&(_0x5cb08c=_0x938dc6(_0x8818a7,_0x59e86e,_0x106dc,_0xa5b039,_0x36ae2a)),_0x4e6b4f=_0x938dc6(_0x8818a7,_0x59e86e,_0x106dc,_0xa5b039,_0x485b7d));if(_0x5cb08c||_0x4e6b4f)return{'$$willAnimate':!0x0,'end':function(){var _0x240439=_0x5a45a4;return _0x5c6df1?_0x5c6df1[_0x240439('0x20ae')]():(_0x4f4452(),(_0x5c6df1=new _0x4db899())[_0x240439('0x3890')](!0x0)),_0x5c6df1;},'start':function(){var _0x3c708c=_0x5a45a4;if(_0x5c6df1)return _0x5c6df1;var _0x9de9c1;_0x5c6df1=new _0x4db899();var _0x4e8cc2=[];return _0x5cb08c&&_0x4e8cc2[_0x3c708c('0x1a90')](function(_0x482b81){_0x9de9c1=_0x5cb08c(_0x482b81);}),_0x4e8cc2['length']?_0x4e8cc2[_0x3c708c('0x1a90')](function(_0x55a456){_0x5ee184(),_0x55a456(!0x0);}):_0x5ee184(),_0x4e6b4f&&_0x4e8cc2[_0x3c708c('0x1a90')](function(_0x743d98){_0x9de9c1=_0x4e6b4f(_0x743d98);}),_0x5c6df1[_0x3c708c('0x2195')]({'end':function(){_0x17afec();},'cancel':function(){_0x17afec(!0x0);}}),_0x4db899[_0x3c708c('0xa45')](_0x4e8cc2,_0xc592af),_0x5c6df1;function _0xc592af(_0x566357){var _0x4e97d5=_0x3c708c;_0x4f4452(),_0x5c6df1[_0x4e97d5('0x3890')](_0x566357);}function _0x17afec(_0x4b198b){_0x4840e7||((_0x9de9c1||_0xdb04aa)(_0x4b198b),_0xc592af(_0x4b198b));}}};function _0x5ee184(){_0x106dc['domOperation'](),_0x55950a(_0x8818a7,_0x106dc);}function _0x4f4452(){_0x4840e7=!0x0,_0x5ee184(),_0x1b7780(_0x8818a7,_0x106dc);}function _0x501592(_0x35b138,_0x4f69e7,_0x55f054,_0x556121,_0x458e99){var _0x30abb3=_0x5a45a4,_0x3a4d17;switch(_0x55f054){case'animate':_0x3a4d17=[_0x4f69e7,_0x556121[_0x30abb3('0x2f5')],_0x556121['to'],_0x458e99];break;case _0x30abb3('0x2a0d'):_0x3a4d17=[_0x4f69e7,_0x94ec63,_0x38d524,_0x458e99];break;case _0x30abb3('0x2dc8'):_0x3a4d17=[_0x4f69e7,_0x94ec63,_0x458e99];break;case _0x30abb3('0x3a0'):_0x3a4d17=[_0x4f69e7,_0x38d524,_0x458e99];break;default:_0x3a4d17=[_0x4f69e7,_0x458e99];}_0x3a4d17[_0x30abb3('0x1a90')](_0x556121);var _0x2f8b79=_0x35b138[_0x30abb3('0x177a')](_0x35b138,_0x3a4d17);if(_0x2f8b79){if(_0x3668e2(_0x2f8b79['start'])&&(_0x2f8b79=_0x2f8b79[_0x30abb3('0x21ef')]()),_0x2f8b79 instanceof _0x4db899)_0x2f8b79[_0x30abb3('0x3530')](_0x458e99);else{if(_0x3668e2(_0x2f8b79))return _0x2f8b79;}}return _0xdb04aa;}function _0x120831(_0x57587f,_0xbdd0d1,_0x8276fd,_0x225b04,_0x3299bc){var _0x280e96=[];return _0xcc47a(_0x225b04,function(_0x3ff118){var _0xb0f9f0=a2_0x4bfe,_0x33240e=_0x3ff118[_0x3299bc];_0x33240e&&_0x280e96[_0xb0f9f0('0x1a90')](function(){var _0x5daf00,_0x1d428c,_0x33d57e=!0x1,_0x56a7fc=function(_0x1a70dd){_0x33d57e||(_0x33d57e=!0x0,(_0x1d428c||_0xdb04aa)(_0x1a70dd),_0x5daf00['complete'](!_0x1a70dd));};return _0x5daf00=new _0x4db899({'end':function(){_0x56a7fc();},'cancel':function(){_0x56a7fc(!0x0);}}),_0x1d428c=_0x501592(_0x33240e,_0x57587f,_0xbdd0d1,_0x8276fd,function(_0x4dfa3){_0x56a7fc(!0x1===_0x4dfa3);}),_0x5daf00;});}),_0x280e96;}function _0x938dc6(_0x52be99,_0x234efb,_0x30b081,_0xfef943,_0x18a07f){var _0x97dc90=_0x5a45a4,_0x3e0586,_0x57c8c0,_0x5a905d=_0x120831(_0x52be99,_0x234efb,_0x30b081,_0xfef943,_0x18a07f);0x0===_0x5a905d[_0x97dc90('0x175a')]&&(_0x97dc90('0x18a4')===_0x18a07f?(_0x3e0586=_0x120831(_0x52be99,_0x97dc90('0x3a0'),_0x30b081,_0xfef943,_0x97dc90('0x1f5a')),_0x57c8c0=_0x120831(_0x52be99,'addClass',_0x30b081,_0xfef943,_0x97dc90('0x12de'))):'setClass'===_0x18a07f&&(_0x3e0586=_0x120831(_0x52be99,_0x97dc90('0x3a0'),_0x30b081,_0xfef943,_0x97dc90('0x3a0')),_0x57c8c0=_0x120831(_0x52be99,_0x97dc90('0x2dc8'),_0x30b081,_0xfef943,_0x97dc90('0x2dc8'))),_0x3e0586&&(_0x5a905d=_0x5a905d[_0x97dc90('0x12b4')](_0x3e0586)),_0x57c8c0&&(_0x5a905d=_0x5a905d[_0x97dc90('0x12b4')](_0x57c8c0)));if(0x0!==_0x5a905d[_0x97dc90('0x175a')])return function(_0x59c17e){var _0x4f4c37=_0x97dc90,_0x397b89=[];return _0x5a905d[_0x4f4c37('0x175a')]&&_0xcc47a(_0x5a905d,function(_0x3d5c8e){var _0x3882aa=_0x4f4c37;_0x397b89[_0x3882aa('0x1a90')](_0x3d5c8e());}),_0x397b89[_0x4f4c37('0x175a')]?_0x4db899[_0x4f4c37('0x130c')](_0x397b89,_0x59c17e):_0x59c17e(),function(_0x1cd52a){_0xcc47a(_0x397b89,function(_0x327483){var _0x1cf28b=a2_0x4bfe;_0x1cd52a?_0x327483[_0x1cf28b('0x31ce')]():_0x327483[_0x1cf28b('0x20ae')]();});};};}};function _0x4f5ff5(_0x553119){var _0x9f3546=a2_0x4bfe;_0x553119=_0x402d08(_0x553119)?_0x553119:_0x553119[_0x9f3546('0x23ee')]('\x20');for(var _0x60a5b6=[],_0x2dac89={},_0x380af7=0x0;_0x380af7<_0x553119[_0x9f3546('0x175a')];_0x380af7++){var _0x319a60=_0x553119[_0x380af7],_0x3bca47=_0x4deace[_0x9f3546('0x22af')][_0x319a60];_0x3bca47&&!_0x2dac89[_0x319a60]&&(_0x60a5b6[_0x9f3546('0x1a90')](_0x1a27e7['get'](_0x3bca47)),_0x2dac89[_0x319a60]=!0x0);}return _0x60a5b6;}}];}],_0x353647=['$$animationProvider',function(_0x2e3dd0){var _0x45fb53=_0x39f715;_0x2e3dd0[_0x45fb53('0x3632')][_0x45fb53('0x1a90')](_0x45fb53('0x1e4d')),this[_0x45fb53('0x2b72')]=['$$animateJs','$$AnimateRunner',function(_0x21a58d,_0xeb062b){return function(_0x2d37e9){var _0x3373c6=a2_0x4bfe;if(_0x2d37e9[_0x3373c6('0x2f5')]&&_0x2d37e9['to']){var _0x52ac85=_0x35444a(_0x2d37e9[_0x3373c6('0x2f5')]),_0x1d4e9a=_0x35444a(_0x2d37e9['to']);if(!_0x52ac85&&!_0x1d4e9a)return;return{'start':function(){var _0x119d53=_0x3373c6,_0x1fd2d2=[];_0x52ac85&&_0x1fd2d2[_0x119d53('0x1a90')](_0x52ac85[_0x119d53('0x21ef')]()),_0x1d4e9a&&_0x1fd2d2[_0x119d53('0x1a90')](_0x1d4e9a[_0x119d53('0x21ef')]()),_0xeb062b[_0x119d53('0x130c')](_0x1fd2d2,function(_0x2f3f2a){var _0x28381b=_0x119d53;_0x395107[_0x28381b('0x3890')](_0x2f3f2a);});var _0x395107=new _0xeb062b({'end':_0xd2bb5(),'cancel':_0xd2bb5()});return _0x395107;function _0xd2bb5(){return function(){_0xcc47a(_0x1fd2d2,function(_0x175a2b){var _0x32d3c7=a2_0x4bfe;_0x175a2b[_0x32d3c7('0x20ae')]();});};}}};}return _0x35444a(_0x2d37e9);};function _0x35444a(_0x38eaa0){var _0x5c7f9d=a2_0x4bfe,_0x4411e1=_0x38eaa0[_0x5c7f9d('0x88a')],_0x517cb2=_0x38eaa0[_0x5c7f9d('0x9e6')],_0x28683e=_0x38eaa0['options'],_0x3a39d3=_0x38eaa0['classes'];return _0x21a58d(_0x4411e1,_0x517cb2,_0x3a39d3,_0x28683e);}}];}],_0x512e50=_0x39f715('0x1d49'),_0x266263='$ngAnimatePin',_0x2b5d0e=[_0x39f715('0xe6b'),function(_0x5d6599){var _0x260594=_0x39f715,_0x14f0f1=this[_0x260594('0x1911')]={'skip':[],'cancel':[],'join':[]};function _0x4f98bc(_0x47a16e){var _0x262dcf=_0x260594;return{'addClass':_0x47a16e['addClass'],'removeClass':_0x47a16e[_0x262dcf('0x3a0')],'from':_0x47a16e['from'],'to':_0x47a16e['to']};}function _0x5589dd(_0x3fca19,_0x46701c){var _0x281c0a=_0x260594;if(_0x3fca19&&_0x46701c){var _0xc78c1f=function(_0x67cff6){if(!_0x67cff6)return null;var _0x384741=_0x67cff6['split']('\x20'),_0x101f02=Object['create'](null);return _0xcc47a(_0x384741,function(_0x30294f){_0x101f02[_0x30294f]=!0x0;}),_0x101f02;}(_0x46701c);return _0x3fca19[_0x281c0a('0x23ee')]('\x20')[_0x281c0a('0x2997')](function(_0x3ee34d){return _0xc78c1f[_0x3ee34d];});}}function _0x3dac58(_0x1dc84b,_0x1a5b44,_0x31cbc8){var _0x574c64=_0x260594;return _0x14f0f1[_0x1dc84b][_0x574c64('0x2997')](function(_0x5f1c85){return _0x5f1c85(_0x1a5b44,_0x31cbc8);});}function _0x59dad7(_0x5448ba,_0x2b560f){var _0x450a70=_0x260594,_0x47f947=(_0x5448ba[_0x450a70('0x2dc8')]||'')[_0x450a70('0x175a')]>0x0,_0x4eb454=(_0x5448ba['removeClass']||'')['length']>0x0;return _0x2b560f?_0x47f947&&_0x4eb454:_0x47f947||_0x4eb454;}_0x14f0f1['join'][_0x260594('0x1a90')](function(_0x326bd9,_0x28b5b4){var _0x1985fc=_0x260594;return!_0x326bd9[_0x1985fc('0x19fb')]&&_0x59dad7(_0x326bd9);}),_0x14f0f1[_0x260594('0x1ca3')]['push'](function(_0x602806,_0x2267d8){var _0xa1a729=_0x260594;return!_0x602806[_0xa1a729('0x19fb')]&&!_0x59dad7(_0x602806);}),_0x14f0f1[_0x260594('0x1ca3')][_0x260594('0x1a90')](function(_0xf64aba,_0x2d8944){var _0x277de9=_0x260594;return _0x277de9('0x376c')===_0x2d8944[_0x277de9('0x9e6')]&&_0xf64aba[_0x277de9('0x19fb')];}),_0x14f0f1[_0x260594('0x1ca3')][_0x260594('0x1a90')](function(_0x5576df,_0x4fdb70){var _0x101b10=_0x260594;return _0x4fdb70[_0x101b10('0x19fb')]&&0x2===_0x4fdb70[_0x101b10('0x380')]&&!_0x5576df[_0x101b10('0x19fb')];}),_0x14f0f1[_0x260594('0x31ce')][_0x260594('0x1a90')](function(_0x1f44fc,_0x4d7cf3){var _0x17e33e=_0x260594;return _0x4d7cf3[_0x17e33e('0x19fb')]&&_0x1f44fc['structural'];}),_0x14f0f1[_0x260594('0x31ce')][_0x260594('0x1a90')](function(_0x427e98,_0x4dc347){var _0x15ec3b=_0x260594;return 0x2===_0x4dc347[_0x15ec3b('0x380')]&&_0x427e98['structural'];}),_0x14f0f1[_0x260594('0x31ce')][_0x260594('0x1a90')](function(_0x1c8ae9,_0x10f6b6){var _0x7abf50=_0x260594;if(_0x10f6b6[_0x7abf50('0x19fb')])return!0x1;var _0x1fa53f=_0x1c8ae9['addClass'],_0x89cd73=_0x1c8ae9[_0x7abf50('0x3a0')],_0x39cdb5=_0x10f6b6[_0x7abf50('0x2dc8')],_0x2b7388=_0x10f6b6[_0x7abf50('0x3a0')];return!(_0x369200(_0x1fa53f)&&_0x369200(_0x89cd73)||_0x369200(_0x39cdb5)&&_0x369200(_0x2b7388))&&(_0x5589dd(_0x1fa53f,_0x2b7388)||_0x5589dd(_0x89cd73,_0x39cdb5));}),this[_0x260594('0x2b72')]=['$$rAF',_0x260594('0x709'),_0x260594('0x245c'),_0x260594('0x151'),_0x260594('0xc0e'),_0x260594('0x4c3'),_0x260594('0x49d'),_0x260594('0x89e'),'$$jqLite',_0x260594('0x792'),_0x260594('0x299c'),function(_0x531e07,_0x4bec2c,_0x2a4e50,_0xbbf4bc,_0x12f52e,_0x50cc52,_0xe82470,_0x2d86bc,_0x5d76be,_0x53dafb,_0x4efed2){var _0x43753f=_0x260594,_0x3dafa2=new _0x12f52e(),_0x9e962=new _0x12f52e(),_0x23044f=null;function _0x4c67a7(_0x492b75){var _0x1f73d4=a2_0x4bfe;_0x9e962[_0x1f73d4('0x51f')](_0x492b75['target']);}var _0x693bbc=_0x4bec2c[_0x43753f('0x1cb1')](function(){var _0x29ce8c=_0x43753f;return 0x0===_0x2d86bc[_0x29ce8c('0x116')];},function(_0x3101d3){var _0x3dde0f=_0x43753f;_0x3101d3&&(_0x693bbc(),_0x4bec2c[_0x3dde0f('0x170b')](function(){var _0x1bfa35=_0x3dde0f;_0x4bec2c[_0x1bfa35('0x170b')](function(){null===_0x23044f&&(_0x23044f=!0x0);});}));}),_0x43f0ee=Object[_0x43753f('0x126')](null),_0x3c75ef=_0x5d6599[_0x43753f('0x934')](),_0x5cb722=_0x5d6599[_0x43753f('0x2c2a')](),_0x408d17=function(){return!0x0;},_0x5c566c=_0x3c75ef||_0x408d17,_0x8f6751=_0x5cb722?function(_0x107549,_0x4327a5){var _0x54dc79=_0x43753f,_0x42ba30=[_0x107549[_0x54dc79('0x10ba')]('class'),_0x4327a5['addClass'],_0x4327a5[_0x54dc79('0x3a0')]]['join']('\x20');return _0x5cb722['test'](_0x42ba30);}:_0x408d17,_0x5ad6fc=_0x3d43c0(_0x5d76be);function _0x3ea143(_0x2c1fd1,_0x3e287c){return _0x396433(_0x2c1fd1,_0x3e287c,{});}var _0x477f7f=_0x5e4e58[_0x43753f('0xdb5')][_0x43753f('0x5a')][_0x43753f('0x3cf')]||function(_0x4f92d2){var _0x59ae73=_0x43753f;return this===_0x4f92d2||!!(0x10&this[_0x59ae73('0x815')](_0x4f92d2));};function _0x4a4a3b(_0x28069a,_0x20450c,_0x5867b9){var _0x39eb50=_0x43753f,_0x37de5d=_0x44e968(_0x20450c);return _0x28069a[_0x39eb50('0x3127')](function(_0x4c01ac){var _0xa167b8=_0x39eb50;return!(_0x4c01ac[_0xa167b8('0x2503')]===_0x37de5d&&(!_0x5867b9||_0x4c01ac[_0xa167b8('0x1aa1')]===_0x5867b9));});}function _0x8300b2(_0x207260,_0x39f080){var _0x30def2=_0x43753f;_0x30def2('0x265b')!==_0x207260||_0x39f080['parentNode']||_0x4de5e3['off'](_0x39f080);}var _0x4de5e3={'on':function(_0x3a6153,_0x4ca2da,_0x3fe008){var _0x40cd1d=_0x43753f,_0x154782=_0x44e968(_0x4ca2da);_0x43f0ee[_0x3a6153]=_0x43f0ee[_0x3a6153]||[],_0x43f0ee[_0x3a6153][_0x40cd1d('0x1a90')]({'node':_0x154782,'callback':_0x3fe008}),_0x463531(_0x4ca2da)['on']('$destroy',function(){var _0x349dd3=_0x40cd1d;_0x3dafa2[_0x349dd3('0x1861')](_0x154782)||_0x4de5e3[_0x349dd3('0x1202')](_0x3a6153,_0x4ca2da,_0x3fe008);});},'off':function(_0x288205,_0x1de025,_0x2bfc33){var _0x55cfac=_0x43753f;if(0x1!==arguments[_0x55cfac('0x175a')]||_0x16c3a3(arguments[0x0])){var _0xee21d6=_0x43f0ee[_0x288205];_0xee21d6&&(_0x43f0ee[_0x288205]=0x1===arguments[_0x55cfac('0x175a')]?null:_0x4a4a3b(_0xee21d6,_0x1de025,_0x2bfc33));}else for(var _0x5a8279 in(_0x1de025=arguments[0x0],_0x43f0ee))_0x43f0ee[_0x5a8279]=_0x4a4a3b(_0x43f0ee[_0x5a8279],_0x1de025);},'pin':function(_0x48411c,_0xcd9c1c){var _0x47b18d=_0x43753f;_0x4d13ee(_0x18279e(_0x48411c),_0x47b18d('0x88a'),'not\x20an\x20element'),_0x4d13ee(_0x18279e(_0xcd9c1c),_0x47b18d('0x11dd'),_0x47b18d('0x30cf')),_0x48411c[_0x47b18d('0xcee')](_0x266263,_0xcd9c1c);},'push':function(_0x1dfed5,_0x4dc9ee,_0x286201,_0x3a49f7){var _0x510a74=_0x43753f;return(_0x286201=_0x286201||{})[_0x510a74('0x23e')]=_0x3a49f7,function(_0x26ecc6,_0x3409da,_0x24e587){var _0x2051cd=_0x510a74,_0x93ef14=_0x2e5cb1(_0x24e587),_0x127954=_0x3defed(_0x26ecc6),_0x5be074=_0x2992a6(_0x127954),_0x56528d=_0x5be074&&_0x5be074['parentNode'];_0x93ef14=_0x574c3d(_0x93ef14);var _0x472b7c=new _0xe82470(),_0x1130e4=(_0x14472c=!0x1,function(_0x183186){var _0x4dc63c=a2_0x4bfe;_0x14472c?_0x183186():_0x4bec2c[_0x4dc63c('0x170b')](function(){_0x14472c=!0x0,_0x183186();});}),_0x14472c;_0x402d08(_0x93ef14['addClass'])&&(_0x93ef14['addClass']=_0x93ef14[_0x2051cd('0x2dc8')][_0x2051cd('0x6a8')]('\x20')),_0x93ef14[_0x2051cd('0x2dc8')]&&!_0x16c3a3(_0x93ef14[_0x2051cd('0x2dc8')])&&(_0x93ef14[_0x2051cd('0x2dc8')]=null),_0x402d08(_0x93ef14[_0x2051cd('0x3a0')])&&(_0x93ef14[_0x2051cd('0x3a0')]=_0x93ef14[_0x2051cd('0x3a0')][_0x2051cd('0x6a8')]('\x20')),_0x93ef14['removeClass']&&!_0x16c3a3(_0x93ef14[_0x2051cd('0x3a0')])&&(_0x93ef14[_0x2051cd('0x3a0')]=null),_0x93ef14[_0x2051cd('0x2f5')]&&!_0x41cea5(_0x93ef14['from'])&&(_0x93ef14[_0x2051cd('0x2f5')]=null),_0x93ef14['to']&&!_0x41cea5(_0x93ef14['to'])&&(_0x93ef14['to']=null);if(!(_0x23044f&&_0x5be074&&_0x5c566c(_0x5be074,_0x3409da,_0x24e587)&&_0x8f6751(_0x5be074,_0x93ef14)))return _0x57a072(),_0x472b7c;var _0x52e2b7=[_0x2051cd('0xa0a'),_0x2051cd('0xe88'),_0x2051cd('0x376c')][_0x2051cd('0xe1c')](_0x3409da)>=0x0,_0x5d074a=_0x4efed2(),_0x5964f7=_0x5d074a||_0x9e962[_0x2051cd('0x1861')](_0x5be074),_0x1d5a48=!_0x5964f7&&_0x3dafa2[_0x2051cd('0x1861')](_0x5be074)||{},_0x3141ad=!!_0x1d5a48[_0x2051cd('0x380')];_0x5964f7||_0x3141ad&&0x1===_0x1d5a48[_0x2051cd('0x380')]||(_0x5964f7=!function(_0x25d3ba,_0x46f6e5,_0x42b725){var _0x25bb01=_0x2051cd,_0x742b78,_0x14afec=_0xbbf4bc[0x0][_0x25bb01('0x3742')],_0x5743ab=_0x2992a6(_0x2a4e50),_0x1cc6f1=_0x25d3ba===_0x14afec||_0x25bb01('0x2aed')===_0x25d3ba[_0x25bb01('0x10c3')],_0xbc5c4f=_0x25d3ba===_0x5743ab,_0x32c139=!0x1,_0x115b3f=_0x9e962[_0x25bb01('0x1861')](_0x25d3ba),_0x345952=_0x463531[_0x25bb01('0xcee')](_0x25d3ba,_0x266263);_0x345952&&(_0x46f6e5=_0x2992a6(_0x345952));for(;_0x46f6e5&&(_0xbc5c4f||(_0xbc5c4f=_0x46f6e5===_0x5743ab),0x1===_0x46f6e5['nodeType']);){var _0x491000=_0x3dafa2[_0x25bb01('0x1861')](_0x46f6e5)||{};if(!_0x32c139){var _0x594cc1=_0x9e962[_0x25bb01('0x1861')](_0x46f6e5);if(!0x0===_0x594cc1&&!0x1!==_0x115b3f){_0x115b3f=!0x0;break;}!0x1===_0x594cc1&&(_0x115b3f=!0x1),_0x32c139=_0x491000[_0x25bb01('0x19fb')];}if(_0x369200(_0x742b78)||!0x0===_0x742b78){var _0x2f9c69=_0x463531[_0x25bb01('0xcee')](_0x46f6e5,_0x511dff);_0x525335(_0x2f9c69)&&(_0x742b78=_0x2f9c69);}if(_0x32c139&&!0x1===_0x742b78)break;if(_0x1cc6f1||(_0x1cc6f1=_0x46f6e5===_0x14afec),_0x1cc6f1&&_0xbc5c4f)break;_0x46f6e5=_0xbc5c4f||!(_0x345952=_0x463531[_0x25bb01('0xcee')](_0x46f6e5,_0x266263))?_0x46f6e5[_0x25bb01('0x1378')]:_0x2992a6(_0x345952);}return(!_0x32c139||_0x742b78)&&!0x0!==_0x115b3f&&_0xbc5c4f&&_0x1cc6f1;}(_0x5be074,_0x56528d));if(_0x5964f7)return _0x5d074a&&_0x32dded(_0x472b7c,_0x3409da,_0x2051cd('0x21ef'),_0x4f98bc(_0x93ef14)),_0x57a072(),_0x5d074a&&_0x32dded(_0x472b7c,_0x3409da,_0x2051cd('0x265b'),_0x4f98bc(_0x93ef14)),_0x472b7c;_0x52e2b7&&function(_0x459902){var _0x245333=_0x2051cd,_0x3c78d4=_0x459902['querySelectorAll'](_0x245333('0x7b5'));_0xcc47a(_0x3c78d4,function(_0x2e86e8){var _0x48da30=_0x245333,_0x37ef8e=parseInt(_0x2e86e8['getAttribute'](_0x512e50),0xa),_0x4f5b32=_0x3dafa2[_0x48da30('0x1861')](_0x2e86e8);if(_0x4f5b32)switch(_0x37ef8e){case 0x2:_0x4f5b32[_0x48da30('0x18d7')]['end']();case 0x1:_0x3dafa2[_0x48da30('0x51f')](_0x2e86e8);}});}(_0x5be074);var _0x5ea3bc={'structural':_0x52e2b7,'element':_0x127954,'event':_0x3409da,'addClass':_0x93ef14[_0x2051cd('0x2dc8')],'removeClass':_0x93ef14[_0x2051cd('0x3a0')],'close':_0x57a072,'options':_0x93ef14,'runner':_0x472b7c};if(_0x3141ad){if(_0x3dac58(_0x2051cd('0x1ca3'),_0x5ea3bc,_0x1d5a48))return 0x2===_0x1d5a48[_0x2051cd('0x380')]?(_0x57a072(),_0x472b7c):(_0x396433(_0x127954,_0x1d5a48,_0x5ea3bc),_0x1d5a48[_0x2051cd('0x18d7')]);if(_0x3dac58(_0x2051cd('0x31ce'),_0x5ea3bc,_0x1d5a48)){if(0x2===_0x1d5a48['state'])_0x1d5a48['runner']['end']();else{if(!_0x1d5a48['structural'])return _0x396433(_0x127954,_0x1d5a48,_0x5ea3bc),_0x1d5a48[_0x2051cd('0x18d7')];_0x1d5a48[_0x2051cd('0x265b')]();}}else{if(_0x3dac58(_0x2051cd('0x6a8'),_0x5ea3bc,_0x1d5a48)){if(0x2!==_0x1d5a48[_0x2051cd('0x380')])return function(_0x1c4908,_0x146af0,_0x19e24c,_0x4c1d33){var _0xc119f1=_0x2051cd,_0x55eba8='';_0x19e24c&&(_0x55eba8=_0x15c068(_0x19e24c,_0xc119f1('0x1fb0'),!0x0)),_0x4c1d33[_0xc119f1('0x2dc8')]&&(_0x55eba8=_0x301e7a(_0x55eba8,_0x15c068(_0x4c1d33[_0xc119f1('0x2dc8')],_0x2c001d))),_0x4c1d33[_0xc119f1('0x3a0')]&&(_0x55eba8=_0x301e7a(_0x55eba8,_0x15c068(_0x4c1d33['removeClass'],_0x27fa84))),_0x55eba8['length']&&(_0x4c1d33['preparationClasses']=_0x55eba8,_0x146af0[_0xc119f1('0x2dc8')](_0x55eba8));}(0x0,_0x127954,_0x52e2b7?_0x3409da:null,_0x93ef14),_0x3409da=_0x5ea3bc[_0x2051cd('0x9e6')]=_0x1d5a48['event'],_0x93ef14=_0x396433(_0x127954,_0x1d5a48,_0x5ea3bc),_0x1d5a48[_0x2051cd('0x18d7')];_0x3ea143(_0x127954,_0x5ea3bc);}}}else _0x3ea143(_0x127954,_0x5ea3bc);var _0x27f38c=_0x5ea3bc['structural'];_0x27f38c||(_0x27f38c='animate'===_0x5ea3bc[_0x2051cd('0x9e6')]&&Object['keys'](_0x5ea3bc['options']['to']||{})['length']>0x0||_0x59dad7(_0x5ea3bc));if(!_0x27f38c)return _0x57a072(),_0x5c340c(_0x5be074),_0x472b7c;var _0xadabe0=(_0x1d5a48[_0x2051cd('0xe3')]||0x0)+0x1;return _0x5ea3bc['counter']=_0xadabe0,_0x1ac6e1(_0x5be074,0x1,_0x5ea3bc),_0x4bec2c[_0x2051cd('0x170b')](function(){var _0x4a999e=_0x2051cd;_0x127954=_0x3defed(_0x26ecc6);var _0x2d2a1c=_0x3dafa2[_0x4a999e('0x1861')](_0x5be074),_0x500ab2=!_0x2d2a1c;_0x2d2a1c=_0x2d2a1c||{};var _0x7566e7=(_0x127954['parent']()||[])[_0x4a999e('0x175a')]>0x0&&('animate'===_0x2d2a1c[_0x4a999e('0x9e6')]||_0x2d2a1c['structural']||_0x59dad7(_0x2d2a1c));if(_0x500ab2||_0x2d2a1c[_0x4a999e('0xe3')]!==_0xadabe0||!_0x7566e7)return _0x500ab2&&(_0x5ad6fc(_0x127954,_0x93ef14),_0x1b7780(_0x127954,_0x93ef14)),(_0x500ab2||_0x52e2b7&&_0x2d2a1c[_0x4a999e('0x9e6')]!==_0x3409da)&&(_0x93ef14['domOperation'](),_0x472b7c[_0x4a999e('0x20ae')]()),void(_0x7566e7||_0x5c340c(_0x5be074));_0x3409da=!_0x2d2a1c[_0x4a999e('0x19fb')]&&_0x59dad7(_0x2d2a1c,!0x0)?_0x4a999e('0x2a0d'):_0x2d2a1c[_0x4a999e('0x9e6')],_0x1ac6e1(_0x5be074,0x2);var _0xd4af2=_0x50cc52(_0x127954,_0x3409da,_0x2d2a1c[_0x4a999e('0xded')]);_0x472b7c[_0x4a999e('0x2195')](_0xd4af2),_0x32dded(_0x472b7c,_0x3409da,'start',_0x4f98bc(_0x93ef14)),_0xd4af2['done'](function(_0x4ff787){var _0x2cc3cd=_0x4a999e;_0x57a072(!_0x4ff787);var _0x153b1b=_0x3dafa2[_0x2cc3cd('0x1861')](_0x5be074);_0x153b1b&&_0x153b1b['counter']===_0xadabe0&&_0x5c340c(_0x5be074),_0x32dded(_0x472b7c,_0x3409da,_0x2cc3cd('0x265b'),_0x4f98bc(_0x93ef14));});}),_0x472b7c;function _0x32dded(_0x3bcd3d,_0x51a3d0,_0xa1668b,_0x1d2b05){var _0x3a4539=_0x2051cd;_0x1130e4(function(){var _0xa7128a=function(_0x3627b9,_0x294a22,_0x66d83d){var _0x49c9a0=[],_0x1e0b17=_0x43f0ee[_0x66d83d];return _0x1e0b17&&_0xcc47a(_0x1e0b17,function(_0x2ad3e2){var _0x52e9c2=a2_0x4bfe;(_0x477f7f[_0x52e9c2('0x2449')](_0x2ad3e2[_0x52e9c2('0x2503')],_0x294a22)||_0x52e9c2('0x376c')===_0x66d83d&&_0x477f7f[_0x52e9c2('0x2449')](_0x2ad3e2['node'],_0x3627b9))&&_0x49c9a0[_0x52e9c2('0x1a90')](_0x2ad3e2[_0x52e9c2('0x1aa1')]);}),_0x49c9a0;}(_0x56528d,_0x5be074,_0x51a3d0);_0xa7128a['length']?_0x531e07(function(){_0xcc47a(_0xa7128a,function(_0x2ca564){_0x2ca564(_0x127954,_0xa1668b,_0x1d2b05);}),_0x8300b2(_0xa1668b,_0x5be074);}):_0x8300b2(_0xa1668b,_0x5be074);}),_0x3bcd3d[_0x3a4539('0x1a51')](_0x51a3d0,_0xa1668b,_0x1d2b05);}function _0x57a072(_0x38a911){var _0x93c1eb=_0x2051cd;!function(_0x362f27,_0x3bc817){var _0x22b833=a2_0x4bfe;_0x3bc817[_0x22b833('0x2d8')]&&(_0x362f27[_0x22b833('0x3a0')](_0x3bc817[_0x22b833('0x2d8')]),_0x3bc817[_0x22b833('0x2d8')]=null),_0x3bc817[_0x22b833('0x23c8')]&&(_0x362f27[_0x22b833('0x3a0')](_0x3bc817[_0x22b833('0x23c8')]),_0x3bc817[_0x22b833('0x23c8')]=null);}(_0x127954,_0x93ef14),_0x5ad6fc(_0x127954,_0x93ef14),_0x1b7780(_0x127954,_0x93ef14),_0x93ef14[_0x93c1eb('0x23e')](),_0x472b7c[_0x93c1eb('0x3890')](!_0x38a911);}}(_0x1dfed5,_0x4dc9ee,_0x286201);},'enabled':function(_0x169ad6,_0x5b804e){var _0xeb6fc7=_0x43753f,_0x597985=arguments[_0xeb6fc7('0x175a')];if(0x0===_0x597985)_0x5b804e=!!_0x23044f;else{var _0x306034=_0x18279e(_0x169ad6);if(_0x306034){var _0x3d7902=_0x2992a6(_0x169ad6);0x1===_0x597985?_0x5b804e=!_0x9e962[_0xeb6fc7('0x1861')](_0x3d7902):(_0x9e962[_0xeb6fc7('0x728')](_0x3d7902)||_0x463531(_0x169ad6)['on']('$destroy',_0x4c67a7),_0x9e962[_0xeb6fc7('0x159a')](_0x3d7902,!_0x5b804e));}else _0x5b804e=_0x23044f=!!_0x169ad6;}return _0x5b804e;}};return _0x4de5e3;function _0x5c340c(_0x340c96){var _0x2e85b9=_0x43753f;_0x340c96[_0x2e85b9('0x1426')](_0x512e50),_0x3dafa2[_0x2e85b9('0x51f')](_0x340c96);}function _0x1ac6e1(_0x34c657,_0x294660,_0x71201b){var _0x306a70=_0x43753f;(_0x71201b=_0x71201b||{})[_0x306a70('0x380')]=_0x294660,_0x34c657[_0x306a70('0xb10')](_0x512e50,_0x294660);var _0x2a40f8=_0x3dafa2[_0x306a70('0x1861')](_0x34c657),_0x40a43a=_0x2a40f8?_0x547450(_0x2a40f8,_0x71201b):_0x71201b;_0x3dafa2['set'](_0x34c657,_0x40a43a);}}];}],_0x295106=[_0x39f715('0xe6b'),function(_0x5df833){var _0x3eb2e8=_0x39f715,_0x5991e=_0x3eb2e8('0xcd7'),_0x22f640=this[_0x3eb2e8('0x3632')]=[],_0x455c37=_0x3eb2e8('0xe8c'),_0x3e8747=_0x3eb2e8('0xca4');function _0x212382(_0x5bc70e){var _0x47a465=_0x3eb2e8;return _0x5bc70e[_0x47a465('0xcee')](_0x455c37);}this[_0x3eb2e8('0x2b72')]=['$$jqLite',_0x3eb2e8('0x709'),_0x3eb2e8('0x345b'),_0x3eb2e8('0x49d'),_0x3eb2e8('0xc0e'),_0x3eb2e8('0x21b6'),'$$animateCache',function(_0x5e3fd0,_0x10cc54,_0x4d58b2,_0x52391a,_0x17c6ea,_0x25d55b,_0x469cb7){var _0x196ef0=[],_0x4413db=_0x3d43c0(_0x5e3fd0);return function(_0x1e08cb,_0x5463cd,_0x35215e){var _0x4145af=a2_0x4bfe;_0x35215e=_0x574c3d(_0x35215e);var _0x5d9b03=[_0x4145af('0xa0a'),_0x4145af('0xe88'),_0x4145af('0x376c')][_0x4145af('0xe1c')](_0x5463cd)>=0x0,_0x58829c=new _0x52391a({'end':function(){_0x4f237e();},'cancel':function(){_0x4f237e(!0x0);}});if(!_0x22f640[_0x4145af('0x175a')])return _0x4f237e(),_0x58829c;var _0x465823=_0x47426d(_0x1e08cb[_0x4145af('0x1e52')]('class'),_0x47426d(_0x35215e[_0x4145af('0x2dc8')],_0x35215e[_0x4145af('0x3a0')])),_0x1db8fb=_0x35215e[_0x4145af('0x3224')];return _0x1db8fb&&(_0x465823+='\x20'+_0x1db8fb,_0x35215e[_0x4145af('0x3224')]=null),_0x5d9b03&&_0x1e08cb[_0x4145af('0xcee')](_0x3e8747,'ng-'+_0x5463cd+_0x4145af('0x47a')),function(_0x1da6c5,_0x3f2fb2){_0x1da6c5['data'](_0x455c37,_0x3f2fb2);}(_0x1e08cb,_0x58829c),_0x196ef0[_0x4145af('0x1a90')]({'element':_0x1e08cb,'classes':_0x465823,'event':_0x5463cd,'structural':_0x5d9b03,'options':_0x35215e,'beforeStart':function(){var _0x3dbe18=_0x4145af;_0x1db8fb=(_0x1db8fb?_0x1db8fb+'\x20':'')+_0xa84fb1,_0x5e3fd0['addClass'](_0x1e08cb,_0x1db8fb);var _0x5b7336=_0x1e08cb['data'](_0x3e8747);_0x5b7336&&(_0x5e3fd0[_0x3dbe18('0x3a0')](_0x1e08cb,_0x5b7336),_0x5b7336=null);},'close':_0x4f237e}),_0x1e08cb['on'](_0x4145af('0x2f34'),_0x5c383a),_0x196ef0[_0x4145af('0x175a')]>0x1||_0x10cc54['$$postDigest'](function(){var _0x68bd8a=_0x4145af,_0x97b613=[];_0xcc47a(_0x196ef0,function(_0x3be42a){var _0x300811=a2_0x4bfe;_0x212382(_0x3be42a[_0x300811('0x88a')])?_0x97b613[_0x300811('0x1a90')](_0x3be42a):_0x3be42a[_0x300811('0x265b')]();}),_0x196ef0['length']=0x0;var _0x4c7d55=function(_0xd11194){var _0x16e31f=[],_0x1ff722={};_0xcc47a(_0xd11194,function(_0x493053,_0x2c3be5){var _0x39cbcf=a2_0x4bfe,_0x5c75a3=_0x2992a6(_0x493053[_0x39cbcf('0x88a')]),_0x56ca82=_0x493053[_0x39cbcf('0x9e6')],_0x35d69f=[_0x39cbcf('0xa0a'),_0x39cbcf('0xe88')]['indexOf'](_0x56ca82)>=0x0,_0x2879e0=_0x493053['structural']?function(_0x7a0be7){var _0x440994=_0x39cbcf,_0x33a1c3=_0x440994('0x31e2'),_0x5d8512=_0x7a0be7[_0x440994('0x2052')](_0x5991e)?[_0x7a0be7]:_0x7a0be7[_0x440994('0x17de')](_0x33a1c3),_0x55b779=[];return _0xcc47a(_0x5d8512,function(_0x3a8456){var _0x3512b4=_0x440994,_0x331bd4=_0x3a8456[_0x3512b4('0x10ba')](_0x5991e);_0x331bd4&&_0x331bd4[_0x3512b4('0x175a')]&&_0x55b779['push'](_0x3a8456);}),_0x55b779;}(_0x5c75a3):[];if(_0x2879e0[_0x39cbcf('0x175a')]){var _0x4bb075=_0x35d69f?'to':'from';_0xcc47a(_0x2879e0,function(_0x3fb955){var _0x4fb08d=_0x39cbcf,_0x5f0b65=_0x3fb955[_0x4fb08d('0x10ba')](_0x5991e);_0x1ff722[_0x5f0b65]=_0x1ff722[_0x5f0b65]||{},_0x1ff722[_0x5f0b65][_0x4bb075]={'animationID':_0x2c3be5,'element':_0x463531(_0x3fb955)};});}else _0x16e31f[_0x39cbcf('0x1a90')](_0x493053);});var _0x85411c={},_0x5c7859={};return _0xcc47a(_0x1ff722,function(_0x18c9a2,_0x414304){var _0x333036=a2_0x4bfe,_0x53cbc8=_0x18c9a2[_0x333036('0x2f5')],_0x2130ff=_0x18c9a2['to'];if(_0x53cbc8&&_0x2130ff){var _0x5f074b=_0xd11194[_0x53cbc8['animationID']],_0x401de4=_0xd11194[_0x2130ff[_0x333036('0xf6b')]],_0x524451=_0x53cbc8[_0x333036('0xf6b')][_0x333036('0x6ef')]();if(!_0x5c7859[_0x524451]){var _0x156ce8=_0x5c7859[_0x524451]={'structural':!0x0,'beforeStart':function(){var _0x1d30e0=_0x333036;_0x5f074b[_0x1d30e0('0x2a3f')](),_0x401de4[_0x1d30e0('0x2a3f')]();},'close':function(){var _0x1f8e85=_0x333036;_0x5f074b[_0x1f8e85('0x265b')](),_0x401de4[_0x1f8e85('0x265b')]();},'classes':_0x50aa98(_0x5f074b['classes'],_0x401de4[_0x333036('0x2dfa')]),'from':_0x5f074b,'to':_0x401de4,'anchors':[]};_0x156ce8['classes'][_0x333036('0x175a')]?_0x16e31f[_0x333036('0x1a90')](_0x156ce8):(_0x16e31f[_0x333036('0x1a90')](_0x5f074b),_0x16e31f[_0x333036('0x1a90')](_0x401de4));}_0x5c7859[_0x524451][_0x333036('0x23b0')][_0x333036('0x1a90')]({'out':_0x53cbc8[_0x333036('0x88a')],'in':_0x2130ff[_0x333036('0x88a')]});}else{var _0x6508ce=_0x53cbc8?_0x53cbc8[_0x333036('0xf6b')]:_0x2130ff[_0x333036('0xf6b')],_0x52f443=_0x6508ce[_0x333036('0x6ef')]();_0x85411c[_0x52f443]||(_0x85411c[_0x52f443]=!0x0,_0x16e31f[_0x333036('0x1a90')](_0xd11194[_0x6508ce]));}}),_0x16e31f;}(_0x97b613),_0x365b6d=[];_0xcc47a(_0x4c7d55,function(_0x21d1ae){var _0x47a758=a2_0x4bfe,_0x388b59=_0x21d1ae[_0x47a758('0x2f5')]?_0x21d1ae[_0x47a758('0x2f5')][_0x47a758('0x88a')]:_0x21d1ae['element'],_0x1eb957=_0x35215e['addClass'];_0x1eb957=(_0x1eb957?_0x1eb957+'\x20':'')+_0xa84fb1;var _0x3a69f6=_0x469cb7[_0x47a758('0x3295')](_0x388b59[0x0],_0x21d1ae[_0x47a758('0x9e6')],_0x1eb957,_0x35215e['removeClass']);_0x365b6d['push']({'element':_0x388b59,'domNode':_0x2992a6(_0x388b59),'fn':function(){var _0x5c72f9=_0x47a758,_0xdd1480,_0x109417=_0x21d1ae['close'];if(_0x469cb7[_0x5c72f9('0x2674')](_0x3a69f6))_0x109417();else{if(_0x21d1ae[_0x5c72f9('0x2a3f')](),_0x212382(_0x21d1ae[_0x5c72f9('0x23b0')]?_0x21d1ae[_0x5c72f9('0x2f5')][_0x5c72f9('0x88a')]||_0x21d1ae['to']['element']:_0x21d1ae[_0x5c72f9('0x88a')])){var _0x239f03=function(_0x52db8c){var _0x43953e=_0x5c72f9;for(var _0x4246f4=_0x22f640[_0x43953e('0x175a')]-0x1;_0x4246f4>=0x0;_0x4246f4--){var _0x59cc28=_0x22f640[_0x4246f4],_0x1d3d34=_0x4d58b2[_0x43953e('0x1861')](_0x59cc28)(_0x52db8c);if(_0x1d3d34)return _0x1d3d34;}}(_0x21d1ae);_0x239f03&&(_0xdd1480=_0x239f03[_0x5c72f9('0x21ef')]);}if(_0xdd1480){var _0x2d06d2=_0xdd1480();_0x2d06d2[_0x5c72f9('0x3530')](function(_0x4d71f5){_0x109417(!_0x4d71f5);}),function(_0x28c7ec,_0x2899e1){var _0x3ee86f=_0x5c72f9;_0x28c7ec[_0x3ee86f('0x2f5')]&&_0x28c7ec['to']?(_0x1fe5a3(_0x28c7ec['from']['element']),_0x1fe5a3(_0x28c7ec['to'][_0x3ee86f('0x88a')])):_0x1fe5a3(_0x28c7ec[_0x3ee86f('0x88a')]);function _0x1fe5a3(_0x1f462e){var _0xd81437=_0x3ee86f,_0x20530f=_0x212382(_0x1f462e);_0x20530f&&_0x20530f[_0xd81437('0x2195')](_0x2899e1);}}(_0x21d1ae,_0x2d06d2);}else _0x109417();}}});});for(var _0x4f531d=function(_0x2bd47b){var _0x3f7177=a2_0x4bfe,_0x3c3548,_0x56201f={'children':[]},_0x2c30ba=new _0x17c6ea();for(_0x3c3548=0x0;_0x3c3548<_0x2bd47b[_0x3f7177('0x175a')];_0x3c3548++){var _0x1575d8=_0x2bd47b[_0x3c3548];_0x2c30ba['set'](_0x1575d8[_0x3f7177('0x3336')],_0x2bd47b[_0x3c3548]={'domNode':_0x1575d8[_0x3f7177('0x3336')],'element':_0x1575d8['element'],'fn':_0x1575d8['fn'],'children':[]});}for(_0x3c3548=0x0;_0x3c3548<_0x2bd47b[_0x3f7177('0x175a')];_0x3c3548++)_0x1fd9e7(_0x2bd47b[_0x3c3548]);return function(_0x2dfc51){var _0x1856fa=_0x3f7177,_0x4eb8ee,_0x54dfca=[],_0x4a716c=[];for(_0x4eb8ee=0x0;_0x4eb8ee<_0x2dfc51[_0x1856fa('0xfc0')]['length'];_0x4eb8ee++)_0x4a716c[_0x1856fa('0x1a90')](_0x2dfc51['children'][_0x4eb8ee]);var _0x395e5e=_0x4a716c[_0x1856fa('0x175a')],_0x1324e6=0x0,_0xa83d89=[];for(_0x4eb8ee=0x0;_0x4eb8ee<_0x4a716c[_0x1856fa('0x175a')];_0x4eb8ee++){var _0x40f768=_0x4a716c[_0x4eb8ee];_0x395e5e<=0x0&&(_0x395e5e=_0x1324e6,_0x1324e6=0x0,_0x54dfca[_0x1856fa('0x1a90')](_0xa83d89),_0xa83d89=[]),_0xa83d89[_0x1856fa('0x1a90')](_0x40f768),_0x40f768[_0x1856fa('0xfc0')][_0x1856fa('0x247d')](function(_0x38916d){_0x1324e6++,_0x4a716c['push'](_0x38916d);}),_0x395e5e--;}return _0xa83d89[_0x1856fa('0x175a')]&&_0x54dfca[_0x1856fa('0x1a90')](_0xa83d89),_0x54dfca;}(_0x56201f);function _0x1fd9e7(_0x2c3e90){var _0x3ef06f=_0x3f7177;if(_0x2c3e90[_0x3ef06f('0x1e3a')])return _0x2c3e90;_0x2c3e90[_0x3ef06f('0x1e3a')]=!0x0;var _0x3d8d44,_0x444cf0=_0x2c3e90[_0x3ef06f('0x3336')],_0x3008d1=_0x444cf0[_0x3ef06f('0x1378')];for(_0x2c30ba[_0x3ef06f('0x159a')](_0x444cf0,_0x2c3e90);_0x3008d1;){if(_0x3d8d44=_0x2c30ba[_0x3ef06f('0x1861')](_0x3008d1)){_0x3d8d44[_0x3ef06f('0x1e3a')]||(_0x3d8d44=_0x1fd9e7(_0x3d8d44));break;}_0x3008d1=_0x3008d1[_0x3ef06f('0x1378')];}return(_0x3d8d44||_0x56201f)[_0x3ef06f('0xfc0')][_0x3ef06f('0x1a90')](_0x2c3e90),_0x2c3e90;}}(_0x365b6d),_0x1115f3=0x0;_0x1115f3<_0x4f531d['length'];_0x1115f3++)for(var _0x5872b1=_0x4f531d[_0x1115f3],_0x54007d=0x0;_0x54007d<_0x5872b1[_0x68bd8a('0x175a')];_0x54007d++){var _0x5717b4=_0x5872b1[_0x54007d],_0x486991=_0x5717b4['element'];if(_0x4f531d[_0x1115f3][_0x54007d]=_0x5717b4['fn'],0x0!==_0x1115f3){var _0x2cd47a=_0x486991['data'](_0x3e8747);_0x2cd47a&&_0x5e3fd0[_0x68bd8a('0x2dc8')](_0x486991,_0x2cd47a);}else _0x486991['removeData'](_0x3e8747);}_0x25d55b(_0x4f531d);}),_0x58829c;function _0x50aa98(_0x42e257,_0x331edd){var _0x246e48=_0x4145af;_0x42e257=_0x42e257['split']('\x20'),_0x331edd=_0x331edd[_0x246e48('0x23ee')]('\x20');for(var _0x2fffd6=[],_0x2b924e=0x0;_0x2b924e<_0x42e257[_0x246e48('0x175a')];_0x2b924e++){var _0x55dcce=_0x42e257[_0x2b924e];if(_0x246e48('0x1fb0')!==_0x55dcce[_0x246e48('0x92')](0x0,0x3))for(var _0x86cc10=0x0;_0x86cc10<_0x331edd[_0x246e48('0x175a')];_0x86cc10++)if(_0x55dcce===_0x331edd[_0x86cc10]){_0x2fffd6[_0x246e48('0x1a90')](_0x55dcce);break;}}return _0x2fffd6[_0x246e48('0x6a8')]('\x20');}function _0x5c383a(){var _0x21bba9=_0x4145af,_0xb7110b=_0x212382(_0x1e08cb);!_0xb7110b||_0x21bba9('0x376c')===_0x5463cd&&_0x35215e[_0x21bba9('0xcd3')]||_0xb7110b['end']();}function _0x4f237e(_0x3b0bfc){var _0x5eb1aa=_0x4145af;_0x1e08cb[_0x5eb1aa('0x1202')](_0x5eb1aa('0x2f34'),_0x5c383a),function(_0x263612){var _0x195619=_0x5eb1aa;_0x263612[_0x195619('0x29c4')](_0x455c37);}(_0x1e08cb),_0x4413db(_0x1e08cb,_0x35215e),_0x1b7780(_0x1e08cb,_0x35215e),_0x35215e['domOperation'](),_0x1db8fb&&_0x5e3fd0['removeClass'](_0x1e08cb,_0x1db8fb),_0x58829c['complete'](!_0x3b0bfc);}};}];}];_0x63b199['module']('ngAnimate',[],function(){var _0xea7ae=_0x39f715;_0xdb04aa=_0x63b199[_0xea7ae('0x2374')],_0x2e5cb1=_0x63b199['copy'],_0x547450=_0x63b199[_0xea7ae('0x237f')],_0x463531=_0x63b199['element'],_0xcc47a=_0x63b199[_0xea7ae('0x247d')],_0x402d08=_0x63b199[_0xea7ae('0x2f1d')],_0x16c3a3=_0x63b199[_0xea7ae('0x392')],_0x41cea5=_0x63b199[_0xea7ae('0x1d0d')],_0x369200=_0x63b199[_0xea7ae('0x294d')],_0x525335=_0x63b199[_0xea7ae('0x392d')],_0x3668e2=_0x63b199['isFunction'],_0x18279e=_0x63b199[_0xea7ae('0x1a63')];})[_0x39f715('0x21a6')]({'angularVersion':_0x39f715('0x852')})[_0x39f715('0x1e30')]('ngAnimateSwap',[_0x39f715('0x2a64'),function(_0x49fc6a){var _0x5300d8=_0x39f715;return{'restrict':'A','transclude':_0x5300d8('0x88a'),'terminal':!0x0,'priority':0x226,'link':function(_0x55144a,_0x210f95,_0x3d5a83,_0x57e31f,_0x71bdcc){var _0x5e95d6=_0x5300d8,_0x34b4b9,_0x5ae04f;_0x55144a[_0x5e95d6('0x34c6')](_0x3d5a83[_0x5e95d6('0x1ff6')]||_0x3d5a83['for'],function(_0x48a330){var _0x52358d=_0x5e95d6;_0x34b4b9&&_0x49fc6a['leave'](_0x34b4b9),_0x5ae04f&&(_0x5ae04f[_0x52358d('0x2f34')](),_0x5ae04f=null),(_0x48a330||0x0===_0x48a330)&&_0x71bdcc(function(_0x17a8aa,_0x1721d4){var _0x500877=_0x52358d;_0x34b4b9=_0x17a8aa,_0x5ae04f=_0x1721d4,_0x49fc6a[_0x500877('0xa0a')](_0x17a8aa,null,_0x210f95);});});}};}])[_0x39f715('0x1e30')](_0x39f715('0x4e3'),_0xa862d9)[_0x39f715('0x36b0')](_0x39f715('0x21b6'),[_0x39f715('0x3490'),function(_0x1049a6){var _0x4f5f84=_0x39f715,_0x26b1f8,_0x45f286;function _0x11294b(_0x134d58){var _0x151eab=a2_0x4bfe;_0x26b1f8=_0x26b1f8[_0x151eab('0x12b4')](_0x134d58),_0x5ec45d();}return _0x26b1f8=_0x11294b[_0x4f5f84('0x1d99')]=[],_0x11294b[_0x4f5f84('0x32c0')]=function(_0x534a8d){_0x45f286&&_0x45f286(),_0x45f286=_0x1049a6(function(){_0x45f286=null,_0x534a8d(),_0x5ec45d();});},_0x11294b;function _0x5ec45d(){if(_0x26b1f8['length']){for(var _0x588dbb=_0x26b1f8['shift'](),_0x585ac8=0x0;_0x585ac8<_0x588dbb['length'];_0x585ac8++)_0x588dbb[_0x585ac8]();_0x45f286||_0x1049a6(function(){_0x45f286||_0x5ec45d();});}}}])[_0x39f715('0x210d')](_0x39f715('0x2e5a'),_0x2b5d0e)[_0x39f715('0x210d')](_0x39f715('0x271'),function(){var _0x21c929=_0x39f715,_0x25da9f=_0x21c929('0x2ad4'),_0x299055=0x0,_0x3bef30=Object[_0x21c929('0x126')](null);this[_0x21c929('0x2b72')]=[function(){return{'cacheKey':function(_0x48e217,_0x385947,_0x3328a8,_0x578c56){var _0xe0d19b=a2_0x4bfe,_0xcf09f1=_0x48e217[_0xe0d19b('0x1378')],_0x2aca99=[_0xcf09f1[_0x25da9f]||(_0xcf09f1[_0x25da9f]=++_0x299055),_0x385947,_0x48e217[_0xe0d19b('0x10ba')](_0xe0d19b('0xc5'))];return _0x3328a8&&_0x2aca99[_0xe0d19b('0x1a90')](_0x3328a8),_0x578c56&&_0x2aca99[_0xe0d19b('0x1a90')](_0x578c56),_0x2aca99['join']('\x20');},'containsCachedAnimationWithoutDuration':function(_0x3b122b){var _0x3d7d19=a2_0x4bfe,_0x56ae57=_0x3bef30[_0x3b122b];return _0x56ae57&&!_0x56ae57[_0x3d7d19('0x28e7')]||!0x1;},'flush':function(){var _0x2baf93=a2_0x4bfe;_0x3bef30=Object[_0x2baf93('0x126')](null);},'count':function(_0x34d2e3){var _0xa01857=a2_0x4bfe,_0x36ae56=_0x3bef30[_0x34d2e3];return _0x36ae56?_0x36ae56[_0xa01857('0x14b1')]:0x0;},'get':function(_0x4dfc9f){var _0x504bab=a2_0x4bfe,_0x1d1b41=_0x3bef30[_0x4dfc9f];return _0x1d1b41&&_0x1d1b41[_0x504bab('0x248e')];},'put':function(_0x1fe9e4,_0x3519ed,_0x24fcf6){var _0x1d460e=a2_0x4bfe;_0x3bef30[_0x1fe9e4]?(_0x3bef30[_0x1fe9e4]['total']++,_0x3bef30[_0x1fe9e4][_0x1d460e('0x248e')]=_0x3519ed):_0x3bef30[_0x1fe9e4]={'total':0x1,'value':_0x3519ed,'isValid':_0x24fcf6};}};}];})['provider'](_0x39f715('0x4c3'),_0x295106)[_0x39f715('0x210d')](_0x39f715('0xc2c'),_0x4b79ff)['provider']('$$animateCssDriver',_0x15cdd9)[_0x39f715('0x210d')]('$$animateJs',_0x4ef916)['provider']('$$animateJsDriver',_0x353647);}(window,window[_0x4c32c8('0x1d6d')]);},0xca2:(_0x54aee3,_0x38e9a,_0x480ccc)=>{var _0x55c521=_0x411650;_0x480ccc(0x6a9),_0x54aee3[_0x55c521('0x1a8b')]=_0x55c521('0x506');},0x184e:()=>{var _0x5404e4=_0x411650;!function(_0x5954ca,_0x381342){var _0x59c294=a2_0x4bfe;'use strict';var _0x4df676='ngAriaDisable',_0x1b948f=_0x381342['module'](_0x59c294('0x35f5'),['ng'])[_0x59c294('0x21a6')]({'angularVersion':_0x59c294('0x852')})[_0x59c294('0x210d')](_0x59c294('0x1d04'),function(){var _0x3d3ad9=_0x59c294,_0x306594={'ariaHidden':!0x0,'ariaChecked':!0x0,'ariaReadonly':!0x0,'ariaDisabled':!0x0,'ariaRequired':!0x0,'ariaInvalid':!0x0,'ariaValue':!0x0,'tabindex':!0x0,'bindKeydown':!0x0,'bindRoleForClick':!0x0};function _0x4e5623(_0x15f588,_0x5a20ee,_0x4383cd,_0x186f48){return function(_0xd42331,_0x5a9d58,_0x1ff042){var _0x12e015=a2_0x4bfe;if(!_0x1ff042['hasOwnProperty'](_0x4df676)){var _0x447c42=_0x1ff042['$normalize'](_0x5a20ee);!_0x306594[_0x447c42]||_0x33a79a(_0x5a9d58,_0x4383cd)||_0x1ff042[_0x447c42]||_0xd42331[_0x12e015('0x1cb1')](_0x1ff042[_0x15f588],function(_0x32ce60){var _0x5c8b80=_0x12e015;_0x32ce60=_0x186f48?!_0x32ce60:!!_0x32ce60,_0x5a9d58[_0x5c8b80('0x1e52')](_0x5a20ee,_0x32ce60);});}};}this[_0x3d3ad9('0x3486')]=function(_0x1fb1b0){var _0x53c112=_0x3d3ad9;_0x306594=_0x381342[_0x53c112('0x237f')](_0x306594,_0x1fb1b0);},this[_0x3d3ad9('0x2b72')]=function(){return{'config':function(_0x346c98){return _0x306594[_0x346c98];},'$$watchExpr':_0x4e5623};};}),_0x277ff2=[_0x59c294('0xd85'),'A',_0x59c294('0x17ae'),_0x59c294('0x24c9'),_0x59c294('0xbcc'),_0x59c294('0x2512'),_0x59c294('0x1b04')],_0x33a79a=function(_0xebd94f,_0x1e70c4){var _0x319e05=_0x59c294;if(-0x1!==_0x1e70c4[_0x319e05('0xe1c')](_0xebd94f[0x0]['nodeName']))return!0x0;};_0x1b948f[_0x59c294('0x1e30')](_0x59c294('0x309f'),[_0x59c294('0x1d04'),function(_0x2ce69c){var _0x167235=_0x59c294;return _0x2ce69c[_0x167235('0x1be')]('ngShow',_0x167235('0x384b'),[],!0x0);}])[_0x59c294('0x1e30')]('ngHide',[_0x59c294('0x1d04'),function(_0x1e5abc){var _0xc1a2ed=_0x59c294;return _0x1e5abc[_0xc1a2ed('0x1be')](_0xc1a2ed('0x1422'),_0xc1a2ed('0x384b'),[],!0x1);}])[_0x59c294('0x1e30')](_0x59c294('0xc97'),[_0x59c294('0x1d04'),function(_0x5cc7ac){var _0x385782=_0x59c294;return _0x5cc7ac[_0x385782('0x1be')](_0x385782('0xc97'),_0x385782('0x11a4'),_0x277ff2,!0x1);}])[_0x59c294('0x1e30')](_0x59c294('0x29e8'),[_0x59c294('0x1d04'),function(_0x502c48){var _0x26ab0e=_0x59c294;return _0x502c48['$$watchExpr'](_0x26ab0e('0x29e8'),_0x26ab0e('0x11a4'),_0x277ff2,!0x1);}])[_0x59c294('0x1e30')](_0x59c294('0x35d9'),[_0x59c294('0x1d04'),function(_0x44daf4){var _0x398264=_0x59c294;return _0x44daf4[_0x398264('0x1be')](_0x398264('0x35d9'),_0x398264('0x65c'),_0x277ff2,!0x1);}])[_0x59c294('0x1e30')](_0x59c294('0xf9c'),[_0x59c294('0x1d04'),function(_0x4c635c){var _0x59b3cf=_0x59c294;return _0x4c635c['$$watchExpr'](_0x59b3cf('0xf9c'),_0x59b3cf('0x53e'),_0x277ff2,!0x1);}])[_0x59c294('0x1e30')](_0x59c294('0x625'),[_0x59c294('0x1d04'),function(_0x3823ef){var _0x91dfa9=_0x59c294;function _0x155605(_0x40a245,_0x3fa640,_0x227955,_0x3d6b2e){var _0x521eab=a2_0x4bfe;return _0x3823ef[_0x521eab('0x3486')](_0x3fa640)&&!_0x227955['attr'](_0x40a245)&&(_0x3d6b2e||!_0x33a79a(_0x227955,_0x277ff2))&&(_0x521eab('0x1bdf')!==_0x227955[_0x521eab('0x1e52')](_0x521eab('0x21a5'))||'INPUT'!==_0x227955[0x0][_0x521eab('0x10c3')]);}function _0xa0f280(_0x5ac7b4,_0x56ce4e){var _0x59600f=a2_0x4bfe;return!_0x56ce4e['attr']('role')&&_0x56ce4e[_0x59600f('0x1e52')](_0x59600f('0x21a5'))===_0x5ac7b4&&!_0x33a79a(_0x56ce4e,_0x277ff2);}return{'restrict':'A','require':_0x91dfa9('0x625'),'priority':0xc8,'compile':function(_0x417768,_0x18ae2c){var _0x4394df=_0x91dfa9;if(!_0x18ae2c[_0x4394df('0x1522')](_0x4df676)){var _0x2cc2a4=function(_0x2370ea,_0x415919){var _0x4c8d3c=_0x4394df,_0x538c5e=_0x2370ea[_0x4c8d3c('0x21a5')],_0x1ab433=_0x2370ea[_0x4c8d3c('0x38ba')];return'checkbox'===(_0x538c5e||_0x1ab433)||_0x4c8d3c('0x23c0')===_0x1ab433?_0x4c8d3c('0x1cc9'):_0x4c8d3c('0x303b')===(_0x538c5e||_0x1ab433)||'menuitemradio'===_0x1ab433?_0x4c8d3c('0x303b'):'range'===_0x538c5e||_0x4c8d3c('0x222e')===_0x1ab433||_0x4c8d3c('0xd36')===_0x1ab433?_0x4c8d3c('0x35db'):'';}(_0x18ae2c);return{'post':function(_0x224f19,_0x5c9067,_0x41836c,_0x312bd3){var _0xda6ff4=_0x4394df,_0x196628=_0x155605(_0xda6ff4('0x1b4e'),_0xda6ff4('0x1b4e'),_0x5c9067,!0x1);function _0x13aa94(){var _0x23ec05=_0xda6ff4;return _0x312bd3[_0x23ec05('0x1906')];}switch(_0x2cc2a4){case'radio':case _0xda6ff4('0x1cc9'):_0xa0f280(_0x2cc2a4,_0x5c9067)&&_0x5c9067[_0xda6ff4('0x1e52')](_0xda6ff4('0x38ba'),_0x2cc2a4),_0x155605(_0xda6ff4('0x11a4'),_0xda6ff4('0xafe'),_0x5c9067,!0x1)&&_0x224f19[_0xda6ff4('0x1cb1')](_0x13aa94,_0xda6ff4('0x303b')===_0x2cc2a4?function(_0xa23042){var _0x1fe08f=_0xda6ff4,_0x3a17d9=_0x41836c[_0x1fe08f('0x248e')]==_0x312bd3[_0x1fe08f('0x9d')];_0x5c9067[_0x1fe08f('0x1e52')]('aria-checked',_0x3a17d9);}:function(){var _0xb2354e=_0xda6ff4;_0x5c9067['attr'](_0xb2354e('0x11a4'),!_0x312bd3[_0xb2354e('0x2d0b')](_0x312bd3['$viewValue']));}),_0x196628&&_0x5c9067[_0xda6ff4('0x1e52')]('tabindex',0x0);break;case _0xda6ff4('0x35db'):if(_0xa0f280(_0x2cc2a4,_0x5c9067)&&_0x5c9067[_0xda6ff4('0x1e52')]('role',_0xda6ff4('0xd36')),_0x3823ef[_0xda6ff4('0x3486')](_0xda6ff4('0x9c6'))){var _0x110f5b=!_0x5c9067[_0xda6ff4('0x1e52')](_0xda6ff4('0x1d86'))&&(_0x41836c['hasOwnProperty'](_0xda6ff4('0x3230'))||_0x41836c['hasOwnProperty'](_0xda6ff4('0x16ff'))),_0xb1f65=!_0x5c9067['attr'](_0xda6ff4('0x6db'))&&(_0x41836c[_0xda6ff4('0x1522')]('max')||_0x41836c['hasOwnProperty'](_0xda6ff4('0x644'))),_0x10f4f9=!_0x5c9067['attr']('aria-valuenow');_0x110f5b&&_0x41836c[_0xda6ff4('0x2838')](_0xda6ff4('0x3230'),function(_0x2a2cb4){var _0x144ba6=_0xda6ff4;_0x5c9067[_0x144ba6('0x1e52')](_0x144ba6('0x1d86'),_0x2a2cb4);}),_0xb1f65&&_0x41836c[_0xda6ff4('0x2838')](_0xda6ff4('0x2780'),function(_0x50e4f3){var _0x4fb454=_0xda6ff4;_0x5c9067[_0x4fb454('0x1e52')](_0x4fb454('0x6db'),_0x50e4f3);}),_0x10f4f9&&_0x224f19[_0xda6ff4('0x1cb1')](_0x13aa94,function(_0x4b05aa){var _0x4b3e3b=_0xda6ff4;_0x5c9067[_0x4b3e3b('0x1e52')]('aria-valuenow',_0x4b05aa);});}_0x196628&&_0x5c9067[_0xda6ff4('0x1e52')](_0xda6ff4('0x1b4e'),0x0);}!_0x41836c[_0xda6ff4('0x1522')]('ngRequired')&&_0x312bd3['$validators'][_0xda6ff4('0x20d0')]&&_0x155605(_0xda6ff4('0x53e'),_0xda6ff4('0x1351'),_0x5c9067,!0x1)&&_0x41836c['$observe']('required',function(){var _0x50f184=_0xda6ff4;_0x5c9067['attr'](_0x50f184('0x53e'),!!_0x41836c['required']);}),_0x155605('aria-invalid',_0xda6ff4('0xc8a'),_0x5c9067,!0x0)&&_0x224f19['$watch'](function(){return _0x312bd3['$invalid'];},function(_0x253595){var _0x2a52aa=_0xda6ff4;_0x5c9067[_0x2a52aa('0x1e52')](_0x2a52aa('0x1bf0'),!!_0x253595);});}};}}};}])[_0x59c294('0x1e30')]('ngDisabled',['$aria',function(_0x364bf0){var _0x2610ec=_0x59c294;return _0x364bf0[_0x2610ec('0x1be')](_0x2610ec('0x1f5'),_0x2610ec('0x3227'),_0x277ff2,!0x1);}])[_0x59c294('0x1e30')](_0x59c294('0xa9d'),function(){return{'restrict':'A','require':'?ngMessages','link':function(_0x1873e6,_0x4ce3e2,_0x3e5677,_0x29afb9){var _0x15e6a5=a2_0x4bfe;_0x3e5677[_0x15e6a5('0x1522')](_0x4df676)||_0x4ce3e2['attr'](_0x15e6a5('0x2ed6'))||_0x4ce3e2[_0x15e6a5('0x1e52')](_0x15e6a5('0x2ed6'),_0x15e6a5('0x24de'));}};})[_0x59c294('0x1e30')](_0x59c294('0x34cb'),[_0x59c294('0x1d04'),_0x59c294('0x1636'),function(_0x62c4cb,_0x2861f5){return{'restrict':'A','compile':function(_0x7b9d76,_0x4819f9){var _0x16c611=a2_0x4bfe;if(!_0x4819f9['hasOwnProperty'](_0x4df676)){var _0x5cc6ac=_0x2861f5(_0x4819f9[_0x16c611('0x34cb')]);return function(_0x2e278c,_0x5efb3f,_0x4855f5){var _0xb7a4d5=_0x16c611;_0x33a79a(_0x5efb3f,_0x277ff2)||(_0x62c4cb[_0xb7a4d5('0x3486')]('bindRoleForClick')&&!_0x5efb3f[_0xb7a4d5('0x1e52')](_0xb7a4d5('0x38ba'))&&_0x5efb3f[_0xb7a4d5('0x1e52')]('role','button'),_0x62c4cb[_0xb7a4d5('0x3486')]('tabindex')&&!_0x5efb3f['attr'](_0xb7a4d5('0x1b4e'))&&_0x5efb3f['attr']('tabindex',0x0),!_0x62c4cb[_0xb7a4d5('0x3486')]('bindKeydown')||_0x4855f5[_0xb7a4d5('0x180d')]||_0x4855f5[_0xb7a4d5('0xc33')]||_0x4855f5['ngKeyup']||_0x5efb3f['on'](_0xb7a4d5('0xf04'),function(_0x515fb1){var _0x4c64d9=_0xb7a4d5,_0x3d0c01=_0x515fb1[_0x4c64d9('0x35c5')]||_0x515fb1[_0x4c64d9('0x1f8c')];0xd!==_0x3d0c01&&0x20!==_0x3d0c01||(-0x1!==_0x277ff2[_0x4c64d9('0xe1c')](_0x515fb1['target']['nodeName'])||_0x515fb1[_0x4c64d9('0x312f')][_0x4c64d9('0x3151')]||_0x515fb1[_0x4c64d9('0x1f1a')](),_0x2e278c['$apply'](function(){_0x5cc6ac(_0x2e278c,{'$event':_0x515fb1});}));}));};}}};}])['directive'](_0x59c294('0x1fba'),[_0x59c294('0x1d04'),function(_0x48938a){return function(_0x4e53e3,_0x4f1304,_0x961dfd){var _0x102ec8=a2_0x4bfe;_0x961dfd[_0x102ec8('0x1522')](_0x4df676)||!_0x48938a[_0x102ec8('0x3486')](_0x102ec8('0x1b4e'))||_0x4f1304[_0x102ec8('0x1e52')](_0x102ec8('0x1b4e'))||_0x33a79a(_0x4f1304,_0x277ff2)||_0x4f1304[_0x102ec8('0x1e52')](_0x102ec8('0x1b4e'),0x0);};}]);}(window,window[_0x5404e4('0x1d6d')]);},0x1e94:(_0x2c047f,_0xb42ce5,_0x48d3fc)=>{var _0x374212=_0x411650;_0x48d3fc(0x184e),_0x2c047f[_0x374212('0x1a8b')]=_0x374212('0x35f5');},0x121a:(_0x2bbe10,_0x34ad96,_0x36fc51)=>{!function(_0x688a34){var _0x4d16b8=a2_0x4bfe;'use strict';_0x2bbe10[_0x4d16b8('0x1a8b')]=function(_0x214165,_0x5edf09){var _0x5c6043=_0x4d16b8;_0x5edf09['defaults']['global']['multiTooltipTemplate']=_0x5c6043('0x1604'),_0x5edf09[_0x5c6043('0x18bb')][_0x5c6043('0x7dc')]['tooltips']['mode']='label',_0x5edf09[_0x5c6043('0x18bb')][_0x5c6043('0x7dc')][_0x5c6043('0xf1a')][_0x5c6043('0x39')][_0x5c6043('0x1b92')]=0x2,_0x5edf09[_0x5c6043('0x18bb')][_0x5c6043('0x7dc')]['elements'][_0x5c6043('0x7a6')][_0x5c6043('0x1b92')]=0x2,_0x5edf09[_0x5c6043('0x18bb')][_0x5c6043('0x7dc')]['legend']['display']=!0x1,_0x5edf09[_0x5c6043('0x18bb')][_0x5c6043('0x7dc')]['colors']=[_0x5c6043('0x2c38'),'#DCDCDC',_0x5c6043('0x4f0'),_0x5c6043('0x38dd'),'#FDB45C','#949FB1',_0x5c6043('0x368e')];var _0x7efd0c=_0x5c6043('0x1a8')==typeof window[_0x5c6043('0x566')]&&null!==window[_0x5c6043('0x566')]&&_0x5c6043('0x19aa')==typeof window['G_vmlCanvasManager'][_0x5c6043('0x2ff0')];_0x7efd0c&&(_0x5edf09[_0x5c6043('0x18bb')][_0x5c6043('0x7dc')][_0x5c6043('0xa41')]=!0x1);return _0x214165[_0x5c6043('0x122c')](_0x5c6043('0x31f7'),[])[_0x5c6043('0x210d')](_0x5c6043('0x16f7'),_0x20a840)['factory'](_0x5c6043('0x1af2'),[_0x5c6043('0x16f7'),_0x5c6043('0x1993'),_0xf430fd])['directive'](_0x5c6043('0x3343'),[_0x5c6043('0x1af2'),function(_0x3ea1d3){return new _0x3ea1d3();}])[_0x5c6043('0x1e30')](_0x5c6043('0x1eb4'),[_0x5c6043('0x1af2'),function(_0x468e07){var _0x324e1f=_0x5c6043;return new _0x468e07(_0x324e1f('0x39'));}])[_0x5c6043('0x1e30')]('chartBar',[_0x5c6043('0x1af2'),function(_0x5bb463){var _0x47eb4d=_0x5c6043;return new _0x5bb463(_0x47eb4d('0xc87'));}])[_0x5c6043('0x1e30')](_0x5c6043('0x24b2'),[_0x5c6043('0x1af2'),function(_0xa6bc80){return new _0xa6bc80('horizontalBar');}])['directive'](_0x5c6043('0xe8d'),[_0x5c6043('0x1af2'),function(_0x413521){var _0x2ad4a9=_0x5c6043;return new _0x413521(_0x2ad4a9('0x1bbc'));}])['directive'](_0x5c6043('0x894'),['ChartJsFactory',function(_0x364d65){var _0x5cb1ae=_0x5c6043;return new _0x364d65(_0x5cb1ae('0x152f'));}])['directive']('chartPie',['ChartJsFactory',function(_0x4af980){return new _0x4af980('pie');}])['directive'](_0x5c6043('0x1d83'),['ChartJsFactory',function(_0x26967c){var _0x3ca8a5=_0x5c6043;return new _0x26967c(_0x3ca8a5('0x3345'));}])['directive'](_0x5c6043('0x35dc'),[_0x5c6043('0x1af2'),function(_0x112813){var _0x1dbce6=_0x5c6043;return new _0x112813(_0x1dbce6('0x1ed2'));}])[_0x5c6043('0x455')];function _0x20a840(){var _0xf747d6=_0x5c6043,_0x40f6ff={'responsive':!0x0},_0x381e82={'Chart':_0x5edf09,'getOptions':function(_0x111338){var _0x15f585=a2_0x4bfe,_0xe0d0a9=_0x111338&&_0x40f6ff[_0x111338]||{};return _0x214165[_0x15f585('0x237f')]({},_0x40f6ff,_0xe0d0a9);}};this[_0xf747d6('0x27cc')]=function(_0x62dfe4,_0x218103){var _0x2d093e=_0xf747d6;_0x218103?_0x40f6ff[_0x62dfe4]=_0x214165[_0x2d093e('0x526')](_0x40f6ff[_0x62dfe4]||{},_0x218103):(_0x218103=_0x62dfe4,_0x40f6ff=_0x214165[_0x2d093e('0x526')](_0x40f6ff,_0x218103)),_0x214165['merge'](_0x381e82['Chart'][_0x2d093e('0x18bb')],_0x40f6ff);},this['$get']=function(){return _0x381e82;};}function _0xf430fd(_0x7d93f7,_0xc15b74){return function(_0x5b6356){return{'restrict':'CA','scope':{'chartGetColor':'=?','chartType':'=','chartData':'=?','chartLabels':'=?','chartOptions':'=?','chartSeries':'=?','chartColors':'=?','chartClick':'=?','chartHover':'=?','chartDatasetOverride':'=?'},'link':function(_0x25ae09,_0x428bc1){var _0xcae5ee=a2_0x4bfe;function _0x4cc9cc(_0x2526c0,_0x3bcbd5){var _0x54a8e4=a2_0x4bfe;if(_0x2526c0&&_0x2526c0['length']&&(!Array[_0x54a8e4('0x2f1d')](_0x2526c0[0x0])||_0x2526c0[0x0][_0x54a8e4('0x175a')])){var _0x5537ec=_0x5b6356||_0x25ae09[_0x54a8e4('0x2a7e')];if(_0x5537ec)return _0x25ae09[_0x54a8e4('0x64b')]&&_0x42a185(_0x2526c0,_0x3bcbd5)?_0x5e5cc4(_0x2526c0,_0x25ae09):void _0x139e7b(_0x5537ec,_0x25ae09,_0x428bc1);}else _0x166379(_0x25ae09);}function _0x1e2e51(_0x3c7491,_0x376363){var _0x53b09c=a2_0x4bfe;if(!_0x4e2b3c(_0x3c7491)&&!_0x214165[_0x53b09c('0xa9b')](_0x3c7491,_0x376363)){var _0x3b2d99=_0x5b6356||_0x25ae09[_0x53b09c('0x2a7e')];_0x3b2d99&&_0x139e7b(_0x3b2d99,_0x25ae09,_0x428bc1);}}function _0x32e781(_0x2f510e,_0x2ed930){_0x4e2b3c(_0x2f510e)||_0x214165['equals'](_0x2f510e,_0x2ed930)||_0x139e7b(_0x2f510e,_0x25ae09,_0x428bc1);}_0x7efd0c&&window[_0xcae5ee('0x566')][_0xcae5ee('0x2ff0')](_0x428bc1[0x0]),_0x25ae09['$watch']('chartData',_0x4cc9cc,!0x0),_0x25ae09[_0xcae5ee('0x1cb1')](_0xcae5ee('0x32c9'),_0x1e2e51,!0x0),_0x25ae09['$watch'](_0xcae5ee('0x1cb6'),_0x1e2e51,!0x0),_0x25ae09[_0xcae5ee('0x1cb1')](_0xcae5ee('0x1bfa'),_0x1e2e51,!0x0),_0x25ae09['$watch'](_0xcae5ee('0x2dbc'),_0x1e2e51,!0x0),_0x25ae09['$watch'](_0xcae5ee('0x320e'),_0x1e2e51,!0x0),_0x25ae09[_0xcae5ee('0x1cb1')](_0xcae5ee('0x2a7e'),_0x32e781,!0x1),_0x25ae09[_0xcae5ee('0x1db8')](_0xcae5ee('0x2f34'),function(){_0x166379(_0x25ae09);}),_0x25ae09[_0xcae5ee('0x1db8')](_0xcae5ee('0x2779'),function(){var _0x2c0458=_0xcae5ee;_0x25ae09[_0x2c0458('0x64b')]&&_0x25ae09[_0x2c0458('0x64b')][_0x2c0458('0x32b7')]();});}};};function _0x139e7b(_0x23f2bd,_0x70fd7d,_0xea7f9e){var _0x2e086d=a2_0x4bfe,_0x521f0d=_0x13fd57(_0x23f2bd,_0x70fd7d);if(_0xb595c4(_0x70fd7d)&&_0x304768(_0x23f2bd,_0x70fd7d,_0xea7f9e,_0x521f0d)){var _0x3b8ea5=_0xea7f9e[0x0],_0x51b157=_0x3b8ea5[_0x2e086d('0x1158')]('2d');_0x70fd7d[_0x2e086d('0x3066')]=_0x2ea8fb(_0x70fd7d);var _0x54d831=_0x9817c7(_0x23f2bd,_0x70fd7d);_0x166379(_0x70fd7d),_0x70fd7d[_0x2e086d('0x64b')]=new _0x7d93f7[(_0x2e086d('0x16d6'))](_0x51b157,{'type':_0x23f2bd,'data':_0x54d831,'options':_0x521f0d}),_0x70fd7d[_0x2e086d('0x29d8')]('chart-create',_0x70fd7d[_0x2e086d('0x64b')]),_0x203609(_0x3b8ea5,_0x70fd7d);}}function _0x42a185(_0x12bda0,_0x2db60b){var _0x1c04b=a2_0x4bfe;return!!(_0x12bda0&&_0x2db60b&&_0x12bda0[_0x1c04b('0x175a')]&&_0x2db60b[_0x1c04b('0x175a')])&&(Array[_0x1c04b('0x2f1d')](_0x12bda0[0x0])?_0x12bda0[_0x1c04b('0x175a')]===_0x2db60b[_0x1c04b('0x175a')]&&_0x12bda0[_0x1c04b('0xafb')](function(_0x121d8b,_0x76a99d){var _0x3a6192=_0x1c04b;return _0x121d8b[_0x3a6192('0x175a')]===_0x2db60b[_0x76a99d][_0x3a6192('0x175a')];}):_0x2db60b[_0x1c04b('0x33b0')](_0x1aa388,0x0)>0x0&&_0x12bda0[_0x1c04b('0x175a')]===_0x2db60b[_0x1c04b('0x175a')]);}function _0x1aa388(_0x5c0df9,_0x1af5d8){return _0x5c0df9+_0x1af5d8;}function _0x5a7487(_0x3b0dd3,_0x22d93f,_0x26f8f4){var _0x3e0bcd={'point':void 0x0,'points':void 0x0};return function(_0x5c8a21){var _0x5571eb=a2_0x4bfe,_0x15ce7a=_0x3b0dd3['chart'][_0x5571eb('0x88e')]||_0x3b0dd3['chart'][_0x5571eb('0x33ec')],_0x58ac0c=_0x3b0dd3['chart']['getElementsAtEvent']||_0x3b0dd3[_0x5571eb('0x64b')][_0x5571eb('0x276')];if(_0x58ac0c){var _0x52d8e4=_0x58ac0c[_0x5571eb('0x2449')](_0x3b0dd3[_0x5571eb('0x64b')],_0x5c8a21),_0x49c585=_0x15ce7a?_0x15ce7a['call'](_0x3b0dd3[_0x5571eb('0x64b')],_0x5c8a21)[0x0]:void 0x0;!0x1!==_0x26f8f4&&(_0x214165[_0x5571eb('0xa9b')](_0x3e0bcd[_0x5571eb('0x3124')],_0x52d8e4)||_0x214165[_0x5571eb('0xa9b')](_0x3e0bcd[_0x5571eb('0x29a5')],_0x49c585))||(_0x3e0bcd[_0x5571eb('0x29a5')]=_0x49c585,_0x3e0bcd[_0x5571eb('0x3124')]=_0x52d8e4,_0x3b0dd3[_0x22d93f](_0x52d8e4,_0x5c8a21,_0x49c585));}};}function _0x9535d7(_0x1dacbd,_0x591093){var _0x27adf7=a2_0x4bfe;for(var _0x154381=_0x214165[_0x27adf7('0x213')](_0x591093[_0x27adf7('0x2dbc')]||_0x7d93f7[_0x27adf7('0xd58')](_0x1dacbd)['chartColors']||_0x5edf09['defaults'][_0x27adf7('0x7dc')][_0x27adf7('0x1254')]),_0x1d0fbb=_0x154381['length']<_0x591093['chartData']['length'];_0x154381[_0x27adf7('0x175a')]<_0x591093['chartData']['length'];)_0x154381[_0x27adf7('0x1a90')](_0x591093[_0x27adf7('0x3066')]());return _0x1d0fbb&&(_0x591093['chartColors']=_0x154381),_0x154381[_0x27adf7('0x2d86')](_0x20e786);}function _0x20e786(_0x3eccbc){var _0x36da08=a2_0x4bfe;return _0x36da08('0x151d')==typeof _0x3eccbc&&'r'===_0x3eccbc[0x0]?_0x520ffb(_0x49313a(_0x3eccbc)):_0x36da08('0x151d')==typeof _0x3eccbc&&'#'===_0x3eccbc[0x0]?_0x520ffb(_0x3492b9(_0x3eccbc[_0x36da08('0x3102')](0x1))):_0x36da08('0x1a8')==typeof _0x3eccbc&&null!==_0x3eccbc?_0x3eccbc:_0x1fe006();}function _0x1fe006(){return _0x520ffb([_0x2d8f17(0x0,0xff),_0x2d8f17(0x0,0xff),_0x2d8f17(0x0,0xff)]);}function _0x520ffb(_0x19d80d){var _0x307522=a2_0x4bfe,_0x39ce10=_0x19d80d[0x3]||0x1;return{'backgroundColor':_0x338724(_0x19d80d=_0x19d80d[_0x307522('0x2c0a')](0x0,0x3),0.2),'pointBackgroundColor':_0x338724(_0x19d80d,_0x39ce10),'pointHoverBackgroundColor':_0x338724(_0x19d80d,0.8),'borderColor':_0x338724(_0x19d80d,_0x39ce10),'pointBorderColor':_0x307522('0x1baa'),'pointHoverBorderColor':_0x338724(_0x19d80d,_0x39ce10)};}function _0x2d8f17(_0x278856,_0x181e78){var _0x43aaba=a2_0x4bfe;return Math[_0x43aaba('0x2736')](Math[_0x43aaba('0x3065')]()*(_0x181e78-_0x278856+0x1))+_0x278856;}function _0x338724(_0x1140f1,_0x3e5fc0){var _0x42c6be=a2_0x4bfe;return _0x7efd0c?_0x42c6be('0x25b3')+_0x1140f1['join'](',')+')':_0x42c6be('0x369f')+_0x1140f1['concat'](_0x3e5fc0)[_0x42c6be('0x6a8')](',')+')';}function _0x3492b9(_0x3963c0){var _0x51368a=parseInt(_0x3963c0,0x10);return[_0x51368a>>0x10&0xff,_0x51368a>>0x8&0xff,0xff&_0x51368a];}function _0x49313a(_0x1d3463){var _0x4d5499=a2_0x4bfe,_0x208d65=_0x1d3463['match'](/^rgba?\(([\d,.]+)\)$/);if(!_0x208d65)throw new Error('Cannot\x20parse\x20rgb\x20value');return(_0x1d3463=_0x208d65[0x1][_0x4d5499('0x23ee')](','))[_0x4d5499('0x2d86')](Number);}function _0xb595c4(_0x38ad07){return _0x38ad07['chartData']&&_0x38ad07['chartData']['length'];}function _0x2ea8fb(_0x14e413){var _0x554e96=a2_0x4bfe;return _0x554e96('0x19aa')==typeof _0x14e413[_0x554e96('0x3066')]?_0x14e413[_0x554e96('0x3066')]:_0x1fe006;}function _0x9817c7(_0x36d95e,_0x414f9e){var _0x34f9a5=a2_0x4bfe,_0x5d69f6=_0x9535d7(_0x36d95e,_0x414f9e);return Array['isArray'](_0x414f9e[_0x34f9a5('0x2752')][0x0])?_0x3a0af0(_0x414f9e[_0x34f9a5('0x1cb6')],_0x414f9e[_0x34f9a5('0x2752')],_0x414f9e['chartSeries']||[],_0x5d69f6,_0x414f9e[_0x34f9a5('0x320e')]):_0x123c30(_0x414f9e[_0x34f9a5('0x1cb6')],_0x414f9e['chartData'],_0x5d69f6,_0x414f9e[_0x34f9a5('0x320e')]);}function _0x3a0af0(_0x1eaa0e,_0x2b6b5b,_0x24ca95,_0x4e78f9,_0x16a753){var _0xf2af82=a2_0x4bfe;return{'labels':_0x1eaa0e,'datasets':_0x2b6b5b[_0xf2af82('0x2d86')](function(_0x3e83e4,_0x464f41){var _0x575971=_0xf2af82,_0x3dc469=_0x214165['extend']({},_0x4e78f9[_0x464f41],{'label':_0x24ca95[_0x464f41],'data':_0x3e83e4});return _0x16a753&&_0x16a753[_0x575971('0x175a')]>=_0x464f41&&_0x214165['merge'](_0x3dc469,_0x16a753[_0x464f41]),_0x3dc469;})};}function _0x123c30(_0x2b0043,_0x53ace8,_0x1a37e5,_0x3f0337){var _0x1702c8=a2_0x4bfe,_0x599572={'labels':_0x2b0043,'datasets':[{'data':_0x53ace8,'backgroundColor':_0x1a37e5[_0x1702c8('0x2d86')](function(_0x1caa2c){var _0x3cffde=_0x1702c8;return _0x1caa2c[_0x3cffde('0x2093')];}),'hoverBackgroundColor':_0x1a37e5[_0x1702c8('0x2d86')](function(_0x28e7af){var _0x367249=_0x1702c8;return _0x28e7af[_0x367249('0x220c')];})}]};return _0x3f0337&&_0x214165['merge'](_0x599572[_0x1702c8('0x180b')][0x0],_0x3f0337),_0x599572;}function _0x13fd57(_0x1cd03b,_0x1fcd0d){var _0x2b9470=a2_0x4bfe;return _0x214165['extend']({},_0x7d93f7[_0x2b9470('0xd58')](_0x1cd03b),_0x1fcd0d[_0x2b9470('0x1bfa')]);}function _0x203609(_0x1498d6,_0x8ce4ef){var _0x56fb5a=a2_0x4bfe;_0x1498d6[_0x56fb5a('0xa2b')]=_0x8ce4ef[_0x56fb5a('0xad0')]?_0x5a7487(_0x8ce4ef,'chartClick',!0x1):_0x214165[_0x56fb5a('0x2374')],_0x1498d6[_0x56fb5a('0x2e16')]=_0x8ce4ef['chartHover']?_0x5a7487(_0x8ce4ef,'chartHover',!0x0):_0x214165[_0x56fb5a('0x2374')];}function _0x5e5cc4(_0x4fbcea,_0x2286c9){var _0x39a0ac=a2_0x4bfe;Array[_0x39a0ac('0x2f1d')](_0x2286c9[_0x39a0ac('0x2752')][0x0])?_0x2286c9[_0x39a0ac('0x64b')][_0x39a0ac('0xcee')][_0x39a0ac('0x180b')][_0x39a0ac('0x247d')](function(_0x5c912c,_0x4b3ff1){var _0x3da610=_0x39a0ac;_0x5c912c[_0x3da610('0xcee')]=_0x4fbcea[_0x4b3ff1];}):_0x2286c9['chart']['data']['datasets'][0x0]['data']=_0x4fbcea,_0x2286c9[_0x39a0ac('0x64b')][_0x39a0ac('0x3956')](),_0x2286c9[_0x39a0ac('0x29d8')](_0x39a0ac('0x194e'),_0x2286c9[_0x39a0ac('0x64b')]);}function _0x4e2b3c(_0x1e8616){var _0xe57956=a2_0x4bfe;return!_0x1e8616||Array['isArray'](_0x1e8616)&&!_0x1e8616[_0xe57956('0x175a')]||_0xe57956('0x1a8')==typeof _0x1e8616&&!Object[_0xe57956('0x1a3f')](_0x1e8616)['length'];}function _0x304768(_0x360e74,_0x51b5e7,_0x966650,_0x24d202){var _0x36c657=a2_0x4bfe;return!_0x24d202[_0x36c657('0x28f3')]||0x0!==_0x966650[0x0]['clientHeight']||(_0xc15b74(function(){_0x139e7b(_0x360e74,_0x51b5e7,_0x966650);},0x32,!0x1),!0x1);}function _0x166379(_0x3f9b62){var _0xc201fb=a2_0x4bfe;_0x3f9b62[_0xc201fb('0x64b')]&&(_0x3f9b62[_0xc201fb('0x64b')][_0xc201fb('0x2cdb')](),_0x3f9b62[_0xc201fb('0x29d8')](_0xc201fb('0x33dd'),_0x3f9b62[_0xc201fb('0x64b')]));}}}(_0x4d16b8('0x9d1')!=typeof angular?angular:_0x36fc51(0x1666),_0x4d16b8('0x9d1')!=typeof Chart?Chart:_0x36fc51(0x58b));}();},0x2361:function(_0x27318f,_0x109ea7,_0x213792){var _0x2959aa=_0x411650,_0x59535b,_0x2d5332,_0x31bb61;_0x2d5332=[_0x213792(0x1666)],void 0x0===(_0x31bb61='function'==typeof(_0x59535b=function(_0x4eadbd){var _0xf3fda0=a2_0x4bfe;_0x4eadbd[_0xf3fda0('0x122c')](_0xf3fda0('0x1aa2'),[])[_0xf3fda0('0x1e30')](_0xf3fda0('0x1aa2'),[_0xf3fda0('0x1636'),_0x4196cc]);var _0x3b77d8=window&&window['setImmediate']?window[_0xf3fda0('0x1c91')]:function(_0x2717b3){setTimeout(_0x2717b3,0x0);};function _0x4196cc(_0x1ad72c){var _0x18d24c=_0xf3fda0;return{'restrict':'A','require':[_0x18d24c('0x1aa2'),'ngModel'],'controller':[_0x18d24c('0x1868'),'$element',_0x18d24c('0xa7b'),_0x18d24c('0x1636'),'$q',_0x147ee2],'link':function(_0x3a0346,_0x79f71c,_0x35e0f0,_0x23a63f){var _0x190662=_0x18d24c,_0x16645a=_0x23a63f[0x0],_0x531df8=_0x23a63f[0x1];_0x16645a[_0x190662('0x3979')]()[_0x190662('0x26b5')](function(){var _0x532c20=_0x190662;['dataReady','change','blur',_0x532c20('0x21f2')][_0x532c20('0x247d')](function(_0x77ca3){var _0x3bc013=_0x532c20;_0x16645a[_0x3bc013('0xac2')](_0x77ca3,function(){var _0x232ba4=_0x3bc013;_0x531df8[_0x232ba4('0x194a')](_0x16645a[_0x232ba4('0x93a')][_0x232ba4('0x2a6')]()||'');});}),_0x16645a[_0x532c20('0x93a')][_0x532c20('0x213f')](!!_0x35e0f0[_0x532c20('0x29f')]),_0x35e0f0[_0x532c20('0x2838')](_0x532c20('0x29f'),function(_0x33d1bf){var _0x91c247=_0x532c20;_0x16645a[_0x91c247('0x93a')][_0x91c247('0x213f')](!!_0x33d1bf);}),_0x3b77d8(function(){var _0x302a35=_0x532c20;_0x1ad72c(_0x35e0f0[_0x302a35('0x3979')])(_0x3a0346);});}),_0x531df8[_0x190662('0x29cc')]=function(){var _0x3a8292=_0x190662;_0x16645a[_0x3a8292('0x3979')]()[_0x3a8292('0x26b5')](function(){var _0x43f143=_0x3a8292;_0x16645a[_0x43f143('0x93a')]['setData'](_0x531df8['$viewValue']||'',{'noSnapshot':!0x0,'callback':function(){var _0xd86e65=_0x43f143;_0x16645a[_0xd86e65('0x93a')]['fire'](_0xd86e65('0x30a0'));}});});};}};}function _0x147ee2(_0x447307,_0x422369,_0x1b3466,_0x202470,_0x5d75ed){var _0x2319d6=_0xf3fda0,_0x536abe,_0x4b57ce=_0x202470(_0x1b3466['ckeditor'])(_0x447307)||{},_0x3d08bc=_0x422369[0x0],_0x2870f0=_0x5d75ed[_0x2319d6('0xc99')]();_0x536abe=_0x3d08bc[_0x2319d6('0x2052')]('contenteditable')&&_0x2319d6('0x11cf')==_0x3d08bc[_0x2319d6('0x10ba')](_0x2319d6('0x4ea'))['toLowerCase']()?this[_0x2319d6('0x93a')]=CKEDITOR[_0x2319d6('0x1d47')](_0x3d08bc,_0x4b57ce):this[_0x2319d6('0x93a')]=CKEDITOR[_0x2319d6('0x34c8')](_0x3d08bc,_0x4b57ce),this['onCKEvent']=function(_0x1b7882,_0x54a180){function _0x5487f2(){var _0x3136d1=arguments;_0x3b77d8(function(){var _0xf28185=a2_0x4bfe;_0x23270a[_0xf28185('0x177a')](null,_0x3136d1);});}function _0x23270a(){var _0x5254a8=a2_0x4bfe,_0x4de47a=arguments;_0x447307[_0x5254a8('0x1280')](function(){var _0x2ba893=_0x5254a8;_0x54a180[_0x2ba893('0x177a')](null,_0x4de47a);});}return _0x536abe['on'](_0x1b7882,_0x5487f2),function(){_0x536abe['removeListener'](_0x1b7882,_0x23270a);};},this[_0x2319d6('0xac2')](_0x2319d6('0x30c2'),function(){var _0x5b7525=_0x2319d6;_0x2870f0[_0x5b7525('0x16ab')](!0x0);}),this['ready']=function(){var _0x39d567=_0x2319d6;return _0x2870f0[_0x39d567('0x34a6')];},_0x447307[_0x2319d6('0x1db8')]('$destroy',function(){var _0x2ac059=_0x2319d6;_0x2870f0[_0x2ac059('0x34a6')]['then'](function(){var _0x4d6282=_0x2ac059;_0x536abe[_0x4d6282('0x2cdb')](!0x1);});});}})?_0x59535b['apply'](_0x109ea7,_0x2d5332):_0x59535b)||(_0x27318f[_0x2959aa('0x1a8b')]=_0x31bb61);},0x177:()=>{!function(){var _0x43e31a=a2_0x4bfe;'use strict';function _0x4041ff(_0xcb729d){var _0xac6fb9=a2_0x4bfe,_0x177c31=isNaN(_0xcb729d['startTime'])?new Date():new Date(_0xcb729d[_0xac6fb9('0x150f')]);if(null!==_0xcb729d[_0xac6fb9('0x31f3')]&&!0x1!==_0xcb729d[_0xac6fb9('0x31f3')]){var _0x17c18d=_0x177c31['getTime']()+0xea60*_0x177c31[_0xac6fb9('0x22c3')](),_0xb4a1c2=new Date(_0x17c18d+0x36ee80*_0xcb729d[_0xac6fb9('0x31f3')]);return{'hrs':_0xb4a1c2[_0xac6fb9('0x28c2')](),'mins':_0xb4a1c2['getMinutes'](),'secs':_0xb4a1c2['getSeconds'](),'date':_0xb4a1c2};}return{'hrs':_0x177c31['getHours'](),'mins':_0x177c31['getMinutes'](),'secs':_0x177c31['getSeconds'](),'date':_0x177c31};}angular['module'](_0x43e31a('0x3393'),[])['directive'](_0x43e31a('0x1819'),[_0x43e31a('0x60c'),_0x43e31a('0x19f9'),function(_0x44d383,_0x311ba5){return function(_0x1cbaf3,_0x57d165){var _0x36ff7e=a2_0x4bfe;return{'restrict':'EA','scope':{'gmtOffset':_0x36ff7e('0x70d'),'digitalFormat':_0x36ff7e('0x4a4'),'showDigital':_0x36ff7e('0x19df'),'showAnalog':_0x36ff7e('0x1f59'),'startTime':_0x36ff7e('0x1cb'),'theme':_0x36ff7e('0x29bc')},'template':'{{digital}}{{gmtInfo}}','link':function(_0x13a741,_0x15fab7,_0x553221){var _0x84ec71=_0x36ff7e,_0x12090b,_0x5155b3={},_0x4241b1=_0x13a741[_0x84ec71('0x31f3')],_0x25e578=_0x13a741['digitalFormat']?_0x13a741[_0x84ec71('0x19bc')]:_0x84ec71('0x2b2a');_0x5155b3[_0x84ec71('0x35f4')]=null!=_0x13a741[_0x84ec71('0x35f4')]?_0x13a741[_0x84ec71('0x35f4')]:void 0x0!==_0x553221[_0x84ec71('0x35f4')],_0x5155b3[_0x84ec71('0x388f')]=null!=_0x13a741[_0x84ec71('0x388f')]?_0x13a741[_0x84ec71('0x388f')]:void 0x0!==_0x553221['showAnalog'],_0x5155b3[_0x84ec71('0x985')]=void 0x0!==_0x553221[_0x84ec71('0x985')],_0x5155b3[_0x84ec71('0x150f')]=parseInt(_0x13a741[_0x84ec71('0x150f')],0xa),_0x13a741[_0x84ec71('0x2301')]=_0x13a741['theme']?_0x13a741[_0x84ec71('0x1b7f')]:_0x553221[_0x84ec71('0x1b7f')]?_0x553221['theme']:_0x84ec71('0x1d4b'),_0x5155b3[_0x84ec71('0x35f4')]||_0x5155b3[_0x84ec71('0x388f')]||(_0x5155b3[_0x84ec71('0x388f')]=!0x0,_0x5155b3[_0x84ec71('0x35f4')]=!0x0),_0x13a741[_0x84ec71('0xf70')]=!0x1,_0x13a741['date']=_0x4041ff(_0x5155b3),_0x13a741[_0x84ec71('0xd62')]=!!_0x5155b3['showDigital']&&'Loading..',_0x13a741['analog']=_0x5155b3[_0x84ec71('0x388f')],_0x13a741[_0x84ec71('0xcdc')]=new Array(0xc),_0x13a741['minors']=new Array(0x3c);var _0x48e0e7=null,_0x43bb5d=function(){var _0x20e864=_0x84ec71;isNaN(_0x5155b3[_0x20e864('0x150f')])||(_0x5155b3[_0x20e864('0x150f')]=_0x5155b3[_0x20e864('0x150f')]+0x3e8),_0x48e0e7=_0x4041ff(_0x5155b3),_0x13a741[_0x20e864('0x1408')]=_0x48e0e7,_0x5155b3[_0x20e864('0x35f4')]&&(_0x13a741[_0x20e864('0xd62')]=function(_0x1681f2,_0xf50faa,_0x4a0e64,_0x34d07f){var _0x5b3633=_0x20e864;return _0x34d07f('date')(_0x1681f2[_0x5b3633('0x1408')],_0xf50faa,_0x4a0e64);}(_0x48e0e7,_0x25e578,_0x4241b1,_0x57d165));};_0x12090b=_0x1cbaf3(_0x43bb5d,0x3e8),_0x13a741[_0x84ec71('0x1cb1')](_0x84ec71('0x31f3'),function(_0x27b30f,_0x22f5ff){var _0xbde09b=_0x84ec71,_0x36216b;_0x4241b1=_0x27b30f,_0x5155b3[_0xbde09b('0x31f3')]=null!=_0x4241b1&&(_0x36216b=_0x4241b1,((_0x36216b=parseFloat(_0x36216b))>0x0?Math[_0xbde09b('0x2736')](_0x36216b):Math[_0xbde09b('0x140a')](_0x36216b))+_0x36216b%0x1/0.6),_0x5155b3[_0xbde09b('0x985')]&&!0x1!==_0x5155b3['gmtOffset']&&(_0x13a741[_0xbde09b('0xf70')]=function(_0x13c43b){var _0xb027f6=_0xbde09b,_0x52d17f=_0x13c43b>0x0?Math[_0xb027f6('0x2736')](_0x13c43b):Math[_0xb027f6('0x140a')](_0x13c43b),_0x3e150e=Math[_0xb027f6('0x593')]((_0x13c43b>0x0?_0x13c43b:-0x1*_0x13c43b)%0x1*0x3c);return _0xb027f6('0xcab')+(0x0===_0x13c43b?'':(_0x13c43b>0x0?'\x20+':'\x20')+(_0x5a4d03=_0x52d17f,(_0x5a4d03<0x0?(_0x5a4d03>-0xa?'-0':'-')+-0x1*_0x5a4d03:(_0x5a4d03<0xa?'0':'')+_0x5a4d03)+'.')+function(_0xb5f628){return _0xb5f628+(_0xb5f628<0xa?'0':'');}(_0x3e150e)['substring'](0x0,0x2));var _0x5a4d03;}(_0x5155b3[_0xbde09b('0x31f3')])),_0x43bb5d();}),_0x13a741[_0x84ec71('0x1cb1')](_0x84ec71('0x19bc'),function(_0x4212d4,_0x487537){_0x4212d4!=_0x487537&&(_0x25e578=_0x4212d4);}),_0x13a741[_0x84ec71('0x1cb1')](_0x84ec71('0x35f4'),function(_0x1a03df,_0x282da2){var _0x3ebd02=_0x84ec71;_0x1a03df!=_0x282da2&&(_0x5155b3[_0x3ebd02('0x35f4')]=_0x1a03df,_0x13a741[_0x3ebd02('0xd62')]=!!_0x5155b3[_0x3ebd02('0x35f4')]&&_0x3ebd02('0x1e96'));}),_0x13a741[_0x84ec71('0x1cb1')](_0x84ec71('0x388f'),function(_0x1ec1e8,_0x4e3b6f){var _0xf6937=_0x84ec71;_0x1ec1e8!=_0x4e3b6f&&(_0x5155b3[_0xf6937('0x388f')]=_0x1ec1e8,_0x13a741[_0xf6937('0x2c25')]=_0x1ec1e8);}),_0x13a741[_0x84ec71('0x1cb1')](_0x84ec71('0x1b7f'),function(_0x30e073,_0x67530f){var _0x8e0328=_0x84ec71;_0x30e073!=_0x67530f&&(_0x13a741[_0x8e0328('0x2301')]=_0x30e073||(_0x553221[_0x8e0328('0x1b7f')]?_0x553221['theme']:'light'));}),_0x15fab7['on'](_0x84ec71('0x2f34'),function(){var _0x2c1a5f=_0x84ec71;_0x1cbaf3[_0x2c1a5f('0x31ce')](_0x12090b),_0x12090b=null;});}};}(_0x44d383,_0x311ba5);}]);}();},0xf1e:()=>{!function(_0x25b28c,_0x28f4a2){var _0x166e8b=a2_0x4bfe;'use strict';function _0xbc66a(_0x137275,_0x285f7f,_0x38bc97){var _0x350f04=a2_0x4bfe,_0x29b7a9=_0x38bc97[_0x350f04('0x223b')](),_0x2a0c77=_0x137275[0x0];return function(_0x555ab3,_0x52b89f,_0x5b2c9b){var _0x4d8cd2=_0x350f04;_0x2a0c77[_0x4d8cd2('0x3a7')]=function(_0x155984,_0x4495f3,_0xf87648){var _0x300896=_0x4d8cd2,_0x5516ba,_0x104446;_0x104446=(_0xf87648=_0xf87648||{})[_0x300896('0x27de')],_0x5516ba=_0x28f4a2[_0x300896('0x392d')](_0xf87648[_0x300896('0x75f')])?_0xf87648['path']:_0x29b7a9,_0x28f4a2[_0x300896('0x294d')](_0x4495f3)&&(_0x104446=_0x300896('0x2d0d'),_0x4495f3=''),_0x28f4a2['isString'](_0x104446)&&(_0x104446=new Date(_0x104446));var _0x106a20=encodeURIComponent(_0x155984)+'='+encodeURIComponent(_0x4495f3);_0x106a20+=_0x5516ba?_0x300896('0x1060')+_0x5516ba:'',_0x106a20+=_0xf87648[_0x300896('0x448')]?_0x300896('0x141f')+_0xf87648['domain']:'',_0x106a20+=_0x104446?_0x300896('0x6d9')+_0x104446[_0x300896('0x652')]():'',_0x106a20+=_0xf87648['secure']?_0x300896('0x626'):'';var _0x440465=(_0x106a20+=_0xf87648[_0x300896('0x2b6')]?';samesite='+_0xf87648[_0x300896('0x2b6')]:'')[_0x300896('0x175a')]+0x1;return _0x440465>0x1000&&_0x285f7f[_0x300896('0x8fa')](_0x300896('0x157a')+_0x155984+_0x300896('0x124b')+_0x440465+'\x20>\x204096\x20bytes)!'),_0x106a20;}(_0x555ab3,_0x52b89f,_0x5b2c9b);};}_0x28f4a2[_0x166e8b('0x122c')]('ngCookies',['ng'])['info']({'angularVersion':_0x166e8b('0x852')})['provider'](_0x166e8b('0x1a23'),[function(){var _0x113b2e=_0x166e8b,_0x299bd3=this['defaults']={};function _0x541b43(_0x8cc87){var _0x3f36ea=a2_0x4bfe;return _0x8cc87?_0x28f4a2[_0x3f36ea('0x237f')]({},_0x299bd3,_0x8cc87):_0x299bd3;}this[_0x113b2e('0x2b72')]=[_0x113b2e('0xd8'),'$$cookieWriter',function(_0x4d28df,_0x1b0f00){return{'get':function(_0x35e069){return _0x4d28df()[_0x35e069];},'getObject':function(_0x233b32){var _0x2a441d=a2_0x4bfe,_0x328574=this[_0x2a441d('0x1861')](_0x233b32);return _0x328574?_0x28f4a2[_0x2a441d('0x410')](_0x328574):_0x328574;},'getAll':function(){return _0x4d28df();},'put':function(_0xfa75c6,_0x4be348,_0x44e4b3){_0x1b0f00(_0xfa75c6,_0x4be348,_0x541b43(_0x44e4b3));},'putObject':function(_0x58e7b5,_0x5201f,_0x22dbdf){var _0x275dd7=a2_0x4bfe;this[_0x275dd7('0x29c1')](_0x58e7b5,_0x28f4a2[_0x275dd7('0x33f1')](_0x5201f),_0x22dbdf);},'remove':function(_0x34b11a,_0x420454){_0x1b0f00(_0x34b11a,void 0x0,_0x541b43(_0x420454));}};}];}]),_0xbc66a['$inject']=[_0x166e8b('0x151'),_0x166e8b('0x38a3'),_0x166e8b('0x320a')],_0x28f4a2[_0x166e8b('0x122c')](_0x166e8b('0x2b02'))[_0x166e8b('0x210d')](_0x166e8b('0x1a92'),function(){var _0x30857b=_0x166e8b;this[_0x30857b('0x2b72')]=_0xbc66a;});}(window,window['angular']);},0x1e80:(_0x2f0465,_0x2ebf40,_0x20fe5e)=>{var _0x434d6e=_0x411650;_0x20fe5e(0xf1e),_0x2f0465[_0x434d6e('0x1a8b')]=_0x434d6e('0x2b02');},0x23a1:()=>{var _0x36c04f=_0x411650;angular['module'](_0x36c04f('0x58e'),['cronselection.html']),angular['module'](_0x36c04f('0x2118'),[])[_0x36c04f('0x202f')]([_0x36c04f('0x11c8'),function(_0x4edd26){var _0x32453a=_0x36c04f;_0x4edd26['put']('cronselection.html',_0x32453a('0x11f7'));}]),angular[_0x36c04f('0x122c')](_0x36c04f('0x131'),[_0x36c04f('0x58e')]),angular['module'](_0x36c04f('0x131'))['directive'](_0x36c04f('0x1efb'),[_0x36c04f('0x926'),_0x36c04f('0x1272'),function(_0x4d0dfd,_0x2b88af){var _0x54d245=_0x36c04f;return{'restrict':'EA','replace':!0x0,'transclude':!0x0,'require':_0x54d245('0x625'),'scope':{'ngModel':'=','config':'=','myFrequency':_0x54d245('0x37ee')},'templateUrl':function(_0x50173e,_0xe3e9c4){var _0x35e6fd=_0x54d245;return _0xe3e9c4[_0x35e6fd('0x2ea9')]||'cronselection.html';},'link':function(_0x568173,_0x3d8883,_0x395e95,_0x2196d6){var _0x80fdaf=_0x54d245;function _0xb43738(_0x2f3658){var _0xbca26a=a2_0x4bfe;_0x2f3658[_0xbca26a('0x943')]=parseInt(_0x2f3658[_0xbca26a('0x943')]),_0x2f3658[_0xbca26a('0x943')]>=_0x2b88af[_0xbca26a('0x1c5d')]&&(_0x2f3658[_0xbca26a('0x163d')]=_0x568173['minuteValues'][0x0]),_0x2f3658['base']>=_0x2b88af['day']&&(_0x2f3658['hourValues']=_0x568173['hourValues'][0x0]),_0x2f3658[_0xbca26a('0x943')]===_0x2b88af['week']&&(_0x2f3658[_0xbca26a('0x2c46')]=_0x568173[_0xbca26a('0x2c46')][0x0]),_0x2f3658[_0xbca26a('0x943')]>=_0x2b88af[_0xbca26a('0x1333')]&&(_0x2f3658[_0xbca26a('0x130b')]=_0x568173[_0xbca26a('0x130b')][0x0]),_0x2f3658[_0xbca26a('0x943')]===_0x2b88af['year']&&(_0x2f3658['monthValues']=_0x568173[_0xbca26a('0x11fd')][0x0]);}var _0x12855b=!0x1;if(_0x568173[_0x80fdaf('0x1272')]=_0x2b88af,_0x568173[_0x80fdaf('0x3093')]=[{'value':0x1,'label':'Minute'},{'value':0x2,'label':'Hour'},{'value':0x3,'label':_0x80fdaf('0x1c50')},{'value':0x4,'label':'Week'},{'value':0x5,'label':_0x80fdaf('0x2637')},{'value':0x6,'label':'Year'}],_0x568173[_0x80fdaf('0x1cb1')](_0x80fdaf('0x625'),function(_0x1b24c8){var _0x6e0a9=_0x80fdaf;angular[_0x6e0a9('0x392d')](_0x1b24c8)&&_0x1b24c8?(_0x12855b=!0x0,_0x568173[_0x6e0a9('0x13e6')]=_0x4d0dfd[_0x6e0a9('0x1d36')](_0x1b24c8,_0x568173[_0x6e0a9('0x2f59')],_0x568173[_0x6e0a9('0x15e5')])):''===_0x1b24c8&&(_0x568173[_0x6e0a9('0x13e6')]=void 0x0);}),_0x80fdaf('0x1a8')==typeof _0x568173[_0x80fdaf('0x3486')]&&!_0x568173[_0x80fdaf('0x3486')][_0x80fdaf('0x175a')]){if('object'==typeof _0x568173[_0x80fdaf('0x3486')][_0x80fdaf('0xded')]){var _0x198d35=Object['keys'](_0x568173[_0x80fdaf('0x3486')]['options']);for(var _0x3f1efe in _0x198d35){var _0x34da89=_0x198d35[_0x3f1efe][_0x80fdaf('0x34c8')](/^allow/,''),_0x4cd13d=_0x198d35[_0x3f1efe];if(!_0x568173[_0x80fdaf('0x3486')][_0x80fdaf('0xded')][_0x4cd13d])for(var _0x1af6ec in _0x568173[_0x80fdaf('0x3093')])_0x568173[_0x80fdaf('0x3093')][_0x1af6ec][_0x80fdaf('0x1f7f')]===_0x34da89&&_0x568173[_0x80fdaf('0x3093')]['splice'](_0x1af6ec,0x1);}}angular['isDefined'](_0x568173['config'][_0x80fdaf('0x2f59')])?_0x568173[_0x80fdaf('0x2f59')]=_0x568173[_0x80fdaf('0x3486')]['allowMultiple']:_0x568173[_0x80fdaf('0x2f59')]=!0x1,angular[_0x80fdaf('0x392d')](_0x568173['config'][_0x80fdaf('0xb16')])&&_0x568173[_0x80fdaf('0x3486')]['quartz']?_0x568173['cronStyle']=_0x80fdaf('0xb16'):_0x568173[_0x80fdaf('0x15e5')]='default';}_0x568173['minuteValues']=[0x0,0x5,0xa,0xf,0x14,0x19,0x1e,0x23,0x28,0x2d,0x32,0x37],_0x568173[_0x80fdaf('0x1065')]=[0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17],_0x568173[_0x80fdaf('0x130b')]=[0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f],_0x568173[_0x80fdaf('0x2c46')]=[0x0,0x1,0x2,0x3,0x4,0x5,0x6],_0x568173[_0x80fdaf('0x11fd')]=[0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc],'quartz'===_0x568173[_0x80fdaf('0x15e5')]&&(_0x568173['dayValues']=[0x1,0x2,0x3,0x4,0x5,0x6,0x7]),_0x568173[_0x80fdaf('0x1cb1')]('myFrequency',function(_0x2a9970,_0x3bb756){var _0x4a7c63=_0x80fdaf;if(void 0x0!==_0x2a9970){!_0x2a9970||!_0x2a9970['base']||_0x3bb756&&_0x2a9970[_0x4a7c63('0x943')]===_0x3bb756[_0x4a7c63('0x943')]||_0x12855b?_0x2a9970&&_0x2a9970[_0x4a7c63('0x943')]&&_0x3bb756&&_0x3bb756[_0x4a7c63('0x943')]&&(_0x12855b=!0x1):_0xb43738(_0x2a9970);var _0xe03ab9=_0x4d0dfd[_0x4a7c63('0x23d9')](_0x2a9970,_0x568173['cronStyle']);_0x2196d6['$setViewValue'](_0xe03ab9);}},!0x0);}};}])[_0x36c04f('0x3127')](_0x36c04f('0x2f36'),function(){return function(_0x2a5f94){var _0x83544e=a2_0x4bfe;switch(_0x2a5f94){case 0x1:return'1st';case 0x2:return'2nd';case 0x3:return'3rd';case 0x15:return'21st';case 0x16:return'22nd';case 0x17:return _0x83544e('0x3915');case 0x1f:return _0x83544e('0x1a39');case null:return null;default:return _0x2a5f94+'th';}};})[_0x36c04f('0x3127')](_0x36c04f('0x2d1b'),function(){return function(_0x3d14c7){var _0x4209c0=a2_0x4bfe,_0xb829a4={0x1:'January',0x2:'February',0x3:'March',0x4:_0x4209c0('0x199'),0x5:_0x4209c0('0x2df8'),0x6:_0x4209c0('0x1f0b'),0x7:'July',0x8:_0x4209c0('0x2295'),0x9:_0x4209c0('0x20b0'),0xa:_0x4209c0('0x58c'),0xb:_0x4209c0('0x62'),0xc:'December'};return null!==_0x3d14c7&&angular[_0x4209c0('0x392d')](_0xb829a4[_0x3d14c7])?_0xb829a4[_0x3d14c7]:null;};})['filter'](_0x36c04f('0x1e2e'),function(){return function(_0x513710,_0x276827){var _0xff279f=a2_0x4bfe,_0x5e7804;return _0x5e7804=_0xff279f('0xb16')===_0x276827?{0x1:_0xff279f('0x2628'),0x2:'Monday',0x3:_0xff279f('0x10a'),0x4:'Wednesday',0x5:'Thursday',0x6:_0xff279f('0x2ce5'),0x7:_0xff279f('0xa72')}:{0x0:_0xff279f('0x2628'),0x1:_0xff279f('0x36d0'),0x2:_0xff279f('0x10a'),0x3:_0xff279f('0x24e8'),0x4:_0xff279f('0x6ed'),0x5:_0xff279f('0x2ce5'),0x6:_0xff279f('0xa72')},null!==_0x513710&&angular['isDefined'](_0x5e7804[_0x513710])?_0x5e7804[_0x513710]:null;};})['directive'](_0x36c04f('0x2ff7'),function(){return{'restrict':'A','scope':{'ngMultiple':'='},'link':function(_0x3465a8,_0x5e5e18){var _0x984632=a2_0x4bfe;_0x3465a8[_0x984632('0x1cb1')](_0x984632('0x2ff7'),function(_0x2405b1){var _0x4a79c4=_0x984632;_0x2405b1?_0x5e5e18[_0x4a79c4('0x1e52')]('multiple','multiple'):_0x5e5e18[_0x4a79c4('0x1bfb')](_0x4a79c4('0x30cc'));});}};}),angular[_0x36c04f('0x122c')](_0x36c04f('0x131'))[_0x36c04f('0x248e')](_0x36c04f('0x1272'),{'minute':0x1,'hour':0x2,'day':0x3,'week':0x4,'month':0x5,'year':0x6})['factory'](_0x36c04f('0x926'),[_0x36c04f('0x1272'),function(_0x5de0ef){var _0x548870={'setCron':function(_0x1c0b3e,_0x42d972){var _0x4a98fd=a2_0x4bfe;return _0x4a98fd('0xb16')===_0x42d972?this[_0x4a98fd('0x2082')](_0x1c0b3e):this[_0x4a98fd('0x2927')](_0x1c0b3e);},'setQuartzCron':function(_0x20daf3){var _0x3dfb8d=a2_0x4bfe,_0x549d75=['0','*','*','*','*','?'];return _0x20daf3&&_0x20daf3[_0x3dfb8d('0x943')]&&_0x20daf3[_0x3dfb8d('0x943')]>=_0x5de0ef[_0x3dfb8d('0x1c5d')]&&(_0x549d75[0x1]=void 0x0!==_0x20daf3[_0x3dfb8d('0x163d')]?_0x20daf3[_0x3dfb8d('0x163d')]:'0'),_0x20daf3&&_0x20daf3[_0x3dfb8d('0x943')]&&_0x20daf3['base']>=_0x5de0ef['day']&&(_0x549d75[0x2]=void 0x0!==_0x20daf3[_0x3dfb8d('0x1065')]?_0x20daf3[_0x3dfb8d('0x1065')]:'*'),_0x20daf3&&_0x20daf3[_0x3dfb8d('0x943')]&&_0x20daf3[_0x3dfb8d('0x943')]===_0x5de0ef[_0x3dfb8d('0xaa0')]&&(_0x549d75[0x3]='?',_0x549d75[0x5]=_0x20daf3['dayValues']),_0x20daf3&&_0x20daf3[_0x3dfb8d('0x943')]&&_0x20daf3[_0x3dfb8d('0x943')]>=_0x5de0ef[_0x3dfb8d('0x1333')]&&(_0x549d75[0x3]=void 0x0!==_0x20daf3[_0x3dfb8d('0x130b')]?_0x20daf3['dayOfMonthValues']:'?'),_0x20daf3&&_0x20daf3[_0x3dfb8d('0x943')]&&_0x20daf3['base']===_0x5de0ef[_0x3dfb8d('0x144e')]&&(_0x549d75[0x4]=void 0x0!==_0x20daf3[_0x3dfb8d('0x11fd')]?_0x20daf3[_0x3dfb8d('0x11fd')]:'*'),_0x549d75[_0x3dfb8d('0x6a8')]('\x20');},'setDefaultCron':function(_0x19a144){var _0x40f4b7=a2_0x4bfe,_0x23f3d2=['*','*','*','*','*'];return _0x19a144&&_0x19a144[_0x40f4b7('0x943')]&&_0x19a144['base']>=_0x5de0ef[_0x40f4b7('0x1c5d')]&&(_0x23f3d2[0x0]=void 0x0!==_0x19a144['minuteValues']?_0x19a144[_0x40f4b7('0x163d')]:'*'),_0x19a144&&_0x19a144[_0x40f4b7('0x943')]&&_0x19a144[_0x40f4b7('0x943')]>=_0x5de0ef['day']&&(_0x23f3d2[0x1]=void 0x0!==_0x19a144['hourValues']?_0x19a144['hourValues']:'*'),_0x19a144&&_0x19a144[_0x40f4b7('0x943')]&&_0x19a144[_0x40f4b7('0x943')]===_0x5de0ef['week']&&(_0x23f3d2[0x4]=_0x19a144[_0x40f4b7('0x2c46')]),_0x19a144&&_0x19a144['base']&&_0x19a144['base']>=_0x5de0ef['month']&&(_0x23f3d2[0x2]=void 0x0!==_0x19a144['dayOfMonthValues']?_0x19a144[_0x40f4b7('0x130b')]:'*'),_0x19a144&&_0x19a144[_0x40f4b7('0x943')]&&_0x19a144[_0x40f4b7('0x943')]===_0x5de0ef[_0x40f4b7('0x144e')]&&(_0x23f3d2[0x3]=void 0x0!==_0x19a144[_0x40f4b7('0x11fd')]?_0x19a144[_0x40f4b7('0x11fd')]:'*'),_0x23f3d2['join']('\x20');},'fromCron':function(_0xd9597d,_0x596079,_0x4d0ac6){var _0x3a4cee=a2_0x4bfe;return'quartz'===_0x4d0ac6?this[_0x3a4cee('0x2f9')](_0xd9597d,_0x596079):this[_0x3a4cee('0x2085')](_0xd9597d,_0x596079);},'fromDefaultCron':function(_0x4f2a41,_0x548b5c){var _0x16e1ea=a2_0x4bfe,_0x5350c7=_0x4f2a41[_0x16e1ea('0x34c8')](/\s+/g,'\x20')[_0x16e1ea('0x23ee')]('\x20'),_0x590256={'base':'1'},_0x25fef1=[];if('*'===_0x5350c7[0x0]&&'*'===_0x5350c7[0x1]&&'*'===_0x5350c7[0x2]&&'*'===_0x5350c7[0x3]&&'*'===_0x5350c7[0x4]?_0x590256[_0x16e1ea('0x943')]=_0x5de0ef['minute']:'*'===_0x5350c7[0x1]&&'*'===_0x5350c7[0x2]&&'*'===_0x5350c7[0x3]&&'*'===_0x5350c7[0x4]?_0x590256[_0x16e1ea('0x943')]=_0x5de0ef[_0x16e1ea('0x1c5d')]:'*'===_0x5350c7[0x2]&&'*'===_0x5350c7[0x3]&&'*'===_0x5350c7[0x4]?_0x590256[_0x16e1ea('0x943')]=_0x5de0ef[_0x16e1ea('0x700')]:'*'===_0x5350c7[0x2]&&'*'===_0x5350c7[0x3]?_0x590256['base']=_0x5de0ef[_0x16e1ea('0xaa0')]:'*'===_0x5350c7[0x3]&&'*'===_0x5350c7[0x4]?_0x590256[_0x16e1ea('0x943')]=_0x5de0ef[_0x16e1ea('0x1333')]:'*'===_0x5350c7[0x4]&&(_0x590256['base']=_0x5de0ef['year']),'*'!==_0x5350c7[0x0]){if(_0x548b5c){_0x25fef1=_0x5350c7[0x0]['split'](',');for(var _0x10d1d6=0x0;_0x10d1d6<_0x25fef1[_0x16e1ea('0x175a')];_0x10d1d6++)_0x25fef1[_0x10d1d6]=+_0x25fef1[_0x10d1d6];_0x590256[_0x16e1ea('0x163d')]=_0x25fef1;}else _0x590256[_0x16e1ea('0x163d')]=parseInt(_0x5350c7[0x0]);}if('*'!==_0x5350c7[0x1]){if(_0x548b5c){_0x25fef1=_0x5350c7[0x1][_0x16e1ea('0x23ee')](',');for(_0x10d1d6=0x0;_0x10d1d6<_0x25fef1[_0x16e1ea('0x175a')];_0x10d1d6++)_0x25fef1[_0x10d1d6]=+_0x25fef1[_0x10d1d6];_0x590256[_0x16e1ea('0x1065')]=_0x25fef1;}else _0x590256[_0x16e1ea('0x1065')]=parseInt(_0x5350c7[0x1]);}if('*'!==_0x5350c7[0x2]){if(_0x548b5c){_0x25fef1=_0x5350c7[0x2][_0x16e1ea('0x23ee')](',');for(_0x10d1d6=0x0;_0x10d1d6<_0x25fef1[_0x16e1ea('0x175a')];_0x10d1d6++)_0x25fef1[_0x10d1d6]=+_0x25fef1[_0x10d1d6];_0x590256[_0x16e1ea('0x130b')]=_0x25fef1;}else _0x590256[_0x16e1ea('0x130b')]=parseInt(_0x5350c7[0x2]);}if('*'!==_0x5350c7[0x3]){if(_0x548b5c){_0x25fef1=_0x5350c7[0x3][_0x16e1ea('0x23ee')](',');for(_0x10d1d6=0x0;_0x10d1d6<_0x25fef1[_0x16e1ea('0x175a')];_0x10d1d6++)_0x25fef1[_0x10d1d6]=+_0x25fef1[_0x10d1d6];_0x590256[_0x16e1ea('0x11fd')]=_0x25fef1;}else _0x590256[_0x16e1ea('0x11fd')]=parseInt(_0x5350c7[0x3]);}if('*'!==_0x5350c7[0x4]){if(_0x548b5c){_0x25fef1=_0x5350c7[0x4][_0x16e1ea('0x23ee')](',');for(_0x10d1d6=0x0;_0x10d1d6<_0x25fef1[_0x16e1ea('0x175a')];_0x10d1d6++)_0x25fef1[_0x10d1d6]=+_0x25fef1[_0x10d1d6];_0x590256[_0x16e1ea('0x2c46')]=_0x25fef1;}else _0x590256[_0x16e1ea('0x2c46')]=parseInt(_0x5350c7[0x4]);}return _0x590256;},'fromQuartzCron':function(_0x463c68,_0x2deea9){var _0x533129=a2_0x4bfe,_0x2a661d=_0x463c68['replace'](/\s+/g,'\x20')[_0x533129('0x23ee')]('\x20'),_0x41206c={'base':'1'},_0x4ade5a=[];if('*'===_0x2a661d[0x1]&&'*'===_0x2a661d[0x2]&&'*'===_0x2a661d[0x3]&&'*'===_0x2a661d[0x4]&&'?'===_0x2a661d[0x5]?_0x41206c[_0x533129('0x943')]=0x1:'*'===_0x2a661d[0x2]&&'*'===_0x2a661d[0x3]&&'*'===_0x2a661d[0x4]&&'?'===_0x2a661d[0x5]?_0x41206c[_0x533129('0x943')]=0x2:'*'===_0x2a661d[0x3]&&'*'===_0x2a661d[0x4]&&'?'===_0x2a661d[0x5]?_0x41206c[_0x533129('0x943')]=0x3:'?'===_0x2a661d[0x3]?_0x41206c['base']=0x4:'*'===_0x2a661d[0x4]&&'?'===_0x2a661d[0x5]?_0x41206c['base']=0x5:'?'===_0x2a661d[0x5]&&(_0x41206c[_0x533129('0x943')]=0x6),'*'!==_0x2a661d[0x1]){if(_0x2deea9){_0x4ade5a=_0x2a661d[0x1][_0x533129('0x23ee')](',');for(var _0x3735d3=0x0;_0x3735d3<_0x4ade5a[_0x533129('0x175a')];_0x3735d3++)_0x4ade5a[_0x3735d3]=+_0x4ade5a[_0x3735d3];_0x41206c['minuteValues']=_0x4ade5a;}else _0x41206c['minuteValues']=parseInt(_0x2a661d[0x1]);}if('*'!==_0x2a661d[0x2]){if(_0x2deea9){_0x4ade5a=_0x2a661d[0x2][_0x533129('0x23ee')](',');for(_0x3735d3=0x0;_0x3735d3<_0x4ade5a[_0x533129('0x175a')];_0x3735d3++)_0x4ade5a[_0x3735d3]=+_0x4ade5a[_0x3735d3];_0x41206c[_0x533129('0x1065')]=_0x4ade5a;}else _0x41206c['hourValues']=parseInt(_0x2a661d[0x2]);}if('*'!==_0x2a661d[0x3]&&'?'!==_0x2a661d[0x3]){if(_0x2deea9){_0x4ade5a=_0x2a661d[0x3][_0x533129('0x23ee')](',');for(_0x3735d3=0x0;_0x3735d3<_0x4ade5a[_0x533129('0x175a')];_0x3735d3++)_0x4ade5a[_0x3735d3]=+_0x4ade5a[_0x3735d3];_0x41206c[_0x533129('0x130b')]=_0x4ade5a;}else _0x41206c['dayOfMonthValues']=parseInt(_0x2a661d[0x3]);}if('*'!==_0x2a661d[0x4]){if(_0x2deea9){_0x4ade5a=_0x2a661d[0x4][_0x533129('0x23ee')](',');for(_0x3735d3=0x0;_0x3735d3<_0x4ade5a['length'];_0x3735d3++)_0x4ade5a[_0x3735d3]=+_0x4ade5a[_0x3735d3];_0x41206c[_0x533129('0x11fd')]=_0x4ade5a;}else _0x41206c[_0x533129('0x11fd')]=parseInt(_0x2a661d[0x4]);}if('*'!==_0x2a661d[0x5]&&'?'!==_0x2a661d[0x5]){if(_0x2deea9){_0x4ade5a=_0x2a661d[0x5][_0x533129('0x23ee')](',');for(_0x3735d3=0x0;_0x3735d3<_0x4ade5a['length'];_0x3735d3++)_0x4ade5a[_0x3735d3]=+_0x4ade5a[_0x3735d3];_0x41206c[_0x533129('0x2c46')]=_0x4ade5a;}else _0x41206c['dayValues']=parseInt(_0x2a661d[0x5]);}return _0x41206c;}};return _0x548870;}]);},0x7e6:()=>{var _0x5b1e13=_0x411650;!function(_0x118ad3,_0x5190ec,_0x3819c1){var _0x5b6c36=a2_0x4bfe;'use strict';var _0x47e78d=_0x5190ec[_0x5b6c36('0x392d')],_0x3dc685=_0x5190ec['isUndefined'],_0x2e47a7=_0x5190ec[_0x5b6c36('0x1e34')],_0x1777bb=_0x5190ec[_0x5b6c36('0x392')],_0x5a18c3=_0x5190ec['isNumber'],_0x248c63=_0x5190ec['isObject'],_0xe6557f=_0x5190ec[_0x5b6c36('0x2f1d')],_0x395fb5=_0x5190ec[_0x5b6c36('0x247d')],_0x3bcbfc=_0x5190ec['extend'],_0x3eefc7=_0x5190ec[_0x5b6c36('0x213')],_0x2b7a08=_0x5190ec[_0x5b6c36('0xa9b')];function _0xa7b790(_0x4925e0){var _0x19cf61=_0x5b6c36;return _0xe6557f(_0x4925e0)?_0x4925e0:Object[_0x19cf61('0x1a3f')](_0x4925e0)['map'](function(_0x519529){return _0x4925e0[_0x519529];});}function _0x14ae35(_0x3e2c3f){return null===_0x3e2c3f;}function _0x34da01(_0x4ad38b,_0xa4997b){var _0x1dcdfa=_0x5b6c36;return-0x1==Object['keys'](_0x4ad38b)['map'](function(_0x48986e){return _0xa4997b[_0x48986e]!==_0x3819c1&&_0xa4997b[_0x48986e]==_0x4ad38b[_0x48986e];})[_0x1dcdfa('0xe1c')](!0x1);}function _0x327a9d(_0x1b99e3,_0x14a4b7){var _0x150475=_0x5b6c36;function _0x35841d(_0x205a96,_0x2e9f92,_0x52aa13){var _0x4df01d=a2_0x4bfe;for(var _0x38bf6a=0x0;_0x2e9f92+_0x38bf6a<=_0x205a96['length'];){if(_0x205a96[_0x4df01d('0x40')](_0x2e9f92+_0x38bf6a)==_0x52aa13)return _0x38bf6a;_0x38bf6a++;}return-0x1;}for(var _0x11d18f=0x0,_0x2a2936=0x0;_0x2a2936<=_0x14a4b7['length'];_0x2a2936++){var _0x6bed91=_0x35841d(_0x1b99e3,_0x11d18f,_0x14a4b7[_0x150475('0x40')](_0x2a2936));if(-0x1==_0x6bed91)return!0x1;_0x11d18f+=_0x6bed91+0x1;}return!0x0;}function _0x1bd724(_0x4c62bc,_0xda7d93,_0x497451){var _0x37ad0b=0x0;return _0x4c62bc['filter'](function(_0x5b56f4){var _0x1201d3=_0x47e78d(_0x497451)?_0x37ad0b<_0xda7d93&&_0x497451(_0x5b56f4):_0x37ad0b<_0xda7d93;return _0x37ad0b=_0x1201d3?_0x37ad0b+0x1:_0x37ad0b,_0x1201d3;});}function _0x160b09(_0x1d9a9a,_0x1732e6){var _0x49a18c=_0x5b6c36;return Math[_0x49a18c('0x593')](_0x1d9a9a*Math[_0x49a18c('0x279d')](0xa,_0x1732e6))/Math[_0x49a18c('0x279d')](0xa,_0x1732e6);}function _0x5d76db(_0x3a8e29,_0x14f76c,_0x4b8388){var _0x51ce0b=_0x5b6c36;return _0x14f76c=_0x14f76c||[],Object[_0x51ce0b('0x1a3f')](_0x3a8e29)[_0x51ce0b('0x247d')](function(_0x35ee5a){if(_0x248c63(_0x3a8e29[_0x35ee5a])&&!_0xe6557f(_0x3a8e29[_0x35ee5a])){var _0x443cd9=_0x4b8388?_0x4b8388+'.'+_0x35ee5a:_0x4b8388;_0x5d76db(_0x3a8e29[_0x35ee5a],_0x14f76c,_0x443cd9||_0x35ee5a);}else{var _0x46a772=_0x4b8388?_0x4b8388+'.'+_0x35ee5a:_0x35ee5a;_0x14f76c['push'](_0x46a772);}}),_0x14f76c;}function _0x45c78a(_0xe3adbf){var _0x842414=_0x5b6c36;return _0xe3adbf&&_0xe3adbf[_0x842414('0x123')]&&_0xe3adbf['$watch'];}function _0x313170(){return function(_0x437c55,_0xc21c21){return _0x437c55>_0xc21c21;};}function _0xad6ef1(){return function(_0xe49fee,_0x4d354b){return _0xe49fee>=_0x4d354b;};}function _0x5c8ae5(){return function(_0x3eb64a,_0x97856d){return _0x3eb64a<_0x97856d;};}function _0x2d6040(){return function(_0x6096cc,_0x270c69){return _0x6096cc<=_0x270c69;};}function _0x3f2189(){return function(_0x3b7a0a,_0x42e677){return _0x3b7a0a==_0x42e677;};}function _0x238820(){return function(_0x3c6cd7,_0x315a66){return _0x3c6cd7!=_0x315a66;};}function _0x13bd2b(){return function(_0x575809,_0x3e7ff4){return _0x575809===_0x3e7ff4;};}function _0x36776b(){return function(_0x381afd,_0x2fa289){return _0x381afd!==_0x2fa289;};}function _0x7c35bb(_0x2cef8f){return function(_0x5456c0,_0x574993){var _0x43fda7=a2_0x4bfe;return _0x5456c0=_0x248c63(_0x5456c0)?_0xa7b790(_0x5456c0):_0x5456c0,!(!_0xe6557f(_0x5456c0)||_0x3dc685(_0x574993))&&_0x5456c0[_0x43fda7('0x2997')](function(_0x155ae8){return _0x1777bb(_0x574993)&&_0x248c63(_0x155ae8)||_0x2e47a7(_0x574993)?_0x2cef8f(_0x574993)(_0x155ae8):_0x155ae8===_0x574993;});};}function _0x68576f(_0x303103,_0x581256){var _0x572216=_0x5b6c36;return(_0x581256=_0x581256||0x0)>=_0x303103[_0x572216('0x175a')]?_0x303103:_0xe6557f(_0x303103[_0x581256])?_0x68576f(_0x303103[_0x572216('0x2c0a')](0x0,_0x581256)[_0x572216('0x12b4')](_0x303103[_0x581256],_0x303103['slice'](_0x581256+0x1)),_0x581256):_0x68576f(_0x303103,_0x581256+0x1);}function _0x42e870(_0x46f2a2){return function(_0x55bd44,_0x3a7296){var _0x3ff9ca=a2_0x4bfe;if(_0x55bd44=_0x248c63(_0x55bd44)?_0xa7b790(_0x55bd44):_0x55bd44,!_0xe6557f(_0x55bd44))return _0x55bd44;var _0x551a18=[],_0x21023a=_0x46f2a2(_0x3a7296);return _0x3dc685(_0x3a7296)?_0x55bd44[_0x3ff9ca('0x3127')](function(_0x3cd0c0,_0x1b9c05,_0x1439dc){return _0x1439dc['indexOf'](_0x3cd0c0)===_0x1b9c05;}):_0x55bd44[_0x3ff9ca('0x3127')](function(_0x6c706d){var _0x436712=_0x3ff9ca,_0x1d8dc1=_0x21023a(_0x6c706d);return!function(_0x2c67fd,_0xbd3678){var _0x2aece2=a2_0x4bfe;if(_0x3dc685(_0xbd3678))return!0x1;return _0x2c67fd[_0x2aece2('0x2997')](function(_0x3ee1ff){return _0x2b7a08(_0x3ee1ff,_0xbd3678);});}(_0x551a18,_0x1d8dc1)&&(_0x551a18[_0x436712('0x1a90')](_0x1d8dc1),!0x0);});};}function _0x5df645(_0x92fe1f,_0x261f56,_0x2cb441){return _0x261f56?_0x92fe1f+_0x2cb441+_0x5df645(_0x92fe1f,--_0x261f56,_0x2cb441):_0x92fe1f;}function _0x346a60(){return function(_0x1eb3ee){var _0x1cb907=a2_0x4bfe;return _0x1777bb(_0x1eb3ee)?_0x1eb3ee[_0x1cb907('0x23ee')]('\x20')[_0x1cb907('0x2d86')](function(_0x31726f){var _0x1b29f5=_0x1cb907;return _0x31726f['charAt'](0x0)[_0x1b29f5('0x1a66')]()+_0x31726f[_0x1b29f5('0x92')](0x1);})[_0x1cb907('0x6a8')]('\x20'):_0x1eb3ee;};}String['prototype'][_0x5b6c36('0x3cf')]||(String[_0x5b6c36('0x5a')][_0x5b6c36('0x3cf')]=function(){var _0x138a42=_0x5b6c36;return-0x1!==String[_0x138a42('0x5a')][_0x138a42('0xe1c')][_0x138a42('0x177a')](this,arguments);}),_0x5190ec['module'](_0x5b6c36('0x2d27'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x294d'),function(){return function(_0x30fdff){var _0x4cc67f=a2_0x4bfe;return _0x5190ec[_0x4cc67f('0x294d')](_0x30fdff);};})[_0x5b6c36('0x3127')](_0x5b6c36('0x392d'),function(){return function(_0x4b7dae){var _0x547ec2=a2_0x4bfe;return _0x5190ec[_0x547ec2('0x392d')](_0x4b7dae);};})[_0x5b6c36('0x3127')]('isFunction',function(){return function(_0x372ec5){var _0x30e1c9=a2_0x4bfe;return _0x5190ec[_0x30e1c9('0x1e34')](_0x372ec5);};})[_0x5b6c36('0x3127')]('isString',function(){return function(_0x338990){return _0x5190ec['isString'](_0x338990);};})[_0x5b6c36('0x3127')](_0x5b6c36('0x53'),function(){return function(_0x8fa2b3){var _0x4779ac=a2_0x4bfe;return _0x5190ec[_0x4779ac('0x53')](_0x8fa2b3);};})[_0x5b6c36('0x3127')](_0x5b6c36('0x2f1d'),function(){return function(_0x5695ce){return _0x5190ec['isArray'](_0x5695ce);};})['filter'](_0x5b6c36('0x1d0d'),function(){return function(_0x41112f){var _0x594015=a2_0x4bfe;return _0x5190ec[_0x594015('0x1d0d')](_0x41112f);};})[_0x5b6c36('0x3127')](_0x5b6c36('0x29c8'),function(){return function(_0x1703cd,_0x4575ea){var _0x3726e0=a2_0x4bfe;return _0x5190ec[_0x3726e0('0xa9b')](_0x1703cd,_0x4575ea);};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0xf8b'),[])[_0x5b6c36('0x3127')]({'isGreaterThan':_0x313170,'>':_0x313170,'isGreaterThanOrEqualTo':_0xad6ef1,'>=':_0xad6ef1,'isLessThan':_0x5c8ae5,'<':_0x5c8ae5,'isLessThanOrEqualTo':_0x2d6040,'<=':_0x2d6040,'isEqualTo':_0x3f2189,'==':_0x3f2189,'isNotEqualTo':_0x238820,'!=':_0x238820,'isIdenticalTo':_0x13bd2b,'===':_0x13bd2b,'isNotIdenticalTo':_0x36776b,'!==':_0x36776b}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x132'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x1e12'),function(){return function(_0x526aa6){return _0x14ae35(_0x526aa6);};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x1dee'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x2f40'),function(){return function(_0x27374c,_0x225ef4){var _0x562ba3=a2_0x4bfe;if(_0x27374c=_0x248c63(_0x27374c)?_0xa7b790(_0x27374c):_0x27374c,!_0xe6557f(_0x27374c)||_0x3dc685(_0x225ef4))return _0x27374c;var _0x4cb017=_0x27374c['map'](function(_0x25c909){return _0x34da01(_0x225ef4,_0x25c909);})[_0x562ba3('0xe1c')](!0x0);return _0x27374c[_0x562ba3('0x2c0a')](-0x1===_0x4cb017?0x0:_0x4cb017);};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x1fce'),[])[_0x5b6c36('0x3127')]('after',function(){return function(_0x2593fb,_0x2c4290){var _0xc277f4=a2_0x4bfe;return _0x2593fb=_0x248c63(_0x2593fb)?_0xa7b790(_0x2593fb):_0x2593fb,_0xe6557f(_0x2593fb)?_0x2593fb[_0xc277f4('0x2c0a')](_0x2c4290):_0x2593fb;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x2aae'),[])['filter'](_0x5b6c36('0xfa1'),function(){return function(_0x39a1a4,_0x34aefe){var _0x536f1a=a2_0x4bfe;if(_0x39a1a4=_0x248c63(_0x39a1a4)?_0xa7b790(_0x39a1a4):_0x39a1a4,!_0xe6557f(_0x39a1a4)||_0x3dc685(_0x34aefe))return _0x39a1a4;var _0x26a986=_0x39a1a4[_0x536f1a('0x2d86')](function(_0x1bd442){return _0x34da01(_0x34aefe,_0x1bd442);})[_0x536f1a('0xe1c')](!0x0);return _0x39a1a4['slice'](0x0,-0x1===_0x26a986?_0x39a1a4[_0x536f1a('0x175a')]:++_0x26a986);};}),_0x5190ec['module']('a8m.before',[])['filter'](_0x5b6c36('0x2c8a'),function(){return function(_0x2a753a,_0x541577){var _0x24fd93=a2_0x4bfe;return _0x2a753a=_0x248c63(_0x2a753a)?_0xa7b790(_0x2a753a):_0x2a753a,_0xe6557f(_0x2a753a)?_0x2a753a[_0x24fd93('0x2c0a')](0x0,_0x541577?--_0x541577:_0x541577):_0x2a753a;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x3081'),[_0x5b6c36('0x187e')])['filter']('chunkBy',[_0x5b6c36('0x17c4'),function(_0x4b5a46){return function(_0x667aa2,_0x5a0557,_0x593844){var _0x3250b0=a2_0x4bfe;return _0x4b5a46[_0x3250b0('0x2db')](_0x3250b0('0x27f7'),arguments)||_0x4b5a46[_0x3250b0('0x9b')](_0x3250b0('0x27f7'),arguments,this,_0x344dfd(_0x667aa2,_0x5a0557,_0x593844));function _0xce9db5(_0x7189da,_0x443720){for(var _0x10438a=[];_0x7189da--;)_0x10438a[_0x7189da]=_0x443720;return _0x10438a;}function _0x344dfd(_0x1dece5,_0x419108,_0x426172){var _0x16f1a4=_0x3250b0;return _0xe6557f(_0x1dece5)?_0x1dece5[_0x16f1a4('0x2d86')](function(_0x226a36,_0xb32e36,_0x2b73c0){var _0x455a87=_0x16f1a4;return _0xb32e36*=_0x419108,_0x226a36=_0x2b73c0[_0x455a87('0x2c0a')](_0xb32e36,_0xb32e36+_0x419108),!_0x3dc685(_0x426172)&&_0x226a36[_0x455a87('0x175a')]<_0x419108?_0x226a36[_0x455a87('0x12b4')](_0xce9db5(_0x419108-_0x226a36['length'],_0x426172)):_0x226a36;})[_0x16f1a4('0x2c0a')](0x0,Math['ceil'](_0x1dece5[_0x16f1a4('0x175a')]/_0x419108)):_0x1dece5;}};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0xa25'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x12b4'),[function(){return function(_0x2114dc,_0x228999){var _0x591384=a2_0x4bfe;if(_0x3dc685(_0x228999))return _0x2114dc;if(_0xe6557f(_0x2114dc))return _0x248c63(_0x228999)?_0x2114dc[_0x591384('0x12b4')](_0xa7b790(_0x228999)):_0x2114dc[_0x591384('0x12b4')](_0x228999);if(_0x248c63(_0x2114dc)){var _0x35dc43=_0xa7b790(_0x2114dc);return _0x248c63(_0x228999)?_0x35dc43[_0x591384('0x12b4')](_0xa7b790(_0x228999)):_0x35dc43['concat'](_0x228999);}return _0x2114dc;};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0xd76'),[])['filter']({'contains':[_0x5b6c36('0x1636'),_0x7c35bb],'some':[_0x5b6c36('0x1636'),_0x7c35bb]}),_0x5190ec[_0x5b6c36('0x122c')]('a8m.count-by',[])['filter']('countBy',[_0x5b6c36('0x1636'),function(_0x55a6a0){return function(_0x4c7e8c,_0xdc1f0){var _0x2ed6fe,_0x3274cd={},_0xb9b2f7=_0x55a6a0(_0xdc1f0);return _0x4c7e8c=_0x248c63(_0x4c7e8c)?_0xa7b790(_0x4c7e8c):_0x4c7e8c,!_0xe6557f(_0x4c7e8c)||_0x3dc685(_0xdc1f0)?_0x4c7e8c:(_0x4c7e8c['forEach'](function(_0x33c8d4){_0x2ed6fe=_0xb9b2f7(_0x33c8d4),_0x3274cd[_0x2ed6fe]||(_0x3274cd[_0x2ed6fe]=0x0),_0x3274cd[_0x2ed6fe]++;}),_0x3274cd);};}]),_0x5190ec[_0x5b6c36('0x122c')]('a8m.defaults',[])[_0x5b6c36('0x3127')](_0x5b6c36('0x18bb'),['$parse',function(_0x5f1836){return function(_0x52d6f4,_0x54c176){var _0x20464c=a2_0x4bfe;if(_0x52d6f4=_0x248c63(_0x52d6f4)?_0xa7b790(_0x52d6f4):_0x52d6f4,!_0xe6557f(_0x52d6f4)||!_0x248c63(_0x54c176))return _0x52d6f4;var _0x53726e=_0x5d76db(_0x54c176);return _0x52d6f4[_0x20464c('0x247d')](function(_0x1b4c22){var _0x257134=_0x20464c;_0x53726e[_0x257134('0x247d')](function(_0x40fcfe){var _0x1bca40=_0x5f1836(_0x40fcfe),_0xcd12d6=_0x1bca40['assign'];_0x3dc685(_0x1bca40(_0x1b4c22))&&_0xcd12d6(_0x1b4c22,_0x1bca40(_0x54c176));});}),_0x52d6f4;};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x26f7'),[])['filter']('every',[_0x5b6c36('0x1636'),function(_0x3bd9d5){return function(_0x5ccfa2,_0x2752c0){return _0x5ccfa2=_0x248c63(_0x5ccfa2)?_0xa7b790(_0x5ccfa2):_0x5ccfa2,!(_0xe6557f(_0x5ccfa2)&&!_0x3dc685(_0x2752c0))||_0x5ccfa2['every'](function(_0x1adddc){return _0x248c63(_0x1adddc)||_0x2e47a7(_0x2752c0)?_0x3bd9d5(_0x2752c0)(_0x1adddc):_0x1adddc===_0x2752c0;});};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0xd11'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x11e3'),[_0x5b6c36('0x1636'),function(_0x48c7b3){return function(_0x42b66b,_0x4b749b,_0x1b71d1,_0x24825c){var _0x3fcc9c=a2_0x4bfe,_0x40a874;return _0x1b71d1=_0x1777bb(_0x1b71d1)||_0x5a18c3(_0x1b71d1)?String(_0x1b71d1)['toLowerCase']():_0x3819c1,_0x42b66b=_0x248c63(_0x42b66b)?_0xa7b790(_0x42b66b):_0x42b66b,!_0xe6557f(_0x42b66b)||_0x3dc685(_0x1b71d1)?_0x42b66b:_0x42b66b[_0x3fcc9c('0x3127')](function(_0x32f865){var _0x33db29=_0x3fcc9c;return _0x4b749b[_0x33db29('0x2997')](function(_0x298169){var _0x347306=_0x33db29;if(~_0x298169[_0x347306('0xe1c')]('+')){var _0x23707c=_0x298169[_0x347306('0x34c8')](/\s+/g,'')[_0x347306('0x23ee')]('+');_0x40a874=_0x23707c[_0x347306('0x2d86')](function(_0x3e005b){return _0x48c7b3(_0x3e005b)(_0x32f865);})['join']('\x20');}else _0x40a874=_0x48c7b3(_0x298169)(_0x32f865);return!(!_0x1777bb(_0x40a874)&&!_0x5a18c3(_0x40a874))&&(_0x40a874=String(_0x40a874)[_0x347306('0x856')](),_0x24825c?_0x40a874===_0x1b71d1:_0x40a874[_0x347306('0x3cf')](_0x1b71d1));});});};}]),_0x5190ec['module'](_0x5b6c36('0x2e2d'),[])['filter'](_0x5b6c36('0x18e5'),[_0x5b6c36('0x1636'),function(_0x2a1435){return function(_0x57a6c7){var _0x5cb94f=a2_0x4bfe,_0x294d7c,_0x4cc410,_0x1d18ef;return _0x57a6c7=_0x248c63(_0x57a6c7)?_0xa7b790(_0x57a6c7):_0x57a6c7,_0xe6557f(_0x57a6c7)?(_0x1d18ef=Array['prototype'][_0x5cb94f('0x2c0a')][_0x5cb94f('0x2449')](arguments,0x1),_0x294d7c=_0x5a18c3(_0x1d18ef[0x0])?_0x1d18ef[0x0]:0x1,_0x4cc410=_0x5a18c3(_0x1d18ef[0x0])?_0x5a18c3(_0x1d18ef[0x1])?_0x3819c1:_0x1d18ef[0x1]:_0x1d18ef[0x0],_0x1d18ef['length']?_0x1bd724(_0x57a6c7,_0x294d7c,_0x4cc410?_0x2a1435(_0x4cc410):_0x4cc410):_0x57a6c7[0x0]):_0x57a6c7;};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x5d8'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0xaf0'),function(){return function(_0x448bd2,_0x3a1338){var _0x3ee5d0=a2_0x4bfe;return _0x3a1338=_0x3a1338||!0x1,_0x448bd2=_0x248c63(_0x448bd2)?_0xa7b790(_0x448bd2):_0x448bd2,_0xe6557f(_0x448bd2)?_0x3a1338?[][_0x3ee5d0('0x12b4')]['apply']([],_0x448bd2):_0x68576f(_0x448bd2,0x0):_0x448bd2;};}),_0x5190ec['module'](_0x5b6c36('0x289b'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x1deb'),['$parse',function(_0x1233fa){return function(_0x377ea0,_0x11edd3,_0x27f618,_0x3a6ac7){var _0x4f4120=a2_0x4bfe,_0x358c47,_0x319fd3,_0x1e59ac=_0x3a6ac7||!0x1;return _0x377ea0=_0x248c63(_0x377ea0)?_0xa7b790(_0x377ea0):_0x377ea0,!_0xe6557f(_0x377ea0)||_0x3dc685(_0x11edd3)||_0x3dc685(_0x27f618)?_0x377ea0:(_0x319fd3=_0x1233fa(_0x11edd3),_0x377ea0[_0x4f4120('0x3127')](function(_0x4c1b3a){var _0x5eafc1=_0x4f4120;return _0x358c47=_0x319fd3(_0x4c1b3a),!!_0x1777bb(_0x358c47)&&(_0x358c47=_0x1e59ac?_0x358c47:_0x358c47['toLowerCase'](),_0x27f618=_0x1e59ac?_0x27f618:_0x27f618[_0x5eafc1('0x856')](),!0x1!==_0x327a9d(_0x358c47,_0x27f618));}));};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x63d'),[])[_0x5b6c36('0x3127')]('fuzzy',function(){return function(_0x51c076,_0x48ec85,_0x2eebb9){var _0x6c22d5=a2_0x4bfe,_0x3f63c7=_0x2eebb9||!0x1;return _0x51c076=_0x248c63(_0x51c076)?_0xa7b790(_0x51c076):_0x51c076,!_0xe6557f(_0x51c076)||_0x3dc685(_0x48ec85)?_0x51c076:(_0x48ec85=_0x3f63c7?_0x48ec85:_0x48ec85[_0x6c22d5('0x856')](),_0x51c076[_0x6c22d5('0x3127')](function(_0x3ffe64){var _0x2e0dec=_0x6c22d5;return _0x1777bb(_0x3ffe64)?!0x1!==_0x327a9d(_0x3ffe64=_0x3f63c7?_0x3ffe64:_0x3ffe64[_0x2e0dec('0x856')](),_0x48ec85):!!_0x248c63(_0x3ffe64)&&function(_0x2e8938,_0x2003e7){var _0x1b2a90=_0x2e0dec,_0xbb2730,_0x2c2a66;return 0x0=0x0&&_0x5a18c3(_0x58ee7a)&&isFinite(_0x58ee7a)){for(var _0x16da9a=0x0;_0x16da9a<_0x1fe6d0[_0x15e4ee('0x175a')]-0x1&&_0x58ee7a>=_0x1fe6d0[_0x16da9a][_0x15e4ee('0x698')];)_0x16da9a++;return _0x160b09(_0x58ee7a/=_0x16da9a>0x0?_0x1fe6d0[_0x16da9a-0x1][_0x15e4ee('0x698')]:0x1,_0x477b10)+'\x20'+_0x1fe6d0[_0x16da9a][_0x15e4ee('0x966')];}return _0x15e4ee('0x12f7');};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0xc8c'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0xda4'),function(){return function(_0x44cc42,_0x4ef8e6){var _0x2265f0=a2_0x4bfe;if(_0x5a18c3(_0x4ef8e6)&&isFinite(_0x4ef8e6)&&_0x4ef8e6%0x1==0x0&&_0x4ef8e6>=0x0&&_0x5a18c3(_0x44cc42)&&isFinite(_0x44cc42)){var _0xad5842=0xb4*_0x44cc42/Math['PI'];return Math[_0x2265f0('0x593')](_0xad5842*Math['pow'](0xa,_0x4ef8e6))/Math[_0x2265f0('0x279d')](0xa,_0x4ef8e6);}return _0x2265f0('0x12f7');};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x25cf'),[])[_0x5b6c36('0x3127')]('kbFmt',function(){var _0x91ffaf=[{'str':'KB','val':0x400}];return['MB','GB','TB','PB','EB','ZB','YB']['forEach'](function(_0x167745,_0x24b997){var _0x496c97=a2_0x4bfe;_0x91ffaf[_0x496c97('0x1a90')]({'str':_0x167745,'val':0x400*_0x91ffaf[_0x24b997]['val']});}),function(_0x2d0b36,_0x18bd5c){var _0xa39d4c=a2_0x4bfe;if(_0x5a18c3(_0x18bd5c)&&isFinite(_0x18bd5c)&&_0x18bd5c%0x1==0x0&&_0x18bd5c>=0x0&&_0x5a18c3(_0x2d0b36)&&isFinite(_0x2d0b36)){for(var _0x2da219=0x0;_0x2da219<_0x91ffaf[_0xa39d4c('0x175a')]-0x1&&_0x2d0b36>=_0x91ffaf[_0x2da219]['val'];)_0x2da219++;return _0x160b09(_0x2d0b36/=_0x2da219>0x0?_0x91ffaf[_0x2da219-0x1][_0xa39d4c('0x698')]:0x1,_0x18bd5c)+'\x20'+_0x91ffaf[_0x2da219][_0xa39d4c('0x966')];}return _0xa39d4c('0x12f7');};}),_0x5190ec['module']('a8m.math.max',[])[_0x5b6c36('0x3127')]('max',[_0x5b6c36('0x1636'),function(_0x4aff18){return function(_0x59b0b6,_0x281b63){var _0xe3446c=a2_0x4bfe;return _0xe6557f(_0x59b0b6)?_0x3dc685(_0x281b63)?Math['max'][_0xe3446c('0x177a')](Math,_0x59b0b6):_0x59b0b6[_0x11c120=_0x59b0b6,_0x5847bf=_0x281b63,_0x5591a3=_0x11c120['map'](function(_0x323bc3){return _0x4aff18(_0x5847bf)(_0x323bc3);}),_0x5591a3[_0xe3446c('0xe1c')](Math[_0xe3446c('0x2780')][_0xe3446c('0x177a')](Math,_0x5591a3))]:_0x59b0b6;var _0x11c120,_0x5847bf,_0x5591a3;};}]),_0x5190ec[_0x5b6c36('0x122c')]('a8m.math.min',[])['filter'](_0x5b6c36('0x3230'),['$parse',function(_0x5fced3){return function(_0x47d6cf,_0x1fb55b){var _0x278f71=a2_0x4bfe;return _0xe6557f(_0x47d6cf)?_0x3dc685(_0x1fb55b)?Math[_0x278f71('0x3230')][_0x278f71('0x177a')](Math,_0x47d6cf):_0x47d6cf[_0x5370c1=_0x47d6cf,_0x1941df=_0x1fb55b,_0x365f03=_0x5370c1[_0x278f71('0x2d86')](function(_0x2ad5e5){return _0x5fced3(_0x1941df)(_0x2ad5e5);}),_0x365f03[_0x278f71('0xe1c')](Math[_0x278f71('0x3230')][_0x278f71('0x177a')](Math,_0x365f03))]:_0x47d6cf;var _0x5370c1,_0x1941df,_0x365f03;};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x2e97'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x2825'),function(){return function(_0x5208f8,_0x9333f0,_0x1468ae){var _0x1e4234=_0x1777bb(_0x5208f8)?Number(_0x5208f8):_0x5208f8;return _0x9333f0=_0x9333f0||0x64,_0x1468ae=_0x1468ae||!0x1,!_0x5a18c3(_0x1e4234)||isNaN(_0x1e4234)?_0x5208f8:_0x1468ae?Math['round'](_0x1e4234/_0x9333f0*0x64):_0x1e4234/_0x9333f0*0x64;};}),_0x5190ec['module'](_0x5b6c36('0x196'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x174d'),function(){return function(_0x11f3ba,_0x4731de){var _0x150f3e=a2_0x4bfe;if(_0x5a18c3(_0x4731de)&&isFinite(_0x4731de)&&_0x4731de%0x1==0x0&&_0x4731de>=0x0&&_0x5a18c3(_0x11f3ba)&&isFinite(_0x11f3ba)){var _0xd5bc21=3.14159265359*_0x11f3ba/0xb4;return Math[_0x150f3e('0x593')](_0xd5bc21*Math['pow'](0xa,_0x4731de))/Math[_0x150f3e('0x279d')](0xa,_0x4731de);}return _0x150f3e('0x12f7');};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x334'),[])[_0x5b6c36('0x3127')]('radix',function(){return function(_0x2ab103,_0x1c45c0){var _0x2689ac=a2_0x4bfe;return _0x5a18c3(_0x2ab103)&&/^[2-9]$|^[1-2]\d$|^3[0-6]$/[_0x2689ac('0x19cd')](_0x1c45c0)?_0x2ab103['toString'](_0x1c45c0)[_0x2689ac('0x1a66')]():_0x2ab103;};}),_0x5190ec['module']('a8m.math.shortFmt',[])['filter'](_0x5b6c36('0x1c24'),function(){return function(_0x13b7cf,_0xe52935){var _0x2806e5=a2_0x4bfe;return _0x5a18c3(_0xe52935)&&isFinite(_0xe52935)&&_0xe52935%0x1==0x0&&_0xe52935>=0x0&&_0x5a18c3(_0x13b7cf)&&isFinite(_0x13b7cf)?_0x13b7cf<0x3e8?''+_0x13b7cf:_0x13b7cf<0xf4240?_0x160b09(_0x13b7cf/0x3e8,_0xe52935)+'\x20K':_0x13b7cf<0x3b9aca00?_0x160b09(_0x13b7cf/0xf4240,_0xe52935)+'\x20M':_0x160b09(_0x13b7cf/0x3b9aca00,_0xe52935)+'\x20B':_0x2806e5('0x12f7');};}),_0x5190ec[_0x5b6c36('0x122c')]('a8m.math.sum',[])[_0x5b6c36('0x3127')](_0x5b6c36('0xd02'),function(){return function(_0x21f24e,_0x4897e0){var _0x2f91df=a2_0x4bfe;return _0xe6557f(_0x21f24e)?_0x21f24e[_0x2f91df('0x33b0')](function(_0x3c8bea,_0x48d0f8){return _0x3c8bea+_0x48d0f8;},_0x4897e0||0x0):_0x21f24e;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x31a1'),[])['filter'](_0x5b6c36('0x2a32'),function(){return function(_0x17f410,_0x14dada,_0x22e1ac){var _0x1346d2=a2_0x4bfe,_0x491f97,_0x52d7d3=_0x22e1ac||!0x1;return!_0x1777bb(_0x17f410)||_0x3dc685(_0x14dada)?_0x17f410:(_0x491f97=(_0x17f410=_0x52d7d3?_0x17f410:_0x17f410[_0x1346d2('0x856')]())['length']-_0x14dada[_0x1346d2('0x175a')],-0x1!==_0x17f410[_0x1346d2('0xe1c')](_0x52d7d3?_0x14dada:_0x14dada[_0x1346d2('0x856')](),_0x491f97));};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x27b9'),[])[_0x5b6c36('0x3127')]('latinize',[function(){var _0x34699f=_0x5b6c36;for(var _0x51d40f=[{'base':'A','letters':_0x34699f('0xd6')},{'base':'AA','letters':'Ꜳ'},{'base':'AE','letters':_0x34699f('0x3054')},{'base':'AO','letters':'Ꜵ'},{'base':'AU','letters':'Ꜷ'},{'base':'AV','letters':'ꜸꜺ'},{'base':'AY','letters':'Ꜽ'},{'base':'B','letters':'BⒷBḂḄḆɃƂƁ'},{'base':'C','letters':_0x34699f('0x351b')},{'base':'D','letters':_0x34699f('0xb9b')},{'base':'DZ','letters':'DZDŽ'},{'base':'Dz','letters':'DzDž'},{'base':'E','letters':_0x34699f('0x2c41')},{'base':'F','letters':_0x34699f('0x162a')},{'base':'G','letters':_0x34699f('0x45c')},{'base':'H','letters':'HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ'},{'base':'I','letters':_0x34699f('0x704')},{'base':'J','letters':_0x34699f('0x1c8e')},{'base':'K','letters':_0x34699f('0x1ceb')},{'base':'L','letters':'LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ'},{'base':'LJ','letters':'LJ'},{'base':'Lj','letters':'Lj'},{'base':'M','letters':_0x34699f('0x2854')},{'base':'N','letters':_0x34699f('0x3f8')},{'base':'NJ','letters':'NJ'},{'base':'Nj','letters':'Nj'},{'base':'O','letters':_0x34699f('0x21c2')},{'base':'OI','letters':'Ƣ'},{'base':'OO','letters':'Ꝏ'},{'base':'OU','letters':'Ȣ'},{'base':'OE','letters':'\u008cŒ'},{'base':'oe','letters':'\u009cœ'},{'base':'P','letters':'PⓅPṔṖƤⱣꝐꝒꝔ'},{'base':'Q','letters':_0x34699f('0xfbb')},{'base':'R','letters':'RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ'},{'base':'S','letters':'SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ'},{'base':'T','letters':_0x34699f('0x511')},{'base':'TZ','letters':'Ꜩ'},{'base':'U','letters':_0x34699f('0x1286')},{'base':'V','letters':_0x34699f('0x127b')},{'base':'VY','letters':'Ꝡ'},{'base':'W','letters':_0x34699f('0x105e')},{'base':'X','letters':_0x34699f('0x2ff3')},{'base':'Y','letters':_0x34699f('0xce3')},{'base':'Z','letters':_0x34699f('0x1682')},{'base':'a','letters':_0x34699f('0xfc2')},{'base':'aa','letters':'ꜳ'},{'base':'ae','letters':_0x34699f('0xd65')},{'base':'ao','letters':'ꜵ'},{'base':'au','letters':'ꜷ'},{'base':'av','letters':'ꜹꜻ'},{'base':'ay','letters':'ꜽ'},{'base':'b','letters':'bⓑbḃḅḇƀƃɓ'},{'base':'c','letters':_0x34699f('0x1290')},{'base':'d','letters':_0x34699f('0x184')},{'base':'dz','letters':'dzdž'},{'base':'e','letters':_0x34699f('0x57e')},{'base':'f','letters':'fⓕfḟƒꝼ'},{'base':'g','letters':_0x34699f('0xa59')},{'base':'h','letters':'hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ'},{'base':'hv','letters':'ƕ'},{'base':'i','letters':'iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı'},{'base':'j','letters':_0x34699f('0xa3a')},{'base':'k','letters':'kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ'},{'base':'l','letters':_0x34699f('0x23d2')},{'base':'lj','letters':'lj'},{'base':'m','letters':_0x34699f('0x19b5')},{'base':'n','letters':_0x34699f('0x1c32')},{'base':'nj','letters':'nj'},{'base':'o','letters':_0x34699f('0xa3d')},{'base':'oi','letters':'ƣ'},{'base':'ou','letters':'ȣ'},{'base':'oo','letters':'ꝏ'},{'base':'p','letters':_0x34699f('0x320')},{'base':'q','letters':_0x34699f('0x11a5')},{'base':'r','letters':_0x34699f('0x2bbc')},{'base':'s','letters':_0x34699f('0x252f')},{'base':'t','letters':_0x34699f('0xc2a')},{'base':'tz','letters':'ꜩ'},{'base':'u','letters':_0x34699f('0x1b0e')},{'base':'v','letters':'vⓥvṽṿʋꝟʌ'},{'base':'vy','letters':'ꝡ'},{'base':'w','letters':_0x34699f('0x846')},{'base':'x','letters':'xⓧxẋẍ'},{'base':'y','letters':'yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ'},{'base':'z','letters':_0x34699f('0x2f9e')}],_0x442697={},_0x193ae8=0x0;_0x193ae8<_0x51d40f['length'];_0x193ae8++)for(var _0x958c63=_0x51d40f[_0x193ae8][_0x34699f('0xfa')][_0x34699f('0x23ee')](''),_0x12ff9b=0x0;_0x12ff9b<_0x958c63[_0x34699f('0x175a')];_0x12ff9b++)_0x442697[_0x958c63[_0x12ff9b]]=_0x51d40f[_0x193ae8][_0x34699f('0x943')];return function(_0x1f0a89){return _0x1777bb(_0x1f0a89)?_0x1f0a89['replace'](/[^\u0000-\u007E]/g,function(_0x5859cd){return _0x442697[_0x5859cd]||_0x5859cd;}):_0x1f0a89;};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x13e8'),[])['filter']('ltrim',function(){return function(_0x2dec60,_0x1353fe){var _0x46c621=a2_0x4bfe,_0x569923=_0x1353fe||'\x5cs';return _0x1777bb(_0x2dec60)?_0x2dec60[_0x46c621('0x34c8')](new RegExp('^'+_0x569923+'+'),''):_0x2dec60;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x1070'),[])['filter'](_0x5b6c36('0x21ae'),function(){return function(_0x41744a,_0x2f2f8b,_0x4b4164){var _0xb73c02=new RegExp(_0x2f2f8b,_0x4b4164);return _0x1777bb(_0x41744a)?_0x41744a['match'](_0xb73c02):null;};}),_0x5190ec['module'](_0x5b6c36('0x29e9'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x154'),function(){return function(_0x12966d){var _0x573048=a2_0x4bfe;return'('+(_0x12966d+='')['slice'](0x0,0x3)+')\x20'+_0x12966d[_0x573048('0x2c0a')](0x3,0x6)+'-'+_0x12966d[_0x573048('0x2c0a')](0x6);};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x2a40'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x1eec'),[function(){return function(_0x3341a9,_0x5bc4b7,_0x573dae){var _0x34afac=~~_0x5bc4b7;return _0x1777bb(_0x3341a9)&&_0x34afac?_0x5df645(_0x3341a9,--_0x5bc4b7,_0x573dae||''):_0x3341a9;};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x1cad'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x2adb'),function(){return function(_0x2855fb,_0x3dbaae){var _0x3852b2=a2_0x4bfe,_0x17df16=_0x3dbaae||'\x5cs';return _0x1777bb(_0x2855fb)?_0x2855fb[_0x3852b2('0x34c8')](new RegExp(_0x17df16+'+$'),''):_0x2855fb;};}),_0x5190ec[_0x5b6c36('0x122c')]('a8m.slugify',[])[_0x5b6c36('0x3127')](_0x5b6c36('0x28c3'),[function(){return function(_0x59ab18,_0x75e7a6){var _0x26f7f7=a2_0x4bfe,_0x47e2a0=_0x3dc685(_0x75e7a6)?'-':_0x75e7a6;return _0x1777bb(_0x59ab18)?_0x59ab18[_0x26f7f7('0x856')]()[_0x26f7f7('0x34c8')](/\s+/g,_0x47e2a0):_0x59ab18;};}]),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x1a6f'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x23ee'),function(){return function(_0x1bf8fb,_0x3be2d3,_0x7bfb60){var _0x4278a0=a2_0x4bfe,_0x2dc629,_0x2c37d1,_0x3a0b98,_0x29e043;return _0x3dc685(_0x1bf8fb)||!_0x1777bb(_0x1bf8fb)?null:(_0x3dc685(_0x3be2d3)&&(_0x3be2d3=''),isNaN(_0x7bfb60)&&(_0x7bfb60=0x0),_0x2dc629=new RegExp(_0x3be2d3[_0x4278a0('0x34c8')](/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,_0x4278a0('0x524')),'g'),_0x14ae35(_0x2c37d1=_0x1bf8fb['match'](_0x2dc629))||_0x7bfb60>=_0x2c37d1['length']?[_0x1bf8fb]:0x0===_0x7bfb60?_0x1bf8fb[_0x4278a0('0x23ee')](_0x3be2d3):(_0x29e043=(_0x3a0b98=_0x1bf8fb[_0x4278a0('0x23ee')](_0x3be2d3))['splice'](0x0,_0x7bfb60+0x1),_0x3a0b98['unshift'](_0x29e043[_0x4278a0('0x6a8')](_0x3be2d3)),_0x3a0b98));};}),_0x5190ec[_0x5b6c36('0x122c')]('a8m.starts-with',[])[_0x5b6c36('0x3127')](_0x5b6c36('0x25ca'),function(){return function(_0x19a98c,_0x3d9c69,_0x17a9ec){var _0x5a6b6e=a2_0x4bfe,_0x174f52=_0x17a9ec||!0x1;return!_0x1777bb(_0x19a98c)||_0x3dc685(_0x3d9c69)?_0x19a98c:!(_0x19a98c=_0x174f52?_0x19a98c:_0x19a98c[_0x5a6b6e('0x856')]())[_0x5a6b6e('0xe1c')](_0x174f52?_0x3d9c69:_0x3d9c69[_0x5a6b6e('0x856')]());};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x1107'),[])['filter']('stringular',function(){return function(_0x34292d){var _0x3b71f3=a2_0x4bfe,_0x588455=Array['prototype']['slice'][_0x3b71f3('0x2449')](arguments,0x1);return _0x34292d['replace'](/{(\d+)}/g,function(_0x1f417a,_0x45575f){return _0x3dc685(_0x588455[_0x45575f])?_0x1f417a:_0x588455[_0x45575f];});};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0xd07'),[])[_0x5b6c36('0x3127')]('stripTags',function(){return function(_0x27b2a7){var _0x4f2ab6=a2_0x4bfe;return _0x1777bb(_0x27b2a7)?_0x27b2a7[_0x4f2ab6('0x34c8')](/<\S[^><]*>/g,''):_0x27b2a7;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x1f3a'),[])['filter'](_0x5b6c36('0x19cd'),function(){return function(_0x3e0706,_0x1cc438,_0x2d00f4){var _0x4d2ce6=a2_0x4bfe,_0xc9f205=new RegExp(_0x1cc438,_0x2d00f4);return _0x1777bb(_0x3e0706)?_0xc9f205[_0x4d2ce6('0x19cd')](_0x3e0706):_0x3e0706;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x1e1f'),[])['filter'](_0x5b6c36('0x2ec5'),function(){return function(_0xf2c9a,_0x5b7f80){var _0x4932ca=a2_0x4bfe,_0x2adeb1=_0x5b7f80||'\x5cs';return _0x1777bb(_0xf2c9a)?_0xf2c9a[_0x4932ca('0x34c8')](new RegExp('^'+_0x2adeb1+'+|'+_0x2adeb1+'+$','g'),''):_0xf2c9a;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x19a4'),[])[_0x5b6c36('0x3127')]('truncate',function(){return function(_0x528bef,_0x49c4dc,_0x3f0dec,_0x8e1768){var _0x59ef68=a2_0x4bfe;return _0x49c4dc=_0x3dc685(_0x49c4dc)?_0x528bef[_0x59ef68('0x175a')]:_0x49c4dc,_0x8e1768=_0x8e1768||!0x1,_0x3f0dec=_0x3f0dec||'',!_0x1777bb(_0x528bef)||_0x528bef[_0x59ef68('0x175a')]<=_0x49c4dc?_0x528bef:_0x528bef[_0x59ef68('0x92')](0x0,_0x8e1768?-0x1===_0x528bef[_0x59ef68('0xe1c')]('\x20',_0x49c4dc)?_0x528bef[_0x59ef68('0x175a')]:_0x528bef[_0x59ef68('0xe1c')]('\x20',_0x49c4dc):_0x49c4dc)+_0x3f0dec;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0xcc6'),[])['filter']({'ucfirst':_0x346a60,'titleize':_0x346a60}),_0x5190ec['module'](_0x5b6c36('0x2ed9'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x2d2e'),['$window',function(_0x17dae7){return function(_0x5640dc){return _0x1777bb(_0x5640dc)?_0x17dae7['encodeURIComponent'](_0x5640dc):_0x5640dc;};}]),_0x5190ec['module'](_0x5b6c36('0x172e'),[])[_0x5b6c36('0x3127')](_0x5b6c36('0x1ee5'),['$window',function(_0x3abe17){return function(_0x18109c){var _0x5d7bd1=a2_0x4bfe;return _0x1777bb(_0x18109c)?_0x3abe17[_0x5d7bd1('0x2c42')](_0x18109c):_0x18109c;};}]),_0x5190ec['module']('a8m.wrap',[])['filter']('wrap',function(){return function(_0x17a913,_0x3630fd,_0xe0189){var _0x531d3f=a2_0x4bfe;return _0x1777bb(_0x17a913)&&_0x47e78d(_0x3630fd)?[_0x3630fd,_0x17a913,_0xe0189||_0x3630fd][_0x531d3f('0x6a8')](''):_0x17a913;};}),_0x5190ec[_0x5b6c36('0x122c')](_0x5b6c36('0x187e'),[])[_0x5b6c36('0x210d')](_0x5b6c36('0x17c4'),function(){var _0x52cd95=_0x5b6c36;this[_0x52cd95('0x2b72')]=[_0x52cd95('0x398e'),_0x52cd95('0x709'),function(_0x7f53d2,_0x3f77e9){var _0xa2a38=_0x52cd95,_0xcf02a4={},_0x59b42e={},_0x48622f=_0x7f53d2[_0xa2a38('0x16d4')];function _0x5a5e20(_0x3e67f2,_0x21bd65){var _0x4304c4=_0xa2a38;return[_0x3e67f2,JSON['stringify'](_0x21bd65,(_0x3b7444=[],function(_0x374732,_0x1c81e8){var _0x135ab2=a2_0x4bfe;if(_0x248c63(_0x1c81e8)&&!_0x14ae35(_0x1c81e8)){if(~_0x3b7444[_0x135ab2('0xe1c')](_0x1c81e8))return _0x135ab2('0x1cab');_0x3b7444[_0x135ab2('0x1a90')](_0x1c81e8);}return _0x7f53d2==_0x1c81e8?_0x135ab2('0x109b'):_0x7f53d2[_0x135ab2('0x21a4')]==_0x1c81e8?_0x135ab2('0x2791'):_0x45c78a(_0x1c81e8)?_0x135ab2('0x2a5a'):_0x1c81e8;}))][_0x4304c4('0x6a8')]('#')[_0x4304c4('0x34c8')](/"/g,'');var _0x3b7444;}function _0x375840(_0x261eff){var _0x391bd7=_0xa2a38,_0x167e15=_0x261eff[_0x391bd7('0x2c49')][_0x391bd7('0x28bf')];_0x395fb5(_0x59b42e[_0x167e15],function(_0x251209){delete _0xcf02a4[_0x251209];}),delete _0x59b42e[_0x167e15];}return{'isMemoized':function(_0x19fccd,_0x821119){var _0x3fd9aa=_0x5a5e20(_0x19fccd,_0x821119);return _0xcf02a4[_0x3fd9aa];},'memoize':function(_0x2c04d1,_0x244015,_0x164e3f,_0x299797){var _0x51206c=_0x5a5e20(_0x2c04d1,_0x244015);return _0xcf02a4[_0x51206c]=_0x299797,_0x45c78a(_0x164e3f)?function(_0x4d87be,_0x5bb620){var _0x174982=a2_0x4bfe,_0x345ce0=_0x4d87be[_0x174982('0x28bf')];_0x3dc685(_0x59b42e[_0x345ce0])&&(_0x4d87be[_0x174982('0x1db8')](_0x174982('0x2f34'),_0x375840),_0x59b42e[_0x345ce0]=[]),_0x59b42e[_0x345ce0][_0x174982('0x1a90')](_0x5bb620);}(_0x164e3f,_0x51206c):_0x48622f(function(){var _0x44c4c4=a2_0x4bfe;_0x3f77e9[_0x44c4c4('0x24e0')]||(_0xcf02a4={});},0x7d0),_0x299797;}};}];}),_0x5190ec[_0x5b6c36('0x122c')]('angular.filter',['a8m.ucfirst','a8m.uri-encode',_0x5b6c36('0x2ed9'),_0x5b6c36('0x31d3'),_0x5b6c36('0x27b9'),_0x5b6c36('0xd07'),_0x5b6c36('0x1107'),_0x5b6c36('0x19a4'),_0x5b6c36('0x201b'),_0x5b6c36('0x31a1'),_0x5b6c36('0x1e78'),'a8m.trim',_0x5b6c36('0x13e8'),_0x5b6c36('0x1cad'),_0x5b6c36('0x2a40'),'a8m.test',_0x5b6c36('0x1070'),_0x5b6c36('0x1a6f'),'a8m.phoneUS','a8m.to-array',_0x5b6c36('0xa25'),_0x5b6c36('0xd76'),'a8m.unique','a8m.is-empty','a8m.after','a8m.after-where',_0x5b6c36('0x27c9'),_0x5b6c36('0x2aae'),'a8m.defaults',_0x5b6c36('0x1b44'),_0x5b6c36('0x2156'),_0x5b6c36('0x2619'),_0x5b6c36('0x3795'),_0x5b6c36('0xfe0'),_0x5b6c36('0x25b0'),_0x5b6c36('0x3081'),'a8m.search-field',_0x5b6c36('0x289b'),_0x5b6c36('0x63d'),_0x5b6c36('0xf80'),_0x5b6c36('0x15e7'),_0x5b6c36('0x26f7'),_0x5b6c36('0xd11'),_0x5b6c36('0x2b6f'),_0x5b6c36('0x718'),_0x5b6c36('0x2e2d'),_0x5b6c36('0x28ae'),'a8m.flatten',_0x5b6c36('0xf0c'),_0x5b6c36('0x2d01'),_0x5b6c36('0x2b3d'),'a8m.math.min',_0x5b6c36('0x2641'),'a8m.math.percent',_0x5b6c36('0x334'),_0x5b6c36('0xe95'),_0x5b6c36('0xc8c'),_0x5b6c36('0x196'),'a8m.math.byteFmt',_0x5b6c36('0x25cf'),'a8m.math.shortFmt',_0x5b6c36('0x2d27'),_0x5b6c36('0xf8b'),_0x5b6c36('0x132'),'a8m.filter-watcher']);}(window,window[_0x5b1e13('0x1d6d')]);},0x1be:(_0x346eda,_0x42015d,_0x26394b)=>{_0x26394b(0x7e6),_0x346eda['exports']='angular.filter';},0x1299:function(_0x3855be,_0x241bea,_0x5f1727){var _0x12ae2d,_0x1ea938,_0x222b66;!function(_0x4c6c34,_0x3658ee){var _0x56abdd=a2_0x4bfe;'use strict';_0x1ea938=[_0x5f1727(0x1666)],void 0x0===(_0x222b66='function'==typeof(_0x12ae2d=function(_0x2ec030){var _0x4365e4=a2_0x4bfe;return _0x2ec030[_0x4365e4('0x122c')](_0x4365e4('0x18d2'),[])[_0x4365e4('0x1a6d')](_0x4365e4('0x2a1'),{'columns':0x6,'pushing':!0x0,'floating':!0x0,'swapping':!0x1,'width':'auto','colWidth':_0x4365e4('0x1ae7'),'rowHeight':_0x4365e4('0x21ae'),'margins':[0xa,0xa],'outerMargin':!0x0,'sparse':!0x1,'isMobile':!0x1,'mobileBreakPoint':0x258,'mobileModeEnabled':!0x0,'minColumns':0x1,'minRows':0x1,'maxRows':0x64,'defaultSizeX':0x2,'defaultSizeY':0x1,'minSizeX':0x1,'maxSizeX':null,'minSizeY':0x1,'maxSizeY':null,'saveGridItemCalculatedHeightInMobile':!0x1,'resizable':{'enabled':!0x0,'handles':['s','e','n','w','se','ne','sw','nw']},'draggable':{'enabled':!0x0,'scrollSensitivity':0x14,'scrollSpeed':0xf}})[_0x4365e4('0x19f6')](_0x4365e4('0x2f73'),[_0x4365e4('0x2a1'),_0x4365e4('0x1993'),function(_0x29742d,_0x71f97f){var _0x1189bf=_0x4365e4,_0x454fdd=this;_0x2ec030[_0x1189bf('0x237f')](this,_0x29742d),this['resizable']=_0x2ec030['extend']({},_0x29742d[_0x1189bf('0x1e7d')]||{}),this['draggable']=_0x2ec030[_0x1189bf('0x237f')]({},_0x29742d[_0x1189bf('0x6a')]||{});var _0x4a1727=!0x1;this[_0x1189bf('0xd06')]=function(){_0x4a1727||(_0x4a1727=!0x0,_0x71f97f(function(){var _0x5af447=a2_0x4bfe;_0x4a1727=!0x1,_0x454fdd[_0x5af447('0x2e69')]&&_0x454fdd[_0x5af447('0x294')](),_0x454fdd[_0x5af447('0xa6b')](_0x454fdd[_0x5af447('0x3482')]?_0x454fdd[_0x5af447('0x3482')][_0x5af447('0x418')]:0x0);},0x1e));},this[_0x1189bf('0x1b8f')]=[],this[_0x1189bf('0x2814')]=[],this[_0x1189bf('0x2cdb')]=function(){var _0x4f0d6a=_0x1189bf;this[_0x4f0d6a('0x1b8f')]&&(this[_0x4f0d6a('0x1b8f')]=[]),this[_0x4f0d6a('0x34d6')]=null,this[_0x4f0d6a('0x2814')]&&(this[_0x4f0d6a('0x2814')]['length']=0x0,this[_0x4f0d6a('0x2814')]=null);},this['setOptions']=function(_0x357e78){var _0x4817de=_0x1189bf;if(_0x357e78){if((_0x357e78=_0x2ec030[_0x4817de('0x237f')]({},_0x357e78))[_0x4817de('0x6a')]&&(_0x2ec030[_0x4817de('0x237f')](this['draggable'],_0x357e78['draggable']),delete _0x357e78[_0x4817de('0x6a')]),_0x357e78[_0x4817de('0x1e7d')]&&(_0x2ec030['extend'](this[_0x4817de('0x1e7d')],_0x357e78[_0x4817de('0x1e7d')]),delete _0x357e78[_0x4817de('0x1e7d')]),_0x2ec030[_0x4817de('0x237f')](this,_0x357e78),this[_0x4817de('0x182b')]&&0x2===this['margins']['length'])for(var _0x1f42b4=0x0,_0x9920fe=this[_0x4817de('0x182b')][_0x4817de('0x175a')];_0x1f42b4<_0x9920fe;++_0x1f42b4)this[_0x4817de('0x182b')][_0x1f42b4]=parseInt(this[_0x4817de('0x182b')][_0x1f42b4],0xa),isNaN(this[_0x4817de('0x182b')][_0x1f42b4])&&(this[_0x4817de('0x182b')][_0x1f42b4]=0x0);else this[_0x4817de('0x182b')]=[0x0,0x0];}},this[_0x1189bf('0x27ba')]=function(_0x1868d3,_0x2b85bd,_0x4a7490){var _0x32b9c3=_0x1189bf;return _0x2b85bd>-0x1&&_0x4a7490>-0x1&&_0x1868d3['sizeX']+_0x4a7490<=this['columns']&&_0x1868d3[_0x32b9c3('0x418')]+_0x2b85bd<=this[_0x32b9c3('0x1aba')];},this[_0x1189bf('0x241d')]=function(_0x359894){var _0x4efc74=_0x1189bf;for(var _0x1abc81=0x0;_0x1abc81=_0x4b968e['col']&&_0x30a608<=_0x4b968e[_0x3319b4('0x148a')]+_0x4b968e[_0x3319b4('0x418')]-0x1&&_0x1aec81>=_0x4b968e[_0x3319b4('0x148a')];},this[_0x1189bf('0x277d')]=function(_0xeb123b){var _0x4056d9=_0x1189bf;for(var _0x572556,_0x14e8e4=0x0,_0x1a42bc=this['grid']['length'];_0x14e8e4<_0x1a42bc;++_0x14e8e4){var _0xaa736b=this[_0x4056d9('0x1b8f')][_0x14e8e4];if(_0xaa736b&&-0x1!==(_0x572556=_0xaa736b[_0x4056d9('0xe1c')](_0xeb123b))){_0xaa736b[_0x572556]=null;break;}}this[_0x4056d9('0x196c')]&&(-0x1!==(_0x572556=this[_0x4056d9('0x2814')]['indexOf'](_0xeb123b))&&this[_0x4056d9('0x2814')][_0x4056d9('0x1f40')](_0x572556,0x1)),this[_0x4056d9('0xd06')]();},this[_0x1189bf('0x3529')]=function(_0x439f0d,_0x2ca44a,_0x44f750){var _0x1769ed=_0x1189bf;!_0x44f750||_0x44f750 instanceof Array||(_0x44f750=[_0x44f750]);for(var _0x41d51e=0x1;_0x439f0d>-0x1;){for(var _0x410fc3=0x1,_0x602ed2=_0x2ca44a;_0x602ed2>-0x1;){var _0x219911=this['grid'][_0x439f0d];if(_0x219911){var _0xeb393a=_0x219911[_0x602ed2];if(_0xeb393a&&(!_0x44f750||-0x1===_0x44f750['indexOf'](_0xeb393a))&&_0xeb393a[_0x1769ed('0x27')]>=_0x410fc3&&_0xeb393a[_0x1769ed('0x418')]>=_0x41d51e)return _0xeb393a;}++_0x410fc3,--_0x602ed2;}--_0x439f0d,++_0x41d51e;}return null;},this[_0x1189bf('0x257c')]=function(_0x3698a8){for(var _0x3a6e53=0x0,_0x223cbe=_0x3698a8['length'];_0x3a6e53<_0x223cbe;++_0x3a6e53)this['putItem'](_0x3698a8[_0x3a6e53]);},this[_0x1189bf('0x2b5a')]=function(_0x5b6354,_0x14c50a,_0x4d863d,_0x5785ed){var _0x2cb81f=_0x1189bf;if(null!=_0x14c50a||(_0x14c50a=_0x5b6354['row'],_0x4d863d=_0x5b6354[_0x2cb81f('0x30a6')],null!=_0x14c50a)){if(this[_0x2cb81f('0x27ba')](_0x5b6354,_0x14c50a,_0x4d863d)||(_0x4d863d=Math[_0x2cb81f('0x3230')](this[_0x2cb81f('0x31c')]-_0x5b6354[_0x2cb81f('0x27')],Math['max'](0x0,_0x4d863d)),_0x14c50a=Math[_0x2cb81f('0x3230')](this[_0x2cb81f('0x1aba')]-_0x5b6354[_0x2cb81f('0x418')],Math['max'](0x0,_0x14c50a))),null!==_0x5b6354['oldRow']&&void 0x0!==_0x5b6354[_0x2cb81f('0x114e')]){var _0x4f79e2=_0x5b6354[_0x2cb81f('0x114e')]===_0x14c50a&&_0x5b6354[_0x2cb81f('0x1570')]===_0x4d863d,_0x281553=this[_0x2cb81f('0x1b8f')][_0x14c50a]&&this[_0x2cb81f('0x1b8f')][_0x14c50a][_0x4d863d]===_0x5b6354;if(_0x4f79e2&&_0x281553)return _0x5b6354[_0x2cb81f('0x148a')]=_0x14c50a,void(_0x5b6354[_0x2cb81f('0x30a6')]=_0x4d863d);var _0x35733b=this[_0x2cb81f('0x1b8f')][_0x5b6354[_0x2cb81f('0x114e')]];_0x35733b&&_0x35733b[_0x5b6354[_0x2cb81f('0x1570')]]===_0x5b6354&&delete _0x35733b[_0x5b6354[_0x2cb81f('0x1570')]];}_0x5b6354[_0x2cb81f('0x114e')]=_0x5b6354[_0x2cb81f('0x148a')]=_0x14c50a,_0x5b6354[_0x2cb81f('0x1570')]=_0x5b6354[_0x2cb81f('0x30a6')]=_0x4d863d,this['moveOverlappingItems'](_0x5b6354,_0x5785ed),this['grid'][_0x14c50a]||(this[_0x2cb81f('0x1b8f')][_0x14c50a]=[]),this[_0x2cb81f('0x1b8f')][_0x14c50a][_0x4d863d]=_0x5b6354,this[_0x2cb81f('0x196c')]&&-0x1===this['allItems']['indexOf'](_0x5b6354)&&this[_0x2cb81f('0x2814')][_0x2cb81f('0x1a90')](_0x5b6354),this[_0x2cb81f('0x3482')]===_0x5b6354&&this[_0x2cb81f('0x2a98')](_0x5b6354),this[_0x2cb81f('0xd06')]();}else this[_0x2cb81f('0x241d')](_0x5b6354);},this[_0x1189bf('0x22e3')]=function(_0x2c1d5f,_0x4224d4){var _0x30aae5=_0x1189bf;this['grid'][_0x2c1d5f[_0x30aae5('0x148a')]][_0x2c1d5f[_0x30aae5('0x30a6')]]=_0x4224d4,this[_0x30aae5('0x1b8f')][_0x4224d4[_0x30aae5('0x148a')]][_0x4224d4[_0x30aae5('0x30a6')]]=_0x2c1d5f;var _0x3901e8=_0x2c1d5f[_0x30aae5('0x148a')],_0x1e864f=_0x2c1d5f[_0x30aae5('0x30a6')];_0x2c1d5f[_0x30aae5('0x148a')]=_0x4224d4[_0x30aae5('0x148a')],_0x2c1d5f[_0x30aae5('0x30a6')]=_0x4224d4[_0x30aae5('0x30a6')],_0x4224d4[_0x30aae5('0x148a')]=_0x3901e8,_0x4224d4[_0x30aae5('0x30a6')]=_0x1e864f;},this['moveOverlappingItems']=function(_0x415cf9,_0x57ea83){var _0x1bf130=_0x1189bf;_0x57ea83?-0x1===_0x57ea83[_0x1bf130('0xe1c')](_0x415cf9)&&(_0x57ea83=_0x57ea83[_0x1bf130('0x2c0a')](0x0))[_0x1bf130('0x1a90')](_0x415cf9):_0x57ea83=[_0x415cf9];var _0xe1b3b8=this[_0x1bf130('0x38cb')](_0x415cf9[_0x1bf130('0x148a')],_0x415cf9['col'],_0x415cf9[_0x1bf130('0x27')],_0x415cf9[_0x1bf130('0x418')],_0x57ea83);this['moveItemsDown'](_0xe1b3b8,_0x415cf9[_0x1bf130('0x148a')]+_0x415cf9['sizeY'],_0x57ea83);},this[_0x1189bf('0x163f')]=function(_0x13e3e7,_0x3b13c,_0x283c65){var _0x821e0c=_0x1189bf;if(_0x13e3e7&&0x0!==_0x13e3e7[_0x821e0c('0x175a')]){_0x13e3e7[_0x821e0c('0x3902')](function(_0x5f5164,_0x1c9f2c){var _0x2ad5ce=_0x821e0c;return _0x5f5164['row']-_0x1c9f2c[_0x2ad5ce('0x148a')];}),_0x283c65=_0x283c65?_0x283c65[_0x821e0c('0x2c0a')](0x0):[];var _0x1f2388,_0x30f3df,_0x4813c1,_0x1392b9={};for(_0x30f3df=0x0,_0x4813c1=_0x13e3e7[_0x821e0c('0x175a')];_0x30f3df<_0x4813c1;++_0x30f3df){var _0x289935=_0x1392b9[(_0x1f2388=_0x13e3e7[_0x30f3df])[_0x821e0c('0x30a6')]];(void 0x0===_0x289935||_0x1f2388[_0x821e0c('0x148a')]<_0x289935)&&(_0x1392b9[_0x1f2388['col']]=_0x1f2388[_0x821e0c('0x148a')]);}for(_0x30f3df=0x0,_0x4813c1=_0x13e3e7[_0x821e0c('0x175a')];_0x30f3df<_0x4813c1;++_0x30f3df){var _0x37da82=_0x3b13c-_0x1392b9[(_0x1f2388=_0x13e3e7[_0x30f3df])['col']];this[_0x821e0c('0x1099')](_0x1f2388,_0x1f2388[_0x821e0c('0x148a')]+_0x37da82,_0x283c65),_0x283c65[_0x821e0c('0x1a90')](_0x1f2388);}}},this[_0x1189bf('0x1099')]=function(_0x11e5cb,_0x23b112,_0x337965){var _0x4a7e97=_0x1189bf;if(!(_0x11e5cb['row']>=_0x23b112)){for(;_0x11e5cb[_0x4a7e97('0x148a')]<_0x23b112;)++_0x11e5cb[_0x4a7e97('0x148a')],this[_0x4a7e97('0x2ef8')](_0x11e5cb,_0x337965);this[_0x4a7e97('0x2b5a')](_0x11e5cb,_0x11e5cb[_0x4a7e97('0x148a')],_0x11e5cb[_0x4a7e97('0x30a6')],_0x337965);}},this['floatItemsUp']=function(){var _0x58b50f=_0x1189bf;if(!0x1!==this[_0x58b50f('0x1231')])for(var _0x4eaa7f=0x0,_0x51c2f1=this[_0x58b50f('0x1b8f')][_0x58b50f('0x175a')];_0x4eaa7f<_0x51c2f1;++_0x4eaa7f){var _0x3902a4=this['grid'][_0x4eaa7f];if(_0x3902a4)for(var _0x3a92aa=0x0,_0x249360=_0x3902a4[_0x58b50f('0x175a')];_0x3a92aa<_0x249360;++_0x3a92aa){var _0x49eda1=_0x3902a4[_0x3a92aa];_0x49eda1&&this[_0x58b50f('0x2a98')](_0x49eda1);}}},this[_0x1189bf('0x2a98')]=function(_0x252b66){var _0x5bcd48=_0x1189bf;if(!0x1!==this[_0x5bcd48('0x1231')]){for(var _0x459de7=_0x252b66[_0x5bcd48('0x30a6')],_0x12404c=_0x252b66['sizeY'],_0x47d48c=_0x252b66[_0x5bcd48('0x27')],_0x3844b0=null,_0x2de68b=null,_0x41f465=_0x252b66[_0x5bcd48('0x148a')]-0x1;_0x41f465>-0x1;){if(0x0!==this['getItems'](_0x41f465,_0x459de7,_0x47d48c,_0x12404c,_0x252b66)['length'])break;_0x3844b0=_0x41f465,_0x2de68b=_0x459de7,--_0x41f465;}null!==_0x3844b0&&this[_0x5bcd48('0x2b5a')](_0x252b66,_0x3844b0,_0x2de68b);}},this[_0x1189bf('0xa6b')]=function(_0x40dca3){var _0x10217b=_0x1189bf,_0x5ed071=this[_0x10217b('0x1a04')];_0x40dca3=_0x40dca3||0x0;for(var _0xde1b27=this[_0x10217b('0x1b8f')][_0x10217b('0x175a')];_0xde1b27>=0x0;--_0xde1b27){var _0x1f0fda=this[_0x10217b('0x1b8f')][_0xde1b27];if(_0x1f0fda)for(var _0x140f83=0x0,_0x2ba37d=_0x1f0fda[_0x10217b('0x175a')];_0x140f83<_0x2ba37d;++_0x140f83)_0x1f0fda[_0x140f83]&&(_0x5ed071=Math[_0x10217b('0x2780')](_0x5ed071,_0xde1b27+_0x40dca3+_0x1f0fda[_0x140f83]['sizeY']));}this[_0x10217b('0x4cc')]=this[_0x10217b('0x1aba')]-_0x5ed071>0x0?Math['min'](this['maxRows'],_0x5ed071):Math[_0x10217b('0x2780')](this[_0x10217b('0x1aba')],_0x5ed071);},this[_0x1189bf('0x2c07')]=function(_0x1c7218,_0x5a3664){var _0xc30adb=_0x1189bf;return this[_0xc30adb('0x2c19')]||(_0x1c7218+=this[_0xc30adb('0x182b')][0x0]/0x2),!0x0===_0x5a3664?Math[_0xc30adb('0x140a')](_0x1c7218/this['curRowHeight']):!0x1===_0x5a3664?Math[_0xc30adb('0x2736')](_0x1c7218/this[_0xc30adb('0x531')]):Math[_0xc30adb('0x593')](_0x1c7218/this[_0xc30adb('0x531')]);},this[_0x1189bf('0x30ee')]=function(_0x3bb0a5,_0x265095){var _0x10a9b9=_0x1189bf;return this[_0x10a9b9('0x2c19')]||(_0x3bb0a5+=this[_0x10a9b9('0x182b')][0x1]/0x2),!0x0===_0x265095?Math['ceil'](_0x3bb0a5/this[_0x10a9b9('0x1557')]):!0x1===_0x265095?Math['floor'](_0x3bb0a5/this[_0x10a9b9('0x1557')]):Math[_0x10a9b9('0x593')](_0x3bb0a5/this['curColWidth']);};}])[_0x4365e4('0x1e30')](_0x4365e4('0x1dba'),function(){var _0x520dfe=_0x4365e4;return{'replace':!0x0,'scope':!0x0,'require':_0x520dfe('0x16a0'),'template':'','link':function(_0x34b067,_0x7384,_0x166431,_0x3cb3ef){var _0x356168=_0x520dfe;_0x34b067[_0x356168('0x14a5')]=function(){var _0x45514b=_0x356168;return _0x3cb3ef[_0x45514b('0x3482')]?{'display':_0x45514b('0x198d'),'height':_0x3cb3ef[_0x45514b('0x3482')]['sizeY']*_0x3cb3ef['curRowHeight']-_0x3cb3ef[_0x45514b('0x182b')][0x0]+'px','width':_0x3cb3ef['movingItem'][_0x45514b('0x27')]*_0x3cb3ef['curColWidth']-_0x3cb3ef['margins'][0x1]+'px','top':_0x3cb3ef[_0x45514b('0x3482')]['row']*_0x3cb3ef[_0x45514b('0x531')]+(_0x3cb3ef['outerMargin']?_0x3cb3ef['margins'][0x0]:0x0)+'px','left':_0x3cb3ef[_0x45514b('0x3482')][_0x45514b('0x30a6')]*_0x3cb3ef[_0x45514b('0x1557')]+(_0x3cb3ef[_0x45514b('0x2c19')]?_0x3cb3ef[_0x45514b('0x182b')][0x1]:0x0)+'px'}:{'display':_0x45514b('0xf01')};};}};})[_0x4365e4('0x1e30')](_0x4365e4('0x18d2'),[_0x4365e4('0x1993'),'$window','$rootScope',_0x4365e4('0x23a5'),function(_0xb256cc,_0x288e92,_0x341cd0,_0x5ea9e6){var _0x45d8b2=_0x4365e4;return{'scope':!0x0,'restrict':_0x45d8b2('0x2aff'),'controller':_0x45d8b2('0x2f73'),'controllerAs':_0x45d8b2('0x18d2'),'compile':function(_0x1381ff){var _0x263438=_0x45d8b2;return _0x1381ff[_0x263438('0x1476')](_0x263438('0x89f')),function(_0x52f0a3,_0x17dea1,_0x5036ba,_0x4938fd){var _0x46e557=_0x263438;function _0x456502(){var _0x2adec2=a2_0x4bfe;_0x17dea1['css'](_0x2adec2('0x28c'),_0x4938fd[_0x2adec2('0x4cc')]*_0x4938fd[_0x2adec2('0x531')]+(_0x4938fd[_0x2adec2('0x2c19')]?_0x4938fd['margins'][0x0]:-_0x4938fd[_0x2adec2('0x182b')][0x0])+'px');}function _0x4a66d1(_0x5b7aae){var _0x1d8d36=a2_0x4bfe;if(_0x4938fd[_0x1d8d36('0x27cc')](_0x5b7aae),_0x2b1c6e(_0x17dea1[0x0])){'auto'===_0x4938fd[_0x1d8d36('0x2bac')]?_0x4938fd[_0x1d8d36('0x6d2')]=_0x17dea1[0x0][_0x1d8d36('0x1fe5')]||parseInt(_0x17dea1['css'](_0x1d8d36('0x2bac')),0xa):_0x4938fd[_0x1d8d36('0x6d2')]=_0x4938fd[_0x1d8d36('0x2bac')],_0x1d8d36('0x1ae7')===_0x4938fd['colWidth']?_0x4938fd[_0x1d8d36('0x1557')]=(_0x4938fd[_0x1d8d36('0x6d2')]+(_0x4938fd[_0x1d8d36('0x2c19')]?-_0x4938fd['margins'][0x1]:_0x4938fd['margins'][0x1]))/_0x4938fd['columns']:_0x4938fd['curColWidth']=_0x4938fd[_0x1d8d36('0x1d08')],_0x4938fd[_0x1d8d36('0x531')]=_0x4938fd[_0x1d8d36('0x298a')],'string'==typeof _0x4938fd[_0x1d8d36('0x298a')]&&(_0x1d8d36('0x21ae')===_0x4938fd[_0x1d8d36('0x298a')]?_0x4938fd['curRowHeight']=Math['round'](_0x4938fd[_0x1d8d36('0x1557')]):-0x1!==_0x4938fd[_0x1d8d36('0x298a')][_0x1d8d36('0xe1c')]('*')?_0x4938fd[_0x1d8d36('0x531')]=Math[_0x1d8d36('0x593')](_0x4938fd['curColWidth']*_0x4938fd[_0x1d8d36('0x298a')]['replace']('*','')[_0x1d8d36('0x34c8')]('\x20','')):-0x1!==_0x4938fd[_0x1d8d36('0x298a')][_0x1d8d36('0xe1c')]('/')&&(_0x4938fd[_0x1d8d36('0x531')]=Math[_0x1d8d36('0x593')](_0x4938fd[_0x1d8d36('0x1557')]/_0x4938fd[_0x1d8d36('0x298a')]['replace']('/','')['replace']('\x20','')))),_0x4938fd[_0x1d8d36('0x390c')]=_0x4938fd[_0x1d8d36('0x631')]&&_0x4938fd[_0x1d8d36('0x6d2')]<=_0x4938fd[_0x1d8d36('0x311e')];for(var _0x3c0db0=0x0,_0x1cdcd1=_0x4938fd[_0x1d8d36('0x1b8f')][_0x1d8d36('0x175a')];_0x3c0db0<_0x1cdcd1;++_0x3c0db0){var _0x27b4cb=_0x4938fd[_0x1d8d36('0x1b8f')][_0x3c0db0];if(_0x27b4cb)for(var _0x414479=0x0,_0x2c8b7d=_0x27b4cb[_0x1d8d36('0x175a')];_0x414479<_0x2c8b7d;++_0x414479)if(_0x27b4cb[_0x414479]){var _0x4feb1a=_0x27b4cb[_0x414479];_0x4feb1a[_0x1d8d36('0x31b4')](),_0x4feb1a[_0x1d8d36('0x2951')](),_0x4feb1a[_0x1d8d36('0x300b')]();}}_0x456502();}}_0x4938fd[_0x46e557('0x2e69')]=!0x1,_0x4938fd['$element']=_0x17dea1,_0x52f0a3[_0x46e557('0x18d2')]=_0x4938fd,_0x17dea1[_0x46e557('0x2dc8')](_0x46e557('0x18d2'));var _0x2b1c6e=function(_0x4d6e6e){var _0x17a393=_0x46e557;return _0x17a393('0x1bdf')!==_0x4d6e6e['style'][_0x17a393('0x307c')]&&_0x17a393('0xf01')!==_0x4d6e6e[_0x17a393('0x14b6')][_0x17a393('0xa85')];};_0x52f0a3[_0x46e557('0x1cb1')](function(){return _0x4938fd['gridHeight'];},_0x456502),_0x52f0a3['$watch'](function(){var _0x200360=_0x46e557;return _0x4938fd[_0x200360('0x3482')];},function(){var _0x25e6ec=_0x46e557;_0x4938fd[_0x25e6ec('0xa6b')](_0x4938fd[_0x25e6ec('0x3482')]?_0x4938fd[_0x25e6ec('0x3482')]['sizeY']:0x0);});var _0x54da0f=_0x5036ba[_0x46e557('0x18d2')];_0x54da0f?_0x52f0a3[_0x46e557('0x955')][_0x46e557('0x1cb1')](_0x54da0f,function(_0x4a9a8e){_0x4a66d1(_0x4a9a8e);},!0x0):_0x4a66d1({}),_0x52f0a3[_0x46e557('0x1cb1')](function(){var _0x1a4a8d=_0x46e557;return _0x4938fd[_0x1a4a8d('0x2e69')];},function(){var _0x4d5c27=_0x46e557;_0x4938fd[_0x4d5c27('0x2e69')]?(_0x17dea1[_0x4d5c27('0x2dc8')](_0x4d5c27('0x158b')),_0x341cd0[_0x4d5c27('0x1c18')](_0x4d5c27('0x158b'),_0x4938fd)):_0x17dea1['removeClass'](_0x4d5c27('0x158b'));}),_0x52f0a3['$watch'](function(){return _0x4938fd['isMobile'];},function(){var _0x1efc35=_0x46e557;_0x4938fd['isMobile']?_0x17dea1[_0x1efc35('0x2dc8')]('gridster-mobile')[_0x1efc35('0x3a0')](_0x1efc35('0x297a')):_0x17dea1['removeClass']('gridster-mobile')[_0x1efc35('0x2dc8')]('gridster-desktop'),_0x341cd0[_0x1efc35('0x1c18')](_0x1efc35('0x40c'),_0x4938fd);}),_0x52f0a3[_0x46e557('0x1cb1')](function(){var _0x482298=_0x46e557;return _0x4938fd[_0x482298('0x6a')];},function(){var _0x3e013f=_0x46e557;_0x341cd0[_0x3e013f('0x1c18')]('gridster-draggable-changed',_0x4938fd);},!0x0),_0x52f0a3[_0x46e557('0x1cb1')](function(){var _0x29ab2d=_0x46e557;return _0x4938fd[_0x29ab2d('0x1e7d')];},function(){var _0x5e0570=_0x46e557;_0x341cd0[_0x5e0570('0x1c18')](_0x5e0570('0x13b6'),_0x4938fd);},!0x0);var _0xface19=_0x17dea1[0x0]['offsetWidth']||parseInt(_0x17dea1[_0x46e557('0x30a3')](_0x46e557('0x2bac')),0xa),_0x573ed4=function(){var _0x51d0f7=_0x46e557,_0x3823ff=_0x17dea1[0x0][_0x51d0f7('0x1fe5')]||parseInt(_0x17dea1[_0x51d0f7('0x30a3')](_0x51d0f7('0x2bac')),0xa);_0x3823ff&&_0x3823ff!==_0xface19&&!_0x4938fd['movingItem']&&(_0xface19=_0x3823ff,_0x4938fd[_0x51d0f7('0x2e69')]&&_0x17dea1[_0x51d0f7('0x3a0')](_0x51d0f7('0x158b')),_0x4a66d1(),_0x4938fd[_0x51d0f7('0x2e69')]&&_0x17dea1['addClass'](_0x51d0f7('0x158b')),_0x341cd0['$broadcast'](_0x51d0f7('0x16cb'),[_0x3823ff,_0x17dea1[0x0][_0x51d0f7('0x1147')]],_0x4938fd));},_0xdc33f1=_0x5ea9e6(function(){_0x573ed4(),_0xb256cc(function(){var _0x49cbb8=a2_0x4bfe;_0x52f0a3[_0x49cbb8('0x1280')]();});},0x64);_0x52f0a3[_0x46e557('0x1cb1')](function(){return _0x2b1c6e(_0x17dea1[0x0]);},_0xdc33f1),'function'==typeof window[_0x46e557('0x2e6')]?window[_0x46e557('0x2e6')](_0x17dea1[0x0],_0xdc33f1):_0x52f0a3['$watch'](function(){var _0x79e328=_0x46e557;return _0x17dea1[0x0]['offsetWidth']||parseInt(_0x17dea1[_0x79e328('0x30a3')](_0x79e328('0x2bac')),0xa);},_0x573ed4);var _0x4db473=_0x2ec030[_0x46e557('0x88a')](_0x288e92);_0x4db473['on']('resize',_0xdc33f1),_0x52f0a3[_0x46e557('0x1db8')](_0x46e557('0x2f34'),function(){var _0xaf9dfd=_0x46e557;_0x4938fd[_0xaf9dfd('0x2cdb')](),_0x4db473[_0xaf9dfd('0x1202')](_0xaf9dfd('0x32b7'),_0xdc33f1),_0xaf9dfd('0x19aa')==typeof window[_0xaf9dfd('0x9df')]&&window['removeResizeListener'](_0x17dea1[0x0],_0xdc33f1);}),_0xb256cc(function(){var _0x5d3cb1=_0x46e557;_0x52f0a3[_0x5d3cb1('0x1cb1')](_0x5d3cb1('0x20f2'),function(){var _0x3d842d=_0x5d3cb1;_0x4938fd[_0x3d842d('0x294')]();}),_0x4938fd[_0x5d3cb1('0x2e69')]=!0x0;},0x64);};}};}])[_0x4365e4('0x19f6')](_0x4365e4('0x2643'),function(){var _0xb00b1f=_0x4365e4;this[_0xb00b1f('0x34d6')]=null,this[_0xb00b1f('0x18d2')]=null,this[_0xb00b1f('0x148a')]=null,this[_0xb00b1f('0x30a6')]=null,this[_0xb00b1f('0x27')]=null,this[_0xb00b1f('0x418')]=null,this[_0xb00b1f('0x16e5')]=0x0,this[_0xb00b1f('0x22ad')]=0x0,this['maxSizeX']=null,this[_0xb00b1f('0x2379')]=null,this[_0xb00b1f('0x261a')]=function(_0xe8893f,_0x458af0){var _0x3dc1cb=_0xb00b1f;this[_0x3dc1cb('0x34d6')]=_0xe8893f,this[_0x3dc1cb('0x18d2')]=_0x458af0,this[_0x3dc1cb('0x27')]=_0x458af0[_0x3dc1cb('0x98a')],this[_0x3dc1cb('0x418')]=_0x458af0[_0x3dc1cb('0x3809')];},this['destroy']=function(){var _0x127529=_0xb00b1f;this[_0x127529('0x18d2')]=null,this[_0x127529('0x34d6')]=null;},this[_0xb00b1f('0x34ad')]=function(){var _0x5c535d=_0xb00b1f;return{'row':this[_0x5c535d('0x148a')],'col':this[_0x5c535d('0x30a6')],'sizeY':this['sizeY'],'sizeX':this[_0x5c535d('0x27')]};},this[_0xb00b1f('0x3107')]=function(){var _0x2a067a=_0xb00b1f;return this[_0x2a067a('0x18d2')]['movingItem']===this;},this[_0xb00b1f('0x270a')]=function(_0x32f2ca,_0x47aab9){var _0x1111de=_0xb00b1f;this[_0x1111de('0x18d2')][_0x1111de('0x2b5a')](this,_0x32f2ca,_0x47aab9),this['isMoving']()||this[_0x1111de('0x31b4')]();},this[_0xb00b1f('0x1734')]=function(_0x3fcc49,_0x51c49f,_0x14f726){var _0x1fb863=_0xb00b1f,_0x492d99='size'+(_0x3fcc49=_0x3fcc49[_0x1fb863('0x1a66')]()),_0x515511=_0x1fb863('0x17c5')+_0x3fcc49;if(''!==_0x51c49f){_0x51c49f=parseInt(_0x51c49f,0xa),(isNaN(_0x51c49f)||0x0===_0x51c49f)&&(_0x51c49f=this[_0x1fb863('0x18d2')][_0x1fb863('0x3326')+_0x515511]);var _0x1ed782='X'===_0x3fcc49?this[_0x1fb863('0x18d2')][_0x1fb863('0x31c')]:this[_0x1fb863('0x18d2')][_0x1fb863('0x1aba')];this[_0x1fb863('0x2780')+_0x515511]&&(_0x1ed782=Math[_0x1fb863('0x3230')](this[_0x1fb863('0x2780')+_0x515511],_0x1ed782)),this[_0x1fb863('0x18d2')][_0x1fb863('0x2780')+_0x515511]&&(_0x1ed782=Math[_0x1fb863('0x3230')](this['gridster'][_0x1fb863('0x2780')+_0x515511],_0x1ed782)),'X'===_0x3fcc49&&this[_0x1fb863('0x1dfb')]?_0x1ed782-=this[_0x1fb863('0x1dfb')]:'Y'===_0x3fcc49&&this[_0x1fb863('0x70')]&&(_0x1ed782-=this[_0x1fb863('0x70')]);var _0x3c1538=0x0;this[_0x1fb863('0x3230')+_0x515511]&&(_0x3c1538=Math[_0x1fb863('0x2780')](this[_0x1fb863('0x3230')+_0x515511],_0x3c1538)),this['gridster']['min'+_0x515511]&&(_0x3c1538=Math[_0x1fb863('0x2780')](this[_0x1fb863('0x18d2')]['min'+_0x515511],_0x3c1538)),_0x51c49f=Math[_0x1fb863('0x2780')](Math[_0x1fb863('0x3230')](_0x51c49f,_0x1ed782),_0x3c1538);var _0x47528a=this[_0x492d99]!==_0x51c49f||this['old'+_0x515511]&&this[_0x1fb863('0xe66')+_0x515511]!==_0x51c49f;return this[_0x1fb863('0xe66')+_0x515511]=this[_0x492d99]=_0x51c49f,this[_0x1fb863('0x3107')]()||this[_0x1fb863('0x379d')+_0x515511](),!_0x14f726&&_0x47528a&&(this['gridster'][_0x1fb863('0x2ef8')](this),this[_0x1fb863('0x18d2')][_0x1fb863('0xd06')]()),_0x47528a;}},this['setSizeY']=function(_0x2d3c39,_0x1f89f0){var _0x4b5eec=_0xb00b1f;return this[_0x4b5eec('0x1734')]('Y',_0x2d3c39,_0x1f89f0);},this['setSizeX']=function(_0x5d6207,_0x4dbc38){var _0x12a8db=_0xb00b1f;return this[_0x12a8db('0x1734')]('X',_0x5d6207,_0x4dbc38);},this['setElementPosition']=function(){var _0x808715=_0xb00b1f;this['gridster'][_0x808715('0x390c')]?this['$element'][_0x808715('0x30a3')]({'marginLeft':this[_0x808715('0x18d2')][_0x808715('0x182b')][0x0]+'px','marginRight':this[_0x808715('0x18d2')][_0x808715('0x182b')][0x0]+'px','marginTop':this['gridster'][_0x808715('0x182b')][0x1]+'px','marginBottom':this['gridster']['margins'][0x1]+'px','top':'','left':''}):this[_0x808715('0x34d6')][_0x808715('0x30a3')]({'margin':0x0,'top':this['row']*this[_0x808715('0x18d2')][_0x808715('0x531')]+(this[_0x808715('0x18d2')][_0x808715('0x2c19')]?this[_0x808715('0x18d2')][_0x808715('0x182b')][0x0]:0x0)+'px','left':this[_0x808715('0x30a6')]*this[_0x808715('0x18d2')][_0x808715('0x1557')]+(this[_0x808715('0x18d2')][_0x808715('0x2c19')]?this[_0x808715('0x18d2')][_0x808715('0x182b')][0x1]:0x0)+'px'});},this[_0xb00b1f('0x2951')]=function(){var _0x245f6e=_0xb00b1f;this[_0x245f6e('0x18d2')][_0x245f6e('0x390c')]&&!this[_0x245f6e('0x18d2')][_0x245f6e('0x8d5')]?this['$element'][_0x245f6e('0x30a3')](_0x245f6e('0x28c'),''):this[_0x245f6e('0x34d6')][_0x245f6e('0x30a3')](_0x245f6e('0x28c'),this[_0x245f6e('0x418')]*this[_0x245f6e('0x18d2')]['curRowHeight']-this[_0x245f6e('0x18d2')][_0x245f6e('0x182b')][0x0]+'px');},this[_0xb00b1f('0x300b')]=function(){var _0x46dd51=_0xb00b1f;this[_0x46dd51('0x18d2')][_0x46dd51('0x390c')]?this['$element'][_0x46dd51('0x30a3')]('width',''):this['$element'][_0x46dd51('0x30a3')]('width',this[_0x46dd51('0x27')]*this[_0x46dd51('0x18d2')][_0x46dd51('0x1557')]-this[_0x46dd51('0x18d2')][_0x46dd51('0x182b')][0x1]+'px');},this[_0xb00b1f('0x2413')]=function(){var _0x4b7550=_0xb00b1f;return this['sizeX']*this['gridster'][_0x4b7550('0x1557')]-this[_0x4b7550('0x18d2')][_0x4b7550('0x182b')][0x1];},this[_0xb00b1f('0x2ab1')]=function(){var _0x30853d=_0xb00b1f;return this['sizeY']*this['gridster']['curRowHeight']-this[_0x30853d('0x18d2')]['margins'][0x0];};})[_0x4365e4('0x36b0')](_0x4365e4('0x33e8'),[function(){return function(_0x51c2a6,_0x2f61d4,_0x55551a,_0x13f131){var _0x21eb7b=a2_0x4bfe,_0x5f4a2e,_0x22cbcf,_0x486d2e={},_0x1e4d3f=function(_0x1cd462){var _0xd627db=a2_0x4bfe;if(Object[_0xd627db('0x1a3f')])return Object['keys'](_0x1cd462)[_0xd627db('0x175a')];var _0x1bf331,_0xdd5202=0x0;for(_0x1bf331 in _0x1cd462)++_0xdd5202;return _0xdd5202;},_0x47f159=function(_0xe2ad96){var _0xc344fc=a2_0x4bfe;for(var _0x41e26b=0x0,_0x5f0a8d=0x0,_0x5085b7=navigator[_0xc344fc('0x3656')][_0xc344fc('0x21ae')](/\bMSIE\b/),_0x5a52b=_0xe2ad96;null!=_0x5a52b;_0x5a52b=_0x5a52b[_0xc344fc('0x35d7')])_0x5085b7&&(!document[_0xc344fc('0x2320')]||document[_0xc344fc('0x2320')]<0x8)&&_0xc344fc('0xf16')===_0x5a52b[_0xc344fc('0x12a7')]['position']&&_0x5a52b[_0xc344fc('0x35d7')]&&'relative'===_0x5a52b[_0xc344fc('0x35d7')][_0xc344fc('0x12a7')][_0xc344fc('0x2fd5')]&&_0x5a52b[_0xc344fc('0xcb')]===_0x5a52b[_0xc344fc('0x35d7')][_0xc344fc('0xcb')]||(_0x41e26b+=_0x5a52b['offsetLeft']),_0x5f0a8d+=_0x5a52b['offsetTop'];return{'x':_0x41e26b,'y':_0x5f0a8d};},_0x453723=_0x47f159(_0x51c2a6),_0x3a6045=!0x1,_0x16d8a1=function(_0x2ff1e3){var _0x45e89e=a2_0x4bfe;if(_0x45e89e('0x1bc4')!==_0x2ff1e3['type']||0x0!==_0x1e4d3f(_0x486d2e)){for(var _0xc39e72=!0x0,_0xa5eeec=_0x2ff1e3[_0x45e89e('0x1480')]?_0x2ff1e3[_0x45e89e('0x1480')]:[_0x2ff1e3],_0x5f02ae=0x0;_0x5f02ae<_0xa5eeec[_0x45e89e('0x175a')];++_0x5f02ae){var _0x68e985=_0xa5eeec[_0x5f02ae],_0x3a167c=void 0x0!==_0x68e985[_0x45e89e('0x306b')]?_0x68e985[_0x45e89e('0x306b')]:void 0x0!==_0x68e985[_0x45e89e('0x390a')]?_0x68e985['pointerId']:0x1;if(void 0x0===_0x68e985[_0x45e89e('0x1cf0')]){if(_0x68e985[_0x45e89e('0x1cf0')]=_0x68e985['offsetX']+_0x453723['x'],_0x68e985[_0x45e89e('0x20a6')]=_0x68e985[_0x45e89e('0x1b99')]+_0x453723['y'],_0x68e985['srcElement'][_0x45e89e('0x35d7')]===_0x51c2a6&&document[_0x45e89e('0x2320')]&&0x8===document['documentMode']&&_0x45e89e('0x15e3')===_0x68e985[_0x45e89e('0x21a5')])_0x68e985[_0x45e89e('0x1cf0')]+=_0x68e985[_0x45e89e('0x2e44')][_0x45e89e('0xcb')],_0x68e985[_0x45e89e('0x20a6')]+=_0x68e985[_0x45e89e('0x2e44')][_0x45e89e('0x3245')];else{if(_0x68e985[_0x45e89e('0x2e44')]!==_0x51c2a6&&!document[_0x45e89e('0x2320')]||document[_0x45e89e('0x2320')]<0x8){for(var _0x200864=-0x2,_0x498478=-0x2,_0x17af15=_0x68e985[_0x45e89e('0x2e44')];null!==_0x17af15;_0x17af15=_0x17af15[_0x45e89e('0x1378')])_0x200864+=_0x17af15['scrollLeft']?_0x17af15[_0x45e89e('0x180e')]:0x0,_0x498478+=_0x17af15[_0x45e89e('0x1fd3')]?_0x17af15[_0x45e89e('0x1fd3')]:0x0;_0x68e985[_0x45e89e('0x1cf0')]=_0x68e985[_0x45e89e('0x1f6f')]+_0x200864,_0x68e985[_0x45e89e('0x20a6')]=_0x68e985[_0x45e89e('0x304f')]+_0x498478;}}}var _0x4a668a=_0x68e985[_0x45e89e('0x1cf0')],_0x32f700=_0x68e985[_0x45e89e('0x20a6')];_0x2ff1e3['type'][_0x45e89e('0x21ae')](/(start|down)$/i)?(_0x453723=_0x47f159(_0x51c2a6),_0x486d2e[_0x3a167c]&&(_0x13f131&&_0x13f131({'target':_0x2ff1e3['target'],'which':_0x2ff1e3[_0x45e89e('0x35c5')],'pointerId':_0x3a167c,'pageX':_0x4a668a,'pageY':_0x32f700}),delete _0x486d2e[_0x3a167c]),_0x2f61d4&&_0xc39e72&&(_0xc39e72=_0x2f61d4({'target':_0x2ff1e3[_0x45e89e('0x312f')],'which':_0x2ff1e3[_0x45e89e('0x35c5')],'pointerId':_0x3a167c,'pageX':_0x4a668a,'pageY':_0x32f700})),_0x486d2e[_0x3a167c]={'x':_0x4a668a,'y':_0x32f700},_0x51c2a6[_0x45e89e('0x1162')]&&_0xc39e72?_0x51c2a6['msSetPointerCapture'](_0x3a167c):_0x45e89e('0x15e3')===_0x2ff1e3[_0x45e89e('0x21a5')]&&0x1===_0x1e4d3f(_0x486d2e)&&(_0x3a6045?_0x51c2a6[_0x45e89e('0x212b')](!0x0):(document[_0x45e89e('0x2e05')]('mousemove',_0x16d8a1,!0x1),document[_0x45e89e('0x2e05')](_0x45e89e('0x3588'),_0x16d8a1,!0x1)))):_0x2ff1e3[_0x45e89e('0x21a5')][_0x45e89e('0x21ae')](/move$/i)?!_0x486d2e[_0x3a167c]||_0x486d2e[_0x3a167c]['x']===_0x4a668a&&_0x486d2e[_0x3a167c]['y']===_0x32f700||(_0x55551a&&_0xc39e72&&(_0xc39e72=_0x55551a({'target':_0x2ff1e3[_0x45e89e('0x312f')],'which':_0x2ff1e3[_0x45e89e('0x35c5')],'pointerId':_0x3a167c,'pageX':_0x4a668a,'pageY':_0x32f700})),_0x486d2e[_0x3a167c]['x']=_0x4a668a,_0x486d2e[_0x3a167c]['y']=_0x32f700):_0x486d2e[_0x3a167c]&&_0x2ff1e3['type'][_0x45e89e('0x21ae')](/(up|end|cancel)$/i)&&(_0x13f131&&_0xc39e72&&(_0xc39e72=_0x13f131({'target':_0x2ff1e3['target'],'which':_0x2ff1e3[_0x45e89e('0x35c5')],'pointerId':_0x3a167c,'pageX':_0x4a668a,'pageY':_0x32f700})),delete _0x486d2e[_0x3a167c],_0x51c2a6[_0x45e89e('0x3686')]?_0x51c2a6[_0x45e89e('0x3686')](_0x3a167c):_0x45e89e('0x3588')===_0x2ff1e3['type']&&0x0===_0x1e4d3f(_0x486d2e)&&(_0x3a6045?_0x51c2a6[_0x45e89e('0xbfd')]():(document[_0x45e89e('0x1940')](_0x45e89e('0x1bc4'),_0x16d8a1,!0x1),document[_0x45e89e('0x1940')](_0x45e89e('0x3588'),_0x16d8a1,!0x1))));}_0xc39e72&&(_0x2ff1e3[_0x45e89e('0x1f1a')]&&_0x2ff1e3[_0x45e89e('0x1f1a')](),_0x2ff1e3[_0x45e89e('0x2b69')]&&_0x2ff1e3['preventManipulation'](),_0x2ff1e3[_0x45e89e('0x2638')]&&_0x2ff1e3[_0x45e89e('0x2638')]());}};return this[_0x21eb7b('0x9c4')]=function(){var _0x56267d=_0x21eb7b;window[_0x56267d('0x53d')][_0x56267d('0x1ee0')]?(_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x2bd9'),_0x16d8a1,!0x1),_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x19d2'),_0x16d8a1,!0x1),_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x2719'),_0x16d8a1,!0x1),_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x22da'),_0x16d8a1,!0x1),void 0x0!==_0x51c2a6['style'][_0x56267d('0x200d')]&&(_0x5f4a2e=_0x51c2a6['style'][_0x56267d('0x200d')],_0x51c2a6[_0x56267d('0x14b6')]['msContentZooming']=_0x56267d('0xf01')),void 0x0!==_0x51c2a6[_0x56267d('0x14b6')][_0x56267d('0x1258')]&&(_0x22cbcf=_0x51c2a6[_0x56267d('0x14b6')][_0x56267d('0x1258')],_0x51c2a6[_0x56267d('0x14b6')][_0x56267d('0x1258')]=_0x56267d('0xf01'))):_0x51c2a6[_0x56267d('0x2e05')]?(_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x1cf6'),_0x16d8a1,!0x1),_0x51c2a6['addEventListener'](_0x56267d('0xca0'),_0x16d8a1,!0x1),_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x1b54'),_0x16d8a1,!0x1),_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x3716'),_0x16d8a1,!0x1),_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x15e3'),_0x16d8a1,!0x1),_0x51c2a6[_0x56267d('0x212b')]&&!window[_0x56267d('0x53d')][_0x56267d('0x3656')][_0x56267d('0x21ae')](/\bGecko\b/)&&(_0x3a6045=!0x0,_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x1bc4'),_0x16d8a1,!0x1),_0x51c2a6[_0x56267d('0x2e05')](_0x56267d('0x3588'),_0x16d8a1,!0x1))):_0x51c2a6[_0x56267d('0x671')]&&_0x51c2a6['setCapture']&&(_0x3a6045=!0x0,_0x51c2a6[_0x56267d('0x671')](_0x56267d('0x8e0'),function(){var _0x18901a=_0x56267d;return _0x16d8a1(window[_0x18901a('0x9e6')]),window[_0x18901a('0x9e6')][_0x18901a('0x35b0')]=!0x1,!0x1;}),_0x51c2a6['attachEvent'](_0x56267d('0x2e16'),function(){var _0x738e44=_0x56267d;return _0x16d8a1(window[_0x738e44('0x9e6')]),window[_0x738e44('0x9e6')][_0x738e44('0x35b0')]=!0x1,!0x1;}),_0x51c2a6[_0x56267d('0x671')]('onmouseup',function(){var _0x2eb23c=_0x56267d;return _0x16d8a1(window[_0x2eb23c('0x9e6')]),window['event'][_0x2eb23c('0x35b0')]=!0x1,!0x1;}));},this[_0x21eb7b('0xb44')]=function(){var _0x4442b2=_0x21eb7b;window[_0x4442b2('0x53d')][_0x4442b2('0x1ee0')]?(_0x51c2a6[_0x4442b2('0x1940')]('MSPointerDown',_0x16d8a1,!0x1),_0x51c2a6['removeEventListener']('MSPointerMove',_0x16d8a1,!0x1),_0x51c2a6[_0x4442b2('0x1940')](_0x4442b2('0x2719'),_0x16d8a1,!0x1),_0x51c2a6[_0x4442b2('0x1940')](_0x4442b2('0x22da'),_0x16d8a1,!0x1),_0x5f4a2e&&(_0x51c2a6['style'][_0x4442b2('0x200d')]=_0x5f4a2e),_0x22cbcf&&(_0x51c2a6[_0x4442b2('0x14b6')][_0x4442b2('0x1258')]=_0x22cbcf)):_0x51c2a6[_0x4442b2('0x1940')]?(_0x51c2a6[_0x4442b2('0x1940')]('touchstart',_0x16d8a1,!0x1),_0x51c2a6['removeEventListener'](_0x4442b2('0xca0'),_0x16d8a1,!0x1),_0x51c2a6['removeEventListener'](_0x4442b2('0x1b54'),_0x16d8a1,!0x1),_0x51c2a6[_0x4442b2('0x1940')](_0x4442b2('0x3716'),_0x16d8a1,!0x1),_0x51c2a6[_0x4442b2('0x1940')](_0x4442b2('0x15e3'),_0x16d8a1,!0x1),_0x51c2a6[_0x4442b2('0x212b')]&&!window['navigator']['userAgent']['match'](/\bGecko\b/)&&(_0x3a6045=!0x0,_0x51c2a6[_0x4442b2('0x1940')](_0x4442b2('0x1bc4'),_0x16d8a1,!0x1),_0x51c2a6[_0x4442b2('0x1940')](_0x4442b2('0x3588'),_0x16d8a1,!0x1))):_0x51c2a6[_0x4442b2('0x2ac0')]&&_0x51c2a6[_0x4442b2('0x212b')]&&(_0x3a6045=!0x0,_0x51c2a6[_0x4442b2('0x2ac0')](_0x4442b2('0x8e0')),_0x51c2a6['detachEvent'](_0x4442b2('0x2e16')),_0x51c2a6['detachEvent'](_0x4442b2('0x109c')));},this;};}])[_0x4365e4('0x36b0')](_0x4365e4('0x3324'),[_0x4365e4('0x151'),'$window',_0x4365e4('0x33e8'),function(_0x49b9a7,_0xa31c69,_0x183a1b){function _0x23a725(_0x50bc5b,_0x14c418,_0x4ce2ec,_0x2f7b6e,_0x500abb){var _0x36a6f5=a2_0x4bfe;function _0x37231b(_0x9447e8){var _0x3b497c=a2_0x4bfe;_0x50bc5b[_0x3b497c('0x2dc8')](_0x3b497c('0xa2d')),_0x4ce2ec[_0x3b497c('0x3482')]=_0x2f7b6e,_0x4ce2ec['updateHeight'](_0x2f7b6e['sizeY']),_0x14c418[_0x3b497c('0x1280')](function(){var _0x3f0184=_0x3b497c;_0x4ce2ec['draggable']&&_0x4ce2ec[_0x3f0184('0x6a')][_0x3f0184('0x21ef')]&&_0x4ce2ec[_0x3f0184('0x6a')][_0x3f0184('0x21ef')](_0x9447e8,_0x50bc5b,_0x500abb,_0x2f7b6e);});}function _0x59aac5(_0x33a0b1){var _0x29dd2e=a2_0x4bfe,_0x7175dd=_0x2f7b6e['row'],_0x3c0871=_0x2f7b6e[_0x29dd2e('0x30a6')],_0x524dcc=_0x4ce2ec[_0x29dd2e('0x6a')]&&_0x4ce2ec[_0x29dd2e('0x6a')][_0x29dd2e('0xfe7')],_0xa84880=_0x4ce2ec['draggable'][_0x29dd2e('0x2600')],_0x126fd9=_0x4ce2ec['draggable'][_0x29dd2e('0x1b1e')],_0x216c5e=Math[_0x29dd2e('0x3230')](_0x4ce2ec[_0x29dd2e('0x2c07')](_0x38fa01),_0x4ce2ec[_0x29dd2e('0x1aba')]-0x1),_0x47f924=Math['min'](_0x4ce2ec[_0x29dd2e('0x30ee')](_0x4dca2d),_0x4ce2ec[_0x29dd2e('0x31c')]-0x1),_0x16f55f=_0x4ce2ec[_0x29dd2e('0x38cb')](_0x216c5e,_0x47f924,_0x2f7b6e[_0x29dd2e('0x27')],_0x2f7b6e['sizeY'],_0x2f7b6e),_0x8ccb33=0x0!==_0x16f55f['length'];if(!0x0===_0x4ce2ec[_0x29dd2e('0xaf4')]&&_0x8ccb33){var _0x4b3adc=_0x4ce2ec[_0x29dd2e('0x2f89')](_0x16f55f),_0x26d3c6=_0x4b3adc[_0x29dd2e('0x27')]===_0x2f7b6e[_0x29dd2e('0x27')]&&_0x4b3adc[_0x29dd2e('0x418')]===_0x2f7b6e['sizeY'],_0x5ab568=_0x4b3adc['row']===_0x7175dd,_0x5d3eeb=_0x4b3adc[_0x29dd2e('0x30a6')]===_0x3c0871,_0x472657=_0x4b3adc[_0x29dd2e('0x148a')]===_0x216c5e&&_0x4b3adc[_0x29dd2e('0x30a6')]===_0x47f924,_0x314d75=_0x5ab568||_0x5d3eeb;if(_0x26d3c6&&0x1===_0x16f55f[_0x29dd2e('0x175a')]){if(_0x472657)_0x4ce2ec[_0x29dd2e('0x22e3')](_0x2f7b6e,_0x16f55f[0x0]);else{if(_0x314d75)return;}}else{if(_0x4b3adc[_0x29dd2e('0x27')]<=_0x2f7b6e[_0x29dd2e('0x27')]&&_0x4b3adc[_0x29dd2e('0x418')]<=_0x2f7b6e['sizeY']&&_0x314d75)for(var _0x6be7cc=_0x2f7b6e['row']<=_0x216c5e?_0x2f7b6e[_0x29dd2e('0x148a')]:_0x216c5e+_0x2f7b6e[_0x29dd2e('0x418')],_0x5b3c7c=_0x2f7b6e[_0x29dd2e('0x30a6')]<=_0x47f924?_0x2f7b6e[_0x29dd2e('0x30a6')]:_0x47f924+_0x2f7b6e['sizeX'],_0x382b69=_0x6be7cc-_0x4b3adc[_0x29dd2e('0x148a')],_0x2fd8d8=_0x5b3c7c-_0x4b3adc[_0x29dd2e('0x30a6')],_0x19bcb8=0x0,_0x2b336d=_0x16f55f[_0x29dd2e('0x175a')];_0x19bcb8<_0x2b336d;++_0x19bcb8){var _0x47379c=_0x16f55f[_0x19bcb8];0x0===_0x4ce2ec['getItems'](_0x47379c[_0x29dd2e('0x148a')]+_0x382b69,_0x47379c[_0x29dd2e('0x30a6')]+_0x2fd8d8,_0x47379c['sizeX'],_0x47379c[_0x29dd2e('0x418')],_0x2f7b6e)[_0x29dd2e('0x175a')]&&_0x4ce2ec['putItem'](_0x47379c,_0x47379c[_0x29dd2e('0x148a')]+_0x382b69,_0x47379c[_0x29dd2e('0x30a6')]+_0x2fd8d8);}}}!0x1===_0x4ce2ec[_0x29dd2e('0x1649')]&&_0x8ccb33||(_0x2f7b6e[_0x29dd2e('0x148a')]=_0x216c5e,_0x2f7b6e['col']=_0x47f924),_0x33a0b1[_0x29dd2e('0x20a6')]-_0x4baf20['body'][_0x29dd2e('0x1fd3')]<_0xa84880?_0x4baf20[_0x29dd2e('0x3742')][_0x29dd2e('0x1fd3')]=_0x4baf20[_0x29dd2e('0x3742')][_0x29dd2e('0x1fd3')]-_0x126fd9:_0xa31c69[_0x29dd2e('0x156c')]-(_0x33a0b1['pageY']-_0x4baf20[_0x29dd2e('0x3742')][_0x29dd2e('0x1fd3')])<_0xa84880&&(_0x4baf20[_0x29dd2e('0x3742')]['scrollTop']=_0x4baf20[_0x29dd2e('0x3742')][_0x29dd2e('0x1fd3')]+_0x126fd9),_0x33a0b1[_0x29dd2e('0x1cf0')]-_0x4baf20['body']['scrollLeft']<_0xa84880?_0x4baf20[_0x29dd2e('0x3742')][_0x29dd2e('0x180e')]=_0x4baf20[_0x29dd2e('0x3742')][_0x29dd2e('0x180e')]-_0x126fd9:_0xa31c69['innerWidth']-(_0x33a0b1[_0x29dd2e('0x1cf0')]-_0x4baf20['body'][_0x29dd2e('0x180e')])<_0xa84880&&(_0x4baf20[_0x29dd2e('0x3742')][_0x29dd2e('0x180e')]=_0x4baf20[_0x29dd2e('0x3742')]['scrollLeft']+_0x126fd9),(_0x524dcc||_0x7175dd!==_0x2f7b6e[_0x29dd2e('0x148a')]||_0x3c0871!==_0x2f7b6e[_0x29dd2e('0x30a6')])&&_0x14c418[_0x29dd2e('0x1280')](function(){var _0x3748be=_0x29dd2e;_0x524dcc&&_0x4ce2ec[_0x3748be('0x6a')]['drag'](_0x33a0b1,_0x50bc5b,_0x500abb,_0x2f7b6e);});}function _0x292c1c(_0x1b22a5){var _0x4e2ce3=a2_0x4bfe;_0x50bc5b['removeClass'](_0x4e2ce3('0xa2d'));var _0x4a51d6=Math['min'](_0x4ce2ec[_0x4e2ce3('0x2c07')](_0x38fa01),_0x4ce2ec[_0x4e2ce3('0x1aba')]-0x1),_0x482dcb=Math[_0x4e2ce3('0x3230')](_0x4ce2ec[_0x4e2ce3('0x30ee')](_0x4dca2d),_0x4ce2ec[_0x4e2ce3('0x31c')]-0x1);!0x1===_0x4ce2ec[_0x4e2ce3('0x1649')]&&0x0!==_0x4ce2ec[_0x4e2ce3('0x38cb')](_0x4a51d6,_0x482dcb,_0x2f7b6e[_0x4e2ce3('0x27')],_0x2f7b6e[_0x4e2ce3('0x418')],_0x2f7b6e)[_0x4e2ce3('0x175a')]||(_0x2f7b6e['row']=_0x4a51d6,_0x2f7b6e[_0x4e2ce3('0x30a6')]=_0x482dcb),_0x4ce2ec['movingItem']=null,_0x2f7b6e['setPosition'](_0x2f7b6e[_0x4e2ce3('0x148a')],_0x2f7b6e['col']),_0x14c418[_0x4e2ce3('0x1280')](function(){var _0x512655=_0x4e2ce3;_0x4ce2ec[_0x512655('0x6a')]&&_0x4ce2ec[_0x512655('0x6a')][_0x512655('0x108a')]&&_0x4ce2ec['draggable'][_0x512655('0x108a')](_0x1b22a5,_0x50bc5b,_0x500abb,_0x2f7b6e);});}function _0x46731d(_0x18a2ce){var _0x1fea5d=a2_0x4bfe;if(-0x1!==_0x38ae25['indexOf'](_0x18a2ce[_0x1fea5d('0x312f')]['nodeName'][_0x1fea5d('0x856')]()))return!0x1;var _0x11bac9=_0x2ec030['element'](_0x18a2ce[_0x1fea5d('0x312f')]);if(_0x11bac9[_0x1fea5d('0x522')]('gridster-item-resizable-handler'))return!0x1;if(_0x11bac9[_0x1fea5d('0x1e52')](_0x1fea5d('0xa2b'))||_0x11bac9['attr'](_0x1fea5d('0x752')))return!0x1;if(_0x11bac9[_0x1fea5d('0x2453')]&&_0x11bac9[_0x1fea5d('0x2453')](_0x1fea5d('0xbd3'))[_0x1fea5d('0x175a')])return!0x1;if(_0x4ce2ec['draggable']&&_0x4ce2ec[_0x1fea5d('0x6a')][_0x1fea5d('0xc86')]){var _0x59e5d8=_0x2ec030[_0x1fea5d('0x88a')](_0x50bc5b[0x0]['querySelectorAll'](_0x4ce2ec['draggable'][_0x1fea5d('0xc86')])),_0x6ce587=!0x1;_0x3659ed:for(var _0x1721c7=0x0,_0x44cf43=_0x59e5d8[_0x1fea5d('0x175a')];_0x1721c7<_0x44cf43;++_0x1721c7){var _0x51e3ad=_0x59e5d8[_0x1721c7];if(_0x51e3ad===_0x18a2ce[_0x1fea5d('0x312f')]){_0x6ce587=!0x0;break;}for(var _0x57e7a3=_0x18a2ce[_0x1fea5d('0x312f')],_0x1f4f2b=0x0;_0x1f4f2b<0x14;++_0x1f4f2b){var _0x4cc85e=_0x57e7a3['parentNode'];if(_0x4cc85e===_0x50bc5b[0x0]||!_0x4cc85e)break;if(_0x4cc85e===_0x51e3ad){_0x6ce587=!0x0;break _0x3659ed;}_0x57e7a3=_0x4cc85e;}}if(!_0x6ce587)return!0x1;}switch(_0x18a2ce[_0x1fea5d('0x35c5')]){case 0x1:break;case 0x2:case 0x3:return;}return _0x4bee12=_0x18a2ce['pageX'],_0x14a458=_0x18a2ce[_0x1fea5d('0x20a6')],_0x4dca2d=parseInt(_0x50bc5b[_0x1fea5d('0x30a3')](_0x1fea5d('0x1d75')),0xa),_0x38fa01=parseInt(_0x50bc5b[_0x1fea5d('0x30a3')](_0x1fea5d('0x361a')),0xa),_0x51b1b9=_0x50bc5b[0x0][_0x1fea5d('0x1fe5')],_0x4cf439=_0x50bc5b[0x0][_0x1fea5d('0x1147')],_0x2f7b6e[_0x1fea5d('0x30a6')],_0x2f7b6e[_0x1fea5d('0x148a')],_0x37231b(_0x18a2ce),!0x0;}function _0x19de1f(_0x8ef8ec){var _0x4b6c10=a2_0x4bfe;if(!_0x50bc5b[_0x4b6c10('0x522')](_0x4b6c10('0xa2d'))||_0x50bc5b['hasClass'](_0x4b6c10('0x2824')))return!0x1;var _0x2a4231=_0x4ce2ec[_0x4b6c10('0x6d2')]-0x1,_0x3ec31e=_0x4ce2ec['curRowHeight']*_0x4ce2ec[_0x4b6c10('0x1aba')]-0x1;_0x53f49e=_0x8ef8ec['pageX'],_0x1dc3d2=_0x8ef8ec[_0x4b6c10('0x20a6')];var _0x1d8e05=_0x53f49e-_0x4bee12+_0x3294e0,_0x1e0daf=_0x1dc3d2-_0x14a458+_0x3b310a;_0x3294e0=_0x3b310a=0x0,_0x4bee12=_0x53f49e,_0x14a458=_0x1dc3d2;var _0xe12f23=_0x1d8e05,_0x415d1d=_0x1e0daf;return _0x4dca2d+_0xe12f23<_0x59f7c3?_0x3294e0=_0xe12f23-(_0x1d8e05=_0x59f7c3-_0x4dca2d):_0x4dca2d+_0x51b1b9+_0xe12f23>_0x2a4231&&(_0x3294e0=_0xe12f23-(_0x1d8e05=_0x2a4231-_0x4dca2d-_0x51b1b9)),_0x38fa01+_0x415d1d<_0x252db9?_0x3b310a=_0x415d1d-(_0x1e0daf=_0x252db9-_0x38fa01):_0x38fa01+_0x4cf439+_0x415d1d>_0x3ec31e&&(_0x3b310a=_0x415d1d-(_0x1e0daf=_0x3ec31e-_0x38fa01-_0x4cf439)),_0x4dca2d+=_0x1d8e05,_0x38fa01+=_0x1e0daf,_0x50bc5b['css']({'top':_0x38fa01+'px','left':_0x4dca2d+'px'}),_0x59aac5(_0x8ef8ec),!0x0;}function _0x4df2b1(_0x41b9dc){var _0x50def4=a2_0x4bfe;return!(!_0x50bc5b[_0x50def4('0x522')](_0x50def4('0xa2d'))||_0x50bc5b[_0x50def4('0x522')]('gridster-item-resizing')||(_0x3294e0=_0x3b310a=0x0,_0x292c1c(_0x41b9dc),0x0));}var _0x4dca2d,_0x38fa01,_0x51b1b9,_0x4cf439,_0x53f49e=0x0,_0x1dc3d2=0x0,_0x4bee12=0x0,_0x14a458=0x0,_0x3294e0=0x0,_0x3b310a=0x0,_0x252db9=0x0,_0x59f7c3=0x0,_0x4baf20=_0x49b9a7[0x0],_0x38ae25=[_0x36a6f5('0x32b0'),_0x36a6f5('0x37e5'),_0x36a6f5('0x10a7'),_0x36a6f5('0x701'),_0x36a6f5('0xb54')],_0x4a4a1b=null,_0x578302=null;this[_0x36a6f5('0x9c4')]=function(){var _0x5233d7=_0x36a6f5;if(!0x0!==_0x4a4a1b){if(_0x4a4a1b=!0x0,_0x578302)return void _0x578302[_0x5233d7('0x9c4')]();(_0x578302=new _0x183a1b(_0x50bc5b[0x0],_0x46731d,_0x19de1f,_0x4df2b1))[_0x5233d7('0x9c4')]();}},this[_0x36a6f5('0xb44')]=function(){var _0x178e11=_0x36a6f5;!0x1!==_0x4a4a1b&&(_0x4a4a1b=!0x1,_0x578302&&_0x578302[_0x178e11('0xb44')]());},this[_0x36a6f5('0xa48')]=function(_0x29db11){var _0x59c59e=_0x36a6f5;_0x29db11?this['enable']():this[_0x59c59e('0xb44')]();},this[_0x36a6f5('0x2cdb')]=function(){var _0x3d6889=_0x36a6f5;this[_0x3d6889('0xb44')]();};}return _0x23a725;}])['factory'](_0x4365e4('0x31a5'),[_0x4365e4('0x33e8'),function(_0x24a06f){function _0x914e97(_0x4ac4cb,_0x563b18,_0x2c3263,_0x415b11,_0x15cc71){var _0x5a58a4=a2_0x4bfe;function _0x468778(_0x51f33f){var _0xd4040a=a2_0x4bfe;function _0x755503(_0xc6bb6b){var _0x23d821=a2_0x4bfe;_0x4ac4cb[_0x23d821('0x2dc8')](_0x23d821('0xa2d')),_0x4ac4cb[_0x23d821('0x2dc8')]('gridster-item-resizing'),_0x2c3263[_0x23d821('0x3482')]=_0x415b11,_0x415b11[_0x23d821('0x300b')](),_0x415b11[_0x23d821('0x2951')](),_0x415b11[_0x23d821('0x31b4')](),_0x2c3263[_0x23d821('0xa6b')](0x1),_0x563b18[_0x23d821('0x1280')](function(){var _0x3f8653=_0x23d821;_0x2c3263[_0x3f8653('0x1e7d')]&&_0x2c3263[_0x3f8653('0x1e7d')]['start']&&_0x2c3263[_0x3f8653('0x1e7d')]['start'](_0xc6bb6b,_0x4ac4cb,_0x15cc71,_0x415b11);});}function _0x4f032a(_0x5ea981){var _0xbbf161=a2_0x4bfe,_0x34efdc=_0x415b11[_0xbbf161('0x148a')],_0x427b4d=_0x415b11[_0xbbf161('0x30a6')],_0x5b8a2b=_0x415b11['sizeX'],_0x44712c=_0x415b11['sizeY'],_0x421def=_0x2c3263['resizable']&&_0x2c3263[_0xbbf161('0x1e7d')][_0xbbf161('0x32b7')],_0x5c6696=_0x415b11['col'];-0x1!==['w','nw','sw']['indexOf'](_0x51f33f)&&(_0x5c6696=_0x2c3263[_0xbbf161('0x30ee')](_0x8af6e6,!0x1));var _0x39af46=_0x415b11[_0xbbf161('0x148a')];-0x1!==['n','ne','nw']['indexOf'](_0x51f33f)&&(_0x39af46=_0x2c3263[_0xbbf161('0x2c07')](_0xb50923,!0x1));var _0xf797cc=_0x415b11[_0xbbf161('0x27')];-0x1===['n','s']['indexOf'](_0x51f33f)&&(_0xf797cc=_0x2c3263['pixelsToColumns'](_0x2d127a,!0x0));var _0x16cb63=_0x415b11[_0xbbf161('0x418')];-0x1===['e','w'][_0xbbf161('0xe1c')](_0x51f33f)&&(_0x16cb63=_0x2c3263['pixelsToRows'](_0x2908fc,!0x0)),!(_0x39af46>-0x1&&_0x5c6696>-0x1&&_0xf797cc+_0x5c6696<=_0x2c3263[_0xbbf161('0x31c')]&&_0x16cb63+_0x39af46<=_0x2c3263[_0xbbf161('0x1aba')])||!0x1===_0x2c3263['pushing']&&0x0!==_0x2c3263['getItems'](_0x39af46,_0x5c6696,_0xf797cc,_0x16cb63,_0x415b11)[_0xbbf161('0x175a')]||(_0x415b11[_0xbbf161('0x148a')]=_0x39af46,_0x415b11[_0xbbf161('0x30a6')]=_0x5c6696,_0x415b11[_0xbbf161('0x27')]=_0xf797cc,_0x415b11[_0xbbf161('0x418')]=_0x16cb63);var _0x5a1001=_0x415b11[_0xbbf161('0x148a')]!==_0x34efdc||_0x415b11[_0xbbf161('0x30a6')]!==_0x427b4d||_0x415b11[_0xbbf161('0x27')]!==_0x5b8a2b||_0x415b11[_0xbbf161('0x418')]!==_0x44712c;(_0x421def||_0x5a1001)&&_0x563b18[_0xbbf161('0x1280')](function(){var _0x4b6901=_0xbbf161;_0x421def&&_0x2c3263[_0x4b6901('0x1e7d')][_0x4b6901('0x32b7')](_0x5ea981,_0x4ac4cb,_0x15cc71,_0x415b11);});}function _0x5b4c80(_0x488a8d){var _0xcabea3=a2_0x4bfe;_0x4ac4cb[_0xcabea3('0x3a0')]('gridster-item-moving'),_0x4ac4cb[_0xcabea3('0x3a0')]('gridster-item-resizing'),_0x2c3263['movingItem']=null,_0x415b11[_0xcabea3('0x270a')](_0x415b11[_0xcabea3('0x148a')],_0x415b11[_0xcabea3('0x30a6')]),_0x415b11[_0xcabea3('0x1229')](_0x415b11[_0xcabea3('0x418')]),_0x415b11[_0xcabea3('0x394f')](_0x415b11[_0xcabea3('0x27')]),_0x563b18[_0xcabea3('0x1280')](function(){var _0x3d901d=_0xcabea3;_0x2c3263[_0x3d901d('0x1e7d')]&&_0x2c3263['resizable'][_0x3d901d('0x108a')]&&_0x2c3263[_0x3d901d('0x1e7d')][_0x3d901d('0x108a')](_0x488a8d,_0x4ac4cb,_0x15cc71,_0x415b11);});}function _0x381797(_0x308031){var _0x5c79f1=a2_0x4bfe;switch(_0x308031[_0x5c79f1('0x35c5')]){case 0x1:break;case 0x2:case 0x3:return;}return(_0x4b943a=_0x2c3263['draggable'][_0x5c79f1('0x25f9')])&&(_0x2c3263[_0x5c79f1('0x6a')][_0x5c79f1('0x25f9')]=!0x1,_0x563b18[_0x5c79f1('0x1c18')]('gridster-draggable-changed',_0x2c3263)),_0x340f78=_0x308031[_0x5c79f1('0x1cf0')],_0x4c746e=_0x308031[_0x5c79f1('0x20a6')],_0x8af6e6=parseInt(_0x4ac4cb[_0x5c79f1('0x30a3')]('left'),0xa),_0xb50923=parseInt(_0x4ac4cb[_0x5c79f1('0x30a3')]('top'),0xa),_0x2d127a=_0x4ac4cb[0x0][_0x5c79f1('0x1fe5')],_0x2908fc=_0x4ac4cb[0x0][_0x5c79f1('0x1147')],_0x415b11[_0x5c79f1('0x27')],_0x415b11[_0x5c79f1('0x418')],_0x755503(_0x308031),!0x0;}function _0x17f45d(_0x2c10f9){var _0x4bbc12=a2_0x4bfe,_0x22891f=_0x2c3263[_0x4bbc12('0x6d2')]-0x1;_0x33bd7b=_0x2c10f9['pageX'],_0x54b509=_0x2c10f9[_0x4bbc12('0x20a6')];var _0x3b44da=_0x33bd7b-_0x340f78+_0x4358d0,_0x14d50d=_0x54b509-_0x4c746e+_0x1ac466;_0x4358d0=_0x1ac466=0x0,_0x340f78=_0x33bd7b,_0x4c746e=_0x54b509;var _0x276bf0=_0x14d50d,_0x3033fb=_0x3b44da;return _0x3d79b2[_0x4bbc12('0xe1c')]('n')>=0x0&&(_0x2908fc-_0x276bf0<_0x22b25c()?(_0x14d50d=_0x2908fc-_0x22b25c(),_0x1ac466=_0x276bf0-_0x14d50d):_0xb50923+_0x276bf0<_0xd1d01&&(_0x1ac466=_0x276bf0-(_0x14d50d=_0xd1d01-_0xb50923)),_0xb50923+=_0x14d50d,_0x2908fc-=_0x14d50d),_0x3d79b2[_0x4bbc12('0xe1c')]('s')>=0x0&&(_0x2908fc+_0x276bf0<_0x22b25c()?(_0x14d50d=_0x22b25c()-_0x2908fc,_0x1ac466=_0x276bf0-_0x14d50d):_0xb50923+_0x2908fc+_0x276bf0>_0xe9d32a&&(_0x1ac466=_0x276bf0-(_0x14d50d=_0xe9d32a-_0xb50923-_0x2908fc)),_0x2908fc+=_0x14d50d),_0x3d79b2[_0x4bbc12('0xe1c')]('w')>=0x0&&(_0x2d127a-_0x3033fb<_0x24bc87()?(_0x3b44da=_0x2d127a-_0x24bc87(),_0x4358d0=_0x3033fb-_0x3b44da):_0x8af6e6+_0x3033fb<_0x3bc31d&&(_0x4358d0=_0x3033fb-(_0x3b44da=_0x3bc31d-_0x8af6e6)),_0x8af6e6+=_0x3b44da,_0x2d127a-=_0x3b44da),_0x3d79b2['indexOf']('e')>=0x0&&(_0x2d127a+_0x3033fb<_0x24bc87()?(_0x3b44da=_0x24bc87()-_0x2d127a,_0x4358d0=_0x3033fb-_0x3b44da):_0x8af6e6+_0x2d127a+_0x3033fb>_0x22891f&&(_0x4358d0=_0x3033fb-(_0x3b44da=_0x22891f-_0x8af6e6-_0x2d127a)),_0x2d127a+=_0x3b44da),_0x4ac4cb[_0x4bbc12('0x30a3')]({'top':_0xb50923+'px','left':_0x8af6e6+'px','width':_0x2d127a+'px','height':_0x2908fc+'px'}),_0x4f032a(_0x2c10f9),!0x0;}function _0x5e4f94(_0x419afa){var _0x1b7ada=a2_0x4bfe;return _0x2c3263[_0x1b7ada('0x6a')][_0x1b7ada('0x25f9')]!==_0x4b943a&&(_0x2c3263[_0x1b7ada('0x6a')][_0x1b7ada('0x25f9')]=_0x4b943a,_0x563b18[_0x1b7ada('0x1c18')](_0x1b7ada('0x34b9'),_0x2c3263)),_0x4358d0=_0x1ac466=0x0,_0x5b4c80(_0x419afa),!0x0;}var _0x8af6e6,_0xb50923,_0x2d127a,_0x2908fc,_0x4b943a,_0x3fc965,_0x3d79b2=_0x51f33f,_0x33bd7b=0x0,_0x54b509=0x0,_0x340f78=0x0,_0x4c746e=0x0,_0x4358d0=0x0,_0x1ac466=0x0,_0xd1d01=0x0,_0xe9d32a=0x270f,_0x3bc31d=0x0,_0x22b25c=function(){var _0x86840e=a2_0x4bfe;return(_0x415b11[_0x86840e('0x22ad')]?_0x415b11[_0x86840e('0x22ad')]:0x1)*_0x2c3263[_0x86840e('0x531')]-_0x2c3263[_0x86840e('0x182b')][0x0];},_0x24bc87=function(){var _0x5d6280=a2_0x4bfe;return(_0x415b11[_0x5d6280('0x16e5')]?_0x415b11[_0x5d6280('0x16e5')]:0x1)*_0x2c3263['curColWidth']-_0x2c3263[_0x5d6280('0x182b')][0x1];},_0x59ca86=null;this[_0xd4040a('0x9c4')]=function(){var _0x172d23=_0xd4040a;_0x59ca86||(_0x59ca86=_0x2ec030['element'](_0x172d23('0x2e11')+_0x3d79b2+_0x172d23('0x2e2b')),_0x4ac4cb[_0x172d23('0x10f')](_0x59ca86)),(_0x3fc965=new _0x24a06f(_0x59ca86[0x0],_0x381797,_0x17f45d,_0x5e4f94))[_0x172d23('0x9c4')]();},this[_0xd4040a('0xb44')]=function(){var _0x4d75ff=_0xd4040a;_0x59ca86&&(_0x59ca86['remove'](),_0x59ca86=null),_0x3fc965[_0x4d75ff('0xb44')](),_0x3fc965=void 0x0;},this['destroy']=function(){this['disable']();};}var _0x5ee212=[],_0x463f47=_0x2c3263[_0x5a58a4('0x1e7d')][_0x5a58a4('0x697')];_0x5a58a4('0x151d')==typeof _0x463f47&&(_0x463f47=_0x2c3263[_0x5a58a4('0x1e7d')][_0x5a58a4('0x697')][_0x5a58a4('0x23ee')](','));for(var _0x3b6fbb=!0x1,_0x35e8f0=0x0,_0x3237f0=_0x463f47[_0x5a58a4('0x175a')];_0x35e8f0<_0x3237f0;_0x35e8f0++)_0x5ee212[_0x5a58a4('0x1a90')](new _0x468778(_0x463f47[_0x35e8f0]));this[_0x5a58a4('0x9c4')]=function(){var _0xfafca4=_0x5a58a4;if(!_0x3b6fbb){for(var _0x2fcbf7=0x0,_0x7d150c=_0x5ee212['length'];_0x2fcbf7<_0x7d150c;_0x2fcbf7++)_0x5ee212[_0x2fcbf7][_0xfafca4('0x9c4')]();_0x3b6fbb=!0x0;}},this[_0x5a58a4('0xb44')]=function(){var _0x21e4bd=_0x5a58a4;if(_0x3b6fbb){for(var _0x1ff5ae=0x0,_0x48fb30=_0x5ee212[_0x21e4bd('0x175a')];_0x1ff5ae<_0x48fb30;_0x1ff5ae++)_0x5ee212[_0x1ff5ae][_0x21e4bd('0xb44')]();_0x3b6fbb=!0x1;}},this[_0x5a58a4('0xa48')]=function(_0x22a88d){var _0x52a246=_0x5a58a4;_0x22a88d?this[_0x52a246('0x9c4')]():this[_0x52a246('0xb44')]();},this['destroy']=function(){var _0x2efc8c=_0x5a58a4;for(var _0x36e6b7=0x0,_0x3c8d29=_0x5ee212[_0x2efc8c('0x175a')];_0x36e6b7<_0x3c8d29;_0x36e6b7++)_0x5ee212[_0x36e6b7][_0x2efc8c('0x2cdb')]();};}return _0x914e97;}])[_0x4365e4('0x36b0')](_0x4365e4('0x23a5'),function(){return function(_0x5f5b29,_0x3898b9,_0x18500c){var _0x397753;return function(){var _0x22642b=this,_0x2168c9=arguments,_0x342c85=function(){var _0x5cfc6b=a2_0x4bfe;_0x397753=null,_0x18500c||_0x5f5b29[_0x5cfc6b('0x177a')](_0x22642b,_0x2168c9);},_0x2d2585=_0x18500c&&!_0x397753;clearTimeout(_0x397753),_0x397753=setTimeout(_0x342c85,_0x3898b9),_0x2d2585&&_0x5f5b29['apply'](_0x22642b,_0x2168c9);};};})['directive'](_0x4365e4('0x1b9e'),[_0x4365e4('0x1636'),_0x4365e4('0x3324'),_0x4365e4('0x31a5'),_0x4365e4('0x23a5'),function(_0xe2be79,_0x87e643,_0x5bb660,_0x4bf60a){var _0x3a224d=_0x4365e4;return{'scope':!0x0,'restrict':'EA','controller':'GridsterItemCtrl','controllerAs':_0x3a224d('0x1b9e'),'require':['^gridster',_0x3a224d('0x1b9e')],'link':function(_0x4f8923,_0x43010e,_0x2cb0da,_0x65b5c0){var _0x212981=_0x3a224d;function _0x335772(){var _0x4d892a=a2_0x4bfe;_0x353359[_0x4d892a('0x270a')](_0x353359[_0x4d892a('0x148a')],_0x353359[_0x4d892a('0x30a6')]),_0x25d747['row']&&_0x25d747[_0x4d892a('0x148a')][_0x4d892a('0x15e6')]&&_0x25d747['row']['assign'](_0x4f8923,_0x353359[_0x4d892a('0x148a')]),_0x25d747[_0x4d892a('0x30a6')]&&_0x25d747[_0x4d892a('0x30a6')][_0x4d892a('0x15e6')]&&_0x25d747[_0x4d892a('0x30a6')][_0x4d892a('0x15e6')](_0x4f8923,_0x353359[_0x4d892a('0x30a6')]);}function _0x5eedd6(){var _0x4b7c96=a2_0x4bfe,_0x560045=_0x353359[_0x4b7c96('0x394f')](_0x353359[_0x4b7c96('0x27')],!0x0);_0x560045&&_0x25d747['sizeX']&&_0x25d747[_0x4b7c96('0x27')][_0x4b7c96('0x15e6')]&&_0x25d747[_0x4b7c96('0x27')]['assign'](_0x4f8923,_0x353359[_0x4b7c96('0x27')]);var _0x52c0a=_0x353359[_0x4b7c96('0x1229')](_0x353359[_0x4b7c96('0x418')],!0x0);_0x52c0a&&_0x25d747[_0x4b7c96('0x418')]&&_0x25d747[_0x4b7c96('0x418')]['assign']&&_0x25d747['sizeY']['assign'](_0x4f8923,_0x353359[_0x4b7c96('0x418')]),(_0x560045||_0x52c0a)&&(_0x353359[_0x4b7c96('0x18d2')][_0x4b7c96('0x2ef8')](_0x353359),_0x2e7168[_0x4b7c96('0xd06')](),_0x4f8923[_0x4b7c96('0x1c18')](_0x4b7c96('0x3292'),_0x353359));}function _0x1f98b1(){var _0x4c317c=a2_0x4bfe,_0x219e90=document[_0x4c317c('0x264c')](_0x4c317c('0x1917')),_0x572879={'transition':_0x4c317c('0x2ad3'),'OTransition':_0x4c317c('0x1580'),'MozTransition':'transitionend','WebkitTransition':'webkitTransitionEnd'};for(var _0x261549 in _0x572879)if(void 0x0!==_0x219e90['style'][_0x261549])return _0x572879[_0x261549];}var _0x1c077f,_0xdb5d0d=_0x2cb0da[_0x212981('0x1b9e')],_0x2e7168=_0x65b5c0[0x0],_0x353359=_0x65b5c0[0x1];if(_0x4f8923[_0x212981('0x18d2')]=_0x2e7168,_0xdb5d0d){var _0x182214=_0xe2be79(_0xdb5d0d);!(_0x1c077f=_0x182214(_0x4f8923)||{})&&_0x182214[_0x212981('0x15e6')]&&(_0x1c077f={'row':_0x353359['row'],'col':_0x353359[_0x212981('0x30a6')],'sizeX':_0x353359['sizeX'],'sizeY':_0x353359[_0x212981('0x418')],'minSizeX':0x0,'minSizeY':0x0,'maxSizeX':null,'maxSizeY':null},_0x182214[_0x212981('0x15e6')](_0x4f8923,_0x1c077f));}else _0x1c077f=_0x2cb0da;_0x353359[_0x212981('0x261a')](_0x43010e,_0x2e7168),_0x43010e['addClass'](_0x212981('0x76f'));for(var _0x15fc24=['minSizeX',_0x212981('0xfb0'),_0x212981('0x22ad'),'maxSizeY',_0x212981('0x27'),_0x212981('0x418'),_0x212981('0x148a'),_0x212981('0x30a6')],_0x25d747={},_0x4ffd1f=[],_0x8bfc9c=function(_0x21deae){var _0x533bcf=_0x212981,_0x53c990;if(_0x533bcf('0x151d')==typeof _0x1c077f[_0x21deae])_0x53c990=_0x1c077f[_0x21deae];else{if(_0x533bcf('0x151d')==typeof _0x1c077f[_0x21deae[_0x533bcf('0x856')]()])_0x53c990=_0x1c077f[_0x21deae['toLowerCase']()];else{if(!_0xdb5d0d)return;_0x53c990=_0xdb5d0d+'.'+_0x21deae;}}_0x4ffd1f[_0x533bcf('0x1a90')]('\x22'+_0x21deae+'\x22:'+_0x53c990),_0x25d747[_0x21deae]=_0xe2be79(_0x53c990);var _0x4ceea9=_0x25d747[_0x21deae](_0x4f8923);_0x533bcf('0x3072')==typeof _0x4ceea9&&(_0x353359[_0x21deae]=_0x4ceea9);},_0x566fe1=0x0,_0x15df32=_0x15fc24[_0x212981('0x175a')];_0x566fe1<_0x15df32;++_0x566fe1)_0x8bfc9c(_0x15fc24[_0x566fe1]);var _0x1dfb87='{'+_0x4ffd1f[_0x212981('0x6a8')](',')+'}';_0x4f8923[_0x212981('0x34c6')](_0x1dfb87,function(_0x585cd0,_0x176c85){for(var _0x3cc049 in _0x585cd0){var _0x156b73=_0x585cd0[_0x3cc049];_0x176c85[_0x3cc049]!==_0x156b73&&(_0x156b73=parseInt(_0x156b73,0xa),isNaN(_0x156b73)||(_0x353359[_0x3cc049]=_0x156b73));}}),_0x4f8923['$watch'](function(){var _0x24cedc=_0x212981;return _0x353359[_0x24cedc('0x148a')]+','+_0x353359[_0x24cedc('0x30a6')];},_0x335772),_0x4f8923['$watch'](function(){var _0x11d374=_0x212981;return _0x353359[_0x11d374('0x418')]+','+_0x353359[_0x11d374('0x27')]+','+_0x353359['minSizeX']+','+_0x353359[_0x11d374('0xfb0')]+','+_0x353359[_0x11d374('0x22ad')]+','+_0x353359['maxSizeY'];},_0x5eedd6);var _0xc62e2e=new _0x87e643(_0x43010e,_0x4f8923,_0x2e7168,_0x353359,_0x1c077f),_0x400031=new _0x5bb660(_0x43010e,_0x4f8923,_0x2e7168,_0x353359,_0x1c077f),_0x209f0a=function(){var _0x36b448=_0x212981;_0x400031[_0x36b448('0xa48')](!_0x2e7168['isMobile']&&_0x2e7168[_0x36b448('0x1e7d')]&&_0x2e7168[_0x36b448('0x1e7d')][_0x36b448('0x25f9')]);};_0x209f0a();var _0x1e3458=function(){var _0x542d7c=_0x212981;_0xc62e2e[_0x542d7c('0xa48')](!_0x2e7168['isMobile']&&_0x2e7168[_0x542d7c('0x6a')]&&_0x2e7168[_0x542d7c('0x6a')][_0x542d7c('0x25f9')]);};_0x1e3458(),_0x4f8923[_0x212981('0x1db8')](_0x212981('0x34b9'),_0x1e3458),_0x4f8923[_0x212981('0x1db8')](_0x212981('0x13b6'),_0x209f0a),_0x4f8923[_0x212981('0x1db8')](_0x212981('0x16cb'),_0x209f0a),_0x4f8923[_0x212981('0x1db8')](_0x212981('0x40c'),function(){_0x209f0a(),_0x1e3458();});var _0x44c49d=_0x4bf60a(function(){_0x4f8923['$apply'](function(){var _0x5a479a=a2_0x4bfe;_0x4f8923['$broadcast'](_0x5a479a('0x7e5'),_0x353359);});},0x32);return _0x43010e['on'](_0x1f98b1(),_0x44c49d),_0x4f8923[_0x212981('0x1c18')](_0x212981('0x33f2'),_0x353359),_0x4f8923[_0x212981('0x1db8')](_0x212981('0x2f34'),function(){var _0x5348f8=_0x212981;try{_0x400031['destroy'](),_0xc62e2e['destroy']();}catch(_0x216c54){}try{_0x2e7168[_0x5348f8('0x277d')](_0x353359);}catch(_0x5a7b88){}try{_0x353359[_0x5348f8('0x2cdb')]();}catch(_0x49d3ad){}});}};}])[_0x4365e4('0x1e30')](_0x4365e4('0x2a62'),function(){return{'restrict':'A','link':function(_0x596960,_0x187cdb){var _0x227d9c=a2_0x4bfe;_0x187cdb[_0x227d9c('0x2dc8')]('gridster-no-drag');}};});})?_0x12ae2d[_0x56abdd('0x177a')](_0x241bea,_0x1ea938):_0x12ae2d)||(_0x3855be['exports']=_0x222b66);}();},0xdd5:(_0x40cb75,_0x16a84a,_0x312b05)=>{var _0x2fdbd6,_0x5c0c67,_0x439d5e;!function(_0x5b0846){var _0xe229fb=a2_0x4bfe;'use strict';_0x5c0c67=[_0x312b05(0x1666),_0x312b05(0x14bf)],void 0x0===(_0x439d5e=_0xe229fb('0x19aa')==typeof(_0x2fdbd6=function(_0x110ff9,_0x329d31){var _0xf4756f=_0xe229fb,_0x4a92b5=_0xf4756f('0x26ed');_0x110ff9[_0xf4756f('0x122c')]('ng-sortable',[])['constant'](_0xf4756f('0x3177'),'0.4.1')[_0xf4756f('0x1a6d')](_0xf4756f('0xeef'),{})[_0xf4756f('0x1e30')](_0xf4756f('0x2275'),[_0xf4756f('0x1636'),_0xf4756f('0xeef'),function(_0x3583a0,_0x153393){var _0x587da6,_0xda9958;function _0x1ae69c(_0x3855f5){var _0x3fd3cc=a2_0x4bfe;return _0x3855f5[_0x3fd3cc('0x10ba')](_0x3fd3cc('0x2117'))||_0x3855f5[_0x3fd3cc('0x10ba')](_0x3fd3cc('0x1666'))||_0x3855f5['getAttribute'](_0x3fd3cc('0x301'))||_0x3855f5['getAttribute'](_0x3fd3cc('0x2a1d'));}return{'restrict':'AC','scope':{'ngSortable':'=?'},'priority':0x3e9,'compile':function(_0x4971c3,_0x25f239){var _0x3b4717=a2_0x4bfe,_0x15338b=[]['filter'][_0x3b4717('0x2449')](_0x4971c3[0x0][_0x3b4717('0x2d7b')],function(_0xaa7cfd){var _0x6d67d2=_0x3b4717;return _0xaa7cfd[_0x6d67d2('0x3605')]===Node[_0x6d67d2('0x1206')]&&_0x1ae69c(_0xaa7cfd);})[0x0];if(_0x15338b){var _0x1cc89c=_0x1ae69c(_0x15338b)['match'](/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(_0x1cc89c){var _0x5dc032=_0x1cc89c[0x2];return function(_0x49d28d,_0x70759a){var _0x7422ae=_0x3b4717,_0x246cbf,_0x56f142,_0xba2465=_0x3583a0(_0x5dc032),_0x42dd55=function(){var _0x80e5d2=a2_0x4bfe;return _0xba2465(_0x49d28d[_0x80e5d2('0x955')])||[];},_0xb68d80=_0x70759a[0x0],_0x2cadcc=_0x110ff9[_0x7422ae('0x237f')](_0x49d28d[_0x7422ae('0x2275')]||{},_0x153393),_0x514dd1=[];function _0x5c8418(_0x577b4a,_0x33a502){var _0x46e640=_0x7422ae,_0x289966='on'+_0x577b4a[_0x46e640('0x21a5')]['charAt'](0x0)[_0x46e640('0x1a66')]()+_0x577b4a['type'][_0x46e640('0x3102')](0x1),_0x19f9ae=_0x42dd55();_0x2cadcc[_0x289966]&&_0x2cadcc[_0x289966]({'model':_0x33a502||_0x19f9ae[_0x577b4a[_0x46e640('0x21f0')]],'models':_0x19f9ae,'oldIndex':_0x577b4a['oldIndex'],'newIndex':_0x577b4a['newIndex'],'originalEvent':_0x577b4a});}function _0x58335e(_0x32d3ee){var _0x21c696=_0x7422ae,_0x266625=_0x42dd55();if(_0x266625){var _0x413d62=_0x32d3ee[_0x21c696('0x25f2')],_0x8c15c3=_0x32d3ee[_0x21c696('0x21f0')];if(_0xb68d80!==_0x32d3ee[_0x21c696('0x2f5')]){var _0x174a5e=_0x32d3ee[_0x21c696('0x2f5')][_0x4a92b5]();_0x587da6=_0x174a5e[_0x413d62],_0x329d31[_0x21c696('0x1210')]&&_0x21c696('0x859')===_0x329d31['active'][_0x21c696('0x243e')]?(_0x587da6=_0x110ff9[_0x21c696('0x213')](_0x587da6),_0x174a5e['splice'](_0x329d31[_0x21c696('0xd74')][_0x21c696('0x1b25')](_0x32d3ee[_0x21c696('0x859')],_0x56f142[_0x21c696('0xded')][_0x21c696('0x6a')]),0x0,_0x174a5e[_0x21c696('0x1f40')](_0x413d62,0x1)[0x0]),_0x32d3ee[_0x21c696('0x2f5')][_0x21c696('0x3cf')](_0x32d3ee[_0x21c696('0x859')])&&_0x32d3ee[_0x21c696('0x2f5')]['removeChild'](_0x32d3ee[_0x21c696('0x859')])):_0x174a5e[_0x21c696('0x1f40')](_0x413d62,0x1),_0x266625[_0x21c696('0x1f40')](_0x8c15c3,0x0,_0x587da6),_0x32d3ee[_0x21c696('0x2f5')][_0x21c696('0x3de')](_0x32d3ee['item'],_0xda9958);}else _0x266625[_0x21c696('0x1f40')](_0x8c15c3,0x0,_0x266625['splice'](_0x413d62,0x1)[0x0]),_0xda9958[_0x21c696('0x3605')]===Node[_0x21c696('0x333f')]&&_0x32d3ee['from'][_0x21c696('0x3de')](_0xda9958,_0x32d3ee['item'][_0x21c696('0xc35')]);_0x49d28d[_0x21c696('0x1280')]();}}function _0x7dc03a(){var _0xe5a4d8=_0x7422ae;_0x246cbf(),_0x110ff9[_0xe5a4d8('0x247d')](_0x514dd1,function(_0x166a50){_0x166a50();}),_0x56f142[_0xe5a4d8('0x2cdb')](),_0xb68d80[_0x4a92b5]=null,_0xb68d80=null,_0x514dd1=null,_0x56f142=null,_0xda9958=null;}_0xb68d80[_0x4a92b5]=_0x42dd55,_0x56f142=_0x329d31[_0x7422ae('0x126')](_0xb68d80,Object['keys'](_0x2cadcc)['reduce'](function(_0x5ef2fb,_0xf54715){return _0x5ef2fb[_0xf54715]=_0x5ef2fb[_0xf54715]||_0x2cadcc[_0xf54715],_0x5ef2fb;},{'onStart':function(_0x5e0daa){var _0x274de8=_0x7422ae;_0xda9958=_0x5e0daa[_0x274de8('0x2f5')]===_0x5e0daa[_0x274de8('0x1b7')][_0x274de8('0x1378')]?_0x5e0daa[_0x274de8('0x1b7')][_0x274de8('0xc35')]:_0x5e0daa[_0x274de8('0x859')][_0x274de8('0xc35')],_0x5c8418(_0x5e0daa),_0x49d28d[_0x274de8('0x1280')]();},'onEnd':function(_0x4a6da9){var _0x253cc4=_0x7422ae;_0x5c8418(_0x4a6da9,_0x587da6),_0x49d28d[_0x253cc4('0x1280')]();},'onAdd':function(_0x1bed4d){var _0x786c50=_0x7422ae;_0x58335e(_0x1bed4d),_0x5c8418(_0x1bed4d,_0x587da6),_0x49d28d[_0x786c50('0x1280')]();},'onUpdate':function(_0x45f9de){_0x58335e(_0x45f9de),_0x5c8418(_0x45f9de);},'onRemove':function(_0x13e6dd){_0x5c8418(_0x13e6dd,_0x587da6);},'onSort':function(_0x5d5f2d){_0x5c8418(_0x5d5f2d);}})),_0x110ff9[_0x7422ae('0x247d')]([_0x7422ae('0x3902'),_0x7422ae('0x2d00'),_0x7422ae('0x6a'),_0x7422ae('0xc86'),'animation',_0x7422ae('0x307d'),_0x7422ae('0x2403'),'filter',_0x7422ae('0x2a85'),_0x7422ae('0xb46'),'onAdd',_0x7422ae('0x184f'),'onRemove',_0x7422ae('0x2fa0'),_0x7422ae('0x11f9'),'onClone',_0x7422ae('0x2101'),_0x7422ae('0x33a3'),'animation','forceFallback'],function(_0x183db5){var _0x4f5daa=_0x7422ae;_0x514dd1[_0x4f5daa('0x1a90')](_0x49d28d[_0x4f5daa('0x1cb1')](_0x4f5daa('0x1189')+_0x183db5,function(_0x20b81c){var _0x3a376d=_0x4f5daa;void 0x0!==_0x20b81c&&(_0x2cadcc[_0x183db5]=_0x20b81c,/^on[A-Z]/[_0x3a376d('0x19cd')](_0x183db5)||_0x56f142[_0x3a376d('0x37e5')](_0x183db5,_0x20b81c));}));}),_0x246cbf=_0x49d28d[_0x7422ae('0x1db8')](_0x7422ae('0x2f34'),_0x7dc03a);};}}}};}]);})?_0x2fdbd6[_0xe229fb('0x177a')](_0x16a84a,_0x5c0c67):_0x2fdbd6)||(_0x40cb75['exports']=_0x439d5e);}();},0x8a6:()=>{!function(_0x31d93a,_0x55741a,_0xd4ee92){var _0x33b479=a2_0x4bfe;'use strict';function _0x4c4539(_0x5ef9df,_0xd3fb53){var _0xf71dc=a2_0x4bfe;function _0x59d9d1(_0x2049d8,_0x3ea40f,_0x28be61,_0x5b3827){var _0x52e4e0=a2_0x4bfe,_0x28debe=_0x5b3827[_0x52e4e0('0x2967')](),_0x42c3e6=_0x5b3827[_0x52e4e0('0x2967')]();function _0x482865(){var _0xc7246d=_0x52e4e0;Array['prototype'][_0xc7246d('0x2997')]['call'](_0x3ea40f[_0xc7246d('0x16fd')](_0xc7246d('0x289f')),function(_0x29754b){var _0x526f26=_0xc7246d;return _0x29754b[_0x526f26('0xc04')][_0x526f26('0x3cf')](_0x526f26('0x1cca'))&&_0x3ea40f[0x0][_0x526f26('0x37e1')](_0x29754b);}),_0x3ea40f['removeClass'](_0xc7246d('0x19d9'))['off'](_0xc7246d('0x160'),_0x38aac8);}function _0x16ab87(){var _0xd71c29=_0x52e4e0,_0x2574af;_0x2574af=_0x55741a['element'](''),_0x5ef9df(_0x2574af[_0xd71c29('0x2dc8')]('md-sort-icon')[_0xd71c29('0x1e52')](_0xd71c29('0x250f'),_0xd71c29('0x290f')))(_0x2049d8),_0x3ea40f[_0xd71c29('0x522')](_0xd71c29('0x3628'))?_0x3ea40f[_0xd71c29('0x1476')](_0x2574af):_0x3ea40f[_0xd71c29('0x10f')](_0x2574af),_0x3ea40f[_0xd71c29('0x2dc8')](_0xd71c29('0x19d9'))['on'](_0xd71c29('0x160'),_0x38aac8);}function _0xe354eb(){var _0x2f98e6=_0x52e4e0;return Array['prototype'][_0x2f98e6('0xe1c')][_0x2f98e6('0x2449')](_0x3ea40f[_0x2f98e6('0x38bb')]()[_0x2f98e6('0xfc0')](),_0x3ea40f[0x0]);}function _0x5c6f94(){var _0x3e3e2f=_0x52e4e0;return _0x2049d8[_0x3e3e2f('0x224d')]&&(_0x28debe[_0x3e3e2f('0x1faa')]===_0x2049d8[_0x3e3e2f('0x224d')]||_0x28debe['order']==='-'+_0x2049d8[_0x3e3e2f('0x224d')]);}function _0xe8125(){var _0xab4ca3=_0x52e4e0;return''===_0x28be61[_0xab4ca3('0x19d4')]||_0x2049d8[_0xab4ca3('0x299')];}function _0x38aac8(){_0x2049d8['$applyAsync'](function(){var _0x59ce80=a2_0x4bfe;_0x5c6f94()?_0x28debe[_0x59ce80('0x1faa')]=_0x59ce80('0x31e9')===_0x2049d8[_0x59ce80('0x3165')]()?'-'+_0x2049d8['orderBy']:_0x2049d8[_0x59ce80('0x224d')]:_0x28debe[_0x59ce80('0x1faa')]='md-asc'===_0x2049d8[_0x59ce80('0x3165')]()?_0x2049d8[_0x59ce80('0x224d')]:'-'+_0x2049d8[_0x59ce80('0x224d')],_0x55741a[_0x59ce80('0x1e34')](_0x28debe[_0x59ce80('0x1992')])&&_0xd3fb53[_0x59ce80('0x2baa')](function(){var _0x2134cb=_0x59ce80;_0x28debe['onReorder'](_0x28debe[_0x2134cb('0x1faa')]);});});}function _0x521777(_0x1fecb1,_0x355af5){var _0x5364c4=_0x52e4e0;_0x42c3e6[_0x5364c4('0x2d4')][_0x1fecb1]=_0x355af5,_0x355af5[_0x5364c4('0x299')]?_0x3ea40f[_0x5364c4('0x2dc8')](_0x5364c4('0x3628')):_0x3ea40f['removeClass'](_0x5364c4('0x3628'));}_0x2049d8[_0x52e4e0('0x3165')]=function(){var _0x4fd958=_0x52e4e0;return _0x5c6f94()?'-'===_0x28debe[_0x4fd958('0x1faa')][_0x4fd958('0x40')](0x0)?'md-desc':_0x4fd958('0x31e9'):''===_0x28be61[_0x4fd958('0x1ddd')]||_0x2049d8['$eval'](_0x28be61[_0x4fd958('0x1ddd')])?'md-desc':_0x4fd958('0x31e9');},_0x2049d8['$watch'](_0x5c6f94,function(_0x2d9d69){var _0x22dc10=_0x52e4e0;_0x2d9d69?_0x3ea40f[_0x22dc10('0x2dc8')](_0x22dc10('0x2b3c')):_0x3ea40f['removeClass'](_0x22dc10('0x2b3c'));}),_0x2049d8[_0x52e4e0('0x1cb1')](_0xe354eb,function(_0x41b219){_0x521777(_0x41b219,{'numeric':_0xe8125()});}),_0x2049d8[_0x52e4e0('0x1cb1')](_0xe8125,function(_0x502cb3){_0x521777(_0xe354eb(),{'numeric':_0x502cb3});}),_0x2049d8[_0x52e4e0('0x1cb1')](_0x52e4e0('0x224d'),function(_0x3cc597){var _0x450d36=_0x52e4e0;_0x3cc597?_0x3ea40f['hasClass']('md-sort')||_0x16ab87():_0x3ea40f[_0x450d36('0x522')]('md-sort')&&_0x482865();});}return{'compile':function(_0x50303f){var _0x421da0=a2_0x4bfe;return _0x50303f[_0x421da0('0x2dc8')](_0x421da0('0x346d')),_0x59d9d1;},'require':['^^mdHead','^^mdTable'],'restrict':'A','scope':{'numeric':_0xf71dc('0x331d'),'orderBy':_0xf71dc('0x1bdd')}};}function _0x281620(_0x48afb8){return function(_0x206d10,_0x5bdaa6,_0x1f75b3,_0x1697f2){if(_0x1f75b3&&'object'==typeof _0x1f75b3){var _0x5ea2fe=_0x48afb8(_0x206d10,_0x5bdaa6,!0x0,_0x1697f2);return _0x55741a['extend'](_0x5ea2fe['instance'],_0x1f75b3),_0x5ea2fe();}return _0x48afb8(_0x206d10,_0x5bdaa6,_0x1f75b3,_0x1697f2);};}function _0x5d6ce5(_0x3815e1,_0x4c7613,_0x2bf350,_0x59906c,_0x212166,_0xb6d5e3,_0x53c000,_0x57e138,_0x340d14){var _0x4522fa=a2_0x4bfe,_0x39cf4c=!0x1,_0x5940d9=_0x55741a[_0x4522fa('0x88a')](_0x2bf350[_0x4522fa('0x18f6')](_0x4522fa('0x3742'))),_0x22a2a7={'clickOutsideToClose':!0x0,'disableScroll':!0x0,'escToClose':!0x0,'focusOnOpen':!0x0};function _0x2d964f(_0x5df38c,_0x1dddec){var _0x133207=_0x4522fa,_0x1e810f,_0x57efb6=_0xb6d5e3['$new'](),_0x938c67=_0x3815e1(_0x5df38c)(_0x57efb6),_0xe8cc2=_0x59906c[_0x133207('0x1812')](_0x57efb6,'md-edit-dialog-backdrop');return _0x1dddec[_0x133207('0x19f6')]?_0x1e810f=function(_0x4739dc,_0x49851c,_0x2a6b8b){var _0x46b71c=_0x133207;if(!_0x4739dc[_0x46b71c('0x19f6')])return;return _0x4739dc[_0x46b71c('0x16ab')]&&_0x55741a['extend'](_0x2a6b8b,_0x4739dc[_0x46b71c('0x16ab')]),_0x4739dc[_0x46b71c('0x2fb0')]&&_0x55741a[_0x46b71c('0x237f')](_0x2a6b8b,_0x4739dc[_0x46b71c('0x2fb0')]),_0x4739dc[_0x46b71c('0x4ce')]?(_0x49851c[_0x4739dc[_0x46b71c('0x4ce')]]={},_0x4739dc[_0x46b71c('0x2a48')]?_0x55741a['extend'](_0x49851c[_0x4739dc[_0x46b71c('0x4ce')]],_0x4739dc[_0x46b71c('0x1789')]):_0x55741a['extend'](_0x49851c,_0x4739dc['scope'])):_0x55741a['extend'](_0x49851c,_0x4739dc['scope']),_0x4739dc[_0x46b71c('0x2a48')]?_0x4c7613(_0x4739dc[_0x46b71c('0x19f6')],_0x2a6b8b,_0x49851c[_0x4739dc[_0x46b71c('0x4ce')]]):_0x4c7613(_0x4739dc[_0x46b71c('0x19f6')],_0x2a6b8b);}(_0x1dddec,_0x57efb6,{'$element':_0x938c67,'$scope':_0x57efb6}):_0x55741a[_0x133207('0x237f')](_0x57efb6,_0x1dddec['scope']),_0x1dddec[_0x133207('0x65')]&&function(_0x38f95d){var _0x244558=_0x133207,_0x422e40=_0x59906c[_0x244558('0x10b3')](_0x38f95d,_0x5940d9);_0x38f95d['on']('$destroy',function(){_0x422e40();});}(_0x938c67),_0x5940d9[_0x133207('0x1476')](_0xe8cc2)[_0x133207('0x10f')](_0x938c67[_0x133207('0x2dc8')](_0x133207('0x15d8'))),function(_0x1ceaed,_0xe8a7e){var _0x50f05d=_0x133207,_0x1ce3e5=_0x55741a[_0x50f05d('0x88a')](_0xe8a7e)[_0x50f05d('0x19f6')](_0x50f05d('0x19c8'))['getTable'](),_0x1ab652=function(){var _0x397e15=_0x50f05d;return _0x1ceaed[_0x397e15('0x18f6')](_0x397e15('0x22e7'));},_0x40306a=function(){return{'width':_0x4c33fe(),'height':_0x1ab652()};},_0x5cd6b8=function(){var _0x20608a=_0x50f05d,_0x588608=_0x1ce3e5[_0x20608a('0x38bb')]();return _0x20608a('0x1853')===_0x588608[_0x20608a('0x18f6')](_0x20608a('0x742'))?_0x588608[0x0]['getBoundingClientRect']():_0x1ce3e5[0x0][_0x20608a('0x2748')]();},_0x4c33fe=function(){var _0x506265=_0x50f05d;return _0x1ceaed[_0x506265('0x18f6')]('clientWidth');},_0x1f8663=function(){var _0x376563=_0x50f05d,_0x2c6094=_0x40306a(),_0x8b199a=_0xe8a7e[_0x376563('0x2748')](),_0x3ea4ae=_0x5cd6b8();_0x2c6094[_0x376563('0x2bac')]>_0x3ea4ae[_0x376563('0x1e0d')]-_0x8b199a[_0x376563('0x1d75')]?_0x1ceaed[_0x376563('0x30a3')](_0x376563('0x1d75'),_0x3ea4ae[_0x376563('0x1e0d')]-_0x2c6094[_0x376563('0x2bac')]+'px'):_0x1ceaed[_0x376563('0x30a3')](_0x376563('0x1d75'),_0x8b199a[_0x376563('0x1d75')]+'px'),_0x2c6094[_0x376563('0x28c')]>_0x3ea4ae[_0x376563('0x24a3')]-_0x8b199a[_0x376563('0x361a')]?_0x1ceaed[_0x376563('0x30a3')](_0x376563('0x361a'),_0x3ea4ae[_0x376563('0x24a3')]-_0x2c6094['height']+'px'):_0x1ceaed['css'](_0x376563('0x361a'),_0x8b199a[_0x376563('0x361a')]+0x1+'px'),_0x1ceaed['css']('minWidth',_0x8b199a[_0x376563('0x2bac')]+'px');},_0xfe5c1b=_0xb6d5e3[_0x50f05d('0x1cb1')](_0x4c33fe,_0x1f8663),_0x404267=_0xb6d5e3['$watch'](_0x1ab652,_0x1f8663);_0x340d14[_0x50f05d('0x2e05')]('resize',_0x1f8663),_0x1ceaed['on'](_0x50f05d('0x2f34'),function(){var _0x27067d=_0x50f05d;_0xfe5c1b(),_0x404267(),_0x340d14[_0x27067d('0x1940')](_0x27067d('0x32b7'),_0x1f8663);});}(_0x938c67,_0x1dddec[_0x133207('0x312f')]),_0x1dddec['focusOnOpen']&&function(_0x26502a){var _0x2ebd8e=_0x133207;_0x59906c[_0x2ebd8e('0x2baa')](function(){var _0x126c40=_0x2ebd8e,_0x2c7bf7=_0x59906c[_0x126c40('0x6eb')](_0x26502a);_0x2c7bf7&&_0x2c7bf7['focus']();},!0x1);}(_0x938c67),_0x1dddec['clickOutsideToClose']&&_0xe8cc2['on'](_0x133207('0x160'),function(){var _0x3403dc=_0x133207;_0x938c67[_0x3403dc('0x2371')]();}),_0x1dddec[_0x133207('0x2fe0')]&&function(_0x420f9e){var _0x4a3a60=_0x133207,_0x5edd5f=function(_0x40e872){var _0x3d9edf=a2_0x4bfe;0x1b===_0x40e872[_0x3d9edf('0x1f8c')]&&_0x420f9e[_0x3d9edf('0x2371')]();};_0x5940d9['on'](_0x4a3a60('0x2eb2'),_0x5edd5f),_0x420f9e['on'](_0x4a3a60('0x2f34'),function(){var _0x70d8bd=_0x4a3a60;_0x5940d9[_0x70d8bd('0x1202')](_0x70d8bd('0x2eb2'),_0x5edd5f);});}(_0x938c67),_0x938c67['on'](_0x133207('0x2f34'),function(){var _0x26133e=_0x133207;_0x39cf4c=!0x1,_0xe8cc2[_0x26133e('0x2371')]();}),_0x1e810f;}function _0x59686e(_0x4473f8){var _0x2ec36d=_0x4522fa;_0x39cf4c=!0x1,console[_0x2ec36d('0x2534')](_0x4473f8);}function _0x470403(_0x470481,_0x2dde4f){var _0x2a7ef3=_0x4522fa;return{'controller':['$element','$q',_0x2a7ef3('0x2aa4'),_0x2a7ef3('0x1868'),function(_0x5a51c5,_0x4799fb,_0x1b1450,_0x41f9da){var _0x2bce7=_0x2a7ef3;this[_0x2bce7('0x323c')]=function(){var _0xb9ad9f=_0x2bce7;_0x5a51c5[_0xb9ad9f('0x2371')]();},this[_0x2bce7('0xcc4')]=function(){var _0x28b514=_0x2bce7;return _0x41f9da[_0x28b514('0xb41')][_0x28b514('0x10a7')];},_0x41f9da[_0x2bce7('0x323c')]=this[_0x2bce7('0x323c')],_0x41f9da['submit']=function(){var _0xa79df6=_0x2bce7;(_0x41f9da['editDialog'][_0xa79df6('0x2d52')]?_0x4799fb[_0xa79df6('0xf51')]():_0x55741a[_0xa79df6('0x1e34')](_0x1b1450)?_0x4799fb[_0xa79df6('0x36d1')](_0x1b1450(_0x41f9da['editDialog'][_0xa79df6('0x10a7')])):_0x4799fb[_0xa79df6('0x16ab')]())[_0xa79df6('0x26b5')](function(){var _0x466a10=_0xa79df6;_0x41f9da[_0x466a10('0x323c')]();});};}],'locals':{'save':_0x2dde4f[_0x2a7ef3('0x2aa4')]},'scope':{'cancel':_0x2dde4f[_0x2a7ef3('0x31ce')]||'Cancel','messages':_0x2dde4f[_0x2a7ef3('0x523')],'model':_0x2dde4f[_0x2a7ef3('0x2fbb')],'ok':_0x2dde4f['ok']||_0x2a7ef3('0x880'),'placeholder':_0x2dde4f[_0x2a7ef3('0x162f')],'title':_0x2dde4f[_0x2a7ef3('0x2595')],'size':_0x470481},'template':_0x2a7ef3('0x1b79')+function(){var _0x43d247=_0x2a7ef3,_0x2c63df=_0x43d247('0x34ef')+(_0x2dde4f[_0x43d247('0x21a5')]||_0x43d247('0xc7a'))+'\x22';for(var _0x5ecc6b in _0x2dde4f[_0x43d247('0x2ad0')])_0x2c63df+='\x20'+_0x5ecc6b+'=\x22'+_0x2dde4f[_0x43d247('0x2ad0')][_0x5ecc6b]+'\x22';return _0x2c63df;}()+_0x2a7ef3('0x6d4')};}return this['show']=function(_0x4b7ab2){var _0x3dff84=_0x4522fa;if(_0x39cf4c)return _0x212166[_0x3dff84('0xf51')]();if(_0x39cf4c=!0x0,!(_0x4b7ab2=_0x55741a[_0x3dff84('0x237f')]({},_0x22a2a7,_0x4b7ab2))[_0x3dff84('0x2b70')])return _0x59686e(_0x3dff84('0x2c20'));if(!_0x4b7ab2[_0x3dff84('0x2b70')]['currentTarget'][_0x3dff84('0xc04')][_0x3dff84('0x3cf')]('md-cell'))return _0x59686e('The\x20event\x20target\x20must\x20be\x20a\x20table\x20cell.');if(_0x4b7ab2[_0x3dff84('0x2a48')]&&!_0x4b7ab2[_0x3dff84('0x4ce')])return _0x59686e(_0x3dff84('0x3814'));_0x4b7ab2['target']=_0x4b7ab2['targetEvent'][_0x3dff84('0x1825')];var _0x25d7e7=function(_0xa72de4){return _0x212166(function(_0x28ed06,_0x4ffaef){var _0x103264=a2_0x4bfe,_0x3d43c6=_0xa72de4['template'];return _0x3d43c6?_0x55741a['isString'](_0x3d43c6)?_0x28ed06(_0x3d43c6):void _0x4ffaef(_0x103264('0x6d6')+typeof _0x3d43c6+'.'):_0xa72de4['templateUrl']?(_0x3d43c6=_0x53c000['get'](_0xa72de4[_0x103264('0x1bd9')]))?_0x28ed06(_0x3d43c6):_0x57e138(_0xa72de4[_0x103264('0x1bd9')])[_0x103264('0x26b5')](function(_0x4688f5){return _0x28ed06(_0x4688f5);},function(){var _0x4d1a6e=_0x103264;return _0x4ffaef(_0x4d1a6e('0x3416'));}):void _0x4ffaef(_0x103264('0x1bb4'));});}(_0x4b7ab2),_0x56f9e6=[_0x25d7e7];for(var _0x533ec4 in _0x4b7ab2[_0x3dff84('0x16ab')])_0x25d7e7=_0x4b7ab2[_0x3dff84('0x16ab')][_0x533ec4],_0x56f9e6[_0x3dff84('0x1a90')](_0x212166[_0x3dff84('0x36d1')](_0x55741a['isFunction'](_0x25d7e7)?_0x25d7e7():_0x25d7e7));return(_0x25d7e7=_0x212166[_0x3dff84('0x130c')](_0x56f9e6))[_0x3dff84('0x2287')](_0x59686e),_0x25d7e7[_0x3dff84('0x26b5')](function(_0x47cd1c){var _0x27a979=_0x3dff84,_0x56e8f9=_0x47cd1c[_0x27a979('0x2967')]();for(var _0x5d987f in _0x4b7ab2[_0x27a979('0x16ab')])_0x4b7ab2[_0x27a979('0x16ab')][_0x5d987f]=_0x47cd1c['shift']();return _0x2d964f(_0x56e8f9,_0x4b7ab2);});},this[_0x4522fa('0xe52')]=function(_0x2bbdc2){var _0x546eeb=_0x4522fa;return this['show'](_0x55741a[_0x546eeb('0x237f')]({},_0x2bbdc2,_0x470403(_0x546eeb('0xe52'),_0x2bbdc2)));}[_0x4522fa('0x1ecd')](this),this[_0x4522fa('0x28c1')]=function(_0x5b9024){var _0x3b2830=_0x4522fa;return this[_0x3b2830('0x4ae')](_0x55741a[_0x3b2830('0x237f')]({},_0x5b9024,_0x470403(_0x3b2830('0x28c1'),_0x5b9024)));}[_0x4522fa('0x1ecd')](this),this;}function _0x2db07f(_0x58274c){var _0x2212d2=a2_0x4bfe;function _0x515929(_0x134878,_0xbfac38,_0x4909e8,_0x164c8c){var _0x3e5964=a2_0x4bfe,_0x17a150=new Array(0x2);function _0x5a7044(){var _0x413caf=a2_0x4bfe;_0xbfac38[_0x413caf('0x18f6')]('lastElementChild')['firstElementChild'][_0x413caf('0x37f2')](_0x58274c(_0x55741a[_0x413caf('0x88a')](_0x413caf('0x3797'))[_0x413caf('0x1e52')]({'aria-label':_0x413caf('0x4d3'),'ng-click':_0x413caf('0x2ca3'),'ng-checked':'allSelected()','ng-disabled':'!getSelectableRows().length'}))(_0x134878)[0x0]);}function _0x49d0d0(_0x3aba3b){var _0x39e6cd=a2_0x4bfe;return _0x55741a['element'](_0x3aba3b)[_0x39e6cd('0x19f6')](_0x39e6cd('0x27e7'));}_0x134878[_0x3e5964('0x31a7')]=function(){var _0x15780a=_0x3e5964,_0x478f55=_0x134878[_0x15780a('0x41b')]();return _0x478f55[_0x15780a('0x175a')]&&_0x478f55['every'](function(_0x82dfef){var _0x39c913=_0x15780a;return _0x82dfef[_0x39c913('0x2f8e')]();});},_0x134878[_0x3e5964('0x41b')]=function(){var _0x3cfc9d=_0x3e5964;return _0x164c8c[_0x3cfc9d('0x11bb')]()['map'](_0x49d0d0)[_0x3cfc9d('0x3127')](function(_0x367e2d){var _0x2ab043=_0x3cfc9d;return _0x367e2d&&!_0x367e2d[_0x2ab043('0x2d00')];});},_0x134878[_0x3e5964('0x2067')]=function(){var _0x39f161=_0x3e5964;_0x164c8c[_0x39f161('0x11bb')]()[_0x39f161('0x2d86')](_0x49d0d0)[_0x39f161('0x247d')](function(_0x18310a){var _0x48fc71=_0x39f161;_0x18310a&&!_0x18310a[_0x48fc71('0x2f8e')]()&&_0x18310a[_0x48fc71('0x32b0')]();});},_0x134878[_0x3e5964('0x1891')]=function(){var _0xe68aab=_0x3e5964;return _0x134878[_0xe68aab('0x31a7')]()?_0x134878['unSelectAll']():_0x134878['selectAll']();},_0x134878[_0x3e5964('0x1935')]=function(){var _0xd83338=_0x3e5964;_0x164c8c[_0xd83338('0x11bb')]()[_0xd83338('0x2d86')](_0x49d0d0)[_0xd83338('0x247d')](function(_0x53e148){var _0x268f5d=_0xd83338;_0x53e148&&_0x53e148[_0x268f5d('0x2f8e')]()&&_0x53e148['deselect']();});},_0x134878[_0x3e5964('0x787')]([function(){var _0x11b4eb=_0x3e5964;return _0x164c8c[_0x11b4eb('0x107b')];},_0x164c8c[_0x3e5964('0x2d2b')]],function(_0x37838b){var _0x3cc7b7=_0x3e5964,_0x548ca7;_0x37838b[0x0]!==_0x17a150[0x0]?_0x37838b[0x0]?(_0xbfac38[_0x3cc7b7('0xfc0')]()[_0x3cc7b7('0x1476')](_0x3cc7b7('0xdf')),_0x37838b[0x1]&&_0x5a7044()):Array[_0x3cc7b7('0x5a')]['some'][_0x3cc7b7('0x2449')](_0xbfac38[_0x3cc7b7('0x16fd')]('th'),function(_0x1e6030){var _0x531ac0=_0x3cc7b7;return _0x1e6030[_0x531ac0('0xc04')][_0x531ac0('0x3cf')](_0x531ac0('0x80c'))&&_0x1e6030['remove']();}):_0x37838b[0x0]&&_0x37838b[0x1]!==_0x17a150[0x1]&&(_0x37838b[0x1]?_0x5a7044():(_0x548ca7=_0xbfac38[_0x3cc7b7('0x18f6')](_0x3cc7b7('0xbbe'))[_0x3cc7b7('0x136c')])['classList'][_0x3cc7b7('0x3cf')](_0x3cc7b7('0x80c'))&&_0x55741a['element'](_0x548ca7)[_0x3cc7b7('0x1e61')]()),_0x55741a['copy'](_0x37838b,_0x17a150);});}return{'bindToController':!0x0,'compile':function(_0x1f82e){var _0x3c46d9=a2_0x4bfe;return _0x1f82e[_0x3c46d9('0x2dc8')](_0x3c46d9('0x29ec')),_0x515929;},'controller':function(){},'controllerAs':_0x2212d2('0x263d'),'require':_0x2212d2('0x330c'),'restrict':'A','scope':{'order':'=?mdOrder','onReorder':_0x2212d2('0xe09')}};}function _0x42a2e8(_0x403c95,_0x27159f){var _0x24599b=a2_0x4bfe;return{'bindToController':!0x0,'controller':function(){},'controllerAs':'$mdSelect','link':function(_0x1fb754,_0x3f4669,_0x271769,_0x2365b3){var _0x21203c=a2_0x4bfe,_0x5bb007=_0x2365b3[_0x21203c('0x2967')](),_0xc2889f=_0x2365b3[_0x21203c('0x2967')](),_0xea2a65=_0x27159f(_0x271769[_0x21203c('0x2f39')]);if(_0x5bb007['id']=_0xea2a65(_0x5bb007[_0x21203c('0x5a7')]),_0xc2889f[_0x21203c('0x107b')]&&_0x5bb007['id']){if(_0xc2889f['$$hash']['has'](_0x5bb007['id'])){var _0x1909de=_0xc2889f[_0x21203c('0x328d')][_0x21203c('0xe1c')](_0xc2889f['$$hash'][_0x21203c('0x1861')](_0x5bb007['id']));-0x1===_0x1909de?_0xc2889f['$$hash'][_0x21203c('0x2499')](_0x5bb007['id']):_0xc2889f[_0x21203c('0x1d4a')][_0x21203c('0xa9b')](_0x5bb007['id'],_0x5bb007[_0x21203c('0x5a7')])||(_0xc2889f[_0x21203c('0x1d4a')][_0x21203c('0x3956')](_0x5bb007['id'],_0x5bb007[_0x21203c('0x5a7')]),_0xc2889f['selected'][_0x21203c('0x1f40')](_0x1909de,0x1,_0x5bb007['model']));}else _0xc2889f[_0x21203c('0x328d')][_0x21203c('0x2997')](function(_0x1b2d92,_0x5ead3b){var _0x27a46a=_0x21203c;if(_0xea2a65(_0x1b2d92)===_0x5bb007['id'])return _0xc2889f['$$hash'][_0x27a46a('0x3956')](_0x5bb007['id'],_0x5bb007[_0x27a46a('0x5a7')]),_0xc2889f[_0x27a46a('0x328d')][_0x27a46a('0x1f40')](_0x5ead3b,0x1,_0x5bb007[_0x27a46a('0x5a7')]),!0x0;});}function _0x41b44e(){var _0xee70fe=_0x21203c;return''===_0x271769['mdAutoSelect']||_0x5bb007[_0xee70fe('0x1fbc')];}function _0x975064(){var _0x3c18e2=_0x21203c,_0x42f547;_0x3f4669[_0x3c18e2('0x1476')]((_0x42f547=_0x55741a[_0x3c18e2('0x88a')]('')[_0x3c18e2('0x1e52')]({'aria-label':_0x3c18e2('0x2faa'),'ng-click':_0x3c18e2('0x3840'),'ng-checked':_0x3c18e2('0xa4e'),'ng-disabled':_0x3c18e2('0x2bd0')}),_0x55741a[_0x3c18e2('0x88a')](_0x3c18e2('0x18fb'))['append'](_0x403c95(_0x42f547)(_0x1fb754)))),_0x41b44e()&&_0x3f4669['on'](_0x3c18e2('0x160'),_0x274c2d);}function _0x27ae9f(_0xf399c5){var _0x5a5425=_0x21203c;_0x5bb007['id']&&(_0xc2889f[_0x5a5425('0x1d4a')][_0x5a5425('0x728')](_0x5bb007['id'])?-0x1===_0xf399c5[_0x5a5425('0xe1c')](_0xc2889f['$$hash']['get'](_0x5bb007['id']))&&_0xc2889f[_0x5a5425('0x1d4a')]['purge'](_0x5bb007['id']):-0x1!==_0xf399c5['indexOf'](_0x5bb007[_0x5a5425('0x5a7')])&&_0xc2889f[_0x5a5425('0x1d4a')][_0x5a5425('0x3956')](_0x5bb007['id'],_0x5bb007[_0x5a5425('0x5a7')]));}function _0x274c2d(_0x3dbfa6){var _0x569b02=_0x21203c;_0x1fb754[_0x569b02('0x2c78')](function(){_0x5bb007['toggle'](_0x3dbfa6);});}_0x5bb007[_0x21203c('0x2f8e')]=function(){var _0x34f1f7=_0x21203c;return!!_0xc2889f[_0x34f1f7('0x107b')]&&(_0x5bb007['id']?_0xc2889f[_0x34f1f7('0x1d4a')]['has'](_0x5bb007['id']):-0x1!==_0xc2889f[_0x34f1f7('0x328d')][_0x34f1f7('0xe1c')](_0x5bb007['model']));},_0x5bb007['select']=function(){var _0x19f87a=_0x21203c;_0x5bb007[_0x19f87a('0x2d00')]||(_0xc2889f[_0x19f87a('0x2d2b')]()?_0xc2889f['selected'][_0x19f87a('0x1a90')](_0x5bb007[_0x19f87a('0x5a7')]):_0xc2889f[_0x19f87a('0x328d')][_0x19f87a('0x1f40')](0x0,_0xc2889f['selected'][_0x19f87a('0x175a')],_0x5bb007[_0x19f87a('0x5a7')]),_0x55741a[_0x19f87a('0x1e34')](_0x5bb007[_0x19f87a('0x1aaf')])&&_0x5bb007['onSelect'](_0x5bb007['model']));},_0x5bb007['deselect']=function(){var _0x2edd52=_0x21203c;_0x5bb007[_0x2edd52('0x2d00')]||(_0xc2889f[_0x2edd52('0x328d')][_0x2edd52('0x1f40')](_0xc2889f['selected'][_0x2edd52('0xe1c')](_0x5bb007[_0x2edd52('0x5a7')]),0x1),_0x55741a[_0x2edd52('0x1e34')](_0x5bb007[_0x2edd52('0x318')])&&_0x5bb007['onDeselect'](_0x5bb007['model']));},_0x5bb007[_0x21203c('0xa48')]=function(_0x24ea01){var _0x2a2ed9=_0x21203c;return _0x24ea01&&_0x24ea01[_0x2a2ed9('0x16c5')]&&_0x24ea01[_0x2a2ed9('0x16c5')](),_0x5bb007[_0x2a2ed9('0x2f8e')]()?_0x5bb007[_0x2a2ed9('0x3887')]():_0x5bb007[_0x2a2ed9('0x32b0')]();},_0x1fb754[_0x21203c('0x1cb1')](function(){var _0x1a7067=_0x21203c;return _0xc2889f[_0x1a7067('0x107b')];},function(_0xd23e11){var _0x2e4bfe=_0x21203c;_0xd23e11?_0x975064():(Array[_0x2e4bfe('0x5a')][_0x2e4bfe('0x2997')][_0x2e4bfe('0x2449')](_0x3f4669['children'](),function(_0x4632a8){var _0x243b77=_0x2e4bfe;return _0x4632a8[_0x243b77('0xc04')]['contains'](_0x243b77('0x1a37'))&&_0x3f4669[0x0][_0x243b77('0x37e1')](_0x4632a8);}),_0x41b44e()&&_0x3f4669[_0x2e4bfe('0x1202')](_0x2e4bfe('0x160'),_0x274c2d));}),_0x1fb754[_0x21203c('0x1cb1')](_0x41b44e,function(_0x25ffd8,_0xf13536){var _0x834941=_0x21203c;_0x25ffd8!==_0xf13536&&(_0xc2889f[_0x834941('0x107b')]&&_0x25ffd8?_0x3f4669['on'](_0x834941('0x160'),_0x274c2d):_0x3f4669[_0x834941('0x1202')](_0x834941('0x160'),_0x274c2d));}),_0x1fb754[_0x21203c('0x1cb1')](_0x5bb007['isSelected'],function(_0x47a496){var _0x458c55=_0x21203c;return _0x47a496?_0x3f4669[_0x458c55('0x2dc8')](_0x458c55('0x1e8c')):_0x3f4669['removeClass'](_0x458c55('0x1e8c'));}),_0x1fb754[_0x21203c('0x1cb1')](_0xc2889f[_0x21203c('0x2d2b')],function(_0x5a7da4){var _0x2aaf42=_0x21203c;_0xc2889f[_0x2aaf42('0x107b')]&&!_0x5a7da4&&_0xc2889f[_0x2aaf42('0x328d')][_0x2aaf42('0x1f40')](0x1);}),_0xc2889f[_0x21203c('0x232f')](_0x27ae9f),_0x3f4669['on']('$destroy',function(){_0xc2889f['removeModelChangeListener'](_0x27ae9f);});},'require':[_0x24599b('0x27e7'),'^^mdTable'],'restrict':'A','scope':{'model':_0x24599b('0x485'),'disabled':_0x24599b('0x192d'),'onSelect':_0x24599b('0x13f0'),'onDeselect':_0x24599b('0x1de9'),'autoSelect':_0x24599b('0x2eea')}};}function _0x415281(){var _0x52c64c=a2_0x4bfe,_0x3600da={};this[_0x52c64c('0xa9b')]=function(_0x57b9df,_0x1393be){return _0x3600da[_0x57b9df]===_0x1393be;},this[_0x52c64c('0x1861')]=function(_0x5c62b2){return _0x3600da[_0x5c62b2];},this['has']=function(_0x54f6bf){var _0x547c34=_0x52c64c;return _0x3600da[_0x547c34('0x1522')](_0x54f6bf);},this['purge']=function(_0x11ac67){delete _0x3600da[_0x11ac67];},this[_0x52c64c('0x3956')]=function(_0x401f6d,_0x1f6d3e){_0x3600da[_0x401f6d]=_0x1f6d3e;};}_0x55741a[_0x33b479('0x122c')](_0x33b479('0xe51'),['md-table-pagination.html',_0x33b479('0xd66'),_0x33b479('0x252b'),_0x33b479('0x2c1'),_0x33b479('0x2ecd'),_0x33b479('0x1c93'),'navigate-next.svg']),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x1609'),[])['run']([_0x33b479('0x11c8'),function(_0x49753e){var _0x465d3f=_0x33b479;_0x49753e[_0x465d3f('0x29c1')]('md-table-pagination.html',_0x465d3f('0x222b'));}]),_0x55741a['module'](_0x33b479('0xd66'),[])[_0x33b479('0x202f')]([_0x33b479('0x11c8'),function(_0x13ee9a){var _0x12e69f=_0x33b479;_0x13ee9a[_0x12e69f('0x29c1')](_0x12e69f('0xd66'),'\x0a\x20\x20\x0a\x20\x20\x20\x20\x0a\x20\x20\x0a');}]),_0x55741a['module'](_0x33b479('0x252b'),[])[_0x33b479('0x202f')]([_0x33b479('0x11c8'),function(_0x6bd99){_0x6bd99['put']('arrow-up.svg','');}]),_0x55741a[_0x33b479('0x122c')]('navigate-before.svg',[])[_0x33b479('0x202f')]([_0x33b479('0x11c8'),function(_0x450f63){var _0x3915fb=_0x33b479;_0x450f63['put'](_0x3915fb('0x2c1'),'');}]),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x2ecd'),[])['run']([_0x33b479('0x11c8'),function(_0x2b5cce){var _0x571bb9=_0x33b479;_0x2b5cce[_0x571bb9('0x29c1')](_0x571bb9('0x2ecd'),_0x571bb9('0xc3e'));}]),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x1c93'),[])[_0x33b479('0x202f')]([_0x33b479('0x11c8'),function(_0x592770){var _0x52efb3=_0x33b479;_0x592770['put'](_0x52efb3('0x1c93'),'');}]),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x24aa'),[])[_0x33b479('0x202f')]([_0x33b479('0x11c8'),function(_0x328ff0){var _0x58ca5d=_0x33b479;_0x328ff0['put'](_0x58ca5d('0x24aa'),'');}]),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x33be'),['md.table.templates']),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x33be'))[_0x33b479('0x1e30')](_0x33b479('0x14ac'),function(){return{'compile':function(_0x1748b9){var _0x58914b=a2_0x4bfe;_0x1748b9['addClass'](_0x58914b('0x445'));},'restrict':'A'};}),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x33be'))[_0x33b479('0x1e30')](_0x33b479('0x19c8'),function(){var _0x1e4503=_0x33b479;function _0x48ac4f(_0x1a45df,_0x43b97e,_0x244f9e,_0x2aa58e){var _0x5073a2=a2_0x4bfe,_0x5acede=_0x43b97e[_0x5073a2('0x16fd')]('md-select'),_0x236c45=_0x2aa58e[_0x5073a2('0x2967')](),_0x16f3c8=_0x2aa58e[_0x5073a2('0x2967')]();_0x244f9e['ngClick']&&_0x43b97e[_0x5073a2('0x2dc8')](_0x5073a2('0x1cbd')),_0x5acede[_0x5073a2('0x175a')]&&(_0x5acede['on'](_0x5073a2('0x160'),function(_0x42a527){var _0x42d753=_0x5073a2;_0x42a527[_0x42d753('0x16c5')]();}),_0x43b97e['addClass'](_0x5073a2('0x1cbd'))['on']('click',function(_0x20acd3){_0x20acd3['stopPropagation'](),_0x5acede[0x0]['click']();})),_0x236c45['getTable']=_0x16f3c8[_0x5073a2('0x2198')],_0x1a45df[_0x5073a2('0x1cb1')](function(){var _0xb0d4d7=_0x5073a2;return _0x16f3c8[_0xb0d4d7('0x2d4')][Array[_0xb0d4d7('0x5a')][_0xb0d4d7('0xe1c')][_0xb0d4d7('0x2449')](_0x43b97e[_0xb0d4d7('0x38bb')]()[_0xb0d4d7('0xfc0')](),_0x43b97e[0x0])];},function(_0x115bba){var _0x1ad57a=_0x5073a2;_0x115bba&&(_0x115bba[_0x1ad57a('0x299')]?_0x43b97e['addClass'](_0x1ad57a('0x3628')):_0x43b97e[_0x1ad57a('0x3a0')](_0x1ad57a('0x3628')));});}return{'controller':function(){},'compile':function(_0x130e75){var _0x3956f8=a2_0x4bfe,_0x529d3a=_0x130e75[_0x3956f8('0x16fd')](_0x3956f8('0xc47'));return _0x529d3a[_0x3956f8('0x175a')]&&_0x529d3a[_0x3956f8('0x2dc8')](_0x3956f8('0x3583'))['attr'](_0x3956f8('0x1564'),'md-table-select'),_0x130e75[_0x3956f8('0x2dc8')](_0x3956f8('0x2358')),_0x48ac4f;},'require':[_0x1e4503('0x19c8'),'^^mdTable'],'restrict':'A'};}),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x33be'))[_0x33b479('0x1e30')](_0x33b479('0x263a'),_0x4c4539),_0x4c4539['$inject']=[_0x33b479('0x2078'),_0x33b479('0x2e27')],_0x55741a[_0x33b479('0x122c')](_0x33b479('0x33be'))['decorator'](_0x33b479('0x500'),_0x281620)[_0x33b479('0x36b0')](_0x33b479('0x219'),_0x5d6ce5),_0x281620['$inject']=[_0x33b479('0xc85')],_0x5d6ce5[_0x33b479('0x28c9')]=['$compile',_0x33b479('0x500'),_0x33b479('0x151'),'$mdUtil','$q',_0x33b479('0x709'),'$templateCache','$templateRequest',_0x33b479('0x398e')],_0x55741a[_0x33b479('0x122c')](_0x33b479('0x33be'))[_0x33b479('0x1e30')]('mdFoot',function(){return{'compile':function(_0x5004be){var _0x1e7f54=a2_0x4bfe;_0x5004be[_0x1e7f54('0x2dc8')](_0x1e7f54('0x322d'));},'restrict':'A'};}),_0x55741a[_0x33b479('0x122c')]('md.data.table')[_0x33b479('0x1e30')](_0x33b479('0x3892'),_0x2db07f),_0x2db07f['$inject']=['$compile'],_0x55741a[_0x33b479('0x122c')]('md.data.table')[_0x33b479('0x1e30')](_0x33b479('0x20ea'),function(){var _0x2159af=_0x33b479;function _0x4ca4aa(_0x3d5e08,_0x1a7fe2,_0x22320e,_0x78064b){var _0x55e484=a2_0x4bfe;function _0xeb4713(_0x673dc){var _0x281dcc=a2_0x4bfe;return _0x1a7fe2[0x0][_0x281dcc('0x3cf')](_0x673dc[0x0]);}if(-0x1!==_0x78064b[_0x55e484('0x11bb')]()[_0x55e484('0xe1c')](_0x1a7fe2[0x0])){var _0x2fed7e=_0x55741a[_0x55e484('0x88a')](_0x55e484('0x2888'));_0x3d5e08[_0x55e484('0x1cb1')](function(){var _0x336391=_0x55e484;return _0x78064b[_0x336391('0x107b')];},function(_0x3d0eb4){var _0x34e800=_0x55e484;!_0x3d0eb4||_0x22320e['mdSelect']?_0xeb4713(_0x2fed7e)&&_0x2fed7e[_0x34e800('0x2371')]():_0xeb4713(_0x2fed7e)||_0x1a7fe2[_0x34e800('0x1476')](_0x2fed7e);});}}return{'compile':function(_0x1e27c5){return _0x1e27c5['addClass']('md-row'),_0x4ca4aa;},'require':_0x2159af('0x330c'),'restrict':'A'};}),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x33be'))['directive'](_0x33b479('0x27e7'),_0x42a2e8),_0x42a2e8[_0x33b479('0x28c9')]=[_0x33b479('0x2078'),'$parse'],_0x55741a[_0x33b479('0x122c')]('md.data.table')[_0x33b479('0x1e30')]('mdTable',function(){var _0x8880ed=_0x33b479;function _0x330416(_0x186b14,_0xf34222,_0x5046b4,_0x25a8d9){var _0x42556b=a2_0x4bfe,_0x45ac7f,_0x54fdda=this,_0x15e950=[],_0xf2bb7f=[];function _0x19e6c6(){var _0x3d3f51=a2_0x4bfe;if(!_0x15e950[_0x3d3f51('0x175a')])return _0x25a8d9[_0x3d3f51('0x2c78')]();_0x15e950[0x0]['finally'](function(){var _0x4ce5b1=_0x3d3f51;_0x15e950[_0x4ce5b1('0x2967')](),_0x19e6c6();});}_0x54fdda[_0x42556b('0x1d4a')]=new _0x415281(),_0x54fdda[_0x42556b('0x2d4')]={},_0x54fdda[_0x42556b('0xc08')]=function(){var _0x33f863=_0x42556b;return _0x54fdda[_0x33f863('0x3105')](_0xf34222[0x0])['reduce'](function(_0x9732d2,_0x5d02e6){var _0x55041b=_0x33f863;return _0x5d02e6[_0x55041b('0x2563')][_0x55041b('0x175a')]>_0x9732d2?_0x5d02e6['cells'][_0x55041b('0x175a')]:_0x9732d2;},0x0);},_0x54fdda['getRows']=function(_0x1557e9){var _0x2e3a69=_0x42556b;return Array['prototype'][_0x2e3a69('0x3127')][_0x2e3a69('0x2449')](_0x1557e9[_0x2e3a69('0x70')],function(_0x3b00ba){var _0x367b1b=_0x2e3a69;return!_0x3b00ba['classList'][_0x367b1b('0x3cf')](_0x367b1b('0x37c0'));});},_0x54fdda['getBodyRows']=function(){var _0x26cd61=_0x42556b;return Array['prototype'][_0x26cd61('0x33b0')]['call'](_0xf34222['prop'](_0x26cd61('0x245e')),function(_0x2cb17c,_0x4b4c26){var _0x20c23f=_0x26cd61;return _0x2cb17c[_0x20c23f('0x12b4')](_0x54fdda['getRows'](_0x4b4c26));},[]);},_0x54fdda['getElement']=function(){return _0xf34222;},_0x54fdda[_0x42556b('0x2001')]=function(){var _0xb53659=_0x42556b;return _0x54fdda[_0xb53659('0x3105')](_0xf34222[_0xb53659('0x18f6')](_0xb53659('0x2f7a')));},_0x54fdda[_0x42556b('0x2d2b')]=function(){return''===_0x186b14['multiple']||_0x25a8d9['$eval'](_0x186b14['multiple']);},_0x54fdda[_0x42556b('0x3560')]=function(){var _0x91b001=_0x42556b;return!!_0x15e950[_0x91b001('0x175a')];},_0x54fdda[_0x42556b('0x23a3')]=function(_0x54ea07){var _0x34814c=_0x42556b;_0x54ea07&&0x1===_0x15e950[_0x34814c('0x1a90')](_0x55741a[_0x34814c('0x2f1d')](_0x54ea07)?_0x5046b4[_0x34814c('0x130c')](_0x54ea07):_0x5046b4[_0x34814c('0x36d1')](_0x54ea07))&&_0x19e6c6();},_0x54fdda[_0x42556b('0x232f')]=function(_0x2f3ef1){var _0x283afc=_0x42556b;_0xf2bb7f[_0x283afc('0x1a90')](_0x2f3ef1);},_0x54fdda[_0x42556b('0x11f0')]=function(_0x552f95){var _0x7f8b7=_0x42556b,_0x1be4c5=_0xf2bb7f[_0x7f8b7('0xe1c')](_0x552f95);-0x1!==_0x1be4c5&&_0xf2bb7f['splice'](_0x1be4c5,0x1);},_0x186b14['hasOwnProperty'](_0x42556b('0x9f8'))&&_0x25a8d9[_0x42556b('0x1cb1')](_0x42556b('0x277c'),_0x54fdda['queuePromise']),_0x25a8d9['$watch'](function(){var _0xe6d080=_0x42556b;return''===_0x186b14[_0xe6d080('0x286')]||_0x54fdda['rowSelect'];},function(_0x23db7a){var _0x5c59d7=_0x42556b;_0x23db7a&&(_0x54fdda[_0x5c59d7('0x328d')]?_0x55741a[_0x5c59d7('0x2f1d')](_0x54fdda[_0x5c59d7('0x328d')])||console[_0x5c59d7('0x2534')]('Row\x20selection:\x20Expected\x20an\x20array.\x20Recived\x20'+typeof _0x54fdda['selected']+'.'):console[_0x5c59d7('0x2534')](_0x5c59d7('0x380b')))?(_0x54fdda[_0x5c59d7('0x107b')]=!0x0,_0x45ac7f=_0x25a8d9[_0x5c59d7('0x34c6')](_0x5c59d7('0x2258'),function(_0x536f53){var _0x20b6db=_0x5c59d7;_0xf2bb7f[_0x20b6db('0x247d')](function(_0x18a1f0){_0x18a1f0(_0x536f53);});}),_0xf34222[_0x5c59d7('0x2dc8')]('md-row-select')):(_0x54fdda[_0x5c59d7('0x107b')]=!0x1,_0x55741a['isFunction'](_0x45ac7f)&&_0x45ac7f(),_0xf34222[_0x5c59d7('0x3a0')](_0x5c59d7('0x596')));});}return _0x330416[_0x8880ed('0x28c9')]=[_0x8880ed('0xa7b'),_0x8880ed('0x34d6'),'$q',_0x8880ed('0x1868')],{'bindToController':!0x0,'compile':function(_0x18567e,_0x4569b4){var _0x50aa14=_0x8880ed;if(_0x18567e['addClass'](_0x50aa14('0x2141')),_0x4569b4['hasOwnProperty'](_0x50aa14('0x9f8'))){var _0x202830=_0x18567e[_0x50aa14('0x16fd')](_0x50aa14('0xb7c'))[0x0],_0x20db05=_0x55741a[_0x50aa14('0x88a')](_0x50aa14('0x71c'));_0x202830&&_0x18567e[0x0][_0x50aa14('0x3de')](_0x20db05[0x0],_0x202830);}},'controller':_0x330416,'controllerAs':_0x8880ed('0x25a6'),'restrict':'A','scope':{'progress':_0x8880ed('0x45'),'selected':_0x8880ed('0x839'),'rowSelect':_0x8880ed('0x1d22')}};}),_0x55741a['module'](_0x33b479('0x33be'))[_0x33b479('0x1e30')](_0x33b479('0x81'),function(){var _0x24b890=_0x33b479;function _0x6f2cc9(_0x45cafd,_0x2ce6d2,_0x59c558){var _0x48c6da=a2_0x4bfe,_0x3aec32=this,_0x15e385={'page':'Page:','rowsPerPage':_0x48c6da('0x2bdd'),'of':'of'};function _0x17c875(_0x4c33ef){return parseInt(_0x4c33ef,0xa)>0x0;}_0x3aec32[_0x48c6da('0x1f7f')]=_0x55741a[_0x48c6da('0x213')](_0x15e385),_0x3aec32['eval']=function(_0x53ef95){return _0x59c558['$eval'](_0x53ef95);},_0x3aec32[_0x48c6da('0x18e5')]=function(){var _0x2f5865=_0x48c6da;_0x3aec32[_0x2f5865('0x1ab2')]=0x1,_0x3aec32[_0x2f5865('0x251')]();},_0x3aec32['hasNext']=function(){var _0x314f4a=_0x48c6da;return _0x3aec32[_0x314f4a('0x1ab2')]*_0x3aec32['limit']<_0x3aec32[_0x314f4a('0x14b1')];},_0x3aec32[_0x48c6da('0x3270')]=function(){var _0x41c6f8=_0x48c6da;return _0x3aec32[_0x41c6f8('0x1ab2')]>0x1;},_0x3aec32[_0x48c6da('0x1050')]=function(){var _0x19e15c=_0x48c6da;_0x3aec32[_0x19e15c('0x1ab2')]=_0x3aec32[_0x19e15c('0x2c62')](),_0x3aec32[_0x19e15c('0x251')]();},_0x3aec32[_0x48c6da('0x2780')]=function(){var _0x4d6ee6=_0x48c6da;return _0x3aec32[_0x4d6ee6('0x36a7')]()?_0x3aec32[_0x4d6ee6('0x1ab2')]*_0x3aec32['limit']:_0x3aec32['total'];},_0x3aec32['min']=function(){var _0xada58e=_0x48c6da;return _0x17c875(_0x3aec32[_0xada58e('0x14b1')])?_0x3aec32['page']*_0x3aec32[_0xada58e('0x2bf9')]-_0x3aec32[_0xada58e('0x2bf9')]+0x1:0x0;},_0x3aec32[_0x48c6da('0xd57')]=function(){var _0x36a930=_0x48c6da;_0x3aec32[_0x36a930('0x1ab2')]++,_0x3aec32[_0x36a930('0x251')]();},_0x3aec32[_0x48c6da('0x251')]=function(){var _0x321fa1=_0x48c6da;_0x55741a['isFunction'](_0x3aec32['onPaginate'])&&_0x2ce6d2[_0x321fa1('0x2baa')](function(){_0x3aec32['onPaginate'](_0x3aec32['page'],_0x3aec32['limit']);});},_0x3aec32[_0x48c6da('0x2c62')]=function(){var _0x18a4ce=_0x48c6da;return _0x17c875(_0x3aec32['total'])?Math['ceil'](_0x3aec32[_0x18a4ce('0x14b1')]/(_0x17c875(_0x3aec32[_0x18a4ce('0x2bf9')])?_0x3aec32[_0x18a4ce('0x2bf9')]:0x1)):0x1;},_0x3aec32[_0x48c6da('0x1d20')]=function(){var _0x127352=_0x48c6da;_0x3aec32[_0x127352('0x1ab2')]--,_0x3aec32[_0x127352('0x251')]();},_0x3aec32[_0x48c6da('0x2309')]=function(){var _0xa429f2=_0x48c6da;return''===_0x45cafd['mdBoundaryLinks']||_0x3aec32[_0xa429f2('0x9a6')];},_0x3aec32[_0x48c6da('0x13ff')]=function(){var _0x242c65=_0x48c6da;return''===_0x45cafd[_0x242c65('0x3341')]||_0x3aec32[_0x242c65('0xbed')];},_0x59c558[_0x48c6da('0x1cb1')]('$pagination.limit',function(_0x5f7a2b,_0x35a67e){var _0x590d20=_0x48c6da;isNaN(_0x5f7a2b)||isNaN(_0x35a67e)||_0x5f7a2b===_0x35a67e||(_0x3aec32['page']=Math['floor']((_0x3aec32[_0x590d20('0x1ab2')]*_0x35a67e-_0x35a67e+_0x5f7a2b)/(_0x17c875(_0x5f7a2b)?_0x5f7a2b:0x1)),_0x3aec32['onPaginationChange']());}),_0x45cafd[_0x48c6da('0x2838')](_0x48c6da('0x7f8'),function(_0x599ef8){var _0x408d1c=_0x48c6da;_0x55741a[_0x408d1c('0x237f')](_0x3aec32[_0x408d1c('0x1f7f')],_0x15e385,_0x59c558[_0x408d1c('0x1951')](_0x599ef8));}),_0x59c558[_0x48c6da('0x1cb1')](_0x48c6da('0x290b'),function(_0x1b1dde,_0x3f3a3e){var _0x32c470=_0x48c6da;isNaN(_0x1b1dde)||_0x1b1dde===_0x3f3a3e||_0x3aec32['page']>_0x3aec32[_0x32c470('0x2c62')]()&&_0x3aec32['last']();});}return _0x6f2cc9[_0x24b890('0x28c9')]=['$attrs','$mdUtil',_0x24b890('0x1868')],{'bindToController':{'boundaryLinks':'=?mdBoundaryLinks','disabled':_0x24b890('0x192d'),'limit':'=mdLimit','page':_0x24b890('0x26c2'),'pageSelect':_0x24b890('0x2c90'),'onPaginate':_0x24b890('0x35e0'),'limitOptions':_0x24b890('0x888'),'total':_0x24b890('0xe55')},'compile':function(_0x2be270){var _0x262583=_0x24b890;_0x2be270[_0x262583('0x2dc8')](_0x262583('0x16f4'));},'controller':_0x6f2cc9,'controllerAs':'$pagination','restrict':'E','scope':{},'templateUrl':_0x24b890('0x1609')};}),_0x55741a[_0x33b479('0x122c')]('md.data.table')[_0x33b479('0x1e30')](_0x33b479('0x3189'),function(){var _0x33bd39=_0x33b479;return{'link':function(_0x99b095,_0x2322a5,_0x34c0da,_0x5219ee){var _0x49de00=a2_0x4bfe;_0x99b095[_0x49de00('0xc08')]=_0x5219ee[_0x49de00('0xc08')],_0x99b095[_0x49de00('0x1630')]=_0x5219ee[_0x49de00('0x3560')];},'require':_0x33bd39('0x330c'),'restrict':'A','scope':{},'templateUrl':_0x33bd39('0xd66')};}),_0x55741a[_0x33b479('0x122c')](_0x33b479('0x33be'))[_0x33b479('0x1e30')](_0x33b479('0x3684'),function(){var _0x115736=_0x33b479;function _0x303520(_0x1a2415,_0x3ea7b0){var _0x15d4d4=a2_0x4bfe,_0x59a4e3=this,_0x52eb5a=_0x1a2415[_0x15d4d4('0x16fd')](_0x15d4d4('0x31e1'));function _0x6f2769(_0x145e98,_0x4b7516){var _0x4038a2=_0x15d4d4;return Math[_0x4038a2('0x3230')](_0x145e98,isFinite(_0x4b7516)&&_0x4b7516>0x0?_0x4b7516:0x1);}function _0x482760(_0x19f728){var _0x343bef=_0x15d4d4;if(_0x59a4e3['pages']['length']>_0x19f728)return _0x59a4e3[_0x343bef('0x2c62')][_0x343bef('0x1f40')](_0x19f728);for(var _0x3f4687=_0x59a4e3[_0x343bef('0x2c62')]['length'];_0x3f4687<_0x19f728;_0x3f4687++)_0x59a4e3[_0x343bef('0x2c62')][_0x343bef('0x1a90')](_0x3f4687+0x1);}_0x59a4e3[_0x15d4d4('0x2c62')]=[],_0x52eb5a['on'](_0x15d4d4('0x1b49'),function(){var _0x35e789=_0x15d4d4;_0x52eb5a[_0x35e789('0x18f6')]('clientHeight')+_0x52eb5a[_0x35e789('0x18f6')]('scrollTop')>=_0x52eb5a[_0x35e789('0x18f6')](_0x35e789('0x13fc'))&&_0x3ea7b0[_0x35e789('0x2c78')](function(){var _0x171b56=_0x35e789;_0x482760(_0x6f2769(_0x59a4e3[_0x171b56('0x2c62')][_0x171b56('0x175a')]+0xa,_0x59a4e3[_0x171b56('0x14b1')]));});}),_0x3ea7b0[_0x15d4d4('0x1cb1')](_0x15d4d4('0xb2d'),function(_0x5312ea){var _0x5d17f2=_0x15d4d4;_0x482760(_0x6f2769(Math[_0x5d17f2('0x2780')](_0x59a4e3[_0x5d17f2('0x2c62')][_0x5d17f2('0x175a')],0xa),_0x5312ea));}),_0x3ea7b0[_0x15d4d4('0x1cb1')](_0x15d4d4('0x38f3'),function(_0x27ec7d){var _0xf4c3a3=_0x15d4d4;for(var _0x20fe28=_0x59a4e3[_0xf4c3a3('0x2c62')][_0xf4c3a3('0x175a')];_0x20fe28<_0x27ec7d;_0x20fe28++)_0x59a4e3[_0xf4c3a3('0x2c62')][_0xf4c3a3('0x1a90')](_0x20fe28+0x1);});}return _0x303520[_0x115736('0x28c9')]=[_0x115736('0x34d6'),_0x115736('0x1868')],{'bindToController':{'total':'@'},'controller':_0x303520,'controllerAs':'$pageSelect'};});}(window,angular);},0xde6:(_0x28a9ab,_0xd244fb,_0x3c54ef)=>{var _0x52ad2e=_0x411650;_0x3c54ef(0x25c8),_0x3c54ef(0x8a6),_0x28a9ab[_0x52ad2e('0x1a8b')]=_0x52ad2e('0x33be');},0x2305:()=>{!function(){var _0x340229=a2_0x4bfe;'use strict';angular[_0x340229('0x122c')](_0x340229('0xd0c'),['material.core']);}(),function(){var _0x2284fa=a2_0x4bfe;'use strict';angular[_0x2284fa('0x122c')](_0x2284fa('0xd0c'))[_0x2284fa('0x202f')]([_0x2284fa('0x11c8'),function(_0xef3bb4){var _0x29bd6e=_0x2284fa;_0xef3bb4['put'](_0x29bd6e('0x34b2'),'\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x0a');}]);}(),function(){var _0x9a77df=a2_0x4bfe;'use strict';angular['module'](_0x9a77df('0xd0c'))[_0x9a77df('0x1e30')](_0x9a77df('0x1182'),function(){var _0x204308=_0x9a77df;return{'restrict':'E','require':['mdExpansionPanel',_0x204308('0x2510')],'scope':!0x0,'compile':function(_0x382d68,_0xad5983){var _0x214ec8=_0x204308,_0x18617e=_0x214ec8('0xa63');if(_0x382d68[_0x214ec8('0x1e52')]('tabindex',_0xad5983[_0x214ec8('0x1b4e')]||'0'),null===_0x382d68[0x0][_0x214ec8('0x2cee')](_0x214ec8('0x1152')))throw Error(_0x18617e+_0x214ec8('0x3306'));if(null===_0x382d68[0x0]['querySelector']('md-expansion-panel-expanded'))throw Error(_0x18617e+_0x214ec8('0x3bf'));return function(_0x43ef60,_0x24a3a7,_0x54d050,_0x2071a4){var _0x9eaf11=_0x214ec8,_0x18f751=_0x2071a4[0x0],_0x3882b2=_0x2071a4[0x1];_0x18f751['epxansionPanelGroupCtrl']=_0x3882b2||void 0x0,_0x18f751[_0x9eaf11('0x261a')]();};},'controller':[_0x204308('0x1868'),_0x204308('0x34d6'),_0x204308('0xa7b'),_0x204308('0x398e'),_0x204308('0x3490'),_0x204308('0x35b'),_0x204308('0x2e27'),_0x204308('0x1be2'),_0x204308('0x1993'),'$q',_0x204308('0x2a64'),'$parse',function(_0x4e2b06,_0xe49422,_0x847878,_0x2bcfdd,_0x3f7de4,_0x3a4e85,_0x164c80,_0x4dafd5,_0x3daf1c,_0x3c938d,_0xce4cc7,_0x5219ca){var _0x490ad4=_0x204308,_0x4905b1,_0x299eff,_0x3aec91,_0x2cbb0e,_0x699283,_0x1051d2,_0x27c494,_0x2fe6bd,_0xcc78c0,_0x5c6dee,_0x40a1d9,_0x3ee073=this,_0x367918=!0x1,_0x54eef5=!0x1,_0x52df1f=!0x1,_0x25f453=!0x1,_0x4dbd09=_0x3f7de4[_0x490ad4('0x1620')](_0x1ad668),_0x39930c=_0x3f7de4['throttle'](_0xdfae8a);_0x3ee073[_0x490ad4('0x271a')]=function(_0xc25a39){_0x4905b1=_0xc25a39;},_0x3ee073[_0x490ad4('0x1192')]=function(_0x3e92f5){_0x299eff=_0x3e92f5;},_0x3ee073[_0x490ad4('0x339a')]=function(_0x14479b){_0x3aec91=_0x14479b;},_0x3ee073[_0x490ad4('0x1c0e')]=function(_0x17b9b2){_0x2cbb0e=_0x17b9b2;},void 0x0===_0x847878[_0x490ad4('0xb26')]?(_0x847878[_0x490ad4('0x44c')]('mdComponentId',_0x490ad4('0x394c')+_0x164c80[_0x490ad4('0x2801')]()),_0xded6ef()):_0x847878[_0x490ad4('0x2838')](_0x490ad4('0xb26'),function(){_0xded6ef();}),(_0x3ee073[_0x490ad4('0x34d6')]=_0xe49422,_0x3ee073[_0x490ad4('0x2a19')]=_0x301339,_0x3ee073[_0x490ad4('0x2556')]=_0x12d7e3,_0x3ee073['remove']=_0x4fd731,_0x3ee073[_0x490ad4('0x2cdb')]=_0x55129c,_0x3ee073[_0x490ad4('0x246f')]=_0x110347,_0x3ee073[_0x490ad4('0x261a')]=_0x16b395,void 0x0!==_0x847878[_0x490ad4('0x1f5')]?_0x4e2b06['$watch'](_0x847878[_0x490ad4('0x1f5')],function(_0x12454b){var _0x590418=_0x490ad4;_0x25f453=_0x12454b,_0xe49422['attr'](_0x590418('0x1b4e'),_0x25f453?-0x1:0x0);}):void 0x0!==_0x847878[_0x490ad4('0x2d00')]&&(_0x25f453=void 0x0!==_0x847878[_0x490ad4('0x2d00')]&&_0x490ad4('0x16ae')!==_0x847878[_0x490ad4('0x2d00')]&&!0x1!==_0x847878[_0x490ad4('0x2d00')],_0xe49422[_0x490ad4('0x1e52')]('tabindex',_0x25f453?-0x1:0x0)));function _0x99f738(_0x40ec47){var _0x2998cb=_0x490ad4,_0x4a73aa=_0x3a4e85[_0x2998cb('0xaca')];switch(_0x40ec47['keyCode']){case _0x4a73aa[_0x2998cb('0x1e31')]:_0x301339();break;case _0x4a73aa['ESCAPE']:_0x12d7e3();}}function _0x16b395(){_0x367918=!0x0,!0x0===_0x54eef5&&_0xded6ef();}function _0xded6ef(){var _0x38f0bf=_0x490ad4;!0x1!==_0x367918?(_0x38f0bf('0x19aa')==typeof _0x699283&&(_0x699283(),_0x699283=void 0x0),_0x3ee073[_0x38f0bf('0xcaa')]&&_0x3ee073[_0x38f0bf('0x2dd7')]&&_0x3ee073[_0x38f0bf('0x2dd7')][_0x38f0bf('0x18f0')](_0x3ee073[_0x38f0bf('0xcaa')]),void 0x0===_0x847878[_0x38f0bf('0xb26')]&&_0x847878[_0x38f0bf('0x44c')](_0x38f0bf('0xb26'),_0x38f0bf('0x394c')+_0x164c80['nextUid']()),_0x3ee073[_0x38f0bf('0xcaa')]=_0x847878[_0x38f0bf('0xb26')],_0x699283=_0x4dafd5[_0x38f0bf('0x2bd7')]({'expand':_0x301339,'collapse':_0x12d7e3,'remove':_0x4fd731,'onRemove':_0x110347,'isOpen':_0x8be2de,'addClickCatcher':_0x2efdd3,'removeClickCatcher':_0x5dd895,'componentId':_0x847878[_0x38f0bf('0xb26')]},_0x847878[_0x38f0bf('0xb26')]),_0x3ee073[_0x38f0bf('0x2dd7')]&&_0x3ee073[_0x38f0bf('0x2dd7')][_0x38f0bf('0x36e9')](_0x3ee073[_0x38f0bf('0xcaa')],{'expand':_0x301339,'collapse':_0x12d7e3,'remove':_0x4fd731,'onRemove':_0x110347,'destroy':_0x55129c,'isOpen':_0x8be2de})):_0x54eef5=!0x0;}function _0x8be2de(){return _0x52df1f;}function _0x301339(_0x19b7cd){var _0xb45520=_0x490ad4;if(!0x0!==_0x52df1f&&!0x0!==_0x25f453){_0x52df1f=!0x0,_0x19b7cd=_0x19b7cd||{};var _0x24b675=_0x3c938d[_0xb45520('0xc99')]();return _0x3ee073[_0xb45520('0x2dd7')]&&_0x3ee073[_0xb45520('0x2dd7')]['expandPanel'](_0x3ee073['componentId']),_0xe49422[_0xb45520('0x3a0')](_0xb45520('0x2fe8')),_0xe49422[_0xb45520('0x2dc8')](_0xb45520('0x8e4')),!0x1===_0x19b7cd[_0xb45520('0xa41')]?_0xe49422[_0xb45520('0x2dc8')](_0xb45520('0x32be')):_0xe49422[_0xb45520('0x3a0')](_0xb45520('0x32be')),_0x481f0f(),_0x4905b1['hide'](_0x19b7cd),_0x299eff[_0xb45520('0x4ae')](_0x19b7cd),_0x3aec91&&_0x3aec91[_0xb45520('0x4ae')](_0x19b7cd),_0x2cbb0e&&_0x2cbb0e[_0xb45520('0x4ae')](_0x19b7cd),_0x3daf1c(function(){var _0x3a05f3=_0xb45520;_0x24b675[_0x3a05f3('0x16ab')]();},!0x1===_0x19b7cd['animation']?0x0:_0x3db20c),_0x24b675[_0xb45520('0x34a6')];}}function _0x12d7e3(_0x511255){var _0xcf4b53=_0x490ad4;if(!0x1!==_0x52df1f){_0x52df1f=!0x1,_0x511255=_0x511255||{};var _0x41e149=_0x3c938d[_0xcf4b53('0xc99')]();return _0xe49422[_0xcf4b53('0x2dc8')]('md-close'),_0xe49422[_0xcf4b53('0x3a0')](_0xcf4b53('0x8e4')),!0x1===_0x511255[_0xcf4b53('0xa41')]?_0xe49422['addClass']('md-no-animation'):_0xe49422[_0xcf4b53('0x3a0')](_0xcf4b53('0x32be')),_0x170644(),_0x4905b1[_0xcf4b53('0x4ae')](_0x511255),_0x299eff[_0xcf4b53('0xf26')](_0x511255),_0x3aec91&&_0x3aec91[_0xcf4b53('0xf26')](_0x511255),_0x2cbb0e&&_0x2cbb0e[_0xcf4b53('0xf26')](_0x511255),_0x3daf1c(function(){_0x41e149['resolve']();},!0x1===_0x511255['animation']?0x0:_0x3db20c),_0x41e149[_0xcf4b53('0x34a6')];}}function _0x4fd731(_0x5b5853){var _0x3cc587=_0x490ad4;_0x5b5853=_0x5b5853||{};var _0x312f59=_0x3c938d['defer']();return _0x3ee073[_0x3cc587('0x2dd7')]&&_0x3ee073[_0x3cc587('0x2dd7')][_0x3cc587('0x18f0')](_0x3ee073[_0x3cc587('0xcaa')]),_0x3cc587('0x19aa')==typeof _0x699283&&(_0x699283(),_0x699283=void 0x0),!0x1===_0x5b5853[_0x3cc587('0xa41')]||!0x1===_0x52df1f?(_0x4e2b06['$destroy'](),_0xe49422[_0x3cc587('0x2371')](),_0x312f59['resolve'](),_0x12042c()):(_0x12d7e3(),_0x3daf1c(function(){var _0x23fb40=_0x3cc587;_0x4e2b06['$destroy'](),_0xe49422[_0x23fb40('0x2371')](),_0x312f59['resolve'](),_0x12042c();},_0x3db20c)),_0x312f59[_0x3cc587('0x34a6')];}function _0x110347(_0x299056){_0xcc78c0=_0x299056;}function _0x12042c(){'function'==typeof _0xcc78c0&&(_0xcc78c0(),_0xcc78c0=void 0x0);}function _0x55129c(){var _0x389dfb=_0x490ad4;_0x4e2b06[_0x389dfb('0x2f34')]();}function _0x481f0f(){var _0x2786eb=_0x490ad4;(_0x2cbb0e&&!0x0!==_0x2cbb0e[_0x2786eb('0x3313')]||_0x3aec91&&!0x0!==_0x3aec91[_0x2786eb('0x3313')])&&(_0x27c494=_0x4e2b06[_0x2786eb('0x1cb1')](function(){var _0x1f62ce=_0x2786eb;return _0xe49422[0x0][_0x1f62ce('0x3245')];},_0x4dbd09,!0x0),_0x2fe6bd=_0x4e2b06[_0x2786eb('0x1cb1')](function(){return _0xe49422[0x0]['offsetWidth'];},_0x39930c,!0x0),'MD-CONTENT'===(_0x1051d2=_0x164c80[_0x2786eb('0x3559')](_0xe49422))[_0x2786eb('0x10c3')]?(_0x5c6dee=_0x1bea96(_0x1051d2),angular[_0x2786eb('0x88a')](_0x1051d2)['on'](_0x2786eb('0x1b49'),_0x4dbd09)):_0x5c6dee=void 0x0,!0x0===_0x299eff[_0x2786eb('0x1c85')]&&_0x299eff[_0x2786eb('0x34d6')]['on'](_0x2786eb('0x1b49'),_0x4dbd09),angular[_0x2786eb('0x88a')](_0x2bcfdd)['on'](_0x2786eb('0x1b49'),_0x4dbd09)['on'](_0x2786eb('0x32b7'),_0x4dbd09)['on'](_0x2786eb('0x32b7'),_0x39930c));}function _0x170644(){var _0x5e6295=_0x490ad4;_0x5e6295('0x19aa')==typeof _0x27c494&&(_0x27c494(),_0x27c494=void 0x0),_0x5e6295('0x19aa')==typeof _0x2fe6bd&&(_0x2fe6bd(),_0x2fe6bd=void 0x0),_0x1051d2&&_0x5e6295('0x759')===_0x1051d2[_0x5e6295('0x10c3')]&&angular[_0x5e6295('0x88a')](_0x1051d2)[_0x5e6295('0x1202')](_0x5e6295('0x1b49'),_0x4dbd09),!0x0===_0x299eff['setHeight']&&_0x299eff[_0x5e6295('0x34d6')][_0x5e6295('0x1202')](_0x5e6295('0x1b49'),_0x4dbd09),angular[_0x5e6295('0x88a')](_0x2bcfdd)[_0x5e6295('0x1202')]('scroll',_0x4dbd09)[_0x5e6295('0x1202')](_0x5e6295('0x32b7'),_0x4dbd09)[_0x5e6295('0x1202')](_0x5e6295('0x32b7'),_0x39930c);}function _0x1bea96(_0x14d921){var _0x86b714=_0x490ad4;for(var _0x10a91f=_0x14d921[_0x86b714('0x1378')];_0x10a91f&&_0x10a91f!==document;){if(_0x1dd149(_0x10a91f,_0x86b714('0x1796')))return _0x10a91f;_0x10a91f=_0x10a91f[_0x86b714('0x1378')];}}function _0x1dd149(_0x69f663,_0x135acb){var _0x31c25d=_0x490ad4,_0x30c21c=!0x1;if(_0x69f663){var _0x140fba=_0x2bcfdd[_0x31c25d('0x2a5c')](_0x69f663);_0x30c21c=void 0x0!==_0x140fba[_0x135acb]&&_0x31c25d('0xf01')!==_0x140fba[_0x135acb];}return _0x30c21c;}function _0x1ad668(_0xb06227){var _0x50abde=_0x490ad4,_0x40ab78,_0x5c465b,_0x54a3ec;_0x54a3ec=!0x0===_0x299eff[_0x50abde('0x1c85')]?_0x299eff[_0x50abde('0x34d6')][0x0][_0x50abde('0x2748')]():_0x1051d2[_0x50abde('0x2748')]();var _0x21786f=_0x5c6dee?_0x5c6dee[_0x50abde('0x2748')]()[_0x50abde('0x361a')]:0x0;_0x5c465b=(_0x40ab78=Math[_0x50abde('0x2780')](_0x54a3ec[_0x50abde('0x361a')],0x0))+_0x54a3ec['height'],_0x2cbb0e&&!0x1===_0x2cbb0e[_0x50abde('0x3313')]&&_0x2cbb0e[_0x50abde('0x37da')](_0x40ab78,_0x5c465b,_0x21786f),_0x3aec91&&!0x1===_0x3aec91['noSticky']&&_0x3aec91[_0x50abde('0x37da')](_0x40ab78,_0x5c465b,_0x21786f);}function _0xdfae8a(){var _0xdf3ca5=_0x490ad4,_0x36befc=_0xe49422[0x0][_0xdf3ca5('0x1fe5')];_0x2cbb0e&&!0x1===_0x2cbb0e[_0xdf3ca5('0x3313')]&&_0x2cbb0e['onResize'](_0x36befc),_0x3aec91&&!0x1===_0x3aec91[_0xdf3ca5('0x3313')]&&_0x3aec91[_0xdf3ca5('0x149c')](_0x36befc);}function _0x2efdd3(_0x50e613){var _0x3eeac3=_0x490ad4;(_0x40a1d9=_0x164c80[_0x3eeac3('0x1812')](_0x4e2b06))[0x0][_0x3eeac3('0x3645')]=-0x1,_0x3eeac3('0x19aa')==typeof _0x50e613&&_0x40a1d9['on'](_0x3eeac3('0x160'),_0x50e613),_0xce4cc7[_0x3eeac3('0xa0a')](_0x40a1d9,_0xe49422[_0x3eeac3('0x38bb')](),null,{'duration':0x0}),_0xe49422[_0x3eeac3('0x30a3')]('z-index',0x3c);}function _0x5dd895(){var _0x4557eb=_0x490ad4;_0x40a1d9&&(_0x40a1d9[_0x4557eb('0x2371')](),_0x40a1d9[_0x4557eb('0x1202')](_0x4557eb('0x160')),_0x40a1d9=void 0x0,_0xe49422[_0x4557eb('0x30a3')](_0x4557eb('0x2869'),''));}_0xe49422['on'](_0x490ad4('0x1c34'),function(_0x354e40){var _0x40be9e=_0x490ad4;_0xe49422['on'](_0x40be9e('0xf04'),_0x99f738);})['on'](_0x490ad4('0x1137'),function(_0x3359d0){var _0x495b15=_0x490ad4;_0xe49422[_0x495b15('0x1202')](_0x495b15('0xf04'),_0x99f738);}),_0x4e2b06[_0x490ad4('0x77d')]={'collapse':_0x12d7e3,'expand':_0x301339,'remove':_0x4fd731,'isOpen':_0x8be2de},_0x4e2b06[_0x490ad4('0x1db8')]('$destroy',function(){var _0x2e9b72=_0x490ad4;_0x5dd895(),_0x2e9b72('0x19aa')==typeof _0x699283&&(_0x699283(),_0x699283=void 0x0),_0x170644();});}]};});var _0x3db20c=0xb4;}(),function(){var _0x6a1ed9=a2_0x4bfe;'use strict';function _0x1c5c30(_0x1eba07,_0x5b3514,_0x11258e){var _0x14e3eb={'find':_0x38ec4e,'waitFor':function(_0x2aedba){var _0x35bdd7=a2_0x4bfe;return _0x1eba07[_0x35bdd7('0x36d1')](_0x2aedba)[_0x35bdd7('0x2287')](_0x11258e[_0x35bdd7('0x2534')]);}};return function(_0x8aa224){return void 0x0===_0x8aa224?_0x14e3eb:_0x38ec4e(_0x8aa224);};function _0x38ec4e(_0x3482a4){var _0x224ed6=a2_0x4bfe,_0x19cb22=_0x1eba07[_0x224ed6('0x1861')](_0x3482a4);if(_0x19cb22)return _0x19cb22;_0x11258e[_0x224ed6('0x2534')](_0x5b3514[_0x224ed6('0x1f28')]('ExpansionPanel\x20\x27{0}\x27\x20is\x20not\x20available!\x20Did\x20you\x20use\x20md-component-id=\x27{0}\x27?',[_0x3482a4||'']));}}angular[_0x6a1ed9('0x122c')](_0x6a1ed9('0xd0c'))['factory'](_0x6a1ed9('0x36bd'),_0x1c5c30),_0x1c5c30['$inject']=[_0x6a1ed9('0x1be2'),_0x6a1ed9('0x2e27'),_0x6a1ed9('0x38a3')];}(),function(){var _0x35418e=a2_0x4bfe;'use strict';function _0x4b8583(_0x541348,_0xbec521){var _0x47ead2=a2_0x4bfe;return{'restrict':'E','require':_0x47ead2('0x971'),'link':function(_0x5a0ded,_0x53554a,_0x1e054f,_0x156cfe){var _0xad56ea=_0x47ead2;_0x156cfe['registerCollapsed']({'show':function(_0x20257d){var _0x135dc1=a2_0x4bfe;_0x53554a[_0x135dc1('0x30a3')](_0x135dc1('0xa85'),''),_0x53554a['css'](_0x135dc1('0x2bac'),_0x53554a[0x0][_0x135dc1('0x1378')]['offsetWidth']+'px');var _0xcc04f2={'addClass':_0x135dc1('0x1972'),'from':{'opacity':0x0},'to':{'opacity':0x1}};!0x1===_0x20257d['animation']&&(_0xcc04f2[_0x135dc1('0x296c')]=0x0),_0x541348(_0x53554a,_0xcc04f2)[_0x135dc1('0x21ef')]()[_0x135dc1('0x26b5')](function(){var _0x51b506=_0x135dc1;_0x156cfe[_0x51b506('0x34d6')][_0x51b506('0x30a3')](_0x51b506('0x20d1'),_0x51b506('0xf01')),_0x53554a[_0x51b506('0x3a0')](_0x51b506('0x2286')),_0x53554a[_0x51b506('0x30a3')]('width',''),_0x156cfe['$element'][_0x51b506('0x30a3')](_0x51b506('0x8c5'),''),_0xbec521(function(){var _0x3edf9b=_0x51b506;_0x156cfe[_0x3edf9b('0x34d6')][_0x3edf9b('0x30a3')](_0x3edf9b('0x20d1'),'');},0x0);});},'hide':function(_0x4cbd01){var _0x56f77b=a2_0x4bfe;_0x53554a[_0x56f77b('0x30a3')](_0x56f77b('0x2bac'),_0x53554a[0x0][_0x56f77b('0x1fe5')]+'px'),_0x156cfe[_0x56f77b('0x34d6')]['css'](_0x56f77b('0x8c5'),_0x53554a[0x0][_0x56f77b('0x1147')]+'px');var _0x243995={'addClass':'md-absolute\x20md-hide','from':{'opacity':0x1},'to':{'opacity':0x0}};!0x1===_0x4cbd01[_0x56f77b('0xa41')]&&(_0x243995['duration']=0x0),_0x541348(_0x53554a,_0x243995)[_0x56f77b('0x21ef')]()[_0x56f77b('0x26b5')](function(){var _0x465254=_0x56f77b;_0x53554a[_0x465254('0x3a0')](_0x465254('0x1fa9')),_0x53554a[_0x465254('0x30a3')](_0x465254('0xa85'),_0x465254('0xf01'));});}}),_0x53554a['on'](_0xad56ea('0x160'),function(){var _0x5b7352=_0xad56ea;_0x156cfe[_0x5b7352('0x2a19')]();});}};}angular[_0x35418e('0x122c')]('material.components.expansionPanels')['directive']('mdExpansionPanelCollapsed',_0x4b8583),_0x4b8583[_0x35418e('0x28c9')]=['$animateCss',_0x35418e('0x1993')];}(),function(){var _0x2b0c10=a2_0x4bfe;'use strict';function _0x1eced6(_0x153d7a,_0x14856e){var _0x2c7d84=a2_0x4bfe;return{'restrict':'E','require':_0x2c7d84('0x971'),'link':function(_0x4196f9,_0xf02e29,_0xe9d677,_0x5643da){var _0x84ad15=_0x2c7d84,_0x10c491=_0xe9d677[_0x84ad15('0x28c')]||void 0x0;void 0x0!==_0x10c491&&(_0x10c491=_0x10c491[_0x84ad15('0x34c8')]('px','')+'px'),_0x5643da[_0x84ad15('0x1192')]({'show':function(_0x1e9279){var _0x1595d0=_0x84ad15;_0xf02e29[_0x1595d0('0x30a3')]('display',''),_0xf02e29[_0x1595d0('0x2dc8')](_0x1595d0('0xd0f'));var _0x7054a2={'from':{'max-height':_0x1595d0('0x2961'),'opacity':0x0},'to':{'max-height':_0x10c491||_0xf02e29[0x0]['scrollHeight']+'px','opacity':0x1}};!0x1===_0x1e9279[_0x1595d0('0xa41')]&&(_0x7054a2['duration']=0x0),_0x153d7a(_0xf02e29,_0x7054a2)[_0x1595d0('0x21ef')]()['then'](function(){var _0x456feb=_0x1595d0;void 0x0!==_0x10c491?_0xf02e29[_0x456feb('0x2dc8')]('md-scroll-y'):(_0xf02e29[_0x456feb('0x30a3')]('transition',_0x456feb('0xf01')),_0xf02e29[_0x456feb('0x30a3')]('max-height','none'),_0x14856e(function(){var _0x4ee2d8=_0x456feb;_0xf02e29[_0x4ee2d8('0x30a3')]('transition','');},0x0)),_0xf02e29['removeClass'](_0x456feb('0x384'));});},'hide':function(_0x4998f1){var _0xb7bef4=_0x84ad15,_0x32a298=_0x10c491||_0xf02e29[0x0][_0xb7bef4('0x13fc')]+'px';_0xf02e29[_0xb7bef4('0x2dc8')](_0xb7bef4('0x87f')),_0xf02e29[_0xb7bef4('0x3a0')](_0xb7bef4('0x125f'));var _0x35712d={'from':{'max-height':_0x32a298,'opacity':0x1},'to':{'max-height':_0xb7bef4('0x2961'),'opacity':0x0}};!0x1===_0x4998f1[_0xb7bef4('0xa41')]&&(_0x35712d[_0xb7bef4('0x296c')]=0x0),_0x153d7a(_0xf02e29,_0x35712d)['start']()[_0xb7bef4('0x26b5')](function(){var _0xd48ada=_0xb7bef4;_0xf02e29[_0xd48ada('0x30a3')](_0xd48ada('0xa85'),'none'),_0xf02e29['removeClass'](_0xd48ada('0x1fa9'));});},'setHeight':void 0x0!==_0x10c491,'$element':_0xf02e29});}};}angular[_0x2b0c10('0x122c')](_0x2b0c10('0xd0c'))['directive'](_0x2b0c10('0x15a0'),_0x1eced6),_0x1eced6['$inject']=[_0x2b0c10('0xc2c'),'$timeout'];}(),function(){var _0x2c0280=a2_0x4bfe;'use strict';angular['module']('material.components.expansionPanels')[_0x2c0280('0x1e30')](_0x2c0280('0xc0'),function(){var _0x15d16b=_0x2c0280;return{'restrict':'E','transclude':!0x0,'template':_0x15d16b('0x3898'),'require':_0x15d16b('0x971'),'link':function(_0x4829f4,_0x5f13ca,_0x142870,_0x103760){var _0x1df532=_0x15d16b,_0x23ed91=!0x1,_0x1ae903=void 0x0!==_0x142870[_0x1df532('0x293b')],_0x12faf6=angular['element'](_0x5f13ca[0x0][_0x1df532('0x2cee')](_0x1df532('0xf0')));function _0x38753d(){}function _0x3dd529(){_0x537539();}function _0x1908ec(_0x4e01ed,_0x43513b,_0x5ef54f){var _0x41de5e=_0x1df532,_0x318c08,_0x317b1c;_0x5f13ca[0x0][_0x41de5e('0x2748')]()[_0x41de5e('0x24a3')]>_0x43513b?((_0x317b1c=_0x43513b-(_0x318c08=_0x12faf6[0x0][_0x41de5e('0x1147')])-_0x5ef54f)<_0x5f13ca[0x0][_0x41de5e('0x1378')][_0x41de5e('0x2748')]()[_0x41de5e('0x361a')]&&(_0x317b1c=_0x5f13ca[0x0]['parentNode'][_0x41de5e('0x2748')]()['top']),_0x12faf6['css']('width',_0x103760[_0x41de5e('0x34d6')][0x0][_0x41de5e('0x1fe5')]+'px'),_0x5f13ca[_0x41de5e('0x30a3')](_0x41de5e('0x28c'),_0x318c08+'px'),_0x12faf6[_0x41de5e('0x30a3')](_0x41de5e('0x361a'),_0x317b1c+'px'),_0x5f13ca[_0x41de5e('0x2dc8')](_0x41de5e('0x1a5b')),_0x23ed91=!0x0):!0x0===_0x23ed91&&_0x537539();}function _0x4d009d(_0x58e7b3){var _0x35d3bd=_0x1df532;!0x1!==_0x23ed91&&_0x12faf6[_0x35d3bd('0x30a3')](_0x35d3bd('0x2bac'),_0x58e7b3+'px');}function _0x537539(){var _0x33b1cd=_0x1df532;_0x23ed91=!0x1,_0x12faf6[_0x33b1cd('0x30a3')](_0x33b1cd('0x2bac'),''),_0x12faf6['css'](_0x33b1cd('0x361a'),''),_0x5f13ca[_0x33b1cd('0x30a3')](_0x33b1cd('0x28c'),''),_0x5f13ca[_0x33b1cd('0x3a0')]('md-stick');}_0x103760['registerFooter']({'show':_0x38753d,'hide':_0x3dd529,'onScroll':_0x1908ec,'onResize':_0x4d009d,'noSticky':_0x1ae903});}};});}(),function(){var _0x14bef1=a2_0x4bfe;'use strict';angular[_0x14bef1('0x122c')](_0x14bef1('0xd0c'))[_0x14bef1('0x1e30')](_0x14bef1('0xe1'),function(){var _0x587238=_0x14bef1;return{'restrict':'E','controller':[_0x587238('0x1868'),_0x587238('0xa7b'),'$element',_0x587238('0x1be2'),function(_0x2e3e8e,_0x4bcfc5,_0x3d54e0,_0x1f4192){var _0x11b34c=_0x587238,_0x15df6f,_0x5012c1=this,_0x36eb0e={},_0x126c42={},_0x437414=[],_0x1dd79d=void 0x0!==_0x4bcfc5[_0x11b34c('0x19fd')]||void 0x0!==_0x4bcfc5[_0x11b34c('0x30cc')],_0xb5beca=void 0x0!==_0x4bcfc5[_0x11b34c('0x28cd')]||void 0x0!==_0x4bcfc5[_0x11b34c('0x3025')];function _0x4febbe(_0x197528){var _0x64e8c9=_0x11b34c;return _0x437414[_0x64e8c9('0x1a90')](_0x197528),function(){var _0x416d84=_0x64e8c9;_0x437414[_0x416d84('0x1f40')](_0x437414[_0x416d84('0xe1c')](_0x197528),0x1);};}function _0x48bf72(){var _0x1ec0a5=_0x11b34c,_0x31e5db=_0x2d9af6();_0x437414[_0x1ec0a5('0x247d')](function(_0x4cc72c){_0x4cc72c(_0x31e5db);});}function _0x20e1e2(_0x2c62e0,_0x98731a){var _0x25f4dc=_0x11b34c;_0x126c42[_0x2c62e0]=_0x98731a,!0x0===_0xb5beca&&(_0x98731a[_0x25f4dc('0x2a19')](),_0x1cad8e(_0x2c62e0)),_0x48bf72();}function _0x719f3a(_0x1d9d52){_0x1cad8e(_0x1d9d52);}function _0x2a26f8(_0x39980f,_0x1323b6){var _0xc7ac31=_0x11b34c;return _0x126c42[_0x39980f][_0xc7ac31('0x2371')](_0x1323b6);}function _0x52b761(_0x467e8b){var _0x187147=_0x11b34c;Object[_0x187147('0x1a3f')](_0x126c42)['forEach'](function(_0x101c28){var _0x2c0cad=_0x187147;_0x126c42[_0x101c28][_0x2c0cad('0x2371')](_0x467e8b);});}function _0x2e38df(_0x46ac52){delete _0x126c42[_0x46ac52],_0x48bf72();}function _0x2d9af6(){var _0x22001c=_0x11b34c;return Object[_0x22001c('0x1a3f')](_0x126c42)[_0x22001c('0x175a')];}function _0x1cad8e(_0x2d1452){var _0x4bf99c=_0x11b34c;!0x1===_0x1dd79d&&Object[_0x4bf99c('0x1a3f')](_0x126c42)[_0x4bf99c('0x247d')](function(_0x4c9fe6){var _0x5ef39c=_0x4bf99c;_0x4c9fe6!==_0x2d1452&&_0x126c42[_0x4c9fe6][_0x5ef39c('0x2556')]();});}function _0x216796(_0x5e3c5a,_0x5207ca){var _0x14e7dc=_0x11b34c;if(void 0x0!==_0x36eb0e[_0x5e3c5a])throw Error(_0x14e7dc('0x2be')+_0x5e3c5a+_0x14e7dc('0x1030'));_0x36eb0e[_0x5e3c5a]=_0x5207ca;}function _0x17d067(_0xa55fd3){var _0x24f6b6=_0x11b34c;if(void 0x0===_0x36eb0e[_0xa55fd3])throw Error(_0x24f6b6('0xce')+_0xa55fd3+'\x22');return _0x36eb0e[_0xa55fd3];}function _0xb510d(){var _0x1fc78f=_0x11b34c;return Object[_0x1fc78f('0x1a3f')](_0x126c42)[_0x1fc78f('0x2d86')](function(_0x18cb3c){return _0x126c42[_0x18cb3c];});}function _0xa442d2(){var _0x18e8ef=_0x11b34c;return Object['keys'](_0x126c42)[_0x18e8ef('0x2d86')](function(_0xa2dd77){return _0x126c42[_0xa2dd77];})['filter'](function(_0x212a2a){var _0x3142a6=_0x18e8ef;return _0x212a2a[_0x3142a6('0x365c')]();});}function _0x2c381b(_0x408fe5){var _0x29c9a3=_0x11b34c,_0x3c0cf8=!0x0!==_0x408fe5;Object[_0x29c9a3('0x1a3f')](_0x126c42)[_0x29c9a3('0x247d')](function(_0x14d89d){_0x126c42[_0x14d89d]['collapse']({'animation':_0x3c0cf8});});}_0x15df6f=_0x1f4192[_0x11b34c('0x2bd7')]({'$element':_0x3d54e0,'register':_0x216796,'getRegistered':_0x17d067,'getAll':_0xb510d,'getOpen':_0xa442d2,'remove':_0x2a26f8,'removeAll':_0x52b761,'collapseAll':_0x2c381b,'onChange':_0x4febbe,'count':_0x2d9af6},_0x4bcfc5[_0x11b34c('0xb26')]),_0x5012c1[_0x11b34c('0x36e9')]=_0x20e1e2,_0x5012c1[_0x11b34c('0x1765')]=_0x719f3a,_0x5012c1['removePanel']=_0x2e38df,_0x2e3e8e[_0x11b34c('0x1db8')](_0x11b34c('0x2f34'),function(){var _0x11850c=_0x11b34c;_0x11850c('0x19aa')==typeof _0x15df6f&&(_0x15df6f(),_0x15df6f=void 0x0),Object[_0x11850c('0x1a3f')](_0x126c42)['forEach'](function(_0x534bec){_0x126c42[_0x534bec]['destroy']();});});}]};});}(),function(){var _0x4531a0=a2_0x4bfe;'use strict';function _0x46cc3d(_0x1c3e4f,_0x3d7d5d,_0x23a6dc,_0x586c83,_0xc07154,_0x1ea456,_0x24d715,_0x568361,_0x29ed8d){var _0x2040d7={'find':_0x34c8fc,'waitFor':function(_0x2047ce){var _0x321cb6=a2_0x4bfe,_0x1de517=_0x568361[_0x321cb6('0xc99')]();return _0x1c3e4f[_0x321cb6('0x36d1')](_0x2047ce)[_0x321cb6('0x26b5')](function(_0x340bcd){_0x1de517['resolve'](_0x3286ef(_0x340bcd));})[_0x321cb6('0x2287')](function(_0x351505){var _0x2130e6=_0x321cb6;_0x1de517[_0x2130e6('0xf51')](),_0x29ed8d['error'](_0x351505);}),_0x1de517[_0x321cb6('0x34a6')];}};return function(_0x34c53e){return void 0x0===_0x34c53e?_0x2040d7:_0x34c8fc(_0x34c53e);};function _0x34c8fc(_0x1f0128){var _0x35f24f=a2_0x4bfe,_0x454297=_0x1c3e4f[_0x35f24f('0x1861')](_0x1f0128);if(_0x454297)return _0x3286ef(_0x454297);_0x29ed8d['error'](_0x3d7d5d[_0x35f24f('0x1f28')](_0x35f24f('0x2de4'),[_0x1f0128||'']));}function _0x3286ef(_0x3e9f61){return{'add':function _0x4cb7ba(_0x414389,_0x42a393){var _0x29fe4a=a2_0x4bfe;if(_0x42a393=_0x42a393||{},_0x29fe4a('0x151d')==typeof _0x414389)return _0x4cb7ba(_0x3e9f61['getRegistered'](_0x414389),_0x42a393);if(_0x5ef919(_0x414389),_0x414389[_0x29fe4a('0xcaa')]&&_0x3e9f61[_0x29fe4a('0x35f6')](_0x414389['componentId']))return _0x568361[_0x29fe4a('0xf51')](_0x29fe4a('0x169e')+_0x414389[_0x29fe4a('0xcaa')]+_0x29fe4a('0x1353'));var _0x5f1807=_0x568361[_0x29fe4a('0xc99')](),_0x237bf7=_0xc07154['$new']();return angular[_0x29fe4a('0x237f')](_0x237bf7,_0x414389[_0x29fe4a('0x1789')]),_0x33f581(_0x414389,function(_0x3c34d6){var _0xb31f36=_0x29fe4a,_0x16b425=angular[_0xb31f36('0x88a')](_0x3c34d6),_0x24f4a5=_0x414389[_0xb31f36('0xcaa')]||_0x16b425[_0xb31f36('0x1e52')](_0xb31f36('0x1b47'))||_0xb31f36('0x1802')+_0x3d7d5d[_0xb31f36('0x2801')](),_0x1dbafb=_0x23a6dc()[_0xb31f36('0x3571')](_0x24f4a5);_0x16b425[_0xb31f36('0x1e52')](_0xb31f36('0x1b47'),_0x24f4a5);var _0x2a676a=_0x1ea456(_0x16b425);if(_0x414389[_0xb31f36('0x19f6')]){angular[_0xb31f36('0x237f')](_0x42a393,_0x414389[_0xb31f36('0x2fb0')]||{}),_0x42a393[_0xb31f36('0x1868')]=_0x237bf7,_0x42a393['$panel']=_0x1dbafb;var _0x195e0f=_0x24d715(_0x414389[_0xb31f36('0x19f6')],_0x42a393,!0x0)();_0x16b425[_0xb31f36('0xcee')](_0xb31f36('0x1832'),_0x195e0f),_0x16b425['children']()[_0xb31f36('0xcee')](_0xb31f36('0x1832'),_0x195e0f),_0x414389[_0xb31f36('0x4ce')]&&(_0x237bf7[_0x414389['controllerAs']]=_0x195e0f);}_0x3e9f61[_0xb31f36('0x34d6')][_0xb31f36('0x10f')](_0x16b425),_0x2a676a(_0x237bf7),_0x1dbafb['then'](function(_0x10f828){_0x5f1807['resolve'](_0x10f828);});}),_0x5f1807[_0x29fe4a('0x34a6')];},'register':function(_0x49b845,_0x2022ae){var _0x31073c=a2_0x4bfe;if(_0x31073c('0x151d')!=typeof _0x49b845)throw Error(_0x31073c('0x24a7'));_0x5ef919(_0x2022ae),_0x3e9f61[_0x31073c('0x2bd7')](_0x49b845,_0x2022ae);},'getAll':function(){return _0x3e9f61['getAll']();},'getOpen':function(){var _0x318259=a2_0x4bfe;return _0x3e9f61[_0x318259('0x1abd')]();},'remove':function(_0x5c2b6b,_0x955b13){return _0x3e9f61['remove'](_0x5c2b6b,_0x955b13);},'removeAll':function(_0x58b4e3){var _0x358059=a2_0x4bfe;_0x3e9f61[_0x358059('0x2414')](_0x58b4e3);},'collapseAll':function(_0x30c388){var _0x417d9f=a2_0x4bfe;_0x3e9f61[_0x417d9f('0x1c81')](_0x30c388);},'onChange':function(_0x244269){var _0x74c700=a2_0x4bfe;return _0x3e9f61[_0x74c700('0x31f1')](_0x244269);},'count':function(){var _0x4fa045=a2_0x4bfe;return _0x3e9f61[_0x4fa045('0x1eb6')]();}};function _0x5ef919(_0x2d3e8a){var _0x2efd2f=a2_0x4bfe;if('object'!=typeof _0x2d3e8a||null===_0x2d3e8a)throw Error(_0x2efd2f('0x78e'));if(!_0x2d3e8a['template']&&!_0x2d3e8a[_0x2efd2f('0x1bd9')])throw Error(_0x2efd2f('0x33e'));}function _0x33f581(_0x6b7ff3,_0x4a52b9){var _0x38d841=a2_0x4bfe;void 0x0!==_0x6b7ff3[_0x38d841('0x1bd9')]?_0x586c83(_0x6b7ff3[_0x38d841('0x1bd9')])[_0x38d841('0x26b5')](function(_0x508306){_0x4a52b9(_0x508306);}):_0x4a52b9(_0x6b7ff3[_0x38d841('0x2ea9')]);}}}angular[_0x4531a0('0x122c')](_0x4531a0('0xd0c'))[_0x4531a0('0x36b0')]('$mdExpansionPanelGroup',_0x46cc3d),_0x46cc3d[_0x4531a0('0x28c9')]=[_0x4531a0('0x1be2'),_0x4531a0('0x2e27'),_0x4531a0('0x36bd'),_0x4531a0('0x89e'),'$rootScope','$compile',_0x4531a0('0x500'),'$q','$log'];}(),function(){var _0x20e384=a2_0x4bfe;'use strict';function _0x13feea(){var _0x22b2c8=a2_0x4bfe;return{'restrict':'E','transclude':!0x0,'template':_0x22b2c8('0x1c70'),'require':_0x22b2c8('0x971'),'link':function(_0x29d306,_0x8cc16,_0x459879,_0xc434a){var _0x116b96=_0x22b2c8,_0x3ecfbf=!0x1,_0x5d25cc=void 0x0!==_0x459879[_0x116b96('0x293b')],_0x600483=angular[_0x116b96('0x88a')](_0x8cc16[0x0][_0x116b96('0x2cee')]('.md-expansion-panel-header-container'));function _0x46d258(){var _0x404353=_0x116b96;_0x3ecfbf=!0x1,_0x600483[_0x404353('0x30a3')](_0x404353('0x2bac'),''),_0x8cc16[_0x404353('0x30a3')](_0x404353('0x28c'),''),_0x8cc16[_0x404353('0x30a3')](_0x404353('0x361a'),''),_0x8cc16[_0x404353('0x3a0')](_0x404353('0x1a5b')),_0x8cc16[_0x404353('0x2dc8')](_0x404353('0x28'));}_0xc434a['registerHeader']({'show':function(){},'hide':function(){_0x46d258();},'noSticky':_0x5d25cc,'onScroll':function(_0x524b26,_0x3335c5,_0x48db7c){var _0x369659=_0x116b96,_0x248718,_0x4a7c66,_0x35a6e0=_0x8cc16[0x0][_0x369659('0x2748')]();_0x35a6e0[_0x369659('0x361a')]<_0x524b26?(_0x248718=_0x524b26-_0x48db7c,(_0x4a7c66=_0x8cc16[0x0][_0x369659('0x1378')]['getBoundingClientRect']()['bottom']-_0x524b26-_0x35a6e0[_0x369659('0x28c')])<0x0&&(_0x248718+=_0x4a7c66),_0x600483[_0x369659('0x30a3')](_0x369659('0x2bac'),_0x8cc16[0x0][_0x369659('0x1fe5')]+'px'),_0x600483[_0x369659('0x30a3')]('top',_0x248718+'px'),_0x8cc16[_0x369659('0x30a3')](_0x369659('0x28c'),_0x600483[0x0]['offsetHeight']+'px'),_0x8cc16[_0x369659('0x3a0')](_0x369659('0x28')),_0x8cc16[_0x369659('0x2dc8')](_0x369659('0x1a5b')),_0x3ecfbf=!0x0):!0x0===_0x3ecfbf&&_0x46d258();},'onResize':function(_0x2fcb85){var _0x1ff2df=_0x116b96;!0x1!==_0x3ecfbf&&_0x600483[_0x1ff2df('0x30a3')]('width',_0x2fcb85+'px');}});}};}angular[_0x20e384('0x122c')](_0x20e384('0xd0c'))['directive'](_0x20e384('0x9b4'),_0x13feea),_0x13feea[_0x20e384('0x28c9')]=[];}(),function(){var _0x232337=a2_0x4bfe;'use strict';angular[_0x232337('0x122c')](_0x232337('0xd0c'))[_0x232337('0x1e30')](_0x232337('0x5c2'),function(){var _0x54be2d=_0x232337;return{'restrict':'E','template':_0x54be2d('0x1538'),'replace':!0x0};});}();},0x1c4:(_0x44b40b,_0x4f4ad1,_0x2c8dde)=>{_0x2c8dde(0x2305);},0x1c17:()=>{var _0x2acd56=_0x411650;!function(_0x49f10c,_0x4a272c,_0x6373f5){var _0x1fb7d4=a2_0x4bfe;'use strict';_0x4a272c[_0x1fb7d4('0x122c')](_0x1fb7d4('0x39c3'),['ng',_0x1fb7d4('0x506'),_0x1fb7d4('0x35f5'),_0x1fb7d4('0x113c'),_0x1fb7d4('0xdc0'),_0x1fb7d4('0x1ece'),_0x1fb7d4('0x2806'),'material.core.layout',_0x1fb7d4('0x96'),_0x1fb7d4('0x1a11'),_0x1fb7d4('0x1ffb'),_0x1fb7d4('0x2c84'),_0x1fb7d4('0xe85'),_0x1fb7d4('0x1e0f'),_0x1fb7d4('0x31bb'),'material.components.card',_0x1fb7d4('0xfc6'),_0x1fb7d4('0x1902'),_0x1fb7d4('0x34b3'),'material.components.content',_0x1fb7d4('0x1da2'),_0x1fb7d4('0x263c'),_0x1fb7d4('0x2fce'),_0x1fb7d4('0x2b37'),_0x1fb7d4('0x147b'),_0x1fb7d4('0x4c'),_0x1fb7d4('0x328e'),_0x1fb7d4('0x1caa'),'material.components.icon',_0x1fb7d4('0x336b'),_0x1fb7d4('0x24b4'),_0x1fb7d4('0x1b26'),'material.components.menuBar','material.components.navBar','material.components.panel','material.components.progressCircular',_0x1fb7d4('0x2615'),'material.components.radioButton',_0x1fb7d4('0x3288'),_0x1fb7d4('0x257'),_0x1fb7d4('0x1d9b'),'material.components.slider',_0x1fb7d4('0xab3'),_0x1fb7d4('0x60f'),'material.components.swipe',_0x1fb7d4('0x2d39'),_0x1fb7d4('0x8d3'),'material.components.toast',_0x1fb7d4('0x27e8'),_0x1fb7d4('0x28f5'),_0x1fb7d4('0x26dc'),_0x1fb7d4('0x239e'),'material.components.whiteframe']),function(){var _0x242818=_0x1fb7d4;function _0x2389cb(_0xc728a7,_0xa72338){var _0x249c9d=a2_0x4bfe;_0xa72338[_0x249c9d('0x728')](_0x249c9d('0x2bdf'))&&_0xc728a7['warn'](_0x249c9d('0x570'));}function _0x1b9b4d(_0x2f0692,_0x57c09e){var _0x21c6d6=a2_0x4bfe;_0x2f0692[_0x21c6d6('0x38d2')]('$$rAF',[_0x21c6d6('0xc85'),_0x31feb7]),_0x2f0692['decorator']('$q',['$delegate',_0x3c1cdb]),_0x57c09e[_0x21c6d6('0x1b7f')]('default')[_0x21c6d6('0x24dd')](_0x21c6d6('0x1d8d'))['accentPalette'](_0x21c6d6('0x1988'))[_0x21c6d6('0xaa5')](_0x21c6d6('0x6f0'))[_0x21c6d6('0x9f')](_0x21c6d6('0x1af9'));}function _0x31feb7(_0x3eacbe){var _0x2cfb1a=a2_0x4bfe;return _0x3eacbe[_0x2cfb1a('0x1620')]=function(_0x1a7b60){var _0x414992,_0x33e8af,_0x4d9af6,_0x301a55;return function(){_0x414992=arguments,_0x301a55=this,_0x4d9af6=_0x1a7b60,_0x33e8af||(_0x33e8af=!0x0,_0x3eacbe(function(){var _0x1160aa=a2_0x4bfe;_0x4d9af6['apply'](_0x301a55,Array['prototype'][_0x1160aa('0x2c0a')][_0x1160aa('0x2449')](_0x414992)),_0x33e8af=!0x1;}));};},_0x3eacbe;}function _0x3c1cdb(_0xc150c2){var _0x469e96=a2_0x4bfe;return _0xc150c2[_0x469e96('0x16ab')]||(_0xc150c2[_0x469e96('0x16ab')]=_0xc150c2['when']),_0xc150c2;}_0x2389cb[_0x242818('0x28c9')]=[_0x242818('0x38a3'),_0x242818('0x345b')],_0x1b9b4d['$inject']=[_0x242818('0x2a0a'),_0x242818('0xe4f')],_0x31feb7[_0x242818('0x28c9')]=[_0x242818('0xc85')],_0x3c1cdb['$inject']=[_0x242818('0xc85')],_0x4a272c[_0x242818('0x122c')]('material.core',[_0x242818('0x506'),'material.core.animate','material.core.layout',_0x242818('0x2806'),_0x242818('0x1ece'),'material.core.theming'])['config'](_0x1b9b4d)['run'](_0x2389cb);}(),function(){var _0x2e5104=_0x1fb7d4;function _0x4eda1c(_0x28e964){return{'restrict':'A','link':{'pre':function(_0x4a01e8,_0x58a8c6,_0x2307b5){var _0x29269d=a2_0x4bfe,_0x172694=_0x2307b5[_0x29269d('0x1ce5')]||_0x2307b5[_0x29269d('0x12db')]||_0x2307b5[_0x29269d('0x4ed')];_0xd30fd6(_0x28e964(_0x172694)(_0x4a01e8)),_0x172694&&_0x4a01e8[_0x29269d('0x1cb1')](_0x172694,_0xd30fd6);function _0xd30fd6(_0x2e26c3){var _0x1f8ae2=_0x29269d;_0x4a272c[_0x1f8ae2('0x294d')](_0x2e26c3)&&(_0x2e26c3=!0x0),_0x58a8c6[_0x1f8ae2('0x2af2')](_0x1f8ae2('0xa95'),!!_0x2e26c3);}}}};}_0x4eda1c['$inject']=['$parse'],_0x4a272c[_0x2e5104('0x122c')]('material.core')['directive'](_0x2e5104('0x12db'),_0x4eda1c)[_0x2e5104('0x1e30')](_0x2e5104('0x1ce5'),_0x4eda1c)[_0x2e5104('0x1e30')](_0x2e5104('0x4ed'),_0x4eda1c);}(),_0x4a272c[_0x1fb7d4('0x122c')](_0x1fb7d4('0x113c'))['factory'](_0x1fb7d4('0x1cfd'),function(){return{'rgbaToHex':function(_0x47ae50){var _0x3bed9d=a2_0x4bfe;return((_0x47ae50=_0x47ae50[_0x3bed9d('0x21ae')](/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&0x4===_0x47ae50[_0x3bed9d('0x175a')]?'#'+('0'+parseInt(_0x47ae50[0x1],0xa)['toString'](0x10))['slice'](-0x2)+('0'+parseInt(_0x47ae50[0x2],0xa)[_0x3bed9d('0x6ef')](0x10))[_0x3bed9d('0x2c0a')](-0x2)+('0'+parseInt(_0x47ae50[0x3],0xa)['toString'](0x10))[_0x3bed9d('0x2c0a')](-0x2):'')[_0x3bed9d('0x1a66')]();},'hexToRgba':function(_0x2d2456){var _0xccb459=a2_0x4bfe,_0x5746a1='#'===_0x2d2456[0x0]?_0x2d2456[_0xccb459('0x3102')](0x1):_0x2d2456,_0x25c958=_0x5746a1[_0xccb459('0x175a')]/0x3,_0x5695ec=_0x5746a1[_0xccb459('0x3102')](0x0,_0x25c958),_0x3fc6a1=_0x5746a1[_0xccb459('0x3102')](_0x25c958,_0x25c958),_0x36a753=_0x5746a1[_0xccb459('0x3102')](0x2*_0x25c958);return 0x1===_0x25c958&&(_0x5695ec+=_0x5695ec,_0x3fc6a1+=_0x3fc6a1,_0x36a753+=_0x36a753),'rgba('+parseInt(_0x5695ec,0x10)+','+parseInt(_0x3fc6a1,0x10)+','+parseInt(_0x36a753,0x10)+_0xccb459('0x2423');},'rgbToRgba':function(_0x164651){var _0x15ece3=a2_0x4bfe;return _0x164651[_0x15ece3('0x34c8')](')',_0x15ece3('0x2ccd'))[_0x15ece3('0x34c8')]('(','a(');},'rgbaToRgb':function(_0x419b0a){var _0x2fe208=a2_0x4bfe;return _0x419b0a?_0x419b0a['replace'](_0x2fe208('0x2f7b'),'rgb')['replace'](/,[^),]+\)/,')'):_0x2fe208('0x26d8');}};}),_0x4a272c['module']('material.core')['factory'](_0x1fb7d4('0x35b'),function(){var _0x56e0f4=_0x1fb7d4,_0x3bcc5b=document[_0x56e0f4('0x264c')](_0x56e0f4('0x1917')),_0x24ed60=function(_0x1df6c1){var _0x221900,_0x471a1e,_0x151a8b=/^(Moz|webkit|ms)(?=[A-Z])/;for(_0x221900 in _0x1df6c1['style'])if(_0x471a1e=_0x151a8b['exec'](_0x221900))return _0x471a1e[0x0];}(_0x3bcc5b),_0x76df7c=/webkit/i[_0x56e0f4('0x19cd')](_0x24ed60),_0x2610d7=/([:\-_]+(.))/g;function _0x9fd6f2(_0x2784d6){var _0xec52b7=_0x56e0f4,_0x570bd7=(_0x24ed60+'-'+_0x2784d6)['replace'](_0x2610d7,function(_0x15e0d1,_0x237c32,_0x797c60,_0x12b5c9){var _0x551ee8=a2_0x4bfe;return _0x12b5c9?_0x797c60[_0x551ee8('0x1a66')]():_0x797c60;}),_0x11b40=_0x570bd7[_0xec52b7('0x40')](0x0)[_0xec52b7('0x856')]()+_0x570bd7[_0xec52b7('0x92')](0x1);return _0x1fab95(_0x3bcc5b,_0x2784d6)?_0x2784d6:_0x1fab95(_0x3bcc5b,_0x570bd7)?_0x570bd7:_0x1fab95(_0x3bcc5b,_0x11b40)?_0x11b40:_0x2784d6;}function _0x1fab95(_0x567b42,_0x402b8b){var _0x5b0c30=_0x56e0f4;return _0x4a272c[_0x5b0c30('0x392d')](_0x567b42[_0x5b0c30('0x14b6')][_0x402b8b]);}var _0x1ed208={'isInputKey':function(_0x1c65be){var _0x38b9f0=_0x56e0f4;return _0x1c65be[_0x38b9f0('0x1f8c')]>=0x1f&&_0x1c65be[_0x38b9f0('0x1f8c')]<=0x5a;},'isNumPadKey':function(_0x501622){var _0x1a3406=_0x56e0f4;return 0x3===_0x501622[_0x1a3406('0x12')]&&_0x501622[_0x1a3406('0x1f8c')]>=0x61&&_0x501622[_0x1a3406('0x1f8c')]<=0x69;},'isMetaKey':function(_0x1d61bd){return _0x1d61bd['keyCode']>=0x5b&&_0x1d61bd['keyCode']<=0x5d;},'isFnLockKey':function(_0x513c2d){var _0x373255=_0x56e0f4;return _0x513c2d['keyCode']>=0x70&&_0x513c2d[_0x373255('0x1f8c')]<=0x91;},'isNavigationKey':function(_0x3a2b50){var _0x1c106a=_0x56e0f4,_0x365daf=_0x1ed208[_0x1c106a('0xaca')];return-0x1!=[_0x365daf['SPACE'],_0x365daf[_0x1c106a('0x1e31')],_0x365daf[_0x1c106a('0x1a0d')],_0x365daf[_0x1c106a('0x30c3')]][_0x1c106a('0xe1c')](_0x3a2b50[_0x1c106a('0x1f8c')]);},'hasModifierKey':function(_0x1975fd){var _0x37df7a=_0x56e0f4;return _0x1975fd['ctrlKey']||_0x1975fd[_0x37df7a('0x30d9')]||_0x1975fd[_0x37df7a('0x5eb')];},'ELEMENT_MAX_PIXELS':0x1767dd,'BEFORE_NG_ARIA':0xd2,'KEY_CODE':{'COMMA':0xbc,'SEMICOLON':0xba,'ENTER':0xd,'ESCAPE':0x1b,'SPACE':0x20,'PAGE_UP':0x21,'PAGE_DOWN':0x22,'END':0x23,'HOME':0x24,'LEFT_ARROW':0x25,'UP_ARROW':0x26,'RIGHT_ARROW':0x27,'DOWN_ARROW':0x28,'TAB':0x9,'BACKSPACE':0x8,'DELETE':0x2e},'CSS':{'TRANSITIONEND':_0x56e0f4('0x2ad3')+(_0x76df7c?_0x56e0f4('0x501'):''),'ANIMATIONEND':_0x56e0f4('0x1fb4')+(_0x76df7c?'\x20webkitAnimationEnd':''),'TRANSFORM':_0x9fd6f2('transform'),'TRANSFORM_ORIGIN':_0x9fd6f2(_0x56e0f4('0xd90')),'TRANSITION':_0x9fd6f2(_0x56e0f4('0x20d1')),'TRANSITION_DURATION':_0x9fd6f2(_0x56e0f4('0x1c7f')),'ANIMATION_PLAY_STATE':_0x9fd6f2(_0x56e0f4('0x1d52')),'ANIMATION_DURATION':_0x9fd6f2('animationDuration'),'ANIMATION_NAME':_0x9fd6f2(_0x56e0f4('0xe3c')),'ANIMATION_TIMING':_0x9fd6f2(_0x56e0f4('0x234d')),'ANIMATION_DIRECTION':_0x9fd6f2(_0x56e0f4('0xa74'))},'MEDIA':{'xs':_0x56e0f4('0x27a7'),'gt-xs':_0x56e0f4('0x35f3'),'sm':_0x56e0f4('0xa99'),'gt-sm':_0x56e0f4('0x407'),'md':_0x56e0f4('0x390'),'gt-md':_0x56e0f4('0x2d69'),'lg':_0x56e0f4('0x19d6'),'gt-lg':_0x56e0f4('0x1cef'),'xl':'(min-width:\x201920px)','landscape':_0x56e0f4('0x999'),'portrait':_0x56e0f4('0x29bf'),'print':'print'},'MEDIA_PRIORITY':['xl',_0x56e0f4('0x10b1'),'lg','gt-md','md',_0x56e0f4('0x1e9a'),'sm',_0x56e0f4('0x2d1c'),'xs',_0x56e0f4('0x24b7'),_0x56e0f4('0x2575'),_0x56e0f4('0x2913')]};return _0x1ed208;}),function(){var _0x3d5dd8=_0x1fb7d4;function _0x52d4ee(_0xa6413d,_0x546569){var _0x514bed=a2_0x4bfe,_0x270514=function(){return!0x0;};_0xa6413d&&!_0x4a272c[_0x514bed('0x2f1d')](_0xa6413d)&&(_0xa6413d=Array[_0x514bed('0x5a')][_0x514bed('0x2c0a')][_0x514bed('0x2449')](_0xa6413d)),_0x546569=!!_0x546569;var _0x4c7050=_0xa6413d||[];return{'items':function(){return[]['concat'](_0x4c7050);},'count':function(){var _0x1931c5=_0x514bed;return _0x4c7050[_0x1931c5('0x175a')];},'inRange':_0x4eeee5,'contains':_0x50a876,'indexOf':_0x5a9bd2,'itemAt':function(_0x515e32){return _0x4eeee5(_0x515e32)?_0x4c7050[_0x515e32]:null;},'findBy':function(_0x432473,_0x4ab8ba){return _0x4c7050['filter'](function(_0x5ec89b){return _0x5ec89b[_0x432473]===_0x4ab8ba;});},'add':function(_0x2b1cd9,_0x572df2){var _0x1a4d13=_0x514bed;if(!_0x2b1cd9)return-0x1;return _0x4a272c['isNumber'](_0x572df2)||(_0x572df2=_0x4c7050['length']),(_0x4c7050[_0x1a4d13('0x1f40')](_0x572df2,0x0,_0x2b1cd9),_0x5a9bd2(_0x2b1cd9));},'remove':function(_0x23f1fe){var _0x320566=_0x514bed;_0x50a876(_0x23f1fe)&&_0x4c7050[_0x320566('0x1f40')](_0x5a9bd2(_0x23f1fe),0x1);},'first':_0x1ad2bf,'last':_0x3f0154,'next':_0x4a272c[_0x514bed('0x1ecd')](null,_0x485004,!0x1),'previous':_0x4a272c[_0x514bed('0x1ecd')](null,_0x485004,!0x0),'hasPrevious':function(_0x1eb13c){return!!_0x1eb13c&&_0x4eeee5(_0x5a9bd2(_0x1eb13c)-0x1);},'hasNext':function(_0x27ab9e){return!!_0x27ab9e&&_0x4eeee5(_0x5a9bd2(_0x27ab9e)+0x1);}};function _0x4eeee5(_0x305bbb){var _0x97c609=_0x514bed;return _0x4c7050[_0x97c609('0x175a')]&&_0x305bbb>-0x1&&_0x305bbb<_0x4c7050[_0x97c609('0x175a')];}function _0x5a9bd2(_0x392101){var _0x56c943=_0x514bed;return _0x4c7050[_0x56c943('0xe1c')](_0x392101);}function _0x50a876(_0x45b746){return _0x45b746&&_0x5a9bd2(_0x45b746)>-0x1;}function _0x1ad2bf(){var _0x2d2621=_0x514bed;return _0x4c7050[_0x2d2621('0x175a')]?_0x4c7050[0x0]:null;}function _0x3f0154(){var _0x52649e=_0x514bed;return _0x4c7050[_0x52649e('0x175a')]?_0x4c7050[_0x4c7050[_0x52649e('0x175a')]-0x1]:null;}function _0x485004(_0x410f82,_0x1eb928,_0x372957,_0x3be322){var _0x13aa44=_0x514bed;_0x372957=_0x372957||_0x270514;for(var _0xace8b2=_0x5a9bd2(_0x1eb928);;){if(!_0x4eeee5(_0xace8b2))return null;var _0x4324e=_0xace8b2+(_0x410f82?-0x1:0x1),_0x2a2135=null;if(_0x4eeee5(_0x4324e)?_0x2a2135=_0x4c7050[_0x4324e]:_0x546569&&(_0x4324e=_0x5a9bd2(_0x2a2135=_0x410f82?_0x3f0154():_0x1ad2bf())),null===_0x2a2135||_0x4324e===_0x3be322)return null;if(_0x372957(_0x2a2135))return _0x2a2135;_0x4a272c[_0x13aa44('0x294d')](_0x3be322)&&(_0x3be322=_0x4324e),_0xace8b2=_0x4324e;}}}_0x4a272c['module'](_0x3d5dd8('0x113c'))[_0x3d5dd8('0x3486')]([_0x3d5dd8('0x2a0a'),function(_0x45a202){var _0x1fca5a=_0x3d5dd8;_0x45a202[_0x1fca5a('0x38d2')]('$mdUtil',['$delegate',function(_0x184f53){return _0x184f53['iterator']=_0x52d4ee,_0x184f53;}]);}]);}(),function(){var _0x251c60=_0x1fb7d4;function _0x2f85ca(_0x4d1877,_0x36398e,_0x3e4254){var _0xca07c=a2_0x4bfe,_0x39fa52={},_0x575f90={},_0x29c338={},_0x1adeb1={};return _0x1ff57c[_0xca07c('0xcaf')]=function(_0x50152b,_0x559e60){var _0x1e7f5a=_0xca07c;for(var _0x5f4e06=0x0;_0x5f4e06<_0x4d1877[_0x1e7f5a('0x2f0f')]['length'];_0x5f4e06++){var _0x577fc1=_0x4d1877['MEDIA_PRIORITY'][_0x5f4e06];if(_0x575f90[_0x39fa52[_0x577fc1]][_0x1e7f5a('0x32a4')]){var _0x25bf96=_0x3f5c17(_0x50152b,_0x559e60+'-'+_0x577fc1);if(_0x50152b[_0x25bf96])return _0x50152b[_0x25bf96];}}return _0x50152b[_0x3f5c17(_0x50152b,_0x559e60)];},_0x1ff57c[_0xca07c('0x2a53')]=function(_0x2a06fc){return _0x575f90[_0x2a06fc];},_0x1ff57c['watchResponsiveAttributes']=function(_0x1326e2,_0x32802b,_0xd40be){var _0x402ecc=_0xca07c,_0xc9f1c3=[];return _0x1326e2[_0x402ecc('0x247d')](function(_0xab21fb){var _0x6c38eb=_0x402ecc,_0x4133a2=_0x3f5c17(_0x32802b,_0xab21fb);for(var _0x4086bd in(_0x4a272c[_0x6c38eb('0x392d')](_0x32802b[_0x4133a2])&&_0xc9f1c3[_0x6c38eb('0x1a90')](_0x32802b[_0x6c38eb('0x2838')](_0x4133a2,_0x4a272c[_0x6c38eb('0x1ecd')](void 0x0,_0xd40be,null))),_0x4d1877[_0x6c38eb('0x37b2')]))_0x4133a2=_0x3f5c17(_0x32802b,_0xab21fb+'-'+_0x4086bd),_0x4a272c[_0x6c38eb('0x392d')](_0x32802b[_0x4133a2])&&_0xc9f1c3[_0x6c38eb('0x1a90')](_0x32802b['$observe'](_0x4133a2,_0x4a272c['bind'](void 0x0,_0xd40be,_0x4086bd)));}),function(){var _0x146129=_0x402ecc;_0xc9f1c3[_0x146129('0x247d')](function(_0x2bf535){_0x2bf535();});};},_0x1ff57c;function _0x1ff57c(_0x3eae5c){var _0x533ede=_0xca07c,_0x3f56d9=_0x39fa52[_0x3eae5c];_0x4a272c[_0x533ede('0x294d')](_0x3f56d9)&&(_0x3f56d9=_0x39fa52[_0x3eae5c]=function(_0x26616e){return _0x4d1877['MEDIA'][_0x26616e]||('('!==_0x26616e['charAt'](0x0)?'('+_0x26616e+')':_0x26616e);}(_0x3eae5c));var _0x5d134f=_0x29c338[_0x3f56d9];return _0x4a272c[_0x533ede('0x294d')](_0x5d134f)&&(_0x5d134f=function(_0x3ea516){var _0x3954bc=_0x533ede,_0x36c34d=_0x575f90[_0x3ea516];return _0x36c34d||(_0x36c34d=_0x575f90[_0x3ea516]=_0x3e4254[_0x3954bc('0x1a05')](_0x3ea516)),(_0x36c34d['addListener'](_0x2083d0),_0x29c338[_0x36c34d[_0x3954bc('0x1b9d')]]=!!_0x36c34d['matches']);}(_0x3f56d9)),_0x5d134f;}function _0x2083d0(_0x157e9a){var _0xd812a9=_0xca07c;_0x36398e[_0xd812a9('0x123')](function(){var _0x874c86=_0xd812a9;_0x29c338[_0x157e9a[_0x874c86('0x1b9d')]]=!!_0x157e9a[_0x874c86('0x32a4')];});}function _0x3f5c17(_0x397242,_0x5690ec){var _0x565437=_0xca07c;return _0x1adeb1[_0x5690ec]||(_0x1adeb1[_0x5690ec]=_0x397242[_0x565437('0x318b')](_0x5690ec));}}_0x2f85ca[_0x251c60('0x28c9')]=[_0x251c60('0x35b'),_0x251c60('0x709'),_0x251c60('0x398e')],_0x4a272c[_0x251c60('0x122c')](_0x251c60('0x113c'))['factory'](_0x251c60('0x1aa9'),_0x2f85ca);}(),function(){var _0x6a2bf4=_0x1fb7d4;function _0x265927(_0xfb4d6d,_0x333458){var _0x133561=['data','x'];return _0xfb4d6d?_0x333458?_0x220fb7(_0xfb4d6d):_0x75a6ec(_0xfb4d6d):{'buildList':_0x75a6ec,'buildSelector':_0x220fb7,'hasAttribute':function(_0x156b1d,_0x3eb723){var _0x8fe861=a2_0x4bfe;if(!(_0x156b1d=_0x3c82c4(_0x156b1d)))return!0x1;for(var _0x248384=_0x75a6ec(_0x3eb723),_0x111305=0x0;_0x111305<_0x248384[_0x8fe861('0x175a')];_0x111305++)if(_0x156b1d[_0x8fe861('0x2052')](_0x248384[_0x111305]))return!0x0;return!0x1;},'removeAttribute':function(_0x345715,_0x20ab11){var _0x4a9ed4=a2_0x4bfe;if(!(_0x345715=_0x3c82c4(_0x345715)))return;_0x75a6ec(_0x20ab11)[_0x4a9ed4('0x247d')](function(_0x57a9c3){_0x345715['removeAttribute'](_0x57a9c3);});}};function _0x75a6ec(_0x167960){var _0x341528=a2_0x4bfe;return(_0x167960=_0x4a272c[_0x341528('0x2f1d')](_0x167960)?_0x167960:[_0x167960])['forEach'](function(_0x1a5671){_0x133561['forEach'](function(_0x22f9a8){var _0x15f437=a2_0x4bfe;_0x167960[_0x15f437('0x1a90')](_0x22f9a8+'-'+_0x1a5671);});}),_0x167960;}function _0x220fb7(_0xf7cef6){var _0x1262b4=a2_0x4bfe;return _0x75a6ec(_0xf7cef6=_0x4a272c[_0x1262b4('0x2f1d')](_0xf7cef6)?_0xf7cef6:[_0xf7cef6])['map'](function(_0x5c27d4){return'['+_0x5c27d4+']';})[_0x1262b4('0x6a8')](',');}function _0x3c82c4(_0x1a8b96){var _0x1bd687=a2_0x4bfe;if((_0x1a8b96=_0x1a8b96[0x0]||_0x1a8b96)[_0x1bd687('0x3605')])return _0x1a8b96;}}_0x4a272c[_0x6a2bf4('0x122c')](_0x6a2bf4('0x113c'))[_0x6a2bf4('0x3486')](['$provide',function(_0x21d354){var _0x5d2bc1=_0x6a2bf4;_0x21d354['decorator'](_0x5d2bc1('0x2e27'),[_0x5d2bc1('0xc85'),function(_0x521ba5){var _0x5a7ac7=_0x5d2bc1;return _0x521ba5[_0x5a7ac7('0x20f6')]=_0x265927,_0x521ba5;}]);}]);}(),function(){var _0x3444a8=_0x1fb7d4;_0x527a66[_0x3444a8('0x28c9')]=[_0x3444a8('0x151'),_0x3444a8('0x1993'),_0x3444a8('0x2078'),_0x3444a8('0x709'),_0x3444a8('0x2b45'),_0x3444a8('0x2476'),_0x3444a8('0x38a3'),'$rootElement',_0x3444a8('0x398e'),'$$rAF'];var _0x325dae,_0x4eb132,_0x433fe7=0x0;if(_0x49f10c['navigator']){var _0x2fe5d8=_0x49f10c['navigator'][_0x3444a8('0x3656')]||_0x49f10c[_0x3444a8('0x53d')][_0x3444a8('0x2d76')]||_0x49f10c[_0x3444a8('0x23ea')];_0x325dae=_0x2fe5d8[_0x3444a8('0x21ae')](/ipad|iphone|ipod/i),_0x4eb132=_0x2fe5d8[_0x3444a8('0x21ae')](/android/i);}function _0x527a66(_0x16ca83,_0x1b5d60,_0x1ca629,_0x3eca35,_0x53f1f1,_0x240efd,_0x11aa83,_0x495ba3,_0x3ac4c2,_0x1ad3c1){var _0x15300f=_0x3444a8,_0x7f0e37=_0x240efd[_0x15300f('0x298')](),_0x33c047=_0x240efd[_0x15300f('0xa5d')](),_0x32a1cf='{{'===_0x7f0e37&&'}}'===_0x33c047;document['contains']||(document[_0x15300f('0x3cf')]=function(_0x4fb992){var _0x16c17a=_0x15300f;return document[_0x16c17a('0x3742')][_0x16c17a('0x3cf')](_0x4fb992);});var _0x49644d=function(_0xf3624a,_0x43ed80,_0x20f37b){var _0x4bae2f=_0x15300f,_0x521552=!0x1;if(_0xf3624a&&_0xf3624a[_0x4bae2f('0x175a')]){var _0x297f4a=_0x3ac4c2['getComputedStyle'](_0xf3624a[0x0]);_0x521552=_0x4a272c[_0x4bae2f('0x392d')](_0x297f4a[_0x43ed80])&&(!_0x20f37b||_0x297f4a[_0x43ed80]==_0x20f37b);}return _0x521552;};function _0x5d474b(_0x379154){return _0x379154?function(_0x2250e2){var _0x4da424=a2_0x4bfe;return String(_0x2250e2)[_0x4da424('0xe1c')]('px')>-0x1;}(_0x379154)||function(_0x253168){return String(_0x253168)['indexOf']('%')>-0x1;}(_0x379154)?_0x379154:_0x379154+'px':'0';}var _0x4a9e90={'dom':{},'isIos':_0x325dae,'isAndroid':_0x4eb132,'now':_0x49f10c[_0x15300f('0x15ca')]&&_0x49f10c[_0x15300f('0x15ca')][_0x15300f('0x90e')]?_0x4a272c[_0x15300f('0x1ecd')](_0x49f10c[_0x15300f('0x15ca')],_0x49f10c[_0x15300f('0x15ca')][_0x15300f('0x90e')]):Date[_0x15300f('0x90e')]||function(){var _0x90b758=_0x15300f;return new Date()[_0x90b758('0x1b0')]();},'getModelOption':function(_0x318a48,_0xae237c){var _0x23dec4=_0x15300f;if(_0x318a48['$options']){var _0x546b2b=_0x318a48[_0x23dec4('0x781')];return _0x546b2b[_0x23dec4('0x295b')]?_0x546b2b[_0x23dec4('0x295b')](_0xae237c):_0x546b2b[_0xae237c];}},'isRtl':function(_0x487f5e){var _0x58ba9a=_0x15300f;switch(_0x4a272c[_0x58ba9a('0x392d')](_0x487f5e)&&_0x487f5e[_0x58ba9a('0x1522')](_0x58ba9a('0x2197'))&&_0x487f5e[_0x58ba9a('0x2197')]){case _0x58ba9a('0x26a0'):return!0x1;case _0x58ba9a('0x36d6'):return!0x0;}return'rtl'===_0x16ca83[0x0]['dir']||_0x58ba9a('0x36d6')===_0x16ca83[0x0][_0x58ba9a('0x3742')][_0x58ba9a('0x2197')];},'bidi':function(_0x47b847,_0x36a6fd,_0x342056,_0x244cb0){var _0x48009a=_0x15300f,_0x18aff7=!this['isRtl']();if(0x0==arguments[_0x48009a('0x175a')])return _0x18aff7?_0x48009a('0x26a0'):_0x48009a('0x36d6');var _0x157368=_0x4a272c[_0x48009a('0x88a')](_0x47b847);_0x18aff7&&_0x4a272c[_0x48009a('0x392d')](_0x342056)?_0x157368[_0x48009a('0x30a3')](_0x36a6fd,_0x5d474b(_0x342056)):!_0x18aff7&&_0x4a272c['isDefined'](_0x244cb0)&&_0x157368['css'](_0x36a6fd,_0x5d474b(_0x244cb0));},'bidiProperty':function(_0xaa0af8,_0x4f7208,_0x29568e,_0xfc468e){var _0x50c077=_0x15300f,_0x4d7106=!this[_0x50c077('0x6ae')](),_0xde9499=_0x4a272c[_0x50c077('0x88a')](_0xaa0af8);_0x4d7106&&_0x4a272c[_0x50c077('0x392d')](_0x4f7208)?(_0xde9499[_0x50c077('0x30a3')](_0x4f7208,_0x5d474b(_0xfc468e)),_0xde9499[_0x50c077('0x30a3')](_0x29568e,'')):!_0x4d7106&&_0x4a272c[_0x50c077('0x392d')](_0x29568e)&&(_0xde9499[_0x50c077('0x30a3')](_0x29568e,_0x5d474b(_0xfc468e)),_0xde9499[_0x50c077('0x30a3')](_0x4f7208,''));},'clientRect':function(_0x113380,_0x57674c,_0x1f1346){var _0x1654f4=_0x15300f,_0x2c01de=_0x1a48bb(_0x113380);_0x57674c=_0x1a48bb(_0x57674c||_0x2c01de[_0x1654f4('0x35d7')]||document[_0x1654f4('0x3742')]);var _0x484094=_0x2c01de['getBoundingClientRect'](),_0x5cd946=_0x1f1346?_0x57674c[_0x1654f4('0x2748')]():{'left':0x0,'top':0x0,'width':0x0,'height':0x0};return{'left':_0x484094[_0x1654f4('0x1d75')]-_0x5cd946[_0x1654f4('0x1d75')],'top':_0x484094[_0x1654f4('0x361a')]-_0x5cd946[_0x1654f4('0x361a')],'width':_0x484094['width'],'height':_0x484094[_0x1654f4('0x28c')]};},'offsetRect':function(_0x4ba7d7,_0x2175e0){var _0x2a4752=_0x15300f;return _0x4a9e90[_0x2a4752('0x31cf')](_0x4ba7d7,_0x2175e0,!0x0);},'nodesToArray':function(_0x12eb97){var _0x4ec041=_0x15300f,_0x10318f,_0x32e783=[];for(_0x12eb97=_0x12eb97||[],_0x10318f=0x0;_0x10318f<_0x12eb97[_0x4ec041('0x175a')];++_0x10318f)_0x32e783[_0x4ec041('0x1a90')](_0x12eb97[_0x4ec041('0x1b7')](_0x10318f));return _0x32e783;},'getViewportTop':function(){var _0x2d6e29=_0x15300f;return _0x4a9e90[_0x2d6e29('0x10b3')][_0x2d6e29('0x228d')]&&_0x4a9e90['disableScrollAround'][_0x2d6e29('0x67')]?_0x4a9e90[_0x2d6e29('0x10b3')][_0x2d6e29('0x67')]:_0x3ac4c2[_0x2d6e29('0x1eb0')]||_0x3ac4c2[_0x2d6e29('0x213b')]||0x0;},'findFocusTarget':function(_0x50976a,_0x5500b6){var _0x290610=_0x15300f,_0x400050,_0x360ee8=this['prefixer'](_0x290610('0xa95'),!0x0);return(_0x400050=_0x39afb5(_0x50976a,_0x5500b6||_0x360ee8))||_0x5500b6==_0x360ee8||(_0x400050=_0x39afb5(_0x50976a,this[_0x290610('0x20f6')](_0x290610('0x20dc'),!0x0)))||(_0x400050=_0x39afb5(_0x50976a,_0x360ee8)),_0x400050;function _0x39afb5(_0x45d45e,_0x273403){var _0x1542dd=_0x290610,_0x32676a,_0x3305a6=_0x45d45e[0x0][_0x1542dd('0x17de')](_0x273403);return _0x3305a6&&_0x3305a6[_0x1542dd('0x175a')]&&_0x3305a6[_0x1542dd('0x175a')]&&_0x4a272c[_0x1542dd('0x247d')](_0x3305a6,function(_0x183846){var _0x981e13=_0x1542dd;(_0x183846=_0x4a272c[_0x981e13('0x88a')](_0x183846))[_0x981e13('0x522')](_0x981e13('0xa95'))&&(_0x32676a=_0x183846);}),_0x32676a;}},'disableScrollAround':function(_0x4a5688,_0xc40d33,_0x4dcfe5){var _0x4e3dd0=_0x15300f;if(_0x4dcfe5=_0x4dcfe5||{},_0x4a9e90[_0x4e3dd0('0x10b3')][_0x4e3dd0('0x228d')]=Math[_0x4e3dd0('0x2780')](0x0,_0x4a9e90[_0x4e3dd0('0x10b3')][_0x4e3dd0('0x228d')]||0x0),_0x4a9e90[_0x4e3dd0('0x10b3')]['_count']++,_0x4a9e90[_0x4e3dd0('0x10b3')][_0x4e3dd0('0x18e8')])return _0x4a9e90[_0x4e3dd0('0x10b3')][_0x4e3dd0('0x18e8')];var _0x43c678=_0x16ca83[0x0][_0x4e3dd0('0x3742')],_0x1bee6c=function(){var _0x2c8453=_0x4e3dd0,_0x101717=_0x16ca83[0x0][_0x2c8453('0x207a')],_0x26abca=_0x101717['style'][_0x2c8453('0x1836')]||'',_0x1f3f3d=_0x43c678[_0x2c8453('0x14b6')][_0x2c8453('0x1836')]||'',_0x42e243=_0x4a9e90[_0x2c8453('0x3859')]();_0x4a9e90[_0x2c8453('0x10b3')][_0x2c8453('0x67')]=_0x42e243;var _0x83ac97=_0x43c678['clientWidth'],_0x54baf8=_0x43c678[_0x2c8453('0x13fc')]>_0x43c678[_0x2c8453('0x22e7')]+0x1,_0x36b9ca=_0x101717[_0x2c8453('0x1fd3')]>0x0?_0x101717:_0x43c678;return _0x54baf8&&_0x4a272c[_0x2c8453('0x88a')](_0x43c678)[_0x2c8453('0x30a3')]({'position':'fixed','width':_0x2c8453('0x21e5'),'top':-_0x42e243+'px'}),_0x43c678[_0x2c8453('0x1473')]<_0x83ac97&&(_0x43c678[_0x2c8453('0x14b6')][_0x2c8453('0x1c49')]=_0x2c8453('0x1bdf')),function(){var _0x24c02c=_0x2c8453;_0x43c678[_0x24c02c('0x14b6')][_0x24c02c('0x1836')]=_0x1f3f3d,_0x101717['style'][_0x24c02c('0x1836')]=_0x26abca,_0x36b9ca[_0x24c02c('0x1fd3')]=_0x42e243;};}(),_0xfc282a=function(_0x1f8bad,_0x25cb48){var _0x26478f=_0x4e3dd0,_0x3e3366,_0x7c597f=_0x4a272c[_0x26478f('0x88a')](_0x1f8bad||_0x43c678);_0x25cb48[_0x26478f('0x1574')]?_0x3e3366=_0x7c597f:(_0x3e3366=_0x4a272c['element'](_0x26478f('0x1e64')),_0x7c597f[_0x26478f('0x10f')](_0x3e3366));function _0x39b6e0(_0x420c47){var _0x569a76=_0x26478f;_0x420c47[_0x569a76('0x1f1a')]();}return _0x3e3366['on'](_0x26478f('0x17e7'),_0x39b6e0),function(){var _0x474763=_0x26478f;_0x3e3366['off'](_0x474763('0x17e7'),_0x39b6e0),!_0x25cb48[_0x474763('0x1574')]&&_0x3e3366[0x0]['parentNode']&&_0x3e3366[0x0]['parentNode'][_0x474763('0x37e1')](_0x3e3366[0x0]);};}(_0xc40d33,_0x4dcfe5);return _0x4a9e90['disableScrollAround'][_0x4e3dd0('0x18e8')]=function(){var _0x2628c8=_0x4e3dd0;--_0x4a9e90[_0x2628c8('0x10b3')][_0x2628c8('0x228d')]<=0x0&&(delete _0x4a9e90[_0x2628c8('0x10b3')][_0x2628c8('0x67')],_0x1bee6c(),_0xfc282a(),delete _0x4a9e90[_0x2628c8('0x10b3')][_0x2628c8('0x18e8')]);};},'enableScrolling':function(){var _0x107750=this['disableScrollAround']['_restoreScroll'];_0x107750&&_0x107750();},'floatingScrollbars':function(){var _0x4163d6=_0x15300f;if(this['floatingScrollbars']['cached']===_0x6373f5){var _0x4f921e=_0x4a272c[_0x4163d6('0x88a')]('
')[_0x4163d6('0x30a3')]({'width':_0x4163d6('0x21e5'),'z-index':-0x1,'position':'absolute','height':_0x4163d6('0x1e2d'),'overflow-y':'scroll'});_0x4f921e[_0x4163d6('0xfc0')]()[_0x4163d6('0x30a3')](_0x4163d6('0x28c'),_0x4163d6('0x305c')),_0x16ca83[0x0][_0x4163d6('0x3742')][_0x4163d6('0x37f2')](_0x4f921e[0x0]),this[_0x4163d6('0x1a00')]['cached']=_0x4f921e[0x0][_0x4163d6('0x1fe5')]==_0x4f921e[0x0]['childNodes'][0x0]['offsetWidth'],_0x4f921e[_0x4163d6('0x2371')]();}return this[_0x4163d6('0x1a00')][_0x4163d6('0x332d')];},'forceFocus':function(_0x3b6942){var _0x1b13c8=_0x15300f,_0x1e421a=_0x3b6942[0x0]||_0x3b6942;document['addEventListener']('click',function _0xe64615(_0x239bf1){var _0x16abbf=a2_0x4bfe;_0x239bf1['target']===_0x1e421a&&_0x239bf1[_0x16abbf('0x12b7')]&&(_0x1e421a[_0x16abbf('0x1c34')](),_0x239bf1[_0x16abbf('0xf69')](),_0x239bf1[_0x16abbf('0x1f1a')](),_0x1e421a['removeEventListener']('click',_0xe64615));},!0x0);var _0x5a4577=document[_0x1b13c8('0x634')]('MouseEvents');_0x5a4577[_0x1b13c8('0x36b')](_0x1b13c8('0x160'),!0x1,!0x0,_0x49f10c,{},0x0,0x0,0x0,0x0,!0x1,!0x1,!0x1,!0x1,0x0,null),_0x5a4577['$material']=!0x0,_0x5a4577[_0x1b13c8('0x12b7')]=!0x0,_0x1e421a['dispatchEvent'](_0x5a4577);},'createBackdrop':function(_0x4303c2,_0x15783c){var _0x4eef00=_0x15300f;return _0x1ca629(_0x4a9e90[_0x4eef00('0x1f28')](_0x4eef00('0x11e'),[_0x15783c]))(_0x4303c2);},'supplant':function(_0x4b88c2,_0x29b4eb,_0x49e15b){var _0x59c4ba=_0x15300f;return _0x49e15b=_0x49e15b||/\{([^{}]*)\}/g,_0x4b88c2[_0x59c4ba('0x34c8')](_0x49e15b,function(_0x4907cf,_0x127619){var _0x1efb04=_0x59c4ba,_0x26a955=_0x127619[_0x1efb04('0x23ee')]('.'),_0x129695=_0x29b4eb;try{for(var _0x384061 in _0x26a955)_0x26a955['hasOwnProperty'](_0x384061)&&(_0x129695=_0x129695[_0x26a955[_0x384061]]);}catch(_0x1083cf){_0x129695=_0x4907cf;}return _0x1efb04('0x151d')==typeof _0x129695||_0x1efb04('0x3072')==typeof _0x129695?_0x129695:_0x4907cf;});},'fakeNgModel':function(){var _0x3226e6=_0x15300f;return{'$fake':!0x0,'$setTouched':_0x4a272c[_0x3226e6('0x2374')],'$setViewValue':function(_0x3c12d5){var _0x4d68dc=_0x3226e6;this[_0x4d68dc('0x9d')]=_0x3c12d5,this[_0x4d68dc('0x29cc')](_0x3c12d5),this[_0x4d68dc('0x1e56')][_0x4d68dc('0x247d')](function(_0x219edd){_0x219edd();});},'$isEmpty':function(_0x44f3e3){var _0x4ea752=_0x3226e6;return 0x0===(''+_0x44f3e3)[_0x4ea752('0x175a')];},'$parsers':[],'$formatters':[],'$viewChangeListeners':[],'$render':_0x4a272c[_0x3226e6('0x2374')]};},'debounce':function(_0x476ae0,_0x5b1498,_0x4a1452,_0x4abb94){var _0x301d9f;return function(){var _0x28a3a7=a2_0x4bfe,_0x5a6125=_0x4a1452,_0x48264b=Array['prototype'][_0x28a3a7('0x2c0a')]['call'](arguments);_0x1b5d60[_0x28a3a7('0x31ce')](_0x301d9f),_0x301d9f=_0x1b5d60(function(){var _0x35dabe=_0x28a3a7;_0x301d9f=_0x6373f5,_0x476ae0[_0x35dabe('0x177a')](_0x5a6125,_0x48264b);},_0x5b1498||0xa,_0x4abb94);};},'throttle':function(_0x38b40b,_0x5b8e93){var _0x3aa269;return function(){var _0xee55ab=a2_0x4bfe,_0x2c1c61=this,_0x292279=arguments,_0x435516=_0x4a9e90[_0xee55ab('0x90e')]();(!_0x3aa269||_0x435516-_0x3aa269>_0x5b8e93)&&(_0x38b40b[_0xee55ab('0x177a')](_0x2c1c61,_0x292279),_0x3aa269=_0x435516);};},'time':function(_0x5b55f4){var _0x42d702=_0x15300f,_0x48a541=_0x4a9e90[_0x42d702('0x90e')]();return _0x5b55f4(),_0x4a9e90[_0x42d702('0x90e')]()-_0x48a541;},'valueOnUse':function(_0x4874bc,_0x3f86d7,_0x54022d){var _0x12ec5b=_0x15300f,_0x22031f=null,_0x3cdce0=Array[_0x12ec5b('0x5a')][_0x12ec5b('0x2c0a')][_0x12ec5b('0x2449')](arguments),_0x55eaf3=_0x3cdce0[_0x12ec5b('0x175a')]>0x3?_0x3cdce0['slice'](0x3):[];Object['defineProperty'](_0x4874bc,_0x3f86d7,{'get':function(){var _0x4b7f4d=_0x12ec5b;return null===_0x22031f&&(_0x22031f=_0x54022d[_0x4b7f4d('0x177a')](_0x4874bc,_0x55eaf3)),_0x22031f;}});},'nextUid':function(){return''+_0x433fe7++;},'disconnectScope':function(_0x37a3e8){var _0x131d48=_0x15300f;if(_0x37a3e8&&_0x37a3e8[_0x131d48('0xb75')]!==_0x37a3e8&&!_0x37a3e8[_0x131d48('0x1ff1')]){var _0x159834=_0x37a3e8[_0x131d48('0x955')];_0x37a3e8['$$disconnected']=!0x0,_0x159834[_0x131d48('0x1a1e')]===_0x37a3e8&&(_0x159834[_0x131d48('0x1a1e')]=_0x37a3e8[_0x131d48('0x1839')]),_0x159834[_0x131d48('0x2acf')]===_0x37a3e8&&(_0x159834[_0x131d48('0x2acf')]=_0x37a3e8[_0x131d48('0x1df0')]),_0x37a3e8[_0x131d48('0x1df0')]&&(_0x37a3e8[_0x131d48('0x1df0')]['$$nextSibling']=_0x37a3e8[_0x131d48('0x1839')]),_0x37a3e8['$$nextSibling']&&(_0x37a3e8[_0x131d48('0x1839')][_0x131d48('0x1df0')]=_0x37a3e8[_0x131d48('0x1df0')]),_0x37a3e8['$$nextSibling']=_0x37a3e8[_0x131d48('0x1df0')]=null;}},'reconnectScope':function(_0xce2454){var _0x13e8f6=_0x15300f;if(_0xce2454&&_0xce2454[_0x13e8f6('0xb75')]!==_0xce2454&&_0xce2454[_0x13e8f6('0x2d5f')]){var _0x227d06=_0xce2454,_0xd7c0fb=_0x227d06[_0x13e8f6('0x955')];_0x227d06[_0x13e8f6('0x2d5f')]=!0x1,_0x227d06[_0x13e8f6('0x1df0')]=_0xd7c0fb[_0x13e8f6('0x2acf')],_0xd7c0fb[_0x13e8f6('0x1a1e')]?(_0xd7c0fb[_0x13e8f6('0x2acf')][_0x13e8f6('0x1839')]=_0x227d06,_0xd7c0fb[_0x13e8f6('0x2acf')]=_0x227d06):_0xd7c0fb['$$childHead']=_0xd7c0fb['$$childTail']=_0x227d06;}},'getSiblings':function(_0x38a3ef,_0xec7711){var _0x376a54=_0x15300f,_0x214403=_0xec7711[_0x376a54('0x1a66')]();return _0x38a3ef instanceof _0x4a272c[_0x376a54('0x88a')]&&(_0x38a3ef=_0x38a3ef[0x0]),Array[_0x376a54('0x5a')]['filter'][_0x376a54('0x2449')](_0x38a3ef['parentNode'][_0x376a54('0xfc0')],function(_0x14e54c){var _0x1138a5=_0x376a54;return _0x38a3ef!==_0x14e54c&&_0x14e54c['tagName'][_0x1138a5('0x1a66')]()===_0x214403;})[_0x376a54('0x2d86')](function(_0x554c16){var _0x4e8943=_0x376a54;return _0x4a272c[_0x4e8943('0x88a')](_0x554c16);});},'getClosest':function(_0x30abd8,_0x56c220,_0x5bb682){var _0x4c8801=_0x15300f;if(_0x4a272c[_0x4c8801('0x392')](_0x56c220)){var _0x4e7b53=_0x56c220[_0x4c8801('0x1a66')]();_0x56c220=function(_0x2d0b78){return _0x2d0b78['nodeName']['toUpperCase']()===_0x4e7b53;};}if(_0x30abd8 instanceof _0x4a272c[_0x4c8801('0x88a')]&&(_0x30abd8=_0x30abd8[0x0]),_0x5bb682&&(_0x30abd8=_0x30abd8['parentNode']),!_0x30abd8)return null;do{if(_0x56c220(_0x30abd8))return _0x30abd8;}while(_0x30abd8=_0x30abd8[_0x4c8801('0x1378')]);return null;},'elementContains':function(_0x4a1320,_0xcd0394){var _0x33abdb=_0x15300f;return(_0x49f10c['Node']&&_0x49f10c[_0x33abdb('0xdb5')][_0x33abdb('0x5a')]&&Node[_0x33abdb('0x5a')][_0x33abdb('0x3cf')]?_0x4a272c[_0x33abdb('0x1ecd')](_0x4a1320,_0x4a1320['contains']):_0x4a272c['bind'](_0x4a1320,function(_0x443cb4){var _0x1bb0e0=_0x33abdb;return _0x4a1320===_0xcd0394||!!(0x10&this[_0x1bb0e0('0x815')](_0x443cb4));}))(_0xcd0394);},'extractElementByName':function(_0x1fcb2f,_0x52b5f2,_0x5ad0d9,_0x2e68f6){var _0x4101c2=_0x15300f,_0x49ab8f=_0x1d6372(_0x1fcb2f);return!_0x49ab8f&&_0x2e68f6&&_0x11aa83[_0x4101c2('0x8fa')](_0x4a9e90[_0x4101c2('0x1f28')](_0x4101c2('0x206b'),[_0x52b5f2,_0x1fcb2f[0x0][_0x4101c2('0x1a70')]])),_0x4a272c[_0x4101c2('0x88a')](_0x49ab8f||_0x1fcb2f);function _0x1d6372(_0x3bae9c){return function(_0x5e2de1){var _0x58b3d9=a2_0x4bfe;if(_0x5e2de1)for(var _0x5a90ff=0x0,_0x5861b4=_0x5e2de1[_0x58b3d9('0x175a')];_0x5a90ff<_0x5861b4;_0x5a90ff++)if(_0x5e2de1[_0x5a90ff][_0x58b3d9('0x10c3')]['toLowerCase']()===_0x52b5f2)return _0x5e2de1[_0x5a90ff];return null;}(_0x3bae9c)||(_0x5ad0d9?function(_0x41e435){var _0x3c6862=a2_0x4bfe,_0x303712;if(_0x41e435)for(var _0x2cde10=0x0,_0x5f9f5e=_0x41e435['length'];_0x2cde10<_0x5f9f5e;_0x2cde10++){var _0x5b59b8=_0x41e435[_0x2cde10];if(!_0x303712)for(var _0x3e87d5=0x0,_0x52ba20=_0x5b59b8[_0x3c6862('0x2d7b')][_0x3c6862('0x175a')];_0x3e87d5<_0x52ba20;_0x3e87d5++)_0x303712=_0x303712||_0x1d6372([_0x5b59b8['childNodes'][_0x3e87d5]]);}return _0x303712;}(_0x3bae9c):null);}},'initOptionalProperties':function(_0x5777d4,_0x53771b,_0xb5cb68){var _0x120285=_0x15300f;_0xb5cb68=_0xb5cb68||{},_0x4a272c[_0x120285('0x247d')](_0x5777d4['$$isolateBindings'],function(_0x5875d0,_0x478870){var _0x286030=_0x120285;if(_0x5875d0[_0x286030('0x179c')]&&_0x4a272c[_0x286030('0x294d')](_0x5777d4[_0x478870])){var _0x3cdec2=_0x4a272c[_0x286030('0x392d')](_0x53771b[_0x5875d0[_0x286030('0x28b6')]]);_0x5777d4[_0x478870]=_0x4a272c['isDefined'](_0xb5cb68[_0x478870])?_0xb5cb68[_0x478870]:_0x3cdec2;}});},'nextTick':function(_0x13ea0e,_0x597244,_0x121f14){var _0x14a0f3=_0x15300f,_0x3736f4=_0x4a9e90[_0x14a0f3('0x2baa')],_0xceb4c9=_0x3736f4['timeout'],_0x32fe2c=_0x3736f4['queue']||[];return _0x32fe2c[_0x14a0f3('0x1a90')]({'scope':_0x121f14,'callback':_0x13ea0e}),null==_0x597244&&(_0x597244=!0x0),_0x3736f4[_0x14a0f3('0x1519')]=_0x3736f4[_0x14a0f3('0x1519')]||_0x597244,_0x3736f4[_0x14a0f3('0x1d99')]=_0x32fe2c,_0xceb4c9||(_0x3736f4[_0x14a0f3('0xbd0')]=_0x1b5d60(function(){var _0x18a766=_0x14a0f3,_0x4a41b7=_0x3736f4[_0x18a766('0x1d99')],_0x5c10b0=_0x3736f4[_0x18a766('0x1519')];_0x3736f4[_0x18a766('0x1d99')]=[],_0x3736f4[_0x18a766('0xbd0')]=null,_0x3736f4[_0x18a766('0x1519')]=!0x1,_0x4a41b7[_0x18a766('0x247d')](function(_0x39ce1c){var _0xbbcd03=_0x18a766;_0x39ce1c['scope']&&_0x39ce1c[_0xbbcd03('0x1789')][_0xbbcd03('0x1ff1')]||_0x39ce1c['callback']();}),_0x5c10b0&&_0x3eca35['$digest']();},0x0,!0x1));},'processTemplate':function(_0x9170ac){var _0x78c1e1=_0x15300f;return _0x32a1cf?_0x9170ac:_0x9170ac&&_0x4a272c[_0x78c1e1('0x392')](_0x9170ac)?_0x9170ac[_0x78c1e1('0x34c8')](/\{\{/g,_0x7f0e37)[_0x78c1e1('0x34c8')](/}}/g,_0x33c047):_0x9170ac;},'getParentWithPointerEvents':function(_0x251abf){var _0x450433=_0x15300f;for(var _0xfcdd68=_0x251abf[_0x450433('0x38bb')]();_0x49644d(_0xfcdd68,_0x450433('0x2cca'),'none');)_0xfcdd68=_0xfcdd68['parent']();return _0xfcdd68;},'getNearestContentElement':function(_0x58186f){var _0x150b70=_0x15300f;for(var _0x5c42a2=_0x58186f[_0x150b70('0x38bb')]()[0x0];_0x5c42a2&&_0x5c42a2!==_0x495ba3[0x0]&&_0x5c42a2!==document['body']&&_0x150b70('0x759')!==_0x5c42a2['nodeName'][_0x150b70('0x1a66')]();)_0x5c42a2=_0x5c42a2[_0x150b70('0x1378')];return _0x5c42a2;},'checkStickySupport':function(){var _0x3827f6=_0x15300f,_0x4bf61b,_0x5569ec=_0x4a272c[_0x3827f6('0x88a')](_0x3827f6('0x1644'));_0x16ca83[0x0][_0x3827f6('0x3742')][_0x3827f6('0x37f2')](_0x5569ec[0x0]);for(var _0x35616d=[_0x3827f6('0x1c7b'),_0x3827f6('0x494')],_0x1eb913=0x0;_0x1eb913<_0x35616d[_0x3827f6('0x175a')];++_0x1eb913)if(_0x5569ec[_0x3827f6('0x30a3')]({'position':_0x35616d[_0x1eb913],'top':0x0,'z-index':0x2}),_0x5569ec[_0x3827f6('0x30a3')](_0x3827f6('0x2fd5'))==_0x35616d[_0x1eb913]){_0x4bf61b=_0x35616d[_0x1eb913];break;}return _0x5569ec[_0x3827f6('0x2371')](),_0x4bf61b;},'parseAttributeBoolean':function(_0x8ba03b,_0x842332){return''===_0x8ba03b||!!_0x8ba03b&&(!0x1===_0x842332||'false'!==_0x8ba03b&&'0'!==_0x8ba03b);},'hasComputedStyle':_0x49644d,'isParentFormSubmitted':function(_0x20cc77){var _0x583924=_0x15300f,_0x4aca1b=_0x4a9e90[_0x583924('0xd2b')](_0x20cc77,'form'),_0x7f52a8=_0x4aca1b?_0x4a272c[_0x583924('0x88a')](_0x4aca1b)[_0x583924('0x19f6')]('form'):null;return!!_0x7f52a8&&_0x7f52a8[_0x583924('0xc7f')];},'animateScrollTo':function(_0x1d37e6,_0x2b8050,_0x2d0856){var _0x52b057=_0x15300f,_0x458579=_0x1d37e6['scrollTop'],_0x58a23b=_0x2b8050-_0x458579,_0x214600=_0x458579<_0x2b8050,_0x4c3dc5=_0x4a9e90[_0x52b057('0x90e')]();_0x1ad3c1(function _0x61e638(){var _0x3cd9dc=_0x52b057,_0x821ba0=(_0x4730b5=_0x2d0856||0x3e8,function(_0x4c9e4a,_0x12871a,_0x3ac0d5,_0x41a00f){if(_0x4c9e4a>_0x41a00f)return _0x12871a+_0x3ac0d5;var _0x3de484=(_0x4c9e4a/=_0x41a00f)*_0x4c9e4a;return _0x12871a+_0x3ac0d5*(_0x3de484*_0x4c9e4a*-0x2+0x3*_0x3de484);}(_0x4a9e90[_0x3cd9dc('0x90e')]()-_0x4c3dc5,_0x458579,_0x58a23b,_0x4730b5)),_0x4730b5;_0x1d37e6['scrollTop']=_0x821ba0,(_0x214600?_0x821ba0<_0x2b8050:_0x821ba0>_0x2b8050)&&_0x1ad3c1(_0x61e638);});},'uniq':function(_0x4e8017){if(_0x4e8017)return _0x4e8017['filter'](function(_0x465d3a,_0x3dbeea,_0x3bf807){var _0x131e3d=a2_0x4bfe;return _0x3bf807[_0x131e3d('0xe1c')](_0x465d3a)===_0x3dbeea;});},'getInnerHTML':function(_0x1b0146){var _0x333564=_0x15300f,_0x4b70ce=new XMLSerializer();return Array[_0x333564('0x5a')]['map'][_0x333564('0x2449')](_0x1b0146[_0x333564('0x2d7b')],function(_0x5ce60d){var _0x1b6d68=_0x333564;return _0x4b70ce[_0x1b6d68('0x350b')](_0x5ce60d);})[_0x333564('0x6a8')]('');},'getOuterHTML':function(_0x4f657a){var _0x12d628=_0x15300f;return new XMLSerializer()[_0x12d628('0x350b')](_0x4f657a);},'msie':_0x49f10c[_0x15300f('0x21a4')][_0x15300f('0x2320')],'getTouchAction':function(){var _0x33c96a=_0x15300f;for(var _0x41d378=document['createElement'](_0x33c96a('0x1917')),_0x13c2bb=['',_0x33c96a('0x242b'),_0x33c96a('0x18c3'),'MS','ms','o'],_0x781450=0x0;_0x781450<_0x13c2bb[_0x33c96a('0x175a')];_0x781450++){var _0x348ab1=_0x13c2bb[_0x781450],_0x19f4a7=_0x348ab1?_0x348ab1+_0x33c96a('0x1430'):_0x33c96a('0x316b');if(_0x4a272c[_0x33c96a('0x392d')](_0x41d378[_0x33c96a('0x14b6')][_0x19f4a7]))return _0x19f4a7;}},'getEventPath':function(_0x3f6e45){var _0x362bed=_0x15300f;for(var _0x1f5e3b=[],_0x316f1a=_0x3f6e45[_0x362bed('0x312f')];_0x316f1a;)_0x1f5e3b['push'](_0x316f1a),_0x316f1a=_0x316f1a['parentElement'];return-0x1===_0x1f5e3b[_0x362bed('0xe1c')](_0x49f10c)&&-0x1===_0x1f5e3b[_0x362bed('0xe1c')](document)&&_0x1f5e3b['push'](document),-0x1===_0x1f5e3b[_0x362bed('0xe1c')](_0x49f10c)&&_0x1f5e3b['push'](_0x49f10c),_0x1f5e3b;},'sanitize':function(_0x3a64f6){var _0x4fff6d=_0x15300f;return _0x3a64f6?_0x3a64f6[_0x4fff6d('0x34c8')](/[\\^$*+?.()|{}[]/g,_0x4fff6d('0x524')):_0x3a64f6;}};return _0x4a9e90[_0x15300f('0x2561')][_0x15300f('0xbaa')]=_0x53f1f1(_0x4a9e90),_0x4a9e90;function _0x1a48bb(_0x270e97){return _0x270e97[0x0]||_0x270e97;}}_0x4a272c[_0x3444a8('0x122c')](_0x3444a8('0x113c'))['factory'](_0x3444a8('0x2e27'),_0x527a66),_0x4a272c[_0x3444a8('0x88a')][_0x3444a8('0x5a')][_0x3444a8('0x1c34')]=_0x4a272c[_0x3444a8('0x88a')][_0x3444a8('0x5a')][_0x3444a8('0x1c34')]||function(){var _0x39cf2d=_0x3444a8;return this[_0x39cf2d('0x175a')]&&this[0x0][_0x39cf2d('0x1c34')](),this;},_0x4a272c['element'][_0x3444a8('0x5a')][_0x3444a8('0x1137')]=_0x4a272c[_0x3444a8('0x88a')][_0x3444a8('0x5a')][_0x3444a8('0x1137')]||function(){var _0x12b76a=_0x3444a8;return this[_0x12b76a('0x175a')]&&this[0x0][_0x12b76a('0x1137')](),this;};}(),_0x4a272c[_0x1fb7d4('0x122c')](_0x1fb7d4('0x113c'))[_0x1fb7d4('0x36b0')]('$$mdAnimate',['$q',_0x1fb7d4('0x1993'),_0x1fb7d4('0x35b'),'$animateCss',function(_0x36a346,_0x2aefea,_0x747cf1,_0x2f8724){return function(_0x53fd00){return function(_0x29290f,_0x11a009,_0x51d62c,_0x2f90a9,_0xe29b5b){var _0x3ccf0d;return _0x3ccf0d={'translate3d':function(_0x2cb404,_0x403f11,_0x4848e3,_0x1382a0){var _0x5eb4a7=a2_0x4bfe;return _0xe29b5b(_0x2cb404,{'from':_0x403f11,'to':_0x4848e3,'addClass':_0x1382a0['transitionInClass'],'removeClass':_0x1382a0[_0x5eb4a7('0xa27')],'duration':_0x1382a0[_0x5eb4a7('0x296c')]})['start']()[_0x5eb4a7('0x26b5')](function(){return _0x475b5c;});function _0x475b5c(_0x2470d3){var _0x54c3e7=_0x5eb4a7;return _0xe29b5b(_0x2cb404,{'to':_0x2470d3||_0x403f11,'addClass':_0x1382a0[_0x54c3e7('0xa27')],'removeClass':_0x1382a0[_0x54c3e7('0x2b68')],'duration':_0x1382a0['duration']})[_0x54c3e7('0x21ef')]();}},'waitTransitionEnd':function(_0x198eeb,_0x288c80){var _0x34a438=0xbb8;return _0x11a009(function(_0x17d8fc,_0x18d25e){var _0x577f84=a2_0x4bfe;_0x95954c((_0x288c80=_0x288c80||{})[_0x577f84('0x1d5c')])&&(_0x34a438=0x0);var _0x187eee=_0x51d62c(_0x4a367c,_0x288c80[_0x577f84('0xbd0')]||_0x34a438);function _0x4a367c(_0x569230){var _0x36606f=_0x577f84;_0x569230&&_0x569230[_0x36606f('0x312f')]!==_0x198eeb[0x0]||(_0x569230&&_0x51d62c[_0x36606f('0x31ce')](_0x187eee),_0x198eeb[_0x36606f('0x1202')](_0x2f90a9[_0x36606f('0x1ca9')][_0x36606f('0x2837')],_0x4a367c),_0x17d8fc());}function _0x95954c(_0x4b8ba5){var _0x1a915d=_0x577f84;return'0s'==(_0x4b8ba5=_0x4b8ba5||_0x49f10c[_0x1a915d('0x2a5c')](_0x198eeb[0x0]))['transitionDuration']||!_0x4b8ba5[_0x1a915d('0x20d1')]&&!_0x4b8ba5[_0x1a915d('0x1207')];}_0x198eeb['on'](_0x2f90a9[_0x577f84('0x1ca9')]['TRANSITIONEND'],_0x4a367c);});},'calculateTransformValues':function(_0x4c1483,_0x55a8b9){var _0x4c1d29=a2_0x4bfe,_0x272f46=_0x55a8b9[_0x4c1d29('0x88a')],_0x26ae9c=_0x55a8b9[_0x4c1d29('0x2dfe')];if(_0x272f46||_0x26ae9c){var _0x17953f=_0x272f46?_0x3ccf0d[_0x4c1d29('0x31cf')](_0x272f46)||_0x587000():_0x3ccf0d[_0x4c1d29('0x26d7')](_0x26ae9c),_0x159d3f=_0x3ccf0d[_0x4c1d29('0x26d7')](_0x4c1483[0x0]['getBoundingClientRect']()),_0x38d7cf=_0x3ccf0d[_0x4c1d29('0x2a42')](_0x159d3f),_0x5084ae=_0x3ccf0d[_0x4c1d29('0x2a42')](_0x17953f);return{'centerX':_0x5084ae['x']-_0x38d7cf['x'],'centerY':_0x5084ae['y']-_0x38d7cf['y'],'scaleX':Math[_0x4c1d29('0x593')](0x64*Math[_0x4c1d29('0x3230')](0.5,_0x17953f[_0x4c1d29('0x2bac')]/_0x159d3f[_0x4c1d29('0x2bac')]))/0x64,'scaleY':Math['round'](0x64*Math[_0x4c1d29('0x3230')](0.5,_0x17953f['height']/_0x159d3f[_0x4c1d29('0x28c')]))/0x64};}return{'centerX':0x0,'centerY':0x0,'scaleX':0.5,'scaleY':0.5};function _0x587000(){var _0x5dbe9a=_0x4c1d29,_0x245ed3=_0x4c1483?_0x4c1483['parent']():null,_0x39f831=_0x245ed3?_0x245ed3['parent']():null;return _0x39f831?_0x3ccf0d[_0x5dbe9a('0x31cf')](_0x39f831):null;}},'calculateZoomToOrigin':function(_0x2b6396,_0x2ff9cd){var _0x1df619=a2_0x4bfe,_0x233859='translate3d(\x20{centerX}px,\x20{centerY}px,\x200\x20)\x20scale(\x20{scaleX},\x20{scaleY}\x20)';return _0x4a272c[_0x1df619('0x1ecd')](null,_0x29290f[_0x1df619('0x1f28')],_0x233859)(_0x3ccf0d[_0x1df619('0x15d7')](_0x2b6396,_0x2ff9cd));},'calculateSlideToOrigin':function(_0x5b1d34,_0x2c5507){var _0x1cc3ba=a2_0x4bfe,_0x2e0e33=_0x1cc3ba('0x1d72');return _0x4a272c[_0x1cc3ba('0x1ecd')](null,_0x29290f[_0x1cc3ba('0x1f28')],_0x2e0e33)(_0x3ccf0d['calculateTransformValues'](_0x5b1d34,_0x2c5507));},'toCss':function(_0x437557){var _0x3cd647=a2_0x4bfe,_0x4b5a8e={},_0x2c18e9='left\x20top\x20right\x20bottom\x20width\x20height\x20x\x20y\x20min-width\x20min-height\x20max-width\x20max-height';return _0x4a272c[_0x3cd647('0x247d')](_0x437557,function(_0xedab0c,_0x5a44c0){var _0x100275=_0x3cd647;if(!_0x4a272c[_0x100275('0x294d')](_0xedab0c)){if(_0x2c18e9['indexOf'](_0x5a44c0)>=0x0)_0x4b5a8e[_0x5a44c0]=_0xedab0c+'px';else switch(_0x5a44c0){case _0x100275('0x20d1'):_0x482373(_0x5a44c0,_0x2f90a9['CSS'][_0x100275('0x3f7')],_0xedab0c);break;case _0x100275('0x1796'):_0x482373(_0x5a44c0,_0x2f90a9[_0x100275('0x1ca9')]['TRANSFORM'],_0xedab0c);break;case _0x100275('0xd90'):_0x482373(_0x5a44c0,_0x2f90a9[_0x100275('0x1ca9')][_0x100275('0x32f8')],_0xedab0c);break;case _0x100275('0x26fd'):_0x4b5a8e[_0x100275('0x26fd')]=_0xedab0c;}}}),_0x4b5a8e;function _0x482373(_0x14e424,_0x57e82c,_0x39e8aa){var _0x342ad5=_0x3cd647;_0x4a272c[_0x342ad5('0x247d')](_0x57e82c[_0x342ad5('0x23ee')]('\x20'),function(_0x54245b){_0x4b5a8e[_0x54245b]=_0x39e8aa;});}},'toTransformCss':function(_0x33aca4,_0x6874ce,_0x489552){var _0x31ca2d=a2_0x4bfe,_0x143542={};return _0x4a272c[_0x31ca2d('0x247d')](_0x2f90a9[_0x31ca2d('0x1ca9')]['TRANSFORM'][_0x31ca2d('0x23ee')]('\x20'),function(_0x5d53fa){_0x143542[_0x5d53fa]=_0x33aca4;}),_0x6874ce&&(_0x489552=_0x489552||_0x31ca2d('0x276a'),_0x143542[_0x31ca2d('0x20d1')]=_0x489552),_0x143542;},'copyRect':function(_0x4cd152,_0x4f7566){var _0x790238=a2_0x4bfe;return _0x4cd152?(_0x4f7566=_0x4f7566||{},_0x4a272c[_0x790238('0x247d')](_0x790238('0x1ccb')[_0x790238('0x23ee')]('\x20'),function(_0x5ce749){var _0x330831=_0x790238;_0x4f7566[_0x5ce749]=Math[_0x330831('0x593')](_0x4cd152[_0x5ce749]);}),_0x4f7566[_0x790238('0x2bac')]=_0x4f7566[_0x790238('0x2bac')]||_0x4f7566[_0x790238('0x1e0d')]-_0x4f7566[_0x790238('0x1d75')],_0x4f7566[_0x790238('0x28c')]=_0x4f7566[_0x790238('0x28c')]||_0x4f7566['bottom']-_0x4f7566[_0x790238('0x361a')],_0x4f7566):null;},'clientRect':function(_0x4edfd1){var _0x1d718d=a2_0x4bfe,_0x9f0ea8,_0x5e8bef=_0x4a272c[_0x1d718d('0x88a')](_0x4edfd1)[0x0][_0x1d718d('0x2748')]();return(_0x9f0ea8=_0x5e8bef)&&_0x9f0ea8[_0x1d718d('0x2bac')]>0x0&&_0x9f0ea8[_0x1d718d('0x28c')]>0x0?_0x3ccf0d[_0x1d718d('0x26d7')](_0x5e8bef):null;},'centerPointFor':function(_0x4df18b){var _0x4c760d=a2_0x4bfe;return _0x4df18b?{'x':Math[_0x4c760d('0x593')](_0x4df18b[_0x4c760d('0x1d75')]+_0x4df18b['width']/0x2),'y':Math[_0x4c760d('0x593')](_0x4df18b['top']+_0x4df18b[_0x4c760d('0x28c')]/0x2)}:{'x':0x0,'y':0x0};}};}(_0x53fd00,_0x36a346,_0x2aefea,_0x747cf1,_0x2f8724);};}]),_0x4a272c['version']['minor']>=0x4?_0x4a272c[_0x1fb7d4('0x122c')](_0x1fb7d4('0xdc0'),[]):function(){var _0x2207b4=_0x1fb7d4,_0x52e7a3=_0x4a272c[_0x2207b4('0x247d')],_0x114a6e=_0x4a272c[_0x2207b4('0x392d')](document[_0x2207b4('0x207a')][_0x2207b4('0x14b6')][_0x2207b4('0x6b')]),_0x2174c9=_0x114a6e?_0x2207b4('0x83'):'',_0x4ae5a5=(_0x114a6e?_0x2207b4('0x1365'):'')+'transitionend',_0x215057=(_0x114a6e?'webkitAnimationEnd\x20':'')+_0x2207b4('0x1fb4'),_0xeb2038=['$q',_0x2207b4('0x2e18'),function(_0x44a490,_0x5b6f27){var _0xc149b0=_0x2207b4;function _0x5d222a(_0x328542){var _0x51e55c=a2_0x4bfe;this[_0x51e55c('0x2195')](_0x328542),this[_0x51e55c('0x37b6')]=[],this[_0x51e55c('0x1fa5')]=_0x5b6f27(),this[_0x51e55c('0x14cc')]=0x0;}return _0x5d222a['prototype']={'setHost':function(_0x355232){var _0x380b31=a2_0x4bfe;this[_0x380b31('0x2bea')]=_0x355232||{};},'done':function(_0x492740){var _0x22337b=a2_0x4bfe;0x2===this['_state']?_0x492740():this['_doneCallbacks'][_0x22337b('0x1a90')](_0x492740);},'progress':_0x4a272c['noop'],'getPromise':function(){var _0x513e74=a2_0x4bfe;if(!this[_0x513e74('0x34a6')]){var _0x189c0f=this;this[_0x513e74('0x34a6')]=_0x44a490(function(_0x1a44e9,_0x1dce14){var _0x424a68=_0x513e74;_0x189c0f[_0x424a68('0x3530')](function(_0x38107a){!0x1===_0x38107a?_0x1dce14():_0x1a44e9();});});}return this[_0x513e74('0x34a6')];},'then':function(_0x405a4f,_0x37086e){var _0x17caa9=a2_0x4bfe;return this[_0x17caa9('0x2f0d')]()[_0x17caa9('0x26b5')](_0x405a4f,_0x37086e);},'catch':function(_0x585559){var _0x258663=a2_0x4bfe;return this[_0x258663('0x2f0d')]()[_0x258663('0x2287')](_0x585559);},'finally':function(_0x4d1df7){var _0x1e37c3=a2_0x4bfe;return this['getPromise']()[_0x1e37c3('0x2879')](_0x4d1df7);},'pause':function(){var _0x1dbe7b=a2_0x4bfe;this[_0x1dbe7b('0x2bea')]['pause']&&this[_0x1dbe7b('0x2bea')][_0x1dbe7b('0x1b13')]();},'resume':function(){var _0x1fd228=a2_0x4bfe;this[_0x1fd228('0x2bea')][_0x1fd228('0x13f1')]&&this[_0x1fd228('0x2bea')]['resume']();},'end':function(){var _0xe94af6=a2_0x4bfe;this['host'][_0xe94af6('0x20ae')]&&this[_0xe94af6('0x2bea')][_0xe94af6('0x20ae')](),this[_0xe94af6('0x639')](!0x0);},'cancel':function(){var _0x2c6ba7=a2_0x4bfe;this[_0x2c6ba7('0x2bea')][_0x2c6ba7('0x31ce')]&&this[_0x2c6ba7('0x2bea')][_0x2c6ba7('0x31ce')](),this['_resolve'](!0x1);},'complete':function(_0x545c2b){var _0xbc4593=a2_0x4bfe,_0x3d87b0=this;0x0===_0x3d87b0['_state']&&(_0x3d87b0['_state']=0x1,_0x3d87b0[_0xbc4593('0x1fa5')](function(){var _0x8c6036=_0xbc4593;_0x3d87b0[_0x8c6036('0x639')](_0x545c2b);}));},'_resolve':function(_0x3cd423){var _0x4fadf9=a2_0x4bfe;0x2!==this[_0x4fadf9('0x14cc')]&&(_0x52e7a3(this[_0x4fadf9('0x37b6')],function(_0x312cdb){_0x312cdb(_0x3cd423);}),this['_doneCallbacks'][_0x4fadf9('0x175a')]=0x0,this['_state']=0x2);}},_0x5d222a[_0xc149b0('0x130c')]=function(_0x53b24c,_0x35f03d){var _0xff5d7b=0x0,_0x7a0fc=!0x0;function _0x144e57(_0x10e2a5){var _0x26e078=a2_0x4bfe;_0x7a0fc=_0x7a0fc&&_0x10e2a5,++_0xff5d7b===_0x53b24c[_0x26e078('0x175a')]&&_0x35f03d(_0x7a0fc);}_0x52e7a3(_0x53b24c,function(_0x3e3eac){var _0x4e3aed=a2_0x4bfe;_0x3e3eac[_0x4e3aed('0x3530')](_0x144e57);});},_0x5d222a;}];function _0x56b23a(_0x8a4e96){var _0xe72f=_0x2207b4;return _0x8a4e96[_0xe72f('0x34c8')](/-[a-z]/g,function(_0xe0b51f){var _0x3f8f74=_0xe72f;return _0xe0b51f[_0x3f8f74('0x40')](0x1)[_0x3f8f74('0x1a66')]();});}_0x4a272c[_0x2207b4('0x122c')](_0x2207b4('0xdc0'),[])[_0x2207b4('0x36b0')](_0x2207b4('0x792'),[_0x2207b4('0x151'),function(_0x4b6e2b){return function(){var _0x5ea8a8=a2_0x4bfe;return _0x4b6e2b[0x0][_0x5ea8a8('0x3742')][_0x5ea8a8('0x1473')]+0x1;};}])['factory'](_0x2207b4('0x49d'),_0xeb2038)['factory'](_0x2207b4('0x2e18'),[_0x2207b4('0x3490'),function(_0x38e007){return function(){var _0xaa21c1=!0x1;return _0x38e007(function(){_0xaa21c1=!0x0;}),function(_0x4c9986){_0xaa21c1?_0x4c9986():_0x38e007(_0x4c9986);};};}])[_0x2207b4('0x36b0')](_0x2207b4('0xc2c'),[_0x2207b4('0x398e'),'$$rAF',_0x2207b4('0x49d'),_0x2207b4('0x792'),_0x2207b4('0x2dc3'),_0x2207b4('0x1993'),_0x2207b4('0x2a64'),function(_0x47981d,_0x1313af,_0x1865e7,_0x677092,_0x1374f0,_0x4398cb,_0x468daa){function _0x4e8a08(_0x5e09fb,_0x157d05){var _0x34a08b=a2_0x4bfe;_0x157d05[_0x34a08b('0x2dc8')]&&(_0x1374f0[_0x34a08b('0x2dc8')](_0x5e09fb,_0x157d05[_0x34a08b('0x2dc8')]),_0x157d05[_0x34a08b('0x2dc8')]=null),_0x157d05[_0x34a08b('0x3a0')]&&(_0x1374f0[_0x34a08b('0x3a0')](_0x5e09fb,_0x157d05[_0x34a08b('0x3a0')]),_0x157d05['removeClass']=null);}function _0x3ebf81(_0x2ea568){var _0x4ebcbf=0x0,_0x4346f5=(_0x2ea568||'')['split'](/\s*,\s*/);return _0x52e7a3(_0x4346f5,function(_0x21e4df){var _0x4ca627=a2_0x4bfe;'s'==_0x21e4df['charAt'](_0x21e4df[_0x4ca627('0x175a')]-0x1)&&(_0x21e4df=_0x21e4df[_0x4ca627('0x92')](0x0,_0x21e4df[_0x4ca627('0x175a')]-0x1)),_0x21e4df=parseFloat(_0x21e4df)||0x0,_0x4ebcbf=_0x4ebcbf?Math['max'](_0x21e4df,_0x4ebcbf):_0x21e4df;}),_0x4ebcbf;}var _0x9ffbdc,_0x3cd0f8=[];function _0x504ff7(_0x1a661d,_0x18f535){var _0x796dc4=a2_0x4bfe;_0x18f535['from']&&(_0x1a661d[_0x796dc4('0x30a3')](_0x18f535['from']),_0x18f535[_0x796dc4('0x2f5')]=null);}function _0x2994f2(_0x28d41a,_0x3119d0){_0x3119d0['to']&&(_0x28d41a['css'](_0x3119d0['to']),_0x3119d0['to']=null);}function _0x5e82df(_0x3449fb){var _0x5b3e31=a2_0x4bfe;for(var _0x2ffb3=0x0;_0x2ffb3<_0x3449fb[_0x5b3e31('0x175a')];_0x2ffb3++)if(0x1===_0x3449fb[_0x2ffb3][_0x5b3e31('0x3605')])return _0x3449fb[_0x2ffb3];}function _0xa654d8(_0x49be94,_0x4bb99d){var _0x47d684=a2_0x4bfe,_0x2632dc=_0x5e82df(_0x49be94),_0x764238=_0x56b23a(_0x2174c9+_0x47d684('0x2c2'));_0x2632dc['style'][_0x764238]=_0x4bb99d?_0x47d684('0x54d'):'';}return function(_0xa75961,_0x5165e1){var _0x4947fa=a2_0x4bfe,_0x294f64=[],_0x4e023a=_0x5e82df(_0xa75961),_0x3f967c=_0x4e023a&&_0x468daa[_0x4947fa('0x25f9')](),_0x111e1d=!0x1,_0xd7adcb=!0x1;_0x3f967c&&(_0x5165e1[_0x4947fa('0x249c')]&&_0x294f64[_0x4947fa('0x1a90')]([_0x2174c9+_0x4947fa('0x20d1'),_0x5165e1[_0x4947fa('0x249c')]]),_0x5165e1[_0x4947fa('0x3041')]&&_0x294f64[_0x4947fa('0x1a90')]([_0x2174c9+_0x4947fa('0xa41'),_0x5165e1['keyframeStyle']]),_0x5165e1[_0x4947fa('0x33a3')]&&_0x294f64[_0x4947fa('0x1a90')]([_0x2174c9+'transition-delay',_0x5165e1[_0x4947fa('0x33a3')]+'s']),_0x5165e1['duration']&&_0x294f64[_0x4947fa('0x1a90')]([_0x2174c9+_0x4947fa('0x1c12'),_0x5165e1['duration']+'s']),_0x111e1d=_0x5165e1[_0x4947fa('0x3041')]||_0x5165e1['to']&&(_0x5165e1['duration']>0x0||_0x5165e1[_0x4947fa('0x249c')]),_0xd7adcb=!!_0x5165e1[_0x4947fa('0x2dc8')]||!!_0x5165e1['removeClass'],_0xa654d8(_0xa75961,!0x0));var _0x3b2df0=_0x3f967c&&(_0x111e1d||_0xd7adcb);_0x504ff7(_0xa75961,_0x5165e1);var _0x43a19a,_0x1e6e4a,_0x29852b=!0x1;return{'close':_0x47981d['close'],'start':function(){var _0x56beb7=_0x4947fa,_0x306135,_0x3f2ce9=new _0x1865e7();return _0x306135=function(){var _0x347694=a2_0x4bfe;if(_0xa654d8(_0xa75961,!0x1),!_0x3b2df0)return _0x51a2a8();_0x52e7a3(_0x294f64,function(_0x34cef0){var _0x118aca=_0x34cef0[0x0],_0x3185a0=_0x34cef0[0x1];_0x4e023a['style'][_0x56b23a(_0x118aca)]=_0x3185a0;}),_0x4e8a08(_0xa75961,_0x5165e1);var _0x9e219=function(_0x15db7f){var _0x4f26b6=a2_0x4bfe,_0x2df9dc=_0x5e82df(_0x15db7f),_0x5e8719=_0x47981d[_0x4f26b6('0x2a5c')](_0x2df9dc),_0x3f43ed=_0x3ebf81(_0x5e8719[_0x327309('transitionDuration')]),_0x3c9c2b=_0x3ebf81(_0x5e8719[_0x327309('animationDuration')]),_0x6dd368=_0x3ebf81(_0x5e8719[_0x327309(_0x4f26b6('0x383a'))]),_0x447718=_0x3ebf81(_0x5e8719[_0x327309(_0x4f26b6('0x2853'))]);_0x3c9c2b*=parseInt(_0x5e8719[_0x327309(_0x4f26b6('0x2e7f'))],0xa)||0x1;var _0x3097c3=Math[_0x4f26b6('0x2780')](_0x3c9c2b,_0x3f43ed),_0x1a38cb=Math[_0x4f26b6('0x2780')](_0x447718,_0x6dd368);return{'duration':_0x3097c3,'delay':_0x1a38cb,'animationDuration':_0x3c9c2b,'transitionDuration':_0x3f43ed,'animationDelay':_0x447718,'transitionDelay':_0x6dd368};function _0x327309(_0xeddb11){var _0x15fe8b=_0x4f26b6;return _0x114a6e?_0x15fe8b('0x267b')+_0xeddb11[_0x15fe8b('0x40')](0x0)[_0x15fe8b('0x1a66')]()+_0xeddb11[_0x15fe8b('0x3102')](0x1):_0xeddb11;}}(_0xa75961);if(0x0===_0x9e219['duration'])return _0x51a2a8();var _0x2e71e8=[];_0x5165e1[_0x347694('0x2cdf')]&&(_0x9e219['transitionDuration']&&_0x2e71e8['push']([_0x2174c9+_0x347694('0x39b'),_0x5165e1[_0x347694('0x2cdf')]]),_0x9e219[_0x347694('0xe5a')]&&_0x2e71e8[_0x347694('0x1a90')]([_0x2174c9+_0x347694('0x288c'),_0x5165e1[_0x347694('0x2cdf')]])),_0x5165e1[_0x347694('0x33a3')]&&_0x9e219[_0x347694('0x2853')]&&_0x2e71e8['push']([_0x2174c9+'animation-delay',_0x5165e1[_0x347694('0x33a3')]+'s']),_0x5165e1['duration']&&_0x9e219[_0x347694('0xe5a')]&&_0x2e71e8['push']([_0x2174c9+_0x347694('0x692'),_0x5165e1['duration']+'s']),_0x52e7a3(_0x2e71e8,function(_0x888f1f){var _0x2a4071=_0x347694,_0x9d3d52=_0x888f1f[0x0],_0x42abde=_0x888f1f[0x1];_0x4e023a[_0x2a4071('0x14b6')][_0x56b23a(_0x9d3d52)]=_0x42abde,_0x294f64[_0x2a4071('0x1a90')](_0x888f1f);});var _0xd4672f=0x3e8*_0x9e219[_0x347694('0x33a3')],_0x2b280c=_0x9e219[_0x347694('0x296c')],_0x50faf2=0x3e8*_0x2b280c,_0x341bce=Date[_0x347694('0x90e')]();_0x43a19a=[],_0x9e219['transitionDuration']&&_0x43a19a[_0x347694('0x1a90')](_0x4ae5a5),_0x9e219[_0x347694('0xe5a')]&&_0x43a19a[_0x347694('0x1a90')](_0x215057),_0x43a19a=_0x43a19a[_0x347694('0x6a8')]('\x20'),_0x1e6e4a=function(_0x2a84ea){var _0x45edf8=_0x347694;_0x2a84ea[_0x45edf8('0x16c5')]();var _0x14961a=_0x2a84ea['originalEvent']||_0x2a84ea,_0x181a50=_0x14961a[_0x45edf8('0x1722')]||Date[_0x45edf8('0x90e')](),_0x577cd9=parseFloat(_0x14961a[_0x45edf8('0x2efa')]['toFixed'](0x3));Math[_0x45edf8('0x2780')](_0x181a50-_0x341bce,0x0)>=_0xd4672f&&_0x577cd9>=_0x2b280c&&_0x51a2a8();},_0xa75961['on'](_0x43a19a,_0x1e6e4a),_0x2994f2(_0xa75961,_0x5165e1),_0x4398cb(_0x51a2a8,_0xd4672f+1.5*_0x50faf2,!0x1);},_0x9ffbdc&&_0x9ffbdc(),_0x3cd0f8[_0x56beb7('0x1a90')](_0x306135),_0x9ffbdc=_0x1313af(function(){var _0x2eccc6=_0x56beb7;_0x9ffbdc=null;for(var _0x19505b=_0x677092(),_0x3f7089=0x0;_0x3f7089<_0x3cd0f8[_0x2eccc6('0x175a')];_0x3f7089++)_0x3cd0f8[_0x3f7089](_0x19505b);_0x3cd0f8[_0x2eccc6('0x175a')]=0x0;}),_0x3f2ce9;function _0x51a2a8(){var _0x399dc8=_0x56beb7;if(!_0x29852b)return _0x29852b=!0x0,_0x43a19a&&_0x1e6e4a&&_0xa75961[_0x399dc8('0x1202')](_0x43a19a,_0x1e6e4a),_0x4e8a08(_0xa75961,_0x5165e1),function(_0x5ae330,_0x28fc41){_0x504ff7(_0x5ae330,_0x28fc41),_0x2994f2(_0x5ae330,_0x28fc41);}(_0xa75961,_0x5165e1),_0x52e7a3(_0x294f64,function(_0x5d0edf){var _0x3c5123=_0x399dc8;_0x4e023a[_0x3c5123('0x14b6')][_0x56b23a(_0x5d0edf[0x0])]='';}),_0x3f2ce9[_0x399dc8('0x3890')](!0x0),_0x3f2ce9;}}};};}]);}(),function(){var _0x521584=_0x1fb7d4;function _0x56eb38(_0xb99c51,_0x58a4f5,_0x1360ea,_0x59d195){var _0x1f2c7f=a2_0x4bfe,_0x3fde95=this[_0x1f2c7f('0x153b')];return{'expect':_0x160879,'expectAsync':_0x523811,'expectWithText':function(_0x179154,_0x5927b3){var _0x4eb4ef=_0x1f2c7f,_0x4e2ebf=_0x572ada(_0x179154)||'';_0x4e2ebf[_0x4eb4ef('0xe1c')](_0x59d195['startSymbol']())>-0x1?_0x523811(_0x179154,_0x5927b3,function(){return _0x572ada(_0x179154);}):_0x160879(_0x179154,_0x5927b3,_0x4e2ebf);},'expectWithoutText':function(_0x3dfe39,_0x54515e){var _0x420d57=_0x1f2c7f,_0x11bf7b=_0x572ada(_0x3dfe39);_0x11bf7b[_0x420d57('0xe1c')](_0x59d195['startSymbol']())>-0x1||_0x11bf7b||_0x160879(_0x3dfe39,_0x54515e,_0x11bf7b);},'getText':_0x572ada,'hasAriaLabel':_0x62418e,'parentHasAriaLabel':function _0x5f15db(_0x82fb6d,_0x1bcbc2){var _0x4620a1=_0x1f2c7f;_0x1bcbc2=_0x1bcbc2||0x1;var _0x370c13=_0x4a272c[_0x4620a1('0x88a')](_0x82fb6d)[0x0]||_0x82fb6d;if(!_0x370c13[_0x4620a1('0x1378')])return!0x1;if(function(_0x5ea24b){var _0x1c8ccb=_0x4620a1;if(!_0x62418e(_0x5ea24b))return!0x1;if(_0x5ea24b[_0x1c8ccb('0x2052')](_0x1c8ccb('0x38ba')))switch(_0x5ea24b['getAttribute'](_0x1c8ccb('0x38ba'))[_0x1c8ccb('0x856')]()){case _0x1c8ccb('0x12b2'):case _0x1c8ccb('0x4f5'):case _0x1c8ccb('0x12df'):case'grid':case _0x1c8ccb('0x2c53'):case _0x1c8ccb('0x59a'):case _0x1c8ccb('0xe46'):case'marquee':case'menu':case _0x1c8ccb('0x1d9f'):case _0x1c8ccb('0x184e'):case _0x1c8ccb('0x3538'):case _0x1c8ccb('0x9b8'):case _0x1c8ccb('0x27e6'):case _0x1c8ccb('0x2867'):case _0x1c8ccb('0x149b'):return!0x1;}switch(_0x5ea24b[_0x1c8ccb('0x742')][_0x1c8ccb('0x856')]()){case'abbr':case _0x1c8ccb('0x1304'):case'address':case _0x1c8ccb('0x2ff5'):case _0x1c8ccb('0x212'):case'b':case'bdi':case _0x1c8ccb('0x1e6'):case _0x1c8ccb('0x312c'):case _0x1c8ccb('0x11fc'):case'br':case _0x1c8ccb('0x203a'):case'caption':case _0x1c8ccb('0x159f'):case'cite':case _0x1c8ccb('0xdd2'):case _0x1c8ccb('0x30a6'):case _0x1c8ccb('0xcee'):case'dd':case _0x1c8ccb('0x1da5'):case _0x1c8ccb('0x2311'):case'dir':case'div':case'dl':case'em':case _0x1c8ccb('0x2749'):case'fieldset':case _0x1c8ccb('0x13df'):case _0x1c8ccb('0x825'):case'h1':case'h2':case'h3':case'h4':case'h5':case'h6':case _0x1c8ccb('0x69c'):case _0x1c8ccb('0x1fb7'):case'i':case'ins':case _0x1c8ccb('0x75e'):case'kbd':case'keygen':case'label':case _0x1c8ccb('0x3704'):case'li':case'map':case'mark':case _0x1c8ccb('0x2d7e'):case _0x1c8ccb('0x1a8'):case'ol':case _0x1c8ccb('0x236c'):case _0x1c8ccb('0x11ed'):case'presentation':case'q':case'rt':case _0x1c8ccb('0x2597'):case _0x1c8ccb('0x2bb1'):case _0x1c8ccb('0xe52'):case'source':case _0x1c8ccb('0xc6e'):case'status':case _0x1c8ccb('0x30eb'):case _0x1c8ccb('0x2a60'):case _0x1c8ccb('0x1708'):case _0x1c8ccb('0x20c'):case'svg':case _0x1c8ccb('0xb7c'):case'td':case'th':case _0x1c8ccb('0x1850'):case _0x1c8ccb('0x38e7'):case'tr':case _0x1c8ccb('0x98b'):case'tt':case'ul':case'var':return!0x1;}return!0x0;}(_0x370c13[_0x4620a1('0x1378')]))return!0x0;if(--_0x1bcbc2)return _0x5f15db(_0x370c13[_0x4620a1('0x1378')],_0x1bcbc2);return!0x1;}};function _0x160879(_0x10e981,_0x1d2e65,_0x264072){var _0x4fe037=_0x1f2c7f,_0x45be9c=_0x4a272c[_0x4fe037('0x88a')](_0x10e981)[0x0]||_0x10e981;!_0x45be9c||_0x45be9c['hasAttribute'](_0x1d2e65)&&0x0!==_0x45be9c[_0x4fe037('0x10ba')](_0x1d2e65)[_0x4fe037('0x175a')]||function(_0x46f099,_0xa20dd5){var _0x17d6ba=_0x4fe037,_0x1ddc75=_0x46f099['hasChildNodes'](),_0x4f5c8a=!0x1;function _0x1ff705(_0x267bc6){var _0x21289c=a2_0x4bfe;return _0x21289c('0xf01')===(_0x267bc6[_0x21289c('0x12a7')]?_0x267bc6[_0x21289c('0x12a7')]:_0x1360ea[_0x21289c('0x2a5c')](_0x267bc6))[_0x21289c('0xa85')];}if(_0x1ddc75)for(var _0x403cee=_0x46f099[_0x17d6ba('0x2d7b')],_0x1db87e=0x0;_0x1db87e<_0x403cee[_0x17d6ba('0x175a')];_0x1db87e++){var _0x22a750=_0x403cee[_0x1db87e];0x1===_0x22a750['nodeType']&&_0x22a750[_0x17d6ba('0x2052')](_0xa20dd5)&&(_0x1ff705(_0x22a750)||(_0x4f5c8a=!0x0));}return _0x4f5c8a;}(_0x45be9c,_0x1d2e65)||((_0x264072=_0x4a272c[_0x4fe037('0x392')](_0x264072)?_0x264072[_0x4fe037('0x2ec5')]():'')[_0x4fe037('0x175a')]?_0x10e981['attr'](_0x1d2e65,_0x264072):_0x3fde95&&_0x58a4f5[_0x4fe037('0x8fa')](_0x4fe037('0x15f5'),_0x1d2e65,_0x4fe037('0x2f6f'),_0x45be9c));}function _0x523811(_0x5f1c3e,_0x5a3ba1,_0x30128b){_0xb99c51(function(){_0x160879(_0x5f1c3e,_0x5a3ba1,_0x30128b());});}function _0x572ada(_0x8c284a){var _0x5ea8c2=_0x1f2c7f;_0x8c284a=_0x8c284a[0x0]||_0x8c284a;for(var _0x22a68f,_0x408526=document[_0x5ea8c2('0x2b90')](_0x8c284a,NodeFilter[_0x5ea8c2('0x2027')],null,!0x1),_0x2e97ac='';_0x22a68f=_0x408526[_0x5ea8c2('0x2b0c')]();)_0x3efbfd(_0x22a68f)||(_0x2e97ac+=_0x22a68f[_0x5ea8c2('0x2c5f')]);return _0x2e97ac[_0x5ea8c2('0x2ec5')]()||'';function _0x3efbfd(_0x4b2079){var _0x383120=_0x5ea8c2;for(;_0x4b2079[_0x383120('0x1378')]&&(_0x4b2079=_0x4b2079[_0x383120('0x1378')])!==_0x8c284a;)if(_0x4b2079['getAttribute']&&'true'===_0x4b2079['getAttribute'](_0x383120('0x384b')))return!0x0;}}function _0x62418e(_0x3a09b4){var _0x3bc8db=_0x1f2c7f,_0x46de5f=_0x4a272c[_0x3bc8db('0x88a')](_0x3a09b4)[0x0]||_0x3a09b4;return!!_0x46de5f[_0x3bc8db('0x2052')]&&(_0x46de5f[_0x3bc8db('0x2052')]('aria-label')||_0x46de5f[_0x3bc8db('0x2052')]('aria-labelledby')||_0x46de5f[_0x3bc8db('0x2052')](_0x3bc8db('0x3706')));}}_0x56eb38[_0x521584('0x28c9')]=[_0x521584('0x3490'),'$log',_0x521584('0x398e'),_0x521584('0x2476')],_0x4a272c[_0x521584('0x122c')](_0x521584('0x113c'))[_0x521584('0x210d')](_0x521584('0x1a2f'),function(){var _0x1ca78f=_0x521584,_0x153106={'showWarnings':!0x0};return{'disableWarnings':function(){var _0x2a79fa=a2_0x4bfe;_0x153106[_0x2a79fa('0x153b')]=!0x1;},'$get':[_0x1ca78f('0x3490'),_0x1ca78f('0x38a3'),_0x1ca78f('0x398e'),_0x1ca78f('0x2476'),function(_0x33b797,_0x49fbcd,_0x165be9,_0x4bc4f2){var _0x2ca7d2=_0x1ca78f;return _0x56eb38[_0x2ca7d2('0x177a')](_0x153106,arguments);}]};});}(),function(){var _0x48c21d=_0x1fb7d4;function _0x5d16e6(_0x368054){var _0x106bfb=a2_0x4bfe,_0x2ccbec=!0x1;function _0x340edb(_0x196736,_0x3643c9,_0x279d29,_0x31e469,_0x567ee0){var _0x2e76cb=a2_0x4bfe;this['$q']=_0x196736,this['$templateRequest']=_0x3643c9,this['$injector']=_0x279d29,this[_0x2e76cb('0x2078')]=_0x31e469,this[_0x2e76cb('0x500')]=_0x567ee0;}this[_0x106bfb('0x37d2')]=function(_0xec933c){return _0x4a272c['isDefined'](_0xec933c)?(_0x2ccbec=_0xec933c,this):_0x2ccbec;},this[_0x106bfb('0x2b72')]=['$q',_0x106bfb('0x89e'),_0x106bfb('0x345b'),_0x106bfb('0x2078'),_0x106bfb('0x500'),function(_0xb5a620,_0x162ed2,_0x263033,_0x1d7b92,_0x440cb2){return new _0x340edb(_0xb5a620,_0x162ed2,_0x263033,_0x1d7b92,_0x440cb2);}],_0x340edb[_0x106bfb('0x5a')][_0x106bfb('0xd1b')]=function(_0x17acff){var _0x19b93b=_0x106bfb;return _0x17acff['contentElement']?this['_prepareContentElement'](_0x17acff):this[_0x19b93b('0xd93')](_0x17acff);},_0x340edb[_0x106bfb('0x5a')][_0x106bfb('0x2a54')]=function(_0x2c027a){var _0xaba9ca=_0x106bfb,_0x56c692=this['_fetchContentElement'](_0x2c027a);return this['$q']['resolve']({'element':_0x56c692[_0xaba9ca('0x88a')],'cleanup':_0x56c692[_0xaba9ca('0x1619')],'locals':{},'link':function(){var _0x1ac6c0=_0xaba9ca;return _0x56c692[_0x1ac6c0('0x88a')];}});},_0x340edb[_0x106bfb('0x5a')][_0x106bfb('0xd93')]=function(_0x6af108){var _0x57f3b3=_0x106bfb,_0x45f0b2=this,_0x5be8da=_0x6af108[_0x57f3b3('0x1bd9')],_0x22c090=_0x6af108[_0x57f3b3('0x2ea9')]||'',_0x2bd46a=_0x4a272c[_0x57f3b3('0x237f')]({},_0x6af108[_0x57f3b3('0x16ab')]),_0x4d8756=_0x4a272c[_0x57f3b3('0x237f')]({},_0x6af108[_0x57f3b3('0x2fb0')]),_0x2437f8=_0x6af108[_0x57f3b3('0xa')]||_0x4a272c['identity'];return _0x4a272c[_0x57f3b3('0x247d')](_0x2bd46a,function(_0x43d06f,_0x3e6077){var _0x187102=_0x57f3b3;_0x4a272c[_0x187102('0x392')](_0x43d06f)?_0x2bd46a[_0x3e6077]=_0x45f0b2[_0x187102('0x345b')]['get'](_0x43d06f):_0x2bd46a[_0x3e6077]=_0x45f0b2['$injector'][_0x187102('0x3845')](_0x43d06f);}),_0x4a272c[_0x57f3b3('0x237f')](_0x2bd46a,_0x4d8756),_0x2bd46a[_0x57f3b3('0x12bd')]=_0x5be8da?this[_0x57f3b3('0x89e')](_0x5be8da):this['$q'][_0x57f3b3('0x36d1')](_0x22c090),this['$q'][_0x57f3b3('0x130c')](_0x2bd46a)['then'](function(_0x4d928c){var _0x3809bb=_0x57f3b3,_0xf3084f=_0x2437f8(_0x4d928c['$$ngTemplate'],_0x6af108),_0x589d7c=_0x6af108['element']||_0x4a272c['element'](_0x3809bb('0x1644'))[_0x3809bb('0x1fb7')](_0xf3084f[_0x3809bb('0x2ec5')]())[_0x3809bb('0x2f8b')]();return _0x45f0b2[_0x3809bb('0x1a52')](_0x4d928c,_0x589d7c,_0x6af108);});},_0x340edb['prototype'][_0x106bfb('0x1a52')]=function(_0x1970a0,_0x2dbaaa,_0x3edc1b){var _0x161a26=_0x106bfb,_0x4cf6f5=this,_0x1e5a31=this['$compile'](_0x2dbaaa),_0x3a40e2={'element':_0x2dbaaa,'cleanup':_0x2dbaaa[_0x161a26('0x2371')][_0x161a26('0x1ecd')](_0x2dbaaa),'locals':_0x1970a0,'link':function(_0x1259d6){var _0x5a1200=_0x161a26;if(_0x1970a0[_0x5a1200('0x1868')]=_0x1259d6,_0x3edc1b[_0x5a1200('0x19f6')]){var _0x4c9802=_0x4a272c[_0x5a1200('0x237f')]({},_0x1970a0,{'$element':_0x2dbaaa}),_0x379a8e=_0x4cf6f5['_createController'](_0x3edc1b,_0x4c9802,_0x1970a0);_0x4a272c[_0x5a1200('0x1e34')](_0x379a8e[_0x5a1200('0x26e9')])&&_0x1259d6[_0x5a1200('0x1db8')](_0x5a1200('0x2f34'),function(){_0x4a272c['isFunction'](_0x379a8e['$onDestroy'])&&_0x379a8e['$onDestroy']();}),_0x2dbaaa['data'](_0x5a1200('0x1832'),_0x379a8e),_0x2dbaaa['children']()[_0x5a1200('0xcee')](_0x5a1200('0x1832'),_0x379a8e),_0x3a40e2[_0x5a1200('0x19f6')]=_0x379a8e;}return _0x1e5a31(_0x1259d6);}};return _0x3a40e2;},_0x340edb[_0x106bfb('0x5a')]['_createController']=function(_0x34b631,_0x42927a,_0x10ba6a){var _0x4a1d37=_0x106bfb,_0x278d5c;if(!_0x2ccbec||(_0x4a1d37('0x19aa')==typeof _0x368054[_0x4a1d37('0xf77')]?_0x368054[_0x4a1d37('0xf77')]():0x1===_0x4a272c[_0x4a1d37('0x2ee1')][_0x4a1d37('0xe53')]&&_0x4a272c[_0x4a1d37('0x2ee1')]['minor']<0x6)){var _0x120a1a=this[_0x4a1d37('0x500')](_0x34b631[_0x4a1d37('0x19f6')],_0x42927a,!0x0);_0x34b631[_0x4a1d37('0x2a48')]&&_0x4a272c['extend'](_0x120a1a[_0x4a1d37('0x93a')],_0x10ba6a),_0x278d5c=_0x120a1a();}else _0x278d5c=this['$controller'](_0x34b631['controller'],_0x42927a),_0x34b631[_0x4a1d37('0x2a48')]&&_0x4a272c['extend'](_0x278d5c,_0x10ba6a);return _0x34b631[_0x4a1d37('0x4ce')]&&(_0x42927a[_0x4a1d37('0x1868')][_0x34b631[_0x4a1d37('0x4ce')]]=_0x278d5c),_0x4a272c[_0x4a1d37('0x1e34')](_0x278d5c[_0x4a1d37('0x3825')])&&_0x278d5c['$onInit'](),_0x278d5c;},_0x340edb['prototype'][_0x106bfb('0x21bf')]=function(_0xb519af){var _0x3f9df9=_0x106bfb,_0x31d7b3=_0xb519af[_0x3f9df9('0x3608')],_0x5ae756=null;return _0x4a272c['isString'](_0x31d7b3)?_0x5ae756=_0x2603b7(_0x31d7b3=document['querySelector'](_0x31d7b3)):(_0x31d7b3=_0x31d7b3[0x0]||_0x31d7b3,_0x5ae756=document[_0x3f9df9('0x3cf')](_0x31d7b3)?_0x2603b7(_0x31d7b3):function(){var _0x3eaced=_0x3f9df9;_0x31d7b3[_0x3eaced('0x1378')]&&_0x31d7b3[_0x3eaced('0x1378')][_0x3eaced('0x37e1')](_0x31d7b3);}),{'element':_0x4a272c['element'](_0x31d7b3),'restore':_0x5ae756};function _0x2603b7(_0x230f03){var _0x13ded3=_0x3f9df9,_0x35f697=_0x230f03[_0x13ded3('0x1378')],_0x5b4715=_0x230f03['nextElementSibling'];return function(){var _0x333c54=_0x13ded3;_0x5b4715?_0x35f697[_0x333c54('0x3de')](_0x230f03,_0x5b4715):_0x35f697['appendChild'](_0x230f03);};}};}_0x4a272c['module'](_0x48c21d('0x113c'))['provider'](_0x48c21d('0x1c8a'),_0x5d16e6),_0x5d16e6['$inject']=['$compileProvider'];}(),function(){var _0x5021b1=_0x1fb7d4;_0x2305f1[_0x5021b1('0x28c9')]=['$$MdGestureHandler',_0x5021b1('0x3490'),_0x5021b1('0x1993'),'$mdUtil'],_0x4b5b01[_0x5021b1('0x28c9')]=[_0x5021b1('0xb9a'),_0x5021b1('0x2706'),_0x5021b1('0x2e27')];var _0x480a5b,_0x50f97f,_0x2932e5={},_0x3eb0d5=0x6,_0x531fb8=!0x1,_0x52f90d=!0x1,_0x83161c=null,_0x258cbe=!0x1;function _0x22b3ab(){}function _0x2305f1(_0x5cd0a9,_0x223581,_0xe3f48c,_0x3ce83a){var _0x508d64=_0x5021b1,_0x176706=_0x3ce83a[_0x508d64('0x1119')](),_0x4da7e3=void 0x0!==_0x49f10c[_0x508d64('0x354b')]&&_0x4a272c[_0x508d64('0x88a')]===_0x49f10c[_0x508d64('0x354b')],_0x278680={'handler':function(_0x4ddec3,_0x59832c){var _0x27f98c=_0x508d64,_0x17cbd4=new _0x5cd0a9(_0x4ddec3);return _0x4a272c[_0x27f98c('0x237f')](_0x17cbd4,_0x59832c),_0x2932e5[_0x4ddec3]=_0x17cbd4,_0x278680;},'register':function(_0x577e1d,_0x23299e,_0x412ea6){var _0x261fdd=_0x508d64,_0x5152d4=_0x2932e5[_0x23299e[_0x261fdd('0x34c8')](/^\$md./,'')];if(!_0x5152d4)throw new Error(_0x261fdd('0x247f')+_0x23299e+_0x261fdd('0x3225')+Object[_0x261fdd('0x1a3f')](_0x2932e5)[_0x261fdd('0x6a8')](',\x20'));return _0x5152d4['registerElement'](_0x577e1d,_0x412ea6);},'isAndroid':_0x3ce83a[_0x508d64('0x3427')],'isIos':_0x3ce83a['isIos'],'isHijackingClicks':(_0x3ce83a['isIos']||_0x3ce83a[_0x508d64('0x3427')])&&!_0x4da7e3&&!_0x531fb8};function _0x4ee68e(_0x1b8a7c){return function(_0x4e9c1e,_0x1c21c9){var _0x39097b=a2_0x4bfe;_0x1c21c9[_0x39097b('0x111c')]this[_0x55a3be('0xded')][_0x55a3be('0xad5')]&&this[_0x55a3be('0x31ce')]();},'onEnd':function(){this['onCancel']();}})['handler'](_0x508d64('0xfe7'),{'options':{'minDistance':0x6,'horizontal':!0x0,'cancelMultiplier':1.5},'onSetup':function(_0x2c49b6,_0x1e05b7){var _0x1f06a0=_0x508d64;_0x176706&&(this[_0x1f06a0('0x3721')]=_0x2c49b6[0x0]['style'][_0x176706],_0x2c49b6[0x0][_0x1f06a0('0x14b6')][_0x176706]=_0x1e05b7[_0x1f06a0('0x350f')]?'pan-y':_0x1f06a0('0x332f'));},'onCleanup':function(_0x41e1de){var _0x2fc8de=_0x508d64;this[_0x2fc8de('0x3721')]?_0x41e1de[0x0][_0x2fc8de('0x14b6')][_0x176706]=this[_0x2fc8de('0x3721')]:_0x41e1de[0x0]['style'][_0x176706]=null;},'onStart':function(_0x9ea7e8){var _0x28e74e=_0x508d64;this[_0x28e74e('0x380')]['registeredParent']||this['cancel']();},'onMove':function(_0x7e1b8a,_0xef7aa){var _0x108a39=_0x508d64,_0x44872f,_0x21c09d;_0x176706||_0x108a39('0xca0')!==_0x7e1b8a['type']||_0x7e1b8a[_0x108a39('0x1f1a')](),this[_0x108a39('0x380')][_0x108a39('0x1e45')]?this[_0x108a39('0x215f')](_0x7e1b8a):(this[_0x108a39('0x380')][_0x108a39('0xded')][_0x108a39('0x350f')]?(_0x44872f=Math[_0x108a39('0x1e6f')](_0xef7aa['distanceX'])>this['state']['options'][_0x108a39('0xe1e')],_0x21c09d=Math[_0x108a39('0x1e6f')](_0xef7aa[_0x108a39('0x2cbe')])>this[_0x108a39('0x380')][_0x108a39('0xded')][_0x108a39('0xe1e')]*this[_0x108a39('0x380')][_0x108a39('0xded')][_0x108a39('0x29f8')]):(_0x44872f=Math[_0x108a39('0x1e6f')](_0xef7aa['distanceY'])>this[_0x108a39('0x380')][_0x108a39('0xded')][_0x108a39('0xe1e')],_0x21c09d=Math['abs'](_0xef7aa['distanceX'])>this[_0x108a39('0x380')][_0x108a39('0xded')][_0x108a39('0xe1e')]*this[_0x108a39('0x380')][_0x108a39('0xded')][_0x108a39('0x29f8')]),_0x44872f?(this[_0x108a39('0x380')][_0x108a39('0x1e45')]=_0x29a567(_0x7e1b8a),_0xd3adca(_0x7e1b8a,this[_0x108a39('0x380')][_0x108a39('0x1e45')]),this[_0x108a39('0xf76')](_0x7e1b8a,_0x108a39('0xfee'),this[_0x108a39('0x380')]['dragPointer'])):_0x21c09d&&this[_0x108a39('0x31ce')]());},'dispatchDragMove':_0x223581[_0x508d64('0x1620')](function(_0x5d19f7){var _0x4118a6=_0x508d64;this[_0x4118a6('0x380')][_0x4118a6('0x513')]&&(_0xd3adca(_0x5d19f7,this[_0x4118a6('0x380')][_0x4118a6('0x1e45')]),this[_0x4118a6('0xf76')](_0x5d19f7,'$md.drag',this[_0x4118a6('0x380')][_0x4118a6('0x1e45')]));}),'onEnd':function(_0x44b969,_0x4ec119){var _0x1bfbfe=_0x508d64;this[_0x1bfbfe('0x380')][_0x1bfbfe('0x1e45')]&&(_0xd3adca(_0x44b969,this[_0x1bfbfe('0x380')][_0x1bfbfe('0x1e45')]),this[_0x1bfbfe('0xf76')](_0x44b969,_0x1bfbfe('0x1ef4'),this[_0x1bfbfe('0x380')][_0x1bfbfe('0x1e45')]));}})['handler'](_0x508d64('0x2f3f'),{'options':{'minVelocity':0.65,'minDistance':0xa},'onEnd':function(_0x4c0b1a,_0x244677){var _0x470f79=_0x508d64,_0x203618;Math[_0x470f79('0x1e6f')](_0x244677[_0x470f79('0x2ca1')])>this[_0x470f79('0x380')]['options'][_0x470f79('0xacc')]&&Math[_0x470f79('0x1e6f')](_0x244677[_0x470f79('0x394')])>this[_0x470f79('0x380')][_0x470f79('0xded')][_0x470f79('0xe1e')]?(_0x203618=_0x470f79('0x1d75')==_0x244677['directionX']?_0x470f79('0x283e'):_0x470f79('0x3971'),this['dispatchEvent'](_0x4c0b1a,_0x203618)):Math['abs'](_0x244677[_0x470f79('0x2b87')])>this[_0x470f79('0x380')][_0x470f79('0xded')]['minVelocity']&&Math[_0x470f79('0x1e6f')](_0x244677['distanceY'])>this[_0x470f79('0x380')][_0x470f79('0xded')][_0x470f79('0xe1e')]&&(_0x203618='up'==_0x244677[_0x470f79('0xd9c')]?_0x470f79('0x80'):_0x470f79('0x1c92'),this[_0x470f79('0xf76')](_0x4c0b1a,_0x203618));}});}function _0x1f4169(_0x38c681){var _0xbc93ff=_0x5021b1;this[_0xbc93ff('0x455')]=_0x38c681,this['state']={};}function _0x4b5b01(_0x55dcd5,_0x27c03e,_0x55f19b){var _0x5db649=_0x5021b1;!_0x52f90d&&(!_0x258cbe&&_0x55dcd5[_0x5db649('0xb87')]&&(document['addEventListener'](_0x5db649('0x160'),function(_0x5cee1f){var _0x1ae5d8=_0x5db649,_0x517925;_0x517925=_0x55f19b['isIos']?_0x4a272c[_0x1ae5d8('0x392d')](_0x5cee1f[_0x1ae5d8('0x129f')])&&0x0===_0x5cee1f[_0x1ae5d8('0x129f')]:0x0===_0x5cee1f[_0x1ae5d8('0x1f6f')]&&0x0===_0x5cee1f[_0x1ae5d8('0x304f')],_0x517925||_0x5cee1f[_0x1ae5d8('0x2281')]||_0x5cee1f[_0x1ae5d8('0x287b')]||_0x4a1b4a(_0x5cee1f)?(_0x83161c=null,_0x1ae5d8('0x1f7f')===_0x5cee1f[_0x1ae5d8('0x312f')][_0x1ae5d8('0x742')][_0x1ae5d8('0x856')]()&&(_0x83161c={'x':_0x5cee1f['x'],'y':_0x5cee1f['y']})):(_0x5cee1f[_0x1ae5d8('0x1f1a')](),_0x5cee1f[_0x1ae5d8('0x16c5')](),_0x83161c=null);},!0x0),document['addEventListener'](_0x5db649('0x3588'),_0x32bc80,!0x0),document['addEventListener'](_0x5db649('0x15e3'),_0x32bc80,!0x0),document[_0x5db649('0x2e05')]('focus',_0x32bc80,!0x0),_0x258cbe=!0x0),_0x4a272c['element'](document)['on'](_0x5db649('0x3340'),function(_0x286fee){var _0x22c504=_0x5db649;if(_0x480a5b)return;var _0x4158f8=+Date[_0x22c504('0x90e')]();if(_0x50f97f&&!_0x5ea377(_0x286fee,_0x50f97f)&&_0x4158f8-_0x50f97f['endTime']<0x5dc)return;_0x480a5b=_0x29a567(_0x286fee),_0x120557('start',_0x286fee);})['on']('mousemove\x20touchmove\x20pointermove',function(_0x52efc9){var _0xfd666d=_0x5db649;if(!_0x480a5b||!_0x5ea377(_0x52efc9,_0x480a5b))return;_0xd3adca(_0x52efc9,_0x480a5b),_0x120557(_0xfd666d('0xe88'),_0x52efc9);})['on']('mouseup\x20mouseleave\x20touchend\x20touchcancel\x20pointerup\x20pointercancel',function(_0x108c40){var _0x4af134=_0x5db649;if(!_0x480a5b||!_0x5ea377(_0x108c40,_0x480a5b))return;_0xd3adca(_0x108c40,_0x480a5b),_0x480a5b[_0x4af134('0x147a')]=+Date['now'](),_0x4af134('0x270f')!==_0x108c40['type']&&_0x120557('end',_0x108c40),(_0x50f97f=_0x480a5b,_0x480a5b=null);})['on'](_0x5db649('0x186d'),function(){_0x50f97f=_0x480a5b=null;}));function _0x32bc80(_0x1f9ff2){var _0x4b544b=_0x5db649;!_0x1f9ff2[_0x4b544b('0x1f6f')]&&!_0x1f9ff2[_0x4b544b('0x304f')]||_0x1f9ff2[_0x4b544b('0x2281')]||_0x1f9ff2['isIonicTap']||_0x4a1b4a(_0x1f9ff2)||_0x4b544b('0x15e3')===_0x1f9ff2[_0x4b544b('0x21a5')]&&(_0x1ad401(_0x1f9ff2[_0x4b544b('0x312f')])||_0x1ad401(document[_0x4b544b('0x2de7')]))||(_0x1f9ff2['preventDefault'](),_0x1f9ff2[_0x4b544b('0x16c5')]());}function _0x120557(_0xe7cade,_0x1cb5f1){var _0x1f0a73=_0x5db649,_0x15fc39;for(var _0x5c1eb7 in _0x2932e5)(_0x15fc39=_0x2932e5[_0x5c1eb7])instanceof _0x27c03e&&(_0x1f0a73('0x21ef')===_0xe7cade&&_0x15fc39[_0x1f0a73('0x31ce')](),_0x15fc39[_0xe7cade](_0x1cb5f1,_0x480a5b));}}function _0x29a567(_0xfdfb7){var _0x37b015=_0x5021b1,_0x2e5734=_0x4936bc(_0xfdfb7),_0x93d6ac={'startTime':+Date[_0x37b015('0x90e')](),'target':_0xfdfb7['target'],'type':_0xfdfb7[_0x37b015('0x21a5')][_0x37b015('0x40')](0x0)};return _0x93d6ac[_0x37b015('0x679')]=_0x93d6ac['x']=_0x2e5734[_0x37b015('0x1cf0')],_0x93d6ac[_0x37b015('0x17ca')]=_0x93d6ac['y']=_0x2e5734[_0x37b015('0x20a6')],_0x93d6ac;}function _0x5ea377(_0x49a5c0,_0x53af10){var _0x2d60fd=_0x5021b1;return _0x49a5c0&&_0x53af10&&_0x49a5c0[_0x2d60fd('0x21a5')][_0x2d60fd('0x40')](0x0)===_0x53af10[_0x2d60fd('0x21a5')];}function _0x4a1b4a(_0x2b9f9c){return _0x83161c&&_0x83161c['x']===_0x2b9f9c['x']&&_0x83161c['y']===_0x2b9f9c['y'];}function _0xd3adca(_0x553b20,_0x1c8529){var _0x39a7b6=_0x5021b1,_0x467771=_0x4936bc(_0x553b20),_0x143c41=_0x1c8529['x']=_0x467771[_0x39a7b6('0x1cf0')],_0x2eb032=_0x1c8529['y']=_0x467771[_0x39a7b6('0x20a6')];_0x1c8529[_0x39a7b6('0x394')]=_0x143c41-_0x1c8529[_0x39a7b6('0x679')],_0x1c8529[_0x39a7b6('0x2cbe')]=_0x2eb032-_0x1c8529[_0x39a7b6('0x17ca')],_0x1c8529['distance']=Math[_0x39a7b6('0x1357')](_0x1c8529[_0x39a7b6('0x394')]*_0x1c8529[_0x39a7b6('0x394')]+_0x1c8529['distanceY']*_0x1c8529['distanceY']),_0x1c8529['directionX']=_0x1c8529['distanceX']>0x0?_0x39a7b6('0x1e0d'):_0x1c8529[_0x39a7b6('0x394')]<0x0?_0x39a7b6('0x1d75'):'',_0x1c8529['directionY']=_0x1c8529['distanceY']>0x0?_0x39a7b6('0x2a21'):_0x1c8529[_0x39a7b6('0x2cbe')]<0x0?'up':'',_0x1c8529[_0x39a7b6('0x296c')]=+Date[_0x39a7b6('0x90e')]()-_0x1c8529[_0x39a7b6('0x150f')],_0x1c8529['velocityX']=_0x1c8529['distanceX']/_0x1c8529['duration'],_0x1c8529[_0x39a7b6('0x2b87')]=_0x1c8529[_0x39a7b6('0x2cbe')]/_0x1c8529[_0x39a7b6('0x296c')];}function _0x4936bc(_0x23b084){var _0x2439c2=_0x5021b1;return(_0x23b084=_0x23b084[_0x2439c2('0x2439')]||_0x23b084)[_0x2439c2('0x1023')]&&_0x23b084[_0x2439c2('0x1023')][0x0]||_0x23b084[_0x2439c2('0x1480')]&&_0x23b084[_0x2439c2('0x1480')][0x0]||_0x23b084;}function _0x1ad401(_0x28872d){var _0x1d65df=_0x5021b1;return!!_0x28872d&&'-1'!==_0x28872d[_0x1d65df('0x10ba')](_0x1d65df('0x1b4e'))&&!_0x28872d[_0x1d65df('0x2052')](_0x1d65df('0x2d00'))&&(_0x28872d[_0x1d65df('0x2052')]('tabindex')||_0x28872d['hasAttribute'](_0x1d65df('0x3277'))||_0x28872d['isContentEditable']||-0x1!==[_0x1d65df('0x17ae'),'SELECT',_0x1d65df('0xd85'),_0x1d65df('0x24c9'),_0x1d65df('0x382d'),_0x1d65df('0x203c')][_0x1d65df('0xe1c')](_0x28872d[_0x1d65df('0x10c3')]));}_0x4a272c[_0x5021b1('0x122c')]('material.core.gestures',[])[_0x5021b1('0x210d')](_0x5021b1('0xb9a'),_0x22b3ab)[_0x5021b1('0x36b0')]('$$MdGestureHandler',function(){var _0x592ff2=_0x5021b1,_0x1bbd27=void 0x0!==_0x49f10c[_0x592ff2('0x354b')]&&_0x4a272c[_0x592ff2('0x88a')]===_0x49f10c[_0x592ff2('0x354b')];return _0x1f4169['prototype']={'options':{},'dispatchEvent':_0x1bbd27?function(_0x3dd718,_0x40fa9f,_0x1976ad){var _0xa13485=_0x592ff2;_0x1976ad=_0x1976ad||_0x480a5b;var _0x44524a=new _0x4a272c[(_0xa13485('0x88a'))]['Event'](_0x40fa9f);_0x44524a['$material']=!0x0,_0x44524a[_0xa13485('0xc25')]=_0x1976ad,_0x44524a[_0xa13485('0xc0b')]=_0x3dd718,_0x4a272c[_0xa13485('0x237f')](_0x44524a,{'clientX':_0x1976ad['x'],'clientY':_0x1976ad['y'],'screenX':_0x1976ad['x'],'screenY':_0x1976ad['y'],'pageX':_0x1976ad['x'],'pageY':_0x1976ad['y'],'ctrlKey':_0x3dd718[_0xa13485('0x1d8')],'altKey':_0x3dd718[_0xa13485('0x5eb')],'shiftKey':_0x3dd718[_0xa13485('0x1c76')],'metaKey':_0x3dd718[_0xa13485('0x30d9')]}),_0x4a272c['element'](_0x1976ad[_0xa13485('0x312f')])[_0xa13485('0x2b7e')](_0x44524a);}:function(_0x300262,_0x456c8c,_0x3acdfb){var _0x5620ad=_0x592ff2,_0x4c0f73;_0x3acdfb=_0x3acdfb||_0x480a5b,_0x5620ad('0x160')===_0x456c8c||_0x5620ad('0x3588')===_0x456c8c||_0x5620ad('0x15e3')===_0x456c8c?_0x5620ad('0x19aa')==typeof _0x49f10c['MouseEvent']?_0x4c0f73=new MouseEvent(_0x456c8c,{'bubbles':!0x0,'cancelable':!0x0,'screenX':Number(_0x300262[_0x5620ad('0x3195')]),'screenY':Number(_0x300262[_0x5620ad('0x29b5')]),'clientX':Number(_0x3acdfb['x']),'clientY':Number(_0x3acdfb['y']),'ctrlKey':_0x300262[_0x5620ad('0x1d8')],'altKey':_0x300262[_0x5620ad('0x5eb')],'shiftKey':_0x300262['shiftKey'],'metaKey':_0x300262[_0x5620ad('0x30d9')],'button':_0x300262[_0x5620ad('0xb54')],'buttons':_0x300262[_0x5620ad('0x37a1')],'relatedTarget':_0x300262[_0x5620ad('0xee4')]||null}):(_0x4c0f73=document[_0x5620ad('0x634')](_0x5620ad('0x1dd')))[_0x5620ad('0x36b')](_0x456c8c,!0x0,!0x0,_0x49f10c,_0x300262['detail'],_0x3acdfb['x'],_0x3acdfb['y'],_0x3acdfb['x'],_0x3acdfb['y'],_0x300262[_0x5620ad('0x1d8')],_0x300262[_0x5620ad('0x5eb')],_0x300262[_0x5620ad('0x1c76')],_0x300262['metaKey'],_0x300262[_0x5620ad('0xb54')],_0x300262[_0x5620ad('0xee4')]||null):_0x5620ad('0x19aa')==typeof _0x49f10c[_0x5620ad('0x2d57')]?_0x4c0f73=new CustomEvent(_0x456c8c,{'bubbles':!0x0,'cancelable':!0x0,'detail':{}}):(_0x4c0f73=document[_0x5620ad('0x634')](_0x5620ad('0x2d57')))['initCustomEvent'](_0x456c8c,!0x0,!0x0,{}),(_0x4c0f73['$material']=!0x0,_0x4c0f73[_0x5620ad('0xc25')]=_0x3acdfb,_0x4c0f73['srcEvent']=_0x300262,_0x3acdfb[_0x5620ad('0x312f')][_0x5620ad('0xf76')](_0x4c0f73));},'onSetup':_0x4a272c[_0x592ff2('0x2374')],'onCleanup':_0x4a272c['noop'],'onStart':_0x4a272c['noop'],'onMove':_0x4a272c[_0x592ff2('0x2374')],'onEnd':_0x4a272c['noop'],'onCancel':_0x4a272c[_0x592ff2('0x2374')],'start':function(_0x9cfdfc,_0x38c8c9){var _0x56df4e=_0x592ff2;if(!this[_0x56df4e('0x380')][_0x56df4e('0x513')]){var _0x453859=this[_0x56df4e('0xab0')](_0x9cfdfc[_0x56df4e('0x312f')]),_0x43a2a6=_0x453859&&_0x453859['$mdGesture'][this[_0x56df4e('0x455')]]||{};this[_0x56df4e('0x380')]={'isRunning':!0x0,'options':_0x4a272c['extend']({},this[_0x56df4e('0xded')],_0x43a2a6),'registeredParent':_0x453859},this[_0x56df4e('0x2a85')](_0x9cfdfc,_0x38c8c9);}},'move':function(_0x41ce3c,_0xc931f7){var _0x870c23=_0x592ff2;this[_0x870c23('0x380')][_0x870c23('0x513')]&&this[_0x870c23('0x11f9')](_0x41ce3c,_0xc931f7);},'end':function(_0x582ddf,_0xde2052){var _0x24e75a=_0x592ff2;this[_0x24e75a('0x380')]['isRunning']&&(this['state'][_0x24e75a('0x513')]=!0x1,this[_0x24e75a('0xb46')](_0x582ddf,_0xde2052));},'cancel':function(_0x245af5,_0x57490b){var _0x533b52=_0x592ff2;this[_0x533b52('0x211d')](_0x245af5,_0x57490b),this[_0x533b52('0x380')]={};},'getNearestParent':function(_0x181a08){var _0xabdf7a=_0x592ff2;for(var _0x1095b3=_0x181a08;_0x1095b3;){if((_0x1095b3[_0xabdf7a('0xb9a')]||{})[this[_0xabdf7a('0x455')]])return _0x1095b3;_0x1095b3=_0x1095b3[_0xabdf7a('0x1378')];}return null;},'registerElement':function(_0x44f1d5,_0x26de28){var _0x491a06=_0x592ff2,_0x15aab1=this;return _0x44f1d5[0x0][_0x491a06('0xb9a')]=_0x44f1d5[0x0][_0x491a06('0xb9a')]||{},_0x44f1d5[0x0][_0x491a06('0xb9a')][this[_0x491a06('0x455')]]=_0x26de28||{},_0x44f1d5['on']('$destroy',_0x5e30fb),_0x15aab1[_0x491a06('0x797')](_0x44f1d5,_0x26de28||{}),_0x5e30fb;function _0x5e30fb(){var _0x257f4c=_0x491a06;delete _0x44f1d5[0x0][_0x257f4c('0xb9a')][_0x15aab1[_0x257f4c('0x455')]],_0x44f1d5[_0x257f4c('0x1202')](_0x257f4c('0x2f34'),_0x5e30fb),_0x15aab1[_0x257f4c('0x2f57')](_0x44f1d5,_0x26de28||{});}}},_0x1f4169;})[_0x5021b1('0x202f')](_0x4b5b01),_0x22b3ab['prototype']={'disableAll':function(){_0x52f90d=!0x0;},'skipClickHijack':function(){return _0x531fb8=!0x0;},'setMaxClickDistance':function(_0x5582f2){_0x3eb0d5=parseInt(_0x5582f2);},'$get':[_0x5021b1('0x2706'),_0x5021b1('0x3490'),_0x5021b1('0x1993'),'$mdUtil',function(_0xc05f62,_0x279091,_0x1b5ddf,_0x2a7297){return new _0x2305f1(_0xc05f62,_0x279091,_0x1b5ddf,_0x2a7297);}]};}(),function(){var _0x3ae09b=_0x1fb7d4;function _0xec9cf0(_0x447b0c,_0x52ed3b,_0x61c908){var _0x234838=a2_0x4bfe;this[_0x234838('0x1993')]=_0x447b0c,this[_0x234838('0x2e27')]=_0x52ed3b,this[_0x234838('0x709')]=_0x61c908,this[_0x234838('0x25e4')]='MSPointerEvent'in _0x49f10c?'MSPointerDown':_0x234838('0x109d')in _0x49f10c?_0x234838('0xb0'):null,this['bodyElement']=_0x4a272c['element'](document[_0x234838('0x3742')]),this['isBuffering']=!0x1,this[_0x234838('0x359b')]=null,this[_0x234838('0x1c53')]=null,this[_0x234838('0x1ede')]=null,this[_0x234838('0x12d7')]=this['onInputEvent']['bind'](this),this[_0x234838('0x1cd5')]=this[_0x234838('0x2a8e')][_0x234838('0x1ecd')](this),this[_0x234838('0x24b8')]={'keydown':_0x234838('0x2c2c'),'mousedown':'mouse','mouseenter':_0x234838('0x3937'),'touchstart':_0x234838('0x33de'),'pointerdown':_0x234838('0xc25'),'MSPointerDown':'pointer'},this[_0x234838('0x34af')]={0x2:_0x234838('0x33de'),0x3:_0x234838('0x33de'),0x4:_0x234838('0x3937')},this[_0x234838('0x28fd')](),this[_0x234838('0x709')][_0x234838('0x1db8')](_0x234838('0x2f34'),this[_0x234838('0x10ee')][_0x234838('0x1ecd')](this));}_0xec9cf0[_0x3ae09b('0x28c9')]=[_0x3ae09b('0x1993'),'$mdUtil','$rootScope'],_0x4a272c[_0x3ae09b('0x122c')]('material.core.interaction',[])[_0x3ae09b('0x3897')](_0x3ae09b('0xce4'),_0xec9cf0),_0xec9cf0[_0x3ae09b('0x5a')][_0x3ae09b('0x10ee')]=function(){var _0x1cce39=_0x3ae09b;this[_0x1cce39('0x26f8')][_0x1cce39('0x1202')](_0x1cce39('0x2025'),this[_0x1cce39('0x12d7')]),_0x1cce39('0x2a5')in document[_0x1cce39('0x207a')]&&this[_0x1cce39('0x26f8')]['off'](_0x1cce39('0x1cf6'),this[_0x1cce39('0x1cd5')]),this[_0x1cce39('0x25e4')]&&this['bodyElement'][_0x1cce39('0x1202')](this[_0x1cce39('0x25e4')],this['inputHandler']);},_0xec9cf0[_0x3ae09b('0x5a')][_0x3ae09b('0x28fd')]=function(){var _0x43b017=_0x3ae09b;this[_0x43b017('0x26f8')]['on'](_0x43b017('0x2025'),this['inputHandler']),_0x43b017('0x2a5')in document[_0x43b017('0x207a')]&&this[_0x43b017('0x26f8')]['on'](_0x43b017('0x1cf6'),this['bufferedInputHandler']),this[_0x43b017('0x25e4')]&&this[_0x43b017('0x26f8')]['on'](this['pointerEvent'],this[_0x43b017('0x12d7')]);},_0xec9cf0['prototype'][_0x3ae09b('0x36cb')]=function(_0x432319){var _0x53f886=_0x3ae09b;if(!this[_0x53f886('0x2ed2')]){var _0x51cbee=this[_0x53f886('0x24b8')][_0x432319[_0x53f886('0x21a5')]];_0x53f886('0xc25')===_0x51cbee&&(_0x51cbee=this[_0x53f886('0x34af')][_0x432319[_0x53f886('0x3923')]]||_0x432319['pointerType']),this[_0x53f886('0x1c53')]=_0x51cbee,this['lastInteractionTime']=this[_0x53f886('0x2e27')]['now']();}},_0xec9cf0[_0x3ae09b('0x5a')][_0x3ae09b('0x2a8e')]=function(_0x2a0182){var _0x366e91=_0x3ae09b;this['$timeout'][_0x366e91('0x31ce')](this[_0x366e91('0x359b')]),this[_0x366e91('0x36cb')](_0x2a0182),this[_0x366e91('0x2ed2')]=!0x0,this[_0x366e91('0x359b')]=this['$timeout'](function(){var _0x59e4f4=_0x366e91;this[_0x59e4f4('0x2ed2')]=!0x1;}['bind'](this),0x28a,!0x1);},_0xec9cf0[_0x3ae09b('0x5a')][_0x3ae09b('0x2594')]=function(){var _0x43e703=_0x3ae09b;return this[_0x43e703('0x1c53')];},_0xec9cf0[_0x3ae09b('0x5a')][_0x3ae09b('0x17b9')]=function(_0x50dbcf){var _0x121e0f=_0x3ae09b,_0x36ab94=_0x4a272c[_0x121e0f('0x53')](_0x50dbcf)?_0x50dbcf:0xf;return this[_0x121e0f('0x1ede')]>=this['$mdUtil'][_0x121e0f('0x90e')]()-_0x36ab94;};}(),_0x4a272c['module']('material.core')[_0x1fb7d4('0x210d')](_0x1fb7d4('0x2122'),function(){var _0x4bc7d6=_0x1fb7d4;return _0x5b6cf0[_0x4bc7d6('0x28c9')]=[_0x4bc7d6('0x151'),'$q',_0x4bc7d6('0x709'),_0x4bc7d6('0x1993'),'$rootElement','$animate',_0x4bc7d6('0x2e27'),'$mdCompiler',_0x4bc7d6('0x2e8e'),'$injector',_0x4bc7d6('0xd6d')],_0x333743[_0x4bc7d6('0x2b72')]=_0x5b6cf0,_0x333743;function _0x333743(_0x17056b){var _0x57f046=_0x4bc7d6;_0x2f567a['$inject']=['$$interimElement',_0x57f046('0x345b')];var _0x3cec71=[_0x57f046('0x20be'),_0x57f046('0x2dba'),_0x57f046('0x246f')],_0x10fab1={},_0x2a7231={'presets':{}},_0xf25569={'setDefaults':function(_0x44d9a0){var _0x49cfc6=_0x57f046;return _0x2a7231[_0x49cfc6('0x9cd')]=_0x44d9a0[_0x49cfc6('0xded')],_0x2a7231[_0x49cfc6('0x158f')]=(_0x44d9a0[_0x49cfc6('0x158f')]||[])['concat'](_0x3cec71),_0xf25569;},'addPreset':function(_0x2ea7b8,_0xa597fd){var _0xd390cb=_0x57f046;if((_0xa597fd=_0xa597fd||{})[_0xd390cb('0x158f')]=_0xa597fd['methods']||[],_0xa597fd[_0xd390cb('0xded')]=_0xa597fd[_0xd390cb('0xded')]||function(){return{};},/^cancel|hide|show$/[_0xd390cb('0x19cd')](_0x2ea7b8))throw new Error('Preset\x20\x27'+_0x2ea7b8+_0xd390cb('0x203')+_0x17056b+'\x20is\x20reserved!');if(_0xa597fd[_0xd390cb('0x158f')][_0xd390cb('0xe1c')]('_options')>-0x1)throw new Error(_0xd390cb('0x15b8')+_0x17056b+_0xd390cb('0x4f3'));return _0x2a7231[_0xd390cb('0x1b8c')][_0x2ea7b8]={'methods':_0xa597fd[_0xd390cb('0x158f')][_0xd390cb('0x12b4')](_0x3cec71),'optionsFactory':_0xa597fd[_0xd390cb('0xded')],'argOption':_0xa597fd[_0xd390cb('0xc2e')]},_0xf25569;},'addMethod':function(_0x394044,_0x1c59b){return _0x10fab1[_0x394044]=_0x1c59b,_0xf25569;},'$get':_0x2f567a};return _0xf25569[_0x57f046('0x2568')](_0x57f046('0x173f'),{'methods':[_0x57f046('0x19f6'),_0x57f046('0x4ce'),_0x57f046('0x16ab'),_0x57f046('0x30cc'),'template','templateUrl',_0x57f046('0x2083'),'transformTemplate','parent','contentElement']}),_0xf25569;function _0x2f567a(_0x4edf43,_0x1bf886){var _0x2a9469=_0x57f046,_0x670c86,_0x25b064,_0x1bfdd8=_0x4edf43(),_0x293345={'hide':_0x1bfdd8[_0x2a9469('0xf26')],'cancel':_0x1bfdd8[_0x2a9469('0x31ce')],'show':function(_0x4d32cc){var _0x8f17bf=_0x2a9469;return(_0x4d32cc=_0x4d32cc||{})['_options']&&(_0x4d32cc=_0x4d32cc['_options']),_0x1bfdd8[_0x8f17bf('0x4ae')](_0x4a272c['extend']({},_0x25b064,_0x4d32cc));},'destroy':function(_0x238fee){var _0x4cb4df=_0x2a9469;return _0x1bfdd8[_0x4cb4df('0x2cdb')](_0x238fee);}};return _0x670c86=_0x2a7231['methods']||[],_0x25b064=_0x27da32(_0x2a7231[_0x2a9469('0x9cd')],{}),_0x4a272c[_0x2a9469('0x247d')](_0x10fab1,function(_0x2bd41a,_0x4a989e){_0x293345[_0x4a989e]=_0x2bd41a;}),_0x4a272c[_0x2a9469('0x247d')](_0x2a7231[_0x2a9469('0x1b8c')],function(_0xdb0e53,_0x29f1bb){var _0x1f94e2=_0x2a9469,_0x449c46=_0x27da32(_0xdb0e53[_0x1f94e2('0x9cd')],{}),_0x167b7e=(_0xdb0e53[_0x1f94e2('0x158f')]||[])[_0x1f94e2('0x12b4')](_0x670c86);function _0x17fd0b(_0x25718f){var _0x566fc2=_0x1f94e2;this[_0x566fc2('0x1d2')]=_0x4a272c[_0x566fc2('0x237f')]({},_0x449c46,_0x25718f);}if(_0x4a272c['extend'](_0x449c46,{'$type':_0x29f1bb}),_0x4a272c['forEach'](_0x167b7e,function(_0xc6405a){var _0x57af45=_0x1f94e2;_0x17fd0b[_0x57af45('0x5a')][_0xc6405a]=function(_0x52a371){var _0x4cfca7=_0x57af45;return this[_0x4cfca7('0x1d2')][_0xc6405a]=_0x52a371,this;};}),_0xdb0e53['argOption']){var _0x14238d=_0x1f94e2('0x4ae')+_0x29f1bb[_0x1f94e2('0x40')](0x0)[_0x1f94e2('0x1a66')]()+_0x29f1bb[_0x1f94e2('0x2c0a')](0x1);_0x293345[_0x14238d]=function(_0x2ae116){var _0x266779=_0x1f94e2,_0x1d7223=_0x293345[_0x29f1bb](_0x2ae116);return _0x293345[_0x266779('0x4ae')](_0x1d7223);};}_0x293345[_0x29f1bb]=function(_0x2244f3){var _0x22f280=_0x1f94e2;return arguments['length']&&_0xdb0e53[_0x22f280('0xc2e')]&&!_0x4a272c['isObject'](_0x2244f3)&&!_0x4a272c[_0x22f280('0x2f1d')](_0x2244f3)?new _0x17fd0b()[_0xdb0e53[_0x22f280('0xc2e')]](_0x2244f3):new _0x17fd0b(_0x2244f3);};}),_0x293345;function _0x27da32(_0x424a00,_0x492026){var _0x228b71=_0x2a9469,_0x4651ff={};return _0x4651ff[_0x17056b]=_0x293345,_0x1bf886[_0x228b71('0x3845')](_0x424a00||function(){return _0x492026;},{},_0x4651ff);}}}function _0x5b6cf0(_0x451286,_0x5e4dff,_0x523143,_0x570976,_0x4c18ef,_0x56de98,_0x2a89cb,_0x5364f9,_0xcc121f,_0xe21124,_0x35993f){return function(){var _0x5469d7,_0x22d366=[],_0x4d129d=[],_0x291196=[];return _0x5469d7={'show':function(_0x4b564e){var _0x2976f2=a2_0x4bfe,_0x45bf54=new _0x46825a((_0x4b564e=_0x4b564e||{})||{}),_0x524ccc=_0x4b564e[_0x2976f2('0x30cc')]?_0x5e4dff[_0x2976f2('0x16ab')]():_0x5e4dff[_0x2976f2('0x130c')](_0x22d366);_0x4b564e[_0x2976f2('0x30cc')]||(_0x524ccc=_0x524ccc[_0x2976f2('0x26b5')](function(){var _0x1df5cf=_0x2976f2,_0x281f91=_0x4d129d['concat'](_0x291196[_0x1df5cf('0x2d86')](_0x5469d7[_0x1df5cf('0x31ce')]));return _0x5e4dff[_0x1df5cf('0x130c')](_0x281f91);}));var _0x57cbb4=_0x524ccc['then'](function(){var _0x51c8ac=_0x2976f2;return _0x45bf54[_0x51c8ac('0x4ae')]()[_0x51c8ac('0x26b5')](function(){var _0x2fd1b8=_0x51c8ac;_0x291196[_0x2fd1b8('0x1a90')](_0x45bf54);})[_0x51c8ac('0x2287')](function(_0x184a62){return _0x184a62;})['finally'](function(){var _0x4d4699=_0x51c8ac;_0x22d366[_0x4d4699('0x1f40')](_0x22d366[_0x4d4699('0xe1c')](_0x57cbb4),0x1);});});return _0x22d366[_0x2976f2('0x1a90')](_0x57cbb4),_0x45bf54[_0x2976f2('0x1630')][_0x2976f2('0x34a6')][_0x2976f2('0x2287')](function(_0xe281c){return _0xe281c instanceof Error&&_0x35993f(_0xe281c),_0xe281c;}),_0x45bf54['deferred'][_0x2976f2('0x34a6')];},'hide':_0x2c8907(function(_0xf61ef7,_0x2ba372){var _0x4d6d10=a2_0x4bfe;return(_0x2ba372=_0x2ba372||{})[_0x4d6d10('0x19e9')]?_0x5e4dff[_0x4d6d10('0x130c')](_0x291196['slice']()['reverse']()[_0x4d6d10('0x2d86')](_0x5d0de0)):_0x2ba372[_0x4d6d10('0x26e0')]!==_0x6373f5?_0x5e4dff[_0x4d6d10('0x130c')](_0x291196[_0x4d6d10('0x2c0a')](_0x2ba372[_0x4d6d10('0x26e0')])[_0x4d6d10('0x2d86')](_0x5d0de0)):_0x5d0de0(_0x291196[_0x291196[_0x4d6d10('0x175a')]-0x1]);function _0x5d0de0(_0x32e8c5){var _0x5649ab=_0x4d6d10;if(!_0x32e8c5)return _0x5e4dff[_0x5649ab('0x36d1')](_0xf61ef7);var _0x21c0b0=_0x32e8c5[_0x5649ab('0x2371')](_0xf61ef7,!0x1,_0x2ba372||{})[_0x5649ab('0x2287')](function(_0x3aa092){return _0x3aa092;})['finally'](function(){var _0x58e44e=_0x5649ab;_0x4d129d[_0x58e44e('0x1f40')](_0x4d129d[_0x58e44e('0xe1c')](_0x21c0b0),0x1);});return _0x291196[_0x5649ab('0x1f40')](_0x291196[_0x5649ab('0xe1c')](_0x32e8c5),0x1),_0x4d129d['push'](_0x21c0b0),_0x32e8c5[_0x5649ab('0x1630')][_0x5649ab('0x34a6')];}}),'cancel':_0x2c8907(function(_0x4f7213,_0x47126b){var _0x20ea30=a2_0x4bfe,_0x43e9cd=_0x291196[_0x20ea30('0x9b1')]();if(!_0x43e9cd)return _0x5e4dff[_0x20ea30('0x36d1')](_0x4f7213);var _0x3f6669=_0x43e9cd[_0x20ea30('0x2371')](_0x4f7213,!0x0,_0x47126b||{})[_0x20ea30('0x2287')](function(_0x3aaa57){return _0x3aaa57;})[_0x20ea30('0x2879')](function(){var _0x129834=_0x20ea30;_0x4d129d[_0x129834('0x1f40')](_0x4d129d[_0x129834('0xe1c')](_0x3f6669),0x1);});return _0x4d129d[_0x20ea30('0x1a90')](_0x3f6669),_0x43e9cd[_0x20ea30('0x1630')][_0x20ea30('0x34a6')]['catch'](_0x4a272c[_0x20ea30('0x2374')]);}),'destroy':function(_0x7aba7){var _0x2a5e67=a2_0x4bfe,_0x2511a6=_0x7aba7?null:_0x291196[_0x2a5e67('0x2967')](),_0x58d087=_0x4a272c[_0x2a5e67('0x88a')](_0x7aba7)['length']&&_0x4a272c[_0x2a5e67('0x88a')](_0x7aba7)[0x0]['parentNode'];if(_0x58d087){var _0x225400=_0x291196[_0x2a5e67('0x3127')](function(_0x3af451){return _0x3af451['options']['element'][0x0]===_0x58d087;});_0x225400['length']&&(_0x2511a6=_0x225400[0x0],_0x291196[_0x2a5e67('0x1f40')](_0x291196[_0x2a5e67('0xe1c')](_0x2511a6),0x1));}return _0x2511a6?_0x2511a6[_0x2a5e67('0x2371')](!0x1,!0x1,{'$destroy':!0x0}):_0x5e4dff[_0x2a5e67('0x36d1')](!0x1);},'$injector_':_0xe21124};function _0x2c8907(_0x47a31a){return function(){var _0x537aeb=a2_0x4bfe,_0x485be6=arguments;return _0x291196['length']?_0x47a31a[_0x537aeb('0x177a')](_0x5469d7,_0x485be6):_0x22d366[_0x537aeb('0x175a')]?_0x22d366[0x0][_0x537aeb('0x2879')](function(){var _0xfe244e=_0x537aeb;return _0x47a31a[_0xfe244e('0x177a')](_0x5469d7,_0x485be6);}):_0x5e4dff[_0x537aeb('0x36d1')](_0x537aeb('0x35a7'));};}function _0x46825a(_0x9820ec){var _0x4376bd=a2_0x4bfe,_0x2e3a29,_0x57267e,_0x185fd6=_0x5e4dff[_0x4376bd('0x36d1')](!0x0);return _0x9820ec=function(_0x1d93a3){var _0x1cf2b1=_0x4376bd;return(_0x1d93a3=_0x1d93a3||{})[_0x1cf2b1('0x2ea9')]&&(_0x1d93a3[_0x1cf2b1('0x2ea9')]=_0x2a89cb[_0x1cf2b1('0xc16')](_0x1d93a3[_0x1cf2b1('0x2ea9')])),_0x4a272c[_0x1cf2b1('0x237f')]({'preserveScope':!0x1,'cancelAutoHide':_0x4a272c[_0x1cf2b1('0x2374')],'scope':_0x1d93a3[_0x1cf2b1('0x1789')]||_0x523143[_0x1cf2b1('0x3141')](_0x1d93a3['isolateScope']),'onShow':function(_0x576c11,_0x3cd5ed,_0x365023){var _0x2e342f=_0x1cf2b1;return _0x56de98[_0x2e342f('0xa0a')](_0x3cd5ed,_0x365023[_0x2e342f('0x38bb')]);},'onRemove':function(_0xabbb73,_0x45681a){var _0x2e2875=_0x1cf2b1;return _0x45681a&&_0x56de98[_0x2e2875('0x376c')](_0x45681a)||_0x5e4dff['when']();}},_0x1d93a3);}(_0x9820ec),_0x2e3a29={'options':_0x9820ec,'deferred':_0x5e4dff[_0x4376bd('0xc99')](),'show':function(){return _0x5e4dff(function(_0xd91544,_0xf18f85){var _0x3cab51=a2_0x4bfe;function _0x1a4589(_0x5636d6){var _0xd937f5=a2_0x4bfe;_0x2e3a29[_0xd937f5('0x1630')][_0xd937f5('0xf51')](_0x5636d6),_0xf18f85(_0x5636d6);}_0x9820ec[_0x3cab51('0x3284')]&&_0x9820ec[_0x3cab51('0x3284')](_0x9820ec),function(_0x40e70f){var _0x29dde9=_0x3cab51;return(_0x40e70f['skipCompile']?null:_0x5364f9[_0x29dde9('0xd1b')](_0x40e70f))||_0x5e4dff(function(_0x29dc2f){_0x29dc2f({'locals':{},'link':function(){var _0x375723=a2_0x4bfe;return _0x40e70f[_0x375723('0x88a')];}});});}(_0x9820ec)[_0x3cab51('0x26b5')](function(_0x31f448){var _0x39edd0=_0x3cab51;_0x57267e=function(_0x254247,_0x9c840e){var _0x39a8eb=a2_0x4bfe;_0x4a272c['extend'](_0x254247[_0x39a8eb('0x2fb0')],_0x9c840e);var _0x17788c=_0x254247[_0x39a8eb('0x3634')](_0x9c840e[_0x39a8eb('0x1789')]);return _0x9c840e[_0x39a8eb('0x88a')]=_0x17788c,_0x9c840e[_0x39a8eb('0x38bb')]=function(_0x281962,_0x185e73){var _0x5a9d93=_0x39a8eb,_0x2ba5ed,_0x15e37d=_0x185e73[_0x5a9d93('0x38bb')];return((_0x15e37d=_0x4a272c[_0x5a9d93('0x1e34')](_0x15e37d)?_0x15e37d(_0x185e73[_0x5a9d93('0x1789')],_0x281962,_0x185e73):_0x4a272c['isString'](_0x15e37d)?_0x4a272c[_0x5a9d93('0x88a')](_0x451286[0x0][_0x5a9d93('0x2cee')](_0x15e37d)):_0x4a272c['element'](_0x15e37d))||{})[_0x5a9d93('0x175a')]?_0x15e37d:(_0x4c18ef[0x0]&&_0x4c18ef[0x0]['querySelector']&&(_0x2ba5ed=_0x4c18ef[0x0]['querySelector'](_0x5a9d93('0x1ae5'))),_0x2ba5ed||(_0x2ba5ed=_0x4c18ef[0x0]),_0x5a9d93('0x1ac1')==_0x2ba5ed[_0x5a9d93('0x10c3')]&&(_0x2ba5ed=_0x451286[0x0][_0x5a9d93('0x3742')]),_0x4a272c[_0x5a9d93('0x88a')](_0x2ba5ed));}(_0x17788c,_0x9c840e),_0x9c840e[_0x39a8eb('0x2083')]&&_0xcc121f(_0x17788c),_0x17788c;}(_0x31f448,_0x9820ec),_0x9820ec[_0x39edd0('0x10b2')]=_0x31f448[_0x39edd0('0x8a9')],_0x185fd6=function(_0x27165f,_0x42ddca,_0x5d684e){var _0x1b7986=_0x39edd0,_0xb7b425=_0x42ddca[_0x1b7986('0xae3')]||_0x4a272c[_0x1b7986('0x2374')],_0x55070a=_0x42ddca[_0x1b7986('0x2593')]||_0x4a272c[_0x1b7986('0x2374')];try{_0xb7b425(_0x42ddca[_0x1b7986('0x1789')],_0x27165f,_0x42ddca,_0x5d684e);}catch(_0x46618c){return _0x5e4dff['reject'](_0x46618c);}return _0x5e4dff(function(_0x3eba2f,_0x49937b){var _0x50f62e=_0x1b7986;try{_0x5e4dff[_0x50f62e('0x36d1')](_0x42ddca[_0x50f62e('0x2dba')](_0x42ddca[_0x50f62e('0x1789')],_0x27165f,_0x42ddca,_0x5d684e))[_0x50f62e('0x26b5')](function(){var _0x169696=_0x50f62e;_0x55070a(_0x42ddca[_0x169696('0x1789')],_0x27165f,_0x42ddca),_0x1d5d67(),_0x3eba2f(_0x27165f);},_0x49937b);}catch(_0x1a9b49){_0x49937b(_0x1a9b49[_0x50f62e('0x3273')]);}});}(_0x57267e,_0x9820ec,_0x31f448[_0x39edd0('0x19f6')])[_0x39edd0('0x26b5')](_0xd91544,_0x1a4589);})[_0x3cab51('0x2287')](_0x1a4589);});},'remove':function(_0x29d079,_0x12e211,_0x59b148){var _0x54748a=_0x4376bd;return _0x57267e?((_0x9820ec=_0x4a272c[_0x54748a('0x237f')](_0x9820ec||{},_0x59b148||{}))[_0x54748a('0x3886')]&&_0x9820ec['cancelAutoHide'](),_0x9820ec[_0x54748a('0x88a')][_0x54748a('0x1a0f')](_0x54748a('0x136')),!0x0===_0x9820ec[_0x54748a('0x2f34')]?_0x23bfb2(_0x9820ec[_0x54748a('0x88a')],_0x9820ec)[_0x54748a('0x26b5')](function(){_0x12e211&&_0x4af928(_0x29d079)||_0x20992d(_0x29d079);}):(_0x5e4dff[_0x54748a('0x36d1')](_0x185fd6)['finally'](function(){var _0x1aa066=_0x54748a;_0x23bfb2(_0x9820ec['element'],_0x9820ec)[_0x1aa066('0x26b5')](function(){_0x12e211?_0x4af928(_0x29d079):_0x20992d(_0x29d079);},_0x4af928);}),_0x2e3a29['deferred']['promise'])):_0x5e4dff['when'](!0x1);function _0x20992d(_0x44904f){var _0x949495=_0x54748a;_0x2e3a29[_0x949495('0x1630')][_0x949495('0x16ab')](_0x44904f);}function _0x4af928(_0x2a3812){var _0x1e52fd=_0x54748a;_0x2e3a29['deferred'][_0x1e52fd('0xf51')](_0x2a3812);}}};function _0x1d5d67(){var _0x4242a5=_0x4376bd,_0x35ac5c,_0x208830=_0x4a272c[_0x4242a5('0x2374')];_0x9820ec[_0x4242a5('0x2f7c')]&&(_0x35ac5c=_0x570976(_0x5469d7['hide'],_0x9820ec['hideDelay']),_0x208830=function(){var _0x46635d=_0x4242a5;_0x570976[_0x46635d('0x31ce')](_0x35ac5c);}),_0x9820ec[_0x4242a5('0x3886')]=function(){var _0x24e710=_0x4242a5;_0x208830(),_0x9820ec[_0x24e710('0x3886')]=_0x6373f5;};}function _0x23bfb2(_0x55b3c2,_0x150cb2){var _0x5f2292=_0x4376bd,_0x2185d5=_0x150cb2[_0x5f2292('0xdab')]||_0x4a272c['noop'];return _0x5e4dff(function(_0xa34b9b,_0x4004ab){var _0x34199b=_0x5f2292;try{var _0x27202e=_0x5e4dff[_0x34199b('0x36d1')](_0x150cb2[_0x34199b('0x246f')](_0x150cb2[_0x34199b('0x1789')],_0x55b3c2,_0x150cb2)||!0x0);_0x2185d5(_0x55b3c2,_0x27202e),_0x150cb2[_0x34199b('0x2f34')]?(_0xa34b9b(_0x55b3c2),!_0x150cb2['preserveScope']&&_0x150cb2[_0x34199b('0x1789')]&&_0x27202e[_0x34199b('0x26b5')](function(){var _0x59c8ab=_0x34199b;_0x150cb2[_0x59c8ab('0x1789')]['$destroy']();})):_0x27202e[_0x34199b('0x26b5')](function(){var _0x39c04d=_0x34199b;!_0x150cb2[_0x39c04d('0xde')]&&_0x150cb2[_0x39c04d('0x1789')]&&_0x150cb2['scope'][_0x39c04d('0x2f34')](),_0xa34b9b(_0x55b3c2);},_0x4004ab);}catch(_0xf113ba){_0x4004ab(_0xf113ba[_0x34199b('0x3273')]);}});}}};}}),function(){var _0x99e676=_0x1fb7d4,_0x49a20e,_0x1c7d28,_0x55d6c2,_0x5509b2=/(-gt)?-(sm|md|lg|print)/g,_0x18f441=/\s+/g,_0x3830dd=[_0x99e676('0x351f'),_0x99e676('0x3424'),_0x99e676('0x1ae7'),'none','noshrink',_0x99e676('0x275b')],_0x8ef60f=[_0x99e676('0x148a'),_0x99e676('0x364d')],_0x2d635b=['',_0x99e676('0x21ef'),'center','end','stretch',_0x99e676('0x15dc'),_0x99e676('0x3062')],_0x2a2a0e=['',_0x99e676('0x21ef'),_0x99e676('0x159f'),_0x99e676('0x20ae'),_0x99e676('0xf14')],_0x1f3c7b={'enabled':!0x0,'breakpoints':[]};function _0x3059cd(){var _0x3fdd05=_0x99e676,_0x230dde=!!document[_0x3fdd05('0x2cee')](_0x3fdd05('0x9d6'));_0x1f3c7b[_0x3fdd05('0x25f9')]=!_0x230dde;}function _0x2f1c34(){var _0x555235=_0x99e676;return _0x1f3c7b['enabled']=!0x1,{'restrict':'A','priority':_0x555235('0x2dbe')};}function _0x4b4d11(_0x3b97ac){var _0x1b51b3=_0x99e676;return[_0x1b51b3('0x2e27'),'$interpolate','$log',function(_0x5cda85,_0x30ddc4,_0x3ee3ab){return _0x49a20e=_0x5cda85,_0x1c7d28=_0x30ddc4,_0x55d6c2=_0x3ee3ab,{'restrict':'A','compile':function(_0x591ec7,_0x5a5228){var _0x34f6be=a2_0x4bfe,_0x9a09c9;return _0x1f3c7b[_0x34f6be('0x25f9')]&&(_0x356570(_0x3b97ac,_0x3475ec(_0x3b97ac,_0x5a5228,''),_0x44e7e8(0x0,_0x3b97ac,_0x5a5228)),_0x2470ec(0x0,_0x591ec7),_0x9a09c9=_0x2470ec),_0x9a09c9||_0x4a272c[_0x34f6be('0x2374')];}};}];function _0x2470ec(_0x541dc6,_0x3054fe){var _0x531c08=_0x1b51b3;_0x3054fe[_0x531c08('0x2dc8')](_0x3b97ac);}}function _0x3cebca(_0x32d05b){var _0x1774e1=_0x99e676,_0x105e90=_0x32d05b[_0x1774e1('0x23ee')]('-');return[_0x1774e1('0x38a3'),function(_0x74e63){var _0x3d7574=_0x1774e1;return _0x74e63[_0x3d7574('0x8fa')](_0x32d05b+_0x3d7574('0xf8e')+_0x105e90[0x0]+_0x3d7574('0x29b1')),_0x4a272c[_0x3d7574('0x2374')];}];}function _0x89ad7(_0x2c084c,_0x32814c,_0x578492,_0x1710f6){var _0x5f18ef=_0x99e676,_0x4f9a9d,_0x4315fe=_0x578492[0x0]['nodeName'][_0x5f18ef('0x856')]();switch(_0x2c084c[_0x5f18ef('0x34c8')](_0x5509b2,'')){case _0x5f18ef('0x390b'):_0x5f18ef('0x2d87')!=_0x4315fe&&'fieldset'!=_0x4315fe||(_0x4f9a9d='<'+_0x4315fe+'\x20'+_0x2c084c+_0x5f18ef('0x2797')+_0x4315fe+'>',_0x1710f6['warn'](_0x49a20e['supplant'](_0x5f18ef('0x157e'),[_0x4f9a9d,'https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers'])));}}function _0x356570(_0x382142,_0x1f7beb,_0x5c2e20){var _0x29fdc3=_0x99e676,_0x294d1b=_0x1f7beb;if(!_0x1103c6(_0x1f7beb)){switch(_0x382142[_0x29fdc3('0x34c8')](_0x5509b2,'')){case _0x29fdc3('0x2d68'):_0x1fbbcd(_0x1f7beb,_0x8ef60f)||(_0x1f7beb=_0x8ef60f[0x0]);break;case _0x29fdc3('0x390b'):_0x1fbbcd(_0x1f7beb,_0x3830dd)||isNaN(_0x1f7beb)&&(_0x1f7beb='');break;case _0x29fdc3('0xdb3'):case _0x29fdc3('0x3735'):_0x1f7beb&&!isNaN(+_0x1f7beb)||(_0x1f7beb='0');break;case _0x29fdc3('0x3235'):var _0x355d6e=function(_0x4eea05){var _0x1c0e77=_0x29fdc3,_0x200a8c,_0x90b2e1={'main':_0x1c0e77('0x21ef'),'cross':'stretch'};return 0x0!==(_0x4eea05=_0x4eea05||'')[_0x1c0e77('0xe1c')]('-')&&0x0!==_0x4eea05[_0x1c0e77('0xe1c')]('\x20')||(_0x4eea05='none'+_0x4eea05),(_0x200a8c=_0x4eea05[_0x1c0e77('0x856')]()[_0x1c0e77('0x2ec5')]()[_0x1c0e77('0x34c8')](_0x18f441,'-')['split']('-'))[_0x1c0e77('0x175a')]&&_0x1c0e77('0x2045')===_0x200a8c[0x0]&&(_0x200a8c=[_0x200a8c[0x0]+'-'+_0x200a8c[0x1],_0x200a8c[0x2]]),_0x200a8c[_0x1c0e77('0x175a')]>0x0&&(_0x90b2e1[_0x1c0e77('0xd20')]=_0x200a8c[0x0]||_0x90b2e1[_0x1c0e77('0xd20')]),_0x200a8c[_0x1c0e77('0x175a')]>0x1&&(_0x90b2e1[_0x1c0e77('0x3765')]=_0x200a8c[0x1]||_0x90b2e1[_0x1c0e77('0x3765')]),_0x2d635b[_0x1c0e77('0xe1c')](_0x90b2e1[_0x1c0e77('0xd20')])<0x0&&(_0x90b2e1['main']=_0x1c0e77('0x21ef')),_0x2a2a0e[_0x1c0e77('0xe1c')](_0x90b2e1[_0x1c0e77('0x3765')])<0x0&&(_0x90b2e1['cross']=_0x1c0e77('0xf14')),_0x90b2e1;}(_0x1f7beb);_0x1f7beb=_0x49a20e[_0x29fdc3('0x1f28')](_0x29fdc3('0x11a8'),_0x355d6e);break;case _0x29fdc3('0x823'):case _0x29fdc3('0x2228'):case _0x29fdc3('0x6c8'):case _0x29fdc3('0x2344'):case _0x29fdc3('0x2461'):_0x1f7beb='';}_0x1f7beb!=_0x294d1b&&(_0x5c2e20||_0x4a272c['noop'])(_0x1f7beb);}return _0x1f7beb?_0x1f7beb['trim']():'';}function _0x44e7e8(_0x4af933,_0x125799,_0x5f44ed){return function(_0x221ea2){var _0x2593dd=a2_0x4bfe;_0x1103c6(_0x221ea2)||(_0x5f44ed[_0x5f44ed[_0x2593dd('0x318b')](_0x125799)]=_0x221ea2);};}function _0x1103c6(_0xc81518){var _0x941746=_0x99e676;return(_0xc81518||'')[_0x941746('0xe1c')](_0x1c7d28[_0x941746('0x298')]())>-0x1;}function _0x3475ec(_0x544be4,_0x4a59c5,_0x459c67){var _0x55e61f=_0x99e676,_0xe39ef5=_0x4a59c5[_0x55e61f('0x318b')](_0x544be4);return _0x4a59c5[_0xe39ef5]?_0x4a59c5[_0xe39ef5][_0x55e61f('0x2ec5')]()[_0x55e61f('0x34c8')](_0x18f441,'-'):_0x459c67||null;}function _0x1fbbcd(_0x4ccefa,_0xc17765,_0x53fef9){var _0x2d0006=_0x99e676;_0x4ccefa=_0x53fef9&&_0x4ccefa?_0x4ccefa[_0x2d0006('0x34c8')](_0x18f441,_0x53fef9):_0x4ccefa;var _0x3f1bb4=!0x1;return _0x4ccefa&&_0xc17765[_0x2d0006('0x247d')](function(_0x49d35c){_0x49d35c=_0x53fef9?_0x49d35c['replace'](_0x18f441,_0x53fef9):_0x49d35c,_0x3f1bb4=_0x3f1bb4||_0x49d35c===_0x4ccefa;}),_0x3f1bb4;}!function(_0x11e4db){var _0x198017=_0x99e676,_0x27d87f,_0x2ecc66=/^((?:x|data)[:\-_])/i,_0x39c5a7=/([:\-_]+(.))/g,_0x367ccd=[_0x198017('0x2d68'),'flex',_0x198017('0x3735'),_0x198017('0xdb3'),'layout-align'],_0x584fcd=[_0x198017('0x4ae'),_0x198017('0xf26'),_0x198017('0x823'),_0x198017('0x2228')];function _0x49e81f(_0x257ba0){return _0x257ba0['replace'](_0x2ecc66,'')['replace'](_0x39c5a7,function(_0x20e998,_0x496f58,_0x598901,_0x58d629){var _0xb671e8=a2_0x4bfe;return _0x58d629?_0x598901[_0xb671e8('0x1a66')]():_0x598901;});}_0x4a272c[_0x198017('0x247d')](['','xs',_0x198017('0x2d1c'),'sm',_0x198017('0x1e9a'),'md','gt-md','lg',_0x198017('0x10b1'),'xl',_0x198017('0x2913')],function(_0x43e2d5){var _0x43a205=_0x198017;_0x4a272c[_0x43a205('0x247d')](_0x367ccd,function(_0x4a044c){var _0xe40934=_0x43a205,_0x357845=_0x43e2d5?_0x4a044c+'-'+_0x43e2d5:_0x4a044c;_0x11e4db[_0xe40934('0x1e30')](_0x49e81f(_0x357845),function(_0x44eed6){var _0x3aade0=_0xe40934;return[_0x3aade0('0x2e27'),_0x3aade0('0x2476'),_0x3aade0('0x38a3'),function(_0x58dc22,_0x36bbd3,_0x4b8db1){return _0x49a20e=_0x58dc22,_0x1c7d28=_0x36bbd3,_0x55d6c2=_0x4b8db1,{'restrict':'A','compile':function(_0x51e91b,_0x3b9587){var _0x57083a=a2_0x4bfe,_0x453d8b;return _0x1f3c7b[_0x57083a('0x25f9')]&&(_0x89ad7(_0x44eed6,0x0,_0x51e91b,_0x55d6c2),_0x356570(_0x44eed6,_0x3475ec(_0x44eed6,_0x3b9587,''),_0x44e7e8(0x0,_0x44eed6,_0x3b9587)),_0x453d8b=_0x3554b9),_0x453d8b||_0x4a272c[_0x57083a('0x2374')];}};}];function _0x3554b9(_0x30ea45,_0x13c29c,_0x1c5221){var _0x3a85a5=_0x3aade0,_0x4bcee2=function(_0x1a7406,_0x3486c3){var _0x1a3c56;return function(_0x4a74a7){var _0x565842=a2_0x4bfe,_0x5b5f45=_0x356570(_0x3486c3,_0x4a74a7||'');_0x4a272c['isDefined'](_0x5b5f45)&&(_0x1a3c56&&_0x1a7406[_0x565842('0x3a0')](_0x1a3c56),_0x1a3c56=_0x5b5f45?_0x3486c3+'-'+_0x5b5f45['trim']()[_0x565842('0x34c8')](_0x18f441,'-'):_0x3486c3,_0x1a7406['addClass'](_0x1a3c56));};}(_0x13c29c,_0x44eed6),_0x236c14=_0x1c5221[_0x3a85a5('0x2838')](_0x1c5221[_0x3a85a5('0x318b')](_0x44eed6),_0x4bcee2);_0x4bcee2(_0x3475ec(_0x44eed6,_0x1c5221,'')),_0x30ea45[_0x3a85a5('0x1db8')](_0x3a85a5('0x2f34'),function(){_0x236c14();});}}(_0x357845));}),_0x4a272c[_0x43a205('0x247d')](_0x584fcd,function(_0x52dd87){var _0x9de01e=_0x43a205,_0x390bcf=_0x43e2d5?_0x52dd87+'-'+_0x43e2d5:_0x52dd87;_0x11e4db[_0x9de01e('0x1e30')](_0x49e81f(_0x390bcf),_0x4b4d11(_0x390bcf));});}),_0x11e4db[_0x198017('0x210d')](_0x198017('0x2140'),function(){var _0x20575a=_0x198017;return{'$get':_0x4a272c[_0x20575a('0x2374')],'validateAttributeValue':_0x356570,'validateAttributeUsage':_0x89ad7,'disableLayouts':function(_0x28cffb){var _0x18343c=_0x20575a;_0x1f3c7b[_0x18343c('0x25f9')]=!0x0!==_0x28cffb;}};})[_0x198017('0x1e30')]('mdLayoutCss',_0x2f1c34)[_0x198017('0x1e30')]('ngCloak',(_0x27d87f='ng-cloak',['$timeout',function(_0x3c662c){return{'restrict':'A','priority':-0xa,'compile':function(_0x5293a0){var _0x2bc4f7=a2_0x4bfe;return _0x1f3c7b[_0x2bc4f7('0x25f9')]?(_0x5293a0[_0x2bc4f7('0x2dc8')](_0x27d87f),function(_0x17c3dd,_0x1b083b){_0x3c662c(function(){var _0x7e9d32=a2_0x4bfe;_0x1b083b[_0x7e9d32('0x3a0')](_0x27d87f);},0xa,!0x1);}):_0x4a272c[_0x2bc4f7('0x2374')];}};}]))['directive'](_0x198017('0x29ed'),_0x4b4d11('layout-wrap'))[_0x198017('0x1e30')](_0x198017('0x2dbf'),_0x4b4d11(_0x198017('0x2461')))[_0x198017('0x1e30')](_0x198017('0x183a'),_0x4b4d11(_0x198017('0x10ab')))[_0x198017('0x1e30')](_0x198017('0x30f0'),_0x4b4d11(_0x198017('0x6c8')))[_0x198017('0x1e30')](_0x198017('0xa96'),_0x3cebca(_0x198017('0x1d0f')))['directive']('layoutLtLg',_0x3cebca(_0x198017('0x340')))['directive'](_0x198017('0x2ba7'),_0x3cebca('flex-lt-md'))['directive']('flexLtLg',_0x3cebca(_0x198017('0x30a8')))[_0x198017('0x1e30')](_0x198017('0x4de'),_0x3cebca(_0x198017('0xce0')))[_0x198017('0x1e30')](_0x198017('0x166e'),_0x3cebca(_0x198017('0x676')))[_0x198017('0x1e30')]('flexOrderLtMd',_0x3cebca(_0x198017('0x7e0')))[_0x198017('0x1e30')](_0x198017('0x1d0'),_0x3cebca('flex-order-lt-lg'))[_0x198017('0x1e30')](_0x198017('0xa70'),_0x3cebca(_0x198017('0x31a4')))[_0x198017('0x1e30')](_0x198017('0x1575'),_0x3cebca(_0x198017('0x6a4')))[_0x198017('0x1e30')](_0x198017('0x163c'),_0x3cebca(_0x198017('0xa17')))['directive'](_0x198017('0x27d5'),_0x3cebca(_0x198017('0x2d28')))['directive'](_0x198017('0x3960'),_0x3cebca(_0x198017('0x17c9')))[_0x198017('0x1e30')]('showLtLg',_0x3cebca(_0x198017('0x2e5f')))[_0x198017('0x3486')](_0x3059cd);}(_0x4a272c[_0x99e676('0x122c')]('material.core.layout',['ng']));}(),function(){var _0x3c372b=_0x1fb7d4;function _0x2642d6(_0x4333b3){var _0x2b4c02=a2_0x4bfe;this[_0x2b4c02('0x3152')]=_0x4333b3,this['_liveElement']=this[_0x2b4c02('0x25a0')](),this[_0x2b4c02('0xeb7')]=0x64;}_0x2642d6[_0x3c372b('0x28c9')]=[_0x3c372b('0x1993')],_0x4a272c['module'](_0x3c372b('0x113c'))[_0x3c372b('0x3897')](_0x3c372b('0x1b01'),_0x2642d6),_0x2642d6[_0x3c372b('0x5a')][_0x3c372b('0xa14')]=function(_0x44d799,_0x553f49){var _0x2101e8=_0x3c372b;_0x553f49||(_0x553f49=_0x2101e8('0x31be'));var _0x411eac=this;_0x411eac[_0x2101e8('0x33c2')][_0x2101e8('0x2c5f')]='',_0x411eac['_liveElement'][_0x2101e8('0xb10')](_0x2101e8('0x2ed6'),_0x553f49),_0x411eac[_0x2101e8('0x3152')](function(){var _0x2e6138=_0x2101e8;_0x411eac[_0x2e6138('0x33c2')][_0x2e6138('0x2c5f')]=_0x44d799;},_0x411eac[_0x2101e8('0xeb7')],!0x1);},_0x2642d6[_0x3c372b('0x5a')][_0x3c372b('0x25a0')]=function(){var _0x3793e5=_0x3c372b,_0x245d8c=document[_0x3793e5('0x264c')](_0x3793e5('0x1917'));return _0x245d8c['classList']['add'](_0x3793e5('0x1547')),_0x245d8c[_0x3793e5('0xb10')]('role',_0x3793e5('0x2867')),_0x245d8c[_0x3793e5('0xb10')]('aria-atomic',_0x3793e5('0x11cf')),_0x245d8c[_0x3793e5('0xb10')](_0x3793e5('0x2ed6'),_0x3793e5('0x31be')),document['body'][_0x3793e5('0x37f2')](_0x245d8c),_0x245d8c;};}(),_0x4a272c['module']('material.core.meta',[])['provider']('$$mdMeta',function(){var _0x3748b2=_0x1fb7d4,_0x18a9ee=_0x4a272c[_0x3748b2('0x88a')](document['head']),_0x501178={};function _0x45a132(_0x20b2c9){var _0x534698=_0x3748b2;if(_0x501178[_0x20b2c9])return!0x0;var _0x132695=document[_0x534698('0x107c')](_0x20b2c9)[0x0];return!!_0x132695&&(_0x501178[_0x20b2c9]=_0x4a272c[_0x534698('0x88a')](_0x132695),!0x0);}var _0x4f14dc={'setMeta':function(_0x43cfee,_0x21767f){var _0x1e642f=_0x3748b2;if(_0x45a132(_0x43cfee),_0x501178[_0x43cfee])_0x501178[_0x43cfee][_0x1e642f('0x1e52')](_0x1e642f('0x3a3'),_0x21767f);else{var _0x33e040=_0x4a272c['element'](_0x1e642f('0x2bb9')+_0x43cfee+_0x1e642f('0x217e')+_0x21767f+_0x1e642f('0xdc4'));_0x18a9ee[_0x1e642f('0x10f')](_0x33e040),_0x501178[_0x43cfee]=_0x33e040;}return function(){var _0x5eabdb=_0x1e642f;_0x501178[_0x43cfee][_0x5eabdb('0x1e52')](_0x5eabdb('0x3a3'),''),_0x501178[_0x43cfee][_0x5eabdb('0x2371')](),delete _0x501178[_0x43cfee];};},'getMeta':function(_0x229ace){var _0x2a5e3b=_0x3748b2;if(!_0x45a132(_0x229ace))throw Error('$$mdMeta:\x20could\x20not\x20find\x20a\x20meta\x20tag\x20with\x20the\x20name\x20\x27'+_0x229ace+'\x27');return _0x501178[_0x229ace][_0x2a5e3b('0x1e52')](_0x2a5e3b('0x3a3'));}};return _0x4a272c[_0x3748b2('0x237f')]({},_0x4f14dc,{'$get':function(){return _0x4f14dc;}});}),function(){var _0x4917fc=_0x1fb7d4;function _0x58ec6d(_0x5e18e8,_0x51f262){var _0x2b166b,_0x52097a=[],_0x156aca={};return _0x2b166b={'notFoundError':function(_0x46e677,_0x467505){var _0x319941=a2_0x4bfe;_0x5e18e8[_0x319941('0x2534')]((_0x467505||'')+'No\x20instance\x20found\x20for\x20handle',_0x46e677);},'getInstances':function(){return _0x52097a;},'get':function(_0x28b6e8){if(!_0x26bd19(_0x28b6e8))return null;var _0x48aa11,_0x4fbd8e,_0x3de4e7;for(_0x48aa11=0x0,_0x4fbd8e=_0x52097a['length'];_0x48aa11<_0x4fbd8e;_0x48aa11++)if((_0x3de4e7=_0x52097a[_0x48aa11])['$$mdHandle']===_0x28b6e8)return _0x3de4e7;return null;},'register':function(_0x11bc5c,_0x1eb8b8){var _0x450c89=a2_0x4bfe;return _0x1eb8b8?(_0x11bc5c['$$mdHandle']=_0x1eb8b8,_0x52097a[_0x450c89('0x1a90')](_0x11bc5c),(_0x4319cd=_0x156aca[_0x1eb8b8])&&(_0x4319cd[_0x450c89('0x247d')](function(_0x555ac0){var _0x1714e8=_0x450c89;_0x555ac0[_0x1714e8('0x16ab')](_0x11bc5c);}),delete _0x156aca[_0x1eb8b8]),function(){var _0x28caf3=_0x450c89,_0x4503bf=_0x52097a[_0x28caf3('0xe1c')](_0x11bc5c);-0x1!==_0x4503bf&&_0x52097a['splice'](_0x4503bf,0x1);}):_0x4a272c['noop'];var _0x4319cd;},'when':function(_0x371efe){var _0x5730ba=a2_0x4bfe;if(_0x26bd19(_0x371efe)){var _0x349aa1=_0x51f262[_0x5730ba('0xc99')](),_0x2c0720=_0x2b166b['get'](_0x371efe);return _0x2c0720?_0x349aa1[_0x5730ba('0x16ab')](_0x2c0720):(_0x156aca[_0x371efe]===_0x6373f5&&(_0x156aca[_0x371efe]=[]),_0x156aca[_0x371efe][_0x5730ba('0x1a90')](_0x349aa1)),_0x349aa1[_0x5730ba('0x34a6')];}return _0x51f262[_0x5730ba('0xf51')]('Invalid\x20`md-component-id`\x20value.');}};function _0x26bd19(_0x1f9da4){return _0x1f9da4&&''!==_0x1f9da4;}}_0x58ec6d['$inject']=[_0x4917fc('0x38a3'),'$q'],_0x4a272c[_0x4917fc('0x122c')](_0x4917fc('0x113c'))[_0x4917fc('0x36b0')](_0x4917fc('0x1be2'),_0x58ec6d);}(),function(){var _0x187d7a=_0x1fb7d4;function _0x1e890d(_0x331a42){return{'attach':function(_0x1768d5,_0x3450fa,_0x3e3dee){var _0x44145=a2_0x4bfe;return _0x3e3dee=_0x4a272c[_0x44145('0x237f')](function(_0x5c5625){var _0x5e3ae6=_0x44145;return _0x5c5625[_0x5e3ae6('0x522')]('md-icon-button')?{'isMenuItem':_0x5c5625['hasClass'](_0x5e3ae6('0x1600')),'fitRipple':!0x0,'center':!0x0}:{'isMenuItem':_0x5c5625[_0x5e3ae6('0x522')](_0x5e3ae6('0x1600')),'dimBackground':!0x0};}(_0x3450fa),_0x3e3dee),_0x331a42[_0x44145('0x1a76')](_0x1768d5,_0x3450fa,_0x3e3dee);}};}_0x1e890d[_0x187d7a('0x28c9')]=[_0x187d7a('0xc96')],_0x4a272c[_0x187d7a('0x122c')](_0x187d7a('0x113c'))[_0x187d7a('0x36b0')](_0x187d7a('0x108e'),_0x1e890d);}(),function(){var _0x58c87c=_0x1fb7d4;function _0x442fb3(_0x509864){return{'attach':function(_0x34b593,_0x4fb5bf,_0x2836b2){var _0x391650=a2_0x4bfe;return _0x509864[_0x391650('0x1a76')](_0x34b593,_0x4fb5bf,_0x4a272c[_0x391650('0x237f')]({'center':!0x0,'dimBackground':!0x1,'fitRipple':!0x0},_0x2836b2));}};}_0x442fb3[_0x58c87c('0x28c9')]=[_0x58c87c('0xc96')],_0x4a272c[_0x58c87c('0x122c')](_0x58c87c('0x113c'))['factory'](_0x58c87c('0x1062'),_0x442fb3);}(),function(){var _0x31fa2e=_0x1fb7d4;function _0x4d5792(_0x313586){return{'attach':function(_0x4b59ec,_0x1d72dd,_0x6a6f3a){var _0x113b52=a2_0x4bfe;return _0x313586[_0x113b52('0x1a76')](_0x4b59ec,_0x1d72dd,_0x4a272c['extend']({'center':!0x1,'dimBackground':!0x0,'outline':!0x1,'rippleSize':_0x113b52('0x10ff')},_0x6a6f3a));}};}_0x4d5792[_0x31fa2e('0x28c9')]=[_0x31fa2e('0xc96')],_0x4a272c[_0x31fa2e('0x122c')](_0x31fa2e('0x113c'))[_0x31fa2e('0x36b0')](_0x31fa2e('0x225d'),_0x4d5792);}(),function(){var _0x47878f=_0x1fb7d4;_0x100f9d[_0x47878f('0x28c9')]=[_0x47878f('0x1868'),_0x47878f('0x34d6'),_0x47878f('0x21b1'),'$window',_0x47878f('0x1993'),_0x47878f('0x2e27'),_0x47878f('0x1cfd')],_0x24738a[_0x47878f('0x28c9')]=[_0x47878f('0x108e'),_0x47878f('0x1062')],_0x4a272c[_0x47878f('0x122c')]('material.core')[_0x47878f('0x210d')](_0x47878f('0xc96'),function(){var _0x5608e4=_0x47878f,_0x1a875a=!0x1;return{'disableInkRipple':function(){_0x1a875a=!0x0;},'$get':[_0x5608e4('0x345b'),function(_0x54699a){return{'attach':function(_0x5d1497,_0x31854d,_0x222bf8){var _0x2f00b6=a2_0x4bfe;return _0x1a875a||_0x31854d[_0x2f00b6('0x19f6')]('mdNoInk')?_0x4a272c[_0x2f00b6('0x2374')]:_0x54699a['instantiate'](_0x100f9d,{'$scope':_0x5d1497,'$element':_0x31854d,'rippleOptions':_0x222bf8});}};}]};})[_0x47878f('0x1e30')]('mdInkRipple',_0x24738a)[_0x47878f('0x1e30')](_0x47878f('0x495'),_0x16d831)[_0x47878f('0x1e30')](_0x47878f('0x2d51'),_0x16d831)[_0x47878f('0x1e30')](_0x47878f('0x1f76'),_0x16d831);function _0x24738a(_0x146c46,_0x48504d){return{'controller':_0x4a272c['noop'],'link':function(_0x4f35b8,_0x39983a,_0x4c5d1f){var _0x137e37=a2_0x4bfe;_0x4c5d1f['hasOwnProperty'](_0x137e37('0x8e6'))?_0x48504d['attach'](_0x4f35b8,_0x39983a):_0x146c46['attach'](_0x4f35b8,_0x39983a);}};}function _0x100f9d(_0x5e2c0f,_0xfeb3d8,_0x26f471,_0x46cc16,_0x5ab92d,_0x3b5ff6,_0x5839a5){var _0x5a8966=_0x47878f;this[_0x5a8966('0x398e')]=_0x46cc16,this[_0x5a8966('0x1993')]=_0x5ab92d,this['$mdUtil']=_0x3b5ff6,this[_0x5a8966('0x1cfd')]=_0x5839a5,this['$scope']=_0x5e2c0f,this[_0x5a8966('0x34d6')]=_0xfeb3d8,this[_0x5a8966('0xded')]=_0x26f471,this[_0x5a8966('0x15e3')]=!0x1,this[_0x5a8966('0x130')]=[],this[_0x5a8966('0xbd0')]=null,this['lastRipple']=null,_0x3b5ff6[_0x5a8966('0x1132')](this,'container',this[_0x5a8966('0x1fed')]),this[_0x5a8966('0x34d6')][_0x5a8966('0x2dc8')](_0x5a8966('0x1631')),(_0xfeb3d8['controller']('mdInkRipple')||{})['createRipple']=_0x4a272c[_0x5a8966('0x1ecd')](this,this[_0x5a8966('0x581')]),(_0xfeb3d8['controller'](_0x5a8966('0xf6'))||{})[_0x5a8966('0xdf4')]=_0x4a272c[_0x5a8966('0x1ecd')](this,this['color']),this[_0x5a8966('0x176c')]();}function _0x39d0eb(_0x1c1c1e,_0xda873d){var _0x33974e=_0x47878f;(_0x1c1c1e[_0x33974e('0x15e3')]||_0x1c1c1e[_0x33974e('0x3709')])&&(_0x1c1c1e[_0x33974e('0x15e3')]=!0x1,_0x1c1c1e[_0x33974e('0x2e27')][_0x33974e('0x2baa')](_0x4a272c[_0x33974e('0x1ecd')](_0x1c1c1e,_0xda873d),!0x1));}function _0x16d831(){return{'controller':_0x4a272c['noop']};}_0x100f9d['prototype']['color']=function(_0x242774){var _0x1661c3=_0x47878f,_0x32f8c6,_0x42c0a9,_0x5d4818=this;return _0x4a272c[_0x1661c3('0x392d')](_0x242774)&&(_0x5d4818['_color']=_0x5d4818[_0x1661c3('0x2bbe')](_0x242774)),_0x5d4818[_0x1661c3('0x567')]||_0x5d4818[_0x1661c3('0x2bbe')](_0x5d4818['inkRipple']())||_0x5d4818['_parseColor']((_0x32f8c6=_0x5d4818['options']&&_0x5d4818[_0x1661c3('0xded')][_0x1661c3('0x3801')]?_0x5d4818['options']['colorElement']:[],(_0x42c0a9=_0x32f8c6[_0x1661c3('0x175a')]?_0x32f8c6[0x0]:_0x5d4818[_0x1661c3('0x34d6')][0x0])?_0x5d4818[_0x1661c3('0x398e')][_0x1661c3('0x2a5c')](_0x42c0a9)[_0x1661c3('0x2dcb')]:_0x1661c3('0x26d8')));},_0x100f9d[_0x47878f('0x5a')][_0x47878f('0x2a96')]=function(){return this['color']();},_0x100f9d[_0x47878f('0x5a')][_0x47878f('0x2bbe')]=function(_0x41bda7,_0x4de377){var _0x4cfb30=_0x47878f;_0x4de377=_0x4de377||0x1;var _0x25e632=this['$mdColorUtil'];if(_0x41bda7)return 0x0===_0x41bda7[_0x4cfb30('0xe1c')](_0x4cfb30('0x2f7b'))?_0x41bda7[_0x4cfb30('0x34c8')](/\d?\.?\d*\s*\)\s*$/,(0.1*_0x4de377)[_0x4cfb30('0x6ef')]()+')'):0x0===_0x41bda7[_0x4cfb30('0xe1c')](_0x4cfb30('0x115e'))?_0x25e632[_0x4cfb30('0x367e')](_0x41bda7):0x0===_0x41bda7[_0x4cfb30('0xe1c')]('#')?_0x25e632[_0x4cfb30('0x11b2')](_0x41bda7):void 0x0;},_0x100f9d[_0x47878f('0x5a')]['bindEvents']=function(){var _0xa25f61=_0x47878f;this['$element']['on'](_0xa25f61('0x15e3'),_0x4a272c[_0xa25f61('0x1ecd')](this,this[_0xa25f61('0x1a87')])),this[_0xa25f61('0x34d6')]['on']('mouseup\x20touchend',_0x4a272c['bind'](this,this[_0xa25f61('0x208f')])),this[_0xa25f61('0x34d6')]['on'](_0xa25f61('0x5c9'),_0x4a272c[_0xa25f61('0x1ecd')](this,this[_0xa25f61('0x208f')])),this[_0xa25f61('0x34d6')]['on'](_0xa25f61('0xca0'),_0x4a272c['bind'](this,this[_0xa25f61('0x66a')]));},_0x100f9d[_0x47878f('0x5a')][_0x47878f('0x1a87')]=function(_0x48673c){var _0x4f4ce4=_0x47878f;if(!this[_0x4f4ce4('0x15e3')]){if(_0x48673c['hasOwnProperty'](_0x4f4ce4('0x2439'))&&(_0x48673c=_0x48673c[_0x4f4ce4('0x2439')]),this[_0x4f4ce4('0x15e3')]=!0x0,this[_0x4f4ce4('0xded')][_0x4f4ce4('0x159f')])this[_0x4f4ce4('0x581')](this[_0x4f4ce4('0xbac')][_0x4f4ce4('0x18f6')](_0x4f4ce4('0x1473'))/0x2,this['container'][_0x4f4ce4('0x18f6')]('clientWidth')/0x2);else{if(_0x48673c[_0x4f4ce4('0x2e44')]!==this['$element'][0x0]){var _0x326e28=this[_0x4f4ce4('0x34d6')][0x0][_0x4f4ce4('0x2748')](),_0x75bb4a=_0x48673c['clientX']-_0x326e28[_0x4f4ce4('0x1d75')],_0x538b96=_0x48673c[_0x4f4ce4('0x304f')]-_0x326e28['top'];this['createRipple'](_0x75bb4a,_0x538b96);}else this[_0x4f4ce4('0x581')](_0x48673c['offsetX'],_0x48673c[_0x4f4ce4('0x1b99')]);}}},_0x100f9d['prototype'][_0x47878f('0x208f')]=function(){var _0x4ce7f1=_0x47878f;this[_0x4ce7f1('0x1993')](function(){var _0x42ac14=_0x4ce7f1;_0x39d0eb(this,this[_0x42ac14('0x39af')]);}[_0x4ce7f1('0x1ecd')](this));},_0x100f9d[_0x47878f('0x5a')]['handleTouchmove']=function(){_0x39d0eb(this,this['deleteRipples']);},_0x100f9d[_0x47878f('0x5a')]['deleteRipples']=function(){var _0x3aa8c8=_0x47878f;for(var _0x425ef2=0x0;_0x425ef2-0x1&&_0xc2abf9['splice'](_0x360226,0x1);};},'$setTheme':function(_0x2e1bcc){var _0x104218=_0x1e4211;_0x51debc[_0x104218('0x2018')](_0x2e1bcc)||_0x1a2084[_0x104218('0x8fa')](_0x104218('0x1072')+_0x2e1bcc+'\x27'),_0x4c9e29[_0x104218('0x1680')]=_0x2e1bcc;for(var _0xfeb468=_0xc2abf9[_0x104218('0x175a')];_0xfeb468--;)_0xc2abf9[_0xfeb468](_0x2e1bcc);},'$shouldWatch':_0x1f6dbd[_0x1e4211('0x3471')](_0x7928a8[_0x1e4211('0x1e52')](_0x1e4211('0x1298')))||_0x51debc[_0x1e4211('0x9fb')]||_0x2655f9&&!_0x135ad5};_0x7928a8[_0x1e4211('0xcee')](_0x1e4211('0x1cf4'),_0x4c9e29);var _0x95fd42=function(_0x35e7ce){var _0x4f6a6c=_0x1e4211;if(_0x4f6a6c('0x151d')==typeof _0x35e7ce)return _0x4c9e29[_0x4f6a6c('0x1ca5')](_0x35e7ce);_0x10baa4[_0x4f6a6c('0x36d1')](_0xc28638[_0x4f6a6c('0x1e34')](_0x35e7ce)?_0x35e7ce():_0x35e7ce)[_0x4f6a6c('0x26b5')](function(_0x2bb1be){var _0x39aee5=_0x4f6a6c;_0x4c9e29[_0x39aee5('0x1ca5')](_0x2bb1be);});};_0x95fd42(_0x4caed2());var _0x2b2c49=_0x13873a[_0x1e4211('0x1cb1')](_0x4caed2,function(_0x2e57d9){var _0x3047ba=_0x1e4211;_0x2e57d9&&(_0x95fd42(_0x2e57d9),_0x4c9e29[_0x3047ba('0x19c1')]||_0x2b2c49());});}}};}function _0x4096e8(_0x1dfabf){return _0x1dfabf;}function _0xa64f91(_0x5b72b7,_0x1ee7fa,_0x22bb33){var _0x4956e6=_0x2da268;!function(_0x2b28c2,_0x1d5b52){var _0x5d2489=a2_0x4bfe;if(!_0x5001a7[(_0x2b28c2[_0x5d2489('0x1254')][_0x1d5b52]||{})[_0x5d2489('0x455')]])throw new Error('You\x20supplied\x20an\x20invalid\x20color\x20palette\x20for\x20theme\x20%1\x27s\x20%2\x20palette.\x20Available\x20palettes:\x20%3'[_0x5d2489('0x34c8')]('%1',_0x2b28c2['name'])[_0x5d2489('0x34c8')]('%2',_0x1d5b52)[_0x5d2489('0x34c8')]('%3',Object[_0x5d2489('0x1a3f')](_0x5001a7)[_0x5d2489('0x6a8')](',\x20')));}(_0x5b72b7,_0x1ee7fa),_0x22bb33=_0x22bb33[_0x4956e6('0x34c8')](/THEME_NAME/g,_0x5b72b7[_0x4956e6('0x455')]);var _0x1b1469=new RegExp(_0x4956e6('0x2a12')+_0x5b72b7[_0x4956e6('0x455')]+_0x4956e6('0x17e6'),'g');_0x22bb33=_0x22bb33['replace'](/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,function(_0x228510,_0x1adb92,_0x5b11fd,_0x10bfcb,_0x321924){var _0x299f6e=_0x4956e6;return _0x299f6e('0x1087')===_0x1adb92?_0x299f6e('0x1c4f')==_0x5b11fd?_0x5b72b7['foregroundShadow']:_0x5b72b7[_0x299f6e('0x2c9f')][_0x5b11fd]||_0x5b72b7['foregroundPalette'][0x1]:(0x0!==_0x5b11fd[_0x299f6e('0xe1c')](_0x299f6e('0x1dc1'))&&'default'!==_0x5b11fd||(_0x5b11fd=_0x5b72b7[_0x299f6e('0x1254')][_0x1adb92][_0x299f6e('0x32db')][_0x5b11fd]),_0x33e55f((_0x5001a7[_0x5b72b7[_0x299f6e('0x1254')][_0x1adb92][_0x299f6e('0x455')]][_0x5b11fd]||'')[_0x321924?_0x299f6e('0x4b0'):'value'],_0x10bfcb));});var _0x346122=new RegExp(_0x4956e6('0x1c71'),'g'),_0x535078=[];return _0xc28638[_0x4956e6('0x247d')]([_0x4956e6('0x3326'),_0x4956e6('0x145b'),_0x4956e6('0x287d'),_0x4956e6('0x38f')],function(_0x24442b){var _0x213cb7=_0x4956e6,_0x1836cc=_0x22bb33[_0x213cb7('0x34c8')](_0x346122,function(_0x399ca0,_0x420f34,_0x26eacf,_0x3fb742,_0x49214b){var _0x4eb9c7=_0x213cb7,_0x31700c=_0x5b72b7['colors'][_0x26eacf];return _0x33e55f(_0x5001a7[_0x31700c['name']][_0x31700c['hues'][_0x24442b]][_0x4eb9c7('0x2dcb')===_0x3fb742?_0x4eb9c7('0x248e'):_0x4eb9c7('0x4b0')],_0x49214b);});_0x213cb7('0x3326')!==_0x24442b&&(_0x1836cc=_0x1836cc['replace'](_0x1b1469,_0x213cb7('0x21f8')+_0x5b72b7[_0x213cb7('0x455')]+_0x213cb7('0x4ef')+_0x24442b)),'default'==_0x5b72b7[_0x213cb7('0x455')]&&(_0x1836cc=_0x1836cc[_0x213cb7('0x34c8')](/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g,function(_0x1d3b02,_0x190b42,_0x4d5116){return _0x1d3b02+',\x20'+_0x190b42+_0x4d5116;})),_0x535078[_0x213cb7('0x1a90')](_0x1836cc);}),_0x535078;}var _0x4b628d={};function _0x230ddf(_0x59d3d7,_0x38f3ab){var _0x15ce43=_0x2da268,_0x3bbae2=document[_0x15ce43('0x58d')],_0x21ba8e=_0x3bbae2?_0x3bbae2[_0x15ce43('0x136c')]:null,_0x35299a=!_0x1f9c0f['disableTheming']&&_0x59d3d7['has'](_0x15ce43('0xc91'))?_0x59d3d7['get']('$MD_THEME_CSS'):'';if(_0x35299a+=_0x1f9c0f[_0x15ce43('0x33b7')][_0x15ce43('0x6a8')](''),_0x21ba8e&&0x0!==_0x35299a[_0x15ce43('0x175a')]){_0xc28638[_0x15ce43('0x247d')](_0x5001a7,function(_0x313b6e,_0x2df924){var _0x171938=_0x15ce43,_0x4f4523=_0x313b6e['contrastDefaultColor'],_0x43e7f3=_0x313b6e[_0x171938('0x1e9')]||[],_0x2dfd6f=_0x313b6e[_0x171938('0x29ff')]||[],_0x1c5160=_0x313b6e['contrastDarkColors']||[];_0x171938('0x151d')==typeof _0x43e7f3&&(_0x43e7f3=_0x43e7f3[_0x171938('0x23ee')]('\x20')),_0x171938('0x151d')==typeof _0x2dfd6f&&(_0x2dfd6f=_0x2dfd6f['split']('\x20')),_0x171938('0x151d')==typeof _0x1c5160&&(_0x1c5160=_0x1c5160[_0x171938('0x23ee')]('\x20')),delete _0x313b6e['contrastDefaultColor'],delete _0x313b6e[_0x171938('0x1e9')],delete _0x313b6e[_0x171938('0x29ff')],delete _0x313b6e[_0x171938('0x2007')],_0xc28638[_0x171938('0x247d')](_0x313b6e,function(_0x5e380b,_0x38a440){var _0x3722c7=_0x171938;if(!_0xc28638[_0x3722c7('0x1d0d')](_0x5e380b)){var _0x3e83de=_0x30ccd2(_0x5e380b);if(!_0x3e83de)throw new Error('Color\x20%1,\x20in\x20palette\x20%2\x27s\x20hue\x20%3,\x20is\x20invalid.\x20Hex\x20or\x20rgb(a)\x20color\x20expected.'['replace']('%1',_0x5e380b)[_0x3722c7('0x34c8')]('%2',_0x313b6e['name'])[_0x3722c7('0x34c8')]('%3',_0x38a440));_0x313b6e[_0x38a440]={'hex':_0x313b6e[_0x38a440],'value':_0x3e83de,'contrast':_0x3722c7('0x1d4b')===_0x4f4523?_0x1c5160[_0x3722c7('0xe1c')](_0x38a440)>-0x1?_0x2a1c4a:_0x2dfd6f['indexOf'](_0x38a440)>-0x1?_0x3755b2:_0x1a5178:_0x43e7f3[_0x3722c7('0xe1c')](_0x38a440)>-0x1?_0x2dfd6f[_0x3722c7('0xe1c')](_0x38a440)>-0x1?_0x3755b2:_0x1a5178:_0x2a1c4a};}});});var _0x54c003=_0x35299a['split'](/\}(?!(\}|'|"|;))/)[_0x15ce43('0x3127')](function(_0x12712a){var _0x4ed9d0=_0x15ce43;return _0x12712a&&_0x12712a['trim']()[_0x4ed9d0('0x175a')];})[_0x15ce43('0x2d86')](function(_0x15d824){return _0x15d824['trim']()+'}';});_0x167691[_0x15ce43('0x247d')](function(_0x2bc663){_0x4b628d[_0x2bc663]='';}),_0x54c003[_0x15ce43('0x247d')](function(_0x51443f){var _0x181d05=_0x15ce43;for(var _0x2d185d,_0x153527=0x0;_0x2d185d=_0x167691[_0x153527];_0x153527++)if(_0x51443f[_0x181d05('0xe1c')](_0x181d05('0x21f8')+_0x2d185d)>-0x1)return _0x4b628d[_0x2d185d]+=_0x51443f;for(_0x153527=0x0;_0x2d185d=_0x167691[_0x153527];_0x153527++)if(_0x51443f[_0x181d05('0xe1c')](_0x2d185d)>-0x1)return _0x4b628d[_0x2d185d]+=_0x51443f;return _0x4b628d[_0x181d05('0x5e4')]+=_0x51443f;}),_0x1f9c0f[_0x15ce43('0x307f')]||_0xc28638['forEach'](_0x38f3ab[_0x15ce43('0x36aa')],function(_0x6f595){var _0x402031=_0x15ce43;_0x51b3d0[_0x6f595[_0x402031('0x455')]]||_0x402031('0x3326')!==_0x38f3ab[_0x402031('0x215b')]()&&'default'===_0x6f595[_0x402031('0x455')]||_0x45c301(_0x6f595,_0x6f595[_0x402031('0x455')],_0x1f9c0f['nonce']);});}}function _0x45c301(_0x58afc7,_0x5950ac,_0x39a519){var _0x510a0c=_0x2da268,_0x3b9393=document[_0x510a0c('0x58d')],_0x1b7234=_0x3b9393?_0x3b9393[_0x510a0c('0x136c')]:null;_0x51b3d0[_0x5950ac]||(_0x167691[_0x510a0c('0x247d')](function(_0x429bfd){var _0x48abc3=_0x510a0c;for(var _0x473474=_0xa64f91(_0x58afc7,_0x429bfd,_0x4b628d[_0x429bfd]);_0x473474[_0x48abc3('0x175a')];){var _0x5abee1=_0x473474[_0x48abc3('0x2967')]();if(_0x5abee1){var _0x20adb8=document[_0x48abc3('0x264c')](_0x48abc3('0x14b6'));_0x20adb8[_0x48abc3('0xb10')](_0x48abc3('0x28f1'),''),_0x39a519&&_0x20adb8[_0x48abc3('0xb10')](_0x48abc3('0x2693'),_0x39a519),_0x20adb8['appendChild'](document[_0x48abc3('0x16d2')](_0x5abee1)),_0x3b9393[_0x48abc3('0x3de')](_0x20adb8,_0x1b7234);}}}),_0x51b3d0[_0x58afc7[_0x510a0c('0x455')]]=!0x0);}function _0x30ccd2(_0x1a0947){var _0x2dc853=_0x2da268;if(_0xc28638[_0x2dc853('0x2f1d')](_0x1a0947)&&0x3==_0x1a0947[_0x2dc853('0x175a')])return _0x1a0947;if(/^rgb/[_0x2dc853('0x19cd')](_0x1a0947))return _0x1a0947[_0x2dc853('0x34c8')](/(^\s*rgba?\(|\)\s*$)/g,'')[_0x2dc853('0x23ee')](',')[_0x2dc853('0x2d86')](function(_0x1b3779,_0x1877cd){return 0x3==_0x1877cd?parseFloat(_0x1b3779,0xa):parseInt(_0x1b3779,0xa);});if('#'==_0x1a0947[_0x2dc853('0x40')](0x0)&&(_0x1a0947=_0x1a0947['substring'](0x1)),/^([a-fA-F0-9]{3}){1,2}$/g[_0x2dc853('0x19cd')](_0x1a0947)){var _0x5d0b11=_0x1a0947[_0x2dc853('0x175a')]/0x3,_0x5194f8=_0x1a0947[_0x2dc853('0x3102')](0x0,_0x5d0b11),_0x19be73=_0x1a0947['substr'](_0x5d0b11,_0x5d0b11),_0x2df323=_0x1a0947[_0x2dc853('0x3102')](0x2*_0x5d0b11);return 0x1===_0x5d0b11&&(_0x5194f8+=_0x5194f8,_0x19be73+=_0x19be73,_0x2df323+=_0x2df323),[parseInt(_0x5194f8,0x10),parseInt(_0x19be73,0x10),parseInt(_0x2df323,0x10)];}}function _0x33e55f(_0x21b085,_0x2f1014){var _0x2d9b12=_0x2da268;return _0x21b085?(0x4==_0x21b085[_0x2d9b12('0x175a')]&&(_0x21b085=_0xc28638[_0x2d9b12('0x213')](_0x21b085),_0x2f1014?_0x21b085['pop']():_0x2f1014=_0x21b085['pop']()),_0x2f1014&&('number'==typeof _0x2f1014||'string'==typeof _0x2f1014&&_0x2f1014[_0x2d9b12('0x175a')])?_0x2d9b12('0x369f')+_0x21b085[_0x2d9b12('0x6a8')](',')+','+_0x2f1014+')':_0x2d9b12('0x25b3')+_0x21b085[_0x2d9b12('0x6a8')](',')+')'):_0x2d9b12('0x1cd4');}}(_0x49f10c[_0x1fb7d4('0x1d6d')]),_0x4a272c[_0x1fb7d4('0x122c')](_0x1fb7d4('0x2c84'),[_0x1fb7d4('0x113c'),_0x1fb7d4('0x2dc4'),_0x1fb7d4('0x239e')]),function(){var _0x5623ad=_0x1fb7d4;_0x479e77[_0x5623ad('0x28c9')]=['$scope','$element',_0x5623ad('0x2e27'),_0x5623ad('0x35b'),_0x5623ad('0x2e8e'),_0x5623ad('0x398e'),_0x5623ad('0x2a64'),'$rootElement',_0x5623ad('0xa7b'),'$q',_0x5623ad('0x38a3'),_0x5623ad('0x1b01')],_0x4a272c[_0x5623ad('0x122c')](_0x5623ad('0x2c84'))[_0x5623ad('0x19f6')](_0x5623ad('0x18ff'),_0x479e77);var _0x3b9e8b=_0x5623ad('0x2610'),_0x30a658=_0x5623ad('0x4d9');function _0x479e77(_0x15a110,_0x57958d,_0x156af2,_0xa5cce2,_0x2ec409,_0x4d0c1f,_0x1ae435,_0x3ee40e,_0x3b23e6,_0x400404,_0x475b49,_0x194830){var _0x2ae1b3=_0x5623ad,_0x5dab51,_0x3929a5,_0x1b498e,_0xb4108f=this,_0x20b547=_0x15a110['itemsExpr'][_0x2ae1b3('0x23ee')](/ in /i),_0x1ea4ac=_0x20b547[0x1],_0x521f70=null,_0x95db20={},_0x22c987=!0x1,_0x17fa8f=[],_0x54b0d5=!0x1,_0x5ea6ba=0x0,_0x225810=null,_0x7f0959=null,_0x275249=_0x156af2[_0x2ae1b3('0x24cd')](function(){var _0x20b7b0=_0x2ae1b3;_0xb4108f[_0x20b7b0('0x1bdf')]||_0x322a22();}),_0x76022b=_0x30a658;_0xb4108f['documentElement']=_0x4a272c[_0x2ae1b3('0x88a')](document[_0x2ae1b3('0x207a')]),_0x5dab51=_0x2ae1b3('0x1bdf'),_0x3929a5=function(_0x3c86f6,_0x1c3b4d){var _0x180085=_0x2ae1b3,_0x1672d9,_0x3ec3cc,_0x45a903;_0x521f70&&(_0x1672d9=_0x4a272c['element'](_0x521f70[_0x180085('0x10f9')])),!_0x3c86f6&&_0x1c3b4d?(_0x322a22(),_0x42b676(!0x0,_0x210232|_0x38537e),_0x521f70&&(_0x156af2[_0x180085('0x10b3')](_0x521f70['scrollContainer']),_0x3ec3cc=_0x521f70[_0x180085('0x1f38')],(_0x45a903=_0x4a272c[_0x180085('0x88a')](_0x3ec3cc))['on'](_0x180085('0x17e7'),_0x2aa875),_0x225810=function(){var _0x1b3a48=_0x180085;_0x45a903[_0x1b3a48('0x1202')](_0x1b3a48('0x17e7'),_0x2aa875);},_0x156af2[_0x180085('0x203b')]&&(_0xb4108f[_0x180085('0x207a')]['on'](_0x180085('0x1b54'),_0x149d80),_0x1672d9&&_0x1672d9['on'](_0x180085('0x4d8'),_0x4c479b)),_0xb4108f[_0x180085('0x1b25')]=_0x4dd9a0(),_0x156af2[_0x180085('0x2baa')](function(){_0x20a772(),_0xd0435b();}))):_0x3c86f6&&!_0x1c3b4d&&(_0x156af2[_0x180085('0x203b')]&&(_0xb4108f[_0x180085('0x207a')][_0x180085('0x1202')]('touchend',_0x149d80),_0x1672d9&&_0x1672d9['off'](_0x180085('0x4d8'),_0x4c479b)),_0x156af2['enableScrolling'](),_0x225810&&(_0x225810(),_0x225810=null));},_0x1b498e=!0x0,Object[_0x2ae1b3('0x2cd6')](_0xb4108f,_0x5dab51,{'get':function(){return _0x1b498e;},'set':function(_0x2f3acc){var _0x5947f1=_0x1b498e;_0x1b498e=_0x2f3acc,_0x3929a5(_0x2f3acc,_0x5947f1);}}),_0xb4108f[_0x2ae1b3('0x1789')]=_0x15a110,_0xb4108f[_0x2ae1b3('0x38bb')]=_0x15a110['$parent'],_0xb4108f[_0x2ae1b3('0x2ccf')]=_0x20b547[0x0],_0xb4108f['matches']=[],_0xb4108f[_0x2ae1b3('0x22a0')]=!0x1,_0xb4108f[_0x2ae1b3('0x1bdf')]=!0x0,_0xb4108f[_0x2ae1b3('0x1b25')]=-0x1,_0xb4108f[_0x2ae1b3('0x30e0')]=null,_0xb4108f['id']=_0x156af2[_0x2ae1b3('0x2801')](),_0xb4108f[_0x2ae1b3('0x3946')]=null,_0xb4108f['isRequired']=null,_0xb4108f['isReadonly']=null,_0xb4108f[_0x2ae1b3('0x2532')]=!0x1,_0xb4108f[_0x2ae1b3('0x1c2f')]=_0x15a110['selectedMessage']||_0x2ae1b3('0x328d'),_0xb4108f[_0x2ae1b3('0xf04')]=function(_0xb3d010){var _0x460687=_0x2ae1b3;switch(_0xb3d010[_0x460687('0x1f8c')]){case _0xa5cce2[_0x460687('0xaca')][_0x460687('0x30c3')]:if(_0xb4108f[_0x460687('0x22a0')]||_0x156e93())return;_0xb3d010[_0x460687('0x16c5')](),_0xb3d010[_0x460687('0x1f1a')](),_0xb4108f['index']=_0xb4108f[_0x460687('0x1b25')]+0x1>_0xb4108f['matches'][_0x460687('0x175a')]-0x1?0x0:Math[_0x460687('0x3230')](_0xb4108f[_0x460687('0x1b25')]+0x1,_0xb4108f[_0x460687('0x32a4')]['length']-0x1),_0x156af2[_0x460687('0x2baa')](_0x20a772),_0xd0435b();break;case _0xa5cce2['KEY_CODE'][_0x460687('0x1a0d')]:if(_0xb4108f[_0x460687('0x22a0')]||_0x156e93())return;_0xb3d010['stopPropagation'](),_0xb3d010['preventDefault'](),_0xb4108f[_0x460687('0x1b25')]=_0xb4108f['index']-0x1<0x0?_0xb4108f[_0x460687('0x32a4')]['length']-0x1:Math['max'](0x0,_0xb4108f[_0x460687('0x1b25')]-0x1),_0x156af2[_0x460687('0x2baa')](_0x20a772),_0xd0435b();break;case _0xa5cce2[_0x460687('0xaca')][_0x460687('0x23bc')]:if(_0x1c1020(),_0xb4108f[_0x460687('0x1bdf')]||_0xb4108f[_0x460687('0x22a0')]||_0xb4108f['index']<0x0||_0xb4108f[_0x460687('0x32a4')][_0x460687('0x175a')]<0x1)return;_0x4efbbe(_0xb4108f[_0x460687('0x1b25')]);break;case _0xa5cce2[_0x460687('0xaca')][_0x460687('0x1e31')]:if(_0xb4108f[_0x460687('0x1bdf')]||_0xb4108f[_0x460687('0x22a0')]||_0xb4108f[_0x460687('0x1b25')]<0x0||_0xb4108f[_0x460687('0x32a4')]['length']<0x1)return;if(_0x156e93())return;_0xb3d010[_0x460687('0xf69')](),_0xb3d010['preventDefault'](),_0x4efbbe(_0xb4108f[_0x460687('0x1b25')]);break;case _0xa5cce2[_0x460687('0xaca')]['ESCAPE']:if(_0xb3d010[_0x460687('0x1f1a')](),!(_0x609026(_0x460687('0x1137'))||!_0xb4108f['hidden']||_0xb4108f['loading']||_0x609026(_0x460687('0x10f0'))&&_0x15a110[_0x460687('0x25b7')]))return;_0xb3d010[_0x460687('0x16c5')](),_0x432497(),_0x15a110[_0x460687('0x25b7')]&&_0x609026('clear')&&_0x1c2f7d(),_0xb4108f[_0x460687('0x1bdf')]=!0x0,_0x609026(_0x460687('0x1137'))&&_0x293817(!0x0);}},_0xb4108f[_0x2ae1b3('0x1137')]=function(_0x13b001){var _0xbf512=_0x2ae1b3;_0x54b0d5=!0x1,_0x22c987||(_0xb4108f[_0xbf512('0x1bdf')]=_0x376e2b(),_0x4dd589(_0xbf512('0xf5e'),{'$event':_0x13b001}));},_0xb4108f[_0x2ae1b3('0x1c34')]=function(_0x4ae72c){var _0x2ae94c=_0x2ae1b3;_0x54b0d5=!0x0,_0x2ac511()&&_0x203fa3()&&_0x8341ca(),(_0xb4108f[_0x2ae94c('0x1bdf')]=_0x376e2b(),_0x4dd589(_0x2ae94c('0x16ac'),{'$event':_0x4ae72c}));},_0xb4108f[_0x2ae1b3('0x10f0')]=function(_0x78ca74){_0x78ca74&&_0x78ca74['stopPropagation'](),(_0x432497(),_0x1c2f7d());},_0xb4108f[_0x2ae1b3('0x32b0')]=_0x4efbbe,_0xb4108f[_0x2ae1b3('0x45d')]=function(){_0x22c987=!0x0;},_0xb4108f[_0x2ae1b3('0x1a38')]=_0x1c1020,_0xb4108f[_0x2ae1b3('0x3fb')]=_0x1bcae6,_0xb4108f[_0x2ae1b3('0xe0')]=_0x56b6b7,_0xb4108f[_0x2ae1b3('0x2467')]=function(_0x345e3b){var _0x5995bd=_0x2ae1b3;-0x1===_0x17fa8f[_0x5995bd('0xe1c')](_0x345e3b)&&_0x17fa8f[_0x5995bd('0x1a90')](_0x345e3b);},_0xb4108f['unregisterSelectedItemWatcher']=function(_0x501961){var _0x6d0fcb=_0x2ae1b3,_0x11c98c=_0x17fa8f[_0x6d0fcb('0xe1c')](_0x501961);-0x1!==_0x11c98c&&_0x17fa8f[_0x6d0fcb('0x1f40')](_0x11c98c,0x1);},_0xb4108f[_0x2ae1b3('0x52c')]=_0x1c3ec4,_0xb4108f[_0x2ae1b3('0x14e3')]=function(){var _0x57b63f=_0x2ae1b3;return _0xb4108f[_0x57b63f('0x22a0')]&&!_0x156e93();},_0xb4108f[_0x2ae1b3('0x38fb')]=_0x322a22;var _0x542697,_0x210232=0x1,_0x38537e=0x2;return _0x156af2[_0x2ae1b3('0x14f9')](_0x15a110,_0x3b23e6,{'searchText':'','selectedItem':null,'clearButton':!0x1,'disableVirtualRepeat':!0x1}),_0x2ec409(_0x57958d),_0x542697=parseInt(_0x15a110[_0x2ae1b3('0x33a3')],0xa)||0x0,_0x3b23e6['$observe'](_0x2ae1b3('0x2d00'),function(_0x58ff71){var _0x3d0032=_0x2ae1b3;_0xb4108f[_0x3d0032('0x3946')]=_0x156af2[_0x3d0032('0x3471')](_0x58ff71,!0x1);}),_0x3b23e6[_0x2ae1b3('0x2838')](_0x2ae1b3('0x20d0'),function(_0x515843){_0xb4108f['isRequired']=_0x156af2['parseAttributeBoolean'](_0x515843,!0x1);}),_0x3b23e6['$observe'](_0x2ae1b3('0x29f'),function(_0x4a898f){var _0xea0b41=_0x2ae1b3;_0xb4108f[_0xea0b41('0x32cb')]=_0x156af2[_0xea0b41('0x3471')](_0x4a898f,!0x1);}),_0x15a110[_0x2ae1b3('0x1cb1')]('searchText',_0x542697?_0x156af2[_0x2ae1b3('0x24cd')](_0x1dea82,_0x542697):_0x1dea82),_0x15a110[_0x2ae1b3('0x1cb1')]('selectedItem',_0x40e2fa),_0x4a272c[_0x2ae1b3('0x88a')](_0x4d0c1f)['on'](_0x2ae1b3('0x32b7'),_0x275249),_0x15a110[_0x2ae1b3('0x1db8')](_0x2ae1b3('0x2f34'),_0x7552fe),void _0x156af2[_0x2ae1b3('0x2baa')](function(){var _0x53bf0a=_0x2ae1b3,_0x56ecdd;_0x56ecdd=function(){var _0x20d657=a2_0x4bfe,_0x3f7d0a,_0xd90970;for(_0x3f7d0a=_0x57958d;_0x3f7d0a[_0x20d657('0x175a')]&&(_0xd90970=_0x3f7d0a['attr'](_0x20d657('0x2d05')),!_0x4a272c[_0x20d657('0x392d')](_0xd90970));_0x3f7d0a=_0x3f7d0a[_0x20d657('0x38bb')]());if(_0x3f7d0a['length'])return{'snap':_0x3f7d0a[0x0],'wrap':_0x20d657('0x2bac')===_0xd90970['toLowerCase']()?_0x3f7d0a[0x0]:_0x57958d[_0x20d657('0x16fd')](_0x20d657('0x29cb'))[0x0]};var _0x3e8b5f=_0x57958d[_0x20d657('0x16fd')](_0x20d657('0x29cb'))[0x0];return{'snap':_0x3e8b5f,'wrap':_0x3e8b5f};}(),(_0x521f70={'main':_0x57958d[0x0],'scrollContainer':_0x57958d[0x0]['querySelector'](_0x53bf0a('0x1d2c')),'scroller':_0x57958d[0x0][_0x53bf0a('0x2cee')](_0x53bf0a('0x1973')),'ul':_0x57958d[_0x53bf0a('0x16fd')]('ul')[0x0],'input':_0x57958d[_0x53bf0a('0x16fd')](_0x53bf0a('0x10a7'))[0x0],'wrap':_0x56ecdd[_0x53bf0a('0x1f38')],'snap':_0x56ecdd['snap'],'root':document[_0x53bf0a('0x3742')]})['li']=_0x521f70['ul']['getElementsByTagName']('li'),_0x521f70['$']=function(_0x1e73ae){var _0x4b7a72=_0x53bf0a,_0x7f6883={};for(var _0x13015e in _0x1e73ae)_0x1e73ae[_0x4b7a72('0x1522')](_0x13015e)&&(_0x7f6883[_0x13015e]=_0x4a272c[_0x4b7a72('0x88a')](_0x1e73ae[_0x13015e]));return _0x7f6883;}(_0x521f70),_0x76022b=_0x521f70['scrollContainer'][_0x53bf0a('0xc04')][_0x53bf0a('0x3cf')]('md-standard-list-container')?_0x3b9e8b:_0x30a658,_0x7f0959=_0x521f70['$'][_0x53bf0a('0x10a7')][_0x53bf0a('0x19f6')](_0x53bf0a('0x625')),_0x521f70['$'][_0x53bf0a('0x1ad')][_0x53bf0a('0x175a')]&&(_0x2ec409(_0x521f70['$']['scrollContainer']),_0x521f70['$'][_0x53bf0a('0x10f9')]['detach'](),_0x521f70['$'][_0x53bf0a('0x1ad')][_0x53bf0a('0x10f')](_0x521f70['$']['scrollContainer']),_0x1ae435[_0x53bf0a('0x325c')]&&_0x1ae435[_0x53bf0a('0x325c')](_0x521f70['$'][_0x53bf0a('0x10f9')],_0x3ee40e)),_0x57958d['on'](_0x53bf0a('0x1cf6'),_0x1bcae6),_0x15a110['autofocus']&&_0x57958d['on'](_0x53bf0a('0x1c34'),_0x1bcae6),_0x15a110[_0x53bf0a('0x2bbd')]&&_0x521f70[_0x53bf0a('0x10a7')]['setAttribute']('aria-describedby',_0x15a110[_0x53bf0a('0x2bbd')]),_0x15a110['floatingLabel']||(_0x15a110[_0x53bf0a('0x443')]?_0x521f70[_0x53bf0a('0x10a7')]['setAttribute'](_0x53bf0a('0x15da'),_0x15a110[_0x53bf0a('0x443')]):_0x15a110['inputAriaLabelledBy']?_0x521f70['input'][_0x53bf0a('0xb10')](_0x53bf0a('0xcbe'),_0x15a110[_0x53bf0a('0x2639')]):_0x15a110[_0x53bf0a('0x162f')]&&_0x521f70[_0x53bf0a('0x10a7')][_0x53bf0a('0xb10')](_0x53bf0a('0x15da'),_0x15a110[_0x53bf0a('0x162f')]));});function _0x4c2f1c(){var _0x1da61b=_0x2ae1b3;_0x15a110[_0x1da61b('0x2a6f')]&&_0x7f0959&&_0x7f0959[_0x1da61b('0x1ea7')](_0x1da61b('0x12b'),!!_0x15a110['selectedItem']||!_0x15a110[_0x1da61b('0x25b7')]);}function _0x322a22(){var _0x4a299c=_0x2ae1b3;if(!_0x521f70)return _0x156af2[_0x4a299c('0x2baa')](_0x322a22,!0x1,_0x15a110);var _0x430693,_0xb5a1b6=0x30*(_0x15a110['dropdownItems']||0x5),_0x5d1f01=_0x521f70[_0x4a299c('0x1f38')][_0x4a299c('0x2748')](),_0x154bd8=_0x521f70['snap'][_0x4a299c('0x2748')](),_0x4c2085=_0x521f70[_0x4a299c('0x1ad')][_0x4a299c('0x2748')](),_0x35c732=_0x154bd8['bottom']-_0x4c2085[_0x4a299c('0x361a')],_0x1206ac=_0x4c2085[_0x4a299c('0x24a3')]-_0x154bd8[_0x4a299c('0x361a')],_0x5a954a=_0x5d1f01['left']-_0x4c2085[_0x4a299c('0x1d75')],_0x27409c=_0x5d1f01[_0x4a299c('0x2bac')],_0x501b76=function(){var _0x3b206d=_0x4a299c,_0x446e5b=0x0,_0x4b7333=_0x57958d[_0x3b206d('0x16fd')](_0x3b206d('0x345c'));if(_0x4b7333[_0x3b206d('0x175a')]){var _0x233a4b=_0x4b7333['find'](_0x3b206d('0x10a7'));_0x446e5b=_0x4b7333[_0x3b206d('0x18f6')](_0x3b206d('0x1147')),_0x446e5b-=_0x233a4b['prop'](_0x3b206d('0x3245')),_0x446e5b-=_0x233a4b['prop'](_0x3b206d('0x1147')),_0x446e5b+=_0x4b7333[_0x3b206d('0x18f6')]('offsetTop');}return _0x446e5b;}(),_0xf90e82=_0x15a110['dropdownPosition'],_0x4e2f00=_0x4c2085[_0x4a299c('0x24a3')]-_0x154bd8[_0x4a299c('0x24a3')]-0x8+_0x156af2[_0x4a299c('0x3859')](),_0x24a46f=_0x154bd8['top']-0x8;_0xf90e82||(_0xf90e82=_0x4e2f00>_0xb5a1b6?'bottom':_0x24a46f>_0xb5a1b6||_0x24a46f>_0x4e2f00?'top':_0x4a299c('0x24a3')),_0x3b23e6['mdFloatingLabel']&&(_0x5a954a+=0x2,_0x27409c-=0x4),_0x430693={'left':_0x5a954a+'px','minWidth':_0x27409c+'px','maxWidth':Math[_0x4a299c('0x2780')](_0x5d1f01[_0x4a299c('0x1e0d')]-_0x4c2085[_0x4a299c('0x1d75')],_0x4c2085['right']-_0x5d1f01[_0x4a299c('0x1d75')])-0x8+'px'},_0x4a299c('0x361a')===_0xf90e82?(_0x430693[_0x4a299c('0x361a')]=_0x4a299c('0x1ae7'),_0x430693[_0x4a299c('0x24a3')]=_0x1206ac+'px',_0x430693['maxHeight']=Math[_0x4a299c('0x3230')](_0xb5a1b6,_0x24a46f)+'px'):(_0x4e2f00=_0x4c2085['bottom']-_0x5d1f01['bottom']-0x8+_0x156af2['getViewportTop'](),_0x430693[_0x4a299c('0x361a')]=_0x35c732-_0x501b76+'px',_0x430693[_0x4a299c('0x24a3')]=_0x4a299c('0x1ae7'),_0x430693[_0x4a299c('0x1f4c')]=Math[_0x4a299c('0x3230')](_0xb5a1b6,_0x4e2f00)+'px'),_0x521f70['$']['scrollContainer'][_0x4a299c('0x30a3')](_0x430693),_0x156af2[_0x4a299c('0x2baa')](function(){var _0x163f40=_0x4a299c,_0x5c9a21=_0x521f70[_0x163f40('0x10f9')][_0x163f40('0x2748')](),_0x147181={};_0x5c9a21[_0x163f40('0x1e0d')]>_0x4c2085['right']&&(_0x147181['left']=_0x5d1f01[_0x163f40('0x1e0d')]-_0x5c9a21['width']+'px'),_0x521f70['$'][_0x163f40('0x10f9')]['css'](_0x147181);},!0x1,_0x15a110);}function _0x1bcae6(){var _0x472127=_0x2ae1b3;_0x521f70[_0x472127('0x10a7')][_0x472127('0x1c34')]();}function _0x20a772(){var _0x3b0a98=_0x2ae1b3,_0x20d76b=_0x521f70[_0x3b0a98('0x6d7')]['querySelector'](_0x3b0a98('0x745'));_0xb4108f[_0x3b0a98('0x30e0')]=_0x20d76b?_0x20d76b['id']:null;}function _0x7552fe(){var _0x20ca16=_0x2ae1b3;(_0xb4108f[_0x20ca16('0x1bdf')]||_0x156af2[_0x20ca16('0xd69')](),_0x4a272c[_0x20ca16('0x88a')](_0x4d0c1f)[_0x20ca16('0x1202')](_0x20ca16('0x32b7'),_0x275249),_0x521f70)&&_0x4a272c[_0x20ca16('0x247d')](['ul',_0x20ca16('0x6d7'),_0x20ca16('0x10f9'),_0x20ca16('0x10a7')],function(_0x25ca20){var _0x50d4f3=_0x20ca16;_0x521f70['$'][_0x25ca20][_0x50d4f3('0x2371')]();});}function _0x2aa875(_0x162a2c){var _0x4847b9=_0x2ae1b3;_0x162a2c[_0x4847b9('0x1f1a')]();}function _0x4c479b(_0x3780af){var _0x2cb942=_0x2ae1b3;_0x3780af[_0x2cb942('0x16c5')]();}function _0x149d80(_0x9510b6){var _0xbca823=_0x2ae1b3;_0xb4108f[_0xbca823('0x1bdf')]=!0x0,_0x293817(!0x0);}function _0x1c1020(){var _0x2f77f5=_0x2ae1b3;_0x54b0d5||_0xb4108f[_0x2f77f5('0x1bdf')]||_0x521f70[_0x2f77f5('0x10a7')]['focus'](),_0x22c987=!0x1,_0xb4108f['hidden']=_0x376e2b();}function _0x40e2fa(_0x703985,_0x5f305c){var _0x505c7d=_0x2ae1b3;_0x4c2f1c(),_0x703985?_0x4df330(_0x703985)[_0x505c7d('0x26b5')](function(_0x9b1744){var _0xb528a7=_0x505c7d;_0x15a110[_0xb528a7('0x25b7')]=_0x9b1744,function(_0x42221a,_0x16a43d){var _0x3f5ea5=_0xb528a7;_0x17fa8f[_0x3f5ea5('0x247d')](function(_0x5b31fc){_0x5b31fc(_0x42221a,_0x16a43d);});}(_0x703985,_0x5f305c);}):_0x5f305c&&_0x15a110['searchText']&&_0x4df330(_0x5f305c)[_0x505c7d('0x26b5')](function(_0x4e007c){var _0x31b028=_0x505c7d;_0x4a272c['isString'](_0x15a110[_0x31b028('0x25b7')])&&_0x4e007c[_0x31b028('0x6ef')]()[_0x31b028('0x856')]()===_0x15a110['searchText'][_0x31b028('0x856')]()&&(_0x15a110[_0x31b028('0x25b7')]='');}),_0x703985!==_0x5f305c&&_0x4a272c[_0x505c7d('0x1e34')](_0x15a110[_0x505c7d('0x21f7')])&&_0x15a110[_0x505c7d('0x21f7')](_0x4fe0a2(_0x15a110[_0x505c7d('0x111d')]));}function _0x1dea82(_0x2b1e97,_0x55d752){var _0x14d121=_0x2ae1b3;_0xb4108f[_0x14d121('0x1b25')]=_0x4dd9a0(),_0x2b1e97!==_0x55d752&&(_0x4c2f1c(),_0x4df330(_0x15a110['selectedItem'])[_0x14d121('0x26b5')](function(_0xa19a2b){var _0x13f267=_0x14d121;_0x2b1e97!==_0xa19a2b&&(_0x15a110[_0x13f267('0x111d')]=null,_0x2b1e97!==_0x55d752&&_0x4a272c['isFunction'](_0x15a110['textChange'])&&_0x15a110[_0x13f267('0x28ab')](),_0x203fa3()?_0x8341ca():(_0xb4108f['matches']=[],_0x41cce3(!0x1),_0x42b676(!0x0,_0x210232)));}));}function _0x293817(_0x17bc68){var _0x343a90=_0x2ae1b3;_0x17bc68&&(_0x22c987=!0x1,_0x54b0d5=!0x1),_0x521f70[_0x343a90('0x10a7')][_0x343a90('0x1137')]();}function _0x59ef5f(){var _0x3d84dd=_0x2ae1b3;return _0x4a272c['isNumber'](_0x15a110['minLength'])?_0x15a110[_0x3d84dd('0x2ffc')]:0x1;}function _0x4df330(_0x3a0acf){var _0x478c87=_0x2ae1b3;return _0x400404[_0x478c87('0x36d1')](function(_0x77a76e){var _0x17302b=_0x478c87;return _0x77a76e&&_0x15a110[_0x17302b('0x1d0c')]?_0x15a110[_0x17302b('0x1d0c')](_0x4fe0a2(_0x77a76e)):null;}(_0x3a0acf)||_0x3a0acf)[_0x478c87('0x26b5')](function(_0x42cd14){var _0x221e1c=_0x478c87;return _0x42cd14&&!_0x4a272c[_0x221e1c('0x392')](_0x42cd14)&&_0x475b49['warn'](_0x221e1c('0x2bf5')),_0x42cd14;});}function _0x4fe0a2(_0x2abbb8){if(!_0x2abbb8)return _0x6373f5;var _0x2dd79c={};return _0xb4108f['itemName']&&(_0x2dd79c[_0xb4108f['itemName']]=_0x2abbb8),_0x2dd79c;}function _0x4dd9a0(){return _0x15a110['autoselect']?0x0:-0x1;}function _0x41cce3(_0x32a359){var _0x377633=_0x2ae1b3;_0xb4108f['loading']!==_0x32a359&&(_0xb4108f[_0x377633('0x22a0')]=_0x32a359),_0xb4108f[_0x377633('0x1bdf')]=_0x376e2b();}function _0x376e2b(){return!function(){var _0x15a7e1=a2_0x4bfe;if(_0xb4108f[_0x15a7e1('0x32cb')])return!0x1;if(!_0x2ac511())return!0x1;return _0x203fa3()&&_0x2f0b92()||_0x1c3ec4();}();}function _0x2ac511(){var _0x58d7c4=_0x2ae1b3;return!(_0xb4108f[_0x58d7c4('0x22a0')]&&!_0x2f0b92())&&(!_0x156e93()&&!!_0x54b0d5);}function _0x609026(_0x5acb32){var _0x344dc0=_0x2ae1b3;return!_0x15a110[_0x344dc0('0x2ab7')]||-0x1!==_0x15a110[_0x344dc0('0x2ab7')][_0x344dc0('0x856')]()[_0x344dc0('0xe1c')](_0x5acb32);}function _0x2f0b92(){var _0x2578b5=_0x2ae1b3;return!!_0xb4108f[_0x2578b5('0x32a4')][_0x2578b5('0x175a')];}function _0x156e93(){var _0xf8a985=_0x2ae1b3;return!!_0xb4108f[_0xf8a985('0x1789')][_0xf8a985('0x111d')];}function _0x56b6b7(){var _0x108930=_0x2ae1b3;return _0x4df330(_0xb4108f[_0x108930('0x32a4')][_0xb4108f[_0x108930('0x1b25')]]);}function _0x203fa3(){var _0x298adc=_0x2ae1b3;return(_0x15a110[_0x298adc('0x25b7')]||'')[_0x298adc('0x175a')]>=_0x59ef5f();}function _0x4efbbe(_0x4e3b4e){var _0x5d6193=_0x2ae1b3;_0x156af2[_0x5d6193('0x2baa')](function(){var _0xdd671a=_0x5d6193;_0x4df330(_0xb4108f[_0xdd671a('0x32a4')][_0x4e3b4e])[_0xdd671a('0x26b5')](function(_0x2c58bd){var _0x384df8=_0xdd671a,_0x2d5262=_0x521f70['$'][_0x384df8('0x10a7')][_0x384df8('0x19f6')](_0x384df8('0x625'));_0x194830[_0x384df8('0xa14')](_0x2c58bd+'\x20'+_0xb4108f[_0x384df8('0x1c2f')],_0x384df8('0x24de')),_0x2d5262['$setViewValue'](_0x2c58bd),_0x2d5262['$render']();})[_0xdd671a('0x2879')](function(){var _0x54ddc2=_0xdd671a;_0x15a110[_0x54ddc2('0x111d')]=_0xb4108f['matches'][_0x4e3b4e],_0x41cce3(!0x1);});},!0x1);}function _0x432497(){var _0x44480d=_0x2ae1b3;_0xb4108f[_0x44480d('0x1b25')]=-0x1,_0x156af2['nextTick'](_0x20a772),_0xb4108f[_0x44480d('0x32a4')]=[];}function _0x1c2f7d(){var _0x4442cf=_0x2ae1b3;_0x41cce3(!0x0),_0x15a110['searchText']='';var _0x8c2c58=document[_0x4442cf('0x634')](_0x4442cf('0x2d57'));_0x8c2c58[_0x4442cf('0x10d4')](_0x4442cf('0x38bf'),!0x0,!0x0,{'value':''}),_0x521f70[_0x4442cf('0x10a7')][_0x4442cf('0xf76')](_0x8c2c58),_0x521f70[_0x4442cf('0x10a7')][_0x4442cf('0x1137')](),_0x15a110['searchText']='',_0x521f70[_0x4442cf('0x10a7')][_0x4442cf('0x1c34')]();}function _0x42b676(_0x51e0ae,_0x21bf05){var _0x20d34d=_0x2ae1b3,_0x1febe6=_0x51e0ae?'polite':'assertive',_0x3e8ae0=[];_0x21bf05&_0x38537e&&-0x1!==_0xb4108f[_0x20d34d('0x1b25')]&&_0x3e8ae0[_0x20d34d('0x1a90')](_0x56b6b7()),_0x21bf05&_0x210232&&_0x3e8ae0[_0x20d34d('0x1a90')](_0x400404['resolve'](function(){var _0xc758e3=_0x20d34d;switch(_0xb4108f['matches'][_0xc758e3('0x175a')]){case 0x0:return _0xc758e3('0x3fa');case 0x1:return _0xc758e3('0xc55');default:return _0xc758e3('0x3741')+_0xb4108f[_0xc758e3('0x32a4')][_0xc758e3('0x175a')]+_0xc758e3('0x2e38');}}())),_0x400404[_0x20d34d('0x130c')](_0x3e8ae0)[_0x20d34d('0x26b5')](function(_0x312c4d){var _0x2f63a8=_0x20d34d;_0x194830[_0x2f63a8('0xa14')](_0x312c4d['join']('\x20'),_0x1febe6);});}function _0xd0435b(){var _0x3f6dfe=_0x2ae1b3,_0x30d73f,_0x25cc65,_0x4e7b78,_0x1b1290,_0x56c8ee;_0x521f70['li'][0x0]&&(_0x76022b===_0x3b9e8b?(_0x30d73f=_0x521f70['li'][Math[_0x3f6dfe('0x2780')](0x0,_0xb4108f[_0x3f6dfe('0x1b25')])],_0x25cc65=_0x521f70[_0x3f6dfe('0x10f9')][_0x3f6dfe('0x1147')],_0x4e7b78=_0x30d73f&&_0x30d73f[_0x3f6dfe('0x3245')]||0x0,_0x1b1290=_0x4e7b78+_0x30d73f['clientHeight'],_0x56c8ee=_0x521f70[_0x3f6dfe('0x10f9')][_0x3f6dfe('0x1fd3')],_0x4e7b78<_0x56c8ee?_0x251345(_0x4e7b78):_0x1b1290>_0x56c8ee+_0x25cc65&&_0x251345(_0x1b1290-_0x25cc65)):function(){var _0x41202a=_0x3f6dfe,_0x940a31=_0x521f70['li'][0x0][_0x41202a('0x1147')],_0x3584ea=_0x940a31*Math[_0x41202a('0x2780')](0x0,_0xb4108f[_0x41202a('0x1b25')]),_0x246530=_0x3584ea+_0x940a31,_0x2e99bf=_0x521f70[_0x41202a('0x6d7')]['clientHeight'],_0x5e1954=_0x521f70['scroller'][_0x41202a('0x1fd3')];_0x3584ea<_0x5e1954?_0x251345(_0x3584ea):_0x246530>_0x5e1954+_0x2e99bf&&_0x251345(_0x246530-_0x2e99bf);}());}function _0x251345(_0xc7bc){var _0x5d4363=_0x2ae1b3;_0x76022b===_0x3b9e8b?_0x521f70[_0x5d4363('0x10f9')][_0x5d4363('0x1fd3')]=_0xc7bc:_0x521f70['$'][_0x5d4363('0x10f9')][_0x5d4363('0x19f6')](_0x5d4363('0x390f'))['scrollTo'](_0xc7bc);}function _0x1c3ec4(){var _0x3a0948=_0x2ae1b3,_0x773af4=(_0xb4108f[_0x3a0948('0x1789')][_0x3a0948('0x25b7')]||'')[_0x3a0948('0x175a')];return _0xb4108f['hasNotFound']&&!_0x2f0b92()&&(!_0xb4108f[_0x3a0948('0x22a0')]||0x0!==_0x5ea6ba)&&_0x773af4>=_0x59ef5f()&&(_0x54b0d5||_0x22c987)&&!_0x156e93();}function _0x8341ca(){var _0x2db711=_0x2ae1b3,_0x6a3a98=_0x15a110['searchText']||'',_0x1e0cc8=_0x6a3a98[_0x2db711('0x856')]();!_0x15a110[_0x2db711('0x2161')]&&_0x95db20[_0x1e0cc8]?_0x3a6145(_0x95db20[_0x1e0cc8]):function(_0x2d8e7e){var _0x2fe9a9=_0x2db711,_0x5d4934=_0x15a110[_0x2fe9a9('0x955')][_0x2fe9a9('0x1951')](_0x1ea4ac),_0x9c56e5=_0x2d8e7e[_0x2fe9a9('0x856')](),_0x69296e=_0x4a272c[_0x2fe9a9('0x2f1d')](_0x5d4934),_0x41bdb5=!!_0x5d4934[_0x2fe9a9('0x26b5')];function _0x3c371f(_0x5613fe){_0x95db20[_0x9c56e5]=_0x5613fe,(_0x2d8e7e||'')===(_0x15a110['searchText']||'')&&_0x3a6145(_0x5613fe);}_0x69296e?_0x3c371f(_0x5d4934):_0x41bdb5&&function(_0x55e778){var _0x275bb0=_0x2fe9a9;_0x55e778&&(_0x55e778=_0x400404[_0x275bb0('0x36d1')](_0x55e778),_0x5ea6ba++,_0x41cce3(!0x0),_0x156af2[_0x275bb0('0x2baa')](function(){var _0x4d879d=_0x275bb0;_0x55e778[_0x4d879d('0x26b5')](_0x3c371f)[_0x4d879d('0x2879')](function(){0x0==--_0x5ea6ba&&_0x41cce3(!0x1);});},!0x0,_0x15a110));}(_0x5d4934);}(_0x6a3a98),_0xb4108f['hidden']=_0x376e2b();}function _0x3a6145(_0x340299){var _0x424d5b=_0x2ae1b3,_0x262cff,_0x705e66,_0x40ae12;_0xb4108f[_0x424d5b('0x32a4')]=_0x340299,_0xb4108f['hidden']=_0x376e2b(),_0xb4108f[_0x424d5b('0x22a0')]&&_0x41cce3(!0x1),_0x15a110[_0x424d5b('0x10a0')]&&(_0x262cff=_0x15a110[_0x424d5b('0x25b7')],_0x705e66=_0xb4108f[_0x424d5b('0x32a4')],_0x40ae12=_0x705e66[0x0],0x1===_0x705e66[_0x424d5b('0x175a')]&&_0x4df330(_0x40ae12)[_0x424d5b('0x26b5')](function(_0x53a3f3){var _0x69a038=_0x424d5b,_0x2b4f4d=_0x262cff===_0x53a3f3;_0x15a110[_0x69a038('0x1572')]&&!_0x2b4f4d&&(_0x2b4f4d=_0x262cff['toLowerCase']()===_0x53a3f3[_0x69a038('0x856')]()),_0x2b4f4d&&_0x4efbbe(0x0);})),_0x322a22(),_0x42b676(!0x0,_0x210232);}function _0x4dd589(_0x15ee5d,_0x4b3cd7){_0x3b23e6[_0x15ee5d]&&_0x15a110['$parent']['$eval'](_0x3b23e6[_0x15ee5d],_0x4b3cd7||{});}}}(),function(){var _0x1e9a9e=_0x1fb7d4;function _0x247c34(_0x13da75){var _0x59337f=a2_0x4bfe,_0x27ea0f=_0x59337f('0x4d9'),_0x373fec=[_0x59337f('0x2610'),_0x27ea0f];function _0x4ab02a(_0x12ee95){var _0x4e0d8a=_0x59337f;return _0x12ee95?(_0x12ee95=_0x12ee95[_0x4e0d8a('0x856')](),_0x373fec[_0x4e0d8a('0xe1c')](_0x12ee95)>-0x1?_0x12ee95:_0x27ea0f):_0x27ea0f;}return{'controller':_0x59337f('0x18ff'),'controllerAs':_0x59337f('0x274'),'scope':{'inputName':_0x59337f('0x21d7'),'inputMinlength':_0x59337f('0x2173'),'inputMaxlength':'@mdInputMaxlength','searchText':_0x59337f('0x91f'),'selectedItem':_0x59337f('0x1c75'),'itemsExpr':_0x59337f('0x2e9f'),'itemText':'&mdItemText','placeholder':'@placeholder','inputAriaDescribedBy':'@?inputAriaDescribedby','inputAriaLabelledBy':_0x59337f('0x1848'),'inputAriaLabel':_0x59337f('0x2e32'),'noCache':'=?mdNoCache','requireMatch':'=?mdRequireMatch','selectOnMatch':_0x59337f('0x1e6c'),'matchInsensitive':'=?mdMatchCaseInsensitive','itemChange':_0x59337f('0x2761'),'textChange':_0x59337f('0x1321'),'minLength':_0x59337f('0x3921'),'delay':_0x59337f('0x1a7'),'autofocus':_0x59337f('0x2e57'),'floatingLabel':_0x59337f('0xb58'),'autoselect':_0x59337f('0x1de4'),'menuClass':'@?mdMenuClass','menuContainerClass':_0x59337f('0x6dc'),'inputClass':_0x59337f('0x13c6'),'inputId':_0x59337f('0x2020'),'escapeOptions':'@?mdEscapeOptions','dropdownItems':_0x59337f('0x2e79'),'dropdownPosition':_0x59337f('0x2cb7'),'clearButton':_0x59337f('0x34b7'),'selectedMessage':'@?mdSelectedMessage','mdMode':'=?mdMode'},'compile':function(_0xc7c089,_0x5344a3){var _0x50ca2a=_0x59337f,_0x40d870=_0xc7c089['find']('input');return['md-select-on-focus',_0x50ca2a('0x24c5'),'ng-trim',_0x50ca2a('0x1584')]['forEach'](function(_0x525d96){var _0x6c621d=_0x50ca2a,_0x345131=_0x5344a3[_0x5344a3[_0x6c621d('0x318b')](_0x525d96)];null!==_0x345131&&_0x40d870[_0x6c621d('0x1e52')](_0x525d96,_0x345131);}),function(_0x458a2c,_0x5f21f7,_0x499e2a,_0x92cdce){var _0x53734b=_0x50ca2a;_0x92cdce['hasNotFound']=!!_0x5f21f7[_0x53734b('0x1e52')](_0x53734b('0x225a')),_0x4a272c[_0x53734b('0x392d')](_0x499e2a[_0x53734b('0x342')])||_0x458a2c[_0x53734b('0x1ab4')]||(_0x458a2c[_0x53734b('0x2c91')]=!0x0),_0x458a2c[_0x53734b('0x2efe')]=_0x4ab02a(_0x499e2a[_0x53734b('0x2efe')]),_0x5f21f7['on'](_0x53734b('0xe37'),function(_0x5c68bd){var _0x317dc2=_0x53734b;_0x5c68bd[_0x317dc2('0x16c5')]();});};},'template':function(_0x4f4bdc,_0xe119cb){var _0x43aac1=_0x59337f,_0x985329,_0x349c4c,_0x284635=(_0x985329=_0x4f4bdc[_0x43aac1('0x16fd')](_0x43aac1('0x31d6'))[_0x43aac1('0x2f53')](),(_0x349c4c=_0x985329[_0x43aac1('0x175a')]?_0x985329[_0x43aac1('0x1fb7')]():'')?_0x43aac1('0xefe')+_0x349c4c+_0x43aac1('0xfe1'):''),_0x5a72f2=function(){var _0x3cc4e6=_0x43aac1,_0xb2941d=_0x4f4bdc[_0x3cc4e6('0x16fd')](_0x3cc4e6('0x23f4'))['detach'](),_0x176485=_0xb2941d[_0x3cc4e6('0x175a')]?_0xb2941d['html']():_0x4f4bdc['html']();return _0xb2941d[_0x3cc4e6('0x175a')]||_0x4f4bdc['empty'](),''+_0x176485+_0x3cc4e6('0x31f9');}(),_0x232164=_0x4f4bdc[_0x43aac1('0x1fb7')](),_0x497234=_0xe119cb[_0x43aac1('0x1b4e')];return _0x284635&&_0x4f4bdc['attr'](_0x43aac1('0x225a'),!0x0),_0x4f4bdc[_0x43aac1('0x1e52')]('tabindex','-1'),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xe119cb[_0x43aac1('0xacb')]?_0x43aac1('0x1d18')+(null!=_0x497234?_0x43aac1('0xb32')+_0x497234+'\x22':'')+_0x43aac1('0x304b')+_0x232164+_0x43aac1('0x1000'):_0x43aac1('0x19b3')+(null!=_0x497234?_0x43aac1('0xb32')+_0x497234+'\x22':'')+_0x43aac1('0x2805'))+_0x43aac1('0x2fc1')+_0x13da75[_0x43aac1('0xe2a')]+_0x43aac1('0x727')+(_0xe119cb[_0x43aac1('0xacb')]?_0x43aac1('0xe7f'):'')+'\x22\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ng-if=\x22$mdAutocompleteCtrl.loadingIsVisible()\x22\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20md-mode=\x22indeterminate\x22>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+function(_0x54fd18,_0x3245ce){var _0x5ea5a9=_0x43aac1;if(_0x54fd18=_0x54fd18?'\x20'+_0x54fd18:'',_0x108dc6(_0x3245ce))return _0x5ea5a9('0x533')+_0x54fd18+_0x5ea5a9('0x337a');return'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20')+_0x5a72f2+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x284635+_0x43aac1('0x64e')+function(_0x1e5744){return _0x108dc6(_0x1e5744)?'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'';}(_0xe119cb[_0x43aac1('0x2efe')])+_0x43aac1('0x3503');function _0x108dc6(_0x274c01){return _0x4ab02a(_0x274c01)!==_0x27ea0f;}}};}_0x247c34['$inject']=[_0x1e9a9e('0x2431')],_0x4a272c[_0x1e9a9e('0x122c')](_0x1e9a9e('0x2c84'))[_0x1e9a9e('0x1e30')](_0x1e9a9e('0x1689'),_0x247c34);}(),function(){var _0x192799=_0x1fb7d4;function _0x1404e9(_0x1468b1,_0x51edd3){var _0x4320a3=a2_0x4bfe;return{'restrict':'AE','compile':function(_0x569618,_0x3831e2,_0x4f8551){return function(_0x50a1da,_0x59afa9,_0x5cf76b){var _0x3fdade=a2_0x4bfe,_0x392476,_0x18773c,_0x18365f=_0x50a1da[_0x3fdade('0x274')],_0x338161=_0x18365f[_0x3fdade('0x38bb')]['$new'](),_0x3f5418=_0x18365f[_0x3fdade('0x2ccf')];function _0x202089(_0xc67ce8,_0x4505d){var _0x2067da=_0x3fdade;_0x338161[_0x4505d]=_0x50a1da[_0xc67ce8],_0x50a1da[_0x2067da('0x1cb1')](_0xc67ce8,function(_0x19c0b6){var _0x531b9d=_0x2067da;_0x51edd3[_0x531b9d('0x2baa')](function(){_0x338161[_0x4505d]=_0x19c0b6;});});}_0x202089(_0x3fdade('0x242'),_0x3fdade('0x242')),_0x202089(_0x3fdade('0x1b7'),_0x3f5418),_0x392476=!0x1,_0x18773c=!0x1,_0x50a1da[_0x3fdade('0x1cb1')](function(){var _0x3456f7=_0x3fdade;_0x18773c||_0x392476||(_0x392476=!0x0,_0x50a1da[_0x3456f7('0x170b')](function(){var _0x34a85c=_0x3456f7;_0x18773c||_0x338161[_0x34a85c('0x3964')](),_0x392476=_0x18773c=!0x1;}));}),_0x338161[_0x3fdade('0x1cb1')](function(){_0x18773c=!0x0;}),_0x4f8551(_0x338161,function(_0xd279f4){var _0x3a3434=_0x3fdade;_0x59afa9[_0x3a3434('0xafd')](_0xd279f4);});};},'terminal':!0x0,'transclude':_0x4320a3('0x88a')};}_0x1404e9[_0x192799('0x28c9')]=[_0x192799('0x2078'),_0x192799('0x2e27')],_0x4a272c[_0x192799('0x122c')]('material.components.autocomplete')['directive'](_0x192799('0x2d3d'),_0x1404e9);}(),function(){var _0x3ff123=_0x1fb7d4;function _0x540674(_0x3144d8,_0x430582,_0x24bd22,_0x99dc81){var _0x410103=a2_0x4bfe;this[_0x410103('0x1868')]=_0x3144d8,this['$element']=_0x430582,this[_0x410103('0xa7b')]=_0x24bd22,this['$mdUtil']=_0x99dc81,this['regex']=null;}_0x540674['$inject']=['$scope',_0x3ff123('0x34d6'),_0x3ff123('0xa7b'),_0x3ff123('0x2e27')],_0x4a272c[_0x3ff123('0x122c')]('material.components.autocomplete')[_0x3ff123('0x19f6')](_0x3ff123('0x1225'),_0x540674),_0x540674['prototype']['init']=function(_0x5cd789,_0x14c70d){var _0x211dcf=_0x3ff123;this['flags']=this[_0x211dcf('0xa7b')][_0x211dcf('0x16fc')]||'',this[_0x211dcf('0x272e')]=this[_0x211dcf('0x1868')][_0x211dcf('0x1cb1')](function(_0x4b153b){return{'term':_0x5cd789(_0x4b153b),'contentText':_0x14c70d(_0x4b153b)};}[_0x211dcf('0x1ecd')](this),this[_0x211dcf('0x4cf')][_0x211dcf('0x1ecd')](this),!0x0),this[_0x211dcf('0x34d6')]['on'](_0x211dcf('0x2f34'),this[_0x211dcf('0x272e')]);},_0x540674['prototype']['onRender']=function(_0x597439,_0x2b7f74){var _0x28a1b4=_0x3ff123,_0x55a907=_0x597439[_0x28a1b4('0x379')];null!==this[_0x28a1b4('0xcf6')]&&_0x597439[_0x28a1b4('0xe67')]===_0x2b7f74[_0x28a1b4('0xe67')]||(this['regex']=this[_0x28a1b4('0xd16')](_0x597439[_0x28a1b4('0xe67')],this[_0x28a1b4('0x951')])),_0x597439['term']?this[_0x28a1b4('0x340b')](_0x55a907):this[_0x28a1b4('0x34d6')][_0x28a1b4('0xc7a')](_0x55a907);},_0x540674[_0x3ff123('0x5a')][_0x3ff123('0x340b')]=function(_0x2beae7){var _0x3fa1c2=_0x3ff123,_0x53b3f0=this[_0x3fa1c2('0x304d')](_0x2beae7);this[_0x3fa1c2('0x34d6')][_0x3fa1c2('0x1e61')](),_0x53b3f0['forEach'](function(_0x322e8b){var _0x87097=_0x3fa1c2;if(_0x322e8b[_0x87097('0x1085')]){var _0xfbd986=_0x4a272c['element'](_0x87097('0x3091'))[_0x87097('0xc7a')](_0x322e8b[_0x87097('0xc7a')]);this[_0x87097('0x34d6')][_0x87097('0x10f')](_0xfbd986);}else this[_0x87097('0x34d6')][_0x87097('0x10f')](document[_0x87097('0x16d2')](_0x322e8b));}['bind'](this));},_0x540674[_0x3ff123('0x5a')][_0x3ff123('0x304d')]=function(_0x597d17){var _0x1ce540=_0x3ff123,_0xc697fd=[],_0x1f26fe=0x0;return _0x597d17[_0x1ce540('0x34c8')](this['regex'],function(_0x55ba2c,_0x368ad4){var _0xf53241=_0x1ce540;_0x17f363(_0x1f26fe,_0x368ad4),_0xc697fd[_0xf53241('0x1a90')]({'text':_0x55ba2c,'isMatch':!0x0}),_0x1f26fe=_0x368ad4+_0x55ba2c['length'];}),_0x17f363(_0x1f26fe),_0xc697fd;function _0x17f363(_0x250d3b,_0x1e0bec){var _0x14c6b3=_0x1ce540,_0x4da21c=_0x597d17[_0x14c6b3('0x2c0a')](_0x250d3b,_0x1e0bec);_0x4da21c&&_0xc697fd[_0x14c6b3('0x1a90')](_0x4da21c);}},_0x540674['prototype'][_0x3ff123('0xd16')]=function(_0x46db97,_0x4463fb){var _0xc14c7b=_0x3ff123,_0x1b6bb7='',_0x794d1e='',_0x368845=this[_0xc14c7b('0x2e27')][_0xc14c7b('0x36ed')](_0x46db97);return _0x4463fb[_0xc14c7b('0xe1c')]('^')>=0x0&&(_0x1b6bb7='^'),_0x4463fb['indexOf']('$')>=0x0&&(_0x794d1e='$'),new RegExp(_0x1b6bb7+_0x368845+_0x794d1e,_0x4463fb[_0xc14c7b('0x34c8')](/[$^]/g,''));};}(),function(){var _0xa0561f=_0x1fb7d4;function _0x4b0c37(_0x3b06d1,_0x3357f6){var _0x14f07f=a2_0x4bfe;return{'terminal':!0x0,'controller':_0x14f07f('0x1225'),'compile':function(_0x1808e1,_0x785e48){var _0x514026=_0x3357f6(_0x785e48['mdHighlightText']),_0x1998e9=_0x3b06d1(_0x1808e1['html']());return function(_0x4fc3c5,_0x47eea1,_0x364d08,_0x561771){var _0x307da4=a2_0x4bfe;_0x561771[_0x307da4('0x261a')](_0x514026,_0x1998e9);};}};}_0x4b0c37[_0xa0561f('0x28c9')]=[_0xa0561f('0x2476'),_0xa0561f('0x1636')],_0x4a272c[_0xa0561f('0x122c')]('material.components.autocomplete')[_0xa0561f('0x1e30')]('mdHighlightText',_0x4b0c37);}(),_0x4a272c[_0x1fb7d4('0x122c')]('material.components.backdrop',[_0x1fb7d4('0x113c')])[_0x1fb7d4('0x1e30')](_0x1fb7d4('0x1683'),['$mdTheming','$mdUtil',_0x1fb7d4('0x2a64'),_0x1fb7d4('0x245c'),_0x1fb7d4('0x398e'),'$log',_0x1fb7d4('0x3490'),'$document',function(_0x318aee,_0x377372,_0x154a0a,_0x17d509,_0xde70c3,_0x5e020d,_0x575492,_0x39bd9d){return{'restrict':'E','link':function(_0x438f57,_0xe58adf,_0x266e4c){var _0x21201e=a2_0x4bfe,_0x254f95;function _0x460188(){var _0x44d4b6=a2_0x4bfe,_0x5f8bc7=parseInt(_0x254f95[_0x44d4b6('0x28c')],0xa)+Math[_0x44d4b6('0x1e6f')](parseInt(_0x254f95['top'],0xa));_0xe58adf['css'](_0x44d4b6('0x28c'),_0x5f8bc7+'px');}_0x154a0a[_0x21201e('0x325c')]&&_0x154a0a[_0x21201e('0x325c')](_0xe58adf,_0x17d509),_0x575492(function(){var _0x2dbc66=_0x21201e;if(_0x2dbc66('0x7d1')===(_0x254f95=_0xde70c3[_0x2dbc66('0x2a5c')](_0x39bd9d[0x0][_0x2dbc66('0x3742')]))[_0x2dbc66('0x2fd5')]){var _0x561661=_0x377372[_0x2dbc66('0x24cd')](function(){var _0x2944c9=_0x2dbc66;_0x254f95=_0xde70c3[_0x2944c9('0x2a5c')](_0x39bd9d[0x0][_0x2944c9('0x3742')]),_0x460188();},0x3c,null,!0x1);_0x460188(),_0x4a272c[_0x2dbc66('0x88a')](_0xde70c3)['on'](_0x2dbc66('0x32b7'),_0x561661),_0x438f57[_0x2dbc66('0x1db8')](_0x2dbc66('0x2f34'),function(){var _0x3755bd=_0x2dbc66;_0x4a272c[_0x3755bd('0x88a')](_0xde70c3)['off'](_0x3755bd('0x32b7'),_0x561661);});}var _0x3a37f7=_0xe58adf[_0x2dbc66('0x38bb')]();_0x3a37f7[_0x2dbc66('0x175a')]&&(_0x2dbc66('0x187c')===_0x3a37f7[0x0][_0x2dbc66('0x10c3')]&&_0xe58adf['css'](_0x2dbc66('0x2fd5'),_0x2dbc66('0x7d1')),_0x2dbc66('0xff0')===_0xde70c3[_0x2dbc66('0x2a5c')](_0x3a37f7[0x0])[_0x2dbc66('0x2fd5')]&&_0x5e020d[_0x2dbc66('0x8fa')]('\x20may\x20not\x20work\x20properly\x20in\x20a\x20scrolled,\x20static-positioned\x20parent\x20container.'),_0x318aee['inherit'](_0xe58adf,_0x3a37f7));});}};}]),function(){var _0x3fb4f8=_0x1fb7d4;function _0x30fbdb(_0x529885){return{'restrict':'E','link':function(_0x3fa8da,_0x266328){var _0x284bd3=a2_0x4bfe;_0x266328[_0x284bd3('0x2dc8')]('_md'),_0x3fa8da['$on']('$destroy',function(){var _0x47c68b=_0x284bd3;_0x529885[_0x47c68b('0x2cdb')]();});}};}function _0x3ceefd(_0x4bc531){var _0x5dbe10=a2_0x4bfe;_0x3faa8c[_0x5dbe10('0x28c9')]=[_0x5dbe10('0x2a64'),'$mdConstant',_0x5dbe10('0x2e27'),_0x5dbe10('0x2e8e'),_0x5dbe10('0x2308'),_0x5dbe10('0x245c'),'$mdGesture',_0x5dbe10('0x38a3')];return _0x4bc531('$mdBottomSheet')[_0x5dbe10('0x153e')]({'methods':['disableParentScroll','escapeToClose',_0x5dbe10('0x1d3c')],'options':_0x3faa8c});function _0x3faa8c(_0x41a16d,_0x15b20b,_0x223316,_0xecb59f,_0x10a93c,_0x2feb74,_0xd956aa,_0x578108){var _0x2b222e;return{'themable':!0x0,'onShow':function(_0x3f60c6,_0x262025,_0x4f6a8b,_0x39bc36){var _0x196986=a2_0x4bfe;return((_0x262025=_0x223316[_0x196986('0x469')](_0x262025,_0x196986('0x17f8')))[_0x196986('0x1e52')]('tabindex','-1'),_0x262025[_0x196986('0x522')](_0x196986('0x27d0')))&&_0x578108[_0x196986('0x8fa')](_0x196986('0x2c13'),_0x262025[0x0]),_0x4f6a8b[_0x196986('0xb91')]?(_0x4f6a8b[_0x196986('0x1d3c')]=!0x1,_0x4f6a8b[_0x196986('0x33ac')]=!0x1):_0x4f6a8b[_0x196986('0xfcc')]=function(_0x4c5a80,_0x542d90){var _0x4388f2=_0x196986,_0x1d1ac8=_0xd956aa[_0x4388f2('0x2bd7')](_0x542d90,_0x4388f2('0xfe7'),{'horizontal':!0x1});return _0x542d90['on'](_0x4388f2('0xfee'),_0x5df2a6)['on'](_0x4388f2('0x71e'),_0x287daa)['on'](_0x4388f2('0x1ef4'),_0x2f3279),function(){var _0x968445=_0x4388f2;_0x1d1ac8(),_0x542d90['off'](_0x968445('0xfee'),_0x5df2a6),_0x542d90[_0x968445('0x1202')](_0x968445('0x71e'),_0x287daa),_0x542d90[_0x968445('0x1202')](_0x968445('0x1ef4'),_0x2f3279);};function _0x5df2a6(){var _0x156fbc=_0x4388f2;_0x4c5a80[_0x156fbc('0x30a3')](_0x15b20b[_0x156fbc('0x1ca9')][_0x156fbc('0x2dca')],'0ms');}function _0x287daa(_0x5daaa4){var _0x1e8261=_0x4388f2,_0x5d84e7=_0x5daaa4[_0x1e8261('0xc25')][_0x1e8261('0x2cbe')];_0x5d84e7<0x5&&(_0x5d84e7=Math[_0x1e8261('0x2780')](-0x50,_0x5d84e7/0x2)),_0x4c5a80[_0x1e8261('0x30a3')](_0x15b20b[_0x1e8261('0x1ca9')][_0x1e8261('0x2345')],_0x1e8261('0x8e2')+(0x50+_0x5d84e7)+_0x1e8261('0x170f'));}function _0x2f3279(_0x3ca61e){var _0x81e42e=_0x4388f2;if(_0x3ca61e[_0x81e42e('0xc25')][_0x81e42e('0x2cbe')]>0x0&&(_0x3ca61e['pointer'][_0x81e42e('0x2cbe')]>0x14||Math[_0x81e42e('0x1e6f')](_0x3ca61e[_0x81e42e('0xc25')][_0x81e42e('0x2b87')])>0.5)){var _0x39c09b=_0x4c5a80[_0x81e42e('0x18f6')](_0x81e42e('0x1147'))-_0x3ca61e[_0x81e42e('0xc25')]['distanceY'],_0x2b36a2=Math['min'](_0x39c09b/_0x3ca61e['pointer']['velocityY']*0.75,0x1f4);_0x4c5a80[_0x81e42e('0x30a3')](_0x15b20b[_0x81e42e('0x1ca9')]['TRANSITION_DURATION'],_0x2b36a2+'ms'),_0x223316['nextTick'](_0x10a93c[_0x81e42e('0x31ce')],!0x0);}else _0x4c5a80[_0x81e42e('0x30a3')](_0x15b20b[_0x81e42e('0x1ca9')][_0x81e42e('0x2dca')],''),_0x4c5a80[_0x81e42e('0x30a3')](_0x15b20b['CSS'][_0x81e42e('0x2345')],'');}}(_0x262025,_0x4f6a8b['parent']),_0x4f6a8b[_0x196986('0x326f')]||((_0x2b222e=_0x223316[_0x196986('0x1812')](_0x3f60c6,'md-bottom-sheet-backdrop\x20md-opaque'))[0x0][_0x196986('0x3645')]=-0x1,_0x4f6a8b[_0x196986('0x1d3c')]&&_0x2b222e['on'](_0x196986('0x160'),function(){var _0x45879d=_0x196986;_0x223316[_0x45879d('0x2baa')](_0x10a93c['cancel'],!0x0);}),_0xecb59f['inherit'](_0x2b222e,_0x4f6a8b[_0x196986('0x38bb')]),_0x41a16d['enter'](_0x2b222e,_0x4f6a8b['parent'],null)),(_0xecb59f[_0x196986('0xf40')](_0x262025,_0x4f6a8b[_0x196986('0x38bb')]),_0x4f6a8b[_0x196986('0x94b')]&&(_0x4f6a8b[_0x196986('0x2435')]=_0x223316[_0x196986('0x10b3')](_0x262025,_0x4f6a8b[_0x196986('0x38bb')]))),_0x41a16d[_0x196986('0xa0a')](_0x262025,_0x4f6a8b[_0x196986('0x38bb')],_0x2b222e)['then'](function(){var _0x591a1d=_0x196986,_0x30eed8=_0x223316[_0x591a1d('0x6eb')](_0x262025)||_0x4a272c[_0x591a1d('0x88a')](_0x262025[0x0][_0x591a1d('0x2cee')](_0x591a1d('0xb54'))||_0x262025[0x0][_0x591a1d('0x2cee')]('a')||_0x262025[0x0][_0x591a1d('0x2cee')](_0x223316[_0x591a1d('0x20f6')](_0x591a1d('0x752'),!0x0)))||_0x2b222e;_0x4f6a8b['escapeToClose']&&(_0x4f6a8b['rootElementKeyupCallback']=function(_0x4ddafb){var _0x5ae7a5=_0x591a1d;_0x4ddafb[_0x5ae7a5('0x1f8c')]===_0x15b20b[_0x5ae7a5('0xaca')][_0x5ae7a5('0x3618')]&&_0x223316[_0x5ae7a5('0x2baa')](_0x10a93c[_0x5ae7a5('0x31ce')],!0x0);},_0x2feb74['on']('keyup',_0x4f6a8b['rootElementKeyupCallback']),_0x30eed8&&_0x30eed8[_0x591a1d('0x1c34')]());});},'onRemove':function(_0x476431,_0x4db59a,_0xc2d3f3){var _0x2a94cb=a2_0x4bfe;return _0xc2d3f3['disableBackdrop']||_0x41a16d[_0x2a94cb('0x376c')](_0x2b222e),_0x41a16d[_0x2a94cb('0x376c')](_0x4db59a)[_0x2a94cb('0x26b5')](function(){var _0x110f72=_0x2a94cb;_0xc2d3f3[_0x110f72('0x94b')]&&(_0xc2d3f3[_0x110f72('0x2435')](),delete _0xc2d3f3[_0x110f72('0x2435')]),_0xc2d3f3['cleanupGestures']&&_0xc2d3f3['cleanupGestures']();});},'disableBackdrop':!0x1,'escapeToClose':!0x0,'clickOutsideToClose':!0x0,'disableParentScroll':!0x0,'isLockedOpen':!0x1};}}_0x30fbdb['$inject']=[_0x3fb4f8('0x2308')],_0x3ceefd[_0x3fb4f8('0x28c9')]=['$$interimElementProvider'],_0x4a272c[_0x3fb4f8('0x122c')](_0x3fb4f8('0x1e0f'),['material.core',_0x3fb4f8('0xe85')])[_0x3fb4f8('0x1e30')](_0x3fb4f8('0x151f'),_0x30fbdb)[_0x3fb4f8('0x210d')](_0x3fb4f8('0x2308'),_0x3ceefd);}(),function(){var _0x32b66b=_0x1fb7d4;function _0x51f5cc(_0x5bd99b){return{'restrict':'E','link':function(_0x336aeb,_0x5bb4f3){_0x5bd99b(_0x5bb4f3);}};}function _0x43a98d(_0x5db374,_0x5861db,_0x2d3c14,_0x19b8c0){return{'restrict':'EA','replace':!0x0,'transclude':!0x0,'template':function(_0x4085c5,_0x460067){var _0xe59b5e=a2_0x4bfe;return _0x376709(_0x460067)?_0xe59b5e('0x1d81'):_0xe59b5e('0x2ed7')+(void 0x0===_0x460067['type']?_0xe59b5e('0xb54'):_0x460067[_0xe59b5e('0x21a5')])+_0xe59b5e('0xa55');},'link':function(_0x4520f0,_0x4921eb,_0x2b8499){var _0x4cc9a0=a2_0x4bfe;_0x5861db(_0x4921eb),_0x5db374[_0x4cc9a0('0x1a76')](_0x4520f0,_0x4921eb),_0x2d3c14[_0x4cc9a0('0x2c61')](_0x4921eb,_0x4cc9a0('0x15da')),_0x376709(_0x2b8499)&&_0x4a272c['isDefined'](_0x2b8499[_0x4cc9a0('0x1f5')])&&!_0x4921eb['hasClass']('_md-nav-button')&&_0x4520f0['$watch'](_0x2b8499[_0x4cc9a0('0x1f5')],function(_0x20212e){var _0x35dd8c=_0x4cc9a0;_0x4921eb['attr'](_0x35dd8c('0x1b4e'),_0x20212e?-0x1:0x0);}),(_0x4921eb['on'](_0x4cc9a0('0x160'),function(_0x1e03d4){var _0x3cfbae=_0x4cc9a0;!0x0===_0x2b8499['disabled']&&(_0x1e03d4[_0x3cfbae('0x1f1a')](),_0x1e03d4[_0x3cfbae('0xf69')]());}),_0x4921eb[_0x4cc9a0('0x522')](_0x4cc9a0('0x18fd'))||(_0x4921eb['on'](_0x4cc9a0('0x1c34'),function(){var _0x52ddbb=_0x4cc9a0;_0x19b8c0[_0x52ddbb('0x17b9')]()&&'keyboard'!==_0x19b8c0[_0x52ddbb('0x2594')]()||_0x4921eb[_0x52ddbb('0x2dc8')](_0x52ddbb('0x314b'));}),_0x4921eb['on'](_0x4cc9a0('0x1137'),function(){var _0x3f8dea=_0x4cc9a0;_0x4921eb[_0x3f8dea('0x3a0')]('md-focused');})));}};function _0x376709(_0x3c8d67){var _0x2860c4=a2_0x4bfe;return _0x4a272c[_0x2860c4('0x392d')](_0x3c8d67[_0x2860c4('0x3277')])||_0x4a272c['isDefined'](_0x3c8d67['ngHref'])||_0x4a272c[_0x2860c4('0x392d')](_0x3c8d67[_0x2860c4('0x2139')])||_0x4a272c[_0x2860c4('0x392d')](_0x3c8d67[_0x2860c4('0xe9e')]);}}_0x43a98d[_0x32b66b('0x28c9')]=['$mdButtonInkRipple',_0x32b66b('0x2e8e'),'$mdAria','$mdInteraction'],_0x51f5cc[_0x32b66b('0x28c9')]=[_0x32b66b('0x2e8e')],_0x4a272c[_0x32b66b('0x122c')]('material.components.button',[_0x32b66b('0x113c')])[_0x32b66b('0x1e30')](_0x32b66b('0x238c'),_0x43a98d)[_0x32b66b('0x1e30')]('a',_0x51f5cc);}(),function(){var _0x7e74fc=_0x1fb7d4;function _0x2d7e14(_0x1d5758){return{'restrict':'E','link':function(_0xe7af32,_0x23f698,_0x3c2ba0){var _0x5f0164=a2_0x4bfe;_0x23f698[_0x5f0164('0x2dc8')](_0x5f0164('0x1454')),_0x1d5758(_0x23f698);}};}_0x2d7e14['$inject']=[_0x7e74fc('0x2e8e')],_0x4a272c['module'](_0x7e74fc('0x139c'),['material.core'])['directive'](_0x7e74fc('0x83c'),_0x2d7e14);}(),function(){var _0x3ea4fb=_0x1fb7d4;function _0x12ec8f(_0x5c6635,_0x5b2bad,_0x1cd3b2,_0xf4827,_0x1708d3,_0x435723){var _0x112d0a=a2_0x4bfe;return _0x5c6635=_0x5c6635[0x0],{'restrict':'E','transclude':!0x0,'require':[_0x112d0a('0xeb2'),'?ngModel',_0x112d0a('0x3670')],'priority':_0x1cd3b2[_0x112d0a('0x1929')],'template':'','compile':function(_0x40a148,_0x1e4489){var _0x3740ef=_0x112d0a;return _0x1e4489[_0x3740ef('0x44c')](_0x3740ef('0x1b4e'),_0x1e4489[_0x3740ef('0x1b4e')]||'0'),_0x1e4489[_0x3740ef('0x44c')](_0x3740ef('0x21a5'),_0x3740ef('0x1cc9')),_0x1e4489[_0x3740ef('0x44c')]('role',_0x1e4489[_0x3740ef('0x21a5')]),{'pre':function(_0x2f2ccd,_0x5cef12){var _0x505040=_0x3740ef;_0x5cef12['on'](_0x505040('0x160'),function(_0x2d5d0e){var _0x1355da=_0x505040;this[_0x1355da('0x2052')](_0x1355da('0x2d00'))&&_0x2d5d0e['stopImmediatePropagation']();});},'post':function(_0x583b3c,_0xf095b1,_0x19e850,_0x35bca4){var _0x14d35b=_0x3740ef,_0x1a497e,_0x1e2963=_0x35bca4[0x0],_0x2f5f3a=_0x35bca4[0x1]||_0x1708d3[_0x14d35b('0x265')](),_0x576702=_0x35bca4[0x2];if(_0x1e2963){var _0x241f33=_0x1e2963['isErrorGetter']||function(){var _0x456067=_0x14d35b;return _0x2f5f3a[_0x456067('0x2d52')]&&(_0x2f5f3a[_0x456067('0xb19')]||_0x576702&&_0x576702[_0x456067('0xc7f')]);};_0x1e2963[_0x14d35b('0x10a7')]=_0xf095b1,_0x583b3c[_0x14d35b('0x1cb1')](_0x241f33,_0x1e2963[_0x14d35b('0x446')]);}_0xf4827(_0xf095b1),_0xf095b1[_0x14d35b('0xfc0')]()['on'](_0x14d35b('0x1c34'),function(){var _0x4ddbaf=_0x14d35b;_0xf095b1[_0x4ddbaf('0x1c34')]();}),_0x1708d3[_0x14d35b('0x3471')](_0x19e850[_0x14d35b('0x21bd')])&&(_0x4a1b49(),_0x583b3c[_0x14d35b('0x1cb1')](_0x19e850[_0x14d35b('0x21bd')],_0x4a1b49)),_0x19e850['ngChecked']&&_0x583b3c['$watch'](_0x583b3c[_0x14d35b('0x1951')]['bind'](_0x583b3c,_0x19e850[_0x14d35b('0x29e8')]),function(_0x5525e0){var _0x99ce0c=_0x14d35b;_0x2f5f3a[_0x99ce0c('0x194a')](_0x5525e0),_0x2f5f3a[_0x99ce0c('0x29cc')]();});function _0x52747c(_0x27f49a,_0x5de72b,_0x2b4388){_0x19e850[_0x27f49a]&&_0x583b3c['$watch'](_0x19e850[_0x27f49a],function(_0x310aeb){var _0x29023e=a2_0x4bfe;_0x2b4388[_0x310aeb]&&_0xf095b1[_0x29023e('0x1e52')](_0x5de72b,_0x2b4388[_0x310aeb]);});}function _0x442c4(_0x5db753){var _0x414448=_0x14d35b,_0x2ce02a,_0x2c2e86,_0x42be31=_0x5db753[_0x414448('0x35c5')]||_0x5db753[_0x414448('0x1f8c')];switch(_0x5db753[_0x414448('0x1f1a')](),_0x42be31){case _0x1cd3b2[_0x414448('0xaca')][_0x414448('0x576')]:_0xf095b1['addClass'](_0x414448('0x314b')),_0x3846c5(_0x5db753);break;case _0x1cd3b2[_0x414448('0xaca')][_0x414448('0x1e31')]:(_0x2c2e86=_0x1708d3['getClosest'](_0x5db753['target'],'form'))&&(_0x2ce02a=_0x2c2e86[_0x414448('0x2cee')](_0x414448('0x1c39')))&&_0x2ce02a[_0x414448('0x160')]();}}function _0x3846c5(_0x3b16b6){var _0x70f228=_0x14d35b;_0xf095b1[0x0][_0x70f228('0x2052')]('disabled')||_0x583b3c['skipToggle']||_0x583b3c[_0x70f228('0x1280')](function(){var _0x30d72f=_0x70f228,_0x35930a=_0x19e850[_0x30d72f('0x29e8')]&&_0x19e850[_0x30d72f('0x34cb')]?_0x19e850[_0x30d72f('0x26e2')]:!_0x2f5f3a[_0x30d72f('0x9d')];_0x2f5f3a[_0x30d72f('0x194a')](_0x35930a,_0x3b16b6&&_0x3b16b6['type']),_0x2f5f3a['$render']();});}function _0x3a75e9(){var _0x3edc21=_0x14d35b;_0xf095b1['toggleClass'](_0x3edc21('0x1b28'),!!_0x2f5f3a['$viewValue']&&!_0x1a497e);}function _0x4a1b49(_0x58385c){var _0x1f7804=_0x14d35b;(_0x1a497e=!0x1!==_0x58385c)&&_0xf095b1[_0x1f7804('0x1e52')](_0x1f7804('0x11a4'),_0x1f7804('0x5b3')),_0xf095b1[_0x1f7804('0x2af2')](_0x1f7804('0x2d43'),_0x1a497e);}_0x52747c(_0x14d35b('0x1f5'),_0x14d35b('0x1b4e'),{'true':'-1','false':_0x19e850['tabindex']}),_0x5b2bad[_0x14d35b('0x10a8')](_0xf095b1,_0x14d35b('0x15da')),_0x5c6635[_0x14d35b('0x3634')][_0x14d35b('0x11ed')](_0x583b3c,{'on':_0x4a272c[_0x14d35b('0x2374')],0x0:{}},_0x19e850,[_0x2f5f3a]),_0xf095b1['on'](_0x14d35b('0x160'),_0x3846c5)['on']('keypress',_0x442c4)['on'](_0x14d35b('0x1c34'),function(){var _0x4d0466=_0x14d35b;'keyboard'===_0x435723['getLastInteractionType']()&&_0xf095b1[_0x4d0466('0x2dc8')]('md-focused');})['on'](_0x14d35b('0x1137'),function(){var _0x504d25=_0x14d35b;_0xf095b1[_0x504d25('0x3a0')]('md-focused');}),_0x2f5f3a[_0x14d35b('0x29cc')]=_0x3a75e9;}};}};}_0x12ec8f[_0x3ea4fb('0x28c9')]=[_0x3ea4fb('0x377b'),'$mdAria',_0x3ea4fb('0x35b'),_0x3ea4fb('0x2e8e'),_0x3ea4fb('0x2e27'),'$mdInteraction'],_0x4a272c[_0x3ea4fb('0x122c')](_0x3ea4fb('0xfc6'),[_0x3ea4fb('0x113c')])[_0x3ea4fb('0x1e30')](_0x3ea4fb('0x3637'),_0x12ec8f);}(),_0x4a272c[_0x1fb7d4('0x122c')](_0x1fb7d4('0x1902'),[_0x1fb7d4('0x113c'),_0x1fb7d4('0x2c84')]),function(){var _0x3672e8=_0x1fb7d4;function _0x14828e(_0xff6049,_0x50939f,_0x5ae5f8,_0x31233e,_0x3ed66b){var _0x416993=a2_0x4bfe;this[_0x416993('0x1868')]=_0xff6049,this[_0x416993('0x34d6')]=_0x50939f,this[_0x416993('0x35b')]=_0x5ae5f8,this[_0x416993('0x1993')]=_0x31233e,this['$mdUtil']=_0x3ed66b,this[_0x416993('0xada')]=!0x1,this[_0x416993('0xe29')]=_0x6373f5,this[_0x416993('0x21ca')]=!0x1;}_0x14828e[_0x3672e8('0x28c9')]=[_0x3672e8('0x1868'),_0x3672e8('0x34d6'),_0x3672e8('0x35b'),'$timeout',_0x3672e8('0x2e27')],_0x4a272c[_0x3672e8('0x122c')](_0x3672e8('0x1902'))[_0x3672e8('0x19f6')]('MdChipCtrl',_0x14828e),_0x14828e[_0x3672e8('0x5a')]['init']=function(_0x42361a){var _0x3ca917=_0x3672e8;this['parentController']=_0x42361a,this[_0x3ca917('0x21ca')]=this[_0x3ca917('0xe29')][_0x3ca917('0x21ca')],this['enableChipEdit']&&(this[_0x3ca917('0x34d6')]['on']('keydown',this[_0x3ca917('0x95e')][_0x3ca917('0x1ecd')](this)),this[_0x3ca917('0x34d6')]['on'](_0x3ca917('0x1460'),this[_0x3ca917('0x1eba')]['bind'](this)),this['getChipContent']()[_0x3ca917('0x2dc8')]('_md-chip-content-edit-is-enabled'));},_0x14828e[_0x3672e8('0x5a')]['getChipContent']=function(){var _0x3455d5=_0x3672e8,_0x51cc44=this[_0x3455d5('0x34d6')][0x0][_0x3455d5('0x1197')]('md-chip-content');return _0x4a272c[_0x3455d5('0x88a')](_0x51cc44[0x0]);},_0x14828e['prototype'][_0x3672e8('0x42c')]=function(){var _0x228154=_0x3672e8,_0x529dd7=_0x4a272c['element'](this[_0x228154('0x127')]()[_0x228154('0xfc0')]()[0x0]);return _0x529dd7&&0x0!==_0x529dd7['length']||(_0x529dd7=_0x4a272c[_0x228154('0x88a')](this['getChipContent']()[_0x228154('0x2f8b')]()[0x0])),_0x529dd7;},_0x14828e[_0x3672e8('0x5a')][_0x3672e8('0x33df')]=function(){var _0x8ab38c=_0x3672e8;return parseInt(this[_0x8ab38c('0x34d6')]['attr'](_0x8ab38c('0x1b25')));},_0x14828e[_0x3672e8('0x5a')]['goOutOfEditMode']=function(){var _0x5b6958=_0x3672e8;if(this[_0x5b6958('0xada')]){this['isEditing']=!0x1,this[_0x5b6958('0x34d6')]['removeClass'](_0x5b6958('0x2c0')),this[_0x5b6958('0x127')]()[0x0][_0x5b6958('0x19fc')]='false';var _0x1cc4b2=this[_0x5b6958('0x33df')](),_0x44fe16=this[_0x5b6958('0x42c')]()[_0x5b6958('0xc7a')]();_0x44fe16?(this[_0x5b6958('0xe29')][_0x5b6958('0x24dc')](_0x1cc4b2,_0x44fe16),this[_0x5b6958('0x2e27')][_0x5b6958('0x2baa')](function(){var _0x2beb9d=_0x5b6958;this['parentController'][_0x2beb9d('0x1607')]===_0x1cc4b2&&this[_0x2beb9d('0xe29')][_0x2beb9d('0xdda')](_0x1cc4b2);}[_0x5b6958('0x1ecd')](this))):this['parentController'][_0x5b6958('0x2ecc')](_0x1cc4b2);}},_0x14828e[_0x3672e8('0x5a')][_0x3672e8('0x12e6')]=function(_0x5869ec){var _0x4ca365=_0x3672e8,_0x29e09e,_0x37a25c;document[_0x4ca365('0x3742')][_0x4ca365('0xac3')]?((_0x29e09e=document[_0x4ca365('0x3742')][_0x4ca365('0xac3')]())[_0x4ca365('0x4b8')](_0x5869ec),_0x29e09e[_0x4ca365('0x32b0')]()):_0x49f10c[_0x4ca365('0x159b')]&&(_0x37a25c=_0x49f10c[_0x4ca365('0x159b')](),(_0x29e09e=document[_0x4ca365('0xadb')]())['selectNodeContents'](_0x5869ec),_0x37a25c[_0x4ca365('0x1db7')](),_0x37a25c[_0x4ca365('0x63c')](_0x29e09e));},_0x14828e[_0x3672e8('0x5a')]['goInEditMode']=function(){var _0x60c4a1=_0x3672e8;this['isEditing']=!0x0,this[_0x60c4a1('0x34d6')][_0x60c4a1('0x2dc8')](_0x60c4a1('0x2c0')),this[_0x60c4a1('0x127')]()[0x0][_0x60c4a1('0x19fc')]=_0x60c4a1('0x11cf'),this[_0x60c4a1('0x127')]()['on'](_0x60c4a1('0x1137'),function(){var _0xafa82f=_0x60c4a1;this[_0xafa82f('0x2a7a')]();}[_0x60c4a1('0x1ecd')](this)),this['selectNodeContents'](this[_0x60c4a1('0x127')]()[0x0]);},_0x14828e[_0x3672e8('0x5a')][_0x3672e8('0x95e')]=function(_0x3eb610){var _0xf9abe1=_0x3672e8;this['isEditing']||_0x3eb610[_0xf9abe1('0x1f8c')]!==this[_0xf9abe1('0x35b')][_0xf9abe1('0xaca')][_0xf9abe1('0x1e31')]&&_0x3eb610[_0xf9abe1('0x1f8c')]!==this[_0xf9abe1('0x35b')][_0xf9abe1('0xaca')]['SPACE']?this[_0xf9abe1('0xada')]&&_0x3eb610[_0xf9abe1('0x1f8c')]===this[_0xf9abe1('0x35b')][_0xf9abe1('0xaca')][_0xf9abe1('0x1e31')]&&(_0x3eb610[_0xf9abe1('0x1f1a')](),this[_0xf9abe1('0x2a7a')]()):(_0x3eb610[_0xf9abe1('0x1f1a')](),this[_0xf9abe1('0x129a')]());},_0x14828e[_0x3672e8('0x5a')][_0x3672e8('0x1eba')]=function(){var _0x589310=_0x3672e8;this[_0x589310('0x21ca')]&&!this[_0x589310('0xada')]&&this[_0x589310('0x129a')]();};}(),function(){var _0x11334a=_0x1fb7d4;function _0x4d2307(_0x1def8e,_0x26f32a,_0x34d1e8,_0x4d40f9){var _0x584482=a2_0x4bfe;return{'restrict':'E','require':[_0x584482('0x335c'),_0x584482('0x1cee')],'link':function(_0x53439b,_0x3f16c9,_0x17198a,_0x37dcd2){var _0x3c03f7=_0x584482,_0xfa04b1=_0x37dcd2[_0x3c03f7('0x2967')](),_0x4dccb3=_0x37dcd2[_0x3c03f7('0x2967')](),_0x434c07=_0x4a272c[_0x3c03f7('0x88a')](_0x3f16c9[0x0][_0x3c03f7('0x2cee')](_0x3c03f7('0x46b')));_0x1def8e(_0x3f16c9),_0xfa04b1&&(_0x4dccb3[_0x3c03f7('0x261a')](_0xfa04b1),_0x434c07['on'](_0x3c03f7('0x1137'),function(){var _0x1ea63c=_0x3c03f7;_0xfa04b1[_0x1ea63c('0x3558')](),_0xfa04b1[_0x1ea63c('0x1868')][_0x1ea63c('0x2c78')]();})),_0x4d40f9(function(){var _0x1cde63=_0x3c03f7;_0xfa04b1&&_0xfa04b1[_0x1cde63('0x38ab')]&&_0xfa04b1[_0x1cde63('0xfae')]();});},'controller':_0x584482('0xc73')};}_0x4d2307[_0x11334a('0x28c9')]=[_0x11334a('0x2e8e'),'$mdUtil',_0x11334a('0x2078'),_0x11334a('0x1993')],_0x4a272c[_0x11334a('0x122c')](_0x11334a('0x1902'))[_0x11334a('0x1e30')](_0x11334a('0x1cee'),_0x4d2307);}(),function(){var _0x2f860a=_0x1fb7d4;function _0x2f0b7c(_0x400891){var _0x64304a=a2_0x4bfe;return{'restrict':'A','require':_0x64304a('0x32d7'),'scope':!0x1,'link':function(_0x58b07d,_0x4a34ee,_0x3a9221,_0x54aede){var _0x47aae1=_0x64304a;_0x4a34ee['on'](_0x47aae1('0x160'),function(_0x5c6d8f){_0x58b07d['$apply'](function(){var _0xc70df3=a2_0x4bfe;_0x54aede['removeChip'](_0x58b07d[_0xc70df3('0x27c0')][_0xc70df3('0x242')]);});}),_0x400891(function(){var _0x10ea99=_0x47aae1;_0x4a34ee[_0x10ea99('0x1e52')]({'tabindex':'-1','aria-hidden':_0x10ea99('0x11cf')}),_0x4a34ee[_0x10ea99('0x16fd')](_0x10ea99('0xb54'))['attr'](_0x10ea99('0x1b4e'),'-1');});}};}_0x2f0b7c['$inject']=[_0x2f860a('0x1993')],_0x4a272c[_0x2f860a('0x122c')]('material.components.chips')[_0x2f860a('0x1e30')](_0x2f860a('0xc5d'),_0x2f0b7c);}(),function(){var _0x1e7285=_0x1fb7d4;function _0x259ca2(_0x5c3e58){return{'restrict':'EA','terminal':!0x0,'link':function(_0x57007d,_0x1564d1,_0x395d5c){var _0x497874=a2_0x4bfe,_0x26a397=_0x57007d['$parent'][_0x497874('0x1377')],_0x381942=_0x26a397[_0x497874('0x38bb')][_0x497874('0x3141')](!0x1,_0x26a397[_0x497874('0x38bb')]);_0x381942[_0x497874('0x27c0')]=_0x57007d,_0x381942[_0x497874('0x1d53')]=_0x57007d[_0x497874('0x1d53')],_0x381942[_0x497874('0x242')]=_0x57007d[_0x497874('0x242')],_0x381942[_0x497874('0x1377')]=_0x26a397;var _0x59b28e=_0x26a397[_0x497874('0x1868')][_0x497874('0x1951')](_0x395d5c['mdChipTransclude']);_0x1564d1[_0x497874('0x1fb7')](_0x59b28e),_0x5c3e58(_0x1564d1['contents']())(_0x381942);},'scope':!0x1};}_0x259ca2[_0x1e7285('0x28c9')]=[_0x1e7285('0x2078')],_0x4a272c['module']('material.components.chips')['directive']('mdChipTransclude',_0x259ca2);}(),function(){var _0x1bd192=_0x1fb7d4;_0xb48528[_0x1bd192('0x28c9')]=['$scope','$attrs',_0x1bd192('0x35b'),'$log',_0x1bd192('0x34d6'),'$timeout',_0x1bd192('0x2e27'),_0x1bd192('0x1b01'),_0x1bd192('0xd6d')];function _0xb48528(_0x1caf73,_0x414998,_0x5a280a,_0x51fe1c,_0x2ca7b7,_0x1bb0ff,_0x474f79,_0x536085,_0x5562af){var _0x266ec6=_0x1bd192;this['$timeout']=_0x1bb0ff,this[_0x266ec6('0x35b')]=_0x5a280a,this[_0x266ec6('0x1868')]=_0x1caf73,this[_0x266ec6('0x38bb')]=_0x1caf73[_0x266ec6('0x955')],this[_0x266ec6('0x2e27')]=_0x474f79,this[_0x266ec6('0x38a3')]=_0x51fe1c,this[_0x266ec6('0x1b01')]=_0x536085,this[_0x266ec6('0xd6d')]=_0x5562af,this['$element']=_0x2ca7b7,this[_0x266ec6('0xa7b')]=_0x414998,this[_0x266ec6('0x25af')]=null,this[_0x266ec6('0x3511')]=null,this['autocompleteCtrl']=null,this[_0x266ec6('0x1a13')]=null,this[_0x266ec6('0x25b')]=[],this[_0x266ec6('0x1607')]=-0x1,this['enableChipEdit']=_0x474f79[_0x266ec6('0x3471')](_0x414998[_0x266ec6('0x2e75')]),this['addOnBlur']=_0x474f79[_0x266ec6('0x3471')](_0x414998['mdAddOnBlur']),this['inputAriaLabel']=_0x266ec6('0x17db'),this[_0x266ec6('0x169')]=_0x266ec6('0x3884'),this[_0x266ec6('0x1427')]=_0x266ec6('0x184d'),this[_0x266ec6('0x67f')]=_0x266ec6('0x2552'),this['deleteButtonLabel']=_0x266ec6('0x31e4'),this['chipBuffer']='',this['useTransformChip']=!0x1,this['useOnAdd']=!0x1,this[_0x266ec6('0x3961')]=!0x1,this[_0x266ec6('0x2d99')]='',this[_0x266ec6('0x1608')]=[],this[_0x266ec6('0x381c')]=null,this[_0x266ec6('0x2e43')]=0x12c,this['deRegister']=[],this[_0x266ec6('0x2c3e')]=_0x266ec6('0x81d'),this[_0x266ec6('0x8f9')]='removed',this[_0x266ec6('0x261a')]();}_0x4a272c[_0x1bd192('0x122c')]('material.components.chips')[_0x1bd192('0x19f6')](_0x1bd192('0x1134'),_0xb48528),_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x261a')]=function(){var _0x20c1b2=_0x1bd192,_0x155cba=this;this[_0x20c1b2('0x2d99')]=_0x20c1b2('0x35f')+this[_0x20c1b2('0x2e27')][_0x20c1b2('0x2801')](),this[_0x20c1b2('0x34d6')]['attr'](_0x20c1b2('0x347e'))||this['setupStaticChips'](),this[_0x20c1b2('0x373e')][_0x20c1b2('0x1a90')](this['$scope'][_0x20c1b2('0x34c6')](_0x20c1b2('0x1437'),function(){var _0xec4d2a=_0x20c1b2;_0x155cba[_0xec4d2a('0x1d09')](),_0x155cba[_0xec4d2a('0x1f9a')]();})),this[_0x20c1b2('0x373e')][_0x20c1b2('0x1a90')](this[_0x20c1b2('0xa7b')][_0x20c1b2('0x2838')]('mdChipAppendDelay',function(_0x509753){var _0x1e887a=_0x20c1b2;_0x155cba[_0x1e887a('0x2e43')]=parseInt(_0x509753)||0x12c;}));},_0xb48528[_0x1bd192('0x5a')]['$onDestroy']=function(){var _0x1a361f=_0x1bd192;for(var _0x2fc506;_0x2fc506=this[_0x1a361f('0x373e')][_0x1a361f('0x9b1')]();)_0x2fc506[_0x1a361f('0x2449')](this);},_0xb48528['prototype'][_0x1bd192('0x1d09')]=function(){var _0x3ee3cd=_0x1bd192,_0x102d7e=this['$element'][_0x3ee3cd('0x16fd')]('input');_0x102d7e&&(_0x102d7e['attr']('role',_0x3ee3cd('0x1d16')),_0x102d7e['attr']('aria-multiline',!0x0),this[_0x3ee3cd('0x2bbd')]&&_0x102d7e[_0x3ee3cd('0x1e52')](_0x3ee3cd('0x3706'),this[_0x3ee3cd('0x2bbd')]),this[_0x3ee3cd('0x2639')]?(_0x102d7e[_0x3ee3cd('0x1e52')]('aria-labelledby',this['inputAriaLabelledBy']),_0x102d7e[_0x3ee3cd('0x1bfb')](_0x3ee3cd('0x15da'))):_0x102d7e[_0x3ee3cd('0x1e52')](_0x3ee3cd('0x15da'),this[_0x3ee3cd('0x443')]));},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x1f9a')]=function(){var _0x641123=_0x1bd192,_0x5067c8=this,_0x7acad4=this[_0x641123('0x34d6')][_0x641123('0x16fd')]('md-chips-wrap');this[_0x641123('0x25b')]&&this[_0x641123('0x25b')]['length']?(_0x7acad4[_0x641123('0x1e52')](_0x641123('0x38ba'),_0x641123('0x1f23')),this[_0x641123('0x1608')]=this[_0x641123('0x25b')][_0x641123('0x2d86')](function(){var _0x92eab8=_0x641123;return _0x5067c8[_0x92eab8('0x2d99')]+_0x92eab8('0x1be0')+_0x5067c8['$mdUtil'][_0x92eab8('0x2801')]();}),_0x7acad4[_0x641123('0x1e52')]('aria-owns',this['contentIds'][_0x641123('0x6a8')]('\x20')),_0x7acad4[_0x641123('0x1e52')]('aria-label',this[_0x641123('0x169')])):(_0x7acad4[_0x641123('0x1bfb')](_0x641123('0x38ba')),_0x7acad4['removeAttr'](_0x641123('0x21c6')),_0x7acad4['attr'](_0x641123('0x15da'),this[_0x641123('0x1427')]));},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x194f')]=function(){var _0x3ae9e9=_0x1bd192,_0x11f4ae,_0x226a5f,_0x289fc8=this,_0x288cbf=this[_0x3ae9e9('0x34d6')][_0x3ae9e9('0x16fd')](_0x3ae9e9('0x1cbc'));this[_0x3ae9e9('0x1993')](function(){var _0x5675f5=_0x3ae9e9;for(_0x288cbf[_0x5675f5('0x1e52')](_0x5675f5('0x38ba'),_0x5675f5('0x2c53')),_0x226a5f=_0x288cbf[0x0]['children'],_0x11f4ae=0x0;_0x11f4ae<_0x226a5f[_0x5675f5('0x175a')];_0x11f4ae++)_0x226a5f[_0x11f4ae][_0x5675f5('0xb10')](_0x5675f5('0x38ba'),'listitem'),_0x226a5f[_0x11f4ae][_0x5675f5('0xb10')]('aria-setsize',_0x226a5f[_0x5675f5('0x175a')]);_0x289fc8['inputAriaDescribedBy']&&_0x288cbf[_0x5675f5('0x1e52')]('aria-describedby',_0x289fc8[_0x5675f5('0x2bbd')]),_0x289fc8[_0x5675f5('0x2639')]?(_0x288cbf[_0x5675f5('0x1e52')]('aria-labelledby',_0x289fc8[_0x5675f5('0x2639')]),_0x288cbf[_0x5675f5('0x1bfb')](_0x5675f5('0x15da'))):_0x288cbf[_0x5675f5('0x1e52')](_0x5675f5('0x15da'),_0x289fc8[_0x5675f5('0x443')]);},0xa);},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x18ce')]=function(_0x346f29){var _0x1d5fca=_0x1bd192,_0x1e01eb=this[_0x1d5fca('0x2fd7')]();if(!(this[_0x1d5fca('0x5cc')]&&_0x346f29[_0x1d5fca('0xcda')]&&_0x346f29[_0x1d5fca('0xcda')]())){if(_0x346f29[_0x1d5fca('0x1f8c')]===this[_0x1d5fca('0x35b')][_0x1d5fca('0xaca')]['BACKSPACE']){if(0x0!==this[_0x1d5fca('0x2aa9')](_0x346f29['target']))return;return _0x346f29[_0x1d5fca('0x1f1a')](),_0x346f29[_0x1d5fca('0x16c5')](),void(this[_0x1d5fca('0x25b')]['length']&&this[_0x1d5fca('0x21db')](this[_0x1d5fca('0x25b')]['length']-0x1));}if((!this[_0x1d5fca('0x2de5')]||this[_0x1d5fca('0x2de5')][_0x1d5fca('0x175a')]<0x1)&&(this[_0x1d5fca('0x2de5')]=[this[_0x1d5fca('0x35b')][_0x1d5fca('0xaca')][_0x1d5fca('0x1e31')]]),-0x1!==this['separatorKeys'][_0x1d5fca('0xe1c')](_0x346f29[_0x1d5fca('0x1f8c')])){if(this[_0x1d5fca('0x5cc')]&&this['requireMatch']||!_0x1e01eb)return;if(_0x346f29[_0x1d5fca('0x1f1a')](),this[_0x1d5fca('0x18ba')]())return;return this['appendChip'](_0x1e01eb[_0x1d5fca('0x2ec5')]()),this[_0x1d5fca('0x1502')](),!0x1;}}},_0xb48528['prototype'][_0x1bd192('0x2aa9')]=function(_0x5add14){var _0x42a72d=_0x1bd192;try{if(_0x5add14[_0x42a72d('0xa5f')]===_0x5add14[_0x42a72d('0x647')])return _0x5add14[_0x42a72d('0xa5f')];}catch(_0x16fefc){if(!_0x5add14['value'])return 0x0;}},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x24dc')]=function(_0x27acc2,_0x43f0a4){var _0x2925ba=_0x1bd192;_0x27acc2>=0x0&&_0x27acc20x0&&this[_0x20eb85('0x25b')]['length']>=this[_0x20eb85('0x9db')];},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x397d')]=function(){var _0x5dee9c=_0x1bd192;this[_0x5dee9c('0x25af')][_0x5dee9c('0x1ea7')]('md-max-chips',!this[_0x5dee9c('0x18ba')]()),this[_0x5dee9c('0x25af')][_0x5dee9c('0x34ae')]();},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x3307')]=function(_0x485b00){var _0x3ea8f3=_0x1bd192;_0x485b00||this[_0x3ea8f3('0x397d')](),_0x4a272c['forEach'](this[_0x3ea8f3('0x25af')]['$viewChangeListeners'],function(_0x3fa027){try{_0x3fa027();}catch(_0x3a6a65){this['$exceptionHandler'](_0x3a6a65);}});},_0xb48528['prototype'][_0x1bd192('0x164b')]=function(_0x17d963,_0xe48ffa){var _0x2be947=_0x1bd192,_0x334ef7=this['items'][_0x2be947('0x1f40')](_0x17d963,0x1);this[_0x2be947('0x3307')](),this['ngModelCtrl']['$setDirty']();var _0x3ebc0e=_0x4a272c['isObject'](_0x334ef7[0x0])?'':_0x334ef7[0x0];this['$mdLiveAnnouncer'][_0x2be947('0xa14')](_0x3ebc0e+'\x20'+this['removedMessage'],_0x2be947('0x24de')),_0x334ef7&&_0x334ef7[_0x2be947('0x175a')]&&this[_0x2be947('0x3961')]&&this[_0x2be947('0x246f')]&&this[_0x2be947('0x246f')]({'$chip':_0x334ef7[0x0],'$index':_0x17d963,'$event':_0xe48ffa});},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x2ecc')]=function(_0x2417bf,_0x5ebeb0){var _0x3d0104=_0x1bd192;this[_0x3d0104('0x164b')](_0x2417bf,_0x5ebeb0),this['autocompleteCtrl']?(this[_0x3d0104('0x5cc')][_0x3d0104('0x1bdf')]=!0x0,this[_0x3d0104('0x2e27')][_0x3d0104('0x2baa')](this[_0x3d0104('0x1963')][_0x3d0104('0x1ecd')](this))):this[_0x3d0104('0x1963')]();},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x21db')]=function(_0x2902bd){var _0x5bb3f5=_0x1bd192;if(!this[_0x5bb3f5('0x25b')][_0x5bb3f5('0x175a')]||-0x1===_0x2902bd)return this['focusInput']();if(_0x2902bd>=this[_0x5bb3f5('0x25b')]['length']){if(!this[_0x5bb3f5('0x29f')])return this[_0x5bb3f5('0x1963')]();_0x2902bd=0x0;}_0x2902bd=Math[_0x5bb3f5('0x2780')](_0x2902bd,0x0),_0x2902bd=Math[_0x5bb3f5('0x3230')](_0x2902bd,this['items'][_0x5bb3f5('0x175a')]-0x1),this[_0x5bb3f5('0x3d')](_0x2902bd),this[_0x5bb3f5('0xdda')](_0x2902bd);},_0xb48528['prototype'][_0x1bd192('0xfae')]=function(){var _0xc79317=_0x1bd192,_0x1b1d8f=this;_0x1b1d8f[_0xc79317('0x38ab')]=!0x1,_0x1b1d8f[_0xc79317('0xdda')](this[_0xc79317('0x25b')][_0xc79317('0x175a')]-0x1),_0x1b1d8f['$timeout'](function(){var _0x315285=_0xc79317;_0x1b1d8f[_0x315285('0x3fb')]();},_0x1b1d8f[_0xc79317('0x2e43')]);},_0xb48528[_0x1bd192('0x5a')]['focusInput']=function(){var _0x4dbcf0=_0x1bd192;this[_0x4dbcf0('0x3d')](-0x1),this[_0x4dbcf0('0x1963')]();},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x3d')]=function(_0x1ed534){var _0x543033=_0x1bd192;_0x1ed534>=-0x1&&_0x1ed534<=this[_0x543033('0x25b')][_0x543033('0x175a')]?(this['selectedChip']=_0x1ed534,this[_0x543033('0x22ae')]&&this[_0x543033('0x1aaf')]&&this['onSelect']({'$chip':this[_0x543033('0x25b')][_0x1ed534]})):this[_0x543033('0x38a3')][_0x543033('0x8fa')](_0x543033('0xf00'));},_0xb48528['prototype']['selectAndFocusChip']=function(_0x1ea45e){var _0x276016=_0x1bd192;this[_0x276016('0x3d')](_0x1ea45e),-0x1!==_0x1ea45e&&this[_0x276016('0xdda')](_0x1ea45e);},_0xb48528[_0x1bd192('0x5a')]['focusChip']=function(_0x23aa22){var _0x29d3e7=_0x1bd192,_0x395b73=this['$element'][0x0][_0x29d3e7('0x2cee')]('md-chip[index=\x22'+_0x23aa22+_0x29d3e7('0x13ed'));this['ariaTabIndex']=_0x23aa22,_0x395b73[_0x29d3e7('0x1c34')]();},_0xb48528[_0x1bd192('0x5a')]['configureNgModel']=function(_0x572635){var _0x301738=_0x1bd192;this[_0x301738('0x25af')]=_0x572635;var _0x1904a7=this;_0x572635[_0x301738('0x2d0b')]=function(_0x5f19b2){var _0x2629f3=_0x301738;return!_0x5f19b2||0x0===_0x5f19b2[_0x2629f3('0x175a')];},_0x572635[_0x301738('0x29cc')]=function(){var _0x9e56ae=_0x301738;_0x1904a7[_0x9e56ae('0x25b')]=_0x1904a7['ngModelCtrl']['$viewValue'];};},_0xb48528['prototype'][_0x1bd192('0x1963')]=function(){var _0x272e29=_0x1bd192,_0x97f6b6=this[_0x272e29('0x34d6')][0x0]['querySelector'](_0x272e29('0x10a7'));_0x97f6b6&&_0x97f6b6[_0x272e29('0x1c34')](),this[_0x272e29('0x3558')]();},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x687')]=function(){var _0x24fd97=_0x1bd192;this[_0x24fd97('0x2846')]=!0x0,this[_0x24fd97('0x1d09')](),this['resetSelectedChip']();},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x28e6')]=function(){var _0x388799=_0x1bd192;this['inputHasFocus']=!0x1,this[_0x388799('0x419')]()&&(this['appendChip'](this[_0x388799('0x2fd7')]()[_0x388799('0x2ec5')]()),this[_0x388799('0x1502')]());},_0xb48528['prototype']['configureInput']=function(_0x4b5723){var _0x2b9dbc=_0x1bd192,_0x42fdd4=_0x4b5723[_0x2b9dbc('0x19f6')](_0x2b9dbc('0x625')),_0xc9a79e=this;_0x42fdd4&&(this[_0x2b9dbc('0x373e')][_0x2b9dbc('0x1a90')](this[_0x2b9dbc('0x1868')][_0x2b9dbc('0x1cb1')](function(){var _0x407b0d=_0x2b9dbc;return _0x42fdd4[_0x407b0d('0xb19')];},function(_0x2ce5ec){var _0x323fc6=_0x2b9dbc;_0x2ce5ec&&_0xc9a79e[_0x323fc6('0x25af')][_0x323fc6('0xf87')]();})),this[_0x2b9dbc('0x373e')][_0x2b9dbc('0x1a90')](this[_0x2b9dbc('0x1868')]['$watch'](function(){return _0x42fdd4['$dirty'];},function(_0x4080b7){var _0x3136aa=_0x2b9dbc;_0x4080b7&&_0xc9a79e[_0x3136aa('0x25af')][_0x3136aa('0x1cd1')]();})));},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x2a0c')]=function(_0x19d8d4){var _0x21bce2=_0x1bd192;this[_0x21bce2('0x1a13')]=_0x19d8d4;var _0x1e47a1=_0x19d8d4[_0x21bce2('0x19f6')](_0x21bce2('0x625'));_0x1e47a1!==this[_0x21bce2('0x25af')]&&(this[_0x21bce2('0x3511')]=_0x1e47a1);var _0x5a6b63=this[_0x21bce2('0x1868')],_0x237bce=this,_0x3718fe=function(_0x556da,_0x506f1b){var _0x5b2adf=_0x21bce2;_0x5a6b63[_0x5b2adf('0x123')](_0x4a272c[_0x5b2adf('0x1ecd')](_0x237bce,_0x506f1b,_0x556da));};_0x19d8d4[_0x21bce2('0x1e52')]({'tabindex':0x0})['on'](_0x21bce2('0xf04'),function(_0x592296){var _0xd6c4c3=_0x21bce2;_0x3718fe(_0x592296,_0x237bce[_0xd6c4c3('0x18ce')]);})['on'](_0x21bce2('0x1c34'),function(_0x59cd14){var _0x2aba49=_0x21bce2;_0x3718fe(_0x59cd14,_0x237bce[_0x2aba49('0x687')]);})['on']('blur',function(_0x55242f){var _0x25ebf2=_0x21bce2;_0x3718fe(_0x55242f,_0x237bce[_0x25ebf2('0x28e6')]);});},_0xb48528['prototype'][_0x1bd192('0x2bf1')]=function(_0x57952e){var _0x28e29a=_0x1bd192;_0x57952e&&(this[_0x28e29a('0x5cc')]=_0x57952e,this[_0x28e29a('0x34d6')]['attr'](_0x28e29a('0x1b27'))||(this['containerEmptyHint']=_0x28e29a('0x1da3'),this['setupWrapperAria']()),_0x57952e[_0x28e29a('0x2467')](_0x4a272c[_0x28e29a('0x1ecd')](this,function(_0x5c6dde){var _0x30fab5=_0x28e29a;if(_0x5c6dde){if(this[_0x30fab5('0x18ba')]())return;this[_0x30fab5('0x3925')](_0x5c6dde),this[_0x30fab5('0x1502')]();}})),this[_0x28e29a('0x34d6')]['find'](_0x28e29a('0x10a7'))['on'](_0x28e29a('0x1c34'),_0x4a272c['bind'](this,this[_0x28e29a('0x687')]))['on']('blur',_0x4a272c[_0x28e29a('0x1ecd')](this,this['onInputBlur'])));},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x419')]=function(){var _0x3e6136=_0x1bd192;this[_0x3e6136('0x397d')]();var _0x55bd0f=this[_0x3e6136('0x2fd7')]()['trim'](),_0xccd887=this[_0x3e6136('0x25af')]['$isEmpty'](this[_0x3e6136('0x25af')]['$modelValue'])||this['ngModelCtrl'][_0x3e6136('0xa2e')],_0x2ce1ab=this['autocompleteCtrl']&&!this[_0x3e6136('0x5cc')][_0x3e6136('0x1bdf')];return this[_0x3e6136('0x3511')]&&(_0xccd887=_0xccd887&&this[_0x3e6136('0x3511')][_0x3e6136('0xa2e')]),this[_0x3e6136('0x30aa')]&&!this[_0x3e6136('0x2a6f')]&&_0x55bd0f&&_0xccd887&&!_0x2ce1ab;},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x28ca')]=function(){var _0x182a24=_0x1bd192;return this[_0x182a24('0x2846')]||this[_0x182a24('0x1607')]>=0x0;},_0xb48528[_0x1bd192('0x5a')][_0x1bd192('0x2694')]=function(_0x36d8d1){var _0x5ede4c=_0x1bd192;return this[_0x5ede4c('0x1608')][_0x36d8d1];};}(),function(){var _0x290b16=_0x1fb7d4;_0x5cb6f7[_0x290b16('0x28c9')]=['$mdTheming',_0x290b16('0x2e27'),_0x290b16('0x2078'),_0x290b16('0x38a3'),_0x290b16('0x1993'),_0x290b16('0x2431')],_0x4a272c[_0x290b16('0x122c')]('material.components.chips')[_0x290b16('0x1e30')](_0x290b16('0x116e'),_0x5cb6f7);function _0x5cb6f7(_0x4b05f8,_0x13dcd5,_0x231584,_0x4304bc,_0x200b91,_0x52d365){var _0x967912=_0x290b16,_0x21c13e={'chips':_0x13dcd5[_0x967912('0xc16')](_0x967912('0x2a3a')),'input':_0x13dcd5[_0x967912('0xc16')](_0x967912('0x1618')),'default':_0x13dcd5[_0x967912('0xc16')](_0x967912('0x1ea9')),'remove':_0x13dcd5[_0x967912('0xc16')]('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20')};return{'template':function(_0xc81953,_0x3bc81f){var _0x7c298d=_0x967912;return _0x3bc81f[_0x7c298d('0x349f')]=_0xc81953[_0x7c298d('0x859')](),_0x21c13e[_0x7c298d('0x328b')];},'require':[_0x967912('0x116e')],'restrict':'E','controller':_0x967912('0x1134'),'controllerAs':_0x967912('0x1377'),'bindToController':!0x0,'compile':function(_0x5be630,_0x2c957a){var _0x5192fb=_0x967912,_0x37c645=_0x2c957a[_0x5192fb('0x349f')];_0x2c957a[_0x5192fb('0x349f')]=null;var _0x417c55=_0x1e2c61('md-chips>md-chip-template'),_0x11b3bd=_0x1e2c61(_0x13dcd5[_0x5192fb('0x20f6')]()[_0x5192fb('0x38')](_0x5192fb('0x24cf'))['map'](function(_0x1975b3){var _0x1016b9=_0x5192fb;return _0x1016b9('0x2e70')+_0x1975b3+']';})[_0x5192fb('0x6a8')](','))||_0x21c13e[_0x5192fb('0x2371')],_0x2a8b78=_0x417c55||_0x21c13e[_0x5192fb('0x3326')],_0x566c1c=_0x1e2c61(_0x5192fb('0x997'))||_0x1e2c61('md-chips>input')||_0x21c13e[_0x5192fb('0x10a7')],_0x503c27=_0x37c645[_0x5192fb('0x16fd')](_0x5192fb('0x14a7'));_0x37c645[0x0][_0x5192fb('0x2cee')](_0x5192fb('0x2075'))&&_0x4304bc['warn'](_0x5192fb('0x34e6'));function _0x1e2c61(_0xdd8060){var _0xfb7182=_0x5192fb;if(_0x2c957a[_0xfb7182('0x625')]){var _0x5617fa=_0x37c645[0x0][_0xfb7182('0x2cee')](_0xdd8060);return _0x5617fa&&_0x5617fa[_0xfb7182('0x1a70')];}}return function(_0x1bbb18,_0x499be7,_0x5baeca,_0x52145c){var _0x361bf4=_0x5192fb;_0x13dcd5[_0x361bf4('0x14f9')](_0x1bbb18,_0x2c957a),_0x4b05f8(_0x499be7);var _0x3ac600=_0x52145c[0x0];if(_0x417c55&&(_0x3ac600[_0x361bf4('0x21ca')]=!0x1),_0x3ac600[_0x361bf4('0x2ce8')]=_0x2a8b78,_0x3ac600[_0x361bf4('0x2bee')]=_0x11b3bd,_0x3ac600[_0x361bf4('0x2d09')]=_0x566c1c,_0x3ac600[_0x361bf4('0x22d7')]=_0x52d365[_0x361bf4('0xe2a')],_0x499be7[_0x361bf4('0x1e52')]({'tabindex':-0x1})['on'](_0x361bf4('0x1c34'),function(){_0x3ac600['onFocus']();})['on'](_0x361bf4('0x160'),function(){var _0x5d5ac0=_0x361bf4;_0x3ac600[_0x5d5ac0('0x29f')]||-0x1!==_0x3ac600[_0x5d5ac0('0x1607')]||_0x3ac600['onFocus']();}),_0x2c957a['ngModel']&&(_0x3ac600[_0x361bf4('0x2edb')](_0x499be7['controller'](_0x361bf4('0x625'))),_0x5baeca[_0x361bf4('0x1613')]&&_0x3ac600[_0x361bf4('0x139')](),_0x5baeca[_0x361bf4('0x1739')]&&_0x3ac600[_0x361bf4('0x88f')](),_0x5baeca[_0x361bf4('0x26a6')]&&_0x3ac600[_0x361bf4('0x10e')](),_0x5baeca[_0x361bf4('0x110f')]&&_0x3ac600[_0x361bf4('0x1d7')](),_0x5baeca[_0x361bf4('0x904')]&&_0x3ac600[_0x361bf4('0x990')](),_0x566c1c!==_0x21c13e[_0x361bf4('0x10a7')]&&_0x1bbb18[_0x361bf4('0x1cb1')](_0x361bf4('0x18dc'),function(_0x3c1a05){var _0x2bcdaa=_0x361bf4;_0x3c1a05||_0x13dcd5[_0x2bcdaa('0x2baa')](function(){var _0x245af7=_0x2bcdaa;if(0x0===_0x566c1c[_0x245af7('0xe1c')](_0x245af7('0x1525'))){var _0x22a044=_0x499be7[_0x245af7('0x16fd')](_0x245af7('0x550'));_0x3ac600[_0x245af7('0x2bf1')](_0x22a044['controller'](_0x245af7('0x1689')));}_0x3ac600[_0x245af7('0x2a0c')](_0x499be7[_0x245af7('0x16fd')](_0x245af7('0x10a7')));});}),_0x13dcd5[_0x361bf4('0x2baa')](function(){var _0x3f1fa1=_0x361bf4,_0x319d85=_0x499be7[_0x3f1fa1('0x16fd')](_0x3f1fa1('0x10a7'));_0x319d85&&(_0x3ac600[_0x3f1fa1('0x334f')](_0x319d85),_0x319d85[_0x3f1fa1('0x2af2')]('md-input',!0x0));})),_0x503c27[_0x361bf4('0x175a')]>0x0){var _0x42104c=_0x231584(_0x503c27[_0x361bf4('0x859')]())(_0x1bbb18[_0x361bf4('0x955')]);_0x200b91(function(){var _0x422f23=_0x361bf4;_0x499be7[_0x422f23('0x16fd')](_0x422f23('0x1cbc'))[_0x422f23('0x1476')](_0x42104c);});}};},'scope':{'readonly':_0x967912('0xb94'),'removable':_0x967912('0x1172'),'placeholder':'@?','secondaryPlaceholder':'@?','maxChips':_0x967912('0x3019'),'transformChip':'&mdTransformChip','onAppend':_0x967912('0x12cf'),'onAdd':_0x967912('0x2d54'),'onRemove':_0x967912('0xac6'),'addedMessage':'@?mdAddedMessage','removedMessage':_0x967912('0x353c'),'onSelect':_0x967912('0xbbc'),'inputAriaDescribedBy':'@?inputAriaDescribedby','inputAriaLabelledBy':_0x967912('0x1848'),'inputAriaLabel':'@?','containerHint':'@?','containerEmptyHint':'@?','deleteHint':'@?','deleteButtonLabel':'@?','separatorKeys':_0x967912('0x3027'),'requireMatch':_0x967912('0x3544'),'chipAppendDelayString':_0x967912('0x2ab6'),'ngChange':'&?'}};}}(),function(){var _0x2034b2=_0x1fb7d4;function _0x341b3b(_0x51eb20,_0x4c8113,_0x4cb395){var _0x2722da=a2_0x4bfe;this[_0x2722da('0x34d6')]=_0x4c8113,this['$attrs']=_0x51eb20,this[_0x2722da('0x1993')]=_0x4cb395,this['selectedItem']=null,this[_0x2722da('0x25b7')]='',this['deRegister']=[],this[_0x2722da('0x261a')]();}_0x341b3b[_0x2034b2('0x28c9')]=[_0x2034b2('0xa7b'),_0x2034b2('0x34d6'),_0x2034b2('0x1993')],_0x4a272c['module'](_0x2034b2('0x1902'))[_0x2034b2('0x19f6')](_0x2034b2('0x391'),_0x341b3b),_0x341b3b[_0x2034b2('0x5a')][_0x2034b2('0x261a')]=function(){var _0xf37a6c=_0x2034b2,_0x272da2=this,_0x15c359=this['deRegister'],_0x370bd8=this['$element'];this[_0xf37a6c('0x1993')](function(){var _0x281e6f=_0xf37a6c;_0x15c359[_0x281e6f('0x1a90')](_0x370bd8[_0x281e6f('0x16fd')]('md-chips')['controller'](_0x281e6f('0x116e'))[_0x281e6f('0x1868')][_0x281e6f('0x34c6')](_0x281e6f('0x1437'),function(){var _0x2e634b=_0x281e6f;_0x272da2['setupChipsAria'](),_0x272da2[_0x2e634b('0x2d9b')]();}));});},_0x341b3b[_0x2034b2('0x5a')][_0x2034b2('0x55f')]=function(){var _0x2bff57=_0x2034b2,_0x588698=this[_0x2bff57('0x34d6')]['find'](_0x2bff57('0x1554')),_0x53081d=_0x588698[_0x2bff57('0x19f6')]('mdChips');this['removedMessage']&&(_0x53081d[_0x2bff57('0x8f9')]=this[_0x2bff57('0x8f9')]),this[_0x2bff57('0x169')]&&(_0x53081d['containerHint']=this[_0x2bff57('0x169')]),this[_0x2bff57('0x1427')]&&(_0x588698['attr'](_0x2bff57('0x1b27'),this[_0x2bff57('0x1427')]),_0x53081d['containerEmptyHint']=this[_0x2bff57('0x1427')]),this[_0x2bff57('0x67f')]&&(_0x53081d['deleteHint']=this[_0x2bff57('0x67f')]),this[_0x2bff57('0x443')]&&(_0x53081d['inputAriaLabel']=this[_0x2bff57('0x443')]);},_0x341b3b['prototype'][_0x2034b2('0x2d9b')]=function(){var _0x2602d3=_0x2034b2,_0x111011=this[_0x2602d3('0x34d6')][_0x2602d3('0x16fd')]('md-chips-wrap')[_0x2602d3('0x16fd')](_0x2602d3('0x550'))[_0x2602d3('0x16fd')](_0x2602d3('0x10a7'));this[_0x2602d3('0x2bbd')]&&_0x111011[_0x2602d3('0x1e52')](_0x2602d3('0x3706'),this['inputAriaDescribedBy']),this[_0x2602d3('0x2639')]&&(_0x111011[_0x2602d3('0x1bfb')]('aria-label'),_0x111011[_0x2602d3('0x1e52')](_0x2602d3('0xcbe'),this[_0x2602d3('0x2639')]));},_0x341b3b['prototype']['queryContact']=function(_0x520701){var _0x574f70=_0x2034b2;return this[_0x574f70('0x2107')]({'$query':_0x520701});},_0x341b3b[_0x2034b2('0x5a')][_0x2034b2('0x18ce')]=function(_0x2f4354){var _0x1ffdf9=_0x2034b2;if(this['separatorKeys']&&!(this['separatorKeys']['indexOf'](_0x2f4354[_0x1ffdf9('0x1f8c')])<0x0)){_0x2f4354[_0x1ffdf9('0x16c5')](),_0x2f4354[_0x1ffdf9('0x1f1a')]();var _0x2aa752=_0x4a272c[_0x1ffdf9('0x88a')](_0x2f4354[_0x1ffdf9('0x312f')])[_0x1ffdf9('0x19f6')](_0x1ffdf9('0x1689'));_0x2aa752[_0x1ffdf9('0x32b0')](_0x2aa752[_0x1ffdf9('0x1b25')]);}},_0x341b3b[_0x2034b2('0x5a')][_0x2034b2('0x2ccf')]=function(_0x1c97f8){return _0x1c97f8[this['contactName']];},_0x341b3b[_0x2034b2('0x5a')]['$onDestroy']=function(){var _0x574640=_0x2034b2;for(var _0x555710;_0x555710=this[_0x574640('0x373e')]['pop']();)_0x555710[_0x574640('0x2449')](this);};}(),function(){var _0x554d2b=_0x1fb7d4;_0x132c61['$inject']=[_0x554d2b('0x2e8e'),_0x554d2b('0x2e27')],_0x4a272c[_0x554d2b('0x122c')](_0x554d2b('0x1902'))[_0x554d2b('0x1e30')](_0x554d2b('0x409'),_0x132c61);function _0x132c61(_0x332e24,_0xa3b3d3){var _0x5343be=_0x554d2b;return{'template':function(_0xf13119,_0x393a03){return'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{item[$mdContactChipsCtrl.contactName]}}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{item[$mdContactChipsCtrl.contactEmail]}}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{$chip[$mdContactChipsCtrl.contactName]}}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';},'restrict':'E','controller':_0x5343be('0x391'),'controllerAs':'$mdContactChipsCtrl','bindToController':!0x0,'compile':function(_0x59b25d,_0x1d292d){return function(_0x290916,_0x2e9c4e,_0x511e50,_0x18d3fd){var _0x3c6cf0=a2_0x4bfe,_0x3882d7=_0x18d3fd;_0xa3b3d3[_0x3c6cf0('0x14f9')](_0x290916,_0x1d292d),_0x332e24(_0x2e9c4e),_0x2e9c4e[_0x3c6cf0('0x1e52')]('tabindex','-1'),_0x511e50[_0x3c6cf0('0x2838')]('mdChipAppendDelay',function(_0x472522){var _0x37b3a9=_0x3c6cf0;_0x3882d7[_0x37b3a9('0x2e43')]=_0x472522;});};},'scope':{'contactQuery':_0x5343be('0x4b5'),'placeholder':'@?','secondaryPlaceholder':'@?','contactName':'@mdContactName','contactImage':_0x5343be('0x1171'),'contactEmail':_0x5343be('0x378d'),'contacts':'=ngModel','ngChange':'&?','requireMatch':_0x5343be('0x3544'),'minLength':'=?mdMinLength','highlightFlags':'@?mdHighlightFlags','chipAppendDelay':_0x5343be('0x2ab6'),'separatorKeys':_0x5343be('0x3027'),'removedMessage':_0x5343be('0x353c'),'inputAriaDescribedBy':'@?inputAriaDescribedby','inputAriaLabelledBy':_0x5343be('0x1848'),'inputAriaLabel':'@?','containerHint':'@?','containerEmptyHint':'@?','deleteHint':'@?'}};}}(),function(){var _0x59f74f=_0x1fb7d4;_0x2b4cd1[_0x59f74f('0x28c9')]=[_0x59f74f('0x557'),_0x59f74f('0x2e27'),_0x59f74f('0x38a3'),_0x59f74f('0x1636')],_0x4b09c8[_0x59f74f('0x28c9')]=[_0x59f74f('0x2e8e'),_0x59f74f('0x2e27'),_0x59f74f('0x38a3')];var _0x19ca7e=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,_0xc3c2ac=null;function _0x4b09c8(_0x33eb51,_0x27d3db,_0x38acc2){var _0x201075=_0x59f74f;return _0xc3c2ac=_0xc3c2ac||Object[_0x201075('0x1a3f')](_0x33eb51[_0x201075('0x3220')]),{'applyThemeColors':function(_0x19e7e4,_0x43a2cf){var _0x3ab5f6=_0x201075;try{_0x43a2cf&&_0x19e7e4['css']((_0x4aa55c={},_0x27ee4e=(_0x328558=_0x43a2cf)[_0x3ab5f6('0x1522')](_0x3ab5f6('0x2dcb')),_0x4a272c[_0x3ab5f6('0x247d')](_0x328558,function(_0x53f772,_0x38c3d7){var _0x4d9cb3=_0x3ab5f6,_0x2f72b8=_0x2552ae(_0x53f772),_0x50a9d7=_0x38c3d7[_0x4d9cb3('0xe1c')](_0x4d9cb3('0x6a5'))>-0x1;_0x4aa55c[_0x38c3d7]=_0x12a17c(_0x2f72b8),_0x50a9d7&&!_0x27ee4e&&(_0x4aa55c[_0x4d9cb3('0x2dcb')]=_0x12a17c(_0x2f72b8,!0x0));}),_0x4aa55c));}catch(_0x58ead1){_0x38acc2['error'](_0x58ead1[_0x3ab5f6('0x3273')]);}var _0x328558,_0x4aa55c,_0x27ee4e;},'getThemeColor':function(_0x4bde34){return _0x12a17c(_0x2552ae(_0x4bde34));},'hasTheme':function(_0x4ea900){var _0x35daaa=_0x201075;return _0x4a272c[_0x35daaa('0x392d')](_0x33eb51[_0x35daaa('0x36aa')][_0x4ea900[_0x35daaa('0x23ee')]('-')[0x0]]);}};function _0x12a17c(_0x167312,_0x17340b){var _0x5d9da9=_0x201075;_0x17340b=_0x17340b||!0x1;var _0x2bcadb=_0x33eb51['PALETTES'][_0x167312[_0x5d9da9('0x2f51')]][_0x167312[_0x5d9da9('0x1dc1')]];return _0x2bcadb=_0x17340b?_0x2bcadb[_0x5d9da9('0x4b0')]:_0x2bcadb['value'],_0x27d3db[_0x5d9da9('0x1f28')]('rgba({0},\x20{1},\x20{2},\x20{3})',[_0x2bcadb[0x0],_0x2bcadb[0x1],_0x2bcadb[0x2],_0x2bcadb[0x3]||_0x167312[_0x5d9da9('0x1c8')]]);}function _0x2552ae(_0x462844){var _0x69e7a0=_0x201075,_0x10ee1a=_0x462844[_0x69e7a0('0x23ee')]('-'),_0x296d94=_0x4a272c[_0x69e7a0('0x392d')](_0x33eb51['THEMES'][_0x10ee1a[0x0]])?_0x10ee1a[_0x69e7a0('0x1f40')](0x0,0x1)[0x0]:_0x33eb51['defaultTheme']();return{'theme':_0x296d94,'palette':_0x79c9a5(_0x10ee1a,_0x296d94),'hue':_0x3dcef5(_0x10ee1a,_0x296d94),'opacity':_0x10ee1a[0x2]||0x1};}function _0x79c9a5(_0x12ab5d,_0x33dbf4){var _0xe9d81c=_0x201075,_0x11f329=_0x12ab5d[_0xe9d81c('0x175a')]>0x1&&-0x1!==_0xc3c2ac[_0xe9d81c('0xe1c')](_0x12ab5d[0x1]),_0x2ff956=_0x12ab5d[0x0]['replace'](/([a-z])([A-Z])/g,_0xe9d81c('0x7a7'))['toLowerCase']();if(_0x11f329&&(_0x2ff956=_0x12ab5d[0x0]+'-'+_0x12ab5d[_0xe9d81c('0x1f40')](0x1,0x1)),-0x1===_0xc3c2ac[_0xe9d81c('0xe1c')](_0x2ff956)){var _0x3af896=_0x33eb51[_0xe9d81c('0x36aa')][_0x33dbf4][_0xe9d81c('0x1254')][_0x2ff956];if(!_0x3af896)throw new Error(_0x27d3db['supplant']('mdColors:\x20couldn\x27t\x20find\x20\x27{palette}\x27\x20in\x20the\x20palettes.',{'palette':_0x2ff956}));_0x2ff956=_0x3af896[_0xe9d81c('0x455')];}return _0x2ff956;}function _0x3dcef5(_0x465056,_0x4d5764){var _0x4dde7e=_0x201075,_0x4ba9e9=_0x33eb51[_0x4dde7e('0x36aa')][_0x4d5764][_0x4dde7e('0x1254')];if(_0x4dde7e('0x1dc1')===_0x465056[0x1]){var _0x590685=parseInt(_0x465056['splice'](0x2,0x1)[0x0],0xa);if(_0x590685<0x1||_0x590685>0x3)throw new Error(_0x27d3db[_0x4dde7e('0x1f28')]('mdColors:\x20\x27hue-{hueNumber}\x27\x20is\x20not\x20a\x20valid\x20hue,\x20can\x20be\x20only\x20\x27hue-1\x27,\x20\x27hue-2\x27\x20and\x20\x27hue-3\x27',{'hueNumber':_0x590685}));if(_0x465056[0x1]=_0x4dde7e('0x131d')+_0x590685,!(_0x465056[0x0]in _0x4ba9e9))throw new Error(_0x27d3db[_0x4dde7e('0x1f28')]('mdColors:\x20\x27hue-x\x27\x20can\x20only\x20be\x20used\x20with\x20[{availableThemes}],\x20but\x20was\x20used\x20with\x20\x27{usedTheme}\x27',{'availableThemes':Object[_0x4dde7e('0x1a3f')](_0x4ba9e9)['join'](',\x20'),'usedTheme':_0x465056[0x0]}));return _0x4ba9e9[_0x465056[0x0]]['hues'][_0x465056[0x1]];}return _0x465056[0x1]||_0x4ba9e9[_0x465056[0x0]in _0x4ba9e9?_0x465056[0x0]:_0x4dde7e('0x5e4')][_0x4dde7e('0x32db')][_0x4dde7e('0x3326')];}}function _0x2b4cd1(_0x31164a,_0x380e9d,_0x5d514a,_0x52b7f9){var _0x58c9df=_0x59f74f;return{'restrict':'A','require':[_0x58c9df('0x2e48')],'compile':function(_0x540db9,_0x384e2f){var _0x3944b9=function(){var _0xf23c12=a2_0x4bfe,_0x58c963=_0x384e2f[_0xf23c12('0x16a9')],_0xf7dbb4=_0x58c963[_0xf23c12('0xe1c')]('::')>-0x1,_0x4aba50=!!_0xf7dbb4||_0x19ca7e[_0xf23c12('0x19cd')](_0x384e2f[_0xf23c12('0x16a9')]);_0x384e2f[_0xf23c12('0x16a9')]=_0x58c963[_0xf23c12('0x34c8')]('::','');var _0x2363bf=_0x4a272c[_0xf23c12('0x392d')](_0x384e2f[_0xf23c12('0x156a')]);return!_0xf7dbb4&&!_0x4aba50&&(!_0x2363bf||_0x380e9d[_0xf23c12('0x3471')](_0x384e2f[_0xf23c12('0x156a')]));}();return function(_0x33021b,_0x5dbbdd,_0x514ac7,_0x4c67d5){var _0x461c06=a2_0x4bfe,_0x5070cf=_0x4c67d5[0x0],_0x2b0b37={},_0x2b918a=function(_0x58edb5){var _0x38628c=a2_0x4bfe;_0x38628c('0x151d')!=typeof _0x58edb5&&(_0x58edb5=''),_0x514ac7[_0x38628c('0x16a9')]||(_0x514ac7['mdColors']='{}');var _0x31b6a0=_0x52b7f9(_0x514ac7[_0x38628c('0x16a9')])(_0x33021b);return _0x5070cf&&Object['keys'](_0x31b6a0)[_0x38628c('0x247d')](function(_0x139093){var _0x26bb57=_0x38628c,_0x3a91f2=_0x31b6a0[_0x139093];_0x31164a[_0x26bb57('0x1598')](_0x3a91f2)||(_0x31b6a0[_0x139093]=(_0x58edb5||_0x5070cf['$mdTheme'])+'-'+_0x3a91f2);}),_0x279de2(_0x31b6a0),_0x31b6a0;},_0x279de2=function(_0x293e52){var _0x1300cf=a2_0x4bfe;if(!_0x4a272c[_0x1300cf('0xa9b')](_0x293e52,_0x2b0b37)){var _0x577541=Object[_0x1300cf('0x1a3f')](_0x2b0b37);_0x2b0b37[_0x1300cf('0x6a5')]&&!_0x577541[_0x1300cf('0x2dcb')]&&_0x577541[_0x1300cf('0x1a90')](_0x1300cf('0x2dcb')),_0x577541[_0x1300cf('0x247d')](function(_0x1eb574){var _0x2db0af=_0x1300cf;_0x5dbbdd[_0x2db0af('0x30a3')](_0x1eb574,'');});}_0x2b0b37=_0x293e52;},_0x3cf00c=_0x4a272c[_0x461c06('0x2374')];_0x5070cf&&(_0x3cf00c=_0x5070cf[_0x461c06('0x121')](function(_0x2cd916){var _0xa70ba0=_0x461c06;_0x31164a[_0xa70ba0('0x2a49')](_0x5dbbdd,_0x2b918a(_0x2cd916));})),_0x33021b[_0x461c06('0x1db8')](_0x461c06('0x2f34'),function(){_0x3cf00c();});try{_0x3944b9?_0x33021b[_0x461c06('0x1cb1')](_0x2b918a,_0x4a272c[_0x461c06('0x1ecd')](this,_0x31164a['applyThemeColors'],_0x5dbbdd),!0x0):_0x31164a[_0x461c06('0x2a49')](_0x5dbbdd,_0x2b918a());}catch(_0x3d061d){_0x5d514a['error'](_0x3d061d[_0x461c06('0x3273')]);}};}};}_0x4a272c[_0x59f74f('0x122c')](_0x59f74f('0x34b3'),[_0x59f74f('0x113c')])[_0x59f74f('0x1e30')](_0x59f74f('0x16a9'),_0x2b4cd1)[_0x59f74f('0x3897')](_0x59f74f('0x557'),_0x4b09c8);}(),function(){var _0x1e035c=_0x1fb7d4;function _0x42f104(_0x324e98){var _0x3f0873=a2_0x4bfe;return{'restrict':'E','controller':['$scope',_0x3f0873('0x34d6'),function(_0x380ec3,_0x416169){var _0x54c0f4=_0x3f0873;this[_0x54c0f4('0x1868')]=_0x380ec3,this['$element']=_0x416169;}],'link':function(_0x1a38d0,_0x2ca229){var _0x4cd036=_0x3f0873,_0x337dde;_0x2ca229['addClass'](_0x4cd036('0x1454')),_0x324e98(_0x2ca229),_0x1a38d0[_0x4cd036('0x1c18')]('$mdContentLoaded',_0x2ca229),_0x337dde=_0x2ca229[0x0],_0x4a272c[_0x4cd036('0x88a')](_0x337dde)['on'](_0x4cd036('0x2443'),function(_0x573949){var _0x5ea5b1=_0x4cd036;'t'===_0x573949[_0x5ea5b1('0xc25')][_0x5ea5b1('0x21a5')]&&(_0x573949[_0x5ea5b1('0x15c')]||(_0x573949[_0x5ea5b1('0x15c')]=!0x0,0x0===_0x337dde[_0x5ea5b1('0x1fd3')]?_0x337dde['scrollTop']=0x1:_0x337dde['scrollHeight']===_0x337dde[_0x5ea5b1('0x1fd3')]+_0x337dde[_0x5ea5b1('0x1147')]&&(_0x337dde[_0x5ea5b1('0x1fd3')]-=0x1)));});}};}_0x42f104[_0x1e035c('0x28c9')]=['$mdTheming'],_0x4a272c[_0x1e035c('0x122c')](_0x1e035c('0x16c7'),[_0x1e035c('0x113c')])[_0x1e035c('0x1e30')]('mdContent',_0x42f104);}(),_0x4a272c['module'](_0x1fb7d4('0x1da2'),['material.core',_0x1fb7d4('0x2dc4'),_0x1fb7d4('0x239e')]),function(){var _0x151c83=_0x1fb7d4;function _0x13beb8(_0x542ee4){var _0x59a705=a2_0x4bfe;return{'template':function(_0x7369f0,_0x46feac){var _0x7aa74e=a2_0x4bfe;return _0x7aa74e('0x2483')+(_0x46feac[_0x7aa74e('0x1522')](_0x7aa74e('0x362c'))?'':_0x7aa74e('0x287'))+_0x7aa74e('0x38f4');},'scope':{'minDate':_0x59a705('0x1bb7'),'maxDate':_0x59a705('0x1d03'),'dateFilter':_0x59a705('0x18fe'),'monthFilter':_0x59a705('0x33a1'),'_mode':_0x59a705('0x2c31'),'_currentView':'@mdCurrentView'},'require':[_0x59a705('0x625'),_0x59a705('0x2074')],'controller':_0x1b506c,'controllerAs':_0x59a705('0x3498'),'bindToController':!0x0,'link':function(_0x22cf27,_0x1e2c6e,_0x1897da,_0x223de1){var _0x4096af=_0x59a705,_0x4f62b7=_0x223de1[0x0];_0x223de1[0x1][_0x4096af('0x2edb')](_0x4f62b7,_0x542ee4);}};}_0x1b506c['$inject']=[_0x151c83('0x34d6'),'$scope',_0x151c83('0xebc'),_0x151c83('0x2e27'),_0x151c83('0x35b'),_0x151c83('0x2e8e'),_0x151c83('0x3490'),_0x151c83('0xa7b'),_0x151c83('0x2892'),_0x151c83('0x19f9')],_0x13beb8[_0x151c83('0x28c9')]=[_0x151c83('0x377b')],_0x4a272c[_0x151c83('0x122c')](_0x151c83('0x1da2'))[_0x151c83('0x1e30')](_0x151c83('0x2074'),_0x13beb8);var _0x2f3ea3=0x0,_0x1b3efb={'day':_0x151c83('0x1333'),'month':_0x151c83('0x144e')};function _0x1b506c(_0x3f5bc8,_0x25deda,_0x334654,_0x1d8350,_0x51774d,_0xab3a29,_0x361834,_0x3619a4,_0x8ff8e,_0xb85bbb){var _0x1a88bd=_0x151c83;_0xab3a29(_0x3f5bc8),this[_0x1a88bd('0x34d6')]=_0x3f5bc8,this[_0x1a88bd('0x1868')]=_0x25deda,this[_0x1a88bd('0xa7b')]=_0x3619a4,this[_0x1a88bd('0x2781')]=_0x334654,this[_0x1a88bd('0x2e27')]=_0x1d8350,this[_0x1a88bd('0x1f8c')]=_0x51774d[_0x1a88bd('0xaca')],this['$$rAF']=_0x361834,this[_0x1a88bd('0x2892')]=_0x8ff8e,this[_0x1a88bd('0x219c')]=_0xb85bbb(_0x1a88bd('0x1408')),this[_0x1a88bd('0x3521')]=this[_0x1a88bd('0x2781')]['createDateAtMidnight'](),this[_0x1a88bd('0x25af')]=_0x6373f5,this[_0x1a88bd('0x177f')]='md-calendar-selected-date',this[_0x1a88bd('0x1a8f')]=_0x1a88bd('0x321c'),this[_0x1a88bd('0x2e4')]='md-focus',this['id']=_0x2f3ea3++,this['displayDate']=null,this[_0x1a88bd('0x2307')]=null,this['selectedDate']=null,this[_0x1a88bd('0x110b')]=null,this[_0x1a88bd('0x26a5')]=null,this[_0x1a88bd('0x28f9')]=!0x1,this[_0x1a88bd('0x2bac')]=0x0,this[_0x1a88bd('0x303e')]=0x0,_0x3619a4[_0x1a88bd('0x1b4e')]||_0x3f5bc8[_0x1a88bd('0x1e52')](_0x1a88bd('0x1b4e'),'-1');var _0xe1b1e,_0xe427d7=_0x4a272c[_0x1a88bd('0x1ecd')](this,this[_0x1a88bd('0x1924')]);(_0xe1b1e=_0x3f5bc8['parent']()[_0x1a88bd('0x522')]('md-datepicker-calendar')?_0x4a272c[_0x1a88bd('0x88a')](document[_0x1a88bd('0x3742')]):_0x3f5bc8)['on'](_0x1a88bd('0xf04'),_0xe427d7),_0x25deda['$on'](_0x1a88bd('0x2f34'),function(){var _0x2a6876=_0x1a88bd;_0xe1b1e[_0x2a6876('0x1202')](_0x2a6876('0xf04'),_0xe427d7);}),0x1===_0x4a272c[_0x1a88bd('0x2ee1')]['major']&&_0x4a272c[_0x1a88bd('0x2ee1')][_0x1a88bd('0x36c5')]<=0x4&&this[_0x1a88bd('0x3825')]();}_0x1b506c['prototype'][_0x151c83('0x3825')]=function(){var _0x582ccc=_0x151c83;this[_0x582ccc('0xf64')]&&_0x1b3efb[_0x582ccc('0x1522')](this[_0x582ccc('0xf64')])?(this[_0x582ccc('0x1df7')]=_0x1b3efb[this['_mode']],this[_0x582ccc('0x2307')]=this['_mode']):(this[_0x582ccc('0x1df7')]=this[_0x582ccc('0x5b1')]||_0x582ccc('0x1333'),this[_0x582ccc('0x2307')]=null),this[_0x582ccc('0x219b')]&&this[_0x582ccc('0x219b')]>this[_0x582ccc('0x2892')][_0x582ccc('0x110b')]?this[_0x582ccc('0x110b')]=this['minDate']:this['firstRenderableDate']=this['$mdDateLocale'][_0x582ccc('0x110b')],this[_0x582ccc('0x104b')]&&this['maxDate']0x0?_0x36aabb():_0x3fd5df[_0x2b29e9('0x3490')](function(){var _0x4161be=_0x2b29e9,_0x4684c6=_0x15aca8[_0x4161be('0x17ba')];_0x3fd5df[_0x4161be('0x303e')]=_0x4684c6[_0x4161be('0x1fe5')]-_0x4684c6[_0x4161be('0x1473')],_0x3fd5df['width']=_0x3902a9[_0x4161be('0x2cee')](_0x4161be('0x1339'))['offsetWidth'],_0x36aabb();});},_0x1b506c[_0x151c83('0x5a')][_0x151c83('0x1582')]=function(_0x430cc9,_0x51034a){var _0x3c3c20=_0x151c83;if(!_0x51034a)throw new Error('A\x20namespace\x20for\x20the\x20date\x20id\x20has\x20to\x20be\x20specified.');return['md',this['id'],_0x51034a,_0x430cc9[_0x3c3c20('0x1ea3')](),_0x430cc9[_0x3c3c20('0x48b')](),_0x430cc9[_0x3c3c20('0x521')]()][_0x3c3c20('0x6a8')]('-');},_0x1b506c['prototype'][_0x151c83('0x1617')]=function(){var _0x46265f=_0x151c83,_0x2ac733=this[_0x46265f('0x1868')],_0xd360ae=_0x2ac733[_0x46265f('0x1db8')](_0x46265f('0xca5'),function(){var _0x31087f=_0x46265f;_0x2ac733[_0x31087f('0x24e0')]||_0x2ac733[_0x31087f('0x1280')](),_0xd360ae();});};}(),function(){var _0x11f669=_0x1fb7d4;_0x389eec[_0x11f669('0x28c9')]=[_0x11f669('0x34d6'),_0x11f669('0x1868'),_0x11f669('0x2a64'),'$q',_0x11f669('0xebc'),_0x11f669('0x2892')],_0x4a272c[_0x11f669('0x122c')]('material.components.datepicker')['directive']('mdCalendarMonth',function(){var _0xc8d59a=_0x11f669;return{'template':_0xc8d59a('0x3390'),'require':[_0xc8d59a('0x2ad8'),'mdCalendarMonth'],'controller':_0x389eec,'controllerAs':_0xc8d59a('0x33f7'),'bindToController':!0x0,'link':function(_0x16d57c,_0x99d633,_0x223d76,_0x24ae39){var _0x360095=_0xc8d59a,_0xadb68=_0x24ae39[0x0];_0x24ae39[0x1][_0x360095('0xdb8')](_0xadb68);}};});var _0x2487a1=0x109;function _0x389eec(_0x23d792,_0x5f030d,_0x5bbb87,_0x43091a,_0x29baa7,_0x2e4547){var _0x3ce43a=_0x11f669;this[_0x3ce43a('0x34d6')]=_0x23d792,this['$scope']=_0x5f030d,this['$animate']=_0x5bbb87,this['$q']=_0x43091a,this[_0x3ce43a('0x2781')]=_0x29baa7,this[_0x3ce43a('0x11be')]=_0x2e4547,this['calendarScroller']=_0x23d792[0x0][_0x3ce43a('0x2cee')](_0x3ce43a('0x2ef6')),this[_0x3ce43a('0x28f9')]=!0x1,this[_0x3ce43a('0x2fa6')]=!0x1;var _0x29f2e9=this;this[_0x3ce43a('0x1e55')]=function(){var _0x4c3e11=_0x3ce43a,_0x5bab64=_0x29baa7[_0x4c3e11('0xd94')](this);_0x29f2e9['$scope'][_0x4c3e11('0x1280')](function(){var _0x1be994=_0x4c3e11;_0x29f2e9[_0x1be994('0x3498')][_0x1be994('0x20c8')](new Date(_0x5bab64));});},this['headerClickHandler']=function(){var _0x51f74f=_0x3ce43a;_0x29f2e9['calendarCtrl']['setCurrentView'](_0x51f74f('0x144e'),_0x29baa7[_0x51f74f('0xd94')](this));};}_0x389eec[_0x11f669('0x5a')][_0x11f669('0xdb8')]=function(_0x5decea){var _0x50bbad=_0x11f669;this['items']={'length':this[_0x50bbad('0x2781')][_0x50bbad('0x2a4')](_0x5decea['firstRenderableDate'],_0x5decea[_0x50bbad('0x26a5')])+0x2},this[_0x50bbad('0x3498')]=_0x5decea,this['attachScopeListeners'](),_0x5decea[_0x50bbad('0x1617')](),_0x5decea[_0x50bbad('0x25af')]&&_0x5decea[_0x50bbad('0x25af')][_0x50bbad('0x29cc')]();},_0x389eec[_0x11f669('0x5a')][_0x11f669('0x18ea')]=function(){var _0x381bfe=_0x11f669,_0x48dbca=this[_0x381bfe('0x3498')];return this[_0x381bfe('0x2781')][_0x381bfe('0x2a4')](_0x48dbca[_0x381bfe('0x110b')],_0x48dbca[_0x381bfe('0x162')]||_0x48dbca['selectedDate']||_0x48dbca[_0x381bfe('0x3521')]);},_0x389eec[_0x11f669('0x5a')][_0x11f669('0x1d5a')]=function(_0x16b0c2){var _0x1f1c1b=_0x11f669;if(!this[_0x1f1c1b('0x28f9')])return this[_0x1f1c1b('0x178e')](),this[_0x1f1c1b('0x3498')][_0x1f1c1b('0x35c4')](this),this[_0x1f1c1b('0x28f9')]=!0x0,this['$q'][_0x1f1c1b('0x36d1')]();if(!this[_0x1f1c1b('0x2781')]['isValidDate'](_0x16b0c2)||this[_0x1f1c1b('0x2fa6')])return this['$q'][_0x1f1c1b('0x36d1')]();this[_0x1f1c1b('0x2fa6')]=!0x0;var _0x2b3695=this[_0x1f1c1b('0x2eb')](_0x16b0c2);this[_0x1f1c1b('0x3498')][_0x1f1c1b('0x162')]=_0x16b0c2;var _0x30feb3=this;return _0x2b3695[_0x1f1c1b('0x26b5')](function(){_0x30feb3['isMonthTransitionInProgress']=!0x1;}),_0x2b3695;},_0x389eec[_0x11f669('0x5a')][_0x11f669('0x2eb')]=function(_0x3d491c){var _0x417497=_0x11f669;if(this[_0x417497('0x2781')][_0x417497('0x34a8')](_0x3d491c)){var _0x95b859=this['dateUtil'][_0x417497('0x2a4')](this[_0x417497('0x3498')]['firstRenderableDate'],_0x3d491c);this[_0x417497('0x17ba')][_0x417497('0x1fd3')]=_0x95b859*_0x2487a1;}return this['$q']['when']();},_0x389eec[_0x11f669('0x5a')][_0x11f669('0x178e')]=function(){var _0x324d5b=_0x11f669;for(var _0x55207b=this[_0x324d5b('0x11be')][_0x324d5b('0x2e66')],_0x53b04f=this[_0x324d5b('0x11be')][_0x324d5b('0x3805')],_0x3f735d=document[_0x324d5b('0x264c')]('tr'),_0x59d381=0x0;_0x59d381<0x7;_0x59d381++){var _0x26383d=document[_0x324d5b('0x264c')]('th');_0x26383d[_0x324d5b('0x2c5f')]=_0x53b04f[(_0x59d381+_0x55207b)%0x7],_0x3f735d[_0x324d5b('0x37f2')](_0x26383d);}this['$element']['find'](_0x324d5b('0x1850'))['append'](_0x3f735d);},_0x389eec[_0x11f669('0x5a')]['attachScopeListeners']=function(){var _0x3d253c=_0x11f669,_0x4ed7bb=this;_0x4ed7bb[_0x3d253c('0x1868')]['$on'](_0x3d253c('0x2e74'),function(_0x434bf5,_0x9bcdd7){var _0x188032=_0x3d253c;_0x4ed7bb[_0x188032('0x3498')][_0x188032('0x22')](_0x9bcdd7),_0x4ed7bb[_0x188032('0x1d5a')](_0x9bcdd7);}),_0x4ed7bb[_0x3d253c('0x1868')]['$on'](_0x3d253c('0x1103'),_0x4a272c[_0x3d253c('0x1ecd')](this,this[_0x3d253c('0x1924')]));},_0x389eec[_0x11f669('0x5a')][_0x11f669('0x1924')]=function(_0x4b71f6,_0x1d3555){var _0x267918=_0x11f669,_0x52bab1=this[_0x267918('0x3498')],_0x51090b=_0x52bab1[_0x267918('0x162')];if(_0x267918('0x32b0')===_0x1d3555)_0x52bab1[_0x267918('0x20c8')](_0x51090b);else{var _0x51d5de=null,_0x2a3c78=this[_0x267918('0x2781')];switch(_0x1d3555){case _0x267918('0x2b8f'):_0x51d5de=_0x2a3c78[_0x267918('0x38a1')](_0x51090b,0x1);break;case _0x267918('0x35ce'):_0x51d5de=_0x2a3c78[_0x267918('0x38a1')](_0x51090b,-0x1);break;case _0x267918('0x1e32'):_0x51d5de=_0x2a3c78['incrementMonths'](_0x51090b,0x1);break;case _0x267918('0x2c11'):_0x51d5de=_0x2a3c78[_0x267918('0x28c7')](_0x51090b,-0x1);break;case _0x267918('0xbd7'):_0x51d5de=_0x2a3c78[_0x267918('0x38a1')](_0x51090b,0x7);break;case _0x267918('0xc5a'):_0x51d5de=_0x2a3c78[_0x267918('0x38a1')](_0x51090b,-0x7);break;case'start':_0x51d5de=_0x2a3c78[_0x267918('0x32dc')](_0x51090b);break;case _0x267918('0x20ae'):_0x51d5de=_0x2a3c78[_0x267918('0x3f3')](_0x51090b);}_0x51d5de&&(_0x51d5de=this['dateUtil'][_0x267918('0x25e3')](_0x51d5de,_0x52bab1[_0x267918('0x219b')],_0x52bab1[_0x267918('0x104b')]),this[_0x267918('0x1d5a')](_0x51d5de)[_0x267918('0x26b5')](function(){var _0x4e5642=_0x267918;_0x52bab1[_0x4e5642('0x369')](_0x51d5de);}));}};}(),function(){var _0x199d75=_0x1fb7d4;function _0x5c7553(_0x1a4166,_0x4fc250){var _0x1941ed=a2_0x4bfe,_0x9356a3=_0x1a4166('_0x4f0e77['maxDate']?_0x204b35[_0x24ac68('0xc04')][_0x24ac68('0x2ded')](_0x24ac68('0x1762')):_0x4f0e77[_0x24ac68('0x2307')]||(_0x204b35[_0x24ac68('0x2e05')](_0x24ac68('0x160'),this['monthCtrl'][_0x24ac68('0x98')]),_0x204b35[_0x24ac68('0xb10')](_0x24ac68('0x339e'),_0x204e8a[_0x24ac68('0x1b0')]()),_0x204b35[_0x24ac68('0xb10')]('aria-label',this[_0x24ac68('0x11be')][_0x24ac68('0x1852')](_0x378e14)),_0x204b35[_0x24ac68('0xc04')][_0x24ac68('0x2ded')](_0x24ac68('0x5cd')),_0x204b35['appendChild'](this[_0x24ac68('0x19f2')][_0x24ac68('0x6a7')](!0x0))),_0x564fc3<=0x2){_0x204b35['setAttribute'](_0x24ac68('0x31b8'),'7');var _0x3acb1a=this[_0x24ac68('0x1696')]();if(_0x3acb1a[_0x24ac68('0x37f2')](_0x204b35),_0x4610ff[_0x24ac68('0x3de')](_0x3acb1a,_0xe8d8a9),_0x4c85a7)return _0x4610ff;}else _0x41e4ce=0x3,_0x204b35[_0x24ac68('0xb10')](_0x24ac68('0x31b8'),'3'),_0xe8d8a9['appendChild'](_0x204b35);for(var _0x2f4c7b=_0x41e4ce;_0x2f4c7b<_0x564fc3;_0x2f4c7b++)_0xe8d8a9['appendChild'](this['buildDateCell']());for(var _0x47e5b2=_0x564fc3,_0x2f1ce6=_0x204e8a,_0x16702b=0x1;_0x16702b<=_0x11227a;_0x16702b++){if(0x7===_0x47e5b2){if(_0x4c85a7)return _0x4610ff;_0x47e5b2=0x0,_0x4ef302++,_0xe8d8a9=this[_0x24ac68('0x1696')](_0x4ef302),_0x4610ff['appendChild'](_0xe8d8a9);}_0x2f1ce6[_0x24ac68('0x2cc5')](_0x16702b);var _0x1d9780=this[_0x24ac68('0x87b')](_0x2f1ce6);_0xe8d8a9[_0x24ac68('0x37f2')](_0x1d9780),_0x47e5b2++;}for(;_0xe8d8a9[_0x24ac68('0x2d7b')][_0x24ac68('0x175a')]<0x7;)_0xe8d8a9[_0x24ac68('0x37f2')](this[_0x24ac68('0x87b')]());for(;_0x4610ff['childNodes']['length']<0x6;){for(var _0x546bfa=this[_0x24ac68('0x1696')](),_0x3cfaa0=0x0;_0x3cfaa0<0x7;_0x3cfaa0++)_0x546bfa['appendChild'](this[_0x24ac68('0x87b')]());_0x4610ff[_0x24ac68('0x37f2')](_0x546bfa);}return _0x4610ff;},_0x4af779['prototype']['getLocaleDay_']=function(_0x222459){var _0x2b40cf=_0x199d75;return(_0x222459[_0x2b40cf('0x14d0')]()+(0x7-this['dateLocale'][_0x2b40cf('0x2e66')]))%0x7;};}(),function(){var _0x3d67c1=_0x1fb7d4;function _0x1971c8(_0x1fb64f,_0x2501bd,_0x28524b,_0x49b9fe,_0x4e9430,_0x40255d){var _0x3243d8=a2_0x4bfe;this[_0x3243d8('0x34d6')]=_0x1fb64f,this[_0x3243d8('0x1868')]=_0x2501bd,this[_0x3243d8('0x2a64')]=_0x28524b,this['$q']=_0x49b9fe,this['dateUtil']=_0x4e9430,this[_0x3243d8('0x17ba')]=_0x1fb64f[0x0][_0x3243d8('0x2cee')]('.md-virtual-repeat-scroller'),this[_0x3243d8('0x28f9')]=!0x1,this[_0x3243d8('0x2fa6')]=!0x1,this['$mdUtil']=_0x40255d;var _0x1023b7=this;this['cellClickHandler']=function(){var _0x1397f7=_0x3243d8;_0x1023b7[_0x1397f7('0x1313')](_0x4e9430[_0x1397f7('0xd94')](this));};}_0x1971c8[_0x3d67c1('0x28c9')]=[_0x3d67c1('0x34d6'),'$scope',_0x3d67c1('0x2a64'),'$q','$$mdDateUtil',_0x3d67c1('0x2e27')],_0x4a272c[_0x3d67c1('0x122c')](_0x3d67c1('0x1da2'))[_0x3d67c1('0x1e30')]('mdCalendarYear',function(){var _0x118636=_0x3d67c1;return{'template':_0x118636('0xf33'),'require':[_0x118636('0x2ad8'),'mdCalendarYear'],'controller':_0x1971c8,'controllerAs':'yearCtrl','bindToController':!0x0,'link':function(_0x29a070,_0x4bf662,_0x144648,_0x18943c){var _0x538d94=_0x18943c[0x0];_0x18943c[0x1]['initialize'](_0x538d94);}};}),_0x1971c8[_0x3d67c1('0x5a')][_0x3d67c1('0xdb8')]=function(_0x534fdc){var _0x3f5c5d=_0x3d67c1;this[_0x3f5c5d('0x25b')]={'length':this[_0x3f5c5d('0x2781')][_0x3f5c5d('0x313f')](_0x534fdc[_0x3f5c5d('0x110b')],_0x534fdc[_0x3f5c5d('0x26a5')])+0x1},this['calendarCtrl']=_0x534fdc,this[_0x3f5c5d('0x37ef')](),_0x534fdc[_0x3f5c5d('0x1617')](),_0x534fdc[_0x3f5c5d('0x25af')]&&_0x534fdc['ngModelCtrl'][_0x3f5c5d('0x29cc')]();},_0x1971c8['prototype'][_0x3d67c1('0x34f6')]=function(){var _0x425997=_0x3d67c1,_0x41ebdb=this[_0x425997('0x3498')];return this[_0x425997('0x2781')]['getYearDistance'](_0x41ebdb[_0x425997('0x110b')],_0x41ebdb[_0x425997('0x162')]||_0x41ebdb[_0x425997('0x1e33')]||_0x41ebdb['today']);},_0x1971c8[_0x3d67c1('0x5a')][_0x3d67c1('0x3150')]=function(_0x591fdf){var _0x46de04=_0x3d67c1;if(!this[_0x46de04('0x28f9')])return this['calendarCtrl'][_0x46de04('0x35c4')](this),this[_0x46de04('0x28f9')]=!0x0,this['$q'][_0x46de04('0x36d1')]();if(this[_0x46de04('0x2781')][_0x46de04('0x34a8')](_0x591fdf)&&!this[_0x46de04('0x2fa6')]){var _0x3d4fce=this,_0x2e51d7=this[_0x46de04('0x2eb')](_0x591fdf);return _0x3d4fce[_0x46de04('0x2fa6')]=!0x0,_0x3d4fce['calendarCtrl']['displayDate']=_0x591fdf,_0x2e51d7['then'](function(){var _0x24381b=_0x46de04;_0x3d4fce[_0x24381b('0x2fa6')]=!0x1;});}},_0x1971c8[_0x3d67c1('0x5a')][_0x3d67c1('0x2eb')]=function(_0x52bfd4){var _0x5dcd87=_0x3d67c1;if(this[_0x5dcd87('0x2781')][_0x5dcd87('0x34a8')](_0x52bfd4)){var _0xa9d00f=this[_0x5dcd87('0x2781')]['getYearDistance'](this[_0x5dcd87('0x3498')][_0x5dcd87('0x110b')],_0x52bfd4);this[_0x5dcd87('0x17ba')][_0x5dcd87('0x1fd3')]=0x58*_0xa9d00f;}return this['$q']['when']();},_0x1971c8['prototype']['handleKeyEvent']=function(_0x39934f,_0x397289){var _0x5e5b39=_0x3d67c1,_0x309b3a=this,_0x544ada=_0x309b3a['calendarCtrl'],_0x27e3f7=_0x544ada[_0x5e5b39('0x162')];if('select'===_0x397289)_0x309b3a[_0x5e5b39('0x3150')](_0x27e3f7)['then'](function(){_0x309b3a['onTimestampSelected'](_0x27e3f7);});else{var _0x19a52c=null,_0xf2a05b=_0x309b3a[_0x5e5b39('0x2781')];switch(_0x397289){case _0x5e5b39('0x2b8f'):_0x19a52c=_0xf2a05b[_0x5e5b39('0x28c7')](_0x27e3f7,0x1);break;case'move-left':_0x19a52c=_0xf2a05b[_0x5e5b39('0x28c7')](_0x27e3f7,-0x1);break;case _0x5e5b39('0xbd7'):_0x19a52c=_0xf2a05b[_0x5e5b39('0x28c7')](_0x27e3f7,0x6);break;case _0x5e5b39('0xc5a'):_0x19a52c=_0xf2a05b[_0x5e5b39('0x28c7')](_0x27e3f7,-0x6);}if(_0x19a52c){var _0x1d16b2=_0x544ada['minDate']?_0xf2a05b[_0x5e5b39('0x32dc')](_0x544ada[_0x5e5b39('0x219b')]):null,_0x690f54=_0x544ada[_0x5e5b39('0x104b')]?_0xf2a05b['getFirstDateOfMonth'](_0x544ada['maxDate']):null;_0x19a52c=_0xf2a05b['getFirstDateOfMonth'](_0x309b3a[_0x5e5b39('0x2781')][_0x5e5b39('0x25e3')](_0x19a52c,_0x1d16b2,_0x690f54)),_0x309b3a[_0x5e5b39('0x3150')](_0x19a52c)[_0x5e5b39('0x26b5')](function(){var _0x4c9fd0=_0x5e5b39;_0x544ada[_0x4c9fd0('0x369')](_0x19a52c);});}}},_0x1971c8[_0x3d67c1('0x5a')][_0x3d67c1('0x37ef')]=function(){var _0x1d793c=_0x3d67c1,_0x3e89be=this;_0x3e89be[_0x1d793c('0x1868')]['$on'](_0x1d793c('0x2e74'),function(_0x44b787,_0x250b05){var _0x82e160=_0x1d793c;_0x3e89be['calendarCtrl'][_0x82e160('0x22')](_0x250b05?_0x3e89be[_0x82e160('0x2781')][_0x82e160('0x32dc')](_0x250b05):_0x250b05),_0x3e89be['changeDate'](_0x250b05);}),_0x3e89be[_0x1d793c('0x1868')][_0x1d793c('0x1db8')](_0x1d793c('0x1103'),_0x4a272c[_0x1d793c('0x1ecd')](_0x3e89be,_0x3e89be[_0x1d793c('0x1924')]));},_0x1971c8[_0x3d67c1('0x5a')][_0x3d67c1('0x1313')]=function(_0x2e8d43){var _0xc5992e=_0x3d67c1,_0x17087a=this[_0xc5992e('0x3498')];_0x17087a['mode']?this[_0xc5992e('0x2e27')]['nextTick'](function(){var _0x18c77a=_0xc5992e;_0x17087a[_0x18c77a('0x20c8')](new Date(_0x2e8d43));}):_0x17087a[_0xc5992e('0x3200')](_0xc5992e('0x1333'),_0x2e8d43);};}(),function(){var _0x17a4fc=_0x1fb7d4;function _0x485d7b(_0x5a7fbc,_0x51e47e,_0x31c748){var _0x27d84f=a2_0x4bfe;this[_0x27d84f('0x34d6')]=_0x5a7fbc,this[_0x27d84f('0x2781')]=_0x51e47e,this['dateLocale']=_0x31c748,this['calendarCtrl']=null,this[_0x27d84f('0x3ac')]=null,this[_0x27d84f('0x154f')]=null,this['focusAfterAppend']=null;}_0x485d7b['$inject']=[_0x17a4fc('0x34d6'),_0x17a4fc('0xebc'),'$mdDateLocale'],_0x4a272c[_0x17a4fc('0x122c')](_0x17a4fc('0x1da2'))['directive'](_0x17a4fc('0x16c6'),function(){var _0x523c33=_0x17a4fc;return{'require':['^^mdCalendar','^^mdCalendarYear',_0x523c33('0x16c6')],'scope':{'offset':_0x523c33('0x81b')},'controller':_0x485d7b,'controllerAs':'mdYearBodyCtrl','bindToController':!0x0,'link':function(_0x86de3c,_0x56293a,_0x382f46,_0x2faec9){var _0x482db6=_0x523c33,_0x42312d=_0x2faec9[0x0],_0x232afa=_0x2faec9[0x1],_0x33a96e=_0x2faec9[0x2];_0x33a96e[_0x482db6('0x3498')]=_0x42312d,_0x33a96e[_0x482db6('0x3ac')]=_0x232afa,_0x86de3c[_0x482db6('0x1cb1')](function(){var _0x5ba43d=_0x482db6;return _0x33a96e[_0x5ba43d('0x154f')];},function(_0x1731c9){var _0x57b5c6=_0x482db6;_0x4a272c['isNumber'](_0x1731c9)&&_0x33a96e[_0x57b5c6('0x5cb')]();});}};}),_0x485d7b[_0x17a4fc('0x5a')][_0x17a4fc('0x5cb')]=function(){var _0x2bbb61=_0x17a4fc,_0x396286=this[_0x2bbb61('0x2781')]['incrementYears'](this[_0x2bbb61('0x3498')]['firstRenderableDate'],this[_0x2bbb61('0x154f')]);this[_0x2bbb61('0x34d6')][_0x2bbb61('0x1e61')]()[_0x2bbb61('0x10f')](this['buildCalendarForYear'](_0x396286)),this[_0x2bbb61('0x2f4d')]&&(this[_0x2bbb61('0x2f4d')][_0x2bbb61('0xc04')][_0x2bbb61('0x2ded')](this[_0x2bbb61('0x3498')]['FOCUSED_DATE_CLASS']),this[_0x2bbb61('0x2f4d')]=null);},_0x485d7b[_0x17a4fc('0x5a')]['buildMonthCell']=function(_0x1c906f,_0x31bc42){var _0x84742e=_0x17a4fc,_0x509418=this['calendarCtrl'],_0x5df1a7=this[_0x84742e('0x3ac')],_0x5b53dd=this['buildBlankCell'](),_0x1378a3=new Date(_0x1c906f,_0x31bc42,0x1);_0x5b53dd[_0x84742e('0xb10')](_0x84742e('0x15da'),this['dateLocale']['monthFormatter'](_0x1378a3)),_0x5b53dd['id']=_0x509418[_0x84742e('0x1582')](_0x1378a3,_0x84742e('0x144e')),_0x5b53dd[_0x84742e('0xb10')](_0x84742e('0x339e'),String(_0x1378a3[_0x84742e('0x1b0')]())),this['dateUtil'][_0x84742e('0x150c')](_0x1378a3,_0x509418[_0x84742e('0x3521')])&&_0x5b53dd[_0x84742e('0xc04')][_0x84742e('0x2ded')](_0x509418[_0x84742e('0x1a8f')]),this[_0x84742e('0x2781')][_0x84742e('0x34a8')](_0x509418[_0x84742e('0x1e33')])&&this[_0x84742e('0x2781')][_0x84742e('0x150c')](_0x1378a3,_0x509418[_0x84742e('0x1e33')])&&(_0x5b53dd['classList'][_0x84742e('0x2ded')](_0x509418[_0x84742e('0x177f')]),_0x5b53dd[_0x84742e('0xb10')](_0x84742e('0x2cb8'),_0x84742e('0x11cf')));var _0x6de9f0=this[_0x84742e('0x11be')][_0x84742e('0x2f71')][_0x31bc42];if(!this['dateUtil'][_0x84742e('0x25bf')](_0x1378a3,_0x509418[_0x84742e('0x219b')],_0x509418[_0x84742e('0x104b')])||_0x4a272c[_0x84742e('0x1e34')](_0x509418[_0x84742e('0x3683')])&&!_0x509418[_0x84742e('0x3683')](_0x1378a3))_0x5b53dd[_0x84742e('0xc04')][_0x84742e('0x2ded')](_0x84742e('0x21f3')),_0x5b53dd['textContent']=_0x6de9f0;else{var _0x2cc7d4=document[_0x84742e('0x264c')]('span');_0x2cc7d4['classList'][_0x84742e('0x2ded')]('md-calendar-date-selection-indicator'),_0x2cc7d4[_0x84742e('0x2c5f')]=_0x6de9f0,_0x5b53dd['appendChild'](_0x2cc7d4),_0x5b53dd['addEventListener'](_0x84742e('0x160'),_0x5df1a7[_0x84742e('0x1e55')]),_0x509418[_0x84742e('0x162')]&&this[_0x84742e('0x2781')]['isSameMonthAndYear'](_0x1378a3,_0x509418[_0x84742e('0x162')])&&(this['focusAfterAppend']=_0x5b53dd);}return _0x5b53dd;},_0x485d7b['prototype'][_0x17a4fc('0x1396')]=function(){var _0x54676c=_0x17a4fc,_0x3a3ea6=document['createElement']('td');return _0x3a3ea6[_0x54676c('0x3645')]=-0x1,_0x3a3ea6[_0x54676c('0xc04')][_0x54676c('0x2ded')](_0x54676c('0x15a7')),_0x3a3ea6[_0x54676c('0xb10')](_0x54676c('0x38ba'),'gridcell'),_0x3a3ea6['setAttribute'](_0x54676c('0x1b4e'),'-1'),_0x3a3ea6;},_0x485d7b['prototype'][_0x17a4fc('0x266f')]=function(_0x5b0aed){var _0x2d65a6=_0x17a4fc,_0x17f602,_0x15b986=_0x5b0aed[_0x2d65a6('0x1ea3')](),_0x30a7fb=document[_0x2d65a6('0x22b9')](),_0x15303f=document[_0x2d65a6('0x264c')]('tr'),_0x14b521=document['createElement']('td');for(_0x14b521['className']=_0x2d65a6('0x5d9'),_0x14b521[_0x2d65a6('0x2c5f')]=String(_0x15b986),_0x15303f['appendChild'](_0x14b521),_0x17f602=0x0;_0x17f602<0x6;_0x17f602++)_0x15303f[_0x2d65a6('0x37f2')](this[_0x2d65a6('0xdff')](_0x15b986,_0x17f602));_0x30a7fb['appendChild'](_0x15303f);var _0x3460d3=document[_0x2d65a6('0x264c')]('tr');for(_0x3460d3[_0x2d65a6('0x37f2')](this[_0x2d65a6('0x1396')]()),_0x17f602=0x6;_0x17f602<0xc;_0x17f602++)_0x3460d3['appendChild'](this[_0x2d65a6('0xdff')](_0x15b986,_0x17f602));return _0x30a7fb[_0x2d65a6('0x37f2')](_0x3460d3),_0x30a7fb;};}(),_0x4a272c[_0x1fb7d4('0x122c')](_0x1fb7d4('0x1da2'))[_0x1fb7d4('0x3486')]([_0x1fb7d4('0x2a0a'),function(_0x32ce66){var _0x3bc969=_0x1fb7d4;function _0x2746e2(){var _0x299ded=a2_0x4bfe;this[_0x299ded('0x1c4e')]=null,this[_0x299ded('0x2f71')]=null,this[_0x299ded('0x1c9d')]=null,this['shortDays']=null,this[_0x299ded('0xf5b')]=null,this[_0x299ded('0x2e66')]=0x0,this[_0x299ded('0x158e')]=null,this[_0x299ded('0x205')]=null,this[_0x299ded('0x2056')]=null,this[_0x299ded('0x2d84')]=null,this[_0x299ded('0xa3e')]=null,this[_0x299ded('0x932')]=null,this[_0x299ded('0x3743')]='',this[_0x299ded('0x1fc7')]='';}_0x2746e2[_0x3bc969('0x5a')][_0x3bc969('0x2b72')]=function(_0x29c74b,_0x33f8e3){var _0x2c67f7=_0x3bc969;for(var _0x5a3806=_0x29c74b[_0x2c67f7('0x20c7')][_0x2c67f7('0x3780')][_0x2c67f7('0x2d86')](function(_0x28900f){var _0x18367c=_0x2c67f7;return _0x28900f[_0x18367c('0x92')](0x0,0x1);}),_0x4a613a=Array(0x20),_0x4bafd4=0x1;_0x4bafd4<=0x1f;_0x4bafd4++)_0x4a613a[_0x4bafd4]=_0x4bafd4;var _0x37f40c=new Date(0x758,0x0,0x1),_0x2b6ccb=new Date(_0x37f40c[_0x2c67f7('0x1ea3')]()+0xfa,0x0,0x1),_0x548ff2={'months':this[_0x2c67f7('0x1c4e')]||_0x29c74b[_0x2c67f7('0x20c7')][_0x2c67f7('0x2181')],'shortMonths':this['shortMonths']||_0x29c74b[_0x2c67f7('0x20c7')][_0x2c67f7('0xd49')],'days':this[_0x2c67f7('0x1c9d')]||_0x29c74b[_0x2c67f7('0x20c7')][_0x2c67f7('0x13da')],'shortDays':this[_0x2c67f7('0x3805')]||_0x5a3806,'dates':this[_0x2c67f7('0xf5b')]||_0x4a613a,'firstDayOfWeek':this['firstDayOfWeek']||0x0,'formatDate':this[_0x2c67f7('0x158e')]||function(_0x412df2,_0xa2eb0d){var _0x51a0e1=_0x2c67f7;if(!_0x412df2)return'';var _0x1c4b70=_0x412df2['toLocaleTimeString'](),_0x2a13e1=_0x412df2;return 0x0!==_0x412df2['getHours']()||-0x1===_0x1c4b70[_0x51a0e1('0xe1c')]('11:')&&-0x1===_0x1c4b70[_0x51a0e1('0xe1c')](_0x51a0e1('0x136b'))||(_0x2a13e1=new Date(_0x412df2[_0x51a0e1('0x1ea3')](),_0x412df2[_0x51a0e1('0x48b')](),_0x412df2[_0x51a0e1('0x521')](),0x1,0x0,0x0)),_0x33f8e3(_0x51a0e1('0x1408'))(_0x2a13e1,_0x51a0e1('0x29b9'),_0xa2eb0d);},'parseDate':this[_0x2c67f7('0x205')]||function(_0x37afd7){return new Date(_0x37afd7);},'isDateComplete':this[_0x2c67f7('0x932')]||function(_0x40f400){var _0x3feeeb=_0x2c67f7;return _0x40f400=_0x40f400[_0x3feeeb('0x2ec5')](),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ .,]+|[/-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/[_0x3feeeb('0x19cd')](_0x40f400);},'monthHeaderFormatter':this['monthHeaderFormatter']||function(_0x2aace4){var _0x5d0628=_0x2c67f7;return _0x548ff2[_0x5d0628('0x2f71')][_0x2aace4[_0x5d0628('0x48b')]()]+'\x20'+_0x2aace4[_0x5d0628('0x1ea3')]();},'monthFormatter':this[_0x2c67f7('0x1852')]||function(_0x397d5f){var _0x997790=_0x2c67f7;return _0x548ff2[_0x997790('0x1c4e')][_0x397d5f['getMonth']()]+'\x20'+_0x397d5f['getFullYear']();},'weekNumberFormatter':this[_0x2c67f7('0x2d84')]||function(_0x210779){var _0x565959=_0x2c67f7;return _0x565959('0x2bf0')+_0x210779;},'longDateFormatter':this['longDateFormatter']||function(_0x2744d6){var _0x9741af=_0x2c67f7;return[_0x548ff2['days'][_0x2744d6[_0x9741af('0x14d0')]()],_0x548ff2['months'][_0x2744d6[_0x9741af('0x48b')]()],_0x548ff2[_0x9741af('0xf5b')][_0x2744d6[_0x9741af('0x521')]()],_0x2744d6[_0x9741af('0x1ea3')]()]['join']('\x20');},'msgCalendar':this[_0x2c67f7('0x3743')]||_0x2c67f7('0x590'),'msgOpenCalendar':this['msgOpenCalendar']||_0x2c67f7('0xfb1'),'firstRenderableDate':this[_0x2c67f7('0x110b')]||_0x37f40c,'lastRenderableDate':this[_0x2c67f7('0x26a5')]||_0x2b6ccb};return _0x548ff2;},_0x2746e2['prototype'][_0x3bc969('0x2b72')]['$inject']=[_0x3bc969('0xfc8'),_0x3bc969('0x19f9')],_0x32ce66[_0x3bc969('0x210d')](_0x3bc969('0x2892'),new _0x2746e2());}]),_0x4a272c['module']('material.components.datepicker')[_0x1fb7d4('0x36b0')]('$$mdDateUtil',[_0x1fb7d4('0x2892'),function(_0x4eba57){return{'getFirstDateOfMonth':_0xa4d0ff,'getNumberOfDaysInMonth':_0xd3a4d1,'getDateInNextMonth':_0x4b0410,'getDateInPreviousMonth':_0x465a7a,'isInNextMonth':function(_0x5cc5fd,_0x471e85){return _0x55af11(_0x4b0410(_0x5cc5fd),_0x471e85);},'isInPreviousMonth':function(_0x267121,_0x31d157){var _0x347ac3=_0x465a7a(_0x267121);return _0x55af11(_0x31d157,_0x347ac3);},'getDateMidpoint':function(_0x2c1c9a,_0x21282f){var _0x454ab4=a2_0x4bfe;return _0x12f113((_0x2c1c9a['getTime']()+_0x21282f[_0x454ab4('0x1b0')]())/0x2);},'isSameMonthAndYear':_0x55af11,'getWeekOfMonth':function(_0x7bfa1b){var _0x3116d9=a2_0x4bfe,_0x20743c=_0xa4d0ff(_0x7bfa1b);return Math[_0x3116d9('0x2736')]((_0x20743c['getDay']()+_0x7bfa1b['getDate']()-0x1)/0x7);},'incrementDays':function(_0x37f874,_0x56c426){var _0x55d920=a2_0x4bfe;return new Date(_0x37f874[_0x55d920('0x1ea3')](),_0x37f874[_0x55d920('0x48b')](),_0x37f874[_0x55d920('0x521')]()+_0x56c426);},'incrementMonths':_0x3aba13,'getLastDateOfMonth':function(_0x215fa9){var _0x35affc=a2_0x4bfe;return new Date(_0x215fa9['getFullYear'](),_0x215fa9[_0x35affc('0x48b')](),_0xd3a4d1(_0x215fa9));},'isSameDay':function(_0x117b82,_0x168631){var _0x38bfc0=a2_0x4bfe;return _0x117b82[_0x38bfc0('0x521')]()==_0x168631['getDate']()&&_0x55af11(_0x117b82,_0x168631);},'getMonthDistance':function(_0xafb8b4,_0x49af39){var _0x1908a0=a2_0x4bfe;return 0xc*(_0x49af39['getFullYear']()-_0xafb8b4[_0x1908a0('0x1ea3')]())+(_0x49af39[_0x1908a0('0x48b')]()-_0xafb8b4[_0x1908a0('0x48b')]());},'isValidDate':_0x439bab,'setDateTimeToMidnight':_0x38cb8a,'createDateAtMidnight':_0x12f113,'isDateWithinRange':function(_0x2d4002,_0x5b412f,_0x4c91f3){var _0x1efd71=_0x12f113(_0x2d4002),_0xca8cea=_0x439bab(_0x5b412f)?_0x12f113(_0x5b412f):null,_0x45bfb3=_0x439bab(_0x4c91f3)?_0x12f113(_0x4c91f3):null;return(!_0xca8cea||_0xca8cea<=_0x1efd71)&&(!_0x45bfb3||_0x45bfb3>=_0x1efd71);},'incrementYears':function(_0xcd1639,_0x275bd2){return _0x3aba13(_0xcd1639,0xc*_0x275bd2);},'getYearDistance':function(_0x1a3cc4,_0x505124){var _0x2171fc=a2_0x4bfe;return _0x505124[_0x2171fc('0x1ea3')]()-_0x1a3cc4['getFullYear']();},'clampDate':function(_0x241f8c,_0x4049e8,_0x3c6302){var _0x387a82=a2_0x4bfe,_0x3f84d8=_0x241f8c;return _0x4049e8&&_0x241f8c<_0x4049e8&&(_0x3f84d8=new Date(_0x4049e8[_0x387a82('0x1b0')]())),_0x3c6302&&_0x241f8c>_0x3c6302&&(_0x3f84d8=new Date(_0x3c6302['getTime']())),_0x3f84d8;},'getTimestampFromNode':function(_0x50544a){var _0x13008b=a2_0x4bfe;if(_0x50544a&&_0x50544a[_0x13008b('0x2052')](_0x13008b('0x339e')))return Number(_0x50544a[_0x13008b('0x10ba')](_0x13008b('0x339e')));},'isMonthWithinRange':function(_0x5937cd,_0x259264,_0x482853){var _0x4e8e43=a2_0x4bfe,_0x317ef9=_0x5937cd[_0x4e8e43('0x48b')](),_0x20514e=_0x5937cd[_0x4e8e43('0x1ea3')]();return(!_0x259264||_0x259264[_0x4e8e43('0x1ea3')]()<_0x20514e||_0x259264['getMonth']()<=_0x317ef9)&&(!_0x482853||_0x482853[_0x4e8e43('0x1ea3')]()>_0x20514e||_0x482853['getMonth']()>=_0x317ef9);},'removeLocalTzAndReparseDate':function(_0x2d06e0){var _0x5662d9=a2_0x4bfe,_0x3262d6,_0x4af72e;return _0x3262d6=new Date(_0x2d06e0[_0x5662d9('0x1b0')]()+0xea60*_0x2d06e0[_0x5662d9('0x22c3')]()),_0x4af72e=_0x4eba57['formatDate'](_0x3262d6),_0x4eba57['parseDate'](_0x4af72e);}};function _0xa4d0ff(_0x102fcc){var _0x4cc447=a2_0x4bfe;return new Date(_0x102fcc['getFullYear'](),_0x102fcc[_0x4cc447('0x48b')](),0x1);}function _0xd3a4d1(_0x7ddbd2){var _0x441aab=a2_0x4bfe;return new Date(_0x7ddbd2[_0x441aab('0x1ea3')](),_0x7ddbd2[_0x441aab('0x48b')]()+0x1,0x0)[_0x441aab('0x521')]();}function _0x4b0410(_0x4294eb){var _0x1dc87f=a2_0x4bfe;return new Date(_0x4294eb[_0x1dc87f('0x1ea3')](),_0x4294eb[_0x1dc87f('0x48b')]()+0x1,0x1);}function _0x465a7a(_0x20b599){var _0x4f2058=a2_0x4bfe;return new Date(_0x20b599[_0x4f2058('0x1ea3')](),_0x20b599['getMonth']()-0x1,0x1);}function _0x55af11(_0x4c2d71,_0x5c346d){var _0x1063f3=a2_0x4bfe;return _0x4c2d71['getFullYear']()===_0x5c346d[_0x1063f3('0x1ea3')]()&&_0x4c2d71[_0x1063f3('0x48b')]()===_0x5c346d[_0x1063f3('0x48b')]();}function _0x3aba13(_0x50639a,_0x456fd5){var _0x3a19f7=a2_0x4bfe,_0x3783da=new Date(_0x50639a[_0x3a19f7('0x1ea3')](),_0x50639a[_0x3a19f7('0x48b')]()+_0x456fd5,0x1),_0x137427=_0xd3a4d1(_0x3783da);return _0x137427<_0x50639a[_0x3a19f7('0x521')]()?_0x3783da['setDate'](_0x137427):_0x3783da['setDate'](_0x50639a[_0x3a19f7('0x521')]()),_0x3783da;}function _0x439bab(_0x164f89){var _0x169d01=a2_0x4bfe;return _0x164f89&&_0x164f89[_0x169d01('0x1b0')]&&!isNaN(_0x164f89[_0x169d01('0x1b0')]());}function _0x38cb8a(_0xfa0c6){_0x439bab(_0xfa0c6)&&_0xfa0c6['setHours'](0x0,0x0,0x0,0x0);}function _0x12f113(_0x8874a){var _0x475f3f=a2_0x4bfe,_0x4faffe;return _0x38cb8a(_0x4faffe=_0x4a272c['isDate'](_0x8874a)?_0x8874a:_0x4a272c[_0x475f3f('0x53')](_0x8874a)?new Date(_0x8874a):new Date()),_0x4faffe;}}]),function(){var _0x43beab=_0x1fb7d4;function _0x55ae8f(_0x25ef97,_0x1b943b,_0x582aec,_0x325007){var _0x276dd2=a2_0x4bfe;return{'template':function(_0x41603f,_0x45c1a0){var _0x175b9f=a2_0x4bfe,_0x118a32=_0x45c1a0[_0x175b9f('0x2808')],_0x41c437=_0x45c1a0[_0x175b9f('0x36c8')]||_0x45c1a0['mdPlaceholder'],_0x4ddc74=_0x45c1a0['ngModelOptions'],_0x2ddb08=_0x175b9f('0x130c')===_0x118a32||_0x175b9f('0x1fec')===_0x118a32?'':_0x175b9f('0x967')+_0x25ef97[_0x175b9f('0x2074')]+_0x175b9f('0x390e'),_0x3fd9ed='';return'all'!==_0x118a32&&'triangle'!==_0x118a32&&(_0x3fd9ed='',_0x41603f[_0x175b9f('0x2dc8')](_0x3f363b)),_0x2ddb08+_0x175b9f('0x23fe')+(_0x41c437?_0x175b9f('0x3002')+_0x41c437+'\x22\x20':'')+'class=\x22md-datepicker-input\x22\x20aria-haspopup=\x22dialog\x22\x20ng-focus=\x22ctrl.setFocused(true)\x22\x20ng-blur=\x22ctrl.setFocused(false)\x22>\x20'+_0x3fd9ed+'')['append'](_0x43d36d)),_0x4db315[_0x1d6cd3('0x3148')](_0x183f41['mdPlaceholder']),_0x4db315[_0x1d6cd3('0x10a7')]=_0x191a80,_0x4db315[_0x1d6cd3('0x88a')][_0x1d6cd3('0x2dc8')](_0x210d3a)['toggleClass'](_0x1e368e,_0x1d6cd3('0x1fec')!==_0x183f41[_0x1d6cd3('0x2808')]&&_0x1d6cd3('0x130c')!==_0x183f41[_0x1d6cd3('0x2808')]),_0x4db315[_0x1d6cd3('0x1f7f')]?_0x2b1374||_0x183f41['$observe'](_0x1d6cd3('0x20d0'),function(_0x3c9e0b){var _0xb3344a=_0x1d6cd3;_0x4db315[_0xb3344a('0x1f7f')]['toggleClass'](_0xb3344a('0x4ee'),!!_0x3c9e0b);}):_0x582aec['expect'](_0x191a80,_0x1d6cd3('0x15da'),_0x183f41[_0x1d6cd3('0x2d74')]),_0x5db09a['$watch'](_0x4db315['isErrorGetter']||function(){var _0x31269b=_0x1d6cd3;return _0xf3d8f8['$invalid']&&(_0xf3d8f8['$touched']||_0x1d2cf9&&_0x1d2cf9[_0x31269b('0xc7f')]);},_0x4db315[_0x1d6cd3('0x446')]);}else{if(_0x1d2cf9)var _0x15a8a1=_0x5db09a[_0x1d6cd3('0x1cb1')](function(){var _0xfc6402=_0x1d6cd3;return _0x1d2cf9[_0xfc6402('0xc7f')];},function(_0xfd3d3a){_0xfd3d3a&&(_0x593553['updateErrorState'](),_0x15a8a1());});}}};}_0x4194b0[_0x43beab('0x28c9')]=[_0x43beab('0x1868'),_0x43beab('0x34d6'),_0x43beab('0xa7b'),_0x43beab('0x398e'),_0x43beab('0x35b'),'$mdTheming',_0x43beab('0x2e27'),_0x43beab('0x2892'),_0x43beab('0xebc'),'$$rAF',_0x43beab('0x19f9'),_0x43beab('0x1993')],_0x55ae8f['$inject']=[_0x43beab('0x2431'),_0x43beab('0x2e27'),_0x43beab('0x1a2f'),_0x43beab('0x377b')],_0x4a272c[_0x43beab('0x122c')]('material.components.datepicker')[_0x43beab('0x1e30')]('mdDatepicker',_0x55ae8f);var _0x5b8db5=_0x43beab('0x14af'),_0x55f433='md-datepicker-open',_0x210d3a=_0x43beab('0x17f'),_0x1e368e=_0x43beab('0x3863'),_0x3f363b=_0x43beab('0x3962'),_0x3d374b=0x168,_0x1d55a7=/ipad|iphone|ipod|android/i;function _0x4194b0(_0x1ac804,_0x4b914b,_0x2eba3c,_0x369607,_0x336892,_0x31c80b,_0x4b1234,_0x2fba63,_0x57a6b4,_0x41dc96,_0x335311,_0x37f9ec){var _0x86b2a5=_0x43beab;this[_0x86b2a5('0x398e')]=_0x369607,this[_0x86b2a5('0x2781')]=_0x57a6b4,this[_0x86b2a5('0x35b')]=_0x336892,this[_0x86b2a5('0x2e27')]=_0x4b1234,this[_0x86b2a5('0x3490')]=_0x41dc96,this[_0x86b2a5('0x2892')]=_0x2fba63,this[_0x86b2a5('0x1993')]=_0x37f9ec,this[_0x86b2a5('0x207a')]=_0x4a272c['element'](document['documentElement']),this[_0x86b2a5('0x25af')]=null,this['inputElement']=_0x4b914b[0x0][_0x86b2a5('0x2cee')](_0x86b2a5('0x10a7')),this[_0x86b2a5('0x2073')]=_0x4a272c[_0x86b2a5('0x88a')](this[_0x86b2a5('0xdb')]),this['inputContainer']=_0x4b914b[0x0]['querySelector'](_0x86b2a5('0x374')),this[_0x86b2a5('0x7f6')]=_0x4b914b[0x0]['querySelector']('.md-datepicker-calendar-pane'),this[_0x86b2a5('0x32a0')]=_0x4b914b[0x0][_0x86b2a5('0x2cee')](_0x86b2a5('0xf7e')),this[_0x86b2a5('0x319d')]=_0x4a272c[_0x86b2a5('0x88a')](_0x4b914b[0x0][_0x86b2a5('0x2cee')](_0x86b2a5('0x291c'))),this[_0x86b2a5('0x34d6')]=_0x4b914b,this[_0x86b2a5('0xa7b')]=_0x2eba3c,this['$scope']=_0x1ac804,this[_0x86b2a5('0x1408')]=null,this[_0x86b2a5('0x13b4')]=!0x1,this[_0x86b2a5('0x3946')]=_0x6373f5,this[_0x86b2a5('0x104d')](_0x4b914b[0x0][_0x86b2a5('0x2d00')]||_0x4a272c['isString'](_0x2eba3c[_0x86b2a5('0x2d00')])),this[_0x86b2a5('0x1f83')]=!0x1,this[_0x86b2a5('0x3860')]=_0x2eba3c[_0x86b2a5('0x1522')](_0x86b2a5('0x3191')),this[_0x86b2a5('0x1606')]=null,this[_0x86b2a5('0x3445')]=null,this['calendarPaneId']=_0x86b2a5('0xbef')+_0x4b1234[_0x86b2a5('0x2801')](),this[_0x86b2a5('0xe14')]=_0x4a272c[_0x86b2a5('0x1ecd')](this,this[_0x86b2a5('0x2016')]),this[_0x86b2a5('0x2324')]=_0x1d55a7[_0x86b2a5('0x19cd')](navigator[_0x86b2a5('0x3656')]||navigator['vendor']||_0x49f10c[_0x86b2a5('0x23ea')])?_0x86b2a5('0x22cb'):_0x86b2a5('0x32b7'),this[_0x86b2a5('0x209f')]=_0x4b1234['debounce'](_0x4a272c[_0x86b2a5('0x1ecd')](this,this[_0x86b2a5('0x2a1a')]),0x64),this[_0x86b2a5('0x23c6')]=_0x4a272c[_0x86b2a5('0x1ecd')](this,this['handleWindowBlur']),this['ngDateFilter']=_0x335311(_0x86b2a5('0x1408')),this[_0x86b2a5('0x583')]=0x14,this[_0x86b2a5('0x377e')]=null,_0x2eba3c[_0x86b2a5('0x1b4e')]?(this[_0x86b2a5('0x2073')][_0x86b2a5('0x1e52')](_0x86b2a5('0x1b4e'),_0x2eba3c[_0x86b2a5('0x1b4e')]),_0x2eba3c[_0x86b2a5('0x44c')]('tabindex',null)):_0x2eba3c[_0x86b2a5('0x44c')]('tabindex','-1'),_0x2eba3c[_0x86b2a5('0x44c')](_0x86b2a5('0x21c6'),this['calendarPaneId']),_0x31c80b(_0x4b914b),_0x31c80b(_0x4a272c['element'](this['calendarPane']));var _0x117a78=this;_0x1ac804[_0x86b2a5('0x1db8')](_0x86b2a5('0x2f34'),function(){var _0x194014=_0x86b2a5;_0x117a78[_0x194014('0x86c')]();}),_0x2eba3c[_0x86b2a5('0x349e')]&&_0x1ac804['$watch']('ctrl.isOpen',function(_0x3c2232){var _0x386b57=_0x86b2a5;_0x3c2232?_0x117a78[_0x386b57('0x1044')]({'target':_0x117a78[_0x386b57('0xdb')]}):_0x117a78['closeCalendarPane']();}),0x1===_0x4a272c['version'][_0x86b2a5('0xe53')]&&_0x4a272c[_0x86b2a5('0x2ee1')][_0x86b2a5('0x36c5')]<=0x4&&this[_0x86b2a5('0x3825')]();}_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x3825')]=function(){var _0x2add51=_0x43beab;this['locale']=this['dateLocale']?_0x4a272c[_0x2add51('0x237f')]({},this[_0x2add51('0x2892')],this[_0x2add51('0x11be')]):this[_0x2add51('0x2892')],this[_0x2add51('0x21ce')](),this[_0x2add51('0xef9')](),this[_0x2add51('0x38b5')]();},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x2edb')]=function(_0x1a7c6e,_0x52a6f4,_0x55305f){var _0x33983f=_0x43beab;this['ngModelCtrl']=_0x1a7c6e,this[_0x33983f('0x1606')]=_0x52a6f4,this[_0x33983f('0xa7b')]['$set'](_0x33983f('0x21a5'),_0x33983f('0x1408')),_0x55305f[0x0][_0x33983f('0x3634')][_0x33983f('0x11ed')](this[_0x33983f('0x1868')],{'on':_0x4a272c['noop'],'val':_0x4a272c['noop'],0x0:{}},this['$attrs'],[_0x1a7c6e]);var _0x326c09=this;_0x326c09[_0x33983f('0x25af')]['$formatters'][_0x33983f('0x1a90')](function(_0x3a67a9){var _0xc675e1=_0x33983f,_0x16e1a0=_0x4a272c[_0xc675e1('0x392d')](_0x3a67a9)?_0x3a67a9:null;if(!(_0x3a67a9 instanceof Date)&&(_0x16e1a0=Date['parse'](_0x3a67a9),!isNaN(_0x16e1a0)&&_0x4a272c[_0xc675e1('0x53')](_0x16e1a0)&&(_0x3a67a9=new Date(_0x16e1a0)),_0x3a67a9&&!(_0x3a67a9 instanceof Date)))throw Error(_0xc675e1('0x13a3')+typeof _0x3a67a9);return _0x326c09[_0xc675e1('0x2b76')](_0x3a67a9),_0x3a67a9;}),_0x1a7c6e[_0x33983f('0x1e56')][_0x33983f('0x1a5c')](_0x4a272c[_0x33983f('0x1ecd')](this,this[_0x33983f('0x2b41')]));var _0x214cbe=_0x326c09['$mdUtil']['getModelOption'](_0x1a7c6e,_0x33983f('0x366e'));_0x214cbe&&this[_0x33983f('0x2073')]['on'](_0x214cbe,_0x4a272c['bind'](this[_0x33983f('0x34d6')],this[_0x33983f('0x34d6')][_0x33983f('0x1a0f')],_0x214cbe));},_0x4194b0[_0x43beab('0x5a')]['attachChangeListeners']=function(){var _0x209618=_0x43beab,_0x5eb68e=this;_0x5eb68e[_0x209618('0x1868')]['$on'](_0x209618('0x262'),function(_0x2e3bb6,_0x3810bb){var _0x2e4dc8=_0x209618;_0x5eb68e['setModelValue'](_0x3810bb),_0x5eb68e[_0x2e4dc8('0x2b76')](_0x3810bb),_0x5eb68e['closeCalendarPane']();}),_0x5eb68e[_0x209618('0x2073')]['on'](_0x209618('0x10a7'),_0x4a272c[_0x209618('0x1ecd')](_0x5eb68e,_0x5eb68e['resizeInputElement']));var _0xa9d344=_0x4a272c[_0x209618('0x392d')](this[_0x209618('0x28e0')])?this[_0x209618('0x28e0')]:0x1f4;_0x5eb68e[_0x209618('0x2073')]['on'](_0x209618('0x10a7'),_0x5eb68e['$mdUtil'][_0x209618('0x24cd')](_0x5eb68e[_0x209618('0x15d3')],_0xa9d344,_0x5eb68e));},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x38b5')]=function(){var _0x144a7c=_0x43beab,_0x46e1dc=this,_0x58b715=this[_0x144a7c('0x1868')],_0x1ba9ca=this[_0x144a7c('0x35b')][_0x144a7c('0xaca')];_0x46e1dc['ngInputElement']['on'](_0x144a7c('0xf04'),function(_0x510c7b){var _0xc6ca25=_0x144a7c;_0x510c7b['altKey']&&_0x510c7b['keyCode']===_0x1ba9ca['DOWN_ARROW']&&(_0x46e1dc[_0xc6ca25('0x1044')](_0x510c7b),_0x58b715[_0xc6ca25('0x3964')]());}),_0x46e1dc['openOnFocus']&&(_0x46e1dc[_0x144a7c('0x2073')]['on']('focus',_0x4a272c[_0x144a7c('0x1ecd')](_0x46e1dc,_0x46e1dc[_0x144a7c('0x1044')])),_0x46e1dc[_0x144a7c('0x2073')]['on'](_0x144a7c('0x160'),function(_0x44ebe1){var _0x126a7a=_0x144a7c;_0x44ebe1[_0x126a7a('0x16c5')]();}),_0x46e1dc[_0x144a7c('0x2073')]['on'](_0x144a7c('0xb0'),function(_0x1ad28b){var _0x514aa7=_0x144a7c;_0x1ad28b['target']&&_0x1ad28b[_0x514aa7('0x312f')][_0x514aa7('0x2f20')]&&_0x1ad28b[_0x514aa7('0x312f')]['setPointerCapture'](_0x1ad28b['pointerId']);}),_0x4a272c[_0x144a7c('0x88a')](_0x46e1dc['$window'])['on'](_0x144a7c('0x1137'),_0x46e1dc[_0x144a7c('0x23c6')]),_0x58b715[_0x144a7c('0x1db8')](_0x144a7c('0x2f34'),function(){var _0xe4e5b6=_0x144a7c;_0x4a272c[_0xe4e5b6('0x88a')](_0x46e1dc[_0xe4e5b6('0x398e')])[_0xe4e5b6('0x1202')](_0xe4e5b6('0x1137'),_0x46e1dc['windowBlurHandler']);})),_0x58b715[_0x144a7c('0x1db8')](_0x144a7c('0x2f9c'),function(){var _0x4bd720=_0x144a7c;_0x46e1dc[_0x4bd720('0x2a1a')]();});},_0x4194b0['prototype'][_0x43beab('0x21ce')]=function(){var _0x561e75=_0x43beab,_0x3745de=this;if(this['$attrs'][_0x561e75('0x1f5')]){var _0x26e577=this[_0x561e75('0x1868')]['$parent'];_0x26e577&&_0x26e577[_0x561e75('0x1cb1')](this[_0x561e75('0xa7b')][_0x561e75('0x1f5')],function(_0x2dd5d0){_0x3745de['setDisabled'](_0x2dd5d0);});}Object[_0x561e75('0x2cd6')](this,'placeholder',{'get':function(){var _0x5d939b=_0x561e75;return _0x3745de['inputElement'][_0x5d939b('0x162f')];},'set':function(_0x3dd31d){var _0xb11e3=_0x561e75;_0x3745de[_0xb11e3('0xdb')][_0xb11e3('0x162f')]=_0x3dd31d||'';}});},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x104d')]=function(_0x118666){var _0x1ae1a8=_0x43beab;this[_0x1ae1a8('0x3946')]=_0x118666,this[_0x1ae1a8('0xdb')]['disabled']=_0x118666,this['calendarButton']&&(this[_0x1ae1a8('0x32a0')][_0x1ae1a8('0x2d00')]=_0x118666);},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x2b41')]=function(_0x20b312){var _0x3c81be=_0x43beab,_0x44a634=_0x20b312||this[_0x3c81be('0x1408')];if(this[_0x3c81be('0x28aa')](),this[_0x3c81be('0x2781')][_0x3c81be('0x34a8')](_0x44a634)){if(_0x44a634=this[_0x3c81be('0x2781')][_0x3c81be('0xbda')](_0x44a634),this[_0x3c81be('0x2781')][_0x3c81be('0x34a8')](this[_0x3c81be('0x219b')])){var _0x124599=this['dateUtil']['createDateAtMidnight'](this['minDate']);this['ngModelCtrl'][_0x3c81be('0x1ea7')]('mindate',_0x44a634>=_0x124599);}if(this[_0x3c81be('0x2781')]['isValidDate'](this[_0x3c81be('0x104b')])){var _0x379b54=this[_0x3c81be('0x2781')]['createDateAtMidnight'](this[_0x3c81be('0x104b')]);this[_0x3c81be('0x25af')]['$setValidity'](_0x3c81be('0x711'),_0x44a634<=_0x379b54);}_0x4a272c[_0x3c81be('0x1e34')](this[_0x3c81be('0x365d')])&&this[_0x3c81be('0x25af')][_0x3c81be('0x1ea7')]('filtered',this['dateFilter'](_0x44a634)),_0x4a272c[_0x3c81be('0x1e34')](this['monthFilter'])&&this[_0x3c81be('0x25af')]['$setValidity'](_0x3c81be('0x1c88'),this[_0x3c81be('0x3683')](_0x44a634));}else this['ngModelCtrl'][_0x3c81be('0x1ea7')](_0x3c81be('0x3852'),null==_0x44a634);var _0x3c5b39=this[_0x3c81be('0xdb')][_0x3c81be('0x248e')],_0xc6efa5=this[_0x3c81be('0x34b1')][_0x3c81be('0x205')](_0x3c5b39);!this['isInputValid'](_0x3c5b39,_0xc6efa5)&&this[_0x3c81be('0x25af')][_0x3c81be('0xa2e')]&&this[_0x3c81be('0x25af')][_0x3c81be('0x1ea7')](_0x3c81be('0x3852'),null==_0x44a634),_0x4a272c[_0x3c81be('0x88a')](this['inputContainer'])[_0x3c81be('0x2af2')](_0x5b8db5,this[_0x3c81be('0x25af')][_0x3c81be('0x2d52')]&&(this[_0x3c81be('0x25af')][_0x3c81be('0xb19')]||this[_0x3c81be('0x25af')]['$submitted']));},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x20b4')]=function(_0x1cc312,_0x337a36){var _0x4fb84b=_0x43beab;return''===_0x1cc312||this[_0x4fb84b('0x2781')]['isValidDate'](_0x337a36)&&this[_0x4fb84b('0x34b1')]['isDateComplete'](_0x1cc312)&&this[_0x4fb84b('0x791')](_0x337a36);},_0x4194b0['prototype'][_0x43beab('0x28aa')]=function(){var _0x1c8910=_0x43beab;this[_0x1c8910('0x2af3')][_0x1c8910('0xc04')]['remove'](_0x5b8db5),[_0x1c8910('0x754'),_0x1c8910('0x711'),'filtered',_0x1c8910('0x3852')]['forEach'](function(_0x372175){var _0x397138=_0x1c8910;this['ngModelCtrl'][_0x397138('0x1ea7')](_0x372175,!0x0);},this);},_0x4194b0[_0x43beab('0x5a')]['resizeInputElement']=function(){var _0x3a7d78=_0x43beab;this['inputElement'][_0x3a7d78('0x399e')]=this['inputElement'][_0x3a7d78('0x248e')][_0x3a7d78('0x175a')]+0x3;},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x15d3')]=function(){var _0x450fa2=_0x43beab,_0x2ef2e0=this[_0x450fa2('0xdb')][_0x450fa2('0x248e')],_0x196f28=_0x2ef2e0?this[_0x450fa2('0x34b1')]['parseDate'](_0x2ef2e0):null;this[_0x450fa2('0x2781')][_0x450fa2('0x1fc')](_0x196f28),this['isInputValid'](_0x2ef2e0,_0x196f28)&&(this[_0x450fa2('0x747')](_0x196f28),this[_0x450fa2('0x1408')]=_0x196f28),this[_0x450fa2('0x2b41')](_0x196f28);},_0x4194b0[_0x43beab('0x5a')]['isDateEnabled']=function(_0x3677fc){var _0x439e69=_0x43beab;return this[_0x439e69('0x2781')][_0x439e69('0x337d')](_0x3677fc,this[_0x439e69('0x219b')],this['maxDate'])&&(!_0x4a272c[_0x439e69('0x1e34')](this[_0x439e69('0x365d')])||this['dateFilter'](_0x3677fc))&&(!_0x4a272c[_0x439e69('0x1e34')](this['monthFilter'])||this[_0x439e69('0x3683')](_0x3677fc));},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x22db')]=function(){var _0x1e2f43=_0x43beab,_0x45dea2=this[_0x1e2f43('0x7f6')],_0x1c29a6=document[_0x1e2f43('0x3742')];_0x45dea2[_0x1e2f43('0x14b6')][_0x1e2f43('0x1796')]='',this[_0x1e2f43('0x34d6')]['addClass'](_0x55f433),this['mdInputContainer']&&this[_0x1e2f43('0x1606')][_0x1e2f43('0x88a')][_0x1e2f43('0x2dc8')](_0x55f433),_0x4a272c[_0x1e2f43('0x88a')](_0x1c29a6)[_0x1e2f43('0x2dc8')](_0x1e2f43('0x29dd'));var _0x86b787=this[_0x1e2f43('0x2af3')]['getBoundingClientRect'](),_0x2e159c=_0x1c29a6[_0x1e2f43('0x2748')]();(!this[_0x1e2f43('0x377e')]||this[_0x1e2f43('0x377e')]<0x0)&&(this[_0x1e2f43('0x377e')]=(this[_0x1e2f43('0x319d')]['parent']()[_0x1e2f43('0x18f6')](_0x1e2f43('0x22e7'))-this[_0x1e2f43('0x2073')]['prop'](_0x1e2f43('0x22e7')))/0x2);var _0x13ae96=_0x86b787['top']-_0x2e159c[_0x1e2f43('0x361a')]-this[_0x1e2f43('0x377e')],_0x17f911=_0x86b787['left']-_0x2e159c[_0x1e2f43('0x1d75')]-this[_0x1e2f43('0x583')],_0x4175a7=_0x2e159c[_0x1e2f43('0x361a')]<0x0&&0x0===document[_0x1e2f43('0x3742')][_0x1e2f43('0x1fd3')]?-_0x2e159c[_0x1e2f43('0x361a')]:document[_0x1e2f43('0x3742')][_0x1e2f43('0x1fd3')],_0x437d3e=_0x2e159c['left']<0x0&&0x0===document[_0x1e2f43('0x3742')][_0x1e2f43('0x180e')]?-_0x2e159c[_0x1e2f43('0x1d75')]:document[_0x1e2f43('0x3742')][_0x1e2f43('0x180e')],_0x1d2df6=_0x4175a7+this[_0x1e2f43('0x398e')][_0x1e2f43('0x156c')],_0x1df7e9=_0x437d3e+this['$window'][_0x1e2f43('0x389c')];if(this['inputMask']['css']({'position':_0x1e2f43('0x23b'),'left':this[_0x1e2f43('0x583')]+'px','top':this['topMargin']+'px','width':_0x86b787[_0x1e2f43('0x2bac')]-0x1+'px','height':_0x86b787[_0x1e2f43('0x28c')]-0x2+'px'}),_0x17f911+_0x3d374b>_0x1df7e9){if(_0x1df7e9-_0x3d374b>0x0)_0x17f911=_0x1df7e9-_0x3d374b;else{_0x17f911=_0x437d3e;var _0x1dd648=this[_0x1e2f43('0x398e')][_0x1e2f43('0x389c')]/_0x3d374b;_0x45dea2[_0x1e2f43('0x14b6')]['transform']=_0x1e2f43('0x2be3')+_0x1dd648+')';}_0x45dea2[_0x1e2f43('0xc04')]['add'](_0x1e2f43('0xeee'));}_0x13ae96+0x170>_0x1d2df6&&_0x1d2df6-0x170>_0x4175a7&&(_0x13ae96=_0x1d2df6-0x170,_0x45dea2[_0x1e2f43('0xc04')]['add'](_0x1e2f43('0xeee'))),_0x45dea2['style'][_0x1e2f43('0x1d75')]=_0x17f911+'px',_0x45dea2[_0x1e2f43('0x14b6')]['top']=_0x13ae96+'px',document[_0x1e2f43('0x3742')][_0x1e2f43('0x37f2')](_0x45dea2),this[_0x1e2f43('0x3490')](function(){var _0x5fbde9=_0x1e2f43;_0x45dea2['classList']['add'](_0x5fbde9('0x20cb'));});},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x86c')]=function(){var _0x47f141=_0x43beab;this['$element']['removeClass'](_0x55f433),this[_0x47f141('0x1606')]&&this[_0x47f141('0x1606')][_0x47f141('0x88a')][_0x47f141('0x3a0')](_0x55f433),_0x4a272c[_0x47f141('0x88a')](document[_0x47f141('0x3742')])[_0x47f141('0x3a0')]('md-datepicker-is-showing'),this['calendarPane']['classList']['remove'](_0x47f141('0x20cb')),this['calendarPane'][_0x47f141('0xc04')]['remove'](_0x47f141('0xeee')),this[_0x47f141('0x1f83')]&&this[_0x47f141('0x2e27')][_0x47f141('0xd69')](),this[_0x47f141('0x7f6')]['parentNode']&&this[_0x47f141('0x7f6')][_0x47f141('0x1378')][_0x47f141('0x37e1')](this[_0x47f141('0x7f6')]);},_0x4194b0['prototype'][_0x43beab('0x1044')]=function(_0x400ab3){var _0x5cf11d=_0x43beab;if(this[_0x5cf11d('0x1f83')]||this[_0x5cf11d('0x3946')]||this[_0x5cf11d('0x2a3b')])this['inputFocusedOnWindowBlur']&&this['resetInputFocused']();else{this[_0x5cf11d('0x1f83')]=this['isOpen']=!0x0,this[_0x5cf11d('0x3445')]=_0x400ab3[_0x5cf11d('0x312f')],this[_0x5cf11d('0x2e27')][_0x5cf11d('0x10b3')](this[_0x5cf11d('0x7f6')]),this['attachCalendarPane'](),this[_0x5cf11d('0x39c1')](),this[_0x5cf11d('0x9a2')](_0x5cf11d('0x16ac'));var _0x3f9a2c=this;this['$mdUtil']['nextTick'](function(){var _0x146a09=_0x5cf11d;_0x3f9a2c['documentElement']['on'](_0x146a09('0x1bfd'),_0x3f9a2c[_0x146a09('0xe14')]);},!0x1),_0x49f10c['addEventListener'](this[_0x5cf11d('0x2324')],this[_0x5cf11d('0x209f')]);}},_0x4194b0['prototype'][_0x43beab('0x2a1a')]=function(){var _0x583242=_0x43beab;if(this[_0x583242('0x1f83')]){var _0x470b4b=this;_0x470b4b['detachCalendarPane'](),_0x470b4b[_0x583242('0x25af')]['$setTouched'](),_0x470b4b[_0x583242('0x9a2')](_0x583242('0xf5e')),_0x470b4b[_0x583242('0x207a')][_0x583242('0x1202')]('click\x20touchstart',_0x470b4b['bodyClickHandler']),_0x49f10c['removeEventListener'](_0x470b4b[_0x583242('0x2324')],_0x470b4b[_0x583242('0x209f')]),_0x470b4b[_0x583242('0x3445')]['focus'](),_0x470b4b[_0x583242('0x3445')]=null,_0x470b4b[_0x583242('0x3860')]?_0x470b4b['$timeout'](_0x15329d):_0x15329d();}function _0x15329d(){var _0x4b3e80=_0x583242;_0x470b4b[_0x4b3e80('0x1f83')]=_0x470b4b[_0x4b3e80('0x365c')]=!0x1;}},_0x4194b0['prototype'][_0x43beab('0x306a')]=function(){var _0x37299c=_0x43beab;return _0x4a272c[_0x37299c('0x88a')](this[_0x37299c('0x7f6')][_0x37299c('0x2cee')](_0x37299c('0xd9e')))['controller'](_0x37299c('0x2074'));},_0x4194b0['prototype'][_0x43beab('0x39c1')]=function(){var _0x10d280=_0x43beab,_0x27d7dd=this;this[_0x10d280('0x2e27')][_0x10d280('0x2baa')](function(){var _0xc9697b=_0x10d280;_0x27d7dd[_0xc9697b('0x306a')]()[_0xc9697b('0x369')]();},!0x1);},_0x4194b0[_0x43beab('0x5a')]['setFocused']=function(_0x2b677d){var _0x2071ae=_0x43beab;_0x2b677d||this[_0x2071ae('0x25af')][_0x2071ae('0xf87')](),this[_0x2071ae('0x3860')]||this['evalAttr'](_0x2b677d?'ngFocus':'ngBlur'),this['isFocused']=_0x2b677d;},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x2016')]=function(_0x59848e){var _0x346af2=_0x43beab;this[_0x346af2('0x1f83')]&&(this[_0x346af2('0x2e27')]['getClosest'](_0x59848e['target'],_0x346af2('0xd9e'))||this[_0x346af2('0x2a1a')](),this[_0x346af2('0x1868')][_0x346af2('0x3964')]());},_0x4194b0['prototype'][_0x43beab('0x22f2')]=function(){var _0xe825b7=_0x43beab;this[_0xe825b7('0x2a3b')]=document[_0xe825b7('0x2de7')]===this[_0xe825b7('0xdb')];},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x259e')]=function(){var _0x585ab0=_0x43beab;this[_0x585ab0('0x2a3b')]=!0x1;},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x9a2')]=function(_0x21cd05){var _0x399575=_0x43beab;this['$attrs'][_0x21cd05]&&this[_0x399575('0x1868')]['$parent'][_0x399575('0x1951')](this[_0x399575('0xa7b')][_0x21cd05]);},_0x4194b0['prototype'][_0x43beab('0x747')]=function(_0x20debf){var _0x32ba5c=_0x43beab,_0x2f5ac9=this[_0x32ba5c('0x2e27')]['getModelOption'](this['ngModelCtrl'],_0x32ba5c('0x13e9'));null==_0x2f5ac9||_0x20debf[_0x32ba5c('0x22c3')]()<0x0?this[_0x32ba5c('0x25af')][_0x32ba5c('0x194a')](this[_0x32ba5c('0x219c')](_0x20debf,'yyyy-MM-dd'),_0x32ba5c('0x3326')):this[_0x32ba5c('0x25af')][_0x32ba5c('0x194a')](this[_0x32ba5c('0x219c')](_0x20debf,'yyyy-MM-dd',_0x2f5ac9),_0x32ba5c('0x3326'));},_0x4194b0[_0x43beab('0x5a')][_0x43beab('0x2b76')]=function(_0x4a06ef){var _0x3eed4a=_0x43beab,_0x383add=this,_0x590dad=this[_0x3eed4a('0x2e27')][_0x3eed4a('0x38d')](this[_0x3eed4a('0x25af')],_0x3eed4a('0x13e9'));this[_0x3eed4a('0x2781')]['isValidDate'](_0x4a06ef)&&null!=_0x590dad&&_0x4a06ef[_0x3eed4a('0x22c3')]()>=0x0?this['date']=this[_0x3eed4a('0x2781')][_0x3eed4a('0x176d')](_0x4a06ef):this[_0x3eed4a('0x1408')]=_0x4a06ef,null==_0x590dad||_0x4a06ef[_0x3eed4a('0x22c3')]()<0x0?this[_0x3eed4a('0xdb')][_0x3eed4a('0x248e')]=this[_0x3eed4a('0x34b1')][_0x3eed4a('0x158e')](_0x4a06ef):this[_0x3eed4a('0xdb')]['value']=this[_0x3eed4a('0x34b1')]['formatDate'](_0x4a06ef,_0x590dad),this[_0x3eed4a('0x1606')]&&this[_0x3eed4a('0x1606')][_0x3eed4a('0x3754')](!!_0x4a06ef),this['resizeInputElement'](),this['$mdUtil'][_0x3eed4a('0x2baa')](function(){_0x383add['updateErrorState']();},!0x1,_0x383add['$scope']);};}(),function(){var _0x21e20d=_0x1fb7d4;function _0x440c41(_0x417d7a,_0x4baad3,_0xb479b){return{'restrict':'E','link':function(_0x4308a8,_0x24af0a){var _0x2d0d20=a2_0x4bfe;_0x24af0a[_0x2d0d20('0x2dc8')]('_md'),_0x4baad3(_0x24af0a),_0x417d7a(function(){var _0x720882=_0x2d0d20,_0x50add2,_0x4f2d6e=_0x24af0a[0x0][_0x720882('0x2cee')]('md-dialog-content');function _0x2fcca1(){var _0x1dd062=_0x720882;_0x24af0a[_0x1dd062('0x2af2')](_0x1dd062('0x2465'),_0x4f2d6e[_0x1dd062('0x13fc')]>_0x4f2d6e[_0x1dd062('0x22e7')]);}_0x4f2d6e&&(_0x50add2=_0x4f2d6e[_0x720882('0x2a37')](_0x720882('0x1220')),_0x2fcca1(),_0x4a272c['element'](_0x50add2)['on']('load',_0x2fcca1)),_0x4308a8[_0x720882('0x1db8')](_0x720882('0x2f34'),function(){var _0x4642f8=_0x720882;_0xb479b[_0x4642f8('0x2cdb')](_0x24af0a);});});}};}function _0x982ea1(_0x565f81){var _0x437b1a=a2_0x4bfe,_0x1aead5,_0x2e4a61;return _0x37a073['$inject']=[_0x437b1a('0x403'),_0x437b1a('0x35b')],_0x4ac200['$inject']=[_0x437b1a('0x403'),_0x437b1a('0x1a2f'),_0x437b1a('0x2e27'),_0x437b1a('0x35b'),_0x437b1a('0x2a64'),_0x437b1a('0x151'),_0x437b1a('0x398e'),_0x437b1a('0x245c'),'$log',_0x437b1a('0x345b'),_0x437b1a('0x2e8e'),'$interpolate',_0x437b1a('0xce4')],_0x565f81(_0x437b1a('0x403'))[_0x437b1a('0x153e')]({'methods':[_0x437b1a('0x94b'),_0x437b1a('0x3610'),'clickOutsideToClose',_0x437b1a('0x33ac'),_0x437b1a('0x2b70'),_0x437b1a('0x26e0'),_0x437b1a('0x269c'),_0x437b1a('0x38bb'),_0x437b1a('0x1ff4'),_0x437b1a('0x30cc')],'options':_0x4ac200})['addPreset'](_0x437b1a('0x128'),{'methods':[_0x437b1a('0x2595'),_0x437b1a('0x136a'),_0x437b1a('0x2c5f'),_0x437b1a('0x3a3'),_0x437b1a('0x36c8'),'ok','theme',_0x437b1a('0x30a3')],'options':_0x4b1359})['addPreset'](_0x437b1a('0x2d98'),{'methods':[_0x437b1a('0x2595'),'htmlContent',_0x437b1a('0x2c5f'),'content',_0x437b1a('0x36c8'),'ok','cancel',_0x437b1a('0x1b7f'),_0x437b1a('0x30a3')],'options':_0x4b1359})[_0x437b1a('0x2568')]('prompt',{'methods':[_0x437b1a('0x2595'),_0x437b1a('0x136a'),_0x437b1a('0x2c5f'),'initialValue',_0x437b1a('0x3a3'),_0x437b1a('0x162f'),'ariaLabel','ok',_0x437b1a('0x31ce'),_0x437b1a('0x1b7f'),_0x437b1a('0x30a3'),_0x437b1a('0x20d0')],'options':_0x4b1359});function _0x4b1359(){var _0x4fd673=_0x437b1a;return{'template':['',_0x4fd673('0x2750'),'\x20\x20\x20\x20{{\x20dialog.title\x20}}',_0x4fd673('0x21fb'),_0x4fd673('0x16d7'),_0x4fd673('0xb2e'),_0x4fd673('0x1a75'),_0x4fd673('0x27c8'),_0x4fd673('0x19c0'),_0x4fd673('0x47d'),_0x4fd673('0x3916'),_0x4fd673('0x165a'),'\x20\x20',_0x4fd673('0x6dd'),'\x20\x20\x20\x20\x20\x20{{\x20dialog.cancel\x20}}','\x20\x20\x20\x20',_0x4fd673('0x2ee0'),_0x4fd673('0x1ad7'),_0x4fd673('0x2581'),'\x20\x20',_0x4fd673('0x1f18')][_0x4fd673('0x6a8')]('')[_0x4fd673('0x34c8')](/\s\s+/g,''),'controller':_0x37a073,'controllerAs':_0x4fd673('0xb96'),'bindToController':!0x0};}function _0x37a073(_0x4e50bd,_0x1f3030){var _0x3c64b6=_0x437b1a;this[_0x3c64b6('0x3825')]=function(){var _0x20558e=_0x3c64b6,_0x51af85=_0x20558e('0x1605')==this[_0x20558e('0x3b4')];_0x51af85&&this['initialValue']&&(this[_0x20558e('0xf8c')]=this[_0x20558e('0xd95')]),this[_0x20558e('0xf26')]=function(){var _0x69fd83=_0x20558e;_0x4e50bd[_0x69fd83('0xf26')](!_0x51af85||this[_0x69fd83('0xf8c')]);},this[_0x20558e('0x9ee')]=function(){var _0x2f668f=_0x20558e;_0x4e50bd[_0x2f668f('0x31ce')]();},this['keypress']=function(_0x329e25){var _0x538b68=_0x20558e,_0x1116b1=_0x51af85&&this[_0x538b68('0x20d0')]&&!_0x4a272c[_0x538b68('0x392d')](this[_0x538b68('0xf8c')]);_0x329e25[_0x538b68('0x1f8c')]!==_0x1f3030[_0x538b68('0xaca')]['ENTER']||_0x1116b1||_0x4e50bd[_0x538b68('0xf26')](this['result']);};};}function _0x4ac200(_0x298abb,_0xf0db14,_0x1e79e7,_0x37f41b,_0x4ff5d1,_0x5b6078,_0xbd6168,_0x57dfa5,_0x3105bc,_0x260469,_0x500f86,_0x30e430,_0x4a1045){return{'hasBackdrop':!0x0,'isolateScope':!0x0,'onCompiling':function(_0x51ef41){var _0x1352b1=a2_0x4bfe;_0x51ef41[_0x1352b1('0x215b')]=_0x500f86[_0x1352b1('0x215b')](),function(_0x3677e6){var _0x46a830=_0x1352b1,_0x46c7d5;_0x3677e6[_0x46a830('0x2b70')]&&_0x3677e6[_0x46a830('0x2b70')][_0x46a830('0x312f')]&&(_0x46c7d5=_0x4a272c[_0x46a830('0x88a')](_0x3677e6[_0x46a830('0x2b70')][_0x46a830('0x312f')]));var _0x54ee6b=_0x46c7d5&&_0x46c7d5[_0x46a830('0x19f6')](_0x46a830('0x25b6'));if(_0x3677e6[_0x46a830('0x1598')]=!!_0x54ee6b,!_0x3677e6[_0x46a830('0x1598')])return;_0x3677e6[_0x46a830('0xa0b')]=_0x54ee6b['$shouldWatch'];var _0x5d3eb=_0x3677e6[_0x46a830('0x1b7f')]||_0x54ee6b['$mdTheme'];_0x5d3eb&&(_0x3677e6[_0x46a830('0x1789')][_0x46a830('0x1b7f')]=_0x5d3eb);var _0x518adc=_0x54ee6b[_0x46a830('0x121')](function(_0x33a7e4){var _0x5c025f=_0x46a830;_0x3677e6[_0x5c025f('0x1789')][_0x5c025f('0x1b7f')]=_0x33a7e4,_0x3677e6[_0x5c025f('0xa0b')]||_0x518adc();});}(_0x51ef41);},'onShow':function(_0xdfcb7e,_0x2589e9,_0x7e99be,_0x1afdfe){var _0x37003c=a2_0x4bfe;_0x4a272c['element'](_0x5b6078[0x0][_0x37003c('0x3742')])[_0x37003c('0x2dc8')](_0x37003c('0x2f11'));var _0x41a4e8=_0x2589e9[_0x37003c('0x16fd')]('md-dialog');return _0x41a4e8[_0x37003c('0x522')]('ng-cloak')&&_0x3105bc['warn']('$mdDialog:\x20using\x20``\x20will\x20affect\x20the\x20dialog\x20opening\x20animations.',_0x2589e9[0x0]),(_0x42b399(_0x7e99be),_0x128311(_0x41a4e8,_0x7e99be),_0x3bc18e(_0xdfcb7e,_0x2589e9,_0x7e99be),_0xfc69b0(_0x2589e9,_0x7e99be),_0x196c09(_0x2589e9,_0x7e99be)[_0x37003c('0x26b5')](function(){var _0x4add47=_0x37003c;!function(_0x1dc55a,_0xca5d15){var _0x550949=!0x0;function _0x55d5d7(_0x331483){var _0x36da87=a2_0x4bfe;for(var _0x526ae2=[];_0x331483[_0x36da87('0x1378')];){if(_0x331483===document[_0x36da87('0x3742')])return _0x526ae2;for(var _0x2cf781=_0x331483[_0x36da87('0x1378')][_0x36da87('0xfc0')],_0x1b8441=0x0;_0x1b8441<_0x2cf781[_0x36da87('0x175a')];_0x1b8441++)_0x331483===_0x2cf781[_0x1b8441]||_0x2f8314(_0x2cf781[_0x1b8441],[_0x36da87('0x1699'),_0x36da87('0x2c93')])||_0x2cf781[_0x1b8441]['hasAttribute']('aria-live')||_0x526ae2[_0x36da87('0x1a90')](_0x2cf781[_0x1b8441]);_0x331483=_0x331483[_0x36da87('0x1378')];}return _0x526ae2;}function _0x14cff3(_0x46ad2e){var _0x1eadb7=a2_0x4bfe;for(var _0x31eeed=_0x55d5d7(_0x46ad2e),_0x2c3afa=0x0;_0x2c3afa<_0x31eeed[_0x1eadb7('0x175a')];_0x2c3afa++)_0x31eeed[_0x2c3afa][_0x1eadb7('0xb10')](_0x1eadb7('0x384b'),_0x550949);}_0x14cff3(_0x1dc55a[0x0]),_0xca5d15['unlockScreenReader']=function(){var _0x1946b6=a2_0x4bfe;_0x550949=!0x1,_0x14cff3(_0x1dc55a[0x0]),_0xca5d15[_0x1946b6('0x429')]=null;};}(_0x2589e9,_0x7e99be),_0x2589e9[0x0]['querySelector']('.md-actions')&&_0x3105bc[_0x4add47('0x8fa')](_0x4add47('0x35f1')),function(){var _0x4cd8bb=_0x4add47;_0x7e99be[_0x4cd8bb('0x2b60')]&&(_0x1e79e7['findFocusTarget'](_0x2589e9)||_0x237363()||_0x41a4e8)[_0x4cd8bb('0x1c34')]();function _0x237363(){var _0x30c3c7=_0x4cd8bb;return _0x2589e9[0x0]['querySelector'](_0x30c3c7('0x1bd'));}}();}));},'onShowing':function(_0x5f4165,_0x3be843,_0x2d323e,_0x3e112a){var _0x5c1cf3=a2_0x4bfe;if(_0x3e112a){var _0x1a441=_0x3e112a[_0x5c1cf3('0x136a')]||_0x2d323e['htmlContent']||'',_0x7e0138=_0x3e112a[_0x5c1cf3('0x2c5f')]||_0x2d323e[_0x5c1cf3('0x2c5f')]||_0x3e112a['content']||_0x2d323e[_0x5c1cf3('0x3a3')]||'';if(_0x1a441&&!_0x260469[_0x5c1cf3('0x728')](_0x5c1cf3('0xffa')))throw Error(_0x5c1cf3('0xd44'));if(_0x1a441&&_0x7e0138)throw Error(_0x5c1cf3('0x2508'));_0x3e112a[_0x5c1cf3('0x1660')]=_0x1a441,_0x3e112a[_0x5c1cf3('0x2771')]=_0x7e0138;}},'onRemove':function(_0x9cc37a,_0x48ebc3,_0xee27c){var _0x4bc9bd=a2_0x4bfe;_0xee27c[_0x4bc9bd('0x152d')](),_0xee27c[_0x4bc9bd('0x429')](),_0xee27c['hideBackdrop'](_0xee27c[_0x4bc9bd('0x2f34')]),_0x1aead5&&_0x1aead5['parentNode']&&_0x1aead5['parentNode'][_0x4bc9bd('0x37e1')](_0x1aead5),_0x2e4a61&&_0x2e4a61[_0x4bc9bd('0x1378')]&&_0x2e4a61[_0x4bc9bd('0x1378')][_0x4bc9bd('0x37e1')](_0x2e4a61);return _0xee27c[_0x4bc9bd('0x2f34')]?_0x5223c3():function(_0x571f05,_0x2a495e){var _0x1e7ceb=_0x4bc9bd;return _0x2a495e[_0x1e7ceb('0x1f0d')]()['then'](function(){var _0x4d97b9=_0x1e7ceb;_0x2a495e[_0x4d97b9('0x3608')]&&_0x2a495e[_0x4d97b9('0x2a5f')]();});}(0x0,_0xee27c)[_0x4bc9bd('0x26b5')](_0x5223c3);function _0x5223c3(){var _0x158dcc=_0x4bc9bd;_0x4a272c[_0x158dcc('0x88a')](_0x5b6078[0x0][_0x158dcc('0x3742')])[_0x158dcc('0x3a0')](_0x158dcc('0x2f11')),_0xee27c[_0x158dcc('0x3608')]&&_0xee27c[_0x158dcc('0x320b')](),_0xee27c[_0x158dcc('0x10b2')](),_0xee27c[_0x158dcc('0x2f34')]||_0x158dcc('0x2c2c')!==_0xee27c[_0x158dcc('0x2b62')]||_0xee27c[_0x158dcc('0x262a')][_0x158dcc('0x1c34')]();}},'clickOutsideToClose':!0x1,'escapeToClose':!0x0,'targetEvent':null,'closeTo':null,'openFrom':null,'focusOnOpen':!0x0,'disableParentScroll':!0x0,'autoWrap':!0x0,'fullscreen':!0x1,'transformTemplate':function(_0x3cec4e,_0xff62dc){var _0x12dace=a2_0x4bfe,_0x29dac8=_0x30e430[_0x12dace('0x298')](),_0x5b0fad=_0x30e430[_0x12dace('0xa5d')](),_0x3dd43c=_0x29dac8+(_0xff62dc[_0x12dace('0xa0b')]?'':'::')+_0x12dace('0x1b7f')+_0x5b0fad;return''+function(_0x22572e){var _0x5003de=_0x12dace;return _0xff62dc[_0x5003de('0x2f48')]&&!/<\/md-dialog>/g['test'](_0x22572e)?_0x5003de('0xf4d')+(_0x22572e||'')+_0x5003de('0x1f18'):_0x22572e||'';}(_0x3cec4e)+_0x12dace('0x2b38');}};function _0x42b399(_0x2eef12){var _0x5ef0a5=a2_0x4bfe;function _0x2b5eb6(_0x23d8d1,_0x50496e){var _0x50106c=a2_0x4bfe,_0x10a8eb=_0x4a272c[_0x50106c('0x88a')](_0x23d8d1||{});if(_0x10a8eb&&_0x10a8eb[_0x50106c('0x175a')]){var _0x29861b=_0x4a272c[_0x50106c('0x1e34')](_0x10a8eb[0x0][_0x50106c('0x2748')]);return _0x4a272c[_0x50106c('0x237f')](_0x50496e||{},{'element':_0x29861b?_0x10a8eb:_0x6373f5,'bounds':_0x29861b?_0x10a8eb[0x0][_0x50106c('0x2748')]():_0x4a272c[_0x50106c('0x237f')]({},{'top':0x0,'left':0x0,'height':0x0,'width':0x0},_0x10a8eb[0x0]),'focus':_0x4a272c['bind'](_0x10a8eb,_0x10a8eb[_0x50106c('0x1c34')])});}}function _0x434458(_0x44aedb,_0x1b1d25){var _0x3aeaf5=a2_0x4bfe;return _0x4a272c[_0x3aeaf5('0x392')](_0x44aedb)&&(_0x44aedb=_0x5b6078[0x0]['querySelector'](_0x44aedb)),_0x4a272c[_0x3aeaf5('0x88a')](_0x44aedb||_0x1b1d25);}_0x2eef12['origin']=_0x4a272c[_0x5ef0a5('0x237f')]({'element':null,'bounds':null,'focus':_0x4a272c[_0x5ef0a5('0x2374')]},_0x2eef12['origin']||{}),_0x2eef12[_0x5ef0a5('0x38bb')]=_0x434458(_0x2eef12[_0x5ef0a5('0x38bb')],_0x57dfa5),_0x2eef12[_0x5ef0a5('0x26e0')]=_0x2b5eb6(_0x434458(_0x2eef12[_0x5ef0a5('0x26e0')])),_0x2eef12[_0x5ef0a5('0x269c')]=_0x2b5eb6(_0x434458(_0x2eef12['openFrom'])),_0x2eef12[_0x5ef0a5('0x2b70')]&&(_0x2eef12[_0x5ef0a5('0x262a')]=_0x2b5eb6(_0x2eef12[_0x5ef0a5('0x2b70')][_0x5ef0a5('0x312f')],_0x2eef12['origin']),_0x2eef12[_0x5ef0a5('0x2b62')]=_0x4a1045['getLastInteractionType']());}function _0xfc69b0(_0x35f85a,_0x5c266e){var _0x48c5f4=a2_0x4bfe,_0x28fa8e=_0x4a272c[_0x48c5f4('0x88a')](_0xbd6168),_0x353d3c=_0x1e79e7[_0x48c5f4('0x24cd')](function(){_0x56aa6a(_0x35f85a,_0x5c266e);},0x3c),_0x46e825=[],_0x125484=function(){var _0x59d91c=_0x48c5f4,_0x8947d1='alert'==_0x5c266e['$type']?_0x298abb[_0x59d91c('0xf26')]:_0x298abb[_0x59d91c('0x31ce')];_0x1e79e7[_0x59d91c('0x2baa')](_0x8947d1,!0x0);};if(_0x5c266e[_0x48c5f4('0x33ac')]){var _0x24b623=_0x5c266e[_0x48c5f4('0x38bb')],_0x5c9735=function(_0x1430b3){var _0x487011=_0x48c5f4;_0x1430b3[_0x487011('0x1f8c')]===_0x37f41b[_0x487011('0xaca')]['ESCAPE']&&(_0x1430b3[_0x487011('0xf69')](),_0x1430b3[_0x487011('0x1f1a')](),_0x125484());};_0x35f85a['on'](_0x48c5f4('0xf04'),_0x5c9735),_0x24b623['on'](_0x48c5f4('0xf04'),_0x5c9735),_0x46e825[_0x48c5f4('0x1a90')](function(){var _0x1d177e=_0x48c5f4;_0x35f85a[_0x1d177e('0x1202')](_0x1d177e('0xf04'),_0x5c9735),_0x24b623[_0x1d177e('0x1202')]('keydown',_0x5c9735);});}if(_0x28fa8e['on'](_0x48c5f4('0x32b7'),_0x353d3c),_0x46e825['push'](function(){var _0x504f13=_0x48c5f4;_0x28fa8e[_0x504f13('0x1202')](_0x504f13('0x32b7'),_0x353d3c);}),_0x5c266e[_0x48c5f4('0x1d3c')]){var _0x467cd3,_0x56bc69=_0x35f85a,_0xe027dd=function(_0x10ac0c){var _0x26a6b7=_0x48c5f4;_0x467cd3=_0x10ac0c[_0x26a6b7('0x312f')];},_0x2c995d=function(_0x530bea){var _0xf80ff9=_0x48c5f4;_0x467cd3===_0x56bc69[0x0]&&_0x530bea['target']===_0x56bc69[0x0]&&(_0x530bea[_0xf80ff9('0x16c5')](),_0x530bea['preventDefault'](),_0x125484());};_0x56bc69['on']('mousedown',_0xe027dd),_0x56bc69['on']('mouseup',_0x2c995d),_0x46e825[_0x48c5f4('0x1a90')](function(){var _0x230c9f=_0x48c5f4;_0x56bc69[_0x230c9f('0x1202')](_0x230c9f('0x15e3'),_0xe027dd),_0x56bc69['off'](_0x230c9f('0x3588'),_0x2c995d);});}_0x5c266e[_0x48c5f4('0x152d')]=function(){_0x46e825['forEach'](function(_0x1997c0){_0x1997c0();}),_0x5c266e['deactivateListeners']=null;};}function _0x3bc18e(_0x2279a8,_0x164a21,_0x522bbf){var _0x6583d5=a2_0x4bfe;_0x522bbf[_0x6583d5('0x94b')]&&(_0x522bbf['restoreScroll']=_0x1e79e7[_0x6583d5('0x10b3')](_0x164a21,_0x522bbf[_0x6583d5('0x38bb')])),_0x522bbf['hasBackdrop']&&(_0x522bbf[_0x6583d5('0x2e90')]=_0x1e79e7['createBackdrop'](_0x2279a8,_0x6583d5('0x108c')),_0x4ff5d1[_0x6583d5('0xa0a')](_0x522bbf[_0x6583d5('0x2e90')],_0x522bbf[_0x6583d5('0x38bb')])),_0x522bbf[_0x6583d5('0x95a')]=function(_0x36fc0d){var _0x5c029e=_0x6583d5;_0x522bbf[_0x5c029e('0x2e90')]&&(_0x36fc0d?_0x522bbf[_0x5c029e('0x2e90')][_0x5c029e('0x2371')]():_0x4ff5d1[_0x5c029e('0x376c')](_0x522bbf[_0x5c029e('0x2e90')])),_0x522bbf[_0x5c029e('0x94b')]&&(_0x522bbf[_0x5c029e('0x2435')]&&_0x522bbf[_0x5c029e('0x2435')](),delete _0x522bbf['restoreScroll']),_0x522bbf[_0x5c029e('0x95a')]=null;};}function _0x128311(_0x2ad229,_0x3d99ee){var _0x371c00=a2_0x4bfe,_0xc498f0=_0x371c00('0x128')===_0x3d99ee['$type']?'alertdialog':_0x371c00('0xb96'),_0x236da1=_0x2ad229[_0x371c00('0x16fd')](_0x371c00('0x1d17')),_0x1ac1a6=_0x2ad229[_0x371c00('0x1e52')]('id'),_0x147dca=_0x371c00('0x1ec0')+(_0x1ac1a6||_0x1e79e7[_0x371c00('0x2801')]());_0x2ad229[_0x371c00('0x1e52')]({'role':_0xc498f0,'tabIndex':'-1'}),0x0===_0x236da1[_0x371c00('0x175a')]&&(_0x236da1=_0x2ad229,_0x1ac1a6&&(_0x147dca=_0x1ac1a6)),_0x236da1[_0x371c00('0x1e52')]('id',_0x147dca),_0x2ad229[_0x371c00('0x1e52')](_0x371c00('0x3706'),_0x147dca),_0x3d99ee[_0x371c00('0x36c8')]?_0xf0db14[_0x371c00('0x1c4d')](_0x2ad229,_0x371c00('0x15da'),_0x3d99ee['ariaLabel']):_0xf0db14[_0x371c00('0x3658')](_0x2ad229,_0x371c00('0x15da'),function(){var _0x227eb1=_0x371c00;if(_0x3d99ee[_0x227eb1('0x2595')])return _0x3d99ee[_0x227eb1('0x2595')];var _0x55bc89=_0x236da1[_0x227eb1('0xc7a')]()[_0x227eb1('0x23ee')](/\s+/);return _0x55bc89[_0x227eb1('0x175a')]>0x3&&(_0x55bc89=_0x55bc89[_0x227eb1('0x2c0a')](0x0,0x3)[_0x227eb1('0x12b4')](_0x227eb1('0x1997'))),_0x55bc89[_0x227eb1('0x6a8')]('\x20');}),(_0x1aead5=document[_0x371c00('0x264c')](_0x371c00('0x1917')))[_0x371c00('0xc04')]['add'](_0x371c00('0x2d81')),_0x1aead5[_0x371c00('0x3645')]=0x0,_0x2e4a61=_0x1aead5[_0x371c00('0x6a7')](!0x1);var _0x336d5c=function(){var _0x4a50ab=_0x371c00;_0x2ad229[_0x4a50ab('0x1c34')]();};_0x1aead5[_0x371c00('0x2e05')]('focus',_0x336d5c),_0x2e4a61['addEventListener'](_0x371c00('0x1c34'),_0x336d5c),_0x2ad229[0x0][_0x371c00('0x1378')][_0x371c00('0x3de')](_0x1aead5,_0x2ad229[0x0]),_0x2ad229['after'](_0x2e4a61);}function _0x56aa6a(_0x565ddf,_0x2f05fa){var _0x57ee22=a2_0x4bfe,_0x4b9109=_0x57ee22('0x7d1')==_0xbd6168[_0x57ee22('0x2a5c')](_0x5b6078[0x0]['body'])[_0x57ee22('0x2fd5')],_0x1c2ec6=_0x2f05fa[_0x57ee22('0x2e90')]?_0xbd6168[_0x57ee22('0x2a5c')](_0x2f05fa['backdrop'][0x0]):null,_0x67bd75=_0x1c2ec6?Math[_0x57ee22('0x3230')](_0x5b6078[0x0]['body']['clientHeight'],Math[_0x57ee22('0x140a')](Math[_0x57ee22('0x1e6f')](parseInt(_0x1c2ec6[_0x57ee22('0x28c')],0xa)))):0x0,_0x52664b={'top':_0x565ddf[_0x57ee22('0x30a3')](_0x57ee22('0x361a')),'height':_0x565ddf[_0x57ee22('0x30a3')](_0x57ee22('0x28c'))},_0x5dc475=Math['abs'](_0x2f05fa[_0x57ee22('0x38bb')][0x0][_0x57ee22('0x2748')]()[_0x57ee22('0x361a')]);return _0x565ddf[_0x57ee22('0x30a3')]({'top':(_0x4b9109?_0x5dc475:0x0)+'px','height':_0x67bd75?_0x67bd75+'px':_0x57ee22('0x21e5')}),function(){var _0x222e9f=_0x57ee22;_0x565ddf[_0x222e9f('0x30a3')](_0x52664b);};}function _0x196c09(_0x2004d9,_0x2b9c38){var _0x40e8f0=a2_0x4bfe;_0x2b9c38[_0x40e8f0('0x38bb')][_0x40e8f0('0x10f')](_0x2004d9),_0x2b9c38['reverseContainerStretch']=_0x56aa6a(_0x2004d9,_0x2b9c38);var _0x1acc69=_0x2004d9['find']('md-dialog'),_0x1c630d=_0x1e79e7[_0x40e8f0('0x2561')][_0x40e8f0('0xbaa')],_0x8bf2a=_0x1c630d['calculateZoomToOrigin'],_0x2963c6={'transitionInClass':_0x40e8f0('0x2d53'),'transitionOutClass':_0x40e8f0('0x15a5')},_0x36132a=_0x1c630d[_0x40e8f0('0x1c59')](_0x8bf2a(_0x1acc69,_0x2b9c38[_0x40e8f0('0x269c')]||_0x2b9c38[_0x40e8f0('0x262a')])),_0x36d4ff=_0x1c630d['toTransformCss']('');return _0x1acc69[_0x40e8f0('0x2af2')](_0x40e8f0('0x3727'),!!_0x2b9c38['fullscreen']),_0x1c630d['translate3d'](_0x1acc69,_0x36132a,_0x36d4ff,_0x2963c6)[_0x40e8f0('0x26b5')](function(_0x2bcb4b){var _0xdfe582=_0x40e8f0;return _0x2b9c38[_0xdfe582('0x1f0d')]=function(){var _0x2efd27=_0xdfe582;return delete _0x2b9c38[_0x2efd27('0x1f0d')],_0x2b9c38[_0x2efd27('0x26e0')]?(_0x2963c6={'transitionInClass':_0x2efd27('0x15a5'),'transitionOutClass':_0x2efd27('0x2d53')},_0x36132a=_0x36d4ff,_0x36d4ff=_0x1c630d[_0x2efd27('0x1c59')](_0x8bf2a(_0x1acc69,_0x2b9c38[_0x2efd27('0x26e0')])),_0x1c630d['translate3d'](_0x1acc69,_0x36132a,_0x36d4ff,_0x2963c6)):_0x2bcb4b(_0x36d4ff=_0x1c630d[_0x2efd27('0x1c59')](_0x8bf2a(_0x1acc69,_0x2b9c38[_0x2efd27('0x262a')])));},_0x2b9c38[_0xdfe582('0x2a5f')]=function(){var _0x45ae80=_0xdfe582;return delete _0x2b9c38[_0x45ae80('0x2a5f')],_0x1acc69[_0x45ae80('0x3a0')]([_0x2963c6[_0x45ae80('0xa27')],_0x2963c6['transitionInClass']][_0x45ae80('0x6a8')]('\x20')),_0x1c630d['translate3d'](_0x1acc69,_0x36d4ff,_0x1c630d['toTransformCss'](''),{});},!0x0;});}function _0x2f8314(_0x46add5,_0x333404){var _0x5bd590=a2_0x4bfe;if(-0x1!==_0x333404[_0x5bd590('0xe1c')](_0x46add5['nodeName']))return!0x0;}}}_0x440c41['$inject']=[_0x21e20d('0x3490'),_0x21e20d('0x2e8e'),_0x21e20d('0x403')],_0x982ea1['$inject']=[_0x21e20d('0x3011')],_0x4a272c['module'](_0x21e20d('0x263c'),[_0x21e20d('0x113c'),_0x21e20d('0xe85')])['directive'](_0x21e20d('0x161c'),_0x440c41)[_0x21e20d('0x210d')]('$mdDialog',_0x982ea1);}(),function(){var _0xe27fbc=_0x1fb7d4;function _0x14ee75(_0x54aeae){return{'restrict':'E','link':_0x54aeae};}_0x14ee75[_0xe27fbc('0x28c9')]=['$mdTheming'],_0x4a272c[_0xe27fbc('0x122c')](_0xe27fbc('0x2fce'),[_0xe27fbc('0x113c')])[_0xe27fbc('0x1e30')](_0xe27fbc('0x2e76'),_0x14ee75);}(),function(){var _0x24f76d=_0x1fb7d4;function _0x17272a(_0xed8afa){var _0x687800=a2_0x4bfe;return{'restrict':'E','require':[_0x687800('0x2153'),'^?mdFabToolbar'],'compile':function(_0x1ed194,_0x204f82){var _0x5508de=_0x687800,_0x1624d9=_0x1ed194[_0x5508de('0xfc0')]();_0xed8afa[_0x5508de('0x20f6')]()['hasAttribute'](_0x1624d9,_0x5508de('0x2117'))?_0x1624d9[_0x5508de('0x2dc8')](_0x5508de('0x3232')):_0x1624d9[_0x5508de('0x1f38')](_0x5508de('0x6a1'));}};}_0x17272a[_0x24f76d('0x28c9')]=[_0x24f76d('0x2e27')],_0x4a272c[_0x24f76d('0x122c')](_0x24f76d('0x2b37'),[_0x24f76d('0x113c')])['directive'](_0x24f76d('0x133b'),_0x17272a);}(),function(){var _0x52d31b=_0x1fb7d4;function _0x35c6ed(_0x2c3587,_0x5b3edc,_0x1d0cfc,_0x13d5f6,_0x36c27d,_0x18a72e){var _0x3a346b=a2_0x4bfe,_0x1ac1b6,_0x4d24a7=this,_0x54d6bf=0x0;function _0x204a3f(_0x56935a){var _0x2b257c=a2_0x4bfe;'click'==_0x56935a[_0x2b257c('0x21a5')]&&function(_0x249c4c){var _0xe3e26=_0x2b257c,_0x40636c;_0x40636c=_0x249c4c[_0xe3e26('0x312f')],_0x13d5f6['getClosest'](_0x40636c,_0xe3e26('0x18d9'))&&_0x4d24a7[_0xe3e26('0xa48')](),function(_0x5dd413){var _0x398cff=_0xe3e26;return _0x13d5f6[_0x398cff('0xd2b')](_0x5dd413,'md-fab-actions');}(_0x249c4c['target'])&&_0x4d24a7[_0xe3e26('0x265b')]();}(_0x56935a),_0x2b257c('0x1387')!=_0x56935a[_0x2b257c('0x21a5')]||_0x1ac1b6||(_0x1ac1b6=_0x18a72e(function(){var _0x5f38e4=_0x2b257c;_0x4d24a7[_0x5f38e4('0x265b')]();},0x64,!0x1)),'focusin'==_0x56935a['type']&&_0x1ac1b6&&(_0x18a72e['cancel'](_0x1ac1b6),_0x1ac1b6=null);}function _0x5b5219(){var _0x1590d1=a2_0x4bfe;_0x4d24a7[_0x1590d1('0x1a5d')]=-0x1;}function _0x2015f4(){var _0x1450b8=a2_0x4bfe;_0x5b3edc[0x0]['scrollHeight']>0x0?_0x1d0cfc[_0x1450b8('0x2dc8')](_0x5b3edc,_0x1450b8('0x22f'))['then'](function(){var _0x2a6f44=_0x1450b8;_0x5b3edc[_0x2a6f44('0x3a0')](_0x2a6f44('0x13f8'));}):_0x54d6bf<0xa&&(_0x18a72e(_0x2015f4,0x64),_0x54d6bf+=0x1);}function _0x20018f(){var _0x33e57d=a2_0x4bfe;_0x5b3edc[_0x33e57d('0x1202')](_0x33e57d('0xf04'),_0x380e1a),_0x4a272c[_0x33e57d('0x88a')](document)['off'](_0x33e57d('0x351a'),_0xa2df1a);}function _0xa2df1a(_0x251b85){var _0x5a4cea=a2_0x4bfe;if(_0x251b85[_0x5a4cea('0x312f')]){var _0x33833a=_0x13d5f6[_0x5a4cea('0xd2b')](_0x251b85['target'],_0x5a4cea('0x18d9')),_0x71daf1=_0x13d5f6[_0x5a4cea('0xd2b')](_0x251b85[_0x5a4cea('0x312f')],_0x5a4cea('0x254f'));_0x33833a||_0x71daf1||_0x4d24a7['close']();}}function _0x380e1a(_0x1e4ba1){var _0x4f2550=a2_0x4bfe;switch(_0x1e4ba1[_0x4f2550('0x35c5')]){case _0x36c27d[_0x4f2550('0xaca')][_0x4f2550('0x3618')]:return _0x4d24a7['close'](),_0x1e4ba1[_0x4f2550('0x1f1a')](),!0x1;case _0x36c27d[_0x4f2550('0xaca')][_0x4f2550('0x2582')]:return function(_0x23b71d){var _0xf3bfbc=_0x4f2550;_0xf3bfbc('0x1d75')===_0x4d24a7['direction']?_0x3e7400(_0x23b71d):_0x4d0a44(_0x23b71d);}(_0x1e4ba1),!0x1;case _0x36c27d[_0x4f2550('0xaca')][_0x4f2550('0x1a0d')]:return function(_0x51b7e0){var _0x2698e2=_0x4f2550;_0x2698e2('0x2a21')===_0x4d24a7[_0x2698e2('0x5d0')]?_0x4d0a44(_0x51b7e0):_0x3e7400(_0x51b7e0);}(_0x1e4ba1),!0x1;case _0x36c27d['KEY_CODE'][_0x4f2550('0xe89')]:return function(_0x13f3f5){var _0x3e6bdd=_0x4f2550;'left'===_0x4d24a7[_0x3e6bdd('0x5d0')]?_0x4d0a44(_0x13f3f5):_0x3e7400(_0x13f3f5);}(_0x1e4ba1),!0x1;case _0x36c27d[_0x4f2550('0xaca')][_0x4f2550('0x30c3')]:return function(_0x190b3d){var _0x294136=_0x4f2550;'up'===_0x4d24a7[_0x294136('0x5d0')]?_0x4d0a44(_0x190b3d):_0x3e7400(_0x190b3d);}(_0x1e4ba1),!0x1;}}function _0x4d0a44(_0x35a350){_0x4bb02b(_0x35a350,-0x1);}function _0x3e7400(_0xb28cc){_0x4bb02b(_0xb28cc,0x1);}function _0x4bb02b(_0x568b21,_0x226d0f){var _0x20e57b=a2_0x4bfe,_0x5dcdf6=function(){var _0x4187af=a2_0x4bfe,_0x473190=_0x4a4f78()[0x0][_0x4187af('0x17de')](_0x4187af('0x15aa'));return _0x4a272c['forEach'](_0x473190,function(_0x48c8a2){var _0x5d33d5=_0x4187af;_0x4a272c[_0x5d33d5('0x88a')](_0x4a272c['element'](_0x48c8a2)['children']()[0x0])[_0x5d33d5('0x1e52')]('tabindex',-0x1);}),_0x473190;}();_0x4d24a7[_0x20e57b('0x1a5d')]=_0x4d24a7[_0x20e57b('0x1a5d')]+_0x226d0f,_0x4d24a7[_0x20e57b('0x1a5d')]=Math[_0x20e57b('0x3230')](_0x5dcdf6[_0x20e57b('0x175a')]-0x1,_0x4d24a7['currentActionIndex']),_0x4d24a7[_0x20e57b('0x1a5d')]=Math[_0x20e57b('0x2780')](0x0,_0x4d24a7[_0x20e57b('0x1a5d')]);var _0x3d8b87=_0x4a272c[_0x20e57b('0x88a')](_0x5dcdf6[_0x4d24a7[_0x20e57b('0x1a5d')]])['children']()[0x0];_0x4a272c[_0x20e57b('0x88a')](_0x3d8b87)[_0x20e57b('0x1e52')](_0x20e57b('0x1b4e'),0x0),_0x3d8b87[_0x20e57b('0x1c34')](),_0x568b21['preventDefault'](),_0x568b21['stopImmediatePropagation']();}function _0x4a4f78(){var _0x45189e=a2_0x4bfe;return _0x5b3edc[_0x45189e('0x16fd')](_0x45189e('0x254f'));}_0x4d24a7[_0x3a346b('0x7ec')]=function(){var _0x4c75c4=_0x3a346b;_0x2c3587[_0x4c75c4('0x123')](_0x4c75c4('0x3963'));},_0x4d24a7[_0x3a346b('0x265b')]=function(){var _0x18ce98=_0x3a346b;_0x2c3587['$evalAsync']('vm.isOpen\x20=\x20false'),_0x5b3edc[_0x18ce98('0x16fd')](_0x18ce98('0x18d9'))[0x0][_0x18ce98('0x1c34')]();},_0x4d24a7[_0x3a346b('0xa48')]=function(){var _0x1417eb=_0x3a346b;_0x2c3587[_0x1417eb('0x123')]('vm.isOpen\x20=\x20!vm.isOpen');},_0x4d24a7['$onInit']=function(){var _0x239f6f=_0x3a346b,_0x217e15,_0x452038,_0x5389b9;_0x4d24a7['direction']=_0x4d24a7[_0x239f6f('0x5d0')]||_0x239f6f('0x2a21'),_0x4d24a7['isOpen']=_0x4d24a7[_0x239f6f('0x365c')]||!0x1,_0x5b5219(),_0x5b3edc[_0x239f6f('0x2dc8')](_0x239f6f('0x13f8')),_0x217e15=[_0x239f6f('0x160'),_0x239f6f('0x1317'),'focusout'],_0x4a272c[_0x239f6f('0x247d')](_0x217e15,function(_0x2a71d2){_0x5b3edc['on'](_0x2a71d2,_0x204a3f);}),_0x2c3587[_0x239f6f('0x1db8')]('$destroy',function(){var _0x29acce=_0x239f6f;_0x4a272c[_0x29acce('0x247d')](_0x217e15,function(_0x18e439){var _0x2c5a02=_0x29acce;_0x5b3edc[_0x2c5a02('0x1202')](_0x18e439,_0x204a3f);}),_0x20018f();}),_0x2c3587['$watch']('vm.direction',function(_0x527360,_0x4c6d08){var _0x25f82c=_0x239f6f;_0x1d0cfc[_0x25f82c('0x3a0')](_0x5b3edc,_0x25f82c('0x35af')+_0x4c6d08),_0x1d0cfc['addClass'](_0x5b3edc,'md-'+_0x527360),_0x5b5219();}),_0x2c3587[_0x239f6f('0x1cb1')](_0x239f6f('0x344b'),function(_0x5a417a){var _0x228a87=_0x239f6f;_0x5b5219(),_0x452038&&_0x5389b9||(_0x452038=_0x5b3edc[_0x228a87('0x16fd')]('md-fab-trigger'),_0x5389b9=_0x4a4f78()),_0x5a417a?(_0x5b3edc['on'](_0x228a87('0xf04'),_0x380e1a),_0x13d5f6[_0x228a87('0x2baa')](function(){var _0x2adbad=_0x228a87;_0x4a272c[_0x2adbad('0x88a')](document)['on'](_0x2adbad('0x351a'),_0xa2df1a);})):_0x20018f();var _0x5f1f67=_0x5a417a?_0x228a87('0x2c6f'):'',_0x57d7fd=_0x5a417a?'':_0x228a87('0x2c6f');_0x452038['attr'](_0x228a87('0x2063'),!0x0),_0x452038[_0x228a87('0x1e52')]('aria-expanded',_0x5a417a),_0x5389b9[_0x228a87('0x1e52')](_0x228a87('0x384b'),!_0x5a417a),_0x1d0cfc['setClass'](_0x5b3edc,_0x5f1f67,_0x57d7fd);}),_0x2015f4();},0x1===_0x4a272c['version']['major']&&_0x4a272c[_0x3a346b('0x2ee1')][_0x3a346b('0x36c5')]<=0x4&&this[_0x3a346b('0x3825')]();}_0x35c6ed[_0x52d31b('0x28c9')]=['$scope','$element',_0x52d31b('0x2a64'),'$mdUtil','$mdConstant',_0x52d31b('0x1993')],_0x4a272c['module']('material.components.fabShared',['material.core'])[_0x52d31b('0x19f6')](_0x52d31b('0x3623'),_0x35c6ed);}(),function(){var _0x1d3b0f=_0x1fb7d4;function _0x568bcc(_0x41d271){function _0x618112(_0x49f627){_0x41d271(_0x49f627,0x12c,!0x1);}function _0xaa4a9c(_0x1b5678){var _0x4c15fe=a2_0x4bfe;if(!_0x1b5678['hasClass']('md-animations-waiting')||_0x1b5678[_0x4c15fe('0x522')]('_md-animations-ready')){var _0x90a619=_0x1b5678[0x0],_0x6876a1=_0x1b5678['controller'](_0x4c15fe('0x173')),_0x30d82a=_0x90a619[_0x4c15fe('0x17de')]('.md-fab-action-item'),_0x23dc1a=_0x90a619['querySelector'](_0x4c15fe('0x18d9')),_0x4aee03=_0x90a619[_0x4c15fe('0x2cee')]('._md-css-variables'),_0x3b92b4=parseInt(_0x49f10c[_0x4c15fe('0x2a5c')](_0x4aee03)[_0x4c15fe('0x23a4')]);_0x4a272c[_0x4c15fe('0x247d')](_0x30d82a,function(_0x3b648b,_0x2513af){var _0x4ac549=_0x4c15fe,_0x2bf0dc=_0x3b648b[_0x4ac549('0x14b6')];_0x2bf0dc[_0x4ac549('0x1796')]=_0x2bf0dc[_0x4ac549('0x789')]='',_0x2bf0dc[_0x4ac549('0x383a')]='',_0x2bf0dc['opacity']=0x1,_0x2bf0dc[_0x4ac549('0x23a4')]=_0x30d82a[_0x4ac549('0x175a')]-_0x2513af+_0x3b92b4;}),_0x23dc1a[_0x4c15fe('0x14b6')]['zIndex']=_0x3b92b4+_0x30d82a[_0x4c15fe('0x175a')]+0x1,_0x6876a1[_0x4c15fe('0x365c')]||_0x4a272c[_0x4c15fe('0x247d')](_0x30d82a,function(_0x2480a0,_0x2b5bfe){var _0x535a35=_0x4c15fe,_0x510cba,_0x3a1def,_0x4108ad=_0x2480a0['style'],_0x9a80e6=(_0x23dc1a[_0x535a35('0x22e7')]-_0x2480a0[_0x535a35('0x22e7')])/0x2,_0x396f44=(_0x23dc1a[_0x535a35('0x1473')]-_0x2480a0[_0x535a35('0x1473')])/0x2;switch(_0x6876a1[_0x535a35('0x5d0')]){case'up':_0x510cba=_0x2480a0['scrollHeight']*(_0x2b5bfe+0x1)+_0x9a80e6,_0x3a1def='Y';break;case _0x535a35('0x2a21'):_0x510cba=-(_0x2480a0[_0x535a35('0x13fc')]*(_0x2b5bfe+0x1)+_0x9a80e6),_0x3a1def='Y';break;case _0x535a35('0x1d75'):_0x510cba=_0x2480a0[_0x535a35('0x3196')]*(_0x2b5bfe+0x1)+_0x396f44,_0x3a1def='X';break;case'right':_0x510cba=-(_0x2480a0[_0x535a35('0x3196')]*(_0x2b5bfe+0x1)+_0x396f44),_0x3a1def='X';}var _0x59f76e=_0x535a35('0xeca')+_0x3a1def+'('+_0x510cba+'px)';_0x4108ad[_0x535a35('0x1796')]=_0x4108ad['webkitTransform']=_0x59f76e;});}}return{'addClass':function(_0x2a6398,_0x31c1fc,_0x1da0b7){var _0x4f2f2e=a2_0x4bfe;_0x2a6398[_0x4f2f2e('0x522')](_0x4f2f2e('0x200c'))?(_0xaa4a9c(_0x2a6398),_0x618112(_0x1da0b7)):_0x1da0b7();},'removeClass':function(_0x4b125e,_0x29d831,_0x48b70c){_0xaa4a9c(_0x4b125e),_0x618112(_0x48b70c);}};}function _0x9252df(_0x1be1f7){function _0x38fe6e(_0x4acc95){_0x1be1f7(_0x4acc95,0x12c,!0x1);}function _0x3749d3(_0x41aa2b){var _0x2146fb=a2_0x4bfe,_0x2847f2=_0x41aa2b[0x0],_0x4ba96c=_0x41aa2b[_0x2146fb('0x19f6')]('mdFabSpeedDial'),_0x43c18c=_0x2847f2[_0x2146fb('0x17de')]('.md-fab-action-item'),_0x5a4ab7=_0x2847f2[_0x2146fb('0x2cee')]('._md-css-variables'),_0x3b2dbb=parseInt(_0x49f10c[_0x2146fb('0x2a5c')](_0x5a4ab7)[_0x2146fb('0x23a4')]);_0x4a272c[_0x2146fb('0x247d')](_0x43c18c,function(_0x125e96,_0x43f903){var _0x2f9789=_0x2146fb,_0x297c5c=_0x125e96[_0x2f9789('0x14b6')],_0x5d545f=0x41*_0x43f903;_0x297c5c[_0x2f9789('0x1c8')]=_0x4ba96c[_0x2f9789('0x365c')]?0x1:0x0,_0x297c5c[_0x2f9789('0x1796')]=_0x297c5c[_0x2f9789('0x789')]=_0x4ba96c[_0x2f9789('0x365c')]?'scale(1)':_0x2f9789('0x11f3'),_0x297c5c['transitionDelay']=(_0x4ba96c[_0x2f9789('0x365c')]?_0x5d545f:_0x43c18c['length']-_0x5d545f)+'ms',_0x297c5c['zIndex']=_0x43c18c[_0x2f9789('0x175a')]-_0x43f903+_0x3b2dbb;});}return{'addClass':function(_0x3ae4dc,_0x36a0b6,_0x30c6bd){_0x3749d3(_0x3ae4dc),_0x38fe6e(_0x30c6bd);},'removeClass':function(_0xb1a706,_0x4fadf1,_0x2d969c){_0x3749d3(_0xb1a706),_0x38fe6e(_0x2d969c);}};}_0x568bcc[_0x1d3b0f('0x28c9')]=['$timeout'],_0x9252df[_0x1d3b0f('0x28c9')]=[_0x1d3b0f('0x1993')],_0x4a272c[_0x1d3b0f('0x122c')](_0x1d3b0f('0x4c'),[_0x1d3b0f('0x113c'),_0x1d3b0f('0x147b'),_0x1d3b0f('0x2b37')])[_0x1d3b0f('0x1e30')](_0x1d3b0f('0x173'),function(){var _0x411506=_0x1d3b0f;return{'restrict':'E','scope':{'direction':_0x411506('0x15b4'),'isOpen':_0x411506('0x2861')},'bindToController':!0x0,'controller':_0x411506('0x3623'),'controllerAs':'vm','link':function(_0x42cf4e,_0x26e678){var _0x2b5f10=_0x411506;_0x26e678[_0x2b5f10('0x1476')](_0x2b5f10('0x242f'));}};})[_0x1d3b0f('0xa41')](_0x1d3b0f('0x85'),_0x568bcc)[_0x1d3b0f('0xa41')](_0x1d3b0f('0x1edf'),_0x9252df)[_0x1d3b0f('0x3897')](_0x1d3b0f('0x3536'),_0x568bcc)['service'](_0x1d3b0f('0x5f2'),_0x9252df);}(),function(){var _0x1efbc5=_0x1fb7d4;function _0xc5696b(){function _0x3f8579(_0x254b6,_0x5434f4,_0x2ec884){var _0x1e07ca=a2_0x4bfe;if(_0x5434f4){var _0x3622a5=_0x254b6[0x0],_0x472a24=_0x254b6['controller'](_0x1e07ca('0x1e8e')),_0x365dc4=_0x3622a5[_0x1e07ca('0x2cee')](_0x1e07ca('0x1a41')),_0x58c62c=_0x3622a5['querySelector'](_0x1e07ca('0x23ba')),_0x586704=_0x3622a5['querySelector'](_0x1e07ca('0x9b6')),_0x339f49=_0x3622a5[_0x1e07ca('0x2cee')](_0x1e07ca('0x2af0')),_0x23935d=_0x254b6[_0x1e07ca('0x16fd')](_0x1e07ca('0x254f'))['children']();if(_0x58c62c&&_0x365dc4){var _0x27d833=_0x49f10c[_0x1e07ca('0x2a5c')](_0x58c62c)[_0x1e07ca('0x37be')]('background-color'),_0x3a208c=_0x3622a5[_0x1e07ca('0x1fe5')],_0x36a411=(_0x3622a5[_0x1e07ca('0x1147')],_0x3a208c/_0x58c62c[_0x1e07ca('0x1fe5')]*0x2);_0x365dc4[_0x1e07ca('0x14b6')]['backgroundColor']=_0x27d833,_0x365dc4[_0x1e07ca('0x14b6')]['borderRadius']=_0x3a208c+'px',_0x472a24['isOpen']?(_0x586704[_0x1e07ca('0x14b6')][_0x1e07ca('0x654')]=_0x1e07ca('0xf40'),_0x365dc4[_0x1e07ca('0x14b6')]['width']=_0x58c62c['offsetWidth']+'px',_0x365dc4[_0x1e07ca('0x14b6')][_0x1e07ca('0x28c')]=_0x58c62c[_0x1e07ca('0x1147')]+'px',_0x365dc4[_0x1e07ca('0x14b6')][_0x1e07ca('0x1796')]='scale('+_0x36a411+')',_0x365dc4[_0x1e07ca('0x14b6')][_0x1e07ca('0x383a')]=_0x1e07ca('0x153a'),_0x339f49&&(_0x339f49['style'][_0x1e07ca('0x383a')]=_0x1e07ca('0x360b')),_0x4a272c[_0x1e07ca('0x247d')](_0x23935d,function(_0x49fea4,_0x39ac7d){var _0x112767=_0x1e07ca;_0x49fea4[_0x112767('0x14b6')][_0x112767('0x383a')]=0x19*(_0x23935d[_0x112767('0x175a')]-_0x39ac7d)+'ms';})):(_0x586704['style'][_0x1e07ca('0x654')]=_0x1e07ca('0xf01'),_0x365dc4['style'][_0x1e07ca('0x1796')]=_0x1e07ca('0xddd'),_0x365dc4[_0x1e07ca('0x14b6')][_0x1e07ca('0x361a')]='0',_0x254b6[_0x1e07ca('0x522')](_0x1e07ca('0x331'))&&(_0x365dc4[_0x1e07ca('0x14b6')][_0x1e07ca('0x1d75')]='0',_0x365dc4[_0x1e07ca('0x14b6')][_0x1e07ca('0x1e0d')]=null),_0x254b6['hasClass'](_0x1e07ca('0x2201'))&&(_0x365dc4[_0x1e07ca('0x14b6')][_0x1e07ca('0x1e0d')]='0',_0x365dc4['style'][_0x1e07ca('0x1d75')]=null),_0x365dc4['style']['transitionDelay']=_0x1e07ca('0x3952'),_0x339f49&&(_0x339f49[_0x1e07ca('0x14b6')][_0x1e07ca('0x383a')]=_0x1e07ca('0x153a')),_0x4a272c[_0x1e07ca('0x247d')](_0x23935d,function(_0xfa8eb4,_0xd45204){var _0x52d2b4=_0x1e07ca;_0xfa8eb4[_0x52d2b4('0x14b6')][_0x52d2b4('0x383a')]=0xc8+0x19*_0xd45204+'ms';}));}}}return{'addClass':function(_0x132209,_0x347359,_0x6133d5){_0x3f8579(_0x132209,_0x347359),_0x6133d5();},'removeClass':function(_0xb8f064,_0x41f338,_0x34a977){_0x3f8579(_0xb8f064,_0x41f338),_0x34a977();}};}_0x4a272c[_0x1efbc5('0x122c')](_0x1efbc5('0x328e'),[_0x1efbc5('0x113c'),_0x1efbc5('0x147b'),_0x1efbc5('0x2b37')])[_0x1efbc5('0x1e30')](_0x1efbc5('0x1e8e'),function(){var _0x146507=_0x1efbc5;return{'restrict':'E','transclude':!0x0,'template':'\x20\x20','scope':{'direction':_0x146507('0x15b4'),'isOpen':_0x146507('0x2861')},'bindToController':!0x0,'controller':'MdFabController','controllerAs':'vm','link':function(_0x22e1bb,_0x6f0caa,_0x2d6455){var _0xfaffc9=_0x146507;_0x6f0caa[_0xfaffc9('0x2dc8')](_0xfaffc9('0x1822')),_0x6f0caa[_0xfaffc9('0x16fd')](_0xfaffc9('0x18d9'))[_0xfaffc9('0x16fd')](_0xfaffc9('0xb54'))[_0xfaffc9('0x1476')](_0xfaffc9('0x3841'));}};})[_0x1efbc5('0xa41')]('.md-fab-toolbar',_0xc5696b)['service'](_0x1efbc5('0x293e'),_0xc5696b);}(),function(){var _0x5a776b=_0x1fb7d4;function _0x241b65(_0x146e2e,_0xc91d77,_0x2f657d,_0x15b265,_0x3402c2){return{'restrict':'E','controller':_0x58a74a,'scope':{'mdOnLayout':'&'},'link':function(_0x37e5eb,_0x315b28,_0x21c4ec,_0x5de2c2){var _0x377659=a2_0x4bfe;_0x315b28[_0x377659('0x2dc8')](_0x377659('0x1454')),_0x315b28[_0x377659('0x1e52')](_0x377659('0x38ba'),_0x377659('0x2c53')),_0x5de2c2[_0x377659('0x43e')]=function(_0x2842e5){var _0x546c42=_0x377659,_0xd48541=[][_0x546c42('0x3127')][_0x546c42('0x2449')](_0x315b28[_0x546c42('0xfc0')](),function(_0x296e4c){var _0x56fcb8=_0x546c42;return'MD-GRID-TILE'==_0x296e4c['tagName']&&!_0x296e4c[_0x56fcb8('0x2bed')];}),_0xa872de={'tileSpans':_0x14b9d6(_0xd48541),'colCount':_0xd8cc9a(),'rowMode':_0x7a3703(),'rowHeight':_0x5781a5(),'gutter':_0x52076b()};if(!_0x2842e5&&_0x4a272c[_0x546c42('0xa9b')](_0xa872de,_0x2887a1))return;var _0x14a65f=_0x2f657d(_0xa872de[_0x546c42('0x4ff')],_0xa872de['tileSpans'],_0xd48541)[_0x546c42('0x2d86')](function(_0x4060d2,_0x1256d5){var _0x4af6c7=_0x546c42;return{'grid':{'element':_0x315b28,'style':_0xd0b845(_0xa872de['colCount'],_0x1256d5,_0xa872de[_0x4af6c7('0x2b44')],_0xa872de[_0x4af6c7('0x1e71')],_0xa872de[_0x4af6c7('0x298a')])},'tiles':_0x4060d2[_0x4af6c7('0x2d86')](function(_0x3a3a56,_0x2beb31){var _0x1d7e43=_0x4af6c7;return{'element':_0x4a272c['element'](_0xd48541[_0x2beb31]),'style':_0x130c9a(_0x3a3a56[_0x1d7e43('0x2fd5')],_0x3a3a56[_0x1d7e43('0x3662')],_0xa872de[_0x1d7e43('0x4ff')],_0x1256d5,_0xa872de['gutter'],_0xa872de[_0x1d7e43('0x1e71')],_0xa872de[_0x1d7e43('0x298a')])};})};})[_0x546c42('0x27eb')]()[_0x546c42('0x15ca')]();_0x37e5eb['mdOnLayout']({'$event':{'performance':_0x14a65f}}),_0x2887a1=_0xa872de;};var _0x2887a1,_0x5714ae=_0x4a272c[_0x377659('0x1ecd')](_0x5de2c2,_0x5de2c2[_0x377659('0xc74')]),_0x4779e9=function(){var _0x3867b7=_0x377659;for(var _0x3f0a52 in _0xc91d77[_0x3867b7('0x37b2')])_0x15b265(_0x3f0a52),_0x15b265['getQuery'](_0xc91d77[_0x3867b7('0x37b2')][_0x3f0a52])[_0x3867b7('0xccd')](_0x5714ae);return _0x15b265[_0x3867b7('0x38bd')]([_0x3867b7('0x2b7b'),'md-row-height',_0x3867b7('0x2a35')],_0x21c4ec,_0xf9009d);}();function _0xf9009d(_0x25fd9b){var _0x4316b6=_0x377659;(null==_0x25fd9b||_0x15b265(_0x25fd9b))&&_0x5de2c2[_0x4316b6('0xc74')]();}_0x37e5eb[_0x377659('0x1db8')](_0x377659('0x2f34'),function(){var _0x4a0361=_0x377659;for(var _0x15e330 in(_0x5de2c2[_0x4a0361('0x43e')]=_0x4a272c['noop'],_0x4779e9(),_0xc91d77[_0x4a0361('0x37b2')]))_0x15b265[_0x4a0361('0x2a53')](_0xc91d77['MEDIA'][_0x15e330])['removeListener'](_0x5714ae);});var _0x18933f=_0x146e2e[_0x377659('0x298')](),_0x16ea02=_0x146e2e[_0x377659('0xa5d')]();function _0xaa113(_0xead109){return _0x18933f+_0xead109+_0x16ea02;}var _0xd59ff8=_0x146e2e(_0xaa113(_0x377659('0x1d3a'))+'%\x20-\x20('+_0xaa113(_0x377659('0x2b44'))+_0x377659('0x31ff')+_0xaa113('gutterShare')+')'),_0x20835a=_0x146e2e(_0x377659('0x292f')+_0xaa113('unit')+'\x20+\x20'+_0xaa113('gutter')+_0x377659('0x1d')+_0xaa113(_0x377659('0x154f'))+')'),_0x18b36e=_0x146e2e(_0x377659('0x292f')+_0xaa113(_0x377659('0x136d'))+')\x20*\x20'+_0xaa113(_0x377659('0xc6e'))+_0x377659('0xf75')+_0xaa113(_0x377659('0xc6e'))+_0x377659('0x1934')+_0xaa113(_0x377659('0x2b44'))+')');function _0x130c9a(_0x2667ca,_0xd13b70,_0x240247,_0x1b9f50,_0x1ef438,_0x1c1a37,_0x5e0547){var _0x15935c=_0x377659,_0x1e5a2f=0x1/_0x240247*0x64,_0x4ecff7=(_0x240247-0x1)/_0x240247,_0x40db12=_0xd59ff8({'share':_0x1e5a2f,'gutterShare':_0x4ecff7,'gutter':_0x1ef438}),_0x47f8a1=_0x3402c2['isRtl'](_0x21c4ec)?{'right':_0x20835a({'unit':_0x40db12,'offset':_0x2667ca[_0x15935c('0x30a6')],'gutter':_0x1ef438}),'width':_0x18b36e({'unit':_0x40db12,'span':_0xd13b70[_0x15935c('0x30a6')],'gutter':_0x1ef438}),'paddingTop':'','marginTop':'','top':'','height':''}:{'left':_0x20835a({'unit':_0x40db12,'offset':_0x2667ca[_0x15935c('0x30a6')],'gutter':_0x1ef438}),'width':_0x18b36e({'unit':_0x40db12,'span':_0xd13b70['col'],'gutter':_0x1ef438}),'paddingTop':'','marginTop':'','top':'','height':''};switch(_0x1c1a37){case'fixed':_0x47f8a1[_0x15935c('0x361a')]=_0x20835a({'unit':_0x5e0547,'offset':_0x2667ca[_0x15935c('0x148a')],'gutter':_0x1ef438}),_0x47f8a1['height']=_0x18b36e({'unit':_0x5e0547,'span':_0xd13b70[_0x15935c('0x148a')],'gutter':_0x1ef438});break;case _0x15935c('0x28a'):var _0xbccfee=_0x1e5a2f/_0x5e0547,_0x17dbe6=_0xd59ff8({'share':_0xbccfee,'gutterShare':_0x4ecff7,'gutter':_0x1ef438});_0x47f8a1[_0x15935c('0x244')]=_0x18b36e({'unit':_0x17dbe6,'span':_0xd13b70[_0x15935c('0x148a')],'gutter':_0x1ef438}),_0x47f8a1[_0x15935c('0x77c')]=_0x20835a({'unit':_0x17dbe6,'offset':_0x2667ca['row'],'gutter':_0x1ef438});break;case _0x15935c('0x1919'):_0x17dbe6=_0xd59ff8({'share':_0xbccfee=0x1/_0x1b9f50*0x64,'gutterShare':(_0x1b9f50-0x1)/_0x1b9f50,'gutter':_0x1ef438}),_0x47f8a1['top']=_0x20835a({'unit':_0x17dbe6,'offset':_0x2667ca[_0x15935c('0x148a')],'gutter':_0x1ef438}),_0x47f8a1[_0x15935c('0x28c')]=_0x18b36e({'unit':_0x17dbe6,'span':_0xd13b70[_0x15935c('0x148a')],'gutter':_0x1ef438});}return _0x47f8a1;}function _0xd0b845(_0x338e2b,_0x23d363,_0x304006,_0x397855,_0x1b28b6){var _0x120718=_0x377659,_0x4a5e4d={};switch(_0x397855){case _0x120718('0x7d1'):_0x4a5e4d[_0x120718('0x28c')]=_0x18b36e({'unit':_0x1b28b6,'span':_0x23d363,'gutter':_0x304006}),_0x4a5e4d['paddingBottom']='';break;case _0x120718('0x28a'):var _0x193e4a=_0xd59ff8({'share':0x1/_0x338e2b*0x64*(0x1/_0x1b28b6),'gutterShare':0x1===_0x338e2b?0x0:(_0x338e2b-0x1)/_0x338e2b,'gutter':_0x304006});_0x4a5e4d[_0x120718('0x28c')]='',_0x4a5e4d[_0x120718('0x618')]=_0x18b36e({'unit':_0x193e4a,'span':_0x23d363,'gutter':_0x304006});}return _0x4a5e4d;}function _0x14b9d6(_0x4e51d1){var _0x32a02c=_0x377659;return[]['map'][_0x32a02c('0x2449')](_0x4e51d1,function(_0x8b45d1){var _0x9c4a52=_0x32a02c,_0x347d86=_0x4a272c[_0x9c4a52('0x88a')](_0x8b45d1)[_0x9c4a52('0x19f6')](_0x9c4a52('0x37f4'));return{'row':parseInt(_0x15b265[_0x9c4a52('0xcaf')](_0x347d86[_0x9c4a52('0xa7b')],_0x9c4a52('0x1952')),0xa)||0x1,'col':parseInt(_0x15b265['getResponsiveAttribute'](_0x347d86['$attrs'],_0x9c4a52('0x261b')),0xa)||0x1};});}function _0xd8cc9a(){var _0x11d8f5=_0x377659,_0x430a3a=parseInt(_0x15b265[_0x11d8f5('0xcaf')](_0x21c4ec,_0x11d8f5('0x2b7b')),0xa);if(isNaN(_0x430a3a))throw'md-grid-list:\x20md-cols\x20attribute\x20was\x20not\x20found,\x20or\x20contained\x20a\x20non-numeric\x20value';return _0x430a3a;}function _0x52076b(){return _0x55335a(_0x15b265['getResponsiveAttribute'](_0x21c4ec,'md-gutter')||0x1);}function _0x5781a5(){var _0x2cc5c0=_0x377659,_0x434ca3=_0x15b265[_0x2cc5c0('0xcaf')](_0x21c4ec,_0x2cc5c0('0xa30'));if(!_0x434ca3)throw _0x2cc5c0('0x10b8');switch(_0x7a3703()){case _0x2cc5c0('0x7d1'):return _0x55335a(_0x434ca3);case _0x2cc5c0('0x28a'):var _0xf97498=_0x434ca3['split'](':');return parseFloat(_0xf97498[0x0])/parseFloat(_0xf97498[0x1]);case _0x2cc5c0('0x1919'):return 0x0;}}function _0x7a3703(){var _0x5aafe5=_0x377659,_0x16c3f8=_0x15b265['getResponsiveAttribute'](_0x21c4ec,_0x5aafe5('0xa30'));if(!_0x16c3f8)throw _0x5aafe5('0x10b8');return'fit'==_0x16c3f8?_0x5aafe5('0x1919'):-0x1!==_0x16c3f8[_0x5aafe5('0xe1c')](':')?'ratio':'fixed';}function _0x55335a(_0x58756a){return/\D$/['test'](_0x58756a)?_0x58756a:_0x58756a+'px';}}};}function _0x58a74a(_0x2469bf){var _0x8ed053=a2_0x4bfe;this[_0x8ed053('0x112d')]=!0x1,this[_0x8ed053('0x2468')]=!0x1,this[_0x8ed053('0x11fa')]=_0x2469bf[_0x8ed053('0x2baa')],this[_0x8ed053('0x43e')]=_0x4a272c[_0x8ed053('0x2374')];}function _0x3c55b6(_0x270185){var _0x476e13=a2_0x4bfe,_0x2066d1=_0x5865d7;return _0x1f27e3[_0x476e13('0x1f64')]=function(_0x3f35a2){_0x2066d1=_0x4a272c['isFunction'](_0x3f35a2)?_0x3f35a2:_0x5865d7;},_0x1f27e3;function _0x1f27e3(_0x483055,_0x2c8d88){var _0x7a441,_0x4dee58,_0x431f4e,_0x7e910a,_0x3d4988,_0x47140f;return _0x7e910a=_0x270185['time'](function(){_0x4dee58=function(_0x53de0b,_0x516f84){var _0x1fede7=a2_0x4bfe,_0x2df070=0x0,_0xc33df7=0x0,_0x1a85e6=_0xf2103d();return{'positioning':_0x516f84['map'](function(_0x135317,_0x2cbf80){return{'spans':_0x135317,'position':_0x5c932c(_0x135317,_0x2cbf80)};}),'rowCount':_0xc33df7+Math['max'][_0x1fede7('0x177a')](Math,_0x1a85e6)};function _0x5c932c(_0x488e33,_0x5d319a){var _0x4736ed=_0x1fede7;if(_0x488e33['col']>_0x53de0b)throw _0x4736ed('0x19ac')+_0x5d319a+_0x4736ed('0x15f4')+_0x488e33[_0x4736ed('0x30a6')]+_0x4736ed('0x1f92')+_0x53de0b+')';for(var _0x3f71e1=0x0,_0x2f9e10=0x0;_0x2f9e10-_0x3f71e1<_0x488e33[_0x4736ed('0x30a6')];)_0x2df070>=_0x53de0b?_0x1565ca():-0x1!==(_0x3f71e1=_0x1a85e6[_0x4736ed('0xe1c')](0x0,_0x2df070))&&-0x1!==(_0x2f9e10=_0x59e461(_0x3f71e1+0x1))?_0x2df070=_0x2f9e10+0x1:(_0x3f71e1=_0x2f9e10=0x0,_0x1565ca());return _0x496bd9(_0x3f71e1,_0x488e33['col'],_0x488e33[_0x4736ed('0x148a')]),_0x2df070=_0x3f71e1+_0x488e33[_0x4736ed('0x30a6')],{'col':_0x3f71e1,'row':_0xc33df7};}function _0x1565ca(){_0x2df070=0x0,_0xc33df7++,_0x496bd9(0x0,_0x53de0b,-0x1);}function _0x496bd9(_0x29ffbd,_0x195c48,_0x562d48){var _0x5285dc=_0x1fede7;for(var _0x550d0f=_0x29ffbd;_0x550d0f<_0x29ffbd+_0x195c48;_0x550d0f++)_0x1a85e6[_0x550d0f]=Math[_0x5285dc('0x2780')](_0x1a85e6[_0x550d0f]+_0x562d48,0x0);}function _0x59e461(_0x3f8705){var _0x144839=_0x1fede7,_0xe9ed2a;for(_0xe9ed2a=_0x3f8705;_0xe9ed2a<_0x1a85e6[_0x144839('0x175a')];_0xe9ed2a++)if(0x0!==_0x1a85e6[_0xe9ed2a])return _0xe9ed2a;if(_0xe9ed2a===_0x1a85e6[_0x144839('0x175a')])return _0xe9ed2a;}function _0xf2103d(){for(var _0x2a82bb=[],_0x57ab6e=0x0;_0x57ab6e<_0x53de0b;_0x57ab6e++)_0x2a82bb['push'](0x0);return _0x2a82bb;}}(_0x483055,_0x2c8d88);}),_0x7a441={'layoutInfo':function(){return _0x4dee58;},'map':function(_0x17c08c){var _0x2d14ea=a2_0x4bfe;return _0x3d4988=_0x270185[_0x2d14ea('0x38e7')](function(){var _0x42bec9=_0x2d14ea,_0x311a4f=_0x7a441[_0x42bec9('0x25a7')]();_0x431f4e=_0x17c08c(_0x311a4f[_0x42bec9('0x12c3')],_0x311a4f['rowCount']);}),_0x7a441;},'reflow':function(_0x39ea2e){var _0x1582a9=a2_0x4bfe;return _0x47140f=_0x270185[_0x1582a9('0x38e7')](function(){var _0x3d79e6=_0x1582a9;(_0x39ea2e||_0x2066d1)(_0x431f4e[_0x3d79e6('0x1b8f')],_0x431f4e[_0x3d79e6('0x3451')]);}),_0x7a441;},'performance':function(){var _0x43955c=a2_0x4bfe;return{'tileCount':_0x2c8d88[_0x43955c('0x175a')],'layoutTime':_0x7e910a,'mapTime':_0x3d4988,'reflowTime':_0x47140f,'totalTime':_0x7e910a+_0x3d4988+_0x47140f};}};}function _0x5865d7(_0x33ee1b,_0x586a7d){var _0x4dbf91=_0x476e13;_0x33ee1b[_0x4dbf91('0x88a')][_0x4dbf91('0x30a3')](_0x33ee1b[_0x4dbf91('0x14b6')]),_0x586a7d[_0x4dbf91('0x247d')](function(_0x2a7e78){var _0x11a873=_0x4dbf91;_0x2a7e78['element'][_0x11a873('0x30a3')](_0x2a7e78[_0x11a873('0x14b6')]);});}}function _0x36f757(_0x5c1036){var _0x3ca278=a2_0x4bfe;return{'restrict':'E','require':_0x3ca278('0x251a'),'template':_0x3ca278('0x1c42'),'transclude':!0x0,'scope':{},'controller':[_0x3ca278('0xa7b'),function(_0x15f04c){var _0x5e47b1=_0x3ca278;this[_0x5e47b1('0xa7b')]=_0x15f04c;}],'link':function(_0x2d34a9,_0x1a1104,_0x10b138,_0x2d6869){var _0x4402f3=_0x3ca278;_0x1a1104['attr'](_0x4402f3('0x38ba'),'listitem');var _0x154dc3=_0x5c1036['watchResponsiveAttributes']([_0x4402f3('0x261b'),'md-rowspan'],_0x10b138,_0x4a272c[_0x4402f3('0x1ecd')](_0x2d6869,_0x2d6869[_0x4402f3('0xc74')]));_0x2d6869[_0x4402f3('0xff6')](),_0x2d34a9[_0x4402f3('0x1db8')](_0x4402f3('0x2f34'),function(){var _0x5257cc=_0x4402f3;_0x1a1104[0x0]['$$mdDestroyed']=!0x0,_0x154dc3(),_0x2d6869[_0x5257cc('0xc74')]();}),_0x4a272c[_0x4402f3('0x392d')](_0x2d34a9[_0x4402f3('0x955')][_0x4402f3('0x242')])&&_0x2d34a9[_0x4402f3('0x1cb1')](function(){var _0x19b242=_0x4402f3;return _0x2d34a9['$parent'][_0x19b242('0x242')];},function(_0x3facd6,_0xeeb5e4){var _0x3dba08=_0x4402f3;_0x3facd6!==_0xeeb5e4&&_0x2d6869[_0x3dba08('0xff6')]();});}};}function _0x38cffd(){var _0x4bcb65=a2_0x4bfe;return{'template':_0x4bcb65('0x2b0e'),'transclude':!0x0};}_0x58a74a[_0x5a776b('0x28c9')]=[_0x5a776b('0x2e27')],_0x3c55b6['$inject']=[_0x5a776b('0x2e27')],_0x241b65[_0x5a776b('0x28c9')]=['$interpolate','$mdConstant',_0x5a776b('0x2372'),_0x5a776b('0x1aa9'),_0x5a776b('0x2e27')],_0x36f757[_0x5a776b('0x28c9')]=[_0x5a776b('0x1aa9')],_0x4a272c[_0x5a776b('0x122c')](_0x5a776b('0x1caa'),[_0x5a776b('0x113c')])[_0x5a776b('0x1e30')](_0x5a776b('0x11a6'),_0x241b65)[_0x5a776b('0x1e30')](_0x5a776b('0x37f4'),_0x36f757)[_0x5a776b('0x1e30')](_0x5a776b('0xa60'),_0x38cffd)[_0x5a776b('0x1e30')](_0x5a776b('0x1e18'),_0x38cffd)['factory']('$mdGridLayout',_0x3c55b6),_0x58a74a[_0x5a776b('0x5a')]={'invalidateTiles':function(){var _0xb8de6e=_0x5a776b;this[_0xb8de6e('0x2468')]=!0x0,this[_0xb8de6e('0xc74')]();},'invalidateLayout':function(){var _0xcec1b1=_0x5a776b;this['layoutInvalidated']||(this[_0xcec1b1('0x112d')]=!0x0,this[_0xcec1b1('0x11fa')](_0x4a272c[_0xcec1b1('0x1ecd')](this,this['layout'])));},'layout':function(){var _0x3de2a1=_0x5a776b;try{this['layoutDelegate'](this[_0x3de2a1('0x2468')]);}finally{this[_0x3de2a1('0x112d')]=!0x1,this['tilesInvalidated']=!0x1;}}};}(),_0x4a272c[_0x1fb7d4('0x122c')]('material.components.icon',['material.core']),_0x4a272c[_0x1fb7d4('0x122c')](_0x1fb7d4('0x2dc4'))[_0x1fb7d4('0x1e30')](_0x1fb7d4('0x569'),[_0x1fb7d4('0x83f'),_0x1fb7d4('0x2e8e'),_0x1fb7d4('0x1a2f'),_0x1fb7d4('0x60'),function(_0x557771,_0x496dff,_0x4b511e,_0x57486d){return{'restrict':'E','link':function(_0x16621a,_0x1d742f,_0x5cae33){var _0x497b8a=a2_0x4bfe;_0x496dff(_0x1d742f);var _0x2d6b24=_0x5cae33[_0x497b8a('0x2632')],_0x5afe56=_0x557771[_0x497b8a('0x2720')](_0x5cae33[_0x497b8a('0x5a9')]);_0x44497f(),_0x5cae33['$observe'](_0x497b8a('0x2632'),_0x1ec844),_0x5cae33['$observe'](_0x497b8a('0x5a9'),_0x1ec844),_0x1d742f[0x0][_0x497b8a('0x10ba')](_0x5cae33[_0x497b8a('0xd0d')][_0x497b8a('0x2112')]);var _0x1e2a07,_0x559a20=_0x5cae33[_0x497b8a('0x318b')](_0x5cae33[_0x497b8a('0xd0d')][_0x497b8a('0x1c29')]||_0x5cae33[_0x497b8a('0xd0d')]['mdSvgSrc']||'');function _0x44497f(){var _0x3d791d=_0x497b8a;_0x5cae33['mdSvgIcon']||_0x5cae33[_0x3d791d('0x2112')]||(_0x5cae33['mdFontIcon']&&_0x1d742f['addClass'](_0x3d791d('0x2549')+_0x5cae33[_0x3d791d('0x2632')]),_0x1d742f['addClass'](_0x5afe56));}function _0x1ec844(){var _0x3eeb70=_0x497b8a;if(!_0x5cae33['mdSvgIcon']&&!_0x5cae33['mdSvgSrc']){_0x5cae33[_0x3eeb70('0x2632')]&&(_0x1d742f[_0x3eeb70('0x3a0')](_0x2d6b24),_0x1d742f[_0x3eeb70('0x2dc8')](_0x5cae33[_0x3eeb70('0x2632')]),_0x2d6b24=_0x5cae33['mdFontIcon']);var _0x4a2bae=_0x557771[_0x3eeb70('0x2720')](_0x5cae33[_0x3eeb70('0x5a9')]);_0x5afe56!==_0x4a2bae&&(_0x1d742f[_0x3eeb70('0x3a0')](_0x5afe56),_0x1d742f[_0x3eeb70('0x2dc8')](_0x4a2bae),_0x5afe56=_0x4a2bae);}}_0x5cae33['role']||(_0x4b511e[_0x497b8a('0x1c4d')](_0x1d742f,_0x497b8a('0x38ba'),_0x497b8a('0x1220')),_0x5cae33['role']=_0x497b8a('0x1220')),_0x497b8a('0x1220')!==_0x5cae33[_0x497b8a('0x38ba')]||_0x5cae33['ariaHidden']||_0x4b511e[_0x497b8a('0x1291')](_0x1d742f)||(_0x5cae33['alt']?_0x4b511e[_0x497b8a('0x1c4d')](_0x1d742f,_0x497b8a('0x15da'),_0x5cae33[_0x497b8a('0x21')]):_0x4b511e[_0x497b8a('0x2b04')](_0x1d742f,0x2)?_0x4b511e['expect'](_0x1d742f,_0x497b8a('0x384b'),_0x497b8a('0x11cf')):(_0x1e2a07=_0x5cae33[_0x497b8a('0x2632')]||_0x5cae33[_0x497b8a('0x1c29')]||_0x1d742f[_0x497b8a('0xc7a')]())?_0x4b511e[_0x497b8a('0x1c4d')](_0x1d742f,_0x497b8a('0x15da'),_0x1e2a07):_0x4b511e[_0x497b8a('0x1c4d')](_0x1d742f,'aria-hidden','true')),_0x559a20&&_0x5cae33[_0x497b8a('0x2838')](_0x559a20,function(_0xcb391c){var _0x5ca256=_0x497b8a;_0x1d742f[_0x5ca256('0x1e61')](),_0xcb391c&&_0x557771(_0xcb391c)['then'](function(_0x230e1c){var _0x381abc=_0x5ca256;_0x1d742f[_0x381abc('0x1e61')](),_0x1d742f[_0x381abc('0x10f')](_0x230e1c);});});}};}]),function(){var _0xabc14a=_0x1fb7d4;_0x1d2a4a[_0xabc14a('0x28c9')]=['config',_0xabc14a('0x89e'),'$q',_0xabc14a('0x38a3'),_0xabc14a('0x2e27'),_0xabc14a('0x60')],_0x4a272c[_0xabc14a('0x122c')](_0xabc14a('0x2dc4'))[_0xabc14a('0x1a6d')](_0xabc14a('0x2431'),{'mdTabsArrow':_0xabc14a('0xb0a'),'mdClose':_0xabc14a('0x178b'),'mdCancel':_0xabc14a('0xeed'),'mdMenu':_0xabc14a('0x4a0'),'mdToggleArrow':'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==','mdCalendar':_0xabc14a('0x278a'),'mdChecked':'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+'})['provider'](_0xabc14a('0x83f'),_0x23f78d);var _0x5dfa88={'defaultViewBoxSize':0x18,'defaultFontSet':_0xabc14a('0x394b'),'fontSets':[]};function _0x23f78d(){}function _0x11b5b9(_0x3f6b10,_0x2b6f8f){var _0x14963a=_0xabc14a;this['url']=_0x3f6b10,this[_0x14963a('0x6b3')]=_0x2b6f8f||_0x5dfa88[_0x14963a('0x18f2')];}function _0x1d2a4a(_0x9381c4,_0x49f467,_0x1fb827,_0x5bebcd,_0x177e03,_0x6df443){var _0x2f75d5=_0xabc14a,_0x203106={},_0x37e5ec={},_0x5733ef=/[-\w@:%+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&//=]*)?/i,_0x3fce1f=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return _0x561884[_0x2f75d5('0x5a')]={'clone':function(){var _0x3f5afc=_0x2f75d5;return this[_0x3f5afc('0x88a')][_0x3f5afc('0x6a7')](!0x0);},'prepare':function(){var _0x11b384=_0x2f75d5,_0x3ddb5b=this[_0x11b384('0x3486')]?this['config']['viewBoxSize']:_0x9381c4[_0x11b384('0x18f2')];_0x4a272c[_0x11b384('0x247d')]({'fit':'','height':_0x11b384('0x21e5'),'width':_0x11b384('0x21e5'),'preserveAspectRatio':_0x11b384('0x33fe'),'viewBox':this['element'][_0x11b384('0x10ba')](_0x11b384('0x2c6b'))||_0x11b384('0x2c92')+_0x3ddb5b+'\x20'+_0x3ddb5b,'focusable':!0x1},function(_0x2ba69f,_0x5b7b29){var _0x365c5f=_0x11b384;this[_0x365c5f('0x88a')][_0x365c5f('0xb10')](_0x5b7b29,_0x2ba69f);},this);}},_0x169712[_0x2f75d5('0x2720')]=function(_0x234644){var _0xc6bfda=_0x2f75d5;if(_0x4a272c[_0xc6bfda('0x294d')](_0x234644)||!_0x234644||!_0x234644[_0xc6bfda('0x175a')])return _0x9381c4[_0xc6bfda('0x16e2')];var _0x2de298=_0x234644;return _0x4a272c[_0xc6bfda('0x247d')](_0x9381c4[_0xc6bfda('0x2d89')],function(_0x1bb830){var _0x589a2a=_0xc6bfda;_0x1bb830[_0x589a2a('0x30ff')]===_0x234644&&(_0x2de298=_0x1bb830[_0x589a2a('0x2720')]||_0x2de298);}),_0x2de298;},_0x169712;function _0x169712(_0x399f86){var _0x595177=_0x2f75d5;return _0x399f86=_0x399f86||'',_0x4a272c[_0x595177('0x392')](_0x399f86)||(_0x399f86=_0x6df443['getTrustedUrl'](_0x399f86)),_0x203106[_0x399f86]?_0x1fb827[_0x595177('0x36d1')](_0x1a11f4(_0x203106[_0x399f86])):_0x5733ef['test'](_0x399f86)||_0x3fce1f[_0x595177('0x19cd')](_0x399f86)?_0xad87dd(_0x399f86)[_0x595177('0x26b5')](_0x49360d(_0x399f86)):(-0x1===_0x399f86['indexOf'](':')&&(_0x399f86=_0x595177('0x1c6b')+_0x399f86),(_0x9381c4[_0x399f86]?_0x1d3bef:_0x39f572)(_0x399f86)[_0x595177('0x26b5')](_0x49360d(_0x399f86)));}function _0x1a11f4(_0xa37a8a){var _0x50b154=_0x2f75d5,_0x339040,_0x4d6d79,_0xf1d527,_0x1596ee,_0x41e0b0=_0xa37a8a['clone'](),_0x28426=_0x177e03[_0x50b154('0x2801')](),_0x22d854=[_0x50b154('0x143b'),_0x50b154('0xe7c'),'cursor',_0x50b154('0x1942'),'filter',_0x50b154('0x3277'),_0x50b154('0x345'),'marker-mid',_0x50b154('0x3051'),_0x50b154('0x2c22'),_0x50b154('0x2ad6'),_0x50b154('0x14b6'),_0x50b154('0x24c8')],_0x4ae723=_0x41e0b0[_0x50b154('0x1ff3')]===_0x6373f5;if(!isFinite(Number(_0x28426)))throw new Error('Unsafe\x20and\x20unexpected\x20non-number\x20result\x20from\x20$mdUtil.nextUid().');return _0x339040=_0x50b154('0x2186')+_0x28426,_0x41e0b0['id']&&(_0x41e0b0['id']+=_0x339040),_0x4a272c[_0x50b154('0x247d')](_0x41e0b0[_0x50b154('0x17de')]('[id]'),function(_0x37c624){var _0x47486c=_0x50b154;for(_0x4d6d79='',_0xf1d527=0x0;_0xf1d527<_0x22d854[_0x47486c('0x175a')];_0xf1d527++)_0x4d6d79+='['+_0x22d854[_0xf1d527]+_0x47486c('0x31dd')+_0x37c624['id']+')\x22]',_0xf1d527+0x1<_0x22d854[_0x47486c('0x175a')]&&(_0x4d6d79+=',\x20');_0x4a272c[_0x47486c('0x247d')](_0x41e0b0[_0x47486c('0x17de')](_0x4d6d79),function(_0x33a3c2){_0xc068be(_0x37c624,_0x33a3c2,_0x4ae723,_0x28426);}),_0x4a272c[_0x47486c('0x247d')](_0x41e0b0['querySelectorAll']('style'),function(_0x1c2538){_0xc068be(_0x37c624,_0x1c2538,_0x4ae723,_0x28426);}),_0x4a272c['forEach'](_0x41e0b0[_0x47486c('0x17de')](_0x47486c('0x18cb')),function(_0xc85d97){var _0x1469c0=_0x47486c;(_0x1596ee=_0xc85d97[_0x1469c0('0x10ba')](_0x1469c0('0x12e8')))&&(_0x1596ee=_0x1596ee[_0x1469c0('0x34c8')]('#'+_0x37c624['id'],'#'+_0x37c624['id']+_0x339040),_0xc85d97[_0x1469c0('0xb10')](_0x1469c0('0x12e8'),_0x1596ee));}),_0x37c624['id']+=_0x339040;}),_0x41e0b0;}function _0xc068be(_0x12917,_0x28084b,_0x445686,_0x40b305){var _0x5d5556=_0x2f75d5,_0x4cf949,_0x2be8c1;if(!isFinite(Number(_0x40b305)))throw new Error(_0x5d5556('0x25c7'));_0x2be8c1=_0x5d5556('0x2186')+_0x40b305,_0x445686?(_0x4cf949=(_0x4cf949=_0x177e03[_0x5d5556('0x28cb')](_0x28084b))[_0x5d5556('0x34c8')](_0x5d5556('0x362f')+_0x12917['id']+')','url(#'+_0x12917['id']+_0x2be8c1+')'),_0x28084b[_0x5d5556('0x2c5f')]=_0x4a272c[_0x5d5556('0x88a')](_0x4cf949)[0x0][_0x5d5556('0x1ff3')]):_0x28084b[_0x5d5556('0x1a70')]=_0x28084b['outerHTML'][_0x5d5556('0x34c8')](_0x5d5556('0x362f')+_0x12917['id']+')','url(#'+_0x12917['id']+_0x2be8c1+')');}function _0x49360d(_0x376c19){return function(_0x56ae81){var _0x749d76=a2_0x4bfe,_0x3aa1d4;return _0x203106[_0x376c19]=(_0x3aa1d4=_0x56ae81,_0x4a272c[_0x749d76('0x392d')](_0x3aa1d4['element'])&&_0x4a272c['isDefined'](_0x3aa1d4['config'])?_0x56ae81:new _0x561884(_0x56ae81,_0x9381c4[_0x376c19])),_0x1a11f4(_0x203106[_0x376c19]);};}function _0x1d3bef(_0x1b8c4d){var _0x4e8bc1=_0x2f75d5,_0x11a61e=_0x9381c4[_0x1b8c4d];return _0xad87dd(_0x11a61e['url'])[_0x4e8bc1('0x26b5')](function(_0x43d1d5){return new _0x561884(_0x43d1d5,_0x11a61e);});}function _0x39f572(_0x13f343){var _0x2932f3=_0x2f75d5,_0x302a25=_0x13f343[_0x2932f3('0x92')](0x0,_0x13f343['lastIndexOf'](':'))||_0x2932f3('0x6b8'),_0x831542=_0x9381c4[_0x302a25];return _0x831542?_0xad87dd(_0x831542[_0x2932f3('0x365f')])[_0x2932f3('0x26b5')](function(_0x576843){var _0x24bc4b=_0x2932f3,_0x1be91b=_0x13f343[_0x24bc4b('0x2c0a')](_0x13f343['lastIndexOf'](':')+0x1),_0x50d294=_0x576843['querySelector']('#'+_0x1be91b);return _0x50d294?new _0x561884(_0x50d294,_0x831542):_0xd0c4dc(_0x13f343);}):_0xd0c4dc(_0x13f343);function _0xd0c4dc(_0x38dfb7){var _0x51d1b7=_0x2932f3,_0xb8368=_0x51d1b7('0x1bc5')+_0x38dfb7+_0x51d1b7('0x3254');return _0x5bebcd[_0x51d1b7('0x8fa')](_0xb8368),_0x1fb827['reject'](_0xb8368||_0x38dfb7);}}function _0xad87dd(_0xb41b29){var _0x524e74=_0x2f75d5;return _0x3fce1f[_0x524e74('0x19cd')](_0xb41b29)?function(_0x38a86c){var _0xd7e467=_0x524e74,_0x4b97a9=_0x3fce1f[_0xd7e467('0x27cd')](_0x38a86c),_0x41665a=/base64/i[_0xd7e467('0x19cd')](_0x38a86c)?_0x49f10c[_0xd7e467('0x275d')](_0x4b97a9[0x2]):_0x4b97a9[0x2];return _0x1fb827[_0xd7e467('0x36d1')](_0x4a272c[_0xd7e467('0x88a')](_0x41665a)[0x0]);}(_0xb41b29):function(_0x5b6788){return _0x1fb827(function(_0x23e411,_0x40b8c1){var _0x2c3b2a=a2_0x4bfe;_0x49f467(_0x5b6788,!0x0)[_0x2c3b2a('0x26b5')](function(_0x1daaa4){var _0x181862=_0x2c3b2a;_0x37e5ec[_0x5b6788]||(_0x37e5ec[_0x5b6788]=_0x4a272c[_0x181862('0x88a')](_0x181862('0x1644'))[_0x181862('0x10f')](_0x1daaa4)[0x0][_0x181862('0x2cee')](_0x181862('0x817'))),_0x23e411(_0x37e5ec[_0x5b6788]);},function(_0x223378){var _0x5db516=_0x2c3b2a,_0x381dff=_0x4a272c['isString'](_0x223378)?_0x223378:_0x223378['message']||_0x223378[_0x5db516('0xcee')]||_0x223378['statusText'];_0x5bebcd['warn'](_0x381dff),_0x40b8c1(_0x223378);});});}(_0xb41b29);}function _0x561884(_0x156dd2,_0x53b4c9){var _0x527a85=_0x2f75d5;if(_0x156dd2&&_0x527a85('0x24eb')===_0x156dd2[_0x527a85('0x742')][_0x527a85('0x856')]()){var _0x4562fa=_0x156dd2[_0x527a85('0x10ba')](_0x527a85('0x2c6b'));_0x156dd2=_0x156dd2[_0x527a85('0x1ff3')]?_0x4a272c[_0x527a85('0x88a')]('')['html'](_0x156dd2[_0x527a85('0x1ff3')])[0x0]:_0x4a272c[_0x527a85('0x88a')]('')['append'](_0x177e03[_0x527a85('0x3543')](_0x156dd2))[0x0],_0x4562fa&&_0x156dd2[_0x527a85('0xb10')](_0x527a85('0x2c6b'),_0x4562fa);}_0x156dd2&&_0x527a85('0x817')!==_0x156dd2[_0x527a85('0x742')][_0x527a85('0x856')]()&&(_0x156dd2=_0x4a272c[_0x527a85('0x88a')]('')[_0x527a85('0x10f')](_0x156dd2[_0x527a85('0x6a7')](!0x0))[0x0]),_0x156dd2[_0x527a85('0x10ba')](_0x527a85('0x1003'))||_0x156dd2[_0x527a85('0xb10')]('xmlns',_0x527a85('0x3578')),this[_0x527a85('0x88a')]=_0x156dd2,this['config']=_0x53b4c9,this[_0x527a85('0x1e41')]();}}_0x23f78d[_0xabc14a('0x5a')]={'icon':function(_0x2de120,_0x1584b7,_0x6fece6){var _0x12a99d=_0xabc14a;return-0x1==_0x2de120[_0x12a99d('0xe1c')](':')&&(_0x2de120=_0x12a99d('0x1c6b')+_0x2de120),_0x5dfa88[_0x2de120]=new _0x11b5b9(_0x1584b7,_0x6fece6),this;},'iconSet':function(_0x50746f,_0x454994,_0x3ba106){return _0x5dfa88[_0x50746f]=new _0x11b5b9(_0x454994,_0x3ba106),this;},'defaultIconSet':function(_0x417f01,_0x885d44){var _0xf2b9e6=_0xabc14a;return _0x5dfa88['$default']||(_0x5dfa88[_0xf2b9e6('0x6b8')]=new _0x11b5b9(_0x417f01,_0x885d44)),_0x5dfa88['$default'][_0xf2b9e6('0x6b3')]=_0x885d44||_0x5dfa88[_0xf2b9e6('0x18f2')],this;},'defaultViewBoxSize':function(_0x597d4b){return _0x5dfa88['defaultViewBoxSize']=_0x597d4b,this;},'fontSet':function(_0x5c4748,_0x5c7084){var _0xec2d39=_0xabc14a;return _0x5dfa88['fontSets'][_0xec2d39('0x1a90')]({'alias':_0x5c4748,'fontSet':_0x5c7084||_0x5c4748}),this;},'defaultFontSet':function(_0x145fb0){return _0x5dfa88['defaultFontSet']=_0x145fb0||'',this;},'defaultIconSize':function(_0x285313){var _0x4f0634=_0xabc14a;return _0x5dfa88[_0x4f0634('0x29cf')]=_0x285313,this;},'$get':[_0xabc14a('0x89e'),'$q','$log',_0xabc14a('0x2e27'),'$sce',function(_0xa3de61,_0x55e429,_0x29f003,_0xd72d51,_0x204928){return _0x1d2a4a(_0x5dfa88,_0xa3de61,_0x55e429,_0x29f003,_0xd72d51,_0x204928);}]};}(),function(){var _0x4bd149=_0x1fb7d4;_0x37c4ee[_0x4bd149('0x28c9')]=['$mdTheming',_0x4bd149('0x1636'),_0x4bd149('0x3490')],_0x8a3a6a[_0x4bd149('0x28c9')]=[_0x4bd149('0x2e27'),_0x4bd149('0x398e'),_0x4bd149('0x1a2f'),_0x4bd149('0x1993'),_0x4bd149('0xb9a')],_0x106b4c['$inject']=['$animate',_0x4bd149('0x2e27')],_0x2e72a3[_0x4bd149('0x28c9')]=[_0x4bd149('0x2078')],_0x138b8a[_0x4bd149('0x28c9')]=[_0x4bd149('0x2e27')],_0x17a7ad[_0x4bd149('0x28c9')]=['$document','$timeout'],_0x53dc75[_0x4bd149('0x28c9')]=[_0x4bd149('0x49d'),'$animateCss',_0x4bd149('0x2e27')],_0x31c4bb[_0x4bd149('0x28c9')]=[_0x4bd149('0x49d'),_0x4bd149('0xc2c'),_0x4bd149('0x2e27')],_0x3e0bbb[_0x4bd149('0x28c9')]=[_0x4bd149('0x49d'),_0x4bd149('0xc2c'),_0x4bd149('0x2e27'),'$log'];var _0x4f3fbc=_0x4a272c['module'](_0x4bd149('0x336b'),[_0x4bd149('0x113c')])[_0x4bd149('0x1e30')](_0x4bd149('0x1606'),_0x37c4ee)['directive'](_0x4bd149('0x1f7f'),function(){var _0x2e3e3b=_0x4bd149;return{'restrict':'E','require':_0x2e3e3b('0xeb2'),'link':function(_0x6674c0,_0x57ba3b,_0x59f0c3,_0x1c5278){var _0x27e6f7=_0x2e3e3b;!_0x1c5278||_0x59f0c3[_0x27e6f7('0xf79')]||_0x57ba3b[_0x27e6f7('0x522')](_0x27e6f7('0x17c'))||(_0x1c5278[_0x27e6f7('0x1f7f')]=_0x57ba3b,_0x6674c0['$on'](_0x27e6f7('0x2f34'),function(){_0x1c5278['label']=null;}));}};})['directive'](_0x4bd149('0x10a7'),_0x8a3a6a)[_0x4bd149('0x1e30')](_0x4bd149('0x701'),_0x8a3a6a)['directive'](_0x4bd149('0x3108'),_0x106b4c)[_0x4bd149('0x1e30')](_0x4bd149('0x162f'),_0x2e72a3)[_0x4bd149('0x1e30')](_0x4bd149('0xa9d'),function(){var _0x4959e8=_0x4bd149;return{'restrict':'EA','link':function(_0x348aaf,_0xab2836,_0x29002a,_0x1ed51e){var _0x3dd8b8=a2_0x4bfe;if(!_0x1ed51e)return;_0xab2836[_0x3dd8b8('0x2af2')](_0x3dd8b8('0x732'),!0x0),_0xab2836[_0x3dd8b8('0x2af2')](_0x3dd8b8('0x27f3'),!0x0),('false'==_0x29002a['mdAutoHide']||_0x29de29(_0x29002a))&&_0xab2836['toggleClass'](_0x3dd8b8('0x27f3'),!0x1);},'require':_0x4959e8('0x155f')};function _0x29de29(_0x5d6c6a){var _0x10d866=_0x4959e8;return _0x54c7d7[_0x10d866('0x2997')](function(_0x378535){return _0x5d6c6a[_0x378535];});}})[_0x4bd149('0x1e30')]('ngMessage',_0x138b8a)[_0x4bd149('0x1e30')](_0x4bd149('0x355b'),_0x138b8a)['directive'](_0x4bd149('0x13c'),_0x17a7ad)['animation'](_0x4bd149('0xce1'),_0x53dc75)[_0x4bd149('0xa41')]('.md-input-messages-animation',_0x31c4bb)[_0x4bd149('0xa41')](_0x4bd149('0x2238'),_0x3e0bbb);function _0x37c4ee(_0x63326,_0x2b0ab7,_0x7e69d5){var _0x3d3173=_0x4bd149;_0x181757[_0x3d3173('0x28c9')]=[_0x3d3173('0x1868'),_0x3d3173('0x34d6'),_0x3d3173('0xa7b'),_0x3d3173('0x2a64')];var _0x14b152=[_0x3d3173('0x17ae'),_0x3d3173('0x24c9'),_0x3d3173('0xbcc'),_0x3d3173('0x36d5')],_0x1bc301=_0x14b152[_0x3d3173('0x33b0')](function(_0x22061e,_0x93a06b){var _0x1e9f21=_0x3d3173;return _0x22061e[_0x1e9f21('0x12b4')]([_0x1e9f21('0xbe0')+_0x93a06b,_0x1e9f21('0x2dea')+_0x93a06b]);},[])[_0x3d3173('0x6a8')](','),_0x1b1f93=_0x14b152[_0x3d3173('0x33b0')](function(_0x1e5719,_0x278b50){var _0x10b1b1=_0x3d3173;return _0x1e5719[_0x10b1b1('0x12b4')]([_0x278b50+_0x10b1b1('0xc75'),_0x278b50+_0x10b1b1('0x397a')]);},[])[_0x3d3173('0x6a8')](',');return{'restrict':'E','compile':function(_0x7ea127){var _0x59e578=_0x3d3173,_0x101fdb=_0x7ea127[0x0][_0x59e578('0x2cee')](_0x1bc301),_0x41acb2=_0x7ea127[0x0]['querySelector'](_0x1b1f93);return function(_0x1220e2,_0x2653d6){_0x63326(_0x2653d6),(_0x101fdb||_0x41acb2)&&_0x7e69d5(function(){var _0x209bda=a2_0x4bfe,_0x3321b5=_0x2653d6[0x0][_0x209bda('0x2cee')]('md-icon')||_0x2653d6[0x0][_0x209bda('0x2cee')](_0x209bda('0x3972'));_0x101fdb&&_0x3321b5&&_0x2653d6[_0x209bda('0x2dc8')](_0x209bda('0x3462')),_0x41acb2&&_0x3321b5&&_0x2653d6[_0x209bda('0x2dc8')](_0x209bda('0x3573'));});};},'controller':_0x181757};function _0x181757(_0x109725,_0x356ed6,_0x1eaf55,_0x5f23e2){var _0x47c338=_0x3d3173,_0x59b867=this;_0x59b867['isErrorGetter']=_0x1eaf55[_0x47c338('0x19dd')]&&_0x2b0ab7(_0x1eaf55['mdIsError']),_0x59b867[_0x47c338('0x2883')]=function(){var _0x276754=_0x47c338;_0x59b867['input'][_0x276754('0x1c34')]();},_0x59b867['element']=_0x356ed6,_0x59b867[_0x47c338('0x17a4')]=function(_0x28f3e8){var _0x435a78=_0x47c338;_0x356ed6[_0x435a78('0x2af2')](_0x435a78('0x3676'),!!_0x28f3e8);},_0x59b867[_0x47c338('0x3754')]=function(_0x1f7c0d){var _0x512bf8=_0x47c338;_0x356ed6['toggleClass'](_0x512bf8('0x2457'),!!_0x1f7c0d);},_0x59b867[_0x47c338('0x3148')]=function(_0x3a8f97){var _0x263195=_0x47c338;_0x356ed6['toggleClass'](_0x263195('0x18cc'),!!_0x3a8f97);},_0x59b867[_0x47c338('0x446')]=function(_0x220233){var _0x2b51f4=_0x47c338;_0x220233?_0x5f23e2['addClass'](_0x356ed6,_0x2b51f4('0x2b97')):_0x5f23e2[_0x2b51f4('0x3a0')](_0x356ed6,_0x2b51f4('0x2b97'));},_0x109725['$watch'](function(){var _0x29b47a=_0x47c338;return _0x59b867[_0x29b47a('0x1f7f')]&&_0x59b867['input'];},function(_0x1a335c){var _0x158a97=_0x47c338;_0x1a335c&&!_0x59b867[_0x158a97('0x1f7f')][_0x158a97('0x1e52')](_0x158a97('0xca'))&&_0x59b867[_0x158a97('0x1f7f')][_0x158a97('0x1e52')](_0x158a97('0xca'),_0x59b867[_0x158a97('0x10a7')]['attr']('id'));});}}function _0x8a3a6a(_0x16c2f1,_0x9fbb08,_0x52eb88,_0x1d4803,_0x11d51a){var _0x524817=_0x4bd149;return{'restrict':'E','require':['^?mdInputContainer',_0x524817('0x1102'),_0x524817('0x3670')],'link':function(_0x4f273a,_0x6f6438,_0x5c46d0,_0xfb027b){var _0x42b678=_0x524817,_0x45678c=_0xfb027b[0x0],_0x1140e4=!!_0xfb027b[0x1],_0x3c66f4=_0xfb027b[0x1]||_0x16c2f1[_0x42b678('0x265')](),_0x450c57=_0xfb027b[0x2],_0x125e9f=_0x4a272c[_0x42b678('0x392d')](_0x5c46d0[_0x42b678('0x29f')]),_0x335ba8=_0x16c2f1['parseAttributeBoolean'](_0x5c46d0[_0x42b678('0xfa4')]),_0x43fce9=_0x6f6438[0x0][_0x42b678('0x742')][_0x42b678('0x856')]();if(!_0x45678c)return;if(_0x42b678('0x1bdf')===_0x5c46d0[_0x42b678('0x21a5')])return void _0x6f6438[_0x42b678('0x1e52')](_0x42b678('0x384b'),_0x42b678('0x11cf'));if(_0x45678c[_0x42b678('0x10a7')]){if(_0x45678c[_0x42b678('0x10a7')][0x0][_0x42b678('0x3cf')](_0x6f6438[0x0]))return;throw new Error('\x20can\x20only\x20have\x20*one*\x20,\x20','voiceMail.mailbox','deleteServicenowConfiguration','DASHBOARDS.SUN','mail/reports/transfer/describe','ListCustomFieldsController','\x27very\x27','Util','faxQueueReport','isEstablished','deleteFreshsalesConfiguration','Tags','telephone','Process\x20stopped!','hiddenBCC','Hopper\x20deleted!','src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view-[chunkhash].html','ANALYTICS.NEW_METRIC','DASHBOARDS.WED','userStatusOptions','square/recordings/describe','trustAsHtml','SYSTEM:GET_AGENTS','cafrenchmale','sumBillable','MailAccount\x20properly\x20created','/settings','originateHook\x20->\x20payload','/telephones','addNewDeskConfiguration','queueNotifyMethod','integrations/dynamics365/fields/:id/clone','cm/hopper/opencontacts','selectedNetworks','hangup','Antarctica/Vostok','searchOptions','getValues','api.cloudProvider.update','delete\x20report','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cloudProviders?','chanSpies','deleteSmsAccount','getContact','voiceMailMessage','canSelect','utcOffset','message\x20#','AVG\x20(','animate','Trident/7','French\x20(France)','id,tree','EditMailAccountAppautoreplyDialogController','types','faxTransferReport','MAIL.ALL_AGENTS','ANALYTICS.NO_METRIC_FOUND','blue-grey-A200','integrations/zendesk/fields/:id','voice/calls/reports/:id','removeCondition','CustomDashboard\x20properly\x20deleted!','src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html/changepassword-[chunkhash].html','CHAT.ALL_AGENTS','Ruben\x20(Dutch,\x20Male)','delete\x20CloudProviders','Comic\x20Sans\x20MS,cursive','Session\x20properly\x20created.','America/Metlakatla','MusicOnHolds','delete\x20whatsappCannedAnswer','analytics/extracted_reports/:id/clone','gotoLastStep','AgentsVoiceRealtimeController\x20as\x20vm','mwFormBuilder','disabled','getAllConditions','deleteTeam','ChatWebsitesController\x20as\x20vm','.ms-search-bar-results','voiceMails','CreateOrEditGlobalCustomFieldDialogController','processes','times','getServicenowAccounts','QueueCampaign\x20properly\x20saved!','microphone','src/js/modules/main/apps/voice/views/realtime/trunks/view.html/view-[chunkhash].html','openchannelStatus','api.pause.update','downloadWhatsappInteraction','\x27centered\x27','addNewVoiceQueue','English\x20(Kenya)','jscripty/sessions/reports/:id/clone','pickerPosition','Hans','Romanian\x20(Romania)','newSmsAccount','exportSelectedGlobalCustomFields','mouseEventIgnoreTimeout','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','telegram','autocompleteRequireMatch','DASHBOARDS.DISABLED','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?','apps.sms.smsAccounts','done','VoiceQueuesController','src/js/modules/main/apps/analytics/views/metrics/create/dialog.html/dialog-[chunkhash].html','EditWhatsappAccountApp','apps.plugins','api.chatQueue.delete','gotoMusicOnHolds','CreateOrEditContactDialogController','TOOLS.DISPOSITIONS','GET_PAUSE','app.mail.mailAccounts.edit','openContact','HopperBlack\x20deleted!','desc','isSameOrigin','src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation-[chunkhash].html','api.cmList.delete','flip','CONTACTMANAGER.NEW_CUSTOMFIELD','Europe/Copenhagen','createdAt,updatedAt,id,key,value,description','getVoiceChannels\x20->\x20session','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20internalroutes?','app.tools.trunks','WhatsappQueue\x20properly\x20created','phone','Australia/Darwin','SYSTEM:GETwhatsappAccount','getCurrentUser','SUM','CreateOrEditSalesforceAccountDialogController','dashboards','addNewProject','\x27predictive\x27','stepInfo','error-500','selectedTriggerAllConditions','Hopper\x20properly\x20created','oct','gotocontactsgoto','Delete\x20ZohoAccount','aws_text_type','iPhone','EditInboundAppexternaldialDialogController','Invisible','apps.voice.voiceQueues','ChatQueueController','customization','newInternalRoute','src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view-[chunkhash].html','Unable\x20to\x20play\x20autoAnswer\x20notification','home.contacts','Delete\x20SmsCannedAnswer','SmsQueues','passwordResetAt','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?','getWhatsappQueuesWaitingInteractions','equals','forwardTemplate','addNewServicenowAccount','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','MxGraphSaveProjectAsController','Unable\x20to\x20convert\x20answer','arrayservice','getLockedItems','createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','getTemplates','ChanSpies','app.contactmanager.globalCustomFields','SYSTEM:GETintServicenowAccount','Trunk\x20properly\x20deleted!','sms/interactions/:id/messages','SYSTEM:GET_USERPROFILES','apps.tools','MsShortcutsController\x20as\x20MsShortcuts','smsCurrentCapacity','GET_ODBC','src/js/modules/forgot/forgot.html/forgot-[chunkhash].html','Email\x20field\x20is\x20not\x20valid','FaxRealtimeController\x20as\x20vm','Network\x20properly\x20saved!','rpc/sms/queues/:id/notify','FAX.EDIT_','getScheduledCalls','others','api.intSugarcrmConfiguration.save','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog-[chunkhash].html','InboundRouteController','onChangeReportType','\x27agent_alias\x27','callbackUrl','charAt','exportSelectedDispositions','Email\x20Messages','selectedDynamics365Configuration','pauses/:id','EditFaxAccountAppsystemDialogController','/tags','SYSTEM:GET_OPENCHANNELACCOUNTS','JSCRIPTY.SESSION_RESULTS','smsMessage','exportSelectedWhatsappAccountInteractions','UserController','TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE','JSCRIPTY.CLONE_PROJECT','openAdvancedSearch','UserFaxDashboardGeneralController\x20as\x20vm','The\x20mailQueue\x20will\x20be\x20deleted.','ListDispositionsController','MusicOnHoldController','voiceMusicOnHold','xAnswerAfterSec','UserWhatsappQueue','Mobile\x20','goTo','delete\x20Templates','integrations/zendesk/accounts/:id/configurations','$ne','downloadMessage','EditFaxAccountAppcloseDialogController','Maxim','Uzbek','pt\x22>','uriLocation','getScreenRecordings','Textarea','icon-radiobox-marked','WhatsappAccount','ms-navigation','EditMailAccountApptagDialogController','app.openchannel.openchannelQueues','EditInternalAppgotoDialogController','Substatus','General','cm/hopper/:id','Telephones','createOrEditChatWebsiteChatProactiveAction','icon-format-text','countdown','Arabic\x20(Iraq)','integrations/zoho/fields/describe','JSCRIPTY.PROJECTS','websocket','InteractionId','associatedReports','password','Fields\x20saved!','deleteSelectedWhatsappAccountApps','selectedSalesforceConfiguration','selectedVoiceQueues','saveFaxAccountApp','templateSettings','src/js/modules/main/apps/tools/views/intervals/edit/view.html/view-[chunkhash].html','#9ab8e5','\x22resource\x22\x20must\x20be\x20an\x20array\x20and\x20it\x20must\x20follow\x20$resource\x20definition','0.12','squareMessage','from-voip-provider','Occitan','newOutboundRoute','InternalRoutesController\x20as\x20vm','SYSTEM:GET_TREEREPORTS','Attachment\x20is\x20mandatory','','notification','integrations/freshdesk/configurations/:id/tags','dialQueueProject','response','VOICE.VOICEQUEUES','attachments/:id','Swahili\x20(Kenya)','amaflags','VOICE.NEW_VOICERECORDING','Amy','backgroundPalette','gotoChatQueues','tags/:id','api.voiceMusicOnHold.delete','VIDEO.NEW_SCREENRECORDING','CreateOrEditSessionDialogController','YYYY-MM-DD\x20HH:mm:ss','arrayextensionMonitor','clear','Africa/Monrovia','MusicOnHold','questionId','strict','EditChatWebsiteAppsystemDialogController','exportSelectedLists','DisposeCallDialogController','cloudProviders/:id','src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html/import-[chunkhash].html','INTEGRATIONS.EDIT_DESKACCOUNT','ap-northeast-1','treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20','post','src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog-[chunkhash].html','goto','chatCurrentCapacity','constant','Frisian','selectedDeskConfiguration','deleteMailAccount','ivrCampaignHopperFinals','CreateOrEditFaxQueueDialogController','America/Merida','src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog-[chunkhash].html','api.jscriptyProject.update','queueCampaigns','STAFF.USERPROFILES','settings/:id','spywhatsappInteraction','voice/prefixes/:id/users','integrations/freshdesk/fields/describe','countcongestionretry','motion2.home.','VoiceRecordingController','intZendeskAccount@get','onReply','CreateOrEditSugarcrmAccountDialogController','settings/:id/logo','startcase','mapAgentsId','TOOLBAR.TURKISH','selectedFaxAccounts','token','analytics/custom_reports/:id/run','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?','loadingProgress','IntervalId','CannedAnswersController\x20as\x20vm','\x27unavailable\x27','/whatsapp','#c2d4ef','runtranscribesentimentSelectedVoiceRecordings','analytics/tree_reports/:id/clone','getCustomDashboards','cdr','detailForm','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog-[chunkhash].html','interaction\x20#','createOrEditTag','app/main/apps/sms','teams/describe','rpc/voice/channels','internalroute','onVoiceExtensionUpdate','quickFilters','\x27token\x27','id,alias','playback','statusText','accent','EditFaxAccountAppqueueDialogController','MIN\x20(','rpc@getAgents','telephone:save','chat/groups/:id/members','Australian\x20English','outbound','ha1','.result','CONFIGURATIONS','home.chat','notes','MOTIONDIALER.EDIT_HOPPER','motion.layoutStyle','grey-fg\x20icon-minus-circle','chatInteractionDownload','log','Loading...','getLists','CALLYSQUARE.NEW_ODBC','INTEGRATIONS.NEW_SUGARCRMACCOUNT','About','AllCondition\x20properly\x20created','#5c616f','createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','api.interval.update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?','accountProperty','onRemoveUserFaxQueue','EditWhatsappAccountAppgotoifDialogController','getCampaigns','src/js/modules/main/apps/tools/views/customDashboards/customDashboards.html/customDashboards-[chunkhash].html','addNewAgent','user_has_openchannel_interactions:remove','deleteChatWebsiteInteraction','INTEGRATIONS.NEW_ZENDESKACCOUNT','krkoreanfemale','integrations/vtiger/accounts/:id','myQueues','Asia/Colombo','AppZone','app.sms.smsQueues.edit','webrtc::logout','The\x20hopper\x20will\x20be\x20deleted.','CloudProvider\x20properly\x20deleted!','VtigerAccountController','../../../../../../../assets/images/avatars/customer.png','Whatsapp\x20Account','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html','\x20session','Asia/Brunei','apps.integrations.dynamics365Accounts','SYSTEM:GETintDynamics365Account','a..','deleteSelectedPlugins','dashboards/items/:id','HANGUPCAUSE_27','app/main/apps/contactmanager','goToEditState','intervalIntervals','src/js/modules/main/apps/settings/views/networks/networks.html/networks-[chunkhash].html','countnoanswerretry','SalesforceAccountsController\x20as\x20vm','duplicate','journey','SalesforceAccountController\x20as\x20vm','addNewSalesforceAccount','tag','third','delete\x20pause','exportSelectedSmsAccounts','whatsappQueueReport','es-CO','Swahili','networks/:id','icon-label','selectedSmsAccountInteractions','orientation','subStatuses','cmCustomField@get','N/A','selectedSection','apps.whatsapp.realtime','ToId','result','arraydtmfmode','DeskConfiguration\x20properly\x20deleted!','The\x20dashboarditem\x20will\x20be\x20deleted.','cm/lists/describe','msNavigation::collapse','\x27SIP/{{multipleUsers.name}}\x27','defaultPageTitle','resetViewer','SYSTEM:GETinterval','isPartialPause','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog-[chunkhash].html','Asia/Jakarta','fax/queues/:id/members','addNewSugarcrmAccount','ChineseSimplified','timeout','telephones','Least\x20Recent','editInternalRouteApp','cm_contacts','CDR(prefix)=${EXTEN:0:','CustomDashboardController\x20as\x20vm','toInteger','Fax','isActive','QueueCampaignHopperFinalsController','installing','SYSTEM:GEToutboundRoutes','SmsQueue','contactmanager','sortableTable','app/main/apps/openchannel','grey','lexregion','flow','xm-mail-content-','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?','selectAllVoicePrefixes','mohSound','api/sounds','VOICE.NEW_MOHSOUND','hideStep','createOrEditQueueCampaignHopper','patchConference','users/:id/mail_accounts','exportSelectedIntervalIntervals','upperFirst','delete\x20sound','MAIL.SELECTED_AGENTS','dialogflow_language','arraytransport','isoWeek','Report\x20field\x20properly\x20created','AgentReject','SYSTEM:GETtrigger','mail/accounts/:id/send','Fax\x20Messages','amber-A200-bg','id,field,operator,value,createdAt,updatedAt','Africa/Nairobi','integrations/desk/accounts/:id','Plugin\x20properly\x20saved!','apply','UserChatWebsite','src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog-[chunkhash].html','List\x20updated!','openchannelInteraction','America/Dawson_Creek','gotoNextStep','The\x20whatsappQueue\x20will\x20be\x20deleted.','orange-fg','team@get','addNewChatCannedAnswer','src/js/modules/main/apps/jscripty/views/projects/create/dialog.html/dialog-[chunkhash].html','icon-clock','DASHBOARDS.NOT_ASSIGNED','America/Campo_Grande','','Queue\x20Report','endTime','cannedAnswers','microphoneMute','newAgent','countglobal','CreateOrEditSquareRecordingDialogController','selectedTemplates','AgentHomeVoiceController','ko-KR','unavailable','2400','newCustomization','SmsAccounts','\x27preview\x27','insertHtml','deleted','api.inteactionMessage.get','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE','userMailQueue:remove','CreateOrEditVoiceQueueDialogController','src/js/modules/main/apps/settings/views/license/license.html/license-[chunkhash].html','Company\x20properly\x20created!','selectedQueueCampaignHopperBlacks','src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html/voicePrefixes-[chunkhash].html','api.intSalesforceAccount.save','Russell\x20(English,\x20Austrialian,\x20Male)','newReport','api.intZohoConfiguration.update','rewriteRouting','All\x20resources\x20enabled','startsWith','userFaxQueue:remove','Pacific/Marquesas','app.integrations.servicenowAccounts.edit','msMasonryItem:finishReLayout','deselectProjects','schedule','integrations/vtiger/accounts/:id/configurations','apps.mail','ilbc','installplugin','keyup','exportSelectedWhatsappAccounts','Dynamics365Account','call','completed','','selectedInternalRoutes','smsAccountApps','squareProject','AgentDashboardGeneralController','vm.query.filter','Arabic\x20(Saudi\x20Arabia)','saveMailAccountApp','Sound','Delete\x20InternalRoute','Failed\x20to\x20retrieve\x20pm2\x20processes','utc','English\x20(Australian)','delete\x20Lists','cm/companies/describe','deselectMailQueues','Delete\x20Report','endcall','Chinese\x20(China)','\x27mouseOver\x27','ChatCannedAnswer\x20deleted!','Fax\x20Account','voiceCalls','toLowerCase','outboundroute','\x27uk\x27','background','0.7','Delete\x20Plugin','gotorealtimegoto','FaxQueueagentaddController','Joanna','src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog-[chunkhash].html','#ececee','showPredictiveQueueCampaignInfo','SYSTEM:GETmailAccount','SYSTEM:GET_PAUSES','CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD','removeApi','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_TITLE','treeStructure','arraymessagesAlignment','deleteSelectedUsers','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view-[chunkhash].html','Whatsapp\x20Interaction','fax/applications/:id/clone','FaxAccountsController','verifysmtpverifysmtp','50\x20100\x20200\x20A100','getActiveItem','elementTag','getChatQueuesWaitingInteractions','permission','vm.selectedCompany','attributes','HANGUPCAUSE_17','deleteVoicemail','Report\x20properly\x20copied!','integrations/zendesk/fields/:id/clone','out','Interval','day','$translatePartialLoaderProvider','delete\x20team','addMembers','WhatsappQueue\x20updated!','QueuesVoiceRealtimeController\x20as\x20vm','audiooutput','hasIntegrationsPermissions','dateTime','newHopper','SmsAccountSmsCannedAnswersController','messaging','showOfflineMessageChatWebsiteOfflineMessage','$locationProvider','api.intFreshdeskConfiguration.save','scrollLeft','getOutboundRouteApps','addSquareProjects','Text','options','getQueueCampaignHopperHistories','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mohSounds?','updateView','api.network.save','src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog-[chunkhash].html','month','/smsAccounts','api.whatsappAccount.update','Abandoned','\x20ORDER\x20BY\x20','removeAllListeners','ChatProactiveAction\x20deleted!','Norwegian\x20(Nynorsk)','saveProject','downloadTranscribe','listFields','columnName','The\x20mailAccount\x20will\x20be\x20deleted.','red','deleteSelectedUserProfiles','+04:00','SugarcrmAccount\x20properly\x20tested','notifications/describe','addNewMailCannedAnswer','foreignKey','ctrlMethods','Swahili\x20(Tanzania)','msSplashScreen::remove','VoicePrefixesController','api.intItem.update','fr-FR','app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','Plugin','app.voice','gotoReports','Asia/Gaza','eurfinnishfemale','EditOpenchannelAccountApptagDialogController','createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','es-CL','icon-google-earth','deleteServicenowAccount','SYSTEM:GETfaxQueue','previewdialog','CreateOrEditGeneralDialogController','MusicOnHold\x20properly\x20created','api.faxAccount.save','INTEGRATIONS.NEW_DESKACCOUNT','extravar','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27penalty\x27','motion.customTheme','UserProfile\x20properly\x20cloned','webbar:answer','app.whatsapp.realtime.agents','You\x20can\x27t\x20remove\x20service\x20account','hasChildren','cm/lists/:id/contacts/csv','getQueueCampaignHopperBlacks','version@get','deleteFieldConfirm','Voicemail\x20properly\x20saved!','apps.jscripty','The\x20trunk\x20will\x20be\x20deleted.','gdpr','complete','hideLoadingIndicator','instant','The\x20list\x20will\x20be\x20deleted.','cm/lists/:id/contacts','SYSTEM:GETTAGS','selectedWhatsappAccountApps','describe','SYSTEM:GETvoiceRecording','allowDelete','userVoiceQueue:save','whatsapp/accounts/:id/users','gotodashboardgoto','Message','user_has_sms_interactions:remove','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog-[chunkhash].html','CALLYSQUARE.SELECTED_USERS','SYSTEM:LISTS_ASSOCIATION','createOrEditSugarcrmAccount','exportSelectedContexts','addNewHopper','vm.detailForm.$pristine','putOtherCallsOnHold\x20->\x20session','migration','Metric\x20properly\x20deleted!','location','chat/websites/:id/customer_avatar','iPad','getMailAccountMailCannedAnswers','SYSTEM:GETvoiceQueues','FreshdeskAccount','orange-bg','icon-text-to-speech','Tatyana','replyMessage','template_id','vtigerConfiguration','Interaction\x20has\x20been\x20tagged!','@autocomplete','users/:id/whatsapp_accounts','TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE','app.whatsapp.whatsappQueues','deselectTags','\x20has\x20been\x20deleted!','+14:00','app.plugins','\x27ringall\x27','Carmen','motion.newsAlertHide:','auenglishfemale','voice_queue_channel:remove','registerStep','asterisk','Mobile','deselectMetrics','api.chatProactiveAction.update','lastMessage','white','ZendeskAccountsController\x20as\x20vm','MAIL.REALTIME','api.chatProactiveAction.save','The\x20freshdeskConfiguration\x20will\x20be\x20deleted.','EditInboundAppinternaldialDialogController','saveMailQueue','clearDispositionSelection','Delete','api.voiceMusicOnHold.update','en-GH','sounds','HotDeskDialogController','Content\x20with\x20Toolbar','deleteExtractedReport','toggleFold','sms/queues/:id/teams','Team\x20properly\x20created','offlineForm','hasDashboardPermissions','VOICE.EDIT_OUTBOUNDROUTE','license/:id/clone','src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html/deskAccounts-[chunkhash].html','id,fullname,role','://','src/js/modules/main/apps/tools/views/triggers/create/dialog.html/dialog-[chunkhash].html','exportSelectedChatWebsiteChatCannedAnswers','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshdeskConfiguration?','cm/contacts/:id','rpc/mail/queues/waitinginteractions','autoSelectOperator','getExtractedReports','monitor','startOf','usenglishmale','Upload\x20completed','AND','IvrCampaignHopperHistoriesController','Croatian\x20(Croatia)','customDashboards','widgets','OPENCHANNEL.SELECTED_AGENTS','src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view-[chunkhash].html','ringingId','remote','\x20will\x20be\x20deleted.','CustomizationsController\x20as\x20vm','hhours','allowedStandardFields','STAFF.USERS','EditChatWebsiteAppagentDialogController','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html','LicenseController','rpcFaxQueuesWaitingInteractions','deleteSelectedQueueCampaignHopperBlacks','MOTIONDIALER.SELECTED_LISTS','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshsalesAccounts?','The\x20license\x20has\x20been\x20updated!','lt-LT','INTEGRATIONS.EDIT_VTIGERCONFIGURATION','ComposeFaxInteractionDialogController','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog-[chunkhash].html','EditInboundAppagiDialogController','INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION','deleteFaxAccount','delete\x20application','newVariable','getResults','contact_import_error','app.voice.internalroutes','actionOptions','createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','Away','jscripty/sessions/reports/:id','addNewAction','TriggerController','EU\x20(Ireland)','Intelepeer','Tatar','voicePrefix','autoClose','rpc','delete\x20FaxAccounts','penalty','selected','\x27alpha\x27','getAiTools','light-blue','globalCustomField','app/forgot','voice/extensions/:id/applications','hmac','chatInteractionTags:save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?','PhoneBar\x20API\x20Error','phoneBarEnableSettings','VoiceRecording\x20properly\x20created','chatStatus','TOOLS.CLONE_CUSTOMDASHBOARD','AccountId','America/Boise','Field\x20has\x20been\x20deleted!','onRemoveMailQueueChannel','hopperHistory\x20#','app.dashboards.custom','HANGUPCAUSE_1','startTimeAttr','showQuestionsProjectSession','msMaterialColorPickerController\x20as\x20vm','ChatWebsitecustomerAvatarController','\x27opus\x27','chat/queues/:id/clone','+09:30','whatsappMessage','duplicateContact','selectedSmsAccountApps','whatsapp/queues/:id','America/Guayaquil','true','\x27users\x27','getItem','answerRate','Times\x20New\x20Roman,Times,serif','WhatsappAccountId','14400','voicemailMessages','src/js/modules/main/apps/tools/views/variables/create/dialog.html/dialog-[chunkhash].html','chchinesemale','always','Brian\x20(English,\x20British,\x20Male)','square/messages/describe','mapKey','Macro','Realtime','pullAllBy','api.squareRecording.update','FAX.REALTIME','app.voice.inboundroutes','searchReport','Networks','htmlContent','ar-TN','selectedLanguage','OutboundRouteActionsController','campaign@get','osVersion','/inboundroutes','integration','FreshsalesAccountController\x20as\x20vm','Websites','createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','blue-grey-A200-bg','app.dashboards.general.whatsapp','\x27ASC\x27','addContacts','VtigerAccount\x20properly\x20tested','SalesforceAccount','mozNotification','QueuesChatRealtimeController','api.whatsappAccount.delete','getUserDeviceMediaExt','\x27wav49\x27','createdAt,updatedAt,id,role,fullname,name,alias,showWebBar,email,phone,mobile,userpic,password,hotdesk,autointernal,internal,loginInPause,description,dtlscertfile,dtlsprivatekey,voicemail,transport,host,nat,type,allow,callerid,context,callgroup,pickupgroup,chanspy,videosupport,extensionMonitor,chatCapacity,mailCapacity,smsCapacity,openchannelCapacity,faxCapacity,whatsappCapacity,phoneBarEnableSettings,phoneBarAutoAnswer,phoneBarAutoAnswerDelay,phoneBarRingInUse,phoneBarEnableRecording,phoneBarEnableDtmfTone,phoneBarDnd,phoneBarUnansweredCallBadge,phoneBarEnableJaws,phoneBarOutboundProxy,phoneBarUnconditional,phoneBarUnconditionalNumber,phoneBarRemoteControl,phoneBarRemoteControlPort,phoneBarExpires,phoneBarListenPort,permissions,allowmessenger,phoneBarPrefixRequired,passwordResetAt,disabled,blocked,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','Read','headers','contcts','deleteFaxAccountInteraction','Owner','remotePlayer','api.network.update','$between','catch','SYSTEM:GET_CLOUDPROVIDERS','api.intZohoConfiguration.delete','\x27right\x27','SYSTEM:DELETEwhatsappQueue','rpcChatQueuesWaitingInteractions','SYSTEM:UPDATEBLACKLIST','Contact\x20properly\x20created','integrations/zendesk/configurations/describe','triggerallConditions','Arabic\x20(Bahrain)','getInfo','loginSSO','onChangeSection','9600','app/main/apps/analytics','SIP/','getVoiceQueues','getContactLabel','stopMonitor','trunk_name','isIndeterminate','wasUserInPause','Indian/Christmas','changeSidebarTab','availableStates','mail/reports/transfer/:id/clone','This\x20Year','closest','src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html/view-[chunkhash].html','INTEGRATIONS.ZOHOACCOUNTS','src/js/modules/main/apps/chat/views/chatWebsites/edit/view.html/view-[chunkhash].html','Accounts','TOOLS.VARIABLES','Not\x20Found','selectedUserProfiles','DASHBOARDS.MYCONTACTS','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','Session\x20saved','src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager-[chunkhash].html','QueueParamsMotionDialerRealtimeController','status_code','mailInteractions','deleteInterval','FAX.SELECTED_TEAMS','app.tools','Firefox','squareReportDetail','Hotmail','America/North_Dakota/New_Salem','plugins','deleteOpenchannelAccountOpenchannelCannedAnswer','keyBy','SmsQueue\x20properly\x20saved!','addAgents','api.item.delete','selectedItems','French','HANGUPCAUSE_38','$location','Delete\x20ServicenowAccount','User\x20API\x20key\x20updated!','The\x20schedule\x20will\x20be\x20deleted.','fullPath','src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html/view-[chunkhash].html','app.tools.cannedAnswers','canned_answers/:id','Courier\x20New,Courier,monospace','\x27g729\x27','\x27voice_recordings\x27','STAFF.EDIT_USER','/plugins','runtranscribesentimentruntranscribesentiment','whatsappInteraction:update','smsCannedAnswers','icon-playlist-plus','SYSTEM:GETopenchannelQueue','FreshsalesAccounts','-id','createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','FAX.FAXACCOUNTS','Oromo','America/Argentina/Salta','Delete\x20Telephone','populateResults','terminate','&token=','*,*,*,*','integrations/dynamics365/configurations/:id/descriptions','triggers/describe','api.campaign.update','full','createOrEditTriggerAllCondition','America/Rio_Branco','faxPause','allResourcesEnabled','setPermission','AgentsMailRealtimeController','Delete\x20OpenchannelAccount','delete','Chinese\x20(Hong\x20Kong)','es-VE','onDispositionChange','maxDateRange','/freshsalesAccounts','appsecret','api.intFreshdeskConfiguration.delete','icon-checkbox-marked-circle','chat/applications/:id','cm/hopper_black/describe','CreateOrEditDynamics365ConfigurationDialogController','queueCampaignHopperBlacks','delete\x20openchannelQueue','saveSugarcrmConfiguration','setCurrentUser','groupId','app.motiondialer.queueCampaigns','dialPredictiveIntervalMaxThreshold','openchannelQueue','findBy','onUserVoiceQueue','deleteSelectedVoicePrefixes','MailRealtimeController\x20as\x20vm','src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html/dialog-[chunkhash].html','angucomplete-alt:clearInput','images','iframe','apps.integrations','delete\x20zendeskAccount','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20dynamics365Accounts?','webkitNotification','accesskeyid','Persian','Voicemail','api.mailAccount.update','fax/reports/queue/describe','gotoif','Message\x20deleted!','America/Cambridge_Bay','src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','\x22\x20is\x20not\x20defined!','SYSTEM:DELETEsmsAccount','src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog-[chunkhash].html','deleteSmsCannedAnswer','Validation\x20error','pm2@get','addNewVtigerAccount','openchannel/applications/describe','voiceAgentReport','moveContactsIvrCampaignHopperFinal','updateCondition','lastMessageAt','Trunk\x20properly\x20cloned','tTxX','get','DeskAccountController','-05:00','DispositionsController\x20as\x20vm','selectAllUserProfiles','newWhatsappCannedAnswer','id,name,save_name','MsWidgetEngineWebReportController','TOOLS.TEMPLATES','America/Atikokan','selectAllIvrCampaigns','arrayleavewhenempty','Teams\x20association\x20has\x20been\x20updated!','Turkish','OpenchannelAccount','deleteSelectedMusicOnHoldMohSounds','spyfaxInteraction','ms-color-picker-button','/contactmanager','id,uniqueid,calleridnum,statedesc,starttime,disposition','openchannel/messages/:id','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd-[chunkhash].html','Audio_Files','integrations/zendesk/fields/describe','binding','integrations/servicenow/accounts/:id','/smsQueues','voice/recordings/:id/transcribe','setting','X-callback-url:\x20','getReceivers','selectAllOpenchannelAccounts','GET_USER','SYSTEM:UPDATEVOICERECORDING','Europe/Budapest','analytics/field_reports/describe','US\x20City/States','selectAllNetworks','collapse','MusicOnHoldController\x20as\x20vm','/chanSpies','integrations/zoho/fields/:id/clone','VOICE.EDIT_','api.trigger.save','MxGraphImportXMLController','vtigerAccounts','allReportsSelected','recipient','InboundRoutes','toggleCollapsed','OpenchannelAccountOpenchannelCannedAnswersController','app.voice.voiceQueues','turn:','Delete\x20ServicenowConfiguration','FORGOTPASSWORD.LINK_SENT','addVoiceQueuesChannels','Interval\x20properly\x20deleted!','VOICE.EDIT_MOHSOUND','Smtp\x20not\x20verified!\x20Remember\x20to\x20save\x20before\x20to\x20verify!','triggers/:id/actions','Authorization\x20error','America/Cuiaba','integrations/servicenow/accounts/:id/fields','container','phoneBarExpires','User\x20properly\x20saved!','ImportContactsDialogController','pieChart','gotoFreshsalesAccounts','app.mail.mailSubtatuses','rtl','mailInteraction:update','Medium','delete\x20smsCannedAnswers','showTooltip','CreateOrEditMohSoundDialogController','attrVoiceQueues','app.login','selectedIvrCampaignHopperFinals','cm/contacts/merge','first','api.sound.save','\x27paused\x27','variable.name','mouseenter','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?','csv','UserList','MOTIONDIALER.EDIT_QUEUECAMPAIGN','EditoutboundAppcustomDialogController','id,name,level,ParentId','session','Astrid\x20(Swedish,\x20Female)','CreateOrEditSmtpDialogController','ChanSpiesController','newSmsQueue','Tag\x20properly\x20saved!','smsQueues','fax/accounts/:id','id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','getFaxQueues','isSupported','AgentController\x20as\x20vm','integrations/vtiger/configurations/:id/clone','integrations/freshdesk/accounts/describe','DASHBOARDS.ABANDONED','src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general-[chunkhash].html','msMasonryItem:startReLayout','forgot',',xX,,,300,,,,,','Antarctica/Syowa','createOrEditListCustomField','interval\x20#','selectedReport','daysOfMonth','Asia/Dushanbe','The\x20customization\x20will\x20be\x20deleted.','loading','saveSmsCannedAnswer','The\x20voicePrefix\x20will\x20be\x20deleted.','app.whatsapp.whatsappAccounts.edit','delete\x20interactions','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog-[chunkhash].html','TOOLBAR.STAY_LOGGED','Inactive','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27loose\x27','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog-[chunkhash].html','delete\x20smsAccount','inReplyTo','src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.html/dialog-[chunkhash].html','Slovak\x20(Slovakia)','applications','dayOfWeekFrom','\x27turn\x27','bind','Re:\x20','HopperFinal\x20deleted!','app.voice.realtime.trunks','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html','openchannel/interactions/:id/download','replaceWith','deleteChatWebsiteOfflineMessage','\x27plivo\x27',':8089/ws','apps.help.about','putOtherCallsOnHold','Romanian','AgentHomeMyContactsController','/queue_params','\x27rrmemory\x27','WHATSAPP.EDIT_','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html','\x27intelepeer\x27','src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog-[chunkhash].html','QueueCampaignteamaddController','uploadComplete','chat/interactions/:id/clone','CloudProvidersController','Disabled','createOrEditDisposition','integrations/zendesk/accounts/:id','deleteListCustomField','$gte','required','defaultEntry','requestLicense','setActiveItem','Upload\x20error','app/header','America/Argentina/San_Luis','onExpand','app.navigation','apps.voice.inboundroutes','integrations/freshsales/configurations/:id/subjects','selectedItemChange','clone','Swedish\x20Female','campaigns/:id/hopper_histories','arraysubtractUnit','Notification\x20API\x20not\x20supported','deleteDeskConfiguration','Geraint\x20(English,\x20Welsh,\x20Male)','deleteSelectedIvrCampaignHoppers','testtestintegrationaccount','MsFormWizardController','onUpdateFaxQueue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?','INTEGRATIONS.EDIT_SERVICENOWCONFIGURATION','setToggleItem','userWhatsappQueue:save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20companies?','singular','createdAt,updatedAt,id,Contact.firstName','Comic\x20Sans\x20MS','\x27zoho.com\x27','available','src/js/modules/main/apps/dashboards/views/general/user/user.general.html/user.general-[chunkhash].html','SYSTEM:GETcmCompany','voiceChanSpy','High','sumDuration','ZohoAccount\x20properly\x20created','getTriggers','mobile','\x27always\x27','fromTemplate','saveSection','Sinhalese','createdAt,updatedAt,id,name,description,table,parent,conditions,joins','app.forgot','analyticMetric@get','eurcatalanfemale','onRemoveUserMailQueue','selectedInboundRouteApps','callback','/users','Delete\x20Project','interceptors','when','multipleChoices','\x27files\x27','America/Indiana/Petersburg','exportSelectedQueueCampaigns','MARKETPLACE.NEW_PLUGIN','MARKETPLACE.PLUGINS','Azerbaijani','sms/applications/:id','api.intFreshsalesConfiguration.delete','vm.selectedTags','integrations/zoho/fields/:id','apps','Australia/Perth','refresh','disposeInteraction','deleteSmsQueue','Asia/Riyadh','ContactId','saveHopper','userForm','src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html/dialog-[chunkhash].html','The\x20outboundroute\x20will\x20be\x20deleted.','chat/reports/transfer/:id','DASHBOARDS.SELECT_TAG','timeoutId','\x27chat_websites\x27','none','$endsWith','full-height','/about','app/reset','getQueues','dateOfBirth','callStatuses','integrations/freshsales/accounts/:id/configurations','TOOLS.EDIT_CUSTOMDASHBOARD','createdAt,updatedAt,id,name,mode,directory,application,format,sort','QueueCampaignController','SugarcrmAccountsController','/api/chat/interactions/','app.voice.realtime','COMMA','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view-[chunkhash].html','onUserUpdate','\x27alternate\x27','intZohoAccount','mediaConstraints','getExtension','{{millis}}','CALLYSQUARE.EDIT_SQUARERECORDING','INTEGRATIONS.SUGARCRMACCOUNTS','omit','msDatepickerFixConfig','Interlingua','icon-console','queryMessage','openchannelQueue:remove','selectedVoicemails','exportSelectedVtigerAccounts','License','\x27fr\x27','vm.selectedList','SYSTEM:DELETEmailSubstatus','Are\x20you\x20sure\x20want\x20to\x20restart\x20the\x20plugin\x20attached\x20process?','ReferAttendedDialogController','teamadddialog','handleKeydown','\x27custom\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?','\x27never\x27','Dispositions','delete\x20field','getFields','/customDashboards','src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','Priority','openchannel/queues/:id','msAdvancedSearch','New_Tab','api.intSalesforceAccount.delete','$window','numbersto999','addConfiguration','app.sms.realtime.agents','EditFaxAccountAppintervalDialogController','MusicOnHoldsController\x20as\x20vm','{{\x20name\x20}}\x20<{{\x20email\x20}}>','src/js/modules/main/apps/analytics/views/metrics/metrics.html/metrics-[chunkhash].html','cmHopper','#2e62b1','/license','searchTextChange','members/reports/:id','INTEGRATIONS.EDIT_SALESFORCECONFIGURATION','Dynamics365Configuration\x20properly\x20saved!','InboundRoute\x20properly\x20deleted!','Company\x20name','delete\x20agent','InboundRoute','app.mail.mailQueues.edit','pause@get','src/js/modules/toolbar/changepassword/changepassword.html/changepassword-[chunkhash].html','toggle','getSmsQueuesWaitingInteractions','IvrCampaignresetlistController','FaxAccountsRealtimeController','mail/reports/queue/:id/clone','VIDEO.WRONG_EXTENSION','getRegisteredPalettes','\x27star\x27','newIvrCampaign','hue-3','Atlantic/Madeira','SYSTEM:GET_CHATACCOUNTS','createOrEditOutboundRoute','id,name,AccountId','Round\x20Robin','stateService','triggers/:id','deselectTeams','addNewContext','assets/images/business/queueCampaigns.jpg','Whatsapp\x20Queues','TOOLS.EDIT_SOUND','closeTab','param','importXML','Anonymous','api.user.changePassword','voice/queues/:id/hoppers','red-300-fg\x20icon-phone-hangup','\x2718\x27','msResponsiveTable','remotePlayerId','getUnread','Clickatell','vi-VN','chat/websites/:id/canned_answers','{color}|*','OutboundRoute\x20updated!','deleteSelectedOpenchannelQueues','users/:id','app.voice.internalroutes.edit','ivrTotalCallsDays','EditSmsAccountAppintervalDialogController','functions','sw-KE','horizontalNavigation','VoiceExtensionId','cm/hopper/preview','voicemails','app.dashboards.general.user','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog-[chunkhash].html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelAccounts?','selectedTags','mwForm.pageEvents.pageCurrentChanged','api.intDynamics365Account.update','isHiddenField','configurations','id,name,internal,fullname','ParentId','SYSTEM:DELETEcampaign','faxAccountApp','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','onSaveOpenchannelQueue','integrations/sugarcrm/accounts/:id/clone','TOOLS.PAUSES','saveChatProactiveAction','Announce_Overrides','VoiceRecording','@id','vm_bull.query.filter','Last\x20Year','api.mailSubstatus.delete','Australia/Brisbane','Integrations','\x27beepall\x27','SYSTEM:GETcmList','Cannot\x20upload\x20the\x20sound','ListId','app.mail.realtime.queues','app.dashboards.general.chat','take','Turkmen','outboundDropRate','voiceStatusTime','userProfile/resources/:id/clone','placed','group','selectedOpenchannelAccountInteractions','America/Rankin_Inlet','SYSTEM:queueCampaign.RESETLIST','formData','unpause','saveServicenowAccount','$log','progresslogin','Chinese\x20Male','South\x20America\x20(São\x20Paulo)','selectedWhatsappAccountInteractions','Jacek\x20(Polish,\x20Male)','apps.tools.variables','300\x20400','analyticCustomReport','INTEGRATIONS.NEW_DYNAMICS365ACCOUNT','integrations/freshsales/accounts/:id','deleteSelectedMetrics','Zoho','fax/accounts/:id/interactions','ChatWebsite\x20updated!','deleteChatQueue','mapValues','gotoDynamics365Accounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshdeskAccounts?','lime-A700','SYSTEM:DELETEsmsQueue','whatsapp/accounts/:id/canned_answers','GET_INTERVAL','DashboardItem\x20properly\x20deleted!','mailAccounts','selectedDisposition','VoiceRecordingsController','General\x20properly\x20created','maxdigit','newCustomDashboard','European\x20Norwegian\x20Female','loadLastMessage','$translate','gotoStep','JscriptyProjectController\x20as\x20vm','baseUrl','CHAT.NEW_CHATWEBSITE','cm/companies/:id','ServicenowConfiguration\x20properly\x20deleted!','The\x20cannedAnswer\x20will\x20be\x20deleted.','onInteractionOpen','delete\x20FreshdeskAccounts','\x27sv\x27','ClickSend','hopperHistory','exportSelectedPauses','element','unreadGroupMessages','Filiz\x20(Turkish,\x20Female)','fax/queues/:id/clone','app.core','whatsappInteractionTags:save','api.chatWebsite.delete','Mozilla','user@get','Chat\x20Report\x20Queue','1st','UpdateLicenseDialogController','WebReportDialogController','DASHBOARDS.ATTENTION','app.whatsapp.whatsappQueues.edit','createOrEditTelephone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20telephones?','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20templates?','api.intZendeskConfiguration.save','uploadPlugin','addNewCustomDashboard','newTrunk','\x27mail_interactions\x27','src/js/modules/main/apps/fax/views/faxQueues/edit/view.html/view-[chunkhash].html','/reports','SYSTEM:GET_OUTBOUNDROUTES','msShortcuts','delete\x20Reports','deleteVoiceQueue','avgHoldTime','Dialer\x20Hopper\x20Logs','currentXML','intSalesforceAccount','intDynamics365Account','onDateRangeInit','chat/interactions/:id/vidaoo','shortTime','ChatQueueteamaddController','rpcSmsQueues','src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues-[chunkhash].html','\x27xlsx\x27','xorWith','deleteContact','getFreshdeskAccounts','schedules/describe','onSaveUserChatQueue','api.openchannelMessage.accept','Are\x20you\x20sure?','cmCompany','&autoStart','America/Caracas','Are\x20you\x20sure\x20want\x20to\x20run\x20the\x20schedule?','Edit_permission','UserProfileController','openchannelCannedAnswer','addNewFreshsalesAccount','whatsappAccountWhatsappCannedAnswers','filterByTags','Delete\x20DeskConfiguration','blue-300-fg\x20icon-phone-outgoing','Italian','CreateOrEditVtigerAccountItemDialogController','SETTINGS.SMTP','Salesforce','realtime','voiceQueueReport:save','outboundrouteid=','FaxQueue\x20updated!','300','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20userProfiles?','auto\x20answer\x20enabled\x20after:','fileSuccess','VoiceRecordingsController\x20as\x20vm','MsShortcutsController','dispositions','dec','id,phone,scheduledat,recallme,priority,UserId,OwnerId','SYSTEM:DELETEopenchannelQueue','newFaxAccount','InboundRouteActionsController','smsPause','zoho','reserved','es-PY','addNewSmsAccount','vm.queryFinal.filter','extraHeaders','integrations/dynamics365/accounts/:id/configurations','SYSTEM:DELETEcmCompany','deleteSelectedFreshsalesAccounts','exportSelectedPlugins','pauseTypeFilter','delete\x20extractedReport','focus','notification:save','getChatWebsiteInteractions','DeskAccount\x20properly\x20created','blue-grey-fg','imagesLoaded','selectAllODBC','unhold\x20->\x20session','disposition','UpdateDialogController','selectedSubjects','Chat\x20Messages','SYSTEM:GETchatWebsite','cannedAnswer','yearsS','refer\x20->\x20session','toJSON','MOTIONDIALER.ALL_AGENTS','userProfile/sections/describe','exportSelectedOpenchannelAccounts','/whatsappAccounts','deleteMetric','mailTransferReport','contactSearch','selectAllChatWebsites','createOrEditchanSpy','Turkish\x20(Turkey)','selectedIntervalIntervals','\x27IN\x27','saveMailCannedAnswer','+08:45','SYSTEM:DELETE.customDashboard','delete\x20trunk','ms-navigation-horizontal-node','Arabic\x20(State\x20of\x20Palestine)','\x20will\x20be\x20overwritten\x20by\x20the\x20fields\x20of\x20the\x20contact\x20#','api.cmCompany.delete','editedat','ProjectcloneController','SYSTEM:DELETEinterval','users','EditInboundAppqueueDialogController','GlobalCustomFieldsController','getRemoteStreams','webpackChunkmotion_frontend','src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds-[chunkhash].html','FaxAccountController','Connectel','newDynamics365Account','api.dashboardItem.update','import','mailPause','selectAll','ivrCampaignHopperBlacks','getOutboundRoutes','unionBy','round','AgentsSmsRealtimeController','voiceQueuesLog/describe','themes','/openchannelQueues','MsWidgetController','force_rport','monthNumber','Georgian\x20(Georgia)','Customizations','mail/out_servers/:id/clone','DASHBOARDS.SELECT_CAMPAIGN','selectedIvrCampaignHopperBlacks','delete\x20zohoAccount','filterSingleByTags','results','Reset\x20Succesfull','datetime','template@get','Start\x20Video\x20Call','CreateOrEditDeskAccountItemDialogController','api.intZendeskAccount.update','mozHidden','src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies-[chunkhash].html','OpenchannelQueue\x20properly\x20created','selectedVtigerConfiguration','FaxQueuesController\x20as\x20vm','msNavIsFolded','freshsalesConfiguration','TOOLS.TRIGGERS','saveOpenchannelAccountApp','sms/accounts/:id/interactions','apps.voice.realtime','SYSTEM:GET_TAGS','fresh','chat/queues/:id/users','Russian\x20Male','api.voiceQueue.clone','eurturkishmale','Please\x20use\x20only\x20json\x20files','uploadSound','scheduledCalls','America/Argentina/La_Rioja','onRemoveChatQueueChannel','Outlook365','DeskConfiguration\x20deleted!','useLoader','queryHopper','firstName','shutdown','register','app.integrations.vtigerAccounts.edit','newExtractedReport','Extension','id,fullname,internal','browserVersion','ms-navigation-folded\x20ms-navigation-folded-open','\x27mail_accounts\x27','newMailAccount','/companies','fax/accounts/:id/clone','expandAnimation','editHopper','Delete\x20Dynamics365Account','version/restart','Asia/Kamchatka','Widget\x20deleted!','The\x20chanSpy\x20will\x20be\x20deleted.','startTime','app.tools.trunks.edit','CHAT.EDIT_','America/Argentina/Mendoza','.ms-nav-button','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27loose\x27','prefix','TOOLBAR.WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE','salesforceAccount','CALLYSQUARE.NEW_PROJECT','closeDialog','selectedGlobalCustomFields','DESC','api.intServicenowConfiguration.update','Campaigns','mp3','MMM\x20d,\x20y\x20h:mm\x20a','Phone\x20number','FreshdeskAccount\x20properly\x20created','fromUrl','SYSTEM:GETintFreshdeskAccount','TOTAL','integrations/reports/:id','getOpenContacts','AgentHomeContactsController','\x27pt-br\x27','rule','secToTime','deleteZohoConfiguration','ListController\x20as\x20vm','localHold','Start\x20new\x20recording','applyTo','SYSTEM:DELETEopenchannelAccount','integrations/freshsales/configurations/:id/fields','PrefixDialogController','Weight\x20Random','/api/chat/websites/:id/avatar','EditoutboundAppoutbounddialDialogController','voice/recordings/:id/clone','rgba','sumHoldTime','windowHeight','app.tools.pauses','authInterceptor','unit','src/js/modules/main/apps/tools/views/triggers/triggers.html/triggers-[chunkhash].html','Restore\x20Contact','onRemoveUserOpenchannelQueue','\x27whatsapp_messages\x27','passwordPattern','API\x20reject\x20message\x20not\x20found:\x20','length','team','saveTag','globalStatus','List','css','ms-navigation-item','whatsappAccountApps','Never','tags/describe','CreateOrEditMetricDialogController','Agent\x20logout','VOICE.NEW_OUTBOUNDROUTE','zip','inboundrouteApp','saveAllCondition','TOOLS.EDIT_PAUSE','Invalid\x20list\x20name.','MusicOnHold\x20properly\x20saved!','wholerow','isSame','analyticExtractedReport','users/:id/queues_rt','openchannelAccountOpenchannelCannedAnswers','TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE','dashboard@get','md5secret','Whatsapp\x20Report\x20Queue','^msNav','RunReportDialogController','ms-nav-folded\x20ms-nav-folded-open','deselectChanSpies','SYSTEM:GETLISTS','English\x20(Ghana)','getOpenchannelAccountOpenchannelCannedAnswers','SYSTEM:GETtags','start3WayConf','conditions','delete\x20company','voiceQueue','deleteSelectedTags','agentCapacity','addNewSalesforceConfiguration','addApplications','app.fax.realtime.agents','smsAccounts','whatsapp/interactions/:id/tags','\x27clicksend\x27','getTriggerActions','analytics/custom_reports/:id/clone','Email\x20Account','FreshdeskAccount\x20properly\x20tested','src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','api.trunk.update','newSugarcrmConfiguration','PUT','DASHBOARDS.NEW_CONTACT','addItem','WhatsappQueuesController\x20as\x20vm','api.chatGroup.delete','yue-Hant-HK','minutes','intDynamics365Field','hoursS','WhatsappRealtimeController','\x27ringing\x27','currentconferenceSessions','delete\x20offlineMessage','stop','Companies','intServicenowAccount@get','hour','Basic','toUpperCase','api.mail.account','delete\x20OpenchannelQueues','deselectAiTools','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?','md-amber-200-bg','VIDEO.CANT_DOWNLOAD_THIS_FILE','VOICE.ALL_TEAMS','apps.settings.cloudProviders','api.smsAccount.delete','exportSelectedNetworks','\x27months\x27','deskAccount','SugarcrmAccount\x20properly\x20created','Report\x20updated!','squareRecordings','delete\x20schedule','opus','dd\x20MMM\x20yyyy','setSelectedDate','TrunksVoiceRealtimeController\x20as\x20vm','DASHBOARDS.SELECT_QUEUE','','\x27report_chat_queue\x27','operator','STARTS_WITH','deselectSmsQueues','VOICE.EDIT_INTERNALROUTE','src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts-[chunkhash].html','IvrCampaigncloneController','hue','Fields\x20copied!','GET','getChanSpies','Dynamics365AccountsController','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE','intVtigerConfiguration','Supported\x20extensions:\x20','custom','selectedReports','ChatWebsiteScriptController','delete\x20project','dashboard:save','DASHBOARDS.CANCEL','name','getMusicOnHolds','secondLevelDisposition','getResponseSheet','Mads\x20(Danish,\x20Male)','\x27{{voiceMail.mailbox}}@from-voicemail\x27','callysquare','Map','exportSelectedTriggerAnyConditions','rpc/voice/channels/:uniqueid/mixmonitor','onMessageUpdate','Agentchange_avatarController','es-UY','User','fas\x20fa-robot','gotoZohoAccounts','eurturkishfemale','src/js/modules/main/apps/tools/views/schedules/create/dialog.html/dialog-[chunkhash].html','getDateFromString','deleteTelephone','selectAllChanSpies','office2013','describeTable','vm.query','ZendeskAccountController','NO\x20AUTH','opera','exportSelectedTriggerAllConditions','MyBody','Position','STAFF.EDIT_TEAM','Smtp\x20verified!','id,name,metric,table','msNavigationAgentService','isMobile','autoStart','url','\x27E\x27','America/Grand_Turk','jscripty/answers/reports/:id/clone','EditFaxAccountAppgotopDialogController','Motion\x20WebRTC\x20Bar\x200.2.0','Europe/Helsinki','userProfileSection@get','whatsapp/reports/queue/:id/clone','deselectVoicePrefixes','/api/settings/1/logo_login','getChatQueues','msDialogRecording','countdownattr','endRangeValue','voice/mails/messages/:id/clone','disposeCall','queueCampaign','FooterController','The\x20inboundroute\x20will\x20be\x20deleted.','pcConfig','Georgia,serif','DropRate','Chinese\x20Female','newSalesforceAccount','Africa/Maputo','intSalesforceAccount@get','goToFaxAccount','chat/groups/:id/messages','exportSelectedQueueCampaignHopperBlacks','Gujarati','unreadTotalGroupMessages','DASHBOARDS.FRI','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20offlineMessage?','countBy','QueueCampaignHoppersController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customFields?','YYYY-MM-DDTHH:mm:ssZ','MsWidgetEnginePieChartController','America/Pangnirtung','onConnect','mail_queue:save','users/:id/sms/interactions','empty','AgentsController','osName','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20project?','MxGraphUpdateInfoController','/teams','||FIELD||OLD||NEW||\x0a','hopperFinal','instances','deleteDynamics365Configuration','
','addNewVtigerConfiguration','runsentimentruntranscribesentiment','width:\x20265px;','cm/hopper_final/voice/queue/countAttributes/:id','Auth','saveVtigerConfiguration','canTransfer','+=400','createOrEditCloudProvider','customTree','The\x20theme\x20\x22','msTimezone','DASHBOARDS.SELECT_READ_UNREAD','America/Argentina/Tucuman','America/Jamaica','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','api.intZohoAccount.delete','UserSmsDashboardGeneralController\x20as\x20vm','src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html/freshsalesAccounts-[chunkhash].html','Africa/Tripoli','grey-fg\x20icon-phone-hangup','$gt','caenglishfemale','ContactsController','SYSTEM:GETfaxAccounts','deleteFreshdeskAccount','foreignTable','propertiesExtra','','deselectSquareRecordings','rpc@getSmsQueues','SMS\x20Messages','g723','Invalid\x20company\x20name.','md.data.table','MsNavigationHorizontalNodeController','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE','\x27ilbc\x27','\x27newTab\x27','temporarilyIgnoreMouseEvents','IvrCampaign\x20updated!','\x27US\x27','newSmsCannedAnswer','TOOLS.EDIT_CANNEDANSWER','deleteReport','ChatWebsitelogoController','Mailbox@Context','odbc','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?','composeSmsInteraction','\x270\x27','The\x20max\x20allowed\x20size\x20is\x20','wed','warning','api.tag.save','Telugu\x20(India)','ODBC','integrations/dynamics365/fields/:id','America/Nassau','SYSTEM:GET_VOICEMAILS','voiceContext','src/js/modules/header/layouts/vertical-navigation/header.html/header-[chunkhash].html','Asia/Choibalsan','marketplace','#tab-container','Company\x20properly\x20saved!','api.intDeskAccount.update','timer-clear','Atlantic/Canary','Set','The\x20status\x20will\x20be\x20changed\x20to:\x20','deleteHopper','voiceExtension:update','deleteSelectedTriggerAnyConditions','TriggerAllConditionsController','AEC','green-300-fg\x20icon-phone-in-talk','List\x20properly\x20saved!','smsAccountInteractions','\x27auto\x27','api.voiceContext.delete','isCompatibleBrowser','src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts-[chunkhash].html','TOOLS.SOUNDS','Error\x20creating\x20queue!','700','Basque\x20(Spain)','addNewPause','The\x20','LIKE','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE','MsStepper','ivrAnswerCallsDay','xAnswerMode','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html/dialog-[chunkhash].html','material','lastAssignedTo','onSaveSmsQueueChannel','api.disposition.update','VOICE.NEW_INBOUNDROUTE','gotoQueueCampaigns','uploadError','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27no\x27','getWhatsappAccountLabel','/*\x20Content\x20hack\x20because\x20they\x20wont\x20fix\x20*/\x0a/*\x20https://github.com/angular/material/pull/8067\x20*/\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-1,\x0amd-content.md-@themeName-theme.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue1Color;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-2,\x0amd-content.md-@themeName-theme.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue2Color;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-3,\x0a\x20md-content.md-@themeName-theme.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue3Color;\x0a}\x0a\x0a/*\x20Text\x20Colors\x20*/\x0a[md-theme=\x22@themeName\x22]\x20a\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultColor;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast4;\x0a}\x0a\x0a/*\x20Primary\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryDefaultColor;\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue1Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue2Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue3Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast4;\x0a}\x0a\x0a/*\x20Primary\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentDefaultColor;\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue1Color;\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue2Color;\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue3Color;\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast4;\x0a}\x0a\x0a/*\x20Accent\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnDefaultColor;\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue1Color;\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue2Color;\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue3Color;\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast4;\x0a}\x0a\x0a/*\x20Warn\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundDefaultColor;\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue1Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue2Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue3Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast4;\x0a}\x0a\x0a/*\x20Background\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Color\x20!important;\x0a}','deselectDynamics365Accounts','mail/queues/:id/members','Atlantic/Reykjavik','$mdColorPalette','api.intDeskAccount.delete','enableUncompleteSave','use','delete\x20hoppers','/networks','paginate','controls','QueueParamsMotionDialerRealtimeController\x20as\x20vm','min','Delete\x20Voicemail','QueueId','teams/:id/users','voice/mails/messages/:id','Lotte','ja-JP','icon-tablet','api.voiceQueue.save','INTEGRATIONS.NEW_FRESHDESKCONFIGURATION','api.faxQueue.delete','api.voiceQueue.getBlackLists','SETTINGS.EDIT_CLOUDPROVIDER','ZendeskAccount\x20properly\x20tested','getProjectSessions','\x27cm_lists\x27','CSV\x20import\x20process\x20stopped!','boxed','variablesById','integrations/zendesk/configurations/:id/fields','UserProfilesController','data4','integrations/sugarcrm/fields/:id','Dynamics365Configuration\x20properly\x20created','Pause','extractedReport','','-08:00','Malayalam\x20(India)','icon-apps','voiceMail','exportSelectedTriggers','selectAllFaxQueues','isStepNumberValid','$setDirty','getContexts','404','deleteQueueCampaignHopperFinal','ExtractedReport\x20properly\x20deleted!','Contact\x20deleted!','Project','deleteAgent','Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?','outboundDropCallsDayTimeout','Hong\x20Kong\x20Cantonese\x20Female','savePlugin','onRemove','getClass','SYSTEM:GETUSERS','composeWhatsappInteraction','communications','America/Argentina/Ushuaia','apps.whatsapp.whatsappQueues','\x22\x20err:','Asia/Yekaterinburg','TOOLS.NEW_TAG','api.schedule.update','openMailDraft','vm.search','app.chat.realtime.agents','src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html/dialog-[chunkhash].html','CompanyController','DASHBOARDS.UNKNOWN','src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','anySecondLevelDisposition','CreateOrEditActionDialogController','addNewSmsQueue','ms-form-wizard-form','selectAllVtigerAccounts','createOrEditAgent','permissions','message','viber','integrations/zendesk/accounts/:id/clone','$lte','Team\x20properly\x20deleted!','last','MxGraphDialogController','record','CreateOrEditVariableDialogController','selectedTelephones','API:','addCondition','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?','src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog-[chunkhash].html','cutdigits','trunk@get','saveLists','userChatQueue:save','bg-BG','countbusyretry','getTelephones','voice/queues/:id/users','selectedContacts','Japanese\x20(Japan)','\x27report_jscripty_answers\x27','sms','Yahoo','eurdutchfemale','openFromEditor','interactions','selectedChatWebsiteInteractions','respectItemOrder','conf','AgentHomeDashboardMultiChannelFaxController','ChatQueue\x20properly\x20deleted!','getDescriptions','from-sip','trunk.name','app/main/apps/jscripty','eurfrenchfemale','hu-HU','src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions-[chunkhash].html','endOfConversation','CONTACTMANAGER.NEW_COMPANY','addNewZohoAccount','escapeToClose','exportSelectedInboundRoutes','auth/local/reset/:token','SYSTEM:UPDATEVOICECALLREPORT','Format\x20Error','deleteOpenchannelCannedAnswer','uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','indexOf','finish','getFaxAccounts','aws_bot_name','toggleAll','Context\x20properly\x20created','userChatQueue:remove','Pacific/Guam','ruri','deleteInboundRouteApp','Delete\x20QueueCampaign','api.disposition.delete','VOICE.NEW_CHANSPY','Delete\x20dispositions','filterByIds','$mdMenu','injector','mwFormUtils','America/Argentina/Buenos_Aires','isValueByCondition','CreateOrEditListDialogController','Lucida\x20Sans\x20Unicode','toggleClass','status','ceil','STAFF.TEAMS','saveCloudProvider','metrics','CONTACTMANAGER.SELECT_LIST','setCurrentStep'];(function(_0x573ed4,_0x175277){var _0x5325a1=function(_0x14c10d){while(--_0x14c10d){_0x573ed4['push'](_0x573ed4['shift']());}};_0x5325a1(++_0x175277);}(a0_0x1752,0x7b));var a0_0x5325=function(_0x573ed4,_0x175277){_0x573ed4=_0x573ed4-0x0;var _0x5325a1=a0_0x1752[_0x573ed4];return _0x5325a1;};var _0x5d9f5e=a0_0x5325;(self[_0x5d9f5e('0x252a')]=self[_0x5d9f5e('0x252a')]||[])[_0x5d9f5e('0xb76')]([[0x8f],{0x1efd:(_0x14c10d,_0x34f29e,_0x59426a)=>{var _0xb635d2=_0x5d9f5e;'use strict';var _0x37544f=_0x59426a(0x304);_0x206020[_0xb635d2('0xb0c')]=[_0xb635d2('0xabd')];function _0x206020(_0x98eaa4){var _0x276832=_0xb635d2;_0x98eaa4[_0x276832('0x23ae')]['push']('authInterceptor');}const _0x1badd1=_0x206020;_0x1121b0['$inject']=[_0xb635d2('0x908')];function _0x1121b0(_0x84ab85){var _0x1e1908=_0xb635d2,_0x37a372={'to':function _0x46d5c4(_0x2b55c9){return _0x2b55c9['authenticate']===!![];}},_0x3dd71c={'to':function _0x52dab3(_0x3b881d){var _0x52fa54=a0_0x5325;return _0x3b881d[_0x52fa54('0x2623')]!==_0x52fa54('0x2322');}},_0x164c82={'to':function _0x3b0184(_0x5612a7){return _0x5612a7['permissionId'];}},_0x2ddb7f={'to':function _0x49f24a(_0x59c0b8){var _0x325f58=a0_0x5325;return _0x59c0b8[_0x325f58('0x4ec')][_0x325f58('0x2623')]===_0x325f58('0xb1a');}},_0x508b6a=function _0x1f9bcd(_0x333a9b){var _0x4de86f=a0_0x5325,_0x34a696=_0x333a9b[_0x4de86f('0x282c')]()[_0x4de86f('0x22d5')]('Auth'),_0x41656c=_0x333a9b[_0x4de86f('0x16de')]['stateService'];return!_0x34a696[_0x4de86f('0x299')]()?_0x41656c['target'](_0x4de86f('0x2322'),undefined,{'reload':!![]}):_0x34a696['retrieveUser']()[_0x4de86f('0x223b')](function(){var _0x173a10=_0x4de86f;return _0x41656c['target'](_0x173a10('0x2322'),undefined,{'reload':!![]});});},_0x444c6b=function _0x48dd8b(_0x18fd41){var _0x2cfe09=a0_0x5325,_0x5a281d=_0x18fd41[_0x2cfe09('0x282c')]()[_0x2cfe09('0x22d5')](_0x2cfe09('0x2730')),_0x583706=_0x18fd41['router']['stateService'],_0x13fc12=_0x18fd41[_0x2cfe09('0xac')]();if(_0x5a281d[_0x2cfe09('0x179e')](_0x2cfe09('0x108'))&&_0x13fc12[_0x2cfe09('0x2623')]!=_0x2cfe09('0xb1a'))return _0x583706['target'](_0x2cfe09('0xb1a'),{'redirect':![]},{'reload':!![]});},_0x2e4b68=function _0x19de79(_0x1f1a17){var _0x27423f=a0_0x5325,_0x4f7b32=_0x1f1a17['injector']()['get'](_0x27423f('0x2730')),_0x22c278=_0x1f1a17['router'][_0x27423f('0x2425')],_0x85b9da=_0x1f1a17[_0x27423f('0xac')]();if(_0x4f7b32[_0x27423f('0x179e')](_0x27423f('0x10c6'))){if(!_0x4f7b32[_0x27423f('0xe87')](_0x85b9da[_0x27423f('0xeda')]))return _0x22c278[_0x27423f('0xe0b')](_0x27423f('0xb1a'),{'redirect':![]},{'reload':!![]});else{var _0x4c09db=_0x1f1a17[_0x27423f('0x2ef')]()['id']?Number(_0x1f1a17[_0x27423f('0x2ef')]()['id']):undefined;if(_0x4c09db)return _0x4f7b32[_0x27423f('0xcad')](_0x85b9da[_0x27423f('0xeda')],_0x4c09db)[_0x27423f('0x223b')](function(){var _0x4ab70e=_0x27423f;return _0x22c278[_0x4ab70e('0xe0b')](_0x85b9da[_0x4ab70e('0x4ec')][_0x4ab70e('0x2623')],{'redirect':![]},{'reload':!![]});});}}},_0x2a28f6=function _0x19bd77(_0x1b5b40){var _0x2cef5a=a0_0x5325,_0x18ff87=_0x1b5b40[_0x2cef5a('0x282c')]()[_0x2cef5a('0x22d5')](_0x2cef5a('0x2730')),_0x52e02b=_0x1b5b40[_0x2cef5a('0x16de')][_0x2cef5a('0x2425')];if(_0x18ff87[_0x2cef5a('0x179e')](_0x2cef5a('0x10c6'))&&!_0x18ff87[_0x2cef5a('0xe87')](0x64))return _0x52e02b[_0x2cef5a('0xe0b')](_0x2cef5a('0xb1a'),{'redirect':![]},{'reload':!![]});};_0x84ab85[_0x1e1908('0x12ad')](_0x37a372,_0x508b6a),_0x84ab85[_0x1e1908('0xee0')](_0x3dd71c,_0x444c6b),_0x84ab85[_0x1e1908('0x1425')](_0x164c82,_0x2e4b68),_0x84ab85[_0x1e1908('0x1425')](_0x2ddb7f,_0x2a28f6);}const _0x1822d6=_0x1121b0;var _0x1b1d18=_0x59426a(0x1956),_0x32d445=_0x59426a['n'](_0x1b1d18),_0x3ad80b=_0x59426a(0x17d),_0x4ddcaa=_0x59426a['n'](_0x3ad80b);const _0x29c944=_0x59426a['p']+_0xb635d2('0x2dc');_0x4e81e4[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x1c1d'),'$q',_0xb635d2('0xffc'),'$window',_0xb635d2('0x1728')];function _0x4e81e4(_0x47d2ee,_0x2eebb4,_0x3e92bc,_0x4aca1b,_0x5f40b0,_0x34f9f0){var _0xd39ec2,_0x292c61={'getToken':_0x6da1d,'getCurrentUser':_0x47bb1f,'getPermissions':_0x294226,'hasChildrenPermissions':_0x31cbaf,'hasModulePermissions':_0x4b20ad,'hasModulesPermissions':_0x252b5c,'hasRole':_0x2a38b6,'hasPermission':_0x1cfa82,'hasResourcePermission':_0x51c79c,'hasSectionPermissions':_0x239302,'hasSectionsPermissions':_0x366bdc,'isAgent':_0x36310d,'isAdmin':_0x231e61,'isLoggedIn':_0x4e36af,'isTelephone':_0x3e85af,'isUser':_0x206196,'login':_0x1d46e2,'logout':_0x36215e,'parseCrudPermissions':_0x438ee6,'queueLogin':_0xad2c3f,'reloadPermissions':_0x2b81a7,'removeCookies':_0x6c132b,'retrieveUser':_0x1e8236,'setCurrentUser':_0x3c0be3,'getAuthenticationType':_0x13e7f5,'loginSSO':_0x31a615};return _0x292c61;function _0x6da1d(){var _0x2e65bb=a0_0x5325;return _0x2eebb4[_0x2e65bb('0x22d5')](_0x2e65bb('0x511'));}function _0x47bb1f(){return _0xd39ec2;}function _0x3c0be3(_0xcf3732){var _0x137470=a0_0x5325;_0xd39ec2=_0x32d445()[_0x137470('0x1d8')](_0xd39ec2,_0xcf3732);}function _0xad2c3f(_0x162026){return _0x3e92bc(function(_0x3eeaa6,_0x578df9){var _0x23a62c=a0_0x5325;_0x4aca1b[_0x23a62c('0x10c6')][_0x23a62c('0x96d')]({'id':_0xd39ec2['id'],'device':_0x23a62c('0x334'),'intrf':_0x162026})[_0x23a62c('0xe59')][_0x23a62c('0xe19')](function(_0x14d606){_0x3eeaa6(_0x14d606);})[_0x23a62c('0x223b')](function(_0x2605ae){_0x578df9(_0x2605ae);});});}function _0x42578a(){return _0x3e92bc(function(_0x55b8c3,_0x5b7e6d){var _0x597a79=a0_0x5325;_0x4aca1b[_0x597a79('0x10c6')]['logout']({'id':_0xd39ec2['id'],'device':_0x597a79('0x334')})['$promise'][_0x597a79('0xe19')](function(){_0x55b8c3();})[_0x597a79('0x223b')](function(_0x220739){_0x5b7e6d(_0x220739);});});}function _0x34a41e(_0x27ee06){return _0x3e92bc(function(_0x4c3529,_0x3d992e){var _0x37691b=a0_0x5325,_0x4bd53f={'online':_0x27ee06,'lastLoginAt':_0x27ee06?_0x4ddcaa()()['format'](_0x37691b('0x1f90')):undefined};_0x4aca1b[_0x37691b('0x10c6')][_0x37691b('0xa70')]({'id':_0xd39ec2['id']},_0x4bd53f)[_0x37691b('0xe59')]['then'](function(_0x1af83b){_0x4c3529(_0x1af83b);})[_0x37691b('0x223b')](function(_0x454877){_0x3d992e(_0x454877);});});}function _0x1d46e2(_0x2788f0){return _0x3e92bc(function(_0x2dde69,_0x258e87){var _0x13d18d=a0_0x5325;_0x4aca1b['auth'][_0x13d18d('0x1a8')](_0x2788f0)['$promise'][_0x13d18d('0xe19')](function(_0x905641){var _0x967beb=_0x13d18d;return _0x2eebb4['put'](_0x967beb('0x511'),_0x905641[_0x967beb('0x1fbd')]),_0x4aca1b[_0x967beb('0x10c6')][_0x967beb('0x22d5')]({'id':_0x905641['id']})[_0x967beb('0xe59')];})['then'](function(_0x4bc14e){var _0x1887ea=_0x13d18d;_0xd39ec2=_0x4bc14e,_0xd39ec2[_0x1887ea('0x76e')]=_0x4ddcaa()()[_0x1887ea('0x5e5')](_0x1887ea('0x1f90')),_0x4195ad('LOCAL_LOGIN');})[_0x13d18d('0xe19')](function(){var _0x2f4a88=_0x13d18d;if(_0x36310d()&&_0xd39ec2[_0x2f4a88('0x12b4')]===0x1&&_0xd39ec2['hotdesk'])return _0x47d2ee[_0x2f4a88('0x26b2')]({'controller':_0x2f4a88('0x219c'),'controllerAs':'vm','templateUrl':_0x29c944,'parent':angular[_0x2f4a88('0x24a1')](_0x34f9f0[_0x2f4a88('0x19b2')]),'clickOutsideToClose':![],'resolve':{'telephones':[_0x2f4a88('0x292'),function _0x2cd94(_0x4e9d47){var _0x3d24d4=_0x2f4a88;return _0x4e9d47['resolve'](_0x3d24d4('0x24a9'),{'fields':'id,fullname,name,internal','role':_0x3d24d4('0x1e7c'),'nolimit':!![]});}]}});})[_0x13d18d('0xe19')](function(_0x1daabe){var _0x22cd4b=_0x13d18d;if(_0x36310d()&&_0xd39ec2[_0x22cd4b('0x12b4')]!==0x0)return _0xad2c3f(_0x1daabe);else{if(_0x231e61()||_0x206196())return _0x34a41e(!![]);else return;}})[_0x13d18d('0xe19')](function(_0x2ca302){var _0x4e2602=_0x13d18d;_0xd39ec2=_0x32d445()[_0x4e2602('0x5c5')](_0xd39ec2,_0x2ca302),_0x2dde69();})[_0x13d18d('0x223b')](function(_0xa2ce35){_0x258e87(_0xa2ce35);});});}function _0x6c132b(){var _0x155287=a0_0x5325;_0x2eebb4[_0x155287('0xa8b')](_0x155287('0x511')),_0xd39ec2&&(_0x5f40b0['localStorage']['removeItem'](_0x155287('0xd6d')+_0xd39ec2['id']),_0x5f40b0[_0x155287('0x4f9')]['removeItem'](_0x155287('0x1986')),_0xd39ec2=null);}function _0x36215e(_0x478aff){return _0x3e92bc(function(_0x31c3f4,_0x524b42){var _0x523fb9=a0_0x5325;_0x478aff?(_0x6c132b(),_0x31c3f4()):_0x3e92bc[_0x523fb9('0xcd6')]()[_0x523fb9('0xe19')](function(){var _0x695a4f=_0x523fb9;if(_0x36310d()&&_0xd39ec2[_0x695a4f('0x12b4')]!==0x0)return _0x42578a();else{if(_0x231e61()||_0x206196())return _0x34a41e(![]);else return;}})[_0x523fb9('0xe19')](function(){_0x6c132b(),_0x31c3f4();})[_0x523fb9('0x223b')](function(_0x168b82){_0x524b42(_0x168b82);});});}function _0x4e36af(){return _0x6da1d()?!![]:![];}function _0x36310d(){var _0x27e346=a0_0x5325;return _0xd39ec2[_0x27e346('0xcd9')]===_0x27e346('0x108');}function _0x231e61(){var _0x387847=a0_0x5325;return _0xd39ec2[_0x387847('0xcd9')]==='admin';}function _0x206196(){var _0x3a0b2f=a0_0x5325;return _0xd39ec2[_0x3a0b2f('0xcd9')]===_0x3a0b2f('0x10c6');}function _0x3e85af(){var _0x1bcc99=a0_0x5325;return _0xd39ec2[_0x1bcc99('0xcd9')]===_0x1bcc99('0x1e7c');}function _0x1e8236(){return _0x3e92bc(function(_0x25e871,_0x2de9fe){var _0x5ac42b=a0_0x5325;_0x4aca1b[_0x5ac42b('0x10c6')][_0x5ac42b('0xcfd')]()[_0x5ac42b('0xe59')][_0x5ac42b('0xe19')](function(_0x626bbc){var _0x57e2a1=_0x5ac42b;return _0x626bbc[_0x57e2a1('0xcd9')]===_0x57e2a1('0x10c6')?_0x294226(_0x626bbc[_0x57e2a1('0x1d04')])['then'](function(_0x3adf31){var _0x19cf5d=_0x57e2a1;return _0x626bbc[_0x19cf5d('0x27e7')]=_0x3adf31,_0x626bbc;}):_0x626bbc;})[_0x5ac42b('0xe19')](function(_0x277398){_0xd39ec2=_0x277398,_0x25e871(_0xd39ec2);})['catch'](function(_0x1d4aeb){_0x2de9fe(_0x1d4aeb);});});}function _0x2a38b6(_0xebfb5){var _0x596562=a0_0x5325;return _0xd39ec2?_0xd39ec2[_0x596562('0xcd9')]===_0xebfb5:![];}function _0x1cfa82(_0x18b231){var _0x47dc6c=a0_0x5325;return _0xd39ec2?_0x32d445()[_0x47dc6c('0x1c43')](_0xd39ec2[_0x47dc6c('0x27e7')],_0x18b231):![];}function _0x294226(_0x157b82){var _0x223867=[];return _0x3e92bc(function(_0x31a76d,_0x514a21){var _0x67530b=a0_0x5325;return!_0x157b82&&_0x31a76d(_0x223867),_0x4aca1b[_0x67530b('0x154f')][_0x67530b('0x1518')]({'id':_0x157b82})[_0x67530b('0xe59')][_0x67530b('0xe19')](function(_0x3b8983){var _0x1cf6fc=_0x67530b;for(var _0x5cf036=0x0;_0x5cf036<_0x3b8983['length'];_0x5cf036++){var _0x5af728=_0x3b8983[_0x5cf036];_0x223867[_0x1cf6fc('0xb76')](_0x5af728[_0x1cf6fc('0x964')]),_0x5af728[_0x1cf6fc('0x51c')]&&(_0x223867=_0x32d445()[_0x1cf6fc('0x1007')](_0x223867,_0x5af728[_0x1cf6fc('0x51c')]));}return _0x223867;})['then'](function(_0x57c0df){_0x31a76d(_0x57c0df);})[_0x67530b('0x223b')](function(_0xc12958){var _0x3e0ba1=_0x67530b;_0x514a21(_0x3e0ba1('0x78f'),_0xc12958);});});}function _0x31cbaf(_0x2a6d51){if(!_0x2a6d51)return![];return _0x32d445()['some'](_0x2a6d51,function(_0xfc1a50){return _0x1cfa82(_0xfc1a50);});}function _0x2b81a7(){return _0x3e92bc(function(_0x338ffa,_0x122219){var _0x422056=a0_0x5325;_0x294226(_0xd39ec2['userProfileId'])['then'](function(_0xbcc3fb){var _0x5daa88=a0_0x5325;_0xd39ec2[_0x5daa88('0x27e7')]=_0xbcc3fb,_0x338ffa();})[_0x422056('0x223b')](function(_0x110b58){_0x122219(_0x110b58);});});}function _0x438ee6(_0x3da897){var _0x33cf9f=a0_0x5325;return _0x231e61()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x3da897?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x32d445()['includes'](_0x3da897,'r')&&_0x3da897['length']===0x1?!![]:![],'canEdit':_0x32d445()[_0x33cf9f('0x1c43')](_0x3da897,'e')?!![]:![],'canDelete':_0x32d445()['includes'](_0x3da897,'d')?!![]:![]};}function _0x51c79c(_0x4de7f2,_0x432b51){return _0x3e92bc(function(_0x15418b,_0x54af46){var _0xa9f45e=a0_0x5325;return _0x4aca1b['userProfileSection'][_0xa9f45e('0x22d5')]({'userProfileId':_0xd39ec2['userProfileId'],'sectionId':_0x4de7f2})[_0xa9f45e('0xe59')]['then'](function(_0x458c04){var _0x4ddb69=_0xa9f45e,_0x3238c2=_0x458c04['rows'][0x0];if(_0x3238c2[_0x4ddb69('0x11fd')])_0x15418b();else return _0x4aca1b[_0x4ddb69('0xd49')][_0x4ddb69('0x22d5')]({'sectionId':_0x3238c2['id'],'nolimit':!![]})[_0x4ddb69('0xe59')][_0x4ddb69('0xe19')](function(_0x10bfd1){var _0x141279=_0x4ddb69,_0x3281fd=_0x10bfd1['rows'];_0x32d445()['some'](_0x3281fd,[_0x141279('0x1104'),_0x432b51])?_0x15418b():_0x54af46();});})[_0xa9f45e('0x223b')](function(_0x415c5d){_0x54af46('Error\x20retrieving\x20user\x20profile\x20permissions',_0x415c5d);});});}function _0x239302(_0x2ddfb4){return _0x3e92bc(function(_0xa71a36,_0x5a0f6c){var _0x3a5060=a0_0x5325,_0x2b05a3={};return _0x2b81a7()[_0x3a5060('0xe19')](function(){var _0x5c8556=_0x3a5060;_0x32d445()[_0x5c8556('0x1c43')](_0xd39ec2[_0x5c8556('0x27e7')],_0x2ddfb4)&&(_0x2b05a3[_0x2ddfb4]=!![]),_0xa71a36(_0x2b05a3);})[_0x3a5060('0x223b')](function(_0x1d91c7){_0x5a0f6c(_0x1d91c7);});});}function _0x366bdc(_0x5f23ee){return _0x3e92bc(function(_0xdcb993,_0x4b89e6){var _0x19ece0=a0_0x5325,_0x4177c7={};if(_0x231e61())_0x5f23ee[_0x19ece0('0x1d7e')](function(_0x2e9d83){_0x4177c7[_0x2e9d83]=!![];}),_0xdcb993(_0x4177c7);else return _0x2b81a7()[_0x19ece0('0xe19')](function(){_0x5f23ee['forEach'](function(_0x9c51a0){var _0x5da569=a0_0x5325;_0x32d445()[_0x5da569('0x1c43')](_0xd39ec2[_0x5da569('0x27e7')],_0x9c51a0)&&(_0x4177c7[_0x9c51a0]=!![]);}),_0xdcb993(_0x4177c7);})[_0x19ece0('0x223b')](function(_0x120f0e){_0x4b89e6(_0x120f0e);});});}function _0x4b20ad(_0x1f796d){return _0x3e92bc(function(_0x3d68dd,_0x35b000){var _0x1bb7f2=a0_0x5325;_0x231e61()?_0x3d68dd(!![]):_0x4aca1b['userProfileSection'][_0x1bb7f2('0x22d5')]({'userProfileId':_0xd39ec2[_0x1bb7f2('0x1d04')]})[_0x1bb7f2('0xe59')][_0x1bb7f2('0xe19')](function(_0x1c78cc){var _0x5ee923=_0x1bb7f2,_0x2568cf=_0x1c78cc&&_0x1c78cc[_0x5ee923('0x16a7')]?_0x1c78cc[_0x5ee923('0x16a7')]:[];if(!_0x32d445()[_0x5ee923('0x14b4')](_0x2568cf)){var _0x2f0b91=_0x32d445()[_0x5ee923('0x2891')](_0x2568cf,function(_0x23b178){var _0x1e5de9=_0x5ee923;return _0x23b178[_0x1e5de9('0x4ef')];});_0x3d68dd(_0x32d445()[_0x5ee923('0x201a')](_0x2f0b91,[_0x5ee923('0xb9e'),_0x1f796d]));}else _0x3d68dd(![]);})[_0x1bb7f2('0x223b')](function(_0x5cd89c){_0x35b000(_0x5cd89c);});});}function _0x252b5c(_0x59911c){return _0x3e92bc(function(_0x4dba24,_0x5a75b7){var _0x5cd67b=a0_0x5325,_0x371bf1={};_0x231e61()?(_0x59911c[_0x5cd67b('0x1d7e')](function(_0x35b784){_0x371bf1[_0x35b784]=!![];}),_0x4dba24(_0x371bf1)):_0x4aca1b[_0x5cd67b('0xb59')][_0x5cd67b('0x22d5')]({'userProfileId':_0xd39ec2[_0x5cd67b('0x1d04')]})['$promise'][_0x5cd67b('0xe19')](function(_0x1b8c30){var _0x4bd4a6=_0x5cd67b,_0x11ed52=_0x1b8c30&&_0x1b8c30['rows']?_0x1b8c30['rows']:[];if(!_0x32d445()[_0x4bd4a6('0x14b4')](_0x11ed52)){var _0x545147=_0x32d445()(_0x11ed52)[_0x4bd4a6('0x2891')](function(_0x4432c1){var _0xc75039=_0x4bd4a6;return _0x4432c1['enabled']&&_0x32d445()[_0xc75039('0x1c43')](_0x59911c,_0x4432c1[_0xc75039('0xb9e')]);})[_0x4bd4a6('0x268b')](function(_0x24a185){return _0x24a185['category'];})[_0x4bd4a6('0x65a')](function(_0x4288da){var _0x508d82=_0x4bd4a6;return _0x4288da[_0x508d82('0xb9e')];})[_0x4bd4a6('0x2')]();_0x545147[_0x4bd4a6('0x1d7e')](function(_0x3152dc){_0x371bf1[_0x3152dc]=!![];}),_0x4dba24(_0x371bf1);}else _0x4dba24({});})['catch'](function(_0x114be4){_0x5a75b7(_0x114be4);});});}function _0x13e7f5(){var _0x480d1b=a0_0x5325;return _0x5f40b0[_0x480d1b('0x4f9')][_0x480d1b('0x1986')]||_0x480d1b('0x21f');}function _0x4195ad(_0xd57b95){var _0x554725=a0_0x5325;_0x5f40b0[_0x554725('0x4f9')]['motion.authenticationtype']=_0xd57b95;}function _0x31a615(_0x611ae8){var _0x32a9c3=a0_0x5325;return _0x4195ad(_0x32a9c3('0x1055')),_0x32a9c3('0x1a42')+_0x611ae8;}}const _0x343caa=_0x4e81e4;_0x5ce7b2[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x2059')];function _0x5ce7b2(_0xbef975,_0x3d3a0b){var _0x563d4b=_0xb635d2,_0x54c566=this;function _0x4751a0(_0x2daab4){_0xbef975['hide'](_0x2daab4);}_0x54c566[_0x563d4b('0x2059')]=_0x3d3a0b,_0x54c566['closeDialog']=_0x4751a0,_0x3d3a0b[_0x563d4b('0x148b')]&&(_0x54c566[_0x563d4b('0x2623')]=_0x3d3a0b['rows'][0x0][_0x563d4b('0x2623')]);}const _0xf9def3=_0x5ce7b2;_0x25cfb1['$inject']=[_0xb635d2('0x917'),'$q',_0xb635d2('0x1c1d'),_0xb635d2('0x18cf'),_0xb635d2('0x1e77')];function _0x25cfb1(_0x2d099f,_0x27ba43,_0x499294,_0x37f741,_0xf7a100){var _0x3ec5a4;return{'request':function _0x36c34c(_0x321029){var _0x572dce=a0_0x5325,_0x5c799f=_0x499294[_0x572dce('0x22d5')](_0x572dce('0x511'));return _0x321029[_0x572dce('0x2234')]=_0x321029[_0x572dce('0x2234')]||{},(![]||_0xf7a100[_0x572dce('0x1eea')](_0x321029[_0x572dce('0x2647')]))&&_0x5c799f&&(_0x321029[_0x572dce('0x2234')][_0x572dce('0x1774')]=_0x572dce('0x17b7')+_0x5c799f),_0x321029;},'responseError':function _0x4476f9(_0x4b2c34){var _0xe0cf4f=a0_0x5325;switch(_0x4b2c34[_0xe0cf4f('0x2833')]){case 0x191:_0x499294[_0xe0cf4f('0xa8b')](_0xe0cf4f('0x511')),(_0x3ec5a4||(_0x3ec5a4=_0x37f741[_0xe0cf4f('0x22d5')]('$state')))['go'](_0xe0cf4f('0x2322'));break;case 0x194:break;default:break;}return _0x27ba43['reject'](_0x4b2c34);}};}const _0x2d6a23=_0x25cfb1;_0xc40ae8['$inject']=[_0xb635d2('0x2400')];function _0xc40ae8(_0x424c31){var _0x3ec3f8={'safeCb':function _0x399998(_0x13e086){var _0x24e9de=a0_0x5325;return angular[_0x24e9de('0xfeb')](_0x13e086)?_0x13e086:angular['noop'];},'urlParse':function _0x3e5b36(_0x158f3d){var _0x292af5=a0_0x5325,_0x3218ff=document[_0x292af5('0x9a1')]('a');return _0x3218ff[_0x292af5('0xcb7')]=_0x158f3d,_0x3218ff[_0x292af5('0x3b7')]===''&&(_0x3218ff['href']=_0x3218ff[_0x292af5('0xcb7')]),_0x3218ff;},'isSameOrigin':function _0x3ac892(_0x331aaf,_0xcae77f){var _0xd5aa4=a0_0x5325;return _0x331aaf=_0x3ec3f8[_0xd5aa4('0x14a9')](_0x331aaf),_0xcae77f=_0xcae77f&&[][_0xd5aa4('0x1007')](_0xcae77f)||[],_0xcae77f=_0xcae77f[_0xd5aa4('0x65a')](_0x3ec3f8[_0xd5aa4('0x14a9')]),_0xcae77f['push'](_0x424c31['location']),_0xcae77f=_0xcae77f[_0xd5aa4('0x2891')](function(_0x132cc7){var _0x4cc2f1=_0xd5aa4,_0x11be21=_0x331aaf['hostname']===_0x132cc7['hostname'],_0x79d04f=_0x331aaf[_0x4cc2f1('0xec0')]===_0x132cc7[_0x4cc2f1('0xec0')],_0x429e71=_0x331aaf[_0x4cc2f1('0x11dc')]===_0x132cc7[_0x4cc2f1('0x11dc')]||_0x132cc7[_0x4cc2f1('0x11dc')]===''&&(_0x331aaf[_0x4cc2f1('0x11dc')]==='80'||_0x331aaf[_0x4cc2f1('0x11dc')]==='443');return _0x11be21&&_0x79d04f&&_0x429e71;}),_0xcae77f[_0xd5aa4('0x25ae')]>=0x1;}};return _0x3ec3f8;}const _0x24234f=_0xc40ae8;;angular[_0xb635d2('0x153f')](_0xb635d2('0x3d7'),[])[_0xb635d2('0x1990')](_0x1badd1)['run'](_0x1822d6)[_0xb635d2('0x1324')](_0xb635d2('0x2730'),_0x343caa)[_0xb635d2('0x1a79')]('HotDeskDialogController',_0xf9def3)[_0xb635d2('0x1324')](_0xb635d2('0x25a6'),_0x2d6a23)[_0xb635d2('0x1324')](_0xb635d2('0x1e77'),_0x24234f);var _0x2c80c7=_0x59426a(0xca2),_0x37eb64=_0x59426a(0x1e94),_0x4b6dfb=_0x59426a(0x1e80),_0x5c242b=_0x59426a(0x11ee),_0x979502=_0x59426a(0x36e),_0x28e852=_0x59426a(0x1bdb),_0x3362cf=_0x59426a(0x1c17),_0x384428=_0x59426a(0x813),_0x22a203=_0x59426a(0xdff),_0x30efb9=_0x59426a(0x251),_0x38a4ba=_0x59426a(0xdf),_0x58b1ca=_0x59426a(0x1299),_0x39cc80=_0x59426a(0x177),_0x592745=_0x59426a(0x573);function _0x15ff16(){var _0x3ca1ec=_0xb635d2,_0x16b7c2={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x443ad7(_0x5d636e){_0x16b7c2=angular['extend']({},_0x16b7c2,_0x5d636e);}function _0x5eef26(_0x3f6766){var _0x3c41b5=a0_0x5325;if(angular[_0x3c41b5('0xda8')](_0x16b7c2[_0x3f6766]))return![];return _0x16b7c2[_0x3f6766];}function _0x49bf58(_0x1c9bce,_0x21f23a){_0x16b7c2[_0x1c9bce]=_0x21f23a;}this[_0x3ca1ec('0x436')]=function(){var _0x11cb00={'getConfig':_0x5eef26,'setConfig':_0x49bf58};return _0x11cb00;},this[_0x3ca1ec('0x1990')]=_0x443ad7;}const _0x57c721=_0x15ff16;_0x4d27a9['$inject']=[_0xb635d2('0x7b0'),'$logProvider',_0xb635d2('0xdac'),_0xb635d2('0xab7')];function _0x4d27a9(_0x57cd60,_0x65182e,_0x58a059,_0x1867d7){var _0x71213c=_0xb635d2;_0x65182e['debugEnabled'](!![]),_0x57cd60['config']({'tabindex':![]}),_0x1867d7[_0x71213c('0x1990')]({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x58a059[_0x71213c('0x1990')]({'wheelPropagation':!![]});}const _0x5df1c2=_0x4d27a9;_0x2e1322['$inject']=[_0xb635d2('0x1563'),'motionGenerator',_0xb635d2('0x1a27')];function _0x2e1322(_0x218080,_0x194504,_0x40d3b2){var _0x133da7=_0xb635d2;_0x194504[_0x133da7('0x1552')]();if(_0x40d3b2[_0x133da7('0x1968')](_0x133da7('0x326'))&&_0x218080[_0x133da7('0x2645')]()){var _0x37bf74=angular[_0x133da7('0x24a1')](_0x133da7('0x19b2'));_0x37bf74[_0x133da7('0x1135')](_0x133da7('0xb8b'),!![]);}_0x218080[_0x133da7('0x2645')]()&&angular[_0x133da7('0x24a1')](_0x133da7('0x158f'))[_0x133da7('0x500')](_0x133da7('0x10ac'));var _0x11733a=_0x218080[_0x133da7('0x1e2a')]();if(_0x11733a){var _0x491ef6=_0x11733a[_0x133da7('0x1ef')]+'\x20'+_0x11733a[_0x133da7('0xfec')]+'\x20'+_0x11733a['os'];angular[_0x133da7('0x24a1')](_0x133da7('0x158f'))[_0x133da7('0x500')](_0x491ef6);}}const _0x132c52=_0x2e1322;_0x59cbd9[_0xb635d2('0xb0c')]=['$window',_0xb635d2('0x1c9f'),_0xb635d2('0x2730'),_0xb635d2('0xaa4'),'fields','storagePath'];function _0x59cbd9(_0x447cde,_0x30961b,_0x39cb66,_0x20fd4c,_0x19b980,_0x1e8db6){var _0x2640ca=_0xb635d2,_0x2345fc=this;_0x2345fc[_0x2640ca('0x15a5')]=_0x39cb66[_0x2640ca('0x1ef8')](),_0x2345fc['searchOptions']={'matchType':_0x2640ca('0x1e11'),'conditions':[],'fields':_0x19b980},_0x2345fc[_0x2640ca('0x463')]=_0x20fd4c,_0x2345fc['onInit']=_0x2a4e29,_0x2345fc['applyFilter']=_0x2f65f8,_0x2345fc['clearConditions']=_0x35c90d,_0x2345fc['minimize']=_0x76c8ea,_0x2345fc['close']=_0x134913;function _0x2a4e29(){var _0x5123da=_0x2640ca;if(_0x1e8db6){var _0x90bc43=_0x137984();typeof _0x90bc43[_0x5123da('0x164')]!==_0x5123da('0x1143')&&(_0x2345fc[_0x5123da('0x1e94')]=_0x32d445()['merge'](_0x2345fc[_0x5123da('0x1e94')],_0x90bc43['advancedSearch']));}}function _0x2f65f8(){var _0x230608=_0x2640ca,_0x1a518a=_0x32d445()['filter'](_0x2345fc[_0x230608('0x1e94')][_0x230608('0x25d3')],['disabled',![]]),_0x2e4ba2='['+_0x2345fc['searchOptions'][_0x230608('0x1758')]+']',_0x56bb2e=[],_0x5a8fc0='';_0x32d445()(_0x1a518a)['groupBy'](_0x230608('0x2623'))[_0x230608('0x1d7e')](function(_0x2532b2){var _0xdf701b=_0x230608,_0x5bf167=_0x2532b2[0x0],_0xa75c95=_0x2532b2['length']>0x1?!![]:![],_0x397d1e=_0x5bf167[_0xdf701b('0xa16')]['column'];if(_0xa75c95){var _0x41cd80=_0x32d445()(_0x2532b2)['groupBy'](function(_0x58c540){var _0x34cf36=_0xdf701b;return _0x58c540['query'][_0x34cf36('0x260f')];})[_0xdf701b('0x2483')](function(_0x1f72a0){var _0x2f1377=_0xdf701b;return _0x32d445()['chain'](_0x1f72a0)['map'](function(_0x17d9cc){var _0x3b8d3c=a0_0x5325;return _0x17d9cc[_0x3b8d3c('0xa16')][_0x3b8d3c('0x2')];})[_0x2f1377('0x10d7')]()['value']();})[_0xdf701b('0x2')](),_0x34bb88=[];_0x32d445()[_0xdf701b('0x1234')](_0x41cd80)[_0xdf701b('0x1d7e')](function(_0xd87ebf){var _0x2c6fad=_0xdf701b,_0x4e4801=_0x41cd80[_0xd87ebf],_0xdd251=_0xd87ebf;_0x32d445()[_0x2c6fad('0x1c43')]([_0x2c6fad('0x223a'),_0x2c6fad('0x614'),'$notIn'],_0xd87ebf)?_0xdd251+='['+_0x4e4801+']':_0x4e4801['forEach'](function(_0x224638){_0xdd251+='['+_0x224638+']';}),_0x34bb88['push'](_0xdd251);}),_0x5a8fc0+=_0x397d1e+':='+_0x34bb88['join'](':=');}else _0x5a8fc0=_0x397d1e+':='+_0x5bf167[_0xdf701b('0xa16')][_0xdf701b('0x260f')]+'['+_0x5bf167[_0xdf701b('0xa16')][_0xdf701b('0x2')]+']';_0x56bb2e['push'](_0x5a8fc0);}),_0x2e4ba2+=_0x56bb2e[_0x230608('0x1537')]('||'),_0x27acec(),_0x30961b[_0x230608('0x11ed')](_0x2e4ba2);}function _0x35c90d(){var _0x4de3d3=_0x2640ca;_0x2345fc[_0x4de3d3('0x1e94')]['conditions']=[],_0x43a797();}function _0x76c8ea(){var _0x8badca=_0x2640ca;_0x27acec(),_0x30961b[_0x8badca('0x11ed')]();}function _0x134913(){_0x30961b['hide'](![]);}function _0x137984(){var _0x37a834=_0x2640ca,_0x1795ca=_0x447cde[_0x37a834('0x4f9')][_0x37a834('0x2208')]('motion2.'+_0x1e8db6+':'+_0x2345fc[_0x37a834('0x15a5')]['id']);return _0x1795ca?JSON[_0x37a834('0x118e')](_0x1795ca):{};}function _0x1b8b4b(_0x41b1a8){var _0x5dac9b=_0x2640ca;_0x447cde['localStorage'][_0x5dac9b('0x95e')](_0x5dac9b('0xe24')+_0x1e8db6+':'+_0x2345fc[_0x5dac9b('0x15a5')]['id'],JSON[_0x5dac9b('0x3ad')](_0x41b1a8));}function _0x27acec(){var _0x1e3ed6=_0x2640ca;if(_0x1e8db6){var _0x77c2c3=_0x137984();_0x77c2c3[_0x1e3ed6('0x164')]=_0x32d445()[_0x1e3ed6('0x23e3')](_0x2345fc[_0x1e3ed6('0x1e94')],_0x1e3ed6('0x1d17')),_0x1b8b4b(_0x77c2c3);}}function _0x43a797(){var _0x205313=_0x2640ca;if(_0x1e8db6){var _0x50005b=_0x137984();delete _0x50005b[_0x205313('0x164')];if(_0x50005b[_0x205313('0xa16')])delete _0x50005b[_0x205313('0xa16')][_0x205313('0x1cc8')];_0x1b8b4b(_0x50005b);}}}const _0x5c4f19=_0x59cbd9;_0xe042ee[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a0b')];function _0xe042ee(_0x16f689){return{'restrict':'A','link':function _0x4c6de3(_0x5ad9b0,_0x44e332,_0x575433){var _0x2693fd=a0_0x5325;_0x5ad9b0['$watch'](_0x575433[_0x2693fd('0x14af')],function(_0x2d758a){_0x16f689(function(){var _0x547b64=a0_0x5325;_0x2d758a?_0x44e332[0x0][_0x547b64('0x24fe')]():_0x44e332[0x0]['blur']();});});}};}const _0x455aa6=_0xe042ee;var _0x36bdcd=_0x59426a(0x1433),_0x227c9d=_0x59426a['n'](_0x36bdcd);_0x22171b['$inject']=[_0xb635d2('0x1a0b'),'$q',_0xb635d2('0x19c2')];function _0x22171b(_0x481e58,_0x5f1d33,_0x5ed4f4){return{'restrict':'E','compile':function _0x34319a(_0x29bbb4,_0x59813e){var _0x4297f6=a0_0x5325,_0x332bd3;return!_0x59813e[_0x4297f6('0x393')]&&(_0x332bd3=_0x29bbb4[_0x4297f6('0x158f')](),_0x29bbb4[_0x4297f6('0x2672')]()),function(_0x3e1a5b,_0x1ff9d4,_0x185281){var _0x3adbac=_0x4297f6;_0x185281[_0x3adbac('0x393')]&&(_0x332bd3=_0x3e1a5b[_0x3adbac('0x2a9')](_0x185281[_0x3adbac('0x393')]));var _0x158ebc=_0x3e1a5b[_0x3adbac('0x2a9')](_0x185281[_0x3adbac('0xec7')]);_0x5f1d33[_0x3adbac('0x23af')](_0x332bd3)['then'](function(_0x172dd2){var _0x40ea2e=_0x3adbac;if(_0x172dd2){_0x158ebc&&(_0x172dd2=_0x5ed4f4(_0x172dd2)(_0x3e1a5b));var _0x5ea686=angular[_0x40ea2e('0x24a1')](_0x40ea2e('0x1208'));_0x1ff9d4[_0x40ea2e('0x1d0a')](_0x5ea686),_0x481e58(function(){_0x5b326f(_0x172dd2,_0x5ea686);},0x22,![]);}});function _0x5b326f(_0x29bd5d,_0x5a3ded){var _0x19bbf2=_0x3adbac,_0x46ec74=_0x5a3ded['find'](_0x19bbf2('0x393')),_0x250cbc=_0x29bd5d[_0x19bbf2('0x1745')]('\x0a');_0x250cbc=_0x250cbc[_0x19bbf2('0x2891')](function(_0x4ce45a){var _0x3eef77=_0x19bbf2;return _0x4ce45a[_0x3eef77('0x26b4')]()[_0x3eef77('0x25ae')];});var _0x1d67c0=_0x250cbc[0x0][_0x19bbf2('0x97')](/^\s*/)[0x0],_0x20f4ae=new RegExp('^'+_0x1d67c0);_0x250cbc=_0x250cbc[_0x19bbf2('0x65a')](function(_0x217251){var _0x496747=_0x19bbf2;return _0x217251[_0x496747('0x1b42')](_0x20f4ae,'')[_0x496747('0x1b42')](/\s+$/,'');});var _0x2696a7=_0x227c9d()[_0x19bbf2('0x681')](_0x185281[_0x19bbf2('0x174b')]||_0x185281[_0x19bbf2('0x19cc')],_0x250cbc['join']('\x0a'),!![]);_0x2696a7[_0x19bbf2('0x2')]=_0x2696a7[_0x19bbf2('0x2')][_0x19bbf2('0x1b42')](/=""<\/span>/gi,'')[_0x19bbf2('0x1b42')]('','')[_0x19bbf2('0x1b42')](_0x19bbf2('0x298'),''),_0x46ec74[_0x19bbf2('0x1d0a')](_0x2696a7[_0x19bbf2('0x2')])['addClass'](_0x19bbf2('0x681'));}};}};}const _0x15db48=_0x22171b,_0x48d914=_0x59426a['p']+'src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search-[chunkhash].html';_0x5a41ab['$inject']=[_0xb635d2('0x2493'),'$q',_0xb635d2('0xffc'),_0xb635d2('0xf65')];function _0x5f47ad(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x5a41ab,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x48d914};}function _0x5a41ab(_0x132c39,_0xd8766e,_0x47be03,_0x28b9ba){var _0x2ca0df=_0xb635d2,_0x1fdb19=this;_0x1fdb19[_0x2ca0df('0xb2f')]=[{'type':_0x2ca0df('0x1d15'),'symbol':'=','translate':_0x2ca0df('0x18b9'),'excludeFrom':[_0x2ca0df('0x19a0')]},{'type':_0x2ca0df('0x1f51'),'symbol':'≠','translate':_0x2ca0df('0x1769'),'excludeFrom':[_0x2ca0df('0x19a0')]},{'type':_0x2ca0df('0x614'),'symbol':'∈','translate':'IS_AMONG','applyTo':['multiselect']},{'type':_0x2ca0df('0x19a3'),'symbol':'∉','translate':_0x2ca0df('0x283'),'applyTo':[_0x2ca0df('0x19a0')]},{'type':_0x2ca0df('0x1247'),'symbol':'⊃','translate':_0x2ca0df('0x9b4'),'applyTo':[_0x2ca0df('0x1bc6')]},{'type':'$startsWith','symbol':_0x2ca0df('0x2029'),'translate':_0x2ca0df('0x2610'),'applyTo':[_0x2ca0df('0x1bc6')]},{'type':_0x2ca0df('0x23cb'),'symbol':_0x2ca0df('0x147e'),'translate':_0x2ca0df('0x79c'),'applyTo':[_0x2ca0df('0x1bc6')]},{'type':_0x2ca0df('0x1a1f'),'symbol':'<','translate':_0x2ca0df('0xf8e'),'applyTo':[_0x2ca0df('0xf6d'),_0x2ca0df('0x1c60')]},{'type':_0x2ca0df('0x2741'),'symbol':'>','translate':'IS_GREATER_THAN','applyTo':[_0x2ca0df('0xf6d'),_0x2ca0df('0x1c60')]},{'type':_0x2ca0df('0x27eb'),'symbol':'≤','translate':_0x2ca0df('0x17c9'),'applyTo':['date','number']},{'type':_0x2ca0df('0x2377'),'symbol':'≥','translate':_0x2ca0df('0xd2f'),'applyTo':['date',_0x2ca0df('0x1c60')]},{'type':_0x2ca0df('0x223a'),'symbol':'≬','translate':_0x2ca0df('0x1179'),'applyTo':[_0x2ca0df('0xf6d'),'number']}],_0x1fdb19[_0x2ca0df('0x40f')]=_0x1fdb19['availableOperators'],_0x1fdb19['addCondition']=_0x166700,_0x1fdb19[_0x2ca0df('0x15fa')]=_0x1bc464,_0x1fdb19[_0x2ca0df('0x22d1')]=_0x36e6a4,_0x1fdb19[_0x2ca0df('0xebd')]=_0x218501,_0x1fdb19[_0x2ca0df('0x1add')]=_0x5a1c78,_0x1fdb19[_0x2ca0df('0x1ead')]=_0x8cf963,_0x1fdb19[_0x2ca0df('0x1e95')]=_0x17dc2e,_0x1fdb19[_0x2ca0df('0x13b0')]=_0x5258d0,_0x1fdb19[_0x2ca0df('0x1a6')]=_0x3baec7,_0x1fdb19[_0x2ca0df('0x18d7')]=_0x29f143,_0x1fdb19[_0x2ca0df('0x136e')]=_0xe3f69d,_0x1fdb19[_0x2ca0df('0xad8')]=_0x2372fb;function _0x5258d0(){var _0x3cb7fb=_0x2ca0df;_0x1fdb19['value']=undefined,_0x1fdb19[_0x3cb7fb('0x2655')]=undefined,_0x1fdb19[_0x3cb7fb('0x1b8a')]=undefined,_0x1fdb19[_0x3cb7fb('0xb5f')]=![],_0x154104(),_0x1fdb19[_0x3cb7fb('0x21ae')]=_0x1fdb19[_0x3cb7fb('0xb2f')]['length']===0x1?!![]:![];if(!_0x1fdb19[_0x3cb7fb('0x21ae')])_0x1fdb19[_0x3cb7fb('0xdc7')]=undefined;}function _0x3baec7(_0x399614){var _0x2a6da9=_0x2ca0df;_0x1fdb19[_0x2a6da9('0x1a49')]=!![],_0x1fdb19['selectedOperator']&&(_0x399614?_0x399614[_0x2a6da9('0x259a')]?_0x32d445()['difference'](_0x1fdb19[_0x2a6da9('0xdc7')][_0x2a6da9('0x259a')],_0x399614[_0x2a6da9('0x259a')])['length']>0x0&&(_0x1fdb19['value']=null):_0x1fdb19[_0x2a6da9('0xdc7')][_0x2a6da9('0x259a')]&&(_0x1fdb19[_0x2a6da9('0x2')]=null):_0x1fdb19[_0x2a6da9('0x2')]=null,_0x1fdb19[_0x2a6da9('0xdc7')][_0x2a6da9('0x62e')]!=_0x2a6da9('0x12fc')&&(_0x1fdb19[_0x2a6da9('0x2655')]=null),_0x1fdb19[_0x2a6da9('0x1a63')][_0x2a6da9('0x2116')]&&!_0x32d445()[_0x2a6da9('0x14b4')](_0x1fdb19[_0x2a6da9('0x1a63')][_0x2a6da9('0x2116')][_0x2a6da9('0x70b')])&&(_0x1fdb19[_0x2a6da9('0xdc7')]['isExtra']=_0x32d445()[_0x2a6da9('0x201a')](_0x1fdb19[_0x2a6da9('0x1a63')][_0x2a6da9('0x2116')][_0x2a6da9('0x70b')],function(_0x239218){var _0x7dc678=_0x2a6da9;return _0x239218===_0x1fdb19[_0x7dc678('0xdc7')][_0x7dc678('0x62e')];}))),_0x34a267();}function _0x29f143(){var _0x3cfca4=_0x2ca0df;if(_0x1fdb19[_0x3cfca4('0xdc7')]&&_0x1fdb19[_0x3cfca4('0xdc7')][_0x3cfca4('0x62e')]===_0x3cfca4('0x223a')){if(_0x1fdb19[_0x3cfca4('0x1a63')][_0x3cfca4('0x62e')]==='number')_0xe3f69d();else _0x1fdb19['selectedField'][_0x3cfca4('0x62e')]===_0x3cfca4('0xf6d')&&(_0x1fdb19[_0x3cfca4('0x1a67')]=_0x4ddcaa()(_0x1fdb19['value'])[_0x3cfca4('0xaf8')](0x1,_0x3cfca4('0x2103')),_0x34a267());}else _0x34a267();}function _0x154104(){var _0x38b82f=_0x2ca0df,_0x4dc98f=_0x1fdb19[_0x38b82f('0x1a63')][_0x38b82f('0x2116')]&&!_0x32d445()[_0x38b82f('0x14b4')](_0x1fdb19[_0x38b82f('0x1a63')]['options'][_0x38b82f('0x70b')]),_0x16ad24=_0x1fdb19[_0x38b82f('0x1a63')][_0x38b82f('0x2116')]&&!_0x32d445()[_0x38b82f('0x14b4')](_0x1fdb19[_0x38b82f('0x1a63')][_0x38b82f('0x2116')]['excludedOperators']);_0x1fdb19[_0x38b82f('0xb2f')]=_0x32d445()[_0x38b82f('0x2891')](_0x1fdb19[_0x38b82f('0x40f')],function(_0x275cce){var _0x1dc34a=_0x38b82f,_0x34fe80=!_0x275cce[_0x1dc34a('0x259a')]||_0x32d445()[_0x1dc34a('0x1c43')](_0x275cce[_0x1dc34a('0x259a')],_0x1fdb19[_0x1dc34a('0x1a63')]['type']);_0x275cce[_0x1dc34a('0x44c')]=_0x4dc98f&&_0x32d445()[_0x1dc34a('0x201a')](_0x1fdb19[_0x1dc34a('0x1a63')][_0x1dc34a('0x2116')][_0x1dc34a('0x70b')],function(_0x1a8dd8){var _0x54a336=_0x1dc34a;return _0x1a8dd8===_0x275cce[_0x54a336('0x62e')];});var _0x2bab31=_0x32d445()[_0x1dc34a('0x1c43')](_0x275cce[_0x1dc34a('0x109')],_0x1fdb19[_0x1dc34a('0x1a63')][_0x1dc34a('0x62e')])||_0x16ad24&&_0x32d445()[_0x1dc34a('0x1c43')](_0x1fdb19[_0x1dc34a('0x1a63')][_0x1dc34a('0x2116')][_0x1dc34a('0x12c1')],_0x275cce[_0x1dc34a('0x62e')]);if((_0x34fe80||_0x275cce[_0x1dc34a('0x44c')])&&!_0x2bab31)return _0x275cce;});}function _0x17dc2e(){var _0x20579a=_0x2ca0df,_0x46b3d1=angular[_0x20579a('0x89')](_0x1fdb19[_0x20579a('0x1a63')]['options'][_0x20579a('0x622')]);if(_0x1fdb19[_0x20579a('0x1a63')]['type']===_0x20579a('0x5c0'))for(var _0x2c1693=0x0;_0x2c1693Number(_0x1fdb19['value'])?!![]:![]:_0x1fdb19[_0xa3f792('0x1a49')]=!![];else _0x1fdb19[_0xa3f792('0x1a63')]['type']==='date'&&(_0x1fdb19[_0xa3f792('0x22a2')]=_0x4ddcaa()(_0x1fdb19['endRangeValue'])[_0xa3f792('0x19ed')](0x1,_0xa3f792('0x2103')),_0x1fdb19[_0xa3f792('0x1a49')]=!![]);_0x34a267();}function _0x166700(){var _0x1b1c83=_0x2ca0df,_0x147bca=_0xd0af4a();_0x1fdb19['options'][_0x1b1c83('0x25d3')][_0x1b1c83('0xb76')](_0x147bca),_0x57202a();}function _0x1bc464(_0x40c11c){var _0x56157e=_0x2ca0df;_0x1fdb19[_0x56157e('0x1e8')]=_0x40c11c,_0x1fdb19[_0x56157e('0x1e8')][_0x56157e('0xf31')]=_0x56157e('0x25fc'),_0x1fdb19[_0x56157e('0x1a63')]=_0x32d445()[_0x56157e('0xf15')](_0x1fdb19[_0x56157e('0x2116')]['fields'],[_0x56157e('0x2623'),_0x1fdb19[_0x56157e('0x1e8')]['name']]),_0x154104(),_0x1fdb19[_0x56157e('0xdc7')]=_0x32d445()[_0x56157e('0xf15')](_0x1fdb19[_0x56157e('0xb2f')],[_0x56157e('0x62e'),_0x1fdb19[_0x56157e('0x1e8')][_0x56157e('0xa16')][_0x56157e('0x260f')]]),_0x1fdb19[_0x56157e('0x1a63')][_0x56157e('0x62e')]===_0x56157e('0xf6d')&&typeof _0x1fdb19[_0x56157e('0x1e8')][_0x56157e('0x2')]===_0x56157e('0x19d1')?(_0x1fdb19['value']=new Date(_0x1fdb19['pendingCondition'][_0x56157e('0x2')]),_0x1fdb19[_0x56157e('0x1a67')]=_0x4ddcaa()(_0x1fdb19['value'])[_0x56157e('0xaf8')](0x1,'day'),_0x1fdb19[_0x56157e('0x2655')]=_0x1fdb19['pendingCondition'][_0x56157e('0x1af6')]?new Date(_0x1fdb19['pendingCondition'][_0x56157e('0x1af6')]):undefined):(_0x1fdb19[_0x56157e('0x2')]=_0x1fdb19[_0x56157e('0x1e8')][_0x56157e('0x2')],_0x1fdb19[_0x56157e('0x2655')]=_0x1fdb19[_0x56157e('0x1e8')]['endValue']),_0x1fdb19[_0x56157e('0x1a49')]=!![],_0x1fdb19[_0x56157e('0xb5f')]=!![];}function _0x36e6a4(){var _0x19cc33=_0x2ca0df,_0x14c4ea=_0xd0af4a(),_0x381d74=_0x32d445()[_0x19cc33('0x8d3')](_0x1fdb19[_0x19cc33('0x2116')][_0x19cc33('0x25d3')],'style');_0x1fdb19[_0x19cc33('0x2116')]['conditions'][_0x19cc33('0x1c8e')](_0x381d74,0x1,_0x14c4ea),_0x57202a(),_0x1fdb19[_0x19cc33('0x1e8')][_0x19cc33('0xf31')]=null,_0x1fdb19[_0x19cc33('0x1e8')]=undefined;}function _0x218501(){var _0x83fbd0=_0x2ca0df;_0x1fdb19[_0x83fbd0('0x1e8')][_0x83fbd0('0xf31')]=null,_0x1fdb19[_0x83fbd0('0x1e8')]=undefined;}function _0x5a1c78(_0x142084){var _0x3d762b=_0x2ca0df;_0x142084[_0x3d762b('0xf31')]=_0x142084[_0x3d762b('0x1ebc')]?undefined:_0x3d762b('0x147f'),_0x142084[_0x3d762b('0x1ebc')]=!_0x142084[_0x3d762b('0x1ebc')];}function _0x8cf963(){var _0x455a6a=_0x2ca0df;if(_0x32d445()['isEmpty'](_0x1fdb19['options']['conditions']))_0x1fdb19[_0x455a6a('0x115b')]();}function _0x2372fb(){var _0x4cb97c=_0x2ca0df;_0x1fdb19[_0x4cb97c('0x1e8')]?_0x36e6a4():_0x166700();}function _0xd0af4a(){var _0x4ae0c1=_0x2ca0df;return{'name':_0x1fdb19['selectedField'][_0x4ae0c1('0x2623')],'operator':_0x132c39['instant']('DASHBOARDS.'+_0x1fdb19[_0x4ae0c1('0xdc7')][_0x4ae0c1('0x193b')]),'value':_0x1fdb19[_0x4ae0c1('0x2')],'endValue':_0x1fdb19[_0x4ae0c1('0x2655')],'displayValue':_0x535940(_0x1fdb19['value']),'displayEndValue':_0x535940(_0x1fdb19[_0x4ae0c1('0x2655')]),'query':{'column':_0x1fdb19['selectedField'][_0x4ae0c1('0x1abc')],'operator':_0x1fdb19[_0x4ae0c1('0xdc7')][_0x4ae0c1('0x62e')],'value':_0x4d1416()},'disabled':![]};}function _0x535940(_0x262d2c){var _0x39f628=_0x2ca0df,_0xd2751;if(!_0x262d2c)return undefined;switch(_0x1fdb19[_0x39f628('0x1a63')][_0x39f628('0x62e')]){case _0x39f628('0xf6d'):_0xd2751=_0x4ddcaa()(_0x262d2c)[_0x39f628('0x5e5')]('YYYY-MM-DD');break;case _0x39f628('0x19a0'):{var _0x52a3de=_0x32d445()[_0x39f628('0x65a')](_0x262d2c,function(_0x2480ae){return _0x2480ae['name'];});_0xd2751=_0x1fdb19[_0x39f628('0xdc7')][_0x39f628('0x62e')]==='$eq'?_0x52a3de[_0x39f628('0x1537')](_0x39f628('0xee')):_0x52a3de[_0x39f628('0x1537')](_0x39f628('0x122d'));}break;case _0x39f628('0x2e6'):_0xd2751=_0x262d2c[_0x39f628('0x2623')];break;case _0x39f628('0x5c0'):_0xd2751=_0x1fdb19['selectedOperator']['isExtra']?_0x262d2c:_0x262d2c['displayValue'];break;default:_0xd2751=_0x262d2c;break;}return _0xd2751;}function _0x4d1416(){var _0x4937e0=_0x2ca0df,_0x37ea0f=_0x1fdb19[_0x4937e0('0x2')],_0x3062fc=_0x1fdb19['endRangeValue'],_0x5b7150;switch(_0x1fdb19['selectedField'][_0x4937e0('0x62e')]){case'date':{var _0xa23c9d=_0x4ddcaa()(_0x37ea0f)[_0x4937e0('0x1e9e')](0x0,!![])['format'](_0x4937e0('0x124d'));if(_0x1fdb19[_0x4937e0('0xdc7')]['type']===_0x4937e0('0x223a')){var _0x12d02e=_0x4ddcaa()(_0x3062fc)[_0x4937e0('0x1e9e')](0x0,!![])[_0x4937e0('0x5e5')]('YYYY-MM-DD');_0x5b7150=[_0xa23c9d,_0x12d02e];}else _0x5b7150=_0xa23c9d;}break;case'number':_0x5b7150=_0x1fdb19[_0x4937e0('0xdc7')]['type']===_0x4937e0('0x223a')?[_0x37ea0f,_0x3062fc]:_0x37ea0f;break;case _0x4937e0('0x19a0'):{var _0x13d97d=_0x1fdb19['selectedField'][_0x4937e0('0x2116')][_0x4937e0('0x15d1')]||'id';_0x5b7150=_0x32d445()['map'](_0x37ea0f,_0x13d97d);}break;case _0x4937e0('0x2e6'):_0x5b7150=_0x37ea0f['id'];break;case _0x4937e0('0x5c0'):_0x5b7150=_0x1fdb19[_0x4937e0('0xdc7')][_0x4937e0('0x44c')]?_0x37ea0f:_0x37ea0f['id'];break;default:_0x5b7150=_0x37ea0f;break;}return _0x5b7150;}function _0x57202a(){var _0x13b67c=_0x2ca0df;_0x1fdb19[_0x13b67c('0x2')]=null,_0x1fdb19[_0x13b67c('0x2655')]=null,_0x1fdb19[_0x13b67c('0x1a67')]=null,_0x1fdb19[_0x13b67c('0x22a2')]=null,_0x1fdb19[_0x13b67c('0xb5f')]=![];}}const _0x91ba14=_0x5f47ad;function _0xdda8ae(){var _0x5201ea=_0xb635d2;return{'restrict':'E','scope':{'templatePath':_0x5201ea('0x28a0'),'card':_0x5201ea('0x28a7'),'vm':_0x5201ea('0x19d2')},'template':_0x5201ea('0x1413'),'compile':function _0x57b119(_0x5209cc){var _0x430a77=_0x5201ea;return _0x5209cc[_0x430a77('0x500')](_0x430a77('0xcb4')),function _0x4017f0(_0x17cbd1,_0x36bbf1){function _0x5bf810(){var _0x15e80c=a0_0x5325;_0x17cbd1['$emit'](_0x15e80c('0x759'),_0x36bbf1);}_0x17cbd1['cardTemplateLoaded']=_0x5bf810;};}};}const _0x227075=_0xdda8ae;;function _0x4ab8f7(){return{'restrict':'A','link':function _0x49d918(_0x59b5ce,_0x13d006,_0x49dca6){var _0x3d3d95=a0_0x5325;_0x49dca6[_0x3d3d95('0x32a')]('msChipColor',function(_0x3575b2){var _0xead441=_0x3d3d95,_0x365fd5=_0x13d006[_0xead441('0x4ec')]()[_0xead441('0x4ec')]();!_0x365fd5[_0xead441('0x1c7a')]('md-background-bg\x20md-hue-3')&&_0x365fd5['addClass']('md-background-bg\x20md-hue-3');if(!_0x32d445()[_0xead441('0x14b4')](_0x3575b2))_0x365fd5[_0xead441('0x500')](_0x3575b2);else{var _0xa52c54=_0x365fd5[0x0][_0xead441('0x103f')][_0xead441('0x1745')]('\x20'),_0x29d4a1=_0xa52c54[_0xead441('0x281c')](_0xead441('0x1e2'));_0xa52c54[_0xead441('0x25ae')]=_0x29d4a1+0x1,_0x365fd5[0x0][_0xead441('0x103f')]=_0xa52c54[_0xead441('0x1537')]('\x20');}});}};}const _0x350e70=_0x4ab8f7,_0x572fbd=_0x59426a['p']+'src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call-[chunkhash].html',_0x4bb99c=_0x59426a['p']+_0xb635d2('0x5e3');;function _0x1e9d4b(){var _0x2fcb0f=_0xb635d2;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':['$scope',_0x2fcb0f('0x917'),'$http','$translate',_0x2fcb0f('0x1728'),_0x2fcb0f('0x1c9f'),'Auth',_0x2fcb0f('0xf65'),_0x2fcb0f('0xffc'),function _0x5ce84b(_0x4ae361,_0x237559,_0x58eaf0,_0x4c70ed,_0x42e0a4,_0x10a407,_0x5acf1b,_0x5e1559,_0x454e86){var _0x36693a=_0x2fcb0f;_0x4ae361[_0x36693a('0x15a5')]=_0x5acf1b[_0x36693a('0x1ef8')](),_0x4ae361[_0x36693a('0x1d7c')]=function(){var _0x5b72e9=_0x36693a;return _0x4ae361['target']&&_0x4ae361[_0x5b72e9('0xe0b')][_0x5b72e9('0x281c')]('@')<0x0&&_0x4ae361[_0x5b72e9('0xe0b')]!=_0x4ae361[_0x5b72e9('0x15a5')]['internal']&&_0x4ae361[_0x5b72e9('0xe0b')]!=_0x4ae361[_0x5b72e9('0x15a5')][_0x5b72e9('0x2623')]&&(_0x4ae361[_0x5b72e9('0x15a5')]['showWebBar']==0x0&&_0x4ae361[_0x5b72e9('0x15a5')]['phoneBarRemoteControl']||_0x4ae361[_0x5b72e9('0x15a5')]['showWebBar']==0x2&&_0x4ae361['license']['webrtc'])&&!_0x4ae361[_0x5b72e9('0x1ebc')];};function _0x2e50c5(_0x4a83e4){var _0x56ae66=_0x36693a;return _0x454e86[_0x56ae66('0x10c6')][_0x56ae66('0x71')]({'id':_0x4ae361['currentUser']['id']})[_0x56ae66('0xe59')]['then'](function(_0x4a94a5){var _0x2454a1=_0x56ae66;if(_0x4a94a5[_0x2454a1('0x148b')])return _0x10a407[_0x2454a1('0x26b2')]({'controller':'PrefixDialogController','controllerAs':'vm','templateUrl':_0x4bb99c,'parent':angular[_0x2454a1('0x24a1')](_0x42e0a4[_0x2454a1('0x19b2')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x4a94a5,'required':_0x4ae361[_0x2454a1('0x15a5')][_0x2454a1('0x69c')]}});})['then'](function(_0x4a079e){var _0x148a08=_0x56ae66;if(!_0x4ae361[_0x148a08('0x15a5')][_0x148a08('0x69c')]){if(_0x4a079e&&_0x4a079e!==-0x1)_0x52fc70(_0x4a079e+_0x4a83e4);else!_0x4a079e&&_0x52fc70(_0x4a83e4);}else _0x4a079e&&_0x4a079e!==-0x1&&_0x52fc70(_0x4a079e+_0x4a83e4);});}function _0x52fc70(_0x38aaff){var _0x57acbd=_0x36693a;switch(_0x4ae361[_0x57acbd('0x15a5')][_0x57acbd('0x12b4')]){case 0x0:return _0x17c232(_0x57acbd('0xf69')+(_0x4ae361[_0x57acbd('0x15a5')][_0x57acbd('0xfc7')]||'9888')+'/api/originate/'+_0x9320a3(_0x38aaff));case 0x2:return _0x237559[_0x57acbd('0xa98')](_0x57acbd('0x344'),{'target':_0x9320a3(_0x38aaff)});default:break;}}_0x4ae361[_0x36693a('0x20c4')]=function(_0x50ed5d){return _0x4ae361['currentUser']['showWebBar']!==0x2?_0x2e50c5(_0x50ed5d):_0x52fc70(_0x50ed5d);},_0x4ae361['transfer']=function(_0xbdfe1a){var _0x503bf4=_0x36693a;switch(_0x4ae361[_0x503bf4('0x15a5')][_0x503bf4('0x12b4')]){case 0x0:return _0x17c232(_0x503bf4('0xf69')+(_0x4ae361[_0x503bf4('0x15a5')]['phoneBarRemoteControlPort']||_0x503bf4('0xb4c'))+_0x503bf4('0x7a0')+_0x9320a3(_0xbdfe1a));case 0x2:_0x237559['$broadcast'](_0x503bf4('0xdd9'),{'target':_0x9320a3(_0xbdfe1a)});break;default:break;}};function _0x9320a3(_0x2fc25b){var _0x40e67c=_0x36693a;return!_0x32d445()['isNil'](_0x2fc25b)?_0x2fc25b[_0x40e67c('0x1b42')](/[^\w.+#*-]+/g,''):'';}function _0x17c232(_0x71950f){var _0x11bf80=_0x36693a;return _0x58eaf0[_0x11bf80('0x22d5')](_0x71950f)[_0x11bf80('0x425')](function(){var _0x40527a=_0x11bf80;_0x5e1559[_0x40527a('0x425')]({'title':_0x40527a('0x17b2'),'msg':'Call\x20properly\x20handled!'});})[_0x11bf80('0x8c8')](function(){var _0x4dd4c9=_0x11bf80;_0x5e1559[_0x4dd4c9('0x8c8')]({'title':_0x4dd4c9('0x21ee'),'msg':_0x4c70ed[_0x4dd4c9('0x2159')]('CONTACTMANAGER.ERRORS.PHONEBAR_API')});});}}],'templateUrl':_0x572fbd};}const _0x335c0f=_0x1e9d4b;_0x2a5f31['$inject']=[_0xb635d2('0x23e4')];function _0x2a696a(){var _0x558d07=_0xb635d2;_0xc674c[_0x558d07('0xb0c')]=[_0x558d07('0x271e')];var _0x497652=this,_0x109593={'formatter':function _0xae083d(_0x2d92de){if(!_0x2d92de)return'';return _0x2d92de===''?_0x2d92de:new Date(_0x2d92de);},'parser':function _0x5de9f7(_0x44668c){var _0x3259f4=_0x558d07;if(!_0x44668c)return'';return _0x4ddcaa()(_0x44668c)[_0x3259f4('0xaf8')](_0x4ddcaa()(_0x44668c)[_0x3259f4('0x1e9e')](),'m')[_0x3259f4('0x31')]();}};function _0xc674c(_0x43fea9){var _0x21cfd4=_0x558d07;_0x109593=angular[_0x21cfd4('0x2bb')]({},_0x109593,_0x43fea9);}_0x497652['config']=_0xc674c,_0x497652[_0x558d07('0x436')]=function(){return _0x109593;};}function _0x2a5f31(_0x197360){var _0xe934e9=_0xb635d2;return{'require':_0xe934e9('0x8de'),'priority':0x1,'link':function _0x8a432c(_0x1d0538,_0x1f8a4c,_0x4ef1ac,_0x46cd2e){var _0xe23e7=_0xe934e9;_0x46cd2e[_0xe23e7('0x490')][_0xe23e7('0xb76')](_0x197360[_0xe23e7('0x117f')]),_0x46cd2e[_0xe23e7('0xff1')][_0xe23e7('0xb76')](_0x197360[_0xe23e7('0x968')]);}};}_0x152375[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc')];function _0x152375(_0x2a0ed2){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function _0x1f67d6(_0x2d45fe,_0x5211c6){var _0x4dd9ee=a0_0x5325,_0x44ab69=![],_0x18aae8={};_0x18aae8['id']=_0x2d45fe['id'];!_0x32d445()['isNil'](_0x2d45fe[_0x4dd9ee('0xf2e')])&&(_0x18aae8[_0x4dd9ee('0xf2e')]=_0x2d45fe[_0x4dd9ee('0xf2e')]);var _0x3527ce=document[_0x4dd9ee('0x9a1')](_0x2d45fe[_0x4dd9ee('0x24a1')]);_0x3527ce[_0x4dd9ee('0xede')](_0x4dd9ee('0x313'),_0x4dd9ee('0x23ca')),_0x3527ce[_0x4dd9ee('0xede')](_0x4dd9ee('0x279f'),_0x4dd9ee('0x2206')),_0x2d45fe[_0x4dd9ee('0x24a1')]==='audio'&&_0x3527ce[_0x4dd9ee('0xede')](_0x4dd9ee('0xf31'),_0x4dd9ee('0x272e')),_0x2d45fe[_0x4dd9ee('0x24a1')]===_0x4dd9ee('0xfdc')&&_0x3527ce[_0x4dd9ee('0xede')](_0x4dd9ee('0xf31'),_0x4dd9ee('0x873')),_0x3527ce[_0x4dd9ee('0xede')](_0x4dd9ee('0x13e4'),_0x2d45fe[_0x4dd9ee('0x13e4')]),_0x3527ce[_0x4dd9ee('0xede')](_0x4dd9ee('0x48a'),'\x20'),_0x3527ce[_0x4dd9ee('0x3ea')]=function(_0x3b79ff){var _0x423a0c=_0x4dd9ee;!_0x44ab69&&(_0x44ab69=!![],_0x3b79ff[_0x423a0c('0x9f1')](),_0x2a0ed2[_0x2d45fe[_0x423a0c('0x179f')]][_0x423a0c('0x1d1e')](_0x18aae8)[_0x423a0c('0xe59')][_0x423a0c('0xe19')](function(_0x21fc9a){var _0x56399c=_0x423a0c,_0x5676df=[_0x21fc9a[_0x56399c('0x17ab')]],_0x5dd7b5=new Blob(_0x5676df,{'type':_0x21fc9a[_0x56399c('0x62e')]});_0x3527ce[_0x56399c('0xede')](_0x56399c('0x62e'),_0x21fc9a[_0x56399c('0x62e')]),_0x3527ce[_0x56399c('0xede')](_0x56399c('0x48a'),URL['createObjectURL'](_0x5dd7b5)),_0x3527ce[_0x56399c('0x1d0b')]();})[_0x423a0c('0x223b')](function(_0x5397b2){var _0x16a78c=_0x423a0c;console[_0x16a78c('0x8c8')](_0x5397b2);}));},_0x5211c6[_0x4dd9ee('0x1d0a')](_0x3527ce);}};}const _0x9adf81=_0x152375,_0x435a2e=_0x59426a['p']+_0xb635d2('0x998');;function _0x522e5b(){var _0x5cac53=_0xb635d2;return{'restrict':'E','scope':{'options':'='},'controller':[_0x5cac53('0x63c'),function _0x56ec6a(_0x135f4b){var _0x114137=_0x5cac53;_0x135f4b[_0x114137('0x2732')]=function(_0x36392e,_0x2cefbc,_0x22be1e){var _0x166b9e=_0x114137;if(_0x2cefbc[_0x166b9e('0xab5')])return;else{if(typeof _0x36392e[_0x166b9e('0x1768')]!=='undefined'&&_0x36392e[_0x166b9e('0x1768')])return _0x22be1e?_0x135f4b[_0x166b9e('0xf1b')](_0x2cefbc[_0x166b9e('0x2273')],_0x2cefbc['items'],_0x2cefbc['selectedItems'][_0x166b9e('0x281c')](_0x36392e),_0x22be1e):_0x135f4b[_0x166b9e('0xf1b')](_0x2cefbc[_0x166b9e('0xe4b')],_0x2cefbc[_0x166b9e('0x2273')],_0x2cefbc[_0x166b9e('0xe4b')][_0x166b9e('0x281c')](_0x36392e),_0x22be1e);}},_0x135f4b['transfer']=function(_0x29a8fb,_0x1e19d7,_0x12a56c,_0x3f6f99){var _0x7cf651=_0x114137,_0x519768=[];if(_0x12a56c>=0x0)_0x519768[_0x7cf651('0xb76')](_0x29a8fb[_0x12a56c]),_0x1e19d7[_0x7cf651('0xb76')](_0x29a8fb[_0x12a56c]),_0x29a8fb['splice'](_0x12a56c,0x1);else{for(var _0x17035d=0x0;_0x17035d<_0x29a8fb[_0x7cf651('0x25ae')];_0x17035d++){typeof _0x29a8fb[_0x17035d][_0x7cf651('0x1768')]!==_0x7cf651('0x1143')&&_0x29a8fb[_0x17035d][_0x7cf651('0x1768')]&&_0x1e19d7[_0x7cf651('0xb76')](_0x29a8fb[_0x17035d]);}for(var _0x599b34=_0x29a8fb[_0x7cf651('0x25ae')]-0x1;_0x599b34>=0x0;_0x599b34--){_0x29a8fb[_0x599b34][_0x7cf651('0x1768')]&&_0x29a8fb[_0x7cf651('0x1c8e')](_0x599b34,0x1);}_0x519768=_0x1e19d7;}_0x135f4b[_0x7cf651('0x2116')][_0x7cf651('0x539')]&&_0x135f4b[_0x7cf651('0x2116')][_0x7cf651('0x539')](_0x519768,_0x3f6f99);},_0x135f4b[_0x114137('0x9e8')]=function(_0x573282,_0x233b97){var _0x3ed0ce=_0x114137,_0x187b97='';if(_0x32d445()[_0x3ed0ce('0xe44')](_0x233b97))return _0x187b97;if(_0x32d445()[_0x3ed0ce('0x113a')](_0x233b97)){for(var _0x16c4e9=0x0;_0x16c4e9<_0x233b97[_0x3ed0ce('0x25ae')];_0x16c4e9++){_0x187b97+='\x20'+(_0x573282[_0x233b97[_0x16c4e9]]?_0x573282[_0x233b97[_0x16c4e9]]:'');}return _0x187b97;}else return _0x573282[_0x233b97]?_0x573282[_0x233b97]:'';};}],'templateUrl':_0x435a2e};}const _0x4d92d3=_0x522e5b;_0x1c2ea9[_0xb635d2('0xb0c')]=[_0xb635d2('0x2493')];function _0x1c2ea9(_0x14f749){var _0x2c9e12=_0xb635d2;return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':_0x2c9e12('0x1e70'),'link':function _0x53e6b3(_0x54d41a,_0x471da8){var _0x51bb46=_0x2c9e12,_0x16e6d0=_0x471da8[_0x51bb46('0xb6b')]({'pickerPosition':_0x54d41a[_0x51bb46('0x1ed0')],'search':_0x54d41a[_0x51bb46('0x1cc8')],'recentEmojis':_0x54d41a['recentEmojis'],'placeholder':_0x14f749[_0x51bb46('0x2159')](_0x54d41a['placeholder']||_0x51bb46('0x1672')),'attributes':{'spellcheck':!![]},'events':{'keypress':function _0xb1df1a(_0x41989f,_0x377690){var _0x125ff6=_0x51bb46;_0x54d41a[_0x125ff6('0x8de')]=this[_0x125ff6('0x112d')](),_0x54d41a[_0x125ff6('0x1fb6')]({'event':_0x377690,'body':this['getText']()});},'emojibtn_click':function _0x3d9432(){var _0x3a6eb9=_0x51bb46;_0x54d41a[_0x3a6eb9('0x8de')]=this['getText']();}}});_0x54d41a[_0x51bb46('0x8de')]&&_0x16e6d0[0x0]['emojioneArea'][_0x51bb46('0xf4d')](_0x54d41a[_0x51bb46('0x8de')]),_0x54d41a[_0x51bb46('0x1163')]=_0x54d41a[_0x51bb46('0x2130')]||{},_0x54d41a[_0x51bb46('0x1163')]['setText']=function(_0x323fe5){var _0x226f07=_0x51bb46;_0x16e6d0[0x0][_0x226f07('0xb6b')]['setText'](_0x323fe5);},_0x54d41a[_0x51bb46('0x1163')][_0x51bb46('0x112d')]=function(){var _0x4aabcf=_0x51bb46;return _0x16e6d0[0x0][_0x4aabcf('0xb6b')][_0x4aabcf('0x112d')]();},_0x54d41a[_0x51bb46('0x107')](_0x51bb46('0x8de'),function(_0x19101e){var _0x1e3457=_0x51bb46;!_0x19101e&&_0x16e6d0[0x0][_0x1e3457('0xb6b')][_0x1e3457('0xf4d')]('');});}};}const _0x1678c1=_0x1c2ea9,_0x3fc4b3=_0x59426a['p']+_0xb635d2('0x1d3b');;function _0x2d1d77(){var _0x2719a8=_0xb635d2;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x2719a8('0x63c'),function _0x4579a9(_0x294b4a){var _0x353eec=_0x2719a8;_0x294b4a['fonts']=[{'option':_0x353eec('0x1266'),'value':'Arial,Helvetica,sans-serif'},{'option':'Century\x20Gothic','value':'Century\x20Gothic,Futura,Didact\x20Gothic,san-serif'},{'option':'Calibri','value':'Calibri,\x20Verdana,\x20Geneva,\x20sans-serif'},{'option':_0x353eec('0x2396'),'value':_0x353eec('0x1eb3')},{'option':_0x353eec('0xedb'),'value':_0x353eec('0x227e')},{'option':_0x353eec('0xd36'),'value':_0x353eec('0x265c')},{'option':_0x353eec('0x2831'),'value':_0x353eec('0x1100')},{'option':_0x353eec('0x1209'),'value':_0x353eec('0x1dbe')},{'option':'Times\x20New\x20Roman','value':_0x353eec('0x220a')},{'option':_0x353eec('0x7cf'),'value':'Trebuchet\x20MS,Helvetica,sans-serif'},{'option':_0x353eec('0xe6'),'value':_0x353eec('0x286')}];}],'templateUrl':_0x3fc4b3};}const _0x5487bc=_0x2d1d77;function _0x5d1d20(){var _0x4a9c7d=_0xb635d2,_0x3c7df3=this;_0x3c7df3[_0x4a9c7d('0xc5b')]=[],_0x3c7df3[_0x4a9c7d('0x13c2')]=0x0,_0x3c7df3[_0x4a9c7d('0x11e')]=_0x5c4da7,_0x3c7df3['previousStep']=_0x4d11e7,_0x3c7df3[_0x4a9c7d('0x26f7')]=_0x429465,_0x3c7df3[_0x4a9c7d('0x15db')]=_0x452577,_0x3c7df3[_0x4a9c7d('0xb42')]=_0x737a99,_0x3c7df3['totalSteps']=_0x39ef9b,_0x3c7df3[_0x4a9c7d('0x148d')]=_0x563079,_0x3c7df3[_0x4a9c7d('0x186e')]=_0x1b85ec,_0x3c7df3[_0x4a9c7d('0xb8a')]=_0x4326a7,_0x3c7df3['previousStepInvalid']=_0x48c32b,_0x3c7df3[_0x4a9c7d('0x9fa')]=_0x52a763,_0x3c7df3[_0x4a9c7d('0xc84')]=_0x35f87b;function _0x5c4da7(_0x391ccf){var _0x58c977=_0x4a9c7d;_0x3c7df3['forms'][_0x58c977('0xb76')](_0x391ccf);}function _0x4d11e7(){var _0x4f9c5c=_0x4a9c7d;if(_0x563079())return;_0x3c7df3[_0x4f9c5c('0x13c2')]--;}function _0x429465(){var _0x476744=_0x4a9c7d;if(_0x1b85ec())return;_0x3c7df3[_0x476744('0x13c2')]++;}function _0x452577(){var _0x373a52=_0x4a9c7d;_0x3c7df3[_0x373a52('0x13c2')]=0x0;}function _0x737a99(){var _0x2c0d99=_0x4a9c7d;_0x3c7df3[_0x2c0d99('0x13c2')]=_0x39ef9b()-0x1;}function _0x39ef9b(){var _0x302366=_0x4a9c7d;return _0x3c7df3[_0x302366('0xc5b')][_0x302366('0x25ae')];}function _0x563079(){var _0x5af3f9=_0x4a9c7d;return _0x3c7df3[_0x5af3f9('0x13c2')]===0x0;}function _0x1b85ec(){return _0x3c7df3['selectedIndex']===_0x39ef9b()-0x1;}function _0x4326a7(){var _0x356e9e=_0x4a9c7d;return angular[_0x356e9e('0x1d95')](_0x3c7df3[_0x356e9e('0xc5b')][_0x3c7df3[_0x356e9e('0x13c2')]])&&_0x3c7df3[_0x356e9e('0xc5b')][_0x3c7df3[_0x356e9e('0x13c2')]][_0x356e9e('0xe7b')];}function _0x48c32b(){var _0x10d8f1=_0x4a9c7d;return _0x3c7df3[_0x10d8f1('0x13c2')]>0x0&&angular[_0x10d8f1('0x1d95')](_0x3c7df3[_0x10d8f1('0xc5b')][_0x3c7df3[_0x10d8f1('0x13c2')]-0x1])&&_0x3c7df3[_0x10d8f1('0xc5b')][_0x3c7df3[_0x10d8f1('0x13c2')]-0x1][_0x10d8f1('0xe7b')];}function _0x52a763(){var _0x32fe9b=_0x4a9c7d;for(var _0x38dee0=0x0;_0x38dee0<_0x3c7df3[_0x32fe9b('0xc5b')][_0x32fe9b('0x25ae')];_0x38dee0++){if(_0x3c7df3['forms'][_0x38dee0]['$invalid'])return!![];}return![];}function _0x35f87b(){var _0x40ca91=_0x4a9c7d;_0x3c7df3[_0x40ca91('0x13c2')]=0x0;for(var _0x3cc01b=0x0;_0x3cc01b<_0x3c7df3['forms'][_0x40ca91('0x25ae')];_0x3cc01b++){_0x3c7df3[_0x40ca91('0xc5b')][_0x3cc01b][_0x40ca91('0x175c')](),_0x3c7df3['forms'][_0x3cc01b]['$setUntouched']();}}}function _0x30e800(){var _0x54eef7=_0xb635d2;return{'restrict':'E','scope':!![],'controller':_0x54eef7('0x28a1'),'compile':function _0x377854(_0x567161){var _0x226ed7=_0x54eef7;return _0x567161[_0x226ed7('0x500')](_0x226ed7('0x14b')),function _0x1f9679(){};}};}function _0x17a981(){var _0xbcfab1=_0xb635d2;return{'restrict':'A','require':[_0xbcfab1('0x5f2'),_0xbcfab1('0x1e07')],'compile':function _0x1be4d1(_0x1eb702){var _0x2114cb=_0xbcfab1;return _0x1eb702[_0x2114cb('0x500')](_0x2114cb('0x27e4')),function _0x5ee8ed(_0x4f6738,_0x229265,_0x45a1c5,_0x1e6fa3){var _0x40b349=_0x2114cb,_0x709683=_0x1e6fa3[0x0],_0x226ad2=_0x1e6fa3[0x1];_0x226ad2[_0x40b349('0x11e')](_0x709683);};}};}const _0x42aac3=_0x59426a['p']+_0xb635d2('0x1c3b');_0x19b538[_0xb635d2('0xb0c')]=[_0xb635d2('0x1728')];function _0x19b538(_0x5858a5){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x42aac3,'link':function _0x5ca940(_0xab38a4,_0x5264c6){var _0x3e3e51=a0_0x5325,_0x12145e=_0x5858a5[_0x3e3e51('0xf15')](_0x3e3e51('0x1b7b')),_0x278fd2='ms-info-bar-active';_0x12145e[_0x3e3e51('0x500')](_0x278fd2);function _0x103502(){var _0x389eb7=_0x3e3e51;_0x12145e['removeClass'](_0x278fd2),_0x5264c6[_0x389eb7('0xa8b')](),_0xab38a4[_0x389eb7('0x12cc')]&&_0xab38a4[_0x389eb7('0x12cc')](),_0xab38a4[_0x389eb7('0x5cd')]();}_0xab38a4['removeInfoBar']=_0x103502;}};}const _0x46ffb5=_0x19b538;_0x18973f[_0xb635d2('0xb0c')]=['$timeout'],_0x53199c[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0x13a6'),_0xb635d2('0x1a0b')];function _0x53199c(_0x14c13d,_0x10fd50,_0x53cb96,_0x4f4c86){var _0xe26e9b=_0xb635d2,_0x97719d=this,_0x184dc6={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}},_0x1447ab=!![];_0x97719d[_0xe26e9b('0x2116')]=null,_0x97719d[_0xe26e9b('0x2314')]=[],_0x97719d['containerPos']='',_0x97719d['columnWidth']='',_0x97719d['items']=[],_0x97719d[_0xe26e9b('0x720')]=_0x4e4cc4,_0x97719d[_0xe26e9b('0xd7')]=_0x40f8e4,_0x97719d[_0xe26e9b('0x198e')]=_0x42f3a0;function _0x40f8e4(){var _0xbf9d56=_0xe26e9b;_0x97719d[_0xbf9d56('0x2116')]=!_0x97719d[_0xbf9d56('0x2116')]?_0x184dc6:angular[_0xbf9d56('0x2bb')](_0x184dc6,_0x97719d['options']),_0x33d953();}_0x14c13d['$on'](_0xe26e9b('0x1468'),function(){_0x4e4cc4();});function _0x42f3a0(_0x4ca830,_0x39a121){var _0x220147=_0xe26e9b;if(typeof imagesLoaded!==_0x220147('0x1143')){var _0x140dfb=_0x10fd50[_0x220147('0x2503')](_0x4ca830);_0x140dfb['on'](_0x220147('0x1edc'),function(){_0x39a121();});}else _0x39a121();}function _0x33d953(){var _0x408dbd=_0xe26e9b;_0x14c13d[_0x408dbd('0x107')](function(){var _0x2c7726=_0x408dbd;return _0x97719d[_0x2c7726('0x2314')]['width']();},function(_0x496af6,_0x3eed7c){_0x496af6!==_0x3eed7c&&_0x4e4cc4();});}function _0x4e4cc4(){var _0x59f947=_0xe26e9b;_0x1447ab&&_0x4f4c86[_0x59f947('0x2c1')](_0x1447ab);_0x1447ab=_0x4f4c86(function(){var _0x5c1884=_0x59f947;_0x3369e0(),_0x14c13d[_0x5c1884('0xa98')]('msMasonry:relayoutFinished');},_0x97719d['options'][_0x59f947('0x1620')]);function _0x3369e0(){var _0x1e45a1=_0x59f947;_0x97719d[_0x1e45a1('0x3bd')]=_0x97719d['container'][0x0][_0x1e45a1('0x128')](),_0x350e18(),_0x14c13d['$broadcast'](_0x1e45a1('0x1935')),_0x97719d[_0x1e45a1('0xe4b')]=_0x97719d['container'][_0x1e45a1('0xf15')]('ms-masonry-item');var _0x118338=Array[_0x1e45a1('0x2087')](null,new Array(_0x97719d['columnCount']))[_0x1e45a1('0x65a')](function(){return 0x0;});for(var _0x284a80=0x0;_0x284a80<_0x97719d[_0x1e45a1('0xe4b')]['length'];_0x284a80++){var _0x11895e=_0x97719d[_0x1e45a1('0xe4b')][_0x284a80],_0x1d8984=void 0x0,_0x3c1e3d=void 0x0;_0x11895e=angular[_0x1e45a1('0x24a1')](_0x11895e);_0x11895e[_0x1e45a1('0x2ba')]()&&_0x11895e[_0x1e45a1('0x2ba')]()[_0x1e45a1('0xa98')](_0x1e45a1('0x2340'));_0x11895e[_0x1e45a1('0x25b3')]({'width':_0x97719d[_0x1e45a1('0x1869')]});_0x97719d[_0x1e45a1('0x2116')][_0x1e45a1('0x2807')]?(_0x1d8984=_0x284a80%_0x97719d[_0x1e45a1('0x258')],_0x3c1e3d=_0x118338[_0x1d8984]):(_0x3c1e3d=Math[_0x1e45a1('0x27a1')][_0x1e45a1('0x2087')](Math,_0x118338),_0x1d8984=_0x118338[_0x1e45a1('0x281c')](_0x3c1e3d));_0x118338[_0x1d8984]=_0x3c1e3d+_0x11895e[0x0]['getBoundingClientRect']()[_0x1e45a1('0x131e')];var _0x22dc32=Math['round'](_0x1d8984*_0x97719d['columnWidth']),_0x5f1f0f=_0x3c1e3d;_0x11895e[_0x1e45a1('0x25b3')]({'transform':_0x1e45a1('0x145f')+_0x22dc32+_0x1e45a1('0x1a3')+_0x5f1f0f+_0x1e45a1('0x7f4')}),_0x11895e[_0x1e45a1('0x500')](_0x1e45a1('0x246b')),_0x11895e['scope']()&&_0x11895e[_0x1e45a1('0x2ba')]()[_0x1e45a1('0xa98')]('msMasonryItem:finishReLayout');}}}function _0x350e18(){var _0x4b8a18=_0xe26e9b;_0x97719d[_0x4b8a18('0x258')]=_0x97719d[_0x4b8a18('0x2116')]['columnCount'];if(_0x53cb96(_0x4b8a18('0x110f')))_0x97719d[_0x4b8a18('0x258')]=_0x97719d[_0x4b8a18('0x2116')]['columnCount'];else{if(_0x53cb96('md'))_0x97719d[_0x4b8a18('0x258')]=_0x97719d[_0x4b8a18('0x258')]>_0x97719d[_0x4b8a18('0x2116')][_0x4b8a18('0x15a7')]['md']?_0x97719d[_0x4b8a18('0x2116')][_0x4b8a18('0x15a7')]['md']:_0x97719d[_0x4b8a18('0x258')];else _0x53cb96('sm')?_0x97719d['columnCount']=_0x97719d['columnCount']>_0x97719d['options'][_0x4b8a18('0x15a7')]['sm']?_0x97719d[_0x4b8a18('0x2116')][_0x4b8a18('0x15a7')]['sm']:_0x97719d['columnCount']:_0x97719d['columnCount']=_0x97719d[_0x4b8a18('0x2116')][_0x4b8a18('0x15a7')]['xs'];}_0x97719d[_0x4b8a18('0x1869')]=_0x97719d[_0x4b8a18('0x3bd')][_0x4b8a18('0x16e5')]/_0x97719d[_0x4b8a18('0x258')];}}function _0x18973f(_0x2e2535){var _0x3f1e69=_0xb635d2;return{'restrict':_0x3f1e69('0x2777'),'controller':_0x3f1e69('0xf56'),'compile':_0x5c191c};function _0x5c191c(_0x195887,_0x3715a1){return{'pre':function _0x3a606b(_0xdd8916,_0x15be26,_0x4bdd36,_0x510c40){var _0x4d0cb1=a0_0x5325;_0x510c40[_0x4d0cb1('0x2116')]=angular[_0x4d0cb1('0x56')](_0x3715a1['options']||'{}'),_0x510c40[_0x4d0cb1('0x2314')]=_0x195887;},'post':function _0x4e7639(_0x2f36d4,_0x4813b7,_0x1b316a,_0x232ec1){_0x2e2535(function(){_0x232ec1['initialize']();});}};}}function _0x4829b1(){var _0x31e124=_0xb635d2;return{'restrict':'AEC','require':_0x31e124('0x16f9'),'priority':0x1,'link':_0x10224a};function _0x10224a(_0x41ab0f,_0x5789e3,_0x3d0566,_0x2cd212){var _0x3f6615=_0x31e124;_0x2cd212[_0x3f6615('0x198e')](_0x5789e3,function(){var _0x118f80=_0x3f6615;_0x2cd212[_0x118f80('0x720')]();}),_0x41ab0f[_0x3f6615('0xb2b')](_0x3f6615('0x20ba'),function(){_0x41ab0f['$watch'](function(){var _0x1a00ca=a0_0x5325;return _0x5789e3[_0x1a00ca('0x131e')]();},function(_0x277f9a,_0x457274){var _0x507bfc=a0_0x5325;_0x277f9a!==_0x457274&&_0x2cd212[_0x507bfc('0x720')]();});}),_0x5789e3['on'](_0x3f6615('0x5cd'),function(){_0x2cd212['reLayout']();});}}const _0x40084b=_0x59426a['p']+'src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker-[chunkhash].html';_0x4ef2f8[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2798'),_0xb635d2('0x282b'),'motionGenerator'];function _0x4ef2f8(_0x40e761,_0x4fecf1,_0xd26d75,_0x520db3){var _0x5113d2=_0xb635d2,_0x14bc73=this;_0x14bc73[_0x5113d2('0xdf1')]=_0x4fecf1,_0x14bc73[_0x5113d2('0x1d0c')]=![],_0x14bc73['selectedHues']=![],_0x40e761[_0x5113d2('0x1734')]={},_0x14bc73['activateHueSelection']=_0x174941,_0x14bc73[_0x5113d2('0x7d5')]=_0x1fcf30,_0x14bc73[_0x5113d2('0x5fe')]=_0x2c5dbe,_0x40e761[_0x5113d2('0x107')](_0x5113d2('0x8de'),_0x321eeb);function _0x174941(_0x4ff755,_0x37e6b6){var _0x90cefe=_0x5113d2;_0x14bc73[_0x90cefe('0x1d0c')]=_0x4ff755,_0x14bc73[_0x90cefe('0x28ad')]=_0x37e6b6;}function _0x1fcf30(_0x410e13,_0x25a069){var _0x554865=_0x5113d2;_0x28e404(_0x410e13,_0x25a069),_0x550467(),_0xd26d75[_0x554865('0x11ed')]();}function _0x2c5dbe(){var _0x154864=_0x5113d2;_0x14bc73[_0x154864('0x1a8d')]={'palette':'','hue':'','class':''},_0x174941(![],![]),_0x550467();}function _0x321eeb(){var _0x41a172=_0x5113d2;if(!_0x14bc73[_0x41a172('0x176e')][_0x41a172('0x111f')]||_0x14bc73[_0x41a172('0x176e')][_0x41a172('0x111f')]===''){_0x2c5dbe();return;}var _0x4460da,_0x568c64;if(_0x14bc73[_0x41a172('0x1241')]===_0x41a172('0x168c')){var _0xbbd7f7=_0x14bc73[_0x41a172('0x176e')][_0x41a172('0x111f')][_0x41a172('0x1745')]('-');_0xbbd7f7[_0x41a172('0x25ae')]>=0x5?(_0x4460da=_0xbbd7f7[0x1]+'-'+_0xbbd7f7[0x2],_0x568c64=_0xbbd7f7[0x3]):(_0x4460da=_0xbbd7f7[0x1],_0x568c64=_0xbbd7f7[0x2]);}else _0x14bc73['msModelType']===_0x41a172('0x10da')&&(_0x4460da=_0x14bc73[_0x41a172('0x176e')][_0x41a172('0x111f')]['palette'],_0x568c64=_0x14bc73[_0x41a172('0x176e')][_0x41a172('0x111f')][_0x41a172('0x2615')]||0x1f4);_0x28e404(_0x4460da,_0x568c64);}function _0x28e404(_0xa1499,_0x3f4a47){var _0x42a637=_0x5113d2;_0x14bc73[_0x42a637('0x1a8d')]={'palette':_0xa1499,'hue':_0x3f4a47,'class':'md-'+_0xa1499+'-'+_0x3f4a47+_0x42a637('0x1102'),'bgColorValue':_0x520db3[_0x42a637('0x25a2')](_0x14bc73['palettes'][_0xa1499][_0x3f4a47][_0x42a637('0x2')]),'fgColorValue':_0x520db3['rgba'](_0x14bc73[_0x42a637('0xdf1')][_0xa1499][_0x3f4a47][_0x42a637('0x403')])},_0x14bc73[_0x42a637('0x1241')]==='obj'&&!angular[_0x42a637('0x1f15')](_0x14bc73[_0x42a637('0x1a8d')],_0x14bc73[_0x42a637('0x176e')]['$viewValue'])&&_0x550467(),_0x174941(_0xa1499,_0x14bc73[_0x42a637('0xdf1')][_0xa1499]),_0x40e761['$selectedColor']=_0x14bc73['selectedColor'];}function _0x550467(){var _0x3c378c=_0x5113d2;if(_0x14bc73[_0x3c378c('0x1241')]===_0x3c378c('0x168c'))_0x14bc73[_0x3c378c('0x176e')]['$setViewValue'](_0x14bc73[_0x3c378c('0x1a8d')][_0x3c378c('0x168c')]);else _0x14bc73[_0x3c378c('0x1241')]===_0x3c378c('0x10da')&&_0x14bc73[_0x3c378c('0x176e')][_0x3c378c('0x7a4')](_0x14bc73[_0x3c378c('0x1a8d')]);}}function _0x124381(){var _0x1f87e2=_0xb635d2;return{'require':['msMaterialColorPicker','ngModel'],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x1f87e2('0x21fc'),'transclude':!![],'templateUrl':_0x40084b,'link':function _0x2b9dcc(_0x5dd557,_0x4e3bef,_0x44e719,_0xb6b03f,_0x1b2313){var _0x4aef55=_0x1f87e2,_0x53e9e6=_0xb6b03f[0x0];_0x53e9e6[_0x4aef55('0x176e')]=_0xb6b03f[0x1],_0x53e9e6[_0x4aef55('0x1241')]=_0x5dd557[_0x4aef55('0x1241')]||'class',_0x1b2313(_0x5dd557,function(_0x19f8f3){var _0x1335bb=_0x4aef55;_0x19f8f3=_0x19f8f3[_0x1335bb('0x2891')](function(_0x16bd75,_0x27b0ea){return _0x27b0ea['nodeType']===0x1?!![]:![];}),_0x19f8f3[_0x1335bb('0x25ae')]&&_0x4e3bef[_0x1335bb('0xf15')](_0x1335bb('0x22e6'))[_0x1335bb('0x2361')](_0x19f8f3);});}};}_0x12820d[_0xb635d2('0xb0c')]=['$rootScope','$q',_0xb635d2('0x1820'),'$state'],_0x4df131['$inject']=[_0xb635d2('0x917'),_0xb635d2('0x2e'),'msNavFoldService'],_0x1c4a8e[_0xb635d2('0xb0c')]=['$document',_0xb635d2('0x917'),'msNavFoldService'];function _0x4674d0(){var _0x3c8e04={},_0x1c121d={'setFoldable':_0xcfd65c,'isNavFoldedOpen':_0x53c273,'toggleFold':_0x358130,'openFolded':_0x145bd8,'closeFolded':_0x53a9b6};return _0x1c121d;function _0xcfd65c(_0x191e20,_0x33d0ea){_0x3c8e04={'scope':_0x191e20,'element':_0x33d0ea};}function _0x53c273(){var _0x5ac47d=a0_0x5325;return _0x3c8e04[_0x5ac47d('0x2ba')]['isNavFoldedOpen']();}function _0x358130(){var _0x286dc5=a0_0x5325;_0x3c8e04[_0x286dc5('0x2ba')][_0x286dc5('0x219f')]();}function _0x145bd8(){var _0x1a86f1=a0_0x5325;_0x3c8e04[_0x1a86f1('0x2ba')]['openFolded']();}function _0x53a9b6(){var _0x49d5e0=a0_0x5325;_0x3c8e04['scope'][_0x49d5e0('0x11d8')]();}}function _0x1c4a8e(_0xae777,_0x36dea3,_0x578ab6){return{'restrict':'A','link':function _0x26eb73(_0x49d2c4,_0x5a87a2,_0x1061bc){var _0x3c9e9d=a0_0x5325,_0x1825c4=_0x1061bc['msNavIsFolded']===_0x3c9e9d('0x2206'),_0x306725=![],_0x6bda62=angular[_0x3c9e9d('0x24a1')](_0xae777[0x0][_0x3c9e9d('0x19b2')]),_0x1e7482=angular[_0x3c9e9d('0x24a1')](_0x3c9e9d('0xdd8')),_0x367450=angular[_0x3c9e9d('0x24a1')](_0x3c9e9d('0xb05')),_0x485e66=_0x5a87a2['parent']();_0x578ab6[_0x3c9e9d('0xfb7')](_0x49d2c4,_0x5a87a2,_0x1825c4);_0x1825c4?_0x35a312():_0x186cc7();function _0x30a389(){return _0x306725;}function _0x12519a(){_0x1825c4=!_0x1825c4,_0x1825c4?_0x35a312():_0x186cc7();}function _0x35a312(){var _0x22319b=_0x3c9e9d;_0x6bda62['addClass']('ms-nav-folded'),_0x36dea3[_0x22319b('0xa98')](_0x22319b('0x3ce')),_0x5a87a2[_0x22319b('0x1e15')](0x0),_0x485e66[_0x22319b('0x1d0a')](_0x1e7482),_0x1e7482['on'](_0x22319b('0x86'),function(_0x90a064){_0x40a16c(_0x90a064),_0x306725=!![];});}function _0x40a16c(_0x1c02c2){var _0x2fc740=_0x3c9e9d;angular[_0x2fc740('0x1d95')](_0x1c02c2)&&_0x1c02c2[_0x2fc740('0x9f1')](),_0x6bda62[_0x2fc740('0x500')]('ms-nav-folded-open'),_0x36dea3[_0x2fc740('0xa98')](_0x2fc740('0x1c42')),_0x485e66[_0x2fc740('0xf15')](_0x1e7482)[_0x2fc740('0xa8b')](),_0x485e66[_0x2fc740('0x4ec')]()[_0x2fc740('0x1d0a')](_0x367450),_0x367450['on'](_0x2fc740('0x86'),function(_0x3912a2){_0x2eb225(_0x3912a2),_0x306725=![];});}function _0x2eb225(_0x2ce0ac){var _0x18ce56=_0x3c9e9d;angular[_0x18ce56('0x1d95')](_0x2ce0ac)&&_0x2ce0ac['preventDefault'](),_0x36dea3['$broadcast']('msNav::forceCollapse'),_0x5a87a2['scrollTop'](0x0),_0x6bda62[_0x18ce56('0x850')]('ms-nav-folded-open'),_0x485e66[_0x18ce56('0x4ec')]()['find'](_0x367450)[_0x18ce56('0xa8b')](),_0x485e66['append'](_0x1e7482),_0x1e7482['on']('mouseenter\x20touchstart',function(_0x1c665e){_0x40a16c(_0x1c665e),_0x306725=!![];});}function _0x186cc7(){var _0x111e14=_0x3c9e9d;_0x6bda62[_0x111e14('0x850')](_0x111e14('0x25cc')),_0x36dea3[_0x111e14('0xa98')](_0x111e14('0x1c42')),_0x5a87a2[_0x111e14('0xe5')](_0x111e14('0xe9c'));}_0x49d2c4[_0x3c9e9d('0x219f')]=_0x12519a,_0x49d2c4[_0x3c9e9d('0x5ed')]=_0x40a16c,_0x49d2c4[_0x3c9e9d('0x11d8')]=_0x2eb225,_0x49d2c4['isNavFoldedOpen']=_0x30a389,_0x49d2c4['$on'](_0x3c9e9d('0x5cd'),function(){var _0x44e2de=_0x3c9e9d;_0x1e7482['off']('mouseenter\x20touchstart'),_0x367450[_0x44e2de('0xe5')](_0x44e2de('0x86')),_0x5a87a2['off']('mouseenter\x20mouseleave');});}};}function _0x54b5bc(){var _0x5e698d=_0xb635d2,_0x34d292=this,_0xf97a2a=![],_0x8fafbc=[],_0x13bbc0=[];_0x34d292[_0x5e698d('0xf20')]=_0x197dfb,_0x34d292[_0x5e698d('0xc9b')]=_0xd6ab3e,_0x34d292['disable']=_0x358515,_0x34d292[_0x5e698d('0x2391')]=_0x112d00,_0x34d292[_0x5e698d('0x1f1c')]=_0x206206,_0x34d292['setLockedItem']=_0x37e218,_0x34d292['clearLockedItems']=_0x5514fe;function _0x197dfb(){return _0xf97a2a;}function _0x358515(){_0xf97a2a=!![];}function _0xd6ab3e(){_0xf97a2a=![];}function _0x112d00(_0xdbfe23,_0x921d6e){var _0x54da55=_0x5e698d;_0x8fafbc[_0x54da55('0xb76')]({'element':_0xdbfe23,'scope':_0x921d6e});}function _0x206206(){return _0x13bbc0;}function _0x37e218(_0x5a7fe0,_0x141394){var _0x13c4b6=_0x5e698d;_0x13bbc0[_0x13c4b6('0xb76')]({'element':_0x5a7fe0,'scope':_0x141394});}function _0x5514fe(){_0x13bbc0=[];}}function _0x4df131(_0x3db865,_0x4a1a11,_0x1ee9f7){var _0x12cdcc=_0xb635d2;return{'restrict':'E','scope':{},'controller':_0x12cdcc('0x1087'),'compile':function _0x152292(_0x3769a9){var _0x370ed6=_0x12cdcc;return _0x3769a9[_0x370ed6('0x500')](_0x370ed6('0xff')),function _0x28888f(_0x123891){var _0x5ec95f=_0x370ed6;_0x3db865['$broadcast']('msNav::expandMatchingToggles');var _0x59d4f3=_0x3db865[_0x5ec95f('0xb2b')]('$stateChangeSuccess',function(){var _0x2febbc=_0x5ec95f;_0x3db865[_0x2febbc('0xa98')]('msNav::expandMatchingToggles'),_0x4a1a11['when'](_0x2febbc('0x155b'))['then'](function(_0x155c33){var _0x1428a1=_0x2febbc;_0x155c33[_0x1428a1('0x1886')](),_0x1ee9f7['isNavFoldedOpen']()&&_0x1ee9f7[_0x1428a1('0x11d8')]();});});_0x123891['$on'](_0x5ec95f('0x5cd'),function(){_0x59d4f3();});};}};}function _0x5912dd(){return{'restrict':'A','compile':function _0x5e2fde(_0x5a01fe){var _0x441c32=a0_0x5325;return _0x5a01fe[_0x441c32('0x500')]('ms-nav-title'),function _0x152ce4(){};}};}function _0x1ce19f(){return{'restrict':'AE','compile':function _0x22e0bc(_0xb904a5){var _0x1b2d6a=a0_0x5325;return _0xb904a5[_0x1b2d6a('0x500')]('ms-nav-button'),function _0x156156(){};}};}function _0x12820d(_0x1dacf0,_0x4c05d8,_0x5cb662,_0x401984){var _0x2228af=_0xb635d2;return{'restrict':'A','require':_0x2228af('0x25ca'),'scope':!![],'compile':function _0x3187c3(_0x215d05,_0x3872be){var _0x5961d0=_0x2228af;return _0x215d05[_0x5961d0('0x500')](_0x5961d0('0x4f6')),angular[_0x5961d0('0xda8')](_0x3872be['collapsed'])&&(_0x3872be[_0x5961d0('0xf19')]=!![]),_0x215d05[_0x5961d0('0x1135')](_0x5961d0('0xf19'),_0x3872be[_0x5961d0('0xf19')]),function _0x50e8eb(_0x21a21b,_0x3b459c,_0x1be7d3,_0x3cb3a6){var _0x2a254e=_0x5961d0,_0x4e48cd={'expanded':_0x2a254e('0x288e'),'expandAnimation':'expand-animation','collapseAnimation':_0x2a254e('0xd1c')},_0x2d44b7=_0x3b459c[_0x2a254e('0xf15')]('a'),_0x4d6469=[],_0x157236=/\(.*\)/g;angular[_0x2a254e('0x1d7e')](_0x2d44b7,function(_0x3b72cf){var _0x56cc0c=_0x2a254e,_0x15d152=angular[_0x56cc0c('0x24a1')](_0x3b72cf)[_0x56cc0c('0x1135')]('ui-sref');if(angular['isUndefined'](_0x15d152))return;_0x15d152=_0x15d152['replace'](_0x157236,''),_0x4d6469['push'](_0x15d152);}),_0x3cb3a6[_0x2a254e('0x2391')](_0x3b459c,_0x21a21b),_0x3b459c[_0x2a254e('0x1977')](_0x2a254e('0x257e'))['on'](_0x2a254e('0xfe7'),_0x800a0a);function _0x800a0a(){var _0x4a29a7=_0x2a254e;if(_0x3cb3a6[_0x4a29a7('0xf20')]())return;_0x3cb3a6[_0x4a29a7('0x45e')](),_0x5d1d7a()?(_0x3cb3a6[_0x4a29a7('0x9a7')](),_0x21a21b[_0x4a29a7('0xbbd')](_0x4a29a7('0x1b5e')),_0x1dacf0['$broadcast'](_0x4a29a7('0x13d0')),_0x415d14()['then'](function(){var _0x257fab=_0x4a29a7;_0x3cb3a6[_0x257fab('0xc9b')]();})):_0x21a21b['$broadcast'](_0x4a29a7('0x3ce'));}_0x21a21b[_0x2a254e('0xb2b')](_0x2a254e('0x5cd'),function(){var _0x3c4397=_0x2a254e;_0x3b459c['children'](_0x3c4397('0x257e'))[_0x3c4397('0xe5')](_0x3c4397('0xfe7'));}),_0x21a21b[_0x2a254e('0xb2b')](_0x2a254e('0x13d0'),function(){var _0x44e998=_0x2a254e,_0x4f405c=_0x3cb3a6['getLockedItems'](),_0x540c21=![];angular[_0x44e998('0x1d7e')](_0x4f405c,function(_0x1a023a){var _0x54c597=_0x44e998;angular[_0x54c597('0x1f15')](_0x1a023a[_0x54c597('0x2ba')],_0x21a21b)&&(_0x540c21=!![]);});if(_0x540c21)return;_0x3f2e50()[_0x44e998('0xe19')](function(){_0x3cb3a6['enable']();});}),_0x21a21b['$on'](_0x2a254e('0x3ce'),function(){_0x3f2e50()['then'](function(){_0x3cb3a6['enable']();});}),_0x21a21b['$on']('msNav::expandMatchingToggles',function(){var _0x5e2ead=_0x2a254e,_0x192361=_0x401984['current'][_0x5e2ead('0x2623')],_0x5b0727=![];angular[_0x5e2ead('0x1d7e')](_0x4d6469,function(_0x561147){_0x192361===_0x561147&&(_0x5b0727=!![]);}),_0x5b0727?_0x415d14():_0x3f2e50();}),_0x21a21b[_0x2a254e('0xb2b')](_0x2a254e('0x1b5e'),function(){var _0x671ee2=_0x2a254e;_0x3cb3a6[_0x671ee2('0x6e3')](_0x3b459c,_0x21a21b);});function _0x5d1d7a(){var _0x1242dc=_0x2a254e;return _0x3b459c[_0x1242dc('0x1135')](_0x1242dc('0xf19'))===_0x1242dc('0x2206');}function _0x158d10(){return!_0x5d1d7a();}function _0x415d14(){var _0x5826e4=_0x2a254e,_0x3266e8=_0x4c05d8[_0x5826e4('0x178')]();if(_0x158d10())return _0x3266e8[_0x5826e4('0x1337')]({'error':!![]}),_0x3266e8[_0x5826e4('0x9c8')];_0x3b459c[_0x5826e4('0x1135')](_0x5826e4('0xf19'),![]);var _0x534672=angular['element'](_0x3b459c[_0x5826e4('0xf15')](_0x5826e4('0x197c'))[0x0]);_0x534672['css']({'position':_0x5826e4('0x1408'),'visibility':'hidden','display':_0x5826e4('0x1097'),'height':_0x5826e4('0xa1e')});var _0x31f927=_0x534672[0x0][_0x5826e4('0x1103')];return _0x534672[_0x5826e4('0x25b3')]({'position':'','visibility':'','display':'','height':''}),_0x21a21b[_0x5826e4('0x2c5')](function(){var _0x599e84=_0x5826e4;_0x5cb662[_0x599e84('0x1ea1')](_0x534672,{'display':_0x599e84('0x1097'),'height':_0x599e84('0x82')},{'height':_0x31f927+'px'},_0x4e48cd[_0x599e84('0x2573')])['then'](function(){var _0xee859e=_0x599e84;_0x534672[_0xee859e('0x500')](_0x4e48cd[_0xee859e('0x288e')]),_0x534672[_0xee859e('0x25b3')]({'height':''}),_0x3266e8['resolve']({'success':!![]});});}),_0x3266e8[_0x5826e4('0x9c8')];}function _0x3f2e50(){var _0x5c27cb=_0x2a254e,_0x569353=_0x4c05d8[_0x5c27cb('0x178')]();if(_0x5d1d7a())return _0x569353['reject']({'error':!![]}),_0x569353['promise'];_0x3b459c[_0x5c27cb('0x1135')](_0x5c27cb('0xf19'),!![]);var _0x44fa95=angular[_0x5c27cb('0x24a1')](_0x3b459c[_0x5c27cb('0xf15')](_0x5c27cb('0x197c'))[0x0]),_0x812a8=_0x44fa95[0x0][_0x5c27cb('0x1103')];return _0x21a21b[_0x5c27cb('0x2c5')](function(){var _0x157116=_0x5c27cb;_0x5cb662['animate'](_0x44fa95,{'height':_0x812a8+'px'},{'height':_0x157116('0x82')},_0x4e48cd[_0x157116('0x1cc2')])['then'](function(){var _0x4e54ab=_0x157116;_0x44fa95[_0x4e54ab('0x850')](_0x4e48cd[_0x4e54ab('0x288e')]),_0x44fa95[_0x4e54ab('0x25b3')]({'display':'','height':''}),_0x569353[_0x4e54ab('0xcd6')]({'success':!![]});});}),_0x569353[_0x5c27cb('0x9c8')];}};}};}const _0x1fb7b6=_0x59426a['p']+'src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal-[chunkhash].html',_0x13d2ac=_0x59426a['p']+_0xb635d2('0x1bee');_0x539b9e['$inject']=[_0xb635d2('0x13a6')],_0x59e629[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$element',_0xb635d2('0x917'),'$state',_0xb635d2('0x1631')],_0x433228[_0xb635d2('0xb0c')]=[_0xb635d2('0x1631')],_0x485830[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$element','$rootScope','$animate',_0xb635d2('0xeb6'),_0xb635d2('0x1631')],_0x23fe98[_0xb635d2('0xb0c')]=[_0xb635d2('0x917'),_0xb635d2('0x1a0b'),_0xb635d2('0x1795'),'msNavigationService'],_0x3bb479[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1631')];function _0x321cb1(){var _0x5ac467=_0xb635d2,_0x1c648b=angular['injector'](['ng'])['get'](_0x5ac467('0x2473')),_0x54fc6e=[],_0x387729=this;_0x387729[_0x5ac467('0x1384')]=_0x22de99,_0x387729['deleteItem']=_0x23d7de,_0x387729[_0x5ac467('0xf5d')]=_0x583550;function _0x22de99(_0x111702,_0x1acefd){var _0xfe33b3=_0x5ac467;if(!angular[_0xfe33b3('0x1aa9')](_0x111702)){_0x1c648b['error'](_0xfe33b3('0xe8d'));return;}var _0x1efb28=_0x111702[_0xfe33b3('0x1745')]('.'),_0x31c870=_0x1efb28[_0x1efb28['length']-0x1],_0x39bc2f=_0x4ce61f(_0x1efb28),_0x25180c=![];for(var _0x5534e0=0x0;_0x5534e0<_0x39bc2f[_0xfe33b3('0x25ae')];_0x5534e0++){if(_0x39bc2f[_0x5534e0][_0xfe33b3('0x1e03')]===_0x31c870){_0x25180c=_0x39bc2f[_0x5534e0];break;}}_0x25180c?(angular[_0xfe33b3('0x2bb')](_0x25180c,_0x1acefd),_0x25180c[_0xfe33b3('0x1da1')]=_0x5a162f(_0x25180c)):(_0x1acefd[_0xfe33b3('0x1977')]=[],(angular[_0xfe33b3('0xda8')](_0x1acefd[_0xfe33b3('0x1396')])||!angular['isNumber'](_0x1acefd['weight']))&&(_0x1acefd['weight']=0x1),_0x1acefd[_0xfe33b3('0x1e03')]=_0x31c870,_0x1acefd[_0xfe33b3('0x983')]=_0x111702,_0x1acefd[_0xfe33b3('0x1da1')]=_0x5a162f(_0x1acefd),_0x39bc2f['push'](_0x1acefd));}function _0x23d7de(_0x38997a){var _0x2a9700=_0x5ac467;if(!angular[_0x2a9700('0x1aa9')](_0x38997a)){_0x1c648b[_0x2a9700('0x8c8')](_0x2a9700('0xe8d'));return;}var _0x57a68e=_0x54fc6e,_0x2f46ee=_0x38997a[_0x2a9700('0x1745')]('.');for(var _0x4ed84c=0x0;_0x4ed84c<_0x2f46ee[_0x2a9700('0x25ae')];_0x4ed84c++){var _0x2f33da=_0x2f46ee[_0x4ed84c];for(var _0x3d29ec=0x0;_0x3d29ec<_0x57a68e['length'];_0x3d29ec++){if(_0x57a68e[_0x3d29ec][_0x2a9700('0x1e03')]===_0x2f33da){if(_0x57a68e[_0x3d29ec][_0x2a9700('0x983')]===_0x38997a)return _0x57a68e[_0x2a9700('0x1c8e')](_0x3d29ec,0x1),!![];_0x57a68e=_0x57a68e[_0x3d29ec][_0x2a9700('0x1977')];break;}}}return![];}function _0x583550(_0x54c8df){var _0x5b5330=_0x5ac467;!_0x54c8df&&(_0x54c8df=_0x54fc6e,_0x54c8df[_0x5b5330('0x9f6')](_0xf905));for(var _0x197fdd=0x0;_0x197fdd<_0x54c8df[_0x5b5330('0x25ae')];_0x197fdd++){var _0xa7d89f=_0x54c8df[_0x197fdd][_0x5b5330('0x1977')];_0xa7d89f[_0x5b5330('0x25ae')]>0x1&&_0xa7d89f[_0x5b5330('0x9f6')](_0xf905),_0xa7d89f[_0x5b5330('0x25ae')]>0x0&&_0x583550(_0xa7d89f);}}function _0x4ce61f(_0x30689a){var _0x31eea3=_0x5ac467,_0x4bcc88=_0x54fc6e;if(_0x30689a[_0x31eea3('0x25ae')]===0x1)return _0x4bcc88;_0x30689a[_0x31eea3('0x2b')]();for(var _0xf63334=0x0;_0xf63334<_0x30689a[_0x31eea3('0x25ae')];_0xf63334++){var _0x3a8671=_0x30689a[_0xf63334],_0x5da93c=!![];for(var _0xcf08fd=0x0;_0xcf08fd<_0x4bcc88[_0x31eea3('0x25ae')];_0xcf08fd++){if(_0x4bcc88[_0xcf08fd]['_id']===_0x3a8671){_0x4bcc88=_0x4bcc88[_0xcf08fd]['children'],_0x5da93c=![];break;}}if(_0x5da93c){var _0x240155={'_id':_0x3a8671,'_path':_0x30689a[_0x31eea3('0x1537')]('.'),'title':_0x3a8671,'weight':0x1,'children':[]};_0x4bcc88['push'](_0x240155),_0x4bcc88=_0x240155[_0x31eea3('0x1977')];}}return _0x4bcc88;}function _0xf905(_0x18e1ff,_0x31293b){var _0x5b1238=_0x5ac467;return parseInt(_0x18e1ff[_0x5b1238('0x1396')])-parseInt(_0x31293b[_0x5b1238('0x1396')]);}function _0x5a162f(_0x20e442){var _0xb2521f=_0x5ac467,_0x4b64ea='';return angular['isDefined'](_0x20e442[_0xb2521f('0x1d72')])&&(_0x4b64ea=_0x20e442['state'],angular['isDefined'](_0x20e442['stateParams'])&&angular[_0xb2521f('0x1aed')](_0x20e442[_0xb2521f('0x1c6d')])&&(_0x4b64ea=_0x4b64ea+'('+angular['toJson'](_0x20e442[_0xb2521f('0x1c6d')])+')')),_0x4b64ea;}this['$get']=function(){var _0x510451=null,_0x5e1773=null,_0x1ac7a1=null,_0x41c773=null,_0x2efae9={'saveItem':_0x22de99,'deleteItem':_0x23d7de,'sort':_0x583550,'clearNavigation':_0xbcef50,'setActiveItem':_0x36c72d,'getActiveItem':_0x1f5532,'getNavigation':_0x2eb619,'getFlatNavigation':_0x36d431,'setNavigationScope':_0x44aa85,'setFolded':_0x508513,'getFolded':_0x45e794,'setFoldedOpen':_0x331608,'getFoldedOpen':_0x579973,'toggleFolded':_0x59ab19};return _0x2efae9;function _0xbcef50(){var _0x5d941e=a0_0x5325;_0x54fc6e=[],_0x5e1773&&(_0x5e1773['vm'][_0x5d941e('0x155b')]=_0x54fc6e);}function _0x36c72d(_0x462673,_0x505e7c){_0x510451={'node':_0x462673,'scope':_0x505e7c};}function _0x1f5532(){return _0x510451;}function _0x2eb619(_0x120574){var _0x48f224=a0_0x5325;if(_0x120574){for(var _0x1bdbd4=0x0;_0x1bdbd4<_0x54fc6e['length'];_0x1bdbd4++){if(_0x54fc6e[_0x1bdbd4][_0x48f224('0x1e03')]===_0x120574)return[_0x54fc6e[_0x1bdbd4]];}return null;}return _0x54fc6e;}function _0x36d431(_0x323165){var _0x12f918=_0x2eb619(_0x323165);return _0x3dfdfc(_0x12f918);}function _0x44aa85(_0x3dcdaa){_0x5e1773=_0x3dcdaa;}function _0x508513(_0x2e3aa1){_0x1ac7a1=_0x2e3aa1;}function _0x45e794(){return _0x1ac7a1;}function _0x331608(_0x3a7585){_0x41c773=_0x3a7585;}function _0x579973(){return _0x41c773;}function _0x59ab19(){var _0x4ee78f=a0_0x5325;_0x5e1773[_0x4ee78f('0x1d49')]();}function _0x3dfdfc(_0x3d62da){var _0x40146b=a0_0x5325,_0x34d583=[];for(var _0x4b98d6=0x0;_0x4b98d6<_0x3d62da[_0x40146b('0x25ae')];_0x4b98d6++){var _0x19c130=angular[_0x40146b('0x89')](_0x3d62da[_0x4b98d6]);_0x19c130[_0x40146b('0x1977')]=[],_0x34d583['push'](_0x19c130),_0x3d62da[_0x4b98d6][_0x40146b('0x1977')][_0x40146b('0x25ae')]>0x0&&(_0x34d583=_0x34d583[_0x40146b('0x1007')](_0x3dfdfc(_0x3d62da[_0x4b98d6]['children'])));}return _0x34d583;}};}function _0x3bb479(_0x365f7d,_0x8ff8f0){var _0x3ae050=_0xb635d2,_0x430a24=this;_0x365f7d[_0x3ae050('0x2d8')]?_0x430a24[_0x3ae050('0x155b')]=_0x8ff8f0[_0x3ae050('0x755')](_0x365f7d[_0x3ae050('0x2d8')]):_0x430a24[_0x3ae050('0x155b')]=_0x8ff8f0[_0x3ae050('0x755')]();_0x430a24[_0x3ae050('0x563')]=_0xc28212,_0x14056b();function _0x14056b(){var _0x49a8e6=_0x3ae050;_0x8ff8f0[_0x49a8e6('0x9f6')]();}function _0xc28212(){var _0x233cd4=_0x3ae050;angular[_0x233cd4('0x24a1')](_0x233cd4('0x19b2'))['toggleClass'](_0x233cd4('0xaea'));}}function _0x23fe98(_0x5099d8,_0x139f83,_0x4ac5d7,_0x8f48be){var _0x41264a=_0xb635d2;return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':_0x41264a('0x1aa0'),'templateUrl':_0x13d2ac,'transclude':!![],'compile':function _0x35f2f2(_0x1b6d48){var _0x4731d7=_0x41264a;return _0x1b6d48[_0x4731d7('0x500')](_0x4731d7('0x1f5c')),function _0xf47e35(_0x511942,_0x228b63){var _0x31ba1b=_0x4731d7,_0x414fb3=angular[_0x31ba1b('0x24a1')](_0x31ba1b('0x19b2')),_0x24ba4d=angular[_0x31ba1b('0x24a1')](_0x31ba1b('0x260d')),_0x3dcb57=angular['element'](_0x31ba1b('0x6ae')),_0x5382ec=_0x4ac5d7(_0x31ba1b('0x155b'));_0x8f48be[_0x31ba1b('0x26d5')](_0x511942),_0x25ef61();function _0x25ef61(){var _0x58936a=_0x31ba1b;_0x8f48be[_0x58936a('0x413')]()===null&&_0x8f48be[_0x58936a('0x1baa')](_0x511942[_0x58936a('0x26d7')]),_0x8f48be[_0x58936a('0x413')]()&&(_0x139f83(function(){var _0x279809=_0x58936a;_0x5099d8[_0x279809('0xa98')](_0x279809('0x204d'));}),_0x414fb3['addClass'](_0x58936a('0x1a37')),_0x397229());}_0x511942['$watch'](function(){return _0x5382ec['isLockedOpen']();},function(_0x5c4bfb,_0x1c5aef){var _0x4aa339=_0x31ba1b;if(angular['isUndefined'](_0x5c4bfb)||angular[_0x4aa339('0x1f15')](_0x5c4bfb,_0x1c5aef))return;var _0x167447=_0x8f48be[_0x4aa339('0x413')]();if(_0x167447){if(_0x5c4bfb)_0x5099d8[_0x4aa339('0xa98')]('msNavigation::collapse');else{var _0xc8c77b=_0x8f48be['getActiveItem']();_0xc8c77b&&_0xc8c77b[_0x4aa339('0x2ba')][_0x4aa339('0xbbd')](_0x4aa339('0xfbf'));}}}),_0x511942['$watch'](_0x31ba1b('0x26d7'),function(_0x254b37,_0x10ba30){var _0xfc0812=_0x31ba1b;if(angular[_0xfc0812('0xda8')](_0x254b37)||angular[_0xfc0812('0x1f15')](_0x254b37,_0x10ba30))return;_0x301e45(_0x254b37);});function _0x301e45(_0x450e9c){var _0x1bc505=_0x31ba1b;_0x8f48be[_0x1bc505('0x1baa')](_0x450e9c);if(_0x450e9c)_0x5099d8[_0x1bc505('0xa98')](_0x1bc505('0x204d')),_0x414fb3[_0x1bc505('0x500')](_0x1bc505('0x1a37')),_0x397229();else{var _0xc1f645=_0x8f48be['getActiveItem']();_0xc1f645&&_0xc1f645['scope'][_0x1bc505('0xbbd')]('msNavigation::stateMatched'),_0x414fb3['removeClass'](_0x1bc505('0x256e')),_0x502632();}}function _0x397229(){_0x228b63['parent']()['append'](_0x24ba4d),_0x139f83(function(){var _0x4e2a2b=a0_0x5325;_0x24ba4d['on'](_0x4e2a2b('0x86'),_0x5b6967);});}function _0x353314(){var _0x1f240f=_0x31ba1b;_0x414fb3['find'](_0x1f240f('0x761'))[_0x1f240f('0x1d0a')](_0x3dcb57),_0x3dcb57['on'](_0x1f240f('0x86'),_0x11a2f0);}function _0x502632(){var _0x379f33=_0x31ba1b;_0x3dcb57[_0x379f33('0xa8b')]();}function _0x5b6967(_0x47b526){var _0x1b37b8=_0x31ba1b;_0x47b526&&_0x47b526[_0x1b37b8('0x9f1')]();_0x8f48be[_0x1b37b8('0x351')](!![]);var _0x2ce72b=_0x8f48be[_0x1b37b8('0x20f7')]();_0x2ce72b&&_0x2ce72b[_0x1b37b8('0x2ba')][_0x1b37b8('0xbbd')](_0x1b37b8('0xfbf')),_0x414fb3['addClass'](_0x1b37b8('0x14b9')),_0x24ba4d['remove'](),_0x353314();}function _0x11a2f0(_0x51f1ab){var _0x2640ae=_0x31ba1b;_0x51f1ab&&_0x51f1ab[_0x2640ae('0x9f1')](),_0x8f48be[_0x2640ae('0x351')](![]),_0x5099d8[_0x2640ae('0xa98')](_0x2640ae('0x204d')),_0x414fb3[_0x2640ae('0x850')]('ms-navigation-folded-open'),_0x3dcb57[_0x2640ae('0xa8b')](),_0x397229();}_0x511942['toggleFolded']=function(){var _0x3d0d16=_0x31ba1b,_0x1860d7=_0x8f48be[_0x3d0d16('0x413')]();_0x301e45(!_0x1860d7);},_0x511942[_0x31ba1b('0xb2b')](_0x31ba1b('0x1b94'),function(){var _0x488db0=_0x31ba1b;_0x5382ec[_0x488db0('0x1886')]();}),_0x511942[_0x31ba1b('0xb2b')](_0x31ba1b('0x5cd'),function(){var _0x6e747f=_0x31ba1b;_0x3dcb57[_0x6e747f('0xe5')](_0x6e747f('0x86')),_0x24ba4d[_0x6e747f('0xe5')]('mouseenter\x20touchstart');});};}};}function _0x485830(_0x50bd80,_0x6a6d8a,_0x3f3824,_0x44f05c,_0x35198c,_0xe0c066){var _0x23cef7=_0xb635d2,_0x170b5b=this;_0x170b5b[_0x23cef7('0x24a1')]=_0x6a6d8a,_0x170b5b[_0x23cef7('0x1a8f')]=_0x50bd80[_0x23cef7('0x1a8f')],_0x170b5b[_0x23cef7('0x214e')]=undefined,_0x170b5b[_0x23cef7('0xf19')]=undefined,_0x170b5b[_0x23cef7('0x7a1')]=undefined,_0x170b5b[_0x23cef7('0x246c')]=undefined,_0x170b5b[_0x23cef7('0x1a1c')]=_0x23cef7('0x3e'),_0x170b5b[_0x23cef7('0x2306')]=_0x4d97b4,_0x170b5b['collapse']=_0x3116b1,_0x170b5b[_0x23cef7('0x662')]=_0x8313f5,_0x170b5b[_0x23cef7('0x27d0')]=_0x4c57a1,_0x170b5b['isHidden']=_0x33b1b1,_0x45ec2d();function _0x45ec2d(){var _0x52bb9e=_0x23cef7;_0x170b5b['hasChildren']=_0x170b5b[_0x52bb9e('0x1a8f')]['children'][_0x52bb9e('0x25ae')]>0x0,_0x170b5b[_0x52bb9e('0x246c')]=!!(angular[_0x52bb9e('0x1d95')](_0x170b5b[_0x52bb9e('0x1a8f')][_0x52bb9e('0x246c')])&&_0x170b5b[_0x52bb9e('0x1a8f')][_0x52bb9e('0x246c')]===!![]);!_0x170b5b[_0x52bb9e('0x214e')]||_0x170b5b[_0x52bb9e('0x246c')]?_0x170b5b[_0x52bb9e('0x7a1')]=![]:_0x170b5b[_0x52bb9e('0x7a1')]=!!(angular[_0x52bb9e('0xda8')](_0x170b5b[_0x52bb9e('0x1a8f')][_0x52bb9e('0x7a1')])||typeof _0x170b5b['node'][_0x52bb9e('0x7a1')]!==_0x52bb9e('0xc7a')||_0x170b5b[_0x52bb9e('0x1a8f')][_0x52bb9e('0x7a1')]===!![]);!_0x170b5b[_0x52bb9e('0x7a1')]?_0x170b5b['collapsed']=![]:_0x170b5b[_0x52bb9e('0xf19')]=!!(angular['isUndefined'](_0x170b5b[_0x52bb9e('0x1a8f')][_0x52bb9e('0xf19')])||typeof _0x170b5b[_0x52bb9e('0x1a8f')]['collapsed']!==_0x52bb9e('0xc7a')||_0x170b5b[_0x52bb9e('0x1a8f')]['collapsed']===!![]);if(_0x170b5b[_0x52bb9e('0x1a8f')][_0x52bb9e('0x1d72')]===_0x35198c[_0x52bb9e('0x1a60')][_0x52bb9e('0x2623')]||_0x35198c[_0x52bb9e('0x1c43')](_0x170b5b[_0x52bb9e('0x1a8f')][_0x52bb9e('0x1d72')])){if(angular[_0x52bb9e('0x1d95')](_0x170b5b[_0x52bb9e('0x1a8f')]['stateParams'])&&angular[_0x52bb9e('0x1d95')](_0x35198c[_0x52bb9e('0x2ef')])&&!angular['equals'](_0x170b5b['node'][_0x52bb9e('0x1c6d')],_0x35198c[_0x52bb9e('0x2ef')]))return;_0x50bd80['$emit'](_0x52bb9e('0xfbf')),_0xe0c066[_0x52bb9e('0x237b')](_0x170b5b['node'],_0x50bd80);}_0x50bd80[_0x52bb9e('0xb2b')](_0x52bb9e('0xfbf'),function(){var _0xb08644=_0x52bb9e;_0x170b5b[_0xb08644('0x7a1')]&&_0x170b5b[_0xb08644('0xf19')]&&_0x50bd80[_0xb08644('0x2c5')](function(){var _0x342106=_0xb08644;_0x170b5b[_0x342106('0xf19')]=![];});}),_0x50bd80[_0x52bb9e('0xb2b')]('msNavigation::collapse',function(_0x3bc67e,_0xac2bbb){var _0x17f2c9=_0x52bb9e;if(_0x170b5b['collapsed']||!_0x170b5b[_0x17f2c9('0x7a1')])return;if(angular[_0x17f2c9('0xda8')](_0xac2bbb))_0x170b5b[_0x17f2c9('0x22fb')]();else{var _0xe16211=_0xac2bbb['split']('.'),_0x46212e=[],_0x5ea25e=_0xe0c066['getActiveItem']();_0x5ea25e&&(_0x46212e=_0x5ea25e[_0x17f2c9('0x1a8f')]['_path']['split']('.'));if(_0xe16211[_0x17f2c9('0x281c')](_0x170b5b[_0x17f2c9('0x1a8f')][_0x17f2c9('0x1e03')])>-0x1)return;if(_0x46212e[_0x17f2c9('0x281c')](_0x170b5b[_0x17f2c9('0x1a8f')][_0x17f2c9('0x1e03')])>-0x1)return;_0x170b5b[_0x17f2c9('0x22fb')]();}}),_0x50bd80['$on'](_0x52bb9e('0x1a31'),function(){var _0x46e62c=_0x52bb9e;if(_0x170b5b[_0x46e62c('0x1a8f')][_0x46e62c('0x1d72')]===_0x35198c[_0x46e62c('0x1a60')]['name']){if(angular[_0x46e62c('0x1d95')](_0x170b5b['node'][_0x46e62c('0x1c6d')])&&angular['isDefined'](_0x35198c[_0x46e62c('0x2ef')])&&!angular[_0x46e62c('0x1f15')](_0x170b5b[_0x46e62c('0x1a8f')][_0x46e62c('0x1c6d')],_0x35198c[_0x46e62c('0x2ef')]))return;_0xe0c066[_0x46e62c('0x237b')](_0x170b5b[_0x46e62c('0x1a8f')],_0x50bd80),_0x3f3824[_0x46e62c('0xa98')](_0x46e62c('0x204d'),_0x170b5b['node'][_0x46e62c('0x983')]);}if(_0x35198c[_0x46e62c('0x1c43')](_0x170b5b['node'][_0x46e62c('0x1d72')])){if(angular['isDefined'](_0x170b5b[_0x46e62c('0x1a8f')][_0x46e62c('0x1c6d')])&&angular[_0x46e62c('0x1d95')](_0x35198c[_0x46e62c('0x2ef')])&&!angular[_0x46e62c('0x1f15')](_0x170b5b['node']['stateParams'],_0x35198c[_0x46e62c('0x2ef')]))return;_0x50bd80[_0x46e62c('0xbbd')](_0x46e62c('0xfbf'));}});}function _0x4d97b4(){var _0x376a1d=_0x23cef7;_0x170b5b[_0x376a1d('0xf19')]?_0x170b5b[_0x376a1d('0x662')]():_0x170b5b[_0x376a1d('0x22fb')]();}function _0x3116b1(){var _0x322dbe=_0x23cef7,_0x29a20f=_0x170b5b[_0x322dbe('0x24a1')][_0x322dbe('0x1977')]('ul'),_0x7a2324=_0x29a20f[0x0][_0x322dbe('0x1103')];_0x50bd80[_0x322dbe('0x2c5')](function(){var _0xa31787=_0x322dbe;_0x170b5b['collapsed']=!![],_0x170b5b[_0xa31787('0x24a1')][_0xa31787('0x500')](_0xa31787('0xa73')),_0x44f05c['animate'](_0x29a20f,{'display':'block','height':_0x7a2324+'px'},{'height':_0xa31787('0x82')},_0x170b5b[_0xa31787('0x1a1c')])['then'](function(){var _0x55d5ab=_0xa31787;_0x29a20f[_0x55d5ab('0x25b3')]({'display':'','height':''}),_0x170b5b['element']['removeClass']('collapsing');}),_0x50bd80[_0xa31787('0xa98')](_0xa31787('0x204d'));});}function _0x8313f5(){var _0x5cce57=_0x23cef7,_0x565e79=_0x170b5b[_0x5cce57('0x24a1')][_0x5cce57('0x1977')]('ul');_0x565e79[_0x5cce57('0x25b3')]({'position':'absolute','visibility':_0x5cce57('0x1c21'),'display':_0x5cce57('0x1097'),'height':_0x5cce57('0xa1e')});var _0x2b0494=_0x565e79[0x0][_0x5cce57('0x1103')];_0x565e79[_0x5cce57('0x25b3')]({'position':'','visibility':'','display':'','height':''}),_0x50bd80[_0x5cce57('0x2c5')](function(){var _0x3f7f58=_0x5cce57;_0x170b5b[_0x3f7f58('0xf19')]=![],_0x170b5b[_0x3f7f58('0x24a1')][_0x3f7f58('0x500')](_0x3f7f58('0xfd0')),_0x44f05c['animate'](_0x565e79,{'display':_0x3f7f58('0x1097'),'height':_0x3f7f58('0x82')},{'height':_0x2b0494+'px'},_0x170b5b['animateHeightClass'])['then'](function(){var _0x300b84=_0x3f7f58;_0x565e79[_0x300b84('0x25b3')]({'height':''}),_0x170b5b['element'][_0x300b84('0x850')](_0x300b84('0xfd0'));}),_0x3f3824['$broadcast']('msNavigation::collapse',_0x170b5b[_0x3f7f58('0x1a8f')]['_path']);});}function _0x4c57a1(){var _0x4209dc=_0x23cef7;return _0x170b5b[_0x4209dc('0x1a8f')][_0x4209dc('0x168c')];}function _0x33b1b1(){var _0x7f6e9e=_0x23cef7;if(angular['isDefined'](_0x170b5b['node'][_0x7f6e9e('0x1c21')])&&angular['isFunction'](_0x170b5b[_0x7f6e9e('0x1a8f')][_0x7f6e9e('0x1c21')]))return _0x170b5b['node'][_0x7f6e9e('0x1c21')]();return![];}}function _0x47344(){var _0x593508=_0xb635d2;return{'restrict':'A','bindToController':{'node':_0x593508('0xe3b')},'controller':'MsNavigationNodeController\x20as\x20vm','compile':function _0xfab9c5(_0x46c16b){var _0x129b1e=_0x593508;return _0x46c16b[_0x129b1e('0x500')](_0x129b1e('0x1964')),function _0x4cf63b(_0x246512,_0xce563b,_0x19a378,_0x221939){var _0xc7b7aa=_0x129b1e;_0xce563b[_0xc7b7aa('0x500')](_0x221939[_0xc7b7aa('0x27d0')]()),_0x221939[_0xc7b7aa('0x246c')]&&_0xce563b[_0xc7b7aa('0x500')](_0xc7b7aa('0x246c'));};}};}function _0x3847a4(){var _0x29445f=_0xb635d2;return{'restrict':'A','require':_0x29445f('0x1cbb'),'compile':function _0x475e0f(_0x510e2d){var _0x5e0d80=_0x29445f;return _0x510e2d[_0x5e0d80('0x500')](_0x5e0d80('0x25b4')),function _0x2cf61b(_0x27fc4a,_0x344ecd,_0x3698c6,_0x3196e1){var _0x52bac7=_0x5e0d80;_0x3196e1[_0x52bac7('0x7a1')]&&_0x344ecd['on'](_0x52bac7('0xfe7'),_0x3196e1[_0x52bac7('0x2306')]),_0x27fc4a[_0x52bac7('0xb2b')](_0x52bac7('0x5cd'),function(){var _0x3f111e=_0x52bac7;_0x344ecd[_0x3f111e('0xe5')]('click');});};}};}function _0x433228(_0x4c9be4){var _0x1642f4=_0xb635d2;return{'restrict':'E','scope':{'root':'@'},'controller':_0x1642f4('0x1aa0'),'templateUrl':_0x1fb7b6,'transclude':!![],'compile':function _0x3cc368(_0x2e2132){var _0x3fce89=_0x1642f4;return _0x2e2132[_0x3fce89('0x500')](_0x3fce89('0x74b')),function _0x18e8e1(_0x2d5b15){var _0x339039=_0x3fce89;_0x4c9be4[_0x339039('0x26d5')](_0x2d5b15);};}};}function _0x59e629(_0x5882f1,_0xf82516,_0x2c43cf,_0x151e5c,_0x1c48b5){var _0x5c8769=_0xb635d2,_0x1ccd20=this;_0x1ccd20['element']=_0xf82516,_0x1ccd20['node']=_0x5882f1[_0x5c8769('0x1a8f')],_0x1ccd20[_0x5c8769('0x214e')]=undefined,_0x1ccd20[_0x5c8769('0x246c')]=undefined,_0x1ccd20[_0x5c8769('0x27d0')]=_0x323396,_0x259bda();function _0x259bda(){var _0x59dd5e=_0x5c8769;_0x1ccd20[_0x59dd5e('0x2061')]=![],_0x1ccd20[_0x59dd5e('0x214e')]=_0x1ccd20[_0x59dd5e('0x1a8f')][_0x59dd5e('0x1977')][_0x59dd5e('0x25ae')]>0x0,_0x1ccd20[_0x59dd5e('0x246c')]=!!(angular['isDefined'](_0x1ccd20[_0x59dd5e('0x1a8f')]['group'])&&_0x1ccd20[_0x59dd5e('0x1a8f')]['group']===!![]);if(_0x1ccd20[_0x59dd5e('0x1a8f')][_0x59dd5e('0x1d72')]===_0x151e5c['current'][_0x59dd5e('0x2623')]||_0x151e5c[_0x59dd5e('0x1c43')](_0x1ccd20[_0x59dd5e('0x1a8f')][_0x59dd5e('0x1d72')])){if(angular[_0x59dd5e('0x1d95')](_0x1ccd20[_0x59dd5e('0x1a8f')][_0x59dd5e('0x1c6d')])&&angular[_0x59dd5e('0x1d95')](_0x151e5c[_0x59dd5e('0x2ef')])&&!angular['equals'](_0x1ccd20['node'][_0x59dd5e('0x1c6d')],_0x151e5c['params']))return;_0x5882f1[_0x59dd5e('0xbbd')](_0x59dd5e('0xfbf')),_0x1c48b5['setActiveItem'](_0x1ccd20[_0x59dd5e('0x1a8f')],_0x5882f1);}_0x5882f1[_0x59dd5e('0xb2b')](_0x59dd5e('0xfbf'),function(){var _0x6fe064=_0x59dd5e;_0x1ccd20['hasChildren']&&_0x5882f1[_0x6fe064('0x2c5')](function(){_0x1ccd20['isActive']=!![];});}),_0x5882f1[_0x59dd5e('0xb2b')](_0x59dd5e('0x10b7'),function(){var _0x1e457a=_0x59dd5e;if(!_0x1ccd20[_0x1e457a('0x214e')])return;var _0x222e28=[],_0x23d31b=_0x1c48b5[_0x1e457a('0x20f7')]();_0x23d31b&&(_0x222e28=_0x23d31b['node']['_path'][_0x1e457a('0x1745')]('.')),_0x222e28[_0x1e457a('0x281c')](_0x1ccd20['node']['_id'])>-0x1?_0x5882f1['$evalAsync'](function(){_0x1ccd20['isActive']=!![];}):_0x5882f1[_0x1e457a('0x2c5')](function(){var _0x51cb47=_0x1e457a;_0x1ccd20[_0x51cb47('0x2061')]=![];});}),_0x5882f1[_0x59dd5e('0xb2b')](_0x59dd5e('0x1a31'),function(){var _0x1a5a01=_0x59dd5e;if(_0x1ccd20[_0x1a5a01('0x1a8f')][_0x1a5a01('0x1d72')]===_0x151e5c[_0x1a5a01('0x1a60')][_0x1a5a01('0x2623')]||_0x151e5c[_0x1a5a01('0x1c43')](_0x1ccd20[_0x1a5a01('0x1a8f')][_0x1a5a01('0x1d72')])){if(angular[_0x1a5a01('0x1d95')](_0x1ccd20[_0x1a5a01('0x1a8f')]['stateParams'])&&angular[_0x1a5a01('0x1d95')](_0x151e5c[_0x1a5a01('0x2ef')])&&!angular[_0x1a5a01('0x1f15')](_0x1ccd20['node'][_0x1a5a01('0x1c6d')],_0x151e5c['params']))return;_0x1c48b5[_0x1a5a01('0x237b')](_0x1ccd20['node'],_0x5882f1),_0x2c43cf['$broadcast'](_0x1a5a01('0x10b7'));}});}function _0x323396(){var _0x94cc95=_0x5c8769;return _0x1ccd20[_0x94cc95('0x1a8f')][_0x94cc95('0x168c')];}}function _0x562386(){var _0x961206=_0xb635d2;return{'restrict':'A','bindToController':{'node':_0x961206('0x11ac')},'controller':_0x961206('0x7ee'),'compile':function _0x22ff35(_0x28595a){var _0x2ba272=_0x961206;return _0x28595a[_0x2ba272('0x500')](_0x2ba272('0x251f')),function _0x1f58d9(_0x2571be,_0x2bae26,_0x157ce5,_0x32aac0){var _0x49d69c=_0x2ba272;_0x2bae26[_0x49d69c('0x500')](_0x32aac0[_0x49d69c('0x27d0')]()),_0x32aac0[_0x49d69c('0x246c')]&&_0x2bae26[_0x49d69c('0x500')]('group');};}};}function _0x539b9e(_0x48dfbd){return{'restrict':'A','require':'^msNavigationHorizontalNode','compile':function _0x3aa2bf(_0x542752){var _0xed13b=a0_0x5325;return _0x542752[_0xed13b('0x500')]('ms-navigation-horizontal-item'),function _0x34e178(_0x9ec4e0,_0x21d52b,_0x8b07b7,_0x2f6a22){var _0x200644=_0xed13b;_0x21d52b['on']('click',_0x9ee8c2);function _0x9ee8c2(){var _0x2f8ffa=a0_0x5325;if(!_0x2f6a22['hasChildren']||_0x48dfbd(_0x2f8ffa('0x110f')))return;_0x21d52b[_0x2f8ffa('0x2832')](_0x2f8ffa('0x288e'));}_0x9ec4e0[_0x200644('0xb2b')](_0x200644('0x5cd'),function(){var _0x2bf851=_0x200644;_0x21d52b[_0x2bf851('0xe5')]('click');});};}};}const _0x588d5a=_0x59426a['p']+_0xb635d2('0xbb1'),_0x4bc169=_0x59426a['p']+_0xb635d2('0x27f5'),_0x5901ea=_0x59426a['p']+_0xb635d2('0x1773'),_0x2ab6df=_0x59426a['p']+_0xb635d2('0x1a58');var _0x36b180=_0x59426a(0x175b),_0x1d1d77=_0x59426a['n'](_0x36b180),_0x26d71f=_0x59426a(0x26ba),_0x5349b1=_0x59426a['n'](_0x26d71f);_0x76257e[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1728'),'$timeout','$interval',_0xb635d2('0x1c9f'),_0xb635d2('0x1e23'),'$window','$translate',_0xb635d2('0xc6a'),_0xb635d2('0xf65'),'api',_0xb635d2('0x2680'),_0xb635d2('0x2730'),_0xb635d2('0x46d')];function _0x3e75c9(_0x108c11){var _0x32dd41=_0xb635d2;'@babel/helpers\x20-\x20typeof';return typeof Symbol===_0x32dd41('0x146d')&&typeof Symbol['iterator']===_0x32dd41('0x9dd')?_0x3e75c9=function _0x3820e5(_0x4c4390){return typeof _0x4c4390;}:_0x3e75c9=function _0x1a2bee(_0x6f3098){var _0x262acd=_0x32dd41;return _0x6f3098&&typeof Symbol==='function'&&_0x6f3098[_0x262acd('0x5fb')]===Symbol&&_0x6f3098!==Symbol['prototype']?_0x262acd('0x9dd'):typeof _0x6f3098;},_0x3e75c9(_0x108c11);}function _0x76257e(_0x188329,_0x9bf314,_0x1492cc,_0x2be246,_0x430392,_0x98434f,_0x5152bc,_0x5a8ff8,_0x55665e,_0x22783a,_0x5844b0,_0x3a8430,_0x219e48,_0x3b930a){var _0x28537d=_0xb635d2,_0x163fde=this,_0x316994=window[_0x28537d('0x156d')];_0x163fde['baseUrl']=_0x5844b0[_0x28537d('0x2496')],_0x163fde['conf']=_0x188329[_0x28537d('0x5cf')]['vm'][_0x28537d('0x2808')];var _0x2317a2=[_0x28537d('0x21bb'),_0x28537d('0x1011'),_0x28537d('0x173b'),_0x28537d('0x1718'),_0x28537d('0x1ce0'),_0x28537d('0x14c4'),_0x28537d('0x1347'),'speakerMute',_0x28537d('0x209a')],_0x43853c=_0x163fde[_0x28537d('0x2808')]&&JSON['parse'](_0x5152bc[_0x28537d('0x4f9')][_0x28537d('0x2208')]('motion2.user:'+_0x163fde[_0x28537d('0x2808')]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x2be246(function(){},0x3e7),_0x163fde[_0x28537d('0x1338')]=_0x28537d('0xf7c'),_0x163fde[_0x28537d('0x1dcf')]=_0x28537d('0x568'),_0x163fde[_0x28537d('0xe0b')]='',_0x163fde[_0x28537d('0xb1')]=![],_0x163fde[_0x28537d('0x25f')]=document[_0x28537d('0x9a1')]('audio'),_0x163fde[_0x28537d('0x2238')]=document['getElementById'](_0x163fde[_0x28537d('0x2808')][_0x28537d('0x2435')]),_0x163fde['soundPlayer']['volume']=0x1,_0x163fde['sessionConf']={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x163fde[_0x28537d('0x1bfb')]=[],_0x163fde[_0x28537d('0x13c7')]=[],_0x163fde[_0x28537d('0xbb6')]=[],_0x163fde[_0x28537d('0x1c64')]=![],_0x163fde[_0x28537d('0x26a1')]=![],_0x163fde[_0x28537d('0x988')]=[],_0x163fde['ua']=new(_0x1d1d77())['UA']({'sockets':[new(_0x1d1d77())[(_0x28537d('0x128b'))](_0x28537d('0xbc5')+_0x163fde['conf'][_0x28537d('0x3b7')]+_0x28537d('0x2364'))],'uri':new(_0x1d1d77())[(_0x28537d('0x5dd'))]('sip',_0x163fde[_0x28537d('0x2808')][_0x28537d('0x2623')],_0x163fde[_0x28537d('0x2808')][_0x28537d('0x3b7')],0x13c4,null,null)[_0x28537d('0x94f')](),'authorization_user':_0x163fde[_0x28537d('0x2808')]['name'],'ha1':_0x163fde[_0x28537d('0x2808')][_0x28537d('0x1fe0')],'realm':_0x163fde[_0x28537d('0x2808')][_0x28537d('0xe12')],'user_agent':_0x163fde[_0x28537d('0x2808')]['ua'],'session_timers_refresh_method':_0x28537d('0x19d0'),'register_expires':_0x163fde['conf']['phoneBarExpires']||0x3c,'register':!![]}),_0x163fde['conf']=_0x32d445()[_0x28537d('0x1d8')](_0x43853c['webrtc'],_0x163fde['conf']),_0x163fde[_0x28537d('0x133b')]=![],_0x163fde[_0x28537d('0x479')]=![],_0x163fde[_0x28537d('0x984')]=![],_0x163fde[_0x28537d('0xe8a')]=null,_0x163fde[_0x28537d('0xeca')]=![],_0x163fde[_0x28537d('0x8fe')]=![],_0x163fde['originateInProgress']=![];function _0x35f39d(){var _0x14d52d=_0x28537d;_0x509499(![]),navigator[_0x14d52d('0xbed')]['ondevicechange']=function(){var _0x47ab65=_0x14d52d;!_0x163fde[_0x47ab65('0x133b')]&&(_0x163fde[_0x47ab65('0x133b')]=!![],_0x316994&&_0x163fde['isJabraInitialized']?_0x316994[_0x47ab65('0x2567')]()[_0x47ab65('0xe19')](function(){_0x163fde['isJabraInitialized']=![],_0x163fde['isJabraEnabled']=![],_0x509499(!![]);})['catch'](function(_0x5474fe){var _0x395725=_0x47ab65;console[_0x395725('0x8c8')](_0x395725('0x11c2'),_0x5474fe);}):_0x509499(!![]));};var _0x2ef986=[_0x5844b0['network']['get']({'type':'turn','nolimit':!![]})['$promise'],_0x5844b0[_0x14d52d('0xfb0')][_0x14d52d('0x22d5')]({'type':'stun','nolimit':!![]})[_0x14d52d('0xe59')]];Promise['all'](_0x2ef986)[_0x14d52d('0xe19')](function(_0x7c172d){var _0x48550e=_0x14d52d,_0x1c567c=_0x7c172d[0x0]['rows'],_0x133867=_0x7c172d[0x1]['rows'],_0x42c608=[],_0x1dd3a1=[];_0x133867[_0x48550e('0x1d7e')](function(_0x222115){var _0x5beebc=_0x48550e;_0x1dd3a1['push'](_0x5beebc('0x1bf2')+_0x222115[_0x5beebc('0x2')]);}),_0x42c608[_0x48550e('0xb76')]({'urls':_0x1dd3a1}),_0x1c567c[_0x48550e('0x1d7e')](function(_0x2d7356){var _0x1f4da8=_0x48550e,_0x100c30={'urls':_0x1f4da8('0x2309')+_0x2d7356[_0x1f4da8('0x2')]};_0x2d7356[_0x1f4da8('0x120b')]&&(_0x100c30[_0x1f4da8('0x120b')]=_0x2d7356[_0x1f4da8('0x120b')]),_0x2d7356[_0x1f4da8('0x1f6d')]&&(_0x100c30[_0x1f4da8('0xdeb')]=_0x2d7356['password']),_0x42c608[_0x1f4da8('0xb76')](_0x100c30);}),_0x163fde[_0x48550e('0xfc9')][_0x48550e('0x265b')]={'iceServers':_0x42c608};}),this['ua']['on'](_0x14d52d('0x7e1'),_0x2db531['bind'](this)),this['ua']['on'](_0x14d52d('0xc53'),_0x4f5628['bind'](this)),this['ua']['on'](_0x14d52d('0xb0f'),_0x41fce8[_0x14d52d('0x235b')](this)),_0x3b930a['on'](_0x14d52d('0xd18'),_0x82df1c[_0x14d52d('0x235b')](this)),_0x3b930a['on'](_0x14d52d('0x285f'),_0x536d53[_0x14d52d('0x235b')](this)),_0x3b930a['on'](_0x14d52d('0x214b'),_0x45c2b8[_0x14d52d('0x235b')](this)),_0x3b930a['on'](_0x14d52d('0x13c6'),_0x32dd4b[_0x14d52d('0x235b')](this)),_0x3b930a['on'](_0x14d52d('0x8e6'),_0x41a113[_0x14d52d('0x235b')](this)),_0x3b930a['on']('webbar:transfer',_0x235855[_0x14d52d('0x235b')](this));}function _0x509499(_0x2fe847){var _0x55d3a7=_0x28537d,_0x526d81,_0xfd5bc8,_0x4bce17;return _0x163fde[_0x55d3a7('0x133b')]=!![],navigator['mediaDevices'][_0x55d3a7('0x49d')]({'audio':!![]})['then'](function(_0x283ce5){var _0x27abbd=_0x55d3a7;return _0x283ce5[_0x27abbd('0x1e66')]()[_0x27abbd('0x1d7e')](function(_0x5c957a){_0x5c957a['stop']();}),navigator[_0x27abbd('0xbed')]['enumerateDevices']();})[_0x55d3a7('0xe19')](function(_0x2d3cca){var _0x26a87c=_0x55d3a7,_0x394bdb=_0x32d445()[_0x26a87c('0x2891')](_0x2d3cca,function(_0x285ccd){var _0x368111=_0x26a87c;return _0x285ccd['kind']===_0x368111('0x1436')&&_0x285ccd[_0x368111('0x150')]!==_0x368111('0x206')&&_0x285ccd[_0x368111('0x150')]!==_0x368111('0x27d3');});if(_0x394bdb[_0x26a87c('0x25ae')]>0x0){var _0xccf7df=_0x32d445()[_0x26a87c('0xf15')](_0x2d3cca,function(_0x2f516f){var _0x34471b=_0x26a87c;return _0x2f516f['deviceId']===_0x34471b('0x206')&&_0x2f516f[_0x34471b('0x1c5d')]===_0x34471b('0x1436');});_0x4bce17=_0x32d445()[_0x26a87c('0xf15')](_0x394bdb,function(_0x204c8d){var _0x3614f6=_0x26a87c;return _0x204c8d['groupId']===_0xccf7df[_0x3614f6('0x22ae')];});if(_0x163fde[_0x26a87c('0x2808')][_0x26a87c('0x173b')]&&!_0x2fe847){var _0x438c7f=_0x32d445()[_0x26a87c('0xf15')](_0x394bdb,function(_0x3959c6){var _0x41c6a1=_0x26a87c;return _0x3959c6[_0x41c6a1('0x150')]===_0x163fde[_0x41c6a1('0x2808')][_0x41c6a1('0x173b')];});_0x438c7f&&(_0x4bce17=_0x438c7f);}_0x163fde[_0x26a87c('0x2808')][_0x26a87c('0x173b')]=_0x4bce17[_0x26a87c('0x150')];}else _0x22783a[_0x26a87c('0x2761')]({'title':_0x5a8ff8[_0x26a87c('0x2159')]('TOOLBAR.WARNING'),'msg':_0x5a8ff8[_0x26a87c('0x2159')]('TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});_0x163fde[_0x26a87c('0x2808')][_0x26a87c('0x173b')]?_0x163fde[_0x26a87c('0xfc9')][_0x26a87c('0x23de')][_0x26a87c('0xea7')]={'deviceId':_0x163fde[_0x26a87c('0x2808')]['microphoneId']}:_0x163fde[_0x26a87c('0xfc9')][_0x26a87c('0x23de')][_0x26a87c('0xea7')]=!![];_0x5ee63a(_0x26a87c('0x1ec7'),![]);var _0x2df2c4=_0x32d445()[_0x26a87c('0x2891')](_0x2d3cca,function(_0x43f470){var _0x57fb43=_0x26a87c;return _0x43f470['kind']===_0x57fb43('0x2109')&&_0x43f470['deviceId']!==_0x57fb43('0x206')&&_0x43f470[_0x57fb43('0x150')]!==_0x57fb43('0x27d3');});if(_0x2df2c4[_0x26a87c('0x25ae')]>0x0){var _0x54e671=_0x32d445()[_0x26a87c('0xf15')](_0x2d3cca,function(_0x3002fb){var _0xbd47bc=_0x26a87c;return _0x3002fb[_0xbd47bc('0x150')]===_0xbd47bc('0x206')&&_0x3002fb[_0xbd47bc('0x1c5d')]===_0xbd47bc('0x2109');});_0x526d81=_0x32d445()[_0x26a87c('0xf15')](_0x2df2c4,function(_0x13d6f7){var _0x3fff63=_0x26a87c;return _0x13d6f7['groupId']===_0x54e671[_0x3fff63('0x22ae')];}),_0xfd5bc8=_0x526d81;if(_0x163fde[_0x26a87c('0x2808')][_0x26a87c('0x1011')]&&!_0x2fe847){var _0x4bceef=_0x32d445()['find'](_0x2df2c4,function(_0x7b5f02){var _0x5eb4cd=_0x26a87c;return _0x7b5f02[_0x5eb4cd('0x150')]===_0x163fde[_0x5eb4cd('0x2808')][_0x5eb4cd('0x1011')];});_0x4bceef&&(_0xfd5bc8=_0x4bceef);}_0x163fde['conf'][_0x26a87c('0x1011')]=_0xfd5bc8[_0x26a87c('0x150')];if(_0x163fde[_0x26a87c('0x2808')][_0x26a87c('0x21bb')]&&!_0x2fe847){var _0x29e769=_0x32d445()[_0x26a87c('0xf15')](_0x2df2c4,function(_0xac4e66){var _0xd16d7e=_0x26a87c;return _0xac4e66[_0xd16d7e('0x150')]===_0x163fde[_0xd16d7e('0x2808')][_0xd16d7e('0x21bb')];});_0x29e769&&(_0x526d81=_0x29e769);}_0x163fde[_0x26a87c('0x2808')][_0x26a87c('0x21bb')]=_0x526d81[_0x26a87c('0x150')];}else _0x22783a[_0x26a87c('0x2761')]({'title':_0x5a8ff8[_0x26a87c('0x2159')](_0x26a87c('0x6af')),'msg':_0x5a8ff8['instant'](_0x26a87c('0x217f')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});return _0x5ee63a('speaker',![]);})[_0x55d3a7('0xe19')](function(){var _0x5bf15c=_0x55d3a7;return _0x5ee63a(_0x5bf15c('0xb4'),![]);})[_0x55d3a7('0xe19')](function(){var _0x273acf=_0x55d3a7;if(_0x316994)return _0x316994[_0x273acf('0x15f9')]()[_0x273acf('0xe19')](function(){var _0x2eccc=_0x273acf;return _0x163fde[_0x2eccc('0x984')]=!![],_0x316994['getInstallInfo']();})['then'](function(){var _0x5519ac=_0x273acf;return _0x316994[_0x5519ac('0x2230')]();})[_0x273acf('0xe19')](function(_0x11536d){var _0x3a868f=_0x273acf;_0x4bce17&&_0xfd5bc8&&_0x526d81&&_0x11536d&&(_0x32d445()[_0x3a868f('0x1c43')]([_0x4bce17['groupId'],_0xfd5bc8['groupId'],_0x526d81[_0x3a868f('0x22ae')]],_0x11536d[_0x3a868f('0x1885')][_0x3a868f('0x1c16')])&&(console['log']('Jabra\x20library\x20correctly\x20initialized\x20and\x20device\x20correctly\x20installed'),_0x163fde[_0x3a868f('0x479')]=!![],_0x316994['onHook'](),_0x316994['addEventListener'](_0x3a868f('0x450'),_0x39ebe6[_0x3a868f('0x235b')](this)),_0x316994[_0x3a868f('0x1370')](_0x3a868f('0x1cec'),_0x325925[_0x3a868f('0x235b')](this)),_0x316994[_0x3a868f('0x1370')]('unmute',_0xd8194d[_0x3a868f('0x235b')](this)),_0x316994[_0x3a868f('0x1370')](_0x3a868f('0x1416'),_0x31e0ff['bind'](this)),_0x316994[_0x3a868f('0x1370')](_0x3a868f('0x20d7'),_0xc560f[_0x3a868f('0x235b')](this))));})[_0x273acf('0x223b')](function(_0x6328c){var _0x3d08b2=_0x273acf;console[_0x3d08b2('0x14a7')]('Error\x20initializing\x20Jabra\x20integration',_0x6328c);});})[_0x55d3a7('0x223b')](function(_0x503ef4){var _0x42af47=_0x55d3a7;console[_0x42af47('0x8c8')](_0x42af47('0x17be'),_0x503ef4),_0x503ef4[_0x42af47('0x2623')]===_0x42af47('0x868')&&_0x22783a[_0x42af47('0x2761')]({'title':_0x5a8ff8[_0x42af47('0x2159')](_0x42af47('0x6af')),'msg':_0x5a8ff8[_0x42af47('0x2159')](_0x42af47('0x2581')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});})[_0x55d3a7('0x23')](function(){var _0xc62610=_0x55d3a7;_0x163fde[_0xc62610('0x133b')]=![],_0x456e29(),_0x5349b1()[_0xc62610('0xcfe')](_0x4bdcfd[_0xc62610('0x235b')](this));});}function _0x39ebe6(_0x49df1e){var _0x3f0d5c=_0x28537d,_0xc249d4=_0x32d445()[_0x3f0d5c('0x27ed')](_0x163fde[_0x3f0d5c('0x1bfb')]);_0xc249d4?_0xc249d4[_0x3f0d5c('0x1338')]===_0x3f0d5c('0x15f8')&&_0xc249d4[_0x3f0d5c('0x1c7d')]()?_0x163fde[_0x3f0d5c('0x62d')](_0xc249d4):console[_0x3f0d5c('0x8c8')](_0x3f0d5c('0x9f7'),_0x49df1e):console[_0x3f0d5c('0x8c8')](_0x3f0d5c('0x12f1'),_0x49df1e);}function _0x325925(){var _0x391455=_0x28537d;_0x163fde[_0x391455('0x2808')][_0x391455('0x209a')]=!![],_0x5ee63a('microphone',!![]);}function _0xd8194d(){var _0x2bae5f=_0x28537d;_0x163fde[_0x2bae5f('0x2808')][_0x2bae5f('0x209a')]=![],_0x5ee63a(_0x2bae5f('0x1ec7'),!![]);}function _0x31e0ff(){var _0x2dd963=_0x28537d;_0x163fde[_0x2dd963('0xe8a')][_0x2dd963('0x2598')]?_0x163fde['unhold'](_0x163fde[_0x2dd963('0xe8a')]):_0x163fde[_0x2dd963('0x1afb')](_0x163fde['jabraSession']);}function _0xc560f(){var _0x19decc=_0x28537d;_0x5186ee()[_0x19decc('0xe19')](function(_0x836863){var _0x2757f7=_0x19decc;_0x836863!==null&&_0x163fde[_0x2757f7('0x2290')](_0x836863);});}function _0x456e29(){var _0x40d5ee=_0x28537d;_0x43853c['webrtc']=_0x32d445()['pick'](_0x163fde['conf'],_0x2317a2),_0x5152bc[_0x40d5ee('0x4f9')][_0x40d5ee('0x95e')](_0x40d5ee('0x16df')+_0x163fde['conf']['id'],JSON[_0x40d5ee('0x3ad')](_0x43853c));}function _0x2db531(){var _0x34fef7=_0x28537d;this[_0x34fef7('0x7e1')]=!![];}function _0x4f5628(){var _0x134b90=_0x28537d;this[_0x134b90('0x7e1')]=![];}function _0x4bdcfd(){var _0x59cca3=_0x28537d;_0x163fde[_0x59cca3('0x2808')][_0x59cca3('0x10f9')]=_0x5349b1()[_0x59cca3('0x10f9')],_0x163fde[_0x59cca3('0x2808')][_0x59cca3('0x17bc')]=_0x5349b1()[_0x59cca3('0x1ef')]['name']===_0x59cca3('0xb54')||_0x5349b1()['browser']['name']===_0x59cca3('0x1b06')||_0x5349b1()['browser'][_0x59cca3('0x2623')]===_0x59cca3('0x1168')?_0x5349b1()[_0x59cca3('0x17bc')]:!![],_0x163fde[_0x59cca3('0x2808')][_0x59cca3('0x1859')]=_0x5349b1()[_0x59cca3('0x1859')],_0x163fde[_0x59cca3('0x2808')]['osName']=_0x5349b1()[_0x59cca3('0x2674')],_0x163fde['conf']['osVersion']=_0x5349b1()[_0x59cca3('0x2221')],_0x163fde[_0x59cca3('0x2808')]['browserName']=_0x5349b1()[_0x59cca3('0x1ef')]['name'],_0x163fde[_0x59cca3('0x2808')][_0x59cca3('0x256d')]=_0x5349b1()[_0x59cca3('0x1ef')][_0x59cca3('0xfec')];if(_0x3e2ffc())!_0x163fde[_0x59cca3('0x2568')]&&_0x163fde['ua'][_0x59cca3('0x157d')]();else!_0x163fde[_0x59cca3('0x2808')]['license']&&_0x22783a[_0x59cca3('0x2761')]({'title':_0x5a8ff8[_0x59cca3('0x2159')]('TOOLBAR.WARNING'),'msg':_0x5a8ff8[_0x59cca3('0x2159')](_0x59cca3('0x9d1')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});}function _0x3e2ffc(){var _0x3df2b3=_0x28537d;return _0x163fde[_0x3df2b3('0x2808')]['license']&&_0x163fde[_0x3df2b3('0x2808')]['isWebRTCSupported']&&_0x163fde['conf']['hasMicrophone']&&_0x163fde['conf'][_0x3df2b3('0x17bc')]&&_0x163fde['conf'][_0x3df2b3('0xec0')]===_0x3df2b3('0xf7e')&&_0x38c426();}function _0x38c426(){var _0x2b9f16=_0x28537d;return _0x163fde[_0x2b9f16('0x2808')][_0x2b9f16('0x188e')]['toLowerCase']()===_0x2b9f16('0x28b')||_0x163fde[_0x2b9f16('0x2808')][_0x2b9f16('0x188e')][_0x2b9f16('0x20dd')]()===_0x2b9f16('0x263d')||_0x163fde[_0x2b9f16('0x2808')][_0x2b9f16('0x188e')][_0x2b9f16('0x20dd')]()==='safari';}function _0x41fce8(_0x491bd4){var _0x494ef9=_0x28537d;console['debug'](_0x494ef9('0x566'),_0x491bd4);var _0x3c6314=_0x491bd4['session'],_0x12e78a=!![],_0x5669d8='',_0x34546c=0x0,_0x323c95;switch(_0x491bd4['originator']){case _0x494ef9('0x1a8'):{_0x3c6314[_0x494ef9('0x72e')]=!![],_0x3c6314['name']=_0x491bd4[_0x494ef9('0x793')][_0x494ef9('0x2824')][_0x494ef9('0x10c6')],_0x3c6314['user']=_0x491bd4[_0x494ef9('0x793')][_0x494ef9('0x2824')][_0x494ef9('0x10c6')],_0x400f1a(_0x3c6314[_0x494ef9('0x10c6')],![]);var _0x5d1ffa=_0x494ef9('0x8d5');_0x323c95=_0x3b5c12(_0x491bd4[_0x494ef9('0x793')][_0x494ef9('0x24f7')],_0x5d1ffa),_0x163fde['isJabraEnabled']&&(_0x163fde['jabraSession']&&_0x316994['resume'](),_0x163fde['jabraSession']=_0x3c6314,_0x316994[_0x494ef9('0x18c8')]());}break;case _0x494ef9('0x21bc'):{var _0x4bf6d2=_0x219e48['getCurrentUser']();if(_0x4bf6d2[_0x494ef9('0x1b8d')]&&_0x4bf6d2[_0x494ef9('0x200c')]||_0x163fde[_0x494ef9('0x1034')])_0x12e78a=![];else{_0x3c6314['incoming']=!![],_0x3c6314['name']=_0x491bd4[_0x494ef9('0x793')][_0x494ef9('0x6f7')][_0x494ef9('0x937')],_0x3c6314[_0x494ef9('0x10c6')]=_0x491bd4[_0x494ef9('0x793')][_0x494ef9('0x6f7')][_0x494ef9('0x154a')][_0x494ef9('0x10c6')],_0x5669d8=_0x491bd4['request'][_0x494ef9('0x10ce')]('X-Answer-Mode')||'',_0x34546c=_0x491bd4[_0x494ef9('0x793')][_0x494ef9('0x10ce')](_0x494ef9('0xac0'))||0x0,_0x1e6e41(_0x491bd4['session']),_0x400f1a(_0x491bd4[_0x494ef9('0x2330')][_0x494ef9('0x10c6')],!![]);_0x163fde[_0x494ef9('0x479')]&&_0x316994['ring']();_0x163fde[_0x494ef9('0x2808')]['autoAnswer']&&_0x1492cc(function(){var _0x1f43b7=_0x494ef9;_0x3c6314[_0x1f43b7('0x1c7d')]()&&(_0x3c6314[_0x1f43b7('0x5ca')]=!![],_0x77e3bf(_0x3c6314));},_0x163fde[_0x494ef9('0x2808')][_0x494ef9('0x18f9')]?_0x163fde[_0x494ef9('0x2808')]['autoAnswerDelay']*0x3e8:0x0);console['debug'](_0x494ef9('0x2789'),_0x5669d8),console['debug'](_0x494ef9('0x1f4b'),_0x34546c);if(_0x5669d8[_0x494ef9('0x20dd')]()==_0x494ef9('0xa1e')){var _0x3c9bc3=_0x34546c==0x0?0x1f4:_0x34546c*0x3e8;console['debug'](_0x494ef9('0x24e7')+_0x3c9bc3+_0x494ef9('0xf7b')),_0x1492cc(function(){var _0x1cfb71=_0x494ef9;_0x3c6314['isInProgress']()&&(_0x3c6314[_0x1cfb71('0x5ca')]=!![],_0x77e3bf(_0x3c6314));},_0x3c9bc3);}}break;}default:}_0x12e78a?(_0x3c6314[_0x494ef9('0x18d5')]=_0x491bd4['request'][_0x494ef9('0x18d5')],_0x323c95&&(_0x163fde['callbackQueue'][_0x3c6314[_0x494ef9('0x18d5')]]=_0x323c95,_0x2bafdf(_0x323c95,{'call_id':_0x3c6314['call_id']})['then'](function(){var _0x3d1a9e=_0x494ef9;console[_0x3d1a9e('0x1fe9')](_0x3d1a9e('0x1e1c')+_0x323c95+_0x3d1a9e('0x195d'));})['catch'](function(_0x55b65c){var _0x55bdc5=_0x494ef9;console['log']('fail\x20callbackurl:\x22'+_0x323c95+_0x55bdc5('0x27d6'),_0x55b65c);})),_0x3c6314['connection']&&(_0x3c6314[_0x494ef9('0x589')]['onaddstream']=_0x1527ff[_0x494ef9('0x235b')](this)),_0x3c6314[_0x494ef9('0x1bc7')]=null,_0x3c6314['on'](_0x494ef9('0x831'),_0x74f319[_0x494ef9('0x235b')](this,_0x3c6314)),_0x3c6314['on'](_0x494ef9('0x2880'),_0x55d873[_0x494ef9('0x235b')](this,_0x3c6314)),_0x3c6314['on'](_0x494ef9('0x1afb'),_0x472d11[_0x494ef9('0x235b')](this,_0x3c6314)),_0x3c6314['on'](_0x494ef9('0x203'),_0x5c0fcd[_0x494ef9('0x235b')](this,_0x3c6314)),_0x3c6314['on']('ended',_0x1fcf87['bind'](this,_0x3c6314)),_0x3c6314['on']('failed',_0x2a74ee[_0x494ef9('0x235b')](this,_0x3c6314)),_0x3c6314['on'](_0x494ef9('0x1458'),_0x315eef[_0x494ef9('0x235b')](this,_0x3c6314)),_0x163fde['sessions'][_0x494ef9('0xb76')](_0x3c6314),_0x1492cc(function(){var _0xf373cc=_0x494ef9;_0x188329[_0xf373cc('0x1993')](),console['debug'](_0xf373cc('0x1323'),_0x163fde[_0xf373cc('0x1bfb')]);})):_0x48c165(_0x3c6314,0x1e6);}function _0x400f1a(_0x3afc3b,_0x2b90e3,_0x2eaf87){var _0x1f62d9=_0x28537d;console[_0x1f62d9('0x167f')](_0x1f62d9('0xa7b'),_0x3afc3b,_0x2b90e3,_0x2eaf87),_0x163fde['calls'][_0x1f62d9('0x14c9')]({'target':_0x3afc3b,'fullname':_0x2eaf87||_0x3afc3b,'inbound':_0x2b90e3,'time':_0x4ddcaa()()[_0x1f62d9('0x5e5')](_0x1f62d9('0x1dd1'))}),_0x163fde[_0x1f62d9('0x13c7')][_0x1f62d9('0x25ae')]>0x32&&_0x163fde[_0x1f62d9('0x13c7')][_0x1f62d9('0x2b')]();}function _0x1e6e41(_0xf0146){var _0x163248=_0x28537d;console[_0x163248('0x167f')](_0x163248('0x112c'),_0xf0146);var _0x1596d7=_0xf0146[_0x163248('0x2623')]?_0xf0146[_0x163248('0x2623')]+'\x20<'+_0xf0146[_0x163248('0x10c6')]+'>':_0xf0146[_0x163248('0x10c6')];_0x3a8430['create'](_0x163248('0xbe2'),_0x1596d7,null,function(){_0x77e3bf(_0xf0146);},function(){_0x48c165(_0xf0146);})[_0x163248('0xe19')](function(_0x3e6054){var _0x4349b7=_0x163248;_0xf0146[_0x4349b7('0x1f80')]=_0x3e6054;})['catch'](function(_0xb23d56){var _0x38d3b6=_0x163248;console[_0x38d3b6('0x8c8')]('Error\x20creating\x20notification\x20for\x20incoming\x20call',_0xb23d56);});}function _0x77e3bf(_0x2a1870){var _0x1577aa=_0x28537d;console[_0x1577aa('0x167f')](_0x1577aa('0x1ba2'),_0x2a1870),_0x163fde[_0x1577aa('0x2808')][_0x1577aa('0x173b')]?_0x163fde[_0x1577aa('0xfc9')][_0x1577aa('0x23de')]['audio']={'deviceId':_0x163fde[_0x1577aa('0x2808')][_0x1577aa('0x173b')]}:_0x163fde[_0x1577aa('0xfc9')][_0x1577aa('0x23de')][_0x1577aa('0xea7')]=!![],_0x2a1870[_0x1577aa('0x62d')](_0x163fde[_0x1577aa('0xfc9')]),_0x163fde['isJabraEnabled']&&(_0x316994['offHook'](),_0x163fde[_0x1577aa('0xe8a')]=_0x2a1870);}function _0x48c165(_0x87b6d0,_0x2d186a){var _0x3c02a6=_0x28537d;console[_0x3c02a6('0x167f')]('terminate\x20->\x20session',_0x87b6d0);var _0x14b9db={};if(_0x2d186a)_0x14b9db[_0x3c02a6('0x2264')]=_0x2d186a;else!_0x87b6d0['isEstablished']()&&(_0x14b9db[_0x3c02a6('0x2264')]=0x25b);_0x87b6d0[_0x3c02a6('0x2290')](_0x14b9db);if(_0x163fde['isJabraEnabled']){if(_0x163fde['sessions'][_0x3c02a6('0x25ae')]===0x0)_0x87b6d0[_0x3c02a6('0x2598')]&&_0x316994[_0x3c02a6('0x1d14')](),_0x316994[_0x3c02a6('0x271f')](),_0x163fde[_0x3c02a6('0xe8a')]=null;else{var _0x1ef248=_0x32d445()['last'](_0x163fde[_0x3c02a6('0x1bfb')]);_0x1ef248['localHold']?(_0x316994[_0x3c02a6('0x271f')](),_0x316994[_0x3c02a6('0x1afb')](),_0x163fde[_0x3c02a6('0xe8a')]=_0x1ef248):_0x316994['offHook']();}}}function _0x74f319(_0x521878,_0x7a4a4){var _0x1c521c=_0x28537d;console[_0x1c521c('0x167f')](_0x1c521c('0x1274'),_0x521878,_0x7a4a4);var _0x139104=![];switch(_0x7a4a4['originator']){case _0x1c521c('0x1a8'):!this[_0x1c521c('0x2808')][_0x1c521c('0x1347')]&&(this[_0x1c521c('0x25f')][_0x1c521c('0xede')](_0x1c521c('0x48a'),_0x1c521c('0xa1c')),_0x139104=!![]);break;case'remote':this[_0x1c521c('0x2366')](_0x521878),this[_0x1c521c('0x25f')][_0x1c521c('0xede')]('src',_0x1c521c('0x10cd')),_0x139104=!![];break;}_0x163fde[_0x1c521c('0x1034')]&&(_0x163fde[_0x1c521c('0x1034')]=![]),_0x139104&&(this[_0x1c521c('0x25f')][_0x1c521c('0x18cb')]='loop',this[_0x1c521c('0x25f')][_0x1c521c('0x1d0b')]()['catch'](function(_0x2a376d){var _0x8da718=_0x1c521c;console[_0x8da718('0x1fe9')](_0x2a376d[_0x8da718('0x27e8')]);})),_0x25fede(_0x521878)['then'](function(){var _0x148232=_0x1c521c,_0x56eebc=_0x163fde[_0x148232('0xbb6')][_0x521878[_0x148232('0x18d5')]];_0x56eebc&&_0x2bafdf(_0x56eebc,{'uniqueid':_0x521878[_0x148232('0x1a6c')],'call_id':_0x521878[_0x148232('0x18d5')],'number_called':_0x521878[_0x148232('0x10c6')]})[_0x148232('0xe19')](function(){var _0x24cc84=_0x148232;console['log'](_0x24cc84('0x1e1c')+_0x56eebc+_0x24cc84('0x195d'));})[_0x148232('0x223b')](function(_0x544d86){var _0x335805=_0x148232;console['log'](_0x335805('0x2010')+_0x56eebc+_0x335805('0x27d6'),_0x544d86);})[_0x148232('0x23')](function(){var _0x46cd80=_0x148232;delete _0x163fde[_0x46cd80('0xbb6')][_0x521878[_0x46cd80('0x18d5')]];});})[_0x1c521c('0x223b')](function(_0x5cd9eb){var _0x57afb1=_0x1c521c;console['error'](_0x57afb1('0x1635'),_0x5cd9eb);});}function _0x25fede(_0x1908d6){var _0x11fa4b=_0x28537d;return console[_0x11fa4b('0x167f')](_0x11fa4b('0x1ef1'),_0x1908d6),_0x5844b0[_0x11fa4b('0x21e1')]['getVoiceChannels']()['$promise'][_0x11fa4b('0xe19')](function(_0x4c663b){var _0x197644=_0x11fa4b,_0x5e5897=_0x32d445()[_0x197644('0xf15')](_0x4c663b[_0x197644('0x16a7')],function(_0x474688){var _0x1b998f=_0x197644;if(_0x474688['sipcalllinkedid']===_0x1908d6[_0x1b998f('0x18d5')])return _0x474688;if(_0x474688[_0x1b998f('0x26e7')]===_0x1908d6[_0x1b998f('0x18d5')])return _0x474688;return null;});_0x5e5897&&(_0x1908d6[_0x197644('0x21b0')]=_0x5e5897[_0x197644('0x21b0')],_0x1908d6['uniqueid']=_0x5e5897['uniqueid'],_0x1908d6[_0x197644('0xd21')]=_0x5e5897[_0x197644('0xd21')]);return;});}function _0x55d873(_0x56819b,_0xa57dd8){var _0x8687d7=_0x28537d;console['debug'](_0x8687d7('0x8ae'),_0x56819b,_0xa57dd8);var _0x320194=document[_0x8687d7('0x232')]('div_session_'+_0x56819b['id'][_0x8687d7('0x233')](0x0,0x20));_0x320194&&$(_0x320194)[_0x8687d7('0x2ba')]()[_0x8687d7('0xa98')](_0x8687d7('0xa25')),_0x56819b['confirmed']=!![],_0xa57dd8[_0x8687d7('0x1743')]===_0x8687d7('0x21bc')&&_0x56819b[_0x8687d7('0x589')]&&(_0x56819b['connection']['onaddstream']=_0x1527ff[_0x8687d7('0x235b')](this),_0x32d445()[_0x8687d7('0xb6c')](_0x56819b['connection'][_0x8687d7('0x2529')]())&&(this[_0x8687d7('0x2238')]['srcObject']=_0x32d445()[_0x8687d7('0xb6c')](_0x56819b[_0x8687d7('0x589')]['getRemoteStreams']()),this[_0x8687d7('0x2238')][_0x8687d7('0x1d0b')]())),this[_0x8687d7('0x25f')][_0x8687d7('0x1c98')](),this['soundPlayer'][_0x8687d7('0x18cb')]=null,this[_0x8687d7('0x2366')](_0x56819b),_0x56819b[_0x8687d7('0x5ca')]&&(this[_0x8687d7('0x25f')][_0x8687d7('0xede')]('src',_0x8687d7('0x7d0')),this[_0x8687d7('0x25f')][_0x8687d7('0x1d0b')]()[_0x8687d7('0x223b')](function(_0x45e409){var _0x36e950=_0x8687d7;console[_0x36e950('0x1fe9')](_0x36e950('0x1f0e'),_0x45e409);})),_0x163fde[_0x8687d7('0x1c64')]=_0x163fde[_0x8687d7('0x1bfb')][_0x8687d7('0x25ae')]==0x2,_0x25fede(_0x56819b)[_0x8687d7('0x223b')](function(_0x1ff2a8){var _0x3ca9c6=_0x8687d7;console[_0x3ca9c6('0x8c8')](_0x3ca9c6('0x1635'),_0x1ff2a8);});}function _0x1527ff(_0xf51fcf){var _0x2feb7c=_0x28537d;console[_0x2feb7c('0x167f')](_0x2feb7c('0x311'),_0xf51fcf),this[_0x2feb7c('0x2238')][_0x2feb7c('0x68d')]=_0xf51fcf[_0x2feb7c('0x200b')],this[_0x2feb7c('0x2238')]['play']();}function _0x472d11(_0x489454,_0x242414){var _0x39d9a4=_0x28537d;console[_0x39d9a4('0x167f')](_0x39d9a4('0xc0c'),_0x489454,_0x242414),_0x242414[_0x39d9a4('0x1743')]==='local'&&(_0x489454[_0x39d9a4('0x2598')]=!![]);}function _0x5c0fcd(_0x428ab2,_0x5772f9){var _0x28ded9=_0x28537d;console[_0x28ded9('0x167f')]('onUnhold\x20->\x20session,\x20data',_0x428ab2,_0x5772f9),_0x5772f9[_0x28ded9('0x1743')]===_0x28ded9('0x1a8')&&(_0x428ab2[_0x28ded9('0x2598')]=![]);}function _0x1fcf87(_0x1aba26,_0x5512ed){var _0x31d5fd=_0x28537d;console[_0x31d5fd('0x167f')]('onEnded\x20->\x20session,\x20data',_0x1aba26,_0x5512ed);_0x163fde[_0x31d5fd('0x26a1')]&&(_0x32d445()[_0x31d5fd('0x1c43')](_0x163fde[_0x31d5fd('0x988')],_0x1aba26['id'])&&(_0x159e59(),_0x163fde[_0x31d5fd('0x8fe')]=!![]));_0x32d445()[_0x31d5fd('0xa8b')](this[_0x31d5fd('0x1bfb')],{'id':_0x1aba26['id']});_0x163fde['sessions'][_0x31d5fd('0x25ae')]!==0x2&&(_0x163fde[_0x31d5fd('0x1c64')]=![]);if(_0x163fde['isJabraEnabled']){if(_0x163fde[_0x31d5fd('0x1bfb')][_0x31d5fd('0x25ae')]===0x0)_0x1aba26[_0x31d5fd('0x2598')]&&_0x316994[_0x31d5fd('0x1d14')](),_0x316994['onHook'](),_0x163fde['jabraSession']=null;else{var _0x1bb12a=_0x32d445()[_0x31d5fd('0x27ed')](_0x163fde[_0x31d5fd('0x1bfb')]);_0x1bb12a[_0x31d5fd('0x2598')]?(_0x316994['onHook'](),_0x316994[_0x31d5fd('0x1afb')](),_0x163fde['jabraSession']=_0x1bb12a):_0x316994[_0x31d5fd('0x18c8')]();}}}function _0x159e59(){var _0x2b90fb=_0x28537d;_0x163fde[_0x2b90fb('0x1c64')]=![],_0x163fde[_0x2b90fb('0x26a1')]=![],_0x163fde[_0x2b90fb('0x25f0')]=[];}function _0x2a74ee(_0x54ec6a,_0x1d17a4){var _0x2b5084=_0x28537d;console[_0x2b5084('0x167f')](_0x2b5084('0x204'),_0x54ec6a,_0x1d17a4),this[_0x2b5084('0x25f')][_0x2b5084('0x1c98')](),this[_0x2b5084('0x25f')][_0x2b5084('0x18cb')]=null;_0x54ec6a[_0x2b5084('0x1f80')]&&_0x54ec6a['notification'][_0x2b5084('0x1886')]();_0x163fde[_0x2b5084('0x26a1')]&&(_0x32d445()[_0x2b5084('0x1c43')](_0x163fde[_0x2b5084('0x988')],_0x54ec6a['id'])&&_0x159e59());_0x163fde[_0x2b5084('0x1034')]&&(_0x163fde['originateInProgress']=![]);_0x32d445()['remove'](this['sessions'],{'id':_0x54ec6a['id']});_0x163fde[_0x2b5084('0x1bfb')][_0x2b5084('0x25ae')]!==0x2&&(_0x163fde[_0x2b5084('0x1c64')]=![]);if(_0x163fde['isJabraEnabled']){if(_0x163fde[_0x2b5084('0x1bfb')][_0x2b5084('0x25ae')]===0x0)_0x54ec6a[_0x2b5084('0x2598')]&&_0x316994[_0x2b5084('0x1d14')](),_0x316994[_0x2b5084('0x271f')](),_0x163fde[_0x2b5084('0xe8a')]=null;else{var _0x54833d=_0x32d445()['last'](_0x163fde['sessions']);_0x54833d[_0x2b5084('0x2598')]?(_0x316994[_0x2b5084('0x271f')](),_0x316994[_0x2b5084('0x1afb')](),_0x163fde[_0x2b5084('0xe8a')]=_0x54833d):_0x316994['offHook']();}}}function _0x315eef(_0x1bc42b,_0x31660e){var _0x1b36d6=_0x28537d;console['debug']('onIcecandidate\x20->\x20session,\x20data',_0x1bc42b,_0x31660e),_0x1bc42b[_0x1b36d6('0x1bc7')]!==null&&clearTimeout(_0x1bc42b[_0x1b36d6('0x1bc7')]),_0x1bc42b[_0x1b36d6('0x1bc7')]=setTimeout(_0x31660e[_0x1b36d6('0x1e2d')],0x1*0x3e8);}function _0x5605c8(){var _0x54e5c8=_0x28537d;_0x163fde[_0x54e5c8('0xb1')]=![];}function _0x33c424(_0x4ac48c,_0x3ad273){var _0x2f3527=_0x28537d,_0xb3a630=_0x4ac48c;!_0x163fde[_0x2f3527('0xe0b')]&&(_0x163fde['target']='');_0x3ad273&&(_0x163fde['target']+=_0x4ac48c,_0x188329[_0x2f3527('0xa98')](_0x2f3527('0x14db'),_0x2f3527('0xd44'),_0x163fde[_0x2f3527('0xe0b')]));switch(_0x4ac48c){case'*':_0xb3a630=_0x2f3527('0x218b');break;case'#':_0xb3a630=_0x2f3527('0x1ac9');break;default:}_0x163fde[_0x2f3527('0x2808')][_0x2f3527('0x1355')]&&(_0x163fde['soundPlayer']['setAttribute']('src',_0x2f3527('0x91e')+_0xb3a630+'.ogg'),_0x163fde[_0x2f3527('0x25f')][_0x2f3527('0x1d0b')]()['catch'](function(_0x662bb5){var _0x578f61=_0x2f3527;console[_0x578f61('0x1fe9')](_0x662bb5['message']);}));for(var _0x74af4b=0x0;_0x74af4b<_0x163fde[_0x2f3527('0x1bfb')][_0x2f3527('0x25ae')];_0x74af4b+=0x1){_0x163fde[_0x2f3527('0x1bfb')][_0x74af4b][_0x2f3527('0x1e79')]()&&!_0x163fde['sessions'][_0x74af4b]['isOnHold']()[_0x2f3527('0x1a8')]&&_0x163fde[_0x2f3527('0x1bfb')][_0x74af4b][_0x2f3527('0x12f8')](_0x4ac48c);}}function _0x5ee63a(_0x5791d9,_0x13a6ce){var _0x399a7a=_0x28537d;switch(_0x5791d9){case'ringing':_0x163fde[_0x399a7a('0x25f')][_0x399a7a('0x306')]=_0x163fde[_0x399a7a('0x2808')][_0x399a7a('0x1347')];_0x163fde[_0x399a7a('0x2808')]['ringingId']&&_0x163fde[_0x399a7a('0x25f')][_0x399a7a('0x1bd0')](_0x163fde['conf'][_0x399a7a('0x21bb')])['then'](function(){var _0xe819de=_0x399a7a;_0x163fde[_0xe819de('0x25f')][_0xe819de('0x1be5')]=_0x163fde[_0xe819de('0x2808')][_0xe819de('0x1718')];})[_0x399a7a('0xe19')](function(){_0x13a6ce&&_0x456e29();})[_0x399a7a('0x223b')](function(_0x125bb3){var _0x40d2e6=_0x399a7a;console[_0x40d2e6('0x1e67')](_0x125bb3[_0x40d2e6('0x27e8')],_0x163fde[_0x40d2e6('0x2808')][_0x40d2e6('0x21bb')]);});break;case'speaker':_0x163fde[_0x399a7a('0x2238')][_0x399a7a('0x306')]=_0x163fde['conf'][_0x399a7a('0xc39')];_0x163fde['conf'][_0x399a7a('0x1011')]&&_0x163fde[_0x399a7a('0x2238')]['setSinkId'](_0x163fde['conf'][_0x399a7a('0x1011')])['then'](function(){var _0x3f5f23=_0x399a7a;_0x163fde['remotePlayer'][_0x3f5f23('0x1be5')]=_0x163fde[_0x3f5f23('0x2808')]['speakerVolume'];})[_0x399a7a('0xe19')](function(){_0x13a6ce&&_0x456e29();})[_0x399a7a('0x223b')](function(_0x544e2e){var _0x3b51ee=_0x399a7a;console[_0x3b51ee('0x1e67')](_0x544e2e[_0x3b51ee('0x27e8')],_0x163fde[_0x3b51ee('0x2808')][_0x3b51ee('0x1011')]);});break;case _0x399a7a('0x1ec7'):for(var _0x56334b=0x0;_0x56334b<_0x163fde[_0x399a7a('0x1bfb')]['length'];_0x56334b+=0x1){_0x163fde[_0x399a7a('0x2808')][_0x399a7a('0x209a')]?_0x163fde[_0x399a7a('0x1bfb')][_0x56334b]['mute']():_0x163fde[_0x399a7a('0x1bfb')][_0x56334b][_0x399a7a('0x432')]();}_0x316994&&_0x163fde[_0x399a7a('0x479')]&&(_0x163fde[_0x399a7a('0x2808')][_0x399a7a('0x209a')]?_0x316994[_0x399a7a('0x1cec')]():_0x316994[_0x399a7a('0x432')]());_0x13a6ce&&_0x456e29();break;default:console[_0x399a7a('0x1fe9')](_0x399a7a('0x4a6'));}}function _0x47c916(_0xf2eef7){var _0x227a94=_0x28537d;if(!_0xf2eef7)_0x291e09();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/['test'](_0xf2eef7)?(_0x163fde[_0x227a94('0xe0b')]=_0xf2eef7,_0x188329['$broadcast'](_0x227a94('0x14db'),_0x227a94('0xd44'),_0x163fde[_0x227a94('0xe0b')])):_0x163fde[_0x227a94('0xe0b')]?_0x188329[_0x227a94('0xa98')](_0x227a94('0x14db'),_0x227a94('0xd44'),_0x163fde[_0x227a94('0xe0b')]):_0x291e09();}function _0x291e09(){var _0x355940=_0x28537d;_0x163fde[_0x355940('0xe0b')]='',document[_0x355940('0x232')](_0x355940('0xc69'))[_0x355940('0xc3f')](),document[_0x355940('0x232')](_0x355940('0xc69'))['value']='',_0x188329['$broadcast'](_0x355940('0x22b7'),_0x355940('0xd44'));}function _0x423971(_0x408fc7){var _0x5a69af=_0x28537d;_0x408fc7&&(_0x163fde['target']=_0x408fc7[_0x5a69af('0x1684')]['target'],_0x163fde[_0x5a69af('0x20c4')](),_0x291e09());}function _0x4755a9(){var _0x30dfa0=_0x28537d;if(_0x163fde[_0x30dfa0('0xe0b')]&&_0x163fde[_0x30dfa0('0xe0b')]!==_0x163fde['conf'][_0x30dfa0('0x2623')]&&_0x163fde[_0x30dfa0('0xe0b')]!==_0x163fde[_0x30dfa0('0x2808')]['internal']){_0x163fde[_0x30dfa0('0x2808')][_0x30dfa0('0x173b')]?_0x163fde[_0x30dfa0('0xfc9')][_0x30dfa0('0x23de')][_0x30dfa0('0xea7')]={'deviceId':_0x163fde['conf'][_0x30dfa0('0x173b')]}:_0x163fde[_0x30dfa0('0xfc9')][_0x30dfa0('0x23de')][_0x30dfa0('0xea7')]=!![];var _0x342872=_0x163fde[_0x30dfa0('0xe0b')][_0x30dfa0('0x1b42')](/ /g,'');return _0x342872=_0x342872[_0x30dfa0('0x1b42')](/\(/g,''),_0x342872=_0x342872[_0x30dfa0('0x1b42')](/\)/g,''),_0x1b3096(_0x342872)[_0x30dfa0('0xe19')](function(_0x8a71d9){var _0x26edc8=_0x30dfa0;_0x8a71d9&&_0x163fde['ua'][_0x26edc8('0x20c4')](_0x8a71d9,_0x163fde[_0x26edc8('0xfc9')]);})[_0x30dfa0('0xe19')](function(){_0x291e09();});}}function _0x1b3096(_0x9eb758){var _0x579c6e=_0x28537d;return _0x5844b0[_0x579c6e('0x10c6')][_0x579c6e('0x71')]({'id':_0x163fde['conf']['id']})[_0x579c6e('0xe59')]['then'](function(_0x22bbe7){var _0x3239ea=_0x579c6e;if(_0x22bbe7['count'])return _0x430392[_0x3239ea('0x26b2')]({'controller':_0x3239ea('0x259d'),'controllerAs':'vm','templateUrl':_0x4bb99c,'parent':angular[_0x3239ea('0x24a1')](_0x9bf314[_0x3239ea('0x19b2')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x22bbe7,'required':_0x163fde[_0x3239ea('0x2808')][_0x3239ea('0x69c')]}});})[_0x579c6e('0xe19')](function(_0x103e7a){var _0x3d366a=_0x579c6e;if(!_0x163fde[_0x3d366a('0x2808')][_0x3d366a('0x69c')]){if(_0x103e7a&&_0x103e7a!==-0x1)return _0x103e7a+_0x9eb758;else{if(!_0x103e7a)return _0x9eb758;}}else{if(_0x103e7a&&_0x103e7a!==-0x1)return _0x103e7a+_0x9eb758;}});}function _0x2c70e2(_0x1bd03c){var _0x37e468=_0x28537d;switch(_0x1bd03c[_0x37e468('0x6e4')][_0x37e468('0x20dd')]()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x163fde[_0x37e468('0x62e')](_0x1bd03c[_0x37e468('0x6e4')]);break;case _0x37e468('0x244'):_0x163fde[_0x37e468('0x20c4')]();break;default:}}function _0x44862f(){var _0x4ac729=_0x28537d;_0x163fde['showDialpad']=!_0x163fde[_0x4ac729('0xb1')];}_0x9bf314[_0x28537d('0x235b')](_0x28537d('0x20c1'),function(_0xdf1b6b){var _0x47214b=_0x28537d;switch(_0xdf1b6b[_0x47214b('0xa47')]){case 0x1b:_0x1492cc(function(){_0x163fde['showDialpad']=![];});break;default:}});function _0x15ed49(){var _0x558600=_0x28537d;_0x163fde[_0x558600('0x26a1')]=!![],_0x163fde['canGoInConference']=![],_0x163fde[_0x558600('0x988')]['push'](_0x163fde[_0x558600('0x1bfb')][0x0]['id']),_0x163fde['currentConferenceSessions'][_0x558600('0xb76')](_0x163fde[_0x558600('0x1bfb')][0x1]['id']);var _0x1291b2=_0x163fde[_0x558600('0x1bfb')][0x0][_0x558600('0x589')][_0x558600('0x32b')]()[0x0],_0x372f62=_0x163fde[_0x558600('0x1bfb')][0x0][_0x558600('0x589')][_0x558600('0x22f3')]()[0x0];_0x372f62['track'][_0x558600('0x1370')](_0x558600('0x432'),function(){setTimeout(function(){_0x1a3e94();},0x3e8);},![]);var _0x2022ee=_0x163fde[_0x558600('0x1bfb')][0x1][_0x558600('0x589')][_0x558600('0x32b')]()[0x0],_0x14ee02=_0x163fde['sessions'][0x1][_0x558600('0x589')][_0x558600('0x22f3')]()[0x0];_0x14ee02[_0x558600('0x123c')][_0x558600('0x1370')](_0x558600('0x432'),function(){setTimeout(function(){_0x1a3e94();},0x3e8);},![]),_0x163fde[_0x558600('0x1bfb')][0x0]['unhold']({'useUpdate':![]}),_0x163fde[_0x558600('0x1bfb')][0x1]['unhold']({'useUpdate':![]}),_0x372f62[_0x558600('0x123c')][_0x558600('0x4ef')]=!![],_0x14ee02[_0x558600('0x123c')][_0x558600('0x4ef')]=!![];var _0xcd857b=new MediaStream(),_0x545e64=new AudioContext(),_0x19b074=_0x545e64[_0x558600('0x238')](),_0x5f3049=_0x545e64['createMediaStreamSource'](new MediaStream([_0x14ee02[_0x558600('0x123c')]]));_0x5f3049[_0x558600('0x19d9')](_0x19b074),_0x5f3049=_0x545e64['createMediaStreamSource'](new MediaStream([_0x1291b2[_0x558600('0x123c')]])),_0x5f3049[_0x558600('0x19d9')](_0x19b074),_0x1291b2[_0x558600('0xdb5')](_0x19b074['stream']['getTracks']()[0x0])['then'](function(){}),_0x19b074=_0x545e64[_0x558600('0x238')](),_0x5f3049=_0x545e64[_0x558600('0x452')](new MediaStream([_0x372f62[_0x558600('0x123c')]])),_0x5f3049['connect'](_0x19b074),_0x5f3049=_0x545e64[_0x558600('0x452')](new MediaStream([_0x2022ee[_0x558600('0x123c')]])),_0x5f3049[_0x558600('0x19d9')](_0x19b074),_0x2022ee['replaceTrack'](_0x19b074[_0x558600('0x200b')][_0x558600('0x1e66')]()[0x0])[_0x558600('0xe19')](function(){var _0x3c9e74=_0x558600;_0xcd857b[_0x3c9e74('0xb93')](_0x372f62[_0x3c9e74('0x123c')]),_0xcd857b['addTrack'](_0x14ee02[_0x3c9e74('0x123c')]);var _0x994919=document['getElementById'](_0x3c9e74('0x104e'));_0x994919[_0x3c9e74('0x68d')]=_0xcd857b;var _0x5d32bf=_0x994919[_0x3c9e74('0x1d0b')]();_0x5d32bf!==undefined&&_0x5d32bf['then'](function(){})[_0x3c9e74('0x223b')](function(_0x36fb2a){console['log'](_0x36fb2a);});});}function _0x1a3e94(){var _0x22912c=_0x28537d;if(_0x163fde[_0x22912c('0x26a1')]){var _0x189b9b=_0x163fde[_0x22912c('0x1bfb')][0x0][_0x22912c('0x589')][_0x22912c('0x22f3')]()[0x0],_0x23d9a1=_0x163fde[_0x22912c('0x1bfb')][0x1][_0x22912c('0x589')][_0x22912c('0x22f3')]()[0x0],_0x5349d9=new MediaStream();_0x5349d9[_0x22912c('0xb93')](_0x189b9b[_0x22912c('0x123c')]),_0x5349d9[_0x22912c('0xb93')](_0x23d9a1[_0x22912c('0x123c')]);var _0x5ecc80=document[_0x22912c('0x232')](_0x22912c('0x104e'));_0x5ecc80[_0x22912c('0x68d')]=_0x5349d9;var _0x42e235=_0x5ecc80[_0x22912c('0x1d0b')]();_0x42e235!==undefined&&_0x42e235[_0x22912c('0xe19')](function(){})[_0x22912c('0x223b')](function(_0x514dde){var _0x397cd3=_0x22912c;console[_0x397cd3('0x1fe9')](_0x514dde);});}}function _0x21f720(_0x2a94d0){var _0x3565b4=_0x28537d;console[_0x3565b4('0x167f')](_0x3565b4('0x13d9'),_0x2a94d0),_0x163fde[_0x3565b4('0x203')](_0x2a94d0);}function _0x79acfe(_0x1f3826){var _0x1dd80d=_0x28537d;console[_0x1dd80d('0x167f')](_0x1dd80d('0x2505'),_0x1f3826),_0x1f3826[_0x1dd80d('0x203')]({'useUpdate':![]}),_0x163fde[_0x1dd80d('0x2366')](_0x1f3826),_0x163fde['isJabraEnabled']&&(_0x316994[_0x1dd80d('0x18c8')](),_0x316994['resume']());}function _0x29df1f(_0x234a74){var _0x13dc44=_0x28537d;console['debug'](_0x13dc44('0x1919'),_0x234a74),_0x430392[_0x13dc44('0x26b2')]({'controller':_0x13dc44('0xb08'),'controllerAs':'vm','templateUrl':_0x588d5a,'parent':angular[_0x13dc44('0x24a1')](_0x9bf314[_0x13dc44('0x19b2')]),'clickOutsideToClose':!![],'locals':{'session':_0x234a74,'sessions':_0x163fde[_0x13dc44('0x1bfb')]}});}function _0x35ba77(_0x3c1da6){var _0x5a4995=_0x28537d;console[_0x5a4995('0x167f')](_0x5a4995('0x193e'),_0x3c1da6),_0x3c1da6[_0x5a4995('0x1afb')]({'useUpdate':![]}),_0x163fde[_0x5a4995('0x479')]&&(_0x316994[_0x5a4995('0x1afb')](),_0x316994['onHook']());}function _0x306495(_0x5e3b09){var _0x28f6b5=_0x28537d;console['debug'](_0x28f6b5('0x250d'),_0x5e3b09);var _0x4069a1=_0x430392['prompt']()[_0x28f6b5('0x13e4')](_0x28f6b5('0xdc5'))['textContent'](_0x28f6b5('0x4c5'))[_0x28f6b5('0x53e')](_0x28f6b5('0x1e46'))[_0x28f6b5('0x4d1')]('Target')['ok'](_0x28f6b5('0xdc5'))[_0x28f6b5('0x2c1')]('Cancel');_0x430392[_0x28f6b5('0x26b2')](_0x4069a1)[_0x28f6b5('0xe19')](function(_0x2a5892){return _0x1b3096(_0x2a5892);})[_0x28f6b5('0xe19')](function(_0x48e8b0){var _0xe018=_0x28f6b5;_0x5e3b09['refer'](_0x48e8b0,{'eventHandlers':{'requestSucceeded':_0xee8dc8(_0x5e3b09,_0xe018('0x131f'),'top\x20right',0xbb8),'requestFailed':_0xee8dc8(_0x5e3b09,_0xe018('0x1693'),_0xe018('0x319'),0xbb8)}});});}function _0xee8dc8(_0x18d9e9,_0x5f4174,_0x5d8fbe,_0x11a892){var _0x44e35c=_0x28537d;return console[_0x44e35c('0x167f')](_0x44e35c('0xd82'),_0x18d9e9,_0x5f4174,_0x5d8fbe,_0x11a892),function(){var _0x50204a=_0x44e35c;_0x98434f[_0x50204a('0x26b2')](_0x98434f[_0x50204a('0x918')]()[_0x50204a('0x2719')](_0x5f4174)[_0x50204a('0x1c0b')](_0x5d8fbe)[_0x50204a('0x133')](_0x11a892)),_0x48c165(_0x18d9e9);};}function _0x263312(_0x12fcfe){var _0x4ffa2f=_0x28537d;console['debug'](_0x4ffa2f('0x2025'),_0x12fcfe),_0x430392[_0x4ffa2f('0x26b2')]({'controller':_0x4ffa2f('0x23f0'),'controllerAs':'vm','templateUrl':_0x4bc169,'parent':angular[_0x4ffa2f('0x24a1')](_0x9bf314[_0x4ffa2f('0x19b2')]),'clickOutsideToClose':!![],'locals':{'session':_0x12fcfe,'sessions':_0x32d445()[_0x4ffa2f('0x1337')](_0x163fde[_0x4ffa2f('0x1bfb')],{'id':_0x12fcfe['id']}),'isJabraEnabled':_0x163fde['isJabraEnabled']}});}function _0x340a4a(_0x1ccf1e){var _0x467de9=_0x28537d;console[_0x467de9('0x167f')](_0x467de9('0x216d'),_0x1ccf1e);if(_0x163fde[_0x467de9('0x1bfb')][_0x467de9('0x25ae')]>0x1)for(var _0x4120b6=0x0;_0x4120b6<_0x163fde[_0x467de9('0x1bfb')][_0x467de9('0x25ae')];_0x4120b6+=0x1){_0x163fde[_0x467de9('0x1bfb')][_0x4120b6]['id']!==_0x1ccf1e['id']&&!_0x163fde[_0x467de9('0x1bfb')][_0x4120b6][_0x467de9('0xa32')]()[_0x467de9('0x21bc')]&&_0x163fde[_0x467de9('0x1bfb')][_0x4120b6][_0x467de9('0x1afb')]({'useUpdate':![]});}}function _0x59406f(_0x416587){var _0x4bd29c=_0x28537d;_0x430392['show']({'controller':_0x4bd29c('0xd28'),'controllerAs':'vm','templateUrl':_0x5901ea,'parent':angular[_0x4bd29c('0x24a1')](_0x9bf314[_0x4bd29c('0x19b2')]),'targetEvent':_0x416587,'clickOutsideToClose':!![],'resolve':{'devices':function _0x887fc6(){var _0x29629a=_0x4bd29c;return navigator[_0x29629a('0xbed')][_0x29629a('0x9b7')]();}},'locals':{'conf':_0x163fde[_0x4bd29c('0x2808')]}})['then'](function(_0xfa3126){var _0x2b5705=_0x4bd29c;_0xfa3126&&(_0x163fde['conf']=_0xfa3126,!_0x163fde['initDeviceInProgress']&&(_0x163fde[_0x2b5705('0x133b')]=!![],_0x316994&&_0x163fde[_0x2b5705('0x984')]?_0x316994[_0x2b5705('0x2567')]()[_0x2b5705('0xe19')](function(){var _0x5c3542=_0x2b5705;_0x163fde[_0x5c3542('0x984')]=![],_0x163fde[_0x5c3542('0x479')]=![],_0x509499(![]);})['catch'](function(_0x3583be){var _0x3edcaf=_0x2b5705;console['error'](_0x3edcaf('0x11c2'),_0x3583be);}):_0x509499(![])));});}function _0x32f181(){var _0x6bf2ea=_0x28537d;_0x163fde['ua'][_0x6bf2ea('0x25f2')](),_0x316994&&_0x163fde[_0x6bf2ea('0x984')]&&_0x316994[_0x6bf2ea('0x2567')](),navigator['mediaDevices']['ondevicechange']=function(){};}function _0xeb1eb7(_0x27977c,_0x3f6b23){var _0x30a6b1=_0x28537d;console[_0x30a6b1('0x167f')](_0x30a6b1('0x1198'),_0x27977c,_0x3f6b23),_0x3f6b23[_0x30a6b1('0xe0b')]&&(_0x163fde['target']=_0x3f6b23['target'],_0x163fde['call']());}function _0x4d617e(_0x576903,_0x2b3323){var _0x16199d=_0x28537d;console['debug'](_0x16199d('0x45c'),_0x576903,_0x2b3323);if(_0x2b3323[_0x16199d('0xe0b')]){var _0x516719=function _0x25a3b1(_0x4e59be){var _0xa7c1db=_0x16199d;if(_0x163fde[_0xa7c1db('0x1bfb')][_0x4e59be]['isEstablished']()&&!_0x163fde[_0xa7c1db('0x1bfb')][_0x4e59be][_0xa7c1db('0xa32')]()[_0xa7c1db('0x1a8')])return{'v':_0x1b3096(_0x2b3323[_0xa7c1db('0xe0b')])[_0xa7c1db('0xe19')](function(_0x4c6ece){var _0x4249c6=_0xa7c1db;_0x4c6ece&&_0x163fde[_0x4249c6('0x1bfb')][_0x4e59be][_0x4249c6('0x18e2')](_0x4c6ece,{'eventHandlers':{'requestSucceeded':_0xee8dc8(_0x163fde[_0x4249c6('0x1bfb')][_0x4e59be],_0x4249c6('0x131f'),_0x4249c6('0x319'),0xbb8),'requestFailed':_0xee8dc8(_0x163fde[_0x4249c6('0x1bfb')][_0x4e59be],'requestFailed',_0x4249c6('0x319'),0xbb8)}});})};};for(var _0x529681=0x0;_0x529681<_0x163fde[_0x16199d('0x1bfb')][_0x16199d('0x25ae')];_0x529681+=0x1){var _0x10b69b=_0x516719(_0x529681);if(_0x3e75c9(_0x10b69b)===_0x16199d('0x1132'))return _0x10b69b['v'];}}}function _0x5186ee(){return new Promise(function(_0x3861d0){var _0xd3216d=a0_0x5325,_0x3b028c=null;for(var _0x123b67=0x0;_0x123b67<_0x163fde['sessions'][_0xd3216d('0x25ae')];_0x123b67++){!_0x32d445()['has'](_0x163fde[_0xd3216d('0x1bfb')][_0x123b67],_0xd3216d('0x2598'))?_0x3b028c=_0x163fde[_0xd3216d('0x1bfb')][_0x123b67]:!_0x163fde[_0xd3216d('0x1bfb')][_0x123b67][_0xd3216d('0x2598')]&&(_0x3b028c=_0x163fde[_0xd3216d('0x1bfb')][_0x123b67]);}_0x3861d0(_0x3b028c);});}function _0x82df1c(_0x204ac7){var _0x12e7cf=_0x28537d;console[_0x12e7cf('0x167f')](_0x12e7cf('0x1e8b'),_0x204ac7);var _0x580a48=_0x204ac7[_0x12e7cf('0x1db4')],_0x13e2ba=_0x204ac7[_0x12e7cf('0x1b6f')],_0x1edd6e=_0x204ac7[_0x12e7cf('0x1f36')];_0x163fde[_0x12e7cf('0x2808')][_0x12e7cf('0x173b')]?_0x163fde['sessionConf']['mediaConstraints']['audio']={'deviceId':_0x163fde['conf']['microphoneId']}:_0x163fde['sessionConf'][_0x12e7cf('0x23de')]['audio']=!![];var _0x5f5d77=_0x580a48[_0x12e7cf('0x1b42')](/ /g,'');_0x5f5d77=_0x5f5d77[_0x12e7cf('0x1b42')](/\(/g,''),_0x5f5d77=_0x5f5d77[_0x12e7cf('0x1b42')](/\)/g,'');if(_0x5f5d77){var _0x39f745=angular[_0x12e7cf('0x89')](_0x163fde[_0x12e7cf('0xfc9')]);_0x39f745['extraHeaders']=[],_0x13e2ba&&_0x39f745['extraHeaders'][_0x12e7cf('0xb76')](_0x12e7cf('0x154e')+_0x13e2ba),_0x1edd6e&&_0x39f745[_0x12e7cf('0x24f7')]['push'](_0x12e7cf('0x22f2')+_0x1edd6e),_0x163fde[_0x12e7cf('0x1034')]=!![],_0x163fde['ua'][_0x12e7cf('0x20c4')](_0x5f5d77,_0x39f745);}}function _0x536d53(_0x18c73f){var _0x3ee386=_0x28537d;console[_0x3ee386('0x167f')]('hangupHook\x20->\x20payload',_0x18c73f);var _0x19ccb0=_0x163fde[_0x3ee386('0x1bfb')];if(_0x18c73f['sessionId']){_0x19ccb0=[];var _0x53c4ab=_0x18c73f[_0x3ee386('0x157e')];_0x19ccb0[_0x3ee386('0xb76')](_0x18566f(_0x18c73f[_0x3ee386('0x157e')]));if(_0x19ccb0['length']==0x0){console[_0x3ee386('0x14a7')](_0x3ee386('0xc16')+_0x53c4ab+_0x3ee386('0x1d02'));return;}}for(var _0x3a143f=0x0;_0x3a143f<_0x19ccb0['length'];_0x3a143f++){var _0xef5fc=_0x19ccb0[_0x3a143f];console['log'](_0x3ee386('0x533'),_0xef5fc),_0x163fde[_0x3ee386('0x2290')](_0xef5fc);}}function _0x45c2b8(_0xe62d6b){var _0x34a9d2=_0x28537d;console[_0x34a9d2('0x167f')](_0x34a9d2('0x1579'),_0xe62d6b);var _0x103ce2=_0x552f11();if(_0xe62d6b[_0x34a9d2('0x157e')]){var _0x50ed70=_0xe62d6b[_0x34a9d2('0x157e')],_0x366ce0=_0x18566f(_0xe62d6b['sessionId']);if(!_0x366ce0){console[_0x34a9d2('0x14a7')](_0x34a9d2('0xc16')+_0x50ed70+'\x20not\x20found');return;}_0x103ce2=[_0x366ce0];}for(var _0x23d20c=0x0;_0x23d20c<_0x103ce2[_0x34a9d2('0x25ae')];_0x23d20c++){var _0x417a84=_0x103ce2[_0x23d20c];_0x163fde[_0x34a9d2('0x62d')](_0x417a84);}}function _0x552f11(){var _0x2e36e0=_0x28537d,_0x3c31f2=_0x32d445()[_0x2e36e0('0xf15')](_0x163fde[_0x2e36e0('0x1bfb')],function(_0x55bb75){var _0x48ba58=_0x2e36e0;return _0x55bb75[_0x48ba58('0x15f8')]&&!_0x55bb75['confirmed'];});return _0x3c31f2;}function _0x32dd4b(_0x190e1f){var _0x5a707f=_0x28537d;console['debug'](_0x5a707f('0x4ce'),_0x190e1f);var _0x45f384=_0x163fde['sessions'];if(_0x190e1f[_0x5a707f('0x157e')]){_0x45f384=[],_0x45f384[_0x5a707f('0xb76')](_0x18566f(_0x190e1f[_0x5a707f('0x157e')]));var _0x18c7e8=_0x190e1f[_0x5a707f('0x157e')];if(_0x45f384[_0x5a707f('0x25ae')]==0x0){console[_0x5a707f('0x14a7')](_0x5a707f('0xc16')+_0x18c7e8+_0x5a707f('0x1d02'));return;}}for(var _0x6ac43d=0x0;_0x6ac43d<_0x45f384[_0x5a707f('0x25ae')];_0x6ac43d++){var _0x57595a=_0x45f384[_0x6ac43d];_0x163fde[_0x5a707f('0x1afb')](_0x57595a);}}function _0x41a113(_0x3f6f93){var _0x55eb06=_0x28537d;console[_0x55eb06('0x167f')](_0x55eb06('0x4ce'),_0x3f6f93);if(!_0x3f6f93['sessionId']){console[_0x55eb06('0x8c8')]('sessionId\x20required');return;}var _0x447ebf=_0x18566f(_0x3f6f93['sessionId']);if(!_0x447ebf){var _0x5f4b44=_0x3f6f93['sessionId'];console[_0x55eb06('0x14a7')](_0x55eb06('0xc16')+_0x5f4b44+_0x55eb06('0x1d02'));return;}_0x163fde[_0x55eb06('0x203')](_0x447ebf);}function _0x235855(_0x30205e){var _0x219ef1=_0x28537d;console[_0x219ef1('0x167f')]('transferHook\x20->\x20payload',_0x30205e);if(!_0x30205e['sessionId']){console[_0x219ef1('0x8c8')](_0x219ef1('0x15ef'));return;}if(!_0x30205e[_0x219ef1('0xd4f')]){console['error'](_0x219ef1('0x408'));return;}var _0x1ed369=_0x18566f(_0x30205e[_0x219ef1('0x157e')]);if(!_0x1ed369){var _0x3f8155=_0x30205e[_0x219ef1('0x157e')];console[_0x219ef1('0x14a7')]('call\x20with\x20session\x20Id\x20'+_0x3f8155+_0x219ef1('0x1d02'));return;}_0x1ed369[_0x219ef1('0x18e2')](_0x30205e[_0x219ef1('0xd4f')],{'eventHandlers':{'requestSucceeded':_0xee8dc8(_0x1ed369,_0x219ef1('0x131f'),_0x219ef1('0x319'),0xbb8),'requestFailed':_0xee8dc8(_0x1ed369,'requestFailed',_0x219ef1('0x319'),0xbb8)}});}function _0x18566f(_0x19ea13){var _0x508233=_0x28537d;console[_0x508233('0x167f')](_0x508233('0x304'),_0x19ea13,_0x163fde['sessions']);var _0x516442=_0x32d445()['find'](_0x163fde['sessions'],function(_0x2a81e1){var _0x5333c4=_0x508233;return _0x2a81e1[_0x5333c4('0x18d5')]==_0x19ea13;});return _0x516442;}function _0x2bafdf(_0x57d682,_0x53c1b8){var _0x2797fa=_0x28537d;return console['debug'](_0x2797fa('0x1839'),_0x57d682,_0x53c1b8),_0x55665e({'url':_0x57d682,'method':'GET','params':_0x53c1b8});}function _0x3b5c12(_0x279144,_0x22312d,_0x493bf4){var _0x406e27=_0x28537d,_0x370368=_0x32d445()[_0x406e27('0xf15')](_0x279144,function(_0x155cae){var _0x44ccd0=_0x406e27;return _0x32d445()[_0x44ccd0('0x20b6')](_0x155cae,_0x22312d);});if(_0x370368)return _0x32d445()[_0x406e27('0x26b4')](_0x370368[_0x406e27('0x1b42')](_0x22312d,'')[_0x406e27('0x1b42')](_0x493bf4||':',''));return![];}_0x163fde['$onInit']=_0x35f39d['bind'](this),_0x163fde['type']=_0x33c424,_0x163fde['call']=_0x4755a9,_0x163fde[_0x28537d('0x1afb')]=_0x35ba77,_0x163fde[_0x28537d('0x18e2')]=_0x306495,_0x163fde[_0x28537d('0x27ef')]=_0x29df1f,_0x163fde[_0x28537d('0x203')]=_0x79acfe,_0x163fde[_0x28537d('0x62d')]=_0x77e3bf,_0x163fde['terminate']=_0x48c165,_0x163fde['selectSession']=_0x21f720,_0x163fde[_0x28537d('0x1811')]=_0x2c70e2,_0x163fde['toggleDialpad']=_0x44862f,_0x163fde[_0x28537d('0x1587')]=_0x263312,_0x163fde[_0x28537d('0xf5')]=_0x5605c8,_0x163fde[_0x28537d('0xd1f')]=_0x5ee63a,_0x163fde[_0x28537d('0x2366')]=_0x340a4a,_0x163fde[_0x28537d('0x174a')]=_0x47c916,_0x163fde[_0x28537d('0x1940')]=_0x423971,_0x163fde[_0x28537d('0x25d2')]=_0x15ed49,_0x163fde[_0x28537d('0x2074')]=_0x1a3e94,_0x188329['$on'](_0x28537d('0x144'),_0x59406f),_0x188329['$on'](_0x28537d('0x2003'),_0x32f181),_0x188329['$on']('webrtc::call',_0xeb1eb7),_0x188329[_0x28537d('0xb2b')](_0x28537d('0xdd9'),_0x4d617e),_0x188329[_0x28537d('0xb2b')]('$destroy',function(){var _0x573bff=_0x28537d;console[_0x573bff('0x167f')]('$destroy\x20event\x20fired'),_0x3b930a[_0x573bff('0x2121')](_0x573bff('0xd18')),_0x3b930a[_0x573bff('0x2121')](_0x573bff('0x285f')),_0x3b930a[_0x573bff('0x2121')](_0x573bff('0x214b')),_0x3b930a[_0x573bff('0x2121')](_0x573bff('0x13c6')),_0x3b930a[_0x573bff('0x2121')](_0x573bff('0x8e6')),_0x3b930a['removeAllListeners'](_0x573bff('0x26cd'));});}function _0x2cb546(){var _0x2c71f4=_0xb635d2;return{'restrict':'E','scope':{'conf':'='},'require':_0x2c71f4('0x1c5c'),'controller':'MsPhonebarController','controllerAs':'vm_pb','bindToController':!![],'templateUrl':_0x2ab6df};}_0x46dbf9[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0xf3c'),_0xb635d2('0x2378')];function _0x46dbf9(_0x138a46,_0xe274d0,_0x32b340){var _0xe4bc8f=_0xb635d2,_0x24491f=this;function _0x34003b(){var _0x16e1ae=a0_0x5325;_0x138a46[_0x16e1ae('0x11ed')](_0x24491f['prefix']);}function _0x59ff01(_0x441b8d){var _0x19b3ac=a0_0x5325;_0x138a46[_0x19b3ac('0x11ed')](_0x441b8d);}_0x24491f[_0xe4bc8f('0xf3c')]=_0xe274d0,_0x24491f[_0xe4bc8f('0x2378')]=_0x32b340,_0x24491f[_0xe4bc8f('0x2584')]=_0x59ff01,_0x24491f[_0xe4bc8f('0x20c4')]=_0x34003b;}const _0x5576d0=_0x46dbf9;_0x2e60cd[_0xb635d2('0xb0c')]=['$mdDialog','$q','api',_0xb635d2('0x1bfb'),_0xb635d2('0x2330')],_0x41e251[_0xb635d2('0xb0c')]=['$timeout'];function _0x41e251(_0x33d842){var _0x144b36=_0xb635d2;return{'restrict':'C','controller':[_0x144b36('0x63c'),_0x144b36('0x1abd'),function _0x51be6f(_0x13882a,_0x31d07a){function _0x28a2b8(){var _0x40522e=a0_0x5325;_0x31d07a[_0x40522e('0x25b3')](_0x40522e('0x7ae'),_0x40522e('0xe16')),_0x33d842(_0x30a6c4,0x3e8);}function _0x30a6c4(){var _0x1168d5=a0_0x5325;_0x31d07a[_0x1168d5('0x25b3')](_0x1168d5('0x7ae'),'none'),_0x33d842(_0x28a2b8,0x3e8);}_0x28a2b8();}],'replace':!![]};}function _0x2e60cd(_0x7dfb16,_0x13c802,_0x43e208,_0x348aed,_0x4222bf){var _0x269632=_0xb635d2,_0x5ba9cd=this;_0x5ba9cd['title']=_0x269632('0xd5b'),_0x5ba9cd['sessions']=_0x348aed,_0x5ba9cd[_0x269632('0x2330')]=_0x4222bf,_0x5ba9cd[_0x269632('0x2584')]=_0x268ab2,_0x5ba9cd[_0x269632('0x285c')]=_0x3a7481,_0x5ba9cd['stop']=_0x275955,_0x5ba9cd['start']=_0x26ac0e;function _0x3aad98(){function _0x445045(){return Math['floor']((0x1+Math['random']())*0x10000)['toString'](0x10)['substring'](0x1);}return _0x445045()+_0x445045()+'-'+_0x445045()+'-'+_0x445045()+'-'+_0x445045()+'-'+_0x445045()+_0x445045()+_0x445045();}function _0x26ac0e(_0x380f2,_0xf6aa59){var _0x33f083=_0x269632;console['log'](_0x33f083('0x49b'));var _0xcab051=_0x13c802[_0x33f083('0x178')](),_0x5d4a9d=_0xf6aa59||_0x380f2[_0x33f083('0x248')][_0x33f083('0x1b42')](/^.*[\\/]/,''),_0x4959a3=_0x5d4a9d[_0x33f083('0x1745')]('.')[0x0];return _0x43e208[_0x33f083('0x21e1')][_0x33f083('0x49b')]({'uniqueid':_0x5ba9cd['session'][_0x33f083('0x1a6c')],'filename':_0x4959a3,'format':_0x33f083('0x14d7')})[_0x33f083('0xe59')][_0x33f083('0xe19')](function(_0x53cdad){var _0x5a6311=_0x33f083;_0x380f2[_0x5a6311('0x248')]=_0x4959a3+_0x5a6311('0x14e9'),_0x380f2[_0x5a6311('0x2d4')]=_0x53cdad[_0x5a6311('0x2d4')],_0x380f2[_0x5a6311('0x2833')]=_0x5a6311('0x7e7'),_0x5ba9cd[_0x5a6311('0x2330')][_0x5a6311('0x21b0')]=!![],_0xcab051['resolve'](_0x380f2);})[_0x33f083('0x223b')](function(_0x39a823){var _0x1fdc60=_0x33f083;_0xcab051[_0x1fdc60('0x1337')](_0x39a823);}),_0xcab051[_0x33f083('0x9c8')];}function _0x275955(_0x3f2c63){var _0x8dbd56=_0x269632;return console[_0x8dbd56('0x1fe9')](_0x8dbd56('0x224e')),_0x43e208[_0x8dbd56('0x21e1')][_0x8dbd56('0x224e')]({'uniqueid':_0x5ba9cd['session'][_0x8dbd56('0x1a6c')],'mixmonitorid':_0x3f2c63[_0x8dbd56('0x2d4')]})['$promise'][_0x8dbd56('0xe19')](function(){var _0x4af4a5=_0x8dbd56;_0x3f2c63[_0x4af4a5('0x2833')]='pause',_0x5ba9cd['session'][_0x4af4a5('0x21b0')]=_0x32d445()[_0x4af4a5('0x1c43')](_0x5ba9cd[_0x4af4a5('0x2330')][_0x4af4a5('0xd21')],{'status':_0x4af4a5('0x7e7')});})[_0x8dbd56('0x223b')](function(_0x41a7a0){var _0x5acd8d=_0x8dbd56;console[_0x5acd8d('0x8c8')](_0x41a7a0);});}function _0x3a7481(){var _0x2b35b7=_0x269632,_0xd95800=_0x7dfb16[_0x2b35b7('0x68f')]({'skipHide':!![]})[_0x2b35b7('0x13e4')](_0x2b35b7('0x2599'))['textContent'](_0x2b35b7('0x665'))[_0x2b35b7('0x53e')](_0x2b35b7('0x7ea'))['ariaLabel'](_0x2b35b7('0x7ea'))[_0x2b35b7('0x528')](_0x3aad98())['ok']('Start')[_0x2b35b7('0x2c1')](_0x2b35b7('0x8a3'));_0x7dfb16['show'](_0xd95800)['then'](function(_0x31257c){return _0x26ac0e({},_0x31257c);})[_0x2b35b7('0xe19')](function(_0x548052){var _0x2f5571=_0x2b35b7;_0x5ba9cd[_0x2f5571('0x2330')][_0x2f5571('0xd21')][_0x2f5571('0xb76')](_0x548052);});}function _0x268ab2(){var _0x1ad1ee=_0x269632;_0x7dfb16[_0x1ad1ee('0x11ed')]();}}_0x3196f4['$inject']=['$mdDialog',_0xb635d2('0x1e23'),_0xb635d2('0x1bfb'),_0xb635d2('0x2330'),_0xb635d2('0x479')];function _0x3196f4(_0x2e223b,_0x1c849f,_0x868796,_0x586558,_0x2fbac9){var _0x1e60b3=_0xb635d2,_0xdfa251=this,_0x50e903=window[_0x1e60b3('0x156d')];_0xdfa251[_0x1e60b3('0x13e4')]='Refer\x20Attended',_0xdfa251[_0x1e60b3('0x1bfb')]=_0x868796,_0xdfa251[_0x1e60b3('0x2330')]=_0x586558,_0xdfa251['isJabraEnabled']=_0x2fbac9,_0xdfa251[_0x1e60b3('0xe3c')]=null;_0x868796[_0x1e60b3('0x25ae')]&&(_0xdfa251['target']=_0x868796[0x0][_0x1e60b3('0x10c6')]);_0xdfa251[_0x1e60b3('0x2584')]=_0x22284c,_0xdfa251[_0x1e60b3('0xf1b')]=_0x2cc380;function _0x2cc380(){var _0x4dafb0=_0x1e60b3,_0x6ca3e6,_0x5c13c8,_0x5e2fac=_0x32d445()['find'](_0x868796,function(_0x1a6bd1){var _0x110f09=a0_0x5325;if(_0x1a6bd1[_0x110f09('0x10c6')]===_0xdfa251[_0x110f09('0xe0b')])return _0x1a6bd1;});_0x5e2fac[_0x4dafb0('0x72e')]?(_0x6ca3e6=_0x5e2fac,_0x5c13c8=_0xdfa251[_0x4dafb0('0x2330')]):(_0x6ca3e6=_0xdfa251[_0x4dafb0('0x2330')],_0x5c13c8=_0x5e2fac),_0x5c13c8[_0x4dafb0('0x18e2')](_0x6ca3e6['user'],{'replaces':_0x6ca3e6,'eventHandlers':{'requestSucceeded':_0x4b678f(_0x586558,'requestSucceeded','top\x20right',0xbb8,_0xdfa251[_0x4dafb0('0x479')]),'requestFailed':_0x4b678f(_0x586558,_0x4dafb0('0x1693'),_0x4dafb0('0x319'),0xbb8,_0xdfa251['isJabraEnabled'])}});}function _0x4b678f(_0x58eafe,_0x4ca2fd,_0x22852e,_0x58b42c,_0x4cc1d3){var _0xd5e112=_0x1e60b3;return console[_0xd5e112('0x167f')]('onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay',_0x58eafe,_0x4ca2fd,_0x22852e,_0x58b42c),function(){var _0x5914ec=_0xd5e112;_0x1c849f[_0x5914ec('0x26b2')](_0x1c849f['simple']()['textContent'](_0x4ca2fd)['position'](_0x22852e)[_0x5914ec('0x133')](_0x58b42c)),_0x58eafe[_0x5914ec('0x2290')](),_0x50e903&&_0x4cc1d3&&_0x50e903[_0x5914ec('0x271f')](),_0x22284c();};}function _0x22284c(_0x36859b){_0x2e223b['hide'](_0x36859b);}}const _0x52ff60=_0x3196f4;_0x217c0f[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'conf',_0xb635d2('0xbdf')];function _0x217c0f(_0x238a0d,_0x179ac0,_0x17d8a0){var _0x1af958=_0xb635d2,_0x1c7758=this;_0x32d445()['remove'](_0x17d8a0,function(_0x1c8be5){var _0x1a84ac=a0_0x5325;return _0x1c8be5[_0x1a84ac('0x1c5d')]===_0x1a84ac('0x1436')&&(_0x1c8be5['deviceId']===_0x1a84ac('0x206')||_0x1c8be5['deviceId']===_0x1a84ac('0x27d3'))||_0x1c8be5[_0x1a84ac('0x1c5d')]===_0x1a84ac('0x2109')&&(_0x1c8be5['deviceId']===_0x1a84ac('0x206')||_0x1c8be5[_0x1a84ac('0x150')]===_0x1a84ac('0x27d3'));}),_0x179ac0[_0x1af958('0x21bb')]=_0x41fd69(_0x17d8a0,'audiooutput',_0x1af958('0x21bb')),_0x179ac0[_0x1af958('0x1011')]=_0x41fd69(_0x17d8a0,_0x1af958('0x2109'),_0x1af958('0x1011')),_0x179ac0['microphoneId']=_0x41fd69(_0x17d8a0,'audioinput',_0x1af958('0x173b')),_0x179ac0[_0x1af958('0x1718')]=_0x179ac0[_0x1af958('0x1718')]||0.5,_0x179ac0['speakerVolume']=_0x179ac0[_0x1af958('0x1ce0')]||0.5,_0x179ac0['microphoneVolume']=_0x179ac0[_0x1af958('0x14c4')]||0x1,_0x179ac0['ringingMute']=_0x179ac0[_0x1af958('0x1347')]||![],_0x179ac0[_0x1af958('0xc39')]=_0x179ac0[_0x1af958('0xc39')]||![],_0x179ac0[_0x1af958('0x209a')]=_0x179ac0['microphoneMute']||![],_0x1c7758[_0x1af958('0x2808')]=angular['copy'](_0x179ac0),_0x1c7758[_0x1af958('0xbdf')]=_0x17d8a0,_0x1c7758[_0x1af958('0x91a')]=_0x5a9e39,_0x1c7758[_0x1af958('0x2584')]=_0x5f26c3,_0x1c7758[_0x1af958('0x277d')]=_0x439d34;function _0x439d34(){var _0x37768e=_0x1af958;return _0x1c7758[_0x37768e('0x2808')][_0x37768e('0x188e')]['toLowerCase']()===_0x37768e('0x28b')||_0x1c7758[_0x37768e('0x2808')][_0x37768e('0x188e')]['toLowerCase']()===_0x37768e('0x263d')||_0x1c7758[_0x37768e('0x2808')][_0x37768e('0x188e')][_0x37768e('0x20dd')]()===_0x37768e('0xd29');}function _0x41fd69(_0x198094,_0x43a4f0,_0x5495dd){var _0x5ec6f3=_0x1af958,_0xa37226;if(!_0x179ac0[_0x5495dd])_0xa37226=_0x32d445()['find'](_0x198094,function(_0x35fd76){var _0x28b1a0=a0_0x5325;return _0x35fd76[_0x28b1a0('0x1c5d')]===_0x43a4f0;}),_0xa37226&&(_0x179ac0[_0x5495dd]=_0xa37226[_0x5ec6f3('0x150')]);else{_0xa37226=_0x32d445()[_0x5ec6f3('0xf15')](_0x198094,function(_0x5d6932){var _0xab92d9=_0x5ec6f3;return _0x5d6932[_0xab92d9('0x150')]===_0x179ac0[_0x5495dd];});if(_0xa37226)return _0xa37226[_0x5ec6f3('0x150')];var _0x2b62e9=_0x32d445()[_0x5ec6f3('0x8d3')](_0x198094,function(_0x19f221){var _0x46c5ed=_0x5ec6f3;return _0x19f221[_0x46c5ed('0x1c5d')]===_0x43a4f0;});if(_0x2b62e9>=0x0)return _0x198094[_0x2b62e9][_0x5ec6f3('0x150')];}return _0x179ac0[_0x5495dd]||null;}function _0x5a9e39(){var _0xec9aa7=_0x1af958;_0x238a0d[_0xec9aa7('0x11ed')](_0x1c7758[_0xec9aa7('0x2808')]);}function _0x5f26c3(){var _0x1f156d=_0x1af958;_0x238a0d[_0x1f156d('0x11ed')]();}}const _0x34de0f=_0x217c0f,_0x4159bd=_0x59426a['p']+_0xb635d2('0x752');_0x5e0981[_0xb635d2('0xb0c')]=['$filter',_0xb635d2('0x1e21')],_0x8988f3[_0xb635d2('0xb0c')]=[_0xb635d2('0x1b1c'),_0xb635d2('0x1c8b')];function _0x41dc81(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x8988f3,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x4159bd};}function _0x8988f3(_0x19f4e2,_0x1c1d9c){var _0x2e8f91=_0xb635d2,_0x3eefe4=this;_0x3eefe4[_0x2e8f91('0x2898')]={},_0x3eefe4[_0x2e8f91('0xeb1')]={},_0x3eefe4[_0x2e8f91('0xfd6')]=_0x19f4e2[_0x2e8f91('0xfd6')],_0x3eefe4['onMultiselectInit']=_0x5b79f0,_0x3eefe4[_0x2e8f91('0x24c3')]=_0x565d53,_0x3eefe4['onMultiselectSelection']=_0x345eb4,_0x3eefe4[_0x2e8f91('0xafc')]=_0x532214,_0x3eefe4[_0x2e8f91('0x246')]=_0x2cea88,_0x3eefe4[_0x2e8f91('0x359')]=_0x1eaa5e,_0x3eefe4[_0x2e8f91('0x2532')]=_0x4bf756;function _0x5b79f0(_0x17617f){_0x395295(_0x17617f);}function _0x565d53(_0x285287){var _0x1afab6=_0x2e8f91,_0x47bc58=_0x285287[_0x1afab6('0x6e4')];_0x3eefe4[_0x1afab6('0xa16')][_0x47bc58]?_0x3eefe4['pickerModels'][_0x47bc58]=_0x19f4e2[_0x1afab6('0x260a')](_0x3eefe4[_0x1afab6('0xa16')][_0x47bc58]):_0x3eefe4[_0x1afab6('0x2898')][_0x47bc58]={'dateStart':null};}function _0x345eb4(_0x294b82){var _0x3c14ae=_0x2e8f91;_0x395295(_0x294b82),_0x3eefe4[_0x3c14ae('0x1cc8')]();}function _0x532214(_0x5a757f){var _0x485d3a=_0x2e8f91,_0x273aa5=_0x5a757f[_0x485d3a('0x6e4')];_0x3eefe4[_0x485d3a('0x2898')][_0x273aa5][_0x485d3a('0x114e')]?_0x3eefe4[_0x485d3a('0xa16')][_0x273aa5]={'$gte':_0x4ddcaa()(_0x3eefe4[_0x485d3a('0x2898')][_0x273aa5]['dateStart'])['utcOffset'](0x0,!![])['format'](),'$lte':_0x4ddcaa()(_0x3eefe4['pickerModels'][_0x273aa5]['dateEnd'])[_0x485d3a('0x1e9e')](0x0,!![])['add'](0x17,_0x485d3a('0x1c59'))[_0x485d3a('0xaf8')](0x3b,_0x485d3a('0x25eb'))['add'](0x3b,_0x485d3a('0x8ec'))['format']()}:_0x3eefe4[_0x485d3a('0xa16')][_0x273aa5]=undefined,_0x3eefe4[_0x485d3a('0x1cc8')]();}function _0x2cea88(_0x16896d){var _0x4d57fb=_0x2e8f91,_0xb6827a=_0x16896d[_0x4d57fb('0x6e4')];_0x3eefe4[_0x4d57fb('0x2898')][_0xb6827a]={'dateStart':null},delete _0x3eefe4['query'][_0xb6827a],_0x3eefe4['search']();}function _0x4bf756(_0x26afc8){var _0x35435e=_0x2e8f91,_0x18da89=_0x26afc8[_0x35435e('0x6e4')],_0x4eb771=_0x26afc8['ngValue']||'id';_0x3eefe4[_0x35435e('0xa16')][_0x18da89]=_0x32d445()[_0x35435e('0x65a')](_0x26afc8[_0x35435e('0x2116')],_0x4eb771),_0x395295(_0x26afc8),_0x3eefe4[_0x35435e('0x1cc8')]();}function _0x1eaa5e(_0x35092e){var _0x435c9c=_0x2e8f91,_0x1b6a79=_0x35092e[_0x435c9c('0x6e4')],_0x3f5344=_0x35092e[_0x435c9c('0x7ec')]||'id';_0x3eefe4['query'][_0x1b6a79]=_0x35092e[_0x435c9c('0x116a')]===![]?[_0x32d445()[_0x435c9c('0xb6c')](_0x35092e[_0x435c9c('0x2116')])[_0x3f5344]]:[],_0x395295(_0x35092e),_0x3eefe4[_0x435c9c('0x1cc8')]();}function _0x395295(_0x1e16a5){var _0x1f760b=_0x2e8f91,_0x256504=_0x1e16a5[_0x1f760b('0x6e4')],_0x51ae92={'param':_0x3eefe4[_0x1f760b('0xa16')][_0x256504],'resources':_0x1e16a5[_0x1f760b('0x2116')],'placeholder':_0x1e16a5[_0x1f760b('0x53e')],'ngValue':_0x1e16a5[_0x1f760b('0x7ec')]};_0x1c1d9c[_0x1f760b('0x1903')](_0x51ae92)[_0x1f760b('0xe19')](function(_0x443d20){var _0x14634c=_0x1f760b;_0x3eefe4[_0x14634c('0xeb1')][_0x256504]=_0x443d20;});}}function _0x5e0981(_0x5bbfec,_0x158b71){var _0x4eec8c={'localizationMap':_0x158b71,'setSelectedDate':_0x470d34};function _0x470d34(_0x34dc43){var _0x1b49cd=a0_0x5325,_0x5548e8=new Date(_0x4ddcaa()[_0x1b49cd('0x20d1')](_0x34dc43[_0x1b49cd('0x2377')])['format'](_0x1b49cd('0x124d'))),_0x3fc572=new Date(_0x4ddcaa()[_0x1b49cd('0x20d1')](_0x34dc43[_0x1b49cd('0x27eb')])[_0x1b49cd('0x5e5')](_0x1b49cd('0x124d'))),_0xa5b016={'dateStart':new Date(_0x5548e8[_0x1b49cd('0x763')](),_0x5548e8[_0x1b49cd('0x1960')](),_0x5548e8['getDate']()),'dateEnd':new Date(_0x3fc572['getFullYear'](),_0x3fc572[_0x1b49cd('0x1960')](),_0x3fc572[_0x1b49cd('0x15d3')]())};return _0xa5b016[_0x1b49cd('0x1534')]=_0x508772(_0xa5b016),_0xa5b016;}function _0x508772(_0x50578e){var _0x1107a9=a0_0x5325;if(_0x4ddcaa()(_0x50578e[_0x1107a9('0x114e')])['isSame'](_0x50578e['dateEnd'])){if(_0x5e698b(_0x50578e))return _0x4eec8c[_0x1107a9('0xfd6')][_0x1107a9('0x839')];else return _0x35fee6(_0x50578e)?_0x4eec8c[_0x1107a9('0xfd6')][_0x1107a9('0x1be6')]:_0x5bbfec(_0x1107a9('0xf6d'))(_0x50578e[_0x1107a9('0x114e')],_0x1107a9('0x2609'));}else{if(_0x308ae9(_0x50578e))return _0x4eec8c[_0x1107a9('0xfd6')][_0x1107a9('0x19f9')];else{if(_0x577cd4(_0x50578e))return _0x4eec8c['localizationMap'][_0x1107a9('0xd60')];else{if(_0x354aca(_0x50578e))return _0x4eec8c['localizationMap'][_0x1107a9('0x1cf5')];else{if(_0x5a164a(_0x50578e))return _0x4eec8c[_0x1107a9('0xfd6')][_0x1107a9('0x13b2')];else{if(_0x322dc1(_0x50578e))return _0x4eec8c[_0x1107a9('0xfd6')][_0x1107a9('0x2256')];else return _0x25bc67(_0x50578e)?_0x4eec8c[_0x1107a9('0xfd6')][_0x1107a9('0x245c')]:_0x5bbfec(_0x1107a9('0xf6d'))(_0x50578e['dateStart'],'dd'+(_0x50578e['dateStart'][_0x1107a9('0x1960')]()!==_0x50578e[_0x1107a9('0x36a')]['getMonth']()||_0x50578e[_0x1107a9('0x114e')][_0x1107a9('0x763')]()!==_0x50578e[_0x1107a9('0x36a')][_0x1107a9('0x763')]()?_0x1107a9('0x1118'):'')+(_0x50578e[_0x1107a9('0x114e')]['getFullYear']()!==_0x50578e[_0x1107a9('0x36a')]['getFullYear']()?'\x20yyyy':''))+_0x1107a9('0x1b7c')+_0x5bbfec(_0x1107a9('0xf6d'))(_0x50578e[_0x1107a9('0x36a')],_0x1107a9('0x2609'));}}}}}}function _0x5e698b(_0x575f1d){var _0x51db7d=a0_0x5325;return _0x4ddcaa()()[_0x51db7d('0x21b1')]('day')[_0x51db7d('0x25c2')](_0x575f1d[_0x51db7d('0x114e')]);}function _0x35fee6(_0x4c3e92){var _0x4b60b3=a0_0x5325;return _0x4ddcaa()()[_0x4b60b3('0x19ed')](0x1,_0x4b60b3('0x1b05'))[_0x4b60b3('0x21b1')](_0x4b60b3('0x2103'))[_0x4b60b3('0x25c2')](_0x4c3e92['dateStart']);}function _0x308ae9(_0x3b1479){var _0x431b15=a0_0x5325;return _0x4ddcaa()()[_0x431b15('0x21b1')](_0x431b15('0x207c'))[_0x431b15('0x25c2')](_0x3b1479[_0x431b15('0x114e')],'day')&&_0x4ddcaa()()[_0x431b15('0x270')](_0x431b15('0x207c'))[_0x431b15('0x25c2')](_0x3b1479[_0x431b15('0x36a')],_0x431b15('0x2103'));}function _0x577cd4(_0x3a2099){var _0x4f5803=a0_0x5325;return _0x4ddcaa()()[_0x4f5803('0x19ed')](0x1,_0x4f5803('0xa51'))[_0x4f5803('0x21b1')]('isoWeek')[_0x4f5803('0x25c2')](_0x3a2099[_0x4f5803('0x114e')],_0x4f5803('0x2103'))&&_0x4ddcaa()()['subtract'](0x1,_0x4f5803('0xa51'))[_0x4f5803('0x270')]('isoWeek')[_0x4f5803('0x25c2')](_0x3a2099[_0x4f5803('0x36a')],_0x4f5803('0x2103'));}function _0x354aca(_0x5a9dd4){var _0x1fef7b=a0_0x5325;return _0x4ddcaa()()['startOf']('month')['isSame'](_0x5a9dd4['dateStart'],'day')&&_0x4ddcaa()()[_0x1fef7b('0x270')]('month')[_0x1fef7b('0x25c2')](_0x5a9dd4[_0x1fef7b('0x36a')],_0x1fef7b('0x2103'));}function _0x5a164a(_0x3c0901){var _0x5cd930=a0_0x5325;return _0x4ddcaa()()[_0x5cd930('0x19ed')](0x1,'months')[_0x5cd930('0x21b1')](_0x5cd930('0x211c'))['isSame'](_0x3c0901[_0x5cd930('0x114e')],_0x5cd930('0x2103'))&&_0x4ddcaa()()[_0x5cd930('0x19ed')](0x1,'months')[_0x5cd930('0x270')]('month')[_0x5cd930('0x25c2')](_0x3c0901[_0x5cd930('0x36a')],'day');}function _0x322dc1(_0x1704df){var _0x53fb5c=a0_0x5325;return _0x4ddcaa()()['startOf']('year')[_0x53fb5c('0x25c2')](_0x1704df['dateStart'],'day')&&_0x4ddcaa()()[_0x53fb5c('0x270')]('year')[_0x53fb5c('0x25c2')](_0x1704df[_0x53fb5c('0x36a')],'day');}function _0x25bc67(_0x15efce){var _0x5ad165=a0_0x5325;return _0x4ddcaa()()[_0x5ad165('0x19ed')](0x1,_0x5ad165('0xdf0'))['startOf'](_0x5ad165('0x1923'))[_0x5ad165('0x25c2')](_0x15efce[_0x5ad165('0x114e')],_0x5ad165('0x2103'))&&_0x4ddcaa()()['subtract'](0x1,_0x5ad165('0xdf0'))[_0x5ad165('0x270')](_0x5ad165('0x1923'))[_0x5ad165('0x25c2')](_0x15efce[_0x5ad165('0x36a')],_0x5ad165('0x2103'));}return _0x4eec8c;}function _0x588a98(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function _0x200d1c(_0xebb177,_0x116e72){var _0x3a3b7f=a0_0x5325,_0xb1e98c=_0xebb177[_0x3a3b7f('0xe73')][Math[_0x3a3b7f('0x6ac')](Math['random']()*_0xebb177[_0x3a3b7f('0xe73')]['length'])];_0x116e72[_0x3a3b7f('0x500')](_0xb1e98c);}};}const _0x11bc15=_0x588a98;_0x228475[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc')];function _0x228475(_0x25acf9){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function _0xd24b80(_0x52b581,_0x11b16c){var _0x2e45ba=a0_0x5325,_0xba8ca1=![],_0xf06028=document[_0x2e45ba('0x9a1')](_0x2e45ba('0xea7'));!_0x52b581['download']&&_0xf06028[_0x2e45ba('0xede')](_0x2e45ba('0xb2c'),_0x2e45ba('0x1c8a')),_0xf06028[_0x2e45ba('0xede')](_0x2e45ba('0x313'),'none'),_0xf06028[_0x2e45ba('0xede')](_0x2e45ba('0x279f'),''),_0xf06028[_0x2e45ba('0xede')](_0x2e45ba('0xf31'),'width:\x20265px;'),_0xf06028['setAttribute'](_0x2e45ba('0x48a'),'\x20'),_0xf06028[_0x2e45ba('0x3ea')]=function(_0x449d91){var _0x5b171a=_0x2e45ba;!_0xba8ca1&&(_0xba8ca1=!![],_0x449d91[_0x5b171a('0x9f1')](),_0x25acf9[_0x52b581['model']||_0x5b171a('0x1a1e')][_0x5b171a('0x1d1e')]({'id':_0x52b581['id']})[_0x5b171a('0xe59')][_0x5b171a('0xe19')](function(_0x19673f){var _0x2528c5=_0x5b171a,_0x3b4b0b=[_0x19673f[_0x2528c5('0x17ab')]],_0x446339=new Blob(_0x3b4b0b,{'type':_0x19673f[_0x2528c5('0x62e')]});_0xf06028[_0x2528c5('0xede')](_0x2528c5('0x62e'),_0x19673f[_0x2528c5('0x62e')]),_0xf06028[_0x2528c5('0xede')](_0x2528c5('0x48a'),URL[_0x2528c5('0x1360')](_0x446339)),_0xf06028[_0x2528c5('0x1d0b')]();})[_0x5b171a('0x223b')](function(_0x568bb0){var _0x27b8c5=_0x5b171a;console[_0x27b8c5('0x8c8')](_0x568bb0);}));},_0x11b16c[_0x2e45ba('0x1d0a')](_0xf06028);}};}const _0x2609ce=_0x228475;function _0x173628(){return{'restrict':'A','link':function _0x2dce17(_0x305a83,_0x263af5){var _0x181055=a0_0x5325,_0x3c645a=angular[_0x181055('0x24a1')](_0x181055('0x195f'));_0x263af5['after'](_0x3c645a),_0x3c645a['append'](_0x263af5);}};}const _0x35428e=_0x173628;var _0x19aea3=_0x59426a(0x1703),_0x1f4f24=_0x59426a['n'](_0x19aea3);_0x21f8d8['$inject']=[_0xb635d2('0x1a0b'),_0xb635d2('0x1c91'),'msUtils',_0xb635d2('0x1a27')];function _0x1298dc(){var _0x496679=_0xb635d2,_0x5e1465={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this['$get']=function(){function _0x49db6a(){return _0x5e1465;}var _0x32a3d3={'getConfig':_0x49db6a};return _0x32a3d3;};function _0x4cf3c7(_0x1ef1d9){_0x5e1465=angular['extend']({},_0x5e1465,_0x1ef1d9);}this[_0x496679('0x1990')]=_0x4cf3c7;}function _0x21f8d8(_0x511e64,_0x284441,_0x42b34b,_0x319691){return{'restrict':'AE','compile':function _0x547007(_0x3756ce){var _0x5808e1=a0_0x5325;if(_0x319691['getConfig'](_0x5808e1('0x1306')))return;if(_0x319691[_0x5808e1('0x1968')](_0x5808e1('0xce9'))&&_0x42b34b[_0x5808e1('0x2645')]())return;return _0x3756ce[_0x5808e1('0x500')]('ms-scroll'),function _0x1a63c8(_0x4adb5e,_0xa2dded,_0x248f76){var _0x522ab7=_0x5808e1,_0x45a540={};_0x248f76[_0x522ab7('0xae8')]&&(_0x45a540=_0x4adb5e[_0x522ab7('0x2a9')](_0x248f76['msScroll']));_0x45a540=angular[_0x522ab7('0x2bb')]({},_0x284441[_0x522ab7('0x1968')](),_0x45a540),_0x1f4f24()[_0x522ab7('0xd7')](_0xa2dded[0x0],_0x45a540);function _0x292d14(){var _0x5843df=_0x522ab7;_0x1f4f24()[_0x5843df('0xa70')](_0xa2dded[0x0]);}_0xa2dded['on']('mouseenter',_0x292d14),_0x4adb5e[_0x522ab7('0x107')](function(){var _0x38167b=_0x522ab7;return _0xa2dded[_0x38167b('0x11ef')](_0x38167b('0x15c4'));},function(_0x5058b6,_0x58f498){var _0x42173a=_0x522ab7;if(angular[_0x42173a('0xda8')](_0x5058b6)||angular[_0x42173a('0x1f15')](_0x5058b6,_0x58f498))return;_0x292d14();}),_0x4adb5e[_0x522ab7('0x107')](function(){var _0x5d02ad=_0x522ab7;return _0xa2dded[_0x5d02ad('0x11ef')](_0x5d02ad('0x2a3'));},function(_0x27f19c,_0x2c4b79){var _0x1d0a6a=_0x522ab7;if(angular[_0x1d0a6a('0xda8')](_0x27f19c)||angular[_0x1d0a6a('0x1f15')](_0x27f19c,_0x2c4b79))return;_0x292d14();}),_0x4adb5e[_0x522ab7('0xb2b')](_0x522ab7('0x5cd'),function(){var _0x3bc1ad=_0x522ab7;_0xa2dded[_0x3bc1ad('0xe5')](_0x3bc1ad('0x2329')),_0x1f4f24()[_0x3bc1ad('0x159c')](_0xa2dded[0x0]);});};}};}const _0x29a77e=_0x59426a['p']+_0xb635d2('0x1d41');_0x4ca6f1[_0xb635d2('0xb0c')]=[_0xb635d2('0x1728')],_0x2904b6['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1abd'),_0xb635d2('0x1a0b')];function _0x2904b6(_0x119231,_0x214f49,_0x50694a){var _0x1d6a01=_0xb635d2,_0x253caf=this;_0x253caf['collapsed']=!![],_0x253caf[_0x1d6a01('0xa16')]=undefined,_0x253caf['queryOptions']={'debounce':_0x253caf[_0x1d6a01('0x15ad')]||0x0};var _0xd62d25=_0x253caf[_0x1d6a01('0xa9')]&&_0x253caf['collapseOnBlur']==_0x1d6a01('0x2206')?!![]:![];_0x253caf[_0x1d6a01('0x1889')]=![],_0x253caf[_0x1d6a01('0x2545')]=null,_0x253caf['selectedResultIndex']=0x0,_0x253caf[_0x1d6a01('0x1214')]=![],_0x253caf['onInit']=_0x4e31de,_0x253caf[_0x1d6a01('0x228f')]=_0xdfe968,_0x253caf[_0x1d6a01('0x662')]=_0x1da4ab,_0x253caf[_0x1d6a01('0x22fb')]=_0x3a36cf,_0x253caf[_0x1d6a01('0x1caf')]=_0x1df58d,_0x253caf['absorbEvent']=_0x23784c,_0x253caf[_0x1d6a01('0x23f2')]=_0x3da676,_0x253caf[_0x1d6a01('0x8ea')]=_0x2a7800,_0x253caf[_0x1d6a01('0x2753')]=_0x359e8f,_0x253caf['handleResultClick']=_0x3ff21f,_0x253caf[_0x1d6a01('0x1dc4')]=_0x127d23;function _0x4e31de(){var _0x191a8c=_0x1d6a01;_0x119231[_0x191a8c('0x107')](_0x191a8c('0x263a'),function(_0x1714e8,_0x53472e){var _0x1861da=_0x191a8c;if(angular[_0x1861da('0xda8')](_0x1714e8))return;if(angular['equals'](_0x1714e8,_0x53472e))return;if(_0x253caf['collapsed']){if(_0x1714e8)_0x119231[_0x1861da('0x662')]();else return;}var _0x6bbaf3=_0x119231[_0x1861da('0x5cf')][_0x1861da('0x2a9')](_0x253caf[_0x1861da('0x1c89')],{'query':_0x1714e8}),_0x2ff547=angular[_0x1861da('0x113a')](_0x6bbaf3),_0x3bcd62=_0x6bbaf3&&!!_0x6bbaf3[_0x1861da('0xe19')];_0x2ff547&&_0x253caf['populateResults'](_0x6bbaf3),_0x3bcd62&&(_0x253caf['resultsLoading']=!![],_0x6bbaf3['then'](function(_0xe18a01){var _0x597052=_0x1861da;_0x253caf[_0x597052('0x228f')](_0xe18a01);},function(){var _0x410440=_0x1861da;_0x253caf[_0x410440('0x228f')]([]);})['finally'](function(){var _0x417632=_0x1861da;_0x253caf[_0x417632('0x1889')]=![];}));});}function _0xdfe968(_0x5b0aff){var _0x5896fd=_0x1d6a01;if(_0x253caf[_0x5896fd('0xf19')])return;var _0x30d699=angular[_0x5896fd('0x113a')](_0x5b0aff),_0x2baaad=_0x5b0aff===null;if(!_0x30d699&&!_0x2baaad)return;_0x253caf[_0x5896fd('0x176c')]=0x0,_0x253caf['results']=_0x5b0aff;}function _0x1da4ab(){var _0x5414e6=_0x1d6a01;_0x253caf[_0x5414e6('0xf19')]=![],_0x119231[_0x5414e6('0x662')](),_0x253caf[_0x5414e6('0x237f')]&&angular['isFunction'](_0x253caf[_0x5414e6('0x237f')])&&_0x253caf['onExpand']();}function _0x3a36cf(){var _0x49835e=_0x1d6a01;_0x253caf[_0x49835e('0xa16')]='',_0x253caf[_0x49835e('0x228f')](null),_0x253caf[_0x49835e('0xf19')]=!![],_0x119231['collapse'](),_0x253caf[_0x49835e('0xa6c')]&&angular[_0x49835e('0xfeb')](_0x253caf[_0x49835e('0xa6c')])&&_0x253caf[_0x49835e('0xa6c')]();}function _0x1df58d(){var _0x4c98ed=_0x1d6a01;if(!_0xd62d25)return;_0x253caf[_0x4c98ed('0x22fb')]();}function _0x23784c(_0x4b184d){_0x4b184d['preventDefault']();}function _0x3da676(_0x92dcd1){var _0x112750=_0x1d6a01,_0x32c6cd=_0x92dcd1[_0x112750('0xa47')],_0xa4206d=[0x1b,0x26,0x28];_0xa4206d[_0x112750('0x281c')](_0x32c6cd)>-0x1&&_0x92dcd1[_0x112750('0x9f1')]();switch(_0x32c6cd){case 0xd:if(!_0x253caf[_0x112750('0x2545')])return;_0x253caf['handleResultClick'](_0x253caf[_0x112750('0x2545')][_0x253caf[_0x112750('0x176c')]]);break;case 0x1b:_0x253caf['collapse']();break;case 0x26:_0x253caf[_0x112750('0x176c')]-0x1>=0x0&&(_0x253caf[_0x112750('0x176c')]--,_0x253caf[_0x112750('0x1dc4')]());break;case 0x28:if(!_0x253caf[_0x112750('0x2545')])return;_0x253caf[_0x112750('0x176c')]+0x1<_0x253caf['results'][_0x112750('0x25ae')]&&(_0x253caf[_0x112750('0x176c')]++,_0x253caf['ensureSelectedResultIsVisible']());break;default:break;}}function _0x2a7800(_0x38443f){var _0x4a1d43=_0x1d6a01;if(_0x253caf['ignoreMouseEvents'])return;_0x253caf[_0x4a1d43('0x176c')]=_0x38443f;}function _0x359e8f(){var _0x40be4e=_0x1d6a01;_0x253caf[_0x40be4e('0x1214')]=!![],_0x50694a[_0x40be4e('0x2c1')](_0x253caf[_0x40be4e('0x1ed5')]),_0x253caf[_0x40be4e('0x1ed5')]=_0x50694a(function(){var _0x1a7f2e=_0x40be4e;_0x253caf[_0x1a7f2e('0x1214')]=![];},0xfa);}function _0x3ff21f(_0x4153a3){var _0x21bb28=_0x1d6a01;_0x253caf[_0x21bb28('0x7ba')]&&_0x253caf['onResultClick']({'item':_0x4153a3}),_0x253caf[_0x21bb28('0x22fb')]();}function _0x127d23(){var _0x559e30=_0x1d6a01,_0xf1f059=_0x214f49[_0x559e30('0xf15')](_0x559e30('0x1ec0')),_0x27a5fb=angular['element'](_0xf1f059['find']('.result')[_0x253caf[_0x559e30('0x176c')]]);if(_0xf1f059&&_0x27a5fb){var _0x125842=_0x27a5fb[_0x559e30('0x1c0b')]()['top']-0x8,_0x1d95c0=_0x27a5fb[_0x559e30('0x1c0b')]()[_0x559e30('0x9db')]+_0x27a5fb[_0x559e30('0x1053')]()+0x8;_0x253caf[_0x559e30('0x2753')](),_0xf1f059[_0x559e30('0x1e15')]()>_0x125842&&_0xf1f059[_0x559e30('0x1e15')](_0x125842),_0x1d95c0>_0xf1f059[_0x559e30('0x131e')]()+_0xf1f059[_0x559e30('0x1e15')]()&&_0xf1f059[_0x559e30('0x1e15')](_0x1d95c0-_0xf1f059[_0x559e30('0x131e')]());}}}function _0x4ca6f1(_0x2170c1){var _0x11e1ee=_0xb635d2;return{'restrict':'E','scope':{},'require':_0x11e1ee('0xdbc'),'controller':'MsSearchBarController\x20as\x20vm','bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0x29a77e,'compile':function _0x3e0221(_0x22c759){var _0x37cca8=_0x11e1ee;return _0x22c759[_0x37cca8('0x500')](_0x37cca8('0x28')),function _0x475ae2(_0x594d67,_0x5c27c3){var _0x5104a3=_0x37cca8,_0x33c5dd=_0x2170c1[_0x5104a3('0xf15')](_0x5104a3('0x19b2'));function _0x4b8544(){var _0x2a70fe=_0x5104a3;_0x5c27c3[_0x2a70fe('0x500')](_0x2a70fe('0x288e'));if(_0x594d67['vm'][_0x2a70fe('0x1338')]==='down'){_0x5c27c3[_0x2a70fe('0x500')]('down');var _0x200138=_0x5c27c3[_0x2a70fe('0x2257')](_0x2a70fe('0x1c7e'));if(_0x200138)_0x200138[_0x2a70fe('0x500')](_0x2a70fe('0x46'));}_0x33c5dd[_0x2a70fe('0x500')]('ms-search-bar-expanded');}function _0x599975(){var _0x38ab69=_0x5104a3;_0x5c27c3[_0x38ab69('0x850')](_0x38ab69('0x288e'));if(_0x594d67['vm']['direction']===_0x38ab69('0x1fe')){_0x5c27c3[_0x38ab69('0x850')](_0x38ab69('0x1fe'));var _0x281ec0=_0x5c27c3[_0x38ab69('0x2257')](_0x38ab69('0x1c7e'));if(_0x281ec0)_0x281ec0[_0x38ab69('0x850')](_0x38ab69('0x46'));}_0x33c5dd['removeClass'](_0x38ab69('0x1d84'));}_0x594d67[_0x5104a3('0x22fb')]=_0x599975,_0x594d67[_0x5104a3('0x662')]=_0x4b8544;};}};}const _0x29bf4f=_0x59426a['p']+'src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts-[chunkhash].html';_0xcb3f4f['$inject']=['$scope',_0xb635d2('0x1c1d'),_0xb635d2('0x1728'),'$timeout','$q','msNavigationService'];function _0xcb3f4f(_0x502ebb,_0x5a969c,_0x1613b8,_0x5dca8c,_0x59fd48,_0x224d87){var _0x39a991=_0xb635d2,_0x4ff185=this;_0x4ff185[_0x39a991('0xa16')]='',_0x4ff185['queryOptions']={'debounce':0x12c},_0x4ff185['resultsLoading']=![],_0x4ff185[_0x39a991('0x176c')]=0x0,_0x4ff185[_0x39a991('0x1214')]=![],_0x4ff185[_0x39a991('0x87f')]=![],_0x4ff185[_0x39a991('0x2545')]=null,_0x4ff185[_0x39a991('0x99c')]=[],_0x4ff185['sortableOptions']={'ghostClass':_0x39a991('0x1314'),'forceFallback':!![],'fallbackClass':_0x39a991('0x26d8'),'onSort':function _0x95fcd2(){var _0x35e4d5=_0x39a991;_0x4ff185[_0x35e4d5('0x1378')]();}};function _0x168f95(){var _0x14e886=_0x39a991;_0x4ff185[_0x14e886('0x3')]()['then'](function(_0x1c1f34){var _0x4a54f1=_0x14e886;_0x4ff185[_0x4a54f1('0x99c')]=_0x1c1f34,_0x4ff185[_0x4a54f1('0x99c')][_0x4a54f1('0x25ae')]>0x0&&(_0x4ff185[_0x4a54f1('0x2545')]=_0x1c1f34);}),_0x502ebb[_0x14e886('0x107')](_0x14e886('0x139'),function(_0x436247,_0x200b7e){var _0x1c3344=_0x14e886;if(angular[_0x1c3344('0xda8')](_0x436247))return;if(angular[_0x1c3344('0x1f15')](_0x436247,_0x200b7e))return;_0x4ff185['resultsLoading']=!![],_0x4ff185[_0x1c3344('0x228f')]()['then'](function(_0x3a88f8){var _0x233c61=_0x1c3344;_0x4ff185[_0x233c61('0x2545')]=_0x3a88f8;},function(){var _0x452ccd=_0x1c3344;_0x4ff185[_0x452ccd('0x2545')]=[];})['finally'](function(){var _0xe0b23=_0x1c3344;_0x4ff185[_0xe0b23('0x1889')]=![];});});}function _0x24158d(){var _0x4c1fe7=_0x39a991,_0x2c747a=[],_0x4560a3=_0x224d87[_0x4c1fe7('0xcff')](),_0x2ef540=_0x59fd48[_0x4c1fe7('0x178')]();for(var _0x4481f0=0x0;_0x4481f0<_0x4560a3[_0x4c1fe7('0x25ae')];_0x4481f0++){_0x4560a3[_0x4481f0][_0x4c1fe7('0x1da1')]&&_0x2c747a[_0x4c1fe7('0xb76')](_0x4560a3[_0x4481f0]);}if(_0x4ff185[_0x4c1fe7('0xa16')]){_0x2c747a=_0x2c747a['filter'](function(_0x323674){var _0x84e65a=_0x4c1fe7;if(_0x323674[_0x84e65a('0x13e4')]['toLowerCase']()[_0x84e65a('0x1c43')](_0x4ff185[_0x84e65a('0xa16')][_0x84e65a('0x20dd')]()))return!![];});for(var _0x6a6005=0x0;_0x6a6005<_0x2c747a[_0x4c1fe7('0x25ae')];_0x6a6005++){_0x2c747a[_0x6a6005]['hasShortcut']=![];for(var _0x46e89e=0x0;_0x46e89e<_0x4ff185['shortcuts']['length'];_0x46e89e++){if(_0x4ff185['shortcuts'][_0x46e89e][_0x4c1fe7('0x1e03')]===_0x2c747a[_0x6a6005][_0x4c1fe7('0x1e03')]){_0x2c747a[_0x6a6005][_0x4c1fe7('0xb7e')]=!![];break;}}}}else _0x4ff185[_0x4c1fe7('0x99c')]['length']>0x0&&(_0x2c747a=_0x4ff185[_0x4c1fe7('0x99c')]);return _0x4ff185[_0x4c1fe7('0x176c')]=0x0,_0x5dca8c(function(){_0x2ef540['resolve'](_0x2c747a);},0xfa),_0x2ef540[_0x4c1fe7('0x9c8')];}function _0x5c7704(){var _0x255ac0=_0x39a991,_0x419696=_0x59fd48[_0x255ac0('0x178')](),_0x328725=angular[_0x255ac0('0x56')](_0x5a969c[_0x255ac0('0x22d5')](_0x255ac0('0x13ad')));return angular[_0x255ac0('0xda8')](_0x328725)&&(_0x328725=[{'title':'Agents','icon':_0x255ac0('0x53a'),'state':_0x255ac0('0xea3'),'weight':0x5,'children':[],'uisref':_0x255ac0('0xea3'),'hasShortcut':!![]},{'title':_0x255ac0('0x23eb'),'icon':_0x255ac0('0xd70'),'state':_0x255ac0('0x92d'),'weight':0xa,'children':[],'uisref':_0x255ac0('0x92d'),'hasShortcut':!![]}],_0x5a969c[_0x255ac0('0x153c')](_0x255ac0('0x13ad'),angular[_0x255ac0('0x1a33')](_0x328725))),_0x419696['resolve'](_0x328725),_0x419696[_0x255ac0('0x9c8')];}function _0x22c051(){var _0x5cc87c=_0x39a991,_0x653a94=_0x59fd48[_0x5cc87c('0x178')]();return _0x5a969c[_0x5cc87c('0x153c')]('motion.shortcuts',angular[_0x5cc87c('0x1a33')](_0x4ff185['shortcuts'])),_0x5dca8c(function(){var _0x7feeb9=_0x5cc87c;_0x653a94[_0x7feeb9('0xcd6')]({'success':!![]});},0xfa),_0x653a94[_0x5cc87c('0x9c8')];}function _0x4237ee(_0x24a954){var _0x281603=_0x39a991;_0x24a954['hasShortcut']=!![],_0x4ff185['shortcuts'][_0x281603('0xb76')](_0x24a954),_0x4ff185[_0x281603('0x1378')]();}function _0x14bf46(_0x35f3f2){var _0x271901=_0x39a991;_0x35f3f2['hasShortcut']=![];for(var _0xe4e958=0x0;_0xe4e958<_0x4ff185[_0x271901('0x99c')][_0x271901('0x25ae')];_0xe4e958++){_0x4ff185[_0x271901('0x99c')][_0xe4e958][_0x271901('0x1e03')]===_0x35f3f2['_id']&&(_0x4ff185[_0x271901('0x99c')][_0x271901('0x1c8e')](_0xe4e958,0x1),!_0x4ff185[_0x271901('0xa16')]&&(_0x4ff185['shortcuts'][_0x271901('0x25ae')]===0x0?_0x4ff185[_0x271901('0x2545')]=null:_0xe4e958>=_0x4ff185['shortcuts'][_0x271901('0x25ae')]&&(_0x4ff185[_0x271901('0x176c')]=_0x4ff185['shortcuts'][_0x271901('0x25ae')]-0x1)));}_0x4ff185[_0x271901('0x1378')]();}function _0x3ffe93(_0x9c8f83){var _0x56b185=_0x39a991;_0x9c8f83[_0x56b185('0xb7e')]?_0x4ff185['removeShortcut'](_0x9c8f83):_0x4ff185[_0x56b185('0x1339')](_0x9c8f83);}function _0x16c5f2(_0x2e27b8){var _0x206adf=_0x39a991;_0x2e27b8[_0x206adf('0x9f1')]();}function _0x4d4f86(_0x14305f){var _0x4438d2=_0x39a991,_0x37b460=_0x14305f[_0x4438d2('0xa47')],_0x409c91=[0x26,0x28];_0x409c91[_0x4438d2('0x281c')](_0x37b460)>-0x1&&_0x14305f['preventDefault']();switch(_0x37b460){case 0xd:_0x4ff185[_0x4438d2('0x29')](_0x4ff185[_0x4438d2('0x2545')][_0x4ff185['selectedResultIndex']]);break;case 0x26:_0x4ff185[_0x4438d2('0x176c')]-0x1>=0x0&&(_0x4ff185['selectedResultIndex']--,_0x4ff185[_0x4438d2('0x1dc4')]());break;case 0x28:_0x4ff185[_0x4438d2('0x176c')]+0x1<_0x4ff185[_0x4438d2('0x2545')][_0x4438d2('0x25ae')]&&(_0x4ff185[_0x4438d2('0x176c')]++,_0x4ff185['ensureSelectedResultIsVisible']());break;default:break;}}function _0x1173b8(_0x284981){var _0x4eb212=_0x39a991;if(_0x4ff185[_0x4eb212('0x1214')])return;_0x4ff185['selectedResultIndex']=_0x284981;}function _0x342ad3(){var _0x5b71f9=_0x39a991;_0x4ff185[_0x5b71f9('0x1214')]=!![],_0x5dca8c[_0x5b71f9('0x2c1')](_0x4ff185[_0x5b71f9('0x1ed5')]),_0x4ff185['mouseEventIgnoreTimeout']=_0x5dca8c(function(){var _0x13aa9d=_0x5b71f9;_0x4ff185[_0x13aa9d('0x1214')]=![];},0xfa);}function _0xdf63f0(){var _0x283b3a=_0x39a991,_0x5a456e=_0x1613b8[_0x283b3a('0xf15')]('#ms-shortcut-add-menu')['find'](_0x283b3a('0x407')),_0x171452=angular[_0x283b3a('0x24a1')](_0x5a456e[_0x283b3a('0xf15')](_0x283b3a('0x1fe1'))[_0x4ff185[_0x283b3a('0x176c')]]);if(_0x5a456e&&_0x171452){var _0x3b954d=_0x171452[_0x283b3a('0x1c0b')]()[_0x283b3a('0x9db')]-0x8,_0xe8f397=_0x171452[_0x283b3a('0x1c0b')]()['top']+_0x171452['outerHeight']()+0x8;_0x4ff185[_0x283b3a('0x2753')](),_0x5a456e[_0x283b3a('0x1e15')]()>_0x3b954d&&_0x5a456e[_0x283b3a('0x1e15')](_0x3b954d),_0xe8f397>_0x5a456e[_0x283b3a('0x131e')]()+_0x5a456e['scrollTop']()&&_0x5a456e['scrollTop'](_0xe8f397-_0x5a456e['height']());}}function _0xb37dea(){var _0x40921f=_0x39a991;_0x4ff185['mobileBarActive']=!_0x4ff185[_0x40921f('0x87f')];}_0x4ff185[_0x39a991('0x228f')]=_0x24158d,_0x4ff185[_0x39a991('0x3')]=_0x5c7704,_0x4ff185[_0x39a991('0x1378')]=_0x22c051,_0x4ff185['addShortcut']=_0x4237ee,_0x4ff185[_0x39a991('0x956')]=_0x14bf46,_0x4ff185[_0x39a991('0x29')]=_0x3ffe93,_0x4ff185[_0x39a991('0x1e26')]=_0x16c5f2,_0x4ff185[_0x39a991('0x23f2')]=_0x4d4f86,_0x4ff185['handleMouseenter']=_0x1173b8,_0x4ff185[_0x39a991('0x2753')]=_0x342ad3,_0x4ff185['ensureSelectedResultIsVisible']=_0xdf63f0,_0x4ff185[_0x39a991('0x6e8')]=_0xb37dea,_0x168f95();}function _0xded2fb(){var _0x3e6e2e=_0xb635d2;return{'restrict':'E','scope':{},'require':_0x3e6e2e('0x24bb'),'controller':_0x3e6e2e('0x1f26'),'bindToController':{},'templateUrl':_0x29bf4f,'compile':function _0x4b62de(_0x40a316){var _0x22986a=_0x3e6e2e;return _0x40a316[_0x22986a('0x500')]('ms-shortcuts'),function _0x181438(){};}};}function _0x4aa48c(){var _0x3fb49e=_0xb635d2;return{'restrict':'A','require':_0x3fb49e('0x6c8'),'link':function _0x29f60e(_0x54b93f,_0x132034,_0x4e5768,_0x380415){_0x54b93f['$watch'](function(){var _0x1b3162=a0_0x5325;return _0x380415[_0x1b3162('0x154b')]()&&!_0x380415['isLockedOpen']();},function(_0x13e218){var _0x56c439=a0_0x5325;if(angular[_0x56c439('0xda8')](_0x13e218))return;_0x132034[_0x56c439('0x4ec')]()[_0x56c439('0x2832')](_0x56c439('0x23cc'),_0x13e218),angular[_0x56c439('0x24a1')](_0x56c439('0x158f'))[_0x56c439('0x2832')](_0x56c439('0xb5c'),_0x13e218);});}};}const _0x437e44=_0x4aa48c;_0x264adf[_0xb635d2('0xb0c')]=['$animate'];function _0x264adf(_0x4d989c){return{'restrict':'E','link':function _0xd04f3a(_0x1ca821,_0x2eb4e1){var _0x53c307=a0_0x5325,_0x493e29=_0x1ca821[_0x53c307('0xb2b')](_0x53c307('0x2132'),function(){var _0x2a0192=_0x53c307;_0x4d989c['leave'](_0x2eb4e1)[_0x2a0192('0xe19')](function(){_0x493e29(),_0x1ca821=null,_0x2eb4e1=null;});});}};}const _0x28bd64=_0x264adf,_0x198b93=_0x59426a['p']+_0xb635d2('0xee8'),_0xf9028a=_0x59426a['p']+_0xb635d2('0xa4'),_0x144d3d=_0x59426a['p']+_0xb635d2('0x1e31');_0x230988[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a0b')],_0x1651e[_0xb635d2('0xb0c')]=['$timeout'];function _0x1651e(_0x45972e){var _0x3dd3f3=_0xb635d2,_0xb47c6e=this;_0xb47c6e[_0x3dd3f3('0x1531')]=undefined,_0xb47c6e[_0x3dd3f3('0x2041')]='horizontal',_0xb47c6e[_0x3dd3f3('0x800')]=[],_0xb47c6e[_0x3dd3f3('0x10f7')]=undefined,_0xb47c6e[_0x3dd3f3('0x8a6')]=0x1;function _0x4bd4f7(_0x2dce76){var _0x5d4a6d=_0x3dd3f3;return!(angular[_0x5d4a6d('0xda8')](_0x2dce76)||_0x2dce76<0x1||_0x2dce76>_0xb47c6e['steps']['length']);}function _0x472292(_0x5399a2){var _0x24be29=_0x3dd3f3;_0xb47c6e[_0x24be29('0x2041')]=_0x5399a2||'horizontal';}function _0x3647ea(_0x22ebc8){var _0x254a71=_0x3dd3f3;_0xb47c6e[_0x254a71('0x1531')]=_0x22ebc8;}function _0x565484(){var _0x1b183f=_0x3dd3f3;_0xb47c6e[_0x1b183f('0x2839')](0x1);}function _0x521a8d(_0x1de368){var _0x285eda=_0x3dd3f3;if(!_0x4bd4f7(_0x1de368))return null;return!!_0xb47c6e[_0x285eda('0x800')][_0x1de368-0x1][_0x285eda('0x2ba')][_0x285eda('0x2072')];}function _0x237a02(_0x5dfd62,_0x13a732,_0x6df58b){var _0x6e7c3e=_0x3dd3f3,_0x216a38={'element':_0x5dfd62,'scope':_0x13a732,'form':_0x6df58b,'stepNumber':_0x13a732[_0x6e7c3e('0x686')]||_0xb47c6e['steps']['length']+0x1,'stepTitle':_0x13a732['stepTitle'],'stepTitleTranslate':_0x13a732[_0x6e7c3e('0x149')]};return _0xb47c6e[_0x6e7c3e('0x800')][_0x6e7c3e('0xb76')](_0x216a38),_0xb47c6e[_0x6e7c3e('0x800')][_0x6e7c3e('0x9f6')](function(_0x1873d8,_0x4755d3){var _0xe916c2=_0x6e7c3e;return _0x1873d8[_0xe916c2('0xaac')]-_0x4755d3[_0xe916c2('0xaac')];}),_0x216a38;}function _0x70cf1(){var _0x399564=_0x3dd3f3;_0xb47c6e['setCurrentStep'](_0xb47c6e[_0x399564('0x8a6')]);}function _0xe161b4(){_0x45972e(function(){var _0x31d828=a0_0x5325;for(var _0x43e4cb=0x0;_0x43e4cb<_0xb47c6e[_0x31d828('0x800')]['length'];_0x43e4cb++){_0xb47c6e['steps'][_0x43e4cb][_0x31d828('0x5f2')][_0x31d828('0x175c')](),_0xb47c6e[_0x31d828('0x800')][_0x43e4cb][_0x31d828('0x5f2')][_0x31d828('0xf5a')]();}_0xb47c6e[_0x31d828('0x1531')]['$setPristine'](),_0xb47c6e[_0x31d828('0x1531')][_0x31d828('0xf5a')](),_0x565484();});}function _0x2e8f18(_0x3815ec){var _0x39fd89=_0x3dd3f3;if(!_0x4bd4f7(_0x3815ec))return;_0xb47c6e[_0x39fd89('0x8a6')]=_0x3815ec;if(_0xb47c6e[_0x39fd89('0x2041')]===_0x39fd89('0x11a9')){for(var _0x191f10=0x0;_0x191f10<_0xb47c6e[_0x39fd89('0x800')][_0x39fd89('0x25ae')];_0x191f10++){_0xb47c6e[_0x39fd89('0x800')][_0x191f10][_0x39fd89('0x24a1')][_0x39fd89('0x11ed')]();}_0xb47c6e['steps'][_0xb47c6e[_0x39fd89('0x8a6')]-0x1][_0x39fd89('0x24a1')][_0x39fd89('0x26b2')]();}else{if(_0xb47c6e[_0x39fd89('0x2041')]===_0x39fd89('0xe9a')){for(var _0x39664a=0x0;_0x39664a<_0xb47c6e[_0x39fd89('0x800')][_0x39fd89('0x25ae')];_0x39664a++){_0xb47c6e[_0x39fd89('0x800')][_0x39664a][_0x39fd89('0x24a1')][_0x39fd89('0xf15')]('.ms-stepper-step-content')[_0x39fd89('0x11ed')]();}_0xb47c6e[_0x39fd89('0x800')][_0xb47c6e[_0x39fd89('0x8a6')]-0x1][_0x39fd89('0x24a1')][_0x39fd89('0xf15')]('.ms-stepper-step-content')['show']();}}}function _0x4637df(_0x400c9c){var _0x2d8552=_0x3dd3f3;if(_0x521a8d(_0x400c9c))return;_0xb47c6e[_0x2d8552('0x2839')](_0x400c9c);}function _0x5dd877(){var _0x780404=_0x3dd3f3,_0x406754=_0xb47c6e[_0x780404('0x8a6')]-0x1;for(var _0x32040d=_0x406754;_0x32040d>=0x1;_0x32040d--){if(!_0x521a8d(_0x32040d)){_0x406754=_0x32040d;break;}}_0xb47c6e[_0x780404('0x2839')](_0x406754);}function _0xc2cecd(){var _0x52701b=_0x3dd3f3,_0x4a6cdb=_0xb47c6e[_0x52701b('0x8a6')]+0x1;for(var _0x96cc71=_0x4a6cdb;_0x96cc71<=_0xb47c6e[_0x52701b('0x800')]['length'];_0x96cc71++){if(!_0x521a8d(_0x96cc71)){_0x4a6cdb=_0x96cc71;break;}}_0xb47c6e[_0x52701b('0x2839')](_0x4a6cdb);}function _0x5b1c44(){var _0xd3bbc1=_0x3dd3f3;_0xb47c6e[_0xd3bbc1('0x2839')](_0xb47c6e['steps']['length']);}function _0x40bbe3(){return _0xb47c6e['currentStepNumber']===0x1;}function _0x4773aa(){var _0xb06d11=_0x3dd3f3;return _0xb47c6e['currentStepNumber']===_0xb47c6e[_0xb06d11('0x800')][_0xb06d11('0x25ae')];}function _0x17faea(_0x1337a8){if(!_0x4bd4f7(_0x1337a8))return null;return _0xb47c6e['currentStepNumber']===_0x1337a8;}function _0x438301(_0x4266c7){var _0x40c9ef=_0x3dd3f3;if(!_0x4bd4f7(_0x4266c7))return null;return _0xb47c6e[_0x40c9ef('0x800')][_0x4266c7-0x1][_0x40c9ef('0x2ba')][_0x40c9ef('0xd4e')];}function _0x75e275(_0x4e7587){var _0x54911a=_0x3dd3f3;if(!_0x4bd4f7(_0x4e7587))return null;if(_0x438301(_0x4e7587))return!![];return _0xb47c6e['steps'][_0x4e7587-0x1][_0x54911a('0x5f2')][_0x54911a('0x1d85')];}function _0x473a63(_0x3f4d35){if(!_0x4bd4f7(_0x3f4d35))return null;var _0x47b26c=![];for(var _0x23d7b3=0x1;_0x23d7b3<_0x3f4d35;_0x23d7b3++){if(!_0x75e275(_0x23d7b3)){_0x47b26c=!![];break;}}return _0x47b26c;}function _0x3c24ce(_0x4a3dbb){var _0x227aee=_0x3dd3f3;return!_0x521a8d(_0x4a3dbb[_0x227aee('0xaac')]);}function _0x54c023(){var _0x33886d=_0x3dd3f3;return _0xb47c6e[_0x33886d('0x1531')][_0x33886d('0x1d85')];}_0xb47c6e[_0x3dd3f3('0xe48')]=_0x472292,_0xb47c6e[_0x3dd3f3('0x19cb')]=_0x3647ea,_0xb47c6e[_0x3dd3f3('0x218a')]=_0x237a02,_0xb47c6e[_0x3dd3f3('0xf09')]=_0x70cf1,_0xb47c6e[_0x3dd3f3('0xc84')]=_0xe161b4,_0xb47c6e[_0x3dd3f3('0x2839')]=_0x2e8f18,_0xb47c6e[_0x3dd3f3('0x2494')]=_0x4637df,_0xb47c6e['gotoPreviousStep']=_0x5dd877,_0xb47c6e[_0x3dd3f3('0x208d')]=_0xc2cecd,_0xb47c6e[_0x3dd3f3('0x1ca6')]=_0x565484,_0xb47c6e[_0x3dd3f3('0x1eb9')]=_0x5b1c44,_0xb47c6e[_0x3dd3f3('0x148d')]=_0x40bbe3,_0xb47c6e[_0x3dd3f3('0x186e')]=_0x4773aa,_0xb47c6e[_0x3dd3f3('0xf11')]=_0x17faea,_0xb47c6e[_0x3dd3f3('0xe63')]=_0x473a63,_0xb47c6e[_0x3dd3f3('0x106e')]=_0x438301,_0xb47c6e[_0x3dd3f3('0x113d')]=_0x521a8d,_0xb47c6e['filterHiddenStep']=_0x3c24ce,_0xb47c6e['isStepValid']=_0x75e275,_0xb47c6e[_0x3dd3f3('0x27c2')]=_0x4bd4f7,_0xb47c6e['isFormValid']=_0x54c023;}function _0x3bede6(){var _0x294507=_0xb635d2;return{'restrict':'A','scope':{},'require':[_0x294507('0x5f2'),_0x294507('0x33e')],'priority':0x3e9,'controller':'MsStepperController\x20as\x20MsStepper','bindToController':{'model':_0x294507('0x28a7')},'transclude':!![],'templateUrl':_0x198b93,'compile':function _0x34b11c(_0x5b62f5){var _0x450e4a=_0x294507;return _0x5b62f5[_0x450e4a('0x500')](_0x450e4a('0x1625')),function _0x32d3a1(_0x2b8050,_0x5f0fc5,_0x5b4259,_0x55c909){var _0x453e82=_0x450e4a,_0x7d9c65=_0x55c909[0x0],_0x4f6aaf=_0x55c909[0x1];_0x4f6aaf[_0x453e82('0xe48')]('horizontal'),_0x4f6aaf[_0x453e82('0x19cb')](_0x7d9c65),_0x4f6aaf[_0x453e82('0xf09')]();};}};}function _0x4e8f26(){var _0x20a25b=_0xb635d2;return{'restrict':'E','require':[_0x20a25b('0x5f2'),'^msHorizontalStepper'],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function _0x406641(_0x3f2887){var _0x5cdd45=_0x20a25b;return _0x3f2887[_0x5cdd45('0x500')]('ms-stepper-step'),function _0x2e76c7(_0x4a1cc6,_0x3b1798,_0x254e77,_0x53c343){var _0x5e797b=_0x5cdd45,_0x1217d0=_0x53c343[0x0],_0x22c6ed=_0x53c343[0x1];_0x4a1cc6[_0x5e797b('0xd4e')]=angular[_0x5e797b('0x1d95')](_0x254e77[_0x5e797b('0xd4e')]),_0x22c6ed[_0x5e797b('0x218a')](_0x3b1798,_0x4a1cc6,_0x1217d0),_0x3b1798[_0x5e797b('0x11ed')]();};}};}function _0x230988(_0x54f288){var _0x31cc18=_0xb635d2;return{'restrict':'A','scope':{},'require':[_0x31cc18('0x5f2'),_0x31cc18('0x1b02')],'priority':0x3e9,'controller':_0x31cc18('0x1187'),'bindToController':{'model':_0x31cc18('0x28a7')},'transclude':!![],'templateUrl':_0xf9028a,'compile':function _0x1f8aae(_0xbdc3bd){var _0x3351ff=_0x31cc18;return _0xbdc3bd[_0x3351ff('0x500')](_0x3351ff('0x1625')),function _0x119921(_0x7ed624,_0x2ab13f,_0x2384d9,_0x188d73){var _0x8afe11=_0x188d73[0x0],_0x8491f=_0x188d73[0x1];_0x54f288(function(){var _0xdffcec=a0_0x5325;_0x8491f['setOrientation']('vertical'),_0x8491f[_0xdffcec('0x19cb')](_0x8afe11),_0x8491f[_0xdffcec('0xf09')]();});};}};}function _0x1cbf53(){var _0x51e57e=_0xb635d2;return{'restrict':'E','require':['form',_0x51e57e('0xa89')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x144d3d,'compile':function _0x1b9be0(_0x3cb295){var _0x2b006c=_0x51e57e;return _0x3cb295[_0x2b006c('0x500')](_0x2b006c('0x26e3')),function _0x4e2cd7(_0x2229e3,_0x5b791f,_0x1ff374,_0x2eb3a3){var _0x3e4234=_0x2b006c,_0x4f2bd7=_0x2eb3a3[0x0],_0x46a366=_0x2eb3a3[0x1];_0x2229e3[_0x3e4234('0xd4e')]=angular[_0x3e4234('0x1d95')](_0x1ff374[_0x3e4234('0xd4e')]),_0x2229e3[_0x3e4234('0x1efe')]=_0x46a366['registerStep'](_0x5b791f,_0x2229e3,_0x4f2bd7),_0x2229e3[_0x3e4234('0x2787')]=_0x46a366,_0x5b791f[_0x3e4234('0xf15')](_0x3e4234('0x2e7'))[_0x3e4234('0x11ed')]();};}};}const _0x463559=_0x59426a['p']+'src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll-[chunkhash].html';;function _0x8a00b9(){var _0x31b72b=_0xb635d2,_0x1b3aea=this;_0x1b3aea[_0x31b72b('0x104c')]=_0x594b6b,_0x1b3aea[_0x31b72b('0x1bb2')]=_0x552bfc;function _0x594b6b(_0x166734){var _0x1977bd=_0x31b72b;_0x166734=='left'?$(_0x1977bd('0x276c'))[_0x1977bd('0x25f2')]()[_0x1977bd('0x1ea1')]({'scrollLeft':_0x1977bd('0x101d')},0x3e8):$(_0x1977bd('0x276c'))[_0x1977bd('0x25f2')]()[_0x1977bd('0x1ea1')]({'scrollLeft':_0x1977bd('0x2733')},0x3e8);}function _0x552bfc(_0x43474c){var _0x4e8b34=_0x31b72b;switch(_0x5c42d0()){case _0x4e8b34('0x26ce'):return!![];case _0x4e8b34('0xe4c'):return _0x43474c==_0x4e8b34('0xe4c')?!![]:![];case _0x4e8b34('0xf7c'):return _0x43474c==_0x4e8b34('0xf7c')?!![]:![];case'none':return![];default:return![];}}function _0x5c42d0(){var _0x843219=_0x31b72b,_0x49dac3=document['getElementById']('bar-container'),_0x2dca36=document[_0x843219('0x232')]('tab-container');if(_0x2dca36['scrollWidth']>_0x49dac3[_0x843219('0x2a3')]&&_0x49dac3[_0x843219('0x2112')]==0x0&&_0x2dca36[_0x843219('0x2112')]==0x0)return _0x843219('0xf7c');else{if(_0x2dca36[_0x843219('0x2a3')]>_0x49dac3[_0x843219('0x2a3')]&&_0x2dca36[_0x843219('0x2112')]>_0x49dac3[_0x843219('0x2112')]&&_0x49dac3[_0x843219('0x2a3')]+_0x2dca36[_0x843219('0x2112')]>=_0x2dca36['scrollWidth'])return _0x843219('0xe4c');else return _0x2dca36[_0x843219('0x2a3')]>_0x49dac3[_0x843219('0x2a3')]&&_0x2dca36[_0x843219('0x2112')]>_0x49dac3[_0x843219('0x2112')]&&_0x49dac3['scrollWidth']+_0x2dca36['scrollLeft']<_0x2dca36[_0x843219('0x2a3')]?_0x843219('0x26ce'):_0x843219('0x23ca');}}}function _0x14d9ab(){var _0x4fb56b=_0xb635d2;return{'restrict':'E','scope':{},'transclude':!![],'controller':_0x4fb56b('0x673'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x463559,'compile':function _0x5a2484(_0x3d9660){var _0x36e7f1=_0x4fb56b;return _0x3d9660['addClass'](_0x36e7f1('0xc5c')),function _0x44eae2(){};}};}_0x15f025['$inject']=[_0xb635d2('0x1a0b'),'$q'];function _0x30d7db(){var _0x867db4=_0xb635d2,_0x2c1314=this;_0x2c1314[_0x867db4('0xcb3')]=undefined,_0x2c1314[_0x867db4('0x1071')]=_0x43fb43,_0x2c1314['getScrollEl']=_0xef0c2c;function _0x43fb43(_0x171006){var _0xec4281=_0x867db4;_0x2c1314[_0xec4281('0xcb3')]=_0x171006;}function _0xef0c2c(){var _0x504c79=_0x867db4;return _0x2c1314[_0x504c79('0xcb3')];}}function _0x24a964(){var _0x374504=_0xb635d2;return{'scope':{'msTimeline':'=?','loadMore':_0x374504('0x1d21')},'controller':'MsTimelineController','compile':function _0x1e11d8(_0x27ba53){var _0x2ca8c2=_0x374504;return _0x27ba53[_0x2ca8c2('0x500')](_0x2ca8c2('0x17fb')),function _0x5aae00(_0xabb29d,_0x3c4d3f,_0x21d6b5,_0x2e8dd7){var _0x1c6a9e=_0x2ca8c2,_0x5dacd3=angular[_0x1c6a9e('0x24a1')](_0x1c6a9e('0x2748'));_0x3c4d3f['append'](_0x5dacd3);var _0x5be7d6={'scrollEl':_0x1c6a9e('0x142f')};_0x5be7d6=angular['extend'](_0x5be7d6,_0xabb29d[_0x1c6a9e('0x15ab')],{});var _0x3f7624=angular[_0x1c6a9e('0x24a1')](_0x5be7d6[_0x1c6a9e('0xcb3')]);_0x2e8dd7[_0x1c6a9e('0x1071')](_0x3f7624);var _0x2c0a9b=0x90;_0x462453();function _0x26fab6(){var _0x3d9843=_0x1c6a9e;_0x3f7624[_0x3d9843('0x1e15')]()+_0x3f7624['height']()+_0x2c0a9b>_0x5dacd3[_0x3d9843('0x1c0b')]()[_0x3d9843('0x9db')]&&(_0x5dacd3[_0x3d9843('0x500')](_0x3d9843('0x26b2')),_0x51562f(),_0xabb29d[_0x3d9843('0x14ba')]()[_0x3d9843('0xe19')](function(){_0x5dacd3['removeClass']('show'),_0x462453();},function(){_0x5dacd3['remove']();}));}function _0x462453(){var _0x22e7d2=_0x1c6a9e;_0x3f7624['on'](_0x22e7d2('0x1b78'),_0x26fab6);}function _0x51562f(){var _0x99996b=_0x1c6a9e;_0x3f7624[_0x99996b('0xe5')](_0x99996b('0x1b78'),_0x26fab6);}_0xabb29d[_0x1c6a9e('0xb2b')]('$destroy',function(){_0x51562f();});};}};}function _0x15f025(_0x241873,_0x25595e){var _0x458764=_0xb635d2;return{'scope':!![],'require':_0x458764('0x4ae'),'compile':function _0x3d4e58(_0x5e766c){var _0x349637=_0x458764;return _0x5e766c[_0x349637('0x500')](_0x349637('0x18e3'))['addClass'](_0x349637('0x1c21')),function _0x2bbcdf(_0x2380a3,_0x49b406,_0x47257d,_0x283256){var _0x30418b=_0x349637,_0x1d69dd=0x48,_0x4e9713=![],_0x43a8c7=![],_0x1ccdb4=_0x283256[_0x30418b('0x5c3')]();_0x4d4772();function _0x4d4772(){var _0x961d00=_0x30418b;_0x49b406['find'](_0x961d00('0xcb4'))?_0x2380a3[_0x961d00('0xb2b')](_0x961d00('0x759'),function(_0x441a60,_0x2a2639){var _0x5a1852=_0x961d00,_0x294819=angular[_0x5a1852('0x24a1')](_0x2a2639[0x0]);_0x6d988b(_0x294819)[_0x5a1852('0xe19')](function(){_0x241873(function(){_0x4e9713=!![];});});}):_0x6d988b(_0x49b406)['then'](function(){_0x241873(function(){_0x4e9713=!![];});}),_0x1ccdb4['on'](_0x961d00('0x1b78'),_0x354004),_0x354004();}var _0x1bca52=_0x2380a3[_0x30418b('0x107')](function(){return _0x4e9713&&_0x43a8c7;},function(_0x3dacd0,_0x2a7900){var _0x44e3cb=_0x30418b;if(angular[_0x44e3cb('0x1f15')](_0x3dacd0,_0x2a7900))return;_0x3dacd0&&(_0x49b406[_0x44e3cb('0x850')]('hidden')[_0x44e3cb('0x500')](_0x44e3cb('0x1ea1')),_0x1bca52());},!![]);function _0x6d988b(_0x5b62d5){var _0x33d2b8=_0x30418b,_0xfc119d=_0x25595e['defer'](),_0x5f359c=_0x5b62d5['find'](_0x33d2b8('0xc15'));return _0x5f359c[_0x33d2b8('0x25ae')]>0x0?_0x5f359c['on'](_0x33d2b8('0xcfe'),function(){var _0x4c2b89=_0x33d2b8;_0xfc119d[_0x4c2b89('0xcd6')](_0x4c2b89('0xc9'));}):_0xfc119d['resolve'](_0x33d2b8('0xaa')),_0xfc119d[_0x33d2b8('0x9c8')];}function _0x354004(){var _0x4c246a=_0x30418b;_0x1ccdb4['scrollTop']()+_0x1ccdb4[_0x4c246a('0x131e')]()>_0x49b406['position']()[_0x4c246a('0x9db')]+_0x1d69dd&&(_0x241873(function(){_0x43a8c7=!![];}),_0x1ccdb4[_0x4c246a('0xe5')](_0x4c246a('0x1b78'),_0x354004));}};}};}_0x457188[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c1a'),'$window',_0xb635d2('0x2493'),_0xb635d2('0x1938'),_0xb635d2('0x1abd'),_0xb635d2('0xa74')];function _0x457188(_0x4c3fa2,_0x45ad60,_0xb5cf83,_0x309260,_0x530f50,_0x5a4da9,_0x2fb36a,_0x32b81d,_0x59cc23){var _0x9a3fd0=_0xb635d2;typeof String['prototype']['trim']!==_0x9a3fd0('0x146d')&&(String['prototype'][_0x9a3fd0('0x26b4')]=function(){var _0x48d463=_0x9a3fd0;return this[_0x48d463('0x1b42')](/^\s+|\s+$/g,'');});_0x4c3fa2[_0x9a3fd0('0x2646')]=_0x2fb36a[_0x9a3fd0('0x2646')]||_0x2fb36a[_0x9a3fd0('0xb15')];_0x32b81d[_0x9a3fd0('0x158f')]()['trim']()['length']===0x0?_0x32b81d[_0x9a3fd0('0x1d0a')](_0x59cc23(_0x9a3fd0('0x23e0'))(_0x4c3fa2)):_0x32b81d['append'](_0x59cc23(_0x32b81d[_0x9a3fd0('0x181d')]())(_0x4c3fa2));_0x4c3fa2[_0x9a3fd0('0x134c')]=_0x4c3fa2['intervalAttr']||0x3e8,_0x4c3fa2[_0x9a3fd0('0x257a')]=null,_0x4c3fa2[_0x9a3fd0('0x2098')]=null,_0x4c3fa2['timeoutId']=null,_0x4c3fa2[_0x9a3fd0('0x1f66')]=_0x4c3fa2[_0x9a3fd0('0x1ac0')]&&parseInt(_0x4c3fa2[_0x9a3fd0('0x1ac0')],0xa)>=0x0?parseInt(_0x4c3fa2[_0x9a3fd0('0x1ac0')],0xa):undefined,_0x4c3fa2[_0x9a3fd0('0xf7')]=![],_0x4c3fa2['$watch'](_0x9a3fd0('0x21fa'),function(_0x3909e7,_0x23ae84){var _0x107fbe=_0x9a3fd0;_0x3909e7!==_0x23ae84&&_0x4c3fa2[_0x107fbe('0xf7')]&&_0x4c3fa2['start']();}),_0x4c3fa2[_0x9a3fd0('0xb2b')]('timer-start',function(){var _0x384be4=_0x9a3fd0;_0x4c3fa2[_0x384be4('0x157d')]();}),_0x4c3fa2[_0x9a3fd0('0xb2b')](_0x9a3fd0('0x178e'),function(){var _0x2fe5d5=_0x9a3fd0;_0x4c3fa2[_0x2fe5d5('0x1d14')]();}),_0x4c3fa2[_0x9a3fd0('0xb2b')](_0x9a3fd0('0x2ae'),function(){var _0x2e5745=_0x9a3fd0;_0x4c3fa2[_0x2e5745('0x25f2')]();}),_0x4c3fa2['$on'](_0x9a3fd0('0x276f'),function(){var _0x3d22aa=_0x9a3fd0;_0x4c3fa2[_0x3d22aa('0x1f92')]();}),_0x4c3fa2['$on']('timer-set-countdown',function(_0x4972ea,_0x48a638){var _0x593ce7=_0x9a3fd0;_0x4c3fa2[_0x593ce7('0x1f66')]=_0x48a638;});function _0x52fcac(){var _0x22b88f=_0x9a3fd0;_0x4c3fa2[_0x22b88f('0x23c8')]&&clearTimeout(_0x4c3fa2['timeoutId']);}_0x4c3fa2[_0x9a3fd0('0x157d')]=function(){var _0x2f83b9=_0x9a3fd0,_0x42af3b=_0x4ddcaa()(),_0x20cbe3=_0x4c3fa2['startTimeAttr']?_0x4ddcaa()(_0x4c3fa2['startTimeAttr']):null;!_0x20cbe3||_0x20cbe3>_0x42af3b?_0x4c3fa2[_0x2f83b9('0x257a')]=_0x42af3b:_0x4c3fa2[_0x2f83b9('0x257a')]=_0x20cbe3;var _0x6a82b4=_0x4c3fa2['endTimeAttr']?_0x4ddcaa()(_0x4c3fa2['endTimeAttr']):null;!_0x6a82b4||_0x6a82b4<_0x42af3b?_0x4c3fa2['endTime']=null:_0x4c3fa2['endTime']=_0x6a82b4,!_0x4c3fa2[_0x2f83b9('0x1f66')]&&(_0x4c3fa2['countdown']=_0x4c3fa2[_0x2f83b9('0x1ac0')]&&parseInt(_0x4c3fa2[_0x2f83b9('0x1ac0')],0xa)>0x0?parseInt(_0x4c3fa2[_0x2f83b9('0x2654')],0xa):undefined),_0x52fcac(),_0x3c6b70(),_0x4c3fa2[_0x2f83b9('0xf7')]=!![];},_0x32b81d[0x0][_0x9a3fd0('0x157d')]=_0x4c3fa2['start'],_0x4c3fa2['resume']=function(){var _0x17f09f=_0x9a3fd0;_0x52fcac(),_0x4c3fa2[_0x17f09f('0x1ac0')]&&(_0x4c3fa2['countdown']+=0x1),_0x4c3fa2[_0x17f09f('0x257a')]=_0x4ddcaa()()[_0x17f09f('0x2e2')](_0x4ddcaa()(_0x4c3fa2['stoppedTime'])[_0x17f09f('0x2e2')](_0x4ddcaa()(_0x4c3fa2[_0x17f09f('0x257a')]))),_0x3c6b70(),_0x4c3fa2['isRunning']=!![];},_0x32b81d[0x0]['resume']=_0x4c3fa2[_0x9a3fd0('0x1d14')],_0x4c3fa2['stop']=function(){var _0x31d929=_0x9a3fd0;_0x4c3fa2['clear'](),_0x4c3fa2[_0x31d929('0xbbd')](_0x31d929('0x180f'),{'timeoutId':_0x4c3fa2['timeoutId'],'millis':_0x4c3fa2[_0x31d929('0x1362')],'seconds':_0x4c3fa2[_0x31d929('0x8ec')],'minutes':_0x4c3fa2[_0x31d929('0x25eb')],'hours':_0x4c3fa2[_0x31d929('0x1c59')],'days':_0x4c3fa2[_0x31d929('0x1b05')]});},_0x4c3fa2[_0x9a3fd0('0x1c98')]=_0x4c3fa2[_0x9a3fd0('0x25f2')],_0x32b81d[0x0][_0x9a3fd0('0x25f2')]=_0x4c3fa2[_0x9a3fd0('0x25f2')],_0x32b81d[0x0][_0x9a3fd0('0x1c98')]=_0x4c3fa2[_0x9a3fd0('0x25f2')],_0x4c3fa2[_0x9a3fd0('0x1f92')]=function(){var _0xea7431=_0x9a3fd0;_0x4c3fa2[_0xea7431('0x1b19')]=_0x4ddcaa()(),_0x52fcac(),_0x4c3fa2[_0xea7431('0x23c8')]=null,_0x4c3fa2['isRunning']=![];},_0x32b81d[0x0][_0x9a3fd0('0x1f92')]=_0x4c3fa2['clear'],_0x32b81d[_0x9a3fd0('0x235b')](_0x9a3fd0('0x5cd'),function(){var _0x433530=_0x9a3fd0;_0x52fcac(),_0x4c3fa2[_0x433530('0xf7')]=![];});function _0x56b7e6(){var _0x2ec835=_0x9a3fd0;_0x2fb36a[_0x2ec835('0x257a')]!==undefined&&(_0x4c3fa2[_0x2ec835('0x1362')]=_0x4ddcaa()()[_0x2ec835('0x2e2')](_0x4ddcaa()(_0x4c3fa2[_0x2ec835('0x257a')])));if(!_0x4c3fa2[_0x2ec835('0x399')]||_0x4c3fa2[_0x2ec835('0x399')]===_0x2ec835('0x2103'))_0x4c3fa2[_0x2ec835('0x8ec')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x3e8%0x3c),_0x4c3fa2[_0x2ec835('0x25eb')]=Math['floor'](_0x4c3fa2[_0x2ec835('0x1362')]/0xea60%0x3c),_0x4c3fa2[_0x2ec835('0x1c59')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x36ee80%0x18),_0x4c3fa2[_0x2ec835('0x1b05')]=Math['floor'](_0x4c3fa2[_0x2ec835('0x1362')]/0x36ee80/0x18),_0x4c3fa2['months']=0x0,_0x4c3fa2[_0x2ec835('0xdf0')]=0x0;else{if(_0x4c3fa2[_0x2ec835('0x399')]==='second')_0x4c3fa2[_0x2ec835('0x8ec')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2['millis']/0x3e8),_0x4c3fa2[_0x2ec835('0x25eb')]=0x0,_0x4c3fa2[_0x2ec835('0x1c59')]=0x0,_0x4c3fa2['days']=0x0,_0x4c3fa2['months']=0x0,_0x4c3fa2[_0x2ec835('0xdf0')]=0x0;else{if(_0x4c3fa2[_0x2ec835('0x399')]==='minute')_0x4c3fa2[_0x2ec835('0x8ec')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x3e8%0x3c),_0x4c3fa2['minutes']=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0xea60),_0x4c3fa2[_0x2ec835('0x1c59')]=0x0,_0x4c3fa2[_0x2ec835('0x1b05')]=0x0,_0x4c3fa2[_0x2ec835('0x376')]=0x0,_0x4c3fa2['years']=0x0;else{if(_0x4c3fa2['maxTimeUnit']===_0x2ec835('0x25f5'))_0x4c3fa2[_0x2ec835('0x8ec')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2['millis']/0x3e8%0x3c),_0x4c3fa2[_0x2ec835('0x25eb')]=Math['floor'](_0x4c3fa2[_0x2ec835('0x1362')]/0xea60%0x3c),_0x4c3fa2['hours']=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x36ee80),_0x4c3fa2[_0x2ec835('0x1b05')]=0x0,_0x4c3fa2['months']=0x0,_0x4c3fa2['years']=0x0;else{if(_0x4c3fa2[_0x2ec835('0x399')]===_0x2ec835('0x211c'))_0x4c3fa2['seconds']=Math['floor'](_0x4c3fa2[_0x2ec835('0x1362')]/0x3e8%0x3c),_0x4c3fa2[_0x2ec835('0x25eb')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2['millis']/0xea60%0x3c),_0x4c3fa2[_0x2ec835('0x1c59')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x36ee80%0x18),_0x4c3fa2[_0x2ec835('0x1b05')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x36ee80/0x18%0x1e),_0x4c3fa2[_0x2ec835('0x376')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x36ee80/0x18/0x1e),_0x4c3fa2['years']=0x0;else _0x4c3fa2[_0x2ec835('0x399')]===_0x2ec835('0x1923')&&(_0x4c3fa2[_0x2ec835('0x8ec')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2['millis']/0x3e8%0x3c),_0x4c3fa2['minutes']=Math['floor'](_0x4c3fa2[_0x2ec835('0x1362')]/0xea60%0x3c),_0x4c3fa2[_0x2ec835('0x1c59')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2['millis']/0x36ee80%0x18),_0x4c3fa2[_0x2ec835('0x1b05')]=Math['floor'](_0x4c3fa2['millis']/0x36ee80/0x18%0x1e),_0x4c3fa2[_0x2ec835('0x376')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x36ee80/0x18/0x1e%0xc),_0x4c3fa2[_0x2ec835('0xdf0')]=Math[_0x2ec835('0x6ac')](_0x4c3fa2[_0x2ec835('0x1362')]/0x36ee80/0x18/0x16d));}}}}_0x4c3fa2[_0x2ec835('0x1e09')]=_0x4c3fa2['seconds']===0x1||_0x4c3fa2[_0x2ec835('0x8ec')]===0x0?'':'s',_0x4c3fa2['minutesS']=_0x4c3fa2[_0x2ec835('0x25eb')]===0x1||_0x4c3fa2['minutes']===0x0?'':'s',_0x4c3fa2[_0x2ec835('0x25ed')]=_0x4c3fa2['hours']===0x1||_0x4c3fa2[_0x2ec835('0x1c59')]===0x0?'':'s',_0x4c3fa2[_0x2ec835('0x2721')]=_0x4c3fa2[_0x2ec835('0x1b05')]===0x1||_0x4c3fa2[_0x2ec835('0x1b05')]===0x0?'':'s',_0x4c3fa2['monthsS']=_0x4c3fa2[_0x2ec835('0x376')]===0x1||_0x4c3fa2[_0x2ec835('0x376')]===0x0?'':'s',_0x4c3fa2[_0x2ec835('0x250c')]=_0x4c3fa2[_0x2ec835('0xdf0')]===0x1||_0x4c3fa2[_0x2ec835('0xdf0')]===0x0?'':'s',_0x4c3fa2[_0x2ec835('0x92b')]=_0x4c3fa2['seconds']<0xa?'0'+_0x4c3fa2[_0x2ec835('0x8ec')]:_0x4c3fa2[_0x2ec835('0x8ec')],_0x4c3fa2[_0x2ec835('0x156c')]=_0x4c3fa2[_0x2ec835('0x25eb')]<0xa?'0'+_0x4c3fa2['minutes']:_0x4c3fa2['minutes'],_0x4c3fa2[_0x2ec835('0x21bf')]=_0x4c3fa2[_0x2ec835('0x1c59')]<0xa?'0'+_0x4c3fa2[_0x2ec835('0x1c59')]:_0x4c3fa2['hours'],_0x4c3fa2[_0x2ec835('0xe46')]=_0x4c3fa2[_0x2ec835('0x1b05')]<0xa?'0'+_0x4c3fa2[_0x2ec835('0x1b05')]:_0x4c3fa2[_0x2ec835('0x1b05')],_0x4c3fa2[_0x2ec835('0x13a8')]=_0x4c3fa2[_0x2ec835('0x376')]<0xa?'0'+_0x4c3fa2[_0x2ec835('0x376')]:_0x4c3fa2[_0x2ec835('0x376')],_0x4c3fa2[_0x2ec835('0x165f')]=_0x4c3fa2[_0x2ec835('0xdf0')]<0xa?'0'+_0x4c3fa2['years']:_0x4c3fa2[_0x2ec835('0xdf0')];}var _0x3c6b70=function _0x54e8f9(){var _0x406002=_0x9a3fd0;_0x4c3fa2[_0x406002('0x1362')]=_0x4ddcaa()()[_0x406002('0x2e2')](_0x4c3fa2[_0x406002('0x257a')]);var _0x169a49=_0x4c3fa2[_0x406002('0x1362')]%0x3e8;_0x4c3fa2[_0x406002('0x1027')]&&(_0x4c3fa2['millis']=_0x4ddcaa()(_0x4c3fa2[_0x406002('0x2098')])[_0x406002('0x2e2')](_0x4ddcaa()()),_0x169a49=_0x4c3fa2[_0x406002('0x134c')]-_0x4c3fa2[_0x406002('0x1362')]%0x3e8);_0x4c3fa2[_0x406002('0x1ac0')]&&(_0x4c3fa2[_0x406002('0x1362')]=_0x4c3fa2[_0x406002('0x1f66')]*0x3e8);if(_0x4c3fa2[_0x406002('0x1362')]<0x0){_0x4c3fa2[_0x406002('0x25f2')](),_0x4c3fa2['millis']=0x0,_0x56b7e6();_0x4c3fa2[_0x406002('0xf0')]&&_0x4c3fa2['$eval'](_0x4c3fa2[_0x406002('0xf0')]);return;}_0x56b7e6(),_0x4c3fa2[_0x406002('0x23c8')]=setTimeout(function(){_0x54e8f9(),_0x4c3fa2['$digest']();},_0x4c3fa2[_0x406002('0x134c')]-_0x169a49),_0x4c3fa2[_0x406002('0xbbd')](_0x406002('0xf58'),{'timeoutId':_0x4c3fa2[_0x406002('0x23c8')],'millis':_0x4c3fa2[_0x406002('0x1362')]});if(_0x4c3fa2[_0x406002('0x1f66')]>0x0)_0x4c3fa2[_0x406002('0x1f66')]--;else _0x4c3fa2[_0x406002('0x1f66')]<=0x0&&(_0x4c3fa2[_0x406002('0x25f2')](),_0x4c3fa2[_0x406002('0xf0')]&&_0x4c3fa2[_0x406002('0x2a9')](_0x4c3fa2[_0x406002('0xf0')]));};(_0x4c3fa2[_0x9a3fd0('0x2646')]===undefined||_0x4c3fa2['autoStart']===!![])&&_0x4c3fa2[_0x9a3fd0('0x157d')]();}function _0x450218(){var _0x2005b2=_0xb635d2;return{'restrict':'EA','replace':![],'scope':{'intervalAttr':_0x2005b2('0x1d0e'),'startTimeAttr':'=startTime','endTimeAttr':_0x2005b2('0x5d7'),'countdownAttr':'=countdown','autoStart':_0x2005b2('0x24d2'),'maxTimeUnit':'='},'controller':'MsTimerController'};}const _0x52ce2f=_0x59426a['p']+_0xb635d2('0xa0e');;function _0x28dec4(){return{'restrict':'E','scope':{'ngModel':'='},'controller':['$scope',function _0x55db69(_0x4a6757){var _0xb889ec=a0_0x5325;_0x4a6757['timezone']=[{'name':_0xb889ec('0x1e69'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AD']},{'name':_0xb889ec('0xa3c'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['AE','OM']},{'name':_0xb889ec('0xd2b'),'utcOffset':0x10e,'offsetStr':_0xb889ec('0x1682'),'countries':['AF']},{'name':_0xb889ec('0x847'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AL']},{'name':_0xb889ec('0x354'),'utcOffset':0xf0,'offsetStr':_0xb889ec('0x212b'),'countries':['AM']},{'name':_0xb889ec('0x165e'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AQ']},{'name':_0xb889ec('0x1dd0'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AQ']},{'name':'Antarctica/Mawson','utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['AQ']},{'name':_0xb889ec('0x8d8'),'utcOffset':0x1a4,'offsetStr':_0xb889ec('0x22d'),'countries':['AQ']},{'name':'Antarctica/Casey','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AQ']},{'name':_0xb889ec('0x1e93'),'utcOffset':0x168,'offsetStr':_0xb889ec('0x7b8'),'countries':['AQ']},{'name':'Antarctica/DumontDUrville','utcOffset':0x258,'offsetStr':'+10:00','countries':['AQ']},{'name':_0xb889ec('0x2343'),'utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['AQ']},{'name':_0xb889ec('0x1057'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['AQ']},{'name':_0xb889ec('0x282e'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0xb66'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x228d'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0xda5'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x2739'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x555'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x2560'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x1dcd'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x257d'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x237e'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':'America/Argentina/Rio_Gallegos','utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x27d4'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['AR']},{'name':_0xb889ec('0x1bf4'),'utcOffset':-0x294,'offsetStr':_0xb889ec('0x159b'),'countries':['AS','UM']},{'name':_0xb889ec('0xd88'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AT']},{'name':_0xb889ec('0x1227'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0xb889ec('0xe6a'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':'Australia/Hobart','utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['AU']},{'name':_0xb889ec('0xfa9'),'utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['AU']},{'name':_0xb889ec('0x9fc'),'utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['AU']},{'name':'Australia/Sydney','utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['AU']},{'name':_0xb889ec('0x1bac'),'utcOffset':0x276,'offsetStr':_0xb889ec('0x101'),'countries':['AU']},{'name':_0xb889ec('0x245e'),'utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['AU']},{'name':_0xb889ec('0xad3'),'utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['AU']},{'name':_0xb889ec('0x9e'),'utcOffset':0x276,'offsetStr':_0xb889ec('0x101'),'countries':['AU']},{'name':_0xb889ec('0x1ef6'),'utcOffset':0x23a,'offsetStr':_0xb889ec('0x2200'),'countries':['AU']},{'name':_0xb889ec('0x23bc'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['AU']},{'name':_0xb889ec('0x11da'),'utcOffset':0x20d,'offsetStr':_0xb889ec('0x251c'),'countries':['AU']},{'name':_0xb889ec('0xb0e'),'utcOffset':0xf0,'offsetStr':_0xb889ec('0x212b'),'countries':['AZ']},{'name':_0xb889ec('0xbea'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['BB']},{'name':'Asia/Dhaka','utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},{'name':_0xb889ec('0xe0f'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['BE']},{'name':_0xb889ec('0x160b'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['BG']},{'name':_0xb889ec('0xd52'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['BM']},{'name':_0xb889ec('0x2026'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['BN']},{'name':_0xb889ec('0x150e'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},{'name':_0xb889ec('0x4e6'),'utcOffset':-0x78,'offsetStr':_0xb889ec('0x1814'),'countries':['BR']},{'name':_0xb889ec('0x7a8'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['BR']},{'name':_0xb889ec('0xfa7'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['BR']},{'name':_0xb889ec('0x1c46'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['BR']},{'name':_0xb889ec('0x19ea'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['BR']},{'name':_0xb889ec('0xfae'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0xb889ec('0x1365'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['BR']},{'name':_0xb889ec('0x1b89'),'utcOffset':-0x78,'offsetStr':_0xb889ec('0x1814'),'countries':['BR']},{'name':_0xb889ec('0x2095'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['BR']},{'name':_0xb889ec('0x2312'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['BR']},{'name':_0xb889ec('0x1b0c'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['BR']},{'name':_0xb889ec('0x19b9'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['BR']},{'name':_0xb889ec('0x126'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['BR']},{'name':'America/Manaus','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':_0xb889ec('0x1853'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['BR']},{'name':_0xb889ec('0x2298'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['BR']},{'name':_0xb889ec('0x2766'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['BS']},{'name':'Asia/Thimphu','utcOffset':0x168,'offsetStr':_0xb889ec('0x7b8'),'countries':['BT']},{'name':_0xb889ec('0x5bd'),'utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['BY']},{'name':_0xb889ec('0x2c3'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['BZ']},{'name':_0xb889ec('0x5cc'),'utcOffset':-0xd2,'offsetStr':_0xb889ec('0x1e4'),'countries':['CA']},{'name':'America/Halifax','utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['CA']},{'name':_0xb889ec('0x99f'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['CA']},{'name':_0xb889ec('0x1051'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['CA']},{'name':'America/Goose_Bay','utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['CA']},{'name':_0xb889ec('0xf40'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['CA']},{'name':_0xb889ec('0x207'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['CA']},{'name':_0xb889ec('0xe80'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['CA']},{'name':_0xb889ec('0x115e'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0xb889ec('0x1899'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['CA']},{'name':_0xb889ec('0x266e'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':'America/Resolute','utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['CA']},{'name':_0xb889ec('0x22de'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0xb889ec('0x246e'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['CA']},{'name':_0xb889ec('0x9e3'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0xb889ec('0x19bc'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['CA']},{'name':_0xb889ec('0xdce'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['CA']},{'name':'America/Swift_Current','utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0xb889ec('0x157f'),'utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['CA']},{'name':_0xb889ec('0x22c5'),'utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['CA']},{'name':_0xb889ec('0x108e'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':'America/Inuvik','utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['CA']},{'name':'America/Creston','utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['CA']},{'name':_0xb889ec('0x208c'),'utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['CA']},{'name':'America/Fort_Nelson','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':_0xb889ec('0x2015'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},{'name':_0xb889ec('0x3aa'),'utcOffset':-0x1e0,'offsetStr':_0xb889ec('0x27bc'),'countries':['CA']},{'name':_0xb889ec('0x2710'),'utcOffset':-0x1e0,'offsetStr':_0xb889ec('0x27bc'),'countries':['CA']},{'name':_0xb889ec('0x312'),'utcOffset':0x186,'offsetStr':_0xb889ec('0xb99'),'countries':['CC']},{'name':'Europe/Zurich','utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['CH','DE','LI']},{'name':_0xb889ec('0x18a6'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':_0xb889ec('0xe9e'),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['CK']},{'name':_0xb889ec('0x1bd6'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['CL']},{'name':'Pacific/Easter','utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['CL']},{'name':'Asia/Shanghai','utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['CN']},{'name':_0xb889ec('0x18be'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['CN']},{'name':_0xb889ec('0xd0d'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CO']},{'name':'America/Costa_Rica','utcOffset':-0x168,'offsetStr':'-06:00','countries':['CR']},{'name':_0xb889ec('0xb3a'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['CU']},{'name':_0xb889ec('0x680'),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['CV']},{'name':_0xb889ec('0x286e'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['CW','AW','BQ','SX']},{'name':_0xb889ec('0x2252'),'utcOffset':0x1a4,'offsetStr':_0xb889ec('0x22d'),'countries':['CX']},{'name':_0xb889ec('0x12e4'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['CY']},{'name':_0xb889ec('0x1c23'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['CZ','SK']},{'name':_0xb889ec('0x41b'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['DE']},{'name':_0xb889ec('0x1eef'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['DK']},{'name':_0xb889ec('0x161c'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['DO']},{'name':_0xb889ec('0x199e'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DZ']},{'name':_0xb889ec('0x2205'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['EC']},{'name':_0xb889ec('0x869'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['EC']},{'name':_0xb889ec('0x13'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['EE']},{'name':_0xb889ec('0x123a'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['EG']},{'name':'Africa/El_Aaiun','utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['EH']},{'name':'Europe/Madrid','utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},{'name':_0xb889ec('0x1bb8'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},{'name':_0xb889ec('0x2770'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['ES']},{'name':_0xb889ec('0x264d'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['FI','AX']},{'name':'Pacific/Fiji','utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['FJ']},{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['FK']},{'name':'Pacific/Chuuk','utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['FM']},{'name':_0xb889ec('0xe09'),'utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['FM']},{'name':_0xb889ec('0x11d5'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['FM']},{'name':_0xb889ec('0xa0b'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['FO']},{'name':_0xb889ec('0x6b9'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['FR']},{'name':_0xb889ec('0x514'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['GB','GG','IM','JE']},{'name':'Asia/Tbilisi','utcOffset':0xf0,'offsetStr':'+04:00','countries':['GE']},{'name':'America/Cayenne','utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['GF']},{'name':_0xb889ec('0x483'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['GH']},{'name':_0xb889ec('0x14c3'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['GI']},{'name':_0xb889ec('0x1bbf'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['GL']},{'name':'America/Danmarkshavn','utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['GL']},{'name':'America/Scoresbysund','utcOffset':-0x3c,'offsetStr':_0xb889ec('0x1de'),'countries':['GL']},{'name':_0xb889ec('0x26b'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['GL']},{'name':_0xb889ec('0x1524'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['GR']},{'name':_0xb889ec('0x1851'),'utcOffset':-0x78,'offsetStr':_0xb889ec('0x1814'),'countries':['GS']},{'name':'America/Guatemala','utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['GT']},{'name':_0xb889ec('0x2823'),'utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['GU','MP']},{'name':_0xb889ec('0x388'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['GW']},{'name':_0xb889ec('0x1bce'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['GY']},{'name':_0xb889ec('0x426'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['HK']},{'name':_0xb889ec('0x1391'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['HN']},{'name':'America/Port-au-Prince','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['HT']},{'name':_0xb889ec('0x22f7'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['HU']},{'name':_0xb889ec('0x2054'),'utcOffset':0x1a4,'offsetStr':_0xb889ec('0x22d'),'countries':['ID']},{'name':_0xb889ec('0x963'),'utcOffset':0x1a4,'offsetStr':_0xb889ec('0x22d'),'countries':['ID']},{'name':_0xb889ec('0x7df'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['ID']},{'name':_0xb889ec('0x26f4'),'utcOffset':0x21c,'offsetStr':_0xb889ec('0x418'),'countries':['ID']},{'name':_0xb889ec('0xf8f'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['IE']},{'name':'Asia/Jerusalem','utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['IL']},{'name':_0xb889ec('0x548'),'utcOffset':0x14a,'offsetStr':_0xb889ec('0x4af'),'countries':['IN']},{'name':_0xb889ec('0xe97'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['IO']},{'name':_0xb889ec('0x1763'),'utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['IQ']},{'name':'Asia/Tehran','utcOffset':0xd2,'offsetStr':_0xb889ec('0x1dad'),'countries':['IR']},{'name':_0xb889ec('0x2797'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['IS']},{'name':_0xb889ec('0xa6b'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['IT','SM','VA']},{'name':_0xb889ec('0x273a'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['JM']},{'name':_0xb889ec('0x43b'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['JO']},{'name':'Asia/Tokyo','utcOffset':0x21c,'offsetStr':'+09:00','countries':['JP']},{'name':_0xb889ec('0x2084'),'utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':_0xb889ec('0x1c90'),'utcOffset':0x168,'offsetStr':_0xb889ec('0x7b8'),'countries':['KG']},{'name':_0xb889ec('0x19e4'),'utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['KI']},{'name':_0xb889ec('0xfc1'),'utcOffset':0x30c,'offsetStr':_0xb889ec('0x10d0'),'countries':['KI']},{'name':'Pacific/Kiritimati','utcOffset':0x348,'offsetStr':_0xb889ec('0x2183'),'countries':['KI']},{'name':'Asia/Pyongyang','utcOffset':0x1fe,'offsetStr':'+08:30','countries':['KP']},{'name':_0xb889ec('0xebc'),'utcOffset':0x21c,'offsetStr':_0xb889ec('0x418'),'countries':['KR']},{'name':_0xb889ec('0x14b2'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['KY']},{'name':_0xb889ec('0x1558'),'utcOffset':0x168,'offsetStr':_0xb889ec('0x7b8'),'countries':['KZ']},{'name':'Asia/Qyzylorda','utcOffset':0x168,'offsetStr':_0xb889ec('0x7b8'),'countries':['KZ']},{'name':_0xb889ec('0x1997'),'utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['KZ']},{'name':_0xb889ec('0xe64'),'utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['KZ']},{'name':_0xb889ec('0xbb4'),'utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['KZ']},{'name':_0xb889ec('0x12bd'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LB']},{'name':_0xb889ec('0x2000'),'utcOffset':0x14a,'offsetStr':_0xb889ec('0x4af'),'countries':['LK']},{'name':_0xb889ec('0x1f93'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['LR']},{'name':_0xb889ec('0x1a81'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LT']},{'name':_0xb889ec('0xded'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['LU']},{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['LV']},{'name':_0xb889ec('0x273f'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LY']},{'name':'Africa/Casablanca','utcOffset':0x0,'offsetStr':'+00:00','countries':['MA']},{'name':'Europe/Monaco','utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['MC']},{'name':_0xb889ec('0xa39'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['MD']},{'name':_0xb889ec('0x9d5'),'utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['MH']},{'name':_0xb889ec('0x913'),'utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['MH']},{'name':_0xb889ec('0x1237'),'utcOffset':0x186,'offsetStr':_0xb889ec('0xb99'),'countries':['MM']},{'name':'Asia/Ulaanbaatar','utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['MN']},{'name':'Asia/Hovd','utcOffset':0x1a4,'offsetStr':_0xb889ec('0x22d'),'countries':['MN']},{'name':_0xb889ec('0x276a'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['MN']},{'name':'Asia/Macau','utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['MO']},{'name':'America/Martinique','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['MQ']},{'name':_0xb889ec('0x896'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['MT']},{'name':_0xb889ec('0x1de6'),'utcOffset':0xf0,'offsetStr':_0xb889ec('0x212b'),'countries':['MU']},{'name':_0xb889ec('0x1470'),'utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['MV']},{'name':_0xb889ec('0x12fe'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['MX']},{'name':'America/Cancun','utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['MX']},{'name':_0xb889ec('0x1fa9'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['MX']},{'name':_0xb889ec('0x47f'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['MX']},{'name':'America/Matamoros','utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['MX']},{'name':_0xb889ec('0x1c97'),'utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['MX']},{'name':_0xb889ec('0x12fd'),'utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['MX']},{'name':_0xb889ec('0x139e'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},{'name':_0xb889ec('0xf8b'),'utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['MX']},{'name':'America/Tijuana','utcOffset':-0x1e0,'offsetStr':_0xb889ec('0x27bc'),'countries':['MX']},{'name':'America/Santa_Isabel','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},{'name':_0xb889ec('0xab9'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0xb889ec('0x5f'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['MY']},{'name':'Asia/Kuching','utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['MY']},{'name':_0xb889ec('0x2660'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':_0xb889ec('0x558'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['NA']},{'name':'Pacific/Noumea','utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['NC']},{'name':_0xb889ec('0x1528'),'utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['NF']},{'name':_0xb889ec('0x630'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':'America/Managua','utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['NI']},{'name':_0xb889ec('0x11e3'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},{'name':_0xb889ec('0x7ab'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['NO','SJ']},{'name':_0xb889ec('0x3b'),'utcOffset':0x159,'offsetStr':_0xb889ec('0x2859'),'countries':['NP']},{'name':_0xb889ec('0x9b8'),'utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['NR']},{'name':_0xb889ec('0xce4'),'utcOffset':-0x294,'offsetStr':_0xb889ec('0x159b'),'countries':['NU']},{'name':'Pacific/Auckland','utcOffset':0x30c,'offsetStr':_0xb889ec('0x10d0'),'countries':['NZ','AQ']},{'name':_0xb889ec('0x15f4'),'utcOffset':0x339,'offsetStr':'+13:45','countries':['NZ']},{'name':_0xb889ec('0x18a3'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['PA']},{'name':_0xb889ec('0x281'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['PE']},{'name':'Pacific/Tahiti','utcOffset':-0x258,'offsetStr':'-10:00','countries':['PF']},{'name':_0xb889ec('0x20b8'),'utcOffset':-0x23a,'offsetStr':_0xb889ec('0xf01'),'countries':['PF']},{'name':_0xb889ec('0x8d'),'utcOffset':-0x21c,'offsetStr':_0xb889ec('0x1e45'),'countries':['PF']},{'name':_0xb889ec('0x619'),'utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['PG']},{'name':_0xb889ec('0x16ae'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['PG']},{'name':_0xb889ec('0x547'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['PH']},{'name':_0xb889ec('0x1462'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},{'name':'Europe/Warsaw','utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['PL']},{'name':'America/Miquelon','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PM']},{'name':_0xb889ec('0x1849'),'utcOffset':-0x1e0,'offsetStr':_0xb889ec('0x27bc'),'countries':['PN']},{'name':_0xb889ec('0x56d'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['PR']},{'name':_0xb889ec('0x213a'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['PS']},{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['PS']},{'name':_0xb889ec('0xe37'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['PT']},{'name':_0xb889ec('0x2420'),'utcOffset':0x0,'offsetStr':_0xb889ec('0xd99'),'countries':['PT']},{'name':_0xb889ec('0x1d01'),'utcOffset':-0x3c,'offsetStr':_0xb889ec('0x1de'),'countries':['PT']},{'name':'Pacific/Palau','utcOffset':0x21c,'offsetStr':_0xb889ec('0x418'),'countries':['PW']},{'name':_0xb889ec('0x8bc'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},{'name':'Asia/Qatar','utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['QA','BH']},{'name':_0xb889ec('0x1645'),'utcOffset':0xf0,'offsetStr':_0xb889ec('0x212b'),'countries':['RE','TF']},{'name':'Europe/Bucharest','utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['RO']},{'name':_0xb889ec('0x164f'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['RS','BA','HR','ME','MK','SI']},{'name':_0xb889ec('0x1d29'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['RU']},{'name':_0xb889ec('0xb85'),'utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['RU']},{'name':'Europe/Simferopol','utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['RU']},{'name':_0xb889ec('0xe15'),'utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['RU']},{'name':_0xb889ec('0x101a'),'utcOffset':0xf0,'offsetStr':_0xb889ec('0x212b'),'countries':['RU']},{'name':_0xb889ec('0x27d7'),'utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['RU']},{'name':_0xb889ec('0xccc'),'utcOffset':0x168,'offsetStr':_0xb889ec('0x7b8'),'countries':['RU']},{'name':'Asia/Novosibirsk','utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},{'name':_0xb889ec('0x79'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['RU']},{'name':_0xb889ec('0x1d66'),'utcOffset':0x1a4,'offsetStr':_0xb889ec('0x22d'),'countries':['RU']},{'name':'Asia/Irkutsk','utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['RU']},{'name':_0xb889ec('0x11be'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['RU']},{'name':'Asia/Yakutsk','utcOffset':0x21c,'offsetStr':_0xb889ec('0x418'),'countries':['RU']},{'name':'Asia/Khandyga','utcOffset':0x21c,'offsetStr':_0xb889ec('0x418'),'countries':['RU']},{'name':'Asia/Vladivostok','utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['RU']},{'name':'Asia/Sakhalin','utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['RU']},{'name':_0xb889ec('0x284b'),'utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['RU']},{'name':_0xb889ec('0x47'),'utcOffset':0x258,'offsetStr':_0xb889ec('0x123d'),'countries':['RU']},{'name':_0xb889ec('0x172e'),'utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['RU']},{'name':_0xb889ec('0x2577'),'utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['RU']},{'name':'Asia/Anadyr','utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['RU']},{'name':_0xb889ec('0x23c0'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SA','KW','YE']},{'name':'Pacific/Guadalcanal','utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['SB']},{'name':_0xb889ec('0x93e'),'utcOffset':0xf0,'offsetStr':_0xb889ec('0x212b'),'countries':['SC']},{'name':'Africa/Khartoum','utcOffset':0xb4,'offsetStr':_0xb889ec('0x2865'),'countries':['SD','SS']},{'name':_0xb889ec('0x1303'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['SE']},{'name':_0xb889ec('0x1daa'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['SG']},{'name':'America/Paramaribo','utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['SR']},{'name':_0xb889ec('0x1af2'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['SV']},{'name':'Asia/Damascus','utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['SY']},{'name':_0xb889ec('0x2649'),'utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['TC']},{'name':_0xb889ec('0xbc'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['TD']},{'name':'Indian/Kerguelen','utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['TF']},{'name':_0xb889ec('0x1841'),'utcOffset':0x1a4,'offsetStr':_0xb889ec('0x22d'),'countries':['TH','KH','LA','VN']},{'name':_0xb889ec('0x2348'),'utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['TJ']},{'name':'Pacific/Fakaofo','utcOffset':0x30c,'offsetStr':'+13:00','countries':['TK']},{'name':_0xb889ec('0x286f'),'utcOffset':0x21c,'offsetStr':_0xb889ec('0x418'),'countries':['TL']},{'name':_0xb889ec('0x1e56'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TM']},{'name':_0xb889ec('0xefe'),'utcOffset':0x3c,'offsetStr':_0xb889ec('0xa04'),'countries':['TN']},{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':_0xb889ec('0x10d0'),'countries':['TO']},{'name':_0xb889ec('0x15ea'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['TR']},{'name':'America/Port_of_Spain','utcOffset':-0xf0,'offsetStr':_0xb889ec('0x180a'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':'Pacific/Funafuti','utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['TV']},{'name':_0xb889ec('0x322'),'utcOffset':0x1e0,'offsetStr':_0xb889ec('0xb25'),'countries':['TW']},{'name':_0xb889ec('0x3e1'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['UA']},{'name':_0xb889ec('0x1d05'),'utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['UA']},{'name':_0xb889ec('0x122c'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':'Pacific/Wake','utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['UM']},{'name':_0xb889ec('0xc0b'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['US']},{'name':_0xb889ec('0x818'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['US']},{'name':'America/Kentucky/Louisville','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['US']},{'name':_0xb889ec('0xa53'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['US']},{'name':_0xb889ec('0x120d'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['US']},{'name':_0xb889ec('0x1830'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0xb889ec('0x1afe'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0xb889ec('0x23b2'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0xb889ec('0x18b3'),'utcOffset':-0x12c,'offsetStr':_0xb889ec('0x22d7'),'countries':['US']},{'name':_0xb889ec('0x129a'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0xb889ec('0xd59'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['US']},{'name':'America/Indiana/Knox','utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['US']},{'name':_0xb889ec('0x26dd'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['US']},{'name':_0xb889ec('0x1798'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0xb889ec('0x226c'),'utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['US']},{'name':'America/North_Dakota/Beulah','utcOffset':-0x168,'offsetStr':_0xb889ec('0xd72'),'countries':['US']},{'name':_0xb889ec('0x2f9'),'utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['US']},{'name':_0xb889ec('0x21f4'),'utcOffset':-0x1a4,'offsetStr':_0xb889ec('0xa65'),'countries':['US']},{'name':_0xb889ec('0x4e5'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0xb889ec('0x6e5'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},{'name':_0xb889ec('0x1eb5'),'utcOffset':-0x1e0,'offsetStr':_0xb889ec('0x27bc'),'countries':['US']},{'name':'America/Anchorage','utcOffset':-0x21c,'offsetStr':_0xb889ec('0x1e45'),'countries':['US']},{'name':'America/Juneau','utcOffset':-0x21c,'offsetStr':_0xb889ec('0x1e45'),'countries':['US']},{'name':_0xb889ec('0x1996'),'utcOffset':-0x21c,'offsetStr':_0xb889ec('0x1e45'),'countries':['US']},{'name':_0xb889ec('0x18e'),'utcOffset':-0x21c,'offsetStr':_0xb889ec('0x1e45'),'countries':['US']},{'name':_0xb889ec('0x1b0b'),'utcOffset':-0x21c,'offsetStr':_0xb889ec('0x1e45'),'countries':['US']},{'name':'America/Adak','utcOffset':-0x258,'offsetStr':_0xb889ec('0x15d2'),'countries':['US']},{'name':_0xb889ec('0x4a9'),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['US','UM']},{'name':_0xb889ec('0x10e5'),'utcOffset':-0xb4,'offsetStr':_0xb889ec('0x6df'),'countries':['UY']},{'name':_0xb889ec('0xadd'),'utcOffset':0x12c,'offsetStr':_0xb889ec('0xa35'),'countries':['UZ']},{'name':_0xb889ec('0x70'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},{'name':_0xb889ec('0x24d3'),'utcOffset':-0x10e,'offsetStr':_0xb889ec('0x16d'),'countries':['VE']},{'name':_0xb889ec('0x1586'),'utcOffset':0x1a4,'offsetStr':_0xb889ec('0x22d'),'countries':['VN']},{'name':'Pacific/Efate','utcOffset':0x294,'offsetStr':_0xb889ec('0x55a'),'countries':['VU']},{'name':'Pacific/Wallis','utcOffset':0x2d0,'offsetStr':_0xb889ec('0x2019'),'countries':['WF']},{'name':_0xb889ec('0x110a'),'utcOffset':0x348,'offsetStr':_0xb889ec('0x2183'),'countries':['WS']},{'name':'Africa/Johannesburg','utcOffset':0x78,'offsetStr':_0xb889ec('0x13b5'),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x52ce2f};}const _0xc1a678=_0x28dec4;;function _0x5125fb(){var _0x513097=_0xb635d2,_0x9512a5=this;_0x9512a5[_0x513097('0x2891')]=[],_0x9512a5[_0x513097('0x26a6')]=![],_0x9512a5['fontSize']=0x14;function _0xd164ac(_0x2978fe){var _0x9c82be=_0x513097,_0x19d085=0x0;if(_0x2978fe){_0x9512a5['fontSize']=_0x2978fe[_0x9c82be('0x1a0e')][0x2]&&_0x2978fe[_0x9c82be('0x1a0e')][0x2][_0x9c82be('0x2')]?parseInt(_0x2978fe[_0x9c82be('0x1a0e')][0x2][_0x9c82be('0x2')])-parseInt(_0x2978fe['attrs'][0x2]['value'])%0x2:0x14;_0x2978fe['attrs'][0x1][_0x9c82be('0x2')]&&_0x2978fe['attrs'][0x1]['value'][_0x9c82be('0x25ae')]?(_0x9512a5[_0x9c82be('0x26a6')]=!![],_0x9512a5[_0x9c82be('0x2891')]=_0x32d445()[_0x9c82be('0x1bf1')](_0x2978fe['voiceQueuesSelected'],_0x2978fe[_0x9c82be('0x1a0e')][0x1][_0x9c82be('0x2')])):(_0x9512a5[_0x9c82be('0x26a6')]=![],_0x9512a5[_0x9c82be('0x2891')]=_0x2978fe['voiceQueuesSelected']);for(var _0x5dc542=0x0;_0x5dc542<_0x2978fe[_0x9c82be('0x15c5')][_0x9c82be('0x16a7')][_0x9c82be('0x25ae')];_0x5dc542+=0x1){_0x32d445()[_0x9c82be('0x1c43')](_0x9512a5['filter'],_0x2978fe[_0x9c82be('0x15c5')][_0x9c82be('0x16a7')][_0x5dc542]['id'])&&(_0x19d085+=_0x2978fe[_0x9c82be('0x15c5')][_0x9c82be('0x16a7')][_0x5dc542][_0x2978fe[_0x9c82be('0x1a0e')][0x0][_0x9c82be('0x2')]]?parseInt(_0x2978fe['voiceQueues'][_0x9c82be('0x16a7')][_0x5dc542][_0x2978fe[_0x9c82be('0x1a0e')][0x0][_0x9c82be('0x2')]]):0x0);}}return _0x19d085;}_0x9512a5[_0x513097('0xfa5')]=_0xd164ac;}const _0x5db10a=_0x5125fb;_0x2cdaf5[_0xb635d2('0xb0c')]=[_0xb635d2('0x2493')];function _0x2cdaf5(_0x31928e){var _0x190377=_0xb635d2,_0x4e925e=this;_0x4e925e[_0x190377('0x2891')]=[],_0x4e925e[_0x190377('0x26a6')]=![],_0x4e925e[_0x190377('0x1538')]=[],_0x4e925e[_0x190377('0x6b1')]={'labels':[_0x190377('0xbfa')],'series':[_0x190377('0x258f')],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':_0x190377('0x8a0')},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':_0x190377('0x8a0'),'stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':'#2196f3'}}]}}};function _0x2d9a0e(_0x31bfc2){var _0x4354c0=_0x190377;_0x4e925e[_0x4354c0('0x1538')]=_0x32d445()['map'](_0x32d445()[_0x4354c0('0x2891')](_0x31bfc2[_0x4354c0('0x1a0e')],function(_0x3c1932){var _0x325178=_0x4354c0;return _0x3c1932['name']&&_0x3c1932[_0x325178('0x2623')][_0x325178('0x281c')](_0x325178('0x4cd'))>=0x0&&_0x3c1932[_0x325178('0x2')]&&_0x3c1932[_0x325178('0x2')]!==_0x325178('0x1046');}),_0x4354c0('0x2'));_0x31bfc2[_0x4354c0('0x1a0e')][0x3][_0x4354c0('0x2')]&&_0x31bfc2[_0x4354c0('0x1a0e')][0x3][_0x4354c0('0x2')][_0x4354c0('0x25ae')]?(_0x4e925e[_0x4354c0('0x26a6')]=!![],_0x4e925e['filter']=_0x32d445()[_0x4354c0('0x1bf1')](_0x31bfc2[_0x4354c0('0x26cf')],_0x31bfc2[_0x4354c0('0x1a0e')][0x3][_0x4354c0('0x2')])):(_0x4e925e[_0x4354c0('0x26a6')]=![],_0x4e925e['filter']=_0x31bfc2[_0x4354c0('0x26cf')]);if(_0x4e925e[_0x4354c0('0x6b1')]['series'][_0x4354c0('0x25ae')]>_0x4e925e[_0x4354c0('0x1538')][_0x4354c0('0x25ae')]){var _0x5b578c=_0x4e925e[_0x4354c0('0x6b1')]['series']['length']-_0x4e925e[_0x4354c0('0x1538')][_0x4354c0('0x25ae')];_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x272a')]['splice'](0x0,_0x5b578c),_0x4e925e[_0x4354c0('0x6b1')]['data']['splice'](0x0,_0x5b578c);}for(var _0x4fbd89=0x0;_0x4fbd89<_0x4e925e[_0x4354c0('0x1538')][_0x4354c0('0x25ae')];_0x4fbd89+=0x1){_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x272a')][_0x4fbd89]=_0x31928e[_0x4354c0('0x2159')](_0x4354c0('0x1167')+_0x4e925e[_0x4354c0('0x1538')][_0x4fbd89][_0x4354c0('0x25f7')]());_0x32d445()[_0x4354c0('0xe44')](_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x11d0')][_0x4fbd89])&&(_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x11d0')][_0x4fbd89]=[]);if(_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x1b8f')][_0x4354c0('0x25ae')]>_0x4e925e[_0x4354c0('0x2891')]['length']){var _0x31ff17=_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x1b8f')][_0x4354c0('0x25ae')]-_0x4e925e['filter']['length'];_0x4e925e['multiBarChart'][_0x4354c0('0x1b8f')][_0x4354c0('0x1c8e')](0x0,_0x31ff17),_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x11d0')][_0x4fbd89][_0x4354c0('0x1c8e')](0x0,_0x31ff17);}for(var _0x106e8b=0x0,_0x59921b=0x0;_0x106e8b<_0x31bfc2['voiceQueues'][_0x4354c0('0x16a7')][_0x4354c0('0x25ae')];_0x106e8b+=0x1){_0x32d445()[_0x4354c0('0x1c43')](_0x4e925e[_0x4354c0('0x2891')],_0x31bfc2[_0x4354c0('0x15c5')]['rows'][_0x106e8b]['id'])&&(_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x1b8f')][_0x59921b]=_0x31bfc2[_0x4354c0('0x15c5')]['rows'][_0x106e8b]['name'],_0x4e925e[_0x4354c0('0x6b1')][_0x4354c0('0x11d0')][_0x4fbd89][_0x59921b]=_0x31bfc2[_0x4354c0('0x15c5')][_0x4354c0('0x16a7')][_0x106e8b][_0x4e925e['properties'][_0x4fbd89]]?parseInt(_0x31bfc2[_0x4354c0('0x15c5')][_0x4354c0('0x16a7')][_0x106e8b][_0x4e925e[_0x4354c0('0x1538')][_0x4fbd89]]):0x0,_0x59921b+=0x1);}}}function _0x34ec85(_0x544641){var _0x49316f=_0x190377;_0x4e925e[_0x49316f('0x6b1')][_0x49316f('0x2116')][_0x49316f('0x18f')]['fontColor']=_0x544641[_0x49316f('0x268e')];for(var _0x4d7eb4=0x0;_0x4d7eb4<_0x4e925e[_0x49316f('0x6b1')][_0x49316f('0x2116')][_0x49316f('0x1cc6')][_0x49316f('0x201')][_0x49316f('0x25ae')];_0x4d7eb4+=0x1){_0x4e925e[_0x49316f('0x6b1')]['options'][_0x49316f('0x1cc6')][_0x49316f('0x201')][_0x4d7eb4][_0x49316f('0x645')][_0x49316f('0x11f3')]=_0x544641[_0x49316f('0x268e')];}for(var _0x513c54=0x0;_0x513c54<_0x4e925e['multiBarChart'][_0x49316f('0x2116')][_0x49316f('0x1cc6')]['yAxes'][_0x49316f('0x25ae')];_0x513c54+=0x1){_0x4e925e[_0x49316f('0x6b1')][_0x49316f('0x2116')][_0x49316f('0x1cc6')][_0x49316f('0x109a')][_0x513c54][_0x49316f('0x645')]['fontColor']=_0x544641[_0x49316f('0x268e')];}}function _0x206278(_0x5977bb){var _0xfae0cc=_0x190377;_0x5977bb&&(_0x5977bb[_0xfae0cc('0x1a0e')]&&_0x2d9a0e(_0x5977bb),_0x5977bb['foreground']&&_0x34ec85(_0x5977bb));}_0x4e925e[_0x190377('0x11a1')]=_0x206278;}const _0x1bf178=_0x2cdaf5;_0x40a47d['$inject']=[_0xb635d2('0x2493')];function _0x40a47d(_0x224fe5){var _0x3f2c44=_0xb635d2,_0x1b509a=this;_0x1b509a[_0x3f2c44('0x2891')]=[],_0x1b509a[_0x3f2c44('0x26a6')]=![],_0x1b509a['properties']=[],_0x1b509a[_0x3f2c44('0x2318')]={'labels':[_0x3f2c44('0x117a')],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x55c532(_0x50c6cb){var _0x555bec=_0x3f2c44;_0x1b509a['properties']=_0x32d445()['map'](_0x32d445()[_0x555bec('0x2891')](_0x50c6cb[_0x555bec('0x1a0e')],function(_0x52f2e4){var _0x2b4b79=_0x555bec;return _0x52f2e4[_0x2b4b79('0x2623')]&&_0x52f2e4['name']['indexOf'](_0x2b4b79('0x4cd'))>=0x0&&_0x52f2e4[_0x2b4b79('0x2')]&&_0x52f2e4[_0x2b4b79('0x2')]!=='null';}),_0x555bec('0x2'));_0x50c6cb[_0x555bec('0x1a0e')][0x3][_0x555bec('0x2')]&&_0x50c6cb[_0x555bec('0x1a0e')][0x3][_0x555bec('0x2')][_0x555bec('0x25ae')]?(_0x1b509a[_0x555bec('0x26a6')]=!![],_0x1b509a[_0x555bec('0x2891')]=_0x32d445()['intersection'](_0x50c6cb['voiceQueuesSelected'],_0x50c6cb['attrs'][0x3][_0x555bec('0x2')])):(_0x1b509a[_0x555bec('0x26a6')]=![],_0x1b509a[_0x555bec('0x2891')]=_0x50c6cb[_0x555bec('0x26cf')]);if(_0x1b509a[_0x555bec('0x2318')][_0x555bec('0x1b8f')]['length']>_0x1b509a[_0x555bec('0x1538')][_0x555bec('0x25ae')]){var _0x5a23d2=_0x1b509a[_0x555bec('0x2318')]['labels']['length']-_0x1b509a[_0x555bec('0x1538')][_0x555bec('0x25ae')];_0x1b509a['pieChart'][_0x555bec('0x1b8f')][_0x555bec('0x1c8e')](0x0,_0x5a23d2),_0x1b509a['pieChart'][_0x555bec('0x11d0')]['splice'](0x0,_0x5a23d2);}for(var _0x50c83b=0x0,_0x530c94=0x0;_0x50c83b<_0x1b509a['properties'][_0x555bec('0x25ae')];_0x50c83b+=0x1){_0x1b509a[_0x555bec('0x2318')][_0x555bec('0x1b8f')][_0x50c83b]=_0x224fe5[_0x555bec('0x2159')](_0x555bec('0x1167')+_0x1b509a[_0x555bec('0x1538')][_0x50c83b][_0x555bec('0x25f7')]());for(var _0x181e62=0x0;_0x181e62<_0x50c6cb[_0x555bec('0x15c5')][_0x555bec('0x16a7')][_0x555bec('0x25ae')];_0x181e62+=0x1){_0x32d445()[_0x555bec('0x1c43')](_0x1b509a[_0x555bec('0x2891')],_0x50c6cb['voiceQueues'][_0x555bec('0x16a7')][_0x181e62]['id'])&&(_0x530c94+=_0x50c6cb[_0x555bec('0x15c5')][_0x555bec('0x16a7')][_0x181e62][_0x1b509a[_0x555bec('0x1538')][_0x50c83b]]?parseInt(_0x50c6cb[_0x555bec('0x15c5')]['rows'][_0x181e62][_0x1b509a[_0x555bec('0x1538')][_0x50c83b]]):0x0);}_0x1b509a[_0x555bec('0x2318')][_0x555bec('0x11d0')][_0x50c83b]=_0x530c94,_0x530c94=0x0;}}function _0x3c05b7(_0x59642c){var _0x3ad452=_0x3f2c44;_0x1b509a['pieChart'][_0x3ad452('0x2116')][_0x3ad452('0x18f')][_0x3ad452('0x11f3')]=_0x59642c['foreground'];}function _0x2d0e2e(_0x15382a){var _0x39c3e6=_0x3f2c44;_0x15382a&&(_0x15382a[_0x39c3e6('0x1a0e')]&&_0x55c532(_0x15382a),_0x15382a[_0x39c3e6('0x268e')]&&_0x3c05b7(_0x15382a));}_0x1b509a['getPieChart']=_0x2d0e2e;}const _0x5dc142=_0x40a47d;_0x4d354d[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c1a'),_0xb635d2('0xffc')];function _0x4d354d(_0xbd9375,_0x3d22ab,_0x1bfcbc,_0x22933c){var _0xea2141=_0xb635d2,_0x6132e0=this;_0x6132e0[_0xea2141('0x0')]=0x0,_0x6132e0[_0xea2141('0x23bd')]=0x0,_0x6132e0[_0xea2141('0x13e4')]='',_0x6132e0[_0xea2141('0x192a')]=[],_0x6132e0[_0xea2141('0x2545')]={'rows':[],'count':0x0},_0x6132e0[_0xea2141('0xa16')]={'limit':0xa,'page':0x1,'startDate':_0x4ddcaa()()[_0xea2141('0x21b1')]('day')[_0xea2141('0x5e5')](_0xea2141('0x1f90')),'endDate':_0x4ddcaa()()[_0xea2141('0x270')](_0xea2141('0x2103'))[_0xea2141('0x5e5')](_0xea2141('0x1f90')),'output':_0xea2141('0x334')},_0x6132e0['onInit']=_0x5f0159,_0x6132e0['getResults']=_0x1a17fe,_0x6132e0['valueReplacer']=_0x1e8faf;function _0x5f0159(_0x11a5be){var _0x173ed8=_0xea2141;_0x11a5be&&(_0x11a5be[_0x173ed8('0x1a0e')]&&(_0x11a5be[_0x173ed8('0x1a0e')][0x0]&&_0x11a5be[_0x173ed8('0x1a0e')][0x0]['value']&&(_0x6132e0[_0x173ed8('0xa16')]['id']=_0x11a5be[_0x173ed8('0x1a0e')][0x0][_0x173ed8('0x2')],_0x22933c[_0x173ed8('0xe89')][_0x173ed8('0x22d5')]({'fields':_0x173ed8('0xb80'),'nolimit':!![],'DefaultReportId':_0x11a5be['attrs'][0x0]['type']===_0x173ed8('0x206')?_0x11a5be['attrs'][0x0][_0x173ed8('0x2')]:undefined,'CustomReportId':_0x11a5be['attrs'][0x0][_0x173ed8('0x62e')]===_0x173ed8('0x261d')?_0x11a5be[_0x173ed8('0x1a0e')][0x0][_0x173ed8('0x2')]:undefined})[_0x173ed8('0xe59')][_0x173ed8('0xe19')](function(_0x2255fb){var _0x1500bd=_0x173ed8;_0x2255fb&&_0x2255fb[_0x1500bd('0x16a7')]&&(_0x6132e0[_0x1500bd('0x192a')]=_0x2255fb[_0x1500bd('0x16a7')]);switch(_0x11a5be[_0x1500bd('0x1a0e')][0x0]['type']){case _0x1500bd('0x206'):_0x6132e0[_0x1500bd('0xf43')]=_0x1500bd('0x1092');break;case'custom':_0x6132e0[_0x1500bd('0xf43')]=_0x1500bd('0x247b');break;}return _0x22933c[_0x6132e0[_0x1500bd('0xf43')]]['get']({'id':_0x11a5be[_0x1500bd('0x1a0e')][0x0]['value'],'fields':'id,name'})[_0x1500bd('0xe59')];})[_0x173ed8('0xe19')](function(_0x43dbd4){var _0x1e4cab=_0x173ed8;_0x43dbd4&&_0x43dbd4[_0x1e4cab('0x2623')]&&(_0x6132e0[_0x1e4cab('0x13e4')]=_0x43dbd4[_0x1e4cab('0x2623')]),_0x1a17fe();})[_0x173ed8('0x223b')](function(_0x2f5a9e){var _0x64a29f=_0x173ed8;console[_0x64a29f('0x1fe9')](_0x2f5a9e);})),_0x11a5be[_0x173ed8('0x1a0e')][0x1]&&_0x11a5be[_0x173ed8('0x1a0e')][0x1]['value']&&(_0x6132e0[_0x173ed8('0x23bd')]=parseInt(_0x11a5be[_0x173ed8('0x1a0e')][0x1]['value']),!_0x32d445()[_0x173ed8('0xb45')](_0x6132e0[_0x173ed8('0x23bd')])&&_0x6132e0[_0x173ed8('0x23bd')]>0x0?(_0x6132e0[_0x173ed8('0x0')]=parseInt(_0x11a5be[_0x173ed8('0x1a0e')][0x1][_0x173ed8('0x2')]),_0x6132e0[_0x173ed8('0x134c')]=_0x1bfcbc(function(){var _0x57c65f=_0x173ed8;_0x6132e0[_0x57c65f('0x0')]-=0x1;},0x3e8,0x0),_0x6132e0[_0x173ed8('0x2058')]=_0x3d22ab(function(){var _0x14dc87=_0x173ed8;_0x6132e0[_0x14dc87('0x134c')]&&_0x1bfcbc[_0x14dc87('0x2c1')](_0x6132e0[_0x14dc87('0x134c')]),_0x5f0159(_0x11a5be);},_0x6132e0[_0x173ed8('0x23bd')]*0x3e8)):(_0x6132e0['interval']&&_0x1bfcbc[_0x173ed8('0x2c1')](_0x6132e0[_0x173ed8('0x134c')]),_0x6132e0[_0x173ed8('0x2058')]&&_0x3d22ab['cancel'](_0x6132e0['timeout'])))));}function _0x5a9626(_0xba9949){var _0x43f858=_0xea2141;_0x6132e0[_0x43f858('0x2545')]=_0xba9949||{'count':0x0,'rows':[]};}function _0x1a17fe(){var _0x1cd742=_0xea2141;_0x6132e0['query'][_0x1cd742('0xab0')]=(_0x6132e0['query'][_0x1cd742('0xc08')]-0x1)*_0x6132e0[_0x1cd742('0xa16')][_0x1cd742('0x1b6d')],_0x6132e0[_0x1cd742('0x9c8')]=_0x22933c[_0x6132e0[_0x1cd742('0xf43')]][_0x1cd742('0x1813')](_0x6132e0[_0x1cd742('0xa16')],_0x5a9626)[_0x1cd742('0xe59')];}function _0x1e8faf(_0x388942,_0x225b84){var _0x191baf=_0xea2141;return _0x4ddcaa()(_0x225b84,_0x191baf('0x266c'),!![])[_0x191baf('0x1768')]()&&(_0x225b84=_0x4ddcaa()(_0x225b84,'')[_0x191baf('0x5e5')]('YYYY-MM-DD\x20HH:mm:ss')),_0x225b84;}_0xbd9375['$on'](_0xea2141('0x5cd'),function(){var _0x22d7f4=_0xea2141;_0x6132e0[_0x22d7f4('0x134c')]&&_0x1bfcbc[_0x22d7f4('0x2c1')](_0x6132e0[_0x22d7f4('0x134c')]),_0x6132e0[_0x22d7f4('0x2058')]&&_0x3d22ab['cancel'](_0x6132e0[_0x22d7f4('0x2058')]);});}const _0xcb0eca=_0x4d354d,_0x53fa0a=_0x59426a['p']+'src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine-[chunkhash].html';_0x895fbb[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x2858')];function _0x895fbb(_0x3a1dd8,_0x4ad596){var _0x133799=_0xb635d2,_0x25aeff=this;function _0xca17a7(_0x121f94){return _0x4ad596['trustAsResourceUrl'](_0x121f94);}_0x25aeff[_0x133799('0x88b')]=_0xca17a7;}function _0x16c31c(){var _0x4f03c3=_0xb635d2;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x4f03c3('0x15e8'),'controller':'MsWidgetEngineController','controllerAs':'vm','bindToController':!![],'templateUrl':_0x53fa0a};}_0x42abba[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1abd')];function _0x42abba(_0x5d2e18,_0x3578a8){var _0x36b458=_0xb635d2,_0x396398=this;_0x396398[_0x36b458('0xc5d')]=![];function _0x242cc6(){var _0x43a4ba=_0x36b458;return angular['isDefined'](_0x5d2e18[_0x43a4ba('0x1ae2')])&&_0x5d2e18['flippable']===!![];}function _0x3581b2(){var _0x193792=_0x36b458;if(!_0x242cc6())return;_0x396398[_0x193792('0xc5d')]=!_0x396398[_0x193792('0xc5d')],_0x3578a8['toggleClass'](_0x193792('0xc5d'),_0x396398['flipped']);}_0x396398[_0x36b458('0x1eed')]=_0x3581b2;}function _0x2cbf84(){var _0x1f94ff=_0xb635d2;return{'restrict':'E','scope':{'flippable':'=?'},'controller':_0x1f94ff('0x253b'),'transclude':!![],'compile':function _0x37779e(_0x4aff17){var _0x3a458f=_0x1f94ff;return _0x4aff17['addClass'](_0x3a458f('0xfe9')),function _0x12f978(_0x2b18d1,_0x4642da,_0x31c1d5,_0x3a4df9,_0x252794){_0x252794(function(_0x5d2301){var _0x195340=a0_0x5325;_0x4642da[_0x195340('0x2672')](),_0x4642da['append'](_0x5d2301);});};}};}function _0x1e4962(){var _0x4892d3=_0xb635d2;return{'restrict':'E','require':_0x4892d3('0x434'),'transclude':!![],'compile':function _0x16d242(_0x41b612){var _0x5a1da9=_0x4892d3;return _0x41b612['addClass'](_0x5a1da9('0x76c')),function _0x4bf3ca(_0xef5df5,_0x525a1d,_0x47f2f2,_0x162a1d,_0x57852c){var _0xf394d6=_0x5a1da9;_0x57852c(function(_0x2d74e7){var _0x18a8c1=a0_0x5325;_0x525a1d['empty'](),_0x525a1d[_0x18a8c1('0x1d0a')](_0x2d74e7);}),_0xef5df5[_0xf394d6('0x1545')]=_0x162a1d[_0xf394d6('0x1eed')];};}};}function _0x55f70f(){var _0x453b45=_0xb635d2;return{'restrict':'E','require':_0x453b45('0x434'),'transclude':!![],'compile':function _0x5b1015(_0x23a336){var _0x58be65=_0x453b45;return _0x23a336[_0x58be65('0x500')]('ms-widget-back'),function _0x13ed03(_0x157cb6,_0x2a55cd,_0x470afa,_0x57e44d,_0x1301c9){_0x1301c9(function(_0x5d7111){var _0x2030e8=a0_0x5325;_0x2a55cd[_0x2030e8('0x2672')](),_0x2a55cd[_0x2030e8('0x1d0a')](_0x5d7111);}),_0x157cb6['flipWidget']=_0x57e44d['flip'];};}};};var _0xe7afb8=[[_0xb635d2('0x14af'),_0x455aa6,_0xb635d2('0x492')],[_0xb635d2('0x88a'),_0x15db48,_0xb635d2('0x492')],[_0xb635d2('0x23fd'),_0x91ba14,_0xb635d2('0x492')],[_0xb635d2('0x1702'),_0x227075,_0xb635d2('0x492')],[_0xb635d2('0xe3a'),_0x350e70,'directive'],[_0xb635d2('0xe2c'),_0x335c0f,_0xb635d2('0x492')],[_0xb635d2('0x23e4'),_0x2a696a,_0xb635d2('0x308')],[_0xb635d2('0x1380'),_0x2a5f31,'directive'],[_0xb635d2('0x2653'),_0x9adf81,_0xb635d2('0x492')],[_0xb635d2('0x1d99'),_0x4d92d3,_0xb635d2('0x492')],['msEmojiArea',_0x1678c1,_0xb635d2('0x492')],[_0xb635d2('0x108c'),_0x5487bc,_0xb635d2('0x492')],[_0xb635d2('0x238d'),_0x5d1d20,_0xb635d2('0x1a79')],[_0xb635d2('0x141a'),_0x30e800,_0xb635d2('0x492')],[_0xb635d2('0x51f'),_0x17a981,_0xb635d2('0x492')],[_0xb635d2('0x97a'),_0x46ffb5,'directive'],['msMasonryController',_0x53199c,_0xb635d2('0x1a79')],[_0xb635d2('0x1414'),_0x18973f,_0xb635d2('0x492')],['msMasonryItem',_0x4829b1,'directive'],[_0xb635d2('0x518'),_0x4ef2f8,_0xb635d2('0x1a79')],[_0xb635d2('0x106b'),_0x124381,'directive'],[_0xb635d2('0x1d28'),_0x4674d0,_0xb635d2('0x1324')],[_0xb635d2('0x2551'),_0x1c4a8e,_0xb635d2('0x492')],['MsNavController',_0x54b5bc,_0xb635d2('0x1a79')],[_0xb635d2('0x9a9'),_0x4df131,_0xb635d2('0x492')],[_0xb635d2('0x1a3b'),_0x5912dd,_0xb635d2('0x492')],[_0xb635d2('0x26ae'),_0x1ce19f,_0xb635d2('0x492')],[_0xb635d2('0xc19'),_0x12820d,_0xb635d2('0x492')],[_0xb635d2('0x1631'),_0x321cb1,_0xb635d2('0x308')],[_0xb635d2('0x180'),_0x3bb479,_0xb635d2('0x1a79')],['msNavigation',_0x23fe98,'directive'],[_0xb635d2('0x1a4e'),_0x485830,_0xb635d2('0x1a79')],[_0xb635d2('0x295'),_0x47344,_0xb635d2('0x492')],[_0xb635d2('0xed'),_0x3847a4,'directive'],[_0xb635d2('0x56e'),_0x433228,'directive'],[_0xb635d2('0x274f'),_0x59e629,_0xb635d2('0x1a79')],['msNavigationHorizontalNode',_0x562386,_0xb635d2('0x492')],['msNavigationHorizontalItem',_0x539b9e,_0xb635d2('0x492')],['MsPhonebarController',_0x76257e,_0xb635d2('0x1a79')],[_0xb635d2('0x1c5c'),_0x2cb546,_0xb635d2('0x492')],[_0xb635d2('0x259d'),_0x5576d0,_0xb635d2('0x1a79')],[_0xb635d2('0x15b7'),_0x41e251,_0xb635d2('0x492')],[_0xb635d2('0xb08'),_0x2e60cd,_0xb635d2('0x1a79')],['ReferAttendedDialogController',_0x52ff60,_0xb635d2('0x1a79')],[_0xb635d2('0xd28'),_0x34de0f,'controller'],['msQuickFilter',_0x41dc81,_0xb635d2('0x492')],[_0xb635d2('0x1b1c'),_0x5e0981,'factory'],['msRandomClass',_0x11bc15,_0xb635d2('0x492')],['msRecording',_0x2609ce,_0xb635d2('0x492')],[_0xb635d2('0x2434'),_0x35428e,_0xb635d2('0x492')],['msScrollConfig',_0x1298dc,_0xb635d2('0x308')],['msScroll',_0x21f8d8,_0xb635d2('0x492')],[_0xb635d2('0x1caa'),_0x2904b6,_0xb635d2('0x1a79')],[_0xb635d2('0xdbc'),_0x4ca6f1,_0xb635d2('0x492')],[_0xb635d2('0x24ea'),_0xcb3f4f,'controller'],['msShortcuts',_0xded2fb,_0xb635d2('0x492')],[_0xb635d2('0xf30'),_0x437e44,'directive'],[_0xb635d2('0x3d1'),_0x28bd64,_0xb635d2('0x492')],[_0xb635d2('0x1b30'),_0x1651e,'controller'],['msHorizontalStepper',_0x3bede6,_0xb635d2('0x492')],[_0xb635d2('0xfff'),_0x4e8f26,_0xb635d2('0x492')],['msVerticalStepper',_0x230988,_0xb635d2('0x492')],[_0xb635d2('0x112f'),_0x1cbf53,_0xb635d2('0x492')],['MsTabScrollController',_0x8a00b9,_0xb635d2('0x1a79')],[_0xb635d2('0x1456'),_0x14d9ab,'directive'],['MsTimelineController',_0x30d7db,_0xb635d2('0x1a79')],[_0xb635d2('0x15ab'),_0x24a964,_0xb635d2('0x492')],[_0xb635d2('0x26bb'),_0x15f025,_0xb635d2('0x492')],['MsTimerController',_0x457188,_0xb635d2('0x1a79')],[_0xb635d2('0x4a1'),_0x450218,_0xb635d2('0x492')],[_0xb635d2('0x2737'),_0xc1a678,_0xb635d2('0x492')],[_0xb635d2('0x5c7'),_0x5db10a,_0xb635d2('0x1a79')],[_0xb635d2('0x161e'),_0x1bf178,_0xb635d2('0x1a79')],[_0xb635d2('0x266d'),_0x5dc142,_0xb635d2('0x1a79')],[_0xb635d2('0x22dc'),_0xcb0eca,_0xb635d2('0x1a79')],[_0xb635d2('0xc25'),_0x895fbb,_0xb635d2('0x1a79')],['msWidgetEngine',_0x16c31c,_0xb635d2('0x492')],['MsWidgetController',_0x42abba,_0xb635d2('0x1a79')],['msWidget',_0x2cbf84,'directive'],[_0xb635d2('0x14ed'),_0x1e4962,'directive'],[_0xb635d2('0x4a8'),_0x55f70f,_0xb635d2('0x492')]];const _0x3d26e7=_0xe7afb8;_0x3b1749[_0xb635d2('0xb0c')]=['$q','$translate'];function _0x3b1749(_0xcec0f6,_0x534cd0){function _0x8cdff3(_0x2b6952){var _0x34e2cf;return _0xcec0f6(function(_0x6e170e){var _0x5a766e=a0_0x5325;try{if(_0x32d445()[_0x5a766e('0x14b4')](_0x2b6952[_0x5a766e('0x15b2')]))_0x34e2cf=_0x534cd0[_0x5a766e('0x2159')](_0x5a766e('0x1b56'));else{if(_0x32d445()[_0x5a766e('0x14b4')](_0x2b6952[_0x5a766e('0x242d')]))_0x34e2cf=_0x2b6952[_0x5a766e('0x53e')]?_0x534cd0[_0x5a766e('0x2159')](_0x2b6952['placeholder']):_0x534cd0[_0x5a766e('0x2159')](_0x5a766e('0x1499'));else{if(_0x2b6952[_0x5a766e('0x242d')][_0x5a766e('0x25ae')]===_0x2b6952[_0x5a766e('0x15b2')][_0x5a766e('0x25ae')])_0x34e2cf=_0x534cd0['instant'](_0x5a766e('0x296'));else{var _0xf47cf=_0x2b6952[_0x5a766e('0x7ec')]||'id';_0x34e2cf=_0x32d445()(_0x2b6952[_0x5a766e('0x15b2')])[_0x5a766e('0x2891')](function(_0x267deb){var _0x190596=_0x5a766e;return _0x32d445()[_0x190596('0x1c43')](_0x2b6952[_0x190596('0x242d')],_0x267deb[_0xf47cf]);})[_0x5a766e('0x65a')](_0x5a766e('0x2623'))[_0x5a766e('0x2')]()['join'](',\x20');}}}_0x6e170e(_0x34e2cf);}catch(_0x1beb59){console[_0x5a766e('0x1fe9')](_0x5a766e('0x1d6b'),_0x1beb59),_0x6e170e(null);}});}var _0x14e13d={'setPlaceholder':_0x8cdff3};return _0x14e13d;}const _0x42a54c=_0x3b1749;;function _0x417241(){return function(_0x23de05){var _0x47cdeb=a0_0x5325,_0x257edb=Date['now']()-new Date(_0x23de05);if(_0x257edb<0x3c*0x3c*0x3e8)return _0x4ddcaa()(_0x23de05)['fromNow']();else{if(_0x257edb<0x3c*0x3c*0x18*0x3e8)return _0x4ddcaa()(_0x23de05)[_0x47cdeb('0x5e5')](_0x47cdeb('0x1dd1'));else return _0x257edb<0x3c*0x3c*0x18*0x7*0x3e8?_0x4ddcaa()(_0x23de05)[_0x47cdeb('0x5e5')](_0x47cdeb('0xac4')):_0x4ddcaa()(_0x23de05)[_0x47cdeb('0x8f7')]();}};}const _0x2df7fe=_0x417241;_0x25360e[_0xb635d2('0xb0c')]=[_0xb635d2('0x2858')];function _0x25360e(_0x5c997c){return function(_0x208813){var _0x459d65=a0_0x5325;return _0x5c997c[_0x459d65('0x1e85')](_0x208813);};}function _0x36348b(){return function(_0x384e62){var _0x4d0161=a0_0x5325;return String(_0x384e62)[_0x4d0161('0x1b42')](/<[^>]+>/gm,'');};}function _0x42e42f(){return function(_0x31b9c6){var _0x2eb136=a0_0x5325;return!_0x31b9c6?'':_0x31b9c6[_0x2eb136('0x1b42')](/ /g,'');};}function _0x54290a(){return function(_0x326dd7){var _0x18844d=a0_0x5325;if(!_0x326dd7)return;if(_0x326dd7[_0x18844d('0x62e')]===_0x18844d('0x492'))return _0x326dd7[_0x18844d('0x2623')][_0x18844d('0x1b42')](/([A-Z])/g,function(_0x1dc027){return'-'+_0x1dc027['toLowerCase']();});return _0x326dd7[_0x18844d('0x10f6')]||_0x326dd7[_0x18844d('0x2623')];};};function _0x4edb71(){return function(_0x544bdb){if(!_0x544bdb)return'';return _0x32d445()['capitalize'](_0x544bdb);};}const _0xa5322f=_0x4edb71;function _0x308e6c(){return function(_0x5631ad,_0x479abb){var _0x344873=a0_0x5325;if(_0x5631ad['length']===0x0||!_0x479abb)return _0x5631ad;if(_0x479abb[_0x344873('0x25ae')]===0x0)return[];var _0x4dfab8=[];for(var _0x170059=0x0;_0x170059<_0x5631ad['length'];_0x170059++){var _0x47d445=_0x5631ad[_0x170059],_0x19a957=![];for(var _0x1999a0=0x0;_0x1999a0<_0x479abb['length'];_0x1999a0++){var _0x1faac4=_0x479abb[_0x1999a0];if(_0x47d445['id']===_0x1faac4){_0x19a957=!![];break;}}_0x19a957&&_0x4dfab8['push'](_0x47d445);}return _0x4dfab8;};}const _0x4d179f=_0x308e6c;function _0x49577e(){return function(_0x3ec39f,_0x44fd9d,_0x426b0b){var _0x38b22f=a0_0x5325;if(_0x3ec39f[_0x38b22f('0x25ae')]===0x0||!_0x426b0b||_0x426b0b[_0x38b22f('0x25ae')]===0x0)return _0x3ec39f;var _0x40e43f=[];for(var _0x27c584=0x0;_0x27c584<_0x3ec39f[_0x38b22f('0x25ae')];_0x27c584++){var _0x5aab28=_0x3ec39f[_0x27c584],_0x13aa18=![];for(var _0x1941f6=0x0;_0x1941f6<_0x426b0b['length'];_0x1941f6++){var _0x36af11=_0x426b0b[_0x1941f6];if(_0x5aab28[_0x44fd9d][_0x38b22f('0x281c')](_0x36af11)>-0x1){_0x13aa18=!![];break;}}_0x13aa18&&_0x40e43f['push'](_0x5aab28);}return _0x40e43f;};}const _0x329f1c=_0x49577e;;function _0x381480(){return function(_0x5b560b){var _0x472f2a=a0_0x5325;if(!_0x5b560b)return'';return _0x32d445()[_0x472f2a('0xbc9')](_0x5b560b);};}const _0x1d44cf=_0x381480;;function _0x3cb855(){return function(_0xa39ba0){var _0x401ad4=a0_0x5325;if(!_0xa39ba0)return'';return _0x32d445()[_0x401ad4('0x1df2')](_0xa39ba0);};}const _0x58fb72=_0x3cb855;function _0x30dcc0(){return function(_0x1b89dc,_0x530505){var _0x483ac5=a0_0x5325;if(_0x1b89dc[_0x483ac5('0x25ae')]===0x0||_0x530505[_0x483ac5('0x25ae')]===0x0)return _0x1b89dc;var _0x59f55f=[];return _0x1b89dc[_0x483ac5('0x1d7e')](function(_0x3559f3){var _0x187f9f=_0x483ac5,_0x53a4bf=_0x530505[_0x187f9f('0x1ff')](function(_0x267d81){var _0x50cd92=_0x187f9f,_0x247312=![];return _0x3559f3[_0x50cd92('0x1105')][_0x50cd92('0x1d7e')](function(_0x248935){var _0xdb9d18=_0x50cd92;if(_0x248935[_0xdb9d18('0x2623')]===_0x267d81[_0xdb9d18('0x2623')]){_0x247312=!![];return;}}),_0x247312;});_0x53a4bf&&_0x59f55f[_0x187f9f('0xb76')](_0x3559f3);}),_0x59f55f;};}function _0x40cab8(){return function(_0x446cb7,_0x488084){var _0x54a3f4=a0_0x5325;if(_0x446cb7[_0x54a3f4('0x25ae')]===0x0||_0x488084['length']===0x0)return;if(_0x446cb7[_0x54a3f4('0x25ae')]<_0x488084['length'])return[];var _0x5cad57=[],_0x4a026d=_0x488084['every'](function(_0x13133b){var _0x59c30b=_0x54a3f4,_0x219fc0=![];return _0x446cb7[_0x59c30b('0x1d7e')](function(_0x586f1e){var _0x31e6f6=_0x59c30b;if(_0x586f1e['name']===_0x13133b[_0x31e6f6('0x2623')]){_0x219fc0=!![];return;}}),_0x219fc0;});return _0x4a026d&&_0x5cad57[_0x54a3f4('0xb76')](_0x446cb7),_0x5cad57;};}function _0x5d4bc3(_0x59991e,_0x42d596){var _0x26030a=_0xb635d2;if(!(_0x59991e instanceof _0x42d596))throw new TypeError(_0x26030a('0x6bd'));}var _0x452a31=function _0x1c3ac7(_0x44fc1f,_0x1d074f,_0x22f03b,_0x478ddd){var _0x4121a2=_0xb635d2;_0x5d4bc3(this,_0x1c3ac7),this['id']=Math[_0x4121a2('0xc79')]()['toString'](0x24)[_0x4121a2('0x126d')](0x2,0xf)+Math[_0x4121a2('0xc79')]()[_0x4121a2('0x94f')](0x24)[_0x4121a2('0x126d')](0x2,0xf),this[_0x4121a2('0x13e4')]=_0x44fc1f,this[_0x4121a2('0x19b2')]=_0x1d074f,this['accept']=_0x22f03b,this['reject']=_0x478ddd,this[_0x4121a2('0x1886')]=_0x468252;};function _0x3f3754(){var _0x4d0f55=_0xb635d2;return!(window[_0x4d0f55('0x18fa')][_0x4d0f55('0x1c21')]||window['document'][_0x4d0f55('0x254c')]||window[_0x4d0f55('0x18fa')][_0x4d0f55('0xb12')]);}function _0x35f07a(){var _0x2075b8=_0xb635d2;return/Chrome/[_0x2075b8('0x15cf')](navigator[_0x2075b8('0x8d2')])&&/Google Inc/[_0x2075b8('0x15cf')](navigator[_0x2075b8('0x417')]);}function _0x468252(){var _0x555d70=_0xb635d2,_0x2e7523=this;navigator[_0x555d70('0x1b8c')][_0x555d70('0x1e2d')][_0x555d70('0xe19')](function(_0x2576c6){var _0x703c1e=_0x555d70;_0x2576c6[_0x703c1e('0x26ea')]()[_0x703c1e('0xe19')](function(_0x4b3736){var _0x4abc1d=_0x703c1e,_0x562c62=_0x32d445()[_0x4abc1d('0xf15')](_0x4b3736,function(_0x4ed58b){return _0x4ed58b['data']['id']===_0x2e7523['id'];});_0x562c62&&_0x562c62['close']();});});}function _0x52576e(){return{'$get':[_0x498a5a]};function _0x498a5a(){var _0xd38d1a=a0_0x5325,_0xde2315=[],_0x366571,_0x20412e;return'serviceWorker'in navigator&&_0x35f07a()?navigator[_0xd38d1a('0x1b8c')][_0xd38d1a('0x2568')]('service-worker.js')['then'](function(_0x79705){var _0x5a2184=_0xd38d1a;_0x366571=_0x79705,_0x366571[_0x5a2184('0xa70')]();if(_0x366571[_0x5a2184('0x2063')])_0x20412e=_0x366571[_0x5a2184('0x2063')];else{if(_0x366571['waiting'])_0x20412e=_0x366571[_0x5a2184('0x183a')];else _0x366571['active']&&(_0x20412e=_0x366571[_0x5a2184('0x1a')]);}})[_0xd38d1a('0x223b')](function(_0x9149c7){var _0x4b0a30=_0xd38d1a;console[_0x4b0a30('0x8c8')]('Service\x20worker\x20registration\x20failed',_0x9149c7);}):console[_0xd38d1a('0x8c8')](_0xd38d1a('0x1bb5')),navigator[_0xd38d1a('0x1b8c')][_0xd38d1a('0x1370')](_0xd38d1a('0x27e8'),function(_0x562ebe){var _0x11eb70=_0xd38d1a;if(_0x562ebe[_0x11eb70('0x18b5')]!==_0x20412e)return;var _0x15b0f2=_0x32d445()[_0x11eb70('0xf15')](_0xde2315,{'id':_0x562ebe[_0x11eb70('0x11d0')]['id']});if(_0x15b0f2)switch(_0x562ebe[_0x11eb70('0x11d0')][_0x11eb70('0xf8')]){case _0x11eb70('0xcb5'):_0x15b0f2['accept']&&_0x15b0f2[_0x11eb70('0xcb5')]();break;case _0x11eb70('0x1337'):_0x15b0f2[_0x11eb70('0x1337')]&&_0x15b0f2[_0x11eb70('0x1337')]();break;default:}}),{'create':function _0x4dd239(_0x2496bf,_0x253518,_0x3cdc6e,_0x22d077,_0x118cdf){return new Promise(function(_0x2d0b44,_0x3033bb){var _0x261110=a0_0x5325,_0x420043;_0x35f07a()&&!_0x3f3754()?(_0x420043=new _0x452a31(_0x2496bf||_0x261110('0x65f'),_0x253518||_0x261110('0x263f'),_0x22d077,_0x118cdf),_0xde2315[_0x261110('0xb76')](_0x420043),_0x420043?window[_0x261110('0xba8')][_0x261110('0xbff')]()[_0x261110('0xe19')](function(_0x18425a){var _0x1bcb4a=_0x261110;if(_0x18425a===_0x1bcb4a('0x1401'))return _0x366571[_0x1bcb4a('0x26b9')](_0x420043[_0x1bcb4a('0x13e4')],{'body':_0x420043[_0x1bcb4a('0x19b2')],'requireInteraction':!![],'icon':_0x3cdc6e||_0x1bcb4a('0x2429'),'data':{'id':_0x420043['id']},'actions':[{'action':'accept','title':_0x1bcb4a('0xc28')},{'action':_0x1bcb4a('0x1337'),'title':'Reject'}]});})[_0x261110('0xe19')](function(){_0x2d0b44(_0x420043);})[_0x261110('0x223b')](function(_0x9a83ce){_0x3033bb(_0x9a83ce);}):_0x3033bb(new Error(_0x261110('0x288d')))):_0x2d0b44();});}};}}const _0xdc0acb=_0x52576e;_0x1ef95f[_0xb635d2('0xb0c')]=['$q','$log','api'];function _0x1ef95f(_0x2e576c,_0x37edb9,_0x3a460f){var _0x294836={'resolve':_0x4eaadb};return _0x294836;function _0x4eaadb(_0x4a1478,_0x162992){var _0x232f51=a0_0x5325,_0x3d3be5=_0x4a1478[_0x232f51('0x1745')]('@'),_0x2b93ed=_0x3d3be5[0x0],_0x40c241=_0x3d3be5[0x1],_0x2e8d14=_0x162992||{};if(!_0x2b93ed||!_0x40c241)return _0x37edb9[_0x232f51('0x8c8')](_0x232f51('0x1bc9')),![];var _0x92eef5=_0x2e576c['defer'](),_0x11673c=_0x4a4912(_0x2b93ed);return!_0x11673c?(_0x37edb9[_0x232f51('0x8c8')](_0x232f51('0x7f1')+_0x2b93ed+_0x232f51('0x1ce7')),_0x92eef5[_0x232f51('0x1337')](_0x232f51('0x7f1')+_0x2b93ed+_0x232f51('0x1ce7'))):_0x11673c[_0x40c241](_0x2e8d14,function(_0x328b8b){var _0x25efd6=_0x232f51;_0x92eef5[_0x25efd6('0xcd6')](_0x328b8b);},function(_0x1f2e27){_0x92eef5['reject'](_0x1f2e27);}),_0x92eef5[_0x232f51('0x9c8')];}function _0x4a4912(_0x358d97){var _0x15c5a6=a0_0x5325,_0x7766bc=_0x358d97[_0x15c5a6('0x1745')]('.'),_0x6ac1f6=_0x3a460f;for(var _0x41bd0a=0x0;_0x41bd0a<_0x7766bc[_0x15c5a6('0x25ae')];_0x41bd0a++){if(angular[_0x15c5a6('0xda8')](_0x6ac1f6[_0x7766bc[_0x41bd0a]])){_0x37edb9['error'](_0x15c5a6('0x19b3')+_0x7766bc[_0x41bd0a]+_0x15c5a6('0x22c7')),_0x6ac1f6=![];break;}_0x6ac1f6=_0x6ac1f6[_0x7766bc[_0x41bd0a]];}if(!_0x6ac1f6)return![];return _0x6ac1f6;}}const _0x4619fc=_0x1ef95f;_0x448fce[_0xb635d2('0xb0c')]=[_0xb635d2('0x917')];function _0x448fce(_0x5643fd){function _0x41126f(){var _0x4a9f91=a0_0x5325;_0x5643fd[_0x4a9f91('0x1fc0')]=!![];}function _0x39997c(){var _0x5eeba8=a0_0x5325;_0x5643fd[_0x5eeba8('0x1fc0')]=![];}var _0x45a6ce={'showLoadingIndicator':_0x41126f,'hideLoadingIndicator':_0x39997c};return _0x45a6ce;}const _0xc8d938=_0x448fce;function _0x50703c(){var _0x1d5b78=_0xb635d2,_0x510c39=this,_0x445254=angular[_0x1d5b78('0x282c')](['ng'])[_0x1d5b78('0x22d5')](_0x1d5b78('0x2473')),_0x31f968='',_0x2d728a=[];_0x510c39[_0x1d5b78('0x1754')]=_0x5ccb3d,_0x510c39[_0x1d5b78('0x90c')]=_0x1cae6e,_0x510c39[_0x1d5b78('0x732')]=_0x54ad11,_0x510c39[_0x1d5b78('0x2568')]=_0x52155a;function _0x5ccb3d(_0x7fc2c){_0x31f968=_0x7fc2c;}function _0x1cae6e(){return _0x31f968;}function _0x54ad11(){return _0x2d728a;}function _0x52155a(_0x41aedd,_0x321105){var _0xa01047=_0x1d5b78;if(!angular['isString'](_0x41aedd)){_0x445254['error'](_0xa01047('0x19be'));return;}if(!angular[_0xa01047('0x113a')](_0x321105)){_0x445254[_0xa01047('0x8c8')](_0xa01047('0x1f76'));return;}_0x2d728a[_0x41aedd]={'url':_0x31f968+(_0x321105[0x0]||''),'paramDefaults':_0x321105[0x1]||[],'actions':_0x321105[0x2]||[],'options':_0x321105[0x3]||{}};}this[_0x1d5b78('0x436')]=function(_0x5cd09b,_0x3647fb,_0x4cfeac,_0x2e29d2){var _0x566dc6={'setBaseUrl':_0x5ccb3d,'getBaseUrl':_0x1cae6e,'register':_0x52155a,'resolve':_0x344d15,'request':_0x4aa20a};return _0x566dc6;function _0x344d15(_0xe94e7a,_0xa47a1e){var _0xe8fba1=a0_0x5325;_0x2e29d2['$broadcast'](_0xe8fba1('0xd66'));var _0x375daf=_0xe94e7a['split']('@'),_0x7fff4b=_0x375daf[0x0],_0x731de0=_0x375daf[0x1],_0x3fa9ad=_0xa47a1e||{};if(!_0x7fff4b||!_0x731de0)return _0x5cd09b[_0xe8fba1('0x8c8')]('msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)'),![];var _0x1e0b2f=_0x3647fb['defer'](),_0x40a640=_0x2d728a[_0x7fff4b];if(!_0x40a640)_0x5cd09b[_0xe8fba1('0x8c8')]('Resource\x20\x22'+_0x7fff4b+_0xe8fba1('0x1ce7')),_0x1e0b2f['reject'](_0xe8fba1('0x7f1')+_0x7fff4b+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!');else{var _0x313f37=_0x4cfeac(_0x40a640['url'],_0x40a640[_0xe8fba1('0xba4')],_0x40a640['actions'],_0x40a640[_0xe8fba1('0x2116')]);_0x313f37[_0x731de0](_0x3fa9ad,function(_0x2ba9ca){_0x1e0b2f['resolve'](_0x2ba9ca),_0x2e29d2['$broadcast']('msApi::resolveSuccess');},function(_0x33769a){var _0x3082c6=_0xe8fba1;_0x1e0b2f[_0x3082c6('0x1337')](_0x33769a),_0x2e29d2['$broadcast'](_0x3082c6('0x11a8'));});}return _0x1e0b2f[_0xe8fba1('0x9c8')];}function _0x4aa20a(_0x105e87,_0x18491d,_0x1ae49b,_0x37ef0e){var _0x1abc32=a0_0x5325;_0x2e29d2['$broadcast'](_0x1abc32('0x5'));var _0x60753a=_0x105e87[_0x1abc32('0x1745')]('@'),_0x4e8880=_0x60753a[0x0],_0x3e9b4b=_0x60753a[0x1],_0x29f418=_0x18491d||{};if(!_0x4e8880||!_0x3e9b4b)return _0x5cd09b[_0x1abc32('0x8c8')](_0x1abc32('0x1d87')),![];var _0x2db4af=_0x3647fb[_0x1abc32('0x178')](),_0x376601=_0x2d728a[_0x4e8880];if(!_0x376601)_0x5cd09b[_0x1abc32('0x8c8')](_0x1abc32('0x7f1')+_0x4e8880+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x2db4af[_0x1abc32('0x1337')](_0x1abc32('0x7f1')+_0x4e8880+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!');else{var _0x45abcc=_0x4cfeac(_0x376601[_0x1abc32('0x2647')],_0x376601[_0x1abc32('0xba4')],_0x376601[_0x1abc32('0xc06')],_0x376601[_0x1abc32('0x2116')]);_0x45abcc[_0x3e9b4b](_0x29f418,function(_0x568949){var _0x331fe0=_0x1abc32;_0x2e29d2[_0x331fe0('0xa98')](_0x331fe0('0x153')),_0x2db4af[_0x331fe0('0xcd6')](_0x568949),angular[_0x331fe0('0x1d95')](_0x1ae49b)&&angular[_0x331fe0('0xfeb')](_0x1ae49b)&&_0x1ae49b(_0x568949);},function(_0x1ba485){var _0x40ddcc=_0x1abc32;_0x2e29d2[_0x40ddcc('0xa98')](_0x40ddcc('0xae4')),_0x2db4af[_0x40ddcc('0x1337')](_0x1ba485),angular[_0x40ddcc('0x1d95')](_0x37ef0e)&&angular[_0x40ddcc('0xfeb')](_0x37ef0e)&&_0x37ef0e(_0x1ba485);});}return _0x2db4af[_0x1abc32('0x9c8')];}};}const _0x198658=_0x50703c;var _0x2d287e=_0x59426a(0x985),_0x33a3b1=_0x59426a['n'](_0x2d287e);_0x346111['$inject']=['$window'];function _0x346111(_0x4ae883){var _0x2d2161=new(_0x33a3b1())(_0x4ae883['navigator']['userAgent']),_0xb09106=null,_0x3ee47f={'exists':_0x1559a1,'detectBrowser':_0x1ba0ce,'guidGenerator':_0x4c9e69,'isMobile':_0x362e1a,'toggleInArray':_0x2bb872,'firstLastDayMonth':_0x1cb5f8};return _0x3ee47f;function _0x1559a1(_0x314aa3,_0x2401b1){var _0x3b3383=a0_0x5325;return _0x2401b1[_0x3b3383('0x281c')](_0x314aa3)>-0x1;}function _0x1ba0ce(){var _0xb89477=a0_0x5325;if(_0xb09106)return _0xb09106;var _0x8a9eca=[{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x8d2')],'subString':_0xb89477('0x1b06'),'versionSearch':_0xb89477('0x1b06'),'identity':_0xb89477('0x1b06')},{'string':_0x4ae883['navigator']['userAgent'],'subString':_0xb89477('0xb54'),'identity':_0xb89477('0xb54')},{'string':_0x4ae883[_0xb89477('0x1077')]['userAgent'],'subString':_0xb89477('0x1bfe'),'versionSearch':'OmniWeb/','identity':_0xb89477('0x1bfe')},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x417')],'subString':'Apple','versionSearch':'Version','identity':'Safari'},{'prop':_0x4ae883['opera'],'identity':_0xb89477('0x1168')},{'string':_0x4ae883[_0xb89477('0x1077')]['vendor'],'subString':'iCab','identity':'iCab'},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x417')],'subString':_0xb89477('0x819'),'identity':_0xb89477('0x1bf8')},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x8d2')],'subString':_0xb89477('0x2269'),'identity':'Firefox'},{'string':_0x4ae883[_0xb89477('0x1077')]['vendor'],'subString':'Camino','identity':_0xb89477('0x221')},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x8d2')],'subString':_0xb89477('0x3e3'),'identity':_0xb89477('0x3e3')},{'string':_0x4ae883['navigator'][_0xb89477('0x8d2')],'subString':_0xb89477('0x337'),'identity':_0xb89477('0xb6f'),'versionSearch':_0xb89477('0x337')},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x8d2')],'subString':_0xb89477('0x1ea2'),'identity':'Explorer','versionSearch':'rv'},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x8d2')],'subString':_0xb89477('0x1b76'),'identity':'Mozilla','versionSearch':'rv'},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x8d2')],'subString':_0xb89477('0x24a8'),'identity':_0xb89477('0x3e3'),'versionSearch':'Mozilla'}],_0x144f32=[{'string':_0x4ae883['navigator'][_0xb89477('0x1171')],'subString':_0xb89477('0x2ed'),'identity':_0xb89477('0x6b4')},{'string':_0x4ae883['navigator']['platform'],'subString':_0xb89477('0x178d'),'identity':_0xb89477('0x178d')},{'string':_0x4ae883[_0xb89477('0x1077')]['platform'],'subString':_0xb89477('0x4'),'identity':'Linux'},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x1171')],'subString':_0xb89477('0x1f06'),'identity':_0xb89477('0x1f06')},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x1171')],'subString':'iPod','identity':_0xb89477('0x160')},{'string':_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x1171')],'subString':_0xb89477('0x2172'),'identity':'iPad'},{'string':_0x4ae883['navigator'][_0xb89477('0x1171')],'subString':_0xb89477('0x86f'),'identity':_0xb89477('0x86f')}],_0x23af53='';function _0x502073(_0x199023){var _0x216cda=_0xb89477;for(var _0x22f18b=0x0;_0x22f18b<_0x199023[_0x216cda('0x25ae')];_0x22f18b++){var _0x4916ea=_0x199023[_0x22f18b][_0x216cda('0x19d1')],_0x42ec77=_0x199023[_0x22f18b][_0x216cda('0x11ef')];_0x23af53=_0x199023[_0x22f18b][_0x216cda('0x10fb')]||_0x199023[_0x22f18b][_0x216cda('0xce1')];if(_0x4916ea){if(_0x4916ea[_0x216cda('0x281c')](_0x199023[_0x22f18b][_0x216cda('0x1492')])!==-0x1)return _0x199023[_0x22f18b][_0x216cda('0xce1')];}else{if(_0x42ec77)return _0x199023[_0x22f18b]['identity'];}}}function _0x7642f(_0x287a3c){var _0x54ec37=_0xb89477,_0x27fab4=_0x287a3c['indexOf'](_0x23af53);if(_0x27fab4===-0x1)return;return parseInt(_0x287a3c[_0x54ec37('0x126d')](_0x27fab4+_0x23af53['length']+0x1));}var _0x4f85e1=_0x502073(_0x8a9eca)||_0xb89477('0x111b'),_0x352d72=_0x7642f(_0x4ae883[_0xb89477('0x1077')][_0xb89477('0x8d2')])||_0x7642f(_0x4ae883[_0xb89477('0x1077')]['appVersion'])||_0xb89477('0xd35'),_0x20b906=_0x502073(_0x144f32)||_0xb89477('0x1b0a');return _0x4f85e1=_0x4f85e1[_0xb89477('0x20dd')](),_0x352d72=_0x4f85e1+'-'+_0x352d72,_0x20b906=_0x20b906[_0xb89477('0x20dd')](),_0xb09106={'browser':_0x4f85e1,'version':_0x352d72,'os':_0x20b906},_0xb09106;}function _0x4c9e69(){var _0x35ccf7=function _0x240e94(){var _0x2e5f7a=a0_0x5325;return((0x1+Math[_0x2e5f7a('0xc79')]())*0x10000||0x0)['toString'](0x10)['substring'](0x1);};return _0x35ccf7()+_0x35ccf7()+_0x35ccf7()+_0x35ccf7()+_0x35ccf7()+_0x35ccf7();}function _0x362e1a(){var _0x3d7740=a0_0x5325;return _0x2d2161[_0x3d7740('0x23a0')]();}function _0x2bb872(_0x3504d0,_0x1e6b08){var _0x489acf=a0_0x5325;_0x1e6b08['indexOf'](_0x3504d0)===-0x1?_0x1e6b08['push'](_0x3504d0):_0x1e6b08[_0x489acf('0x1c8e')](_0x1e6b08[_0x489acf('0x281c')](_0x3504d0),0x1);}function _0x1cb5f8(){var _0x3071dc=a0_0x5325;return{'$gte':_0x4ddcaa()()['startOf'](_0x3071dc('0x211c'))['utcOffset'](0x0,!![])[_0x3071dc('0x5e5')](),'$lte':_0x4ddcaa()()[_0x3071dc('0x270')](_0x3071dc('0x211c'))[_0x3071dc('0x1e9e')](0x0,!![])[_0x3071dc('0x5e5')]()};}}const _0x57ed0e=_0x346111,_0x3852c9=_0x59426a['p']+'src/js/modules/core/theme-options/theme-options.html/theme-options-[chunkhash].html';_0x572810['$inject']=[_0xb635d2('0x1795')],_0xfc6aff['$inject']=[_0xb635d2('0x1c1d'),_0xb635d2('0x1d8e')];function _0xfc6aff(_0x329202,_0x73e0f){var _0x5869a8=_0xb635d2,_0x3b5af5=this;_0x3b5af5['themes']=_0x73e0f['themes'],_0x3b5af5['layoutModes']=[{'label':'Boxed','value':_0x5869a8('0x27b2')},{'label':_0x5869a8('0x197e'),'value':_0x5869a8('0xee4')}],_0x3b5af5[_0x5869a8('0xb8e')]=[{'label':_0x5869a8('0x1433'),'value':_0x5869a8('0x1670'),'figure':'/assets/images/theme-options/vertical-nav.jpg'},{'label':_0x5869a8('0x2c'),'value':'verticalNavigationFullwidthToolbar','figure':'/assets/images/theme-options/vertical-nav-with-full-toolbar.jpg'},{'label':_0x5869a8('0xc9a'),'value':'verticalNavigationFullwidthToolbar2','figure':_0x5869a8('0x142')},{'label':_0x5869a8('0x12b9'),'value':_0x5869a8('0x2443'),'figure':'/assets/images/theme-options/horizontal-nav.jpg'},{'label':_0x5869a8('0x219d'),'value':_0x5869a8('0xdd6'),'figure':_0x5869a8('0x3f1')},{'label':_0x5869a8('0x806'),'value':_0x5869a8('0x986'),'figure':_0x5869a8('0x26ad')}],_0x3b5af5[_0x5869a8('0x173e')]=_0x5869a8('0xee4'),_0x3b5af5[_0x5869a8('0x15a1')]=_0x329202[_0x5869a8('0x22d5')](_0x5869a8('0x1fe6'))||_0x5869a8('0x1670'),_0x3b5af5[_0x5869a8('0x1d75')]=_0x5b4f24,_0x3b5af5[_0x5869a8('0xb20')]=_0x31dfd0,_0x3b5af5['updateLayoutMode']=_0x172be8,_0x3b5af5['updateLayoutStyle']=_0x485c3d;function _0x5b4f24(_0x5a9c77){var _0xcc28ea=_0x5869a8;_0x73e0f[_0xcc28ea('0x1d75')](_0x5a9c77);}function _0x31dfd0(){var _0x3ead63=_0x5869a8;return _0x73e0f[_0x3ead63('0x2539')][_0x3ead63('0x1a')];}function _0x172be8(){var _0x2f3833=_0x5869a8,_0x14e6bb=angular[_0x2f3833('0x24a1')](_0x2f3833('0x19b2'));_0x14e6bb[_0x2f3833('0x2832')](_0x2f3833('0x27b2'),_0x3b5af5[_0x2f3833('0x173e')]===_0x2f3833('0x27b2'));}function _0x485c3d(){var _0x5840de=_0x5869a8;_0x329202[_0x5840de('0x153c')](_0x5840de('0x1fe6'),_0x3b5af5[_0x5840de('0x15a1')]),location[_0x5840de('0x1e24')]();}}function _0x572810(_0x3f223f){var _0x2b1ba2=_0xb635d2;return{'restrict':'E','scope':{},'controller':_0x2b1ba2('0xc7d'),'templateUrl':_0x3852c9,'compile':function _0x3c6383(_0x42e3c0){var _0x18fcdd=_0x2b1ba2;return _0x42e3c0['addClass'](_0x18fcdd('0x1bab')),function _0x5d8284(_0x5e3dfa){function _0x35f43f(){var _0x27c21e=a0_0x5325;_0x3f223f(_0x27c21e('0x17fe'))['toggle']();}_0x5e3dfa['toggleOptionsSidenav']=_0x35f43f;};}};}_0x1570b3[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),'$log',_0xb635d2('0x1d8e')];function _0x1570b3(_0x3b3a5f,_0x2f858d,_0x259be7){var _0x2433c4={},_0x15d450={'generate':_0x73a13f,'rgba':_0x34ffe5};return _0x15d450;function _0x73a13f(){var _0x5f5169=a0_0x5325,_0x3232e5=angular[_0x5f5169('0x89')](_0x259be7[_0x5f5169('0x1989')]()),_0x4dbf6f=angular[_0x5f5169('0x89')](_0x259be7[_0x5f5169('0x241c')]());angular[_0x5f5169('0x1d7e')](_0x3232e5,function(_0x2a4c21){var _0x2f07bd=_0x5f5169;_0x2433c4[_0x2a4c21[_0x2f07bd('0x2623')]]={},angular[_0x2f07bd('0x1d7e')](_0x2a4c21[_0x2f07bd('0x13f4')],function(_0x22a87d,_0xdc31bd){var _0x336fd1=_0x2f07bd;_0x2433c4[_0x2a4c21[_0x336fd1('0x2623')]][_0xdc31bd]={'name':_0x22a87d[_0x336fd1('0x2623')],'levels':{'default':{'color':_0x34ffe5(_0x4dbf6f[_0x22a87d['name']][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x206')]][_0x336fd1('0x2')]),'contrast1':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d['hues'][_0x336fd1('0x206')]][_0x336fd1('0x403')],0x1),'contrast2':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')]['default']][_0x336fd1('0x403')],0x2),'contrast3':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')]['default']][_0x336fd1('0x403')],0x3),'contrast4':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x206')]][_0x336fd1('0x403')],0x4)},'hue1':{'color':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x677')]][_0x336fd1('0x2')]),'contrast1':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')]['hue-1']][_0x336fd1('0x403')],0x1),'contrast2':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x677')]]['contrast'],0x2),'contrast3':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d['hues']['hue-1']][_0x336fd1('0x403')],0x3),'contrast4':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d['hues']['hue-1']][_0x336fd1('0x403')],0x4)},'hue2':{'color':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x1304')]][_0x336fd1('0x2')]),'contrast1':_0x34ffe5(_0x4dbf6f[_0x22a87d['name']][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x1304')]][_0x336fd1('0x403')],0x1),'contrast2':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')]['hue-2']][_0x336fd1('0x403')],0x2),'contrast3':_0x34ffe5(_0x4dbf6f[_0x22a87d['name']][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x1304')]][_0x336fd1('0x403')],0x3),'contrast4':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d['hues']['hue-2']][_0x336fd1('0x403')],0x4)},'hue3':{'color':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')]['hue-3']]['value']),'contrast1':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x241f')]][_0x336fd1('0x403')],0x1),'contrast2':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x241f')]]['contrast'],0x2),'contrast3':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x241f')]][_0x336fd1('0x403')],0x3),'contrast4':_0x34ffe5(_0x4dbf6f[_0x22a87d[_0x336fd1('0x2623')]][_0x22a87d[_0x336fd1('0x1733')][_0x336fd1('0x241f')]][_0x336fd1('0x403')],0x4)}}};});}),_0x5ddae1(_0x2433c4);var _0x386071={};angular[_0x5f5169('0x1d7e')](_0x2433c4,function(_0x35cfd6,_0x1dd9aa){var _0xead535=_0x5f5169;_0x386071={},_0x386071[_0xead535('0x1e39')]=_0x1dd9aa,angular[_0xead535('0x1d7e')](_0x35cfd6,function(_0x5b8c37,_0x5ab164){var _0x9fa31b=_0xead535;angular[_0x9fa31b('0x1d7e')](_0x5b8c37[_0x9fa31b('0x513')],function(_0x5e82df,_0x56e1d5){var _0x50d138=_0x9fa31b;angular[_0x50d138('0x1d7e')](_0x5e82df,function(_0x2b331b,_0x3dfb9c){_0x386071['@'+_0x5ab164+_0x1b5de3(_0x56e1d5)+_0x1b5de3(_0x3dfb9c)]=_0x2b331b;});});}),_0x585515(_0x386071);});}function _0x5ddae1(_0x1b784d){var _0x54c2d0=a0_0x5325,_0x241a67=angular['copy'](_0x1b784d);angular[_0x54c2d0('0x1d7e')](_0x241a67,function(_0x3b3ad1){var _0x1cb5c2=_0x54c2d0;angular[_0x1cb5c2('0x1d7e')](_0x3b3ad1,function(_0x53bda7,_0x16062a){var _0x3ad67c=_0x1cb5c2;_0x3b3ad1[_0x16062a]=_0x53bda7[_0x3ad67c('0x513')],_0x3b3ad1[_0x16062a][_0x3ad67c('0xaa4')]=_0x53bda7[_0x3ad67c('0x513')][_0x3ad67c('0x206')]['color'],_0x3b3ad1[_0x16062a][_0x3ad67c('0xb86')]=_0x53bda7[_0x3ad67c('0x513')]['default']['contrast1'],_0x3b3ad1[_0x16062a][_0x3ad67c('0x7da')]=_0x53bda7[_0x3ad67c('0x513')][_0x3ad67c('0x206')][_0x3ad67c('0x7da')],_0x3b3ad1[_0x16062a]['contrast3']=_0x53bda7[_0x3ad67c('0x513')][_0x3ad67c('0x206')][_0x3ad67c('0x971')],_0x3b3ad1[_0x16062a][_0x3ad67c('0x3fa')]=_0x53bda7[_0x3ad67c('0x513')][_0x3ad67c('0x206')][_0x3ad67c('0x3fa')],delete _0x3b3ad1[_0x16062a][_0x3ad67c('0x206')];});}),_0x259be7['setThemesList'](_0x241a67);var _0x44e080=_0x3b3a5f[_0x54c2d0('0x22d5')](_0x54c2d0('0xaa6'));_0x44e080?_0x259be7[_0x54c2d0('0x1d75')](_0x44e080):_0x259be7['setActiveTheme'](_0x54c2d0('0x206'));}function _0x585515(_0x136f63){var _0x47b3b2=a0_0x5325,_0x12f943=_0x47b3b2('0x2794'),_0x5f0f81=new RegExp(Object[_0x47b3b2('0x1234')](_0x136f63)[_0x47b3b2('0x1537')]('|'),'gi'),_0x59e77e=_0x12f943[_0x47b3b2('0x1b42')](_0x5f0f81,function(_0x34d31a){return _0x136f63[_0x34d31a];}),_0x325db1=angular[_0x47b3b2('0x24a1')](_0x47b3b2('0xb6c')),_0x91ecd3=angular[_0x47b3b2('0x24a1')]('');_0x91ecd3[_0x47b3b2('0x158f')](_0x59e77e),_0x325db1['append'](_0x91ecd3);}function _0x34ffe5(_0x18bbb6,_0x198226){var _0x48ab75=a0_0x5325,_0x5d7513=_0x198226||![];_0x18bbb6[_0x48ab75('0x25ae')]===0x4&&_0x18bbb6[0x0]===0xff&&_0x18bbb6[0x1]===0xff&&_0x18bbb6[0x2]===0xff&&_0x18bbb6[_0x48ab75('0x1c8e')](0x3,0x4);_0x5d7513&&(_0x18bbb6=_0xf9e651(_0x18bbb6,_0x5d7513));if(_0x18bbb6[_0x48ab75('0x25ae')]===0x3)return _0x48ab75('0xd32')+_0x18bbb6['join'](',')+')';else{if(_0x18bbb6[_0x48ab75('0x25ae')]===0x4)return _0x48ab75('0xed6')+_0x18bbb6[_0x48ab75('0x1537')](',')+')';else _0x2f858d[_0x48ab75('0x8c8')](_0x48ab75('0xf61')+_0x18bbb6[_0x48ab75('0x25ae')]+'\x0a'+_0x48ab75('0xe0d'));}}function _0xf9e651(_0x50931a,_0x2c953f){var _0x1c1db9=a0_0x5325,_0x5632f2={'white':{0x1:'1',0x2:_0x1c1db9('0x20e1'),0x3:_0x1c1db9('0x1488'),0x4:'0.12'},'black':{0x1:_0x1c1db9('0xb00'),0x2:_0x1c1db9('0xc2e'),0x3:'0.26',0x4:_0x1c1db9('0x1f77')}};if(_0x50931a[0x0]===0xff&&_0x50931a[0x1]===0xff&&_0x50931a[0x2]===0xff)_0x50931a[0x3]=_0x5632f2[_0x1c1db9('0x2190')][_0x2c953f];else _0x50931a[0x0]===0x0&&_0x50931a[0x1]===0x0&&_0x50931a[0x2]===0x0&&(_0x50931a[0x3]=_0x5632f2[_0x1c1db9('0x17db')][_0x2c953f]);return _0x50931a;}function _0x1b5de3(_0x294c06){var _0x20f2fd=a0_0x5325;return _0x294c06[_0x20f2fd('0x1f37')](0x0)[_0x20f2fd('0x25f7')]()+_0x294c06[_0x20f2fd('0xa19')](0x1);}}const _0x2a792d=_0x1570b3;var _0x23860e=[{'name':_0xb635d2('0xfb6'),'options':{0x32:_0xb635d2('0x45f'),0x64:_0xb635d2('0x1fc5'),0xc8:_0xb635d2('0x1f75'),0x12c:'#78a0dc',0x190:'#5688d3',0x1f4:_0xb635d2('0x111c'),0x258:_0xb635d2('0x2409'),0x2bc:'#275498',0x320:_0xb635d2('0x16c5'),0x384:_0xb635d2('0x74d'),'A100':_0xb635d2('0x1fc5'),'A200':_0xb635d2('0x1f75'),'A400':_0xb635d2('0x773'),'A700':_0xb635d2('0x4ba'),'contrastDefaultColor':_0xb635d2('0x1674'),'contrastDarkColors':_0xb635d2('0x20f6'),'contrastStrongLightColors':_0xb635d2('0x247a')}},{'name':_0xb635d2('0x15de'),'options':{0x32:_0xb635d2('0x20e7'),0x64:'#c5c6cb',0xc8:'#9ea1a9',0x12c:_0xb635d2('0x1b07'),0x190:_0xb635d2('0x1ff0'),0x1f4:'#3c4252',0x258:_0xb635d2('0x1c9d'),0x2bc:_0xb635d2('0x4e9'),0x320:'#262933',0x384:'#1e2129','A100':_0xb635d2('0x17a5'),'A200':_0xb635d2('0x1b6c'),'A400':_0xb635d2('0x1ff0'),'A700':_0xb635d2('0x4e9'),'contrastDefaultColor':_0xb635d2('0x1674'),'contrastDarkColors':_0xb635d2('0x20f6'),'contrastStrongLightColors':'300\x20400'}}];const _0x44e018=_0x23860e;var _0x113765={'default':{'primary':{'name':'motion-paleblue','hues':{'default':_0xb635d2('0x2781'),'hue-1':_0xb635d2('0x15ca'),'hue-2':'600','hue-3':'400'}},'accent':{'name':_0xb635d2('0x21e7'),'hues':{'default':'600','hue-1':_0xb635d2('0x45b'),'hue-2':_0xb635d2('0x2781'),'hue-3':'A100'}},'warn':{'name':_0xb635d2('0x2129')},'background':{'name':_0xb635d2('0x2069'),'hues':{'default':_0xb635d2('0x4c4'),'hue-1':'A100','hue-2':_0xb635d2('0x17e'),'hue-3':_0xb635d2('0x24e5')}}},'pinkTheme':{'primary':{'name':_0xb635d2('0x4ac'),'hues':{'default':'800','hue-1':_0xb635d2('0x9c1'),'hue-2':_0xb635d2('0x45b'),'hue-3':_0xb635d2('0x4c4')}},'accent':{'name':_0xb635d2('0x12b5'),'hues':{'default':_0xb635d2('0x45b'),'hue-1':_0xb635d2('0x24e5'),'hue-2':'600','hue-3':'A100'}},'warn':{'name':'blue'},'background':{'name':_0xb635d2('0x2069'),'hues':{'default':_0xb635d2('0x4c4'),'hue-1':_0xb635d2('0x4c4'),'hue-2':_0xb635d2('0x17e'),'hue-3':_0xb635d2('0x24e5')}}},'tealTheme':{'primary':{'name':_0xb635d2('0xfb6'),'hues':{'default':'900','hue-1':_0xb635d2('0x9c1'),'hue-2':_0xb635d2('0x15ca'),'hue-3':_0xb635d2('0x4c4')}},'accent':{'name':'teal','hues':{'default':'500','hue-1':_0xb635d2('0x45b'),'hue-2':'600','hue-3':_0xb635d2('0x4c4')}},'warn':{'name':_0xb635d2('0x11cd')},'background':{'name':_0xb635d2('0x2069'),'hues':{'default':'A100','hue-1':'A100','hue-2':_0xb635d2('0x17e'),'hue-3':_0xb635d2('0x24e5')}}}};const _0x683b8f=_0x113765;_0x23a050[_0xb635d2('0xb0c')]=[_0xb635d2('0x12f4'),_0xb635d2('0x9eb'),'motionThemes'];function _0x23a050(_0x282f18,_0x15cb21,_0x46ad1b){var _0x11fc3f=_0xb635d2,_0x332973;angular[_0x11fc3f('0x282c')]([_0x11fc3f('0x1076')])['invoke'](['$cookies',function(_0x3f2377){_0x332973=_0x3f2377;}]);var _0x3e7259=_0x332973[_0x11fc3f('0x2b4')](_0x11fc3f('0x2149'));_0x3e7259&&(_0x46ad1b[_0x11fc3f('0x261d')]=_0x3e7259),_0x282f18['alwaysWatchTheme'](!![]),angular[_0x11fc3f('0x1d7e')](_0x15cb21,function(_0x303fa5){var _0x2ab0c6=_0x11fc3f;_0x282f18[_0x2ab0c6('0xf52')](_0x303fa5[_0x2ab0c6('0x2623')],_0x303fa5[_0x2ab0c6('0x2116')]);}),angular[_0x11fc3f('0x1d7e')](_0x46ad1b,function(_0x57acbc,_0x20a945){var _0x1ed6bf=_0x11fc3f;_0x282f18['theme'](_0x20a945)[_0x1ed6bf('0xd5c')](_0x57acbc[_0x1ed6bf('0x175e')][_0x1ed6bf('0x2623')],_0x57acbc['primary'][_0x1ed6bf('0x1733')])[_0x1ed6bf('0x1cf9')](_0x57acbc[_0x1ed6bf('0x1fd8')]['name'],_0x57acbc[_0x1ed6bf('0x1fd8')][_0x1ed6bf('0x1733')])[_0x1ed6bf('0x6fc')](_0x57acbc[_0x1ed6bf('0x14a7')][_0x1ed6bf('0x2623')],_0x57acbc[_0x1ed6bf('0x14a7')]['hues'])[_0x1ed6bf('0x1f8a')](_0x57acbc['background'][_0x1ed6bf('0x2623')],_0x57acbc[_0x1ed6bf('0x20e0')][_0x1ed6bf('0x1733')]);});}const _0x16b0ab=_0x23a050;_0x3f9fb0[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x2473'),_0xb635d2('0x67f')];function _0x3f9fb0(_0x2be529,_0x197a6e,_0x1d414a){var _0x3b9669={'getRegisteredPalettes':_0x11ed43,'getRegisteredThemes':_0x3c5b9c,'setActiveTheme':_0xc0a3e4,'setThemesList':_0x56f755,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x3b9669;function _0x11ed43(){var _0x2c204f=a0_0x5325;return _0x1d414a[_0x2c204f('0x1550')];}function _0x3c5b9c(){var _0x38b7b0=a0_0x5325;return _0x1d414a[_0x38b7b0('0xbbf')];}function _0xc0a3e4(_0x2fbeef){var _0x3b1b12=a0_0x5325;if(angular['isUndefined'](_0x3b9669[_0x3b1b12('0x2539')]['list'][_0x2fbeef])){if(angular[_0x3b1b12('0xda8')](_0x3b9669[_0x3b1b12('0x2539')][_0x3b1b12('0x15a8')][_0x3b1b12('0x206')])){_0x197a6e[_0x3b1b12('0x8c8')](_0x3b1b12('0x1d9'));return;}_0x197a6e['warn'](_0x3b1b12('0x2736')+_0x2fbeef+_0x3b1b12('0x1443')),_0x3b9669[_0x3b1b12('0x2539')][_0x3b1b12('0x1a')][_0x3b1b12('0x2623')]=_0x3b1b12('0x206'),_0x3b9669['themes'][_0x3b1b12('0x1a')][_0x3b1b12('0xe90')]=_0x3b9669[_0x3b1b12('0x2539')][_0x3b1b12('0x15a8')][_0x3b1b12('0x206')],_0x2be529['put']('motion.selectedTheme',_0x3b9669[_0x3b1b12('0x2539')][_0x3b1b12('0x1a')][_0x3b1b12('0x2623')]);return;}_0x3b9669[_0x3b1b12('0x2539')][_0x3b1b12('0x1a')][_0x3b1b12('0x2623')]=_0x2fbeef,_0x3b9669[_0x3b1b12('0x2539')][_0x3b1b12('0x1a')][_0x3b1b12('0xe90')]=_0x3b9669[_0x3b1b12('0x2539')][_0x3b1b12('0x15a8')][_0x2fbeef],_0x2be529['put'](_0x3b1b12('0xaa6'),_0x2fbeef);}function _0x56f755(_0x2400a7){var _0x257c78=a0_0x5325;_0x3b9669[_0x257c78('0x2539')]['list']=_0x2400a7;}}const _0x21c7f3=_0x3f9fb0;function _0x246074(_0x3bcf77,_0x2e7cf3){return _0x3a47f8(_0x3bcf77)||_0x13a641(_0x3bcf77,_0x2e7cf3)||_0x2dae97(_0x3bcf77,_0x2e7cf3)||_0x2f43e3();}function _0x2f43e3(){var _0x214763=_0xb635d2;throw new TypeError(_0x214763('0x117c'));}function _0x2dae97(_0x4a6cb7,_0xf2efd){var _0x24c213=_0xb635d2;if(!_0x4a6cb7)return;if(typeof _0x4a6cb7===_0x24c213('0x19d1'))return _0xc012ee(_0x4a6cb7,_0xf2efd);var _0x774af6=Object[_0x24c213('0x1726')][_0x24c213('0x94f')][_0x24c213('0x20c4')](_0x4a6cb7)[_0x24c213('0xa19')](0x8,-0x1);if(_0x774af6===_0x24c213('0x165')&&_0x4a6cb7[_0x24c213('0x5fb')])_0x774af6=_0x4a6cb7['constructor'][_0x24c213('0x2623')];if(_0x774af6===_0x24c213('0x262a')||_0x774af6===_0x24c213('0x2771'))return Array[_0x24c213('0x6f7')](_0x4a6cb7);if(_0x774af6===_0x24c213('0x374')||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/['test'](_0x774af6))return _0xc012ee(_0x4a6cb7,_0xf2efd);}function _0xc012ee(_0x1a2059,_0x43718c){var _0x3cab32=_0xb635d2;if(_0x43718c==null||_0x43718c>_0x1a2059[_0x3cab32('0x25ae')])_0x43718c=_0x1a2059[_0x3cab32('0x25ae')];for(var _0x460a6f=0x0,_0x5f5431=new Array(_0x43718c);_0x460a6f<_0x43718c;_0x460a6f++){_0x5f5431[_0x460a6f]=_0x1a2059[_0x460a6f];}return _0x5f5431;}function _0x13a641(_0x3bd4df,_0x11fd9f){var _0x443d7e=_0xb635d2;if(typeof Symbol==='undefined'||!(Symbol[_0x443d7e('0x1843')]in Object(_0x3bd4df)))return;var _0x156b56=[],_0x101646=!![],_0x43d438=![],_0x18000d=undefined;try{for(var _0x268369=_0x3bd4df[Symbol[_0x443d7e('0x1843')]](),_0x13d98f;!(_0x101646=(_0x13d98f=_0x268369[_0x443d7e('0xffd')]())[_0x443d7e('0x1edc')]);_0x101646=!![]){_0x156b56[_0x443d7e('0xb76')](_0x13d98f[_0x443d7e('0x2')]);if(_0x11fd9f&&_0x156b56[_0x443d7e('0x25ae')]===_0x11fd9f)break;}}catch(_0x4d6ce3){_0x43d438=!![],_0x18000d=_0x4d6ce3;}finally{try{if(!_0x101646&&_0x268369['return']!=null)_0x268369['return']();}finally{if(_0x43d438)throw _0x18000d;}}return _0x156b56;}function _0x3a47f8(_0x135b9a){var _0x58cee3=_0xb635d2;if(Array[_0x58cee3('0x113a')](_0x135b9a))return _0x135b9a;}var _0x29ceee=angular[_0xb635d2('0x153f')](_0xb635d2('0x24a5'),[_0xb635d2('0x1c2a'),_0xb635d2('0x1703'),_0xb635d2('0x1076'),_0xb635d2('0x1924'),_0xb635d2('0x1cb8'),_0xb635d2('0x1828'),_0xb635d2('0x26eb'),_0xb635d2('0x1921'),_0xb635d2('0x3dd'),_0xb635d2('0xfe2'),'gridster',_0xb635d2('0xc1e'),_0xb635d2('0x184a')])[_0xb635d2('0x308')](_0xb635d2('0x1a27'),_0x57c721)[_0xb635d2('0x1990')](_0x5df1c2)[_0xb635d2('0x1813')](_0x132c52)[_0xb635d2('0x1a79')](_0xb635d2('0x822'),_0x5c4f19);_0x29ceee=_0x3d26e7[_0xb635d2('0x1619')](function(_0x16e96c,_0x46bdcb){var _0x50abef=_0xb635d2,_0x3a8f72=_0x246074(_0x46bdcb,0x3),_0x28f983=_0x3a8f72[0x0],_0x5763d0=_0x3a8f72[0x1],_0x2c4524=_0x3a8f72[0x2];switch(_0x2c4524){case'directive':_0x16e96c[_0x50abef('0x492')](_0x28f983,_0x5763d0);break;case _0x50abef('0x308'):_0x16e96c[_0x50abef('0x308')](_0x28f983,_0x5763d0);break;case _0x50abef('0x1a79'):_0x16e96c[_0x50abef('0x1a79')](_0x28f983,_0x5763d0);break;case _0x50abef('0x1324'):_0x16e96c['factory'](_0x28f983,_0x5763d0);break;default:break;}return _0x16e96c;},_0x29ceee),_0x29ceee[_0xb635d2('0x1324')](_0xb635d2('0x1c8b'),_0x42a54c)[_0xb635d2('0x2891')](_0xb635d2('0xbd4'),_0x2df7fe)[_0xb635d2('0x2891')]('toTrusted',_0x25360e)[_0xb635d2('0x2891')](_0xb635d2('0x140d'),_0x36348b)[_0xb635d2('0x2891')]('nospace',_0x42e42f)[_0xb635d2('0x2891')](_0xb635d2('0xc1f'),_0x54290a)[_0xb635d2('0x2891')](_0xb635d2('0xbf6'),_0xa5322f)[_0xb635d2('0x2891')](_0xb635d2('0x282a'),_0x4d179f)[_0xb635d2('0x2891')](_0xb635d2('0x1ab5'),_0x329f1c)[_0xb635d2('0x2891')](_0xb635d2('0x75f'),_0x1d44cf)['filter'](_0xb635d2('0x1fb9'),_0x58fb72)[_0xb635d2('0x2891')](_0xb635d2('0x24da'),_0x30dcc0)[_0xb635d2('0x2891')](_0xb635d2('0x2544'),_0x40cab8)[_0xb635d2('0x308')](_0xb635d2('0x2680'),_0xdc0acb)[_0xb635d2('0x1324')](_0xb635d2('0x292'),_0x4619fc)[_0xb635d2('0x1324')]('LoadingIndicatorService',_0xc8d938)[_0xb635d2('0x308')]('msApi',_0x198658)[_0xb635d2('0x1324')]('msUtils',_0x57ed0e)[_0xb635d2('0x1a79')](_0xb635d2('0x136c'),_0xfc6aff)[_0xb635d2('0x492')]('msThemeOptions',_0x572810)[_0xb635d2('0x1324')]('motionGenerator',_0x2a792d)['constant'](_0xb635d2('0x9eb'),_0x44e018)[_0xb635d2('0x1fa3')](_0xb635d2('0x16c7'),_0x683b8f)[_0xb635d2('0x1990')](_0x16b0ab)[_0xb635d2('0x78')](_0xb635d2('0x1d8e'),_0x21c7f3),_0x4e00bc['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1c1d'),_0xb635d2('0x22f1'),'socket',_0xb635d2('0x1631'),_0xb635d2('0x2730'),_0xb635d2('0xffc')];function _0x4e00bc(_0x4a9d3f,_0x1f6e01,_0x59be11,_0x31d77a,_0x3cc7d6,_0xc4d670,_0x9ee8dc){var _0x50e9f3=_0xb635d2,_0x37cc49=this;_0x37cc49['bodyEl']=angular[_0x50e9f3('0x24a1')](_0x50e9f3('0x19b2')),_0x37cc49[_0x50e9f3('0x35')]={'suppressScrollX':!![]},_0x37cc49[_0x50e9f3('0x22f1')]=_0x59be11,_0x37cc49[_0x50e9f3('0x2496')]=_0x9ee8dc['baseUrl'],_0x37cc49[_0x50e9f3('0x696')]=_0x287d49,_0x37cc49[_0x50e9f3('0x454')]=_0x4dd27e,_0x37cc49[_0x50e9f3('0x613')]=_0x52bcb0,_0x31d77a['on'](_0x50e9f3('0x2621'),_0x2a6dee),_0x31d77a['on']('dashboard:update',_0x2a6dee),_0x31d77a['on'](_0x50e9f3('0x11f5'),_0x36fe56),_0x31d77a['on']('plugin:save',_0xabdd19),_0x31d77a['on']('plugin:update',_0xabdd19),_0x31d77a['on'](_0x50e9f3('0x881'),_0x22c72c);function _0x287d49(){var _0x520ace=_0x50e9f3;_0x37cc49[_0x520ace('0x26d7')]=_0x1f6e01[_0x520ace('0x22d5')](_0x520ace('0x156b'))==='true'||![];}function _0x4dd27e(){var _0x601424=_0x50e9f3;_0x37cc49[_0x601424('0x26d7')]=!_0x37cc49[_0x601424('0x26d7')],_0x1f6e01[_0x601424('0x153c')]('motion.folded',_0x37cc49['folded']);}function _0x52bcb0(){var _0x44920b=_0x50e9f3;return _0x37cc49['setting']['defaultHeaderWhiteLabel']?_0x44920b('0x1d0f'):_0x37cc49[_0x44920b('0x22f1')][_0x44920b('0x1016')];}function _0x2a6dee(_0xa1b0fe){var _0xd5f050=_0x50e9f3;if(_0xa1b0fe&&_0xa1b0fe['id']){var _0x52ebd9=0x1869f+_0xa1b0fe['id'];_0x3cc7d6[_0xd5f050('0x1384')]('apps.dashboards.custom_'+_0x52ebd9,{'id':_0x52ebd9,'title':_0xa1b0fe['name']||_0xd5f050('0x1d11'),'state':_0xd5f050('0x21f8'),'stateParams':_0xa1b0fe,'weight':0x2,'hidden':function _0x913a1b(){var _0x142428=_0xd5f050;return _0xc4d670[_0x142428('0x179e')](_0x142428('0x108'))||!_0xc4d670['hasPermission'](_0x52ebd9)&&!_0xc4d670[_0x142428('0x179e')](_0x142428('0xd14'));}});}}function _0x36fe56(_0x2832ac){var _0xdb8869=_0x50e9f3;if(_0x2832ac&&_0x2832ac['id']){var _0x40f4d1=0x1869f+_0x2832ac['id'];_0x3cc7d6[_0xdb8869('0xc32')](_0xdb8869('0x1ba4')+_0x40f4d1);}}function _0xabdd19(_0x3fd134){var _0x4c7b93=_0x50e9f3;if(_0x3fd134&&_0x3fd134['id']&&_0x3fd134['sidebar']!=_0x4c7b93('0x1045')){if(_0x3fd134[_0x4c7b93('0x1a')]){if(_0x3fd134[_0x4c7b93('0x758')]==_0x4c7b93('0x2210')||_0x3fd134[_0x4c7b93('0x758')]==_0x4c7b93('0x387')){_0x3cc7d6['saveItem']('apps.plugins',{'id':0x76c,'title':_0x4c7b93('0x1334'),'translate':'PLUGINS.PLUGINS','icon':'icon-apps','weight':0x11,'hidden':function _0x54facc(){var _0x3e0ddb=_0x4c7b93;return _0xc4d670[_0x3e0ddb('0x179e')]('agent')||!_0xc4d670[_0x3e0ddb('0xe87')](0x76c)&&!_0xc4d670[_0x3e0ddb('0x179e')](_0x3e0ddb('0xd14'));}});var _0x1a48bf=0x15b38+_0x3fd134['id'];_0x3cc7d6[_0x4c7b93('0x1384')](_0x4c7b93('0x707')+_0x1a48bf,{'id':_0x1a48bf,'title':_0x3fd134[_0x4c7b93('0x2623')]||_0x4c7b93('0x1d11'),'state':_0x4c7b93('0x16dc'),'stateParams':_0x3fd134,'weight':0x2,'hidden':function _0x3d0d5f(){var _0x48e0bf=_0x4c7b93;return _0xc4d670[_0x48e0bf('0x179e')](_0x48e0bf('0x108'))||!_0xc4d670[_0x48e0bf('0xe87')](_0x1a48bf)&&!_0xc4d670[_0x48e0bf('0x179e')]('admin');}}),_0x3cc7d6[_0x4c7b93('0x9f6')]();}}else{var _0xb95edb=0x15b38+_0x3fd134['id'];_0x445dd1(0x76c,_0xb95edb)&&(_0x3fd134[_0x4c7b93('0x758')]==_0x4c7b93('0x2210')||_0x3fd134[_0x4c7b93('0x758')]==_0x4c7b93('0x387'))&&(_0x3cc7d6[_0x4c7b93('0xc32')](_0x4c7b93('0x707')+_0xb95edb),!_0x168b61(0x76c)&&_0x3cc7d6[_0x4c7b93('0x1384')](_0x4c7b93('0x1ee0'),{'id':0x76c,'title':_0x4c7b93('0x1334'),'translate':'PLUGINS.PLUGINS','icon':'icon-apps','weight':0x11,'hidden':function _0x1197e2(){return!![];}}));}}}function _0x22c72c(_0xe2d07b){var _0x203821=_0x50e9f3;if(_0xe2d07b&&_0xe2d07b['id']&&_0xe2d07b[_0x203821('0x758')]!=_0x203821('0x1045')){var _0x16b837=0x15b38+_0xe2d07b['id'];(_0xe2d07b[_0x203821('0x758')]==_0x203821('0x2210')||_0xe2d07b[_0x203821('0x758')]=='adminOnly')&&(_0x3cc7d6['deleteItem']('apps.plugins.plugin_'+_0x16b837),!_0x168b61(0x76c)&&_0x3cc7d6[_0x203821('0x1384')](_0x203821('0x1ee0'),{'id':0x76c,'title':'Plugins','translate':_0x203821('0x1dd7'),'icon':_0x203821('0x27be'),'weight':0x11,'hidden':function _0xe49d5b(){return!![];}}));}}function _0x168b61(_0x5b8692){var _0x10f381=_0x50e9f3,_0x108e6b=_0x3cc7d6['getNavigation'](),_0x3fded4=_0x32d445()[_0x10f381('0xf15')](_0x108e6b[0x0][_0x10f381('0x1977')],{'id':_0x5b8692});return _0x3fded4&&_0x3fded4[_0x10f381('0x1977')]['length']>0x0?!![]:![];}function _0x445dd1(_0x224c7c,_0x4a2f33){var _0x285833=_0x50e9f3,_0x3ea263=_0x3cc7d6[_0x285833('0x755')](),_0x26b033=_0x32d445()[_0x285833('0xf15')](_0x3ea263[0x0][_0x285833('0x1977')],{'id':_0x224c7c});if(!_0x26b033)return![];return _0x32d445()[_0x285833('0x201a')](_0x26b033[_0x285833('0x1977')],{'id':_0x4a2f33});}_0x4a9d3f[_0x50e9f3('0xb2b')]('$stateChangeSuccess',function(){var _0x5a827c=_0x50e9f3;_0x37cc49[_0x5a827c('0x4bf')][_0x5a827c('0x850')]('ms-navigation-horizontal-mobile-menu-active');});}const _0x3a5390=_0x4e00bc;;function _0x341389(){}angular[_0xb635d2('0x153f')](_0xb635d2('0x2380'),[])[_0xb635d2('0x1990')](_0x341389)[_0xb635d2('0x1a79')](_0xb635d2('0x12c8'),_0x3a5390),_0x447505['$inject']=[_0xb635d2('0x63c'),'$mdDialog',_0xb635d2('0x1e23'),_0xb635d2('0xffc'),'user',_0xb635d2('0x22f1'),_0xb635d2('0x1590')];function _0x447505(_0x391502,_0x502290,_0x3f45d8,_0x1717a0,_0x1c34fd,_0x2db4c7,_0x4a8220){var _0x1d02d6=_0xb635d2,_0x51bf7e=this;_0x51bf7e[_0x1d02d6('0xcd2')]=[],_0x51bf7e[_0x1d02d6('0x10c6')]=_0x1c34fd,_0x51bf7e[_0x1d02d6('0x22f1')]=_0x2db4c7,_0x51bf7e[_0x1d02d6('0x1590')]=_0x4a8220,_0x51bf7e[_0x1d02d6('0x25ac')]=_0x51bf7e[_0x1d02d6('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x51bf7e[_0x1d02d6('0x2864')]=_0x3db9db,_0x51bf7e[_0x1d02d6('0x2584')]=_0x4ada38,_0x391502['$watch'](_0x1d02d6('0x1c82'),function(_0x2a8630){var _0x2d68f6=_0x1d02d6;!_0x32d445()['isNil'](_0x51bf7e['oldPassword'])&&(_0x2a8630===_0x51bf7e[_0x2d68f6('0x4cc')]?_0x391502[_0x2d68f6('0x1d6e')][_0x2d68f6('0x1f6d')][_0x2d68f6('0xce')](_0x2d68f6('0x145'),![]):_0x391502[_0x2d68f6('0x1d6e')]['password']['$setValidity']('oldPasswordMatch',!![]));});function _0x3db9db(){var _0x5e8c57=_0x1d02d6;_0x51bf7e['errors']=[],_0x1717a0[_0x5e8c57('0x10c6')][_0x5e8c57('0x1676')]({'id':_0x51bf7e[_0x5e8c57('0x10c6')]['id']},{'oldPassword':_0x51bf7e[_0x5e8c57('0x4cc')],'newPassword':_0x51bf7e[_0x5e8c57('0x1f6d')]})['$promise']['then'](function(){var _0x1c5221=_0x5e8c57;_0x3f45d8[_0x1c5221('0x26b2')](_0x3f45d8[_0x1c5221('0x918')]()['textContent']('Your\x20password\x20properly\x20updated')[_0x1c5221('0x1c0b')](_0x1c5221('0x319'))[_0x1c5221('0x133')](0x1388)),_0x4ada38();})[_0x5e8c57('0x223b')](function(_0x5f075e){var _0x16a6b9=_0x5e8c57;console['error'](_0x5f075e),_0x51bf7e[_0x16a6b9('0xcd2')]=_0x5f075e[_0x16a6b9('0x11d0')][_0x16a6b9('0xcd2')]&&_0x5f075e[_0x16a6b9('0x11d0')]['errors'][_0x16a6b9('0x25ae')]?_0x5f075e['data']['errors']:[{'message':_0x5f075e[_0x16a6b9('0x11d0')][_0x16a6b9('0x27e8')]||_0x16a6b9('0x2311'),'type':_0x16a6b9('0x2430')}];});}function _0x4ada38(){var _0x45115d=_0x1d02d6;_0x502290[_0x45115d('0x11ed')]();}}const _0x166c38=_0x447505;_0x414c60[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'preview',_0xb635d2('0x6f2')];function _0x414c60(_0x5af291,_0x2b1b18,_0x474ee0,_0x3ba7f5,_0x14f6b2,_0xa77d1c,_0x5cb431,_0x42a3b8){var _0x242374=_0xb635d2,_0x81c02=this;_0x81c02['customFieldsMap']=_0x42a3b8&&_0x42a3b8[_0x242374('0x16a7')]?_0x32d445()[_0x242374('0x2483')](_0x32d445()[_0x242374('0x226f')](_0x42a3b8['rows'],function(_0x39ef24){var _0x2ba44c=_0x242374;return _0x2ba44c('0x1441')+_0x39ef24['id'];}),_0x242374('0x2623')):{},_0x81c02[_0x242374('0xcd2')]=[],_0x81c02[_0x242374('0x10cc')]=[],_0x81c02[_0x242374('0x936')]=_0x5cb431,_0x81c02[_0x242374('0x194a')]=![],_0x81c02[_0x242374('0x45e')]=![],_0x81c02[_0x242374('0xfb3')]=![],_0x81c02[_0x242374('0x10cc')][_0x242374('0xb76')](_0x81c02[_0x242374('0x936')]['id']),_0x81c02['originatePreview']=_0x57edfd,_0x81c02[_0x242374('0x2584')]=_0x328168,_0x81c02[_0x242374('0x1d48')]=_0x234b17,_0x81c02[_0x242374('0x271d')]=_0x3f9ffc,_0x81c02[_0x242374('0xe81')]=_0x2ea142,_0x81c02[_0x242374('0x9d0')]=_0x37d624,_0x81c02[_0x242374('0x244d')]=_0x1e6666,_0x81c02[_0x242374('0xe44')]=_0x8b7a11;function _0x8b7a11(_0x194f91){return _0x32d445()['isNil'](_0x194f91);}function _0x37d624(_0xe12076){var _0x4d1b1f=_0x242374;return _0x32d445()[_0x4d1b1f('0x20b6')](_0xe12076,'cf_');}function _0x1e6666(_0x217e5a){var _0x2e692c=_0x242374;return _0x32d445()[_0x2e692c('0x1c43')](['Company',_0x2e692c('0x11a4'),_0x2e692c('0x2463'),_0x2e692c('0x43d'),_0x2e692c('0x15c9'),_0x2e692c('0x1336'),'id',_0x2e692c('0xb33'),_0x2e692c('0x50e'),_0x2e692c('0x1105'),_0x2e692c('0x1ce9'),_0x2e692c('0x1a0'),_0x2e692c('0x1d51'),'skype','wechat',_0x2e692c('0x859'),_0x2e692c('0x27e9'),_0x2e692c('0x11c7'),_0x2e692c('0x1ed7')],_0x217e5a);}function _0x57edfd(){var _0x5c308e=_0x242374;_0x81c02[_0x5c308e('0x194a')]=!![],_0x81c02[_0x5c308e('0x45e')]=!![],_0x32d445()[_0x5c308e('0x14b4')](_0x81c02[_0x5c308e('0x936')])?(_0x14f6b2[_0x5c308e('0x8c8')]({'title':_0x5c308e('0x2164'),'msg':_0x5c308e('0x59a')}),_0x81c02[_0x5c308e('0x45e')]=![],_0x81c02[_0x5c308e('0x10cc')]=[],_0x328168(!![])):_0xa77d1c[_0x5c308e('0x21e1')]['getVoiceQueuesPreview']({'id':_0x81c02[_0x5c308e('0x936')]['id']})[_0x5c308e('0xe59')][_0x5c308e('0xe19')](function(){_0x328168(!![]);})['catch'](function(_0x22489d){var _0xae6797=_0x5c308e;_0x14f6b2[_0xae6797('0x8c8')]({'title':_0xae6797('0x2164'),'msg':_0x22489d['data']}),_0x328168(!![]);})[_0x5c308e('0x23')](function(){var _0x5ee6fd=_0x5c308e;_0x81c02[_0x5ee6fd('0x45e')]=![],_0x81c02[_0x5ee6fd('0x10cc')]=[];});}function _0x328168(_0x3cfc9b){var _0x4148a9=_0x242374;_0x32d445()[_0x4148a9('0xe44')](_0x3cfc9b)&&_0xa77d1c[_0x4148a9('0x2408')][_0x4148a9('0xa70')]({'id':_0x81c02[_0x4148a9('0x936')]['id'],'UserId':null}),_0x3ba7f5['hide']();}_0x5af291[_0x242374('0xb2b')](_0x242374('0x5cd'),function(){var _0x49b573=_0x242374;!_0x81c02[_0x49b573('0x194a')]&&_0xa77d1c[_0x49b573('0x2408')][_0x49b573('0xa70')]({'id':_0x81c02[_0x49b573('0x936')]['id'],'UserId':null});});function _0x234b17(){var _0x11af51=_0x242374;return _0x81c02[_0x11af51('0xfb3')]=!![],_0xa77d1c[_0x11af51('0x2408')][_0x11af51('0x8f')]({'hopperIds':_0x81c02[_0x11af51('0x10cc')],'direction':_0x11af51('0xffd')})[_0x11af51('0xe59')][_0x11af51('0xe19')](function(_0x2b1c74){var _0x47c5f4=_0x11af51;_0x81c02[_0x47c5f4('0xfb3')]=![],!_0x32d445()[_0x47c5f4('0xe44')](_0x2b1c74)&&!_0x32d445()[_0x47c5f4('0xe44')](_0x2b1c74['Queue'])&&_0x2b1c74[_0x47c5f4('0x9')][_0x47c5f4('0x8c9')]?(!_0x81c02['originated']&&_0xa77d1c[_0x47c5f4('0x2408')][_0x47c5f4('0xa70')]({'id':_0x81c02['preview']['id'],'UserId':null}),_0x81c02[_0x47c5f4('0x936')]=_0x2b1c74,_0x81c02[_0x47c5f4('0x10cc')]['push'](_0x81c02[_0x47c5f4('0x936')]['id'])):(_0x81c02[_0x47c5f4('0x10cc')]=[],_0x3ba7f5[_0x47c5f4('0x11ed')](),_0x14f6b2['info']({'title':_0x47c5f4('0xfd2'),'msg':_0x47c5f4('0x1a95')}));})[_0x11af51('0x223b')](function(_0x2e3d26){var _0x5bc713=_0x11af51;_0x81c02[_0x5bc713('0xfb3')]=![],_0x81c02[_0x5bc713('0x10cc')]=[];if(_0x2e3d26[_0x5bc713('0x2833')]===0x194)_0x81c02[_0x5bc713('0xe81')]();else{if(_0x2e3d26[_0x5bc713('0x11d0')]&&_0x2e3d26[_0x5bc713('0x11d0')][_0x5bc713('0xcd2')]&&_0x2e3d26[_0x5bc713('0x11d0')][_0x5bc713('0xcd2')][_0x5bc713('0x25ae')]){_0x3ba7f5[_0x5bc713('0x11ed')]();for(var _0x21c403=0x0;_0x21c403<_0x2e3d26[_0x5bc713('0x11d0')]['errors'][_0x5bc713('0x25ae')];_0x21c403+=0x1){_0x14f6b2[_0x5bc713('0x8c8')]({'title':_0x2e3d26[_0x5bc713('0x11d0')][_0x5bc713('0xcd2')][_0x21c403][_0x5bc713('0x62e')],'msg':_0x2e3d26[_0x5bc713('0x11d0')][_0x5bc713('0xcd2')][_0x21c403]['message']});}}else _0x3ba7f5[_0x5bc713('0x11ed')](),_0x14f6b2[_0x5bc713('0x8c8')]({'title':_0x2e3d26[_0x5bc713('0x2833')]?_0x5bc713('0x27f2')+_0x2e3d26[_0x5bc713('0x2833')]+'\x20-\x20'+_0x2e3d26['statusText']:'api\x20preview','msg':_0x2e3d26[_0x5bc713('0x11d0')]?JSON[_0x5bc713('0x3ad')](_0x2e3d26[_0x5bc713('0x11d0')]['message']):_0x2e3d26[_0x5bc713('0x94f')]()});}});}function _0x3f9ffc(){var _0x57adb2=_0x242374;_0x81c02['disableGetContact']=!![];if(_0x81c02[_0x57adb2('0x10cc')]['length']>0x1){var _0xbbc029=_0x32d445()[_0x57adb2('0x1cd8')](_0x81c02[_0x57adb2('0x10cc')],_0x81c02[_0x57adb2('0x936')]['id']);return _0xa77d1c[_0x57adb2('0x2408')][_0x57adb2('0x8f')]({'hopperIds':_0xbbc029,'direction':_0x57adb2('0x1ac2')})[_0x57adb2('0xe59')]['then'](function(_0x1d5d96){var _0x314fe8=_0x57adb2;_0x81c02[_0x314fe8('0xfb3')]=![],!_0x32d445()[_0x314fe8('0xe44')](_0x1d5d96)&&!_0x32d445()['isNil'](_0x1d5d96['Queue'])&&_0x1d5d96[_0x314fe8('0x9')][_0x314fe8('0x8c9')]?(_0x32d445()[_0x314fe8('0xa8b')](_0x81c02['hopperIds'],function(_0xf3e112){var _0x2ae335=_0x314fe8;return _0xf3e112==_0x81c02[_0x2ae335('0x936')]['id'];}),!_0x81c02[_0x314fe8('0x194a')]&&_0xa77d1c[_0x314fe8('0x2408')][_0x314fe8('0xa70')]({'id':_0x81c02[_0x314fe8('0x936')]['id'],'UserId':null}),_0x81c02[_0x314fe8('0x936')]=_0x1d5d96):(_0x81c02[_0x314fe8('0x10cc')]=[],_0x3ba7f5[_0x314fe8('0x11ed')](),_0x14f6b2[_0x314fe8('0x1e67')]({'title':'PREVIEW','msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})['catch'](function(_0x3abf37){var _0x35999d=_0x57adb2;if(_0x3abf37[_0x35999d('0x2833')]===0x194)_0x81c02[_0x35999d('0x10cc')]=[_0x81c02[_0x35999d('0x936')]['id']],_0x14f6b2[_0x35999d('0x1e67')]({'title':_0x35999d('0xfd2'),'msg':_0x35999d('0x5ae')});else{if(_0x3abf37['data']&&_0x3abf37[_0x35999d('0x11d0')]['errors']&&_0x3abf37[_0x35999d('0x11d0')][_0x35999d('0xcd2')][_0x35999d('0x25ae')]){_0x81c02[_0x35999d('0x10cc')]=[],_0x3ba7f5[_0x35999d('0x11ed')]();for(var _0x5cd075=0x0;_0x5cd075<_0x3abf37['data']['errors'][_0x35999d('0x25ae')];_0x5cd075+=0x1){_0x14f6b2['error']({'title':_0x3abf37[_0x35999d('0x11d0')][_0x35999d('0xcd2')][_0x5cd075][_0x35999d('0x62e')],'msg':_0x3abf37[_0x35999d('0x11d0')]['errors'][_0x5cd075]['message']});}}else _0x81c02[_0x35999d('0x10cc')]=[],_0x3ba7f5['hide'](),_0x14f6b2[_0x35999d('0x8c8')]({'title':_0x3abf37['status']?'API:'+_0x3abf37[_0x35999d('0x2833')]+_0x35999d('0x1b7c')+_0x3abf37['statusText']:'api\x20preview','msg':_0x3abf37[_0x35999d('0x11d0')]?JSON[_0x35999d('0x3ad')](_0x3abf37[_0x35999d('0x11d0')][_0x35999d('0x27e8')]):_0x3abf37[_0x35999d('0x94f')]()});}});}}function _0x2ea142(){var _0x1becca=_0x242374;return _0x81c02[_0x1becca('0xfb3')]=!![],_0x14f6b2[_0x1becca('0x1e67')]({'title':_0x1becca('0xfd2'),'msg':'CONTACTS\x20NOT\x20AVAILABLE.\x20REWINDING\x20THE\x20LIST'}),_0xa77d1c['cmHopper'][_0x1becca('0x8f')]({'hopperIds':[_0x81c02[_0x1becca('0x936')]['id']],'direction':_0x1becca('0xffd')})['$promise'][_0x1becca('0xe19')](function(_0x4274fb){var _0x145ce3=_0x1becca;!_0x32d445()[_0x145ce3('0xe44')](_0x4274fb)&&!_0x32d445()[_0x145ce3('0xe44')](_0x4274fb[_0x145ce3('0x9')])&&_0x4274fb['Queue'][_0x145ce3('0x8c9')]?(!_0x81c02[_0x145ce3('0x194a')]&&_0xa77d1c[_0x145ce3('0x2408')][_0x145ce3('0xa70')]({'id':_0x81c02[_0x145ce3('0x936')]['id'],'UserId':null}),_0x81c02[_0x145ce3('0x936')]=_0x4274fb,_0x81c02[_0x145ce3('0x10cc')][_0x145ce3('0xb76')](_0x81c02['preview']['id'])):(_0x3ba7f5[_0x145ce3('0x11ed')](),_0x14f6b2[_0x145ce3('0x1e67')]({'title':_0x145ce3('0xfd2'),'msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})[_0x1becca('0x223b')](function(_0x3f9118){var _0x21ab51=_0x1becca;_0x3ba7f5[_0x21ab51('0x11ed')]();if(_0x3f9118[_0x21ab51('0x2833')]===0x194)_0x14f6b2[_0x21ab51('0x1e67')]({'title':_0x21ab51('0xfd2'),'msg':_0x21ab51('0x1b7f')});else{if(_0x3f9118['data']&&_0x3f9118[_0x21ab51('0x11d0')][_0x21ab51('0xcd2')]&&_0x3f9118[_0x21ab51('0x11d0')][_0x21ab51('0xcd2')][_0x21ab51('0x25ae')])for(var _0x18850f=0x0;_0x18850f<_0x3f9118[_0x21ab51('0x11d0')][_0x21ab51('0xcd2')][_0x21ab51('0x25ae')];_0x18850f+=0x1){_0x14f6b2[_0x21ab51('0x8c8')]({'title':_0x3f9118[_0x21ab51('0x11d0')][_0x21ab51('0xcd2')][_0x18850f][_0x21ab51('0x62e')],'msg':_0x3f9118[_0x21ab51('0x11d0')][_0x21ab51('0xcd2')][_0x18850f][_0x21ab51('0x27e8')]});}else _0x14f6b2[_0x21ab51('0x8c8')]({'title':_0x3f9118[_0x21ab51('0x2833')]?'API:'+_0x3f9118[_0x21ab51('0x2833')]+'\x20-\x20'+_0x3f9118['statusText']:_0x21ab51('0x95a'),'msg':_0x3f9118[_0x21ab51('0x11d0')]?JSON[_0x21ab51('0x3ad')](_0x3f9118[_0x21ab51('0x11d0')][_0x21ab51('0x27e8')]):_0x3f9118[_0x21ab51('0x94f')]()});}})[_0x1becca('0x23')](function(){var _0x32e4be=_0x1becca;_0x81c02[_0x32e4be('0xfb3')]=![];});}}const _0x921915=_0x414c60,_0x84f2d8=_0x59426a['p']+_0xb635d2('0x158d'),_0x5718c5=_0x59426a['p']+_0xb635d2('0x2415');_0x2c498c[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$rootScope','$q',_0xb635d2('0xeb6'),_0xb635d2('0x1a0b'),_0xb635d2('0x2276'),_0xb635d2('0x1795'),_0xb635d2('0x2493'),_0xb635d2('0x1e23'),_0xb635d2('0x2400'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1c1d'),'toasty',_0xb635d2('0x1631'),_0xb635d2('0x2730'),_0xb635d2('0x46d'),'api',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'$interval'];function _0x2c498c(_0x25f09d,_0x4bdcae,_0x264ec6,_0x1eaf6c,_0x6dcec6,_0x3ec4a7,_0x2e5de7,_0x1c28fc,_0x3ef78d,_0x3609f6,_0x3a1e46,_0x389d13,_0x29a884,_0x3c2d93,_0x48fe19,_0x590021,_0x149af2,_0x3923c1,_0x648591,_0x2a6208,_0x1580e8){var _0x17b066=_0xb635d2,_0x3293da=this;_0x3293da[_0x17b066('0x15c5')]={},_0x3293da[_0x17b066('0x1948')]=!![],_0x3293da[_0x17b066('0x2496')]=_0x3923c1[_0x17b066('0x2496')];var _0x32303e;_0x4bdcae[_0x17b066('0xe4f')]={'search':''},_0x3293da[_0x17b066('0x145e')]=[],_0x3293da[_0x17b066('0x5c1')]=_0x648591,_0x3293da[_0x17b066('0x15a5')]=_0x590021[_0x17b066('0x1ef8')](),_0x3293da[_0x17b066('0x155')]=0x0,_0x3293da[_0x17b066('0x2666')]=0x0,_0x3293da[_0x17b066('0x2235')]=0x0;_0x3293da[_0x17b066('0x15a5')][_0x17b066('0xcd9')]===_0x17b066('0x108')&&(_0x32303e=_0x1580e8(_0x95d873,0x3a97));_0x3293da['setting']=_0x2a6208,_0x3293da[_0x17b066('0x4bf')]=angular[_0x17b066('0x24a1')](_0x17b066('0x19b2')),_0x3293da[_0x17b066('0x2808')]={'realm':_0x17b066('0x218b'),'host':_0x3ec4a7[_0x17b066('0x3b7')](),'protocol':_0x3ec4a7[_0x17b066('0xec0')](),'remotePlayerId':'remote-audio','ua':_0x17b066('0x264c'),'license':_0x3293da['license'][_0x17b066('0x15cb')],'phoneBarExpires':_0x3293da[_0x17b066('0x15a5')][_0x17b066('0x2315')],'phoneBarPrefixRequired':_0x3293da[_0x17b066('0x15a5')]['phoneBarPrefixRequired']},_0x3293da[_0x17b066('0xa16')]={'id':_0x590021[_0x17b066('0x1ef8')]()['id'],'fields':_0x17b066('0x1659'),'channel':_0x17b066('0xe74'),'nolimit':!![]},_0x3293da[_0x17b066('0x1e83')]=[{'title':'Online','icon':_0x17b066('0x22a6'),'color':_0x17b066('0xd07')},{'title':_0x17b066('0x21d8'),'icon':_0x17b066('0x2093'),'color':'#FFC107'},{'title':_0x17b066('0x8e4'),'icon':_0x17b066('0x1b1e'),'color':_0x17b066('0x9d4')},{'title':_0x17b066('0x1f08'),'icon':'icon-checkbox-blank-circle-outline','color':_0x17b066('0x26dc')},{'title':'Offline','icon':_0x17b066('0x7b9'),'color':_0x17b066('0x16f')}],_0x3293da[_0x17b066('0x1a85')]={'ar':{'title':_0x17b066('0x1067'),'translation':_0x17b066('0x7b4'),'code':'ar','flag':'ar'},'da':{'title':'Danish','translation':_0x17b066('0x2862'),'code':'da','flag':'da'},'de':{'title':_0x17b066('0x1753'),'translation':_0x17b066('0x914'),'code':'de','flag':'de'},'en':{'title':_0x17b066('0x1a01'),'translation':_0x17b066('0x10be'),'code':'en','flag':'us'},'es':{'title':_0x17b066('0x74e'),'translation':_0x17b066('0x9be'),'code':'es','flag':'es'},'fa':{'title':_0x17b066('0x22bf'),'translation':_0x17b066('0x121d'),'code':'fa','flag':'fa'},'fi':{'title':_0x17b066('0x124c'),'translation':_0x17b066('0x183b'),'code':'fi','flag':'fi'},'fr':{'title':_0x17b066('0x2274'),'translation':_0x17b066('0x1cc'),'code':'fr','flag':'fr'},'he':{'title':_0x17b066('0x1604'),'translation':_0x17b066('0xbaf'),'code':'he','flag':'he'},'hi':{'title':'Hindi','translation':_0x17b066('0x17d0'),'code':'hi','flag':'hi'},'id':{'title':'Indonesian','translation':'TOOLBAR.INDONESIAN','code':'id','flag':'id'},'it':{'title':'Italian','translation':'TOOLBAR.ITALIAN','code':'it','flag':'it'},'ja':{'title':_0x17b066('0x2888'),'translation':_0x17b066('0x525'),'code':'ja','flag':'ja'},'ko':{'title':_0x17b066('0x1109'),'translation':'TOOLBAR.KOREAN','code':'ko','flag':'ko'},'lv':{'title':_0x17b066('0x77a'),'translation':_0x17b066('0x8'),'code':'lv','flag':'lv'},'nl':{'title':'Dutch','translation':_0x17b066('0x8d4'),'code':'nl','flag':'nl'},'no':{'title':_0x17b066('0x19b5'),'translation':_0x17b066('0x445'),'code':'no','flag':'no'},'pl':{'title':_0x17b066('0x4c3'),'translation':'TOOLBAR.POLISH','code':'pl','flag':'pl'},'pt-BR':{'title':'Brazilian','translation':_0x17b066('0x1e0e'),'code':_0x17b066('0x15fe'),'flag':'pt-BR'},'pt-PT':{'title':_0x17b066('0x1865'),'translation':'TOOLBAR.PORTUGUESE','code':'pt-PT','flag':'pt-PT'},'ru':{'title':'Russian','translation':_0x17b066('0x129c'),'code':'ru','flag':'ru'},'sv':{'title':_0x17b066('0x1dc7'),'translation':'TOOLBAR.SWEDISH','code':'sv','flag':'sv'},'tr':{'title':'Turkish','translation':_0x17b066('0x1fbb'),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x17b066('0x2057'),'translation':_0x17b066('0x938'),'code':_0x17b066('0xfb1'),'flag':'zh-CN'},'zh-TW':{'title':_0x17b066('0xb9b'),'translation':_0x17b066('0x162c'),'code':_0x17b066('0x2dd'),'flag':'zh-TW'}};var _0x3bfaa7=['ar','fa','he'];_0x3293da['toggleSidenav']=_0x34172d,_0x3293da[_0x17b066('0xe4e')]=_0x30b24a,_0x3293da[_0x17b066('0x736')]=_0x1b596f,_0x3293da['setUserStatus']=_0x88f231,_0x3293da[_0x17b066('0x563')]=_0x278915,_0x3293da['toggleMsNavigationFolded']=_0x29455f,_0x3293da['search']=_0x16cdbb,_0x3293da[_0x17b066('0xb47')]=_0x4649a4,_0x3293da[_0x17b066('0xda3')]=_0xa3bd0f,_0x3293da['changePassword']=_0xd03509,_0x3293da[_0x17b066('0x608')]=_0x32d6e2,_0x3293da[_0x17b066('0x23db')]=_0x392c2e,_0x3293da[_0x17b066('0x1282')]=_0x2e24f3,_0x3293da[_0x17b066('0x1c98')]=_0x291f61,_0x3293da[_0x17b066('0x2471')]=_0x59be86,_0x3293da[_0x17b066('0x936')]=_0x154759,_0x3293da[_0x17b066('0x613')]=_0x5a012b,_0x3293da[_0x17b066('0x5a3')]=_0x5892d4,_0x3293da[_0x17b066('0xd0a')]=_0xf73884,_0x3293da['onInternalMessageUpdate']=_0xd115a8,_0x3293da[_0x17b066('0x22b3')]=_0x1961dd,_0x3293da[_0x17b066('0x116e')]=_0x848b94,_0x2b60cb(),_0x3286d4(),_0x530f63();function _0x2b60cb(){var _0x23d55f=_0x17b066;_0x3293da[_0x23d55f('0x10c6')]=_0x590021[_0x23d55f('0x1ef8')](),_0x3293da[_0x23d55f('0x2808')][_0x23d55f('0x1fe0')]=_0x3293da[_0x23d55f('0x10c6')][_0x23d55f('0x25c8')],_0x3293da['conf']['id']=_0x3293da[_0x23d55f('0x10c6')]['id'],_0x3293da[_0x23d55f('0x2808')][_0x23d55f('0x2623')]=_0x3293da[_0x23d55f('0x10c6')][_0x23d55f('0x2623')],_0x3293da[_0x23d55f('0x2808')]['fullname']=_0x3293da[_0x23d55f('0x10c6')][_0x23d55f('0xe11')],_0x3293da[_0x23d55f('0x2808')][_0x23d55f('0x1b66')]=_0x3293da['user'][_0x23d55f('0x1b66')],_0x3293da['conf'][_0x23d55f('0x15d0')]=_0x3293da['user']['phoneBarEnableRecording'],_0x3293da['conf'][_0x23d55f('0x5ca')]=_0x3293da[_0x23d55f('0x10c6')][_0x23d55f('0x1790')],_0x3293da[_0x23d55f('0x2808')]['enableSettings']=_0x3293da[_0x23d55f('0x10c6')][_0x23d55f('0x21ef')],_0x3293da[_0x23d55f('0x2808')][_0x23d55f('0x1355')]=_0x3293da['user']['phoneBarEnableDtmfTone'],_0x3293da[_0x23d55f('0x2808')][_0x23d55f('0x18f9')]=_0x3293da['user'][_0x23d55f('0x102c')],_0x3293da[_0x23d55f('0xf81')]=_0x3293da[_0x23d55f('0x1e83')][0x0];var _0x7dcdc8=_0x29a884[_0x23d55f('0x22d5')](_0x23d55f('0x153e'));_0x7dcdc8&&typeof _0x3293da[_0x23d55f('0x1a85')][_0x7dcdc8]!==_0x23d55f('0x1143')?_0x3293da[_0x23d55f('0x221e')]=_0x3293da[_0x23d55f('0x1a85')][_0x7dcdc8]:_0x3293da[_0x23d55f('0x221e')]=_0x3293da[_0x23d55f('0x1a85')][_0x1c28fc[_0x23d55f('0x73d')]()];_0x3923c1[_0x23d55f('0x1c98')]['get']({'fields':'name','nolimit':!![]})[_0x23d55f('0xe59')][_0x23d55f('0xe19')](function(_0x4523df){var _0x15fcb2=_0x23d55f;_0x3293da[_0x15fcb2('0x145e')]=_0x4523df['rows']?_0x4523df[_0x15fcb2('0x16a7')]:[];})[_0x23d55f('0x223b')](function(_0x52d3c4){var _0x2d5e6c=_0x23d55f;_0x3c2d93[_0x2d5e6c('0x8c8')]({'title':_0x52d3c4['status']?_0x2d5e6c('0x27f2')+_0x52d3c4[_0x2d5e6c('0x2833')]+_0x2d5e6c('0x1b7c')+_0x52d3c4[_0x2d5e6c('0x1fd7')]:'SYSTEM:GETPAUSES','msg':_0x52d3c4['status']?JSON['stringify'](_0x52d3c4['data']):_0x52d3c4['toString']()});});if(_0x590021[_0x23d55f('0x240')]()==_0x23d55f('0x780')){if(_0x3293da[_0x23d55f('0x22f1')]['securePassword']){if(!_0x3293da[_0x23d55f('0x10c6')]['passwordResetAt'])_0xd03509(null,!![]);else{var _0x46055f=_0x4ddcaa()(_0x3293da[_0x23d55f('0x10c6')][_0x23d55f('0x1f12')])['add'](_0x3293da[_0x23d55f('0x22f1')][_0x23d55f('0x524')]||0x5a,'day');if(_0x4ddcaa()()['isAfter'](_0x46055f))_0xd03509(null,!![]);else _0x4ddcaa()()[_0x23d55f('0xaf8')](0xf,'day')[_0x23d55f('0x13d')](_0x46055f)&&_0x3c2d93['warning']({'title':_0x1c28fc[_0x23d55f('0x2159')]('TOOLBAR.WARNING')+'!','msg':_0x1c28fc[_0x23d55f('0x2159')](_0x23d55f('0x17bd'))+':\x20'+Math[_0x23d55f('0x2834')](_0x46055f[_0x23d55f('0x2e2')](_0x4ddcaa()(),_0x23d55f('0x1b05'),!![])),'timeout':0x4e20});}}}}function _0x530f63(){var _0x122c99=_0x17b066;_0x149af2[_0x122c99('0x19d9')](),_0x149af2['on']('user:update',_0x3293da[_0x122c99('0x23db')]),_0x149af2['on'](_0x122c99('0x124f'),_0x3293da[_0x122c99('0x1282')]),_0x149af2['on']('chatInternalMessage:save',_0x3293da[_0x122c99('0xd0a')]),_0x149af2['on']('chatInternalMessage:update',_0x3293da[_0x122c99('0x1925')]),_0x149af2['on']('userVoiceQueue:save',_0x3293da[_0x122c99('0x22b3')]),_0x149af2['on']('voiceQueue:save',_0x3293da[_0x122c99('0x116e')]),_0x149af2['on'](_0x122c99('0x1583'),_0x3293da[_0x122c99('0x22b3')]),_0x149af2['on'](_0x122c99('0x18f7'),_0x3293da[_0x122c99('0x116e')]),_0x149af2['on']('voiceQueue:update',_0x3293da[_0x122c99('0x116e')]),_0x149af2['on'](_0x122c99('0x42c'),_0x57357b),_0x149af2['on']('notification:send',_0x4e081e);}function _0x288538(){var _0x379960=_0x17b066;_0x149af2[_0x379960('0x2121')](_0x379960('0x124f')),_0x149af2['removeAllListeners'](_0x379960('0x1ce3')),_0x149af2[_0x379960('0x2121')]('chatInternalMessage:save'),_0x149af2['removeAllListeners'](_0x379960('0xb64')),_0x149af2[_0x379960('0x2121')]('userVoiceQueue:save'),_0x149af2[_0x379960('0x2121')]('voiceQueue:save'),_0x149af2[_0x379960('0x2121')](_0x379960('0x1583')),_0x149af2[_0x379960('0x2121')](_0x379960('0x18f7')),_0x149af2[_0x379960('0x2121')](_0x379960('0x16c')),_0x149af2[_0x379960('0x2121')](_0x379960('0x42c')),_0x149af2['removeAllListeners'](_0x379960('0xaf')),_0x149af2[_0x379960('0x83c')]();}function _0x4d6b36(_0x3971a6){var _0x1d211e=_0x17b066;_0x3293da[_0x1d211e('0x15c5')]=_0x3971a6?_0x32d445()[_0x1d211e('0x226f')](_0x3971a6[_0x1d211e('0x16a7')]?_0x3971a6[_0x1d211e('0x16a7')]:[],'id'):{};}function _0x3286d4(){var _0x11e380=_0x17b066;_0x3293da[_0x11e380('0x9c8')]=_0x3923c1['user'][_0x11e380('0x23cf')](_0x3293da['query'],_0x4d6b36)[_0x11e380('0xe59')];}function _0x848b94(){_0x3286d4();}function _0x1961dd(_0x528279){var _0x5bda28=_0x17b066;_0x32d445()['toInteger'](_0x528279[_0x5bda28('0x43d')])===_0x590021[_0x5bda28('0x1ef8')]()['id']&&_0x3286d4();}function _0x291f61(_0x3f23c1){var _0x3e2eba=_0x17b066;return _0x3923c1['user'][_0x3e2eba('0x1c98')]({'id':_0x3293da['user']['id'],'type':_0x3f23c1||_0x3e2eba('0x271c')})['$promise']['catch'](function(_0x5ec12c){var _0x346974=_0x3e2eba;_0x3c2d93['error']({'title':_0x5ec12c[_0x346974('0x2833')]?_0x346974('0x27f2')+_0x5ec12c['status']+_0x346974('0x1b7c')+_0x5ec12c[_0x346974('0x1fd7')]:'SYSTEM:PAUSEUSER','msg':_0x5ec12c['status']?JSON[_0x346974('0x3ad')](_0x5ec12c[_0x346974('0x11d0')]):_0x5ec12c[_0x346974('0x94f')]()});});}function _0x59be86(){var _0x3cfbe7=_0x17b066;return _0x3923c1[_0x3cfbe7('0x10c6')]['unpause']({'id':_0x3293da[_0x3cfbe7('0x10c6')]['id']})[_0x3cfbe7('0xe59')][_0x3cfbe7('0x223b')](function(_0xe6a50e){var _0x13cb95=_0x3cfbe7;_0x3c2d93[_0x13cb95('0x8c8')]({'title':_0xe6a50e[_0x13cb95('0x2833')]?_0x13cb95('0x27f2')+_0xe6a50e[_0x13cb95('0x2833')]+'\x20-\x20'+_0xe6a50e[_0x13cb95('0x1fd7')]:'SYSTEM:UNPAUSEUSER','msg':_0xe6a50e[_0x13cb95('0x2833')]?JSON[_0x13cb95('0x3ad')](_0xe6a50e[_0x13cb95('0x11d0')]):_0xe6a50e[_0x13cb95('0x94f')]()});});}function _0x154759(_0x24eec5){var _0x210479=_0x17b066;return _0x3293da[_0x210479('0x45e')]=!![],_0x3923c1[_0x210479('0x2408')]['getPreview']()[_0x210479('0xe59')][_0x210479('0xe19')](function(_0x28dcaa){var _0xbfdd2e=_0x210479;!_0x32d445()[_0xbfdd2e('0xe44')](_0x28dcaa)&&!_0x32d445()[_0xbfdd2e('0xe44')](_0x28dcaa[_0xbfdd2e('0x9')])&&_0x28dcaa[_0xbfdd2e('0x9')][_0xbfdd2e('0x8c9')]?_0x3a1e46['show']({'controller':'PreviewDialogController','controllerAs':'vm','templateUrl':_0x84f2d8,'parent':angular[_0xbfdd2e('0x24a1')](_0x389d13[_0xbfdd2e('0x19b2')]),'targetEvent':_0x24eec5,'clickOutsideToClose':!![],'locals':{'preview':_0x28dcaa},'resolve':{'customFields':[_0xbfdd2e('0x292'),function _0xf69bb9(_0x470ea1){var _0x220a47=_0xbfdd2e;return _0x470ea1[_0x220a47('0xcd6')](_0x220a47('0x2043'),{'nolimit':!![]});}]}}):_0x3c2d93['info']({'title':'PREVIEW','msg':_0xbfdd2e('0x1a95')});})[_0x210479('0x223b')](function(_0x325373){var _0x3cc767=_0x210479;if(_0x325373[_0x3cc767('0x2833')]===0x194)_0x3c2d93[_0x3cc767('0x1e67')]({'title':_0x3cc767('0xfd2'),'msg':_0x3cc767('0x64a')});else{if(_0x325373[_0x3cc767('0x11d0')]&&_0x325373[_0x3cc767('0x11d0')]['errors']&&_0x325373[_0x3cc767('0x11d0')][_0x3cc767('0xcd2')][_0x3cc767('0x25ae')]){_0x3293da[_0x3cc767('0xcd2')]=_0x325373[_0x3cc767('0x11d0')][_0x3cc767('0xcd2')]||[{'message':_0x325373[_0x3cc767('0x94f')](),'type':'api.openchannelMessage.accept'}];for(var _0x45e7bc=0x0;_0x45e7bc<_0x325373[_0x3cc767('0x11d0')][_0x3cc767('0xcd2')][_0x3cc767('0x25ae')];_0x45e7bc+=0x1){_0x3c2d93['error']({'title':_0x325373['data'][_0x3cc767('0xcd2')][_0x45e7bc]['type'],'msg':_0x325373[_0x3cc767('0x11d0')]['errors'][_0x45e7bc][_0x3cc767('0x27e8')]});}}else _0x3c2d93['error']({'title':_0x325373['status']?_0x3cc767('0x27f2')+_0x325373[_0x3cc767('0x2833')]+_0x3cc767('0x1b7c')+_0x325373[_0x3cc767('0x1fd7')]:_0x3cc767('0x24cf'),'msg':_0x325373[_0x3cc767('0x11d0')]?JSON[_0x3cc767('0x3ad')](_0x325373[_0x3cc767('0x11d0')][_0x3cc767('0x27e8')]):_0x325373[_0x3cc767('0x94f')]()});}})[_0x210479('0x23')](function(){_0x3293da['disable']=![];});}function _0x34172d(_0x500cc8){_0x2e5de7(_0x500cc8)['toggle']();}function _0x5892d4(){var _0x52e1e8=_0x17b066;return _0x3293da['currentUser'][_0x52e1e8('0xcd9')]===_0x52e1e8('0xd14')||_0x3293da['currentUser']['role']==='user'||_0x3293da['currentUser'][_0x52e1e8('0xcd9')]===_0x52e1e8('0x108')&&_0x3293da[_0x52e1e8('0x15a5')][_0x52e1e8('0x12b4')]!==0x0;}_0x3923c1[_0x17b066('0x1275')][_0x17b066('0x22d5')]({'fields':'FromId','ToId':_0x3293da[_0x17b066('0x15a5')]['id'],'read':![],'nolimit':!![]})[_0x17b066('0xe59')][_0x17b066('0xe19')](function(_0x24fd2a){var _0x3279a6=_0x17b066;_0x3293da[_0x3279a6('0x155')]=_0x24fd2a[_0x3279a6('0x16a7')][_0x3279a6('0x25ae')];});function _0xf73884(_0x2d54e3){var _0x3ac38e=_0x17b066;_0x2d54e3['ToId']===_0x3293da[_0x3ac38e('0x15a5')]['id']&&!_0x2d54e3[_0x3ac38e('0xe0e')]&&(_0x3293da['unreadTotalMessages']+=0x1),_0x2d54e3[_0x3ac38e('0x2047')]===_0x3293da['currentUser']['id']&&_0x2d54e3[_0x3ac38e('0x1451')]!==_0x3293da[_0x3ac38e('0x15a5')]['id']&&!_0x2d54e3[_0x3ac38e('0x1a6e')]&&_0x2d54e3[_0x3ac38e('0xe0e')]&&_0x3293da[_0x3ac38e('0x2666')]++;}function _0xd115a8(_0x38cd69){var _0x274962=_0x17b066;_0x38cd69[_0x274962('0x2047')]===_0x3293da[_0x274962('0x15a5')]['id']&&_0x38cd69[_0x274962('0x1a6e')]&&_0x3293da['unreadTotalMessages']>0x0&&!_0x38cd69[_0x274962('0xe0e')]&&(_0x3293da[_0x274962('0x155')]-=0x1),_0x38cd69[_0x274962('0x2047')]===_0x3293da[_0x274962('0x15a5')]['id']&&_0x38cd69[_0x274962('0x1a6e')]&&_0x38cd69[_0x274962('0xe0e')]&&_0x3293da['unreadTotalGroupMessages']>0x0&&_0x3293da[_0x274962('0x2666')]--;}function _0x88f231(_0x5c6718){var _0x268ad9=_0x17b066;_0x3293da[_0x268ad9('0xf81')]=_0x5c6718;}function _0x30b24a(_0x10e26f){var _0x1bc140=_0x17b066;return _0x288538(),_0x590021[_0x1bc140('0xe4e')](_0x10e26f)[_0x1bc140('0xe19')](function(){var _0x50d5f4=_0x1bc140;return _0x4bdcae[_0x50d5f4('0xa98')](_0x50d5f4('0x2003')),_0x1eaf6c['go']('app.login');})['catch'](function(_0x314339){var _0x116138=_0x1bc140;console[_0x116138('0x8c8')](_0x314339);});}function _0x1b596f(_0x43923b){var _0x1da442=_0x17b066;if(typeof _0x3293da[_0x1da442('0x1a85')][_0x43923b['code']]==_0x1da442('0x1143')){var _0x16621c=_0x1da442('0xbb8');_0x3ef78d[_0x1da442('0x26b2')]({'template':_0x1da442('0x2096')+_0x16621c+_0x1da442('0x1368'),'hideDelay':0x1b58,'position':_0x1da442('0x319'),'parent':'#content'});return;}_0x3293da[_0x1da442('0x221e')]=_0x43923b,_0x29a884[_0x1da442('0x153c')](_0x1da442('0x153e'),_0x43923b['code']),_0x1c28fc['use'](_0x43923b[_0x1da442('0x393')]),_0x1eaf6c['current'][_0x1da442('0x2623')]===_0x1da442('0x26e8')&&_0x3609f6['location']['reload'](),_0x3bfaa7[_0x1da442('0x281c')](_0x43923b[_0x1da442('0x393')])>=0x0?_0x3c2d93['info']({'title':_0x1c28fc[_0x1da442('0x2159')]('TOOLBAR.CHANGE_LANGUAGE_TITLE'),'msg':_0x1c28fc[_0x1da442('0x2159')]('TOOLBAR.CHANGE_LANGUAGE_MESSAGE')}):_0x25f09d[_0x1da442('0x5cf')]['$parent']['vm'][_0x1da442('0x1338')]=_0x1da442('0x1032');}function _0x278915(){var _0x2c9e76=_0x17b066;_0x3293da[_0x2c9e76('0x4bf')]['toggleClass'](_0x2c9e76('0xaea'));}function _0x29455f(){var _0x14c4a5=_0x17b066;_0x48fe19[_0x14c4a5('0x1d49')]();}function _0x16cdbb(_0x580cfa){var _0x264477=_0x17b066,_0x2f3164=[],_0x616bfb=_0x48fe19['getFlatNavigation'](),_0x371a09=_0x264ec6[_0x264477('0x178')]();for(var _0x48c1f3=0x0;_0x48c1f3<_0x616bfb[_0x264477('0x25ae')];_0x48c1f3++){_0x616bfb[_0x48c1f3][_0x264477('0x1da1')]&&_0x2f3164[_0x264477('0xb76')](_0x616bfb[_0x48c1f3]);}return _0x580cfa&&(_0x2f3164=_0x2f3164[_0x264477('0x2891')](function(_0x3327c1){if(_0x3327c1['title']['toLowerCase']()['includes'](_0x580cfa['toLowerCase']()))return!![];})),_0x6dcec6(function(){var _0x43ef48=_0x264477;_0x371a09[_0x43ef48('0xcd6')](_0x2f3164);},0x3e8),_0x371a09[_0x264477('0x9c8')];}function _0x4649a4(_0x3ef455){var _0x3df4ff=_0x17b066;_0x3ef455[_0x3df4ff('0x1da1')]&&(_0x3ef455[_0x3df4ff('0x1c6d')]?_0x1eaf6c['go'](_0x3ef455[_0x3df4ff('0x1d72')],_0x3ef455[_0x3df4ff('0x1c6d')]):_0x1eaf6c['go'](_0x3ef455[_0x3df4ff('0x1d72')]));}function _0xa3bd0f(){var _0x57e746=_0x17b066;_0x4bdcae[_0x57e746('0xa98')](_0x57e746('0x144'));}function _0xd03509(_0x5392d0,_0x30593a){var _0x1cce20=_0x17b066;_0x3a1e46[_0x1cce20('0x26b2')]({'controller':_0x1cce20('0x11df'),'controllerAs':'vm','templateUrl':_0x5718c5,'parent':angular[_0x1cce20('0x24a1')](_0x389d13[_0x1cce20('0x19b2')]),'targetEvent':_0x5392d0,'clickOutsideToClose':_0x30593a?![]:!![],'escapeToClose':_0x30593a?![]:!![],'locals':{'user':_0x3293da[_0x1cce20('0x10c6')],'setting':_0x2a6208,'reset':_0x30593a}});}function _0x32d6e2(){var _0x2b362f=_0x17b066;return _0x590021[_0x2b362f('0x1ef8')]()&&_0x590021['hasRole'](_0x2b362f('0x108'));}function _0x392c2e(_0x189a94){var _0x13abe4=_0x17b066;if(_0x189a94['id']===_0x3293da[_0x13abe4('0x10c6')]['id']){if(_0x189a94[_0x13abe4('0xcd9')]==='agent'&&_0x32d445()[_0x13abe4('0x1120')](_0x189a94[_0x13abe4('0xb46')])&&!_0x189a94['online']){if(_0x3293da[_0x13abe4('0x10c6')][_0x13abe4('0x12b4')]!==0x0){_0x288538();var _0x4fd61b=_0x3a1e46[_0x13abe4('0xa5')]()[_0x13abe4('0x13e4')](_0x1c28fc[_0x13abe4('0x2159')](_0x13abe4('0x6af'))+'!')['textContent'](_0x1c28fc['instant'](_0x13abe4('0x12d1')))[_0x13abe4('0x4d1')](_0x1c28fc['instant'](_0x13abe4('0x6af'))+'!')['ok'](_0x1c28fc[_0x13abe4('0x2159')](_0x13abe4('0x2350')))[_0x13abe4('0x2c1')]('Logout');_0x3a1e46[_0x13abe4('0x26b2')](_0x4fd61b)['then'](function(){var _0x1c635f=_0x13abe4;return _0x590021['queueLogin']()[_0x1c635f('0xe19')](function(){var _0x36b316=_0x1c635f;_0x530f63(),_0x32d445()[_0x36b316('0x1d8')](_0x3293da[_0x36b316('0x10c6')],_0x189a94),_0x590021['setCurrentUser'](_0x3293da[_0x36b316('0x10c6')]);});})[_0x13abe4('0x223b')](function(){_0x30b24a(!![]);});}else _0x30b24a(!![]);}else _0x32d445()[_0x13abe4('0x1d8')](_0x3293da['user'],_0x189a94),_0x590021['setCurrentUser'](_0x3293da['user']);}}function _0x2e24f3(_0x28701b){var _0x3392f4=_0x17b066;_0x3293da[_0x3392f4('0x15a5')]['showWebBar']===0x2&&_0x3293da[_0x3392f4('0x15a5')][_0x3392f4('0xcd9')]===_0x3392f4('0x108')&&_0x3293da[_0x3392f4('0x15a5')]['name']===_0x28701b[_0x3392f4('0x8df')]&&_0x3c2d93[_0x3392f4('0x1e67')]({'title':'WebRTC\x20Popup','msg':_0x3392f4('0x1b93')+_0x28701b[_0x3392f4('0xb2d')]+_0x3392f4('0x1503')+_0x28701b[_0x3392f4('0x26a8')]+_0x3392f4('0x1315')+(_0x28701b['variables']&&_0x28701b['variables'][_0x3392f4('0x2147')]?_0x28701b[_0x3392f4('0x1a9e')]['extravar']:_0x3392f4('0x199f'))+'
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','showClose':!![],'timeout':0x2710,'html':!![]});}function _0x5a012b(){var _0x1af122=_0x17b066;return _0x3293da[_0x1af122('0x22f1')][_0x1af122('0x107c')]?_0x1af122('0x1d0f'):_0x3293da['setting'][_0x1af122('0x1016')];}function _0x95d873(){var _0x47c3a2=_0x17b066;_0x32d445()[_0x47c3a2('0x201a')](_0x3293da[_0x47c3a2('0x15c5')],{'dialMethod':'preview','dialActive':!![]})&&_0x3293da['license'][_0x47c3a2('0x5d')]&&_0x3293da[_0x47c3a2('0x1948')]?(_0x3293da[_0x47c3a2('0x1948')]=![],_0x3923c1[_0x47c3a2('0x2408')][_0x47c3a2('0x2591')]()[_0x47c3a2('0xe59')][_0x47c3a2('0xe19')](function(_0x2e8ddc){var _0x15a591=_0x47c3a2;_0x2e8ddc&&_0x32d445()[_0x15a591('0x1b99')](_0x2e8ddc[_0x15a591('0x4b1')])&&(_0x3293da['contacts']=_0x2e8ddc[_0x15a591('0x4b1')]);})['finally'](function(){_0x3293da['polling']=!![];})):_0x3293da[_0x47c3a2('0x4b1')]=0x0;}function _0x5dc453(){var _0x481fbc=_0x17b066;_0x32303e&&(_0x1580e8[_0x481fbc('0x2c1')](_0x32303e),_0x32303e=null);}function _0x57357b(_0x13e407){var _0x5d793a=_0x17b066;console[_0x5d793a('0x167f')](_0x5d793a('0x14c2'),_0x13e407);if(_0x3293da[_0x5d793a('0x10c6')][_0x5d793a('0x12b4')]!==0x0)return _0x288538(),_0x590021['logout'](!![])['then'](function(){var _0x24bdc4=_0x5d793a;_0x4bdcae[_0x24bdc4('0xa98')]('webrtc::logout'),_0x3a1e46['show'](_0x3a1e46['alert']()[_0x24bdc4('0x4ec')](angular[_0x24bdc4('0x24a1')](_0x389d13['body']))[_0x24bdc4('0x26d6')](![])[_0x24bdc4('0x2815')](![])[_0x24bdc4('0x13e4')](_0x1c28fc[_0x24bdc4('0x2159')](_0x24bdc4('0x6af')))[_0x24bdc4('0x2719')](_0x1c28fc[_0x24bdc4('0x2159')](_0x24bdc4('0x2f8'),{'ip':_0x13e407['ip']}))['ok']('OK'))['then'](function(){var _0x2ab456=_0x24bdc4;return _0x1eaf6c['go'](_0x2ab456('0x2322'));});})[_0x5d793a('0x223b')](function(_0x384b36){var _0x194fa4=_0x5d793a;console[_0x194fa4('0x8c8')](_0x384b36);});}function _0x4e081e(_0xb20ede){var _0x12324e=_0x17b066,_0x7c5692=_0xb20ede;if(_0x3293da[_0x12324e('0x15a5')]['id']===_0x7c5692[_0x12324e('0x2304')]){var _0x4af702=_0x1c28fc[_0x12324e('0x2159')](_0x12324e('0x1690'),{'sender':_0x7c5692['sender']}),_0x6d080f=_0x7c5692[_0x12324e('0x897')]?_0x1c28fc[_0x12324e('0x2159')](_0x12324e('0x89c'),{'recipient':_0x7c5692[_0x12324e('0x897')]}):null;_0x3c2d93[_0x12324e('0x10f1')]({'title':_0x6d080f?_0x4af702+'\x20'+_0x6d080f:_0x4af702,'msg':_0x7c5692[_0x12324e('0xd0')],'clickToClose':![],'timeout':![],'sound':_0x7c5692[_0x12324e('0x803')],'html':!![]});}}_0x25f09d[_0x17b066('0xb2b')](_0x17b066('0x5cd'),function(){var _0x1e6215=_0x17b066;_0x149af2[_0x1e6215('0x2121')](_0x1e6215('0x124f')),_0x149af2[_0x1e6215('0x2121')](_0x1e6215('0x1ce3')),_0x149af2[_0x1e6215('0x2121')]('chatInternalMessage:save'),_0x149af2[_0x1e6215('0x2121')]('chatInternalMessage:update'),_0x149af2[_0x1e6215('0x2121')](_0x1e6215('0x2161')),_0x149af2[_0x1e6215('0x2121')](_0x1e6215('0x8c4')),_0x149af2[_0x1e6215('0x2121')]('userVoiceQueue:remove'),_0x149af2[_0x1e6215('0x2121')](_0x1e6215('0x18f7')),_0x149af2[_0x1e6215('0x2121')](_0x1e6215('0x16c')),_0x149af2[_0x1e6215('0x2121')](_0x1e6215('0x42c')),_0x149af2[_0x1e6215('0x2121')](_0x1e6215('0xaf')),_0x5dc453();});}const _0x196035=_0x2c498c;_0x1cd4b9['$inject']=['$translatePartialLoaderProvider'];function _0x1cd4b9(_0x6ff8b){var _0x1ac895=_0xb635d2;_0x6ff8b[_0x1ac895('0xfe3')](_0x1ac895('0x18de'));}angular[_0xb635d2('0x153f')](_0xb635d2('0x12ba'),[])[_0xb635d2('0x1990')](_0x1cd4b9)['controller'](_0xb635d2('0x11df'),_0x166c38)['controller']('PreviewDialogController',_0x921915)[_0xb635d2('0x1a79')]('ToolbarController',_0x196035),_0x2b50d2[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2493'),'$q',_0xb635d2('0x2730'),'socket',_0xb635d2('0xffc'),_0xb635d2('0x1259'),_0xb635d2('0x5c1')];function _0x2b50d2(_0x4c506f,_0x359396,_0x2ecfa4,_0x263a06,_0x55462,_0x202daa,_0x237712,_0x15d0e3){var _0x5b60d5=_0xb635d2,_0x46ec86=this;_0x46ec86[_0x5b60d5('0xf6d')]=_0x4ddcaa()()[_0x5b60d5('0x5e5')](),_0x46ec86['currentUser']=_0x263a06[_0x5b60d5('0x1ef8')](),_0x46ec86[_0x5b60d5('0x5c1')]=_0x15d0e3,_0x46ec86['unreadTotalMessages']=0x0,_0x46ec86[_0x5b60d5('0x2666')]=0x0,_0x46ec86[_0x5b60d5('0x5a3')]=_0x3b7f7c,_0x46ec86['onMessageSave']=_0x5cb6b3,_0x46ec86[_0x5b60d5('0x262d')]=_0x23dd5b,_0x55462['on'](_0x5b60d5('0xd71'),_0x46ec86[_0x5b60d5('0x17ca')]),_0x55462['on'](_0x5b60d5('0xb64'),_0x46ec86[_0x5b60d5('0x262d')]),_0x202daa['chatInternalMessage']['get']({'fields':_0x5b60d5('0x1451'),'ToId':_0x46ec86[_0x5b60d5('0x15a5')]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x5b60d5('0x1046')})[_0x5b60d5('0xe59')][_0x5b60d5('0xe19')](function(_0x15ff8b){var _0x5aea23=_0x5b60d5;return _0x15ff8b&&_0x15ff8b[_0x5aea23('0x148b')]&&(_0x46ec86[_0x5aea23('0x155')]=_0x15ff8b[_0x5aea23('0x148b')]),_0x202daa[_0x5aea23('0x10c6')][_0x5aea23('0x1d92')]({'id':_0x46ec86[_0x5aea23('0x15a5')]['id']})[_0x5aea23('0xe59')];})[_0x5b60d5('0xe19')](function(_0x18b043){var _0x51eff6=_0x5b60d5,_0x50af03=[],_0x4cbf09=_0x18b043[_0x51eff6('0x16a7')];for(var _0x3e38a7=0x0;_0x3e38a7<_0x4cbf09[_0x51eff6('0x25ae')];_0x3e38a7++){_0x50af03[_0x51eff6('0xb76')](_0x202daa[_0x51eff6('0x125f')][_0x51eff6('0x2436')]({'id':_0x4cbf09[_0x3e38a7]['id']})[_0x51eff6('0xe59')]);}return _0x2ecfa4[_0x51eff6('0xf0e')](_0x50af03);})['then'](function(_0x42e7a7){var _0x580005=_0x5b60d5;for(var _0x2ea724=0x0;_0x2ea724<_0x42e7a7[_0x580005('0x25ae')];_0x2ea724++){_0x46ec86[_0x580005('0x2666')]+=_0x42e7a7[_0x2ea724][_0x580005('0x148b')];}})[_0x5b60d5('0x223b')](function(_0x371e3c){var _0x59b43b=_0x5b60d5;console[_0x59b43b('0x8c8')](_0x371e3c);});function _0x595a9a(_0x1c4fb6){var _0x5553d6=_0x5b60d5,_0x238858={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x5553d6('0x19f1')+_0x1c4fb6['FromId']+_0x5553d6('0x4c'),'body':_0x1c4fb6[_0x5553d6('0x19b2')]||'','focusOnclick':!![],'closeOnClick':!![]};_0x237712[_0x5553d6('0x26b2')](_0x359396[_0x5553d6('0x2159')](_0x5553d6('0xb0a')),_0x238858);}function _0x57400c(_0x2bd37f){var _0x18d65b=_0x5b60d5;_0x237712[_0x18d65b('0x233a')]()?_0x237712['requestPermission']()[_0x18d65b('0xe19')](function(){_0x595a9a(_0x2bd37f);},function(_0x449359){var _0x4f743c=_0x18d65b;console[_0x4f743c('0x8c8')](_0x4f743c('0x1e05'),_0x449359);}):console[_0x18d65b('0x8c8')](_0x18d65b('0x17a4'));}function _0x3b7f7c(){var _0xca4429=_0x5b60d5;return _0x46ec86[_0xca4429('0x15a5')][_0xca4429('0xcd9')]==='admin'||_0x46ec86[_0xca4429('0x15a5')]['role']===_0xca4429('0x10c6')||_0x46ec86[_0xca4429('0x15a5')][_0xca4429('0xcd9')]==='agent'&&_0x46ec86[_0xca4429('0x15a5')][_0xca4429('0x12b4')]!==0x0;}function _0x5cb6b3(_0x422bd8){var _0x13a014=_0x5b60d5;_0x422bd8['ToId']===_0x46ec86['currentUser']['id']&&_0x422bd8[_0x13a014('0x1451')]!==_0x46ec86['currentUser']['id']&&!_0x422bd8['read']&&_0x422bd8[_0x13a014('0xe0e')]&&(_0x46ec86['unreadTotalGroupMessages']++,_0x57400c(_0x422bd8)),_0x422bd8[_0x13a014('0x2047')]===_0x46ec86[_0x13a014('0x15a5')]['id']&&!_0x422bd8[_0x13a014('0xe0e')]&&(_0x46ec86[_0x13a014('0x155')]+=0x1,_0x57400c(_0x422bd8));}function _0x23dd5b(_0x3014c8){var _0x3949b7=_0x5b60d5;_0x3014c8[_0x3949b7('0x2047')]===_0x46ec86[_0x3949b7('0x15a5')]['id']&&_0x3014c8[_0x3949b7('0x1a6e')]&&_0x46ec86[_0x3949b7('0x155')]>0x0&&!_0x3014c8[_0x3949b7('0xe0e')]&&(_0x46ec86[_0x3949b7('0x155')]-=0x1),_0x3014c8[_0x3949b7('0x2047')]==_0x46ec86[_0x3949b7('0x15a5')]['id']&&_0x3014c8[_0x3949b7('0x1451')]!==_0x46ec86[_0x3949b7('0x15a5')]['id']&&_0x3014c8['ChatGroupId']&&_0x3014c8[_0x3949b7('0x1a6e')]&&(_0x46ec86[_0x3949b7('0x2666')]>0x0&&_0x46ec86[_0x3949b7('0x2666')]--);}_0x4c506f[_0x5b60d5('0xb2b')](_0x5b60d5('0x5cd'),function(){var _0x14270e=_0x5b60d5;_0x55462[_0x14270e('0x2121')]('chatInternalMessage:save'),_0x55462[_0x14270e('0x2121')](_0x14270e('0xb64'));});}const _0x3ada2f=_0x2b50d2;_0x10bdfa[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x1a0b'),_0xb635d2('0x2730'),_0xb635d2('0x46d'),'$mdSidenav','$q','$interval',_0xb635d2('0x2493'),_0xb635d2('0x917'),'$http'];function _0x10bdfa(_0x401342,_0x330e96,_0x302ae6,_0x58af41,_0x276aff,_0x21f625,_0x100bdf,_0x366ff8,_0x2cad26,_0x4c721b,_0x230e2c,_0x199e33){var _0x49df72=_0xb635d2,_0x2e2576=this;_0x2e2576['currentUser']=_0x276aff[_0x49df72('0x1ef8')](),_0x2e2576[_0x49df72('0x10c6')]=undefined,_0x2e2576[_0x49df72('0x2526')]={'count':0x0,'rows':[]},_0x2e2576['standardDate']=_0x4ddcaa()(0x0)[_0x49df72('0x5e5')](_0x49df72('0x1f90')),_0x2e2576['unreadMessage']={},_0x2e2576[_0x49df72('0x2179')]='',_0x2e2576[_0x49df72('0x1ebc')]=![],_0x2e2576[_0x49df72('0x15f9')]=_0x20e731,_0x2e2576[_0x49df72('0x1c12')]=_0x2709ff,_0x2e2576[_0x49df72('0x219')]=_0x5027b4,_0x2e2576[_0x49df72('0x17ca')]=_0x5a5460,_0x2e2576[_0x49df72('0x262d')]=_0x30512b,_0x2e2576[_0x49df72('0x23db')]=_0x3a882b,_0x2e2576[_0x49df72('0x1113')]=_0x545eec,_0x2e2576[_0x49df72('0x20c4')]=_0x5eafb2,_0x2e2576[_0x49df72('0xf1b')]=_0x4ad3d0,_0x21f625['on'](_0x49df72('0xd71'),_0x2e2576[_0x49df72('0x17ca')]),_0x21f625['on'](_0x49df72('0xb64'),_0x2e2576['onMessageUpdate']),_0x21f625['on'](_0x49df72('0x1ce3'),_0x2e2576['onUserUpdate']),_0x100bdf('quick-panel')['onClose'](function(){var _0x4dd7a1=_0x49df72;_0x2e2576[_0x4dd7a1('0x10c6')]=undefined;}),_0x302ae6[_0x49df72('0x1275')][_0x49df72('0x22d5')]({'fields':'FromId','ToId':_0x2e2576[_0x49df72('0x15a5')]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x49df72('0x1046')})[_0x49df72('0xe59')][_0x49df72('0xe19')](function(_0x432a2f){var _0x39e398=_0x49df72;_0x2e2576[_0x39e398('0x158c')]=_0x32d445()[_0x39e398('0x2669')](_0x432a2f[_0x39e398('0x16a7')],_0x39e398('0x1451'));})['catch'](function(){}),_0x302ae6[_0x49df72('0x1275')][_0x49df72('0x3df')]()['$promise']['then'](function(_0xcbfecd){_0x2e2576['users']=_0xcbfecd;})[_0x49df72('0x223b')](function(_0xbc5e6e){console['error'](_0xbc5e6e);});function _0x20e731(_0x190fef){var _0xe1b9bc=_0x49df72;_0x2e2576[_0xe1b9bc('0x5c1')]=_0x190fef;}function _0x5a5460(_0xb265fa){var _0x598cd7=_0x49df72;if(_0xb265fa[_0x598cd7('0x2047')]===_0x2e2576[_0x598cd7('0x15a5')]['id']&&!_0xb265fa[_0x598cd7('0xe0e')]){_0x2e2576['user']&&_0x2e2576[_0x598cd7('0x10c6')]['id']===_0xb265fa[_0x598cd7('0x1451')]?(_0x2e2576[_0x598cd7('0x10c6')][_0x598cd7('0x1335')]['rows'][_0x598cd7('0xb76')](_0xb265fa),_0x34a5dc(0x0),_0x302ae6[_0x598cd7('0x1275')][_0x598cd7('0xa70')]({'id':_0xb265fa['id'],'read':!![]})):_0x2e2576[_0x598cd7('0x158c')][_0xb265fa[_0x598cd7('0x1451')]]=_0x2e2576['unreadMessage'][_0xb265fa['FromId']]?_0x2e2576[_0x598cd7('0x158c')][_0xb265fa['FromId']]+0x1:0x1;var _0x3b9bec=_0x32d445()[_0x598cd7('0xf15')](_0x2e2576[_0x598cd7('0x2526')][_0x598cd7('0x16a7')],{'id':_0xb265fa[_0x598cd7('0x1451')]});_0x3b9bec&&(_0x3b9bec[_0x598cd7('0x22d2')]=_0xb265fa[_0x598cd7('0x15c9')],_0x3b9bec['lastMessage']=_0xb265fa);}}function _0x30512b(_0x38788b){var _0x3455e3=_0x49df72;if((_0x38788b[_0x3455e3('0x1451')]===_0x2e2576['currentUser']['id']||_0x38788b['ToId']===_0x2e2576[_0x3455e3('0x15a5')]['id'])&&!_0x38788b[_0x3455e3('0xe0e')]){if(_0x2e2576[_0x3455e3('0x10c6')]){var _0x315d86=_0x32d445()[_0x3455e3('0xf15')](_0x2e2576[_0x3455e3('0x10c6')][_0x3455e3('0x1335')][_0x3455e3('0x16a7')],{'id':_0x38788b['id']});_0x315d86&&_0x32d445()[_0x3455e3('0x1d8')](_0x315d86,_0x38788b);}var _0x284b48=_0x32d445()[_0x3455e3('0xf15')](_0x2e2576[_0x3455e3('0x2526')]['rows'],{'id':_0x2e2576[_0x3455e3('0x15a5')]['id']===_0x38788b[_0x3455e3('0x1451')]?_0x38788b[_0x3455e3('0x2047')]:_0x38788b[_0x3455e3('0x1451')]});_0x284b48&&_0x284b48[_0x3455e3('0x218f')]&&_0x32d445()['merge'](_0x284b48[_0x3455e3('0x218f')],_0x38788b),_0x38788b[_0x3455e3('0x2047')]===_0x2e2576['currentUser']['id']&&(_0x38788b[_0x3455e3('0x1a6e')]&&_0x2e2576[_0x3455e3('0x158c')][_0x38788b[_0x3455e3('0x1451')]]>0x0&&(_0x2e2576['unreadMessage'][_0x38788b['FromId']]-=0x1));}}function _0x3a882b(_0x27d009){var _0x5bee4f=_0x49df72,_0x269419=_0x32d445()[_0x5bee4f('0xf15')](_0x2e2576['users'][_0x5bee4f('0x16a7')],{'id':_0x27d009['id']});_0x269419&&(!_0x32d445()[_0x5bee4f('0xe44')](_0x27d009[_0x5bee4f('0xb46')])&&_0x269419[_0x5bee4f('0xb46')]!==_0x27d009[_0x5bee4f('0xb46')]&&(_0x269419[_0x5bee4f('0xb46')]=_0x27d009[_0x5bee4f('0xb46')]),!_0x32d445()[_0x5bee4f('0xe44')](_0x27d009['allowmessenger'])&&_0x269419['allowmessenger']!==_0x27d009[_0x5bee4f('0x1472')]&&(_0x269419[_0x5bee4f('0x1472')]=_0x27d009[_0x5bee4f('0x1472')]));}function _0x2709ff(_0x3bb250){var _0x530c88=_0x49df72;if(_0x3bb250){if(!_0x3bb250[_0x530c88('0x1472')]&&_0x3bb250[_0x530c88('0xcd9')]==='agent'){_0x330e96[_0x530c88('0x2761')]({'title':_0x4c721b[_0x530c88('0x2159')](_0x530c88('0x1c71')),'msg':_0x4c721b[_0x530c88('0x2159')]('QUICKPANEL.MESSENGER_DISABLED')}),_0x2e2576[_0x530c88('0x10c6')]=undefined;return;}_0x2e2576['user']=_0x3bb250,_0x2e2576['replyMessage']='',_0x302ae6[_0x530c88('0x1275')][_0x530c88('0x22d5')]({'sort':_0x530c88('0x15c9'),'FromId':_0x2e2576['currentUser']['id']+','+_0x3bb250['id'],'ToId':_0x2e2576[_0x530c88('0x15a5')]['id']+','+_0x3bb250['id'],'ChatGroupId':_0x530c88('0x1046')})[_0x530c88('0xe59')][_0x530c88('0xe19')](function(_0x2f2ccc){var _0x8efd48=_0x530c88;if(_0x2f2ccc&&_0x2f2ccc[_0x8efd48('0x16a7')]){_0x2e2576[_0x8efd48('0x10c6')][_0x8efd48('0x1335')]=_0x2f2ccc;for(var _0x293c3b=0x0;_0x293c3b<_0x2e2576[_0x8efd48('0x10c6')][_0x8efd48('0x1335')][_0x8efd48('0x16a7')]['length'];_0x293c3b+=0x1){_0x2e2576[_0x8efd48('0x10c6')][_0x8efd48('0x1335')]['rows'][_0x293c3b][_0x8efd48('0x1a6e')]===![]&&_0x2e2576[_0x8efd48('0x10c6')][_0x8efd48('0x1335')][_0x8efd48('0x16a7')][_0x293c3b][_0x8efd48('0x2047')]===_0x2e2576['currentUser']['id']&&_0x302ae6['chatInternalMessage'][_0x8efd48('0xa70')]({'id':_0x2e2576[_0x8efd48('0x10c6')][_0x8efd48('0x1335')][_0x8efd48('0x16a7')][_0x293c3b]['id'],'read':!![]});}}})[_0x530c88('0x23')](function(){_0x34a5dc(0x0);});}else _0x2e2576[_0x530c88('0x10c6')]=undefined;}function _0x5027b4(){var _0x1564ba=_0x49df72;_0x2e2576['disabled']=!![];if(_0x2e2576['replyMessage']===''){_0x2e2576[_0x1564ba('0x1ebc')]=![];return;}var _0x344384={'FromId':_0x2e2576[_0x1564ba('0x15a5')]['id'],'ToId':_0x2e2576['user']['id'],'body':_0x2e2576[_0x1564ba('0x2179')],'read':![]};_0x2e2576[_0x1564ba('0x2179')]='',_0x302ae6[_0x1564ba('0x1275')][_0x1564ba('0xe5e')](_0x344384)['$promise'][_0x1564ba('0xe19')](function(_0x76c7b5){var _0x44d6b1=_0x1564ba;_0x2e2576[_0x44d6b1('0x10c6')][_0x44d6b1('0x1335')][_0x44d6b1('0x16a7')][_0x44d6b1('0xb76')](_0x76c7b5),_0x2e2576[_0x44d6b1('0x10c6')][_0x44d6b1('0x22d2')]=_0x76c7b5[_0x44d6b1('0x15c9')],_0x2e2576[_0x44d6b1('0x10c6')]['lastMessage']=_0x76c7b5,_0x34a5dc(0x190);})['catch'](function(){})[_0x1564ba('0x23')](function(){var _0x190578=_0x1564ba;_0x2e2576[_0x190578('0x1ebc')]=![];});}function _0x34a5dc(_0x1f3ea3){var _0x19dff5=_0x49df72,_0x2cd66e=angular[_0x19dff5('0x24a1')](_0x19dff5('0x10e6'));_0x58af41(function(){var _0x169efc=_0x19dff5;_0x2cd66e['animate']({'scrollTop':_0x2cd66e[0x0][_0x169efc('0x15c4')]},_0x1f3ea3);},0x0);}function _0x5caec5(_0x1b6ef2){var _0x366261=_0x49df72;return!_0x32d445()[_0x366261('0xe44')](_0x1b6ef2)?_0x1b6ef2['replace'](/[^\w.+#*-]+/g,''):'';}function _0x545eec(_0x534eeb){var _0x4256d6=_0x49df72;_0x230e2c[_0x4256d6('0xa98')]('webrtc::call',{'target':_0x5caec5(_0x534eeb)});}function _0x5eafb2(_0x332c82){var _0x3357d6=_0x49df72;return _0x1f8fd4(_0x3357d6('0xf69')+(_0x2e2576['user']['phoneBarRemoteControlPort']||_0x3357d6('0xb4c'))+'/api/originate/'+_0x5caec5(_0x332c82));}function _0x4ad3d0(_0x589d1b){var _0x1edd56=_0x49df72;return _0x1f8fd4(_0x1edd56('0xf69')+(_0x2e2576[_0x1edd56('0x10c6')][_0x1edd56('0xfc7')]||_0x1edd56('0xb4c'))+_0x1edd56('0x7a0')+_0x5caec5(_0x589d1b));}function _0x1f8fd4(_0x45c20b){var _0x596844=_0x49df72;return _0x199e33[_0x596844('0x22d5')](_0x45c20b)[_0x596844('0x425')](function(){var _0x4fa60f=_0x596844;_0x330e96['success']({'title':_0x4fa60f('0x17b2'),'msg':_0x4fa60f('0x12d9')});})[_0x596844('0x8c8')](function(){var _0x5f587f=_0x596844;_0x330e96[_0x5f587f('0x8c8')]({'title':_0x5f587f('0x21ee'),'msg':_0x4c721b[_0x5f587f('0x2159')](_0x5f587f('0x1e30'))});});}_0x401342[_0x49df72('0xb2b')](_0x49df72('0x5cd'),function(){var _0x3f8932=_0x49df72;_0x21f625[_0x3f8932('0x2121')](_0x3f8932('0xd71')),_0x21f625[_0x3f8932('0x2121')](_0x3f8932('0xb64')),_0x21f625[_0x3f8932('0x2121')](_0x3f8932('0x1ce3'));});}const _0x5bdb1e=_0x10bdfa;_0x2a7da2[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','toasty','api',_0xb635d2('0x2730'),'group','members'];function _0x2a7da2(_0x377210,_0x2433c6,_0x2cdfad,_0x585e36,_0x3625e6,_0x16cc29,_0x33ed25,_0x596ae3,_0xba2b6d){var _0x4c9c14=_0xb635d2,_0x46bd3e=this;_0x46bd3e[_0x4c9c14('0xcd2')]=[],_0x46bd3e[_0x4c9c14('0x13e4')]='QUICKPANEL.EDIT_CHATGROUP',_0x46bd3e[_0x4c9c14('0x246c')]=angular[_0x4c9c14('0x89')](_0x596ae3),_0x46bd3e[_0x4c9c14('0x15a5')]=_0x33ed25['getCurrentUser'](),_0x46bd3e[_0x4c9c14('0x148a')]=_0xba2b6d,_0x46bd3e[_0x4c9c14('0x6e6')]=!![];!_0x46bd3e[_0x4c9c14('0x246c')]&&(_0x46bd3e[_0x4c9c14('0x246c')]={'write':!![],'members':[]},_0x46bd3e[_0x4c9c14('0x13e4')]=_0x4c9c14('0x9e1'));_0x46bd3e[_0x4c9c14('0x17aa')]=_0x322472,_0x46bd3e[_0x4c9c14('0x2584')]=_0x148584,_0x46bd3e[_0x4c9c14('0x15d7')]=_0x274c70;function _0x2aba8b(_0x263022){var _0x26532c=_0x263022['toLowerCase']();return function _0xf6dc37(_0x11e525){var _0x4aab7b=a0_0x5325,_0x570878=_0x11e525[_0x4aab7b('0x2623')]['toLowerCase']();return _0x570878[_0x4aab7b('0x281c')](_0x26532c)!=-0x1;};}function _0x274c70(_0x2c931a){var _0x1cceca=_0x4c9c14;return _0x2c931a?_0x46bd3e[_0x1cceca('0x148a')]['rows'][_0x1cceca('0x2891')](_0x2aba8b(_0x2c931a)):[];}function _0x322472(){var _0x247a70=_0x4c9c14,_0x2ad8a2;return _0x46bd3e[_0x247a70('0xcd2')]=[],_0x16cc29['chatGroup'][_0x247a70('0xe5e')]({'name':_0x46bd3e[_0x247a70('0x246c')]['name'],'write':_0x46bd3e[_0x247a70('0x246c')]['write']})[_0x247a70('0xe59')][_0x247a70('0xe19')](function(_0x2080ad){var _0x36a806=_0x247a70,_0x25c75b=_0x32d445()[_0x36a806('0x65a')](_0x46bd3e['group'][_0x36a806('0x148a')],'id');return _0x25c75b[_0x36a806('0x14c9')](_0x46bd3e[_0x36a806('0x15a5')]['id']),_0x2ad8a2=_0x2080ad,_0x16cc29[_0x36a806('0x125f')][_0x36a806('0x2106')]({'id':_0x2ad8a2['id'],'ids':_0x25c75b})[_0x36a806('0xe59')];})['then'](function(){var _0x382300=_0x247a70;_0x3625e6['success']({'title':_0x382300('0x1d63'),'msg':_0x2ad8a2[_0x382300('0x2623')]+'\x20has\x20been\x20saved!'}),_0x148584(_0x2ad8a2);})[_0x247a70('0x223b')](function(_0x144210){var _0x206db4=_0x247a70;_0x3625e6[_0x206db4('0x8c8')]({'title':_0x144210[_0x206db4('0x2833')]?_0x206db4('0x27f2')+_0x144210[_0x206db4('0x2833')]+_0x206db4('0x1b7c')+_0x144210[_0x206db4('0x1fd7')]:_0x206db4('0x2ea'),'msg':_0x144210['data']?JSON[_0x206db4('0x3ad')](_0x144210[_0x206db4('0x11d0')][_0x206db4('0x27e8')]):_0x144210['toString']()});});}function _0x148584(_0x41af80){_0x585e36['hide'](_0x41af80);}}const _0x3fc124=_0x2a7da2,_0x283c99=_0x59426a['p']+_0xb635d2('0xd01'),_0x25108f=_0x59426a['p']+'src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog-[chunkhash].html';_0x389c30['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x1c9f'),'$mdSidenav','$q',_0xb635d2('0x2730'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),'toasty'];function _0x389c30(_0x36cb31,_0x25037d,_0x56b5fa,_0x575250,_0x321eb3,_0x37c187,_0x3fe811,_0x39a2ea,_0x3c8284,_0x5b2bef){var _0x51c430=_0xb635d2,_0x1b6583=this;_0x1b6583[_0x51c430('0x15a5')]=_0x3fe811[_0x51c430('0x1ef8')](),_0x1b6583[_0x51c430('0x24a2')]={},_0x1b6583[_0x51c430('0x1326')]={},_0x1b6583['participants'],_0x1b6583[_0x51c430('0x246c')],_0x1b6583[_0x51c430('0x15f9')]=_0x1aeb22,_0x1b6583[_0x51c430('0x46f')]=_0x23d7f6,_0x1b6583['addGroup']=_0x4d986f,_0x1b6583['deleteGroup']=_0x17a292,_0x1b6583[_0x51c430('0x3d4')]=_0x25ee90,_0x1b6583['showMessageInfo']=_0x3d2bae,_0x1b6583[_0x51c430('0x1c12')]=_0x1ed816,_0x1b6583[_0x51c430('0x219')]=_0x352b10,_0x3c8284['on'](_0x51c430('0xd71'),_0x27a5f8),_0x3c8284['on'](_0x51c430('0xb64'),_0x24adc0),_0x3c8284['on'](_0x51c430('0x106f'),_0x334151),_0x321eb3(_0x51c430('0xa2c'))[_0x51c430('0x12cc')](_0x23d7f6);function _0x334151(_0x337e12){var _0x3d0177=_0x51c430;_0x1b6583[_0x3d0177('0x1326')][_0x337e12['id']]&&delete _0x1b6583['groups'][_0x337e12['id']];}function _0x24adc0(_0x5dc687){var _0x3f2eaf=_0x51c430;_0x5dc687[_0x3f2eaf('0x2047')]==_0x1b6583['currentUser']['id']&&_0x5dc687[_0x3f2eaf('0x1451')]!==_0x1b6583[_0x3f2eaf('0x15a5')]['id']&&_0x5dc687[_0x3f2eaf('0xe0e')]&&_0x5dc687['read']&&(_0x1b6583[_0x3f2eaf('0x1326')][_0x5dc687['ChatGroupId']][_0x3f2eaf('0x24a2')]>0x0&&_0x1b6583[_0x3f2eaf('0x1326')][_0x5dc687['ChatGroupId']][_0x3f2eaf('0x24a2')]--,_0x1b6583[_0x3f2eaf('0x246c')][_0x3f2eaf('0x1335')][_0x5dc687['id']]&&(_0x1b6583['group'][_0x3f2eaf('0x1335')][_0x5dc687['id']][_0x3f2eaf('0x1a6e')]=!![]));}function _0x27a5f8(_0x44d490){var _0x543989=_0x51c430;if(!_0x1b6583[_0x543989('0x246c')]&&_0x44d490[_0x543989('0x2047')]===_0x1b6583['currentUser']['id']&&_0x44d490[_0x543989('0x1451')]!==_0x1b6583[_0x543989('0x15a5')]['id']&&!_0x44d490[_0x543989('0x1a6e')]&&_0x44d490[_0x543989('0xe0e')]){var _0xa6bf68=_0x1b6583[_0x543989('0x1326')][_0x44d490['ChatGroupId']];if(_0xa6bf68)!_0xa6bf68[_0x543989('0x24a2')]&&(_0xa6bf68['unreadGroupMessages']=0x0),_0xa6bf68['unreadGroupMessages']++;else return _0x39a2ea[_0x543989('0x125f')][_0x543989('0x22d5')]({'id':_0x44d490[_0x543989('0xe0e')]})[_0x543989('0xe59')][_0x543989('0xe19')](function(_0xa8e9c5){var _0x204e89=_0x543989;_0xa8e9c5['unreadGroupMessages']=0x1,_0x1b6583[_0x204e89('0x1326')][_0xa8e9c5['id']]=_0xa8e9c5;});}_0x1b6583[_0x543989('0x246c')]&&_0x44d490['ChatGroupId']===_0x1b6583[_0x543989('0x246c')]['id']&&_0x44d490[_0x543989('0x2047')]===_0x1b6583[_0x543989('0x15a5')]['id']&&_0x39a2ea[_0x543989('0x1275')]['update']({'id':_0x44d490['id'],'read':!![]})[_0x543989('0xe59')]['then'](function(){_0x18ad08(_0x44d490);});}function _0x1aeb22(_0x3aae34){var _0x50d647=_0x51c430;return _0x1b6583['license']=_0x3aae34,_0x39a2ea[_0x50d647('0x10c6')]['getGroups']({'id':_0x1b6583[_0x50d647('0x15a5')]['id']})['$promise'][_0x50d647('0xe19')](function(_0x30b882){var _0x47537d=_0x50d647,_0xb6a90b=[];for(var _0x50786f=0x0;_0x50786f<_0x30b882[_0x47537d('0x16a7')][_0x47537d('0x25ae')];_0x50786f++){_0x30b882[_0x47537d('0x16a7')][_0x50786f][_0x47537d('0x24a2')]=0x0,_0x1b6583[_0x47537d('0x1326')][_0x30b882[_0x47537d('0x16a7')][_0x50786f]['id']]=_0x30b882['rows'][_0x50786f],_0xb6a90b['push'](_0x39a2ea['chatGroup'][_0x47537d('0x2436')]({'id':_0x30b882[_0x47537d('0x16a7')][_0x50786f]['id']})[_0x47537d('0xe59')]);}return _0x37c187[_0x47537d('0xf0e')](_0xb6a90b);})[_0x50d647('0xe19')](function(_0x110d6f){var _0x3bd7e9=_0x50d647;for(var _0x34b95c=0x0;_0x34b95c<_0x110d6f[_0x3bd7e9('0x25ae')];_0x34b95c++){_0x1b6583[_0x3bd7e9('0x1326')][_0x110d6f[_0x34b95c]['id']]['unreadGroupMessages']+=_0x110d6f[_0x34b95c]['count'];}})['catch'](function(_0x10ea7b){var _0x1dc6dc=_0x50d647;console[_0x1dc6dc('0x8c8')](_0x10ea7b);});}function _0x25ee90(){var _0x1d4e09=_0x51c430;return _0x32d445()[_0x1d4e09('0x1b79')](_0x1b6583[_0x1d4e09('0x1326')]);}function _0x3d2bae(_0x58c740,_0x29bd17){var _0x27da57=_0x51c430;_0x575250[_0x27da57('0x26b2')]({'controller':_0x27da57('0x5b0'),'controllerAs':'vm','templateUrl':_0x25108f,'parent':angular[_0x27da57('0x24a1')](_0x25037d[_0x27da57('0x19b2')]),'targetEvent':_0x58c740,'clickOutsideToClose':!![],'locals':{'message':_0x29bd17},'resolve':{'data':function _0x2d7e37(){var _0x9f1a1b=_0x27da57,_0x44ef11={'messages':[]};return _0x39a2ea[_0x9f1a1b('0x1275')][_0x9f1a1b('0x22d5')]({'ChatInternalMessageId':_0x29bd17['id']})[_0x9f1a1b('0xe59')]['then'](function(_0x35785e){var _0xe94b5d=_0x9f1a1b,_0x4ca1b4=[];_0x44ef11['messages']=_0x35785e[_0xe94b5d('0x16a7')],_0x44ef11[_0xe94b5d('0x1335')][_0xe94b5d('0x14c9')](_0x29bd17);for(var _0xbc419b=0x0;_0xbc419b<_0x44ef11[_0xe94b5d('0x1335')]['length'];_0xbc419b++){_0x4ca1b4[_0xe94b5d('0xb76')](_0x39a2ea[_0xe94b5d('0x10c6')]['get']({'id':_0x44ef11[_0xe94b5d('0x1335')][_0xbc419b][_0xe94b5d('0x2047')],'fields':'id,name,fullname,userpic'})[_0xe94b5d('0xe59')]);}return _0x37c187['all'](_0x4ca1b4);})['then'](function(_0x3c4d58){return _0x44ef11['users']=_0x3c4d58,_0x44ef11;})['catch'](function(_0xbb0c65){var _0x91f532=_0x9f1a1b;_0xbb0c65&&console[_0x91f532('0x8c8')](_0xbb0c65);});}}})['then'](function(){})['catch'](function(_0x3ae518){var _0x490862=_0x27da57;_0x3ae518&&console[_0x490862('0x8c8')](_0x3ae518[_0x490862('0x27e8')]);});}function _0x352b10(){var _0x496e23=_0x51c430;if(!_0x1b6583['replyMessage'])return;var _0x2a07bc={'id':_0x1b6583[_0x496e23('0x246c')]['id'],'FromId':_0x1b6583[_0x496e23('0x15a5')]['id'],'ToId':_0x1b6583[_0x496e23('0x15a5')]['id'],'body':_0x1b6583[_0x496e23('0x2179')],'read':!![]},_0x1d60a6=[];_0x1b6583['replyMessage']='',_0x39a2ea[_0x496e23('0x125f')][_0x496e23('0x168a')](_0x2a07bc)[_0x496e23('0xe59')]['then'](function(_0x25eed7){var _0x311c2a=_0x496e23;_0x2a07bc[_0x311c2a('0x1a6e')]=![],_0x2a07bc[_0x311c2a('0x541')]=_0x25eed7['id'];for(var _0x56bed4=0x0;_0x56bed4<_0x1b6583[_0x311c2a('0x246c')][_0x311c2a('0x148a')][_0x311c2a('0x25ae')];_0x56bed4++){_0x1b6583[_0x311c2a('0x246c')][_0x311c2a('0x148a')][_0x56bed4]['id']!==_0x1b6583['currentUser']['id']&&(_0x2a07bc[_0x311c2a('0x2047')]=_0x1b6583[_0x311c2a('0x246c')][_0x311c2a('0x148a')][_0x56bed4]['id'],_0x1d60a6[_0x311c2a('0xb76')](_0x39a2ea[_0x311c2a('0x125f')][_0x311c2a('0x168a')](angular[_0x311c2a('0x89')](_0x2a07bc))['$promise']));}return _0x37c187[_0x311c2a('0xf0e')](_0x1d60a6);})['catch'](function(_0x1516fd){console['log'](_0x1516fd);});}function _0x18ad08(_0x38ca5d){var _0x1d22d7=_0x51c430;_0x1b6583[_0x1d22d7('0x246c')][_0x1d22d7('0x1335')][_0x38ca5d['id']]=_0x38ca5d,_0x38c837(0x190);}function _0x23d7f6(){delete _0x1b6583['group'];}function _0x38c837(_0x1ead98){var _0x10d0b7=_0x51c430,_0x5101de=angular[_0x10d0b7('0x24a1')]('#chat-group-dialog');_0x56b5fa(function(){var _0x48fdf3=_0x10d0b7;_0x5101de[_0x48fdf3('0x1ea1')]({'scrollTop':_0x5101de[0x0][_0x48fdf3('0x15c4')]},_0x1ead98);},0x0);}function _0x1ed816(_0x582c14){var _0x164a70=_0x51c430;_0x1b6583[_0x164a70('0x246c')]={'id':_0x582c14['id'],'write':_0x582c14[_0x164a70('0xca7')],'messages':{}},_0x39a2ea[_0x164a70('0x125f')][_0x164a70('0xb5d')]({'id':_0x582c14['id'],'fields':'id,name,fullname'})[_0x164a70('0xe59')][_0x164a70('0xe19')](function(_0x13be8c){var _0x49b743=_0x164a70;return _0x1b6583[_0x49b743('0x246c')][_0x49b743('0xaf1')]=_0x32d445()[_0x49b743('0x226f')](_0x13be8c[_0x49b743('0x16a7')],'id'),_0x1b6583[_0x49b743('0x246c')][_0x49b743('0x148a')]=_0x32d445()[_0x49b743('0x501')](_0x13be8c[_0x49b743('0x16a7')],[{'id':_0x1b6583['currentUser']['id']}],'id'),_0x1b6583[_0x49b743('0x1a25')]=_0x32d445()['map'](_0x1b6583[_0x49b743('0x246c')][_0x49b743('0x148a')],_0x49b743('0xe11'))[_0x49b743('0x1537')](',\x20'),_0x39a2ea[_0x49b743('0x125f')][_0x49b743('0xe6f')]({'id':_0x582c14['id'],'nolimit':!![]})[_0x49b743('0xe59')];})['then'](function(_0x1322be){var _0x394207=_0x164a70,_0xcec4f3=[],_0x5c3685;for(var _0x58783c=0x0;_0x58783c<_0x1322be[_0x394207('0x148b')];_0x58783c++){_0x1322be['rows'][_0x58783c]['ToId']===_0x1b6583[_0x394207('0x15a5')]['id']&&(_0x5c3685=_0x1322be['rows'][_0x58783c],_0x1b6583[_0x394207('0x246c')][_0x394207('0x1335')][_0x5c3685['id']]=_0x5c3685,_0x1322be[_0x394207('0x16a7')][_0x58783c][_0x394207('0x2047')]==_0x1b6583[_0x394207('0x15a5')]['id']&&_0x1322be[_0x394207('0x16a7')][_0x58783c][_0x394207('0x1451')]!==_0x1b6583['currentUser']['id']&&!_0x5c3685[_0x394207('0x1a6e')]&&_0xcec4f3[_0x394207('0xb76')](_0x39a2ea[_0x394207('0x1275')][_0x394207('0xa70')]({'id':_0x5c3685['id'],'read':!![]})));}return _0x37c187[_0x394207('0xf0e')](_0xcec4f3);})['then'](function(){_0x38c837(0x190);})['catch'](function(_0x1981a0){var _0x46488e=_0x164a70;console[_0x46488e('0x8c8')](_0x1981a0[_0x46488e('0x27e8')]);});}function _0x17a292(_0x5d4201,_0x1c4ed4){var _0x4480b4=_0x51c430,_0x3f9920=_0x575250['confirm']()['title'](_0x4480b4('0x1415'))[_0x4480b4('0x221c')]('Group\x20'+_0x5d4201[_0x4480b4('0x2623')]+_0x4480b4('0x27bb')+'\x20will\x20be\x20deleted.')[_0x4480b4('0x4d1')](_0x4480b4('0x1b84'))[_0x4480b4('0x1345')](_0x1c4ed4)['ok']('OK')[_0x4480b4('0x2c1')](_0x4480b4('0x17'));_0x575250[_0x4480b4('0x26b2')](_0x3f9920)[_0x4480b4('0xe19')](function(){var _0x54283d=_0x4480b4;return _0x39a2ea[_0x54283d('0x125f')][_0x54283d('0x229e')]({'id':_0x5d4201['id']})[_0x54283d('0xe59')];})[_0x4480b4('0xe19')](function(){var _0x5b83ee=_0x4480b4;delete _0x1b6583['groups'][_0x5d4201['id']],_0x5b2bef['success']({'title':'Group\x20properly\x20deleted!','msg':_0x5d4201['name']+_0x5b83ee('0x2182')});})[_0x4480b4('0x223b')](function(_0x3e9415){var _0x516e6=_0x4480b4;_0x3e9415&&_0x5b2bef[_0x516e6('0x8c8')]({'title':_0x3e9415[_0x516e6('0x2833')]?_0x516e6('0x27f2')+_0x3e9415[_0x516e6('0x2833')]+_0x516e6('0x1b7c')+_0x3e9415[_0x516e6('0x1fd7')]:_0x516e6('0x25e9'),'msg':_0x3e9415[_0x516e6('0x11d0')]?JSON[_0x516e6('0x3ad')](_0x3e9415[_0x516e6('0x11d0')][_0x516e6('0x27e8')]):_0x3e9415[_0x516e6('0x94f')]()});});}function _0x4d986f(_0x2e8ed8,_0x5ed8c5){var _0x474032=_0x51c430;_0x575250[_0x474032('0x26b2')]({'controller':_0x474032('0x102b'),'controllerAs':'vm','templateUrl':_0x283c99,'parent':angular[_0x474032('0x24a1')](_0x25037d['body']),'targetEvent':_0x5ed8c5,'clickOutsideToClose':!![],'locals':{'group':_0x2e8ed8,'me':_0x1b6583['currentUser'],'license':null,'setting':null},'resolve':{'members':function _0x27deaf(){var _0x14326b=_0x474032;return _0x3fe811[_0x14326b('0x179e')](_0x14326b('0xd14'))?_0x39a2ea[_0x14326b('0x10c6')][_0x14326b('0x22d5')]({'role':_0x14326b('0x108')})[_0x14326b('0xe59')]:_0x39a2ea[_0x14326b('0x154f')]['getResources']({'id':_0x3fe811[_0x14326b('0x1ef8')]()[_0x14326b('0x1d04')],'section':'Agents','role':'agent'})[_0x14326b('0xe59')];}}})[_0x474032('0xe19')](function(_0x194867){var _0x458ca4=_0x474032;_0x194867&&(_0x1b6583[_0x458ca4('0x1326')][_0x194867['id']]=_0x194867);})['catch'](function(_0x52a43b){var _0x5f3bb1=_0x474032;_0x52a43b&&console['error'](_0x52a43b[_0x5f3bb1('0x27e8')]);});}_0x36cb31[_0x51c430('0xb2b')](_0x51c430('0x5cd'),function(){var _0x52d4ff=_0x51c430;_0x3c8284[_0x52d4ff('0x2121')](_0x52d4ff('0xd71')),_0x3c8284[_0x52d4ff('0x2121')](_0x52d4ff('0xb64')),_0x3c8284[_0x52d4ff('0x2121')](_0x52d4ff('0x106f'));});}const _0x402f=_0x389c30;_0x27c67e[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state','$location',_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),'api',_0xb635d2('0x2730'),_0xb635d2('0x11d0')];function _0x27c67e(_0x41bf53,_0x2bb896,_0x51604f,_0xc723d0,_0x802f97,_0x2cb93f,_0x5b81bc,_0x418212){var _0x515381=_0xb635d2,_0x5336da=this;_0x5336da['data']=_0x418212,_0x5336da[_0x515381('0x13e4')]='QUICKPANEL.INFO';function _0x3b5973(){_0xc723d0['hide']();}_0x5336da[_0x515381('0x2584')]=_0x3b5973;}const _0x2cc4fe=_0x27c67e;_0x124260[_0xb635d2('0xb0c')]=[_0xb635d2('0x2104')];function _0x124260(_0x1258f4){var _0x1c0af4=_0xb635d2;_0x1258f4[_0x1c0af4('0xfe3')](_0x1c0af4('0x10d5'));}angular[_0xb635d2('0x153f')](_0xb635d2('0x13a2'),[])['config'](_0x124260)[_0xb635d2('0x1a79')]('QuickPanelController',_0x3ada2f)['controller'](_0xb635d2('0x987'),_0x5bdb1e)[_0xb635d2('0x1a79')](_0xb635d2('0x102b'),_0x3fc124)['controller'](_0xb635d2('0x30c'),_0x402f)[_0xb635d2('0x1a79')](_0xb635d2('0x5b0'),_0x2cc4fe),_0x3fb232[_0xb635d2('0xb0c')]=[_0xb635d2('0x2730'),_0xb635d2('0x1c1d')];function _0x3fb232(_0x4826e8,_0x4e2ed4){var _0x47098b=_0xb635d2,_0x2c53f8=this;function _0x5cecf6(){var _0x52f078=a0_0x5325;_0x4e2ed4['put'](_0x52f078('0x2187')+_0x2c53f8[_0x52f078('0x15a5')]['id'],!![]);}_0x2c53f8[_0x47098b('0x15a5')]=_0x4826e8[_0x47098b('0x1ef8')](),_0x2c53f8[_0x47098b('0x289a')]=_0x4e2ed4[_0x47098b('0x22d5')](_0x47098b('0x2187')+_0x2c53f8[_0x47098b('0x15a5')]['id'])||![],_0x2c53f8[_0x47098b('0x1c25')]=_0x5cecf6;}const _0x308475=_0x3fb232;_0x509b89[_0xb635d2('0xb0c')]=[_0xb635d2('0x2104')];function _0x509b89(_0x5b3962){var _0x2d8fd0=_0xb635d2;_0x5b3962[_0x2d8fd0('0xfe3')](_0x2d8fd0('0x237d'));}angular[_0xb635d2('0x153f')](_0xb635d2('0x6ed'),[])['config'](_0x509b89)[_0xb635d2('0x1a79')](_0xb635d2('0x1073'),_0x308475),_0xedc5d6[_0xb635d2('0xb0c')]=[_0xb635d2('0x2730'),_0xb635d2('0x1c1d')];function _0xedc5d6(_0x1a2092,_0x3decb5){var _0x134d1a=_0xb635d2,_0x51b588=this;function _0x2f7b9c(){var _0x2f8d96=a0_0x5325;_0x3decb5['put']('motion.cookieAlertHide:'+_0x51b588[_0x2f8d96('0x15a5')]['id'],!![]);}_0x51b588[_0x134d1a('0x15a5')]=_0x1a2092[_0x134d1a('0x1ef8')](),_0x51b588[_0x134d1a('0x38f')]=_0x3decb5[_0x134d1a('0x22d5')]('motion.cookieAlertHide:'+_0x51b588[_0x134d1a('0x15a5')]['id'])||![],_0x51b588[_0x134d1a('0x12c7')]=_0x2f7b9c;}const _0x44aee7=_0xedc5d6;_0x53432d[_0xb635d2('0xb0c')]=[_0xb635d2('0x2104')];function _0x53432d(_0x2360f8){var _0xaf2c83=_0xb635d2;_0x2360f8[_0xaf2c83('0xfe3')]('app/footer');}angular[_0xb635d2('0x153f')](_0xb635d2('0x1df3'),[])['config'](_0x53432d)[_0xb635d2('0x1a79')](_0xb635d2('0x2659'),_0x44aee7);var _0x5512f1=_0x59426a(0x1cbe),_0x456980=_0x59426a(0x2303),_0x1d4049=_0x59426a(0xde6),_0x5d5199=_0x59426a(0x321),_0xc2da4d=_0x59426a(0x1c92),_0x29c962=_0x59426a(0x2361),_0x4aca23=_0x59426a(0xdd5),_0x3c7e90=_0x59426a(0x9d6),_0x3f14a1=_0x59426a(0x20aa),_0x534001=_0x59426a(0x1ac1),_0x2720f5=_0x59426a(0x15c3),_0x73d18=_0x59426a(0x154a),_0x255320=_0x59426a(0x2154),_0x33dfe9=_0x59426a(0x23a1),_0x2e43d4=_0x59426a(0xa7c),_0x372e76=_0x59426a(0x1eaf),_0x9bed15=_0x59426a(0x444),_0x12cf58=_0x59426a(0x1c4),_0x469868=_0x59426a(0x121a),_0x59076f=_0x59426a(0x1be),_0x116a7d=_0x59426a(0xd3e);const _0x519f7d=_0x59426a['p']+_0xb635d2('0x2399'),_0xdac88a=_0x59426a['p']+_0xb635d2('0x21c'),_0x376168=_0x59426a['p']+_0xb635d2('0x504'),_0x50d680=_0x59426a['p']+_0xb635d2('0x894'),_0x1460ad=_0x59426a['p']+_0xb635d2('0x15c8'),_0x12c5aa=_0x59426a['p']+_0xb635d2('0x163a'),_0x5e2b05=_0x59426a['p']+_0xb635d2('0x14f4'),_0x40bca0=_0x59426a['p']+_0xb635d2('0x649');_0x1935f5[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x46d'),_0xb635d2('0xdd3'),_0xb635d2('0x174')];function _0x1935f5(_0x3bc4ca,_0x5b7ed3,_0x2f1741,_0x4ba422){var _0x5b0471=_0xb635d2,_0xd9a09a=this,_0x41b004=[];_0xd9a09a[_0x5b0471('0x1990')]={'format':_0x5b0471('0x262'),'unit':'seconds','trim':![]},_0xd9a09a['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x5b0471('0x606'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0xd9a09a[_0x5b0471('0x174')]=_0x4ba422?_0x32d445()['keyBy'](_0x4ba422[_0x5b0471('0x16a7')]?_0x4ba422[_0x5b0471('0x16a7')]:[],'id'):{},_0xd9a09a[_0x5b0471('0x786')]=_0x51b0ad,_0xd9a09a[_0x5b0471('0x1d27')]=_0x1bb5aa,_0x5b7ed3['on'](_0x5b0471('0x119d'),_0xd9a09a['onSaveChatInteraction']),_0x5b7ed3['on']('chatInteraction:update',_0xd9a09a[_0x5b0471('0x1d27')]),_0x1cf460();function _0x3d567c(_0x34c1e1,_0x1db5e9){var _0x1989a5=_0x5b0471;!_0x34c1e1[_0x1989a5('0x1835')]&&!_0x34c1e1['UserId']&&_0x1db5e9&&(_0xd9a09a[_0x1989a5('0x1a7a')]['waiting']+=0x1);!_0x34c1e1['closed']&&_0x34c1e1[_0x1989a5('0x43d')]&&!_0x32d445()[_0x1989a5('0x1c43')](_0x41b004,_0x34c1e1['id'])&&(_0xd9a09a['inbound'][_0x1989a5('0xe75')]+=0x1,_0x41b004[_0x1989a5('0xb76')](_0x34c1e1['id']),!_0x1db5e9&&_0xd9a09a['inbound'][_0x1989a5('0x183a')]&&(_0xd9a09a['inbound'][_0x1989a5('0x183a')]-=0x1));if(_0x34c1e1['closed']&&_0x34c1e1['disposition']===_0x1989a5('0x3ac'))_0xd9a09a[_0x1989a5('0x1a7a')]['abandoned']+=0x1,!_0x1db5e9&&_0xd9a09a['inbound'][_0x1989a5('0x183a')]&&(_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0x183a')]-=0x1);else{if(_0x34c1e1[_0x1989a5('0x1835')]&&!_0x34c1e1['UserId']&&_0x34c1e1[_0x1989a5('0x2506')])_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0x5b4')]+=0x1,!_0x1db5e9&&_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0x183a')]&&(_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0x183a')]-=0x1);else _0x34c1e1[_0x1989a5('0x1835')]&&_0x34c1e1[_0x1989a5('0x43d')]&&(_0xd9a09a['inbound']['sumBillable']+=_0x4ddcaa()(_0x34c1e1[_0x1989a5('0xbd0')])[_0x1989a5('0x2e2')](_0x4ddcaa()(_0x34c1e1['read1stAt']),_0xd9a09a[_0x1989a5('0x1990')][_0x1989a5('0x25a7')]),_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0x25a3')]+=_0x4ddcaa()(_0x34c1e1[_0x1989a5('0x1e3d')])[_0x1989a5('0x2e2')](_0x4ddcaa()(_0x34c1e1[_0x1989a5('0x15c9')]),_0xd9a09a[_0x1989a5('0x1990')][_0x1989a5('0x25a7')]),_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0x18e1')]+=0x1,!_0x1db5e9&&_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0xe75')]&&(_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0xe75')]-=0x1));}_0x1db5e9&&(_0xd9a09a[_0x1989a5('0x1a7a')][_0x1989a5('0x1e14')]+=0x1);}function _0x56bc8c(){var _0x396041=_0x5b0471;_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x9b9')]=Math['round']((_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x3ac')]+_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x5b4')])/(_0xd9a09a['inbound'][_0x396041('0x1e14')]-_0xd9a09a['inbound'][_0x396041('0xe75')]-_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x183a')])*0x64,-0x2),_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x2209')]=Math[_0x396041('0x2536')](_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x18e1')]/(_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x1e14')]-_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0xe75')]-_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x183a')])*0x64,-0x2),_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x24be')]=_0x4ddcaa()[_0x396041('0xf6a')](Math['round'](_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x25a3')]/_0xd9a09a[_0x396041('0x1a7a')][_0x396041('0x18e1')]),_0xd9a09a['config'][_0x396041('0x25a7')])[_0x396041('0x5e5')](_0xd9a09a[_0x396041('0x1990')]['format'],_0xd9a09a[_0x396041('0x1990')]),_0xd9a09a['inbound'][_0x396041('0x1b7a')]=_0x4ddcaa()[_0x396041('0xf6a')](Math['round'](_0xd9a09a[_0x396041('0x1a7a')]['sumBillable']/_0xd9a09a[_0x396041('0x1a7a')]['answered']),_0xd9a09a[_0x396041('0x1990')][_0x396041('0x25a7')])[_0x396041('0x5e5')](_0xd9a09a[_0x396041('0x1990')][_0x396041('0x5e5')],_0xd9a09a[_0x396041('0x1990')]);}function _0x1cf460(){var _0x18e457=_0x5b0471;if(Object[_0x18e457('0x1234')](_0xd9a09a['chatWebsites'])[_0x18e457('0x25ae')]>0x0)for(var _0x459955=0x0;_0x459955<_0x2f1741[_0x18e457('0x16a7')][_0x18e457('0x25ae')];_0x459955+=0x1){if(_0x5e9f63(_0x2f1741['rows'][_0x459955])){var _0x234da2=_0x2f1741['rows'][_0x459955];_0x3d567c(_0x234da2,!![]),_0x56bc8c();}}}function _0x5e9f63(_0x441c7f){var _0x152dde=_0x5b0471;if(_0x32d445()[_0x152dde('0x201a')](_0xd9a09a[_0x152dde('0x174')],{'id':_0x32d445()[_0x152dde('0xcd3')](_0x441c7f[_0x152dde('0x365')])}))return!![];return![];}function _0x2eeecc(_0x4bcd76){var _0x1cbe49=_0x5b0471,_0x34afa7=_0x4ddcaa()()[_0x1cbe49('0x1e9e')](0x0,!![])[_0x1cbe49('0x21b1')](_0x1cbe49('0x2103')),_0x17c1f2=_0x4ddcaa()()[_0x1cbe49('0x1e9e')](0x0,!![])['endOf'](_0x1cbe49('0x2103'));return _0x4ddcaa()(_0x4bcd76)[_0x1cbe49('0x1e9e')](0x0,!![])[_0x1cbe49('0x2851')](_0x34afa7,_0x17c1f2);}function _0x51b0ad(_0x1b233f){_0x5e9f63(_0x1b233f)&&_0x2eeecc(_0x1b233f['createdAt'])&&(_0x3d567c(_0x1b233f,!![]),_0x56bc8c());}function _0x1bb5aa(_0x1e56fd){_0x5e9f63(_0x1e56fd)&&_0x2eeecc(_0x1e56fd['createdAt'])&&(_0x3d567c(_0x1e56fd,![]),_0x56bc8c());}_0x3bc4ca[_0x5b0471('0xb2b')]('$destroy',function(){var _0x3cb010=_0x5b0471;_0x5b7ed3[_0x3cb010('0x2121')](_0x3cb010('0x119d')),_0x5b7ed3['removeAllListeners'](_0x3cb010('0x2c7'));});}const _0x4e4f1e=_0x1935f5;_0x4d5fa9['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1c1a'),_0xb635d2('0x46d'),'outboundQueues',_0xb635d2('0x146c'),_0xb635d2('0x122a'),_0xb635d2('0x11ab'),_0xb635d2('0x13e2')];function _0x4d5fa9(_0x47485c,_0x290daf,_0x44a0c8,_0x2a5672,_0x23b937,_0x27238d,_0x4faae9,_0x2f7db6){var _0x1e9346=_0xb635d2,_0x58c0c4=this;_0x58c0c4[_0x1e9346('0x2017')]=_0x2a5672?_0x32d445()['keyBy'](_0x2a5672[_0x1e9346('0x16a7')]?_0x2a5672[_0x1e9346('0x16a7')]:[],'id'):{},_0x58c0c4[_0x1e9346('0x146c')]=_0x23b937?_0x32d445()['keyBy'](_0x23b937[_0x1e9346('0x16a7')]?_0x23b937[_0x1e9346('0x16a7')]:[],'id'):{},_0x58c0c4['rpcCampaigns']=_0x2f7db6?_0x32d445()[_0x1e9346('0x226f')](_0x2f7db6[_0x1e9346('0x16a7')]?_0x2f7db6[_0x1e9346('0x16a7')]:[],'id'):{},_0x58c0c4[_0x1e9346('0x989')]={'originated':0x0,'limitCalls':0x0},_0x58c0c4[_0x1e9346('0x1a7a')]={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x1e9346('0x606'),'avgTalkTime':_0x1e9346('0x606'),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x58c0c4[_0x1e9346('0x1153')]=_0x97a1b6,_0x58c0c4['onSaveCampaign']=_0x4b7528,_0x44a0c8[_0x1e9346('0x4df')](_0x1e9346('0x149c'),_0x58c0c4['onSaveQueue']),_0x58c0c4[_0x1e9346('0x134c')]=_0x290daf(function(){_0x29403f(),_0x1cfb16();},0x3e7),_0x44a0c8[_0x1e9346('0x4df')](_0x1e9346('0x1b48'),_0x58c0c4[_0x1e9346('0x1d6c')]),_0x29403f(),_0x1cfb16();function _0x29403f(){var _0x5ee1e1=_0x1e9346;_0x27238d({'queues':_0x58c0c4[_0x5ee1e1('0x2017')],'rpcQueues':_0x58c0c4[_0x5ee1e1('0x146c')]})[_0x5ee1e1('0xe19')](function(_0x273a04){var _0x1fb3b9=_0x5ee1e1;_0x58c0c4[_0x1fb3b9('0x1a7a')]=_0x273a04;});}function _0x1cfb16(){var _0x4cc107=_0x1e9346;_0x4faae9({'rpcCampaigns':_0x58c0c4[_0x4cc107('0x13e2')]})['then'](function(_0x5d95c8){var _0x4eb5a2=_0x4cc107;_0x58c0c4[_0x4eb5a2('0x989')]=_0x5d95c8;});}function _0x97a1b6(_0x5c5e7c){var _0x3ca203=_0x1e9346;_0x58c0c4[_0x3ca203('0x2017')][_0x5c5e7c['id']]&&(_0x58c0c4[_0x3ca203('0x146c')][_0x5c5e7c['id']]&&(_0x58c0c4[_0x3ca203('0x146c')][_0x5c5e7c['id']]=_0x5c5e7c));}function _0x4b7528(_0x386d73){var _0x32453f=_0x1e9346;_0x58c0c4['rpcCampaigns'][_0x386d73['id']]&&(_0x58c0c4[_0x32453f('0x13e2')][_0x386d73['id']]=_0x386d73);}_0x47485c[_0x1e9346('0xb2b')]('$destroy',function(){var _0x44dd26=_0x1e9346;_0x44a0c8[_0x44dd26('0x2121')](_0x44dd26('0x149c')),_0x44a0c8[_0x44dd26('0x2121')](_0x44dd26('0x1b48')),_0x58c0c4['interval']&&_0x290daf[_0x44dd26('0x2c1')](_0x58c0c4[_0x44dd26('0x134c')]);});}const _0x529827=_0x4d5fa9;_0x58f2d5[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x46d'),_0xb635d2('0x10d3'),_0xb635d2('0x1a77')];function _0x58f2d5(_0x3f5f8e,_0x2b4b86,_0x5e9912,_0xd41b29){var _0x478e2e=_0xb635d2,_0x462b25=this,_0x19e0e7=[];_0x462b25[_0x478e2e('0x1990')]={'format':_0x478e2e('0x262'),'unit':_0x478e2e('0x8ec'),'trim':![]},_0x462b25[_0x478e2e('0x1a7a')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x478e2e('0x606'),'avgTalkTime':_0x478e2e('0x606'),'answerRate':0x0,'abandonRate':0x0},_0x462b25['faxAccounts']=_0xd41b29?_0x32d445()[_0x478e2e('0x226f')](_0xd41b29[_0x478e2e('0x16a7')]?_0xd41b29['rows']:[],'id'):{},_0x462b25[_0x478e2e('0xc05')]=_0x4d14cb,_0x462b25[_0x478e2e('0x1614')]=_0x45db98,_0x2b4b86['on']('faxInteraction:save',_0x462b25[_0x478e2e('0xc05')]),_0x2b4b86['on']('faxInteraction:update',_0x462b25['onUpdateFaxInteraction']),_0x2471e4();function _0xbf4af8(_0x2f9e30,_0x4fde9f){var _0x2ceba5=_0x478e2e;!_0x2f9e30['closed']&&!_0x2f9e30[_0x2ceba5('0x43d')]&&_0x4fde9f&&(_0x462b25['inbound']['waiting']+=0x1),!_0x2f9e30['closed']&&_0x2f9e30[_0x2ceba5('0x43d')]&&!_0x32d445()[_0x2ceba5('0x1c43')](_0x19e0e7,_0x2f9e30['id'])&&(_0x462b25['inbound'][_0x2ceba5('0xe75')]+=0x1,_0x19e0e7['push'](_0x2f9e30['id']),!_0x4fde9f&&_0x462b25['inbound'][_0x2ceba5('0x183a')]&&(_0x462b25['inbound'][_0x2ceba5('0x183a')]-=0x1)),_0x2f9e30[_0x2ceba5('0x1835')]&&_0x2f9e30['UserId']&&(_0x462b25[_0x2ceba5('0x1a7a')]['sumBillable']+=_0x4ddcaa()(_0x2f9e30[_0x2ceba5('0xbd0')])[_0x2ceba5('0x2e2')](_0x4ddcaa()(_0x2f9e30['read1stAt']),_0x462b25[_0x2ceba5('0x1990')][_0x2ceba5('0x25a7')]),_0x462b25['inbound'][_0x2ceba5('0x25a3')]+=_0x4ddcaa()(_0x2f9e30[_0x2ceba5('0x1e3d')])[_0x2ceba5('0x2e2')](_0x4ddcaa()(_0x2f9e30['createdAt']),_0x462b25['config'][_0x2ceba5('0x25a7')]),_0x462b25['inbound'][_0x2ceba5('0x18e1')]+=0x1,!_0x4fde9f&&_0x462b25[_0x2ceba5('0x1a7a')][_0x2ceba5('0xe75')]&&(_0x462b25[_0x2ceba5('0x1a7a')][_0x2ceba5('0xe75')]-=0x1)),_0x2f9e30[_0x2ceba5('0x1835')]&&!_0x2f9e30['UserId']&&(_0x462b25['inbound'][_0x2ceba5('0x5b4')]+=0x1,!_0x4fde9f&&_0x462b25[_0x2ceba5('0x1a7a')][_0x2ceba5('0x183a')]&&(_0x462b25[_0x2ceba5('0x1a7a')][_0x2ceba5('0x183a')]-=0x1)),_0x4fde9f&&(_0x462b25[_0x2ceba5('0x1a7a')][_0x2ceba5('0x1e14')]+=0x1);}function _0x5db572(){var _0x38753e=_0x478e2e;_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0x9b9')]=Math[_0x38753e('0x2536')]((_0x462b25['inbound'][_0x38753e('0x3ac')]+_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0x5b4')])/(_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0x1e14')]-_0x462b25[_0x38753e('0x1a7a')]['talking']-_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0x183a')])*0x64,-0x2),_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0x2209')]=Math['round'](_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0x18e1')]/(_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0x1e14')]-_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0xe75')]-_0x462b25[_0x38753e('0x1a7a')][_0x38753e('0x183a')])*0x64,-0x2),_0x462b25['inbound'][_0x38753e('0x24be')]=_0x4ddcaa()[_0x38753e('0xf6a')](Math[_0x38753e('0x2536')](_0x462b25['inbound'][_0x38753e('0x25a3')]/_0x462b25[_0x38753e('0x1a7a')]['answered']),_0x462b25[_0x38753e('0x1990')][_0x38753e('0x25a7')])[_0x38753e('0x5e5')](_0x462b25[_0x38753e('0x1990')][_0x38753e('0x5e5')],_0x462b25[_0x38753e('0x1990')]),_0x462b25[_0x38753e('0x1a7a')]['avgTalkTime']=_0x4ddcaa()[_0x38753e('0xf6a')](Math['round'](_0x462b25['inbound'][_0x38753e('0x1e88')]/_0x462b25[_0x38753e('0x1a7a')]['answered']),_0x462b25[_0x38753e('0x1990')][_0x38753e('0x25a7')])[_0x38753e('0x5e5')](_0x462b25[_0x38753e('0x1990')]['format'],_0x462b25[_0x38753e('0x1990')]);}function _0x2471e4(){var _0x51e1f0=_0x478e2e;if(Object[_0x51e1f0('0x1234')](_0x462b25[_0x51e1f0('0x1a77')])[_0x51e1f0('0x25ae')]>0x0)for(var _0x32afad=0x0;_0x32afad<_0x5e9912['rows'][_0x51e1f0('0x25ae')];_0x32afad+=0x1){if(_0x9ddf4a(_0x5e9912['rows'][_0x32afad])){var _0x5aaaef=_0x5e9912[_0x51e1f0('0x16a7')][_0x32afad];_0xbf4af8(_0x5aaaef,!![]),_0x5db572();}}}function _0x9ddf4a(_0x1827f9){var _0x2cac42=_0x478e2e;if(_0x32d445()[_0x2cac42('0x201a')](_0x462b25[_0x2cac42('0x1a77')],{'id':_0x32d445()[_0x2cac42('0xcd3')](_0x1827f9['FaxAccountId'])}))return!![];return![];}function _0x81a5c7(_0x263105){var _0x1be79a=_0x478e2e,_0x1d2721=_0x4ddcaa()()[_0x1be79a('0x1e9e')](0x0,!![])[_0x1be79a('0x21b1')]('day'),_0x3391d5=_0x4ddcaa()()[_0x1be79a('0x1e9e')](0x0,!![])['endOf'](_0x1be79a('0x2103'));return _0x4ddcaa()(_0x263105)['utcOffset'](0x0,!![])[_0x1be79a('0x2851')](_0x1d2721,_0x3391d5);}function _0x4d14cb(_0x22609c){var _0x1243b6=_0x478e2e;_0x9ddf4a(_0x22609c)&&_0x81a5c7(_0x22609c[_0x1243b6('0x15c9')])&&(_0xbf4af8(_0x22609c,!![]),_0x5db572());}function _0x45db98(_0x56be2f){_0x9ddf4a(_0x56be2f)&&_0x81a5c7(_0x56be2f['createdAt'])&&(_0xbf4af8(_0x56be2f,![]),_0x5db572());}_0x3f5f8e[_0x478e2e('0xb2b')]('$destroy',function(){var _0x59631a=_0x478e2e;_0x2b4b86[_0x59631a('0x2121')](_0x59631a('0x1f6')),_0x2b4b86[_0x59631a('0x2121')]('faxInteraction:update');});}const _0x163229=_0x58f2d5;_0x2e5c80[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'socket',_0xb635d2('0x2265'),_0xb635d2('0x248b')];function _0x2e5c80(_0x2b864e,_0x285119,_0x2d598e,_0x104cbb){var _0xca7f3b=_0xb635d2,_0x5484e1=this,_0x137a07=[];_0x5484e1[_0xca7f3b('0x1990')]={'format':_0xca7f3b('0x262'),'unit':'seconds','trim':![]},_0x5484e1[_0xca7f3b('0x1a7a')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0xca7f3b('0x606'),'avgTalkTime':_0xca7f3b('0x606'),'answerRate':0x0,'abandonRate':0x0},_0x5484e1[_0xca7f3b('0x248b')]=_0x104cbb?_0x32d445()[_0xca7f3b('0x226f')](_0x104cbb[_0xca7f3b('0x16a7')]?_0x104cbb[_0xca7f3b('0x16a7')]:[],'id'):{},_0x5484e1[_0xca7f3b('0xb92')]=_0x374cb3,_0x5484e1['onUpdateMailInteraction']=_0x281156,_0x285119['on'](_0xca7f3b('0x1761'),_0x5484e1['onSaveMailInteraction']),_0x285119['on'](_0xca7f3b('0x231c'),_0x5484e1[_0xca7f3b('0x1870')]),_0x3df215();function _0x75ffb5(_0x2e2552,_0x376ffa){var _0x23f5b7=_0xca7f3b;!_0x2e2552['closed']&&!_0x2e2552[_0x23f5b7('0x43d')]&&_0x376ffa&&(_0x5484e1[_0x23f5b7('0x1a7a')][_0x23f5b7('0x183a')]+=0x1),!_0x2e2552['closed']&&_0x2e2552[_0x23f5b7('0x43d')]&&!_0x32d445()[_0x23f5b7('0x1c43')](_0x137a07,_0x2e2552['id'])&&(_0x5484e1['inbound']['talking']+=0x1,_0x137a07[_0x23f5b7('0xb76')](_0x2e2552['id']),!_0x376ffa&&_0x5484e1[_0x23f5b7('0x1a7a')]['waiting']&&(_0x5484e1[_0x23f5b7('0x1a7a')][_0x23f5b7('0x183a')]-=0x1)),_0x2e2552[_0x23f5b7('0x1835')]&&_0x2e2552['UserId']&&(_0x5484e1[_0x23f5b7('0x1a7a')][_0x23f5b7('0x1e88')]+=_0x4ddcaa()(_0x2e2552[_0x23f5b7('0xbd0')])[_0x23f5b7('0x2e2')](_0x4ddcaa()(_0x2e2552[_0x23f5b7('0x1e3d')]),_0x5484e1[_0x23f5b7('0x1990')][_0x23f5b7('0x25a7')]),_0x5484e1['inbound'][_0x23f5b7('0x25a3')]+=_0x4ddcaa()(_0x2e2552[_0x23f5b7('0x1e3d')])['diff'](_0x4ddcaa()(_0x2e2552['createdAt']),_0x5484e1[_0x23f5b7('0x1990')][_0x23f5b7('0x25a7')]),_0x5484e1[_0x23f5b7('0x1a7a')]['answered']+=0x1,!_0x376ffa&&_0x5484e1['inbound'][_0x23f5b7('0xe75')]&&(_0x5484e1[_0x23f5b7('0x1a7a')][_0x23f5b7('0xe75')]-=0x1)),_0x2e2552[_0x23f5b7('0x1835')]&&!_0x2e2552[_0x23f5b7('0x43d')]&&(_0x5484e1[_0x23f5b7('0x1a7a')][_0x23f5b7('0x5b4')]+=0x1,!_0x376ffa&&_0x5484e1[_0x23f5b7('0x1a7a')][_0x23f5b7('0x183a')]&&(_0x5484e1[_0x23f5b7('0x1a7a')][_0x23f5b7('0x183a')]-=0x1)),_0x376ffa&&(_0x5484e1[_0x23f5b7('0x1a7a')]['total']+=0x1);}function _0x37eeb0(){var _0x3c4cc0=_0xca7f3b;_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x9b9')]=Math['round']((_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x3ac')]+_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x5b4')])/(_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x1e14')]-_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0xe75')]-_0x5484e1['inbound'][_0x3c4cc0('0x183a')])*0x64,-0x2),_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x2209')]=Math[_0x3c4cc0('0x2536')](_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x18e1')]/(_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x1e14')]-_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0xe75')]-_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x183a')])*0x64,-0x2),_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x24be')]=_0x4ddcaa()[_0x3c4cc0('0xf6a')](Math[_0x3c4cc0('0x2536')](_0x5484e1['inbound']['sumHoldTime']/_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x18e1')]),_0x5484e1[_0x3c4cc0('0x1990')][_0x3c4cc0('0x25a7')])[_0x3c4cc0('0x5e5')](_0x5484e1[_0x3c4cc0('0x1990')]['format'],_0x5484e1[_0x3c4cc0('0x1990')]),_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x1b7a')]=_0x4ddcaa()['duration'](Math[_0x3c4cc0('0x2536')](_0x5484e1['inbound'][_0x3c4cc0('0x1e88')]/_0x5484e1[_0x3c4cc0('0x1a7a')][_0x3c4cc0('0x18e1')]),_0x5484e1[_0x3c4cc0('0x1990')]['unit'])[_0x3c4cc0('0x5e5')](_0x5484e1[_0x3c4cc0('0x1990')][_0x3c4cc0('0x5e5')],_0x5484e1[_0x3c4cc0('0x1990')]);}function _0x3df215(){var _0x1c992b=_0xca7f3b;if(Object[_0x1c992b('0x1234')](_0x5484e1[_0x1c992b('0x248b')])[_0x1c992b('0x25ae')]>0x0)for(var _0x3fdf2d=0x0;_0x3fdf2d<_0x2d598e['rows'][_0x1c992b('0x25ae')];_0x3fdf2d+=0x1){if(_0x3c1301(_0x2d598e['rows'][_0x3fdf2d])){var _0x82e80e=_0x2d598e[_0x1c992b('0x16a7')][_0x3fdf2d];_0x75ffb5(_0x82e80e,!![]),_0x37eeb0();}}}function _0x3c1301(_0x1a6456){var _0x510a8b=_0xca7f3b;if(_0x32d445()[_0x510a8b('0x201a')](_0x5484e1[_0x510a8b('0x248b')],{'id':_0x32d445()['toNumber'](_0x1a6456[_0x510a8b('0xa20')])}))return!![];return![];}function _0xa829f6(_0x338577){var _0x56ccb1=_0xca7f3b,_0xdab165=_0x4ddcaa()()[_0x56ccb1('0x1e9e')](0x0,!![])[_0x56ccb1('0x21b1')](_0x56ccb1('0x2103')),_0x4dcf48=_0x4ddcaa()()['utcOffset'](0x0,!![])[_0x56ccb1('0x270')]('day');return _0x4ddcaa()(_0x338577)[_0x56ccb1('0x1e9e')](0x0,!![])[_0x56ccb1('0x2851')](_0xdab165,_0x4dcf48);}function _0x374cb3(_0x1f09ad){var _0x1bc073=_0xca7f3b;_0x3c1301(_0x1f09ad)&&_0xa829f6(_0x1f09ad[_0x1bc073('0x15c9')])&&(_0x75ffb5(_0x1f09ad,!![]),_0x37eeb0());}function _0x281156(_0xb79b8a){_0x3c1301(_0xb79b8a)&&_0xa829f6(_0xb79b8a['createdAt'])&&(_0x75ffb5(_0xb79b8a,![]),_0x37eeb0());}_0x2b864e['$on']('$destroy',function(){var _0x45ad11=_0xca7f3b;_0x285119[_0x45ad11('0x2121')](_0x45ad11('0x1761')),_0x285119[_0x45ad11('0x2121')](_0x45ad11('0x231c'));});}const _0x1fba02=_0x2e5c80;_0x32e748[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x46d'),_0xb635d2('0x1e27'),_0xb635d2('0x86e')];function _0x32e748(_0x43d55f,_0x100bb8,_0x5a125c,_0x36c88b){var _0x51228d=_0xb635d2,_0x486d78=this,_0x26296a=[];_0x486d78[_0x51228d('0x1990')]={'format':_0x51228d('0x262'),'unit':_0x51228d('0x8ec'),'trim':![]},_0x486d78[_0x51228d('0x1a7a')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x51228d('0x606'),'avgTalkTime':_0x51228d('0x606'),'answerRate':0x0,'abandonRate':0x0},_0x486d78['openchannelAccounts']=_0x36c88b?_0x32d445()[_0x51228d('0x226f')](_0x36c88b[_0x51228d('0x16a7')]?_0x36c88b['rows']:[],'id'):{},_0x486d78['onSaveOpenchannelInteraction']=_0x4839de,_0x486d78[_0x51228d('0x4f1')]=_0x771712,_0x100bb8['on'](_0x51228d('0x603'),_0x486d78[_0x51228d('0x12a9')]),_0x100bb8['on'](_0x51228d('0x16e1'),_0x486d78['onUpdateOpenchannelInteraction']),_0xcf1cfc();function _0x234a26(_0x1def2a,_0x4f0c5a){var _0x3960a9=_0x51228d;!_0x1def2a[_0x3960a9('0x1835')]&&!_0x1def2a[_0x3960a9('0x43d')]&&_0x4f0c5a&&(_0x486d78[_0x3960a9('0x1a7a')][_0x3960a9('0x183a')]+=0x1),!_0x1def2a[_0x3960a9('0x1835')]&&_0x1def2a[_0x3960a9('0x43d')]&&!_0x32d445()['includes'](_0x26296a,_0x1def2a['id'])&&(_0x486d78[_0x3960a9('0x1a7a')][_0x3960a9('0xe75')]+=0x1,_0x26296a[_0x3960a9('0xb76')](_0x1def2a['id']),!_0x4f0c5a&&_0x486d78[_0x3960a9('0x1a7a')][_0x3960a9('0x183a')]&&(_0x486d78[_0x3960a9('0x1a7a')][_0x3960a9('0x183a')]-=0x1)),_0x1def2a['closed']&&_0x1def2a[_0x3960a9('0x43d')]&&(_0x486d78[_0x3960a9('0x1a7a')][_0x3960a9('0x1e88')]+=_0x4ddcaa()(_0x1def2a[_0x3960a9('0xbd0')])[_0x3960a9('0x2e2')](_0x4ddcaa()(_0x1def2a['read1stAt']),_0x486d78['config'][_0x3960a9('0x25a7')]),_0x486d78['inbound']['sumHoldTime']+=_0x4ddcaa()(_0x1def2a[_0x3960a9('0x1e3d')])[_0x3960a9('0x2e2')](_0x4ddcaa()(_0x1def2a[_0x3960a9('0x15c9')]),_0x486d78[_0x3960a9('0x1990')][_0x3960a9('0x25a7')]),_0x486d78['inbound']['answered']+=0x1,!_0x4f0c5a&&_0x486d78[_0x3960a9('0x1a7a')][_0x3960a9('0xe75')]&&(_0x486d78[_0x3960a9('0x1a7a')]['talking']-=0x1)),_0x1def2a['closed']&&!_0x1def2a['UserId']&&(_0x486d78['inbound']['unmanaged']+=0x1,!_0x4f0c5a&&_0x486d78[_0x3960a9('0x1a7a')][_0x3960a9('0x183a')]&&(_0x486d78[_0x3960a9('0x1a7a')][_0x3960a9('0x183a')]-=0x1)),_0x4f0c5a&&(_0x486d78['inbound'][_0x3960a9('0x1e14')]+=0x1);}function _0x558774(){var _0x3644d8=_0x51228d;_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x9b9')]=Math[_0x3644d8('0x2536')]((_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x3ac')]+_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x5b4')])/(_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x1e14')]-_0x486d78[_0x3644d8('0x1a7a')]['talking']-_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x183a')])*0x64,-0x2),_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x2209')]=Math['round'](_0x486d78['inbound'][_0x3644d8('0x18e1')]/(_0x486d78['inbound'][_0x3644d8('0x1e14')]-_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0xe75')]-_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x183a')])*0x64,-0x2),_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x24be')]=_0x4ddcaa()[_0x3644d8('0xf6a')](Math[_0x3644d8('0x2536')](_0x486d78['inbound'][_0x3644d8('0x25a3')]/_0x486d78['inbound'][_0x3644d8('0x18e1')]),_0x486d78[_0x3644d8('0x1990')]['unit'])[_0x3644d8('0x5e5')](_0x486d78[_0x3644d8('0x1990')]['format'],_0x486d78[_0x3644d8('0x1990')]),_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x1b7a')]=_0x4ddcaa()[_0x3644d8('0xf6a')](Math[_0x3644d8('0x2536')](_0x486d78[_0x3644d8('0x1a7a')][_0x3644d8('0x1e88')]/_0x486d78['inbound'][_0x3644d8('0x18e1')]),_0x486d78[_0x3644d8('0x1990')]['unit'])['format'](_0x486d78[_0x3644d8('0x1990')]['format'],_0x486d78[_0x3644d8('0x1990')]);}function _0xcf1cfc(){var _0x513ae6=_0x51228d;if(Object[_0x513ae6('0x1234')](_0x486d78['openchannelAccounts'])[_0x513ae6('0x25ae')]>0x0)for(var _0x19bd1d=0x0;_0x19bd1d<_0x5a125c[_0x513ae6('0x16a7')][_0x513ae6('0x25ae')];_0x19bd1d+=0x1){if(_0x1576a6(_0x5a125c[_0x513ae6('0x16a7')][_0x19bd1d])){var _0x2354a0=_0x5a125c[_0x513ae6('0x16a7')][_0x19bd1d];_0x234a26(_0x2354a0,!![]),_0x558774();}}}function _0x1576a6(_0x1da73e){var _0x253acc=_0x51228d;if(_0x32d445()[_0x253acc('0x201a')](_0x486d78['openchannelAccounts'],{'id':_0x32d445()[_0x253acc('0xcd3')](_0x1da73e[_0x253acc('0xf26')])}))return!![];return![];}function _0x52142c(_0x396f75){var _0x1a9615=_0x51228d,_0x4e896d=_0x4ddcaa()()['utcOffset'](0x0,!![])[_0x1a9615('0x21b1')]('day'),_0x2ad7ae=_0x4ddcaa()()[_0x1a9615('0x1e9e')](0x0,!![])[_0x1a9615('0x270')](_0x1a9615('0x2103'));return _0x4ddcaa()(_0x396f75)[_0x1a9615('0x1e9e')](0x0,!![])[_0x1a9615('0x2851')](_0x4e896d,_0x2ad7ae);}function _0x4839de(_0x19cf6e){var _0x3f42aa=_0x51228d;_0x1576a6(_0x19cf6e)&&_0x52142c(_0x19cf6e[_0x3f42aa('0x15c9')])&&(_0x234a26(_0x19cf6e,!![]),_0x558774());}function _0x771712(_0x22d15b){_0x1576a6(_0x22d15b)&&_0x52142c(_0x22d15b['createdAt'])&&(_0x234a26(_0x22d15b,![]),_0x558774());}_0x43d55f['$on']('$destroy',function(){var _0x28357f=_0x51228d;_0x100bb8[_0x28357f('0x2121')](_0x28357f('0x603')),_0x100bb8['removeAllListeners']('openchannelInteraction:update');});}const _0x702af8=_0x32e748;_0x56256a[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'socket',_0xb635d2('0x2708'),_0xb635d2('0x25db')];function _0x56256a(_0x82e452,_0x201427,_0x2e953e,_0x18a207){var _0x4c08d5=_0xb635d2,_0x141633=this,_0x32f084=[];_0x141633[_0x4c08d5('0x1990')]={'format':'hh:mm:ss','unit':_0x4c08d5('0x8ec'),'trim':![]},_0x141633[_0x4c08d5('0x1a7a')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x4c08d5('0x606'),'answerRate':0x0,'abandonRate':0x0},_0x141633[_0x4c08d5('0x25db')]=_0x18a207?_0x32d445()[_0x4c08d5('0x226f')](_0x18a207['rows']?_0x18a207['rows']:[],'id'):{},_0x141633['onSaveSmsInteraction']=_0x947038,_0x141633['onUpdateSmsInteraction']=_0x5b8a6e,_0x201427['on'](_0x4c08d5('0x2a1'),_0x141633[_0x4c08d5('0xec4')]),_0x201427['on'](_0x4c08d5('0x1025'),_0x141633[_0x4c08d5('0x85c')]),_0x50b359();function _0x58902f(_0x8018e8,_0x592574){var _0x251d8b=_0x4c08d5;!_0x8018e8[_0x251d8b('0x1835')]&&!_0x8018e8[_0x251d8b('0x43d')]&&_0x592574&&(_0x141633[_0x251d8b('0x1a7a')][_0x251d8b('0x183a')]+=0x1),!_0x8018e8[_0x251d8b('0x1835')]&&_0x8018e8[_0x251d8b('0x43d')]&&!_0x32d445()[_0x251d8b('0x1c43')](_0x32f084,_0x8018e8['id'])&&(_0x141633['inbound']['talking']+=0x1,_0x32f084[_0x251d8b('0xb76')](_0x8018e8['id']),!_0x592574&&_0x141633[_0x251d8b('0x1a7a')][_0x251d8b('0x183a')]&&(_0x141633[_0x251d8b('0x1a7a')]['waiting']-=0x1)),_0x8018e8[_0x251d8b('0x1835')]&&_0x8018e8[_0x251d8b('0x43d')]&&(_0x141633[_0x251d8b('0x1a7a')]['sumBillable']+=_0x4ddcaa()(_0x8018e8[_0x251d8b('0xbd0')])[_0x251d8b('0x2e2')](_0x4ddcaa()(_0x8018e8['read1stAt']),_0x141633[_0x251d8b('0x1990')]['unit']),_0x141633[_0x251d8b('0x1a7a')][_0x251d8b('0x25a3')]+=_0x4ddcaa()(_0x8018e8['read1stAt'])[_0x251d8b('0x2e2')](_0x4ddcaa()(_0x8018e8[_0x251d8b('0x15c9')]),_0x141633['config']['unit']),_0x141633[_0x251d8b('0x1a7a')][_0x251d8b('0x18e1')]+=0x1,!_0x592574&&_0x141633[_0x251d8b('0x1a7a')][_0x251d8b('0xe75')]&&(_0x141633[_0x251d8b('0x1a7a')]['talking']-=0x1)),_0x8018e8[_0x251d8b('0x1835')]&&!_0x8018e8[_0x251d8b('0x43d')]&&(_0x141633['inbound'][_0x251d8b('0x5b4')]+=0x1,!_0x592574&&_0x141633[_0x251d8b('0x1a7a')][_0x251d8b('0x183a')]&&(_0x141633['inbound']['waiting']-=0x1)),_0x592574&&(_0x141633['inbound'][_0x251d8b('0x1e14')]+=0x1);}function _0x33a913(){var _0x3b9582=_0x4c08d5;_0x141633['inbound'][_0x3b9582('0x9b9')]=Math[_0x3b9582('0x2536')]((_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x3ac')]+_0x141633['inbound'][_0x3b9582('0x5b4')])/(_0x141633['inbound'][_0x3b9582('0x1e14')]-_0x141633[_0x3b9582('0x1a7a')]['talking']-_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x183a')])*0x64,-0x2),_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x2209')]=Math['round'](_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x18e1')]/(_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x1e14')]-_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0xe75')]-_0x141633['inbound'][_0x3b9582('0x183a')])*0x64,-0x2),_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x24be')]=_0x4ddcaa()['duration'](Math['round'](_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x25a3')]/_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x18e1')]),_0x141633[_0x3b9582('0x1990')]['unit'])[_0x3b9582('0x5e5')](_0x141633[_0x3b9582('0x1990')][_0x3b9582('0x5e5')],_0x141633[_0x3b9582('0x1990')]),_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x1b7a')]=_0x4ddcaa()[_0x3b9582('0xf6a')](Math[_0x3b9582('0x2536')](_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x1e88')]/_0x141633[_0x3b9582('0x1a7a')][_0x3b9582('0x18e1')]),_0x141633['config'][_0x3b9582('0x25a7')])[_0x3b9582('0x5e5')](_0x141633['config'][_0x3b9582('0x5e5')],_0x141633[_0x3b9582('0x1990')]);}function _0x50b359(){var _0x5ee0cb=_0x4c08d5;if(Object[_0x5ee0cb('0x1234')](_0x141633[_0x5ee0cb('0x25db')])['length']>0x0)for(var _0x248d19=0x0;_0x248d19<_0x2e953e['rows'][_0x5ee0cb('0x25ae')];_0x248d19+=0x1){if(_0x4c5491(_0x2e953e[_0x5ee0cb('0x16a7')][_0x248d19])){var _0x27294c=_0x2e953e[_0x5ee0cb('0x16a7')][_0x248d19];_0x58902f(_0x27294c,!![]),_0x33a913();}}}function _0x4c5491(_0x24b71f){var _0x2b9ca4=_0x4c08d5;if(_0x32d445()[_0x2b9ca4('0x201a')](_0x141633[_0x2b9ca4('0x25db')],{'id':_0x32d445()[_0x2b9ca4('0xcd3')](_0x24b71f[_0x2b9ca4('0x26a9')])}))return!![];return![];}function _0x5be929(_0x18d08e){var _0x176e1f=_0x4c08d5,_0x199636=_0x4ddcaa()()['utcOffset'](0x0,!![])['startOf'](_0x176e1f('0x2103')),_0x5b0f61=_0x4ddcaa()()[_0x176e1f('0x1e9e')](0x0,!![])[_0x176e1f('0x270')](_0x176e1f('0x2103'));return _0x4ddcaa()(_0x18d08e)['utcOffset'](0x0,!![])['isBetween'](_0x199636,_0x5b0f61);}function _0x947038(_0x3d2220){var _0x4c95b6=_0x4c08d5;_0x4c5491(_0x3d2220)&&_0x5be929(_0x3d2220[_0x4c95b6('0x15c9')])&&(_0x58902f(_0x3d2220,!![]),_0x33a913());}function _0x5b8a6e(_0x32bea5){var _0x1d59b1=_0x4c08d5;_0x4c5491(_0x32bea5)&&_0x5be929(_0x32bea5[_0x1d59b1('0x15c9')])&&(_0x58902f(_0x32bea5,![]),_0x33a913());}_0x82e452[_0x4c08d5('0xb2b')](_0x4c08d5('0x5cd'),function(){var _0xa1e531=_0x4c08d5;_0x201427['removeAllListeners'](_0xa1e531('0x2a1')),_0x201427[_0xa1e531('0x2121')](_0xa1e531('0x1025'));});}const _0x5ed031=_0x56256a;_0x26b20d[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2730'),_0xb635d2('0x5c1')],_0x2ec556['$inject']=['$q'],_0x27ee9b['$inject']=['$q'];function _0x27ee9b(_0x531790){var _0x3ed351=[],_0x4c4851=function _0x2d2f08(){var _0x3bf3a8=a0_0x5325,_0x43b463=_0x3ed351[0x0],_0x91220a={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x3bf3a8('0x606'),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x32d445()[_0x3bf3a8('0xd1e')](_0x43b463[_0x3bf3a8('0x671')],function(_0x46c023,_0x2366df){var _0xc7639f=_0x3bf3a8;_0x43b463[_0xc7639f('0x146c')][_0x2366df]&&(_0x91220a['waiting']+=_0x43b463[_0xc7639f('0x146c')][_0x2366df]['waiting']||0x0,_0x91220a[_0xc7639f('0xe75')]+=(_0x43b463[_0xc7639f('0x146c')][_0x2366df]['talking']||0x0)+(_0x43b463['rpcQueues'][_0x2366df][_0xc7639f('0x1700')]||0x0),_0x91220a['answered']+=_0x43b463[_0xc7639f('0x146c')][_0x2366df][_0xc7639f('0x18e1')]||0x0,_0x91220a[_0xc7639f('0x3ac')]+=_0x43b463['rpcQueues'][_0x2366df][_0xc7639f('0x3ac')]||0x0,_0x91220a[_0xc7639f('0x25a3')]+=_0x43b463[_0xc7639f('0x146c')][_0x2366df][_0xc7639f('0x25a3')]||0x0,_0x91220a[_0xc7639f('0x1e88')]+=_0x43b463['rpcQueues'][_0x2366df]['sumBillable']||0x0,_0x91220a['total']+=_0x43b463[_0xc7639f('0x146c')][_0x2366df][_0xc7639f('0x1e14')]||0x0,_0x91220a[_0xc7639f('0x194a')]+=_0x43b463[_0xc7639f('0x146c')][_0x2366df][_0xc7639f('0x194a')]||0x0,_0x91220a['outboundDropCallsDayCallersExit']+=_0x43b463[_0xc7639f('0x146c')][_0x2366df][_0xc7639f('0x1e16')]||0x0,_0x91220a['outboundDropCallsDayTimeout']+=_0x43b463[_0xc7639f('0x146c')][_0x2366df][_0xc7639f('0x27cc')]||0x0);});var _0x17cb68=_0x91220a[_0x3bf3a8('0x1e14')]-_0x91220a[_0x3bf3a8('0x18e1')]-_0x91220a[_0x3bf3a8('0x3ac')];_0x91220a[_0x3bf3a8('0x5b4')]=_0x17cb68>0x0?_0x17cb68:0x0,_0x91220a['avgHoldTime']=Math[_0x3bf3a8('0x2536')](_0x91220a[_0x3bf3a8('0x1e14')]>0x0?_0x91220a['sumHoldTime']/_0x91220a[_0x3bf3a8('0x1e14')]:0x0),_0x91220a[_0x3bf3a8('0x24be')]=new Date(_0x91220a['avgHoldTime']*0x3e8)[_0x3bf3a8('0xa2d')]()['substr'](0xb,0x8),_0x91220a[_0x3bf3a8('0x1b7a')]=Math[_0x3bf3a8('0x2536')](_0x91220a[_0x3bf3a8('0x18e1')]>0x0?_0x91220a[_0x3bf3a8('0x1e88')]/_0x91220a[_0x3bf3a8('0x18e1')]:0x0),_0x91220a['avgTalkTime']=new Date(_0x91220a[_0x3bf3a8('0x1b7a')]*0x3e8)[_0x3bf3a8('0xa2d')]()['substr'](0xb,0x8),_0x91220a[_0x3bf3a8('0x2209')]=Math[_0x3bf3a8('0x2536')]((_0x91220a[_0x3bf3a8('0x1e14')]>0x0?_0x91220a[_0x3bf3a8('0x18e1')]/_0x91220a[_0x3bf3a8('0x1e14')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x3bf3a8('0x14bf')](0xa,0x1),_0x91220a[_0x3bf3a8('0x9b9')]=Math['round']((_0x91220a[_0x3bf3a8('0x1e14')]>0x0?_0x91220a['abandoned']/_0x91220a[_0x3bf3a8('0x1e14')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x3bf3a8('0x14bf')](0xa,0x1),_0x91220a[_0x3bf3a8('0x2468')]=Math[_0x3bf3a8('0x2536')]((_0x91220a['total']>0x0?_0x91220a['outboundDropCallsDayTimeout']/_0x91220a['total']*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x3bf3a8('0x14bf')](0xa,0x1),_0x91220a[_0x3bf3a8('0x1a9b')]=Math['round']((_0x91220a['total']>0x0?_0x91220a[_0x3bf3a8('0x1e16')]/_0x91220a[_0x3bf3a8('0x1e14')]*0x64:0x0)*Math[_0x3bf3a8('0x14bf')](0xa,0x1))/Math[_0x3bf3a8('0x14bf')](0xa,0x1),_0x91220a['outboundanswerRate']=0x64-_0x91220a[_0x3bf3a8('0x2468')]-_0x91220a[_0x3bf3a8('0x1a9b')]>0x0&&(_0x91220a['total']||0x0>0x0)?0x64-_0x91220a[_0x3bf3a8('0x2468')]-_0x91220a[_0x3bf3a8('0x1a9b')]:0x0,_0x3ed351[_0x3bf3a8('0x799')](),_0x43b463[_0x3bf3a8('0x178')][_0x3bf3a8('0xcd6')](_0x91220a),_0x3ed351[_0x3bf3a8('0x25ae')]>0x0&&_0x2d2f08();};return function(_0x11b736){var _0x11b7e3=a0_0x5325,_0x11e9dc=_0x531790[_0x11b7e3('0x178')]();return _0x3ed351['push']({'queues':_0x11b736[_0x11b7e3('0x671')],'rpcQueues':_0x11b736[_0x11b7e3('0x146c')],'defer':_0x11e9dc}),_0x3ed351[_0x11b7e3('0x25ae')]===0x1&&_0x4c4851(),_0x11e9dc[_0x11b7e3('0x9c8')];};}function _0x2ec556(_0x4e9b80){var _0x4b57b8=[],_0x3cd781=function _0x5cdff1(){var _0x38b5f0=a0_0x5325,_0x30eba1=_0x4b57b8[0x0],_0x88ce41={'originated':0x0,'limitCalls':0x0};_0x32d445()['forIn'](_0x30eba1['rpcCampaigns'],function(_0x2604b9,_0x3e9c90){var _0x3d23cb=a0_0x5325;_0x30eba1['rpcCampaigns'][_0x3e9c90]&&(_0x88ce41[_0x3d23cb('0x194a')]+=_0x30eba1[_0x3d23cb('0x13e2')][_0x3e9c90]['originated']||0x0,_0x88ce41[_0x3d23cb('0x48d')]+=_0x30eba1[_0x3d23cb('0x13e2')][_0x3e9c90][_0x3d23cb('0x48d')]||0x0);}),_0x4b57b8[_0x38b5f0('0x799')](),_0x30eba1[_0x38b5f0('0x178')][_0x38b5f0('0xcd6')](_0x88ce41),_0x4b57b8[_0x38b5f0('0x25ae')]>0x0&&_0x5cdff1();};return function(_0x4d1e90){var _0x5bcc69=a0_0x5325,_0x1853c3=_0x4e9b80[_0x5bcc69('0x178')]();return _0x4b57b8['push']({'rpcCampaigns':_0x4d1e90[_0x5bcc69('0x13e2')],'defer':_0x1853c3}),_0x4b57b8[_0x5bcc69('0x25ae')]===0x1&&_0x3cd781(),_0x1853c3['promise'];};}function _0x24d910(){return function(_0x1b906c){var _0x1e5dbb=a0_0x5325;return new Date(_0x1b906c*0x3e8)[_0x1e5dbb('0xa2d')]()[_0x1e5dbb('0x233')](0xb,0x8);};}function _0x26b20d(_0x111841,_0x5a068e,_0x618564){var _0x4a6c5d=_0xb635d2,_0x5eaf65=this;_0x5eaf65[_0x4a6c5d('0x5c1')]=_0x618564,_0x5eaf65['onInit']=_0x24091f;function _0x24091f(){var _0x5cefd6=_0x4a6c5d;_0x5eaf65['hasDashboardPermissions']=_0x5a068e[_0x5cefd6('0x179e')]('user')?_0x5a068e[_0x5cefd6('0xe87')](0x65):!![];if(_0x5eaf65[_0x5cefd6('0x21a3')]){var _0x3f4660=_0x111841[_0x5cefd6('0x1a60')]['name'];switch(_0x3f4660){case'app.dashboards.general':_0x2005da();break;case _0x5cefd6('0xfac'):_0x5eaf65[_0x5cefd6('0xc7b')]=0x0;break;case _0x5cefd6('0xe1c'):_0x5eaf65[_0x5cefd6('0xc7b')]=0x1;break;case _0x5cefd6('0x2465'):_0x5eaf65['selectedTab']=0x2;break;case'app.dashboards.general.mail':_0x5eaf65['selectedTab']=0x3;break;case _0x5cefd6('0x16b7'):_0x5eaf65[_0x5cefd6('0xc7b')]=0x4;break;case _0x5cefd6('0x1aa2'):_0x5eaf65[_0x5cefd6('0xc7b')]=0x5;break;case _0x5cefd6('0x1beb'):_0x5eaf65['selectedTab']=0x6;break;case _0x5cefd6('0x2228'):_0x5eaf65[_0x5cefd6('0xc7b')]=0x7;break;}}}function _0x2005da(){var _0x22f69e=_0x4a6c5d,_0x119c77=[];_0x5eaf65[_0x22f69e('0x5c1')][_0x22f69e('0xe74')]&&_0x119c77[_0x22f69e('0xb76')](_0x22f69e('0xfac')),_0x5eaf65[_0x22f69e('0x5c1')][_0x22f69e('0x5d')]&&_0x119c77[_0x22f69e('0xb76')](_0x22f69e('0xe1c')),_0x5eaf65[_0x22f69e('0x5c1')][_0x22f69e('0x17cc')]&&_0x119c77[_0x22f69e('0xb76')](_0x22f69e('0x2465')),_0x5eaf65[_0x22f69e('0x5c1')][_0x22f69e('0x26bf')]&&_0x119c77[_0x22f69e('0xb76')](_0x22f69e('0x53')),_0x5eaf65[_0x22f69e('0x5c1')]['messaging']&&_0x119c77[_0x22f69e('0xb76')](_0x22f69e('0x16b7')),_0x5eaf65[_0x22f69e('0x5c1')][_0x22f69e('0xaf2')]&&_0x119c77[_0x22f69e('0xb76')]('app.dashboards.general.openchannel'),_0x5eaf65[_0x22f69e('0x5c1')][_0x22f69e('0x625')]&&_0x119c77['push'](_0x22f69e('0x1beb')),_0x5eaf65[_0x22f69e('0x5c1')][_0x22f69e('0x4b7')]&&_0x119c77[_0x22f69e('0xb76')](_0x22f69e('0x2228'));if(_0x119c77[_0x22f69e('0x25ae')]>0x0)_0x111841['go'](_0x32d445()[_0x22f69e('0x2325')](_0x119c77));}}_0x1d748f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'socket',_0xb635d2('0x1212'),_0xb635d2('0x146c'),_0xb635d2('0x1fdf'),_0xb635d2('0x122a')];function _0x1d748f(_0x23bc1d,_0x5b90f4,_0xf8795f,_0x52ddb9,_0xffa37,_0x45b508){var _0x159a57=_0xb635d2,_0x4b40ec=this;_0x4b40ec['inboundQueues']=_0xf8795f?_0x32d445()[_0x159a57('0x226f')](_0xf8795f['rows']?_0xf8795f[_0x159a57('0x16a7')]:[],'id'):{},_0x4b40ec['rpcQueues']=_0x52ddb9?_0x32d445()[_0x159a57('0x226f')](_0x52ddb9[_0x159a57('0x16a7')]?_0x52ddb9['rows']:[],'id'):{},_0x4b40ec[_0x159a57('0x1a7a')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x159a57('0x606'),'avgTalkTime':_0x159a57('0x606'),'answerRate':0x0,'abandonRate':0x0},_0x4b40ec[_0x159a57('0x1fdf')]=_0xffa37||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x4b40ec[_0x159a57('0x1153')]=_0x4f12d8,_0x4b40ec[_0x159a57('0x955')]=_0x35e3a0,_0x5b90f4['on'](_0x159a57('0x149c'),_0x4b40ec[_0x159a57('0x1153')]),_0x5b90f4['on']('voice_outbound:save',_0x4b40ec[_0x159a57('0x955')]),_0x185d88();function _0x185d88(){var _0x533c06=_0x159a57;_0x45b508({'queues':_0x4b40ec[_0x533c06('0x1212')],'rpcQueues':_0x4b40ec['rpcQueues']})[_0x533c06('0xe19')](function(_0x4d0ca0){var _0x5cf718=_0x533c06;_0x4b40ec[_0x5cf718('0x1a7a')]=_0x4d0ca0;});}function _0x4f12d8(_0x4db38a){var _0x3e08dc=_0x159a57;_0x4b40ec['inboundQueues'][_0x4db38a['id']]&&(_0x4b40ec[_0x3e08dc('0x146c')][_0x4db38a['id']]&&(_0x4b40ec[_0x3e08dc('0x146c')][_0x4db38a['id']]=_0x4db38a,_0x185d88()));}function _0x35e3a0(_0x4418af){var _0x370d31=_0x159a57;_0x4b40ec[_0x370d31('0x1fdf')]=_0x4418af;}_0x23bc1d['$on']('$destroy',function(){var _0x5ed0a6=_0x159a57;_0x5b90f4[_0x5ed0a6('0x2121')](_0x5ed0a6('0x149c')),_0x5b90f4[_0x5ed0a6('0x2121')](_0x5ed0a6('0x112e'));});}const _0x4fb929=_0x1d748f;_0x45333c[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'socket','whatsappInteractions',_0xb635d2('0x14cf')];function _0x45333c(_0x4c9c8f,_0x218fc8,_0xb1ac83,_0x1c8631){var _0x41a401=_0xb635d2,_0x2a2a01=this,_0x1c51f8=[];_0x2a2a01[_0x41a401('0x1990')]={'format':_0x41a401('0x262'),'unit':'seconds','trim':![]},_0x2a2a01[_0x41a401('0x1a7a')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x41a401('0x606'),'avgTalkTime':_0x41a401('0x606'),'answerRate':0x0,'abandonRate':0x0},_0x2a2a01[_0x41a401('0x14cf')]=_0x1c8631?_0x32d445()[_0x41a401('0x226f')](_0x1c8631['rows']?_0x1c8631[_0x41a401('0x16a7')]:[],'id'):{},_0x2a2a01[_0x41a401('0xb24')]=_0xa06f2,_0x2a2a01[_0x41a401('0xb1c')]=_0x94b2aa,_0x218fc8['on'](_0x41a401('0x26e0'),_0x2a2a01[_0x41a401('0xb24')]),_0x218fc8['on'](_0x41a401('0x2284'),_0x2a2a01[_0x41a401('0xb1c')]),_0x232ec3();function _0x2131be(_0x3a3e6a,_0x168a77){var _0x14da73=_0x41a401;!_0x3a3e6a[_0x14da73('0x1835')]&&!_0x3a3e6a[_0x14da73('0x43d')]&&_0x168a77&&(_0x2a2a01[_0x14da73('0x1a7a')][_0x14da73('0x183a')]+=0x1),!_0x3a3e6a[_0x14da73('0x1835')]&&_0x3a3e6a[_0x14da73('0x43d')]&&!_0x32d445()[_0x14da73('0x1c43')](_0x1c51f8,_0x3a3e6a['id'])&&(_0x2a2a01[_0x14da73('0x1a7a')][_0x14da73('0xe75')]+=0x1,_0x1c51f8[_0x14da73('0xb76')](_0x3a3e6a['id']),!_0x168a77&&_0x2a2a01[_0x14da73('0x1a7a')][_0x14da73('0x183a')]&&(_0x2a2a01['inbound'][_0x14da73('0x183a')]-=0x1)),_0x3a3e6a[_0x14da73('0x1835')]&&_0x3a3e6a['UserId']&&(_0x2a2a01[_0x14da73('0x1a7a')]['sumBillable']+=_0x4ddcaa()(_0x3a3e6a[_0x14da73('0xbd0')])[_0x14da73('0x2e2')](_0x4ddcaa()(_0x3a3e6a[_0x14da73('0x1e3d')]),_0x2a2a01['config']['unit']),_0x2a2a01[_0x14da73('0x1a7a')]['sumHoldTime']+=_0x4ddcaa()(_0x3a3e6a[_0x14da73('0x1e3d')])[_0x14da73('0x2e2')](_0x4ddcaa()(_0x3a3e6a['createdAt']),_0x2a2a01['config'][_0x14da73('0x25a7')]),_0x2a2a01[_0x14da73('0x1a7a')][_0x14da73('0x18e1')]+=0x1,!_0x168a77&&_0x2a2a01[_0x14da73('0x1a7a')][_0x14da73('0xe75')]&&(_0x2a2a01[_0x14da73('0x1a7a')]['talking']-=0x1)),_0x3a3e6a['closed']&&!_0x3a3e6a['UserId']&&(_0x2a2a01[_0x14da73('0x1a7a')][_0x14da73('0x5b4')]+=0x1,!_0x168a77&&_0x2a2a01['inbound']['waiting']&&(_0x2a2a01[_0x14da73('0x1a7a')]['waiting']-=0x1)),_0x168a77&&(_0x2a2a01[_0x14da73('0x1a7a')][_0x14da73('0x1e14')]+=0x1);}function _0x5d75d4(){var _0x4b5c4b=_0x41a401;_0x2a2a01[_0x4b5c4b('0x1a7a')][_0x4b5c4b('0x9b9')]=Math[_0x4b5c4b('0x2536')]((_0x2a2a01['inbound']['abandoned']+_0x2a2a01[_0x4b5c4b('0x1a7a')][_0x4b5c4b('0x5b4')])/(_0x2a2a01[_0x4b5c4b('0x1a7a')][_0x4b5c4b('0x1e14')]-_0x2a2a01['inbound'][_0x4b5c4b('0xe75')]-_0x2a2a01['inbound'][_0x4b5c4b('0x183a')])*0x64,-0x2),_0x2a2a01['inbound'][_0x4b5c4b('0x2209')]=Math[_0x4b5c4b('0x2536')](_0x2a2a01[_0x4b5c4b('0x1a7a')]['answered']/(_0x2a2a01[_0x4b5c4b('0x1a7a')]['total']-_0x2a2a01[_0x4b5c4b('0x1a7a')][_0x4b5c4b('0xe75')]-_0x2a2a01[_0x4b5c4b('0x1a7a')][_0x4b5c4b('0x183a')])*0x64,-0x2),_0x2a2a01['inbound'][_0x4b5c4b('0x24be')]=_0x4ddcaa()['duration'](Math[_0x4b5c4b('0x2536')](_0x2a2a01[_0x4b5c4b('0x1a7a')][_0x4b5c4b('0x25a3')]/_0x2a2a01[_0x4b5c4b('0x1a7a')][_0x4b5c4b('0x18e1')]),_0x2a2a01[_0x4b5c4b('0x1990')][_0x4b5c4b('0x25a7')])[_0x4b5c4b('0x5e5')](_0x2a2a01['config']['format'],_0x2a2a01[_0x4b5c4b('0x1990')]),_0x2a2a01[_0x4b5c4b('0x1a7a')][_0x4b5c4b('0x1b7a')]=_0x4ddcaa()[_0x4b5c4b('0xf6a')](Math[_0x4b5c4b('0x2536')](_0x2a2a01['inbound'][_0x4b5c4b('0x1e88')]/_0x2a2a01[_0x4b5c4b('0x1a7a')]['answered']),_0x2a2a01[_0x4b5c4b('0x1990')]['unit'])[_0x4b5c4b('0x5e5')](_0x2a2a01[_0x4b5c4b('0x1990')][_0x4b5c4b('0x5e5')],_0x2a2a01['config']);}function _0x232ec3(){var _0x5e500a=_0x41a401;if(Object[_0x5e500a('0x1234')](_0x2a2a01[_0x5e500a('0x14cf')])[_0x5e500a('0x25ae')]>0x0)for(var _0x1920cb=0x0;_0x1920cb<_0xb1ac83[_0x5e500a('0x16a7')][_0x5e500a('0x25ae')];_0x1920cb+=0x1){if(_0xda0921(_0xb1ac83[_0x5e500a('0x16a7')][_0x1920cb])){var _0x19ac1b=_0xb1ac83['rows'][_0x1920cb];_0x2131be(_0x19ac1b,!![]),_0x5d75d4();}}}function _0xda0921(_0x11ef2e){var _0x2c4d4c=_0x41a401;if(_0x32d445()[_0x2c4d4c('0x201a')](_0x2a2a01['whatsappAccounts'],{'id':_0x32d445()[_0x2c4d4c('0xcd3')](_0x11ef2e['WhatsappAccountId'])}))return!![];return![];}function _0x5f8ff3(_0x1e2676){var _0x564d21=_0x41a401,_0x1062ad=_0x4ddcaa()()[_0x564d21('0x1e9e')](0x0,!![])[_0x564d21('0x21b1')](_0x564d21('0x2103')),_0x1da186=_0x4ddcaa()()[_0x564d21('0x1e9e')](0x0,!![])[_0x564d21('0x270')]('day');return _0x4ddcaa()(_0x1e2676)[_0x564d21('0x1e9e')](0x0,!![])[_0x564d21('0x2851')](_0x1062ad,_0x1da186);}function _0xa06f2(_0x287d23){_0xda0921(_0x287d23)&&_0x5f8ff3(_0x287d23['createdAt'])&&(_0x2131be(_0x287d23,!![]),_0x5d75d4());}function _0x94b2aa(_0x57d44c){var _0x52400c=_0x41a401;_0xda0921(_0x57d44c)&&_0x5f8ff3(_0x57d44c[_0x52400c('0x15c9')])&&(_0x2131be(_0x57d44c,![]),_0x5d75d4());}_0x4c9c8f[_0x41a401('0xb2b')]('$destroy',function(){var _0x130c67=_0x41a401;_0x218fc8[_0x130c67('0x2121')](_0x130c67('0x26e0')),_0x218fc8[_0x130c67('0x2121')](_0x130c67('0x2284'));});}const _0x453740=_0x45333c;_0x5e731a[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x5e731a(_0x470e77){var _0x436a86=_0xb635d2;_0x470e77[_0x436a86('0x1d72')]('app.dashboards.general.voice',{'url':'/voice','data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x519f7d,'controller':'UserVoiceDashboardGeneralController\x20as\x20vm'}},'resolve':{'rpcQueues':[_0x436a86('0x292'),function _0x2b43d3(_0x20dfd3){var _0x1b1e25=_0x436a86;return _0x20dfd3[_0x1b1e25('0xcd6')](_0x1b1e25('0x1946'));}],'inboundQueues':[_0x436a86('0x292'),_0x436a86('0x2730'),function _0x485262(_0x4cb53d,_0x344566){var _0x365fab=_0x436a86;return _0x344566[_0x365fab('0x179e')](_0x365fab('0xd14'))?_0x4cb53d[_0x365fab('0xcd6')](_0x365fab('0x1382'),{'fields':_0x365fab('0x104'),'type':_0x365fab('0x1a7a'),'nolimit':!![]}):_0x4cb53d[_0x365fab('0xcd6')]('userProfile@getResources',{'id':_0x344566[_0x365fab('0x1ef8')]()[_0x365fab('0x1d04')],'section':_0x365fab('0x13e1'),'fields':'id,name','type':'inbound','channel':_0x365fab('0xe74'),'nolimit':!![]});}],'outbound':[_0x436a86('0x292'),function _0x240472(_0x2177b2){var _0x17df49=_0x436a86;return _0x2177b2[_0x17df49('0xcd6')](_0x17df49('0x19e7'));}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x436a86('0x1d72')](_0x436a86('0xe1c'),{'url':'/dialer','data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0xdac88a,'controller':'UserVoiceDashboardDialerController\x20as\x20vm'}},'resolve':{'rpcQueues':[_0x436a86('0x292'),function _0x2e1001(_0x1b0e28){var _0xe8257f=_0x436a86;return _0x1b0e28[_0xe8257f('0xcd6')](_0xe8257f('0x1946'));}],'outboundQueues':[_0x436a86('0x292'),_0x436a86('0x2730'),function _0x20abfa(_0x125f4e,_0x5765c5){var _0x593382=_0x436a86;return _0x5765c5[_0x593382('0x179e')](_0x593382('0xd14'))?_0x125f4e[_0x593382('0xcd6')](_0x593382('0x1382'),{'fields':_0x593382('0x104'),'type':'outbound','nolimit':!![]}):_0x125f4e[_0x593382('0xcd6')](_0x593382('0x197d'),{'id':_0x5765c5['getCurrentUser']()[_0x593382('0x1d04')],'section':_0x593382('0x1a2a'),'fields':'id,name','type':'outbound','channel':_0x593382('0xe74'),'nolimit':!![]});}],'rpcCampaigns':[_0x436a86('0x292'),function _0x4374e7(_0x56dfbf){var _0x39d8d3=_0x436a86;return _0x56dfbf[_0x39d8d3('0xcd6')](_0x39d8d3('0xa8f'));}]},'authenticate':!![],'bodyClass':_0x436a86('0x1efb')})[_0x436a86('0x1d72')](_0x436a86('0x2465'),{'url':'/chat','data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x376168,'controller':'UserChatDashboardGeneralController\x20as\x20vm'}},'resolve':{'chatInteractions':['apiResolver',function _0x4dd35d(_0x1d7fe6){var _0x3601a8=_0x436a86;return _0x1d7fe6[_0x3601a8('0xcd6')]('chatInteraction@get',{'createdAt':{'$gte':_0x4ddcaa()()[_0x3601a8('0x21b1')](_0x3601a8('0x2103'))['utcOffset'](0x0,!![])[_0x3601a8('0x5e5')](),'$lte':_0x4ddcaa()()[_0x3601a8('0x270')](_0x3601a8('0x2103'))[_0x3601a8('0x1e9e')](0x0,!![])['format']()},'nolimit':!![]});}],'chatWebsites':[_0x436a86('0x292'),_0x436a86('0x2730'),function _0x16b9d3(_0x5175d4,_0x353afa){var _0x16a3a9=_0x436a86;return _0x353afa[_0x16a3a9('0x179e')](_0x16a3a9('0xd14'))?_0x5175d4[_0x16a3a9('0xcd6')](_0x16a3a9('0xa00'),{'fields':_0x16a3a9('0x237'),'sort':_0x16a3a9('0x7e8'),'limit':0xa,'offset':0x0}):_0x5175d4['resolve'](_0x16a3a9('0x197d'),{'id':_0x353afa[_0x16a3a9('0x1ef8')]()[_0x16a3a9('0x1d04')],'section':_0x16a3a9('0x1331'),'fields':_0x16a3a9('0x237'),'sort':_0x16a3a9('0x7e8'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x436a86('0x1efb')})[_0x436a86('0x1d72')](_0x436a86('0x53'),{'url':_0x436a86('0x1aad'),'data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x50d680,'controller':_0x436a86('0xbe0')}},'resolve':{'mailInteractions':['apiResolver',function _0xd88b59(_0x49172e){var _0x3e99ea=_0x436a86;return _0x49172e[_0x3e99ea('0xcd6')](_0x3e99ea('0x4ed'),{'createdAt':{'$gte':_0x4ddcaa()()[_0x3e99ea('0x21b1')](_0x3e99ea('0x2103'))[_0x3e99ea('0x1e9e')](0x0,!![])['format'](),'$lte':_0x4ddcaa()()[_0x3e99ea('0x270')](_0x3e99ea('0x2103'))[_0x3e99ea('0x1e9e')](0x0,!![])[_0x3e99ea('0x5e5')]()},'nolimit':!![]});}],'mailAccounts':[_0x436a86('0x292'),_0x436a86('0x2730'),function _0x48dd23(_0x4c0301,_0x2816ef){var _0x1d855a=_0x436a86;return _0x2816ef[_0x1d855a('0x179e')](_0x1d855a('0xd14'))?_0x4c0301[_0x1d855a('0xcd6')](_0x1d855a('0xff5'),{'fields':_0x1d855a('0x159a'),'sort':_0x1d855a('0x7e8'),'limit':0xa,'offset':0x0}):_0x4c0301['resolve']('userProfile@getResources',{'id':_0x2816ef[_0x1d855a('0x1ef8')]()[_0x1d855a('0x1d04')],'section':_0x1d855a('0xa3e'),'fields':_0x1d855a('0x159a'),'sort':_0x1d855a('0x7e8'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x436a86('0x1efb')})['state'](_0x436a86('0x16b7'),{'url':_0x436a86('0x1a05'),'data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x1460ad,'controller':_0x436a86('0x273d')}},'resolve':{'smsInteractions':[_0x436a86('0x292'),function _0x250ee2(_0x353b35){var _0x3f5a6a=_0x436a86;return _0x353b35['resolve'](_0x3f5a6a('0x1112'),{'createdAt':{'$gte':_0x4ddcaa()()[_0x3f5a6a('0x21b1')](_0x3f5a6a('0x2103'))['utcOffset'](0x0,!![])[_0x3f5a6a('0x5e5')](),'$lte':_0x4ddcaa()()[_0x3f5a6a('0x270')](_0x3f5a6a('0x2103'))[_0x3f5a6a('0x1e9e')](0x0,!![])['format']()},'nolimit':!![]});}],'smsAccounts':[_0x436a86('0x292'),_0x436a86('0x2730'),function _0x59ff49(_0x22a240,_0x47a8f7){var _0x4e74bb=_0x436a86;return _0x47a8f7[_0x4e74bb('0x179e')](_0x4e74bb('0xd14'))?_0x22a240[_0x4e74bb('0xcd6')](_0x4e74bb('0x1739'),{'fields':_0x4e74bb('0xc6d'),'sort':_0x4e74bb('0x7e8'),'limit':0xa,'offset':0x0}):_0x22a240[_0x4e74bb('0xcd6')](_0x4e74bb('0x197d'),{'id':_0x47a8f7[_0x4e74bb('0x1ef8')]()['userProfileId'],'section':'SmsAccounts','fields':_0x4e74bb('0xc6d'),'sort':_0x4e74bb('0x7e8'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x436a86('0x1d72')](_0x436a86('0x1aa2'),{'url':_0x436a86('0x1856'),'data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0x12c5aa,'controller':_0x436a86('0x1778')}},'resolve':{'openchannelInteractions':[_0x436a86('0x292'),function _0x16ce78(_0x149dc4){var _0x2e3e1f=_0x436a86;return _0x149dc4[_0x2e3e1f('0xcd6')]('openchannelInteraction@get',{'createdAt':{'$gte':_0x4ddcaa()()[_0x2e3e1f('0x21b1')]('day')['utcOffset'](0x0,!![])[_0x2e3e1f('0x5e5')](),'$lte':_0x4ddcaa()()[_0x2e3e1f('0x270')]('day')[_0x2e3e1f('0x1e9e')](0x0,!![])[_0x2e3e1f('0x5e5')]()},'nolimit':!![]});}],'openchannelAccounts':['apiResolver',_0x436a86('0x2730'),function _0x189c2a(_0x9f2563,_0x18c689){var _0x2df4d9=_0x436a86;return _0x18c689[_0x2df4d9('0x179e')](_0x2df4d9('0xd14'))?_0x9f2563[_0x2df4d9('0xcd6')](_0x2df4d9('0x107f'),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','sort':'-updatedAt','nolimit':!![]}):_0x9f2563[_0x2df4d9('0xcd6')](_0x2df4d9('0x197d'),{'id':_0x18c689[_0x2df4d9('0x1ef8')]()[_0x2df4d9('0x1d04')],'section':'OpenchannelAccounts','fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','sort':_0x2df4d9('0x7e8'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x436a86('0x1efb')})['state'](_0x436a86('0x1beb'),{'url':'/fax','data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x5e2b05,'controller':_0x436a86('0x1f46')}},'resolve':{'faxInteractions':[_0x436a86('0x292'),function _0x3df369(_0xf1d217){var _0x1370fd=_0x436a86;return _0xf1d217[_0x1370fd('0xcd6')](_0x1370fd('0x1a5a'),{'createdAt':{'$gte':_0x4ddcaa()()['startOf'](_0x1370fd('0x2103'))['utcOffset'](0x0,!![])[_0x1370fd('0x5e5')](),'$lte':_0x4ddcaa()()[_0x1370fd('0x270')](_0x1370fd('0x2103'))[_0x1370fd('0x1e9e')](0x0,!![])[_0x1370fd('0x5e5')]()},'nolimit':!![]});}],'faxAccounts':[_0x436a86('0x292'),_0x436a86('0x2730'),function _0x14c83e(_0x42fe4c,_0xfcade4){var _0x2f624b=_0x436a86;return _0xfcade4['hasRole'](_0x2f624b('0xd14'))?_0x42fe4c[_0x2f624b('0xcd6')](_0x2f624b('0x27c'),{'fields':_0x2f624b('0x10d'),'sort':_0x2f624b('0x7e8'),'limit':0xa,'offset':0x0}):_0x42fe4c[_0x2f624b('0xcd6')]('userProfile@getResources',{'id':_0xfcade4[_0x2f624b('0x1ef8')]()['userProfileId'],'section':_0x2f624b('0x19b0'),'fields':_0x2f624b('0x10d'),'sort':_0x2f624b('0x7e8'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x436a86('0x1efb')})['state'](_0x436a86('0x2228'),{'url':_0x436a86('0x1fc4'),'data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0x40bca0,'controller':_0x436a86('0x8e0')}},'resolve':{'whatsappInteractions':[_0x436a86('0x292'),function _0x51642c(_0x11a44e){var _0x1d545f=_0x436a86;return _0x11a44e['resolve'](_0x1d545f('0x14ab'),{'createdAt':{'$gte':_0x4ddcaa()()[_0x1d545f('0x21b1')](_0x1d545f('0x2103'))[_0x1d545f('0x1e9e')](0x0,!![])['format'](),'$lte':_0x4ddcaa()()[_0x1d545f('0x270')](_0x1d545f('0x2103'))['utcOffset'](0x0,!![])[_0x1d545f('0x5e5')]()},'nolimit':!![]});}],'whatsappAccounts':[_0x436a86('0x292'),'Auth',function _0x460cef(_0xd46a4b,_0x38fb3b){var _0x45ff8f=_0x436a86;return _0x38fb3b[_0x45ff8f('0x179e')](_0x45ff8f('0xd14'))?_0xd46a4b[_0x45ff8f('0xcd6')](_0x45ff8f('0xe91'),{'fields':_0x45ff8f('0xcd4'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0xd46a4b[_0x45ff8f('0xcd6')](_0x45ff8f('0x197d'),{'id':_0x38fb3b[_0x45ff8f('0x1ef8')]()[_0x45ff8f('0x1d04')],'section':_0x45ff8f('0x1d20'),'fields':'createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,whatsappMethod,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate','sort':_0x45ff8f('0x7e8'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular[_0xb635d2('0x153f')](_0xb635d2('0x2447'),[])[_0xb635d2('0x1990')](_0x5e731a)[_0xb635d2('0x1a79')]('UserChatDashboardGeneralController',_0x4e4f1e)[_0xb635d2('0x1a79')](_0xb635d2('0xea1'),_0x529827)[_0xb635d2('0x1a79')]('UserFaxDashboardGeneralController',_0x163229)['controller'](_0xb635d2('0x1165'),_0x1fba02)[_0xb635d2('0x1a79')]('UserOpenchannelDashboardGeneralController',_0x702af8)[_0xb635d2('0x1a79')]('UserSmsDashboardGeneralController',_0x5ed031)[_0xb635d2('0x2891')](_0xb635d2('0x2595'),_0x24d910)[_0xb635d2('0x1324')](_0xb635d2('0x122a'),_0x27ee9b)['factory'](_0xb635d2('0x11ab'),_0x2ec556)[_0xb635d2('0x1a79')](_0xb635d2('0xdf8'),_0x26b20d)[_0xb635d2('0x1a79')](_0xb635d2('0x624'),_0x4fb929)[_0xb635d2('0x1a79')](_0xb635d2('0x6fe'),_0x453740);const _0x1d0f9d=_0x59426a['p']+_0xb635d2('0x1a6b'),_0x555d4d=_0x59426a['p']+_0xb635d2('0xa9e');var _0x55d730=_0x59426a(0x1d2),_0x1be88e=_0x59426a['n'](_0x55d730);_0x41d59e[_0xb635d2('0xb0c')]=[_0xb635d2('0x917'),_0xb635d2('0x2493'),_0xb635d2('0x2400'),_0xb635d2('0x2730')],_0x36e95a['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$window','$translate',_0xb635d2('0x1728'),_0xb635d2('0x2730'),'api',_0xb635d2('0x46d'),_0xb635d2('0xf65'),_0xb635d2('0x1944'),'globalLists',_0xb635d2('0x474'),_0xb635d2('0xbfb'),_0xb635d2('0x5c1'),'setting','desktopNotification',_0xb635d2('0x1563')];function _0x36e95a(_0x3c54e6,_0x476d2b,_0x2063da,_0x459202,_0x268e89,_0x1b76f6,_0x37cba9,_0x955877,_0x423188,_0x52daf6,_0x53cab6,_0x45ce4a,_0x23adda,_0x16a39d,_0x4a0bdc,_0x4fddb9,_0x521b7c,_0x4f2346){var _0x549db8=_0xb635d2,_0x1908ea=this;_0x1908ea['license']=_0x4a0bdc,_0x1908ea[_0x549db8('0x22f1')]=_0x4fddb9,_0x1908ea[_0x549db8('0x1e2a')]=_0x4f2346[_0x549db8('0x1e2a')](),_0x1908ea[_0x549db8('0x10c6')]=_0x37cba9[_0x549db8('0x1ef8')](),_0x1908ea[_0x549db8('0x14a2')]=0x0,_0x1908ea[_0x549db8('0xd8')]={},_0x1908ea['tabs']={},_0x1908ea['agentCapacity']={},_0x1908ea[_0x549db8('0x1944')]=_0x53cab6||{'count':0x0,'rows':[]},_0x1908ea[_0x549db8('0x1152')]=_0x45ce4a||{'count':0x0,'rows':[]},_0x1908ea[_0x549db8('0x474')]=_0x23adda||{'count':0x0,'rows':[]},_0x1908ea['globalTags']=_0x16a39d||{'count':0x0,'rows':[]},_0x1908ea['onClickTab']=_0x494384,_0x1908ea[_0x549db8('0x147b')]=_0x3e3cf7,_0x1908ea[_0x549db8('0x7a2')]=_0x11f9d2,_0x1908ea['addContactTab']=_0xf4a6c,_0x1908ea[_0x549db8('0xa31')]=_0x225fc8,_0x1908ea[_0x549db8('0x208')]=_0x2d4109,_0x1908ea['removeTab']=_0x20fe4d,_0x1908ea[_0x549db8('0x1d3')]=_0x556592,_0x1908ea[_0x549db8('0x242c')]=_0x3c6b08,_0x423188['on'](_0x549db8('0x1ad9'),_0x29fd4d),_0x423188['on'](_0x549db8('0x12b7'),_0x58e759),_0x423188['on'](_0x549db8('0xdb8'),_0x13a647),_0x423188['on']('trigger:browser:url',_0x43be4e),_0x423188['on']('trigger:browser:popup',_0x313233),_0x423188['on'](_0x549db8('0x24ff'),_0x549fe4),_0x423188['on'](_0x549db8('0x3c0'),_0x154155),_0x423188['on'](_0x549db8('0x2189'),_0x15e8e1),_0x423188['on'](_0x549db8('0x135d'),_0x15e8e1),_0x43e939();function _0x43e939(){var _0x12f6e7=_0x549db8,_0x5425bd=_0x459202[_0x12f6e7('0x4f9')]['getItem']('motion2.user:'+_0x1908ea[_0x12f6e7('0x10c6')]['id']);if(_0x5425bd)try{_0x5425bd=JSON[_0x12f6e7('0x118e')](_0x5425bd),_0x1908ea[_0x12f6e7('0xb31')]=_0x5425bd['tabs']?_0x5425bd[_0x12f6e7('0xb31')]:{},_0x1908ea[_0x12f6e7('0x14a2')]=_0x5425bd['currentTab']?_0x5425bd['currentTab']:0x0,_0xc513e8(_0x1908ea['tabs'][_0x1908ea[_0x12f6e7('0x14a2')]]);}catch(_0x365798){console[_0x12f6e7('0x8c8')](_0x365798);}}function _0x556592(_0x33d840){var _0x293d20=_0x549db8,_0x35f39f={};for(var _0x53cab0 in _0x1908ea[_0x293d20('0xb31')]){typeof _0x1908ea[_0x293d20('0xb31')][_0x53cab0]!==_0x293d20('0x1143')&&(_0x35f39f[_0x53cab0]=_0x32d445()[_0x293d20('0xed5')](_0x1908ea[_0x293d20('0xb31')][_0x53cab0],[_0x293d20('0x62e'),_0x293d20('0x13e4'),_0x293d20('0x4e'),_0x293d20('0x11fa'),'color',_0x293d20('0x1a8a'),'id',_0x293d20('0x15b9'),'badges']),!_0x32d445()[_0x293d20('0xe44')](_0x1908ea[_0x293d20('0xb31')][_0x53cab0][_0x293d20('0xd9a')])&&(_0x35f39f[_0x53cab0]['contact']=_0x32d445()[_0x293d20('0xed5')](_0x1908ea['tabs'][_0x53cab0][_0x293d20('0xd9a')],['id',_0x293d20('0x2463')])),!_0x32d445()['isNil'](_0x1908ea['tabs'][_0x53cab0][_0x293d20('0x13c7')])&&(_0x35f39f[_0x53cab0][_0x293d20('0x13c7')]=_0x1908ea[_0x293d20('0xb31')][_0x53cab0][_0x293d20('0x13c7')]),_0x1908ea['tabs'][_0x53cab0][_0x293d20('0xf6')]&&(_0x35f39f[_0x53cab0][_0x293d20('0xf6')]=_0x32d445()[_0x293d20('0xed5')](_0x1908ea['tabs'][_0x53cab0][_0x293d20('0xf6')],['id',_0x293d20('0xf26'),'MailAccountId',_0x293d20('0x365'),_0x293d20('0xef3'),'SmsAccountId',_0x293d20('0x220b'),_0x293d20('0x1835'),_0x293d20('0x1224')])));}var _0x1a89ab=JSON[_0x293d20('0x118e')](_0x459202['localStorage'][_0x293d20('0x2208')](_0x293d20('0x16df')+_0x1908ea[_0x293d20('0x10c6')]['id']));_0x1a89ab?(_0x1a89ab[_0x293d20('0xb31')]=_0x35f39f,_0x1a89ab[_0x293d20('0x14a2')]=_0x1908ea['currentTab']):_0x1a89ab={'tabs':_0x35f39f,'currentTab':_0x1908ea[_0x293d20('0x14a2')]},_0x459202[_0x293d20('0x4f9')]['setItem'](_0x293d20('0x16df')+_0x1908ea['user']['id'],JSON['stringify'](_0x1a89ab)),_0x33d840&&_0xc513e8(_0x33d840);}function _0xc513e8(_0x4c3b10){var _0x1592d0=_0x549db8;if(_0x32d445()[_0x1592d0('0xe44')](_0x4c3b10)||_0x4c3b10&&_0x4c3b10['type']==='interaction'){var _0x5ea202={'id':_0x1908ea[_0x1592d0('0x10c6')]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(var _0x58ab3d in _0x1908ea['tabs']){typeof _0x1908ea[_0x1592d0('0xb31')][_0x58ab3d]!==_0x1592d0('0x1143')&&(typeof _0x5ea202[_0x1592d0('0x4f2')][_0x1908ea['tabs'][_0x58ab3d]['channel']]!==_0x1592d0('0x1143')&&_0x1908ea['tabs'][_0x58ab3d][_0x1592d0('0xf6')]&&!_0x1908ea[_0x1592d0('0xb31')][_0x58ab3d][_0x1592d0('0xf6')][_0x1592d0('0x1835')]&&(_0x5ea202[_0x1592d0('0x4f2')][_0x1908ea[_0x1592d0('0xb31')][_0x58ab3d][_0x1592d0('0x4e')]]+=0x1,_0x5ea202['interaction'][_0x1908ea[_0x1592d0('0xb31')][_0x58ab3d][_0x1592d0('0x4e')]][_0x1592d0('0xb76')](_0x1908ea[_0x1592d0('0xb31')][_0x58ab3d][_0x1592d0('0xf6')]['id'])));}if(!_0x32d445()['isEqual'](_0x1908ea[_0x1592d0('0x25d7')],_0x5ea202['capacity']))return _0x1908ea[_0x1592d0('0x25d7')]=_0x5ea202[_0x1592d0('0x4f2')],_0x955877[_0x1592d0('0x21e1')][_0x1592d0('0x42b')](_0x5ea202);}}function _0x3c6b08(_0x4864c1){var _0x2037c3=_0x549db8,_0x49373f=![],_0x5094a7=_0x2063da['confirm']()[_0x2037c3('0x13e4')](_0x4864c1[_0x2037c3('0x62e')]==='interaction'?_0x2037c3('0xff8'):_0x2037c3('0x1a69')+_0x4864c1[_0x2037c3('0x62e')]+'?')[_0x2037c3('0x2719')](_0x4864c1[_0x2037c3('0x62e')]===_0x2037c3('0xf6')?'':_0x2037c3('0x2784')+_0x4864c1['type']+_0x2037c3('0x85a'))[_0x2037c3('0x4d1')](_0x2037c3('0xb0b'))['ok'](_0x4864c1['type']==='interaction'?'YES':'OK')[_0x2037c3('0x2c1')](_0x4864c1['type']==='interaction'?'NO':_0x2037c3('0x17'));if(_0x4864c1['saved']){var _0x41149e=![];_0x32d445()[_0x2037c3('0x1d7e')](_0x4864c1[_0x2037c3('0x13c7')],function(_0x2dfe12){var _0xbae419=_0x2037c3;_0x2dfe12[_0xbae419('0x1dc8')]&&(_0x41149e=!![]);});if(_0x4864c1[_0x2037c3('0x62e')]===_0x2037c3('0xd9a')&&_0x4864c1[_0x2037c3('0x13c7')][_0x2037c3('0x25ae')]>0x0){var _0x789b66=undefined;if(_0x41149e)_0x789b66=_0x2063da[_0x2037c3('0xbdc')]()[_0x2037c3('0x13e4')](_0x2037c3('0x830'))[_0x2037c3('0x2719')](_0x2037c3('0x9b2'))['ok']('OK'),_0x2063da[_0x2037c3('0x26b2')](_0x789b66)[_0x2037c3('0x23')](function(){_0x789b66=undefined;});else return _0x5094a7[_0x2037c3('0x170a')][_0x2037c3('0x2719')]='There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.',_0x2063da[_0x2037c3('0x26b2')](_0x5094a7)[_0x2037c3('0xe19')](function(){_0x20fe4d(_0x4864c1);});}else _0x20fe4d(_0x4864c1);}else{var _0x38b383=_0x1908ea[_0x2037c3('0x10c6')][_0x2037c3('0x1b8d')]||_0x1908ea['user'][_0x2037c3('0x1b15')]||_0x1908ea['user'][_0x2037c3('0x2531')]||_0x1908ea['user'][_0x2037c3('0xf2a')]||_0x1908ea[_0x2037c3('0x10c6')][_0x2037c3('0x2299')];return _0x49373f=![],_0x4864c1[_0x2037c3('0x62e')]===_0x2037c3('0xf6')&&(_0x49373f=_0x4864c1['interaction']['Account'][_0x2037c3('0x1dc8')]),_0x2063da[_0x2037c3('0x26b2')](_0x5094a7)[_0x2037c3('0xe19')](function(){var _0x479ab7=_0x2037c3;_0x4864c1[_0x479ab7('0x62e')]===_0x479ab7('0xf6')&&_0x2063da[_0x479ab7('0x26b2')]({'controller':_0x479ab7('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular[_0x479ab7('0x24a1')](_0x1b76f6['body']),'onRemoving':function _0x54844e(){var _0x45083c=_0x479ab7;_0x1908ea[_0x45083c('0x10c6')]&&_0x49373f&&!_0x38b383&&_0x955877[_0x45083c('0x10c6')][_0x45083c('0x2471')]({'id':_0x1908ea[_0x45083c('0x10c6')]['id']})[_0x45083c('0xe59')][_0x45083c('0x223b')](function(_0x360dde){var _0x19c52d=_0x45083c;console[_0x19c52d('0x8c8')](_0x360dde);});},'clickOutsideToClose':!_0x49373f,'escapeToClose':!_0x49373f,'locals':{'user':_0x1908ea[_0x479ab7('0x10c6')],'channel':_0x4864c1['channel'],'interaction':_0x4864c1[_0x479ab7('0xf6')]}}),_0x20fe4d(_0x4864c1);})['catch'](function(){var _0x4066da=_0x2037c3;_0x4864c1[_0x4066da('0x62e')]===_0x4066da('0xf6')&&_0x20fe4d(_0x4864c1);});}}function _0x242838(_0x347bf2){var _0x105e90=_0x549db8;if(_0x347bf2[_0x105e90('0x4e')]&&_0x347bf2[_0x105e90('0xf6')])return _0x955877[_0x105e90('0x10c6')][_0x105e90('0xa8b')+_0x32d445()['upperFirst'](_0x347bf2[_0x105e90('0x4e')])+'Interactions']({'id':_0x1908ea['user']['id'],'ids':[_0x347bf2[_0x105e90('0xf6')]['id']]})[_0x105e90('0xe59')]['catch'](function(_0x340051){var _0x122de3=_0x105e90;console[_0x122de3('0x8c8')](_0x340051);});}function _0x20fe4d(_0x4d84cb){var _0x3c1f95=_0x549db8;if(_0x1908ea['tabs'][_0x4d84cb['id']]){_0x242838(_0x1908ea[_0x3c1f95('0xb31')][_0x4d84cb['id']]),delete _0x1908ea[_0x3c1f95('0xb31')][_0x4d84cb['id']],_0x1908ea['currentTab']=0x0,_0x556592(_0x4d84cb);if(_0x4d84cb['type']===_0x3c1f95('0xf6'))return _0x955877[_0x4d84cb[_0x3c1f95('0x4e')]+'Interaction'][_0x3c1f95('0x22d5')]({'id':_0x4d84cb[_0x3c1f95('0xf6')]['id']})[_0x3c1f95('0xe59')]['then'](function(_0x86985f){var _0x559b70=_0x3c1f95;return _0x955877[_0x559b70('0x10c6')]['remove'+_0x32d445()[_0x559b70('0x2077')](_0x4d84cb[_0x559b70('0x4e')])+'Interactions']({'id':_0x1908ea[_0x559b70('0x10c6')]['id'],'ids':[_0x86985f['id']]})['$promise'];})[_0x3c1f95('0x223b')](function(_0x3fdc2a){var _0x4e3fab=_0x3c1f95;console[_0x4e3fab('0x8c8')](_0x3fdc2a);});}}function _0x2d4109(_0x5564c0){var _0x24e02c=_0x549db8;_0x5564c0['id']=_0x32d445()[_0x24e02c('0xc79')](0x2540be400),_0x5564c0[_0x24e02c('0x1c2e')]=new Date(),_0x5564c0['saved']=![],_0x5564c0[_0x24e02c('0x17ef')]=0x0,_0x1908ea[_0x24e02c('0xb31')][_0x5564c0['id']]=_0x5564c0,_0x1908ea['currentTab']=_0x5564c0['id'],_0x556592(_0x5564c0);}function _0x3e3cf7(_0x976a8f){var _0x438703=_0x549db8;return _0x976a8f===_0x1908ea[_0x438703('0x14a2')];}function _0x494384(_0x199473){var _0x24ee18=_0x549db8;_0x1908ea[_0x24ee18('0x14a2')]=_0x199473,_0x556592(_0x1908ea[_0x24ee18('0xb31')][_0x199473]);}function _0x11f9d2(_0x5ba016){var _0x160557=_0x549db8;return _0x32d445()['find'](_0x1908ea[_0x160557('0xb31')],function(_0x4c782b){var _0x5ce585=_0x160557;return _0x4c782b[_0x5ce585('0x62e')]===_0x5ce585('0xf6')&&_0x4c782b[_0x5ce585('0xf6')]&&_0x4c782b[_0x5ce585('0xf6')]['id']==_0x5ba016[_0x5ce585('0x1cb6')]&&_0x4c782b[_0x5ce585('0x4e')]==_0x5ba016['channel'];});}function _0x5815c4(_0x1cfcab){var _0x34c59d=_0x549db8,_0x4f3e28='';if(_0x1cfcab){if(_0x1cfcab[_0x34c59d('0x2566')]||_0x1cfcab['lastName'])_0x1cfcab[_0x34c59d('0x2566')]&&(_0x4f3e28+=_0x1cfcab['firstName']+'\x20'),_0x1cfcab['lastName']&&(_0x4f3e28+=_0x1cfcab[_0x34c59d('0x151f')]);else _0x1cfcab[_0x34c59d('0x1ef5')]&&(_0x4f3e28=_0x1cfcab[_0x34c59d('0x1ef5')]);}return _0x4f3e28;}function _0x1305f9(_0x595dfb){var _0x16aeb6=_0x549db8;switch(_0x595dfb){case _0x16aeb6('0x17cc'):return _0x16aeb6('0x212');case _0x16aeb6('0x26bf'):return _0x16aeb6('0x8e3');case'sms':return'icon-message-text';case'openchannel':return _0x16aeb6('0x213f');case'fax':return'icon-deskphone';case _0x16aeb6('0x4b7'):return _0x16aeb6('0x12b6');default:return _0x16aeb6('0x212');}}function _0x508973(_0x25b68a){var _0x4ecc32=_0x549db8;switch(_0x25b68a){case _0x4ecc32('0x17cc'):return _0x4ecc32('0x26ee');case'mail':return'teal';case _0x4ecc32('0x2801'):return _0x4ecc32('0x16c3');case _0x4ecc32('0xaf2'):return _0x4ecc32('0xed0');case'fax':return'blue-grey-A200';case _0x4ecc32('0x4b7'):return _0x4ecc32('0x2486');default:return _0x4ecc32('0x2069');}}function _0xf4a6c(_0x5c1761,_0x591d30){var _0x28c153=_0x549db8,_0x53e455={'type':_0x28c153('0xd9a'),'title':_0x5c1761?_0x5815c4(_0x5c1761):_0x268e89[_0x28c153('0x2159')](_0x28c153('0x25e6')),'icon':_0x28c153('0x133c'),'color':_0x28c153('0x2129'),'contact':_0x5c1761,'calls':_0x591d30?[_0x591d30]:[],'autoCreate':_0x591d30?_0x591d30[_0x28c153('0x1a8a')]:0x0};if(_0x591d30){if(_0x591d30[_0x28c153('0x19b')]&&_0x591d30[_0x28c153('0x19b')]===_0x28c153('0x5d'))_0x591d30[_0x28c153('0xdb2')]=_0x591d30['agentcalledAt']?_0x4ddcaa()(_0x591d30[_0x28c153('0x107e')],_0x28c153('0x1f90'))[_0x28c153('0x31')]():new Date();else{if(_0x591d30[_0x28c153('0x1a6c')]){var _0xd2829b=_0x591d30[_0x28c153('0x1a6c')][_0x28c153('0x1745')]('.')[0x0];_0x591d30[_0x28c153('0xdb2')]=_0xd2829b?new Date(parseInt(_0xd2829b)*0x3e8):new Date();}}(_0x591d30['agentcompleteAt']||_0x591d30[_0x28c153('0x1430')])&&_0xe84ebb(_0x591d30);}if(_0x5c1761){var _0x3228bf=_0x32d445()[_0x28c153('0xf15')](_0x1908ea[_0x28c153('0xb31')],function(_0x3ec00b){var _0x316176=_0x28c153;if(_0x3ec00b[_0x316176('0xd9a')]&&_0x3ec00b[_0x316176('0xd9a')]['id'])return _0x3ec00b['type']===_0x316176('0xd9a')&&_0x3ec00b[_0x316176('0xd9a')]&&_0x3ec00b[_0x316176('0xd9a')]['id']==_0x5c1761['id'];return _0x3ec00b[_0x316176('0x62e')]===_0x316176('0xd9a')&&_0x3ec00b[_0x316176('0xd9a')]&&_0x3ec00b[_0x316176('0xd9a')][_0x316176('0x1ef5')]==_0x5c1761[_0x316176('0x1ef5')];});if(_0x3228bf){if(_0x591d30)return _0x955877[_0x28c153('0x496')][_0x28c153('0x22d5')]({'uniqueid':_0x591d30[_0x28c153('0x1a6c')]})['$promise'][_0x28c153('0xe19')](function(_0x405629){var _0x59fa4c=_0x28c153;_0x405629&&_0x405629[_0x59fa4c('0x16a7')]['length']>0x0&&(_0x591d30[_0x59fa4c('0x17e7')]=_0x32d445()['first'](_0x405629['rows'])[_0x59fa4c('0x1430')]);if(_0x3228bf[_0x59fa4c('0x13c7')]){var _0x50a248=_0x32d445()[_0x59fa4c('0xf15')](_0x3228bf['calls'],function(_0x35beff){var _0x2616b3=_0x59fa4c;return _0x35beff[_0x2616b3('0x1a6c')]===_0x591d30[_0x2616b3('0x1a6c')];});!_0x50a248&&_0x3228bf[_0x59fa4c('0x13c7')][_0x59fa4c('0xb76')](_0x591d30);}else _0x3228bf['calls']=[_0x591d30];_0x1908ea[_0x59fa4c('0x14a2')]=_0x3228bf['id'];});}else{if(_0x5c1761[_0x28c153('0x2463')])return _0x955877[_0x28c153('0x2506')][_0x28c153('0x22d5')]({'ListId':_0x5c1761[_0x28c153('0x2463')]})['$promise']['then'](function(_0x9ae8e9){var _0x1b2ecb=_0x28c153;return _0x53e455[_0x1b2ecb('0x24eb')]=_0x9ae8e9,_0x955877[_0x1b2ecb('0x1bbd')][_0x1b2ecb('0xbef')]({'id':_0x5c1761['ListId']})['$promise'];})[_0x28c153('0xe19')](function(_0x5009f1){_0x53e455['customFields']=_0x5009f1;})[_0x28c153('0x223b')](_0xfb8d())[_0x28c153('0x23')](function(){_0x2d4109(_0x53e455);});else _0x2d4109(_0x53e455);}}else _0x2d4109(_0x53e455);}function _0x225fc8(_0x5842a8,_0x1c346b){var _0x2ef449=_0x549db8,_0x1a82f1=_0x32d445()[_0x2ef449('0xf15')](_0x1908ea[_0x2ef449('0xb31')],function(_0x4e6b8a){var _0x4c9379=_0x2ef449;return _0x4e6b8a[_0x4c9379('0x62e')]===_0x4c9379('0xf6')&&_0x4e6b8a[_0x4c9379('0xf6')]&&_0x4e6b8a[_0x4c9379('0xf6')]['id']===_0x1c346b['id']&&_0x4e6b8a[_0x4c9379('0x4e')]===_0x5842a8;});_0x1a82f1?(_0x1a82f1[_0x2ef449('0xf12')]=_0x1c346b[_0x2ef449('0xf12')]||![],_0x1908ea[_0x2ef449('0x14a2')]=_0x1a82f1['id']):(_0x1a82f1={'type':_0x2ef449('0xf6'),'title':_0x5842a8?_0x5842a8[_0x2ef449('0x25f7')]():_0x2ef449('0xaf2'),'icon':_0x1305f9(_0x5842a8),'color':_0x508973(_0x5842a8),'channel':_0x5842a8,'interaction':_0x1c346b,'isDraft':_0x1c346b[_0x2ef449('0xf12')]||![]},_0x2d4109(_0x1a82f1));}function _0x1a7808(_0x3989f1){var _0x1c2c16=_0x549db8,_0x186a8b={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x1c2c16('0x2007'),'body':_0x3989f1['queue']?'Queue:\x20'+_0x3989f1[_0x1c2c16('0x26a8')]:'','focusOnclick':!![],'closeOnClick':!![]};_0x521b7c[_0x1c2c16('0x26b2')](_0x3989f1[_0x1c2c16('0x13e4')],_0x186a8b);}function _0x566ea4(_0x4540c8){var _0x4eae8c=_0x549db8;_0x521b7c[_0x4eae8c('0x233a')]()?_0x521b7c[_0x4eae8c('0xbff')]()[_0x4eae8c('0xe19')](function(){_0x1a7808(_0x4540c8);},function(_0x2275bd){var _0x20be80=_0x4eae8c;console[_0x20be80('0x8c8')]('Please\x20enable\x20browser\x20notifications!',_0x2275bd);}):console['error'](_0x4eae8c('0x17a4'));}function _0x549fe4(_0x374dde){var _0x212d94=_0x549db8;if(_0x374dde&&_0x374dde[_0x212d94('0x1a6c')]){_0x566ea4(_0x374dde);var _0x5317c7=_0x11f9d2(_0x374dde);if(_0x5317c7){if(_0x955877[_0x374dde[_0x212d94('0x4e')]+_0x212d94('0x2164')])return _0x1908ea[_0x212d94('0x14a2')]!==_0x5317c7['id']&&(_0x5317c7['badges']+=0x1),_0x955877[_0x374dde[_0x212d94('0x4e')]+_0x212d94('0x2164')][_0x212d94('0xcb5')]({'id':_0x374dde['id'],'UserId':_0x1908ea['user']['id']})[_0x212d94('0xe59')][_0x212d94('0x223b')](_0xfb8d());}else _0x52daf6[_0x212d94('0x10f1')]({'title':_0x374dde[_0x212d94('0x13e4')],'msg':_0x374dde[_0x212d94('0x18d0')]||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x374dde[_0x212d94('0x392')],'html':!![],'shake':_0x374dde['shake']||![],'onAdd':function _0x540df0(){var _0xe34ae9=_0x212d94;_0x1908ea[_0xe34ae9('0xd8')][_0x374dde[_0xe34ae9('0x1a6c')]]=this['id'];},'onAccept':function _0x5df8e6(){var _0x4600e0=_0x212d94;_0x154155(_0x374dde);if(_0x955877[_0x374dde[_0x4600e0('0x4e')]+_0x4600e0('0x2164')])return _0x955877[_0x374dde[_0x4600e0('0x4e')]+_0x4600e0('0x2164')][_0x4600e0('0xcb5')]({'id':_0x374dde['id'],'UserId':_0x1908ea[_0x4600e0('0x10c6')]['id'],'manual':!![]})['$promise']['then'](function(_0x417c2f){var _0xd5cb20=_0x4600e0;_0x225fc8(_0x417c2f[_0xd5cb20('0x4e')],_0x417c2f[_0xd5cb20('0xf6')]),_0x52daf6[_0xd5cb20('0x425')]({'title':_0xd5cb20('0x120a'),'msg':_0xd5cb20('0x451')});})['catch'](_0xfb8d());},'onReject':function _0x46dfc5(){var _0x2eaa60=_0x212d94;_0x154155(_0x374dde);if(_0x955877[_0x374dde['channel']+_0x2eaa60('0x2164')])return _0x955877[_0x374dde[_0x2eaa60('0x4e')]+_0x2eaa60('0x2164')]['reject']({'id':_0x374dde['id'],'UserId':_0x1908ea[_0x2eaa60('0x10c6')]['id']})['$promise'][_0x2eaa60('0xe19')](function(){var _0x5a60a3=_0x2eaa60;_0x52daf6[_0x5a60a3('0x425')]({'title':_0x5a60a3('0x419'),'msg':'Message\x20has\x20been\x20rejected!'});})[_0x2eaa60('0x223b')](_0xfb8d());}});}}function _0x154155(_0x21a40f){var _0x3554ff=_0x549db8;_0x21a40f&&_0x21a40f[_0x3554ff('0x1a6c')]&&(_0x1908ea['notifications'][_0x21a40f['uniqueid']]&&(_0x52daf6[_0x3554ff('0x1f92')](_0x1908ea[_0x3554ff('0xd8')][_0x21a40f[_0x3554ff('0x1a6c')]]),delete _0x1908ea[_0x3554ff('0xd8')][_0x21a40f['uniqueid']]));}function _0x29fd4d(_0x24b193){var _0x162484=_0x549db8;if(!_0x24b193['contacts']){_0xf4a6c(_0x24b193['contact'],_0x24b193['evt']);return;}_0x2063da[_0x162484('0x26b2')]({'controller':_0x162484('0xd87'),'controllerAs':'vm','templateUrl':_0x555d4d,'parent':angular[_0x162484('0x24a1')](_0x1b76f6[_0x162484('0x19b2')]),'locals':{'contacts':_0x24b193[_0x162484('0x4b1')],'callNumber':_0x24b193['evt'][_0x162484('0x4b3')]?_0x24b193[_0x162484('0xcdb')][_0x162484('0x18cc')]:_0x24b193[_0x162484('0xcdb')]['calleridnum']}})[_0x162484('0xe19')](function(_0x2d0602){_0xf4a6c(_0x2d0602,_0x24b193['evt']);});}function _0x58e759(_0x50f341){var _0x5a8742=_0x549db8;return _0x955877[_0x5a8742('0x6c7')][_0x5a8742('0x22d5')]({'id':_0x50f341[_0x5a8742('0x1482')]})[_0x5a8742('0xe59')][_0x5a8742('0xe19')](function(_0x47586d){var _0x117dac=_0x5a8742;if(_0x47586d){if(_0x32d445()['isUndefined'](_0x50f341[_0x117dac('0x9bb')])){try{_0x47586d[_0x117dac('0x2470')]=_0x1be88e()[_0x117dac('0x1bc8')](_0x47586d[_0x117dac('0x2470')],_0x32d445()[_0x117dac('0x1d8')](_0x50f341,{'user':_0x1908ea[_0x117dac('0x10c6')]}));}catch(_0x5b383a){console['error'](_0x5b383a);}_0x2d4109({'type':_0x117dac('0x1c47'),'title':_0x47586d[_0x117dac('0x2623')],'icon':_0x117dac('0x1a7c'),'color':_0x117dac('0x2069'),'project':_0x47586d,'call':_0x50f341});}else return _0x955877['cmContact']['get']({'id':_0x50f341[_0x117dac('0x9bb')]})[_0x117dac('0xe59')][_0x117dac('0xe19')](function(_0x4f859a){var _0x5e81e2=_0x117dac;try{_0x47586d[_0x5e81e2('0x2470')]=_0x1be88e()[_0x5e81e2('0x1bc8')](_0x47586d['formData'],_0x32d445()[_0x5e81e2('0x1d8')](_0x50f341,{'user':_0x1908ea[_0x5e81e2('0x10c6')],'contact':_0x4f859a}));}catch(_0x5eaea2){console[_0x5e81e2('0x8c8')](_0x5eaea2);}_0x2d4109({'type':_0x5e81e2('0x1c47'),'title':_0x47586d[_0x5e81e2('0x2623')],'icon':_0x5e81e2('0x1a7c'),'color':_0x5e81e2('0x2069'),'project':_0x47586d,'call':_0x50f341,'contact':_0x4f859a});})['catch'](_0xfb8d());}})[_0x5a8742('0x223b')](_0xfb8d());}function _0x43be4e(_0x4ce088){var _0x3aafa3=_0x549db8;if(_0x4ce088&&_0x4ce088['uri']){_0x4ce088[_0x3aafa3('0x154a')]=_0x32d445()[_0x3aafa3('0x1b42')](_0x4ce088[_0x3aafa3('0x154a')],_0x3aafa3('0x10ba'),''),_0x4ce088['uri']=_0x32d445()['replace'](_0x4ce088[_0x3aafa3('0x154a')],_0x3aafa3('0x1fc'),'');if(_0x4ce088[_0x3aafa3('0x1f57')])switch(_0x4ce088[_0x3aafa3('0x1f57')]){case'0':_0x459202['open'](_0x4ce088[_0x3aafa3('0x154a')]);break;case'1':_0x459202[_0x3aafa3('0x72a')](_0x4ce088[_0x3aafa3('0x154a')],_0x3aafa3('0x571'),_0x3aafa3('0x269a')+(_0x4ce088[_0x3aafa3('0x1d45')]||_0x3aafa3('0x421'))+_0x3aafa3('0x1bca')+_0x4ce088[_0x3aafa3('0x25a4')]||0x0);break;case'2':{var _0x532d16={'type':_0x3aafa3('0x22b9'),'title':_0x4ce088[_0x3aafa3('0x154a')],'icon':_0x3aafa3('0x213f'),'color':_0x3aafa3('0xead'),'src':_0x4ce088[_0x3aafa3('0x154a')]};_0x2d4109(_0x532d16);}break;default:_0x459202[_0x3aafa3('0x72a')](_0x4ce088['uri']);}else _0x459202[_0x3aafa3('0x72a')](_0x4ce088[_0x3aafa3('0x154a')]);}}function _0x313233(_0x2421a4){var _0x365ec0=_0x549db8;_0x2421a4&&_0x2421a4[_0x365ec0('0x158f')]&&_0x2d4109({'type':'popup','title':_0x2421a4[_0x365ec0('0xb2d')]||_0x365ec0('0xa33'),'icon':_0x365ec0('0x27a8'),'color':'grey','html':_0x2421a4['html']});}function _0x13a647(_0x5c6c59){var _0x5e5596=_0x549db8,_0x314aae=_0x5c6c59['calleridname']&&_0x5c6c59['calleridname']!==_0x5e5596('0x957')?_0x5c6c59[_0x5e5596('0x173a')]:_0x5c6c59[_0x5e5596('0xb2d')],_0x4991c8=_0x5c6c59[_0x5e5596('0xb2d')];return _0x955877[_0x5e5596('0x1f78')][_0x5e5596('0x22d5')]({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0x5c6c59['uniqueid']})['$promise']['then'](function(_0x4b2f4d){var _0x26cf68=_0x5e5596;_0x4b2f4d[_0x26cf68('0x148b')]&&_0x2d4109({'type':'bot','title':_0x314aae+'\x20<'+_0x4991c8+'>','icon':_0x26cf68('0x2631'),'color':_0x26cf68('0x12b5'),'data':{'uniqueid':_0x5c6c59[_0x26cf68('0x1a6c')]}});});}function _0x15e8e1(_0x375627){var _0x230d84=_0x549db8;console[_0x230d84('0x167f')](_0x230d84('0x14a4'),_0x375627);for(var _0x54f98f in _0x1908ea[_0x230d84('0xb31')]){if(typeof _0x1908ea[_0x230d84('0xb31')][_0x54f98f]!==_0x230d84('0x1143')){var _0x5ed3da=_0x1908ea[_0x230d84('0xb31')][_0x54f98f];if(_0x5ed3da['calls']){console[_0x230d84('0x167f')](_0x230d84('0x1d9d'),_0x54f98f,_0x5ed3da,_0x5ed3da[_0x230d84('0x13c7')]);var _0x39315a=_0x32d445()[_0x230d84('0x8d3')](_0x5ed3da[_0x230d84('0x13c7')],function(_0x445b90){var _0x1f8a62=_0x230d84;return _0x445b90[_0x1f8a62('0x1a6c')]===_0x375627[_0x1f8a62('0x1a6c')];});_0x39315a>=0x0&&!_0x5ed3da[_0x230d84('0x13c7')][_0x39315a]['disposedAt']?(console[_0x230d84('0x167f')](_0x230d84('0x95c'),_0x375627[_0x230d84('0x1a6c')]),_0xe84ebb(_0x5ed3da['calls'][_0x39315a])):console['debug'](_0x230d84('0xeb2'),_0x375627['uniqueid']),_0x1908ea[_0x230d84('0xd9a')]&&_0x1908ea[_0x230d84('0xd9a')]['id']&&_0x476d2b(_0x4932c7(_0x375627[_0x230d84('0x1a6c')],_0x1908ea['contact']['id'],_0x5ed3da),0x3e8);}}}_0x556592();}function _0x4932c7(_0x376c11,_0x55f2f2,_0x3ba180){return function(){var _0x376c14=a0_0x5325,_0x459704=_0x32d445()[_0x376c14('0xf15')](_0x3ba180[_0x376c14('0x13c7')],function(_0x595755){var _0xd5e3dc=_0x376c14;return _0x595755[_0xd5e3dc('0x1a6c')]===_0x376c11;});if(_0x459704)return _0x955877[_0x376c14('0x496')][_0x376c14('0xa70')]({'id':_0x376c11,'ContactId':_0x55f2f2})[_0x376c14('0xe59')][_0x376c14('0x223b')](function(_0x31ecfa){var _0x1c77c0=_0x376c14;console[_0x1c77c0('0x8c8')](_0x31ecfa);});};}function _0xe84ebb(_0x2a339f){var _0x2a5fcd=_0x549db8;_0x2a339f[_0x2a5fcd('0x17e7')]=new Date();}function _0xfb8d(){return function(_0x2c1810){var _0x9aa8d9=a0_0x5325;if(_0x2c1810[_0x9aa8d9('0x2833')]===0x194)_0x52daf6['warning']({'title':_0x268e89['instant']('DASHBOARDS.ATTENTION'),'msg':_0x268e89['instant'](_0x9aa8d9('0x477'))});else{if(_0x2c1810['data']&&_0x2c1810[_0x9aa8d9('0x11d0')][_0x9aa8d9('0xcd2')]&&_0x2c1810[_0x9aa8d9('0x11d0')]['errors']['length']){_0x1908ea['errors']=_0x2c1810[_0x9aa8d9('0x11d0')]['errors']||[{'message':_0x2c1810[_0x9aa8d9('0x94f')](),'type':_0x9aa8d9('0x24cf')}];for(var _0x4bbbb2=0x0;_0x4bbbb2<_0x2c1810[_0x9aa8d9('0x11d0')]['errors'][_0x9aa8d9('0x25ae')];_0x4bbbb2+=0x1){_0x52daf6[_0x9aa8d9('0x8c8')]({'title':_0x2c1810[_0x9aa8d9('0x11d0')]['errors'][_0x4bbbb2][_0x9aa8d9('0x62e')],'msg':_0x2c1810[_0x9aa8d9('0x11d0')][_0x9aa8d9('0xcd2')][_0x4bbbb2][_0x9aa8d9('0x27e8')]});}}else _0x52daf6[_0x9aa8d9('0x8c8')]({'title':_0x2c1810[_0x9aa8d9('0x2833')]?_0x9aa8d9('0x27f2')+_0x2c1810['status']+_0x9aa8d9('0x1b7c')+_0x2c1810[_0x9aa8d9('0x1fd7')]:_0x9aa8d9('0x24cf'),'msg':_0x2c1810[_0x9aa8d9('0x11d0')]?JSON['stringify'](_0x2c1810['data'][_0x9aa8d9('0x27e8')]):_0x2c1810[_0x9aa8d9('0x94f')]()});}};}_0x3c54e6[_0x549db8('0xb2b')](_0x549db8('0x5cd'),function(){var _0x1cdb8c=_0x549db8;for(var _0x4cca79 in _0x1908ea[_0x1cdb8c('0xd8')]){typeof _0x1908ea[_0x1cdb8c('0xd8')][_0x4cca79]!==_0x1cdb8c('0x1143')&&_0x154155({'uniqueid':_0x4cca79});}_0x423188['removeAllListeners'](_0x1cdb8c('0x1ad9')),_0x423188[_0x1cdb8c('0x2121')]('trigger:jscripty'),_0x423188['removeAllListeners'](_0x1cdb8c('0x1ad')),_0x423188[_0x1cdb8c('0x2121')](_0x1cdb8c('0x1cf')),_0x423188[_0x1cdb8c('0x2121')]('notification:save'),_0x423188[_0x1cdb8c('0x2121')](_0x1cdb8c('0x3c0')),_0x423188[_0x1cdb8c('0x2121')](_0x1cdb8c('0x2189')),_0x423188[_0x1cdb8c('0x2121')]('voice_outbound_channel:remove');});}function _0x41d59e(_0x4facd3,_0x3fdd0d,_0x289289,_0x46cc07){var _0x3ecc33=_0xb635d2,_0x43e91d={},_0x3e93ca={},_0x355d9a={},_0x36b0ff={};_0x43e91d['init']=function(){var _0x5cc975=a0_0x5325;_0x43e91d[_0x5cc975('0x26a')]=_0x52b2c8();},_0x43e91d[_0x3ecc33('0x12c5')]=function(_0x367c63){var _0x159c7a=_0x3ecc33;return _0x43e91d['drafts']=_0x52b2c8(),_0x32d445()[_0x159c7a('0xf15')](_0x32d445()[_0x159c7a('0x1b79')](_0x43e91d['drafts']),function(_0x51a03a){var _0x2ec583=_0x159c7a;return _0x51a03a['interaction']&&_0x51a03a[_0x2ec583('0xf6')]['id']===_0x367c63;});},_0x43e91d[_0x3ecc33('0x1154')]=function(_0x333b9d){var _0x1cfaaf=_0x3ecc33;_0x43e91d[_0x1cfaaf('0x26a')]=_0x52b2c8();var _0x1139e1=_0x32d445()[_0x1cfaaf('0xf15')](_0x32d445()[_0x1cfaaf('0x1b79')](_0x43e91d[_0x1cfaaf('0x26a')]),function(_0x2c540f){var _0x31ebb0=_0x1cfaaf;return _0x2c540f[_0x31ebb0('0xf6')]&&_0x2c540f[_0x31ebb0('0xf6')]['id']===_0x333b9d;});_0x1139e1&&(delete _0x43e91d[_0x1cfaaf('0x26a')][_0x1139e1['id']],_0x5e0959());},_0x43e91d[_0x3ecc33('0xaf8')]=function(_0x257c0e){var _0x40decd=_0x3ecc33;_0x43e91d[_0x40decd('0x26a')]=_0x52b2c8();var _0x242f46=_0x3fdd0d['instant'](_0x40decd('0xc59'));if(_0x257c0e[_0x40decd('0xd9a')])_0x242f46=_0x257c0e[_0x40decd('0xd9a')][_0x40decd('0x2566')]||_0x257c0e[_0x40decd('0xd9a')][_0x40decd('0x1211')];else!_0x32d445()[_0x40decd('0x14b4')](_0x257c0e[_0x40decd('0x27e8')][_0x40decd('0x9ec')])&&(_0x242f46=_0x257c0e['message']['subject']);var _0x4f4dc1={'type':_0x40decd('0x1224'),'title':_0x257c0e[_0x40decd('0xe8b')][_0x40decd('0x6e4')]+_0x40decd('0x1b7c')+_0x242f46,'channel':_0x257c0e[_0x40decd('0x4e')],'content':_0x257c0e[_0x40decd('0x27e8')],'account':_0x257c0e[_0x40decd('0xe8b')],'interaction':_0x257c0e[_0x40decd('0xf6')],'id':_0x32d445()['random'](0x2540be400),'openedAt':new Date(),'saved':![]};_0x43e91d[_0x40decd('0x26a')][_0x4f4dc1['id']]=_0x4f4dc1,_0x5e0959();},_0x43e91d[_0x3ecc33('0xa70')]=function(_0x1afb02){var _0x3eedc9=_0x3ecc33;_0x43e91d['drafts']=_0x52b2c8();var _0x143524=_0x43e91d['drafts'][_0x1afb02['id']];_0x143524&&(_0x143524[_0x3eedc9('0xd0')]=_0x1afb02[_0x3eedc9('0x27e8')],_0x43e91d['drafts'][_0x1afb02['id']]=_0x143524,_0x5e0959());},_0x43e91d[_0x3ecc33('0x72a')]=function(_0x4c173f){var _0x1ff3ee=_0x3ecc33;_0x43e91d[_0x1ff3ee('0x26a')]=_0x52b2c8();var _0x69802f=_0x43e91d[_0x1ff3ee('0x26a')][_0x4c173f];_0x69802f&&_0x4facd3[_0x1ff3ee('0xa98')](_0x1ff3ee('0x72a')+_0x32d445()['startCase'](_0x355d9a)+_0x1ff3ee('0xfb'),_0x69802f);},_0x43e91d[_0x3ecc33('0xa8b')]=function(_0x14c35a){var _0x142547=_0x3ecc33;_0x43e91d[_0x142547('0x26a')]=_0x52b2c8(),_0x43e91d[_0x142547('0x26a')][_0x14c35a]&&(delete _0x43e91d[_0x142547('0x26a')][_0x14c35a],_0x5e0959());};function _0x52b2c8(){var _0x4d339d=_0x3ecc33;_0x3e93ca=_0x46cc07['getCurrentUser']();var _0x2582bc=_0x289289['localStorage'][_0x4d339d('0x2208')](_0x4d339d('0x1308')+_0x3e93ca['id']);_0x2582bc?_0x355d9a=JSON['parse'](_0x2582bc)[_0x4d339d('0x169e')]:_0x355d9a=_0x4d339d('0xe6c');_0x36b0ff=_0x289289[_0x4d339d('0x4f9')][_0x4d339d('0x2208')]('motion2.home.'+_0x355d9a+':'+_0x3e93ca['id']);if(_0x36b0ff){var _0x2f5ec9=JSON[_0x4d339d('0x118e')](_0x36b0ff);!_0x2f5ec9[_0x4d339d('0x26a')]&&(_0x2f5ec9['drafts']={}),_0x36b0ff=_0x2f5ec9;}else _0x36b0ff={'drafts':{}};return _0x36b0ff[_0x4d339d('0x26a')];}function _0x5e0959(){var _0x30c255=_0x3ecc33;_0x32d445()[_0x30c255('0x14b4')](_0x43e91d['drafts'])?delete _0x36b0ff[_0x30c255('0x26a')]:_0x36b0ff[_0x30c255('0x26a')]=_0x43e91d[_0x30c255('0x26a')],_0x289289[_0x30c255('0x4f9')][_0x30c255('0x95e')](_0x30c255('0x1fb3')+_0x355d9a+':'+_0x3e93ca['id'],JSON[_0x30c255('0x3ad')](_0x36b0ff));}return _0x43e91d;}function _0xf7cd38(){var _0x4eab11=_0xb635d2,_0xa7d41c={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x27d11a,'$get':['$q',_0x4eab11('0x1a0b'),_0x4eab11('0x2400'),_0x4eab11('0xaa8'),_0x4e636a]};function _0x27d11a(_0x4d1365){var _0x14c5da=_0x4eab11;for(var _0xe62eed in _0x4d1365){typeof _0xa7d41c[_0xe62eed]!==_0x14c5da('0x1143')&&typeof _0x4d1365[_0xe62eed]!==_0x14c5da('0x1143')&&(_0xa7d41c[_0xe62eed]=_0x4d1365[_0xe62eed]);}}function _0x4e636a(_0x4e115a,_0x2cc8ce,_0x52ba2d,_0x5e191a){var _0x485624=_0x4eab11,_0x36d0dd=_0x52ba2d[_0x485624('0xba8')]||_0x52ba2d[_0x485624('0x222d')]||_0x52ba2d[_0x485624('0x22bd')],_0x3b6418={'isSupported':_0xe1208,'currentPermission':_0xa1d86a,'requestPermission':_0x3dbdc5,'show':_0x772b7c,'permissions':{'default':_0x5e191a[_0x485624('0x8ed')],'granted':_0x5e191a[_0x485624('0x1bcd')],'denied':_0x5e191a[_0x485624('0x1697')]}};return _0x3b6418;function _0xe1208(){var _0x1b8c16=_0x485624;return!(typeof _0x36d0dd===_0x1b8c16('0x1143'));}function _0xa1d86a(){var _0x1cbfad=_0x485624;return(_0x36d0dd||{})[_0x1cbfad('0x20fa')];}function _0x3dbdc5(){var _0x3b719a=_0x485624;if(!_0xe1208())return _0x4e115a[_0x3b719a('0x1337')](_0x3b719a('0x2388'));var _0x4a23bf=_0x4e115a['defer']();return Promise['resolve'](_0x36d0dd['requestPermission'])==_0x36d0dd['requestPermission']?_0x36d0dd[_0x3b719a('0xbff')]()['then'](function(_0x2fffee){var _0x24a23f=_0x3b719a;_0x5e191a['GRANTED']===_0x2fffee?_0x4a23bf[_0x24a23f('0xcd6')](_0x2fffee):_0x4a23bf[_0x24a23f('0x1337')](_0x2fffee);}):_0x36d0dd[_0x3b719a('0xbff')](function(_0x513d14){var _0x522276=_0x3b719a;_0x5e191a[_0x522276('0x1bcd')]===_0x513d14?_0x4a23bf['resolve'](_0x513d14):_0x4a23bf['reject'](_0x513d14);}),_0x4a23bf['promise'];}function _0x772b7c(_0x5aac46,_0x1e9698){var _0x4113db=_0x485624;_0x1e9698=_0x1e9698||{};if(!_0xe1208()||!_0x227f65(_0x5aac46,_0x1e9698)||_0x242134(_0x1e9698[_0x4113db('0x135f')])||_0xa1d86a()!==_0x5e191a[_0x4113db('0x1bcd')])return;var _0x20aeb3=new _0x36d0dd(_0x5aac46,_0x1e9698),_0x2b79cf=_0x1e9698['duration']||_0xa7d41c[_0x4113db('0xf6a')],_0x3d8b2a=_0x1e9698['autoClose']===undefined?_0xa7d41c[_0x4113db('0x21e0')]:_0x1e9698[_0x4113db('0x21e0')];_0x20aeb3[_0x4113db('0x10b3')]=function(){var _0x4c6f49=_0x4113db;_0x1e9698[_0x4c6f49('0x1c1e')]&&_0x1e9698[_0x4c6f49('0x1c1e')](),_0x1e9698[_0x4c6f49('0x11d6')]&&window[_0x4c6f49('0x24fe')](),_0x1e9698['closeOnClick']&&_0x20aeb3[_0x4c6f49('0x1886')]();};if(_0x3d8b2a)_0x5f4817(_0x20aeb3,_0x2b79cf);return _0x20aeb3;}function _0x227f65(_0x23ece6,_0x329f9f){var _0x1879e2=_0x485624,_0x396d13=angular['isString'](_0x23ece6),_0x1f0f2b=!_0x329f9f[_0x1879e2('0x1c1e')]||angular[_0x1879e2('0xfeb')](_0x329f9f[_0x1879e2('0x1c1e')]);return _0x396d13&&_0x1f0f2b;}function _0x242134(_0x3b89dd){var _0x53b7fe=_0x485624;if(!_0x3b89dd&&!_0xa7d41c[_0x53b7fe('0x135f')])return;return!(window[_0x53b7fe('0x18fa')][_0x53b7fe('0x1c21')]||window['document']['mozHidden']||window[_0x53b7fe('0x18fa')][_0x53b7fe('0xb12')]);}function _0x5f4817(_0x4e296d,_0x333a93){var _0x1af433=_0x485624,_0x174932=_0x333a93*0x3e8;_0x2cc8ce(_0x4e296d[_0x1af433('0x1886')][_0x1af433('0x235b')](_0x4e296d),_0x174932,![]);}}}function _0x6991d0(){var _0x491f82=_0xb635d2,_0x5979c1=angular[_0x491f82('0x282c')](['ng'])[_0x491f82('0x22d5')]('$log'),_0xd10f04=[],_0x24656a=this;_0x24656a[_0x491f82('0x1384')]=_0x1a72ec,_0x24656a[_0x491f82('0xc32')]=_0x5e6938;function _0x1a72ec(_0x2cc46c,_0x44c6ec){var _0x44051b=_0x491f82;if(!angular[_0x44051b('0x1aa9')](_0x2cc46c)){_0x5979c1['error']('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}var _0x350554=_0x2cc46c[_0x44051b('0x1745')]('.'),_0x244244=_0x350554[_0x350554[_0x44051b('0x25ae')]-0x1],_0x51f615=_0x8057c4(_0x350554),_0x52ce11=![];for(var _0x419adb=0x0;_0x419adb<_0x51f615[_0x44051b('0x25ae')];_0x419adb++){if(_0x51f615[_0x419adb][_0x44051b('0x1e03')]===_0x244244){_0x52ce11=_0x51f615[_0x419adb];break;}}_0x52ce11?(angular[_0x44051b('0x2bb')](_0x52ce11,_0x44c6ec),_0x52ce11['uisref']=_0x45bed0(_0x52ce11)):(_0x44c6ec[_0x44051b('0x1977')]=[],(angular[_0x44051b('0xda8')](_0x44c6ec[_0x44051b('0x1396')])||!angular[_0x44051b('0x1b99')](_0x44c6ec[_0x44051b('0x1396')]))&&(_0x44c6ec[_0x44051b('0x1396')]=0x1),_0x44c6ec[_0x44051b('0x1e03')]=_0x244244,_0x44c6ec[_0x44051b('0x983')]=_0x2cc46c,_0x44c6ec[_0x44051b('0x1da1')]=_0x45bed0(_0x44c6ec),_0x51f615[_0x44051b('0xb76')](_0x44c6ec));}function _0x5e6938(_0x2e3fc8){var _0x20a3bd=_0x491f82;if(!angular[_0x20a3bd('0x1aa9')](_0x2e3fc8)){_0x5979c1[_0x20a3bd('0x8c8')](_0x20a3bd('0xe8d'));return;}var _0x4865dd=_0xd10f04,_0x59002a=_0x2e3fc8['split']('.');for(var _0xacff01=0x0;_0xacff01<_0x59002a[_0x20a3bd('0x25ae')];_0xacff01++){var _0x378052=_0x59002a[_0xacff01];for(var _0x1290c1=0x0;_0x1290c1<_0x4865dd[_0x20a3bd('0x25ae')];_0x1290c1++){if(_0x4865dd[_0x1290c1]['_id']===_0x378052){if(_0x4865dd[_0x1290c1][_0x20a3bd('0x983')]===_0x2e3fc8)return _0x4865dd[_0x20a3bd('0x1c8e')](_0x1290c1,0x1),!![];_0x4865dd=_0x4865dd[_0x1290c1][_0x20a3bd('0x1977')];break;}}}return![];}function _0x8057c4(_0x2328d8){var _0x39f338=_0x491f82,_0x28fac7=_0xd10f04;if(_0x2328d8[_0x39f338('0x25ae')]===0x1)return _0x28fac7;_0x2328d8['pop']();for(var _0x5a5e92=0x0;_0x5a5e92<_0x2328d8[_0x39f338('0x25ae')];_0x5a5e92++){var _0x17c063=_0x2328d8[_0x5a5e92],_0xb55ca5=!![];for(var _0x1c8043=0x0;_0x1c8043<_0x28fac7['length'];_0x1c8043++){if(_0x28fac7[_0x1c8043]['_id']===_0x17c063){_0x28fac7=_0x28fac7[_0x1c8043]['children'],_0xb55ca5=![];break;}}if(_0xb55ca5){var _0x32758b={'_id':_0x17c063,'_path':_0x2328d8[_0x39f338('0x1537')]('.'),'title':_0x17c063,'weight':0x1,'children':[]};_0x28fac7[_0x39f338('0xb76')](_0x32758b),_0x28fac7=_0x32758b['children'];}}return _0x28fac7;}function _0x45bed0(_0x5c5fc4){var _0x4b8564=_0x491f82,_0x18af38='';return angular[_0x4b8564('0x1d95')](_0x5c5fc4[_0x4b8564('0x1d72')])&&(_0x18af38=_0x5c5fc4['state'],angular['isDefined'](_0x5c5fc4[_0x4b8564('0x1c6d')])&&angular[_0x4b8564('0x1aed')](_0x5c5fc4[_0x4b8564('0x1c6d')])&&(_0x18af38=_0x18af38+'('+angular[_0x4b8564('0x1a33')](_0x5c5fc4[_0x4b8564('0x1c6d')])+')')),_0x18af38;}this[_0x491f82('0x436')]=function(){var _0x5491fb={'saveItem':_0x1a72ec,'getNavigation':_0xc7f78};return _0x5491fb;function _0xc7f78(_0x7396a4){var _0x37c862=a0_0x5325;if(_0x7396a4){for(var _0xbd913=0x0;_0xbd913<_0xd10f04[_0x37c862('0x25ae')];_0xbd913++){if(_0xd10f04[_0xbd913]['_id']===_0x7396a4)return[_0xd10f04[_0xbd913]];}return null;}return _0xd10f04;}};}var _0x19cf5a={'DEFAULT':'default','GRANTED':'granted','DENIED':'denied'};_0x1d7448[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc')];function _0x1d7448(_0xbe8226){var _0x2212cf=_0xb635d2,_0x2ed412=this;_0x2ed412['setting']={},_0x2ed412[_0x2212cf('0x1335')]={'count':0x0,'rows':[]},_0x2ed412['showInteraction']=![];function _0x202bbc(_0x2fb441,_0xb98ecf){var _0x3c2acd=_0x2212cf;_0x2ed412[_0x3c2acd('0x22f1')]=_0xb98ecf,_0x2ed412[_0x3c2acd('0x435')]=_0x2fb441,_0x2ed412[_0x3c2acd('0x435')][_0x3c2acd('0x15b9')]=!![];if(_0x2ed412[_0x3c2acd('0x435')]&&_0x2ed412['tab'][_0x3c2acd('0x11d0')]&&_0x2ed412[_0x3c2acd('0x435')][_0x3c2acd('0x11d0')][_0x3c2acd('0x1a6c')])return _0xbe8226[_0x3c2acd('0x1f78')][_0x3c2acd('0x22d5')]({'uniqueid':_0x2ed412['tab'][_0x3c2acd('0x11d0')][_0x3c2acd('0x1a6c')]})[_0x3c2acd('0xe59')]['then'](function(_0x1c25a8){_0x2ed412['messages']=_0x1c25a8;})[_0x3c2acd('0x23')](function(){var _0x2993cd=_0x3c2acd;_0x2ed412[_0x2993cd('0xd20')]=!![];});else _0x2ed412[_0x3c2acd('0xd20')]=!![];}function _0x24a842(_0x4609c0){var _0x180aed=_0x2212cf;switch(_0x2ed412['setting'][_0x180aed('0x621')]){case _0x180aed('0xe4c'):if(_0x4609c0[_0x180aed('0x1338')]=='in')return _0x4609c0['direction'];return _0x180aed('0x15e0');case _0x180aed('0xf7c'):if(_0x4609c0[_0x180aed('0x1338')]=='in')return _0x180aed('0x119a');return _0x4609c0[_0x180aed('0x1338')];default:return _0x4609c0[_0x180aed('0x1338')];}}_0x2ed412['init']=_0x202bbc,_0x2ed412[_0x2212cf('0x14ad')]=_0x24a842;}const _0x159060=_0x1d7448,_0x189c18=_0x59426a['p']+'src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog-[chunkhash].html',_0x548c5c=_0x59426a['p']+_0xb635d2('0x1d0'),_0x806bb5=_0x59426a['p']+_0xb635d2('0x11fe'),_0x4d4a24=_0x59426a['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog-[chunkhash].html',_0x518a61=_0x59426a['p']+_0xb635d2('0xcc9'),_0x32462e=_0x59426a['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html/dialog-[chunkhash].html',_0x2496d8=_0x59426a['p']+_0xb635d2('0x3b5'),_0x57724a=_0x59426a['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.html/dialog-[chunkhash].html';_0x62fde[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x63c'),'$q','api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),'$translate',_0xb635d2('0x1563')];var _0x3e33f7={'fax':_0x4d4a24,'mail':_0x518a61,'openchannel':_0x32462e,'sms':_0x2496d8,'whatsapp':_0x57724a};function _0x62fde(_0x202cb6,_0xff9f99,_0x26731a,_0x256556,_0x510b26,_0x7b20f9,_0x1e564f,_0x17b8e6,_0x1c0b5a,_0x217690){var _0x5ded2a=_0xb635d2,_0x27737a=this;_0x27737a[_0x5ded2a('0x10c6')]=_0x17b8e6[_0x5ded2a('0x1ef8')](),_0x27737a[_0x5ded2a('0x1e2a')]=_0x217690[_0x5ded2a('0x1e2a')](),_0x27737a[_0x5ded2a('0x2034')]=[],_0x27737a[_0x5ded2a('0x2565')]={'fields':_0x5ded2a('0xf47'),'sort':_0x5ded2a('0x7e8'),'limit':0xa,'page':0x1},_0x27737a[_0x5ded2a('0x190d')]={'fields':'uniqueid,calleridnum,statedesc,starttime,disposition,secondDisposition,thirdDisposition','sort':_0x5ded2a('0x7e8'),'limit':0xa,'page':0x1},_0x27737a[_0x5ded2a('0x73f')]={'fields':_0x5ded2a('0x281b'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x27737a[_0x5ded2a('0x26d1')]={'rows':[],'count':0x0},_0x27737a[_0x5ded2a('0x91d')]={'rows':[],'count':0x0},_0x27737a[_0x5ded2a('0x169d')]={'rows':[],'count':0x0},_0x27737a[_0x5ded2a('0x349')]=new Date(_0x4ddcaa()()['startOf'](_0x5ded2a('0x211c'))[_0x5ded2a('0x19ed')](0x1,'seconds')[_0x5ded2a('0x1e9e')](0x0,!![])[_0x5ded2a('0x5e5')]()),_0x27737a[_0x5ded2a('0x1955')]=new Date(_0x4ddcaa()()['endOf'](_0x5ded2a('0x211c'))[_0x5ded2a('0x19ed')](0x1,_0x5ded2a('0x2103'))[_0x5ded2a('0x1e9e')](0x0,!![])[_0x5ded2a('0x5e5')]()),_0x27737a[_0x5ded2a('0x719')]=_0x25ae55,_0x27737a['saveContact']=_0x4cd36b,_0x27737a[_0x5ded2a('0xbef')]=_0x3485c5,_0x27737a[_0x5ded2a('0x20c4')]=_0x256556[_0x5ded2a('0x5cf')]['vm'][_0x5ded2a('0x20c4')],_0x27737a[_0x5ded2a('0x2657')]=_0x3dd632,_0x27737a[_0x5ded2a('0x2202')]=_0x24ed55,_0x27737a[_0x5ded2a('0x87c')]=_0x1cdf94,_0x27737a[_0x5ded2a('0x2635')]=_0xf06a73,_0x27737a['addJscriptyTab']=_0x62ce7c,_0x27737a[_0x5ded2a('0x2018')]=_0x3cd624,_0x27737a[_0x5ded2a('0x14f7')]=_0x5e9f8e,_0x27737a[_0x5ded2a('0x7f2')]=_0x4bf018,_0x27737a['getJscriptyProjects']=_0x510a39,_0x27737a[_0x5ded2a('0x1cd2')]=_0x28ff2a,_0x27737a[_0x5ded2a('0x281e')]=_0x262607,_0x27737a['getSmsAccounts']=_0x43671d,_0x27737a['getWhatsappAccounts']=_0x50d471,_0x27737a[_0x5ded2a('0x1449')]=_0x46c259,_0x27737a[_0x5ded2a('0x18a5')]=_0x164c0d,_0x27737a['getLists']=_0x3f1f84,_0x27737a[_0x5ded2a('0x199a')]=_0x26b2f8,_0x27737a[_0x5ded2a('0x15f9')]=_0x1dc947,_0x27737a['hasPermission']=_0x4b1152,_0x27737a[_0x5ded2a('0x16cf')]=_0x818617,_0x27737a[_0x5ded2a('0x1556')]=_0x1252a6,_0x27737a['isMyAccount']=_0x124c95,_0x27737a['getJscriptyProjects']();function _0x124c95(_0x438fc6){var _0x34e23b=_0x5ded2a;if(_0x438fc6[_0x34e23b('0xef3')])return _0x32d445()['includes'](_0x32d445()[_0x34e23b('0x65a')](_0x27737a[_0x34e23b('0x1a77')]?_0x27737a[_0x34e23b('0x1a77')][_0x34e23b('0x16a7')]:[],'id'),_0x438fc6[_0x34e23b('0xef3')]);else{if(_0x438fc6[_0x34e23b('0xf26')])return _0x32d445()[_0x34e23b('0x1c43')](_0x32d445()[_0x34e23b('0x65a')](_0x27737a['openchannelAccounts']?_0x27737a[_0x34e23b('0x86e')]['rows']:[],'id'),_0x438fc6[_0x34e23b('0xf26')]);else{if(_0x438fc6[_0x34e23b('0x26a9')])return _0x32d445()[_0x34e23b('0x1c43')](_0x32d445()[_0x34e23b('0x65a')](_0x27737a['smsAccounts']?_0x27737a[_0x34e23b('0x25db')][_0x34e23b('0x16a7')]:[],'id'),_0x438fc6['SmsAccountId']);else{if(_0x438fc6[_0x34e23b('0x220b')])return _0x32d445()[_0x34e23b('0x1c43')](_0x32d445()[_0x34e23b('0x65a')](_0x27737a['whatsappAccounts']?_0x27737a[_0x34e23b('0x14cf')][_0x34e23b('0x16a7')]:[],'id'),_0x438fc6['WhatsappAccountId']);else{if(_0x438fc6['MailAccountId'])return _0x32d445()['includes'](_0x32d445()[_0x34e23b('0x65a')](_0x27737a[_0x34e23b('0x248b')]?_0x27737a[_0x34e23b('0x248b')]['rows']:[],'id'),_0x438fc6['MailAccountId']);else{if(_0x438fc6[_0x34e23b('0x365')])return _0x32d445()['includes'](_0x32d445()[_0x34e23b('0x65a')](_0x27737a[_0x34e23b('0x607')]?_0x27737a['chatAccounts'][_0x34e23b('0x16a7')]:[],'id'),_0x438fc6[_0x34e23b('0x365')]);else{if(_0x438fc6[_0x34e23b('0x1f87')])return!![];}}}}}}return![];}function _0x818617(_0x11db17,_0x2ef69a){var _0x1ff1bb=_0x5ded2a;try{if(_0x2ef69a[_0x1ff1bb('0xa20')])return _0x256556['$parent'][_0x1ff1bb('0x5cf')][_0x1ff1bb('0x5cf')]['vm'][_0x1ff1bb('0xa31')](_0x1ff1bb('0x26bf'),_0x2ef69a);else{if(_0x2ef69a['ChatWebsiteId'])return _0x256556[_0x1ff1bb('0x5cf')][_0x1ff1bb('0x5cf')][_0x1ff1bb('0x5cf')]['vm'][_0x1ff1bb('0xa31')](_0x1ff1bb('0x17cc'),_0x2ef69a);else{if(_0x2ef69a[_0x1ff1bb('0x26a9')])return _0x256556[_0x1ff1bb('0x5cf')][_0x1ff1bb('0x5cf')][_0x1ff1bb('0x5cf')]['vm']['addInteractionTab']('sms',_0x2ef69a);else{if(_0x2ef69a[_0x1ff1bb('0x220b')])return _0x256556[_0x1ff1bb('0x5cf')]['$parent'][_0x1ff1bb('0x5cf')]['vm'][_0x1ff1bb('0xa31')](_0x1ff1bb('0x4b7'),_0x2ef69a);else{if(_0x2ef69a['OpenchannelAccountId'])return _0x256556[_0x1ff1bb('0x5cf')]['$parent'][_0x1ff1bb('0x5cf')]['vm'][_0x1ff1bb('0xa31')](_0x1ff1bb('0xaf2'),_0x2ef69a);else{if(_0x2ef69a[_0x1ff1bb('0xef3')])return _0x256556[_0x1ff1bb('0x5cf')][_0x1ff1bb('0x5cf')]['$parent']['vm'][_0x1ff1bb('0xa31')]('fax',_0x2ef69a);}}}}}}catch(_0x153fe6){_0x1e564f[_0x1ff1bb('0x8c8')]({'title':_0x1ff1bb('0x7b5'),'msg':_0x1ff1bb('0x3ed')});}}function _0x3bbcb5(_0x4898a6){var _0x22aa52=_0x5ded2a;if(!_0x4898a6[_0x22aa52('0x2506')])return'('+_0x1c0b5a[_0x22aa52('0x2159')]('DASHBOARDS.NO_DISPOSITION_SET')+')';var _0x588364=_0x32d445()[_0x22aa52('0x289b')]([_0x4898a6[_0x22aa52('0x2506')],_0x4898a6[_0x22aa52('0xa43')],_0x4898a6[_0x22aa52('0x1b01')]]);return'('+_0x588364[_0x22aa52('0x1537')](_0x22aa52('0x1b7c'))+')';}function _0x3eb2fa(_0x4fa63f){var _0x375d1f=_0x5ded2a;_0x4fa63f&&_0x4fa63f[_0x375d1f('0x148b')]&&_0x4fa63f[_0x375d1f('0x16a7')][_0x375d1f('0x25ae')]&&(_0x27737a[_0x375d1f('0x2034')]=_0x32d445()['concat'](_0x27737a[_0x375d1f('0x2034')],_0x4fa63f[_0x375d1f('0x16a7')]),_0x27737a[_0x375d1f('0x2034')][_0x375d1f('0x1d7e')](function(_0x55a499){var _0x5df761=_0x375d1f;_0x55a499[_0x5df761('0x1b11')]=_0x3bbcb5(_0x55a499);}));}function _0x2e4c22(_0x6dd9ef){var _0x1ca742=_0x5ded2a,_0x35594a=[_0x1ca742('0x26bf'),'chat',_0x1ca742('0x2801'),'openchannel',_0x1ca742('0x625'),'whatsapp'];if(_0x6dd9ef&&_0x6dd9ef['id']){for(var _0x281eb4=0x0;_0x281eb4<_0x35594a[_0x1ca742('0x25ae')];_0x281eb4++){_0x7b20f9[_0x35594a[_0x281eb4]+'Interaction'][_0x1ca742('0x22d5')]({'ContactId':_0x6dd9ef['id'],'journey':!![],'includeAll':!![]})[_0x1ca742('0xe59')][_0x1ca742('0xe19')](_0x3eb2fa);}_0x7b20f9[_0x1ca742('0x496')]['get']({'ContactId':_0x6dd9ef['id'],'includeAll':!![]})['$promise'][_0x1ca742('0xe19')](_0x3eb2fa)['catch'](function(_0x255a6f){var _0x196379=_0x1ca742;console[_0x196379('0x8c8')](_0x255a6f);});}}function _0xa8da9a(_0x3543ba){var _0x225e62=_0x5ded2a;switch(_0x3543ba){case _0x225e62('0x17cc'):return _0x225e62('0x26ee');case'mail':return'teal';case _0x225e62('0x2801'):return _0x225e62('0x16c3');case _0x225e62('0xaf2'):return'amber-A200';case'fax':return'blue-grey-A200';case _0x225e62('0x4b7'):return'lime-A700';default:return _0x225e62('0x1a54');}}function _0x1252a6(_0x43e321){var _0x2b6d20=_0x5ded2a,_0x21727f='';if(_0x43e321['FaxAccountId'])_0x21727f=_0x2b6d20('0x625');else{if(_0x43e321['OpenchannelAccountId'])_0x21727f=_0x2b6d20('0xaf2');else{if(_0x43e321[_0x2b6d20('0x26a9')])_0x21727f=_0x2b6d20('0x2801');else{if(_0x43e321['WhatsappAccountId'])_0x21727f='whatsapp';else{if(_0x43e321[_0x2b6d20('0xa20')])_0x21727f='mail';else{if(_0x43e321[_0x2b6d20('0x365')])_0x21727f=_0x2b6d20('0x17cc');else _0x43e321[_0x2b6d20('0x1f87')]&&(_0x21727f='voice');}}}}}return _0xa8da9a(_0x21727f);}function _0x1dc947(_0x584b0d,_0x21752d){var _0x450c98=_0x5ded2a;return _0x27737a[_0x450c98('0x435')]=_0x584b0d,_0x256556['$watchGroup']([_0x450c98('0x216c'),_0x450c98('0x448')],function(_0x10d019){var _0x300a2f=_0x450c98;_0x27737a[_0x300a2f('0x435')][_0x300a2f('0x15b9')]=_0x10d019[0x0]&&_0x10d019[0x1];}),_0x27737a['license']=_0x21752d,_0x27737a[_0x450c98('0xd9a')]=_0x27737a[_0x450c98('0x435')][_0x450c98('0xd9a')],_0x27737a[_0x450c98('0x285')]=![],_0x27737a[_0x450c98('0x14a2')]=0x0,_0x7b20f9['user'][_0x450c98('0x22d5')]({'fields':'id,fullname','nolimit':!![]})[_0x450c98('0xe59')][_0x450c98('0xe19')](function(_0x187968){var _0x15e217=_0x450c98;_0x27737a[_0x15e217('0x2526')]=_0x187968||{'count':0x0,'rows':[]},_0x27737a['usersMap']=_0x32d445()[_0x15e217('0x2483')](_0x32d445()[_0x15e217('0x226f')](_0x27737a[_0x15e217('0x2526')]['rows'],'id'),_0x15e217('0xe11'));return;})[_0x450c98('0xe19')](function(){var _0x1b95f6=_0x450c98,_0x32d041=[],_0x4d10cb=function _0x25aad5(_0x13bb89){var _0x5a8b96=a0_0x5325,_0x3312d8=_0x27737a[_0x5a8b96('0x435')][_0x5a8b96('0x13c7')][_0x13bb89];_0x32d041[_0x5a8b96('0xb76')](_0x7b20f9[_0x5a8b96('0x496')][_0x5a8b96('0x22d5')]({'uniqueid':_0x3312d8[_0x5a8b96('0x1a6c')]})['$promise'][_0x5a8b96('0xe19')](function(_0x4e70c2){var _0x498526=_0x5a8b96;_0x4e70c2&&_0x4e70c2[_0x498526('0x16a7')][_0x498526('0x25ae')]>0x0&&(_0x3312d8[_0x498526('0x17e7')]=_0x32d445()[_0x498526('0x2325')](_0x4e70c2[_0x498526('0x16a7')])['endtime']);return;}));};for(var _0x170621=0x0;_0x170621<_0x27737a['tab'][_0x1b95f6('0x13c7')]['length'];_0x170621++){_0x4d10cb(_0x170621);}return _0x510b26[_0x1b95f6('0xf0e')](_0x32d041);})[_0x450c98('0xe19')](function(){var _0xc12566=_0x450c98;if(_0x27737a[_0xc12566('0xd9a')]&&_0x27737a[_0xc12566('0xd9a')]['id']){var _0x911125={'id':_0x27737a['contact']['id'],'ListId':_0x27737a[_0xc12566('0xd9a')]['ListId'],'limit':0x1,'offset':0x0,'sort':'-updatedAt'};return _0x7b20f9[_0xc12566('0x1711')]['get'](_0x911125)['$promise'][_0xc12566('0xe19')](function(_0x216586){var _0x5a3f9b=_0xc12566;return _0x27737a[_0x5a3f9b('0xd9a')]=_0x216586,_0x27737a[_0x5a3f9b('0x435')][_0x5a3f9b('0xd9a')]=_0x216586,_0x7b20f9['user'][_0x5a3f9b('0x222a')]({'id':_0x27737a[_0x5a3f9b('0x10c6')]['id'],'ids':[_0x27737a[_0x5a3f9b('0xd9a')]['id']]});})['then'](function(){var _0x1eb135=_0xc12566;if(_0x27737a[_0x1eb135('0xd9a')][_0x1eb135('0x2463')])return _0x7b20f9[_0x1eb135('0x2506')][_0x1eb135('0x22d5')]({'ListId':_0x27737a['contact'][_0x1eb135('0x2463')]})[_0x1eb135('0xe59')][_0x1eb135('0xe19')](function(_0x99f225){var _0x4bc9e7=_0x1eb135;return _0x27737a[_0x4bc9e7('0x435')][_0x4bc9e7('0x24eb')]=_0x99f225,_0x7b20f9[_0x4bc9e7('0x1bbd')][_0x4bc9e7('0xbef')]({'id':_0x27737a['contact']['ListId']})[_0x4bc9e7('0xe59')];})[_0x1eb135('0xe19')](function(_0x593d50){var _0x55229e=_0x1eb135;_0x27737a[_0x55229e('0x435')][_0x55229e('0x6f2')]=_0x593d50;return;});return;})[_0xc12566('0xe19')](function(){var _0x5beef5=_0xc12566;try{_0x27737a[_0x5beef5('0x435')]['userLists']=_0x256556[_0x5beef5('0x5cf')]['$parent']['$parent']['vm'][_0x5beef5('0x1944')],_0x27737a['tab'][_0x5beef5('0x9f8')]=_0x256556[_0x5beef5('0x5cf')]['$parent'][_0x5beef5('0x5cf')]['vm'][_0x5beef5('0x1152')],_0x27737a[_0x5beef5('0x435')][_0x5beef5('0xcca')]=_0x256556['$parent'][_0x5beef5('0x5cf')][_0x5beef5('0x5cf')]['vm'][_0x5beef5('0x474')],_0x27737a[_0x5beef5('0x435')]['tags']=_0x256556['$parent'][_0x5beef5('0x5cf')]['$parent']['vm'][_0x5beef5('0xbfb')],_0x27737a[_0x5beef5('0x435')][_0x5beef5('0x1a8a')]=0x0,_0x27737a['contact'][_0x5beef5('0x2463')]&&(_0x27737a[_0x5beef5('0x435')][_0x5beef5('0x26d0')][_0x5beef5('0x16a7')]=_0x32d445()[_0x5beef5('0x2535')](_0x27737a[_0x5beef5('0x435')][_0x5beef5('0x26d0')]['rows'],_0x32d445()['filter'](_0x27737a['tab'][_0x5beef5('0x9f8')]['rows'],{'id':_0x27737a[_0x5beef5('0xd9a')][_0x5beef5('0x2463')]}),'id'),_0x27737a['list']=_0x32d445()['find'](_0x27737a[_0x5beef5('0x435')][_0x5beef5('0x26d0')][_0x5beef5('0x16a7')],{'id':_0x27737a[_0x5beef5('0xd9a')]['ListId']}));}catch(_0x552877){}_0x27737a[_0x5beef5('0x2018')](),_0x27737a['getFinals'](),_0x27737a[_0x5beef5('0x7f2')](),_0x27737a['getMailAccounts'](),_0x27737a[_0x5beef5('0x281e')](),_0x27737a[_0x5beef5('0x1847')](),_0x27737a['getWhatsappAccounts'](),_0x27737a[_0x5beef5('0x1449')](),_0x27737a[_0x5beef5('0x18a5')](),_0x27737a[_0x5beef5('0x1feb')]();return;})[_0xc12566('0xe19')](function(){var _0x5991c5=_0xc12566;return _0x7b20f9[_0x5991c5('0x1711')]['getTags']({'id':_0x27737a['contact']['id']})[_0x5991c5('0xe59')]['then'](function(_0x2cdf4f){var _0x1aa907=_0x5991c5;_0x27737a[_0x1aa907('0x435')][_0x1aa907('0x1e7b')]=_0x32d445()['map'](_0x2cdf4f[_0x1aa907('0x16a7')],'id');return;});});}else{_0x27737a[_0xc12566('0x285')]=!![];if(_0x584b0d['autoCreate'])return console[_0xc12566('0x1fe9')](_0xc12566('0x1a8a')),_0x27737a[_0xc12566('0x719')]();return;}})['then'](_0x2e4c22(_0x27737a[_0x450c98('0xd9a')]));}function _0x26b2f8(_0x2f2ede,_0x38d2ac,_0x2e36e7,_0xb5cf5b){var _0x27b979=_0x5ded2a,_0x5845b6=_0x38d2ac['toLowerCase']();_0x202cb6[_0x27b979('0x26b2')]({'controller':_0x27b979('0xb43')+_0x38d2ac+'InteractionDialogController','controllerAs':'vm','templateUrl':_0x3e33f7[_0x5845b6],'parent':angular[_0x27b979('0x24a1')](_0xff9f99[_0x27b979('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x2e36e7,'message':{'to':_0x5845b6==_0x27b979('0x26bf')?_0xb5cf5b:_0xb5cf5b[_0x27b979('0x1745')](',')},'type':_0x27b979('0x4ad'),'interaction':{'Contact':_0x27737a[_0x27b979('0xd9a')]}},'fullscreen':!![]})[_0x27b979('0xe19')](function(_0x27a7b5){var _0x1e6d7d=_0x27b979;return _0x7b20f9[_0x5845b6+_0x1e6d7d('0x1e4e')][_0x1e6d7d('0x1ee')]({'id':_0x2e36e7['id']},_0x27a7b5)[_0x1e6d7d('0xe59')][_0x1e6d7d('0xe19')](function(_0x33dbd9){var _0x4607b3=_0x1e6d7d;if(_0x38d2ac===_0x4607b3('0xc4b')){var _0x283121=_0x33dbd9;if(_0x283121&&_0x283121['Messages']&&_0x283121['Messages'][_0x4607b3('0x25ae')]){if(_0x27a7b5[_0x4607b3('0x20f')]&&_0x27a7b5[_0x4607b3('0x20f')][_0x4607b3('0x25ae')])for(var _0x11bf57=0x0;_0x11bf57<_0x27a7b5['attachments']['length'];_0x11bf57+=0x1){_0x7b20f9[_0x4607b3('0x1a47')][_0x4607b3('0xa70')]({'id':_0x27a7b5['attachments'][_0x11bf57]['id']},{'MailMessageId':_0x32d445()[_0x4607b3('0xb6c')](_0x283121['Messages'])['id']});}_0x1e564f['success']({'title':_0x4607b3('0x1c0d'),'msg':_0x4607b3('0x2714')});if(_0x283121[_0x4607b3('0x1835')]){_0x283121[_0x4607b3('0x2506')]=null;var _0x4ab4ae=!_0x2e36e7[_0x4607b3('0x1dc8')],_0x42f004=_0x27737a[_0x4607b3('0x10c6')][_0x4607b3('0x1b8d')]||_0x27737a['user'][_0x4607b3('0x1b15')]||_0x27737a[_0x4607b3('0x10c6')][_0x4607b3('0x2531')]||_0x27737a[_0x4607b3('0x10c6')]['openchannelPause']||_0x27737a[_0x4607b3('0x10c6')][_0x4607b3('0x2299')];_0x202cb6['show']({'controller':_0x4607b3('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular['element'](_0xff9f99['body']),'onRemoving':function _0x183087(){var _0x4a8647=_0x4607b3;_0x27737a['user']&&_0x2e36e7[_0x4a8647('0x1dc8')]&&!_0x42f004&&_0x7b20f9[_0x4a8647('0x10c6')]['unpause']({'id':_0x27737a[_0x4a8647('0x10c6')]['id']})[_0x4a8647('0xe59')][_0x4a8647('0x223b')](function(_0x534c15){console['error'](_0x534c15);});},'clickOutsideToClose':_0x4ab4ae,'escapeToClose':_0x4ab4ae,'locals':{'user':_0x27737a[_0x4607b3('0x10c6')],'channel':_0x4607b3('0x26bf'),'interaction':_0x283121}});}else _0x256556[_0x4607b3('0x5cf')]['vm']['addInteractionTab'](_0x4607b3('0x26bf'),_0x283121);}}else _0x1e564f[_0x4607b3('0x425')]({'title':_0x4607b3('0x1c0d'),'msg':_0x4607b3('0x2714')}),_0x256556[_0x4607b3('0x5cf')]['vm'][_0x4607b3('0xa31')](_0x5845b6,_0x33dbd9);})['catch'](function(_0x12d026){var _0x27a2ec=_0x1e6d7d;if(_0x12d026[_0x27a2ec('0x11d0')]&&_0x12d026[_0x27a2ec('0x11d0')][_0x27a2ec('0xcd2')]&&_0x12d026['data'][_0x27a2ec('0xcd2')][_0x27a2ec('0x25ae')])for(var _0x4f669f=0x0;_0x4f669f<_0x12d026[_0x27a2ec('0x11d0')]['errors'][_0x27a2ec('0x25ae')];_0x4f669f+=0x1){_0x1e564f[_0x27a2ec('0x8c8')]({'title':_0x12d026[_0x27a2ec('0x11d0')][_0x27a2ec('0xcd2')][_0x4f669f][_0x27a2ec('0x62e')],'msg':_0x12d026['data']['errors'][_0x4f669f][_0x27a2ec('0x27e8')]});}else _0x5845b6===_0x27a2ec('0x625')?_0x1e564f[_0x27a2ec('0x8c8')]({'title':_0x27a2ec('0x5a1'),'msg':_0x12d026['data']?JSON[_0x27a2ec('0x3ad')](_0x12d026['data']):_0x12d026['message']||_0x12d026[_0x27a2ec('0x94f')]()}):_0x1e564f[_0x27a2ec('0x8c8')]({'title':_0x12d026[_0x27a2ec('0x2833')]?_0x27a2ec('0x27f2')+_0x12d026['status']+'\x20-\x20'+_0x12d026[_0x27a2ec('0x1fd7')]:_0x38d2ac[_0x27a2ec('0x25f7')]()+_0x27a2ec('0x856'),'msg':_0x12d026['data']?JSON['stringify'](_0x12d026[_0x27a2ec('0x11d0')]['message']):_0x12d026[_0x27a2ec('0x27e8')]||_0x12d026['toString']()});});});}function _0x25ae55(){var _0x50fd41=_0x5ded2a;_0x27737a['errors']=[],_0x7b20f9[_0x50fd41('0x1711')][_0x50fd41('0xe5e')](_0x27737a[_0x50fd41('0xd9a')])[_0x50fd41('0xe59')][_0x50fd41('0xe19')](function(_0x586d6e){var _0x45a84f=_0x50fd41;return _0x27737a[_0x45a84f('0xd9a')]['id']=_0x586d6e['id'],_0x27737a['newContact']=![],_0x27737a['tab'][_0x45a84f('0x13e4')]=_0x586d6e[_0x45a84f('0x2566')]||_0x586d6e[_0x45a84f('0x1ef5')],_0x27737a[_0x45a84f('0x435')][_0x45a84f('0xd9a')]=_0x27737a[_0x45a84f('0xd9a')],_0x7b20f9[_0x45a84f('0x10c6')][_0x45a84f('0x222a')]({'id':_0x17b8e6[_0x45a84f('0x1ef8')]()['id'],'ids':[_0x586d6e['id']]});})['then'](function(){var _0x36aa16=_0x50fd41;_0x27737a[_0x36aa16('0x1fca')][_0x36aa16('0x9a3')]=!![],_0x27737a['customFieldsForm'][_0x36aa16('0x9a3')]=!![],_0x1e564f[_0x36aa16('0x425')]({'title':_0x36aa16('0x2242'),'msg':_0x27737a[_0x36aa16('0xd9a')][_0x36aa16('0x2566')]?_0x27737a[_0x36aa16('0xd9a')][_0x36aa16('0x2566')]+_0x36aa16('0x105f'):''});})[_0x50fd41('0xe19')](function(){var _0x5b539f=_0x50fd41;return _0x7b20f9['cmContact']['setTags']({'id':_0x27737a[_0x5b539f('0xd9a')]['id'],'ids':_0x27737a[_0x5b539f('0x435')]['Tags']})[_0x5b539f('0xe59')];})[_0x50fd41('0x223b')](function(_0x453cbe){var _0x2e05ee=_0x50fd41;if(_0x453cbe[_0x2e05ee('0x11d0')]&&_0x453cbe[_0x2e05ee('0x11d0')][_0x2e05ee('0xcd2')]&&_0x453cbe[_0x2e05ee('0x11d0')][_0x2e05ee('0xcd2')][_0x2e05ee('0x25ae')]){_0x27737a['errors']=_0x453cbe[_0x2e05ee('0x11d0')][_0x2e05ee('0xcd2')]||[{'message':_0x453cbe['toString'](),'type':'api.contact.save'}];for(var _0x5387e8=0x0;_0x5387e8<_0x453cbe[_0x2e05ee('0x11d0')][_0x2e05ee('0xcd2')][_0x2e05ee('0x25ae')];_0x5387e8+=0x1){_0x1e564f[_0x2e05ee('0x8c8')]({'title':_0x453cbe[_0x2e05ee('0x11d0')][_0x2e05ee('0xcd2')][_0x5387e8][_0x2e05ee('0x62e')],'msg':_0x453cbe['data'][_0x2e05ee('0xcd2')][_0x5387e8]['message']});}}else _0x1e564f[_0x2e05ee('0x8c8')]({'title':_0x453cbe[_0x2e05ee('0x2833')]?_0x2e05ee('0x27f2')+_0x453cbe[_0x2e05ee('0x2833')]+_0x2e05ee('0x1b7c')+_0x453cbe[_0x2e05ee('0x1fd7')]:_0x2e05ee('0x103e'),'msg':_0x453cbe[_0x2e05ee('0x11d0')]?JSON[_0x2e05ee('0x3ad')](_0x453cbe['data'][_0x2e05ee('0x27e8')]):_0x453cbe[_0x2e05ee('0x94f')]()});});}function _0x4cd36b(){var _0x64d47c=_0x5ded2a;_0x27737a[_0x64d47c('0xcd2')]=[],_0x7b20f9[_0x64d47c('0x1711')][_0x64d47c('0xa70')]({'id':_0x27737a[_0x64d47c('0xd9a')]['id']},_0x27737a[_0x64d47c('0xd9a')])[_0x64d47c('0xe59')]['then'](function(_0x51e194){var _0x2aaaf6=_0x64d47c;return _0x27737a['tab'][_0x2aaaf6('0x13e4')]=_0x51e194[_0x2aaaf6('0x2566')]||_0x51e194['phone'],_0x27737a['tab']['contact']=_0x27737a[_0x2aaaf6('0xd9a')],_0x256556[_0x2aaaf6('0x5cf')]['vm']['updateLocalStorage'](),_0x7b20f9[_0x2aaaf6('0x10c6')][_0x2aaaf6('0x222a')]({'id':_0x17b8e6['getCurrentUser']()['id'],'ids':[_0x51e194['id']]});})[_0x64d47c('0xe19')](function(){var _0xde0dfa=_0x64d47c;return _0x7b20f9[_0xde0dfa('0x1711')]['setTags']({'id':_0x27737a['contact']['id'],'ids':_0x27737a[_0xde0dfa('0x435')][_0xde0dfa('0x1e7b')]})['$promise'];})[_0x64d47c('0xe19')](function(){var _0x4b8eac=_0x64d47c;_0x27737a[_0x4b8eac('0x1fca')][_0x4b8eac('0x9a3')]=!![],_0x27737a[_0x4b8eac('0x7f6')]['$pristine']=!![],_0x1e564f['success']({'title':_0x4b8eac('0x1151'),'msg':_0x27737a['contact'][_0x4b8eac('0x2623')]?_0x27737a[_0x4b8eac('0xd9a')]['name']+'\x20has\x20been\x20updated!':''});})[_0x64d47c('0x223b')](function(_0x24d2d6){var _0xb6d04d=_0x64d47c;if(_0x24d2d6[_0xb6d04d('0x11d0')]&&_0x24d2d6[_0xb6d04d('0x11d0')][_0xb6d04d('0xcd2')]&&_0x24d2d6[_0xb6d04d('0x11d0')]['errors'][_0xb6d04d('0x25ae')]){_0x27737a[_0xb6d04d('0xcd2')]=_0x24d2d6[_0xb6d04d('0x11d0')][_0xb6d04d('0xcd2')]||[{'message':_0x24d2d6[_0xb6d04d('0x94f')](),'type':_0xb6d04d('0x103e')}];for(var _0x15c8c5=0x0;_0x15c8c5<_0x24d2d6['data'][_0xb6d04d('0xcd2')][_0xb6d04d('0x25ae')];_0x15c8c5+=0x1){_0x1e564f[_0xb6d04d('0x8c8')]({'title':_0x24d2d6[_0xb6d04d('0x11d0')][_0xb6d04d('0xcd2')][_0x15c8c5][_0xb6d04d('0x62e')],'msg':_0x24d2d6['data'][_0xb6d04d('0xcd2')][_0x15c8c5][_0xb6d04d('0x27e8')]});}}else _0x1e564f[_0xb6d04d('0x8c8')]({'title':_0x24d2d6[_0xb6d04d('0x2833')]?'API:'+_0x24d2d6[_0xb6d04d('0x2833')]+_0xb6d04d('0x1b7c')+_0x24d2d6[_0xb6d04d('0x1fd7')]:_0xb6d04d('0x103e'),'msg':_0x24d2d6[_0xb6d04d('0x11d0')]?JSON[_0xb6d04d('0x3ad')](_0x24d2d6[_0xb6d04d('0x11d0')]['message']):_0x24d2d6[_0xb6d04d('0x94f')]()});});}_0x256556[_0x5ded2a('0x107')]('currentTab',function(){var _0x371c95=_0x5ded2a;_0x27737a[_0x371c95('0x14a2')]===0x1&&(_0x27737a[_0x371c95('0x2018')](),_0x27737a[_0x371c95('0x14f7')](),_0x27737a[_0x371c95('0x7f2')]());});var _0x5e03aa=!![],_0x39c3a7=0x1;_0x256556[_0x5ded2a('0x107')](_0x5ded2a('0x15c3'),function(_0x4657e5,_0x3f46f2){var _0x2f072b=_0x5ded2a;_0x5e03aa?_0x26731a(function(){_0x5e03aa=![];}):(!_0x3f46f2&&(_0x39c3a7=_0x27737a[_0x2f072b('0x2565')][_0x2f072b('0xc08')]),_0x4657e5!==_0x3f46f2&&(_0x27737a[_0x2f072b('0x2565')][_0x2f072b('0xc08')]=0x1),!_0x4657e5&&(_0x27737a[_0x2f072b('0x2565')][_0x2f072b('0xc08')]=_0x39c3a7),_0x27737a[_0x2f072b('0x2018')]());}),_0x256556[_0x5ded2a('0x107')](_0x5ded2a('0x67b'),function(_0x16d699,_0x15d247){var _0x1e3437=_0x5ded2a;_0x5e03aa?_0x26731a(function(){_0x5e03aa=![];}):(!_0x15d247&&(_0x39c3a7=_0x27737a[_0x1e3437('0x190d')]['page']),_0x16d699!==_0x15d247&&(_0x27737a[_0x1e3437('0x190d')]['page']=0x1),!_0x16d699&&(_0x27737a[_0x1e3437('0x190d')][_0x1e3437('0xc08')]=_0x39c3a7),_0x27737a['getFinals']());}),_0x256556['$watch'](_0x5ded2a('0xb4a'),function(_0x526924,_0x5ab652){var _0x2165ea=_0x5ded2a;_0x5e03aa?_0x26731a(function(){_0x5e03aa=![];}):(!_0x5ab652&&(_0x39c3a7=_0x27737a[_0x2165ea('0x73f')]['page']),_0x526924!==_0x5ab652&&(_0x27737a[_0x2165ea('0x73f')][_0x2165ea('0xc08')]=0x1),!_0x526924&&(_0x27737a['queryHistory'][_0x2165ea('0xc08')]=_0x39c3a7),_0x27737a[_0x2165ea('0x7f2')]());});function _0x506f8d(_0x3eeeae){return function(_0x17196c){_0x27737a[_0x3eeeae]=_0x17196c||{'count':0x0,'rows':[]};};}function _0x3cd624(){var _0x5da582=_0x5ded2a;_0x27737a['contact']&&_0x27737a[_0x5da582('0xd9a')]['id']&&(_0x27737a[_0x5da582('0x2565')][_0x5da582('0x23c1')]=_0x27737a[_0x5da582('0xd9a')]['id'],_0x27737a['queryHopper'][_0x5da582('0xab0')]=(_0x27737a[_0x5da582('0x2565')][_0x5da582('0xc08')]-0x1)*_0x27737a['queryHopper'][_0x5da582('0x1b6d')],_0x27737a[_0x5da582('0x9c8')]=_0x7b20f9[_0x5da582('0x2408')]['get'](_0x27737a[_0x5da582('0x2565')],_0x506f8d(_0x5da582('0x26d1')))[_0x5da582('0xe59')]);}function _0x5e9f8e(){var _0x4a5015=_0x5ded2a;_0x27737a[_0x4a5015('0xd9a')]&&_0x27737a['contact']['id']&&(_0x27737a[_0x4a5015('0x190d')][_0x4a5015('0x23c1')]=_0x27737a[_0x4a5015('0xd9a')]['id'],_0x27737a[_0x4a5015('0x190d')]['offset']=(_0x27737a[_0x4a5015('0x190d')][_0x4a5015('0xc08')]-0x1)*_0x27737a[_0x4a5015('0x190d')][_0x4a5015('0x1b6d')],_0x27737a[_0x4a5015('0x9c8')]=_0x7b20f9['cmHopperFinal'][_0x4a5015('0x22d5')](_0x27737a[_0x4a5015('0x190d')],_0x506f8d(_0x4a5015('0x91d')))['$promise']);}function _0x4bf018(){var _0x459a1c=_0x5ded2a;_0x27737a[_0x459a1c('0xd9a')]&&_0x27737a['contact']['id']&&(_0x27737a[_0x459a1c('0x73f')][_0x459a1c('0x23c1')]=_0x27737a[_0x459a1c('0xd9a')]['id'],_0x27737a[_0x459a1c('0x73f')][_0x459a1c('0xab0')]=(_0x27737a[_0x459a1c('0x73f')][_0x459a1c('0xc08')]-0x1)*_0x27737a[_0x459a1c('0x73f')][_0x459a1c('0x1b6d')],_0x27737a[_0x459a1c('0x9c8')]=_0x7b20f9[_0x459a1c('0x1a61')][_0x459a1c('0x22d5')](_0x27737a[_0x459a1c('0x73f')],_0x506f8d('histories'))[_0x459a1c('0xe59')]);}function _0x510a39(){var _0x3e0d68=_0x5ded2a;_0x7b20f9[_0x3e0d68('0x6c7')][_0x3e0d68('0x22d5')]({'fields':'createdAt,updatedAt,id,name,description,createdAt,formData,enableUncompleteSave','sort':_0x3e0d68('0x7e8'),'nolimit':!![]})[_0x3e0d68('0xe59')][_0x3e0d68('0xe19')](function(_0x59f9bd){_0x27737a['jscriptyProjects']=_0x59f9bd||{'count':0x0,'rows':[]};})[_0x3e0d68('0x223b')](function(_0x42a13c){var _0x3eba73=_0x3e0d68;if(_0x42a13c['data']&&_0x42a13c[_0x3eba73('0x11d0')][_0x3eba73('0xcd2')]&&_0x42a13c[_0x3eba73('0x11d0')][_0x3eba73('0xcd2')][_0x3eba73('0x25ae')]){_0x27737a['errors']=_0x42a13c[_0x3eba73('0x11d0')][_0x3eba73('0xcd2')]||[{'message':_0x42a13c[_0x3eba73('0x94f')](),'type':_0x3eba73('0xfd1')}];for(var _0x1be660=0x0;_0x1be660<_0x42a13c[_0x3eba73('0x11d0')][_0x3eba73('0xcd2')][_0x3eba73('0x25ae')];_0x1be660+=0x1){_0x1e564f[_0x3eba73('0x8c8')]({'title':_0x42a13c[_0x3eba73('0x11d0')][_0x3eba73('0xcd2')][_0x1be660][_0x3eba73('0x62e')],'msg':_0x42a13c[_0x3eba73('0x11d0')]['errors'][_0x1be660][_0x3eba73('0x27e8')]});}}else _0x1e564f[_0x3eba73('0x8c8')]({'title':_0x42a13c[_0x3eba73('0x2833')]?'API:'+_0x42a13c[_0x3eba73('0x2833')]+_0x3eba73('0x1b7c')+_0x42a13c[_0x3eba73('0x1fd7')]:_0x3eba73('0xfd1'),'msg':_0x42a13c[_0x3eba73('0x11d0')]?JSON[_0x3eba73('0x3ad')](_0x42a13c[_0x3eba73('0x11d0')]['message']):_0x42a13c[_0x3eba73('0x94f')]()});});}function _0x28ff2a(){var _0x3cf787=_0x5ded2a;_0x7b20f9[_0x3cf787('0x10c6')]['getMailAccounts']({'id':_0x27737a[_0x3cf787('0x10c6')]['id'],'nolimit':!![]})[_0x3cf787('0xe59')][_0x3cf787('0xe19')](function(_0x2fa280){var _0x586b21=_0x3cf787;_0x27737a[_0x586b21('0x248b')]=_0x2fa280||{'count':0x0,'rows':[]};})[_0x3cf787('0x223b')](function(_0x391e19){var _0x13b5a=_0x3cf787;if(_0x391e19['data']&&_0x391e19[_0x13b5a('0x11d0')][_0x13b5a('0xcd2')]&&_0x391e19[_0x13b5a('0x11d0')][_0x13b5a('0xcd2')][_0x13b5a('0x25ae')]){_0x27737a[_0x13b5a('0xcd2')]=_0x391e19[_0x13b5a('0x11d0')][_0x13b5a('0xcd2')]||[{'message':_0x391e19['toString'](),'type':'api.mail.account'}];for(var _0x260bf6=0x0;_0x260bf6<_0x391e19[_0x13b5a('0x11d0')][_0x13b5a('0xcd2')][_0x13b5a('0x25ae')];_0x260bf6+=0x1){_0x1e564f[_0x13b5a('0x8c8')]({'title':_0x391e19[_0x13b5a('0x11d0')][_0x13b5a('0xcd2')][_0x260bf6]['type'],'msg':_0x391e19[_0x13b5a('0x11d0')]['errors'][_0x260bf6][_0x13b5a('0x27e8')]});}}else _0x1e564f[_0x13b5a('0x8c8')]({'title':_0x391e19['status']?_0x13b5a('0x27f2')+_0x391e19[_0x13b5a('0x2833')]+_0x13b5a('0x1b7c')+_0x391e19[_0x13b5a('0x1fd7')]:_0x13b5a('0x25f8'),'msg':_0x391e19['data']?JSON['stringify'](_0x391e19[_0x13b5a('0x11d0')][_0x13b5a('0x27e8')]):_0x391e19['toString']()});});}function _0x262607(){var _0x58531c=_0x5ded2a;_0x7b20f9[_0x58531c('0x10c6')][_0x58531c('0x281e')]({'id':_0x27737a['user']['id'],'nolimit':!![]})[_0x58531c('0xe59')][_0x58531c('0xe19')](function(_0x12539d){var _0x26378c=_0x58531c;_0x27737a[_0x26378c('0x1a77')]=_0x12539d||{'count':0x0,'rows':[]};})[_0x58531c('0x223b')](function(_0x2dd279){var _0x12254f=_0x58531c;if(_0x2dd279[_0x12254f('0x11d0')]&&_0x2dd279['data']['errors']&&_0x2dd279['data'][_0x12254f('0xcd2')][_0x12254f('0x25ae')]){_0x27737a[_0x12254f('0xcd2')]=_0x2dd279['data'][_0x12254f('0xcd2')]||[{'message':_0x2dd279[_0x12254f('0x94f')](),'type':_0x12254f('0x1612')}];for(var _0x27385b=0x0;_0x27385b<_0x2dd279[_0x12254f('0x11d0')][_0x12254f('0xcd2')][_0x12254f('0x25ae')];_0x27385b+=0x1){_0x1e564f[_0x12254f('0x8c8')]({'title':_0x2dd279['data'][_0x12254f('0xcd2')][_0x27385b][_0x12254f('0x62e')],'msg':_0x2dd279[_0x12254f('0x11d0')][_0x12254f('0xcd2')][_0x27385b][_0x12254f('0x27e8')]});}}else _0x1e564f[_0x12254f('0x8c8')]({'title':_0x2dd279[_0x12254f('0x2833')]?_0x12254f('0x27f2')+_0x2dd279[_0x12254f('0x2833')]+_0x12254f('0x1b7c')+_0x2dd279['statusText']:_0x12254f('0x1612'),'msg':_0x2dd279[_0x12254f('0x11d0')]?JSON[_0x12254f('0x3ad')](_0x2dd279['data'][_0x12254f('0x27e8')]):_0x2dd279[_0x12254f('0x94f')]()});});}function _0x43671d(){var _0xbd13e4=_0x5ded2a;_0x7b20f9[_0xbd13e4('0x10c6')][_0xbd13e4('0x1847')]({'id':_0x27737a[_0xbd13e4('0x10c6')]['id'],'nolimit':!![]})[_0xbd13e4('0xe59')][_0xbd13e4('0xe19')](function(_0x3ed697){var _0x34810e=_0xbd13e4;_0x27737a[_0x34810e('0x25db')]=_0x3ed697||{'count':0x0,'rows':[]};})[_0xbd13e4('0x223b')](function(_0xf7473e){var _0x57b30b=_0xbd13e4;if(_0xf7473e[_0x57b30b('0x11d0')]&&_0xf7473e[_0x57b30b('0x11d0')][_0x57b30b('0xcd2')]&&_0xf7473e[_0x57b30b('0x11d0')][_0x57b30b('0xcd2')][_0x57b30b('0x25ae')]){_0x27737a[_0x57b30b('0xcd2')]=_0xf7473e[_0x57b30b('0x11d0')][_0x57b30b('0xcd2')]||[{'message':_0xf7473e['toString'](),'type':'api.sms.account'}];for(var _0x295444=0x0;_0x295444<_0xf7473e[_0x57b30b('0x11d0')][_0x57b30b('0xcd2')][_0x57b30b('0x25ae')];_0x295444+=0x1){_0x1e564f[_0x57b30b('0x8c8')]({'title':_0xf7473e['data'][_0x57b30b('0xcd2')][_0x295444][_0x57b30b('0x62e')],'msg':_0xf7473e[_0x57b30b('0x11d0')][_0x57b30b('0xcd2')][_0x295444]['message']});}}else _0x1e564f[_0x57b30b('0x8c8')]({'title':_0xf7473e[_0x57b30b('0x2833')]?'API:'+_0xf7473e['status']+'\x20-\x20'+_0xf7473e[_0x57b30b('0x1fd7')]:'api.sms.account','msg':_0xf7473e[_0x57b30b('0x11d0')]?JSON[_0x57b30b('0x3ad')](_0xf7473e['data'][_0x57b30b('0x27e8')]):_0xf7473e['toString']()});});}function _0x50d471(){var _0x4e48b4=_0x5ded2a;_0x7b20f9[_0x4e48b4('0x10c6')][_0x4e48b4('0x1db3')]({'id':_0x27737a['user']['id'],'nolimit':!![]})[_0x4e48b4('0xe59')][_0x4e48b4('0xe19')](function(_0x3301fa){var _0x2a0f32=_0x4e48b4;_0x27737a[_0x2a0f32('0x14cf')]=_0x3301fa||{'count':0x0,'rows':[]};})[_0x4e48b4('0x223b')](function(_0x13f163){var _0x141a26=_0x4e48b4;if(_0x13f163[_0x141a26('0x11d0')]&&_0x13f163[_0x141a26('0x11d0')][_0x141a26('0xcd2')]&&_0x13f163[_0x141a26('0x11d0')]['errors']['length']){_0x27737a['errors']=_0x13f163[_0x141a26('0x11d0')]['errors']||[{'message':_0x13f163[_0x141a26('0x94f')](),'type':_0x141a26('0xd1a')}];for(var _0x2794ed=0x0;_0x2794ed<_0x13f163[_0x141a26('0x11d0')][_0x141a26('0xcd2')][_0x141a26('0x25ae')];_0x2794ed+=0x1){_0x1e564f['error']({'title':_0x13f163[_0x141a26('0x11d0')][_0x141a26('0xcd2')][_0x2794ed]['type'],'msg':_0x13f163[_0x141a26('0x11d0')][_0x141a26('0xcd2')][_0x2794ed][_0x141a26('0x27e8')]});}}else _0x1e564f[_0x141a26('0x8c8')]({'title':_0x13f163[_0x141a26('0x2833')]?_0x141a26('0x27f2')+_0x13f163['status']+_0x141a26('0x1b7c')+_0x13f163[_0x141a26('0x1fd7')]:_0x141a26('0xd1a'),'msg':_0x13f163['data']?JSON[_0x141a26('0x3ad')](_0x13f163['data']['message']):_0x13f163[_0x141a26('0x94f')]()});});}function _0x46c259(){var _0x18a225=_0x5ded2a;_0x7b20f9[_0x18a225('0x10c6')][_0x18a225('0x1449')]({'id':_0x27737a[_0x18a225('0x10c6')]['id'],'nolimit':!![]})[_0x18a225('0xe59')]['then'](function(_0xdcbc33){_0x27737a['openchannelAccounts']=_0xdcbc33||{'count':0x0,'rows':[]};})[_0x18a225('0x223b')](function(_0x425199){var _0x15effe=_0x18a225;if(_0x425199[_0x15effe('0x11d0')]&&_0x425199[_0x15effe('0x11d0')][_0x15effe('0xcd2')]&&_0x425199[_0x15effe('0x11d0')][_0x15effe('0xcd2')]['length']){_0x27737a['errors']=_0x425199[_0x15effe('0x11d0')][_0x15effe('0xcd2')]||[{'message':_0x425199[_0x15effe('0x94f')](),'type':_0x15effe('0x1d33')}];for(var _0x3ab51b=0x0;_0x3ab51b<_0x425199[_0x15effe('0x11d0')][_0x15effe('0xcd2')][_0x15effe('0x25ae')];_0x3ab51b+=0x1){_0x1e564f[_0x15effe('0x8c8')]({'title':_0x425199[_0x15effe('0x11d0')]['errors'][_0x3ab51b][_0x15effe('0x62e')],'msg':_0x425199[_0x15effe('0x11d0')]['errors'][_0x3ab51b][_0x15effe('0x27e8')]});}}else _0x1e564f[_0x15effe('0x8c8')]({'title':_0x425199['status']?_0x15effe('0x27f2')+_0x425199[_0x15effe('0x2833')]+_0x15effe('0x1b7c')+_0x425199[_0x15effe('0x1fd7')]:_0x15effe('0x1d33'),'msg':_0x425199[_0x15effe('0x11d0')]?JSON[_0x15effe('0x3ad')](_0x425199[_0x15effe('0x11d0')][_0x15effe('0x27e8')]):_0x425199[_0x15effe('0x94f')]()});});}function _0x164c0d(){var _0x2643e3=_0x5ded2a;_0x7b20f9[_0x2643e3('0x10c6')]['getChatWebsites']({'id':_0x27737a[_0x2643e3('0x10c6')]['id'],'nolimit':!![]})[_0x2643e3('0xe59')][_0x2643e3('0xe19')](function(_0x5c2b44){var _0x1c911a=_0x2643e3;_0x27737a[_0x1c911a('0x607')]=_0x5c2b44||{'count':0x0,'rows':[]};})[_0x2643e3('0x223b')](function(_0x289ce8){var _0x4ce0e1=_0x2643e3;if(_0x289ce8[_0x4ce0e1('0x11d0')]&&_0x289ce8[_0x4ce0e1('0x11d0')]['errors']&&_0x289ce8['data']['errors'][_0x4ce0e1('0x25ae')]){_0x27737a[_0x4ce0e1('0xcd2')]=_0x289ce8['data']['errors']||[{'message':_0x289ce8[_0x4ce0e1('0x94f')](),'type':_0x4ce0e1('0x1d4d')}];for(var _0x1e0ef0=0x0;_0x1e0ef0<_0x289ce8[_0x4ce0e1('0x11d0')][_0x4ce0e1('0xcd2')]['length'];_0x1e0ef0+=0x1){_0x1e564f[_0x4ce0e1('0x8c8')]({'title':_0x289ce8[_0x4ce0e1('0x11d0')][_0x4ce0e1('0xcd2')][_0x1e0ef0][_0x4ce0e1('0x62e')],'msg':_0x289ce8[_0x4ce0e1('0x11d0')][_0x4ce0e1('0xcd2')][_0x1e0ef0][_0x4ce0e1('0x27e8')]});}}else _0x1e564f[_0x4ce0e1('0x8c8')]({'title':_0x289ce8['status']?'API:'+_0x289ce8['status']+_0x4ce0e1('0x1b7c')+_0x289ce8[_0x4ce0e1('0x1fd7')]:_0x4ce0e1('0x1d4d'),'msg':_0x289ce8['data']?JSON[_0x4ce0e1('0x3ad')](_0x289ce8[_0x4ce0e1('0x11d0')][_0x4ce0e1('0x27e8')]):_0x289ce8[_0x4ce0e1('0x94f')]()});});}function _0x3f1f84(){var _0x6380dd=_0x5ded2a;_0x7b20f9[_0x6380dd('0x10c6')][_0x6380dd('0x1feb')]({'id':_0x27737a['user']['id'],'nolimit':!![]})[_0x6380dd('0xe59')]['then'](function(_0x892da0){var _0x1b6405=_0x6380dd;_0x27737a[_0x1b6405('0x9f8')]=_0x892da0||{'count':0x0,'rows':[]};})[_0x6380dd('0x223b')](function(_0x343316){var _0x401f31=_0x6380dd;if(_0x343316['data']&&_0x343316[_0x401f31('0x11d0')][_0x401f31('0xcd2')]&&_0x343316[_0x401f31('0x11d0')]['errors'][_0x401f31('0x25ae')]){_0x27737a[_0x401f31('0xcd2')]=_0x343316['data'][_0x401f31('0xcd2')]||[{'message':_0x343316[_0x401f31('0x94f')](),'type':_0x401f31('0x1b73')}];for(var _0x19585a=0x0;_0x19585a<_0x343316[_0x401f31('0x11d0')][_0x401f31('0xcd2')][_0x401f31('0x25ae')];_0x19585a+=0x1){_0x1e564f[_0x401f31('0x8c8')]({'title':_0x343316[_0x401f31('0x11d0')][_0x401f31('0xcd2')][_0x19585a][_0x401f31('0x62e')],'msg':_0x343316[_0x401f31('0x11d0')][_0x401f31('0xcd2')][_0x19585a][_0x401f31('0x27e8')]});}}else _0x1e564f[_0x401f31('0x8c8')]({'title':_0x343316[_0x401f31('0x2833')]?_0x401f31('0x27f2')+_0x343316[_0x401f31('0x2833')]+_0x401f31('0x1b7c')+_0x343316['statusText']:_0x401f31('0x1b73'),'msg':_0x343316[_0x401f31('0x11d0')]?JSON[_0x401f31('0x3ad')](_0x343316['data'][_0x401f31('0x27e8')]):_0x343316[_0x401f31('0x94f')]()});});}function _0x24ed55(_0xc0fa0e){var _0x4a3df5=_0x5ded2a;_0x202cb6[_0x4a3df5('0x26b2')]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x189c18,'parent':angular[_0x4a3df5('0x24a1')](_0xff9f99[_0x4a3df5('0x19b2')]),'targetEvent':_0xc0fa0e,'clickOutsideToClose':!![],'resolve':{'contact':[_0x4a3df5('0x292'),function _0x376901(_0x2f0fe8){var _0x19f917=_0x4a3df5;return _0x2f0fe8['resolve'](_0x19f917('0x1995'),{'id':_0x27737a[_0x19f917('0xd9a')]['id']});}],'lists':[_0x4a3df5('0x292'),function _0x44b817(_0x4fb9b3){var _0x4bdf98=_0x4a3df5;return _0x4fb9b3[_0x4bdf98('0xcd6')](_0x4bdf98('0x5c6'),{'id':_0x17b8e6[_0x4bdf98('0x1ef8')]()['id'],'fields':_0x4bdf98('0x104')});}]},'locals':{'contacts':[]}});}function _0x1cdf94(_0x4b88b4){var _0x3bcf8a=_0x5ded2a;_0x202cb6[_0x3bcf8a('0x26b2')]({'controller':_0x3bcf8a('0x1a88'),'controllerAs':'vm','templateUrl':_0x548c5c,'parent':angular[_0x3bcf8a('0x24a1')](_0xff9f99['body']),'targetEvent':_0x4b88b4,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function _0x252e10(_0x37ee0e){var _0x5eb1e4=_0x3bcf8a;return _0x37ee0e[_0x5eb1e4('0xcd6')](_0x5eb1e4('0x1995'),{'id':_0x27737a[_0x5eb1e4('0xd9a')]['id']});}],'lists':['apiResolver',function _0x43f3ba(_0x5a8236){var _0x16c8f5=_0x3bcf8a;return _0x5a8236[_0x16c8f5('0xcd6')](_0x16c8f5('0x5c6'),{'id':_0x17b8e6[_0x16c8f5('0x1ef8')]()['id'],'fields':_0x16c8f5('0x104')});}]},'locals':{'contacts':[]}})[_0x3bcf8a('0xe19')](function(_0x2d1ba4){var _0xec6784=_0x3bcf8a;if(_0x2d1ba4){for(var _0x5cbf2a in _0x256556['$parent'][_0xec6784('0x5cf')][_0xec6784('0x5cf')]['vm'][_0xec6784('0xb31')]){if(typeof _0x256556[_0xec6784('0x5cf')][_0xec6784('0x5cf')][_0xec6784('0x5cf')]['vm'][_0xec6784('0xb31')][_0x5cbf2a]!=='undefined'){var _0x3df060=_0x256556['$parent']['$parent'][_0xec6784('0x5cf')]['vm'][_0xec6784('0xb31')][_0x5cbf2a];_0x3df060&&_0x3df060['contact']&&(_0x2d1ba4[_0xec6784('0x6f7')]&&_0x2d1ba4['from']['id']&&_0x2d1ba4[_0xec6784('0x6f7')]['id']===_0x3df060[_0xec6784('0xd9a')]['id']&&_0x256556['$parent'][_0xec6784('0x5cf')][_0xec6784('0x5cf')]['vm']['removeTab'](_0x3df060),_0x2d1ba4['to']&&_0x2d1ba4['to']['id']&&_0x2d1ba4['to']['id']===_0x3df060['contact']['id']&&_0x256556[_0xec6784('0x5cf')][_0xec6784('0x5cf')]['$parent']['vm'][_0xec6784('0x5e6')](_0x3df060));}}_0x2d1ba4[_0xec6784('0x4ad')]&&_0x256556[_0xec6784('0x5cf')][_0xec6784('0x5cf')][_0xec6784('0x5cf')]['vm'][_0xec6784('0x8be')](_0x2d1ba4[_0xec6784('0x4ad')]);}});}function _0x3dd632(_0x1ac650,_0x4801f2){var _0x493eec=_0x5ded2a,_0x5a5171=_0x27737a['user'][_0x493eec('0x1b8d')]||_0x27737a[_0x493eec('0x10c6')][_0x493eec('0x1b15')]||_0x27737a['user'][_0x493eec('0x2531')]||_0x27737a[_0x493eec('0x10c6')][_0x493eec('0xf2a')]||_0x27737a[_0x493eec('0x10c6')][_0x493eec('0x2299')],_0x4a2705=_0x4801f2[_0x493eec('0x1dc8')];if(_0x27737a[_0x493eec('0x285')]){_0x1e564f[_0x493eec('0x8c8')]({'title':_0x493eec('0x1216'),'msg':_0x493eec('0x8cd')});return;}_0x202cb6[_0x493eec('0x26b2')]({'controller':_0x493eec('0x1f99'),'controllerAs':'vm','templateUrl':_0x806bb5,'parent':angular['element'](_0xff9f99['body']),'targetEvent':_0x4801f2,'clickOutsideToClose':!_0x4801f2[_0x493eec('0x1dc8')],'escapeToClose':!_0x4801f2[_0x493eec('0x1dc8')],'resolve':{'globalDispositions':[_0x493eec('0x292'),function _0x37f5bf(_0x3afb89){var _0x2034c4=_0x493eec;return _0x3afb89[_0x2034c4('0xcd6')](_0x2034c4('0xb91'),{'MailAccountId':'null','FaxAccountId':_0x2034c4('0x1046'),'SmsAccountId':_0x2034c4('0x1046'),'WhatsappAccountId':_0x2034c4('0x1046'),'OpenchannelAccountId':_0x2034c4('0x1046'),'ChatWebsiteId':_0x2034c4('0x1046'),'ListId':_0x2034c4('0x1046')});}]},'onRemoving':function _0x4f58cd(){var _0x540d4d=_0x493eec;_0x27737a['user']&&_0x4a2705&&!_0x5a5171&&_0x7b20f9[_0x540d4d('0x10c6')][_0x540d4d('0x2471')]({'id':_0x27737a[_0x540d4d('0x10c6')]['id']})[_0x540d4d('0xe59')][_0x540d4d('0x223b')](function(_0x352161){var _0x25b450=_0x540d4d;console[_0x25b450('0x8c8')](_0x352161);});},'locals':{'dispositions':_0x27737a[_0x493eec('0x435')][_0x493eec('0x24eb')],'contact':_0x27737a['contact'],'call':_0x4801f2}})['then'](function(_0x1a2a85){var _0x3d6041=_0x493eec;if(_0x1a2a85){if(_0x1a2a85===_0x3d6041('0x1191'))_0x1e564f[_0x3d6041('0x425')]({'title':_0x1c0b5a[_0x3d6041('0x2159')](_0x3d6041('0x1918')),'msg':_0x1c0b5a[_0x3d6041('0x2159')](_0x3d6041('0xd17'))+'\x20'+_0x1a2a85});else{if(_0x1a2a85===_0x3d6041('0xfd')||_0x1a2a85===_0x3d6041('0xb1f')){}else _0x1e564f[_0x3d6041('0x425')]({'title':_0x1c0b5a['instant'](_0x3d6041('0x1918')),'msg':_0x1c0b5a[_0x3d6041('0x2159')]('DASHBOARDS.CALL_SAVED')});}}for(var _0x534198 in _0x256556[_0x3d6041('0x5cf')][_0x3d6041('0x5cf')][_0x3d6041('0x5cf')]['vm'][_0x3d6041('0xb31')]){if(typeof _0x256556[_0x3d6041('0x5cf')][_0x3d6041('0x5cf')][_0x3d6041('0x5cf')]['vm'][_0x3d6041('0xb31')][_0x534198]!=='undefined'){var _0x291620=_0x256556[_0x3d6041('0x5cf')][_0x3d6041('0x5cf')]['$parent']['vm']['tabs'][_0x534198];_0x32d445()['remove'](_0x291620['calls'],function(_0x3bdd2f){var _0x369d18=_0x3d6041;return _0x3bdd2f[_0x369d18('0x1a6c')]===_0x4801f2['uniqueid'];});}}_0x256556[_0x3d6041('0x5cf')]['vm'][_0x3d6041('0x1d3')]();});}function _0x3485c5(_0x20398c){var _0x1521db=_0x5ded2a;return _0x7b20f9[_0x1521db('0x1bbd')][_0x1521db('0xbef')]({'id':_0x20398c})['$promise'][_0x1521db('0xe19')](function(_0x3f2a92){var _0x593bfc=_0x1521db;_0x27737a[_0x593bfc('0x435')][_0x593bfc('0x6f2')]=_0x3f2a92;})[_0x1521db('0x223b')](function(_0x5ee3f7){var _0x427ef5=_0x1521db;_0x1e564f[_0x427ef5('0x8c8')]({'title':_0x5ee3f7[_0x427ef5('0x2833')]?'API:'+_0x5ee3f7[_0x427ef5('0x2833')]+_0x427ef5('0x1b7c')+_0x5ee3f7[_0x427ef5('0x1fd7')]:_0x427ef5('0x135b'),'msg':_0x5ee3f7[_0x427ef5('0x11d0')]?JSON[_0x427ef5('0x3ad')](_0x5ee3f7[_0x427ef5('0x11d0')]):_0x5ee3f7[_0x427ef5('0x94f')]()});});}function _0xf06a73(_0x59038b){return _0x59038b===null?undefined:new Date(_0x59038b);}function _0x62ce7c(_0x147640){var _0x3e5e19=_0x5ded2a;try{_0x147640[_0x3e5e19('0x2470')]=_0x1be88e()[_0x3e5e19('0x1bc8')](_0x147640[_0x3e5e19('0x2470')],{'contact':_0x27737a[_0x3e5e19('0xd9a')],'user':_0x27737a[_0x3e5e19('0x10c6')]});}catch(_0x51576e){console['error'](_0x51576e);}try{_0x256556['$parent']['$parent'][_0x3e5e19('0x5cf')]['vm'][_0x3e5e19('0x208')]({'type':_0x3e5e19('0x1c47'),'title':_0x147640[_0x3e5e19('0x2623')],'icon':_0x3e5e19('0x1a7c'),'color':_0x3e5e19('0x2069'),'project':_0x147640,'contact':_0x27737a[_0x3e5e19('0xd9a')]});}catch(_0x3b2403){_0x1e564f[_0x3e5e19('0x8c8')]({'title':'ERROR\x20OPENING\x20JSCRIPTY\x20PROJECT','msg':'The\x20project\x20cannot\x20be\x20started'+JSON[_0x3e5e19('0x3ad')](_0x3b2403)});}}function _0x4b1152(_0x5c0598){var _0x4832fe=_0x5ded2a;return _0x17b8e6[_0x4832fe('0xe87')](_0x5c0598);}_0x256556[_0x5ded2a('0xb2b')](_0x5ded2a('0x5cd'),function(){});}const _0x5ecd4e=_0x62fde;_0x495bde[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),'dispositions','globalDispositions',_0xb635d2('0x20c4'),_0xb635d2('0xd9a'),_0xb635d2('0x2730'),_0xb635d2('0x2493')];function _0x495bde(_0x432672,_0x3d55ef,_0x4f9f6c,_0x2f0989,_0xd83aeb,_0x408ac6,_0x4c4c8c,_0x4d09be,_0x5d30b1,_0x4afe65){var _0x1afdec=_0xb635d2,_0x15a626=this;_0x15a626['isReschedule']=![],_0x15a626[_0x1afdec('0x9ee')]=![],_0x15a626[_0x1afdec('0x2658')]=undefined,_0x15a626[_0x1afdec('0x1fac')]={'count':0x0,'rows':[]},_0x15a626[_0x1afdec('0x24eb')]=_0xd83aeb['rows'],_0x15a626[_0x1afdec('0xeeb')]=_0x408ac6[_0x1afdec('0x16a7')],_0x15a626[_0x1afdec('0xd9a')]=_0x4d09be,_0x15a626[_0x1afdec('0x20c4')]=_0x4c4c8c,_0x15a626[_0x1afdec('0x9fd')]=_0x15a626['call'][_0x1afdec('0x9fd')]||undefined,_0x15a626['dialerCall']=![],_0x15a626['hasBlackLists']=![],_0x15a626[_0x1afdec('0x11f0')]={'minDate':new Date(),'dateTime':new Date()};_0x15a626['call']&&_0x15a626[_0x1afdec('0x20c4')]['variables']&&_0x15a626[_0x1afdec('0x20c4')][_0x1afdec('0x1a9e')]['xmd-voicequeueid']?(_0x15a626[_0x1afdec('0xf08')]=!![],_0x2f0989[_0x1afdec('0x25d5')]['getBlackLists']({'id':_0x15a626[_0x1afdec('0x20c4')]['variables'][_0x1afdec('0x875')]})[_0x1afdec('0xe59')]['then'](function(_0xcb5a26){var _0x39e9c2=_0x1afdec;_0xcb5a26&&_0xcb5a26[_0x39e9c2('0x16a7')]&&_0xcb5a26[_0x39e9c2('0x16a7')][_0x39e9c2('0x25ae')]>0x0&&(_0x15a626[_0x39e9c2('0x15b3')]=!![]);})[_0x1afdec('0x223b')](function(_0x53700d){var _0x2e06db=_0x1afdec;_0x4f9f6c[_0x2e06db('0x8c8')]({'title':_0x53700d[_0x2e06db('0x2833')]?_0x2e06db('0x27f2')+_0x53700d[_0x2e06db('0x2833')]+_0x2e06db('0x1b7c')+_0x53700d[_0x2e06db('0x1fd7')]:_0x2e06db('0x27ac'),'msg':_0x53700d[_0x2e06db('0x11d0')]?JSON[_0x2e06db('0x3ad')](_0x53700d[_0x2e06db('0x11d0')]):_0x53700d[_0x2e06db('0x94f')]()});})):_0x2f0989[_0x1afdec('0x10c6')][_0x1afdec('0x23cf')]({'id':_0x5d30b1[_0x1afdec('0x1ef8')]()['id'],'fields':_0x1afdec('0x17a1'),'channel':_0x1afdec('0xe74'),'type':_0x1afdec('0x1fdf'),'nolimit':!![]})[_0x1afdec('0xe59')][_0x1afdec('0xe19')](function(_0x119345){var _0x1c1dc9=_0x1afdec;_0x15a626[_0x1c1dc9('0x1fac')]=_0x119345||{'count':0x0,'rows':[]};})[_0x1afdec('0x223b')](function(_0xbe144c){var _0x1fda1a=_0x1afdec;console[_0x1fda1a('0x8c8')](_0xbe144c);});_0x15a626['onDispositionChange']=_0x542dfe,_0x15a626[_0x1afdec('0x2197')]=_0x31eccc,_0x15a626[_0x1afdec('0x3d9')]=_0x22b574,_0x15a626[_0x1afdec('0x2584')]=_0x1a7cf2,_0x15a626[_0x1afdec('0x9a8')]=_0x5ea14a;function _0x542dfe(_0x505783){var _0x335c1c=_0x1afdec,_0x144634=_0x32d445()[_0x335c1c('0x2535')](_0x15a626['dispositions'],_0x15a626[_0x335c1c('0xeeb')],'id');switch(_0x505783){case _0x335c1c('0x2325'):_0x15a626[_0x335c1c('0x248c')]=_0x15a626[_0x335c1c('0xeac')],_0x15a626[_0x335c1c('0x27e1')]=_0x32d445()[_0x335c1c('0x201a')](_0x144634,[_0x335c1c('0x2450'),_0x15a626['firstLevelDisposition']['id']]),_0x15a626['secondLevelDisposition']=undefined,_0x15a626[_0x335c1c('0xcec')]=undefined,_0x15a626[_0x335c1c('0x161b')]=![];break;case _0x335c1c('0x1be'):_0x15a626[_0x335c1c('0x248c')]=_0x15a626[_0x335c1c('0x2625')],_0x15a626[_0x335c1c('0x161b')]=_0x32d445()['some'](_0x144634,[_0x335c1c('0x2450'),_0x15a626[_0x335c1c('0x2625')]['id']]);break;case _0x335c1c('0x2038'):_0x15a626[_0x335c1c('0x248c')]=_0x15a626[_0x335c1c('0xcec')];break;}}function _0x31eccc(_0x585323){var _0x1b769d=_0x1afdec;if(_0x585323===_0x1b769d('0x1be'))_0x15a626[_0x1b769d('0x2625')]=undefined,_0x15a626[_0x1b769d('0xcec')]=undefined,_0x15a626['selectedDisposition']=_0x15a626[_0x1b769d('0xeac')];else _0x585323===_0x1b769d('0x2038')&&(_0x15a626[_0x1b769d('0xcec')]=undefined,_0x15a626[_0x1b769d('0x248c')]=_0x15a626[_0x1b769d('0x2625')]);}function _0x4be937(){var _0x94937=_0x1afdec,_0x2e174b=_0x15a626[_0x94937('0x248c')]?_0x15a626[_0x94937('0x248c')]['name'][_0x94937('0x20dd')]():undefined;return{'id':_0x15a626[_0x94937('0x20c4')][_0x94937('0x1a6c')],'disposition':_0x15a626['firstLevelDisposition']?_0x15a626[_0x94937('0xeac')][_0x94937('0x2623')]:null,'secondDisposition':_0x15a626['secondLevelDisposition']?_0x15a626[_0x94937('0x2625')][_0x94937('0x2623')]:null,'thirdDisposition':_0x15a626[_0x94937('0xcec')]?_0x15a626['thirdLevelDisposition'][_0x94937('0x2623')]:null,'dispositionat':_0x4ddcaa()(),'amd':_0x2e174b===_0x94937('0x175d'),'fax':_0x2e174b==='fax','blacklist':_0x2e174b==='blacklist','recallme':_0x2e174b===_0x94937('0x9ee'),'UserId':_0x2e174b==='recallme'?_0x5d30b1[_0x94937('0x1ef8')]()['id']:null,'OwnerId':_0x5d30b1[_0x94937('0x1ef8')]()['id']};}function _0x5128b3(){var _0x2af16a=_0x1afdec;return _0x2f0989[_0x2af16a('0x496')]['update']({'id':_0x15a626[_0x2af16a('0x20c4')][_0x2af16a('0x1a6c')],'userDisposition':_0x15a626[_0x2af16a('0xeac')]?_0x15a626['firstLevelDisposition'][_0x2af16a('0x2623')]:null,'userSecondDisposition':_0x15a626[_0x2af16a('0x2625')]?_0x15a626[_0x2af16a('0x2625')][_0x2af16a('0x2623')]:null,'userThirdDisposition':_0x15a626[_0x2af16a('0xcec')]?_0x15a626['thirdLevelDisposition']['name']:null,'note':_0x15a626[_0x2af16a('0x9fd')],'UserId':_0x5d30b1[_0x2af16a('0x1ef8')]()['id'],'ContactId':_0x15a626[_0x2af16a('0xd9a')]['id']})[_0x2af16a('0xe59')][_0x2af16a('0x223b')](function(_0x328981){var _0x9cb7d2=_0x2af16a;_0x4f9f6c[_0x9cb7d2('0x8c8')]({'title':_0x328981[_0x9cb7d2('0x2833')]?'API:'+_0x328981[_0x9cb7d2('0x2833')]+_0x9cb7d2('0x1b7c')+_0x328981['statusText']:_0x9cb7d2('0x2818'),'msg':_0x328981['data']?JSON['stringify'](_0x328981[_0x9cb7d2('0x11d0')]):_0x328981[_0x9cb7d2('0x94f')]()});});}function _0x24773c(){var _0x131bc9=_0x1afdec;return _0x2f0989[_0x131bc9('0x1a1e')]['get']({'uniqueid':_0x15a626['call'][_0x131bc9('0x1a6c')]})[_0x131bc9('0xe59')][_0x131bc9('0xe19')](function(_0xd28a6d){var _0x8f971=_0x131bc9;if(_0xd28a6d)for(var _0xa0a681=0x0;_0xa0a681<_0xd28a6d[_0x8f971('0x16a7')][_0x8f971('0x25ae')];_0xa0a681+=0x1){_0x2f0989[_0x8f971('0x1a1e')][_0x8f971('0xa70')]({'id':_0xd28a6d[_0x8f971('0x16a7')][_0xa0a681]['id'],'userDisposition':_0x15a626[_0x8f971('0xeac')]?_0x15a626[_0x8f971('0xeac')][_0x8f971('0x2623')]:null,'userSecondDisposition':_0x15a626[_0x8f971('0x2625')]?_0x15a626[_0x8f971('0x2625')][_0x8f971('0x2623')]:null,'userThirdDisposition':_0x15a626[_0x8f971('0xcec')]?_0x15a626[_0x8f971('0xcec')][_0x8f971('0x2623')]:null})[_0x8f971('0xe59')][_0x8f971('0x223b')](function(_0x1f116a){var _0x49b331=_0x8f971;_0x4f9f6c[_0x49b331('0x8c8')]({'title':_0x1f116a[_0x49b331('0x2833')]?_0x49b331('0x27f2')+_0x1f116a[_0x49b331('0x2833')]+'\x20-\x20'+_0x1f116a[_0x49b331('0x1fd7')]:'SYSTEM:UPDATEVOICERECORDING','msg':_0x1f116a[_0x49b331('0x11d0')]?JSON[_0x49b331('0x3ad')](_0x1f116a['data']):_0x1f116a[_0x49b331('0x94f')]()});});}})['catch'](function(_0x23a7c5){var _0x10925b=_0x131bc9;_0x4f9f6c['error']({'title':_0x23a7c5['status']?_0x10925b('0x27f2')+_0x23a7c5[_0x10925b('0x2833')]+'\x20-\x20'+_0x23a7c5[_0x10925b('0x1fd7')]:_0x10925b('0x22f6'),'msg':_0x23a7c5['data']?JSON[_0x10925b('0x3ad')](_0x23a7c5[_0x10925b('0x11d0')]):_0x23a7c5[_0x10925b('0x94f')]()});});}function _0x37b327(){var _0x151ec3=_0x1afdec;return _0x2f0989[_0x151ec3('0x1afa')]['update'](_0x4be937())['$promise'][_0x151ec3('0x223b')](function(_0x1ee9d1){var _0x5c2cdc=_0x151ec3;_0x4f9f6c['error']({'title':_0x1ee9d1[_0x5c2cdc('0x2833')]?_0x5c2cdc('0x27f2')+_0x1ee9d1['status']+_0x5c2cdc('0x1b7c')+_0x1ee9d1[_0x5c2cdc('0x1fd7')]:_0x5c2cdc('0x1deb'),'msg':_0x1ee9d1['data']?JSON[_0x5c2cdc('0x3ad')](_0x1ee9d1[_0x5c2cdc('0x11d0')]):_0x1ee9d1[_0x5c2cdc('0x94f')]()});});}function _0x536c73(){var _0x3237c2=_0x1afdec;return _0x2f0989[_0x3237c2('0x1a61')][_0x3237c2('0xa70')](_0x4be937())[_0x3237c2('0xe59')][_0x3237c2('0x223b')](function(_0x1b0464){var _0x4c6f83=_0x3237c2;_0x4f9f6c[_0x4c6f83('0x8c8')]({'title':_0x1b0464[_0x4c6f83('0x2833')]?_0x4c6f83('0x27f2')+_0x1b0464['status']+_0x4c6f83('0x1b7c')+_0x1b0464['statusText']:_0x4c6f83('0x13e8'),'msg':_0x1b0464[_0x4c6f83('0x11d0')]?JSON[_0x4c6f83('0x3ad')](_0x1b0464['data']):_0x1b0464['toString']()});});}function _0x1caebf(_0x459283){var _0x1fdbfc=_0x1afdec;if(_0x459283)return _0x2f0989[_0x1fdbfc('0x25d5')][_0x1fdbfc('0x1992')]({'id':_0x459283,'type':_0x1fdbfc('0x1fdf'),'fields':'id'})[_0x1fdbfc('0xe59')][_0x1fdbfc('0xe19')](function(_0x42ba1b){var _0x34e4a1=_0x1fdbfc,_0x597e43=[];if(_0x42ba1b&&_0x42ba1b[_0x34e4a1('0x148b')]>0x0){for(var _0x59427c=0x0;_0x59427c<_0x42ba1b['rows'][_0x34e4a1('0x25ae')];_0x59427c+=0x1){var _0x1174ad=angular['copy'](_0x15a626[_0x34e4a1('0xd9a')]);delete _0x1174ad['id'],_0x1174ad[_0x34e4a1('0x2463')]=_0x42ba1b[_0x34e4a1('0x16a7')][_0x59427c]['id'],_0x597e43[_0x34e4a1('0xb76')](_0x2f0989['cmContact'][_0x34e4a1('0xe5e')](_0x1174ad)['$promise']);}return _0x3d55ef['all'](_0x597e43);}_0x4f9f6c[_0x34e4a1('0x425')]({'title':_0x4afe65[_0x34e4a1('0x2159')](_0x34e4a1('0x1918')),'msg':_0x4afe65[_0x34e4a1('0x2159')](_0x34e4a1('0x1825'))+'\x20'+_0x15a626['selectedDisposition']}),_0x15a626['selectedDisposition']=undefined;return;})[_0x1fdbfc('0xe19')](function(_0x49f36f){var _0x4001e7=_0x1fdbfc;_0x49f36f&&_0x432672[_0x4001e7('0x11ed')](_0x15a626['selectedDisposition']?_0x15a626[_0x4001e7('0x248c')]['name'][_0x4001e7('0x25f7')]():'');})[_0x1fdbfc('0x223b')](function(_0x238817){var _0xf2fc10=_0x1fdbfc;_0x4f9f6c[_0xf2fc10('0x8c8')]({'title':_0x238817['status']?'API:'+_0x238817['status']+_0xf2fc10('0x1b7c')+_0x238817[_0xf2fc10('0x1fd7')]:_0xf2fc10('0x2241'),'msg':_0x238817[_0xf2fc10('0x11d0')]?JSON[_0xf2fc10('0x3ad')](_0x238817[_0xf2fc10('0x11d0')]):_0x238817[_0xf2fc10('0x94f')]()}),_0x432672[_0xf2fc10('0x11ed')](_0x15a626['selectedDisposition']?_0x15a626[_0xf2fc10('0x248c')][_0xf2fc10('0x2623')]['toUpperCase']():'');});}function _0x22b574(_0x41c369){var _0x2b868a=_0x1afdec;_0x15a626[_0x2b868a('0x248c')]=_0x32d445()[_0x2b868a('0xe44')](_0x41c369)?_0x15a626[_0x2b868a('0x248c')]:{'name':_0x41c369};_0x41c369&&(_0x15a626['firstLevelDisposition']=_0x15a626[_0x2b868a('0x248c')]);_0x15a626[_0x2b868a('0x20c4')][_0x2b868a('0x9fd')]=_0x15a626[_0x2b868a('0x9fd')],_0x5128b3(),_0x24773c();_0x15a626[_0x2b868a('0xf08')]&&(_0x37b327(),_0x536c73());if(!_0x32d445()['isNil'](_0x15a626[_0x2b868a('0x248c')]))switch(_0x15a626[_0x2b868a('0x248c')]['name'][_0x2b868a('0x20dd')]()){case _0x2b868a('0x12d0'):_0x15a626[_0x2b868a('0x20c4')]&&_0x15a626[_0x2b868a('0x20c4')][_0x2b868a('0x1a9e')]&&_0x15a626[_0x2b868a('0x20c4')][_0x2b868a('0x1a9e')][_0x2b868a('0x875')]&&_0x1caebf(_0x15a626[_0x2b868a('0x20c4')][_0x2b868a('0x1a9e')][_0x2b868a('0x875')]);break;case'reschedule':_0x15a626[_0x2b868a('0x16e')]=!![],_0x15a626[_0x2b868a('0x9ee')]=![];break;case'recallme':_0x15a626[_0x2b868a('0x16e')]=!![],_0x15a626[_0x2b868a('0x9ee')]=!![];break;default:_0x432672['hide'](_0x15a626[_0x2b868a('0x248c')]?_0x15a626[_0x2b868a('0x248c')][_0x2b868a('0x2623')][_0x2b868a('0x25f7')]():'');}else _0x432672[_0x2b868a('0x11ed')](_0x15a626[_0x2b868a('0x248c')]?_0x15a626[_0x2b868a('0x248c')][_0x2b868a('0x2623')]['toUpperCase']():'');}function _0x1a7cf2(){var _0xee8f36=_0x1afdec;_0x432672[_0xee8f36('0x2c1')]();}function _0x5ea14a(){var _0x2b4679=_0x1afdec;return _0x15a626['disable']=!![],_0x2f0989[_0x2b4679('0x2408')][_0x2b4679('0xe5e')]({'phone':_0x15a626[_0x2b4679('0xd9a')][_0x2b4679('0x1ef5')],'UserId':_0x15a626[_0x2b4679('0x9ee')]?_0x5d30b1['getCurrentUser']()['id']:null,'ContactId':_0x15a626[_0x2b4679('0xd9a')]['id'],'ListId':_0x15a626[_0x2b4679('0xd9a')][_0x2b4679('0x2463')],'VoiceQueueId':_0x15a626['dialerCall']?Number(_0x15a626[_0x2b4679('0x20c4')]['xmd-voicequeueid']):_0x15a626[_0x2b4679('0x2658')]?_0x15a626['queueCampaign']['id']:null,'scheduledat':_0x4ddcaa()(_0x15a626[_0x2b4679('0x11f0')][_0x2b4679('0x210b')])[_0x2b4679('0x5e5')](_0x2b4679('0x1f90')),'priority':0x3,'recallme':_0x15a626[_0x2b4679('0x9ee')],'OwnerId':_0x5d30b1['getCurrentUser']()['id']})[_0x2b4679('0xe59')][_0x2b4679('0xe19')](function(){var _0x508c0c=_0x2b4679;_0x15a626[_0x508c0c('0xf08')]&&_0x2f0989[_0x508c0c('0x1afa')]['update']({'id':_0x15a626[_0x508c0c('0x20c4')][_0x508c0c('0x1a6c')],'rescheduled':!![],'rescheduledat':_0x4ddcaa()(_0x15a626[_0x508c0c('0x11f0')][_0x508c0c('0x210b')])['format'](_0x508c0c('0x1f90')),'recallme':_0x15a626[_0x508c0c('0x9ee')]})[_0x508c0c('0xe59')]['catch'](function(_0x34af7d){console['log'](_0x34af7d);});})['then'](function(){var _0x3400a1=_0x2b4679;_0x4f9f6c['success']({'title':_0x4afe65[_0x3400a1('0x2159')]('DASHBOARDS.INFO'),'msg':_0x4afe65[_0x3400a1('0x2159')](_0x3400a1('0xd17'))+'\x20'+(_0x15a626[_0x3400a1('0x9ee')]?_0x4afe65[_0x3400a1('0x2159')](_0x3400a1('0xab3')):_0x4afe65[_0x3400a1('0x2159')]('DASHBOARDS.RESCHEDULE'))});})[_0x2b4679('0x223b')](function(){var _0xeea68f=_0x2b4679;_0x432672[_0xeea68f('0x11ed')](_0x15a626[_0xeea68f('0x248c')]?_0x15a626[_0xeea68f('0x248c')][_0xeea68f('0x2623')][_0xeea68f('0x25f7')]():'');})['finally'](function(){var _0x114b88=_0x2b4679;_0x15a626[_0x114b88('0x45e')]=![],_0x432672['hide'](_0x15a626[_0x114b88('0x248c')]?_0x15a626[_0x114b88('0x248c')]['name'][_0x114b88('0x25f7')]():'');});}}const _0x4252cd=_0x495bde;_0x4810f1['$inject']=['$scope','$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1a0b'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'contact',_0xb635d2('0x20c4'),_0xb635d2('0x2730'),_0xb635d2('0x9ee'),_0xb635d2('0x2493')];function _0x4810f1(_0x4b55e5,_0x5df081,_0x433ef2,_0x3562a0,_0x19ded0,_0x43c5c6,_0x816be3,_0x512be5,_0x557567,_0x2f9353,_0x6e1a43,_0x5884f6){var _0x553749=_0xb635d2,_0x1863ad=this;_0x1863ad[_0x553749('0x20c4')]=_0x557567,_0x1863ad[_0x553749('0xd9a')]=_0x512be5,_0x1863ad[_0x553749('0x11f0')]={'minDate':new Date(),'dateTime':new Date()};function _0xdd2b98(){var _0xc403d=_0x553749;return _0x1863ad[_0xc403d('0x45e')]=!![],_0x816be3[_0xc403d('0x2408')]['save']({'phone':_0x1863ad[_0xc403d('0xd9a')]['phone'],'UserId':_0x6e1a43?_0x2f9353['getCurrentUser']()['id']:null,'ContactId':_0x1863ad[_0xc403d('0xd9a')]['id'],'ListId':_0x1863ad['contact'][_0xc403d('0x2463')],'VoiceQueueId':Number(_0x1863ad[_0xc403d('0x20c4')]['xmd-voicequeueid']),'scheduledat':_0x4ddcaa()(_0x1863ad['hopper'][_0xc403d('0x210b')])[_0xc403d('0x5e5')]('YYYY-MM-DD\x20HH:mm:ss'),'priority':0x3,'recallme':_0x6e1a43,'OwnerId':_0x2f9353[_0xc403d('0x1ef8')]()['id']})[_0xc403d('0xe59')][_0xc403d('0xe19')](function(){var _0x218330=_0xc403d;_0x816be3[_0x218330('0x1afa')][_0x218330('0xa70')]({'id':_0x1863ad[_0x218330('0x20c4')][_0x218330('0x1a6c')],'rescheduled':!![],'rescheduledat':_0x4ddcaa()(_0x1863ad[_0x218330('0x11f0')][_0x218330('0x210b')])[_0x218330('0x5e5')](_0x218330('0x1f90')),'recallme':_0x6e1a43})[_0x218330('0xe59')];})[_0xc403d('0xe19')](function(){var _0x3b9d6c=_0xc403d;_0x43c5c6['success']({'title':_0x5884f6[_0x3b9d6c('0x2159')](_0x3b9d6c('0x1918')),'msg':_0x5884f6[_0x3b9d6c('0x2159')]('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x6e1a43?_0x5884f6['instant']('DASHBOARDS.RECALLME'):_0x5884f6['instant']('DASHBOARDS.RESCHEDULE'))}),_0x3562a0[_0x3b9d6c('0x11ed')]();})[_0xc403d('0x223b')](function(_0x5dd42b){var _0x1c439d=_0xc403d;_0x3562a0[_0x1c439d('0x2c1')](_0x5dd42b);})[_0xc403d('0x23')](function(){var _0xe0b757=_0xc403d;_0x1863ad[_0xe0b757('0x45e')]=![];});}function _0xb26269(){var _0x15b73d=_0x553749;_0x3562a0[_0x15b73d('0x2c1')]();}_0x1863ad[_0x553749('0x2584')]=_0xb26269,_0x1863ad[_0x553749('0x229')]=_0xdd2b98;}const _0x5bf94b=_0x4810f1;_0x373c3c[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x2493'),_0xb635d2('0xffc'),'contacts',_0xb635d2('0x1db4'),_0xb635d2('0xf65')];function _0x373c3c(_0x5560a5,_0x3d0e6c,_0x3b5bee,_0x298d55,_0x1b88d1,_0x4386b6){var _0x3873f2=_0xb635d2,_0x6abe2a=this;_0x6abe2a[_0x3873f2('0x1db4')]=_0x1b88d1,_0x6abe2a[_0x3873f2('0xc08')]=0x1;function _0x2819bf(){var _0x1c26d5=_0x3873f2;_0x3b5bee[_0x1c26d5('0x1bbd')]['get']({'fields':_0x1c26d5('0x104'),'nolimit':!![]})['$promise'][_0x1c26d5('0xe19')](function(_0x5b72eb){var _0x478d83=_0x1c26d5;_0x6abe2a[_0x478d83('0x9f8')]=_0x32d445()[_0x478d83('0x1b32')](_0x5b72eb['rows'])['keyBy']('id')['mapValues']('name')['value'](),_0x3b5bee['cmCustomField'][_0x478d83('0x22d5')]({'fields':_0x478d83('0x1fd5'),'nolimit':!![]})[_0x478d83('0xe59')][_0x478d83('0xe19')](function(_0x2965b8){var _0x5f13f5=_0x478d83;_0x6abe2a['customFields']=_0x2965b8[_0x5f13f5('0x16a7')],_0x6abe2a[_0x5f13f5('0x4b1')]=_0x32d445()[_0x5f13f5('0x65a')](_0x298d55,function(_0x412c82){var _0x20c87b=_0x5f13f5;return Object[_0x20c87b('0x1234')](_0x412c82)[_0x20c87b('0x1d7e')](function(_0x1be44f){var _0x3ffb28=_0x20c87b;if(Number(_0x412c82[_0x1be44f])===Number(_0x6abe2a['callNumber'])){if(_0x1be44f[_0x3ffb28('0x20b6')](_0x3ffb28('0x1441'))){var _0x521a80=_0x32d445()[_0x3ffb28('0xf15')](_0x6abe2a[_0x3ffb28('0x6f2')],['id',Number(_0x32d445()[_0x3ffb28('0x1cd0')](_0x1be44f,_0x3ffb28('0x1441')))]);_0x412c82[_0x3ffb28('0xed2')]=_0x521a80?_0x521a80[_0x3ffb28('0xbac')]:_0x3d0e6c['instant'](_0x3ffb28('0x27df'));}else _0x412c82[_0x3ffb28('0xed2')]=_0x1be44f;}}),_0x412c82;});});})[_0x1c26d5('0xe19')](function(){var _0x318c59=_0x1c26d5;_0x6abe2a[_0x318c59('0x457')]=_0x32d445()[_0x318c59('0xdff')](_0x298d55,0x4);})[_0x1c26d5('0x223b')](function(_0x33734a){var _0x35f72a=_0x1c26d5;_0x4386b6['error']({'title':_0x33734a[_0x35f72a('0x2833')]?'API:'+_0x33734a[_0x35f72a('0x2833')]+_0x35f72a('0x1b7c')+_0x33734a[_0x35f72a('0x1fd7')]:_0x35f72a('0x10c4'),'msg':_0x33734a[_0x35f72a('0x11d0')]?JSON[_0x35f72a('0x3ad')](_0x33734a[_0x35f72a('0x11d0')][_0x35f72a('0x27e8')]):_0x33734a['toString']()});});}function _0x52790a(){var _0x2ec86a=_0x3873f2;_0x5560a5[_0x2ec86a('0x11ed')](_0x6abe2a['selectedContact']);}_0x6abe2a[_0x3873f2('0x888')]=_0x2819bf,_0x6abe2a[_0x3873f2('0x1bb4')]=_0x52790a;}const _0x2fe5b9=_0x373c3c;_0x244625[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1c1a')];function _0x244625(_0x49da77,_0x501a3a){var _0x388958=_0xb635d2,_0x2a5922=_0x501a3a(function(){},0x3e7);_0x49da77[_0x388958('0xb2b')](_0x388958('0x5cd'),function(){var _0x16f845=_0x388958;_0x2a5922&&(_0x501a3a[_0x16f845('0x2c1')](_0x2a5922),_0x2a5922=null);});}const _0x224f75=_0x244625;_0xdef143[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2400'),_0xb635d2('0x2493'),'api',_0xb635d2('0x2730'),_0xb635d2('0x46d')];function _0xdef143(_0x5682e7,_0x18f431,_0x49cf81,_0x5e9e03,_0x5814ba,_0x318eab,_0x110cf5,_0x2d9d0e,_0x9db9c){var _0x35996e=_0xb635d2,_0x37863b=this;_0x37863b[_0x35996e('0x231f')]=![],_0x37863b[_0x35996e('0x23bd')]=!![],_0x37863b[_0x35996e('0x45e')]=[],_0x37863b[_0x35996e('0x24eb')]={'count':0x0,'rows':[]},_0x37863b[_0x35996e('0x15a5')]=_0x2d9d0e['getCurrentUser'](),_0x37863b['queues']={},_0x37863b[_0x35996e('0x1b69')]={'count':0x0,'rows':[]},_0x37863b[_0x35996e('0xa16')]={'fields':_0x35996e('0x137a'),'type':'outbound','queuecallerexitreason':_0x35996e('0x7ac')+','+_0x35996e('0x161a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x37863b['getAbandonedCalls']=_0x32d258,_0x37863b[_0x35996e('0x5b1')]=_0x4efbb8,_0x37863b[_0x35996e('0x888')]=_0x11537a,_0x37863b[_0x35996e('0x24f3')]=_0x138c70,_0x37863b[_0x35996e('0xd1b')]=_0x413b6a,_0x37863b['call']=_0x5682e7[_0x35996e('0x5cf')]['$parent'][_0x35996e('0x5cf')][_0x35996e('0x5cf')]['vm']['call'],_0x37863b[_0x35996e('0xf1b')]=_0x5682e7[_0x35996e('0x5cf')][_0x35996e('0x5cf')][_0x35996e('0x5cf')]['$parent']['vm'][_0x35996e('0xf1b')],_0x37863b[_0x35996e('0x1113')]=_0x5682e7[_0x35996e('0x5cf')]['$parent'][_0x35996e('0x5cf')][_0x35996e('0x5cf')]['vm'][_0x35996e('0x1113')],_0x37863b[_0x35996e('0x3cd')]=_0x5682e7[_0x35996e('0x5cf')][_0x35996e('0x5cf')][_0x35996e('0x5cf')][_0x35996e('0x5cf')]['vm']['webtransfer'],_0x37863b[_0x35996e('0x1987')]=_0x32b9bd,_0x37863b[_0x35996e('0x2846')]=_0x4371af,_0x9db9c[_0x35996e('0x4df')](_0x35996e('0x24e2'),_0x309bbf),_0x9db9c[_0x35996e('0x4df')](_0x35996e('0x18ad'),_0x5cd31f),_0x11537a();function _0x11537a(){var _0x6df6f4=_0x35996e;return _0x110cf5[_0x6df6f4('0x2506')][_0x6df6f4('0x22d5')]({'MailAccountId':_0x6df6f4('0x1046'),'FaxAccountId':_0x6df6f4('0x1046'),'SmsAccountId':_0x6df6f4('0x1046'),'WhatsappAccountId':_0x6df6f4('0x1046'),'OpenchannelAccountId':_0x6df6f4('0x1046'),'ChatWebsiteId':'null'})['$promise'][_0x6df6f4('0xe19')](function(_0x1ead5e){var _0x49e0a6=_0x6df6f4;return _0x37863b[_0x49e0a6('0x24eb')]=_0x1ead5e?_0x1ead5e[_0x49e0a6('0x16a7')]:[],_0x110cf5[_0x49e0a6('0x10c6')][_0x49e0a6('0x23cf')]({'id':_0x2d9d0e['getCurrentUser']()['id'],'fields':'id,name','channel':_0x49e0a6('0xe74'),'type':_0x49e0a6('0x1fdf'),'nolimit':!![]})['$promise'];})[_0x6df6f4('0xe19')](function(_0x550aa4){var _0x1ae205=_0x6df6f4;_0x37863b['queues']=_0x550aa4||{'count':0x0,'rows':[]},_0x37863b[_0x1ae205('0x46b')]=_0x32d445()[_0x1ae205('0x2483')](_0x32d445()[_0x1ae205('0x226f')](_0x37863b[_0x1ae205('0x671')][_0x1ae205('0x16a7')],_0x1ae205('0x2623')),_0x1ae205('0x2623')),_0x37863b[_0x1ae205('0xdd2')]=_0x37863b[_0x1ae205('0x671')]['rows']?_0x32d445()[_0x1ae205('0x65a')](_0x37863b[_0x1ae205('0x671')]['rows'],_0x1ae205('0x2623'))['join'](','):undefined;})[_0x6df6f4('0xe19')](function(){var _0x4f9b02=_0x6df6f4;_0x37863b[_0x4f9b02('0x1fd3')]=_0x3445e2();})[_0x6df6f4('0x223b')](function(_0x4a6e3a){var _0x5bb541=_0x6df6f4;console[_0x5bb541('0x1fe9')](_0x4a6e3a);})[_0x6df6f4('0x23')](function(){var _0x4fd526=_0x6df6f4,_0x3d7159=_0x5814ba['localStorage'][_0x4fd526('0x2208')]('motion2.home.abandoned.bull.calls:'+_0x37863b[_0x4fd526('0x15a5')]['id']);if(_0x3d7159)_0x3d7159=JSON['parse'](_0x3d7159),_0x3d7159['query']&&(_0x37863b[_0x4fd526('0xa16')]=_0x32d445()[_0x4fd526('0x1d8')](_0x3d7159[_0x4fd526('0xa16')],_0x32d445()[_0x4fd526('0x23e3')](_0x37863b[_0x4fd526('0xa16')],[_0x4fd526('0x9f6'),'limit',_0x4fd526('0xc08')])),_0x37863b[_0x4fd526('0xa16')]=_0x32d445()['omit'](_0x37863b[_0x4fd526('0xa16')],_0x4fd526('0x2891')));else{var _0x3ce94a={'$gte':_0x4ddcaa()()[_0x4fd526('0x21b1')]('month')['utcOffset'](0x0,!![])[_0x4fd526('0x5e5')](),'$lte':_0x4ddcaa()()[_0x4fd526('0x270')](_0x4fd526('0x211c'))[_0x4fd526('0x1e9e')](0x0,!![])[_0x4fd526('0x5e5')]()};_0x37863b['query']['createdAt']=_0x3ce94a;}_0x37863b[_0x4fd526('0x1a1d')]=_0x37863b['query']['filter']?!![]:![],_0x37863b[_0x4fd526('0x26f5')]();});}function _0x3445e2(){var _0x89f394=_0x35996e;return[{'name':_0x89f394('0x141d'),'key':_0x89f394('0x15c9'),'type':_0x89f394('0xf6d'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x89f394('0x142e'),'key':'UserId','type':_0x89f394('0x2e6'),'label':_0x89f394('0x120c'),'customOptions':[{'value':_0x37863b[_0x89f394('0x15a5')]['id'],'translate':_0x89f394('0x132d')},{'value':_0x89f394('0x31a'),'translate':_0x89f394('0x2094')},{'value':undefined,'translate':_0x89f394('0x296')}]},{'name':'Campaign','key':'queue','type':_0x89f394('0x19a0'),'label':_0x89f394('0x2541'),'options':_0x37863b[_0x89f394('0x671')][_0x89f394('0x16a7')],'ngValue':_0x89f394('0x2623'),'clearAll':![]}];}function _0x32d258(){var _0x31e788=_0x35996e;_0x37863b[_0x31e788('0xa16')][_0x31e788('0x26a8')]=_0x37863b[_0x31e788('0xa16')][_0x31e788('0x26a8')]||_0x37863b[_0x31e788('0xdd2')][_0x31e788('0x1745')](','),_0x37863b['query'][_0x31e788('0xab0')]=(_0x37863b[_0x31e788('0xa16')][_0x31e788('0xc08')]-0x1)*_0x37863b[_0x31e788('0xa16')]['limit'];var _0x2c20a4={'query':_0x37863b[_0x31e788('0xa16')]};_0x5814ba[_0x31e788('0x4f9')][_0x31e788('0x95e')]('motion2.home.abandoned.bull.calls:'+_0x37863b[_0x31e788('0x15a5')]['id'],JSON[_0x31e788('0x3ad')](_0x2c20a4)),_0x37863b[_0x31e788('0x9c8')]=_0x110cf5[_0x31e788('0xba')]['getVoiceQueuesReport'](_0x37863b[_0x31e788('0xa16')],_0x2e4f75)[_0x31e788('0xe59')];}function _0x2e4f75(_0x45309d){var _0x879427=_0x35996e;_0x37863b[_0x879427('0x1b69')]=_0x45309d||{'count':0x0,'rows':[]},_0x37863b['refresh']=!![];}function _0x413b6a(_0x3c39ba){var _0x5dca75=_0x35996e;_0x49cf81[_0x5dca75('0x26b2')]({'controller':_0x5dca75('0x26da'),'controllerAs':'vm','templateUrl':_0x5dca75('0x2136'),'parent':angular[_0x5dca75('0x24a1')](_0x5e9e03[_0x5dca75('0x19b2')]),'targetEvent':_0x3c39ba,'resolve':{'globalDispositions':['apiResolver',function _0x594656(_0x6c2a94){var _0x587125=_0x5dca75;return _0x6c2a94['resolve']('disposition@get',{'MailAccountId':_0x587125('0x1046'),'FaxAccountId':'null','SmsAccountId':'null','WhatsappAccountId':_0x587125('0x1046'),'OpenchannelAccountId':_0x587125('0x1046'),'ChatWebsiteId':_0x587125('0x1046'),'ListId':_0x587125('0x1046')});}]},'locals':{'dispositions':_0x37863b[_0x5dca75('0x24eb')],'call':_0x3c39ba}})[_0x5dca75('0xe19')](function(_0x39dbc4){var _0xcb7ea9=_0x5dca75;if(_0x39dbc4){_0x37863b['disable'][_0x3c39ba['id']]=!![];var _0x3e7889={'id':_0x3c39ba['id'],'lastAssignedTo':_0x3c39ba[_0xcb7ea9('0x2b9')]?_0x37863b[_0xcb7ea9('0x15a5')][_0xcb7ea9('0x2623')]:null,'assigned':_0x3c39ba['assigned'],'disposition':_0x39dbc4[_0xcb7ea9('0x11f')]||null,'secondDisposition':_0x39dbc4['secondLevel']||null,'thirdDisposition':_0x39dbc4[_0xcb7ea9('0x1066')]||null};_0x110cf5[_0xcb7ea9('0xba')]['update'](_0x3e7889)['$promise'][_0xcb7ea9('0x223b')](function(_0x147bb2){console['log'](_0x147bb2);})[_0xcb7ea9('0x23')](function(){var _0x38fa4d=_0xcb7ea9;_0x37863b[_0x38fa4d('0x45e')][_0x3c39ba['id']]=![];});}});}function _0x32b9bd(){var _0x367407=_0x35996e;_0x37863b[_0x367407('0xa16')][_0x367407('0x2891')]=undefined,_0x37863b[_0x367407('0x1a1d')]=![];}function _0x4371af(){var _0x2bf379=_0x35996e;_0x37863b[_0x2bf379('0x1a1d')]=!![];}var _0x3c6ba4=!![],_0x485bfb=0x1;_0x5682e7[_0x35996e('0x107')](_0x35996e('0x245b'),function(_0x3f4f20,_0x595597){var _0x2f4d0a=_0x35996e;_0x3c6ba4?_0x18f431(function(){_0x3c6ba4=![];}):(!_0x595597&&(_0x485bfb=_0x37863b[_0x2f4d0a('0xa16')][_0x2f4d0a('0xc08')]),_0x3f4f20!==_0x595597&&(_0x37863b['query'][_0x2f4d0a('0xc08')]=0x1),!_0x3f4f20&&(_0x37863b['query'][_0x2f4d0a('0xc08')]=_0x485bfb),_0x37863b[_0x2f4d0a('0x26f5')]());});function _0x4efbb8(){var _0x2ddc0f=_0x35996e;_0x37863b[_0x2ddc0f('0x231f')]=![],_0x37863b['getAbandonedCalls']();}function _0x138c70(_0x8d21ed){var _0x415db3=_0x35996e;_0x8d21ed&&(_0x37863b[_0x415db3('0x45e')][_0x8d21ed['id']]=!![],_0x110cf5[_0x415db3('0xba')][_0x415db3('0xa70')]({'id':_0x8d21ed['id'],'lastAssignedTo':_0x8d21ed['assigned']?_0x37863b[_0x415db3('0x15a5')][_0x415db3('0x2623')]:null,'assigned':_0x8d21ed[_0x415db3('0x2b9')]})['$promise'][_0x415db3('0x223b')](function(_0xf652a2){var _0x439b24=_0x415db3;console[_0x439b24('0x1fe9')](_0xf652a2);})[_0x415db3('0x23')](function(){_0x37863b['disable'][_0x8d21ed['id']]=![];}));}function _0x309bbf(_0xf48d59){var _0xf697ac=_0x35996e;_0x37863b[_0xf697ac('0x46b')]&&_0xf48d59[_0xf697ac('0x62e')]==='outbound'&&_0x37863b[_0xf697ac('0x46b')][_0xf48d59[_0xf697ac('0x26a8')]]&&(_0x37863b[_0xf697ac('0x231f')]=!![]);}function _0x5cd31f(_0x4649b4){var _0x18590d=_0x35996e;if(_0x4649b4){var _0x1a0aba=_0x32d445()[_0x18590d('0x8d3')](_0x37863b[_0x18590d('0x1b69')][_0x18590d('0x16a7')],['id',_0x4649b4['id']]);_0x1a0aba>=0x0&&_0x32d445()['merge'](_0x37863b['abandonedCalls'][_0x18590d('0x16a7')][_0x1a0aba],_0x4649b4);}}_0x5682e7[_0x35996e('0xb2b')]('$destroy',function(){var _0x105961=_0x35996e;_0x9db9c[_0x105961('0x2121')](_0x105961('0x24e2')),_0x9db9c[_0x105961('0x2121')]('voiceQueueReport:update');});}const _0x481f01=_0xdef143;_0x2c7304[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x24eb'),_0xb635d2('0xeeb'),_0xb635d2('0x20c4')];function _0x2c7304(_0x578eee,_0x3e634d,_0x308ac6,_0x46f21b){var _0x1ba5eb=_0xb635d2,_0x305a0a=this;_0x305a0a['dispositions']=_0x3e634d[_0x1ba5eb('0x16a7')],_0x305a0a[_0x1ba5eb('0xeeb')]=_0x308ac6[_0x1ba5eb('0x16a7')],_0x305a0a[_0x1ba5eb('0x20c4')]=_0x46f21b,_0x305a0a[_0x1ba5eb('0x9fd')]=_0x305a0a['call'][_0x1ba5eb('0x9fd')]||undefined,_0x305a0a[_0x1ba5eb('0x22a1')]=_0x4a973d,_0x305a0a[_0x1ba5eb('0x2197')]=_0x9e3cd8,_0x305a0a[_0x1ba5eb('0x3d9')]=_0x4fb2d2,_0x305a0a[_0x1ba5eb('0x2584')]=_0x5ac75e;function _0x4a973d(_0x106daa){var _0x2967d2=_0x1ba5eb,_0x1e0813=_0x32d445()[_0x2967d2('0x2535')](_0x305a0a['dispositions'],_0x305a0a[_0x2967d2('0xeeb')],'id');switch(_0x106daa){case _0x2967d2('0x2325'):_0x305a0a[_0x2967d2('0x248c')]=_0x305a0a[_0x2967d2('0xeac')],_0x305a0a[_0x2967d2('0x27e1')]=_0x32d445()[_0x2967d2('0x201a')](_0x1e0813,[_0x2967d2('0x2450'),_0x305a0a['firstLevelDisposition']['id']]),_0x305a0a[_0x2967d2('0x2625')]=undefined,_0x305a0a[_0x2967d2('0xcec')]=undefined,_0x305a0a[_0x2967d2('0x161b')]=![];break;case'second':_0x305a0a['selectedDisposition']=_0x305a0a[_0x2967d2('0x2625')],_0x305a0a[_0x2967d2('0x161b')]=_0x32d445()['some'](_0x1e0813,['ParentId',_0x305a0a['secondLevelDisposition']['id']]);break;case _0x2967d2('0x2038'):_0x305a0a[_0x2967d2('0x248c')]=_0x305a0a[_0x2967d2('0xcec')];break;}}function _0x9e3cd8(_0x4d3e80){var _0x5ae94b=_0x1ba5eb;if(_0x4d3e80===_0x5ae94b('0x1be'))_0x305a0a[_0x5ae94b('0x2625')]=undefined,_0x305a0a[_0x5ae94b('0xcec')]=undefined,_0x305a0a[_0x5ae94b('0x248c')]=_0x305a0a[_0x5ae94b('0xeac')];else _0x4d3e80===_0x5ae94b('0x2038')&&(_0x305a0a[_0x5ae94b('0xcec')]=undefined,_0x305a0a[_0x5ae94b('0x248c')]=_0x305a0a[_0x5ae94b('0x2625')]);}function _0x4fb2d2(){var _0x2d4845=_0x1ba5eb;_0x305a0a['call'][_0x2d4845('0x9fd')]=_0x305a0a[_0x2d4845('0x9fd')];var _0xa47ca5={'firstLevel':_0x305a0a[_0x2d4845('0xeac')]?_0x305a0a['firstLevelDisposition'][_0x2d4845('0x2623')]:undefined,'secondLevel':_0x305a0a[_0x2d4845('0x2625')]?_0x305a0a['secondLevelDisposition'][_0x2d4845('0x2623')]:undefined,'thirdLevel':_0x305a0a[_0x2d4845('0xcec')]?_0x305a0a[_0x2d4845('0xcec')][_0x2d4845('0x2623')]:undefined};_0x578eee[_0x2d4845('0x11ed')](_0xa47ca5);}function _0x5ac75e(){var _0x579162=_0x1ba5eb;_0x578eee[_0x579162('0x2c1')]();}}const _0x5458b4=_0x2c7304;_0x3257f0[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2400'),'$translate',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x46d')];function _0x3257f0(_0x3e849f,_0x3f3acf,_0x1bcc7b,_0x54433c,_0x5b8f1c,_0x104c73,_0x31a8aa,_0x379199,_0x483b93){var _0x5b0ffa=_0xb635d2,_0x41d362=this;_0x41d362[_0x5b0ffa('0x231f')]=![],_0x41d362['refresh']=!![],_0x41d362[_0x5b0ffa('0x45e')]=[],_0x41d362[_0x5b0ffa('0x24eb')]={'count':0x0,'rows':[]},_0x41d362[_0x5b0ffa('0x15a5')]=_0x379199[_0x5b0ffa('0x1ef8')](),_0x41d362[_0x5b0ffa('0x671')]={},_0x41d362[_0x5b0ffa('0x1b69')]={'count':0x0,'rows':[]},_0x41d362[_0x5b0ffa('0xa16')]={'fields':'id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','type':_0x5b0ffa('0x1a7a'),'queuecallerexitreason':_0x5b0ffa('0x7ac')+','+_0x5b0ffa('0x161a'),'sort':_0x5b0ffa('0x7e8'),'limit':0xa,'page':0x1},_0x41d362[_0x5b0ffa('0x26f5')]=_0x450ae8,_0x41d362['refreshAbandonedCalls']=_0x1054aa,_0x41d362[_0x5b0ffa('0x888')]=_0x409175,_0x41d362[_0x5b0ffa('0x24f3')]=_0x34964d,_0x41d362[_0x5b0ffa('0xd1b')]=_0x1a0d69,_0x41d362[_0x5b0ffa('0x20c4')]=_0x3e849f[_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')]['vm'][_0x5b0ffa('0x20c4')],_0x41d362[_0x5b0ffa('0xf1b')]=_0x3e849f[_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')]['vm']['transfer'],_0x41d362[_0x5b0ffa('0x1113')]=_0x3e849f[_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')]['$parent']['vm'][_0x5b0ffa('0x1113')],_0x41d362['webtransfer']=_0x3e849f[_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')][_0x5b0ffa('0x5cf')]['vm'][_0x5b0ffa('0x3cd')],_0x41d362[_0x5b0ffa('0x1987')]=_0x4b08b7,_0x41d362['onSearchBarExpand']=_0x101dff,_0x483b93[_0x5b0ffa('0x4df')](_0x5b0ffa('0x24e2'),_0x2199c0),_0x483b93['onWithoutApply']('voiceQueueReport:update',_0x200216),_0x409175();function _0x409175(){var _0x417d2c=_0x5b0ffa;return _0x31a8aa[_0x417d2c('0x2506')][_0x417d2c('0x22d5')]({'MailAccountId':_0x417d2c('0x1046'),'FaxAccountId':_0x417d2c('0x1046'),'SmsAccountId':_0x417d2c('0x1046'),'WhatsappAccountId':_0x417d2c('0x1046'),'OpenchannelAccountId':_0x417d2c('0x1046'),'ChatWebsiteId':_0x417d2c('0x1046')})['$promise'][_0x417d2c('0xe19')](function(_0x4eaafd){var _0x1392ce=_0x417d2c;return _0x41d362[_0x1392ce('0x24eb')]=_0x4eaafd?_0x4eaafd[_0x1392ce('0x16a7')]:[],_0x31a8aa[_0x1392ce('0x10c6')]['getQueues']({'id':_0x379199[_0x1392ce('0x1ef8')]()['id'],'fields':_0x1392ce('0x104'),'channel':'voice','type':_0x1392ce('0x1a7a'),'nolimit':!![]})[_0x1392ce('0xe59')];})[_0x417d2c('0xe19')](function(_0x132f9d){var _0x3847ff=_0x417d2c;_0x41d362[_0x3847ff('0x671')]=_0x132f9d||{'count':0x0,'rows':[]},_0x41d362[_0x3847ff('0x46b')]=_0x32d445()[_0x3847ff('0x2483')](_0x32d445()[_0x3847ff('0x226f')](_0x41d362[_0x3847ff('0x671')]['rows'],_0x3847ff('0x2623')),_0x3847ff('0x2623')),_0x41d362[_0x3847ff('0xdd2')]=_0x41d362[_0x3847ff('0x671')][_0x3847ff('0x16a7')]?_0x32d445()[_0x3847ff('0x65a')](_0x41d362[_0x3847ff('0x671')][_0x3847ff('0x16a7')],_0x3847ff('0x2623'))['join'](','):undefined;})[_0x417d2c('0xe19')](function(){var _0x1baac8=_0x417d2c;_0x41d362[_0x1baac8('0x1fd3')]=_0x8ec640();})[_0x417d2c('0x223b')](function(_0x2816cc){console['log'](_0x2816cc);})[_0x417d2c('0x23')](function(){var _0x36e89d=_0x417d2c,_0x5ba236=_0x5b8f1c[_0x36e89d('0x4f9')]['getItem'](_0x36e89d('0x19a8')+_0x41d362[_0x36e89d('0x15a5')]['id']);if(_0x5ba236)_0x5ba236=JSON[_0x36e89d('0x118e')](_0x5ba236),_0x5ba236[_0x36e89d('0xa16')]&&(_0x41d362[_0x36e89d('0xa16')]=_0x32d445()[_0x36e89d('0x1d8')](_0x5ba236[_0x36e89d('0xa16')],_0x32d445()[_0x36e89d('0x23e3')](_0x41d362[_0x36e89d('0xa16')],[_0x36e89d('0x9f6'),_0x36e89d('0x1b6d'),_0x36e89d('0xc08')])),_0x41d362['query']=_0x32d445()[_0x36e89d('0x23e3')](_0x41d362[_0x36e89d('0xa16')],_0x36e89d('0x2891')));else{var _0x4002f6={'$gte':_0x4ddcaa()()[_0x36e89d('0x21b1')](_0x36e89d('0x211c'))[_0x36e89d('0x1e9e')](0x0,!![])[_0x36e89d('0x5e5')](),'$lte':_0x4ddcaa()()[_0x36e89d('0x270')](_0x36e89d('0x211c'))[_0x36e89d('0x1e9e')](0x0,!![])[_0x36e89d('0x5e5')]()};_0x41d362[_0x36e89d('0xa16')]['createdAt']=_0x4002f6;}_0x41d362[_0x36e89d('0x1a1d')]=_0x41d362[_0x36e89d('0xa16')][_0x36e89d('0x2891')]?!![]:![],_0x41d362[_0x36e89d('0x26f5')]();});}function _0x8ec640(){var _0xd965a3=_0x5b0ffa;return[{'name':'Start\x20Date','key':'createdAt','type':_0xd965a3('0xf6d'),'label':_0xd965a3('0x19b7')},{'name':'Agent','key':_0xd965a3('0x43d'),'type':_0xd965a3('0x2e6'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x41d362['currentUser']['id'],'translate':_0xd965a3('0x132d')},{'value':_0xd965a3('0x31a'),'translate':_0xd965a3('0x2094')},{'value':undefined,'translate':_0xd965a3('0x296')}]},{'name':'Campaign','key':_0xd965a3('0x26a8'),'type':_0xd965a3('0x19a0'),'label':_0xd965a3('0x260c'),'options':_0x41d362['queues']['rows'],'ngValue':_0xd965a3('0x2623'),'clearAll':![]}];}function _0x450ae8(){var _0x3905a3=_0x5b0ffa;_0x41d362[_0x3905a3('0xa16')][_0x3905a3('0x26a8')]=_0x41d362['query'][_0x3905a3('0x26a8')]||_0x41d362[_0x3905a3('0xdd2')][_0x3905a3('0x1745')](','),_0x41d362[_0x3905a3('0xa16')][_0x3905a3('0xab0')]=(_0x41d362[_0x3905a3('0xa16')][_0x3905a3('0xc08')]-0x1)*_0x41d362['query'][_0x3905a3('0x1b6d')];var _0x1903af={'query':_0x41d362[_0x3905a3('0xa16')]};_0x5b8f1c[_0x3905a3('0x4f9')][_0x3905a3('0x95e')]('motion2.home.abandoned.voice.calls:'+_0x41d362[_0x3905a3('0x15a5')]['id'],JSON[_0x3905a3('0x3ad')](_0x1903af)),_0x41d362[_0x3905a3('0x9c8')]=_0x31a8aa[_0x3905a3('0xba')][_0x3905a3('0x3d0')](_0x41d362[_0x3905a3('0xa16')],_0x1423e9)[_0x3905a3('0xe59')];}function _0x1423e9(_0x84351){var _0x2ff7f7=_0x5b0ffa;_0x41d362[_0x2ff7f7('0x1b69')]=_0x84351||{'count':0x0,'rows':[]},_0x41d362[_0x2ff7f7('0x23bd')]=!![];}function _0x1a0d69(_0x3b377d){var _0x5b1af8=_0x5b0ffa;_0x1bcc7b['show']({'controller':_0x5b1af8('0x26da'),'controllerAs':'vm','templateUrl':_0x5b1af8('0x2136'),'parent':angular['element'](_0x54433c[_0x5b1af8('0x19b2')]),'targetEvent':_0x3b377d,'resolve':{'globalDispositions':[_0x5b1af8('0x292'),function _0x31e7fe(_0x1a3210){var _0x5edc49=_0x5b1af8;return _0x1a3210[_0x5edc49('0xcd6')](_0x5edc49('0xb91'),{'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x5edc49('0x1046'),'WhatsappAccountId':'null','OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':_0x5edc49('0x1046')});}]},'locals':{'dispositions':_0x41d362[_0x5b1af8('0x24eb')],'call':_0x3b377d}})['then'](function(_0x15bcad){var _0x126bce=_0x5b1af8;if(_0x15bcad){_0x41d362['disable'][_0x3b377d['id']]=!![];var _0x1ae91d={'id':_0x3b377d['id'],'lastAssignedTo':_0x3b377d['assigned']?_0x41d362['currentUser'][_0x126bce('0x2623')]:null,'assigned':_0x3b377d[_0x126bce('0x2b9')],'disposition':_0x15bcad[_0x126bce('0x11f')]||null,'secondDisposition':_0x15bcad['secondLevel']||null,'thirdDisposition':_0x15bcad[_0x126bce('0x1066')]||null};_0x31a8aa[_0x126bce('0xba')][_0x126bce('0xa70')](_0x1ae91d)[_0x126bce('0xe59')][_0x126bce('0x223b')](function(_0x210b4c){var _0x122b69=_0x126bce;console[_0x122b69('0x1fe9')](_0x210b4c);})[_0x126bce('0x23')](function(){var _0x563244=_0x126bce;_0x41d362[_0x563244('0x45e')][_0x3b377d['id']]=![];});}});}function _0x4b08b7(){var _0x90f256=_0x5b0ffa;_0x41d362['query'][_0x90f256('0x2891')]=undefined,_0x41d362[_0x90f256('0x1a1d')]=![];}function _0x101dff(){var _0x549b1f=_0x5b0ffa;_0x41d362[_0x549b1f('0x1a1d')]=!![];}var _0x270d7f=!![],_0x522b99=0x1;_0x3e849f[_0x5b0ffa('0x107')](_0x5b0ffa('0x1d44'),function(_0x38fdbf,_0x598ebe){var _0x5622c9=_0x5b0ffa;_0x270d7f?_0x3f3acf(function(){_0x270d7f=![];}):(!_0x598ebe&&(_0x522b99=_0x41d362[_0x5622c9('0xa16')][_0x5622c9('0xc08')]),_0x38fdbf!==_0x598ebe&&(_0x41d362[_0x5622c9('0xa16')][_0x5622c9('0xc08')]=0x1),!_0x38fdbf&&(_0x41d362[_0x5622c9('0xa16')][_0x5622c9('0xc08')]=_0x522b99),_0x41d362['getAbandonedCalls']());});function _0x1054aa(){var _0x1757ec=_0x5b0ffa;_0x41d362['showTooltip']=![],_0x41d362[_0x1757ec('0x26f5')]();}function _0x34964d(_0x4d21a1){var _0x5d8bc5=_0x5b0ffa;_0x4d21a1&&(_0x41d362['disable'][_0x4d21a1['id']]=!![],_0x31a8aa[_0x5d8bc5('0xba')][_0x5d8bc5('0xa70')]({'id':_0x4d21a1['id'],'lastAssignedTo':_0x4d21a1['assigned']?_0x41d362[_0x5d8bc5('0x15a5')][_0x5d8bc5('0x2623')]:null,'assigned':_0x4d21a1[_0x5d8bc5('0x2b9')]})[_0x5d8bc5('0xe59')][_0x5d8bc5('0x223b')](function(_0x534c7b){var _0x488def=_0x5d8bc5;console[_0x488def('0x1fe9')](_0x534c7b);})[_0x5d8bc5('0x23')](function(){var _0x49f513=_0x5d8bc5;_0x41d362[_0x49f513('0x45e')][_0x4d21a1['id']]=![];}));}function _0x2199c0(_0x36af65){var _0x38704b=_0x5b0ffa;_0x41d362[_0x38704b('0x46b')]&&_0x36af65['type']===_0x38704b('0x1a7a')&&_0x41d362['queuesMap'][_0x36af65[_0x38704b('0x26a8')]]&&(_0x41d362[_0x38704b('0x231f')]=!![]);}function _0x200216(_0x3a87f2){var _0x22456b=_0x5b0ffa;if(_0x3a87f2){var _0x1d16ad=_0x32d445()[_0x22456b('0x8d3')](_0x41d362['abandonedCalls']['rows'],['id',_0x3a87f2['id']]);_0x1d16ad>=0x0&&_0x32d445()[_0x22456b('0x1d8')](_0x41d362[_0x22456b('0x1b69')]['rows'][_0x1d16ad],_0x3a87f2);}}_0x3e849f[_0x5b0ffa('0xb2b')](_0x5b0ffa('0x5cd'),function(){var _0x592b6c=_0x5b0ffa;_0x483b93[_0x592b6c('0x2121')]('voiceQueueReport:save'),_0x483b93[_0x592b6c('0x2121')](_0x592b6c('0x18ad'));});}const _0x124ff7=_0x3257f0;_0x502d75['$inject']=['$scope',_0xb635d2('0x2400'),'Auth',_0xb635d2('0x2644'),_0xb635d2('0x1a90')];function _0x502d75(_0x5a02cd,_0x1b0975,_0x39290a,_0x30acc4,_0x420e93){var _0x36bcec=_0xb635d2,_0x674249=this;_0x674249['user']=_0x39290a[_0x36bcec('0x1ef8')](),_0x674249[_0x36bcec('0x5c1')]={},_0x674249[_0x36bcec('0x17f2')]={},_0x674249['setting']={},_0x674249[_0x36bcec('0x758')]=_0x36bcec('0xe6c'),_0x674249[_0x36bcec('0x1a90')]=_0x420e93,_0x674249['navigation']=_0x30acc4['getNavigation'](),_0x674249[_0x36bcec('0x8be')]=_0x5a02cd['$parent']['vm'][_0x36bcec('0x8be')],_0x674249['addInteractionTab']=_0x5a02cd[_0x36bcec('0x5cf')]['vm']['addInteractionTab'],_0x674249[_0x36bcec('0x15f9')]=_0x56a112,_0x674249[_0x36bcec('0x2253')]=_0x5143fd,_0x674249[_0x36bcec('0xe87')]=_0x3ea249;function _0x56a112(_0x331729,_0x28b6c9){var _0x56a047=_0x36bcec;_0x674249[_0x56a047('0x5c1')]=_0x331729,_0x674249['setting']=_0x28b6c9;var _0x23e6ab=_0x1b0975[_0x56a047('0x4f9')]['getItem'](_0x56a047('0x1308')+_0x674249[_0x56a047('0x10c6')]['id']);if(_0x23e6ab){try{_0x23e6ab=JSON[_0x56a047('0x118e')](_0x23e6ab),_0x674249[_0x56a047('0x758')]=_0x23e6ab[_0x56a047('0x169e')]?_0x23e6ab[_0x56a047('0x169e')]:_0x56a047('0xe6c');}catch(_0x16d8c3){console['error'](_0x16d8c3),_0x674249[_0x56a047('0x758')]=_0x56a047('0xe6c');}_0x674249[_0x56a047('0x758')]==='mail'&&_0x674249[_0x56a047('0x1a90')][_0x56a047('0x15f9')]();}}function _0x3ea249(_0x58b066){return _0x39290a['hasPermission'](_0x58b066);}function _0x5143fd(_0xb1460f){var _0x7db128=_0x36bcec;_0x674249[_0x7db128('0x758')]=_0xb1460f[_0x7db128('0x22c')],_0x674249[_0x7db128('0x758')]===_0x7db128('0x17f2')&&(_0x674249[_0x7db128('0x17f2')]=_0xb1460f['stateParams'],_0x674249[_0x7db128('0x1d7')]=_0xb1460f['id'],_0x5a02cd[_0x7db128('0xa98')](_0x7db128('0x1448'),{'plugin':_0x674249['plugin']})),_0x1b0975[_0x7db128('0x4f9')][_0x7db128('0x95e')](_0x7db128('0x1308')+_0x674249[_0x7db128('0x10c6')]['id'],JSON[_0x7db128('0x3ad')]({'currentSidebarTab':_0xb1460f['view']}));}_0x5a02cd[_0x36bcec('0x107')]('vm_home.sidebar',function(_0x41283a){var _0x183981=_0x36bcec;_0x41283a===_0x183981('0x26bf')?_0x674249['draftManager'][_0x183981('0x15f9')]():_0x674249[_0x183981('0x1a90')][_0x183981('0x26a')]={};});}const _0x175bb7=_0x502d75,_0x5c468d=_0x59426a['p']+'src/js/modules/core/dialogs/advanced-search/dialog.html/dialog-[chunkhash].html';_0x359803['$inject']=['$scope','$timeout','$mdDialog','$document',_0xb635d2('0x2400'),'$translate','api',_0xb635d2('0x2730'),_0xb635d2('0x46d'),_0xb635d2('0xf65')];function _0x359803(_0x3db7da,_0x18ce75,_0x24bcf5,_0x4dc360,_0x556ce2,_0xbf1602,_0x1dbc95,_0x34c30f,_0x49cf70,_0x527160){var _0x59a065=_0xb635d2,_0x3bb91=this;_0x3bb91[_0x59a065('0x10c6')]=_0x34c30f['getCurrentUser'](),_0x3bb91[_0x59a065('0x5c1')]={},_0x3bb91[_0x59a065('0x22f1')]={},_0x3bb91[_0x59a065('0x1105')]={'count':0x0,'rows':[]},_0x3bb91[_0x59a065('0xdd3')]={'count':0x0,'rows':[]},_0x3bb91[_0x59a065('0xa16')]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x3bb91['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x59a065('0x1c60')},{'name':_0x59a065('0x1286'),'column':_0x59a065('0x1286'),'type':'autocomplete','options':{'searchFields':['firstName',_0x59a065('0x151f'),_0x59a065('0x1211')],'route':{'model':_0x59a065('0x1711'),'action':_0x59a065('0x22d5'),'params':{'fields':_0x59a065('0x75'),'Contact':_0x59a065('0x217d'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x59a065('0x1f51')]}},{'name':'Body','column':_0x59a065('0x19b2'),'type':_0x59a065('0x1bc6'),'options':{'excludedOperators':[_0x59a065('0x1d15'),_0x59a065('0x1f51')]}},{'name':_0x59a065('0x20e'),'column':_0x59a065('0x1835'),'type':_0x59a065('0x2e6'),'values':[{'id':0x0,'translate':_0x59a065('0x1c37')},{'id':0x1,'translate':_0x59a065('0x1bbb')}],'options':{'excludedOperators':['$ne']}},{'name':'Customer\x20Ip','column':_0x59a065('0x102'),'type':_0x59a065('0x1bc6'),'options':{'excludedOperators':['$eq',_0x59a065('0x1f51'),_0x59a065('0x14d0'),'$endsWith']}},{'name':_0x59a065('0x142e'),'column':_0x59a065('0x2630'),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':_0x59a065('0x22d5'),'params':{'role':_0x59a065('0x108'),'fields':_0x59a065('0x194c'),'nolimit':!![]}},'searchFields':[_0x59a065('0xe11'),_0x59a065('0x2623')],'extraOperators':[_0x59a065('0x1247')],'excludedOperators':[_0x59a065('0x1f51')]}},{'name':_0x59a065('0x186c'),'column':_0x59a065('0x365'),'type':'multiselect','options':{'route':{'model':_0x59a065('0x10c6'),'action':_0x59a065('0x18a5'),'params':{'id':_0x3bb91[_0x59a065('0x10c6')]['id'],'nolimit':!![]}}}},{'name':_0x59a065('0x1e7b'),'column':_0x59a065('0x1172'),'type':_0x59a065('0x19a0'),'options':{'route':{'model':_0x59a065('0x2037'),'action':_0x59a065('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x59a065('0x19a3')]}},{'name':'Start\x20Date','column':_0x59a065('0x15c9'),'type':_0x59a065('0xf6d'),'options':{'excludedOperators':[_0x59a065('0x1f51')]}},{'name':_0x59a065('0x2233'),'column':_0x59a065('0x98d'),'type':_0x59a065('0x2e6'),'values':[{'id':0x1,'translate':_0x59a065('0x3b4')},{'id':0x0,'translate':_0x59a065('0x10db')}],'options':{'excludedOperators':[_0x59a065('0x1f51')]}}]},_0x3bb91[_0x59a065('0x1231')]=_0x59a065('0x26ee'),_0x3bb91[_0x59a065('0x888')]=_0x423601,_0x3bb91['success']=_0x589d5c,_0x3bb91[_0x59a065('0x145d')]=_0x382447,_0x3bb91[_0x59a065('0xd84')]=_0x3dc3d0,_0x3bb91[_0x59a065('0x1e2f')]=_0x143e3f,_0x3bb91[_0x59a065('0x23be')]=_0x121d28,_0x3bb91[_0x59a065('0x224d')]=_0x4ff551,_0x3bb91[_0x59a065('0x861')]=_0x40203a,_0x3bb91[_0x59a065('0xc36')]=_0x3aad04,_0x3bb91['onSearchBarCollapse']=_0x2908f1,_0x3bb91['onSearchBarExpand']=_0x16f1d3,_0x3bb91[_0x59a065('0x1f45')]=_0x349870;function _0x423601(_0x2af061,_0x255ce4){var _0xa3cda4=_0x59a065;return _0x3bb91[_0xa3cda4('0x5c1')]=_0x2af061,_0x3bb91[_0xa3cda4('0x22f1')]=_0x255ce4,_0x1dbc95[_0xa3cda4('0x10c6')]['get'+_0x32d445()[_0xa3cda4('0x2077')](_0xa3cda4('0x1331'))]({'id':_0x3bb91[_0xa3cda4('0x10c6')]['id'],'nolimit':!![]})[_0xa3cda4('0xe59')]['then'](function(_0x1b3986){var _0x4022e4=_0xa3cda4;return _0x3bb91['chatAccounts']=_0x1b3986||{'count':0x0,'rows':[]},_0x1dbc95[_0x4022e4('0x2037')][_0x4022e4('0x22d5')]()[_0x4022e4('0xe59')];})[_0xa3cda4('0xe19')](function(_0x1ed994){var _0x303afd=_0xa3cda4;_0x3bb91[_0x303afd('0x1105')]=_0x1ed994||{'count':0x0,'rows':[]};})[_0xa3cda4('0xe19')](function(){_0x3bb91['quickFilters']=_0x3bb6aa();})[_0xa3cda4('0x223b')](function(_0x32fa83){var _0x5e3617=_0xa3cda4;console[_0x5e3617('0x8c8')](_0x32fa83);})[_0xa3cda4('0x23')](function(){var _0x55fd9b=_0xa3cda4,_0x460486=_0x556ce2[_0x55fd9b('0x4f9')][_0x55fd9b('0x2208')](_0x55fd9b('0x1be7')+_0x3bb91[_0x55fd9b('0x10c6')]['id']);if(_0x460486)try{_0x460486=JSON[_0x55fd9b('0x118e')](_0x460486);if(_0x460486[_0x55fd9b('0xa16')]){_0x3bb91[_0x55fd9b('0xa16')]=_0x32d445()[_0x55fd9b('0x1d8')](_0x3bb91['query'],_0x460486[_0x55fd9b('0xa16')]);if(_0x32d445()[_0x55fd9b('0x14b4')](_0x3bb91[_0x55fd9b('0x607')][_0x55fd9b('0x16a7')]))_0x3bb91[_0x55fd9b('0xa16')][_0x55fd9b('0x365')]=[];else _0x32d445()['isEmpty'](_0x3bb91[_0x55fd9b('0xa16')][_0x55fd9b('0x365')])&&(_0x3bb91['query'][_0x55fd9b('0x365')]=_0x32d445()(_0x3bb91['chatAccounts'][_0x55fd9b('0x16a7')])[_0x55fd9b('0x65a')]('id')[_0x55fd9b('0x2466')]()['value']());_0x3bb91[_0x55fd9b('0xa16')]['sort']&&_0x3bb91['query'][_0x55fd9b('0x9f6')]['indexOf']('lastMessage')>=0x0&&(_0x3bb91[_0x55fd9b('0xa16')]=_0x32d445()[_0x55fd9b('0x23e3')](_0x3bb91['query'],'sort')),_0x3bb91[_0x55fd9b('0xa16')]['includeAll']=!![],_0x3bb91[_0x55fd9b('0x1a1d')]=_0x3bb91[_0x55fd9b('0xa16')][_0x55fd9b('0x2891')]?!![]:![];}}catch(_0x2f7f68){console[_0x55fd9b('0x8c8')](_0x2f7f68);}else{var _0x28e36d={'$gte':_0x4ddcaa()()[_0x55fd9b('0x21b1')](_0x55fd9b('0x211c'))[_0x55fd9b('0x1e9e')](0x0,!![])['format'](),'$lte':_0x4ddcaa()()[_0x55fd9b('0x270')](_0x55fd9b('0x211c'))['utcOffset'](0x0,!![])['format']()},_0x1c5d23={'ChatWebsiteId':_0x32d445()[_0x55fd9b('0x65a')](_0x3bb91[_0x55fd9b('0x607')]['rows'],'id'),'createdAt':_0x28e36d};_0x3bb91['query']=_0x32d445()[_0x55fd9b('0x1d8')](_0x3bb91[_0x55fd9b('0xa16')],_0x1c5d23);}_0x49cf70['on']('chatInteraction:save',_0x3ba9b9),_0x49cf70['on'](_0x55fd9b('0x2c7'),_0x3ba9b9),_0x49cf70['on'](_0x55fd9b('0x21ec'),_0x2c8eee),_0x49cf70['on'](_0x55fd9b('0x832'),_0x4b5959),_0x49cf70['on'](_0x55fd9b('0x192c'),_0x4b5959),_0x49cf70['on'](_0x55fd9b('0x1a34'),_0x1eae2a),_0x49cf70['on'](_0x55fd9b('0x1062'),_0x8766ee),_0x382447(_0x3bb91[_0x55fd9b('0xa16')][_0x55fd9b('0xc08')]);});}function _0x3bb6aa(){var _0x2da5f3=_0x59a065;return[{'name':_0x2da5f3('0x141d'),'key':_0x2da5f3('0x15c9'),'type':_0x2da5f3('0xf6d'),'label':_0x2da5f3('0x19b7')},{'name':'Messages','key':_0x2da5f3('0x1a6e'),'type':_0x2da5f3('0x2e6'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x2da5f3('0x10db')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x2da5f3('0x296')}]},{'name':_0x2da5f3('0x20e'),'key':'closed','type':'select','label':_0x2da5f3('0xef5'),'customOptions':[{'value':0x0,'translate':_0x2da5f3('0x1c37')},{'value':0x1,'translate':_0x2da5f3('0x1bbb')},{'value':null,'translate':_0x2da5f3('0x296')}]},{'name':_0x2da5f3('0x186c'),'key':_0x2da5f3('0x365'),'type':'multiselect','label':_0x2da5f3('0xe22'),'options':_0x3bb91[_0x2da5f3('0x607')][_0x2da5f3('0x16a7')],'clearAll':![]},{'name':_0x2da5f3('0x142e'),'key':_0x2da5f3('0x43d'),'type':_0x2da5f3('0x2e6'),'label':_0x2da5f3('0x120c'),'customOptions':[{'value':_0x3bb91['user']['id'],'translate':'DASHBOARDS.ME'},{'value':_0x2da5f3('0x1046'),'translate':_0x2da5f3('0x2094')},{'value':undefined,'translate':_0x2da5f3('0x296')}]},{'name':_0x2da5f3('0x1172'),'key':_0x2da5f3('0x2037'),'type':'multiselect','label':_0x2da5f3('0x23c7'),'options':_0x3bb91[_0x2da5f3('0x1105')][_0x2da5f3('0x16a7')],'placeholder':_0x2da5f3('0x14ec')}];}function _0x589d5c(_0x29b34c){var _0x56d722=_0x59a065;_0x3bb91[_0x56d722('0xcfc')]=![],_0x3bb91[_0x56d722('0xdd3')]=_0x29b34c||{'count':0x0,'rows':[]};for(var _0x5c3190=0x0;_0x5c3190<_0x3bb91[_0x56d722('0xdd3')]['rows'][_0x56d722('0x25ae')];_0x5c3190+=0x1){_0x4ff551(_0x3bb91[_0x56d722('0xdd3')][_0x56d722('0x16a7')][_0x5c3190]);}}function _0x382447(_0x485256){var _0x4c9a43=_0x59a065;_0x3bb91[_0x4c9a43('0xcfc')]=!![];!_0x485256&&(_0x3bb91[_0x4c9a43('0xa16')][_0x4c9a43('0xc08')]=0x1);_0x3bb91[_0x4c9a43('0xa16')]['offset']=(_0x3bb91[_0x4c9a43('0xa16')][_0x4c9a43('0xc08')]-0x1)*_0x3bb91[_0x4c9a43('0xa16')][_0x4c9a43('0x1b6d')];var _0x47c517=_0x556ce2[_0x4c9a43('0x4f9')][_0x4c9a43('0x2208')](_0x4c9a43('0x1be7')+_0x3bb91[_0x4c9a43('0x10c6')]['id']);_0x47c517=_0x47c517?JSON['parse'](_0x47c517):{},_0x47c517['query']=_0x3bb91[_0x4c9a43('0xa16')],_0x556ce2['localStorage'][_0x4c9a43('0x95e')](_0x4c9a43('0x1be7')+_0x3bb91[_0x4c9a43('0x10c6')]['id'],JSON[_0x4c9a43('0x3ad')](_0x47c517)),_0x3bb91['promise']=_0x1dbc95[_0x4c9a43('0x11a0')][_0x4c9a43('0x22d5')](_0x3bb91[_0x4c9a43('0xa16')],_0x589d5c)[_0x4c9a43('0xe59')];}function _0x3dc3d0(_0x31499e,_0x868893){var _0x2f2599=_0x59a065;_0x3db7da[_0x2f2599('0x5cf')]['vm'][_0x2f2599('0xa31')]('chat',_0x868893);}function _0x143e3f(_0x5618e3,_0x28fedc,_0x2de121){var _0x3a0897=_0x59a065;_0x1dbc95[_0x3a0897('0x11a0')]['download']({'id':_0x28fedc['id'],'attachments':_0x2de121})[_0x3a0897('0xe59')][_0x3a0897('0xe19')](function(_0x2e3a5a){var _0x5d524f=_0x3a0897,_0x939094=[_0x2e3a5a['buffer']],_0x59b0c7=_0x5d524f('0x1ae4')+_0x28fedc['id']+_0x5d524f('0x985'),_0x4e14b1=new Blob(_0x939094,{'type':_0x2e3a5a['type']}),_0x44ef92=window[_0x5d524f('0x18fa')][_0x5d524f('0x9a1')]('a');_0x44ef92[_0x5d524f('0xede')](_0x5d524f('0xcb7'),URL[_0x5d524f('0x1360')](_0x4e14b1)),_0x44ef92[_0x5d524f('0xede')](_0x5d524f('0x1d1e'),_0x59b0c7),document[_0x5d524f('0x19b2')][_0x5d524f('0x1d13')](_0x44ef92),_0x44ef92[_0x5d524f('0xfe7')]();})[_0x3a0897('0x223b')](function(_0x122ed9){var _0x4a12ff=_0x3a0897;if(_0x122ed9[_0x4a12ff('0x11d0')]&&_0x122ed9[_0x4a12ff('0x11d0')]['errors']&&_0x122ed9['data'][_0x4a12ff('0xcd2')][_0x4a12ff('0x25ae')])for(var _0x50b73a=0x0;_0x50b73a<_0x122ed9[_0x4a12ff('0x11d0')][_0x4a12ff('0xcd2')]['length'];_0x50b73a+=0x1){_0x527160[_0x4a12ff('0x8c8')]({'title':_0x122ed9[_0x4a12ff('0x11d0')][_0x4a12ff('0xcd2')][_0x50b73a][_0x4a12ff('0x62e')],'msg':_0x122ed9[_0x4a12ff('0x11d0')][_0x4a12ff('0xcd2')][_0x50b73a][_0x4a12ff('0x27e8')]});}else _0x527160[_0x4a12ff('0x8c8')]({'title':_0x122ed9[_0x4a12ff('0x2833')]?_0x4a12ff('0x27f2')+_0x122ed9[_0x4a12ff('0x2833')]+_0x4a12ff('0x1b7c')+_0x122ed9[_0x4a12ff('0x1fd7')]:'downloadChatInteraction','msg':_0x122ed9[_0x4a12ff('0x11d0')]?JSON[_0x4a12ff('0x3ad')](_0x122ed9['data'][_0x4a12ff('0x27e8')]):_0x122ed9['toString']()});});}function _0x121d28(_0x1adbbb,_0x43f146){var _0x242966=_0x59a065,_0x3f4cb9=_0x3bb91[_0x242966('0x10c6')]['voicePause']||_0x3bb91[_0x242966('0x10c6')][_0x242966('0x1b15')]||_0x3bb91[_0x242966('0x10c6')][_0x242966('0x2531')]||_0x3bb91['user'][_0x242966('0xf2a')]||_0x3bb91[_0x242966('0x10c6')][_0x242966('0x2299')],_0x28db69=!_0x43f146['Account']['mandatoryDisposition'];_0x24bcf5[_0x242966('0x26b2')]({'controller':_0x242966('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular[_0x242966('0x24a1')](_0x4dc360['body']),'clickOutsideToClose':_0x28db69,'escapeToClose':_0x28db69,'onRemoving':function _0x284b3f(){var _0x3dfb34=_0x242966;_0x3bb91[_0x3dfb34('0x10c6')]&&_0x43f146[_0x3dfb34('0x1e4e')][_0x3dfb34('0x1dc8')]&&!_0x3f4cb9&&_0x1dbc95[_0x3dfb34('0x10c6')][_0x3dfb34('0x2471')]({'id':_0x3bb91[_0x3dfb34('0x10c6')]['id']})['$promise'][_0x3dfb34('0x223b')](function(_0x41c433){console['error'](_0x41c433);});},'locals':{'user':_0x3bb91['user'],'channel':_0x242966('0x17cc'),'interaction':_0x43f146}});}function _0x4ff551(_0x421d3b){var _0x4bfc9c=_0x59a065;_0x421d3b[_0x4bfc9c('0x1286')]?_0x421d3b['contactName']=(_0x421d3b[_0x4bfc9c('0x1286')][_0x4bfc9c('0x2566')]||'')+'\x20'+(_0x421d3b['Contact']['lastName']||''):_0x421d3b[_0x4bfc9c('0x130c')]=_0xbf1602['instant'](_0x4bfc9c('0x27df'));}function _0x40203a(_0x3b22dd){var _0x689b6e=_0x59a065;if(_0x3b22dd[_0x689b6e('0x43d')])return _0x3b22dd[_0x689b6e('0x43d')]===_0x3bb91[_0x689b6e('0x10c6')]['id']?_0xbf1602['instant'](_0x689b6e('0x132d')):_0x3b22dd['Owner'][_0x689b6e('0xe11')]+'\x20<'+_0x3b22dd[_0x689b6e('0x2237')][_0x689b6e('0x1b66')]+'>';return _0xbf1602[_0x689b6e('0x2159')](_0x689b6e('0x2094'));}function _0x3aad04(_0x431162){var _0x36fdc9=_0x59a065;if(_0x431162[_0x36fdc9('0x1e4e')])return _0x431162[_0x36fdc9('0x1e4e')][_0x36fdc9('0x6e4')];return _0xbf1602[_0x36fdc9('0x2159')](_0x36fdc9('0x27df'));}function _0x1eae2a(_0x5c0e8b){var _0x54348b=_0x59a065,_0xe909f2,_0x4e906a=_0x32d445()['find'](_0x3bb91[_0x54348b('0xdd3')][_0x54348b('0x16a7')],{'id':_0x5c0e8b[_0x54348b('0x19d7')]});_0x4e906a&&_0x4e906a[_0x54348b('0x970')]&&(_0xe909f2=_0x32d445()[_0x54348b('0xf15')](_0x4e906a[_0x54348b('0x970')],{'id':_0x5c0e8b[_0x54348b('0x43d')]}),!_0xe909f2&&_0x4e906a[_0x54348b('0x970')]['push']({'id':_0x5c0e8b[_0x54348b('0x43d')]}));}function _0x8766ee(_0x585eb1){var _0x2a47d4=_0x59a065,_0x3bb521=_0x32d445()[_0x2a47d4('0xf15')](_0x3bb91[_0x2a47d4('0xdd3')]['rows'],{'id':_0x585eb1['ChatInteractionId']});_0x3bb521&&_0x3bb521[_0x2a47d4('0x970')]&&_0x32d445()[_0x2a47d4('0xa8b')](_0x3bb521[_0x2a47d4('0x970')],{'id':_0x585eb1[_0x2a47d4('0x43d')]});}function _0x3ba9b9(_0x4e035f){var _0x42014f=_0x59a065;if(_0x4e035f){var _0x11cdb4=_0x32d445()[_0x42014f('0xf15')](_0x3bb91[_0x42014f('0xdd3')][_0x42014f('0x16a7')],{'id':_0x4e035f['id']});if(_0x11cdb4){_0x11cdb4[_0x42014f('0x970')]=[];_0x4e035f[_0x42014f('0x1835')]&&(_0x11cdb4['unreadMessages']=0x0);if(_0x3bb91[_0x42014f('0xa16')][_0x42014f('0x9f6')]){var _0x52ccdc=_0x32d445()[_0x42014f('0x20b6')](_0x3bb91[_0x42014f('0xa16')][_0x42014f('0x9f6')],'-')?_0x42014f('0x1ee9'):'asc';_0x3bb91[_0x42014f('0xdd3')][_0x42014f('0x16a7')]=_0x32d445()[_0x42014f('0x10e')](_0x3bb91[_0x42014f('0xdd3')][_0x42014f('0x16a7')],_0x32d445()[_0x42014f('0x1cd0')](_0x3bb91[_0x42014f('0xa16')][_0x42014f('0x9f6')],'-'),_0x52ccdc);}_0x32d445()[_0x42014f('0x1d8')](_0x11cdb4,_0x32d445()[_0x42014f('0xed5')](_0x4e035f,_0x32d445()[_0x42014f('0x1234')](_0x11cdb4)));}else _0x382447(_0x3bb91[_0x42014f('0xa16')][_0x42014f('0xc08')]);}}function _0x2c8eee(_0x52e0bd){var _0xdcb186=_0x59a065;if(_0x52e0bd){var _0xc99d00=_0x32d445()[_0xdcb186('0xf15')](_0x3bb91[_0xdcb186('0xdd3')][_0xdcb186('0x16a7')],{'id':_0x52e0bd['id']});_0xc99d00&&(_0xc99d00[_0xdcb186('0x1e7b')]=_0x52e0bd[_0xdcb186('0x1105')]||[],_0x32d445()[_0xdcb186('0x1d8')](_0xc99d00,_0x32d445()[_0xdcb186('0xed5')](_0x52e0bd,_0x32d445()[_0xdcb186('0x1234')](_0xc99d00))));}}function _0x4b5959(_0x171ddd){var _0x4c8cfb=_0x59a065;if(_0x171ddd&&!_0x171ddd[_0x4c8cfb('0x17d9')]){var _0x553387=_0x32d445()[_0x4c8cfb('0xf15')](_0x3bb91[_0x4c8cfb('0xdd3')][_0x4c8cfb('0x16a7')],{'id':_0x171ddd[_0x4c8cfb('0x19d7')]});if(_0x553387){var _0x2fa74a=_0x32d445()[_0x4c8cfb('0xf15')](_0x553387[_0x4c8cfb('0x1e63')],{'id':_0x171ddd['id']});_0x2fa74a?_0x32d445()[_0x4c8cfb('0x1d8')](_0x2fa74a,_0x32d445()[_0x4c8cfb('0xed5')](_0x171ddd,_0x32d445()['keys'](_0x2fa74a))):(_0x32d445()['isNil'](_0x553387['Messages'])&&(_0x553387[_0x4c8cfb('0x1e63')]={'count':0x0}),!_0x171ddd[_0x4c8cfb('0x1a6e')]&&(_0x553387[_0x4c8cfb('0x1e63')][_0x4c8cfb('0x148b')]+=0x1));}}}function _0x2908f1(){_0x3bb91['isSearchBarVisible']=![];}function _0x16f1d3(){var _0x2f727b=_0x59a065;_0x3bb91[_0x2f727b('0x1a1d')]=!![];}function _0x349870(){var _0x102fc2=_0x59a065;_0x3bb91['isSearchBarVisible']=![],_0x24bcf5['show']({'controller':_0x102fc2('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular['element'](_0x4dc360[_0x102fc2('0x19b2')]),'clickOutsideToClose':![],'locals':{'color':_0x3bb91['sectionColor'],'fields':_0x3bb91[_0x102fc2('0x164')]['fields'],'storagePath':_0x102fc2('0x1fe3')},'fullscreen':!![]})['then'](function(_0x3960ef){var _0x29c1bd=_0x102fc2;_0x3bb91[_0x29c1bd('0xa16')][_0x29c1bd('0x1cc8')]=_0x3960ef===![]?undefined:_0x3960ef;if(_0x3bb91['query'][_0x29c1bd('0x1cc8')]||_0x3960ef===![])_0x382447();})['catch'](function(_0x6301fc){var _0x4bfcce=_0x102fc2;_0x527160['error']({'title':_0x4bfcce('0x71e'),'msg':_0x6301fc[_0x4bfcce('0x11d0')]?JSON[_0x4bfcce('0x3ad')](_0x6301fc[_0x4bfcce('0x11d0')][_0x4bfcce('0x27e8')]):_0x6301fc[_0x4bfcce('0x94f')]()});});}var _0xa82fa8=!![],_0xeb6856=0x1;_0x3db7da[_0x59a065('0x107')]('vm.query.filter',function(_0x3c0381,_0x2d41c){var _0x4b0b0c=_0x59a065;_0xa82fa8?_0x18ce75(function(){_0xa82fa8=![];}):(!_0x2d41c&&(_0xeb6856=_0x3bb91[_0x4b0b0c('0xa16')]['page']),_0x3c0381!==_0x2d41c&&(_0x3bb91[_0x4b0b0c('0xa16')]['page']=0x1),!_0x3c0381&&(_0x3bb91[_0x4b0b0c('0xa16')][_0x4b0b0c('0xc08')]=_0xeb6856),_0x382447(_0x3bb91['query']['page']));}),_0x3db7da[_0x59a065('0xb2b')](_0x59a065('0x5cd'),function(){var _0x39ea5f=_0x59a065;_0x49cf70[_0x39ea5f('0x2121')](_0x39ea5f('0x832')),_0x49cf70['removeAllListeners']('chatMessage:update'),_0x49cf70[_0x39ea5f('0x2121')](_0x39ea5f('0x119d')),_0x49cf70[_0x39ea5f('0x2121')](_0x39ea5f('0x21ec')),_0x49cf70[_0x39ea5f('0x2121')](_0x39ea5f('0x2c7')),_0x49cf70[_0x39ea5f('0x2121')]('user_has_chat_interactions:save'),_0x49cf70[_0x39ea5f('0x2121')](_0x39ea5f('0x1062'));});}const _0x2504b3=_0x359803;_0x3bd975['$inject']=[_0xb635d2('0x1728'),_0xb635d2('0x63c'),'$timeout',_0xb635d2('0x1c9f'),'$window',_0xb635d2('0x2730'),'api','toasty'];function _0x3bd975(_0x3e654e,_0x1390ab,_0x536e74,_0x301e00,_0x44f044,_0xcdfa4f,_0x2a4dc7,_0x27283a){var _0x3669ce=_0xb635d2,_0x1f48a9=this;_0x1f48a9[_0x3669ce('0x15a5')]=_0xcdfa4f[_0x3669ce('0x1ef8')](),_0x1f48a9[_0x3669ce('0x9f8')]={},_0x1f48a9[_0x3669ce('0x4b1')]={'count':0x0,'rows':[]},_0x1f48a9[_0x3669ce('0x1105')]={'count':0x0,'rows':[]},_0x1f48a9[_0x3669ce('0xa16')]={'includeAll':!![],'sort':_0x3669ce('0x7e8'),'limit':0xa,'page':0x1},_0x1f48a9['advancedSearch']={'fields':[]},_0x1f48a9['sectionColor']=_0x3669ce('0x2129'),_0x1f48a9[_0x3669ce('0xbd8')]=_0xe29750,_0x1f48a9[_0x3669ce('0x8f6')]=_0x3a15aa,_0x1f48a9[_0x3669ce('0x87c')]=_0x463837,_0x1f48a9[_0x3669ce('0x2202')]=_0x1595b4,_0x1f48a9[_0x3669ce('0x1ee7')]=_0x4e0106,_0x1f48a9[_0x3669ce('0x20c4')]=_0x1390ab[_0x3669ce('0x5cf')]['vm'][_0x3669ce('0x20c4')],_0x1f48a9[_0x3669ce('0x888')]=_0x230c28,_0x1f48a9[_0x3669ce('0x1987')]=_0x113e97,_0x1f48a9[_0x3669ce('0x2846')]=_0x4d9b18,_0x1f48a9[_0x3669ce('0x1f45')]=_0x327d11;function _0x230c28(){var _0x3a3104=_0x3669ce;_0x2a4dc7[_0x3a3104('0x10c6')]['getLists']({'id':_0x1f48a9[_0x3a3104('0x15a5')]['id'],'fields':'id,name,dialPrefix','sort':_0x3a3104('0x2623'),'nolimit':!![]})['$promise'][_0x3a3104('0xe19')](function(_0x319b34){var _0x53a7f3=_0x3a3104;return _0x1f48a9['lists']=_0x319b34||{'count':0x0,'rows':[]},_0x1f48a9['listsMap']=_0x32d445()[_0x53a7f3('0x226f')](_0x1f48a9[_0x53a7f3('0x9f8')][_0x53a7f3('0x16a7')],'id'),_0x2a4dc7['tag'][_0x53a7f3('0x22d5')]()['$promise'];})[_0x3a3104('0xe19')](function(_0x224b5b){_0x1f48a9['tags']=_0x224b5b||{'count':0x0,'rows':[]};})['then'](function(){_0x1f48a9['quickFilters']=_0x4b38c0();})[_0x3a3104('0x223b')](function(_0x56cd25){var _0x2583c9=_0x3a3104;console[_0x2583c9('0x8c8')](_0x56cd25);})[_0x3a3104('0x23')](function(){var _0x1a40f0=_0x3a3104,_0x4fa1bb=_0x44f044[_0x1a40f0('0x4f9')][_0x1a40f0('0x2208')](_0x1a40f0('0x1058')+_0x1f48a9[_0x1a40f0('0x15a5')]['id']);if(_0x4fa1bb)try{_0x4fa1bb=JSON[_0x1a40f0('0x118e')](_0x4fa1bb);if(_0x4fa1bb['query']){_0x1f48a9[_0x1a40f0('0xa16')]=_0x32d445()[_0x1a40f0('0x1d8')](_0x1f48a9['query'],_0x4fa1bb[_0x1a40f0('0xa16')]);if(_0x32d445()['isEmpty'](_0x1f48a9['lists']['rows']))_0x1f48a9[_0x1a40f0('0xa16')][_0x1a40f0('0x2463')]=[];else _0x32d445()['isEmpty'](_0x1f48a9['query'][_0x1a40f0('0x2463')])&&(_0x1f48a9[_0x1a40f0('0xa16')][_0x1a40f0('0x2463')]=_0x32d445()(_0x1f48a9['lists'][_0x1a40f0('0x16a7')])[_0x1a40f0('0x65a')]('id')['take']()['value']());}}catch(_0x5d1fa3){console[_0x1a40f0('0x1fe9')](_0x5d1fa3);}else _0x1f48a9[_0x1a40f0('0xa16')]['ListId']=_0x32d445()[_0x1a40f0('0x65a')](_0x1f48a9[_0x1a40f0('0x9f8')][_0x1a40f0('0x16a7')],'id');_0x1f48a9['isSearchBarVisible']=_0x1f48a9[_0x1a40f0('0xa16')][_0x1a40f0('0x2891')]?!![]:![],_0xe29750();});}function _0x4b38c0(){var _0x501e5a=_0x3669ce;return[{'name':'List','key':_0x501e5a('0x2463'),'type':'multiselect','label':_0x501e5a('0x2838'),'options':_0x1f48a9[_0x501e5a('0x9f8')][_0x501e5a('0x16a7')],'clearAll':![]},{'name':_0x501e5a('0x1172'),'key':_0x501e5a('0x2037'),'type':_0x501e5a('0x19a0'),'label':_0x501e5a('0x23c7'),'options':_0x1f48a9['tags'][_0x501e5a('0x16a7')],'placeholder':_0x501e5a('0x14ec')}];}function _0x28964d(_0x40de21){var _0x4b3646=_0x3669ce;_0x1f48a9[_0x4b3646('0xcfc')]=![],_0x1f48a9[_0x4b3646('0x4b1')]=_0x40de21||{'count':0x0,'rows':[]};}function _0xe29750(_0x578466){var _0x2a6d40=_0x3669ce;_0x1f48a9['searchInProgress']=!![],_0x471cee();!_0x578466&&(_0x1f48a9[_0x2a6d40('0xa16')][_0x2a6d40('0xc08')]=0x1);_0x1f48a9[_0x2a6d40('0xa16')]['offset']=(_0x1f48a9['query']['page']-0x1)*_0x1f48a9[_0x2a6d40('0xa16')][_0x2a6d40('0x1b6d')];var _0x2f7975=_0x44f044[_0x2a6d40('0x4f9')]['getItem'](_0x2a6d40('0x1058')+_0x1f48a9[_0x2a6d40('0x15a5')]['id']);_0x2f7975=_0x2f7975?JSON[_0x2a6d40('0x118e')](_0x2f7975):{},_0x2f7975[_0x2a6d40('0xa16')]=_0x1f48a9[_0x2a6d40('0xa16')],_0x44f044[_0x2a6d40('0x4f9')][_0x2a6d40('0x95e')]('motion2.home.contacts:'+_0x1f48a9[_0x2a6d40('0x15a5')]['id'],JSON[_0x2a6d40('0x3ad')](_0x2f7975)),_0x1f48a9['promise']=_0x2a4dc7[_0x2a6d40('0x1711')][_0x2a6d40('0x22d5')](_0x1f48a9[_0x2a6d40('0xa16')],_0x28964d)[_0x2a6d40('0xe59')];}function _0x4e0106(_0x273c71){var _0x1d2414=_0x3669ce;return _0x2a4dc7[_0x1d2414('0x1711')][_0x1d2414('0x22d5')]({'id':_0x273c71})[_0x1d2414('0xe59')][_0x1d2414('0xe19')](function(_0x4894d4){var _0x2679ac=_0x1d2414;_0x1390ab[_0x2679ac('0x5cf')]['vm']['addContactTab'](_0x4894d4);});}function _0x3a15aa(){_0xe29750();}function _0x1595b4(_0x745fb1,_0x403f41){var _0x247bc4=_0x3669ce;_0x301e00[_0x247bc4('0x26b2')]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x189c18,'parent':angular[_0x247bc4('0x24a1')](_0x3e654e[_0x247bc4('0x19b2')]),'targetEvent':_0x745fb1,'clickOutsideToClose':!![],'resolve':{'contact':[_0x247bc4('0x292'),function _0x765998(_0x11564a){var _0x5cf40f=_0x247bc4;return _0x11564a['resolve'](_0x5cf40f('0x1995'),{'id':_0x403f41['id']});}],'lists':['apiResolver',function _0x1927c5(_0xcb14c5){var _0x435e53=_0x247bc4;return _0xcb14c5[_0x435e53('0xcd6')](_0x435e53('0x5c6'),{'id':_0x1f48a9['currentUser']['id'],'fields':'id,name'});}]},'locals':{'contacts':_0x1f48a9[_0x247bc4('0x4b1')]['rows']}});}function _0x463837(_0x3b0a59,_0x541fd7){var _0x32ee00=_0x3669ce;_0x301e00[_0x32ee00('0x26b2')]({'controller':_0x32ee00('0x1a88'),'controllerAs':'vm','templateUrl':_0x548c5c,'parent':angular[_0x32ee00('0x24a1')](_0x3e654e[_0x32ee00('0x19b2')]),'targetEvent':_0x3b0a59,'clickOutsideToClose':!![],'resolve':{'contact':[_0x32ee00('0x292'),function _0x5a6634(_0x2f69eb){var _0x1057cb=_0x32ee00;return _0x2f69eb[_0x1057cb('0xcd6')](_0x1057cb('0x1995'),{'id':_0x541fd7['id']});}],'lists':[_0x32ee00('0x292'),function _0x3fe2d7(_0xf61e6){var _0x416ae2=_0x32ee00;return _0xf61e6['resolve'](_0x416ae2('0x5c6'),{'id':_0x1f48a9[_0x416ae2('0x15a5')]['id'],'fields':_0x416ae2('0x104')});}]},'locals':{'contacts':_0x1f48a9[_0x32ee00('0x4b1')]['rows']}});}function _0x113e97(){var _0x4a486b=_0x3669ce;_0x1f48a9[_0x4a486b('0x1a1d')]=![];}function _0x4d9b18(){var _0x4fc4da=_0x3669ce;_0x1f48a9[_0x4fc4da('0x1a1d')]=!![];}function _0x471cee(){var _0x154290=_0x3669ce;return _0x2a4dc7['cmContact']['describe']({'id':_0x1f48a9['query']['ListId']})['$promise'][_0x154290('0xe19')](function(_0x37cef7){var _0x526229=_0x154290;return _0x32d445()(_0x37cef7[_0x526229('0x250e')]())[_0x526229('0x23e3')](_0x526229('0x43d'))[_0x526229('0x1b79')]()['map'](function(_0x2698bf){return _0x1c63f1(_0x2698bf);})[_0x526229('0x2')]();})[_0x154290('0xe19')](function(_0x374018){var _0x5b065d=_0x154290;_0x1f48a9[_0x5b065d('0x164')][_0x5b065d('0x1d17')]=_0x374018;var _0x3c977d={'name':'Tags','column':'Tag','type':'multiselect','options':{'route':{'model':_0x5b065d('0x2037'),'action':_0x5b065d('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5b065d('0x19a3')]}},_0x33348c=_0x32d445()[_0x5b065d('0x8d3')](_0x374018,function(_0x17c163){var _0x25c988=_0x5b065d;return _0x32d445()['startsWith'](_0x17c163[_0x25c988('0x1abc')],_0x25c988('0x1441'));})||_0x374018[_0x5b065d('0x25ae')]-0x1;if(_0x33348c<0x0)_0x33348c=_0x374018[_0x5b065d('0x25ae')];_0x1f48a9['advancedSearch'][_0x5b065d('0x1d17')][_0x5b065d('0x1c8e')](_0x33348c,0x0,_0x3c977d);})['catch'](function(_0x414784){var _0x4660b9=_0x154290;_0x27283a['error']({'title':_0x414784[_0x4660b9('0x2833')]?_0x4660b9('0x27f2')+_0x414784[_0x4660b9('0x2833')]+_0x4660b9('0x1b7c')+_0x414784['statusText']:_0x4660b9('0x1acd'),'msg':_0x414784[_0x4660b9('0x11d0')]?JSON[_0x4660b9('0x3ad')](_0x414784[_0x4660b9('0x11d0')][_0x4660b9('0x27e8')]):_0x414784[_0x4660b9('0x94f')]()});});}function _0x1c63f1(_0x5465b2){var _0x27448f=_0x3669ce,_0x2a1046={'name':_0x32d445()[_0x27448f('0x1df2')](_0x5465b2['displayName']),'column':_0x5465b2[_0x27448f('0x2127')],'options':{}};if(_0x5465b2[_0x27448f('0x261d')])switch(_0x5465b2['custom'][_0x27448f('0x62e')]){case _0x27448f('0x1bc6'):_0x2a1046[_0x27448f('0x62e')]=_0x27448f('0x1bc6');break;case _0x27448f('0x2e6'):_0x2a1046[_0x27448f('0x62e')]=_0x27448f('0x19a0'),_0x2a1046[_0x27448f('0x1b79')]=_0x32d445()[_0x27448f('0x65a')](JSON['parse'](_0x5465b2[_0x27448f('0x261d')][_0x27448f('0x1b79')]),function(_0x181bbe,_0x4d81c8){var _0x56f815=_0x27448f;return{'id':_0x4d81c8,'name':_0x181bbe['value'],'value':_0x181bbe[_0x56f815('0x2')]};}),_0x2a1046['options'][_0x27448f('0x15d1')]=_0x27448f('0x2623');break;case _0x27448f('0x1024'):_0x2a1046[_0x27448f('0x62e')]=_0x27448f('0x2e6'),_0x2a1046[_0x27448f('0x1b79')]=[{'id':0x1,'translate':_0x27448f('0x17f1')},{'id':0x0,'translate':_0x27448f('0x1ed9')}],_0x2a1046[_0x27448f('0x2116')]['excludedOperators']=[_0x27448f('0x1f51')];break;case _0x27448f('0x1c60'):_0x2a1046['type']='number';break;case'datetime':_0x2a1046[_0x27448f('0x62e')]=_0x27448f('0xf6d');break;}else switch(_0x5465b2[_0x27448f('0x2127')]){case _0x27448f('0x23d0'):_0x2a1046[_0x27448f('0x62e')]=_0x27448f('0xf6d');break;case'CompanyId':_0x2a1046[_0x27448f('0x2623')]=_0x27448f('0x446'),_0x2a1046['type']='autocomplete',_0x2a1046[_0x27448f('0x2116')][_0x27448f('0x622')]={'model':_0x27448f('0x24d1'),'action':_0x27448f('0x22d5'),'params':{'fields':_0x27448f('0x104'),'nolimit':!![]}},_0x2a1046[_0x27448f('0x2116')][_0x27448f('0x49')]=['name'],_0x2a1046[_0x27448f('0x2116')]['excludedOperators']=['$ne'];break;case'ListId':_0x2a1046[_0x27448f('0x2623')]=_0x27448f('0x25b2'),_0x2a1046[_0x27448f('0x62e')]=_0x27448f('0x5c0'),_0x2a1046[_0x27448f('0x2116')][_0x27448f('0x622')]={'model':_0x27448f('0x10c6'),'action':_0x27448f('0x1feb'),'params':{'id':_0x1f48a9[_0x27448f('0x15a5')]['id'],'fields':_0x27448f('0x104'),'nolimit':!![]}},_0x2a1046[_0x27448f('0x2116')][_0x27448f('0x49')]=[_0x27448f('0x2623')],_0x2a1046['options'][_0x27448f('0x12c1')]=['$ne'];break;default:if(_0x32d445()['includes'](_0x5465b2[_0x27448f('0x62e')][_0x27448f('0x20dd')](),'int'))_0x2a1046[_0x27448f('0x62e')]=_0x27448f('0x1c60');else _0x32d445()[_0x27448f('0x1c43')](_0x5465b2[_0x27448f('0x62e')]['toLowerCase'](),_0x27448f('0xf6d'))?_0x2a1046['type']=_0x27448f('0xf6d'):_0x2a1046[_0x27448f('0x62e')]=_0x27448f('0x1bc6');break;}return _0x2a1046;}function _0x327d11(){var _0x140dc5=_0x3669ce;_0x1f48a9[_0x140dc5('0x1a1d')]=![],_0x301e00['show']({'controller':_0x140dc5('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x140dc5('0x24a1')](_0x3e654e[_0x140dc5('0x19b2')]),'clickOutsideToClose':![],'locals':{'color':_0x1f48a9[_0x140dc5('0x1231')],'fields':_0x1f48a9['advancedSearch'][_0x140dc5('0x1d17')],'storagePath':_0x140dc5('0x1f0f')},'fullscreen':!![]})[_0x140dc5('0xe19')](function(_0x2faee5){var _0x79cd98=_0x140dc5;_0x1f48a9['query'][_0x79cd98('0x1cc8')]=_0x2faee5===![]?undefined:_0x2faee5;if(_0x1f48a9['query']['search']||_0x2faee5===![])_0xe29750();})[_0x140dc5('0x223b')](function(_0x50f75d){var _0x5c24cd=_0x140dc5;_0x27283a[_0x5c24cd('0x8c8')]({'title':_0x5c24cd('0x71e'),'msg':_0x50f75d[_0x5c24cd('0x11d0')]?JSON['stringify'](_0x50f75d[_0x5c24cd('0x11d0')][_0x5c24cd('0x27e8')]):_0x50f75d[_0x5c24cd('0x94f')]()});});}var _0x3f5bcc=!![],_0x3b415d=0x1;_0x1390ab[_0x3669ce('0x107')](_0x3669ce('0x20cb'),function(_0x1b6024,_0x5e50af){var _0x2b2eb7=_0x3669ce;_0x3f5bcc?_0x536e74(function(){_0x3f5bcc=![];}):(!_0x5e50af&&(_0x3b415d=_0x1f48a9[_0x2b2eb7('0xa16')][_0x2b2eb7('0xc08')]),_0x1b6024!==_0x5e50af&&(_0x1f48a9[_0x2b2eb7('0xa16')][_0x2b2eb7('0xc08')]=0x1),!_0x1b6024&&(_0x1f48a9[_0x2b2eb7('0xa16')]['page']=_0x3b415d),_0xe29750());});}const _0x12b418=_0x3bd975;_0x2671ae['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1c1a')];function _0x2671ae(_0x4b8954,_0x40f6fe){var _0x2f437c=_0xb635d2,_0x4e26f7=_0x40f6fe(function(){},0x3e7);_0x4b8954[_0x2f437c('0xb2b')]('$destroy',function(){var _0x395e4=_0x2f437c;_0x4e26f7&&(_0x40f6fe[_0x395e4('0x2c1')](_0x4e26f7),_0x4e26f7=null);});}const _0x58f8bb=_0x2671ae;_0x50b799[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$timeout',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$window',_0xb635d2('0x2493'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x46d')];function _0x50b799(_0xaa9a12,_0x1f620a,_0x31c23f,_0x5cce71,_0x52bfc9,_0x1e74f3,_0x239017,_0x21e89c,_0x4e7cd5){var _0x4ae3f5=_0xb635d2,_0x4ec6cd=this,_0x474b57=[_0x4ae3f5('0x62e'),_0x4ae3f5('0x183a'),_0x4ae3f5('0x1a23'),'dialActive'];_0x4ec6cd[_0x4ae3f5('0x15c5')]={},_0x4ec6cd[_0x4ae3f5('0x6b8')]=0x0,_0x4ec6cd[_0x4ae3f5('0x1427')]={},_0x4ec6cd[_0x4ae3f5('0x224c')]={},_0x4ec6cd[_0x4ae3f5('0xf64')]={},_0x4ec6cd[_0x4ae3f5('0x230c')]={},_0x4ec6cd['deleteVoiceQueuesChannels']=[],_0x4ec6cd[_0x4ae3f5('0xcfe')]=!![],_0x4ec6cd[_0x4ae3f5('0xa16')]={'id':_0x21e89c[_0x4ae3f5('0x1ef8')]()['id'],'fields':_0x4ae3f5('0x1659'),'channel':_0x4ae3f5('0xe74'),'type':_0x4ae3f5('0x1fdf'),'limit':0xa,'page':0x1},_0x4ec6cd[_0x4ae3f5('0x40a')]={'limit':0xa,'page':0x1},_0x4ec6cd[_0x4ae3f5('0x425')]=_0xcca535,_0x4ec6cd['getVoiceQueues']=_0x57c7f5,_0x4ec6cd['getSize']=_0x2b6a66,_0x4ec6cd['onSaveQueue']=_0x45a899,_0x4ec6cd['onSaveChannel']=_0xb5ec96,_0x4ec6cd[_0x4ae3f5('0x22b3')]=_0x2644d6,_0x4ec6cd[_0x4ae3f5('0x1762')]=_0x3df640,_0x4ec6cd[_0x4ae3f5('0x19ee')]=_0x227ed6,_0x4ec6cd[_0x4ae3f5('0xc66')]=_0x47cce5,_0x4e7cd5[_0x4ae3f5('0x4df')]('voice_queue:save',_0x4ec6cd[_0x4ae3f5('0x1153')]),_0x4e7cd5['onWithoutApply'](_0x4ae3f5('0x592'),_0x4ec6cd['onSaveChannel']),_0x4e7cd5['onWithoutApply'](_0x4ae3f5('0x2161'),_0x4ec6cd[_0x4ae3f5('0x22b3')]),_0x4e7cd5[_0x4ae3f5('0x4df')](_0x4ae3f5('0x1583'),_0x4ec6cd[_0x4ae3f5('0x22b3')]),_0x4e7cd5['onWithoutApply'](_0x4ae3f5('0x8c4'),_0x4ec6cd[_0x4ae3f5('0x1762')]),_0x4e7cd5[_0x4ae3f5('0x4df')](_0x4ae3f5('0x18f7'),_0x4ec6cd['onRemoveVoiceQueue']),_0x4e7cd5[_0x4ae3f5('0x4df')](_0x4ae3f5('0x16c'),_0x4ec6cd[_0x4ae3f5('0x19ee')]),_0x239017[_0x4ae3f5('0x21e1')][_0x4ae3f5('0x224c')]()[_0x4ae3f5('0xe59')]['then'](function(_0x4da7b1){var _0x2d1b8f=_0x4ae3f5;return _0x4ec6cd[_0x2d1b8f('0x1427')]=_0x4da7b1?_0x32d445()[_0x2d1b8f('0x226f')](_0x4da7b1[_0x2d1b8f('0x16a7')]?_0x4da7b1[_0x2d1b8f('0x16a7')]:[],'id'):{},_0x239017[_0x2d1b8f('0x21e1')][_0x2d1b8f('0x1091')]()[_0x2d1b8f('0xe59')];})[_0x4ae3f5('0xe19')](function(_0x321320){var _0x4f8c0a=_0x4ae3f5;_0x4ec6cd[_0x4f8c0a('0xf64')]=_0x321320?_0x32d445()[_0x4f8c0a('0x226f')](_0x321320[_0x4f8c0a('0x16a7')]?_0x32d445()[_0x4f8c0a('0x2891')](_0x321320[_0x4f8c0a('0x16a7')],{'type':_0x4f8c0a('0x1fdf'),'queuecallerleaveAt':null}):[],'uniqueid'):{};})[_0x4ae3f5('0x223b')](function(_0x235751){var _0x114959=_0x4ae3f5;console[_0x114959('0x8c8')](_0x235751);})['finally'](function(){var _0x1089db=_0x4ae3f5;_0x32d445()[_0x1089db('0x1d8')](_0x4ec6cd['rpcVoiceQueuesChannels'],_0x4ec6cd['addVoiceQueuesChannels']);for(var _0x378892=0x0;_0x378892<_0x4ec6cd['deleteVoiceQueuesChannels'][_0x1089db('0x25ae')];_0x378892+=0x1){delete _0x4ec6cd['rpcVoiceQueuesChannels'][_0x4ec6cd[_0x1089db('0x18fb')][_0x378892]];}_0x4ec6cd[_0x1089db('0xcfe')]=![],_0x4ec6cd['addVoiceQueuesChannels']={},_0x4ec6cd[_0x1089db('0x18fb')]=[],_0x4ec6cd[_0x1089db('0x224c')]();});function _0xcca535(_0x22cc23){var _0x469402=_0x4ae3f5;_0x4ec6cd['voiceQueuesTotal']=_0x22cc23[_0x469402('0x148b')]?_0x22cc23[_0x469402('0x148b')]:0x0,_0x4ec6cd[_0x469402('0x15c5')]=_0x22cc23?_0x32d445()[_0x469402('0x226f')](_0x22cc23[_0x469402('0x16a7')]?_0x22cc23[_0x469402('0x16a7')]:[],'id'):{},_0x22f465();}function _0x57c7f5(){var _0x2babc9=_0x4ae3f5;_0x4ec6cd[_0x2babc9('0xa16')][_0x2babc9('0xab0')]=(_0x4ec6cd[_0x2babc9('0xa16')][_0x2babc9('0xc08')]-0x1)*_0x4ec6cd['query'][_0x2babc9('0x1b6d')],_0x4ec6cd['promise']=_0x239017[_0x2babc9('0x10c6')]['getQueues'](_0x4ec6cd[_0x2babc9('0xa16')],_0xcca535)[_0x2babc9('0xe59')];}var _0x475445=!![],_0x242bf1=0x1;_0xaa9a12[_0x4ae3f5('0x107')]('vm_dc.query.filter',function(_0x421fc2,_0x1533e8){var _0xe2e0e3=_0x4ae3f5;_0x475445?_0x1f620a(function(){_0x475445=![];}):(!_0x1533e8&&(_0x242bf1=_0x4ec6cd[_0xe2e0e3('0xa16')][_0xe2e0e3('0xc08')]),_0x421fc2!==_0x1533e8&&(_0x4ec6cd[_0xe2e0e3('0xa16')][_0xe2e0e3('0xc08')]=0x1),!_0x421fc2&&(_0x4ec6cd[_0xe2e0e3('0xa16')]['page']=_0x242bf1),_0x4ec6cd[_0xe2e0e3('0x224c')]());});function _0x2b6a66(_0x142e17){return _0x32d445()['size'](_0x142e17);}function _0x22f465(){var _0x20ac2f=_0x4ae3f5;_0x32d445()[_0x20ac2f('0xd1e')](_0x4ec6cd[_0x20ac2f('0x15c5')],function(_0x12e7ca,_0xb8c6e0){var _0x4136c0=_0x20ac2f;_0x4ec6cd[_0x4136c0('0x1427')][_0xb8c6e0]&&(_0x4ec6cd[_0x4136c0('0x15c5')][_0xb8c6e0][_0x4136c0('0x183a')]=_0x4ec6cd[_0x4136c0('0x1427')][_0xb8c6e0][_0x4136c0('0x183a')]||0x0);});}function _0x45a899(_0x3d3f32){var _0x34d4ba=_0x4ae3f5;_0x4ec6cd[_0x34d4ba('0x15c5')][_0x3d3f32['id']]&&(_0x4ec6cd[_0x34d4ba('0x1427')][_0x3d3f32['id']]&&(_0x4ec6cd[_0x34d4ba('0x1427')][_0x3d3f32['id']]=_0x3d3f32,_0x32d445()['merge'](_0x4ec6cd[_0x34d4ba('0x15c5')][_0x3d3f32['id']],_0x32d445()[_0x34d4ba('0xed5')](_0x3d3f32,_0x474b57))));}function _0xb5ec96(_0x452870){var _0xf8e789=_0x4ae3f5;_0x452870['type']===_0xf8e789('0x1fdf')&&(_0x452870[_0xf8e789('0x1029')]?(delete _0x4ec6cd[_0xf8e789('0xf64')][_0x452870[_0xf8e789('0x1a6c')]],_0x4ec6cd['load']&&_0x4ec6cd[_0xf8e789('0x18fb')]['push'](_0x452870[_0xf8e789('0x1a6c')])):(_0x4ec6cd['rpcVoiceQueuesChannels'][_0x452870['uniqueid']]=_0x452870,_0x4ec6cd[_0xf8e789('0xcfe')]&&(_0x4ec6cd[_0xf8e789('0x230c')][_0x452870[_0xf8e789('0x1a6c')]]=_0x452870)));}function _0x3df640(_0x4bc3d8){var _0x1afd49=_0x4ae3f5;!_0x32d445()[_0x1afd49('0xe44')](_0x4bc3d8)&&(_0x4ec6cd[_0x1afd49('0x1427')][_0x4bc3d8['id']]=_0x32d445()['pick'](_0x4bc3d8,_0x474b57));}function _0x227ed6(_0x5ab7af){var _0x2b85e1=_0x4ae3f5;!_0x32d445()[_0x2b85e1('0xe44')](_0x5ab7af)&&(_0x4ec6cd[_0x2b85e1('0x1427')][_0x5ab7af['id']]&&_0x32d445()[_0x2b85e1('0x1d8')](_0x4ec6cd[_0x2b85e1('0x1427')][_0x5ab7af['id']],_0x32d445()['pick'](_0x5ab7af,_0x474b57)),_0x4ec6cd[_0x2b85e1('0x15c5')][_0x5ab7af['id']]&&_0x32d445()[_0x2b85e1('0x1d8')](_0x4ec6cd[_0x2b85e1('0x15c5')][_0x5ab7af['id']],_0x32d445()['pick'](_0x5ab7af,_0x474b57)));}function _0x47cce5(_0x23a17c){var _0x32e4af=_0x4ae3f5;!_0x32d445()[_0x32e4af('0xe44')](_0x23a17c)&&(delete _0x4ec6cd[_0x32e4af('0x1427')][_0x23a17c['id']],delete _0x4ec6cd[_0x32e4af('0x15c5')][_0x23a17c['id']]);}function _0x2644d6(_0x389c97){var _0x1aea9b=_0x4ae3f5;_0x32d445()[_0x1aea9b('0x205f')](_0x389c97['UserId'])===_0x21e89c[_0x1aea9b('0x1ef8')]()['id']&&_0x4ec6cd['getVoiceQueues']();}_0xaa9a12[_0x4ae3f5('0xb2b')](_0x4ae3f5('0x5cd'),function(){var _0x363325=_0x4ae3f5;_0x4e7cd5[_0x363325('0x2121')]('voice_queue:save'),_0x4e7cd5[_0x363325('0x2121')](_0x363325('0x592')),_0x4e7cd5[_0x363325('0x2121')](_0x363325('0x2161')),_0x4e7cd5[_0x363325('0x2121')](_0x363325('0x1583')),_0x4e7cd5[_0x363325('0x2121')](_0x363325('0x8c4')),_0x4e7cd5[_0x363325('0x2121')](_0x363325('0x16c')),_0x4e7cd5[_0x363325('0x2121')]('voiceQueue:remove');});}const _0x282a98=_0x50b799;_0x561bbf['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2400'),_0xb635d2('0x2493'),'api',_0xb635d2('0x2730'),_0xb635d2('0x46d')];function _0x561bbf(_0x21a21e,_0x12ec10,_0x6b4fbd,_0x1f1e05,_0x35712f,_0x594e30,_0x329edb,_0x3d0dc5,_0x3742bc){var _0xdaf126=_0xb635d2,_0x142f55=this,_0xc04fc3=['id','name',_0xdaf126('0x1fba'),'waiting'],_0x30f24b=!![];_0x142f55[_0xdaf126('0x1bfa')]={},_0x142f55['chatQueuesTotal']=0x0,_0x142f55[_0xdaf126('0x1a4f')]={},_0x142f55[_0xdaf126('0x14a5')]=[],_0x142f55['deleteChatQueuesWaitingInteractions']=[],_0x142f55[_0xdaf126('0x2240')]={},_0x142f55[_0xdaf126('0xa16')]={'id':_0x3d0dc5[_0xdaf126('0x1ef8')]()['id'],'channel':_0xdaf126('0x17cc'),'fields':_0xdaf126('0x72b'),'limit':0xa,'page':0x1},_0x142f55[_0xdaf126('0x40a')]={'limit':0xa,'page':0x1},_0x142f55[_0xdaf126('0x425')]=_0x314bf2,_0x142f55[_0xdaf126('0x2652')]=_0x62524c,_0x142f55['getSize']=_0x4d2398,_0x142f55[_0xdaf126('0x16b9')]=_0x1e7448,_0x142f55[_0xdaf126('0x279e')]=_0x1403b3,_0x142f55[_0xdaf126('0x1153')]=_0x1bbc32,_0x142f55[_0xdaf126('0x742')]=_0x2c7cf0,_0x142f55[_0xdaf126('0x14f5')]=_0x7402e5,_0x142f55['onRemoveChatQueue']=_0x21b60b,_0x142f55[_0xdaf126('0x24ce')]=_0x20d4d8,_0x142f55[_0xdaf126('0x4a2')]=_0x20e994,_0x142f55[_0xdaf126('0x1bf9')]=_0x542cea,_0x142f55[_0xdaf126('0x2561')]=_0x500449,_0x3742bc['onWithoutApply'](_0xdaf126('0x74'),_0x142f55[_0xdaf126('0x1153')]),_0x3742bc[_0xdaf126('0x4df')](_0xdaf126('0x1e36'),_0x142f55[_0xdaf126('0x742')]),_0x3742bc[_0xdaf126('0x4df')]('chatQueue:update',_0x142f55[_0xdaf126('0x14f5')]),_0x3742bc[_0xdaf126('0x4df')](_0xdaf126('0x1646'),_0x142f55[_0xdaf126('0xf91')]),_0x3742bc[_0xdaf126('0x4df')](_0xdaf126('0x27f9'),_0x142f55[_0xdaf126('0x24ce')]),_0x3742bc[_0xdaf126('0x4df')]('userChatQueue:remove',_0x142f55[_0xdaf126('0x4a2')]),_0x3742bc[_0xdaf126('0x4df')](_0xdaf126('0xa54'),_0x142f55['onSaveChatQueueChannel']),_0x3742bc['onWithoutApply'](_0xdaf126('0x20b'),_0x142f55[_0xdaf126('0x2561')]),_0x329edb['rpc']['getChatQueues']()[_0xdaf126('0xe59')][_0xdaf126('0xe19')](function(_0x1ceb7c){var _0x43217e=_0xdaf126;_0x142f55[_0x43217e('0x1a4f')]=_0x1ceb7c?_0x32d445()['keyBy'](_0x1ceb7c['rows']?_0x1ceb7c['rows']:[],'id'):{};})['then'](function(){var _0x5ac627=_0xdaf126;return _0x329edb['user'][_0x5ac627('0x23cf')]({'id':_0x3d0dc5[_0x5ac627('0x1ef8')]()['id'],'channel':'chat'})[_0x5ac627('0xe59')];})[_0xdaf126('0xe19')](function(_0x590b4d){var _0x3b1f23=_0xdaf126;return _0x142f55[_0x3b1f23('0x1fff')]=_0x590b4d[_0x3b1f23('0x16a7')],_0x329edb['rpc'][_0x3b1f23('0x20f9')]()['$promise'];})['then'](function(_0x1a5667){var _0x118c7a=_0xdaf126,_0x4dc550=_0x32d445()[_0x118c7a('0x2891')](_0x1a5667[_0x118c7a('0x16a7')],function(_0x3cf78e){var _0x3a4495=_0x118c7a;return _0x32d445()[_0x3a4495('0x1c43')](_0x142f55['myQueues'],{'id':_0x3cf78e[_0x3a4495('0x1d83')]});});_0x1a5667[_0x118c7a('0x16a7')]=_0x4dc550,_0x1a5667['count']=_0x4dc550[_0x118c7a('0x25ae')],_0x32d445()[_0x118c7a('0x1d8')](_0x142f55[_0x118c7a('0x2240')],_0x1a5667?_0x32d445()['keyBy'](_0x1a5667['rows']?_0x1a5667['rows']:[],'id'):{});})[_0xdaf126('0x223b')](function(_0x23d380){var _0x1f594b=_0xdaf126;console[_0x1f594b('0x8c8')](_0x23d380);})['finally'](function(){var _0x3bcc15=_0xdaf126;for(var _0x385eaa=0x0;_0x385eaa<_0x142f55['deleteChatQueuesWaitingInteractions'][_0x3bcc15('0x25ae')];_0x385eaa+=0x1){delete _0x142f55[_0x3bcc15('0x2240')][_0x142f55[_0x3bcc15('0x1c10')][_0x385eaa]];}_0x30f24b=![],_0x142f55[_0x3bcc15('0x1c10')]=[],_0x62524c(),_0x1403b3();});function _0x1403b3(){var _0x840418=_0xdaf126,_0x1b3e40=(_0x142f55['queryChannels']['page']-0x1)*_0x142f55['queryChannels'][_0x840418('0x1b6d')];_0x142f55[_0x840418('0x14a5')]=_0x32d445()[_0x840418('0x10e')](_0x142f55[_0x840418('0x2240')],[_0x840418('0x760')],['desc']),_0x142f55[_0x840418('0x2805')]=_0x32d445()[_0x840418('0x4a0')](_0x142f55[_0x840418('0x14a5')],_0x1b3e40)['slice'](0x0,_0x142f55[_0x840418('0x40a')][_0x840418('0x1b6d')]);}function _0x314bf2(_0x4bd300){var _0x4c0647=_0xdaf126;_0x142f55[_0x4c0647('0x991')]=_0x4bd300[_0x4c0647('0x148b')]?_0x4bd300[_0x4c0647('0x148b')]:0x0,_0x142f55['chatQueues']=_0x4bd300?_0x32d445()[_0x4c0647('0x226f')](_0x4bd300['rows']?_0x4bd300[_0x4c0647('0x16a7')]:[],'id'):{},_0x5d1b24();}function _0x62524c(){var _0x31227c=_0xdaf126;_0x142f55[_0x31227c('0xa16')][_0x31227c('0xab0')]=(_0x142f55[_0x31227c('0xa16')][_0x31227c('0xc08')]-0x1)*_0x142f55['query']['limit'],_0x142f55[_0x31227c('0x9c8')]=_0x329edb['user'][_0x31227c('0x23cf')](_0x142f55[_0x31227c('0xa16')],_0x314bf2)[_0x31227c('0xe59')];}var _0x226445=!![],_0x2420d9=0x1;_0x21a21e[_0xdaf126('0x107')](_0xdaf126('0x1607'),function(_0x1a073c,_0x13fd9b){var _0x5e89fa=_0xdaf126;_0x226445?_0x12ec10(function(){_0x226445=![];}):(!_0x13fd9b&&(_0x2420d9=_0x142f55[_0x5e89fa('0xa16')][_0x5e89fa('0xc08')]),_0x1a073c!==_0x13fd9b&&(_0x142f55['query'][_0x5e89fa('0xc08')]=0x1),!_0x1a073c&&(_0x142f55[_0x5e89fa('0xa16')][_0x5e89fa('0xc08')]=_0x2420d9),_0x142f55[_0x5e89fa('0x2652')]());});function _0x4d2398(_0x41486f){var _0xec1829=_0xdaf126;return _0x32d445()[_0xec1829('0x1aea')](_0x41486f);}function _0x5d1b24(){var _0x3b2d6e=_0xdaf126;_0x32d445()['forIn'](_0x142f55[_0x3b2d6e('0x1bfa')],function(_0x307314,_0x7af77e){var _0x54a16a=_0x3b2d6e;_0x142f55[_0x54a16a('0x1a4f')][_0x7af77e]&&(_0x142f55[_0x54a16a('0x1bfa')][_0x7af77e][_0x54a16a('0x183a')]=_0x142f55['rpcChatQueues'][_0x7af77e][_0x54a16a('0x183a')]||0x0);});}function _0x1bbc32(_0x1307dd){var _0x527757=_0xdaf126;_0x142f55['chatQueues'][_0x1307dd['id']]&&(_0x142f55['rpcChatQueues'][_0x1307dd['id']]&&(_0x32d445()[_0x527757('0x1d8')](_0x142f55[_0x527757('0x1a4f')][_0x1307dd['id']],_0x32d445()[_0x527757('0xed5')](_0x1307dd,_0xc04fc3)),_0x32d445()[_0x527757('0x1d8')](_0x142f55[_0x527757('0x1bfa')][_0x1307dd['id']],_0x32d445()[_0x527757('0xed5')](_0x1307dd,_0xc04fc3))));}function _0x2c7cf0(_0x35f4e2){var _0xdac2e9=_0xdaf126;!_0x32d445()['isNil'](_0x35f4e2)&&(_0x142f55[_0xdac2e9('0x1a4f')][_0x35f4e2['id']]=_0x32d445()[_0xdac2e9('0xed5')](_0x35f4e2,_0xc04fc3));}function _0x7402e5(_0x15ad4d){var _0x1304c2=_0xdaf126;!_0x32d445()['isNil'](_0x15ad4d)&&(_0x142f55[_0x1304c2('0x1a4f')][_0x15ad4d['id']]&&_0x32d445()[_0x1304c2('0x1d8')](_0x142f55[_0x1304c2('0x1a4f')][_0x15ad4d['id']],_0x32d445()['pick'](_0x15ad4d,_0xc04fc3)),_0x142f55['chatQueues'][_0x15ad4d['id']]&&_0x32d445()[_0x1304c2('0x1d8')](_0x142f55['chatQueues'][_0x15ad4d['id']],_0x32d445()[_0x1304c2('0xed5')](_0x15ad4d,_0xc04fc3)));}function _0x21b60b(_0x381929){var _0xe13044=_0xdaf126;!_0x32d445()['isNil'](_0x381929)&&(delete _0x142f55[_0xe13044('0x1a4f')][_0x381929['id']],delete _0x142f55[_0xe13044('0x1bfa')][_0x381929['id']]);}function _0x20d4d8(_0x8f056d){var _0x2f57c5=_0xdaf126;_0x32d445()['toInteger'](_0x8f056d[_0x2f57c5('0x43d')])===_0x3d0dc5[_0x2f57c5('0x1ef8')]()['id']&&_0x142f55['getChatQueues']();}function _0x20e994(_0x73425c){var _0x4c4948=_0xdaf126;_0x32d445()[_0x4c4948('0x205f')](_0x73425c[_0x4c4948('0x43d')])===_0x3d0dc5[_0x4c4948('0x1ef8')]()['id']&&_0x142f55['getChatQueues']();}function _0x542cea(_0x8f7b7e){var _0xed99c2=_0xdaf126;_0x142f55[_0xed99c2('0x1bfa')][_0x8f7b7e['queue_id']]&&(_0x142f55[_0xed99c2('0x2240')][_0x8f7b7e['id']]=_0x8f7b7e,_0x1403b3());}function _0x500449(_0x432fe6){var _0x318bd7=_0xdaf126;delete _0x142f55[_0x318bd7('0x2240')][_0x432fe6['id']],_0x30f24b&&_0x142f55[_0x318bd7('0x1c10')][_0x318bd7('0xb76')](_0x432fe6['id']),_0x1403b3();}function _0x1e7448(_0x45d26f){var _0x58d19d=_0xdaf126;switch(_0x45d26f){case'chat':return'green-A700-bg';case _0x58d19d('0x26bf'):return _0x58d19d('0x1daf');case'sms':return _0x58d19d('0x2176');case _0x58d19d('0x4b7'):return _0x58d19d('0x28f');case _0x58d19d('0xaf2'):return _0x58d19d('0x2082');case _0x58d19d('0x625'):return'blue-grey-A200-bg';default:return _0x58d19d('0x340');}}_0x21a21e[_0xdaf126('0xb2b')](_0xdaf126('0x5cd'),function(){var _0x34d25b=_0xdaf126;_0x3742bc[_0x34d25b('0x2121')]('chat_queue:save'),_0x3742bc['removeAllListeners'](_0x34d25b('0x1e36')),_0x3742bc[_0x34d25b('0x2121')]('chatQueue:update'),_0x3742bc[_0x34d25b('0x2121')]('chatQueue:remove'),_0x3742bc[_0x34d25b('0x2121')]('userChatQueue:save'),_0x3742bc['removeAllListeners']('userChatQueue:remove'),_0x3742bc[_0x34d25b('0x2121')](_0x34d25b('0xa54')),_0x3742bc[_0x34d25b('0x2121')](_0x34d25b('0x20b'));});}const _0xfc9b44=_0x561bbf;_0x272847['$inject']=[_0xb635d2('0x63c'),'$timeout',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2400'),'$translate',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x46d')];function _0x272847(_0x593471,_0x52d2b3,_0x5bfdf4,_0x4178fd,_0x261812,_0x251ae6,_0x192bfe,_0x38de83,_0x2b36c8){var _0x248350=_0xb635d2,_0x4ffa0b=this,_0x227c35=['id','name',_0x248350('0x1fba'),'waiting'],_0x4792e2=!![];_0x4ffa0b[_0x248350('0x156e')]={},_0x4ffa0b[_0x248350('0x2af')]=0x0,_0x4ffa0b[_0x248350('0xc04')]={},_0x4ffa0b[_0x248350('0x14a5')]=[],_0x4ffa0b[_0x248350('0x638')]=[],_0x4ffa0b[_0x248350('0x21c5')]={},_0x4ffa0b[_0x248350('0xa16')]={'id':_0x38de83[_0x248350('0x1ef8')]()['id'],'channel':_0x248350('0x625'),'fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x4ffa0b[_0x248350('0x40a')]={'limit':0xa,'page':0x1},_0x4ffa0b[_0x248350('0x425')]=_0x5bc516,_0x4ffa0b[_0x248350('0x2339')]=_0x26ebfa,_0x4ffa0b['getSize']=_0x915c0a,_0x4ffa0b['getColorByChannel']=_0x3636b7,_0x4ffa0b[_0x248350('0x279e')]=_0x3d5d44,_0x4ffa0b['onSaveQueue']=_0x95a735,_0x4ffa0b['onSaveFaxQueue']=_0x242d3c,_0x4ffa0b[_0x248350('0x238e')]=_0x5bf1ca,_0x4ffa0b[_0x248350('0x1902')]=_0x26ebf7,_0x4ffa0b[_0x248350('0xe2b')]=_0x5b1bbd,_0x4ffa0b[_0x248350('0x1ff5')]=_0x340b0f,_0x4ffa0b[_0x248350('0xbe')]=_0x36f33f,_0x4ffa0b['onRemoveFaxQueueChannel']=_0x5bb4a5,_0x2b36c8[_0x248350('0x4df')](_0x248350('0x1ab0'),_0x4ffa0b[_0x248350('0x1153')]),_0x2b36c8[_0x248350('0x4df')]('faxQueue:save',_0x4ffa0b[_0x248350('0x12df')]),_0x2b36c8[_0x248350('0x4df')](_0x248350('0x1637'),_0x4ffa0b[_0x248350('0x238e')]),_0x2b36c8['onWithoutApply'](_0x248350('0x154c'),_0x4ffa0b[_0x248350('0x1902')]),_0x2b36c8['onWithoutApply']('userFaxQueue:save',_0x4ffa0b[_0x248350('0xe2b')]),_0x2b36c8['onWithoutApply']('userFaxQueue:remove',_0x4ffa0b[_0x248350('0x1ff5')]),_0x2b36c8['onWithoutApply'](_0x248350('0x628'),_0x4ffa0b[_0x248350('0xbe')]),_0x2b36c8[_0x248350('0x4df')](_0x248350('0x1ca4'),_0x4ffa0b['onRemoveFaxQueueChannel']),_0x192bfe[_0x248350('0x21e1')]['getFaxQueues']()[_0x248350('0xe59')][_0x248350('0xe19')](function(_0x5524ad){var _0x1b5bc6=_0x248350;_0x4ffa0b[_0x1b5bc6('0xc04')]=_0x5524ad?_0x32d445()[_0x1b5bc6('0x226f')](_0x5524ad[_0x1b5bc6('0x16a7')]?_0x5524ad[_0x1b5bc6('0x16a7')]:[],'id'):{};})[_0x248350('0xe19')](function(){var _0x156dbd=_0x248350;return _0x192bfe[_0x156dbd('0x10c6')][_0x156dbd('0x23cf')]({'id':_0x38de83[_0x156dbd('0x1ef8')]()['id'],'channel':_0x156dbd('0x625')})[_0x156dbd('0xe59')];})['then'](function(_0x40862e){var _0x3e2048=_0x248350;return _0x4ffa0b[_0x3e2048('0x1fff')]=_0x40862e[_0x3e2048('0x16a7')],_0x192bfe[_0x3e2048('0x21e1')]['getFaxQueuesWaitingInteractions']()['$promise'];})[_0x248350('0xe19')](function(_0x5d79f7){var _0x3752f1=_0x248350,_0x2ba968=_0x32d445()[_0x3752f1('0x2891')](_0x5d79f7[_0x3752f1('0x16a7')],function(_0x5808d5){var _0x264032=_0x3752f1;return _0x32d445()['includes'](_0x4ffa0b[_0x264032('0x1fff')],{'id':_0x5808d5[_0x264032('0x1d83')]});});_0x5d79f7[_0x3752f1('0x16a7')]=_0x2ba968,_0x5d79f7['count']=_0x2ba968[_0x3752f1('0x25ae')],_0x32d445()[_0x3752f1('0x1d8')](_0x4ffa0b[_0x3752f1('0x21c5')],_0x5d79f7?_0x32d445()[_0x3752f1('0x226f')](_0x5d79f7['rows']?_0x5d79f7[_0x3752f1('0x16a7')]:[],'id'):{});})[_0x248350('0x223b')](function(_0x33fe57){console['error'](_0x33fe57);})[_0x248350('0x23')](function(){var _0x334ef9=_0x248350;for(var _0x1627e0=0x0;_0x1627e0<_0x4ffa0b[_0x334ef9('0x638')][_0x334ef9('0x25ae')];_0x1627e0+=0x1){delete _0x4ffa0b['rpcFaxQueuesWaitingInteractions'][_0x4ffa0b[_0x334ef9('0x638')][_0x1627e0]];}_0x4792e2=![],_0x4ffa0b[_0x334ef9('0x638')]=[],_0x26ebfa(),_0x3d5d44();});function _0x3d5d44(){var _0x353cab=_0x248350,_0x4b7953=(_0x4ffa0b[_0x353cab('0x40a')]['page']-0x1)*_0x4ffa0b['queryChannels']['limit'];_0x4ffa0b[_0x353cab('0x14a5')]=_0x32d445()['orderBy'](_0x4ffa0b['rpcFaxQueuesWaitingInteractions'],[_0x353cab('0x760')],[_0x353cab('0x1ee9')]),_0x4ffa0b['interactions']=_0x32d445()[_0x353cab('0x4a0')](_0x4ffa0b[_0x353cab('0x14a5')],_0x4b7953)['slice'](0x0,_0x4ffa0b[_0x353cab('0x40a')][_0x353cab('0x1b6d')]);}function _0x5bc516(_0x494784){var _0x2f1aa8=_0x248350;_0x4ffa0b[_0x2f1aa8('0x2af')]=_0x494784[_0x2f1aa8('0x148b')]?_0x494784[_0x2f1aa8('0x148b')]:0x0,_0x4ffa0b[_0x2f1aa8('0x156e')]=_0x494784?_0x32d445()['keyBy'](_0x494784[_0x2f1aa8('0x16a7')]?_0x494784['rows']:[],'id'):{},_0x82f131();}function _0x26ebfa(){var _0x8a547d=_0x248350;_0x4ffa0b[_0x8a547d('0xa16')]['offset']=(_0x4ffa0b['query'][_0x8a547d('0xc08')]-0x1)*_0x4ffa0b[_0x8a547d('0xa16')][_0x8a547d('0x1b6d')],_0x4ffa0b[_0x8a547d('0x9c8')]=_0x192bfe[_0x8a547d('0x10c6')]['getQueues'](_0x4ffa0b[_0x8a547d('0xa16')],_0x5bc516)[_0x8a547d('0xe59')];}var _0x478a0b=!![],_0x2d3871=0x1;_0x593471['$watch']('vm_dc.query.filter',function(_0x15729f,_0x3b8f13){var _0x2a2b8b=_0x248350;_0x478a0b?_0x52d2b3(function(){_0x478a0b=![];}):(!_0x3b8f13&&(_0x2d3871=_0x4ffa0b[_0x2a2b8b('0xa16')][_0x2a2b8b('0xc08')]),_0x15729f!==_0x3b8f13&&(_0x4ffa0b[_0x2a2b8b('0xa16')][_0x2a2b8b('0xc08')]=0x1),!_0x15729f&&(_0x4ffa0b[_0x2a2b8b('0xa16')][_0x2a2b8b('0xc08')]=_0x2d3871),_0x4ffa0b[_0x2a2b8b('0x2339')]());});function _0x915c0a(_0x52f904){var _0x11cb62=_0x248350;return _0x32d445()[_0x11cb62('0x1aea')](_0x52f904);}function _0x82f131(){var _0x18a703=_0x248350;_0x32d445()[_0x18a703('0xd1e')](_0x4ffa0b[_0x18a703('0x156e')],function(_0x1eba64,_0x5ce535){var _0x9ea996=_0x18a703;_0x4ffa0b['rpcFaxQueues'][_0x5ce535]&&(_0x4ffa0b[_0x9ea996('0x156e')][_0x5ce535][_0x9ea996('0x183a')]=_0x4ffa0b[_0x9ea996('0xc04')][_0x5ce535][_0x9ea996('0x183a')]||0x0);});}function _0x95a735(_0x291c1f){var _0x5c2e5c=_0x248350;_0x4ffa0b[_0x5c2e5c('0x156e')][_0x291c1f['id']]&&(_0x4ffa0b['rpcFaxQueues'][_0x291c1f['id']]&&(_0x32d445()[_0x5c2e5c('0x1d8')](_0x4ffa0b['rpcFaxQueues'][_0x291c1f['id']],_0x32d445()[_0x5c2e5c('0xed5')](_0x291c1f,_0x227c35)),_0x32d445()[_0x5c2e5c('0x1d8')](_0x4ffa0b[_0x5c2e5c('0x156e')][_0x291c1f['id']],_0x32d445()[_0x5c2e5c('0xed5')](_0x291c1f,_0x227c35))));}function _0x242d3c(_0x2e11f5){var _0xcdbb3d=_0x248350;!_0x32d445()[_0xcdbb3d('0xe44')](_0x2e11f5)&&(_0x4ffa0b[_0xcdbb3d('0xc04')][_0x2e11f5['id']]=_0x32d445()['pick'](_0x2e11f5,_0x227c35));}function _0x5bf1ca(_0x48d2ea){var _0x23ee16=_0x248350;!_0x32d445()[_0x23ee16('0xe44')](_0x48d2ea)&&(_0x4ffa0b[_0x23ee16('0xc04')][_0x48d2ea['id']]&&_0x32d445()[_0x23ee16('0x1d8')](_0x4ffa0b[_0x23ee16('0xc04')][_0x48d2ea['id']],_0x32d445()[_0x23ee16('0xed5')](_0x48d2ea,_0x227c35)),_0x4ffa0b['faxQueues'][_0x48d2ea['id']]&&_0x32d445()['merge'](_0x4ffa0b['faxQueues'][_0x48d2ea['id']],_0x32d445()['pick'](_0x48d2ea,_0x227c35)));}function _0x26ebf7(_0x905b85){var _0x516dc5=_0x248350;!_0x32d445()[_0x516dc5('0xe44')](_0x905b85)&&(delete _0x4ffa0b[_0x516dc5('0xc04')][_0x905b85['id']],delete _0x4ffa0b[_0x516dc5('0x156e')][_0x905b85['id']]);}function _0x5b1bbd(_0x1c07e2){var _0x193255=_0x248350;_0x32d445()['toInteger'](_0x1c07e2[_0x193255('0x43d')])===_0x38de83[_0x193255('0x1ef8')]()['id']&&_0x4ffa0b[_0x193255('0x2339')]();}function _0x340b0f(_0x3a48a1){var _0x5cdb5a=_0x248350;_0x32d445()[_0x5cdb5a('0x205f')](_0x3a48a1['UserId'])===_0x38de83[_0x5cdb5a('0x1ef8')]()['id']&&_0x4ffa0b[_0x5cdb5a('0x2339')]();}function _0x36f33f(_0x31e8ad){var _0xc3c5b5=_0x248350;_0x4ffa0b[_0xc3c5b5('0x156e')][_0x31e8ad[_0xc3c5b5('0x1d83')]]&&(_0x4ffa0b[_0xc3c5b5('0x21c5')][_0x31e8ad['id']]=_0x31e8ad,_0x3d5d44());}function _0x5bb4a5(_0x2407c6){var _0x404b0f=_0x248350;delete _0x4ffa0b['rpcFaxQueuesWaitingInteractions'][_0x2407c6['id']],_0x4792e2&&_0x4ffa0b[_0x404b0f('0x638')][_0x404b0f('0xb76')](_0x2407c6['id']),_0x3d5d44();}function _0x3636b7(_0x5ec891){var _0x5cc422=_0x248350;switch(_0x5ec891){case'chat':return _0x5cc422('0x11fc');case _0x5cc422('0x26bf'):return'teal-bg';case _0x5cc422('0x2801'):return _0x5cc422('0x2176');case _0x5cc422('0x4b7'):return _0x5cc422('0x28f');case _0x5cc422('0xaf2'):return _0x5cc422('0x2082');case _0x5cc422('0x625'):return'blue-grey-A200-bg';default:return'white-bg';}}_0x593471['$on'](_0x248350('0x5cd'),function(){var _0x40e8e1=_0x248350;_0x2b36c8[_0x40e8e1('0x2121')](_0x40e8e1('0x1ab0')),_0x2b36c8[_0x40e8e1('0x2121')]('faxQueue:save'),_0x2b36c8[_0x40e8e1('0x2121')]('faxQueue:update'),_0x2b36c8['removeAllListeners'](_0x40e8e1('0x154c')),_0x2b36c8[_0x40e8e1('0x2121')](_0x40e8e1('0x21e')),_0x2b36c8['removeAllListeners'](_0x40e8e1('0x20b7')),_0x2b36c8[_0x40e8e1('0x2121')](_0x40e8e1('0x628')),_0x2b36c8['removeAllListeners'](_0x40e8e1('0x1ca4'));});}const _0x5659fe=_0x272847;_0xe52d65[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x1728'),'$window',_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x46d')];function _0xe52d65(_0x101dce,_0xd243ee,_0x187466,_0x46012d,_0xb61d75,_0x593eda,_0x1bb30c,_0x2cade0,_0x24fd94){var _0x48db7c=_0xb635d2,_0x5ebe82=this,_0x255207=['id',_0x48db7c('0x2623'),_0x48db7c('0x1fba'),_0x48db7c('0x183a')],_0x22124c=!![];_0x5ebe82[_0x48db7c('0x12af')]={},_0x5ebe82[_0x48db7c('0xe68')]=0x0,_0x5ebe82['rpcMailQueues']={},_0x5ebe82[_0x48db7c('0x14a5')]=[],_0x5ebe82[_0x48db7c('0xe76')]=[],_0x5ebe82[_0x48db7c('0x588')]={},_0x5ebe82['query']={'id':_0x2cade0[_0x48db7c('0x1ef8')]()['id'],'channel':_0x48db7c('0x26bf'),'fields':_0x48db7c('0x72b'),'limit':0xa,'page':0x1},_0x5ebe82['queryChannels']={'limit':0xa,'page':0x1},_0x5ebe82[_0x48db7c('0x425')]=_0x4943ea,_0x5ebe82[_0x48db7c('0x634')]=_0x295f4e,_0x5ebe82[_0x48db7c('0x1c9c')]=_0x427b03,_0x5ebe82[_0x48db7c('0x16b9')]=_0x4d20f0,_0x5ebe82[_0x48db7c('0x279e')]=_0xa4f8ec,_0x5ebe82[_0x48db7c('0x1153')]=_0x25bf2b,_0x5ebe82[_0x48db7c('0x3b0')]=_0x2ca7d0,_0x5ebe82[_0x48db7c('0x53b')]=_0x24e0f2,_0x5ebe82['onRemoveMailQueue']=_0x175c81,_0x5ebe82['onSaveUserMailQueue']=_0x333252,_0x5ebe82[_0x48db7c('0x23a9')]=_0xedadeb,_0x5ebe82['onSaveMailQueueChannel']=_0x53df86,_0x5ebe82[_0x48db7c('0x21f6')]=_0x2e2c7c,_0x24fd94[_0x48db7c('0x4df')](_0x48db7c('0x2670'),_0x5ebe82[_0x48db7c('0x1153')]),_0x24fd94[_0x48db7c('0x4df')]('mailQueue:save',_0x5ebe82['onSaveMailQueue']),_0x24fd94[_0x48db7c('0x4df')]('mailQueue:update',_0x5ebe82['onUpdateMailQueue']),_0x24fd94[_0x48db7c('0x4df')](_0x48db7c('0x428'),_0x5ebe82[_0x48db7c('0x13f')]),_0x24fd94[_0x48db7c('0x4df')]('userMailQueue:save',_0x5ebe82[_0x48db7c('0x1235')]),_0x24fd94[_0x48db7c('0x4df')](_0x48db7c('0x20aa'),_0x5ebe82[_0x48db7c('0x23a9')]),_0x24fd94[_0x48db7c('0x4df')](_0x48db7c('0x7d'),_0x5ebe82[_0x48db7c('0xc12')]),_0x24fd94[_0x48db7c('0x4df')](_0x48db7c('0x2894'),_0x5ebe82[_0x48db7c('0x21f6')]),_0x1bb30c[_0x48db7c('0x21e1')]['getMailQueues']()['$promise'][_0x48db7c('0xe19')](function(_0x18e3dd){var _0x3decc6=_0x48db7c;_0x5ebe82['rpcMailQueues']=_0x18e3dd?_0x32d445()['keyBy'](_0x18e3dd['rows']?_0x18e3dd[_0x3decc6('0x16a7')]:[],'id'):{};})[_0x48db7c('0xe19')](function(){var _0xbc3493=_0x48db7c;return _0x1bb30c[_0xbc3493('0x10c6')][_0xbc3493('0x23cf')]({'id':_0x2cade0['getCurrentUser']()['id'],'channel':_0xbc3493('0x26bf')})['$promise'];})[_0x48db7c('0xe19')](function(_0x396d4a){var _0x4821c0=_0x48db7c;return _0x5ebe82[_0x4821c0('0x1fff')]=_0x396d4a[_0x4821c0('0x16a7')],_0x1bb30c[_0x4821c0('0x21e1')][_0x4821c0('0x2869')]()[_0x4821c0('0xe59')];})[_0x48db7c('0xe19')](function(_0x3ba5b7){var _0x27cb1a=_0x48db7c,_0x291dd4=_0x32d445()[_0x27cb1a('0x2891')](_0x3ba5b7[_0x27cb1a('0x16a7')],function(_0x5c5029){var _0x39de93=_0x27cb1a;return _0x32d445()[_0x39de93('0x1c43')](_0x5ebe82[_0x39de93('0x1fff')],{'id':_0x5c5029[_0x39de93('0x1d83')]});});_0x3ba5b7[_0x27cb1a('0x16a7')]=_0x291dd4,_0x3ba5b7[_0x27cb1a('0x148b')]=_0x291dd4[_0x27cb1a('0x25ae')],_0x32d445()[_0x27cb1a('0x1d8')](_0x5ebe82[_0x27cb1a('0x588')],_0x3ba5b7?_0x32d445()['keyBy'](_0x3ba5b7[_0x27cb1a('0x16a7')]?_0x3ba5b7[_0x27cb1a('0x16a7')]:[],'id'):{});})['catch'](function(_0x1b6f4c){console['error'](_0x1b6f4c);})[_0x48db7c('0x23')](function(){var _0x3a266c=_0x48db7c;for(var _0x4783ef=0x0;_0x4783ef<_0x5ebe82['deleteMailQueuesWaitingInteractions'][_0x3a266c('0x25ae')];_0x4783ef+=0x1){delete _0x5ebe82[_0x3a266c('0x588')][_0x5ebe82['deleteMailQueuesWaitingInteractions'][_0x4783ef]];}_0x22124c=![],_0x5ebe82['deleteMailQueuesWaitingInteractions']=[],_0x295f4e(),_0xa4f8ec();});function _0xa4f8ec(){var _0xf8303b=_0x48db7c,_0x4228c1=(_0x5ebe82[_0xf8303b('0x40a')]['page']-0x1)*_0x5ebe82['queryChannels'][_0xf8303b('0x1b6d')];_0x5ebe82[_0xf8303b('0x14a5')]=_0x32d445()[_0xf8303b('0x10e')](_0x5ebe82[_0xf8303b('0x588')],[_0xf8303b('0x760')],[_0xf8303b('0x1ee9')]),_0x5ebe82[_0xf8303b('0x2805')]=_0x32d445()['drop'](_0x5ebe82[_0xf8303b('0x14a5')],_0x4228c1)['slice'](0x0,_0x5ebe82[_0xf8303b('0x40a')]['limit']);}function _0x4943ea(_0x290032){var _0x49dfb0=_0x48db7c;_0x5ebe82[_0x49dfb0('0xe68')]=_0x290032[_0x49dfb0('0x148b')]?_0x290032[_0x49dfb0('0x148b')]:0x0,_0x5ebe82[_0x49dfb0('0x12af')]=_0x290032?_0x32d445()[_0x49dfb0('0x226f')](_0x290032[_0x49dfb0('0x16a7')]?_0x290032[_0x49dfb0('0x16a7')]:[],'id'):{},_0x5e93ae();}function _0x295f4e(){var _0xdb1185=_0x48db7c;_0x5ebe82[_0xdb1185('0xa16')]['offset']=(_0x5ebe82[_0xdb1185('0xa16')]['page']-0x1)*_0x5ebe82['query'][_0xdb1185('0x1b6d')],_0x5ebe82[_0xdb1185('0x9c8')]=_0x1bb30c[_0xdb1185('0x10c6')]['getQueues'](_0x5ebe82['query'],_0x4943ea)[_0xdb1185('0xe59')];}var _0x15e02c=!![],_0x179f62=0x1;_0x101dce[_0x48db7c('0x107')](_0x48db7c('0x1607'),function(_0x47f840,_0x4daf06){var _0x491b6a=_0x48db7c;_0x15e02c?_0xd243ee(function(){_0x15e02c=![];}):(!_0x4daf06&&(_0x179f62=_0x5ebe82[_0x491b6a('0xa16')][_0x491b6a('0xc08')]),_0x47f840!==_0x4daf06&&(_0x5ebe82[_0x491b6a('0xa16')]['page']=0x1),!_0x47f840&&(_0x5ebe82[_0x491b6a('0xa16')]['page']=_0x179f62),_0x5ebe82['getMailQueues']());});function _0x427b03(_0x39478a){var _0x21fcb6=_0x48db7c;return _0x32d445()[_0x21fcb6('0x1aea')](_0x39478a);}function _0x5e93ae(){var _0x45fcac=_0x48db7c;_0x32d445()[_0x45fcac('0xd1e')](_0x5ebe82['mailQueues'],function(_0x19b39a,_0x2bb9c0){var _0x176b10=_0x45fcac;_0x5ebe82[_0x176b10('0x2699')][_0x2bb9c0]&&(_0x5ebe82[_0x176b10('0x12af')][_0x2bb9c0][_0x176b10('0x183a')]=_0x5ebe82['rpcMailQueues'][_0x2bb9c0][_0x176b10('0x183a')]||0x0);});}function _0x25bf2b(_0x8d8831){var _0x182b63=_0x48db7c;_0x5ebe82[_0x182b63('0x12af')][_0x8d8831['id']]&&(_0x5ebe82[_0x182b63('0x2699')][_0x8d8831['id']]&&(_0x32d445()[_0x182b63('0x1d8')](_0x5ebe82[_0x182b63('0x2699')][_0x8d8831['id']],_0x32d445()[_0x182b63('0xed5')](_0x8d8831,_0x255207)),_0x32d445()[_0x182b63('0x1d8')](_0x5ebe82[_0x182b63('0x12af')][_0x8d8831['id']],_0x32d445()[_0x182b63('0xed5')](_0x8d8831,_0x255207))));}function _0x2ca7d0(_0x10e2ff){var _0x11a06a=_0x48db7c;!_0x32d445()[_0x11a06a('0xe44')](_0x10e2ff)&&(_0x5ebe82[_0x11a06a('0x2699')][_0x10e2ff['id']]=_0x32d445()[_0x11a06a('0xed5')](_0x10e2ff,_0x255207));}function _0x24e0f2(_0x4de8dc){var _0x2e700b=_0x48db7c;!_0x32d445()[_0x2e700b('0xe44')](_0x4de8dc)&&(_0x5ebe82[_0x2e700b('0x2699')][_0x4de8dc['id']]&&_0x32d445()[_0x2e700b('0x1d8')](_0x5ebe82[_0x2e700b('0x2699')][_0x4de8dc['id']],_0x32d445()[_0x2e700b('0xed5')](_0x4de8dc,_0x255207)),_0x5ebe82['mailQueues'][_0x4de8dc['id']]&&_0x32d445()['merge'](_0x5ebe82[_0x2e700b('0x12af')][_0x4de8dc['id']],_0x32d445()[_0x2e700b('0xed5')](_0x4de8dc,_0x255207)));}function _0x175c81(_0x36e104){var _0x7ce41a=_0x48db7c;!_0x32d445()[_0x7ce41a('0xe44')](_0x36e104)&&(delete _0x5ebe82[_0x7ce41a('0x2699')][_0x36e104['id']],delete _0x5ebe82[_0x7ce41a('0x12af')][_0x36e104['id']]);}function _0x333252(_0xb32b2){var _0x3e55d3=_0x48db7c;_0x32d445()[_0x3e55d3('0x205f')](_0xb32b2[_0x3e55d3('0x43d')])===_0x2cade0[_0x3e55d3('0x1ef8')]()['id']&&_0x5ebe82['getMailQueues']();}function _0xedadeb(_0x20b693){var _0x139206=_0x48db7c;_0x32d445()['toInteger'](_0x20b693[_0x139206('0x43d')])===_0x2cade0[_0x139206('0x1ef8')]()['id']&&_0x5ebe82[_0x139206('0x634')]();}function _0x53df86(_0x2ac35d){var _0x4abda2=_0x48db7c;_0x5ebe82['mailQueues'][_0x2ac35d[_0x4abda2('0x1d83')]]&&(_0x5ebe82[_0x4abda2('0x588')][_0x2ac35d['id']]=_0x2ac35d,_0xa4f8ec());}function _0x2e2c7c(_0x5dde26){var _0x132907=_0x48db7c;delete _0x5ebe82[_0x132907('0x588')][_0x5dde26['id']],_0x22124c&&_0x5ebe82['deleteMailQueuesWaitingInteractions'][_0x132907('0xb76')](_0x5dde26['id']),_0xa4f8ec();}function _0x4d20f0(_0x465bfd){var _0x5e48=_0x48db7c;switch(_0x465bfd){case _0x5e48('0x17cc'):return _0x5e48('0x11fc');case _0x5e48('0x26bf'):return'teal-bg';case'sms':return'orange-bg';case _0x5e48('0x4b7'):return _0x5e48('0x28f');case _0x5e48('0xaf2'):return _0x5e48('0x2082');case _0x5e48('0x625'):return _0x5e48('0x2227');default:return _0x5e48('0x340');}}_0x101dce[_0x48db7c('0xb2b')](_0x48db7c('0x5cd'),function(){var _0x556200=_0x48db7c;_0x24fd94[_0x556200('0x2121')]('mail_queue:save'),_0x24fd94[_0x556200('0x2121')]('mailQueue:save'),_0x24fd94[_0x556200('0x2121')]('mailQueue:update'),_0x24fd94[_0x556200('0x2121')](_0x556200('0x428')),_0x24fd94['removeAllListeners'](_0x556200('0x2ee')),_0x24fd94[_0x556200('0x2121')](_0x556200('0x20aa')),_0x24fd94[_0x556200('0x2121')](_0x556200('0x7d')),_0x24fd94[_0x556200('0x2121')](_0x556200('0x2894'));});}const _0x1dabc8=_0xe52d65;_0x32ea37[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$window',_0xb635d2('0x2493'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x46d')];function _0x32ea37(_0x2ea4ff,_0x51206c,_0x242598,_0x13949f,_0x27c3ab,_0x2152c5,_0x1c4585,_0x3e8190,_0x5c2a91){var _0xcae97=_0xb635d2,_0x4037f7=this,_0x5bd8b0=['id',_0xcae97('0x2623'),_0xcae97('0x1fba'),_0xcae97('0x183a')],_0xe15159=!![];_0x4037f7[_0xcae97('0x5df')]={},_0x4037f7[_0xcae97('0x1a8b')]=0x0,_0x4037f7[_0xcae97('0x843')]={},_0x4037f7['paginatedInteractions']=[],_0x4037f7['deleteOpenchannelQueuesWaitingInteractions']=[],_0x4037f7['rpcOpenchannelQueuesWaitingInteractions']={},_0x4037f7[_0xcae97('0xa16')]={'id':_0x3e8190[_0xcae97('0x1ef8')]()['id'],'channel':_0xcae97('0xaf2'),'fields':_0xcae97('0x72b'),'limit':0xa,'page':0x1},_0x4037f7[_0xcae97('0x40a')]={'limit':0xa,'page':0x1},_0x4037f7['success']=_0x11357a,_0x4037f7[_0xcae97('0x1d0d')]=_0x5e0a4a,_0x4037f7['getSize']=_0x3ab902,_0x4037f7[_0xcae97('0x16b9')]=_0x139580,_0x4037f7['paginate']=_0x147a78,_0x4037f7[_0xcae97('0x1153')]=_0x188089,_0x4037f7[_0xcae97('0x2454')]=_0x5e1150,_0x4037f7[_0xcae97('0xb2a')]=_0x4f2b53,_0x4037f7['onRemoveOpenchannelQueue']=_0x3b4ff9,_0x4037f7[_0xcae97('0xcc7')]=_0x110373,_0x4037f7[_0xcae97('0x25aa')]=_0x120dd8,_0x4037f7[_0xcae97('0x1054')]=_0x5065b2,_0x4037f7['onRemoveOpenchannelQueueChannel']=_0x41999a,_0x5c2a91['onWithoutApply'](_0xcae97('0x170'),_0x4037f7[_0xcae97('0x1153')]),_0x5c2a91[_0xcae97('0x4df')](_0xcae97('0x72'),_0x4037f7[_0xcae97('0x2454')]),_0x5c2a91['onWithoutApply'](_0xcae97('0x16e6'),_0x4037f7[_0xcae97('0xb2a')]),_0x5c2a91['onWithoutApply']('openchannelQueue:remove',_0x4037f7['onRemoveOpenchannelQueue']),_0x5c2a91[_0xcae97('0x4df')](_0xcae97('0x94a'),_0x4037f7[_0xcae97('0xcc7')]),_0x5c2a91['onWithoutApply']('userOpenchannelQueue:remove',_0x4037f7[_0xcae97('0x25aa')]),_0x5c2a91['onWithoutApply']('openchannel_queue_waiting_interaction:save',_0x4037f7[_0xcae97('0x1054')]),_0x5c2a91[_0xcae97('0x4df')](_0xcae97('0x16f3'),_0x4037f7[_0xcae97('0x161d')]),_0x1c4585['rpc'][_0xcae97('0x1d0d')]()[_0xcae97('0xe59')]['then'](function(_0xa5caae){var _0x3ad325=_0xcae97;_0x4037f7[_0x3ad325('0x843')]=_0xa5caae?_0x32d445()[_0x3ad325('0x226f')](_0xa5caae[_0x3ad325('0x16a7')]?_0xa5caae[_0x3ad325('0x16a7')]:[],'id'):{};})[_0xcae97('0xe19')](function(){var _0x30da2e=_0xcae97;return _0x1c4585['user'][_0x30da2e('0x23cf')]({'id':_0x3e8190[_0x30da2e('0x1ef8')]()['id'],'channel':_0x30da2e('0xaf2')})[_0x30da2e('0xe59')];})[_0xcae97('0xe19')](function(_0x528d10){var _0x12186d=_0xcae97;return _0x4037f7['myQueues']=_0x528d10['rows'],_0x1c4585[_0x12186d('0x21e1')][_0x12186d('0xe79')]()['$promise'];})[_0xcae97('0xe19')](function(_0xbf22b4){var _0x2bce79=_0xcae97,_0x15ae8a=_0x32d445()[_0x2bce79('0x2891')](_0xbf22b4['rows'],function(_0xe73307){var _0x32e256=_0x2bce79;return _0x32d445()[_0x32e256('0x1c43')](_0x4037f7[_0x32e256('0x1fff')],{'id':_0xe73307[_0x32e256('0x1d83')]});});_0xbf22b4['rows']=_0x15ae8a,_0xbf22b4[_0x2bce79('0x148b')]=_0x15ae8a[_0x2bce79('0x25ae')],_0x32d445()['merge'](_0x4037f7['rpcOpenchannelQueuesWaitingInteractions'],_0xbf22b4?_0x32d445()['keyBy'](_0xbf22b4[_0x2bce79('0x16a7')]?_0xbf22b4[_0x2bce79('0x16a7')]:[],'id'):{});})['catch'](function(_0x28549c){var _0x76aa59=_0xcae97;console[_0x76aa59('0x8c8')](_0x28549c);})['finally'](function(){var _0x3a13bc=_0xcae97;for(var _0x361cab=0x0;_0x361cab<_0x4037f7[_0x3a13bc('0x1c1b')][_0x3a13bc('0x25ae')];_0x361cab+=0x1){delete _0x4037f7[_0x3a13bc('0x13d8')][_0x4037f7[_0x3a13bc('0x1c1b')][_0x361cab]];}_0xe15159=![],_0x4037f7[_0x3a13bc('0x1c1b')]=[],_0x5e0a4a(),_0x147a78();});function _0x147a78(){var _0xacd02a=_0xcae97,_0x5e0fdd=(_0x4037f7[_0xacd02a('0x40a')][_0xacd02a('0xc08')]-0x1)*_0x4037f7[_0xacd02a('0x40a')]['limit'];_0x4037f7['paginatedInteractions']=_0x32d445()[_0xacd02a('0x10e')](_0x4037f7[_0xacd02a('0x13d8')],['joinAt'],[_0xacd02a('0x1ee9')]),_0x4037f7[_0xacd02a('0x2805')]=_0x32d445()[_0xacd02a('0x4a0')](_0x4037f7['paginatedInteractions'],_0x5e0fdd)[_0xacd02a('0xa19')](0x0,_0x4037f7[_0xacd02a('0x40a')]['limit']);}function _0x11357a(_0x487d93){var _0x1a72f9=_0xcae97;_0x4037f7[_0x1a72f9('0x1a8b')]=_0x487d93['count']?_0x487d93[_0x1a72f9('0x148b')]:0x0,_0x4037f7['openchannelQueues']=_0x487d93?_0x32d445()['keyBy'](_0x487d93[_0x1a72f9('0x16a7')]?_0x487d93[_0x1a72f9('0x16a7')]:[],'id'):{},_0xdbba7a();}function _0x5e0a4a(){var _0x58939d=_0xcae97;_0x4037f7[_0x58939d('0xa16')][_0x58939d('0xab0')]=(_0x4037f7[_0x58939d('0xa16')][_0x58939d('0xc08')]-0x1)*_0x4037f7[_0x58939d('0xa16')]['limit'],_0x4037f7[_0x58939d('0x9c8')]=_0x1c4585['user'][_0x58939d('0x23cf')](_0x4037f7[_0x58939d('0xa16')],_0x11357a)[_0x58939d('0xe59')];}var _0x24e7a2=!![],_0x269045=0x1;_0x2ea4ff[_0xcae97('0x107')]('vm_dc.query.filter',function(_0x3ea371,_0x43c675){var _0x6b7570=_0xcae97;_0x24e7a2?_0x51206c(function(){_0x24e7a2=![];}):(!_0x43c675&&(_0x269045=_0x4037f7[_0x6b7570('0xa16')][_0x6b7570('0xc08')]),_0x3ea371!==_0x43c675&&(_0x4037f7['query'][_0x6b7570('0xc08')]=0x1),!_0x3ea371&&(_0x4037f7[_0x6b7570('0xa16')]['page']=_0x269045),_0x4037f7['getOpenchannelQueues']());});function _0x3ab902(_0x53462d){var _0x2fe92a=_0xcae97;return _0x32d445()[_0x2fe92a('0x1aea')](_0x53462d);}function _0xdbba7a(){var _0x4b8f97=_0xcae97;_0x32d445()['forIn'](_0x4037f7[_0x4b8f97('0x5df')],function(_0x14932c,_0x398de1){var _0x1c9c3a=_0x4b8f97;_0x4037f7[_0x1c9c3a('0x843')][_0x398de1]&&(_0x4037f7[_0x1c9c3a('0x5df')][_0x398de1][_0x1c9c3a('0x183a')]=_0x4037f7[_0x1c9c3a('0x843')][_0x398de1][_0x1c9c3a('0x183a')]||0x0);});}function _0x188089(_0x403dea){var _0x15d988=_0xcae97;_0x4037f7[_0x15d988('0x5df')][_0x403dea['id']]&&(_0x4037f7[_0x15d988('0x843')][_0x403dea['id']]&&(_0x32d445()[_0x15d988('0x1d8')](_0x4037f7[_0x15d988('0x843')][_0x403dea['id']],_0x32d445()[_0x15d988('0xed5')](_0x403dea,_0x5bd8b0)),_0x32d445()[_0x15d988('0x1d8')](_0x4037f7[_0x15d988('0x5df')][_0x403dea['id']],_0x32d445()[_0x15d988('0xed5')](_0x403dea,_0x5bd8b0))));}function _0x5e1150(_0x576ed9){var _0x165617=_0xcae97;!_0x32d445()[_0x165617('0xe44')](_0x576ed9)&&(_0x4037f7[_0x165617('0x843')][_0x576ed9['id']]=_0x32d445()[_0x165617('0xed5')](_0x576ed9,_0x5bd8b0));}function _0x4f2b53(_0x62d03e){var _0x37b54b=_0xcae97;!_0x32d445()[_0x37b54b('0xe44')](_0x62d03e)&&(_0x4037f7[_0x37b54b('0x843')][_0x62d03e['id']]&&_0x32d445()[_0x37b54b('0x1d8')](_0x4037f7['rpcOpenchannelQueues'][_0x62d03e['id']],_0x32d445()['pick'](_0x62d03e,_0x5bd8b0)),_0x4037f7[_0x37b54b('0x5df')][_0x62d03e['id']]&&_0x32d445()['merge'](_0x4037f7[_0x37b54b('0x5df')][_0x62d03e['id']],_0x32d445()[_0x37b54b('0xed5')](_0x62d03e,_0x5bd8b0)));}function _0x3b4ff9(_0x1aabfb){var _0x26e248=_0xcae97;!_0x32d445()[_0x26e248('0xe44')](_0x1aabfb)&&(delete _0x4037f7[_0x26e248('0x843')][_0x1aabfb['id']],delete _0x4037f7[_0x26e248('0x5df')][_0x1aabfb['id']]);}function _0x110373(_0x37b8ac){var _0x56566d=_0xcae97;_0x32d445()[_0x56566d('0x205f')](_0x37b8ac[_0x56566d('0x43d')])===_0x3e8190[_0x56566d('0x1ef8')]()['id']&&_0x4037f7[_0x56566d('0x1d0d')]();}function _0x120dd8(_0x46f4fb){var _0x55bd9=_0xcae97;_0x32d445()['toInteger'](_0x46f4fb['UserId'])===_0x3e8190[_0x55bd9('0x1ef8')]()['id']&&_0x4037f7[_0x55bd9('0x1d0d')]();}function _0x5065b2(_0x3709a8){_0x4037f7['openchannelQueues'][_0x3709a8['queue_id']]&&(_0x4037f7['rpcOpenchannelQueuesWaitingInteractions'][_0x3709a8['id']]=_0x3709a8,_0x147a78());}function _0x41999a(_0x3431d8){var _0x1e7977=_0xcae97;delete _0x4037f7[_0x1e7977('0x13d8')][_0x3431d8['id']],_0xe15159&&_0x4037f7[_0x1e7977('0x1c1b')][_0x1e7977('0xb76')](_0x3431d8['id']),_0x147a78();}function _0x139580(_0x543536){var _0x19dd25=_0xcae97;switch(_0x543536){case _0x19dd25('0x17cc'):return _0x19dd25('0x11fc');case _0x19dd25('0x26bf'):return'teal-bg';case'sms':return _0x19dd25('0x2176');case _0x19dd25('0x4b7'):return'lime-A700-bg';case _0x19dd25('0xaf2'):return _0x19dd25('0x2082');case _0x19dd25('0x625'):return'blue-grey-A200-bg';default:return _0x19dd25('0x340');}}_0x2ea4ff[_0xcae97('0xb2b')](_0xcae97('0x5cd'),function(){var _0x355224=_0xcae97;_0x5c2a91[_0x355224('0x2121')]('openchannel_queue:save'),_0x5c2a91[_0x355224('0x2121')]('openchannelQueue:save'),_0x5c2a91[_0x355224('0x2121')]('openchannelQueue:update'),_0x5c2a91['removeAllListeners'](_0x355224('0x23e8')),_0x5c2a91[_0x355224('0x2121')](_0x355224('0x94a')),_0x5c2a91[_0x355224('0x2121')](_0x355224('0x5c9')),_0x5c2a91[_0x355224('0x2121')]('openchannel_queue_waiting_interaction:save'),_0x5c2a91[_0x355224('0x2121')](_0x355224('0x16f3'));});}const _0x4b2cec=_0x32ea37;_0x926bca[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$document','$window',_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'socket'];function _0x926bca(_0xdc15cb,_0x34188f,_0xc53ddc,_0x56d7c5,_0x5ca4f3,_0x3a8d41,_0x3f6c0d,_0x268d80,_0x5b688c){var _0x115b19=_0xb635d2,_0x64234d=this,_0x3d9e38=['id','name',_0x115b19('0x1fba'),_0x115b19('0x183a')],_0x593a58=!![];_0x64234d['smsQueues']={},_0x64234d[_0x115b19('0x174d')]=0x0,_0x64234d[_0x115b19('0x24c7')]={},_0x64234d[_0x115b19('0x14a5')]=[],_0x64234d['deleteSmsQueuesWaitingInteractions']=[],_0x64234d[_0x115b19('0x15b1')]={},_0x64234d[_0x115b19('0xa16')]={'id':_0x268d80[_0x115b19('0x1ef8')]()['id'],'channel':_0x115b19('0x2801'),'fields':_0x115b19('0x72b'),'limit':0xa,'page':0x1},_0x64234d[_0x115b19('0x40a')]={'limit':0xa,'page':0x1},_0x64234d[_0x115b19('0x425')]=_0x216dde,_0x64234d[_0x115b19('0x1bad')]=_0x3afda8,_0x64234d[_0x115b19('0x1c9c')]=_0x4b14ea,_0x64234d[_0x115b19('0x16b9')]=_0x1c4d6f,_0x64234d[_0x115b19('0x279e')]=_0x17e5e7,_0x64234d[_0x115b19('0x1153')]=_0x34b7ba,_0x64234d['onSaveSmsQueue']=_0x4ba6b3,_0x64234d[_0x115b19('0x522')]=_0x59f8c0,_0x64234d[_0x115b19('0x125d')]=_0x279d3d,_0x64234d[_0x115b19('0x1605')]=_0x3384b0,_0x64234d['onRemoveUserSmsQueue']=_0x55c56f,_0x64234d[_0x115b19('0x278d')]=_0x2522a1,_0x64234d[_0x115b19('0x327')]=_0x3b0faf,_0x5b688c[_0x115b19('0x4df')](_0x115b19('0x1d03'),_0x64234d[_0x115b19('0x1153')]),_0x5b688c[_0x115b19('0x4df')]('smsQueue:save',_0x64234d['onSaveSmsQueue']),_0x5b688c['onWithoutApply'](_0x115b19('0x1dc3'),_0x64234d[_0x115b19('0x522')]),_0x5b688c['onWithoutApply']('smsQueue:remove',_0x64234d[_0x115b19('0x125d')]),_0x5b688c[_0x115b19('0x4df')]('userSmsQueue:save',_0x64234d[_0x115b19('0x1605')]),_0x5b688c[_0x115b19('0x4df')]('userSmsQueue:remove',_0x64234d[_0x115b19('0x1a97')]),_0x5b688c[_0x115b19('0x4df')]('sms_queue_waiting_interaction:save',_0x64234d[_0x115b19('0x278d')]),_0x5b688c[_0x115b19('0x4df')]('sms_queue_waiting_interaction:remove',_0x64234d['onRemoveSmsQueueChannel']),_0x3f6c0d['rpc'][_0x115b19('0x1bad')]()[_0x115b19('0xe59')]['then'](function(_0x43a7ff){var _0x5c53b8=_0x115b19;_0x64234d[_0x5c53b8('0x24c7')]=_0x43a7ff?_0x32d445()['keyBy'](_0x43a7ff['rows']?_0x43a7ff[_0x5c53b8('0x16a7')]:[],'id'):{};})[_0x115b19('0xe19')](function(){var _0x2e085=_0x115b19;return _0x3f6c0d[_0x2e085('0x10c6')]['getQueues']({'id':_0x268d80[_0x2e085('0x1ef8')]()['id'],'channel':_0x2e085('0x2801')})[_0x2e085('0xe59')];})[_0x115b19('0xe19')](function(_0x219678){var _0x28bba4=_0x115b19;return _0x64234d[_0x28bba4('0x1fff')]=_0x219678['rows'],_0x3f6c0d['rpc'][_0x28bba4('0x2417')]()[_0x28bba4('0xe59')];})[_0x115b19('0xe19')](function(_0x4f2a86){var _0x598a9d=_0x115b19,_0x554838=_0x32d445()[_0x598a9d('0x2891')](_0x4f2a86[_0x598a9d('0x16a7')],function(_0x14bf4b){var _0x1b30e2=_0x598a9d;return _0x32d445()[_0x1b30e2('0x1c43')](_0x64234d[_0x1b30e2('0x1fff')],{'id':_0x14bf4b[_0x1b30e2('0x1d83')]});});_0x4f2a86[_0x598a9d('0x16a7')]=_0x554838,_0x4f2a86[_0x598a9d('0x148b')]=_0x554838[_0x598a9d('0x25ae')],_0x32d445()[_0x598a9d('0x1d8')](_0x64234d['rpcSmsQueuesWaitingInteractions'],_0x4f2a86?_0x32d445()[_0x598a9d('0x226f')](_0x4f2a86['rows']?_0x4f2a86[_0x598a9d('0x16a7')]:[],'id'):{});})['catch'](function(_0x60c92d){console['error'](_0x60c92d);})['finally'](function(){var _0x4b7e57=_0x115b19;for(var _0x2251fa=0x0;_0x2251fa<_0x64234d[_0x4b7e57('0x1aaa')][_0x4b7e57('0x25ae')];_0x2251fa+=0x1){delete _0x64234d[_0x4b7e57('0x15b1')][_0x64234d[_0x4b7e57('0x1aaa')][_0x2251fa]];}_0x593a58=![],_0x64234d[_0x4b7e57('0x1aaa')]=[],_0x3afda8(),_0x17e5e7();});function _0x17e5e7(){var _0x16d735=_0x115b19,_0x17c19d=(_0x64234d['queryChannels'][_0x16d735('0xc08')]-0x1)*_0x64234d[_0x16d735('0x40a')][_0x16d735('0x1b6d')];_0x64234d[_0x16d735('0x14a5')]=_0x32d445()[_0x16d735('0x10e')](_0x64234d['rpcSmsQueuesWaitingInteractions'],[_0x16d735('0x760')],[_0x16d735('0x1ee9')]),_0x64234d[_0x16d735('0x2805')]=_0x32d445()[_0x16d735('0x4a0')](_0x64234d[_0x16d735('0x14a5')],_0x17c19d)[_0x16d735('0xa19')](0x0,_0x64234d[_0x16d735('0x40a')][_0x16d735('0x1b6d')]);}function _0x216dde(_0x4dde21){var _0x4b3353=_0x115b19;_0x64234d['smsQueuesTotal']=_0x4dde21[_0x4b3353('0x148b')]?_0x4dde21['count']:0x0,_0x64234d[_0x4b3353('0x2336')]=_0x4dde21?_0x32d445()[_0x4b3353('0x226f')](_0x4dde21[_0x4b3353('0x16a7')]?_0x4dde21[_0x4b3353('0x16a7')]:[],'id'):{},_0x42234b();}function _0x3afda8(){var _0x16e622=_0x115b19;_0x64234d['query']['offset']=(_0x64234d[_0x16e622('0xa16')][_0x16e622('0xc08')]-0x1)*_0x64234d[_0x16e622('0xa16')][_0x16e622('0x1b6d')],_0x64234d['promise']=_0x3f6c0d['user'][_0x16e622('0x23cf')](_0x64234d[_0x16e622('0xa16')],_0x216dde)[_0x16e622('0xe59')];}var _0x173987=!![],_0x1a4af0=0x1;_0xdc15cb[_0x115b19('0x107')]('vm_dc.query.filter',function(_0x55f510,_0x53b952){var _0x33a3da=_0x115b19;_0x173987?_0x34188f(function(){_0x173987=![];}):(!_0x53b952&&(_0x1a4af0=_0x64234d['query']['page']),_0x55f510!==_0x53b952&&(_0x64234d[_0x33a3da('0xa16')]['page']=0x1),!_0x55f510&&(_0x64234d[_0x33a3da('0xa16')][_0x33a3da('0xc08')]=_0x1a4af0),_0x64234d['getSmsQueues']());});function _0x4b14ea(_0x3c67b6){var _0x3ad314=_0x115b19;return _0x32d445()[_0x3ad314('0x1aea')](_0x3c67b6);}function _0x42234b(){var _0x4a25f1=_0x115b19;_0x32d445()['forIn'](_0x64234d[_0x4a25f1('0x2336')],function(_0x45f518,_0x289268){var _0x338965=_0x4a25f1;_0x64234d[_0x338965('0x24c7')][_0x289268]&&(_0x64234d[_0x338965('0x2336')][_0x289268][_0x338965('0x183a')]=_0x64234d[_0x338965('0x24c7')][_0x289268][_0x338965('0x183a')]||0x0);});}function _0x34b7ba(_0x1c958d){var _0x4dc498=_0x115b19;_0x64234d[_0x4dc498('0x2336')][_0x1c958d['id']]&&(_0x64234d['rpcSmsQueues'][_0x1c958d['id']]&&(_0x32d445()[_0x4dc498('0x1d8')](_0x64234d['rpcSmsQueues'][_0x1c958d['id']],_0x32d445()[_0x4dc498('0xed5')](_0x1c958d,_0x3d9e38)),_0x32d445()[_0x4dc498('0x1d8')](_0x64234d[_0x4dc498('0x2336')][_0x1c958d['id']],_0x32d445()['pick'](_0x1c958d,_0x3d9e38))));}function _0x4ba6b3(_0xd8193a){var _0x526a8c=_0x115b19;!_0x32d445()[_0x526a8c('0xe44')](_0xd8193a)&&(_0x64234d[_0x526a8c('0x24c7')][_0xd8193a['id']]=_0x32d445()[_0x526a8c('0xed5')](_0xd8193a,_0x3d9e38));}function _0x59f8c0(_0x42a6c9){var _0x27084e=_0x115b19;!_0x32d445()[_0x27084e('0xe44')](_0x42a6c9)&&(_0x64234d['rpcSmsQueues'][_0x42a6c9['id']]&&_0x32d445()[_0x27084e('0x1d8')](_0x64234d['rpcSmsQueues'][_0x42a6c9['id']],_0x32d445()['pick'](_0x42a6c9,_0x3d9e38)),_0x64234d['smsQueues'][_0x42a6c9['id']]&&_0x32d445()[_0x27084e('0x1d8')](_0x64234d[_0x27084e('0x2336')][_0x42a6c9['id']],_0x32d445()[_0x27084e('0xed5')](_0x42a6c9,_0x3d9e38)));}function _0x279d3d(_0x22bd0b){var _0x22724e=_0x115b19;!_0x32d445()[_0x22724e('0xe44')](_0x22bd0b)&&(delete _0x64234d[_0x22724e('0x24c7')][_0x22bd0b['id']],delete _0x64234d[_0x22724e('0x2336')][_0x22bd0b['id']]);}function _0x3384b0(_0x5e706c){var _0x133ea8=_0x115b19;_0x32d445()['toInteger'](_0x5e706c[_0x133ea8('0x43d')])===_0x268d80[_0x133ea8('0x1ef8')]()['id']&&_0x64234d[_0x133ea8('0x1bad')]();}function _0x55c56f(_0x4b0870){var _0x41c69a=_0x115b19;_0x32d445()['toInteger'](_0x4b0870[_0x41c69a('0x43d')])===_0x268d80[_0x41c69a('0x1ef8')]()['id']&&_0x64234d[_0x41c69a('0x1bad')]();}function _0x2522a1(_0x113c5b){var _0x1f493c=_0x115b19;_0x64234d[_0x1f493c('0x2336')][_0x113c5b['queue_id']]&&(_0x64234d[_0x1f493c('0x15b1')][_0x113c5b['id']]=_0x113c5b,_0x17e5e7());}function _0x3b0faf(_0x35bc50){var _0x23cd0b=_0x115b19;delete _0x64234d[_0x23cd0b('0x15b1')][_0x35bc50['id']],_0x593a58&&_0x64234d[_0x23cd0b('0x1aaa')][_0x23cd0b('0xb76')](_0x35bc50['id']),_0x17e5e7();}function _0x1c4d6f(_0x51d97c){var _0x2bb5ef=_0x115b19;switch(_0x51d97c){case _0x2bb5ef('0x17cc'):return _0x2bb5ef('0x11fc');case'mail':return'teal-bg';case'sms':return _0x2bb5ef('0x2176');case _0x2bb5ef('0x4b7'):return _0x2bb5ef('0x28f');case _0x2bb5ef('0xaf2'):return _0x2bb5ef('0x2082');case _0x2bb5ef('0x625'):return _0x2bb5ef('0x2227');default:return'white-bg';}}_0xdc15cb[_0x115b19('0xb2b')](_0x115b19('0x5cd'),function(){var _0x31e178=_0x115b19;_0x5b688c[_0x31e178('0x2121')]('sms_queue:save'),_0x5b688c[_0x31e178('0x2121')](_0x31e178('0xb97')),_0x5b688c[_0x31e178('0x2121')]('smsQueue:update'),_0x5b688c['removeAllListeners']('smsQueue:remove'),_0x5b688c[_0x31e178('0x2121')]('userSmsQueue:save'),_0x5b688c[_0x31e178('0x2121')](_0x31e178('0x176a')),_0x5b688c['removeAllListeners']('sms_queue_waiting_interaction:save'),_0x5b688c[_0x31e178('0x2121')](_0x31e178('0x52d'));});}const _0x2e0790=_0x926bca;_0x6ce322[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$timeout','$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2400'),_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x46d')];function _0x6ce322(_0x514d14,_0x4943ce,_0x1975a0,_0x1b8223,_0x2ce258,_0x5ab05e,_0xd958b5,_0x273407,_0x1d0ea9){var _0x340713=_0xb635d2,_0x30ea16=this,_0x5360f9=[_0x340713('0x62e'),_0x340713('0x183a'),_0x340713('0x1a23'),'dialActive'];_0x30ea16[_0x340713('0x15c5')]={},_0x30ea16['voiceQueuesTotal']=0x0,_0x30ea16[_0x340713('0x1427')]={},_0x30ea16[_0x340713('0x224c')]={},_0x30ea16[_0x340713('0xf64')]={},_0x30ea16[_0x340713('0x230c')]={},_0x30ea16[_0x340713('0x18fb')]=[],_0x30ea16[_0x340713('0xcfe')]=!![],_0x30ea16['query']={'id':_0x273407[_0x340713('0x1ef8')]()['id'],'fields':_0x340713('0x1659'),'channel':_0x340713('0xe74'),'type':_0x340713('0x1a7a'),'limit':0xa,'page':0x1},_0x30ea16['queryChannels']={'limit':0xa,'page':0x1},_0x30ea16[_0x340713('0x425')]=_0x2144bc,_0x30ea16[_0x340713('0x224c')]=_0x40105b,_0x30ea16['getSize']=_0x541ced,_0x30ea16[_0x340713('0x1153')]=_0x6efb50,_0x30ea16['onSaveChannel']=_0xec119b,_0x30ea16[_0x340713('0x22b3')]=_0xc35364,_0x30ea16[_0x340713('0x1762')]=_0x18d503,_0x30ea16[_0x340713('0x19ee')]=_0x48cd6b,_0x30ea16[_0x340713('0xc66')]=_0x26e18b,_0x1d0ea9[_0x340713('0x4df')](_0x340713('0x149c'),_0x30ea16['onSaveQueue']),_0x1d0ea9[_0x340713('0x4df')](_0x340713('0x592'),_0x30ea16[_0x340713('0x5a4')]),_0x1d0ea9[_0x340713('0x4df')]('userVoiceQueue:save',_0x30ea16[_0x340713('0x22b3')]),_0x1d0ea9[_0x340713('0x4df')](_0x340713('0x1583'),_0x30ea16[_0x340713('0x22b3')]),_0x1d0ea9[_0x340713('0x4df')]('voiceQueue:save',_0x30ea16['onSaveVoiceQueue']),_0x1d0ea9[_0x340713('0x4df')]('voiceQueue:remove',_0x30ea16['onRemoveVoiceQueue']),_0x1d0ea9[_0x340713('0x4df')]('voiceQueue:update',_0x30ea16['onUpdateVoiceQueue']),_0xd958b5['user'][_0x340713('0x23cf')](_0x30ea16['query'])[_0x340713('0xe59')][_0x340713('0xe19')](function(_0x397193){var _0x99c2e7=_0x340713;return _0x30ea16['myQueues']=_0x397193,_0xd958b5[_0x99c2e7('0x21e1')][_0x99c2e7('0x224c')]()['$promise'];})[_0x340713('0xe19')](function(_0x486d95){var _0x4f2208=_0x340713,_0x937d7a=_0x486d95[_0x4f2208('0x16a7')],_0x58fcb6=_0x32d445()[_0x4f2208('0x226f')](_0x937d7a,'id');for(var _0x5f44c3=0x0;_0x5f44c3<_0x30ea16[_0x4f2208('0x1fff')]['count'];_0x5f44c3++){var _0x4b6ba6=_0x30ea16['myQueues'][_0x4f2208('0x16a7')][_0x5f44c3];_0x30ea16['rpcVoiceQueues'][_0x4b6ba6['id']]=_0x58fcb6[_0x4b6ba6['id']];}return _0xd958b5['rpc'][_0x4f2208('0x1091')]()[_0x4f2208('0xe59')];})[_0x340713('0xe19')](function(_0x5d27c0){var _0x5148ea=_0x340713;_0x30ea16[_0x5148ea('0xf64')]=_0x5d27c0?_0x32d445()[_0x5148ea('0x226f')](_0x5d27c0[_0x5148ea('0x16a7')]?_0x32d445()[_0x5148ea('0x2891')](_0x5d27c0[_0x5148ea('0x16a7')],function(_0x4fcadb){var _0x28ce9a=_0x5148ea;if(_0x4fcadb['type']==='inbound'&&!_0x4fcadb['queuecallerleaveAt']&&_0x32d445()[_0x28ce9a('0xf15')](_0x30ea16[_0x28ce9a('0x1fff')][_0x28ce9a('0x16a7')],{'name':_0x4fcadb[_0x28ce9a('0x26a8')]}))return!![];return![];}):[],_0x5148ea('0x1a6c')):{};})[_0x340713('0x223b')](function(_0x3262b3){var _0x4edc52=_0x340713;console[_0x4edc52('0x8c8')](_0x3262b3);})[_0x340713('0x23')](function(){var _0x479f63=_0x340713;_0x32d445()[_0x479f63('0x1d8')](_0x30ea16[_0x479f63('0xf64')],_0x30ea16[_0x479f63('0x230c')]);for(var _0x5bc665=0x0;_0x5bc665<_0x30ea16['deleteVoiceQueuesChannels'][_0x479f63('0x25ae')];_0x5bc665+=0x1){delete _0x30ea16[_0x479f63('0xf64')][_0x30ea16[_0x479f63('0x18fb')][_0x5bc665]];}_0x30ea16[_0x479f63('0xcfe')]=![],_0x30ea16['addVoiceQueuesChannels']={},_0x30ea16['deleteVoiceQueuesChannels']=[],_0x30ea16[_0x479f63('0x224c')]();});function _0x2144bc(_0x14b149){var _0x3a8a29=_0x340713;_0x30ea16[_0x3a8a29('0x6b8')]=_0x14b149[_0x3a8a29('0x148b')]?_0x14b149[_0x3a8a29('0x148b')]:0x0,_0x30ea16[_0x3a8a29('0x15c5')]=_0x14b149?_0x32d445()[_0x3a8a29('0x226f')](_0x14b149[_0x3a8a29('0x16a7')]?_0x14b149[_0x3a8a29('0x16a7')]:[],'id'):{},_0x40e161();}function _0x40105b(){var _0x1e4dbe=_0x340713;_0x30ea16[_0x1e4dbe('0xa16')][_0x1e4dbe('0xab0')]=(_0x30ea16[_0x1e4dbe('0xa16')][_0x1e4dbe('0xc08')]-0x1)*_0x30ea16[_0x1e4dbe('0xa16')][_0x1e4dbe('0x1b6d')],_0x30ea16[_0x1e4dbe('0x9c8')]=_0xd958b5[_0x1e4dbe('0x10c6')][_0x1e4dbe('0x23cf')](_0x30ea16['query'],_0x2144bc)[_0x1e4dbe('0xe59')];}var _0x20698b=!![],_0x38cf32=0x1;_0x514d14[_0x340713('0x107')](_0x340713('0x1607'),function(_0x4efb4c,_0x433605){var _0x3fec4f=_0x340713;_0x20698b?_0x4943ce(function(){_0x20698b=![];}):(!_0x433605&&(_0x38cf32=_0x30ea16[_0x3fec4f('0xa16')][_0x3fec4f('0xc08')]),_0x4efb4c!==_0x433605&&(_0x30ea16['query'][_0x3fec4f('0xc08')]=0x1),!_0x4efb4c&&(_0x30ea16['query'][_0x3fec4f('0xc08')]=_0x38cf32),_0x30ea16[_0x3fec4f('0x224c')]());});function _0x541ced(_0x3debb9){var _0x4ebdff=_0x340713;return _0x32d445()[_0x4ebdff('0x1aea')](_0x3debb9);}function _0x40e161(){var _0x3b8f51=_0x340713;_0x32d445()[_0x3b8f51('0xd1e')](_0x30ea16[_0x3b8f51('0x15c5')],function(_0x116f80,_0x57e548){var _0x19ca25=_0x3b8f51;_0x30ea16[_0x19ca25('0x1427')][_0x57e548]&&(_0x30ea16[_0x19ca25('0x15c5')][_0x57e548]['waiting']=_0x30ea16[_0x19ca25('0x1427')][_0x57e548][_0x19ca25('0x183a')]||0x0);});}function _0x6efb50(_0x44e7fa){var _0x4b3bc0=_0x340713;_0x30ea16[_0x4b3bc0('0x15c5')][_0x44e7fa['id']]&&(_0x30ea16[_0x4b3bc0('0x1427')][_0x44e7fa['id']]&&(_0x30ea16[_0x4b3bc0('0x1427')][_0x44e7fa['id']]=_0x44e7fa,_0x32d445()['merge'](_0x30ea16[_0x4b3bc0('0x15c5')][_0x44e7fa['id']],_0x32d445()[_0x4b3bc0('0xed5')](_0x44e7fa,_0x5360f9))));}function _0xec119b(_0x439c40){var _0x15e4c4=_0x340713;_0x439c40[_0x15e4c4('0x62e')]===_0x15e4c4('0x1a7a')&&(_0x439c40[_0x15e4c4('0x1029')]?(delete _0x30ea16[_0x15e4c4('0xf64')][_0x439c40[_0x15e4c4('0x1a6c')]],_0x30ea16[_0x15e4c4('0xcfe')]&&_0x30ea16[_0x15e4c4('0x18fb')][_0x15e4c4('0xb76')](_0x439c40[_0x15e4c4('0x1a6c')])):(_0x30ea16[_0x15e4c4('0xf64')][_0x439c40['uniqueid']]=_0x439c40,_0x30ea16[_0x15e4c4('0xcfe')]&&(_0x30ea16[_0x15e4c4('0x230c')][_0x439c40[_0x15e4c4('0x1a6c')]]=_0x439c40)));}function _0x18d503(_0xcf318e){var _0x416d09=_0x340713;!_0x32d445()['isNil'](_0xcf318e)&&(_0x30ea16[_0x416d09('0x1427')][_0xcf318e['id']]=_0x32d445()['pick'](_0xcf318e,_0x5360f9));}function _0x48cd6b(_0x28def9){var _0xe8cc33=_0x340713;!_0x32d445()[_0xe8cc33('0xe44')](_0x28def9)&&(_0x30ea16[_0xe8cc33('0x1427')][_0x28def9['id']]&&_0x32d445()[_0xe8cc33('0x1d8')](_0x30ea16['rpcVoiceQueues'][_0x28def9['id']],_0x32d445()[_0xe8cc33('0xed5')](_0x28def9,_0x5360f9)),_0x30ea16[_0xe8cc33('0x15c5')][_0x28def9['id']]&&_0x32d445()[_0xe8cc33('0x1d8')](_0x30ea16[_0xe8cc33('0x15c5')][_0x28def9['id']],_0x32d445()[_0xe8cc33('0xed5')](_0x28def9,_0x5360f9)));}function _0x26e18b(_0x1f42e5){var _0x2a732d=_0x340713;!_0x32d445()[_0x2a732d('0xe44')](_0x1f42e5)&&(delete _0x30ea16[_0x2a732d('0x1427')][_0x1f42e5['id']],delete _0x30ea16[_0x2a732d('0x15c5')][_0x1f42e5['id']]);}function _0xc35364(_0x5ab701){var _0x13636c=_0x340713;_0x32d445()['toInteger'](_0x5ab701['UserId'])===_0x273407['getCurrentUser']()['id']&&_0x30ea16[_0x13636c('0x224c')]();}_0x514d14[_0x340713('0xb2b')](_0x340713('0x5cd'),function(){var _0x15b85a=_0x340713;_0x1d0ea9[_0x15b85a('0x2121')](_0x15b85a('0x149c')),_0x1d0ea9[_0x15b85a('0x2121')](_0x15b85a('0x592')),_0x1d0ea9['removeAllListeners'](_0x15b85a('0x2161')),_0x1d0ea9[_0x15b85a('0x2121')](_0x15b85a('0x1583')),_0x1d0ea9[_0x15b85a('0x2121')](_0x15b85a('0x8c4')),_0x1d0ea9['removeAllListeners'](_0x15b85a('0x16c')),_0x1d0ea9[_0x15b85a('0x2121')](_0x15b85a('0x18f7'));});}const _0x19a472=_0x6ce322;_0x2a3ebe[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2400'),_0xb635d2('0x2493'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x46d')];function _0x2a3ebe(_0x1ce909,_0x5dfbfb,_0x1b36a9,_0x4d91c4,_0x645399,_0x3e18a6,_0xdaccee,_0x4df8c5,_0x31a449){var _0xd247df=_0xb635d2,_0x13865e=this,_0x1fba08=['id',_0xd247df('0x2623'),_0xd247df('0x1fba'),'waiting'],_0x1e0203=!![];_0x13865e['whatsappQueues']={},_0x13865e[_0xd247df('0x1bcb')]=0x0,_0x13865e[_0xd247df('0x11b')]={},_0x13865e[_0xd247df('0x14a5')]=[],_0x13865e['deleteWhatsappQueuesWaitingInteractions']=[],_0x13865e['rpcWhatsappQueuesWaitingInteractions']={},_0x13865e[_0xd247df('0xa16')]={'id':_0x4df8c5[_0xd247df('0x1ef8')]()['id'],'channel':_0xd247df('0x4b7'),'fields':_0xd247df('0x72b'),'limit':0xa,'page':0x1},_0x13865e['queryChannels']={'limit':0xa,'page':0x1},_0x13865e[_0xd247df('0x425')]=_0xa4ce93,_0x13865e[_0xd247df('0x1742')]=_0x55817f,_0x13865e[_0xd247df('0x1c9c')]=_0x4d7b29,_0x13865e[_0xd247df('0x16b9')]=_0x2b6452,_0x13865e['paginate']=_0x5742b6,_0x13865e[_0xd247df('0x1153')]=_0xfb9818,_0x13865e[_0xd247df('0x1126')]=_0xef269d,_0x13865e[_0xd247df('0x151e')]=_0x5c85cf,_0x13865e[_0xd247df('0x1bc4')]=_0xf3dcac,_0x13865e[_0xd247df('0x10d2')]=_0x2306ae,_0x13865e[_0xd247df('0x7c1')]=_0x4d19de,_0x13865e['onSaveWhatsappQueueChannel']=_0x4529b8,_0x13865e[_0xd247df('0xfa2')]=_0x55add8,_0x31a449[_0xd247df('0x4df')](_0xd247df('0x1222'),_0x13865e[_0xd247df('0x1153')]),_0x31a449[_0xd247df('0x4df')](_0xd247df('0x18b6'),_0x13865e['onSaveWhatsappQueue']),_0x31a449[_0xd247df('0x4df')](_0xd247df('0x1a74'),_0x13865e[_0xd247df('0x151e')]),_0x31a449[_0xd247df('0x4df')](_0xd247df('0x1669'),_0x13865e[_0xd247df('0x1bc4')]),_0x31a449[_0xd247df('0x4df')](_0xd247df('0x2392'),_0x13865e[_0xd247df('0x10d2')]),_0x31a449['onWithoutApply']('userWhatsappQueue:remove',_0x13865e[_0xd247df('0x7c1')]),_0x31a449[_0xd247df('0x4df')]('whatsapp_queue_waiting_interaction:save',_0x13865e[_0xd247df('0x4d4')]),_0x31a449[_0xd247df('0x4df')](_0xd247df('0x768'),_0x13865e['onRemoveWhatsappQueueChannel']),_0xdaccee['rpc']['getWhatsappQueues']()[_0xd247df('0xe59')]['then'](function(_0x1e9540){var _0xe87f85=_0xd247df;_0x13865e[_0xe87f85('0x11b')]=_0x1e9540?_0x32d445()[_0xe87f85('0x226f')](_0x1e9540[_0xe87f85('0x16a7')]?_0x1e9540[_0xe87f85('0x16a7')]:[],'id'):{};})[_0xd247df('0xe19')](function(){var _0x70b4dd=_0xd247df;return _0xdaccee[_0x70b4dd('0x10c6')][_0x70b4dd('0x23cf')]({'id':_0x4df8c5[_0x70b4dd('0x1ef8')]()['id'],'channel':_0x70b4dd('0x4b7')})['$promise'];})[_0xd247df('0xe19')](function(_0x24cb0c){var _0x103936=_0xd247df;return _0x13865e['myQueues']=_0x24cb0c[_0x103936('0x16a7')],_0xdaccee[_0x103936('0x21e1')][_0x103936('0x1f14')]()[_0x103936('0xe59')];})[_0xd247df('0xe19')](function(_0x2deb78){var _0x176547=_0xd247df,_0x49f623=_0x32d445()[_0x176547('0x2891')](_0x2deb78['rows'],function(_0x301e94){var _0x2b5cd9=_0x176547;return _0x32d445()['includes'](_0x13865e[_0x2b5cd9('0x1fff')],{'id':_0x301e94[_0x2b5cd9('0x1d83')]});});_0x2deb78['rows']=_0x49f623,_0x2deb78['count']=_0x49f623[_0x176547('0x25ae')],_0x32d445()['merge'](_0x13865e[_0x176547('0x10dd')],_0x2deb78?_0x32d445()['keyBy'](_0x2deb78[_0x176547('0x16a7')]?_0x2deb78['rows']:[],'id'):{});})[_0xd247df('0x223b')](function(_0x2dad40){var _0xd54717=_0xd247df;console[_0xd54717('0x8c8')](_0x2dad40);})[_0xd247df('0x23')](function(){var _0x23a7cb=_0xd247df;for(var _0xaad8f3=0x0;_0xaad8f3<_0x13865e['deleteWhatsappQueuesWaitingInteractions'][_0x23a7cb('0x25ae')];_0xaad8f3+=0x1){delete _0x13865e[_0x23a7cb('0x10dd')][_0x13865e[_0x23a7cb('0x8e5')][_0xaad8f3]];}_0x1e0203=![],_0x13865e['deleteWhatsappQueuesWaitingInteractions']=[],_0x55817f(),_0x5742b6();});function _0x5742b6(){var _0x403523=_0xd247df,_0x16295f=(_0x13865e[_0x403523('0x40a')]['page']-0x1)*_0x13865e[_0x403523('0x40a')][_0x403523('0x1b6d')];_0x13865e[_0x403523('0x14a5')]=_0x32d445()[_0x403523('0x10e')](_0x13865e[_0x403523('0x10dd')],[_0x403523('0x760')],[_0x403523('0x1ee9')]),_0x13865e[_0x403523('0x2805')]=_0x32d445()[_0x403523('0x4a0')](_0x13865e[_0x403523('0x14a5')],_0x16295f)[_0x403523('0xa19')](0x0,_0x13865e[_0x403523('0x40a')][_0x403523('0x1b6d')]);}function _0xa4ce93(_0x51e374){var _0x211057=_0xd247df;_0x13865e[_0x211057('0x1bcb')]=_0x51e374[_0x211057('0x148b')]?_0x51e374[_0x211057('0x148b')]:0x0,_0x13865e[_0x211057('0xcf3')]=_0x51e374?_0x32d445()[_0x211057('0x226f')](_0x51e374[_0x211057('0x16a7')]?_0x51e374[_0x211057('0x16a7')]:[],'id'):{},_0x4570e6();}function _0x55817f(){var _0x4f1d46=_0xd247df;_0x13865e[_0x4f1d46('0xa16')][_0x4f1d46('0xab0')]=(_0x13865e[_0x4f1d46('0xa16')][_0x4f1d46('0xc08')]-0x1)*_0x13865e[_0x4f1d46('0xa16')][_0x4f1d46('0x1b6d')],_0x13865e[_0x4f1d46('0x9c8')]=_0xdaccee['user'][_0x4f1d46('0x23cf')](_0x13865e['query'],_0xa4ce93)[_0x4f1d46('0xe59')];}var _0x1aa647=!![],_0x2f3032=0x1;_0x1ce909[_0xd247df('0x107')]('vm_dc.query.filter',function(_0x32d94c,_0x3e3f20){var _0x2fa817=_0xd247df;_0x1aa647?_0x5dfbfb(function(){_0x1aa647=![];}):(!_0x3e3f20&&(_0x2f3032=_0x13865e['query'][_0x2fa817('0xc08')]),_0x32d94c!==_0x3e3f20&&(_0x13865e[_0x2fa817('0xa16')][_0x2fa817('0xc08')]=0x1),!_0x32d94c&&(_0x13865e[_0x2fa817('0xa16')]['page']=_0x2f3032),_0x13865e[_0x2fa817('0x1742')]());});function _0x4d7b29(_0x56ba45){var _0x221d62=_0xd247df;return _0x32d445()[_0x221d62('0x1aea')](_0x56ba45);}function _0x4570e6(){var _0x48e66c=_0xd247df;_0x32d445()[_0x48e66c('0xd1e')](_0x13865e[_0x48e66c('0xcf3')],function(_0x58775b,_0x4aafb6){var _0x1e4653=_0x48e66c;_0x13865e[_0x1e4653('0x11b')][_0x4aafb6]&&(_0x13865e[_0x1e4653('0xcf3')][_0x4aafb6]['waiting']=_0x13865e[_0x1e4653('0x11b')][_0x4aafb6][_0x1e4653('0x183a')]||0x0);});}function _0xfb9818(_0x2f86f0){var _0xd336c5=_0xd247df;_0x13865e['whatsappQueues'][_0x2f86f0['id']]&&(_0x13865e[_0xd336c5('0x11b')][_0x2f86f0['id']]&&(_0x32d445()[_0xd336c5('0x1d8')](_0x13865e[_0xd336c5('0x11b')][_0x2f86f0['id']],_0x32d445()[_0xd336c5('0xed5')](_0x2f86f0,_0x1fba08)),_0x32d445()[_0xd336c5('0x1d8')](_0x13865e[_0xd336c5('0xcf3')][_0x2f86f0['id']],_0x32d445()['pick'](_0x2f86f0,_0x1fba08))));}function _0xef269d(_0x518f03){var _0xf097d3=_0xd247df;!_0x32d445()[_0xf097d3('0xe44')](_0x518f03)&&(_0x13865e[_0xf097d3('0x11b')][_0x518f03['id']]=_0x32d445()['pick'](_0x518f03,_0x1fba08));}function _0x5c85cf(_0x2f32bb){var _0x3da0c9=_0xd247df;!_0x32d445()['isNil'](_0x2f32bb)&&(_0x13865e[_0x3da0c9('0x11b')][_0x2f32bb['id']]&&_0x32d445()[_0x3da0c9('0x1d8')](_0x13865e[_0x3da0c9('0x11b')][_0x2f32bb['id']],_0x32d445()['pick'](_0x2f32bb,_0x1fba08)),_0x13865e[_0x3da0c9('0xcf3')][_0x2f32bb['id']]&&_0x32d445()[_0x3da0c9('0x1d8')](_0x13865e[_0x3da0c9('0xcf3')][_0x2f32bb['id']],_0x32d445()[_0x3da0c9('0xed5')](_0x2f32bb,_0x1fba08)));}function _0xf3dcac(_0x3249b1){var _0x47cd8a=_0xd247df;!_0x32d445()[_0x47cd8a('0xe44')](_0x3249b1)&&(delete _0x13865e[_0x47cd8a('0x11b')][_0x3249b1['id']],delete _0x13865e['whatsappQueues'][_0x3249b1['id']]);}function _0x2306ae(_0x18fd0d){var _0x3d2f9a=_0xd247df;_0x32d445()[_0x3d2f9a('0x205f')](_0x18fd0d[_0x3d2f9a('0x43d')])===_0x4df8c5[_0x3d2f9a('0x1ef8')]()['id']&&_0x13865e[_0x3d2f9a('0x1742')]();}function _0x4d19de(_0x35dc92){var _0x38d8e5=_0xd247df;_0x32d445()[_0x38d8e5('0x205f')](_0x35dc92['UserId'])===_0x4df8c5[_0x38d8e5('0x1ef8')]()['id']&&_0x13865e['getWhatsappQueues']();}function _0x4529b8(_0x32192f){var _0x5acbfc=_0xd247df;_0x13865e['whatsappQueues'][_0x32192f[_0x5acbfc('0x1d83')]]&&(_0x13865e[_0x5acbfc('0x10dd')][_0x32192f['id']]=_0x32192f,_0x5742b6());}function _0x55add8(_0x72d9ea){var _0x57afd6=_0xd247df;delete _0x13865e[_0x57afd6('0x10dd')][_0x72d9ea['id']],_0x1e0203&&_0x13865e['deleteWhatsappQueuesWaitingInteractions'][_0x57afd6('0xb76')](_0x72d9ea['id']),_0x5742b6();}function _0x2b6452(_0xcc3d5b){var _0x2948a9=_0xd247df;switch(_0xcc3d5b){case _0x2948a9('0x17cc'):return'green-A700-bg';case'mail':return'teal-bg';case'sms':return _0x2948a9('0x2176');case _0x2948a9('0x4b7'):return _0x2948a9('0x28f');case _0x2948a9('0xaf2'):return _0x2948a9('0x2082');case _0x2948a9('0x625'):return'blue-grey-A200-bg';default:return _0x2948a9('0x340');}}_0x1ce909[_0xd247df('0xb2b')]('$destroy',function(){var _0x7a4de3=_0xd247df;_0x31a449[_0x7a4de3('0x2121')](_0x7a4de3('0x1222')),_0x31a449[_0x7a4de3('0x2121')](_0x7a4de3('0x18b6')),_0x31a449[_0x7a4de3('0x2121')](_0x7a4de3('0x1a74')),_0x31a449[_0x7a4de3('0x2121')](_0x7a4de3('0x1669')),_0x31a449[_0x7a4de3('0x2121')]('userWhatsappQueue:save'),_0x31a449[_0x7a4de3('0x2121')](_0x7a4de3('0x17c1')),_0x31a449[_0x7a4de3('0x2121')]('whatsapp_queue_waiting_interaction:save'),_0x31a449[_0x7a4de3('0x2121')](_0x7a4de3('0x768'));});}const _0xb9afd9=_0x2a3ebe;_0x59f04c[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x2400'),_0xb635d2('0x2493'),'api',_0xb635d2('0x2730'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),_0xb635d2('0x1a90')];function _0x59f04c(_0x4c2fa1,_0x1919ca,_0x5a546b,_0x501735,_0x4e841c,_0x5de2e1,_0x3c5587,_0x279a32,_0x36b9d9,_0x343f96,_0x4212c6){var _0x40cff6=_0xb635d2,_0x2af640=this;_0x2af640[_0x40cff6('0x10c6')]=_0x279a32[_0x40cff6('0x1ef8')](),_0x2af640[_0x40cff6('0x5c1')]={},_0x2af640[_0x40cff6('0x22f1')]={},_0x2af640['tags']={'count':0x0,'rows':[]},_0x2af640['faxInteractions']={'count':0x0,'rows':[]},_0x2af640[_0x40cff6('0xa16')]={'includeAll':!![],'sort':_0x40cff6('0x7e8'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x2af640[_0x40cff6('0x164')]={'fields':[{'name':'Id','column':'id','type':_0x40cff6('0x1c60')},{'name':_0x40cff6('0x1286'),'column':_0x40cff6('0x1286'),'type':'autocomplete','options':{'searchFields':['firstName',_0x40cff6('0x151f'),'email'],'route':{'model':_0x40cff6('0x1711'),'action':_0x40cff6('0x22d5'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x40cff6('0x217d'),'nolimit':!![]}},'extraOperators':[_0x40cff6('0x1247')],'excludedOperators':[_0x40cff6('0x1f51')]}},{'name':'Body','column':_0x40cff6('0x19b2'),'type':_0x40cff6('0x1bc6'),'options':{'excludedOperators':[_0x40cff6('0x1d15'),'$ne']}},{'name':_0x40cff6('0x20e'),'column':'closed','type':_0x40cff6('0x2e6'),'values':[{'id':0x0,'translate':_0x40cff6('0x1c37')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x40cff6('0x1f51')]}},{'name':_0x40cff6('0x142e'),'column':_0x40cff6('0x2630'),'type':_0x40cff6('0x5c0'),'options':{'table':'i','route':{'model':'user','action':_0x40cff6('0x22d5'),'params':{'role':_0x40cff6('0x108'),'fields':_0x40cff6('0x194c'),'nolimit':!![]}},'searchFields':[_0x40cff6('0xe11'),'name'],'extraOperators':['$substring'],'excludedOperators':[_0x40cff6('0x1f51')]}},{'name':'Account','column':_0x40cff6('0xef3'),'type':_0x40cff6('0x19a0'),'options':{'route':{'model':_0x40cff6('0x10c6'),'action':_0x40cff6('0x281e'),'params':{'id':_0x2af640[_0x40cff6('0x10c6')]['id'],'nolimit':!![]}}}},{'name':'Tags','column':_0x40cff6('0x1172'),'type':'multiselect','options':{'route':{'model':_0x40cff6('0x2037'),'action':_0x40cff6('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x40cff6('0x19a3')]}},{'name':'Start\x20Date','column':_0x40cff6('0x15c9'),'type':_0x40cff6('0xf6d'),'options':{'excludedOperators':[_0x40cff6('0x1f51')]}},{'name':_0x40cff6('0x2233'),'column':'unreadMessages','type':_0x40cff6('0x2e6'),'values':[{'id':0x1,'translate':_0x40cff6('0x3b4')},{'id':0x0,'translate':_0x40cff6('0x10db')}],'options':{'excludedOperators':[_0x40cff6('0x1f51')]}}]},_0x2af640[_0x40cff6('0x1231')]=_0x40cff6('0x4ac'),_0x2af640[_0x40cff6('0x888')]=_0x4189ab,_0x2af640['success']=_0x449694,_0x2af640[_0x40cff6('0x26db')]=_0x4dace8,_0x2af640['showFaxInteraction']=_0x2203e2,_0x2af640[_0x40cff6('0x1467')]=_0x5d304a,_0x2af640['disposeInteraction']=_0x39bc7d,_0x2af640[_0x40cff6('0x224d')]=_0x15222b,_0x2af640[_0x40cff6('0x861')]=_0x456963,_0x2af640[_0x40cff6('0x1aec')]=_0x26386f,_0x2af640[_0x40cff6('0x13e9')]=_0x4d4c4e,_0x2af640[_0x40cff6('0x1987')]=_0x15f09f,_0x2af640[_0x40cff6('0x2846')]=_0x17ef5f,_0x2af640[_0x40cff6('0x1f45')]=_0xdf08ca;function _0x4189ab(_0x3a684e,_0x31a484){var _0x3fdb60=_0x40cff6;return _0x2af640[_0x3fdb60('0x5c1')]=_0x3a684e,_0x2af640['setting']=_0x31a484,_0x3c5587[_0x3fdb60('0x10c6')][_0x3fdb60('0x22d5')+_0x32d445()[_0x3fdb60('0x2077')](_0x3fdb60('0x1a77'))]({'id':_0x2af640['user']['id'],'nolimit':!![]})['$promise']['then'](function(_0x2d5202){var _0x32da1f=_0x3fdb60;return _0x2af640['faxAccounts']=_0x2d5202||{'count':0x0,'rows':[]},_0x3c5587['tag'][_0x32da1f('0x22d5')]()[_0x32da1f('0xe59')];})[_0x3fdb60('0xe19')](function(_0x4dc71d){_0x2af640['tags']=_0x4dc71d||{'count':0x0,'rows':[]};})[_0x3fdb60('0xe19')](function(){var _0x58f318=_0x3fdb60;_0x2af640[_0x58f318('0x1fd3')]=_0x421a8f();})[_0x3fdb60('0x223b')](function(_0x4c53d8){console['error'](_0x4c53d8);})[_0x3fdb60('0x23')](function(){var _0x18eafb=_0x3fdb60,_0x4bfb7e=_0x4e841c['localStorage'][_0x18eafb('0x2208')](_0x18eafb('0x706')+_0x2af640[_0x18eafb('0x10c6')]['id']);if(_0x4bfb7e)try{_0x4bfb7e=JSON[_0x18eafb('0x118e')](_0x4bfb7e);if(_0x4bfb7e[_0x18eafb('0xa16')]){_0x2af640[_0x18eafb('0xa16')]=_0x32d445()['merge'](_0x2af640[_0x18eafb('0xa16')],_0x4bfb7e[_0x18eafb('0xa16')]);if(_0x32d445()[_0x18eafb('0x14b4')](_0x2af640[_0x18eafb('0x1a77')]['rows']))_0x2af640[_0x18eafb('0xa16')][_0x18eafb('0xef3')]=[];else _0x32d445()[_0x18eafb('0x14b4')](_0x2af640[_0x18eafb('0xa16')][_0x18eafb('0xef3')])&&(_0x2af640['query']['FaxAccountId']=_0x32d445()(_0x2af640['faxAccounts'][_0x18eafb('0x16a7')])['map']('id')[_0x18eafb('0x2466')]()['value']());_0x2af640[_0x18eafb('0xa16')]['sort']&&_0x2af640['query']['sort'][_0x18eafb('0x281c')](_0x18eafb('0x218f'))>=0x0&&(_0x2af640[_0x18eafb('0xa16')]=_0x32d445()[_0x18eafb('0x23e3')](_0x2af640[_0x18eafb('0xa16')],_0x18eafb('0x9f6'))),_0x2af640[_0x18eafb('0xa16')][_0x18eafb('0xf53')]=!![],_0x2af640['isSearchBarVisible']=_0x2af640[_0x18eafb('0xa16')]['filter']?!![]:![];}}catch(_0xaa0e21){console['error'](_0xaa0e21);}else{var _0x11878e={'$gte':_0x4ddcaa()()[_0x18eafb('0x21b1')](_0x18eafb('0x211c'))[_0x18eafb('0x1e9e')](0x0,!![])[_0x18eafb('0x5e5')](),'$lte':_0x4ddcaa()()[_0x18eafb('0x270')]('month')[_0x18eafb('0x1e9e')](0x0,!![])[_0x18eafb('0x5e5')]()},_0x43c284={'FaxAccountId':_0x32d445()[_0x18eafb('0x65a')](_0x2af640[_0x18eafb('0x1a77')][_0x18eafb('0x16a7')],'id'),'createdAt':_0x11878e};_0x2af640['query']=_0x32d445()[_0x18eafb('0x1d8')](_0x2af640[_0x18eafb('0xa16')],_0x43c284);}_0x36b9d9['on'](_0x18eafb('0x1f6'),_0x5b1ee2),_0x36b9d9['on']('faxInteraction:update',_0x5b1ee2),_0x36b9d9['on'](_0x18eafb('0x636'),_0x1ca35e),_0x36b9d9['on'](_0x18eafb('0x1936'),_0x5329ea),_0x36b9d9['on'](_0x18eafb('0x458'),_0x5329ea),_0x36b9d9['on'](_0x18eafb('0x6e0'),_0x247b54),_0x36b9d9['on'](_0x18eafb('0xc82'),_0x25c441),_0x4dace8(_0x2af640[_0x18eafb('0xa16')][_0x18eafb('0xc08')]);});}function _0x421a8f(){var _0x8b9aff=_0x40cff6;return[{'name':_0x8b9aff('0x141d'),'key':'createdAt','type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x8b9aff('0x1e63'),'key':'read','type':_0x8b9aff('0x2e6'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x8b9aff('0x10db')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x8b9aff('0x296')}]},{'name':_0x8b9aff('0x20e'),'key':_0x8b9aff('0x1835'),'type':_0x8b9aff('0x2e6'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x8b9aff('0x296')}]},{'name':_0x8b9aff('0x1e4e'),'key':_0x8b9aff('0xef3'),'type':'multiselect','label':_0x8b9aff('0xe22'),'options':_0x2af640[_0x8b9aff('0x1a77')][_0x8b9aff('0x16a7')],'clearAll':![]},{'name':'Agent','key':_0x8b9aff('0x43d'),'type':'select','label':_0x8b9aff('0x120c'),'customOptions':[{'value':_0x2af640[_0x8b9aff('0x10c6')]['id'],'translate':'DASHBOARDS.ME'},{'value':_0x8b9aff('0x1046'),'translate':_0x8b9aff('0x2094')},{'value':undefined,'translate':_0x8b9aff('0x296')}]},{'name':_0x8b9aff('0x1172'),'key':_0x8b9aff('0x2037'),'type':_0x8b9aff('0x19a0'),'label':'DASHBOARDS.SELECT_TAG','options':_0x2af640[_0x8b9aff('0x1105')]['rows'],'placeholder':_0x8b9aff('0x14ec')}];}function _0x449694(_0x9ffa77){var _0x6ba13f=_0x40cff6;_0x2af640[_0x6ba13f('0xcfc')]=![],_0x2af640[_0x6ba13f('0x10d3')]=_0x9ffa77||{'count':0x0,'rows':[]};for(var _0x357b90=0x0;_0x357b90<_0x2af640[_0x6ba13f('0x10d3')]['rows'][_0x6ba13f('0x25ae')];_0x357b90+=0x1){_0x15222b(_0x2af640[_0x6ba13f('0x10d3')][_0x6ba13f('0x16a7')][_0x357b90]);}}function _0x4dace8(_0x401d17){var _0x1570aa=_0x40cff6;_0x2af640[_0x1570aa('0xcfc')]=!![];!_0x401d17&&(_0x2af640[_0x1570aa('0xa16')][_0x1570aa('0xc08')]=0x1);_0x2af640[_0x1570aa('0xa16')]['offset']=(_0x2af640[_0x1570aa('0xa16')][_0x1570aa('0xc08')]-0x1)*_0x2af640[_0x1570aa('0xa16')][_0x1570aa('0x1b6d')];var _0xdfd437=_0x4e841c[_0x1570aa('0x4f9')][_0x1570aa('0x2208')](_0x1570aa('0x706')+_0x2af640['user']['id']);_0xdfd437=_0xdfd437?JSON['parse'](_0xdfd437):{},_0xdfd437[_0x1570aa('0xa16')]=_0x2af640[_0x1570aa('0xa16')],_0x4e841c['localStorage'][_0x1570aa('0x95e')](_0x1570aa('0x706')+_0x2af640['user']['id'],JSON[_0x1570aa('0x3ad')](_0xdfd437)),_0x2af640[_0x1570aa('0x9c8')]=_0x3c5587[_0x1570aa('0x100b')][_0x1570aa('0x22d5')](_0x2af640[_0x1570aa('0xa16')],_0x449694)[_0x1570aa('0xe59')];}function _0x2203e2(_0x3fb90c,_0x2275fc){var _0x5d9775=_0x40cff6;_0x4c2fa1['$parent']['vm'][_0x5d9775('0xa31')](_0x5d9775('0x625'),_0x2275fc);}function _0x5d304a(_0x15ce70,_0x84ce14,_0x165bdf){var _0x52ea48=_0x40cff6;_0x3c5587['faxInteraction'][_0x52ea48('0x1d1e')]({'id':_0x84ce14['id'],'attachments':_0x165bdf})[_0x52ea48('0xe59')]['then'](function(_0x1f21f5){var _0x2624c3=_0x52ea48,_0x4fa714=[_0x1f21f5[_0x2624c3('0x17ab')]],_0x3d579f=_0x2624c3('0x10f8')+_0x84ce14['id']+'.zip',_0x32f60a=new Blob(_0x4fa714,{'type':_0x1f21f5['type']}),_0x3d8bd2=window[_0x2624c3('0x18fa')][_0x2624c3('0x9a1')]('a');_0x3d8bd2[_0x2624c3('0xede')](_0x2624c3('0xcb7'),URL[_0x2624c3('0x1360')](_0x32f60a)),_0x3d8bd2[_0x2624c3('0xede')](_0x2624c3('0x1d1e'),_0x3d579f),document[_0x2624c3('0x19b2')][_0x2624c3('0x1d13')](_0x3d8bd2),_0x3d8bd2['click']();})[_0x52ea48('0x223b')](function(_0x174a36){var _0x23901b=_0x52ea48;if(_0x174a36[_0x23901b('0x11d0')]&&_0x174a36[_0x23901b('0x11d0')][_0x23901b('0xcd2')]&&_0x174a36[_0x23901b('0x11d0')][_0x23901b('0xcd2')][_0x23901b('0x25ae')])for(var _0x4f5248=0x0;_0x4f5248<_0x174a36['data'][_0x23901b('0xcd2')]['length'];_0x4f5248+=0x1){_0x343f96[_0x23901b('0x8c8')]({'title':_0x174a36[_0x23901b('0x11d0')][_0x23901b('0xcd2')][_0x4f5248][_0x23901b('0x62e')],'msg':_0x174a36['data']['errors'][_0x4f5248][_0x23901b('0x27e8')]});}else _0x343f96['error']({'title':_0x174a36['status']?'API:'+_0x174a36[_0x23901b('0x2833')]+_0x23901b('0x1b7c')+_0x174a36['statusText']:'downloadFaxInteraction','msg':_0x174a36[_0x23901b('0x11d0')]?JSON[_0x23901b('0x3ad')](_0x174a36[_0x23901b('0x11d0')][_0x23901b('0x27e8')]):_0x174a36[_0x23901b('0x94f')]()});});}function _0x39bc7d(_0x2a16b1,_0x502021){var _0x21c775=_0x40cff6,_0x3c8278=_0x2af640[_0x21c775('0x10c6')][_0x21c775('0x1b8d')]||_0x2af640[_0x21c775('0x10c6')][_0x21c775('0x1b15')]||_0x2af640['user'][_0x21c775('0x2531')]||_0x2af640[_0x21c775('0x10c6')]['openchannelPause']||_0x2af640[_0x21c775('0x10c6')][_0x21c775('0x2299')],_0x8b2f8b=!_0x502021['Account']['mandatoryDisposition'];_0x5a546b[_0x21c775('0x26b2')]({'controller':_0x21c775('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular[_0x21c775('0x24a1')](_0x501735[_0x21c775('0x19b2')]),'clickOutsideToClose':_0x8b2f8b,'escapeToClose':_0x8b2f8b,'onRemoving':function _0x4c6616(){var _0x52286f=_0x21c775;_0x2af640[_0x52286f('0x10c6')]&&_0x502021[_0x52286f('0x1e4e')]['mandatoryDisposition']&&!_0x3c8278&&_0x3c5587[_0x52286f('0x10c6')][_0x52286f('0x2471')]({'id':_0x2af640[_0x52286f('0x10c6')]['id']})[_0x52286f('0xe59')][_0x52286f('0x223b')](function(_0x1b604e){var _0x5e6e6d=_0x52286f;console[_0x5e6e6d('0x8c8')](_0x1b604e);});},'locals':{'user':_0x2af640[_0x21c775('0x10c6')],'channel':_0x21c775('0x625'),'interaction':_0x502021}});}function _0x15222b(_0x308696){var _0x4711af=_0x40cff6;_0x308696['Contact']?(_0x308696['contactName']=(_0x308696[_0x4711af('0x1286')][_0x4711af('0x2566')]||'')+'\x20'+(_0x308696['Contact']['lastName']||''),_0x308696[_0x4711af('0x15a6')]=_0x308696[_0x4711af('0x1286')][_0x4711af('0x625')]):_0x308696[_0x4711af('0x130c')]=_0x5de2e1[_0x4711af('0x2159')](_0x4711af('0x27df'));}function _0x456963(_0x4637fd){var _0x28207e=_0x40cff6;if(_0x4637fd[_0x28207e('0x43d')])return _0x4637fd[_0x28207e('0x43d')]===_0x2af640[_0x28207e('0x10c6')]['id']?_0x5de2e1['instant']('DASHBOARDS.ME'):_0x4637fd['Owner'][_0x28207e('0xe11')]+'\x20<'+_0x4637fd[_0x28207e('0x2237')][_0x28207e('0x1b66')]+'>';return _0x5de2e1[_0x28207e('0x2159')](_0x28207e('0x2094'));}function _0x26386f(_0x327177){var _0x5bfe5c=_0x40cff6;if(_0x327177[_0x5bfe5c('0x1e4e')])return _0x327177[_0x5bfe5c('0x1e4e')]['key'];return _0x5de2e1['instant']('DASHBOARDS.UNKNOWN');}function _0x4d4c4e(_0x30a311,_0x15e73c){var _0x3abbc3=_0x40cff6;_0x5a546b[_0x3abbc3('0x26b2')]({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x4d4a24,'parent':angular[_0x3abbc3('0x24a1')](_0x501735[_0x3abbc3('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x15e73c,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})['then'](function(_0x34ab6c){var _0x2b7885=_0x3abbc3;if(_0x34ab6c){if(_0x34ab6c['message']&&_0x34ab6c[_0x2b7885('0x27e8')][_0x2b7885('0x11a7')]){var _0x32bf8b={'channel':_0x2b7885('0x625'),'account':_0x15e73c,'message':_0x34ab6c[_0x2b7885('0x27e8')],'contact':_0x34ab6c[_0x2b7885('0xd9a')]};_0x4212c6[_0x2b7885('0xaf8')](_0x32bf8b);}else{var _0xddbcdd=_0x34ab6c;return _0x3c5587[_0x2b7885('0x688')][_0x2b7885('0x1ee')]({'id':_0x15e73c['id']},_0xddbcdd)['$promise']['then'](function(_0x1a0cce){var _0x14d5dd=_0x2b7885;_0x343f96[_0x14d5dd('0x425')]({'title':_0x14d5dd('0x1c0d'),'msg':_0x14d5dd('0x2714')}),_0x4c2fa1[_0x14d5dd('0x5cf')]['vm'][_0x14d5dd('0xa31')](_0x14d5dd('0x625'),_0x1a0cce);})['catch'](function(_0x18ec6){var _0x392672=_0x2b7885;if(_0x18ec6['data']&&_0x18ec6[_0x392672('0x11d0')][_0x392672('0xcd2')]&&_0x18ec6['data'][_0x392672('0xcd2')]['length'])for(var _0x2c68b6=0x0;_0x2c68b6<_0x18ec6[_0x392672('0x11d0')]['errors'][_0x392672('0x25ae')];_0x2c68b6++){_0x343f96[_0x392672('0x8c8')]({'title':_0x18ec6[_0x392672('0x11d0')][_0x392672('0xcd2')][_0x2c68b6][_0x392672('0x62e')],'msg':_0x18ec6['data'][_0x392672('0xcd2')][_0x2c68b6][_0x392672('0x27e8')]});}else _0x343f96[_0x392672('0x8c8')]({'title':'FAX:SEND','msg':_0x18ec6['data']?JSON[_0x392672('0x3ad')](_0x18ec6[_0x392672('0x11d0')]):_0x18ec6['message']||_0x18ec6[_0x392672('0x94f')]()});});}}});}function _0x247b54(_0x4531ff){var _0x9677fe=_0x40cff6,_0x32d627,_0xce6bbe=_0x32d445()[_0x9677fe('0xf15')](_0x2af640['faxInteractions'][_0x9677fe('0x16a7')],{'id':_0x4531ff[_0x9677fe('0x1cdb')]});_0xce6bbe&&_0xce6bbe[_0x9677fe('0x970')]&&(_0x32d627=_0x32d445()[_0x9677fe('0xf15')](_0xce6bbe[_0x9677fe('0x970')],{'id':_0x4531ff[_0x9677fe('0x43d')]}),!_0x32d627&&_0xce6bbe['Users'][_0x9677fe('0xb76')]({'id':_0x4531ff[_0x9677fe('0x43d')]}));}function _0x25c441(_0x2b9abd){var _0x3de076=_0x40cff6,_0x59ec7d=_0x32d445()['find'](_0x2af640[_0x3de076('0x10d3')][_0x3de076('0x16a7')],{'id':_0x2b9abd[_0x3de076('0x1cdb')]});_0x59ec7d&&_0x59ec7d['Users']&&_0x32d445()[_0x3de076('0xa8b')](_0x59ec7d[_0x3de076('0x970')],{'id':_0x2b9abd[_0x3de076('0x43d')]});}function _0x5b1ee2(_0x4350e3){var _0x2b4a39=_0x40cff6;if(_0x4350e3){var _0x5e2ecf=_0x32d445()['find'](_0x2af640[_0x2b4a39('0x10d3')][_0x2b4a39('0x16a7')],{'id':_0x4350e3['id']});if(_0x5e2ecf){_0x5e2ecf[_0x2b4a39('0x970')]=[];_0x4350e3[_0x2b4a39('0x1835')]&&(_0x5e2ecf[_0x2b4a39('0x98d')]=0x0);if(_0x2af640['query'][_0x2b4a39('0x9f6')]){var _0x6f461d=_0x32d445()['startsWith'](_0x2af640[_0x2b4a39('0xa16')][_0x2b4a39('0x9f6')],'-')?_0x2b4a39('0x1ee9'):_0x2b4a39('0x1564');_0x2af640['faxInteractions']['rows']=_0x32d445()[_0x2b4a39('0x10e')](_0x2af640[_0x2b4a39('0x10d3')][_0x2b4a39('0x16a7')],_0x32d445()[_0x2b4a39('0x1cd0')](_0x2af640[_0x2b4a39('0xa16')]['sort'],'-'),_0x6f461d);}_0x32d445()[_0x2b4a39('0x1d8')](_0x5e2ecf,_0x32d445()[_0x2b4a39('0xed5')](_0x4350e3,_0x32d445()['keys'](_0x5e2ecf)));}else _0x4dace8(_0x2af640[_0x2b4a39('0xa16')][_0x2b4a39('0xc08')]);}}function _0x1ca35e(_0x11e802){var _0x4547b7=_0x40cff6;if(_0x11e802){var _0x4d6974=_0x32d445()[_0x4547b7('0xf15')](_0x2af640[_0x4547b7('0x10d3')][_0x4547b7('0x16a7')],{'id':_0x11e802['id']});_0x4d6974&&(_0x4d6974[_0x4547b7('0x1e7b')]=_0x11e802[_0x4547b7('0x1105')]||[],_0x32d445()[_0x4547b7('0x1d8')](_0x4d6974,_0x32d445()[_0x4547b7('0xed5')](_0x11e802,_0x32d445()[_0x4547b7('0x1234')](_0x4d6974))));}}function _0x5329ea(_0x55bdfd){var _0x412f61=_0x40cff6;if(_0x55bdfd&&!_0x55bdfd[_0x412f61('0x17d9')]){var _0x1ff4c5=_0x32d445()[_0x412f61('0xf15')](_0x2af640['faxInteractions'][_0x412f61('0x16a7')],{'id':_0x55bdfd[_0x412f61('0x1cdb')]});if(_0x1ff4c5){var _0x51bd7f=_0x32d445()[_0x412f61('0xf15')](_0x1ff4c5[_0x412f61('0x1e63')],{'id':_0x55bdfd['id']});_0x51bd7f?_0x32d445()[_0x412f61('0x1d8')](_0x51bd7f,_0x32d445()['pick'](_0x55bdfd,_0x32d445()['keys'](_0x51bd7f))):(_0x32d445()['isNil'](_0x1ff4c5[_0x412f61('0x1e63')])&&(_0x1ff4c5['Messages']={'count':0x0}),!_0x55bdfd[_0x412f61('0x1a6e')]&&(_0x1ff4c5[_0x412f61('0x1e63')][_0x412f61('0x148b')]+=0x1));}}}function _0x15f09f(){var _0x2ce3cc=_0x40cff6;_0x2af640[_0x2ce3cc('0x1a1d')]=![];}function _0x17ef5f(){var _0x166bd0=_0x40cff6;_0x2af640[_0x166bd0('0x1a1d')]=!![];}function _0xdf08ca(){var _0x49d673=_0x40cff6;_0x2af640[_0x49d673('0x1a1d')]=![],_0x5a546b[_0x49d673('0x26b2')]({'controller':_0x49d673('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x49d673('0x24a1')](_0x501735[_0x49d673('0x19b2')]),'clickOutsideToClose':![],'locals':{'color':_0x2af640['sectionColor'],'fields':_0x2af640['advancedSearch']['fields'],'storagePath':'home.fax'},'fullscreen':!![]})[_0x49d673('0xe19')](function(_0x36ee55){var _0x17af02=_0x49d673;_0x2af640[_0x17af02('0xa16')][_0x17af02('0x1cc8')]=_0x36ee55===![]?undefined:_0x36ee55;if(_0x2af640['query'][_0x17af02('0x1cc8')]||_0x36ee55===![])_0x4dace8();})[_0x49d673('0x223b')](function(_0x3ced95){var _0x15ff61=_0x49d673;_0x343f96[_0x15ff61('0x8c8')]({'title':_0x15ff61('0x71e'),'msg':_0x3ced95[_0x15ff61('0x11d0')]?JSON[_0x15ff61('0x3ad')](_0x3ced95[_0x15ff61('0x11d0')][_0x15ff61('0x27e8')]):_0x3ced95[_0x15ff61('0x94f')]()});});}var _0x183b82=!![],_0x3a12ce=0x1;_0x4c2fa1[_0x40cff6('0x107')](_0x40cff6('0x20cb'),function(_0x53a932,_0xea6591){var _0x372622=_0x40cff6;_0x183b82?_0x1919ca(function(){_0x183b82=![];}):(!_0xea6591&&(_0x3a12ce=_0x2af640[_0x372622('0xa16')][_0x372622('0xc08')]),_0x53a932!==_0xea6591&&(_0x2af640[_0x372622('0xa16')][_0x372622('0xc08')]=0x1),!_0x53a932&&(_0x2af640[_0x372622('0xa16')][_0x372622('0xc08')]=_0x3a12ce),_0x4dace8(_0x2af640['query'][_0x372622('0xc08')]));}),_0x4c2fa1[_0x40cff6('0xb2b')]('$destroy',function(){var _0x21e433=_0x40cff6;_0x36b9d9[_0x21e433('0x2121')](_0x21e433('0x1936')),_0x36b9d9['removeAllListeners'](_0x21e433('0x458')),_0x36b9d9[_0x21e433('0x2121')]('faxInteraction:save'),_0x36b9d9[_0x21e433('0x2121')](_0x21e433('0x636')),_0x36b9d9[_0x21e433('0x2121')](_0x21e433('0x17fd')),_0x36b9d9['removeAllListeners'](_0x21e433('0x6e0')),_0x36b9d9['removeAllListeners']('user_has_fax_interactions:remove');});}const _0x1ea095=_0x59f04c;_0x45541f[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x2400'),_0xb635d2('0x2493'),'api',_0xb635d2('0x2730'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),'draftManager'];function _0x45541f(_0x917d1c,_0x43af78,_0x5ab645,_0x33a21e,_0x57dbfd,_0x407aed,_0x53aa7d,_0x113169,_0x2a80f0,_0x395ed4,_0x198f8e){var _0x23a333=_0xb635d2,_0x217b12=this;_0x217b12['user']=_0x113169[_0x23a333('0x1ef8')](),_0x217b12['license']={},_0x217b12[_0x23a333('0x22f1')]={},_0x217b12['tags']={'count':0x0,'rows':[]},_0x217b12['mailInteractions']={'count':0x0,'rows':[]},_0x217b12[_0x23a333('0xa16')]={'includeAll':!![],'sort':_0x23a333('0x7e8'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x217b12[_0x23a333('0x164')]={'fields':[{'name':'Id','column':'id','type':_0x23a333('0x1c60')},{'name':'Contact','column':'Contact','type':'autocomplete','options':{'searchFields':[_0x23a333('0x2566'),_0x23a333('0x151f'),'email'],'route':{'model':_0x23a333('0x1711'),'action':_0x23a333('0x22d5'),'params':{'fields':_0x23a333('0x75'),'Contact':_0x23a333('0x217d'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x23a333('0x375'),'column':_0x23a333('0x9ec'),'type':'text','options':{'excludedOperators':[_0x23a333('0x1d15'),'$ne']}},{'name':_0x23a333('0x750'),'column':_0x23a333('0x6c9'),'type':_0x23a333('0x1bc6'),'options':{'excludedOperators':[_0x23a333('0x1d15'),_0x23a333('0x1f51')]}},{'name':_0x23a333('0x20e'),'column':_0x23a333('0x1835'),'type':_0x23a333('0x2e6'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x23a333('0x1bbb')}],'options':{'excludedOperators':[_0x23a333('0x1f51')]}},{'name':'Substatus','column':_0x23a333('0x164d'),'type':_0x23a333('0x19a0'),'options':{'field':_0x23a333('0x2623'),'route':{'model':'mailSubstatus','action':_0x23a333('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x23a333('0x19a3')]}},{'name':'Agent','column':'User','type':_0x23a333('0x5c0'),'options':{'table':'i','route':{'model':_0x23a333('0x10c6'),'action':_0x23a333('0x22d5'),'params':{'role':'agent','fields':_0x23a333('0x194c'),'nolimit':!![]}},'searchFields':[_0x23a333('0xe11'),'name'],'extraOperators':[_0x23a333('0x1247')],'excludedOperators':[_0x23a333('0x1f51')]}},{'name':_0x23a333('0x1e4e'),'column':_0x23a333('0xa20'),'type':_0x23a333('0x19a0'),'options':{'route':{'model':_0x23a333('0x10c6'),'action':_0x23a333('0x1cd2'),'params':{'id':_0x217b12[_0x23a333('0x10c6')]['id'],'nolimit':!![]}}}},{'name':'Tags','column':'Tag','type':_0x23a333('0x19a0'),'options':{'route':{'model':_0x23a333('0x2037'),'action':_0x23a333('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x23a333('0x141d'),'column':'createdAt','type':_0x23a333('0xf6d'),'options':{'excludedOperators':[_0x23a333('0x1f51')]}},{'name':_0x23a333('0x2233'),'column':'unreadMessages','type':_0x23a333('0x2e6'),'values':[{'id':0x1,'translate':_0x23a333('0x3b4')},{'id':0x0,'translate':_0x23a333('0x10db')}],'options':{'excludedOperators':[_0x23a333('0x1f51')]}}]},_0x217b12[_0x23a333('0x1231')]='teal',_0x217b12[_0x23a333('0x888')]=_0x37b436,_0x217b12['success']=_0x45c166,_0x217b12[_0x23a333('0x1502')]=_0x12244c,_0x217b12[_0x23a333('0x1d06')]=_0x5a8e20,_0x217b12[_0x23a333('0x303')]=_0x394ae5,_0x217b12[_0x23a333('0x23be')]=_0xd877d6,_0x217b12['getContactLabel']=_0x47cb4d,_0x217b12[_0x23a333('0x861')]=_0x2ab852,_0x217b12[_0x23a333('0x10bf')]=_0x37edc8,_0x217b12[_0x23a333('0xf4e')]=_0x45f905,_0x217b12['onSearchBarCollapse']=_0x22e476,_0x217b12[_0x23a333('0x2846')]=_0x31683d,_0x217b12[_0x23a333('0x1f45')]=_0x3b9a14,_0x917d1c[_0x23a333('0xb2b')](_0x23a333('0x27da'),_0xd4deeb);function _0x37b436(_0xaedf5,_0x5c4fdf){var _0xa54f51=_0x23a333;return _0x217b12['license']=_0xaedf5,_0x217b12[_0xa54f51('0x22f1')]=_0x5c4fdf,_0x53aa7d[_0xa54f51('0x10c6')][_0xa54f51('0x22d5')+_0x32d445()[_0xa54f51('0x2077')]('mailAccounts')]({'id':_0x217b12['user']['id'],'nolimit':!![]})[_0xa54f51('0xe59')][_0xa54f51('0xe19')](function(_0xfb132b){var _0x3a0912=_0xa54f51;return _0x217b12[_0x3a0912('0x248b')]=_0xfb132b||{'count':0x0,'rows':[]},_0x53aa7d[_0x3a0912('0x2037')]['get']()[_0x3a0912('0xe59')];})[_0xa54f51('0xe19')](function(_0x2dc24f){var _0xc1a8f4=_0xa54f51;_0x217b12[_0xc1a8f4('0x1105')]=_0x2dc24f||{'count':0x0,'rows':[]};})[_0xa54f51('0xe19')](function(){var _0x4adb63=_0xa54f51;return _0x53aa7d[_0x4adb63('0x158e')][_0x4adb63('0x22d5')]({'nolimit':!![]})[_0x4adb63('0xe59')];})['then'](function(_0x30717f){_0x217b12['subStatuses']=_0x30717f||{'count':0x0,'rows':[]};})[_0xa54f51('0xe19')](function(){var _0x27ee7c=_0xa54f51;_0x217b12[_0x27ee7c('0x1fd3')]=_0x3662f1();})[_0xa54f51('0x223b')](function(_0xe1c59){console['error'](_0xe1c59);})['finally'](function(){var _0x43e023=_0xa54f51,_0x18f477=_0x57dbfd['localStorage']['getItem'](_0x43e023('0x14eb')+_0x217b12['user']['id']);if(_0x18f477)try{_0x18f477=JSON[_0x43e023('0x118e')](_0x18f477);if(_0x18f477['query']){_0x217b12[_0x43e023('0xa16')]=_0x32d445()[_0x43e023('0x1d8')](_0x217b12[_0x43e023('0xa16')],_0x18f477[_0x43e023('0xa16')]);if(_0x32d445()[_0x43e023('0x14b4')](_0x217b12[_0x43e023('0x248b')][_0x43e023('0x16a7')]))_0x217b12[_0x43e023('0xa16')][_0x43e023('0xa20')]=[];else _0x32d445()[_0x43e023('0x14b4')](_0x217b12[_0x43e023('0xa16')][_0x43e023('0xa20')])&&(_0x217b12[_0x43e023('0xa16')][_0x43e023('0xa20')]=_0x32d445()(_0x217b12['mailAccounts']['rows'])['map']('id')[_0x43e023('0x2466')]()['value']());_0x217b12['query'][_0x43e023('0x9f6')]&&_0x217b12[_0x43e023('0xa16')]['sort']['indexOf'](_0x43e023('0x218f'))>=0x0&&(_0x217b12[_0x43e023('0xa16')]=_0x32d445()[_0x43e023('0x23e3')](_0x217b12[_0x43e023('0xa16')],_0x43e023('0x9f6'))),_0x217b12[_0x43e023('0xa16')][_0x43e023('0xf53')]=!![],_0x217b12[_0x43e023('0x1a1d')]=_0x217b12['query']['filter']?!![]:![];}}catch(_0x3fc794){console[_0x43e023('0x8c8')](_0x3fc794);}else{var _0x31f159={'$gte':_0x4ddcaa()()[_0x43e023('0x21b1')]('month')[_0x43e023('0x1e9e')](0x0,!![])['format'](),'$lte':_0x4ddcaa()()[_0x43e023('0x270')](_0x43e023('0x211c'))['utcOffset'](0x0,!![])['format']()},_0x469723={'MailAccountId':_0x32d445()[_0x43e023('0x65a')](_0x217b12[_0x43e023('0x248b')][_0x43e023('0x16a7')],'id'),'createdAt':_0x31f159};_0x217b12[_0x43e023('0xa16')]=_0x32d445()[_0x43e023('0x1d8')](_0x217b12[_0x43e023('0xa16')],_0x469723);}_0x2a80f0['on']('mailInteraction:save',_0x4cd830),_0x2a80f0['on'](_0x43e023('0x231c'),_0x4cd830),_0x2a80f0['on']('mailInteractionTags:save',_0x32ff0d),_0x2a80f0['on'](_0x43e023('0x1a62'),_0x7483ca),_0x2a80f0['on'](_0x43e023('0x3f2'),_0x7483ca),_0x2a80f0['on']('user_has_mail_interactions:save',_0x18fcc6),_0x2a80f0['on'](_0x43e023('0x7b6'),_0x252ae7),_0x12244c(_0x217b12[_0x43e023('0xa16')]['page']);});}function _0x3662f1(){var _0x2299c6=_0x23a333;return[{'name':_0x2299c6('0x141d'),'key':_0x2299c6('0x15c9'),'type':_0x2299c6('0xf6d'),'label':_0x2299c6('0x19b7')},{'name':_0x2299c6('0x1e63'),'key':_0x2299c6('0x1a6e'),'type':'select','label':_0x2299c6('0x2738'),'customOptions':[{'value':0x0,'translate':_0x2299c6('0x10db')},{'value':0x1,'translate':_0x2299c6('0x3b4')},{'value':null,'translate':_0x2299c6('0x296')}]},{'name':_0x2299c6('0x20e'),'key':'closed','type':_0x2299c6('0x2e6'),'label':_0x2299c6('0xef5'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x2299c6('0x1bbb')},{'value':null,'translate':_0x2299c6('0x296')}]},{'name':_0x2299c6('0x1f60'),'key':_0x2299c6('0x164d'),'type':_0x2299c6('0x2e6'),'label':_0x2299c6('0x1c06'),'options':_0x217b12[_0x2299c6('0x2042')][_0x2299c6('0x16a7')],'customOptions':[{'value':_0x2299c6('0x1046'),'translate':'DASHBOARDS.NONE'},{'value':undefined,'translate':_0x2299c6('0x296')}],'ngValue':_0x2299c6('0x2623'),'ngIf':_0x2299c6('0xc61')},{'name':'Account','key':'MailAccountId','type':_0x2299c6('0x19a0'),'label':_0x2299c6('0xe22'),'options':_0x217b12['mailAccounts'][_0x2299c6('0x16a7')],'clearAll':![]},{'name':_0x2299c6('0x142e'),'key':_0x2299c6('0x43d'),'type':_0x2299c6('0x2e6'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x217b12[_0x2299c6('0x10c6')]['id'],'translate':_0x2299c6('0x132d')},{'value':_0x2299c6('0x1046'),'translate':_0x2299c6('0x2094')},{'value':undefined,'translate':_0x2299c6('0x296')}]},{'name':_0x2299c6('0x1172'),'key':'tag','type':_0x2299c6('0x19a0'),'label':_0x2299c6('0x23c7'),'options':_0x217b12[_0x2299c6('0x1105')][_0x2299c6('0x16a7')],'placeholder':_0x2299c6('0x14ec')}];}function _0x45c166(_0x527531){var _0x80f425=_0x23a333;_0x217b12[_0x80f425('0xcfc')]=![],_0x217b12[_0x80f425('0x2265')]=_0x527531||{'count':0x0,'rows':[]};for(var _0x469f2b=0x0;_0x469f2b<_0x217b12[_0x80f425('0x2265')][_0x80f425('0x16a7')][_0x80f425('0x25ae')];_0x469f2b+=0x1){_0x47cb4d(_0x217b12['mailInteractions'][_0x80f425('0x16a7')][_0x469f2b]);}}function _0x12244c(_0x30d076){var _0x19201e=_0x23a333;_0x217b12['searchInProgress']=!![];!_0x30d076&&(_0x217b12[_0x19201e('0xa16')]['page']=0x1);_0x217b12[_0x19201e('0xa16')][_0x19201e('0xab0')]=(_0x217b12[_0x19201e('0xa16')][_0x19201e('0xc08')]-0x1)*_0x217b12[_0x19201e('0xa16')][_0x19201e('0x1b6d')];var _0x36adbf=_0x57dbfd[_0x19201e('0x4f9')]['getItem'](_0x19201e('0x14eb')+_0x217b12[_0x19201e('0x10c6')]['id']);_0x36adbf=_0x36adbf?JSON[_0x19201e('0x118e')](_0x36adbf):{},_0x36adbf[_0x19201e('0xa16')]=_0x217b12[_0x19201e('0xa16')],_0x57dbfd['localStorage']['setItem'](_0x19201e('0x14eb')+_0x217b12[_0x19201e('0x10c6')]['id'],JSON[_0x19201e('0x3ad')](_0x36adbf)),_0x217b12['promise']=_0x53aa7d['mailInteraction'][_0x19201e('0x22d5')](_0x217b12[_0x19201e('0xa16')],_0x45c166)[_0x19201e('0xe59')];}function _0x5a8e20(_0x1e1392,_0x46f1a7){var _0x1448f3=_0x23a333;_0x917d1c[_0x1448f3('0x5cf')]['vm'][_0x1448f3('0xa31')]('mail',_0x46f1a7);}function _0x394ae5(_0x3531ef,_0x51bde3,_0x2c6efc){var _0x8bd6cf=_0x23a333;_0x53aa7d[_0x8bd6cf('0x497')][_0x8bd6cf('0x1d1e')]({'id':_0x51bde3['id'],'attachments':_0x2c6efc})[_0x8bd6cf('0xe59')][_0x8bd6cf('0xe19')](function(_0x3a0baf){var _0x37aaa6=_0x8bd6cf,_0x173846=[_0x3a0baf[_0x37aaa6('0x17ab')]],_0x2e750a=_0x37aaa6('0x5db')+_0x51bde3['id']+_0x37aaa6('0x985'),_0x41deb3=new Blob(_0x173846,{'type':_0x3a0baf[_0x37aaa6('0x62e')]}),_0x2ed35b=window[_0x37aaa6('0x18fa')][_0x37aaa6('0x9a1')]('a');_0x2ed35b[_0x37aaa6('0xede')](_0x37aaa6('0xcb7'),URL['createObjectURL'](_0x41deb3)),_0x2ed35b[_0x37aaa6('0xede')](_0x37aaa6('0x1d1e'),_0x2e750a),document[_0x37aaa6('0x19b2')][_0x37aaa6('0x1d13')](_0x2ed35b),_0x2ed35b[_0x37aaa6('0xfe7')]();})[_0x8bd6cf('0x223b')](function(_0x532330){var _0x5d74ba=_0x8bd6cf;if(_0x532330['data']&&_0x532330[_0x5d74ba('0x11d0')][_0x5d74ba('0xcd2')]&&_0x532330[_0x5d74ba('0x11d0')][_0x5d74ba('0xcd2')]['length'])for(var _0x4407aa=0x0;_0x4407aa<_0x532330[_0x5d74ba('0x11d0')][_0x5d74ba('0xcd2')][_0x5d74ba('0x25ae')];_0x4407aa+=0x1){_0x395ed4[_0x5d74ba('0x8c8')]({'title':_0x532330[_0x5d74ba('0x11d0')][_0x5d74ba('0xcd2')][_0x4407aa][_0x5d74ba('0x62e')],'msg':_0x532330[_0x5d74ba('0x11d0')][_0x5d74ba('0xcd2')][_0x4407aa]['message']});}else _0x395ed4[_0x5d74ba('0x8c8')]({'title':_0x532330[_0x5d74ba('0x2833')]?_0x5d74ba('0x27f2')+_0x532330['status']+_0x5d74ba('0x1b7c')+_0x532330[_0x5d74ba('0x1fd7')]:_0x5d74ba('0x303'),'msg':_0x532330['data']?JSON[_0x5d74ba('0x3ad')](_0x532330[_0x5d74ba('0x11d0')][_0x5d74ba('0x27e8')]):_0x532330[_0x5d74ba('0x94f')]()});});}function _0xd877d6(_0x2043a7,_0x5e1b34){var _0x2828e5=_0x23a333,_0x44733e=_0x217b12[_0x2828e5('0x10c6')][_0x2828e5('0x1b8d')]||_0x217b12['user']['chatPause']||_0x217b12['user']['mailPause']||_0x217b12['user'][_0x2828e5('0xf2a')]||_0x217b12[_0x2828e5('0x10c6')][_0x2828e5('0x2299')],_0x4ffec1=!_0x5e1b34[_0x2828e5('0x1e4e')]['mandatoryDisposition'];_0x5ab645[_0x2828e5('0x26b2')]({'controller':_0x2828e5('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular['element'](_0x33a21e[_0x2828e5('0x19b2')]),'clickOutsideToClose':_0x4ffec1,'escapeToClose':_0x4ffec1,'onRemoving':function _0x328815(){var _0x4b1abb=_0x2828e5;_0x217b12['user']&&_0x5e1b34[_0x4b1abb('0x1e4e')][_0x4b1abb('0x1dc8')]&&!_0x44733e&&_0x53aa7d[_0x4b1abb('0x10c6')][_0x4b1abb('0x2471')]({'id':_0x217b12[_0x4b1abb('0x10c6')]['id']})[_0x4b1abb('0xe59')]['catch'](function(_0x6718cd){var _0x57d06e=_0x4b1abb;console[_0x57d06e('0x8c8')](_0x6718cd);});},'locals':{'user':_0x217b12[_0x2828e5('0x10c6')],'channel':'mail','interaction':_0x5e1b34}});}function _0x47cb4d(_0x3bb8b7){var _0x183a09=_0x23a333;if(!_0x32d445()[_0x183a09('0x14b4')](_0x3bb8b7['to'])&&_0x3bb8b7[_0x183a09('0x1e4e')]&&!_0x32d445()[_0x183a09('0x1c43')](_0x3bb8b7['to'],_0x3bb8b7[_0x183a09('0x1e4e')][_0x183a09('0x1211')]))_0x3bb8b7[_0x183a09('0x130c')]=_0x3bb8b7['to']['split']('\x20<')[0x0],_0x3bb8b7[_0x183a09('0x15a6')]=_0x3bb8b7['to'][_0x183a09('0x1745')]('<')[_0x183a09('0x2b')]()[_0x183a09('0x1745')]('>')[0x0];else _0x3bb8b7[_0x183a09('0x1286')]?(_0x3bb8b7[_0x183a09('0x130c')]=(_0x3bb8b7[_0x183a09('0x1286')][_0x183a09('0x2566')]||'')+'\x20'+(_0x3bb8b7[_0x183a09('0x1286')]['lastName']||''),_0x3bb8b7[_0x183a09('0x15a6')]=_0x3bb8b7['Contact'][_0x183a09('0x1211')]||''):_0x3bb8b7[_0x183a09('0x130c')]=_0x407aed[_0x183a09('0x2159')]('DASHBOARDS.UNKNOWN');}function _0x2ab852(_0x283349){var _0xdc4cc0=_0x23a333;if(_0x283349['UserId'])return _0x283349[_0xdc4cc0('0x43d')]===_0x217b12[_0xdc4cc0('0x10c6')]['id']?_0x407aed['instant'](_0xdc4cc0('0x132d')):_0x283349[_0xdc4cc0('0x2237')][_0xdc4cc0('0xe11')]+'\x20<'+_0x283349[_0xdc4cc0('0x2237')][_0xdc4cc0('0x1b66')]+'>';return _0x407aed[_0xdc4cc0('0x2159')]('DASHBOARDS.NOT_ASSIGNED');}function _0x37edc8(_0x54f8f5){var _0x395733=_0x23a333;if(_0x54f8f5[_0x395733('0x1e4e')])return _0x54f8f5['Account']['key'];return _0x407aed['instant'](_0x395733('0x27df'));}function _0xd4deeb(_0xe2e7f7,_0x1e5a8f){var _0x5e14ec=_0x23a333;_0x1e5a8f[_0x5e14ec('0xf6')]?(_0x1e5a8f[_0x5e14ec('0xf6')][_0x5e14ec('0xf12')]=!![],_0x5a8e20(null,_0x1e5a8f['interaction'])):_0x5ab645['show']({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x518a61,'parent':angular[_0x5e14ec('0x24a1')](_0x33a21e[_0x5e14ec('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x1e5a8f['account'],'message':_0x1e5a8f[_0x5e14ec('0xd0')],'type':'draft','interaction':{}},'fullscreen':!![]})[_0x5e14ec('0xe19')](function(_0x3c1eb0){var _0x59f154=_0x5e14ec;if(_0x3c1eb0){if(_0x3c1eb0[_0x59f154('0x27e8')]&&_0x3c1eb0[_0x59f154('0x27e8')][_0x59f154('0x11a7')]){var _0xde7e8c={'id':_0x1e5a8f['id'],'channel':_0x59f154('0x26bf'),'account':_0x3c1eb0['account'],'message':_0x3c1eb0[_0x59f154('0x27e8')]};_0x198f8e[_0x59f154('0xa70')](_0xde7e8c);}else{var _0x19fa33=_0x3c1eb0;return _0x53aa7d[_0x59f154('0x17f0')][_0x59f154('0x1ee')]({'id':_0x1e5a8f[_0x59f154('0xe8b')]['id']},_0x19fa33)['$promise'][_0x59f154('0xe19')](function(_0x14f59d){var _0x4d0004=_0x59f154;_0x198f8e[_0x4d0004('0xa8b')](_0x1e5a8f['id']);if(_0x14f59d&&_0x14f59d[_0x4d0004('0x1e63')]&&_0x14f59d['Messages'][_0x4d0004('0x25ae')]){if(_0x19fa33[_0x4d0004('0x20f')]&&_0x19fa33['attachments'][_0x4d0004('0x25ae')])for(var _0x249c4b=0x0;_0x249c4b<_0x19fa33['attachments']['length'];_0x249c4b+=0x1){_0x53aa7d['attachment'][_0x4d0004('0xa70')]({'id':_0x19fa33[_0x4d0004('0x20f')][_0x249c4b]['id']},{'MailMessageId':_0x32d445()[_0x4d0004('0xb6c')](_0x14f59d[_0x4d0004('0x1e63')])['id']});}_0x395ed4[_0x4d0004('0x425')]({'title':'Message\x20properly\x20sent!','msg':_0x4d0004('0x2714')});if(_0x14f59d[_0x4d0004('0x1835')]){_0x14f59d[_0x4d0004('0x2506')]=null;var _0x2ac3fb=!_0x1e5a8f[_0x4d0004('0xe8b')][_0x4d0004('0x1dc8')],_0x168525=_0x217b12[_0x4d0004('0x10c6')]['voicePause']||_0x217b12['user'][_0x4d0004('0x1b15')]||_0x217b12[_0x4d0004('0x10c6')]['mailPause']||_0x217b12[_0x4d0004('0x10c6')][_0x4d0004('0xf2a')]||_0x217b12['user'][_0x4d0004('0x2299')];_0x5ab645['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular[_0x4d0004('0x24a1')](_0x33a21e['body']),'onRemoving':function _0x2565b3(){var _0x113b50=_0x4d0004;_0x217b12['user']&&_0x1e5a8f[_0x113b50('0xe8b')][_0x113b50('0x1dc8')]&&!_0x168525&&_0x53aa7d[_0x113b50('0x10c6')][_0x113b50('0x2471')]({'id':_0x217b12[_0x113b50('0x10c6')]['id']})['$promise'][_0x113b50('0x223b')](function(_0x51eeee){console['error'](_0x51eeee);});},'clickOutsideToClose':_0x2ac3fb,'escapeToClose':_0x2ac3fb,'locals':{'user':_0x217b12['user'],'channel':_0x4d0004('0x26bf'),'interaction':_0x14f59d}});}else _0x917d1c[_0x4d0004('0x5cf')]['vm'][_0x4d0004('0xa31')](_0x4d0004('0x26bf'),_0x14f59d);}})[_0x59f154('0x223b')](function(_0xa78193){var _0x578591=_0x59f154;if(_0xa78193[_0x578591('0x11d0')]&&_0xa78193[_0x578591('0x11d0')][_0x578591('0xcd2')]&&_0xa78193[_0x578591('0x11d0')][_0x578591('0xcd2')][_0x578591('0x25ae')])for(var _0x852107=0x0;_0x852107<_0xa78193[_0x578591('0x11d0')]['errors'][_0x578591('0x25ae')];_0x852107++){_0x395ed4[_0x578591('0x8c8')]({'title':_0xa78193[_0x578591('0x11d0')]['errors'][_0x852107][_0x578591('0x62e')],'msg':_0xa78193['data'][_0x578591('0xcd2')][_0x852107][_0x578591('0x27e8')]});}else _0x395ed4[_0x578591('0x8c8')]({'title':_0xa78193[_0x578591('0x2833')]?_0x578591('0x27f2')+_0xa78193[_0x578591('0x2833')]+_0x578591('0x1b7c')+_0xa78193['statusText']:_0x578591('0x91b'),'msg':_0xa78193[_0x578591('0x11d0')]?JSON['stringify'](_0xa78193['data'][_0x578591('0x27e8')]):_0xa78193[_0x578591('0x27e8')]||_0xa78193[_0x578591('0x94f')]()});});}}});}function _0x45f905(_0x10389e,_0x207032){var _0x592b0f=_0x23a333;_0x5ab645[_0x592b0f('0x26b2')]({'controller':_0x592b0f('0x102a'),'controllerAs':'vm','templateUrl':_0x518a61,'parent':angular[_0x592b0f('0x24a1')](_0x33a21e[_0x592b0f('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x207032,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})[_0x592b0f('0xe19')](function(_0x59ce48){var _0x266828=_0x592b0f;if(_0x59ce48){if(_0x59ce48[_0x266828('0x27e8')]&&_0x59ce48['message'][_0x266828('0x11a7')]){var _0x1fb4e2={'channel':_0x266828('0x26bf'),'account':_0x207032,'message':_0x59ce48[_0x266828('0x27e8')],'contact':_0x59ce48[_0x266828('0xd9a')]};_0x198f8e[_0x266828('0xaf8')](_0x1fb4e2);}else{var _0x5a86d3=_0x59ce48;return _0x53aa7d[_0x266828('0x17f0')][_0x266828('0x1ee')]({'id':_0x207032['id']},_0x5a86d3)[_0x266828('0xe59')]['then'](function(_0xe14b0a){var _0x433c71=_0x266828;if(_0xe14b0a&&_0xe14b0a[_0x433c71('0x1e63')]&&_0xe14b0a['Messages'][_0x433c71('0x25ae')]){if(_0x5a86d3[_0x433c71('0x20f')]&&_0x5a86d3[_0x433c71('0x20f')][_0x433c71('0x25ae')])for(var _0x1bfc82=0x0;_0x1bfc82<_0x5a86d3['attachments'][_0x433c71('0x25ae')];_0x1bfc82+=0x1){_0x53aa7d[_0x433c71('0x1a47')][_0x433c71('0xa70')]({'id':_0x5a86d3[_0x433c71('0x20f')][_0x1bfc82]['id']},{'MailMessageId':_0x32d445()['head'](_0xe14b0a[_0x433c71('0x1e63')])['id']});}_0x395ed4[_0x433c71('0x425')]({'title':_0x433c71('0x1c0d'),'msg':_0x433c71('0x2714')});if(_0xe14b0a['closed']){_0xe14b0a[_0x433c71('0x2506')]=null;var _0x1e93d2=!_0x207032[_0x433c71('0x1dc8')],_0x4a3a79=_0x217b12['user'][_0x433c71('0x1b8d')]||_0x217b12[_0x433c71('0x10c6')][_0x433c71('0x1b15')]||_0x217b12[_0x433c71('0x10c6')][_0x433c71('0x2531')]||_0x217b12['user'][_0x433c71('0xf2a')]||_0x217b12[_0x433c71('0x10c6')][_0x433c71('0x2299')];_0x5ab645[_0x433c71('0x26b2')]({'controller':_0x433c71('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular['element'](_0x33a21e[_0x433c71('0x19b2')]),'onRemoving':function _0x1fb677(){var _0x595387=_0x433c71;_0x217b12[_0x595387('0x10c6')]&&_0x207032[_0x595387('0x1dc8')]&&!_0x4a3a79&&_0x53aa7d[_0x595387('0x10c6')][_0x595387('0x2471')]({'id':_0x217b12['user']['id']})[_0x595387('0xe59')]['catch'](function(_0x5d7666){var _0x3937a4=_0x595387;console[_0x3937a4('0x8c8')](_0x5d7666);});},'clickOutsideToClose':_0x1e93d2,'escapeToClose':_0x1e93d2,'locals':{'user':_0x217b12[_0x433c71('0x10c6')],'channel':_0x433c71('0x26bf'),'interaction':_0xe14b0a}});}else _0x917d1c[_0x433c71('0x5cf')]['vm']['addInteractionTab'](_0x433c71('0x26bf'),_0xe14b0a);}})[_0x266828('0x223b')](function(_0x27573a){var _0x319768=_0x266828;if(_0x27573a[_0x319768('0x11d0')]&&_0x27573a[_0x319768('0x11d0')][_0x319768('0xcd2')]&&_0x27573a[_0x319768('0x11d0')]['errors']['length'])for(var _0x59216e=0x0;_0x59216e<_0x27573a[_0x319768('0x11d0')][_0x319768('0xcd2')][_0x319768('0x25ae')];_0x59216e++){_0x395ed4['error']({'title':_0x27573a['data'][_0x319768('0xcd2')][_0x59216e][_0x319768('0x62e')],'msg':_0x27573a[_0x319768('0x11d0')][_0x319768('0xcd2')][_0x59216e][_0x319768('0x27e8')]});}else _0x395ed4[_0x319768('0x8c8')]({'title':_0x27573a[_0x319768('0x2833')]?'API:'+_0x27573a[_0x319768('0x2833')]+'\x20-\x20'+_0x27573a[_0x319768('0x1fd7')]:_0x319768('0x91b'),'msg':_0x27573a['data']?JSON[_0x319768('0x3ad')](_0x27573a['data'][_0x319768('0x27e8')]):_0x27573a[_0x319768('0x27e8')]||_0x27573a['toString']()});});}}});}function _0x18fcc6(_0x30d41f){var _0x3e91d6=_0x23a333,_0x3d3ea8,_0x16430e=_0x32d445()[_0x3e91d6('0xf15')](_0x217b12[_0x3e91d6('0x2265')][_0x3e91d6('0x16a7')],{'id':_0x30d41f['MailInteractionId']});_0x16430e&&_0x16430e[_0x3e91d6('0x970')]&&(_0x3d3ea8=_0x32d445()[_0x3e91d6('0xf15')](_0x16430e[_0x3e91d6('0x970')],{'id':_0x30d41f[_0x3e91d6('0x43d')]}),!_0x3d3ea8&&_0x16430e[_0x3e91d6('0x970')][_0x3e91d6('0xb76')]({'id':_0x30d41f[_0x3e91d6('0x43d')]}));}function _0x252ae7(_0x35e9f5){var _0x237eae=_0x23a333,_0x31da67=_0x32d445()[_0x237eae('0xf15')](_0x217b12[_0x237eae('0x2265')][_0x237eae('0x16a7')],{'id':_0x35e9f5[_0x237eae('0x97c')]});_0x31da67&&_0x31da67['Users']&&_0x32d445()['remove'](_0x31da67['Users'],{'id':_0x35e9f5[_0x237eae('0x43d')]});}function _0x4cd830(_0x2ad84a){var _0x2abc29=_0x23a333;if(_0x2ad84a){var _0x3e5624=_0x32d445()[_0x2abc29('0xf15')](_0x217b12[_0x2abc29('0x2265')][_0x2abc29('0x16a7')],{'id':_0x2ad84a['id']});if(_0x3e5624){_0x3e5624[_0x2abc29('0x970')]=[];_0x2ad84a['closed']&&(_0x3e5624[_0x2abc29('0x98d')]=0x0);if(_0x217b12[_0x2abc29('0xa16')][_0x2abc29('0x9f6')]){var _0x2e22ad=_0x32d445()[_0x2abc29('0x20b6')](_0x217b12[_0x2abc29('0xa16')][_0x2abc29('0x9f6')],'-')?_0x2abc29('0x1ee9'):_0x2abc29('0x1564');_0x217b12[_0x2abc29('0x2265')]['rows']=_0x32d445()[_0x2abc29('0x10e')](_0x217b12['mailInteractions'][_0x2abc29('0x16a7')],_0x32d445()[_0x2abc29('0x1cd0')](_0x217b12[_0x2abc29('0xa16')]['sort'],'-'),_0x2e22ad);}_0x32d445()[_0x2abc29('0x1d8')](_0x3e5624,_0x32d445()['pick'](_0x2ad84a,_0x32d445()[_0x2abc29('0x1234')](_0x3e5624)));}else _0x12244c(_0x217b12[_0x2abc29('0xa16')]['page']);}}function _0x32ff0d(_0x1d4acc){var _0x564cec=_0x23a333;if(_0x1d4acc){var _0x98d49d=_0x32d445()[_0x564cec('0xf15')](_0x217b12['mailInteractions'][_0x564cec('0x16a7')],{'id':_0x1d4acc['id']});_0x98d49d&&(_0x98d49d[_0x564cec('0x1e7b')]=_0x1d4acc[_0x564cec('0x1105')]||[],_0x32d445()[_0x564cec('0x1d8')](_0x98d49d,_0x32d445()[_0x564cec('0xed5')](_0x1d4acc,_0x32d445()[_0x564cec('0x1234')](_0x98d49d))));}}function _0x7483ca(_0x1b7eb){var _0xcfab91=_0x23a333;if(_0x1b7eb&&!_0x1b7eb['secret']){var _0x32ddca=_0x32d445()[_0xcfab91('0xf15')](_0x217b12[_0xcfab91('0x2265')][_0xcfab91('0x16a7')],{'id':_0x1b7eb[_0xcfab91('0x97c')]});if(_0x32ddca){var _0x5c9f74=_0x32d445()[_0xcfab91('0xf15')](_0x32ddca['Messages'],{'id':_0x1b7eb['id']});_0x5c9f74?_0x32d445()[_0xcfab91('0x1d8')](_0x5c9f74,_0x32d445()[_0xcfab91('0xed5')](_0x1b7eb,_0x32d445()[_0xcfab91('0x1234')](_0x5c9f74))):(_0x32d445()[_0xcfab91('0xe44')](_0x32ddca[_0xcfab91('0x1e63')])&&(_0x32ddca['Messages']={'count':0x0}),!_0x1b7eb['read']&&(_0x32ddca[_0xcfab91('0x1e63')][_0xcfab91('0x148b')]+=0x1));}}}function _0x22e476(){var _0x343cde=_0x23a333;_0x217b12[_0x343cde('0x1a1d')]=![];}function _0x31683d(){_0x217b12['isSearchBarVisible']=!![];}function _0x3b9a14(){var _0x5816e7=_0x23a333;_0x217b12[_0x5816e7('0x1a1d')]=![],_0x5ab645[_0x5816e7('0x26b2')]({'controller':_0x5816e7('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x5816e7('0x24a1')](_0x33a21e['body']),'clickOutsideToClose':![],'locals':{'color':_0x217b12['sectionColor'],'fields':_0x217b12['advancedSearch'][_0x5816e7('0x1d17')],'storagePath':_0x5816e7('0x2eb')},'fullscreen':!![]})[_0x5816e7('0xe19')](function(_0x98ee7){var _0x4351fb=_0x5816e7;_0x217b12[_0x4351fb('0xa16')]['search']=_0x98ee7===![]?undefined:_0x98ee7;if(_0x217b12[_0x4351fb('0xa16')]['search']||_0x98ee7===![])_0x12244c();})[_0x5816e7('0x223b')](function(_0x2b0076){var _0x31c147=_0x5816e7;_0x395ed4['error']({'title':_0x31c147('0x71e'),'msg':_0x2b0076['data']?JSON[_0x31c147('0x3ad')](_0x2b0076['data'][_0x31c147('0x27e8')]):_0x2b0076['toString']()});});}var _0x5bb279=!![],_0x1196cd=0x1;_0x917d1c[_0x23a333('0x107')](_0x23a333('0x20cb'),function(_0x4c6f2c,_0x2183b9){var _0x371087=_0x23a333;_0x5bb279?_0x43af78(function(){_0x5bb279=![];}):(!_0x2183b9&&(_0x1196cd=_0x217b12['query']['page']),_0x4c6f2c!==_0x2183b9&&(_0x217b12[_0x371087('0xa16')][_0x371087('0xc08')]=0x1),!_0x4c6f2c&&(_0x217b12[_0x371087('0xa16')][_0x371087('0xc08')]=_0x1196cd),_0x12244c(_0x217b12['query']['page']));}),_0x917d1c[_0x23a333('0xb2b')]('$destroy',function(){var _0x296903=_0x23a333;_0x2a80f0[_0x296903('0x2121')]('mailMessage:save'),_0x2a80f0[_0x296903('0x2121')]('mailMessage:update'),_0x2a80f0[_0x296903('0x2121')]('mailInteraction:save'),_0x2a80f0[_0x296903('0x2121')]('mailInteractionTags:save'),_0x2a80f0[_0x296903('0x2121')](_0x296903('0x231c')),_0x2a80f0[_0x296903('0x2121')](_0x296903('0x1255')),_0x2a80f0['removeAllListeners'](_0x296903('0x7b6'));});}const _0x24ef34=_0x45541f;_0x1cdf72[_0xb635d2('0xb0c')]=[_0xb635d2('0x1728'),_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x2730'),_0xb635d2('0xffc'),_0xb635d2('0x2400'),'toasty'];function _0x1cdf72(_0x20446c,_0x297243,_0x24fad0,_0x182bc2,_0x4fd90f,_0x44d971,_0x135a4c,_0x3698b3){var _0x4cd87e=_0xb635d2,_0x5c9af0=this;_0x5c9af0['currentUser']=_0x4fd90f[_0x4cd87e('0x1ef8')](),_0x5c9af0[_0x4cd87e('0x9f8')]={},_0x5c9af0['contacts']={'count':0x0,'rows':[]},_0x5c9af0['tags']={'count':0x0,'rows':[]},_0x5c9af0[_0x4cd87e('0xa16')]={'includeAll':!![],'id':_0x5c9af0[_0x4cd87e('0x15a5')]['id'],'sort':_0x4cd87e('0x7e8'),'limit':0xa,'page':0x1},_0x5c9af0[_0x4cd87e('0x164')]={'fields':[]},_0x5c9af0[_0x4cd87e('0x1231')]='red',_0x5c9af0[_0x4cd87e('0xbd8')]=_0x356b7e,_0x5c9af0[_0x4cd87e('0x8f6')]=_0x56b99a,_0x5c9af0['mergeContact']=_0x1e3c1e,_0x5c9af0[_0x4cd87e('0x2202')]=_0x370683,_0x5c9af0[_0x4cd87e('0x1ee7')]=_0x3ee911,_0x5c9af0[_0x4cd87e('0x20c4')]=_0x297243[_0x4cd87e('0x5cf')]['vm'][_0x4cd87e('0x20c4')],_0x5c9af0[_0x4cd87e('0x888')]=_0x181a82,_0x5c9af0[_0x4cd87e('0x1987')]=_0x418be7,_0x5c9af0[_0x4cd87e('0x2846')]=_0x45bc72,_0x5c9af0[_0x4cd87e('0x1f45')]=_0x4f9880;function _0x181a82(){var _0x45f8f9=_0x4cd87e;_0x44d971[_0x45f8f9('0x1bbd')][_0x45f8f9('0x22d5')]({'fields':_0x45f8f9('0x302'),'sort':_0x45f8f9('0x2623'),'nolimit':!![]})[_0x45f8f9('0xe59')]['then'](function(_0x19cf75){var _0x2f47d4=_0x45f8f9;return _0x5c9af0[_0x2f47d4('0x9f8')]=_0x19cf75||{'count':0x0,'rows':[]},_0x5c9af0[_0x2f47d4('0x1a4c')]=_0x32d445()[_0x2f47d4('0x226f')](_0x5c9af0[_0x2f47d4('0x9f8')][_0x2f47d4('0x16a7')],'id'),_0x44d971[_0x2f47d4('0x2037')]['get']()[_0x2f47d4('0xe59')];})[_0x45f8f9('0xe19')](function(_0xf9ac8c){var _0x342891=_0x45f8f9;_0x5c9af0[_0x342891('0x1105')]=_0xf9ac8c||{'count':0x0,'rows':[]};})[_0x45f8f9('0xe19')](function(){_0x5c9af0['quickFilters']=_0x213c39();})['catch'](function(_0x3c6c80){var _0x5c1add=_0x45f8f9;console[_0x5c1add('0x8c8')](_0x3c6c80);})[_0x45f8f9('0x23')](function(){var _0x258ffb=_0x45f8f9,_0x2f15f3=_0x135a4c[_0x258ffb('0x4f9')][_0x258ffb('0x2208')]('motion2.home.mycontacts:'+_0x5c9af0[_0x258ffb('0x15a5')]['id']);if(_0x2f15f3)try{_0x2f15f3=JSON['parse'](_0x2f15f3);if(_0x2f15f3[_0x258ffb('0xa16')]){_0x5c9af0[_0x258ffb('0xa16')]=_0x32d445()[_0x258ffb('0x1d8')](_0x5c9af0[_0x258ffb('0xa16')],_0x2f15f3['query']);if(_0x32d445()[_0x258ffb('0x14b4')](_0x5c9af0[_0x258ffb('0x9f8')][_0x258ffb('0x16a7')]))_0x5c9af0[_0x258ffb('0xa16')][_0x258ffb('0x2463')]=[];else _0x32d445()['isEmpty'](_0x5c9af0[_0x258ffb('0xa16')][_0x258ffb('0x2463')])&&(_0x5c9af0[_0x258ffb('0xa16')][_0x258ffb('0x2463')]=_0x32d445()(_0x5c9af0[_0x258ffb('0x9f8')]['rows'])[_0x258ffb('0x65a')]('id')[_0x258ffb('0x2466')]()[_0x258ffb('0x2')]());}}catch(_0x4e4831){console['error'](_0x4e4831);}else _0x5c9af0[_0x258ffb('0xa16')]['ListId']=_0x32d445()[_0x258ffb('0x65a')](_0x5c9af0[_0x258ffb('0x9f8')][_0x258ffb('0x16a7')],'id');_0x5c9af0['isSearchBarVisible']=_0x5c9af0[_0x258ffb('0xa16')][_0x258ffb('0x2891')]?!![]:![],_0x356b7e();});}function _0x213c39(){var _0x54cc5b=_0x4cd87e;return[{'name':'List','key':_0x54cc5b('0x2463'),'type':_0x54cc5b('0x19a0'),'label':_0x54cc5b('0x2838'),'options':_0x5c9af0[_0x54cc5b('0x9f8')][_0x54cc5b('0x16a7')],'clearAll':![]},{'name':'Tag','key':_0x54cc5b('0x2037'),'type':_0x54cc5b('0x19a0'),'label':_0x54cc5b('0x23c7'),'options':_0x5c9af0[_0x54cc5b('0x1105')][_0x54cc5b('0x16a7')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x2cb3c8(_0x23318a){var _0x2b0278=_0x4cd87e;_0x5c9af0[_0x2b0278('0xcfc')]=![],_0x5c9af0[_0x2b0278('0x4b1')]=_0x23318a||{'count':0x0,'rows':[]};}function _0x356b7e(_0x3f9936){var _0x343e1d=_0x4cd87e;_0x5c9af0[_0x343e1d('0xcfc')]=!![],_0x4035c7();!_0x3f9936&&(_0x5c9af0[_0x343e1d('0xa16')][_0x343e1d('0xc08')]=0x1);_0x5c9af0['query']['offset']=(_0x5c9af0[_0x343e1d('0xa16')][_0x343e1d('0xc08')]-0x1)*_0x5c9af0[_0x343e1d('0xa16')][_0x343e1d('0x1b6d')];var _0x3a4b92=_0x135a4c[_0x343e1d('0x4f9')]['getItem'](_0x343e1d('0x1714')+_0x5c9af0[_0x343e1d('0x15a5')]['id']);_0x3a4b92=_0x3a4b92?JSON['parse'](_0x3a4b92):{},_0x3a4b92[_0x343e1d('0xa16')]=_0x5c9af0[_0x343e1d('0xa16')],_0x135a4c[_0x343e1d('0x4f9')][_0x343e1d('0x95e')](_0x343e1d('0x1714')+_0x5c9af0[_0x343e1d('0x15a5')]['id'],JSON[_0x343e1d('0x3ad')](_0x3a4b92));if(_0x5c9af0[_0x343e1d('0xa16')][_0x343e1d('0x1cc8')])_0x5c9af0[_0x343e1d('0x1972')]=_0x32d445()[_0x343e1d('0x23e3')](_0x5c9af0[_0x343e1d('0xa16')],'id');_0x5c9af0[_0x343e1d('0x9c8')]=_0x5c9af0[_0x343e1d('0xa16')][_0x343e1d('0x1cc8')]?_0x44d971[_0x343e1d('0x1711')][_0x343e1d('0x22d5')](_0x5c9af0[_0x343e1d('0x1972')],_0x2cb3c8)['$promise']:_0x44d971[_0x343e1d('0x10c6')]['getContacts'](_0x5c9af0[_0x343e1d('0xa16')],_0x2cb3c8)[_0x343e1d('0xe59')];}function _0x3ee911(_0x407d49,_0x51bf83){var _0x39d38f=_0x4cd87e;_0x297243[_0x39d38f('0x5cf')]['vm'][_0x39d38f('0x8be')](_0x51bf83);}function _0x56b99a(){_0x356b7e();}function _0x370683(_0x1efa85,_0x4175f0){var _0x8d350c=_0x4cd87e;_0x182bc2[_0x8d350c('0x26b2')]({'controller':_0x8d350c('0x1901'),'controllerAs':'vm','templateUrl':_0x189c18,'parent':angular[_0x8d350c('0x24a1')](_0x20446c['body']),'targetEvent':_0x1efa85,'clickOutsideToClose':!![],'resolve':{'contact':[_0x8d350c('0x292'),function _0x4e9c77(_0x3ee891){var _0x2db586=_0x8d350c;return _0x3ee891[_0x2db586('0xcd6')](_0x2db586('0x1995'),{'id':_0x4175f0['id']});}],'lists':[_0x8d350c('0x292'),function _0xe0bdf3(_0x351e05){var _0x3c1763=_0x8d350c;return _0x351e05[_0x3c1763('0xcd6')](_0x3c1763('0x5c6'),{'id':_0x5c9af0[_0x3c1763('0x15a5')]['id'],'fields':_0x3c1763('0x104')});}]},'locals':{'contacts':_0x5c9af0[_0x8d350c('0x4b1')]['rows']}});}function _0x1e3c1e(_0x15a619,_0x509aee){var _0x7a40f2=_0x4cd87e;_0x182bc2['show']({'controller':_0x7a40f2('0x1a88'),'controllerAs':'vm','templateUrl':_0x548c5c,'parent':angular['element'](_0x20446c[_0x7a40f2('0x19b2')]),'targetEvent':_0x15a619,'clickOutsideToClose':!![],'resolve':{'contact':[_0x7a40f2('0x292'),function _0xd96c6c(_0x29b44e){var _0x21afc2=_0x7a40f2;return _0x29b44e[_0x21afc2('0xcd6')](_0x21afc2('0x1995'),{'id':_0x509aee['id']});}],'lists':[_0x7a40f2('0x292'),function _0xe149bf(_0x35c932){var _0x47fd9e=_0x7a40f2;return _0x35c932[_0x47fd9e('0xcd6')](_0x47fd9e('0x5c6'),{'id':_0x5c9af0['currentUser']['id'],'fields':_0x47fd9e('0x104')});}]},'locals':{'contacts':_0x5c9af0[_0x7a40f2('0x4b1')]['rows']}});}function _0x418be7(){var _0x3a7198=_0x4cd87e;_0x5c9af0[_0x3a7198('0x1a1d')]=![];}function _0x45bc72(){var _0x11d648=_0x4cd87e;_0x5c9af0[_0x11d648('0x1a1d')]=!![];}function _0x4035c7(){var _0x41c12d=_0x4cd87e;return _0x44d971[_0x41c12d('0x1711')][_0x41c12d('0x215e')]({'id':_0x5c9af0[_0x41c12d('0xa16')]['ListId']})[_0x41c12d('0xe59')][_0x41c12d('0xe19')](function(_0x4e196c){var _0x37d012=_0x41c12d;return _0x32d445()(_0x4e196c['toJSON']())['omit'](_0x37d012('0x43d'))[_0x37d012('0x1b79')]()['map'](function(_0x599d69){return _0x55bb42(_0x599d69);})['value']();})[_0x41c12d('0xe19')](function(_0x5eee73){var _0x1af01e=_0x41c12d;_0x5c9af0[_0x1af01e('0x164')][_0x1af01e('0x1d17')]=_0x5eee73;var _0x17c8c0={'name':_0x1af01e('0x1e7b'),'column':'Tag','type':_0x1af01e('0x19a0'),'options':{'route':{'model':_0x1af01e('0x2037'),'action':_0x1af01e('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x1af01e('0x19a3')]}},_0x32377b=_0x32d445()[_0x1af01e('0x8d3')](_0x5eee73,function(_0x3deb94){var _0x595fe7=_0x1af01e;return _0x32d445()[_0x595fe7('0x20b6')](_0x3deb94[_0x595fe7('0x1abc')],_0x595fe7('0x1441'));})||_0x5eee73[_0x1af01e('0x25ae')]-0x1;if(_0x32377b<0x0)_0x32377b=_0x5eee73[_0x1af01e('0x25ae')];_0x5c9af0[_0x1af01e('0x164')][_0x1af01e('0x1d17')][_0x1af01e('0x1c8e')](_0x32377b,0x0,_0x17c8c0);})[_0x41c12d('0x223b')](function(_0x2cdec6){var _0x52a314=_0x41c12d;_0x3698b3['error']({'title':_0x2cdec6[_0x52a314('0x2833')]?_0x52a314('0x27f2')+_0x2cdec6[_0x52a314('0x2833')]+_0x52a314('0x1b7c')+_0x2cdec6[_0x52a314('0x1fd7')]:_0x52a314('0x1acd'),'msg':_0x2cdec6[_0x52a314('0x11d0')]?JSON[_0x52a314('0x3ad')](_0x2cdec6[_0x52a314('0x11d0')]['message']):_0x2cdec6[_0x52a314('0x94f')]()});});}function _0x55bb42(_0x1a8017){var _0x14ccdc=_0x4cd87e,_0x4d6794={'name':_0x32d445()[_0x14ccdc('0x1df2')](_0x1a8017[_0x14ccdc('0x627')]),'column':_0x1a8017[_0x14ccdc('0x2127')],'options':{}};if(_0x1a8017['custom'])switch(_0x1a8017[_0x14ccdc('0x261d')][_0x14ccdc('0x62e')]){case _0x14ccdc('0x1bc6'):_0x4d6794[_0x14ccdc('0x62e')]=_0x14ccdc('0x1bc6');break;case _0x14ccdc('0x2e6'):_0x4d6794[_0x14ccdc('0x62e')]=_0x14ccdc('0x19a0'),_0x4d6794['values']=_0x32d445()[_0x14ccdc('0x65a')](JSON[_0x14ccdc('0x118e')](_0x1a8017['custom']['values']),function(_0x3ad753,_0x1b5caf){var _0x11836b=_0x14ccdc;return{'id':_0x1b5caf,'name':_0x3ad753[_0x11836b('0x2')],'value':_0x3ad753[_0x11836b('0x2')]};}),_0x4d6794[_0x14ccdc('0x2116')]['field']='name';break;case _0x14ccdc('0x1024'):_0x4d6794['type']=_0x14ccdc('0x2e6'),_0x4d6794['values']=[{'id':0x1,'translate':_0x14ccdc('0x17f1')},{'id':0x0,'translate':_0x14ccdc('0x1ed9')}],_0x4d6794[_0x14ccdc('0x2116')]['excludedOperators']=['$ne'];break;case'number':_0x4d6794['type']='number';break;case _0x14ccdc('0x2547'):_0x4d6794[_0x14ccdc('0x62e')]='date';break;}else switch(_0x1a8017[_0x14ccdc('0x2127')]){case _0x14ccdc('0x23d0'):_0x4d6794['type']=_0x14ccdc('0xf6d');break;case'CompanyId':_0x4d6794[_0x14ccdc('0x2623')]=_0x14ccdc('0x446'),_0x4d6794[_0x14ccdc('0x62e')]=_0x14ccdc('0x5c0'),_0x4d6794[_0x14ccdc('0x2116')][_0x14ccdc('0x622')]={'model':_0x14ccdc('0x24d1'),'action':_0x14ccdc('0x22d5'),'params':{'fields':_0x14ccdc('0x104'),'nolimit':!![]}},_0x4d6794['options']['searchFields']=[_0x14ccdc('0x2623')],_0x4d6794[_0x14ccdc('0x2116')][_0x14ccdc('0x12c1')]=[_0x14ccdc('0x1f51')];break;case _0x14ccdc('0x2463'):_0x4d6794[_0x14ccdc('0x2623')]='List',_0x4d6794[_0x14ccdc('0x62e')]=_0x14ccdc('0x5c0'),_0x4d6794['options'][_0x14ccdc('0x622')]={'model':_0x14ccdc('0x10c6'),'action':'getLists','params':{'id':_0x5c9af0[_0x14ccdc('0x15a5')]['id'],'fields':'id,name','nolimit':!![]}},_0x4d6794[_0x14ccdc('0x2116')][_0x14ccdc('0x49')]=[_0x14ccdc('0x2623')],_0x4d6794[_0x14ccdc('0x2116')][_0x14ccdc('0x12c1')]=[_0x14ccdc('0x1f51')];break;default:if(_0x32d445()[_0x14ccdc('0x1c43')](_0x1a8017[_0x14ccdc('0x62e')][_0x14ccdc('0x20dd')](),_0x14ccdc('0xf5f')))_0x4d6794[_0x14ccdc('0x62e')]=_0x14ccdc('0x1c60');else _0x32d445()[_0x14ccdc('0x1c43')](_0x1a8017[_0x14ccdc('0x62e')][_0x14ccdc('0x20dd')](),'date')?_0x4d6794[_0x14ccdc('0x62e')]=_0x14ccdc('0xf6d'):_0x4d6794['type']=_0x14ccdc('0x1bc6');break;}return _0x4d6794;}function _0x4f9880(){var _0xcca17c=_0x4cd87e;_0x5c9af0[_0xcca17c('0x1a1d')]=![],_0x182bc2[_0xcca17c('0x26b2')]({'controller':_0xcca17c('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0xcca17c('0x24a1')](_0x20446c[_0xcca17c('0x19b2')]),'clickOutsideToClose':![],'locals':{'color':_0x5c9af0[_0xcca17c('0x1231')],'fields':_0x5c9af0[_0xcca17c('0x164')][_0xcca17c('0x1d17')],'storagePath':'home.mycontacts'},'fullscreen':!![]})[_0xcca17c('0xe19')](function(_0x1c297e){var _0x3940e4=_0xcca17c;_0x5c9af0[_0x3940e4('0xa16')]['search']=_0x1c297e===![]?undefined:_0x1c297e;if(_0x1c297e===![])_0x356b7e();else _0x5c9af0[_0x3940e4('0xa16')][_0x3940e4('0x1cc8')]&&(_0x5c9af0[_0x3940e4('0xa16')][_0x3940e4('0x1cc8')]+=_0x3940e4('0x1de3')+_0x5c9af0[_0x3940e4('0x15a5')]['id']+']',_0x356b7e());})['catch'](function(_0x4ec7af){var _0x5474f2=_0xcca17c;_0x3698b3[_0x5474f2('0x8c8')]({'title':_0x5474f2('0x71e'),'msg':_0x4ec7af['data']?JSON['stringify'](_0x4ec7af[_0x5474f2('0x11d0')][_0x5474f2('0x27e8')]):_0x4ec7af['toString']()});});}var _0x277c1c=!![],_0x104d18=0x1;_0x297243[_0x4cd87e('0x107')]('vm.query.filter',function(_0x230c93,_0x2e43e0){var _0xe95451=_0x4cd87e;_0x277c1c?_0x24fad0(function(){_0x277c1c=![];}):(!_0x2e43e0&&(_0x104d18=_0x5c9af0['query'][_0xe95451('0xc08')]),_0x230c93!==_0x2e43e0&&(_0x5c9af0[_0xe95451('0xa16')][_0xe95451('0xc08')]=0x1),!_0x230c93&&(_0x5c9af0['query'][_0xe95451('0xc08')]=_0x104d18),_0x356b7e());});}const _0x4d6df4=_0x1cdf72;_0x5f83c2[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$timeout','$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2400'),_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),_0xb635d2('0x1a90')];function _0x5f83c2(_0x5e0f95,_0x2c3a14,_0x418287,_0x2ed5c7,_0x5b818f,_0x4e78aa,_0x31bfab,_0x5e2d15,_0x1f3f31,_0x2d6481,_0x5c6d83){var _0x1fe2ff=_0xb635d2,_0x212f3f=this;_0x212f3f[_0x1fe2ff('0x10c6')]=_0x5e2d15[_0x1fe2ff('0x1ef8')](),_0x212f3f[_0x1fe2ff('0x5c1')]={},_0x212f3f[_0x1fe2ff('0x22f1')]={},_0x212f3f[_0x1fe2ff('0x1105')]={'count':0x0,'rows':[]},_0x212f3f[_0x1fe2ff('0x1e27')]={'count':0x0,'rows':[]},_0x212f3f[_0x1fe2ff('0xa16')]={'includeAll':!![],'sort':_0x1fe2ff('0x7e8'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x212f3f[_0x1fe2ff('0x164')]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x1fe2ff('0x1286'),'column':_0x1fe2ff('0x1286'),'type':_0x1fe2ff('0x5c0'),'options':{'searchFields':['firstName',_0x1fe2ff('0x151f'),_0x1fe2ff('0x1211')],'route':{'model':_0x1fe2ff('0x1711'),'action':_0x1fe2ff('0x22d5'),'params':{'fields':_0x1fe2ff('0x75'),'Contact':_0x1fe2ff('0x217d'),'nolimit':!![]}},'extraOperators':[_0x1fe2ff('0x1247')],'excludedOperators':['$ne']}},{'name':'Body','column':_0x1fe2ff('0x19b2'),'type':'text','options':{'excludedOperators':[_0x1fe2ff('0x1d15'),_0x1fe2ff('0x1f51')]}},{'name':_0x1fe2ff('0x20e'),'column':_0x1fe2ff('0x1835'),'type':_0x1fe2ff('0x2e6'),'values':[{'id':0x0,'translate':_0x1fe2ff('0x1c37')},{'id':0x1,'translate':_0x1fe2ff('0x1bbb')}],'options':{'excludedOperators':[_0x1fe2ff('0x1f51')]}},{'name':'Agent','column':_0x1fe2ff('0x2630'),'type':_0x1fe2ff('0x5c0'),'options':{'table':'i','route':{'model':'user','action':_0x1fe2ff('0x22d5'),'params':{'role':_0x1fe2ff('0x108'),'fields':_0x1fe2ff('0x194c'),'nolimit':!![]}},'searchFields':['fullname',_0x1fe2ff('0x2623')],'extraOperators':[_0x1fe2ff('0x1247')],'excludedOperators':['$ne']}},{'name':'Account','column':_0x1fe2ff('0xf26'),'type':_0x1fe2ff('0x19a0'),'options':{'route':{'model':_0x1fe2ff('0x10c6'),'action':_0x1fe2ff('0x1449'),'params':{'id':_0x212f3f[_0x1fe2ff('0x10c6')]['id'],'nolimit':!![]}}}},{'name':_0x1fe2ff('0x1e7b'),'column':_0x1fe2ff('0x1172'),'type':_0x1fe2ff('0x19a0'),'options':{'route':{'model':_0x1fe2ff('0x2037'),'action':_0x1fe2ff('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x1fe2ff('0x19a3')]}},{'name':_0x1fe2ff('0x141d'),'column':'createdAt','type':'date','options':{'excludedOperators':['$ne']}},{'name':'Read','column':'unreadMessages','type':_0x1fe2ff('0x2e6'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x1fe2ff('0x10db')}],'options':{'excludedOperators':['$ne']}}]},_0x212f3f[_0x1fe2ff('0x1231')]='amber',_0x212f3f[_0x1fe2ff('0x888')]=_0x2e834f,_0x212f3f[_0x1fe2ff('0x425')]=_0x3dd7e9,_0x212f3f['getOpenchannelInteractions']=_0x13b544,_0x212f3f[_0x1fe2ff('0x1a84')]=_0x152bd3,_0x212f3f[_0x1fe2ff('0x101b')]=_0x2c3b19,_0x212f3f[_0x1fe2ff('0x23be')]=_0x491976,_0x212f3f[_0x1fe2ff('0x224d')]=_0x1b58e3,_0x212f3f[_0x1fe2ff('0x861')]=_0x6c4340,_0x212f3f[_0x1fe2ff('0x14da')]=_0x4e2410,_0x212f3f['composeOpenchannelInteraction']=_0x240e4c,_0x212f3f[_0x1fe2ff('0x1987')]=_0x14734f,_0x212f3f[_0x1fe2ff('0x2846')]=_0x14092c,_0x212f3f[_0x1fe2ff('0x1f45')]=_0x34a247;function _0x2e834f(_0x118c42,_0x4c288f){var _0x38e8b1=_0x1fe2ff;return _0x212f3f[_0x38e8b1('0x5c1')]=_0x118c42,_0x212f3f[_0x38e8b1('0x22f1')]=_0x4c288f,_0x31bfab[_0x38e8b1('0x10c6')]['get'+_0x32d445()[_0x38e8b1('0x2077')](_0x38e8b1('0x86e'))]({'id':_0x212f3f[_0x38e8b1('0x10c6')]['id'],'nolimit':!![]})[_0x38e8b1('0xe59')][_0x38e8b1('0xe19')](function(_0xe246fe){var _0x417b59=_0x38e8b1;return _0x212f3f[_0x417b59('0x86e')]=_0xe246fe||{'count':0x0,'rows':[]},_0x31bfab[_0x417b59('0x2037')][_0x417b59('0x22d5')]()[_0x417b59('0xe59')];})[_0x38e8b1('0xe19')](function(_0x260c09){var _0x4890a3=_0x38e8b1;_0x212f3f[_0x4890a3('0x1105')]=_0x260c09||{'count':0x0,'rows':[]};})['then'](function(){var _0x270168=_0x38e8b1;_0x212f3f[_0x270168('0x1fd3')]=_0x1f93fe();})[_0x38e8b1('0x223b')](function(_0x36befb){var _0x570e32=_0x38e8b1;console[_0x570e32('0x8c8')](_0x36befb);})[_0x38e8b1('0x23')](function(){var _0x50b64f=_0x38e8b1,_0x5d8ca9=_0x5b818f[_0x50b64f('0x4f9')][_0x50b64f('0x2208')](_0x50b64f('0x3c3')+_0x212f3f[_0x50b64f('0x10c6')]['id']);if(_0x5d8ca9)try{_0x5d8ca9=JSON[_0x50b64f('0x118e')](_0x5d8ca9);if(_0x5d8ca9[_0x50b64f('0xa16')]){_0x212f3f[_0x50b64f('0xa16')]=_0x32d445()[_0x50b64f('0x1d8')](_0x212f3f['query'],_0x5d8ca9[_0x50b64f('0xa16')]);if(_0x32d445()[_0x50b64f('0x14b4')](_0x212f3f['openchannelAccounts'][_0x50b64f('0x16a7')]))_0x212f3f['query'][_0x50b64f('0xf26')]=[];else _0x32d445()['isEmpty'](_0x212f3f['query'][_0x50b64f('0xf26')])&&(_0x212f3f[_0x50b64f('0xa16')][_0x50b64f('0xf26')]=_0x32d445()(_0x212f3f[_0x50b64f('0x86e')]['rows'])[_0x50b64f('0x65a')]('id')[_0x50b64f('0x2466')]()['value']());_0x212f3f['query'][_0x50b64f('0x9f6')]&&_0x212f3f[_0x50b64f('0xa16')]['sort'][_0x50b64f('0x281c')](_0x50b64f('0x218f'))>=0x0&&(_0x212f3f[_0x50b64f('0xa16')]=_0x32d445()[_0x50b64f('0x23e3')](_0x212f3f[_0x50b64f('0xa16')],_0x50b64f('0x9f6'))),_0x212f3f[_0x50b64f('0xa16')]['includeAll']=!![],_0x212f3f['isSearchBarVisible']=_0x212f3f['query'][_0x50b64f('0x2891')]?!![]:![];}}catch(_0x4401da){console[_0x50b64f('0x8c8')](_0x4401da);}else{var _0x53452b={'$gte':_0x4ddcaa()()[_0x50b64f('0x21b1')](_0x50b64f('0x211c'))['utcOffset'](0x0,!![])[_0x50b64f('0x5e5')](),'$lte':_0x4ddcaa()()['endOf'](_0x50b64f('0x211c'))[_0x50b64f('0x1e9e')](0x0,!![])['format']()},_0x5ba12c={'OpenchannelAccountId':_0x32d445()['map'](_0x212f3f[_0x50b64f('0x86e')]['rows'],'id'),'createdAt':_0x53452b};_0x212f3f['query']=_0x32d445()[_0x50b64f('0x1d8')](_0x212f3f['query'],_0x5ba12c);}_0x1f3f31['on'](_0x50b64f('0x603'),_0x3a0cc5),_0x1f3f31['on']('openchannelInteraction:update',_0x3a0cc5),_0x1f3f31['on']('openchannelInteractionTags:save',_0x591484),_0x1f3f31['on'](_0x50b64f('0xa29'),_0x5e4096),_0x1f3f31['on'](_0x50b64f('0x171d'),_0x5e4096),_0x1f3f31['on'](_0x50b64f('0x1bf0'),_0x1779a4),_0x1f3f31['on'](_0x50b64f('0x1ffa'),_0xd15a4e),_0x13b544(_0x212f3f[_0x50b64f('0xa16')][_0x50b64f('0xc08')]);});}function _0x1f93fe(){var _0x444dbd=_0x1fe2ff;return[{'name':_0x444dbd('0x141d'),'key':_0x444dbd('0x15c9'),'type':_0x444dbd('0xf6d'),'label':_0x444dbd('0x19b7')},{'name':_0x444dbd('0x1e63'),'key':_0x444dbd('0x1a6e'),'type':'select','label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x444dbd('0x10db')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x444dbd('0x296')}]},{'name':_0x444dbd('0x20e'),'key':_0x444dbd('0x1835'),'type':'select','label':_0x444dbd('0xef5'),'customOptions':[{'value':0x0,'translate':_0x444dbd('0x1c37')},{'value':0x1,'translate':_0x444dbd('0x1bbb')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x444dbd('0x1e4e'),'key':'OpenchannelAccountId','type':_0x444dbd('0x19a0'),'label':_0x444dbd('0xe22'),'options':_0x212f3f[_0x444dbd('0x86e')][_0x444dbd('0x16a7')],'clearAll':![]},{'name':_0x444dbd('0x142e'),'key':_0x444dbd('0x43d'),'type':_0x444dbd('0x2e6'),'label':_0x444dbd('0x120c'),'customOptions':[{'value':_0x212f3f[_0x444dbd('0x10c6')]['id'],'translate':_0x444dbd('0x132d')},{'value':'null','translate':_0x444dbd('0x2094')},{'value':undefined,'translate':_0x444dbd('0x296')}]},{'name':_0x444dbd('0x1172'),'key':_0x444dbd('0x2037'),'type':'multiselect','label':_0x444dbd('0x23c7'),'options':_0x212f3f['tags'][_0x444dbd('0x16a7')],'placeholder':_0x444dbd('0x14ec')}];}function _0x3dd7e9(_0x446d4a){var _0x32fa90=_0x1fe2ff;_0x212f3f[_0x32fa90('0xcfc')]=![],_0x212f3f[_0x32fa90('0x1e27')]=_0x446d4a||{'count':0x0,'rows':[]};for(var _0x3d235b=0x0;_0x3d235b<_0x212f3f['openchannelInteractions'][_0x32fa90('0x16a7')]['length'];_0x3d235b+=0x1){_0x1b58e3(_0x212f3f['openchannelInteractions'][_0x32fa90('0x16a7')][_0x3d235b]);}}function _0x13b544(_0xdaa331){var _0x5b96c8=_0x1fe2ff;_0x212f3f['searchInProgress']=!![];!_0xdaa331&&(_0x212f3f[_0x5b96c8('0xa16')][_0x5b96c8('0xc08')]=0x1);_0x212f3f[_0x5b96c8('0xa16')][_0x5b96c8('0xab0')]=(_0x212f3f[_0x5b96c8('0xa16')][_0x5b96c8('0xc08')]-0x1)*_0x212f3f[_0x5b96c8('0xa16')]['limit'];var _0x56fc40=_0x5b818f[_0x5b96c8('0x4f9')][_0x5b96c8('0x2208')](_0x5b96c8('0x3c3')+_0x212f3f[_0x5b96c8('0x10c6')]['id']);_0x56fc40=_0x56fc40?JSON[_0x5b96c8('0x118e')](_0x56fc40):{},_0x56fc40[_0x5b96c8('0xa16')]=_0x212f3f['query'],_0x5b818f[_0x5b96c8('0x4f9')][_0x5b96c8('0x95e')](_0x5b96c8('0x3c3')+_0x212f3f[_0x5b96c8('0x10c6')]['id'],JSON[_0x5b96c8('0x3ad')](_0x56fc40)),_0x212f3f[_0x5b96c8('0x9c8')]=_0x31bfab[_0x5b96c8('0x208b')]['get'](_0x212f3f[_0x5b96c8('0xa16')],_0x3dd7e9)[_0x5b96c8('0xe59')];}function _0x152bd3(_0x409431,_0x32ba9d){var _0x48484e=_0x1fe2ff;_0x5e0f95[_0x48484e('0x5cf')]['vm']['addInteractionTab'](_0x48484e('0xaf2'),_0x32ba9d);}function _0x2c3b19(_0x224e03,_0x5bfa2a,_0x1ec0e0){var _0x3597a1=_0x1fe2ff;_0x31bfab[_0x3597a1('0x208b')]['download']({'id':_0x5bfa2a['id'],'attachments':_0x1ec0e0})[_0x3597a1('0xe59')]['then'](function(_0x27e4bc){var _0x12f845=_0x3597a1,_0x380bae=[_0x27e4bc[_0x12f845('0x17ab')]],_0x52a790='openchannel-interaction'+_0x5bfa2a['id']+_0x12f845('0x985'),_0x448d09=new Blob(_0x380bae,{'type':_0x27e4bc[_0x12f845('0x62e')]}),_0x44e458=window[_0x12f845('0x18fa')]['createElement']('a');_0x44e458[_0x12f845('0xede')](_0x12f845('0xcb7'),URL['createObjectURL'](_0x448d09)),_0x44e458[_0x12f845('0xede')]('download',_0x52a790),document[_0x12f845('0x19b2')][_0x12f845('0x1d13')](_0x44e458),_0x44e458['click']();})['catch'](function(_0x28e252){var _0xca1f35=_0x3597a1;if(_0x28e252[_0xca1f35('0x11d0')]&&_0x28e252[_0xca1f35('0x11d0')]['errors']&&_0x28e252[_0xca1f35('0x11d0')][_0xca1f35('0xcd2')]['length'])for(var _0x5e534=0x0;_0x5e534<_0x28e252[_0xca1f35('0x11d0')][_0xca1f35('0xcd2')][_0xca1f35('0x25ae')];_0x5e534+=0x1){_0x2d6481['error']({'title':_0x28e252[_0xca1f35('0x11d0')][_0xca1f35('0xcd2')][_0x5e534][_0xca1f35('0x62e')],'msg':_0x28e252[_0xca1f35('0x11d0')][_0xca1f35('0xcd2')][_0x5e534][_0xca1f35('0x27e8')]});}else _0x2d6481[_0xca1f35('0x8c8')]({'title':_0x28e252[_0xca1f35('0x2833')]?_0xca1f35('0x27f2')+_0x28e252[_0xca1f35('0x2833')]+'\x20-\x20'+_0x28e252[_0xca1f35('0x1fd7')]:_0xca1f35('0x101b'),'msg':_0x28e252['data']?JSON[_0xca1f35('0x3ad')](_0x28e252[_0xca1f35('0x11d0')][_0xca1f35('0x27e8')]):_0x28e252['toString']()});});}function _0x491976(_0x5750fa,_0x545754){var _0x563f9d=_0x1fe2ff,_0x319e28=_0x212f3f[_0x563f9d('0x10c6')][_0x563f9d('0x1b8d')]||_0x212f3f[_0x563f9d('0x10c6')][_0x563f9d('0x1b15')]||_0x212f3f[_0x563f9d('0x10c6')]['mailPause']||_0x212f3f[_0x563f9d('0x10c6')][_0x563f9d('0xf2a')]||_0x212f3f['user'][_0x563f9d('0x2299')],_0x59c353=!_0x545754[_0x563f9d('0x1e4e')][_0x563f9d('0x1dc8')];_0x418287[_0x563f9d('0x26b2')]({'controller':_0x563f9d('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular['element'](_0x2ed5c7[_0x563f9d('0x19b2')]),'clickOutsideToClose':_0x59c353,'escapeToClose':_0x59c353,'onRemoving':function _0x12f7d0(){var _0x5c4603=_0x563f9d;_0x212f3f['user']&&_0x545754[_0x5c4603('0x1e4e')][_0x5c4603('0x1dc8')]&&!_0x319e28&&_0x31bfab[_0x5c4603('0x10c6')]['unpause']({'id':_0x212f3f[_0x5c4603('0x10c6')]['id']})[_0x5c4603('0xe59')][_0x5c4603('0x223b')](function(_0x3dbfb6){var _0x4fd6a7=_0x5c4603;console[_0x4fd6a7('0x8c8')](_0x3dbfb6);});},'locals':{'user':_0x212f3f[_0x563f9d('0x10c6')],'channel':_0x563f9d('0xaf2'),'interaction':_0x545754}});}function _0x1b58e3(_0x1bd45b){var _0x409d1f=_0x1fe2ff;if(_0x1bd45b[_0x409d1f('0x6f7')])_0x1bd45b[_0x409d1f('0x130c')]=_0x1bd45b[_0x409d1f('0x6f7')];else _0x1bd45b[_0x409d1f('0x1286')]?_0x1bd45b[_0x409d1f('0x130c')]=(_0x1bd45b[_0x409d1f('0x1286')][_0x409d1f('0x2566')]||'')+'\x20'+(_0x1bd45b[_0x409d1f('0x1286')][_0x409d1f('0x151f')]||''):_0x1bd45b[_0x409d1f('0x130c')]=_0x4e78aa['instant'](_0x409d1f('0x27df'));}function _0x6c4340(_0x2d2159){var _0x4afad9=_0x1fe2ff;if(_0x2d2159[_0x4afad9('0x43d')])return _0x2d2159['UserId']===_0x212f3f['user']['id']?_0x4e78aa['instant'](_0x4afad9('0x132d')):_0x2d2159[_0x4afad9('0x2237')][_0x4afad9('0xe11')]+'\x20<'+_0x2d2159['Owner']['internal']+'>';return _0x4e78aa['instant'](_0x4afad9('0x2094'));}function _0x4e2410(_0x2da7fc){var _0x3b3d56=_0x1fe2ff;if(_0x2da7fc['Account'])return _0x2da7fc[_0x3b3d56('0x1e4e')][_0x3b3d56('0x6e4')];return _0x4e78aa[_0x3b3d56('0x2159')](_0x3b3d56('0x27df'));}function _0x240e4c(_0x4ef9da,_0x1fe388){var _0x196e2e=_0x1fe2ff;_0x418287[_0x196e2e('0x26b2')]({'controller':_0x196e2e('0x1238'),'controllerAs':'vm','templateUrl':_0x32462e,'parent':angular[_0x196e2e('0x24a1')](_0x2ed5c7[_0x196e2e('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x1fe388,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})[_0x196e2e('0xe19')](function(_0x19278b){var _0x432822=_0x196e2e;if(_0x19278b){if(_0x19278b[_0x432822('0x27e8')]&&_0x19278b['message']['savedAsDraft']){var _0x3e8b6c={'channel':_0x432822('0xaf2'),'account':_0x1fe388,'message':_0x19278b[_0x432822('0x27e8')],'contact':_0x19278b[_0x432822('0xd9a')]};_0x5c6d83[_0x432822('0xaf8')](_0x3e8b6c);}else{var _0xbbe180=_0x19278b;return _0x31bfab[_0x432822('0x1a7')][_0x432822('0x1ee')]({'id':_0x1fe388['id']},_0xbbe180)['$promise'][_0x432822('0xe19')](function(_0x16084f){var _0x396be4=_0x432822;_0x2d6481[_0x396be4('0x425')]({'title':_0x396be4('0x1c0d'),'msg':_0x396be4('0x2714')}),_0x5e0f95[_0x396be4('0x5cf')]['vm'][_0x396be4('0xa31')](_0x396be4('0xaf2'),_0x16084f);})['catch'](function(_0x12480c){var _0x156971=_0x432822;if(_0x12480c[_0x156971('0x11d0')]&&_0x12480c['data'][_0x156971('0xcd2')]&&_0x12480c[_0x156971('0x11d0')][_0x156971('0xcd2')]['length'])for(var _0x14aa1c=0x0;_0x14aa1c<_0x12480c[_0x156971('0x11d0')][_0x156971('0xcd2')][_0x156971('0x25ae')];_0x14aa1c++){_0x2d6481['error']({'title':_0x12480c[_0x156971('0x11d0')][_0x156971('0xcd2')][_0x14aa1c][_0x156971('0x62e')],'msg':_0x12480c[_0x156971('0x11d0')][_0x156971('0xcd2')][_0x14aa1c][_0x156971('0x27e8')]});}else _0x2d6481['error']({'title':_0x12480c['status']?_0x156971('0x27f2')+_0x12480c[_0x156971('0x2833')]+'\x20-\x20'+_0x12480c[_0x156971('0x1fd7')]:'OPENCHANNELACCOUNT:SEND','msg':_0x12480c[_0x156971('0x11d0')]?JSON[_0x156971('0x3ad')](_0x12480c[_0x156971('0x11d0')][_0x156971('0x27e8')]):_0x12480c[_0x156971('0x27e8')]||_0x12480c['toString']()});});}}});}function _0x1779a4(_0x332de1){var _0x2390c8=_0x1fe2ff,_0x2d4456,_0x19dc90=_0x32d445()[_0x2390c8('0xf15')](_0x212f3f['openchannelInteractions'][_0x2390c8('0x16a7')],{'id':_0x332de1['OpenchannelInteractionId']});_0x19dc90&&_0x19dc90[_0x2390c8('0x970')]&&(_0x2d4456=_0x32d445()[_0x2390c8('0xf15')](_0x19dc90[_0x2390c8('0x970')],{'id':_0x332de1['UserId']}),!_0x2d4456&&_0x19dc90[_0x2390c8('0x970')]['push']({'id':_0x332de1[_0x2390c8('0x43d')]}));}function _0xd15a4e(_0x1a418a){var _0x1e033a=_0x1fe2ff,_0x2c0082=_0x32d445()[_0x1e033a('0xf15')](_0x212f3f[_0x1e033a('0x1e27')][_0x1e033a('0x16a7')],{'id':_0x1a418a[_0x1e033a('0x189')]});_0x2c0082&&_0x2c0082[_0x1e033a('0x970')]&&_0x32d445()[_0x1e033a('0xa8b')](_0x2c0082[_0x1e033a('0x970')],{'id':_0x1a418a[_0x1e033a('0x43d')]});}function _0x3a0cc5(_0x35abdb){var _0x1e429e=_0x1fe2ff;if(_0x35abdb){var _0x2af20c=_0x32d445()[_0x1e429e('0xf15')](_0x212f3f['openchannelInteractions'][_0x1e429e('0x16a7')],{'id':_0x35abdb['id']});if(_0x2af20c){_0x2af20c['Users']=[];_0x35abdb[_0x1e429e('0x1835')]&&(_0x2af20c[_0x1e429e('0x98d')]=0x0);if(_0x212f3f[_0x1e429e('0xa16')][_0x1e429e('0x9f6')]){var _0x52326a=_0x32d445()[_0x1e429e('0x20b6')](_0x212f3f[_0x1e429e('0xa16')][_0x1e429e('0x9f6')],'-')?'desc':_0x1e429e('0x1564');_0x212f3f[_0x1e429e('0x1e27')][_0x1e429e('0x16a7')]=_0x32d445()[_0x1e429e('0x10e')](_0x212f3f['openchannelInteractions'][_0x1e429e('0x16a7')],_0x32d445()[_0x1e429e('0x1cd0')](_0x212f3f[_0x1e429e('0xa16')][_0x1e429e('0x9f6')],'-'),_0x52326a);}_0x32d445()[_0x1e429e('0x1d8')](_0x2af20c,_0x32d445()[_0x1e429e('0xed5')](_0x35abdb,_0x32d445()[_0x1e429e('0x1234')](_0x2af20c)));}else _0x13b544(_0x212f3f[_0x1e429e('0xa16')]['page']);}}function _0x591484(_0x506993){var _0x35e003=_0x1fe2ff;if(_0x506993){var _0x5c0c1c=_0x32d445()[_0x35e003('0xf15')](_0x212f3f[_0x35e003('0x1e27')][_0x35e003('0x16a7')],{'id':_0x506993['id']});_0x5c0c1c&&(_0x5c0c1c[_0x35e003('0x1e7b')]=_0x506993['tags']||[],_0x32d445()[_0x35e003('0x1d8')](_0x5c0c1c,_0x32d445()[_0x35e003('0xed5')](_0x506993,_0x32d445()[_0x35e003('0x1234')](_0x5c0c1c))));}}function _0x5e4096(_0x4aa861){var _0x4e7e77=_0x1fe2ff;if(_0x4aa861&&!_0x4aa861[_0x4e7e77('0x17d9')]){var _0x27c3cb=_0x32d445()[_0x4e7e77('0xf15')](_0x212f3f[_0x4e7e77('0x1e27')][_0x4e7e77('0x16a7')],{'id':_0x4aa861[_0x4e7e77('0x189')]});if(_0x27c3cb){var _0x2e411e=_0x32d445()[_0x4e7e77('0xf15')](_0x27c3cb[_0x4e7e77('0x1e63')],{'id':_0x4aa861['id']});_0x2e411e?_0x32d445()[_0x4e7e77('0x1d8')](_0x2e411e,_0x32d445()[_0x4e7e77('0xed5')](_0x4aa861,_0x32d445()[_0x4e7e77('0x1234')](_0x2e411e))):(_0x32d445()[_0x4e7e77('0xe44')](_0x27c3cb[_0x4e7e77('0x1e63')])&&(_0x27c3cb['Messages']={'count':0x0}),!_0x4aa861[_0x4e7e77('0x1a6e')]&&(_0x27c3cb[_0x4e7e77('0x1e63')]['count']+=0x1));}}}function _0x14734f(){_0x212f3f['isSearchBarVisible']=![];}function _0x14092c(){var _0x55da30=_0x1fe2ff;_0x212f3f[_0x55da30('0x1a1d')]=!![];}function _0x34a247(){var _0x3b06d3=_0x1fe2ff;_0x212f3f['isSearchBarVisible']=![],_0x418287[_0x3b06d3('0x26b2')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x3b06d3('0x24a1')](_0x2ed5c7[_0x3b06d3('0x19b2')]),'clickOutsideToClose':![],'locals':{'color':_0x212f3f[_0x3b06d3('0x1231')],'fields':_0x212f3f[_0x3b06d3('0x164')][_0x3b06d3('0x1d17')],'storagePath':_0x3b06d3('0x1c6')},'fullscreen':!![]})[_0x3b06d3('0xe19')](function(_0x2840a8){var _0x55264e=_0x3b06d3;_0x212f3f[_0x55264e('0xa16')]['search']=_0x2840a8===![]?undefined:_0x2840a8;if(_0x212f3f[_0x55264e('0xa16')][_0x55264e('0x1cc8')]||_0x2840a8===![])_0x13b544();})[_0x3b06d3('0x223b')](function(_0x1a6961){var _0x13c732=_0x3b06d3;_0x2d6481[_0x13c732('0x8c8')]({'title':_0x13c732('0x71e'),'msg':_0x1a6961[_0x13c732('0x11d0')]?JSON[_0x13c732('0x3ad')](_0x1a6961[_0x13c732('0x11d0')][_0x13c732('0x27e8')]):_0x1a6961['toString']()});});}var _0x58ed32=!![],_0x5ad25f=0x1;_0x5e0f95['$watch'](_0x1fe2ff('0x20cb'),function(_0x3e1001,_0x3760ee){var _0x4c405a=_0x1fe2ff;_0x58ed32?_0x2c3a14(function(){_0x58ed32=![];}):(!_0x3760ee&&(_0x5ad25f=_0x212f3f[_0x4c405a('0xa16')][_0x4c405a('0xc08')]),_0x3e1001!==_0x3760ee&&(_0x212f3f['query'][_0x4c405a('0xc08')]=0x1),!_0x3e1001&&(_0x212f3f[_0x4c405a('0xa16')][_0x4c405a('0xc08')]=_0x5ad25f),_0x13b544(_0x212f3f[_0x4c405a('0xa16')][_0x4c405a('0xc08')]));}),_0x5e0f95[_0x1fe2ff('0xb2b')](_0x1fe2ff('0x5cd'),function(){var _0x588554=_0x1fe2ff;_0x1f3f31[_0x588554('0x2121')](_0x588554('0xa29')),_0x1f3f31['removeAllListeners'](_0x588554('0x171d')),_0x1f3f31[_0x588554('0x2121')]('openchannelInteraction:save'),_0x1f3f31['removeAllListeners'](_0x588554('0x2f0')),_0x1f3f31[_0x588554('0x2121')](_0x588554('0x16e1')),_0x1f3f31[_0x588554('0x2121')](_0x588554('0x1bf0')),_0x1f3f31[_0x588554('0x2121')]('user_has_openchannel_interactions:remove');});}const _0x45258e=_0x5f83c2;_0x3c8c66[_0xb635d2('0xb0c')]=[_0xb635d2('0x1728'),_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$stateParams','$sce',_0xb635d2('0x2730')];function _0x3c8c66(_0x20fcf5,_0x43ba2e,_0x3641dd,_0x4ec3a9,_0x1fa04b,_0x20c04c,_0x22522a){var _0x5517da=_0xb635d2,_0x5ba89b=this;_0x5ba89b[_0x5517da('0x15a5')]=_0x22522a['getCurrentUser'](),_0x5ba89b['plugin']={};function _0x32fb0a(_0x258978,_0x43d8f7,_0x2e67b3){var _0x12b726=_0x5517da;_0x5ba89b['license']=_0x258978,_0x5ba89b[_0x12b726('0x22f1')]=_0x43d8f7,_0x5ba89b[_0x12b726('0x17f2')]=_0x2e67b3;}function _0x509212(){var _0x4cb67a=_0x5517da;return _0x20c04c[_0x4cb67a('0x405')](_0x5ba89b['plugin'][_0x4cb67a('0x776')]);}_0x43ba2e[_0x5517da('0xb2b')]('pluginUpdated',function(_0x3d4116,_0x272e9f){var _0x29f5f8=_0x5517da;_0x5ba89b['plugin']=_0x272e9f[_0x29f5f8('0x17f2')];}),_0x5ba89b[_0x5517da('0x888')]=_0x32fb0a,_0x5ba89b[_0x5517da('0x88b')]=_0x509212,_0x32fb0a();}const _0x16df1a=_0x3c8c66;_0x4bb272['$inject']=['$scope',_0xb635d2('0x2400'),_0xb635d2('0x1a0b'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x4bb272(_0x49b28f,_0x5a74b6,_0x471e76,_0x5a0fd6,_0x44e00a,_0x1a0b89){var _0x5b4fec=_0xb635d2,_0x518c38=this;_0x518c38[_0x5b4fec('0x15a5')]=_0x1a0b89[_0x5b4fec('0x1ef8')](),_0x518c38[_0x5b4fec('0xe61')]={},_0x518c38[_0x5b4fec('0x19b6')]=_0x5b4fec('0xe61'),_0x518c38[_0x5b4fec('0xa16')]={'UserId':_0x518c38[_0x5b4fec('0x15a5')]['id'],'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribeStatus,UserId','sort':_0x5b4fec('0x7e8'),'limit':0xa,'page':0x1,'type':null},_0x518c38[_0x5b4fec('0xeb4')]=_0x65f6c6,_0x518c38[_0x5b4fec('0x672')]=_0x2993cf,_0x518c38[_0x5b4fec('0x425')]=_0x5715a5,_0x518c38[_0x5b4fec('0x28b4')]=_0x5cdebe,_0x518c38[_0x5b4fec('0x888')]=_0x1f56d8,_0x518c38[_0x5b4fec('0x1987')]=_0x5b868b,_0x518c38[_0x5b4fec('0x2846')]=_0x1a2982;function _0x1f56d8(){var _0x476015=_0x5b4fec;_0x518c38[_0x476015('0x1fd3')]=_0x31252a();var _0x2d344f=_0x5a74b6[_0x476015('0x4f9')][_0x476015('0x2208')](_0x476015('0x2886')+_0x518c38[_0x476015('0x15a5')]['id']);if(_0x2d344f)try{_0x2d344f=JSON['parse'](_0x2d344f),_0x2d344f[_0x476015('0xa16')]&&(_0x518c38[_0x476015('0xa16')]=_0x32d445()[_0x476015('0x23e3')](_0x2d344f[_0x476015('0xa16')],[_0x476015('0x2891'),'id']),_0x518c38[_0x476015('0xa16')][_0x476015('0x1d17')]=_0x476015('0x18a4'),_0x518c38[_0x476015('0xa16')]['UserId']=_0x518c38[_0x476015('0x15a5')]['id']);}catch(_0x216a1c){console['error'](_0x216a1c);}else{var _0x35e1d9={'$gte':_0x4ddcaa()()[_0x476015('0x21b1')]('month')[_0x476015('0x1e9e')](0x0,!![])[_0x476015('0x5e5')](),'$lte':_0x4ddcaa()()[_0x476015('0x270')](_0x476015('0x211c'))[_0x476015('0x1e9e')](0x0,!![])[_0x476015('0x5e5')]()};_0x518c38[_0x476015('0xa16')]['createdAt']=_0x35e1d9;}_0x518c38[_0x476015('0x1a1d')]=_0x518c38[_0x476015('0xa16')][_0x476015('0x2891')]?!![]:![],_0x518c38[_0x476015('0x28b4')]();}function _0x65f6c6(_0x3dc609){var _0x5de662=_0x5b4fec;return _0x5a0fd6[_0x5de662('0x1a1e')]['download']({'id':_0x3dc609['id'],'exists':!![]})[_0x5de662('0xe59')]['then'](function(_0xabb6d5){var _0x49db7c=_0x5de662,_0x1d7393=[_0xabb6d5['buffer']],_0x4ce48e=new Blob(_0x1d7393,{'type':_0xabb6d5[_0x49db7c('0x62e')]}),_0xf6bffc=window['document']['createElement']('a');_0xf6bffc[_0x49db7c('0xede')](_0x49db7c('0xcb7'),URL['createObjectURL'](_0x4ce48e)),_0xf6bffc[_0x49db7c('0xede')](_0x49db7c('0x1d1e'),_0x3dc609[_0x49db7c('0x1a6c')]+_0x3dc609[_0x49db7c('0x5e5')]),_0xf6bffc[_0x49db7c('0xfe7')]();})[_0x5de662('0x223b')](function(_0x1fe5cf){var _0x5c1cb3=_0x5de662;_0x44e00a['error']({'title':_0x1fe5cf[_0x5c1cb3('0x2833')]?'API:'+_0x1fe5cf[_0x5c1cb3('0x2833')]+'\x20-\x20'+_0x1fe5cf[_0x5c1cb3('0x1fd7')]:_0x5c1cb3('0x215f'),'msg':_0x1fe5cf[_0x5c1cb3('0x11d0')]?JSON[_0x5c1cb3('0x3ad')](_0x1fe5cf[_0x5c1cb3('0x11d0')]):_0x1fe5cf['toString']()});});}function _0x2993cf(_0x37bb14){var _0x79dbfb=_0x5b4fec;return _0x5a0fd6[_0x79dbfb('0x1a1e')][_0x79dbfb('0x2125')]({'id':_0x37bb14['id']})[_0x79dbfb('0xe59')][_0x79dbfb('0xe19')](function(_0x5b6635){var _0x1b7eba=_0x79dbfb,_0x3c5e98=[_0x5b6635[_0x1b7eba('0x17ab')]],_0x818a78=_0x1b7eba('0x1d1e'),_0x4ad4a9=new Blob(_0x3c5e98,{'type':_0x5b6635[_0x1b7eba('0x62e')]});_0x818a78=_0x37bb14[_0x1b7eba('0x1a6c')];var _0x5a0c3a=window[_0x1b7eba('0x18fa')][_0x1b7eba('0x9a1')]('a');_0x5a0c3a[_0x1b7eba('0xede')](_0x1b7eba('0xcb7'),URL[_0x1b7eba('0x1360')](_0x4ad4a9)),_0x5a0c3a[_0x1b7eba('0xede')](_0x1b7eba('0x1d1e'),_0x818a78),document[_0x1b7eba('0x19b2')][_0x1b7eba('0x1d13')](_0x5a0c3a),_0x5a0c3a[_0x1b7eba('0xfe7')]();})[_0x79dbfb('0x223b')](function(_0x1b625d){var _0xac0f56=_0x79dbfb;_0x44e00a[_0xac0f56('0x8c8')]({'title':_0x1b625d['status']?'API:'+_0x1b625d[_0xac0f56('0x2833')]+_0xac0f56('0x1b7c')+_0x1b625d[_0xac0f56('0x1fd7')]:_0xac0f56('0x215f'),'msg':_0x1b625d[_0xac0f56('0x11d0')]?JSON[_0xac0f56('0x3ad')](_0x1b625d[_0xac0f56('0x11d0')]):_0x1b625d[_0xac0f56('0x94f')]()});});}function _0x31252a(){var _0x16fbe8=_0x5b4fec;return[{'name':'Start\x20Date','key':_0x16fbe8('0x15c9'),'type':_0x16fbe8('0xf6d'),'label':_0x16fbe8('0x19b7')},{'name':'Type','key':'type','type':_0x16fbe8('0x2e6'),'label':'VOICE.SELECT_TYPE','customOptions':[{'value':_0x16fbe8('0x1b66'),'translate':'VOICE.INTERNAL'},{'value':_0x16fbe8('0x1a7a'),'translate':_0x16fbe8('0xc2b')},{'value':_0x16fbe8('0x1fdf'),'translate':_0x16fbe8('0x287f')},{'value':_0x16fbe8('0x5d'),'translate':'VOICE.DIALER'},{'value':null,'translate':_0x16fbe8('0xc1b')}]}];}function _0x5715a5(_0x129fc6){var _0x357adf=_0x5b4fec;_0x518c38[_0x357adf('0xcfc')]=![],_0x518c38['voiceRecordings']=_0x129fc6||{'count':0x0,'rows':[]};}function _0x5cdebe(){var _0x59a8cf=_0x5b4fec;_0x518c38[_0x59a8cf('0xcfc')]=!![],_0x518c38[_0x59a8cf('0xa16')][_0x59a8cf('0xab0')]=(_0x518c38[_0x59a8cf('0xa16')][_0x59a8cf('0xc08')]-0x1)*_0x518c38['query'][_0x59a8cf('0x1b6d')];var _0x3ae4ab={'query':_0x518c38[_0x59a8cf('0xa16')]};_0x5a74b6[_0x59a8cf('0x4f9')][_0x59a8cf('0x95e')](_0x59a8cf('0x2886')+_0x518c38[_0x59a8cf('0x15a5')]['id'],JSON[_0x59a8cf('0x3ad')](_0x3ae4ab)),_0x518c38[_0x59a8cf('0x9c8')]=_0x5a0fd6[_0x59a8cf('0x1a1e')][_0x59a8cf('0x22d5')](_0x518c38[_0x59a8cf('0xa16')],_0x5715a5)['$promise'];}function _0x5b868b(){var _0x20322d=_0x5b4fec;_0x518c38['query'][_0x20322d('0x2891')]=undefined,_0x518c38[_0x20322d('0x1a1d')]=![];}function _0x1a2982(){var _0x14fd49=_0x5b4fec;_0x518c38[_0x14fd49('0x1a1d')]=!![];}var _0x5ce187=!![],_0xb005cc=0x1;_0x49b28f[_0x5b4fec('0x107')]('vm.query.filter',function(_0x160d96,_0x17bcf6){var _0x5ce482=_0x5b4fec;_0x5ce187?_0x471e76(function(){_0x5ce187=![];}):(!_0x17bcf6&&(_0xb005cc=_0x518c38[_0x5ce482('0xa16')]['page']),_0x160d96!==_0x17bcf6&&(_0x518c38[_0x5ce482('0xa16')][_0x5ce482('0xc08')]=0x1),!_0x160d96&&(_0x518c38[_0x5ce482('0xa16')]['page']=_0xb005cc),_0x518c38[_0x5ce482('0x28b4')]());});}const _0x25f12f=_0x4bb272,_0xd9ffbb=_0x59426a['p']+_0xb635d2('0xff2');_0x5236d7[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x5236d7(_0x551e0f,_0x49ab85,_0x5171ec,_0x132ae6,_0x4d76ce,_0x3393a9,_0x291b40,_0x2720f8){var _0x38d050=_0xb635d2,_0x3654e4=this;_0x3654e4[_0x38d050('0x15a5')]=_0x2720f8[_0x38d050('0x1ef8')](),_0x3654e4[_0x38d050('0x1872')]=[_0x38d050('0x1618'),'Low','Medium',_0x38d050('0x239c'),_0x38d050('0x18fc')],_0x3654e4[_0x38d050('0xb3d')]={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x3654e4[_0x38d050('0x255f')]={},_0x3654e4[_0x38d050('0xa16')]={'id':_0x3654e4[_0x38d050('0x15a5')]['id'],'fields':_0x38d050('0x24ed'),'sort':_0x38d050('0x50e'),'limit':0xa,'page':0x1},_0x3654e4[_0x38d050('0x1fac')]={'rows':[],'count':0x0},_0x3654e4[_0x38d050('0x425')]=_0x1d19fd,_0x3654e4[_0x38d050('0x1f2f')]=_0x2aa8cc,_0x3654e4[_0x38d050('0x888')]=_0x2f791f,_0x3654e4[_0x38d050('0x10c0')]=_0x507eaa,_0x3654e4[_0x38d050('0x2073')]=_0x337098,_0x3654e4[_0x38d050('0x126c')]=_0xfe2fa;function _0x2f791f(){var _0x581ec0=_0x38d050;_0x291b40[_0x581ec0('0x10c6')][_0x581ec0('0x23cf')]({'id':_0x2720f8[_0x581ec0('0x1ef8')]()['id'],'fields':_0x581ec0('0x104'),'channel':_0x581ec0('0xe74'),'type':_0x581ec0('0x1fdf'),'nolimit':!![]})['$promise'][_0x581ec0('0xe19')](function(_0x15ad81){var _0x551bc8=_0x581ec0;_0x3654e4[_0x551bc8('0x1fac')]=_0x15ad81||{'count':0x0,'rows':[]};})[_0x581ec0('0xe19')](function(){var _0x45d1c9=_0x581ec0;_0x3654e4[_0x45d1c9('0x1fd3')]=_0x3babab();})[_0x581ec0('0x223b')](function(_0x10a3f2){var _0x19f5fb=_0x581ec0;console[_0x19f5fb('0x8c8')](_0x10a3f2);})[_0x581ec0('0x23')](function(){var _0x52bf24=_0x581ec0,_0x219e80=_0x49ab85['localStorage'][_0x52bf24('0x2208')](_0x52bf24('0xcfb')+_0x3654e4[_0x52bf24('0x15a5')]['id']);if(_0x219e80)try{_0x219e80=JSON[_0x52bf24('0x118e')](_0x219e80),_0x219e80[_0x52bf24('0xa16')]&&(_0x3654e4['query']=_0x32d445()[_0x52bf24('0x23e3')](_0x219e80[_0x52bf24('0xa16')],[_0x52bf24('0x2891')]));}catch(_0x3baf93){console[_0x52bf24('0x8c8')](_0x3baf93);}else{var _0x576b86={'$gte':_0x4ddcaa()()[_0x52bf24('0x21b1')](_0x52bf24('0x211c'))[_0x52bf24('0x1e9e')](0x0,!![])[_0x52bf24('0x5e5')](),'$lte':_0x4ddcaa()()['endOf'](_0x52bf24('0x211c'))[_0x52bf24('0x1e9e')](0x0,!![])[_0x52bf24('0x5e5')]()};_0x3654e4[_0x52bf24('0xa16')]['createdAt']=_0x576b86;}_0x3654e4[_0x52bf24('0x1f2f')]();});}function _0x1d19fd(_0x434408){var _0x1933e3=_0x38d050;_0x3654e4['searchInProgress']=![],_0x3654e4[_0x1933e3('0x255f')]=_0x434408||{'count':0x0,'rows':[]};}function _0x3babab(){var _0x21f5ae=_0x38d050;return[{'name':_0x21f5ae('0x141d'),'key':_0x21f5ae('0x15c9'),'type':_0x21f5ae('0xf6d'),'label':_0x21f5ae('0x19b7')},{'name':_0x21f5ae('0x2588'),'key':'VoiceQueueId','type':_0x21f5ae('0x19a0'),'label':'MOTIONDIALER.SELECT_CAMPAIGN','options':_0x3654e4['queueCampaigns'][_0x21f5ae('0x16a7')]}];}function _0x2aa8cc(){var _0x38afb4=_0x38d050;_0x3654e4[_0x38afb4('0xcfc')]=!![],_0x3654e4[_0x38afb4('0xa16')]['id']=_0x3654e4[_0x38afb4('0x15a5')]['id'],_0x3654e4[_0x38afb4('0xa16')]['includeAll']=!![],_0x3654e4[_0x38afb4('0xa16')]['offset']=(_0x3654e4[_0x38afb4('0xa16')]['page']-0x1)*_0x3654e4[_0x38afb4('0xa16')]['limit'];var _0x2ac241={'query':_0x3654e4[_0x38afb4('0xa16')]};_0x49ab85[_0x38afb4('0x4f9')]['setItem']('motion2.home.scheduled:'+_0x3654e4[_0x38afb4('0x15a5')]['id'],JSON[_0x38afb4('0x3ad')](_0x2ac241)),_0x3654e4['promise']=_0x291b40['user'][_0x38afb4('0x1f2f')](_0x3654e4[_0x38afb4('0xa16')],_0x1d19fd)[_0x38afb4('0xe59')];}function _0x337098(_0x27440e,_0x88fb40){var _0x4b89e9=_0x38d050;_0x132ae6[_0x4b89e9('0x26b2')]({'controller':_0x4b89e9('0x726'),'controllerAs':'vm','templateUrl':_0xd9ffbb,'parent':angular['element'](_0x4d76ce[_0x4b89e9('0x19b2')]),'targetEvent':_0x27440e,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x88fb40,'hoppers':_0x3654e4['scheduledCalls'][_0x4b89e9('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x3654e4[_0x4b89e9('0xb3d')]}});}function _0x341942(_0x15fe84){var _0x228ecd=_0x38d050;_0x291b40['cmHopper']['delete']({'id':_0x15fe84['id']})[_0x228ecd('0xe59')]['then'](function(){var _0x4e26f2=_0x228ecd;_0x32d445()[_0x4e26f2('0xa8b')](_0x3654e4[_0x4e26f2('0x255f')][_0x4e26f2('0x16a7')],{'id':_0x15fe84['id']}),_0x3654e4[_0x4e26f2('0x255f')]['count']-=0x1,!_0x3654e4[_0x4e26f2('0x255f')][_0x4e26f2('0x16a7')][_0x4e26f2('0x25ae')]&&_0x3654e4[_0x4e26f2('0x1f2f')](),_0x3393a9[_0x4e26f2('0x425')]({'title':'Scheduled\x20call\x20deleted!','msg':_0x15fe84[_0x4e26f2('0x2623')]?_0x4e26f2('0x1ce6'):''});})[_0x228ecd('0x223b')](function(_0x5bf311){var _0x1de295=_0x228ecd;if(_0x5bf311[_0x1de295('0x11d0')]&&_0x5bf311[_0x1de295('0x11d0')][_0x1de295('0xcd2')]&&_0x5bf311['data'][_0x1de295('0xcd2')]['length']){_0x3654e4[_0x1de295('0xcd2')]=_0x5bf311[_0x1de295('0x11d0')]['errors']||[{'message':_0x5bf311[_0x1de295('0x94f')](),'type':_0x1de295('0x1627')}];for(var _0x2ac5a5=0x0;_0x2ac5a5<_0x5bf311[_0x1de295('0x11d0')][_0x1de295('0xcd2')][_0x1de295('0x25ae')];_0x2ac5a5++){_0x3393a9['error']({'title':_0x5bf311['data'][_0x1de295('0xcd2')][_0x2ac5a5]['type'],'msg':_0x5bf311['data'][_0x1de295('0xcd2')][_0x2ac5a5][_0x1de295('0x27e8')]});}}else _0x3393a9['error']({'title':_0x5bf311[_0x1de295('0x2833')]?_0x1de295('0x27f2')+_0x5bf311['status']+'\x20-\x20'+_0x5bf311[_0x1de295('0x1fd7')]:'SYSTEM:DELETE_HOPPER','msg':_0x5bf311[_0x1de295('0x11d0')]?JSON[_0x1de295('0x3ad')](_0x5bf311[_0x1de295('0x11d0')][_0x1de295('0x27e8')]):_0x5bf311[_0x1de295('0x27e8')]||_0x5bf311[_0x1de295('0x94f')]()});});}function _0xfe2fa(_0x25a358,_0x5ebf6f){var _0xb88bd9=_0x38d050,_0x43844c=_0x132ae6[_0xb88bd9('0xa5')]()[_0xb88bd9('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20scheduled\x20call?')['htmlContent']('Scheduled\x20call'+_0xb88bd9('0x21bd'))[_0xb88bd9('0x4d1')](_0xb88bd9('0x2da'))['targetEvent'](_0x5ebf6f)['ok']('OK')[_0xb88bd9('0x2c1')](_0xb88bd9('0x17'));_0x132ae6[_0xb88bd9('0x26b2')](_0x43844c)[_0xb88bd9('0xe19')](function(){_0x341942(_0x25a358);},function(){console['log']('CANCEL');});}function _0x507eaa(_0x279abf){var _0x49f6f9=_0x38d050;return _0x4ddcaa()(_0x279abf)[_0x49f6f9('0x15e6')](_0x4ddcaa()());}var _0x18379d=!![],_0x359bad=0x1;_0x551e0f[_0x38d050('0x107')](_0x38d050('0x20cb'),function(_0x1d118f,_0x4f3b23){var _0x2d2dfa=_0x38d050;_0x18379d?_0x5171ec(function(){_0x18379d=![];}):(!_0x4f3b23&&(_0x359bad=_0x3654e4[_0x2d2dfa('0xa16')][_0x2d2dfa('0xc08')]),_0x1d118f!==_0x4f3b23&&(_0x3654e4[_0x2d2dfa('0xa16')]['page']=0x1),!_0x1d118f&&(_0x3654e4[_0x2d2dfa('0xa16')][_0x2d2dfa('0xc08')]=_0x359bad),_0x3654e4[_0x2d2dfa('0x1f2f')]());});}const _0xb5e0d7=_0x5236d7;_0x1eb47f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x2400'),_0xb635d2('0x2493'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x46d'),'toasty',_0xb635d2('0x1a90')];function _0x1eb47f(_0x1b5937,_0x135783,_0x1fbd88,_0x3bc5d1,_0x1c65c6,_0x2ce323,_0x46ae94,_0x275ff8,_0xdf2f4d,_0x2f4fc2,_0x3706c5){var _0x1fb846=_0xb635d2,_0x3fc792=this;_0x3fc792[_0x1fb846('0x10c6')]=_0x275ff8[_0x1fb846('0x1ef8')](),_0x3fc792[_0x1fb846('0x5c1')]={},_0x3fc792[_0x1fb846('0x22f1')]={},_0x3fc792[_0x1fb846('0x1105')]={'count':0x0,'rows':[]},_0x3fc792[_0x1fb846('0x2708')]={'count':0x0,'rows':[]},_0x3fc792[_0x1fb846('0xa16')]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x3fc792[_0x1fb846('0x164')]={'fields':[{'name':'Id','column':'id','type':_0x1fb846('0x1c60')},{'name':'Contact','column':_0x1fb846('0x1286'),'type':'autocomplete','options':{'searchFields':[_0x1fb846('0x2566'),_0x1fb846('0x151f'),_0x1fb846('0x1211')],'route':{'model':_0x1fb846('0x1711'),'action':_0x1fb846('0x22d5'),'params':{'fields':_0x1fb846('0x75'),'Contact':_0x1fb846('0x217d'),'nolimit':!![]}},'extraOperators':[_0x1fb846('0x1247')],'excludedOperators':[_0x1fb846('0x1f51')]}},{'name':_0x1fb846('0x750'),'column':_0x1fb846('0x19b2'),'type':_0x1fb846('0x1bc6'),'options':{'excludedOperators':[_0x1fb846('0x1d15'),_0x1fb846('0x1f51')]}},{'name':'Status','column':_0x1fb846('0x1835'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x1fb846('0x1bbb')}],'options':{'excludedOperators':[_0x1fb846('0x1f51')]}},{'name':_0x1fb846('0x142e'),'column':'User','type':'autocomplete','options':{'table':'i','route':{'model':_0x1fb846('0x10c6'),'action':'get','params':{'role':_0x1fb846('0x108'),'fields':_0x1fb846('0x194c'),'nolimit':!![]}},'searchFields':[_0x1fb846('0xe11'),'name'],'extraOperators':[_0x1fb846('0x1247')],'excludedOperators':[_0x1fb846('0x1f51')]}},{'name':_0x1fb846('0x1e4e'),'column':_0x1fb846('0x26a9'),'type':_0x1fb846('0x19a0'),'options':{'route':{'model':_0x1fb846('0x10c6'),'action':_0x1fb846('0x1847'),'params':{'id':_0x3fc792[_0x1fb846('0x10c6')]['id'],'nolimit':!![]}}}},{'name':_0x1fb846('0x1e7b'),'column':'Tag','type':'multiselect','options':{'route':{'model':_0x1fb846('0x2037'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x1fb846('0x19a3')]}},{'name':_0x1fb846('0x141d'),'column':'createdAt','type':_0x1fb846('0xf6d'),'options':{'excludedOperators':[_0x1fb846('0x1f51')]}},{'name':'Read','column':_0x1fb846('0x98d'),'type':_0x1fb846('0x2e6'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x1fb846('0x1f51')]}}]},_0x3fc792[_0x1fb846('0x1231')]='orange',_0x3fc792[_0x1fb846('0x888')]=_0x1b665f,_0x3fc792[_0x1fb846('0x425')]=_0x53a652,_0x3fc792['getSmsInteractions']=_0x8d6b08,_0x3fc792[_0x1fb846('0xfa3')]=_0x282510,_0x3fc792[_0x1fb846('0x775')]=_0x55f62d,_0x3fc792['disposeInteraction']=_0x50bbaf,_0x3fc792[_0x1fb846('0x224d')]=_0x107370,_0x3fc792[_0x1fb846('0x861')]=_0x52ed45,_0x3fc792[_0x1fb846('0x1df4')]=_0x403e0c,_0x3fc792['composeSmsInteraction']=_0x1758d6,_0x3fc792[_0x1fb846('0x1987')]=_0x39e20d,_0x3fc792['onSearchBarExpand']=_0x3a1b42,_0x3fc792['openAdvancedSearch']=_0x10c708;function _0x1b665f(_0x444394,_0x5d20d5){var _0x22a520=_0x1fb846;return _0x3fc792[_0x22a520('0x5c1')]=_0x444394,_0x3fc792['setting']=_0x5d20d5,_0x46ae94[_0x22a520('0x10c6')]['get'+_0x32d445()['upperFirst'](_0x22a520('0x25db'))]({'id':_0x3fc792[_0x22a520('0x10c6')]['id'],'nolimit':!![]})[_0x22a520('0xe59')][_0x22a520('0xe19')](function(_0x56c296){var _0x2266dc=_0x22a520;return _0x3fc792[_0x2266dc('0x25db')]=_0x56c296||{'count':0x0,'rows':[]},_0x46ae94[_0x2266dc('0x2037')]['get']()[_0x2266dc('0xe59')];})[_0x22a520('0xe19')](function(_0x40d8e9){var _0x1671f9=_0x22a520;_0x3fc792[_0x1671f9('0x1105')]=_0x40d8e9||{'count':0x0,'rows':[]};})[_0x22a520('0xe19')](function(){var _0x3c4294=_0x22a520;_0x3fc792[_0x3c4294('0x1fd3')]=_0x253ec3();})['catch'](function(_0x33414e){var _0x27d407=_0x22a520;console[_0x27d407('0x8c8')](_0x33414e);})['finally'](function(){var _0x1ae388=_0x22a520,_0x433280=_0x1c65c6[_0x1ae388('0x4f9')][_0x1ae388('0x2208')](_0x1ae388('0x13bd')+_0x3fc792['user']['id']);if(_0x433280)try{_0x433280=JSON[_0x1ae388('0x118e')](_0x433280);if(_0x433280[_0x1ae388('0xa16')]){_0x3fc792[_0x1ae388('0xa16')]=_0x32d445()['merge'](_0x3fc792[_0x1ae388('0xa16')],_0x433280[_0x1ae388('0xa16')]);if(_0x32d445()[_0x1ae388('0x14b4')](_0x3fc792[_0x1ae388('0x25db')][_0x1ae388('0x16a7')]))_0x3fc792['query'][_0x1ae388('0x26a9')]=[];else _0x32d445()[_0x1ae388('0x14b4')](_0x3fc792[_0x1ae388('0xa16')][_0x1ae388('0x26a9')])&&(_0x3fc792['query'][_0x1ae388('0x26a9')]=_0x32d445()(_0x3fc792[_0x1ae388('0x25db')][_0x1ae388('0x16a7')])['map']('id')['take']()[_0x1ae388('0x2')]());_0x3fc792[_0x1ae388('0xa16')][_0x1ae388('0x9f6')]&&_0x3fc792[_0x1ae388('0xa16')][_0x1ae388('0x9f6')][_0x1ae388('0x281c')]('lastMessage')>=0x0&&(_0x3fc792[_0x1ae388('0xa16')]=_0x32d445()[_0x1ae388('0x23e3')](_0x3fc792[_0x1ae388('0xa16')],_0x1ae388('0x9f6'))),_0x3fc792['query'][_0x1ae388('0xf53')]=!![],_0x3fc792[_0x1ae388('0x1a1d')]=_0x3fc792[_0x1ae388('0xa16')]['filter']?!![]:![];}}catch(_0x2be56c){console[_0x1ae388('0x8c8')](_0x2be56c);}else{var _0x2400ad={'$gte':_0x4ddcaa()()['startOf'](_0x1ae388('0x211c'))[_0x1ae388('0x1e9e')](0x0,!![])[_0x1ae388('0x5e5')](),'$lte':_0x4ddcaa()()[_0x1ae388('0x270')](_0x1ae388('0x211c'))['utcOffset'](0x0,!![])[_0x1ae388('0x5e5')]()},_0x49e34b={'SmsAccountId':_0x32d445()[_0x1ae388('0x65a')](_0x3fc792[_0x1ae388('0x25db')][_0x1ae388('0x16a7')],'id'),'createdAt':_0x2400ad};_0x3fc792[_0x1ae388('0xa16')]=_0x32d445()[_0x1ae388('0x1d8')](_0x3fc792['query'],_0x49e34b);}_0xdf2f4d['on'](_0x1ae388('0x2a1'),_0x3bb3ca),_0xdf2f4d['on']('smsInteraction:update',_0x3bb3ca),_0xdf2f4d['on'](_0x1ae388('0x177a'),_0x4060b3),_0xdf2f4d['on']('smsMessage:save',_0x4af201),_0xdf2f4d['on']('smsMessage:update',_0x4af201),_0xdf2f4d['on'](_0x1ae388('0xf4f'),_0x4a46df),_0xdf2f4d['on']('user_has_sms_interactions:remove',_0x4545b2),_0x8d6b08(_0x3fc792[_0x1ae388('0xa16')][_0x1ae388('0xc08')]);});}function _0x253ec3(){var _0x18d5c1=_0x1fb846;return[{'name':_0x18d5c1('0x141d'),'key':_0x18d5c1('0x15c9'),'type':_0x18d5c1('0xf6d'),'label':_0x18d5c1('0x19b7')},{'name':_0x18d5c1('0x1e63'),'key':_0x18d5c1('0x1a6e'),'type':_0x18d5c1('0x2e6'),'label':_0x18d5c1('0x2738'),'customOptions':[{'value':0x0,'translate':_0x18d5c1('0x10db')},{'value':0x1,'translate':_0x18d5c1('0x3b4')},{'value':null,'translate':_0x18d5c1('0x296')}]},{'name':_0x18d5c1('0x20e'),'key':_0x18d5c1('0x1835'),'type':_0x18d5c1('0x2e6'),'label':_0x18d5c1('0xef5'),'customOptions':[{'value':0x0,'translate':_0x18d5c1('0x1c37')},{'value':0x1,'translate':_0x18d5c1('0x1bbb')},{'value':null,'translate':_0x18d5c1('0x296')}]},{'name':'Account','key':'SmsAccountId','type':_0x18d5c1('0x19a0'),'label':'DASHBOARDS.SELECT_ACCOUNT','options':_0x3fc792[_0x18d5c1('0x25db')]['rows'],'clearAll':![]},{'name':_0x18d5c1('0x142e'),'key':_0x18d5c1('0x43d'),'type':'select','label':_0x18d5c1('0x120c'),'customOptions':[{'value':_0x3fc792[_0x18d5c1('0x10c6')]['id'],'translate':_0x18d5c1('0x132d')},{'value':_0x18d5c1('0x1046'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x18d5c1('0x296')}]},{'name':_0x18d5c1('0x1172'),'key':_0x18d5c1('0x2037'),'type':'multiselect','label':_0x18d5c1('0x23c7'),'options':_0x3fc792['tags'][_0x18d5c1('0x16a7')],'placeholder':_0x18d5c1('0x14ec')}];}function _0x53a652(_0x4862a7){var _0x13d4d8=_0x1fb846;_0x3fc792[_0x13d4d8('0xcfc')]=![],_0x3fc792[_0x13d4d8('0x2708')]=_0x4862a7||{'count':0x0,'rows':[]};for(var _0x3f9e14=0x0;_0x3f9e14<_0x3fc792[_0x13d4d8('0x2708')]['rows']['length'];_0x3f9e14+=0x1){_0x107370(_0x3fc792[_0x13d4d8('0x2708')][_0x13d4d8('0x16a7')][_0x3f9e14]);}}function _0x8d6b08(_0x4b58a5){var _0x23d9bb=_0x1fb846;_0x3fc792['searchInProgress']=!![];!_0x4b58a5&&(_0x3fc792[_0x23d9bb('0xa16')][_0x23d9bb('0xc08')]=0x1);_0x3fc792['query']['offset']=(_0x3fc792['query'][_0x23d9bb('0xc08')]-0x1)*_0x3fc792[_0x23d9bb('0xa16')][_0x23d9bb('0x1b6d')];var _0x6d4bbf=_0x1c65c6[_0x23d9bb('0x4f9')][_0x23d9bb('0x2208')](_0x23d9bb('0x13bd')+_0x3fc792[_0x23d9bb('0x10c6')]['id']);_0x6d4bbf=_0x6d4bbf?JSON['parse'](_0x6d4bbf):{},_0x6d4bbf['query']=_0x3fc792[_0x23d9bb('0xa16')],_0x1c65c6[_0x23d9bb('0x4f9')][_0x23d9bb('0x95e')](_0x23d9bb('0x13bd')+_0x3fc792[_0x23d9bb('0x10c6')]['id'],JSON[_0x23d9bb('0x3ad')](_0x6d4bbf)),_0x3fc792[_0x23d9bb('0x9c8')]=_0x46ae94[_0x23d9bb('0xc1')]['get'](_0x3fc792['query'],_0x53a652)['$promise'];}function _0x282510(_0x791884,_0x436450){var _0x5a3f76=_0x1fb846;_0x1b5937[_0x5a3f76('0x5cf')]['vm'][_0x5a3f76('0xa31')](_0x5a3f76('0x2801'),_0x436450);}function _0x55f62d(_0x58bb1b,_0x351ad5,_0x2dc976){var _0x27f309=_0x1fb846;_0x46ae94[_0x27f309('0xc1')][_0x27f309('0x1d1e')]({'id':_0x351ad5['id'],'attachments':_0x2dc976})[_0x27f309('0xe59')][_0x27f309('0xe19')](function(_0x2010fa){var _0x4b4683=_0x27f309,_0x4c4e99=[_0x2010fa[_0x4b4683('0x17ab')]],_0x3410f5=_0x4b4683('0x1213')+_0x351ad5['id']+_0x4b4683('0x985'),_0x2c2968=new Blob(_0x4c4e99,{'type':_0x2010fa[_0x4b4683('0x62e')]}),_0x4ee031=window[_0x4b4683('0x18fa')][_0x4b4683('0x9a1')]('a');_0x4ee031[_0x4b4683('0xede')]('href',URL[_0x4b4683('0x1360')](_0x2c2968)),_0x4ee031['setAttribute'](_0x4b4683('0x1d1e'),_0x3410f5),document[_0x4b4683('0x19b2')][_0x4b4683('0x1d13')](_0x4ee031),_0x4ee031['click']();})['catch'](function(_0x604fcc){var _0x14431f=_0x27f309;if(_0x604fcc[_0x14431f('0x11d0')]&&_0x604fcc['data'][_0x14431f('0xcd2')]&&_0x604fcc['data']['errors'][_0x14431f('0x25ae')])for(var _0x31ec66=0x0;_0x31ec66<_0x604fcc['data'][_0x14431f('0xcd2')][_0x14431f('0x25ae')];_0x31ec66+=0x1){_0x2f4fc2[_0x14431f('0x8c8')]({'title':_0x604fcc['data'][_0x14431f('0xcd2')][_0x31ec66][_0x14431f('0x62e')],'msg':_0x604fcc[_0x14431f('0x11d0')][_0x14431f('0xcd2')][_0x31ec66][_0x14431f('0x27e8')]});}else _0x2f4fc2['error']({'title':_0x604fcc['status']?'API:'+_0x604fcc['status']+'\x20-\x20'+_0x604fcc[_0x14431f('0x1fd7')]:'downloadSmsInteraction','msg':_0x604fcc[_0x14431f('0x11d0')]?JSON['stringify'](_0x604fcc[_0x14431f('0x11d0')][_0x14431f('0x27e8')]):_0x604fcc['toString']()});});}function _0x50bbaf(_0x2ff34e,_0x498121){var _0x15a876=_0x1fb846,_0x2409fb=_0x3fc792[_0x15a876('0x10c6')][_0x15a876('0x1b8d')]||_0x3fc792[_0x15a876('0x10c6')][_0x15a876('0x1b15')]||_0x3fc792[_0x15a876('0x10c6')][_0x15a876('0x2531')]||_0x3fc792[_0x15a876('0x10c6')]['openchannelPause']||_0x3fc792[_0x15a876('0x10c6')]['faxPause'],_0x39a30e=!_0x498121[_0x15a876('0x1e4e')][_0x15a876('0x1dc8')];_0x1fbd88['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular[_0x15a876('0x24a1')](_0x3bc5d1[_0x15a876('0x19b2')]),'clickOutsideToClose':_0x39a30e,'escapeToClose':_0x39a30e,'onRemoving':function _0x27e6cb(){var _0x15614d=_0x15a876;_0x3fc792[_0x15614d('0x10c6')]&&_0x498121[_0x15614d('0x1e4e')][_0x15614d('0x1dc8')]&&!_0x2409fb&&_0x46ae94['user'][_0x15614d('0x2471')]({'id':_0x3fc792[_0x15614d('0x10c6')]['id']})[_0x15614d('0xe59')][_0x15614d('0x223b')](function(_0x4fcd42){var _0x56094e=_0x15614d;console[_0x56094e('0x8c8')](_0x4fcd42);});},'locals':{'user':_0x3fc792[_0x15a876('0x10c6')],'channel':_0x15a876('0x2801'),'interaction':_0x498121}});}function _0x107370(_0x702d4a){var _0x45e096=_0x1fb846;_0x702d4a[_0x45e096('0x1286')]?(_0x702d4a[_0x45e096('0x130c')]=(_0x702d4a['Contact']['firstName']||'')+'\x20'+(_0x702d4a[_0x45e096('0x1286')][_0x45e096('0x151f')]||''),_0x702d4a[_0x45e096('0x15a6')]=_0x702d4a['Contact'][_0x45e096('0x23a0')]):_0x702d4a[_0x45e096('0x130c')]=_0x2ce323[_0x45e096('0x2159')]('DASHBOARDS.UNKNOWN');}function _0x52ed45(_0x133074){var _0x5eef63=_0x1fb846;if(_0x133074['UserId'])return _0x133074['UserId']===_0x3fc792[_0x5eef63('0x10c6')]['id']?_0x2ce323[_0x5eef63('0x2159')](_0x5eef63('0x132d')):_0x133074[_0x5eef63('0x2237')][_0x5eef63('0xe11')]+'\x20<'+_0x133074['Owner'][_0x5eef63('0x1b66')]+'>';return _0x2ce323[_0x5eef63('0x2159')](_0x5eef63('0x2094'));}function _0x403e0c(_0x5155b8){var _0x25c4e0=_0x1fb846;if(_0x5155b8['Account'])return _0x5155b8['Account']['key'];return _0x2ce323[_0x25c4e0('0x2159')](_0x25c4e0('0x27df'));}function _0x1758d6(_0x3f0f1b,_0x47dfac){var _0x4c4d8c=_0x1fb846;_0x1fbd88[_0x4c4d8c('0x26b2')]({'controller':'ComposeSmsInteractionDialogController','controllerAs':'vm','templateUrl':_0x2496d8,'parent':angular[_0x4c4d8c('0x24a1')](_0x3bc5d1[_0x4c4d8c('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x47dfac,'message':{},'type':_0x4c4d8c('0x4ad'),'interaction':{}},'fullscreen':!![]})[_0x4c4d8c('0xe19')](function(_0x53716c){var _0x4cf015=_0x4c4d8c;if(_0x53716c){if(_0x53716c[_0x4cf015('0x27e8')]&&_0x53716c['message']['savedAsDraft']){var _0x254de1={'channel':_0x4cf015('0x2801'),'account':_0x47dfac,'message':_0x53716c['message'],'contact':_0x53716c[_0x4cf015('0xd9a')]};_0x3706c5[_0x4cf015('0xaf8')](_0x254de1);}else{var _0x3e6091=_0x53716c;return _0x46ae94[_0x4cf015('0x1437')][_0x4cf015('0x1ee')]({'id':_0x47dfac['id']},_0x3e6091)[_0x4cf015('0xe59')][_0x4cf015('0xe19')](function(_0x342296){var _0x6c036=_0x4cf015;_0x2f4fc2[_0x6c036('0x425')]({'title':'Message\x20properly\x20sent!','msg':_0x6c036('0x2714')}),_0x1b5937[_0x6c036('0x5cf')]['vm'][_0x6c036('0xa31')]('sms',_0x342296);})['catch'](function(_0xd3d37b){var _0x262261=_0x4cf015;if(_0xd3d37b['data']&&_0xd3d37b[_0x262261('0x11d0')][_0x262261('0xcd2')]&&_0xd3d37b[_0x262261('0x11d0')][_0x262261('0xcd2')]['length'])for(var _0x591322=0x0;_0x591322<_0xd3d37b['data'][_0x262261('0xcd2')][_0x262261('0x25ae')];_0x591322++){_0x2f4fc2[_0x262261('0x8c8')]({'title':_0xd3d37b['data']['errors'][_0x591322]['type'],'msg':_0xd3d37b[_0x262261('0x11d0')][_0x262261('0xcd2')][_0x591322][_0x262261('0x27e8')]});}else _0x2f4fc2[_0x262261('0x8c8')]({'title':_0xd3d37b[_0x262261('0x2833')]?_0x262261('0x27f2')+_0xd3d37b[_0x262261('0x2833')]+_0x262261('0x1b7c')+_0xd3d37b['statusText']:'SMSACCOUNT:SEND','msg':_0xd3d37b[_0x262261('0x11d0')]?JSON[_0x262261('0x3ad')](_0xd3d37b[_0x262261('0x11d0')][_0x262261('0x27e8')]):_0xd3d37b[_0x262261('0x27e8')]||_0xd3d37b[_0x262261('0x94f')]()});});}}});}function _0x4a46df(_0x47bf0e){var _0x556ba7=_0x1fb846,_0x511d62,_0x4e7331=_0x32d445()[_0x556ba7('0xf15')](_0x3fc792[_0x556ba7('0x2708')][_0x556ba7('0x16a7')],{'id':_0x47bf0e[_0x556ba7('0x1d52')]});_0x4e7331&&_0x4e7331[_0x556ba7('0x970')]&&(_0x511d62=_0x32d445()[_0x556ba7('0xf15')](_0x4e7331[_0x556ba7('0x970')],{'id':_0x47bf0e[_0x556ba7('0x43d')]}),!_0x511d62&&_0x4e7331[_0x556ba7('0x970')][_0x556ba7('0xb76')]({'id':_0x47bf0e[_0x556ba7('0x43d')]}));}function _0x4545b2(_0x4213d4){var _0xdc892a=_0x1fb846,_0x10b44f=_0x32d445()['find'](_0x3fc792[_0xdc892a('0x2708')]['rows'],{'id':_0x4213d4['SmsInteractionId']});_0x10b44f&&_0x10b44f[_0xdc892a('0x970')]&&_0x32d445()['remove'](_0x10b44f[_0xdc892a('0x970')],{'id':_0x4213d4['UserId']});}function _0x3bb3ca(_0xb4be65){var _0xe5d6cc=_0x1fb846;if(_0xb4be65){var _0x466d4b=_0x32d445()[_0xe5d6cc('0xf15')](_0x3fc792[_0xe5d6cc('0x2708')][_0xe5d6cc('0x16a7')],{'id':_0xb4be65['id']});if(_0x466d4b){_0x466d4b['Users']=[];_0xb4be65[_0xe5d6cc('0x1835')]&&(_0x466d4b[_0xe5d6cc('0x98d')]=0x0);if(_0x3fc792[_0xe5d6cc('0xa16')][_0xe5d6cc('0x9f6')]){var _0x1493de=_0x32d445()[_0xe5d6cc('0x20b6')](_0x3fc792['query'][_0xe5d6cc('0x9f6')],'-')?'desc':'asc';_0x3fc792['smsInteractions']['rows']=_0x32d445()[_0xe5d6cc('0x10e')](_0x3fc792[_0xe5d6cc('0x2708')][_0xe5d6cc('0x16a7')],_0x32d445()[_0xe5d6cc('0x1cd0')](_0x3fc792['query'][_0xe5d6cc('0x9f6')],'-'),_0x1493de);}_0x32d445()[_0xe5d6cc('0x1d8')](_0x466d4b,_0x32d445()[_0xe5d6cc('0xed5')](_0xb4be65,_0x32d445()['keys'](_0x466d4b)));}else _0x8d6b08(_0x3fc792['query'][_0xe5d6cc('0xc08')]);}}function _0x4060b3(_0x420722){var _0x51102c=_0x1fb846;if(_0x420722){var _0x24f509=_0x32d445()[_0x51102c('0xf15')](_0x3fc792['smsInteractions']['rows'],{'id':_0x420722['id']});_0x24f509&&(_0x24f509[_0x51102c('0x1e7b')]=_0x420722[_0x51102c('0x1105')]||[],_0x32d445()[_0x51102c('0x1d8')](_0x24f509,_0x32d445()['pick'](_0x420722,_0x32d445()[_0x51102c('0x1234')](_0x24f509))));}}function _0x4af201(_0x8a4224){var _0x3288b0=_0x1fb846;if(_0x8a4224&&!_0x8a4224[_0x3288b0('0x17d9')]){var _0x763d0d=_0x32d445()[_0x3288b0('0xf15')](_0x3fc792['smsInteractions']['rows'],{'id':_0x8a4224[_0x3288b0('0x1d52')]});if(_0x763d0d){var _0x220260=_0x32d445()['find'](_0x763d0d[_0x3288b0('0x1e63')],{'id':_0x8a4224['id']});_0x220260?_0x32d445()[_0x3288b0('0x1d8')](_0x220260,_0x32d445()[_0x3288b0('0xed5')](_0x8a4224,_0x32d445()[_0x3288b0('0x1234')](_0x220260))):(_0x32d445()[_0x3288b0('0xe44')](_0x763d0d[_0x3288b0('0x1e63')])&&(_0x763d0d['Messages']={'count':0x0}),!_0x8a4224[_0x3288b0('0x1a6e')]&&(_0x763d0d[_0x3288b0('0x1e63')]['count']+=0x1));}}}function _0x39e20d(){var _0x6eeea1=_0x1fb846;_0x3fc792[_0x6eeea1('0x1a1d')]=![];}function _0x3a1b42(){var _0x13a335=_0x1fb846;_0x3fc792[_0x13a335('0x1a1d')]=!![];}function _0x10c708(){var _0x400350=_0x1fb846;_0x3fc792[_0x400350('0x1a1d')]=![],_0x1fbd88['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x400350('0x24a1')](_0x3bc5d1[_0x400350('0x19b2')]),'clickOutsideToClose':![],'locals':{'color':_0x3fc792['sectionColor'],'fields':_0x3fc792[_0x400350('0x164')][_0x400350('0x1d17')],'storagePath':_0x400350('0x84')},'fullscreen':!![]})[_0x400350('0xe19')](function(_0x43177b){var _0x4cc657=_0x400350;_0x3fc792[_0x4cc657('0xa16')][_0x4cc657('0x1cc8')]=_0x43177b===![]?undefined:_0x43177b;if(_0x3fc792[_0x4cc657('0xa16')]['search']||_0x43177b===![])_0x8d6b08();})[_0x400350('0x223b')](function(_0x2eb158){var _0x194a74=_0x400350;_0x2f4fc2[_0x194a74('0x8c8')]({'title':_0x194a74('0x71e'),'msg':_0x2eb158[_0x194a74('0x11d0')]?JSON['stringify'](_0x2eb158[_0x194a74('0x11d0')][_0x194a74('0x27e8')]):_0x2eb158['toString']()});});}var _0x250af1=!![],_0x117156=0x1;_0x1b5937[_0x1fb846('0x107')]('vm.query.filter',function(_0x33d124,_0x664c44){var _0x2bfa69=_0x1fb846;_0x250af1?_0x135783(function(){_0x250af1=![];}):(!_0x664c44&&(_0x117156=_0x3fc792['query'][_0x2bfa69('0xc08')]),_0x33d124!==_0x664c44&&(_0x3fc792[_0x2bfa69('0xa16')][_0x2bfa69('0xc08')]=0x1),!_0x33d124&&(_0x3fc792[_0x2bfa69('0xa16')][_0x2bfa69('0xc08')]=_0x117156),_0x8d6b08(_0x3fc792[_0x2bfa69('0xa16')][_0x2bfa69('0xc08')]));}),_0x1b5937[_0x1fb846('0xb2b')](_0x1fb846('0x5cd'),function(){var _0x55c0b0=_0x1fb846;_0xdf2f4d[_0x55c0b0('0x2121')](_0x55c0b0('0x301')),_0xdf2f4d['removeAllListeners'](_0x55c0b0('0x841')),_0xdf2f4d[_0x55c0b0('0x2121')](_0x55c0b0('0x2a1')),_0xdf2f4d['removeAllListeners'](_0x55c0b0('0x177a')),_0xdf2f4d['removeAllListeners']('smsInteraction:update'),_0xdf2f4d[_0x55c0b0('0x2121')](_0x55c0b0('0xf4f')),_0xdf2f4d['removeAllListeners'](_0x55c0b0('0x2165'));});}const _0x31f600=_0x1eb47f,_0x775e0b=_0x59426a['p']+_0xb635d2('0xa50');_0x132f66['$inject']=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xffc'),'toasty','Auth',_0xb635d2('0x2400'),_0xb635d2('0x63c'),_0xb635d2('0x1a0b')];function _0x132f66(_0x4a0ec7,_0x45e1e4,_0x46daf1,_0x403b10,_0x677800,_0x559fca,_0x1a5001,_0x4a3c54){var _0x4378eb=_0xb635d2,_0x43413c=this;_0x43413c[_0x4378eb('0x15a5')]=_0x677800[_0x4378eb('0x1ef8')](),_0x43413c[_0x4378eb('0x20dc')]={},_0x43413c[_0x4378eb('0x19b6')]=_0x4378eb('0x20dc'),_0x43413c['query']={'UserId':_0x43413c[_0x4378eb('0x15a5')]['id'],'fields':_0x4378eb('0x1253'),'sort':_0x4378eb('0x7e8'),'limit':0xa,'page':0x1,'type':null},_0x43413c[_0x4378eb('0x425')]=_0x2645c4,_0x43413c[_0x4378eb('0x183d')]=_0x41b7b8,_0x43413c['onInit']=_0x309677,_0x43413c[_0x4378eb('0x300')]=_0x3ac370,_0x43413c['onSearchBarCollapse']=_0x488ed1,_0x43413c['onSearchBarExpand']=_0x5aaa18;function _0x309677(){var _0x2d0c5b=_0x4378eb;return _0x46daf1['tag'][_0x2d0c5b('0x22d5')]()[_0x2d0c5b('0xe59')][_0x2d0c5b('0xe19')](function(_0x501b5b){var _0x463a11=_0x2d0c5b;_0x43413c[_0x463a11('0x1105')]=_0x501b5b||{'count':0x0,'rows':[]};})[_0x2d0c5b('0xe19')](function(){var _0x5b467c=_0x2d0c5b;_0x43413c[_0x5b467c('0x1fd3')]=_0x2a4088();})['catch'](function(_0x26f00c){var _0x9b42bc=_0x2d0c5b;_0x403b10[_0x9b42bc('0x8c8')]({'title':_0x9b42bc('0x83e'),'msg':_0x26f00c[_0x9b42bc('0x11d0')]?JSON[_0x9b42bc('0x3ad')](_0x26f00c[_0x9b42bc('0x11d0')]['message']):_0x26f00c[_0x9b42bc('0x27e8')]||_0x26f00c[_0x9b42bc('0x94f')]()}),_0x43413c['tags']={'count':0x0,'rows':[]};})[_0x2d0c5b('0x23')](function(){var _0x4a9b11=_0x2d0c5b,_0x227628=_0x559fca[_0x4a9b11('0x4f9')][_0x4a9b11('0x2208')](_0x4a9b11('0xaab')+_0x43413c[_0x4a9b11('0x15a5')]['id']);if(_0x227628)try{_0x227628=JSON[_0x4a9b11('0x118e')](_0x227628),_0x227628[_0x4a9b11('0xa16')]&&(_0x43413c[_0x4a9b11('0xa16')]=_0x32d445()['omit'](_0x227628[_0x4a9b11('0xa16')],_0x4a9b11('0x2891')));}catch(_0x4671bd){console[_0x4a9b11('0x8c8')](_0x4671bd);}else{var _0x23a6d6={'$gte':_0x4ddcaa()()[_0x4a9b11('0x21b1')]('month')[_0x4a9b11('0x1e9e')](0x0,!![])[_0x4a9b11('0x5e5')](),'$lte':_0x4ddcaa()()[_0x4a9b11('0x270')](_0x4a9b11('0x211c'))['utcOffset'](0x0,!![])[_0x4a9b11('0x5e5')]()};_0x43413c[_0x4a9b11('0xa16')][_0x4a9b11('0x15c9')]=_0x23a6d6;}_0x41b7b8();});}function _0x2a4088(){var _0x3ad059=_0x4378eb;return[{'name':_0x3ad059('0x141d'),'key':_0x3ad059('0x15c9'),'type':_0x3ad059('0xf6d'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x3ad059('0x108f'),'key':_0x3ad059('0x62e'),'type':'select','label':'VOICE.SELECT_TYPE','customOptions':[{'value':_0x3ad059('0x1b66'),'translate':'VOICE.INTERNAL'},{'value':_0x3ad059('0x1a7a'),'translate':_0x3ad059('0xc2b')},{'value':_0x3ad059('0x1fdf'),'translate':'VOICE.OUTBOUND'},{'value':_0x3ad059('0x5d'),'translate':_0x3ad059('0x1325')},{'value':null,'translate':'VOICE.ALL'}]}];}function _0x2645c4(_0x23e1dd){var _0x2e4cb0=_0x4378eb;_0x43413c[_0x2e4cb0('0xcfc')]=![],_0x43413c['voiceCalls']=_0x23e1dd||{'count':0x0,'rows':[]};}function _0x41b7b8(){var _0x35e2d4=_0x4378eb;_0x43413c['searchInProgress']=!![],_0x43413c['query'][_0x35e2d4('0xab0')]=(_0x43413c[_0x35e2d4('0xa16')][_0x35e2d4('0xc08')]-0x1)*_0x43413c[_0x35e2d4('0xa16')]['limit'];var _0x4e30f2={'query':_0x43413c[_0x35e2d4('0xa16')]};_0x559fca[_0x35e2d4('0x4f9')][_0x35e2d4('0x95e')](_0x35e2d4('0xaab')+_0x43413c[_0x35e2d4('0x15a5')]['id'],JSON[_0x35e2d4('0x3ad')](_0x4e30f2)),_0x43413c[_0x35e2d4('0x9c8')]=_0x46daf1[_0x35e2d4('0x496')][_0x35e2d4('0x22d5')](_0x43413c[_0x35e2d4('0xa16')],_0x2645c4)[_0x35e2d4('0xe59')];}function _0x3ac370(_0x23aa49){var _0x5e0458=_0x4378eb;_0x4a0ec7[_0x5e0458('0x26b2')]({'controller':'AgentHomeVoiceDetailsController','controllerAs':'vm','templateUrl':_0x775e0b,'parent':angular[_0x5e0458('0x24a1')](_0x45e1e4[_0x5e0458('0x19b2')]),'clickOutsideToClose':!![],'locals':{'call':_0x23aa49}});}function _0x488ed1(){var _0x597047=_0x4378eb;_0x43413c[_0x597047('0xa16')][_0x597047('0x2891')]=undefined,_0x43413c[_0x597047('0x1a1d')]=![];}function _0x5aaa18(){var _0x267df6=_0x4378eb;_0x43413c[_0x267df6('0x1a1d')]=!![];}var _0x525908=!![],_0x35744a=0x1;_0x1a5001[_0x4378eb('0x107')]('vm.query.filter',function(_0x47f83c,_0x93ce77){var _0x25f963=_0x4378eb;_0x525908?_0x4a3c54(function(){_0x525908=![];}):(!_0x93ce77&&(_0x35744a=_0x43413c[_0x25f963('0xa16')]['page']),_0x47f83c!==_0x93ce77&&(_0x43413c[_0x25f963('0xa16')][_0x25f963('0xc08')]=0x1),!_0x47f83c&&(_0x43413c[_0x25f963('0xa16')][_0x25f963('0xc08')]=_0x35744a),_0x43413c[_0x25f963('0x183d')]());});}const _0x2d37e1=_0x132f66;_0x56f896[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x20c4')];function _0x56f896(_0x486a17,_0x5d2278){var _0x162c32=_0xb635d2,_0x3574d6=this;_0x3574d6['call']=_0x5d2278;function _0x1f9277(){var _0x140737=a0_0x5325;_0x486a17[_0x140737('0x11ed')]();}_0x3574d6[_0x162c32('0x2584')]=_0x1f9277;}const _0x1e8f53=_0x56f896;_0x26214c[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2400'),'$translate',_0xb635d2('0xffc'),'Auth',_0xb635d2('0x46d'),'toasty',_0xb635d2('0x1a90')];function _0x26214c(_0x31157d,_0x2506d3,_0x7f089d,_0x1ebe08,_0x20310c,_0x1e42eb,_0x352a17,_0x10c930,_0x12223c,_0xa4f521,_0x95070b){var _0x5c53ed=_0xb635d2,_0x48dae3=this;_0x48dae3[_0x5c53ed('0x10c6')]=_0x10c930['getCurrentUser'](),_0x48dae3[_0x5c53ed('0x5c1')]={},_0x48dae3[_0x5c53ed('0x22f1')]={},_0x48dae3['tags']={'count':0x0,'rows':[]},_0x48dae3['whatsappInteractions']={'count':0x0,'rows':[]},_0x48dae3['query']={'includeAll':!![],'sort':_0x5c53ed('0x7e8'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x48dae3['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x5c53ed('0x1c60')},{'name':'Contact','column':'Contact','type':_0x5c53ed('0x5c0'),'options':{'searchFields':[_0x5c53ed('0x2566'),_0x5c53ed('0x151f'),_0x5c53ed('0x1211')],'route':{'model':'cmContact','action':_0x5c53ed('0x22d5'),'params':{'fields':_0x5c53ed('0x75'),'Contact':_0x5c53ed('0x217d'),'nolimit':!![]}},'extraOperators':[_0x5c53ed('0x1247')],'excludedOperators':[_0x5c53ed('0x1f51')]}},{'name':'Body','column':_0x5c53ed('0x19b2'),'type':_0x5c53ed('0x1bc6'),'options':{'excludedOperators':[_0x5c53ed('0x1d15'),_0x5c53ed('0x1f51')]}},{'name':_0x5c53ed('0x20e'),'column':_0x5c53ed('0x1835'),'type':_0x5c53ed('0x2e6'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x5c53ed('0x1bbb')}],'options':{'excludedOperators':[_0x5c53ed('0x1f51')]}},{'name':_0x5c53ed('0x142e'),'column':'User','type':'autocomplete','options':{'table':'i','route':{'model':_0x5c53ed('0x10c6'),'action':_0x5c53ed('0x22d5'),'params':{'role':_0x5c53ed('0x108'),'fields':_0x5c53ed('0x194c'),'nolimit':!![]}},'searchFields':['fullname',_0x5c53ed('0x2623')],'extraOperators':['$substring'],'excludedOperators':[_0x5c53ed('0x1f51')]}},{'name':_0x5c53ed('0x1e4e'),'column':_0x5c53ed('0x220b'),'type':_0x5c53ed('0x19a0'),'options':{'route':{'model':_0x5c53ed('0x10c6'),'action':_0x5c53ed('0x1db3'),'params':{'id':_0x48dae3[_0x5c53ed('0x10c6')]['id'],'nolimit':!![]}}}},{'name':_0x5c53ed('0x1e7b'),'column':'Tag','type':'multiselect','options':{'route':{'model':'tag','action':_0x5c53ed('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5c53ed('0x19a3')]}},{'name':_0x5c53ed('0x141d'),'column':_0x5c53ed('0x15c9'),'type':_0x5c53ed('0xf6d'),'options':{'excludedOperators':[_0x5c53ed('0x1f51')]}},{'name':_0x5c53ed('0x2233'),'column':_0x5c53ed('0x98d'),'type':_0x5c53ed('0x2e6'),'values':[{'id':0x1,'translate':_0x5c53ed('0x3b4')},{'id':0x0,'translate':_0x5c53ed('0x10db')}],'options':{'excludedOperators':['$ne']}}]},_0x48dae3[_0x5c53ed('0x1231')]='lime-A700',_0x48dae3['onInit']=_0x3846e8,_0x48dae3[_0x5c53ed('0x425')]=_0x2f1064,_0x48dae3[_0x5c53ed('0x1465')]=_0x5346c6,_0x48dae3[_0x5c53ed('0x18c6')]=_0x4a8c28,_0x48dae3['downloadWhatsappInteraction']=_0x324cfe,_0x48dae3['disposeInteraction']=_0x1d3dd2,_0x48dae3[_0x5c53ed('0x224d')]=_0x25031a,_0x48dae3[_0x5c53ed('0x861')]=_0x5aaf39,_0x48dae3[_0x5c53ed('0x2793')]=_0x174e2f,_0x48dae3['composeWhatsappInteraction']=_0x3b9e31,_0x48dae3[_0x5c53ed('0x1987')]=_0x3242f0,_0x48dae3[_0x5c53ed('0x2846')]=_0x4fc425,_0x48dae3[_0x5c53ed('0x1f45')]=_0x513eda;function _0x3846e8(_0x4895e7,_0x3495aa){var _0x124e40=_0x5c53ed;return _0x48dae3[_0x124e40('0x5c1')]=_0x4895e7,_0x48dae3[_0x124e40('0x22f1')]=_0x3495aa,_0x352a17['user'][_0x124e40('0x22d5')+_0x32d445()[_0x124e40('0x2077')](_0x124e40('0x14cf'))]({'id':_0x48dae3[_0x124e40('0x10c6')]['id'],'nolimit':!![]})['$promise'][_0x124e40('0xe19')](function(_0x21aed9){var _0x412434=_0x124e40;return _0x48dae3[_0x412434('0x14cf')]=_0x21aed9||{'count':0x0,'rows':[]},_0x352a17[_0x412434('0x2037')][_0x412434('0x22d5')]()[_0x412434('0xe59')];})['then'](function(_0x1e0c63){var _0x189595=_0x124e40;_0x48dae3[_0x189595('0x1105')]=_0x1e0c63||{'count':0x0,'rows':[]};})['then'](function(){var _0x4905c6=_0x124e40;_0x48dae3[_0x4905c6('0x1fd3')]=_0x5c294b();})['catch'](function(_0x50b380){var _0x1a4b68=_0x124e40;console[_0x1a4b68('0x8c8')](_0x50b380);})[_0x124e40('0x23')](function(){var _0x275e21=_0x124e40,_0x57f07b=_0x20310c[_0x275e21('0x4f9')][_0x275e21('0x2208')](_0x275e21('0x4f5')+_0x48dae3['user']['id']);if(_0x57f07b)try{_0x57f07b=JSON[_0x275e21('0x118e')](_0x57f07b);if(_0x57f07b[_0x275e21('0xa16')]){_0x48dae3[_0x275e21('0xa16')]=_0x32d445()[_0x275e21('0x1d8')](_0x48dae3[_0x275e21('0xa16')],_0x57f07b[_0x275e21('0xa16')]);if(_0x32d445()[_0x275e21('0x14b4')](_0x48dae3[_0x275e21('0x14cf')][_0x275e21('0x16a7')]))_0x48dae3[_0x275e21('0xa16')][_0x275e21('0x220b')]=[];else _0x32d445()[_0x275e21('0x14b4')](_0x48dae3[_0x275e21('0xa16')]['WhatsappAccountId'])&&(_0x48dae3['query'][_0x275e21('0x220b')]=_0x32d445()(_0x48dae3['whatsappAccounts'][_0x275e21('0x16a7')])['map']('id')['take']()['value']());_0x48dae3[_0x275e21('0xa16')][_0x275e21('0x9f6')]&&_0x48dae3[_0x275e21('0xa16')][_0x275e21('0x9f6')]['indexOf'](_0x275e21('0x218f'))>=0x0&&(_0x48dae3[_0x275e21('0xa16')]=_0x32d445()[_0x275e21('0x23e3')](_0x48dae3[_0x275e21('0xa16')],_0x275e21('0x9f6'))),_0x48dae3[_0x275e21('0xa16')][_0x275e21('0xf53')]=!![],_0x48dae3[_0x275e21('0x1a1d')]=_0x48dae3[_0x275e21('0xa16')][_0x275e21('0x2891')]?!![]:![];}}catch(_0x4037ee){console[_0x275e21('0x8c8')](_0x4037ee);}else{var _0x23aa9a={'$gte':_0x4ddcaa()()[_0x275e21('0x21b1')](_0x275e21('0x211c'))[_0x275e21('0x1e9e')](0x0,!![])[_0x275e21('0x5e5')](),'$lte':_0x4ddcaa()()['endOf']('month')['utcOffset'](0x0,!![])[_0x275e21('0x5e5')]()},_0x4042b9={'WhatsappAccountId':_0x32d445()[_0x275e21('0x65a')](_0x48dae3['whatsappAccounts']['rows'],'id'),'createdAt':_0x23aa9a};_0x48dae3['query']=_0x32d445()[_0x275e21('0x1d8')](_0x48dae3[_0x275e21('0xa16')],_0x4042b9);}_0x12223c['on'](_0x275e21('0x26e0'),_0x3cbcf3),_0x12223c['on'](_0x275e21('0x2284'),_0x3cbcf3),_0x12223c['on']('whatsappInteractionTags:save',_0x474c3b),_0x12223c['on'](_0x275e21('0x1110'),_0x2cf81f),_0x12223c['on'](_0x275e21('0x1262'),_0x2cf81f),_0x12223c['on'](_0x275e21('0x7e'),_0x40ef1c),_0x12223c['on']('user_has_whatsapp_interactions:remove',_0x320190),_0x5346c6(_0x48dae3[_0x275e21('0xa16')][_0x275e21('0xc08')]);});}function _0x5c294b(){var _0x1c1059=_0x5c53ed;return[{'name':_0x1c1059('0x141d'),'key':_0x1c1059('0x15c9'),'type':_0x1c1059('0xf6d'),'label':_0x1c1059('0x19b7')},{'name':_0x1c1059('0x1e63'),'key':_0x1c1059('0x1a6e'),'type':'select','label':_0x1c1059('0x2738'),'customOptions':[{'value':0x0,'translate':_0x1c1059('0x10db')},{'value':0x1,'translate':_0x1c1059('0x3b4')},{'value':null,'translate':_0x1c1059('0x296')}]},{'name':_0x1c1059('0x20e'),'key':_0x1c1059('0x1835'),'type':_0x1c1059('0x2e6'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x1c1059('0x1c37')},{'value':0x1,'translate':_0x1c1059('0x1bbb')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x1c1059('0x1e4e'),'key':_0x1c1059('0x220b'),'type':_0x1c1059('0x19a0'),'label':_0x1c1059('0xe22'),'options':_0x48dae3[_0x1c1059('0x14cf')][_0x1c1059('0x16a7')],'clearAll':![]},{'name':_0x1c1059('0x142e'),'key':'UserId','type':_0x1c1059('0x2e6'),'label':_0x1c1059('0x120c'),'customOptions':[{'value':_0x48dae3['user']['id'],'translate':_0x1c1059('0x132d')},{'value':'null','translate':_0x1c1059('0x2094')},{'value':undefined,'translate':_0x1c1059('0x296')}]},{'name':_0x1c1059('0x1172'),'key':'tag','type':_0x1c1059('0x19a0'),'label':_0x1c1059('0x23c7'),'options':_0x48dae3['tags'][_0x1c1059('0x16a7')],'placeholder':_0x1c1059('0x14ec')}];}function _0x2f1064(_0x5d21e0){var _0x48600a=_0x5c53ed;_0x48dae3[_0x48600a('0xcfc')]=![],_0x48dae3[_0x48600a('0xcb8')]=_0x5d21e0||{'count':0x0,'rows':[]};for(var _0x40e7f5=0x0;_0x40e7f5<_0x48dae3[_0x48600a('0xcb8')]['rows'][_0x48600a('0x25ae')];_0x40e7f5+=0x1){_0x25031a(_0x48dae3['whatsappInteractions'][_0x48600a('0x16a7')][_0x40e7f5]);}}function _0x5346c6(_0x173ce0){var _0x5bb7f9=_0x5c53ed;_0x48dae3[_0x5bb7f9('0xcfc')]=!![];!_0x173ce0&&(_0x48dae3['query'][_0x5bb7f9('0xc08')]=0x1);_0x48dae3[_0x5bb7f9('0xa16')][_0x5bb7f9('0xab0')]=(_0x48dae3[_0x5bb7f9('0xa16')][_0x5bb7f9('0xc08')]-0x1)*_0x48dae3[_0x5bb7f9('0xa16')][_0x5bb7f9('0x1b6d')];var _0x4a4517=_0x20310c[_0x5bb7f9('0x4f9')][_0x5bb7f9('0x2208')](_0x5bb7f9('0x4f5')+_0x48dae3[_0x5bb7f9('0x10c6')]['id']);_0x4a4517=_0x4a4517?JSON[_0x5bb7f9('0x118e')](_0x4a4517):{},_0x4a4517['query']=_0x48dae3[_0x5bb7f9('0xa16')],_0x20310c[_0x5bb7f9('0x4f9')]['setItem'](_0x5bb7f9('0x4f5')+_0x48dae3[_0x5bb7f9('0x10c6')]['id'],JSON['stringify'](_0x4a4517)),_0x48dae3['promise']=_0x352a17[_0x5bb7f9('0x1888')][_0x5bb7f9('0x22d5')](_0x48dae3['query'],_0x2f1064)[_0x5bb7f9('0xe59')];}function _0x4a8c28(_0x69a2d6,_0x4ff126){var _0x7e8ae4=_0x5c53ed;_0x31157d['$parent']['vm'][_0x7e8ae4('0xa31')](_0x7e8ae4('0x4b7'),_0x4ff126);}function _0x324cfe(_0x121216,_0x28fbf4,_0x27d6c1){var _0x10a928=_0x5c53ed;_0x352a17[_0x10a928('0x1888')]['download']({'id':_0x28fbf4['id'],'attachments':_0x27d6c1})['$promise'][_0x10a928('0xe19')](function(_0x2855e0){var _0x1482b9=_0x10a928,_0x1a154e=[_0x2855e0[_0x1482b9('0x17ab')]],_0x371af2=_0x1482b9('0x32')+_0x28fbf4['id']+_0x1482b9('0x985'),_0x1578ed=new Blob(_0x1a154e,{'type':_0x2855e0[_0x1482b9('0x62e')]}),_0x1c4be1=window[_0x1482b9('0x18fa')]['createElement']('a');_0x1c4be1['setAttribute']('href',URL['createObjectURL'](_0x1578ed)),_0x1c4be1[_0x1482b9('0xede')](_0x1482b9('0x1d1e'),_0x371af2),document[_0x1482b9('0x19b2')][_0x1482b9('0x1d13')](_0x1c4be1),_0x1c4be1[_0x1482b9('0xfe7')]();})[_0x10a928('0x223b')](function(_0xf001ec){var _0x250c73=_0x10a928;if(_0xf001ec[_0x250c73('0x11d0')]&&_0xf001ec['data'][_0x250c73('0xcd2')]&&_0xf001ec['data'][_0x250c73('0xcd2')]['length'])for(var _0x5db5bd=0x0;_0x5db5bd<_0xf001ec[_0x250c73('0x11d0')]['errors'][_0x250c73('0x25ae')];_0x5db5bd+=0x1){_0xa4f521[_0x250c73('0x8c8')]({'title':_0xf001ec[_0x250c73('0x11d0')][_0x250c73('0xcd2')][_0x5db5bd]['type'],'msg':_0xf001ec[_0x250c73('0x11d0')]['errors'][_0x5db5bd][_0x250c73('0x27e8')]});}else _0xa4f521[_0x250c73('0x8c8')]({'title':_0xf001ec[_0x250c73('0x2833')]?'API:'+_0xf001ec[_0x250c73('0x2833')]+_0x250c73('0x1b7c')+_0xf001ec[_0x250c73('0x1fd7')]:_0x250c73('0x1ecb'),'msg':_0xf001ec[_0x250c73('0x11d0')]?JSON['stringify'](_0xf001ec[_0x250c73('0x11d0')][_0x250c73('0x27e8')]):_0xf001ec[_0x250c73('0x94f')]()});});}function _0x1d3dd2(_0x20d6da,_0x5eea09){var _0x2b3382=_0x5c53ed,_0x36a38a=_0x48dae3[_0x2b3382('0x10c6')][_0x2b3382('0x1b8d')]||_0x48dae3[_0x2b3382('0x10c6')][_0x2b3382('0x1b15')]||_0x48dae3[_0x2b3382('0x10c6')][_0x2b3382('0x2531')]||_0x48dae3[_0x2b3382('0x10c6')][_0x2b3382('0xf2a')]||_0x48dae3[_0x2b3382('0x10c6')][_0x2b3382('0x2299')],_0x3b64c1=!_0x5eea09['Account'][_0x2b3382('0x1dc8')];_0x7f089d[_0x2b3382('0x26b2')]({'controller':_0x2b3382('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular[_0x2b3382('0x24a1')](_0x1ebe08[_0x2b3382('0x19b2')]),'clickOutsideToClose':_0x3b64c1,'escapeToClose':_0x3b64c1,'onRemoving':function _0x2bc6a0(){var _0x2f82ed=_0x2b3382;_0x48dae3[_0x2f82ed('0x10c6')]&&_0x5eea09[_0x2f82ed('0x1e4e')][_0x2f82ed('0x1dc8')]&&!_0x36a38a&&_0x352a17[_0x2f82ed('0x10c6')][_0x2f82ed('0x2471')]({'id':_0x48dae3[_0x2f82ed('0x10c6')]['id']})[_0x2f82ed('0xe59')][_0x2f82ed('0x223b')](function(_0x332bdd){console['error'](_0x332bdd);});},'locals':{'user':_0x48dae3['user'],'channel':_0x2b3382('0x4b7'),'interaction':_0x5eea09}});}function _0x25031a(_0x2d77d5){var _0x2867c3=_0x5c53ed;_0x2d77d5[_0x2867c3('0x1286')]?(_0x2d77d5[_0x2867c3('0x130c')]=(_0x2d77d5['Contact'][_0x2867c3('0x2566')]||'')+'\x20'+(_0x2d77d5[_0x2867c3('0x1286')]['lastName']||''),_0x2d77d5[_0x2867c3('0x15a6')]=_0x2d77d5[_0x2867c3('0x1286')][_0x2867c3('0x23a0')]):_0x2d77d5[_0x2867c3('0x130c')]=_0x1e42eb[_0x2867c3('0x2159')](_0x2867c3('0x27df'));}function _0x5aaf39(_0x34b709){var _0x3cd921=_0x5c53ed;if(_0x34b709[_0x3cd921('0x43d')])return _0x34b709['UserId']===_0x48dae3[_0x3cd921('0x10c6')]['id']?_0x1e42eb[_0x3cd921('0x2159')]('DASHBOARDS.ME'):_0x34b709[_0x3cd921('0x2237')][_0x3cd921('0xe11')]+'\x20<'+_0x34b709[_0x3cd921('0x2237')][_0x3cd921('0x1b66')]+'>';return _0x1e42eb[_0x3cd921('0x2159')](_0x3cd921('0x2094'));}function _0x174e2f(_0x21fab7){var _0x1957dc=_0x5c53ed;if(_0x21fab7['Account'])return _0x21fab7[_0x1957dc('0x1e4e')][_0x1957dc('0x6e4')];return _0x1e42eb[_0x1957dc('0x2159')](_0x1957dc('0x27df'));}function _0x3b9e31(_0x30ea3b,_0x1e921f){var _0x5ce218=_0x5c53ed;_0x7f089d[_0x5ce218('0x26b2')]({'controller':'ComposeWhatsappInteractionDialogController','controllerAs':'vm','templateUrl':_0x57724a,'parent':angular[_0x5ce218('0x24a1')](_0x1ebe08[_0x5ce218('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x1e921f,'message':{},'type':_0x5ce218('0x4ad'),'interaction':{}},'fullscreen':!![]})[_0x5ce218('0xe19')](function(_0x14f5ca){var _0x33c6cd=_0x5ce218;if(_0x14f5ca){if(_0x14f5ca[_0x33c6cd('0x27e8')]&&_0x14f5ca['message']['savedAsDraft']){var _0x32ede2={'channel':_0x33c6cd('0x4b7'),'account':_0x1e921f,'message':_0x14f5ca[_0x33c6cd('0x27e8')],'contact':_0x14f5ca[_0x33c6cd('0xd9a')]};_0x95070b[_0x33c6cd('0xaf8')](_0x32ede2);}else{var _0x20f84f=_0x14f5ca;return _0x352a17[_0x33c6cd('0x223')][_0x33c6cd('0x1ee')]({'id':_0x1e921f['id']},_0x20f84f)[_0x33c6cd('0xe59')][_0x33c6cd('0xe19')](function(_0x4473a8){var _0x193fe6=_0x33c6cd;_0xa4f521[_0x193fe6('0x425')]({'title':_0x193fe6('0x1c0d'),'msg':'Message\x20has\x20been\x20sent!'}),_0x31157d[_0x193fe6('0x5cf')]['vm']['addInteractionTab'](_0x193fe6('0x4b7'),_0x4473a8);})['catch'](function(_0x336ed6){var _0x34d18e=_0x33c6cd;if(_0x336ed6[_0x34d18e('0x11d0')]&&_0x336ed6[_0x34d18e('0x11d0')]['errors']&&_0x336ed6['data'][_0x34d18e('0xcd2')][_0x34d18e('0x25ae')])for(var _0x48f199=0x0;_0x48f199<_0x336ed6[_0x34d18e('0x11d0')][_0x34d18e('0xcd2')][_0x34d18e('0x25ae')];_0x48f199++){_0xa4f521[_0x34d18e('0x8c8')]({'title':_0x336ed6['data'][_0x34d18e('0xcd2')][_0x48f199][_0x34d18e('0x62e')],'msg':_0x336ed6[_0x34d18e('0x11d0')]['errors'][_0x48f199]['message']});}else _0xa4f521[_0x34d18e('0x8c8')]({'title':_0x336ed6[_0x34d18e('0x2833')]?_0x34d18e('0x27f2')+_0x336ed6[_0x34d18e('0x2833')]+_0x34d18e('0x1b7c')+_0x336ed6[_0x34d18e('0x1fd7')]:_0x34d18e('0xacd'),'msg':_0x336ed6['data']?JSON[_0x34d18e('0x3ad')](_0x336ed6['data'][_0x34d18e('0x27e8')]):_0x336ed6['message']||_0x336ed6['toString']()});});}}});}function _0x40ef1c(_0x11573d){var _0x3e5981=_0x5c53ed,_0x10c57e,_0x17690e=_0x32d445()[_0x3e5981('0xf15')](_0x48dae3[_0x3e5981('0xcb8')][_0x3e5981('0x16a7')],{'id':_0x11573d[_0x3e5981('0xd09')]});_0x17690e&&_0x17690e[_0x3e5981('0x970')]&&(_0x10c57e=_0x32d445()[_0x3e5981('0xf15')](_0x17690e[_0x3e5981('0x970')],{'id':_0x11573d[_0x3e5981('0x43d')]}),!_0x10c57e&&_0x17690e['Users'][_0x3e5981('0xb76')]({'id':_0x11573d[_0x3e5981('0x43d')]}));}function _0x320190(_0x25aac4){var _0x6b9766=_0x5c53ed,_0x5a5205=_0x32d445()['find'](_0x48dae3[_0x6b9766('0xcb8')]['rows'],{'id':_0x25aac4['WhatsappInteractionId']});_0x5a5205&&_0x5a5205['Users']&&_0x32d445()[_0x6b9766('0xa8b')](_0x5a5205[_0x6b9766('0x970')],{'id':_0x25aac4[_0x6b9766('0x43d')]});}function _0x3cbcf3(_0x568a09){var _0xf9279f=_0x5c53ed;if(_0x568a09){var _0x3c2eda=_0x32d445()['find'](_0x48dae3[_0xf9279f('0xcb8')][_0xf9279f('0x16a7')],{'id':_0x568a09['id']});if(_0x3c2eda){_0x3c2eda[_0xf9279f('0x970')]=[];_0x568a09[_0xf9279f('0x1835')]&&(_0x3c2eda[_0xf9279f('0x98d')]=0x0);if(_0x48dae3[_0xf9279f('0xa16')]['sort']){var _0xa185a1=_0x32d445()['startsWith'](_0x48dae3[_0xf9279f('0xa16')][_0xf9279f('0x9f6')],'-')?_0xf9279f('0x1ee9'):'asc';_0x48dae3[_0xf9279f('0xcb8')]['rows']=_0x32d445()['orderBy'](_0x48dae3['whatsappInteractions'][_0xf9279f('0x16a7')],_0x32d445()[_0xf9279f('0x1cd0')](_0x48dae3[_0xf9279f('0xa16')]['sort'],'-'),_0xa185a1);}_0x32d445()[_0xf9279f('0x1d8')](_0x3c2eda,_0x32d445()[_0xf9279f('0xed5')](_0x568a09,_0x32d445()[_0xf9279f('0x1234')](_0x3c2eda)));}else _0x5346c6(_0x48dae3[_0xf9279f('0xa16')]['page']);}}function _0x474c3b(_0x26b267){var _0x473ae1=_0x5c53ed;if(_0x26b267){var _0x27ef12=_0x32d445()['find'](_0x48dae3[_0x473ae1('0xcb8')][_0x473ae1('0x16a7')],{'id':_0x26b267['id']});_0x27ef12&&(_0x27ef12[_0x473ae1('0x1e7b')]=_0x26b267[_0x473ae1('0x1105')]||[],_0x32d445()[_0x473ae1('0x1d8')](_0x27ef12,_0x32d445()[_0x473ae1('0xed5')](_0x26b267,_0x32d445()['keys'](_0x27ef12))));}}function _0x2cf81f(_0x543174){var _0x2e6625=_0x5c53ed;if(_0x543174&&!_0x543174[_0x2e6625('0x17d9')]){var _0x3ba48=_0x32d445()[_0x2e6625('0xf15')](_0x48dae3['whatsappInteractions'][_0x2e6625('0x16a7')],{'id':_0x543174['WhatsappInteractionId']});if(_0x3ba48){var _0x1afdb4=_0x32d445()[_0x2e6625('0xf15')](_0x3ba48['Messages'],{'id':_0x543174['id']});_0x1afdb4?_0x32d445()[_0x2e6625('0x1d8')](_0x1afdb4,_0x32d445()[_0x2e6625('0xed5')](_0x543174,_0x32d445()[_0x2e6625('0x1234')](_0x1afdb4))):(_0x32d445()[_0x2e6625('0xe44')](_0x3ba48[_0x2e6625('0x1e63')])&&(_0x3ba48['Messages']={'count':0x0}),!_0x543174['read']&&(_0x3ba48['Messages']['count']+=0x1));}}}function _0x3242f0(){var _0x1ccbc8=_0x5c53ed;_0x48dae3[_0x1ccbc8('0x1a1d')]=![];}function _0x4fc425(){var _0x3b6814=_0x5c53ed;_0x48dae3[_0x3b6814('0x1a1d')]=!![];}function _0x513eda(){var _0x58fcab=_0x5c53ed;_0x48dae3[_0x58fcab('0x1a1d')]=![],_0x7f089d[_0x58fcab('0x26b2')]({'controller':_0x58fcab('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x58fcab('0x24a1')](_0x1ebe08[_0x58fcab('0x19b2')]),'clickOutsideToClose':![],'locals':{'color':_0x48dae3[_0x58fcab('0x1231')],'fields':_0x48dae3[_0x58fcab('0x164')][_0x58fcab('0x1d17')],'storagePath':_0x58fcab('0x1242')},'fullscreen':!![]})['then'](function(_0x49e0a4){var _0x46fa71=_0x58fcab;_0x48dae3['query'][_0x46fa71('0x1cc8')]=_0x49e0a4===![]?undefined:_0x49e0a4;if(_0x48dae3[_0x46fa71('0xa16')][_0x46fa71('0x1cc8')]||_0x49e0a4===![])_0x5346c6();})['catch'](function(_0x5bf213){var _0x206bd0=_0x58fcab;_0xa4f521['error']({'title':_0x206bd0('0x71e'),'msg':_0x5bf213['data']?JSON[_0x206bd0('0x3ad')](_0x5bf213[_0x206bd0('0x11d0')][_0x206bd0('0x27e8')]):_0x5bf213[_0x206bd0('0x94f')]()});});}var _0x57ccef=!![],_0x1040d2=0x1;_0x31157d[_0x5c53ed('0x107')](_0x5c53ed('0x20cb'),function(_0x4c8aad,_0x3d277e){var _0x5de66e=_0x5c53ed;_0x57ccef?_0x2506d3(function(){_0x57ccef=![];}):(!_0x3d277e&&(_0x1040d2=_0x48dae3['query'][_0x5de66e('0xc08')]),_0x4c8aad!==_0x3d277e&&(_0x48dae3[_0x5de66e('0xa16')][_0x5de66e('0xc08')]=0x1),!_0x4c8aad&&(_0x48dae3['query'][_0x5de66e('0xc08')]=_0x1040d2),_0x5346c6(_0x48dae3['query'][_0x5de66e('0xc08')]));}),_0x31157d[_0x5c53ed('0xb2b')]('$destroy',function(){var _0x23c00d=_0x5c53ed;_0x12223c['removeAllListeners'](_0x23c00d('0x1110')),_0x12223c[_0x23c00d('0x2121')](_0x23c00d('0x1262')),_0x12223c[_0x23c00d('0x2121')]('whatsappInteraction:save'),_0x12223c[_0x23c00d('0x2121')](_0x23c00d('0x24a6')),_0x12223c['removeAllListeners'](_0x23c00d('0x2284')),_0x12223c['removeAllListeners'](_0x23c00d('0x7e')),_0x12223c['removeAllListeners'](_0x23c00d('0x1141'));});}const _0x46228a=_0x26214c;_0x5229fe[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2858')];function _0x5229fe(_0x29d82b,_0x4da5ba){var _0x2d57ab=_0xb635d2,_0x4742bb=this;_0x4742bb[_0x2d57ab('0x22f1')]={},_0x4742bb[_0x2d57ab('0x1335')]={'count':0x0,'rows':[]},_0x4742bb[_0x2d57ab('0xd20')]=![];function _0x11f732(_0x18e961,_0x1d08fc){var _0x3738ef=_0x2d57ab;_0x4742bb[_0x3738ef('0x22f1')]=_0x1d08fc,_0x4742bb[_0x3738ef('0x435')]=_0x18e961,_0x4742bb[_0x3738ef('0x435')][_0x3738ef('0x15b9')]=!![];}function _0x4e7092(){var _0x5524e2=_0x2d57ab;return _0x4da5ba[_0x5524e2('0x405')](_0x4742bb['tab'][_0x5524e2('0x48a')]);}_0x4742bb[_0x2d57ab('0x15f9')]=_0x11f732,_0x4742bb['getTrustedURL']=_0x4e7092;}const _0x338e7b=_0x5229fe,_0x21a212=_0x59426a['p']+_0xb635d2('0x1668'),_0x798c0e=_0x59426a['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html/dialog-[chunkhash].html';_0x5d8381[_0xb635d2('0xb0c')]=['$sce'],_0x2b0c93[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x1a0b'),_0xb635d2('0x1728'),_0xb635d2('0x63c'),_0xb635d2('0x1c9f'),'$q','$location','$translate','api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),'socket',_0xb635d2('0x1563'),'draftManager'];function _0x2b0c93(_0xf3b6e9,_0x1b4175,_0xecd676,_0x18dc4a,_0x4f6e20,_0x4bc981,_0x44cf28,_0x501a64,_0x354fff,_0x4641ab,_0x33ebdf,_0x17c9d5,_0x39934e,_0x474cc9){var _0x5a18e8=_0xb635d2,_0x229228=this,_0x366664=0x19,_0x3bcb1e=_0x366664*0x400*0x400;_0x229228[_0x5a18e8('0x13fd')]=![],_0x229228['showInteraction']=![],_0x229228['user']=_0x33ebdf[_0x5a18e8('0x1ef8')](),_0x229228['detectBrowser']=_0x39934e['detectBrowser'](),_0x229228[_0x5a18e8('0x2034')]=[],_0x229228[_0x5a18e8('0x88f')]=[],_0x229228[_0x5a18e8('0x68a')]=['mail',_0x5a18e8('0x17cc'),'sms',_0x5a18e8('0xaf2'),_0x5a18e8('0x625'),_0x5a18e8('0x4b7')],_0x229228[_0x5a18e8('0x186a')]={'target':_0x5a18e8('0x1b4b'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3bcb1e,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x229228[_0x5a18e8('0x1b57')]={'flow':{}},_0x229228[_0x5a18e8('0x557')]={},_0x229228[_0x5a18e8('0x12d8')]={},_0x229228['setting']={},_0x229228[_0x5a18e8('0x2130')]={},_0x229228[_0x5a18e8('0x171f')]={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':'_blank'},_0x229228[_0x5a18e8('0x349')]=new Date(_0x4ddcaa()()[_0x5a18e8('0x21b1')](_0x5a18e8('0x211c'))[_0x5a18e8('0x19ed')](0x1,'seconds')[_0x5a18e8('0x1e9e')](0x0,!![])[_0x5a18e8('0x5e5')]()),_0x229228[_0x5a18e8('0x1955')]=new Date(_0x4ddcaa()()[_0x5a18e8('0x270')](_0x5a18e8('0x211c'))[_0x5a18e8('0x19ed')](0x1,_0x5a18e8('0x2103'))[_0x5a18e8('0x1e9e')](0x0,!![])[_0x5a18e8('0x5e5')]()),_0x229228[_0x5a18e8('0x15f9')]=_0x358c7e,_0x229228['getLabelByMessage']=_0x33472b,_0x229228[_0x5a18e8('0x1ee7')]=_0xfec0ff,_0x229228['openInteraction']=_0x5d590a,_0x229228[_0x5a18e8('0x23be')]=_0x4c7633,_0x229228['tagInteraction']=_0x55b51b,_0x229228[_0x5a18e8('0xf4e')]=_0x22ed1f,_0x229228[_0x5a18e8('0x13e9')]=_0x18113c,_0x229228[_0x5a18e8('0x275d')]=_0x581868,_0x229228[_0x5a18e8('0x27d2')]=_0x5614c6,_0x229228[_0x5a18e8('0x6ec')]=_0x3417cb,_0x229228[_0x5a18e8('0x1f52')]=_0xe2d506,_0x229228[_0x5a18e8('0x187c')]=_0x13cf58,_0x229228['openDraft']=_0x280276,_0x229228[_0x5a18e8('0x15fd')]=_0x23f0b1,_0x229228['getMailAccounts']=_0x447d68,_0x229228[_0x5a18e8('0x281e')]=_0x465bee,_0x229228[_0x5a18e8('0x1847')]=_0x4505c0,_0x229228[_0x5a18e8('0x1db3')]=_0x194088,_0x229228[_0x5a18e8('0x1449')]=_0x5517a8,_0x229228[_0x5a18e8('0x18a5')]=_0x396708,_0x229228[_0x5a18e8('0x1feb')]=_0x1a3c3b,_0x229228[_0x5a18e8('0x219')]=_0x3705c0,_0x229228[_0x5a18e8('0x20')]=_0x1f0834,_0x229228['fileAdded']=_0x384bab,_0x229228[_0x5a18e8('0x24e8')]=_0x4b407a,_0x229228['onMessageSave']=_0x903801,_0x229228[_0x5a18e8('0x6a4')]=_0x48d1e6,_0x229228[_0x5a18e8('0x240b')]=_0x40a3be,_0x229228[_0x5a18e8('0x2383')]=_0x5486c0,_0x229228[_0x5a18e8('0x143b')]=_0x21bf54,_0x229228[_0x5a18e8('0x16b9')]=_0x37a0de,_0x229228['getColorByItem']=_0x20ce96,_0x229228[_0x5a18e8('0x14ad')]=_0x24b498,_0x229228[_0x5a18e8('0x1f9')]=![],_0x229228[_0x5a18e8('0x2f1')]=_0x46d6ee,_0x229228['setAs']=_0x355ebe,_0x229228[_0x5a18e8('0x1900')]=_0x2b98ad,_0x229228['isMyAccount']=_0x215667,_0x229228[_0x5a18e8('0xe07')]=_0x1d8715,_0x229228[_0x5a18e8('0x193a')]=_0x5d7183,_0x229228[_0x5a18e8('0x140d')]=_0x1a93ea,_0x229228[_0x5a18e8('0x249b')]=_0x2215a7,_0x229228[_0x5a18e8('0x16b1')]=_0x586100,_0x229228['loadNextPage']=_0x58d3a2,_0x229228[_0x5a18e8('0xe04')]={'scrollEl':_0x5a18e8('0x368')};function _0x396708(){var _0x1ecc6d=_0x5a18e8;_0x354fff[_0x1ecc6d('0x10c6')][_0x1ecc6d('0x18a5')]({'id':_0x229228[_0x1ecc6d('0x10c6')]['id'],'nolimit':!![]})[_0x1ecc6d('0xe59')][_0x1ecc6d('0xe19')](function(_0x4d22fb){_0x229228['chatAccounts']=_0x4d22fb||{'count':0x0,'rows':[]};});}function _0x1a3c3b(){var _0x306847=_0x5a18e8;_0x354fff[_0x306847('0x10c6')]['getLists']({'id':_0x229228[_0x306847('0x10c6')]['id'],'nolimit':!![]})[_0x306847('0xe59')][_0x306847('0xe19')](function(_0xe8410d){var _0x1ef0e0=_0x306847;_0x229228[_0x1ef0e0('0x184f')]=_0xe8410d||{'count':0x0,'rows':[]};});}function _0x5517a8(){var _0x1280f2=_0x5a18e8;_0x354fff['user'][_0x1280f2('0x1449')]({'id':_0x229228[_0x1280f2('0x10c6')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x48eddf){_0x229228['openchannelAccounts']=_0x48eddf||{'count':0x0,'rows':[]};})[_0x1280f2('0x223b')](function(_0x5d3efd){var _0x1af411=_0x1280f2;if(_0x5d3efd['data']&&_0x5d3efd[_0x1af411('0x11d0')]['errors']&&_0x5d3efd[_0x1af411('0x11d0')][_0x1af411('0xcd2')][_0x1af411('0x25ae')]){_0x229228[_0x1af411('0xcd2')]=_0x5d3efd['data'][_0x1af411('0xcd2')]||[{'message':_0x5d3efd[_0x1af411('0x94f')](),'type':_0x1af411('0x25f8')}];for(var _0x159146=0x0;_0x159146<_0x5d3efd[_0x1af411('0x11d0')][_0x1af411('0xcd2')][_0x1af411('0x25ae')];_0x159146+=0x1){_0x4641ab[_0x1af411('0x8c8')]({'title':_0x5d3efd['data'][_0x1af411('0xcd2')][_0x159146]['type'],'msg':_0x5d3efd[_0x1af411('0x11d0')][_0x1af411('0xcd2')][_0x159146][_0x1af411('0x27e8')]});}}else _0x4641ab[_0x1af411('0x8c8')]({'title':_0x5d3efd[_0x1af411('0x2833')]?_0x1af411('0x27f2')+_0x5d3efd[_0x1af411('0x2833')]+'\x20-\x20'+_0x5d3efd[_0x1af411('0x1fd7')]:'api.mail.account','msg':_0x5d3efd[_0x1af411('0x11d0')]?JSON['stringify'](_0x5d3efd[_0x1af411('0x11d0')][_0x1af411('0x27e8')]):_0x5d3efd[_0x1af411('0x94f')]()});});}function _0x447d68(){var _0x55f21a=_0x5a18e8;_0x354fff['user'][_0x55f21a('0x1cd2')]({'id':_0x229228[_0x55f21a('0x10c6')]['id'],'nolimit':!![]})[_0x55f21a('0xe59')][_0x55f21a('0xe19')](function(_0x303aa0){var _0x24a2f0=_0x55f21a;_0x229228[_0x24a2f0('0x248b')]=_0x303aa0||{'count':0x0,'rows':[]};});}function _0x465bee(){var _0x24bff6=_0x5a18e8;_0x354fff[_0x24bff6('0x10c6')][_0x24bff6('0x281e')]({'id':_0x229228[_0x24bff6('0x10c6')]['id'],'nolimit':!![]})[_0x24bff6('0xe59')]['then'](function(_0x4ffaf3){var _0x4a866c=_0x24bff6;_0x229228[_0x4a866c('0x1a77')]=_0x4ffaf3||{'count':0x0,'rows':[]};});}function _0x4505c0(){var _0x1fbe2f=_0x5a18e8;_0x354fff[_0x1fbe2f('0x10c6')][_0x1fbe2f('0x1847')]({'id':_0x229228[_0x1fbe2f('0x10c6')]['id'],'nolimit':!![]})[_0x1fbe2f('0xe59')][_0x1fbe2f('0xe19')](function(_0x34045a){var _0x519db0=_0x1fbe2f;_0x229228[_0x519db0('0x25db')]=_0x34045a||{'count':0x0,'rows':[]};});}function _0x194088(){var _0x292230=_0x5a18e8;_0x354fff['user'][_0x292230('0x1db3')]({'id':_0x229228[_0x292230('0x10c6')]['id'],'nolimit':!![]})['$promise'][_0x292230('0xe19')](function(_0xb56183){var _0x3fe914=_0x292230;_0x229228[_0x3fe914('0x14cf')]=_0xb56183||{'count':0x0,'rows':[]};});}function _0x58d3a2(){var _0x2b2e90=_0x5a18e8,_0x29fbc0=_0x4bc981[_0x2b2e90('0x178')]();if(_0x229228[_0x2b2e90('0x23e7')])return _0x229228[_0x2b2e90('0x23e7')][_0x2b2e90('0xab0')]=_0x229228[_0x2b2e90('0x1335')][_0x2b2e90('0x16a7')][_0x2b2e90('0x25ae')],_0x354fff[_0x229228[_0x2b2e90('0x435')][_0x2b2e90('0x4e')]+_0x2b2e90('0x764')][_0x2b2e90('0xe6f')](_0x229228[_0x2b2e90('0x23e7')])[_0x2b2e90('0xe59')][_0x2b2e90('0xe19')](function(_0x297ff1){var _0x1394ee=_0x2b2e90;for(var _0x3b3004=0x0;_0x3b3004<_0x297ff1[_0x1394ee('0x16a7')]['length'];_0x3b3004+=0x1){_0x229228['messages'][_0x1394ee('0x16a7')][_0x1394ee('0xb76')](_0x297ff1[_0x1394ee('0x16a7')][_0x3b3004]),!_0x229228['interaction'][_0x1394ee('0x1835')]&&_0x297ff1['rows'][_0x3b3004][_0x1394ee('0x1338')]==='in'&&!_0x297ff1[_0x1394ee('0x16a7')][_0x3b3004][_0x1394ee('0x1a6e')]&&(_0x354fff[_0x229228['tab']['channel']+_0x1394ee('0x2164')][_0x1394ee('0xcb5')]({'id':_0x297ff1['rows'][_0x3b3004]['id'],'UserId':_0x229228['user']['id']}),_0x229228[_0x1394ee('0x88f')]['push'](_0x297ff1['rows'][_0x3b3004]['id']));}return _0x29fbc0[_0x1394ee('0xcd6')](_0x297ff1);})[_0x2b2e90('0x223b')](function(_0x3cf97c){var _0x545a5a=_0x2b2e90;return _0x29fbc0[_0x545a5a('0x1337')](_0x3cf97c);});return _0x29fbc0[_0x2b2e90('0x1337')]();}function _0x358c7e(_0xcb4671,_0x2e94da){var _0x52e61b=_0x5a18e8;_0x229228['tab']=_0xcb4671,_0x229228[_0x52e61b('0x435')][_0x52e61b('0x15b9')]=!![],_0x229228[_0x52e61b('0x435')][_0x52e61b('0x17ef')]=0x0,_0x229228[_0x52e61b('0x22f1')]=_0x2e94da||{},_0x229228[_0x52e61b('0x435')]&&_0x229228['tab']['channel']&&_0x229228['tab'][_0x52e61b('0xf6')]&&(_0x229228[_0x52e61b('0xf6')]=_0x229228[_0x52e61b('0x435')][_0x52e61b('0xf6')],_0x354fff[_0x229228['tab'][_0x52e61b('0x4e')]+_0x52e61b('0x764')]['get']({'id':_0x229228[_0x52e61b('0x435')][_0x52e61b('0xf6')]['id'],'includeAll':!![]})['$promise'][_0x52e61b('0xe19')](function(_0x256b93){var _0x522756=_0x52e61b;return _0x256b93&&(_0x229228['interaction']=_0x256b93,_0x229228[_0x522756('0x435')][_0x522756('0xf6')]=_0x256b93),_0x229228[_0x522756('0x435')][_0x522756('0x15b9')]=_0x229228[_0x522756('0xf6')][_0x522756('0x1835')],_0x229228[_0x522756('0x23e7')]={'id':_0x229228['interaction']['id'],'includeAll':!![]},_0x229228[_0x522756('0x435')][_0x522756('0x4e')]===_0x522756('0x26bf')?(_0x229228[_0x522756('0x23e7')][_0x522756('0x9f6')]='-id',_0x229228[_0x522756('0x23e7')][_0x522756('0xab0')]=0x0,_0x229228['queryMessage'][_0x522756('0x1b6d')]=0x3):(_0x229228[_0x522756('0x23e7')][_0x522756('0x9f6')]='id',_0x229228[_0x522756('0x23e7')]['nolimit']=!![]),_0x354fff[_0x229228[_0x522756('0x435')][_0x522756('0x4e')]+_0x522756('0x764')][_0x522756('0xe6f')](_0x229228[_0x522756('0x23e7')])['$promise'];})[_0x52e61b('0xe19')](function(_0x58bb6e){var _0x35202f=_0x52e61b;return _0x229228['messages']=_0x58bb6e||{'count':0x0,'rows':[]},_0x354fff[_0x229228[_0x35202f('0x435')][_0x35202f('0x4e')]==='chat'?_0x35202f('0xcda'):_0x229228[_0x35202f('0x435')][_0x35202f('0x4e')]+'Account']['get']({'id':_0x229228['interaction'][_0x229228[_0x35202f('0x435')][_0x35202f('0x4e')]===_0x35202f('0x17cc')?_0x35202f('0x365'):_0x32d445()[_0x35202f('0xbf6')](_0x229228[_0x35202f('0x435')][_0x35202f('0x4e')])+_0x35202f('0x21f3')]})[_0x35202f('0xe59')];})[_0x52e61b('0xe19')](function(_0x360c76){var _0x277196=_0x52e61b;_0x229228[_0x277196('0xe8b')]=_0x360c76,_0x229228[_0x277196('0x435')][_0x277196('0x13e4')]=_0x229228['account'][_0x277196('0x6e4')]||_0x229228[_0x277196('0xe8b')][_0x277196('0x2623')];if(_0x229228[_0x277196('0xf6')]['ContactId'])return _0x354fff[_0x277196('0x1711')][_0x277196('0x22d5')]({'id':_0x229228[_0x277196('0xf6')][_0x277196('0x23c1')]})['$promise'];})['then'](function(_0x5be133){var _0x4fb841=_0x52e61b;return _0x5be133&&(_0x229228[_0x4fb841('0xd9a')]=_0x5be133),_0x229228[_0x4fb841('0xd20')]=!![],_0x229228['contact']?(_0x118b84(_0x229228[_0x4fb841('0xd9a')]),_0x229228['tab'][_0x4fb841('0x13e4')]+=_0x4fb841('0x1b7c')+_0x229228[_0x4fb841('0xd9a')][_0x4fb841('0x2566')]):_0x229228[_0x4fb841('0x435')][_0x4fb841('0x13e4')]+=_0x4fb841('0x1b7c')+_0x501a64[_0x4fb841('0x2159')](_0x229228[_0x4fb841('0x435')][_0x4fb841('0x4e')]['toUpperCase']()+'.UNKNOWN'),_0x354fff['user'][_0x4fb841('0x22d5')]({'fields':_0x4fb841('0x1e10'),'nolimit':!![]})['$promise'];})[_0x52e61b('0xe19')](function(_0x3611c2){var _0xee5a0f=_0x52e61b;_0x229228[_0xee5a0f('0x2526')]=_0x3611c2||{'count':0x0,'rows':[]},_0x229228[_0xee5a0f('0xbee')]=_0x32d445()[_0xee5a0f('0x2483')](_0x32d445()[_0xee5a0f('0x226f')](_0x229228['users'][_0xee5a0f('0x16a7')],'id'),_0xee5a0f('0xe11'));})[_0x52e61b('0xe19')](function(){var _0x568111=_0x52e61b;if(_0x229228[_0x568111('0x435')][_0x568111('0x4e')]&&_0x229228['interaction'])return _0x354fff[_0x568111('0x10c6')][_0x568111('0xaf8')+_0x32d445()[_0x568111('0x2077')](_0x229228['tab'][_0x568111('0x4e')])+_0x568111('0xf27')]({'id':_0x229228[_0x568111('0x10c6')]['id'],'ids':[_0x229228[_0x568111('0xf6')]['id']]});})[_0x52e61b('0xe19')](function(){var _0xdaa2a0=_0x52e61b;return _0x354fff[_0xdaa2a0('0x158e')][_0xdaa2a0('0x22d5')]({'sort':_0xdaa2a0('0x2623'),'nolimit':!![]})['$promise'];})[_0x52e61b('0xe19')](function(_0x2608ef){var _0x516194=_0x52e61b;_0x229228[_0x516194('0x2042')]=_0x2608ef||{'count':0x0,'rows':[]};})[_0x52e61b('0xe19')](function(){var _0x3ed463=_0x52e61b;return _0x229228[_0x3ed463('0x1cd2')]();})[_0x52e61b('0xe19')](function(){var _0x181f79=_0x52e61b;return _0x229228[_0x181f79('0x281e')]();})[_0x52e61b('0xe19')](function(){var _0x2b02f9=_0x52e61b;return _0x229228[_0x2b02f9('0x1847')]();})['then'](function(){var _0x28bec2=_0x52e61b;return _0x229228[_0x28bec2('0x1db3')]();})[_0x52e61b('0xe19')](function(){var _0x4093df=_0x52e61b;return _0x229228[_0x4093df('0x1449')]();})['then'](function(){var _0x1ea954=_0x52e61b;return _0x229228[_0x1ea954('0x18a5')]();})[_0x52e61b('0xe19')](function(){return _0x229228['getLists']();})[_0x52e61b('0x223b')](function(){var _0x400094=_0x52e61b;_0x229228[_0x400094('0xd20')]=!![];})[_0x52e61b('0x23')](function(){var _0x13582a=_0x52e61b;_0x899b0a(),_0x276126(),_0x17c9d5['on'](_0x229228[_0x13582a('0x435')][_0x13582a('0x4e')]+_0x13582a('0x26c6'),_0x229228[_0x13582a('0x17ca')]),_0x17c9d5['on'](_0x229228[_0x13582a('0x435')][_0x13582a('0x4e')]+_0x13582a('0x939'),_0x229228[_0x13582a('0x17ca')]),_0x17c9d5['on'](_0x229228[_0x13582a('0x435')][_0x13582a('0x4e')]+_0x13582a('0x1b3'),_0x229228['onInteractionSave']),_0x17c9d5['on'](_0x229228[_0x13582a('0x435')][_0x13582a('0x4e')]+_0x13582a('0x12c3'),_0x229228[_0x13582a('0x6a4')]),_0x17c9d5['on'](_0x13582a('0x12d5')+_0x229228[_0x13582a('0x435')][_0x13582a('0x4e')]+_0x13582a('0xf7a'),_0x229228[_0x13582a('0x249b')]),_0x17c9d5['on'](_0x13582a('0x12d5')+_0x229228[_0x13582a('0x435')][_0x13582a('0x4e')]+_0x13582a('0x9a5'),_0x229228[_0x13582a('0x16b1')]),_0x229228[_0x13582a('0x435')][_0x13582a('0x1464')]=_0x229228['tab'][_0x13582a('0x1464')]?_0x229228['tab'][_0x13582a('0x1464')]:'',_0x229228[_0x13582a('0x13fd')]=!![],_0x229228[_0x13582a('0x435')][_0x13582a('0x4e')]===_0x13582a('0x26bf')&&(_0x229228['draft']=_0x474cc9[_0x13582a('0x12c5')](_0x229228['tab']['interaction']['id']),_0x229228[_0x13582a('0x435')]['isDraft']&&(_0x229228[_0x13582a('0x435')]['interaction']['closed']?(_0x474cc9[_0x13582a('0x1154')](_0x229228[_0x13582a('0x435')][_0x13582a('0xf6')]['id']),_0x229228[_0x13582a('0x1224')]=null):_0x280276()));}));}function _0x215667(_0x25832e){var _0x265bfb=_0x5a18e8;if(_0x25832e[_0x265bfb('0xef3')])return _0x32d445()[_0x265bfb('0x1c43')](_0x32d445()[_0x265bfb('0x65a')](_0x229228[_0x265bfb('0x1a77')]?_0x229228['faxAccounts']['rows']:[],'id'),_0x25832e[_0x265bfb('0xef3')]);else{if(_0x25832e[_0x265bfb('0xf26')])return _0x32d445()[_0x265bfb('0x1c43')](_0x32d445()[_0x265bfb('0x65a')](_0x229228['openchannelAccounts']?_0x229228['openchannelAccounts'][_0x265bfb('0x16a7')]:[],'id'),_0x25832e[_0x265bfb('0xf26')]);else{if(_0x25832e['SmsAccountId'])return _0x32d445()[_0x265bfb('0x1c43')](_0x32d445()[_0x265bfb('0x65a')](_0x229228['smsAccounts']?_0x229228[_0x265bfb('0x25db')][_0x265bfb('0x16a7')]:[],'id'),_0x25832e['SmsAccountId']);else{if(_0x25832e[_0x265bfb('0x220b')])return _0x32d445()[_0x265bfb('0x1c43')](_0x32d445()[_0x265bfb('0x65a')](_0x229228[_0x265bfb('0x14cf')]?_0x229228[_0x265bfb('0x14cf')][_0x265bfb('0x16a7')]:[],'id'),_0x25832e['WhatsappAccountId']);else{if(_0x25832e[_0x265bfb('0xa20')])return _0x32d445()['includes'](_0x32d445()[_0x265bfb('0x65a')](_0x229228[_0x265bfb('0x248b')]?_0x229228[_0x265bfb('0x248b')]['rows']:[],'id'),_0x25832e['MailAccountId']);else{if(_0x25832e[_0x265bfb('0x365')])return _0x32d445()[_0x265bfb('0x1c43')](_0x32d445()[_0x265bfb('0x65a')](_0x229228[_0x265bfb('0x607')]?_0x229228[_0x265bfb('0x607')]['rows']:[],'id'),_0x25832e['ChatWebsiteId']);else{if(_0x25832e['amaflags'])return!![];}}}}}}return![];}function _0x2215a7(_0x2310e1){var _0x2e7baa=_0x5a18e8,_0x30cd83;_0x229228[_0x2e7baa('0xf6')]['id']==_0x2310e1[_0x32d445()[_0x2e7baa('0x2077')](_0x229228['tab'][_0x2e7baa('0x4e')])+'InteractionId']&&(_0x229228[_0x2e7baa('0xf6')][_0x2e7baa('0x970')]&&(_0x30cd83=_0x32d445()[_0x2e7baa('0xf15')](_0x229228['interaction']['Users'],{'id':_0x2310e1[_0x2e7baa('0x43d')]})),!_0x30cd83&&_0x229228[_0x2e7baa('0xf6')][_0x2e7baa('0x970')]['push']({'id':_0x2310e1[_0x2e7baa('0x43d')]}));}function _0x586100(_0x2ee4be){var _0x2c8bc1=_0x5a18e8;_0x229228[_0x2c8bc1('0xf6')]['id']==_0x2ee4be[_0x32d445()[_0x2c8bc1('0x2077')](_0x229228[_0x2c8bc1('0x435')]['channel'])+_0x2c8bc1('0x1f6b')]&&(_0x229228[_0x2c8bc1('0xf6')][_0x2c8bc1('0x970')]&&_0x32d445()[_0x2c8bc1('0xa8b')](_0x229228[_0x2c8bc1('0xf6')][_0x2c8bc1('0x970')],{'id':_0x2ee4be[_0x2c8bc1('0x43d')]}));}function _0x5486c0(_0x2d5bb5){var _0x5aadae=_0x5a18e8;if(_0x2d5bb5){try{_0x32d445()[_0x5aadae('0x1f73')]['interpolate']=/{{([\s\S]+?)}}/g;var _0x1e83ed=_0x32d445()[_0x5aadae('0x12e2')](_0x2d5bb5[_0x5aadae('0x2')]),_0x9c0a63={'user':_0x229228[_0x5aadae('0x10c6')],'account':_0x229228[_0x5aadae('0xe8b')],'interaction':_0x229228[_0x5aadae('0xf6')],'contact':_0x229228[_0x5aadae('0xf6')]&&_0x229228[_0x5aadae('0xf6')][_0x5aadae('0x1286')]?_0x229228[_0x5aadae('0xf6')][_0x5aadae('0x1286')]:{}};_0x229228[_0x5aadae('0x435')][_0x5aadae('0x1464')]+='\x20'+_0x1e83ed(_0x9c0a63),_0x229228[_0x5aadae('0x2130')][_0x5aadae('0xf4d')](_0x229228['tab']['areaText']);}catch(_0x367012){_0x229228[_0x5aadae('0x435')][_0x5aadae('0x1464')]+='\x20'+_0x2d5bb5[_0x5aadae('0x2')],_0x229228['ctrlMethods'][_0x5aadae('0xf4d')](_0x229228[_0x5aadae('0x435')][_0x5aadae('0x1464')]);}_0x229228[_0x5aadae('0x694')]=null,_0x229228['changeDisplayCannedAnswerInputValue']();}}function _0x40a3be(_0x101bae){var _0x3a99e5=_0x5a18e8,_0xecea06=_0x4bc981['defer'](),_0x3f4e3f=[],_0x407baa={},_0x1f0a14=_0x229228[_0x3a99e5('0x435')][_0x3a99e5('0x4e')]===_0x3a99e5('0x17cc')?_0x3a99e5('0x365'):_0x32d445()[_0x3a99e5('0xbf6')](_0x229228[_0x3a99e5('0x435')][_0x3a99e5('0x4e')])+_0x3a99e5('0x21f3');return _0x407baa[_0x3a99e5('0x2891')]=_0x101bae,_0x407baa[_0x1f0a14]=_0x229228[_0x3a99e5('0xe8b')]['id'],_0x354fff[_0x3a99e5('0x250b')][_0x3a99e5('0x22d5')](_0x407baa)['$promise'][_0x3a99e5('0xe19')](function(_0x2c1e23){var _0x18ae57=_0x3a99e5;return _0x3f4e3f=_0x32d445()['concat'](_0x3f4e3f,_0x2c1e23[_0x18ae57('0x16a7')]),_0x354fff[_0x18ae57('0x250b')][_0x18ae57('0x22d5')]({'filter':_0x101bae})['$promise'];})['then'](function(_0x2ea2c2){var _0x52d3c6=_0x3a99e5;_0x3f4e3f=_0x32d445()[_0x52d3c6('0x1007')](_0x3f4e3f,_0x32d445()[_0x52d3c6('0x2891')](_0x2ea2c2[_0x52d3c6('0x16a7')],function(_0x411aab){var _0x266e5a=_0x52d3c6;return!_0x411aab[_0x266e5a('0xa20')]&&!_0x411aab[_0x266e5a('0xef3')]&&!_0x411aab[_0x266e5a('0x26a9')]&&!_0x411aab['WhatsappAccountId']&&!_0x411aab['OpenchannelAccountId']&&!_0x411aab[_0x266e5a('0x365')];})),_0xecea06[_0x52d3c6('0xcd6')](_0x3f4e3f);})[_0x3a99e5('0x223b')](function(_0x15e077){_0xecea06['reject'](_0x15e077);}),_0xecea06[_0x3a99e5('0x9c8')];}function _0xfec0ff(_0x3d2ebe,_0x637f71){var _0x5270f9=_0x5a18e8;try{_0x229228['tab']&&!_0x229228['tab']['spy']&&_0x18dc4a['$parent'][_0x5270f9('0x5cf')][_0x5270f9('0x5cf')]['vm']['addContactTab'](_0x637f71||_0x229228[_0x5270f9('0xd9a')]);}catch(_0x55554f){_0x4641ab['error']({'title':_0x5270f9('0x179'),'msg':_0x5270f9('0x1063')});}}function _0x5d590a(_0x50e98f,_0xc2f966){var _0x463efe=_0x5a18e8;try{if(_0xc2f966[_0x463efe('0xa20')])return _0x18dc4a[_0x463efe('0x5cf')][_0x463efe('0x5cf')][_0x463efe('0x5cf')]['vm'][_0x463efe('0xa31')](_0x463efe('0x26bf'),_0xc2f966);else{if(_0xc2f966[_0x463efe('0x365')])return _0x18dc4a[_0x463efe('0x5cf')][_0x463efe('0x5cf')][_0x463efe('0x5cf')]['vm'][_0x463efe('0xa31')]('chat',_0xc2f966);else{if(_0xc2f966[_0x463efe('0x26a9')])return _0x18dc4a[_0x463efe('0x5cf')][_0x463efe('0x5cf')][_0x463efe('0x5cf')]['vm'][_0x463efe('0xa31')](_0x463efe('0x2801'),_0xc2f966);else{if(_0xc2f966[_0x463efe('0x220b')])return _0x18dc4a[_0x463efe('0x5cf')][_0x463efe('0x5cf')][_0x463efe('0x5cf')]['vm'][_0x463efe('0xa31')](_0x463efe('0x4b7'),_0xc2f966);else{if(_0xc2f966[_0x463efe('0xf26')])return _0x18dc4a['$parent'][_0x463efe('0x5cf')][_0x463efe('0x5cf')]['vm'][_0x463efe('0xa31')]('openchannel',_0xc2f966);else{if(_0xc2f966['FaxAccountId'])return _0x18dc4a[_0x463efe('0x5cf')][_0x463efe('0x5cf')]['$parent']['vm']['addInteractionTab'](_0x463efe('0x625'),_0xc2f966);}}}}}}catch(_0x244925){_0x4641ab['error']({'title':_0x463efe('0x7b5'),'msg':'Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction'});}}function _0x55b51b(){var _0x374c6b=_0x5a18e8;_0x4f6e20[_0x374c6b('0x26b2')]({'controller':'TagInteractionDialogController','controllerAs':'vm','templateUrl':_0x21a212,'parent':angular[_0x374c6b('0x24a1')](_0xecd676[_0x374c6b('0x19b2')]),'clickOutsideToClose':!![],'skipHide':Boolean(_0x229228[_0x374c6b('0x435')][_0x374c6b('0x127c')]),'resolve':{'tags':[_0x374c6b('0x292'),function _0x26fa35(_0x3064cc){var _0xb2a836=_0x374c6b;return _0x3064cc[_0xb2a836('0xcd6')](_0xb2a836('0xd04'),{'sort':'name','nolimit':!![],'fields':_0xb2a836('0x121b')});}]},'locals':{'channel':_0x229228[_0x374c6b('0x435')][_0x374c6b('0x4e')],'interaction':_0x229228[_0x374c6b('0x435')][_0x374c6b('0xf6')]}});}function _0x4c7633(){var _0x324743=_0x5a18e8,_0x2a1ad7=_0x229228[_0x324743('0x10c6')][_0x324743('0x1b8d')]||_0x229228[_0x324743('0x10c6')]['chatPause']||_0x229228['user'][_0x324743('0x2531')]||_0x229228[_0x324743('0x10c6')][_0x324743('0xf2a')]||_0x229228[_0x324743('0x10c6')]['faxPause'],_0x281a38=!_0x229228['tab'][_0x324743('0xf6')][_0x324743('0x1e4e')][_0x324743('0x1dc8')];_0x4f6e20[_0x324743('0x26b2')]({'controller':_0x324743('0x80'),'controllerAs':'vm','templateUrl':_0x1d0f9d,'parent':angular[_0x324743('0x24a1')](_0xecd676[_0x324743('0x19b2')]),'clickOutsideToClose':_0x281a38,'escapeToClose':_0x281a38,'onRemoving':function _0x27d110(){var _0x29f753=_0x324743;_0x229228[_0x29f753('0x10c6')]&&_0x229228['interaction'][_0x29f753('0x1e4e')][_0x29f753('0x1dc8')]&&!_0x2a1ad7&&_0x354fff[_0x29f753('0x10c6')]['unpause']({'id':_0x229228['user']['id']})[_0x29f753('0xe59')][_0x29f753('0x223b')](function(_0x4f5c30){console['error'](_0x4f5c30);});},'locals':{'user':_0x229228['user'],'channel':_0x229228['tab']['channel'],'interaction':_0x229228[_0x324743('0x435')][_0x324743('0xf6')]}})[_0x324743('0xe19')](function(_0x16a2c9){var _0x1eba9e=_0x324743;_0x229228[_0x1eba9e('0x435')][_0x1eba9e('0x15b9')]=Boolean(_0x16a2c9),_0x16a2c9&&_0x18dc4a[_0x1eba9e('0x5cf')][_0x1eba9e('0x5cf')][_0x1eba9e('0x5cf')]['vm'][_0x1eba9e('0x242c')](_0x229228[_0x1eba9e('0x435')]);});}function _0x5d9302(_0x4a329e,_0x2fa3c1){var _0xf51fcc=_0x5a18e8;_0x229228[_0xf51fcc('0x435')][_0xf51fcc('0x27e8')]=_0x2fa3c1,_0x4f6e20[_0xf51fcc('0x26b2')]({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x518a61,'parent':angular[_0xf51fcc('0x24a1')](_0xecd676[_0xf51fcc('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x229228['account'],'message':_0x229228[_0xf51fcc('0x435')][_0xf51fcc('0x27e8')],'type':_0x4a329e,'interaction':_0x229228[_0xf51fcc('0xf6')]},'fullscreen':!![],'skipHide':Boolean(_0x229228[_0xf51fcc('0x435')][_0xf51fcc('0x127c')])})[_0xf51fcc('0xe19')](function(_0xe54be0){var _0x3302d3=_0xf51fcc;if(_0xe54be0){if(_0xe54be0[_0x3302d3('0x27e8')]&&_0xe54be0[_0x3302d3('0x27e8')][_0x3302d3('0x11a7')])_0x229228[_0x3302d3('0x1224')]?_0x474cc9[_0x3302d3('0xa70')]({'id':_0x229228[_0x3302d3('0x1224')]['id'],'channel':'mail','account':_0x229228[_0x3302d3('0xe8b')],'message':_0xe54be0[_0x3302d3('0x27e8')],'contact':_0x229228[_0x3302d3('0xd9a')],'interaction':_0x229228['interaction']}):_0x474cc9[_0x3302d3('0xaf8')]({'channel':_0x3302d3('0x26bf'),'account':_0x229228['account'],'message':_0xe54be0[_0x3302d3('0x27e8')],'contact':_0x229228['contact'],'interaction':_0x229228['interaction']}),_0x229228[_0x3302d3('0x1224')]=_0x474cc9[_0x3302d3('0x12c5')](_0x229228[_0x3302d3('0x435')][_0x3302d3('0xf6')]['id']);else{var _0x4d011a=_0xe54be0;_0x4d011a&&_0x389bf5(_0x4d011a),_0x4d011a['Interaction']&&_0x229228[_0x3302d3('0xf6')]&&_0x229228['interaction']['id']&&(_0x4d011a[_0x3302d3('0x764')]['id']=_0x229228[_0x3302d3('0xf6')]['id'],_0x354fff['mailInteraction'][_0x3302d3('0xa70')](_0x4d011a[_0x3302d3('0x764')])[_0x3302d3('0xe59')]['then'](function(_0x4b5a85){var _0x504250=_0x3302d3;if(_0x4b5a85&&_0x4b5a85[_0x504250('0x1835')])_0x229228[_0x504250('0x435')][_0x504250('0x15b9')]=!![],_0x229228[_0x504250('0xf6')]['closed']=!![],_0x4c7633();else _0x4d011a['Interaction'][_0x504250('0x164d')]!==null&&(_0x229228[_0x504250('0x435')][_0x504250('0x15b9')]=!![],_0x229228['tab'][_0x504250('0xf6')]['substatus']=_0x4d011a[_0x504250('0x764')][_0x504250('0x164d')],_0x18dc4a['$parent'][_0x504250('0x5cf')][_0x504250('0x5cf')]['vm'][_0x504250('0x242c')](_0x229228[_0x504250('0x435')]));})['catch'](function(_0x43a410){var _0x3f79df=_0x3302d3;console[_0x3f79df('0x8c8')](_0x43a410);}));}}})[_0xf51fcc('0x23')](function(){var _0xbde94b=_0xf51fcc;_0x229228[_0xbde94b('0x435')][_0xbde94b('0xf12')]=![];});}function _0x22ed1f(_0x4518cf,_0x4c3a02){var _0x599e78=_0x5a18e8;if(_0x4c3a02['inReplyTo']){var _0x7d70a2=_0x32d445()[_0x599e78('0xf15')](_0x229228[_0x599e78('0x1335')][_0x599e78('0x16a7')],{'messageId':_0x4c3a02[_0x599e78('0x2355')]});if(_0x7d70a2)_0x5d9302(_0x4518cf,_0x7d70a2);else return _0x354fff[_0x599e78('0x1810')][_0x599e78('0x22d5')]({'messageId':_0x4c3a02['inReplyTo']})['$promise'][_0x599e78('0xe19')](function(_0x152c85){var _0x4abb58=_0x599e78;_0x5d9302(_0x4518cf,_0x152c85&&_0x152c85[_0x4abb58('0x148b')]?_0x152c85[_0x4abb58('0x16a7')][0x0]:undefined);})[_0x599e78('0x223b')](function(_0x22aa41){var _0x5281c5=_0x599e78;console[_0x5281c5('0x8c8')](_0x22aa41),_0x5d9302(_0x4518cf,undefined);});}else _0x5d9302(_0x4518cf,_0x4c3a02);}function _0x18113c(_0x350596){var _0xd49256=_0x5a18e8,_0x1523f6={'to':[]};_0x1523f6['to'][_0xd49256('0xb76')](_0x229228[_0xd49256('0xd9a')][_0xd49256('0x625')]),_0x4f6e20[_0xd49256('0x26b2')]({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x4d4a24,'parent':angular['element'](_0xecd676[_0xd49256('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x229228[_0xd49256('0xe8b')],'message':_0x1523f6,'type':_0x350596},'fullscreen':!![]})[_0xd49256('0xe19')](function(_0x3e90cf){var _0x7968d8=_0xd49256;return _0x354fff[_0x7968d8('0x688')][_0x7968d8('0x1ee')]({'id':_0x229228[_0x7968d8('0xe8b')]['id']},_0x3e90cf)[_0x7968d8('0xe59')][_0x7968d8('0xe19')](function(_0x126b4a){var _0x2ee80e=_0x7968d8;_0x4641ab['success']({'title':_0x2ee80e('0x1c0d'),'msg':'Message\x20has\x20been\x20sent!'}),_0x18dc4a[_0x2ee80e('0x5cf')]['vm'][_0x2ee80e('0xa31')](_0x2ee80e('0x625'),_0x126b4a);})[_0x7968d8('0x223b')](function(_0x3949ef){var _0x2dde3f=_0x7968d8;if(_0x3949ef['data']&&_0x3949ef[_0x2dde3f('0x11d0')]['errors']&&_0x3949ef[_0x2dde3f('0x11d0')][_0x2dde3f('0xcd2')]['length'])for(var _0x8f002c=0x0;_0x8f002c<_0x3949ef[_0x2dde3f('0x11d0')][_0x2dde3f('0xcd2')]['length'];_0x8f002c++){_0x4641ab['error']({'title':_0x3949ef[_0x2dde3f('0x11d0')][_0x2dde3f('0xcd2')][_0x8f002c][_0x2dde3f('0x62e')],'msg':_0x3949ef[_0x2dde3f('0x11d0')]['errors'][_0x8f002c]['message']});}else _0x4641ab[_0x2dde3f('0x8c8')]({'title':_0x2dde3f('0x5a1'),'msg':_0x3949ef['data']?JSON[_0x2dde3f('0x3ad')](_0x3949ef[_0x2dde3f('0x11d0')]):_0x3949ef['message']||_0x3949ef['toString']()});});});}function _0x581868(_0x277355,_0x566bd0){var _0x29a571=_0x5a18e8;_0x4f6e20[_0x29a571('0x26b2')]({'controller':'ComposeSmsInteractionDialogController','controllerAs':'vm','templateUrl':_0x2496d8,'parent':angular[_0x29a571('0x24a1')](_0xecd676[_0x29a571('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x229228[_0x29a571('0xe8b')],'message':_0x566bd0,'type':_0x277355},'fullscreen':!![],'skipHide':Boolean(_0x229228[_0x29a571('0x435')][_0x29a571('0x127c')])})[_0x29a571('0xe19')](function(_0x32c6c7){_0x32c6c7&&_0x389bf5(_0x32c6c7);});}function _0x5614c6(_0x3bcf21,_0x45cc26){var _0x132b70=_0x5a18e8;_0x4f6e20['show']({'controller':_0x132b70('0x18e6'),'controllerAs':'vm','templateUrl':_0x57724a,'parent':angular[_0x132b70('0x24a1')](_0xecd676[_0x132b70('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x229228[_0x132b70('0xe8b')],'message':_0x45cc26,'type':_0x3bcf21},'fullscreen':!![],'skipHide':Boolean(_0x229228[_0x132b70('0x435')][_0x132b70('0x127c')])})[_0x132b70('0xe19')](function(_0x163bb9){_0x163bb9&&_0x389bf5(_0x163bb9);});}function _0x3417cb(){var _0x19b390=_0x5a18e8;if(_0x229228[_0x19b390('0xf6')]){var _0x51b763=_0x32d445()[_0x19b390('0xa5b')](_0x229228[_0x19b390('0x1335')][_0x19b390('0x16a7')],function(_0x1002fd){return _0x1002fd['direction']==='in';});_0x51b763?_0x4f6e20[_0x19b390('0x26b2')]({'controller':_0x19b390('0x15b0'),'controllerAs':'vm','templateUrl':_0x798c0e,'parent':angular[_0x19b390('0x24a1')](_0xecd676[_0x19b390('0x19b2')]),'clickOutsideToClose':![],'locals':{'account':_0x229228[_0x19b390('0xe8b')],'interaction':_0x229228[_0x19b390('0xf6')],'message':_0x51b763,'channel':_0x229228[_0x19b390('0x435')][_0x19b390('0x4e')]}})['then'](function(_0x446818){var _0x1015cb=_0x19b390;_0x229228[_0x1015cb('0x435')][_0x1015cb('0x15b9')]=Boolean(_0x446818),_0x446818&&_0x18dc4a[_0x1015cb('0x5cf')][_0x1015cb('0x5cf')][_0x1015cb('0x5cf')]['vm'][_0x1015cb('0x242c')](_0x229228['tab']);}):_0x4641ab['error']({'title':'Invalid\x20transfer','msg':'Message\x20not\x20found!'});}}function _0x245181(_0x225739){var _0x234d25=_0x5a18e8,_0x21ab73={},_0xe23e4=_0x229228[_0x234d25('0x435')]['channel']===_0x234d25('0x17cc')?_0x234d25('0x365'):_0x32d445()[_0x234d25('0xbf6')](_0x229228[_0x234d25('0x435')][_0x234d25('0x4e')])+_0x234d25('0x21f3');return _0x21ab73[_0xe23e4]=_0x229228['interaction'][_0xe23e4][_0x234d25('0x94f')](),_0x21ab73[_0x32d445()['capitalize'](_0x229228['tab']['channel'])+'InteractionId']=_0x229228[_0x234d25('0xf6')]['id'],(_0x229228['tab'][_0x234d25('0x4e')]===_0x234d25('0x2801')||_0x229228[_0x234d25('0x435')][_0x234d25('0x4e')]===_0x234d25('0x4b7'))&&(_0x21ab73[_0x234d25('0x1ef5')]=_0x229228[_0x234d25('0xf6')]['phone']),_0x225739&&(_0x21ab73[_0x234d25('0x43d')]=_0x229228[_0x234d25('0x10c6')]['id'],_0x21ab73[_0x234d25('0x23c1')]=_0x229228[_0x234d25('0xf6')][_0x234d25('0x23c1')],_0x21ab73[_0x234d25('0x19b2')]=_0x225739),_0x21ab73;}function _0x384bab(_0x5c12a9){var _0xf3642=_0x5a18e8;if(_0x5c12a9[_0xf3642('0x1aea')]>_0x3bcb1e)return _0x4641ab[_0xf3642('0x8c8')]({'title':_0xf3642('0x16c9'),'msg':_0xf3642('0x275f')+_0x366664+'MB'}),![];return!![];}function _0x4b407a(_0xb6a29d,_0x4628e5){var _0x5c1bd2=_0x5a18e8,_0x16e9d8=JSON[_0x5c1bd2('0x118e')](_0x4628e5),_0x47fb06=_0x16e9d8['name'];_0x229228[_0x5c1bd2('0x435')][_0x5c1bd2('0x4e')]===_0x5c1bd2('0x17cc')&&(_0x47fb06=_0x5c1bd2('0x267d')+(_0x229228['account']['remote']?_0x229228[_0x5c1bd2('0xe8b')][_0x5c1bd2('0x21bc')]:_0x44cf28['protocol']()+_0x5c1bd2('0x21a8')+_0x44cf28['host']())+_0x5c1bd2('0x23d7')+_0x229228['interaction']['id']+_0x5c1bd2('0x11b0')+_0x16e9d8['id']+_0x5c1bd2('0x2291')+_0x229228[_0x5c1bd2('0xe8b')][_0x5c1bd2('0x1fbd')]+'\x22\x20target=\x22_self\x22>'+_0x16e9d8[_0x5c1bd2('0x2623')]+_0x5c1bd2('0x20c6')),_0x389bf5({'body':_0x47fb06,'AttachmentId':_0x16e9d8['id']});}function _0x1f0834(){var _0x53db66=_0x5a18e8;_0x229228['ngFlow']['flow']['opts']['headers']={'X-Requested-With':_0x53db66('0xdf4'),'Authorization':_0x53db66('0x17b7')+_0xf3b6e9[_0x53db66('0x22d5')]('motion.token')},_0x229228['ngFlow']['flow']['upload']();}function _0x3705c0(_0x8622da,_0x5057d2){var _0x400552=_0x5a18e8;if(_0x8622da&&_0x8622da['keyCode']===0xd&&_0x8622da['shiftKey'])return;if(_0x8622da&&_0x8622da[_0x400552('0xa47')]!==0xd)return;if(_0x5057d2['trim']()==='')return;_0x389bf5(_0x245181(_0x5057d2[_0x400552('0x1b42')](/\n$/,'')));}function _0x276126(){var _0x5056b3=_0x5a18e8;_0x229228['tab'][_0x5056b3('0x4e')]!==_0x5056b3('0x26bf')&&_0x1b4175(function(){var _0x1d6190=_0x5056b3,_0x4744f0=angular[_0x1d6190('0x24a1')](_0xecd676[_0x1d6190('0xf15')](_0x1d6190('0x128d')+_0x229228[_0x1d6190('0x435')]['id']+'\x27]'));_0x4744f0&&_0x4744f0[0x0]&&(_0x4744f0[0x0][_0x1d6190('0x1e15')]=_0x4744f0[0x0][_0x1d6190('0x15c4')]);},0x0);}function _0x33472b(_0x5042dd){var _0x282828=_0x5a18e8,_0x44399c=_0x282828('0xc14');if(_0x5042dd){if(_0x5042dd[_0x282828('0x1338')]==='in')return _0x5042dd[_0x282828('0x1286')]?_0x5042dd[_0x282828('0x1286')]['firstName']||_0x282828('0x242f'):_0x44399c;else{if(_0x5042dd[_0x282828('0x43d')])return _0x229228[_0x282828('0xbee')]?_0x229228[_0x282828('0xbee')][_0x5042dd['UserId']]:_0x44399c;}return'System'||0x0;}}function _0xe2d506(_0x4e4ac5,_0x37288b){var _0x558364=_0x5a18e8;_0x229228[_0x558364('0x435')][_0x558364('0x4e')]&&_0x4e4ac5['id']&&_0x354fff[_0x229228['tab'][_0x558364('0x4e')]+'Message'][_0x558364('0x1d1e')]({'id':_0x4e4ac5['id'],'attachments':_0x37288b})[_0x558364('0xe59')][_0x558364('0xe19')](function(_0x1fac59){var _0x563f4d=_0x558364,_0x2c9b6e=[_0x1fac59[_0x563f4d('0x17ab')]],_0x2b1028='download',_0x267690=new Blob(_0x2c9b6e,{'type':_0x1fac59[_0x563f4d('0x62e')]});_0x2b1028=_0x229228[_0x563f4d('0x435')][_0x563f4d('0x4e')]+'-message'+_0x4e4ac5['id']+_0x563f4d('0x143d');var _0x36f591=window['document']['createElement']('a');_0x36f591['setAttribute'](_0x563f4d('0xcb7'),URL[_0x563f4d('0x1360')](_0x267690)),_0x36f591[_0x563f4d('0xede')](_0x563f4d('0x1d1e'),_0x2b1028),document[_0x563f4d('0x19b2')]['appendChild'](_0x36f591),_0x36f591[_0x563f4d('0xfe7')]();})[_0x558364('0x223b')](function(_0x317a2e){var _0x124876=_0x558364;if(_0x317a2e[_0x124876('0x11d0')]&&_0x317a2e[_0x124876('0x11d0')][_0x124876('0xcd2')]&&_0x317a2e[_0x124876('0x11d0')][_0x124876('0xcd2')][_0x124876('0x25ae')])for(var _0x20bf30=0x0;_0x20bf30<_0x317a2e[_0x124876('0x11d0')][_0x124876('0xcd2')][_0x124876('0x25ae')];_0x20bf30+=0x1){_0x4641ab['error']({'title':_0x317a2e['data'][_0x124876('0xcd2')][_0x20bf30][_0x124876('0x62e')],'msg':_0x317a2e['data']['errors'][_0x20bf30][_0x124876('0x27e8')]});}else _0x4641ab[_0x124876('0x8c8')]({'title':_0x317a2e[_0x124876('0x2833')]?_0x124876('0x27f2')+_0x317a2e[_0x124876('0x2833')]+_0x124876('0x1b7c')+_0x317a2e[_0x124876('0x1fd7')]:_0x124876('0x44f'),'msg':_0x317a2e[_0x124876('0x11d0')]?JSON[_0x124876('0x3ad')](_0x317a2e['data']['message']):_0x317a2e['toString']()});});}function _0x13cf58(_0x2e318e,_0x52687f){var _0xb43d85=_0x5a18e8;_0x229228[_0xb43d85('0x435')]['channel']&&_0x2e318e['id']&&_0x354fff[_0x229228[_0xb43d85('0x435')][_0xb43d85('0x4e')]+_0xb43d85('0x764')][_0xb43d85('0x1d1e')]({'id':_0x2e318e['id'],'attachments':_0x52687f})[_0xb43d85('0xe59')][_0xb43d85('0xe19')](function(_0x1ecbfa){var _0x51bd81=_0xb43d85,_0x49c48e=[_0x1ecbfa[_0x51bd81('0x17ab')]],_0x2534bb=_0x229228[_0x51bd81('0x435')][_0x51bd81('0x4e')]+'-interaction'+_0x2e318e['id']+_0x51bd81('0x985'),_0x5e0d07=new Blob(_0x49c48e,{'type':_0x1ecbfa[_0x51bd81('0x62e')]}),_0x2052bf=window[_0x51bd81('0x18fa')][_0x51bd81('0x9a1')]('a');_0x2052bf[_0x51bd81('0xede')](_0x51bd81('0xcb7'),URL['createObjectURL'](_0x5e0d07)),_0x2052bf[_0x51bd81('0xede')](_0x51bd81('0x1d1e'),_0x2534bb),document[_0x51bd81('0x19b2')]['appendChild'](_0x2052bf),_0x2052bf[_0x51bd81('0xfe7')]();})[_0xb43d85('0x223b')](function(_0x36b8ae){var _0x3673ef=_0xb43d85;if(_0x36b8ae[_0x3673ef('0x11d0')]&&_0x36b8ae['data'][_0x3673ef('0xcd2')]&&_0x36b8ae[_0x3673ef('0x11d0')][_0x3673ef('0xcd2')][_0x3673ef('0x25ae')])for(var _0x44441d=0x0;_0x44441d<_0x36b8ae[_0x3673ef('0x11d0')][_0x3673ef('0xcd2')][_0x3673ef('0x25ae')];_0x44441d+=0x1){_0x4641ab[_0x3673ef('0x8c8')]({'title':_0x36b8ae[_0x3673ef('0x11d0')][_0x3673ef('0xcd2')][_0x44441d]['type'],'msg':_0x36b8ae[_0x3673ef('0x11d0')][_0x3673ef('0xcd2')][_0x44441d][_0x3673ef('0x27e8')]});}else _0x4641ab[_0x3673ef('0x8c8')]({'title':_0x36b8ae['status']?'API:'+_0x36b8ae['status']+_0x3673ef('0x1b7c')+_0x36b8ae[_0x3673ef('0x1fd7')]:_0x3673ef('0x20a8'),'msg':_0x36b8ae[_0x3673ef('0x11d0')]?JSON[_0x3673ef('0x3ad')](_0x36b8ae[_0x3673ef('0x11d0')][_0x3673ef('0x27e8')]):_0x36b8ae['toString']()});});}function _0x389bf5(_0x1ed7ee){var _0x5310d7=_0x5a18e8;if(_0x1ed7ee)return _0x1ed7ee[_0x229228[_0x5310d7('0x435')]['channel']===_0x5310d7('0x17cc')?_0x5310d7('0x365'):_0x32d445()[_0x5310d7('0xbf6')](_0x229228[_0x5310d7('0x435')][_0x5310d7('0x4e')])+'AccountId']=_0x229228['interaction'][_0x229228[_0x5310d7('0x435')][_0x5310d7('0x4e')]===_0x5310d7('0x17cc')?'ChatWebsiteId':_0x32d445()[_0x5310d7('0xbf6')](_0x229228[_0x5310d7('0x435')][_0x5310d7('0x4e')])+_0x5310d7('0x21f3')],_0x1ed7ee[_0x32d445()[_0x5310d7('0xbf6')](_0x229228[_0x5310d7('0x435')][_0x5310d7('0x4e')])+_0x5310d7('0x1f6b')]=_0x229228[_0x5310d7('0xf6')]['id'],_0x1ed7ee[_0x5310d7('0x43d')]=_0x229228[_0x5310d7('0x10c6')]['id'],_0x1ed7ee['ContactId']=_0x229228[_0x5310d7('0xf6')]['ContactId'],_0x1ed7ee[_0x5310d7('0x1338')]=_0x5310d7('0x2101'),_0x1ed7ee['secret']=Boolean(_0x229228['tab'][_0x5310d7('0x127c')]||_0x1ed7ee[_0x5310d7('0x17d9')]),_0x354fff[_0x229228[_0x5310d7('0x435')][_0x5310d7('0x4e')]+_0x5310d7('0x2164')][_0x5310d7('0xe5e')](_0x1ed7ee)[_0x5310d7('0xe59')][_0x5310d7('0xe19')](function(_0xea9595){var _0xc218f5=_0x5310d7;if(_0xea9595&&_0xea9595['id']){if(!_0x32d445()[_0xc218f5('0x14b4')](_0x1ed7ee['attachments'])){var _0x346329=[];for(var _0x37eee3=0x0;_0x37eee3<_0x1ed7ee['attachments']['length'];_0x37eee3++){var _0x41ad46=_0x1ed7ee[_0xc218f5('0x20f')][_0x37eee3];_0x41ad46[_0xc218f5('0x1542')]?_0x346329[_0xc218f5('0xb76')](_0x354fff[_0xc218f5('0x1a47')]['clone']({'id':_0x41ad46['id']},{'name':_0x41ad46['name'],'basename':_0x41ad46['basename'],'type':_0x41ad46[_0xc218f5('0x62e')],'MailMessageId':_0xea9595['id']})[_0xc218f5('0xe59')]):_0x346329[_0xc218f5('0xb76')](_0x354fff[_0xc218f5('0x1a47')][_0xc218f5('0xa70')]({'id':_0x41ad46['id']},{'MailMessageId':_0xea9595['id']})['$promise']);}return _0x4bc981[_0xc218f5('0xf0e')](_0x346329);}}})[_0x5310d7('0x223b')](function(_0x1f781d){var _0xd529be=_0x5310d7;_0x4641ab['error']({'title':_0x1f781d[_0xd529be('0x2833')]?'API:'+_0x1f781d[_0xd529be('0x2833')]+_0xd529be('0x1b7c')+_0x1f781d[_0xd529be('0x1fd7')]:_0xd529be('0x336'),'msg':_0x1f781d[_0xd529be('0x11d0')]?JSON[_0xd529be('0x3ad')](_0x1f781d['data']):_0x1f781d['toString']()});})[_0x5310d7('0x23')](function(){var _0x38ed93=_0x5310d7;_0x229228['tab'][_0x38ed93('0x4e')]===_0x38ed93('0x26bf')&&(_0x1ed7ee[_0x38ed93('0xf12')]&&(_0x474cc9[_0x38ed93('0x1154')](_0x229228[_0x38ed93('0xf6')]['id']),_0x229228['draft']=null)),_0x229228[_0x38ed93('0x435')]['areaText']='',_0x276126();});}function _0x355ebe(_0x17bc72){var _0x387c5d=_0x5a18e8;_0x229228[_0x387c5d('0x435')][_0x387c5d('0x4e')]&&_0x229228[_0x387c5d('0xf6')]&&_0x229228[_0x387c5d('0xf6')]['id']&&_0x354fff[_0x229228['tab']['channel']+_0x387c5d('0x764')][_0x387c5d('0xa70')]({'id':_0x229228[_0x387c5d('0xf6')]['id'],'substatus':_0x17bc72})['$promise']['catch'](function(_0x22613c){var _0x544d6=_0x387c5d;console[_0x544d6('0x8c8')](_0x22613c);});}function _0x2b98ad(){var _0x2e4c97=_0x5a18e8;if(_0x229228[_0x2e4c97('0x435')][_0x2e4c97('0x4e')]&&_0x229228[_0x2e4c97('0xf6')]&&_0x229228[_0x2e4c97('0xf6')]['id']){if(_0x229228[_0x2e4c97('0x88f')][_0x2e4c97('0x25ae')])for(var _0x33367f=0x0;_0x33367f<_0x229228[_0x2e4c97('0x88f')][_0x2e4c97('0x25ae')];_0x33367f+=0x1){_0x354fff[_0x229228[_0x2e4c97('0x435')][_0x2e4c97('0x4e')]+_0x2e4c97('0x2164')][_0x2e4c97('0xa70')]({'id':_0x229228[_0x2e4c97('0x88f')][_0x33367f],'read':![],'UserId':null});}else for(var _0x5ebb66=0x0;_0x5ebb66<_0x229228['messages'][_0x2e4c97('0x16a7')][_0x2e4c97('0x25ae')];_0x5ebb66+=0x1){if(_0x229228[_0x2e4c97('0x1335')][_0x2e4c97('0x16a7')][_0x5ebb66][_0x2e4c97('0x1338')]==='in'){_0x229228[_0x2e4c97('0x1335')]['rows'][_0x5ebb66]['UserId']===_0x229228['user']['id']?_0x354fff[_0x229228[_0x2e4c97('0x435')][_0x2e4c97('0x4e')]+_0x2e4c97('0x2164')]['update']({'id':_0x229228[_0x2e4c97('0x1335')][_0x2e4c97('0x16a7')][_0x5ebb66]['id'],'read':![],'UserId':null}):_0x4641ab[_0x2e4c97('0x8c8')]({'title':'You\x20can\x27t\x20mark\x20as\x20unread','msg':'You\x20are\x20not\x20the\x20owner\x20of\x20the\x20last\x20message!'});break;}}}_0x229228[_0x2e4c97('0x435')][_0x2e4c97('0x15b9')]=!![],_0x18dc4a[_0x2e4c97('0x5cf')]['$parent'][_0x2e4c97('0x5cf')]['vm'][_0x2e4c97('0x242c')](_0x229228[_0x2e4c97('0x435')]);}function _0x48d1e6(_0x514189){var _0x5e2742=_0x5a18e8;if(_0x514189&&_0x229228['interaction']['id']!==_0x514189['id'])return;_0x514189[_0x5e2742('0x1835')]&&(_0x229228[_0x5e2742('0x435')][_0x5e2742('0x15b9')]=!![]),_0x32d445()[_0x5e2742('0x1d8')](_0x229228[_0x5e2742('0xf6')],_0x514189);}function _0x903801(_0x3aaec){var _0x23680a=_0x5a18e8;if(_0x3aaec&&_0x229228[_0x23680a('0xf6')]['id']!=_0x3aaec[_0x32d445()[_0x23680a('0xbf6')](_0x229228[_0x23680a('0x435')]['channel'])+_0x23680a('0x1f6b')])return;var _0x4f7f95=![];_0x229228['messages']?_0x4f7f95=_0x32d445()[_0x23680a('0xf15')](_0x229228[_0x23680a('0x1335')][_0x23680a('0x16a7')],{'id':_0x3aaec['id']}):_0x229228[_0x23680a('0x1335')]={'rows':[],'count':0x0},_0x4f7f95?_0x32d445()['merge'](_0x4f7f95,_0x3aaec):(_0x229228['tab'][_0x23680a('0x4e')]===_0x23680a('0x26bf')?_0x229228[_0x23680a('0x1335')][_0x23680a('0x16a7')][_0x23680a('0x14c9')](_0x3aaec):_0x229228['messages'][_0x23680a('0x16a7')]['push'](_0x3aaec),_0x276126());}function _0x21bf54(_0x31e9f0){var _0x1030fd=_0x5a18e8;switch(_0x31e9f0){case'chat':return _0x1030fd('0x212');case _0x1030fd('0x26bf'):return _0x1030fd('0x8e3');case'sms':return _0x1030fd('0x470');case _0x1030fd('0x4b7'):return _0x1030fd('0x12b6');case'openchannel':return _0x1030fd('0x213f');case _0x1030fd('0x625'):return'icon-deskphone';default:return'icon-hangouts';}}function _0x37a0de(_0x34fad6){var _0x481ff5=_0x5a18e8;switch(_0x34fad6){case _0x481ff5('0x17cc'):return'green-A700';case'mail':return'teal';case _0x481ff5('0x2801'):return _0x481ff5('0x16c3');case _0x481ff5('0xaf2'):return _0x481ff5('0xed0');case _0x481ff5('0x625'):return _0x481ff5('0x1eaa');case _0x481ff5('0x4b7'):return'lime-A700';default:return _0x481ff5('0x1a54');}}function _0x20ce96(_0x48a302){var _0x6fffce=_0x5a18e8,_0x4b0202='';if(_0x48a302[_0x6fffce('0xef3')])_0x4b0202=_0x6fffce('0x625');else{if(_0x48a302[_0x6fffce('0xf26')])_0x4b0202=_0x6fffce('0xaf2');else{if(_0x48a302[_0x6fffce('0x26a9')])_0x4b0202=_0x6fffce('0x2801');else{if(_0x48a302[_0x6fffce('0x220b')])_0x4b0202=_0x6fffce('0x4b7');else{if(_0x48a302['MailAccountId'])_0x4b0202=_0x6fffce('0x26bf');else{if(_0x48a302[_0x6fffce('0x365')])_0x4b0202=_0x6fffce('0x17cc');else _0x48a302['amaflags']&&(_0x4b0202='voice');}}}}}return _0x37a0de(_0x4b0202);}function _0x24b498(_0x1e39cd){var _0xea3319=_0x5a18e8;if(_0x1e39cd[_0xea3319('0x17d9')]&&_0x229228[_0xea3319('0x10c6')]['id']!=_0x1e39cd['UserId'])return'in';switch(_0x229228[_0xea3319('0x22f1')][_0xea3319('0x621')]){case _0xea3319('0xe4c'):if(_0x1e39cd[_0xea3319('0x1338')]=='in')return _0x1e39cd[_0xea3319('0x1338')];return _0xea3319('0x15e0');case _0xea3319('0xf7c'):if(_0x1e39cd['direction']=='in')return'in-right-aligned';return _0x1e39cd[_0xea3319('0x1338')];default:return _0x1e39cd[_0xea3319('0x1338')];}}function _0x46d6ee(){var _0x4266ac=_0x5a18e8;_0x229228[_0x4266ac('0x1f9')]=!_0x229228[_0x4266ac('0x1f9')];}function _0x1d8715(_0x3a236b){var _0x35a03a=_0x5a18e8;return _0x354fff['attachment'][_0x35a03a('0x22d5')]({'MailMessageId':_0x3a236b['id']})[_0x35a03a('0xe59')][_0x35a03a('0xe19')](function(_0x48cb38){var _0x1ef791=_0x35a03a;_0x48cb38&&_0x48cb38['rows']&&(_0x3a236b[_0x1ef791('0x20f')]=_0x48cb38[_0x1ef791('0x16a7')]);})[_0x35a03a('0x223b')](function(_0x3bbdbc){var _0x523c1c=_0x35a03a;_0x4641ab[_0x523c1c('0x8c8')]({'title':_0x3bbdbc[_0x523c1c('0x2833')]?_0x523c1c('0x27f2')+_0x3bbdbc[_0x523c1c('0x2833')]+_0x523c1c('0x1b7c')+_0x3bbdbc['statusText']:_0x523c1c('0x1adf'),'msg':_0x3bbdbc[_0x523c1c('0x11d0')]?JSON[_0x523c1c('0x3ad')](_0x3bbdbc[_0x523c1c('0x11d0')]):_0x3bbdbc[_0x523c1c('0x94f')]()});});}function _0x5d7183(_0x521c30){var _0x136e1f=_0x5a18e8;return _0x354fff[_0x136e1f('0x1a47')]['download']({'id':_0x521c30['id']})[_0x136e1f('0xe59')][_0x136e1f('0xe19')](function(_0x3e735f){var _0x1986ce=_0x136e1f;if(_0x3e735f){var _0x4aafc9=new Blob([_0x3e735f[_0x1986ce('0x17ab')]],{'type':_0x3e735f[_0x1986ce('0x62e')]}),_0xc2c9b6=document[_0x1986ce('0x9a1')]('a'),_0x446268=window['URL']['createObjectURL'](_0x4aafc9);_0xc2c9b6['href']=_0x446268,_0xc2c9b6['target']=_0x1986ce('0x71f'),_0xc2c9b6[_0x1986ce('0x1d1e')]=_0x521c30['name'],document[_0x1986ce('0x19b2')][_0x1986ce('0x1d13')](_0xc2c9b6),_0xc2c9b6[_0x1986ce('0xfe7')](),setTimeout(function(){var _0x13aaf8=_0x1986ce;document['body'][_0x13aaf8('0x1771')](_0xc2c9b6),window['URL']['revokeObjectURL'](_0x446268);},0x64);}})['catch'](function(_0x13eb03){var _0x2b4e03=_0x136e1f;_0x4641ab[_0x2b4e03('0x8c8')]({'title':_0x13eb03[_0x2b4e03('0x2833')]?_0x2b4e03('0x27f2')+_0x13eb03[_0x2b4e03('0x2833')]+'\x20-\x20'+_0x13eb03[_0x2b4e03('0x1fd7')]:_0x2b4e03('0x1adf'),'msg':_0x13eb03[_0x2b4e03('0x11d0')]?JSON[_0x2b4e03('0x3ad')](_0x13eb03[_0x2b4e03('0x11d0')]):_0x13eb03[_0x2b4e03('0x94f')]()});});}function _0x899b0a(){var _0x1e77a9=_0x5a18e8;if(!_0x229228[_0x1e77a9('0x435')][_0x1e77a9('0x127c')]&&!_0x229228[_0x1e77a9('0xf6')][_0x1e77a9('0x1835')])for(var _0xc31299=0x0;_0xc31299<_0x229228[_0x1e77a9('0x1335')][_0x1e77a9('0x16a7')][_0x1e77a9('0x25ae')];_0xc31299+=0x1){_0x229228[_0x1e77a9('0x1335')][_0x1e77a9('0x16a7')][_0xc31299]['direction']==='in'&&!_0x229228[_0x1e77a9('0x1335')][_0x1e77a9('0x16a7')][_0xc31299]['read']&&(_0x354fff[_0x229228[_0x1e77a9('0x435')][_0x1e77a9('0x4e')]+_0x1e77a9('0x2164')][_0x1e77a9('0xcb5')]({'id':_0x229228['messages']['rows'][_0xc31299]['id'],'UserId':_0x229228[_0x1e77a9('0x10c6')]['id']}),_0x229228['acceptedMessages'][_0x1e77a9('0xb76')](_0x229228['messages']['rows'][_0xc31299]['id']));}}function _0x4c2bc0(_0x5613fb){var _0x17fb6d=_0x5a18e8;if(!_0x5613fb[_0x17fb6d('0x2506')])return'('+_0x501a64[_0x17fb6d('0x2159')]('DASHBOARDS.NO_DISPOSITION_SET')+')';var _0x3a7daf=_0x32d445()[_0x17fb6d('0x289b')]([_0x5613fb[_0x17fb6d('0x2506')],_0x5613fb['secondDisposition'],_0x5613fb[_0x17fb6d('0x1b01')]]);return'('+_0x3a7daf[_0x17fb6d('0x1537')]('\x20-\x20')+')';}function _0x50be77(_0x4f1660){var _0x6737f1=_0x5a18e8;_0x4f1660&&_0x4f1660[_0x6737f1('0x148b')]&&_0x4f1660['rows'][_0x6737f1('0x25ae')]&&(_0x229228[_0x6737f1('0x2034')]=_0x32d445()['concat'](_0x229228[_0x6737f1('0x2034')],_0x4f1660[_0x6737f1('0x16a7')]),_0x229228['journey'][_0x6737f1('0x1d7e')](function(_0x17de0b){var _0x110c05=_0x6737f1;_0x17de0b[_0x110c05('0x1b11')]=_0x4c2bc0(_0x17de0b);}));}function _0x118b84(_0x322456){var _0x52f4ad=_0x5a18e8;if(_0x322456&&_0x322456['id']){for(var _0x5e5d19=0x0;_0x5e5d19<_0x229228[_0x52f4ad('0x68a')][_0x52f4ad('0x25ae')];_0x5e5d19++){_0x354fff[_0x229228['omniChannels'][_0x5e5d19]+_0x52f4ad('0x764')][_0x52f4ad('0x22d5')]({'ContactId':_0x322456['id'],'journey':!![],'includeAll':!![]})[_0x52f4ad('0xe59')][_0x52f4ad('0xe19')](_0x50be77);}_0x354fff[_0x52f4ad('0x496')]['get']({'ContactId':_0x322456['id'],'includeAll':!![]})[_0x52f4ad('0xe59')][_0x52f4ad('0xe19')](_0x50be77);}}function _0x1a93ea(_0x4ed5c7){return _0x4ed5c7?String(_0x4ed5c7)['replace'](/<[^>]+>/gm,''):'';}function _0x280276(_0x5dad31){var _0x336104=_0x5a18e8;switch(_0x229228[_0x336104('0x435')][_0x336104('0x4e')]){case _0x336104('0x26bf'):_0x229228[_0x336104('0x1224')][_0x336104('0xd0')][_0x336104('0x138')]=_0x5dad31?_0x32d445()['find'](_0x229228[_0x336104('0xf6')][_0x336104('0x1e63')],['id',_0x5dad31]):_0x229228['interaction']['Messages'][_0x229228[_0x336104('0xf6')][_0x336104('0x1e63')][_0x336104('0x25ae')]-0x1],_0x5d9302(_0x229228['draft']['type'],_0x229228['draft']['content']);break;case _0x336104('0x625'):break;case _0x336104('0xaf2'):break;case _0x336104('0x2801'):break;case'whatsapp':break;}}_0x18dc4a[_0x5a18e8('0xb2b')]('$destroy',function(){var _0x5c3f55=_0x5a18e8;_0x17c9d5[_0x5c3f55('0x2121')](_0x229228['tab'][_0x5c3f55('0x4e')]+_0x5c3f55('0x26c6')),_0x17c9d5[_0x5c3f55('0x2121')](_0x229228['tab'][_0x5c3f55('0x4e')]+_0x5c3f55('0x939')),_0x17c9d5['removeAllListeners'](_0x229228[_0x5c3f55('0x435')][_0x5c3f55('0x4e')]+_0x5c3f55('0x1b3')),_0x17c9d5[_0x5c3f55('0x2121')](_0x229228[_0x5c3f55('0x435')][_0x5c3f55('0x4e')]+_0x5c3f55('0x12c3')),_0x17c9d5[_0x5c3f55('0x2121')]('user_has_'+_0x229228[_0x5c3f55('0x435')][_0x5c3f55('0x4e')]+'_interactions:save'),_0x17c9d5[_0x5c3f55('0x2121')](_0x5c3f55('0x12d5')+_0x229228[_0x5c3f55('0x435')][_0x5c3f55('0x4e')]+_0x5c3f55('0x9a5'));});function _0x23f0b1(_0x26c5de){var _0x5afb66=_0x5a18e8,_0x26c8db={'id':_0x26c5de['id']};return _0x354fff[_0x5afb66('0x11a0')][_0x5afb66('0x15fd')](_0x26c8db)['$promise']['then'](function(){var _0xe77432=_0x5afb66;_0x4641ab[_0xe77432('0x425')]({'title':'Start\x20Video\x20Call','msg':_0xe77432('0x1eb4')});})['catch'](function(){var _0x517c00=_0x5afb66;_0x4641ab[_0x517c00('0x8c8')]({'title':_0x517c00('0x2549'),'msg':_0x517c00('0x28b1')});});}}function _0x5d8381(_0x54f52a){var _0x5c16ee=_0xb635d2;return{'scope':{'ngBindHtmlUnsafe':'='},'template':_0x5c16ee('0x1f7f'),'link':function _0x4df61b(_0x5b5c4c){var _0xfcb3a=_0x5c16ee;function _0x40d467(){var _0xa0f6de=a0_0x5325,_0x1502cb=_0xa0f6de('0x206c')+Math[_0xa0f6de('0x6ac')](Math['random']()*0x270f+0x1);return _0xa0f6de('0x712')+_0x1502cb+'\x27).style.display=\x27block\x27;\x20this.parentNode.removeChild(this)\x22>See\x20More_0x3ed990)return _0x5da336['error']({'title':_0x181465('0x16c9'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x2fb7f8+'MB'}),![];return!![];}function _0x31810c(_0x3d7ace,_0x504c69){var _0x4af62e=_0x476179;try{_0x504c69=JSON[_0x4af62e('0x118e')](_0x504c69),_0x504c69[_0x4af62e('0x1aea')]=_0x3d7ace[_0x4af62e('0x1aea')],_0x4bcc20[_0x4af62e('0x27e8')][_0x4af62e('0x20f')][_0x4af62e('0xb76')](_0x504c69);}catch(_0x30f420){console[_0x4af62e('0x8c8')](_0x30f420);}}function _0x443343(_0xc50754){var _0x54532f=_0x476179,_0x4d3090='';return _0xc50754[_0x54532f('0x2566')]&&_0xc50754['firstName']!==_0xc50754[_0x54532f('0x625')]&&(_0x4d3090+=_0xc50754['firstName']+'\x20'),_0xc50754['lastName']&&_0xc50754['lastName']!==_0xc50754['fax']&&(_0x4d3090+=_0xc50754[_0x54532f('0x151f')]+'\x20'),_0x4d3090+='<'+_0xc50754[_0x54532f('0x625')]+'>';}function _0xe2c9f9(_0x276282){var _0x26351e=_0x476179,_0xf4af0f=_0x276282;if(_0x32d445()[_0x26351e('0x1aed')](_0x276282))return _0x276282[_0x26351e('0x625')];if(_0x279df5(_0xf4af0f))return _0xf4af0f;return _0x5da336[_0x26351e('0x8c8')]('Fax\x20'+_0xf4af0f+_0x26351e('0x30e')),null;}function _0x279df5(_0x501ab8){var _0x46e657=_0x476179,_0x5a705b=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x5a705b[_0x46e657('0x15cf')](_0x501ab8);}function _0x8bd015(_0x38cd8c){var _0x430ca9=_0x476179;return _0x1bd3e7&&_0x1bd3e7[_0x430ca9('0x2463')]?_0x23fd5b[_0x430ca9('0x1711')][_0x430ca9('0x22d5')]({'ListId':_0x1bd3e7[_0x430ca9('0x2463')],'nolimit':!![],'filter':_0x38cd8c,'fields':_0x430ca9('0x209')})['$promise']['then'](function(_0x4a94f7){var _0x2f780f=_0x430ca9;return _0x4a94f7[_0x2f780f('0x16a7')];}):[];}function _0x3fc002(){var _0x5485f6=_0x476179;_0x19f394[_0x5485f6('0x1224')]=_0x4bcc20[_0x5485f6('0x27e8')],_0x111495[_0x5485f6('0x2c1')]();}}const _0x1af5b8=_0xf6f0e7;_0x252925[_0xb635d2('0xb0c')]=['$cookies','$window',_0xb635d2('0x1c9f'),'$mdConstant',_0xb635d2('0x2493'),_0xb635d2('0xe8b'),_0xb635d2('0x27e8'),'type',_0xb635d2('0xffc'),_0xb635d2('0xf65'),'$q',_0xb635d2('0x2730'),_0xb635d2('0xf6'),_0xb635d2('0x1a90')];function _0x252925(_0x17e1a7,_0x30c0ad,_0x425e4f,_0x56f69a,_0x2bbcc9,_0x1dbb93,_0x2f1f34,_0x4263f1,_0x78115a,_0x11e1d6,_0x559175,_0x225824,_0x13f54a,_0x19b59e){var _0x2092d0=_0xb635d2,_0x14a687=this,_0x3460c7=0x19,_0x80413c=_0x3460c7*0x400*0x400;_0x14a687[_0x2092d0('0x15a5')]=_0x225824[_0x2092d0('0x1ef8')](),_0x14a687[_0x2092d0('0x17d9')]=_0x4263f1===_0x2092d0('0x9fd')?!![]:![],_0x14a687[_0x2092d0('0x2711')]=!![],_0x14a687[_0x2092d0('0x1e7e')]=!![],_0x14a687[_0x2092d0('0x1cb1')]=!![],_0x14a687[_0x2092d0('0xcd2')]=[],_0x14a687[_0x2092d0('0xecc')]=[_0x56f69a['KEY_CODE'][_0x2092d0('0xda7')],_0x56f69a[_0x2092d0('0x1ba0')][_0x2092d0('0x23d9')],_0x56f69a['KEY_CODE'][_0x2092d0('0xcc4')]],_0x14a687['searchTextChange']=_0x574fdc,_0x14a687[_0x2092d0('0x2383')]=_0x2f67a7,_0x14a687[_0x2092d0('0x13ca')]=_0x2bbaed,_0x32d445()[_0x2092d0('0x1f73')]['interpolate']=/{{([\s\S]+?)}}/g,_0x14a687[_0x2092d0('0x23a2')]=_0x32d445()[_0x2092d0('0x12e2')](_0x2092d0('0x2406')),_0x14a687['replyTemplate']=_0x32d445()['template']('On\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}},\x20{{\x20from\x20}}\x20wrote:'),_0x14a687[_0x2092d0('0x1f16')]=_0x32d445()[_0x2092d0('0x12e2')](_0x2092d0('0x2895')),_0x14a687['message']={'from':_0x14a687[_0x2092d0('0x23a2')]({'name':_0x1dbb93[_0x2092d0('0x2623')],'email':_0x1dbb93[_0x2092d0('0x1211')]||_0x1dbb93[_0x2092d0('0x97d')]['user']}),'to':[],'cc':[],'bcc':[],'body':_0x144c06(),'type':_0x4263f1,'attachments':[],'showLastMessage':!![]},_0x14a687['draft']=null,_0x14a687['ckeditor']={'skin':_0x2092d0('0x2638'),'startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0x2092d0('0x872'),'toolbarGroups':[{'name':_0x2092d0('0x17cd'),'groups':[_0x2092d0('0x17cd')]},{'name':_0x2092d0('0x8aa'),'groups':[_0x2092d0('0x17af')]},{'name':_0x2092d0('0x13f4'),'groups':[_0x2092d0('0x13f4')]},{'name':_0x2092d0('0x7f8'),'groups':[_0x2092d0('0x7f8')]},{'name':'paragraph','groups':[_0x2092d0('0x15a8'),_0x2092d0('0x749'),'align']}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x14a687[_0x2092d0('0x17d9')]?0xa0:0x12c,'autoGrow_maxHeight':_0x30c0ad[_0x2092d0('0x7d1')]-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window['CKEDITOR'][_0x2092d0('0x2866')],'font_defaultLabel':_0x1dbb93[_0x2092d0('0x1962')]?_0x1dbb93[_0x2092d0('0x1962')][_0x2092d0('0x1745')](',')[0x0]:_0x2092d0('0x1266'),'fontSize_defaultLabel':_0x1dbb93['fontSize']||'12','removePlugins':_0x2092d0('0x654')};var _0x1e7986=[];for(var _0x51b40a=0x8;_0x51b40a<=0x48;_0x51b40a++){_0x1e7986[_0x2092d0('0xb76')](_0x51b40a+'/'+_0x51b40a+'pt');}_0x14a687['ckeditor'][_0x2092d0('0x1d6f')]=_0x1e7986[_0x2092d0('0x1537')](';'),_0x14a687[_0x2092d0('0x186a')]={'target':'api/attachments','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x80413c,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x14a687['ngFlow']={'flow':{}},_0x14a687['reply']=_0x4619a7,_0x14a687[_0x2092d0('0x3e9')]=_0x2eed41,_0x14a687[_0x2092d0('0x1826')]=_0x9f12ae,_0x14a687['editDraft']=_0x43d803,_0x14a687[_0x2092d0('0x1ee')]=_0x56be02,_0x14a687['note']=_0x50ad18,_0x14a687[_0x2092d0('0x1c45')]=_0x2d4c5f,_0x14a687['upload']=_0x1b9fc1,_0x14a687[_0x2092d0('0x24e8')]=_0x353619,_0x14a687['removeAttachment']=_0x2838dc,_0x14a687[_0x2092d0('0x1124')]=_0x4f767a,_0x14a687['getContact']=_0x142c30,_0x14a687[_0x2092d0('0x2515')]=_0x85db5c,_0x14a687[_0x2092d0('0xf0a')]=_0x41698c,_0x14a687[_0x2092d0('0x267')]=_0x2608ac,_0x14a687['closeDialog']=_0xd1354f,_0x14a687[_0x2092d0('0x2492')]=_0x17d680;switch(_0x4263f1){case _0x2092d0('0x219'):_0x14a687['reply'](![]);break;case _0x2092d0('0x1957'):_0x14a687['reply'](!![]);break;case _0x2092d0('0x1826'):_0x14a687[_0x2092d0('0x1826')]();break;case _0x2092d0('0x1224'):_0x14a687['editDraft']();break;case _0x2092d0('0x4ad'):_0x14a687[_0x2092d0('0x3e9')]();break;case _0x2092d0('0x9fd'):_0x14a687[_0x2092d0('0x9fd')]();break;}_0x78115a[_0x2092d0('0x158e')][_0x2092d0('0x22d5')]({'nolimit':!![]})['$promise'][_0x2092d0('0xe19')](function(_0x16a6e5){_0x14a687['subStatuses']=_0x16a6e5||{'count':0x0,'rows':[]};})['catch'](function(_0x1bb2b1){var _0x791a2d=_0x2092d0;console[_0x791a2d('0x8c8')](_0x1bb2b1);});!_0x14a687[_0x2092d0('0x17d9')]&&_0x2fe976();function _0x4619a7(_0x1c3eeb){var _0x40a6d4=_0x2092d0;angular[_0x40a6d4('0x1d95')](_0x2f1f34)&&(_0x14a687[_0x40a6d4('0x27e8')][_0x40a6d4('0x62e')]=_0x40a6d4('0x219'),_0x14a687[_0x40a6d4('0x27e8')]['to']=_0x2f1f34[_0x40a6d4('0x1338')]==='in'?_0x2f1f34[_0x40a6d4('0x6f7')][_0x40a6d4('0x1745')](','):_0x2f1f34['to'][_0x40a6d4('0x1745')](','),_0x14a687[_0x40a6d4('0x27e8')]['subject']=_0x32d445()[_0x40a6d4('0x20b6')](_0x2f1f34['subject'],_0x40a6d4('0x26ba'))?_0x2f1f34['subject']:_0x40a6d4('0x235c')+_0x2f1f34[_0x40a6d4('0x9ec')],_0x14a687[_0x40a6d4('0x27e8')]['inReplyTo']=_0x2f1f34['messageId'],_0x14a687['message']['body']=_0x144c06(),_0x14a687[_0x40a6d4('0x27e8')][_0x40a6d4('0x20f')]=[],_0x1c3eeb&&_0x2f1f34['cc']&&(_0x14a687[_0x40a6d4('0x2711')]=![],_0x14a687[_0x40a6d4('0x27e8')]['cc']=_0x2f1f34['cc'][_0x40a6d4('0x1745')](',')),_0x14a687[_0x40a6d4('0x27e8')][_0x40a6d4('0x145b')]=![]);}function _0x2eed41(){var _0x3d5f2b=_0x2092d0;angular[_0x3d5f2b('0x1d95')](_0x2f1f34)&&(_0x14a687[_0x3d5f2b('0x27e8')][_0x3d5f2b('0x62e')]=_0x3d5f2b('0x4ad'),_0x14a687[_0x3d5f2b('0x27e8')]['to']=_0x2f1f34['to']?_0x2f1f34['to'][_0x3d5f2b('0x1745')](','):[]);}function _0x43d803(){var _0x963fca=_0x2092d0;_0x14a687[_0x963fca('0xf12')]=!![],angular[_0x963fca('0x1d95')](_0x2f1f34)&&(_0x2f1f34['savedAsDraft']=![],_0x14a687[_0x963fca('0x27e8')]=angular[_0x963fca('0x89')](_0x2f1f34),!_0x32d445()[_0x963fca('0x14b4')](_0x14a687[_0x963fca('0x27e8')]['cc'])&&(_0x14a687[_0x963fca('0x2711')]=![]),!_0x32d445()[_0x963fca('0x14b4')](_0x14a687['message']['bcc'])&&(_0x14a687[_0x963fca('0x1e7e')]=![]));}function _0x9f12ae(){var _0x8b5cf8=_0x2092d0;if(angular[_0x8b5cf8('0x1d95')](_0x2f1f34)){_0x14a687[_0x8b5cf8('0x27e8')]['type']=_0x8b5cf8('0x1826'),_0x14a687['message'][_0x8b5cf8('0x9ec')]=_0x32d445()[_0x8b5cf8('0x20b6')](_0x2f1f34[_0x8b5cf8('0x9ec')],_0x8b5cf8('0x272'))?_0x2f1f34['subject']:_0x8b5cf8('0x352')+_0x2f1f34[_0x8b5cf8('0x9ec')],_0x14a687['message'][_0x8b5cf8('0x19b2')]=_0x144c06();if(_0x2f1f34[_0x8b5cf8('0x1876')]&&_0x2f1f34[_0x8b5cf8('0x1876')][_0x8b5cf8('0x25ae')])for(var _0x180b1f=0x0;_0x180b1f<_0x2f1f34[_0x8b5cf8('0x1876')]['length'];_0x180b1f++){_0x14a687[_0x8b5cf8('0x27e8')][_0x8b5cf8('0x20f')][_0x8b5cf8('0xb76')](_0x2f1f34[_0x8b5cf8('0x1876')][_0x180b1f]);}_0x14a687[_0x8b5cf8('0x27e8')][_0x8b5cf8('0x145b')]=![];}}function _0x50ad18(){var _0x46137d=_0x2092d0;_0x14a687[_0x46137d('0x62e')]=_0x46137d('0x9fd'),_0x14a687[_0x46137d('0x17d9')]=!![],_0x14a687['message'][_0x46137d('0x19b2')]=_0x46137d('0xdea')+_0x1dbb93[_0x46137d('0x1962')]+_0x46137d('0x1c6c')+_0x1dbb93[_0x46137d('0x535')]+'pt\x22>

';}function _0x16b66d(_0x230b8c,_0x2f6159){var _0x3b2003=_0x2092d0,_0x1510f7={'from':_0x14a687[_0x3b2003('0x27e8')][_0x3b2003('0x6f7')],'to':_0x14a687['message']['to'][_0x3b2003('0x1537')](','),'cc':_0x14a687['message']['cc'][_0x3b2003('0x1537')](','),'bcc':_0x14a687[_0x3b2003('0x27e8')]['bcc'][_0x3b2003('0x1537')](','),'subject':_0x14a687[_0x3b2003('0x27e8')]['subject'],'body':_0x14a687[_0x3b2003('0x27e8')][_0x3b2003('0x145b')]?_0x14a687[_0x3b2003('0x27e8')][_0x3b2003('0x19b2')]:_0x14a687[_0x3b2003('0x27e8')][_0x3b2003('0x19b2')]+_0x5978bd(_0x14a687[_0x3b2003('0x27e8')]['type']),'inReplyTo':_0x14a687[_0x3b2003('0x27e8')][_0x3b2003('0x2355')],'attach':_0x14a687[_0x3b2003('0x27e8')][_0x3b2003('0x20f')][_0x3b2003('0x25ae')],'attachments':_0x14a687['message']['attachments'],'Interaction':{'lastMsgDirection':_0x3b2003('0x2101'),'lastMsgBody':_0x14a687[_0x3b2003('0x27e8')][_0x3b2003('0x19b2')],'substatus':_0x2f6159},'isDraft':_0x14a687['isDraft']};_0x1510f7[_0x3b2003('0x158f')]=_0x3b2003('0x193')+_0x32d445()['replace'](_0x1510f7['body'],_0x3b2003('0x2c4'),_0x3b2003('0x200a'))+_0x3b2003('0xb8d'),_0x230b8c&&(_0x1510f7[_0x3b2003('0x764')][_0x3b2003('0x1835')]=!![]),_0x425e4f['hide'](_0x1510f7);}function _0x56be02(_0x162ad2,_0x7b8fb6,_0x5771e7){var _0x2cf175=_0x2092d0;if(_0x14a687['message']['to']&&_0x14a687['message'][_0x2cf175('0x19b2')]){if(_0x14a687['message']['to'][_0x2cf175('0x25ae')]){if(_0x32d445()[_0x2cf175('0x14b4')](_0x14a687['message'][_0x2cf175('0x9ec')])){var _0x26365f=_0x425e4f[_0x2cf175('0xa5')]({'skipHide':!![]})[_0x2cf175('0x13e4')](_0x2cf175('0x830'))[_0x2cf175('0x2719')]('This\x20message\x20has\x20no\x20subject.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20send\x20it?')[_0x2cf175('0x4d1')]('Warning')[_0x2cf175('0x1345')](_0x162ad2)['ok'](_0x2cf175('0x17b3'))[_0x2cf175('0x2c1')](_0x2cf175('0x8a3'));_0x425e4f[_0x2cf175('0x26b2')](_0x26365f)[_0x2cf175('0xe19')](function(){_0x16b66d(_0x7b8fb6,_0x5771e7);});}else _0x16b66d(_0x7b8fb6,_0x5771e7);}else _0x11e1d6[_0x2cf175('0x8c8')](_0x2cf175('0x1c00'));}}function _0x2d4c5f(){var _0x3255c5=_0x2092d0;_0x14a687[_0x3255c5('0x27e8')]['body']&&_0x425e4f[_0x3255c5('0x11ed')]({'secret':!![],'body':_0x14a687[_0x3255c5('0x27e8')]['body'],'attach':_0x14a687[_0x3255c5('0x27e8')][_0x3255c5('0x20f')]['length'],'attachments':_0x14a687[_0x3255c5('0x27e8')][_0x3255c5('0x20f')]});}function _0x2f67a7(_0x2ee06f){var _0x5de913=_0x2092d0;if(_0x2ee06f&&_0x2ee06f[_0x5de913('0x2')]&&_0x14a687['ckEditorInstance'])try{var _0x12191c=_0x32d445()['template'](_0x2ee06f['value']),_0x18da8f={'user':_0x14a687['currentUser'],'account':_0x1dbb93,'interaction':_0x13f54a,'contact':_0x13f54a&&_0x13f54a[_0x5de913('0x1286')]?_0x13f54a[_0x5de913('0x1286')]:{}};_0x14a687[_0x5de913('0x1e5b')][_0x5de913('0x20a6')](_0x12191c(_0x18da8f));}catch(_0x41ec33){console[_0x5de913('0x8c8')](_0x41ec33),_0x14a687[_0x5de913('0x1e5b')][_0x5de913('0x20a6')](_0x2ee06f['value']);}document[_0x5de913('0x232')]('html-area')[_0x5de913('0x24fe')](),_0x14a687[_0x5de913('0x694')]=null;}function _0x574fdc(_0x4d85bf){var _0x3568be=_0x2092d0,_0x5bbcda=_0x559175[_0x3568be('0x178')](),_0x4f00fc=[];return _0x78115a[_0x3568be('0x250b')][_0x3568be('0x22d5')]({'filter':_0x4d85bf,'MailAccountId':_0x1dbb93['id']})[_0x3568be('0xe59')][_0x3568be('0xe19')](function(_0x103ef6){var _0x3952b9=_0x3568be;return _0x4f00fc=_0x32d445()[_0x3952b9('0x1007')](_0x4f00fc,_0x103ef6[_0x3952b9('0x16a7')]),_0x78115a[_0x3952b9('0x250b')][_0x3952b9('0x22d5')]({'filter':_0x4d85bf})[_0x3952b9('0xe59')];})['then'](function(_0x557b38){var _0x2668e2=_0x3568be;_0x4f00fc=_0x32d445()[_0x2668e2('0x1007')](_0x4f00fc,_0x32d445()[_0x2668e2('0x2891')](_0x557b38[_0x2668e2('0x16a7')],function(_0x141d6f){var _0x5e73dd=_0x2668e2;return!_0x141d6f['MailAccountId']&&!_0x141d6f[_0x5e73dd('0xef3')]&&!_0x141d6f[_0x5e73dd('0x26a9')]&&!_0x141d6f['WhatsappAccountId']&&!_0x141d6f[_0x5e73dd('0xf26')]&&!_0x141d6f[_0x5e73dd('0x365')];})),_0x5bbcda[_0x2668e2('0xcd6')](_0x4f00fc);})[_0x3568be('0x223b')](function(_0x433239){var _0x34e553=_0x3568be;_0x5bbcda[_0x34e553('0x1337')](_0x433239);}),_0x5bbcda[_0x3568be('0x9c8')];}function _0x2bbaed(){var _0x5b0a5d=_0x2092d0;try{_0x14a687[_0x5b0a5d('0x1e5b')]=window[_0x5b0a5d('0xa7d')][_0x5b0a5d('0x267b')]['html-area'];}catch(_0x50863a){console['error'](_0x5b0a5d('0xdbe'),_0x50863a);}}function _0x2fe976(){var _0x228efd=_0x2092d0;return _0x78115a[_0x228efd('0x17f0')]['verifySmtp']({'id':_0x1dbb93['id']})[_0x228efd('0xe59')][_0x228efd('0x223b')](function(_0x32baf9){var _0x458c1c=_0x228efd;_0x14a687[_0x458c1c('0x1cb1')]=![],_0x14a687['errors'][_0x458c1c('0xb76')]({'message':_0x32baf9[_0x458c1c('0x11d0')],'type':_0x32baf9['status']}),_0x14a687[_0x458c1c('0xcd2')][_0x458c1c('0xb76')]({'message':_0x458c1c('0x174c'),'type':'500'});});}function _0x4f767a(_0x16d1b6){var _0x4830a0=_0x2092d0;if(_0x16d1b6[_0x4830a0('0x1aea')]>_0x80413c)return _0x11e1d6['error']({'title':_0x4830a0('0x16c9'),'msg':_0x4830a0('0x275f')+_0x3460c7+'MB'}),![];return!![];}function _0x1b9fc1(){var _0xb63f08=_0x2092d0;_0x14a687[_0xb63f08('0x1b57')][_0xb63f08('0x206b')][_0xb63f08('0x5ec')][_0xb63f08('0x2234')]={'X-Requested-With':_0xb63f08('0xdf4'),'Authorization':_0xb63f08('0x17b7')+_0x17e1a7[_0xb63f08('0x22d5')](_0xb63f08('0x511'))},_0x14a687['ngFlow'][_0xb63f08('0x206b')][_0xb63f08('0x20')]();}function _0x353619(_0x350c8b,_0x39b034){var _0x368d51=_0x2092d0;try{_0x39b034=JSON[_0x368d51('0x118e')](_0x39b034),_0x39b034['size']=_0x350c8b[_0x368d51('0x1aea')],_0x14a687['message'][_0x368d51('0x20f')]['push'](_0x39b034);}catch(_0x1b9ac8){console[_0x368d51('0x8c8')](_0x1b9ac8);}}function _0x2838dc(_0x372224){var _0x1cfc08=_0x2092d0;_0x14a687['message'][_0x1cfc08('0x20f')]=_0x32d445()[_0x1cfc08('0x1337')](_0x14a687[_0x1cfc08('0x27e8')]['attachments'],{'id':_0x372224['id']}),!_0x372224['MailMessageId']&&_0x78115a['attachment'][_0x1cfc08('0x229e')]({'id':_0x372224['id']})[_0x1cfc08('0xe59')][_0x1cfc08('0x223b')](function(_0x5005e2){var _0x32106a=_0x1cfc08;_0x11e1d6[_0x32106a('0x8c8')]({'title':_0x5005e2[_0x32106a('0x2833')]?'API:'+_0x5005e2[_0x32106a('0x2833')]+_0x32106a('0x1b7c')+_0x5005e2['statusText']:_0x32106a('0x437'),'msg':_0x5005e2[_0x32106a('0x11d0')]?JSON[_0x32106a('0x3ad')](_0x5005e2[_0x32106a('0x11d0')][_0x32106a('0x27e8')]):_0x5005e2[_0x32106a('0x94f')]()});});}function _0x142c30(_0x2e032c){var _0xd3e580=_0x2092d0,_0x351e79='';return _0x2e032c[_0xd3e580('0x2566')]&&_0x2e032c['firstName']!==_0x2e032c[_0xd3e580('0x1211')]&&(_0x351e79+=_0x2e032c[_0xd3e580('0x2566')]+'\x20'),_0x2e032c['lastName']&&_0x2e032c['lastName']!==_0x2e032c[_0xd3e580('0x1211')]&&(_0x351e79+=_0x2e032c[_0xd3e580('0x151f')]+'\x20'),_0x351e79+='<'+_0x2e032c[_0xd3e580('0x1211')]+'>';}function _0x41698c(_0x5cc95c,_0x2a9d77){var _0x373338=_0x2092d0;if(_0x32d445()[_0x373338('0x1aed')](_0x5cc95c))return _0x14a687[_0x373338('0xd9a')]=_0x5cc95c,_0x5cc95c[_0x373338('0x1211')];if(_0x32d445()[_0x373338('0x1aa9')](_0x5cc95c)){if(_0x13a7a1(_0x5cc95c))return _0x14a687['contact']={'email':_0x5cc95c},_0x5cc95c;else{var _0x280bc7=_0x5cc95c[_0x373338('0x1745')](',');for(var _0x26c4ec=0x0;_0x26c4ec<_0x280bc7[_0x373338('0x25ae')];_0x26c4ec+=0x1){_0x13a7a1(_0x280bc7[_0x26c4ec])?_0x32d445()['isArray'](_0x2a9d77)&&_0x32d445()[_0x373338('0x281c')](_0x2a9d77,_0x280bc7[_0x26c4ec])<0x0&&_0x2a9d77['push'](_0x280bc7[_0x26c4ec]):_0x11e1d6[_0x373338('0x8c8')](_0x373338('0x1089')+_0x280bc7[_0x26c4ec]+_0x373338('0x30e'));}return _0x14a687[_0x373338('0xd9a')]={'email':_0x5cc95c[_0x373338('0x1745')](',')[0x0]},null;}}return _0x11e1d6['error'](_0x373338('0x1f2a')),null;}function _0x85db5c(_0xac280f){var _0x1c0587=_0x2092d0;return _0x1dbb93&&_0x1dbb93[_0x1c0587('0x2463')]?_0x78115a[_0x1c0587('0x1711')]['get']({'ListId':_0x1dbb93[_0x1c0587('0x2463')],'nolimit':!![],'filter':_0xac280f,'fields':_0x1c0587('0x1ce8')})['$promise'][_0x1c0587('0xe19')](function(_0x3e7b1d){var _0x21047e=_0x1c0587;return _0x3e7b1d[_0x21047e('0x16a7')];}):[];}function _0x2608ac(){var _0x4726cb=_0x2092d0;_0x14a687['message'][_0x4726cb('0x11a7')]=!![],_0x14a687[_0x4726cb('0x1224')]=_0x19b59e[_0x4726cb('0x12c5')](_0x13f54a['id']);var _0xf3aa99={'account':_0x1dbb93,'message':_0x14a687[_0x4726cb('0x27e8')],'contact':_0x14a687[_0x4726cb('0xd9a')],'interaction':_0x13f54a};if(_0x14a687[_0x4726cb('0x1224')]&&!_0x14a687['isDraft']){var _0x30c8b8=_0x425e4f[_0x4726cb('0xa5')]({'skipHide':!![]})[_0x4726cb('0x13e4')](_0x2bbcc9['instant']('DASHBOARDS.DRAFT_SAVE_WARNING_TITLE'))[_0x4726cb('0xd0')](_0x2bbcc9[_0x4726cb('0x2159')](_0x4726cb('0x11a')))['ariaLabel']('Save\x20draft')['ok'](_0x2bbcc9[_0x4726cb('0x2159')](_0x4726cb('0x1e48')))['cancel'](_0x2bbcc9['instant'](_0x4726cb('0x2622')));_0x425e4f[_0x4726cb('0x26b2')](_0x30c8b8)[_0x4726cb('0xe19')](function(){_0x425e4f['hide'](_0xf3aa99);});}else _0x425e4f['hide'](_0xf3aa99);}function _0xd1354f(){var _0x332285=_0x2092d0;_0x425e4f[_0x332285('0x2c1')]();}function _0x13a7a1(_0x12dc4c){var _0x2327d8=_0x2092d0,_0x2fa8fb=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return _0x2fa8fb[_0x2327d8('0x15cf')](_0x12dc4c);}function _0x461084(_0xf4b080){var _0x1645df=_0x2092d0,_0x3ef220=/]*>([^]*)<\/body/m,_0x399e55=_0xf4b080[_0x1645df('0x97')](_0x3ef220);if(_0x399e55)return _0x399e55[0x1];return _0xf4b080;}function _0x34afcf(){var _0x1257f8=_0x2092d0;if(_0x32d445()[_0x1257f8('0xe44')](_0x1dbb93[_0x1257f8('0x12e2')]))return'';try{var _0x310ba9=_0x32d445()['template'](_0x1dbb93[_0x1257f8('0x12e2')]),_0x43c9a6={'user':_0x14a687[_0x1257f8('0x15a5')],'account':_0x1dbb93,'interaction':_0x13f54a,'contact':_0x13f54a&&_0x13f54a['Contact']?_0x13f54a[_0x1257f8('0x1286')]:{}};return _0x310ba9(_0x43c9a6);}catch(_0x154204){return console['error'](_0x154204),'';}}function _0x144c06(){var _0x741616=_0x2092d0;return'';}function _0xfd94a1(_0x3047af){var _0x3d03bc=_0x4fa49f,_0x4cdd45=_0x3047af;if(_0x32d445()[_0x3d03bc('0x1aed')](_0x4cdd45))return _0x3047af[_0x1f8da9[_0x3d03bc('0x2213')]];return _0x4cdd45;}function _0x3cf1a9(_0x3a82e4){var _0x2fa48f=_0x4fa49f;if(_0x1f8da9&&_0x1f8da9[_0x2fa48f('0x2463')]){var _0x29fe61=_0x2fa48f('0x14e1');return _0x1f8da9[_0x2fa48f('0x2213')]&&(_0x29fe61+=','+_0x1f8da9[_0x2fa48f('0x2213')]),_0x15c05e[_0x2fa48f('0x1711')][_0x2fa48f('0x22d5')]({'ListId':_0x1f8da9[_0x2fa48f('0x2463')],'nolimit':!![],'filter':_0x3a82e4,'fields':_0x29fe61})[_0x2fa48f('0xe59')]['then'](function(_0x3f611b){var _0x400320=_0x2fa48f;return _0x3f611b[_0x400320('0x16a7')];});}return[];}function _0x26adae(){var _0x3e78fe=_0x4fa49f;_0x33c1db[_0x3e78fe('0x2c1')]();}function _0xba7b9c(){var _0x3e1eb7=_0x4fa49f;_0x17646a[_0x3e1eb7('0x17d9')]=!![];}function _0x26af89(){var _0x57bf0c=_0x4fa49f;_0x17646a['message'][_0x57bf0c('0x19b2')]&&_0x33c1db[_0x57bf0c('0x11ed')]({'secret':!![],'body':_0x17646a[_0x57bf0c('0x27e8')][_0x57bf0c('0x19b2')]});}}const _0x494828=_0x6f2d4b;_0x2799cb[_0xb635d2('0xb0c')]=['$cookies',_0xb635d2('0x1a0b'),_0xb635d2('0x2400'),_0xb635d2('0x1c9f'),_0xb635d2('0x2c6'),_0xb635d2('0xe8b'),_0xb635d2('0x27e8'),_0xb635d2('0x62e'),'api',_0xb635d2('0xf65'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x2730')];function _0x2799cb(_0x5b1b6c,_0x309127,_0x244839,_0x2b998f,_0x226e5b,_0x18731f,_0x36bbb5,_0x8efa10,_0x30a803,_0x282bfd,_0x3b813b,_0x1fbc66,_0x2dbca9){var _0x5e030e=_0xb635d2,_0x495401=this;_0x495401['currentUser']=_0x2dbca9[_0x5e030e('0x1ef8')](),_0x495401[_0x5e030e('0xcd2')]=[],_0x495401[_0x5e030e('0xecc')]=[_0x226e5b[_0x5e030e('0x1ba0')][_0x5e030e('0xda7')],_0x226e5b[_0x5e030e('0x1ba0')][_0x5e030e('0x23d9')],_0x226e5b[_0x5e030e('0x1ba0')][_0x5e030e('0xcc4')]],_0x495401[_0x5e030e('0x240b')]=_0x5d12ad,_0x495401[_0x5e030e('0x2383')]=_0x4add3d,_0x495401[_0x5e030e('0x9fd')]=_0x1a684f,_0x495401['addNote']=_0x19cab8,_0x495401['ctrlMethods']={},_0x495401[_0x5e030e('0x27e8')]={'from':_0x18731f[_0x5e030e('0x1ef5')],'to':_0x32d445()[_0x5e030e('0xe44')](_0x36bbb5['to'])||_0x32d445()[_0x5e030e('0x14b4')](_0x36bbb5['to'])?[]:_0x36bbb5['to'],'body':''},_0x495401['send']=_0x4087ac,_0x495401[_0x5e030e('0x1e9b')]=_0xd70e97,_0x495401['closeDialog']=_0x9ebae4,_0x495401[_0x5e030e('0x2515')]=_0x9a59c5,_0x495401[_0x5e030e('0xf0a')]=_0x50169a;switch(_0x8efa10){case _0x5e030e('0x9fd'):_0x495401[_0x5e030e('0x9fd')]();break;}function _0x2df7a6(_0x256160){var _0xc934fe=_0x5e030e;_0x2b998f['hide']({'to':_0x495401[_0xc934fe('0x27e8')]['to'][_0xc934fe('0x1537')](','),'body':_0x256160});}function _0x4087ac(){var _0x4ac4aa=_0x5e030e;_0x495401[_0x4ac4aa('0x27e8')]['to']&&_0x495401[_0x4ac4aa('0x27e8')][_0x4ac4aa('0x19b2')]&&(_0x495401[_0x4ac4aa('0x27e8')]['to'][_0x4ac4aa('0x25ae')]?_0x2df7a6(_0x495401['message']['body']):_0x282bfd[_0x4ac4aa('0x8c8')](_0x4ac4aa('0x1c00')));}function _0x4add3d(_0x3f2cd0){var _0x3d3e09=_0x5e030e;if(_0x3f2cd0){try{_0x32d445()[_0x3d3e09('0x1f73')]['interpolate']=/{{([\s\S]+?)}}/g;var _0x5997f7=_0x32d445()[_0x3d3e09('0x12e2')](_0x3f2cd0[_0x3d3e09('0x2')]),_0x3cf57f={'user':_0x495401[_0x3d3e09('0x15a5')],'account':_0x18731f};_0x495401[_0x3d3e09('0x27e8')][_0x3d3e09('0x19b2')]+='\x20'+_0x5997f7(_0x3cf57f),_0x495401['ctrlMethods'][_0x3d3e09('0xf4d')](_0x495401[_0x3d3e09('0x27e8')]['body']);}catch(_0x11d4f4){_0x495401[_0x3d3e09('0x27e8')]['body']+='\x20'+_0x3f2cd0[_0x3d3e09('0x2')],_0x495401[_0x3d3e09('0x2130')][_0x3d3e09('0xf4d')](_0x495401[_0x3d3e09('0x27e8')]['body']);}_0x495401[_0x3d3e09('0x694')]=null;}}function _0x5d12ad(_0x3b8359){var _0x166710=_0x5e030e,_0x1e3c40=_0x3b813b['defer'](),_0x5c4c27=[];return _0x30a803[_0x166710('0x250b')][_0x166710('0x22d5')]({'filter':_0x3b8359,'SmsAccountId':_0x18731f['id']})['$promise'][_0x166710('0xe19')](function(_0x22d0b6){var _0xa125fc=_0x166710;return _0x5c4c27=_0x32d445()[_0xa125fc('0x1007')](_0x5c4c27,_0x22d0b6[_0xa125fc('0x16a7')]),_0x30a803[_0xa125fc('0x250b')]['get']({'filter':_0x3b8359})[_0xa125fc('0xe59')];})[_0x166710('0xe19')](function(_0x478ee8){var _0x52924e=_0x166710;_0x5c4c27=_0x32d445()['concat'](_0x5c4c27,_0x32d445()[_0x52924e('0x2891')](_0x478ee8[_0x52924e('0x16a7')],function(_0x4e72f1){var _0x22c0e1=_0x52924e;return!_0x4e72f1[_0x22c0e1('0xa20')]&&!_0x4e72f1[_0x22c0e1('0xef3')]&&!_0x4e72f1[_0x22c0e1('0x26a9')]&&!_0x4e72f1[_0x22c0e1('0xf26')]&&!_0x4e72f1[_0x22c0e1('0x365')];})),_0x1e3c40[_0x52924e('0xcd6')](_0x5c4c27);})[_0x166710('0x223b')](function(_0x346bb5){_0x1e3c40['reject'](_0x346bb5);}),_0x1e3c40[_0x166710('0x9c8')];}function _0xd70e97(_0xc19ffa){var _0xd54536=_0x5e030e,_0x4eb428='';return _0xc19ffa[_0xd54536('0x2566')]&&_0xc19ffa['firstName']!==_0xc19ffa['mobile']&&(_0x4eb428+=_0xc19ffa[_0xd54536('0x2566')]+'\x20'),_0xc19ffa['lastName']&&_0xc19ffa[_0xd54536('0x151f')]!==_0xc19ffa['mobile']&&(_0x4eb428+=_0xc19ffa[_0xd54536('0x151f')]+'\x20'),_0x4eb428+='<'+_0xc19ffa[_0xd54536('0x23a0')]+'>';}function _0x50169a(_0x5633bb){var _0x70d79c=_0x5e030e,_0x508609=_0x5633bb;if(_0x32d445()['isObject'](_0x508609))return _0x5633bb[_0x70d79c('0x23a0')];if(_0x36c082(_0x508609))return _0x508609;return _0x282bfd[_0x70d79c('0x8c8')](_0x70d79c('0x1f4d')+_0x508609+'\x20is\x20not\x20valid'),null;}function _0x9a59c5(_0x552847){var _0x2a5621=_0x5e030e;if(_0x18731f&&_0x18731f[_0x2a5621('0x2463')])return _0x30a803[_0x2a5621('0x1711')][_0x2a5621('0x22d5')]({'ListId':_0x18731f[_0x2a5621('0x2463')],'nolimit':!![],'filter':_0x552847,'fields':'firstName,lastName,mobile'})['$promise'][_0x2a5621('0xe19')](function(_0x280119){return _0x280119['rows'];});return[];}function _0x9ebae4(){var _0x3e04df=_0x5e030e;_0x2b998f[_0x3e04df('0x2c1')]();}function _0x36c082(_0x285ceb){var _0x28caa2=_0x5e030e,_0x4430b9=/^(\+|\d)[0-9]{7,16}$/;return _0x4430b9[_0x28caa2('0x15cf')](_0x285ceb);}function _0x1a684f(){_0x495401['secret']=!![];}function _0x19cab8(){var _0x350277=_0x5e030e;_0x495401[_0x350277('0x27e8')][_0x350277('0x19b2')]&&_0x2b998f['hide']({'secret':!![],'body':_0x495401[_0x350277('0x27e8')][_0x350277('0x19b2')]});}}const _0x2cba1a=_0x2799cb;_0x5c46cf[_0xb635d2('0xb0c')]=['$cookies',_0xb635d2('0x1a0b'),_0xb635d2('0x2400'),_0xb635d2('0x1c9f'),_0xb635d2('0x2c6'),_0xb635d2('0xe8b'),_0xb635d2('0x27e8'),'type',_0xb635d2('0xffc'),'toasty','$q','$translate',_0xb635d2('0x2730')];function _0x5c46cf(_0x398d06,_0x467989,_0x3386e3,_0x52f83c,_0x2f3c35,_0x24910f,_0x39a3b4,_0x3049f3,_0x4ebc54,_0x490a61,_0x329567,_0x2e0398,_0x377b5f){var _0x4427d3=_0xb635d2,_0x2a0651=this;_0x2a0651[_0x4427d3('0x15a5')]=_0x377b5f[_0x4427d3('0x1ef8')](),_0x2a0651[_0x4427d3('0xcd2')]=[],_0x2a0651[_0x4427d3('0xecc')]=[_0x2f3c35['KEY_CODE']['ENTER'],_0x2f3c35[_0x4427d3('0x1ba0')]['COMMA'],_0x2f3c35['KEY_CODE'][_0x4427d3('0xcc4')]],_0x2a0651['searchTextChange']=_0x1253d1,_0x2a0651['selectedItemChange']=_0x4ac0cb,_0x2a0651[_0x4427d3('0x9fd')]=_0x4c567f,_0x2a0651['addNote']=_0x4c129d,_0x2a0651[_0x4427d3('0x2130')]={},_0x2a0651[_0x4427d3('0x27e8')]={'from':_0x24910f[_0x4427d3('0x1ef5')],'to':_0x32d445()[_0x4427d3('0xe44')](_0x39a3b4['to'])||_0x32d445()[_0x4427d3('0x14b4')](_0x39a3b4['to'])?[]:_0x39a3b4['to'],'body':''},_0x2a0651[_0x4427d3('0x1ee')]=_0x1a709b,_0x2a0651[_0x4427d3('0x1e9b')]=_0x3a6047,_0x2a0651[_0x4427d3('0x2584')]=_0x21f94b,_0x2a0651['contactSearch']=_0x4650e1,_0x2a0651[_0x4427d3('0xf0a')]=_0x431235;switch(_0x3049f3){case _0x4427d3('0x9fd'):_0x2a0651[_0x4427d3('0x9fd')]();break;}function _0x4d28de(_0x321e3a){var _0x1012ab=_0x4427d3;_0x52f83c[_0x1012ab('0x11ed')]({'to':_0x2a0651[_0x1012ab('0x27e8')]['to'][_0x1012ab('0x1537')](','),'body':_0x321e3a});}function _0x1a709b(){var _0x268650=_0x4427d3;_0x2a0651[_0x268650('0x27e8')]['to']&&_0x2a0651['message'][_0x268650('0x19b2')]&&(_0x2a0651['message']['to'][_0x268650('0x25ae')]?_0x4d28de(_0x2a0651[_0x268650('0x27e8')][_0x268650('0x19b2')]):_0x490a61[_0x268650('0x8c8')]('To\x20is\x20mandatory'));}function _0x4ac0cb(_0x51282a){var _0x561c68=_0x4427d3;if(_0x51282a){try{_0x32d445()[_0x561c68('0x1f73')][_0x561c68('0x12e')]=/{{([\s\S]+?)}}/g;var _0x569932=_0x32d445()[_0x561c68('0x12e2')](_0x51282a['value']),_0x4a9550={'user':_0x2a0651[_0x561c68('0x15a5')],'account':_0x24910f};_0x2a0651['message'][_0x561c68('0x19b2')]+='\x20'+_0x569932(_0x4a9550),_0x2a0651['ctrlMethods'][_0x561c68('0xf4d')](_0x2a0651[_0x561c68('0x27e8')]['body']);}catch(_0x49e8a3){_0x2a0651[_0x561c68('0x27e8')][_0x561c68('0x19b2')]+='\x20'+_0x51282a['value'],_0x2a0651[_0x561c68('0x2130')][_0x561c68('0xf4d')](_0x2a0651[_0x561c68('0x27e8')][_0x561c68('0x19b2')]);}_0x2a0651[_0x561c68('0x694')]=null;}}function _0x1253d1(_0x47560a){var _0x4772c1=_0x4427d3,_0x2217a9=_0x329567[_0x4772c1('0x178')](),_0x33f5f4=[];return _0x4ebc54['cannedAnswer']['get']({'filter':_0x47560a,'WhatsappAccountId':_0x24910f['id']})[_0x4772c1('0xe59')]['then'](function(_0x52f9b3){var _0x3ad36c=_0x4772c1;return _0x33f5f4=_0x32d445()[_0x3ad36c('0x1007')](_0x33f5f4,_0x52f9b3[_0x3ad36c('0x16a7')]),_0x4ebc54[_0x3ad36c('0x250b')][_0x3ad36c('0x22d5')]({'filter':_0x47560a})[_0x3ad36c('0xe59')];})[_0x4772c1('0xe19')](function(_0x9f14b3){var _0x12667d=_0x4772c1;_0x33f5f4=_0x32d445()[_0x12667d('0x1007')](_0x33f5f4,_0x32d445()[_0x12667d('0x2891')](_0x9f14b3['rows'],function(_0x5ca797){var _0x29f649=_0x12667d;return!_0x5ca797[_0x29f649('0xa20')]&&!_0x5ca797[_0x29f649('0xef3')]&&!_0x5ca797[_0x29f649('0x220b')]&&!_0x5ca797[_0x29f649('0xf26')]&&!_0x5ca797[_0x29f649('0x365')];})),_0x2217a9[_0x12667d('0xcd6')](_0x33f5f4);})['catch'](function(_0x4c6e93){_0x2217a9['reject'](_0x4c6e93);}),_0x2217a9[_0x4772c1('0x9c8')];}function _0x3a6047(_0x459502){var _0x433bec=_0x4427d3,_0x4a589f='';return _0x459502['firstName']&&_0x459502[_0x433bec('0x2566')]!==_0x459502[_0x433bec('0x23a0')]&&(_0x4a589f+=_0x459502[_0x433bec('0x2566')]+'\x20'),_0x459502[_0x433bec('0x151f')]&&_0x459502['lastName']!==_0x459502['mobile']&&(_0x4a589f+=_0x459502[_0x433bec('0x151f')]+'\x20'),_0x4a589f+='<'+_0x459502['mobile']+'>';}function _0x431235(_0x383385){var _0x3df93a=_0x4427d3,_0x3382a8=_0x383385;if(_0x32d445()[_0x3df93a('0x1aed')](_0x3382a8))return _0x383385[_0x3df93a('0x23a0')];if(_0x41af96(_0x3382a8))return _0x3382a8;return _0x490a61['error'](_0x3df93a('0x1f4d')+_0x3382a8+_0x3df93a('0x30e')),null;}function _0x4650e1(_0x21328e){var _0x576e7c=_0x4427d3;if(_0x24910f&&_0x24910f[_0x576e7c('0x2463')])return _0x4ebc54['cmContact']['get']({'ListId':_0x24910f['ListId'],'nolimit':!![],'filter':_0x21328e,'fields':_0x576e7c('0x284f')})[_0x576e7c('0xe59')][_0x576e7c('0xe19')](function(_0x16b7ac){return _0x16b7ac['rows'];});return[];}function _0x21f94b(){var _0x247bfa=_0x4427d3;_0x52f83c[_0x247bfa('0x2c1')]();}function _0x41af96(_0x571a0c){var _0x647169=/^(\+|\d)[0-9]{7,16}$/;return _0x647169['test'](_0x571a0c);}function _0x4c567f(){var _0x355551=_0x4427d3;_0x2a0651[_0x355551('0x17d9')]=!![];}function _0x4c129d(){var _0x21199d=_0x4427d3;_0x2a0651[_0x21199d('0x27e8')][_0x21199d('0x19b2')]&&_0x52f83c[_0x21199d('0x11ed')]({'secret':!![],'body':_0x2a0651[_0x21199d('0x27e8')][_0x21199d('0x19b2')]});}}const _0x499dde=_0x5c46cf;_0x36078b['$inject']=[_0xb635d2('0x1c9f'),'toasty','api','interaction',_0xb635d2('0x4e'),'user','draftManager'];function _0x36078b(_0xfd9eac,_0x10b4f3,_0x3f935a,_0x3fa1e6,_0x3f7788,_0x2e6858,_0x3c0497){var _0x4362d1=_0xb635d2,_0x4ed6d4=this;_0x4ed6d4['errors']=[],_0x4ed6d4[_0x4362d1('0x24eb')]=[],_0x4ed6d4[_0x4362d1('0xf6')]=angular[_0x4362d1('0x89')](_0x3fa1e6);!_0x4ed6d4[_0x4362d1('0xf6')]['disposition']&&(_0x4ed6d4['interaction'][_0x4362d1('0x2506')]=null);_0x4ed6d4[_0x4362d1('0x4e')]=_0x3f7788,_0x4ed6d4[_0x4362d1('0xbe1')]=_0x4ed6d4[_0x4362d1('0x4e')]+_0x4362d1('0x764'),_0x4ed6d4[_0x4362d1('0x1599')]=_0x4ed6d4[_0x4362d1('0x4e')]+(_0x4ed6d4[_0x4362d1('0x4e')]===_0x4362d1('0x17cc')?_0x4362d1('0x186c'):_0x4362d1('0x1e4e')),_0x4ed6d4[_0x4362d1('0x1ff4')]=_0x32d445()[_0x4362d1('0xbf6')](_0x4ed6d4['channel'])+(_0x4ed6d4['channel']===_0x4362d1('0x17cc')?_0x4362d1('0x186c'):'Account')+'Id',_0x4ed6d4['firstLevelDisposition']=null,_0x4ed6d4[_0x4362d1('0x1dc8')]=![],_0x4ed6d4['mandatoryDispositionPause']='',_0x4ed6d4[_0x4362d1('0x2251')]=_0x2e6858[_0x4362d1('0x1b8d')]||_0x2e6858[_0x4362d1('0x1b15')]||_0x2e6858[_0x4362d1('0x2531')]||_0x2e6858[_0x4362d1('0xf2a')]||_0x2e6858[_0x4362d1('0x2299')],_0x4ed6d4[_0x4362d1('0x22a1')]=_0xfe43d0,_0x4ed6d4['clearDispositionSelection']=_0x4b09db,_0x4ed6d4[_0x4362d1('0x3d9')]=_0x3bf5aa,_0x4ed6d4[_0x4362d1('0x2584')]=_0x1e8a91;function _0x252b3f(){var _0x314d0e=_0x4362d1,_0x1a9e1d=[],_0x2e8fed={'fields':_0x314d0e('0x232f'),'sort':_0x314d0e('0x2623'),'nolimit':!![]};_0x2e8fed[_0x4ed6d4['accountProperty']]=_0x3fa1e6[_0x4ed6d4['accountProperty']],_0x3f935a[_0x4ed6d4['apiAccountRoute']]['get']({'id':_0x3fa1e6[_0x4ed6d4[_0x314d0e('0x1ff4')]]})[_0x314d0e('0xe59')][_0x314d0e('0xe19')](function(_0x20cc07){var _0x2e02ee=_0x314d0e;return _0x4ed6d4[_0x2e02ee('0x1dc8')]=_0x20cc07['mandatoryDisposition'],_0x4ed6d4[_0x2e02ee('0x1dc8')]&&(_0x4ed6d4[_0x2e02ee('0x1e4f')]=_0x20cc07['mandatoryDispositionPause'][_0x2e02ee('0x2623')]),_0x3f935a[_0x2e02ee('0x2506')][_0x2e02ee('0x22d5')](_0x2e8fed)[_0x2e02ee('0xe59')];})[_0x314d0e('0xe19')](function(_0x2f7b38){var _0x3c74ea=_0x314d0e;return _0x2f7b38[_0x3c74ea('0x16a7')][_0x3c74ea('0x25ae')]&&(_0x1a9e1d=_0x32d445()[_0x3c74ea('0x1007')](_0x1a9e1d,_0x2f7b38[_0x3c74ea('0x16a7')])),_0x3f935a[_0x3c74ea('0x2506')]['get']({'MailAccountId':_0x3c74ea('0x1046'),'FaxAccountId':_0x3c74ea('0x1046'),'SmsAccountId':_0x3c74ea('0x1046'),'WhatsappAccountId':_0x3c74ea('0x1046'),'OpenchannelAccountId':_0x3c74ea('0x1046'),'ChatWebsiteId':_0x3c74ea('0x1046'),'ListId':_0x3c74ea('0x1046')})[_0x3c74ea('0xe59')];})[_0x314d0e('0xe19')](function(_0x474ebb){var _0x126eb5=_0x314d0e;_0x474ebb[_0x126eb5('0x16a7')][_0x126eb5('0x25ae')]&&(_0x1a9e1d=_0x32d445()['concat'](_0x1a9e1d,_0x474ebb[_0x126eb5('0x16a7')]));})[_0x314d0e('0x223b')](function(_0xbf7a3f){var _0x79f902=_0x314d0e;console[_0x79f902('0x8c8')](_0xbf7a3f);})[_0x314d0e('0x23')](function(){var _0x358ccc=_0x314d0e;_0x4ed6d4['dispositions']=_0x32d445()[_0x358ccc('0x10e')](_0x1a9e1d,[_0x358ccc('0x2623')],[_0x358ccc('0x1564')]),_0x53de2b();});}function _0x53de2b(){var _0x58a0df=_0x4362d1;_0x4ed6d4['mandatoryDisposition']&&!_0x4ed6d4['wasUserInPause']&&_0x3f935a[_0x58a0df('0x10c6')][_0x58a0df('0x1c98')]({'id':_0x2e6858['id'],'type':_0x4ed6d4[_0x58a0df('0x1e4f')]||_0x58a0df('0x271c')})[_0x58a0df('0xe59')][_0x58a0df('0xe19')](function(){})[_0x58a0df('0x223b')](function(_0x5ebb65){var _0x16bb6a=_0x58a0df;console[_0x16bb6a('0x8c8')](_0x5ebb65);});}function _0xfe43d0(_0x187ac4){var _0x2aab1b=_0x4362d1;if(_0x187ac4==='first'){_0x4ed6d4[_0x2aab1b('0x27e1')]=_0x4ed6d4[_0x2aab1b('0xeac')]?_0x32d445()['some'](_0x4ed6d4[_0x2aab1b('0x24eb')],[_0x2aab1b('0x2450'),_0x4ed6d4[_0x2aab1b('0xeac')]['id']]):![];if(!_0x4ed6d4[_0x2aab1b('0xeac')])_0x4ed6d4[_0x2aab1b('0x2625')]=undefined;}else _0x187ac4===_0x2aab1b('0x1be')&&(_0x4ed6d4[_0x2aab1b('0x161b')]=_0x32d445()[_0x2aab1b('0x201a')](_0x4ed6d4['dispositions'],[_0x2aab1b('0x2450'),_0x4ed6d4['secondLevelDisposition']['id']]));}function _0x4b09db(_0x3b1870){var _0x27f163=_0x4362d1;if(_0x3b1870==='second')_0x4ed6d4[_0x27f163('0x2625')]=undefined,_0x4ed6d4[_0x27f163('0xcec')]=undefined;else _0x3b1870==='third'&&(_0x4ed6d4['thirdLevelDisposition']=undefined);}function _0x3bf5aa(){var _0x4ac7c3=_0x4362d1;_0x4ed6d4[_0x4ac7c3('0xcd2')]=[],_0x4ed6d4[_0x4ac7c3('0xf6')][_0x4ac7c3('0x43d')]=_0x2e6858['id'],_0x4ed6d4[_0x4ac7c3('0xf6')][_0x4ac7c3('0x1835')]=!![],_0x4ed6d4[_0x4ac7c3('0xf6')][_0x4ac7c3('0x1655')]=_0x4ac7c3('0x108'),_0x4ed6d4[_0x4ac7c3('0xf6')][_0x4ac7c3('0x2506')]=_0x4ed6d4[_0x4ac7c3('0xeac')]?_0x4ed6d4[_0x4ac7c3('0xeac')][_0x4ac7c3('0x2623')]:null,_0x4ed6d4[_0x4ac7c3('0xf6')][_0x4ac7c3('0xa43')]=_0x4ed6d4[_0x4ac7c3('0x2625')]?_0x4ed6d4[_0x4ac7c3('0x2625')][_0x4ac7c3('0x2623')]:undefined,_0x4ed6d4[_0x4ac7c3('0xf6')][_0x4ac7c3('0x1b01')]=_0x4ed6d4['thirdLevelDisposition']?_0x4ed6d4[_0x4ac7c3('0xcec')][_0x4ac7c3('0x2623')]:undefined,_0x3f935a[_0x4ed6d4[_0x4ac7c3('0xbe1')]]?_0x3f935a[_0x4ed6d4[_0x4ac7c3('0xbe1')]]['update'](_0x32d445()[_0x4ac7c3('0xed5')](_0x4ed6d4[_0x4ac7c3('0xf6')],[_0x4ac7c3('0xa20'),_0x4ac7c3('0xef3'),'SmsAccountId',_0x4ac7c3('0x220b'),_0x4ac7c3('0x365'),_0x4ac7c3('0xf26'),_0x4ac7c3('0x1835'),_0x4ac7c3('0x1655'),_0x4ac7c3('0x2506'),_0x4ac7c3('0xa43'),_0x4ac7c3('0x1b01'),'id','note',_0x4ac7c3('0x43d')]))[_0x4ac7c3('0xe59')][_0x4ac7c3('0xe19')](function(_0x2a3839){var _0x56675f=_0x4ac7c3;_0x4ed6d4[_0x56675f('0xf6')]=_0x2a3839,_0x4ed6d4[_0x56675f('0x4e')]===_0x56675f('0x26bf')&&_0x3c0497[_0x56675f('0x1154')](_0x4ed6d4[_0x56675f('0xf6')]['id']),_0x10b4f3[_0x56675f('0x425')]({'title':_0x56675f('0xd95'),'msg':_0x56675f('0xb11')});})[_0x4ac7c3('0xe19')](function(){_0x1e8a91(!![]);})['catch'](function(_0x10386e){var _0x668197=_0x4ac7c3;if(_0x10386e[_0x668197('0x11d0')]&&_0x10386e['data'][_0x668197('0xcd2')]&&_0x10386e['data'][_0x668197('0xcd2')]['length']){_0x4ed6d4[_0x668197('0xcd2')]=_0x10386e[_0x668197('0x11d0')]['errors']||[{'message':_0x10386e[_0x668197('0x94f')](),'type':_0x668197('0x1c6a')}];for(var _0x502b11=0x0;_0x502b11<_0x10386e[_0x668197('0x11d0')][_0x668197('0xcd2')][_0x668197('0x25ae')];_0x502b11++){_0x10b4f3[_0x668197('0x8c8')]({'title':_0x10386e[_0x668197('0x11d0')][_0x668197('0xcd2')][_0x502b11][_0x668197('0x62e')],'msg':_0x10386e['data'][_0x668197('0xcd2')][_0x502b11][_0x668197('0x27e8')]});}}else _0x10b4f3[_0x668197('0x8c8')]({'title':_0x10386e[_0x668197('0x2833')]?_0x668197('0x27f2')+_0x10386e[_0x668197('0x2833')]+_0x668197('0x1b7c')+_0x10386e[_0x668197('0x1fd7')]:'api.variable.update','msg':_0x10386e[_0x668197('0x11d0')]?JSON['stringify'](_0x10386e[_0x668197('0x11d0')][_0x668197('0x27e8')]):_0x10386e[_0x668197('0x94f')]()});}):_0x1e8a91(![]);}function _0x1e8a91(_0x1f4318){var _0x48991a=_0x4362d1;_0xfd9eac[_0x48991a('0x11ed')](_0x1f4318);}_0x252b3f();}const _0x3c0d53=_0x36078b;_0xe7eed0[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'toasty',_0xb635d2('0xffc'),_0xb635d2('0xf6'),_0xb635d2('0x4e'),_0xb635d2('0x1105')];function _0xe7eed0(_0x1ef317,_0x35283d,_0x19f7a3,_0x69e60e,_0x2321fb,_0x579c76){var _0x1bb88c=_0xb635d2,_0x15c806=this;_0x15c806[_0x1bb88c('0xcd2')]=[],_0x15c806['tags']=_0x579c76,_0x15c806['interaction']=angular[_0x1bb88c('0x89')](_0x69e60e),_0x15c806[_0x1bb88c('0xf6')]['Tags']=_0x32d445()[_0x1bb88c('0x65a')](_0x15c806[_0x1bb88c('0xf6')]['Tags'],function(_0x4bf576){return{'id':_0x4bf576['id'],'name':_0x4bf576['name'],'color':_0x4bf576['color']};}),_0x15c806[_0x1bb88c('0x4e')]=_0x2321fb,_0x15c806[_0x1bb88c('0x1ed8')]=!![],_0x15c806[_0x1bb88c('0x25b0')]=_0x5504d2,_0x15c806[_0x1bb88c('0x2584')]=_0x5a4ba8,_0x15c806[_0x1bb88c('0xbe1')]=_0x15c806[_0x1bb88c('0x4e')]+_0x1bb88c('0x764');function _0x5504d2(){var _0x34028c=_0x1bb88c;_0x15c806[_0x34028c('0xcd2')]=[];if(_0x19f7a3[_0x15c806['apiRoute']])return _0x19f7a3[_0x15c806[_0x34028c('0xbe1')]][_0x34028c('0x10c')]({'id':_0x15c806[_0x34028c('0xf6')]['id'],'ids':_0x32d445()[_0x34028c('0x65a')](_0x15c806[_0x34028c('0xf6')][_0x34028c('0x1e7b')],'id')})[_0x34028c('0xe59')]['then'](function(){var _0x42bbca=_0x34028c;_0x35283d[_0x42bbca('0x425')]({'title':_0x42bbca('0x390'),'msg':_0x42bbca('0x217c')}),_0x69e60e[_0x42bbca('0x1e7b')]=_0x15c806[_0x42bbca('0xf6')][_0x42bbca('0x1e7b')],_0x5a4ba8(!![]);})[_0x34028c('0x223b')](function(_0x3977bc){var _0x270541=_0x34028c;if(_0x3977bc[_0x270541('0x11d0')]&&_0x3977bc[_0x270541('0x11d0')][_0x270541('0xcd2')]&&_0x3977bc['data'][_0x270541('0xcd2')]['length'])for(var _0x35b7aa=0x0;_0x35b7aa<_0x3977bc[_0x270541('0x11d0')][_0x270541('0xcd2')][_0x270541('0x25ae')];_0x35b7aa+=0x1){_0x35283d['error']({'title':_0x3977bc[_0x270541('0x11d0')][_0x270541('0xcd2')][_0x35b7aa]['type'],'msg':_0x3977bc[_0x270541('0x11d0')][_0x270541('0xcd2')][_0x35b7aa][_0x270541('0x27e8')]});}else _0x35283d[_0x270541('0x8c8')]({'title':_0x3977bc[_0x270541('0x2833')]?_0x270541('0x27f2')+_0x3977bc[_0x270541('0x2833')]+_0x270541('0x1b7c')+_0x3977bc[_0x270541('0x1fd7')]:_0x270541('0x1c6a'),'msg':_0x3977bc['data']?JSON[_0x270541('0x3ad')](_0x3977bc['data'][_0x270541('0x27e8')]):_0x3977bc['toString']()});});else _0x5a4ba8(![]);}function _0x5a4ba8(_0x5e9bb8){var _0x3cc563=_0x1bb88c;_0x1ef317[_0x3cc563('0x11ed')](_0x5e9bb8);}}const _0x8c272a=_0xe7eed0;_0x381887[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x1a0b'),_0xb635d2('0x2730'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x4e'),_0xb635d2('0x27e8'),_0xb635d2('0xe8b')];function _0x381887(_0xcdd3d7,_0x9afe57,_0x2582ba,_0x2f2d6f,_0x100a05,_0x55a06a,_0x40966e,_0x239bb3){var _0x5de48c=_0xb635d2,_0x3729fc=this;_0x3729fc['currentUser']=_0x2582ba[_0x5de48c('0x1ef8')](),_0x3729fc[_0x5de48c('0x4e')]=_0x55a06a[_0x5de48c('0x20dd')](),_0x3729fc['message']=_0x40966e,_0x3729fc[_0x5de48c('0xe8b')]=_0x239bb3,_0x3729fc[_0x5de48c('0xf1b')]={'id':0x0,'type':'queue'},_0x3729fc[_0x5de48c('0x671')]={'count':0x0,'rows':[]},_0x3729fc['agents']=_0x3729fc[_0x5de48c('0x671')],_0x3729fc[_0x5de48c('0x1a0f')]=_0x3729fc['channel']+'Queue',_0x3729fc['queueNotifyMethod']=_0x3729fc[_0x5de48c('0x4e')]+_0x5de48c('0x48f'),_0x3729fc[_0x5de48c('0x16c6')]=_0x4db2aa,_0x3729fc[_0x5de48c('0x2584')]=_0x9aa9f8,_0x3729fc[_0x5de48c('0x15f9')]=_0x2ae790,_0x3729fc['init']();function _0x2ae790(){var _0x231c05=_0x5de48c;return _0x2f2d6f['user']['get']({'fields':'id,name','role':'agent','sort':_0x231c05('0x2623'),'nolimit':!![]})[_0x231c05('0xe59')][_0x231c05('0xe19')](function(_0xd9e0df){var _0x3c5f6c=_0x231c05;return _0x3729fc[_0x3c5f6c('0x29b')]=_0xd9e0df||{'count':0x0,'rows':[]},_0x2f2d6f[_0x3729fc[_0x3c5f6c('0x1a0f')]]['get']({'fields':'id,name','sort':'name','nolimit':!![]})[_0x3c5f6c('0xe59')];})[_0x231c05('0xe19')](function(_0x50c72a){_0x3729fc['queues']=_0x50c72a||{'count':0x0,'rows':[]};})[_0x231c05('0x223b')](function(_0x592722){var _0x513ed5=_0x231c05;console[_0x513ed5('0x8c8')](_0x592722);});}function _0x9aa9f8(_0x1a89f1){var _0x545cf6=_0x5de48c;_0xcdd3d7[_0x545cf6('0x11ed')](_0x1a89f1);}function _0x4db2aa(){_0x9aa9f8(!![]),_0x9afe57(function(){var _0x3e93f9=a0_0x5325;return _0x2f2d6f['rpc'][_0x3729fc[_0x3e93f9('0xf1b')][_0x3e93f9('0x62e')]==='agent'?_0x3e93f9('0x782'):_0x3729fc[_0x3e93f9('0x1e8e')]]({'id':_0x3729fc[_0x3e93f9('0xf1b')]['id'],'messageId':_0x3729fc['message']['id'],'channel':_0x3729fc[_0x3e93f9('0x4e')]})[_0x3e93f9('0xe59')][_0x3e93f9('0xe19')](function(){var _0x31f987=_0x3e93f9;_0x100a05[_0x31f987('0x425')]({'title':_0x31f987('0x1b9a'),'msg':'Transfer\x20'+_0x3729fc[_0x31f987('0xf1b')]['type']+_0x31f987('0x9c6')});})['catch'](function(_0x403235){var _0x5aef33=_0x3e93f9;if(_0x403235[_0x5aef33('0x11d0')]&&_0x403235[_0x5aef33('0x11d0')][_0x5aef33('0xcd2')]&&_0x403235[_0x5aef33('0x11d0')][_0x5aef33('0xcd2')][_0x5aef33('0x25ae')]){_0x3729fc[_0x5aef33('0xcd2')]=_0x403235[_0x5aef33('0x11d0')][_0x5aef33('0xcd2')]||[{'message':_0x403235['toString'](),'type':_0x5aef33('0x190f')}];for(var _0x4e1b03=0x0;_0x4e1b03<_0x403235[_0x5aef33('0x11d0')][_0x5aef33('0xcd2')][_0x5aef33('0x25ae')];_0x4e1b03++){_0x100a05[_0x5aef33('0x8c8')]({'title':_0x403235[_0x5aef33('0x11d0')][_0x5aef33('0xcd2')][_0x4e1b03][_0x5aef33('0x62e')],'msg':_0x403235[_0x5aef33('0x11d0')][_0x5aef33('0xcd2')][_0x4e1b03]['message']});}}else _0x100a05[_0x5aef33('0x8c8')]({'title':_0x403235[_0x5aef33('0x2833')]?_0x5aef33('0x27f2')+_0x403235[_0x5aef33('0x2833')]+'\x20-\x20'+_0x403235['statusText']:_0x5aef33('0x190f'),'msg':_0x403235[_0x5aef33('0x11d0')]?JSON[_0x5aef33('0x3ad')](_0x403235[_0x5aef33('0x11d0')][_0x5aef33('0x27e8')]):_0x403235[_0x5aef33('0x94f')]()});});},0x1388);}}const _0x36a51b=_0x381887;_0x3ff5f7[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$q',_0xb635d2('0x1c9f'),_0xb635d2('0x18'),'api',_0xb635d2('0xf65'),'Auth',_0xb635d2('0x2493'),_0xb635d2('0x917'),_0xb635d2('0x1a0b'),_0xb635d2('0x1563')];function _0x3ff5f7(_0x2a2b44,_0xf3c6dd,_0x4aabda,_0x109301,_0x2e179f,_0x529d4a,_0x13f7a1,_0x2e265f,_0x25009a,_0xf9467a,_0x493b10){var _0x5b57ee=_0xb635d2,_0x55f579=this;_0x55f579[_0x5b57ee('0x6f8')]={},_0x55f579[_0x5b57ee('0xbb7')]=!![],_0x55f579['showIncompleteSubmitButton']=![],_0x55f579['detectBrowser']=_0x493b10[_0x5b57ee('0x1e2a')](),_0x55f579[_0x5b57ee('0x4a3')]=_0x5a28a2,_0x55f579['openContact']=_0x379e25,_0x55f579[_0x5b57ee('0x3fd')]=_0x718448,_0x55f579[_0x5b57ee('0x2626')]=_0x53cbec,_0x55f579[_0x5b57ee('0x19eb')]=_0x37f8c8,_0x55f579[_0x5b57ee('0x14ce')]=_0xc8c1e,_0x55f579[_0x5b57ee('0x17e2')]=_0x241bbd,_0x55f579[_0x5b57ee('0x15f9')]=_0xe56ea2,_0x55f579['resetViewer']=function(_0x487d61){var _0x50da12=_0x5b57ee;if(_0x55f579['formViewer'][_0x50da12('0x1590')]){var _0x30238b=_0x4aabda[_0x50da12('0xa5')]()[_0x50da12('0x13e4')](_0x2e265f[_0x50da12('0x2159')]('JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION'))[_0x50da12('0xd0')](_0x2e265f[_0x50da12('0x2159')](_0x50da12('0x1d8d')))[_0x50da12('0x2719')]('')[_0x50da12('0x4d1')](_0x50da12('0x266'))['targetEvent'](_0x487d61)['ok'](_0x2e265f[_0x50da12('0x2159')](_0x50da12('0x172f')))[_0x50da12('0x2c1')](_0x2e265f[_0x50da12('0x2159')](_0x50da12('0xc1a')));_0x4aabda[_0x50da12('0x26b2')](_0x30238b)[_0x50da12('0xe19')](function(){var _0x267523=_0x50da12;_0x55f579['showIncompleteSubmitButton']=![],_0x55f579[_0x267523('0x38b')][_0x267523('0x505')]=undefined,_0x400b8b(),_0x55f579[_0x267523('0x6f8')][_0x267523('0x1590')]();});}};function _0x400b8b(){var _0x58de2b=_0x5b57ee;try{_0x2a2b44[_0x58de2b('0x5cf')][_0x58de2b('0x5cf')]['$parent']['vm'][_0x58de2b('0x1d3')]();}catch(_0x9ee44b){_0x529d4a['error']({'title':_0x58de2b('0x12e3'),'msg':_0x58de2b('0x17fa')});}}function _0xe56ea2(_0x1fe4b2){var _0x116c18=_0x5b57ee;_0x55f579['tab']=_0x1fe4b2;if(_0x55f579['tab']){_0x55f579['call']=_0x55f579['tab']['call'],_0x55f579[_0x116c18('0x61f')]=_0x55f579[_0x116c18('0x435')][_0x116c18('0x1c2e')],_0x55f579['contact']=_0x55f579['tab']['contact'],_0x55f579[_0x116c18('0x38b')]=_0x55f579[_0x116c18('0x435')][_0x116c18('0x38b')];if(_0x55f579[_0x116c18('0x38b')]){if(_0x32d445()[_0x116c18('0x1560')](_0x55f579[_0x116c18('0x38b')]['formData'])){}else _0x55f579[_0x116c18('0x3fd')](_0x55f579['project']['formData'])?_0x55f579[_0x116c18('0x38b')][_0x116c18('0x2470')]=JSON['parse'](_0x55f579[_0x116c18('0x38b')]['formData']):_0x55f579[_0x116c18('0x38b')][_0x116c18('0x2470')]=undefined;_0x55f579[_0x116c18('0x38b')][_0x116c18('0x1708')]=_0x55f579[_0x116c18('0x38b')][_0x116c18('0x1708')]||{},_0x55f579[_0x116c18('0x38b')][_0x116c18('0x505')]!==undefined&&_0xf9467a(function(){var _0x27177f=_0x116c18;_0x25009a['$broadcast'](_0x27177f('0x1519'),{'page':_0x55f579[_0x27177f('0x38b')][_0x27177f('0x505')]});}),_0x2a2b44[_0x116c18('0xb2b')](_0x116c18('0x244b'),function(_0x3a5d61,_0x198ce1){var _0x11bf63=_0x116c18;if(_0x198ce1[_0x11bf63('0x505')]){_0x55f579[_0x11bf63('0x38b')]['currentPage']=_0x198ce1[_0x11bf63('0x505')][_0x11bf63('0x1c60')]-0x1,_0x400b8b();_0x55f579['project'][_0x11bf63('0x279a')]&&(_0x198ce1[_0x11bf63('0x505')][_0x11bf63('0x1c60')]>=0x1&&_0x198ce1[_0x11bf63('0x505')][_0x11bf63('0x1c60')]<_0x55f579[_0x11bf63('0x38b')][_0x11bf63('0x2470')][_0x11bf63('0x1b1d')]['length']?_0x55f579[_0x11bf63('0x195')]=!![]:_0x55f579[_0x11bf63('0x195')]=![]);if(_0x55f579[_0x11bf63('0x38b')]['formData']&&_0x55f579[_0x11bf63('0x38b')][_0x11bf63('0x2470')][_0x11bf63('0x1b1d')])for(var _0x408c39=0x0,_0x17244e=_0x55f579[_0x11bf63('0x38b')][_0x11bf63('0x2470')][_0x11bf63('0x1b1d')][_0x11bf63('0x25ae')];_0x408c39<_0x17244e;_0x408c39++){if(_0x198ce1[_0x11bf63('0x505')][_0x11bf63('0x1c60')]<_0x408c39+0x1&&_0x55f579['project'][_0x11bf63('0x2470')][_0x11bf63('0x1b1d')][_0x408c39][_0x11bf63('0x188f')])for(var _0x129245=0x0,_0x190456=_0x55f579[_0x11bf63('0x38b')][_0x11bf63('0x2470')]['pages'][_0x408c39][_0x11bf63('0x188f')][_0x11bf63('0x25ae')];_0x129245<_0x190456;_0x129245++){_0x55f579[_0x11bf63('0x38b')]['formData'][_0x11bf63('0x1b1d')][_0x408c39]['elements'][_0x129245][_0x11bf63('0x62e')]==='question'&&_0x55f579[_0x11bf63('0x38b')]['formData']['pages'][_0x408c39]['elements'][_0x129245][_0x11bf63('0x1805')]&&delete _0x55f579['project'][_0x11bf63('0x1708')][_0x55f579[_0x11bf63('0x38b')][_0x11bf63('0x2470')][_0x11bf63('0x1b1d')][_0x408c39][_0x11bf63('0x188f')][_0x129245][_0x11bf63('0x1805')]['id']];}}}});}}}function _0x718448(_0x1f4a6c){var _0x294f77=_0x5b57ee;if(_0x32d445()['isNil'](_0x1f4a6c))return![];try{JSON[_0x294f77('0x118e')](_0x1f4a6c);}catch(_0x4372e8){return![];}return!![];}function _0x379e25(_0x30fc59,_0x13a18f){var _0x425b14=_0x5b57ee;try{_0x2a2b44[_0x425b14('0x5cf')]['$parent'][_0x425b14('0x5cf')]['vm'][_0x425b14('0x8be')](_0x13a18f);}catch(_0x254958){_0x529d4a[_0x425b14('0x8c8')]({'title':_0x425b14('0x179'),'msg':_0x425b14('0x2d9')});}}function _0x3ec2fc(_0x1fc0fb){var _0x1066ec=_0x5b57ee,_0xcf4213=_0xf3c6dd['defer']();return _0x55f579[_0x1066ec('0x38b')][_0x1066ec('0x1217')]?_0x2e179f[_0x1066ec('0x10c6')][_0x1066ec('0x2471')]({'id':_0x1fc0fb['id']})[_0x1066ec('0xe59')][_0x1066ec('0xe19')](function(){var _0x59cda1=_0x1066ec;_0xcf4213[_0x59cda1('0xcd6')]();})[_0x1066ec('0x223b')](function(){var _0x145bb4=_0x1066ec;console['log']('err'),_0xcf4213[_0x145bb4('0xcd6')]();}):_0xcf4213[_0x1066ec('0xcd6')](),_0xcf4213[_0x1066ec('0x9c8')];}function _0x5bfa3f(_0x10ba2d,_0x56f2ca){var _0x55076b=_0x5b57ee,_0x4464f1=[],_0x2d7e39=[],_0x35a23e=_0x13f7a1[_0x55076b('0x1ef8')]();_0x3ec2fc(_0x35a23e)[_0x55076b('0xe19')](function(){var _0x1898eb=_0x55076b;return _0x2e179f['jscriptySessionReport'][_0x1898eb('0xe5e')]({'starttime':_0x55f579[_0x1898eb('0x61f')],'membername':_0x55f579[_0x1898eb('0x20c4')]&&_0x55f579[_0x1898eb('0x20c4')][_0x1898eb('0x8df')]?_0x55f579['call'][_0x1898eb('0x8df')]:_0x35a23e[_0x1898eb('0x2623')],'calleridname':_0x55f579[_0x1898eb('0x20c4')]&&_0x55f579[_0x1898eb('0x20c4')][_0x1898eb('0x173a')]?_0x55f579[_0x1898eb('0x20c4')]['calleridname']:undefined,'calleridnum':_0x55f579[_0x1898eb('0x20c4')]&&_0x55f579[_0x1898eb('0x20c4')]['calleridnum']?_0x55f579['call'][_0x1898eb('0xb2d')]:undefined,'queue':_0x55f579[_0x1898eb('0x20c4')]&&_0x55f579[_0x1898eb('0x20c4')][_0x1898eb('0x26a8')]?_0x55f579['call']['queue']:undefined,'uniqueid':_0x55f579['call']&&_0x55f579[_0x1898eb('0x20c4')][_0x1898eb('0x1a6c')]?_0x55f579[_0x1898eb('0x20c4')][_0x1898eb('0x1a6c')]:undefined,'VoiceQueueId':_0x55f579[_0x1898eb('0x20c4')]&&_0x55f579['call'][_0x1898eb('0x875')]?_0x55f579[_0x1898eb('0x20c4')][_0x1898eb('0x875')]:undefined,'ProjectId':_0x55f579[_0x1898eb('0x38b')]&&_0x55f579[_0x1898eb('0x38b')]['id']?_0x55f579[_0x1898eb('0x38b')]['id']:undefined,'projectname':_0x55f579['project']&&_0x55f579['project']['name']?_0x55f579[_0x1898eb('0x38b')][_0x1898eb('0x2623')]:undefined,'ContactId':_0x55f579['contact']&&_0x55f579[_0x1898eb('0xd9a')]['id']?_0x55f579[_0x1898eb('0xd9a')]['id']:undefined,'completed':_0x56f2ca})[_0x1898eb('0xe59')];})[_0x55076b('0xe19')](function(_0x92f746){var _0x2f7f96=_0x55076b;if(_0x92f746){var _0x108e24=_0x55f579[_0x2f7f96('0x14ce')](),_0x32e563=_0x55f579[_0x2f7f96('0x19eb')](),_0x456b87=_0x55f579[_0x2f7f96('0x17e2')]();for(var _0x103735=0x0;_0x103735<_0x108e24[_0x2f7f96('0x25ae')];_0x103735+=0x1){if(!_0x32d445()[_0x2f7f96('0x14b4')](String(_0x32e563[_0x103735]))){try{_0x4464f1[_0x2f7f96('0xb76')](_0x2e179f[_0x2f7f96('0x1aeb')]['save']({'question':_0x108e24[_0x103735],'answer':_0x456b87[_0x103735][_0x2f7f96('0x62e')]===_0x2f7f96('0xf6d')?_0x4ddcaa()(String(_0x32e563[_0x103735]))[_0x2f7f96('0x5e5')]('YYYY-MM-DD'):_0x456b87[_0x103735]['type']==='time'?_0x4ddcaa()(String(_0x32e563[_0x103735]))['format'](_0x2f7f96('0x1dd1')):String(_0x32e563[_0x103735]),'questionId':_0x456b87[_0x103735]['id'],'membername':_0x55f579[_0x2f7f96('0x20c4')]&&_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x8df')]?_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x8df')]:_0x35a23e[_0x2f7f96('0x2623')],'calleridname':_0x55f579[_0x2f7f96('0x20c4')]&&_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x173a')]?_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x173a')]:undefined,'calleridnum':_0x55f579['call']&&_0x55f579['call'][_0x2f7f96('0xb2d')]?_0x55f579['call']['calleridnum']:undefined,'queue':_0x55f579[_0x2f7f96('0x20c4')]&&_0x55f579['call'][_0x2f7f96('0x26a8')]?_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x26a8')]:undefined,'uniqueid':_0x55f579[_0x2f7f96('0x20c4')]&&_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x1a6c')]?_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x1a6c')]:undefined,'SessionId':_0x92f746['id'],'ProjectId':_0x55f579[_0x2f7f96('0x38b')]['id'],'projectname':_0x55f579[_0x2f7f96('0x38b')][_0x2f7f96('0x2623')]}));}catch(_0x1a3a8e){console[_0x2f7f96('0x8c8')]('Unable\x20to\x20convert\x20question',_0x1a3a8e);}var _0x1a1c6b=String(_0x32e563[_0x103735])[_0x2f7f96('0x1745')](';');for(var _0x38b400=0x0;_0x38b400<_0x1a1c6b[_0x2f7f96('0x25ae')];_0x38b400+=0x1){var _0x54f6ab=_0x1a1c6b[_0x38b400][_0x2f7f96('0x26b4')]();try{_0x2d7e39[_0x2f7f96('0xb76')](_0x2e179f[_0x2f7f96('0xd4a')][_0x2f7f96('0xe5e')]({'question':_0x108e24[_0x103735],'questionId':_0x456b87[_0x103735]['id'],'answer':_0x456b87[_0x103735][_0x2f7f96('0x62e')]===_0x2f7f96('0xf6d')?_0x4ddcaa()(_0x54f6ab)[_0x2f7f96('0x5e5')]('YYYY-MM-DD'):_0x456b87[_0x103735][_0x2f7f96('0x62e')]===_0x2f7f96('0x1297')?_0x4ddcaa()(_0x54f6ab)[_0x2f7f96('0x5e5')](_0x2f7f96('0x1dd1')):_0x54f6ab,'membername':_0x55f579[_0x2f7f96('0x20c4')]&&_0x55f579['call'][_0x2f7f96('0x8df')]?_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x8df')]:_0x35a23e['name'],'calleridname':_0x55f579['call']&&_0x55f579[_0x2f7f96('0x20c4')]['calleridname']?_0x55f579['call'][_0x2f7f96('0x173a')]:undefined,'calleridnum':_0x55f579[_0x2f7f96('0x20c4')]&&_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0xb2d')]?_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0xb2d')]:undefined,'queue':_0x55f579[_0x2f7f96('0x20c4')]&&_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x26a8')]?_0x55f579['call']['queue']:undefined,'uniqueid':_0x55f579[_0x2f7f96('0x20c4')]&&_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x1a6c')]?_0x55f579[_0x2f7f96('0x20c4')][_0x2f7f96('0x1a6c')]:undefined,'SessionId':_0x92f746['id'],'ProjectId':_0x55f579['project']['id'],'projectname':_0x55f579[_0x2f7f96('0x38b')][_0x2f7f96('0x2623')]}));}catch(_0x1c9ae3){console[_0x2f7f96('0x8c8')](_0x2f7f96('0x1f1a'),_0x1c9ae3);}}}}}return _0xf3c6dd[_0x2f7f96('0xf0e')](_0x4464f1)['then'](function(){var _0x565b50=_0x2f7f96;return _0xf3c6dd[_0x565b50('0xf0e')](_0x2d7e39)[_0x565b50('0xe19')](function(){return _0x92f746;});});})['then'](function(_0x954f10){var _0x7c7068=_0x55076b;_0x954f10?_0x10ba2d[_0x7c7068('0xcd6')](!![]):_0x10ba2d[_0x7c7068('0x1337')]();})[_0x55076b('0x223b')](function(_0x1b5d58){var _0x10115c=_0x55076b;if(_0x1b5d58['data']&&_0x1b5d58[_0x10115c('0x11d0')][_0x10115c('0xcd2')]&&_0x1b5d58[_0x10115c('0x11d0')][_0x10115c('0xcd2')]['length']){_0x55f579[_0x10115c('0xcd2')]=_0x1b5d58[_0x10115c('0x11d0')][_0x10115c('0xcd2')]||[{'message':_0x1b5d58[_0x10115c('0x94f')](),'type':_0x10115c('0x103e')}];for(var _0x36ea31=0x0;_0x36ea31<_0x1b5d58['data']['errors']['length'];_0x36ea31+=0x1){_0x529d4a[_0x10115c('0x8c8')]({'title':_0x1b5d58['data'][_0x10115c('0xcd2')][_0x36ea31][_0x10115c('0x62e')],'msg':_0x1b5d58[_0x10115c('0x11d0')][_0x10115c('0xcd2')][_0x36ea31][_0x10115c('0x27e8')]});}}else _0x529d4a[_0x10115c('0x8c8')]({'title':_0x1b5d58[_0x10115c('0x2833')]?_0x10115c('0x27f2')+_0x1b5d58[_0x10115c('0x2833')]+_0x10115c('0x1b7c')+_0x1b5d58['statusText']:_0x10115c('0x103e'),'msg':_0x1b5d58[_0x10115c('0x11d0')]?JSON[_0x10115c('0x3ad')](_0x1b5d58[_0x10115c('0x11d0')][_0x10115c('0x27e8')]):_0x1b5d58[_0x10115c('0x94f')]()});_0x10ba2d[_0x10115c('0x1337')]();});}function _0x5f059e(_0x3e6048){var _0x25659b=_0x5b57ee;try{_0x2a2b44[_0x25659b('0x5cf')][_0x25659b('0x5cf')]['$parent']['vm'][_0x25659b('0x5e6')](_0x3e6048);}catch(_0x42820d){_0x529d4a[_0x25659b('0x8c8')]({'title':_0x25659b('0xc02'),'msg':_0x25659b('0x70c')});}}function _0x5a28a2(_0x2af0c2,_0xaf5188){var _0x2b4d15=_0x5b57ee,_0x1b0416=_0xf3c6dd['defer']();if(_0xaf5188){var _0x1a291b=_0x4aabda[_0x2b4d15('0xa5')]()[_0x2b4d15('0x13e4')](_0x2b4d15('0x97f'))['textContent']('')['ariaLabel']('survey')[_0x2b4d15('0x1345')](_0x2af0c2)['ok'](_0x2b4d15('0x1c5b'))[_0x2b4d15('0x2c1')]('NO');_0x4aabda[_0x2b4d15('0x26b2')](_0x1a291b)[_0x2b4d15('0xe19')](function(){_0x5bfa3f(_0x1b0416,![]);},function(){var _0x1bf906=_0x2b4d15;_0x1b0416[_0x1bf906('0xcd6')]();});}else _0x5bfa3f(_0x1b0416,!![]);return _0x1b0416[_0x2b4d15('0x9c8')][_0x2b4d15('0xe19')](function(_0x5b40a8){var _0xe231ad=_0x2b4d15;_0x5b40a8&&(_0x529d4a[_0xe231ad('0x425')]({'title':_0xe231ad('0x2261'),'msg':_0xe231ad('0x136d')}),_0x5f059e(_0x55f579[_0xe231ad('0x435')]));})['catch'](function(){var _0xdefc42=_0x2b4d15;_0x529d4a[_0xdefc42('0x8c8')]({'title':_0xdefc42('0x17ed'),'msg':'There\x20has\x20been\x20an\x20error\x20while\x20trying\x20to\x20save\x20your\x20survey\x20session!'});});}function _0x53cbec(){var _0x266711=_0x5b57ee;return _0x109301[_0x266711('0x2626')](_0x55f579[_0x266711('0x38b')][_0x266711('0x2470')],_0x55f579[_0x266711('0x38b')]['responseData'],![]);}function _0x37f8c8(){var _0x18e437=_0x5b57ee;return _0x109301[_0x18e437('0x19eb')](_0x55f579['project'][_0x18e437('0x2470')],_0x55f579['project'][_0x18e437('0x1708')]);}function _0xc8c1e(){var _0x3a3e2d=_0x5b57ee;return _0x109301[_0x3a3e2d('0x14ce')](_0x55f579[_0x3a3e2d('0x38b')]['formData'],![]);}function _0x241bbd(){var _0x3594fd=_0x5b57ee;return _0x109301[_0x3594fd('0x17e2')](_0x55f579[_0x3594fd('0x38b')][_0x3594fd('0x2470')],_0x55f579['project'][_0x3594fd('0x1708')]);}}const _0x48fa12=_0x3ff5f7;_0x4e5f17[_0xb635d2('0xb0c')]=[_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1f80'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x4e5f17(_0x4aef50,_0x28cdbf,_0x20a6f6,_0x42af32,_0x149a2b){var _0x1a7324=_0xb635d2,_0x4e5614=this;_0x4e5614[_0x1a7324('0x1f80')]=_0x20a6f6,_0x4e5614[_0x1a7324('0x10c6')]=_0x149a2b[_0x1a7324('0x1ef8')]();function _0xc6a871(){return function(_0x4d9845){var _0x543061=a0_0x5325;if(_0x4d9845[_0x543061('0x2833')]===0x194)_0x28cdbf[_0x543061('0x1e67')]({'title':_0x4aef50[_0x543061('0x2159')](_0x543061('0x24ae')),'msg':_0x4aef50[_0x543061('0x2159')](_0x543061('0x477'))});else{if(_0x4d9845[_0x543061('0x11d0')]&&_0x4d9845[_0x543061('0x11d0')][_0x543061('0xcd2')]&&_0x4d9845['data'][_0x543061('0xcd2')][_0x543061('0x25ae')]){_0x4e5614['errors']=_0x4d9845[_0x543061('0x11d0')]['errors']||[{'message':_0x4d9845[_0x543061('0x94f')](),'type':_0x543061('0x24cf')}];for(var _0x4e9814=0x0;_0x4e9814<_0x4d9845[_0x543061('0x11d0')][_0x543061('0xcd2')][_0x543061('0x25ae')];_0x4e9814+=0x1){_0x28cdbf[_0x543061('0x8c8')]({'title':_0x4d9845['data'][_0x543061('0xcd2')][_0x4e9814]['type'],'msg':_0x4d9845[_0x543061('0x11d0')][_0x543061('0xcd2')][_0x4e9814]['message']});}}else _0x28cdbf[_0x543061('0x8c8')]({'title':_0x4d9845[_0x543061('0x2833')]?'API:'+_0x4d9845['status']+'\x20-\x20'+_0x4d9845[_0x543061('0x1fd7')]:_0x543061('0x24cf'),'msg':_0x4d9845['data']?JSON[_0x543061('0x3ad')](_0x4d9845[_0x543061('0x11d0')][_0x543061('0x27e8')]):_0x4d9845['toString']()});}};}function _0xe97ee4(){var _0x216917=_0x1a7324;if(_0x42af32[_0x4e5614[_0x216917('0x1f80')][_0x216917('0x4e')]+_0x216917('0x2164')])return _0x42af32[_0x4e5614[_0x216917('0x1f80')][_0x216917('0x4e')]+'Message']['accept']({'id':_0x4e5614['notification']['id'],'UserId':_0x4e5614['user']['id'],'manual':!![]})[_0x216917('0xe59')][_0x216917('0xe19')](function(){var _0x3f0f2c=_0x216917;_0x28cdbf[_0x3f0f2c('0x425')]({'title':_0x3f0f2c('0x120a'),'msg':_0x3f0f2c('0x451')});})[_0x216917('0x223b')](_0xc6a871());else _0x28cdbf[_0x216917('0x8c8')]({'title':'API:ERROR','msg':_0x216917('0x1e43')+_0x4e5614[_0x216917('0x1f80')][_0x216917('0x4e')]+_0x216917('0x2164')});}function _0x59b965(){var _0x44cd88=_0x1a7324;if(_0x42af32[_0x4e5614[_0x44cd88('0x1f80')]['channel']+_0x44cd88('0x2164')])return _0x42af32[_0x4e5614[_0x44cd88('0x1f80')][_0x44cd88('0x4e')]+_0x44cd88('0x2164')][_0x44cd88('0x1337')]({'id':_0x4e5614[_0x44cd88('0x1f80')]['id'],'UserId':_0x4e5614[_0x44cd88('0x10c6')]['id']})[_0x44cd88('0xe59')][_0x44cd88('0xe19')](function(){var _0x1cb92e=_0x44cd88;_0x28cdbf[_0x1cb92e('0x425')]({'title':_0x1cb92e('0x419'),'msg':'Message\x20has\x20been\x20rejected!'});})[_0x44cd88('0x223b')](_0xc6a871());else _0x28cdbf[_0x44cd88('0x8c8')]({'title':_0x44cd88('0x890'),'msg':_0x44cd88('0x25ad')+_0x4e5614['notification'][_0x44cd88('0x4e')]+_0x44cd88('0x2164')});}_0x4e5614[_0x1a7324('0xcb5')]=_0xe97ee4,_0x4e5614[_0x1a7324('0x1337')]=_0x59b965;}const _0xa648f9=_0x4e5f17;function _0x3d89b1(){var _0x1189e0=_0xb635d2,_0x190652=this;function _0x269f0a(_0x19916d){var _0x3ca297=a0_0x5325;_0x190652[_0x3ca297('0x435')]=_0x19916d,_0x190652[_0x3ca297('0x435')]&&(_0x190652[_0x3ca297('0x435')][_0x3ca297('0x15b9')]=!![],_0x190652[_0x3ca297('0x158f')]=_0x190652['tab'][_0x3ca297('0x158f')]);}_0x190652[_0x1189e0('0x15f9')]=_0x269f0a;}const _0x5e9452=_0x3d89b1,_0x46d70f=_0x59426a['p']+_0xb635d2('0x233f');_0xdb0c7f[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0xdb0c7f(_0x45f5da){var _0x543af1=_0xb635d2;_0x45f5da[_0x543af1('0x1d72')](_0x543af1('0xb1a'),{'url':_0x543af1('0x1cb2'),'views':{'content@app':{'templateProvider':[_0x543af1('0x34'),'$templateFactory',_0x543af1('0x2730'),function _0x313376(_0x59e477,_0x3ea705,_0x1ea890){var _0x391e8c=_0x543af1;return _0x1ea890[_0x391e8c('0x608')]()?_0x3ea705[_0x391e8c('0x258d')](_0x46d70f,_0x59e477):_0x3ea705[_0x391e8c('0x258d')](_0x519f7d,_0x59e477);}],'controllerProvider':[_0x543af1('0x2730'),function _0x950c00(_0x1630b3){var _0x663438=_0x543af1;return _0x1630b3[_0x663438('0x608')]()?'AgentDashboardGeneralController\x20as\x20vm':_0x663438('0x1a50');}]}},'resolve':{'globalUserLists':['apiResolver','Auth',function _0x549525(_0x2534db,_0x397316){var _0x2fd4c6=_0x543af1;return _0x2534db['resolve'](_0x2fd4c6('0x5c6'),{'id':_0x397316[_0x2fd4c6('0x1ef8')]()['id'],'sort':_0x2fd4c6('0x2623'),'nolimit':!![]});}],'globalLists':[_0x543af1('0x292'),function _0x43ec7a(_0x5df6ee){var _0x3adecc=_0x543af1;return _0x5df6ee[_0x3adecc('0xcd6')](_0x3adecc('0x1004'),{'sort':'name','nolimit':!![]});}],'globalTags':[_0x543af1('0x292'),function _0xe7c681(_0x5640a6){var _0x2962d2=_0x543af1;return _0x5640a6[_0x2962d2('0xcd6')](_0x2962d2('0xd04'),{'sort':_0x2962d2('0x2623'),'nolimit':!![]});}],'globalCompanies':[_0x543af1('0x292'),function _0x1d82be(_0x198a1f){var _0xf1b0b7=_0x543af1;return _0x198a1f[_0xf1b0b7('0xcd6')](_0xf1b0b7('0x16d5'),{'sort':_0xf1b0b7('0x2623'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x543af1('0x1efb')});}angular[_0xb635d2('0x153f')](_0xb635d2('0xb1a'),[_0xb635d2('0x47a'),_0xb635d2('0x2447')])['config'](_0xdb0c7f)[_0xb635d2('0x1a79')](_0xb635d2('0x20ca'),_0x36e95a)[_0xb635d2('0x1324')](_0xb635d2('0x1a90'),_0x41d59e)[_0xb635d2('0x308')]('desktopNotification',_0xf7cd38)[_0xb635d2('0x308')](_0xb635d2('0x2644'),_0x6991d0)['constant'](_0xb635d2('0xaa8'),_0x19cf5a)['controller']('AgentGeneralBotController',_0x159060)[_0xb635d2('0x1a79')](_0xb635d2('0xd27'),_0x5ecd4e)[_0xb635d2('0x1a79')]('DisposeCallDialogController',_0x4252cd)[_0xb635d2('0x1a79')](_0xb635d2('0xb06'),_0x5bf94b)['controller']('ContactSelectionController',_0x2fe5b9)[_0xb635d2('0x1a79')](_0xb635d2('0x5b9'),_0x224f75)['controller'](_0xb635d2('0x1130'),_0x481f01)[_0xb635d2('0x1a79')](_0xb635d2('0x26da'),_0x5458b4)[_0xb635d2('0x1a79')]('AgentHomeAbandonedVoiceController',_0x124ff7)['controller'](_0xb635d2('0x637'),_0x175bb7)[_0xb635d2('0x1a79')]('AgentHomeChatController',_0x2504b3)[_0xb635d2('0x1a79')](_0xb635d2('0x2592'),_0x12b418)[_0xb635d2('0x1a79')]('AgentHomeDashboardController',_0x58f8bb)[_0xb635d2('0x1a79')](_0xb635d2('0x78a'),_0x282a98)['controller'](_0xb635d2('0x950'),_0xfc9b44)['controller'](_0xb635d2('0x2809'),_0x5659fe)[_0xb635d2('0x1a79')]('AgentHomeDashboardMultiChannelMailController',_0x1dabc8)[_0xb635d2('0x1a79')](_0xb635d2('0x838'),_0x4b2cec)[_0xb635d2('0x1a79')](_0xb635d2('0x1ae6'),_0x2e0790)['controller'](_0xb635d2('0x99b'),_0x19a472)[_0xb635d2('0x1a79')]('AgentHomeDashboardMultiChannelWhatsappController',_0xb9afd9)[_0xb635d2('0x1a79')]('AgentHomeFaxController',_0x1ea095)[_0xb635d2('0x1a79')]('AgentHomeMailController',_0x24ef34)[_0xb635d2('0x1a79')](_0xb635d2('0x2368'),_0x4d6df4)[_0xb635d2('0x1a79')](_0xb635d2('0x28af'),_0x45258e)[_0xb635d2('0x1a79')](_0xb635d2('0xdc2'),_0x16df1a)[_0xb635d2('0x1a79')]('AgentHomeRecordingsController',_0x25f12f)[_0xb635d2('0x1a79')](_0xb635d2('0xd81'),_0xb5e0d7)[_0xb635d2('0x1a79')]('AgentHomeSmsController',_0x31f600)[_0xb635d2('0x1a79')](_0xb635d2('0x209f'),_0x2d37e1)[_0xb635d2('0x1a79')]('AgentHomeVoiceDetailsController',_0x1e8f53)['controller'](_0xb635d2('0x18d6'),_0x46228a)[_0xb635d2('0x1a79')](_0xb635d2('0xaef'),_0x338e7b)[_0xb635d2('0x492')](_0xb635d2('0x2856'),_0x5d8381)[_0xb635d2('0x2891')]('getChannelByItem',_0x3bdcea)['controller'](_0xb635d2('0x1b1'),_0x2b0c93)['factory']('Emojis',_0x5813ac)[_0xb635d2('0x1a79')](_0xb635d2('0x21cc'),_0x1af5b8)['controller'](_0xb635d2('0x102a'),_0x4d6b82)['controller']('ComposeOpenchannelInteractionDialogController',_0x494828)[_0xb635d2('0x1a79')](_0xb635d2('0xd3a'),_0x2cba1a)['controller'](_0xb635d2('0x18e6'),_0x499dde)[_0xb635d2('0x1a79')]('DisposeInteractionDialogController',_0x3c0d53)[_0xb635d2('0x1a79')](_0xb635d2('0x1c78'),_0x8c272a)[_0xb635d2('0x1a79')](_0xb635d2('0x15b0'),_0x36a51b)['controller'](_0xb635d2('0xcb'),_0x48fa12)[_0xb635d2('0x1a79')](_0xb635d2('0xa49'),_0xa648f9)[_0xb635d2('0x1a79')](_0xb635d2('0x13c5'),_0x5e9452);const _0x50f728=_0x59426a['p']+_0xb635d2('0x18a0');_0x3c8da0['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x1c1a'),_0xb635d2('0x63c'),'api',_0xb635d2('0x46d'),_0xb635d2('0x2730'),_0xb635d2('0x15c5'),'userProfile',_0xb635d2('0xb59')];function _0x3c8da0(_0x165c04,_0x34d9fa,_0x126024,_0x5ed4c8,_0x5cd92e,_0x3962e8,_0x287af1,_0x1d7eb6,_0xc027cc){var _0x198dc9=_0xb635d2,_0x327959=this;_0x327959[_0x198dc9('0x15a5')]=_0x3962e8['getCurrentUser'](),_0x327959[_0x198dc9('0x154f')]=_0x1d7eb6,_0x327959[_0x198dc9('0xb59')]=_0xc027cc&&_0xc027cc[_0x198dc9('0x148b')]==0x1?_0xc027cc['rows'][0x0]:null,_0x327959[_0x198dc9('0xb3d')]=_0x3962e8[_0x198dc9('0xd31')](_0x327959[_0x198dc9('0xb59')]?_0x327959[_0x198dc9('0xb59')][_0x198dc9('0xb3d')]:null),_0x327959[_0x198dc9('0xae')]={},_0x327959['voiceQueues']=_0x287af1&&_0x287af1[_0x198dc9('0x148b')]?_0x287af1:{'count':0x0,'rows':[]},_0x327959[_0x198dc9('0x26cf')]=_0x287af1&&_0x287af1[_0x198dc9('0x148b')]?_0x32d445()[_0x198dc9('0x65a')](_0x287af1[_0x198dc9('0x16a7')],'id'):[],_0x327959[_0x198dc9('0x134c')]=_0x34d9fa(function(){},0x3e8),_0x327959[_0x198dc9('0xcab')]=_0x5e460c,_0x327959[_0x198dc9('0x6d3')]=_0x13f45c,_0x5cd92e[_0x198dc9('0x4df')](_0x198dc9('0x149c'),_0x19cfe4),_0x5ed4c8[_0x198dc9('0xe6c')]['get']({'id':_0x165c04['params']['id']})['$promise'][_0x198dc9('0xe19')](function(_0x4f9b0b){var _0x44e5a9=_0x198dc9;if(_0x4f9b0b)return _0x327959['customDashboard']=_0x4f9b0b,_0x327959['customDashboard'][_0x44e5a9('0x21b8')]=[],_0x327959[_0x44e5a9('0xae')]['preview']=!![],_0x327959[_0x44e5a9('0xae')]['draggable']={'enabled':![]},_0x327959['customDashboard']['resizable']={'enabled':![]},_0x5ed4c8['dashboard'][_0x44e5a9('0xf8c')]({'id':_0x327959[_0x44e5a9('0xae')]['id']})[_0x44e5a9('0xe59')];})[_0x198dc9('0xe19')](function(_0x3d90cf){var _0x18e41b=_0x198dc9;if(_0x3d90cf&&_0x3d90cf[_0x18e41b('0x148b')]&&_0x3d90cf[_0x18e41b('0x16a7')])for(var _0x8e41e7=0x0;_0x8e41e7<_0x3d90cf[_0x18e41b('0x16a7')][_0x18e41b('0x25ae')];_0x8e41e7+=0x1){_0x3d90cf[_0x18e41b('0x16a7')][_0x8e41e7][_0x18e41b('0x115d')]=_0x18e41b('0xfc2')+_0x3d90cf[_0x18e41b('0x16a7')][_0x8e41e7][_0x18e41b('0x62e')]+_0x18e41b('0x1125')+_0x3d90cf[_0x18e41b('0x16a7')][_0x8e41e7]['type']+_0x18e41b('0x96c'),_0x3d90cf[_0x18e41b('0x16a7')][_0x8e41e7][_0x18e41b('0x15c5')]=_0x327959['voiceQueues'],_0x3d90cf['rows'][_0x8e41e7][_0x18e41b('0x26cf')]=_0x327959[_0x18e41b('0x26cf')],_0x327959[_0x18e41b('0xae')][_0x18e41b('0x21b8')]['push'](_0x3d90cf[_0x18e41b('0x16a7')][_0x8e41e7]);}})[_0x198dc9('0x223b')](function(){_0x327959['customDashboard']=undefined;});function _0x19cfe4(_0x58ca73){var _0x4eb5f6=_0x198dc9,_0x52bc32=_0x32d445()[_0x4eb5f6('0xf15')](_0x327959[_0x4eb5f6('0x15c5')][_0x4eb5f6('0x16a7')],{'id':_0x58ca73['id']});_0x52bc32&&_0x32d445()[_0x4eb5f6('0x1d8')](_0x52bc32,_0x32d445()['pick'](_0x58ca73,_0x32d445()[_0x4eb5f6('0x1234')](_0x52bc32)));}function _0x5e460c(){var _0x437c76=_0x198dc9;for(var _0xd234f6=0x0;_0xd234f6<_0x327959['customDashboard'][_0x437c76('0x21b8')][_0x437c76('0x25ae')];_0xd234f6+=0x1){_0x327959[_0x437c76('0xae')][_0x437c76('0x21b8')][_0xd234f6][_0x437c76('0x26cf')]=_0x327959['voiceQueuesSelected'];}}function _0x13f45c(){var _0x3a5e27=_0x198dc9;_0x165c04['go'](_0x3a5e27('0x1f7'),{'id':_0x327959['customDashboard']['id'],'tab':0x1});}_0x126024['$on'](_0x198dc9('0x5cd'),function(){var _0x867a17=_0x198dc9;_0x5cd92e['removeAllListeners'](_0x867a17('0x149c')),_0x327959[_0x867a17('0x134c')]&&_0x34d9fa[_0x867a17('0x2c1')](_0x327959[_0x867a17('0x134c')]);});}const _0x4ac73f=_0x3c8da0;_0xd688eb[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0xd688eb(_0x342bb2){var _0x4e49b5=_0xb635d2;_0x342bb2[_0x4e49b5('0x1d72')](_0x4e49b5('0x21f8'),{'url':_0x4e49b5('0x15d9'),'views':{'content@app':{'templateUrl':_0x50f728,'controller':_0x4e49b5('0x1422')}},'resolve':{'voiceQueues':['apiResolver',_0x4e49b5('0x2730'),function _0x4ea17e(_0x21d21a,_0x3221d0){var _0x429af5=_0x4e49b5,_0x2fac22,_0x4fad7d=_0x3221d0[_0x429af5('0x179e')](_0x429af5('0xd14'))?_0x21d21a['resolve'](_0x429af5('0x1382'),{'fields':_0x429af5('0x104'),'nolimit':!![]}):_0x21d21a[_0x429af5('0xcd6')](_0x429af5('0x197d'),{'id':_0x3221d0[_0x429af5('0x1ef8')]()[_0x429af5('0x1d04')],'section':_0x429af5('0x13e1'),'mergeResources':!![],'fields':_0x429af5('0x104'),'channel':_0x429af5('0xe74'),'nolimit':!![]});return _0x4fad7d[_0x429af5('0xe19')](function(_0x3cbf90){var _0x2718c3=_0x429af5;return _0x2fac22=_0x3cbf90,_0x21d21a['resolve'](_0x2718c3('0x1946'));})[_0x429af5('0xe19')](function(_0x4ad2fc){var _0x3840ec=_0x429af5;if(_0x4ad2fc)for(var _0x531dfe=0x0,_0x4d626f;_0x531dfe<_0x4ad2fc['rows'][_0x3840ec('0x25ae')];_0x531dfe+=0x1){_0x4d626f=_0x32d445()[_0x3840ec('0xf15')](_0x2fac22[_0x3840ec('0x16a7')],{'id':_0x4ad2fc[_0x3840ec('0x16a7')][_0x531dfe]['id']}),_0x4d626f&&_0x32d445()[_0x3840ec('0x1d8')](_0x4d626f,_0x32d445()[_0x3840ec('0xed5')](_0x4ad2fc['rows'][_0x531dfe],[_0x3840ec('0x183a'),_0x3840ec('0x1e14'),_0x3840ec('0xe75'),_0x3840ec('0x18e1'),_0x3840ec('0x5b4'),_0x3840ec('0x3ac')]));}return _0x2fac22;});}],'userProfile':[_0x4e49b5('0x292'),_0x4e49b5('0x2730'),function _0x227db9(_0x26cff9,_0x344249){var _0x1f84ce=_0x4e49b5;return _0x26cff9[_0x1f84ce('0xcd6')](_0x1f84ce('0x455'),{'fields':_0x1f84ce('0x1b71'),'id':_0x344249[_0x1f84ce('0x1ef8')]()[_0x1f84ce('0x1d04')]});}],'userProfileSection':[_0x4e49b5('0x292'),'Auth',function _0x458b7d(_0x3d025f,_0x4e330b){var _0x22aea0=_0x4e49b5;return _0x3d025f[_0x22aea0('0xcd6')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4e330b[_0x22aea0('0x1ef8')]()[_0x22aea0('0x1d04')],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x4e49b5('0x1efb')});}angular['module'](_0xb635d2('0x21f8'),[])['config'](_0xd688eb)[_0xb635d2('0x1a79')](_0xb635d2('0x371'),_0x4ac73f),_0x221c67[_0xb635d2('0xb0c')]=['$stateProvider',_0xb635d2('0x2104')];function _0x221c67(_0x2881fa,_0x7b81f7){var _0x23707c=_0xb635d2;_0x2881fa[_0x23707c('0x1d72')](_0x23707c('0x16e8'),{'abstract':!![],'url':'/dashboards'}),_0x7b81f7[_0x23707c('0xfe3')](_0x23707c('0x100a'));}angular[_0xb635d2('0x153f')]('app.dashboards',[_0xb635d2('0x569'),_0xb635d2('0x24b'),_0xb635d2('0x274e'),'flow',_0xb635d2('0xd8b'),_0xb635d2('0x1727'),_0xb635d2('0x1951'),_0xb635d2('0x1703'),'ngAnimate',_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),'mwFormViewer',_0xb635d2('0x282d'),'ngclipboard','angular-cron-jobs','ngEmbed','angularMaterialFormBuilder','material.components.expansionPanels',_0xb635d2('0xe93'),_0xb635d2('0x16a1'),_0xb635d2('0xb1a'),_0xb635d2('0x21f8')])[_0xb635d2('0x1990')](_0x221c67);const _0x264d4c=_0x59426a['p']+_0xb635d2('0x1116'),_0x5c6c35=_0x59426a['p']+_0xb635d2('0x20e6');_0x1576fa[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x29b'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x1576fa(_0x26e6df,_0x1df4ef,_0x5c3566,_0x4b2f6b,_0x3de435,_0x41195d,_0xb71303,_0x50911f,_0x469c95,_0x4ed6df,_0x178474,_0x49bded,_0x4c50b0,_0x11b777,_0x51f1e0,_0x18ba84,_0x34bfa7){var _0x142d2d=_0xb635d2,_0x252697=this;_0x252697[_0x142d2d('0x5c1')]=_0x18ba84,_0x252697['setting']=_0x34bfa7,_0x252697[_0x142d2d('0x15a5')]=_0x51f1e0[_0x142d2d('0x1ef8')](),_0x252697['agents']=_0x469c95||{'count':0x0,'rows':[]},_0x252697[_0x142d2d('0x154f')]=_0x4ed6df,_0x252697['userProfileSection']=_0x178474&&_0x178474[_0x142d2d('0x148b')]==0x1?_0x178474[_0x142d2d('0x16a7')][0x0]:null,_0x252697[_0x142d2d('0xb3d')]=_0x51f1e0[_0x142d2d('0xd31')](_0x252697[_0x142d2d('0xb59')]?_0x252697[_0x142d2d('0xb59')]['crudPermissions']:null),_0x252697[_0x142d2d('0x19b6')]='agents',_0x252697[_0x142d2d('0x14d6')]='',_0x252697[_0x142d2d('0x190c')]=null,_0x252697[_0x142d2d('0x1c57')]=[],_0x252697['query']={'fields':_0x142d2d('0x2232'),'role':_0x142d2d('0x108'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x252697['arrayshowWebBar']=_0x32d445()[_0x142d2d('0x226f')]([{'option':_0x142d2d('0xc7e'),'value':'0'},{'option':_0x142d2d('0x26ed'),'value':'1'},{'option':_0x142d2d('0xa87'),'value':'2'}],function(_0x598918){var _0x3f0878=_0x142d2d;return _0x32d445()[_0x3f0878('0x1b42')](_0x598918[_0x3f0878('0x2')],new RegExp('\x27','g'),'');}),_0x252697[_0x142d2d('0x207b')]=_0x32d445()['keyBy']([{'option':_0x142d2d('0x1966'),'value':_0x142d2d('0x1c33')},{'option':_0x142d2d('0x127b'),'value':_0x142d2d('0xc4')},{'option':'ws','value':_0x142d2d('0x1c4e'),'ngIf':_0x142d2d('0x15d')},{'option':_0x142d2d('0x1263'),'value':'\x27wss\x27','ngIf':'vm.agent.showWebBar\x20==\x201'},{'option':_0x142d2d('0x16cb'),'value':_0x142d2d('0x2868'),'ngIf':_0x142d2d('0x15d')}],function(_0xf1798b){var _0x210954=_0x142d2d;return _0x32d445()[_0x210954('0x1b42')](_0xf1798b['value'],new RegExp('\x27','g'),'');}),_0x252697['arraynat']=_0x32d445()[_0x142d2d('0x226f')]([{'option':_0x142d2d('0x253c'),'value':'\x27force_rport\x27'},{'option':_0x142d2d('0x481'),'value':_0x142d2d('0x10b4')},{'option':_0x142d2d('0x794'),'value':_0x142d2d('0x11bd')},{'option':'no','value':_0x142d2d('0x16f2')},{'option':'never','value':_0x142d2d('0x23f5')},{'option':_0x142d2d('0x622'),'value':_0x142d2d('0x7d2')}],function(_0x598849){var _0x150095=_0x142d2d;return _0x32d445()[_0x150095('0x1b42')](_0x598849[_0x150095('0x2')],new RegExp('\x27','g'),'');}),_0x252697[_0x142d2d('0x143e')]=_0x32d445()[_0x142d2d('0x226f')]([{'option':_0x142d2d('0x214'),'value':_0x142d2d('0x540')},{'option':_0x142d2d('0x2630'),'value':_0x142d2d('0x14e5')},{'option':_0x142d2d('0x5d0'),'value':_0x142d2d('0x1402')}],function(_0x69429c){var _0x4d4a86=_0x142d2d;return _0x32d445()[_0x4d4a86('0x1b42')](_0x69429c['value'],new RegExp('\x27','g'),'');}),_0x252697['arrayallow']=_0x32d445()[_0x142d2d('0x226f')]([{'option':_0x142d2d('0xb87'),'value':_0x142d2d('0x4a5')},{'option':_0x142d2d('0x171b'),'value':_0x142d2d('0xc62')},{'option':_0x142d2d('0x2844'),'value':'\x27gsm\x27'},{'option':_0x142d2d('0x14e2'),'value':_0x142d2d('0x1c62')},{'option':_0x142d2d('0x826'),'value':_0x142d2d('0x227f')},{'option':'opus','value':'\x27opus\x27'},{'option':_0x142d2d('0x1e33'),'value':_0x142d2d('0xe40')}],function(_0x552c2e){var _0x159f19=_0x142d2d;return _0x32d445()[_0x159f19('0x1b42')](_0x552c2e['value'],new RegExp('\x27','g'),'');}),_0x252697[_0x142d2d('0xdfe')]=_0x32d445()[_0x142d2d('0x226f')]([{'option':_0x142d2d('0x358'),'value':_0x142d2d('0x11bd')},{'option':'No','value':_0x142d2d('0x16f2')},{'option':_0x142d2d('0x2d2'),'value':_0x142d2d('0x23a1')}],function(_0x33875b){var _0x130e6e=_0x142d2d;return _0x32d445()[_0x130e6e('0x1b42')](_0x33875b['value'],new RegExp('\x27','g'),'');}),_0x252697[_0x142d2d('0x1f91')]=_0x32d445()[_0x142d2d('0x226f')]([{'option':_0x142d2d('0x2351'),'value':'\x27\x27'},{'option':'wav','value':'\x27wav\x27'},{'option':'wav49','value':_0x142d2d('0x8c7')},{'option':'gsm','value':_0x142d2d('0x4db')}],function(_0x198c96){var _0x1a811c=_0x142d2d;return _0x32d445()[_0x1a811c('0x1b42')](_0x198c96[_0x1a811c('0x2')],new RegExp('\x27','g'),'');}),_0x252697[_0x142d2d('0x16a0')]=_0x60dc49,_0x252697['teamadddialog']=_0x144afb,_0x252697[_0x142d2d('0x1d9e')]=_0x1e68d9,_0x252697[_0x142d2d('0x425')]=_0x4981a5,_0x252697['getAgents']=_0x54a291,_0x252697[_0x142d2d('0x27e6')]=_0x220005,_0x252697['deleteAgent']=_0x5c44eb,_0x252697[_0x142d2d('0x26e2')]=_0x460b20,_0x252697[_0x142d2d('0x2713')]=_0x2263f1,_0x252697['deselectAgents']=_0x2d5b6c,_0x252697['selectAllAgents']=_0x23e094;function _0x60dc49(_0x4da23a){var _0x3392a6=_0x142d2d;_0x5c3566['go'](_0x3392a6('0x27b'),{'id':_0x4da23a['id'],'agent':_0x4da23a,'crudPermissions':_0x252697[_0x3392a6('0xb3d')]});}function _0x144afb(_0x5a8166,_0x308d5d){var _0x333434=_0x142d2d;_0x3de435[_0x333434('0x26b2')]({'controller':'AgentteamaddController','controllerAs':'vm','templateUrl':_0x264d4c,'parent':angular[_0x333434('0x24a1')](_0x41195d[_0x333434('0x19b2')]),'targetEvent':_0x308d5d,'clickOutsideToClose':!![],'locals':{'agent':_0x5a8166,'agents':_0x252697['agents']?_0x252697[_0x333434('0x29b')]['rows']:[],'crudPermissions':_0x252697[_0x333434('0xb3d')]}});}function _0x1e68d9(_0x53f6af,_0x4b28e8){var _0x2c7715=_0x142d2d,_0x4bf9de=_0x3de435[_0x2c7715('0xa5')]()[_0x2c7715('0x13e4')](_0x2c7715('0x346')+_0x32d445()[_0x2c7715('0x1df2')](_0x2c7715('0x108'))+'?')['htmlContent'](_0x2c7715('0xab2')+(_0x53f6af['name']||_0x2c7715('0x108'))+_0x2c7715('0x27bb')+_0x2c7715('0x21bd'))['ariaLabel'](_0x2c7715('0x2411'))[_0x2c7715('0x1345')](_0x4b28e8)['ok']('OK')['cancel'](_0x2c7715('0x17'));_0x3de435['show'](_0x4bf9de)[_0x2c7715('0xe19')](function(){_0x5c44eb(_0x53f6af);},function(){var _0x54baba=_0x2c7715;console[_0x54baba('0x1fe9')](_0x54baba('0x17'));});}var _0x13483f=!![],_0xdccd46=0x1;_0x26e6df[_0x142d2d('0x107')](_0x142d2d('0x20cb'),function(_0x2fe53e,_0x4bc6de){var _0x11e5db=_0x142d2d;_0x13483f?_0xb71303(function(){_0x13483f=![];}):(!_0x4bc6de&&(_0xdccd46=_0x252697['query'][_0x11e5db('0xc08')]),_0x2fe53e!==_0x4bc6de&&(_0x252697['query']['page']=0x1),!_0x2fe53e&&(_0x252697[_0x11e5db('0xa16')][_0x11e5db('0xc08')]=_0xdccd46),_0x252697[_0x11e5db('0x14fd')]());});function _0x4981a5(_0x16a55f){_0x252697['agents']=_0x16a55f||{'count':0x0,'rows':[]};}function _0x54a291(){var _0x423a44=_0x142d2d;_0x252697[_0x423a44('0xa16')]['offset']=(_0x252697[_0x423a44('0xa16')]['page']-0x1)*_0x252697['query'][_0x423a44('0x1b6d')],_0x51f1e0[_0x423a44('0x179e')]('admin')?_0x252697['promise']=_0x49bded['user'][_0x423a44('0x22d5')](_0x252697[_0x423a44('0xa16')],_0x4981a5)['$promise']:(_0x252697[_0x423a44('0xa16')]['id']=_0x252697[_0x423a44('0x154f')]['id'],_0x252697[_0x423a44('0xa16')][_0x423a44('0x1e59')]=_0x423a44('0xd61'),_0x252697['promise']=_0x49bded[_0x423a44('0x154f')][_0x423a44('0x14e6')](_0x252697['query'],_0x4981a5)['$promise']);}function _0x220005(_0x6c66b5,_0xe0c812){var _0x26f2cd=_0x142d2d;_0x3de435[_0x26f2cd('0x26b2')]({'controller':_0x26f2cd('0xd69'),'controllerAs':'vm','templateUrl':_0x5c6c35,'parent':angular[_0x26f2cd('0x24a1')](_0x41195d[_0x26f2cd('0x19b2')]),'targetEvent':_0x6c66b5,'clickOutsideToClose':!![],'locals':{'agent':_0xe0c812,'agents':_0x252697['agents'][_0x26f2cd('0x16a7')],'license':_0x252697[_0x26f2cd('0x5c1')],'setting':_0x252697[_0x26f2cd('0x22f1')],'crudPermissions':_0x252697[_0x26f2cd('0xb3d')]}});}function _0x5c44eb(_0x173d20){var _0x38c4ea=_0x142d2d;_0x49bded['user'][_0x38c4ea('0x229e')]({'id':_0x173d20['id']})[_0x38c4ea('0xe59')][_0x38c4ea('0xe19')](function(){var _0x1d64f4=_0x38c4ea;_0x32d445()[_0x1d64f4('0xa8b')](_0x252697[_0x1d64f4('0x29b')][_0x1d64f4('0x16a7')],{'id':_0x173d20['id']}),_0x252697[_0x1d64f4('0x29b')][_0x1d64f4('0x148b')]-=0x1,!_0x252697[_0x1d64f4('0x29b')][_0x1d64f4('0x16a7')][_0x1d64f4('0x25ae')]&&_0x252697[_0x1d64f4('0x14fd')](),_0x11b777[_0x1d64f4('0x425')]({'title':_0x32d445()['startCase'](_0x1d64f4('0x142e'))+_0x1d64f4('0x1219'),'msg':_0x173d20[_0x1d64f4('0x2623')]?_0x173d20['name']+_0x1d64f4('0x2182'):''});})[_0x38c4ea('0x223b')](function(_0x2bdc92){var _0x3f6310=_0x38c4ea;if(_0x2bdc92[_0x3f6310('0x11d0')]&&_0x2bdc92[_0x3f6310('0x11d0')][_0x3f6310('0xcd2')]&&_0x2bdc92[_0x3f6310('0x11d0')][_0x3f6310('0xcd2')]['length']){_0x252697[_0x3f6310('0xcd2')]=_0x2bdc92[_0x3f6310('0x11d0')][_0x3f6310('0xcd2')]||[{'message':_0x2bdc92[_0x3f6310('0x94f')](),'type':_0x3f6310('0x1a98')}];for(var _0x5d4c47=0x0;_0x5d4c47<_0x2bdc92[_0x3f6310('0x11d0')]['errors'][_0x3f6310('0x25ae')];_0x5d4c47++){_0x11b777[_0x3f6310('0x8c8')]({'title':_0x2bdc92[_0x3f6310('0x11d0')][_0x3f6310('0xcd2')][_0x5d4c47][_0x3f6310('0x62e')],'msg':_0x2bdc92[_0x3f6310('0x11d0')][_0x3f6310('0xcd2')][_0x5d4c47][_0x3f6310('0x27e8')]});}}else _0x11b777[_0x3f6310('0x8c8')]({'title':_0x2bdc92[_0x3f6310('0x2833')]?_0x3f6310('0x27f2')+_0x2bdc92['status']+_0x3f6310('0x1b7c')+_0x2bdc92[_0x3f6310('0x1fd7')]:_0x3f6310('0x1a98'),'msg':_0x2bdc92[_0x3f6310('0x11d0')]?JSON[_0x3f6310('0x3ad')](_0x2bdc92['data']['message']):_0x2bdc92[_0x3f6310('0x27e8')]||_0x2bdc92[_0x3f6310('0x94f')]()});});}function _0x460b20(){var _0x2ef4b0=_0x142d2d,_0x5e1cac=angular['copy'](_0x252697[_0x2ef4b0('0x1c57')]);return _0x252697[_0x2ef4b0('0x1c57')]=[],_0x5e1cac;}function _0x2263f1(_0x2dc02d){var _0x206def=_0x142d2d,_0x1876fa=_0x3de435[_0x206def('0xa5')]()[_0x206def('0x13e4')](_0x206def('0x74c'))[_0x206def('0x221c')](''+_0x252697[_0x206def('0x1c57')]['length']+_0x206def('0x5bc')+_0x206def('0x21bd'))['ariaLabel'](_0x206def('0xac2'))[_0x206def('0x1345')](_0x2dc02d)['ok']('OK')[_0x206def('0x2c1')](_0x206def('0x17'));_0x3de435[_0x206def('0x26b2')](_0x1876fa)[_0x206def('0xe19')](function(){var _0x3023a5=_0x206def;_0x252697[_0x3023a5('0x1c57')][_0x3023a5('0x1d7e')](function(_0x2a471f){_0x5c44eb(_0x2a471f);}),_0x252697[_0x3023a5('0x1c57')]=[];});}function _0x2d5b6c(){var _0x10911b=_0x142d2d;_0x252697[_0x10911b('0x1c57')]=[];}function _0x23e094(){var _0x18fae3=_0x142d2d;_0x252697['selectedAgents']=_0x252697[_0x18fae3('0x29b')][_0x18fae3('0x16a7')];}}const _0x8153f8=_0x1576fa;_0x526452[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x29b'),'agent',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x526452(_0x280975,_0x335364,_0x30d4ae,_0x24d080,_0x5b3572,_0x1df75c,_0x2ead90,_0x2e5b8f,_0x28938d,_0x2ebb7d,_0x35ac98,_0x42c779,_0x3fb42b,_0x235ddb){var _0x971a56=_0xb635d2,_0x1af463=this;_0x1af463[_0x971a56('0x15a5')]=_0x35ac98[_0x971a56('0x1ef8')](),_0x1af463[_0x971a56('0xcd2')]=[],_0x1af463['setting']=_0x3fb42b,_0x1af463[_0x971a56('0x5c1')]=_0x42c779,_0x1af463[_0x971a56('0xb3d')]=_0x235ddb,_0x1af463[_0x971a56('0x1ccb')]={},_0x1af463[_0x971a56('0x25ac')]=_0x1af463[_0x971a56('0x22f1')]&&_0x1af463[_0x971a56('0x22f1')][_0x971a56('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1af463[_0x971a56('0x13e4')]=_0x971a56('0x1d74'),_0x1af463[_0x971a56('0x108')]=angular[_0x971a56('0x89')](_0x28938d),_0x1af463[_0x971a56('0x29b')]=_0x2e5b8f,_0x1af463[_0x971a56('0x209b')]=![];!_0x1af463[_0x971a56('0x108')]&&(_0x1af463[_0x971a56('0x108')]={'role':'agent','showWebBar':'0','autointernal':!![],'type':'friend','context':'from-sip','phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x1af463['title']='STAFF.NEW_AGENT',_0x1af463[_0x971a56('0x209b')]=!![]);_0x1af463[_0x971a56('0x1ff9')]=_0x3b57d3,_0x1af463[_0x971a56('0x1b33')]=_0x3a2c6f,_0x1af463[_0x971a56('0x27ca')]=_0xaf5586,_0x1af463[_0x971a56('0x2635')]=_0x306e3b,_0x1af463[_0x971a56('0x2584')]=_0x54799d;function _0x3b57d3(){var _0x1b6427=_0x971a56;_0x1af463[_0x1b6427('0xcd2')]=[],_0x2ebb7d[_0x1b6427('0x10c6')][_0x1b6427('0xe5e')](_0x1af463[_0x1b6427('0x108')])['$promise']['then'](function(_0x559813){var _0x3f6dd5=_0x1b6427;_0x1af463[_0x3f6dd5('0x29b')]['unshift'](_0x559813[_0x3f6dd5('0x250e')]()),_0x2ead90[_0x3f6dd5('0x425')]({'title':_0x3f6dd5('0x2879'),'msg':_0x1af463[_0x3f6dd5('0x108')][_0x3f6dd5('0x2623')]?_0x1af463[_0x3f6dd5('0x108')][_0x3f6dd5('0x2623')]+'\x20has\x20been\x20created!':''}),_0x54799d(_0x559813);})['catch'](function(_0x3920a7){var _0x1783ba=_0x1b6427;if(_0x3920a7[_0x1783ba('0x11d0')]&&_0x3920a7['data'][_0x1783ba('0xcd2')]&&_0x3920a7[_0x1783ba('0x11d0')][_0x1783ba('0xcd2')][_0x1783ba('0x25ae')]){_0x1af463[_0x1783ba('0xcd2')]=_0x3920a7['data'][_0x1783ba('0xcd2')]||[{'message':_0x3920a7['toString'](),'type':'api.user.save'}];for(var _0x1c0d49=0x0;_0x1c0d49<_0x3920a7[_0x1783ba('0x11d0')]['errors'][_0x1783ba('0x25ae')];_0x1c0d49+=0x1){_0x2ead90['error']({'title':_0x3920a7[_0x1783ba('0x11d0')]['errors'][_0x1c0d49][_0x1783ba('0x62e')],'msg':_0x3920a7[_0x1783ba('0x11d0')][_0x1783ba('0xcd2')][_0x1c0d49][_0x1783ba('0x27e8')]});}}else _0x2ead90[_0x1783ba('0x8c8')]({'title':_0x3920a7['status']?'API:'+_0x3920a7[_0x1783ba('0x2833')]+'\x20-\x20'+_0x3920a7['statusText']:_0x1783ba('0x172c'),'msg':_0x3920a7['data']?JSON[_0x1783ba('0x3ad')](_0x3920a7[_0x1783ba('0x11d0')][_0x1783ba('0x27e8')]):_0x3920a7[_0x1783ba('0x94f')]()});});}function _0x3a2c6f(){var _0x31bed5=_0x971a56;_0x1af463[_0x31bed5('0xcd2')]=[],_0x2ebb7d[_0x31bed5('0x10c6')][_0x31bed5('0xa70')]({'id':_0x1af463[_0x31bed5('0x108')]['id']},_0x1af463[_0x31bed5('0x108')])[_0x31bed5('0xe59')][_0x31bed5('0xe19')](function(_0xce1b84){var _0x3e46ff=_0x31bed5,_0x6f527e=_0x32d445()[_0x3e46ff('0xf15')](_0x1af463['agents'],{'id':_0xce1b84['id']});_0x6f527e&&_0x32d445()[_0x3e46ff('0x1d8')](_0x6f527e,_0x32d445()['pick'](_0xce1b84[_0x3e46ff('0x250e')](),_0x32d445()['keys'](_0x6f527e))),_0x2ead90[_0x3e46ff('0x425')]({'title':'Agent\x20properly\x20saved!','msg':_0x1af463[_0x3e46ff('0x108')][_0x3e46ff('0x2623')]?_0x1af463[_0x3e46ff('0x108')][_0x3e46ff('0x2623')]+_0x3e46ff('0x1c19'):''}),_0x54799d(_0xce1b84);})[_0x31bed5('0x223b')](function(_0x2b13c0){var _0x4832a1=_0x31bed5;if(_0x2b13c0[_0x4832a1('0x11d0')]&&_0x2b13c0[_0x4832a1('0x11d0')][_0x4832a1('0xcd2')]&&_0x2b13c0[_0x4832a1('0x11d0')][_0x4832a1('0xcd2')][_0x4832a1('0x25ae')]){_0x1af463['errors']=_0x2b13c0[_0x4832a1('0x11d0')]['errors']||[{'message':_0x2b13c0[_0x4832a1('0x94f')](),'type':'api.user.update'}];for(var _0x5c9360=0x0;_0x5c9360<_0x2b13c0['data'][_0x4832a1('0xcd2')][_0x4832a1('0x25ae')];_0x5c9360++){_0x2ead90[_0x4832a1('0x8c8')]({'title':_0x2b13c0[_0x4832a1('0x11d0')]['errors'][_0x5c9360][_0x4832a1('0x62e')],'msg':_0x2b13c0['data'][_0x4832a1('0xcd2')][_0x5c9360]['message']});}}else _0x2ead90['error']({'title':_0x2b13c0['status']?_0x4832a1('0x27f2')+_0x2b13c0[_0x4832a1('0x2833')]+_0x4832a1('0x1b7c')+_0x2b13c0[_0x4832a1('0x1fd7')]:_0x4832a1('0x2bf'),'msg':_0x2b13c0[_0x4832a1('0x11d0')]?JSON['stringify'](_0x2b13c0[_0x4832a1('0x11d0')][_0x4832a1('0x27e8')]):_0x2b13c0[_0x4832a1('0x94f')]()});});}function _0xaf5586(_0x5cefd5){var _0x3dc3f3=_0x971a56;_0x1af463[_0x3dc3f3('0xcd2')]=[];var _0x129a17=_0x24d080['confirm']()[_0x3dc3f3('0x13e4')](_0x3dc3f3('0x24d0'))[_0x3dc3f3('0xd0')](_0x3dc3f3('0xe99'))[_0x3dc3f3('0x4d1')](_0x3dc3f3('0x7de'))['ok'](_0x3dc3f3('0x2198'))[_0x3dc3f3('0x2c1')](_0x3dc3f3('0x8a3'))[_0x3dc3f3('0x1345')](_0x5cefd5);_0x24d080[_0x3dc3f3('0x26b2')](_0x129a17)['then'](function(){var _0x4e40e5=_0x3dc3f3;_0x2ebb7d[_0x4e40e5('0x10c6')]['delete']({'id':_0x1af463[_0x4e40e5('0x108')]['id']})[_0x4e40e5('0xe59')][_0x4e40e5('0xe19')](function(){var _0x49b0ae=_0x4e40e5;_0x32d445()[_0x49b0ae('0xa8b')](_0x1af463[_0x49b0ae('0x29b')],{'id':_0x1af463[_0x49b0ae('0x108')]['id']}),_0x2ead90[_0x49b0ae('0x425')]({'title':'Agent\x20properly\x20deleted!','msg':(_0x1af463[_0x49b0ae('0x108')][_0x49b0ae('0x2623')]||_0x49b0ae('0x108'))+'\x20has\x20been\x20deleted!'}),_0x54799d(_0x1af463[_0x49b0ae('0x108')]);})[_0x4e40e5('0x223b')](function(_0x322623){var _0xcd13b6=_0x4e40e5;if(_0x322623[_0xcd13b6('0x11d0')]&&_0x322623[_0xcd13b6('0x11d0')][_0xcd13b6('0xcd2')]&&_0x322623[_0xcd13b6('0x11d0')]['errors']['length']){_0x1af463[_0xcd13b6('0xcd2')]=_0x322623[_0xcd13b6('0x11d0')][_0xcd13b6('0xcd2')]||[{'message':_0x322623[_0xcd13b6('0x94f')](),'type':'api.user.delete'}];for(var _0x20c31d=0x0;_0x20c31d<_0x322623[_0xcd13b6('0x11d0')][_0xcd13b6('0xcd2')][_0xcd13b6('0x25ae')];_0x20c31d++){_0x2ead90['error']({'title':_0x322623[_0xcd13b6('0x11d0')][_0xcd13b6('0xcd2')][_0x20c31d][_0xcd13b6('0x62e')],'msg':_0x322623[_0xcd13b6('0x11d0')][_0xcd13b6('0xcd2')][_0x20c31d]['message']});}}else _0x2ead90['error']({'title':_0x322623[_0xcd13b6('0x2833')]?'API:'+_0x322623['status']+'\x20-\x20'+_0x322623['statusText']:_0xcd13b6('0xcbb'),'msg':_0x322623[_0xcd13b6('0x11d0')]?JSON[_0xcd13b6('0x3ad')](_0x322623['data'][_0xcd13b6('0x27e8')]):_0x322623['message']||_0x322623[_0xcd13b6('0x94f')]()});});},function(){});}function _0x306e3b(_0x3d0835){return _0x3d0835===null?undefined:new Date(_0x3d0835);}function _0x54799d(_0x157be2){var _0x14491b=_0x971a56;_0x24d080[_0x14491b('0x11ed')](_0x157be2);}}const _0x5e9cc2=_0x526452;_0x4f16c1[_0xb635d2('0xb0c')]=['$cookies',_0xb635d2('0xf65')];function _0x4f16c1(_0x17d12e,_0x114305){var _0x27da15=_0xb635d2,_0x2fc6c5=this,_0x144160=0x8,_0x708cb4=_0x144160*0x400*0x400;_0x2fc6c5[_0x27da15('0x108')]={},_0x2fc6c5[_0x27da15('0xb3d')],_0x2fc6c5['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x708cb4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2fc6c5[_0x27da15('0x1b57')]={'flow':{}},_0x2fc6c5[_0x27da15('0x1403')]=![],_0x2fc6c5['fileAdded']=_0x5c7f7f,_0x2fc6c5[_0x27da15('0x20')]=_0x4d4116,_0x2fc6c5[_0x27da15('0x24e8')]=_0x1a91e1,_0x2fc6c5[_0x27da15('0x15f9')]=_0x2c5db5;function _0x2c5db5(_0x188bef,_0x5b51ba){var _0x49b927=_0x27da15;_0x2fc6c5[_0x49b927('0x108')]=angular[_0x49b927('0x89')](_0x188bef),_0x2fc6c5[_0x49b927('0xb3d')]=typeof _0x5b51ba!==_0x49b927('0x1143')?_0x5b51ba:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2fc6c5[_0x49b927('0x186a')][_0x49b927('0xe0b')]='api/users/'+_0x2fc6c5[_0x49b927('0x108')]['id']+_0x49b927('0x4c'),_0x2fc6c5[_0x49b927('0x108')]['images']=[];}function _0x5c7f7f(_0x53f0e9){var _0x2b486d=_0x27da15,_0x3f0ea0=[_0x2b486d('0xb48'),_0x2b486d('0x1c0a')];if(!_0x32d445()[_0x2b486d('0x1c43')](_0x3f0ea0,_0x53f0e9[_0x2b486d('0x23df')]()))return _0x114305[_0x2b486d('0x8c8')]({'title':'Invalid\x20extension:\x20'+_0x53f0e9['getExtension'](),'msg':_0x2b486d('0x1450')+_0x3f0ea0[_0x2b486d('0x1537')]()}),![];if(_0x53f0e9['size']>_0x708cb4)return _0x114305['error']({'title':_0x2b486d('0x16c9'),'msg':_0x2b486d('0x275f')+_0x144160+'MB'}),![];var _0x28c945={'id':_0x53f0e9['uniqueIdentifier'],'file':_0x53f0e9,'type':'uploading'};return _0x2fc6c5[_0x2b486d('0x108')]['images']['unshift'](_0x28c945),!![];}function _0x4d4116(){var _0x34e4d7=_0x27da15;_0x2fc6c5[_0x34e4d7('0x1b57')][_0x34e4d7('0x206b')][_0x34e4d7('0x5ec')][_0x34e4d7('0x2234')]={'X-Requested-With':_0x34e4d7('0xdf4'),'Authorization':_0x34e4d7('0x17b7')+_0x17d12e[_0x34e4d7('0x22d5')]('motion.token')},_0x2fc6c5[_0x34e4d7('0x1b57')]['flow']['upload']();}function _0x1a91e1(_0x725cb7){var _0x571659=_0x27da15;angular[_0x571659('0x1d7e')](_0x2fc6c5[_0x571659('0x108')]['images'],function(_0x151cec){var _0x5e5443=_0x571659;if(_0x151cec['id']===_0x725cb7[_0x5e5443('0x164e')]){var _0x4a0681=new FileReader();_0x4a0681['readAsDataURL'](_0x151cec[_0x5e5443('0x2c0')]['file']),_0x4a0681[_0x5e5443('0x1d94')]=function(_0x3c2e01){var _0x53d765=_0x5e5443;_0x151cec[_0x53d765('0x2647')]=_0x3c2e01[_0x53d765('0xe0b')][_0x53d765('0x2048')];},_0x151cec[_0x5e5443('0x62e')]='image';}});}}const _0x2846d3=_0x4f16c1;_0x123e77[_0xb635d2('0xb0c')]=['$scope','$mdDialog',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x108'),_0xb635d2('0x22f1'),_0xb635d2('0x2730')];function _0x123e77(_0x3e3756,_0x50e3af,_0x400038,_0x271d10,_0x204fd0,_0x1c135c,_0x14ed3f){var _0x5beacc=_0xb635d2,_0x154927=this;_0x154927[_0x5beacc('0x15a5')]=_0x14ed3f[_0x5beacc('0x1ef8')](),_0x154927['errors']=[],_0x154927[_0x5beacc('0x22f1')]=_0x1c135c,_0x154927[_0x5beacc('0x25ac')]=_0x154927[_0x5beacc('0x22f1')][_0x5beacc('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x154927['agent']=_0x204fd0,_0x154927[_0x5beacc('0x1f6d')]='',_0x154927[_0x5beacc('0x4cc')]='',_0x154927[_0x5beacc('0x2864')]=_0x17d555,_0x154927[_0x5beacc('0x2584')]=_0x1f9739,_0x3e3756[_0x5beacc('0x107')](_0x5beacc('0x1c82'),function(_0xd2bdb5){var _0xc02477=_0x5beacc;!_0x32d445()[_0xc02477('0xe44')](_0x154927[_0xc02477('0x4cc')])&&(_0xd2bdb5===_0x154927[_0xc02477('0x4cc')]?_0x3e3756[_0xc02477('0x1acc')][_0xc02477('0x1f6d')]['$setValidity'](_0xc02477('0x145'),![]):_0x3e3756[_0xc02477('0x1acc')]['password'][_0xc02477('0xce')](_0xc02477('0x145'),!![]));});function _0x17d555(){var _0x51078b=_0x5beacc;_0x154927[_0x51078b('0xcd2')]=[];var _0x41edbc={'id':_0x154927[_0x51078b('0x108')]['id'],'newPassword':_0x154927[_0x51078b('0x1f6d')]};_0x154927[_0x51078b('0x15a5')]['id']==_0x154927['agent']['id']&&(_0x41edbc[_0x51078b('0x4cc')]=_0x154927[_0x51078b('0x4cc')]),_0x271d10['user'][_0x51078b('0x1676')](_0x41edbc)[_0x51078b('0xe59')]['then'](function(){var _0x34e36f=_0x51078b;_0x400038['success']({'title':_0x34e36f('0x163b')}),_0x1f9739();})[_0x51078b('0x223b')](function(_0x454f7b){var _0x16524f=_0x51078b;_0x400038[_0x16524f('0x8c8')]({'title':_0x454f7b[_0x16524f('0x2833')]?_0x16524f('0x27f2')+_0x454f7b[_0x16524f('0x2833')]+_0x16524f('0x1b7c')+_0x454f7b['statusText']:'api.agent.save','msg':_0x454f7b[_0x16524f('0x11d0')]?JSON[_0x16524f('0x3ad')](_0x454f7b[_0x16524f('0x11d0')][_0x16524f('0x27e8')]):_0x454f7b[_0x16524f('0x94f')]()}),_0x154927[_0x16524f('0xcd2')]=_0x454f7b['data'][_0x16524f('0xcd2')]||[{'message':_0x454f7b[_0x16524f('0x94f')](),'type':'api.agent.changePassword'}];});}function _0x1f9739(){var _0x36a468=_0x5beacc;_0x50e3af[_0x36a468('0x11ed')]();}}const _0x2f160e=_0x123e77;_0x5a5ed2[_0xb635d2('0xb0c')]=[_0xb635d2('0x1728'),_0xb635d2('0x1c9f'),_0xb635d2('0xffc'),'msNavigationAgentService',_0xb635d2('0xf65')];function _0x5a5ed2(_0x203c24,_0x27c1c7,_0x1453d3,_0x1ff010,_0x4c84c5){var _0x372bd6=_0xb635d2,_0x32e7aa=this;_0x32e7aa[_0x372bd6('0x108')]={},_0x32e7aa['navigation']=_0x1ff010[_0x372bd6('0x755')](),_0x32e7aa['crudPermissions'],_0x32e7aa[_0x372bd6('0x15f9')]=_0x456a89,_0x32e7aa[_0x372bd6('0x67a')]=_0x418bfa;function _0x456a89(_0x4d4256,_0x56ceb0){var _0xdc7c22=_0x372bd6;_0x32e7aa[_0xdc7c22('0x108')]=_0x4d4256,_0x32e7aa[_0xdc7c22('0xb3d')]=typeof _0x56ceb0!==_0xdc7c22('0x1143')?_0x56ceb0:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0x418bfa(_0x477281,_0x55a608){var _0x45edd3=_0x372bd6,_0x1fd6d3=_0x55a608||_0x477281;if(_0x1fd6d3[_0x45edd3('0x4ef')]){if(_0x55a608)_0x55a608['enabled']=!![],_0x32e7aa[_0x45edd3('0x108')]['permissions']['push'](_0x55a608['id']);else for(var _0x1d4fa9=0x0;_0x1d4fa9<_0x477281['children'][_0x45edd3('0x25ae')];_0x1d4fa9++){_0x477281['children'][_0x1d4fa9]['enabled']=!![],_0x32e7aa[_0x45edd3('0x108')][_0x45edd3('0x27e7')][_0x45edd3('0xb76')](_0x477281[_0x45edd3('0x1977')][_0x1d4fa9]['id']);}_0x477281['enabled']=!![],_0x32e7aa[_0x45edd3('0x108')][_0x45edd3('0x27e7')][_0x45edd3('0xb76')](_0x477281['id']);}else{if(_0x55a608)_0x55a608[_0x45edd3('0x4ef')]=![],_0x32d445()['remove'](_0x32e7aa[_0x45edd3('0x108')][_0x45edd3('0x27e7')],function(_0x26477f){return _0x55a608['id']===_0x26477f;}),_0x32d445()[_0x45edd3('0x2891')](_0x477281['children'],{'enabled':![]})[_0x45edd3('0x25ae')]===_0x477281[_0x45edd3('0x1977')][_0x45edd3('0x25ae')]&&(_0x477281['enabled']=![],_0x32d445()[_0x45edd3('0xa8b')](_0x32e7aa[_0x45edd3('0x108')]['permissions'],function(_0x2afb6f){return _0x477281['id']===_0x2afb6f;}));else{_0x477281['enabled']=![],_0x32d445()[_0x45edd3('0xa8b')](_0x32e7aa[_0x45edd3('0x108')]['permissions'],function(_0x2da50d){return _0x477281['id']===_0x2da50d;});var _0x113e80=function _0x4a1d02(_0x18a533){var _0x43e9ea=_0x45edd3;_0x477281[_0x43e9ea('0x1977')][_0x18a533]['enabled']=![],_0x32d445()[_0x43e9ea('0xa8b')](_0x32e7aa['agent'][_0x43e9ea('0x27e7')],function(_0x4a6708){var _0x5cd515=_0x43e9ea;return _0x477281[_0x5cd515('0x1977')][_0x18a533]['id']===_0x4a6708;});};for(var _0x6d074b=0x0;_0x6d074b<_0x477281[_0x45edd3('0x1977')][_0x45edd3('0x25ae')];_0x6d074b++){_0x113e80(_0x6d074b);}}}return _0x1453d3[_0x45edd3('0x10c6')][_0x45edd3('0xa70')]({'id':_0x32e7aa[_0x45edd3('0x108')]['id'],'permissions':_0x32d445()['uniq'](_0x32e7aa[_0x45edd3('0x108')][_0x45edd3('0x27e7')])})[_0x45edd3('0xe59')][_0x45edd3('0xe19')](function(){var _0x5ca620=_0x45edd3;_0x4c84c5[_0x5ca620('0x425')]({'title':_0x5ca620('0x8ad'),'msg':_0x32e7aa[_0x5ca620('0x108')][_0x5ca620('0x2623')]?_0x32e7aa[_0x5ca620('0x108')][_0x5ca620('0x2623')]+_0x5ca620('0x283b'):''});})[_0x45edd3('0x223b')](function(_0x4605bf){var _0x1969d5=_0x45edd3;console[_0x1969d5('0x8c8')](_0x4605bf);});}}const _0x26b016=_0x5a5ed2;_0xbdd062[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x108'),_0xb635d2('0x4e'),_0xb635d2('0x1338'),'$translate','Auth','crudPermissions'];function _0xbdd062(_0xf37141,_0x1dfda5,_0x49e4bd,_0x58f2e4,_0x31fdf1,_0x568928,_0x4743d0,_0x255991,_0x21f735,_0x31601c){var _0x5ca837=_0xb635d2,_0x2f183f=this;_0x2f183f['currentUser']=_0x21f735[_0x5ca837('0x1ef8')](),_0x2f183f['agent']=_0x31fdf1,_0x2f183f[_0x5ca837('0xb3d')]=_0x31601c,_0x2f183f['penalty']=0x0,_0x2f183f[_0x5ca837('0x4e')]=_0x568928,_0x2f183f[_0x5ca837('0x1338')]=_0x4743d0,_0x2f183f[_0x5ca837('0x16a')]=_0x2f183f[_0x5ca837('0x4e')]+_0x5ca837('0x9'),_0x2f183f[_0x5ca837('0x13e4')]=_0x255991['instant'](_0x5ca837('0x1d1c')+_0x2f183f[_0x5ca837('0x4e')][_0x5ca837('0x25f7')]()+'_'+_0x2f183f['direction'][_0x5ca837('0x25f7')]()),_0x2f183f[_0x5ca837('0xe4b')]=[],_0x2f183f[_0x5ca837('0x1884')]=[],_0x2f183f[_0x5ca837('0x2273')]=[],_0x2f183f['startingAllowedItems']=[],_0x2f183f[_0x5ca837('0xf79')]=[],_0x2f183f[_0x5ca837('0x16e7')]=![],_0x2f183f[_0x5ca837('0xc00')]={'readOnly':!_0x2f183f[_0x5ca837('0xb3d')]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5ca837('0x2623'),'line1':_0x5ca837('0x2623'),'line2':'type','line3':_0x2f183f[_0x5ca837('0x4e')]===_0x5ca837('0xe74')?'penalty':'','labelAll':_0x255991[_0x5ca837('0x2159')]('STAFF.ALL_QUEUES_'+_0x2f183f[_0x5ca837('0x4e')][_0x5ca837('0x25f7')]()+'_'+_0x2f183f[_0x5ca837('0x1338')][_0x5ca837('0x25f7')]()),'labelSelected':_0x255991[_0x5ca837('0x2159')](_0x5ca837('0x1ea')+_0x2f183f[_0x5ca837('0x4e')][_0x5ca837('0x25f7')]()+'_'+_0x2f183f[_0x5ca837('0x1338')][_0x5ca837('0x25f7')]()),'transferCallback':function _0x3202d7(_0x4d4d74,_0x2befd1){var _0x5ce4f6=_0x5ca837;_0x2befd1?_0x4d4d74[_0x5ce4f6('0x1d7e')](function(_0x1bbae1){var _0x19b1c6=_0x5ce4f6;_0x1bbae1[_0x19b1c6('0x21e3')]=undefined;}):_0x4d4d74[_0x5ce4f6('0x1d7e')](function(_0x4ef9d0){var _0x3b7f7e=_0x5ce4f6;_0x4ef9d0[_0x3b7f7e('0x21e3')]='penalty\x20'+_0x2f183f['penalty'];});var _0x48d457=_0x32d445()[_0x5ce4f6('0x24ca')](_0x2f183f['startingSelectedItems'],_0x2f183f[_0x5ce4f6('0x2273')],function(_0x1c9635,_0x2e4b3f){var _0x567b66=_0x5ce4f6;return _0x1c9635['id']===_0x2e4b3f['id']&&_0x1c9635[_0x567b66('0x21e3')]===_0x2e4b3f[_0x567b66('0x21e3')];});_0x2f183f[_0x5ce4f6('0x16e7')]=_0x32d445()[_0x5ce4f6('0x14b4')](_0x48d457)?![]:!![];}},_0x2f183f['onInit']=_0x41dc22,_0x2f183f[_0x5ca837('0xf3d')]=_0x3daa01,_0x2f183f[_0x5ca837('0x2584')]=_0x2e5326;function _0x41dc22(){var _0x4770b1=_0x5ca837;return _0x21f735[_0x4770b1('0x179e')](_0x4770b1('0xd14'))?_0x12d41f()['catch'](function(_0x5dd85f){var _0x274a8d=_0x4770b1;_0x49e4bd[_0x274a8d('0x8c8')]({'title':_0x5dd85f[_0x274a8d('0x2833')]?'API:'+_0x5dd85f[_0x274a8d('0x2833')]+_0x274a8d('0x1b7c')+_0x5dd85f[_0x274a8d('0x1fd7')]:'SYSTEM:GET_QUEUES','msg':_0x5dd85f[_0x274a8d('0x2833')]?JSON[_0x274a8d('0x3ad')](_0x5dd85f['data']):_0x5dd85f[_0x274a8d('0x94f')]()});}):_0x168461()[_0x4770b1('0xe19')](function(_0x1842cd){var _0x16a70e=_0x4770b1;return _0x2f183f[_0x16a70e('0x1e59')]=_0x1842cd,_0x12d41f();})[_0x4770b1('0x223b')](function(_0x59021f){var _0x40a9aa=_0x4770b1;_0x49e4bd['error']({'title':_0x59021f[_0x40a9aa('0x2833')]?_0x40a9aa('0x27f2')+_0x59021f[_0x40a9aa('0x2833')]+_0x40a9aa('0x1b7c')+_0x59021f['statusText']:_0x40a9aa('0x19e6'),'msg':_0x59021f[_0x40a9aa('0x2833')]?JSON[_0x40a9aa('0x3ad')](_0x59021f[_0x40a9aa('0x11d0')]):_0x59021f['toString']()});});}function _0x168461(){return _0x1dfda5(function(_0x38fc02,_0x8ad2b){var _0xc1eaa9=a0_0x5325,_0x33e9f9;switch(_0x2f183f[_0xc1eaa9('0x4e')]){case _0xc1eaa9('0xe74'):switch(_0x2f183f[_0xc1eaa9('0x1338')]){case _0xc1eaa9('0x1a7a'):_0x33e9f9=_0xc1eaa9('0x13e1');break;case _0xc1eaa9('0x1fdf'):_0x33e9f9=_0xc1eaa9('0x1a2a');break;}break;case _0xc1eaa9('0x17cc'):_0x33e9f9=_0xc1eaa9('0x17c2');break;case _0xc1eaa9('0x26bf'):_0x33e9f9=_0xc1eaa9('0x12e8');break;case _0xc1eaa9('0x2801'):_0x33e9f9=_0xc1eaa9('0x1f11');break;case _0xc1eaa9('0xaf2'):_0x33e9f9=_0xc1eaa9('0x744');break;case _0xc1eaa9('0x625'):_0x33e9f9=_0xc1eaa9('0x1473');break;}_0x58f2e4[_0xc1eaa9('0xb59')][_0xc1eaa9('0x22d5')]({'userProfileId':_0x2f183f[_0xc1eaa9('0x15a5')][_0xc1eaa9('0x1d04')],'name':_0x33e9f9})[_0xc1eaa9('0xe59')][_0xc1eaa9('0xe19')](function(_0x2695ae){var _0x3df5f6=_0xc1eaa9,_0xdb02af=_0x2695ae&&_0x2695ae[_0x3df5f6('0x16a7')]?_0x2695ae['rows'][0x0]:null;_0x38fc02(_0xdb02af);})[_0xc1eaa9('0x223b')](function(_0x2858e4){_0x8ad2b(_0x2858e4);});});}function _0x12d41f(){return _0x1dfda5(function(_0x2e0cce,_0x229f9d){var _0x4449e4=a0_0x5325;return _0x3cc272()[_0x4449e4('0xe19')](function(_0x179727){var _0x441e95=_0x4449e4;return _0x2f183f[_0x441e95('0xe4b')]=_0x179727['rows']?_0x179727['rows']:[],_0x21f735[_0x441e95('0x179e')]('admin')?_0x179727:_0x2f183f[_0x441e95('0x1e59')]?_0x2f183f[_0x441e95('0x1e59')]['autoAssociation']?_0x179727:_0x6b451d():null;})['then'](function(_0x21dd2b){var _0x376872=_0x4449e4,_0x3f5669=_0x21dd2b&&_0x21dd2b['rows']?_0x21dd2b[_0x376872('0x16a7')]:[];return _0x2f183f[_0x376872('0x1884')]=_0x32d445()[_0x376872('0x65a')](_0x3f5669,function(_0x503d3b){var _0x262529=_0x376872;return _0x32d445()['find'](_0x2f183f[_0x262529('0xe4b')],{'id':_0x21f735[_0x262529('0x179e')](_0x262529('0xd14'))||_0x2f183f[_0x262529('0x1e59')][_0x262529('0x11fd')]?_0x503d3b['id']:_0x503d3b[_0x262529('0x1104')]});}),_0x2f183f[_0x376872('0x286c')]=angular[_0x376872('0x89')](_0x2f183f[_0x376872('0x1884')]),_0x2f183f[_0x376872('0xe4b')][_0x376872('0x1d7e')](function(_0x228c7b){var _0x11aa89=_0x376872,_0x4ce44b=_0x32d445()[_0x11aa89('0xf15')](_0x2f183f['allowedItems'],{'id':_0x228c7b['id']});_0x21f735['hasRole']('admin')?_0x228c7b[_0x11aa89('0x1768')]=!![]:_0x228c7b['isValid']=typeof _0x4ce44b!==_0x11aa89('0x1143')?!![]:![];}),_0x3c4c6b();})[_0x4449e4('0xe19')](function(_0x51f02f){var _0x4b4dcb=_0x4449e4,_0x1d1535=_0x51f02f&&_0x51f02f[_0x4b4dcb('0x16a7')]?_0x51f02f['rows']:[];_0x2f183f[_0x4b4dcb('0x2273')]=_0x32d445()[_0x4b4dcb('0x65a')](_0x1d1535,function(_0x2b24a1){var _0x3c3fec=_0x4b4dcb,_0x366f8b=_0x32d445()['find'](_0x2f183f[_0x3c3fec('0xe4b')],{'id':_0x2b24a1['id']});return _0x2f183f[_0x3c3fec('0x4e')]===_0x3c3fec('0xe74')&&(_0x366f8b['penalty']=typeof _0x366f8b!=='undefined'&&typeof _0x2b24a1[_0x3c3fec('0xdde')]!==_0x3c3fec('0x1143')?'penalty\x20'+_0x2b24a1[_0x3c3fec('0xdde')][_0x3c3fec('0x21e3')]:_0x3c3fec('0x815')+0x0),_0x366f8b;}),_0x2f183f['startingSelectedItems']=angular['copy'](_0x2f183f[_0x4b4dcb('0x2273')]),_0x2f183f[_0x4b4dcb('0xc00')]['selectedItems']=_0x2f183f[_0x4b4dcb('0x2273')],_0x2f183f[_0x4b4dcb('0xc00')][_0x4b4dcb('0xe4b')]=_0x32d445()[_0x4b4dcb('0x501')](_0x2f183f[_0x4b4dcb('0x1884')],_0x2f183f['dualMultiselectOptions'][_0x4b4dcb('0x2273')],'id'),_0x2e0cce();})[_0x4449e4('0x223b')](function(_0x9272f3){_0x229f9d(_0x9272f3);});});}function _0x6b451d(){return _0x1dfda5(function(_0x572a1a,_0x3fdb43){var _0x21582b=a0_0x5325;return _0x58f2e4[_0x21582b('0xd49')][_0x21582b('0x22d5')]({'sectionId':_0x2f183f[_0x21582b('0x1e59')]['id'],'nolimit':!![]})[_0x21582b('0xe59')][_0x21582b('0xe19')](function(_0x30d606){_0x572a1a(_0x30d606);})[_0x21582b('0x223b')](function(_0x39820d){_0x3fdb43(_0x39820d);});});}function _0x3c4c6b(){return _0x1dfda5(function(_0x59f9d9,_0x2500b1){var _0x533948=a0_0x5325;return _0x58f2e4['user'][_0x533948('0x23cf')]({'id':_0x2f183f[_0x533948('0x108')]['id'],'fields':_0x533948('0x1976'),'nolimit':!![],'type':_0x2f183f[_0x533948('0x1338')],'channel':_0x2f183f[_0x533948('0x4e')]})[_0x533948('0xe59')][_0x533948('0xe19')](function(_0x2ac3b9){_0x59f9d9(_0x2ac3b9);})[_0x533948('0x223b')](function(_0x3fab73){_0x2500b1(_0x3fab73);});});}function _0x3cc272(){return _0x1dfda5(function(_0x3bf145,_0x117506){var _0x1bc803=a0_0x5325;return _0x58f2e4[_0x2f183f['apiName']][_0x1bc803('0x22d5')]({'fields':'id,name,strategy,type','channel':_0x2f183f[_0x1bc803('0x4e')]===_0x1bc803('0x1ce2')?_0x1bc803('0xe74'):_0x2f183f[_0x1bc803('0x4e')],'type':_0x2f183f[_0x1bc803('0x1338')],'nolimit':!![]})[_0x1bc803('0xe59')][_0x1bc803('0xe19')](function(_0x470b2e){_0x3bf145(_0x470b2e);})[_0x1bc803('0x223b')](function(_0x139670){_0x117506(_0x139670);});});}function _0x26badc(_0x650923){return _0x1dfda5(function(_0x2cc59a,_0x5414e0){var _0x5b79bb=a0_0x5325;if(_0x32d445()[_0x5b79bb('0x14b4')](_0x650923))_0x2cc59a();else{if(_0x2f183f[_0x5b79bb('0x4e')]===_0x5b79bb('0xe74')){var _0x2d6d6d=[],_0xe44ece=_0x32d445()[_0x5b79bb('0x17fc')](_0x650923,'penalty');for(var _0x8d81b8=0x0;_0x8d81b8':'',_0x5490a7;}),_0x3485d5['startingSelectedItems']=angular[_0x51b29d('0x89')](_0x3485d5[_0x51b29d('0x2273')]),_0x3485d5[_0x51b29d('0xc00')][_0x51b29d('0x2273')]=_0x3485d5['selectedItems'],_0x3485d5[_0x51b29d('0xc00')][_0x51b29d('0xe4b')]=_0x32d445()[_0x51b29d('0x501')](_0x3485d5[_0x51b29d('0x1884')],_0x3485d5[_0x51b29d('0xc00')][_0x51b29d('0x2273')],'id'),_0x1b2ec0();})[_0x28d2d3('0x223b')](function(_0x28a0ab){_0x52d097(_0x28a0ab);});});}function _0x5c9255(){return _0x500337(function(_0x26791b,_0x459cb0){var _0x4b6a7e=a0_0x5325;return _0x4b99fb[_0x4b6a7e('0xd49')][_0x4b6a7e('0x22d5')]({'sectionId':_0x3485d5[_0x4b6a7e('0x1e59')]['id'],'nolimit':!![]})[_0x4b6a7e('0xe59')][_0x4b6a7e('0xe19')](function(_0x5d481d){_0x26791b(_0x5d481d);})[_0x4b6a7e('0x223b')](function(_0x51b633){_0x459cb0(_0x51b633);});});}function _0x4752cd(){return _0x500337(function(_0x24eb72,_0x4ab79b){var _0x3a1f80=a0_0x5325;return _0x4b99fb[_0x3a1f80('0x25af')][_0x3a1f80('0x14fd')]({'id':_0x3485d5[_0x3a1f80('0x25af')]['id'],'fields':_0x3a1f80('0x244f'),'nolimit':!![],'role':_0x3a1f80('0x108')})[_0x3a1f80('0xe59')][_0x3a1f80('0xe19')](function(_0x31e685){_0x24eb72(_0x31e685);})['catch'](function(_0x5f496a){_0x4ab79b(_0x5f496a);});});}function _0x31e68b(){return _0x500337(function(_0x44b128,_0x2e0da1){var _0x1f7694=a0_0x5325;return _0x4b99fb[_0x1f7694('0x10c6')][_0x1f7694('0x22d5')]({'fields':_0x1f7694('0x244f'),'nolimit':!![],'role':'agent'})[_0x1f7694('0xe59')][_0x1f7694('0xe19')](function(_0x3c898c){_0x44b128(_0x3c898c);})[_0x1f7694('0x223b')](function(_0x54d6cd){_0x2e0da1(_0x54d6cd);});});}function _0x24a0db(_0xebfc92){return _0x500337(function(_0x39356b,_0x11ce71){var _0x39821a=a0_0x5325;_0x32d445()[_0x39821a('0x14b4')](_0xebfc92)?_0x39356b():_0x4b99fb[_0x39821a('0x25af')][_0x39821a('0x2271')]({'id':_0x3485d5[_0x39821a('0x25af')]['id'],'ids':_0x32d445()[_0x39821a('0x65a')](_0xebfc92,'id')})[_0x39821a('0xe59')][_0x39821a('0xe19')](function(){_0x39356b();})[_0x39821a('0x223b')](function(_0x42d458){_0x11ce71(_0x42d458);});});}function _0x130510(_0x4525cd){return _0x500337(function(_0x480aa9,_0x25ecdd){var _0x1af091=a0_0x5325;_0x32d445()[_0x1af091('0x14b4')](_0x4525cd)?_0x480aa9():_0x4b99fb['team'][_0x1af091('0x6aa')]({'id':_0x3485d5[_0x1af091('0x25af')]['id'],'ids':_0x32d445()[_0x1af091('0x65a')](_0x4525cd,'id')})[_0x1af091('0xe59')][_0x1af091('0xe19')](function(){_0x480aa9();})[_0x1af091('0x223b')](function(_0x1caba9){_0x25ecdd(_0x1caba9);});});}function _0x30fd48(){var _0x1440f7=_0x26c14d,_0x3bcad6=_0x32d445()[_0x1440f7('0x501')](_0x3485d5[_0x1440f7('0xf79')],_0x3485d5[_0x1440f7('0x2273')],'id'),_0x51db32=_0x32d445()[_0x1440f7('0x501')](_0x3485d5[_0x1440f7('0x2273')],_0x3485d5[_0x1440f7('0xf79')],'id');return _0x130510(_0x3bcad6)['then'](function(){return _0x24a0db(_0x51db32);})[_0x1440f7('0xe19')](function(){var _0xc40876=_0x1440f7;_0x3485d5[_0xc40876('0x16e7')]=![],_0x3485d5[_0xc40876('0x286c')]=angular[_0xc40876('0x89')](_0x3485d5[_0xc40876('0x1884')]),_0x3485d5['startingSelectedItems']=angular[_0xc40876('0x89')](_0x3485d5[_0xc40876('0x2273')]),_0x46ce51[_0xc40876('0x425')]({'title':'SUCCESS','msg':_0xc40876('0x25d')});})[_0x1440f7('0x223b')](function(_0x555ac4){var _0x286867=_0x1440f7;_0x46ce51[_0x286867('0x8c8')]({'title':_0x555ac4[_0x286867('0x2833')]?_0x286867('0x27f2')+_0x555ac4[_0x286867('0x2833')]+'\x20-\x20'+_0x555ac4[_0x286867('0x1fd7')]:_0x286867('0x2168'),'msg':_0x555ac4[_0x286867('0x2833')]?JSON[_0x286867('0x3ad')](_0x555ac4[_0x286867('0x11d0')]):_0x555ac4[_0x286867('0x94f')]()});});}function _0x1b0c04(){var _0x42322e=_0x26c14d;_0x5e0c4a[_0x42322e('0x11ed')]();}}const _0x1f7e16=_0xcd8c80,_0x5a50fe=_0x59426a['p']+_0xb635d2('0x152d'),_0x25a3b6=_0x59426a['p']+_0xb635d2('0x7ad');_0x341899[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window','$state','$mdSidenav','$mdDialog',_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),'teams','userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1'),'setting'];function _0x341899(_0x36c8f2,_0x266159,_0x1f3150,_0x2579eb,_0x128d01,_0x2536fb,_0x14f703,_0x1ffabe,_0x2aa301,_0x29e366,_0x2f3f0e,_0x43e1c2,_0x5a9731,_0x319500,_0x333157,_0x131e63,_0x4e5421){var _0x164720=_0xb635d2,_0x50546f=this;_0x50546f['license']=_0x131e63,_0x50546f['setting']=_0x4e5421,_0x50546f['currentUser']=_0x333157[_0x164720('0x1ef8')](),_0x50546f[_0x164720('0x859')]=_0x2aa301||{'count':0x0,'rows':[]},_0x50546f[_0x164720('0x154f')]=_0x29e366,_0x50546f[_0x164720('0xb59')]=_0x2f3f0e&&_0x2f3f0e[_0x164720('0x148b')]==0x1?_0x2f3f0e[_0x164720('0x16a7')][0x0]:null,_0x50546f[_0x164720('0xb3d')]=_0x333157['parseCrudPermissions'](_0x50546f[_0x164720('0xb59')]?_0x50546f[_0x164720('0xb59')]['crudPermissions']:null),_0x50546f[_0x164720('0x19b6')]='teams',_0x50546f[_0x164720('0x14d6')]='',_0x50546f['listOrderAsc']=null,_0x50546f[_0x164720('0xd86')]=[],_0x50546f[_0x164720('0xa16')]={'fields':_0x164720('0x1666'),'sort':_0x164720('0x7e8'),'limit':0xa,'page':0x1},_0x50546f[_0x164720('0x1752')]=_0x21aeb4,_0x50546f[_0x164720('0x1407')]=_0x317290,_0x50546f[_0x164720('0x1d9e')]=_0x2b026a,_0x50546f[_0x164720('0x425')]=_0x404d8f,_0x50546f['getTeams']=_0x1f95a6,_0x50546f['createOrEditTeam']=_0x3fc11a,_0x50546f[_0x164720('0x1ebe')]=_0x56801f,_0x50546f[_0x164720('0xf2')]=_0x44738a,_0x50546f[_0x164720('0x1019')]=_0xb00ca7,_0x50546f[_0x164720('0x2427')]=_0xd992c3,_0x50546f['selectAllTeams']=_0x3d595e;function _0x21aeb4(_0x279bec,_0xa35886){var _0x1dbe5d=_0x164720;_0x128d01[_0x1dbe5d('0x26b2')]({'controller':_0x1dbe5d('0xe58'),'controllerAs':'vm','templateUrl':_0x5a50fe,'parent':angular[_0x1dbe5d('0x24a1')](_0x2536fb[_0x1dbe5d('0x19b2')]),'targetEvent':_0xa35886,'clickOutsideToClose':!![],'locals':{'team':_0x279bec,'teams':_0x50546f[_0x1dbe5d('0x859')]['rows'],'license':_0x50546f[_0x1dbe5d('0x5c1')],'setting':null,'crudPermissions':_0x50546f[_0x1dbe5d('0xb3d')]}});}function _0x317290(_0x2f3b8b,_0x2af509){var _0x84b8b6=_0x164720;_0x128d01[_0x84b8b6('0x26b2')]({'controller':_0x84b8b6('0x103b'),'controllerAs':'vm','templateUrl':_0x25a3b6,'parent':angular[_0x84b8b6('0x24a1')](_0x2536fb['body']),'targetEvent':_0x2af509,'clickOutsideToClose':!![],'locals':{'team':_0x2f3b8b,'teams':_0x50546f['teams']?_0x50546f[_0x84b8b6('0x859')][_0x84b8b6('0x16a7')]:[],'crudPermissions':_0x50546f[_0x84b8b6('0xb3d')],'realtime':![]}});}function _0x2b026a(_0x2ca1c6,_0x5717df){var _0x2fa664=_0x164720,_0x375e0b=_0x128d01[_0x2fa664('0xa5')]()[_0x2fa664('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()[_0x2fa664('0x1df2')](_0x2fa664('0x25af'))+'?')['htmlContent'](_0x2fa664('0xab2')+(_0x2ca1c6[_0x2fa664('0x2623')]||_0x2fa664('0x25af'))+_0x2fa664('0x27bb')+_0x2fa664('0x21bd'))['ariaLabel'](_0x2fa664('0x2105'))['targetEvent'](_0x5717df)['ok']('OK')[_0x2fa664('0x2c1')](_0x2fa664('0x17'));_0x128d01['show'](_0x375e0b)['then'](function(){_0x56801f(_0x2ca1c6);},function(){var _0x4f328a=_0x2fa664;console['log'](_0x4f328a('0x17'));});}var _0x526be5=!![],_0x1089e5=0x1;_0x36c8f2['$watch'](_0x164720('0x20cb'),function(_0x1dda32,_0x2a397f){var _0x16fa48=_0x164720;_0x526be5?_0x14f703(function(){_0x526be5=![];}):(!_0x2a397f&&(_0x1089e5=_0x50546f[_0x16fa48('0xa16')][_0x16fa48('0xc08')]),_0x1dda32!==_0x2a397f&&(_0x50546f['query']['page']=0x1),!_0x1dda32&&(_0x50546f['query']['page']=_0x1089e5),_0x50546f[_0x16fa48('0x106a')]());});function _0x404d8f(_0x30058b){var _0x3740b8=_0x164720;_0x50546f[_0x3740b8('0x859')]=_0x30058b||{'count':0x0,'rows':[]};}function _0x1f95a6(){var _0x3fb336=_0x164720;_0x50546f[_0x3fb336('0xa16')]['offset']=(_0x50546f[_0x3fb336('0xa16')][_0x3fb336('0xc08')]-0x1)*_0x50546f[_0x3fb336('0xa16')][_0x3fb336('0x1b6d')],_0x333157[_0x3fb336('0x179e')](_0x3fb336('0xd14'))?_0x50546f['promise']=_0x43e1c2[_0x3fb336('0x25af')][_0x3fb336('0x22d5')](_0x50546f['query'],_0x404d8f)[_0x3fb336('0xe59')]:(_0x50546f[_0x3fb336('0xa16')]['id']=_0x50546f[_0x3fb336('0x154f')]['id'],_0x50546f[_0x3fb336('0xa16')]['section']=_0x3fb336('0x1d54'),_0x50546f[_0x3fb336('0x9c8')]=_0x43e1c2[_0x3fb336('0x154f')][_0x3fb336('0x14e6')](_0x50546f['query'],_0x404d8f)[_0x3fb336('0xe59')]);}function _0x3fc11a(_0x5d59c3,_0x27fac3){var _0x5884b9=_0x164720;_0x128d01[_0x5884b9('0x26b2')]({'controller':_0x5884b9('0xe58'),'controllerAs':'vm','templateUrl':_0x5a50fe,'parent':angular[_0x5884b9('0x24a1')](_0x2536fb['body']),'targetEvent':_0x5d59c3,'clickOutsideToClose':!![],'locals':{'team':_0x27fac3,'teams':_0x50546f[_0x5884b9('0x859')][_0x5884b9('0x16a7')],'license':_0x50546f['license'],'setting':_0x50546f[_0x5884b9('0x22f1')],'crudPermissions':_0x50546f['crudPermissions']}});}function _0x56801f(_0x3cbb98){_0x43e1c2['team']['delete']({'id':_0x3cbb98['id']})['$promise']['then'](function(){var _0x55b3c4=a0_0x5325;_0x32d445()['remove'](_0x50546f[_0x55b3c4('0x859')][_0x55b3c4('0x16a7')],{'id':_0x3cbb98['id']}),_0x50546f[_0x55b3c4('0x859')][_0x55b3c4('0x148b')]-=0x1,!_0x50546f[_0x55b3c4('0x859')][_0x55b3c4('0x16a7')]['length']&&_0x50546f[_0x55b3c4('0x106a')](),_0x319500[_0x55b3c4('0x425')]({'title':_0x32d445()['startCase'](_0x55b3c4('0xa48'))+_0x55b3c4('0x1219'),'msg':_0x3cbb98[_0x55b3c4('0x2623')]?_0x3cbb98[_0x55b3c4('0x2623')]+_0x55b3c4('0x2182'):''});})['catch'](function(_0x32f677){var _0x30e9ee=a0_0x5325;if(_0x32f677[_0x30e9ee('0x11d0')]&&_0x32f677[_0x30e9ee('0x11d0')][_0x30e9ee('0xcd2')]&&_0x32f677['data'][_0x30e9ee('0xcd2')]['length']){_0x50546f['errors']=_0x32f677[_0x30e9ee('0x11d0')][_0x30e9ee('0xcd2')]||[{'message':_0x32f677['toString'](),'type':_0x30e9ee('0x74f')}];for(var _0x11a964=0x0;_0x11a964<_0x32f677[_0x30e9ee('0x11d0')][_0x30e9ee('0xcd2')][_0x30e9ee('0x25ae')];_0x11a964++){_0x319500[_0x30e9ee('0x8c8')]({'title':_0x32f677[_0x30e9ee('0x11d0')][_0x30e9ee('0xcd2')][_0x11a964][_0x30e9ee('0x62e')],'msg':_0x32f677[_0x30e9ee('0x11d0')][_0x30e9ee('0xcd2')][_0x11a964][_0x30e9ee('0x27e8')]});}}else _0x319500[_0x30e9ee('0x8c8')]({'title':_0x32f677[_0x30e9ee('0x2833')]?_0x30e9ee('0x27f2')+_0x32f677['status']+_0x30e9ee('0x1b7c')+_0x32f677['statusText']:'SYSTEM:DELETEteam','msg':_0x32f677[_0x30e9ee('0x11d0')]?JSON[_0x30e9ee('0x3ad')](_0x32f677[_0x30e9ee('0x11d0')][_0x30e9ee('0x27e8')]):_0x32f677[_0x30e9ee('0x27e8')]||_0x32f677['toString']()});});}function _0x44738a(){var _0x11e801=_0x164720,_0x3d714a=angular['copy'](_0x50546f[_0x11e801('0xd86')]);return _0x50546f[_0x11e801('0xd86')]=[],_0x3d714a;}function _0xb00ca7(_0x4d72ae){var _0x18fa4b=_0x164720,_0x310b98=_0x128d01['confirm']()[_0x18fa4b('0x13e4')](_0x18fa4b('0x1603'))[_0x18fa4b('0x221c')](_0x18fa4b('0xab2')+_0x50546f[_0x18fa4b('0xd86')]['length']+'\x20selected'+_0x18fa4b('0x21bd'))[_0x18fa4b('0x4d1')](_0x18fa4b('0x17d2'))[_0x18fa4b('0x1345')](_0x4d72ae)['ok']('OK')[_0x18fa4b('0x2c1')]('CANCEL');_0x128d01[_0x18fa4b('0x26b2')](_0x310b98)[_0x18fa4b('0xe19')](function(){var _0x27ff22=_0x18fa4b;_0x50546f[_0x27ff22('0xd86')][_0x27ff22('0x1d7e')](function(_0x5d5769){_0x56801f(_0x5d5769);}),_0x50546f[_0x27ff22('0xd86')]=[];});}function _0xd992c3(){var _0x1db471=_0x164720;_0x50546f[_0x1db471('0xd86')]=[];}function _0x3d595e(){var _0x206ad8=_0x164720;_0x50546f['selectedTeams']=_0x50546f[_0x206ad8('0x859')][_0x206ad8('0x16a7')];}}const _0x4a5210=_0x341899;_0x36298a[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state','$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x2059'),_0xb635d2('0x1e7c'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x36298a(_0xd4e9ce,_0x1183cc,_0x2929cc,_0xe80aab,_0x5d3371,_0x18c721,_0xce5dba,_0x572290,_0x4efd8e,_0x53c6f1,_0x50629a,_0x16d8a5,_0x373ba1,_0x3336e0){var _0x5770c6=_0xb635d2,_0x10611b=this;_0x10611b[_0x5770c6('0x15a5')]=_0x50629a[_0x5770c6('0x1ef8')](),_0x10611b['errors']=[],_0x10611b[_0x5770c6('0x22f1')]=_0x373ba1,_0x10611b[_0x5770c6('0x5c1')]=_0x16d8a5,_0x10611b[_0x5770c6('0xb3d')]=_0x3336e0,_0x10611b[_0x5770c6('0x1ccb')]={},_0x10611b['passwordPattern']=_0x10611b['setting']&&_0x10611b[_0x5770c6('0x22f1')][_0x5770c6('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10611b[_0x5770c6('0x13e4')]=_0x5770c6('0xeb5'),_0x10611b[_0x5770c6('0x1e7c')]=angular['copy'](_0x4efd8e),_0x10611b[_0x5770c6('0x2059')]=_0x572290,_0x10611b[_0x5770c6('0x520')]=![];!_0x10611b['telephone']&&(_0x10611b[_0x5770c6('0x1e7c')]={'role':'telephone','autointernal':!![],'context':_0x5770c6('0x280c')},_0x10611b[_0x5770c6('0x13e4')]=_0x5770c6('0x173c'),_0x10611b[_0x5770c6('0x520')]=!![]);_0x10611b[_0x5770c6('0xc74')]=_0x557b05,_0x10611b[_0x5770c6('0xcee')]=_0xb2ea82,_0x10611b['deleteTelephone']=_0x51bf52,_0x10611b[_0x5770c6('0x2635')]=_0x17e7bd,_0x10611b[_0x5770c6('0x2584')]=_0x40fb77;function _0x557b05(){var _0x3aca7e=_0x5770c6;_0x10611b[_0x3aca7e('0xcd2')]=[],_0x53c6f1[_0x3aca7e('0x10c6')][_0x3aca7e('0xe5e')](_0x10611b[_0x3aca7e('0x1e7c')])[_0x3aca7e('0xe59')][_0x3aca7e('0xe19')](function(_0x1989eb){var _0x100ac9=_0x3aca7e;_0x10611b[_0x100ac9('0x2059')][_0x100ac9('0x14c9')](_0x1989eb[_0x100ac9('0x250e')]()),_0xce5dba[_0x100ac9('0x425')]({'title':'Telephone\x20properly\x20created','msg':_0x10611b[_0x100ac9('0x1e7c')][_0x100ac9('0x2623')]?_0x10611b[_0x100ac9('0x1e7c')][_0x100ac9('0x2623')]+_0x100ac9('0x105f'):''}),_0x40fb77(_0x1989eb);})[_0x3aca7e('0x223b')](function(_0x2a8d16){var _0x5809d5=_0x3aca7e;if(_0x2a8d16[_0x5809d5('0x11d0')]&&_0x2a8d16[_0x5809d5('0x11d0')][_0x5809d5('0xcd2')]&&_0x2a8d16['data'][_0x5809d5('0xcd2')]['length']){_0x10611b['errors']=_0x2a8d16['data'][_0x5809d5('0xcd2')]||[{'message':_0x2a8d16[_0x5809d5('0x94f')](),'type':_0x5809d5('0x172c')}];for(var _0x3f9bbb=0x0;_0x3f9bbb<_0x2a8d16[_0x5809d5('0x11d0')]['errors']['length'];_0x3f9bbb+=0x1){_0xce5dba['error']({'title':_0x2a8d16[_0x5809d5('0x11d0')]['errors'][_0x3f9bbb]['type'],'msg':_0x2a8d16[_0x5809d5('0x11d0')][_0x5809d5('0xcd2')][_0x3f9bbb][_0x5809d5('0x27e8')]});}}else _0xce5dba['error']({'title':_0x2a8d16[_0x5809d5('0x2833')]?'API:'+_0x2a8d16['status']+_0x5809d5('0x1b7c')+_0x2a8d16[_0x5809d5('0x1fd7')]:_0x5809d5('0x172c'),'msg':_0x2a8d16[_0x5809d5('0x11d0')]?JSON[_0x5809d5('0x3ad')](_0x2a8d16[_0x5809d5('0x11d0')][_0x5809d5('0x27e8')]):_0x2a8d16[_0x5809d5('0x94f')]()});});}function _0xb2ea82(){var _0x7965b=_0x5770c6;_0x10611b[_0x7965b('0xcd2')]=[],_0x53c6f1[_0x7965b('0x10c6')][_0x7965b('0xa70')]({'id':_0x10611b[_0x7965b('0x1e7c')]['id']},_0x10611b[_0x7965b('0x1e7c')])[_0x7965b('0xe59')][_0x7965b('0xe19')](function(_0x57c87e){var _0x181bcb=_0x7965b,_0x4e86fe=_0x32d445()[_0x181bcb('0xf15')](_0x10611b[_0x181bcb('0x2059')],{'id':_0x57c87e['id']});_0x4e86fe&&_0x32d445()['merge'](_0x4e86fe,_0x32d445()[_0x181bcb('0xed5')](_0x57c87e['toJSON'](),_0x32d445()[_0x181bcb('0x1234')](_0x4e86fe))),_0xce5dba['success']({'title':_0x181bcb('0x1600'),'msg':_0x10611b['telephone'][_0x181bcb('0x2623')]?_0x10611b['telephone']['name']+'\x20has\x20been\x20saved!':''}),_0x40fb77(_0x57c87e);})['catch'](function(_0x54a38e){var _0x2fb93a=_0x7965b;if(_0x54a38e[_0x2fb93a('0x11d0')]&&_0x54a38e[_0x2fb93a('0x11d0')][_0x2fb93a('0xcd2')]&&_0x54a38e[_0x2fb93a('0x11d0')]['errors']['length']){_0x10611b[_0x2fb93a('0xcd2')]=_0x54a38e[_0x2fb93a('0x11d0')]['errors']||[{'message':_0x54a38e[_0x2fb93a('0x94f')](),'type':_0x2fb93a('0x2bf')}];for(var _0x399ddb=0x0;_0x399ddb<_0x54a38e['data'][_0x2fb93a('0xcd2')]['length'];_0x399ddb++){_0xce5dba['error']({'title':_0x54a38e[_0x2fb93a('0x11d0')]['errors'][_0x399ddb][_0x2fb93a('0x62e')],'msg':_0x54a38e['data'][_0x2fb93a('0xcd2')][_0x399ddb]['message']});}}else _0xce5dba[_0x2fb93a('0x8c8')]({'title':_0x54a38e[_0x2fb93a('0x2833')]?_0x2fb93a('0x27f2')+_0x54a38e[_0x2fb93a('0x2833')]+_0x2fb93a('0x1b7c')+_0x54a38e['statusText']:_0x2fb93a('0x2bf'),'msg':_0x54a38e[_0x2fb93a('0x11d0')]?JSON[_0x2fb93a('0x3ad')](_0x54a38e[_0x2fb93a('0x11d0')][_0x2fb93a('0x27e8')]):_0x54a38e[_0x2fb93a('0x94f')]()});});}function _0x51bf52(_0x425f27){var _0x1b8e46=_0x5770c6;_0x10611b['errors']=[];var _0x1f4e13=_0xe80aab[_0x1b8e46('0xa5')]()['title']('Are\x20you\x20sure?')[_0x1b8e46('0xd0')](_0x1b8e46('0x12dc'))['ariaLabel'](_0x1b8e46('0x228e'))['ok'](_0x1b8e46('0x2198'))['cancel'](_0x1b8e46('0x8a3'))[_0x1b8e46('0x1345')](_0x425f27);_0xe80aab[_0x1b8e46('0x26b2')](_0x1f4e13)[_0x1b8e46('0xe19')](function(){var _0x1f775e=_0x1b8e46;_0x53c6f1[_0x1f775e('0x10c6')][_0x1f775e('0x229e')]({'id':_0x10611b[_0x1f775e('0x1e7c')]['id']})[_0x1f775e('0xe59')]['then'](function(){var _0x177fae=_0x1f775e;_0x32d445()['remove'](_0x10611b[_0x177fae('0x2059')],{'id':_0x10611b[_0x177fae('0x1e7c')]['id']}),_0xce5dba['success']({'title':_0x177fae('0x15'),'msg':(_0x10611b[_0x177fae('0x1e7c')]['name']||_0x177fae('0x1e7c'))+_0x177fae('0x2182')}),_0x40fb77(_0x10611b[_0x177fae('0x1e7c')]);})[_0x1f775e('0x223b')](function(_0x34adde){var _0xfc937c=_0x1f775e;if(_0x34adde[_0xfc937c('0x11d0')]&&_0x34adde[_0xfc937c('0x11d0')][_0xfc937c('0xcd2')]&&_0x34adde['data'][_0xfc937c('0xcd2')][_0xfc937c('0x25ae')]){_0x10611b[_0xfc937c('0xcd2')]=_0x34adde[_0xfc937c('0x11d0')]['errors']||[{'message':_0x34adde['toString'](),'type':_0xfc937c('0xcbb')}];for(var _0x29b156=0x0;_0x29b156<_0x34adde[_0xfc937c('0x11d0')][_0xfc937c('0xcd2')][_0xfc937c('0x25ae')];_0x29b156++){_0xce5dba['error']({'title':_0x34adde[_0xfc937c('0x11d0')][_0xfc937c('0xcd2')][_0x29b156][_0xfc937c('0x62e')],'msg':_0x34adde[_0xfc937c('0x11d0')][_0xfc937c('0xcd2')][_0x29b156][_0xfc937c('0x27e8')]});}}else _0xce5dba[_0xfc937c('0x8c8')]({'title':_0x34adde[_0xfc937c('0x2833')]?_0xfc937c('0x27f2')+_0x34adde['status']+_0xfc937c('0x1b7c')+_0x34adde[_0xfc937c('0x1fd7')]:_0xfc937c('0xcbb'),'msg':_0x34adde['data']?JSON[_0xfc937c('0x3ad')](_0x34adde['data'][_0xfc937c('0x27e8')]):_0x34adde[_0xfc937c('0x27e8')]||_0x34adde[_0xfc937c('0x94f')]()});});},function(){});}function _0x17e7bd(_0x59a643){return _0x59a643===null?undefined:new Date(_0x59a643);}function _0x40fb77(_0x1f1e09){_0xe80aab['hide'](_0x1f1e09);}}const _0x447c59=_0x36298a;_0x37e6dd[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'telephone','setting',_0xb635d2('0x2730')];function _0x37e6dd(_0x2dedf9,_0x25767f,_0x24a8e0,_0x3ef600,_0x5bc346,_0x6d99d8,_0x4ed394){var _0x508907=_0xb635d2,_0x48375c=this;_0x48375c[_0x508907('0x15a5')]=_0x4ed394['getCurrentUser'](),_0x48375c[_0x508907('0xcd2')]=[],_0x48375c[_0x508907('0x22f1')]=_0x6d99d8,_0x48375c[_0x508907('0x25ac')]=_0x48375c[_0x508907('0x22f1')][_0x508907('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x48375c[_0x508907('0x1e7c')]=_0x5bc346,_0x48375c[_0x508907('0x1f6d')]='',_0x48375c[_0x508907('0x4cc')]='',_0x48375c[_0x508907('0x2864')]=_0x51968d,_0x48375c[_0x508907('0x2584')]=_0x2dfeff,_0x2dedf9[_0x508907('0x107')]('vm.password',function(_0x16d3fe){var _0x247f37=_0x508907;!_0x32d445()['isNil'](_0x48375c['oldPassword'])&&(_0x16d3fe===_0x48375c['oldPassword']?_0x2dedf9[_0x247f37('0x77f')]['password'][_0x247f37('0xce')](_0x247f37('0x145'),![]):_0x2dedf9[_0x247f37('0x77f')]['password'][_0x247f37('0xce')](_0x247f37('0x145'),!![]));});function _0x51968d(){var _0x5a12c8=_0x508907;_0x48375c[_0x5a12c8('0xcd2')]=[];var _0x50c032={'id':_0x48375c[_0x5a12c8('0x1e7c')]['id'],'newPassword':_0x48375c['password']};_0x48375c[_0x5a12c8('0x15a5')]['id']==_0x48375c['telephone']['id']&&(_0x50c032['oldPassword']=_0x48375c['oldPassword']),_0x3ef600['user'][_0x5a12c8('0x1676')](_0x50c032)[_0x5a12c8('0xe59')][_0x5a12c8('0xe19')](function(){var _0x5e6adb=_0x5a12c8;_0x24a8e0[_0x5e6adb('0x425')]({'title':_0x5e6adb('0x2896')}),_0x2dfeff();})['catch'](function(_0x599d7a){var _0x55f115=_0x5a12c8;_0x24a8e0['error']({'title':_0x599d7a[_0x55f115('0x2833')]?_0x55f115('0x27f2')+_0x599d7a[_0x55f115('0x2833')]+_0x55f115('0x1b7c')+_0x599d7a[_0x55f115('0x1fd7')]:_0x55f115('0x1953'),'msg':_0x599d7a[_0x55f115('0x11d0')]?JSON[_0x55f115('0x3ad')](_0x599d7a[_0x55f115('0x11d0')][_0x55f115('0x27e8')]):_0x599d7a[_0x55f115('0x94f')]()}),_0x48375c[_0x55f115('0xcd2')]=_0x599d7a[_0x55f115('0x11d0')][_0x55f115('0xcd2')]||[{'message':_0x599d7a['toString'](),'type':_0x55f115('0xa81')}];});}function _0x2dfeff(){var _0x490a7a=_0x508907;_0x25767f[_0x490a7a('0x11ed')]();}}const _0x2f840f=_0x37e6dd,_0x14b288=_0x59426a['p']+_0xb635d2('0x601');_0x1b4d43[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$document','$translate',_0xb635d2('0x5c1'),'setting','api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x1e7c'),_0xb635d2('0xb59')];function _0x1b4d43(_0x4de231,_0x72d064,_0x1f5034,_0x372726,_0x473903,_0xa71e52,_0x29c539,_0x46fb99,_0x4abe62,_0x5ced8c,_0x3189f3,_0x3b1648){var _0x4291ea=_0xb635d2,_0x2d9fbc=this;_0x2d9fbc[_0x4291ea('0x15a5')]=_0x5ced8c['getCurrentUser'](),_0x2d9fbc[_0x4291ea('0x5c1')]=_0xa71e52,_0x2d9fbc['setting']=_0x29c539,_0x2d9fbc[_0x4291ea('0x25ac')]=_0x2d9fbc[_0x4291ea('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d9fbc['location']=_0x72d064[_0x4291ea('0xec0')]()+_0x4291ea('0x21a8')+_0x72d064['host'](),_0x2d9fbc[_0x4291ea('0x1e7c')]=_0x3189f3||_0x4de231[_0x4291ea('0x2ef')][_0x4291ea('0x1e7c')]||{},_0x2d9fbc[_0x4291ea('0xb59')]=_0x3b1648&&_0x3b1648['count']==0x1?_0x3b1648[_0x4291ea('0x16a7')][0x0]:null,_0x2d9fbc['crudPermissions']=_0x5ced8c[_0x4291ea('0xd31')](_0x2d9fbc[_0x4291ea('0xb59')]?_0x2d9fbc[_0x4291ea('0xb59')][_0x4291ea('0xb3d')]:null),_0x2d9fbc[_0x4291ea('0x1ccb')]={},_0x2d9fbc[_0x4291ea('0xc7b')]=_0x4de231['params']['tab']||0x0,_0x2d9fbc['changepassworddialog']=_0x31d9d2,_0x2d9fbc['alert']=_0x4abe62[_0x4291ea('0x1e67')],_0x2d9fbc['gotoTelephones']=_0x5a042f,_0x2d9fbc['saveTelephone']=_0x2f7682,_0x5ced8c[_0x4291ea('0x179e')](_0x4291ea('0xd14'))?_0x46fb99[_0x4291ea('0x2768')]['get']({'fields':_0x4291ea('0x104'),'sort':_0x4291ea('0x2623')})[_0x4291ea('0xe59')][_0x4291ea('0xe19')](function(_0x3b77d7){var _0x11b4d6=_0x4291ea;_0x2d9fbc['contexts']=_0x3b77d7[_0x11b4d6('0x16a7')]||[];})[_0x4291ea('0x223b')](function(_0x1303b7){var _0x3481ad=_0x4291ea;_0x4abe62[_0x3481ad('0x8c8')]({'title':_0x1303b7[_0x3481ad('0x2833')]?_0x3481ad('0x27f2')+_0x1303b7[_0x3481ad('0x2833')]+_0x3481ad('0x1b7c')+_0x1303b7[_0x3481ad('0x1fd7')]:_0x3481ad('0x17ac'),'msg':_0x1303b7['data']?JSON[_0x3481ad('0x3ad')](_0x1303b7[_0x3481ad('0x11d0')]):_0x1303b7[_0x3481ad('0x94f')]()});}):_0x46fb99[_0x4291ea('0x2768')]['get']({'fields':_0x4291ea('0x104'),'sort':_0x4291ea('0x2623')})[_0x4291ea('0xe59')]['then'](function(_0x417e01){var _0x2d4a36=_0x4291ea;_0x2d9fbc[_0x2d4a36('0x3c1')]=_0x417e01[_0x2d4a36('0x16a7')]||[];})[_0x4291ea('0xe19')](function(){var _0x4ea264=_0x4291ea;return _0x46fb99[_0x4ea264('0xb59')][_0x4ea264('0x22d5')]({'userProfileId':_0x2d9fbc[_0x4ea264('0x15a5')][_0x4ea264('0x1d04')],'sectionId':0x195})['$promise'];})[_0x4291ea('0xe19')](function(_0x3f0f67){var _0x3e7659=_0x4291ea,_0x4c75aa=_0x3f0f67&&_0x3f0f67[_0x3e7659('0x16a7')]?_0x3f0f67[_0x3e7659('0x16a7')][0x0]:null;if(!_0x4c75aa)return _0x46fb99[_0x3e7659('0x2768')][_0x3e7659('0x22d5')]({'fields':'id,name','sort':_0x3e7659('0x2623'),'defaultEntry':0x1})[_0x3e7659('0xe59')][_0x3e7659('0xe19')](function(_0x738920){var _0x38ab09=_0x3e7659;_0x2d9fbc[_0x38ab09('0x3c1')]=_0x738920[_0x38ab09('0x16a7')]||[];});else{if(!_0x4c75aa['autoAssociation'])return _0x46fb99['userProfileResource'][_0x3e7659('0x22d5')]({'sectionId':_0x4c75aa['id']})[_0x3e7659('0xe59')][_0x3e7659('0xe19')](function(_0x15420e){var _0xbbc17b=_0x3e7659,_0xf353cd=_0x32d445()[_0xbbc17b('0x65a')](_0x15420e[_0xbbc17b('0x16a7')],function(_0x5e2586){var _0x48553b=_0xbbc17b;return _0x32d445()[_0x48553b('0xf15')](_0x2d9fbc[_0x48553b('0x3c1')],{'id':_0x5e2586['resourceId']});}),_0x7f581=null;_0x2d9fbc[_0xbbc17b('0x1e7c')]&&(_0x7f581=_0x32d445()[_0xbbc17b('0xf15')](_0x2d9fbc[_0xbbc17b('0x3c1')],{'name':_0x2d9fbc[_0xbbc17b('0x1e7c')][_0xbbc17b('0x1318')]}));if(_0x7f581&&!_0x32d445()[_0xbbc17b('0x201a')](_0xf353cd,['id',_0x7f581['id']])){var _0x26429c=_0x32d445()[_0xbbc17b('0xf15')](_0x2d9fbc[_0xbbc17b('0x3c1')],{'id':_0x7f581['id']});_0x26429c[_0xbbc17b('0x1e9d')]=![],_0xf353cd[_0xbbc17b('0xb76')](_0x26429c);}_0x2d9fbc[_0xbbc17b('0x3c1')]=_0xf353cd;});}})['catch'](function(_0xffb9c9){var _0x301520=_0x4291ea;_0x4abe62[_0x301520('0x8c8')]({'title':_0xffb9c9[_0x301520('0x2833')]?_0x301520('0x27f2')+_0xffb9c9['status']+_0x301520('0x1b7c')+_0xffb9c9[_0x301520('0x1fd7')]:_0x301520('0x12ed'),'msg':_0xffb9c9[_0x301520('0x11d0')]?JSON[_0x301520('0x3ad')](_0xffb9c9[_0x301520('0x11d0')]):_0xffb9c9['toString']()});});function _0x31d9d2(_0x1464c9,_0x2dec0c){var _0x3b9f85=_0x4291ea;_0x1f5034[_0x3b9f85('0x26b2')]({'controller':_0x3b9f85('0x3fb'),'controllerAs':'vm','templateUrl':_0x14b288,'parent':angular['element'](_0x372726[_0x3b9f85('0x19b2')]),'targetEvent':_0x2dec0c,'clickOutsideToClose':!![],'locals':{'telephone':_0x1464c9,'setting':_0x29c539,'telephones':_0x2d9fbc['telephones']?_0x2d9fbc[_0x3b9f85('0x2059')][_0x3b9f85('0x16a7')]:[],'crudPermissions':_0x2d9fbc[_0x3b9f85('0xb3d')]}});}function _0x5a042f(){var _0x2a6ce2=_0x4291ea;_0x4de231['go'](_0x2a6ce2('0x1201'),{},{'reload':_0x2a6ce2('0x1201')});}function _0x2f7682(){var _0xac0ea4=_0x4291ea;_0x46fb99['user'][_0xac0ea4('0xa70')]({'id':_0x2d9fbc['telephone']['id']},_0x2d9fbc[_0xac0ea4('0x1e7c')])[_0xac0ea4('0xe59')][_0xac0ea4('0xe19')](function(){var _0x27e62e=_0xac0ea4;_0x4abe62[_0x27e62e('0x425')]({'title':_0x27e62e('0x180d'),'msg':_0x2d9fbc[_0x27e62e('0x1e7c')]['name']?_0x2d9fbc['telephone'][_0x27e62e('0x2623')]+_0x27e62e('0x283b'):''});})[_0xac0ea4('0x223b')](function(_0xeafa37){var _0x3fa1c3=_0xac0ea4;_0x4abe62['error']({'title':_0xeafa37[_0x3fa1c3('0x2833')]?'API:'+_0xeafa37[_0x3fa1c3('0x2833')]+'\x20-\x20'+_0xeafa37[_0x3fa1c3('0x1fd7')]:_0x3fa1c3('0x26e1'),'msg':_0xeafa37['data']?JSON['stringify'](_0xeafa37[_0x3fa1c3('0x11d0')]):_0xeafa37[_0x3fa1c3('0x94f')]()});});}}const _0x29df36=_0x1b4d43,_0x108ca6=_0x59426a['p']+_0xb635d2('0x1128');_0x218504[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0x2059'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x218504(_0x10de3c,_0x1b1e0c,_0x4eb851,_0x5dc888,_0x24d446,_0x437426,_0x1b73e6,_0x1da7f6,_0x2f411f,_0x15420a,_0x42413d,_0xf6913f,_0x4b7654,_0x3853e7,_0x234d46,_0xf770a4,_0x431e76){var _0x2b55a4=_0xb635d2,_0x12ceae=this;_0x12ceae[_0x2b55a4('0x5c1')]=_0xf770a4,_0x12ceae[_0x2b55a4('0x22f1')]=_0x431e76,_0x12ceae[_0x2b55a4('0x15a5')]=_0x234d46[_0x2b55a4('0x1ef8')](),_0x12ceae['telephones']=_0x2f411f||{'count':0x0,'rows':[]},_0x12ceae[_0x2b55a4('0x154f')]=_0x15420a,_0x12ceae[_0x2b55a4('0xb59')]=_0x42413d&&_0x42413d[_0x2b55a4('0x148b')]==0x1?_0x42413d[_0x2b55a4('0x16a7')][0x0]:null,_0x12ceae[_0x2b55a4('0xb3d')]=_0x234d46[_0x2b55a4('0xd31')](_0x12ceae[_0x2b55a4('0xb59')]?_0x12ceae['userProfileSection']['crudPermissions']:null),_0x12ceae['table']=_0x2b55a4('0x2059'),_0x12ceae[_0x2b55a4('0x14d6')]='',_0x12ceae[_0x2b55a4('0x190c')]=null,_0x12ceae[_0x2b55a4('0x27f1')]=[],_0x12ceae[_0x2b55a4('0xa16')]={'fields':_0x2b55a4('0x5c2'),'role':_0x2b55a4('0x1e7c'),'sort':_0x2b55a4('0x7e8'),'limit':0xa,'page':0x1},_0x12ceae[_0x2b55a4('0x207b')]=_0x32d445()[_0x2b55a4('0x226f')]([{'option':_0x2b55a4('0x1966'),'value':_0x2b55a4('0x1c33')},{'option':_0x2b55a4('0x127b'),'value':'\x27tcp\x27'},{'option':'ws','value':_0x2b55a4('0x1c4e')},{'option':_0x2b55a4('0x1263'),'value':_0x2b55a4('0xcf8')},{'option':_0x2b55a4('0x16cb'),'value':_0x2b55a4('0x2868')}],function(_0x109df5){var _0x3687d0=_0x2b55a4;return _0x32d445()[_0x3687d0('0x1b42')](_0x109df5['value'],new RegExp('\x27','g'),'');}),_0x12ceae[_0x2b55a4('0x5d3')]=_0x32d445()[_0x2b55a4('0x226f')]([{'option':_0x2b55a4('0x253c'),'value':_0x2b55a4('0x12cd')},{'option':_0x2b55a4('0x481'),'value':_0x2b55a4('0x10b4')},{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'},{'option':_0x2b55a4('0x1045'),'value':'\x27never\x27'},{'option':_0x2b55a4('0x622'),'value':_0x2b55a4('0x7d2')}],function(_0x252bdc){var _0x527613=_0x2b55a4;return _0x32d445()[_0x527613('0x1b42')](_0x252bdc[_0x527613('0x2')],new RegExp('\x27','g'),'');}),_0x12ceae[_0x2b55a4('0xe7d')]=_0x32d445()[_0x2b55a4('0x226f')]([{'option':_0x2b55a4('0xb87'),'value':'\x27ulaw\x27'},{'option':_0x2b55a4('0x171b'),'value':'\x27alaw\x27'},{'option':'gsm','value':'\x27gsm\x27'},{'option':'g722','value':_0x2b55a4('0x1c62')},{'option':'g729','value':_0x2b55a4('0x227f')},{'option':_0x2b55a4('0x2608'),'value':_0x2b55a4('0x21fe')},{'option':'h264','value':_0x2b55a4('0xe40')}],function(_0xf81534){return _0x32d445()['replace'](_0xf81534['value'],new RegExp('\x27','g'),'');}),_0x12ceae[_0x2b55a4('0xdfe')]=_0x32d445()['keyBy']([{'option':_0x2b55a4('0x358'),'value':_0x2b55a4('0x11bd')},{'option':'No','value':'\x27no\x27'},{'option':'Always','value':'\x27always\x27'}],function(_0xc04452){var _0x35ecce=_0x2b55a4;return _0x32d445()[_0x35ecce('0x1b42')](_0xc04452['value'],new RegExp('\x27','g'),'');}),_0x12ceae['arrayencryption']=_0x32d445()[_0x2b55a4('0x226f')]([{'option':_0x2b55a4('0x794'),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'}],function(_0xe190ba){var _0x50f822=_0x2b55a4;return _0x32d445()[_0x50f822('0x1b42')](_0xe190ba[_0x50f822('0x2')],new RegExp('\x27','g'),'');}),_0x12ceae[_0x2b55a4('0x16a0')]=_0x449b66,_0x12ceae['deleteconfirm']=_0x2ded01,_0x12ceae['success']=_0x2dc3a6,_0x12ceae[_0x2b55a4('0x27fc')]=_0x33bf9f,_0x12ceae[_0x2b55a4('0x24b0')]=_0x5e73d3,_0x12ceae[_0x2b55a4('0x2636')]=_0x28f953,_0x12ceae['exportSelectedTelephones']=_0x2447b3,_0x12ceae[_0x2b55a4('0x1a18')]=_0x433c91,_0x12ceae[_0x2b55a4('0x1dce')]=_0x3d2da2,_0x12ceae[_0x2b55a4('0xc5e')]=_0x2caeef;function _0x449b66(_0x1f829c){var _0x4ca406=_0x2b55a4;_0x4eb851['go'](_0x4ca406('0xbf8'),{'id':_0x1f829c['id'],'telephone':_0x1f829c,'crudPermissions':_0x12ceae[_0x4ca406('0xb3d')]});}function _0x2ded01(_0x2bfbc9,_0x155dc1){var _0x193784=_0x2b55a4,_0x1bff00=_0x24d446[_0x193784('0xa5')]()[_0x193784('0x13e4')](_0x193784('0x346')+_0x32d445()[_0x193784('0x1df2')](_0x193784('0x1e7c'))+'?')[_0x193784('0x221c')](_0x193784('0xab2')+(_0x2bfbc9[_0x193784('0x2623')]||_0x193784('0x1e7c'))+_0x193784('0x27bb')+_0x193784('0x21bd'))[_0x193784('0x4d1')](_0x193784('0x187f'))[_0x193784('0x1345')](_0x155dc1)['ok']('OK')['cancel'](_0x193784('0x17'));_0x24d446['show'](_0x1bff00)[_0x193784('0xe19')](function(){_0x28f953(_0x2bfbc9);},function(){var _0x1d7af6=_0x193784;console[_0x1d7af6('0x1fe9')](_0x1d7af6('0x17'));});}var _0x563021=!![],_0x31e26a=0x1;_0x10de3c[_0x2b55a4('0x107')](_0x2b55a4('0x20cb'),function(_0x2912b0,_0x3e3845){var _0x4b25ea=_0x2b55a4;_0x563021?_0x1b73e6(function(){_0x563021=![];}):(!_0x3e3845&&(_0x31e26a=_0x12ceae[_0x4b25ea('0xa16')][_0x4b25ea('0xc08')]),_0x2912b0!==_0x3e3845&&(_0x12ceae[_0x4b25ea('0xa16')][_0x4b25ea('0xc08')]=0x1),!_0x2912b0&&(_0x12ceae[_0x4b25ea('0xa16')][_0x4b25ea('0xc08')]=_0x31e26a),_0x12ceae[_0x4b25ea('0x27fc')]());});function _0x2dc3a6(_0x3613c1){var _0x5b6ff0=_0x2b55a4;_0x12ceae[_0x5b6ff0('0x2059')]=_0x3613c1||{'count':0x0,'rows':[]};}function _0x33bf9f(){var _0x564963=_0x2b55a4;_0x12ceae[_0x564963('0xa16')][_0x564963('0xab0')]=(_0x12ceae[_0x564963('0xa16')][_0x564963('0xc08')]-0x1)*_0x12ceae[_0x564963('0xa16')][_0x564963('0x1b6d')],_0x234d46['hasRole'](_0x564963('0xd14'))?_0x12ceae['promise']=_0xf6913f[_0x564963('0x10c6')][_0x564963('0x22d5')](_0x12ceae[_0x564963('0xa16')],_0x2dc3a6)['$promise']:(_0x12ceae[_0x564963('0xa16')]['id']=_0x12ceae[_0x564963('0x154f')]['id'],_0x12ceae[_0x564963('0xa16')]['section']=_0x564963('0x1f63'),_0x12ceae[_0x564963('0x9c8')]=_0xf6913f['userProfile'][_0x564963('0x14e6')](_0x12ceae['query'],_0x2dc3a6)[_0x564963('0xe59')]);}function _0x5e73d3(_0xf4c707,_0x2d3b12){var _0x35608b=_0x2b55a4;_0x24d446['show']({'controller':_0x35608b('0x17ae'),'controllerAs':'vm','templateUrl':_0x108ca6,'parent':angular[_0x35608b('0x24a1')](_0x437426['body']),'targetEvent':_0xf4c707,'clickOutsideToClose':!![],'locals':{'telephone':_0x2d3b12,'telephones':_0x12ceae[_0x35608b('0x2059')][_0x35608b('0x16a7')],'license':_0x12ceae[_0x35608b('0x5c1')],'setting':_0x12ceae[_0x35608b('0x22f1')],'crudPermissions':_0x12ceae['crudPermissions']}});}function _0x28f953(_0x5a0fa9){var _0x19261f=_0x2b55a4;_0xf6913f[_0x19261f('0x10c6')][_0x19261f('0x229e')]({'id':_0x5a0fa9['id']})[_0x19261f('0xe59')]['then'](function(){var _0x1ab751=_0x19261f;_0x32d445()[_0x1ab751('0xa8b')](_0x12ceae['telephones']['rows'],{'id':_0x5a0fa9['id']}),_0x12ceae[_0x1ab751('0x2059')][_0x1ab751('0x148b')]-=0x1,!_0x12ceae[_0x1ab751('0x2059')][_0x1ab751('0x16a7')][_0x1ab751('0x25ae')]&&_0x12ceae[_0x1ab751('0x27fc')](),_0x3853e7[_0x1ab751('0x425')]({'title':_0x32d445()[_0x1ab751('0x1df2')]('Telephone')+_0x1ab751('0x1219'),'msg':_0x5a0fa9[_0x1ab751('0x2623')]?_0x5a0fa9[_0x1ab751('0x2623')]+_0x1ab751('0x2182'):''});})[_0x19261f('0x223b')](function(_0x5c253b){var _0x54829f=_0x19261f;if(_0x5c253b[_0x54829f('0x11d0')]&&_0x5c253b[_0x54829f('0x11d0')][_0x54829f('0xcd2')]&&_0x5c253b[_0x54829f('0x11d0')][_0x54829f('0xcd2')]['length']){_0x12ceae[_0x54829f('0xcd2')]=_0x5c253b['data'][_0x54829f('0xcd2')]||[{'message':_0x5c253b[_0x54829f('0x94f')](),'type':'SYSTEM:DELETEuser'}];for(var _0x45b2d5=0x0;_0x45b2d5<_0x5c253b[_0x54829f('0x11d0')][_0x54829f('0xcd2')][_0x54829f('0x25ae')];_0x45b2d5++){_0x3853e7[_0x54829f('0x8c8')]({'title':_0x5c253b[_0x54829f('0x11d0')][_0x54829f('0xcd2')][_0x45b2d5][_0x54829f('0x62e')],'msg':_0x5c253b[_0x54829f('0x11d0')][_0x54829f('0xcd2')][_0x45b2d5]['message']});}}else _0x3853e7[_0x54829f('0x8c8')]({'title':_0x5c253b['status']?'API:'+_0x5c253b['status']+_0x54829f('0x1b7c')+_0x5c253b[_0x54829f('0x1fd7')]:_0x54829f('0x1a98'),'msg':_0x5c253b[_0x54829f('0x11d0')]?JSON[_0x54829f('0x3ad')](_0x5c253b[_0x54829f('0x11d0')][_0x54829f('0x27e8')]):_0x5c253b['message']||_0x5c253b[_0x54829f('0x94f')]()});});}function _0x2447b3(){var _0x1c2210=_0x2b55a4,_0x5a6ea4=angular[_0x1c2210('0x89')](_0x12ceae['selectedTelephones']);return _0x12ceae[_0x1c2210('0x27f1')]=[],_0x5a6ea4;}function _0x433c91(_0x568d80){var _0x57feec=_0x2b55a4,_0x75901e=_0x24d446[_0x57feec('0xa5')]()[_0x57feec('0x13e4')](_0x57feec('0x24b1'))[_0x57feec('0x221c')](_0x57feec('0xab2')+_0x12ceae[_0x57feec('0x27f1')]['length']+'\x20selected
'+_0x57feec('0x21bd'))[_0x57feec('0x4d1')](_0x57feec('0x1ac8'))[_0x57feec('0x1345')](_0x568d80)['ok']('OK')['cancel'](_0x57feec('0x17'));_0x24d446[_0x57feec('0x26b2')](_0x75901e)[_0x57feec('0xe19')](function(){var _0xa178fd=_0x57feec;_0x12ceae[_0xa178fd('0x27f1')][_0xa178fd('0x1d7e')](function(_0x39ac97){_0x28f953(_0x39ac97);}),_0x12ceae[_0xa178fd('0x27f1')]=[];});}function _0x3d2da2(){var _0x564dda=_0x2b55a4;_0x12ceae[_0x564dda('0x27f1')]=[];}function _0x2caeef(){var _0x59c4a4=_0x2b55a4;_0x12ceae[_0x59c4a4('0x27f1')]=_0x12ceae[_0x59c4a4('0x2059')]['rows'];}}const _0x2c18be=_0x218504;_0xb5127f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0xa21'),'userProfile',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0xb5127f(_0x1e444e,_0x31222f,_0x111e89,_0x3a1d83,_0x51653a,_0x41266f,_0x36b7c6,_0x9079bf,_0x759714,_0x1073c3,_0x1b0f7f,_0x16bcf3,_0x1aa89b,_0x12f39b){var _0x189208=_0xb635d2,_0xbb0820=this;_0xbb0820[_0x189208('0x15a5')]=_0x1b0f7f['getCurrentUser'](),_0xbb0820['errors']=[],_0xbb0820[_0x189208('0x22f1')]=_0x1aa89b,_0xbb0820['license']=_0x16bcf3,_0xbb0820[_0x189208('0xb3d')]=_0x12f39b,_0xbb0820['hasModulePermissions']={},_0xbb0820['passwordPattern']=_0xbb0820[_0x189208('0x22f1')]&&_0xbb0820['setting'][_0x189208('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbb0820['title']=_0x189208('0x1b6'),_0xbb0820['userProfile']=angular[_0x189208('0x89')](_0x759714),_0xbb0820[_0x189208('0xa21')]=_0x9079bf,_0xbb0820['newUserProfile']=![];!_0xbb0820[_0x189208('0x154f')]&&(_0xbb0820[_0x189208('0x154f')]={'crudPermissions':['r']},_0xbb0820[_0x189208('0x13e4')]=_0x189208('0xa24'),_0xbb0820[_0x189208('0x11c')]=!![]);_0xbb0820['addNewUserProfile']=_0x5eeb0b,_0xbb0820['saveUserProfile']=_0x2a1271,_0xbb0820['deleteUserProfile']=_0x1e433a,_0xbb0820[_0x189208('0x2635')]=_0x691199,_0xbb0820[_0x189208('0x2584')]=_0x5c11f5;function _0x5eeb0b(){var _0x3756b2=_0x189208;_0xbb0820[_0x3756b2('0xcd2')]=[],_0x1073c3[_0x3756b2('0x154f')][_0x3756b2('0xe5e')](_0xbb0820['userProfile'])[_0x3756b2('0xe59')][_0x3756b2('0xe19')](function(_0x53a551){var _0x41a007=_0x3756b2;_0xc5c42(_0x53a551),_0xbb0820[_0x41a007('0xa21')][_0x41a007('0x14c9')](_0x53a551[_0x41a007('0x250e')]()),_0x36b7c6[_0x41a007('0x425')]({'title':_0x41a007('0x1a21'),'msg':_0xbb0820[_0x41a007('0x154f')][_0x41a007('0x2623')]?_0xbb0820[_0x41a007('0x154f')][_0x41a007('0x2623')]+_0x41a007('0x105f'):''}),_0x5c11f5(_0x53a551);})[_0x3756b2('0x223b')](function(_0x263c9f){var _0x32c25f=_0x3756b2;if(_0x263c9f[_0x32c25f('0x11d0')]&&_0x263c9f[_0x32c25f('0x11d0')][_0x32c25f('0xcd2')]&&_0x263c9f[_0x32c25f('0x11d0')][_0x32c25f('0xcd2')][_0x32c25f('0x25ae')]){_0xbb0820['errors']=_0x263c9f[_0x32c25f('0x11d0')][_0x32c25f('0xcd2')]||[{'message':_0x263c9f[_0x32c25f('0x94f')](),'type':_0x32c25f('0xccf')}];for(var _0x7078a=0x0;_0x7078a<_0x263c9f[_0x32c25f('0x11d0')][_0x32c25f('0xcd2')]['length'];_0x7078a+=0x1){_0x36b7c6['error']({'title':_0x263c9f[_0x32c25f('0x11d0')][_0x32c25f('0xcd2')][_0x7078a][_0x32c25f('0x62e')],'msg':_0x263c9f[_0x32c25f('0x11d0')]['errors'][_0x7078a]['message']});}}else _0x36b7c6[_0x32c25f('0x8c8')]({'title':_0x263c9f[_0x32c25f('0x2833')]?_0x32c25f('0x27f2')+_0x263c9f['status']+'\x20-\x20'+_0x263c9f[_0x32c25f('0x1fd7')]:_0x32c25f('0xccf'),'msg':_0x263c9f[_0x32c25f('0x11d0')]?JSON['stringify'](_0x263c9f[_0x32c25f('0x11d0')][_0x32c25f('0x27e8')]):_0x263c9f[_0x32c25f('0x94f')]()});});}function _0x2a1271(){var _0x45937a=_0x189208;_0xbb0820[_0x45937a('0xcd2')]=[],_0x1073c3[_0x45937a('0x154f')]['update']({'id':_0xbb0820[_0x45937a('0x154f')]['id']},_0xbb0820['userProfile'])[_0x45937a('0xe59')][_0x45937a('0xe19')](function(_0x562381){var _0x2eba3b=_0x45937a,_0x474d42=_0x32d445()[_0x2eba3b('0xf15')](_0xbb0820[_0x2eba3b('0xa21')],{'id':_0x562381['id']});_0x474d42&&_0x32d445()[_0x2eba3b('0x1d8')](_0x474d42,_0x32d445()[_0x2eba3b('0xed5')](_0x562381[_0x2eba3b('0x250e')](),_0x32d445()[_0x2eba3b('0x1234')](_0x474d42))),_0x36b7c6[_0x2eba3b('0x425')]({'title':'UserProfile\x20properly\x20saved!','msg':_0xbb0820[_0x2eba3b('0x154f')][_0x2eba3b('0x2623')]?_0xbb0820[_0x2eba3b('0x154f')][_0x2eba3b('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x5c11f5(_0x562381);})['catch'](function(_0x361ce9){var _0x2298ad=_0x45937a;if(_0x361ce9[_0x2298ad('0x11d0')]&&_0x361ce9[_0x2298ad('0x11d0')]['errors']&&_0x361ce9['data'][_0x2298ad('0xcd2')]['length']){_0xbb0820[_0x2298ad('0xcd2')]=_0x361ce9[_0x2298ad('0x11d0')][_0x2298ad('0xcd2')]||[{'message':_0x361ce9[_0x2298ad('0x94f')](),'type':_0x2298ad('0xb61')}];for(var _0x328c53=0x0;_0x328c53<_0x361ce9[_0x2298ad('0x11d0')][_0x2298ad('0xcd2')]['length'];_0x328c53++){_0x36b7c6[_0x2298ad('0x8c8')]({'title':_0x361ce9[_0x2298ad('0x11d0')][_0x2298ad('0xcd2')][_0x328c53][_0x2298ad('0x62e')],'msg':_0x361ce9[_0x2298ad('0x11d0')][_0x2298ad('0xcd2')][_0x328c53][_0x2298ad('0x27e8')]});}}else _0x36b7c6[_0x2298ad('0x8c8')]({'title':_0x361ce9['status']?'API:'+_0x361ce9[_0x2298ad('0x2833')]+_0x2298ad('0x1b7c')+_0x361ce9[_0x2298ad('0x1fd7')]:_0x2298ad('0xb61'),'msg':_0x361ce9['data']?JSON['stringify'](_0x361ce9[_0x2298ad('0x11d0')][_0x2298ad('0x27e8')]):_0x361ce9[_0x2298ad('0x94f')]()});});}function _0x1e433a(_0xadd351){var _0x5b6caf=_0x189208;_0xbb0820[_0x5b6caf('0xcd2')]=[];var _0x1e6fdc=_0x3a1d83[_0x5b6caf('0xa5')]()[_0x5b6caf('0x13e4')](_0x5b6caf('0x24d0'))[_0x5b6caf('0xd0')]('The\x20userProfile\x20will\x20be\x20deleted.')[_0x5b6caf('0x4d1')](_0x5b6caf('0x1a55'))['ok'](_0x5b6caf('0x2198'))['cancel'](_0x5b6caf('0x8a3'))['targetEvent'](_0xadd351);_0x3a1d83[_0x5b6caf('0x26b2')](_0x1e6fdc)[_0x5b6caf('0xe19')](function(){var _0x1ca595=_0x5b6caf;_0x1073c3[_0x1ca595('0x154f')][_0x1ca595('0x229e')]({'id':_0xbb0820[_0x1ca595('0x154f')]['id']})['$promise']['then'](function(){var _0x121603=_0x1ca595;_0x32d445()['remove'](_0xbb0820[_0x121603('0xa21')],{'id':_0xbb0820[_0x121603('0x154f')]['id']}),_0x36b7c6['success']({'title':_0x121603('0x18aa'),'msg':(_0xbb0820[_0x121603('0x154f')]['name']||_0x121603('0x154f'))+_0x121603('0x2182')}),_0x5c11f5(_0xbb0820[_0x121603('0x154f')]);})[_0x1ca595('0x223b')](function(_0x1a5f3a){var _0x5bde59=_0x1ca595;if(_0x1a5f3a['data']&&_0x1a5f3a[_0x5bde59('0x11d0')][_0x5bde59('0xcd2')]&&_0x1a5f3a[_0x5bde59('0x11d0')][_0x5bde59('0xcd2')][_0x5bde59('0x25ae')]){_0xbb0820[_0x5bde59('0xcd2')]=_0x1a5f3a['data'][_0x5bde59('0xcd2')]||[{'message':_0x1a5f3a[_0x5bde59('0x94f')](),'type':_0x5bde59('0xeea')}];for(var _0x5b6f7e=0x0;_0x5b6f7e<_0x1a5f3a[_0x5bde59('0x11d0')]['errors'][_0x5bde59('0x25ae')];_0x5b6f7e++){_0x36b7c6['error']({'title':_0x1a5f3a[_0x5bde59('0x11d0')][_0x5bde59('0xcd2')][_0x5b6f7e]['type'],'msg':_0x1a5f3a['data'][_0x5bde59('0xcd2')][_0x5b6f7e]['message']});}}else _0x36b7c6[_0x5bde59('0x8c8')]({'title':_0x1a5f3a[_0x5bde59('0x2833')]?'API:'+_0x1a5f3a[_0x5bde59('0x2833')]+_0x5bde59('0x1b7c')+_0x1a5f3a[_0x5bde59('0x1fd7')]:_0x5bde59('0xeea'),'msg':_0x1a5f3a[_0x5bde59('0x11d0')]?JSON[_0x5bde59('0x3ad')](_0x1a5f3a[_0x5bde59('0x11d0')][_0x5bde59('0x27e8')]):_0x1a5f3a[_0x5bde59('0x27e8')]||_0x1a5f3a[_0x5bde59('0x94f')]()});});},function(){});}function _0xc5c42(_0x5ceda0){var _0x3a5648=_0x189208,_0x4b38cf=[];_0x5ceda0['crudPermissions'][_0x3a5648('0x1d7e')](function(_0x157a29){var _0x806d01=_0x3a5648,_0x490d3d;switch(_0x157a29){case'r':_0x490d3d='READ_PERMISSION';break;case'e':_0x490d3d=_0x806d01('0x147a');break;case'd':_0x490d3d=_0x806d01('0x527');break;}_0x4b38cf[_0x806d01('0xb76')](_0x41266f[_0x806d01('0x2159')]('STAFF.'+_0x490d3d));}),_0x5ceda0[_0x3a5648('0x1609')]=_0x4b38cf[_0x3a5648('0x1537')](',\x20');}function _0x691199(_0xddfa91){return _0xddfa91===null?undefined:new Date(_0xddfa91);}function _0x5c11f5(_0x2028ee){_0x3a1d83['hide'](_0x2028ee);}}const _0x411479=_0xb5127f;_0x19742a[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0xeb6'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'userProfile',_0xb635d2('0xa21'),_0xb635d2('0x2493')];function _0x19742a(_0x4ceb81,_0x36be63,_0x58c7a0,_0x1c792d,_0x3f115a,_0x367f22,_0x15f020){var _0x36282b=_0xb635d2,_0x3bb878=this;_0x3bb878['newUserProfile']=!![],_0x3bb878[_0x36282b('0x154f')]=angular[_0x36282b('0x89')](_0x3f115a),_0x3bb878['userProfiles']=_0x367f22,_0x3bb878[_0x36282b('0x13e4')]=_0x15f020[_0x36282b('0x2159')](_0x36282b('0x1bff'));_0x3f115a&&_0x3f115a[_0x36282b('0x2623')]&&(_0x3bb878[_0x36282b('0x13e4')]+=':\x20'+_0x3f115a['name']);_0x3bb878[_0x36282b('0xc9c')]=_0x90cd0b,_0x3bb878['closeDialog']=_0x270a53;function _0x90cd0b(){var _0x3544eb=_0x36282b;return _0x1c792d[_0x3544eb('0x154f')][_0x3544eb('0x2384')]({'id':_0x3f115a['id']},_0x3bb878[_0x3544eb('0x154f')])[_0x3544eb('0xe59')][_0x3544eb('0xe19')](function(_0x586d5b){var _0x4499ad=_0x3544eb;_0x19a9e8(_0x586d5b),_0x3bb878[_0x4499ad('0xa21')][_0x4499ad('0x14c9')](_0x586d5b[_0x4499ad('0x250e')]()),_0x58c7a0[_0x4499ad('0x425')]({'title':_0x4499ad('0x214a'),'msg':_0x3bb878[_0x4499ad('0x154f')][_0x4499ad('0x2623')]?_0x3bb878[_0x4499ad('0x154f')][_0x4499ad('0x2623')]+_0x4499ad('0x86b'):''}),_0x36be63['go'](_0x4499ad('0x14fe'),{'id':_0x586d5b['id']}),_0x270a53(_0x586d5b);})[_0x3544eb('0x223b')](function(_0xdd8935){var _0x24aa57=_0x3544eb;if(_0xdd8935['data']&&_0xdd8935[_0x24aa57('0x11d0')][_0x24aa57('0xcd2')]&&_0xdd8935[_0x24aa57('0x11d0')]['errors'][_0x24aa57('0x25ae')]){_0x3bb878['errors']=_0xdd8935[_0x24aa57('0x11d0')]['errors']||[{'message':_0xdd8935[_0x24aa57('0x94f')](),'type':'api.userProfile.clone'}];for(var _0x17e4ac=0x0;_0x17e4ac<_0xdd8935[_0x24aa57('0x11d0')][_0x24aa57('0xcd2')][_0x24aa57('0x25ae')];_0x17e4ac+=0x1){_0x58c7a0['error']({'title':_0xdd8935[_0x24aa57('0x11d0')][_0x24aa57('0xcd2')][_0x17e4ac][_0x24aa57('0x62e')],'msg':_0xdd8935[_0x24aa57('0x11d0')][_0x24aa57('0xcd2')][_0x17e4ac][_0x24aa57('0x27e8')]});}}else _0x58c7a0[_0x24aa57('0x8c8')]({'title':_0xdd8935['status']?'API:'+_0xdd8935[_0x24aa57('0x2833')]+_0x24aa57('0x1b7c')+_0xdd8935[_0x24aa57('0x1fd7')]:'api.userProfile.clone','msg':_0xdd8935['data']?JSON[_0x24aa57('0x3ad')](_0xdd8935[_0x24aa57('0x11d0')]['message']):_0xdd8935['toString']()});});}function _0x19a9e8(_0x103c4d){var _0xd48a66=_0x36282b,_0x1f71f6=[];_0x103c4d[_0xd48a66('0xb3d')]['forEach'](function(_0x34513f){var _0x117603=_0xd48a66,_0x5c01ea;switch(_0x34513f){case'r':_0x5c01ea=_0x117603('0x94e');break;case'e':_0x5c01ea=_0x117603('0x147a');break;case'd':_0x5c01ea=_0x117603('0x527');break;}_0x1f71f6[_0x117603('0xb76')](_0x15f020['instant'](_0x117603('0x2706')+_0x5c01ea));}),_0x103c4d[_0xd48a66('0x1609')]=_0x1f71f6[_0xd48a66('0x1537')](',\x20');}function _0x270a53(_0x337ad5){var _0xb2de66=_0x36282b;_0x4ceb81[_0xb2de66('0x11ed')](_0x337ad5);}}const _0x45952b=_0x19742a,_0x533d76=_0x59426a['p']+_0xb635d2('0xda1');_0x25600a['$inject']=[_0xb635d2('0x1728'),_0xb635d2('0x1c9f'),'$translate','$q',_0xb635d2('0xffc'),_0xb635d2('0x1631'),_0xb635d2('0x2730'),'toasty'];function _0x25600a(_0x58bf1d,_0x465137,_0x18c470,_0x4260a7,_0x5bc967,_0x6cc0a7,_0x182a40,_0x3f6090){var _0x26f38e=_0xb635d2,_0x4bb08a=this;_0x4bb08a['userProfile']={},_0x4bb08a['license']={},_0x4bb08a[_0x26f38e('0x155b')]=_0x6cc0a7[_0x26f38e('0x755')](),_0x4bb08a[_0x26f38e('0x1be3')]=_0x4bb08a[_0x26f38e('0x155b')][0x0][_0x26f38e('0x1977')],_0x4bb08a[_0x26f38e('0x1192')]=[{'id':0x0,'name':_0x26f38e('0x170c'),'color':_0x26f38e('0x11fc'),'info':_0x26f38e('0x20b5'),'tag':_0x26f38e('0x2296')},{'id':0x1,'name':'Partially\x20Enabled','color':_0x26f38e('0x1b26'),'info':_0x26f38e('0x15b4'),'tag':'partial'},{'id':0x2,'name':_0x26f38e('0x2373'),'color':_0x26f38e('0xd62'),'info':_0x26f38e('0x13f6'),'tag':_0x26f38e('0x1ebc')},{'id':0x3,'name':'Unlicensed','color':'red-A700-bg','info':_0x26f38e('0x11af'),'tag':_0x26f38e('0x1ccc')},{'id':0x4,'name':_0x26f38e('0x114f'),'color':_0x26f38e('0x5f4'),'info':_0x26f38e('0xdf9'),'tag':_0x26f38e('0x10df')}],_0x4bb08a[_0x26f38e('0x10f0')]=[{'title':_0x26f38e('0x15c2'),'translate':'DASHBOARDS.DASHBOARDS','id':0x64}],_0x4bb08a[_0x26f38e('0x15f9')]=_0x1ddc73,_0x4bb08a[_0x26f38e('0x1776')]=_0x4d10ca,_0x4bb08a[_0x26f38e('0xc18')]=_0x199500,_0x4bb08a['checkSectionResources']=_0x178d14;function _0x1ddc73(_0xfb08d9,_0x3eff15){var _0x28f892=_0x26f38e;_0x4bb08a[_0x28f892('0x154f')]=_0xfb08d9,_0x4bb08a[_0x28f892('0x5c1')]=_0x3eff15;}function _0x4d10ca(_0x30eb8d){var _0x5880e1=_0x26f38e,_0x1a8d19=typeof _0x30eb8d['permissions']!==_0x5880e1('0x1143')&&!_0x30eb8d[_0x5880e1('0x27e7')]['association']?!![]:![],_0x15110f=_0x30eb8d[_0x5880e1('0x13e4')]==='Marketplace'?_0x5880e1('0x2001'):_0x30eb8d[_0x5880e1('0x13e4')];if(_0x30eb8d[_0x5880e1('0x2833')][_0x5880e1('0x2623')]!==_0x5880e1('0x170c')){var _0x55f99d=[];if(!_0x1a8d19){var _0x385573=_0x465137[_0x5880e1('0xa5')]({'skipHide':!![]})['title'](_0x5880e1('0x830'))['textContent'](_0x18c470['instant'](_0x5880e1('0x1df1'),{'sectionName':_0x18c470[_0x5880e1('0x2159')](_0x30eb8d[_0x5880e1('0x193b')])}))[_0x5880e1('0x4d1')]('Warning')['ok'](_0x18c470['instant'](_0x5880e1('0x1686')))[_0x5880e1('0x2c1')](_0x18c470[_0x5880e1('0x2159')](_0x5880e1('0x1404')));_0x465137[_0x5880e1('0x26b2')](_0x385573)[_0x5880e1('0xe19')](function(){var _0x2dd9da=_0x5880e1;switch(_0x15110f){case'Dashboards':_0x32d445()[_0x2dd9da('0x65a')](_0x4bb08a[_0x2dd9da('0x10f0')],function(_0x3470d3){var _0x24e090=_0x2dd9da;_0x55f99d[_0x24e090('0xb76')]({'category':_0x15110f,'sectionId':_0x3470d3['id'],'name':_0x3470d3['title'],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x32d445()[_0x24e090('0x65a')](_0x4bb08a[_0x24e090('0x154f')][_0x24e090('0xb3d')])[_0x24e090('0x1537')]('')});});break;default:_0x32d445()[_0x2dd9da('0x65a')](_0x30eb8d[_0x2dd9da('0x1977')],function(_0x5a1878){var _0xc0bece=_0x2dd9da,_0x423c5b=typeof _0x5a1878[_0xc0bece('0x27e7')]!='undefined'&&_0x5a1878[_0xc0bece('0x27e7')][_0xc0bece('0x1c21')]?!![]:![];if(!_0x423c5b){var _0xcd61eb=_0x5a1878[_0xc0bece('0x13e4')];switch(_0x15110f){case _0xc0bece('0x1ae3'):_0xcd61eb=_0xcd61eb===_0xc0bece('0x9af')?'SquareProjects':_0xcd61eb;break;}_0x55f99d['push']({'category':_0x15110f,'sectionId':_0x5a1878['id'],'name':_0xcd61eb,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x32d445()['map'](_0x4bb08a[_0xc0bece('0x154f')]['crudPermissions'])['join']('')});}});break;}return _0x5bc967[_0x2dd9da('0x154f')][_0x2dd9da('0x2702')]({'id':_0x4bb08a[_0x2dd9da('0x154f')]['id']},_0x55f99d)[_0x2dd9da('0xe59')]['then'](function(){var _0xa9907e=_0x2dd9da;_0x30eb8d[_0xa9907e('0x2833')]=_0x44cc48(_0x30eb8d,_0xa9907e('0x2296')),_0x3f6090['success']({'title':_0x18c470[_0xa9907e('0x2159')](_0xa9907e('0x6bc'),{'sectionName':_0x18c470[_0xa9907e('0x2159')](_0x30eb8d[_0xa9907e('0x193b')]),'userProfileName':_0x4bb08a['userProfile']['name']}),'msg':_0x18c470[_0xa9907e('0x2159')](_0xa9907e('0x1246'),{'sectionName':_0x18c470[_0xa9907e('0x2159')](_0x30eb8d[_0xa9907e('0x193b')]),'userProfileName':_0x4bb08a[_0xa9907e('0x154f')][_0xa9907e('0x2623')]})});});})[_0x5880e1('0x223b')](function(_0x7c86a1){var _0x14541e=_0x5880e1;_0x7c86a1?_0x3f6090[_0x14541e('0x8c8')]({'title':_0x7c86a1[_0x14541e('0x2833')]?'API:'+_0x7c86a1['status']+_0x14541e('0x1b7c')+_0x7c86a1[_0x14541e('0x1fd7')]:_0x14541e('0x1689'),'msg':_0x7c86a1['status']?JSON[_0x14541e('0x3ad')](_0x7c86a1[_0x14541e('0x11d0')]):_0x7c86a1['toString']()}):_0x30eb8d['status']=_0x44cc48(_0x30eb8d,_0x30eb8d['status'][_0x14541e('0x2037')]);});}else return _0x55f99d['push']({'category':_0x15110f,'sectionId':_0x30eb8d['id'],'name':_0x15110f,'enabled':!![],'crudPermissions':'red'}),_0x5bc967[_0x5880e1('0x154f')][_0x5880e1('0x2702')]({'id':_0x4bb08a[_0x5880e1('0x154f')]['id']},_0x55f99d)[_0x5880e1('0xe59')][_0x5880e1('0xe19')](function(){var _0xf3aa06=_0x5880e1;_0x30eb8d[_0xf3aa06('0x2833')]=_0x44cc48(_0x30eb8d,_0xf3aa06('0x2296')),_0x3f6090['success']({'title':_0x18c470['instant']('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE',{'sectionName':_0x18c470[_0xf3aa06('0x2159')](_0x30eb8d['translate']),'userProfileName':_0x4bb08a[_0xf3aa06('0x154f')]['name']}),'msg':_0x18c470[_0xf3aa06('0x2159')](_0xf3aa06('0x1ca'),{'sectionName':_0x18c470[_0xf3aa06('0x2159')](_0x30eb8d[_0xf3aa06('0x193b')]),'userProfileName':_0x4bb08a[_0xf3aa06('0x154f')]['name']})});})['catch'](function(_0x4e91d1){var _0x359294=_0x5880e1;_0x3f6090['error']({'title':_0x4e91d1['status']?_0x359294('0x27f2')+_0x4e91d1[_0x359294('0x2833')]+_0x359294('0x1b7c')+_0x4e91d1[_0x359294('0x1fd7')]:_0x359294('0x1689'),'msg':_0x4e91d1[_0x359294('0x2833')]?JSON[_0x359294('0x3ad')](_0x4e91d1[_0x359294('0x11d0')]):_0x4e91d1['toString']()});});}else{if(_0x30eb8d[_0x5880e1('0x2833')]['name']===_0x5880e1('0x170c')){_0x30eb8d[_0x5880e1('0x2833')]=_0x44cc48(_0x30eb8d,'disabled');var _0xa88e0=[];switch(_0x15110f){case _0x5880e1('0x1497'):case'Help':_0xa88e0=[_0x30eb8d['id']];break;case _0x5880e1('0x15c2'):_0xa88e0=_0x32d445()[_0x5880e1('0x65a')](_0x4bb08a[_0x5880e1('0x10f0')],function(_0x4c906e){return _0x4c906e['id'];});break;default:_0xa88e0=_0x32d445()[_0x5880e1('0x65a')](_0x30eb8d[_0x5880e1('0x1977')],function(_0x44d15b){return _0x44d15b['id'];});break;}return _0x5bc967[_0x5880e1('0x154f')]['removeSections']({'id':_0x4bb08a[_0x5880e1('0x154f')]['id'],'ids':_0xa88e0})['$promise'][_0x5880e1('0xe19')](function(){var _0x2f2415=_0x5880e1;_0x3f6090['success']({'title':_0x18c470[_0x2f2415('0x2159')]('STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_TITLE',{'sectionName':_0x18c470[_0x2f2415('0x2159')](_0x30eb8d[_0x2f2415('0x193b')]),'userProfileName':_0x4bb08a[_0x2f2415('0x154f')][_0x2f2415('0x2623')]}),'msg':_0x18c470['instant'](_0x2f2415('0x261a'),{'sectionName':_0x18c470['instant'](_0x30eb8d[_0x2f2415('0x193b')]),'userProfileName':_0x4bb08a['userProfile'][_0x2f2415('0x2623')]})});})[_0x5880e1('0x223b')](function(_0x28c469){var _0x56661c=_0x5880e1;_0x3f6090[_0x56661c('0x8c8')]({'title':_0x28c469['status']?_0x56661c('0x27f2')+_0x28c469['status']+_0x56661c('0x1b7c')+_0x28c469[_0x56661c('0x1fd7')]:_0x56661c('0x133a'),'msg':_0x28c469['status']?JSON[_0x56661c('0x3ad')](_0x28c469[_0x56661c('0x11d0')]):_0x28c469[_0x56661c('0x94f')]()});});}}}function _0x199500(_0x108325,_0x277cde){var _0x4d3216=_0x26f38e,_0x4e56ce=_0x465137[_0x4d3216('0x26b2')]({'controller':'UserProfilepermissionsmanageController','controllerAs':'vm','templateUrl':_0x533d76,'parent':angular['element'](_0x58bf1d[_0x4d3216('0x19b2')]),'targetEvent':_0x277cde,'clickOutsideToClose':![],'locals':{'userProfile':_0x4bb08a[_0x4d3216('0x154f')],'userProfiles':[],'section':_0x108325}});_0x4e56ce[_0x4d3216('0xe19')](function(){_0x178d14(_0x108325);});}function _0x44cc48(_0x5c1956,_0x3509e7){var _0x402c43=_0x26f38e;_0x5c1956[_0x402c43('0x229a')]=_0x2be32a(_0x3509e7);switch(_0x3509e7){case _0x402c43('0x2296'):return _0x32d445()[_0x402c43('0xf15')](_0x4bb08a[_0x402c43('0x1192')],[_0x402c43('0x2037'),_0x402c43('0x2296')]);case'partial':return _0x32d445()[_0x402c43('0xf15')](_0x4bb08a['statusList'],[_0x402c43('0x2037'),_0x402c43('0xd30')]);case _0x402c43('0x1ebc'):return _0x32d445()[_0x402c43('0xf15')](_0x4bb08a[_0x402c43('0x1192')],[_0x402c43('0x2037'),_0x402c43('0x1ebc')]);case _0x402c43('0x1ccc'):return _0x32d445()[_0x402c43('0xf15')](_0x4bb08a[_0x402c43('0x1192')],[_0x402c43('0x2037'),_0x402c43('0x1ccc')]);case _0x402c43('0x10df'):return _0x32d445()[_0x402c43('0xf15')](_0x4bb08a[_0x402c43('0x1192')],[_0x402c43('0x2037'),_0x402c43('0x10df')]);default:return _0x32d445()[_0x402c43('0xf15')](_0x4bb08a[_0x402c43('0x1192')],[_0x402c43('0x2037'),_0x402c43('0x10df')]);}}function _0x168aac(_0x1c1220){return _0x4260a7(function(_0xfd7761,_0x41abe7){var _0x4d7b87=a0_0x5325,_0x15144a=typeof _0x1c1220[_0x4d7b87('0x4e')]!=='undefined'&&_0x32d445()[_0x4d7b87('0x1c43')](_0x1c1220[_0x4d7b87('0x622')],_0x4d7b87('0x9'));_0x15144a?_0x32d9be(_0x1c1220)[_0x4d7b87('0xe19')](function(_0x3796d1){_0xfd7761(_0x3796d1);})[_0x4d7b87('0x223b')](function(_0x4e8a11){_0x41abe7(_0x4e8a11);}):_0x429023(_0x1c1220)[_0x4d7b87('0xe19')](function(_0x35d590){_0xfd7761(_0x35d590);})[_0x4d7b87('0x223b')](function(_0x3949ac){_0x41abe7(_0x3949ac);});});}function _0x32d9be(_0x3362af){return _0x4260a7(function(_0x4b9149,_0x1f0765){var _0x3bfd9d=a0_0x5325,_0x3721de=typeof _0x3362af['channel']!==_0x3bfd9d('0x1143')&&_0x3362af[_0x3bfd9d('0x4e')]==='bull'?'outbound':_0x3bfd9d('0x1a7a');return _0x5bc967[_0x3362af[_0x3bfd9d('0x622')]][_0x3bfd9d('0x22d5')]({'fields':_0x3bfd9d('0xa14'),'channel':_0x3362af['channel']===_0x3bfd9d('0x1ce2')?_0x3bfd9d('0xe74'):_0x3362af['channel'],'type':_0x3721de,'nolimit':!![]})[_0x3bfd9d('0xe59')][_0x3bfd9d('0xe19')](function(_0x4e0c75){_0x4b9149(_0x4e0c75);})[_0x3bfd9d('0x223b')](function(_0x3a822b){_0x1f0765(_0x3a822b);});});}function _0x429023(_0x4d3457){return _0x4260a7(function(_0x4b9dbf,_0x5a4fb7){var _0x520d46=a0_0x5325,_0x163bd3,_0x575f71,_0x80b0bb=![],_0x37839d=![];switch(_0x4d3457[_0x520d46('0x622')]){case _0x520d46('0x1979'):switch(_0x4d3457[_0x520d46('0x13e4')]){case _0x520d46('0x2305'):_0x163bd3=_0x520d46('0x1a7a');break;case _0x520d46('0x18af'):_0x163bd3=_0x520d46('0x1fdf');break;case _0x520d46('0xb7d'):_0x163bd3=_0x520d46('0x1b66');break;}break;case _0x520d46('0x134c'):_0x80b0bb=!![];break;case'disposition':_0x37839d=!![];break;case'user':switch(_0x4d3457[_0x520d46('0x13e4')]){case _0x520d46('0xd61'):_0x575f71=_0x520d46('0x108');break;case'Telephones':_0x575f71='telephone';break;case _0x520d46('0x970'):_0x575f71=_0x520d46('0x10c6');break;}break;}if(_0x4d3457[_0x520d46('0x13e4')]===_0x520d46('0x811')){if(_0x4d3457[_0x520d46('0x30f')])switch(_0x4d3457[_0x520d46('0x30f')]){case _0x520d46('0x206'):_0x4d3457[_0x520d46('0x622')]='analyticDefaultReport';break;case _0x520d46('0x261d'):_0x4d3457['route']=_0x520d46('0x247b');break;}else return _0x5bc967['analyticDefaultReport']['get']({'nolimit':!![]})[_0x520d46('0xe59')]['then'](function(_0x301f60){var _0xdbb4b5=_0x520d46;_0x5bc967[_0xdbb4b5('0x247b')][_0xdbb4b5('0x22d5')]({'nolimit':!![]})[_0xdbb4b5('0xe59')][_0xdbb4b5('0xe19')](function(_0x2006ac){var _0x519f4f=_0xdbb4b5,_0x2c6868=_0x32d445()[_0x519f4f('0x1cca')](_0x301f60[_0x519f4f('0x16a7')],_0x2006ac[_0x519f4f('0x16a7')]);_0x4b9dbf({'count':_0x2c6868[_0x519f4f('0x25ae')],'rows':_0x2c6868[_0x519f4f('0x16a7')]});});})['catch'](function(_0x43d68b){_0x5a4fb7(_0x43d68b);});}return _0x5bc967[_0x4d3457['route']][_0x520d46('0x22d5')]({'role':_0x575f71?_0x575f71:undefined,'type':_0x163bd3?_0x163bd3:undefined,'VoiceExtensionId':_0x163bd3?_0x520d46('0x1046'):undefined,'IntervalId':_0x80b0bb?'null':undefined,'MailAccountId':_0x37839d?_0x520d46('0x1046'):undefined,'FaxAccountId':_0x37839d?'null':undefined,'SmsAccountId':_0x37839d?'null':undefined,'OpenchannelAccountId':_0x37839d?_0x520d46('0x1046'):undefined,'ChatWebsiteId':_0x37839d?_0x520d46('0x1046'):undefined,'WhatsappAccountId':_0x37839d?_0x520d46('0x1046'):undefined,'ListId':_0x37839d?_0x520d46('0x1046'):undefined,'nolimit':!![]})[_0x520d46('0xe59')][_0x520d46('0xe19')](function(_0x5b7113){_0x4b9dbf(_0x5b7113);})['catch'](function(_0x35126c){_0x5a4fb7(_0x35126c);});});}function _0x5d9ef6(_0x58a344,_0x15e6e1){return _0x4260a7(function(_0x10e819,_0x860317){var _0x150e6e=a0_0x5325;_0x5bc967[_0x150e6e('0xd49')][_0x150e6e('0x22d5')]({'sectionId':_0x15e6e1})[_0x150e6e('0xe59')][_0x150e6e('0xe19')](function(_0x46daa1){return _0x168aac(_0x58a344)['then'](function(_0x4717c8){var _0x4dd836=a0_0x5325;return _0x32d445()['differenceBy'](_0x46daa1[_0x4dd836('0x16a7')],_0x4717c8['rows'],'id');});})['then'](function(_0x4f9189){_0x32d445()['isEmpty'](_0x4f9189)?_0x10e819():_0x860317();})[_0x150e6e('0x223b')](function(_0x477131){_0x860317(_0x477131);});});}function _0x430c4c(_0xf1ffa0,_0x108c96,_0x1f31ec){var _0x5f3aa8=_0x26f38e,_0x5ddea5=_0xf1ffa0&&_0xf1ffa0[_0x5f3aa8('0x25ae')]>0x0?_0xf1ffa0[0x0]:null;if(!_0x5ddea5)return _0x1f31ec;var _0x4a3042=_0x32d445()[_0x5f3aa8('0xf15')](_0x108c96,[_0x5f3aa8('0x964'),_0x5ddea5['id']]);if(_0x4a3042)return _0x108c96=_0x32d445()['remove'](_0x108c96,[_0x5f3aa8('0x964'),_0x5ddea5['id']]),_0x5d9ef6(_0x5ddea5,_0x4a3042['id'])[_0x5f3aa8('0xe19')](function(){return _0x1f31ec='full',_0x430c4c(_0xf1ffa0['shift'](),_0x108c96,_0x1f31ec);})[_0x5f3aa8('0x223b')](function(_0x266ab7){var _0xe7f9c4=_0x5f3aa8;return _0x4260a7[_0xe7f9c4('0x1337')](_0x266ab7);});}function _0x178d14(_0xda3d98){var _0x59d846=_0x26f38e,_0x3401b9=_0xda3d98[_0x59d846('0x13e4')]===_0x59d846('0x92a')?'AppZone':_0xda3d98[_0x59d846('0x13e4')];if(!_0x4bb08a[_0x59d846('0x5c1')]){_0xda3d98[_0x59d846('0x2833')]=_0x44cc48(_0xda3d98,_0x59d846('0x10df'));return;}typeof _0xda3d98[_0x59d846('0x27e7')]!==_0x59d846('0x1143')&&!_0xda3d98[_0x59d846('0x27e7')][_0x59d846('0x22e')]?_0x5bc967[_0x59d846('0xb59')][_0x59d846('0x22d5')]({'userProfileId':_0x4bb08a[_0x59d846('0x154f')]['id'],'sectionId':_0xda3d98['id']})[_0x59d846('0xe59')]['then'](function(_0x317424){var _0x1c5216=_0x59d846,_0x402b45=_0x317424&&_0x317424[_0x1c5216('0x16a7')]['length']===0x1?_0x317424[_0x1c5216('0x16a7')][0x0]:null,_0x3f4bf8=_0x402b45?_0x1c5216('0x2296'):_0x1c5216('0x1ebc');_0xda3d98[_0x1c5216('0x2833')]=_0x44cc48(_0xda3d98,_0x3f4bf8);}):typeof _0xda3d98[_0x59d846('0x5c1')]!==_0x59d846('0x1143')&&!_0x4bb08a['license'][_0xda3d98[_0x59d846('0x5c1')]]?_0xda3d98[_0x59d846('0x2833')]=_0x44cc48(_0xda3d98,_0x59d846('0x1ccc')):_0x5bc967[_0x59d846('0xb59')][_0x59d846('0x22d5')]({'userProfileId':_0x4bb08a[_0x59d846('0x154f')]['id'],'category':_0x3401b9})[_0x59d846('0xe59')][_0x59d846('0xe19')](function(_0x4591f2){var _0x58fe28=_0x59d846,_0x1ae577=_0x4591f2&&_0x4591f2[_0x58fe28('0x16a7')]&&_0x4591f2[_0x58fe28('0x16a7')][_0x58fe28('0x25ae')]>0x0?_0x4591f2[_0x58fe28('0x16a7')]:[];if(_0xda3d98[_0x58fe28('0x13e4')]===_0x58fe28('0x15c2'))return _0x32d445()[_0x58fe28('0x14b4')](_0x1ae577)?_0x58fe28('0x1ebc'):_0x1ae577[0x0][_0x58fe28('0x11fd')]?_0x58fe28('0x2296'):_0x5bc967[_0x58fe28('0xd49')]['get']({'sectionId':_0x1ae577[0x0]['id'],'resourceId':0x65})[_0x58fe28('0xe59')][_0x58fe28('0xe19')](function(_0x40a83a){var _0x58d77c=_0x58fe28,_0x529b0c=_0x40a83a&&_0x40a83a[_0x58d77c('0x16a7')]?_0x40a83a[_0x58d77c('0x16a7')][0x0]:null;return _0x529b0c?_0x58d77c('0x2296'):'partial';});else{var _0x1f5601=_0x32d445()['filter'](_0xda3d98['children'],function(_0x4a7218){var _0x1210dd=_0x58fe28;return typeof _0x4a7218[_0x1210dd('0x27e7')]!=='undefined'&&_0x4a7218[_0x1210dd('0x27e7')][_0x1210dd('0x1c21')]?undefined:_0x4a7218;});if(_0x1ae577[_0x58fe28('0x25ae')]===_0x1f5601[_0x58fe28('0x25ae')]){if(_0x32d445()[_0x58fe28('0x1ff')](_0x1ae577,[_0x58fe28('0x11fd'),!![]]))return _0x58fe28('0x2296');else{var _0x51e1a6=_0x32d445()[_0x58fe28('0x2891')](_0x1f5601,function(_0x1da291){var _0x2dd07c=_0x58fe28;return typeof _0x1da291[_0x2dd07c('0x27e7')]!=='undefined'&&!_0x1da291['permissions'][_0x2dd07c('0x22e')]?undefined:_0x1da291;});return _0x430c4c(_0x51e1a6,_0x1ae577,_0x58fe28('0xd30'));}}else return _0x1ae577[_0x58fe28('0x25ae')]===0x0?'disabled':_0x58fe28('0xd30');}})[_0x59d846('0xe19')](function(_0xad29e8){var _0x1ef61a=_0x59d846;_0xda3d98[_0x1ef61a('0x2833')]=_0x44cc48(_0xda3d98,_0xad29e8);})[_0x59d846('0x223b')](function(_0x167945){var _0x4e5145=_0x59d846,_0xdea74d=_0x167945?_0x4e5145('0x10df'):_0x4e5145('0xd30');_0xda3d98[_0x4e5145('0x2833')]=_0x44cc48(_0xda3d98,_0xdea74d),_0x167945&&_0x3f6090[_0x4e5145('0x8c8')]({'title':_0x167945['status']?_0x4e5145('0x27f2')+_0x167945[_0x4e5145('0x2833')]+_0x4e5145('0x1b7c')+_0x167945[_0x4e5145('0x1fd7')]:_0x4e5145('0x1d96')+_0x3401b9[_0x4e5145('0x25f7')]()+')','msg':_0x167945[_0x4e5145('0x2833')]?JSON[_0x4e5145('0x3ad')](_0x167945[_0x4e5145('0x11d0')]):_0x167945[_0x4e5145('0x94f')]()});});}function _0x2be32a(_0x4a2028){var _0x159b42=_0x26f38e;return _0x4a2028===_0x159b42('0x2296')?!![]:![];}}const _0x5eca2a=_0x25600a;_0x2b7e12[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x154f'),'userProfiles',_0xb635d2('0x2493'),'Auth',_0xb635d2('0x1e59')];function _0x2b7e12(_0x1d8e0c,_0x3694cd,_0x1397a7,_0x45cbb5,_0x3b0037,_0x18005b,_0x5c5c48,_0x482af2,_0x9cc9a0,_0x5fd302){var _0x11c3a4=_0xb635d2,_0x8ac306=this;_0x8ac306['userProfile']=_0x18005b,_0x8ac306['penalty']=0x0,_0x8ac306[_0x11c3a4('0x1e59')]=angular[_0x11c3a4('0x89')](_0x5fd302),_0x8ac306[_0x11c3a4('0x13e4')]=_0x482af2[_0x11c3a4('0x2159')](_0x11c3a4('0x62'),{'sectionName':_0x482af2['instant'](_0x8ac306['section'][_0x11c3a4('0x193b')])}),_0x8ac306[_0x11c3a4('0xe4b')]=[],_0x8ac306[_0x11c3a4('0x2273')]=[],_0x8ac306[_0x11c3a4('0x51c')]=_0x32d445()['filter'](_0x8ac306[_0x11c3a4('0x1e59')][_0x11c3a4('0x1977')],function(_0x4da50e){var _0xcd5b40=_0x11c3a4;return typeof _0x4da50e['permissions']!=_0xcd5b40('0x1143')&&_0x4da50e[_0xcd5b40('0x27e7')][_0xcd5b40('0x1c21')]?undefined:_0x4da50e;}),_0x8ac306[_0x11c3a4('0x10f0')]=[{'title':_0x11c3a4('0x15c2'),'translate':_0x11c3a4('0x21'),'id':0x64}],_0x8ac306['dashboardItems']=[];_0x8ac306[_0x11c3a4('0x1e59')][_0x11c3a4('0x13e4')]===_0x11c3a4('0x15c2')&&(_0x8ac306['dashboardItems']=_0x8ac306['subsections'],_0x8ac306['subsections']=_0x8ac306[_0x11c3a4('0x10f0')]);_0x8ac306[_0x11c3a4('0x2045')]=null,_0x8ac306[_0x11c3a4('0xf10')]=null,_0x8ac306['allReportsSelected']=[],_0x8ac306['closeDialog']=_0x15d780,_0x8ac306[_0x11c3a4('0x2248')]=_0xde2c22,_0x8ac306[_0x11c3a4('0x1bae')]=_0x5b5462,_0x8ac306['onChangeAutoAssociation']=_0x3a6631,_0x8ac306[_0x11c3a4('0x1f34')]=_0x362190,_0x8ac306[_0x11c3a4('0x229b')]=_0x1d4c2d,_0x8ac306[_0x11c3a4('0x23a3')]=_0x4314cc,_0x8ac306['dualMultiselectOptions']={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x11c3a4('0x2623'),'line1':_0x11c3a4('0x2623'),'line2':'','line3':'','line4':_0x11c3a4('0x227a'),'labelAll':_0x482af2[_0x11c3a4('0x2159')](_0x11c3a4('0x294')),'labelSelected':_0x482af2[_0x11c3a4('0x2159')](_0x11c3a4('0x19f5')),'labelSearch':_0x482af2['instant'](_0x11c3a4('0x269d')),'transferCallback':function _0x7b05c8(_0x141ae5,_0x15d0c5){var _0x265a3f=_0x11c3a4;_0x31a51f(!![]),_0x15d0c5?(_0x8ac306[_0x265a3f('0x2045')]['selectedItems']=_0x32d445()[_0x265a3f('0x2216')](_0x8ac306['selectedSection']['selectedItems'],_0x141ae5,'id'),_0x8ac306[_0x265a3f('0x2045')][_0x265a3f('0x11fd')]=![]):_0x8ac306['selectedSection']['selectedItems']=_0x32d445()['unionBy'](_0x8ac306[_0x265a3f('0x2045')][_0x265a3f('0x2273')],_0x141ae5,'id'),_0x8ac306[_0x265a3f('0x2045')]['title']===_0x265a3f('0x811')&&_0x273abd();}};function _0x2f2938(){return _0x1397a7(function(_0x39c534,_0x2edd02){var _0x3edc00=a0_0x5325,_0x26f387=typeof _0x8ac306['selectedSection']['channel']!==_0x3edc00('0x1143')&&_0x8ac306['selectedSection'][_0x3edc00('0x4e')]==='bull'?_0x3edc00('0x1fdf'):_0x3edc00('0x1a7a');return _0x3b0037[_0x8ac306['selectedSection']['route']][_0x3edc00('0x22d5')]({'fields':_0x3edc00('0xa14'),'channel':_0x8ac306[_0x3edc00('0x2045')][_0x3edc00('0x4e')]===_0x3edc00('0x1ce2')?_0x3edc00('0xe74'):_0x8ac306[_0x3edc00('0x2045')][_0x3edc00('0x4e')],'type':_0x26f387,'nolimit':!![]})[_0x3edc00('0xe59')][_0x3edc00('0xe19')](function(_0x2f390d){_0x39c534(_0x2f390d);})[_0x3edc00('0x223b')](function(_0x4c5667){_0x2edd02(_0x4c5667);});});}function _0x340693(){return _0x1397a7(function(_0x2bc5eb,_0x14d9df){var _0xd1a881=a0_0x5325,_0x380625,_0x1f5616,_0x59cf0a=![],_0x2ceeae=![];if(_0x8ac306[_0xd1a881('0x2045')]['route']===_0xd1a881('0x1979'))switch(_0x8ac306[_0xd1a881('0x2045')][_0xd1a881('0x13e4')]){case _0xd1a881('0x2305'):_0x380625=_0xd1a881('0x1a7a');break;case _0xd1a881('0x18af'):_0x380625='outbound';break;case _0xd1a881('0xb7d'):_0x380625='internal';break;}if(_0x8ac306['selectedSection']['route']==='user')switch(_0x8ac306[_0xd1a881('0x2045')][_0xd1a881('0x13e4')]){case'Agents':_0x1f5616=_0xd1a881('0x108');break;case _0xd1a881('0x1f63'):_0x1f5616=_0xd1a881('0x1e7c');break;case _0xd1a881('0x970'):_0x1f5616=_0xd1a881('0x10c6');break;}_0x8ac306[_0xd1a881('0x2045')][_0xd1a881('0x622')]==='interval'&&(_0x59cf0a=!![]);_0x8ac306[_0xd1a881('0x2045')][_0xd1a881('0x622')]==='disposition'&&(_0x2ceeae=!![]);_0x8ac306[_0xd1a881('0x2045')]['title']===_0xd1a881('0x811')&&(_0x8ac306[_0xd1a881('0x2045')]['route']=_0x8ac306[_0xd1a881('0x2045')]['reportType']===_0xd1a881('0x206')?_0xd1a881('0x1092'):_0xd1a881('0x247b'));if(_0x8ac306[_0xd1a881('0x2045')]['title']===_0xd1a881('0x15c2'))_0x2bc5eb({'count':0x1,'rows':[{'id':0x65,'name':_0x482af2['instant'](_0xd1a881('0x572'))}]});else return _0x3b0037[_0x8ac306[_0xd1a881('0x2045')]['route']][_0xd1a881('0x22d5')]({'role':_0x1f5616?_0x1f5616:undefined,'type':_0x380625?_0x380625:undefined,'VoiceExtensionId':_0x380625?'null':undefined,'IntervalId':_0x59cf0a?_0xd1a881('0x1046'):undefined,'MailAccountId':_0x2ceeae?_0xd1a881('0x1046'):undefined,'FaxAccountId':_0x2ceeae?_0xd1a881('0x1046'):undefined,'SmsAccountId':_0x2ceeae?_0xd1a881('0x1046'):undefined,'OpenchannelAccountId':_0x2ceeae?_0xd1a881('0x1046'):undefined,'ChatWebsiteId':_0x2ceeae?_0xd1a881('0x1046'):undefined,'WhatsappAccountId':_0x2ceeae?_0xd1a881('0x1046'):undefined,'ListId':_0x2ceeae?_0xd1a881('0x1046'):undefined,'nolimit':!![]})[_0xd1a881('0xe59')][_0xd1a881('0xe19')](function(_0xe14a24){_0x2bc5eb(_0xe14a24);})[_0xd1a881('0x223b')](function(_0xfd0829){_0x14d9df(_0xfd0829);});});}function _0x55ac7c(){var _0x12df64=_0x11c3a4,_0x3b48f6=typeof _0x8ac306[_0x12df64('0x2045')][_0x12df64('0x1b3f')]!='undefined'?_0x8ac306['selectedSection'][_0x12df64('0x1b3f')]:![];return _0x1397a7(function(_0x51ca1d,_0x5ae938){var _0xfa251a=_0x12df64;_0x3b0037[_0xfa251a('0xb59')][_0xfa251a('0x22d5')]({'userProfileId':_0x8ac306['userProfile']['id'],'sectionId':_0x8ac306['selectedSection']['id']})[_0xfa251a('0xe59')][_0xfa251a('0xe19')](function(_0x4d79d6){var _0x4711ea=_0xfa251a,_0x413777=_0x4d79d6&&_0x4d79d6[_0x4711ea('0x16a7')]?_0x4d79d6[_0x4711ea('0x16a7')][0x0]:null;!_0x3b48f6&&(_0x8ac306[_0x4711ea('0x2045')][_0x4711ea('0x4ef')]=_0x413777?!!_0x413777[_0x4711ea('0x4ef')]:![],_0x8ac306[_0x4711ea('0x2045')][_0x4711ea('0x11fd')]=_0x413777?!!_0x413777[_0x4711ea('0x11fd')]:![],_0x8ac306[_0x4711ea('0x2045')][_0x4711ea('0xb3d')]=_0x413777?_0x1b5089(_0x413777[_0x4711ea('0xb3d')]):_0x1b5089(_0x8ac306[_0x4711ea('0x154f')][_0x4711ea('0xb3d')])),_0x51ca1d(_0x413777);})[_0xfa251a('0x223b')](function(_0x51b2bd){_0x5ae938(_0x51b2bd);});});}function _0x318915(){return _0x1397a7(function(_0x418219,_0x136a43){var _0x3d85b3=a0_0x5325;!_0x8ac306[_0x3d85b3('0xf10')]?_0x418219(null):_0x3b0037[_0x3d85b3('0xd49')][_0x3d85b3('0x22d5')]({'sectionId':_0x8ac306[_0x3d85b3('0xf10')]['id'],'nolimit':!![]})[_0x3d85b3('0xe59')][_0x3d85b3('0xe19')](function(_0x5cf3a7){_0x418219(_0x5cf3a7);})['catch'](function(_0x334d10){_0x136a43(_0x334d10);});});}function _0x549a2d(){return _0x1397a7(function(_0x319231,_0x1c5bca){var _0x3ef487=a0_0x5325,_0x471dbf=typeof _0x8ac306[_0x3ef487('0x2045')]['channel']!=='undefined'&&_0x32d445()[_0x3ef487('0x1c43')](_0x8ac306['selectedSection'][_0x3ef487('0x622')],_0x3ef487('0x9'));_0x471dbf?_0x2f2938()[_0x3ef487('0xe19')](function(_0x5010cd){_0x319231(_0x5010cd);})['catch'](function(_0x38647d){_0x1c5bca(_0x38647d);}):_0x340693()[_0x3ef487('0xe19')](function(_0x1be3ce){_0x319231(_0x1be3ce);})['catch'](function(_0x3180f0){_0x1c5bca(_0x3180f0);});});}function _0x49d07b(){var _0x497b96=_0x11c3a4,_0x16eed0=typeof _0x8ac306[_0x497b96('0x2045')][_0x497b96('0x1b3f')]!=_0x497b96('0x1143')?_0x8ac306[_0x497b96('0x2045')][_0x497b96('0x1b3f')]:![],_0x33aee4=[];return _0x318915()[_0x497b96('0xe19')](function(_0x34e10e){var _0x2f9fe2=_0x497b96;return _0x33aee4=_0x34e10e&&_0x34e10e['rows']?_0x34e10e[_0x2f9fe2('0x16a7')]:[],_0x8ac306[_0x2f9fe2('0x2045')][_0x2f9fe2('0x13e4')]===_0x2f9fe2('0x811')&&(_0x8ac306[_0x2f9fe2('0x1f6c')]=!_0x8ac306[_0x2f9fe2('0x1f6c')]?_0x33aee4:_0x8ac306[_0x2f9fe2('0x1f6c')],_0x33aee4=_0x2b89ef(_0x8ac306[_0x2f9fe2('0x1f6c')])),typeof _0x8ac306[_0x2f9fe2('0x2045')][_0x2f9fe2('0x27e7')]!=='undefined'&&!_0x8ac306[_0x2f9fe2('0x2045')][_0x2f9fe2('0x27e7')][_0x2f9fe2('0x22e')]?{'rows':[]}:_0x549a2d();})[_0x497b96('0xe19')](function(_0x68b335){var _0xe8136=_0x497b96;_0x8ac306[_0xe8136('0xe4b')]=_0x68b335[_0xe8136('0x16a7')]?_0x32d445()[_0xe8136('0x65a')](_0x68b335[_0xe8136('0x16a7')],function(_0x3d949d){var _0x201aa3=_0xe8136;return _0x8ac306['selectedSection'][_0x201aa3('0x13e4')]===_0x201aa3('0x811')&&(_0x3d949d['fullPath']=_0x31aa32(_0x3d949d[_0x201aa3('0x4ec')])[_0x201aa3('0x1b42')]('\x20','_')),_0x3d949d[_0x201aa3('0x1768')]=!![],_0x3d949d;}):[];!_0x16eed0&&(_0x8ac306[_0xe8136('0x2045')]['selectedItems']=_0x32d445()['map'](_0x33aee4,function(_0x3bdafd){var _0x11094d=_0xe8136;return _0x32d445()[_0x11094d('0xf15')](_0x8ac306[_0x11094d('0xe4b')],{'id':_0x3bdafd[_0x11094d('0x1104')]});}));var _0x38e662=_0x32d445()[_0xe8136('0x501')](_0x8ac306[_0xe8136('0x2045')][_0xe8136('0x2273')],_0x8ac306[_0xe8136('0xe4b')],'id');!_0x32d445()['isEmpty'](_0x38e662)&&(_0x8ac306[_0xe8136('0x2045')][_0xe8136('0x2273')]=_0x32d445()[_0xe8136('0x2216')](_0x8ac306[_0xe8136('0x2045')]['selectedItems'],_0x38e662,'id'));var _0x43b20;switch(_0x8ac306['selectedSection'][_0xe8136('0x13e4')]){case'Contexts':_0x8ac306['selectedSection'][_0xe8136('0x2273')]=_0x32d445()[_0xe8136('0x2891')](_0x8ac306[_0xe8136('0xe4b')],function(_0x27b498){var _0x1c9c6c=_0xe8136;if(_0x27b498[_0x1c9c6c('0x2379')])return _0x27b498['isValid']=![],_0x27b498;else{var _0x389bbd=_0x32d445()['find'](_0x33aee4,{'resourceId':_0x27b498['id']});if(typeof _0x389bbd!=='undefined')return _0x27b498[_0x1c9c6c('0x1768')]=!![],_0x27b498;}});break;case _0xe8136('0x1eb6'):_0x8ac306['selectedSection'][_0xe8136('0x2273')]=_0x32d445()[_0xe8136('0x2891')](_0x8ac306[_0xe8136('0xe4b')],function(_0x3d9acd){var _0x2eca11=_0xe8136;if(_0x3d9acd[_0x2eca11('0x2379')])return _0x3d9acd[_0x2eca11('0x1768')]=![],_0x3d9acd;else{var _0x5b38ba=_0x32d445()[_0x2eca11('0xf15')](_0x33aee4,{'resourceId':_0x3d9acd['id']});if(typeof _0x5b38ba!==_0x2eca11('0x1143'))return _0x3d9acd[_0x2eca11('0x1768')]=!![],_0x3d9acd;}});break;case'Reports':_0x43b20=_0x4137f5(_0x8ac306['allReportsSelected']),_0x8ac306['selectedSection'][_0xe8136('0x2273')]=_0x36ea5b(_0x8ac306[_0xe8136('0x2045')][_0xe8136('0x2273')]),_0x8ac306[_0xe8136('0x2045')][_0xe8136('0x2273')]=_0x32d445()[_0xe8136('0x2535')](_0x8ac306[_0xe8136('0x2045')][_0xe8136('0x2273')],_0x43b20,'id');break;}_0x8ac306['dualMultiselectOptions'][_0xe8136('0x2273')]=_0x8ac306['selectedSection'][_0xe8136('0x2273')],_0x8ac306[_0xe8136('0xc00')][_0xe8136('0xe4b')]=_0x32d445()[_0xe8136('0x501')](_0x8ac306[_0xe8136('0xe4b')],_0x8ac306[_0xe8136('0xc00')][_0xe8136('0x2273')],'id');})[_0x497b96('0x223b')](function(_0x2e960a){var _0x1d6328=_0x497b96;_0x45cbb5[_0x1d6328('0x8c8')]({'title':_0x2e960a[_0x1d6328('0x2833')]?'API:'+_0x2e960a[_0x1d6328('0x2833')]+_0x1d6328('0x1b7c')+_0x2e960a['statusText']:_0x1d6328('0xefd')+_0x8ac306[_0x1d6328('0x2045')][_0x1d6328('0x13e4')][_0x1d6328('0x25f7')](),'msg':_0x2e960a[_0x1d6328('0x2833')]?JSON[_0x1d6328('0x3ad')](_0x2e960a[_0x1d6328('0x11d0')]):_0x2e960a[_0x1d6328('0x94f')]()});});}function _0xde2c22(){var _0x1813a1=_0x11c3a4;return _0x55ac7c()[_0x1813a1('0xe19')](function(_0x3740b9){var _0x3dbb13=_0x1813a1;_0x8ac306[_0x3dbb13('0xf10')]=_0x3740b9;if(_0x8ac306[_0x3dbb13('0x2045')]['title']==='Reports')return _0x1b6584()[_0x3dbb13('0xe19')](function(){var _0x17d74a=_0x3dbb13;if(!_0x8ac306[_0x17d74a('0x2045')]['reportType'])return _0x318915()['then'](function(_0x529a72){var _0x5ccc33=_0x17d74a;_0x8ac306['allReportsSelected']=_0x529a72?_0x32d445()[_0x5ccc33('0x65a')](_0x529a72[_0x5ccc33('0x16a7')],function(_0x1c614e){var _0x7d77aa=_0x5ccc33;return{'id':_0x1c614e[_0x7d77aa('0x1104')],'name':_0x1c614e[_0x7d77aa('0x2623')],'type':_0x1c614e['type']};}):[];});})[_0x3dbb13('0x223b')](function(_0x39f0b2){var _0x1b30de=_0x3dbb13;_0x45cbb5['error']({'title':_0x39f0b2['status']?_0x1b30de('0x27f2')+_0x39f0b2[_0x1b30de('0x2833')]+_0x1b30de('0x1b7c')+_0x39f0b2[_0x1b30de('0x1fd7')]:_0x1b30de('0x1b83'),'msg':_0x39f0b2[_0x1b30de('0x11d0')]?JSON[_0x1b30de('0x3ad')](_0x39f0b2[_0x1b30de('0x11d0')]):_0x39f0b2[_0x1b30de('0x94f')]()});});else _0x49d07b();})['catch'](function(_0x47a22c){var _0xe69020=_0x1813a1;_0x45cbb5['error']({'title':_0x47a22c['status']?_0xe69020('0x27f2')+_0x47a22c[_0xe69020('0x2833')]+_0xe69020('0x1b7c')+_0x47a22c[_0xe69020('0x1fd7')]:_0xe69020('0xefd')+_0x8ac306[_0xe69020('0x2045')][_0xe69020('0x13e4')][_0xe69020('0x25f7')](),'msg':_0x47a22c[_0xe69020('0x2833')]?JSON[_0xe69020('0x3ad')](_0x47a22c[_0xe69020('0x11d0')]):_0x47a22c[_0xe69020('0x94f')]()});});}function _0x1b5089(_0x2d738c){var _0xd24f16=_0x11c3a4;return _0x2d738c&&(_0x8ac306[_0xd24f16('0x2045')][_0xd24f16('0x189b')]=_0x32d445()[_0xd24f16('0x1c43')](_0x2d738c,'e')?!![]:![],_0x8ac306['selectedSection'][_0xd24f16('0x2160')]=_0x32d445()[_0xd24f16('0x1c43')](_0x2d738c,'d')?!![]:![]),_0x5f71bf();}function _0x5f71bf(){var _0x40549f=_0x11c3a4,_0x3046da=['r'];if(_0x8ac306['selectedSection'][_0x40549f('0x189b')])_0x3046da[_0x40549f('0xb76')]('e');else{var _0x44334a=_0x32d445()['indexOf'](_0x3046da,['e']);_0x44334a>0x0&&_0x8ac306[_0x40549f('0x2045')][_0x40549f('0xb3d')][_0x40549f('0x1b42')]('e','');}if(_0x8ac306[_0x40549f('0x2045')]['allowDelete'])_0x3046da['push']('d');else{var _0x104f7e=_0x32d445()[_0x40549f('0x281c')](_0x3046da,['d']);_0x104f7e>0x0&&_0x8ac306[_0x40549f('0x2045')]['crudPermissions'][_0x40549f('0x1b42')]('d','');}return _0x3046da;}function _0x5b5462(){var _0x534f39=_0x11c3a4;_0x8ac306[_0x534f39('0x2045')][_0x534f39('0x4ef')]=!_0x8ac306['selectedSection'][_0x534f39('0x4ef')],_0x31a51f(!![]);}function _0x3a6631(){var _0x3bc597=_0x11c3a4;if(!_0x8ac306[_0x3bc597('0x2045')][_0x3bc597('0x11fd')]){var _0x38ef5b=[];for(var _0x23bf63=0x0;_0x23bf63<_0x8ac306[_0x3bc597('0xc00')]['items'][_0x3bc597('0x25ae')];_0x23bf63++){_0x38ef5b[_0x3bc597('0xb76')](_0x8ac306[_0x3bc597('0xc00')][_0x3bc597('0xe4b')][_0x23bf63]),_0x8ac306['dualMultiselectOptions'][_0x3bc597('0x2273')][_0x3bc597('0xb76')](_0x8ac306[_0x3bc597('0xc00')][_0x3bc597('0xe4b')][_0x23bf63]);}_0x8ac306[_0x3bc597('0xc00')]['items']=[],_0x8ac306[_0x3bc597('0xc00')]['transferCallback'](_0x38ef5b,![]);}_0x31a51f(!![]);}function _0x362190(){var _0x51a2df=_0x11c3a4;_0x8ac306['treeStructure']=_0x319217(),_0x8ac306[_0x51a2df('0x2045')]['selectedItems']&&(_0x8ac306['allReportsSelected']=_0x36ea5b(_0x8ac306['allReportsSelected']),_0x273abd()),_0x49d07b();}function _0x1d4c2d(_0x59d878){var _0x5ec9fe=_0x11c3a4;if(_0x59d878===_0x5ec9fe('0x1c94'))_0x8ac306['selectedSection']['allowEdit']=!_0x8ac306['selectedSection'][_0x5ec9fe('0x189b')];else _0x59d878===_0x5ec9fe('0x229e')&&(_0x8ac306[_0x5ec9fe('0x2045')][_0x5ec9fe('0x2160')]=!_0x8ac306['selectedSection'][_0x5ec9fe('0x2160')]);_0x8ac306[_0x5ec9fe('0x2045')]['crudPermissions']=_0x1b5089(),_0x31a51f(!![]);}function _0x4314cc(){var _0x1ea995=_0x11c3a4,_0x69c4b1=_0x8ac306['section'][_0x1ea995('0x13e4')]==='Marketplace'?'AppZone':_0x8ac306['section'][_0x1ea995('0x13e4')],_0x56e7ef=_0x32d445()(_0x8ac306[_0x1ea995('0x51c')])[_0x1ea995('0x2891')]({'pending':!![]})[_0x1ea995('0x65a')](function(_0x52dc55){var _0xe64f2f=_0x1ea995,_0x466d37=_0x69c4b1==='CallySquare'&&_0x52dc55[_0xe64f2f('0x13e4')]===_0xe64f2f('0x9af')?_0xe64f2f('0x1679'):_0x52dc55[_0xe64f2f('0x13e4')],_0x2a4b9c=_0x466d37===_0xe64f2f('0x811')?_0x8ac306['allReportsSelected']:_0x52dc55['selectedItems'];return _0x69c4b1===_0xe64f2f('0x245f')&&(_0x52dc55[_0xe64f2f('0x11fd')]=!![]),{'category':_0x69c4b1,'sectionId':_0x52dc55['id'],'name':_0x466d37,'enabled':_0x52dc55['enabled'],'autoAssociation':_0x52dc55[_0xe64f2f('0x11fd')],'crudPermissions':_0x32d445()[_0xe64f2f('0x65a')](_0x52dc55[_0xe64f2f('0xb3d')])[_0xe64f2f('0x1537')](''),'Resources':_0x32d445()[_0xe64f2f('0x65a')](_0x2a4b9c,function(_0x17de5a){var _0x3bb1c9=_0xe64f2f;return{'name':_0x17de5a[_0x3bb1c9('0x2623')],'resourceId':_0x17de5a['id'],'type':_0x3cd3c9(_0x466d37,_0x17de5a)};})};})['value']();return _0x3b0037[_0x1ea995('0x154f')][_0x1ea995('0x2702')]({'id':_0x8ac306[_0x1ea995('0x154f')]['id']},_0x56e7ef)[_0x1ea995('0xe59')][_0x1ea995('0xe19')](function(){var _0xd8399=_0x1ea995;_0x8ac306[_0xd8399('0x51c')][_0xd8399('0x1d7e')](function(_0x4fa247){var _0x139b44=_0xd8399;_0x4fa247[_0x139b44('0x1b3f')]=undefined;}),_0x8ac306[_0xd8399('0x1f6c')]=null,_0x136760(),_0x8ac306['selectedSection'][_0xd8399('0x13e4')]===_0xd8399('0x811')&&!_0x8ac306[_0xd8399('0x2045')][_0xd8399('0x30f')]&&_0x1d8e0c['userProfileForm']['$setPristine'](),_0x45cbb5[_0xd8399('0x425')]({'title':_0x482af2[_0xd8399('0x2159')](_0xd8399('0xb41'),{'sectionName':_0x482af2[_0xd8399('0x2159')](_0x69c4b1[_0xd8399('0x193b')])}),'msg':_0x482af2['instant'](_0xd8399('0x1309'))});})[_0x1ea995('0xe19')](function(){var _0x255e4b=_0x1ea995;return _0x55ac7c()[_0x255e4b('0xe19')](function(_0x5c01d5){var _0x5588fe=_0x255e4b;_0x8ac306[_0x5588fe('0xf10')]=_0x5c01d5;});})[_0x1ea995('0x223b')](function(_0x2d77c9){var _0xb8163a=_0x1ea995;_0x45cbb5[_0xb8163a('0x8c8')]({'title':_0x2d77c9[_0xb8163a('0x2833')]?_0xb8163a('0x27f2')+_0x2d77c9['status']+_0xb8163a('0x1b7c')+_0x2d77c9[_0xb8163a('0x1fd7')]:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x2d77c9[_0xb8163a('0x2833')]?JSON[_0xb8163a('0x3ad')](_0x2d77c9[_0xb8163a('0x11d0')]):_0x2d77c9[_0xb8163a('0x94f')]()});});}function _0x31a51f(_0x55e42a){var _0x4f16bb=_0x11c3a4,_0x262472=_0x32d445()[_0x4f16bb('0x8d3')](_0x8ac306['subsections'],function(_0x26deb2){var _0x2dd8a7=_0x4f16bb;return _0x26deb2['id']==_0x8ac306[_0x2dd8a7('0x2045')]['id'];});_0x8ac306[_0x4f16bb('0x51c')][_0x262472][_0x4f16bb('0x1b3f')]=_0x55e42a,_0x136760();}function _0x136760(){var _0x1c1383=_0x11c3a4;return _0x8ac306[_0x1c1383('0x16e7')]=_0x32d445()[_0x1c1383('0x201a')](_0x8ac306['subsections'],[_0x1c1383('0x1b3f'),!![]]);}function _0x319217(){var _0x4038cb=_0x11c3a4,_0x859554={};return _0x8ac306[_0x4038cb('0x2045')][_0x4038cb('0x30f')]==='default'?_0x859554=_0x8ac306[_0x4038cb('0xe9b')][0x0]?angular[_0x4038cb('0x56')](_0x8ac306[_0x4038cb('0xe9b')][0x0][_0x4038cb('0xd03')]):[]:_0x859554=_0x8ac306[_0x4038cb('0xe9b')][0x1]?angular[_0x4038cb('0x56')](_0x8ac306[_0x4038cb('0xe9b')][0x1]['tree']):[],_0x859554;}function _0x1b6584(){return _0x1397a7(function(_0x346d84,_0x458a67){var _0x507ed9=a0_0x5325;_0x3b0037[_0x507ed9('0x188a')]['get']({})[_0x507ed9('0xe59')][_0x507ed9('0xe19')](function(_0x29b916){var _0x3d1b83=_0x507ed9;_0x8ac306[_0x3d1b83('0xe9b')]=_0x29b916[_0x3d1b83('0x16a7')]||[],_0x346d84(_0x8ac306['treeReports']);})[_0x507ed9('0x223b')](function(_0x4931fc){_0x458a67(_0x4931fc);});});}function _0x31aa32(_0x2a97f2){var _0x1a04e3=_0x11c3a4,_0x299aea=_0x8ac306['treeStructure'][0x0][_0x1a04e3('0x1bc6')];return _0x299aea=_0x450349(_0x299aea,_0x2a97f2,_0x8ac306[_0x1a04e3('0x20ee')][0x0]),_0x299aea;}function _0x450349(_0x18181d,_0x455fdd,_0x1d0cf7){var _0x22e378=_0x11c3a4;if(_0x1d0cf7&&!_0x32d445()[_0x22e378('0x14b4')](_0x1d0cf7[_0x22e378('0x1977')]))_0x1d0cf7=_0x32d445()['find'](_0x1d0cf7[_0x22e378('0x1977')],function(_0x323ec8){var _0x3481a1=_0x22e378;return _0x32d445()[_0x3481a1('0x1c43')](_0x455fdd,_0x323ec8['id'])?_0x323ec8:undefined;}),_0x18181d+=_0x1d0cf7?'/'+_0x1d0cf7[_0x22e378('0x1bc6')]:'';else return _0x18181d;return _0x450349(_0x18181d,_0x455fdd,_0x1d0cf7);}function _0x2b89ef(_0x3329f8){var _0x23f41a=_0x11c3a4;return _0x32d445()[_0x23f41a('0x2891')](_0x3329f8,{'type':_0x8ac306[_0x23f41a('0x2045')][_0x23f41a('0x30f')]===_0x23f41a('0x206')?_0x23f41a('0x118b'):_0x23f41a('0x1617')});}function _0x4137f5(_0x22a76d){return _0x32d445()['filter'](_0x22a76d,function(_0x4934f5){var _0x2873de=a0_0x5325;return _0x32d445()[_0x2873de('0x20b6')](_0x4934f5[_0x2873de('0x4ec')],_0x8ac306['selectedSection'][_0x2873de('0x30f')]===_0x2873de('0x206')?_0x2873de('0x138e'):_0x2873de('0x261d'));});}function _0x36ea5b(_0x312ea6){var _0x209672=_0x11c3a4;return _0x32d445()[_0x209672('0xa8b')](_0x312ea6,function(_0x1be1cd){var _0x111927=_0x209672;return _0x32d445()[_0x111927('0x20b6')](_0x1be1cd[_0x111927('0x4ec')],_0x8ac306[_0x111927('0x2045')][_0x111927('0x30f')]===_0x111927('0x206')?_0x111927('0x138e'):'custom');});}function _0x273abd(){var _0x3e2e9f=_0x11c3a4;_0x32d445()[_0x3e2e9f('0x14b4')](_0x8ac306['selectedSection'][_0x3e2e9f('0x2273')])?_0x8ac306[_0x3e2e9f('0x2303')]=_0x32d445()[_0x3e2e9f('0xa8b')](_0x8ac306['allReportsSelected'],function(_0x2a8a58){var _0x5cde7b=_0x3e2e9f;return _0x2a8a58[_0x5cde7b('0x62e')]===(_0x8ac306['selectedSection']['reportType']===_0x5cde7b('0x206')?_0x5cde7b('0x1617'):_0x5cde7b('0x118b'));}):_0x8ac306[_0x3e2e9f('0x2045')][_0x3e2e9f('0x2273')]['forEach'](function(_0x4e0ba5){var _0x50fa41=_0x3e2e9f,_0x1aa6cd=_0x32d445()[_0x50fa41('0x201a')](_0x8ac306[_0x50fa41('0x2303')],{'id':_0x4e0ba5['id'],'parent':_0x4e0ba5[_0x50fa41('0x4ec')]});!_0x1aa6cd&&_0x8ac306[_0x50fa41('0x2303')][_0x50fa41('0xb76')](_0x4e0ba5);});}function _0x3cd3c9(_0x31d474,_0x252c59){var _0x3298c9=_0x11c3a4;if(_0x31d474===_0x3298c9('0x811')){if(_0x252c59[_0x3298c9('0x4ec')]){var _0x205ead=_0x32d445()[_0x3298c9('0x20b6')](_0x252c59[_0x3298c9('0x4ec')],_0x3298c9('0x138e'))?'Default':_0x3298c9('0x1d31');return _0x205ead+_0x31d474;}else return _0x252c59[_0x3298c9('0x62e')];}return _0x31d474;}function _0x15d780(_0xf4982d){var _0xb4e135=_0x11c3a4;if(_0x8ac306['pendingChanges']){var _0xc14547=_0x3694cd['confirm']({'skipHide':!![]})[_0xb4e135('0x13e4')](_0xb4e135('0x830'))[_0xb4e135('0x2719')](_0x482af2[_0xb4e135('0x2159')](_0xb4e135('0x1c0c')))[_0xb4e135('0x4d1')](_0xb4e135('0x830'))[_0xb4e135('0x1345')](_0xf4982d)['ok'](_0x482af2[_0xb4e135('0x2159')]('STAFF.CLOSE'))[_0xb4e135('0x2c1')](_0x482af2['instant'](_0xb4e135('0x1404')));_0x3694cd[_0xb4e135('0x26b2')](_0xc14547)['then'](function(){var _0xe03296=_0xb4e135;_0x3694cd[_0xe03296('0x11ed')]();});}else _0x3694cd[_0xb4e135('0x11ed')]();}}const _0xff6758=_0x2b7e12,_0x1b8216=_0x59426a['p']+_0xb635d2('0x666');_0x63965[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),'license',_0xb635d2('0x22f1'),'api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x154f'),_0xb635d2('0xb59')];function _0x63965(_0x2ca16a,_0x184484,_0x23e41b,_0x4183e6,_0x44b538,_0x3d56e9,_0x39fd3c,_0x11a2d0,_0x30bcc1,_0x168aee,_0x48bde5,_0x16452f){var _0x4b65a3=_0xb635d2,_0x4fa436=this;_0x4fa436[_0x4b65a3('0x15a5')]=_0x168aee[_0x4b65a3('0x1ef8')](),_0x4fa436[_0x4b65a3('0x5c1')]=_0x3d56e9,_0x4fa436[_0x4b65a3('0x22f1')]=_0x39fd3c,_0x4fa436[_0x4b65a3('0x25ac')]=_0x4fa436[_0x4b65a3('0x22f1')][_0x4b65a3('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4fa436[_0x4b65a3('0x2170')]=_0x184484[_0x4b65a3('0xec0')]()+_0x4b65a3('0x21a8')+_0x184484[_0x4b65a3('0x3b7')](),_0x4fa436['userProfile']=_0x48bde5||_0x2ca16a[_0x4b65a3('0x2ef')]['userProfile']||{},_0x4fa436[_0x4b65a3('0xb59')]=_0x16452f&&_0x16452f[_0x4b65a3('0x148b')]==0x1?_0x16452f[_0x4b65a3('0x16a7')][0x0]:null,_0x4fa436[_0x4b65a3('0xb3d')]=_0x168aee['parseCrudPermissions'](_0x4fa436[_0x4b65a3('0xb59')]?_0x4fa436[_0x4b65a3('0xb59')][_0x4b65a3('0xb3d')]:null),_0x4fa436[_0x4b65a3('0x1ccb')]={},_0x4fa436[_0x4b65a3('0xc7b')]=_0x2ca16a[_0x4b65a3('0x2ef')][_0x4b65a3('0x435')]||0x0,_0x4fa436[_0x4b65a3('0x2729')]=_0x408f9f,_0x4fa436[_0x4b65a3('0x26b7')]=_0xb9df1c,_0x4fa436[_0x4b65a3('0xbdc')]=_0x30bcc1[_0x4b65a3('0x1e67')],_0x4fa436[_0x4b65a3('0x2845')]=_0x57e314,_0x4fa436[_0x4b65a3('0x1de9')]=_0x1be160;function _0x408f9f(_0x30e708,_0x3de4d0){var _0x3cbe55=_0x4b65a3;_0x23e41b['show']({'controller':'UserProfilepermissionsmanageController','controllerAs':'vm','templateUrl':_0x533d76,'parent':angular['element'](_0x4183e6[_0x3cbe55('0x19b2')]),'targetEvent':_0x3de4d0,'clickOutsideToClose':!![],'locals':{'userProfile':_0x30e708,'userProfiles':_0x4fa436[_0x3cbe55('0xa21')]?_0x4fa436[_0x3cbe55('0xa21')]['rows']:[],'crudPermissions':_0x4fa436[_0x3cbe55('0xb3d')]}});}function _0xb9df1c(_0x41466f,_0x1870be){var _0x2c164a=_0x4b65a3;_0x23e41b[_0x2c164a('0x26b2')]({'controller':'UserProfilecloneController','controllerAs':'vm','templateUrl':_0x1b8216,'parent':angular['element'](_0x4183e6[_0x2c164a('0x19b2')]),'targetEvent':_0x1870be,'clickOutsideToClose':!![],'locals':{'userProfile':_0x41466f,'userProfiles':_0x4fa436[_0x2c164a('0xa21')]?_0x4fa436[_0x2c164a('0xa21')][_0x2c164a('0x16a7')]:[],'crudPermissions':_0x4fa436[_0x2c164a('0xb3d')]}});}function _0x57e314(){var _0x307964=_0x4b65a3;_0x2ca16a['go'](_0x307964('0x1b38'),{},{'reload':'app.staff.userProfiles'});}function _0x1be160(){var _0x47d446=_0x4b65a3;_0x11a2d0[_0x47d446('0x154f')][_0x47d446('0xa70')]({'id':_0x4fa436[_0x47d446('0x154f')]['id']},_0x4fa436[_0x47d446('0x154f')])[_0x47d446('0xe59')][_0x47d446('0xe19')](function(){var _0x1ea710=_0x47d446;_0x30bcc1[_0x1ea710('0x425')]({'title':_0x1ea710('0x1b67'),'msg':_0x4fa436['userProfile']['name']?_0x4fa436[_0x1ea710('0x154f')][_0x1ea710('0x2623')]+_0x1ea710('0x283b'):''});})['catch'](function(_0x48e83f){var _0x5ccd9c=_0x47d446;_0x30bcc1[_0x5ccd9c('0x8c8')]({'title':_0x48e83f[_0x5ccd9c('0x2833')]?_0x5ccd9c('0x27f2')+_0x48e83f['status']+_0x5ccd9c('0x1b7c')+_0x48e83f[_0x5ccd9c('0x1fd7')]:_0x5ccd9c('0x11bc'),'msg':_0x48e83f[_0x5ccd9c('0x11d0')]?JSON[_0x5ccd9c('0x3ad')](_0x48e83f[_0x5ccd9c('0x11d0')]):_0x48e83f['toString']()});});}}const _0x1c95b6=_0x63965,_0x48c1d9=_0x59426a['p']+_0xb635d2('0xb71');_0x2d94ba[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0xa21'),'userProfile','userProfileSection',_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x2d94ba(_0x4be530,_0x5451a7,_0x277826,_0x16dd70,_0x2df8ca,_0x275d0e,_0x5a0848,_0x480c3e,_0x33b251,_0x3200ea,_0x4b5a87,_0x40fdd3,_0x3f79dd,_0x3029aa,_0x212a65,_0x3a427d,_0x3838b0){var _0xa49cea=_0xb635d2,_0x916603=this;_0x916603[_0xa49cea('0x5c1')]=_0x3a427d,_0x916603[_0xa49cea('0x22f1')]=_0x3838b0,_0x916603[_0xa49cea('0x15a5')]=_0x212a65[_0xa49cea('0x1ef8')](),_0x916603['userProfiles']=_0x33b251||{'count':0x0,'rows':[]},_0x916603[_0xa49cea('0x154f')]=_0x3200ea,_0x916603[_0xa49cea('0xb59')]=_0x4b5a87&&_0x4b5a87[_0xa49cea('0x148b')]==0x1?_0x4b5a87[_0xa49cea('0x16a7')][0x0]:null,_0x916603[_0xa49cea('0xb3d')]=_0x212a65[_0xa49cea('0xd31')](_0x916603[_0xa49cea('0xb59')]?_0x916603[_0xa49cea('0xb59')][_0xa49cea('0xb3d')]:null),_0x916603[_0xa49cea('0x19b6')]='userProfiles',_0x916603[_0xa49cea('0x14d6')]='',_0x916603[_0xa49cea('0x190c')]=null,_0x916603[_0xa49cea('0x225e')]=[],_0x916603[_0xa49cea('0xa16')]={'fields':_0xa49cea('0x1374'),'sort':_0xa49cea('0x7e8'),'limit':0xa,'page':0x1},_0x916603[_0xa49cea('0x34d')]=_0x32d445()[_0xa49cea('0x226f')]([{'option':_0xa49cea('0x51e'),'value':'\x27r\x27','disabled':!![]},{'option':_0xa49cea('0x24d5'),'value':'\x27e\x27'},{'option':_0xa49cea('0xc1c'),'value':_0xa49cea('0x842')}],function(_0xbed2a7){var _0x4c6466=_0xa49cea;return _0x32d445()[_0x4c6466('0x1b42')](_0xbed2a7[_0x4c6466('0x2')],new RegExp('\x27','g'),'');});_0x916603[_0xa49cea('0xa21')]&&_0x916603[_0xa49cea('0xa21')]['count']>0x0&&_0x916603[_0xa49cea('0xa21')][_0xa49cea('0x16a7')][_0xa49cea('0x1d7e')](function(_0x5712ea){var _0x3458f1=_0xa49cea,_0x51e6b3=[];_0x5712ea[_0x3458f1('0xb3d')][_0x3458f1('0x1d7e')](function(_0x46ea73){var _0x1216b7=_0x3458f1;_0x51e6b3[_0x1216b7('0xb76')](_0x916603[_0x1216b7('0x34d')][_0x46ea73][_0x1216b7('0x1b14')]);});var _0x162469=[];_0x51e6b3[_0x3458f1('0x1d7e')](function(_0x4cc1a8){var _0xc2e41a=_0x3458f1;_0x162469[_0xc2e41a('0xb76')](_0x480c3e[_0xc2e41a('0x2159')]('STAFF.'+_0x4cc1a8[_0xc2e41a('0x25f7')]()));}),_0x5712ea[_0x3458f1('0x1609')]=_0x162469[_0x3458f1('0x1537')](',\x20');});_0x916603[_0xa49cea('0x16a0')]=_0x294733,_0x916603[_0xa49cea('0x26b7')]=_0x5ac67e,_0x916603[_0xa49cea('0x1d9e')]=_0x2da055,_0x916603['success']=_0x5ca109,_0x916603['getUserProfiles']=_0x59bb4b,_0x916603['createOrEditUserProfile']=_0x3395d3,_0x916603[_0xa49cea('0x580')]=_0x35834c,_0x916603[_0xa49cea('0x1c5f')]=_0x99755f,_0x916603[_0xa49cea('0x212a')]=_0x2a65ff,_0x916603['deselectUserProfiles']=_0x45c427,_0x916603[_0xa49cea('0x22d9')]=_0x1548af;function _0x294733(_0x51032e){var _0x4c85be=_0xa49cea;_0x277826['go'](_0x4c85be('0x14fe'),{'id':_0x51032e['id'],'userProfile':_0x51032e,'crudPermissions':_0x916603['crudPermissions']});}function _0x5ac67e(_0x5a9b1f,_0x5530a1){var _0x3158d0=_0xa49cea;_0x2df8ca[_0x3158d0('0x26b2')]({'controller':_0x3158d0('0x12a3'),'controllerAs':'vm','templateUrl':_0x1b8216,'parent':angular[_0x3158d0('0x24a1')](_0x275d0e[_0x3158d0('0x19b2')]),'targetEvent':_0x5530a1,'clickOutsideToClose':!![],'locals':{'userProfile':_0x5a9b1f,'userProfiles':_0x916603['userProfiles']?_0x916603['userProfiles'][_0x3158d0('0x16a7')]:[],'crudPermissions':_0x916603[_0x3158d0('0xb3d')]}});}function _0x2da055(_0x99b6a9,_0x257f27){var _0x3b39ed=_0xa49cea,_0x5bfc62=_0x2df8ca[_0x3b39ed('0xa5')]()[_0x3b39ed('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()[_0x3b39ed('0x1df2')]('userProfile')+'?')[_0x3b39ed('0x221c')](''+(_0x99b6a9['name']||'userProfile')+_0x3b39ed('0x27bb')+_0x3b39ed('0x21bd'))[_0x3b39ed('0x4d1')](_0x3b39ed('0x538'))['targetEvent'](_0x257f27)['ok']('OK')[_0x3b39ed('0x2c1')](_0x3b39ed('0x17'));_0x2df8ca['show'](_0x5bfc62)['then'](function(){_0x35834c(_0x99b6a9);},function(){var _0x5f443e=_0x3b39ed;console[_0x5f443e('0x1fe9')](_0x5f443e('0x17'));});}var _0x22d9c8=!![],_0x5a7f90=0x1;_0x4be530[_0xa49cea('0x107')](_0xa49cea('0x20cb'),function(_0x349a83,_0x3ec28c){var _0x4eb363=_0xa49cea;_0x22d9c8?_0x5a0848(function(){_0x22d9c8=![];}):(!_0x3ec28c&&(_0x5a7f90=_0x916603[_0x4eb363('0xa16')][_0x4eb363('0xc08')]),_0x349a83!==_0x3ec28c&&(_0x916603[_0x4eb363('0xa16')][_0x4eb363('0xc08')]=0x1),!_0x349a83&&(_0x916603[_0x4eb363('0xa16')]['page']=_0x5a7f90),_0x916603['getUserProfiles']());});function _0x5ca109(_0x5e30dc){var _0xb6a26a=_0xa49cea;_0x916603[_0xb6a26a('0xa21')]=_0x5e30dc||{'count':0x0,'rows':[]};}function _0x59bb4b(){var _0x22c68f=_0xa49cea;_0x916603[_0x22c68f('0xa16')][_0x22c68f('0xab0')]=(_0x916603[_0x22c68f('0xa16')][_0x22c68f('0xc08')]-0x1)*_0x916603['query'][_0x22c68f('0x1b6d')],_0x212a65[_0x22c68f('0x179e')](_0x22c68f('0xd14'))?_0x916603[_0x22c68f('0x9c8')]=_0x40fdd3[_0x22c68f('0x154f')][_0x22c68f('0x22d5')](_0x916603['query'],_0x5ca109)[_0x22c68f('0xe59')]:(_0x916603['query']['id']=_0x916603[_0x22c68f('0x154f')]['id'],_0x916603[_0x22c68f('0xa16')][_0x22c68f('0x1e59')]='UserProfiles',_0x916603['promise']=_0x40fdd3['userProfile'][_0x22c68f('0x14e6')](_0x916603[_0x22c68f('0xa16')],_0x5ca109)[_0x22c68f('0xe59')]);}function _0x3395d3(_0x31198c,_0x6498c){var _0x23dfe2=_0xa49cea;_0x2df8ca[_0x23dfe2('0x26b2')]({'controller':_0x23dfe2('0x26c8'),'controllerAs':'vm','templateUrl':_0x48c1d9,'parent':angular[_0x23dfe2('0x24a1')](_0x275d0e['body']),'targetEvent':_0x31198c,'clickOutsideToClose':!![],'locals':{'userProfile':_0x6498c,'userProfiles':_0x916603[_0x23dfe2('0xa21')][_0x23dfe2('0x16a7')],'license':_0x916603[_0x23dfe2('0x5c1')],'setting':_0x916603[_0x23dfe2('0x22f1')],'crudPermissions':_0x916603[_0x23dfe2('0xb3d')]}});}function _0x35834c(_0x58abd9){var _0x2ae7c7=_0xa49cea;_0x40fdd3[_0x2ae7c7('0x154f')][_0x2ae7c7('0x229e')]({'id':_0x58abd9['id']})[_0x2ae7c7('0xe59')][_0x2ae7c7('0xe19')](function(){var _0x5d6bd2=_0x2ae7c7;_0x32d445()[_0x5d6bd2('0xa8b')](_0x916603[_0x5d6bd2('0xa21')][_0x5d6bd2('0x16a7')],{'id':_0x58abd9['id']}),_0x916603['userProfiles'][_0x5d6bd2('0x148b')]-=0x1,!_0x916603[_0x5d6bd2('0xa21')][_0x5d6bd2('0x16a7')][_0x5d6bd2('0x25ae')]&&_0x916603['getUserProfiles'](),_0x3029aa['success']({'title':_0x32d445()[_0x5d6bd2('0x1df2')]('UserProfile')+_0x5d6bd2('0x1219'),'msg':_0x58abd9[_0x5d6bd2('0x2623')]?_0x58abd9[_0x5d6bd2('0x2623')]+_0x5d6bd2('0x2182'):''});})['catch'](function(_0x1be15d){var _0x2c438a=_0x2ae7c7;if(_0x1be15d[_0x2c438a('0x11d0')]&&_0x1be15d['data'][_0x2c438a('0xcd2')]&&_0x1be15d[_0x2c438a('0x11d0')][_0x2c438a('0xcd2')][_0x2c438a('0x25ae')]){_0x916603[_0x2c438a('0xcd2')]=_0x1be15d[_0x2c438a('0x11d0')][_0x2c438a('0xcd2')]||[{'message':_0x1be15d[_0x2c438a('0x94f')](),'type':'SYSTEM:DELETEuserProfile'}];for(var _0x266edf=0x0;_0x266edf<_0x1be15d[_0x2c438a('0x11d0')][_0x2c438a('0xcd2')][_0x2c438a('0x25ae')];_0x266edf++){_0x3029aa[_0x2c438a('0x8c8')]({'title':_0x1be15d['data'][_0x2c438a('0xcd2')][_0x266edf][_0x2c438a('0x62e')],'msg':_0x1be15d['data']['errors'][_0x266edf][_0x2c438a('0x27e8')]});}}else _0x3029aa['error']({'title':_0x1be15d[_0x2c438a('0x2833')]?'API:'+_0x1be15d[_0x2c438a('0x2833')]+_0x2c438a('0x1b7c')+_0x1be15d['statusText']:_0x2c438a('0xcac'),'msg':_0x1be15d[_0x2c438a('0x11d0')]?JSON['stringify'](_0x1be15d['data'][_0x2c438a('0x27e8')]):_0x1be15d[_0x2c438a('0x27e8')]||_0x1be15d[_0x2c438a('0x94f')]()});});}function _0x99755f(){var _0x3dc482=_0xa49cea,_0x2732ad=angular[_0x3dc482('0x89')](_0x916603[_0x3dc482('0x225e')]);return _0x916603[_0x3dc482('0x225e')]=[],_0x2732ad;}function _0x2a65ff(_0x3abd59){var _0x254a82=_0xa49cea,_0x231761=_0x2df8ca[_0x254a82('0xa5')]()[_0x254a82('0x13e4')](_0x254a82('0x24e6'))['htmlContent'](_0x254a82('0xab2')+_0x916603[_0x254a82('0x225e')][_0x254a82('0x25ae')]+_0x254a82('0x5bc')+_0x254a82('0x21bd'))[_0x254a82('0x4d1')]('delete\x20UserProfiles')[_0x254a82('0x1345')](_0x3abd59)['ok']('OK')[_0x254a82('0x2c1')]('CANCEL');_0x2df8ca['show'](_0x231761)[_0x254a82('0xe19')](function(){var _0x15b9ca=_0x254a82;_0x916603['selectedUserProfiles'][_0x15b9ca('0x1d7e')](function(_0x2251d4){_0x35834c(_0x2251d4);}),_0x916603[_0x15b9ca('0x225e')]=[];});}function _0x45c427(){var _0x32b92d=_0xa49cea;_0x916603[_0x32b92d('0x225e')]=[];}function _0x1548af(){var _0x4f5971=_0xa49cea;_0x916603[_0x4f5971('0x225e')]=_0x916603['userProfiles'][_0x4f5971('0x16a7')];}}const _0x3de958=_0x2d94ba;_0x46fb4d['$inject']=['$scope','$state','$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'users',_0xb635d2('0x10c6'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x46fb4d(_0x3d77f2,_0x2186b2,_0x33c9e8,_0x5ce8ed,_0x5b31d9,_0x2a9c7d,_0x2b6a7e,_0x17ab86,_0x1e4fc9,_0x3ba935,_0x4ae433,_0x3da307,_0x3e1416,_0x41da4b){var _0x45efbf=_0xb635d2,_0x5ac7ae=this;_0x5ac7ae[_0x45efbf('0x15a5')]=_0x4ae433[_0x45efbf('0x1ef8')](),_0x5ac7ae[_0x45efbf('0xcd2')]=[],_0x5ac7ae[_0x45efbf('0x22f1')]=_0x3e1416,_0x5ac7ae[_0x45efbf('0x5c1')]=_0x3da307,_0x5ac7ae[_0x45efbf('0xb3d')]=_0x41da4b,_0x5ac7ae[_0x45efbf('0x1ccb')]={},_0x5ac7ae[_0x45efbf('0x25ac')]=_0x5ac7ae['setting']&&_0x5ac7ae[_0x45efbf('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5ac7ae[_0x45efbf('0x13e4')]=_0x45efbf('0x2281'),_0x5ac7ae['user']=angular[_0x45efbf('0x89')](_0x1e4fc9),_0x5ac7ae['users']=_0x17ab86,_0x5ac7ae[_0x45efbf('0x288b')]=![];!_0x5ac7ae[_0x45efbf('0x10c6')]&&(_0x5ac7ae[_0x45efbf('0x10c6')]={'role':_0x45efbf('0x10c6'),'autointernal':!![],'context':_0x45efbf('0x280c')},_0x5ac7ae[_0x45efbf('0x13e4')]=_0x45efbf('0x1d10'),_0x5ac7ae[_0x45efbf('0x288b')]=!![]);_0x5ac7ae[_0x45efbf('0x9c2')]=_0x4e9a49,_0x5ac7ae[_0x45efbf('0x1cef')]=_0x35ee8e,_0x5ac7ae[_0x45efbf('0x1041')]=_0xeb0141,_0x5ac7ae[_0x45efbf('0x2635')]=_0xd4878d,_0x5ac7ae[_0x45efbf('0x2584')]=_0x45db20,_0x3ba935[_0x45efbf('0x154f')][_0x45efbf('0x22d5')]({'fields':_0x45efbf('0x104'),'sort':_0x45efbf('0x2623')})[_0x45efbf('0xe59')]['then'](function(_0x281814){var _0x5631f3=_0x45efbf;_0x5ac7ae['userProfiles']=_0x281814[_0x5631f3('0x16a7')]||[];})['catch'](function(_0x344463){var _0x3cfd44=_0x45efbf;_0x2b6a7e[_0x3cfd44('0x8c8')]({'title':_0x344463[_0x3cfd44('0x2833')]?_0x3cfd44('0x27f2')+_0x344463['status']+'\x20-\x20'+_0x344463[_0x3cfd44('0x1fd7')]:_0x3cfd44('0x1f24'),'msg':_0x344463[_0x3cfd44('0x11d0')]?JSON['stringify'](_0x344463[_0x3cfd44('0x11d0')]):_0x344463[_0x3cfd44('0x94f')]()});});function _0x4e9a49(){var _0x453f9b=_0x45efbf;_0x5ac7ae['errors']=[],_0x3ba935[_0x453f9b('0x10c6')]['save'](_0x5ac7ae['user'])[_0x453f9b('0xe59')][_0x453f9b('0xe19')](function(_0x13a113){var _0x439692=_0x453f9b;_0x5ac7ae[_0x439692('0x2526')][_0x439692('0x14c9')](_0x13a113[_0x439692('0x250e')]()),_0x2b6a7e[_0x439692('0x425')]({'title':'User\x20properly\x20created','msg':_0x5ac7ae['user'][_0x439692('0x2623')]?_0x5ac7ae['user'][_0x439692('0x2623')]+_0x439692('0x105f'):''}),_0x45db20(_0x13a113);})[_0x453f9b('0x223b')](function(_0x40a7a4){var _0x3cff7a=_0x453f9b;if(_0x40a7a4[_0x3cff7a('0x11d0')]&&_0x40a7a4[_0x3cff7a('0x11d0')]['errors']&&_0x40a7a4[_0x3cff7a('0x11d0')][_0x3cff7a('0xcd2')][_0x3cff7a('0x25ae')]){_0x5ac7ae[_0x3cff7a('0xcd2')]=_0x40a7a4[_0x3cff7a('0x11d0')][_0x3cff7a('0xcd2')]||[{'message':_0x40a7a4['toString'](),'type':_0x3cff7a('0x172c')}];for(var _0xcc7967=0x0;_0xcc7967<_0x40a7a4[_0x3cff7a('0x11d0')]['errors'][_0x3cff7a('0x25ae')];_0xcc7967+=0x1){_0x2b6a7e['error']({'title':_0x40a7a4[_0x3cff7a('0x11d0')]['errors'][_0xcc7967][_0x3cff7a('0x62e')],'msg':_0x40a7a4[_0x3cff7a('0x11d0')][_0x3cff7a('0xcd2')][_0xcc7967]['message']});}}else _0x2b6a7e[_0x3cff7a('0x8c8')]({'title':_0x40a7a4[_0x3cff7a('0x2833')]?_0x3cff7a('0x27f2')+_0x40a7a4['status']+'\x20-\x20'+_0x40a7a4[_0x3cff7a('0x1fd7')]:_0x3cff7a('0x172c'),'msg':_0x40a7a4[_0x3cff7a('0x11d0')]?JSON['stringify'](_0x40a7a4['data'][_0x3cff7a('0x27e8')]):_0x40a7a4[_0x3cff7a('0x94f')]()});});}function _0x35ee8e(){var _0x2ed425=_0x45efbf;_0x5ac7ae[_0x2ed425('0xcd2')]=[],_0x3ba935[_0x2ed425('0x10c6')][_0x2ed425('0xa70')]({'id':_0x5ac7ae[_0x2ed425('0x10c6')]['id']},_0x5ac7ae['user'])[_0x2ed425('0xe59')][_0x2ed425('0xe19')](function(_0x56aec7){var _0x9b263b=_0x2ed425,_0x101f53=_0x32d445()[_0x9b263b('0xf15')](_0x5ac7ae[_0x9b263b('0x2526')],{'id':_0x56aec7['id']});_0x101f53&&_0x32d445()[_0x9b263b('0x1d8')](_0x101f53,_0x32d445()[_0x9b263b('0xed5')](_0x56aec7[_0x9b263b('0x250e')](),_0x32d445()[_0x9b263b('0x1234')](_0x101f53))),_0x2b6a7e['success']({'title':_0x9b263b('0x2316'),'msg':_0x5ac7ae['user']['name']?_0x5ac7ae['user'][_0x9b263b('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x45db20(_0x56aec7);})[_0x2ed425('0x223b')](function(_0x17582b){var _0x319d98=_0x2ed425;if(_0x17582b['data']&&_0x17582b[_0x319d98('0x11d0')][_0x319d98('0xcd2')]&&_0x17582b[_0x319d98('0x11d0')]['errors'][_0x319d98('0x25ae')]){_0x5ac7ae[_0x319d98('0xcd2')]=_0x17582b[_0x319d98('0x11d0')][_0x319d98('0xcd2')]||[{'message':_0x17582b['toString'](),'type':_0x319d98('0x2bf')}];for(var _0x8ea11e=0x0;_0x8ea11e<_0x17582b[_0x319d98('0x11d0')]['errors'][_0x319d98('0x25ae')];_0x8ea11e++){_0x2b6a7e['error']({'title':_0x17582b[_0x319d98('0x11d0')][_0x319d98('0xcd2')][_0x8ea11e][_0x319d98('0x62e')],'msg':_0x17582b[_0x319d98('0x11d0')][_0x319d98('0xcd2')][_0x8ea11e][_0x319d98('0x27e8')]});}}else _0x2b6a7e[_0x319d98('0x8c8')]({'title':_0x17582b[_0x319d98('0x2833')]?'API:'+_0x17582b[_0x319d98('0x2833')]+_0x319d98('0x1b7c')+_0x17582b['statusText']:'api.user.update','msg':_0x17582b[_0x319d98('0x11d0')]?JSON[_0x319d98('0x3ad')](_0x17582b['data'][_0x319d98('0x27e8')]):_0x17582b[_0x319d98('0x94f')]()});});}function _0xeb0141(_0x41db7e){var _0x443190=_0x45efbf,_0x38d31c=_0x4ae433[_0x443190('0x1ef8')]();if(_0x38d31c['id']===_0x5ac7ae[_0x443190('0x10c6')]['id'])return _0x2b6a7e[_0x443190('0x8c8')]({'title':_0x443190('0x90'),'msg':_0x443190('0xa64')});_0x5ac7ae[_0x443190('0xcd2')]=[];var _0x32b599=_0x5ce8ed[_0x443190('0xa5')]()[_0x443190('0x13e4')](_0x443190('0x24d0'))[_0x443190('0xd0')](_0x443190('0x724'))[_0x443190('0x4d1')]('Delete\x20User')['ok']('Delete')['cancel'](_0x443190('0x8a3'))['targetEvent'](_0x41db7e);_0x5ce8ed['show'](_0x32b599)[_0x443190('0xe19')](function(){var _0x2cbf9d=_0x443190;_0x3ba935['user'][_0x2cbf9d('0x229e')]({'id':_0x5ac7ae[_0x2cbf9d('0x10c6')]['id']})[_0x2cbf9d('0xe59')][_0x2cbf9d('0xe19')](function(){var _0x1871b0=_0x2cbf9d;_0x32d445()[_0x1871b0('0xa8b')](_0x5ac7ae[_0x1871b0('0x2526')],{'id':_0x5ac7ae[_0x1871b0('0x10c6')]['id']}),_0x2b6a7e['success']({'title':_0x1871b0('0xcbe'),'msg':(_0x5ac7ae[_0x1871b0('0x10c6')][_0x1871b0('0x2623')]||_0x1871b0('0x10c6'))+_0x1871b0('0x2182')}),_0x45db20(_0x5ac7ae[_0x1871b0('0x10c6')]);})[_0x2cbf9d('0x223b')](function(_0x5b184a){var _0x58b8ba=_0x2cbf9d;if(_0x5b184a[_0x58b8ba('0x11d0')]&&_0x5b184a[_0x58b8ba('0x11d0')][_0x58b8ba('0xcd2')]&&_0x5b184a[_0x58b8ba('0x11d0')][_0x58b8ba('0xcd2')][_0x58b8ba('0x25ae')]){_0x5ac7ae[_0x58b8ba('0xcd2')]=_0x5b184a[_0x58b8ba('0x11d0')]['errors']||[{'message':_0x5b184a['toString'](),'type':_0x58b8ba('0xcbb')}];for(var _0x297994=0x0;_0x297994<_0x5b184a['data']['errors'][_0x58b8ba('0x25ae')];_0x297994++){_0x2b6a7e[_0x58b8ba('0x8c8')]({'title':_0x5b184a['data']['errors'][_0x297994][_0x58b8ba('0x62e')],'msg':_0x5b184a['data']['errors'][_0x297994]['message']});}}else _0x2b6a7e['error']({'title':_0x5b184a[_0x58b8ba('0x2833')]?_0x58b8ba('0x27f2')+_0x5b184a[_0x58b8ba('0x2833')]+_0x58b8ba('0x1b7c')+_0x5b184a[_0x58b8ba('0x1fd7')]:_0x58b8ba('0xcbb'),'msg':_0x5b184a[_0x58b8ba('0x11d0')]?JSON['stringify'](_0x5b184a['data'][_0x58b8ba('0x27e8')]):_0x5b184a[_0x58b8ba('0x27e8')]||_0x5b184a[_0x58b8ba('0x94f')]()});});},function(){});}function _0xd4878d(_0x5c4b5b){return _0x5c4b5b===null?undefined:new Date(_0x5c4b5b);}function _0x45db20(_0xcfc751){var _0x225f0e=_0x45efbf;_0x5ce8ed[_0x225f0e('0x11ed')](_0xcfc751);}}const _0x402e43=_0x46fb4d;_0x33a853['$inject']=['$mdDialog',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x10c6'),'Auth'];function _0x33a853(_0x47a9a0,_0x5e56b1,_0x2519c0,_0xfd2a09,_0x415f0b){var _0x41b027=_0xb635d2,_0x16f979=this;_0x16f979[_0x41b027('0x15a5')]=_0x415f0b[_0x41b027('0x1ef8')](),_0x16f979[_0x41b027('0xcd2')]=[],_0x16f979[_0x41b027('0x10c6')]=_0xfd2a09,_0x16f979[_0x41b027('0xddc')]=_0xdb7939,_0x16f979['removeApiKey']=_0x15b959,_0x16f979[_0x41b027('0x2584')]=_0x346246;function _0xdb7939(){var _0x3083d6=_0x41b027;_0x16f979[_0x3083d6('0xcd2')]=[],_0x2519c0[_0x3083d6('0x10c6')][_0x3083d6('0x1808')]({'id':_0x16f979['user']['id']})[_0x3083d6('0xe59')][_0x3083d6('0xe19')](function(_0x19b5d6){var _0x392ab9=_0x3083d6;_0x16f979[_0x392ab9('0x10c6')]['apiKey']=_0x19b5d6[_0x392ab9('0xa0f')]||_0x392ab9('0x2044'),_0x5e56b1['success']({'title':_0x392ab9('0x2278')}),_0x346246();})[_0x3083d6('0x223b')](function(_0x5467de){var _0x2fb9f9=_0x3083d6;_0x5e56b1[_0x2fb9f9('0x8c8')]({'title':_0x5467de['status']?_0x2fb9f9('0x27f2')+_0x5467de[_0x2fb9f9('0x2833')]+_0x2fb9f9('0x1b7c')+_0x5467de[_0x2fb9f9('0x1fd7')]:_0x2fb9f9('0x1636'),'msg':_0x5467de['data']?JSON[_0x2fb9f9('0x3ad')](_0x5467de['data'][_0x2fb9f9('0x27e8')]):_0x5467de[_0x2fb9f9('0x94f')]()}),_0x16f979[_0x2fb9f9('0xcd2')]=_0x5467de[_0x2fb9f9('0x11d0')]['errors']||[{'message':_0x5467de[_0x2fb9f9('0x94f')](),'type':'api.user.createApiKey'}];});}function _0x15b959(){var _0x33aa38=_0x41b027;_0x16f979[_0x33aa38('0xcd2')]=[],_0x2519c0[_0x33aa38('0x10c6')][_0x33aa38('0x1a70')]({'id':_0x16f979[_0x33aa38('0x10c6')]['id']})[_0x33aa38('0xe59')]['then'](function(){var _0x484272=_0x33aa38;_0x16f979[_0x484272('0x10c6')][_0x484272('0x8cf')]='N/A',_0x5e56b1[_0x484272('0x425')]({'title':_0x484272('0x1a4b')}),_0x346246();})[_0x33aa38('0x223b')](function(_0x26fb97){var _0x49879=_0x33aa38;_0x5e56b1[_0x49879('0x8c8')]({'title':_0x26fb97[_0x49879('0x2833')]?_0x49879('0x27f2')+_0x26fb97[_0x49879('0x2833')]+_0x49879('0x1b7c')+_0x26fb97[_0x49879('0x1fd7')]:_0x49879('0x1e3e'),'msg':_0x26fb97[_0x49879('0x11d0')]?JSON['stringify'](_0x26fb97[_0x49879('0x11d0')]['message']):_0x26fb97[_0x49879('0x94f')]()}),_0x16f979['errors']=_0x26fb97[_0x49879('0x11d0')][_0x49879('0xcd2')]||[{'message':_0x26fb97[_0x49879('0x94f')](),'type':_0x49879('0x1e3e')}];});}function _0x346246(){var _0x33bdef=_0x41b027;_0x47a9a0[_0x33bdef('0x11ed')]();}}const _0x1f05fe=_0x33a853;_0x2303d3[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0xf65')];function _0x2303d3(_0x15e3d1,_0x4386e4){var _0x23ccc5=_0xb635d2,_0x452797=this,_0x9ccd5b=0x8,_0x29ccd5=_0x9ccd5b*0x400*0x400;_0x452797[_0x23ccc5('0x10c6')]={},_0x452797['crudPermissions'],_0x452797[_0x23ccc5('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x29ccd5,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x452797[_0x23ccc5('0x1b57')]={'flow':{}},_0x452797['dropping']=![],_0x452797['fileAdded']=_0x12186a,_0x452797[_0x23ccc5('0x20')]=_0x1d8a99,_0x452797[_0x23ccc5('0x24e8')]=_0x231a8d,_0x452797['init']=_0x383825;function _0x383825(_0x5151be,_0x446e11){var _0x4f69c6=_0x23ccc5;_0x452797['user']=angular[_0x4f69c6('0x89')](_0x5151be),_0x452797[_0x4f69c6('0xb3d')]=typeof _0x446e11!=='undefined'?_0x446e11:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x452797[_0x4f69c6('0x186a')]['target']=_0x4f69c6('0x19f1')+_0x452797[_0x4f69c6('0x10c6')]['id']+_0x4f69c6('0x4c'),_0x452797[_0x4f69c6('0x10c6')][_0x4f69c6('0x22b8')]=[];}function _0x12186a(_0x4d4ff8){var _0x4d15da=_0x23ccc5,_0x5527a0=[_0x4d15da('0xb48'),_0x4d15da('0x1c0a')];if(!_0x32d445()[_0x4d15da('0x1c43')](_0x5527a0,_0x4d4ff8[_0x4d15da('0x23df')]()))return _0x4386e4[_0x4d15da('0x8c8')]({'title':_0x4d15da('0x11b6')+_0x4d4ff8[_0x4d15da('0x23df')](),'msg':_0x4d15da('0x1450')+_0x5527a0[_0x4d15da('0x1537')]()}),![];if(_0x4d4ff8[_0x4d15da('0x1aea')]>_0x29ccd5)return _0x4386e4[_0x4d15da('0x8c8')]({'title':_0x4d15da('0x16c9'),'msg':_0x4d15da('0x275f')+_0x9ccd5b+'MB'}),![];var _0x359eab={'id':_0x4d4ff8[_0x4d15da('0x164e')],'file':_0x4d4ff8,'type':_0x4d15da('0x1363')};return _0x452797[_0x4d15da('0x10c6')][_0x4d15da('0x22b8')]['unshift'](_0x359eab),!![];}function _0x1d8a99(){var _0x192f54=_0x23ccc5;_0x452797[_0x192f54('0x1b57')][_0x192f54('0x206b')][_0x192f54('0x5ec')]['headers']={'X-Requested-With':_0x192f54('0xdf4'),'Authorization':_0x192f54('0x17b7')+_0x15e3d1['get'](_0x192f54('0x511'))},_0x452797[_0x192f54('0x1b57')][_0x192f54('0x206b')]['upload']();}function _0x231a8d(_0x190fde){var _0x3bd39e=_0x23ccc5;angular['forEach'](_0x452797[_0x3bd39e('0x10c6')][_0x3bd39e('0x22b8')],function(_0x2d1703){var _0x30b7eb=_0x3bd39e;if(_0x2d1703['id']===_0x190fde[_0x30b7eb('0x164e')]){var _0x2ec1fa=new FileReader();_0x2ec1fa['readAsDataURL'](_0x2d1703[_0x30b7eb('0x2c0')]['file']),_0x2ec1fa[_0x30b7eb('0x1d94')]=function(_0x35eb46){var _0x4fedf9=_0x30b7eb;_0x2d1703[_0x4fedf9('0x2647')]=_0x35eb46[_0x4fedf9('0xe0b')][_0x4fedf9('0x2048')];},_0x2d1703[_0x30b7eb('0x62e')]=_0x30b7eb('0x16af');}});}}const _0x5d22e4=_0x2303d3;_0x487f2e[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$mdDialog',_0xb635d2('0xf65'),'api','user',_0xb635d2('0x22f1'),_0xb635d2('0x2730')];function _0x487f2e(_0x45ef28,_0x1c78dc,_0x54f33b,_0x57c9f2,_0x2f6186,_0x531e41,_0x2dbf9a){var _0xfa88a6=_0xb635d2,_0x46e8d6=this;_0x46e8d6['currentUser']=_0x2dbf9a[_0xfa88a6('0x1ef8')](),_0x46e8d6['errors']=[],_0x46e8d6[_0xfa88a6('0x22f1')]=_0x531e41,_0x46e8d6[_0xfa88a6('0x25ac')]=_0x46e8d6[_0xfa88a6('0x22f1')][_0xfa88a6('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x46e8d6[_0xfa88a6('0x10c6')]=_0x2f6186,_0x46e8d6[_0xfa88a6('0x1f6d')]='',_0x46e8d6[_0xfa88a6('0x4cc')]='',_0x46e8d6[_0xfa88a6('0x2864')]=_0x22b869,_0x46e8d6[_0xfa88a6('0x2584')]=_0x479604,_0x45ef28[_0xfa88a6('0x107')](_0xfa88a6('0x1c82'),function(_0x4f1341){var _0x4382f9=_0xfa88a6;!_0x32d445()[_0x4382f9('0xe44')](_0x46e8d6[_0x4382f9('0x4cc')])&&(_0x4f1341===_0x46e8d6[_0x4382f9('0x4cc')]?_0x45ef28[_0x4382f9('0x23c3')]['password'][_0x4382f9('0xce')](_0x4382f9('0x145'),![]):_0x45ef28[_0x4382f9('0x23c3')][_0x4382f9('0x1f6d')]['$setValidity']('oldPasswordMatch',!![]));});function _0x22b869(){var _0x5acedd=_0xfa88a6;_0x46e8d6[_0x5acedd('0xcd2')]=[];var _0x350d8c={'id':_0x46e8d6['user']['id'],'newPassword':_0x46e8d6[_0x5acedd('0x1f6d')]};_0x46e8d6[_0x5acedd('0x15a5')]['id']==_0x46e8d6[_0x5acedd('0x10c6')]['id']&&(_0x350d8c[_0x5acedd('0x4cc')]=_0x46e8d6[_0x5acedd('0x4cc')]),_0x57c9f2[_0x5acedd('0x10c6')][_0x5acedd('0x1676')](_0x350d8c)[_0x5acedd('0xe59')][_0x5acedd('0xe19')](function(){_0x54f33b['success']({'title':'User\x20password\x20properly\x20updated!'}),_0x479604();})['catch'](function(_0x1d5bcc){var _0x4ee999=_0x5acedd;_0x54f33b[_0x4ee999('0x8c8')]({'title':_0x1d5bcc['status']?_0x4ee999('0x27f2')+_0x1d5bcc['status']+_0x4ee999('0x1b7c')+_0x1d5bcc[_0x4ee999('0x1fd7')]:_0x4ee999('0x172c'),'msg':_0x1d5bcc[_0x4ee999('0x11d0')]?JSON[_0x4ee999('0x3ad')](_0x1d5bcc[_0x4ee999('0x11d0')][_0x4ee999('0x27e8')]):_0x1d5bcc[_0x4ee999('0x94f')]()}),_0x46e8d6[_0x4ee999('0xcd2')]=_0x1d5bcc[_0x4ee999('0x11d0')]['errors']||[{'message':_0x1d5bcc['toString'](),'type':_0x4ee999('0x2430')}];});}function _0x479604(){var _0x55b277=_0xfa88a6;_0x1c78dc[_0x55b277('0x11ed')]();}}const _0x331b0a=_0x487f2e,_0x2362a0=_0x59426a['p']+_0xb635d2('0x2262'),_0x835356=_0x59426a['p']+_0xb635d2('0x17f3');_0xf508a3[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),'$translate',_0xb635d2('0x5c1'),'setting',_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x10c6'),_0xb635d2('0xb59')];function _0xf508a3(_0x522d88,_0x44d3ce,_0x3962a9,_0x1168f3,_0x9e2852,_0x515670,_0x1528a6,_0x331fde,_0x33d20e,_0x1a4b81,_0x310951,_0x457ae7){var _0x35b2aa=_0xb635d2,_0x455d2f=this;_0x455d2f[_0x35b2aa('0x15a5')]=_0x1a4b81['getCurrentUser'](),_0x455d2f[_0x35b2aa('0x5c1')]=_0x515670,_0x455d2f[_0x35b2aa('0x22f1')]=_0x1528a6,_0x455d2f[_0x35b2aa('0x25ac')]=_0x455d2f['setting'][_0x35b2aa('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x455d2f[_0x35b2aa('0x2170')]=_0x44d3ce['protocol']()+_0x35b2aa('0x21a8')+_0x44d3ce['host'](),_0x455d2f[_0x35b2aa('0x10c6')]=_0x310951||_0x522d88[_0x35b2aa('0x2ef')][_0x35b2aa('0x10c6')]||{},_0x455d2f[_0x35b2aa('0xb59')]=_0x457ae7&&_0x457ae7['count']==0x1?_0x457ae7[_0x35b2aa('0x16a7')][0x0]:null,_0x455d2f[_0x35b2aa('0xb3d')]=_0x1a4b81[_0x35b2aa('0xd31')](_0x455d2f['userProfileSection']?_0x455d2f[_0x35b2aa('0xb59')]['crudPermissions']:null),_0x455d2f['hasModulePermissions']={},_0x455d2f[_0x35b2aa('0xc7b')]=_0x522d88[_0x35b2aa('0x2ef')][_0x35b2aa('0x435')]||0x0,_0x455d2f[_0x35b2aa('0x15ae')]=_0x1be872,_0x455d2f[_0x35b2aa('0x89d')]=_0x53aaa6,_0x455d2f[_0x35b2aa('0xbdc')]=_0x33d20e[_0x35b2aa('0x1e67')],_0x455d2f[_0x35b2aa('0x330')]=_0x5dacda,_0x455d2f[_0x35b2aa('0x1cef')]=_0x26007d,_0x331fde[_0x35b2aa('0x2768')][_0x35b2aa('0x22d5')]({'fields':_0x35b2aa('0x104'),'sort':_0x35b2aa('0x2623')})[_0x35b2aa('0xe59')][_0x35b2aa('0xe19')](function(_0x153bda){var _0x736ab=_0x35b2aa;_0x455d2f[_0x736ab('0x3c1')]=_0x153bda[_0x736ab('0x16a7')]||[];})['catch'](function(_0x2f58e9){var _0xc3206d=_0x35b2aa;_0x33d20e[_0xc3206d('0x8c8')]({'title':_0x2f58e9[_0xc3206d('0x2833')]?'API:'+_0x2f58e9['status']+_0xc3206d('0x1b7c')+_0x2f58e9[_0xc3206d('0x1fd7')]:_0xc3206d('0x17ac'),'msg':_0x2f58e9[_0xc3206d('0x11d0')]?JSON['stringify'](_0x2f58e9[_0xc3206d('0x11d0')]):_0x2f58e9[_0xc3206d('0x94f')]()});}),_0x331fde[_0x35b2aa('0x154f')][_0x35b2aa('0x22d5')]({'fields':'id,name','sort':_0x35b2aa('0x2623')})[_0x35b2aa('0xe59')][_0x35b2aa('0xe19')](function(_0x666eff){_0x455d2f['userProfiles']=_0x666eff['rows']||[];})[_0x35b2aa('0x223b')](function(_0x5c26ca){var _0x409bd5=_0x35b2aa;_0x33d20e['error']({'title':_0x5c26ca[_0x409bd5('0x2833')]?_0x409bd5('0x27f2')+_0x5c26ca[_0x409bd5('0x2833')]+_0x409bd5('0x1b7c')+_0x5c26ca[_0x409bd5('0x1fd7')]:_0x409bd5('0x1f24'),'msg':_0x5c26ca[_0x409bd5('0x11d0')]?JSON[_0x409bd5('0x3ad')](_0x5c26ca[_0x409bd5('0x11d0')]):_0x5c26ca['toString']()});}),_0x331fde[_0x35b2aa('0x10c6')]['getApiKey']({'id':_0x455d2f[_0x35b2aa('0x10c6')]['id']})[_0x35b2aa('0xe59')][_0x35b2aa('0xe19')](function(_0x4ce44c){var _0x47c35e=_0x35b2aa;_0x455d2f[_0x47c35e('0x10c6')][_0x47c35e('0x8cf')]=_0x4ce44c[_0x47c35e('0xa0f')]?_0x4ce44c['api_key']:_0x47c35e('0x2044');})[_0x35b2aa('0x223b')](function(_0xddc45b){var _0x5ebc8f=_0x35b2aa;_0x33d20e[_0x5ebc8f('0x8c8')]({'title':_0xddc45b[_0x5ebc8f('0x2833')]?_0x5ebc8f('0x27f2')+_0xddc45b[_0x5ebc8f('0x2833')]+'\x20-\x20'+_0xddc45b['statusText']:_0x5ebc8f('0x77e'),'msg':_0xddc45b['data']?JSON[_0x5ebc8f('0x3ad')](_0xddc45b[_0x5ebc8f('0x11d0')]):_0xddc45b['toString']()});});function _0x1be872(_0x3ad03f,_0x1c4b4a){var _0x554d06=_0x35b2aa;_0x3962a9[_0x554d06('0x26b2')]({'controller':_0x554d06('0x1036'),'controllerAs':'vm','templateUrl':_0x2362a0,'parent':angular['element'](_0x1168f3[_0x554d06('0x19b2')]),'targetEvent':_0x1c4b4a,'clickOutsideToClose':!![],'locals':{'user':_0x3ad03f,'users':_0x455d2f['users']?_0x455d2f[_0x554d06('0x2526')][_0x554d06('0x16a7')]:[],'crudPermissions':_0x455d2f[_0x554d06('0xb3d')]}});}function _0x53aaa6(_0x50ed1a,_0x26fb4b){var _0x5ceadb=_0x35b2aa;_0x3962a9['show']({'controller':_0x5ceadb('0xc99'),'controllerAs':'vm','templateUrl':_0x835356,'parent':angular[_0x5ceadb('0x24a1')](_0x1168f3[_0x5ceadb('0x19b2')]),'targetEvent':_0x26fb4b,'clickOutsideToClose':!![],'locals':{'user':_0x50ed1a,'setting':_0x1528a6,'users':_0x455d2f[_0x5ceadb('0x2526')]?_0x455d2f[_0x5ceadb('0x2526')][_0x5ceadb('0x16a7')]:[],'crudPermissions':_0x455d2f[_0x5ceadb('0xb3d')]}});}function _0x5dacda(){var _0x3092fb=_0x35b2aa;_0x522d88['go'](_0x3092fb('0x30b'),{},{'reload':_0x3092fb('0x30b')});}function _0x26007d(){var _0x1f84f1=_0x35b2aa;_0x455d2f[_0x1f84f1('0x10c6')]=_0x32d445()[_0x1f84f1('0x23e3')](_0x455d2f[_0x1f84f1('0x10c6')],_0x1f84f1('0x8b3')),_0x331fde[_0x1f84f1('0x10c6')][_0x1f84f1('0xa70')]({'id':_0x455d2f[_0x1f84f1('0x10c6')]['id']},_0x455d2f[_0x1f84f1('0x10c6')])[_0x1f84f1('0xe59')]['then'](function(){var _0xe46d3e=_0x1f84f1;_0x33d20e[_0xe46d3e('0x425')]({'title':_0xe46d3e('0xa05'),'msg':_0x455d2f[_0xe46d3e('0x10c6')][_0xe46d3e('0x2623')]?_0x455d2f[_0xe46d3e('0x10c6')][_0xe46d3e('0x2623')]+_0xe46d3e('0x283b'):''});})[_0x1f84f1('0x223b')](function(_0xab4cf8){var _0x34396c=_0x1f84f1;_0x33d20e['error']({'title':_0xab4cf8[_0x34396c('0x2833')]?_0x34396c('0x27f2')+_0xab4cf8['status']+_0x34396c('0x1b7c')+_0xab4cf8['statusText']:_0x34396c('0x26e1'),'msg':_0xab4cf8[_0x34396c('0x11d0')]?JSON[_0x34396c('0x3ad')](_0xab4cf8['data']):_0xab4cf8[_0x34396c('0x94f')]()});});}}const _0x5c85bc=_0xf508a3,_0x5865e9=_0x59426a['p']+_0xb635d2('0x771');_0x27d3ab[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x2526'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),'Auth','license','setting'];function _0x27d3ab(_0x3d423a,_0x2c745f,_0x4a2f0d,_0x1ab96c,_0x5b6318,_0x412d21,_0x17b682,_0xad0817,_0x371e21,_0x54ff6e,_0x3a8c1a,_0x53afba,_0x225bfb,_0x63e58b,_0x3a86b3,_0x3a1485,_0x400395){var _0x451e82=_0xb635d2,_0x41a5c5=this;_0x41a5c5[_0x451e82('0x5c1')]=_0x3a1485,_0x41a5c5[_0x451e82('0x22f1')]=_0x400395,_0x41a5c5['currentUser']=_0x3a86b3[_0x451e82('0x1ef8')](),_0x41a5c5[_0x451e82('0x2526')]=_0x371e21||{'count':0x0,'rows':[]},_0x41a5c5[_0x451e82('0x154f')]=_0x54ff6e,_0x41a5c5['userProfileSection']=_0x3a8c1a&&_0x3a8c1a[_0x451e82('0x148b')]==0x1?_0x3a8c1a[_0x451e82('0x16a7')][0x0]:null,_0x41a5c5[_0x451e82('0xb3d')]=_0x3a86b3['parseCrudPermissions'](_0x41a5c5[_0x451e82('0xb59')]?_0x41a5c5[_0x451e82('0xb59')][_0x451e82('0xb3d')]:null),_0x41a5c5['table']=_0x451e82('0x2526'),_0x41a5c5[_0x451e82('0x14d6')]='',_0x41a5c5[_0x451e82('0x190c')]=null,_0x41a5c5[_0x451e82('0x4d2')]=[],_0x41a5c5[_0x451e82('0xa16')]={'fields':'createdAt,updatedAt,role,userProfileId,id,fullname,name,email,phone,mobile,userpic,password,description,autointernal,internal,transport,nat,allow,context,callgroup,pickupgroup,passwordResetAt,apiKey,videosupport,disabled,blocked','role':_0x451e82('0x2723'),'sort':_0x451e82('0x7e8'),'limit':0xa,'page':0x1},_0x41a5c5[_0x451e82('0x1a29')]=_0x32d445()[_0x451e82('0x226f')]([{'option':_0x451e82('0x196f'),'value':_0x451e82('0x892')},{'option':_0x451e82('0x2630'),'value':_0x451e82('0x14e5')}],function(_0x53571d){var _0x4a7652=_0x451e82;return _0x32d445()['replace'](_0x53571d[_0x4a7652('0x2')],new RegExp('\x27','g'),'');}),_0x41a5c5[_0x451e82('0x207b')]=_0x32d445()[_0x451e82('0x226f')]([{'option':'udp','value':_0x451e82('0x1c33')},{'option':_0x451e82('0x127b'),'value':'\x27tcp\x27'},{'option':'ws','value':_0x451e82('0x1c4e')},{'option':_0x451e82('0x1263'),'value':_0x451e82('0xcf8')},{'option':'tls','value':_0x451e82('0x2868')}],function(_0x4e2524){var _0x176f8e=_0x451e82;return _0x32d445()[_0x176f8e('0x1b42')](_0x4e2524[_0x176f8e('0x2')],new RegExp('\x27','g'),'');}),_0x41a5c5['arraynat']=_0x32d445()[_0x451e82('0x226f')]([{'option':'force_rport','value':'\x27force_rport\x27'},{'option':'comedia','value':'\x27comedia\x27'},{'option':_0x451e82('0x794'),'value':_0x451e82('0x11bd')},{'option':'no','value':_0x451e82('0x16f2')},{'option':'never','value':_0x451e82('0x23f5')},{'option':_0x451e82('0x622'),'value':_0x451e82('0x7d2')}],function(_0x5560dd){var _0x48c26e=_0x451e82;return _0x32d445()[_0x48c26e('0x1b42')](_0x5560dd[_0x48c26e('0x2')],new RegExp('\x27','g'),'');}),_0x41a5c5['arrayallow']=_0x32d445()[_0x451e82('0x226f')]([{'option':'ulaw','value':'\x27ulaw\x27'},{'option':_0x451e82('0x171b'),'value':'\x27alaw\x27'},{'option':_0x451e82('0x2844'),'value':_0x451e82('0x4db')},{'option':_0x451e82('0x14e2'),'value':_0x451e82('0x1c62')},{'option':_0x451e82('0x826'),'value':'\x27g729\x27'},{'option':_0x451e82('0x2608'),'value':_0x451e82('0x21fe')},{'option':_0x451e82('0x1e33'),'value':'\x27h264\x27'}],function(_0x18fe67){var _0x2891ef=_0x451e82;return _0x32d445()[_0x2891ef('0x1b42')](_0x18fe67['value'],new RegExp('\x27','g'),'');}),_0x41a5c5[_0x451e82('0xdfe')]=_0x32d445()[_0x451e82('0x226f')]([{'option':_0x451e82('0x358'),'value':_0x451e82('0x11bd')},{'option':'No','value':_0x451e82('0x16f2')},{'option':_0x451e82('0x2d2'),'value':_0x451e82('0x23a1')}],function(_0x3d9f81){var _0x3728af=_0x451e82;return _0x32d445()[_0x3728af('0x1b42')](_0x3d9f81['value'],new RegExp('\x27','g'),'');}),_0x41a5c5[_0x451e82('0x16a0')]=_0x2bc5ef,_0x41a5c5[_0x451e82('0x1d9e')]=_0x3cc2f4,_0x41a5c5[_0x451e82('0x425')]=_0xbb0b27,_0x41a5c5[_0x451e82('0x3df')]=_0x2a1619,_0x41a5c5[_0x451e82('0x1ad6')]=_0x24ded8,_0x41a5c5[_0x451e82('0x1041')]=_0x1ec01c,_0x41a5c5['exportSelectedUsers']=_0x17f863,_0x41a5c5[_0x451e82('0x20f0')]=_0xd42a67,_0x41a5c5[_0x451e82('0x476')]=_0x4e8332,_0x41a5c5[_0x451e82('0xdbd')]=_0x91e8c1,_0x53afba['userProfile'][_0x451e82('0x22d5')]({'fields':_0x451e82('0x104'),'sort':_0x451e82('0x2623')})['$promise'][_0x451e82('0xe19')](function(_0x24fd0f){var _0x5d178f=_0x451e82;_0x41a5c5[_0x5d178f('0xa21')]=_0x24fd0f[_0x5d178f('0x16a7')]||[];})['catch'](function(_0x264135){var _0x2f9790=_0x451e82;_0x63e58b[_0x2f9790('0x8c8')]({'title':_0x264135[_0x2f9790('0x2833')]?_0x2f9790('0x27f2')+_0x264135['status']+'\x20-\x20'+_0x264135[_0x2f9790('0x1fd7')]:'SYSTEM:GET_USERPROFILES','msg':_0x264135[_0x2f9790('0x11d0')]?JSON[_0x2f9790('0x3ad')](_0x264135[_0x2f9790('0x11d0')]):_0x264135[_0x2f9790('0x94f')]()});});function _0x2bc5ef(_0x3de870){var _0x4880f2=_0x451e82;_0x4a2f0d['go'](_0x4880f2('0x6c4'),{'id':_0x3de870['id'],'user':_0x3de870,'crudPermissions':_0x41a5c5['crudPermissions']});}function _0x3cc2f4(_0x19ebb9,_0x57458e){var _0x21e503=_0x451e82,_0x2349c3=_0x5b6318[_0x21e503('0xa5')]()[_0x21e503('0x13e4')](_0x21e503('0x346')+_0x32d445()[_0x21e503('0x1df2')](_0x21e503('0x10c6'))+'?')[_0x21e503('0x221c')](_0x21e503('0xab2')+(_0x19ebb9['name']||_0x21e503('0x10c6'))+_0x21e503('0x27bb')+_0x21e503('0x21bd'))[_0x21e503('0x4d1')](_0x21e503('0x585'))[_0x21e503('0x1345')](_0x57458e)['ok']('OK')[_0x21e503('0x2c1')](_0x21e503('0x17'));_0x5b6318[_0x21e503('0x26b2')](_0x2349c3)[_0x21e503('0xe19')](function(){_0x1ec01c(_0x19ebb9);},function(){console['log']('CANCEL');});}var _0x215012=!![],_0x4f2fb4=0x1;_0x3d423a[_0x451e82('0x107')](_0x451e82('0x20cb'),function(_0x578c25,_0x4452d9){var _0x4b84ba=_0x451e82;_0x215012?_0x17b682(function(){_0x215012=![];}):(!_0x4452d9&&(_0x4f2fb4=_0x41a5c5[_0x4b84ba('0xa16')][_0x4b84ba('0xc08')]),_0x578c25!==_0x4452d9&&(_0x41a5c5[_0x4b84ba('0xa16')][_0x4b84ba('0xc08')]=0x1),!_0x578c25&&(_0x41a5c5[_0x4b84ba('0xa16')][_0x4b84ba('0xc08')]=_0x4f2fb4),_0x41a5c5[_0x4b84ba('0x3df')]());});function _0xbb0b27(_0x222fd2){_0x41a5c5['users']=_0x222fd2||{'count':0x0,'rows':[]};}function _0x2a1619(){var _0x3c3959=_0x451e82;_0x41a5c5['query']['offset']=(_0x41a5c5[_0x3c3959('0xa16')][_0x3c3959('0xc08')]-0x1)*_0x41a5c5[_0x3c3959('0xa16')]['limit'],_0x3a86b3['hasRole'](_0x3c3959('0xd14'))?_0x41a5c5['promise']=_0x53afba['user'][_0x3c3959('0x22d5')](_0x41a5c5[_0x3c3959('0xa16')],_0xbb0b27)['$promise']:(_0x41a5c5[_0x3c3959('0xa16')]['id']=_0x41a5c5[_0x3c3959('0x154f')]['id'],_0x41a5c5[_0x3c3959('0xa16')]['section']='Users',_0x41a5c5[_0x3c3959('0x9c8')]=_0x53afba[_0x3c3959('0x154f')]['getResources'](_0x41a5c5['query'],_0xbb0b27)[_0x3c3959('0xe59')]);}function _0x24ded8(_0x4296d4,_0x4bdfe8){var _0x27744e=_0x451e82;_0x5b6318['show']({'controller':'CreateOrEditUserDialogController','controllerAs':'vm','templateUrl':_0x5865e9,'parent':angular['element'](_0x412d21['body']),'targetEvent':_0x4296d4,'clickOutsideToClose':!![],'locals':{'user':_0x4bdfe8,'users':_0x41a5c5[_0x27744e('0x2526')][_0x27744e('0x16a7')],'license':_0x41a5c5[_0x27744e('0x5c1')],'setting':_0x41a5c5['setting'],'crudPermissions':_0x41a5c5[_0x27744e('0xb3d')]}});}function _0x1ec01c(_0x2768e2){var _0xb21d22=_0x451e82;_0x53afba['user'][_0xb21d22('0x229e')]({'id':_0x2768e2['id']})[_0xb21d22('0xe59')]['then'](function(){var _0x3c6e8f=_0xb21d22;_0x32d445()['remove'](_0x41a5c5[_0x3c6e8f('0x2526')][_0x3c6e8f('0x16a7')],{'id':_0x2768e2['id']}),_0x41a5c5[_0x3c6e8f('0x2526')][_0x3c6e8f('0x148b')]-=0x1,!_0x41a5c5[_0x3c6e8f('0x2526')]['rows'][_0x3c6e8f('0x25ae')]&&_0x41a5c5[_0x3c6e8f('0x3df')](),_0x63e58b[_0x3c6e8f('0x425')]({'title':_0x32d445()[_0x3c6e8f('0x1df2')](_0x3c6e8f('0x2630'))+_0x3c6e8f('0x1219'),'msg':_0x2768e2[_0x3c6e8f('0x2623')]?_0x2768e2['name']+_0x3c6e8f('0x2182'):''});})[_0xb21d22('0x223b')](function(_0x18b7fe){var _0xb22d6b=_0xb21d22;if(_0x18b7fe[_0xb22d6b('0x11d0')]&&_0x18b7fe[_0xb22d6b('0x11d0')][_0xb22d6b('0xcd2')]&&_0x18b7fe['data'][_0xb22d6b('0xcd2')][_0xb22d6b('0x25ae')]){_0x41a5c5[_0xb22d6b('0xcd2')]=_0x18b7fe['data'][_0xb22d6b('0xcd2')]||[{'message':_0x18b7fe[_0xb22d6b('0x94f')](),'type':_0xb22d6b('0x1a98')}];for(var _0x9bff19=0x0;_0x9bff19<_0x18b7fe[_0xb22d6b('0x11d0')][_0xb22d6b('0xcd2')][_0xb22d6b('0x25ae')];_0x9bff19++){_0x63e58b[_0xb22d6b('0x8c8')]({'title':_0x18b7fe[_0xb22d6b('0x11d0')][_0xb22d6b('0xcd2')][_0x9bff19][_0xb22d6b('0x62e')],'msg':_0x18b7fe[_0xb22d6b('0x11d0')][_0xb22d6b('0xcd2')][_0x9bff19][_0xb22d6b('0x27e8')]});}}else _0x63e58b[_0xb22d6b('0x8c8')]({'title':_0x18b7fe[_0xb22d6b('0x2833')]?_0xb22d6b('0x27f2')+_0x18b7fe[_0xb22d6b('0x2833')]+_0xb22d6b('0x1b7c')+_0x18b7fe[_0xb22d6b('0x1fd7')]:_0xb22d6b('0x1a98'),'msg':_0x18b7fe['data']?JSON[_0xb22d6b('0x3ad')](_0x18b7fe[_0xb22d6b('0x11d0')][_0xb22d6b('0x27e8')]):_0x18b7fe[_0xb22d6b('0x27e8')]||_0x18b7fe['toString']()});});}function _0x17f863(){var _0x77cbed=_0x451e82,_0x24aa7e=angular[_0x77cbed('0x89')](_0x41a5c5['selectedUsers']);return _0x41a5c5['selectedUsers']=[],_0x24aa7e;}function _0xd42a67(_0x547453){var _0xabb421=_0x451e82,_0x18f44e=_0x5b6318['confirm']()[_0xabb421('0x13e4')](_0xabb421('0x2712'))['htmlContent'](_0xabb421('0xab2')+_0x41a5c5[_0xabb421('0x4d2')][_0xabb421('0x25ae')]+'\x20selected'+_0xabb421('0x21bd'))[_0xabb421('0x4d1')](_0xabb421('0x1bd9'))['targetEvent'](_0x547453)['ok']('OK')[_0xabb421('0x2c1')](_0xabb421('0x17'));_0x5b6318[_0xabb421('0x26b2')](_0x18f44e)[_0xabb421('0xe19')](function(){var _0x2f7e8c=_0xabb421;_0x41a5c5[_0x2f7e8c('0x4d2')][_0x2f7e8c('0x1d7e')](function(_0x403349){_0x1ec01c(_0x403349);}),_0x41a5c5[_0x2f7e8c('0x4d2')]=[];});}function _0x4e8332(){_0x41a5c5['selectedUsers']=[];}function _0x91e8c1(){var _0xbe83c6=_0x451e82;_0x41a5c5[_0xbe83c6('0x4d2')]=_0x41a5c5[_0xbe83c6('0x2526')]['rows'];}}const _0x38ac38=_0x27d3ab,_0x2f81ea=_0x59426a['p']+_0xb635d2('0xe3f'),_0x3c9e24=_0x59426a['p']+'src/js/modules/main/apps/staff/views/users/edit/view.html/view-[chunkhash].html',_0x1d9dcd=_0x59426a['p']+_0xb635d2('0x1289'),_0x5b416a=_0x59426a['p']+'src/js/modules/main/apps/staff/views/agents/edit/view.html/view-[chunkhash].html',_0x2837ea=_0x59426a['p']+'src/js/modules/main/apps/staff/views/telephones/telephones.html/telephones-[chunkhash].html',_0x50e411=_0x59426a['p']+_0xb635d2('0x1180'),_0x35319a=_0x59426a['p']+_0xb635d2('0x2d0'),_0x34237e=_0x59426a['p']+_0xb635d2('0x40d'),_0x2211a7=_0x59426a['p']+_0xb635d2('0x495');_0x18e615[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),'$translatePartialLoaderProvider'];function _0x18e615(_0x282bff,_0x2d9c00){var _0x1512a5=_0xb635d2;_0x282bff['state'](_0x1512a5('0x78d'),{'abstract':!![],'url':_0x1512a5('0x1db6')})[_0x1512a5('0x1d72')](_0x1512a5('0x30b'),{'url':_0x1512a5('0x23ac'),'views':{'content@app':{'templateUrl':_0x2f81ea,'controller':_0x1512a5('0x7ca')}},'resolve':{'users':[_0x1512a5('0x292'),function _0x4ee270(_0x5d4bb6){var _0x2f4b8d=_0x1512a5;return _0x5d4bb6[_0x2f4b8d('0xcd6')](_0x2f4b8d('0x24a9'),{'fields':_0x2f4b8d('0xaf6'),'role':_0x2f4b8d('0x2723'),'sort':_0x2f4b8d('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x51e7f5(_0x167545,_0x16a38e){var _0x516cec=_0x1512a5;return _0x16a38e['hasRole']('admin')?null:_0x167545['resolve'](_0x516cec('0x455'),{'fields':_0x516cec('0x1b71'),'id':_0x16a38e[_0x516cec('0x1ef8')]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function _0x4d650d(_0x37589c,_0x4023fb){var _0x27fc7c=_0x1512a5;return _0x4023fb[_0x27fc7c('0x179e')](_0x27fc7c('0xd14'))?null:_0x37589c[_0x27fc7c('0xcd6')](_0x27fc7c('0x264e'),{'fields':_0x27fc7c('0x12d6'),'userProfileId':_0x4023fb[_0x27fc7c('0x1ef8')]()[_0x27fc7c('0x1d04')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':'staff'})[_0x1512a5('0x1d72')](_0x1512a5('0x6c4'),{'url':_0x1512a5('0xb1d'),'params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3c9e24,'controller':'UserController\x20as\x20vm'}},'resolve':{'user':[_0x1512a5('0x292'),'$stateParams',function _0x38d39b(_0xd66df4,_0x40f1dc){var _0x4eded6=_0x1512a5;return _0xd66df4[_0x4eded6('0xcd6')](_0x4eded6('0x24a9'),{'fields':'createdAt,updatedAt,role,userProfileId,id,fullname,name,email,phone,mobile,userpic,password,description,autointernal,internal,transport,nat,allow,context,callgroup,pickupgroup,passwordResetAt,apiKey,videosupport,disabled,blocked','id':_0x40f1dc['id']});}],'userProfileSection':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x5da701(_0x58d0e6,_0xc3e948){var _0x24afb9=_0x1512a5;return _0x58d0e6[_0x24afb9('0xcd6')](_0x24afb9('0x264e'),{'fields':_0x24afb9('0x12d6'),'userProfileId':_0xc3e948['getCurrentUser']()['userProfileId'],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x1512a5('0x80c')})[_0x1512a5('0x1d72')](_0x1512a5('0xea3'),{'url':_0x1512a5('0x11db'),'views':{'content@app':{'templateUrl':_0x1d9dcd,'controller':_0x1512a5('0x113b')}},'resolve':{'agents':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x50f326(_0x22c864,_0x8cb61f){var _0x5db151=_0x1512a5;return _0x8cb61f[_0x5db151('0x179e')](_0x5db151('0xd14'))?_0x22c864[_0x5db151('0xcd6')]('user@get',{'fields':_0x5db151('0x2232'),'role':_0x5db151('0x108'),'sort':_0x5db151('0x7e8'),'limit':0xa,'offset':0x0}):_0x22c864[_0x5db151('0xcd6')](_0x5db151('0x197d'),{'id':_0x8cb61f[_0x5db151('0x1ef8')]()['userProfileId'],'section':'Agents','fields':_0x5db151('0x2232'),'role':_0x5db151('0x108'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x191141(_0x556a99,_0x59dac6){var _0x220deb=_0x1512a5;return _0x59dac6['hasRole'](_0x220deb('0xd14'))?null:_0x556a99[_0x220deb('0xcd6')](_0x220deb('0x455'),{'fields':_0x220deb('0x1b71'),'id':_0x59dac6[_0x220deb('0x1ef8')]()[_0x220deb('0x1d04')]});}],'userProfileSection':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x269df2(_0x594dcf,_0x32dc9d){var _0x477474=_0x1512a5;return _0x32dc9d[_0x477474('0x179e')]('admin')?null:_0x594dcf[_0x477474('0xcd6')](_0x477474('0x264e'),{'fields':_0x477474('0x12d6'),'userProfileId':_0x32dc9d[_0x477474('0x1ef8')]()['userProfileId'],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x1512a5('0x80c')})[_0x1512a5('0x1d72')](_0x1512a5('0x27b'),{'url':_0x1512a5('0xb1d'),'params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5b416a,'controller':_0x1512a5('0x233b')}},'resolve':{'agent':['apiResolver',_0x1512a5('0x34'),function _0x12f493(_0x547e6a,_0x76c580){var _0x453c5d=_0x1512a5;return _0x547e6a[_0x453c5d('0xcd6')](_0x453c5d('0x24a9'),{'fields':_0x453c5d('0x2232'),'id':_0x76c580['id']});}],'userProfileSection':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x32fdf0(_0x4446ec,_0x1b0e2c){var _0x36e8a7=_0x1512a5;return _0x4446ec[_0x36e8a7('0xcd6')](_0x36e8a7('0x264e'),{'fields':_0x36e8a7('0x12d6'),'userProfileId':_0x1b0e2c[_0x36e8a7('0x1ef8')]()[_0x36e8a7('0x1d04')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x1512a5('0x80c')})[_0x1512a5('0x1d72')]('app.staff.telephones',{'url':_0x1512a5('0x1e8c'),'views':{'content@app':{'templateUrl':_0x2837ea,'controller':'TelephonesController\x20as\x20vm'}},'resolve':{'telephones':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x3127f4(_0x3b92f1,_0x51970f){var _0x3a1a06=_0x1512a5;return _0x51970f[_0x3a1a06('0x179e')](_0x3a1a06('0xd14'))?_0x3b92f1[_0x3a1a06('0xcd6')](_0x3a1a06('0x24a9'),{'fields':'createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','role':_0x3a1a06('0x1e7c'),'sort':_0x3a1a06('0x7e8'),'limit':0xa,'offset':0x0}):_0x3b92f1[_0x3a1a06('0xcd6')](_0x3a1a06('0x197d'),{'id':_0x51970f[_0x3a1a06('0x1ef8')]()[_0x3a1a06('0x1d04')],'section':_0x3a1a06('0x1f63'),'fields':_0x3a1a06('0x5c2'),'role':_0x3a1a06('0x1e7c'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x1512a5('0x2730'),function _0x3a5942(_0x1c42be,_0x2639fd){var _0x1c2ae8=_0x1512a5;return _0x2639fd['hasRole']('admin')?null:_0x1c42be[_0x1c2ae8('0xcd6')](_0x1c2ae8('0x455'),{'fields':_0x1c2ae8('0x1b71'),'id':_0x2639fd[_0x1c2ae8('0x1ef8')]()[_0x1c2ae8('0x1d04')]});}],'userProfileSection':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x3455d2(_0xc0f433,_0x1d7913){var _0x1669d0=_0x1512a5;return _0x1d7913[_0x1669d0('0x179e')]('admin')?null:_0xc0f433[_0x1669d0('0xcd6')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1d7913[_0x1669d0('0x1ef8')]()['userProfileId'],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x1512a5('0x80c')})['state'](_0x1512a5('0xbf8'),{'url':_0x1512a5('0xb1d'),'params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x50e411,'controller':_0x1512a5('0x879')}},'resolve':{'telephone':[_0x1512a5('0x292'),'$stateParams',function _0x209440(_0x210465,_0x3e1cea){var _0x4f4202=_0x1512a5;return _0x210465[_0x4f4202('0xcd6')](_0x4f4202('0x24a9'),{'fields':_0x4f4202('0x5c2'),'id':_0x3e1cea['id']});}],'userProfileSection':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x5d409e(_0x2392cf,_0x262422){var _0x53957e=_0x1512a5;return _0x2392cf['resolve'](_0x53957e('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x262422[_0x53957e('0x1ef8')]()[_0x53957e('0x1d04')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':'staff'})[_0x1512a5('0x1d72')](_0x1512a5('0x200d'),{'url':_0x1512a5('0x2678'),'views':{'content@app':{'templateUrl':_0x35319a,'controller':_0x1512a5('0x116d')}},'resolve':{'teams':['apiResolver',_0x1512a5('0x2730'),function _0x909aab(_0x5e67dd,_0x411585){var _0x3a1a5f=_0x1512a5;return _0x411585[_0x3a1a5f('0x179e')](_0x3a1a5f('0xd14'))?_0x5e67dd[_0x3a1a5f('0xcd6')](_0x3a1a5f('0x2090'),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x3a1a5f('0x7e8'),'limit':0xa,'offset':0x0}):_0x5e67dd['resolve'](_0x3a1a5f('0x197d'),{'id':_0x411585['getCurrentUser']()[_0x3a1a5f('0x1d04')],'section':_0x3a1a5f('0x1d54'),'fields':_0x3a1a5f('0x1666'),'sort':_0x3a1a5f('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x58da0d(_0x55772,_0x439d51){var _0x449a42=_0x1512a5;return _0x439d51[_0x449a42('0x179e')](_0x449a42('0xd14'))?null:_0x55772[_0x449a42('0xcd6')]('userProfile@get',{'fields':_0x449a42('0x1b71'),'id':_0x439d51['getCurrentUser']()[_0x449a42('0x1d04')]});}],'userProfileSection':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x2d3999(_0x854912,_0x341757){var _0x1e0ff0=_0x1512a5;return _0x341757['hasRole'](_0x1e0ff0('0xd14'))?null:_0x854912[_0x1e0ff0('0xcd6')](_0x1e0ff0('0x264e'),{'fields':_0x1e0ff0('0x12d6'),'userProfileId':_0x341757[_0x1e0ff0('0x1ef8')]()['userProfileId'],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x1512a5('0x80c')})['state'](_0x1512a5('0x1b38'),{'url':_0x1512a5('0xddd'),'views':{'content@app':{'templateUrl':_0x34237e,'controller':_0x1512a5('0x380')}},'resolve':{'userProfiles':['apiResolver',function _0x5732d4(_0x3eadd3){var _0x2b8a91=_0x1512a5;return _0x3eadd3[_0x2b8a91('0xcd6')]('userProfile@get',{'fields':_0x2b8a91('0x1374'),'sort':_0x2b8a91('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x248da4(_0x3cbe9b,_0x3b1d30){var _0x11dc19=_0x1512a5;return _0x3b1d30[_0x11dc19('0x179e')](_0x11dc19('0xd14'))?null:_0x3cbe9b['resolve'](_0x11dc19('0x455'),{'fields':'id,name,crudPermissions','id':_0x3b1d30['getCurrentUser']()[_0x11dc19('0x1d04')]});}],'userProfileSection':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0x3c7ea4(_0x78aae6,_0x44a22a){var _0x2c3a3b=_0x1512a5;return _0x44a22a[_0x2c3a3b('0x179e')](_0x2c3a3b('0xd14'))?null:_0x78aae6[_0x2c3a3b('0xcd6')](_0x2c3a3b('0x264e'),{'fields':_0x2c3a3b('0x12d6'),'userProfileId':_0x44a22a['getCurrentUser']()[_0x2c3a3b('0x1d04')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x1512a5('0x80c')})[_0x1512a5('0x1d72')](_0x1512a5('0x14fe'),{'url':'/:id?tab','params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2211a7,'controller':'UserProfileController\x20as\x20vm'}},'resolve':{'userProfile':[_0x1512a5('0x292'),_0x1512a5('0x34'),function _0x5529ce(_0x2f4746,_0x151d73){var _0xf4e2c1=_0x1512a5;return _0x2f4746[_0xf4e2c1('0xcd6')](_0xf4e2c1('0x455'),{'fields':'createdAt,updatedAt,id,name,description,crudPermissions','id':_0x151d73['id']});}],'userProfileSection':[_0x1512a5('0x292'),_0x1512a5('0x2730'),function _0xc6103f(_0x5c07cd,_0xf08789){var _0x5cca44=_0x1512a5;return _0x5c07cd[_0x5cca44('0xcd6')](_0x5cca44('0x264e'),{'fields':_0x5cca44('0x12d6'),'userProfileId':_0xf08789[_0x5cca44('0x1ef8')]()[_0x5cca44('0x1d04')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x1512a5('0x80c')}),_0x2d9c00[_0x1512a5('0xfe3')](_0x1512a5('0xc2f'));}angular['module']('app.staff',['ngCsv',_0xb635d2('0x24b'),_0xb635d2('0x274e'),_0xb635d2('0x206b'),_0xb635d2('0xd8b'),_0xb635d2('0x1727'),_0xb635d2('0x1951'),'ngAria',_0xb635d2('0x1c2a'),_0xb635d2('0x153a'),'mwFormBuilder',_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),'ngEmbed','angularMaterialFormBuilder','material.components.expansionPanels',_0xb635d2('0xe93'),'angular.filter'])['config'](_0x18e615)[_0xb635d2('0x1a79')](_0xb635d2('0x2673'),_0x8153f8)[_0xb635d2('0x1a79')](_0xb635d2('0xd69'),_0x5e9cc2)[_0xb635d2('0x1a79')](_0xb635d2('0x262e'),_0x2846d3)[_0xb635d2('0x1a79')](_0xb635d2('0x2883'),_0x2f160e)[_0xb635d2('0x1a79')](_0xb635d2('0x7bd'),_0x26b016)[_0xb635d2('0x1a79')](_0xb635d2('0x28ab'),_0x573a52)[_0xb635d2('0x1a79')](_0xb635d2('0x575'),_0x32964f)['controller'](_0xb635d2('0x192d'),_0x50667b)[_0xb635d2('0x1a79')](_0xb635d2('0xe58'),_0x299276)[_0xb635d2('0x1a79')](_0xb635d2('0x103b'),_0x1f7e16)[_0xb635d2('0x1a79')](_0xb635d2('0x1d82'),_0x4a5210)[_0xb635d2('0x1a79')](_0xb635d2('0x17ae'),_0x447c59)[_0xb635d2('0x1a79')]('TelephonechangepasswordController',_0x2f840f)[_0xb635d2('0x1a79')](_0xb635d2('0x10bc'),_0x29df36)[_0xb635d2('0x1a79')](_0xb635d2('0x17e1'),_0x2c18be)[_0xb635d2('0x1a79')](_0xb635d2('0x26c8'),_0x411479)[_0xb635d2('0x1a79')]('UserProfilecloneController',_0x45952b)['controller']('UserProfilePermissionsController',_0x5eca2a)[_0xb635d2('0x1a79')](_0xb635d2('0xdc3'),_0xff6758)[_0xb635d2('0x1a79')](_0xb635d2('0x24d6'),_0x1c95b6)['controller'](_0xb635d2('0x27b5'),_0x3de958)[_0xb635d2('0x1a79')](_0xb635d2('0x10fc'),_0x402e43)[_0xb635d2('0x1a79')](_0xb635d2('0x1036'),_0x1f05fe)[_0xb635d2('0x1a79')](_0xb635d2('0xdb7'),_0x5d22e4)['controller'](_0xb635d2('0xc99'),_0x331b0a)[_0xb635d2('0x1a79')](_0xb635d2('0x1f42'),_0x5c85bc)[_0xb635d2('0x1a79')](_0xb635d2('0xb58'),_0x38ac38);const _0x2ca8e6=_0x59426a['p']+_0xb635d2('0xe96'),_0x3723fc=_0x59426a['p']+'src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html/dialog-[chunkhash].html';_0x327027['$inject']=['$scope',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),'$state',_0xb635d2('0x34'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x4b1'),_0xb635d2('0x9f8'),_0xb635d2('0x1a4c'),_0xb635d2('0xcca'),'companiesMap','tags',_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1')];function _0x327027(_0x32cfd3,_0x5cdbae,_0x262fa6,_0x9ba358,_0x98b3d7,_0x167dcd,_0x296ce9,_0x212fa9,_0x2b0b9b,_0x48b6e1,_0x50884d,_0x5043a8,_0x40adce,_0x9cff25,_0x1842b7,_0x22cb61,_0x511a1a,_0x3bb711,_0x7aa73a){var _0x3d8717=_0xb635d2,_0xf27440=this;_0xf27440[_0x3d8717('0x15a5')]=_0x3bb711[_0x3d8717('0x1ef8')](),_0xf27440[_0x3d8717('0x5c1')]=_0x7aa73a,_0xf27440[_0x3d8717('0x154f')]=_0x212fa9,_0xf27440[_0x3d8717('0xb59')]=_0x2b0b9b&&_0x2b0b9b[_0x3d8717('0x148b')]==0x1?_0x2b0b9b['rows'][0x0]:null,_0xf27440['crudPermissions']=_0x3bb711['parseCrudPermissions'](_0xf27440['userProfileSection']?_0xf27440[_0x3d8717('0xb59')][_0x3d8717('0xb3d')]:null);var _0x274a4a=0x3c,_0x1823b8=_0x274a4a*0x400*0x400;_0xf27440[_0x3d8717('0x186a')]={'target':_0x3d8717('0x7cb'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1823b8,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0xf27440['contacts']=_0x50884d||{'count':0x0,'rows':[]},_0xf27440[_0x3d8717('0x2116')]={'hidden':![],'hover':![],'isOpen':![]},_0xf27440['table']=_0x3d8717('0x205c'),_0xf27440[_0x3d8717('0x27fe')]=[],_0xf27440[_0x3d8717('0x9f8')]=_0x5043a8||{'rows':[],'count':0x0},_0xf27440[_0x3d8717('0xcca')]=_0x9cff25||{'rows':[],'count':0x0},_0xf27440[_0x3d8717('0x1105')]=_0x22cb61||{'rows':[],'count':0x0},_0xf27440[_0x3d8717('0x1a4c')]=_0x40adce,_0xf27440[_0x3d8717('0x1adc')]=_0x1842b7,_0xf27440[_0x3d8717('0x244a')]=[],_0xf27440[_0x3d8717('0x1922')]=null,_0xf27440[_0x3d8717('0x1392')]=null,_0xf27440['query']=_0x32d445()['merge']({'includeAll':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0,'page':0x1},_0x98b3d7),_0xf27440[_0x3d8717('0x1752')]=_0x548273,_0xf27440[_0x3d8717('0x1d9e')]=_0x5cbaac,_0xf27440['success']=_0x28afc0,_0xf27440[_0x3d8717('0xbd8')]=_0x372bda,_0xf27440[_0x3d8717('0x1353')]=_0x1507ac,_0xf27440['mergeContact']=_0x1444f0,_0xf27440[_0x3d8717('0x2202')]=_0x136155,_0xf27440['createOrEditContact']=_0x36ba6f,_0xf27440[_0x3d8717('0x24cb')]=_0x516446,_0xf27440['exportSelectedContacts']=_0x1cc5a7,_0xf27440[_0x3d8717('0x1691')]=_0x1f6a67,_0xf27440[_0x3d8717('0x1804')]=_0x587146,_0xf27440[_0x3d8717('0x49c')]=_0x242d5a,_0xf27440[_0x3d8717('0xa71')]=_0x1e5043,_0xf27440[_0x3d8717('0x1351')]=_0x5271ef,_0xf27440[_0x3d8717('0x1169')]=_0x12f748,_0xf27440['importContacts']=_0x524dc5,_0xf27440[_0x3d8717('0xe87')]=_0xf00a0c,_0xf27440[_0x3d8717('0x1124')]=_0x3ee0cb;_0x9ba358['params'][_0x3d8717('0x2463')]&&(_0xf27440[_0x3d8717('0x1922')]=_0x9ba358['params'][_0x3d8717('0x2463')]);_0x9ba358[_0x3d8717('0x2ef')][_0x3d8717('0x11a4')]&&(_0xf27440[_0x3d8717('0x1392')]=_0x9ba358[_0x3d8717('0x2ef')]['CompanyId']);_0x32cfd3[_0x3d8717('0x107')](_0x3d8717('0x15fb'),function(_0x1e9a6f){var _0x5b90cd=_0x3d8717;_0x1e9a6f?_0x262fa6(function(){var _0x394780=a0_0x5325;_0x32cfd3[_0x394780('0x1793')]=_0xf27440[_0x394780('0x2116')][_0x394780('0x154b')];},0x258):_0x32cfd3[_0x5b90cd('0x1793')]=_0xf27440['options'][_0x5b90cd('0x154b')];});function _0x1507ac(){var _0x17babc=_0x3d8717;if(!_0x3bb711[_0x17babc('0x179e')](_0x17babc('0xd14'))){var _0x43f67b=_0x32d445()(_0xf27440[_0x17babc('0x4b1')][_0x17babc('0x16a7')])[_0x17babc('0x65a')](function(_0x2604cc){var _0xe9339e=_0x17babc;return{'id':_0x2604cc[_0xe9339e('0x11a4')]};})[_0x17babc('0x268b')]('id')[_0x17babc('0x2891')](function(_0x3744a0){return _0x3744a0['id']&&_0x3744a0['id']>0x0;})['pullAllBy'](_0xf27440['companies']['rows'],'id')[_0x17babc('0x2')]();if(!_0x32d445()[_0x17babc('0x14b4')](_0x43f67b)){var _0x1dce40=[];_0x43f67b[_0x17babc('0x1d7e')](function(_0x5c51b8){var _0x21e158=_0x17babc;_0x1dce40[_0x21e158('0xb76')](_0x48b6e1[_0x21e158('0x24d1')][_0x21e158('0x22d5')]({'id':_0x5c51b8['id'],'fields':_0x21e158('0x104')})[_0x21e158('0xe59')]);}),_0x296ce9['all'](_0x1dce40)[_0x17babc('0xe19')](function(_0x3da61f){var _0xaf3ffa=_0x17babc;_0x3da61f[_0xaf3ffa('0x1d7e')](function(_0x441993){var _0x3b9fc5=_0xaf3ffa,_0xba83f3=_0x441993[_0x3b9fc5('0x250e')]();_0xba83f3[_0x3b9fc5('0x1e9d')]=![],_0xf27440[_0x3b9fc5('0xcca')][_0x3b9fc5('0x16a7')][_0x3b9fc5('0xb76')](_0xba83f3);var _0x111313={};_0x111313[_0xba83f3['id']]=_0xba83f3[_0x3b9fc5('0x2623')],_0xf27440[_0x3b9fc5('0x1adc')]=_0x32d445()['assignIn'](_0xf27440[_0x3b9fc5('0x1adc')],_0x111313);});})[_0x17babc('0x223b')](function(_0x111da5){var _0x9716e=_0x17babc;_0x511a1a[_0x9716e('0x8c8')]({'title':_0x111da5[_0x9716e('0x2833')]?'API:'+_0x111da5[_0x9716e('0x2833')]+'\x20-\x20'+_0x111da5['statusText']:'GET_COMPANY','msg':_0x111da5[_0x9716e('0x11d0')]?JSON['stringify'](_0x111da5['data'][_0x9716e('0x27e8')]):_0x111da5[_0x9716e('0x94f')]()});});}}}function _0x5271ef(_0xd221ed){var _0xa52c53=_0x3d8717,_0x192af1=_0x167dcd[_0xa52c53('0x68f')]()[_0xa52c53('0x13e4')]('What\x20would\x20you\x20name\x20your\x20list?')[_0xa52c53('0x53e')](_0xa52c53('0x128a'))[_0xa52c53('0x4d1')](_0xa52c53('0x128a'))[_0xa52c53('0x1345')](_0xd221ed)['ok']('Ok')[_0xa52c53('0x2c1')](_0xa52c53('0x8a3'));return _0x167dcd[_0xa52c53('0x26b2')](_0x192af1)[_0xa52c53('0xe19')](function(_0x463612){var _0x169a8e=_0xa52c53;if(_0x463612)return _0x48b6e1['cmList'][_0x169a8e('0xe5e')]({'name':_0x463612});else _0x511a1a[_0x169a8e('0x8c8')]({'title':'Error\x20creating\x20list!','msg':_0x169a8e('0x25bf')});})[_0xa52c53('0xe19')](function(_0x569a30){var _0x426dfe=_0xa52c53;_0x569a30&&(_0xf27440[_0x426dfe('0x9f8')][_0x426dfe('0x16a7')]['push'](_0x569a30),_0x511a1a[_0x426dfe('0x425')]({'title':_0x426dfe('0x1e0a'),'msg':_0x569a30[_0x426dfe('0x2623')]?_0x569a30['name']+'\x20has\x20been\x20created!':''}));});}function _0xf00a0c(){var _0x2b0ded=_0x3d8717;return _0x3bb711[_0x2b0ded('0xe87')](0x12f)||_0x3bb711[_0x2b0ded('0x179e')](_0x2b0ded('0xd14'));}function _0x12f748(_0x39b3e8){var _0x9f3b76=_0x3d8717,_0xb0bd90=_0x167dcd[_0x9f3b76('0x68f')]()['title'](_0x9f3b76('0x2694'))['placeholder'](_0x9f3b76('0x2410'))['ariaLabel'](_0x9f3b76('0x2410'))[_0x9f3b76('0x1345')](_0x39b3e8)['ok']('Ok')[_0x9f3b76('0x2c1')](_0x9f3b76('0x8a3'));return _0x167dcd[_0x9f3b76('0x26b2')](_0xb0bd90)[_0x9f3b76('0xe19')](function(_0x4d61fe){var _0x19a6c0=_0x9f3b76;if(_0x4d61fe)return _0x48b6e1['cmCompany'][_0x19a6c0('0xe5e')]({'name':_0x4d61fe});else _0x511a1a[_0x19a6c0('0x8c8')]({'title':'Error\x20creating\x20company!','msg':_0x19a6c0('0x274d')});})[_0x9f3b76('0xe19')](function(_0x3e921b){var _0xe44db2=_0x9f3b76;_0x3e921b&&(_0xf27440[_0xe44db2('0xcca')][_0xe44db2('0x16a7')][_0xe44db2('0xb76')](_0x3e921b),_0x511a1a[_0xe44db2('0x425')]({'title':_0xe44db2('0x20ad'),'msg':_0x3e921b[_0xe44db2('0x2623')]?_0x3e921b['name']+_0xe44db2('0x105f'):''}));});}function _0x1e5043(_0x5aab2d){var _0x468909=_0x3d8717,_0x1e0a78=_0x167dcd[_0x468909('0x68f')]()['title'](_0x468909('0xf8a'))[_0x468909('0x53e')](_0x468909('0x431'))[_0x468909('0x4d1')](_0x468909('0x431'))[_0x468909('0x1345')](_0x5aab2d)['ok']('Ok')[_0x468909('0x2c1')](_0x468909('0x8a3'));return _0x167dcd['show'](_0x1e0a78)[_0x468909('0xe19')](function(_0x18c10f){var _0xe274f6=_0x468909;if(_0x18c10f)return _0x48b6e1['tag'][_0xe274f6('0xe5e')]({'name':_0x18c10f});else _0x511a1a['error']({'title':_0xe274f6('0xb44'),'msg':'Invalid\x20tag\x20name.'});})['then'](function(_0x4fe3a){var _0x37c280=_0x468909;_0x4fe3a&&(_0xf27440['tags']['rows']['push'](_0x4fe3a),_0x511a1a['success']({'title':_0x37c280('0x1074'),'msg':_0x4fe3a[_0x37c280('0x2037')]?_0x4fe3a[_0x37c280('0x2623')]+_0x37c280('0x105f'):''}));});}function _0x524dc5(_0x37944e,_0x49c191){var _0x48ee3e=_0x3d8717,_0x19de50=JSON['parse'](_0x49c191);_0x167dcd[_0x48ee3e('0x26b2')]({'controller':_0x48ee3e('0x2317'),'controllerAs':'vm','templateUrl':_0x2ca8e6,'parent':angular[_0x48ee3e('0x24a1')](_0x5cdbae[_0x48ee3e('0x19b2')]),'clickOutsideToClose':![],'locals':{'lists':_0x5043a8,'companies':_0x9cff25,'file':_0x19de50[_0x48ee3e('0x2c0')],'fields':_0x19de50[_0x48ee3e('0x1d17')],'license':_0xf27440[_0x48ee3e('0x5c1')]}})['then'](function(){var _0x1e471a=_0x48ee3e;_0xf27440[_0x1e471a('0xbd8')]();})[_0x48ee3e('0x223b')](function(){var _0x1bdb0e=_0x48ee3e;console[_0x1bdb0e('0x8c8')]();});}function _0x548273(_0x1ee527){var _0x4edc5e=_0x3d8717;_0x9ba358['go'](_0x4edc5e('0x521'),{'id':_0x1ee527['id'],'crudPermissions':_0xf27440[_0x4edc5e('0xb3d')]});}function _0x5cbaac(_0x32a0a3,_0x154183){var _0x26e6bf=_0x3d8717,_0x27c55d=_0x167dcd['confirm']()['title'](_0x26e6bf('0xfd3'))[_0x26e6bf('0x221c')](_0x26e6bf('0xab2')+(_0x32a0a3[_0x26e6bf('0x2566')]||_0x32a0a3[_0x26e6bf('0x1211')]||_0x32a0a3['phone']||_0x26e6bf('0x1286'))+_0x26e6bf('0x27bb')+_0x26e6bf('0x21bd'))[_0x26e6bf('0x4d1')](_0x26e6bf('0x2f'))[_0x26e6bf('0x1345')](_0x154183)['ok']('OK')[_0x26e6bf('0x2c1')](_0x26e6bf('0x17'));_0x167dcd[_0x26e6bf('0x26b2')](_0x27c55d)[_0x26e6bf('0xe19')](function(){_0x516446(_0x32a0a3);});}function _0x3ee0cb(_0x4f1665){var _0x4a90d8=_0x3d8717,_0x21f780=[_0x4a90d8('0x232b')];if(!_0x32d445()[_0x4a90d8('0x1c43')](_0x21f780,_0x4f1665['getExtension']()))return _0x511a1a[_0x4a90d8('0x8c8')]({'title':_0x4a90d8('0x11b6')+_0x4f1665[_0x4a90d8('0x23df')](),'msg':'Supported\x20extension:\x20'+_0x21f780[_0x4a90d8('0x1537')]()}),![];if(_0x4f1665[_0x4a90d8('0x1aea')]>_0x1823b8)return _0x511a1a[_0x4a90d8('0x8c8')]({'title':_0x4a90d8('0x16c9'),'msg':_0x4a90d8('0x275f')+_0x274a4a+'MB'}),![];return!![];}var _0x2e1ed3=!![],_0x281fc2=0x1;_0x32cfd3[_0x3d8717('0x107')](_0x3d8717('0x20cb'),function(_0x28eea3,_0x3bed01){var _0x4d657e=_0x3d8717;_0x2e1ed3?_0x262fa6(function(){_0x2e1ed3=![];}):(!_0x3bed01&&(_0x281fc2=_0xf27440[_0x4d657e('0xa16')]['page']),_0x28eea3!==_0x3bed01&&(_0xf27440[_0x4d657e('0xa16')][_0x4d657e('0xc08')]=0x1),!_0x28eea3&&(_0xf27440[_0x4d657e('0xa16')][_0x4d657e('0xc08')]=_0x281fc2),_0xf27440[_0x4d657e('0xbd8')]());},!![]),_0x32cfd3[_0x3d8717('0x107')](_0x3d8717('0x23ed'),function(_0x2298c4,_0x2b906a){var _0x1b6caf=_0x3d8717;_0x2298c4!==_0x2b906a&&(_0xf27440['query'][_0x1b6caf('0x2463')]=_0xf27440[_0x1b6caf('0x1922')]||undefined,_0xf27440[_0x1b6caf('0xbd8')]());}),_0x32cfd3[_0x3d8717('0x107')](_0x3d8717('0x20fb'),function(_0x2bc689,_0x585f93){var _0x1b548d=_0x3d8717;_0x2bc689!==_0x585f93&&(_0xf27440[_0x1b548d('0xa16')][_0x1b548d('0x11a4')]=_0xf27440[_0x1b548d('0x1392')]||undefined,_0xf27440['getContacts']());}),_0x32cfd3[_0x3d8717('0x107')](_0x3d8717('0x23b9'),function(_0x5321e7,_0x2bcc67){var _0x2132b0=_0x3d8717;(_0x5321e7[_0x2132b0('0x25ae')]||_0x2bcc67['length'])&&_0xf27440[_0x2132b0('0xbd8')]();});function _0x28afc0(_0x390d7f){var _0x262e95=_0x3d8717;_0xf27440[_0x262e95('0x4b1')]=_0x390d7f||{'count':0x0,'rows':[]};}function _0x372bda(){var _0x5eec1e=_0x3d8717;_0xf27440['query'][_0x5eec1e('0xab0')]=(_0xf27440[_0x5eec1e('0xa16')][_0x5eec1e('0xc08')]-0x1)*_0xf27440[_0x5eec1e('0xa16')][_0x5eec1e('0x1b6d')],_0x3bb711[_0x5eec1e('0x179e')](_0x5eec1e('0xd14'))?_0xf27440[_0x5eec1e('0x9c8')]=_0x48b6e1['cmContact'][_0x5eec1e('0x22d5')](_0xf27440[_0x5eec1e('0xa16')],_0x28afc0)['$promise']:(_0xf27440[_0x5eec1e('0xa16')]['id']=_0xf27440[_0x5eec1e('0x154f')]['id'],_0xf27440[_0x5eec1e('0xa16')][_0x5eec1e('0x2463')]=!_0xf27440[_0x5eec1e('0xa16')][_0x5eec1e('0x2463')]?_0x32d445()['map'](_0xf27440[_0x5eec1e('0x9f8')]['rows'],'id'):_0xf27440[_0x5eec1e('0xa16')][_0x5eec1e('0x2463')],_0xf27440[_0x5eec1e('0xa16')][_0x5eec1e('0x11a4')]=!_0xf27440[_0x5eec1e('0xa16')]['CompanyId']?_0x32d445()(_0xf27440[_0x5eec1e('0xcca')]['rows'])[_0x5eec1e('0x2891')]({'canSelect':undefined})[_0x5eec1e('0x65a')]('id')[_0x5eec1e('0x2')]():_0xf27440[_0x5eec1e('0xa16')][_0x5eec1e('0x11a4')],_0xf27440[_0x5eec1e('0xa16')][_0x5eec1e('0x1e59')]=_0x5eec1e('0xd89'),_0xf27440['promise']=_0x48b6e1[_0x5eec1e('0x154f')][_0x5eec1e('0x14e6')](_0xf27440[_0x5eec1e('0xa16')],_0x28afc0)[_0x5eec1e('0xe59')]);}function _0x36ba6f(_0x3640e1,_0x4ef603){var _0x4215e9=_0x3d8717;_0x4ef603&&_0x4ef603[_0x4215e9('0x23d0')]&&(_0x4ef603[_0x4215e9('0x23d0')]=new Date(_0x4ef603[_0x4215e9('0x23d0')])),_0x167dcd['show']({'controller':_0x4215e9('0x1ee3'),'controllerAs':'vm','templateUrl':_0x3723fc,'parent':angular[_0x4215e9('0x24a1')](_0x5cdbae[_0x4215e9('0x19b2')]),'targetEvent':_0x3640e1,'clickOutsideToClose':!![],'locals':{'ListId':_0xf27440['query'][_0x4215e9('0x2463')]||_0x9ba358[_0x4215e9('0x2ef')][_0x4215e9('0x2463')],'CompanyId':_0xf27440[_0x4215e9('0xa16')]['CompanyId']||_0x9ba358[_0x4215e9('0x2ef')][_0x4215e9('0x11a4')],'contact':_0x4ef603,'contacts':_0xf27440[_0x4215e9('0x4b1')][_0x4215e9('0x16a7')],'companies':_0xf27440['companies'],'lists':_0xf27440[_0x4215e9('0x9f8')],'setting':null,'crudPermissions':_0xf27440[_0x4215e9('0xb3d')]}});}function _0x136155(_0x5cfc6a,_0x2409f7){var _0x25a909=_0x3d8717;_0x167dcd[_0x25a909('0x26b2')]({'controller':_0x25a909('0x1901'),'controllerAs':'vm','templateUrl':_0x189c18,'parent':angular[_0x25a909('0x24a1')](_0x5cdbae[_0x25a909('0x19b2')]),'targetEvent':_0x5cfc6a,'clickOutsideToClose':!![],'resolve':{'contact':[_0x25a909('0x292'),function _0x3b14a9(_0x500af9){var _0x58c60d=_0x25a909;return _0x500af9[_0x58c60d('0xcd6')]('cmContact@get',{'id':_0x2409f7['id']});}],'lists':[_0x25a909('0x292'),_0x25a909('0x2730'),function _0x6972e6(_0x477e24,_0xf6d8e1){var _0x3d7e9d=_0x25a909;return _0xf6d8e1['hasRole'](_0x3d7e9d('0xd14'))?_0x477e24['resolve'](_0x3d7e9d('0x1004'),{'fields':'id,name','nolimit':!![]}):_0x477e24['resolve'](_0x3d7e9d('0x197d'),{'id':_0xf6d8e1[_0x3d7e9d('0x1ef8')]()[_0x3d7e9d('0x1d04')],'section':_0x3d7e9d('0x2697'),'fields':'id,name','nolimit':!![]});}]},'locals':{'contacts':_0xf27440[_0x25a909('0x4b1')]['rows']}});}function _0x1444f0(_0x341f38,_0x2b71fe){var _0x45de7f=_0x3d8717;_0x167dcd[_0x45de7f('0x26b2')]({'controller':_0x45de7f('0x1a88'),'controllerAs':'vm','templateUrl':_0x548c5c,'parent':angular[_0x45de7f('0x24a1')](_0x5cdbae['body']),'targetEvent':_0x341f38,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function _0x5f3c1f(_0x327806){var _0x342cf5=_0x45de7f;return _0x327806[_0x342cf5('0xcd6')](_0x342cf5('0x1995'),{'id':_0x2b71fe['id']});}],'lists':[_0x45de7f('0x292'),_0x45de7f('0x2730'),function _0x38aba5(_0x3a2a1b,_0x2ea5a5){var _0x1f44a2=_0x45de7f;return _0x2ea5a5[_0x1f44a2('0x179e')]('admin')?_0x3a2a1b['resolve'](_0x1f44a2('0x1004'),{'fields':_0x1f44a2('0x104'),'nolimit':!![]}):_0x3a2a1b[_0x1f44a2('0xcd6')](_0x1f44a2('0x197d'),{'id':_0x2ea5a5[_0x1f44a2('0x1ef8')]()[_0x1f44a2('0x1d04')],'section':_0x1f44a2('0x2697'),'fields':_0x1f44a2('0x104'),'nolimit':!![]});}]},'locals':{'contacts':_0xf27440['contacts']['rows']}});}function _0x516446(_0x39f273){var _0x59449f=_0x3d8717;_0x48b6e1[_0x59449f('0x1711')][_0x59449f('0x229e')]({'id':_0x39f273['id']})[_0x59449f('0xe59')][_0x59449f('0xe19')](function(){var _0x294cd0=_0x59449f;_0x32d445()[_0x294cd0('0xa8b')](_0xf27440[_0x294cd0('0x4b1')][_0x294cd0('0x16a7')],{'id':_0x39f273['id']}),_0xf27440['contacts']['count']-=0x1,!_0xf27440[_0x294cd0('0x4b1')][_0x294cd0('0x16a7')][_0x294cd0('0x25ae')]&&_0xf27440['getContacts'](),_0x511a1a[_0x294cd0('0x425')]({'title':_0x294cd0('0x27c8'),'msg':_0x39f273[_0x294cd0('0x2623')]?_0x39f273[_0x294cd0('0x2623')]+_0x294cd0('0x2182'):''});})['catch'](function(_0x346c94){var _0xe21572=_0x59449f;if(_0x346c94[_0xe21572('0x11d0')]&&_0x346c94[_0xe21572('0x11d0')][_0xe21572('0xcd2')]&&_0x346c94['data'][_0xe21572('0xcd2')][_0xe21572('0x25ae')]){_0xf27440[_0xe21572('0xcd2')]=_0x346c94[_0xe21572('0x11d0')][_0xe21572('0xcd2')]||[{'message':_0x346c94[_0xe21572('0x94f')](),'type':_0xe21572('0x28d')}];for(var _0x5dd01e=0x0;_0x5dd01e<_0x346c94[_0xe21572('0x11d0')][_0xe21572('0xcd2')][_0xe21572('0x25ae')];_0x5dd01e++){_0x511a1a[_0xe21572('0x8c8')]({'title':_0x346c94[_0xe21572('0x11d0')][_0xe21572('0xcd2')][_0x5dd01e]['type'],'msg':_0x346c94[_0xe21572('0x11d0')][_0xe21572('0xcd2')][_0x5dd01e]['message']});}}else _0x511a1a[_0xe21572('0x8c8')]({'title':_0x346c94[_0xe21572('0x2833')]?'API:'+_0x346c94[_0xe21572('0x2833')]+_0xe21572('0x1b7c')+_0x346c94['statusText']:_0xe21572('0x28d'),'msg':_0x346c94[_0xe21572('0x11d0')]?JSON[_0xe21572('0x3ad')](_0x346c94[_0xe21572('0x11d0')]['message']):_0x346c94[_0xe21572('0x27e8')]||_0x346c94[_0xe21572('0x94f')]()});});}function _0x1cc5a7(){var _0x397454=_0x3d8717,_0x31a1b1=angular['copy'](_0xf27440[_0x397454('0x27fe')]);return _0xf27440[_0x397454('0x27fe')]=[],_0x31a1b1;}function _0x1f6a67(_0x3cf9e1){var _0x2e6872=_0x3d8717,_0x4bab4b=_0x167dcd[_0x2e6872('0xa5')]()[_0x2e6872('0x13e4')](_0x2e6872('0x25fb'))[_0x2e6872('0x221c')](_0x2e6872('0xab2')+_0xf27440[_0x2e6872('0x27fe')]['length']+_0x2e6872('0x5bc')+_0x2e6872('0x21bd'))[_0x2e6872('0x4d1')]('delete\x20Contacts')[_0x2e6872('0x1345')](_0x3cf9e1)['ok']('OK')['cancel'](_0x2e6872('0x17'));_0x167dcd[_0x2e6872('0x26b2')](_0x4bab4b)[_0x2e6872('0xe19')](function(){var _0x2514a5=_0x2e6872;_0xf27440[_0x2514a5('0x27fe')][_0x2514a5('0x1d7e')](function(_0x35238f){_0x516446(_0x35238f);}),_0xf27440[_0x2514a5('0x27fe')]=[];});}function _0x587146(){_0xf27440['selectedContacts']=[];}function _0x242d5a(){var _0x3043e3=_0x3d8717;_0xf27440[_0x3043e3('0x27fe')]=_0xf27440[_0x3043e3('0x4b1')][_0x3043e3('0x16a7')];}}const _0x5e83b5=_0x327027;_0x57e8ca[_0xb635d2('0xb0c')]=['$mdDialog','toasty',_0xb635d2('0x4b1'),_0xb635d2('0x9f8'),_0xb635d2('0xcca'),_0xb635d2('0xd9a'),_0xb635d2('0x2463'),'CompanyId','api','crudPermissions'];function _0x57e8ca(_0x495233,_0x3b5df8,_0x1f4f3e,_0x2ffb3d,_0x453882,_0x7c721b,_0xd3f2f6,_0x51cdb4,_0x3e46b7,_0x44bbd5){var _0x476b6c=_0xb635d2,_0x5dfb06=this;_0x5dfb06['errors']=[],_0x5dfb06[_0x476b6c('0x13e4')]=_0x476b6c('0x1c9a'),_0x5dfb06[_0x476b6c('0xb3d')]=_0x44bbd5,_0x5dfb06['contact']=angular[_0x476b6c('0x89')](_0x7c721b),_0x5dfb06['contacts']=_0x1f4f3e||{'rows':[],'count':0x0},_0x5dfb06[_0x476b6c('0x9f8')]=_0x2ffb3d||{'rows':[],'count':0x0},_0x5dfb06[_0x476b6c('0xcca')]=_0x453882||{'rows':[],'count':0x0},_0x5dfb06['customFields']={'rows':[],'count':0x0},_0x5dfb06['newContact']=![];!_0x5dfb06[_0x476b6c('0xd9a')]?(_0x5dfb06[_0x476b6c('0xd9a')]={'ListId':_0xd3f2f6?parseInt(_0xd3f2f6,0xa):undefined,'CompanyId':_0x51cdb4?parseInt(_0x51cdb4,0xa):undefined},_0x5dfb06['title']='CONTACTMANAGER.NEW_CONTACT',_0x5dfb06[_0x476b6c('0x285')]=!![]):(delete _0x5dfb06[_0x476b6c('0xd9a')]['List'],_0x5dfb06[_0x476b6c('0x2463')]=_0x5dfb06[_0x476b6c('0xd9a')][_0x476b6c('0x2463')]||undefined);_0x5dfb06[_0x476b6c('0x719')]=_0x58080e,_0x5dfb06[_0x476b6c('0x14b0')]=_0x51419e,_0x5dfb06[_0x476b6c('0x24cb')]=_0x2b6bb3,_0x5dfb06[_0x476b6c('0x2584')]=_0x110c48,_0x5dfb06[_0x476b6c('0xbef')]=_0x29db21,_0x5dfb06['getDateFromString']=_0x3e26dc;function _0x58080e(){var _0x1aba0f=_0x476b6c;_0x5dfb06[_0x1aba0f('0xcd2')]=[],_0x3e46b7['cmContact'][_0x1aba0f('0xe5e')](_0x5dfb06['contact'])[_0x1aba0f('0xe59')][_0x1aba0f('0xe19')](function(_0x5b81c8){var _0x546337=_0x1aba0f;_0x5dfb06[_0x546337('0x4b1')][_0x546337('0x14c9')](_0x5b81c8),_0x3b5df8[_0x546337('0x425')]({'title':_0x546337('0x2242'),'msg':_0x5dfb06[_0x546337('0xd9a')][_0x546337('0x2623')]?_0x5dfb06[_0x546337('0xd9a')][_0x546337('0x2623')]+_0x546337('0x105f'):''}),_0x110c48();})[_0x1aba0f('0x223b')](function(_0x3a4bd7){var _0x196828=_0x1aba0f;if(_0x3a4bd7[_0x196828('0x11d0')]&&_0x3a4bd7['data'][_0x196828('0xcd2')]&&_0x3a4bd7['data'][_0x196828('0xcd2')][_0x196828('0x25ae')]){_0x5dfb06[_0x196828('0xcd2')]=_0x3a4bd7[_0x196828('0x11d0')][_0x196828('0xcd2')]||[{'message':_0x3a4bd7['toString'](),'type':'api.user.save'}];for(var _0xa09073=0x0;_0xa09073<_0x3a4bd7['data'][_0x196828('0xcd2')][_0x196828('0x25ae')];_0xa09073++){_0x3b5df8[_0x196828('0x8c8')]({'title':_0x3a4bd7['data'][_0x196828('0xcd2')][_0xa09073]['type'],'msg':_0x3a4bd7[_0x196828('0x11d0')][_0x196828('0xcd2')][_0xa09073][_0x196828('0x27e8')]});}}else _0x3b5df8[_0x196828('0x8c8')]({'title':_0x3a4bd7[_0x196828('0x2833')]?'API:'+_0x3a4bd7['status']+_0x196828('0x1b7c')+_0x3a4bd7[_0x196828('0x1fd7')]:_0x196828('0x429'),'msg':_0x3a4bd7['data']?JSON[_0x196828('0x3ad')](_0x3a4bd7[_0x196828('0x11d0')][_0x196828('0x27e8')]):_0x3a4bd7['toString']()});});}function _0x51419e(){var _0x419426=_0x476b6c;_0x5dfb06[_0x419426('0xcd2')]=[],_0x3e46b7[_0x419426('0x1711')][_0x419426('0xa70')]({'id':_0x5dfb06[_0x419426('0xd9a')]['id']},_0x5dfb06[_0x419426('0xd9a')])[_0x419426('0xe59')][_0x419426('0xe19')](function(_0x1b3e88){var _0x1be6fb=_0x419426,_0x1bed2f=_0x32d445()[_0x1be6fb('0xf15')](_0x5dfb06[_0x1be6fb('0x4b1')],{'id':_0x1b3e88['id']});_0x1bed2f&&_0x32d445()['merge'](_0x1bed2f,_0x1b3e88),_0x3b5df8['success']({'title':_0x1be6fb('0x1ccd'),'msg':_0x5dfb06['contact'][_0x1be6fb('0x2623')]?_0x5dfb06['contact'][_0x1be6fb('0x2623')]+_0x1be6fb('0x1c19'):''}),_0x110c48();})[_0x419426('0x223b')](function(_0x631b0e){var _0x5d7046=_0x419426;if(_0x631b0e[_0x5d7046('0x11d0')]&&_0x631b0e[_0x5d7046('0x11d0')]['errors']&&_0x631b0e[_0x5d7046('0x11d0')][_0x5d7046('0xcd2')][_0x5d7046('0x25ae')]){_0x5dfb06['errors']=_0x631b0e[_0x5d7046('0x11d0')][_0x5d7046('0xcd2')]||[{'message':_0x631b0e['toString'](),'type':_0x5d7046('0x8c2')}];for(var _0x136c5d=0x0;_0x136c5d<_0x631b0e[_0x5d7046('0x11d0')][_0x5d7046('0xcd2')]['length'];_0x136c5d++){_0x3b5df8[_0x5d7046('0x8c8')]({'title':_0x631b0e[_0x5d7046('0x11d0')][_0x5d7046('0xcd2')][_0x136c5d]['type'],'msg':_0x631b0e[_0x5d7046('0x11d0')][_0x5d7046('0xcd2')][_0x136c5d][_0x5d7046('0x27e8')]});}}else _0x3b5df8[_0x5d7046('0x8c8')]({'title':_0x631b0e[_0x5d7046('0x2833')]?'API:'+_0x631b0e[_0x5d7046('0x2833')]+_0x5d7046('0x1b7c')+_0x631b0e[_0x5d7046('0x1fd7')]:_0x5d7046('0x8c2'),'msg':_0x631b0e[_0x5d7046('0x11d0')]?JSON[_0x5d7046('0x3ad')](_0x631b0e['data'][_0x5d7046('0x27e8')]):_0x631b0e['toString']()});});}function _0x29db21(_0x13032c){var _0xeb9b2=_0x476b6c;if(_0x13032c)return _0x3e46b7[_0xeb9b2('0x1bbd')]['getCustomFields']({'id':_0x13032c})[_0xeb9b2('0xe59')]['then'](function(_0x48b88f){var _0x55791a=_0xeb9b2;if(_0x48b88f){_0x5dfb06[_0x55791a('0x6f2')]=_0x48b88f;var _0x50edc1=_0x32d445()[_0x55791a('0x65a')](_0x5dfb06[_0x55791a('0x6f2')]['rows'],function(_0x1f821e){var _0xd8e258=_0x55791a;return _0xd8e258('0x1441')+_0x1f821e['id'];});_0x3e46b7[_0x55791a('0x1711')][_0x55791a('0x22d5')]({'id':_0x5dfb06['contact']['id'],'attributes':_0x50edc1,'raw':!![]})[_0x55791a('0xe59')][_0x55791a('0xe19')](function(_0x40ca6b){var _0x40a3b5=_0x55791a;_0x5dfb06[_0x40a3b5('0xd9a')]=_0x32d445()['merge'](_0x5dfb06[_0x40a3b5('0xd9a')],_0x40ca6b);});}})[_0xeb9b2('0x223b')](function(_0x155591){var _0x2fba3a=_0xeb9b2;console[_0x2fba3a('0x8c8')](_0x155591);});else _0x5dfb06['customFields']={'rows':[],'count':0x0};}function _0x2b6bb3(_0x4ff12c){var _0x4d1900=_0x476b6c;_0x5dfb06['errors']=[];var _0x419bd5=_0x495233[_0x4d1900('0xa5')]()['title'](_0x4d1900('0x24d0'))['content'](_0x4d1900('0x7b7'))[_0x4d1900('0x4d1')](_0x4d1900('0xced'))['ok'](_0x4d1900('0x2198'))[_0x4d1900('0x2c1')](_0x4d1900('0x8a3'))['targetEvent'](_0x4ff12c);_0x495233[_0x4d1900('0x26b2')](_0x419bd5)[_0x4d1900('0xe19')](function(){var _0x3cb119=_0x4d1900;_0x3e46b7[_0x3cb119('0x1711')]['delete']({'id':_0x5dfb06['contact']['id']})['$promise']['then'](function(){var _0x5a0e8d=_0x3cb119;_0x32d445()[_0x5a0e8d('0xa8b')](_0x5dfb06[_0x5a0e8d('0x4b1')],{'id':_0x5dfb06[_0x5a0e8d('0xd9a')]['id']}),_0x3b5df8[_0x5a0e8d('0x425')]({'title':_0x5a0e8d('0xe05'),'msg':_0x5dfb06[_0x5a0e8d('0xd9a')]['name']?_0x5dfb06[_0x5a0e8d('0xd9a')][_0x5a0e8d('0x2623')]+_0x5a0e8d('0x2182'):''}),_0x110c48();})[_0x3cb119('0x223b')](function(_0x17b871){var _0x15f1b4=_0x3cb119;console[_0x15f1b4('0x8c8')](_0x17b871),_0x5dfb06[_0x15f1b4('0xcd2')]=_0x17b871['data'][_0x15f1b4('0xcd2')]||[{'message':_0x17b871['toString'](),'type':_0x15f1b4('0x28d')}];});},function(){});}function _0x3e26dc(_0x368db3){return _0x368db3===null?undefined:new Date(_0x368db3);}function _0x110c48(){var _0x3d27d0=_0x476b6c;_0x495233[_0x3d27d0('0x11ed')]();}}const _0x4efb72=_0x57e8ca;_0x35fa24[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0xd9a'),'contacts',_0xb635d2('0x9f8'),_0xb635d2('0xffc')];function _0x35fa24(_0x140dc0,_0x5acf88,_0x2ff093,_0x5b3fa4,_0x48c91a,_0x39a505){var _0x1c70a6=_0xb635d2,_0x51b1ea=this;_0x51b1ea[_0x1c70a6('0xcd2')]=[],_0x51b1ea[_0x1c70a6('0x13e4')]=_0x1c70a6('0x2707'),_0x51b1ea[_0x1c70a6('0xd9a')]=angular['copy'](_0x2ff093),_0x51b1ea['lists']=_0x48c91a||{'rows':[],'count':0x0},_0x51b1ea[_0x1c70a6('0x719')]=_0x164076,_0x51b1ea['closeDialog']=_0x3e27b8;function _0x164076(){var _0xd522bd=_0x1c70a6;_0x51b1ea['errors']=[],delete _0x51b1ea[_0xd522bd('0xd9a')]['id'],_0x51b1ea['contact'][_0xd522bd('0x1105')]&&!_0x51b1ea[_0xd522bd('0xd9a')][_0xd522bd('0x1105')][_0xd522bd('0x25ae')]&&delete _0x51b1ea[_0xd522bd('0xd9a')][_0xd522bd('0x1105')],_0x39a505[_0xd522bd('0x1711')]['save'](_0x51b1ea[_0xd522bd('0xd9a')])[_0xd522bd('0xe59')]['then'](function(_0x3a544b){var _0x36f226=_0xd522bd;_0x5b3fa4[_0x36f226('0x14c9')](_0x3a544b),_0x5acf88['success']({'title':'Contact\x20properly\x20created','msg':_0x51b1ea[_0x36f226('0xd9a')]['name']?_0x51b1ea['contact'][_0x36f226('0x2623')]+_0x36f226('0x105f'):''}),_0x3e27b8();})[_0xd522bd('0x223b')](function(_0x1dfd24){var _0x35819e=_0xd522bd;console['error'](_0x1dfd24),_0x51b1ea[_0x35819e('0xcd2')]=_0x1dfd24[_0x35819e('0x11d0')][_0x35819e('0xcd2')]||[{'message':_0x1dfd24['toString'](),'type':_0x35819e('0x103e')}];});}function _0x3e27b8(){var _0x30b922=_0x1c70a6;_0x140dc0[_0x30b922('0x11ed')]();}}const _0x58a9a5=_0x35fa24;_0x261b23[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x26d1'),'hopper',_0xb635d2('0xffc'),'crudPermissions'];function _0x261b23(_0x566429,_0x3ac0c7,_0x18b5c9,_0x7c6621,_0x511eac,_0x3497e8,_0x37b1dd,_0x546f60,_0x120188){var _0x37d6ed=_0xb635d2,_0x58a249=this;_0x58a249['errors']=[],_0x58a249[_0x37d6ed('0x13e4')]='CONTACTMANAGER.EDIT_HOPPER',_0x58a249['hopper']=angular['copy'](_0x37b1dd),_0x58a249[_0x37d6ed('0x26d1')]=_0x3497e8,_0x58a249[_0x37d6ed('0x210c')]=![],_0x58a249[_0x37d6ed('0xb3d')]=_0x120188;!_0x58a249[_0x37d6ed('0x11f0')]&&(_0x58a249[_0x37d6ed('0x11f0')]={},_0x58a249[_0x37d6ed('0x13e4')]='CONTACTMANAGER.NEW_HOPPER',_0x58a249[_0x37d6ed('0x210c')]=!![]);_0x58a249[_0x37d6ed('0x23c2')]=_0x9435b3,_0x58a249[_0x37d6ed('0x2635')]=_0x4f75d1,_0x58a249[_0x37d6ed('0x2584')]=_0x4fe36a;function _0x9435b3(){var _0x43b976=_0x37d6ed;_0x58a249[_0x43b976('0xcd2')]=[],_0x546f60[_0x43b976('0x2408')][_0x43b976('0xa70')]({'id':_0x58a249['hopper']['id']},_0x58a249[_0x43b976('0x11f0')])[_0x43b976('0xe59')]['then'](function(_0x5a8db1){var _0x1f07a3=_0x43b976,_0x3238d4=_0x32d445()['find'](_0x58a249[_0x1f07a3('0x26d1')],{'id':_0x5a8db1['id']});_0x3238d4&&_0x32d445()['merge'](_0x3238d4,_0x5a8db1),_0x511eac['success']({'title':_0x1f07a3('0x1ab6'),'msg':_0x58a249[_0x1f07a3('0x11f0')]['name']?_0x58a249[_0x1f07a3('0x11f0')][_0x1f07a3('0x2623')]+_0x1f07a3('0x1c19'):''}),_0x4fe36a(_0x5a8db1);})[_0x43b976('0x223b')](function(_0x4a6114){var _0x5bc6c1=_0x43b976;console[_0x5bc6c1('0x8c8')](_0x4a6114),_0x58a249[_0x5bc6c1('0xcd2')]=_0x4a6114[_0x5bc6c1('0x11d0')][_0x5bc6c1('0xcd2')]||[{'message':_0x4a6114[_0x5bc6c1('0x94f')](),'type':'api.cmHopper.update'}];});}function _0x4f75d1(_0x26c018){return _0x26c018===null?undefined:new Date(_0x26c018);}function _0x4fe36a(_0x20cba9){_0x7c6621['hide'](_0x20cba9);}}const _0x17002b=_0x261b23,_0x27ecd0=_0x59426a['p']+_0xb635d2('0x14a0');_0x494756[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$timeout','$state',_0xb635d2('0x1728'),'$mdDialog',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0xd9a'),'hoppers',_0xb635d2('0x91d'),_0xb635d2('0x169d'),_0xb635d2('0x4b1'),_0xb635d2('0xcca'),_0xb635d2('0x9f8'),_0xb635d2('0x6f2'),_0xb635d2('0x1105'),_0xb635d2('0x5d6'),_0xb635d2('0x5c1'),'Auth','userProfileSection'];function _0x494756(_0x1e64de,_0x461944,_0x157e69,_0x4779cb,_0x50b65e,_0x74e592,_0x24a52a,_0x3a6433,_0x4bbaeb,_0x904fd,_0x37df6e,_0x3501fc,_0x4f94b5,_0x130caf,_0x192940,_0x37acfb,_0x43fbd2,_0x5dc8dd,_0x2d4211,_0x5227b6,_0x2e9764){var _0xc7d7ff=_0xb635d2,_0x1d5e9b=this;_0x1d5e9b[_0xc7d7ff('0x15a5')]=_0x5227b6[_0xc7d7ff('0x1ef8')](),_0x1d5e9b['license']=_0x2d4211,_0x1d5e9b[_0xc7d7ff('0x2034')]=[],_0x1d5e9b[_0xc7d7ff('0xd9a')]=_0x4bbaeb||{},_0x1d5e9b[_0xc7d7ff('0x26d1')]=_0x904fd||{'rows':[],'count':0x0},_0x1d5e9b[_0xc7d7ff('0x91d')]=_0x37df6e||{'rows':[],'count':0x0},_0x1d5e9b[_0xc7d7ff('0x169d')]=_0x3501fc||{'rows':[],'count':0x0},_0x1d5e9b[_0xc7d7ff('0xcca')]=_0x130caf||{'rows':[],'count':0x0},_0x1d5e9b[_0xc7d7ff('0x9f8')]=_0x192940||{'rows':[],'count':0x0},_0x1d5e9b[_0xc7d7ff('0x6f2')]=_0x37acfb||{'rows':[],'count':0x0},_0x1d5e9b[_0xc7d7ff('0x1105')]=_0x43fbd2||{'rows':[],'count':0x0},_0x1d5e9b['jscriptySessions']=_0x5dc8dd||{'rows':[],'count':0x0},_0x1d5e9b[_0xc7d7ff('0xe04')]={'scrollEl':_0xc7d7ff('0x368')},_0x1d5e9b['firstDayMonth']=new Date(_0x4ddcaa()()[_0xc7d7ff('0x21b1')](_0xc7d7ff('0x211c'))['subtract'](0x1,_0xc7d7ff('0x8ec'))['utcOffset'](0x0,!![])['format']()),_0x1d5e9b['lastDayMonth']=new Date(_0x4ddcaa()()[_0xc7d7ff('0x270')](_0xc7d7ff('0x211c'))[_0xc7d7ff('0x19ed')](0x1,_0xc7d7ff('0x2103'))[_0xc7d7ff('0x1e9e')](0x0,!![])[_0xc7d7ff('0x5e5')]()),_0x1d5e9b['userProfileSection']=_0x2e9764&&_0x2e9764[_0xc7d7ff('0x148b')]==0x1?_0x2e9764['rows'][0x0]:null,_0x1d5e9b[_0xc7d7ff('0xb3d')]=_0x5227b6[_0xc7d7ff('0xd31')](_0x1d5e9b[_0xc7d7ff('0xb59')]?_0x1d5e9b[_0xc7d7ff('0xb59')][_0xc7d7ff('0xb3d')]:null),_0x1d5e9b[_0xc7d7ff('0x9dc')]=_0x32d445()[_0xc7d7ff('0x226f')]([{'option':_0xc7d7ff('0x18fc'),'value':_0xc7d7ff('0x414')},{'option':_0xc7d7ff('0x239c'),'value':_0xc7d7ff('0x14ef')},{'option':_0xc7d7ff('0x231d'),'value':_0xc7d7ff('0x18fd')},{'option':_0xc7d7ff('0x1d23'),'value':_0xc7d7ff('0xfd4')},{'option':'Lowest','value':'\x270\x27'}],function(_0x8764a){var _0x217b27=_0xc7d7ff;return _0x32d445()[_0x217b27('0x1b42')](_0x8764a['value'],new RegExp('\x27','g'),'');}),_0x1d5e9b['queryHopper']={'fields':'id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','sort':_0xc7d7ff('0x7e8'),'limit':0xa,'page':0x1},_0x1d5e9b[_0xc7d7ff('0x190d')]={'fields':'id,uniqueid,calleridnum,statedesc,starttime,disposition','sort':_0xc7d7ff('0x2289'),'limit':0xa,'page':0x1},_0x1d5e9b[_0xc7d7ff('0x73f')]={'fields':_0xc7d7ff('0x19f3'),'sort':_0xc7d7ff('0x2289'),'limit':0xa,'page':0x1},_0x1d5e9b['queryJscriptySession']={'fields':_0xc7d7ff('0xc64'),'sort':_0xc7d7ff('0xdb3'),'limit':0xa,'page':0x1},_0x1d5e9b[_0xc7d7ff('0xc7b')]=_0x157e69[_0xc7d7ff('0x2ef')][_0xc7d7ff('0x435')]||0x0,_0x1d5e9b['onInit']=_0x5eb3a4,_0x1d5e9b[_0xc7d7ff('0x1bb')]=_0x45f4e2,_0x1d5e9b[_0xc7d7ff('0x2202')]=_0x55423e,_0x1d5e9b[_0xc7d7ff('0x14b0')]=_0x466752,_0x1d5e9b[_0xc7d7ff('0xc44')]=_0x153b2e,_0x1d5e9b[_0xc7d7ff('0x269c')]=_0x40f932,_0x1d5e9b[_0xc7d7ff('0xe32')]=_0x517998,_0x1d5e9b[_0xc7d7ff('0x2635')]=_0xa522ad,_0x1d5e9b['getHoppers']=_0x5aa0a8,_0x1d5e9b[_0xc7d7ff('0x14f7')]=_0x44759d,_0x1d5e9b[_0xc7d7ff('0x7f2')]=_0x1ecfe5,_0x1d5e9b['getJscriptySessions']=_0x2b9adb,_0x1d5e9b[_0xc7d7ff('0x1d9e')]=_0x21795c,_0x1d5e9b[_0xc7d7ff('0x2574')]=_0x5285a9,_0x1d5e9b['createOrEditIvrCampaignHopper']=_0x4887e6,_0x1d5e9b[_0xc7d7ff('0x1556')]=_0x46c975;var _0x2e68b4=!![],_0x256100=0x1;_0x1e64de['$watch']('vm.queryHopper.filter',function(_0x2d4b93,_0x3d66f7){var _0x16f2ef=_0xc7d7ff;_0x2e68b4?_0x461944(function(){_0x2e68b4=![];}):(!_0x3d66f7&&(_0x256100=_0x1d5e9b[_0x16f2ef('0x2565')][_0x16f2ef('0xc08')]),_0x2d4b93!==_0x3d66f7&&(_0x1d5e9b['queryHopper'][_0x16f2ef('0xc08')]=0x1),!_0x2d4b93&&(_0x1d5e9b[_0x16f2ef('0x2565')]['page']=_0x256100),_0x1d5e9b[_0x16f2ef('0x2018')]());}),_0x1e64de[_0xc7d7ff('0x107')](_0xc7d7ff('0x24f6'),function(_0x342cfa,_0xdc879e){var _0x3327a8=_0xc7d7ff;_0x2e68b4?_0x461944(function(){_0x2e68b4=![];}):(!_0xdc879e&&(_0x256100=_0x1d5e9b['queryFinal'][_0x3327a8('0xc08')]),_0x342cfa!==_0xdc879e&&(_0x1d5e9b[_0x3327a8('0x190d')][_0x3327a8('0xc08')]=0x1),!_0x342cfa&&(_0x1d5e9b[_0x3327a8('0x190d')][_0x3327a8('0xc08')]=_0x256100),_0x1d5e9b[_0x3327a8('0x14f7')]());}),_0x1e64de[_0xc7d7ff('0x107')](_0xc7d7ff('0x1349'),function(_0x1bd5db,_0x17ac4e){var _0x5e2c89=_0xc7d7ff;_0x2e68b4?_0x461944(function(){_0x2e68b4=![];}):(!_0x17ac4e&&(_0x256100=_0x1d5e9b['queryHistory'][_0x5e2c89('0xc08')]),_0x1bd5db!==_0x17ac4e&&(_0x1d5e9b['queryHistory'][_0x5e2c89('0xc08')]=0x1),!_0x1bd5db&&(_0x1d5e9b[_0x5e2c89('0x73f')][_0x5e2c89('0xc08')]=_0x256100),_0x1d5e9b[_0x5e2c89('0x7f2')]());});function _0x3eef33(_0x27e9e0){var _0x1e91df=_0xc7d7ff;switch(_0x27e9e0){case'chat':return _0x1e91df('0x26ee');case _0x1e91df('0x26bf'):return _0x1e91df('0xf62');case _0x1e91df('0x2801'):return _0x1e91df('0x16c3');case _0x1e91df('0xaf2'):return _0x1e91df('0xed0');case _0x1e91df('0x625'):return _0x1e91df('0x1eaa');case'whatsapp':return _0x1e91df('0x2486');default:return _0x1e91df('0x1a54');}}function _0x46c975(_0x365d71){var _0x503767=_0xc7d7ff,_0x3edcf9='';if(_0x365d71[_0x503767('0xef3')])_0x3edcf9='fax';else{if(_0x365d71[_0x503767('0xf26')])_0x3edcf9='openchannel';else{if(_0x365d71[_0x503767('0x26a9')])_0x3edcf9='sms';else{if(_0x365d71[_0x503767('0xa20')])_0x3edcf9='mail';else{if(_0x365d71[_0x503767('0x365')])_0x3edcf9='chat';else _0x365d71[_0x503767('0x1f87')]&&(_0x3edcf9='voice');}}}}return _0x3eef33(_0x3edcf9);}function _0x2df9aa(_0x4769cc){return function(_0x1ab6ef){_0x1d5e9b[_0x4769cc]=_0x1ab6ef||{'count':0x0,'rows':[]};};}function _0x5eb3a4(){var _0x588eeb=_0xc7d7ff;return!_0x5227b6[_0x588eeb('0x179e')]('admin')&&(_0x82db61(),_0x113560()),_0x3a6433[_0x588eeb('0x10c6')][_0x588eeb('0x22d5')]({'fields':_0x588eeb('0x1e10'),'nolimit':!![]})['$promise'][_0x588eeb('0xe19')](function(_0x24dd59){var _0x26b92c=_0x588eeb;_0x1d5e9b[_0x26b92c('0x2526')]=_0x24dd59||{'count':0x0,'rows':[]},_0x1d5e9b['usersMap']=_0x32d445()[_0x26b92c('0x2483')](_0x32d445()[_0x26b92c('0x226f')](_0x1d5e9b[_0x26b92c('0x2526')]['rows'],'id'),_0x26b92c('0xe11')),_0x1d5e9b[_0x26b92c('0x1e7b')]=_0x32d445()['map'](_0x1d5e9b['contact'][_0x26b92c('0x1e7b')],'id');})[_0x588eeb('0xe19')](_0x357744(_0x4bbaeb));}function _0x82db61(){var _0x3a0fd3=_0xc7d7ff,_0x2c8142=_0x32d445()[_0x3a0fd3('0x201a')](_0x1d5e9b['companies'][_0x3a0fd3('0x16a7')],{'id':_0x1d5e9b[_0x3a0fd3('0xd9a')][_0x3a0fd3('0x11a4')]});if(!_0x2c8142)return _0x3a6433[_0x3a0fd3('0x24d1')][_0x3a0fd3('0x22d5')]({'id':_0x1d5e9b['contact'][_0x3a0fd3('0x11a4')],'fields':_0x3a0fd3('0x104')})[_0x3a0fd3('0xe59')][_0x3a0fd3('0xe19')](function(_0x14a032){var _0x123ded=_0x3a0fd3,_0x3a73f6=_0x14a032['toJSON']();_0x3a73f6[_0x123ded('0x1e9d')]=![],_0x1d5e9b[_0x123ded('0xcca')][_0x123ded('0x16a7')][_0x123ded('0xb76')](_0x3a73f6);})[_0x3a0fd3('0x223b')](function(_0x15f15b){var _0x237873=_0x3a0fd3;_0x24a52a[_0x237873('0x8c8')]({'title':_0x15f15b[_0x237873('0x2833')]?_0x237873('0x27f2')+_0x15f15b[_0x237873('0x2833')]+_0x237873('0x1b7c')+_0x15f15b[_0x237873('0x1fd7')]:'GET_COMPANY','msg':_0x15f15b[_0x237873('0x11d0')]?JSON[_0x237873('0x3ad')](_0x15f15b['data'][_0x237873('0x27e8')]):_0x15f15b[_0x237873('0x94f')]()});});}function _0x113560(){var _0x192bc1=_0xc7d7ff,_0xf88fca=_0x32d445()['map'](_0x1d5e9b[_0x192bc1('0xd9a')][_0x192bc1('0x1e7b')],function(_0x487798){var _0x217626=_0x192bc1;return{'id':_0x487798['id'],'name':_0x487798[_0x217626('0x2623')]};});if(!_0x32d445()[_0x192bc1('0x14b4')](_0xf88fca))for(var _0x5d84a0=0x0;_0x5d84a0<_0xf88fca[_0x192bc1('0x25ae')];_0x5d84a0++){!_0x32d445()[_0x192bc1('0x201a')](_0x1d5e9b[_0x192bc1('0x1105')][_0x192bc1('0x16a7')],{'id':_0xf88fca['id']})&&(_0xf88fca[_0x5d84a0]['canSelect']=![],_0x1d5e9b[_0x192bc1('0x1105')]['rows'][_0x192bc1('0xb76')](_0xf88fca[_0x5d84a0]));}}function _0x2213b8(_0x67b3b9){var _0x216b8e=_0xc7d7ff;if(!_0x67b3b9['disposition'])return'('+_0x74e592['instant'](_0x216b8e('0x1970'))+')';var _0x359b22=_0x32d445()[_0x216b8e('0x289b')]([_0x67b3b9['disposition'],_0x67b3b9[_0x216b8e('0xa43')],_0x67b3b9[_0x216b8e('0x1b01')]]);return'('+_0x359b22[_0x216b8e('0x1537')](_0x216b8e('0x1b7c'))+')';}function _0x5dc400(_0x51d240){var _0x4763ca=_0xc7d7ff;_0x51d240&&_0x51d240[_0x4763ca('0x148b')]&&_0x51d240[_0x4763ca('0x16a7')][_0x4763ca('0x25ae')]&&(_0x1d5e9b['journey']=_0x32d445()[_0x4763ca('0x1007')](_0x1d5e9b[_0x4763ca('0x2034')],_0x51d240[_0x4763ca('0x16a7')]),_0x1d5e9b[_0x4763ca('0x2034')][_0x4763ca('0x1d7e')](function(_0x3c8199){var _0x7111c6=_0x4763ca;_0x3c8199[_0x7111c6('0x1b11')]=_0x2213b8(_0x3c8199);}));}function _0x357744(_0x1c66ab){var _0x2e36b8=_0xc7d7ff,_0x4e0f76=[_0x2e36b8('0x26bf'),'chat',_0x2e36b8('0x2801'),'openchannel',_0x2e36b8('0x625')];if(_0x1c66ab&&_0x1c66ab['id']){for(var _0x1fb6e0=0x0;_0x1fb6e0<_0x4e0f76[_0x2e36b8('0x25ae')];_0x1fb6e0++){_0x3a6433[_0x4e0f76[_0x1fb6e0]+_0x2e36b8('0x764')][_0x2e36b8('0x22d5')]({'ContactId':_0x1c66ab['id'],'includeAll':!![]})['$promise'][_0x2e36b8('0xe19')](_0x5dc400);}_0x3a6433[_0x2e36b8('0x496')]['get']({'ContactId':_0x1c66ab['id'],'includeAll':!![]})['$promise'][_0x2e36b8('0xe19')](_0x5dc400)[_0x2e36b8('0x223b')](function(_0x17ee2e){var _0x23dafb=_0x2e36b8;console[_0x23dafb('0x8c8')](_0x17ee2e);});}}function _0x5285a9(_0x542f47,_0x6be25f){var _0x17e9f3=_0xc7d7ff;_0x50b65e[_0x17e9f3('0x26b2')]({'controller':'CreateOrEditHopperVoiceQueueIdDialogController','controllerAs':'vm','templateUrl':_0xd9ffbb,'parent':angular['element'](_0x4779cb[_0x17e9f3('0x19b2')]),'targetEvent':_0x542f47,'clickOutsideToClose':!![],'locals':{'hopper':_0x6be25f,'hoppers':_0x1d5e9b['hoppers'][_0x17e9f3('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x1d5e9b[_0x17e9f3('0xb3d')]}});}function _0x4887e6(_0x10c4ae,_0x14a6a4){var _0x1f68bb=_0xc7d7ff;_0x50b65e[_0x1f68bb('0x26b2')]({'controller':_0x1f68bb('0x13e7'),'controllerAs':'vm','templateUrl':_0x27ecd0,'parent':angular[_0x1f68bb('0x24a1')](_0x4779cb['body']),'targetEvent':_0x10c4ae,'clickOutsideToClose':!![],'locals':{'hopper':_0x14a6a4,'hoppers':_0x1d5e9b['hoppers'][_0x1f68bb('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x1d5e9b[_0x1f68bb('0xb3d')]}});}function _0x21795c(_0x542ca2,_0x38a31d){var _0x565469=_0xc7d7ff,_0xf98ea4=_0x50b65e[_0x565469('0xa5')]()[_0x565469('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20agent?')['htmlContent'](''+(_0x542ca2[_0x565469('0x1ef5')]||'hopper')+_0x565469('0x27bb')+_0x565469('0x21bd'))[_0x565469('0x4d1')](_0x565469('0xdcd'))[_0x565469('0x1345')](_0x38a31d)['ok']('OK')[_0x565469('0x2c1')](_0x565469('0x17'));_0x50b65e[_0x565469('0x26b2')](_0xf98ea4)['then'](function(){_0x4595f9(_0x542ca2);},function(){var _0x46a5ea=_0x565469;console[_0x46a5ea('0x1fe9')](_0x46a5ea('0x17'));});}function _0x4595f9(_0x4df9b6){var _0x280027=_0xc7d7ff;return _0x3a6433[_0x280027('0x2408')][_0x280027('0x229e')]({'id':_0x4df9b6['id']})[_0x280027('0xe59')][_0x280027('0xe19')](function(){var _0x45e066=_0x280027;_0x32d445()[_0x45e066('0xa8b')](_0x1d5e9b['hoppers'][_0x45e066('0x16a7')],{'id':_0x4df9b6['id']}),_0x1d5e9b[_0x45e066('0x26d1')][_0x45e066('0x148b')]--,!_0x1d5e9b[_0x45e066('0x26d1')][_0x45e066('0x16a7')]['length']&&_0x1d5e9b[_0x45e066('0x2018')](),_0x24a52a[_0x45e066('0x425')]({'title':'Hopper\x20deleted!','msg':_0x4df9b6[_0x45e066('0x1ef5')]?_0x4df9b6[_0x45e066('0x1ef5')]+_0x45e066('0x2182'):''});})[_0x280027('0x223b')](function(_0x450fb1){var _0x255161=_0x280027;_0x24a52a[_0x255161('0x8c8')]({'title':_0x450fb1[_0x255161('0x2833')]?_0x255161('0x27f2')+_0x450fb1[_0x255161('0x2833')]+_0x255161('0x1b7c')+_0x450fb1[_0x255161('0x1fd7')]:'SYSTEM:DELETEhopper','msg':_0x450fb1['data']?JSON[_0x255161('0x3ad')](_0x450fb1[_0x255161('0x11d0')]):_0x450fb1[_0x255161('0x94f')]()});});}function _0x5aa0a8(){var _0x253ca0=_0xc7d7ff;_0x1d5e9b['queryHopper'][_0x253ca0('0xab0')]=(_0x1d5e9b[_0x253ca0('0x2565')]['page']-0x1)*_0x1d5e9b[_0x253ca0('0x2565')]['limit'],_0x1d5e9b[_0x253ca0('0x2565')]['id']=_0x1d5e9b[_0x253ca0('0xd9a')]['id'],_0x1d5e9b[_0x253ca0('0x9c8')]=_0x3a6433['cmContact'][_0x253ca0('0x2018')](_0x1d5e9b[_0x253ca0('0x2565')],_0x2df9aa(_0x253ca0('0x26d1')))[_0x253ca0('0xe59')];}function _0x44759d(){var _0x1b2f13=_0xc7d7ff;_0x1d5e9b[_0x1b2f13('0x190d')][_0x1b2f13('0xab0')]=(_0x1d5e9b['queryFinal'][_0x1b2f13('0xc08')]-0x1)*_0x1d5e9b[_0x1b2f13('0x190d')][_0x1b2f13('0x1b6d')],_0x1d5e9b[_0x1b2f13('0x190d')]['id']=_0x1d5e9b[_0x1b2f13('0xd9a')]['id'],_0x1d5e9b[_0x1b2f13('0x9c8')]=_0x3a6433[_0x1b2f13('0x1711')]['getHopperFinals'](_0x1d5e9b[_0x1b2f13('0x190d')],_0x2df9aa('finals'))['$promise'];}function _0x1ecfe5(){var _0xf59a2=_0xc7d7ff;_0x1d5e9b[_0xf59a2('0x73f')][_0xf59a2('0xab0')]=(_0x1d5e9b[_0xf59a2('0x73f')]['page']-0x1)*_0x1d5e9b['queryHistory'][_0xf59a2('0x1b6d')],_0x1d5e9b['queryHistory']['id']=_0x1d5e9b[_0xf59a2('0xd9a')]['id'],_0x1d5e9b[_0xf59a2('0x9c8')]=_0x3a6433[_0xf59a2('0x1711')]['getHopperHistories'](_0x1d5e9b[_0xf59a2('0x73f')],_0x2df9aa(_0xf59a2('0x169d')))[_0xf59a2('0xe59')];}function _0x2b9adb(){var _0x24453b=_0xc7d7ff;_0x1d5e9b[_0x24453b('0xafd')][_0x24453b('0xab0')]=(_0x1d5e9b[_0x24453b('0xafd')][_0x24453b('0xc08')]-0x1)*_0x1d5e9b['queryJscriptySession'][_0x24453b('0x1b6d')],_0x1d5e9b[_0x24453b('0xafd')]['id']=_0x1d5e9b[_0x24453b('0xd9a')]['id'],_0x1d5e9b[_0x24453b('0x9c8')]=_0x3a6433[_0x24453b('0x1711')][_0x24453b('0x16aa')](_0x1d5e9b[_0x24453b('0xafd')],_0x2df9aa(_0x24453b('0x5d6')))['$promise'];}function _0x40f932(_0x4c15f9){var _0x2a017f=_0xc7d7ff;if(_0x1d5e9b[_0x2a017f('0xd9a')][_0x2a017f('0x2463')]){var _0x458f92=_0x50b65e[_0x2a017f('0xa5')]()[_0x2a017f('0x13e4')](_0x2a017f('0x109c')+_0x1d5e9b[_0x2a017f('0xd9a')]['ListId'])['textContent']('Warning!\x20You\x20won\x27t\x20select\x20a\x20different\x20list\x20for\x20the\x20contact\x20'+_0x1d5e9b['contact'][_0x2a017f('0x2566')]||0x0||0x0)[_0x2a017f('0x1345')](_0x4c15f9)['ok']('Ok')[_0x2a017f('0x2c1')]('Cancel');return _0x50b65e[_0x2a017f('0x26b2')](_0x458f92)['then'](_0x1d5e9b['onSelectListSuccess'])['catch'](function(){var _0x4acfec=_0x2a017f;_0x1d5e9b[_0x4acfec('0xd9a')]['ListId']=null;});}}function _0x517998(){var _0x4e876e=_0xc7d7ff;return _0x3a6433[_0x4e876e('0x1bbd')][_0x4e876e('0xbef')]({'id':_0x1d5e9b['contact'][_0x4e876e('0x2463')]})[_0x4e876e('0xe59')][_0x4e876e('0xe19')](function(_0x1e3a71){_0x1d5e9b['customFields']=_0x1e3a71||{'rows':[],'count':0x0};})['catch'](function(_0x31f5f7){var _0x3065b4=_0x4e876e;console[_0x3065b4('0x8c8')](_0x31f5f7);});}function _0x4f1381(){var _0x2f4e01=_0xc7d7ff;return _0x3a6433[_0x2f4e01('0xb59')][_0x2f4e01('0x22d5')]({'userProfileId':_0x1d5e9b[_0x2f4e01('0x15a5')]['userProfileId'],'sectionId':0x12e})['$promise'][_0x2f4e01('0xe19')](function(_0x432c58){var _0x14fbb9=_0x2f4e01,_0x4a696c=_0x432c58[_0x14fbb9('0x16a7')]?_0x432c58['rows'][0x0]:null;return _0x5227b6[_0x14fbb9('0xd31')](_0x4a696c?_0x4a696c[_0x14fbb9('0xb3d')]:null);})[_0x2f4e01('0x223b')](function(_0x37e28c){var _0x596a5b=_0x2f4e01;_0x24a52a['error']({'title':_0x37e28c[_0x596a5b('0x2833')]?_0x596a5b('0x27f2')+_0x37e28c['status']+'\x20-\x20'+_0x37e28c[_0x596a5b('0x1fd7')]:_0x596a5b('0x1a16'),'msg':_0x37e28c['data']?JSON['stringify'](_0x37e28c[_0x596a5b('0x11d0')]):_0x37e28c[_0x596a5b('0x94f')]()});});}function _0x153b2e(_0x4997c6,_0x14c749){var _0x26f243=_0xc7d7ff,_0x1ffd9a=_0x32d445()['find'](_0x1d5e9b['companies'][_0x26f243('0x16a7')],{'id':_0x14c749});_0x50b65e[_0x26f243('0x26b2')]({'controller':'CreateOrEditCompanyDialogController','controllerAs':'vm','templateUrl':_0x3723fc,'parent':angular['element'](_0x4779cb[_0x26f243('0x19b2')]),'targetEvent':_0x4997c6,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0x1ffd9a[_0x26f243('0x1e9d')]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0x4f1381()},'resolve':{'company':['apiResolver',function _0x29095d(_0x109068){var _0x3e77a2=_0x26f243;return _0x109068[_0x3e77a2('0xcd6')]('cmCompany@get',{'id':_0x14c749});}]}});}function _0x55423e(_0x3ad933){var _0x1dab61=_0xc7d7ff;_0x50b65e[_0x1dab61('0x26b2')]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x189c18,'parent':angular[_0x1dab61('0x24a1')](_0x4779cb['body']),'targetEvent':_0x3ad933,'clickOutsideToClose':!![],'resolve':{'lists':[_0x1dab61('0x292'),_0x1dab61('0x2730'),function _0xc2311a(_0x4cb319,_0x448bca){var _0x10b23a=_0x1dab61;return _0x448bca[_0x10b23a('0x179e')](_0x10b23a('0xd14'))?_0x4cb319[_0x10b23a('0xcd6')](_0x10b23a('0x1004'),{'fields':_0x10b23a('0x104')}):_0x4cb319[_0x10b23a('0xcd6')]('userProfile@getResources',{'id':_0x1d5e9b[_0x10b23a('0x15a5')][_0x10b23a('0x1d04')],'section':_0x10b23a('0x2697'),'fields':_0x10b23a('0x104')});}]},'locals':{'contacts':_0x4f94b5['rows'],'contact':_0x4bbaeb}});}function _0x466752(){var _0x168a5d=_0xc7d7ff;_0x3a6433[_0x168a5d('0x1711')][_0x168a5d('0xa70')]({'id':_0x1d5e9b[_0x168a5d('0xd9a')]['id']},_0x1d5e9b['contact'])[_0x168a5d('0xe59')]['then'](function(){var _0x3b4d98=_0x168a5d;_0x24a52a[_0x3b4d98('0x425')]({'title':_0x3b4d98('0x1515'),'msg':_0x1d5e9b[_0x3b4d98('0xd9a')][_0x3b4d98('0x2623')]?_0x1d5e9b['contact']['name']+'\x20has\x20been\x20updated!':''});})[_0x168a5d('0xe19')](function(){var _0x194bbd=_0x168a5d;return _0x3a6433[_0x194bbd('0x1711')][_0x194bbd('0x670')]({'id':_0x1d5e9b[_0x194bbd('0xd9a')]['id'],'ids':_0x1d5e9b['Tags']})['$promise'];})['catch'](function(_0x705008){var _0x3c0f89=_0x168a5d;_0x24a52a[_0x3c0f89('0x8c8')]({'title':_0x705008[_0x3c0f89('0x2833')]?_0x3c0f89('0x27f2')+_0x705008[_0x3c0f89('0x2833')]+'\x20-\x20'+_0x705008[_0x3c0f89('0x1fd7')]:_0x3c0f89('0xae5'),'msg':_0x705008[_0x3c0f89('0x11d0')]?JSON[_0x3c0f89('0x3ad')](_0x705008[_0x3c0f89('0x11d0')]):_0x705008[_0x3c0f89('0x94f')]()});});}function _0xa522ad(_0x5c63e8){return _0x5c63e8===null?undefined:new Date(_0x5c63e8);}function _0x45f4e2(){var _0x5316bc=_0xc7d7ff;_0x157e69['go'](_0x5316bc('0x6'),{},{'reload':!![],'notify':!![]});}}const _0x3577b1=_0x494756;_0x21e15d[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x1c9f'),_0xb635d2('0x1c1a'),'$q',_0xb635d2('0x1a0b'),_0xb635d2('0x9f8'),'companies',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),'$scope',_0xb635d2('0x2c0'),_0xb635d2('0x1d17'),_0xb635d2('0x5c1')];function _0x21e15d(_0xe67354,_0x1567dc,_0x7394b2,_0x5479d0,_0x519b3d,_0xb3f189,_0x3a9966,_0x5664ea,_0x25f3f0,_0x44fa2e,_0x3cd515,_0x33444c,_0x2a175a,_0x1262ad){var _0x5e7b52=_0xb635d2,_0x2e73be=this;_0x2e73be[_0x5e7b52('0x1aa7')]=![],_0x2e73be[_0x5e7b52('0xf17')]=!![],_0x2e73be['license']=_0x1262ad,_0x2e73be[_0x5e7b52('0x9de')]=0x0,_0x2e73be['result']={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x2e73be[_0x5e7b52('0x268f')]=[{'key':_0x5e7b52('0x2566'),'required':!![]},{'key':_0x5e7b52('0x151f'),'required':![]},{'key':_0x5e7b52('0x1ef5'),'required':!![]},{'key':_0x5e7b52('0x23a0'),'required':![]},{'key':_0x5e7b52('0x1211'),'required':![]},{'key':'dateOfBirth','required':![]},{'key':'country','required':![]},{'key':_0x5e7b52('0x727'),'required':![]},{'key':'street','required':![]},{'key':'postalCode','required':![]},{'key':'fax','required':![]}],_0x2e73be[_0x5e7b52('0xcdc')]=[{'key':_0x5e7b52('0x43d'),'required':![]},{'key':_0x5e7b52('0x50e'),'required':![]},{'key':'priority','required':![]}],_0x2e73be[_0x5e7b52('0x22ed')]={},_0x2e73be[_0x5e7b52('0x2033')]=[],_0x2e73be['lists']=_0xb3f189||{'rows':[],'count':0x0},_0x2e73be[_0x5e7b52('0xcca')]=_0x3a9966||{'rows':[],'count':0x0},_0x2e73be[_0x5e7b52('0x6f2')]={'rows':[],'count':0x0},_0x2e73be[_0x5e7b52('0x1d17')]=_0x2a175a||[],_0x2e73be[_0x5e7b52('0x2584')]=_0x519574,_0x2e73be[_0x5e7b52('0x4e4')]=_0x16a9ab,_0x2e73be[_0x5e7b52('0xa72')]=_0x3f46a0,_0x2e73be[_0x5e7b52('0x236')]=_0x188ccc,_0x2e73be[_0x5e7b52('0x1694')]=_0x3fe177,_0x2e73be['stopUpload']=_0xe1738c;var _0x53bec0=_0x4ddcaa()()[_0x5e7b52('0xb2')]();_0x44fa2e['on'](_0x5e7b52('0x1420')+_0x53bec0,_0x368a94);function _0x16a9ab(){var _0x3fca4a=_0x5e7b52;return _0x25f3f0[_0x3fca4a('0x1bbd')][_0x3fca4a('0xbef')]({'id':_0x2e73be[_0x3fca4a('0x2463')]})[_0x3fca4a('0xe59')][_0x3fca4a('0xe19')](function(_0x119ec9){var _0x375d12=_0x3fca4a;_0x2e73be[_0x375d12('0x6f2')]=_0x119ec9;})[_0x3fca4a('0x223b')](function(_0x43ae2e){var _0x4b5ed7=_0x3fca4a;console[_0x4b5ed7('0x8c8')](_0x43ae2e);});}function _0x3f46a0(){var _0x169ed6=_0x5e7b52;_0x2e73be['processing']=_0x4ddcaa()(),_0x25f3f0[_0x169ed6('0x1711')][_0x169ed6('0x2530')]({'id':_0x33444c[_0x169ed6('0x248')],'binding':_0x2e73be['binding'],'ListId':_0x2e73be[_0x169ed6('0x2463')],'CompanyId':_0x2e73be[_0x169ed6('0x11a4')],'duplicates':_0x2e73be[_0x169ed6('0x169f')],'socket_timestamp':_0x53bec0})[_0x169ed6('0xe59')][_0x169ed6('0xe19')](function(_0x4a6cbf){var _0x346bec=_0x169ed6;_0x2e73be[_0x346bec('0xf17')]=![],_0x4a6cbf&&_0x4a6cbf[_0x346bec('0x9de')]&&(_0x2e73be[_0x346bec('0x9de')]=_0x4a6cbf[_0x346bec('0x9de')]);})['catch'](function(){var _0x1bbc12=_0x169ed6;_0x2e73be[_0x1bbc12('0x1aa7')]=![],_0x5664ea['error']({'title':_0x1bbc12('0x1dc1'),'msg':'Please\x20retry\x20with\x20a\x20new\x20file'});});}function _0x368a94(_0xc56c){_0x519b3d(function(){var _0x563dfc=a0_0x5325;_0x2e73be['result'][_0x563dfc('0x16a7')]=_0xc56c[_0x563dfc('0x16a7')];if(_0xc56c['errors'])for(var _0x15a59b=0x0;_0x15a59b<_0xc56c[_0x563dfc('0xcd2')][_0x563dfc('0x25ae')];_0x15a59b++){_0x2e73be[_0x563dfc('0x2048')][_0x563dfc('0xcd2')]['push'](_0xc56c[_0x563dfc('0xcd2')][_0x15a59b]);}if(_0xc56c[_0x563dfc('0x281d')]){_0x2e73be[_0x563dfc('0x2048')][_0x563dfc('0x281d')]=!![],_0x2e73be[_0x563dfc('0x2048')][_0x563dfc('0x1652')]=_0xc56c[_0x563dfc('0x1652')],_0x2e73be[_0x563dfc('0x2048')]['failedRows']=_0x2e73be[_0x563dfc('0x2048')][_0x563dfc('0xcd2')][_0x563dfc('0x25ae')];var _0x5b6185=_0x2e73be[_0x563dfc('0x2048')][_0x563dfc('0x16a7')]-_0x2e73be[_0x563dfc('0x2048')][_0x563dfc('0x1652')]-_0x2e73be[_0x563dfc('0x2048')][_0x563dfc('0xcd2')][_0x563dfc('0x25ae')];_0x5b6185&&_0x5b6185>0x0&&(_0x2e73be[_0x563dfc('0x169f')][_0x563dfc('0x25ae')]?_0x2e73be['result']['duplicatedRows']=_0x5b6185:_0x2e73be['result'][_0x563dfc('0x1127')]+=_0x5b6185),_0x2e73be[_0x563dfc('0x2048')]['elapsed']=_0x4ddcaa()()[_0x563dfc('0x2e2')](_0x2e73be['processing'],_0x563dfc('0x8ec'));}});}function _0x188ccc(){var _0x3d492a=_0x2a175a;return _0x3d492a['push']('contact_import_error'),_0x3d492a;}function _0x3fe177(){var _0x185d0a=_0x5e7b52,_0xc5e1c3=[];for(var _0x46927e=0x0;_0x46927e<_0x2e73be[_0x185d0a('0x2048')][_0x185d0a('0xcd2')][_0x185d0a('0x25ae')];_0x46927e+=0x1){var _0xf4f407=_0x2e73be[_0x185d0a('0x2048')]['errors'][_0x46927e][_0x185d0a('0x1bc3')];_0xf4f407[_0x185d0a('0x21d4')]=_0x2e73be[_0x185d0a('0x2048')][_0x185d0a('0xcd2')][_0x46927e]['message'],_0xc5e1c3[_0x185d0a('0xb76')](_0xf4f407);}return _0xc5e1c3;}function _0xe1738c(){var _0x30bd4b=_0x5e7b52;_0x2e73be['stopping']=!![];if(_0x2e73be[_0x30bd4b('0x9de')])return _0x25f3f0[_0x30bd4b('0x1917')][_0x30bd4b('0xad')]({'pid':_0x2e73be[_0x30bd4b('0x9de')]})[_0x30bd4b('0xe59')]['then'](function(){var _0x2f0f68=_0x30bd4b;_0x5664ea['success']({'title':_0x2f0f68('0x27b1'),'msg':_0x2f0f68('0x5e')});})['catch'](function(){var _0x6cacdd=_0x30bd4b;_0x5664ea[_0x6cacdd('0x8c8')]({'title':'CSV\x20stop\x20import\x20process\x20failed!','msg':_0x6cacdd('0x1bf')});});}_0x3cd515[_0x5e7b52('0xb2b')](_0x5e7b52('0x5cd'),function(){_0x44fa2e['removeAllListeners']('contact:import:'+_0x53bec0);});function _0x519574(){var _0x2f5f8d=_0x5e7b52;_0x44fa2e['removeAllListeners'](_0x2f5f8d('0x1420')+_0x53bec0),_0x1567dc[_0x2f5f8d('0x11ed')]();}}const _0x3c5172=_0x21e15d;_0xe540aa[_0xb635d2('0xb0c')]=['$mdDialog',_0xb635d2('0x63c'),_0xb635d2('0xf65'),_0xb635d2('0xd9a'),_0xb635d2('0x4b1'),_0xb635d2('0x9f8'),_0xb635d2('0xffc')];function _0xe540aa(_0x347448,_0x9b91a4,_0x2e0c79,_0x57540b,_0x3fb9cf,_0x514672,_0x215f02){var _0x18b984=_0xb635d2,_0xbf5399=this;_0xbf5399[_0x18b984('0xcd2')]=[],_0xbf5399[_0x18b984('0x13e4')]=_0x18b984('0x16f8'),_0xbf5399[_0x18b984('0xd9a')]=angular['copy'](_0x57540b),_0xbf5399['lists']=_0x514672||[],_0xbf5399[_0x18b984('0x177f')]=function(){var _0xa5795a=_0x18b984;_0xbf5399['searchTerm']?_0x215f02['cmContact'][_0xa5795a('0x22d5')]({'fields':_0xa5795a('0x11e4'),'filter':_0xbf5399['searchTerm'],'ListId':_0x57540b['ListId']})[_0xa5795a('0xe59')][_0xa5795a('0xe19')](function(_0x4aecb0){var _0x2d32ad=_0xa5795a;_0xbf5399[_0x2d32ad('0x4b1')]=_0x4aecb0['rows'];})[_0xa5795a('0x223b')](function(_0x57b6e1){var _0x519d51=_0xa5795a;console[_0x519d51('0x8c8')](_0x57b6e1);}):_0xbf5399[_0xa5795a('0x4b1')]=[];},_0xbf5399[_0x18b984('0x28c')]=_0x1ed70b,_0xbf5399[_0x18b984('0x2584')]=_0x336dec;function _0x1ed70b(_0x81b66c,_0x271091,_0x14c7f2){var _0x49e30d=_0x18b984,_0x16352a=_0x347448[_0x49e30d('0xa5')]({'skipHide':!![]})[_0x49e30d('0x13e4')](_0x49e30d('0x1003'))['textContent']('All\x20unfilled\x20values\x20of\x20the\x20contact\x20#'+_0x14c7f2['id']+_0x49e30d('0x2521')+_0x271091['id']+'.')['targetEvent'](_0x81b66c)['ok']('Ok')[_0x49e30d('0x2c1')](_0x49e30d('0x8a3'));_0x347448[_0x49e30d('0x26b2')](_0x16352a)[_0x49e30d('0xe19')](function(){var _0x424a0f=_0x49e30d;return _0x215f02['cmContact'][_0x424a0f('0x1d8')]({'to':_0x14c7f2['id'],'from':_0x271091['id']})[_0x424a0f('0xe59')];})[_0x49e30d('0xe19')](function(_0x505fdf){var _0x303886=_0x49e30d;_0x347448[_0x303886('0x11ed')]({'new':_0x505fdf,'to':_0x14c7f2,'from':_0x271091}),_0x32d445()[_0x303886('0xa8b')](_0x3fb9cf,{'id':_0x14c7f2['id']}),_0x32d445()[_0x303886('0xa8b')](_0x3fb9cf,{'id':_0x271091['id']}),_0x3fb9cf[_0x303886('0x14c9')](_0x505fdf);})[_0x49e30d('0xe19')](function(){var _0x14b8de=_0x49e30d;_0x2e0c79[_0x14b8de('0x425')]({'title':_0x14b8de('0x19c4')});})[_0x49e30d('0x223b')](function(_0xebf991){var _0x40b775=_0x49e30d;_0xebf991&&_0xebf991['status']&&_0x2e0c79['error']({'title':_0xebf991[_0x40b775('0x2833')]?'API:'+_0xebf991[_0x40b775('0x2833')]+_0x40b775('0x1b7c')+_0xebf991[_0x40b775('0x1fd7')]:'SYSTEM:MERGE_CONTACT','msg':_0xebf991[_0x40b775('0x11d0')]?JSON[_0x40b775('0x3ad')](_0xebf991['data']):_0xebf991[_0x40b775('0x94f')]()});});}function _0x336dec(){var _0x4c19b9=_0x18b984;_0x347448[_0x4c19b9('0x11ed')]();}}const _0x3913eb=_0xe540aa,_0x421c71=_0x59426a['p']+_0xb635d2('0xb7'),_0x82f0be=_0x59426a['p']+_0xb635d2('0x227b');_0x16d035[_0xb635d2('0xb0c')]=['$stateProvider'];function _0x16d035(_0x3d584c){var _0x5ef3ae=_0xb635d2;_0x3d584c[_0x5ef3ae('0x1d72')](_0x5ef3ae('0x6'),{'url':'/contacts?ListId&CompanyId','views':{'content@app':{'templateUrl':_0x421c71,'controller':_0x5ef3ae('0x150b')}},'resolve':{'contacts':[_0x5ef3ae('0x292'),_0x5ef3ae('0x2730'),'$stateParams',function _0x3eb377(_0x31a23c,_0x5e42ee,_0x4e8f66){var _0x1091d6=_0x5ef3ae;return _0x5e42ee[_0x1091d6('0x179e')]('admin')?_0x31a23c[_0x1091d6('0xcd6')]('cmContact@get',_0x32d445()[_0x1091d6('0x1d8')]({'includeAll':!![],'sort':_0x1091d6('0x7e8'),'limit':0xa,'offset':0x0},_0x4e8f66)):_0x31a23c[_0x1091d6('0xcd6')]('userProfile@getResources',_0x32d445()[_0x1091d6('0x1d8')]({'id':_0x5e42ee[_0x1091d6('0x1ef8')]()[_0x1091d6('0x1d04')],'section':_0x1091d6('0xd89'),'includeAll':!![],'sort':_0x1091d6('0x7e8'),'limit':0xa,'offset':0x0},_0x4e8f66));}],'lists':['apiResolver','Auth',function _0x128977(_0xf0c0fb,_0x442bd9){var _0x8a13b8=_0x5ef3ae;return _0x442bd9[_0x8a13b8('0x179e')]('admin')?_0xf0c0fb[_0x8a13b8('0xcd6')](_0x8a13b8('0x1004'),{'fields':'id,name','sort':_0x8a13b8('0x2623'),'nolimit':!![]}):_0xf0c0fb[_0x8a13b8('0xcd6')](_0x8a13b8('0x197d'),{'id':_0x442bd9['getCurrentUser']()[_0x8a13b8('0x1d04')],'section':_0x8a13b8('0x2697'),'fields':_0x8a13b8('0x104'),'sort':_0x8a13b8('0x7e8'),'nolimit':!![]});}],'listsMap':[_0x5ef3ae('0x9f8'),function _0x1b6046(_0x306574){var _0x10b977=_0x5ef3ae,_0x5110b5={};for(var _0x199258=0x0;_0x199258<_0x306574['rows'][_0x10b977('0x25ae')];_0x199258++){_0x5110b5[_0x306574[_0x10b977('0x16a7')][_0x199258]['id']]=_0x306574[_0x10b977('0x16a7')][_0x199258][_0x10b977('0x2623')];}return _0x5110b5;}],'companies':[_0x5ef3ae('0x292'),_0x5ef3ae('0x2730'),function _0x1f9fb5(_0x5d732a,_0x2e10c5){var _0x39740a=_0x5ef3ae;return _0x2e10c5[_0x39740a('0x179e')](_0x39740a('0xd14'))?_0x5d732a['resolve'](_0x39740a('0x16d5'),{'fields':_0x39740a('0x104'),'sort':_0x39740a('0x2623'),'nolimit':!![]}):_0x5d732a[_0x39740a('0xcd6')](_0x39740a('0x197d'),{'id':_0x2e10c5[_0x39740a('0x1ef8')]()[_0x39740a('0x1d04')],'section':'Companies','fields':_0x39740a('0x104'),'sort':_0x39740a('0x2623'),'nolimit':!![]});}],'companiesMap':[_0x5ef3ae('0xcca'),function _0x25f5f6(_0x736b9b){var _0x1c98bf=_0x5ef3ae,_0x1f5a45={};for(var _0x3dbf48=0x0;_0x3dbf48<_0x736b9b[_0x1c98bf('0x16a7')][_0x1c98bf('0x25ae')];_0x3dbf48++){_0x1f5a45[_0x736b9b[_0x1c98bf('0x16a7')][_0x3dbf48]['id']]=_0x736b9b[_0x1c98bf('0x16a7')][_0x3dbf48][_0x1c98bf('0x2623')];}return _0x1f5a45;}],'tags':[_0x5ef3ae('0x292'),'Auth',function _0xfaae70(_0x468b74,_0x5b522d){var _0xc43af=_0x5ef3ae;return _0x5b522d['hasRole']('admin')?_0x468b74['resolve'](_0xc43af('0xd04'),{'fields':_0xc43af('0x104'),'sort':'name','nolimit':!![]}):_0x468b74[_0xc43af('0xcd6')]('userProfile@getResources',{'id':_0x5b522d[_0xc43af('0x1ef8')]()[_0xc43af('0x1d04')],'section':'Tags','fields':'id,name','sort':_0xc43af('0x2623'),'nolimit':!![]});}],'userProfile':[_0x5ef3ae('0x292'),'Auth',function _0x5434ea(_0x58b16c,_0x206609){var _0x384c26=_0x5ef3ae;return _0x58b16c[_0x384c26('0xcd6')](_0x384c26('0x455'),{'fields':'id,name,crudPermissions','id':_0x206609[_0x384c26('0x1ef8')]()[_0x384c26('0x1d04')]});}],'userProfileSection':[_0x5ef3ae('0x292'),_0x5ef3ae('0x2730'),function _0xa6c3d(_0x4d14e7,_0x53e872){var _0x2ee3f6=_0x5ef3ae;return _0x4d14e7[_0x2ee3f6('0xcd6')](_0x2ee3f6('0x264e'),{'fields':_0x2ee3f6('0x12d6'),'userProfileId':_0x53e872[_0x2ee3f6('0x1ef8')]()[_0x2ee3f6('0x1d04')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x5ef3ae('0x2066')})[_0x5ef3ae('0x1d72')](_0x5ef3ae('0x521'),{'url':'/:id?tab','params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x82f0be,'controller':_0x5ef3ae('0x23d')}},'resolve':{'contact':[_0x5ef3ae('0x292'),_0x5ef3ae('0x34'),function _0x56b65f(_0x9f4aee,_0x2cf213){var _0x20c2e9=_0x5ef3ae;return _0x9f4aee[_0x20c2e9('0xcd6')](_0x20c2e9('0x1995'),{'id':_0x2cf213['id']})[_0x20c2e9('0xe19')](function(_0x2ef289){var _0x2813c0=_0x20c2e9;return _0x2ef289[_0x2813c0('0x23d0')]&&(_0x2ef289['dateOfBirth']=new Date(_0x2ef289[_0x2813c0('0x23d0')])),_0x2ef289;})[_0x20c2e9('0x223b')](function(_0x117c4b){var _0x19e034=_0x20c2e9;console[_0x19e034('0x8c8')](_0x117c4b);});}],'hoppers':[_0x5ef3ae('0x292'),'$stateParams',function _0x354ccd(_0x4a2ce4,_0x99cf76){var _0x3af1a6=_0x5ef3ae;return _0x4a2ce4[_0x3af1a6('0xcd6')]('cmContact@getHoppers',{'id':_0x99cf76['id'],'fields':_0x3af1a6('0x2338'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'finals':[_0x5ef3ae('0x292'),_0x5ef3ae('0x34'),function _0x4bb137(_0x53e0f5,_0x314e9b){var _0x134a55=_0x5ef3ae;return _0x53e0f5[_0x134a55('0xcd6')](_0x134a55('0x1914'),{'id':_0x314e9b['id'],'fields':_0x134a55('0x22e8'),'sort':_0x134a55('0x7e8'),'limit':0xa,'offset':0x0});}],'histories':['apiResolver',_0x5ef3ae('0x34'),function _0xecb7f4(_0x940f5a,_0xfa5303){var _0x53c55c=_0x5ef3ae;return _0x940f5a[_0x53c55c('0xcd6')](_0x53c55c('0xbd3'),{'id':_0xfa5303['id'],'fields':'id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','sort':_0x53c55c('0x7e8'),'limit':0xa,'offset':0x0});}],'jscriptySessions':['apiResolver','$stateParams',function _0x4b9549(_0xdad676,_0x572172){var _0xae227a=_0x5ef3ae;return _0xdad676[_0xae227a('0xcd6')](_0xae227a('0x1348'),{'id':_0x572172['id'],'fields':_0xae227a('0xc64'),'sort':_0xae227a('0xdb3'),'limit':0xa,'offset':0x0});}],'companies':[_0x5ef3ae('0x292'),_0x5ef3ae('0x2730'),function _0x19ab21(_0x305cce,_0x326b08){var _0x3f1f87=_0x5ef3ae;return _0x326b08[_0x3f1f87('0x179e')](_0x3f1f87('0xd14'))?_0x305cce[_0x3f1f87('0xcd6')](_0x3f1f87('0x16d5')):_0x305cce[_0x3f1f87('0xcd6')]('userProfile@getResources',{'id':_0x326b08[_0x3f1f87('0x1ef8')]()[_0x3f1f87('0x1d04')],'section':_0x3f1f87('0x25f3')});}],'lists':[_0x5ef3ae('0x292'),_0x5ef3ae('0x2730'),function _0xc685a3(_0x576cb0,_0x5114d6){var _0x1d0ebd=_0x5ef3ae;return _0x5114d6[_0x1d0ebd('0x179e')](_0x1d0ebd('0xd14'))?_0x576cb0[_0x1d0ebd('0xcd6')]('cmList@get',{'fields':_0x1d0ebd('0x104'),'sort':'-updatedAt','nolimit':!![]}):_0x576cb0[_0x1d0ebd('0xcd6')](_0x1d0ebd('0x197d'),{'id':_0x5114d6[_0x1d0ebd('0x1ef8')]()[_0x1d0ebd('0x1d04')],'section':_0x1d0ebd('0x2697'),'fields':_0x1d0ebd('0x104'),'sort':_0x1d0ebd('0x7e8'),'nolimit':!![]});}],'customFields':['apiResolver','contact',function _0x1fe0b6(_0x325b6a,_0x19e336){var _0x30df69=_0x5ef3ae;return _0x19e336['ListId']?_0x325b6a['resolve'](_0x30df69('0x1a13'),{'id':_0x19e336[_0x30df69('0x2463')]}):null;}],'tags':[_0x5ef3ae('0x292'),'Auth',function _0x4eafc0(_0x443f89,_0x1e1f71){var _0x1fedbe=_0x5ef3ae;return _0x1e1f71[_0x1fedbe('0x179e')](_0x1fedbe('0xd14'))?_0x443f89[_0x1fedbe('0xcd6')]('tag@get'):_0x443f89[_0x1fedbe('0xcd6')](_0x1fedbe('0x197d'),{'id':_0x1e1f71[_0x1fedbe('0x1ef8')]()[_0x1fedbe('0x1d04')],'section':_0x1fedbe('0x1e7b')});}],'userProfileSection':[_0x5ef3ae('0x292'),_0x5ef3ae('0x2730'),function _0xb2fa34(_0x4c8345,_0x287e9c){var _0x519237=_0x5ef3ae;return _0x4c8345['resolve']('userProfileSection@get',{'fields':_0x519237('0x12d6'),'userProfileId':_0x287e9c[_0x519237('0x1ef8')]()[_0x519237('0x1d04')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x5ef3ae('0x2066')});}angular[_0xb635d2('0x153f')]('app.contactmanager.contacts',[])[_0xb635d2('0x1990')](_0x16d035)['controller'](_0xb635d2('0x2743'),_0x5e83b5)[_0xb635d2('0x1a79')](_0xb635d2('0x1ee3'),_0x4efb72)['controller']('DuplicateContactDialogController',_0x58a9a5)[_0xb635d2('0x1a79')](_0xb635d2('0x1269'),_0x17002b)[_0xb635d2('0x1a79')](_0xb635d2('0x101e'),_0x3577b1)[_0xb635d2('0x1a79')]('ImportContactsDialogController',_0x3c5172)['controller'](_0xb635d2('0x1a88'),_0x3913eb);const _0x1412af=_0x59426a['p']+'src/js/modules/main/apps/contactmanager/views/companies/create/dialog.html/dialog-[chunkhash].html';_0x24fc99['$inject']=['$scope','$window',_0xb635d2('0xeb6'),'$mdSidenav','$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0xcca'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x24fc99(_0xc5b478,_0x51bd41,_0x30122e,_0x3b0b8d,_0x4a68c3,_0x1fe7c4,_0x1f5f67,_0x5cd1a4,_0x28df04,_0x5e7cf4,_0x166236,_0x15a538,_0x4dfe2a,_0x32dd85,_0x101cdc,_0x4696ca,_0x16203c){var _0x3b4540=_0xb635d2,_0x538894=this;_0x538894[_0x3b4540('0x5c1')]=_0x4696ca,_0x538894[_0x3b4540('0x22f1')]=_0x16203c,_0x538894[_0x3b4540('0x15a5')]=_0x101cdc[_0x3b4540('0x1ef8')](),_0x538894['companies']=_0x28df04||{'count':0x0,'rows':[]},_0x538894['userProfile']=_0x5e7cf4,_0x538894['userProfileSection']=_0x166236&&_0x166236[_0x3b4540('0x148b')]==0x1?_0x166236[_0x3b4540('0x16a7')][0x0]:null,_0x538894[_0x3b4540('0xb3d')]=_0x101cdc['parseCrudPermissions'](_0x538894[_0x3b4540('0xb59')]?_0x538894[_0x3b4540('0xb59')]['crudPermissions']:null),_0x538894['table']='companies',_0x538894['listOrder']='',_0x538894[_0x3b4540('0x190c')]=null,_0x538894[_0x3b4540('0xff7')]=[],_0x538894[_0x3b4540('0xa16')]={'fields':_0x3b4540('0x63a'),'sort':_0x3b4540('0x7e8'),'limit':0xa,'page':0x1},_0x538894[_0x3b4540('0x16a0')]=_0x4a7362,_0x538894['gotocontactsgoto']=_0x39cad2,_0x538894[_0x3b4540('0x1d9e')]=_0x286802,_0x538894[_0x3b4540('0x425')]=_0x24f8df,_0x538894[_0x3b4540('0x2703')]=_0x226708,_0x538894[_0x3b4540('0x1a06')]=_0x37c9af,_0x538894[_0x3b4540('0x1b1a')]=_0x2b8501,_0x538894[_0x3b4540('0x927')]=_0x58dae1,_0x538894[_0x3b4540('0x1606')]=_0x343097,_0x538894[_0x3b4540('0xcae')]=_0x373b1d,_0x538894[_0x3b4540('0xaf0')]=_0x35b5ff;function _0x4a7362(_0x1d4e61){var _0x46868d=_0x3b4540;_0x30122e['go']('app.contactmanager.companies.edit',{'id':_0x1d4e61['id'],'company':_0x1d4e61,'crudPermissions':_0x538894[_0x46868d('0xb3d')]});}function _0x39cad2(_0x34f218){var _0x28b57e=_0x3b4540;if(_0x101cdc['hasRole'](_0x28b57e('0xd14')))_0x30122e['go'](_0x28b57e('0x6'),{'CompanyId':_0x34f218['id']});else return _0x15a538[_0x28b57e('0xb59')][_0x28b57e('0x22d5')]({'userProfileId':_0x101cdc[_0x28b57e('0x1ef8')]()[_0x28b57e('0x1d04')],'sectionId':0x12f})[_0x28b57e('0xe59')][_0x28b57e('0xe19')](function(_0x454b36){var _0x4cb31d=_0x28b57e,_0x5ce5cb=_0x454b36&&_0x454b36[_0x4cb31d('0x16a7')]?_0x454b36[_0x4cb31d('0x16a7')][0x0]:null;_0x5ce5cb&&_0x5ce5cb[_0x4cb31d('0x4ef')]?_0x30122e['go']('app.contactmanager.contacts',{'CompanyId':_0x34f218['id']}):_0x32dd85['info']({'title':_0x5cd1a4[_0x4cb31d('0x2159')](_0x4cb31d('0x2786')),'msg':_0x5cd1a4['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x28b57e('0x223b')](function(_0x4fecff){var _0x4e3cb6=_0x28b57e;_0x32dd85[_0x4e3cb6('0x8c8')]({'title':_0x4fecff['status']?_0x4e3cb6('0x27f2')+_0x4fecff['status']+_0x4e3cb6('0x1b7c')+_0x4fecff[_0x4e3cb6('0x1fd7')]:'USERPROFILE:GET_SECTION','msg':_0x4fecff[_0x4e3cb6('0x2833')]?JSON[_0x4e3cb6('0x3ad')](_0x4fecff[_0x4e3cb6('0x11d0')]):_0x4fecff[_0x4e3cb6('0x94f')]()});});}function _0x286802(_0x179096,_0x18335e){var _0x576847=_0x3b4540,_0x13c005=_0x4a68c3[_0x576847('0xa5')]()[_0x576847('0x13e4')](_0x576847('0x346')+_0x32d445()[_0x576847('0x1df2')]('company')+'?')['htmlContent'](_0x576847('0xab2')+(_0x179096['name']||_0x576847('0x1e4d'))+_0x576847('0x27bb')+_0x576847('0x21bd'))[_0x576847('0x4d1')](_0x576847('0x25d4'))[_0x576847('0x1345')](_0x18335e)['ok']('OK')[_0x576847('0x2c1')](_0x576847('0x17'));_0x4a68c3[_0x576847('0x26b2')](_0x13c005)[_0x576847('0xe19')](function(){_0x2b8501(_0x179096);},function(){var _0x52a896=_0x576847;console[_0x52a896('0x1fe9')]('CANCEL');});}var _0x23721f=!![],_0x47f071=0x1;_0xc5b478[_0x3b4540('0x107')](_0x3b4540('0x20cb'),function(_0x4e6c91,_0x5a95f2){var _0x5f119b=_0x3b4540;_0x23721f?_0x1f5f67(function(){_0x23721f=![];}):(!_0x5a95f2&&(_0x47f071=_0x538894[_0x5f119b('0xa16')][_0x5f119b('0xc08')]),_0x4e6c91!==_0x5a95f2&&(_0x538894[_0x5f119b('0xa16')]['page']=0x1),!_0x4e6c91&&(_0x538894[_0x5f119b('0xa16')]['page']=_0x47f071),_0x538894[_0x5f119b('0x2703')]());});function _0x24f8df(_0x4bba85){var _0x198dcb=_0x3b4540;_0x538894[_0x198dcb('0xcca')]=_0x4bba85||{'count':0x0,'rows':[]};}function _0x226708(){var _0x26a2c1=_0x3b4540;_0x538894[_0x26a2c1('0xa16')][_0x26a2c1('0xab0')]=(_0x538894[_0x26a2c1('0xa16')][_0x26a2c1('0xc08')]-0x1)*_0x538894[_0x26a2c1('0xa16')][_0x26a2c1('0x1b6d')],_0x101cdc[_0x26a2c1('0x179e')](_0x26a2c1('0xd14'))?_0x538894[_0x26a2c1('0x9c8')]=_0x15a538['cmCompany'][_0x26a2c1('0x22d5')](_0x538894[_0x26a2c1('0xa16')],_0x24f8df)['$promise']:(_0x538894[_0x26a2c1('0xa16')]['id']=_0x538894['userProfile']['id'],_0x538894[_0x26a2c1('0xa16')][_0x26a2c1('0x1e59')]=_0x26a2c1('0x25f3'),_0x538894[_0x26a2c1('0x9c8')]=_0x15a538[_0x26a2c1('0x154f')]['getResources'](_0x538894[_0x26a2c1('0xa16')],_0x24f8df)[_0x26a2c1('0xe59')]);}function _0x37c9af(_0x4e368a,_0x36588e){var _0x56f299=_0x3b4540;_0x4a68c3['show']({'controller':'CreateOrEditCompanyDialogController','controllerAs':'vm','templateUrl':_0x1412af,'parent':angular['element'](_0x1fe7c4[_0x56f299('0x19b2')]),'targetEvent':_0x4e368a,'clickOutsideToClose':!![],'locals':{'company':_0x36588e,'companies':_0x538894[_0x56f299('0xcca')][_0x56f299('0x16a7')],'license':_0x538894[_0x56f299('0x5c1')],'setting':_0x538894[_0x56f299('0x22f1')],'crudPermissions':_0x538894['crudPermissions']}});}function _0x2b8501(_0x3861be){var _0x5c93bd=_0x3b4540;_0x15a538[_0x5c93bd('0x24d1')]['delete']({'id':_0x3861be['id']})['$promise'][_0x5c93bd('0xe19')](function(){var _0x32da6=_0x5c93bd;_0x32d445()[_0x32da6('0xa8b')](_0x538894[_0x32da6('0xcca')][_0x32da6('0x16a7')],{'id':_0x3861be['id']}),_0x538894['companies'][_0x32da6('0x148b')]-=0x1,!_0x538894[_0x32da6('0xcca')][_0x32da6('0x16a7')][_0x32da6('0x25ae')]&&_0x538894[_0x32da6('0x2703')](),_0x32dd85[_0x32da6('0x425')]({'title':_0x32d445()[_0x32da6('0x1df2')](_0x32da6('0x446'))+'\x20deleted!','msg':_0x3861be[_0x32da6('0x2623')]?_0x3861be[_0x32da6('0x2623')]+_0x32da6('0x2182'):''});})[_0x5c93bd('0x223b')](function(_0x25b799){var _0x535cbd=_0x5c93bd;if(_0x25b799[_0x535cbd('0x11d0')]&&_0x25b799[_0x535cbd('0x11d0')][_0x535cbd('0xcd2')]&&_0x25b799[_0x535cbd('0x11d0')][_0x535cbd('0xcd2')]['length']){_0x538894['errors']=_0x25b799[_0x535cbd('0x11d0')][_0x535cbd('0xcd2')]||[{'message':_0x25b799[_0x535cbd('0x94f')](),'type':'SYSTEM:DELETEcmCompany'}];for(var _0x4cbe60=0x0;_0x4cbe60<_0x25b799[_0x535cbd('0x11d0')][_0x535cbd('0xcd2')]['length'];_0x4cbe60++){_0x32dd85[_0x535cbd('0x8c8')]({'title':_0x25b799[_0x535cbd('0x11d0')][_0x535cbd('0xcd2')][_0x4cbe60][_0x535cbd('0x62e')],'msg':_0x25b799[_0x535cbd('0x11d0')][_0x535cbd('0xcd2')][_0x4cbe60][_0x535cbd('0x27e8')]});}}else _0x32dd85[_0x535cbd('0x8c8')]({'title':_0x25b799[_0x535cbd('0x2833')]?_0x535cbd('0x27f2')+_0x25b799[_0x535cbd('0x2833')]+_0x535cbd('0x1b7c')+_0x25b799[_0x535cbd('0x1fd7')]:_0x535cbd('0x24f9'),'msg':_0x25b799[_0x535cbd('0x11d0')]?JSON['stringify'](_0x25b799['data'][_0x535cbd('0x27e8')]):_0x25b799[_0x535cbd('0x27e8')]||_0x25b799[_0x535cbd('0x94f')]()});});}function _0x58dae1(){var _0x375b04=_0x3b4540,_0xbec744=angular[_0x375b04('0x89')](_0x538894['selectedCompanies']);return _0x538894[_0x375b04('0xff7')]=[],_0xbec744;}function _0x343097(_0x154004){var _0x183c90=_0x3b4540,_0x569dbb=_0x4a68c3[_0x183c90('0xa5')]()[_0x183c90('0x13e4')](_0x183c90('0x2393'))[_0x183c90('0x221c')](_0x183c90('0xab2')+_0x538894['selectedCompanies'][_0x183c90('0x25ae')]+_0x183c90('0x5bc')+_0x183c90('0x21bd'))['ariaLabel']('delete\x20Companys')[_0x183c90('0x1345')](_0x154004)['ok']('OK')[_0x183c90('0x2c1')](_0x183c90('0x17'));_0x4a68c3['show'](_0x569dbb)['then'](function(){var _0x3fbdfd=_0x183c90;_0x538894[_0x3fbdfd('0xff7')]['forEach'](function(_0x45e744){_0x2b8501(_0x45e744);}),_0x538894[_0x3fbdfd('0xff7')]=[];});}function _0x373b1d(){var _0x183e8c=_0x3b4540;_0x538894[_0x183e8c('0xff7')]=[];}function _0x35b5ff(){var _0x1f3f80=_0x3b4540;_0x538894[_0x1f3f80('0xff7')]=_0x538894['companies'][_0x1f3f80('0x16a7')];}}const _0x149031=_0x24fc99;_0x5ada9d[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0xcca'),_0xb635d2('0x1e4d'),_0xb635d2('0xffc'),'Auth','license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x5ada9d(_0x53f3fd,_0x22555f,_0x46965b,_0x2135db,_0x5d623c,_0x433f37,_0x3d8e01,_0x37b0ed,_0x50ac6a,_0x15574c,_0x1661a6,_0xa785a8,_0x1d378c,_0x5b5138){var _0x8eeee=_0xb635d2,_0x1d4789=this;_0x1d4789[_0x8eeee('0x15a5')]=_0x1661a6['getCurrentUser'](),_0x1d4789[_0x8eeee('0xcd2')]=[],_0x1d4789[_0x8eeee('0x22f1')]=_0x1d378c,_0x1d4789[_0x8eeee('0x5c1')]=_0xa785a8,_0x1d4789['crudPermissions']=_0x5b5138,_0x1d4789[_0x8eeee('0x1ccb')]={},_0x1d4789[_0x8eeee('0x25ac')]=_0x1d4789[_0x8eeee('0x22f1')]&&_0x1d4789[_0x8eeee('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1d4789[_0x8eeee('0x13e4')]=_0x8eeee('0x183f'),_0x1d4789['company']=angular[_0x8eeee('0x89')](_0x50ac6a),_0x1d4789['companies']=_0x37b0ed,_0x1d4789['newCompany']=![];!_0x1d4789[_0x8eeee('0x1e4d')]&&(_0x1d4789['company']={},_0x1d4789['title']=_0x8eeee('0x2813'),_0x1d4789[_0x8eeee('0x166b')]=!![]);_0x1d4789['addNewCompany']=_0x5ee1ab,_0x1d4789['saveCompany']=_0x50f42e,_0x1d4789[_0x8eeee('0x1b1a')]=_0x63ca8c,_0x1d4789[_0x8eeee('0x2635')]=_0x14852f,_0x1d4789[_0x8eeee('0x2584')]=_0x194370;function _0x5ee1ab(){var _0x564881=_0x8eeee;_0x1d4789[_0x564881('0xcd2')]=[],_0x15574c[_0x564881('0x24d1')][_0x564881('0xe5e')](_0x1d4789[_0x564881('0x1e4d')])[_0x564881('0xe59')][_0x564881('0xe19')](function(_0x55711b){var _0x2f2517=_0x564881;_0x1d4789[_0x2f2517('0xcca')][_0x2f2517('0x14c9')](_0x55711b[_0x2f2517('0x250e')]()),_0x3d8e01[_0x2f2517('0x425')]({'title':_0x2f2517('0xb78'),'msg':_0x1d4789[_0x2f2517('0x1e4d')][_0x2f2517('0x2623')]?_0x1d4789[_0x2f2517('0x1e4d')]['name']+_0x2f2517('0x105f'):''}),_0x194370(_0x55711b);})['catch'](function(_0x479ecf){var _0x2059c9=_0x564881;if(_0x479ecf[_0x2059c9('0x11d0')]&&_0x479ecf[_0x2059c9('0x11d0')][_0x2059c9('0xcd2')]&&_0x479ecf[_0x2059c9('0x11d0')][_0x2059c9('0xcd2')]['length']){_0x1d4789[_0x2059c9('0xcd2')]=_0x479ecf[_0x2059c9('0x11d0')][_0x2059c9('0xcd2')]||[{'message':_0x479ecf[_0x2059c9('0x94f')](),'type':'api.cmCompany.save'}];for(var _0x23be4c=0x0;_0x23be4c<_0x479ecf['data'][_0x2059c9('0xcd2')]['length'];_0x23be4c+=0x1){_0x3d8e01[_0x2059c9('0x8c8')]({'title':_0x479ecf['data']['errors'][_0x23be4c]['type'],'msg':_0x479ecf[_0x2059c9('0x11d0')]['errors'][_0x23be4c][_0x2059c9('0x27e8')]});}}else _0x3d8e01['error']({'title':_0x479ecf[_0x2059c9('0x2833')]?_0x2059c9('0x27f2')+_0x479ecf[_0x2059c9('0x2833')]+_0x2059c9('0x1b7c')+_0x479ecf[_0x2059c9('0x1fd7')]:_0x2059c9('0x893'),'msg':_0x479ecf[_0x2059c9('0x11d0')]?JSON[_0x2059c9('0x3ad')](_0x479ecf[_0x2059c9('0x11d0')][_0x2059c9('0x27e8')]):_0x479ecf['toString']()});});}function _0x50f42e(){var _0xeefc0a=_0x8eeee;_0x1d4789['errors']=[],_0x15574c[_0xeefc0a('0x24d1')][_0xeefc0a('0xa70')]({'id':_0x1d4789[_0xeefc0a('0x1e4d')]['id']},_0x1d4789[_0xeefc0a('0x1e4d')])[_0xeefc0a('0xe59')]['then'](function(_0x4c2bfd){var _0x2ef557=_0xeefc0a,_0x151ead=_0x32d445()['find'](_0x1d4789['companies'],{'id':_0x4c2bfd['id']});_0x151ead&&_0x32d445()['merge'](_0x151ead,_0x32d445()[_0x2ef557('0xed5')](_0x4c2bfd[_0x2ef557('0x250e')](),_0x32d445()[_0x2ef557('0x1234')](_0x151ead))),_0x3d8e01[_0x2ef557('0x425')]({'title':_0x2ef557('0x276d'),'msg':_0x1d4789[_0x2ef557('0x1e4d')][_0x2ef557('0x2623')]?_0x1d4789[_0x2ef557('0x1e4d')][_0x2ef557('0x2623')]+_0x2ef557('0x1c19'):''}),_0x194370(_0x4c2bfd);})[_0xeefc0a('0x223b')](function(_0x2bf09e){var _0x8d90e9=_0xeefc0a;if(_0x2bf09e['data']&&_0x2bf09e[_0x8d90e9('0x11d0')][_0x8d90e9('0xcd2')]&&_0x2bf09e[_0x8d90e9('0x11d0')][_0x8d90e9('0xcd2')][_0x8d90e9('0x25ae')]){_0x1d4789[_0x8d90e9('0xcd2')]=_0x2bf09e['data'][_0x8d90e9('0xcd2')]||[{'message':_0x2bf09e[_0x8d90e9('0x94f')](),'type':_0x8d90e9('0x1895')}];for(var _0x15c5bf=0x0;_0x15c5bf<_0x2bf09e[_0x8d90e9('0x11d0')][_0x8d90e9('0xcd2')]['length'];_0x15c5bf++){_0x3d8e01['error']({'title':_0x2bf09e[_0x8d90e9('0x11d0')]['errors'][_0x15c5bf][_0x8d90e9('0x62e')],'msg':_0x2bf09e[_0x8d90e9('0x11d0')][_0x8d90e9('0xcd2')][_0x15c5bf][_0x8d90e9('0x27e8')]});}}else _0x3d8e01[_0x8d90e9('0x8c8')]({'title':_0x2bf09e[_0x8d90e9('0x2833')]?_0x8d90e9('0x27f2')+_0x2bf09e['status']+'\x20-\x20'+_0x2bf09e['statusText']:_0x8d90e9('0x1895'),'msg':_0x2bf09e[_0x8d90e9('0x11d0')]?JSON[_0x8d90e9('0x3ad')](_0x2bf09e[_0x8d90e9('0x11d0')][_0x8d90e9('0x27e8')]):_0x2bf09e['toString']()});});}function _0x63ca8c(_0x896be5){var _0x3d8b7b=_0x8eeee;_0x1d4789[_0x3d8b7b('0xcd2')]=[];var _0x5a4fe8=_0x2135db['confirm']()['title'](_0x3d8b7b('0x24d0'))[_0x3d8b7b('0xd0')](_0x3d8b7b('0x8e8'))[_0x3d8b7b('0x4d1')](_0x3d8b7b('0x1b9c'))['ok']('Delete')['cancel']('Cancel')[_0x3d8b7b('0x1345')](_0x896be5);_0x2135db['show'](_0x5a4fe8)[_0x3d8b7b('0xe19')](function(){var _0xef1f35=_0x3d8b7b;_0x15574c['cmCompany'][_0xef1f35('0x229e')]({'id':_0x1d4789[_0xef1f35('0x1e4d')]['id']})[_0xef1f35('0xe59')][_0xef1f35('0xe19')](function(){var _0x7552d2=_0xef1f35;_0x32d445()[_0x7552d2('0xa8b')](_0x1d4789[_0x7552d2('0xcca')],{'id':_0x1d4789['company']['id']}),_0x3d8e01[_0x7552d2('0x425')]({'title':'Company\x20properly\x20deleted!','msg':(_0x1d4789['company']['name']||_0x7552d2('0x1e4d'))+'\x20has\x20been\x20deleted!'}),_0x194370(_0x1d4789['company']);})['catch'](function(_0x1a995f){var _0x411db9=_0xef1f35;if(_0x1a995f['data']&&_0x1a995f[_0x411db9('0x11d0')][_0x411db9('0xcd2')]&&_0x1a995f['data']['errors'][_0x411db9('0x25ae')]){_0x1d4789[_0x411db9('0xcd2')]=_0x1a995f[_0x411db9('0x11d0')]['errors']||[{'message':_0x1a995f[_0x411db9('0x94f')](),'type':_0x411db9('0x2522')}];for(var _0xa1dcb2=0x0;_0xa1dcb2<_0x1a995f[_0x411db9('0x11d0')]['errors'][_0x411db9('0x25ae')];_0xa1dcb2++){_0x3d8e01[_0x411db9('0x8c8')]({'title':_0x1a995f[_0x411db9('0x11d0')][_0x411db9('0xcd2')][_0xa1dcb2][_0x411db9('0x62e')],'msg':_0x1a995f[_0x411db9('0x11d0')][_0x411db9('0xcd2')][_0xa1dcb2]['message']});}}else _0x3d8e01['error']({'title':_0x1a995f['status']?_0x411db9('0x27f2')+_0x1a995f[_0x411db9('0x2833')]+'\x20-\x20'+_0x1a995f[_0x411db9('0x1fd7')]:_0x411db9('0x2522'),'msg':_0x1a995f[_0x411db9('0x11d0')]?JSON['stringify'](_0x1a995f[_0x411db9('0x11d0')][_0x411db9('0x27e8')]):_0x1a995f[_0x411db9('0x27e8')]||_0x1a995f[_0x411db9('0x94f')]()});});},function(){});}function _0x14852f(_0x228581){return _0x228581===null?undefined:new Date(_0x228581);}function _0x194370(_0x41811a){_0x2135db['hide'](_0x41811a);}}const _0x35ea58=_0x5ada9d;_0xd75e33[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'company',_0xb635d2('0xb59')];function _0xd75e33(_0xb4154d,_0x3e709c,_0x537720,_0x294a1f,_0x4dc7dd,_0x1da503,_0x4e85a7,_0xc51978,_0x5d1216,_0x573395,_0x41e669,_0x32b6ad){var _0x40bcd8=_0xb635d2,_0x41b964=this;_0x41b964['currentUser']=_0x573395[_0x40bcd8('0x1ef8')](),_0x41b964[_0x40bcd8('0x5c1')]=_0x1da503,_0x41b964[_0x40bcd8('0x22f1')]=_0x4e85a7,_0x41b964[_0x40bcd8('0x25ac')]=_0x41b964['setting'][_0x40bcd8('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41b964['location']=_0x3e709c[_0x40bcd8('0xec0')]()+_0x40bcd8('0x21a8')+_0x3e709c['host'](),_0x41b964['company']=_0x41e669||_0xb4154d[_0x40bcd8('0x2ef')][_0x40bcd8('0x1e4d')]||{},_0x41b964['userProfileSection']=_0x32b6ad&&_0x32b6ad['count']==0x1?_0x32b6ad['rows'][0x0]:null,_0x41b964[_0x40bcd8('0xb3d')]=_0x573395[_0x40bcd8('0xd31')](_0x41b964[_0x40bcd8('0xb59')]?_0x41b964['userProfileSection']['crudPermissions']:null),_0x41b964[_0x40bcd8('0x1ccb')]={},_0x41b964[_0x40bcd8('0xc7b')]=_0xb4154d[_0x40bcd8('0x2ef')][_0x40bcd8('0x435')]||0x0,_0x41b964[_0x40bcd8('0x7ef')]=_0x475d7b,_0x41b964[_0x40bcd8('0xbdc')]=_0x5d1216[_0x40bcd8('0x1e67')],_0x41b964[_0x40bcd8('0xb75')]=_0x4b6b4c,_0x41b964['saveCompany']=_0x31ebfd;function _0x475d7b(_0xc96529){var _0x338953=_0x40bcd8;if(_0x573395['hasRole'](_0x338953('0xd14')))_0xb4154d['go'](_0x338953('0x6'),{'CompanyId':_0xc96529['id']});else return _0xc51978[_0x338953('0xb59')][_0x338953('0x22d5')]({'userProfileId':_0x573395['getCurrentUser']()[_0x338953('0x1d04')],'sectionId':0x12f})[_0x338953('0xe59')][_0x338953('0xe19')](function(_0x33aae0){var _0x41c933=_0x338953,_0x5d3014=_0x33aae0&&_0x33aae0[_0x41c933('0x16a7')]?_0x33aae0[_0x41c933('0x16a7')][0x0]:null;_0x5d3014&&_0x5d3014[_0x41c933('0x4ef')]?_0xb4154d['go'](_0x41c933('0x6'),{'CompanyId':_0xc96529['id']}):_0x5d1216[_0x41c933('0x1e67')]({'title':_0x4dc7dd[_0x41c933('0x2159')](_0x41c933('0x2786')),'msg':_0x4dc7dd[_0x41c933('0x2159')](_0x41c933('0x4bb'))});})['catch'](function(_0x28ecac){var _0x46e64f=_0x338953;_0x5d1216[_0x46e64f('0x8c8')]({'title':_0x28ecac[_0x46e64f('0x2833')]?_0x46e64f('0x27f2')+_0x28ecac[_0x46e64f('0x2833')]+_0x46e64f('0x1b7c')+_0x28ecac[_0x46e64f('0x1fd7')]:_0x46e64f('0x343'),'msg':_0x28ecac[_0x46e64f('0x2833')]?JSON['stringify'](_0x28ecac['data']):_0x28ecac['toString']()});});}function _0x4b6b4c(){var _0x2afc92=_0x40bcd8;_0xb4154d['go']('app.contactmanager.companies',{},{'reload':_0x2afc92('0x1170')});}function _0x31ebfd(){var _0xc93cd7=_0x40bcd8;_0xc51978[_0xc93cd7('0x24d1')]['update']({'id':_0x41b964[_0xc93cd7('0x1e4d')]['id']},_0x41b964['company'])[_0xc93cd7('0xe59')][_0xc93cd7('0xe19')](function(){var _0x3b8a99=_0xc93cd7;_0x5d1216[_0x3b8a99('0x425')]({'title':_0x3b8a99('0xb7f'),'msg':_0x41b964[_0x3b8a99('0x1e4d')][_0x3b8a99('0x2623')]?_0x41b964['company'][_0x3b8a99('0x2623')]+_0x3b8a99('0x283b'):''});})[_0xc93cd7('0x223b')](function(_0x3d4b33){var _0x2347f0=_0xc93cd7;_0x5d1216[_0x2347f0('0x8c8')]({'title':_0x3d4b33[_0x2347f0('0x2833')]?_0x2347f0('0x27f2')+_0x3d4b33['status']+_0x2347f0('0x1b7c')+_0x3d4b33[_0x2347f0('0x1fd7')]:_0x2347f0('0x239a'),'msg':_0x3d4b33[_0x2347f0('0x11d0')]?JSON[_0x2347f0('0x3ad')](_0x3d4b33[_0x2347f0('0x11d0')]):_0x3d4b33[_0x2347f0('0x94f')]()});});}}const _0x48dbf6=_0xd75e33;_0x202134[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x1d43'),'globalCustomField','api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x202134(_0x3d4bf3,_0x47a81b,_0x4693b7,_0x50eec5,_0x36f40b,_0x1c3e39,_0x3319bb,_0x14c669,_0xb87c9b,_0x2e61ca,_0x3457d8,_0x506406,_0x8fc743,_0x3c5ec2){var _0x3a9610=_0xb635d2,_0x3c97ff=this;_0x3c97ff[_0x3a9610('0x15a5')]=_0x3457d8['getCurrentUser'](),_0x3c97ff['errors']=[],_0x3c97ff[_0x3a9610('0x22f1')]=_0x8fc743,_0x3c97ff['license']=_0x506406,_0x3c97ff[_0x3a9610('0xb3d')]=_0x3c5ec2,_0x3c97ff[_0x3a9610('0x1ccb')]={},_0x3c97ff[_0x3a9610('0x25ac')]=_0x3c97ff[_0x3a9610('0x22f1')]&&_0x3c97ff[_0x3a9610('0x22f1')][_0x3a9610('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c97ff[_0x3a9610('0x13e4')]='CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD',_0x3c97ff[_0x3a9610('0x1710')]={'animation':0x320,'sort':!![],'onSort':function _0x47d6d7(){var _0x19ec19=_0x3a9610;_0x3d4bf3['globalCustomFieldForm'][_0x19ec19('0x9a3')]=![];}},_0x3c97ff[_0x3a9610('0x21e8')]=_0xb87c9b,_0x3c97ff['globalCustomFields']=_0x14c669,_0x3c97ff[_0x3a9610('0x1929')]=![];!_0x3c97ff[_0x3a9610('0x21e8')]&&(_0x3c97ff[_0x3a9610('0x21e8')]={'type':_0x3a9610('0x1bc6'),'actionType':'voice'},_0x3c97ff[_0x3a9610('0x13e4')]=_0x3a9610('0x20eb'),_0x3c97ff[_0x3a9610('0x1929')]=!![]);_0x3d4bf3[_0x3a9610('0x107')](_0x3a9610('0x554'),function(_0x29eba2,_0x2bdfcc){var _0x298e04=_0x3a9610;if(_0x29eba2!==_0x2bdfcc)switch(_0x29eba2){case _0x298e04('0x1bc6'):_0x3c97ff[_0x298e04('0x21e8')][_0x298e04('0x1b79')]='';break;case _0x298e04('0x2e6'):_0x3c97ff[_0x298e04('0x21e8')][_0x298e04('0x1b79')]=[];break;default:}}),_0x3c97ff[_0x3a9610('0x28b3')]=_0x46f2af,_0x3c97ff[_0x3a9610('0x129b')]=_0x4876a8,_0x3c97ff['deleteGlobalCustomField']=_0xa8aeda,_0x3c97ff[_0x3a9610('0x2635')]=_0x4e0b53,_0x3c97ff[_0x3a9610('0x25e7')]=_0x51ec47,_0x3c97ff[_0x3a9610('0x13b1')]=_0x1b8661,_0x3c97ff[_0x3a9610('0x18fe')]=_0x417a12,_0x3c97ff['closeDialog']=_0x1d1745;function _0x51ec47(_0x53b4c2){var _0x242204=_0x3a9610;_0x53b4c2['push']({'value':_0x242204('0x17c0')}),_0x3d4bf3[_0x242204('0x13f2')][_0x242204('0x9a3')]=![];}function _0x1b8661(_0x4bb855,_0x1ac9cb){var _0x4ffcbb=_0x3a9610;_0x4bb855[_0x4ffcbb('0x1c8e')](_0x1ac9cb,0x1),_0x3d4bf3['globalCustomFieldForm'][_0x4ffcbb('0x9a3')]=![];}function _0x417a12(_0x5f0927){var _0x95972f=_0x3a9610,_0x11c97e=_0x5f0927[_0x95972f('0x25ae')];for(var _0x4d1754=0x0;_0x4d1754<_0x11c97e;_0x4d1754++){_0x5f0927[_0x95972f('0x1c8e')](0x0,0x1);}_0x3d4bf3['globalCustomFieldForm'][_0x95972f('0x9a3')]=![];}function _0x46f2af(){var _0x4ff3ab=_0x3a9610;_0x3c97ff['errors']=[],_0x2e61ca['cmCustomField'][_0x4ff3ab('0xe5e')](_0x3c97ff[_0x4ff3ab('0x21e8')])[_0x4ff3ab('0xe59')]['then'](function(_0x50fe9c){var _0x4a60f8=_0x4ff3ab;_0x3c97ff[_0x4a60f8('0x1d43')][_0x4a60f8('0x14c9')](_0x50fe9c[_0x4a60f8('0x250e')]()),_0x3319bb[_0x4a60f8('0x425')]({'title':_0x4a60f8('0xc35'),'msg':_0x3c97ff['globalCustomField'][_0x4a60f8('0x2623')]?_0x3c97ff['globalCustomField']['name']+_0x4a60f8('0x105f'):''}),_0x1d1745(_0x50fe9c);})[_0x4ff3ab('0x223b')](function(_0x207b76){var _0x3b2657=_0x4ff3ab;if(_0x207b76[_0x3b2657('0x11d0')]&&_0x207b76['data'][_0x3b2657('0xcd2')]&&_0x207b76[_0x3b2657('0x11d0')][_0x3b2657('0xcd2')][_0x3b2657('0x25ae')]){_0x3c97ff['errors']=_0x207b76[_0x3b2657('0x11d0')][_0x3b2657('0xcd2')]||[{'message':_0x207b76[_0x3b2657('0x94f')](),'type':_0x3b2657('0x1d1')}];for(var _0x45540e=0x0;_0x45540e<_0x207b76['data'][_0x3b2657('0xcd2')][_0x3b2657('0x25ae')];_0x45540e+=0x1){_0x3319bb['error']({'title':_0x207b76[_0x3b2657('0x11d0')][_0x3b2657('0xcd2')][_0x45540e][_0x3b2657('0x62e')],'msg':_0x207b76[_0x3b2657('0x11d0')]['errors'][_0x45540e][_0x3b2657('0x27e8')]});}}else _0x3319bb[_0x3b2657('0x8c8')]({'title':_0x207b76['status']?_0x3b2657('0x27f2')+_0x207b76[_0x3b2657('0x2833')]+_0x3b2657('0x1b7c')+_0x207b76['statusText']:'api.cmCustomField.save','msg':_0x207b76[_0x3b2657('0x11d0')]?JSON[_0x3b2657('0x3ad')](_0x207b76[_0x3b2657('0x11d0')][_0x3b2657('0x27e8')]):_0x207b76['toString']()});});}function _0x4876a8(){var _0x3131a7=_0x3a9610;_0x3c97ff[_0x3131a7('0xcd2')]=[],_0x2e61ca[_0x3131a7('0x1a2b')]['update']({'id':_0x3c97ff['globalCustomField']['id']},_0x3c97ff[_0x3131a7('0x21e8')])[_0x3131a7('0xe59')]['then'](function(_0xf6e97e){var _0x174784=_0x3131a7,_0x4a898e=_0x32d445()['find'](_0x3c97ff[_0x174784('0x1d43')],{'id':_0xf6e97e['id']});_0x4a898e&&_0x32d445()['merge'](_0x4a898e,_0x32d445()[_0x174784('0xed5')](_0xf6e97e['toJSON'](),_0x32d445()[_0x174784('0x1234')](_0x4a898e))),_0x3319bb[_0x174784('0x425')]({'title':_0x174784('0x1c3'),'msg':_0x3c97ff[_0x174784('0x21e8')][_0x174784('0x2623')]?_0x3c97ff['globalCustomField']['name']+_0x174784('0x1c19'):''}),_0x1d1745(_0xf6e97e);})['catch'](function(_0x66664a){var _0x250e01=_0x3131a7;if(_0x66664a[_0x250e01('0x11d0')]&&_0x66664a['data'][_0x250e01('0xcd2')]&&_0x66664a['data'][_0x250e01('0xcd2')][_0x250e01('0x25ae')]){_0x3c97ff[_0x250e01('0xcd2')]=_0x66664a[_0x250e01('0x11d0')][_0x250e01('0xcd2')]||[{'message':_0x66664a[_0x250e01('0x94f')](),'type':_0x250e01('0x1937')}];for(var _0x11cd0d=0x0;_0x11cd0d<_0x66664a[_0x250e01('0x11d0')][_0x250e01('0xcd2')][_0x250e01('0x25ae')];_0x11cd0d++){_0x3319bb[_0x250e01('0x8c8')]({'title':_0x66664a[_0x250e01('0x11d0')]['errors'][_0x11cd0d][_0x250e01('0x62e')],'msg':_0x66664a['data']['errors'][_0x11cd0d][_0x250e01('0x27e8')]});}}else _0x3319bb[_0x250e01('0x8c8')]({'title':_0x66664a['status']?_0x250e01('0x27f2')+_0x66664a[_0x250e01('0x2833')]+'\x20-\x20'+_0x66664a['statusText']:_0x250e01('0x1937'),'msg':_0x66664a[_0x250e01('0x11d0')]?JSON[_0x250e01('0x3ad')](_0x66664a[_0x250e01('0x11d0')][_0x250e01('0x27e8')]):_0x66664a[_0x250e01('0x94f')]()});});}function _0xa8aeda(_0x18042f){var _0x3c12b1=_0x3a9610;_0x3c97ff['errors']=[];var _0x2fd382=_0x50eec5[_0x3c12b1('0xa5')]()[_0x3c12b1('0x13e4')](_0x3c12b1('0x24d0'))[_0x3c12b1('0xd0')]('The\x20globalCustomField\x20will\x20be\x20deleted.')[_0x3c12b1('0x4d1')](_0x3c12b1('0xe88'))['ok']('Delete')[_0x3c12b1('0x2c1')]('Cancel')[_0x3c12b1('0x1345')](_0x18042f);_0x50eec5[_0x3c12b1('0x26b2')](_0x2fd382)[_0x3c12b1('0xe19')](function(){var _0x44ad24=_0x3c12b1;_0x2e61ca[_0x44ad24('0x1a2b')][_0x44ad24('0x229e')]({'id':_0x3c97ff[_0x44ad24('0x21e8')]['id']})[_0x44ad24('0xe59')][_0x44ad24('0xe19')](function(){var _0x3d46b7=_0x44ad24;_0x32d445()[_0x3d46b7('0xa8b')](_0x3c97ff[_0x3d46b7('0x1d43')],{'id':_0x3c97ff['globalCustomField']['id']}),_0x3319bb[_0x3d46b7('0x425')]({'title':_0x3d46b7('0x155c'),'msg':(_0x3c97ff[_0x3d46b7('0x21e8')][_0x3d46b7('0x2623')]||'globalCustomField')+_0x3d46b7('0x2182')}),_0x1d1745(_0x3c97ff[_0x3d46b7('0x21e8')]);})[_0x44ad24('0x223b')](function(_0x3ef400){var _0x175f71=_0x44ad24;if(_0x3ef400[_0x175f71('0x11d0')]&&_0x3ef400[_0x175f71('0x11d0')][_0x175f71('0xcd2')]&&_0x3ef400[_0x175f71('0x11d0')][_0x175f71('0xcd2')][_0x175f71('0x25ae')]){_0x3c97ff[_0x175f71('0xcd2')]=_0x3ef400[_0x175f71('0x11d0')]['errors']||[{'message':_0x3ef400[_0x175f71('0x94f')](),'type':'api.cmCustomField.delete'}];for(var _0x1a1e38=0x0;_0x1a1e38<_0x3ef400[_0x175f71('0x11d0')][_0x175f71('0xcd2')]['length'];_0x1a1e38++){_0x3319bb[_0x175f71('0x8c8')]({'title':_0x3ef400['data'][_0x175f71('0xcd2')][_0x1a1e38][_0x175f71('0x62e')],'msg':_0x3ef400[_0x175f71('0x11d0')]['errors'][_0x1a1e38][_0x175f71('0x27e8')]});}}else _0x3319bb[_0x175f71('0x8c8')]({'title':_0x3ef400[_0x175f71('0x2833')]?_0x175f71('0x27f2')+_0x3ef400[_0x175f71('0x2833')]+_0x175f71('0x1b7c')+_0x3ef400['statusText']:_0x175f71('0xe49'),'msg':_0x3ef400[_0x175f71('0x11d0')]?JSON[_0x175f71('0x3ad')](_0x3ef400[_0x175f71('0x11d0')][_0x175f71('0x27e8')]):_0x3ef400['message']||_0x3ef400[_0x175f71('0x94f')]()});});},function(){});}function _0x4e0b53(_0x5d7f36){return _0x5d7f36===null?undefined:new Date(_0x5d7f36);}function _0x1d1745(_0x34b7fb){var _0x2df2cc=_0x3a9610;_0x50eec5[_0x2df2cc('0x11ed')](_0x34b7fb);}}const _0x425629=_0x202134,_0x4a2b54=_0x59426a['p']+_0xb635d2('0x1d62');_0x4b3f01['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x1d43'),'userProfile',_0xb635d2('0xb59'),'api',_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x4b3f01(_0x5a8d7c,_0x376d9a,_0x1c16d4,_0x554089,_0x1bbea3,_0x508ddc,_0x1372e1,_0x1afee1,_0x3a35e,_0x5758e0,_0x5c4901,_0xa25453,_0x85fa2d,_0x56eeb5,_0x1962ab,_0xb763ed,_0x4f41ac){var _0x5ae03b=_0xb635d2,_0x4f62b1=this;_0x4f62b1[_0x5ae03b('0x5c1')]=_0xb763ed,_0x4f62b1[_0x5ae03b('0x22f1')]=_0x4f41ac,_0x4f62b1[_0x5ae03b('0x15a5')]=_0x1962ab[_0x5ae03b('0x1ef8')](),_0x4f62b1[_0x5ae03b('0x1d43')]=_0x3a35e||{'count':0x0,'rows':[]},_0x4f62b1[_0x5ae03b('0x154f')]=_0x5758e0,_0x4f62b1[_0x5ae03b('0xb59')]=_0x5c4901&&_0x5c4901[_0x5ae03b('0x148b')]==0x1?_0x5c4901[_0x5ae03b('0x16a7')][0x0]:null,_0x4f62b1[_0x5ae03b('0xb3d')]=_0x1962ab[_0x5ae03b('0xd31')](_0x4f62b1[_0x5ae03b('0xb59')]?_0x4f62b1['userProfileSection']['crudPermissions']:null),_0x4f62b1[_0x5ae03b('0x19b6')]='globalCustomFields',_0x4f62b1[_0x5ae03b('0x14d6')]='',_0x4f62b1[_0x5ae03b('0x190c')]=null,_0x4f62b1[_0x5ae03b('0x2585')]=[],_0x4f62b1[_0x5ae03b('0xa16')]={'fields':_0x5ae03b('0x213d'),'sort':_0x5ae03b('0x7e8'),'ListId':_0x5ae03b('0x1046'),'limit':0xa,'page':0x1},_0x4f62b1['arraytype']=_0x32d445()[_0x5ae03b('0x226f')]([{'option':_0x5ae03b('0x2115'),'value':'\x27text\x27'},{'option':_0x5ae03b('0x1630'),'value':_0x5ae03b('0x13d5')},{'option':_0x5ae03b('0x59c'),'value':'\x27number\x27'},{'option':_0x5ae03b('0x8b2'),'value':'\x27switch\x27'},{'option':_0x5ae03b('0x1cbc'),'value':_0x5ae03b('0x125e')}],function(_0x51f5cf){var _0x1d01be=_0x5ae03b;return _0x32d445()[_0x1d01be('0x1b42')](_0x51f5cf[_0x1d01be('0x2')],new RegExp('\x27','g'),'');}),_0x4f62b1['arrayactionType']=_0x32d445()[_0x5ae03b('0x226f')]([{'option':_0x5ae03b('0x19ff'),'value':_0x5ae03b('0x1d1f')}],function(_0x1ada96){var _0x3808c9=_0x5ae03b;return _0x32d445()[_0x3808c9('0x1b42')](_0x1ada96[_0x3808c9('0x2')],new RegExp('\x27','g'),'');}),_0x4f62b1[_0x5ae03b('0x1752')]=_0x1b974c,_0x4f62b1[_0x5ae03b('0x1d9e')]=_0x10161c,_0x4f62b1['success']=_0x36838b,_0x4f62b1['getGlobalCustomFields']=_0x150f07,_0x4f62b1[_0x5ae03b('0x809')]=_0x34ec27,_0x4f62b1['deleteGlobalCustomField']=_0x3f94ff,_0x4f62b1[_0x5ae03b('0x1ed4')]=_0xea5828,_0x4f62b1[_0x5ae03b('0x8c1')]=_0x2df3ad,_0x4f62b1[_0x5ae03b('0x286d')]=_0x438fa5,_0x4f62b1['selectAllGlobalCustomFields']=_0xd7a316;function _0x1b974c(_0x2079cb,_0x4e9f9e){var _0x277c11=_0x5ae03b;_0x1bbea3[_0x277c11('0x26b2')]({'controller':_0x277c11('0x1ec2'),'controllerAs':'vm','templateUrl':_0x4a2b54,'parent':angular['element'](_0x508ddc[_0x277c11('0x19b2')]),'targetEvent':_0x4e9f9e,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x2079cb,'globalCustomFields':_0x4f62b1[_0x277c11('0x1d43')][_0x277c11('0x16a7')],'license':_0x4f62b1[_0x277c11('0x5c1')],'setting':null,'crudPermissions':_0x4f62b1['crudPermissions']}});}function _0x10161c(_0x1d6857,_0x34f15b){var _0x3ebc6c=_0x5ae03b,_0x57dd59=_0x1bbea3[_0x3ebc6c('0xa5')]()[_0x3ebc6c('0x13e4')](_0x3ebc6c('0x346')+_0x32d445()[_0x3ebc6c('0x1df2')](_0x3ebc6c('0x21e8'))+'?')[_0x3ebc6c('0x221c')](''+(_0x1d6857[_0x3ebc6c('0x2623')]||_0x3ebc6c('0x21e8'))+_0x3ebc6c('0x27bb')+_0x3ebc6c('0x21bd'))[_0x3ebc6c('0x4d1')]('delete\x20globalCustomField')[_0x3ebc6c('0x1345')](_0x34f15b)['ok']('OK')['cancel'](_0x3ebc6c('0x17'));_0x1bbea3['show'](_0x57dd59)[_0x3ebc6c('0xe19')](function(){_0x3f94ff(_0x1d6857);},function(){var _0x438b0b=_0x3ebc6c;console['log'](_0x438b0b('0x17'));});}var _0x3b14f5=!![],_0x58f72b=0x1;_0x5a8d7c[_0x5ae03b('0x107')](_0x5ae03b('0x20cb'),function(_0x5156b0,_0x933e4e){var _0x129d1b=_0x5ae03b;_0x3b14f5?_0x1372e1(function(){_0x3b14f5=![];}):(!_0x933e4e&&(_0x58f72b=_0x4f62b1['query'][_0x129d1b('0xc08')]),_0x5156b0!==_0x933e4e&&(_0x4f62b1[_0x129d1b('0xa16')][_0x129d1b('0xc08')]=0x1),!_0x5156b0&&(_0x4f62b1[_0x129d1b('0xa16')][_0x129d1b('0xc08')]=_0x58f72b),_0x4f62b1['getGlobalCustomFields']());});function _0x36838b(_0x4346aa){var _0x23e493=_0x5ae03b;_0x4f62b1[_0x23e493('0x1d43')]=_0x4346aa||{'count':0x0,'rows':[]};}function _0x150f07(){var _0x448f6e=_0x5ae03b;_0x4f62b1[_0x448f6e('0xa16')][_0x448f6e('0xab0')]=(_0x4f62b1[_0x448f6e('0xa16')][_0x448f6e('0xc08')]-0x1)*_0x4f62b1[_0x448f6e('0xa16')][_0x448f6e('0x1b6d')],_0x1962ab[_0x448f6e('0x179e')](_0x448f6e('0xd14'))?_0x4f62b1[_0x448f6e('0x9c8')]=_0xa25453['cmCustomField'][_0x448f6e('0x22d5')](_0x4f62b1[_0x448f6e('0xa16')],_0x36838b)[_0x448f6e('0xe59')]:(_0x4f62b1['query']['id']=_0x4f62b1['userProfile']['id'],_0x4f62b1[_0x448f6e('0xa16')]['section']='GlobalCustomFields',_0x4f62b1['promise']=_0xa25453[_0x448f6e('0x154f')][_0x448f6e('0x14e6')](_0x4f62b1[_0x448f6e('0xa16')],_0x36838b)[_0x448f6e('0xe59')]);}function _0x34ec27(_0x46d48c,_0x53bb1a){var _0x144e19=_0x5ae03b;_0x1bbea3['show']({'controller':_0x144e19('0x1ec2'),'controllerAs':'vm','templateUrl':_0x4a2b54,'parent':angular[_0x144e19('0x24a1')](_0x508ddc[_0x144e19('0x19b2')]),'targetEvent':_0x46d48c,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x53bb1a,'globalCustomFields':_0x4f62b1[_0x144e19('0x1d43')]['rows'],'license':_0x4f62b1[_0x144e19('0x5c1')],'setting':_0x4f62b1['setting'],'crudPermissions':_0x4f62b1['crudPermissions']}});}function _0x3f94ff(_0x57ae17){var _0x15ad6d=_0x5ae03b;_0xa25453[_0x15ad6d('0x1a2b')]['delete']({'id':_0x57ae17['id']})[_0x15ad6d('0xe59')][_0x15ad6d('0xe19')](function(){var _0x359927=_0x15ad6d;_0x32d445()[_0x359927('0xa8b')](_0x4f62b1['globalCustomFields'][_0x359927('0x16a7')],{'id':_0x57ae17['id']}),_0x4f62b1[_0x359927('0x1d43')]['count']-=0x1,!_0x4f62b1[_0x359927('0x1d43')]['rows']['length']&&_0x4f62b1[_0x359927('0x25a')](),_0x56eeb5[_0x359927('0x425')]({'title':_0x32d445()[_0x359927('0x1df2')](_0x359927('0x658'))+_0x359927('0x1219'),'msg':_0x57ae17['name']?_0x57ae17[_0x359927('0x2623')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x32af4a){var _0x42dcaf=_0x15ad6d;if(_0x32af4a['data']&&_0x32af4a[_0x42dcaf('0x11d0')][_0x42dcaf('0xcd2')]&&_0x32af4a['data'][_0x42dcaf('0xcd2')][_0x42dcaf('0x25ae')]){_0x4f62b1['errors']=_0x32af4a['data']['errors']||[{'message':_0x32af4a[_0x42dcaf('0x94f')](),'type':'SYSTEM:DELETEcmCustomField'}];for(var _0x568ba7=0x0;_0x568ba7<_0x32af4a[_0x42dcaf('0x11d0')][_0x42dcaf('0xcd2')][_0x42dcaf('0x25ae')];_0x568ba7++){_0x56eeb5[_0x42dcaf('0x8c8')]({'title':_0x32af4a[_0x42dcaf('0x11d0')]['errors'][_0x568ba7][_0x42dcaf('0x62e')],'msg':_0x32af4a['data'][_0x42dcaf('0xcd2')][_0x568ba7]['message']});}}else _0x56eeb5[_0x42dcaf('0x8c8')]({'title':_0x32af4a[_0x42dcaf('0x2833')]?_0x42dcaf('0x27f2')+_0x32af4a['status']+_0x42dcaf('0x1b7c')+_0x32af4a[_0x42dcaf('0x1fd7')]:'SYSTEM:DELETEcmCustomField','msg':_0x32af4a[_0x42dcaf('0x11d0')]?JSON[_0x42dcaf('0x3ad')](_0x32af4a['data'][_0x42dcaf('0x27e8')]):_0x32af4a[_0x42dcaf('0x27e8')]||_0x32af4a[_0x42dcaf('0x94f')]()});});}function _0xea5828(){var _0x5ca0f2=_0x5ae03b,_0x2cd0ff=angular[_0x5ca0f2('0x89')](_0x4f62b1['selectedGlobalCustomFields']);return _0x4f62b1[_0x5ca0f2('0x2585')]=[],_0x2cd0ff;}function _0x2df3ad(_0x16c337){var _0x49d52c=_0x5ae03b,_0x1cd6ad=_0x1bbea3[_0x49d52c('0xa5')]()[_0x49d52c('0x13e4')](_0x49d52c('0xc13'))[_0x49d52c('0x221c')](_0x49d52c('0xab2')+_0x4f62b1[_0x49d52c('0x2585')][_0x49d52c('0x25ae')]+_0x49d52c('0x5bc')+'\x20will\x20be\x20deleted.')[_0x49d52c('0x4d1')](_0x49d52c('0xe71'))['targetEvent'](_0x16c337)['ok']('OK')[_0x49d52c('0x2c1')](_0x49d52c('0x17'));_0x1bbea3[_0x49d52c('0x26b2')](_0x1cd6ad)[_0x49d52c('0xe19')](function(){var _0x4731e2=_0x49d52c;_0x4f62b1[_0x4731e2('0x2585')][_0x4731e2('0x1d7e')](function(_0x3382fe){_0x3f94ff(_0x3382fe);}),_0x4f62b1[_0x4731e2('0x2585')]=[];});}function _0x438fa5(){var _0x3089ea=_0x5ae03b;_0x4f62b1[_0x3089ea('0x2585')]=[];}function _0xd7a316(){var _0x1edd83=_0x5ae03b;_0x4f62b1[_0x1edd83('0x2585')]=_0x4f62b1['globalCustomFields'][_0x1edd83('0x16a7')];}}const _0x1214b6=_0x4b3f01;_0x23ff99[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x9f8'),_0xb635d2('0x15a8'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x23ff99(_0x5b99e3,_0x3c02b8,_0x171a86,_0x25fcc7,_0x74dcf5,_0x51c262,_0x37203d,_0x32ca0b,_0x4c0462,_0x1d2cfd,_0x3855b4,_0x5826be,_0xe9885c,_0xdd5f21){var _0x48f971=_0xb635d2,_0x2fa0b3=this;_0x2fa0b3[_0x48f971('0x15a5')]=_0x3855b4[_0x48f971('0x1ef8')](),_0x2fa0b3[_0x48f971('0xcd2')]=[],_0x2fa0b3[_0x48f971('0x22f1')]=_0xe9885c,_0x2fa0b3['license']=_0x5826be,_0x2fa0b3[_0x48f971('0xb3d')]=_0xdd5f21,_0x2fa0b3[_0x48f971('0x1ccb')]={},_0x2fa0b3[_0x48f971('0x25ac')]=_0x2fa0b3['setting']&&_0x2fa0b3[_0x48f971('0x22f1')][_0x48f971('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2fa0b3['title']=_0x48f971('0x132a'),_0x2fa0b3['list']=angular['copy'](_0x4c0462),_0x2fa0b3['lists']=_0x32ca0b,_0x2fa0b3[_0x48f971('0x1ae0')]=![];!_0x2fa0b3[_0x48f971('0x15a8')]&&(_0x2fa0b3[_0x48f971('0x15a8')]={},_0x2fa0b3[_0x48f971('0x13e4')]=_0x48f971('0x14c7'),_0x2fa0b3[_0x48f971('0x1ae0')]=!![]);_0x2fa0b3[_0x48f971('0x81e')]=_0x3adef4,_0x2fa0b3[_0x48f971('0x1663')]=_0x46a9fc,_0x2fa0b3[_0x48f971('0x7a9')]=_0x38ab33,_0x2fa0b3[_0x48f971('0x2635')]=_0x4b7378,_0x2fa0b3[_0x48f971('0x2584')]=_0x42a8bb;function _0x3adef4(){var _0x3c92e1=_0x48f971;_0x2fa0b3[_0x3c92e1('0xcd2')]=[],_0x1d2cfd[_0x3c92e1('0x1bbd')][_0x3c92e1('0xe5e')](_0x2fa0b3[_0x3c92e1('0x15a8')])['$promise'][_0x3c92e1('0xe19')](function(_0x194836){var _0x1e615e=_0x3c92e1;_0x2fa0b3[_0x1e615e('0x9f8')][_0x1e615e('0x14c9')](_0x194836[_0x1e615e('0x250e')]()),_0x37203d[_0x1e615e('0x425')]({'title':'List\x20properly\x20created','msg':_0x2fa0b3['list'][_0x1e615e('0x2623')]?_0x2fa0b3[_0x1e615e('0x15a8')][_0x1e615e('0x2623')]+_0x1e615e('0x105f'):''}),_0x42a8bb(_0x194836);})['catch'](function(_0x1c32f4){var _0xdcf905=_0x3c92e1;if(_0x1c32f4[_0xdcf905('0x11d0')]&&_0x1c32f4[_0xdcf905('0x11d0')]['errors']&&_0x1c32f4['data']['errors'][_0xdcf905('0x25ae')]){_0x2fa0b3[_0xdcf905('0xcd2')]=_0x1c32f4[_0xdcf905('0x11d0')][_0xdcf905('0xcd2')]||[{'message':_0x1c32f4[_0xdcf905('0x94f')](),'type':_0xdcf905('0x2ec')}];for(var _0x4d09e9=0x0;_0x4d09e9<_0x1c32f4[_0xdcf905('0x11d0')][_0xdcf905('0xcd2')][_0xdcf905('0x25ae')];_0x4d09e9+=0x1){_0x37203d['error']({'title':_0x1c32f4[_0xdcf905('0x11d0')][_0xdcf905('0xcd2')][_0x4d09e9][_0xdcf905('0x62e')],'msg':_0x1c32f4[_0xdcf905('0x11d0')][_0xdcf905('0xcd2')][_0x4d09e9][_0xdcf905('0x27e8')]});}}else _0x37203d[_0xdcf905('0x8c8')]({'title':_0x1c32f4[_0xdcf905('0x2833')]?_0xdcf905('0x27f2')+_0x1c32f4['status']+_0xdcf905('0x1b7c')+_0x1c32f4[_0xdcf905('0x1fd7')]:_0xdcf905('0x2ec'),'msg':_0x1c32f4[_0xdcf905('0x11d0')]?JSON[_0xdcf905('0x3ad')](_0x1c32f4[_0xdcf905('0x11d0')]['message']):_0x1c32f4['toString']()});});}function _0x46a9fc(){var _0x5d5bc2=_0x48f971;_0x2fa0b3['errors']=[],_0x1d2cfd[_0x5d5bc2('0x1bbd')][_0x5d5bc2('0xa70')]({'id':_0x2fa0b3[_0x5d5bc2('0x15a8')]['id']},_0x2fa0b3[_0x5d5bc2('0x15a8')])[_0x5d5bc2('0xe59')][_0x5d5bc2('0xe19')](function(_0x444d2f){var _0x45e058=_0x5d5bc2,_0x11a7f7=_0x32d445()[_0x45e058('0xf15')](_0x2fa0b3['lists'],{'id':_0x444d2f['id']});_0x11a7f7&&_0x32d445()['merge'](_0x11a7f7,_0x32d445()[_0x45e058('0xed5')](_0x444d2f['toJSON'](),_0x32d445()['keys'](_0x11a7f7))),_0x37203d[_0x45e058('0x425')]({'title':_0x45e058('0x2779'),'msg':_0x2fa0b3[_0x45e058('0x15a8')]['name']?_0x2fa0b3[_0x45e058('0x15a8')]['name']+_0x45e058('0x1c19'):''}),_0x42a8bb(_0x444d2f);})[_0x5d5bc2('0x223b')](function(_0x4622ff){var _0x3f5030=_0x5d5bc2;if(_0x4622ff[_0x3f5030('0x11d0')]&&_0x4622ff[_0x3f5030('0x11d0')][_0x3f5030('0xcd2')]&&_0x4622ff['data'][_0x3f5030('0xcd2')][_0x3f5030('0x25ae')]){_0x2fa0b3[_0x3f5030('0xcd2')]=_0x4622ff[_0x3f5030('0x11d0')][_0x3f5030('0xcd2')]||[{'message':_0x4622ff['toString'](),'type':_0x3f5030('0xe2d')}];for(var _0x4322d6=0x0;_0x4322d6<_0x4622ff[_0x3f5030('0x11d0')][_0x3f5030('0xcd2')][_0x3f5030('0x25ae')];_0x4322d6++){_0x37203d[_0x3f5030('0x8c8')]({'title':_0x4622ff['data'][_0x3f5030('0xcd2')][_0x4322d6][_0x3f5030('0x62e')],'msg':_0x4622ff[_0x3f5030('0x11d0')][_0x3f5030('0xcd2')][_0x4322d6][_0x3f5030('0x27e8')]});}}else _0x37203d[_0x3f5030('0x8c8')]({'title':_0x4622ff['status']?'API:'+_0x4622ff[_0x3f5030('0x2833')]+_0x3f5030('0x1b7c')+_0x4622ff['statusText']:'api.cmList.update','msg':_0x4622ff['data']?JSON[_0x3f5030('0x3ad')](_0x4622ff[_0x3f5030('0x11d0')][_0x3f5030('0x27e8')]):_0x4622ff[_0x3f5030('0x94f')]()});});}function _0x38ab33(_0x48eaac){var _0x409212=_0x48f971;_0x2fa0b3[_0x409212('0xcd2')]=[];var _0x5a0e5c=_0x25fcc7[_0x409212('0xa5')]()['title']('Are\x20you\x20sure?')[_0x409212('0xd0')](_0x409212('0x215a'))[_0x409212('0x4d1')](_0x409212('0x687'))['ok'](_0x409212('0x2198'))['cancel'](_0x409212('0x8a3'))[_0x409212('0x1345')](_0x48eaac);_0x25fcc7[_0x409212('0x26b2')](_0x5a0e5c)[_0x409212('0xe19')](function(){var _0x538bdc=_0x409212;_0x1d2cfd[_0x538bdc('0x1bbd')][_0x538bdc('0x229e')]({'id':_0x2fa0b3['list']['id']})['$promise'][_0x538bdc('0xe19')](function(){var _0x26e4fb=_0x538bdc;_0x32d445()[_0x26e4fb('0xa8b')](_0x2fa0b3['lists'],{'id':_0x2fa0b3[_0x26e4fb('0x15a8')]['id']}),_0x37203d['success']({'title':_0x26e4fb('0xf49'),'msg':(_0x2fa0b3[_0x26e4fb('0x15a8')][_0x26e4fb('0x2623')]||'list')+_0x26e4fb('0x2182')}),_0x42a8bb(_0x2fa0b3[_0x26e4fb('0x15a8')]);})[_0x538bdc('0x223b')](function(_0x5b48c6){var _0x441e86=_0x538bdc;if(_0x5b48c6[_0x441e86('0x11d0')]&&_0x5b48c6[_0x441e86('0x11d0')][_0x441e86('0xcd2')]&&_0x5b48c6[_0x441e86('0x11d0')][_0x441e86('0xcd2')][_0x441e86('0x25ae')]){_0x2fa0b3[_0x441e86('0xcd2')]=_0x5b48c6['data']['errors']||[{'message':_0x5b48c6[_0x441e86('0x94f')](),'type':_0x441e86('0x1eec')}];for(var _0x5e5246=0x0;_0x5e5246<_0x5b48c6['data'][_0x441e86('0xcd2')][_0x441e86('0x25ae')];_0x5e5246++){_0x37203d['error']({'title':_0x5b48c6[_0x441e86('0x11d0')]['errors'][_0x5e5246]['type'],'msg':_0x5b48c6[_0x441e86('0x11d0')][_0x441e86('0xcd2')][_0x5e5246][_0x441e86('0x27e8')]});}}else _0x37203d['error']({'title':_0x5b48c6[_0x441e86('0x2833')]?_0x441e86('0x27f2')+_0x5b48c6[_0x441e86('0x2833')]+_0x441e86('0x1b7c')+_0x5b48c6[_0x441e86('0x1fd7')]:_0x441e86('0x1eec'),'msg':_0x5b48c6[_0x441e86('0x11d0')]?JSON['stringify'](_0x5b48c6[_0x441e86('0x11d0')][_0x441e86('0x27e8')]):_0x5b48c6['message']||_0x5b48c6[_0x441e86('0x94f')]()});});},function(){});}function _0x4b7378(_0x3f49d0){return _0x3f49d0===null?undefined:new Date(_0x3f49d0);}function _0x42a8bb(_0x10f8ae){var _0x530fd3=_0x48f971;_0x25fcc7[_0x530fd3('0x11ed')](_0x10f8ae);}}const _0x2d1a07=_0x23ff99;_0x1f6c37[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'api',_0xb635d2('0x15a8'),'lists',_0xb635d2('0x24e1'),_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x1f6c37(_0x125c19,_0x1a1d00,_0xff4bab,_0x136d38,_0x48da69,_0x474261,_0x109f40,_0x555b6b,_0x4edb18,_0x5b724d){var _0x4ab135=_0xb635d2,_0x46c62d=this;_0x46c62d[_0x4ab135('0x15a5')]=_0x4edb18[_0x4ab135('0x1ef8')](),_0x46c62d[_0x4ab135('0x15a8')]=_0x48da69,_0x46c62d['crudPermissions']=_0x5b724d,_0x46c62d[_0x4ab135('0x24e1')]=_0x109f40,_0x46c62d[_0x4ab135('0xe4b')]=[],_0x46c62d[_0x4ab135('0x1884')]=[],_0x46c62d[_0x4ab135('0x2273')]=[],_0x46c62d[_0x4ab135('0x286c')]=[],_0x46c62d[_0x4ab135('0xf79')]=[],_0x46c62d[_0x4ab135('0x16e7')]=![],_0x46c62d[_0x4ab135('0x888')]=_0x43f2b6,_0x46c62d[_0x4ab135('0x4b8')]=_0x31cdf2,_0x46c62d[_0x4ab135('0x2584')]=_0x4326a3,_0x46c62d['dualMultiselectOptions']={'readOnly':!_0x46c62d[_0x4ab135('0xb3d')][_0x4ab135('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4ab135('0x2623'),'line1':_0x4ab135('0xe11'),'line2':['name','internal'],'line3':'','labelAll':_0x555b6b['instant'](_0x4ab135('0xd2a')),'labelSelected':_0x555b6b['instant'](_0x4ab135('0x1a9a')),'transferCallback':function _0x26b6b9(){var _0xcb8236=_0x4ab135,_0x122d45=_0x32d445()[_0xcb8236('0x118')](_0x46c62d[_0xcb8236('0xf79')],_0x46c62d[_0xcb8236('0x2273')],'id');_0x46c62d[_0xcb8236('0x16e7')]=_0x32d445()[_0xcb8236('0x14b4')](_0x122d45)?![]:!![];}};function _0x43f2b6(){var _0x48ebae=_0x4ab135;return _0x4edb18[_0x48ebae('0x179e')](_0x48ebae('0xd14'))?_0x86cc01()[_0x48ebae('0x223b')](function(_0x405715){var _0x59a886=_0x48ebae;_0xff4bab[_0x59a886('0x8c8')]({'title':_0x405715[_0x59a886('0x2833')]?_0x59a886('0x27f2')+_0x405715['status']+_0x59a886('0x1b7c')+_0x405715[_0x59a886('0x1fd7')]:'SYSTEM:GET_AGENTS','msg':_0x405715['status']?JSON[_0x59a886('0x3ad')](_0x405715[_0x59a886('0x11d0')]):_0x405715['toString']()});}):_0x4bda3d()[_0x48ebae('0xe19')](function(_0x2e42b6){var _0x521b90=_0x48ebae;return _0x46c62d[_0x521b90('0x1e59')]=_0x2e42b6,_0x86cc01();})[_0x48ebae('0x223b')](function(_0x558d2c){var _0x3ad9b0=_0x48ebae;_0xff4bab['error']({'title':_0x558d2c[_0x3ad9b0('0x2833')]?_0x3ad9b0('0x27f2')+_0x558d2c[_0x3ad9b0('0x2833')]+_0x3ad9b0('0x1b7c')+_0x558d2c[_0x3ad9b0('0x1fd7')]:'SYSTEM:GET_AGENTS','msg':_0x558d2c[_0x3ad9b0('0x2833')]?JSON[_0x3ad9b0('0x3ad')](_0x558d2c[_0x3ad9b0('0x11d0')]):_0x558d2c['toString']()});});}function _0x4bda3d(){return _0x1a1d00(function(_0x4a5749,_0x1a8be0){var _0x3ebd87=a0_0x5325;_0x136d38[_0x3ebd87('0xb59')][_0x3ebd87('0x22d5')]({'userProfileId':_0x46c62d[_0x3ebd87('0x15a5')][_0x3ebd87('0x1d04')],'name':_0x3ebd87('0xd61')})['$promise'][_0x3ebd87('0xe19')](function(_0x43bce2){var _0x28eff0=_0x3ebd87,_0xac4810=_0x43bce2&&_0x43bce2[_0x28eff0('0x16a7')]?_0x43bce2[_0x28eff0('0x16a7')][0x0]:null;_0x4a5749(_0xac4810);})[_0x3ebd87('0x223b')](function(_0x12d126){_0x1a8be0(_0x12d126);});});}function _0x86cc01(){return _0x1a1d00(function(_0x4c9fa5,_0x4567c8){var _0xdeeacc=a0_0x5325;return _0x2b8886()['then'](function(_0x173fed){var _0x1350c7=a0_0x5325;return _0x46c62d['items']=_0x173fed[_0x1350c7('0x16a7')]?_0x173fed[_0x1350c7('0x16a7')]:[],_0x4edb18[_0x1350c7('0x179e')](_0x1350c7('0xd14'))?_0x173fed:_0x46c62d[_0x1350c7('0x1e59')]?_0x46c62d['section'][_0x1350c7('0x11fd')]?_0x173fed:_0x52a356():null;})[_0xdeeacc('0xe19')](function(_0x452d40){var _0x5a3eb8=_0xdeeacc,_0x3bf602=_0x452d40&&_0x452d40['rows']?_0x452d40['rows']:[];return _0x46c62d[_0x5a3eb8('0x1884')]=_0x32d445()[_0x5a3eb8('0x65a')](_0x3bf602,function(_0x57be55){var _0x2809f3=_0x5a3eb8;return _0x32d445()['find'](_0x46c62d[_0x2809f3('0xe4b')],{'id':_0x4edb18[_0x2809f3('0x179e')](_0x2809f3('0xd14'))||_0x46c62d[_0x2809f3('0x1e59')]['autoAssociation']?_0x57be55['id']:_0x57be55[_0x2809f3('0x1104')]});}),_0x46c62d[_0x5a3eb8('0x286c')]=angular[_0x5a3eb8('0x89')](_0x46c62d[_0x5a3eb8('0x1884')]),_0x46c62d[_0x5a3eb8('0xe4b')][_0x5a3eb8('0x1d7e')](function(_0x2f708f){var _0x1faafb=_0x5a3eb8,_0x466afa=_0x32d445()[_0x1faafb('0xf15')](_0x46c62d[_0x1faafb('0x1884')],{'id':_0x2f708f['id']});_0x4edb18[_0x1faafb('0x179e')](_0x1faafb('0xd14'))?_0x2f708f[_0x1faafb('0x1768')]=!![]:_0x2f708f[_0x1faafb('0x1768')]=typeof _0x466afa!==_0x1faafb('0x1143')?!![]:![];}),_0x36a78b();})[_0xdeeacc('0xe19')](function(_0x27bc3d){var _0x2b7bc2=_0xdeeacc,_0xaed3ea=_0x27bc3d&&_0x27bc3d[_0x2b7bc2('0x16a7')]?_0x27bc3d['rows']:[];_0x46c62d[_0x2b7bc2('0x2273')]=_0x32d445()[_0x2b7bc2('0x65a')](_0xaed3ea,function(_0x543dd7){var _0x40052d=_0x2b7bc2,_0x27d090=_0x32d445()['find'](_0x46c62d[_0x40052d('0xe4b')],{'id':_0x543dd7['id']});return _0x27d090[_0x40052d('0x21e3')]=_0x543dd7[_0x40052d('0x232c')]?_0x40052d('0x815')+_0x543dd7[_0x40052d('0x232c')][_0x40052d('0x21e3')]:'',_0x27d090['internal']=typeof _0x543dd7['internal']!==_0x40052d('0x1143')?'<'+_0x543dd7[_0x40052d('0x1b66')]+'>':'',_0x27d090;}),_0x46c62d[_0x2b7bc2('0xf79')]=angular['copy'](_0x46c62d[_0x2b7bc2('0x2273')]),_0x46c62d['dualMultiselectOptions'][_0x2b7bc2('0x2273')]=_0x46c62d[_0x2b7bc2('0x2273')],_0x46c62d['dualMultiselectOptions'][_0x2b7bc2('0xe4b')]=_0x32d445()[_0x2b7bc2('0x501')](_0x46c62d['allowedItems'],_0x46c62d[_0x2b7bc2('0xc00')][_0x2b7bc2('0x2273')],'id'),_0x4c9fa5();})[_0xdeeacc('0x223b')](function(_0x4452d8){_0x4567c8(_0x4452d8);});});}function _0x52a356(){return _0x1a1d00(function(_0x3e9a1f,_0x53a17b){var _0x124abe=a0_0x5325;return _0x136d38['userProfileResource'][_0x124abe('0x22d5')]({'sectionId':_0x46c62d[_0x124abe('0x1e59')]['id'],'nolimit':!![]})[_0x124abe('0xe59')][_0x124abe('0xe19')](function(_0x346842){_0x3e9a1f(_0x346842);})[_0x124abe('0x223b')](function(_0x2e0d11){_0x53a17b(_0x2e0d11);});});}function _0x36a78b(){return _0x1a1d00(function(_0x1e6b80,_0x3068f6){var _0x4269f8=a0_0x5325;return _0x136d38[_0x4269f8('0x1bbd')][_0x4269f8('0x14fd')]({'id':_0x46c62d[_0x4269f8('0x15a8')]['id'],'fields':_0x4269f8('0x244f'),'nolimit':!![],'role':'agent'})['$promise'][_0x4269f8('0xe19')](function(_0x3872d9){_0x1e6b80(_0x3872d9);})[_0x4269f8('0x223b')](function(_0x5559c2){_0x3068f6(_0x5559c2);});});}function _0x2b8886(){return _0x1a1d00(function(_0x2e60e3,_0x215a5c){var _0x185a2c=a0_0x5325;return _0x136d38[_0x185a2c('0x10c6')][_0x185a2c('0x22d5')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x185a2c('0x108')})['$promise'][_0x185a2c('0xe19')](function(_0x555995){_0x2e60e3(_0x555995);})['catch'](function(_0x1aea70){_0x215a5c(_0x1aea70);});});}function _0x2fd687(_0xc70dee){return _0x1a1d00(function(_0x4d1445,_0x166c35){var _0x299154=a0_0x5325;_0x32d445()['isEmpty'](_0xc70dee)?_0x4d1445():_0x136d38[_0x299154('0x1bbd')][_0x299154('0x2271')]({'id':_0x46c62d['list']['id'],'ids':_0x32d445()['map'](_0xc70dee,'id')})['$promise'][_0x299154('0xe19')](function(){_0x4d1445();})[_0x299154('0x223b')](function(_0x280b04){_0x166c35(_0x280b04);});});}function _0x4ce36e(_0x418913){return _0x1a1d00(function(_0x20be90,_0x12b0a7){var _0x2682d6=a0_0x5325;_0x32d445()[_0x2682d6('0x14b4')](_0x418913)?_0x20be90():_0x136d38['cmList'][_0x2682d6('0x6aa')]({'id':_0x46c62d[_0x2682d6('0x15a8')]['id'],'ids':_0x32d445()[_0x2682d6('0x65a')](_0x418913,'id')})[_0x2682d6('0xe59')][_0x2682d6('0xe19')](function(){_0x20be90();})[_0x2682d6('0x223b')](function(_0x13c260){_0x12b0a7(_0x13c260);});});}function _0x31cdf2(){var _0x27a4f1=_0x4ab135,_0xb5393c=_0x32d445()[_0x27a4f1('0x501')](_0x46c62d['startingSelectedItems'],_0x46c62d[_0x27a4f1('0x2273')],'id'),_0x292fd9=_0x32d445()[_0x27a4f1('0x501')](_0x46c62d[_0x27a4f1('0x2273')],_0x46c62d['startingSelectedItems'],'id');return _0x4ce36e(_0xb5393c)[_0x27a4f1('0xe19')](function(){return _0x2fd687(_0x292fd9);})[_0x27a4f1('0xe19')](function(){var _0x46286f=_0x27a4f1;_0x46c62d[_0x46286f('0x16e7')]=![],_0x46c62d[_0x46286f('0x286c')]=angular[_0x46286f('0x89')](_0x46c62d[_0x46286f('0x1884')]),_0x46c62d[_0x46286f('0xf79')]=angular['copy'](_0x46c62d[_0x46286f('0x2273')]),_0xff4bab[_0x46286f('0x425')]({'title':'SUCCESS','msg':_0x46286f('0x25d')});})[_0x27a4f1('0x223b')](function(_0x294e92){var _0x5b8bdd=_0x27a4f1;_0xff4bab[_0x5b8bdd('0x8c8')]({'title':_0x294e92[_0x5b8bdd('0x2833')]?_0x5b8bdd('0x27f2')+_0x294e92[_0x5b8bdd('0x2833')]+'\x20-\x20'+_0x294e92[_0x5b8bdd('0x1fd7')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x294e92[_0x5b8bdd('0x2833')]?JSON[_0x5b8bdd('0x3ad')](_0x294e92[_0x5b8bdd('0x11d0')]):_0x294e92[_0x5b8bdd('0x94f')]()});});}function _0x4326a3(){var _0x590b7f=_0x4ab135;_0x125c19[_0x590b7f('0x11ed')]();}}const _0x135ed9=_0x1f6c37,_0x4f3c1b=_0x59426a['p']+_0xb635d2('0x1aff');_0x330859[_0xb635d2('0xb0c')]=['$cookies','$scope',_0xb635d2('0xeb6'),'$q','$translate',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x330859(_0x2aa425,_0x35ba04,_0x4e9693,_0x3d15ff,_0x57bfd2,_0x3b3068,_0x48ce20,_0x453d6b,_0x101bce,_0x341ac9,_0x25a5fa){var _0x135094=_0xb635d2,_0x3ddef5=this;_0x3ddef5[_0x135094('0x15a5')]=_0x25a5fa[_0x135094('0x1ef8')](),_0x3ddef5[_0x135094('0x15a8')]={},_0x3ddef5[_0x135094('0x846')]={'count':0x0,'rows':[]},_0x3ddef5[_0x135094('0x975')]=[],_0x3ddef5[_0x135094('0xb3d')],_0x3ddef5[_0x135094('0xa16')]={'fields':_0x135094('0x213d'),'limit':0xa,'page':0x1},_0x3ddef5[_0x135094('0x143e')]=_0x32d445()['keyBy']([{'option':_0x135094('0x2115'),'value':_0x135094('0x1d60')},{'option':_0x135094('0x1630'),'value':'\x27select\x27'},{'option':_0x135094('0x59c'),'value':_0x135094('0x972')},{'option':_0x135094('0x8b2'),'value':_0x135094('0x1807')},{'option':'Datetime','value':'\x27datetime\x27'}],function(_0x5a3682){var _0x473de9=_0x135094;return _0x32d445()[_0x473de9('0x1b42')](_0x5a3682[_0x473de9('0x2')],new RegExp('\x27','g'),'');}),_0x3ddef5['arrayactionType']=_0x32d445()[_0x135094('0x226f')]([{'option':_0x135094('0x19ff'),'value':'\x27voice\x27'}],function(_0x24bf64){return _0x32d445()['replace'](_0x24bf64['value'],new RegExp('\x27','g'),'');}),_0x3ddef5[_0x135094('0x15f9')]=_0x4fc248,_0x3ddef5[_0x135094('0x126c')]=_0x13c2a6,_0x3ddef5[_0x135094('0x425')]=_0x318c7f,_0x3ddef5[_0x135094('0xbd5')]=_0x1e9d48,_0x3ddef5[_0x135094('0x2344')]=_0xd2b0d7,_0x3ddef5[_0x135094('0x1d64')]=_0x160ac3,_0x3ddef5[_0x135094('0x2376')]=_0x264c86,_0x3ddef5['deleteSelectedListCustomFields']=_0x46e28a;function _0x4fc248(_0x2e7ca6,_0x1ecbeb){var _0x10e7e6=_0x135094;_0x3ddef5[_0x10e7e6('0x15a8')]=_0x2e7ca6,_0x3ddef5['crudPermissions']=typeof _0x1ecbeb!=='undefined'?_0x1ecbeb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3ddef5['query'][_0x10e7e6('0x2463')]=_0x3ddef5['list']['id'],_0x3ddef5[_0x10e7e6('0xa16')]['id']=_0x3ddef5[_0x10e7e6('0x15a8')]['id'],_0x1e9d48();}function _0x13c2a6(_0x7038b,_0x4bf0b3){var _0xdcb809=_0x135094,_0x27318e=_0x48ce20[_0xdcb809('0xa5')]()[_0xdcb809('0x13e4')](_0xdcb809('0xf13'))[_0xdcb809('0x221c')](''+(_0x7038b[_0xdcb809('0x2623')]||_0x7038b['id']&&_0x32d445()[_0xdcb809('0x2077')](_0xdcb809('0x1399'))+_0x7038b['id']||'customField')+_0xdcb809('0x27bb')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0xdcb809('0x138c'))['targetEvent'](_0x4bf0b3)['ok']('OK')[_0xdcb809('0x2c1')]('CANCEL');_0x48ce20[_0xdcb809('0x26b2')](_0x27318e)[_0xdcb809('0xe19')](function(){_0x264c86(_0x7038b);},function(){var _0x4e9a0d=_0xdcb809;console[_0x4e9a0d('0x1fe9')](_0x4e9a0d('0x17'));});}function _0x318c7f(_0x2ef467){var _0x1a504a=_0x135094;_0x3ddef5[_0x1a504a('0x846')]=_0x2ef467||{'count':0x0,'rows':[]};}function _0x1e9d48(){var _0x1e5adc=_0x135094;_0x3ddef5[_0x1e5adc('0xa16')]['offset']=(_0x3ddef5[_0x1e5adc('0xa16')][_0x1e5adc('0xc08')]-0x1)*_0x3ddef5[_0x1e5adc('0xa16')][_0x1e5adc('0x1b6d')],_0x3ddef5[_0x1e5adc('0x9c8')]=_0x341ac9[_0x1e5adc('0x1bbd')][_0x1e5adc('0xbef')](_0x3ddef5[_0x1e5adc('0xa16')],_0x318c7f)[_0x1e5adc('0xe59')];}function _0xd2b0d7(_0x38aab9,_0x5d9f41){var _0x354c31=_0x135094;_0x48ce20['show']({'controller':_0x354c31('0x3f0'),'controllerAs':'vm','templateUrl':_0x4f3c1b,'parent':angular[_0x354c31('0x24a1')](_0x453d6b[_0x354c31('0x19b2')]),'targetEvent':_0x38aab9,'clickOutsideToClose':!![],'locals':{'list':_0x3ddef5[_0x354c31('0x15a8')],'customField':_0x5d9f41,'customFields':_0x3ddef5[_0x354c31('0x846')]['rows'],'license':null,'setting':null,'crudPermissions':_0x3ddef5['crudPermissions']}});}function _0x264c86(_0x30b4dc){var _0x3a3e5c=_0x135094;_0x341ac9[_0x3a3e5c('0x1a2b')]['delete']({'id':_0x30b4dc['id']})['$promise'][_0x3a3e5c('0xe19')](function(){var _0x193b00=_0x3a3e5c;_0x32d445()['remove'](_0x3ddef5[_0x193b00('0x846')][_0x193b00('0x16a7')],{'id':_0x30b4dc['id']}),_0x3ddef5[_0x193b00('0x846')][_0x193b00('0x148b')]-=0x1,!_0x3ddef5['listCustomFields'][_0x193b00('0x16a7')]['length']&&_0x1e9d48(),_0x101bce[_0x193b00('0x425')]({'title':'CustomField\x20deleted!','msg':_0x30b4dc[_0x193b00('0x2623')]?_0x30b4dc[_0x193b00('0x2623')]+_0x193b00('0x2182'):''});})[_0x3a3e5c('0x223b')](function(_0x556f66){var _0x51ebde=_0x3a3e5c;if(_0x556f66[_0x51ebde('0x11d0')]&&_0x556f66[_0x51ebde('0x11d0')][_0x51ebde('0xcd2')]&&_0x556f66[_0x51ebde('0x11d0')]['errors'][_0x51ebde('0x25ae')]){_0x3ddef5[_0x51ebde('0xcd2')]=_0x556f66[_0x51ebde('0x11d0')][_0x51ebde('0xcd2')]||[{'message':_0x556f66[_0x51ebde('0x94f')](),'type':'SYSTEM:GETcmList'}];for(var _0x1cbe08=0x0;_0x1cbe08<_0x556f66[_0x51ebde('0x11d0')][_0x51ebde('0xcd2')][_0x51ebde('0x25ae')];_0x1cbe08++){_0x101bce[_0x51ebde('0x8c8')]({'title':_0x556f66[_0x51ebde('0x11d0')]['errors'][_0x1cbe08][_0x51ebde('0x62e')],'msg':_0x556f66[_0x51ebde('0x11d0')]['errors'][_0x1cbe08][_0x51ebde('0x27e8')]});}}else _0x101bce['error']({'title':_0x556f66['status']?'API:'+_0x556f66[_0x51ebde('0x2833')]+_0x51ebde('0x1b7c')+_0x556f66[_0x51ebde('0x1fd7')]:_0x51ebde('0x2461'),'msg':_0x556f66[_0x51ebde('0x11d0')]?JSON[_0x51ebde('0x3ad')](_0x556f66['data']['message']):_0x556f66['message']||_0x556f66[_0x51ebde('0x94f')]()});});}function _0x160ac3(){var _0x153d17=_0x135094,_0x2ba21c=angular[_0x153d17('0x89')](_0x3ddef5['selectedListCustomFields']);return _0x3ddef5['selectedListCustomFields']=[],_0x2ba21c;}function _0x46e28a(_0x22b55f){var _0x5cbabb=_0x135094,_0x3d5100=_0x48ce20[_0x5cbabb('0xa5')]()[_0x5cbabb('0x13e4')](_0x5cbabb('0x266b'))[_0x5cbabb('0x221c')](''+_0x3ddef5[_0x5cbabb('0x975')][_0x5cbabb('0x25ae')]+_0x5cbabb('0x5bc')+_0x5cbabb('0x21bd'))[_0x5cbabb('0x4d1')](_0x5cbabb('0x16b8'))[_0x5cbabb('0x1345')](_0x22b55f)['ok']('OK')[_0x5cbabb('0x2c1')](_0x5cbabb('0x17'));_0x48ce20['show'](_0x3d5100)[_0x5cbabb('0xe19')](function(){var _0x424765=_0x5cbabb;_0x3ddef5[_0x424765('0x975')][_0x424765('0x1d7e')](function(_0x2027f7){_0x264c86(_0x2027f7);}),_0x3ddef5['selectedListCustomFields']=[];});}var _0x49f80f=!![],_0x58de7a=0x1;_0x35ba04[_0x135094('0x107')](_0x135094('0x1607'),function(_0x32508c,_0x3487a3){var _0x4b810e=_0x135094;_0x49f80f?_0x3b3068(function(){_0x49f80f=![];}):(!_0x3487a3&&(_0x58de7a=_0x3ddef5[_0x4b810e('0xa16')][_0x4b810e('0xc08')]),_0x32508c!==_0x3487a3&&(_0x3ddef5['query'][_0x4b810e('0xc08')]=0x1),!_0x32508c&&(_0x3ddef5[_0x4b810e('0xa16')][_0x4b810e('0xc08')]=_0x58de7a),_0x1e9d48());});}const _0x2f8c4e=_0x330859;_0x16b224[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q','$translate',_0xb635d2('0xf65'),'customFields','customField',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x16b224(_0x4d6f1e,_0x1f1468,_0x5530cf,_0x4e31a2,_0x4d5e84,_0x2842ce,_0x5d2583,_0x3c8947,_0x284e5d,_0x538437,_0x4fa652,_0x282ee6,_0x3b759d,_0x3a2ed9){var _0xac9312=_0xb635d2,_0x40f314=this;_0x40f314['currentUser']=_0x4fa652['getCurrentUser'](),_0x40f314[_0xac9312('0xcd2')]=[],_0x40f314[_0xac9312('0x22f1')]=_0x3b759d,_0x40f314[_0xac9312('0x5c1')]=_0x282ee6,_0x40f314[_0xac9312('0xb3d')]=_0x3a2ed9,_0x40f314[_0xac9312('0x1ccb')]={},_0x40f314[_0xac9312('0x25ac')]=_0x40f314[_0xac9312('0x22f1')]&&_0x40f314[_0xac9312('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40f314[_0xac9312('0x13e4')]='CONTACTMANAGER.EDIT_CUSTOMFIELD',_0x40f314[_0xac9312('0x1710')]={'animation':0x320,'sort':!![],'onSort':function _0x2c6a83(){var _0x2b0df7=_0xac9312;_0x4d6f1e[_0x2b0df7('0x1da7')][_0x2b0df7('0x9a3')]=![];}},_0x40f314[_0xac9312('0x1129')]=_0x284e5d,_0x40f314[_0xac9312('0x6f2')]=_0x3c8947,_0x40f314['newCustomField']=![];!_0x40f314[_0xac9312('0x1129')]&&(_0x40f314[_0xac9312('0x1129')]={'type':_0xac9312('0x1bc6'),'actionType':_0xac9312('0xe74')},_0x40f314[_0xac9312('0x13e4')]=_0xac9312('0x1eee'),_0x40f314[_0xac9312('0x26fb')]=!![]);_0x1f1468[_0xac9312('0x2ef')]['id']&&(_0x40f314[_0xac9312('0x1129')][_0xac9312('0x2463')]=_0x1f1468[_0xac9312('0x2ef')]['id']);_0x4d6f1e[_0xac9312('0x107')](_0xac9312('0x1632'),function(_0x3e04e6,_0x4d5f1a){var _0x33a042=_0xac9312;if(_0x3e04e6!==_0x4d5f1a)switch(_0x3e04e6){case _0x33a042('0x1bc6'):_0x40f314[_0x33a042('0x1129')][_0x33a042('0x1b79')]='';break;case _0x33a042('0x2e6'):_0x40f314[_0x33a042('0x1129')][_0x33a042('0x1b79')]=[];break;default:}}),_0x40f314['addNewCustomField']=_0x1bf8f0,_0x40f314[_0xac9312('0x77b')]=_0x1e0748,_0x40f314[_0xac9312('0x1dfd')]=_0x48479a,_0x40f314['getDateFromString']=_0x5e6c56,_0x40f314[_0xac9312('0x25e7')]=_0xd34f84,_0x40f314[_0xac9312('0x13b1')]=_0x105cf1,_0x40f314['removeItems']=_0x31b793,_0x40f314[_0xac9312('0x2584')]=_0x5b5413;function _0xd34f84(_0x36c8cf){var _0x56599c=_0xac9312;_0x36c8cf[_0x56599c('0xb76')]({'value':_0x56599c('0x17c0')}),_0x4d6f1e[_0x56599c('0x1da7')]['$pristine']=![];}function _0x105cf1(_0x40c881,_0x49dd16){var _0x2a92ff=_0xac9312;_0x40c881['splice'](_0x49dd16,0x1),_0x4d6f1e[_0x2a92ff('0x1da7')]['$pristine']=![];}function _0x31b793(_0x921aa7){var _0x11f360=_0xac9312,_0x1b4a94=_0x921aa7[_0x11f360('0x25ae')];for(var _0x476198=0x0;_0x476198<_0x1b4a94;_0x476198++){_0x921aa7[_0x11f360('0x1c8e')](0x0,0x1);}_0x4d6f1e[_0x11f360('0x1da7')][_0x11f360('0x9a3')]=![];}function _0x1bf8f0(){var _0x308f8a=_0xac9312;_0x40f314[_0x308f8a('0xcd2')]=[],_0x538437[_0x308f8a('0x1bbd')][_0x308f8a('0x979')]({'id':_0x1f1468['params']['id']},_0x40f314[_0x308f8a('0x1129')])[_0x308f8a('0xe59')][_0x308f8a('0xe19')](function(_0x2d2148){var _0x515c7b=_0x308f8a;_0x40f314[_0x515c7b('0x6f2')]['unshift'](_0x2d2148[_0x515c7b('0x250e')]()),_0x5d2583[_0x515c7b('0x425')]({'title':'CustomField\x20properly\x20created','msg':_0x40f314[_0x515c7b('0x1129')][_0x515c7b('0x2623')]?_0x40f314[_0x515c7b('0x1129')]['name']+_0x515c7b('0x105f'):''}),_0x5b5413(_0x2d2148);})[_0x308f8a('0x223b')](function(_0xc5d819){var _0x1d10de=_0x308f8a;if(_0xc5d819['data']&&_0xc5d819[_0x1d10de('0x11d0')][_0x1d10de('0xcd2')]&&_0xc5d819[_0x1d10de('0x11d0')][_0x1d10de('0xcd2')][_0x1d10de('0x25ae')]){_0x40f314[_0x1d10de('0xcd2')]=_0xc5d819['data']['errors']||[{'message':_0xc5d819[_0x1d10de('0x94f')](),'type':_0x1d10de('0x1d1')}];for(var _0x55798a=0x0;_0x55798a<_0xc5d819[_0x1d10de('0x11d0')][_0x1d10de('0xcd2')]['length'];_0x55798a+=0x1){_0x5d2583[_0x1d10de('0x8c8')]({'title':_0xc5d819[_0x1d10de('0x11d0')][_0x1d10de('0xcd2')][_0x55798a][_0x1d10de('0x62e')],'msg':_0xc5d819[_0x1d10de('0x11d0')]['errors'][_0x55798a][_0x1d10de('0x27e8')]});}}else _0x5d2583[_0x1d10de('0x8c8')]({'title':_0xc5d819[_0x1d10de('0x2833')]?_0x1d10de('0x27f2')+_0xc5d819[_0x1d10de('0x2833')]+_0x1d10de('0x1b7c')+_0xc5d819[_0x1d10de('0x1fd7')]:_0x1d10de('0x1d1'),'msg':_0xc5d819['data']?JSON[_0x1d10de('0x3ad')](_0xc5d819[_0x1d10de('0x11d0')][_0x1d10de('0x27e8')]):_0xc5d819[_0x1d10de('0x94f')]()});});}function _0x1e0748(){var _0x2e41bb=_0xac9312;_0x40f314[_0x2e41bb('0xcd2')]=[],_0x538437[_0x2e41bb('0x1a2b')][_0x2e41bb('0xa70')]({'id':_0x40f314[_0x2e41bb('0x1129')]['id']},_0x40f314[_0x2e41bb('0x1129')])[_0x2e41bb('0xe59')][_0x2e41bb('0xe19')](function(_0x1bec96){var _0x161f5a=_0x2e41bb,_0x1f70ca=_0x32d445()['find'](_0x40f314[_0x161f5a('0x6f2')],{'id':_0x1bec96['id']});_0x1f70ca&&_0x32d445()[_0x161f5a('0x1d8')](_0x1f70ca,_0x32d445()[_0x161f5a('0xed5')](_0x1bec96[_0x161f5a('0x250e')](),_0x32d445()[_0x161f5a('0x1234')](_0x1f70ca))),_0x5d2583[_0x161f5a('0x425')]({'title':_0x161f5a('0x1a09'),'msg':_0x40f314['customField'][_0x161f5a('0x2623')]?_0x40f314[_0x161f5a('0x1129')]['name']+'\x20has\x20been\x20saved!':''}),_0x5b5413(_0x1bec96);})[_0x2e41bb('0x223b')](function(_0x2b0d2a){var _0x405224=_0x2e41bb;if(_0x2b0d2a[_0x405224('0x11d0')]&&_0x2b0d2a['data'][_0x405224('0xcd2')]&&_0x2b0d2a[_0x405224('0x11d0')][_0x405224('0xcd2')]['length']){_0x40f314[_0x405224('0xcd2')]=_0x2b0d2a[_0x405224('0x11d0')][_0x405224('0xcd2')]||[{'message':_0x2b0d2a[_0x405224('0x94f')](),'type':_0x405224('0x1937')}];for(var _0x4b9c0c=0x0;_0x4b9c0c<_0x2b0d2a['data'][_0x405224('0xcd2')]['length'];_0x4b9c0c++){_0x5d2583[_0x405224('0x8c8')]({'title':_0x2b0d2a['data'][_0x405224('0xcd2')][_0x4b9c0c][_0x405224('0x62e')],'msg':_0x2b0d2a[_0x405224('0x11d0')][_0x405224('0xcd2')][_0x4b9c0c][_0x405224('0x27e8')]});}}else _0x5d2583[_0x405224('0x8c8')]({'title':_0x2b0d2a[_0x405224('0x2833')]?_0x405224('0x27f2')+_0x2b0d2a[_0x405224('0x2833')]+_0x405224('0x1b7c')+_0x2b0d2a[_0x405224('0x1fd7')]:_0x405224('0x1937'),'msg':_0x2b0d2a[_0x405224('0x11d0')]?JSON[_0x405224('0x3ad')](_0x2b0d2a[_0x405224('0x11d0')]['message']):_0x2b0d2a[_0x405224('0x94f')]()});});}function _0x48479a(_0x12e34f){var _0x4418df=_0xac9312;_0x40f314[_0x4418df('0xcd2')]=[];var _0x337299=_0x4e31a2['confirm']()[_0x4418df('0x13e4')](_0x4418df('0x24d0'))['content'](_0x4418df('0x7db'))['ariaLabel'](_0x4418df('0xf1c'))['ok'](_0x4418df('0x2198'))[_0x4418df('0x2c1')]('Cancel')[_0x4418df('0x1345')](_0x12e34f);_0x4e31a2[_0x4418df('0x26b2')](_0x337299)[_0x4418df('0xe19')](function(){var _0x595674=_0x4418df;_0x538437[_0x595674('0x1a2b')]['delete']({'id':_0x40f314[_0x595674('0x1129')]['id']})[_0x595674('0xe59')]['then'](function(){var _0x525593=_0x595674;_0x32d445()[_0x525593('0xa8b')](_0x40f314[_0x525593('0x6f2')],{'id':_0x40f314[_0x525593('0x1129')]['id']}),_0x5d2583[_0x525593('0x425')]({'title':'CustomField\x20properly\x20deleted!','msg':(_0x40f314[_0x525593('0x1129')][_0x525593('0x2623')]||_0x525593('0x1129'))+_0x525593('0x2182')}),_0x5b5413(_0x40f314[_0x525593('0x1129')]);})[_0x595674('0x223b')](function(_0x41c7c4){var _0x5bcbb1=_0x595674;if(_0x41c7c4[_0x5bcbb1('0x11d0')]&&_0x41c7c4['data'][_0x5bcbb1('0xcd2')]&&_0x41c7c4[_0x5bcbb1('0x11d0')]['errors'][_0x5bcbb1('0x25ae')]){_0x40f314['errors']=_0x41c7c4[_0x5bcbb1('0x11d0')][_0x5bcbb1('0xcd2')]||[{'message':_0x41c7c4[_0x5bcbb1('0x94f')](),'type':_0x5bcbb1('0xe49')}];for(var _0xea6275=0x0;_0xea6275<_0x41c7c4[_0x5bcbb1('0x11d0')][_0x5bcbb1('0xcd2')]['length'];_0xea6275++){_0x5d2583['error']({'title':_0x41c7c4['data'][_0x5bcbb1('0xcd2')][_0xea6275][_0x5bcbb1('0x62e')],'msg':_0x41c7c4['data']['errors'][_0xea6275][_0x5bcbb1('0x27e8')]});}}else _0x5d2583[_0x5bcbb1('0x8c8')]({'title':_0x41c7c4['status']?'API:'+_0x41c7c4[_0x5bcbb1('0x2833')]+'\x20-\x20'+_0x41c7c4['statusText']:_0x5bcbb1('0xe49'),'msg':_0x41c7c4[_0x5bcbb1('0x11d0')]?JSON['stringify'](_0x41c7c4['data'][_0x5bcbb1('0x27e8')]):_0x41c7c4[_0x5bcbb1('0x27e8')]||_0x41c7c4['toString']()});});},function(){});}function _0x5e6c56(_0x302658){return _0x302658===null?undefined:new Date(_0x302658);}function _0x5b5413(_0x4df05e){var _0x41c513=_0xac9312;_0x4e31a2[_0x41c513('0x11ed')](_0x4df05e);}}const _0x3dc740=_0x16b224,_0x8cf000=_0x59426a['p']+_0xb635d2('0x102f');_0x5b49b4[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$document','$translate',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x15a8'),'userProfileSection'];function _0x5b49b4(_0x1f568c,_0x4cbac0,_0x29ba60,_0x9cd6b6,_0x58cca5,_0x67f311,_0x5c7f2d,_0x67dd61,_0x48270f,_0x572f30,_0x155cc5,_0x6b2e56){var _0x3a11f2=_0xb635d2,_0x52c8ca=this;_0x52c8ca[_0x3a11f2('0x15a5')]=_0x572f30[_0x3a11f2('0x1ef8')](),_0x52c8ca[_0x3a11f2('0x5c1')]=_0x67f311,_0x52c8ca[_0x3a11f2('0x22f1')]=_0x5c7f2d,_0x52c8ca[_0x3a11f2('0x25ac')]=_0x52c8ca[_0x3a11f2('0x22f1')][_0x3a11f2('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52c8ca[_0x3a11f2('0x2170')]=_0x4cbac0[_0x3a11f2('0xec0')]()+_0x3a11f2('0x21a8')+_0x4cbac0['host'](),_0x52c8ca['list']=_0x155cc5||_0x1f568c[_0x3a11f2('0x2ef')][_0x3a11f2('0x15a8')]||{},_0x52c8ca[_0x3a11f2('0xb59')]=_0x6b2e56&&_0x6b2e56[_0x3a11f2('0x148b')]==0x1?_0x6b2e56[_0x3a11f2('0x16a7')][0x0]:null,_0x52c8ca[_0x3a11f2('0xb3d')]=_0x572f30[_0x3a11f2('0xd31')](_0x52c8ca[_0x3a11f2('0xb59')]?_0x52c8ca[_0x3a11f2('0xb59')][_0x3a11f2('0xb3d')]:null),_0x52c8ca[_0x3a11f2('0x1ccb')]={},_0x52c8ca[_0x3a11f2('0xc7b')]=_0x1f568c[_0x3a11f2('0x2ef')][_0x3a11f2('0x435')]||0x0,_0x52c8ca[_0x3a11f2('0x7ef')]=_0x5c907c,_0x52c8ca[_0x3a11f2('0x1407')]=_0x3273da,_0x52c8ca[_0x3a11f2('0xbdc')]=_0x48270f['info'],_0x52c8ca['gotoLists']=_0xea5057,_0x52c8ca[_0x3a11f2('0x1663')]=_0x47ec53;function _0x5c907c(_0x28268e){var _0x246d3b=_0x3a11f2;if(_0x572f30[_0x246d3b('0x179e')](_0x246d3b('0xd14')))_0x1f568c['go'](_0x246d3b('0x6'),{'ListId':_0x28268e['id']});else return _0x67dd61[_0x246d3b('0xb59')][_0x246d3b('0x22d5')]({'userProfileId':_0x572f30[_0x246d3b('0x1ef8')]()['userProfileId'],'sectionId':0x12f})[_0x246d3b('0xe59')][_0x246d3b('0xe19')](function(_0x5deee0){var _0x26344a=_0x246d3b,_0x44d412=_0x5deee0&&_0x5deee0['rows']?_0x5deee0['rows'][0x0]:null;_0x44d412&&_0x44d412[_0x26344a('0x4ef')]?_0x1f568c['go']('app.contactmanager.contacts',{'ListId':_0x28268e['id']}):_0x48270f[_0x26344a('0x1e67')]({'title':_0x58cca5[_0x26344a('0x2159')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x58cca5['instant'](_0x26344a('0x4bb'))});})['catch'](function(_0x396dfa){var _0x5f3fe9=_0x246d3b;_0x48270f['error']({'title':_0x396dfa['status']?_0x5f3fe9('0x27f2')+_0x396dfa[_0x5f3fe9('0x2833')]+_0x5f3fe9('0x1b7c')+_0x396dfa[_0x5f3fe9('0x1fd7')]:_0x5f3fe9('0x343'),'msg':_0x396dfa[_0x5f3fe9('0x2833')]?JSON[_0x5f3fe9('0x3ad')](_0x396dfa['data']):_0x396dfa[_0x5f3fe9('0x94f')]()});});}function _0x3273da(_0x442d8b,_0xfa7af0){var _0x37ccb8=_0x3a11f2;_0x29ba60[_0x37ccb8('0x26b2')]({'controller':_0x37ccb8('0x1d91'),'controllerAs':'vm','templateUrl':_0x8cf000,'parent':angular['element'](_0x9cd6b6[_0x37ccb8('0x19b2')]),'targetEvent':_0xfa7af0,'clickOutsideToClose':!![],'locals':{'list':_0x442d8b,'lists':_0x52c8ca[_0x37ccb8('0x9f8')]?_0x52c8ca[_0x37ccb8('0x9f8')][_0x37ccb8('0x16a7')]:[],'crudPermissions':_0x52c8ca[_0x37ccb8('0xb3d')],'realtime':![]}});}function _0xea5057(){var _0x2107bc=_0x3a11f2;_0x1f568c['go'](_0x2107bc('0x85f'),{},{'reload':_0x2107bc('0x85f')});}function _0x47ec53(){var _0x5ca176=_0x3a11f2;_0x67dd61[_0x5ca176('0x1bbd')][_0x5ca176('0xa70')]({'id':_0x52c8ca[_0x5ca176('0x15a8')]['id']},_0x52c8ca[_0x5ca176('0x15a8')])[_0x5ca176('0xe59')][_0x5ca176('0xe19')](function(){var _0x20bdbc=_0x5ca176;_0x48270f[_0x20bdbc('0x425')]({'title':_0x20bdbc('0x208a'),'msg':_0x52c8ca[_0x20bdbc('0x15a8')][_0x20bdbc('0x2623')]?_0x52c8ca[_0x20bdbc('0x15a8')][_0x20bdbc('0x2623')]+_0x20bdbc('0x283b'):''});})['catch'](function(_0xf93cb3){var _0x13698d=_0x5ca176;_0x48270f[_0x13698d('0x8c8')]({'title':_0xf93cb3[_0x13698d('0x2833')]?'API:'+_0xf93cb3['status']+'\x20-\x20'+_0xf93cb3['statusText']:_0x13698d('0x2461'),'msg':_0xf93cb3['data']?JSON[_0x13698d('0x3ad')](_0xf93cb3[_0x13698d('0x11d0')]):_0xf93cb3[_0x13698d('0x94f')]()});});}}const _0x2534ab=_0x5b49b4,_0x599d02=_0x59426a['p']+'src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog-[chunkhash].html';_0x86a8eb['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x86a8eb(_0x378393,_0x5e7252,_0x56a8f7,_0x312468,_0x4c2eb0,_0x4d643e,_0x353713,_0xacef5a,_0x2025c0,_0x1eeb5d,_0x5e2c3f){var _0x5b0f0a=_0xb635d2,_0x4639d3=this;_0x4639d3[_0x5b0f0a('0x15a5')]=_0x5e2c3f[_0x5b0f0a('0x1ef8')](),_0x4639d3[_0x5b0f0a('0x24eb')]={'count':0x0,'rows':[]},_0x4639d3[_0x5b0f0a('0x17e9')]=[],_0x4639d3[_0x5b0f0a('0xb3d')],_0x4639d3[_0x5b0f0a('0x513')]={'first':'1st','second':_0x5b0f0a('0x6c0'),'third':_0x5b0f0a('0x13ee')},_0x4639d3['query']={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x5b0f0a('0x7e8'),'limit':0xa,'page':0x1},_0x4639d3[_0x5b0f0a('0x15f9')]=_0x7b833d,_0x4639d3[_0x5b0f0a('0x126c')]=_0x58b5d0,_0x4639d3['success']=_0x49730e,_0x4639d3[_0x5b0f0a('0x1312')]=_0x50143d,_0x4639d3[_0x5b0f0a('0x2374')]=_0x5af530,_0x4639d3[_0x5b0f0a('0x1db')]=_0x4ca776,_0x4639d3[_0x5b0f0a('0x1f38')]=_0x2dbbc7,_0x4639d3['deleteSelectedDispositions']=_0x5b3810,_0x4639d3[_0x5b0f0a('0x33d')]=_0x434ff6,_0x4639d3[_0x5b0f0a('0x56f')]=_0x4723f9;function _0x7b833d(_0x258236,_0x232667){var _0x4e5532=_0x5b0f0a;_0x4639d3[_0x4e5532('0x15a8')]=_0x258236||{},_0x4639d3['crudPermissions']=typeof _0x232667!==_0x4e5532('0x1143')?_0x232667:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4639d3['query'][_0x4e5532('0x2463')]=_0x4639d3[_0x4e5532('0x15a8')]['id'],_0x4639d3[_0x4e5532('0xa16')]['id']=_0x4639d3[_0x4e5532('0x15a8')]['id'],_0x50143d();}function _0x5af530(_0x141be8,_0x607884){var _0x4805e6=_0x5b0f0a;_0x4c2eb0[_0x4805e6('0x26b2')]({'controller':_0x4805e6('0x4d9'),'controllerAs':'vm','templateUrl':_0x599d02,'parent':angular[_0x4805e6('0x24a1')](_0x4d643e[_0x4805e6('0x19b2')]),'targetEvent':_0x141be8,'clickOutsideToClose':!![],'locals':{'disposition':_0x607884,'dispositions':_0x4639d3[_0x4805e6('0x24eb')][_0x4805e6('0x16a7')],'model':{'id':_0x4639d3[_0x4805e6('0x15a8')]['id'],'field':_0x4805e6('0x2463')},'license':null,'setting':null,'crudPermissions':_0x4639d3['crudPermissions']}})[_0x4805e6('0xe19')](function(_0x1274d1){if(_0x1274d1)_0x50143d();});}function _0x58b5d0(_0x18c322,_0x1d7aac){var _0x2dcd3d=_0x5b0f0a,_0x368bb3=_0x32d445()[_0x2dcd3d('0x201a')](_0x4639d3[_0x2dcd3d('0x24eb')][_0x2dcd3d('0x16a7')],[_0x2dcd3d('0x2450'),_0x18c322['id']]),_0x58b7fc=_0x4c2eb0[_0x2dcd3d('0xa5')]()[_0x2dcd3d('0x13e4')](_0xacef5a['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x2dcd3d('0xd0')](_0xacef5a[_0x2dcd3d('0x2159')]('TOOLS.NOTIFICATIONS.'+(_0x368bb3?_0x2dcd3d('0x930'):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x18c322['name']}))[_0x2dcd3d('0x4d1')](_0x2dcd3d('0x1c26'))['targetEvent'](_0x1d7aac)['ok']('OK')['cancel'](_0xacef5a[_0x2dcd3d('0x2159')](_0x2dcd3d('0x717')));_0x4c2eb0[_0x2dcd3d('0x26b2')](_0x58b7fc)['then'](function(){_0x4ca776(_0x18c322);});}function _0x49730e(_0x1ca8c7){var _0x57c07b=_0x5b0f0a;_0x4639d3[_0x57c07b('0x24eb')]=_0x1ca8c7||{'count':0x0,'rows':[]};}function _0x50143d(){var _0x361cee=_0x5b0f0a;_0x4639d3[_0x361cee('0xa16')][_0x361cee('0xab0')]=(_0x4639d3[_0x361cee('0xa16')][_0x361cee('0xc08')]-0x1)*_0x4639d3['query']['limit'],_0x4639d3['promise']=_0x2025c0[_0x361cee('0x1bbd')][_0x361cee('0x1312')](_0x4639d3[_0x361cee('0xa16')],_0x49730e)[_0x361cee('0xe59')];}function _0x4ca776(_0x1c7c65){var _0x1ab088=_0x5b0f0a;_0x2025c0[_0x1ab088('0x2506')][_0x1ab088('0x229e')]({'id':_0x1c7c65['id']})[_0x1ab088('0xe59')]['then'](function(){var _0x3e7ea8=_0x1ab088;_0x50143d(),_0x1eeb5d['success']({'title':_0xacef5a[_0x3e7ea8('0x2159')](_0x3e7ea8('0x1593'))});})[_0x1ab088('0x223b')](function(_0x1cf470){var _0x519afc=_0x1ab088;if(_0x1cf470['data']&&_0x1cf470[_0x519afc('0x11d0')][_0x519afc('0xcd2')]&&_0x1cf470[_0x519afc('0x11d0')][_0x519afc('0xcd2')][_0x519afc('0x25ae')]){_0x4639d3[_0x519afc('0xcd2')]=_0x1cf470[_0x519afc('0x11d0')]['errors']||[{'message':_0x1cf470[_0x519afc('0x94f')](),'type':_0x519afc('0x45')}];for(var _0x502671=0x0;_0x502671<_0x1cf470['data'][_0x519afc('0xcd2')][_0x519afc('0x25ae')];_0x502671++){_0x1eeb5d[_0x519afc('0x8c8')]({'title':_0x1cf470['data']['errors'][_0x502671]['type'],'msg':_0x1cf470['data'][_0x519afc('0xcd2')][_0x502671][_0x519afc('0x27e8')]});}}else _0x1eeb5d[_0x519afc('0x8c8')]({'title':_0x1cf470[_0x519afc('0x2833')]?_0x519afc('0x27f2')+_0x1cf470[_0x519afc('0x2833')]+'\x20-\x20'+_0x1cf470[_0x519afc('0x1fd7')]:_0x519afc('0x45'),'msg':_0x1cf470[_0x519afc('0x11d0')]?JSON[_0x519afc('0x3ad')](_0x1cf470[_0x519afc('0x11d0')]['message']):_0x1cf470[_0x519afc('0x27e8')]||_0x1cf470[_0x519afc('0x94f')]()});});}function _0x2dbbc7(){var _0x4c66ac=_0x5b0f0a,_0x13a5e3=angular[_0x4c66ac('0x89')](_0x4639d3['selectedDispositions']);return _0x4639d3[_0x4c66ac('0x17e9')]=[],_0x13a5e3;}function _0x5b3810(_0x885a42){var _0x3511d1=_0x5b0f0a,_0xeb7834=_0x4c2eb0['confirm']()[_0x3511d1('0x13e4')](_0xacef5a[_0x3511d1('0x2159')](_0x3511d1('0xf00')))[_0x3511d1('0xd0')](_0xacef5a[_0x3511d1('0x2159')](_0x3511d1('0x2750'),{'total':_0x4639d3[_0x3511d1('0x17e9')]['length']}))[_0x3511d1('0x4d1')](_0x3511d1('0x2829'))[_0x3511d1('0x1345')](_0x885a42)['ok']('OK')[_0x3511d1('0x2c1')](_0xacef5a[_0x3511d1('0x2159')](_0x3511d1('0x717')));_0x4c2eb0[_0x3511d1('0x26b2')](_0xeb7834)[_0x3511d1('0xe19')](function(){var _0x1f542d=_0x3511d1;_0x4639d3[_0x1f542d('0x17e9')][_0x1f542d('0x1d7e')](function(_0x1dff8f){_0x4ca776(_0x1dff8f);}),_0x4639d3[_0x1f542d('0x17e9')]=[];});}function _0x434ff6(){_0x4639d3['selectedDispositions']=[];}function _0x4723f9(){var _0x648fdc=_0x5b0f0a;_0x4639d3[_0x648fdc('0x17e9')]=_0x4639d3[_0x648fdc('0x24eb')][_0x648fdc('0x16a7')];}var _0x4eae09=!![],_0x23e317=0x1;_0x378393[_0x5b0f0a('0x107')](_0x5b0f0a('0x1607'),function(_0x3ff640,_0x1e1718){var _0x1fb330=_0x5b0f0a;_0x4eae09?_0x353713(function(){_0x4eae09=![];}):(!_0x1e1718&&(_0x23e317=_0x4639d3[_0x1fb330('0xa16')]['page']),_0x3ff640!==_0x1e1718&&(_0x4639d3[_0x1fb330('0xa16')][_0x1fb330('0xc08')]=0x1),!_0x3ff640&&(_0x4639d3[_0x1fb330('0xa16')][_0x1fb330('0xc08')]=_0x23e317),_0x50143d());});}const _0x35f764=_0x86a8eb,_0x4f046d=_0x59426a['p']+_0xb635d2('0x23c4');_0x26a762[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document','$timeout',_0xb635d2('0x2493'),_0xb635d2('0x9f8'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x26a762(_0x404a76,_0x193ab9,_0x8b5a16,_0xe03cdc,_0x122826,_0x1b1a08,_0x126e42,_0x13d0e3,_0x465f82,_0x5f5a8c,_0xd14700,_0x3e8576,_0x5ab263,_0xa546b4,_0x255512,_0x2cf7c6,_0x5d882d){var _0x217790=_0xb635d2,_0x2419e8=this;_0x2419e8[_0x217790('0x5c1')]=_0x2cf7c6,_0x2419e8[_0x217790('0x22f1')]=_0x5d882d,_0x2419e8[_0x217790('0x15a5')]=_0x255512[_0x217790('0x1ef8')](),_0x2419e8['lists']=_0x465f82||{'count':0x0,'rows':[]},_0x2419e8['userProfile']=_0x5f5a8c,_0x2419e8[_0x217790('0xb59')]=_0xd14700&&_0xd14700['count']==0x1?_0xd14700[_0x217790('0x16a7')][0x0]:null,_0x2419e8[_0x217790('0xb3d')]=_0x255512[_0x217790('0xd31')](_0x2419e8['userProfileSection']?_0x2419e8[_0x217790('0xb59')][_0x217790('0xb3d')]:null),_0x2419e8[_0x217790('0x19b6')]=_0x217790('0x9f8'),_0x2419e8[_0x217790('0x14d6')]='',_0x2419e8[_0x217790('0x190c')]=null,_0x2419e8[_0x217790('0xf76')]=[],_0x2419e8['query']={'fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':_0x217790('0x7e8'),'limit':0xa,'page':0x1},_0x2419e8[_0x217790('0x16a0')]=_0x3d936c,_0x2419e8[_0x217790('0x1f03')]=_0x45c5c1,_0x2419e8[_0x217790('0x1b85')]=_0x1b7ccf,_0x2419e8[_0x217790('0x1407')]=_0x4e943e,_0x2419e8[_0x217790('0x1d9e')]=_0x343577,_0x2419e8[_0x217790('0x425')]=_0x104a11,_0x2419e8[_0x217790('0x1feb')]=_0xbd057f,_0x2419e8['createOrEditList']=_0x28a295,_0x2419e8[_0x217790('0x7a9')]=_0xbbf439,_0x2419e8[_0x217790('0x1f98')]=_0x46f7f3,_0x2419e8[_0x217790('0x18df')]=_0x1379e1,_0x2419e8[_0x217790('0x7d8')]=_0x559264,_0x2419e8[_0x217790('0x1ad5')]=_0x2c36f5;function _0x3d936c(_0x409fd1){var _0x54f1c4=_0x217790;_0x8b5a16['go']('app.contactmanager.lists.edit',{'id':_0x409fd1['id'],'list':_0x409fd1,'crudPermissions':_0x2419e8[_0x54f1c4('0xb3d')]});}function _0x45c5c1(_0x5c5a54){var _0x496b8b=_0x217790;if(_0x255512[_0x496b8b('0x179e')](_0x496b8b('0xd14')))_0x8b5a16['go']('app.contactmanager.contacts',{'ListId':_0x5c5a54['id']});else return _0x3e8576[_0x496b8b('0xb59')][_0x496b8b('0x22d5')]({'userProfileId':_0x255512[_0x496b8b('0x1ef8')]()[_0x496b8b('0x1d04')],'sectionId':0x12f})[_0x496b8b('0xe59')]['then'](function(_0x30dc73){var _0x5cfb2a=_0x496b8b,_0x41f36b=_0x30dc73&&_0x30dc73[_0x5cfb2a('0x16a7')]?_0x30dc73[_0x5cfb2a('0x16a7')][0x0]:null;_0x41f36b&&_0x41f36b[_0x5cfb2a('0x4ef')]?_0x8b5a16['go'](_0x5cfb2a('0x6'),{'ListId':_0x5c5a54['id']}):_0xa546b4[_0x5cfb2a('0x1e67')]({'title':_0x13d0e3['instant'](_0x5cfb2a('0x2786')),'msg':_0x13d0e3[_0x5cfb2a('0x2159')](_0x5cfb2a('0x4bb'))});})['catch'](function(_0x5cf3f7){var _0x217c82=_0x496b8b;_0xa546b4[_0x217c82('0x8c8')]({'title':_0x5cf3f7['status']?'API:'+_0x5cf3f7['status']+_0x217c82('0x1b7c')+_0x5cf3f7['statusText']:'USERPROFILE:GET_SECTION','msg':_0x5cf3f7[_0x217c82('0x2833')]?JSON[_0x217c82('0x3ad')](_0x5cf3f7[_0x217c82('0x11d0')]):_0x5cf3f7['toString']()});});}function _0x1b7ccf(_0x507860){var _0x5e1701=_0x217790;return _0x3e8576[_0x5e1701('0x1bbd')][_0x5e1701('0x93')]({'id':_0x507860['id'],'nolimit':!![]})[_0x5e1701('0xe59')]['then'](function(_0x445eff){var _0x29bcc8=_0x5e1701;if(typeof _0x445eff[_0x29bcc8('0x25ae')]!==_0x29bcc8('0x1143')){var _0x56291c=[_0x445eff[_0x29bcc8('0x17ab')]],_0x376680=new Blob(_0x56291c,{'type':_0x445eff[_0x29bcc8('0x62e')]}),_0x4052cb=window[_0x29bcc8('0x18fa')]['createElement']('a');_0x4052cb[_0x29bcc8('0xede')]('href',URL[_0x29bcc8('0x1360')](_0x376680)),_0x4052cb[_0x29bcc8('0xede')](_0x29bcc8('0x1d1e'),'exportContacts_'+_0x507860['id']+'.csv'),_0x4052cb['click']();}else _0xa546b4[_0x29bcc8('0x1e67')]({'title':'EXPORT','msg':_0x29bcc8('0x26fe')});})['catch'](function(_0x10bb9c){var _0x4267a9=_0x5e1701;_0xa546b4[_0x4267a9('0x8c8')]({'title':_0x10bb9c[_0x4267a9('0x2833')]?_0x4267a9('0x27f2')+_0x10bb9c['status']+_0x4267a9('0x1b7c')+_0x10bb9c[_0x4267a9('0x1fd7')]:'SYSTEM:GETcmList','msg':_0x10bb9c[_0x4267a9('0x11d0')]?JSON['stringify'](_0x10bb9c['data']):_0x10bb9c[_0x4267a9('0x94f')]()});});}function _0x4e943e(_0x30e895,_0xb8c162){var _0x4567e6=_0x217790;_0x122826[_0x4567e6('0x26b2')]({'controller':'ListagentaddController','controllerAs':'vm','templateUrl':_0x8cf000,'parent':angular[_0x4567e6('0x24a1')](_0x1b1a08[_0x4567e6('0x19b2')]),'targetEvent':_0xb8c162,'clickOutsideToClose':!![],'locals':{'list':_0x30e895,'lists':_0x2419e8[_0x4567e6('0x9f8')]?_0x2419e8[_0x4567e6('0x9f8')]['rows']:[],'crudPermissions':_0x2419e8[_0x4567e6('0xb3d')],'realtime':![]}});}function _0x343577(_0x1822a3,_0x3139fc){var _0x3901a6=_0x217790,_0x1286ab=_0x122826['confirm']()['title'](_0x3901a6('0x346')+_0x32d445()[_0x3901a6('0x1df2')]('list')+'?')['htmlContent'](_0x3901a6('0xab2')+(_0x1822a3['name']||'list')+_0x3901a6('0x27bb')+_0x3901a6('0x21bd'))['ariaLabel'](_0x3901a6('0x4bc'))[_0x3901a6('0x1345')](_0x3139fc)['ok']('OK')[_0x3901a6('0x2c1')](_0x3901a6('0x17'));_0x122826[_0x3901a6('0x26b2')](_0x1286ab)[_0x3901a6('0xe19')](function(){_0xbbf439(_0x1822a3);},function(){var _0x3fb337=_0x3901a6;console[_0x3fb337('0x1fe9')](_0x3fb337('0x17'));});}var _0x34fb70=!![],_0x4af6b5=0x1;_0x404a76['$watch'](_0x217790('0x20cb'),function(_0x2692cc,_0x10c24d){var _0x1c1d93=_0x217790;_0x34fb70?_0x126e42(function(){_0x34fb70=![];}):(!_0x10c24d&&(_0x4af6b5=_0x2419e8[_0x1c1d93('0xa16')]['page']),_0x2692cc!==_0x10c24d&&(_0x2419e8[_0x1c1d93('0xa16')][_0x1c1d93('0xc08')]=0x1),!_0x2692cc&&(_0x2419e8[_0x1c1d93('0xa16')][_0x1c1d93('0xc08')]=_0x4af6b5),_0x2419e8[_0x1c1d93('0x1feb')]());});function _0x104a11(_0x5a9045){var _0x560b23=_0x217790;_0x2419e8[_0x560b23('0x9f8')]=_0x5a9045||{'count':0x0,'rows':[]};}function _0xbd057f(){var _0x118ef5=_0x217790;_0x2419e8['query']['offset']=(_0x2419e8[_0x118ef5('0xa16')]['page']-0x1)*_0x2419e8[_0x118ef5('0xa16')][_0x118ef5('0x1b6d')],_0x255512['hasRole'](_0x118ef5('0xd14'))?_0x2419e8[_0x118ef5('0x9c8')]=_0x3e8576['cmList'][_0x118ef5('0x22d5')](_0x2419e8['query'],_0x104a11)[_0x118ef5('0xe59')]:(_0x2419e8[_0x118ef5('0xa16')]['id']=_0x2419e8[_0x118ef5('0x154f')]['id'],_0x2419e8[_0x118ef5('0xa16')]['section']=_0x118ef5('0x2697'),_0x2419e8['promise']=_0x3e8576[_0x118ef5('0x154f')][_0x118ef5('0x14e6')](_0x2419e8['query'],_0x104a11)[_0x118ef5('0xe59')]);}function _0x28a295(_0x31108b,_0x225d37){var _0x36e542=_0x217790;_0x122826['show']({'controller':_0x36e542('0x2830'),'controllerAs':'vm','templateUrl':_0x4f046d,'parent':angular[_0x36e542('0x24a1')](_0x1b1a08['body']),'targetEvent':_0x31108b,'clickOutsideToClose':!![],'locals':{'list':_0x225d37,'lists':_0x2419e8[_0x36e542('0x9f8')][_0x36e542('0x16a7')],'license':_0x2419e8[_0x36e542('0x5c1')],'setting':_0x2419e8['setting'],'crudPermissions':_0x2419e8[_0x36e542('0xb3d')]}});}function _0xbbf439(_0x50a7ad){var _0x1a5ff9=_0x217790;_0x3e8576[_0x1a5ff9('0x1bbd')][_0x1a5ff9('0x229e')]({'id':_0x50a7ad['id']})[_0x1a5ff9('0xe59')][_0x1a5ff9('0xe19')](function(){var _0x3fb2e7=_0x1a5ff9;_0x32d445()[_0x3fb2e7('0xa8b')](_0x2419e8['lists']['rows'],{'id':_0x50a7ad['id']}),_0x2419e8[_0x3fb2e7('0x9f8')][_0x3fb2e7('0x148b')]-=0x1,!_0x2419e8[_0x3fb2e7('0x9f8')][_0x3fb2e7('0x16a7')][_0x3fb2e7('0x25ae')]&&_0x2419e8[_0x3fb2e7('0x1feb')](),_0xa546b4[_0x3fb2e7('0x425')]({'title':_0x32d445()['startCase'](_0x3fb2e7('0x25b2'))+_0x3fb2e7('0x1219'),'msg':_0x50a7ad[_0x3fb2e7('0x2623')]?_0x50a7ad[_0x3fb2e7('0x2623')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x4459c0){var _0x3371a4=_0x1a5ff9;if(_0x4459c0[_0x3371a4('0x11d0')]&&_0x4459c0[_0x3371a4('0x11d0')][_0x3371a4('0xcd2')]&&_0x4459c0['data'][_0x3371a4('0xcd2')]['length']){_0x2419e8[_0x3371a4('0xcd2')]=_0x4459c0[_0x3371a4('0x11d0')][_0x3371a4('0xcd2')]||[{'message':_0x4459c0[_0x3371a4('0x94f')](),'type':_0x3371a4('0xd4b')}];for(var _0x358812=0x0;_0x358812<_0x4459c0[_0x3371a4('0x11d0')][_0x3371a4('0xcd2')][_0x3371a4('0x25ae')];_0x358812++){_0xa546b4[_0x3371a4('0x8c8')]({'title':_0x4459c0[_0x3371a4('0x11d0')][_0x3371a4('0xcd2')][_0x358812][_0x3371a4('0x62e')],'msg':_0x4459c0[_0x3371a4('0x11d0')][_0x3371a4('0xcd2')][_0x358812][_0x3371a4('0x27e8')]});}}else _0xa546b4[_0x3371a4('0x8c8')]({'title':_0x4459c0['status']?_0x3371a4('0x27f2')+_0x4459c0['status']+'\x20-\x20'+_0x4459c0[_0x3371a4('0x1fd7')]:_0x3371a4('0xd4b'),'msg':_0x4459c0[_0x3371a4('0x11d0')]?JSON[_0x3371a4('0x3ad')](_0x4459c0[_0x3371a4('0x11d0')][_0x3371a4('0x27e8')]):_0x4459c0[_0x3371a4('0x27e8')]||_0x4459c0[_0x3371a4('0x94f')]()});});}function _0x46f7f3(){var _0x53e3f2=_0x217790,_0x209490=angular[_0x53e3f2('0x89')](_0x2419e8[_0x53e3f2('0xf76')]);return _0x2419e8[_0x53e3f2('0xf76')]=[],_0x209490;}function _0x1379e1(_0x5e5f44){var _0x1ecd39=_0x217790,_0x3df15e=_0x122826[_0x1ecd39('0xa5')]()[_0x1ecd39('0x13e4')](_0x1ecd39('0x13ae'))[_0x1ecd39('0x221c')](_0x1ecd39('0xab2')+_0x2419e8[_0x1ecd39('0xf76')][_0x1ecd39('0x25ae')]+'\x20selected'+_0x1ecd39('0x21bd'))[_0x1ecd39('0x4d1')](_0x1ecd39('0x20d3'))[_0x1ecd39('0x1345')](_0x5e5f44)['ok']('OK')['cancel'](_0x1ecd39('0x17'));_0x122826[_0x1ecd39('0x26b2')](_0x3df15e)['then'](function(){var _0x50c205=_0x1ecd39;_0x2419e8[_0x50c205('0xf76')][_0x50c205('0x1d7e')](function(_0x535bb3){_0xbbf439(_0x535bb3);}),_0x2419e8[_0x50c205('0xf76')]=[];});}function _0x559264(){_0x2419e8['selectedLists']=[];}function _0x2c36f5(){var _0xc81763=_0x217790;_0x2419e8[_0xc81763('0xf76')]=_0x2419e8[_0xc81763('0x9f8')][_0xc81763('0x16a7')];}}const _0x511fe3=_0x26a762,_0x45b066=_0x59426a['p']+_0xb635d2('0x730'),_0x2e615c=_0x59426a['p']+_0xb635d2('0x1565'),_0x3f5e96=_0x59426a['p']+_0xb635d2('0x7f3'),_0x141cc1=_0x59426a['p']+_0xb635d2('0xc3a'),_0x397e1a=_0x59426a['p']+_0xb635d2('0xef1');_0x10491d['$inject']=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x10491d(_0x224978,_0x2d9b31){var _0x38cbef=_0xb635d2;_0x224978[_0x38cbef('0x1d72')](_0x38cbef('0xf9c'),{'abstract':!![],'url':_0x38cbef('0x22e7')})[_0x38cbef('0x1d72')](_0x38cbef('0x85f'),{'url':_0x38cbef('0x26ec'),'views':{'content@app':{'templateUrl':_0x45b066,'controller':'ListsController\x20as\x20vm'}},'resolve':{'lists':[_0x38cbef('0x292'),_0x38cbef('0x2730'),function _0x4d9115(_0x337726,_0x1af353){var _0x30caee=_0x38cbef;return _0x1af353['hasRole']('admin')?_0x337726[_0x30caee('0xcd6')]('cmList@get',{'fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x337726[_0x30caee('0xcd6')](_0x30caee('0x197d'),{'id':_0x1af353['getCurrentUser']()[_0x30caee('0x1d04')],'section':_0x30caee('0x2697'),'fields':_0x30caee('0x667'),'sort':_0x30caee('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x38cbef('0x292'),'Auth',function _0x426f62(_0x14751c,_0x99fa00){var _0x106145=_0x38cbef;return _0x99fa00[_0x106145('0x179e')](_0x106145('0xd14'))?null:_0x14751c['resolve'](_0x106145('0x455'),{'fields':_0x106145('0x1b71'),'id':_0x99fa00['getCurrentUser']()[_0x106145('0x1d04')]});}],'userProfileSection':[_0x38cbef('0x292'),_0x38cbef('0x2730'),function _0x5bf746(_0x24201f,_0x1b9924){var _0x472d2d=_0x38cbef;return _0x1b9924['hasRole'](_0x472d2d('0xd14'))?null:_0x24201f['resolve']('userProfileSection@get',{'fields':_0x472d2d('0x12d6'),'userProfileId':_0x1b9924[_0x472d2d('0x1ef8')]()[_0x472d2d('0x1d04')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x38cbef('0x2066')})['state'](_0x38cbef('0x77d'),{'url':_0x38cbef('0xb1d'),'params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2e615c,'controller':_0x38cbef('0x2597')}},'resolve':{'list':[_0x38cbef('0x292'),'$stateParams',function _0x18f923(_0x5140c4,_0x2eda6a){var _0x620f4=_0x38cbef;return _0x5140c4['resolve'](_0x620f4('0x1004'),{'fields':_0x620f4('0x667'),'id':_0x2eda6a['id']});}],'userProfileSection':[_0x38cbef('0x292'),_0x38cbef('0x2730'),function _0x32162f(_0x5f2d58,_0x37caa0){var _0x47c9ba=_0x38cbef;return _0x5f2d58[_0x47c9ba('0xcd6')](_0x47c9ba('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x37caa0[_0x47c9ba('0x1ef8')]()[_0x47c9ba('0x1d04')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x38cbef('0x2066')})['state'](_0x38cbef('0x1170'),{'url':_0x38cbef('0x2571'),'views':{'content@app':{'templateUrl':_0x3f5e96,'controller':_0x38cbef('0x1419')}},'resolve':{'companies':[_0x38cbef('0x292'),_0x38cbef('0x2730'),function _0x41726d(_0x416d83,_0x523de1){var _0x4b14f0=_0x38cbef;return _0x523de1[_0x4b14f0('0x179e')](_0x4b14f0('0xd14'))?_0x416d83['resolve'](_0x4b14f0('0x16d5'),{'fields':_0x4b14f0('0x63a'),'sort':_0x4b14f0('0x7e8'),'limit':0xa,'offset':0x0}):_0x416d83[_0x4b14f0('0xcd6')]('userProfile@getResources',{'id':_0x523de1['getCurrentUser']()[_0x4b14f0('0x1d04')],'section':'Companies','fields':_0x4b14f0('0x63a'),'sort':_0x4b14f0('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x38cbef('0x292'),_0x38cbef('0x2730'),function _0x17389f(_0x578523,_0x533384){var _0x594ab0=_0x38cbef;return _0x533384[_0x594ab0('0x179e')]('admin')?null:_0x578523[_0x594ab0('0xcd6')](_0x594ab0('0x455'),{'fields':_0x594ab0('0x1b71'),'id':_0x533384['getCurrentUser']()[_0x594ab0('0x1d04')]});}],'userProfileSection':[_0x38cbef('0x292'),_0x38cbef('0x2730'),function _0x3db817(_0x2dd6c5,_0x1abd52){var _0x48e31a=_0x38cbef;return _0x1abd52['hasRole']('admin')?null:_0x2dd6c5[_0x48e31a('0xcd6')](_0x48e31a('0x264e'),{'fields':_0x48e31a('0x12d6'),'userProfileId':_0x1abd52[_0x48e31a('0x1ef8')]()['userProfileId'],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x38cbef('0x2066')})[_0x38cbef('0x1d72')]('app.contactmanager.companies.edit',{'url':'/:id?tab','params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x141cc1,'controller':'CompanyController\x20as\x20vm'}},'resolve':{'company':[_0x38cbef('0x292'),_0x38cbef('0x34'),function _0x4f6789(_0x5c57a2,_0x38b9cd){var _0x41504e=_0x38cbef;return _0x5c57a2['resolve'](_0x41504e('0x16d5'),{'fields':_0x41504e('0x63a'),'id':_0x38b9cd['id']});}],'userProfileSection':[_0x38cbef('0x292'),_0x38cbef('0x2730'),function _0x2126b7(_0x28cf6a,_0x2f7d5e){var _0x446b7a=_0x38cbef;return _0x28cf6a['resolve'](_0x446b7a('0x264e'),{'fields':_0x446b7a('0x12d6'),'userProfileId':_0x2f7d5e['getCurrentUser']()['userProfileId'],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x38cbef('0x2066')})[_0x38cbef('0x1d72')](_0x38cbef('0x1f20'),{'url':_0x38cbef('0x546'),'views':{'content@app':{'templateUrl':_0x397e1a,'controller':'GlobalCustomFieldsController\x20as\x20vm'}},'resolve':{'globalCustomFields':['apiResolver',function _0x389abd(_0x4b3000){var _0x27e6d4=_0x38cbef;return _0x4b3000['resolve'](_0x27e6d4('0x2043'),{'fields':'createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','sort':_0x27e6d4('0x7e8'),'ListId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x38cbef('0x292'),'Auth',function _0x5a8294(_0x28d48f,_0x4bd513){var _0x54e9a9=_0x38cbef;return _0x4bd513[_0x54e9a9('0x179e')](_0x54e9a9('0xd14'))?null:_0x28d48f[_0x54e9a9('0xcd6')](_0x54e9a9('0x455'),{'fields':_0x54e9a9('0x1b71'),'id':_0x4bd513[_0x54e9a9('0x1ef8')]()[_0x54e9a9('0x1d04')]});}],'userProfileSection':[_0x38cbef('0x292'),_0x38cbef('0x2730'),function _0xf71caf(_0xd03f9f,_0xe2ad26){var _0x6b5318=_0x38cbef;return _0xe2ad26[_0x6b5318('0x179e')](_0x6b5318('0xd14'))?null:_0xd03f9f[_0x6b5318('0xcd6')](_0x6b5318('0x264e'),{'fields':_0x6b5318('0x12d6'),'userProfileId':_0xe2ad26[_0x6b5318('0x1ef8')]()[_0x6b5318('0x1d04')],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':_0x38cbef('0x2066')}),_0x2d9b31[_0x38cbef('0xfe3')](_0x38cbef('0x202d'));}angular[_0xb635d2('0x153f')](_0xb635d2('0xf9c'),[_0xb635d2('0x569'),_0xb635d2('0x24b'),_0xb635d2('0x274e'),_0xb635d2('0x206b'),_0xb635d2('0xd8b'),_0xb635d2('0x1727'),_0xb635d2('0x1951'),_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),'mdPickers',_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),'angular-cron-jobs',_0xb635d2('0x16a8'),_0xb635d2('0x17b0'),'material.components.expansionPanels','chart.js',_0xb635d2('0x16a1'),_0xb635d2('0x6')])[_0xb635d2('0x1990')](_0x10491d)['controller'](_0xb635d2('0xe72'),_0x149031)[_0xb635d2('0x1a79')](_0xb635d2('0xd7f'),_0x35ea58)[_0xb635d2('0x1a79')](_0xb635d2('0x27de'),_0x48dbf6)[_0xb635d2('0x1a79')](_0xb635d2('0x1ec2'),_0x425629)[_0xb635d2('0x1a79')](_0xb635d2('0x2528'),_0x1214b6)[_0xb635d2('0x1a79')](_0xb635d2('0x2830'),_0x2d1a07)[_0xb635d2('0x1a79')](_0xb635d2('0x1d91'),_0x135ed9)['controller'](_0xb635d2('0x1e75'),_0x2f8c4e)[_0xb635d2('0x1a79')](_0xb635d2('0x3f0'),_0x3dc740)[_0xb635d2('0x1a79')]('ListController',_0x2534ab)[_0xb635d2('0x1a79')](_0xb635d2('0x1f48'),_0x35f764)[_0xb635d2('0x1a79')](_0xb635d2('0x10fd'),_0x511fe3),_0x2f3e36[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$timeout',_0xb635d2('0x1c9f'),'$document','$window',_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730'),'socket',_0xb635d2('0xf65'),_0xb635d2('0x29b'),_0xb635d2('0x24eb')];function _0x2f3e36(_0x348267,_0x1749f7,_0xb3ed26,_0x3c0588,_0x5f055e,_0x1a61e5,_0x12900c,_0x313794,_0x102739,_0x152625,_0x3cd94c,_0x376eb4,_0x1707b9,_0x3b60cd){var _0x1514f3=_0xb635d2,_0x1cb12b=this;_0x1cb12b[_0x1514f3('0x15a5')]=_0x152625['getCurrentUser'](),_0x1cb12b[_0x1514f3('0x29b')]=_0x1707b9?_0x1707b9:[],_0x1cb12b[_0x1514f3('0x24eb')]=_0x3b60cd,_0x1cb12b[_0x1514f3('0x1b69')]={'count':0x0,'rows':[]},_0x1cb12b[_0x1514f3('0x231f')]=![],_0x1cb12b[_0x1514f3('0x23bd')]=!![],_0x1cb12b['userProfile']=_0x313794,_0x1cb12b[_0x1514f3('0xb59')]=_0x102739&&_0x102739[_0x1514f3('0x148b')]==0x1?_0x102739['rows'][0x0]:null,_0x1cb12b[_0x1514f3('0xb3d')]=_0x152625[_0x1514f3('0xd31')](_0x1cb12b[_0x1514f3('0xb59')]?_0x1cb12b['userProfileSection'][_0x1514f3('0xb3d')]:null),_0x1cb12b[_0x1514f3('0xa16')]={'fields':_0x1514f3('0x137a'),'type':_0x1514f3('0x1a7a'),'queuecallerexitreason':_0x1514f3('0x7ac')+','+_0x1514f3('0x161a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x1cb12b['getAbandonedCalls']=_0x30569d,_0x1cb12b['refreshAbandonedCalls']=_0x576171,_0x1cb12b['assignTo']=_0x317382,_0x1cb12b['dispose']=_0x438e04,_0x1cb12b[_0x1514f3('0x235')]=_0x44ad09,_0x1cb12b[_0x1514f3('0x18b4')]=_0xe56c57,_0x3cd94c['onWithoutApply']('voiceQueueReport:save',_0x1cb12b['onSaveVoiceQueueReport']),_0x3cd94c['on'](_0x1514f3('0x18ad'),_0x1cb12b[_0x1514f3('0x18b4')]),_0x5937be();function _0x5937be(){var _0x2a034a=_0x1514f3,_0x5dd925=_0x5f055e['localStorage']['getItem'](_0x2a034a('0x2a0')+_0x1cb12b[_0x2a034a('0x15a5')]['id']);if(_0x5dd925)_0x5dd925=JSON[_0x2a034a('0x118e')](_0x5dd925),_0x5dd925&&_0x5dd925['query']&&(_0x1cb12b[_0x2a034a('0xa16')]=_0x32d445()[_0x2a034a('0x1d8')](_0x5dd925[_0x2a034a('0xa16')],_0x32d445()[_0x2a034a('0x23e3')](_0x1cb12b[_0x2a034a('0xa16')],['sort','limit',_0x2a034a('0xc08')])),_0x1cb12b[_0x2a034a('0xa16')]=_0x32d445()['omit'](_0x1cb12b['query'],_0x2a034a('0x2891')));else{var _0x438fe9={'$gte':_0x4ddcaa()()[_0x2a034a('0x21b1')]('month')[_0x2a034a('0x1e9e')](0x0,!![])[_0x2a034a('0x5e5')](),'$lte':_0x4ddcaa()()[_0x2a034a('0x270')](_0x2a034a('0x211c'))[_0x2a034a('0x1e9e')](0x0,!![])[_0x2a034a('0x5e5')]()};_0x1cb12b[_0x2a034a('0xa16')]['createdAt']=_0x438fe9;}_0x152625[_0x2a034a('0x179e')](_0x2a034a('0xd14'))?_0x12900c[_0x2a034a('0x10c6')]['getQueues']({'id':_0x152625[_0x2a034a('0x1ef8')]()['id'],'fields':_0x2a034a('0x104'),'channel':'voice','type':_0x2a034a('0x1a7a'),'nolimit':!![]})['$promise'][_0x2a034a('0xe19')](function(_0xdb8c22){var _0x2255d4=_0x2a034a;_0x1cb12b[_0x2255d4('0x671')]=_0xdb8c22||{'count':0x0,'rows':[]},_0x1cb12b[_0x2255d4('0x46b')]=_0x32d445()[_0x2255d4('0x2483')](_0x32d445()[_0x2255d4('0x226f')](_0x1cb12b[_0x2255d4('0x671')][_0x2255d4('0x16a7')],'name'),_0x2255d4('0x2623'));})['catch'](function(_0x981ed6){var _0x308129=_0x2a034a;console[_0x308129('0x8c8')](_0x981ed6);})[_0x2a034a('0x23')](function(){var _0x366bf7=_0x2a034a;_0x1cb12b['quickFilters']=_0x472c77(),_0x1cb12b[_0x366bf7('0x26f5')]();}):_0x12900c[_0x2a034a('0x154f')][_0x2a034a('0x14e6')]({'id':_0x1cb12b[_0x2a034a('0x15a5')][_0x2a034a('0x1d04')],'section':_0x2a034a('0x13e1'),'channel':'voice','type':'inbound','sort':_0x2a034a('0x7e8'),'nolimit':!![]})[_0x2a034a('0xe59')][_0x2a034a('0xe19')](function(_0x369123){var _0x43a2df=_0x2a034a;_0x1cb12b[_0x43a2df('0x671')]=_0x369123||{'count':0x0,'rows':[]},_0x1cb12b['queuesMap']=_0x32d445()[_0x43a2df('0x2483')](_0x32d445()[_0x43a2df('0x226f')](_0x1cb12b[_0x43a2df('0x671')][_0x43a2df('0x16a7')],_0x43a2df('0x2623')),_0x43a2df('0x2623'));})[_0x2a034a('0x223b')](function(_0x174534){console['error'](_0x174534);})[_0x2a034a('0x23')](function(){var _0x13e12a=_0x2a034a;_0x1cb12b[_0x13e12a('0x1fd3')]=_0x472c77(),_0x1cb12b[_0x13e12a('0x26f5')]();});}function _0x472c77(){var _0x11494d=_0x1514f3;return[{'name':'Start\x20Date','key':_0x11494d('0x15c9'),'type':_0x11494d('0xf6d'),'label':_0x11494d('0x19b7')},{'name':'Agent','key':'lastAssignedTo','type':_0x11494d('0x2e6'),'label':_0x11494d('0x120c'),'options':_0x1cb12b[_0x11494d('0x29b')][_0x11494d('0x16a7')],'customOptions':[{'value':_0x11494d('0x31a'),'translate':_0x11494d('0x2094')},{'value':undefined,'translate':_0x11494d('0x296')}]},{'name':_0x11494d('0x26f9'),'key':_0x11494d('0x26a8'),'type':_0x11494d('0x19a0'),'label':_0x11494d('0x2541'),'options':_0x1cb12b[_0x11494d('0x671')][_0x11494d('0x16a7')]}];}function _0x30569d(){var _0x4f6b85=_0x1514f3;_0x1cb12b[_0x4f6b85('0x23bd')]=![],_0x1cb12b[_0x4f6b85('0x671')]['count']>0x0?(_0x1cb12b[_0x4f6b85('0xa16')][_0x4f6b85('0x26a8')]=_0x1cb12b[_0x4f6b85('0x671')]['count']===0x1?_0x1cb12b[_0x4f6b85('0x671')][_0x4f6b85('0x16a7')][0x0][_0x4f6b85('0x2623')]:_0x1cb12b[_0x4f6b85('0xa16')]['queue'],_0x1cb12b['query']['offset']=(_0x1cb12b['query'][_0x4f6b85('0xc08')]-0x1)*_0x1cb12b[_0x4f6b85('0xa16')][_0x4f6b85('0x1b6d')],_0x5f055e[_0x4f6b85('0x4f9')][_0x4f6b85('0x95e')](_0x4f6b85('0x2a0')+_0x1cb12b[_0x4f6b85('0x15a5')]['id'],JSON[_0x4f6b85('0x3ad')]({'query':_0x32d445()[_0x4f6b85('0x23e3')](_0x1cb12b[_0x4f6b85('0xa16')],_0x4f6b85('0x26a8'))})),_0x1cb12b['promise']=_0x12900c[_0x4f6b85('0xba')]['getVoiceQueuesReport'](_0x1cb12b[_0x4f6b85('0xa16')],_0x72e53)[_0x4f6b85('0xe59')]):_0x72e53(null);}function _0x72e53(_0x4bf04a){var _0x191b48=_0x1514f3;_0x1cb12b[_0x191b48('0x1b69')]=_0x4bf04a||{'count':0x0,'rows':[]},_0x1cb12b[_0x191b48('0x23bd')]=!![];}function _0x576171(){var _0xd8c25=_0x1514f3;_0x1cb12b[_0xd8c25('0x231f')]=![],_0x1cb12b[_0xd8c25('0x26f5')]();}function _0x44ad09(_0x3c7ef5){var _0x37d3f2=_0x1514f3,_0x185305='inbound';_0x3c7ef5&&_0x1cb12b['queuesMap']&&_0x1cb12b['query']['type']===_0x185305&&_0x1cb12b[_0x37d3f2('0x46b')][_0x3c7ef5[_0x37d3f2('0x26a8')]]&&(_0x1cb12b[_0x37d3f2('0x231f')]=!![]);}function _0xe56c57(_0x3226f2){var _0x14e83f=_0x1514f3;if(_0x3226f2){var _0x326128=_0x32d445()[_0x14e83f('0x8d3')](_0x1cb12b[_0x14e83f('0x1b69')][_0x14e83f('0x16a7')],['id',_0x3226f2['id']]);_0x326128>=0x0&&_0x32d445()['merge'](_0x1cb12b['abandonedCalls'][_0x14e83f('0x16a7')][_0x326128],_0x3226f2);}}function _0x317382(_0x31825d,_0x146210){var _0x2b0bef=_0x1514f3;_0x31825d&&_0x12900c[_0x2b0bef('0xba')][_0x2b0bef('0xa70')]({'id':_0x31825d['id'],'lastAssignedTo':_0x146210?_0x146210['name']:null,'assigned':_0x146210?!![]:![]})[_0x2b0bef('0xe59')]['catch'](function(_0xa53982){var _0x261099=_0x2b0bef;console[_0x261099('0x1fe9')](_0xa53982);});}function _0x438e04(_0x15e781){var _0x4f123e=_0x1514f3;_0xb3ed26[_0x4f123e('0x26b2')]({'controller':_0x4f123e('0x26da'),'controllerAs':'vm','templateUrl':_0x4f123e('0x2136'),'parent':angular[_0x4f123e('0x24a1')](_0x3c0588['body']),'targetEvent':_0x15e781,'resolve':{'globalDispositions':[_0x4f123e('0x292'),function _0x2f86b0(_0x5298da){var _0x2b0937=_0x4f123e;return _0x5298da[_0x2b0937('0xcd6')](_0x2b0937('0xb91'),{'MailAccountId':_0x2b0937('0x1046'),'FaxAccountId':'null','SmsAccountId':_0x2b0937('0x1046'),'WhatsappAccountId':_0x2b0937('0x1046'),'OpenchannelAccountId':_0x2b0937('0x1046'),'ChatWebsiteId':_0x2b0937('0x1046'),'ListId':_0x2b0937('0x1046')});}]},'locals':{'dispositions':_0x1cb12b[_0x4f123e('0x24eb')],'call':_0x15e781}})[_0x4f123e('0xe19')](function(_0x4f99cb){var _0x41a948=_0x4f123e;if(_0x4f99cb){var _0x4d56b5={'id':_0x15e781['id'],'disposition':_0x4f99cb['firstLevel']||null,'secondDisposition':_0x4f99cb[_0x41a948('0x14a6')]||null,'thirdDisposition':_0x4f99cb['thirdLevel']||null};_0x12900c['voiceQueueReport'][_0x41a948('0xa70')](_0x4d56b5)[_0x41a948('0xe59')][_0x41a948('0x223b')](function(_0x15e40c){var _0x2cb7ce=_0x41a948;console[_0x2cb7ce('0x1fe9')](_0x15e40c);});}});}var _0x17b53e=!![],_0x9739a3=0x1;_0x348267['$watch'](_0x1514f3('0x20cb'),function(_0x94931c,_0x2ea7fb){var _0x3dbeb1=_0x1514f3;_0x17b53e?_0x1749f7(function(){_0x17b53e=![];}):(!_0x2ea7fb&&(_0x9739a3=_0x1cb12b[_0x3dbeb1('0xa16')][_0x3dbeb1('0xc08')]),_0x94931c!==_0x2ea7fb&&(_0x1cb12b[_0x3dbeb1('0xa16')][_0x3dbeb1('0xc08')]=0x1),!_0x94931c&&(_0x1cb12b[_0x3dbeb1('0xa16')][_0x3dbeb1('0xc08')]=_0x9739a3),_0x1cb12b[_0x3dbeb1('0x26f5')]());}),_0x348267[_0x1514f3('0xb2b')](_0x1514f3('0x5cd'),function(){var _0x149619=_0x1514f3;_0x3cd94c[_0x149619('0x2121')](_0x149619('0x24e2')),_0x3cd94c['removeAllListeners'](_0x149619('0x18ad'));});}const _0x3e0492=_0x2f3e36;_0x39322e[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$q',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$filter','pauses','agents',_0xb635d2('0x7'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),'toasty','helperClasses','userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730'),'license',_0xb635d2('0x1c1a')];function _0x39322e(_0x1a9a78,_0x868666,_0x352fab,_0x2ac92a,_0x16b70f,_0x5dde44,_0x5f392b,_0x4f4cd2,_0xb65f08,_0x172c68,_0x23a82,_0x629d4f,_0x100d95,_0x257255,_0x5e59e2,_0x1068e4,_0x4c0e20,_0x335da8){var _0xf24d11=_0xb635d2,_0x372e84=this,_0x36ff71=['userpic',_0xf24d11('0xb46'),'lastLoginAt',_0xf24d11('0x823'),_0xf24d11('0x103'),'lastPauseAt',_0xf24d11('0x1b66'),_0xf24d11('0xe1f'),'chatPause',_0xf24d11('0xf2a'),_0xf24d11('0x2531'),'smsPause',_0xf24d11('0x14fb'),_0xf24d11('0x2299'),_0xf24d11('0x1b8d'),_0xf24d11('0x201b'),_0xf24d11('0x195a'),_0xf24d11('0xc97'),'smsCapacity',_0xf24d11('0x15f0'),_0xf24d11('0x15ee'),_0xf24d11('0x1fa2'),'openchannelCurrentCapacity',_0xf24d11('0x1d8a'),_0xf24d11('0x1f27'),_0xf24d11('0xa2a'),_0xf24d11('0x1c17'),_0xf24d11('0x21f1'),'openchannelStatus',_0xf24d11('0x44e'),_0xf24d11('0x1d59'),_0xf24d11('0x1d57'),'faxStatus',_0xf24d11('0xff0'),_0xf24d11('0x583'),_0xf24d11('0x1ca7'),_0xf24d11('0x1426'),_0xf24d11('0x1c51'),'whatsappStatusTime',_0xf24d11('0xaa3'),_0xf24d11('0x2469'),_0xf24d11('0x26a8'),_0xf24d11('0x149e'),_0xf24d11('0x783'),'phoneBarEnableScreenRecordingByAgent',_0xf24d11('0x12d')],_0x406288=[_0xf24d11('0x1b15'),_0xf24d11('0xf2a'),_0xf24d11('0x2531'),_0xf24d11('0x24f1'),_0xf24d11('0x14fb'),'faxPause',_0xf24d11('0x1b8d'),_0xf24d11('0xb46')];_0x372e84[_0xf24d11('0x15a5')]=_0x1068e4[_0xf24d11('0x1ef8')](),_0x372e84[_0xf24d11('0x2254')]=['ringing','inuse',_0xf24d11('0x1934'),'onhold',_0xf24d11('0x3ef')],_0x372e84[_0xf24d11('0x145e')]=_0x5f392b||{'count':0x0,'rows':[]},_0x372e84[_0xf24d11('0x5c1')]=_0x4c0e20,_0x372e84['userProfile']=_0x257255,_0x372e84[_0xf24d11('0xb59')]=_0x5e59e2&&_0x5e59e2['count']==0x1?_0x5e59e2['rows'][0x0]:null,_0x372e84[_0xf24d11('0xb3d')]=_0x1068e4[_0xf24d11('0xd31')](_0x372e84[_0xf24d11('0xb59')]?_0x372e84[_0xf24d11('0xb59')][_0xf24d11('0xb3d')]:null),_0x372e84[_0xf24d11('0x29b')]=_0x4f4cd2?_0x32d445()[_0xf24d11('0x226f')](_0x4f4cd2[_0xf24d11('0x16a7')]?_0x4f4cd2[_0xf24d11('0x16a7')]:[],'id'):{},_0x372e84[_0xf24d11('0x7')]=_0xb65f08?_0x32d445()[_0xf24d11('0x226f')](_0xb65f08['rows']?_0xb65f08[_0xf24d11('0x16a7')]:[],'id'):{},_0x372e84[_0xf24d11('0xc68')]={},_0x372e84[_0xf24d11('0xcfe')]=![],_0x372e84[_0xf24d11('0x1b03')]=[],_0x372e84['agentInternal']={};for(var _0x8d143f in _0x372e84['agents']){typeof _0x372e84[_0xf24d11('0x29b')][_0x8d143f]!==_0xf24d11('0x1143')&&(_0x372e84[_0xf24d11('0x29b')][_0x8d143f]['init']=!![]);}_0x372e84[_0xf24d11('0xa16')]={'limit':0xa,'page':0x1,'order':_0xf24d11('0xe11'),'globalStatusFilter':'','pauseTypeFilter':''},_0x372e84[_0xf24d11('0xe4e')]=_0x1c87de,_0x372e84[_0xf24d11('0x16d4')]=_0x1d3a28,_0x372e84[_0xf24d11('0x1c98')]=_0x4db721,_0x372e84[_0xf24d11('0x560')]=_0x1f8fce,_0x372e84[_0xf24d11('0x80b')]=_0x79b5ba,_0x372e84['getAgentStatus']=_0x5e9b54,_0x372e84[_0xf24d11('0xe1d')]=_0x3d5fd9,_0x372e84['isPause']=_0xb5ab0f,_0x372e84[_0xf24d11('0x1803')]=_0x297555,_0x372e84[_0xf24d11('0x2052')]=_0x161f36,_0x372e84['onSave']=_0x460cdd,_0x372e84[_0xf24d11('0x18ee')]=_0x9d5e41,_0x372e84['onInit']=_0x403762,_0x372e84[_0xf24d11('0x266f')]=_0x4cda68,_0x372e84['onComplete']=_0x216771,_0x372e84[_0xf24d11('0x166f')]=_0x5815a8,_0x23a82['on'](_0xf24d11('0xb9f'),_0x372e84[_0xf24d11('0x284a')]),_0x23a82['on'](_0xf24d11('0x1ce3'),_0x372e84['onUpdate']),_0x23a82['on'](_0xf24d11('0x1002'),_0x372e84[_0xf24d11('0x266f')]),_0x23a82['on'](_0xf24d11('0xa8e'),_0x372e84['onComplete']),_0x403762();var _0x4c0d7d=_0x335da8(function(){var _0x23ed83=_0xf24d11;_0x372e84[_0x23ed83('0xcfe')]&&(_0x372e84[_0x23ed83('0xcfe')]=![],_0x403762());},0x3e7);function _0x403762(){var _0x5a1cfb=_0xf24d11;_0x372e84[_0x5a1cfb('0xcfe')]=![];var _0x3054b9=_0x868666[_0x5a1cfb('0x178')]();_0x372e84[_0x5a1cfb('0x9c8')]=_0x3054b9['promise'],_0x372e84[_0x5a1cfb('0x16a4')]=[],_0x372e84[_0x5a1cfb('0x1b03')]=[],_0x32d445()[_0x5a1cfb('0xd1e')](_0x372e84[_0x5a1cfb('0x29b')],function(_0x44e440,_0x548c1b){var _0x23d3ef=_0x5a1cfb;_0x372e84[_0x23d3ef('0x7')][_0x548c1b]&&_0x32d445()['merge'](_0x44e440,_0x32d445()[_0x23d3ef('0xed5')](_0x32d445()[_0x23d3ef('0x23e3')](_0x372e84[_0x23d3ef('0x7')][_0x548c1b],_0x406288),_0x36ff71)),_0x3d5fd9(_0x44e440),_0x44e440['online']?(_0x372e84['filteredAgents'][_0x23d3ef('0xb76')](_0x44e440),_0x372e84[_0x23d3ef('0x7ff')][_0x44e440[_0x23d3ef('0x1b66')]]=_0x548c1b):_0x44e440[_0x23d3ef('0x16ed')]=_0x32d445()[_0x23d3ef('0xcd3')](_0x4ddcaa()()[_0x23d3ef('0x5e5')]('x'));});_0x372e84[_0x5a1cfb('0xa16')][_0x5a1cfb('0xb02')]&&_0x32d445()[_0x5a1cfb('0xa8b')](_0x372e84[_0x5a1cfb('0x16a4')],function(_0x5d4fd5){var _0x264179=_0x5a1cfb;return _0x5d4fd5[_0x264179('0x25b1')]!==_0x372e84[_0x264179('0xa16')][_0x264179('0xb02')];});_0x372e84['query'][_0x5a1cfb('0x24fc')]&&_0x32d445()['remove'](_0x372e84[_0x5a1cfb('0x16a4')],function(_0x1d9b47){var _0x41478f=_0x5a1cfb;return _0x1d9b47[_0x41478f('0x103')]!==_0x372e84['query'][_0x41478f('0x24fc')];});_0x372e84[_0x5a1cfb('0xa16')][_0x5a1cfb('0x2891')]&&_0x32d445()[_0x5a1cfb('0xa8b')](_0x372e84[_0x5a1cfb('0x16a4')],function(_0x5703e4){var _0x21c2ba=_0x5a1cfb;return _0x5703e4[_0x21c2ba('0xe11')][_0x21c2ba('0x20dd')]()[_0x21c2ba('0x281c')](_0x372e84['query'][_0x21c2ba('0x2891')][_0x21c2ba('0x20dd')]())<0x0;});_0x372e84[_0x5a1cfb('0x16a4')]=_0x20e1cb(_0x372e84[_0x5a1cfb('0x16a4')]);var _0xbdc817=(_0x372e84['query'][_0x5a1cfb('0xc08')]-0x1)*_0x372e84['query']['limit'];_0x372e84['paginatedAgents']=_0x32d445()[_0x5a1cfb('0x4a0')](_0x372e84[_0x5a1cfb('0x16a4')],_0xbdc817)['slice'](0x0,_0x372e84[_0x5a1cfb('0xa16')]['limit']);for(var _0x4ce628=0x0;_0x4ce628<_0x372e84[_0x5a1cfb('0xc68')]['length'];_0x4ce628+=0x1){_0x372e84[_0x5a1cfb('0x1b03')][_0x5a1cfb('0xb76')](_0x372e84['paginatedAgents'][_0x4ce628]['id']);}_0x3054b9[_0x5a1cfb('0xcd6')](),_0x372e84[_0x5a1cfb('0xcfe')]=!![];}function _0x460cdd(_0xe48e5d){var _0x15312b=_0xf24d11;_0x372e84[_0x15312b('0x29b')][_0xe48e5d['id']]&&(_0x32d445()[_0x15312b('0x1d8')](_0x372e84[_0x15312b('0x29b')][_0xe48e5d['id']],_0x32d445()[_0x15312b('0xed5')](_0x32d445()['omit'](_0xe48e5d,_0x406288),_0x36ff71)),_0x32d445()[_0x15312b('0x1d8')](_0x372e84[_0x15312b('0x7')][_0xe48e5d['id']],_0x32d445()[_0x15312b('0xed5')](_0x32d445()[_0x15312b('0x23e3')](_0xe48e5d,_0x406288),_0x36ff71)),_0x3d5fd9(_0x372e84[_0x15312b('0x29b')][_0xe48e5d['id']]));}function _0x9d5e41(_0x3f6585){var _0x2cdb0c=_0xf24d11;_0x372e84[_0x2cdb0c('0x29b')][_0x3f6585['id']]&&(_0x32d445()['merge'](_0x372e84[_0x2cdb0c('0x29b')][_0x3f6585['id']],_0x32d445()[_0x2cdb0c('0xed5')](_0x3f6585,_0x36ff71)),_0x32d445()[_0x2cdb0c('0x1d8')](_0x372e84['rpcAgents'][_0x3f6585['id']],_0x32d445()[_0x2cdb0c('0xed5')](_0x3f6585,_0x36ff71)),_0x3f6585[_0x2cdb0c('0x823')]&&(_0x372e84[_0x2cdb0c('0x29b')][_0x3f6585['id']][_0x2cdb0c('0x16ed')]=_0x3f6585[_0x2cdb0c('0x823')],_0x372e84[_0x2cdb0c('0x7')][_0x3f6585['id']][_0x2cdb0c('0x16ed')]=_0x3f6585[_0x2cdb0c('0x823')]),_0x3d5fd9(_0x372e84['agents'][_0x3f6585['id']]));}function _0x4cda68(_0x3be85a){var _0x5866cb=_0xf24d11;_0x372e84[_0x5866cb('0x29b')][_0x372e84[_0x5866cb('0x7ff')][_0x3be85a[_0x5866cb('0x1c29')]]]&&(_0x32d445()['merge'](_0x372e84[_0x5866cb('0x29b')][_0x372e84[_0x5866cb('0x7ff')][_0x3be85a[_0x5866cb('0x1c29')]]],_0x32d445()[_0x5866cb('0xed5')](_0x3be85a,['queue',_0x5866cb('0x149e')])),_0x32d445()[_0x5866cb('0x1d8')](_0x372e84[_0x5866cb('0x7')][_0x372e84['agentInternal'][_0x3be85a[_0x5866cb('0x1c29')]]],_0x32d445()[_0x5866cb('0xed5')](_0x3be85a,['queue','destconnectedlinenum'])));}function _0x216771(_0x21f67c){var _0x4d0bdf=_0xf24d11;_0x372e84['agents'][_0x372e84[_0x4d0bdf('0x7ff')][_0x21f67c['destaccountcode']]]&&(_0x372e84[_0x4d0bdf('0x29b')][_0x372e84[_0x4d0bdf('0x7ff')][_0x21f67c[_0x4d0bdf('0x1c29')]]]=_0x32d445()[_0x4d0bdf('0x23e3')](_0x372e84[_0x4d0bdf('0x29b')][_0x372e84[_0x4d0bdf('0x7ff')][_0x21f67c[_0x4d0bdf('0x1c29')]]],[_0x4d0bdf('0x26a8'),_0x4d0bdf('0x149e')]),_0x372e84[_0x4d0bdf('0x7')][_0x372e84[_0x4d0bdf('0x7ff')][_0x21f67c[_0x4d0bdf('0x1c29')]]]=_0x32d445()[_0x4d0bdf('0x23e3')](_0x372e84[_0x4d0bdf('0x7')][_0x372e84[_0x4d0bdf('0x7ff')][_0x21f67c[_0x4d0bdf('0x1c29')]]],[_0x4d0bdf('0x26a8'),'destconnectedlinenum']));}function _0x1c87de(_0x67e4b3){var _0x1baff4=_0xf24d11;return _0x172c68[_0x1baff4('0x10c6')]['logout']({'id':_0x67e4b3['id'],'device':_0x1baff4('0x24e1'),'agent_id':_0x67e4b3['id'],'agent_name':_0x67e4b3['name']})['$promise']['then'](function(){var _0x2b6729=_0x1baff4;_0x629d4f[_0x2b6729('0x425')]({'title':_0x2b6729('0x25b9'),'msg':_0x67e4b3[_0x2b6729('0xe11')]+'\x20\x20properly\x20logout'}),_0x372e84['agents'][_0x67e4b3['id']]&&(_0x372e84[_0x2b6729('0x29b')][_0x67e4b3['id']]['online']=![]),_0x372e84[_0x2b6729('0x7')][_0x67e4b3['id']]&&(_0x372e84[_0x2b6729('0x7')][_0x67e4b3['id']][_0x2b6729('0xb46')]=![]),_0x403762();})['catch'](function(_0x3b1ab2){var _0x4dc89a=_0x1baff4;_0x629d4f['error']({'title':_0x3b1ab2[_0x4dc89a('0x2833')]?'API:'+_0x3b1ab2[_0x4dc89a('0x2833')]+_0x4dc89a('0x1b7c')+_0x3b1ab2[_0x4dc89a('0x1fd7')]:_0x4dc89a('0x1c95'),'msg':_0x3b1ab2[_0x4dc89a('0x11d0')]?JSON[_0x4dc89a('0x3ad')](_0x3b1ab2['data'][_0x4dc89a('0x27e8')]):_0x3b1ab2[_0x4dc89a('0x94f')]()});});}function _0x4db721(_0x2f8536,_0x45e6d5){var _0x407f53=_0xf24d11;return _0x172c68[_0x407f53('0x10c6')][_0x407f53('0x1c98')]({'id':_0x2f8536['id'],'type':_0x45e6d5})[_0x407f53('0xe59')][_0x407f53('0xe19')](function(_0x59a545){var _0x18b348=_0x407f53;_0x372e84[_0x18b348('0x29b')][_0x2f8536['id']]&&_0x32d445()[_0x18b348('0x1d8')](_0x372e84[_0x18b348('0x29b')][_0x2f8536['id']],_0x32d445()[_0x18b348('0xed5')](_0x59a545,_0x36ff71)),_0x372e84[_0x18b348('0x7')][_0x2f8536['id']]&&_0x32d445()[_0x18b348('0x1d8')](_0x372e84[_0x18b348('0x7')][_0x2f8536['id']],_0x32d445()[_0x18b348('0xed5')](_0x59a545,_0x36ff71)),_0x3d5fd9(_0x372e84[_0x18b348('0x29b')][_0x2f8536['id']]);})[_0x407f53('0x223b')](function(_0x5c7aaf){var _0x28c689=_0x407f53;_0x629d4f['error']({'title':_0x5c7aaf[_0x28c689('0x2833')]?'API:'+_0x5c7aaf[_0x28c689('0x2833')]+_0x28c689('0x1b7c')+_0x5c7aaf[_0x28c689('0x1fd7')]:_0x28c689('0x1c95'),'msg':_0x5c7aaf[_0x28c689('0x11d0')]?JSON[_0x28c689('0x3ad')](_0x5c7aaf[_0x28c689('0x11d0')]['message']):_0x5c7aaf[_0x28c689('0x94f')]()});});}function _0x1f8fce(_0x295727){var _0x54e79a=_0xf24d11;return _0x172c68[_0x54e79a('0x10c6')][_0x54e79a('0x2471')]({'id':_0x295727['id']})[_0x54e79a('0xe59')]['then'](function(_0xf7655b){var _0x412a12=_0x54e79a;_0x372e84[_0x412a12('0x29b')][_0x295727['id']]&&_0x32d445()[_0x412a12('0x1d8')](_0x372e84[_0x412a12('0x29b')][_0x295727['id']],_0x32d445()[_0x412a12('0xed5')](_0xf7655b,_0x36ff71)),_0x372e84[_0x412a12('0x7')][_0x295727['id']]&&_0x32d445()['merge'](_0x372e84['rpcAgents'][_0x295727['id']],_0x32d445()['pick'](_0xf7655b,_0x36ff71)),_0x3d5fd9(_0x372e84[_0x412a12('0x29b')][_0x295727['id']]);})[_0x54e79a('0x223b')](function(_0x149995){var _0x5a3983=_0x54e79a;_0x629d4f[_0x5a3983('0x8c8')]({'title':_0x149995[_0x5a3983('0x2833')]?_0x5a3983('0x27f2')+_0x149995[_0x5a3983('0x2833')]+_0x5a3983('0x1b7c')+_0x149995[_0x5a3983('0x1fd7')]:_0x5a3983('0x1c95'),'msg':_0x149995[_0x5a3983('0x11d0')]?JSON[_0x5a3983('0x3ad')](_0x149995[_0x5a3983('0x11d0')][_0x5a3983('0x27e8')]):_0x149995[_0x5a3983('0x94f')]()});});}function _0x79b5ba(_0x5359b1){var _0x5ff582=_0xf24d11;_0x2ac92a['show'](_0x2ac92a[_0x5ff582('0xbdc')]()[_0x5ff582('0x26d6')](!![])[_0x5ff582('0x13e4')](_0x5ff582('0x7c0'))[_0x5ff582('0x221c')](_0x5ff582('0x1abb'))['ok']('Ok')[_0x5ff582('0x1345')](_0x5359b1));}function _0x1d3a28(_0x35cb5f,_0x494f9d){var _0x16dabc=_0xf24d11;_0x2ac92a['show']({'controller':_0x16dabc('0x28ab'),'controllerAs':'vm','templateUrl':_0x3bf6bc,'parent':angular[_0x16dabc('0x24a1')](_0x16b70f['body']),'targetEvent':_0x494f9d,'clickOutsideToClose':!![],'locals':{'agent':_0x35cb5f,'agents':[],'channel':_0x16dabc('0xe74'),'direction':_0x16dabc('0x1a7a'),'crudPermissions':_0x372e84[_0x16dabc('0xb3d')]}});}function _0xb5ab0f(_0x1a3c6c){var _0xfdc279=_0xf24d11;return _0x1a3c6c===_0xfdc279('0x1c98')||_0x1a3c6c===_0xfdc279('0x2f3');}function _0x297555(_0x439436){var _0x5ca3c0=_0xf24d11;return _0x439436===_0x5ca3c0('0x1c98');}function _0x161f36(_0x4e17d2){return _0x4e17d2==='*pause';}function _0x340141(_0x478468){var _0x4363fb=_0xf24d11;return _0x478468===_0x4363fb('0x751')||_0x478468===_0x4363fb('0x10df')||_0x478468==='unavailable'||_0x478468==='ringing'||_0x32d445()[_0x4363fb('0xe44')](_0x478468);}function _0x5e9b54(_0xea9927,_0x8e1cf8){var _0x4cd294=_0xf24d11;if(_0x8e1cf8===_0x4cd294('0xe74')){if(_0xea9927[_0x8e1cf8+_0x4cd294('0x20e')]!==_0x4cd294('0x751'))return _0xea9927[_0x8e1cf8+_0x4cd294('0x20e')];if(_0xea9927[_0x8e1cf8+_0x4cd294('0x27b9')])return _0xea9927[_0x8e1cf8+_0x4cd294('0x20e')]=_0x4cd294('0x1c98'),_0x4cd294('0x1c98');return'idle';}else{if(_0xea9927[_0x8e1cf8+_0x4cd294('0x27b9')])return _0xea9927[_0x8e1cf8+'Status']=_0x4cd294('0x1c98'),_0x4cd294('0x1c98');return _0xea9927[_0x8e1cf8+_0x4cd294('0x20e')];}}function _0x3d5fd9(_0x1f5fb4){var _0x3fee6b=_0xf24d11,_0x5f1f69=_0x3fee6b('0x10df');if(_0x32d445()[_0x3fee6b('0x1ff')]([_0x5e9b54(_0x1f5fb4,_0x3fee6b('0xe74')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x17cc')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x26bf')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0xaf2')),_0x5e9b54(_0x1f5fb4,'sms'),_0x5e9b54(_0x1f5fb4,'whatsapp'),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x625'))],_0xb5ab0f))_0x5f1f69=_0x3fee6b('0x1c98');else{if(_0x32d445()[_0x3fee6b('0x201a')]([_0x5e9b54(_0x1f5fb4,_0x3fee6b('0xe74')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x17cc')),_0x5e9b54(_0x1f5fb4,'mail'),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0xaf2')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x2801')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x4b7')),_0x5e9b54(_0x1f5fb4,'fax')],_0xb5ab0f))_0x5f1f69=_0x3fee6b('0x2f3');else _0x32d445()['every']([_0x5e9b54(_0x1f5fb4,_0x3fee6b('0xe74')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x17cc')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x26bf')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0xaf2')),_0x5e9b54(_0x1f5fb4,'sms'),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x4b7')),_0x5e9b54(_0x1f5fb4,_0x3fee6b('0x625'))],_0x340141)?_0x5f1f69=_0x3fee6b('0x751'):_0x5f1f69=_0x3fee6b('0x1934');}_0x1f5fb4['globalStatus']!==_0x5f1f69&&(_0x1f5fb4[_0x3fee6b('0x25b1')]=_0x5f1f69,_0x1f5fb4['init']?(_0x1f5fb4[_0x3fee6b('0x15f9')]=![],_0x1f5fb4[_0x3fee6b('0x16ed')]=_0xb5ab0f(_0x5f1f69)?_0x32d445()['toNumber'](_0x4ddcaa()(_0x1f5fb4[_0x3fee6b('0x823')])['format']('x')):_0x32d445()['max']([_0x1f5fb4['voiceStatusTime'],_0x1f5fb4['chatStatusTime'],_0x1f5fb4[_0x3fee6b('0x1426')],_0x1f5fb4['smsStatusTime'],_0x1f5fb4[_0x3fee6b('0xda4')],_0x1f5fb4[_0x3fee6b('0x1ca7')],_0x1f5fb4[_0x3fee6b('0xaa3')]])):_0x1f5fb4[_0x3fee6b('0x16ed')]=_0x32d445()[_0x3fee6b('0xcd3')](_0x4ddcaa()()[_0x3fee6b('0x5e5')]('x')));}function _0x20e1cb(_0x5d2ad5){var _0x5cd4db=_0xf24d11,_0xecff2e=_0x32d445()['startsWith'](_0x372e84[_0x5cd4db('0xa16')]['order'],'-')?_0x5cd4db('0x1ee9'):'asc';return _0x32d445()[_0x5cd4db('0x10e')](_0x5d2ad5,[_0x372e84[_0x5cd4db('0xa16')][_0x5cd4db('0x1b03')][_0x5cd4db('0x1b42')]('-','')],[_0xecff2e]);}function _0x376b31(){var _0x137b58=_0xf24d11;_0x4c0d7d&&(_0x335da8[_0x137b58('0x2c1')](_0x4c0d7d),_0x4c0d7d=null);}function _0x5815a8(_0x468bdc,_0x5db9fc){var _0x4e0f57=_0xf24d11;return _0x172c68[_0x4e0f57('0x10c6')][_0x4e0f57('0xa70')]({'id':_0x468bdc['id']},{'screenrecording':_0x5db9fc})[_0x4e0f57('0xe59')][_0x4e0f57('0x223b')](function(_0x32253f){var _0x881be7=_0x4e0f57;_0x629d4f['error']({'title':_0x32253f[_0x881be7('0x2833')]?_0x881be7('0x27f2')+_0x32253f[_0x881be7('0x2833')]+'\x20-\x20'+_0x32253f[_0x881be7('0x1fd7')]:_0x881be7('0x2bf'),'msg':_0x32253f['data']?JSON[_0x881be7('0x3ad')](_0x32253f[_0x881be7('0x11d0')][_0x881be7('0x27e8')]):_0x32253f[_0x881be7('0x94f')]()});});}_0x1a9a78[_0xf24d11('0xb2b')]('$destroy',function(){var _0x43323f=_0xf24d11;_0x23a82[_0x43323f('0x2121')]('user:save'),_0x23a82['removeAllListeners'](_0x43323f('0x1ce3')),_0x23a82[_0x43323f('0x2121')](_0x43323f('0x1002')),_0x23a82[_0x43323f('0x2121')](_0x43323f('0xa8e')),_0x376b31();});}const _0x4f57e2=_0x39322e;_0xe77d85[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),'rpcCalls',_0xb635d2('0x20d')];function _0xe77d85(_0x2caeb7,_0xec7bdf,_0x3d3743,_0x1758f8,_0x154d97,_0x2910a1){var _0xecb227=_0xb635d2,_0x302d08=this;_0x302d08[_0xecb227('0x13c7')]=_0x154d97||{'rows':[],'count':0x0},_0x302d08[_0xecb227('0xa16')]={'limit':0xa,'page':0x1},_0x302d08[_0xecb227('0x12bb')]=_0x2910a1[_0xecb227('0xf85')],_0x1758f8['on'](_0xecb227('0x1b9'),_0x302d08[_0xecb227('0x284a')]),_0x1758f8['on'](_0xecb227('0x135d'),_0x302d08['onRemove']);function _0x444ed6(_0x198a42){var _0xa736b1=_0xecb227,_0x5532f9=_0x32d445()[_0xa736b1('0xf15')](_0x302d08[_0xa736b1('0x13c7')][_0xa736b1('0x16a7')],{'channel':_0x198a42[_0xa736b1('0x4e')]});_0x198a42['channelstatedesc']=_0x198a42[_0xa736b1('0x1f2')]?'up':_0xa736b1('0xa6d');if(_0x5532f9)_0x32d445()[_0xa736b1('0x1d8')](_0x5532f9,_0x198a42);else _0x198a42[_0xa736b1('0x4e')]&&_0x302d08[_0xa736b1('0x13c7')]['rows'][_0xa736b1('0xb76')](_0x198a42);}function _0x424b38(_0x5d276a){var _0x5b68ee=_0xecb227,_0x429362=_0x32d445()[_0x5b68ee('0x8d3')](_0x302d08['calls'][_0x5b68ee('0x16a7')],{'channel':_0x5d276a['channel']});_0x429362>=0x0&&(_0x302d08[_0x5b68ee('0x13c7')][_0x5b68ee('0x16a7')][_0x429362][_0x5b68ee('0x2833')]=_0x5b68ee('0x1e92')),_0xec7bdf(function(){var _0xf8d039=_0x5b68ee;_0x302d08[_0xf8d039('0x13c7')]['rows'][_0xf8d039('0x1c8e')](_0x429362,0x1);},0x1388);}_0x2caeb7[_0xecb227('0xb2b')](_0xecb227('0x5cd'),function(){var _0x44ebd4=_0xecb227;_0x1758f8['removeAllListeners'](_0x44ebd4('0x1b9')),_0x1758f8[_0x44ebd4('0x2121')](_0x44ebd4('0x135d'));}),_0x302d08[_0xecb227('0x284a')]=_0x444ed6,_0x302d08[_0xecb227('0x27cf')]=_0x424b38;}const _0x431f9e=_0xe77d85;_0x3ece73['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x29b'),_0xb635d2('0x671'),_0xb635d2('0xf64'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0x20d'),'toasty',_0xb635d2('0x154f'),'userProfileSection','Auth'];function _0x3ece73(_0x245514,_0x1266ed,_0x3feed5,_0x19d3ff,_0x2d1988,_0x39d51d,_0x5d37df,_0x12e1a6,_0x1873b7,_0x141787,_0x4a7fee,_0x7fa2f3,_0x1e7ff5){var _0x3fb924=_0xb635d2,_0x5987b9=this;_0x5987b9['currentUser']=_0x1e7ff5[_0x3fb924('0x1ef8')](),_0x5987b9[_0x3fb924('0x29b')]=_0x19d3ff||{'count':0x0,'rows':[]},_0x5987b9[_0x3fb924('0x671')]=_0x2d1988?_0x32d445()[_0x3fb924('0x226f')](_0x2d1988[_0x3fb924('0x16a7')]?_0x2d1988[_0x3fb924('0x16a7')]:[],'name'):{},_0x5987b9['rpcVoiceQueuesChannelsTmp']=_0x39d51d?_0x32d445()['keyBy'](_0x39d51d[_0x3fb924('0x16a7')]?_0x32d445()[_0x3fb924('0x2891')](_0x39d51d[_0x3fb924('0x16a7')],{'type':'inbound'}):[],'uniqueid'):{},_0x5987b9[_0x3fb924('0xf64')]={},_0x5987b9[_0x3fb924('0x154f')]=_0x4a7fee,_0x5987b9[_0x3fb924('0xb59')]=_0x7fa2f3&&_0x7fa2f3[_0x3fb924('0x148b')]==0x1?_0x7fa2f3[_0x3fb924('0x16a7')][0x0]:null,_0x5987b9[_0x3fb924('0xb3d')]=_0x1e7ff5[_0x3fb924('0xd31')](_0x5987b9[_0x3fb924('0xb59')]?_0x5987b9[_0x3fb924('0xb59')][_0x3fb924('0xb3d')]:null),_0x5987b9[_0x3fb924('0x40a')]={'limit':0xa,'page':0x1},_0x5987b9[_0x3fb924('0x1c9c')]=_0x596934,_0x5987b9[_0x3fb924('0x696')]=_0x5cb0aa,_0x5987b9[_0x3fb924('0x284a')]=_0x1a5c80,_0x5987b9['onRemove']=_0x132dd7,_0x5987b9[_0x3fb924('0x1e92')]=_0x4add2e,_0x5987b9['redirectToAgent']=_0x934628,_0x5987b9[_0x3fb924('0x43')]=_0x3ddb77,_0x12e1a6['on'](_0x3fb924('0x592'),_0x5987b9[_0x3fb924('0x284a')]),_0x12e1a6['on'](_0x3fb924('0x2189'),_0x5987b9['onRemove']);function _0x596934(_0x437824){var _0x38e944=_0x3fb924;return _0x32d445()[_0x38e944('0x1aea')](_0x437824);}function _0x5cb0aa(){var _0x380c89=_0x3fb924;_0x32d445()[_0x380c89('0xd1e')](_0x5987b9[_0x380c89('0x15e5')],function(_0x323320,_0x1e069c){var _0x3f73d7=_0x380c89;_0x32d445()[_0x3f73d7('0xf15')](_0x5987b9[_0x3f73d7('0x671')],{'name':_0x323320[_0x3f73d7('0x2623')]})&&(_0x5987b9[_0x3f73d7('0xf64')][_0x1e069c]=_0x323320);});}function _0x1a5c80(_0xd8584d){var _0x38367e=_0x3fb924;_0xd8584d[_0x38367e('0x62e')]==='inbound'&&(_0x32d445()[_0x38367e('0xf15')](_0x5987b9[_0x38367e('0x671')],{'name':_0xd8584d[_0x38367e('0x2623')]})&&(_0x5987b9[_0x38367e('0xf64')][_0xd8584d['uniqueid']]=_0xd8584d));}function _0x132dd7(_0x18f1f4){var _0x32cfe8=_0x3fb924;_0x5987b9[_0x32cfe8('0xf64')][_0x18f1f4[_0x32cfe8('0x1a6c')]]&&delete _0x5987b9['rpcVoiceQueuesChannels'][_0x18f1f4[_0x32cfe8('0x1a6c')]];}function _0x4add2e(_0x8e79a){var _0x28f9a7=_0x3fb924;return _0x5d37df[_0x28f9a7('0x21e1')]['getVoiceQueuesChannelHangup']({'uniqueid':_0x8e79a})['$promise'][_0x28f9a7('0xe19')](function(_0x4ac824){var _0x1f2e7e=_0x28f9a7;_0x141787[_0x1f2e7e('0x425')]({'title':_0x1f2e7e('0xaaa')+_0x8e79a+_0x1f2e7e('0x360'),'msg':_0x4ac824['message']||''});})[_0x28f9a7('0x223b')](function(_0x11de1d){var _0x2facb0=_0x28f9a7;_0x141787['error']({'title':_0x11de1d[_0x2facb0('0x2833')]+_0x2facb0('0x1b7c')+_0x11de1d[_0x2facb0('0x1fd7')],'msg':JSON[_0x2facb0('0x3ad')](_0x11de1d[_0x2facb0('0x11d0')])||_0x11de1d['message'][_0x2facb0('0x1537')]('\x20')});});}function _0x934628(_0x2c5b2d,_0xb155bf,_0x406ca9){var _0x30d862=_0x3fb924;return _0x5d37df['rpc'][_0x30d862('0x7c7')]({'uniqueid':_0x2c5b2d,'exten':_0xb155bf,'context':_0x406ca9})['$promise'][_0x30d862('0xe19')](function(_0x394434){var _0x3fb197=_0x30d862;_0x141787[_0x3fb197('0x425')]({'title':_0x3fb197('0xaaa')+_0x2c5b2d+_0x3fb197('0xf75'),'msg':_0x394434[_0x3fb197('0x27e8')]||''});})[_0x30d862('0x223b')](function(_0x3ba5ee){var _0x1a0d00=_0x30d862;_0x141787[_0x1a0d00('0x8c8')]({'title':_0x3ba5ee[_0x1a0d00('0x2833')]+_0x1a0d00('0x1b7c')+_0x3ba5ee[_0x1a0d00('0x1fd7')],'msg':JSON[_0x1a0d00('0x3ad')](_0x3ba5ee[_0x1a0d00('0x11d0')])||_0x3ba5ee['message'][_0x1a0d00('0x1537')]('\x20')});});}function _0x3ddb77(_0x873987,_0x33a24c){var _0x53f9fe=_0x3fb924,_0x41e377=_0x3feed5[_0x53f9fe('0x68f')]()[_0x53f9fe('0x13e4')](_0x53f9fe('0x27cb'))[_0x53f9fe('0x53e')](_0x53f9fe('0x59c'))[_0x53f9fe('0x1345')](_0x873987)['ok']('Ok')['cancel'](_0x53f9fe('0x8a3'));return _0x3feed5[_0x53f9fe('0x26b2')](_0x41e377)[_0x53f9fe('0xe19')](function(_0x59a27b){var _0x516343=_0x53f9fe;return _0x5d37df[_0x516343('0x21e1')]['getVoiceQueuesChannelRedirect']({'uniqueid':_0x33a24c,'exten':_0x59a27b})[_0x516343('0xe59')];})[_0x53f9fe('0xe19')](function(_0x1bbf1f){var _0xfcbea3=_0x53f9fe;_0x141787[_0xfcbea3('0x425')]({'title':_0xfcbea3('0xaaa')+_0x33a24c+_0xfcbea3('0xf75'),'msg':_0x1bbf1f['message']||''});})[_0x53f9fe('0x223b')](function(_0x49264c){var _0x2bf37a=_0x53f9fe;_0x141787[_0x2bf37a('0x8c8')]({'title':_0x49264c[_0x2bf37a('0x2833')]+_0x2bf37a('0x1b7c')+_0x49264c[_0x2bf37a('0x1fd7')],'msg':JSON['stringify'](_0x49264c[_0x2bf37a('0x11d0')])||_0x49264c['message'][_0x2bf37a('0x1537')]('\x20')});});}_0x245514[_0x3fb924('0xb2b')](_0x3fb924('0x5cd'),function(){var _0x43f75=_0x3fb924;_0x12e1a6[_0x43f75('0x2121')](_0x43f75('0x592')),_0x12e1a6[_0x43f75('0x2121')](_0x43f75('0x2189'));});}const _0x1cbb63=_0x3ece73;_0x2c9275[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c1a'),_0xb635d2('0x671'),_0xb635d2('0x146c'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'Auth'];function _0x2c9275(_0x29ec1b,_0x2f1db3,_0x32f956,_0x20af18,_0x489069,_0x34c310,_0x3e5eda,_0xa7afc4,_0x4edf0f,_0xa09e80){var _0xb03ced=_0xb635d2,_0x3eabc=this,_0x2ebea4=[_0xb03ced('0x1e14'),_0xb03ced('0x18e1'),'unmanaged',_0xb03ced('0x3ac'),'sumHoldTime',_0xb03ced('0x239d'),_0xb03ced('0x1e88')];_0x3eabc[_0xb03ced('0x148b')]=_0x20af18['count'],_0x3eabc[_0xb03ced('0x671')]=_0x20af18?_0x32d445()['keyBy'](_0x20af18[_0xb03ced('0x16a7')]?_0x20af18[_0xb03ced('0x16a7')]:[],'id'):{},_0x3eabc[_0xb03ced('0x146c')]=_0x489069?_0x32d445()[_0xb03ced('0x226f')](_0x489069[_0xb03ced('0x16a7')]?_0x489069['rows']:[],'id'):{},_0x3eabc[_0xb03ced('0x154f')]=_0xa7afc4,_0x3eabc['userProfileSection']=_0x4edf0f&&_0x4edf0f['count']==0x1?_0x4edf0f[_0xb03ced('0x16a7')][0x0]:null,_0x3eabc[_0xb03ced('0xb3d')]=_0xa09e80['parseCrudPermissions'](_0x3eabc[_0xb03ced('0xb59')]?_0x3eabc[_0xb03ced('0xb59')][_0xb03ced('0xb3d')]:null);_0xa09e80[_0xb03ced('0x179e')](_0xb03ced('0xd14'))?_0x3eabc[_0xb03ced('0xa16')]={'type':'inbound','fields':_0xb03ced('0x104'),'sort':_0xb03ced('0x7e8'),'limit':0xa,'page':0x1}:_0x3eabc[_0xb03ced('0xa16')]={'id':_0xa09e80[_0xb03ced('0x1ef8')]()['id'],'channel':'voice','type':'inbound','fields':_0xb03ced('0x104'),'sort':_0xb03ced('0x7e8'),'limit':0xa,'page':0x1};_0x3eabc[_0xb03ced('0x425')]=_0x59da4c,_0x3eabc[_0xb03ced('0x23cf')]=_0x4a3ed9,_0x3eabc[_0xb03ced('0x284a')]=_0x558348,_0x3eabc[_0xb03ced('0x696')]=_0x6a4c57,_0x3e5eda[_0xb03ced('0x4df')](_0xb03ced('0x149c'),_0x3eabc[_0xb03ced('0x284a')]),_0x3eabc[_0xb03ced('0x134c')]=_0x32f956(function(){},0x3e7);function _0x6a4c57(){var _0x2bba2a=_0xb03ced;_0x32d445()[_0x2bba2a('0xd1e')](_0x3eabc[_0x2bba2a('0x671')],function(_0x2162dc,_0x1ca1b2){var _0x3bb5f1=_0x2bba2a;_0x3eabc[_0x3bb5f1('0x146c')][_0x1ca1b2]&&_0x32d445()[_0x3bb5f1('0x1d8')](_0x2162dc,_0x32d445()[_0x3bb5f1('0xed5')](_0x3eabc[_0x3bb5f1('0x146c')][_0x1ca1b2],_0x2ebea4));});}function _0x558348(_0x2b8101){var _0x36e325=_0xb03ced;_0x3eabc[_0x36e325('0x671')][_0x2b8101['id']]&&_0x32d445()[_0x36e325('0x1d8')](_0x3eabc[_0x36e325('0x671')][_0x2b8101['id']],_0x32d445()[_0x36e325('0xed5')](_0x2b8101,_0x2ebea4));}var _0x57aa94=!![],_0x3e2eeb=0x1;_0x29ec1b['$watch'](_0xb03ced('0x20cb'),function(_0xee5848,_0xc2ae6e){var _0x100f5d=_0xb03ced;_0x57aa94?_0x2f1db3(function(){_0x57aa94=![];}):(!_0xc2ae6e&&(_0x3e2eeb=_0x3eabc[_0x100f5d('0xa16')][_0x100f5d('0xc08')]),_0xee5848!==_0xc2ae6e&&(_0x3eabc[_0x100f5d('0xa16')]['page']=0x1),!_0xee5848&&(_0x3eabc[_0x100f5d('0xa16')][_0x100f5d('0xc08')]=_0x3e2eeb),_0x3eabc[_0x100f5d('0x23cf')]());});function _0x59da4c(_0x32acc4){var _0x35c57b=_0xb03ced;_0x3eabc[_0x35c57b('0x148b')]=_0x32acc4['count'],_0x3eabc[_0x35c57b('0x671')]=_0x32acc4?_0x32d445()[_0x35c57b('0x226f')](_0x32acc4[_0x35c57b('0x16a7')]?_0x32acc4[_0x35c57b('0x16a7')]:[],'id'):{},_0x6a4c57();}function _0x4a3ed9(){var _0x2e6a98=_0xb03ced;_0x3eabc['query'][_0x2e6a98('0xab0')]=(_0x3eabc[_0x2e6a98('0xa16')][_0x2e6a98('0xc08')]-0x1)*_0x3eabc[_0x2e6a98('0xa16')]['limit'],_0xa09e80[_0x2e6a98('0x179e')](_0x2e6a98('0xd14'))?_0x3eabc[_0x2e6a98('0x9c8')]=_0x34c310['voiceQueue'][_0x2e6a98('0x22d5')](_0x3eabc[_0x2e6a98('0xa16')],_0x59da4c)[_0x2e6a98('0xe59')]:(_0x3eabc[_0x2e6a98('0xa16')]['id']=_0x3eabc[_0x2e6a98('0x154f')]['id'],_0x3eabc[_0x2e6a98('0xa16')][_0x2e6a98('0x1e59')]=_0x2e6a98('0x13e1'),_0x3eabc[_0x2e6a98('0x9c8')]=_0x34c310[_0x2e6a98('0x154f')][_0x2e6a98('0x14e6')](_0x3eabc['query'],_0x59da4c)[_0x2e6a98('0xe59')]);}_0x29ec1b[_0xb03ced('0xb2b')]('$destroy',function(){var _0x4a4820=_0xb03ced;_0x3e5eda[_0x4a4820('0x2121')](_0x4a4820('0x149c')),_0x3eabc[_0x4a4820('0x134c')]&&_0x32f956[_0x4a4820('0x2c1')](_0x3eabc[_0x4a4820('0x134c')]);});}const _0x260e80=_0x2c9275,_0x3d89a3=_0x59426a['p']+'src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog-[chunkhash].html',_0x3b9da5=_0x59426a['p']+_0xb635d2('0x27e0');_0x13ecd0[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x1728'),_0xb635d2('0x1c1a'),_0xb635d2('0x671'),_0xb635d2('0x146c'),_0xb635d2('0xffc'),'socket',_0xb635d2('0xf65'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x13ecd0(_0x4bd4d7,_0x332713,_0x49d166,_0xa23f62,_0x452bcc,_0x5e2f62,_0x1c3e18,_0x2f02c3,_0x152ea7,_0xc97c49,_0x3779c2,_0xde75de,_0x1d4ff3,_0x379ec9){var _0x4ea655=_0xb635d2,_0x55a68d=this,_0x2ffb3f=[_0x4ea655('0x462'),'available',_0x4ea655('0x183a'),_0x4ea655('0xe75'),_0x4ea655('0x1700'),_0x4ea655('0x194a'),_0x4ea655('0x27e8'),_0x4ea655('0x8c9'),_0x4ea655('0x1a23'),'Trunk','paused'];_0x55a68d[_0x4ea655('0x15a5')]=_0x379ec9[_0x4ea655('0x1ef8')](),_0x55a68d[_0x4ea655('0x148b')]=_0x1c3e18['count']?_0x1c3e18[_0x4ea655('0x148b')]:0x0,_0x55a68d[_0x4ea655('0x671')]=_0x1c3e18?_0x32d445()[_0x4ea655('0x226f')](_0x1c3e18['rows']?_0x1c3e18[_0x4ea655('0x16a7')]:[],'id'):{},_0x55a68d[_0x4ea655('0x146c')]=_0x2f02c3?_0x32d445()[_0x4ea655('0x226f')](_0x2f02c3[_0x4ea655('0x16a7')]?_0x2f02c3[_0x4ea655('0x16a7')]:[],'id'):{},_0x55a68d[_0x4ea655('0x154f')]=_0xde75de,_0x55a68d[_0x4ea655('0xb59')]=_0x1d4ff3&&_0x1d4ff3[_0x4ea655('0x148b')]==0x1?_0x1d4ff3[_0x4ea655('0x16a7')][0x0]:null,_0x55a68d[_0x4ea655('0xb3d')]=_0x379ec9['parseCrudPermissions'](_0x55a68d[_0x4ea655('0xb59')]?_0x55a68d[_0x4ea655('0xb59')][_0x4ea655('0xb3d')]:null);_0x379ec9['hasRole']('admin')?_0x55a68d[_0x4ea655('0xa16')]={'type':_0x4ea655('0x1a7a'),'sort':_0x4ea655('0x7e8'),'limit':0xa,'page':0x1}:_0x55a68d['query']={'id':_0x55a68d[_0x4ea655('0x15a5')]['id'],'channel':_0x4ea655('0xe74'),'type':'inbound','sort':_0x4ea655('0x7e8'),'limit':0xa,'page':0x1};_0x55a68d[_0x4ea655('0x425')]=_0x5e1d9e,_0x55a68d['getQueues']=_0x1f9eef,_0x55a68d[_0x4ea655('0x1251')]=_0x2ef106,_0x55a68d[_0x4ea655('0x45a')]=_0x172c20,_0x55a68d[_0x4ea655('0xabf')]=_0x8c722f,_0x55a68d[_0x4ea655('0x284a')]=_0x5306a2,_0x55a68d[_0x4ea655('0x69e')]=_0x4b6dc5,_0x55a68d[_0x4ea655('0x1707')]=_0x41cd15,_0x55a68d[_0x4ea655('0x1baf')]=_0x4d7c3f,_0x55a68d['$onInit']=_0x126c0c,_0x55a68d[_0x4ea655('0x1b03')]=[],_0x32d445()[_0x4ea655('0xd1e')](_0x55a68d['queues'],function(_0x556711){var _0x1a03e6=_0x4ea655;_0x55a68d[_0x1a03e6('0x1b03')][_0x1a03e6('0xb76')](_0x556711['id']);}),_0xc97c49[_0x4ea655('0x4df')](_0x4ea655('0x149c'),_0x55a68d['onSave']),_0x55a68d[_0x4ea655('0x134c')]=_0x5e2f62(function(){},0x3e7),_0xc97c49['on']('user:update',_0x55a68d[_0x4ea655('0x69e')]),_0xc97c49['on'](_0x4ea655('0x1583'),_0x55a68d[_0x4ea655('0x1baf')]),_0xc97c49['on'](_0x4ea655('0x2161'),_0x55a68d[_0x4ea655('0x1707')]);function _0x126c0c(){var _0x5bda77=_0x4ea655,_0x668db5=[];return _0x32d445()[_0x5bda77('0xd1e')](_0x55a68d[_0x5bda77('0x671')],function(_0xf373c0,_0x4e3fad){var _0x58e6a8=_0x5bda77;_0xf373c0[_0x58e6a8('0x1cf8')]=0x0,_0xf373c0[_0x58e6a8('0x120f')]=0x0,_0x55a68d[_0x58e6a8('0x671')][_0x4e3fad][_0x58e6a8('0x29b')]={},_0x668db5[_0x58e6a8('0xb76')](_0x152ea7[_0x58e6a8('0x25d5')][_0x58e6a8('0xb5d')]({'id':_0x4e3fad})[_0x58e6a8('0xe59')]),_0x55a68d[_0x58e6a8('0x146c')][_0x4e3fad]&&_0x32d445()[_0x58e6a8('0x1d8')](_0xf373c0,_0x32d445()['pick'](_0x55a68d[_0x58e6a8('0x146c')][_0x4e3fad],_0x2ffb3f));}),_0xa23f62[_0x5bda77('0xf0e')](_0x668db5)['then'](function(_0x183f5d){var _0x11f674=_0x5bda77;for(var _0x254a34=0x0;_0x254a34<_0x183f5d['length'];_0x254a34+=0x1){for(var _0x18bc0c=0x0;_0x18bc0c<_0x183f5d[_0x254a34][_0x11f674('0x16a7')]['length'];_0x18bc0c++){_0x183f5d[_0x254a34][_0x11f674('0x16a7')][_0x18bc0c][_0x11f674('0x1cf8')]&&_0x55a68d[_0x11f674('0x671')][_0x183f5d[_0x254a34][_0x11f674('0x16a7')][_0x18bc0c][_0x11f674('0x1967')]][_0x11f674('0x1cf8')]++,_0x55a68d['queues'][_0x183f5d[_0x254a34][_0x11f674('0x16a7')][_0x18bc0c][_0x11f674('0x1967')]][_0x11f674('0x120f')]++,_0x55a68d[_0x11f674('0x671')][_0x183f5d[_0x254a34][_0x11f674('0x16a7')][_0x18bc0c]['VoiceQueueId']][_0x11f674('0x29b')][_0x183f5d[_0x254a34][_0x11f674('0x16a7')][_0x18bc0c]['UserId']]=_0x183f5d[_0x254a34][_0x11f674('0x16a7')][_0x18bc0c]['VoiceQueueId'];}}})[_0x5bda77('0x223b')](function(_0x70f0cd){var _0xf70ad=_0x5bda77;console[_0xf70ad('0x8c8')](_0x70f0cd);});}function _0x5306a2(_0x51bc7f){var _0x378f5d=_0x4ea655;_0x55a68d[_0x378f5d('0x671')][_0x51bc7f['id']]&&_0x32d445()[_0x378f5d('0x1d8')](_0x55a68d['queues'][_0x51bc7f['id']],_0x32d445()[_0x378f5d('0xed5')](_0x51bc7f,_0x2ffb3f));}function _0x4b6dc5(_0x449305){var _0x4aa163=_0x4ea655;console['log'](_0x4aa163('0x69e'),_0x449305);if(_0x449305[_0x4aa163('0x1b8d')])_0x32d445()[_0x4aa163('0xd1e')](_0x55a68d['queues'],function(_0xaccfb6){var _0x4de53a=_0x4aa163;_0xaccfb6[_0x4de53a('0x29b')][_0x449305['id']]&&(_0xaccfb6[_0x4de53a('0x1cf8')]+=0x1,console[_0x4de53a('0x1fe9')](_0x4de53a('0x1c98')));});else!_0x449305['voicePause']&&_0x32d445()[_0x4aa163('0xd1e')](_0x55a68d['queues'],function(_0x15d1eb){var _0x205386=_0x4aa163;_0x15d1eb['agents'][_0x449305['id']]&&(_0x15d1eb[_0x205386('0x1cf8')]>0x0&&(_0x15d1eb[_0x205386('0x1cf8')]-=0x1,console['log'](_0x205386('0x2471'))));});}function _0x41cd15(_0x2ed140){var _0x29f14a=_0x4ea655;console['log'](_0x29f14a('0xb90'),_0x2ed140),_0x55a68d['queues'][_0x2ed140[_0x29f14a('0x1967')]]&&(_0x55a68d[_0x29f14a('0x671')][_0x2ed140[_0x29f14a('0x1967')]][_0x29f14a('0x120f')]+=0x1,_0x55a68d[_0x29f14a('0x671')][_0x2ed140[_0x29f14a('0x1967')]]['agents'][_0x2ed140[_0x29f14a('0x43d')]]=_0x2ed140[_0x29f14a('0x1967')]);}function _0x4d7c3f(_0x22f8f8){var _0x37cf39=_0x4ea655;console['log']('onLogout',_0x22f8f8),_0x55a68d[_0x37cf39('0x671')][_0x22f8f8['VoiceQueueId']]&&_0x55a68d[_0x37cf39('0x671')][_0x22f8f8[_0x37cf39('0x1967')]][_0x37cf39('0x120f')]>0x0&&(_0x55a68d[_0x37cf39('0x671')][_0x22f8f8[_0x37cf39('0x1967')]][_0x37cf39('0x120f')]-=0x1,delete _0x55a68d[_0x37cf39('0x671')][_0x22f8f8[_0x37cf39('0x1967')]]['agents'][_0x22f8f8[_0x37cf39('0x43d')]]);}var _0x1f4986=!![],_0x538e88=0x1;_0x4bd4d7['$watch'](_0x4ea655('0x20cb'),function(_0x3f2eed,_0x5cb16c){var _0x38d0d4=_0x4ea655;_0x1f4986?_0x332713(function(){_0x1f4986=![];}):(!_0x5cb16c&&(_0x538e88=_0x55a68d[_0x38d0d4('0xa16')][_0x38d0d4('0xc08')]),_0x3f2eed!==_0x5cb16c&&(_0x55a68d[_0x38d0d4('0xa16')][_0x38d0d4('0xc08')]=0x1),!_0x3f2eed&&(_0x55a68d[_0x38d0d4('0xa16')][_0x38d0d4('0xc08')]=_0x538e88),_0x55a68d[_0x38d0d4('0x23cf')]());});function _0x5e1d9e(_0x5a1122){var _0x491ce4=_0x4ea655;_0x55a68d[_0x491ce4('0x148b')]=_0x5a1122['count'],_0x55a68d['queues']=_0x5a1122?_0x32d445()[_0x491ce4('0x226f')](_0x5a1122[_0x491ce4('0x16a7')]?_0x5a1122[_0x491ce4('0x16a7')]:[],'id'):{};if(_0x5a1122[_0x491ce4('0x16a7')]){_0x55a68d[_0x491ce4('0x1b03')]=[];for(var _0x1d94e5=0x0;_0x1d94e5<_0x5a1122[_0x491ce4('0x16a7')][_0x491ce4('0x25ae')];_0x1d94e5++){_0x55a68d[_0x491ce4('0x1b03')]['push'](_0x5a1122['rows'][_0x1d94e5]['id']);}}_0x126c0c();}function _0x1f9eef(){var _0x21deca=_0x4ea655;_0x55a68d[_0x21deca('0xa16')][_0x21deca('0xab0')]=(_0x55a68d[_0x21deca('0xa16')][_0x21deca('0xc08')]-0x1)*_0x55a68d[_0x21deca('0xa16')][_0x21deca('0x1b6d')],_0x379ec9[_0x21deca('0x179e')](_0x21deca('0xd14'))?_0x55a68d['promise']=_0x152ea7[_0x21deca('0x25d5')]['get'](_0x55a68d[_0x21deca('0xa16')],_0x5e1d9e)['$promise']:(_0x55a68d[_0x21deca('0xa16')]['id']=_0x55a68d[_0x21deca('0x154f')]['id'],_0x55a68d[_0x21deca('0xa16')]['section']=_0x21deca('0x13e1'),_0x55a68d[_0x21deca('0x9c8')]=_0x152ea7[_0x21deca('0x154f')]['getResources'](_0x55a68d['query'],_0x5e1d9e)[_0x21deca('0xe59')]);}function _0x2ef106(_0x31d71b,_0x170298){var _0x198037=_0x4ea655;_0x49d166[_0x198037('0x26b2')]({'controller':'CreateOrEditVoiceQueueDialogController','controllerAs':'vm','templateUrl':_0x3d89a3,'parent':angular[_0x198037('0x24a1')](_0x452bcc[_0x198037('0x19b2')]),'targetEvent':_0x31d71b,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x170298,'voiceQueues':_0x32d445()['values'](_0x55a68d[_0x198037('0x671')]),'license':null,'setting':null,'crudPermissions':_0x55a68d['crudPermissions']}});}function _0x172c20(_0x64eeb0,_0x2cfec0){var _0x1bdcae=_0x4ea655;_0x49d166[_0x1bdcae('0x26b2')]({'controller':_0x1bdcae('0x933'),'controllerAs':'vm','templateUrl':_0x3b9da5,'parent':angular[_0x1bdcae('0x24a1')](_0x452bcc[_0x1bdcae('0x19b2')]),'targetEvent':_0x64eeb0,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x2cfec0,'voiceQueues':_0x55a68d['queues']?_0x55a68d[_0x1bdcae('0x671')][_0x1bdcae('0x16a7')]:[],'realtime':!![],'crudPermissions':_0x55a68d['crudPermissions']}});}function _0x8c722f(_0x329e82){var _0x37ad16=_0x4ea655;return _0x152ea7[_0x37ad16('0x25d5')]['update'](_0x329e82)[_0x37ad16('0xe59')][_0x37ad16('0xe19')](function(){var _0x456c10=_0x37ad16;_0x3779c2['success']({'title':'Queue\x20properly\x20updated!','msg':_0x329e82[_0x456c10('0x2623')]?_0x329e82[_0x456c10('0x2623')]+'\x20has\x20been\x20updated!':''});})[_0x37ad16('0x223b')](function(_0x3d4a02){var _0x566688=_0x37ad16;_0x3779c2[_0x566688('0x8c8')]({'title':'Error\x20creating\x20queue!','msg':_0x3d4a02[_0x566688('0x27e8')]});});}_0x4bd4d7['$on'](_0x4ea655('0x5cd'),function(){var _0x2a65a8=_0x4ea655;_0xc97c49['removeAllListeners'](_0x2a65a8('0x149c')),_0x55a68d['interval']&&_0x5e2f62[_0x2a65a8('0x2c1')](_0x55a68d[_0x2a65a8('0x134c')]),_0xc97c49[_0x2a65a8('0x2121')](_0x2a65a8('0x1ce3')),_0xc97c49[_0x2a65a8('0x2121')](_0x2a65a8('0x1583')),_0xc97c49[_0x2a65a8('0x2121')](_0x2a65a8('0x2161'));});}const _0x30c55e=_0x13ecd0;function _0x89b894(){var _0x2b73c1=_0xb635d2;return{'status':{'registered':_0x2b73c1('0xcf5'),'unregistered':_0x2b73c1('0x10ea'),'lagged':_0x2b73c1('0x10ea'),'reachable':_0x2b73c1('0xcf5'),'unreachable':_0x2b73c1('0x10ea'),'unknown':_0x2b73c1('0x1fe7')},'state':{'unknown':_0x2b73c1('0x2740'),'not_inuse':_0x2b73c1('0x11dd'),'inuse':_0x2b73c1('0x15af'),'busy':_0x2b73c1('0x441'),'invalid':_0x2b73c1('0x2740'),'unavailable':_0x2b73c1('0x2740'),'ringing':_0x2b73c1('0x84d'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x2b73c1('0x90f')},'channelStatus':{'ring':_0x2b73c1('0x84d'),'up':_0x2b73c1('0x2778'),'hangup':_0x2b73c1('0x2432')},'channelStatusOut':{'ring':_0x2b73c1('0x24dc'),'up':_0x2b73c1('0x2778'),'hangup':_0x2b73c1('0x2432')}};}const _0x16373a=_0x89b894;_0x18f7a2['$inject']=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x46d')];function _0x18f7a2(_0x6aff80,_0x478435,_0x34d5d0){var _0x222000=_0xb635d2,_0x7af1a2=this;_0x34d5d0[_0x222000('0x83c')](),_0x34d5d0[_0x222000('0x19d9')](),_0x7af1a2['selectedTab']=0x0;switch(_0x478435[_0x222000('0x1a60')][_0x222000('0x2623')]){case'app.voice.realtime.agents':_0x7af1a2['selectedTab']=0x0;break;case _0x222000('0xeab'):_0x7af1a2[_0x222000('0xc7b')]=0x1;break;case _0x222000('0x235e'):_0x7af1a2[_0x222000('0xc7b')]=0x2;break;case _0x222000('0x69'):_0x7af1a2[_0x222000('0xc7b')]=0x3;break;case _0x222000('0xb26'):_0x7af1a2[_0x222000('0xc7b')]=0x4;break;case _0x222000('0x1b77'):_0x7af1a2[_0x222000('0xc7b')]=0x5;break;case _0x222000('0x1932'):_0x7af1a2[_0x222000('0xc7b')]=0x6;break;case _0x222000('0x178f'):_0x7af1a2[_0x222000('0xc7b')]=0x7;break;default:_0x7af1a2['selectedTab']=0x0,_0x478435['go'](_0x222000('0xda6'));}_0x6aff80[_0x222000('0x107')]('vm.selectedTab',function(_0x3d2dc0,_0x3c8ec3){var _0x4b269f=_0x222000;if(_0x3d2dc0!==_0x3c8ec3)switch(_0x3d2dc0){case 0x0:_0x478435['go']('app.voice.realtime.agents');break;case 0x1:_0x478435['go'](_0x4b269f('0xeab'));break;case 0x2:_0x478435['go'](_0x4b269f('0x235e'));break;case 0x3:_0x478435['go']('app.voice.realtime.queues');break;case 0x4:_0x478435['go'](_0x4b269f('0xb26'));break;case 0x5:_0x478435['go'](_0x4b269f('0x1b77'));break;case 0x6:_0x478435['go'](_0x4b269f('0x1932'));break;case 0x7:_0x478435['go']('app.voice.realtime.outbound_calls');break;default:_0x478435['go']('app.voice.realtime.agents');}});}const _0x30a34c=_0x18f7a2;_0x536d5f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'telephones',_0xb635d2('0x1d77'),'api',_0xb635d2('0x46d'),'helperClasses','userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x536d5f(_0x3ab0bc,_0x46db9b,_0x55b9b1,_0x10ac0d,_0x502917,_0x267efe,_0x2b0b90,_0x5d4076,_0x52e980,_0x117679,_0x5629bc){var _0x1c5e61=_0xb635d2,_0x5d4378=this,_0x40b19a=[_0x1c5e61('0xe11'),'internal',_0x1c5e61('0x1d72'),_0x1c5e61('0x2833')];_0x5d4378['count']=_0x10ac0d['count'],_0x5d4378[_0x1c5e61('0x20fc')]=[_0x1c5e61('0xe11'),_0x1c5e61('0x1b66'),_0x1c5e61('0x1d72'),_0x1c5e61('0x2833'),_0x1c5e61('0xe1f')],_0x5d4378[_0x1c5e61('0x2059')]=_0x10ac0d?_0x32d445()[_0x1c5e61('0x226f')](_0x10ac0d['rows']?_0x10ac0d[_0x1c5e61('0x16a7')]:[],'id'):{},_0x5d4378[_0x1c5e61('0x1d77')]=_0x502917?_0x32d445()['keyBy'](_0x502917[_0x1c5e61('0x16a7')]?_0x502917['rows']:[],'id'):{},_0x5d4378['userProfile']=_0x52e980,_0x5d4378['userProfileSection']=_0x117679&&_0x117679['count']==0x1?_0x117679[_0x1c5e61('0x16a7')][0x0]:null,_0x5d4378['crudPermissions']=_0x5629bc[_0x1c5e61('0xd31')](_0x5d4378[_0x1c5e61('0xb59')]?_0x5d4378[_0x1c5e61('0xb59')]['crudPermissions']:null),_0x5d4378['query']={'fields':_0x1c5e61('0x256c'),'role':'telephone','sort':'-updatedAt','limit':0xa,'page':0x1},_0x5d4378['statusClass']=_0x5d4076[_0x1c5e61('0x2833')],_0x5d4378[_0x1c5e61('0xc63')]=_0x5d4076[_0x1c5e61('0x1d72')],_0x5d4378['success']=_0x2b55ea,_0x5d4378[_0x1c5e61('0x696')]=_0x55bea8,_0x5d4378[_0x1c5e61('0x80b')]=_0x135dc9,_0x5d4378[_0x1c5e61('0x27fc')]=_0x1ca9a0,_0x5d4378['onSave']=_0x5ef723,_0x2b0b90['on']('telephone:save',_0x5d4378['onSave']);function _0x55bea8(){var _0x47ea6e=_0x1c5e61;_0x32d445()[_0x47ea6e('0xd1e')](_0x5d4378[_0x47ea6e('0x2059')],function(_0x949b5d,_0x4c297e){var _0x53d58c=_0x47ea6e;_0x5d4378['rpcTelephones'][_0x4c297e]&&_0x32d445()[_0x53d58c('0x1d8')](_0x949b5d,_0x32d445()[_0x53d58c('0xed5')](_0x5d4378[_0x53d58c('0x1d77')][_0x4c297e],_0x40b19a));});}function _0x135dc9(_0x2ed819){var _0x3d65cb=_0x1c5e61;_0x55b9b1[_0x3d65cb('0x26b2')](_0x55b9b1[_0x3d65cb('0xbdc')]()['clickOutsideToClose'](!![])['title'](_0x3d65cb('0x7c0'))[_0x3d65cb('0x221c')](_0x3d65cb('0x1abb'))['ok']('Ok')[_0x3d65cb('0x1345')](_0x2ed819));}function _0x5ef723(_0x3fabda){var _0x63c032=_0x1c5e61;_0x5d4378['telephones'][_0x3fabda['id']]&&_0x32d445()[_0x63c032('0x1d8')](_0x5d4378[_0x63c032('0x2059')][_0x3fabda['id']],_0x32d445()[_0x63c032('0xed5')](_0x3fabda,_0x40b19a));}var _0x2f4f3b=!![],_0x23dd54=0x1;_0x3ab0bc['$watch'](_0x1c5e61('0x20cb'),function(_0x1a630d,_0x273bc9){var _0x392109=_0x1c5e61;_0x2f4f3b?_0x46db9b(function(){_0x2f4f3b=![];}):(!_0x273bc9&&(_0x23dd54=_0x5d4378[_0x392109('0xa16')][_0x392109('0xc08')]),_0x1a630d!==_0x273bc9&&(_0x5d4378['query'][_0x392109('0xc08')]=0x1),!_0x1a630d&&(_0x5d4378[_0x392109('0xa16')][_0x392109('0xc08')]=_0x23dd54),_0x5d4378[_0x392109('0x27fc')]());});function _0x2b55ea(_0xba77c3){var _0x1ec0d1=_0x1c5e61;_0x5d4378[_0x1ec0d1('0x2059')]=_0xba77c3?_0x32d445()['keyBy'](_0xba77c3[_0x1ec0d1('0x16a7')]?_0xba77c3['rows']:[],'id'):{},_0x55bea8();}function _0x1ca9a0(){var _0x5d8429=_0x1c5e61;_0x5d4378[_0x5d8429('0xa16')][_0x5d8429('0xab0')]=(_0x5d4378[_0x5d8429('0xa16')]['page']-0x1)*_0x5d4378[_0x5d8429('0xa16')][_0x5d8429('0x1b6d')],_0x5629bc[_0x5d8429('0x179e')]('admin')?_0x5d4378[_0x5d8429('0x9c8')]=_0x267efe[_0x5d8429('0x10c6')][_0x5d8429('0x22d5')](_0x5d4378[_0x5d8429('0xa16')],_0x2b55ea)[_0x5d8429('0xe59')]:(_0x5d4378['query']['id']=_0x5d4378['userProfile']['id'],_0x5d4378[_0x5d8429('0xa16')]['section']=_0x5d8429('0x1f63'),_0x5d4378[_0x5d8429('0x9c8')]=_0x267efe['userProfile']['getResources'](_0x5d4378['query'],_0x2b55ea)[_0x5d8429('0xe59')]);}_0x3ab0bc['$on'](_0x1c5e61('0x5cd'),function(){var _0x568fcb=_0x1c5e61;_0x2b0b90[_0x568fcb('0x2121')](_0x568fcb('0x1fdc'));});}const _0x1f5725=_0x536d5f;_0x9c3925[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'trunks',_0xb635d2('0x9b'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0x20d'),_0xb635d2('0xeb6'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x9c3925(_0x219e5f,_0xa14d7a,_0x4b9d51,_0x2a9b73,_0x433a3a,_0x394985,_0xd73b84,_0xc26aed,_0x5604de,_0x19095e,_0x1d43fb,_0xdb138d){var _0xab611b=_0xb635d2,_0xa8a968=this,_0x1fdfd3=[_0xab611b('0x2833'),_0xab611b('0x1802'),_0xab611b('0x980'),'host',_0xab611b('0x11dc'),_0xab611b('0x1b66'),_0xab611b('0x1d72'),'status'];_0xa8a968[_0xab611b('0x15a5')]=_0xdb138d[_0xab611b('0x1ef8')](),_0xa8a968['count']=_0x2a9b73[_0xab611b('0x148b')],_0xa8a968[_0xab611b('0x155e')]=_0x2a9b73?_0x2a9b73[_0xab611b('0x16a7')]:[],_0xa8a968[_0xab611b('0x9b')]=_0x433a3a?_0x433a3a[_0xab611b('0x16a7')]?_0x433a3a[_0xab611b('0x16a7')]:[]:[],_0xa8a968['query']={'fields':_0xab611b('0x104'),'active':!![],'sort':_0xab611b('0x7e8'),'limit':0xa,'page':0x1},_0xa8a968[_0xab611b('0xa2b')]=_0xc26aed[_0xab611b('0x2833')],_0xa8a968[_0xab611b('0xc63')]=_0xc26aed[_0xab611b('0x1d72')],_0xa8a968['userProfile']=_0x19095e,_0xa8a968[_0xab611b('0xb59')]=_0x1d43fb&&_0x1d43fb[_0xab611b('0x148b')]==0x1?_0x1d43fb[_0xab611b('0x16a7')][0x0]:null,_0xa8a968['crudPermissions']=_0xdb138d[_0xab611b('0xd31')](_0xa8a968[_0xab611b('0xb59')]?_0xa8a968['userProfileSection']['crudPermissions']:null),_0xa8a968[_0xab611b('0x425')]=_0x435892,_0xa8a968['$onInit']=_0xc0848c,_0xa8a968[_0xab611b('0x80b')]=_0x4fde72,_0xa8a968['getTrunks']=_0x37fcaf,_0xa8a968[_0xab611b('0x15e4')]=_0x3dd94f,_0xa8a968[_0xab611b('0x284a')]=_0x154dc5,_0xd73b84['on'](_0xab611b('0x16a6'),_0xa8a968[_0xab611b('0x284a')]);function _0xc0848c(){var _0x14b746=_0xab611b,_0x3f068d;for(var _0x266f40=0x0;_0x266f40<_0xa8a968[_0x14b746('0x155e')][_0x14b746('0x25ae')];_0x266f40+=0x1){_0x3f068d=_0x32d445()[_0x14b746('0x8d3')](_0xa8a968[_0x14b746('0x9b')],['id',_0xa8a968[_0x14b746('0x155e')][_0x266f40]['id']]),_0x3f068d>=0x0&&_0x32d445()['merge'](_0xa8a968[_0x14b746('0x155e')][_0x266f40],_0x32d445()[_0x14b746('0xed5')](_0xa8a968['rpcTrunks'][_0x3f068d],_0x1fdfd3));}}function _0x4fde72(_0xd7c6d0){var _0x50cdef=_0xab611b;_0x4b9d51['show'](_0x4b9d51[_0x50cdef('0xbdc')]()[_0x50cdef('0x26d6')](!![])[_0x50cdef('0x13e4')](_0x50cdef('0x7c0'))[_0x50cdef('0x221c')](_0x50cdef('0x1abb'))['ok']('Ok')[_0x50cdef('0x1345')](_0xd7c6d0));}function _0x43357b(_0x10f119,_0x1cfd01,_0x1aa9a5){var _0x2cf29b=_0xab611b;_0x1cfd01>=0x0&&_0x32d445()[_0x2cf29b('0x1d8')](_0x10f119[_0x1cfd01],_0x32d445()[_0x2cf29b('0xed5')](_0x1aa9a5,_0x1fdfd3));}function _0x154dc5(_0x2304a1){var _0x3b756a=_0xab611b,_0x534f58=_0x32d445()['findIndex'](_0xa8a968[_0x3b756a('0x155e')],['id',_0x2304a1['id']]),_0x4c3e42=_0x32d445()[_0x3b756a('0x8d3')](_0xa8a968[_0x3b756a('0x9b')],['id',_0x2304a1['id']]);_0x43357b(_0xa8a968[_0x3b756a('0x155e')],_0x534f58,_0x2304a1),_0x43357b(_0xa8a968['rpcTrunks'],_0x4c3e42,_0x2304a1);}var _0x356d64=!![],_0x5b6763=0x1;_0x219e5f[_0xab611b('0x107')](_0xab611b('0x20cb'),function(_0x40e7bf,_0x26315b){var _0x2df766=_0xab611b;_0x356d64?_0xa14d7a(function(){_0x356d64=![];}):(!_0x26315b&&(_0x5b6763=_0xa8a968[_0x2df766('0xa16')]['page']),_0x40e7bf!==_0x26315b&&(_0xa8a968[_0x2df766('0xa16')]['page']=0x1),!_0x40e7bf&&(_0xa8a968['query'][_0x2df766('0xc08')]=_0x5b6763),_0xa8a968[_0x2df766('0x1c27')]());});function _0x435892(_0x257c8b){var _0x55bf65=_0xab611b;_0xa8a968[_0x55bf65('0x148b')]=_0x257c8b[_0x55bf65('0x148b')],_0xa8a968[_0x55bf65('0x155e')]=_0x257c8b?_0x257c8b['rows']?_0x257c8b['rows']:[]:[],_0xc0848c();}function _0x37fcaf(){var _0x38de6a=_0xab611b;_0xa8a968[_0x38de6a('0xa16')][_0x38de6a('0xab0')]=(_0xa8a968[_0x38de6a('0xa16')]['page']-0x1)*_0xa8a968['query'][_0x38de6a('0x1b6d')],_0xdb138d[_0x38de6a('0x179e')](_0x38de6a('0xd14'))?_0xa8a968['promise']=_0x394985[_0x38de6a('0x1397')][_0x38de6a('0x22d5')](_0xa8a968[_0x38de6a('0xa16')],_0x435892)[_0x38de6a('0xe59')]:(_0xa8a968['query']['id']=_0xa8a968[_0x38de6a('0x154f')]['id'],_0xa8a968['query'][_0x38de6a('0x1e59')]='Trunks',_0xa8a968[_0x38de6a('0x9c8')]=_0x394985[_0x38de6a('0x154f')][_0x38de6a('0x14e6')](_0xa8a968[_0x38de6a('0xa16')],_0x435892)[_0x38de6a('0xe59')]);}_0x219e5f['$on'](_0xab611b('0x5cd'),function(){var _0x1dcbcd=_0xab611b;_0xd73b84[_0x1dcbcd('0x2121')](_0x1dcbcd('0x16a6'));});function _0x3dd94f(_0xf56151,_0xc0350e){_0x5604de['go']('app.tools.trunks.edit',{'id':_0xc0350e['id']});}}const _0x2448f0=_0x9c3925,_0x5af8dc=_0x59426a['p']+_0xb635d2('0x1aa5'),_0x22a55d=_0x59426a['p']+'src/js/modules/main/apps/voice/views/realtime/agents/view.html/view-[chunkhash].html',_0x4e8d32=_0x59426a['p']+_0xb635d2('0x12f5'),_0x3745ef=_0x59426a['p']+_0xb635d2('0x1ec8'),_0x2b1786=_0x59426a['p']+'src/js/modules/main/apps/voice/views/realtime/queues/view.html/view-[chunkhash].html',_0x56df2f=_0x59426a['p']+_0xb635d2('0x4fc'),_0x1e4ed8=_0x59426a['p']+_0xb635d2('0x1c1f'),_0xf4b0e7=_0x59426a['p']+'src/js/modules/main/apps/voice/views/realtime/queue_params/view.html/view-[chunkhash].html',_0x5f19ed=_0x59426a['p']+_0xb635d2('0x16d8');_0x32c05f['$inject']=[_0xb635d2('0x1a6d')];function _0x32c05f(_0x173ab2){var _0x53f484=_0xb635d2;_0x173ab2[_0x53f484('0x1d72')](_0x53f484('0x23d8'),{'url':_0x53f484('0x18ff'),'views':{'content@app':{'templateUrl':_0x5af8dc,'controller':_0x53f484('0x16e0')}},'resolve':{'userProfile':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x16d46f(_0x59cd45,_0x490fb5){var _0x166610=_0x53f484;return _0x490fb5[_0x166610('0x179e')](_0x166610('0xd14'))?null:_0x59cd45[_0x166610('0xcd6')]('userProfile@get',{'fields':_0x166610('0x1b71'),'id':_0x490fb5['getCurrentUser']()[_0x166610('0x1d04')]});}],'userProfileSection':['apiResolver',_0x53f484('0x2730'),function _0x47fff8(_0x14fb10,_0x3eb6cd){var _0x5e539d=_0x53f484;return _0x3eb6cd[_0x5e539d('0x179e')](_0x5e539d('0xd14'))?null:_0x14fb10[_0x5e539d('0xcd6')](_0x5e539d('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3eb6cd['getCurrentUser']()['userProfileId'],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})[_0x53f484('0x1d72')](_0x53f484('0xda6'),{'url':_0x53f484('0x11db'),'controller':_0x53f484('0x1eba'),'templateUrl':_0x22a55d,'resolve':{'pauses':[_0x53f484('0x292'),function _0x3af787(_0x5ed061){var _0x323d35=_0x53f484;return _0x5ed061[_0x323d35('0xcd6')]('pause@get',{'nolimit':!![]});}],'agents':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x3cbc38(_0x47e4b1,_0x256db4){var _0x39cc85=_0x53f484;return _0x256db4[_0x39cc85('0x179e')](_0x39cc85('0xd14'))?_0x47e4b1[_0x39cc85('0xcd6')]('user@get',{'fields':_0x39cc85('0x11bb'),'role':_0x39cc85('0x108'),'sort':_0x39cc85('0xe11'),'nolimit':!![]}):_0x47e4b1[_0x39cc85('0xcd6')]('userProfile@getResources',{'id':_0x256db4[_0x39cc85('0x1ef8')]()[_0x39cc85('0x1d04')],'section':'Agents','fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':_0x39cc85('0x108'),'sort':'fullname','nolimit':!![]});}],'userProfile':['apiResolver',_0x53f484('0x2730'),function _0x477871(_0x437332,_0x3e051d){var _0xe7add8=_0x53f484;return _0x3e051d[_0xe7add8('0x179e')](_0xe7add8('0xd14'))?null:_0x437332[_0xe7add8('0xcd6')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x3e051d['getCurrentUser']()[_0xe7add8('0x1d04')]});}],'userProfileSection':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x1003e0(_0x2fd558,_0x573e9d){var _0x4fcadf=_0x53f484;return _0x573e9d[_0x4fcadf('0x179e')](_0x4fcadf('0xd14'))?null:_0x2fd558[_0x4fcadf('0xcd6')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x573e9d['getCurrentUser']()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x53f484('0x292'),function _0x26c993(_0x264e82){var _0x6ce272=_0x53f484;return _0x264e82[_0x6ce272('0xcd6')](_0x6ce272('0x1fdb'));}]},'authenticate':!![],'permissionId':0x19b})[_0x53f484('0x1d72')](_0x53f484('0xeab'),{'url':_0x53f484('0x1e8c'),'controller':_0x53f484('0x1dff'),'templateUrl':_0x4e8d32,'resolve':{'telephones':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x357ddc(_0x32e285,_0x3aa0ac){var _0x117e1e=_0x53f484;return _0x3aa0ac[_0x117e1e('0x179e')](_0x117e1e('0xd14'))?_0x32e285[_0x117e1e('0xcd6')](_0x117e1e('0x24a9'),{'fields':_0x117e1e('0x1827'),'role':_0x117e1e('0x1e7c'),'sort':_0x117e1e('0x7e8'),'limit':0xa,'offset':0x0}):_0x32e285['resolve'](_0x117e1e('0x197d'),{'id':_0x3aa0ac[_0x117e1e('0x1ef8')]()[_0x117e1e('0x1d04')],'section':_0x117e1e('0x1f63'),'fields':_0x117e1e('0x1827'),'role':_0x117e1e('0x1e7c'),'sort':_0x117e1e('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x3c5a7d(_0x55e76d,_0x50aef1){var _0x43afd0=_0x53f484;return _0x50aef1[_0x43afd0('0x179e')](_0x43afd0('0xd14'))?null:_0x55e76d['resolve'](_0x43afd0('0x455'),{'fields':_0x43afd0('0x1b71'),'id':_0x50aef1[_0x43afd0('0x1ef8')]()[_0x43afd0('0x1d04')]});}],'userProfileSection':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x17c318(_0x3146f2,_0x33a012){var _0x30ad7f=_0x53f484;return _0x33a012[_0x30ad7f('0x179e')](_0x30ad7f('0xd14'))?null:_0x3146f2['resolve'](_0x30ad7f('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x33a012['getCurrentUser']()['userProfileId'],'sectionId':0xcb});}],'rpcTelephones':['apiResolver',function _0x20952e(_0x2a6624){var _0x3ea240=_0x53f484;return _0x2a6624[_0x3ea240('0xcd6')](_0x3ea240('0x512'));}]},'authenticate':!![],'permissionId':0x19b})[_0x53f484('0x1d72')](_0x53f484('0x235e'),{'url':_0x53f484('0x80a'),'controller':_0x53f484('0x260b'),'templateUrl':_0x3745ef,'resolve':{'trunks':[_0x53f484('0x292'),'Auth',function _0xee869c(_0x1627a8,_0x47821e){var _0x24330d=_0x53f484;return _0x47821e[_0x24330d('0x179e')](_0x24330d('0xd14'))?_0x1627a8[_0x24330d('0xcd6')]('trunk@get',{'fields':'id,name','active':!![],'sort':_0x24330d('0x7e8'),'limit':0xa,'offset':0x0}):_0x1627a8[_0x24330d('0xcd6')]('userProfile@getResources',{'id':_0x47821e[_0x24330d('0x1ef8')]()[_0x24330d('0x1d04')],'section':_0x24330d('0xb30'),'fields':_0x24330d('0x104'),'active':!![],'sort':_0x24330d('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x6896a7(_0x39ce52,_0xb6d29f){var _0x438357=_0x53f484;return _0xb6d29f[_0x438357('0x179e')](_0x438357('0xd14'))?null:_0x39ce52[_0x438357('0xcd6')](_0x438357('0x455'),{'fields':'id,name,crudPermissions','id':_0xb6d29f[_0x438357('0x1ef8')]()[_0x438357('0x1d04')]});}],'userProfileSection':[_0x53f484('0x292'),'Auth',function _0x274ec7(_0x318906,_0x201f92){var _0x2d1019=_0x53f484;return _0x201f92[_0x2d1019('0x179e')]('admin')?null:_0x318906[_0x2d1019('0xcd6')](_0x2d1019('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x201f92['getCurrentUser']()['userProfileId'],'sectionId':0x3f3});}],'rpcTrunks':['apiResolver',function _0x3aa790(_0x469655){return _0x469655['resolve']('rpc@getTrunks');}]},'authenticate':!![],'permissionId':0x19b})[_0x53f484('0x1d72')](_0x53f484('0x69'),{'url':_0x53f484('0x17e4'),'controller':_0x53f484('0x2108'),'templateUrl':_0x2b1786,'resolve':{'queues':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x21f138(_0x483b41,_0x400461){var _0x55b5d0=_0x53f484;return _0x400461[_0x55b5d0('0x179e')](_0x55b5d0('0xd14'))?_0x483b41[_0x55b5d0('0xcd6')](_0x55b5d0('0x1382'),{'type':'inbound','sort':_0x55b5d0('0x7e8'),'limit':0xa,'offset':0x0}):_0x483b41['resolve']('userProfile@getResources',{'id':_0x400461['getCurrentUser']()[_0x55b5d0('0x1d04')],'section':_0x55b5d0('0x13e1'),'channel':_0x55b5d0('0xe74'),'type':_0x55b5d0('0x1a7a'),'sort':_0x55b5d0('0x7e8'),'limit':0xa,'page':0x1});}],'userProfile':[_0x53f484('0x292'),'Auth',function _0xcfbec0(_0x1e1685,_0x5e1563){var _0x347103=_0x53f484;return _0x5e1563['hasRole']('admin')?null:_0x1e1685[_0x347103('0xcd6')](_0x347103('0x455'),{'fields':'id,name,crudPermissions','id':_0x5e1563[_0x347103('0x1ef8')]()[_0x347103('0x1d04')]});}],'userProfileSection':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x2409c4(_0x17b83f,_0x15333a){var _0x43aa13=_0x53f484;return _0x15333a[_0x43aa13('0x179e')](_0x43aa13('0xd14'))?null:_0x17b83f[_0x43aa13('0xcd6')]('userProfileSection@get',{'fields':_0x43aa13('0x12d6'),'userProfileId':_0x15333a[_0x43aa13('0x1ef8')]()[_0x43aa13('0x1d04')],'sectionId':0x191});}],'rpcQueues':[_0x53f484('0x292'),function _0x338d5e(_0x2a7af6){var _0x36a1dd=_0x53f484;return _0x2a7af6[_0x36a1dd('0xcd6')](_0x36a1dd('0x1946'));}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.queue_calls',{'url':_0x53f484('0x45d'),'controller':'QueueCallsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x56df2f,'resolve':{'agents':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x587fe4(_0x2f593a,_0x386c93){var _0xdf884f=_0x53f484;return _0x386c93['hasRole'](_0xdf884f('0xd14'))?_0x2f593a[_0xdf884f('0xcd6')]('user@get',{'fields':_0xdf884f('0x26c5'),'role':_0xdf884f('0x108'),'nolimit':!![]}):_0x2f593a[_0xdf884f('0xcd6')](_0xdf884f('0x197d'),{'id':_0x386c93[_0xdf884f('0x1ef8')]()['userProfileId'],'section':_0xdf884f('0xd61'),'fields':_0xdf884f('0x26c5'),'role':_0xdf884f('0x108'),'nolimit':!![]});}],'queues':['apiResolver',_0x53f484('0x2730'),function _0x45bc12(_0x432a80,_0x45953e){var _0x28794c=_0x53f484;return _0x45953e['hasRole'](_0x28794c('0xd14'))?_0x432a80[_0x28794c('0xcd6')](_0x28794c('0x1382'),{'type':'inbound','sort':'-updatedAt','nolimit':!![]}):_0x432a80[_0x28794c('0xcd6')](_0x28794c('0x197d'),{'id':_0x45953e[_0x28794c('0x1ef8')]()[_0x28794c('0x1d04')],'section':_0x28794c('0x13e1'),'channel':'voice','type':_0x28794c('0x1a7a'),'sort':_0x28794c('0x7e8'),'nolimit':!![]});}],'userProfile':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x5efe28(_0x592ecd,_0x14e65b){var _0x8c3f6a=_0x53f484;return _0x14e65b['hasRole']('admin')?null:_0x592ecd['resolve'](_0x8c3f6a('0x455'),{'fields':'id,name,crudPermissions','id':_0x14e65b[_0x8c3f6a('0x1ef8')]()[_0x8c3f6a('0x1d04')]});}],'userProfileSection':['apiResolver',_0x53f484('0x2730'),function _0x3a623c(_0x3eed27,_0x3b6621){var _0x5c1669=_0x53f484;return _0x3b6621[_0x5c1669('0x179e')](_0x5c1669('0xd14'))?null:_0x3eed27[_0x5c1669('0xcd6')](_0x5c1669('0x264e'),{'fields':_0x5c1669('0x12d6'),'userProfileId':_0x3b6621[_0x5c1669('0x1ef8')]()[_0x5c1669('0x1d04')],'sectionId':0x191});}],'rpcVoiceQueuesChannels':[_0x53f484('0x292'),function _0x1a5bc2(_0x5dae23){var _0x50e855=_0x53f484;return _0x5dae23['resolve'](_0x50e855('0x9a4'));}]},'authenticate':!![],'permissionId':0x19b})[_0x53f484('0x1d72')](_0x53f484('0x1b77'),{'url':_0x53f484('0x1bd2'),'controller':_0x53f484('0x1571'),'templateUrl':_0x1e4ed8,'resolve':{'agents':['apiResolver',_0x53f484('0x2730'),function _0x4cc1a9(_0x4b08be,_0xa829bc){var _0x58ae1b=_0x53f484;return _0xa829bc[_0x58ae1b('0x179e')](_0x58ae1b('0xd14'))?_0x4b08be[_0x58ae1b('0xcd6')]('user@get',{'fields':_0x58ae1b('0x26c5'),'role':_0x58ae1b('0x108'),'nolimit':!![]}):_0x4b08be['resolve'](_0x58ae1b('0x197d'),{'id':_0xa829bc[_0x58ae1b('0x1ef8')]()[_0x58ae1b('0x1d04')],'section':_0x58ae1b('0xd61'),'fields':_0x58ae1b('0x26c5'),'role':_0x58ae1b('0x108'),'nolimit':!![]});}],'queues':['apiResolver','Auth',function _0x579f33(_0x23c8a9,_0x1354ba){var _0x5020b0=_0x53f484;return _0x1354ba[_0x5020b0('0x179e')](_0x5020b0('0xd14'))?_0x23c8a9[_0x5020b0('0xcd6')](_0x5020b0('0x1382'),{'type':'inbound','sort':_0x5020b0('0x7e8'),'nolimit':!![]}):_0x23c8a9[_0x5020b0('0xcd6')](_0x5020b0('0x197d'),{'id':_0x1354ba[_0x5020b0('0x1ef8')]()[_0x5020b0('0x1d04')],'section':_0x5020b0('0x13e1'),'channel':_0x5020b0('0xe74'),'type':'inbound','sort':'-updatedAt','nolimit':!![]});}],'dispositions':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x3d169c(_0x3ed7a2,_0x43c65f){var _0x5967a3=_0x53f484;return _0x43c65f[_0x5967a3('0x179e')]('admin')?_0x3ed7a2[_0x5967a3('0xcd6')](_0x5967a3('0xb91'),{'fields':_0x5967a3('0x196d'),'sort':_0x5967a3('0x7e8'),'MailAccountId':_0x5967a3('0x1046'),'FaxAccountId':_0x5967a3('0x1046'),'SmsAccountId':_0x5967a3('0x1046'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x5967a3('0x1046'),'ChatWebsiteId':'null','ListId':'null','nolimit':!![]}):_0x3ed7a2[_0x5967a3('0xcd6')](_0x5967a3('0x197d'),{'id':_0x43c65f[_0x5967a3('0x1ef8')]()[_0x5967a3('0x1d04')],'section':_0x5967a3('0x23f6'),'fields':_0x5967a3('0xce2'),'sort':'-updatedAt','MailAccountId':_0x5967a3('0x1046'),'FaxAccountId':'null','SmsAccountId':_0x5967a3('0x1046'),'WhatsappAccountId':_0x5967a3('0x1046'),'OpenchannelAccountId':_0x5967a3('0x1046'),'ChatWebsiteId':_0x5967a3('0x1046'),'ListId':'null','nolimit':!![]});}],'userProfile':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x4993d5(_0x5b9043,_0x2089ea){var _0x18f4c2=_0x53f484;return _0x2089ea[_0x18f4c2('0x179e')](_0x18f4c2('0xd14'))?null:_0x5b9043[_0x18f4c2('0xcd6')](_0x18f4c2('0x455'),{'fields':_0x18f4c2('0x1b71'),'id':_0x2089ea['getCurrentUser']()[_0x18f4c2('0x1d04')]});}],'userProfileSection':[_0x53f484('0x292'),'Auth',function _0x4e0389(_0x58cb28,_0x3ee221){var _0x27d410=_0x53f484;return _0x3ee221[_0x27d410('0x179e')](_0x27d410('0xd14'))?null:_0x58cb28[_0x27d410('0xcd6')]('userProfileSection@get',{'fields':_0x27d410('0x12d6'),'userProfileId':_0x3ee221[_0x27d410('0x1ef8')]()['userProfileId'],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})[_0x53f484('0x1d72')](_0x53f484('0x1932'),{'url':'/queue_params','controller':_0x53f484('0x7fd'),'templateUrl':_0xf4b0e7,'resolve':{'queues':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x508ed5(_0x4f7930,_0x2b50b2){var _0x4d4fba=_0x53f484;return _0x2b50b2[_0x4d4fba('0x179e')](_0x4d4fba('0xd14'))?_0x4f7930['resolve'](_0x4d4fba('0x1382'),{'type':_0x4d4fba('0x1a7a'),'fields':'id,name','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x4f7930[_0x4d4fba('0xcd6')](_0x4d4fba('0x197d'),{'id':_0x2b50b2['getCurrentUser']()[_0x4d4fba('0x1d04')],'section':_0x4d4fba('0x13e1'),'channel':_0x4d4fba('0xe74'),'type':_0x4d4fba('0x1a7a'),'sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x53f484('0x292'),_0x53f484('0x2730'),function _0x2276ad(_0x284da8,_0xd68960){var _0x4ffd43=_0x53f484;return _0xd68960[_0x4ffd43('0x179e')]('admin')?null:_0x284da8[_0x4ffd43('0xcd6')](_0x4ffd43('0x455'),{'fields':_0x4ffd43('0x1b71'),'id':_0xd68960['getCurrentUser']()[_0x4ffd43('0x1d04')]});}],'userProfileSection':['apiResolver',_0x53f484('0x2730'),function _0x5439a1(_0x4cd363,_0x1f6209){var _0x286a65=_0x53f484;return _0x1f6209[_0x286a65('0x179e')](_0x286a65('0xd14'))?null:_0x4cd363[_0x286a65('0xcd6')](_0x286a65('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1f6209[_0x286a65('0x1ef8')]()['userProfileId'],'sectionId':0x191});}],'rpcQueues':['apiResolver',function _0x21a30c(_0x415934){var _0x3d3302=_0x53f484;return _0x415934[_0x3d3302('0xcd6')]('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x19b})[_0x53f484('0x1d72')]('app.voice.realtime.outbound_calls',{'url':'/outbound_calls','controller':_0x53f484('0x14ac'),'templateUrl':_0x5f19ed,'resolve':{'rpcCalls':[_0x53f484('0x292'),function _0x4609ed(_0x11bc4b){var _0x5ee1ee=_0x53f484;return _0x11bc4b[_0x5ee1ee('0xcd6')]('rpc@getOutboundChannels');}]},'authenticate':!![],'permissionId':0x19b});}angular['module'](_0xb635d2('0x23d8'),[])[_0xb635d2('0x1990')](_0x32c05f)[_0xb635d2('0x1a79')](_0xb635d2('0x46c'),_0x3e0492)[_0xb635d2('0x1a79')](_0xb635d2('0x11e7'),_0x4f57e2)['controller'](_0xb635d2('0x43e'),_0x431f9e)[_0xb635d2('0x1a79')](_0xb635d2('0x1e41'),_0x1cbb63)['controller'](_0xb635d2('0xaf4'),_0x260e80)[_0xb635d2('0x1a79')](_0xb635d2('0xd33'),_0x30c55e)[_0xb635d2('0x1324')](_0xb635d2('0x20d'),_0x16373a)['controller']('VoiceRealtimeController',_0x30a34c)[_0xb635d2('0x1a79')](_0xb635d2('0x2853'),_0x1f5725)[_0xb635d2('0x1a79')](_0xb635d2('0x1ac7'),_0x2448f0);const _0x3a9f77=_0x59426a['p']+_0xb635d2('0x1792');_0x36c4f7['$inject']=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0x1e99'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x36c4f7(_0xe0b551,_0x507f36,_0x320523,_0x1a4e8c,_0x43a86c,_0x1d26dd,_0x37db26,_0x23068c,_0x4ff661,_0x3ea389,_0x589d74,_0x567c3f,_0x11e2ff,_0x357cf1,_0x420565,_0x92323,_0x1b7ee8){var _0x32bac7=_0xb635d2,_0x30060a=this;_0x30060a[_0x32bac7('0x5c1')]=_0x92323,_0x30060a[_0x32bac7('0x22f1')]=_0x1b7ee8,_0x30060a[_0x32bac7('0x15a5')]=_0x420565['getCurrentUser'](),_0x30060a['chanSpies']=_0x4ff661||{'count':0x0,'rows':[]},_0x30060a['userProfile']=_0x3ea389,_0x30060a[_0x32bac7('0xb59')]=_0x589d74&&_0x589d74[_0x32bac7('0x148b')]==0x1?_0x589d74[_0x32bac7('0x16a7')][0x0]:null,_0x30060a[_0x32bac7('0xb3d')]=_0x420565['parseCrudPermissions'](_0x30060a[_0x32bac7('0xb59')]?_0x30060a[_0x32bac7('0xb59')][_0x32bac7('0xb3d')]:null),_0x30060a[_0x32bac7('0x19b6')]='chanSpies',_0x30060a[_0x32bac7('0x14d6')]='',_0x30060a[_0x32bac7('0x190c')]=null,_0x30060a['selectedChanSpies']=[],_0x30060a[_0x32bac7('0xa16')]={'fields':_0x32bac7('0x7f9'),'sort':_0x32bac7('0x7e8'),'limit':0xa,'page':0x1},_0x30060a[_0x32bac7('0x1bdf')]=_0x32d445()[_0x32bac7('0x226f')]([{'option':_0x32bac7('0xfb9'),'value':'\x27b\x27'},{'option':_0x32bac7('0x12fa'),'value':_0x32bac7('0x2726')},{'option':'E:\x20Exit\x20when\x20the\x20spied-on\x20channel\x20hangs\x20up.','value':_0x32bac7('0x2648')},{'option':_0x32bac7('0x1c4d'),'value':'\x27o\x27'},{'option':_0x32bac7('0x1931'),'value':_0x32bac7('0x1d65')},{'option':'s:\x20Skip\x20the\x20playback\x20of\x20the\x20channel\x20type\x20(i.e.\x20SIP,\x20IAX,\x20etc)\x20when\x20speaking\x20the\x20selected\x20channel\x20name.','value':_0x32bac7('0xbe3')},{'option':_0x32bac7('0x6b0'),'value':_0x32bac7('0x1cc1')},{'option':_0x32bac7('0x31d'),'value':_0x32bac7('0x4a')},{'option':_0x32bac7('0x24e'),'value':_0x32bac7('0x15d6')}],function(_0x2e834b){var _0x44646d=_0x32bac7;return _0x32d445()[_0x44646d('0x1b42')](_0x2e834b[_0x44646d('0x2')],new RegExp('\x27','g'),'');}),_0x30060a['arrayrecordingFormat']=_0x32d445()['keyBy']([{'option':_0x32bac7('0x14d7'),'value':'\x27wav\x27'},{'option':_0x32bac7('0x2844'),'value':'\x27gsm\x27'},{'option':'wav49','value':'\x27WAV\x27'}],function(_0x3cb991){var _0x216f36=_0x32bac7;return _0x32d445()['replace'](_0x3cb991[_0x216f36('0x2')],new RegExp('\x27','g'),'');}),_0x30060a['editdialog']=_0x1c0128,_0x30060a[_0x32bac7('0x1d9e')]=_0x57452e,_0x30060a['success']=_0x44b663,_0x30060a['getChanSpies']=_0x3087f5,_0x30060a[_0x32bac7('0x2517')]=_0x40e356,_0x30060a[_0x32bac7('0x41c')]=_0x4c28a1,_0x30060a[_0x32bac7('0x473')]=_0x225819,_0x30060a[_0x32bac7('0x23a')]=_0x43eeda,_0x30060a[_0x32bac7('0x25cd')]=_0x581317,_0x30060a[_0x32bac7('0x2637')]=_0x356351;function _0x1c0128(_0x42c4a3,_0x2ec7d1){var _0x55024b=_0x32bac7;_0x43a86c[_0x55024b('0x26b2')]({'controller':_0x55024b('0xeb8'),'controllerAs':'vm','templateUrl':_0x3a9f77,'parent':angular[_0x55024b('0x24a1')](_0x1d26dd['body']),'targetEvent':_0x2ec7d1,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x42c4a3,'chanSpies':_0x30060a[_0x55024b('0x1e99')][_0x55024b('0x16a7')],'license':_0x30060a['license'],'setting':null,'crudPermissions':_0x30060a[_0x55024b('0xb3d')]}});}function _0x57452e(_0xb18331,_0x830522){var _0x454305=_0x32bac7,_0x441d48=_0x43a86c[_0x454305('0xa5')]()[_0x454305('0x13e4')](_0x454305('0x346')+_0x32d445()[_0x454305('0x1df2')](_0x454305('0x14aa'))+'?')['htmlContent'](_0x454305('0xab2')+(_0xb18331[_0x454305('0x2623')]||_0x454305('0x14aa'))+''+_0x454305('0x21bd'))[_0x454305('0x4d1')](_0x454305('0x80e'))[_0x454305('0x1345')](_0x830522)['ok']('OK')['cancel'](_0x454305('0x17'));_0x43a86c['show'](_0x441d48)[_0x454305('0xe19')](function(){_0x4c28a1(_0xb18331);},function(){var _0xa7b7e4=_0x454305;console[_0xa7b7e4('0x1fe9')](_0xa7b7e4('0x17'));});}var _0x18336e=!![],_0x578e13=0x1;_0xe0b551[_0x32bac7('0x107')](_0x32bac7('0x20cb'),function(_0x8dcfb6,_0x1ccf19){var _0x2a8c48=_0x32bac7;_0x18336e?_0x37db26(function(){_0x18336e=![];}):(!_0x1ccf19&&(_0x578e13=_0x30060a[_0x2a8c48('0xa16')][_0x2a8c48('0xc08')]),_0x8dcfb6!==_0x1ccf19&&(_0x30060a[_0x2a8c48('0xa16')][_0x2a8c48('0xc08')]=0x1),!_0x8dcfb6&&(_0x30060a['query'][_0x2a8c48('0xc08')]=_0x578e13),_0x30060a[_0x2a8c48('0x2618')]());});function _0x44b663(_0x3cc4d8){_0x30060a['chanSpies']=_0x3cc4d8||{'count':0x0,'rows':[]};}function _0x3087f5(){var _0x38c07e=_0x32bac7;_0x30060a[_0x38c07e('0xa16')][_0x38c07e('0xab0')]=(_0x30060a[_0x38c07e('0xa16')]['page']-0x1)*_0x30060a[_0x38c07e('0xa16')][_0x38c07e('0x1b6d')],_0x420565[_0x38c07e('0x179e')](_0x38c07e('0xd14'))?_0x30060a['promise']=_0x567c3f[_0x38c07e('0x239b')]['get'](_0x30060a[_0x38c07e('0xa16')],_0x44b663)['$promise']:(_0x30060a[_0x38c07e('0xa16')]['id']=_0x30060a[_0x38c07e('0x154f')]['id'],_0x30060a[_0x38c07e('0xa16')]['section']=_0x38c07e('0x1f1f'),_0x30060a[_0x38c07e('0x9c8')]=_0x567c3f[_0x38c07e('0x154f')][_0x38c07e('0x14e6')](_0x30060a[_0x38c07e('0xa16')],_0x44b663)['$promise']);}function _0x40e356(_0x46d2ff,_0xc560b8){var _0x537ef8=_0x32bac7;_0x43a86c[_0x537ef8('0x26b2')]({'controller':_0x537ef8('0xeb8'),'controllerAs':'vm','templateUrl':_0x3a9f77,'parent':angular['element'](_0x1d26dd[_0x537ef8('0x19b2')]),'targetEvent':_0x46d2ff,'clickOutsideToClose':!![],'locals':{'chanSpy':_0xc560b8,'chanSpies':_0x30060a[_0x537ef8('0x1e99')]['rows'],'license':_0x30060a[_0x537ef8('0x5c1')],'setting':_0x30060a['setting'],'crudPermissions':_0x30060a[_0x537ef8('0xb3d')]}});}function _0x4c28a1(_0x5037df){var _0x14f5c5=_0x32bac7;_0x567c3f['voiceChanSpy'][_0x14f5c5('0x229e')]({'id':_0x5037df['id']})[_0x14f5c5('0xe59')][_0x14f5c5('0xe19')](function(){var _0x511e83=_0x14f5c5;_0x32d445()[_0x511e83('0xa8b')](_0x30060a[_0x511e83('0x1e99')]['rows'],{'id':_0x5037df['id']}),_0x30060a[_0x511e83('0x1e99')][_0x511e83('0x148b')]-=0x1,!_0x30060a[_0x511e83('0x1e99')][_0x511e83('0x16a7')][_0x511e83('0x25ae')]&&_0x30060a[_0x511e83('0x2618')](),_0x357cf1['success']({'title':_0x32d445()[_0x511e83('0x1df2')](_0x511e83('0x14aa'))+_0x511e83('0x1219'),'msg':_0x5037df['name']?_0x5037df[_0x511e83('0x2623')]+_0x511e83('0x2182'):''});})[_0x14f5c5('0x223b')](function(_0x3b7a98){var _0x4703a6=_0x14f5c5;if(_0x3b7a98[_0x4703a6('0x11d0')]&&_0x3b7a98['data']['errors']&&_0x3b7a98[_0x4703a6('0x11d0')]['errors'][_0x4703a6('0x25ae')]){_0x30060a[_0x4703a6('0xcd2')]=_0x3b7a98[_0x4703a6('0x11d0')][_0x4703a6('0xcd2')]||[{'message':_0x3b7a98[_0x4703a6('0x94f')](),'type':_0x4703a6('0x19dd')}];for(var _0x13a02e=0x0;_0x13a02e<_0x3b7a98[_0x4703a6('0x11d0')]['errors']['length'];_0x13a02e++){_0x357cf1[_0x4703a6('0x8c8')]({'title':_0x3b7a98[_0x4703a6('0x11d0')][_0x4703a6('0xcd2')][_0x13a02e][_0x4703a6('0x62e')],'msg':_0x3b7a98[_0x4703a6('0x11d0')][_0x4703a6('0xcd2')][_0x13a02e][_0x4703a6('0x27e8')]});}}else _0x357cf1[_0x4703a6('0x8c8')]({'title':_0x3b7a98['status']?_0x4703a6('0x27f2')+_0x3b7a98['status']+_0x4703a6('0x1b7c')+_0x3b7a98[_0x4703a6('0x1fd7')]:_0x4703a6('0x19dd'),'msg':_0x3b7a98[_0x4703a6('0x11d0')]?JSON[_0x4703a6('0x3ad')](_0x3b7a98['data']['message']):_0x3b7a98[_0x4703a6('0x27e8')]||_0x3b7a98[_0x4703a6('0x94f')]()});});}function _0x225819(){var _0x17a134=_0x32bac7,_0x561ee9=angular[_0x17a134('0x89')](_0x30060a[_0x17a134('0x807')]);return _0x30060a['selectedChanSpies']=[],_0x561ee9;}function _0x43eeda(_0x5ed5f6){var _0x32f5cc=_0x32bac7,_0x5eb549=_0x43a86c['confirm']()[_0x32f5cc('0x13e4')](_0x32f5cc('0x286b'))[_0x32f5cc('0x221c')](_0x32f5cc('0xab2')+_0x30060a[_0x32f5cc('0x807')][_0x32f5cc('0x25ae')]+_0x32f5cc('0x5bc')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x32f5cc('0x28aa'))[_0x32f5cc('0x1345')](_0x5ed5f6)['ok']('OK')[_0x32f5cc('0x2c1')](_0x32f5cc('0x17'));_0x43a86c[_0x32f5cc('0x26b2')](_0x5eb549)[_0x32f5cc('0xe19')](function(){var _0x9bf501=_0x32f5cc;_0x30060a[_0x9bf501('0x807')]['forEach'](function(_0xccaa33){_0x4c28a1(_0xccaa33);}),_0x30060a['selectedChanSpies']=[];});}function _0x581317(){var _0x3243f0=_0x32bac7;_0x30060a[_0x3243f0('0x807')]=[];}function _0x356351(){var _0x23cff2=_0x32bac7;_0x30060a[_0x23cff2('0x807')]=_0x30060a[_0x23cff2('0x1e99')][_0x23cff2('0x16a7')];}}const _0x5cf7dd=_0x36c4f7;_0x864b38['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1e99'),_0xb635d2('0x14aa'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x864b38(_0x6b5f0e,_0x23ecb4,_0x1bd195,_0x124999,_0x59097c,_0x2b79a3,_0x110081,_0x3e1a3a,_0x573da3,_0x4f32ff,_0x1814d4,_0x1673ee,_0x1b62c4,_0xc6fc52){var _0x2e8ce3=_0xb635d2,_0x533365=this;_0x533365[_0x2e8ce3('0x15a5')]=_0x1814d4[_0x2e8ce3('0x1ef8')](),_0x533365[_0x2e8ce3('0xcd2')]=[],_0x533365[_0x2e8ce3('0x22f1')]=_0x1b62c4,_0x533365[_0x2e8ce3('0x5c1')]=_0x1673ee,_0x533365[_0x2e8ce3('0xb3d')]=_0xc6fc52,_0x533365[_0x2e8ce3('0x1ccb')]={},_0x533365[_0x2e8ce3('0x25ac')]=_0x533365['setting']&&_0x533365['setting'][_0x2e8ce3('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x533365[_0x2e8ce3('0x13e4')]=_0x2e8ce3('0x1cb0'),_0x533365[_0x2e8ce3('0x14aa')]=angular[_0x2e8ce3('0x89')](_0x573da3),_0x533365[_0x2e8ce3('0x1e99')]=_0x3e1a3a,_0x533365[_0x2e8ce3('0x190b')]=![];!_0x533365[_0x2e8ce3('0x14aa')]&&(_0x533365[_0x2e8ce3('0x14aa')]={'recordingFormat':'wav'},_0x533365[_0x2e8ce3('0x13e4')]=_0x2e8ce3('0x2828'),_0x533365['newchanSpy']=!![]);_0x533365[_0x2e8ce3('0xf41')]=_0x3387cb,_0x533365[_0x2e8ce3('0x1866')]=_0x5680d1,_0x533365[_0x2e8ce3('0x41c')]=_0x3b0854,_0x533365[_0x2e8ce3('0x2635')]=_0x5a87a0,_0x533365['closeDialog']=_0xeb69a8;function _0x3387cb(){var _0x4e5ad0=_0x2e8ce3;_0x533365[_0x4e5ad0('0xcd2')]=[],_0x4f32ff['voiceChanSpy']['save'](_0x533365[_0x4e5ad0('0x14aa')])['$promise'][_0x4e5ad0('0xe19')](function(_0x1848b2){var _0x4ffdaf=_0x4e5ad0;_0x533365[_0x4ffdaf('0x1e99')][_0x4ffdaf('0x14c9')](_0x1848b2[_0x4ffdaf('0x250e')]()),_0x110081['success']({'title':_0x4ffdaf('0xcc0'),'msg':_0x533365[_0x4ffdaf('0x14aa')]['name']?_0x533365[_0x4ffdaf('0x14aa')]['name']+_0x4ffdaf('0x105f'):''}),_0xeb69a8(_0x1848b2);})[_0x4e5ad0('0x223b')](function(_0x361726){var _0xb19704=_0x4e5ad0;if(_0x361726[_0xb19704('0x11d0')]&&_0x361726[_0xb19704('0x11d0')][_0xb19704('0xcd2')]&&_0x361726[_0xb19704('0x11d0')]['errors'][_0xb19704('0x25ae')]){_0x533365['errors']=_0x361726[_0xb19704('0x11d0')][_0xb19704('0xcd2')]||[{'message':_0x361726[_0xb19704('0x94f')](),'type':_0xb19704('0xe39')}];for(var _0x457d29=0x0;_0x457d29<_0x361726[_0xb19704('0x11d0')][_0xb19704('0xcd2')][_0xb19704('0x25ae')];_0x457d29+=0x1){_0x110081[_0xb19704('0x8c8')]({'title':_0x361726[_0xb19704('0x11d0')]['errors'][_0x457d29][_0xb19704('0x62e')],'msg':_0x361726[_0xb19704('0x11d0')][_0xb19704('0xcd2')][_0x457d29][_0xb19704('0x27e8')]});}}else _0x110081[_0xb19704('0x8c8')]({'title':_0x361726['status']?_0xb19704('0x27f2')+_0x361726[_0xb19704('0x2833')]+_0xb19704('0x1b7c')+_0x361726[_0xb19704('0x1fd7')]:_0xb19704('0xe39'),'msg':_0x361726[_0xb19704('0x11d0')]?JSON[_0xb19704('0x3ad')](_0x361726[_0xb19704('0x11d0')][_0xb19704('0x27e8')]):_0x361726[_0xb19704('0x94f')]()});});}function _0x5680d1(){var _0x1e1c3c=_0x2e8ce3;_0x533365['errors']=[],_0x4f32ff[_0x1e1c3c('0x239b')][_0x1e1c3c('0xa70')]({'id':_0x533365['chanSpy']['id']},_0x533365[_0x1e1c3c('0x14aa')])[_0x1e1c3c('0xe59')][_0x1e1c3c('0xe19')](function(_0x4b018f){var _0x29b8d0=_0x1e1c3c,_0x43ecf1=_0x32d445()[_0x29b8d0('0xf15')](_0x533365['chanSpies'],{'id':_0x4b018f['id']});_0x43ecf1&&_0x32d445()['merge'](_0x43ecf1,_0x32d445()['pick'](_0x4b018f['toJSON'](),_0x32d445()[_0x29b8d0('0x1234')](_0x43ecf1))),_0x110081[_0x29b8d0('0x425')]({'title':'chanSpy\x20properly\x20saved!','msg':_0x533365[_0x29b8d0('0x14aa')][_0x29b8d0('0x2623')]?_0x533365['chanSpy'][_0x29b8d0('0x2623')]+_0x29b8d0('0x1c19'):''}),_0xeb69a8(_0x4b018f);})[_0x1e1c3c('0x223b')](function(_0xf29fd2){var _0xb8d19f=_0x1e1c3c;if(_0xf29fd2[_0xb8d19f('0x11d0')]&&_0xf29fd2[_0xb8d19f('0x11d0')][_0xb8d19f('0xcd2')]&&_0xf29fd2[_0xb8d19f('0x11d0')][_0xb8d19f('0xcd2')]['length']){_0x533365['errors']=_0xf29fd2['data'][_0xb8d19f('0xcd2')]||[{'message':_0xf29fd2[_0xb8d19f('0x94f')](),'type':_0xb8d19f('0xec3')}];for(var _0x2d7051=0x0;_0x2d7051<_0xf29fd2[_0xb8d19f('0x11d0')][_0xb8d19f('0xcd2')][_0xb8d19f('0x25ae')];_0x2d7051++){_0x110081['error']({'title':_0xf29fd2[_0xb8d19f('0x11d0')][_0xb8d19f('0xcd2')][_0x2d7051][_0xb8d19f('0x62e')],'msg':_0xf29fd2[_0xb8d19f('0x11d0')][_0xb8d19f('0xcd2')][_0x2d7051][_0xb8d19f('0x27e8')]});}}else _0x110081[_0xb8d19f('0x8c8')]({'title':_0xf29fd2[_0xb8d19f('0x2833')]?_0xb8d19f('0x27f2')+_0xf29fd2['status']+_0xb8d19f('0x1b7c')+_0xf29fd2[_0xb8d19f('0x1fd7')]:'api.voiceChanSpy.update','msg':_0xf29fd2[_0xb8d19f('0x11d0')]?JSON['stringify'](_0xf29fd2[_0xb8d19f('0x11d0')][_0xb8d19f('0x27e8')]):_0xf29fd2[_0xb8d19f('0x94f')]()});});}function _0x3b0854(_0x540035){var _0x13039b=_0x2e8ce3;_0x533365[_0x13039b('0xcd2')]=[];var _0x5cb718=_0x124999[_0x13039b('0xa5')]()[_0x13039b('0x13e4')]('Are\x20you\x20sure?')[_0x13039b('0xd0')](_0x13039b('0x2579'))[_0x13039b('0x4d1')]('Delete\x20chanSpy')['ok']('Delete')['cancel'](_0x13039b('0x8a3'))[_0x13039b('0x1345')](_0x540035);_0x124999[_0x13039b('0x26b2')](_0x5cb718)[_0x13039b('0xe19')](function(){var _0x40cdce=_0x13039b;_0x4f32ff['voiceChanSpy'][_0x40cdce('0x229e')]({'id':_0x533365[_0x40cdce('0x14aa')]['id']})[_0x40cdce('0xe59')][_0x40cdce('0xe19')](function(){var _0x44508f=_0x40cdce;_0x32d445()[_0x44508f('0xa8b')](_0x533365['chanSpies'],{'id':_0x533365[_0x44508f('0x14aa')]['id']}),_0x110081[_0x44508f('0x425')]({'title':_0x44508f('0x928'),'msg':(_0x533365[_0x44508f('0x14aa')][_0x44508f('0x2623')]||_0x44508f('0x14aa'))+'\x20has\x20been\x20deleted!'}),_0xeb69a8(_0x533365[_0x44508f('0x14aa')]);})[_0x40cdce('0x223b')](function(_0x302926){var _0x2a3edb=_0x40cdce;if(_0x302926[_0x2a3edb('0x11d0')]&&_0x302926[_0x2a3edb('0x11d0')][_0x2a3edb('0xcd2')]&&_0x302926[_0x2a3edb('0x11d0')][_0x2a3edb('0xcd2')][_0x2a3edb('0x25ae')]){_0x533365[_0x2a3edb('0xcd2')]=_0x302926[_0x2a3edb('0x11d0')][_0x2a3edb('0xcd2')]||[{'message':_0x302926[_0x2a3edb('0x94f')](),'type':_0x2a3edb('0x42a')}];for(var _0x4e1e92=0x0;_0x4e1e92<_0x302926['data']['errors'][_0x2a3edb('0x25ae')];_0x4e1e92++){_0x110081[_0x2a3edb('0x8c8')]({'title':_0x302926[_0x2a3edb('0x11d0')][_0x2a3edb('0xcd2')][_0x4e1e92][_0x2a3edb('0x62e')],'msg':_0x302926[_0x2a3edb('0x11d0')][_0x2a3edb('0xcd2')][_0x4e1e92][_0x2a3edb('0x27e8')]});}}else _0x110081[_0x2a3edb('0x8c8')]({'title':_0x302926[_0x2a3edb('0x2833')]?_0x2a3edb('0x27f2')+_0x302926[_0x2a3edb('0x2833')]+'\x20-\x20'+_0x302926[_0x2a3edb('0x1fd7')]:'api.voiceChanSpy.delete','msg':_0x302926[_0x2a3edb('0x11d0')]?JSON[_0x2a3edb('0x3ad')](_0x302926['data'][_0x2a3edb('0x27e8')]):_0x302926['message']||_0x302926[_0x2a3edb('0x94f')]()});});},function(){});}function _0x5a87a0(_0x482bb1){return _0x482bb1===null?undefined:new Date(_0x482bb1);}function _0xeb69a8(_0x247d4b){var _0x323e79=_0x2e8ce3;_0x124999[_0x323e79('0x11ed')](_0x247d4b);}}const _0x2053cf=_0x864b38,_0x12730e=_0x59426a['p']+_0xb635d2('0x236e');_0x51da03[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x3c1'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'api',_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x51da03(_0x494c18,_0x3a33f8,_0x4c8bfd,_0x539224,_0x130270,_0x5e2dc5,_0x4754eb,_0x324afe,_0xaeeb32,_0x471f30,_0x4a208e,_0x59f0b2,_0x12ca24,_0x572884,_0x2bc377,_0x25b170,_0x56f94c){var _0x2fa332=_0xb635d2,_0x3c692a=this;_0x3c692a['license']=_0x25b170,_0x3c692a[_0x2fa332('0x22f1')]=_0x56f94c,_0x3c692a[_0x2fa332('0x15a5')]=_0x2bc377[_0x2fa332('0x1ef8')](),_0x3c692a[_0x2fa332('0x3c1')]=_0xaeeb32||{'count':0x0,'rows':[]},_0x3c692a['userProfile']=_0x471f30,_0x3c692a[_0x2fa332('0xb59')]=_0x4a208e&&_0x4a208e[_0x2fa332('0x148b')]==0x1?_0x4a208e[_0x2fa332('0x16a7')][0x0]:null,_0x3c692a[_0x2fa332('0xb3d')]=_0x2bc377[_0x2fa332('0xd31')](_0x3c692a[_0x2fa332('0xb59')]?_0x3c692a[_0x2fa332('0xb59')][_0x2fa332('0xb3d')]:null),_0x3c692a[_0x2fa332('0x19b6')]=_0x2fa332('0x3c1'),_0x3c692a[_0x2fa332('0x14d6')]='',_0x3c692a['listOrderAsc']=null,_0x3c692a[_0x2fa332('0x174e')]=[],_0x3c692a[_0x2fa332('0xa16')]={'fields':_0x2fa332('0x1666'),'sort':'-updatedAt','defaultEntry':_0x2fa332('0x1ad3'),'limit':0xa,'page':0x1},_0x3c692a[_0x2fa332('0x1752')]=_0x3e31a0,_0x3c692a[_0x2fa332('0x1d9e')]=_0x34174b,_0x3c692a['success']=_0x51f349,_0x3c692a[_0x2fa332('0x27c4')]=_0x867aa,_0x3c692a[_0x2fa332('0xe8e')]=_0x518c72,_0x3c692a[_0x2fa332('0x1df5')]=_0x147f5b,_0x3c692a[_0x2fa332('0x216a')]=_0x22a36e,_0x3c692a[_0x2fa332('0x795')]=_0x39aeec,_0x3c692a['deselectContexts']=_0x36b8e0,_0x3c692a['selectAllContexts']=_0x10e09d;function _0x3e31a0(_0x5b2ab3,_0x5bab10){var _0x5c98c2=_0x2fa332;_0x130270[_0x5c98c2('0x26b2')]({'controller':_0x5c98c2('0xc2a'),'controllerAs':'vm','templateUrl':_0x12730e,'parent':angular['element'](_0x5e2dc5[_0x5c98c2('0x19b2')]),'targetEvent':_0x5bab10,'clickOutsideToClose':!![],'locals':{'context':_0x5b2ab3,'contexts':_0x3c692a[_0x5c98c2('0x3c1')][_0x5c98c2('0x16a7')],'license':_0x3c692a['license'],'setting':null,'crudPermissions':_0x3c692a[_0x5c98c2('0xb3d')]}});}function _0x34174b(_0x8ce661,_0x4f6d60){var _0x302170=_0x2fa332,_0x3ea51b=_0x130270[_0x302170('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()['startCase'](_0x302170('0x1318'))+'?')['htmlContent'](''+(_0x8ce661['name']||'context')+''+_0x302170('0x21bd'))['ariaLabel']('delete\x20context')[_0x302170('0x1345')](_0x4f6d60)['ok']('OK')[_0x302170('0x2c1')](_0x302170('0x17'));_0x130270[_0x302170('0x26b2')](_0x3ea51b)[_0x302170('0xe19')](function(){_0x147f5b(_0x8ce661);},function(){var _0x578aaf=_0x302170;console[_0x578aaf('0x1fe9')]('CANCEL');});}var _0x387e87=!![],_0x22516a=0x1;_0x494c18[_0x2fa332('0x107')](_0x2fa332('0x20cb'),function(_0x5e879d,_0x461ae0){var _0x2c3b69=_0x2fa332;_0x387e87?_0x4754eb(function(){_0x387e87=![];}):(!_0x461ae0&&(_0x22516a=_0x3c692a[_0x2c3b69('0xa16')][_0x2c3b69('0xc08')]),_0x5e879d!==_0x461ae0&&(_0x3c692a[_0x2c3b69('0xa16')][_0x2c3b69('0xc08')]=0x1),!_0x5e879d&&(_0x3c692a[_0x2c3b69('0xa16')][_0x2c3b69('0xc08')]=_0x22516a),_0x3c692a['getContexts']());});function _0x51f349(_0x3dd16f){var _0x2b5a35=_0x2fa332;_0x3c692a[_0x2b5a35('0x3c1')]=_0x3dd16f||{'count':0x0,'rows':[]};}function _0x867aa(){var _0x516ba7=_0x2fa332;_0x3c692a[_0x516ba7('0xa16')][_0x516ba7('0xab0')]=(_0x3c692a[_0x516ba7('0xa16')][_0x516ba7('0xc08')]-0x1)*_0x3c692a['query']['limit'],_0x2bc377[_0x516ba7('0x179e')](_0x516ba7('0xd14'))?_0x3c692a[_0x516ba7('0x9c8')]=_0x59f0b2['voiceContext'][_0x516ba7('0x22d5')](_0x3c692a[_0x516ba7('0xa16')],_0x51f349)[_0x516ba7('0xe59')]:(_0x3c692a[_0x516ba7('0xa16')]['id']=_0x3c692a['userProfile']['id'],_0x3c692a['query'][_0x516ba7('0x1e59')]=_0x516ba7('0xf3f'),_0x3c692a['promise']=_0x59f0b2[_0x516ba7('0x154f')]['getResources'](_0x3c692a[_0x516ba7('0xa16')],_0x51f349)[_0x516ba7('0xe59')]);}function _0x518c72(_0x1e29cf,_0xeb4b13){var _0xdf56e7=_0x2fa332;_0x130270[_0xdf56e7('0x26b2')]({'controller':_0xdf56e7('0xc2a'),'controllerAs':'vm','templateUrl':_0x12730e,'parent':angular[_0xdf56e7('0x24a1')](_0x5e2dc5['body']),'targetEvent':_0x1e29cf,'clickOutsideToClose':!![],'locals':{'context':_0xeb4b13,'contexts':_0x3c692a[_0xdf56e7('0x3c1')][_0xdf56e7('0x16a7')],'license':_0x3c692a[_0xdf56e7('0x5c1')],'setting':_0x3c692a[_0xdf56e7('0x22f1')],'crudPermissions':_0x3c692a[_0xdf56e7('0xb3d')]}});}function _0x147f5b(_0x2cd160){var _0x5998db=_0x2fa332;_0x59f0b2[_0x5998db('0x2768')][_0x5998db('0x229e')]({'id':_0x2cd160['id']})[_0x5998db('0xe59')][_0x5998db('0xe19')](function(){var _0x321965=_0x5998db;_0x32d445()[_0x321965('0xa8b')](_0x3c692a[_0x321965('0x3c1')][_0x321965('0x16a7')],{'id':_0x2cd160['id']}),_0x3c692a[_0x321965('0x3c1')][_0x321965('0x148b')]-=0x1,!_0x3c692a['contexts'][_0x321965('0x16a7')]['length']&&_0x3c692a['getContexts'](),_0x572884[_0x321965('0x425')]({'title':_0x32d445()[_0x321965('0x1df2')]('Context')+'\x20deleted!','msg':_0x2cd160[_0x321965('0x2623')]?_0x2cd160[_0x321965('0x2623')]+_0x321965('0x2182'):''});})['catch'](function(_0x3bd887){var _0x562bf7=_0x5998db;if(_0x3bd887[_0x562bf7('0x11d0')]&&_0x3bd887[_0x562bf7('0x11d0')]['errors']&&_0x3bd887['data'][_0x562bf7('0xcd2')]['length']){_0x3c692a[_0x562bf7('0xcd2')]=_0x3bd887[_0x562bf7('0x11d0')][_0x562bf7('0xcd2')]||[{'message':_0x3bd887[_0x562bf7('0x94f')](),'type':_0x562bf7('0xf1e')}];for(var _0x317ca5=0x0;_0x317ca5<_0x3bd887[_0x562bf7('0x11d0')][_0x562bf7('0xcd2')]['length'];_0x317ca5++){_0x572884['error']({'title':_0x3bd887[_0x562bf7('0x11d0')][_0x562bf7('0xcd2')][_0x317ca5][_0x562bf7('0x62e')],'msg':_0x3bd887[_0x562bf7('0x11d0')][_0x562bf7('0xcd2')][_0x317ca5][_0x562bf7('0x27e8')]});}}else _0x572884[_0x562bf7('0x8c8')]({'title':_0x3bd887['status']?_0x562bf7('0x27f2')+_0x3bd887[_0x562bf7('0x2833')]+_0x562bf7('0x1b7c')+_0x3bd887[_0x562bf7('0x1fd7')]:'SYSTEM:DELETEvoiceContext','msg':_0x3bd887[_0x562bf7('0x11d0')]?JSON[_0x562bf7('0x3ad')](_0x3bd887[_0x562bf7('0x11d0')][_0x562bf7('0x27e8')]):_0x3bd887[_0x562bf7('0x27e8')]||_0x3bd887[_0x562bf7('0x94f')]()});});}function _0x22a36e(){var _0xcf1ea2=_0x2fa332,_0x2e049f=angular[_0xcf1ea2('0x89')](_0x3c692a[_0xcf1ea2('0x174e')]);return _0x3c692a[_0xcf1ea2('0x174e')]=[],_0x2e049f;}function _0x39aeec(_0x1f5cd5){var _0x65216b=_0x2fa332,_0x5e0de7=_0x130270[_0x65216b('0xa5')]()[_0x65216b('0x13e4')](_0x65216b('0x8e2'))[_0x65216b('0x221c')](_0x65216b('0xab2')+_0x3c692a[_0x65216b('0x174e')][_0x65216b('0x25ae')]+_0x65216b('0x5bc')+_0x65216b('0x21bd'))[_0x65216b('0x4d1')]('delete\x20Contexts')['targetEvent'](_0x1f5cd5)['ok']('OK')[_0x65216b('0x2c1')]('CANCEL');_0x130270[_0x65216b('0x26b2')](_0x5e0de7)[_0x65216b('0xe19')](function(){var _0x5d1952=_0x65216b;_0x3c692a['selectedContexts'][_0x5d1952('0x1d7e')](function(_0x2184de){_0x147f5b(_0x2184de);}),_0x3c692a['selectedContexts']=[];});}function _0x36b8e0(){var _0x250675=_0x2fa332;_0x3c692a[_0x250675('0x174e')]=[];}function _0x10e09d(){var _0x9ab7b=_0x2fa332;_0x3c692a['selectedContexts']=_0x3c692a[_0x9ab7b('0x3c1')][_0x9ab7b('0x16a7')];}}const _0x52bc65=_0x51da03;_0x440999[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x3c1'),_0xb635d2('0x1318'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x440999(_0x1366e7,_0x3bbf4f,_0x1b31fc,_0x3eae63,_0x2994cd,_0x2bf14b,_0x7f1174,_0xc83b63,_0x4d76a1,_0x2d95b0,_0x16aff0,_0xd94f84,_0x45d219,_0x11c933){var _0x3a20eb=_0xb635d2,_0x3907d2=this;_0x3907d2[_0x3a20eb('0x15a5')]=_0x16aff0['getCurrentUser'](),_0x3907d2['errors']=[],_0x3907d2[_0x3a20eb('0x22f1')]=_0x45d219,_0x3907d2[_0x3a20eb('0x5c1')]=_0xd94f84,_0x3907d2['crudPermissions']=_0x11c933,_0x3907d2[_0x3a20eb('0x1ccb')]={},_0x3907d2['passwordPattern']=_0x3907d2[_0x3a20eb('0x22f1')]&&_0x3907d2[_0x3a20eb('0x22f1')][_0x3a20eb('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3907d2[_0x3a20eb('0x13e4')]='VOICE.EDIT_CONTEXT',_0x3907d2[_0x3a20eb('0x1318')]=angular[_0x3a20eb('0x89')](_0x4d76a1),_0x3907d2[_0x3a20eb('0x3c1')]=_0xc83b63,_0x3907d2[_0x3a20eb('0xa52')]=![];!_0x3907d2[_0x3a20eb('0x1318')]&&(_0x3907d2[_0x3a20eb('0x1318')]={},_0x3907d2[_0x3a20eb('0x13e4')]=_0x3a20eb('0x15c1'),_0x3907d2[_0x3a20eb('0xa52')]=!![]);_0x3907d2[_0x3a20eb('0x2428')]=_0x41a8c9,_0x3907d2['saveContext']=_0x43b8d3,_0x3907d2[_0x3a20eb('0x1df5')]=_0x276dfe,_0x3907d2['getDateFromString']=_0x4dec06,_0x3907d2[_0x3a20eb('0x2584')]=_0x115387;function _0x41a8c9(){var _0x2c3dae=_0x3a20eb;_0x3907d2[_0x2c3dae('0xcd2')]=[],_0x2d95b0[_0x2c3dae('0x2768')][_0x2c3dae('0xe5e')](_0x3907d2[_0x2c3dae('0x1318')])['$promise']['then'](function(_0x5ce80a){var _0x2b6e01=_0x2c3dae;_0x3907d2['contexts']['unshift'](_0x5ce80a[_0x2b6e01('0x250e')]()),_0x7f1174['success']({'title':_0x2b6e01('0x2821'),'msg':_0x3907d2[_0x2b6e01('0x1318')][_0x2b6e01('0x2623')]?_0x3907d2[_0x2b6e01('0x1318')][_0x2b6e01('0x2623')]+_0x2b6e01('0x105f'):''}),_0x115387(_0x5ce80a);})['catch'](function(_0x2bec43){var _0x24e450=_0x2c3dae;if(_0x2bec43[_0x24e450('0x11d0')]&&_0x2bec43[_0x24e450('0x11d0')][_0x24e450('0xcd2')]&&_0x2bec43['data'][_0x24e450('0xcd2')][_0x24e450('0x25ae')]){_0x3907d2[_0x24e450('0xcd2')]=_0x2bec43[_0x24e450('0x11d0')][_0x24e450('0xcd2')]||[{'message':_0x2bec43[_0x24e450('0x94f')](),'type':_0x24e450('0x1b5b')}];for(var _0x133d6c=0x0;_0x133d6c<_0x2bec43[_0x24e450('0x11d0')][_0x24e450('0xcd2')]['length'];_0x133d6c+=0x1){_0x7f1174[_0x24e450('0x8c8')]({'title':_0x2bec43[_0x24e450('0x11d0')][_0x24e450('0xcd2')][_0x133d6c][_0x24e450('0x62e')],'msg':_0x2bec43[_0x24e450('0x11d0')][_0x24e450('0xcd2')][_0x133d6c][_0x24e450('0x27e8')]});}}else _0x7f1174['error']({'title':_0x2bec43[_0x24e450('0x2833')]?_0x24e450('0x27f2')+_0x2bec43[_0x24e450('0x2833')]+_0x24e450('0x1b7c')+_0x2bec43[_0x24e450('0x1fd7')]:_0x24e450('0x1b5b'),'msg':_0x2bec43[_0x24e450('0x11d0')]?JSON[_0x24e450('0x3ad')](_0x2bec43[_0x24e450('0x11d0')][_0x24e450('0x27e8')]):_0x2bec43[_0x24e450('0x94f')]()});});}function _0x43b8d3(){var _0x1b31ad=_0x3a20eb;_0x3907d2[_0x1b31ad('0xcd2')]=[],_0x2d95b0[_0x1b31ad('0x2768')][_0x1b31ad('0xa70')]({'id':_0x3907d2[_0x1b31ad('0x1318')]['id']},_0x3907d2[_0x1b31ad('0x1318')])[_0x1b31ad('0xe59')]['then'](function(_0x1c59c9){var _0x544ef3=_0x1b31ad,_0x30bfa9=_0x32d445()[_0x544ef3('0xf15')](_0x3907d2['contexts'],{'id':_0x1c59c9['id']});_0x30bfa9&&_0x32d445()[_0x544ef3('0x1d8')](_0x30bfa9,_0x32d445()[_0x544ef3('0xed5')](_0x1c59c9[_0x544ef3('0x250e')](),_0x32d445()[_0x544ef3('0x1234')](_0x30bfa9))),_0x7f1174[_0x544ef3('0x425')]({'title':_0x544ef3('0x57e'),'msg':_0x3907d2[_0x544ef3('0x1318')][_0x544ef3('0x2623')]?_0x3907d2[_0x544ef3('0x1318')][_0x544ef3('0x2623')]+_0x544ef3('0x1c19'):''}),_0x115387(_0x1c59c9);})[_0x1b31ad('0x223b')](function(_0x3d7d23){var _0x285bcf=_0x1b31ad;if(_0x3d7d23[_0x285bcf('0x11d0')]&&_0x3d7d23[_0x285bcf('0x11d0')][_0x285bcf('0xcd2')]&&_0x3d7d23[_0x285bcf('0x11d0')][_0x285bcf('0xcd2')][_0x285bcf('0x25ae')]){_0x3907d2['errors']=_0x3d7d23['data']['errors']||[{'message':_0x3d7d23[_0x285bcf('0x94f')](),'type':_0x285bcf('0xcc3')}];for(var _0x23d14b=0x0;_0x23d14b<_0x3d7d23[_0x285bcf('0x11d0')][_0x285bcf('0xcd2')]['length'];_0x23d14b++){_0x7f1174[_0x285bcf('0x8c8')]({'title':_0x3d7d23[_0x285bcf('0x11d0')][_0x285bcf('0xcd2')][_0x23d14b]['type'],'msg':_0x3d7d23[_0x285bcf('0x11d0')][_0x285bcf('0xcd2')][_0x23d14b][_0x285bcf('0x27e8')]});}}else _0x7f1174[_0x285bcf('0x8c8')]({'title':_0x3d7d23['status']?_0x285bcf('0x27f2')+_0x3d7d23[_0x285bcf('0x2833')]+_0x285bcf('0x1b7c')+_0x3d7d23[_0x285bcf('0x1fd7')]:_0x285bcf('0xcc3'),'msg':_0x3d7d23[_0x285bcf('0x11d0')]?JSON['stringify'](_0x3d7d23[_0x285bcf('0x11d0')]['message']):_0x3d7d23['toString']()});});}function _0x276dfe(_0x31e2f9){var _0x3e5e18=_0x3a20eb;_0x3907d2[_0x3e5e18('0xcd2')]=[];var _0x330b47=_0x3eae63[_0x3e5e18('0xa5')]()['title']('Are\x20you\x20sure?')['content']('The\x20context\x20will\x20be\x20deleted.')[_0x3e5e18('0x4d1')](_0x3e5e18('0x562'))['ok'](_0x3e5e18('0x2198'))[_0x3e5e18('0x2c1')](_0x3e5e18('0x8a3'))[_0x3e5e18('0x1345')](_0x31e2f9);_0x3eae63[_0x3e5e18('0x26b2')](_0x330b47)[_0x3e5e18('0xe19')](function(){var _0x25bfdf=_0x3e5e18;_0x2d95b0['voiceContext']['delete']({'id':_0x3907d2[_0x25bfdf('0x1318')]['id']})[_0x25bfdf('0xe59')][_0x25bfdf('0xe19')](function(){var _0x340863=_0x25bfdf;_0x32d445()[_0x340863('0xa8b')](_0x3907d2[_0x340863('0x3c1')],{'id':_0x3907d2[_0x340863('0x1318')]['id']}),_0x7f1174[_0x340863('0x425')]({'title':'Context\x20properly\x20deleted!','msg':(_0x3907d2[_0x340863('0x1318')][_0x340863('0x2623')]||_0x340863('0x1318'))+_0x340863('0x2182')}),_0x115387(_0x3907d2[_0x340863('0x1318')]);})[_0x25bfdf('0x223b')](function(_0x3a034d){var _0x495f2a=_0x25bfdf;if(_0x3a034d[_0x495f2a('0x11d0')]&&_0x3a034d[_0x495f2a('0x11d0')][_0x495f2a('0xcd2')]&&_0x3a034d[_0x495f2a('0x11d0')][_0x495f2a('0xcd2')][_0x495f2a('0x25ae')]){_0x3907d2[_0x495f2a('0xcd2')]=_0x3a034d[_0x495f2a('0x11d0')][_0x495f2a('0xcd2')]||[{'message':_0x3a034d[_0x495f2a('0x94f')](),'type':_0x495f2a('0x277c')}];for(var _0x3983fa=0x0;_0x3983fa<_0x3a034d[_0x495f2a('0x11d0')]['errors'][_0x495f2a('0x25ae')];_0x3983fa++){_0x7f1174[_0x495f2a('0x8c8')]({'title':_0x3a034d[_0x495f2a('0x11d0')][_0x495f2a('0xcd2')][_0x3983fa][_0x495f2a('0x62e')],'msg':_0x3a034d['data']['errors'][_0x3983fa]['message']});}}else _0x7f1174[_0x495f2a('0x8c8')]({'title':_0x3a034d[_0x495f2a('0x2833')]?_0x495f2a('0x27f2')+_0x3a034d[_0x495f2a('0x2833')]+'\x20-\x20'+_0x3a034d[_0x495f2a('0x1fd7')]:_0x495f2a('0x277c'),'msg':_0x3a034d[_0x495f2a('0x11d0')]?JSON[_0x495f2a('0x3ad')](_0x3a034d[_0x495f2a('0x11d0')][_0x495f2a('0x27e8')]):_0x3a034d[_0x495f2a('0x27e8')]||_0x3a034d[_0x495f2a('0x94f')]()});});},function(){});}function _0x4dec06(_0x1c0274){return _0x1c0274===null?undefined:new Date(_0x1c0274);}function _0x115387(_0x23c13f){_0x3eae63['hide'](_0x23c13f);}}const _0x123fcc=_0x440999;_0x1d5a27['$inject']=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x2724'),_0xb635d2('0x1d7f'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x1d5a27(_0x41d62e,_0x13df1a,_0x5370d0,_0x4de575,_0x4de889,_0x3bcceb,_0x4dab30,_0x5c3296,_0x46b00d,_0x52bf47,_0x577ff4,_0x4ae1d2,_0x2c3868,_0x5f6cde){var _0x423deb=_0xb635d2,_0xbaa59c=this;_0xbaa59c['currentUser']=_0x577ff4[_0x423deb('0x1ef8')](),_0xbaa59c[_0x423deb('0xcd2')]=[],_0xbaa59c[_0x423deb('0x22f1')]=_0x2c3868,_0xbaa59c[_0x423deb('0x5c1')]=_0x4ae1d2,_0xbaa59c[_0x423deb('0xb3d')]=_0x5f6cde,_0xbaa59c['hasModulePermissions']={},_0xbaa59c[_0x423deb('0x25ac')]=_0xbaa59c['setting']&&_0xbaa59c[_0x423deb('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbaa59c[_0x423deb('0x13e4')]='VOICE.EDIT_INBOUNDROUTE',_0xbaa59c[_0x423deb('0x1d7f')]=angular[_0x423deb('0x89')](_0x46b00d),_0xbaa59c['inboundroutes']=_0x5c3296,_0xbaa59c[_0x423deb('0x931')]=![];!_0xbaa59c['inboundroute']&&(_0xbaa59c[_0x423deb('0x1d7f')]={'appdata':_0x423deb('0x139a'),'type':_0x423deb('0x1a7a'),'context':_0x423deb('0x1f79')},_0xbaa59c['title']=_0x423deb('0x278f'),_0xbaa59c[_0x423deb('0x931')]=!![]);_0xbaa59c['addNewInboundRoute']=_0x242873,_0xbaa59c[_0x423deb('0x1357')]=_0x592f53,_0xbaa59c[_0x423deb('0xea9')]=_0x7c49e2,_0xbaa59c[_0x423deb('0x2635')]=_0x190da8,_0xbaa59c[_0x423deb('0x2584')]=_0x5776c8,_0x577ff4[_0x423deb('0x179e')](_0x423deb('0xd14'))?_0x52bf47['voiceContext']['get']({'fields':_0x423deb('0x104'),'sort':'name','nolimit':_0x423deb('0x2206')})[_0x423deb('0xe59')]['then'](function(_0x3afe11){_0xbaa59c['contexts']=_0x3afe11['rows']||[];})[_0x423deb('0x223b')](function(_0x13578e){var _0xfcc867=_0x423deb;_0x4dab30['error']({'title':_0x13578e[_0xfcc867('0x2833')]?_0xfcc867('0x27f2')+_0x13578e[_0xfcc867('0x2833')]+_0xfcc867('0x1b7c')+_0x13578e[_0xfcc867('0x1fd7')]:'SYSTEM:GET_CONTEXTS','msg':_0x13578e[_0xfcc867('0x11d0')]?JSON[_0xfcc867('0x3ad')](_0x13578e[_0xfcc867('0x11d0')]):_0x13578e[_0xfcc867('0x94f')]()});}):_0x52bf47['voiceContext']['get']({'fields':'id,name','sort':_0x423deb('0x2623'),'nolimit':_0x423deb('0x2206')})[_0x423deb('0xe59')]['then'](function(_0x49fb38){var _0x1f336a=_0x423deb;_0xbaa59c[_0x1f336a('0x3c1')]=_0x49fb38[_0x1f336a('0x16a7')]||[];})['then'](function(){var _0x2eff9c=_0x423deb;return _0x52bf47['userProfileSection'][_0x2eff9c('0x22d5')]({'userProfileId':_0xbaa59c['currentUser']['userProfileId'],'sectionId':0x195})[_0x2eff9c('0xe59')];})['then'](function(_0x372583){var _0x5986c4=_0x423deb,_0x265fe5=_0x372583&&_0x372583[_0x5986c4('0x16a7')]?_0x372583[_0x5986c4('0x16a7')][0x0]:null;if(!_0x265fe5)return _0x52bf47[_0x5986c4('0x2768')][_0x5986c4('0x22d5')]({'fields':_0x5986c4('0x104'),'sort':_0x5986c4('0x2623'),'nolimit':'true','defaultEntry':0x1})[_0x5986c4('0xe59')][_0x5986c4('0xe19')](function(_0x66cea){var _0x576907=_0x5986c4;_0xbaa59c[_0x576907('0x3c1')]=_0x66cea[_0x576907('0x16a7')]||[];});else{if(!_0x265fe5[_0x5986c4('0x11fd')])return _0x52bf47[_0x5986c4('0xd49')][_0x5986c4('0x22d5')]({'sectionId':_0x265fe5['id']})[_0x5986c4('0xe59')][_0x5986c4('0xe19')](function(_0x41b7cd){var _0x36e641=_0x5986c4,_0x354e9f=_0x32d445()[_0x36e641('0x65a')](_0x41b7cd[_0x36e641('0x16a7')],function(_0x5b3a3c){var _0x266327=_0x36e641;return _0x32d445()[_0x266327('0xf15')](_0xbaa59c['contexts'],{'id':_0x5b3a3c['resourceId']});}),_0x287b1e=null;_0xbaa59c['inboundroute']&&(_0x287b1e=_0x32d445()[_0x36e641('0xf15')](_0xbaa59c[_0x36e641('0x3c1')],{'name':_0xbaa59c[_0x36e641('0x1d7f')][_0x36e641('0x1318')]}));if(_0x287b1e&&!_0x32d445()[_0x36e641('0x201a')](_0x354e9f,['id',_0x287b1e['id']])){var _0x314157=_0x32d445()[_0x36e641('0xf15')](_0xbaa59c['contexts'],{'id':_0x287b1e['id']});_0x314157[_0x36e641('0x1e9d')]=![],_0x354e9f[_0x36e641('0xb76')](_0x314157);}_0xbaa59c[_0x36e641('0x3c1')]=_0x354e9f;});}})['catch'](function(_0x7a60ae){var _0x33aa66=_0x423deb;_0x4dab30[_0x33aa66('0x8c8')]({'title':_0x7a60ae[_0x33aa66('0x2833')]?_0x33aa66('0x27f2')+_0x7a60ae[_0x33aa66('0x2833')]+_0x33aa66('0x1b7c')+_0x7a60ae[_0x33aa66('0x1fd7')]:_0x33aa66('0x12ed'),'msg':_0x7a60ae[_0x33aa66('0x11d0')]?JSON['stringify'](_0x7a60ae['data']):_0x7a60ae[_0x33aa66('0x94f')]()});});function _0x242873(){var _0x3ebcc2=_0x423deb;_0xbaa59c[_0x3ebcc2('0xcd2')]=[],_0x52bf47[_0x3ebcc2('0x1979')][_0x3ebcc2('0xe5e')](_0xbaa59c[_0x3ebcc2('0x1d7f')])[_0x3ebcc2('0xe59')][_0x3ebcc2('0xe19')](function(_0x3d49d6){var _0x2324f3=_0x3ebcc2;_0xbaa59c[_0x2324f3('0x2724')][_0x2324f3('0x14c9')](_0x3d49d6[_0x2324f3('0x250e')]()),_0x4dab30[_0x2324f3('0x425')]({'title':_0x2324f3('0x1439'),'msg':_0xbaa59c[_0x2324f3('0x1d7f')][_0x2324f3('0x2623')]?_0xbaa59c['inboundroute'][_0x2324f3('0x2623')]+_0x2324f3('0x105f'):''}),_0x5776c8(_0x3d49d6);})[_0x3ebcc2('0x223b')](function(_0x452679){var _0x450e3f=_0x3ebcc2;if(_0x452679[_0x450e3f('0x11d0')]&&_0x452679[_0x450e3f('0x11d0')]['errors']&&_0x452679[_0x450e3f('0x11d0')][_0x450e3f('0xcd2')][_0x450e3f('0x25ae')]){_0xbaa59c['errors']=_0x452679[_0x450e3f('0x11d0')][_0x450e3f('0xcd2')]||[{'message':_0x452679[_0x450e3f('0x94f')](),'type':_0x450e3f('0x6b2')}];for(var _0x3a420b=0x0;_0x3a420b<_0x452679['data'][_0x450e3f('0xcd2')]['length'];_0x3a420b+=0x1){_0x4dab30[_0x450e3f('0x8c8')]({'title':_0x452679[_0x450e3f('0x11d0')][_0x450e3f('0xcd2')][_0x3a420b][_0x450e3f('0x62e')],'msg':_0x452679[_0x450e3f('0x11d0')][_0x450e3f('0xcd2')][_0x3a420b][_0x450e3f('0x27e8')]});}}else _0x4dab30['error']({'title':_0x452679[_0x450e3f('0x2833')]?_0x450e3f('0x27f2')+_0x452679[_0x450e3f('0x2833')]+_0x450e3f('0x1b7c')+_0x452679['statusText']:_0x450e3f('0x6b2'),'msg':_0x452679[_0x450e3f('0x11d0')]?JSON[_0x450e3f('0x3ad')](_0x452679[_0x450e3f('0x11d0')][_0x450e3f('0x27e8')]):_0x452679[_0x450e3f('0x94f')]()});});}function _0x592f53(){var _0x2e432b=_0x423deb;_0xbaa59c[_0x2e432b('0xcd2')]=[],_0x52bf47[_0x2e432b('0x1979')][_0x2e432b('0xa70')]({'id':_0xbaa59c['inboundroute']['id']},_0xbaa59c['inboundroute'])[_0x2e432b('0xe59')][_0x2e432b('0xe19')](function(_0x1933b1){var _0x5c7187=_0x2e432b,_0x50827f=_0x32d445()['find'](_0xbaa59c['inboundroutes'],{'id':_0x1933b1['id']});_0x50827f&&_0x32d445()[_0x5c7187('0x1d8')](_0x50827f,_0x32d445()['pick'](_0x1933b1['toJSON'](),_0x32d445()[_0x5c7187('0x1234')](_0x50827f))),_0x4dab30['success']({'title':_0x5c7187('0x15a0'),'msg':_0xbaa59c['inboundroute'][_0x5c7187('0x2623')]?_0xbaa59c[_0x5c7187('0x1d7f')][_0x5c7187('0x2623')]+_0x5c7187('0x1c19'):''}),_0x5776c8(_0x1933b1);})['catch'](function(_0x38b9b2){var _0x321d51=_0x2e432b;if(_0x38b9b2[_0x321d51('0x11d0')]&&_0x38b9b2['data'][_0x321d51('0xcd2')]&&_0x38b9b2[_0x321d51('0x11d0')][_0x321d51('0xcd2')][_0x321d51('0x25ae')]){_0xbaa59c['errors']=_0x38b9b2[_0x321d51('0x11d0')][_0x321d51('0xcd2')]||[{'message':_0x38b9b2[_0x321d51('0x94f')](),'type':_0x321d51('0x38e')}];for(var _0x3d4d9c=0x0;_0x3d4d9c<_0x38b9b2[_0x321d51('0x11d0')]['errors'][_0x321d51('0x25ae')];_0x3d4d9c++){_0x4dab30['error']({'title':_0x38b9b2['data'][_0x321d51('0xcd2')][_0x3d4d9c][_0x321d51('0x62e')],'msg':_0x38b9b2[_0x321d51('0x11d0')]['errors'][_0x3d4d9c][_0x321d51('0x27e8')]});}}else _0x4dab30[_0x321d51('0x8c8')]({'title':_0x38b9b2[_0x321d51('0x2833')]?_0x321d51('0x27f2')+_0x38b9b2['status']+'\x20-\x20'+_0x38b9b2[_0x321d51('0x1fd7')]:'api.voiceExtension.update','msg':_0x38b9b2[_0x321d51('0x11d0')]?JSON['stringify'](_0x38b9b2['data'][_0x321d51('0x27e8')]):_0x38b9b2[_0x321d51('0x94f')]()});});}function _0x7c49e2(_0x434698){var _0x44dbcf=_0x423deb;_0xbaa59c[_0x44dbcf('0xcd2')]=[];var _0x1bb7a9=_0x4de575[_0x44dbcf('0xa5')]()[_0x44dbcf('0x13e4')]('Are\x20you\x20sure?')[_0x44dbcf('0xd0')](_0x44dbcf('0x265a'))[_0x44dbcf('0x4d1')](_0x44dbcf('0x9ed'))['ok'](_0x44dbcf('0x2198'))[_0x44dbcf('0x2c1')](_0x44dbcf('0x8a3'))['targetEvent'](_0x434698);_0x4de575[_0x44dbcf('0x26b2')](_0x1bb7a9)[_0x44dbcf('0xe19')](function(){var _0x7ef62f=_0x44dbcf;_0x52bf47[_0x7ef62f('0x1979')][_0x7ef62f('0x229e')]({'id':_0xbaa59c[_0x7ef62f('0x1d7f')]['id']})[_0x7ef62f('0xe59')][_0x7ef62f('0xe19')](function(){var _0x37fac1=_0x7ef62f;_0x32d445()[_0x37fac1('0xa8b')](_0xbaa59c[_0x37fac1('0x2724')],{'id':_0xbaa59c[_0x37fac1('0x1d7f')]['id']}),_0x4dab30['success']({'title':_0x37fac1('0x240f'),'msg':(_0xbaa59c[_0x37fac1('0x1d7f')][_0x37fac1('0x2623')]||'inboundroute')+_0x37fac1('0x2182')}),_0x5776c8(_0xbaa59c[_0x37fac1('0x1d7f')]);})[_0x7ef62f('0x223b')](function(_0x38f3a2){var _0x3070fe=_0x7ef62f;if(_0x38f3a2['data']&&_0x38f3a2['data'][_0x3070fe('0xcd2')]&&_0x38f3a2['data'][_0x3070fe('0xcd2')][_0x3070fe('0x25ae')]){_0xbaa59c[_0x3070fe('0xcd2')]=_0x38f3a2[_0x3070fe('0x11d0')][_0x3070fe('0xcd2')]||[{'message':_0x38f3a2['toString'](),'type':_0x3070fe('0x269e')}];for(var _0x9dd385=0x0;_0x9dd385<_0x38f3a2[_0x3070fe('0x11d0')][_0x3070fe('0xcd2')]['length'];_0x9dd385++){_0x4dab30['error']({'title':_0x38f3a2['data'][_0x3070fe('0xcd2')][_0x9dd385]['type'],'msg':_0x38f3a2[_0x3070fe('0x11d0')][_0x3070fe('0xcd2')][_0x9dd385][_0x3070fe('0x27e8')]});}}else _0x4dab30[_0x3070fe('0x8c8')]({'title':_0x38f3a2['status']?_0x3070fe('0x27f2')+_0x38f3a2[_0x3070fe('0x2833')]+_0x3070fe('0x1b7c')+_0x38f3a2[_0x3070fe('0x1fd7')]:_0x3070fe('0x269e'),'msg':_0x38f3a2[_0x3070fe('0x11d0')]?JSON[_0x3070fe('0x3ad')](_0x38f3a2[_0x3070fe('0x11d0')][_0x3070fe('0x27e8')]):_0x38f3a2[_0x3070fe('0x27e8')]||_0x38f3a2[_0x3070fe('0x94f')]()});});},function(){});}function _0x190da8(_0x24084a){return _0x24084a===null?undefined:new Date(_0x24084a);}function _0x5776c8(_0xa5963e){_0x4de575['hide'](_0xa5963e);}}const _0x2c62c4=_0x1d5a27,_0x18a5e9=_0x59426a['p']+_0xb635d2('0x2448'),_0x475e1b=_0x59426a['p']+_0xb635d2('0x2053'),_0x35f307=_0x59426a['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html/dialog-[chunkhash].html',_0x446b9c=_0x59426a['p']+_0xb635d2('0x1ca5'),_0x442b85=_0x59426a['p']+_0xb635d2('0x1f32'),_0x3903eb=_0x59426a['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html/dialog-[chunkhash].html',_0x3e6038=_0x59426a['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html/dialog-[chunkhash].html',_0x15b674=_0x59426a['p']+_0xb635d2('0x198c'),_0x5f37c3=_0x59426a['p']+_0xb635d2('0x1be0'),_0x3d3c6f=_0x59426a['p']+_0xb635d2('0x89f'),_0x355782=_0x59426a['p']+_0xb635d2('0x26c4'),_0x397eea=_0x59426a['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog-[chunkhash].html',_0x4f6d8b=_0x59426a['p']+_0xb635d2('0xc78');_0x5eab4e[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),'Auth'];var _0x804842={'agi':_0x18a5e9,'custom':_0x475e1b,'dial':_0x35f307,'externaldial':_0x446b9c,'goto':_0x442b85,'hangup':_0x3903eb,'internaldial':_0x3e6038,'interval':_0x15b674,'playback':_0x5f37c3,'queue':_0x3d3c6f,'ringgroup':_0x355782,'set':_0x397eea,'voicemail':_0x4f6d8b};function _0x5eab4e(_0x26c859,_0x4671f1,_0x5a4624,_0x4d98e5,_0x3e5f35){var _0xef62ef=_0xb635d2,_0x3ca61d=this;_0x3ca61d['currentUser']=_0x3e5f35[_0xef62ef('0x1ef8')](),_0x3ca61d[_0xef62ef('0x1d7f')]={},_0x3ca61d[_0xef62ef('0xcf1')]={'count':0x0,'rows':[]},_0x3ca61d['selectedInboundRouteApps']=[],_0x3ca61d[_0xef62ef('0xb3d')],_0x3ca61d[_0xef62ef('0xa16')]={'sort':_0xef62ef('0xb33')},_0x3ca61d[_0xef62ef('0x23bb')]=_0x32d445()[_0xef62ef('0x1337')](_0x32d445()[_0xef62ef('0x14c')]([{'app':_0xef62ef('0x2102'),'appType':'interval','types':['always',_0xef62ef('0x261d'),_0xef62ef('0x15a8')],'fields':[],'isApp':![]},{'app':_0xef62ef('0x9'),'appType':'queue','context':_0xef62ef('0x1f79'),'type':_0xef62ef('0x1e60'),'appdata':_0xef62ef('0x2342'),'icon':_0xef62ef('0x27be'),'options':'xX','interval':_0xef62ef('0x2292'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0xef62ef('0x219b'),'field':{'name':_0xef62ef('0x392'),'key':_0xef62ef('0x1cb3'),'prefix':_0xef62ef('0x57b')},'route':_0xef62ef('0x392'),'filters':{'fields':_0xef62ef('0x22db'),'sort':_0xef62ef('0x2623'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0xef62ef('0x671'),'field':{'name':_0xef62ef('0x26a8'),'key':_0xef62ef('0x2623')},'route':_0xef62ef('0x25d5'),'filters':{'type':_0xef62ef('0x1a7a'),'fields':'id,name,type','sort':_0xef62ef('0x2623'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0xef62ef('0x9'),'name':_0xef62ef('0x26a8'),'type':_0xef62ef('0x14b8'),'values':_0xef62ef('0x671'),'value':_0xef62ef('0x15df'),'option':_0xef62ef('0x15df'),'required':!![],'param':0x0},{'title':_0xef62ef('0x104a'),'name':_0xef62ef('0x2116'),'type':_0xef62ef('0x1bc6'),'param':0x1},{'title':'Url','name':_0xef62ef('0x3ae'),'type':_0xef62ef('0x1bc6'),'param':0x2},{'title':_0xef62ef('0x2458'),'name':_0xef62ef('0x392'),'type':_0xef62ef('0x14b8'),'values':_0xef62ef('0x219b'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','option':'sound.name','defaultValues':[{'value':'\x27\x27','option':_0xef62ef('0x1b16')}],'param':0x3},{'title':_0xef62ef('0x784'),'name':_0xef62ef('0x2058'),'type':_0xef62ef('0x1c60'),'min':0x0,'param':0x4},{'title':'Agi','name':_0xef62ef('0x401'),'type':_0xef62ef('0x1bc6'),'param':0x5},{'title':_0xef62ef('0x2214'),'name':_0xef62ef('0xba1'),'type':_0xef62ef('0x1bc6'),'param':0x6},{'title':_0xef62ef('0x18d8'),'name':_0xef62ef('0x1874'),'type':_0xef62ef('0x1bc6'),'param':0x7},{'title':_0xef62ef('0x100'),'name':_0xef62ef('0x2594'),'type':_0xef62ef('0x1bc6'),'param':0x8},{'title':_0xef62ef('0x2640'),'name':'position','type':_0xef62ef('0x1c60'),'min':0x0,'param':0x9},{'title':_0xef62ef('0x98a'),'name':_0xef62ef('0x62d'),'type':_0xef62ef('0x1024'),'general':!![]}]},{'app':'Playback','appType':_0xef62ef('0x1fd6'),'context':_0xef62ef('0x1f79'),'type':_0xef62ef('0x1e60'),'icon':_0xef62ef('0x27be'),'interval':_0xef62ef('0x2292'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0xef62ef('0x219b'),'field':{'name':_0xef62ef('0x392'),'key':_0xef62ef('0x1cb3'),'prefix':_0xef62ef('0x57b')},'route':_0xef62ef('0x392'),'filters':{'fields':'id,name,save_name','sort':_0xef62ef('0x2623'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0xef62ef('0x22eb'),'name':'appdata','type':_0xef62ef('0x14b8'),'values':'sounds','value':_0xef62ef('0x1ad4'),'option':_0xef62ef('0x120e'),'required':!![],'param':0x0},{'title':'Options','name':_0xef62ef('0x2116'),'type':_0xef62ef('0x1bc6'),'param':0x1},{'title':'Answer','name':'answer','type':_0xef62ef('0x1024'),'general':!![]}]},{'app':'Dial','appType':'dial','context':'from-voip-provider','type':_0xef62ef('0x1e60'),'icon':_0xef62ef('0x27be'),'interval':'*,*,*,*','options':'xX','isApp':!![],'fields':[{'title':_0xef62ef('0x143'),'name':_0xef62ef('0x1ca9'),'type':_0xef62ef('0x1bc6'),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0xef62ef('0x1c60'),'min':0x0,'param':0x1},{'title':_0xef62ef('0x104a'),'name':'options','type':_0xef62ef('0x1bc6'),'param':0x2},{'title':_0xef62ef('0x1685'),'name':_0xef62ef('0x2647'),'type':_0xef62ef('0x1bc6'),'param':0x3}]},{'app':_0xef62ef('0x8e7'),'appType':'internalDial','context':_0xef62ef('0x1f79'),'type':'Inbound','icon':'icon-apps','interval':_0xef62ef('0x2292'),'options':'xX','isApp':!![],'extraApi':[{'name':'users','field':{'name':_0xef62ef('0x10c6'),'key':_0xef62ef('0x2623'),'prefix':_0xef62ef('0x224b')},'route':_0xef62ef('0x10c6'),'filters':{'fields':_0xef62ef('0xcb6'),'sort':_0xef62ef('0x2623'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0xef62ef('0x108')},{'id':0xcb,'role':_0xef62ef('0x1e7c')}]}}],'fields':[{'title':_0xef62ef('0x2630'),'name':_0xef62ef('0x10c6'),'type':_0xef62ef('0x14b8'),'values':_0xef62ef('0x2526'),'value':'\x27SIP/{{user.name}}\x27','option':'user.name','required':!![],'param':0x0},{'title':'Timeout','name':_0xef62ef('0x2058'),'type':_0xef62ef('0x1c60'),'min':0x0,'param':0x1},{'title':'Options','name':_0xef62ef('0x2116'),'type':_0xef62ef('0x1bc6'),'param':0x2},{'title':'Url','name':'url','type':_0xef62ef('0x1bc6'),'param':0x3}]},{'app':_0xef62ef('0x8e7'),'appType':'externalDial','context':_0xef62ef('0x1f79'),'type':'inbound','icon':_0xef62ef('0x27be'),'interval':_0xef62ef('0x2292'),'options':'xX','isApp':!![],'extraApi':[{'name':_0xef62ef('0x155e'),'field':{'name':_0xef62ef('0x1397'),'key':_0xef62ef('0x2623')},'route':_0xef62ef('0x1397'),'filters':{'fields':_0xef62ef('0x104'),'sort':_0xef62ef('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':'Trunk','name':'trunk','type':_0xef62ef('0x14b8'),'values':_0xef62ef('0x155e'),'value':'trunk.name','option':_0xef62ef('0x280d'),'required':!![],'param':0x0},{'title':_0xef62ef('0x54c'),'name':_0xef62ef('0x1ef5'),'required':!![],'type':_0xef62ef('0x1bc6')},{'title':_0xef62ef('0x784'),'name':'timeout','type':_0xef62ef('0x1c60'),'min':0x0,'param':0x1},{'title':_0xef62ef('0x104a'),'name':_0xef62ef('0x2116'),'type':_0xef62ef('0x1bc6'),'param':0x2},{'title':_0xef62ef('0x1685'),'name':_0xef62ef('0x2647'),'type':_0xef62ef('0x1bc6'),'param':0x3}]},{'app':'Dial','appType':'ringGroup','context':'from-voip-provider','type':_0xef62ef('0x1a7a'),'icon':_0xef62ef('0x27be'),'interval':_0xef62ef('0x2292'),'options':'xX','isApp':!![],'extraApi':[{'name':'users','field':{'name':'multipleUsers','key':_0xef62ef('0x2623'),'prefix':_0xef62ef('0x224b')},'route':_0xef62ef('0x10c6'),'filters':{'fields':'id,name,role','sort':_0xef62ef('0x2623'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0xef62ef('0x1e7c')}]}}],'fields':[{'title':'User','name':_0xef62ef('0x12a0'),'type':_0xef62ef('0x14b8'),'multiple':!![],'values':_0xef62ef('0x2526'),'value':_0xef62ef('0x204e'),'option':'multipleUsers.name','required':!![],'param':0x0},{'title':_0xef62ef('0x784'),'name':_0xef62ef('0x2058'),'type':_0xef62ef('0x1c60'),'min':0x0,'param':0x1},{'title':'Options','name':_0xef62ef('0x2116'),'type':_0xef62ef('0x1bc6'),'param':0x2},{'title':'Url','name':'url','type':_0xef62ef('0x1bc6'),'param':0x3}]},{'app':_0xef62ef('0x10f2'),'alias':_0xef62ef('0x1ae3'),'appType':_0xef62ef('0x401'),'context':'from-voip-provider','type':'inbound','icon':_0xef62ef('0x27be'),'interval':_0xef62ef('0x2292'),'isApp':!![],'extraApi':[{'name':_0xef62ef('0x1d39'),'field':{'name':_0xef62ef('0x38b'),'key':_0xef62ef('0x2623'),'prefix':_0xef62ef('0xcde')},'route':_0xef62ef('0x20c9'),'filters':{'fields':_0xef62ef('0x104'),'sort':'name','nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0xef62ef('0x27c9'),'name':_0xef62ef('0x38b'),'type':_0xef62ef('0x14b8'),'values':'projects','value':_0xef62ef('0x2728'),'option':_0xef62ef('0x1b0d'),'required':!![],'param':0x0}]},{'app':_0xef62ef('0x1fa1'),'appType':_0xef62ef('0x1f4e'),'context':_0xef62ef('0x1f79'),'type':_0xef62ef('0x1e60'),'icon':_0xef62ef('0x27be'),'interval':_0xef62ef('0x2292'),'isApp':!![],'extraApi':[{'name':_0xef62ef('0x3c1'),'field':{'name':_0xef62ef('0x1318'),'key':_0xef62ef('0x2623')},'route':_0xef62ef('0x2768'),'filters':{'fields':'id,name','sort':_0xef62ef('0x2623'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0xef62ef('0x1dd2'),'name':_0xef62ef('0x1318'),'type':'apiselect','values':_0xef62ef('0x3c1'),'value':_0xef62ef('0x291'),'option':_0xef62ef('0x291'),'required':!![],'param':0x0},{'title':_0xef62ef('0x256b'),'name':_0xef62ef('0x1530'),'type':_0xef62ef('0x1bc6'),'required':!![],'param':0x1},{'title':_0xef62ef('0x23fb'),'name':'priority','type':'text','required':!![],'param':0x2}]},{'app':'hangup','appType':_0xef62ef('0x1e92'),'context':_0xef62ef('0x1f79'),'type':_0xef62ef('0x1e60'),'icon':_0xef62ef('0x27be'),'interval':_0xef62ef('0x2292'),'isApp':!![],'fields':[{'title':_0xef62ef('0x14'),'name':_0xef62ef('0x26d2'),'type':_0xef62ef('0x2e6'),'param':0x0,'values':[{'option':_0xef62ef('0x21f9'),'value':_0xef62ef('0xfd4')},{'option':_0xef62ef('0x6f4'),'value':_0xef62ef('0x17c6')},{'option':_0xef62ef('0x20fd'),'value':'\x2717\x27'},{'option':_0xef62ef('0x18f0'),'value':_0xef62ef('0x2433')},{'option':'HANGUPCAUSE_21','value':_0xef62ef('0x5da')},{'option':_0xef62ef('0x12b'),'value':'\x2722\x27'},{'option':_0xef62ef('0x202c'),'value':_0xef62ef('0xecb')},{'option':'HANGUPCAUSE_38','value':_0xef62ef('0x1724')},{'option':_0xef62ef('0x50a'),'value':_0xef62ef('0x8a9')}],'translate':!![],'required':!![],'general':!![]}]},{'app':'Set','appType':'set','context':_0xef62ef('0x1f79'),'type':_0xef62ef('0x1e60'),'separator':'=','icon':_0xef62ef('0x27be'),'interval':_0xef62ef('0x2292'),'extraApi':[{'name':_0xef62ef('0x1a9e'),'field':{'name':_0xef62ef('0x2623'),'key':_0xef62ef('0x2623')},'route':_0xef62ef('0x19a5'),'filters':{'fields':_0xef62ef('0x104'),'sort':_0xef62ef('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0xef62ef('0x1a9d'),'name':'name','type':_0xef62ef('0x14b8'),'values':_0xef62ef('0x1a9e'),'value':'name.name','option':'name.name','required':!![],'param':0x0},{'title':_0xef62ef('0x653'),'name':_0xef62ef('0x2'),'type':'text','required':!![],'param':0x1}]},{'app':null,'appType':_0xef62ef('0x261d'),'icon':'icon-apps','type':_0xef62ef('0x1e60'),'interval':_0xef62ef('0x2292'),'isApp':!![],'fields':[{'title':_0xef62ef('0x1a4d'),'name':'app','type':_0xef62ef('0x1bc6'),'required':!![],'param':0x0},{'title':_0xef62ef('0x374'),'name':_0xef62ef('0x26d2'),'type':'text','param':0x1}]},{'app':_0xef62ef('0x22c0'),'appType':'voicemail','context':'from-voip-provider','icon':_0xef62ef('0x27be'),'type':_0xef62ef('0x1e60'),'interval':_0xef62ef('0x2292'),'isApp':!![],'extraApi':[{'name':_0xef62ef('0x1ec1'),'field':{'name':_0xef62ef('0x27bf'),'key':_0xef62ef('0xd8c'),'suffix':_0xef62ef('0x26c2')},'route':'voiceMail','filters':{'fields':_0xef62ef('0x348'),'sort':_0xef62ef('0xd8c'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0xef62ef('0x275a'),'name':'voiceMail','type':_0xef62ef('0x14b8'),'values':_0xef62ef('0x1ec1'),'value':_0xef62ef('0x2628'),'option':_0xef62ef('0x1e71'),'required':!![],'param':0x0},{'title':_0xef62ef('0x104a'),'name':_0xef62ef('0x2116'),'type':_0xef62ef('0x1bc6'),'param':0x1}]}],[_0xef62ef('0xf2b')]),{'isApp':![]}),_0x3ca61d['list']={'group':{'name':_0xef62ef('0x866'),'pull':_0xef62ef('0x2384')},'animation':0x64,'sort':![]},_0x3ca61d['applications']={'group':{'name':_0xef62ef('0x328'),'put':'opt1'},'animation':0x64,'onAdd':function _0x2b6e9f(_0x58e806){_0x5c21ae(_0x58e806,_0x58e806['newIndex']);},'onSort':function _0x5e79ea(){_0x446903();}},_0x3ca61d['init']=_0x2124b9,_0x3ca61d['deleteConfirm']=_0xc01edf,_0x3ca61d[_0xef62ef('0x1a32')]=_0x1b304d,_0x3ca61d[_0xef62ef('0x6cb')]=_0x5c21ae,_0x3ca61d[_0xef62ef('0xf50')]=_0x49c5ef,_0x3ca61d[_0xef62ef('0x2825')]=_0x33998d,_0x3ca61d['deleteSelectedInboundRouteApps']=_0x428d45,_0x3ca61d[_0xef62ef('0x20b4')]=_0x446903,_0x3ca61d['getIntervals']=_0x1774c2;function _0x2124b9(_0x522b9e,_0x5c0abf){var _0x2c1b0e=_0xef62ef;_0x3ca61d['inboundroute']=_0x522b9e,_0x3ca61d[_0x2c1b0e('0xb3d')]=typeof _0x5c0abf!=='undefined'?_0x5c0abf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3ca61d[_0x2c1b0e('0x2358')][_0x2c1b0e('0x1ebc')]=!_0x3ca61d[_0x2c1b0e('0xb3d')][_0x2c1b0e('0x12bc')]?!![]:![],_0x3ca61d[_0x2c1b0e('0xa16')]['VoiceExtensionId']=_0x522b9e['id'],_0x3ca61d[_0x2c1b0e('0xa16')]['isApp']=!![],_0x3ca61d[_0x2c1b0e('0xa16')][_0x2c1b0e('0x1bbe')]=!![],_0x3ca61d['getInboundRouteApps'](),_0x3ca61d[_0x2c1b0e('0x157')]();}function _0xc01edf(_0x58d2c4,_0x966278,_0xb55ac1){var _0x4bf57d=_0xef62ef,_0x431d52=_0x4671f1['confirm']()['title'](_0x4bf57d('0x21ed'))['htmlContent'](_0x4bf57d('0xab2')+_0x58d2c4[_0x4bf57d('0xf2b')]+_0x4bf57d('0x27bb')+_0x4bf57d('0x21bd'))[_0x4bf57d('0x4d1')](_0x4bf57d('0x21d1'))[_0x4bf57d('0x1345')](_0xb55ac1)['ok']('OK')[_0x4bf57d('0x2c1')](_0x4bf57d('0x17'));_0x4671f1[_0x4bf57d('0x26b2')](_0x431d52)[_0x4bf57d('0xe19')](function(){var _0x21415a=_0x4bf57d;_0x3ca61d[_0x21415a('0xcf1')][_0x21415a('0x16a7')]['splice'](_0x966278,0x1),_0x446903();},function(){var _0x2032b2=_0x4bf57d;console[_0x2032b2('0x1fe9')](_0x2032b2('0x17'));});}function _0x5c21ae(_0x37a04c,_0x5d4fd7){var _0x1b169d=_0xef62ef;if(_0x3ca61d['inboundrouteApps'][_0x1b169d('0x16a7')]['length']){var _0x333f10=_0x3ca61d['inboundrouteApps']['rows'][_0x5d4fd7]?_0x3ca61d[_0x1b169d('0xcf1')][_0x1b169d('0x16a7')][_0x5d4fd7]:_0x3ca61d[_0x1b169d('0xcf1')][_0x1b169d('0x16a7')][0x0],_0x4118ad=(_0x333f10[_0x1b169d('0xf44')]||_0x333f10[_0x1b169d('0xf2b')])[_0x1b169d('0x20dd')]();_0x4671f1[_0x1b169d('0x26b2')]({'controller':_0x1b169d('0x28a')[_0x1b169d('0x1007')](_0x4118ad,_0x1b169d('0x2893')),'controllerAs':'vm','templateUrl':_0x804842[_0x4118ad],'parent':angular[_0x1b169d('0x24a1')](_0x5a4624[_0x1b169d('0x19b2')]),'targetEvent':_0x37a04c,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0x333f10,'inboundroute':_0x3ca61d['inboundroute'],'crudPermissions':_0x3ca61d[_0x1b169d('0xb3d')]}})[_0x1b169d('0xe19')](function(_0x179d81){var _0x50480c=_0x1b169d;_0x179d81&&(_0x179d81['id']?_0x3ca61d[_0x50480c('0xcf1')]['rows'][_0x5d4fd7]=_0x179d81:_0x3ca61d[_0x50480c('0xcf1')][_0x50480c('0x16a7')]['splice'](_0x5d4fd7,0x0,_0x179d81),_0x446903());})[_0x1b169d('0x223b')](function(_0x362d43){var _0x4a4ccd=_0x1b169d;_0x362d43&&_0x4d98e5[_0x4a4ccd('0x8c8')]({'title':_0x362d43[_0x4a4ccd('0x2833')]?'API:'+_0x362d43[_0x4a4ccd('0x2833')]+'\x20-\x20'+_0x362d43[_0x4a4ccd('0x1fd7')]:_0x4a4ccd('0x1c4b'),'msg':_0x362d43[_0x4a4ccd('0x11d0')]?JSON[_0x4a4ccd('0x3ad')](_0x362d43[_0x4a4ccd('0x11d0')]):_0x362d43[_0x4a4ccd('0x94f')]()});});}}function _0x49c5ef(_0x435434,_0x3d47c5){var _0x8a848c=_0xef62ef;if(_0x3ca61d[_0x8a848c('0xcf1')][_0x8a848c('0x16a7')][_0x8a848c('0x25ae')]){var _0x922f54=_0x3ca61d[_0x8a848c('0xcf1')][_0x8a848c('0x16a7')][_0x3d47c5]?_0x3ca61d['inboundrouteApps'][_0x8a848c('0x16a7')][_0x3d47c5]:_0x3ca61d[_0x8a848c('0xcf1')][_0x8a848c('0x16a7')][0x0];_0x4671f1[_0x8a848c('0x26b2')]({'controller':'EditInboundAppintervalDialogController','controllerAs':'vm','templateUrl':_0x15b674,'parent':angular[_0x8a848c('0x24a1')](_0x5a4624[_0x8a848c('0x19b2')]),'targetEvent':_0x435434,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x922f54[_0x8a848c('0x134c')],'IntervalId':_0x922f54[_0x8a848c('0x1fc1')],'application':!![]},'intervals':[],'crudPermissions':_0x3ca61d['crudPermissions']}})[_0x8a848c('0xe19')](function(_0x37805a){var _0x58cdcd=_0x8a848c;_0x37805a&&(_0x922f54['interval']=_0x37805a[_0x58cdcd('0x134c')]||_0x58cdcd('0x2292'),_0x922f54[_0x58cdcd('0x1fc1')]=_0x37805a[_0x58cdcd('0x1fc1')]||null,_0x446903());});}}function _0x446903(){var _0x115512=_0xef62ef,_0x1695cd=[_0x115512('0x26a8'),_0x115512('0x1fd6')],_0x37b96c=0x2,_0x3848fa=[];_0x3848fa[_0x115512('0xb76')]({'type':_0x115512('0x1a7a'),'app':_0x115512('0x2771'),'appdata':_0x115512('0xef8'),'context':_0x3ca61d['inboundroute']['context'],'exten':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x632')],'priority':_0x37b96c++,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']}),_0x3848fa[_0x115512('0xb76')]({'type':_0x115512('0x1a7a'),'app':'Set','appdata':_0x115512('0xf90'),'context':_0x3ca61d['inboundroute'][_0x115512('0x1318')],'exten':_0x3ca61d[_0x115512('0x1d7f')]['exten'],'priority':_0x37b96c++,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']}),_0x3848fa['push']({'type':'inbound','app':'Set','appdata':_0x115512('0x6b7'),'context':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x1318')],'exten':_0x3ca61d['inboundroute']['exten'],'priority':_0x37b96c++,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']}),_0x3848fa[_0x115512('0xb76')]({'type':'inbound','app':_0x115512('0x2771'),'appdata':'MONITOR_OPTIONS=ab','context':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x1318')],'exten':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x632')],'priority':_0x37b96c++,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']});for(var _0x5de9d3=0x0,_0x2f831f=0x0;_0x5de9d3<_0x3ca61d[_0x115512('0xcf1')]['rows'][_0x115512('0x25ae')];_0x5de9d3++,_0x2f831f=0x0){var _0x4ee79c=_0x3ca61d[_0x115512('0xcf1')][_0x115512('0x16a7')][_0x5de9d3],_0x2a0b16=[],_0x438d5d=[];_0x4ee79c[_0x115512('0x10e0')]=_0x4ee79c['interval']!==_0x115512('0x2292')?[_0x4ee79c['interval']]:_0x4ee79c[_0x115512('0x1fc1')]?_0x32d445()[_0x115512('0x65a')](_0x32d445()[_0x115512('0x2891')](_0x3ca61d[_0x115512('0x10e0')][_0x115512('0x16a7')],{'IntervalId':_0x4ee79c[_0x115512('0x1fc1')]}),_0x115512('0x134c')):[],_0x4ee79c[_0x115512('0x1318')]=_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x1318')],_0x4ee79c[_0x115512('0x632')]=_0x3ca61d['inboundroute'][_0x115512('0x632')];_0x4ee79c[_0x115512('0x62e')]&&(_0x4ee79c['type']=_0x4ee79c[_0x115512('0x62e')][_0x115512('0x20dd')]());typeof _0x4ee79c[_0x115512('0x62d')]!==_0x115512('0x1143')&&(_0x1695cd[_0x115512('0x1c43')](_0x4ee79c[_0x115512('0xf2b')][_0x115512('0x20dd')]())&&_0x4ee79c[_0x115512('0xf44')]!==_0x115512('0x261d')&&(_0x4ee79c[_0x115512('0x62d')]?(_0x2a0b16['push']({'type':_0x4ee79c[_0x115512('0x62e')][_0x115512('0x20dd')](),'app':_0x115512('0x4aa'),'appdata':'$[${XCALLY-MOTION-ANSWER}=0]?Answer','context':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x1318')],'exten':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x632')],'priority':_0x4ee79c[_0x115512('0x10e0')][_0x115512('0x25ae')]+_0x37b96c+_0x2f831f++,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']}),_0x2a0b16[_0x115512('0xb76')]({'type':_0x4ee79c[_0x115512('0x62e')]['toLowerCase'](),'app':'Set','appdata':'XCALLY-MOTION-ANSWER=1','context':_0x3ca61d[_0x115512('0x1d7f')]['context'],'exten':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x632')],'priority':_0x4ee79c[_0x115512('0x10e0')][_0x115512('0x25ae')]+_0x37b96c+_0x2f831f++,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']})):(_0x2a0b16[_0x115512('0xb76')]({'type':_0x4ee79c[_0x115512('0x62e')][_0x115512('0x20dd')](),'app':'ExecIf','appdata':_0x115512('0x185e'),'context':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x1318')],'exten':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x632')],'priority':_0x4ee79c[_0x115512('0x10e0')]['length']+_0x37b96c+_0x2f831f++,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']}),_0x2a0b16[_0x115512('0xb76')]({'type':_0x4ee79c[_0x115512('0x62e')]['toLowerCase'](),'app':_0x115512('0x2771'),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x1318')],'exten':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x632')],'priority':_0x4ee79c[_0x115512('0x10e0')][_0x115512('0x25ae')]+_0x37b96c+_0x2f831f++,'VoiceExtensionId':_0x3ca61d['inboundroute']['id']}))));for(var _0x6d6b04=0x0;_0x6d6b04<_0x4ee79c[_0x115512('0x10e0')]['length'];_0x6d6b04++){var _0x24f411=_0x37b96c+_0x4ee79c[_0x115512('0x10e0')][_0x115512('0x25ae')],_0x5f2f6f=_0x6d6b04===_0x4ee79c['intervals'][_0x115512('0x25ae')]-0x1?_0x37b96c+_0x2a0b16[_0x115512('0x25ae')]+_0x438d5d[_0x115512('0x25ae')]+0x2:_0x37b96c+_0x6d6b04+0x1;_0x2a0b16[_0x115512('0x1c8e')](_0x6d6b04,0x0,{'type':'inbound','app':_0x115512('0x1476'),'appdata':_0x4ee79c['intervals'][_0x6d6b04]+'?'+_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x1318')]+_0x115512('0x126f')+_0x24f411+':'+_0x3ca61d['inboundroute'][_0x115512('0x1318')]+_0x115512('0x126f')+_0x5f2f6f,'exten':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x632')],'context':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x1318')],'priority':_0x37b96c+_0x6d6b04,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']});}_0x4ee79c['priority']=_0x2a0b16['length']?_0x32d445()[_0x115512('0x27ed')](_0x2a0b16)[_0x115512('0xb33')]+0x1:_0x37b96c,_0x37b96c=(_0x438d5d[_0x115512('0x25ae')]?_0x32d445()[_0x115512('0x27ed')](_0x438d5d)[_0x115512('0xb33')]:_0x4ee79c['priority'])+0x1,_0x3848fa=_0x32d445()['concat'](_0x3848fa,_0x2a0b16,[_0x4ee79c],_0x438d5d);}_0x3848fa[_0x115512('0xb76')]({'type':'inbound','app':_0x115512('0x9b6'),'exten':_0x3ca61d[_0x115512('0x1d7f')][_0x115512('0x632')],'context':_0x3ca61d[_0x115512('0x1d7f')]['context'],'priority':_0x37b96c,'VoiceExtensionId':_0x3ca61d[_0x115512('0x1d7f')]['id']}),_0x26c859[_0x115512('0x1979')][_0x115512('0x25d9')]({'id':_0x3ca61d[_0x115512('0x1d7f')]['id']},_0x32d445()[_0x115512('0x14c')](_0x3848fa,_0x115512('0xb33')))['$promise'][_0x115512('0xe19')](function(_0xe25530){var _0x5164f4=_0x115512;_0x3ca61d[_0x5164f4('0xcf1')][_0x5164f4('0x16a7')]=_0xe25530[_0x5164f4('0x16a7')];})[_0x115512('0x223b')](function(_0x9e916c){var _0x1b07ed=_0x115512;console[_0x1b07ed('0x8c8')](_0x9e916c);});}function _0x224374(_0xc97afb){var _0xb43730=_0xef62ef;_0x3ca61d[_0xb43730('0xcf1')]=_0xc97afb||{'count':0x0,'rows':[]};}function _0x1774c2(){var _0x53c389=_0xef62ef;return _0x26c859[_0x53c389('0x134c')][_0x53c389('0x22d5')]({'fields':_0x53c389('0x1a19')})['$promise'][_0x53c389('0xe19')](function(_0x53117e){var _0x5305ee=_0x53c389;_0x3ca61d[_0x5305ee('0x10e0')]=_0x53117e;})[_0x53c389('0x223b')](function(_0x124c22){console['error'](_0x124c22);});}function _0x1b304d(){var _0x4a8a4a=_0xef62ef;_0x3ca61d['promise']=_0x26c859[_0x4a8a4a('0x1979')]['get'](_0x3ca61d[_0x4a8a4a('0xa16')],_0x224374)['$promise'];}function _0x33998d(_0x32125b){var _0x15e6cd=_0xef62ef;_0x32d445()['remove'](_0x3ca61d[_0x15e6cd('0xcf1')][_0x15e6cd('0x16a7')],{'id':_0x32125b['id']}),_0x446903(),_0x4d98e5[_0x15e6cd('0x425')]({'title':_0x15e6cd('0x13bf'),'msg':_0x32125b['app']?_0x32125b[_0x15e6cd('0xf2b')]+_0x15e6cd('0x2182'):''});}function _0x428d45(_0x277a8c){var _0x2464d4=_0xef62ef,_0x11b964=_0x4671f1[_0x2464d4('0xa5')]()[_0x2464d4('0x13e4')](_0x2464d4('0x6de'))[_0x2464d4('0x221c')](_0x2464d4('0xab2')+_0x3ca61d['selectedInboundRouteApps'][_0x2464d4('0x25ae')]+_0x2464d4('0x5bc')+_0x2464d4('0x21bd'))[_0x2464d4('0x4d1')](_0x2464d4('0x17bf'))['targetEvent'](_0x277a8c)['ok']('OK')[_0x2464d4('0x2c1')](_0x2464d4('0x17'));_0x4671f1[_0x2464d4('0x26b2')](_0x11b964)[_0x2464d4('0xe19')](function(){var _0x5030b3=_0x2464d4;_0x3ca61d['selectedInboundRouteApps'][_0x5030b3('0x1d7e')](function(_0x3e4b95){var _0x3731bb=_0x5030b3;_0x32d445()[_0x3731bb('0xa8b')](_0x3ca61d[_0x3731bb('0xcf1')][_0x3731bb('0x16a7')],{'id':_0x3e4b95['id']});}),_0x3ca61d[_0x5030b3('0x23aa')]=[],_0x446903();});}}const _0x44aa57=_0x5eab4e;_0x53c0c6[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),'inboundrouteApp','inboundroute',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x53c0c6(_0x8de093,_0x2b9d64,_0x40e096,_0x3bbb53,_0x370df0,_0x59e0e2,_0x3f04da,_0x42459b){var _0x300fb1=_0xb635d2,_0x1441a6=this;_0x1441a6[_0x300fb1('0x15a5')]=_0x3f04da[_0x300fb1('0x1ef8')](),_0x1441a6['errors']=[],_0x1441a6[_0x300fb1('0x13e4')]='VOICE.EDIT_'+(_0x3bbb53[_0x300fb1('0xf44')]||_0x3bbb53[_0x300fb1('0xf2b')])['toUpperCase'](),_0x1441a6[_0x300fb1('0x401')]=angular['copy'](_0x3bbb53),_0x1441a6['crudPermissions']=_0x42459b,_0x1441a6[_0x300fb1('0x1ccb')]={};if(_0x1441a6[_0x300fb1('0x401')]['appdata'])switch(_0x1441a6['agi'][_0x300fb1('0xf44')]?_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0xf44')]['toLowerCase']():_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0xf2b')]['toLowerCase']()){case _0x300fb1('0x261d'):break;case _0x300fb1('0xc11'):{var _0x3731f6=_0x1441a6[_0x300fb1('0x401')]['appdata'][_0x300fb1('0x1745')](',');_0x1441a6[_0x300fb1('0x401')]['key']=_0x3731f6[0x0],_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x174b')]=_0x3731f6[0x1],_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0xfcc')]=_0x3731f6[_0x300fb1('0xa19')](0x2,_0x3731f6[_0x300fb1('0x25ae')])[_0x300fb1('0x1537')](',');}break;case'amazonlex':{var _0x365e02=_0x1441a6['agi'][_0x300fb1('0x26d2')][_0x300fb1('0x1745')](',');_0x1441a6['agi'][_0x300fb1('0x22be')]=_0x365e02[0x0],_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x700')]=_0x365e02[0x1],_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x206a')]=_0x365e02[0x2],_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x191a')]=_0x365e02[0x3],_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0xfcc')]=_0x365e02[_0x300fb1('0xa19')](0x4,_0x365e02[_0x300fb1('0x25ae')])[_0x300fb1('0x1537')](',');}break;case _0x300fb1('0x400'):{var _0x4d767f=_0x1441a6[_0x300fb1('0x401')]['appdata'][_0x300fb1('0x1745')](',');_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x1ec4')]=isNaN(_0x4d767f[0x0])?_0x4d767f[0x0]:parseInt(_0x4d767f[0x0],0xa),_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x1bc6')]=_0x4d767f[_0x300fb1('0xa19')](0x1,_0x4d767f[_0x300fb1('0x25ae')])[_0x300fb1('0x1537')](',');}break;case _0x300fb1('0x27e8'):_0x1441a6[_0x300fb1('0x401')]['text']=_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x26d2')];break;case'set':_0x1441a6[_0x300fb1('0x401')]['name']=_0x1441a6['agi'][_0x300fb1('0x26d2')][_0x300fb1('0x1745')]('=')[0x0],_0x1441a6[_0x300fb1('0x401')]['value']=_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x26d2')]['split']('=')[0x1];break;case'agi':_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x38b')]=_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x26d2')];break;default:{var _0x53e9f7=_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x26d2')][_0x300fb1('0x1745')](',');_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x38b')]=_0x32d445()[_0x300fb1('0x14b4')](_0x53e9f7[0x0])?_0x53e9f7[0x0]:isNaN(_0x53e9f7[0x0])?_0x53e9f7[0x0]:parseInt(_0x53e9f7[0x0],0xa);}break;}else{}_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x62e')]&&_0x1441a6[_0x300fb1('0x401')]['type'][_0x300fb1('0x20dd')]()===_0x300fb1('0x1fdf')&&_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0xf44')][_0x300fb1('0x20dd')]()==='outbounddial'&&(_0x1441a6[_0x300fb1('0x401')]['prefix']=_0x1441a6['agi']['phone']?_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x1ef5')][_0x300fb1('0x1745')]('$')[0x0]:undefined,_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0x1b6f')]=_0x1441a6[_0x300fb1('0x401')][_0x300fb1('0xfca')]?_0x300fb1('0xd41')+_0x1441a6['agi']['callerID']:undefined);_0x1441a6[_0x300fb1('0xdd4')]=_0x22ebc3,_0x1441a6[_0x300fb1('0x2584')]=_0x2671a9,_0x3f04da[_0x300fb1('0x179e')](_0x300fb1('0xd14'))?_0x59e0e2['squareProject']['get']({'fields':_0x300fb1('0x104'),'sort':_0x300fb1('0x2623'),'nolimit':'true'})[_0x300fb1('0xe59')]['then'](function(_0x52e71b){var _0x1ed6ed=_0x300fb1;_0x1441a6['projects']=_0x52e71b[_0x1ed6ed('0x16a7')]||[];})[_0x300fb1('0x223b')](function(_0x109771){var _0xa5f921=_0x300fb1;_0x40e096[_0xa5f921('0x8c8')]({'title':_0x109771['status']?_0xa5f921('0x27f2')+_0x109771[_0xa5f921('0x2833')]+'\x20-\x20'+_0x109771[_0xa5f921('0x1fd7')]:_0xa5f921('0x1cde'),'msg':_0x109771[_0xa5f921('0x11d0')]?JSON[_0xa5f921('0x3ad')](_0x109771[_0xa5f921('0x11d0')]):_0x109771[_0xa5f921('0x94f')]()});}):_0x59e0e2[_0x300fb1('0x20c9')]['get']({'fields':_0x300fb1('0x104'),'sort':_0x300fb1('0x2623'),'nolimit':_0x300fb1('0x2206')})[_0x300fb1('0xe59')][_0x300fb1('0xe19')](function(_0x25e461){var _0x4ddfdb=_0x300fb1;_0x1441a6[_0x4ddfdb('0x1d39')]=_0x25e461['rows']||[];})[_0x300fb1('0xe19')](function(){var _0x1b9250=_0x300fb1;return _0x59e0e2[_0x1b9250('0xb59')]['get']({'userProfileId':_0x1441a6[_0x1b9250('0x15a5')][_0x1b9250('0x1d04')],'sectionId':0x44f})[_0x1b9250('0xe59')];})['then'](function(_0x34369a){var _0x56cf27=_0x300fb1,_0x2b8c8c=_0x34369a&&_0x34369a['rows']?_0x34369a[_0x56cf27('0x16a7')][0x0]:null;if(!_0x2b8c8c){var _0x3530cf=[],_0x46bc9f=null;_0x1441a6['agi']&&(_0x46bc9f=_0x32d445()[_0x56cf27('0xf15')](_0x1441a6[_0x56cf27('0x1d39')],{'name':_0x1441a6[_0x56cf27('0x401')]['project']}));for(var _0x546b9d=0x0;_0x546b9d<_0x1441a6[_0x56cf27('0x1d39')]['length'];_0x546b9d++){_0x46bc9f&&_0x1441a6[_0x56cf27('0x1d39')][_0x546b9d]['id']===_0x46bc9f['id']&&(_0x1441a6[_0x56cf27('0x1d39')][_0x546b9d]['canSelect']=![],_0x3530cf[_0x56cf27('0xb76')](_0x1441a6[_0x56cf27('0x1d39')][_0x546b9d]));}_0x1441a6['projects']=_0x3530cf;}else{if(!_0x2b8c8c['autoAssociation'])return _0x59e0e2['userProfileResource'][_0x56cf27('0x22d5')]({'sectionId':_0x2b8c8c['id']})[_0x56cf27('0xe59')]['then'](function(_0x2bf651){var _0x323a2a=_0x56cf27,_0x5add19=_0x32d445()[_0x323a2a('0x65a')](_0x2bf651['rows'],function(_0x16390a){var _0x48d5c0=_0x323a2a;return _0x32d445()['find'](_0x1441a6[_0x48d5c0('0x1d39')],{'id':_0x16390a[_0x48d5c0('0x1104')]});}),_0x44407f=null;_0x1441a6['agi']&&(_0x44407f=_0x32d445()['find'](_0x1441a6[_0x323a2a('0x1d39')],{'name':_0x1441a6[_0x323a2a('0x401')]['project']}));if(_0x44407f&&!_0x32d445()[_0x323a2a('0x201a')](_0x5add19,['id',_0x44407f['id']])){var _0x19513c=_0x32d445()[_0x323a2a('0xf15')](_0x1441a6['projects'],{'id':_0x44407f['id']});_0x19513c['canSelect']=![],_0x5add19[_0x323a2a('0xb76')](_0x19513c);}_0x1441a6[_0x323a2a('0x1d39')]=_0x5add19;});}})['catch'](function(_0x33e0f5){var _0x1a433a=_0x300fb1;_0x40e096['error']({'title':_0x33e0f5[_0x1a433a('0x2833')]?'API:'+_0x33e0f5[_0x1a433a('0x2833')]+'\x20-\x20'+_0x33e0f5[_0x1a433a('0x1fd7')]:_0x1a433a('0xa18'),'msg':_0x33e0f5[_0x1a433a('0x11d0')]?JSON[_0x1a433a('0x3ad')](_0x33e0f5[_0x1a433a('0x11d0')]):_0x33e0f5[_0x1a433a('0x94f')]()});});function _0x22ebc3(){var _0x107527=_0x300fb1;_0x1441a6[_0x107527('0xcd2')]=[];var _0x40bad3=[];_0x1441a6['agi'][_0x107527('0x62e')]&&_0x1441a6[_0x107527('0x401')][_0x107527('0x62e')][_0x107527('0x20dd')]()==='outbound'&&_0x1441a6[_0x107527('0x401')][_0x107527('0xf44')]===_0x107527('0x3d2')&&(_0x1441a6[_0x107527('0x401')][_0x107527('0x1ef5')]=_0x370df0[_0x107527('0x27f6')]?(_0x1441a6[_0x107527('0x401')][_0x107527('0x2580')]||'')+_0x107527('0x5d8')+_0x370df0[_0x107527('0x27f6')]+'}':(_0x1441a6[_0x107527('0x401')][_0x107527('0x2580')]||'')+_0x107527('0x16b5'),_0x370df0['recordingFormat']!==_0x107527('0x23ca')?_0x1441a6[_0x107527('0x401')][_0x107527('0x2116')][_0x107527('0x281c')](_0x107527('0x767'))<0x0&&(_0x1441a6[_0x107527('0x401')][_0x107527('0x2116')]+=_0x107527('0x767')):_0x1441a6[_0x107527('0x401')][_0x107527('0x2116')]=_0x1441a6['agi'][_0x107527('0x2116')]['replace'](_0x107527('0x767'),''));if(_0x1441a6['agi'][_0x107527('0xf44')]&&_0x1441a6[_0x107527('0x401')][_0x107527('0xf44')]===_0x107527('0x261d')){}else switch((_0x1441a6['agi'][_0x107527('0xf2b')]||_0x1441a6[_0x107527('0x401')]['appType'])[_0x107527('0x20dd')]()){case'set':_0x1441a6[_0x107527('0x401')][_0x107527('0x26d2')]=_0x1441a6['agi']['name']+'='+_0x1441a6[_0x107527('0x401')][_0x107527('0x2')];break;case _0x107527('0x261d'):break;default:_0x40bad3[0x0]=_0x1441a6[_0x107527('0x401')][_0x107527('0x38b')],_0x1441a6[_0x107527('0x401')][_0x107527('0x26d2')]=_0x40bad3[_0x107527('0x1537')](',');}_0x2671a9(_0x1441a6[_0x107527('0x401')]);}function _0x2671a9(_0x412177){var _0x15e640=_0x300fb1;_0x8de093[_0x15e640('0x11ed')](_0x412177);}}const _0x2be470=_0x53c0c6;_0x587be3[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'inboundrouteApp',_0xb635d2('0x1d7f'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x587be3(_0x1fc24b,_0x4502dd,_0x3bfe2a,_0x535dcc,_0x618b46,_0x4b6c70,_0xc2a062,_0x326008){var _0x2d70d4=_0xb635d2,_0x38abb7=this;_0x38abb7['currentUser']=_0xc2a062[_0x2d70d4('0x1ef8')](),_0x38abb7['errors']=[],_0x38abb7[_0x2d70d4('0x13e4')]=_0x2d70d4('0x22ff')+(_0x535dcc['appType']||_0x535dcc[_0x2d70d4('0xf2b')])['toUpperCase'](),_0x38abb7['custom']=angular[_0x2d70d4('0x89')](_0x535dcc),_0x38abb7[_0x2d70d4('0xb3d')]=_0x326008,_0x38abb7[_0x2d70d4('0x1ccb')]={};if(_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x26d2')])switch(_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0xf44')]?_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0xf44')][_0x2d70d4('0x20dd')]():_0x38abb7[_0x2d70d4('0x261d')]['app'][_0x2d70d4('0x20dd')]()){case _0x2d70d4('0x261d'):break;case _0x2d70d4('0xc11'):{var _0xbe2341=_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x26d2')][_0x2d70d4('0x1745')](',');_0x38abb7[_0x2d70d4('0x261d')]['key']=_0xbe2341[0x0],_0x38abb7['custom'][_0x2d70d4('0x174b')]=_0xbe2341[0x1],_0x38abb7['custom'][_0x2d70d4('0xfcc')]=_0xbe2341[_0x2d70d4('0xa19')](0x2,_0xbe2341['length'])[_0x2d70d4('0x1537')](',');}break;case _0x2d70d4('0x1321'):{var _0x358baa=_0x38abb7[_0x2d70d4('0x261d')]['appdata'][_0x2d70d4('0x1745')](',');_0x38abb7[_0x2d70d4('0x261d')]['accesskeyid']=_0x358baa[0x0],_0x38abb7[_0x2d70d4('0x261d')]['secretaccesskey']=_0x358baa[0x1],_0x38abb7['custom'][_0x2d70d4('0x206a')]=_0x358baa[0x2],_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x191a')]=_0x358baa[0x3],_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0xfcc')]=_0x358baa['slice'](0x4,_0x358baa[_0x2d70d4('0x25ae')])[_0x2d70d4('0x1537')](',');}break;case _0x2d70d4('0x400'):{var _0xcad763=_0x38abb7[_0x2d70d4('0x261d')]['appdata'][_0x2d70d4('0x1745')](',');_0x38abb7['custom']['times']=isNaN(_0xcad763[0x0])?_0xcad763[0x0]:parseInt(_0xcad763[0x0],0xa),_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x1bc6')]=_0xcad763['slice'](0x1,_0xcad763[_0x2d70d4('0x25ae')])['join'](',');}break;case _0x2d70d4('0x27e8'):_0x38abb7['custom'][_0x2d70d4('0x1bc6')]=_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x26d2')];break;case _0x2d70d4('0x2aa'):_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x2623')]=_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x26d2')]['split']('=')[0x0],_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x2')]=_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x26d2')]['split']('=')[0x1];break;case _0x2d70d4('0x401'):_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x38b')]=_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x26d2')];break;default:{var _0x57d6a4=_0x38abb7['custom'][_0x2d70d4('0x26d2')]['split'](',');_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0xf2b')]=_0x32d445()[_0x2d70d4('0x14b4')](_0x57d6a4[0x0])?_0x57d6a4[0x0]:isNaN(_0x57d6a4[0x0])?_0x57d6a4[0x0]:parseInt(_0x57d6a4[0x0],0xa),_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x26d2')]=_0x32d445()[_0x2d70d4('0x14b4')](_0x57d6a4[0x1])?_0x57d6a4[0x1]:isNaN(_0x57d6a4[0x1])?_0x57d6a4[0x1]:parseInt(_0x57d6a4[0x1],0xa);}break;}else{}_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x62e')]&&_0x38abb7[_0x2d70d4('0x261d')]['type'][_0x2d70d4('0x20dd')]()===_0x2d70d4('0x1fdf')&&_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0xf44')][_0x2d70d4('0x20dd')]()===_0x2d70d4('0x1d1b')&&(_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x2580')]=_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x1ef5')]?_0x38abb7[_0x2d70d4('0x261d')][_0x2d70d4('0x1ef5')][_0x2d70d4('0x1745')]('$')[0x0]:undefined,_0x38abb7[_0x2d70d4('0x261d')]['callerId']=_0x38abb7['custom'][_0x2d70d4('0xfca')]?'CALLERID(all)='+_0x38abb7[_0x2d70d4('0x261d')]['callerID']:undefined);_0x38abb7[_0x2d70d4('0xdd4')]=_0x596e40,_0x38abb7[_0x2d70d4('0x2584')]=_0x3e290d;function _0x596e40(){var _0x5799d4=_0x2d70d4;_0x38abb7[_0x5799d4('0xcd2')]=[];var _0xa3e7bd=[];_0x38abb7[_0x5799d4('0x261d')][_0x5799d4('0x62e')]&&_0x38abb7['custom'][_0x5799d4('0x62e')]['toLowerCase']()==='outbound'&&_0x38abb7['custom'][_0x5799d4('0xf44')]===_0x5799d4('0x3d2')&&(_0x38abb7[_0x5799d4('0x261d')]['phone']=_0x618b46[_0x5799d4('0x27f6')]?(_0x38abb7[_0x5799d4('0x261d')][_0x5799d4('0x2580')]||'')+_0x5799d4('0x5d8')+_0x618b46[_0x5799d4('0x27f6')]+'}':(_0x38abb7['custom'][_0x5799d4('0x2580')]||'')+_0x5799d4('0x16b5'),_0x618b46[_0x5799d4('0x150c')]!==_0x5799d4('0x23ca')?_0x38abb7[_0x5799d4('0x261d')][_0x5799d4('0x2116')][_0x5799d4('0x281c')](_0x5799d4('0x767'))<0x0&&(_0x38abb7[_0x5799d4('0x261d')]['options']+=_0x5799d4('0x767')):_0x38abb7[_0x5799d4('0x261d')]['options']=_0x38abb7['custom'][_0x5799d4('0x2116')]['replace'](_0x5799d4('0x767'),''));if(_0x38abb7[_0x5799d4('0x261d')][_0x5799d4('0xf44')]&&_0x38abb7[_0x5799d4('0x261d')]['appType']===_0x5799d4('0x261d')){}else switch((_0x38abb7['custom'][_0x5799d4('0xf2b')]||_0x38abb7['custom']['appType'])[_0x5799d4('0x20dd')]()){case _0x5799d4('0x2aa'):_0x38abb7[_0x5799d4('0x261d')]['appdata']=_0x38abb7[_0x5799d4('0x261d')]['name']+'='+_0x38abb7['custom'][_0x5799d4('0x2')];break;case _0x5799d4('0x261d'):break;default:_0xa3e7bd[0x0]=_0x38abb7[_0x5799d4('0x261d')][_0x5799d4('0xf2b')],_0xa3e7bd[0x1]=_0x38abb7[_0x5799d4('0x261d')][_0x5799d4('0x26d2')],_0x38abb7[_0x5799d4('0x261d')][_0x5799d4('0x26d2')]=_0xa3e7bd[_0x5799d4('0x1537')](',');}_0x3e290d(_0x38abb7[_0x5799d4('0x261d')]);}function _0x3e290d(_0x5ec2b3){var _0x2dd5a8=_0x2d70d4;_0x1fc24b[_0x2dd5a8('0x11ed')](_0x5ec2b3);}}const _0x51b12b=_0x587be3;_0xc0df53['$inject']=['$mdDialog','$q','toasty',_0xb635d2('0x25bc'),'inboundroute',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0xc0df53(_0x1badfa,_0x579729,_0x4d30c1,_0x2a0820,_0x290e9e,_0x329f31,_0x366a06,_0x31d5f6){var _0x8075ed=_0xb635d2,_0x5a4e65=this;_0x5a4e65[_0x8075ed('0x15a5')]=_0x366a06['getCurrentUser'](),_0x5a4e65[_0x8075ed('0xcd2')]=[],_0x5a4e65[_0x8075ed('0x13e4')]='VOICE.EDIT_'+(_0x2a0820[_0x8075ed('0xf44')]||_0x2a0820[_0x8075ed('0xf2b')])[_0x8075ed('0x25f7')](),_0x5a4e65[_0x8075ed('0x18dd')]=angular['copy'](_0x2a0820),_0x5a4e65[_0x8075ed('0xb3d')]=_0x31d5f6,_0x5a4e65[_0x8075ed('0x1ccb')]={};if(_0x5a4e65['dial']['appdata'])switch(_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0xf44')]?_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0xf44')][_0x8075ed('0x20dd')]():_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0xf2b')][_0x8075ed('0x20dd')]()){case _0x8075ed('0x261d'):break;case'dialogflow':{var _0x417731=_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x26d2')][_0x8075ed('0x1745')](',');_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x6e4')]=_0x417731[0x0],_0x5a4e65[_0x8075ed('0x18dd')]['language']=_0x417731[0x1],_0x5a4e65['dial'][_0x8075ed('0xfcc')]=_0x417731[_0x8075ed('0xa19')](0x2,_0x417731[_0x8075ed('0x25ae')])[_0x8075ed('0x1537')](',');}break;case _0x8075ed('0x1321'):{var _0x5581fc=_0x5a4e65['dial'][_0x8075ed('0x26d2')][_0x8075ed('0x1745')](',');_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x22be')]=_0x5581fc[0x0],_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x700')]=_0x5581fc[0x1],_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x206a')]=_0x5581fc[0x2],_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x191a')]=_0x5581fc[0x3],_0x5a4e65['dial']['welcomemessage']=_0x5581fc[_0x8075ed('0xa19')](0x4,_0x5581fc['length'])['join'](',');}break;case'autoreply':{var _0x5144db=_0x5a4e65['dial'][_0x8075ed('0x26d2')]['split'](',');_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x1ec4')]=isNaN(_0x5144db[0x0])?_0x5144db[0x0]:parseInt(_0x5144db[0x0],0xa),_0x5a4e65['dial'][_0x8075ed('0x1bc6')]=_0x5144db['slice'](0x1,_0x5144db[_0x8075ed('0x25ae')])[_0x8075ed('0x1537')](',');}break;case _0x8075ed('0x27e8'):_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x1bc6')]=_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x26d2')];break;case _0x8075ed('0x2aa'):_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x2623')]=_0x5a4e65['dial']['appdata'][_0x8075ed('0x1745')]('=')[0x0],_0x5a4e65['dial'][_0x8075ed('0x2')]=_0x5a4e65['dial']['appdata'][_0x8075ed('0x1745')]('=')[0x1];break;case _0x8075ed('0x401'):_0x5a4e65[_0x8075ed('0x18dd')]['project']=_0x5a4e65['dial']['appdata'];break;default:{var _0x7794d=_0x5a4e65['dial'][_0x8075ed('0x26d2')][_0x8075ed('0x1745')](',');_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x1ca9')]=_0x32d445()['isEmpty'](_0x7794d[0x0])?_0x7794d[0x0]:isNaN(_0x7794d[0x0])?_0x7794d[0x0]:parseInt(_0x7794d[0x0],0xa),_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x2058')]=_0x32d445()[_0x8075ed('0x14b4')](_0x7794d[0x1])?_0x7794d[0x1]:isNaN(_0x7794d[0x1])?_0x7794d[0x1]:parseInt(_0x7794d[0x1],0xa),_0x5a4e65['dial']['options']=_0x32d445()[_0x8075ed('0x14b4')](_0x7794d[0x2])?_0x7794d[0x2]:isNaN(_0x7794d[0x2])?_0x7794d[0x2]:parseInt(_0x7794d[0x2],0xa),_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x2647')]=_0x32d445()[_0x8075ed('0x14b4')](_0x7794d[0x3])?_0x7794d[0x3]:isNaN(_0x7794d[0x3])?_0x7794d[0x3]:parseInt(_0x7794d[0x3],0xa);}break;}else{}_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x62e')]&&_0x5a4e65[_0x8075ed('0x18dd')]['type'][_0x8075ed('0x20dd')]()===_0x8075ed('0x1fdf')&&_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0xf44')]['toLowerCase']()===_0x8075ed('0x1d1b')&&(_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x2580')]=_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0x1ef5')]?_0x5a4e65['dial'][_0x8075ed('0x1ef5')][_0x8075ed('0x1745')]('$')[0x0]:undefined,_0x5a4e65['dial'][_0x8075ed('0x1b6f')]=_0x5a4e65[_0x8075ed('0x18dd')][_0x8075ed('0xfca')]?'CALLERID(all)='+_0x5a4e65['dial'][_0x8075ed('0xfca')]:undefined);_0x5a4e65[_0x8075ed('0xdd4')]=_0x49e349,_0x5a4e65[_0x8075ed('0x2584')]=_0x1e088a;function _0x49e349(){var _0x4ce6ba=_0x8075ed;_0x5a4e65[_0x4ce6ba('0xcd2')]=[];var _0x3c7426=[];_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x62e')]&&_0x5a4e65['dial'][_0x4ce6ba('0x62e')][_0x4ce6ba('0x20dd')]()==='outbound'&&_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0xf44')]===_0x4ce6ba('0x3d2')&&(_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x1ef5')]=_0x290e9e[_0x4ce6ba('0x27f6')]?(_0x5a4e65[_0x4ce6ba('0x18dd')]['prefix']||'')+_0x4ce6ba('0x5d8')+_0x290e9e['cutdigits']+'}':(_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x2580')]||'')+_0x4ce6ba('0x16b5'),_0x290e9e[_0x4ce6ba('0x150c')]!=='none'?_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x2116')][_0x4ce6ba('0x281c')](_0x4ce6ba('0x767'))<0x0&&(_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x2116')]+='U(xcally-mixmonitor-context)'):_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x2116')]=_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x2116')][_0x4ce6ba('0x1b42')](_0x4ce6ba('0x767'),''));if(_0x5a4e65['dial'][_0x4ce6ba('0xf44')]&&_0x5a4e65['dial'][_0x4ce6ba('0xf44')]==='custom'){}else switch((_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0xf2b')]||_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0xf44')])[_0x4ce6ba('0x20dd')]()){case'set':_0x5a4e65['dial']['appdata']=_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x2623')]+'='+_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x2')];break;case'custom':break;default:_0x3c7426[0x0]=_0x5a4e65['dial'][_0x4ce6ba('0x1ca9')],_0x3c7426[0x1]=_0x5a4e65['dial'][_0x4ce6ba('0x2058')],_0x3c7426[0x2]=_0x5a4e65[_0x4ce6ba('0x18dd')][_0x4ce6ba('0x2116')],_0x3c7426[0x3]=_0x5a4e65[_0x4ce6ba('0x18dd')]['url'],_0x5a4e65['dial'][_0x4ce6ba('0x26d2')]=_0x3c7426[_0x4ce6ba('0x1537')](',');}_0x1e088a(_0x5a4e65[_0x4ce6ba('0x18dd')]);}function _0x1e088a(_0x292428){var _0xc0f683=_0x8075ed;_0x1badfa[_0xc0f683('0x11ed')](_0x292428);}}const _0x46410a=_0xc0df53;_0x2f3407[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),'inboundrouteApp',_0xb635d2('0x1d7f'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x2f3407(_0x34ba45,_0x22a720,_0x4b0f67,_0x47c6e7,_0x189e2b,_0x2065ac,_0x46a2d6,_0x42d214){var _0x18f347=_0xb635d2,_0xdeb364=this;_0xdeb364[_0x18f347('0x15a5')]=_0x46a2d6[_0x18f347('0x1ef8')](),_0xdeb364[_0x18f347('0xcd2')]=[],_0xdeb364['title']=_0x18f347('0x22ff')+(_0x47c6e7[_0x18f347('0xf44')]||_0x47c6e7[_0x18f347('0xf2b')])[_0x18f347('0x25f7')](),_0xdeb364[_0x18f347('0x1258')]=angular[_0x18f347('0x89')](_0x47c6e7),_0xdeb364[_0x18f347('0xb3d')]=_0x42d214,_0xdeb364[_0x18f347('0x1ccb')]={};if(_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x26d2')])switch(_0xdeb364[_0x18f347('0x1258')]['appType']?_0xdeb364[_0x18f347('0x1258')]['appType'][_0x18f347('0x20dd')]():_0xdeb364[_0x18f347('0x1258')]['app']['toLowerCase']()){case'custom':break;case _0x18f347('0xc11'):{var _0x523986=_0xdeb364[_0x18f347('0x1258')]['appdata'][_0x18f347('0x1745')](',');_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x6e4')]=_0x523986[0x0],_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x174b')]=_0x523986[0x1],_0xdeb364['externaldial'][_0x18f347('0xfcc')]=_0x523986['slice'](0x2,_0x523986[_0x18f347('0x25ae')])[_0x18f347('0x1537')](',');}break;case _0x18f347('0x1321'):{var _0x4c1c05=_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x26d2')][_0x18f347('0x1745')](',');_0xdeb364['externaldial'][_0x18f347('0x22be')]=_0x4c1c05[0x0],_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x700')]=_0x4c1c05[0x1],_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x206a')]=_0x4c1c05[0x2],_0xdeb364['externaldial']['botname']=_0x4c1c05[0x3],_0xdeb364[_0x18f347('0x1258')][_0x18f347('0xfcc')]=_0x4c1c05[_0x18f347('0xa19')](0x4,_0x4c1c05['length'])[_0x18f347('0x1537')](',');}break;case _0x18f347('0x400'):{var _0x3aa220=_0xdeb364['externaldial'][_0x18f347('0x26d2')][_0x18f347('0x1745')](',');_0xdeb364[_0x18f347('0x1258')]['times']=isNaN(_0x3aa220[0x0])?_0x3aa220[0x0]:parseInt(_0x3aa220[0x0],0xa),_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x1bc6')]=_0x3aa220[_0x18f347('0xa19')](0x1,_0x3aa220[_0x18f347('0x25ae')])[_0x18f347('0x1537')](',');}break;case'message':_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x1bc6')]=_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x26d2')];break;case _0x18f347('0x2aa'):_0xdeb364['externaldial'][_0x18f347('0x2623')]=_0xdeb364['externaldial'][_0x18f347('0x26d2')]['split']('=')[0x0],_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x2')]=_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x26d2')][_0x18f347('0x1745')]('=')[0x1];break;case _0x18f347('0x401'):_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x38b')]=_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x26d2')];break;default:{var _0x2b942a=_0xdeb364['externaldial'][_0x18f347('0x26d2')]['split'](',');_0xdeb364[_0x18f347('0x1258')]['trunk']=_0x2b942a[0x0][_0x18f347('0x1745')]('/')[0x1],_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x1ef5')]=_0x2b942a[0x0][_0x18f347('0x1745')]('/')[0x2],_0xdeb364[_0x18f347('0x1258')]['timeout']=_0x32d445()[_0x18f347('0x14b4')](_0x2b942a[0x1])?_0x2b942a[0x1]:isNaN(_0x2b942a[0x1])?_0x2b942a[0x1]:parseInt(_0x2b942a[0x1],0xa),_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x2116')]=_0x32d445()[_0x18f347('0x14b4')](_0x2b942a[0x2])?_0x2b942a[0x2]:isNaN(_0x2b942a[0x2])?_0x2b942a[0x2]:parseInt(_0x2b942a[0x2],0xa),_0xdeb364[_0x18f347('0x1258')]['url']=_0x32d445()[_0x18f347('0x14b4')](_0x2b942a[0x3])?_0x2b942a[0x3]:isNaN(_0x2b942a[0x3])?_0x2b942a[0x3]:parseInt(_0x2b942a[0x3],0xa);}break;}else{}_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x62e')]&&_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x62e')]['toLowerCase']()==='outbound'&&_0xdeb364['externaldial'][_0x18f347('0xf44')][_0x18f347('0x20dd')]()===_0x18f347('0x1d1b')&&(_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x2580')]=_0xdeb364['externaldial'][_0x18f347('0x1ef5')]?_0xdeb364['externaldial'][_0x18f347('0x1ef5')][_0x18f347('0x1745')]('$')[0x0]:undefined,_0xdeb364[_0x18f347('0x1258')][_0x18f347('0x1b6f')]=_0xdeb364['externaldial'][_0x18f347('0xfca')]?_0x18f347('0xd41')+_0xdeb364[_0x18f347('0x1258')]['callerID']:undefined);_0xdeb364[_0x18f347('0xdd4')]=_0x119681,_0xdeb364[_0x18f347('0x2584')]=_0x537ab4,_0x46a2d6['hasRole'](_0x18f347('0xd14'))?_0x2065ac[_0x18f347('0x1397')]['get']({'fields':'id,name','sort':_0x18f347('0x2623'),'nolimit':_0x18f347('0x2206')})['$promise'][_0x18f347('0xe19')](function(_0x28116e){var _0x313778=_0x18f347;_0xdeb364['trunks']=_0x28116e[_0x313778('0x16a7')]||[];})[_0x18f347('0x223b')](function(_0x35c067){var _0x3ae7bb=_0x18f347;_0x4b0f67[_0x3ae7bb('0x8c8')]({'title':_0x35c067[_0x3ae7bb('0x2833')]?_0x3ae7bb('0x27f2')+_0x35c067[_0x3ae7bb('0x2833')]+_0x3ae7bb('0x1b7c')+_0x35c067[_0x3ae7bb('0x1fd7')]:'SYSTEM:GET_TRUNKS','msg':_0x35c067[_0x3ae7bb('0x11d0')]?JSON['stringify'](_0x35c067[_0x3ae7bb('0x11d0')]):_0x35c067[_0x3ae7bb('0x94f')]()});}):_0x2065ac[_0x18f347('0x1397')][_0x18f347('0x22d5')]({'fields':_0x18f347('0x104'),'sort':_0x18f347('0x2623'),'nolimit':_0x18f347('0x2206')})[_0x18f347('0xe59')]['then'](function(_0x39409e){var _0x35df51=_0x18f347;_0xdeb364[_0x35df51('0x155e')]=_0x39409e[_0x35df51('0x16a7')]||[];})['then'](function(){var _0x29e991=_0x18f347;return _0x2065ac[_0x29e991('0xb59')][_0x29e991('0x22d5')]({'userProfileId':_0xdeb364[_0x29e991('0x15a5')]['userProfileId'],'sectionId':0x3f3})['$promise'];})[_0x18f347('0xe19')](function(_0x1084fe){var _0x12b7b7=_0x18f347,_0x26f13c=_0x1084fe&&_0x1084fe[_0x12b7b7('0x16a7')]?_0x1084fe[_0x12b7b7('0x16a7')][0x0]:null;if(!_0x26f13c){var _0x54dd83=[],_0xe33442=null;_0xdeb364['externaldial']&&(_0xe33442=_0x32d445()[_0x12b7b7('0xf15')](_0xdeb364['trunks'],{'name':_0xdeb364[_0x12b7b7('0x1258')][_0x12b7b7('0x1397')]}));for(var _0x1dae7c=0x0;_0x1dae7c<_0xdeb364[_0x12b7b7('0x155e')][_0x12b7b7('0x25ae')];_0x1dae7c++){_0xe33442&&_0xdeb364[_0x12b7b7('0x155e')][_0x1dae7c]['id']===_0xe33442['id']&&(_0xdeb364[_0x12b7b7('0x155e')][_0x1dae7c][_0x12b7b7('0x1e9d')]=![],_0x54dd83[_0x12b7b7('0xb76')](_0xdeb364[_0x12b7b7('0x155e')][_0x1dae7c]));}_0xdeb364[_0x12b7b7('0x155e')]=_0x54dd83;}else{if(!_0x26f13c[_0x12b7b7('0x11fd')])return _0x2065ac[_0x12b7b7('0xd49')][_0x12b7b7('0x22d5')]({'sectionId':_0x26f13c['id']})['$promise'][_0x12b7b7('0xe19')](function(_0x5530df){var _0xbf109c=_0x12b7b7,_0x40d62b=_0x32d445()[_0xbf109c('0x65a')](_0x5530df[_0xbf109c('0x16a7')],function(_0x2976aa){var _0x2c9a74=_0xbf109c;return _0x32d445()[_0x2c9a74('0xf15')](_0xdeb364[_0x2c9a74('0x155e')],{'id':_0x2976aa['resourceId']});}),_0x4b2428=null;_0xdeb364[_0xbf109c('0x1258')]&&(_0x4b2428=_0x32d445()[_0xbf109c('0xf15')](_0xdeb364['trunks'],{'name':_0xdeb364[_0xbf109c('0x1258')][_0xbf109c('0x1397')]}));if(_0x4b2428&&!_0x32d445()[_0xbf109c('0x201a')](_0x40d62b,['id',_0x4b2428['id']])){var _0x31124b=_0x32d445()[_0xbf109c('0xf15')](_0xdeb364[_0xbf109c('0x155e')],{'id':_0x4b2428['id']});_0x31124b[_0xbf109c('0x1e9d')]=![],_0x40d62b[_0xbf109c('0xb76')](_0x31124b);}_0xdeb364[_0xbf109c('0x155e')]=_0x40d62b;});}})[_0x18f347('0x223b')](function(_0x37b86c){var _0x42fc0c=_0x18f347;_0x4b0f67[_0x42fc0c('0x8c8')]({'title':_0x37b86c[_0x42fc0c('0x2833')]?_0x42fc0c('0x27f2')+_0x37b86c[_0x42fc0c('0x2833')]+'\x20-\x20'+_0x37b86c[_0x42fc0c('0x1fd7')]:_0x42fc0c('0x14b5'),'msg':_0x37b86c[_0x42fc0c('0x11d0')]?JSON['stringify'](_0x37b86c[_0x42fc0c('0x11d0')]):_0x37b86c[_0x42fc0c('0x94f')]()});});function _0x119681(){var _0x113eb6=_0x18f347;_0xdeb364[_0x113eb6('0xcd2')]=[];var _0x3356f8=[];_0xdeb364['externaldial']['type']&&_0xdeb364['externaldial'][_0x113eb6('0x62e')]['toLowerCase']()===_0x113eb6('0x1fdf')&&_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0xf44')]===_0x113eb6('0x3d2')&&(_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x1ef5')]=_0x189e2b['cutdigits']?(_0xdeb364[_0x113eb6('0x1258')]['prefix']||'')+_0x113eb6('0x5d8')+_0x189e2b[_0x113eb6('0x27f6')]+'}':(_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x2580')]||'')+'${EXTEN}',_0x189e2b['recordingFormat']!==_0x113eb6('0x23ca')?_0xdeb364[_0x113eb6('0x1258')]['options'][_0x113eb6('0x281c')](_0x113eb6('0x767'))<0x0&&(_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x2116')]+=_0x113eb6('0x767')):_0xdeb364['externaldial'][_0x113eb6('0x2116')]=_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x2116')]['replace'](_0x113eb6('0x767'),''));if(_0xdeb364['externaldial'][_0x113eb6('0xf44')]&&_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0xf44')]===_0x113eb6('0x261d')){}else switch((_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0xf2b')]||_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0xf44')])[_0x113eb6('0x20dd')]()){case _0x113eb6('0x2aa'):_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x26d2')]=_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x2623')]+'='+_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x2')];break;case _0x113eb6('0x261d'):break;default:_0x3356f8[0x0]=[_0x113eb6('0x1295'),_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x1397')],_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x1ef5')]][_0x113eb6('0x1537')]('/'),_0x3356f8[0x1]=_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x2058')],_0x3356f8[0x2]=_0xdeb364[_0x113eb6('0x1258')]['options'],_0x3356f8[0x3]=_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x2647')],_0xdeb364[_0x113eb6('0x1258')][_0x113eb6('0x26d2')]=_0x3356f8['join'](',');}_0x537ab4(_0xdeb364[_0x113eb6('0x1258')]);}function _0x537ab4(_0x299769){var _0x571993=_0x18f347;_0x34ba45[_0x571993('0x11ed')](_0x299769);}}const _0x1f140a=_0x2f3407;_0x53f140[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0x25bc'),_0xb635d2('0x1d7f'),'api','Auth',_0xb635d2('0xb3d')];function _0x53f140(_0x2159ed,_0x1ed9d9,_0xf2145a,_0x5e7cd4,_0x454933,_0x362567,_0x30c1d3,_0x2f49fb){var _0x190ef2=_0xb635d2,_0x5cd61d=this;_0x5cd61d[_0x190ef2('0x15a5')]=_0x30c1d3['getCurrentUser'](),_0x5cd61d[_0x190ef2('0xcd2')]=[],_0x5cd61d[_0x190ef2('0x13e4')]=_0x190ef2('0x22ff')+(_0x5e7cd4[_0x190ef2('0xf44')]||_0x5e7cd4[_0x190ef2('0xf2b')])[_0x190ef2('0x25f7')](),_0x5cd61d[_0x190ef2('0x1fa1')]=angular[_0x190ef2('0x89')](_0x5e7cd4),_0x5cd61d['crudPermissions']=_0x2f49fb,_0x5cd61d[_0x190ef2('0x1ccb')]={};if(_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x26d2')])switch(_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0xf44')]?_0x5cd61d[_0x190ef2('0x1fa1')]['appType'][_0x190ef2('0x20dd')]():_0x5cd61d['goto'][_0x190ef2('0xf2b')][_0x190ef2('0x20dd')]()){case _0x190ef2('0x261d'):break;case _0x190ef2('0xc11'):{var _0x309101=_0x5cd61d[_0x190ef2('0x1fa1')]['appdata'][_0x190ef2('0x1745')](',');_0x5cd61d[_0x190ef2('0x1fa1')]['key']=_0x309101[0x0],_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x174b')]=_0x309101[0x1],_0x5cd61d['goto']['welcomemessage']=_0x309101[_0x190ef2('0xa19')](0x2,_0x309101[_0x190ef2('0x25ae')])['join'](',');}break;case _0x190ef2('0x1321'):{var _0x5cd795=_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x26d2')][_0x190ef2('0x1745')](',');_0x5cd61d['goto']['accesskeyid']=_0x5cd795[0x0],_0x5cd61d['goto'][_0x190ef2('0x700')]=_0x5cd795[0x1],_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x206a')]=_0x5cd795[0x2],_0x5cd61d['goto'][_0x190ef2('0x191a')]=_0x5cd795[0x3],_0x5cd61d[_0x190ef2('0x1fa1')]['welcomemessage']=_0x5cd795[_0x190ef2('0xa19')](0x4,_0x5cd795[_0x190ef2('0x25ae')])[_0x190ef2('0x1537')](',');}break;case _0x190ef2('0x400'):{var _0x394409=_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x26d2')][_0x190ef2('0x1745')](',');_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x1ec4')]=isNaN(_0x394409[0x0])?_0x394409[0x0]:parseInt(_0x394409[0x0],0xa),_0x5cd61d[_0x190ef2('0x1fa1')]['text']=_0x394409[_0x190ef2('0xa19')](0x1,_0x394409[_0x190ef2('0x25ae')])[_0x190ef2('0x1537')](',');}break;case _0x190ef2('0x27e8'):_0x5cd61d['goto'][_0x190ef2('0x1bc6')]=_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x26d2')];break;case _0x190ef2('0x2aa'):_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x2623')]=_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x26d2')][_0x190ef2('0x1745')]('=')[0x0],_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x2')]=_0x5cd61d['goto'][_0x190ef2('0x26d2')][_0x190ef2('0x1745')]('=')[0x1];break;case _0x190ef2('0x401'):_0x5cd61d['goto']['project']=_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x26d2')];break;default:{var _0x13a4c5=_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x26d2')]['split'](',');_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x1318')]=_0x32d445()['isEmpty'](_0x13a4c5[0x0])?_0x13a4c5[0x0]:isNaN(_0x13a4c5[0x0])?_0x13a4c5[0x0]:parseInt(_0x13a4c5[0x0],0xa),_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x1530')]=_0x32d445()[_0x190ef2('0x14b4')](_0x13a4c5[0x1])?_0x13a4c5[0x1]:isNaN(_0x13a4c5[0x1])?_0x13a4c5[0x1]:parseInt(_0x13a4c5[0x1],0xa),_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0xb33')]=_0x32d445()['isEmpty'](_0x13a4c5[0x2])?_0x13a4c5[0x2]:isNaN(_0x13a4c5[0x2])?_0x13a4c5[0x2]:parseInt(_0x13a4c5[0x2],0xa);}break;}else{}_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x62e')]&&_0x5cd61d[_0x190ef2('0x1fa1')]['type'][_0x190ef2('0x20dd')]()===_0x190ef2('0x1fdf')&&_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0xf44')]['toLowerCase']()===_0x190ef2('0x1d1b')&&(_0x5cd61d[_0x190ef2('0x1fa1')]['prefix']=_0x5cd61d[_0x190ef2('0x1fa1')]['phone']?_0x5cd61d[_0x190ef2('0x1fa1')][_0x190ef2('0x1ef5')][_0x190ef2('0x1745')]('$')[0x0]:undefined,_0x5cd61d[_0x190ef2('0x1fa1')]['callerId']=_0x5cd61d['goto'][_0x190ef2('0xfca')]?_0x190ef2('0xd41')+_0x5cd61d[_0x190ef2('0x1fa1')]['callerID']:undefined);_0x5cd61d[_0x190ef2('0xdd4')]=_0x5618c3,_0x5cd61d['closeDialog']=_0x32b8cf,_0x30c1d3[_0x190ef2('0x179e')](_0x190ef2('0xd14'))?_0x362567['voiceContext']['get']({'fields':'id,name','sort':_0x190ef2('0x2623'),'nolimit':_0x190ef2('0x2206')})[_0x190ef2('0xe59')][_0x190ef2('0xe19')](function(_0x3898ee){var _0x433565=_0x190ef2;_0x5cd61d[_0x433565('0x3c1')]=_0x3898ee['rows']||[];})['catch'](function(_0x2d48ab){var _0x3d8b74=_0x190ef2;_0xf2145a[_0x3d8b74('0x8c8')]({'title':_0x2d48ab[_0x3d8b74('0x2833')]?_0x3d8b74('0x27f2')+_0x2d48ab[_0x3d8b74('0x2833')]+_0x3d8b74('0x1b7c')+_0x2d48ab[_0x3d8b74('0x1fd7')]:_0x3d8b74('0x17ac'),'msg':_0x2d48ab[_0x3d8b74('0x11d0')]?JSON[_0x3d8b74('0x3ad')](_0x2d48ab['data']):_0x2d48ab[_0x3d8b74('0x94f')]()});}):_0x362567[_0x190ef2('0x2768')][_0x190ef2('0x22d5')]({'fields':_0x190ef2('0x104'),'sort':'name','nolimit':_0x190ef2('0x2206')})[_0x190ef2('0xe59')][_0x190ef2('0xe19')](function(_0x2c0b89){var _0x49f873=_0x190ef2;_0x5cd61d['contexts']=_0x2c0b89[_0x49f873('0x16a7')]||[];})['then'](function(){var _0x407694=_0x190ef2;return _0x362567[_0x407694('0xb59')]['get']({'userProfileId':_0x5cd61d[_0x407694('0x15a5')][_0x407694('0x1d04')],'sectionId':0x195})[_0x407694('0xe59')];})[_0x190ef2('0xe19')](function(_0x553fa5){var _0x3ffaac=_0x190ef2,_0x4b0b51=_0x553fa5&&_0x553fa5[_0x3ffaac('0x16a7')]?_0x553fa5[_0x3ffaac('0x16a7')][0x0]:null;if(!_0x4b0b51)return _0x362567[_0x3ffaac('0x2768')][_0x3ffaac('0x22d5')]({'fields':_0x3ffaac('0x104'),'sort':_0x3ffaac('0x2623'),'nolimit':'true','defaultEntry':0x1})[_0x3ffaac('0xe59')][_0x3ffaac('0xe19')](function(_0x125585){var _0x53af53=_0x3ffaac;_0x5cd61d[_0x53af53('0x3c1')]=_0x125585['rows']||[];});else{if(!_0x4b0b51[_0x3ffaac('0x11fd')])return _0x362567[_0x3ffaac('0xd49')]['get']({'sectionId':_0x4b0b51['id']})[_0x3ffaac('0xe59')][_0x3ffaac('0xe19')](function(_0x2131c6){var _0x377b7a=_0x3ffaac,_0x53858a=_0x32d445()[_0x377b7a('0x65a')](_0x2131c6['rows'],function(_0x23282f){var _0x1c7a83=_0x377b7a;return _0x32d445()[_0x1c7a83('0xf15')](_0x5cd61d[_0x1c7a83('0x3c1')],{'id':_0x23282f[_0x1c7a83('0x1104')]});}),_0x446431=null;_0x5cd61d[_0x377b7a('0x1fa1')]&&(_0x446431=_0x32d445()['find'](_0x5cd61d[_0x377b7a('0x3c1')],{'name':_0x5cd61d['goto'][_0x377b7a('0x1318')]}));if(_0x446431&&!_0x32d445()[_0x377b7a('0x201a')](_0x53858a,['id',_0x446431['id']])){var _0x43b667=_0x32d445()[_0x377b7a('0xf15')](_0x5cd61d[_0x377b7a('0x3c1')],{'id':_0x446431['id']});_0x43b667[_0x377b7a('0x1e9d')]=![],_0x53858a[_0x377b7a('0xb76')](_0x43b667);}_0x5cd61d['contexts']=_0x53858a;});}})['catch'](function(_0x3eb7e9){var _0x570c6a=_0x190ef2;_0xf2145a[_0x570c6a('0x8c8')]({'title':_0x3eb7e9[_0x570c6a('0x2833')]?'API:'+_0x3eb7e9['status']+_0x570c6a('0x1b7c')+_0x3eb7e9[_0x570c6a('0x1fd7')]:_0x570c6a('0x12ed'),'msg':_0x3eb7e9[_0x570c6a('0x11d0')]?JSON[_0x570c6a('0x3ad')](_0x3eb7e9[_0x570c6a('0x11d0')]):_0x3eb7e9[_0x570c6a('0x94f')]()});});function _0x5618c3(){var _0x5ade12=_0x190ef2;_0x5cd61d[_0x5ade12('0xcd2')]=[];var _0xe614a3=[];_0x5cd61d['goto']['type']&&_0x5cd61d[_0x5ade12('0x1fa1')]['type'][_0x5ade12('0x20dd')]()===_0x5ade12('0x1fdf')&&_0x5cd61d[_0x5ade12('0x1fa1')]['appType']===_0x5ade12('0x3d2')&&(_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x1ef5')]=_0x454933[_0x5ade12('0x27f6')]?(_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x2580')]||'')+_0x5ade12('0x5d8')+_0x454933[_0x5ade12('0x27f6')]+'}':(_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x2580')]||'')+_0x5ade12('0x16b5'),_0x454933['recordingFormat']!=='none'?_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x2116')][_0x5ade12('0x281c')](_0x5ade12('0x767'))<0x0&&(_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x2116')]+=_0x5ade12('0x767')):_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x2116')]=_0x5cd61d[_0x5ade12('0x1fa1')]['options']['replace'](_0x5ade12('0x767'),''));if(_0x5cd61d['goto'][_0x5ade12('0xf44')]&&_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0xf44')]===_0x5ade12('0x261d')){}else switch((_0x5cd61d['goto'][_0x5ade12('0xf2b')]||_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0xf44')])[_0x5ade12('0x20dd')]()){case _0x5ade12('0x2aa'):_0x5cd61d[_0x5ade12('0x1fa1')]['appdata']=_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x2623')]+'='+_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x2')];break;case _0x5ade12('0x261d'):break;default:_0xe614a3[0x0]=_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x1318')],_0xe614a3[0x1]=_0x5cd61d['goto'][_0x5ade12('0x1530')],_0xe614a3[0x2]=_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0xb33')],_0x5cd61d[_0x5ade12('0x1fa1')][_0x5ade12('0x26d2')]=_0xe614a3[_0x5ade12('0x1537')](',');}_0x32b8cf(_0x5cd61d[_0x5ade12('0x1fa1')]);}function _0x32b8cf(_0x49205a){_0x2159ed['hide'](_0x49205a);}}const _0x6d97ac=_0x53f140;_0x5f2287['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0x25bc'),_0xb635d2('0x1d7f'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x5f2287(_0x60d26e,_0x2bf85e,_0x437a88,_0x18aa50,_0xfe007,_0x58c300,_0x458415,_0x116186){var _0x466a0a=_0xb635d2,_0x4c5524=this;_0x4c5524[_0x466a0a('0x15a5')]=_0x458415[_0x466a0a('0x1ef8')](),_0x4c5524[_0x466a0a('0xcd2')]=[],_0x4c5524[_0x466a0a('0x13e4')]='VOICE.EDIT_'+(_0x18aa50[_0x466a0a('0xf44')]||_0x18aa50[_0x466a0a('0xf2b')])[_0x466a0a('0x25f7')](),_0x4c5524['hangup']=angular['copy'](_0x18aa50),_0x4c5524[_0x466a0a('0xb3d')]=_0x116186,_0x4c5524[_0x466a0a('0x1ccb')]={};if(_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x26d2')])switch(_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0xf44')]?_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0xf44')]['toLowerCase']():_0x4c5524['hangup'][_0x466a0a('0xf2b')][_0x466a0a('0x20dd')]()){case _0x466a0a('0x261d'):break;case _0x466a0a('0xc11'):{var _0x29aefb=_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x26d2')][_0x466a0a('0x1745')](',');_0x4c5524[_0x466a0a('0x1e92')]['key']=_0x29aefb[0x0],_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x174b')]=_0x29aefb[0x1],_0x4c5524['hangup']['welcomemessage']=_0x29aefb[_0x466a0a('0xa19')](0x2,_0x29aefb[_0x466a0a('0x25ae')])[_0x466a0a('0x1537')](',');}break;case _0x466a0a('0x1321'):{var _0x4dfa3f=_0x4c5524[_0x466a0a('0x1e92')]['appdata'][_0x466a0a('0x1745')](',');_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x22be')]=_0x4dfa3f[0x0],_0x4c5524[_0x466a0a('0x1e92')]['secretaccesskey']=_0x4dfa3f[0x1],_0x4c5524['hangup'][_0x466a0a('0x206a')]=_0x4dfa3f[0x2],_0x4c5524[_0x466a0a('0x1e92')]['botname']=_0x4dfa3f[0x3],_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0xfcc')]=_0x4dfa3f['slice'](0x4,_0x4dfa3f['length'])['join'](',');}break;case'autoreply':{var _0x492b39=_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x26d2')][_0x466a0a('0x1745')](',');_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x1ec4')]=isNaN(_0x492b39[0x0])?_0x492b39[0x0]:parseInt(_0x492b39[0x0],0xa),_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x1bc6')]=_0x492b39['slice'](0x1,_0x492b39['length'])[_0x466a0a('0x1537')](',');}break;case'message':_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x1bc6')]=_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x26d2')];break;case'set':_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x2623')]=_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x26d2')]['split']('=')[0x0],_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x2')]=_0x4c5524['hangup'][_0x466a0a('0x26d2')][_0x466a0a('0x1745')]('=')[0x1];break;case _0x466a0a('0x401'):_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x38b')]=_0x4c5524[_0x466a0a('0x1e92')]['appdata'];break;default:{var _0x46c1ea=_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0x26d2')][_0x466a0a('0x1745')](',');_0x4c5524['hangup']['appdata']=_0x32d445()[_0x466a0a('0x14b4')](_0x46c1ea[0x0])?_0x46c1ea[0x0]:isNaN(_0x46c1ea[0x0])?_0x46c1ea[0x0]:parseInt(_0x46c1ea[0x0],0xa);}break;}else{}_0x4c5524['hangup'][_0x466a0a('0x62e')]&&_0x4c5524[_0x466a0a('0x1e92')]['type'][_0x466a0a('0x20dd')]()===_0x466a0a('0x1fdf')&&_0x4c5524['hangup']['appType'][_0x466a0a('0x20dd')]()===_0x466a0a('0x1d1b')&&(_0x4c5524[_0x466a0a('0x1e92')]['prefix']=_0x4c5524[_0x466a0a('0x1e92')]['phone']?_0x4c5524[_0x466a0a('0x1e92')]['phone'][_0x466a0a('0x1745')]('$')[0x0]:undefined,_0x4c5524[_0x466a0a('0x1e92')]['callerId']=_0x4c5524[_0x466a0a('0x1e92')][_0x466a0a('0xfca')]?_0x466a0a('0xd41')+_0x4c5524['hangup']['callerID']:undefined);_0x4c5524[_0x466a0a('0xdd4')]=_0x3ffd4b,_0x4c5524[_0x466a0a('0x2584')]=_0x3228f1;function _0x3ffd4b(){var _0x3812ef=_0x466a0a;_0x4c5524[_0x3812ef('0xcd2')]=[];var _0x1eef35=[];_0x4c5524[_0x3812ef('0x1e92')]['type']&&_0x4c5524[_0x3812ef('0x1e92')]['type'][_0x3812ef('0x20dd')]()===_0x3812ef('0x1fdf')&&_0x4c5524[_0x3812ef('0x1e92')]['appType']===_0x3812ef('0x3d2')&&(_0x4c5524['hangup'][_0x3812ef('0x1ef5')]=_0xfe007[_0x3812ef('0x27f6')]?(_0x4c5524['hangup'][_0x3812ef('0x2580')]||'')+_0x3812ef('0x5d8')+_0xfe007[_0x3812ef('0x27f6')]+'}':(_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x2580')]||'')+_0x3812ef('0x16b5'),_0xfe007['recordingFormat']!==_0x3812ef('0x23ca')?_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x2116')][_0x3812ef('0x281c')](_0x3812ef('0x767'))<0x0&&(_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x2116')]+=_0x3812ef('0x767')):_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x2116')]=_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x2116')]['replace'](_0x3812ef('0x767'),''));if(_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0xf44')]&&_0x4c5524['hangup'][_0x3812ef('0xf44')]==='custom'){}else switch((_0x4c5524['hangup'][_0x3812ef('0xf2b')]||_0x4c5524[_0x3812ef('0x1e92')]['appType'])[_0x3812ef('0x20dd')]()){case _0x3812ef('0x2aa'):_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x26d2')]=_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x2623')]+'='+_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x2')];break;case _0x3812ef('0x261d'):break;default:_0x1eef35[0x0]=_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x26d2')],_0x4c5524[_0x3812ef('0x1e92')][_0x3812ef('0x26d2')]=_0x1eef35[_0x3812ef('0x1537')](',');}_0x3228f1(_0x4c5524['hangup']);}function _0x3228f1(_0x30e09c){var _0x3edb56=_0x466a0a;_0x60d26e[_0x3edb56('0x11ed')](_0x30e09c);}}const _0x25b560=_0x5f2287;_0x26d9ea['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x25bc'),_0xb635d2('0x1d7f'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x26d9ea(_0x374a6c,_0x396fd0,_0x592188,_0x51a1d6,_0x125cd5,_0x28e296,_0x2649f6,_0x38b540){var _0x1bb87c=_0xb635d2,_0x28842a=this;_0x28842a[_0x1bb87c('0x15a5')]=_0x2649f6['getCurrentUser'](),_0x28842a[_0x1bb87c('0xcd2')]=[],_0x28842a[_0x1bb87c('0x13e4')]='VOICE.EDIT_'+(_0x51a1d6[_0x1bb87c('0xf44')]||_0x51a1d6['app'])[_0x1bb87c('0x25f7')](),_0x28842a['internaldial']=angular[_0x1bb87c('0x89')](_0x51a1d6),_0x28842a[_0x1bb87c('0xb3d')]=_0x38b540,_0x28842a[_0x1bb87c('0x1ccb')]={};if(_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x26d2')])switch(_0x28842a['internaldial'][_0x1bb87c('0xf44')]?_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0xf44')][_0x1bb87c('0x20dd')]():_0x28842a['internaldial'][_0x1bb87c('0xf2b')][_0x1bb87c('0x20dd')]()){case'custom':break;case _0x1bb87c('0xc11'):{var _0x3f426=_0x28842a[_0x1bb87c('0x1c66')]['appdata']['split'](',');_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x6e4')]=_0x3f426[0x0],_0x28842a['internaldial']['language']=_0x3f426[0x1],_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0xfcc')]=_0x3f426[_0x1bb87c('0xa19')](0x2,_0x3f426[_0x1bb87c('0x25ae')])['join'](',');}break;case _0x1bb87c('0x1321'):{var _0xfc55c8=_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x26d2')][_0x1bb87c('0x1745')](',');_0x28842a[_0x1bb87c('0x1c66')]['accesskeyid']=_0xfc55c8[0x0],_0x28842a['internaldial']['secretaccesskey']=_0xfc55c8[0x1],_0x28842a['internaldial'][_0x1bb87c('0x206a')]=_0xfc55c8[0x2],_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x191a')]=_0xfc55c8[0x3],_0x28842a['internaldial'][_0x1bb87c('0xfcc')]=_0xfc55c8[_0x1bb87c('0xa19')](0x4,_0xfc55c8[_0x1bb87c('0x25ae')])[_0x1bb87c('0x1537')](',');}break;case _0x1bb87c('0x400'):{var _0x2ceda5=_0x28842a[_0x1bb87c('0x1c66')]['appdata'][_0x1bb87c('0x1745')](',');_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x1ec4')]=isNaN(_0x2ceda5[0x0])?_0x2ceda5[0x0]:parseInt(_0x2ceda5[0x0],0xa),_0x28842a[_0x1bb87c('0x1c66')]['text']=_0x2ceda5['slice'](0x1,_0x2ceda5[_0x1bb87c('0x25ae')])[_0x1bb87c('0x1537')](',');}break;case _0x1bb87c('0x27e8'):_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x1bc6')]=_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x26d2')];break;case _0x1bb87c('0x2aa'):_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x2623')]=_0x28842a['internaldial'][_0x1bb87c('0x26d2')][_0x1bb87c('0x1745')]('=')[0x0],_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x2')]=_0x28842a[_0x1bb87c('0x1c66')]['appdata'][_0x1bb87c('0x1745')]('=')[0x1];break;case'agi':_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x38b')]=_0x28842a['internaldial'][_0x1bb87c('0x26d2')];break;default:{var _0x3be454=_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x26d2')][_0x1bb87c('0x1745')](',');_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x10c6')]=_0x32d445()[_0x1bb87c('0x14b4')](_0x3be454[0x0])?_0x3be454[0x0]:isNaN(_0x3be454[0x0])?_0x3be454[0x0]:parseInt(_0x3be454[0x0],0xa),_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x2058')]=_0x32d445()[_0x1bb87c('0x14b4')](_0x3be454[0x1])?_0x3be454[0x1]:isNaN(_0x3be454[0x1])?_0x3be454[0x1]:parseInt(_0x3be454[0x1],0xa),_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x2116')]=_0x32d445()['isEmpty'](_0x3be454[0x2])?_0x3be454[0x2]:isNaN(_0x3be454[0x2])?_0x3be454[0x2]:parseInt(_0x3be454[0x2],0xa),_0x28842a[_0x1bb87c('0x1c66')]['url']=_0x32d445()[_0x1bb87c('0x14b4')](_0x3be454[0x3])?_0x3be454[0x3]:isNaN(_0x3be454[0x3])?_0x3be454[0x3]:parseInt(_0x3be454[0x3],0xa);}break;}else{}_0x28842a[_0x1bb87c('0x1c66')]['type']&&_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x62e')][_0x1bb87c('0x20dd')]()===_0x1bb87c('0x1fdf')&&_0x28842a['internaldial'][_0x1bb87c('0xf44')][_0x1bb87c('0x20dd')]()===_0x1bb87c('0x1d1b')&&(_0x28842a['internaldial'][_0x1bb87c('0x2580')]=_0x28842a['internaldial']['phone']?_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x1ef5')][_0x1bb87c('0x1745')]('$')[0x0]:undefined,_0x28842a[_0x1bb87c('0x1c66')][_0x1bb87c('0x1b6f')]=_0x28842a['internaldial'][_0x1bb87c('0xfca')]?_0x1bb87c('0xd41')+_0x28842a[_0x1bb87c('0x1c66')]['callerID']:undefined);_0x28842a[_0x1bb87c('0xdd4')]=_0x18fb58,_0x28842a[_0x1bb87c('0x2584')]=_0x10a7ee;var _0x241cf9=[{'id':0xca,'role':_0x1bb87c('0x108')},{'id':0xcb,'role':_0x1bb87c('0x1e7c')}],_0x4732a3=null;_0x2649f6['hasRole'](_0x1bb87c('0xd14'))?_0x28e296[_0x1bb87c('0x10c6')][_0x1bb87c('0x22d5')]({'fields':_0x1bb87c('0xcb6'),'sort':_0x1bb87c('0x2623'),'nolimit':'true'})['$promise'][_0x1bb87c('0xe19')](function(_0x31479f){var _0x621cf=_0x1bb87c;_0x28842a['users']=_0x31479f[_0x621cf('0x16a7')]||[];})[_0x1bb87c('0x223b')](function(_0x9090dc){var _0x55b56c=_0x1bb87c;_0x592188[_0x55b56c('0x8c8')]({'title':_0x9090dc[_0x55b56c('0x2833')]?_0x55b56c('0x27f2')+_0x9090dc[_0x55b56c('0x2833')]+_0x55b56c('0x1b7c')+_0x9090dc[_0x55b56c('0x1fd7')]:'SYSTEM:GET_USERS','msg':_0x9090dc['data']?JSON[_0x55b56c('0x3ad')](_0x9090dc[_0x55b56c('0x11d0')]):_0x9090dc['toString']()});}):_0x28e296[_0x1bb87c('0x10c6')]['get']({'fields':_0x1bb87c('0xcb6'),'sort':_0x1bb87c('0x2623'),'nolimit':_0x1bb87c('0x2206')})[_0x1bb87c('0xe59')][_0x1bb87c('0xe19')](function(_0x4bee79){var _0x5792c0=_0x1bb87c;_0x4732a3=_0x4bee79[_0x5792c0('0x16a7')]||[];})[_0x1bb87c('0xe19')](function(){var _0x5e89b5=_0x1bb87c,_0x41a591=[];for(var _0x4db424=0x0;_0x4db424<_0x241cf9[_0x5e89b5('0x25ae')];_0x4db424++){_0x41a591[_0x5e89b5('0xb76')](_0x28e296[_0x5e89b5('0xb59')][_0x5e89b5('0x22d5')]({'userProfileId':_0x28842a[_0x5e89b5('0x15a5')][_0x5e89b5('0x1d04')],'sectionId':_0x241cf9[_0x4db424]['id']})['$promise']);}return _0x396fd0[_0x5e89b5('0xf0e')](_0x41a591);})[_0x1bb87c('0xe19')](function(_0xf4a9c8){var _0xd58ba3=_0x1bb87c,_0x101f46=_0x32d445()['map'](_0xf4a9c8,function(_0x4a9d12){var _0x2310b3=a0_0x5325;return _0x4a9d12&&_0x4a9d12[_0x2310b3('0x16a7')]?_0x4a9d12['rows'][0x0]:null;}),_0x35f55f=[],_0x70998a=function _0x3b8a04(_0x1ad14e){var _0x1e0df0=a0_0x5325,_0xf2f461=_0x32d445()[_0x1e0df0('0xf15')](_0x101f46,[_0x1e0df0('0x964'),_0x241cf9[_0x1ad14e]['id']]);if(_0xf2f461){if(!_0xf2f461[_0x1e0df0('0x11fd')])_0x35f55f['push'](_0x28e296[_0x1e0df0('0xd49')][_0x1e0df0('0x22d5')]({'sectionId':_0xf2f461['id']})['$promise']);else{var _0x37efdd=[];_0x4732a3[_0x1e0df0('0x1d7e')](function(_0x3248bf){var _0x2170a5=_0x1e0df0;_0x3248bf[_0x2170a5('0xcd9')]===_0x241cf9[_0x1ad14e][_0x2170a5('0xcd9')]&&_0x37efdd['push'](_0x3248bf);}),_0x35f55f[_0x1e0df0('0xb76')]({'rows':_0x37efdd,'count':_0x37efdd[_0x1e0df0('0x25ae')]});}}};for(var _0x32961d=0x0;_0x32961d<_0x241cf9['length'];_0x32961d++){_0x70998a(_0x32961d);}return _0x396fd0[_0xd58ba3('0xf0e')](_0x35f55f);})[_0x1bb87c('0xe19')](function(_0x45cf9c){var _0x430f74=_0x1bb87c,_0x4b7876=[],_0xe6a771=null;_0x28842a[_0x430f74('0x1c66')]&&(_0xe6a771=_0x32d445()[_0x430f74('0xf15')](_0x4732a3,{'name':_0x28842a['internaldial'][_0x430f74('0x10c6')]}));for(var _0x392c6e=0x0;_0x392c6e<_0x45cf9c[_0x430f74('0x25ae')];_0x392c6e++){var _0x486c89=_0x45cf9c[_0x392c6e]['rows']||[];_0x486c89[_0x430f74('0x1d7e')](function(_0x473abd){_0x4b7876['push'](_0x473abd);});}_0xe6a771&&!_0x32d445()['some'](_0x4b7876,[_0x430f74('0x1104'),_0xe6a771['id']])&&_0x4732a3[_0x430f74('0x1d7e')](function(_0x5d6b57){var _0x4e7cc3=_0x430f74;_0x5d6b57['id']===_0xe6a771['id']&&(_0x5d6b57['canSelect']=![],_0x4b7876[_0x4e7cc3('0xb76')](_0x5d6b57));}),_0x28842a['users']=_0x4b7876;})['catch'](function(_0xb8cefd){var _0x2cbaf4=_0x1bb87c;_0x592188[_0x2cbaf4('0x8c8')]({'title':_0xb8cefd[_0x2cbaf4('0x2833')]?_0x2cbaf4('0x27f2')+_0xb8cefd['status']+'\x20-\x20'+_0xb8cefd[_0x2cbaf4('0x1fd7')]:_0x2cbaf4('0x1662'),'msg':_0xb8cefd[_0x2cbaf4('0x11d0')]?JSON[_0x2cbaf4('0x3ad')](_0xb8cefd['data']):_0xb8cefd[_0x2cbaf4('0x94f')]()});});function _0x18fb58(){var _0xda19a9=_0x1bb87c;_0x28842a[_0xda19a9('0xcd2')]=[];var _0x60563d=[];_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x62e')]&&_0x28842a['internaldial'][_0xda19a9('0x62e')][_0xda19a9('0x20dd')]()==='outbound'&&_0x28842a['internaldial'][_0xda19a9('0xf44')]===_0xda19a9('0x3d2')&&(_0x28842a['internaldial'][_0xda19a9('0x1ef5')]=_0x125cd5[_0xda19a9('0x27f6')]?(_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x2580')]||'')+'${EXTEN:'+_0x125cd5[_0xda19a9('0x27f6')]+'}':(_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x2580')]||'')+_0xda19a9('0x16b5'),_0x125cd5[_0xda19a9('0x150c')]!=='none'?_0x28842a[_0xda19a9('0x1c66')]['options'][_0xda19a9('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x28842a['internaldial'][_0xda19a9('0x2116')]+=_0xda19a9('0x767')):_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x2116')]=_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x2116')][_0xda19a9('0x1b42')](_0xda19a9('0x767'),''));if(_0x28842a['internaldial'][_0xda19a9('0xf44')]&&_0x28842a[_0xda19a9('0x1c66')]['appType']==='custom'){}else switch((_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0xf2b')]||_0x28842a['internaldial']['appType'])[_0xda19a9('0x20dd')]()){case _0xda19a9('0x2aa'):_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x26d2')]=_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x2623')]+'='+_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x2')];break;case'custom':break;default:_0x60563d[0x0]=_0x28842a[_0xda19a9('0x1c66')]['user'],_0x60563d[0x1]=_0x28842a[_0xda19a9('0x1c66')]['timeout'],_0x60563d[0x2]=_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x2116')],_0x60563d[0x3]=_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x2647')],_0x28842a[_0xda19a9('0x1c66')][_0xda19a9('0x26d2')]=_0x60563d[_0xda19a9('0x1537')](',');}_0x10a7ee(_0x28842a['internaldial']);}function _0x10a7ee(_0x35c19c){var _0x55ff29=_0x1bb87c;_0x374a6c[_0x55ff29('0x11ed')](_0x35c19c);}}const _0x4b890e=_0x26d9ea;_0x8f5146['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),_0xb635d2('0x1e23'),_0xb635d2('0x9ab'),_0xb635d2('0x134c'),'intervals','toasty',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x8f5146(_0x18120b,_0x408382,_0x363ea0,_0x886091,_0x3b110b,_0x4bc390,_0x1940d8,_0x2ea673,_0x4f321b,_0x2181ae){var _0xa7bae6=_0xb635d2,_0x4618f2=this;_0x4618f2['currentUser']=_0x4f321b['getCurrentUser'](),_0x4618f2[_0xa7bae6('0xcd2')]=[],_0x4618f2[_0xa7bae6('0x13e4')]='TOOLS.EDIT_INTERVAL',_0x4618f2['interval']=angular[_0xa7bae6('0x89')](_0x3b110b),_0x4618f2[_0xa7bae6('0x10e0')]=_0x4bc390,_0x4618f2[_0xa7bae6('0x1a83')]=![],_0x4618f2['types']=[_0xa7bae6('0x2210'),_0xa7bae6('0x261d'),'list'],_0x4618f2[_0xa7bae6('0xb3d')]=_0x2181ae,_0x4618f2[_0xa7bae6('0x1af')]=_0x886091[_0xa7bae6('0xfd7')](),_0x4618f2[_0xa7bae6('0x253d')]=_0x886091[_0xa7bae6('0x1015')](),_0x4618f2[_0xa7bae6('0x631')]=_0x886091['getMonthName'](),_0x4618f2[_0xa7bae6('0x2347')]=_0x886091['getDaysOfMonth']();if(!_0x4618f2[_0xa7bae6('0x134c')])_0x4618f2['interval']={'interval':_0xa7bae6('0x2292')},_0x4618f2[_0xa7bae6('0x62e')]=_0xa7bae6('0x2210'),_0x4618f2[_0xa7bae6('0x13e4')]=_0xa7bae6('0x1947'),_0x4618f2['newInterval']=!![];else{if(_0x4618f2['interval'][_0xa7bae6('0x134c')]!==_0xa7bae6('0x2292')){_0x4618f2[_0xa7bae6('0x62e')]=_0xa7bae6('0x261d');var _0xd52901=_0x4618f2['interval'][_0xa7bae6('0x134c')]['split'](','),_0x17149b=_0xd52901[0x0],_0x4852fb=_0xd52901[0x1],_0x1e7102=_0xd52901[0x2],_0x4be970=_0xd52901[0x3];if(_0x17149b!=='*'){var _0x547cef=_0x17149b[_0xa7bae6('0x1745')]('-')[0x0],_0x502503=_0x17149b[_0xa7bae6('0x1745')]('-')[0x1],_0x44f8cd;_0x44f8cd=new Date(),_0x44f8cd[_0xa7bae6('0x19f6')](Number(_0x547cef[_0xa7bae6('0x1745')](':')[0x0])),_0x44f8cd[_0xa7bae6('0x6b6')](Number(_0x547cef[_0xa7bae6('0x1745')](':')[0x1])),_0x4618f2['timeRangeFrom']=_0x44f8cd,_0x44f8cd=new Date(),_0x44f8cd[_0xa7bae6('0x19f6')](Number(_0x502503[_0xa7bae6('0x1745')](':')[0x0])),_0x44f8cd['setMinutes'](Number(_0x502503['split'](':')[0x1])),_0x4618f2[_0xa7bae6('0x12ef')]=_0x44f8cd;}_0x4852fb!=='*'&&(_0x4618f2[_0xa7bae6('0x2359')]=_0x4852fb[_0xa7bae6('0x1745')]('-')[0x0],_0x4618f2[_0xa7bae6('0xa40')]=_0x4852fb[_0xa7bae6('0x1745')]('-')[0x1]),_0x1e7102!=='*'&&(_0x4618f2[_0xa7bae6('0x146b')]=_0x1e7102['split']('-')[0x0],_0x4618f2[_0xa7bae6('0x3d6')]=_0x1e7102[_0xa7bae6('0x1745')]('-')[0x1]),_0x4be970!=='*'&&(_0x4618f2['monthFrom']=_0x4be970[_0xa7bae6('0x1745')]('-')[0x0],_0x4618f2[_0xa7bae6('0xac6')]=_0x4be970['split']('-')[0x1]);}else _0x4618f2[_0xa7bae6('0x62e')]='always';}_0x18120b[_0xa7bae6('0x2ef')]['id']&&!_0x4618f2[_0xa7bae6('0x134c')][_0xa7bae6('0x1491')]&&(_0x4618f2['interval']['IntervalId']=_0x18120b['params']['id']);_0x4618f2[_0xa7bae6('0x134c')][_0xa7bae6('0x1fc1')]&&_0x4618f2[_0xa7bae6('0x134c')]['application']&&(_0x4618f2[_0xa7bae6('0x62e')]=_0xa7bae6('0x15a8'));_0x4618f2[_0xa7bae6('0x10a8')]=_0x132fd3,_0x4618f2['saveInterval']=_0x29541f,_0x4618f2['closeDialog']=_0x348434;_0x4618f2['interval'][_0xa7bae6('0x1491')]&&(_0x4f321b[_0xa7bae6('0x179e')](_0xa7bae6('0xd14'))?_0x2ea673[_0xa7bae6('0x134c')][_0xa7bae6('0x22d5')]({'fields':'id,name,interval,IntervalId','IntervalId':_0xa7bae6('0x1046'),'nolimit':!![]})[_0xa7bae6('0xe59')][_0xa7bae6('0xe19')](function(_0x71e5b8){var _0x54b84a=_0xa7bae6;_0x4618f2[_0x54b84a('0x10e0')]=_0x71e5b8[_0x54b84a('0x16a7')]||[];})[_0xa7bae6('0x223b')](function(_0x228acc){var _0x208134=_0xa7bae6;_0x1940d8[_0x208134('0x8c8')]({'title':_0x228acc[_0x208134('0x2833')]?_0x208134('0x27f2')+_0x228acc[_0x208134('0x2833')]+_0x208134('0x1b7c')+_0x228acc[_0x208134('0x1fd7')]:_0x208134('0x1c1c'),'msg':_0x228acc[_0x208134('0x11d0')]?JSON[_0x208134('0x3ad')](_0x228acc[_0x208134('0x11d0')]):_0x228acc['toString']()});}):_0x2ea673[_0xa7bae6('0x134c')][_0xa7bae6('0x22d5')]({'fields':_0xa7bae6('0x13df'),'IntervalId':_0xa7bae6('0x1046'),'nolimit':!![]})['$promise'][_0xa7bae6('0xe19')](function(_0x342192){var _0x3fee16=_0xa7bae6;_0x4618f2[_0x3fee16('0x10e0')]=_0x342192[_0x3fee16('0x16a7')]||[];})[_0xa7bae6('0xe19')](function(){var _0x33d7fc=_0xa7bae6;return _0x2ea673[_0x33d7fc('0xb59')][_0x33d7fc('0x22d5')]({'userProfileId':_0x4618f2[_0x33d7fc('0x15a5')][_0x33d7fc('0x1d04')],'sectionId':0x3ec})[_0x33d7fc('0xe59')];})['then'](function(_0x59e658){var _0x153302=_0xa7bae6,_0x423ff5=_0x59e658&&_0x59e658[_0x153302('0x16a7')]?_0x59e658[_0x153302('0x16a7')][0x0]:null;if(!_0x423ff5)_0x4618f2[_0x153302('0x10e0')]=[];else{if(!_0x423ff5[_0x153302('0x11fd')])return _0x2ea673['userProfileResource'][_0x153302('0x22d5')]({'sectionId':_0x423ff5['id']})[_0x153302('0xe59')][_0x153302('0xe19')](function(_0x6c2f92){var _0x128856=_0x153302,_0x59f7ad=_0x6c2f92&&_0x6c2f92[_0x128856('0x16a7')]?_0x6c2f92[_0x128856('0x16a7')]:[],_0xf9ddcb=[],_0x268bcc=null;_0x4618f2[_0x128856('0x134c')]&&(_0x268bcc=_0x32d445()[_0x128856('0xf15')](_0x4618f2[_0x128856('0x10e0')],{'name':_0x4618f2[_0x128856('0x134c')][_0x128856('0x1fc1')]})),_0x268bcc&&!_0x32d445()[_0x128856('0x201a')](_0x59f7ad,[_0x128856('0x1104'),_0x268bcc['id']])&&_0x4618f2[_0x128856('0x10e0')][_0x128856('0x1d7e')](function(_0x3b367a){var _0x211662=_0x128856;_0x3b367a['id']===_0x268bcc['id']&&(_0x3b367a['canSelect']=![],_0xf9ddcb[_0x211662('0xb76')](_0x3b367a));}),_0x4618f2[_0x128856('0x10e0')]=_0xf9ddcb;});}})[_0xa7bae6('0x223b')](function(_0x4108e5){var _0x11893b=_0xa7bae6;_0x1940d8[_0x11893b('0x8c8')]({'title':_0x4108e5['status']?_0x11893b('0x27f2')+_0x4108e5[_0x11893b('0x2833')]+'\x20-\x20'+_0x4108e5[_0x11893b('0x1fd7')]:_0x11893b('0x1c1c'),'msg':_0x4108e5[_0x11893b('0x11d0')]?JSON[_0x11893b('0x3ad')](_0x4108e5[_0x11893b('0x11d0')]):_0x4108e5[_0x11893b('0x94f')]()});}));function _0x26d4fa(){var _0x3b9e67=_0xa7bae6;switch(_0x4618f2['type']){case'always':case _0x3b9e67('0x15a8'):return'*,*,*,*';case'custom':{var _0x1f2ea5=[];if(_0x4618f2[_0x3b9e67('0xde9')]!=='*'&&_0x4618f2[_0x3b9e67('0xde9')]&&_0x4618f2[_0x3b9e67('0x12ef')]){var _0x46e8c8=(_0x4618f2[_0x3b9e67('0xde9')][_0x3b9e67('0x757')]()<0xa?'0':'')+_0x4618f2[_0x3b9e67('0xde9')]['getHours']()+':'+((_0x4618f2[_0x3b9e67('0xde9')][_0x3b9e67('0x961')]()<0xa?'0':'')+_0x4618f2[_0x3b9e67('0xde9')][_0x3b9e67('0x961')]()),_0x571242=(_0x4618f2[_0x3b9e67('0x12ef')]['getHours']()<0xa?'0':'')+_0x4618f2[_0x3b9e67('0x12ef')]['getHours']()+':'+((_0x4618f2[_0x3b9e67('0x12ef')]['getMinutes']()<0xa?'0':'')+_0x4618f2['timeRangeTo'][_0x3b9e67('0x961')]());_0x1f2ea5[_0x3b9e67('0xb76')](_0x46e8c8+'-'+_0x571242);}else _0x1f2ea5[_0x3b9e67('0xb76')]('*');return _0x4618f2[_0x3b9e67('0x2359')]?_0x4618f2[_0x3b9e67('0xa40')]?_0x1f2ea5[_0x3b9e67('0xb76')](_0x4618f2['dayOfWeekFrom']+'-'+_0x4618f2[_0x3b9e67('0xa40')]):_0x1f2ea5['push'](_0x4618f2[_0x3b9e67('0x2359')]):_0x1f2ea5['push']('*'),_0x4618f2[_0x3b9e67('0x146b')]?_0x4618f2[_0x3b9e67('0x3d6')]?_0x1f2ea5['push'](_0x4618f2['monthDayFrom']+'-'+_0x4618f2[_0x3b9e67('0x3d6')]):_0x1f2ea5[_0x3b9e67('0xb76')](_0x4618f2[_0x3b9e67('0x146b')]):_0x1f2ea5[_0x3b9e67('0xb76')]('*'),_0x4618f2['monthFrom']?_0x4618f2[_0x3b9e67('0xac6')]?_0x1f2ea5['push'](_0x4618f2[_0x3b9e67('0x1b2a')]+'-'+_0x4618f2[_0x3b9e67('0xac6')]):_0x1f2ea5[_0x3b9e67('0xb76')](_0x4618f2[_0x3b9e67('0x1b2a')]):_0x1f2ea5[_0x3b9e67('0xb76')]('*'),_0x1f2ea5[_0x3b9e67('0x1537')]();}}}function _0x132fd3(){var _0x4bbca5=_0xa7bae6;_0x4618f2[_0x4bbca5('0xcd2')]=[],_0x4618f2['interval'][_0x4bbca5('0x134c')]=_0x26d4fa(),_0x2ea673[_0x4bbca5('0x134c')][_0x4bbca5('0xe5e')](_0x4618f2[_0x4bbca5('0x134c')])[_0x4bbca5('0xe59')][_0x4bbca5('0xe19')](function(_0x371923){var _0x14b46f=_0x4bbca5;_0x4618f2['intervals']['push'](_0x371923),_0x1940d8['success']({'title':_0x14b46f('0x1268'),'msg':_0x4618f2[_0x14b46f('0x134c')]['name']?_0x4618f2[_0x14b46f('0x134c')][_0x14b46f('0x2623')]+_0x14b46f('0x105f'):''}),_0x348434();})[_0x4bbca5('0x223b')](function(_0x12b7ce){var _0x5562b8=_0x4bbca5;console[_0x5562b8('0x8c8')](_0x12b7ce),_0x4618f2['errors']=_0x12b7ce[_0x5562b8('0x11d0')][_0x5562b8('0xcd2')]||[{'message':_0x12b7ce[_0x5562b8('0x94f')](),'type':_0x5562b8('0x176b')}];});}function _0x29541f(){var _0x4b9077=_0xa7bae6;_0x4618f2[_0x4b9077('0xcd2')]=[],_0x4618f2[_0x4b9077('0x134c')]['interval']=_0x26d4fa(),_0x4618f2[_0x4b9077('0x134c')][_0x4b9077('0x1491')]?(_0x4618f2[_0x4b9077('0x62e')]!==_0x4b9077('0x15a8')&&(_0x4618f2[_0x4b9077('0x134c')][_0x4b9077('0x1fc1')]=null),_0x348434(_0x4618f2[_0x4b9077('0x134c')])):_0x2ea673[_0x4b9077('0x134c')][_0x4b9077('0xa70')]({'id':_0x4618f2['interval']['id']},_0x4618f2[_0x4b9077('0x134c')])[_0x4b9077('0xe59')][_0x4b9077('0xe19')](function(_0x4b0b46){var _0x31bad2=_0x4b9077,_0x3a7d46=_0x32d445()['find'](_0x4618f2[_0x31bad2('0x10e0')],{'id':_0x4b0b46['id']});_0x3a7d46&&_0x32d445()[_0x31bad2('0x1d8')](_0x3a7d46,_0x4b0b46),_0x1940d8['success']({'title':'Interval\x20properly\x20saved!','msg':_0x31bad2('0x8b4')}),_0x348434();})[_0x4b9077('0x223b')](function(_0x3c4206){var _0x2c9b7a=_0x4b9077;console['error'](_0x3c4206),_0x4618f2[_0x2c9b7a('0xcd2')]=_0x3c4206[_0x2c9b7a('0x11d0')]['errors']||[{'message':_0x3c4206[_0x2c9b7a('0x94f')](),'type':_0x2c9b7a('0x1ff2')}];});}function _0x348434(_0x5212bc){var _0x1dec7a=_0xa7bae6;_0x408382[_0x1dec7a('0x11ed')](_0x5212bc);}}const _0x1d330b=_0x8f5146;_0x4340f1['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),'inboundrouteApp','inboundroute',_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x4340f1(_0x5a2b79,_0x10e1d4,_0x3d58ae,_0x5a3101,_0x9d0d34,_0x5945cd,_0x3af49c,_0x2ec644){var _0x1d951e=_0xb635d2,_0x5ca10d=this;_0x5ca10d[_0x1d951e('0x15a5')]=_0x3af49c[_0x1d951e('0x1ef8')](),_0x5ca10d[_0x1d951e('0xcd2')]=[],_0x5ca10d['title']=_0x1d951e('0x22ff')+(_0x5a3101[_0x1d951e('0xf44')]||_0x5a3101[_0x1d951e('0xf2b')])[_0x1d951e('0x25f7')](),_0x5ca10d[_0x1d951e('0x1fd6')]=angular[_0x1d951e('0x89')](_0x5a3101),_0x5ca10d[_0x1d951e('0xb3d')]=_0x2ec644,_0x5ca10d['hasModulePermissions']={};if(_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x26d2')])switch(_0x5ca10d['playback'][_0x1d951e('0xf44')]?_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0xf44')][_0x1d951e('0x20dd')]():_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0xf2b')][_0x1d951e('0x20dd')]()){case'custom':break;case _0x1d951e('0xc11'):{var _0x4c27f1=_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x26d2')][_0x1d951e('0x1745')](',');_0x5ca10d[_0x1d951e('0x1fd6')]['key']=_0x4c27f1[0x0],_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x174b')]=_0x4c27f1[0x1],_0x5ca10d['playback'][_0x1d951e('0xfcc')]=_0x4c27f1[_0x1d951e('0xa19')](0x2,_0x4c27f1[_0x1d951e('0x25ae')])[_0x1d951e('0x1537')](',');}break;case _0x1d951e('0x1321'):{var _0x56a93d=_0x5ca10d['playback'][_0x1d951e('0x26d2')][_0x1d951e('0x1745')](',');_0x5ca10d['playback'][_0x1d951e('0x22be')]=_0x56a93d[0x0],_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x700')]=_0x56a93d[0x1],_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x206a')]=_0x56a93d[0x2],_0x5ca10d['playback']['botname']=_0x56a93d[0x3],_0x5ca10d['playback'][_0x1d951e('0xfcc')]=_0x56a93d['slice'](0x4,_0x56a93d[_0x1d951e('0x25ae')])[_0x1d951e('0x1537')](',');}break;case _0x1d951e('0x400'):{var _0x2e6a13=_0x5ca10d['playback'][_0x1d951e('0x26d2')][_0x1d951e('0x1745')](',');_0x5ca10d['playback'][_0x1d951e('0x1ec4')]=isNaN(_0x2e6a13[0x0])?_0x2e6a13[0x0]:parseInt(_0x2e6a13[0x0],0xa),_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x1bc6')]=_0x2e6a13['slice'](0x1,_0x2e6a13['length'])[_0x1d951e('0x1537')](',');}break;case _0x1d951e('0x27e8'):_0x5ca10d[_0x1d951e('0x1fd6')]['text']=_0x5ca10d['playback']['appdata'];break;case _0x1d951e('0x2aa'):_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x2623')]=_0x5ca10d['playback'][_0x1d951e('0x26d2')][_0x1d951e('0x1745')]('=')[0x0],_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x2')]=_0x5ca10d['playback'][_0x1d951e('0x26d2')]['split']('=')[0x1];break;case _0x1d951e('0x401'):_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x38b')]=_0x5ca10d[_0x1d951e('0x1fd6')]['appdata'];break;default:{var _0x13af28=_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x26d2')][_0x1d951e('0x1745')](',');_0x5ca10d[_0x1d951e('0x1fd6')]['appdata']=_0x32d445()[_0x1d951e('0x14b4')](_0x13af28[0x0])?_0x13af28[0x0]:isNaN(_0x13af28[0x0])?_0x13af28[0x0]:parseInt(_0x13af28[0x0],0xa),_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x2116')]=_0x32d445()[_0x1d951e('0x14b4')](_0x13af28[0x1])?_0x13af28[0x1]:isNaN(_0x13af28[0x1])?_0x13af28[0x1]:parseInt(_0x13af28[0x1],0xa);}break;}else{}_0x5ca10d[_0x1d951e('0x1fd6')]['type']&&_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x62e')]['toLowerCase']()===_0x1d951e('0x1fdf')&&_0x5ca10d['playback'][_0x1d951e('0xf44')][_0x1d951e('0x20dd')]()===_0x1d951e('0x1d1b')&&(_0x5ca10d[_0x1d951e('0x1fd6')]['prefix']=_0x5ca10d['playback'][_0x1d951e('0x1ef5')]?_0x5ca10d['playback'][_0x1d951e('0x1ef5')]['split']('$')[0x0]:undefined,_0x5ca10d[_0x1d951e('0x1fd6')][_0x1d951e('0x1b6f')]=_0x5ca10d[_0x1d951e('0x1fd6')]['callerID']?'CALLERID(all)='+_0x5ca10d['playback'][_0x1d951e('0xfca')]:undefined);_0x5ca10d['saveInboundRouteApp']=_0x33ef50,_0x5ca10d[_0x1d951e('0x2584')]=_0x2458a0,_0x3af49c[_0x1d951e('0x179e')]('admin')?_0x5945cd[_0x1d951e('0x392')][_0x1d951e('0x22d5')]({'fields':_0x1d951e('0x22db'),'sort':'name','nolimit':_0x1d951e('0x2206')})[_0x1d951e('0xe59')][_0x1d951e('0xe19')](function(_0x8b726c){var _0x179900=_0x1d951e;_0x5ca10d[_0x179900('0x219b')]=_0x8b726c[_0x179900('0x16a7')]||[];})[_0x1d951e('0x223b')](function(_0x122ef1){var _0x4ae3ca=_0x1d951e;_0x3d58ae[_0x4ae3ca('0x8c8')]({'title':_0x122ef1[_0x4ae3ca('0x2833')]?_0x4ae3ca('0x27f2')+_0x122ef1[_0x4ae3ca('0x2833')]+_0x4ae3ca('0x1b7c')+_0x122ef1[_0x4ae3ca('0x1fd7')]:_0x4ae3ca('0x13c9'),'msg':_0x122ef1[_0x4ae3ca('0x11d0')]?JSON[_0x4ae3ca('0x3ad')](_0x122ef1['data']):_0x122ef1['toString']()});}):_0x5945cd[_0x1d951e('0x392')][_0x1d951e('0x22d5')]({'fields':_0x1d951e('0x22db'),'sort':_0x1d951e('0x2623'),'nolimit':_0x1d951e('0x2206')})[_0x1d951e('0xe59')][_0x1d951e('0xe19')](function(_0x20fff9){var _0x1bb1b6=_0x1d951e;_0x5ca10d[_0x1bb1b6('0x219b')]=_0x20fff9[_0x1bb1b6('0x16a7')]||[];})[_0x1d951e('0xe19')](function(){var _0x97e1c1=_0x1d951e;return _0x5945cd[_0x97e1c1('0xb59')]['get']({'userProfileId':_0x5ca10d[_0x97e1c1('0x15a5')]['userProfileId'],'sectionId':0x3ef})[_0x97e1c1('0xe59')];})[_0x1d951e('0xe19')](function(_0x4d7268){var _0x470054=_0x1d951e,_0x5c7064=_0x4d7268&&_0x4d7268['rows']?_0x4d7268[_0x470054('0x16a7')][0x0]:null;if(!_0x5c7064){var _0x15a8bf=[],_0x5aeb91=null;_0x5ca10d[_0x470054('0x1fd6')]&&(_0x5aeb91=_0x32d445()[_0x470054('0xf15')](_0x5ca10d[_0x470054('0x219b')],{'save_name':_0x5ca10d[_0x470054('0x1fd6')][_0x470054('0x392')]}));for(var _0x523998=0x0;_0x523998<_0x5ca10d[_0x470054('0x219b')][_0x470054('0x25ae')];_0x523998++){_0x5aeb91&&_0x5ca10d[_0x470054('0x219b')][_0x523998]['id']===_0x5aeb91['id']&&(_0x5ca10d[_0x470054('0x219b')][_0x523998]['canSelect']=![],_0x15a8bf['push'](_0x5ca10d[_0x470054('0x219b')][_0x523998]));}_0x5ca10d['sounds']=_0x15a8bf;}else{if(!_0x5c7064['autoAssociation'])return _0x5945cd[_0x470054('0xd49')][_0x470054('0x22d5')]({'sectionId':_0x5c7064['id']})[_0x470054('0xe59')][_0x470054('0xe19')](function(_0x3861e9){var _0x9a13d7=_0x470054,_0x294dad=_0x32d445()['map'](_0x3861e9[_0x9a13d7('0x16a7')],function(_0x5cbfa4){var _0x399bd1=_0x9a13d7;return _0x32d445()['find'](_0x5ca10d[_0x399bd1('0x219b')],{'id':_0x5cbfa4[_0x399bd1('0x1104')]});}),_0x222fd6=null;_0x5ca10d[_0x9a13d7('0x1fd6')]&&(_0x222fd6=_0x32d445()[_0x9a13d7('0xf15')](_0x5ca10d['sounds'],{'save_name':_0x5ca10d[_0x9a13d7('0x1fd6')]['sound']}));if(_0x222fd6&&!_0x32d445()[_0x9a13d7('0x201a')](_0x294dad,['id',_0x222fd6['id']])){var _0x18dfd8=_0x32d445()[_0x9a13d7('0xf15')](_0x5ca10d[_0x9a13d7('0x219b')],{'id':_0x222fd6['id']});_0x18dfd8[_0x9a13d7('0x1e9d')]=![],_0x294dad['push'](_0x18dfd8);}_0x5ca10d[_0x9a13d7('0x219b')]=_0x294dad;});}})[_0x1d951e('0x223b')](function(_0x555f58){var _0x5a353b=_0x1d951e;_0x3d58ae[_0x5a353b('0x8c8')]({'title':_0x555f58[_0x5a353b('0x2833')]?_0x5a353b('0x27f2')+_0x555f58[_0x5a353b('0x2833')]+_0x5a353b('0x1b7c')+_0x555f58[_0x5a353b('0x1fd7')]:_0x5a353b('0x684'),'msg':_0x555f58['data']?JSON[_0x5a353b('0x3ad')](_0x555f58[_0x5a353b('0x11d0')]):_0x555f58['toString']()});});function _0x33ef50(){var _0x12b740=_0x1d951e;_0x5ca10d['errors']=[];var _0x45fa4a=[];_0x5ca10d['playback']['type']&&_0x5ca10d[_0x12b740('0x1fd6')][_0x12b740('0x62e')][_0x12b740('0x20dd')]()===_0x12b740('0x1fdf')&&_0x5ca10d['playback'][_0x12b740('0xf44')]===_0x12b740('0x3d2')&&(_0x5ca10d[_0x12b740('0x1fd6')][_0x12b740('0x1ef5')]=_0x9d0d34[_0x12b740('0x27f6')]?(_0x5ca10d['playback'][_0x12b740('0x2580')]||'')+_0x12b740('0x5d8')+_0x9d0d34[_0x12b740('0x27f6')]+'}':(_0x5ca10d['playback'][_0x12b740('0x2580')]||'')+_0x12b740('0x16b5'),_0x9d0d34['recordingFormat']!==_0x12b740('0x23ca')?_0x5ca10d['playback'][_0x12b740('0x2116')]['indexOf'](_0x12b740('0x767'))<0x0&&(_0x5ca10d['playback'][_0x12b740('0x2116')]+='U(xcally-mixmonitor-context)'):_0x5ca10d['playback'][_0x12b740('0x2116')]=_0x5ca10d[_0x12b740('0x1fd6')][_0x12b740('0x2116')][_0x12b740('0x1b42')](_0x12b740('0x767'),''));if(_0x5ca10d[_0x12b740('0x1fd6')][_0x12b740('0xf44')]&&_0x5ca10d[_0x12b740('0x1fd6')][_0x12b740('0xf44')]===_0x12b740('0x261d')){}else switch((_0x5ca10d[_0x12b740('0x1fd6')]['app']||_0x5ca10d[_0x12b740('0x1fd6')][_0x12b740('0xf44')])['toLowerCase']()){case _0x12b740('0x2aa'):_0x5ca10d[_0x12b740('0x1fd6')]['appdata']=_0x5ca10d[_0x12b740('0x1fd6')]['name']+'='+_0x5ca10d['playback'][_0x12b740('0x2')];break;case'custom':break;default:_0x45fa4a[0x0]=_0x5ca10d[_0x12b740('0x1fd6')][_0x12b740('0x26d2')],_0x45fa4a[0x1]=_0x5ca10d['playback'][_0x12b740('0x2116')],_0x5ca10d[_0x12b740('0x1fd6')][_0x12b740('0x26d2')]=_0x45fa4a['join'](',');}_0x2458a0(_0x5ca10d[_0x12b740('0x1fd6')]);}function _0x2458a0(_0x32b18d){_0x5a2b79['hide'](_0x32b18d);}}const _0x3900f7=_0x4340f1;_0x1d70ec[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0x25bc'),_0xb635d2('0x1d7f'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x1d70ec(_0x1fe7b2,_0x566506,_0x320d89,_0x1f2acf,_0x44c865,_0x1955ae,_0x1a4b86,_0x3fa620){var _0x1ac5e8=_0xb635d2,_0x3cea45=this;_0x3cea45['currentUser']=_0x1a4b86[_0x1ac5e8('0x1ef8')](),_0x3cea45[_0x1ac5e8('0xcd2')]=[],_0x3cea45['title']=_0x1ac5e8('0x22ff')+(_0x1f2acf['appType']||_0x1f2acf[_0x1ac5e8('0xf2b')])[_0x1ac5e8('0x25f7')](),_0x3cea45[_0x1ac5e8('0x26a8')]=angular[_0x1ac5e8('0x89')](_0x1f2acf),_0x3cea45[_0x1ac5e8('0xb3d')]=_0x3fa620,_0x3cea45[_0x1ac5e8('0x1ccb')]={};if(_0x3cea45['queue'][_0x1ac5e8('0x26d2')])switch(_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0xf44')]?_0x3cea45[_0x1ac5e8('0x26a8')]['appType']['toLowerCase']():_0x3cea45['queue']['app'][_0x1ac5e8('0x20dd')]()){case _0x1ac5e8('0x261d'):break;case'dialogflow':{var _0x1dc632=_0x3cea45['queue']['appdata'][_0x1ac5e8('0x1745')](',');_0x3cea45['queue'][_0x1ac5e8('0x6e4')]=_0x1dc632[0x0],_0x3cea45[_0x1ac5e8('0x26a8')]['language']=_0x1dc632[0x1],_0x3cea45[_0x1ac5e8('0x26a8')]['welcomemessage']=_0x1dc632['slice'](0x2,_0x1dc632[_0x1ac5e8('0x25ae')])[_0x1ac5e8('0x1537')](',');}break;case'amazonlex':{var _0x345360=_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x26d2')][_0x1ac5e8('0x1745')](',');_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x22be')]=_0x345360[0x0],_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x700')]=_0x345360[0x1],_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x206a')]=_0x345360[0x2],_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x191a')]=_0x345360[0x3],_0x3cea45[_0x1ac5e8('0x26a8')]['welcomemessage']=_0x345360[_0x1ac5e8('0xa19')](0x4,_0x345360['length'])['join'](',');}break;case _0x1ac5e8('0x400'):{var _0x19813a=_0x3cea45['queue'][_0x1ac5e8('0x26d2')][_0x1ac5e8('0x1745')](',');_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x1ec4')]=isNaN(_0x19813a[0x0])?_0x19813a[0x0]:parseInt(_0x19813a[0x0],0xa),_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x1bc6')]=_0x19813a['slice'](0x1,_0x19813a[_0x1ac5e8('0x25ae')])[_0x1ac5e8('0x1537')](',');}break;case _0x1ac5e8('0x27e8'):_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x1bc6')]=_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x26d2')];break;case _0x1ac5e8('0x2aa'):_0x3cea45['queue'][_0x1ac5e8('0x2623')]=_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x26d2')]['split']('=')[0x0],_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x2')]=_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x26d2')]['split']('=')[0x1];break;case _0x1ac5e8('0x401'):_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x38b')]=_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x26d2')];break;default:{var _0x5ace5b=_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x26d2')][_0x1ac5e8('0x1745')](',');_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x26a8')]=_0x32d445()[_0x1ac5e8('0x14b4')](_0x5ace5b[0x0])?_0x5ace5b[0x0]:isNaN(_0x5ace5b[0x0])?_0x5ace5b[0x0]:parseInt(_0x5ace5b[0x0],0xa),_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x2116')]=_0x32d445()[_0x1ac5e8('0x14b4')](_0x5ace5b[0x1])?_0x5ace5b[0x1]:isNaN(_0x5ace5b[0x1])?_0x5ace5b[0x1]:parseInt(_0x5ace5b[0x1],0xa),_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x3ae')]=_0x32d445()[_0x1ac5e8('0x14b4')](_0x5ace5b[0x2])?_0x5ace5b[0x2]:isNaN(_0x5ace5b[0x2])?_0x5ace5b[0x2]:parseInt(_0x5ace5b[0x2],0xa),_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x392')]=_0x32d445()[_0x1ac5e8('0x14b4')](_0x5ace5b[0x3])?_0x5ace5b[0x3]:isNaN(_0x5ace5b[0x3])?_0x5ace5b[0x3]:parseInt(_0x5ace5b[0x3],0xa),_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x2058')]=_0x32d445()['isEmpty'](_0x5ace5b[0x4])?_0x5ace5b[0x4]:isNaN(_0x5ace5b[0x4])?_0x5ace5b[0x4]:parseInt(_0x5ace5b[0x4],0xa),_0x3cea45[_0x1ac5e8('0x26a8')]['agi']=_0x32d445()[_0x1ac5e8('0x14b4')](_0x5ace5b[0x5])?_0x5ace5b[0x5]:isNaN(_0x5ace5b[0x5])?_0x5ace5b[0x5]:parseInt(_0x5ace5b[0x5],0xa),_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0xba1')]=_0x32d445()[_0x1ac5e8('0x14b4')](_0x5ace5b[0x6])?_0x5ace5b[0x6]:isNaN(_0x5ace5b[0x6])?_0x5ace5b[0x6]:parseInt(_0x5ace5b[0x6],0xa),_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x1874')]=_0x32d445()['isEmpty'](_0x5ace5b[0x7])?_0x5ace5b[0x7]:isNaN(_0x5ace5b[0x7])?_0x5ace5b[0x7]:parseInt(_0x5ace5b[0x7],0xa),_0x3cea45['queue']['rule']=_0x32d445()[_0x1ac5e8('0x14b4')](_0x5ace5b[0x8])?_0x5ace5b[0x8]:isNaN(_0x5ace5b[0x8])?_0x5ace5b[0x8]:parseInt(_0x5ace5b[0x8],0xa),_0x3cea45[_0x1ac5e8('0x26a8')]['position']=_0x32d445()[_0x1ac5e8('0x14b4')](_0x5ace5b[0x9])?_0x5ace5b[0x9]:isNaN(_0x5ace5b[0x9])?_0x5ace5b[0x9]:parseInt(_0x5ace5b[0x9],0xa);}break;}else{}_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x62e')]&&_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x62e')][_0x1ac5e8('0x20dd')]()==='outbound'&&_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0xf44')][_0x1ac5e8('0x20dd')]()===_0x1ac5e8('0x1d1b')&&(_0x3cea45[_0x1ac5e8('0x26a8')]['prefix']=_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x1ef5')]?_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x1ef5')]['split']('$')[0x0]:undefined,_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0x1b6f')]=_0x3cea45[_0x1ac5e8('0x26a8')][_0x1ac5e8('0xfca')]?_0x1ac5e8('0xd41')+_0x3cea45['queue'][_0x1ac5e8('0xfca')]:undefined);_0x3cea45['saveInboundRouteApp']=_0x441edb,_0x3cea45[_0x1ac5e8('0x2584')]=_0x497e41,_0x1a4b86[_0x1ac5e8('0x179e')]('admin')?_0x1955ae['sound'][_0x1ac5e8('0x22d5')]({'fields':'id,name,save_name','sort':'name','nolimit':_0x1ac5e8('0x2206')})['$promise']['then'](function(_0x5169a5){var _0x2c315f=_0x1ac5e8;_0x3cea45[_0x2c315f('0x219b')]=_0x5169a5[_0x2c315f('0x16a7')]||[];})[_0x1ac5e8('0x223b')](function(_0x4ccfaf){var _0x2f8617=_0x1ac5e8;_0x320d89[_0x2f8617('0x8c8')]({'title':_0x4ccfaf[_0x2f8617('0x2833')]?'API:'+_0x4ccfaf[_0x2f8617('0x2833')]+_0x2f8617('0x1b7c')+_0x4ccfaf['statusText']:_0x2f8617('0x13c9'),'msg':_0x4ccfaf[_0x2f8617('0x11d0')]?JSON[_0x2f8617('0x3ad')](_0x4ccfaf[_0x2f8617('0x11d0')]):_0x4ccfaf[_0x2f8617('0x94f')]()});}):_0x1955ae[_0x1ac5e8('0x392')][_0x1ac5e8('0x22d5')]({'fields':_0x1ac5e8('0x22db'),'sort':_0x1ac5e8('0x2623'),'nolimit':_0x1ac5e8('0x2206')})[_0x1ac5e8('0xe59')][_0x1ac5e8('0xe19')](function(_0x25080f){var _0x448864=_0x1ac5e8;_0x3cea45[_0x448864('0x219b')]=_0x25080f[_0x448864('0x16a7')]||[];})[_0x1ac5e8('0xe19')](function(){var _0x55f0fd=_0x1ac5e8;return _0x1955ae[_0x55f0fd('0xb59')][_0x55f0fd('0x22d5')]({'userProfileId':_0x3cea45['currentUser'][_0x55f0fd('0x1d04')],'sectionId':0x3ef})[_0x55f0fd('0xe59')];})[_0x1ac5e8('0xe19')](function(_0xc9c7c6){var _0x7c9141=_0x1ac5e8,_0x503d4f=_0xc9c7c6&&_0xc9c7c6[_0x7c9141('0x16a7')]?_0xc9c7c6[_0x7c9141('0x16a7')][0x0]:null;if(!_0x503d4f){var _0x4f75ce=[],_0x528038=null;_0x3cea45[_0x7c9141('0x26a8')]&&(_0x528038=_0x32d445()[_0x7c9141('0xf15')](_0x3cea45[_0x7c9141('0x219b')],{'save_name':_0x3cea45['queue'][_0x7c9141('0x392')]}));for(var _0x436fc4=0x0;_0x436fc4<_0x3cea45[_0x7c9141('0x219b')][_0x7c9141('0x25ae')];_0x436fc4++){_0x528038&&_0x3cea45[_0x7c9141('0x219b')][_0x436fc4]['id']===_0x528038['id']&&(_0x3cea45['sounds'][_0x436fc4][_0x7c9141('0x1e9d')]=![],_0x4f75ce['push'](_0x3cea45[_0x7c9141('0x219b')][_0x436fc4]));}_0x3cea45[_0x7c9141('0x219b')]=_0x4f75ce;}else{if(!_0x503d4f[_0x7c9141('0x11fd')])return _0x1955ae['userProfileResource'][_0x7c9141('0x22d5')]({'sectionId':_0x503d4f['id']})['$promise'][_0x7c9141('0xe19')](function(_0x2979df){var _0x9cfc45=_0x7c9141,_0x58af8d=_0x32d445()[_0x9cfc45('0x65a')](_0x2979df[_0x9cfc45('0x16a7')],function(_0x4ed61a){var _0x13982b=_0x9cfc45;return _0x32d445()[_0x13982b('0xf15')](_0x3cea45[_0x13982b('0x219b')],{'id':_0x4ed61a[_0x13982b('0x1104')]});}),_0x86cde1=null;_0x3cea45[_0x9cfc45('0x26a8')]&&(_0x86cde1=_0x32d445()[_0x9cfc45('0xf15')](_0x3cea45['sounds'],{'save_name':_0x3cea45[_0x9cfc45('0x26a8')][_0x9cfc45('0x392')]}));if(_0x86cde1&&!_0x32d445()['some'](_0x58af8d,['id',_0x86cde1['id']])){var _0x53d510=_0x32d445()['find'](_0x3cea45[_0x9cfc45('0x219b')],{'id':_0x86cde1['id']});_0x53d510['canSelect']=![],_0x58af8d[_0x9cfc45('0xb76')](_0x53d510);}_0x3cea45['sounds']=_0x58af8d;});}})[_0x1ac5e8('0x223b')](function(_0x277466){var _0x5a04f1=_0x1ac5e8;_0x320d89[_0x5a04f1('0x8c8')]({'title':_0x277466[_0x5a04f1('0x2833')]?_0x5a04f1('0x27f2')+_0x277466[_0x5a04f1('0x2833')]+_0x5a04f1('0x1b7c')+_0x277466[_0x5a04f1('0x1fd7')]:'SYSTEM:GETsounds','msg':_0x277466['data']?JSON[_0x5a04f1('0x3ad')](_0x277466[_0x5a04f1('0x11d0')]):_0x277466['toString']()});}),_0x1a4b86[_0x1ac5e8('0x179e')]('admin')?_0x1955ae[_0x1ac5e8('0x25d5')]['get']({'type':_0x1ac5e8('0x1a7a'),'fields':_0x1ac5e8('0x1555'),'sort':_0x1ac5e8('0x2623'),'nolimit':'true'})[_0x1ac5e8('0xe59')]['then'](function(_0x4bb426){var _0x17294d=_0x1ac5e8;_0x3cea45[_0x17294d('0x671')]=_0x4bb426[_0x17294d('0x16a7')]||[];})[_0x1ac5e8('0x223b')](function(_0x5837da){var _0x12af61=_0x1ac5e8;_0x320d89[_0x12af61('0x8c8')]({'title':_0x5837da['status']?_0x12af61('0x27f2')+_0x5837da['status']+'\x20-\x20'+_0x5837da['statusText']:_0x12af61('0x19e6'),'msg':_0x5837da[_0x12af61('0x11d0')]?JSON[_0x12af61('0x3ad')](_0x5837da['data']):_0x5837da[_0x12af61('0x94f')]()});}):_0x1955ae[_0x1ac5e8('0x25d5')]['get']({'type':_0x1ac5e8('0x1a7a'),'fields':_0x1ac5e8('0x1555'),'sort':_0x1ac5e8('0x2623'),'nolimit':_0x1ac5e8('0x2206')})[_0x1ac5e8('0xe59')]['then'](function(_0x4093c7){var _0x3ff7f3=_0x1ac5e8;_0x3cea45[_0x3ff7f3('0x671')]=_0x4093c7[_0x3ff7f3('0x16a7')]||[];})[_0x1ac5e8('0xe19')](function(){var _0x46875f=_0x1ac5e8;return _0x1955ae[_0x46875f('0xb59')][_0x46875f('0x22d5')]({'userProfileId':_0x3cea45[_0x46875f('0x15a5')]['userProfileId'],'sectionId':0x191})['$promise'];})[_0x1ac5e8('0xe19')](function(_0x534b04){var _0x4aa732=_0x1ac5e8,_0x477405=_0x534b04&&_0x534b04[_0x4aa732('0x16a7')]?_0x534b04[_0x4aa732('0x16a7')][0x0]:null;if(!_0x477405){var _0x1994f8=[],_0x27a67c=null;_0x3cea45[_0x4aa732('0x26a8')]&&(_0x27a67c=_0x32d445()[_0x4aa732('0xf15')](_0x3cea45[_0x4aa732('0x671')],{'name':_0x3cea45[_0x4aa732('0x26a8')][_0x4aa732('0x26a8')]}));for(var _0x5c058b=0x0;_0x5c058b<_0x3cea45['queues']['length'];_0x5c058b++){_0x27a67c&&_0x3cea45[_0x4aa732('0x671')][_0x5c058b]['id']===_0x27a67c['id']&&(_0x3cea45[_0x4aa732('0x671')][_0x5c058b][_0x4aa732('0x1e9d')]=![],_0x1994f8['push'](_0x3cea45[_0x4aa732('0x671')][_0x5c058b]));}_0x3cea45[_0x4aa732('0x671')]=_0x1994f8;}else{if(!_0x477405[_0x4aa732('0x11fd')])return _0x1955ae[_0x4aa732('0xd49')]['get']({'sectionId':_0x477405['id']})[_0x4aa732('0xe59')][_0x4aa732('0xe19')](function(_0x3ac611){var _0x8139b3=_0x4aa732,_0x1bf7e1=_0x32d445()['map'](_0x3ac611[_0x8139b3('0x16a7')],function(_0x4c2805){var _0xd5f80b=_0x8139b3;return _0x32d445()[_0xd5f80b('0xf15')](_0x3cea45[_0xd5f80b('0x671')],{'id':_0x4c2805[_0xd5f80b('0x1104')]});}),_0x50796f=null;_0x3cea45[_0x8139b3('0x26a8')]&&(_0x50796f=_0x32d445()[_0x8139b3('0xf15')](_0x3cea45[_0x8139b3('0x671')],{'name':_0x3cea45[_0x8139b3('0x26a8')][_0x8139b3('0x26a8')]}));if(_0x50796f&&!_0x32d445()[_0x8139b3('0x201a')](_0x1bf7e1,['id',_0x50796f['id']])){var _0xfcac7=_0x32d445()[_0x8139b3('0xf15')](_0x3cea45['queues'],{'id':_0x50796f['id']});_0xfcac7[_0x8139b3('0x1e9d')]=![],_0x1bf7e1[_0x8139b3('0xb76')](_0xfcac7);}_0x3cea45['queues']=_0x1bf7e1;});}})[_0x1ac5e8('0x223b')](function(_0x15d680){var _0x20f2fa=_0x1ac5e8;_0x320d89[_0x20f2fa('0x8c8')]({'title':_0x15d680[_0x20f2fa('0x2833')]?_0x20f2fa('0x27f2')+_0x15d680[_0x20f2fa('0x2833')]+_0x20f2fa('0x1b7c')+_0x15d680['statusText']:_0x20f2fa('0x1716'),'msg':_0x15d680[_0x20f2fa('0x11d0')]?JSON[_0x20f2fa('0x3ad')](_0x15d680[_0x20f2fa('0x11d0')]):_0x15d680[_0x20f2fa('0x94f')]()});});function _0x441edb(){var _0x3453e7=_0x1ac5e8;_0x3cea45[_0x3453e7('0xcd2')]=[];var _0x86e4b5=[];_0x3cea45['queue']['type']&&_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x62e')][_0x3453e7('0x20dd')]()===_0x3453e7('0x1fdf')&&_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0xf44')]===_0x3453e7('0x3d2')&&(_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x1ef5')]=_0x44c865['cutdigits']?(_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x2580')]||'')+_0x3453e7('0x5d8')+_0x44c865[_0x3453e7('0x27f6')]+'}':(_0x3cea45[_0x3453e7('0x26a8')]['prefix']||'')+_0x3453e7('0x16b5'),_0x44c865[_0x3453e7('0x150c')]!==_0x3453e7('0x23ca')?_0x3cea45[_0x3453e7('0x26a8')]['options'][_0x3453e7('0x281c')](_0x3453e7('0x767'))<0x0&&(_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x2116')]+=_0x3453e7('0x767')):_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x2116')]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x2116')][_0x3453e7('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x3cea45['queue'][_0x3453e7('0xf44')]&&_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0xf44')]===_0x3453e7('0x261d')){}else switch((_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0xf2b')]||_0x3cea45[_0x3453e7('0x26a8')]['appType'])['toLowerCase']()){case'set':_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x26d2')]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x2623')]+'='+_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x2')];break;case _0x3453e7('0x261d'):break;default:_0x86e4b5[0x0]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x26a8')],_0x86e4b5[0x1]=_0x3cea45[_0x3453e7('0x26a8')]['options'],_0x86e4b5[0x2]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x3ae')],_0x86e4b5[0x3]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x392')],_0x86e4b5[0x4]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x2058')],_0x86e4b5[0x5]=_0x3cea45['queue'][_0x3453e7('0x401')],_0x86e4b5[0x6]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0xba1')],_0x86e4b5[0x7]=_0x3cea45['queue'][_0x3453e7('0x1874')],_0x86e4b5[0x8]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x2594')],_0x86e4b5[0x9]=_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x1c0b')],_0x3cea45[_0x3453e7('0x26a8')][_0x3453e7('0x26d2')]=_0x86e4b5[_0x3453e7('0x1537')](',');}_0x497e41(_0x3cea45[_0x3453e7('0x26a8')]);}function _0x497e41(_0x25af9c){var _0x4afc1d=_0x1ac5e8;_0x1fe7b2[_0x4afc1d('0x11ed')](_0x25af9c);}}const _0x3914ba=_0x1d70ec;_0x3fa4a7['$inject']=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x25bc'),_0xb635d2('0x1d7f'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x3fa4a7(_0x4c92cc,_0x34a681,_0x97cda6,_0xf7e630,_0x3b4be1,_0xc041c7,_0x5028f7,_0x5d7286){var _0x6aab=_0xb635d2,_0x2891f4=this;_0x2891f4[_0x6aab('0x15a5')]=_0x5028f7[_0x6aab('0x1ef8')](),_0x2891f4[_0x6aab('0xcd2')]=[],_0x2891f4[_0x6aab('0x13e4')]=_0x6aab('0x22ff')+(_0xf7e630[_0x6aab('0xf44')]||_0xf7e630[_0x6aab('0xf2b')])['toUpperCase'](),_0x2891f4['ringgroup']=angular[_0x6aab('0x89')](_0xf7e630),_0x2891f4[_0x6aab('0xb3d')]=_0x5d7286,_0x2891f4['hasModulePermissions']={};if(_0x2891f4['ringgroup'][_0x6aab('0x26d2')])switch(_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0xf44')]?_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0xf44')][_0x6aab('0x20dd')]():_0x2891f4[_0x6aab('0x5fc')]['app'][_0x6aab('0x20dd')]()){case _0x6aab('0x261d'):break;case _0x6aab('0xc11'):{var _0x442bde=_0x2891f4[_0x6aab('0x5fc')]['appdata']['split'](',');_0x2891f4['ringgroup']['key']=_0x442bde[0x0],_0x2891f4['ringgroup'][_0x6aab('0x174b')]=_0x442bde[0x1],_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0xfcc')]=_0x442bde[_0x6aab('0xa19')](0x2,_0x442bde[_0x6aab('0x25ae')])[_0x6aab('0x1537')](',');}break;case'amazonlex':{var _0xa093a1=_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x26d2')]['split'](',');_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x22be')]=_0xa093a1[0x0],_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x700')]=_0xa093a1[0x1],_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x206a')]=_0xa093a1[0x2],_0x2891f4[_0x6aab('0x5fc')]['botname']=_0xa093a1[0x3],_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0xfcc')]=_0xa093a1[_0x6aab('0xa19')](0x4,_0xa093a1[_0x6aab('0x25ae')])[_0x6aab('0x1537')](',');}break;case _0x6aab('0x400'):{var _0x25b857=_0x2891f4['ringgroup']['appdata'][_0x6aab('0x1745')](',');_0x2891f4[_0x6aab('0x5fc')]['times']=isNaN(_0x25b857[0x0])?_0x25b857[0x0]:parseInt(_0x25b857[0x0],0xa),_0x2891f4['ringgroup'][_0x6aab('0x1bc6')]=_0x25b857[_0x6aab('0xa19')](0x1,_0x25b857['length'])[_0x6aab('0x1537')](',');}break;case _0x6aab('0x27e8'):_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x1bc6')]=_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x26d2')];break;case'set':_0x2891f4['ringgroup']['name']=_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x26d2')]['split']('=')[0x0],_0x2891f4[_0x6aab('0x5fc')]['value']=_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x26d2')][_0x6aab('0x1745')]('=')[0x1];break;case _0x6aab('0x401'):_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x38b')]=_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x26d2')];break;default:{var _0x562c7f=_0x2891f4[_0x6aab('0x5fc')]['appdata'][_0x6aab('0x1745')](',');_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x12a0')]=_0x562c7f[0x0][_0x6aab('0x1745')]('&'),_0x2891f4[_0x6aab('0x5fc')]['timeout']=_0x32d445()['isEmpty'](_0x562c7f[0x1])?_0x562c7f[0x1]:isNaN(_0x562c7f[0x1])?_0x562c7f[0x1]:parseInt(_0x562c7f[0x1],0xa),_0x2891f4['ringgroup'][_0x6aab('0x2116')]=_0x32d445()['isEmpty'](_0x562c7f[0x2])?_0x562c7f[0x2]:isNaN(_0x562c7f[0x2])?_0x562c7f[0x2]:parseInt(_0x562c7f[0x2],0xa),_0x2891f4['ringgroup'][_0x6aab('0x2647')]=_0x32d445()['isEmpty'](_0x562c7f[0x3])?_0x562c7f[0x3]:isNaN(_0x562c7f[0x3])?_0x562c7f[0x3]:parseInt(_0x562c7f[0x3],0xa);}break;}else{}_0x2891f4['ringgroup'][_0x6aab('0x62e')]&&_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x62e')][_0x6aab('0x20dd')]()===_0x6aab('0x1fdf')&&_0x2891f4[_0x6aab('0x5fc')]['appType'][_0x6aab('0x20dd')]()===_0x6aab('0x1d1b')&&(_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x2580')]=_0x2891f4[_0x6aab('0x5fc')]['phone']?_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0x1ef5')]['split']('$')[0x0]:undefined,_0x2891f4['ringgroup'][_0x6aab('0x1b6f')]=_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0xfca')]?'CALLERID(all)='+_0x2891f4[_0x6aab('0x5fc')][_0x6aab('0xfca')]:undefined);_0x2891f4['saveInboundRouteApp']=_0x5449b9,_0x2891f4['closeDialog']=_0x59024b;var _0x557301=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x6aab('0x1e7c')}],_0x207336=null;_0x5028f7['hasRole'](_0x6aab('0xd14'))?_0xc041c7[_0x6aab('0x10c6')][_0x6aab('0x22d5')]({'fields':_0x6aab('0xcb6'),'sort':_0x6aab('0x2623'),'nolimit':_0x6aab('0x2206')})['$promise'][_0x6aab('0xe19')](function(_0x15cffc){var _0x44f148=_0x6aab;_0x2891f4[_0x44f148('0x2526')]=_0x15cffc[_0x44f148('0x16a7')]||[];})['catch'](function(_0x11565a){var _0x5187ac=_0x6aab;_0x97cda6[_0x5187ac('0x8c8')]({'title':_0x11565a[_0x5187ac('0x2833')]?_0x5187ac('0x27f2')+_0x11565a['status']+_0x5187ac('0x1b7c')+_0x11565a[_0x5187ac('0x1fd7')]:_0x5187ac('0x4f3'),'msg':_0x11565a['data']?JSON[_0x5187ac('0x3ad')](_0x11565a[_0x5187ac('0x11d0')]):_0x11565a[_0x5187ac('0x94f')]()});}):_0xc041c7[_0x6aab('0x10c6')]['get']({'fields':_0x6aab('0xcb6'),'sort':'name','nolimit':_0x6aab('0x2206')})[_0x6aab('0xe59')][_0x6aab('0xe19')](function(_0x2f31bb){var _0x15fbee=_0x6aab;_0x207336=_0x2f31bb[_0x15fbee('0x16a7')]||[];})[_0x6aab('0xe19')](function(){var _0x39d642=_0x6aab,_0x1fd938=[];for(var _0x12aef0=0x0;_0x12aef0<_0x557301[_0x39d642('0x25ae')];_0x12aef0++){_0x1fd938[_0x39d642('0xb76')](_0xc041c7[_0x39d642('0xb59')][_0x39d642('0x22d5')]({'userProfileId':_0x2891f4[_0x39d642('0x15a5')]['userProfileId'],'sectionId':_0x557301[_0x12aef0]['id']})[_0x39d642('0xe59')]);}return _0x34a681[_0x39d642('0xf0e')](_0x1fd938);})[_0x6aab('0xe19')](function(_0x4d20a6){var _0x3ede7b=_0x6aab,_0x1f4b0d=_0x32d445()[_0x3ede7b('0x65a')](_0x4d20a6,function(_0x5b4c89){var _0x10ddf4=_0x3ede7b;return _0x5b4c89&&_0x5b4c89[_0x10ddf4('0x16a7')]?_0x5b4c89[_0x10ddf4('0x16a7')][0x0]:null;}),_0x59c519=[],_0x5bdf56=function _0x40f709(_0x31fbe0){var _0xa2019b=_0x3ede7b,_0x429c68=_0x32d445()[_0xa2019b('0xf15')](_0x1f4b0d,['sectionId',_0x557301[_0x31fbe0]['id']]);if(_0x429c68){if(!_0x429c68['autoAssociation'])_0x59c519['push'](_0xc041c7[_0xa2019b('0xd49')]['get']({'sectionId':_0x429c68['id']})[_0xa2019b('0xe59')]);else{var _0xe65e4a=[];_0x207336['forEach'](function(_0x3187ba){var _0x46ea68=_0xa2019b;_0x3187ba[_0x46ea68('0xcd9')]===_0x557301[_0x31fbe0][_0x46ea68('0xcd9')]&&_0xe65e4a[_0x46ea68('0xb76')](_0x3187ba);}),_0x59c519[_0xa2019b('0xb76')]({'rows':_0xe65e4a,'count':_0xe65e4a['length']});}}};for(var _0x5afef0=0x0;_0x5afef0<_0x557301[_0x3ede7b('0x25ae')];_0x5afef0++){_0x5bdf56(_0x5afef0);}return _0x34a681['all'](_0x59c519);})[_0x6aab('0xe19')](function(_0x87df6c){var _0x8911dd=_0x6aab,_0xe3d380=[],_0x2c37f7=null;_0x2891f4[_0x8911dd('0x5fc')]&&(_0x2c37f7=_0x32d445()['find'](_0x207336,{'name':_0x2891f4[_0x8911dd('0x5fc')][_0x8911dd('0x12a0')]}));for(var _0x2e9e69=0x0;_0x2e9e69<_0x87df6c['length'];_0x2e9e69++){var _0x1dbdd5=_0x87df6c[_0x2e9e69][_0x8911dd('0x16a7')]||[];_0x1dbdd5[_0x8911dd('0x1d7e')](function(_0x41045d){_0xe3d380['push'](_0x41045d);});}_0x2c37f7&&!_0x32d445()[_0x8911dd('0x201a')](_0xe3d380,[_0x8911dd('0x1104'),_0x2c37f7['id']])&&_0x207336[_0x8911dd('0x1d7e')](function(_0x99d1ff){var _0x1f5533=_0x8911dd;_0x99d1ff['id']===_0x2c37f7['id']&&(_0x99d1ff['canSelect']=![],_0xe3d380[_0x1f5533('0xb76')](_0x99d1ff));}),_0x2891f4['users']=_0xe3d380;})[_0x6aab('0x223b')](function(_0x513d7a){var _0x4e8e4b=_0x6aab;_0x97cda6['error']({'title':_0x513d7a['status']?_0x4e8e4b('0x27f2')+_0x513d7a[_0x4e8e4b('0x2833')]+'\x20-\x20'+_0x513d7a[_0x4e8e4b('0x1fd7')]:'SYSTEM:GETusers','msg':_0x513d7a[_0x4e8e4b('0x11d0')]?JSON[_0x4e8e4b('0x3ad')](_0x513d7a[_0x4e8e4b('0x11d0')]):_0x513d7a[_0x4e8e4b('0x94f')]()});});function _0x5449b9(){var _0x5cd7d3=_0x6aab;_0x2891f4[_0x5cd7d3('0xcd2')]=[];var _0x379237=[];_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x62e')]&&_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x62e')][_0x5cd7d3('0x20dd')]()===_0x5cd7d3('0x1fdf')&&_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0xf44')]===_0x5cd7d3('0x3d2')&&(_0x2891f4['ringgroup'][_0x5cd7d3('0x1ef5')]=_0x3b4be1[_0x5cd7d3('0x27f6')]?(_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2580')]||'')+_0x5cd7d3('0x5d8')+_0x3b4be1[_0x5cd7d3('0x27f6')]+'}':(_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2580')]||'')+_0x5cd7d3('0x16b5'),_0x3b4be1[_0x5cd7d3('0x150c')]!==_0x5cd7d3('0x23ca')?_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2116')][_0x5cd7d3('0x281c')](_0x5cd7d3('0x767'))<0x0&&(_0x2891f4[_0x5cd7d3('0x5fc')]['options']+='U(xcally-mixmonitor-context)'):_0x2891f4[_0x5cd7d3('0x5fc')]['options']=_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2116')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0xf44')]&&_0x2891f4[_0x5cd7d3('0x5fc')]['appType']===_0x5cd7d3('0x261d')){}else switch((_0x2891f4['ringgroup'][_0x5cd7d3('0xf2b')]||_0x2891f4['ringgroup'][_0x5cd7d3('0xf44')])['toLowerCase']()){case _0x5cd7d3('0x2aa'):_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x26d2')]=_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2623')]+'='+_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2')];break;case _0x5cd7d3('0x261d'):break;default:_0x379237[0x0]=_0x2891f4['ringgroup']['multipleUsers'][_0x5cd7d3('0x1537')]('&'),_0x379237[0x1]=_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2058')],_0x379237[0x2]=_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2116')],_0x379237[0x3]=_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x2647')],_0x2891f4[_0x5cd7d3('0x5fc')][_0x5cd7d3('0x26d2')]=_0x379237[_0x5cd7d3('0x1537')](',');}_0x59024b(_0x2891f4[_0x5cd7d3('0x5fc')]);}function _0x59024b(_0x1efae8){var _0x36d993=_0x6aab;_0x4c92cc[_0x36d993('0x11ed')](_0x1efae8);}}const _0x454e9e=_0x3fa4a7;_0x31c79b[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'inboundrouteApp','inboundroute',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x31c79b(_0x436f85,_0x2020f6,_0x5cfaa0,_0x251590,_0x56ca95,_0x2ea737,_0x5ea776,_0x5c216b){var _0x577ca9=_0xb635d2,_0x30d99c=this;_0x30d99c[_0x577ca9('0x15a5')]=_0x5ea776[_0x577ca9('0x1ef8')](),_0x30d99c[_0x577ca9('0xcd2')]=[],_0x30d99c[_0x577ca9('0x13e4')]=_0x577ca9('0x22ff')+(_0x251590[_0x577ca9('0xf44')]||_0x251590[_0x577ca9('0xf2b')])['toUpperCase'](),_0x30d99c[_0x577ca9('0x2aa')]=angular[_0x577ca9('0x89')](_0x251590),_0x30d99c[_0x577ca9('0xb3d')]=_0x5c216b,_0x30d99c['hasModulePermissions']={};if(_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x26d2')])switch(_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0xf44')]?_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0xf44')][_0x577ca9('0x20dd')]():_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0xf2b')]['toLowerCase']()){case _0x577ca9('0x261d'):break;case _0x577ca9('0xc11'):{var _0x32d946=_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x26d2')][_0x577ca9('0x1745')](',');_0x30d99c['set'][_0x577ca9('0x6e4')]=_0x32d946[0x0],_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x174b')]=_0x32d946[0x1],_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0xfcc')]=_0x32d946[_0x577ca9('0xa19')](0x2,_0x32d946[_0x577ca9('0x25ae')])['join'](',');}break;case _0x577ca9('0x1321'):{var _0x42c66c=_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x26d2')]['split'](',');_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x22be')]=_0x42c66c[0x0],_0x30d99c[_0x577ca9('0x2aa')]['secretaccesskey']=_0x42c66c[0x1],_0x30d99c[_0x577ca9('0x2aa')]['lexregion']=_0x42c66c[0x2],_0x30d99c[_0x577ca9('0x2aa')]['botname']=_0x42c66c[0x3],_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0xfcc')]=_0x42c66c[_0x577ca9('0xa19')](0x4,_0x42c66c['length'])[_0x577ca9('0x1537')](',');}break;case _0x577ca9('0x400'):{var _0x48a847=_0x30d99c['set'][_0x577ca9('0x26d2')]['split'](',');_0x30d99c['set'][_0x577ca9('0x1ec4')]=isNaN(_0x48a847[0x0])?_0x48a847[0x0]:parseInt(_0x48a847[0x0],0xa),_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x1bc6')]=_0x48a847['slice'](0x1,_0x48a847[_0x577ca9('0x25ae')])[_0x577ca9('0x1537')](',');}break;case _0x577ca9('0x27e8'):_0x30d99c['set'][_0x577ca9('0x1bc6')]=_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x26d2')];break;case _0x577ca9('0x2aa'):_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x2623')]=_0x30d99c['set'][_0x577ca9('0x26d2')][_0x577ca9('0x1745')]('=')[0x0],_0x30d99c['set'][_0x577ca9('0x2')]=_0x30d99c['set']['appdata'][_0x577ca9('0x1745')]('=')[0x1];break;case'agi':_0x30d99c['set'][_0x577ca9('0x38b')]=_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x26d2')];break;default:{var _0x2dc50a=_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x26d2')]['split']('=');_0x30d99c[_0x577ca9('0x2aa')]['name']=_0x32d445()[_0x577ca9('0x14b4')](_0x2dc50a[0x0])?_0x2dc50a[0x0]:isNaN(_0x2dc50a[0x0])?_0x2dc50a[0x0]:parseInt(_0x2dc50a[0x0],0xa),_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x2')]=_0x32d445()['isEmpty'](_0x2dc50a[0x1])?_0x2dc50a[0x1]:isNaN(_0x2dc50a[0x1])?_0x2dc50a[0x1]:parseInt(_0x2dc50a[0x1],0xa);}break;}else{}_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x62e')]&&_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x62e')][_0x577ca9('0x20dd')]()===_0x577ca9('0x1fdf')&&_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0xf44')][_0x577ca9('0x20dd')]()===_0x577ca9('0x1d1b')&&(_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x2580')]=_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x1ef5')]?_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x1ef5')][_0x577ca9('0x1745')]('$')[0x0]:undefined,_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0x1b6f')]=_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0xfca')]?_0x577ca9('0xd41')+_0x30d99c[_0x577ca9('0x2aa')][_0x577ca9('0xfca')]:undefined);_0x30d99c['saveInboundRouteApp']=_0x14617b,_0x30d99c[_0x577ca9('0x2584')]=_0x11fba6,_0x5ea776[_0x577ca9('0x179e')]('admin')?_0x2ea737['variable']['get']({'fields':_0x577ca9('0x104'),'sort':_0x577ca9('0x2623'),'nolimit':_0x577ca9('0x2206')})[_0x577ca9('0xe59')]['then'](function(_0x250f52){var _0x171470=_0x577ca9;_0x30d99c['variables']=_0x250f52[_0x171470('0x16a7')]||[];})[_0x577ca9('0x223b')](function(_0x4af425){var _0x414eba=_0x577ca9;_0x5cfaa0[_0x414eba('0x8c8')]({'title':_0x4af425['status']?_0x414eba('0x27f2')+_0x4af425[_0x414eba('0x2833')]+_0x414eba('0x1b7c')+_0x4af425[_0x414eba('0x1fd7')]:_0x414eba('0x282'),'msg':_0x4af425['data']?JSON[_0x414eba('0x3ad')](_0x4af425[_0x414eba('0x11d0')]):_0x4af425[_0x414eba('0x94f')]()});}):_0x2ea737['variable'][_0x577ca9('0x22d5')]({'fields':'id,name','sort':_0x577ca9('0x2623'),'nolimit':_0x577ca9('0x2206')})[_0x577ca9('0xe59')][_0x577ca9('0xe19')](function(_0x4881d6){var _0x423e5f=_0x577ca9;_0x30d99c[_0x423e5f('0x1a9e')]=_0x4881d6[_0x423e5f('0x16a7')]||[];})[_0x577ca9('0xe19')](function(){var _0x1292dd=_0x577ca9;return _0x2ea737['userProfileSection'][_0x1292dd('0x22d5')]({'userProfileId':_0x30d99c[_0x1292dd('0x15a5')]['userProfileId'],'sectionId':0x3f4})[_0x1292dd('0xe59')];})[_0x577ca9('0xe19')](function(_0x430e4d){var _0xfde586=_0x577ca9,_0x161b14=_0x430e4d&&_0x430e4d['rows']?_0x430e4d[_0xfde586('0x16a7')][0x0]:null;if(!_0x161b14){var _0x26e4bc=[],_0x32fd1a=null;_0x30d99c['set']&&(_0x32fd1a=_0x32d445()[_0xfde586('0xf15')](_0x30d99c[_0xfde586('0x1a9e')],{'name':_0x30d99c['set'][_0xfde586('0x2623')]}));for(var _0x239e5d=0x0;_0x239e5d<_0x30d99c[_0xfde586('0x1a9e')][_0xfde586('0x25ae')];_0x239e5d++){_0x32fd1a&&_0x30d99c[_0xfde586('0x1a9e')][_0x239e5d]['id']===_0x32fd1a['id']&&(_0x30d99c['variables'][_0x239e5d]['canSelect']=![],_0x26e4bc['push'](_0x30d99c['variables'][_0x239e5d]));}_0x30d99c[_0xfde586('0x1a9e')]=_0x26e4bc;}else{if(!_0x161b14['autoAssociation'])return _0x2ea737[_0xfde586('0xd49')][_0xfde586('0x22d5')]({'sectionId':_0x161b14['id']})[_0xfde586('0xe59')][_0xfde586('0xe19')](function(_0x43df77){var _0x4231cd=_0xfde586,_0x285255=_0x32d445()[_0x4231cd('0x65a')](_0x43df77[_0x4231cd('0x16a7')],function(_0x27a948){var _0x54dc96=_0x4231cd;return _0x32d445()[_0x54dc96('0xf15')](_0x30d99c[_0x54dc96('0x1a9e')],{'id':_0x27a948[_0x54dc96('0x1104')]});}),_0x260e7e=null;_0x30d99c[_0x4231cd('0x2aa')]&&(_0x260e7e=_0x32d445()[_0x4231cd('0xf15')](_0x30d99c[_0x4231cd('0x1a9e')],{'name':_0x30d99c[_0x4231cd('0x2aa')][_0x4231cd('0x2623')]}));if(_0x260e7e&&!_0x32d445()[_0x4231cd('0x201a')](_0x285255,['id',_0x260e7e['id']])){var _0x614d2e=_0x32d445()['find'](_0x30d99c[_0x4231cd('0x1a9e')],{'id':_0x260e7e['id']});_0x614d2e[_0x4231cd('0x1e9d')]=![],_0x285255['push'](_0x614d2e);}_0x30d99c['variables']=_0x285255;});}})[_0x577ca9('0x223b')](function(_0x3b5e7d){var _0x978c92=_0x577ca9;_0x5cfaa0[_0x978c92('0x8c8')]({'title':_0x3b5e7d[_0x978c92('0x2833')]?_0x978c92('0x27f2')+_0x3b5e7d[_0x978c92('0x2833')]+_0x978c92('0x1b7c')+_0x3b5e7d[_0x978c92('0x1fd7')]:_0x978c92('0x287e'),'msg':_0x3b5e7d[_0x978c92('0x11d0')]?JSON[_0x978c92('0x3ad')](_0x3b5e7d['data']):_0x3b5e7d[_0x978c92('0x94f')]()});});function _0x14617b(){var _0x191c24=_0x577ca9;_0x30d99c[_0x191c24('0xcd2')]=[];var _0x4d6f6f=[];_0x30d99c['set'][_0x191c24('0x62e')]&&_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x62e')][_0x191c24('0x20dd')]()===_0x191c24('0x1fdf')&&_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0xf44')]===_0x191c24('0x3d2')&&(_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x1ef5')]=_0x56ca95[_0x191c24('0x27f6')]?(_0x30d99c[_0x191c24('0x2aa')]['prefix']||'')+'${EXTEN:'+_0x56ca95[_0x191c24('0x27f6')]+'}':(_0x30d99c['set'][_0x191c24('0x2580')]||'')+'${EXTEN}',_0x56ca95[_0x191c24('0x150c')]!==_0x191c24('0x23ca')?_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x2116')][_0x191c24('0x281c')](_0x191c24('0x767'))<0x0&&(_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x2116')]+=_0x191c24('0x767')):_0x30d99c[_0x191c24('0x2aa')]['options']=_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x2116')][_0x191c24('0x1b42')](_0x191c24('0x767'),''));if(_0x30d99c['set'][_0x191c24('0xf44')]&&_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0xf44')]===_0x191c24('0x261d')){}else switch((_0x30d99c['set'][_0x191c24('0xf2b')]||_0x30d99c[_0x191c24('0x2aa')]['appType'])['toLowerCase']()){case _0x191c24('0x2aa'):_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x26d2')]=_0x30d99c['set'][_0x191c24('0x2623')]+'='+_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x2')];break;case'custom':break;default:_0x4d6f6f[0x0]=_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x2623')],_0x4d6f6f[0x1]=_0x30d99c[_0x191c24('0x2aa')][_0x191c24('0x2')],_0x30d99c[_0x191c24('0x2aa')]['appdata']=_0x4d6f6f['join']('=');}_0x11fba6(_0x30d99c[_0x191c24('0x2aa')]);}function _0x11fba6(_0x1563e9){var _0x1f8cbc=_0x577ca9;_0x436f85[_0x1f8cbc('0x11ed')](_0x1563e9);}}const _0x1a0f0c=_0x31c79b;_0x1a8d94[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x25bc'),_0xb635d2('0x1d7f'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x1a8d94(_0x19af8e,_0x226c1c,_0x4acb11,_0x5e4775,_0xc51a00,_0x20f6d4,_0xa04349,_0x78d21b){var _0x2a5627=_0xb635d2,_0x1a7719=this;_0x1a7719[_0x2a5627('0x15a5')]=_0xa04349['getCurrentUser'](),_0x1a7719[_0x2a5627('0xcd2')]=[],_0x1a7719[_0x2a5627('0x13e4')]='VOICE.EDIT_'+(_0x5e4775[_0x2a5627('0xf44')]||_0x5e4775[_0x2a5627('0xf2b')])[_0x2a5627('0x25f7')](),_0x1a7719[_0x2a5627('0x4e0')]=angular['copy'](_0x5e4775),_0x1a7719[_0x2a5627('0xb3d')]=_0x78d21b,_0x1a7719[_0x2a5627('0x1ccb')]={};if(_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x26d2')])switch(_0x1a7719[_0x2a5627('0x4e0')]['appType']?_0x1a7719[_0x2a5627('0x4e0')]['appType']['toLowerCase']():_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0xf2b')][_0x2a5627('0x20dd')]()){case _0x2a5627('0x261d'):break;case _0x2a5627('0xc11'):{var _0x1f8d46=_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x26d2')][_0x2a5627('0x1745')](',');_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x6e4')]=_0x1f8d46[0x0],_0x1a7719[_0x2a5627('0x4e0')]['language']=_0x1f8d46[0x1],_0x1a7719[_0x2a5627('0x4e0')]['welcomemessage']=_0x1f8d46[_0x2a5627('0xa19')](0x2,_0x1f8d46[_0x2a5627('0x25ae')])['join'](',');}break;case _0x2a5627('0x1321'):{var _0xbbb04c=_0x1a7719['voicemail'][_0x2a5627('0x26d2')]['split'](',');_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x22be')]=_0xbbb04c[0x0],_0x1a7719[_0x2a5627('0x4e0')]['secretaccesskey']=_0xbbb04c[0x1],_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x206a')]=_0xbbb04c[0x2],_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x191a')]=_0xbbb04c[0x3],_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0xfcc')]=_0xbbb04c['slice'](0x4,_0xbbb04c['length'])['join'](',');}break;case _0x2a5627('0x400'):{var _0x2b32c9=_0x1a7719[_0x2a5627('0x4e0')]['appdata'][_0x2a5627('0x1745')](',');_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x1ec4')]=isNaN(_0x2b32c9[0x0])?_0x2b32c9[0x0]:parseInt(_0x2b32c9[0x0],0xa),_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x1bc6')]=_0x2b32c9[_0x2a5627('0xa19')](0x1,_0x2b32c9[_0x2a5627('0x25ae')])[_0x2a5627('0x1537')](',');}break;case _0x2a5627('0x27e8'):_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x1bc6')]=_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x26d2')];break;case'set':_0x1a7719['voicemail']['name']=_0x1a7719['voicemail'][_0x2a5627('0x26d2')][_0x2a5627('0x1745')]('=')[0x0],_0x1a7719['voicemail'][_0x2a5627('0x2')]=_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x26d2')][_0x2a5627('0x1745')]('=')[0x1];break;case'agi':_0x1a7719['voicemail'][_0x2a5627('0x38b')]=_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x26d2')];break;default:{var _0x213394=_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x26d2')][_0x2a5627('0x1745')](',');_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x27bf')]=_0x32d445()['isEmpty'](_0x213394[0x0])?_0x213394[0x0]:isNaN(_0x213394[0x0])?_0x213394[0x0]:parseInt(_0x213394[0x0],0xa),_0x1a7719['voicemail']['options']=_0x32d445()[_0x2a5627('0x14b4')](_0x213394[0x1])?_0x213394[0x1]:isNaN(_0x213394[0x1])?_0x213394[0x1]:parseInt(_0x213394[0x1],0xa);}break;}else{}_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x62e')]&&_0x1a7719['voicemail'][_0x2a5627('0x62e')][_0x2a5627('0x20dd')]()==='outbound'&&_0x1a7719['voicemail'][_0x2a5627('0xf44')][_0x2a5627('0x20dd')]()==='outbounddial'&&(_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x2580')]=_0x1a7719[_0x2a5627('0x4e0')]['phone']?_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x1ef5')][_0x2a5627('0x1745')]('$')[0x0]:undefined,_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0x1b6f')]=_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0xfca')]?_0x2a5627('0xd41')+_0x1a7719[_0x2a5627('0x4e0')][_0x2a5627('0xfca')]:undefined);_0x1a7719['saveInboundRouteApp']=_0xe5cba6,_0x1a7719[_0x2a5627('0x2584')]=_0x39fd6a,_0xa04349['hasRole'](_0x2a5627('0xd14'))?_0x20f6d4[_0x2a5627('0x27bf')][_0x2a5627('0x22d5')]({'fields':_0x2a5627('0x348'),'sort':_0x2a5627('0xd8c'),'nolimit':_0x2a5627('0x2206')})[_0x2a5627('0xe59')][_0x2a5627('0xe19')](function(_0x3e9810){var _0x3f3ec3=_0x2a5627;_0x1a7719[_0x3f3ec3('0x1ec1')]=_0x3e9810[_0x3f3ec3('0x16a7')]||[];})[_0x2a5627('0x223b')](function(_0x291ef3){var _0x2ca223=_0x2a5627;_0x4acb11[_0x2ca223('0x8c8')]({'title':_0x291ef3[_0x2ca223('0x2833')]?_0x2ca223('0x27f2')+_0x291ef3[_0x2ca223('0x2833')]+_0x2ca223('0x1b7c')+_0x291ef3[_0x2ca223('0x1fd7')]:_0x2ca223('0x2767'),'msg':_0x291ef3[_0x2ca223('0x11d0')]?JSON['stringify'](_0x291ef3[_0x2ca223('0x11d0')]):_0x291ef3['toString']()});}):_0x20f6d4[_0x2a5627('0x27bf')]['get']({'fields':_0x2a5627('0x348'),'sort':_0x2a5627('0xd8c'),'nolimit':'true'})[_0x2a5627('0xe59')][_0x2a5627('0xe19')](function(_0x433be6){var _0x5681e6=_0x2a5627;_0x1a7719[_0x5681e6('0x1ec1')]=_0x433be6['rows']||[];})[_0x2a5627('0xe19')](function(){var _0xe79312=_0x2a5627;return _0x20f6d4[_0xe79312('0xb59')]['get']({'userProfileId':_0x1a7719[_0xe79312('0x15a5')]['userProfileId'],'sectionId':0x196})['$promise'];})['then'](function(_0x1e8a9c){var _0x510a28=_0x2a5627,_0x3dfbb0=_0x1e8a9c&&_0x1e8a9c[_0x510a28('0x16a7')]?_0x1e8a9c['rows'][0x0]:null;if(!_0x3dfbb0){var _0x3cf652=[],_0x874238=null;_0x1a7719[_0x510a28('0x4e0')]&&(_0x874238=_0x32d445()['find'](_0x1a7719[_0x510a28('0x1ec1')],{'mailbox':_0x1a7719[_0x510a28('0x4e0')][_0x510a28('0x27bf')]}));for(var _0x25aa67=0x0;_0x25aa67<_0x1a7719[_0x510a28('0x1ec1')][_0x510a28('0x25ae')];_0x25aa67++){_0x874238&&_0x1a7719[_0x510a28('0x1ec1')][_0x25aa67]['id']===_0x874238['id']&&(_0x1a7719[_0x510a28('0x1ec1')][_0x25aa67][_0x510a28('0x1e9d')]=![],_0x3cf652['push'](_0x1a7719[_0x510a28('0x1ec1')][_0x25aa67]));}_0x1a7719[_0x510a28('0x1ec1')]=_0x3cf652;}else{if(!_0x3dfbb0[_0x510a28('0x11fd')])return _0x20f6d4[_0x510a28('0xd49')][_0x510a28('0x22d5')]({'sectionId':_0x3dfbb0['id']})[_0x510a28('0xe59')][_0x510a28('0xe19')](function(_0x471973){var _0x287722=_0x510a28,_0xe08c=_0x32d445()[_0x287722('0x65a')](_0x471973[_0x287722('0x16a7')],function(_0x47e454){var _0x56fa24=_0x287722;return _0x32d445()[_0x56fa24('0xf15')](_0x1a7719[_0x56fa24('0x1ec1')],{'id':_0x47e454[_0x56fa24('0x1104')]});}),_0x279138=null;_0x1a7719[_0x287722('0x4e0')]&&(_0x279138=_0x32d445()[_0x287722('0xf15')](_0x1a7719[_0x287722('0x1ec1')],{'mailbox':_0x1a7719[_0x287722('0x4e0')][_0x287722('0x27bf')]}));if(_0x279138&&!_0x32d445()[_0x287722('0x201a')](_0xe08c,['id',_0x279138['id']])){var _0x3147f5=_0x32d445()[_0x287722('0xf15')](_0x1a7719[_0x287722('0x1ec1')],{'id':_0x279138['id']});_0x3147f5[_0x287722('0x1e9d')]=![],_0xe08c['push'](_0x3147f5);}_0x1a7719['voiceMails']=_0xe08c;});}})[_0x2a5627('0x223b')](function(_0x1c359d){var _0x13c13f=_0x2a5627;_0x4acb11[_0x13c13f('0x8c8')]({'title':_0x1c359d['status']?'API:'+_0x1c359d[_0x13c13f('0x2833')]+_0x13c13f('0x1b7c')+_0x1c359d['statusText']:'SYSTEM:GETvoiceMails','msg':_0x1c359d['data']?JSON[_0x13c13f('0x3ad')](_0x1c359d[_0x13c13f('0x11d0')]):_0x1c359d[_0x13c13f('0x94f')]()});});function _0xe5cba6(){var _0xcfd8ab=_0x2a5627;_0x1a7719[_0xcfd8ab('0xcd2')]=[];var _0x6db6c4=[];_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0x62e')]&&_0x1a7719[_0xcfd8ab('0x4e0')]['type'][_0xcfd8ab('0x20dd')]()===_0xcfd8ab('0x1fdf')&&_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0xf44')]===_0xcfd8ab('0x3d2')&&(_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0x1ef5')]=_0xc51a00[_0xcfd8ab('0x27f6')]?(_0x1a7719[_0xcfd8ab('0x4e0')]['prefix']||'')+'${EXTEN:'+_0xc51a00[_0xcfd8ab('0x27f6')]+'}':(_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0x2580')]||'')+_0xcfd8ab('0x16b5'),_0xc51a00['recordingFormat']!==_0xcfd8ab('0x23ca')?_0x1a7719['voicemail'][_0xcfd8ab('0x2116')]['indexOf'](_0xcfd8ab('0x767'))<0x0&&(_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0x2116')]+=_0xcfd8ab('0x767')):_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0x2116')]=_0x1a7719['voicemail'][_0xcfd8ab('0x2116')][_0xcfd8ab('0x1b42')](_0xcfd8ab('0x767'),''));if(_0x1a7719[_0xcfd8ab('0x4e0')]['appType']&&_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0xf44')]==='custom'){}else switch((_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0xf2b')]||_0x1a7719[_0xcfd8ab('0x4e0')]['appType'])[_0xcfd8ab('0x20dd')]()){case'set':_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0x26d2')]=_0x1a7719[_0xcfd8ab('0x4e0')][_0xcfd8ab('0x2623')]+'='+_0x1a7719['voicemail'][_0xcfd8ab('0x2')];break;case _0xcfd8ab('0x261d'):break;default:_0x6db6c4[0x0]=_0x1a7719['voicemail'][_0xcfd8ab('0x27bf')],_0x6db6c4[0x1]=_0x1a7719[_0xcfd8ab('0x4e0')]['options'],_0x1a7719['voicemail']['appdata']=_0x6db6c4[_0xcfd8ab('0x1537')](',');}_0x39fd6a(_0x1a7719[_0xcfd8ab('0x4e0')]);}function _0x39fd6a(_0x2a4fb1){_0x19af8e['hide'](_0x2a4fb1);}}const _0x5635f2=_0x1a8d94;_0x55bba6['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'inboundroute',_0xb635d2('0xb59')];function _0x55bba6(_0x9bb710,_0x35dbd9,_0x553f3b,_0x50bcd4,_0xf449d5,_0x1a5390,_0x1e7aec,_0x3b6052,_0x3efcf5,_0x5d80ef,_0x4deca9,_0x382a46){var _0x3cf68d=_0xb635d2,_0x5f48da=this;_0x5f48da[_0x3cf68d('0x15a5')]=_0x5d80ef[_0x3cf68d('0x1ef8')](),_0x5f48da[_0x3cf68d('0x5c1')]=_0x1a5390,_0x5f48da[_0x3cf68d('0x22f1')]=_0x1e7aec,_0x5f48da[_0x3cf68d('0x25ac')]=_0x5f48da[_0x3cf68d('0x22f1')][_0x3cf68d('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5f48da[_0x3cf68d('0x2170')]=_0x35dbd9[_0x3cf68d('0xec0')]()+_0x3cf68d('0x21a8')+_0x35dbd9[_0x3cf68d('0x3b7')](),_0x5f48da[_0x3cf68d('0x1d7f')]=_0x4deca9||_0x9bb710[_0x3cf68d('0x2ef')][_0x3cf68d('0x1d7f')]||{},_0x5f48da['userProfileSection']=_0x382a46&&_0x382a46[_0x3cf68d('0x148b')]==0x1?_0x382a46[_0x3cf68d('0x16a7')][0x0]:null,_0x5f48da[_0x3cf68d('0xb3d')]=_0x5d80ef[_0x3cf68d('0xd31')](_0x5f48da[_0x3cf68d('0xb59')]?_0x5f48da[_0x3cf68d('0xb59')][_0x3cf68d('0xb3d')]:null),_0x5f48da[_0x3cf68d('0x1ccb')]={},_0x5f48da[_0x3cf68d('0xc7b')]=_0x9bb710[_0x3cf68d('0x2ef')]['tab']||0x0,_0x5f48da[_0x3cf68d('0xbdc')]=_0x3efcf5['info'],_0x5f48da['gotoInboundRoutes']=_0x517a97,_0x5f48da[_0x3cf68d('0x1357')]=_0x51b2f3,_0x5d80ef[_0x3cf68d('0x179e')](_0x3cf68d('0xd14'))?_0x3b6052[_0x3cf68d('0x2768')][_0x3cf68d('0x22d5')]({'fields':'id,name','sort':_0x3cf68d('0x2623'),'nolimit':_0x3cf68d('0x2206')})[_0x3cf68d('0xe59')]['then'](function(_0x3c98f8){var _0x1459a0=_0x3cf68d;_0x5f48da[_0x1459a0('0x3c1')]=_0x3c98f8[_0x1459a0('0x16a7')]||[];})[_0x3cf68d('0x223b')](function(_0x1bb70f){var _0x15e312=_0x3cf68d;_0x3efcf5[_0x15e312('0x8c8')]({'title':_0x1bb70f[_0x15e312('0x2833')]?_0x15e312('0x27f2')+_0x1bb70f['status']+'\x20-\x20'+_0x1bb70f[_0x15e312('0x1fd7')]:'SYSTEM:GET_CONTEXTS','msg':_0x1bb70f[_0x15e312('0x11d0')]?JSON[_0x15e312('0x3ad')](_0x1bb70f[_0x15e312('0x11d0')]):_0x1bb70f[_0x15e312('0x94f')]()});}):_0x3b6052['voiceContext']['get']({'fields':_0x3cf68d('0x104'),'sort':_0x3cf68d('0x2623'),'nolimit':'true'})['$promise'][_0x3cf68d('0xe19')](function(_0x528029){var _0x230fc2=_0x3cf68d;_0x5f48da[_0x230fc2('0x3c1')]=_0x528029[_0x230fc2('0x16a7')]||[];})[_0x3cf68d('0xe19')](function(){var _0xf20908=_0x3cf68d;return _0x3b6052['userProfileSection']['get']({'userProfileId':_0x5f48da['currentUser'][_0xf20908('0x1d04')],'sectionId':0x195})[_0xf20908('0xe59')];})[_0x3cf68d('0xe19')](function(_0x52f0b1){var _0x1bc80a=_0x3cf68d,_0xe4bab2=_0x52f0b1&&_0x52f0b1[_0x1bc80a('0x16a7')]?_0x52f0b1[_0x1bc80a('0x16a7')][0x0]:null;if(!_0xe4bab2)return _0x3b6052['voiceContext'][_0x1bc80a('0x22d5')]({'fields':_0x1bc80a('0x104'),'sort':_0x1bc80a('0x2623'),'nolimit':_0x1bc80a('0x2206'),'defaultEntry':0x1})[_0x1bc80a('0xe59')][_0x1bc80a('0xe19')](function(_0x2480f5){var _0x90d37d=_0x1bc80a;_0x5f48da[_0x90d37d('0x3c1')]=_0x2480f5[_0x90d37d('0x16a7')]||[];});else{if(!_0xe4bab2[_0x1bc80a('0x11fd')])return _0x3b6052[_0x1bc80a('0xd49')]['get']({'sectionId':_0xe4bab2['id']})[_0x1bc80a('0xe59')][_0x1bc80a('0xe19')](function(_0x4f1550){var _0x25b233=_0x1bc80a,_0x489cc1=_0x32d445()[_0x25b233('0x65a')](_0x4f1550[_0x25b233('0x16a7')],function(_0x4bdcdc){var _0x1ffbe3=_0x25b233;return _0x32d445()[_0x1ffbe3('0xf15')](_0x5f48da[_0x1ffbe3('0x3c1')],{'id':_0x4bdcdc[_0x1ffbe3('0x1104')]});}),_0x5ffee0=null;_0x5f48da[_0x25b233('0x1d7f')]&&(_0x5ffee0=_0x32d445()[_0x25b233('0xf15')](_0x5f48da[_0x25b233('0x3c1')],{'name':_0x5f48da['inboundroute'][_0x25b233('0x1318')]}));if(_0x5ffee0&&!_0x32d445()[_0x25b233('0x201a')](_0x489cc1,['id',_0x5ffee0['id']])){var _0x3cb298=_0x32d445()[_0x25b233('0xf15')](_0x5f48da['contexts'],{'id':_0x5ffee0['id']});_0x3cb298[_0x25b233('0x1e9d')]=![],_0x489cc1['push'](_0x3cb298);}_0x5f48da[_0x25b233('0x3c1')]=_0x489cc1;});}})['catch'](function(_0x33b8e8){var _0x216abe=_0x3cf68d;_0x3efcf5[_0x216abe('0x8c8')]({'title':_0x33b8e8[_0x216abe('0x2833')]?'API:'+_0x33b8e8[_0x216abe('0x2833')]+_0x216abe('0x1b7c')+_0x33b8e8[_0x216abe('0x1fd7')]:'SYSTEM:GETcontexts','msg':_0x33b8e8['data']?JSON['stringify'](_0x33b8e8[_0x216abe('0x11d0')]):_0x33b8e8[_0x216abe('0x94f')]()});});function _0x517a97(){var _0x1c5563=_0x3cf68d;_0x9bb710['go']('app.voice.inboundroutes',{},{'reload':_0x1c5563('0x2219')});}function _0x51b2f3(){var _0x550eec=_0x3cf68d;_0x3b6052[_0x550eec('0x1979')][_0x550eec('0xa70')]({'id':_0x5f48da[_0x550eec('0x1d7f')]['id']},_0x5f48da[_0x550eec('0x1d7f')])['$promise'][_0x550eec('0xe19')](function(){var _0x548baf=_0x550eec;_0x3efcf5[_0x548baf('0x425')]({'title':_0x548baf('0x1819'),'msg':_0x5f48da['inboundroute'][_0x548baf('0x2623')]?_0x5f48da[_0x548baf('0x1d7f')][_0x548baf('0x2623')]+'\x20has\x20been\x20updated!':''});})[_0x550eec('0x223b')](function(_0x3b7ae0){var _0x2033a5=_0x550eec;_0x3efcf5[_0x2033a5('0x8c8')]({'title':_0x3b7ae0['status']?_0x2033a5('0x27f2')+_0x3b7ae0[_0x2033a5('0x2833')]+_0x2033a5('0x1b7c')+_0x3b7ae0['statusText']:_0x2033a5('0x6d7'),'msg':_0x3b7ae0[_0x2033a5('0x11d0')]?JSON[_0x2033a5('0x3ad')](_0x3b7ae0[_0x2033a5('0x11d0')]):_0x3b7ae0['toString']()});});}}const _0x5931c9=_0x55bba6,_0x3b3d8b=_0x59426a['p']+'src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog-[chunkhash].html';_0x54e751[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0x2724'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x54e751(_0x2507ea,_0xd38e0e,_0x52c103,_0x79dfe3,_0x278784,_0x3baad7,_0x4ac466,_0x463282,_0x360dbd,_0x517a28,_0x3965dd,_0x354e36,_0x372ae0,_0x417783,_0x24ca3c,_0x4b88fc,_0x37fa6b){var _0x487ae0=_0xb635d2,_0x11bb30=this;_0x11bb30[_0x487ae0('0x5c1')]=_0x4b88fc,_0x11bb30[_0x487ae0('0x22f1')]=_0x37fa6b,_0x11bb30[_0x487ae0('0x15a5')]=_0x24ca3c[_0x487ae0('0x1ef8')](),_0x11bb30['inboundroutes']=_0x360dbd||{'count':0x0,'rows':[]},_0x11bb30[_0x487ae0('0x154f')]=_0x517a28,_0x11bb30[_0x487ae0('0xb59')]=_0x3965dd&&_0x3965dd['count']==0x1?_0x3965dd[_0x487ae0('0x16a7')][0x0]:null,_0x11bb30[_0x487ae0('0xb3d')]=_0x24ca3c['parseCrudPermissions'](_0x11bb30[_0x487ae0('0xb59')]?_0x11bb30['userProfileSection'][_0x487ae0('0xb3d')]:null),_0x11bb30[_0x487ae0('0x19b6')]=_0x487ae0('0x2724'),_0x11bb30[_0x487ae0('0x14d6')]='',_0x11bb30[_0x487ae0('0x190c')]=null,_0x11bb30[_0x487ae0('0x15a9')]=[],_0x11bb30[_0x487ae0('0xa16')]={'fields':_0x487ae0('0x1823'),'type':_0x487ae0('0x1a7a'),'sort':_0x487ae0('0x7e8'),'VoiceExtensionId':_0x487ae0('0x1046'),'limit':0xa,'page':0x1},_0x11bb30[_0x487ae0('0x16a0')]=_0x5c1834,_0x11bb30[_0x487ae0('0x1d9e')]=_0x1fdf5a,_0x11bb30[_0x487ae0('0x425')]=_0x1a9317,_0x11bb30[_0x487ae0('0x659')]=_0x184bbb,_0x11bb30['createOrEditInboundRoute']=_0x196e71,_0x11bb30['deleteInboundRoute']=_0x47814e,_0x11bb30[_0x487ae0('0x2816')]=_0x4a9bda,_0x11bb30[_0x487ae0('0x1b18')]=_0x13559c,_0x11bb30[_0x487ae0('0xb60')]=_0x309777,_0x11bb30[_0x487ae0('0xa9a')]=_0x1b3456,_0x24ca3c[_0x487ae0('0x179e')](_0x487ae0('0xd14'))?_0x354e36[_0x487ae0('0x2768')][_0x487ae0('0x22d5')]({'fields':'id,name','sort':'name','nolimit':_0x487ae0('0x2206')})[_0x487ae0('0xe59')]['then'](function(_0x39dd4f){var _0x678c38=_0x487ae0;_0x11bb30[_0x678c38('0x3c1')]=_0x39dd4f[_0x678c38('0x16a7')]||[];})[_0x487ae0('0x223b')](function(_0x55edaa){var _0x104064=_0x487ae0;_0x417783['error']({'title':_0x55edaa[_0x104064('0x2833')]?_0x104064('0x27f2')+_0x55edaa['status']+_0x104064('0x1b7c')+_0x55edaa[_0x104064('0x1fd7')]:_0x104064('0x17ac'),'msg':_0x55edaa[_0x104064('0x11d0')]?JSON['stringify'](_0x55edaa['data']):_0x55edaa['toString']()});}):_0x354e36[_0x487ae0('0x2768')]['get']({'fields':_0x487ae0('0x104'),'sort':_0x487ae0('0x2623'),'nolimit':_0x487ae0('0x2206')})[_0x487ae0('0xe59')][_0x487ae0('0xe19')](function(_0x37038e){var _0x4fb947=_0x487ae0;_0x11bb30[_0x4fb947('0x3c1')]=_0x37038e[_0x4fb947('0x16a7')]||[];})[_0x487ae0('0xe19')](function(){var _0x590d17=_0x487ae0;return _0x354e36['userProfileSection']['get']({'userProfileId':_0x11bb30[_0x590d17('0x15a5')][_0x590d17('0x1d04')],'sectionId':0x195})[_0x590d17('0xe59')];})['then'](function(_0x394776){var _0x1de7e7=_0x487ae0,_0x2463ac=_0x394776&&_0x394776['rows']?_0x394776['rows'][0x0]:null;if(!_0x2463ac)return _0x354e36['voiceContext'][_0x1de7e7('0x22d5')]({'fields':_0x1de7e7('0x104'),'sort':_0x1de7e7('0x2623'),'nolimit':_0x1de7e7('0x2206'),'defaultEntry':0x1})[_0x1de7e7('0xe59')][_0x1de7e7('0xe19')](function(_0x432e97){var _0x434b8d=_0x1de7e7;_0x11bb30[_0x434b8d('0x3c1')]=_0x432e97['rows']||[];});else{if(!_0x2463ac[_0x1de7e7('0x11fd')])return _0x354e36[_0x1de7e7('0xd49')][_0x1de7e7('0x22d5')]({'sectionId':_0x2463ac['id']})[_0x1de7e7('0xe59')]['then'](function(_0x3d5af9){var _0xf24810=_0x1de7e7,_0x2dfeb3=_0x32d445()['map'](_0x3d5af9[_0xf24810('0x16a7')],function(_0x5cd9ee){var _0x1078f3=_0xf24810;return _0x32d445()[_0x1078f3('0xf15')](_0x11bb30[_0x1078f3('0x3c1')],{'id':_0x5cd9ee[_0x1078f3('0x1104')]});}),_0x169358=null;_0x11bb30['inboundroute']&&(_0x169358=_0x32d445()[_0xf24810('0xf15')](_0x11bb30[_0xf24810('0x3c1')],{'name':_0x11bb30[_0xf24810('0x1d7f')][_0xf24810('0x1318')]}));if(_0x169358&&!_0x32d445()[_0xf24810('0x201a')](_0x2dfeb3,['id',_0x169358['id']])){var _0x9959de=_0x32d445()[_0xf24810('0xf15')](_0x11bb30[_0xf24810('0x3c1')],{'id':_0x169358['id']});_0x9959de['canSelect']=![],_0x2dfeb3[_0xf24810('0xb76')](_0x9959de);}_0x11bb30[_0xf24810('0x3c1')]=_0x2dfeb3;});}})[_0x487ae0('0x223b')](function(_0x424930){var _0x728e50=_0x487ae0;_0x417783[_0x728e50('0x8c8')]({'title':_0x424930[_0x728e50('0x2833')]?'API:'+_0x424930[_0x728e50('0x2833')]+_0x728e50('0x1b7c')+_0x424930[_0x728e50('0x1fd7')]:'SYSTEM:GETcontexts','msg':_0x424930[_0x728e50('0x11d0')]?JSON[_0x728e50('0x3ad')](_0x424930[_0x728e50('0x11d0')]):_0x424930[_0x728e50('0x94f')]()});});function _0x5c1834(_0x49a24e){var _0x55059f=_0x487ae0;_0x52c103['go']('app.voice.inboundroutes.edit',{'id':_0x49a24e['id'],'inboundroute':_0x49a24e,'crudPermissions':_0x11bb30[_0x55059f('0xb3d')]});}function _0x1fdf5a(_0x314ddc,_0x31b1ca){var _0xb5c5a9=_0x487ae0,_0x5276b2=_0x278784[_0xb5c5a9('0xa5')]()[_0xb5c5a9('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()[_0xb5c5a9('0x1df2')](_0xb5c5a9('0x1d7f'))+'?')[_0xb5c5a9('0x221c')](_0xb5c5a9('0xab2')+(_0x314ddc[_0xb5c5a9('0x2623')]||_0xb5c5a9('0x1d7f'))+_0xb5c5a9('0x27bb')+_0xb5c5a9('0x21bd'))[_0xb5c5a9('0x4d1')]('delete\x20inboundroute')['targetEvent'](_0x31b1ca)['ok']('OK')['cancel']('CANCEL');_0x278784[_0xb5c5a9('0x26b2')](_0x5276b2)['then'](function(){_0x47814e(_0x314ddc);},function(){var _0x2cc2dd=_0xb5c5a9;console[_0x2cc2dd('0x1fe9')](_0x2cc2dd('0x17'));});}var _0x331274=!![],_0x59aeba=0x1;_0x2507ea[_0x487ae0('0x107')](_0x487ae0('0x20cb'),function(_0x3e2f2f,_0x21e06f){var _0x3c1666=_0x487ae0;_0x331274?_0x4ac466(function(){_0x331274=![];}):(!_0x21e06f&&(_0x59aeba=_0x11bb30[_0x3c1666('0xa16')][_0x3c1666('0xc08')]),_0x3e2f2f!==_0x21e06f&&(_0x11bb30[_0x3c1666('0xa16')]['page']=0x1),!_0x3e2f2f&&(_0x11bb30[_0x3c1666('0xa16')][_0x3c1666('0xc08')]=_0x59aeba),_0x11bb30[_0x3c1666('0x659')]());});function _0x1a9317(_0x33f0a7){var _0xf2f4f8=_0x487ae0;_0x11bb30[_0xf2f4f8('0x2724')]=_0x33f0a7||{'count':0x0,'rows':[]};}function _0x184bbb(){var _0x599fce=_0x487ae0;_0x11bb30['query']['offset']=(_0x11bb30['query']['page']-0x1)*_0x11bb30[_0x599fce('0xa16')]['limit'],_0x24ca3c['hasRole'](_0x599fce('0xd14'))?_0x11bb30[_0x599fce('0x9c8')]=_0x354e36[_0x599fce('0x1979')]['get'](_0x11bb30[_0x599fce('0xa16')],_0x1a9317)[_0x599fce('0xe59')]:(_0x11bb30[_0x599fce('0xa16')]['id']=_0x11bb30[_0x599fce('0x154f')]['id'],_0x11bb30[_0x599fce('0xa16')][_0x599fce('0x1e59')]=_0x599fce('0x2305'),_0x11bb30[_0x599fce('0x9c8')]=_0x354e36[_0x599fce('0x154f')]['getResources'](_0x11bb30['query'],_0x1a9317)[_0x599fce('0xe59')]);}function _0x196e71(_0x2a8847,_0xd03b90){var _0xe70058=_0x487ae0;_0x278784[_0xe70058('0x26b2')]({'controller':_0xe70058('0x876'),'controllerAs':'vm','templateUrl':_0x3b3d8b,'parent':angular[_0xe70058('0x24a1')](_0x3baad7[_0xe70058('0x19b2')]),'targetEvent':_0x2a8847,'clickOutsideToClose':!![],'locals':{'inboundroute':_0xd03b90,'inboundroutes':_0x11bb30['inboundroutes'][_0xe70058('0x16a7')],'license':_0x11bb30[_0xe70058('0x5c1')],'setting':_0x11bb30[_0xe70058('0x22f1')],'crudPermissions':_0x11bb30[_0xe70058('0xb3d')]}});}function _0x47814e(_0x460cea){var _0x4e2ba9=_0x487ae0;_0x354e36[_0x4e2ba9('0x1979')][_0x4e2ba9('0x229e')]({'id':_0x460cea['id']})['$promise']['then'](function(){var _0x675eaf=_0x4e2ba9;_0x32d445()[_0x675eaf('0xa8b')](_0x11bb30[_0x675eaf('0x2724')]['rows'],{'id':_0x460cea['id']}),_0x11bb30['inboundroutes']['count']-=0x1,!_0x11bb30[_0x675eaf('0x2724')]['rows'][_0x675eaf('0x25ae')]&&_0x11bb30[_0x675eaf('0x659')](),_0x417783['success']({'title':_0x32d445()['startCase'](_0x675eaf('0x2412'))+_0x675eaf('0x1219'),'msg':_0x460cea[_0x675eaf('0x2623')]?_0x460cea[_0x675eaf('0x2623')]+_0x675eaf('0x2182'):''});})[_0x4e2ba9('0x223b')](function(_0x31ea7e){var _0x3207df=_0x4e2ba9;if(_0x31ea7e[_0x3207df('0x11d0')]&&_0x31ea7e[_0x3207df('0x11d0')]['errors']&&_0x31ea7e[_0x3207df('0x11d0')][_0x3207df('0xcd2')][_0x3207df('0x25ae')]){_0x11bb30[_0x3207df('0xcd2')]=_0x31ea7e[_0x3207df('0x11d0')][_0x3207df('0xcd2')]||[{'message':_0x31ea7e[_0x3207df('0x94f')](),'type':_0x3207df('0x35c')}];for(var _0x1cf0cc=0x0;_0x1cf0cc<_0x31ea7e[_0x3207df('0x11d0')]['errors']['length'];_0x1cf0cc++){_0x417783['error']({'title':_0x31ea7e['data'][_0x3207df('0xcd2')][_0x1cf0cc][_0x3207df('0x62e')],'msg':_0x31ea7e['data']['errors'][_0x1cf0cc][_0x3207df('0x27e8')]});}}else _0x417783[_0x3207df('0x8c8')]({'title':_0x31ea7e[_0x3207df('0x2833')]?_0x3207df('0x27f2')+_0x31ea7e[_0x3207df('0x2833')]+_0x3207df('0x1b7c')+_0x31ea7e['statusText']:_0x3207df('0x35c'),'msg':_0x31ea7e[_0x3207df('0x11d0')]?JSON[_0x3207df('0x3ad')](_0x31ea7e[_0x3207df('0x11d0')][_0x3207df('0x27e8')]):_0x31ea7e[_0x3207df('0x27e8')]||_0x31ea7e[_0x3207df('0x94f')]()});});}function _0x4a9bda(){var _0x127b5d=_0x487ae0,_0x259637=angular[_0x127b5d('0x89')](_0x11bb30[_0x127b5d('0x15a9')]);return _0x11bb30[_0x127b5d('0x15a9')]=[],_0x259637;}function _0x13559c(_0x4a57a7){var _0x4a2b43=_0x487ae0,_0x5c837f=_0x278784[_0x4a2b43('0xa5')]()['title'](_0x4a2b43('0x1628'))[_0x4a2b43('0x221c')](''+_0x11bb30[_0x4a2b43('0x15a9')][_0x4a2b43('0x25ae')]+_0x4a2b43('0x5bc')+_0x4a2b43('0x21bd'))[_0x4a2b43('0x4d1')](_0x4a2b43('0xc8b'))[_0x4a2b43('0x1345')](_0x4a57a7)['ok']('OK')[_0x4a2b43('0x2c1')]('CANCEL');_0x278784['show'](_0x5c837f)[_0x4a2b43('0xe19')](function(){var _0x32463f=_0x4a2b43;_0x11bb30[_0x32463f('0x15a9')]['forEach'](function(_0x46d9c9){_0x47814e(_0x46d9c9);}),_0x11bb30[_0x32463f('0x15a9')]=[];});}function _0x309777(){var _0xaaabf1=_0x487ae0;_0x11bb30[_0xaaabf1('0x15a9')]=[];}function _0x1b3456(){var _0x31f3df=_0x487ae0;_0x11bb30[_0x31f3df('0x15a9')]=_0x11bb30[_0x31f3df('0x2724')][_0x31f3df('0x16a7')];}}const _0x198bfb=_0x54e751;_0x4d5233[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),'internalroutes',_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x4d5233(_0x3fe3f4,_0x50b006,_0x200557,_0x1a95b4,_0x4172df,_0x25e329,_0x41281c,_0x5e40d6,_0x12ae04,_0x3d3bbd,_0x1e8783,_0x1c826b,_0x1ef26e,_0x40f93b){var _0x125219=_0xb635d2,_0x303b70=this;_0x303b70['currentUser']=_0x1e8783[_0x125219('0x1ef8')](),_0x303b70[_0x125219('0xcd2')]=[],_0x303b70[_0x125219('0x22f1')]=_0x1ef26e,_0x303b70[_0x125219('0x5c1')]=_0x1c826b,_0x303b70['crudPermissions']=_0x40f93b,_0x303b70['hasModulePermissions']={},_0x303b70[_0x125219('0x25ac')]=_0x303b70[_0x125219('0x22f1')]&&_0x303b70[_0x125219('0x22f1')][_0x125219('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x303b70['title']=_0x125219('0x2612'),_0x303b70[_0x125219('0x1fd1')]=angular[_0x125219('0x89')](_0x12ae04),_0x303b70[_0x125219('0xacb')]=_0x5e40d6,_0x303b70[_0x125219('0x1f0c')]=![];!_0x303b70[_0x125219('0x1fd1')]&&(_0x303b70[_0x125219('0x1fd1')]={'appdata':'Internal\x20Call','type':_0x125219('0x1b66'),'context':_0x125219('0x280c')},_0x303b70[_0x125219('0x13e4')]='VOICE.NEW_INTERNALROUTE',_0x303b70['newInternalRoute']=!![]);_0x303b70['addNewInternalRoute']=_0x2fdc0d,_0x303b70['saveInternalRoute']=_0x24b01e,_0x303b70['deleteInternalRoute']=_0x10d4ff,_0x303b70[_0x125219('0x2635')]=_0x34d3c6,_0x303b70[_0x125219('0x2584')]=_0x4874f5,_0x1e8783[_0x125219('0x179e')](_0x125219('0xd14'))?_0x3d3bbd['voiceContext'][_0x125219('0x22d5')]({'fields':'id,name','sort':_0x125219('0x2623'),'nolimit':_0x125219('0x2206')})[_0x125219('0xe59')][_0x125219('0xe19')](function(_0x30a13e){var _0x1e1253=_0x125219;_0x303b70[_0x1e1253('0x3c1')]=_0x30a13e['rows']||[];})['catch'](function(_0xd648fc){var _0x2b8bdc=_0x125219;_0x41281c['error']({'title':_0xd648fc[_0x2b8bdc('0x2833')]?_0x2b8bdc('0x27f2')+_0xd648fc[_0x2b8bdc('0x2833')]+_0x2b8bdc('0x1b7c')+_0xd648fc[_0x2b8bdc('0x1fd7')]:_0x2b8bdc('0x17ac'),'msg':_0xd648fc[_0x2b8bdc('0x11d0')]?JSON[_0x2b8bdc('0x3ad')](_0xd648fc[_0x2b8bdc('0x11d0')]):_0xd648fc[_0x2b8bdc('0x94f')]()});}):_0x3d3bbd[_0x125219('0x2768')][_0x125219('0x22d5')]({'fields':_0x125219('0x104'),'sort':_0x125219('0x2623'),'nolimit':_0x125219('0x2206')})['$promise'][_0x125219('0xe19')](function(_0x484adf){var _0x23dfa4=_0x125219;_0x303b70[_0x23dfa4('0x3c1')]=_0x484adf[_0x23dfa4('0x16a7')]||[];})['then'](function(){var _0x5cc658=_0x125219;return _0x3d3bbd[_0x5cc658('0xb59')][_0x5cc658('0x22d5')]({'userProfileId':_0x303b70['currentUser'][_0x5cc658('0x1d04')],'sectionId':0x195})[_0x5cc658('0xe59')];})[_0x125219('0xe19')](function(_0x17e5ff){var _0x440b47=_0x125219,_0x2e6a0e=_0x17e5ff&&_0x17e5ff['rows']?_0x17e5ff[_0x440b47('0x16a7')][0x0]:null;if(!_0x2e6a0e)return _0x3d3bbd[_0x440b47('0x2768')][_0x440b47('0x22d5')]({'fields':_0x440b47('0x104'),'sort':'name','nolimit':'true','defaultEntry':0x1})['$promise']['then'](function(_0x1035e5){var _0x4b3d63=_0x440b47;_0x303b70[_0x4b3d63('0x3c1')]=_0x1035e5[_0x4b3d63('0x16a7')]||[];});else{if(!_0x2e6a0e[_0x440b47('0x11fd')])return _0x3d3bbd[_0x440b47('0xd49')][_0x440b47('0x22d5')]({'sectionId':_0x2e6a0e['id']})[_0x440b47('0xe59')][_0x440b47('0xe19')](function(_0x50a8f4){var _0x5eeea3=_0x440b47,_0x4854a6=_0x32d445()[_0x5eeea3('0x65a')](_0x50a8f4[_0x5eeea3('0x16a7')],function(_0x372173){var _0x282631=_0x5eeea3;return _0x32d445()['find'](_0x303b70[_0x282631('0x3c1')],{'id':_0x372173[_0x282631('0x1104')]});}),_0x266a91=null;_0x303b70['internalroute']&&(_0x266a91=_0x32d445()['find'](_0x303b70[_0x5eeea3('0x3c1')],{'name':_0x303b70['internalroute']['context']}));if(_0x266a91&&!_0x32d445()[_0x5eeea3('0x201a')](_0x4854a6,['id',_0x266a91['id']])){var _0x4c6582=_0x32d445()[_0x5eeea3('0xf15')](_0x303b70[_0x5eeea3('0x3c1')],{'id':_0x266a91['id']});_0x4c6582[_0x5eeea3('0x1e9d')]=![],_0x4854a6['push'](_0x4c6582);}_0x303b70['contexts']=_0x4854a6;});}})[_0x125219('0x223b')](function(_0x47db27){var _0x2d8b64=_0x125219;_0x41281c['error']({'title':_0x47db27[_0x2d8b64('0x2833')]?'API:'+_0x47db27['status']+_0x2d8b64('0x1b7c')+_0x47db27[_0x2d8b64('0x1fd7')]:_0x2d8b64('0x12ed'),'msg':_0x47db27[_0x2d8b64('0x11d0')]?JSON[_0x2d8b64('0x3ad')](_0x47db27[_0x2d8b64('0x11d0')]):_0x47db27[_0x2d8b64('0x94f')]()});});function _0x2fdc0d(){var _0x412726=_0x125219;_0x303b70[_0x412726('0xcd2')]=[],_0x3d3bbd[_0x412726('0x1979')][_0x412726('0xe5e')](_0x303b70['internalroute'])[_0x412726('0xe59')]['then'](function(_0xf048dd){var _0x47db2e=_0x412726;_0x303b70[_0x47db2e('0xacb')][_0x47db2e('0x14c9')](_0xf048dd[_0x47db2e('0x250e')]()),_0x41281c[_0x47db2e('0x425')]({'title':_0x47db2e('0x883'),'msg':_0x303b70['internalroute']['name']?_0x303b70[_0x47db2e('0x1fd1')][_0x47db2e('0x2623')]+'\x20has\x20been\x20created!':''}),_0x4874f5(_0xf048dd);})[_0x412726('0x223b')](function(_0x41631c){var _0x3a321c=_0x412726;if(_0x41631c['data']&&_0x41631c['data'][_0x3a321c('0xcd2')]&&_0x41631c[_0x3a321c('0x11d0')][_0x3a321c('0xcd2')]['length']){_0x303b70[_0x3a321c('0xcd2')]=_0x41631c[_0x3a321c('0x11d0')][_0x3a321c('0xcd2')]||[{'message':_0x41631c[_0x3a321c('0x94f')](),'type':'api.voiceExtension.save'}];for(var _0x4f3a57=0x0;_0x4f3a57<_0x41631c[_0x3a321c('0x11d0')][_0x3a321c('0xcd2')]['length'];_0x4f3a57+=0x1){_0x41281c['error']({'title':_0x41631c[_0x3a321c('0x11d0')][_0x3a321c('0xcd2')][_0x4f3a57]['type'],'msg':_0x41631c[_0x3a321c('0x11d0')][_0x3a321c('0xcd2')][_0x4f3a57][_0x3a321c('0x27e8')]});}}else _0x41281c[_0x3a321c('0x8c8')]({'title':_0x41631c[_0x3a321c('0x2833')]?_0x3a321c('0x27f2')+_0x41631c['status']+_0x3a321c('0x1b7c')+_0x41631c['statusText']:_0x3a321c('0x6b2'),'msg':_0x41631c[_0x3a321c('0x11d0')]?JSON['stringify'](_0x41631c[_0x3a321c('0x11d0')][_0x3a321c('0x27e8')]):_0x41631c['toString']()});});}function _0x24b01e(){var _0x184192=_0x125219;_0x303b70['errors']=[],_0x3d3bbd[_0x184192('0x1979')]['update']({'id':_0x303b70[_0x184192('0x1fd1')]['id']},_0x303b70[_0x184192('0x1fd1')])['$promise']['then'](function(_0x2551ce){var _0x4ad8bc=_0x184192,_0x25d223=_0x32d445()[_0x4ad8bc('0xf15')](_0x303b70[_0x4ad8bc('0xacb')],{'id':_0x2551ce['id']});_0x25d223&&_0x32d445()['merge'](_0x25d223,_0x32d445()[_0x4ad8bc('0xed5')](_0x2551ce['toJSON'](),_0x32d445()[_0x4ad8bc('0x1234')](_0x25d223))),_0x41281c[_0x4ad8bc('0x425')]({'title':'InternalRoute\x20properly\x20saved!','msg':_0x303b70[_0x4ad8bc('0x1fd1')][_0x4ad8bc('0x2623')]?_0x303b70[_0x4ad8bc('0x1fd1')][_0x4ad8bc('0x2623')]+_0x4ad8bc('0x1c19'):''}),_0x4874f5(_0x2551ce);})[_0x184192('0x223b')](function(_0x143f3b){var _0x305c8e=_0x184192;if(_0x143f3b[_0x305c8e('0x11d0')]&&_0x143f3b['data'][_0x305c8e('0xcd2')]&&_0x143f3b['data']['errors']['length']){_0x303b70[_0x305c8e('0xcd2')]=_0x143f3b[_0x305c8e('0x11d0')][_0x305c8e('0xcd2')]||[{'message':_0x143f3b[_0x305c8e('0x94f')](),'type':_0x305c8e('0x38e')}];for(var _0x2fc71b=0x0;_0x2fc71b<_0x143f3b[_0x305c8e('0x11d0')][_0x305c8e('0xcd2')][_0x305c8e('0x25ae')];_0x2fc71b++){_0x41281c[_0x305c8e('0x8c8')]({'title':_0x143f3b[_0x305c8e('0x11d0')][_0x305c8e('0xcd2')][_0x2fc71b][_0x305c8e('0x62e')],'msg':_0x143f3b[_0x305c8e('0x11d0')][_0x305c8e('0xcd2')][_0x2fc71b]['message']});}}else _0x41281c[_0x305c8e('0x8c8')]({'title':_0x143f3b[_0x305c8e('0x2833')]?'API:'+_0x143f3b['status']+_0x305c8e('0x1b7c')+_0x143f3b['statusText']:_0x305c8e('0x38e'),'msg':_0x143f3b[_0x305c8e('0x11d0')]?JSON[_0x305c8e('0x3ad')](_0x143f3b['data']['message']):_0x143f3b[_0x305c8e('0x94f')]()});});}function _0x10d4ff(_0x36108c){var _0x278e13=_0x125219;_0x303b70[_0x278e13('0xcd2')]=[];var _0x239903=_0x1a95b4[_0x278e13('0xa5')]()[_0x278e13('0x13e4')](_0x278e13('0x24d0'))['content'](_0x278e13('0xcb2'))[_0x278e13('0x4d1')](_0x278e13('0x20cf'))['ok'](_0x278e13('0x2198'))[_0x278e13('0x2c1')](_0x278e13('0x8a3'))[_0x278e13('0x1345')](_0x36108c);_0x1a95b4[_0x278e13('0x26b2')](_0x239903)[_0x278e13('0xe19')](function(){var _0x300d85=_0x278e13;_0x3d3bbd[_0x300d85('0x1979')][_0x300d85('0x229e')]({'id':_0x303b70[_0x300d85('0x1fd1')]['id']})['$promise']['then'](function(){var _0xcd8c43=_0x300d85;_0x32d445()[_0xcd8c43('0xa8b')](_0x303b70[_0xcd8c43('0xacb')],{'id':_0x303b70[_0xcd8c43('0x1fd1')]['id']}),_0x41281c[_0xcd8c43('0x425')]({'title':_0xcd8c43('0x1d2c'),'msg':(_0x303b70['internalroute'][_0xcd8c43('0x2623')]||_0xcd8c43('0x1fd1'))+'\x20has\x20been\x20deleted!'}),_0x4874f5(_0x303b70[_0xcd8c43('0x1fd1')]);})[_0x300d85('0x223b')](function(_0x125a0f){var _0x399777=_0x300d85;if(_0x125a0f[_0x399777('0x11d0')]&&_0x125a0f['data'][_0x399777('0xcd2')]&&_0x125a0f[_0x399777('0x11d0')]['errors']['length']){_0x303b70[_0x399777('0xcd2')]=_0x125a0f[_0x399777('0x11d0')][_0x399777('0xcd2')]||[{'message':_0x125a0f[_0x399777('0x94f')](),'type':_0x399777('0x269e')}];for(var _0x1c3333=0x0;_0x1c3333<_0x125a0f[_0x399777('0x11d0')][_0x399777('0xcd2')][_0x399777('0x25ae')];_0x1c3333++){_0x41281c[_0x399777('0x8c8')]({'title':_0x125a0f[_0x399777('0x11d0')][_0x399777('0xcd2')][_0x1c3333][_0x399777('0x62e')],'msg':_0x125a0f['data']['errors'][_0x1c3333][_0x399777('0x27e8')]});}}else _0x41281c[_0x399777('0x8c8')]({'title':_0x125a0f[_0x399777('0x2833')]?'API:'+_0x125a0f['status']+_0x399777('0x1b7c')+_0x125a0f['statusText']:_0x399777('0x269e'),'msg':_0x125a0f['data']?JSON[_0x399777('0x3ad')](_0x125a0f['data'][_0x399777('0x27e8')]):_0x125a0f['message']||_0x125a0f[_0x399777('0x94f')]()});});},function(){});}function _0x34d3c6(_0x13df41){return _0x13df41===null?undefined:new Date(_0x13df41);}function _0x4874f5(_0x4bf883){var _0x1dd27b=_0x125219;_0x1a95b4[_0x1dd27b('0x11ed')](_0x4bf883);}}const _0x448c25=_0x4d5233,_0x852cb=_0x59426a['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog-[chunkhash].html',_0x167a08=_0x59426a['p']+_0xb635d2('0x797'),_0x2c11a9=_0x59426a['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog-[chunkhash].html',_0x13d72f=_0x59426a['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog-[chunkhash].html',_0x295467=_0x59426a['p']+_0xb635d2('0xfe5'),_0x276d57=_0x59426a['p']+_0xb635d2('0x1260'),_0x507bb4=_0x59426a['p']+_0xb635d2('0x1c2f'),_0x5e91c1=_0x59426a['p']+_0xb635d2('0xba3'),_0xbe26ec=_0x59426a['p']+_0xb635d2('0x11c8'),_0x41722c=_0x59426a['p']+_0xb635d2('0xb32'),_0x56c56f=_0x59426a['p']+_0xb635d2('0x1c3a'),_0x3a458d=_0x59426a['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html/dialog-[chunkhash].html',_0x58b580=_0x59426a['p']+_0xb635d2('0x1afd');_0x25789b[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];var _0xc41cc6={'agi':_0x852cb,'custom':_0x167a08,'dial':_0x2c11a9,'externaldial':_0x13d72f,'goto':_0x295467,'hangup':_0x276d57,'internaldial':_0x507bb4,'interval':_0x5e91c1,'playback':_0xbe26ec,'queue':_0x41722c,'ringgroup':_0x56c56f,'set':_0x3a458d,'voicemail':_0x58b580};function _0x25789b(_0x4ac2ca,_0x1a44d3,_0x52c73b,_0x322c2e,_0x5633da){var _0xd1a671=_0xb635d2,_0x303fe2=this;_0x303fe2['currentUser']=_0x5633da[_0xd1a671('0x1ef8')](),_0x303fe2['internalroute']={},_0x303fe2[_0xd1a671('0x159')]={'count':0x0,'rows':[]},_0x303fe2[_0xd1a671('0x443')]=[],_0x303fe2[_0xd1a671('0xb3d')],_0x303fe2['query']={'sort':_0xd1a671('0xb33')},_0x303fe2['apps']=_0x32d445()[_0xd1a671('0x1337')](_0x32d445()[_0xd1a671('0x14c')]([{'app':_0xd1a671('0x2102'),'appType':_0xd1a671('0x134c'),'type':_0xd1a671('0xd94'),'types':['always',_0xd1a671('0x261d'),_0xd1a671('0x15a8')],'fields':[],'isApp':![]},{'app':_0xd1a671('0x9'),'appType':_0xd1a671('0x26a8'),'context':_0xd1a671('0x280c'),'type':'Internal','options':'xX','appdata':_0xd1a671('0x2342'),'icon':_0xd1a671('0x27be'),'interval':_0xd1a671('0x2292'),'answer':!![],'isApp':!![],'extraApi':[{'name':'sounds','field':{'name':_0xd1a671('0x392'),'key':'save_name','prefix':_0xd1a671('0x57b')},'route':_0xd1a671('0x392'),'filters':{'fields':_0xd1a671('0x22db'),'sort':_0xd1a671('0x2623'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':_0xd1a671('0x26a8'),'key':'name'},'route':_0xd1a671('0x25d5'),'filters':{'type':_0xd1a671('0x1a7a'),'fields':_0xd1a671('0x1555'),'sort':'name','nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0xd1a671('0x9'),'name':_0xd1a671('0x26a8'),'type':_0xd1a671('0x14b8'),'values':_0xd1a671('0x671'),'value':_0xd1a671('0x15df'),'option':'queue.name','required':!![],'param':0x0},{'title':'Options','name':_0xd1a671('0x2116'),'type':_0xd1a671('0x1bc6'),'param':0x1},{'title':_0xd1a671('0x1685'),'name':_0xd1a671('0x3ae'),'type':_0xd1a671('0x1bc6'),'param':0x2},{'title':_0xd1a671('0x2458'),'name':'sound','type':_0xd1a671('0x14b8'),'values':'sounds','value':_0xd1a671('0x1195'),'option':_0xd1a671('0x981'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'param':0x3},{'title':'Timeout','name':'timeout','type':'number','min':0x0,'param':0x4},{'title':'Agi','name':_0xd1a671('0x401'),'type':'text','param':0x5},{'title':_0xd1a671('0x2214'),'name':_0xd1a671('0xba1'),'type':'text','param':0x6},{'title':_0xd1a671('0x18d8'),'name':_0xd1a671('0x1874'),'type':_0xd1a671('0x1bc6'),'param':0x7},{'title':_0xd1a671('0x100'),'name':'rule','type':_0xd1a671('0x1bc6'),'param':0x8},{'title':'Position','name':'position','type':'number','min':0x0,'param':0x9},{'title':_0xd1a671('0x98a'),'name':_0xd1a671('0x62d'),'type':_0xd1a671('0x1024'),'general':!![]}]},{'app':'Playback','appType':_0xd1a671('0x1fd6'),'context':_0xd1a671('0x280c'),'type':_0xd1a671('0xd94'),'icon':_0xd1a671('0x27be'),'interval':'*,*,*,*','answer':!![],'isApp':!![],'extraApi':[{'name':'sounds','field':{'name':'appdata','key':_0xd1a671('0x1cb3'),'prefix':_0xd1a671('0x57b')},'route':'sound','filters':{'fields':_0xd1a671('0x22db'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0xd1a671('0x22eb'),'name':_0xd1a671('0x26d2'),'type':_0xd1a671('0x14b8'),'values':'sounds','value':_0xd1a671('0x1ad4'),'option':'appdata.name','required':!![],'param':0x0},{'title':_0xd1a671('0x104a'),'name':_0xd1a671('0x2116'),'type':'text','param':0x1},{'title':'Answer','name':_0xd1a671('0x62d'),'type':_0xd1a671('0x1024'),'general':!![]}]},{'app':_0xd1a671('0x8e7'),'appType':'dial','context':'from-sip','type':_0xd1a671('0xd94'),'icon':'icon-apps','options':'xX','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xd1a671('0x143'),'name':_0xd1a671('0x1ca9'),'type':_0xd1a671('0x1bc6'),'required':!![],'param':0x0},{'title':_0xd1a671('0x784'),'name':_0xd1a671('0x2058'),'type':_0xd1a671('0x1c60'),'min':0x0,'param':0x1},{'title':_0xd1a671('0x104a'),'name':_0xd1a671('0x2116'),'type':_0xd1a671('0x1bc6'),'param':0x2},{'title':_0xd1a671('0x1685'),'name':_0xd1a671('0x2647'),'type':_0xd1a671('0x1bc6'),'param':0x3}]},{'app':_0xd1a671('0x8e7'),'appType':_0xd1a671('0x475'),'context':_0xd1a671('0x280c'),'type':'Internal','icon':_0xd1a671('0x27be'),'options':'xX','interval':_0xd1a671('0x2292'),'isApp':!![],'extraApi':[{'name':_0xd1a671('0x2526'),'field':{'name':_0xd1a671('0x10c6'),'key':_0xd1a671('0x2623'),'prefix':'SIP/'},'route':_0xd1a671('0x10c6'),'filters':{'fields':_0xd1a671('0xcb6'),'sort':_0xd1a671('0x2623'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0xd1a671('0x108')},{'id':0xcb,'role':_0xd1a671('0x1e7c')}]}}],'fields':[{'title':_0xd1a671('0x2630'),'name':_0xd1a671('0x10c6'),'type':_0xd1a671('0x14b8'),'values':'users','value':_0xd1a671('0x604'),'option':_0xd1a671('0x1846'),'required':!![],'param':0x0},{'title':_0xd1a671('0x784'),'name':_0xd1a671('0x2058'),'type':_0xd1a671('0x1c60'),'min':0x0,'param':0x1},{'title':_0xd1a671('0x104a'),'name':_0xd1a671('0x2116'),'type':'text','param':0x2},{'title':_0xd1a671('0x1685'),'name':'url','type':'text','param':0x3}]},{'app':'Dial','appType':'externalDial','context':'from-sip','type':_0xd1a671('0xd94'),'icon':_0xd1a671('0x27be'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0xd1a671('0x155e'),'field':{'name':_0xd1a671('0x1397'),'key':_0xd1a671('0x2623')},'route':_0xd1a671('0x1397'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0xd1a671('0x1317'),'name':_0xd1a671('0x1397'),'type':_0xd1a671('0x14b8'),'values':_0xd1a671('0x155e'),'value':_0xd1a671('0x280d'),'option':'trunk.name','required':!![],'param':0x0},{'title':'Phone','name':_0xd1a671('0x1ef5'),'type':_0xd1a671('0x1bc6')},{'title':_0xd1a671('0x784'),'name':'timeout','type':_0xd1a671('0x1c60'),'min':0x0,'param':0x1},{'title':_0xd1a671('0x104a'),'name':_0xd1a671('0x2116'),'type':_0xd1a671('0x1bc6'),'param':0x2},{'title':'Url','name':'url','type':_0xd1a671('0x1bc6'),'param':0x3}]},{'app':_0xd1a671('0x8e7'),'appType':_0xd1a671('0x5a'),'context':_0xd1a671('0x280c'),'type':'Internal','icon':_0xd1a671('0x27be'),'interval':_0xd1a671('0x2292'),'options':'xX','isApp':!![],'extraApi':[{'name':_0xd1a671('0x2526'),'field':{'name':'multipleUsers','key':_0xd1a671('0x2623'),'prefix':_0xd1a671('0x224b')},'route':_0xd1a671('0x10c6'),'filters':{'fields':_0xd1a671('0xcb6'),'sort':_0xd1a671('0x2623'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0xd1a671('0x1e7c')}]}}],'fields':[{'title':_0xd1a671('0x2630'),'name':_0xd1a671('0x12a0'),'type':_0xd1a671('0x14b8'),'multiple':!![],'values':_0xd1a671('0x2526'),'value':'\x27SIP/{{multipleUsers.name}}\x27','option':_0xd1a671('0x1c48'),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':'number','min':0x0,'param':0x1},{'title':_0xd1a671('0x104a'),'name':_0xd1a671('0x2116'),'type':_0xd1a671('0x1bc6'),'param':0x2},{'title':'Url','name':_0xd1a671('0x2647'),'type':_0xd1a671('0x1bc6'),'param':0x3}]},{'app':_0xd1a671('0x10f2'),'alias':_0xd1a671('0x1ae3'),'appType':'agi','context':_0xd1a671('0x280c'),'type':_0xd1a671('0xd94'),'icon':_0xd1a671('0x27be'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0xd1a671('0x1d39'),'field':{'name':_0xd1a671('0x38b'),'key':_0xd1a671('0x2623'),'prefix':'agi://127.0.0.1/square,'},'route':_0xd1a671('0x20c9'),'filters':{'fields':_0xd1a671('0x104'),'sort':_0xd1a671('0x2623'),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':'Project','name':'project','type':'apiselect','values':_0xd1a671('0x1d39'),'value':_0xd1a671('0x2728'),'option':_0xd1a671('0x1b0d'),'required':!![],'param':0x0}]},{'app':_0xd1a671('0x1fa1'),'appType':'goTo','context':_0xd1a671('0x280c'),'type':_0xd1a671('0xd94'),'icon':_0xd1a671('0x27be'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0xd1a671('0x3c1'),'field':{'name':_0xd1a671('0x1318'),'key':_0xd1a671('0x2623')},'route':_0xd1a671('0x2768'),'filters':{'fields':_0xd1a671('0x104'),'sort':_0xd1a671('0x2623'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0xd1a671('0x1dd2'),'name':_0xd1a671('0x1318'),'type':_0xd1a671('0x14b8'),'values':_0xd1a671('0x3c1'),'value':_0xd1a671('0x291'),'option':_0xd1a671('0x291'),'required':!![],'param':0x0},{'title':_0xd1a671('0x256b'),'name':_0xd1a671('0x1530'),'type':_0xd1a671('0x1bc6'),'required':!![],'param':0x1},{'title':_0xd1a671('0x23fb'),'name':_0xd1a671('0xb33'),'type':_0xd1a671('0x1bc6'),'required':!![],'param':0x2}]},{'app':'hangup','appType':_0xd1a671('0x1e92'),'context':_0xd1a671('0x280c'),'type':_0xd1a671('0xd94'),'icon':_0xd1a671('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xd1a671('0x14'),'name':'appdata','type':_0xd1a671('0x2e6'),'param':0x0,'values':[{'option':_0xd1a671('0x21f9'),'value':'\x271\x27'},{'option':_0xd1a671('0x6f4'),'value':_0xd1a671('0x17c6')},{'option':_0xd1a671('0x20fd'),'value':_0xd1a671('0x287b')},{'option':'HANGUPCAUSE_18','value':'\x2718\x27'},{'option':_0xd1a671('0xed8'),'value':_0xd1a671('0x5da')},{'option':'HANGUPCAUSE_22','value':_0xd1a671('0x1478')},{'option':_0xd1a671('0x202c'),'value':_0xd1a671('0xecb')},{'option':_0xd1a671('0x2275'),'value':_0xd1a671('0x1724')},{'option':_0xd1a671('0x50a'),'value':_0xd1a671('0x8a9')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0xd1a671('0x2771'),'appType':'set','context':'from-sip','type':_0xd1a671('0xd94'),'separator':'=','icon':_0xd1a671('0x27be'),'interval':_0xd1a671('0x2292'),'extraApi':[{'name':'variables','field':{'name':'name','key':_0xd1a671('0x2623')},'route':_0xd1a671('0x19a5'),'filters':{'fields':_0xd1a671('0x104'),'sort':_0xd1a671('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0xd1a671('0x1a9d'),'name':'name','type':_0xd1a671('0x14b8'),'values':_0xd1a671('0x1a9e'),'value':'name.name','option':_0xd1a671('0x1e34'),'required':!![],'param':0x0},{'title':_0xd1a671('0x653'),'name':_0xd1a671('0x2'),'type':_0xd1a671('0x1bc6'),'required':!![],'param':0x1}]},{'app':null,'appType':_0xd1a671('0x261d'),'icon':'icon-apps','type':'Internal','interval':_0xd1a671('0x2292'),'isApp':!![],'fields':[{'title':_0xd1a671('0x1a4d'),'name':_0xd1a671('0xf2b'),'type':'text','required':!![],'param':0x0},{'title':'Arguments','name':_0xd1a671('0x26d2'),'type':_0xd1a671('0x1bc6'),'param':0x1}]},{'app':_0xd1a671('0x22c0'),'appType':'voicemail','context':_0xd1a671('0x280c'),'icon':'icon-apps','type':_0xd1a671('0xd94'),'interval':_0xd1a671('0x2292'),'isApp':!![],'extraApi':[{'name':_0xd1a671('0x1ec1'),'field':{'name':_0xd1a671('0x27bf'),'key':_0xd1a671('0xd8c'),'suffix':_0xd1a671('0x26c2')},'route':_0xd1a671('0x27bf'),'filters':{'fields':'id,mailbox','sort':_0xd1a671('0xd8c'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0xd1a671('0x275a'),'name':_0xd1a671('0x27bf'),'type':_0xd1a671('0x14b8'),'values':_0xd1a671('0x1ec1'),'value':'\x27{{voiceMail.mailbox}}@from-voicemail\x27','option':'voiceMail.mailbox','required':!![],'param':0x0},{'title':_0xd1a671('0x104a'),'name':'options','type':_0xd1a671('0x1bc6'),'param':0x1}]}],['app']),{'isApp':![]}),_0x303fe2['list']={'group':{'name':'opt1','pull':'clone'},'animation':0x64,'sort':![]},_0x303fe2[_0xd1a671('0x2358')]={'group':{'name':_0xd1a671('0x328'),'put':_0xd1a671('0x866')},'animation':0x64,'onAdd':function _0x220a22(_0x1049f5){_0x3b0872(_0x1049f5,_0x1049f5['newIndex']);},'onSort':function _0x109bfd(){_0x379390();}},_0x303fe2[_0xd1a671('0x15f9')]=_0x21d07a,_0x303fe2[_0xd1a671('0x126c')]=_0x5a0117,_0x303fe2['getInternalRouteApps']=_0x4b9211,_0x303fe2[_0xd1a671('0x205b')]=_0x3b0872,_0x303fe2[_0xd1a671('0xf50')]=_0x235213,_0x303fe2['deleteInternalRouteApp']=_0x322729,_0x303fe2['deleteSelectedInternalRouteApps']=_0x133f4f,_0x303fe2[_0xd1a671('0x20b4')]=_0x379390,_0x303fe2['getIntervals']=_0x3db81b;function _0x21d07a(_0x3edf27,_0x10e0a1){var _0x1c56b9=_0xd1a671;_0x303fe2['internalroute']=_0x3edf27,_0x303fe2[_0x1c56b9('0xb3d')]=typeof _0x10e0a1!==_0x1c56b9('0x1143')?_0x10e0a1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x303fe2['applications'][_0x1c56b9('0x1ebc')]=!_0x303fe2[_0x1c56b9('0xb3d')][_0x1c56b9('0x12bc')]?!![]:![],_0x303fe2[_0x1c56b9('0xa16')][_0x1c56b9('0x2444')]=_0x3edf27['id'],_0x303fe2[_0x1c56b9('0xa16')][_0x1c56b9('0x1144')]=!![],_0x303fe2[_0x1c56b9('0xa16')][_0x1c56b9('0x1bbe')]=!![],_0x303fe2[_0x1c56b9('0x199d')](),_0x303fe2[_0x1c56b9('0x157')]();}function _0x5a0117(_0x745dc6,_0x573376,_0x2c68f9){var _0x386bdc=_0xd1a671,_0x9b36a8=_0x1a44d3[_0x386bdc('0xa5')]()[_0x386bdc('0x13e4')](_0x386bdc('0x21ed'))['htmlContent'](_0x386bdc('0xab2')+_0x745dc6[_0x386bdc('0xf2b')]+_0x386bdc('0x27bb')+_0x386bdc('0x21bd'))[_0x386bdc('0x4d1')]('delete\x20application')[_0x386bdc('0x1345')](_0x2c68f9)['ok']('OK')[_0x386bdc('0x2c1')](_0x386bdc('0x17'));_0x1a44d3['show'](_0x9b36a8)[_0x386bdc('0xe19')](function(){var _0x2a0ef6=_0x386bdc;_0x303fe2['internalrouteApps']['rows'][_0x2a0ef6('0x1c8e')](_0x573376,0x1),_0x379390();},function(){var _0x5ed8ad=_0x386bdc;console[_0x5ed8ad('0x1fe9')](_0x5ed8ad('0x17'));});}function _0x3b0872(_0x5e8d80,_0xa4cbdd){var _0x3ec5ad=_0xd1a671;if(_0x303fe2[_0x3ec5ad('0x159')]['rows'][_0x3ec5ad('0x25ae')]){var _0x191dc0=_0x303fe2[_0x3ec5ad('0x159')]['rows'][_0xa4cbdd]?_0x303fe2[_0x3ec5ad('0x159')][_0x3ec5ad('0x16a7')][_0xa4cbdd]:_0x303fe2[_0x3ec5ad('0x159')][_0x3ec5ad('0x16a7')][0x0],_0x3a94fb=(_0x191dc0['appType']||_0x191dc0['app'])[_0x3ec5ad('0x20dd')]();_0x1a44d3[_0x3ec5ad('0x26b2')]({'controller':'EditInternalApp'[_0x3ec5ad('0x1007')](_0x3a94fb,_0x3ec5ad('0x2893')),'controllerAs':'vm','templateUrl':_0xc41cc6[_0x3a94fb],'parent':angular[_0x3ec5ad('0x24a1')](_0x52c73b[_0x3ec5ad('0x19b2')]),'targetEvent':_0x5e8d80,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0x191dc0,'internalroute':_0x303fe2['internalroute'],'crudPermissions':_0x303fe2['crudPermissions']}})[_0x3ec5ad('0xe19')](function(_0x11e116){var _0x3bcb40=_0x3ec5ad;_0x11e116&&(_0x11e116['id']?_0x303fe2[_0x3bcb40('0x159')][_0x3bcb40('0x16a7')][_0xa4cbdd]=_0x11e116:_0x303fe2['internalrouteApps'][_0x3bcb40('0x16a7')]['splice'](_0xa4cbdd,0x0,_0x11e116),_0x379390());})[_0x3ec5ad('0x223b')](function(_0x1a42b2){var _0x334f6f=_0x3ec5ad;_0x1a42b2&&_0x322c2e[_0x334f6f('0x8c8')]({'title':_0x1a42b2[_0x334f6f('0x2833')]?_0x334f6f('0x27f2')+_0x1a42b2[_0x334f6f('0x2833')]+_0x334f6f('0x1b7c')+_0x1a42b2[_0x334f6f('0x1fd7')]:_0x334f6f('0x1c4b'),'msg':_0x1a42b2['data']?JSON[_0x334f6f('0x3ad')](_0x1a42b2[_0x334f6f('0x11d0')]):_0x1a42b2[_0x334f6f('0x94f')]()});});}}function _0x235213(_0x2cc852,_0x50ffd4){var _0x20fcc9=_0xd1a671;if(_0x303fe2[_0x20fcc9('0x159')][_0x20fcc9('0x16a7')][_0x20fcc9('0x25ae')]){var _0x4a7e64=_0x303fe2[_0x20fcc9('0x159')][_0x20fcc9('0x16a7')][_0x50ffd4]?_0x303fe2['internalrouteApps'][_0x20fcc9('0x16a7')][_0x50ffd4]:_0x303fe2[_0x20fcc9('0x159')][_0x20fcc9('0x16a7')][0x0];_0x1a44d3[_0x20fcc9('0x26b2')]({'controller':_0x20fcc9('0x1650'),'controllerAs':'vm','templateUrl':_0x5e91c1,'parent':angular[_0x20fcc9('0x24a1')](_0x52c73b['body']),'targetEvent':_0x2cc852,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x4a7e64[_0x20fcc9('0x134c')],'IntervalId':_0x4a7e64[_0x20fcc9('0x1fc1')],'application':!![]},'intervals':[],'crudPermissions':_0x303fe2[_0x20fcc9('0xb3d')]}})[_0x20fcc9('0xe19')](function(_0x3014c5){var _0xa2fc40=_0x20fcc9;_0x3014c5&&(_0x4a7e64[_0xa2fc40('0x134c')]=_0x3014c5[_0xa2fc40('0x134c')]||'*,*,*,*',_0x4a7e64[_0xa2fc40('0x1fc1')]=_0x3014c5[_0xa2fc40('0x1fc1')]||null,_0x379390());});}}function _0x379390(){var _0x360390=_0xd1a671,_0x1e543e=['queue',_0x360390('0x1fd6')],_0x5ac6c8=0x2,_0x2e93c3=[];_0x2e93c3[_0x360390('0xb76')]({'type':_0x360390('0x1b66'),'app':_0x360390('0x2771'),'appdata':_0x360390('0xd6'),'context':_0x303fe2['internalroute'][_0x360390('0x1318')],'exten':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x632')],'priority':_0x5ac6c8++,'VoiceExtensionId':_0x303fe2[_0x360390('0x1fd1')]['id']}),_0x2e93c3[_0x360390('0xb76')]({'type':_0x360390('0x1b66'),'app':_0x360390('0x2771'),'appdata':_0x360390('0xf90'),'context':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x1318')],'exten':_0x303fe2[_0x360390('0x1fd1')]['exten'],'priority':_0x5ac6c8++,'VoiceExtensionId':_0x303fe2[_0x360390('0x1fd1')]['id']}),_0x2e93c3[_0x360390('0xb76')]({'type':_0x360390('0x1b66'),'app':_0x360390('0x2771'),'appdata':_0x360390('0x6b7'),'context':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x1318')],'exten':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x632')],'priority':_0x5ac6c8++,'VoiceExtensionId':_0x303fe2['internalroute']['id']}),_0x2e93c3['push']({'type':_0x360390('0x1b66'),'app':_0x360390('0x2771'),'appdata':_0x360390('0xf46'),'context':_0x303fe2['internalroute'][_0x360390('0x1318')],'exten':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x632')],'priority':_0x5ac6c8++,'VoiceExtensionId':_0x303fe2['internalroute']['id']});for(var _0x2aa4e5=0x0,_0x5354e9=0x0;_0x2aa4e5<_0x303fe2['internalrouteApps'][_0x360390('0x16a7')][_0x360390('0x25ae')];_0x2aa4e5++,_0x5354e9=0x0){var _0x3f729b=_0x303fe2[_0x360390('0x159')][_0x360390('0x16a7')][_0x2aa4e5],_0x52bbbf=[],_0x1b80fb=[];_0x3f729b[_0x360390('0x10e0')]=_0x3f729b[_0x360390('0x134c')]!==_0x360390('0x2292')?[_0x3f729b[_0x360390('0x134c')]]:_0x3f729b[_0x360390('0x1fc1')]?_0x32d445()[_0x360390('0x65a')](_0x32d445()[_0x360390('0x2891')](_0x303fe2[_0x360390('0x10e0')][_0x360390('0x16a7')],{'IntervalId':_0x3f729b[_0x360390('0x1fc1')]}),_0x360390('0x134c')):[],_0x3f729b[_0x360390('0x1318')]=_0x303fe2['internalroute']['context'],_0x3f729b['exten']=_0x303fe2['internalroute'][_0x360390('0x632')];_0x3f729b[_0x360390('0x62e')]&&(_0x3f729b[_0x360390('0x62e')]=_0x3f729b[_0x360390('0x62e')][_0x360390('0x20dd')]());typeof _0x3f729b['answer']!==_0x360390('0x1143')&&(_0x1e543e[_0x360390('0x1c43')](_0x3f729b['app'][_0x360390('0x20dd')]())&&_0x3f729b[_0x360390('0xf44')]!==_0x360390('0x261d')&&(_0x3f729b[_0x360390('0x62d')]?(_0x52bbbf[_0x360390('0xb76')]({'type':_0x3f729b[_0x360390('0x62e')]['toLowerCase'](),'app':_0x360390('0x4aa'),'appdata':'$[${XCALLY-MOTION-ANSWER}=0]?Answer','context':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x1318')],'exten':_0x303fe2['internalroute'][_0x360390('0x632')],'priority':_0x3f729b['intervals'][_0x360390('0x25ae')]+_0x5ac6c8+_0x5354e9++,'VoiceExtensionId':_0x303fe2[_0x360390('0x1fd1')]['id']}),_0x52bbbf['push']({'type':_0x3f729b[_0x360390('0x62e')][_0x360390('0x20dd')](),'app':_0x360390('0x2771'),'appdata':_0x360390('0x103c'),'context':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x1318')],'exten':_0x303fe2[_0x360390('0x1fd1')]['exten'],'priority':_0x3f729b[_0x360390('0x10e0')][_0x360390('0x25ae')]+_0x5ac6c8+_0x5354e9++,'VoiceExtensionId':_0x303fe2['internalroute']['id']})):(_0x52bbbf[_0x360390('0xb76')]({'type':_0x3f729b['type'][_0x360390('0x20dd')](),'app':_0x360390('0x4aa'),'appdata':_0x360390('0x185e'),'context':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x1318')],'exten':_0x303fe2['internalroute'][_0x360390('0x632')],'priority':_0x3f729b[_0x360390('0x10e0')][_0x360390('0x25ae')]+_0x5ac6c8+_0x5354e9++,'VoiceExtensionId':_0x303fe2[_0x360390('0x1fd1')]['id']}),_0x52bbbf[_0x360390('0xb76')]({'type':_0x3f729b[_0x360390('0x62e')][_0x360390('0x20dd')](),'app':'Set','appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x1318')],'exten':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x632')],'priority':_0x3f729b['intervals'][_0x360390('0x25ae')]+_0x5ac6c8+_0x5354e9++,'VoiceExtensionId':_0x303fe2[_0x360390('0x1fd1')]['id']}))));for(var _0x1264f0=0x0;_0x1264f0<_0x3f729b[_0x360390('0x10e0')][_0x360390('0x25ae')];_0x1264f0++){var _0xfcd507=_0x5ac6c8+_0x3f729b[_0x360390('0x10e0')][_0x360390('0x25ae')],_0xa835bb=_0x1264f0===_0x3f729b['intervals'][_0x360390('0x25ae')]-0x1?_0x5ac6c8+_0x52bbbf[_0x360390('0x25ae')]+_0x1b80fb['length']+0x2:_0x5ac6c8+_0x1264f0+0x1;_0x52bbbf[_0x360390('0x1c8e')](_0x1264f0,0x0,{'type':_0x360390('0x1b66'),'app':'GotoIfTime','appdata':_0x3f729b['intervals'][_0x1264f0]+'?'+_0x303fe2[_0x360390('0x1fd1')]['context']+_0x360390('0x126f')+_0xfcd507+':'+_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x1318')]+_0x360390('0x126f')+_0xa835bb,'exten':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x632')],'context':_0x303fe2[_0x360390('0x1fd1')][_0x360390('0x1318')],'priority':_0x5ac6c8+_0x1264f0,'VoiceExtensionId':_0x303fe2[_0x360390('0x1fd1')]['id']});}_0x3f729b[_0x360390('0xb33')]=_0x52bbbf[_0x360390('0x25ae')]?_0x32d445()['last'](_0x52bbbf)['priority']+0x1:_0x5ac6c8,_0x5ac6c8=(_0x1b80fb[_0x360390('0x25ae')]?_0x32d445()[_0x360390('0x27ed')](_0x1b80fb)[_0x360390('0xb33')]:_0x3f729b['priority'])+0x1,_0x2e93c3=_0x32d445()['concat'](_0x2e93c3,_0x52bbbf,[_0x3f729b],_0x1b80fb);}_0x2e93c3['push']({'type':_0x360390('0x1b66'),'app':_0x360390('0x9b6'),'exten':_0x303fe2[_0x360390('0x1fd1')]['exten'],'context':_0x303fe2[_0x360390('0x1fd1')]['context'],'priority':_0x5ac6c8,'VoiceExtensionId':_0x303fe2[_0x360390('0x1fd1')]['id']}),_0x4ac2ca['voiceExtension']['addApplications']({'id':_0x303fe2['internalroute']['id']},_0x32d445()[_0x360390('0x14c')](_0x2e93c3,_0x360390('0xb33')))[_0x360390('0xe59')]['then'](function(_0x205137){var _0x363155=_0x360390;_0x303fe2['internalrouteApps'][_0x363155('0x16a7')]=_0x205137['rows'];})[_0x360390('0x223b')](function(_0x46a661){console['error'](_0x46a661);});}function _0x19b1ad(_0xd4ae0f){_0x303fe2['internalrouteApps']=_0xd4ae0f||{'count':0x0,'rows':[]};}function _0x3db81b(){var _0x57f807=_0xd1a671;return _0x4ac2ca[_0x57f807('0x134c')][_0x57f807('0x22d5')]({'fields':'id,interval,IntervalId'})[_0x57f807('0xe59')][_0x57f807('0xe19')](function(_0x390d41){_0x303fe2['intervals']=_0x390d41;})[_0x57f807('0x223b')](function(_0x5e441d){console['error'](_0x5e441d);});}function _0x4b9211(){var _0x18776e=_0xd1a671;_0x303fe2[_0x18776e('0x9c8')]=_0x4ac2ca['voiceExtension']['get'](_0x303fe2[_0x18776e('0xa16')],_0x19b1ad)[_0x18776e('0xe59')];}function _0x322729(_0x49be7b){var _0x5ad581=_0xd1a671;_0x32d445()['remove'](_0x303fe2[_0x5ad581('0x159')][_0x5ad581('0x16a7')],{'id':_0x49be7b['id']}),_0x379390(),_0x322c2e[_0x5ad581('0x425')]({'title':_0x5ad581('0x13bf'),'msg':_0x49be7b['app']?_0x49be7b[_0x5ad581('0xf2b')]+_0x5ad581('0x2182'):''});}function _0x133f4f(_0x28acff){var _0x37bacc=_0xd1a671,_0xcc8636=_0x1a44d3['confirm']()[_0x37bacc('0x13e4')](_0x37bacc('0x6de'))[_0x37bacc('0x221c')](_0x37bacc('0xab2')+_0x303fe2[_0x37bacc('0x443')]['length']+'\x20selected'+_0x37bacc('0x21bd'))['ariaLabel'](_0x37bacc('0x17bf'))[_0x37bacc('0x1345')](_0x28acff)['ok']('OK')[_0x37bacc('0x2c1')](_0x37bacc('0x17'));_0x1a44d3[_0x37bacc('0x26b2')](_0xcc8636)['then'](function(){var _0x496f92=_0x37bacc;_0x303fe2[_0x496f92('0x443')][_0x496f92('0x1d7e')](function(_0x4b8385){var _0x7ecf8e=_0x496f92;_0x32d445()[_0x7ecf8e('0xa8b')](_0x303fe2[_0x7ecf8e('0x159')][_0x7ecf8e('0x16a7')],{'id':_0x4b8385['id']});}),_0x303fe2[_0x496f92('0x443')]=[],_0x379390();});}}const _0x508dc3=_0x25789b;_0xa90184['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),'internalrouteApp',_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0xa90184(_0x3e5f45,_0x542f8b,_0x1859c5,_0x1c1726,_0x248cc6,_0x163731,_0x132e55,_0x5f488e){var _0x4162b9=_0xb635d2,_0x250069=this;_0x250069[_0x4162b9('0x15a5')]=_0x132e55[_0x4162b9('0x1ef8')](),_0x250069[_0x4162b9('0xcd2')]=[],_0x250069['title']=_0x4162b9('0x22ff')+(_0x1c1726[_0x4162b9('0xf44')]||_0x1c1726[_0x4162b9('0xf2b')])[_0x4162b9('0x25f7')](),_0x250069[_0x4162b9('0x401')]=angular[_0x4162b9('0x89')](_0x1c1726),_0x250069[_0x4162b9('0xb3d')]=_0x5f488e,_0x250069[_0x4162b9('0x1ccb')]={};if(_0x250069[_0x4162b9('0x401')][_0x4162b9('0x26d2')])switch(_0x250069[_0x4162b9('0x401')][_0x4162b9('0xf44')]?_0x250069['agi']['appType']['toLowerCase']():_0x250069['agi']['app'][_0x4162b9('0x20dd')]()){case'custom':break;case'dialogflow':{var _0x3a7d09=_0x250069[_0x4162b9('0x401')][_0x4162b9('0x26d2')]['split'](',');_0x250069['agi'][_0x4162b9('0x6e4')]=_0x3a7d09[0x0],_0x250069['agi']['language']=_0x3a7d09[0x1],_0x250069['agi'][_0x4162b9('0xfcc')]=_0x3a7d09['slice'](0x2,_0x3a7d09[_0x4162b9('0x25ae')])[_0x4162b9('0x1537')](',');}break;case _0x4162b9('0x1321'):{var _0x2c0750=_0x250069[_0x4162b9('0x401')][_0x4162b9('0x26d2')][_0x4162b9('0x1745')](',');_0x250069[_0x4162b9('0x401')][_0x4162b9('0x22be')]=_0x2c0750[0x0],_0x250069['agi'][_0x4162b9('0x700')]=_0x2c0750[0x1],_0x250069['agi'][_0x4162b9('0x206a')]=_0x2c0750[0x2],_0x250069[_0x4162b9('0x401')][_0x4162b9('0x191a')]=_0x2c0750[0x3],_0x250069['agi'][_0x4162b9('0xfcc')]=_0x2c0750[_0x4162b9('0xa19')](0x4,_0x2c0750[_0x4162b9('0x25ae')])[_0x4162b9('0x1537')](',');}break;case _0x4162b9('0x400'):{var _0x2a1cd4=_0x250069[_0x4162b9('0x401')][_0x4162b9('0x26d2')][_0x4162b9('0x1745')](',');_0x250069['agi'][_0x4162b9('0x1ec4')]=isNaN(_0x2a1cd4[0x0])?_0x2a1cd4[0x0]:parseInt(_0x2a1cd4[0x0],0xa),_0x250069['agi'][_0x4162b9('0x1bc6')]=_0x2a1cd4[_0x4162b9('0xa19')](0x1,_0x2a1cd4[_0x4162b9('0x25ae')])[_0x4162b9('0x1537')](',');}break;case _0x4162b9('0x27e8'):_0x250069[_0x4162b9('0x401')][_0x4162b9('0x1bc6')]=_0x250069[_0x4162b9('0x401')][_0x4162b9('0x26d2')];break;case'set':_0x250069['agi']['name']=_0x250069[_0x4162b9('0x401')][_0x4162b9('0x26d2')][_0x4162b9('0x1745')]('=')[0x0],_0x250069[_0x4162b9('0x401')][_0x4162b9('0x2')]=_0x250069[_0x4162b9('0x401')]['appdata'][_0x4162b9('0x1745')]('=')[0x1];break;case _0x4162b9('0x401'):_0x250069[_0x4162b9('0x401')][_0x4162b9('0x38b')]=_0x250069[_0x4162b9('0x401')]['appdata'];break;default:{var _0x415335=_0x250069['agi'][_0x4162b9('0x26d2')]['split'](',');_0x250069[_0x4162b9('0x401')][_0x4162b9('0x38b')]=_0x32d445()[_0x4162b9('0x14b4')](_0x415335[0x0])?_0x415335[0x0]:isNaN(_0x415335[0x0])?_0x415335[0x0]:parseInt(_0x415335[0x0],0xa);}break;}else{}_0x250069[_0x4162b9('0x401')][_0x4162b9('0x62e')]&&_0x250069['agi'][_0x4162b9('0x62e')][_0x4162b9('0x20dd')]()===_0x4162b9('0x1fdf')&&_0x250069[_0x4162b9('0x401')][_0x4162b9('0xf44')]['toLowerCase']()===_0x4162b9('0x1d1b')&&(_0x250069[_0x4162b9('0x401')][_0x4162b9('0x2580')]=_0x250069['agi'][_0x4162b9('0x1ef5')]?_0x250069['agi']['phone'][_0x4162b9('0x1745')]('$')[0x0]:undefined,_0x250069['agi']['callerId']=_0x250069[_0x4162b9('0x401')][_0x4162b9('0xfca')]?_0x4162b9('0xd41')+_0x250069['agi'][_0x4162b9('0xfca')]:undefined);_0x250069[_0x4162b9('0xf4a')]=_0x236b12,_0x250069[_0x4162b9('0x2584')]=_0x5eccf2,_0x132e55[_0x4162b9('0x179e')](_0x4162b9('0xd14'))?_0x163731[_0x4162b9('0x20c9')][_0x4162b9('0x22d5')]({'fields':_0x4162b9('0x104'),'sort':_0x4162b9('0x2623'),'nolimit':_0x4162b9('0x2206')})[_0x4162b9('0xe59')][_0x4162b9('0xe19')](function(_0x2ed593){var _0x3fea47=_0x4162b9;_0x250069[_0x3fea47('0x1d39')]=_0x2ed593[_0x3fea47('0x16a7')]||[];})[_0x4162b9('0x223b')](function(_0x7d8303){var _0x135134=_0x4162b9;_0x1859c5['error']({'title':_0x7d8303['status']?'API:'+_0x7d8303[_0x135134('0x2833')]+_0x135134('0x1b7c')+_0x7d8303[_0x135134('0x1fd7')]:_0x135134('0x1cde'),'msg':_0x7d8303[_0x135134('0x11d0')]?JSON[_0x135134('0x3ad')](_0x7d8303['data']):_0x7d8303['toString']()});}):_0x163731[_0x4162b9('0x20c9')][_0x4162b9('0x22d5')]({'fields':_0x4162b9('0x104'),'sort':_0x4162b9('0x2623'),'nolimit':_0x4162b9('0x2206')})[_0x4162b9('0xe59')][_0x4162b9('0xe19')](function(_0x303dd5){var _0xd901bb=_0x4162b9;_0x250069[_0xd901bb('0x1d39')]=_0x303dd5[_0xd901bb('0x16a7')]||[];})['then'](function(){var _0xda7108=_0x4162b9;return _0x163731['userProfileSection'][_0xda7108('0x22d5')]({'userProfileId':_0x250069['currentUser']['userProfileId'],'sectionId':0x44f})[_0xda7108('0xe59')];})[_0x4162b9('0xe19')](function(_0x2cd9e0){var _0x5c0c74=_0x4162b9,_0x223262=_0x2cd9e0&&_0x2cd9e0[_0x5c0c74('0x16a7')]?_0x2cd9e0[_0x5c0c74('0x16a7')][0x0]:null;if(!_0x223262){var _0x48cbd9=[],_0x3c0da1=null;_0x250069[_0x5c0c74('0x401')]&&(_0x3c0da1=_0x32d445()[_0x5c0c74('0xf15')](_0x250069[_0x5c0c74('0x1d39')],{'name':_0x250069[_0x5c0c74('0x401')][_0x5c0c74('0x38b')]}));for(var _0x2ce84a=0x0;_0x2ce84a<_0x250069[_0x5c0c74('0x1d39')][_0x5c0c74('0x25ae')];_0x2ce84a++){_0x3c0da1&&_0x250069[_0x5c0c74('0x1d39')][_0x2ce84a]['id']===_0x3c0da1['id']&&(_0x250069[_0x5c0c74('0x1d39')][_0x2ce84a]['canSelect']=![],_0x48cbd9['push'](_0x250069['projects'][_0x2ce84a]));}_0x250069[_0x5c0c74('0x1d39')]=_0x48cbd9;}else{if(!_0x223262[_0x5c0c74('0x11fd')])return _0x163731[_0x5c0c74('0xd49')]['get']({'sectionId':_0x223262['id']})[_0x5c0c74('0xe59')][_0x5c0c74('0xe19')](function(_0x3af8d9){var _0x223494=_0x5c0c74,_0x38aec3=_0x32d445()['map'](_0x3af8d9[_0x223494('0x16a7')],function(_0x1a99e0){var _0x55c35a=_0x223494;return _0x32d445()[_0x55c35a('0xf15')](_0x250069[_0x55c35a('0x1d39')],{'id':_0x1a99e0[_0x55c35a('0x1104')]});}),_0x250243=null;_0x250069[_0x223494('0x401')]&&(_0x250243=_0x32d445()[_0x223494('0xf15')](_0x250069['projects'],{'name':_0x250069['agi'][_0x223494('0x38b')]}));if(_0x250243&&!_0x32d445()[_0x223494('0x201a')](_0x38aec3,['id',_0x250243['id']])){var _0x104e20=_0x32d445()[_0x223494('0xf15')](_0x250069[_0x223494('0x1d39')],{'id':_0x250243['id']});_0x104e20[_0x223494('0x1e9d')]=![],_0x38aec3[_0x223494('0xb76')](_0x104e20);}_0x250069['projects']=_0x38aec3;});}})[_0x4162b9('0x223b')](function(_0x7662f9){var _0x17af67=_0x4162b9;_0x1859c5['error']({'title':_0x7662f9[_0x17af67('0x2833')]?_0x17af67('0x27f2')+_0x7662f9['status']+_0x17af67('0x1b7c')+_0x7662f9[_0x17af67('0x1fd7')]:_0x17af67('0xa18'),'msg':_0x7662f9[_0x17af67('0x11d0')]?JSON['stringify'](_0x7662f9['data']):_0x7662f9[_0x17af67('0x94f')]()});});function _0x236b12(){var _0x3f29e5=_0x4162b9;_0x250069[_0x3f29e5('0xcd2')]=[];var _0x4b8566=[];_0x250069[_0x3f29e5('0x401')][_0x3f29e5('0x62e')]&&_0x250069['agi']['type'][_0x3f29e5('0x20dd')]()===_0x3f29e5('0x1fdf')&&_0x250069[_0x3f29e5('0x401')][_0x3f29e5('0xf44')]===_0x3f29e5('0x3d2')&&(_0x250069['agi'][_0x3f29e5('0x1ef5')]=_0x248cc6[_0x3f29e5('0x27f6')]?(_0x250069[_0x3f29e5('0x401')]['prefix']||'')+_0x3f29e5('0x5d8')+_0x248cc6[_0x3f29e5('0x27f6')]+'}':(_0x250069[_0x3f29e5('0x401')]['prefix']||'')+'${EXTEN}',_0x248cc6[_0x3f29e5('0x150c')]!==_0x3f29e5('0x23ca')?_0x250069['agi']['options'][_0x3f29e5('0x281c')](_0x3f29e5('0x767'))<0x0&&(_0x250069[_0x3f29e5('0x401')]['options']+=_0x3f29e5('0x767')):_0x250069[_0x3f29e5('0x401')][_0x3f29e5('0x2116')]=_0x250069[_0x3f29e5('0x401')][_0x3f29e5('0x2116')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x250069['agi'][_0x3f29e5('0xf44')]&&_0x250069[_0x3f29e5('0x401')][_0x3f29e5('0xf44')]==='custom'){}else switch((_0x250069[_0x3f29e5('0x401')][_0x3f29e5('0xf2b')]||_0x250069['agi']['appType'])[_0x3f29e5('0x20dd')]()){case _0x3f29e5('0x2aa'):_0x250069['agi']['appdata']=_0x250069['agi'][_0x3f29e5('0x2623')]+'='+_0x250069[_0x3f29e5('0x401')][_0x3f29e5('0x2')];break;case _0x3f29e5('0x261d'):break;default:_0x4b8566[0x0]=_0x250069[_0x3f29e5('0x401')]['project'],_0x250069['agi'][_0x3f29e5('0x26d2')]=_0x4b8566[_0x3f29e5('0x1537')](',');}_0x5eccf2(_0x250069[_0x3f29e5('0x401')]);}function _0x5eccf2(_0x443ac1){var _0x4417c9=_0x4162b9;_0x3e5f45[_0x4417c9('0x11ed')](_0x443ac1);}}const _0x1ab48f=_0xa90184;_0x6487a2['$inject']=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x6487a2(_0xc4e952,_0x4c7d16,_0x3247e8,_0x269d19,_0x31fe0a,_0x4612a4,_0x469cac,_0x1ff9b3){var _0x5c370f=_0xb635d2,_0x36089f=this;_0x36089f[_0x5c370f('0x15a5')]=_0x469cac[_0x5c370f('0x1ef8')](),_0x36089f[_0x5c370f('0xcd2')]=[],_0x36089f[_0x5c370f('0x13e4')]=_0x5c370f('0x22ff')+(_0x269d19[_0x5c370f('0xf44')]||_0x269d19[_0x5c370f('0xf2b')])[_0x5c370f('0x25f7')](),_0x36089f[_0x5c370f('0x261d')]=angular[_0x5c370f('0x89')](_0x269d19),_0x36089f[_0x5c370f('0xb3d')]=_0x1ff9b3,_0x36089f[_0x5c370f('0x1ccb')]={};if(_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x26d2')])switch(_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0xf44')]?_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0xf44')][_0x5c370f('0x20dd')]():_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0xf2b')][_0x5c370f('0x20dd')]()){case _0x5c370f('0x261d'):break;case _0x5c370f('0xc11'):{var _0x18dbff=_0x36089f[_0x5c370f('0x261d')]['appdata']['split'](',');_0x36089f[_0x5c370f('0x261d')]['key']=_0x18dbff[0x0],_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x174b')]=_0x18dbff[0x1],_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0xfcc')]=_0x18dbff['slice'](0x2,_0x18dbff[_0x5c370f('0x25ae')])[_0x5c370f('0x1537')](',');}break;case _0x5c370f('0x1321'):{var _0x4d9647=_0x36089f[_0x5c370f('0x261d')]['appdata'][_0x5c370f('0x1745')](',');_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x22be')]=_0x4d9647[0x0],_0x36089f[_0x5c370f('0x261d')]['secretaccesskey']=_0x4d9647[0x1],_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x206a')]=_0x4d9647[0x2],_0x36089f['custom'][_0x5c370f('0x191a')]=_0x4d9647[0x3],_0x36089f['custom']['welcomemessage']=_0x4d9647[_0x5c370f('0xa19')](0x4,_0x4d9647[_0x5c370f('0x25ae')])['join'](',');}break;case'autoreply':{var _0x33e044=_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x26d2')][_0x5c370f('0x1745')](',');_0x36089f['custom'][_0x5c370f('0x1ec4')]=isNaN(_0x33e044[0x0])?_0x33e044[0x0]:parseInt(_0x33e044[0x0],0xa),_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x1bc6')]=_0x33e044[_0x5c370f('0xa19')](0x1,_0x33e044[_0x5c370f('0x25ae')])[_0x5c370f('0x1537')](',');}break;case _0x5c370f('0x27e8'):_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x1bc6')]=_0x36089f[_0x5c370f('0x261d')]['appdata'];break;case _0x5c370f('0x2aa'):_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x2623')]=_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x26d2')]['split']('=')[0x0],_0x36089f['custom'][_0x5c370f('0x2')]=_0x36089f['custom']['appdata'][_0x5c370f('0x1745')]('=')[0x1];break;case _0x5c370f('0x401'):_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x38b')]=_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x26d2')];break;default:{var _0x52df41=_0x36089f['custom'][_0x5c370f('0x26d2')]['split'](',');_0x36089f[_0x5c370f('0x261d')]['app']=_0x32d445()[_0x5c370f('0x14b4')](_0x52df41[0x0])?_0x52df41[0x0]:isNaN(_0x52df41[0x0])?_0x52df41[0x0]:parseInt(_0x52df41[0x0],0xa),_0x36089f['custom'][_0x5c370f('0x26d2')]=_0x32d445()['isEmpty'](_0x52df41[0x1])?_0x52df41[0x1]:isNaN(_0x52df41[0x1])?_0x52df41[0x1]:parseInt(_0x52df41[0x1],0xa);}break;}else{}_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x62e')]&&_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x62e')]['toLowerCase']()===_0x5c370f('0x1fdf')&&_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0xf44')][_0x5c370f('0x20dd')]()===_0x5c370f('0x1d1b')&&(_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0x2580')]=_0x36089f['custom'][_0x5c370f('0x1ef5')]?_0x36089f['custom'][_0x5c370f('0x1ef5')][_0x5c370f('0x1745')]('$')[0x0]:undefined,_0x36089f['custom'][_0x5c370f('0x1b6f')]=_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0xfca')]?'CALLERID(all)='+_0x36089f[_0x5c370f('0x261d')][_0x5c370f('0xfca')]:undefined);_0x36089f[_0x5c370f('0xf4a')]=_0x1ef43c,_0x36089f[_0x5c370f('0x2584')]=_0x5b8a8b;function _0x1ef43c(){var _0x42ef6a=_0x5c370f;_0x36089f['errors']=[];var _0xffb8f8=[];_0x36089f['custom']['type']&&_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x62e')][_0x42ef6a('0x20dd')]()===_0x42ef6a('0x1fdf')&&_0x36089f[_0x42ef6a('0x261d')]['appType']==='outboundDial'&&(_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x1ef5')]=_0x31fe0a[_0x42ef6a('0x27f6')]?(_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x2580')]||'')+'${EXTEN:'+_0x31fe0a[_0x42ef6a('0x27f6')]+'}':(_0x36089f['custom'][_0x42ef6a('0x2580')]||'')+'${EXTEN}',_0x31fe0a['recordingFormat']!==_0x42ef6a('0x23ca')?_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x2116')]['indexOf'](_0x42ef6a('0x767'))<0x0&&(_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x2116')]+=_0x42ef6a('0x767')):_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x2116')]=_0x36089f['custom'][_0x42ef6a('0x2116')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x36089f[_0x42ef6a('0x261d')]['appType']&&_0x36089f['custom'][_0x42ef6a('0xf44')]===_0x42ef6a('0x261d')){}else switch((_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0xf2b')]||_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0xf44')])[_0x42ef6a('0x20dd')]()){case'set':_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x26d2')]=_0x36089f[_0x42ef6a('0x261d')]['name']+'='+_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x2')];break;case _0x42ef6a('0x261d'):break;default:_0xffb8f8[0x0]=_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0xf2b')],_0xffb8f8[0x1]=_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x26d2')],_0x36089f[_0x42ef6a('0x261d')][_0x42ef6a('0x26d2')]=_0xffb8f8[_0x42ef6a('0x1537')](',');}_0x5b8a8b(_0x36089f[_0x42ef6a('0x261d')]);}function _0x5b8a8b(_0x51d2de){var _0x470127=_0x5c370f;_0xc4e952[_0x470127('0x11ed')](_0x51d2de);}}const _0x3b736e=_0x6487a2;_0x2a2549[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),'api','Auth','crudPermissions'];function _0x2a2549(_0x129ad5,_0x4cff29,_0x1af44a,_0x331a50,_0x55f718,_0xc10146,_0xf1d796,_0x5b02a3){var _0x131502=_0xb635d2,_0x35913e=this;_0x35913e['currentUser']=_0xf1d796['getCurrentUser'](),_0x35913e[_0x131502('0xcd2')]=[],_0x35913e[_0x131502('0x13e4')]=_0x131502('0x22ff')+(_0x331a50['appType']||_0x331a50['app'])[_0x131502('0x25f7')](),_0x35913e[_0x131502('0x18dd')]=angular[_0x131502('0x89')](_0x331a50),_0x35913e[_0x131502('0xb3d')]=_0x5b02a3,_0x35913e[_0x131502('0x1ccb')]={};if(_0x35913e[_0x131502('0x18dd')][_0x131502('0x26d2')])switch(_0x35913e['dial'][_0x131502('0xf44')]?_0x35913e[_0x131502('0x18dd')]['appType'][_0x131502('0x20dd')]():_0x35913e[_0x131502('0x18dd')][_0x131502('0xf2b')][_0x131502('0x20dd')]()){case _0x131502('0x261d'):break;case'dialogflow':{var _0xca15ab=_0x35913e[_0x131502('0x18dd')][_0x131502('0x26d2')][_0x131502('0x1745')](',');_0x35913e[_0x131502('0x18dd')][_0x131502('0x6e4')]=_0xca15ab[0x0],_0x35913e['dial'][_0x131502('0x174b')]=_0xca15ab[0x1],_0x35913e['dial'][_0x131502('0xfcc')]=_0xca15ab[_0x131502('0xa19')](0x2,_0xca15ab[_0x131502('0x25ae')])['join'](',');}break;case _0x131502('0x1321'):{var _0x1a8cae=_0x35913e['dial']['appdata']['split'](',');_0x35913e[_0x131502('0x18dd')][_0x131502('0x22be')]=_0x1a8cae[0x0],_0x35913e['dial'][_0x131502('0x700')]=_0x1a8cae[0x1],_0x35913e[_0x131502('0x18dd')][_0x131502('0x206a')]=_0x1a8cae[0x2],_0x35913e['dial'][_0x131502('0x191a')]=_0x1a8cae[0x3],_0x35913e[_0x131502('0x18dd')][_0x131502('0xfcc')]=_0x1a8cae[_0x131502('0xa19')](0x4,_0x1a8cae['length'])[_0x131502('0x1537')](',');}break;case _0x131502('0x400'):{var _0x511974=_0x35913e[_0x131502('0x18dd')][_0x131502('0x26d2')]['split'](',');_0x35913e['dial'][_0x131502('0x1ec4')]=isNaN(_0x511974[0x0])?_0x511974[0x0]:parseInt(_0x511974[0x0],0xa),_0x35913e[_0x131502('0x18dd')]['text']=_0x511974['slice'](0x1,_0x511974[_0x131502('0x25ae')])['join'](',');}break;case _0x131502('0x27e8'):_0x35913e[_0x131502('0x18dd')][_0x131502('0x1bc6')]=_0x35913e[_0x131502('0x18dd')]['appdata'];break;case _0x131502('0x2aa'):_0x35913e[_0x131502('0x18dd')][_0x131502('0x2623')]=_0x35913e['dial'][_0x131502('0x26d2')][_0x131502('0x1745')]('=')[0x0],_0x35913e[_0x131502('0x18dd')][_0x131502('0x2')]=_0x35913e[_0x131502('0x18dd')]['appdata'][_0x131502('0x1745')]('=')[0x1];break;case'agi':_0x35913e[_0x131502('0x18dd')][_0x131502('0x38b')]=_0x35913e[_0x131502('0x18dd')][_0x131502('0x26d2')];break;default:{var _0x26144d=_0x35913e[_0x131502('0x18dd')][_0x131502('0x26d2')][_0x131502('0x1745')](',');_0x35913e['dial'][_0x131502('0x1ca9')]=_0x32d445()[_0x131502('0x14b4')](_0x26144d[0x0])?_0x26144d[0x0]:isNaN(_0x26144d[0x0])?_0x26144d[0x0]:parseInt(_0x26144d[0x0],0xa),_0x35913e[_0x131502('0x18dd')]['timeout']=_0x32d445()[_0x131502('0x14b4')](_0x26144d[0x1])?_0x26144d[0x1]:isNaN(_0x26144d[0x1])?_0x26144d[0x1]:parseInt(_0x26144d[0x1],0xa),_0x35913e[_0x131502('0x18dd')][_0x131502('0x2116')]=_0x32d445()[_0x131502('0x14b4')](_0x26144d[0x2])?_0x26144d[0x2]:isNaN(_0x26144d[0x2])?_0x26144d[0x2]:parseInt(_0x26144d[0x2],0xa),_0x35913e['dial']['url']=_0x32d445()['isEmpty'](_0x26144d[0x3])?_0x26144d[0x3]:isNaN(_0x26144d[0x3])?_0x26144d[0x3]:parseInt(_0x26144d[0x3],0xa);}break;}else{}_0x35913e['dial'][_0x131502('0x62e')]&&_0x35913e['dial'][_0x131502('0x62e')][_0x131502('0x20dd')]()===_0x131502('0x1fdf')&&_0x35913e[_0x131502('0x18dd')][_0x131502('0xf44')][_0x131502('0x20dd')]()===_0x131502('0x1d1b')&&(_0x35913e['dial'][_0x131502('0x2580')]=_0x35913e[_0x131502('0x18dd')][_0x131502('0x1ef5')]?_0x35913e[_0x131502('0x18dd')]['phone'][_0x131502('0x1745')]('$')[0x0]:undefined,_0x35913e[_0x131502('0x18dd')][_0x131502('0x1b6f')]=_0x35913e['dial'][_0x131502('0xfca')]?_0x131502('0xd41')+_0x35913e[_0x131502('0x18dd')]['callerID']:undefined);_0x35913e[_0x131502('0xf4a')]=_0x284af9,_0x35913e[_0x131502('0x2584')]=_0x2a142a;function _0x284af9(){var _0x42fb05=_0x131502;_0x35913e['errors']=[];var _0x39deb4=[];_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0x62e')]&&_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0x62e')][_0x42fb05('0x20dd')]()===_0x42fb05('0x1fdf')&&_0x35913e['dial']['appType']===_0x42fb05('0x3d2')&&(_0x35913e[_0x42fb05('0x18dd')]['phone']=_0x55f718[_0x42fb05('0x27f6')]?(_0x35913e['dial'][_0x42fb05('0x2580')]||'')+'${EXTEN:'+_0x55f718[_0x42fb05('0x27f6')]+'}':(_0x35913e['dial'][_0x42fb05('0x2580')]||'')+_0x42fb05('0x16b5'),_0x55f718[_0x42fb05('0x150c')]!=='none'?_0x35913e['dial'][_0x42fb05('0x2116')][_0x42fb05('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x35913e[_0x42fb05('0x18dd')]['options']+=_0x42fb05('0x767')):_0x35913e['dial'][_0x42fb05('0x2116')]=_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0x2116')][_0x42fb05('0x1b42')](_0x42fb05('0x767'),''));if(_0x35913e[_0x42fb05('0x18dd')]['appType']&&_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0xf44')]==='custom'){}else switch((_0x35913e['dial'][_0x42fb05('0xf2b')]||_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0xf44')])[_0x42fb05('0x20dd')]()){case _0x42fb05('0x2aa'):_0x35913e[_0x42fb05('0x18dd')]['appdata']=_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0x2623')]+'='+_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0x2')];break;case _0x42fb05('0x261d'):break;default:_0x39deb4[0x0]=_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0x1ca9')],_0x39deb4[0x1]=_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0x2058')],_0x39deb4[0x2]=_0x35913e[_0x42fb05('0x18dd')]['options'],_0x39deb4[0x3]=_0x35913e[_0x42fb05('0x18dd')][_0x42fb05('0x2647')],_0x35913e['dial'][_0x42fb05('0x26d2')]=_0x39deb4[_0x42fb05('0x1537')](',');}_0x2a142a(_0x35913e['dial']);}function _0x2a142a(_0x2d1fa4){var _0x58d7b3=_0x131502;_0x129ad5[_0x58d7b3('0x11ed')](_0x2d1fa4);}}const _0x402ae5=_0x2a2549;_0x47c36d['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x47c36d(_0x531a16,_0x45f535,_0x8f559d,_0x3ed095,_0x103792,_0x3bf3a2,_0x18b354,_0x2f2f81){var _0x57fcdc=_0xb635d2,_0x10d40a=this;_0x10d40a['currentUser']=_0x18b354[_0x57fcdc('0x1ef8')](),_0x10d40a[_0x57fcdc('0xcd2')]=[],_0x10d40a['title']=_0x57fcdc('0x22ff')+(_0x3ed095[_0x57fcdc('0xf44')]||_0x3ed095[_0x57fcdc('0xf2b')])['toUpperCase'](),_0x10d40a[_0x57fcdc('0x1258')]=angular[_0x57fcdc('0x89')](_0x3ed095),_0x10d40a[_0x57fcdc('0xb3d')]=_0x2f2f81,_0x10d40a[_0x57fcdc('0x1ccb')]={};if(_0x10d40a['externaldial']['appdata'])switch(_0x10d40a['externaldial'][_0x57fcdc('0xf44')]?_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0xf44')][_0x57fcdc('0x20dd')]():_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0xf2b')]['toLowerCase']()){case'custom':break;case _0x57fcdc('0xc11'):{var _0xd09c9=_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x26d2')][_0x57fcdc('0x1745')](',');_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x6e4')]=_0xd09c9[0x0],_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x174b')]=_0xd09c9[0x1],_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0xfcc')]=_0xd09c9[_0x57fcdc('0xa19')](0x2,_0xd09c9[_0x57fcdc('0x25ae')])[_0x57fcdc('0x1537')](',');}break;case _0x57fcdc('0x1321'):{var _0x1f298f=_0x10d40a['externaldial'][_0x57fcdc('0x26d2')][_0x57fcdc('0x1745')](',');_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x22be')]=_0x1f298f[0x0],_0x10d40a['externaldial'][_0x57fcdc('0x700')]=_0x1f298f[0x1],_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x206a')]=_0x1f298f[0x2],_0x10d40a[_0x57fcdc('0x1258')]['botname']=_0x1f298f[0x3],_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0xfcc')]=_0x1f298f[_0x57fcdc('0xa19')](0x4,_0x1f298f['length'])['join'](',');}break;case'autoreply':{var _0x30ec03=_0x10d40a[_0x57fcdc('0x1258')]['appdata'][_0x57fcdc('0x1745')](',');_0x10d40a['externaldial']['times']=isNaN(_0x30ec03[0x0])?_0x30ec03[0x0]:parseInt(_0x30ec03[0x0],0xa),_0x10d40a[_0x57fcdc('0x1258')]['text']=_0x30ec03['slice'](0x1,_0x30ec03[_0x57fcdc('0x25ae')])[_0x57fcdc('0x1537')](',');}break;case'message':_0x10d40a[_0x57fcdc('0x1258')]['text']=_0x10d40a['externaldial'][_0x57fcdc('0x26d2')];break;case _0x57fcdc('0x2aa'):_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x2623')]=_0x10d40a[_0x57fcdc('0x1258')]['appdata'][_0x57fcdc('0x1745')]('=')[0x0],_0x10d40a[_0x57fcdc('0x1258')]['value']=_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x26d2')]['split']('=')[0x1];break;case _0x57fcdc('0x401'):_0x10d40a[_0x57fcdc('0x1258')]['project']=_0x10d40a['externaldial']['appdata'];break;default:{var _0x133326=_0x10d40a[_0x57fcdc('0x1258')]['appdata']['split'](',');_0x10d40a[_0x57fcdc('0x1258')]['trunk']=_0x133326[0x0]['split']('/')[0x1],_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x1ef5')]=_0x133326[0x0][_0x57fcdc('0x1745')]('/')[0x2],_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x2058')]=_0x32d445()[_0x57fcdc('0x14b4')](_0x133326[0x1])?_0x133326[0x1]:isNaN(_0x133326[0x1])?_0x133326[0x1]:parseInt(_0x133326[0x1],0xa),_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x2116')]=_0x32d445()[_0x57fcdc('0x14b4')](_0x133326[0x2])?_0x133326[0x2]:isNaN(_0x133326[0x2])?_0x133326[0x2]:parseInt(_0x133326[0x2],0xa),_0x10d40a[_0x57fcdc('0x1258')]['url']=_0x32d445()[_0x57fcdc('0x14b4')](_0x133326[0x3])?_0x133326[0x3]:isNaN(_0x133326[0x3])?_0x133326[0x3]:parseInt(_0x133326[0x3],0xa);}break;}else{}_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x62e')]&&_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x62e')][_0x57fcdc('0x20dd')]()===_0x57fcdc('0x1fdf')&&_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0xf44')][_0x57fcdc('0x20dd')]()===_0x57fcdc('0x1d1b')&&(_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x2580')]=_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x1ef5')]?_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x1ef5')][_0x57fcdc('0x1745')]('$')[0x0]:undefined,_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0x1b6f')]=_0x10d40a[_0x57fcdc('0x1258')]['callerID']?_0x57fcdc('0xd41')+_0x10d40a[_0x57fcdc('0x1258')][_0x57fcdc('0xfca')]:undefined);_0x10d40a[_0x57fcdc('0xf4a')]=_0x54b7e2,_0x10d40a[_0x57fcdc('0x2584')]=_0x4ca50e,_0x18b354[_0x57fcdc('0x179e')](_0x57fcdc('0xd14'))?_0x3bf3a2[_0x57fcdc('0x1397')][_0x57fcdc('0x22d5')]({'fields':_0x57fcdc('0x104'),'sort':_0x57fcdc('0x2623'),'nolimit':_0x57fcdc('0x2206')})[_0x57fcdc('0xe59')]['then'](function(_0x462016){var _0x771d7c=_0x57fcdc;_0x10d40a[_0x771d7c('0x155e')]=_0x462016['rows']||[];})['catch'](function(_0x321781){var _0x383e4b=_0x57fcdc;_0x8f559d[_0x383e4b('0x8c8')]({'title':_0x321781['status']?_0x383e4b('0x27f2')+_0x321781[_0x383e4b('0x2833')]+_0x383e4b('0x1b7c')+_0x321781[_0x383e4b('0x1fd7')]:_0x383e4b('0x1e6d'),'msg':_0x321781[_0x383e4b('0x11d0')]?JSON[_0x383e4b('0x3ad')](_0x321781['data']):_0x321781[_0x383e4b('0x94f')]()});}):_0x3bf3a2['trunk'][_0x57fcdc('0x22d5')]({'fields':_0x57fcdc('0x104'),'sort':'name','nolimit':_0x57fcdc('0x2206')})[_0x57fcdc('0xe59')]['then'](function(_0x5050f7){var _0x550cce=_0x57fcdc;_0x10d40a[_0x550cce('0x155e')]=_0x5050f7[_0x550cce('0x16a7')]||[];})[_0x57fcdc('0xe19')](function(){var _0x5b0656=_0x57fcdc;return _0x3bf3a2[_0x5b0656('0xb59')][_0x5b0656('0x22d5')]({'userProfileId':_0x10d40a[_0x5b0656('0x15a5')][_0x5b0656('0x1d04')],'sectionId':0x3f3})[_0x5b0656('0xe59')];})[_0x57fcdc('0xe19')](function(_0x1350d8){var _0x4de507=_0x57fcdc,_0x4fe785=_0x1350d8&&_0x1350d8[_0x4de507('0x16a7')]?_0x1350d8[_0x4de507('0x16a7')][0x0]:null;if(!_0x4fe785){var _0x1a5be9=[],_0x3a7310=null;_0x10d40a[_0x4de507('0x1258')]&&(_0x3a7310=_0x32d445()[_0x4de507('0xf15')](_0x10d40a[_0x4de507('0x155e')],{'name':_0x10d40a['externaldial']['trunk']}));for(var _0x50cd8c=0x0;_0x50cd8c<_0x10d40a['trunks'][_0x4de507('0x25ae')];_0x50cd8c++){_0x3a7310&&_0x10d40a['trunks'][_0x50cd8c]['id']===_0x3a7310['id']&&(_0x10d40a[_0x4de507('0x155e')][_0x50cd8c][_0x4de507('0x1e9d')]=![],_0x1a5be9[_0x4de507('0xb76')](_0x10d40a[_0x4de507('0x155e')][_0x50cd8c]));}_0x10d40a[_0x4de507('0x155e')]=_0x1a5be9;}else{if(!_0x4fe785[_0x4de507('0x11fd')])return _0x3bf3a2[_0x4de507('0xd49')][_0x4de507('0x22d5')]({'sectionId':_0x4fe785['id']})[_0x4de507('0xe59')][_0x4de507('0xe19')](function(_0x2820b1){var _0x2ce2c6=_0x4de507,_0x49e5cb=_0x32d445()['map'](_0x2820b1['rows'],function(_0xe3db19){var _0x48f4c7=a0_0x5325;return _0x32d445()[_0x48f4c7('0xf15')](_0x10d40a[_0x48f4c7('0x155e')],{'id':_0xe3db19['resourceId']});}),_0x369827=null;_0x10d40a['externaldial']&&(_0x369827=_0x32d445()[_0x2ce2c6('0xf15')](_0x10d40a[_0x2ce2c6('0x155e')],{'name':_0x10d40a[_0x2ce2c6('0x1258')][_0x2ce2c6('0x1397')]}));if(_0x369827&&!_0x32d445()[_0x2ce2c6('0x201a')](_0x49e5cb,['id',_0x369827['id']])){var _0x891cae=_0x32d445()['find'](_0x10d40a[_0x2ce2c6('0x155e')],{'id':_0x369827['id']});_0x891cae['canSelect']=![],_0x49e5cb['push'](_0x891cae);}_0x10d40a[_0x2ce2c6('0x155e')]=_0x49e5cb;});}})['catch'](function(_0xe0d5ff){var _0x566911=_0x57fcdc;_0x8f559d[_0x566911('0x8c8')]({'title':_0xe0d5ff[_0x566911('0x2833')]?'API:'+_0xe0d5ff[_0x566911('0x2833')]+_0x566911('0x1b7c')+_0xe0d5ff[_0x566911('0x1fd7')]:_0x566911('0x14b5'),'msg':_0xe0d5ff[_0x566911('0x11d0')]?JSON[_0x566911('0x3ad')](_0xe0d5ff[_0x566911('0x11d0')]):_0xe0d5ff[_0x566911('0x94f')]()});});function _0x54b7e2(){var _0x5cfebc=_0x57fcdc;_0x10d40a[_0x5cfebc('0xcd2')]=[];var _0x183bb5=[];_0x10d40a[_0x5cfebc('0x1258')]['type']&&_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x62e')][_0x5cfebc('0x20dd')]()===_0x5cfebc('0x1fdf')&&_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0xf44')]===_0x5cfebc('0x3d2')&&(_0x10d40a[_0x5cfebc('0x1258')]['phone']=_0x103792[_0x5cfebc('0x27f6')]?(_0x10d40a['externaldial'][_0x5cfebc('0x2580')]||'')+_0x5cfebc('0x5d8')+_0x103792[_0x5cfebc('0x27f6')]+'}':(_0x10d40a['externaldial']['prefix']||'')+_0x5cfebc('0x16b5'),_0x103792[_0x5cfebc('0x150c')]!==_0x5cfebc('0x23ca')?_0x10d40a['externaldial'][_0x5cfebc('0x2116')][_0x5cfebc('0x281c')](_0x5cfebc('0x767'))<0x0&&(_0x10d40a[_0x5cfebc('0x1258')]['options']+=_0x5cfebc('0x767')):_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x2116')]=_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x2116')][_0x5cfebc('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0xf44')]&&_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0xf44')]===_0x5cfebc('0x261d')){}else switch((_0x10d40a[_0x5cfebc('0x1258')]['app']||_0x10d40a['externaldial'][_0x5cfebc('0xf44')])[_0x5cfebc('0x20dd')]()){case _0x5cfebc('0x2aa'):_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x26d2')]=_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x2623')]+'='+_0x10d40a['externaldial'][_0x5cfebc('0x2')];break;case _0x5cfebc('0x261d'):break;default:_0x183bb5[0x0]=[_0x5cfebc('0x1295'),_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x1397')],_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x1ef5')]][_0x5cfebc('0x1537')]('/'),_0x183bb5[0x1]=_0x10d40a['externaldial']['timeout'],_0x183bb5[0x2]=_0x10d40a['externaldial'][_0x5cfebc('0x2116')],_0x183bb5[0x3]=_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x2647')],_0x10d40a[_0x5cfebc('0x1258')][_0x5cfebc('0x26d2')]=_0x183bb5['join'](',');}_0x4ca50e(_0x10d40a[_0x5cfebc('0x1258')]);}function _0x4ca50e(_0x4b52af){var _0x649522=_0x57fcdc;_0x531a16[_0x649522('0x11ed')](_0x4b52af);}}const _0x8ca6c5=_0x47c36d;_0x5e07fa['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x5e07fa(_0x51c09d,_0x33677d,_0x16508b,_0x56a240,_0xf8a309,_0x5c0a8e,_0x5731f9,_0x2db11b){var _0xa3a600=_0xb635d2,_0xdade81=this;_0xdade81['currentUser']=_0x5731f9[_0xa3a600('0x1ef8')](),_0xdade81['errors']=[],_0xdade81[_0xa3a600('0x13e4')]='VOICE.EDIT_'+(_0x56a240[_0xa3a600('0xf44')]||_0x56a240[_0xa3a600('0xf2b')])['toUpperCase'](),_0xdade81[_0xa3a600('0x1fa1')]=angular[_0xa3a600('0x89')](_0x56a240),_0xdade81[_0xa3a600('0xb3d')]=_0x2db11b,_0xdade81[_0xa3a600('0x1ccb')]={};if(_0xdade81['goto']['appdata'])switch(_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0xf44')]?_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0xf44')][_0xa3a600('0x20dd')]():_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0xf2b')][_0xa3a600('0x20dd')]()){case _0xa3a600('0x261d'):break;case _0xa3a600('0xc11'):{var _0x24256a=_0xdade81[_0xa3a600('0x1fa1')]['appdata']['split'](',');_0xdade81[_0xa3a600('0x1fa1')]['key']=_0x24256a[0x0],_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x174b')]=_0x24256a[0x1],_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0xfcc')]=_0x24256a['slice'](0x2,_0x24256a[_0xa3a600('0x25ae')])[_0xa3a600('0x1537')](',');}break;case _0xa3a600('0x1321'):{var _0x1746c7=_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x26d2')][_0xa3a600('0x1745')](',');_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x22be')]=_0x1746c7[0x0],_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x700')]=_0x1746c7[0x1],_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x206a')]=_0x1746c7[0x2],_0xdade81[_0xa3a600('0x1fa1')]['botname']=_0x1746c7[0x3],_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0xfcc')]=_0x1746c7['slice'](0x4,_0x1746c7[_0xa3a600('0x25ae')])[_0xa3a600('0x1537')](',');}break;case'autoreply':{var _0x503737=_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x26d2')][_0xa3a600('0x1745')](',');_0xdade81[_0xa3a600('0x1fa1')]['times']=isNaN(_0x503737[0x0])?_0x503737[0x0]:parseInt(_0x503737[0x0],0xa),_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x1bc6')]=_0x503737[_0xa3a600('0xa19')](0x1,_0x503737[_0xa3a600('0x25ae')])[_0xa3a600('0x1537')](',');}break;case'message':_0xdade81[_0xa3a600('0x1fa1')]['text']=_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x26d2')];break;case _0xa3a600('0x2aa'):_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x2623')]=_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x26d2')]['split']('=')[0x0],_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x2')]=_0xdade81[_0xa3a600('0x1fa1')]['appdata'][_0xa3a600('0x1745')]('=')[0x1];break;case'agi':_0xdade81['goto'][_0xa3a600('0x38b')]=_0xdade81['goto'][_0xa3a600('0x26d2')];break;default:{var _0x1e95cd=_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x26d2')]['split'](',');_0xdade81[_0xa3a600('0x1fa1')]['context']=_0x32d445()[_0xa3a600('0x14b4')](_0x1e95cd[0x0])?_0x1e95cd[0x0]:isNaN(_0x1e95cd[0x0])?_0x1e95cd[0x0]:parseInt(_0x1e95cd[0x0],0xa),_0xdade81[_0xa3a600('0x1fa1')]['extension']=_0x32d445()[_0xa3a600('0x14b4')](_0x1e95cd[0x1])?_0x1e95cd[0x1]:isNaN(_0x1e95cd[0x1])?_0x1e95cd[0x1]:parseInt(_0x1e95cd[0x1],0xa),_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0xb33')]=_0x32d445()[_0xa3a600('0x14b4')](_0x1e95cd[0x2])?_0x1e95cd[0x2]:isNaN(_0x1e95cd[0x2])?_0x1e95cd[0x2]:parseInt(_0x1e95cd[0x2],0xa);}break;}else{}_0xdade81['goto'][_0xa3a600('0x62e')]&&_0xdade81['goto'][_0xa3a600('0x62e')]['toLowerCase']()===_0xa3a600('0x1fdf')&&_0xdade81['goto'][_0xa3a600('0xf44')][_0xa3a600('0x20dd')]()==='outbounddial'&&(_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x2580')]=_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x1ef5')]?_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0x1ef5')][_0xa3a600('0x1745')]('$')[0x0]:undefined,_0xdade81['goto'][_0xa3a600('0x1b6f')]=_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0xfca')]?_0xa3a600('0xd41')+_0xdade81[_0xa3a600('0x1fa1')][_0xa3a600('0xfca')]:undefined);_0xdade81[_0xa3a600('0xf4a')]=_0x569b6e,_0xdade81[_0xa3a600('0x2584')]=_0x3cf902,_0x5731f9[_0xa3a600('0x179e')]('admin')?_0x5c0a8e['voiceContext'][_0xa3a600('0x22d5')]({'fields':_0xa3a600('0x104'),'sort':_0xa3a600('0x2623'),'nolimit':_0xa3a600('0x2206')})['$promise']['then'](function(_0x31b576){var _0x52d7d3=_0xa3a600;_0xdade81[_0x52d7d3('0x3c1')]=_0x31b576[_0x52d7d3('0x16a7')]||[];})[_0xa3a600('0x223b')](function(_0x32515b){var _0x29dca1=_0xa3a600;_0x16508b['error']({'title':_0x32515b[_0x29dca1('0x2833')]?'API:'+_0x32515b['status']+_0x29dca1('0x1b7c')+_0x32515b[_0x29dca1('0x1fd7')]:_0x29dca1('0x17ac'),'msg':_0x32515b[_0x29dca1('0x11d0')]?JSON[_0x29dca1('0x3ad')](_0x32515b[_0x29dca1('0x11d0')]):_0x32515b[_0x29dca1('0x94f')]()});}):_0x5c0a8e[_0xa3a600('0x2768')]['get']({'fields':_0xa3a600('0x104'),'sort':_0xa3a600('0x2623'),'nolimit':_0xa3a600('0x2206')})[_0xa3a600('0xe59')][_0xa3a600('0xe19')](function(_0x55318c){var _0x3fa955=_0xa3a600;_0xdade81[_0x3fa955('0x3c1')]=_0x55318c[_0x3fa955('0x16a7')]||[];})[_0xa3a600('0xe19')](function(){var _0x326ca4=_0xa3a600;return _0x5c0a8e[_0x326ca4('0xb59')]['get']({'userProfileId':_0xdade81[_0x326ca4('0x15a5')][_0x326ca4('0x1d04')],'sectionId':0x195})['$promise'];})[_0xa3a600('0xe19')](function(_0xed4f74){var _0x286471=_0xa3a600,_0x4d93bf=_0xed4f74&&_0xed4f74[_0x286471('0x16a7')]?_0xed4f74['rows'][0x0]:null;if(!_0x4d93bf)return _0x5c0a8e['voiceContext'][_0x286471('0x22d5')]({'fields':_0x286471('0x104'),'sort':_0x286471('0x2623'),'nolimit':'true','defaultEntry':0x1})[_0x286471('0xe59')][_0x286471('0xe19')](function(_0x133dd1){_0xdade81['contexts']=_0x133dd1['rows']||[];});else{if(!_0x4d93bf['autoAssociation'])return _0x5c0a8e[_0x286471('0xd49')][_0x286471('0x22d5')]({'sectionId':_0x4d93bf['id']})[_0x286471('0xe59')][_0x286471('0xe19')](function(_0x370c8e){var _0x14fa19=_0x286471,_0x5b8174=_0x32d445()[_0x14fa19('0x65a')](_0x370c8e['rows'],function(_0x5eaf60){var _0x387e08=_0x14fa19;return _0x32d445()[_0x387e08('0xf15')](_0xdade81['contexts'],{'id':_0x5eaf60[_0x387e08('0x1104')]});}),_0x806be=null;_0xdade81[_0x14fa19('0x1fa1')]&&(_0x806be=_0x32d445()['find'](_0xdade81[_0x14fa19('0x3c1')],{'name':_0xdade81['goto'][_0x14fa19('0x1318')]}));if(_0x806be&&!_0x32d445()[_0x14fa19('0x201a')](_0x5b8174,['id',_0x806be['id']])){var _0x335015=_0x32d445()[_0x14fa19('0xf15')](_0xdade81[_0x14fa19('0x3c1')],{'id':_0x806be['id']});_0x335015[_0x14fa19('0x1e9d')]=![],_0x5b8174[_0x14fa19('0xb76')](_0x335015);}_0xdade81['contexts']=_0x5b8174;});}})[_0xa3a600('0x223b')](function(_0x47fc7d){var _0x5e3fda=_0xa3a600;_0x16508b[_0x5e3fda('0x8c8')]({'title':_0x47fc7d[_0x5e3fda('0x2833')]?_0x5e3fda('0x27f2')+_0x47fc7d[_0x5e3fda('0x2833')]+'\x20-\x20'+_0x47fc7d[_0x5e3fda('0x1fd7')]:_0x5e3fda('0x12ed'),'msg':_0x47fc7d[_0x5e3fda('0x11d0')]?JSON[_0x5e3fda('0x3ad')](_0x47fc7d[_0x5e3fda('0x11d0')]):_0x47fc7d['toString']()});});function _0x569b6e(){var _0xa52866=_0xa3a600;_0xdade81[_0xa52866('0xcd2')]=[];var _0xd784cb=[];_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0x62e')]&&_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0x62e')][_0xa52866('0x20dd')]()==='outbound'&&_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0xf44')]==='outboundDial'&&(_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0x1ef5')]=_0xf8a309[_0xa52866('0x27f6')]?(_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0x2580')]||'')+_0xa52866('0x5d8')+_0xf8a309[_0xa52866('0x27f6')]+'}':(_0xdade81['goto'][_0xa52866('0x2580')]||'')+_0xa52866('0x16b5'),_0xf8a309[_0xa52866('0x150c')]!=='none'?_0xdade81[_0xa52866('0x1fa1')]['options'][_0xa52866('0x281c')](_0xa52866('0x767'))<0x0&&(_0xdade81['goto'][_0xa52866('0x2116')]+=_0xa52866('0x767')):_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0x2116')]=_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0x2116')][_0xa52866('0x1b42')](_0xa52866('0x767'),''));if(_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0xf44')]&&_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0xf44')]===_0xa52866('0x261d')){}else switch((_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0xf2b')]||_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0xf44')])['toLowerCase']()){case _0xa52866('0x2aa'):_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0x26d2')]=_0xdade81[_0xa52866('0x1fa1')]['name']+'='+_0xdade81[_0xa52866('0x1fa1')][_0xa52866('0x2')];break;case _0xa52866('0x261d'):break;default:_0xd784cb[0x0]=_0xdade81['goto'][_0xa52866('0x1318')],_0xd784cb[0x1]=_0xdade81['goto']['extension'],_0xd784cb[0x2]=_0xdade81['goto'][_0xa52866('0xb33')],_0xdade81[_0xa52866('0x1fa1')]['appdata']=_0xd784cb[_0xa52866('0x1537')](',');}_0x3cf902(_0xdade81['goto']);}function _0x3cf902(_0x321b86){_0x51c09d['hide'](_0x321b86);}}const _0x17191e=_0x5e07fa;_0x104361[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),'internalroute',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x104361(_0x485089,_0x207fdf,_0x4e11ad,_0x1acf70,_0x1805bf,_0x20e09a,_0x55209d,_0x291eac){var _0x25eee3=_0xb635d2,_0x1981cc=this;_0x1981cc[_0x25eee3('0x15a5')]=_0x55209d[_0x25eee3('0x1ef8')](),_0x1981cc[_0x25eee3('0xcd2')]=[],_0x1981cc['title']=_0x25eee3('0x22ff')+(_0x1acf70[_0x25eee3('0xf44')]||_0x1acf70[_0x25eee3('0xf2b')])[_0x25eee3('0x25f7')](),_0x1981cc[_0x25eee3('0x1e92')]=angular[_0x25eee3('0x89')](_0x1acf70),_0x1981cc[_0x25eee3('0xb3d')]=_0x291eac,_0x1981cc['hasModulePermissions']={};if(_0x1981cc['hangup'][_0x25eee3('0x26d2')])switch(_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0xf44')]?_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0xf44')]['toLowerCase']():_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0xf2b')]['toLowerCase']()){case'custom':break;case _0x25eee3('0xc11'):{var _0x405a66=_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x26d2')][_0x25eee3('0x1745')](',');_0x1981cc[_0x25eee3('0x1e92')]['key']=_0x405a66[0x0],_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x174b')]=_0x405a66[0x1],_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0xfcc')]=_0x405a66[_0x25eee3('0xa19')](0x2,_0x405a66[_0x25eee3('0x25ae')])[_0x25eee3('0x1537')](',');}break;case _0x25eee3('0x1321'):{var _0x219fb8=_0x1981cc[_0x25eee3('0x1e92')]['appdata'][_0x25eee3('0x1745')](',');_0x1981cc[_0x25eee3('0x1e92')]['accesskeyid']=_0x219fb8[0x0],_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x700')]=_0x219fb8[0x1],_0x1981cc['hangup']['lexregion']=_0x219fb8[0x2],_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x191a')]=_0x219fb8[0x3],_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0xfcc')]=_0x219fb8['slice'](0x4,_0x219fb8[_0x25eee3('0x25ae')])['join'](',');}break;case'autoreply':{var _0x4430d2=_0x1981cc['hangup'][_0x25eee3('0x26d2')][_0x25eee3('0x1745')](',');_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x1ec4')]=isNaN(_0x4430d2[0x0])?_0x4430d2[0x0]:parseInt(_0x4430d2[0x0],0xa),_0x1981cc['hangup'][_0x25eee3('0x1bc6')]=_0x4430d2[_0x25eee3('0xa19')](0x1,_0x4430d2['length'])[_0x25eee3('0x1537')](',');}break;case _0x25eee3('0x27e8'):_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x1bc6')]=_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x26d2')];break;case _0x25eee3('0x2aa'):_0x1981cc[_0x25eee3('0x1e92')]['name']=_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x26d2')][_0x25eee3('0x1745')]('=')[0x0],_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x2')]=_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x26d2')][_0x25eee3('0x1745')]('=')[0x1];break;case _0x25eee3('0x401'):_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x38b')]=_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x26d2')];break;default:{var _0x12dfd4=_0x1981cc['hangup'][_0x25eee3('0x26d2')][_0x25eee3('0x1745')](',');_0x1981cc['hangup']['appdata']=_0x32d445()['isEmpty'](_0x12dfd4[0x0])?_0x12dfd4[0x0]:isNaN(_0x12dfd4[0x0])?_0x12dfd4[0x0]:parseInt(_0x12dfd4[0x0],0xa);}break;}else{}_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x62e')]&&_0x1981cc['hangup'][_0x25eee3('0x62e')][_0x25eee3('0x20dd')]()===_0x25eee3('0x1fdf')&&_0x1981cc['hangup'][_0x25eee3('0xf44')]['toLowerCase']()==='outbounddial'&&(_0x1981cc['hangup'][_0x25eee3('0x2580')]=_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x1ef5')]?_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x1ef5')][_0x25eee3('0x1745')]('$')[0x0]:undefined,_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0x1b6f')]=_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0xfca')]?_0x25eee3('0xd41')+_0x1981cc[_0x25eee3('0x1e92')][_0x25eee3('0xfca')]:undefined);_0x1981cc[_0x25eee3('0xf4a')]=_0x290068,_0x1981cc[_0x25eee3('0x2584')]=_0x2c87c7;function _0x290068(){var _0x2ac673=_0x25eee3;_0x1981cc[_0x2ac673('0xcd2')]=[];var _0x33f208=[];_0x1981cc[_0x2ac673('0x1e92')]['type']&&_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x62e')]['toLowerCase']()===_0x2ac673('0x1fdf')&&_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0xf44')]===_0x2ac673('0x3d2')&&(_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x1ef5')]=_0x1805bf[_0x2ac673('0x27f6')]?(_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x2580')]||'')+'${EXTEN:'+_0x1805bf[_0x2ac673('0x27f6')]+'}':(_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x2580')]||'')+_0x2ac673('0x16b5'),_0x1805bf[_0x2ac673('0x150c')]!=='none'?_0x1981cc['hangup'][_0x2ac673('0x2116')]['indexOf'](_0x2ac673('0x767'))<0x0&&(_0x1981cc['hangup'][_0x2ac673('0x2116')]+=_0x2ac673('0x767')):_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x2116')]=_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x2116')]['replace'](_0x2ac673('0x767'),''));if(_0x1981cc[_0x2ac673('0x1e92')]['appType']&&_0x1981cc['hangup'][_0x2ac673('0xf44')]===_0x2ac673('0x261d')){}else switch((_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0xf2b')]||_0x1981cc['hangup'][_0x2ac673('0xf44')])[_0x2ac673('0x20dd')]()){case _0x2ac673('0x2aa'):_0x1981cc['hangup'][_0x2ac673('0x26d2')]=_0x1981cc[_0x2ac673('0x1e92')]['name']+'='+_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x2')];break;case _0x2ac673('0x261d'):break;default:_0x33f208[0x0]=_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x26d2')],_0x1981cc[_0x2ac673('0x1e92')][_0x2ac673('0x26d2')]=_0x33f208[_0x2ac673('0x1537')](',');}_0x2c87c7(_0x1981cc[_0x2ac673('0x1e92')]);}function _0x2c87c7(_0x107890){var _0x49949e=_0x25eee3;_0x485089[_0x49949e('0x11ed')](_0x107890);}}const _0x20fa9e=_0x104361;_0x212b2b['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x212b2b(_0x371bcd,_0xeae962,_0x565bdf,_0x36cda0,_0x3f0ec8,_0x4d4f41,_0x1f5dad,_0x4f6810){var _0x4182cf=_0xb635d2,_0x2a7df8=this;_0x2a7df8[_0x4182cf('0x15a5')]=_0x1f5dad['getCurrentUser'](),_0x2a7df8[_0x4182cf('0xcd2')]=[],_0x2a7df8[_0x4182cf('0x13e4')]=_0x4182cf('0x22ff')+(_0x36cda0['appType']||_0x36cda0[_0x4182cf('0xf2b')])[_0x4182cf('0x25f7')](),_0x2a7df8['internaldial']=angular[_0x4182cf('0x89')](_0x36cda0),_0x2a7df8[_0x4182cf('0xb3d')]=_0x4f6810,_0x2a7df8['hasModulePermissions']={};if(_0x2a7df8['internaldial'][_0x4182cf('0x26d2')])switch(_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0xf44')]?_0x2a7df8['internaldial']['appType']['toLowerCase']():_0x2a7df8['internaldial'][_0x4182cf('0xf2b')][_0x4182cf('0x20dd')]()){case'custom':break;case _0x4182cf('0xc11'):{var _0x485180=_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x26d2')][_0x4182cf('0x1745')](',');_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x6e4')]=_0x485180[0x0],_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x174b')]=_0x485180[0x1],_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0xfcc')]=_0x485180[_0x4182cf('0xa19')](0x2,_0x485180[_0x4182cf('0x25ae')])[_0x4182cf('0x1537')](',');}break;case _0x4182cf('0x1321'):{var _0x5d10c6=_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x26d2')][_0x4182cf('0x1745')](',');_0x2a7df8['internaldial']['accesskeyid']=_0x5d10c6[0x0],_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x700')]=_0x5d10c6[0x1],_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x206a')]=_0x5d10c6[0x2],_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x191a')]=_0x5d10c6[0x3],_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0xfcc')]=_0x5d10c6[_0x4182cf('0xa19')](0x4,_0x5d10c6[_0x4182cf('0x25ae')])[_0x4182cf('0x1537')](',');}break;case _0x4182cf('0x400'):{var _0x599c3c=_0x2a7df8[_0x4182cf('0x1c66')]['appdata']['split'](',');_0x2a7df8[_0x4182cf('0x1c66')]['times']=isNaN(_0x599c3c[0x0])?_0x599c3c[0x0]:parseInt(_0x599c3c[0x0],0xa),_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x1bc6')]=_0x599c3c[_0x4182cf('0xa19')](0x1,_0x599c3c[_0x4182cf('0x25ae')])[_0x4182cf('0x1537')](',');}break;case'message':_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x1bc6')]=_0x2a7df8[_0x4182cf('0x1c66')]['appdata'];break;case _0x4182cf('0x2aa'):_0x2a7df8['internaldial']['name']=_0x2a7df8[_0x4182cf('0x1c66')]['appdata'][_0x4182cf('0x1745')]('=')[0x0],_0x2a7df8['internaldial'][_0x4182cf('0x2')]=_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x26d2')]['split']('=')[0x1];break;case _0x4182cf('0x401'):_0x2a7df8['internaldial'][_0x4182cf('0x38b')]=_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x26d2')];break;default:{var _0x392192=_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x26d2')][_0x4182cf('0x1745')](',');_0x2a7df8['internaldial'][_0x4182cf('0x10c6')]=_0x32d445()[_0x4182cf('0x14b4')](_0x392192[0x0])?_0x392192[0x0]:isNaN(_0x392192[0x0])?_0x392192[0x0]:parseInt(_0x392192[0x0],0xa),_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x2058')]=_0x32d445()['isEmpty'](_0x392192[0x1])?_0x392192[0x1]:isNaN(_0x392192[0x1])?_0x392192[0x1]:parseInt(_0x392192[0x1],0xa),_0x2a7df8[_0x4182cf('0x1c66')]['options']=_0x32d445()[_0x4182cf('0x14b4')](_0x392192[0x2])?_0x392192[0x2]:isNaN(_0x392192[0x2])?_0x392192[0x2]:parseInt(_0x392192[0x2],0xa),_0x2a7df8[_0x4182cf('0x1c66')]['url']=_0x32d445()['isEmpty'](_0x392192[0x3])?_0x392192[0x3]:isNaN(_0x392192[0x3])?_0x392192[0x3]:parseInt(_0x392192[0x3],0xa);}break;}else{}_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x62e')]&&_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0x62e')][_0x4182cf('0x20dd')]()==='outbound'&&_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0xf44')]['toLowerCase']()===_0x4182cf('0x1d1b')&&(_0x2a7df8['internaldial']['prefix']=_0x2a7df8['internaldial'][_0x4182cf('0x1ef5')]?_0x2a7df8['internaldial'][_0x4182cf('0x1ef5')][_0x4182cf('0x1745')]('$')[0x0]:undefined,_0x2a7df8['internaldial']['callerId']=_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0xfca')]?_0x4182cf('0xd41')+_0x2a7df8[_0x4182cf('0x1c66')][_0x4182cf('0xfca')]:undefined);_0x2a7df8['saveInternalRouteApp']=_0x19fd90,_0x2a7df8['closeDialog']=_0x3270e3;var _0x105c16=[{'id':0xca,'role':_0x4182cf('0x108')},{'id':0xcb,'role':'telephone'}],_0x46d60c=null;_0x1f5dad[_0x4182cf('0x179e')]('admin')?_0x4d4f41[_0x4182cf('0x10c6')][_0x4182cf('0x22d5')]({'fields':'id,name,role','sort':_0x4182cf('0x2623'),'nolimit':_0x4182cf('0x2206')})[_0x4182cf('0xe59')]['then'](function(_0x1227b7){var _0x5f57e4=_0x4182cf;_0x2a7df8[_0x5f57e4('0x2526')]=_0x1227b7[_0x5f57e4('0x16a7')]||[];})[_0x4182cf('0x223b')](function(_0x86378d){var _0x412c7c=_0x4182cf;_0x565bdf['error']({'title':_0x86378d['status']?'API:'+_0x86378d[_0x412c7c('0x2833')]+_0x412c7c('0x1b7c')+_0x86378d[_0x412c7c('0x1fd7')]:'SYSTEM:GET_USERS','msg':_0x86378d[_0x412c7c('0x11d0')]?JSON['stringify'](_0x86378d[_0x412c7c('0x11d0')]):_0x86378d[_0x412c7c('0x94f')]()});}):_0x4d4f41['user']['get']({'fields':_0x4182cf('0xcb6'),'sort':_0x4182cf('0x2623'),'nolimit':_0x4182cf('0x2206')})[_0x4182cf('0xe59')][_0x4182cf('0xe19')](function(_0x1dbe91){var _0x368c4d=_0x4182cf;_0x46d60c=_0x1dbe91[_0x368c4d('0x16a7')]||[];})[_0x4182cf('0xe19')](function(){var _0x4f7c93=_0x4182cf,_0xf1b56c=[];for(var _0x44f78c=0x0;_0x44f78c<_0x105c16['length'];_0x44f78c++){_0xf1b56c[_0x4f7c93('0xb76')](_0x4d4f41[_0x4f7c93('0xb59')][_0x4f7c93('0x22d5')]({'userProfileId':_0x2a7df8['currentUser'][_0x4f7c93('0x1d04')],'sectionId':_0x105c16[_0x44f78c]['id']})[_0x4f7c93('0xe59')]);}return _0xeae962[_0x4f7c93('0xf0e')](_0xf1b56c);})[_0x4182cf('0xe19')](function(_0x4d8221){var _0x418b2d=_0x4182cf,_0x12d334=_0x32d445()['map'](_0x4d8221,function(_0x474133){var _0x2a8212=a0_0x5325;return _0x474133&&_0x474133['rows']?_0x474133[_0x2a8212('0x16a7')][0x0]:null;}),_0x470ee5=[],_0x47dcb4=function _0x37020f(_0x6e107d){var _0x557cac=a0_0x5325,_0x2d3bd6=_0x32d445()[_0x557cac('0xf15')](_0x12d334,[_0x557cac('0x964'),_0x105c16[_0x6e107d]['id']]);if(_0x2d3bd6){if(!_0x2d3bd6[_0x557cac('0x11fd')])_0x470ee5[_0x557cac('0xb76')](_0x4d4f41[_0x557cac('0xd49')][_0x557cac('0x22d5')]({'sectionId':_0x2d3bd6['id']})[_0x557cac('0xe59')]);else{var _0x42663e=[];_0x46d60c['forEach'](function(_0x19ef05){var _0x5bf063=_0x557cac;_0x19ef05[_0x5bf063('0xcd9')]===_0x105c16[_0x6e107d][_0x5bf063('0xcd9')]&&_0x42663e['push'](_0x19ef05);}),_0x470ee5[_0x557cac('0xb76')]({'rows':_0x42663e,'count':_0x42663e[_0x557cac('0x25ae')]});}}};for(var _0x446ba2=0x0;_0x446ba2<_0x105c16[_0x418b2d('0x25ae')];_0x446ba2++){_0x47dcb4(_0x446ba2);}return _0xeae962[_0x418b2d('0xf0e')](_0x470ee5);})[_0x4182cf('0xe19')](function(_0x538394){var _0x4d6f23=_0x4182cf,_0x57871b=[],_0x43475a=null;_0x2a7df8[_0x4d6f23('0x1c66')]&&(_0x43475a=_0x32d445()[_0x4d6f23('0xf15')](_0x46d60c,{'name':_0x2a7df8[_0x4d6f23('0x1c66')][_0x4d6f23('0x10c6')]}));for(var _0x1cb18c=0x0;_0x1cb18c<_0x538394[_0x4d6f23('0x25ae')];_0x1cb18c++){var _0x5a8821=_0x538394[_0x1cb18c][_0x4d6f23('0x16a7')]||[];_0x5a8821[_0x4d6f23('0x1d7e')](function(_0x12698d){var _0x9ec21d=_0x4d6f23;_0x57871b[_0x9ec21d('0xb76')](_0x12698d);});}_0x43475a&&!_0x32d445()['some'](_0x57871b,[_0x4d6f23('0x1104'),_0x43475a['id']])&&_0x46d60c[_0x4d6f23('0x1d7e')](function(_0x184741){var _0x2da9e9=_0x4d6f23;_0x184741['id']===_0x43475a['id']&&(_0x184741[_0x2da9e9('0x1e9d')]=![],_0x57871b[_0x2da9e9('0xb76')](_0x184741));}),_0x2a7df8['users']=_0x57871b;})['catch'](function(_0x55cc55){var _0x563f53=_0x4182cf;_0x565bdf[_0x563f53('0x8c8')]({'title':_0x55cc55[_0x563f53('0x2833')]?_0x563f53('0x27f2')+_0x55cc55[_0x563f53('0x2833')]+'\x20-\x20'+_0x55cc55[_0x563f53('0x1fd7')]:_0x563f53('0x1662'),'msg':_0x55cc55[_0x563f53('0x11d0')]?JSON[_0x563f53('0x3ad')](_0x55cc55[_0x563f53('0x11d0')]):_0x55cc55[_0x563f53('0x94f')]()});});function _0x19fd90(){var _0x1480cf=_0x4182cf;_0x2a7df8[_0x1480cf('0xcd2')]=[];var _0x2c9051=[];_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x62e')]&&_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x62e')][_0x1480cf('0x20dd')]()==='outbound'&&_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0xf44')]===_0x1480cf('0x3d2')&&(_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x1ef5')]=_0x3f0ec8['cutdigits']?(_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x2580')]||'')+_0x1480cf('0x5d8')+_0x3f0ec8[_0x1480cf('0x27f6')]+'}':(_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x2580')]||'')+'${EXTEN}',_0x3f0ec8[_0x1480cf('0x150c')]!==_0x1480cf('0x23ca')?_0x2a7df8[_0x1480cf('0x1c66')]['options'][_0x1480cf('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x2116')]+='U(xcally-mixmonitor-context)'):_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x2116')]=_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x2116')][_0x1480cf('0x1b42')](_0x1480cf('0x767'),''));if(_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0xf44')]&&_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0xf44')]===_0x1480cf('0x261d')){}else switch((_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0xf2b')]||_0x2a7df8['internaldial']['appType'])['toLowerCase']()){case _0x1480cf('0x2aa'):_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x26d2')]=_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x2623')]+'='+_0x2a7df8['internaldial'][_0x1480cf('0x2')];break;case _0x1480cf('0x261d'):break;default:_0x2c9051[0x0]=_0x2a7df8[_0x1480cf('0x1c66')]['user'],_0x2c9051[0x1]=_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x2058')],_0x2c9051[0x2]=_0x2a7df8['internaldial'][_0x1480cf('0x2116')],_0x2c9051[0x3]=_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x2647')],_0x2a7df8[_0x1480cf('0x1c66')][_0x1480cf('0x26d2')]=_0x2c9051[_0x1480cf('0x1537')](',');}_0x3270e3(_0x2a7df8['internaldial']);}function _0x3270e3(_0x4d79a7){var _0x3e571=_0x4182cf;_0x371bcd[_0x3e571('0x11ed')](_0x4d79a7);}}const _0x4a4a9f=_0x212b2b;_0x5ce7d4[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x1c9f'),_0xb635d2('0x1e23'),'IndexFactory','interval','intervals','toasty',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x5ce7d4(_0x2eb339,_0x16ebd0,_0x12184f,_0x29c2bd,_0x401e7c,_0x467d74,_0x41f6c4,_0x29f76a,_0x521c03,_0x2c0001){var _0x423d19=_0xb635d2,_0x1098af=this;_0x1098af[_0x423d19('0x15a5')]=_0x521c03[_0x423d19('0x1ef8')](),_0x1098af[_0x423d19('0xcd2')]=[],_0x1098af[_0x423d19('0x13e4')]=_0x423d19('0xf42'),_0x1098af[_0x423d19('0x134c')]=angular[_0x423d19('0x89')](_0x401e7c),_0x1098af[_0x423d19('0x10e0')]=_0x467d74,_0x1098af[_0x423d19('0x1a83')]=![],_0x1098af[_0x423d19('0x1ea6')]=[_0x423d19('0x2210'),_0x423d19('0x261d'),'list'],_0x1098af[_0x423d19('0xb3d')]=_0x2c0001,_0x1098af[_0x423d19('0x1af')]=_0x29c2bd[_0x423d19('0xfd7')](),_0x1098af[_0x423d19('0x253d')]=_0x29c2bd['getMonthNumber'](),_0x1098af[_0x423d19('0x631')]=_0x29c2bd[_0x423d19('0x1b22')](),_0x1098af[_0x423d19('0x2347')]=_0x29c2bd['getDaysOfMonth']();if(!_0x1098af[_0x423d19('0x134c')])_0x1098af['interval']={'interval':_0x423d19('0x2292')},_0x1098af[_0x423d19('0x62e')]=_0x423d19('0x2210'),_0x1098af[_0x423d19('0x13e4')]=_0x423d19('0x1947'),_0x1098af[_0x423d19('0x1a83')]=!![];else{if(_0x1098af[_0x423d19('0x134c')][_0x423d19('0x134c')]!==_0x423d19('0x2292')){_0x1098af[_0x423d19('0x62e')]='custom';var _0x17ad3f=_0x1098af[_0x423d19('0x134c')][_0x423d19('0x134c')]['split'](','),_0x30eb0f=_0x17ad3f[0x0],_0x1f9576=_0x17ad3f[0x1],_0x315664=_0x17ad3f[0x2],_0x5db502=_0x17ad3f[0x3];if(_0x30eb0f!=='*'){var _0x170b76=_0x30eb0f['split']('-')[0x0],_0xcb4e71=_0x30eb0f['split']('-')[0x1],_0x5383d5;_0x5383d5=new Date(),_0x5383d5[_0x423d19('0x19f6')](Number(_0x170b76[_0x423d19('0x1745')](':')[0x0])),_0x5383d5[_0x423d19('0x6b6')](Number(_0x170b76[_0x423d19('0x1745')](':')[0x1])),_0x1098af[_0x423d19('0xde9')]=_0x5383d5,_0x5383d5=new Date(),_0x5383d5[_0x423d19('0x19f6')](Number(_0xcb4e71[_0x423d19('0x1745')](':')[0x0])),_0x5383d5['setMinutes'](Number(_0xcb4e71[_0x423d19('0x1745')](':')[0x1])),_0x1098af[_0x423d19('0x12ef')]=_0x5383d5;}_0x1f9576!=='*'&&(_0x1098af[_0x423d19('0x2359')]=_0x1f9576[_0x423d19('0x1745')]('-')[0x0],_0x1098af[_0x423d19('0xa40')]=_0x1f9576[_0x423d19('0x1745')]('-')[0x1]),_0x315664!=='*'&&(_0x1098af['monthDayFrom']=_0x315664[_0x423d19('0x1745')]('-')[0x0],_0x1098af[_0x423d19('0x3d6')]=_0x315664[_0x423d19('0x1745')]('-')[0x1]),_0x5db502!=='*'&&(_0x1098af[_0x423d19('0x1b2a')]=_0x5db502[_0x423d19('0x1745')]('-')[0x0],_0x1098af[_0x423d19('0xac6')]=_0x5db502[_0x423d19('0x1745')]('-')[0x1]);}else _0x1098af[_0x423d19('0x62e')]=_0x423d19('0x2210');}_0x2eb339[_0x423d19('0x2ef')]['id']&&!_0x1098af[_0x423d19('0x134c')][_0x423d19('0x1491')]&&(_0x1098af[_0x423d19('0x134c')][_0x423d19('0x1fc1')]=_0x2eb339['params']['id']);_0x1098af['interval']['IntervalId']&&_0x1098af[_0x423d19('0x134c')][_0x423d19('0x1491')]&&(_0x1098af['type']=_0x423d19('0x15a8'));_0x1098af[_0x423d19('0x10a8')]=_0x492d0e,_0x1098af[_0x423d19('0x201f')]=_0x1c7547,_0x1098af[_0x423d19('0x2584')]=_0x280df9;_0x1098af[_0x423d19('0x134c')][_0x423d19('0x1491')]&&(_0x521c03[_0x423d19('0x179e')](_0x423d19('0xd14'))?_0x29f76a['interval'][_0x423d19('0x22d5')]({'fields':_0x423d19('0x13df'),'IntervalId':_0x423d19('0x1046'),'nolimit':!![]})['$promise']['then'](function(_0x44b24b){var _0x2f7214=_0x423d19;_0x1098af[_0x2f7214('0x10e0')]=_0x44b24b[_0x2f7214('0x16a7')]||[];})[_0x423d19('0x223b')](function(_0x478c57){var _0x597f91=_0x423d19;_0x41f6c4['error']({'title':_0x478c57[_0x597f91('0x2833')]?_0x597f91('0x27f2')+_0x478c57[_0x597f91('0x2833')]+'\x20-\x20'+_0x478c57[_0x597f91('0x1fd7')]:'SYSTEM:GET_INTERVALS','msg':_0x478c57['data']?JSON[_0x597f91('0x3ad')](_0x478c57[_0x597f91('0x11d0')]):_0x478c57['toString']()});}):_0x29f76a['interval']['get']({'fields':_0x423d19('0x13df'),'IntervalId':_0x423d19('0x1046'),'nolimit':!![]})[_0x423d19('0xe59')]['then'](function(_0x2b640f){var _0x2d58db=_0x423d19;_0x1098af[_0x2d58db('0x10e0')]=_0x2b640f['rows']||[];})['then'](function(){var _0x33705a=_0x423d19;return _0x29f76a[_0x33705a('0xb59')]['get']({'userProfileId':_0x1098af[_0x33705a('0x15a5')][_0x33705a('0x1d04')],'sectionId':0x3ec})['$promise'];})[_0x423d19('0xe19')](function(_0x10ec28){var _0x137d49=_0x423d19,_0x557f55=_0x10ec28&&_0x10ec28[_0x137d49('0x16a7')]?_0x10ec28[_0x137d49('0x16a7')][0x0]:null;if(!_0x557f55)_0x1098af[_0x137d49('0x10e0')]=[];else{if(!_0x557f55[_0x137d49('0x11fd')])return _0x29f76a[_0x137d49('0xd49')]['get']({'sectionId':_0x557f55['id']})['$promise'][_0x137d49('0xe19')](function(_0xda5490){var _0x2c6c85=_0x137d49,_0x1821c1=_0xda5490&&_0xda5490['rows']?_0xda5490[_0x2c6c85('0x16a7')]:[],_0x2b65e2=[],_0x105334=null;_0x1098af[_0x2c6c85('0x134c')]&&(_0x105334=_0x32d445()[_0x2c6c85('0xf15')](_0x1098af['intervals'],{'name':_0x1098af[_0x2c6c85('0x134c')][_0x2c6c85('0x1fc1')]})),_0x105334&&!_0x32d445()[_0x2c6c85('0x201a')](_0x1821c1,['resourceId',_0x105334['id']])&&_0x1098af[_0x2c6c85('0x10e0')][_0x2c6c85('0x1d7e')](function(_0x3bb77f){var _0x1ced32=_0x2c6c85;_0x3bb77f['id']===_0x105334['id']&&(_0x3bb77f[_0x1ced32('0x1e9d')]=![],_0x2b65e2[_0x1ced32('0xb76')](_0x3bb77f));}),_0x1098af[_0x2c6c85('0x10e0')]=_0x2b65e2;});}})[_0x423d19('0x223b')](function(_0x36e3fa){var _0x4b3fbf=_0x423d19;_0x41f6c4['error']({'title':_0x36e3fa['status']?'API:'+_0x36e3fa[_0x4b3fbf('0x2833')]+_0x4b3fbf('0x1b7c')+_0x36e3fa[_0x4b3fbf('0x1fd7')]:_0x4b3fbf('0x1c1c'),'msg':_0x36e3fa[_0x4b3fbf('0x11d0')]?JSON[_0x4b3fbf('0x3ad')](_0x36e3fa[_0x4b3fbf('0x11d0')]):_0x36e3fa['toString']()});}));function _0x360d24(){var _0x25c06b=_0x423d19;switch(_0x1098af[_0x25c06b('0x62e')]){case _0x25c06b('0x2210'):case _0x25c06b('0x15a8'):return _0x25c06b('0x2292');case _0x25c06b('0x261d'):{var _0x259c63=[];if(_0x1098af['timeRangeFrom']!=='*'&&_0x1098af[_0x25c06b('0xde9')]&&_0x1098af['timeRangeTo']){var _0x319c1e=(_0x1098af['timeRangeFrom']['getHours']()<0xa?'0':'')+_0x1098af['timeRangeFrom'][_0x25c06b('0x757')]()+':'+((_0x1098af[_0x25c06b('0xde9')]['getMinutes']()<0xa?'0':'')+_0x1098af[_0x25c06b('0xde9')][_0x25c06b('0x961')]()),_0x245e32=(_0x1098af['timeRangeTo'][_0x25c06b('0x757')]()<0xa?'0':'')+_0x1098af[_0x25c06b('0x12ef')][_0x25c06b('0x757')]()+':'+((_0x1098af['timeRangeTo'][_0x25c06b('0x961')]()<0xa?'0':'')+_0x1098af[_0x25c06b('0x12ef')][_0x25c06b('0x961')]());_0x259c63[_0x25c06b('0xb76')](_0x319c1e+'-'+_0x245e32);}else _0x259c63[_0x25c06b('0xb76')]('*');return _0x1098af[_0x25c06b('0x2359')]?_0x1098af[_0x25c06b('0xa40')]?_0x259c63[_0x25c06b('0xb76')](_0x1098af[_0x25c06b('0x2359')]+'-'+_0x1098af[_0x25c06b('0xa40')]):_0x259c63[_0x25c06b('0xb76')](_0x1098af[_0x25c06b('0x2359')]):_0x259c63[_0x25c06b('0xb76')]('*'),_0x1098af[_0x25c06b('0x146b')]?_0x1098af['monthDayTo']?_0x259c63[_0x25c06b('0xb76')](_0x1098af[_0x25c06b('0x146b')]+'-'+_0x1098af[_0x25c06b('0x3d6')]):_0x259c63['push'](_0x1098af[_0x25c06b('0x146b')]):_0x259c63[_0x25c06b('0xb76')]('*'),_0x1098af[_0x25c06b('0x1b2a')]?_0x1098af[_0x25c06b('0xac6')]?_0x259c63['push'](_0x1098af['monthFrom']+'-'+_0x1098af[_0x25c06b('0xac6')]):_0x259c63[_0x25c06b('0xb76')](_0x1098af['monthFrom']):_0x259c63[_0x25c06b('0xb76')]('*'),_0x259c63['join']();}}}function _0x492d0e(){var _0xec5b34=_0x423d19;_0x1098af[_0xec5b34('0xcd2')]=[],_0x1098af[_0xec5b34('0x134c')][_0xec5b34('0x134c')]=_0x360d24(),_0x29f76a[_0xec5b34('0x134c')][_0xec5b34('0xe5e')](_0x1098af[_0xec5b34('0x134c')])[_0xec5b34('0xe59')][_0xec5b34('0xe19')](function(_0x13fee8){var _0x42b962=_0xec5b34;_0x1098af['intervals'][_0x42b962('0xb76')](_0x13fee8),_0x41f6c4[_0x42b962('0x425')]({'title':_0x42b962('0x1268'),'msg':_0x1098af[_0x42b962('0x134c')][_0x42b962('0x2623')]?_0x1098af['interval'][_0x42b962('0x2623')]+_0x42b962('0x105f'):''}),_0x280df9();})['catch'](function(_0xacf354){var _0x418d11=_0xec5b34;console[_0x418d11('0x8c8')](_0xacf354),_0x1098af[_0x418d11('0xcd2')]=_0xacf354[_0x418d11('0x11d0')]['errors']||[{'message':_0xacf354[_0x418d11('0x94f')](),'type':'api.interval.save'}];});}function _0x1c7547(){var _0x5d32e5=_0x423d19;_0x1098af['errors']=[],_0x1098af[_0x5d32e5('0x134c')][_0x5d32e5('0x134c')]=_0x360d24(),_0x1098af[_0x5d32e5('0x134c')][_0x5d32e5('0x1491')]?(_0x1098af['type']!==_0x5d32e5('0x15a8')&&(_0x1098af[_0x5d32e5('0x134c')][_0x5d32e5('0x1fc1')]=null),_0x280df9(_0x1098af[_0x5d32e5('0x134c')])):_0x29f76a[_0x5d32e5('0x134c')][_0x5d32e5('0xa70')]({'id':_0x1098af[_0x5d32e5('0x134c')]['id']},_0x1098af[_0x5d32e5('0x134c')])[_0x5d32e5('0xe59')][_0x5d32e5('0xe19')](function(_0x4454d0){var _0x41afc4=_0x5d32e5,_0x2b989a=_0x32d445()[_0x41afc4('0xf15')](_0x1098af[_0x41afc4('0x10e0')],{'id':_0x4454d0['id']});_0x2b989a&&_0x32d445()[_0x41afc4('0x1d8')](_0x2b989a,_0x4454d0),_0x41f6c4['success']({'title':_0x41afc4('0x228'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x280df9();})['catch'](function(_0xf90236){var _0xc6f87c=_0x5d32e5;console[_0xc6f87c('0x8c8')](_0xf90236),_0x1098af['errors']=_0xf90236['data'][_0xc6f87c('0xcd2')]||[{'message':_0xf90236[_0xc6f87c('0x94f')](),'type':'api.interval.update'}];});}function _0x280df9(_0x39311c){var _0x88e131=_0x423d19;_0x16ebd0[_0x88e131('0x11ed')](_0x39311c);}}const _0x4a0bb4=_0x5ce7d4;_0x546c99['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x546c99(_0x2fff21,_0x484fa9,_0x4d735b,_0x2f0a3c,_0x40252f,_0x18a837,_0x267712,_0x50d301){var _0x9cb67a=_0xb635d2,_0x22228d=this;_0x22228d[_0x9cb67a('0x15a5')]=_0x267712['getCurrentUser'](),_0x22228d[_0x9cb67a('0xcd2')]=[],_0x22228d[_0x9cb67a('0x13e4')]=_0x9cb67a('0x22ff')+(_0x2f0a3c[_0x9cb67a('0xf44')]||_0x2f0a3c[_0x9cb67a('0xf2b')])['toUpperCase'](),_0x22228d['playback']=angular['copy'](_0x2f0a3c),_0x22228d[_0x9cb67a('0xb3d')]=_0x50d301,_0x22228d[_0x9cb67a('0x1ccb')]={};if(_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x26d2')])switch(_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0xf44')]?_0x22228d[_0x9cb67a('0x1fd6')]['appType'][_0x9cb67a('0x20dd')]():_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0xf2b')][_0x9cb67a('0x20dd')]()){case'custom':break;case _0x9cb67a('0xc11'):{var _0xa9dfe2=_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x26d2')][_0x9cb67a('0x1745')](',');_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x6e4')]=_0xa9dfe2[0x0],_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x174b')]=_0xa9dfe2[0x1],_0x22228d['playback'][_0x9cb67a('0xfcc')]=_0xa9dfe2[_0x9cb67a('0xa19')](0x2,_0xa9dfe2[_0x9cb67a('0x25ae')])[_0x9cb67a('0x1537')](',');}break;case _0x9cb67a('0x1321'):{var _0xfbdbf9=_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x26d2')][_0x9cb67a('0x1745')](',');_0x22228d[_0x9cb67a('0x1fd6')]['accesskeyid']=_0xfbdbf9[0x0],_0x22228d['playback']['secretaccesskey']=_0xfbdbf9[0x1],_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x206a')]=_0xfbdbf9[0x2],_0x22228d[_0x9cb67a('0x1fd6')]['botname']=_0xfbdbf9[0x3],_0x22228d['playback']['welcomemessage']=_0xfbdbf9[_0x9cb67a('0xa19')](0x4,_0xfbdbf9[_0x9cb67a('0x25ae')])[_0x9cb67a('0x1537')](',');}break;case'autoreply':{var _0x45fd74=_0x22228d[_0x9cb67a('0x1fd6')]['appdata'][_0x9cb67a('0x1745')](',');_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x1ec4')]=isNaN(_0x45fd74[0x0])?_0x45fd74[0x0]:parseInt(_0x45fd74[0x0],0xa),_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x1bc6')]=_0x45fd74[_0x9cb67a('0xa19')](0x1,_0x45fd74[_0x9cb67a('0x25ae')])[_0x9cb67a('0x1537')](',');}break;case _0x9cb67a('0x27e8'):_0x22228d[_0x9cb67a('0x1fd6')]['text']=_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x26d2')];break;case _0x9cb67a('0x2aa'):_0x22228d['playback']['name']=_0x22228d[_0x9cb67a('0x1fd6')]['appdata'][_0x9cb67a('0x1745')]('=')[0x0],_0x22228d['playback'][_0x9cb67a('0x2')]=_0x22228d['playback'][_0x9cb67a('0x26d2')][_0x9cb67a('0x1745')]('=')[0x1];break;case _0x9cb67a('0x401'):_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x38b')]=_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x26d2')];break;default:{var _0x30561b=_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x26d2')]['split'](',');_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x26d2')]=_0x32d445()[_0x9cb67a('0x14b4')](_0x30561b[0x0])?_0x30561b[0x0]:isNaN(_0x30561b[0x0])?_0x30561b[0x0]:parseInt(_0x30561b[0x0],0xa),_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x2116')]=_0x32d445()[_0x9cb67a('0x14b4')](_0x30561b[0x1])?_0x30561b[0x1]:isNaN(_0x30561b[0x1])?_0x30561b[0x1]:parseInt(_0x30561b[0x1],0xa);}break;}else{}_0x22228d['playback'][_0x9cb67a('0x62e')]&&_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x62e')]['toLowerCase']()===_0x9cb67a('0x1fdf')&&_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0xf44')][_0x9cb67a('0x20dd')]()===_0x9cb67a('0x1d1b')&&(_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x2580')]=_0x22228d['playback'][_0x9cb67a('0x1ef5')]?_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x1ef5')]['split']('$')[0x0]:undefined,_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0x1b6f')]=_0x22228d['playback'][_0x9cb67a('0xfca')]?_0x9cb67a('0xd41')+_0x22228d[_0x9cb67a('0x1fd6')][_0x9cb67a('0xfca')]:undefined);_0x22228d[_0x9cb67a('0xf4a')]=_0xcc3de6,_0x22228d[_0x9cb67a('0x2584')]=_0x531d23,_0x267712['hasRole'](_0x9cb67a('0xd14'))?_0x18a837[_0x9cb67a('0x392')][_0x9cb67a('0x22d5')]({'fields':'id,name,save_name','sort':'name','nolimit':_0x9cb67a('0x2206')})[_0x9cb67a('0xe59')][_0x9cb67a('0xe19')](function(_0x5b1faa){var _0x3ed6d1=_0x9cb67a;_0x22228d[_0x3ed6d1('0x219b')]=_0x5b1faa[_0x3ed6d1('0x16a7')]||[];})[_0x9cb67a('0x223b')](function(_0x566b9b){var _0x528205=_0x9cb67a;_0x4d735b[_0x528205('0x8c8')]({'title':_0x566b9b['status']?_0x528205('0x27f2')+_0x566b9b[_0x528205('0x2833')]+_0x528205('0x1b7c')+_0x566b9b[_0x528205('0x1fd7')]:_0x528205('0x13c9'),'msg':_0x566b9b['data']?JSON[_0x528205('0x3ad')](_0x566b9b[_0x528205('0x11d0')]):_0x566b9b[_0x528205('0x94f')]()});}):_0x18a837['sound'][_0x9cb67a('0x22d5')]({'fields':'id,name,save_name','sort':_0x9cb67a('0x2623'),'nolimit':_0x9cb67a('0x2206')})[_0x9cb67a('0xe59')]['then'](function(_0x30f06b){var _0x1046bd=_0x9cb67a;_0x22228d[_0x1046bd('0x219b')]=_0x30f06b['rows']||[];})['then'](function(){var _0x42fa91=_0x9cb67a;return _0x18a837[_0x42fa91('0xb59')]['get']({'userProfileId':_0x22228d[_0x42fa91('0x15a5')][_0x42fa91('0x1d04')],'sectionId':0x3ef})[_0x42fa91('0xe59')];})['then'](function(_0x119ea8){var _0x2e78ba=_0x9cb67a,_0x1ee771=_0x119ea8&&_0x119ea8[_0x2e78ba('0x16a7')]?_0x119ea8[_0x2e78ba('0x16a7')][0x0]:null;if(!_0x1ee771){var _0x4048ca=[],_0x116c09=null;_0x22228d['playback']&&(_0x116c09=_0x32d445()['find'](_0x22228d['sounds'],{'save_name':_0x22228d[_0x2e78ba('0x1fd6')][_0x2e78ba('0x26d2')]}));for(var _0x3575c7=0x0;_0x3575c7<_0x22228d['sounds'][_0x2e78ba('0x25ae')];_0x3575c7++){_0x116c09&&_0x22228d['sounds'][_0x3575c7]['id']===_0x116c09['id']&&(_0x22228d[_0x2e78ba('0x219b')][_0x3575c7][_0x2e78ba('0x1e9d')]=![],_0x4048ca[_0x2e78ba('0xb76')](_0x22228d['sounds'][_0x3575c7]));}_0x22228d['sounds']=_0x4048ca;}else{if(!_0x1ee771[_0x2e78ba('0x11fd')])return _0x18a837[_0x2e78ba('0xd49')][_0x2e78ba('0x22d5')]({'sectionId':_0x1ee771['id']})[_0x2e78ba('0xe59')][_0x2e78ba('0xe19')](function(_0x63fb45){var _0x4f8f29=_0x2e78ba,_0x2f2800=_0x32d445()[_0x4f8f29('0x65a')](_0x63fb45[_0x4f8f29('0x16a7')],function(_0x23b217){var _0x3409c6=_0x4f8f29;return _0x32d445()[_0x3409c6('0xf15')](_0x22228d[_0x3409c6('0x219b')],{'id':_0x23b217[_0x3409c6('0x1104')]});}),_0xd1961c=null;_0x22228d[_0x4f8f29('0x1fd6')]&&(_0xd1961c=_0x32d445()[_0x4f8f29('0xf15')](_0x22228d[_0x4f8f29('0x219b')],{'save_name':_0x22228d['playback']['appdata']}));if(_0xd1961c&&!_0x32d445()[_0x4f8f29('0x201a')](_0x2f2800,['id',_0xd1961c['id']])){var _0x8aca83=_0x32d445()['find'](_0x22228d[_0x4f8f29('0x219b')],{'id':_0xd1961c['id']});_0x8aca83[_0x4f8f29('0x1e9d')]=![],_0x2f2800[_0x4f8f29('0xb76')](_0x8aca83);}_0x22228d[_0x4f8f29('0x219b')]=_0x2f2800;});}})[_0x9cb67a('0x223b')](function(_0x39b02e){var _0x63077a=_0x9cb67a;_0x4d735b[_0x63077a('0x8c8')]({'title':_0x39b02e[_0x63077a('0x2833')]?_0x63077a('0x27f2')+_0x39b02e[_0x63077a('0x2833')]+_0x63077a('0x1b7c')+_0x39b02e[_0x63077a('0x1fd7')]:_0x63077a('0x684'),'msg':_0x39b02e[_0x63077a('0x11d0')]?JSON[_0x63077a('0x3ad')](_0x39b02e[_0x63077a('0x11d0')]):_0x39b02e[_0x63077a('0x94f')]()});});function _0xcc3de6(){var _0x5004b3=_0x9cb67a;_0x22228d[_0x5004b3('0xcd2')]=[];var _0x204aeb=[];_0x22228d['playback']['type']&&_0x22228d['playback'][_0x5004b3('0x62e')][_0x5004b3('0x20dd')]()===_0x5004b3('0x1fdf')&&_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0xf44')]==='outboundDial'&&(_0x22228d[_0x5004b3('0x1fd6')]['phone']=_0x40252f['cutdigits']?(_0x22228d['playback'][_0x5004b3('0x2580')]||'')+_0x5004b3('0x5d8')+_0x40252f[_0x5004b3('0x27f6')]+'}':(_0x22228d['playback']['prefix']||'')+_0x5004b3('0x16b5'),_0x40252f['recordingFormat']!==_0x5004b3('0x23ca')?_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x2116')][_0x5004b3('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x2116')]+=_0x5004b3('0x767')):_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x2116')]=_0x22228d['playback']['options']['replace'](_0x5004b3('0x767'),''));if(_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0xf44')]&&_0x22228d['playback'][_0x5004b3('0xf44')]==='custom'){}else switch((_0x22228d[_0x5004b3('0x1fd6')]['app']||_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0xf44')])[_0x5004b3('0x20dd')]()){case _0x5004b3('0x2aa'):_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x26d2')]=_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x2623')]+'='+_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x2')];break;case'custom':break;default:_0x204aeb[0x0]=_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x26d2')],_0x204aeb[0x1]=_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x2116')],_0x22228d[_0x5004b3('0x1fd6')][_0x5004b3('0x26d2')]=_0x204aeb[_0x5004b3('0x1537')](',');}_0x531d23(_0x22228d['playback']);}function _0x531d23(_0x552063){var _0x3a91a1=_0x9cb67a;_0x2fff21[_0x3a91a1('0x11ed')](_0x552063);}}const _0x2be522=_0x546c99;_0x327690[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x327690(_0x44ae6c,_0x34c836,_0x15c599,_0x94f065,_0x2c483a,_0x16e9d6,_0xf980ca,_0x1d3b76){var _0x419a9c=_0xb635d2,_0x18302e=this;_0x18302e[_0x419a9c('0x15a5')]=_0xf980ca[_0x419a9c('0x1ef8')](),_0x18302e[_0x419a9c('0xcd2')]=[],_0x18302e[_0x419a9c('0x13e4')]=_0x419a9c('0x22ff')+(_0x94f065[_0x419a9c('0xf44')]||_0x94f065['app'])['toUpperCase'](),_0x18302e['queue']=angular[_0x419a9c('0x89')](_0x94f065),_0x18302e[_0x419a9c('0xb3d')]=_0x1d3b76,_0x18302e['hasModulePermissions']={};if(_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x26d2')])switch(_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0xf44')]?_0x18302e['queue']['appType'][_0x419a9c('0x20dd')]():_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0xf2b')]['toLowerCase']()){case'custom':break;case'dialogflow':{var _0x43280f=_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x26d2')]['split'](',');_0x18302e[_0x419a9c('0x26a8')]['key']=_0x43280f[0x0],_0x18302e['queue'][_0x419a9c('0x174b')]=_0x43280f[0x1],_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0xfcc')]=_0x43280f[_0x419a9c('0xa19')](0x2,_0x43280f['length'])['join'](',');}break;case'amazonlex':{var _0x5591cb=_0x18302e['queue']['appdata'][_0x419a9c('0x1745')](',');_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x22be')]=_0x5591cb[0x0],_0x18302e['queue']['secretaccesskey']=_0x5591cb[0x1],_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x206a')]=_0x5591cb[0x2],_0x18302e['queue'][_0x419a9c('0x191a')]=_0x5591cb[0x3],_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0xfcc')]=_0x5591cb[_0x419a9c('0xa19')](0x4,_0x5591cb[_0x419a9c('0x25ae')])[_0x419a9c('0x1537')](',');}break;case _0x419a9c('0x400'):{var _0x3bb841=_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x26d2')][_0x419a9c('0x1745')](',');_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x1ec4')]=isNaN(_0x3bb841[0x0])?_0x3bb841[0x0]:parseInt(_0x3bb841[0x0],0xa),_0x18302e['queue'][_0x419a9c('0x1bc6')]=_0x3bb841[_0x419a9c('0xa19')](0x1,_0x3bb841[_0x419a9c('0x25ae')])[_0x419a9c('0x1537')](',');}break;case _0x419a9c('0x27e8'):_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x1bc6')]=_0x18302e['queue']['appdata'];break;case'set':_0x18302e[_0x419a9c('0x26a8')]['name']=_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x26d2')][_0x419a9c('0x1745')]('=')[0x0],_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x2')]=_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x26d2')][_0x419a9c('0x1745')]('=')[0x1];break;case _0x419a9c('0x401'):_0x18302e['queue']['project']=_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x26d2')];break;default:{var _0x226a95=_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x26d2')][_0x419a9c('0x1745')](',');_0x18302e[_0x419a9c('0x26a8')]['queue']=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x0])?_0x226a95[0x0]:isNaN(_0x226a95[0x0])?_0x226a95[0x0]:parseInt(_0x226a95[0x0],0xa),_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x2116')]=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x1])?_0x226a95[0x1]:isNaN(_0x226a95[0x1])?_0x226a95[0x1]:parseInt(_0x226a95[0x1],0xa),_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x3ae')]=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x2])?_0x226a95[0x2]:isNaN(_0x226a95[0x2])?_0x226a95[0x2]:parseInt(_0x226a95[0x2],0xa),_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x392')]=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x3])?_0x226a95[0x3]:isNaN(_0x226a95[0x3])?_0x226a95[0x3]:parseInt(_0x226a95[0x3],0xa),_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x2058')]=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x4])?_0x226a95[0x4]:isNaN(_0x226a95[0x4])?_0x226a95[0x4]:parseInt(_0x226a95[0x4],0xa),_0x18302e[_0x419a9c('0x26a8')]['agi']=_0x32d445()['isEmpty'](_0x226a95[0x5])?_0x226a95[0x5]:isNaN(_0x226a95[0x5])?_0x226a95[0x5]:parseInt(_0x226a95[0x5],0xa),_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0xba1')]=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x6])?_0x226a95[0x6]:isNaN(_0x226a95[0x6])?_0x226a95[0x6]:parseInt(_0x226a95[0x6],0xa),_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x1874')]=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x7])?_0x226a95[0x7]:isNaN(_0x226a95[0x7])?_0x226a95[0x7]:parseInt(_0x226a95[0x7],0xa),_0x18302e['queue']['rule']=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x8])?_0x226a95[0x8]:isNaN(_0x226a95[0x8])?_0x226a95[0x8]:parseInt(_0x226a95[0x8],0xa),_0x18302e['queue']['position']=_0x32d445()[_0x419a9c('0x14b4')](_0x226a95[0x9])?_0x226a95[0x9]:isNaN(_0x226a95[0x9])?_0x226a95[0x9]:parseInt(_0x226a95[0x9],0xa);}break;}else{}_0x18302e['queue'][_0x419a9c('0x62e')]&&_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x62e')]['toLowerCase']()===_0x419a9c('0x1fdf')&&_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0xf44')][_0x419a9c('0x20dd')]()==='outbounddial'&&(_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x2580')]=_0x18302e[_0x419a9c('0x26a8')]['phone']?_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x1ef5')][_0x419a9c('0x1745')]('$')[0x0]:undefined,_0x18302e[_0x419a9c('0x26a8')][_0x419a9c('0x1b6f')]=_0x18302e['queue']['callerID']?_0x419a9c('0xd41')+_0x18302e[_0x419a9c('0x26a8')]['callerID']:undefined);_0x18302e['saveInternalRouteApp']=_0x491973,_0x18302e[_0x419a9c('0x2584')]=_0x1b50d5,_0xf980ca[_0x419a9c('0x179e')]('admin')?_0x16e9d6[_0x419a9c('0x392')][_0x419a9c('0x22d5')]({'fields':'id,name,save_name','sort':_0x419a9c('0x2623'),'nolimit':'true'})[_0x419a9c('0xe59')][_0x419a9c('0xe19')](function(_0x58e00d){var _0x38c6f6=_0x419a9c;_0x18302e[_0x38c6f6('0x219b')]=_0x58e00d[_0x38c6f6('0x16a7')]||[];})[_0x419a9c('0x223b')](function(_0x54e7bc){var _0x75b63=_0x419a9c;_0x15c599[_0x75b63('0x8c8')]({'title':_0x54e7bc[_0x75b63('0x2833')]?_0x75b63('0x27f2')+_0x54e7bc['status']+_0x75b63('0x1b7c')+_0x54e7bc[_0x75b63('0x1fd7')]:_0x75b63('0x13c9'),'msg':_0x54e7bc[_0x75b63('0x11d0')]?JSON[_0x75b63('0x3ad')](_0x54e7bc[_0x75b63('0x11d0')]):_0x54e7bc[_0x75b63('0x94f')]()});}):_0x16e9d6[_0x419a9c('0x392')][_0x419a9c('0x22d5')]({'fields':_0x419a9c('0x22db'),'sort':_0x419a9c('0x2623'),'nolimit':_0x419a9c('0x2206')})['$promise'][_0x419a9c('0xe19')](function(_0x223ae7){var _0x47cbae=_0x419a9c;_0x18302e[_0x47cbae('0x219b')]=_0x223ae7[_0x47cbae('0x16a7')]||[];})[_0x419a9c('0xe19')](function(){var _0x2865a4=_0x419a9c;return _0x16e9d6[_0x2865a4('0xb59')]['get']({'userProfileId':_0x18302e['currentUser'][_0x2865a4('0x1d04')],'sectionId':0x3ef})[_0x2865a4('0xe59')];})[_0x419a9c('0xe19')](function(_0x8abf7d){var _0x1747c1=_0x419a9c,_0x536a79=_0x8abf7d&&_0x8abf7d[_0x1747c1('0x16a7')]?_0x8abf7d[_0x1747c1('0x16a7')][0x0]:null;if(!_0x536a79){var _0x380947=[],_0x6a0f8f=null;_0x18302e['queue']&&(_0x6a0f8f=_0x32d445()[_0x1747c1('0xf15')](_0x18302e[_0x1747c1('0x219b')],{'save_name':_0x18302e[_0x1747c1('0x26a8')]['sound']}));for(var _0x32ec70=0x0;_0x32ec70<_0x18302e[_0x1747c1('0x219b')][_0x1747c1('0x25ae')];_0x32ec70++){_0x6a0f8f&&_0x18302e[_0x1747c1('0x219b')][_0x32ec70]['id']===_0x6a0f8f['id']&&(_0x18302e[_0x1747c1('0x219b')][_0x32ec70]['canSelect']=![],_0x380947[_0x1747c1('0xb76')](_0x18302e['sounds'][_0x32ec70]));}_0x18302e[_0x1747c1('0x219b')]=_0x380947;}else{if(!_0x536a79[_0x1747c1('0x11fd')])return _0x16e9d6[_0x1747c1('0xd49')]['get']({'sectionId':_0x536a79['id']})[_0x1747c1('0xe59')][_0x1747c1('0xe19')](function(_0x2d6488){var _0x3e89ea=_0x1747c1,_0x1874b1=_0x32d445()[_0x3e89ea('0x65a')](_0x2d6488[_0x3e89ea('0x16a7')],function(_0x3173f7){var _0x480914=_0x3e89ea;return _0x32d445()[_0x480914('0xf15')](_0x18302e[_0x480914('0x219b')],{'id':_0x3173f7[_0x480914('0x1104')]});}),_0x5778d4=null;_0x18302e[_0x3e89ea('0x26a8')]&&(_0x5778d4=_0x32d445()[_0x3e89ea('0xf15')](_0x18302e['sounds'],{'save_name':_0x18302e[_0x3e89ea('0x26a8')][_0x3e89ea('0x392')]}));if(_0x5778d4&&!_0x32d445()[_0x3e89ea('0x201a')](_0x1874b1,['id',_0x5778d4['id']])){var _0x2992cb=_0x32d445()[_0x3e89ea('0xf15')](_0x18302e[_0x3e89ea('0x219b')],{'id':_0x5778d4['id']});_0x2992cb[_0x3e89ea('0x1e9d')]=![],_0x1874b1[_0x3e89ea('0xb76')](_0x2992cb);}_0x18302e[_0x3e89ea('0x219b')]=_0x1874b1;});}})[_0x419a9c('0x223b')](function(_0x15f62f){var _0x22a341=_0x419a9c;_0x15c599[_0x22a341('0x8c8')]({'title':_0x15f62f[_0x22a341('0x2833')]?_0x22a341('0x27f2')+_0x15f62f[_0x22a341('0x2833')]+'\x20-\x20'+_0x15f62f[_0x22a341('0x1fd7')]:_0x22a341('0x684'),'msg':_0x15f62f['data']?JSON[_0x22a341('0x3ad')](_0x15f62f[_0x22a341('0x11d0')]):_0x15f62f['toString']()});}),_0xf980ca[_0x419a9c('0x179e')]('admin')?_0x16e9d6['voiceQueue'][_0x419a9c('0x22d5')]({'type':_0x419a9c('0x1a7a'),'fields':'id,name,type','sort':'name','nolimit':_0x419a9c('0x2206')})[_0x419a9c('0xe59')]['then'](function(_0x2bcaf9){var _0x26ae7f=_0x419a9c;_0x18302e[_0x26ae7f('0x671')]=_0x2bcaf9['rows']||[];})[_0x419a9c('0x223b')](function(_0x35eb1a){var _0x38c85e=_0x419a9c;_0x15c599[_0x38c85e('0x8c8')]({'title':_0x35eb1a[_0x38c85e('0x2833')]?_0x38c85e('0x27f2')+_0x35eb1a[_0x38c85e('0x2833')]+_0x38c85e('0x1b7c')+_0x35eb1a[_0x38c85e('0x1fd7')]:_0x38c85e('0x19e6'),'msg':_0x35eb1a['data']?JSON['stringify'](_0x35eb1a[_0x38c85e('0x11d0')]):_0x35eb1a[_0x38c85e('0x94f')]()});}):_0x16e9d6[_0x419a9c('0x25d5')][_0x419a9c('0x22d5')]({'type':_0x419a9c('0x1a7a'),'fields':_0x419a9c('0x1555'),'sort':'name','nolimit':_0x419a9c('0x2206')})[_0x419a9c('0xe59')][_0x419a9c('0xe19')](function(_0x5336c1){var _0x126796=_0x419a9c;_0x18302e['queues']=_0x5336c1[_0x126796('0x16a7')]||[];})[_0x419a9c('0xe19')](function(){var _0x2aec08=_0x419a9c;return _0x16e9d6[_0x2aec08('0xb59')]['get']({'userProfileId':_0x18302e[_0x2aec08('0x15a5')]['userProfileId'],'sectionId':0x191})[_0x2aec08('0xe59')];})[_0x419a9c('0xe19')](function(_0x3514b0){var _0x403615=_0x419a9c,_0x139af4=_0x3514b0&&_0x3514b0['rows']?_0x3514b0['rows'][0x0]:null;if(!_0x139af4){var _0x964edb=[],_0x25c24c=null;_0x18302e[_0x403615('0x26a8')]&&(_0x25c24c=_0x32d445()[_0x403615('0xf15')](_0x18302e[_0x403615('0x671')],{'name':_0x18302e[_0x403615('0x26a8')][_0x403615('0x26a8')]}));for(var _0x1e9af5=0x0;_0x1e9af5<_0x18302e[_0x403615('0x671')]['length'];_0x1e9af5++){_0x25c24c&&_0x18302e['queues'][_0x1e9af5]['id']===_0x25c24c['id']&&(_0x18302e['queues'][_0x1e9af5][_0x403615('0x1e9d')]=![],_0x964edb[_0x403615('0xb76')](_0x18302e[_0x403615('0x671')][_0x1e9af5]));}_0x18302e[_0x403615('0x671')]=_0x964edb;}else{if(!_0x139af4[_0x403615('0x11fd')])return _0x16e9d6[_0x403615('0xd49')]['get']({'sectionId':_0x139af4['id']})['$promise'][_0x403615('0xe19')](function(_0x2baf8e){var _0x1d106e=_0x403615,_0xaddb60=_0x32d445()[_0x1d106e('0x65a')](_0x2baf8e['rows'],function(_0x1fc5fb){var _0x24d12b=_0x1d106e;return _0x32d445()[_0x24d12b('0xf15')](_0x18302e[_0x24d12b('0x671')],{'id':_0x1fc5fb[_0x24d12b('0x1104')]});}),_0x290514=null;_0x18302e['queue']&&(_0x290514=_0x32d445()[_0x1d106e('0xf15')](_0x18302e[_0x1d106e('0x671')],{'name':_0x18302e[_0x1d106e('0x26a8')][_0x1d106e('0x26a8')]}));if(_0x290514&&!_0x32d445()[_0x1d106e('0x201a')](_0xaddb60,['id',_0x290514['id']])){var _0x124002=_0x32d445()[_0x1d106e('0xf15')](_0x18302e[_0x1d106e('0x671')],{'id':_0x290514['id']});_0x124002['canSelect']=![],_0xaddb60[_0x1d106e('0xb76')](_0x124002);}_0x18302e[_0x1d106e('0x671')]=_0xaddb60;});}})[_0x419a9c('0x223b')](function(_0x2e336e){var _0xe33994=_0x419a9c;_0x15c599['error']({'title':_0x2e336e[_0xe33994('0x2833')]?_0xe33994('0x27f2')+_0x2e336e['status']+_0xe33994('0x1b7c')+_0x2e336e['statusText']:_0xe33994('0x1716'),'msg':_0x2e336e[_0xe33994('0x11d0')]?JSON[_0xe33994('0x3ad')](_0x2e336e['data']):_0x2e336e[_0xe33994('0x94f')]()});});function _0x491973(){var _0xe6fcdc=_0x419a9c;_0x18302e[_0xe6fcdc('0xcd2')]=[];var _0x14368e=[];_0x18302e['queue']['type']&&_0x18302e['queue']['type'][_0xe6fcdc('0x20dd')]()==='outbound'&&_0x18302e['queue'][_0xe6fcdc('0xf44')]==='outboundDial'&&(_0x18302e[_0xe6fcdc('0x26a8')]['phone']=_0x2c483a['cutdigits']?(_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x2580')]||'')+'${EXTEN:'+_0x2c483a[_0xe6fcdc('0x27f6')]+'}':(_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x2580')]||'')+'${EXTEN}',_0x2c483a['recordingFormat']!=='none'?_0x18302e['queue'][_0xe6fcdc('0x2116')][_0xe6fcdc('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x2116')]+='U(xcally-mixmonitor-context)'):_0x18302e['queue'][_0xe6fcdc('0x2116')]=_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x2116')][_0xe6fcdc('0x1b42')](_0xe6fcdc('0x767'),''));if(_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0xf44')]&&_0x18302e['queue']['appType']==='custom'){}else switch((_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0xf2b')]||_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0xf44')])[_0xe6fcdc('0x20dd')]()){case _0xe6fcdc('0x2aa'):_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x26d2')]=_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x2623')]+'='+_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x2')];break;case _0xe6fcdc('0x261d'):break;default:_0x14368e[0x0]=_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x26a8')],_0x14368e[0x1]=_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x2116')],_0x14368e[0x2]=_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x3ae')],_0x14368e[0x3]=_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x392')],_0x14368e[0x4]=_0x18302e[_0xe6fcdc('0x26a8')]['timeout'],_0x14368e[0x5]=_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x401')],_0x14368e[0x6]=_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0xba1')],_0x14368e[0x7]=_0x18302e['queue'][_0xe6fcdc('0x1874')],_0x14368e[0x8]=_0x18302e[_0xe6fcdc('0x26a8')]['rule'],_0x14368e[0x9]=_0x18302e[_0xe6fcdc('0x26a8')]['position'],_0x18302e[_0xe6fcdc('0x26a8')][_0xe6fcdc('0x26d2')]=_0x14368e[_0xe6fcdc('0x1537')](',');}_0x1b50d5(_0x18302e[_0xe6fcdc('0x26a8')]);}function _0x1b50d5(_0x566c88){_0x44ae6c['hide'](_0x566c88);}}const _0xeb0b44=_0x327690;_0x1fd275[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x1fd275(_0x1e8e01,_0x4bba5f,_0x4a8733,_0x379de9,_0x86a58,_0x702fa7,_0x150d9f,_0xcb8b3c){var _0x533e18=_0xb635d2,_0x22fd9d=this;_0x22fd9d[_0x533e18('0x15a5')]=_0x150d9f[_0x533e18('0x1ef8')](),_0x22fd9d[_0x533e18('0xcd2')]=[],_0x22fd9d[_0x533e18('0x13e4')]=_0x533e18('0x22ff')+(_0x379de9[_0x533e18('0xf44')]||_0x379de9[_0x533e18('0xf2b')])[_0x533e18('0x25f7')](),_0x22fd9d[_0x533e18('0x5fc')]=angular[_0x533e18('0x89')](_0x379de9),_0x22fd9d['crudPermissions']=_0xcb8b3c,_0x22fd9d[_0x533e18('0x1ccb')]={};if(_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x26d2')])switch(_0x22fd9d['ringgroup']['appType']?_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0xf44')][_0x533e18('0x20dd')]():_0x22fd9d[_0x533e18('0x5fc')]['app'][_0x533e18('0x20dd')]()){case'custom':break;case _0x533e18('0xc11'):{var _0x75eaec=_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x26d2')][_0x533e18('0x1745')](',');_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x6e4')]=_0x75eaec[0x0],_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x174b')]=_0x75eaec[0x1],_0x22fd9d[_0x533e18('0x5fc')]['welcomemessage']=_0x75eaec[_0x533e18('0xa19')](0x2,_0x75eaec['length'])[_0x533e18('0x1537')](',');}break;case _0x533e18('0x1321'):{var _0x4024a7=_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x26d2')][_0x533e18('0x1745')](',');_0x22fd9d[_0x533e18('0x5fc')]['accesskeyid']=_0x4024a7[0x0],_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x700')]=_0x4024a7[0x1],_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x206a')]=_0x4024a7[0x2],_0x22fd9d[_0x533e18('0x5fc')]['botname']=_0x4024a7[0x3],_0x22fd9d[_0x533e18('0x5fc')]['welcomemessage']=_0x4024a7['slice'](0x4,_0x4024a7[_0x533e18('0x25ae')])['join'](',');}break;case _0x533e18('0x400'):{var _0x312569=_0x22fd9d['ringgroup']['appdata'][_0x533e18('0x1745')](',');_0x22fd9d[_0x533e18('0x5fc')]['times']=isNaN(_0x312569[0x0])?_0x312569[0x0]:parseInt(_0x312569[0x0],0xa),_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x1bc6')]=_0x312569[_0x533e18('0xa19')](0x1,_0x312569[_0x533e18('0x25ae')])['join'](',');}break;case _0x533e18('0x27e8'):_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x1bc6')]=_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x26d2')];break;case'set':_0x22fd9d['ringgroup']['name']=_0x22fd9d['ringgroup']['appdata'][_0x533e18('0x1745')]('=')[0x0],_0x22fd9d[_0x533e18('0x5fc')]['value']=_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x26d2')][_0x533e18('0x1745')]('=')[0x1];break;case _0x533e18('0x401'):_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x38b')]=_0x22fd9d['ringgroup']['appdata'];break;default:{var _0xa8c3d0=_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x26d2')]['split'](',');_0x22fd9d['ringgroup'][_0x533e18('0x12a0')]=_0xa8c3d0[0x0][_0x533e18('0x1745')]('&'),_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x2058')]=_0x32d445()['isEmpty'](_0xa8c3d0[0x1])?_0xa8c3d0[0x1]:isNaN(_0xa8c3d0[0x1])?_0xa8c3d0[0x1]:parseInt(_0xa8c3d0[0x1],0xa),_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x2116')]=_0x32d445()['isEmpty'](_0xa8c3d0[0x2])?_0xa8c3d0[0x2]:isNaN(_0xa8c3d0[0x2])?_0xa8c3d0[0x2]:parseInt(_0xa8c3d0[0x2],0xa),_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x2647')]=_0x32d445()[_0x533e18('0x14b4')](_0xa8c3d0[0x3])?_0xa8c3d0[0x3]:isNaN(_0xa8c3d0[0x3])?_0xa8c3d0[0x3]:parseInt(_0xa8c3d0[0x3],0xa);}break;}else{}_0x22fd9d['ringgroup'][_0x533e18('0x62e')]&&_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x62e')][_0x533e18('0x20dd')]()==='outbound'&&_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0xf44')][_0x533e18('0x20dd')]()===_0x533e18('0x1d1b')&&(_0x22fd9d[_0x533e18('0x5fc')]['prefix']=_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x1ef5')]?_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x1ef5')]['split']('$')[0x0]:undefined,_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0x1b6f')]=_0x22fd9d[_0x533e18('0x5fc')][_0x533e18('0xfca')]?_0x533e18('0xd41')+_0x22fd9d['ringgroup']['callerID']:undefined);_0x22fd9d[_0x533e18('0xf4a')]=_0xff9268,_0x22fd9d[_0x533e18('0x2584')]=_0x42ab56;var _0x4d7f92=[{'id':0xca,'role':_0x533e18('0x108')},{'id':0xcb,'role':_0x533e18('0x1e7c')}],_0x52c5b6=null;_0x150d9f[_0x533e18('0x179e')]('admin')?_0x702fa7[_0x533e18('0x10c6')][_0x533e18('0x22d5')]({'fields':'id,name,role','sort':_0x533e18('0x2623'),'nolimit':_0x533e18('0x2206')})['$promise'][_0x533e18('0xe19')](function(_0x249196){var _0x2bd7f5=_0x533e18;_0x22fd9d[_0x2bd7f5('0x2526')]=_0x249196['rows']||[];})[_0x533e18('0x223b')](function(_0x4e8ac5){var _0x1e01ab=_0x533e18;_0x4a8733[_0x1e01ab('0x8c8')]({'title':_0x4e8ac5[_0x1e01ab('0x2833')]?_0x1e01ab('0x27f2')+_0x4e8ac5[_0x1e01ab('0x2833')]+_0x1e01ab('0x1b7c')+_0x4e8ac5['statusText']:_0x1e01ab('0x4f3'),'msg':_0x4e8ac5['data']?JSON[_0x1e01ab('0x3ad')](_0x4e8ac5['data']):_0x4e8ac5[_0x1e01ab('0x94f')]()});}):_0x702fa7[_0x533e18('0x10c6')][_0x533e18('0x22d5')]({'fields':'id,name,role','sort':'name','nolimit':_0x533e18('0x2206')})[_0x533e18('0xe59')]['then'](function(_0x4c8f8a){var _0x1db0ff=_0x533e18;_0x52c5b6=_0x4c8f8a[_0x1db0ff('0x16a7')]||[];})['then'](function(){var _0x36a198=_0x533e18,_0x2b7cc7=[];for(var _0xe75e79=0x0;_0xe75e79<_0x4d7f92[_0x36a198('0x25ae')];_0xe75e79++){_0x2b7cc7['push'](_0x702fa7[_0x36a198('0xb59')][_0x36a198('0x22d5')]({'userProfileId':_0x22fd9d['currentUser']['userProfileId'],'sectionId':_0x4d7f92[_0xe75e79]['id']})[_0x36a198('0xe59')]);}return _0x4bba5f['all'](_0x2b7cc7);})[_0x533e18('0xe19')](function(_0x2aaf84){var _0x3bb044=_0x533e18,_0x3be7bb=_0x32d445()[_0x3bb044('0x65a')](_0x2aaf84,function(_0x14a289){var _0x38643d=_0x3bb044;return _0x14a289&&_0x14a289['rows']?_0x14a289[_0x38643d('0x16a7')][0x0]:null;}),_0x1364f8=[],_0xdf0793=function _0x50ba6f(_0x3cd58f){var _0x47308f=_0x3bb044,_0x288666=_0x32d445()[_0x47308f('0xf15')](_0x3be7bb,[_0x47308f('0x964'),_0x4d7f92[_0x3cd58f]['id']]);if(_0x288666){if(!_0x288666[_0x47308f('0x11fd')])_0x1364f8[_0x47308f('0xb76')](_0x702fa7[_0x47308f('0xd49')][_0x47308f('0x22d5')]({'sectionId':_0x288666['id']})['$promise']);else{var _0x5a038a=[];_0x52c5b6[_0x47308f('0x1d7e')](function(_0x263190){var _0x384994=_0x47308f;_0x263190[_0x384994('0xcd9')]===_0x4d7f92[_0x3cd58f]['role']&&_0x5a038a[_0x384994('0xb76')](_0x263190);}),_0x1364f8[_0x47308f('0xb76')]({'rows':_0x5a038a,'count':_0x5a038a[_0x47308f('0x25ae')]});}}};for(var _0xf7119f=0x0;_0xf7119f<_0x4d7f92['length'];_0xf7119f++){_0xdf0793(_0xf7119f);}return _0x4bba5f[_0x3bb044('0xf0e')](_0x1364f8);})[_0x533e18('0xe19')](function(_0x237e78){var _0x2077ad=_0x533e18,_0x24bc1a=[],_0x232c40=null;_0x22fd9d[_0x2077ad('0x5fc')]&&(_0x232c40=_0x32d445()[_0x2077ad('0xf15')](_0x52c5b6,{'name':_0x22fd9d['ringgroup']['multipleUsers']}));for(var _0x3b7041=0x0;_0x3b7041<_0x237e78[_0x2077ad('0x25ae')];_0x3b7041++){var _0x20a3fa=_0x237e78[_0x3b7041][_0x2077ad('0x16a7')]||[];_0x20a3fa[_0x2077ad('0x1d7e')](function(_0x2a7f86){var _0x389fc7=_0x2077ad;_0x24bc1a[_0x389fc7('0xb76')](_0x2a7f86);});}_0x232c40&&!_0x32d445()[_0x2077ad('0x201a')](_0x24bc1a,[_0x2077ad('0x1104'),_0x232c40['id']])&&_0x52c5b6['forEach'](function(_0x5573cf){var _0x7e8819=_0x2077ad;_0x5573cf['id']===_0x232c40['id']&&(_0x5573cf['canSelect']=![],_0x24bc1a[_0x7e8819('0xb76')](_0x5573cf));}),_0x22fd9d[_0x2077ad('0x2526')]=_0x24bc1a;})[_0x533e18('0x223b')](function(_0x32cf52){var _0x566802=_0x533e18;_0x4a8733[_0x566802('0x8c8')]({'title':_0x32cf52[_0x566802('0x2833')]?'API:'+_0x32cf52['status']+_0x566802('0x1b7c')+_0x32cf52[_0x566802('0x1fd7')]:_0x566802('0x1662'),'msg':_0x32cf52[_0x566802('0x11d0')]?JSON[_0x566802('0x3ad')](_0x32cf52[_0x566802('0x11d0')]):_0x32cf52['toString']()});});function _0xff9268(){var _0x48bd09=_0x533e18;_0x22fd9d[_0x48bd09('0xcd2')]=[];var _0x350ef7=[];_0x22fd9d[_0x48bd09('0x5fc')]['type']&&_0x22fd9d[_0x48bd09('0x5fc')]['type'][_0x48bd09('0x20dd')]()==='outbound'&&_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0xf44')]==='outboundDial'&&(_0x22fd9d['ringgroup'][_0x48bd09('0x1ef5')]=_0x86a58['cutdigits']?(_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x2580')]||'')+_0x48bd09('0x5d8')+_0x86a58['cutdigits']+'}':(_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x2580')]||'')+'${EXTEN}',_0x86a58[_0x48bd09('0x150c')]!==_0x48bd09('0x23ca')?_0x22fd9d['ringgroup'][_0x48bd09('0x2116')][_0x48bd09('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x22fd9d[_0x48bd09('0x5fc')]['options']+=_0x48bd09('0x767')):_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x2116')]=_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x2116')][_0x48bd09('0x1b42')](_0x48bd09('0x767'),''));if(_0x22fd9d[_0x48bd09('0x5fc')]['appType']&&_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0xf44')]===_0x48bd09('0x261d')){}else switch((_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0xf2b')]||_0x22fd9d['ringgroup'][_0x48bd09('0xf44')])[_0x48bd09('0x20dd')]()){case _0x48bd09('0x2aa'):_0x22fd9d['ringgroup'][_0x48bd09('0x26d2')]=_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x2623')]+'='+_0x22fd9d[_0x48bd09('0x5fc')]['value'];break;case _0x48bd09('0x261d'):break;default:_0x350ef7[0x0]=_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x12a0')][_0x48bd09('0x1537')]('&'),_0x350ef7[0x1]=_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x2058')],_0x350ef7[0x2]=_0x22fd9d[_0x48bd09('0x5fc')]['options'],_0x350ef7[0x3]=_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x2647')],_0x22fd9d[_0x48bd09('0x5fc')][_0x48bd09('0x26d2')]=_0x350ef7[_0x48bd09('0x1537')](',');}_0x42ab56(_0x22fd9d[_0x48bd09('0x5fc')]);}function _0x42ab56(_0x3404e8){var _0x2a9535=_0x533e18;_0x1e8e01[_0x2a9535('0x11ed')](_0x3404e8);}}const _0x1072c6=_0x1fd275;_0x471a33[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),'api','Auth',_0xb635d2('0xb3d')];function _0x471a33(_0x118fae,_0x3b31f2,_0x2a7f10,_0x58de00,_0x4234a0,_0x2e282c,_0x5c5939,_0x379a40){var _0x1cc1e8=_0xb635d2,_0x70802=this;_0x70802[_0x1cc1e8('0x15a5')]=_0x5c5939['getCurrentUser'](),_0x70802['errors']=[],_0x70802[_0x1cc1e8('0x13e4')]=_0x1cc1e8('0x22ff')+(_0x58de00['appType']||_0x58de00[_0x1cc1e8('0xf2b')])[_0x1cc1e8('0x25f7')](),_0x70802['set']=angular[_0x1cc1e8('0x89')](_0x58de00),_0x70802['crudPermissions']=_0x379a40,_0x70802['hasModulePermissions']={};if(_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')])switch(_0x70802['set'][_0x1cc1e8('0xf44')]?_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0xf44')][_0x1cc1e8('0x20dd')]():_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0xf2b')][_0x1cc1e8('0x20dd')]()){case'custom':break;case _0x1cc1e8('0xc11'):{var _0x4b266c=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')][_0x1cc1e8('0x1745')](',');_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x6e4')]=_0x4b266c[0x0],_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x174b')]=_0x4b266c[0x1],_0x70802['set'][_0x1cc1e8('0xfcc')]=_0x4b266c[_0x1cc1e8('0xa19')](0x2,_0x4b266c[_0x1cc1e8('0x25ae')])[_0x1cc1e8('0x1537')](',');}break;case _0x1cc1e8('0x1321'):{var _0x5d2428=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')][_0x1cc1e8('0x1745')](',');_0x70802[_0x1cc1e8('0x2aa')]['accesskeyid']=_0x5d2428[0x0],_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x700')]=_0x5d2428[0x1],_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x206a')]=_0x5d2428[0x2],_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x191a')]=_0x5d2428[0x3],_0x70802['set'][_0x1cc1e8('0xfcc')]=_0x5d2428[_0x1cc1e8('0xa19')](0x4,_0x5d2428[_0x1cc1e8('0x25ae')])['join'](',');}break;case _0x1cc1e8('0x400'):{var _0x406baa=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')][_0x1cc1e8('0x1745')](',');_0x70802[_0x1cc1e8('0x2aa')]['times']=isNaN(_0x406baa[0x0])?_0x406baa[0x0]:parseInt(_0x406baa[0x0],0xa),_0x70802['set'][_0x1cc1e8('0x1bc6')]=_0x406baa[_0x1cc1e8('0xa19')](0x1,_0x406baa[_0x1cc1e8('0x25ae')])['join'](',');}break;case _0x1cc1e8('0x27e8'):_0x70802['set'][_0x1cc1e8('0x1bc6')]=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')];break;case _0x1cc1e8('0x2aa'):_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x2623')]=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')][_0x1cc1e8('0x1745')]('=')[0x0],_0x70802[_0x1cc1e8('0x2aa')]['value']=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')][_0x1cc1e8('0x1745')]('=')[0x1];break;case _0x1cc1e8('0x401'):_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x38b')]=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')];break;default:{var _0x26ed7a=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x26d2')][_0x1cc1e8('0x1745')]('=');_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x2623')]=_0x32d445()[_0x1cc1e8('0x14b4')](_0x26ed7a[0x0])?_0x26ed7a[0x0]:isNaN(_0x26ed7a[0x0])?_0x26ed7a[0x0]:parseInt(_0x26ed7a[0x0],0xa),_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x2')]=_0x32d445()[_0x1cc1e8('0x14b4')](_0x26ed7a[0x1])?_0x26ed7a[0x1]:isNaN(_0x26ed7a[0x1])?_0x26ed7a[0x1]:parseInt(_0x26ed7a[0x1],0xa);}break;}else{}_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x62e')]&&_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x62e')][_0x1cc1e8('0x20dd')]()===_0x1cc1e8('0x1fdf')&&_0x70802['set'][_0x1cc1e8('0xf44')][_0x1cc1e8('0x20dd')]()===_0x1cc1e8('0x1d1b')&&(_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x2580')]=_0x70802['set'][_0x1cc1e8('0x1ef5')]?_0x70802['set'][_0x1cc1e8('0x1ef5')]['split']('$')[0x0]:undefined,_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0x1b6f')]=_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0xfca')]?_0x1cc1e8('0xd41')+_0x70802[_0x1cc1e8('0x2aa')][_0x1cc1e8('0xfca')]:undefined);_0x70802[_0x1cc1e8('0xf4a')]=_0x3ea7a4,_0x70802[_0x1cc1e8('0x2584')]=_0x5cf787,_0x5c5939[_0x1cc1e8('0x179e')](_0x1cc1e8('0xd14'))?_0x2e282c[_0x1cc1e8('0x19a5')][_0x1cc1e8('0x22d5')]({'fields':'id,name','sort':'name','nolimit':'true'})[_0x1cc1e8('0xe59')][_0x1cc1e8('0xe19')](function(_0x1702f0){var _0x2e7a9e=_0x1cc1e8;_0x70802['variables']=_0x1702f0[_0x2e7a9e('0x16a7')]||[];})[_0x1cc1e8('0x223b')](function(_0x394211){var _0x26c16b=_0x1cc1e8;_0x2a7f10[_0x26c16b('0x8c8')]({'title':_0x394211[_0x26c16b('0x2833')]?_0x26c16b('0x27f2')+_0x394211[_0x26c16b('0x2833')]+_0x26c16b('0x1b7c')+_0x394211[_0x26c16b('0x1fd7')]:_0x26c16b('0x282'),'msg':_0x394211[_0x26c16b('0x11d0')]?JSON[_0x26c16b('0x3ad')](_0x394211[_0x26c16b('0x11d0')]):_0x394211[_0x26c16b('0x94f')]()});}):_0x2e282c[_0x1cc1e8('0x19a5')][_0x1cc1e8('0x22d5')]({'fields':_0x1cc1e8('0x104'),'sort':_0x1cc1e8('0x2623'),'nolimit':_0x1cc1e8('0x2206')})[_0x1cc1e8('0xe59')][_0x1cc1e8('0xe19')](function(_0x4a2d1a){var _0x437cbb=_0x1cc1e8;_0x70802[_0x437cbb('0x1a9e')]=_0x4a2d1a[_0x437cbb('0x16a7')]||[];})[_0x1cc1e8('0xe19')](function(){var _0x587d43=_0x1cc1e8;return _0x2e282c[_0x587d43('0xb59')][_0x587d43('0x22d5')]({'userProfileId':_0x70802['currentUser']['userProfileId'],'sectionId':0x3f4})[_0x587d43('0xe59')];})['then'](function(_0x508bdb){var _0x29074c=_0x1cc1e8,_0x1d1e51=_0x508bdb&&_0x508bdb[_0x29074c('0x16a7')]?_0x508bdb[_0x29074c('0x16a7')][0x0]:null;if(!_0x1d1e51){var _0x44015e=[],_0x12bde0=null;_0x70802['set']&&(_0x12bde0=_0x32d445()[_0x29074c('0xf15')](_0x70802[_0x29074c('0x1a9e')],{'name':_0x70802['set'][_0x29074c('0x2623')]}));for(var _0x3a1359=0x0;_0x3a1359<_0x70802['variables'][_0x29074c('0x25ae')];_0x3a1359++){_0x12bde0&&_0x70802[_0x29074c('0x1a9e')][_0x3a1359]['id']===_0x12bde0['id']&&(_0x70802[_0x29074c('0x1a9e')][_0x3a1359][_0x29074c('0x1e9d')]=![],_0x44015e['push'](_0x70802[_0x29074c('0x1a9e')][_0x3a1359]));}_0x70802[_0x29074c('0x1a9e')]=_0x44015e;}else{if(!_0x1d1e51[_0x29074c('0x11fd')])return _0x2e282c[_0x29074c('0xd49')]['get']({'sectionId':_0x1d1e51['id']})[_0x29074c('0xe59')]['then'](function(_0x2991e0){var _0x5a97f7=_0x29074c,_0x11cf95=_0x32d445()[_0x5a97f7('0x65a')](_0x2991e0['rows'],function(_0x2e7a84){var _0x2f2fda=_0x5a97f7;return _0x32d445()[_0x2f2fda('0xf15')](_0x70802[_0x2f2fda('0x1a9e')],{'id':_0x2e7a84[_0x2f2fda('0x1104')]});}),_0x2efeb0=null;_0x70802[_0x5a97f7('0x2aa')]&&(_0x2efeb0=_0x32d445()['find'](_0x70802[_0x5a97f7('0x1a9e')],{'name':_0x70802[_0x5a97f7('0x2aa')][_0x5a97f7('0x2623')]}));if(_0x2efeb0&&!_0x32d445()['some'](_0x11cf95,['id',_0x2efeb0['id']])){var _0x51d3dd=_0x32d445()['find'](_0x70802['variables'],{'id':_0x2efeb0['id']});_0x51d3dd[_0x5a97f7('0x1e9d')]=![],_0x11cf95[_0x5a97f7('0xb76')](_0x51d3dd);}_0x70802['variables']=_0x11cf95;});}})[_0x1cc1e8('0x223b')](function(_0x559bc9){var _0x33c0e9=_0x1cc1e8;_0x2a7f10[_0x33c0e9('0x8c8')]({'title':_0x559bc9['status']?_0x33c0e9('0x27f2')+_0x559bc9[_0x33c0e9('0x2833')]+_0x33c0e9('0x1b7c')+_0x559bc9[_0x33c0e9('0x1fd7')]:_0x33c0e9('0x287e'),'msg':_0x559bc9['data']?JSON[_0x33c0e9('0x3ad')](_0x559bc9['data']):_0x559bc9[_0x33c0e9('0x94f')]()});});function _0x3ea7a4(){var _0x43d532=_0x1cc1e8;_0x70802['errors']=[];var _0x591309=[];_0x70802[_0x43d532('0x2aa')][_0x43d532('0x62e')]&&_0x70802['set']['type'][_0x43d532('0x20dd')]()===_0x43d532('0x1fdf')&&_0x70802['set'][_0x43d532('0xf44')]===_0x43d532('0x3d2')&&(_0x70802[_0x43d532('0x2aa')][_0x43d532('0x1ef5')]=_0x4234a0['cutdigits']?(_0x70802[_0x43d532('0x2aa')][_0x43d532('0x2580')]||'')+'${EXTEN:'+_0x4234a0['cutdigits']+'}':(_0x70802['set']['prefix']||'')+_0x43d532('0x16b5'),_0x4234a0[_0x43d532('0x150c')]!=='none'?_0x70802[_0x43d532('0x2aa')][_0x43d532('0x2116')][_0x43d532('0x281c')](_0x43d532('0x767'))<0x0&&(_0x70802['set'][_0x43d532('0x2116')]+='U(xcally-mixmonitor-context)'):_0x70802[_0x43d532('0x2aa')][_0x43d532('0x2116')]=_0x70802[_0x43d532('0x2aa')][_0x43d532('0x2116')]['replace'](_0x43d532('0x767'),''));if(_0x70802[_0x43d532('0x2aa')]['appType']&&_0x70802[_0x43d532('0x2aa')][_0x43d532('0xf44')]==='custom'){}else switch((_0x70802[_0x43d532('0x2aa')][_0x43d532('0xf2b')]||_0x70802[_0x43d532('0x2aa')][_0x43d532('0xf44')])[_0x43d532('0x20dd')]()){case _0x43d532('0x2aa'):_0x70802[_0x43d532('0x2aa')][_0x43d532('0x26d2')]=_0x70802[_0x43d532('0x2aa')][_0x43d532('0x2623')]+'='+_0x70802['set'][_0x43d532('0x2')];break;case'custom':break;default:_0x591309[0x0]=_0x70802['set']['name'],_0x591309[0x1]=_0x70802[_0x43d532('0x2aa')][_0x43d532('0x2')],_0x70802[_0x43d532('0x2aa')][_0x43d532('0x26d2')]=_0x591309[_0x43d532('0x1537')]('=');}_0x5cf787(_0x70802[_0x43d532('0x2aa')]);}function _0x5cf787(_0x251c4e){var _0x546609=_0x1cc1e8;_0x118fae[_0x546609('0x11ed')](_0x251c4e);}}const _0x152d2d=_0x471a33;_0x39fe22[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0xc27'),_0xb635d2('0x1fd1'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x39fe22(_0x1e9c3f,_0x19c893,_0xe62bc,_0x590ebc,_0x2e664a,_0x5b0248,_0x15e2e,_0x3cc111){var _0x193157=_0xb635d2,_0x73d4f1=this;_0x73d4f1[_0x193157('0x15a5')]=_0x15e2e[_0x193157('0x1ef8')](),_0x73d4f1[_0x193157('0xcd2')]=[],_0x73d4f1[_0x193157('0x13e4')]=_0x193157('0x22ff')+(_0x590ebc[_0x193157('0xf44')]||_0x590ebc[_0x193157('0xf2b')])[_0x193157('0x25f7')](),_0x73d4f1['voicemail']=angular[_0x193157('0x89')](_0x590ebc),_0x73d4f1['crudPermissions']=_0x3cc111,_0x73d4f1[_0x193157('0x1ccb')]={};if(_0x73d4f1[_0x193157('0x4e0')]['appdata'])switch(_0x73d4f1[_0x193157('0x4e0')][_0x193157('0xf44')]?_0x73d4f1[_0x193157('0x4e0')][_0x193157('0xf44')][_0x193157('0x20dd')]():_0x73d4f1[_0x193157('0x4e0')][_0x193157('0xf2b')][_0x193157('0x20dd')]()){case _0x193157('0x261d'):break;case _0x193157('0xc11'):{var _0x5a29e3=_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x26d2')][_0x193157('0x1745')](',');_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x6e4')]=_0x5a29e3[0x0],_0x73d4f1['voicemail']['language']=_0x5a29e3[0x1],_0x73d4f1[_0x193157('0x4e0')][_0x193157('0xfcc')]=_0x5a29e3[_0x193157('0xa19')](0x2,_0x5a29e3[_0x193157('0x25ae')])['join'](',');}break;case _0x193157('0x1321'):{var _0xd7f36e=_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x26d2')][_0x193157('0x1745')](',');_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x22be')]=_0xd7f36e[0x0],_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x700')]=_0xd7f36e[0x1],_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x206a')]=_0xd7f36e[0x2],_0x73d4f1[_0x193157('0x4e0')]['botname']=_0xd7f36e[0x3],_0x73d4f1[_0x193157('0x4e0')][_0x193157('0xfcc')]=_0xd7f36e['slice'](0x4,_0xd7f36e[_0x193157('0x25ae')])['join'](',');}break;case'autoreply':{var _0x6358a7=_0x73d4f1[_0x193157('0x4e0')]['appdata'][_0x193157('0x1745')](',');_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x1ec4')]=isNaN(_0x6358a7[0x0])?_0x6358a7[0x0]:parseInt(_0x6358a7[0x0],0xa),_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x1bc6')]=_0x6358a7['slice'](0x1,_0x6358a7[_0x193157('0x25ae')])[_0x193157('0x1537')](',');}break;case _0x193157('0x27e8'):_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x1bc6')]=_0x73d4f1['voicemail'][_0x193157('0x26d2')];break;case _0x193157('0x2aa'):_0x73d4f1[_0x193157('0x4e0')]['name']=_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x26d2')]['split']('=')[0x0],_0x73d4f1[_0x193157('0x4e0')]['value']=_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x26d2')]['split']('=')[0x1];break;case _0x193157('0x401'):_0x73d4f1['voicemail'][_0x193157('0x38b')]=_0x73d4f1['voicemail'][_0x193157('0x26d2')];break;default:{var _0x9f51ba=_0x73d4f1['voicemail'][_0x193157('0x26d2')][_0x193157('0x1745')](',');_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x27bf')]=_0x32d445()[_0x193157('0x14b4')](_0x9f51ba[0x0])?_0x9f51ba[0x0]:isNaN(_0x9f51ba[0x0])?_0x9f51ba[0x0]:parseInt(_0x9f51ba[0x0],0xa),_0x73d4f1['voicemail'][_0x193157('0x2116')]=_0x32d445()[_0x193157('0x14b4')](_0x9f51ba[0x1])?_0x9f51ba[0x1]:isNaN(_0x9f51ba[0x1])?_0x9f51ba[0x1]:parseInt(_0x9f51ba[0x1],0xa);}break;}else{}_0x73d4f1['voicemail'][_0x193157('0x62e')]&&_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x62e')]['toLowerCase']()==='outbound'&&_0x73d4f1[_0x193157('0x4e0')]['appType']['toLowerCase']()==='outbounddial'&&(_0x73d4f1[_0x193157('0x4e0')]['prefix']=_0x73d4f1['voicemail']['phone']?_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x1ef5')][_0x193157('0x1745')]('$')[0x0]:undefined,_0x73d4f1[_0x193157('0x4e0')][_0x193157('0x1b6f')]=_0x73d4f1[_0x193157('0x4e0')]['callerID']?_0x193157('0xd41')+_0x73d4f1[_0x193157('0x4e0')][_0x193157('0xfca')]:undefined);_0x73d4f1[_0x193157('0xf4a')]=_0x1647b2,_0x73d4f1[_0x193157('0x2584')]=_0x2702c9,_0x15e2e[_0x193157('0x179e')](_0x193157('0xd14'))?_0x5b0248[_0x193157('0x27bf')][_0x193157('0x22d5')]({'fields':_0x193157('0x348'),'sort':_0x193157('0xd8c'),'nolimit':_0x193157('0x2206')})['$promise'][_0x193157('0xe19')](function(_0x3ae14c){var _0x281d10=_0x193157;_0x73d4f1[_0x281d10('0x1ec1')]=_0x3ae14c[_0x281d10('0x16a7')]||[];})[_0x193157('0x223b')](function(_0x43481b){var _0xb56891=_0x193157;_0xe62bc[_0xb56891('0x8c8')]({'title':_0x43481b[_0xb56891('0x2833')]?_0xb56891('0x27f2')+_0x43481b[_0xb56891('0x2833')]+_0xb56891('0x1b7c')+_0x43481b[_0xb56891('0x1fd7')]:_0xb56891('0x2767'),'msg':_0x43481b['data']?JSON[_0xb56891('0x3ad')](_0x43481b[_0xb56891('0x11d0')]):_0x43481b[_0xb56891('0x94f')]()});}):_0x5b0248[_0x193157('0x27bf')][_0x193157('0x22d5')]({'fields':_0x193157('0x348'),'sort':_0x193157('0xd8c'),'nolimit':'true'})[_0x193157('0xe59')]['then'](function(_0x44bcd3){var _0xb6d979=_0x193157;_0x73d4f1[_0xb6d979('0x1ec1')]=_0x44bcd3['rows']||[];})[_0x193157('0xe19')](function(){var _0x1a2c55=_0x193157;return _0x5b0248[_0x1a2c55('0xb59')][_0x1a2c55('0x22d5')]({'userProfileId':_0x73d4f1['currentUser'][_0x1a2c55('0x1d04')],'sectionId':0x196})['$promise'];})[_0x193157('0xe19')](function(_0x1d1fba){var _0x54a762=_0x193157,_0x5a1902=_0x1d1fba&&_0x1d1fba[_0x54a762('0x16a7')]?_0x1d1fba[_0x54a762('0x16a7')][0x0]:null;if(!_0x5a1902){var _0x2777c6=[],_0x494de3=null;_0x73d4f1[_0x54a762('0x4e0')]&&(_0x494de3=_0x32d445()['find'](_0x73d4f1[_0x54a762('0x1ec1')],{'mailbox':_0x73d4f1['voicemail'][_0x54a762('0x27bf')]}));for(var _0x49d1a6=0x0;_0x49d1a6<_0x73d4f1[_0x54a762('0x1ec1')][_0x54a762('0x25ae')];_0x49d1a6++){_0x494de3&&_0x73d4f1[_0x54a762('0x1ec1')][_0x49d1a6]['id']===_0x494de3['id']&&(_0x73d4f1[_0x54a762('0x1ec1')][_0x49d1a6][_0x54a762('0x1e9d')]=![],_0x2777c6[_0x54a762('0xb76')](_0x73d4f1[_0x54a762('0x1ec1')][_0x49d1a6]));}_0x73d4f1['voiceMails']=_0x2777c6;}else{if(!_0x5a1902[_0x54a762('0x11fd')])return _0x5b0248[_0x54a762('0xd49')][_0x54a762('0x22d5')]({'sectionId':_0x5a1902['id']})[_0x54a762('0xe59')][_0x54a762('0xe19')](function(_0x13da91){var _0x2aa12f=_0x54a762,_0x33facc=_0x32d445()['map'](_0x13da91[_0x2aa12f('0x16a7')],function(_0x187264){var _0x5a838d=_0x2aa12f;return _0x32d445()[_0x5a838d('0xf15')](_0x73d4f1[_0x5a838d('0x1ec1')],{'id':_0x187264['resourceId']});}),_0x3ec4ed=null;_0x73d4f1[_0x2aa12f('0x4e0')]&&(_0x3ec4ed=_0x32d445()['find'](_0x73d4f1[_0x2aa12f('0x1ec1')],{'mailbox':_0x73d4f1[_0x2aa12f('0x4e0')][_0x2aa12f('0x27bf')]}));if(_0x3ec4ed&&!_0x32d445()[_0x2aa12f('0x201a')](_0x33facc,['id',_0x3ec4ed['id']])){var _0x5c78a1=_0x32d445()[_0x2aa12f('0xf15')](_0x73d4f1['voiceMails'],{'id':_0x3ec4ed['id']});_0x5c78a1[_0x2aa12f('0x1e9d')]=![],_0x33facc['push'](_0x5c78a1);}_0x73d4f1[_0x2aa12f('0x1ec1')]=_0x33facc;});}})[_0x193157('0x223b')](function(_0x262acb){var _0x258389=_0x193157;_0xe62bc[_0x258389('0x8c8')]({'title':_0x262acb[_0x258389('0x2833')]?_0x258389('0x27f2')+_0x262acb[_0x258389('0x2833')]+_0x258389('0x1b7c')+_0x262acb[_0x258389('0x1fd7')]:_0x258389('0x92e'),'msg':_0x262acb[_0x258389('0x11d0')]?JSON[_0x258389('0x3ad')](_0x262acb[_0x258389('0x11d0')]):_0x262acb[_0x258389('0x94f')]()});});function _0x1647b2(){var _0x5a92da=_0x193157;_0x73d4f1[_0x5a92da('0xcd2')]=[];var _0x4076c6=[];_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x62e')]&&_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x62e')]['toLowerCase']()===_0x5a92da('0x1fdf')&&_0x73d4f1[_0x5a92da('0x4e0')]['appType']===_0x5a92da('0x3d2')&&(_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x1ef5')]=_0x2e664a[_0x5a92da('0x27f6')]?(_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x2580')]||'')+_0x5a92da('0x5d8')+_0x2e664a[_0x5a92da('0x27f6')]+'}':(_0x73d4f1['voicemail'][_0x5a92da('0x2580')]||'')+_0x5a92da('0x16b5'),_0x2e664a['recordingFormat']!==_0x5a92da('0x23ca')?_0x73d4f1['voicemail'][_0x5a92da('0x2116')][_0x5a92da('0x281c')](_0x5a92da('0x767'))<0x0&&(_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x2116')]+=_0x5a92da('0x767')):_0x73d4f1['voicemail'][_0x5a92da('0x2116')]=_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x2116')]['replace'](_0x5a92da('0x767'),''));if(_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0xf44')]&&_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0xf44')]===_0x5a92da('0x261d')){}else switch((_0x73d4f1[_0x5a92da('0x4e0')]['app']||_0x73d4f1[_0x5a92da('0x4e0')]['appType'])[_0x5a92da('0x20dd')]()){case'set':_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x26d2')]=_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x2623')]+'='+_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x2')];break;case _0x5a92da('0x261d'):break;default:_0x4076c6[0x0]=_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x27bf')],_0x4076c6[0x1]=_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x2116')],_0x73d4f1[_0x5a92da('0x4e0')][_0x5a92da('0x26d2')]=_0x4076c6[_0x5a92da('0x1537')](',');}_0x2702c9(_0x73d4f1[_0x5a92da('0x4e0')]);}function _0x2702c9(_0x3a0942){var _0x1bb32f=_0x193157;_0x1e9c3f[_0x1bb32f('0x11ed')](_0x3a0942);}}const _0x1764d7=_0x39fe22;_0x210c4c[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x1fd1'),_0xb635d2('0xb59')];function _0x210c4c(_0x164894,_0x3f1609,_0x29943c,_0x45bad4,_0x5edcfd,_0x3d313b,_0x1a6733,_0x2f11ca,_0x155fb7,_0x3c39ad,_0x32b3e9,_0x461d61){var _0x3f733b=_0xb635d2,_0x2eba7f=this;_0x2eba7f['currentUser']=_0x3c39ad[_0x3f733b('0x1ef8')](),_0x2eba7f['license']=_0x3d313b,_0x2eba7f[_0x3f733b('0x22f1')]=_0x1a6733,_0x2eba7f['passwordPattern']=_0x2eba7f[_0x3f733b('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2eba7f[_0x3f733b('0x2170')]=_0x3f1609['protocol']()+_0x3f733b('0x21a8')+_0x3f1609['host'](),_0x2eba7f[_0x3f733b('0x1fd1')]=_0x32b3e9||_0x164894[_0x3f733b('0x2ef')]['internalroute']||{},_0x2eba7f[_0x3f733b('0xb59')]=_0x461d61&&_0x461d61[_0x3f733b('0x148b')]==0x1?_0x461d61[_0x3f733b('0x16a7')][0x0]:null,_0x2eba7f[_0x3f733b('0xb3d')]=_0x3c39ad[_0x3f733b('0xd31')](_0x2eba7f[_0x3f733b('0xb59')]?_0x2eba7f[_0x3f733b('0xb59')]['crudPermissions']:null),_0x2eba7f[_0x3f733b('0x1ccb')]={},_0x2eba7f[_0x3f733b('0xc7b')]=_0x164894['params'][_0x3f733b('0x435')]||0x0,_0x2eba7f[_0x3f733b('0xbdc')]=_0x155fb7[_0x3f733b('0x1e67')],_0x2eba7f[_0x3f733b('0x3f')]=_0x2ff1e0,_0x2eba7f[_0x3f733b('0x886')]=_0x48115b,_0x3c39ad[_0x3f733b('0x179e')]('admin')?_0x2f11ca[_0x3f733b('0x2768')][_0x3f733b('0x22d5')]({'fields':_0x3f733b('0x104'),'sort':_0x3f733b('0x2623'),'nolimit':_0x3f733b('0x2206')})[_0x3f733b('0xe59')][_0x3f733b('0xe19')](function(_0x333f85){var _0x18e765=_0x3f733b;_0x2eba7f['contexts']=_0x333f85[_0x18e765('0x16a7')]||[];})[_0x3f733b('0x223b')](function(_0x3216fa){var _0x440183=_0x3f733b;_0x155fb7[_0x440183('0x8c8')]({'title':_0x3216fa[_0x440183('0x2833')]?'API:'+_0x3216fa['status']+_0x440183('0x1b7c')+_0x3216fa[_0x440183('0x1fd7')]:'SYSTEM:GET_CONTEXTS','msg':_0x3216fa[_0x440183('0x11d0')]?JSON[_0x440183('0x3ad')](_0x3216fa[_0x440183('0x11d0')]):_0x3216fa['toString']()});}):_0x2f11ca[_0x3f733b('0x2768')]['get']({'fields':_0x3f733b('0x104'),'sort':_0x3f733b('0x2623'),'nolimit':'true'})[_0x3f733b('0xe59')]['then'](function(_0x52afc5){var _0x292a1c=_0x3f733b;_0x2eba7f[_0x292a1c('0x3c1')]=_0x52afc5[_0x292a1c('0x16a7')]||[];})['then'](function(){var _0x249317=_0x3f733b;return _0x2f11ca['userProfileSection'][_0x249317('0x22d5')]({'userProfileId':_0x2eba7f[_0x249317('0x15a5')][_0x249317('0x1d04')],'sectionId':0x195})['$promise'];})['then'](function(_0x1e5dd1){var _0x7ee5db=_0x3f733b,_0x555636=_0x1e5dd1&&_0x1e5dd1[_0x7ee5db('0x16a7')]?_0x1e5dd1[_0x7ee5db('0x16a7')][0x0]:null;if(!_0x555636)return _0x2f11ca[_0x7ee5db('0x2768')][_0x7ee5db('0x22d5')]({'fields':_0x7ee5db('0x104'),'sort':'name','nolimit':_0x7ee5db('0x2206'),'defaultEntry':0x1})[_0x7ee5db('0xe59')][_0x7ee5db('0xe19')](function(_0x4ca541){var _0x379aa9=_0x7ee5db;_0x2eba7f['contexts']=_0x4ca541[_0x379aa9('0x16a7')]||[];});else{if(!_0x555636[_0x7ee5db('0x11fd')])return _0x2f11ca['userProfileResource'][_0x7ee5db('0x22d5')]({'sectionId':_0x555636['id']})['$promise'][_0x7ee5db('0xe19')](function(_0x4b9d0b){var _0x16cd45=_0x7ee5db,_0x1e15d1=_0x32d445()[_0x16cd45('0x65a')](_0x4b9d0b[_0x16cd45('0x16a7')],function(_0x1bceca){var _0xba0c06=_0x16cd45;return _0x32d445()[_0xba0c06('0xf15')](_0x2eba7f[_0xba0c06('0x3c1')],{'id':_0x1bceca['resourceId']});}),_0x208825=null;_0x2eba7f[_0x16cd45('0x1fd1')]&&(_0x208825=_0x32d445()['find'](_0x2eba7f['contexts'],{'name':_0x2eba7f[_0x16cd45('0x1fd1')][_0x16cd45('0x1318')]}));if(_0x208825&&!_0x32d445()['some'](_0x1e15d1,['id',_0x208825['id']])){var _0x43efde=_0x32d445()[_0x16cd45('0xf15')](_0x2eba7f[_0x16cd45('0x3c1')],{'id':_0x208825['id']});_0x43efde['canSelect']=![],_0x1e15d1[_0x16cd45('0xb76')](_0x43efde);}_0x2eba7f[_0x16cd45('0x3c1')]=_0x1e15d1;});}})[_0x3f733b('0x223b')](function(_0x1a89a5){var _0x3b34b0=_0x3f733b;_0x155fb7[_0x3b34b0('0x8c8')]({'title':_0x1a89a5[_0x3b34b0('0x2833')]?_0x3b34b0('0x27f2')+_0x1a89a5[_0x3b34b0('0x2833')]+_0x3b34b0('0x1b7c')+_0x1a89a5[_0x3b34b0('0x1fd7')]:_0x3b34b0('0x12ed'),'msg':_0x1a89a5[_0x3b34b0('0x11d0')]?JSON['stringify'](_0x1a89a5[_0x3b34b0('0x11d0')]):_0x1a89a5['toString']()});});function _0x2ff1e0(){var _0x50d1ca=_0x3f733b;_0x164894['go'](_0x50d1ca('0x21d5'),{},{'reload':_0x50d1ca('0x21d5')});}function _0x48115b(){var _0x106616=_0x3f733b;_0x2f11ca['voiceExtension'][_0x106616('0xa70')]({'id':_0x2eba7f[_0x106616('0x1fd1')]['id']},_0x2eba7f['internalroute'])[_0x106616('0xe59')][_0x106616('0xe19')](function(){var _0x209c33=_0x106616;_0x155fb7['success']({'title':'InternalRoute\x20updated!','msg':_0x2eba7f[_0x209c33('0x1fd1')][_0x209c33('0x2623')]?_0x2eba7f[_0x209c33('0x1fd1')][_0x209c33('0x2623')]+_0x209c33('0x283b'):''});})[_0x106616('0x223b')](function(_0x432ba3){var _0x5b8de5=_0x106616;_0x155fb7[_0x5b8de5('0x8c8')]({'title':_0x432ba3[_0x5b8de5('0x2833')]?'API:'+_0x432ba3[_0x5b8de5('0x2833')]+_0x5b8de5('0x1b7c')+_0x432ba3[_0x5b8de5('0x1fd7')]:'SYSTEM:GETvoiceExtension','msg':_0x432ba3['data']?JSON[_0x5b8de5('0x3ad')](_0x432ba3[_0x5b8de5('0x11d0')]):_0x432ba3[_0x5b8de5('0x94f')]()});});}}const _0x545580=_0x210c4c,_0x1e245f=_0x59426a['p']+_0xb635d2('0x112a');_0x40869a[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),'$translate','internalroutes','userProfile',_0xb635d2('0xb59'),'api',_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x40869a(_0x5c6295,_0x259fe4,_0x18c241,_0x4f10f0,_0x48bd81,_0x266163,_0x5882a7,_0x4d39d9,_0x2f1c37,_0xbbcfd7,_0x402995,_0x261288,_0x24a6bb,_0x469fb9,_0x3174aa,_0x4a0cae,_0x278f88){var _0x592fc0=_0xb635d2,_0x28b267=this;_0x28b267['license']=_0x4a0cae,_0x28b267[_0x592fc0('0x22f1')]=_0x278f88,_0x28b267[_0x592fc0('0x15a5')]=_0x3174aa['getCurrentUser'](),_0x28b267[_0x592fc0('0xacb')]=_0x2f1c37||{'count':0x0,'rows':[]},_0x28b267['userProfile']=_0xbbcfd7,_0x28b267[_0x592fc0('0xb59')]=_0x402995&&_0x402995[_0x592fc0('0x148b')]==0x1?_0x402995[_0x592fc0('0x16a7')][0x0]:null,_0x28b267['crudPermissions']=_0x3174aa['parseCrudPermissions'](_0x28b267[_0x592fc0('0xb59')]?_0x28b267['userProfileSection'][_0x592fc0('0xb3d')]:null),_0x28b267[_0x592fc0('0x19b6')]='internalroutes',_0x28b267[_0x592fc0('0x14d6')]='',_0x28b267[_0x592fc0('0x190c')]=null,_0x28b267['selectedInternalRoutes']=[],_0x28b267[_0x592fc0('0xa16')]={'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x592fc0('0x1b66'),'sort':_0x592fc0('0x7e8'),'VoiceExtensionId':_0x592fc0('0x1046'),'limit':0xa,'page':0x1},_0x28b267[_0x592fc0('0x16a0')]=_0x9dcfa3,_0x28b267[_0x592fc0('0x1d9e')]=_0x43ab65,_0x28b267[_0x592fc0('0x425')]=_0x89bb6c,_0x28b267[_0x592fc0('0xa9b')]=_0x13bbe2,_0x28b267[_0x592fc0('0x17b1')]=_0xb84034,_0x28b267[_0x592fc0('0x14f6')]=_0x2c5e3a,_0x28b267[_0x592fc0('0xe4d')]=_0x3a3bea,_0x28b267[_0x592fc0('0x19c3')]=_0x4c7935,_0x28b267[_0x592fc0('0xd58')]=_0x4f00c3,_0x28b267[_0x592fc0('0x211')]=_0x3606de,_0x3174aa[_0x592fc0('0x179e')]('admin')?_0x261288[_0x592fc0('0x2768')][_0x592fc0('0x22d5')]({'fields':_0x592fc0('0x104'),'sort':'name','nolimit':_0x592fc0('0x2206')})[_0x592fc0('0xe59')][_0x592fc0('0xe19')](function(_0x3b1c5f){var _0x426791=_0x592fc0;_0x28b267[_0x426791('0x3c1')]=_0x3b1c5f['rows']||[];})[_0x592fc0('0x223b')](function(_0xbf2e2c){var _0x7dd064=_0x592fc0;_0x469fb9[_0x7dd064('0x8c8')]({'title':_0xbf2e2c[_0x7dd064('0x2833')]?_0x7dd064('0x27f2')+_0xbf2e2c['status']+_0x7dd064('0x1b7c')+_0xbf2e2c[_0x7dd064('0x1fd7')]:_0x7dd064('0x17ac'),'msg':_0xbf2e2c[_0x7dd064('0x11d0')]?JSON[_0x7dd064('0x3ad')](_0xbf2e2c[_0x7dd064('0x11d0')]):_0xbf2e2c[_0x7dd064('0x94f')]()});}):_0x261288[_0x592fc0('0x2768')][_0x592fc0('0x22d5')]({'fields':'id,name','sort':_0x592fc0('0x2623'),'nolimit':_0x592fc0('0x2206')})[_0x592fc0('0xe59')]['then'](function(_0x616f3a){var _0x1c8175=_0x592fc0;_0x28b267[_0x1c8175('0x3c1')]=_0x616f3a[_0x1c8175('0x16a7')]||[];})['then'](function(){var _0x4c397f=_0x592fc0;return _0x261288[_0x4c397f('0xb59')][_0x4c397f('0x22d5')]({'userProfileId':_0x28b267[_0x4c397f('0x15a5')][_0x4c397f('0x1d04')],'sectionId':0x195})[_0x4c397f('0xe59')];})[_0x592fc0('0xe19')](function(_0x514e46){var _0x11bf01=_0x592fc0,_0x39cd89=_0x514e46&&_0x514e46['rows']?_0x514e46[_0x11bf01('0x16a7')][0x0]:null;if(!_0x39cd89)return _0x261288[_0x11bf01('0x2768')][_0x11bf01('0x22d5')]({'fields':_0x11bf01('0x104'),'sort':_0x11bf01('0x2623'),'nolimit':_0x11bf01('0x2206'),'defaultEntry':0x1})['$promise'][_0x11bf01('0xe19')](function(_0x47acd9){var _0x4b230=_0x11bf01;_0x28b267['contexts']=_0x47acd9[_0x4b230('0x16a7')]||[];});else{if(!_0x39cd89[_0x11bf01('0x11fd')])return _0x261288[_0x11bf01('0xd49')][_0x11bf01('0x22d5')]({'sectionId':_0x39cd89['id']})[_0x11bf01('0xe59')][_0x11bf01('0xe19')](function(_0x4c389c){var _0x2993da=_0x11bf01,_0xe94eee=_0x32d445()[_0x2993da('0x65a')](_0x4c389c[_0x2993da('0x16a7')],function(_0xc99699){var _0x38ab89=_0x2993da;return _0x32d445()[_0x38ab89('0xf15')](_0x28b267[_0x38ab89('0x3c1')],{'id':_0xc99699['resourceId']});}),_0xbfed75=null;_0x28b267[_0x2993da('0x1fd1')]&&(_0xbfed75=_0x32d445()['find'](_0x28b267[_0x2993da('0x3c1')],{'name':_0x28b267[_0x2993da('0x1fd1')]['context']}));if(_0xbfed75&&!_0x32d445()['some'](_0xe94eee,['id',_0xbfed75['id']])){var _0x115de4=_0x32d445()[_0x2993da('0xf15')](_0x28b267[_0x2993da('0x3c1')],{'id':_0xbfed75['id']});_0x115de4[_0x2993da('0x1e9d')]=![],_0xe94eee[_0x2993da('0xb76')](_0x115de4);}_0x28b267[_0x2993da('0x3c1')]=_0xe94eee;});}})['catch'](function(_0x281df5){var _0x163a6d=_0x592fc0;_0x469fb9[_0x163a6d('0x8c8')]({'title':_0x281df5[_0x163a6d('0x2833')]?_0x163a6d('0x27f2')+_0x281df5[_0x163a6d('0x2833')]+_0x163a6d('0x1b7c')+_0x281df5[_0x163a6d('0x1fd7')]:_0x163a6d('0x12ed'),'msg':_0x281df5[_0x163a6d('0x11d0')]?JSON[_0x163a6d('0x3ad')](_0x281df5[_0x163a6d('0x11d0')]):_0x281df5['toString']()});});function _0x9dcfa3(_0xb36082){var _0x110734=_0x592fc0;_0x18c241['go']('app.voice.internalroutes.edit',{'id':_0xb36082['id'],'internalroute':_0xb36082,'crudPermissions':_0x28b267[_0x110734('0xb3d')]});}function _0x43ab65(_0x56dadd,_0x3ad1d9){var _0xbdb4d0=_0x592fc0,_0x4ec086=_0x48bd81['confirm']()[_0xbdb4d0('0x13e4')](_0xbdb4d0('0x346')+_0x32d445()[_0xbdb4d0('0x1df2')](_0xbdb4d0('0x1fd1'))+'?')[_0xbdb4d0('0x221c')](_0xbdb4d0('0xab2')+(_0x56dadd['name']||_0xbdb4d0('0x1fd1'))+_0xbdb4d0('0x27bb')+'\x20will\x20be\x20deleted.')[_0xbdb4d0('0x4d1')](_0xbdb4d0('0x17d6'))[_0xbdb4d0('0x1345')](_0x3ad1d9)['ok']('OK')['cancel']('CANCEL');_0x48bd81['show'](_0x4ec086)[_0xbdb4d0('0xe19')](function(){_0x2c5e3a(_0x56dadd);},function(){var _0x65e43=_0xbdb4d0;console[_0x65e43('0x1fe9')](_0x65e43('0x17'));});}var _0x20222a=!![],_0x1dfc4b=0x1;_0x5c6295[_0x592fc0('0x107')](_0x592fc0('0x20cb'),function(_0x160a98,_0x17f0c1){var _0x47a04e=_0x592fc0;_0x20222a?_0x5882a7(function(){_0x20222a=![];}):(!_0x17f0c1&&(_0x1dfc4b=_0x28b267[_0x47a04e('0xa16')][_0x47a04e('0xc08')]),_0x160a98!==_0x17f0c1&&(_0x28b267[_0x47a04e('0xa16')][_0x47a04e('0xc08')]=0x1),!_0x160a98&&(_0x28b267[_0x47a04e('0xa16')]['page']=_0x1dfc4b),_0x28b267[_0x47a04e('0xa9b')]());});function _0x89bb6c(_0xa70e21){var _0x1bfa3f=_0x592fc0;_0x28b267[_0x1bfa3f('0xacb')]=_0xa70e21||{'count':0x0,'rows':[]};}function _0x13bbe2(){var _0x5046c3=_0x592fc0;_0x28b267[_0x5046c3('0xa16')]['offset']=(_0x28b267[_0x5046c3('0xa16')]['page']-0x1)*_0x28b267['query']['limit'],_0x3174aa[_0x5046c3('0x179e')]('admin')?_0x28b267[_0x5046c3('0x9c8')]=_0x261288[_0x5046c3('0x1979')][_0x5046c3('0x22d5')](_0x28b267['query'],_0x89bb6c)[_0x5046c3('0xe59')]:(_0x28b267[_0x5046c3('0xa16')]['id']=_0x28b267['userProfile']['id'],_0x28b267[_0x5046c3('0xa16')][_0x5046c3('0x1e59')]=_0x5046c3('0xb7d'),_0x28b267[_0x5046c3('0x9c8')]=_0x261288[_0x5046c3('0x154f')][_0x5046c3('0x14e6')](_0x28b267[_0x5046c3('0xa16')],_0x89bb6c)[_0x5046c3('0xe59')]);}function _0xb84034(_0x26078c,_0x55f677){var _0x27c2f1=_0x592fc0;_0x48bd81[_0x27c2f1('0x26b2')]({'controller':_0x27c2f1('0x8a8'),'controllerAs':'vm','templateUrl':_0x1e245f,'parent':angular[_0x27c2f1('0x24a1')](_0x266163[_0x27c2f1('0x19b2')]),'targetEvent':_0x26078c,'clickOutsideToClose':!![],'locals':{'internalroute':_0x55f677,'internalroutes':_0x28b267[_0x27c2f1('0xacb')][_0x27c2f1('0x16a7')],'license':_0x28b267['license'],'setting':_0x28b267[_0x27c2f1('0x22f1')],'crudPermissions':_0x28b267['crudPermissions']}});}function _0x2c5e3a(_0x5438fc){var _0x4db390=_0x592fc0;_0x261288['voiceExtension'][_0x4db390('0x229e')]({'id':_0x5438fc['id']})[_0x4db390('0xe59')][_0x4db390('0xe19')](function(){var _0x3988b4=_0x4db390;_0x32d445()[_0x3988b4('0xa8b')](_0x28b267[_0x3988b4('0xacb')]['rows'],{'id':_0x5438fc['id']}),_0x28b267[_0x3988b4('0xacb')]['count']-=0x1,!_0x28b267[_0x3988b4('0xacb')]['rows'][_0x3988b4('0x25ae')]&&_0x28b267[_0x3988b4('0xa9b')](),_0x469fb9[_0x3988b4('0x425')]({'title':_0x32d445()[_0x3988b4('0x1df2')](_0x3988b4('0x17c4'))+_0x3988b4('0x1219'),'msg':_0x5438fc[_0x3988b4('0x2623')]?_0x5438fc[_0x3988b4('0x2623')]+_0x3988b4('0x2182'):''});})[_0x4db390('0x223b')](function(_0x36845){var _0xe563f6=_0x4db390;if(_0x36845[_0xe563f6('0x11d0')]&&_0x36845[_0xe563f6('0x11d0')][_0xe563f6('0xcd2')]&&_0x36845['data'][_0xe563f6('0xcd2')]['length']){_0x28b267['errors']=_0x36845[_0xe563f6('0x11d0')][_0xe563f6('0xcd2')]||[{'message':_0x36845['toString'](),'type':_0xe563f6('0x35c')}];for(var _0x322a0=0x0;_0x322a0<_0x36845[_0xe563f6('0x11d0')][_0xe563f6('0xcd2')]['length'];_0x322a0++){_0x469fb9[_0xe563f6('0x8c8')]({'title':_0x36845[_0xe563f6('0x11d0')][_0xe563f6('0xcd2')][_0x322a0][_0xe563f6('0x62e')],'msg':_0x36845[_0xe563f6('0x11d0')][_0xe563f6('0xcd2')][_0x322a0]['message']});}}else _0x469fb9[_0xe563f6('0x8c8')]({'title':_0x36845[_0xe563f6('0x2833')]?_0xe563f6('0x27f2')+_0x36845[_0xe563f6('0x2833')]+_0xe563f6('0x1b7c')+_0x36845['statusText']:_0xe563f6('0x35c'),'msg':_0x36845[_0xe563f6('0x11d0')]?JSON[_0xe563f6('0x3ad')](_0x36845['data'][_0xe563f6('0x27e8')]):_0x36845[_0xe563f6('0x27e8')]||_0x36845[_0xe563f6('0x94f')]()});});}function _0x3a3bea(){var _0x534e76=_0x592fc0,_0x3919bc=angular[_0x534e76('0x89')](_0x28b267[_0x534e76('0x20c7')]);return _0x28b267[_0x534e76('0x20c7')]=[],_0x3919bc;}function _0x4c7935(_0x451393){var _0x3e49b1=_0x592fc0,_0x4da507=_0x48bd81['confirm']()[_0x3e49b1('0x13e4')](_0x3e49b1('0x1ef2'))[_0x3e49b1('0x221c')](''+_0x28b267[_0x3e49b1('0x20c7')][_0x3e49b1('0x25ae')]+_0x3e49b1('0x5bc')+_0x3e49b1('0x21bd'))[_0x3e49b1('0x4d1')](_0x3e49b1('0x127d'))['targetEvent'](_0x451393)['ok']('OK')[_0x3e49b1('0x2c1')](_0x3e49b1('0x17'));_0x48bd81[_0x3e49b1('0x26b2')](_0x4da507)[_0x3e49b1('0xe19')](function(){var _0x31f1cb=_0x3e49b1;_0x28b267['selectedInternalRoutes'][_0x31f1cb('0x1d7e')](function(_0x51ba9a){_0x2c5e3a(_0x51ba9a);}),_0x28b267['selectedInternalRoutes']=[];});}function _0x4f00c3(){var _0x3de936=_0x592fc0;_0x28b267[_0x3de936('0x20c7')]=[];}function _0x3606de(){var _0x1e5ac2=_0x592fc0;_0x28b267['selectedInternalRoutes']=_0x28b267[_0x1e5ac2('0xacb')]['rows'];}}const _0x276264=_0x40869a;_0x5809ae[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x19a9'),'musiconhold',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x5809ae(_0x33d7eb,_0x2bd34f,_0x152d67,_0xd1278c,_0x18cf6e,_0x3fe05a,_0x11b26e,_0x3542e5,_0x57d6a1,_0x23ff14,_0x4613b5,_0x4131f9,_0x49ac40,_0x3a8d0a){var _0x309f63=_0xb635d2,_0x1ef3b9=this;_0x1ef3b9[_0x309f63('0x15a5')]=_0x4613b5[_0x309f63('0x1ef8')](),_0x1ef3b9[_0x309f63('0xcd2')]=[],_0x1ef3b9[_0x309f63('0x22f1')]=_0x49ac40,_0x1ef3b9[_0x309f63('0x5c1')]=_0x4131f9,_0x1ef3b9['crudPermissions']=_0x3a8d0a,_0x1ef3b9['hasModulePermissions']={},_0x1ef3b9['passwordPattern']=_0x1ef3b9[_0x309f63('0x22f1')]&&_0x1ef3b9[_0x309f63('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ef3b9[_0x309f63('0x13e4')]=_0x309f63('0xfb2'),_0x1ef3b9[_0x309f63('0x2fe')]=angular[_0x309f63('0x89')](_0x57d6a1),_0x1ef3b9['musiconholds']=_0x3542e5,_0x1ef3b9[_0x309f63('0x389')]=![];!_0x1ef3b9['musiconhold']&&(_0x1ef3b9['musiconhold']={'mode':'files'},_0x1ef3b9['title']=_0x309f63('0x5b'),_0x1ef3b9['newMusicOnHold']=!![]);_0x1ef3b9[_0x309f63('0x1d38')]=_0x228e05,_0x1ef3b9[_0x309f63('0x10f3')]=_0xaf9068,_0x1ef3b9[_0x309f63('0x13b')]=_0x5d9d2f,_0x1ef3b9[_0x309f63('0x2635')]=_0x571a1f,_0x1ef3b9[_0x309f63('0x2584')]=_0x576152;function _0x228e05(){var _0x34db1f=_0x309f63;_0x1ef3b9[_0x34db1f('0xcd2')]=[],_0x23ff14[_0x34db1f('0x1f4a')]['save'](_0x1ef3b9[_0x34db1f('0x2fe')])['$promise'][_0x34db1f('0xe19')](function(_0x228e30){var _0x345deb=_0x34db1f;_0x1ef3b9[_0x345deb('0x19a9')][_0x345deb('0x14c9')](_0x228e30[_0x345deb('0x250e')]()),_0x11b26e[_0x345deb('0x425')]({'title':_0x345deb('0x2144'),'msg':_0x1ef3b9[_0x345deb('0x2fe')][_0x345deb('0x2623')]?_0x1ef3b9[_0x345deb('0x2fe')][_0x345deb('0x2623')]+_0x345deb('0x105f'):''}),_0x576152(_0x228e30);})['catch'](function(_0x2e7437){var _0x108b7b=_0x34db1f;if(_0x2e7437['data']&&_0x2e7437[_0x108b7b('0x11d0')][_0x108b7b('0xcd2')]&&_0x2e7437['data'][_0x108b7b('0xcd2')]['length']){_0x1ef3b9[_0x108b7b('0xcd2')]=_0x2e7437[_0x108b7b('0x11d0')][_0x108b7b('0xcd2')]||[{'message':_0x2e7437[_0x108b7b('0x94f')](),'type':_0x108b7b('0x131b')}];for(var _0x175980=0x0;_0x175980<_0x2e7437['data'][_0x108b7b('0xcd2')][_0x108b7b('0x25ae')];_0x175980+=0x1){_0x11b26e[_0x108b7b('0x8c8')]({'title':_0x2e7437[_0x108b7b('0x11d0')][_0x108b7b('0xcd2')][_0x175980][_0x108b7b('0x62e')],'msg':_0x2e7437[_0x108b7b('0x11d0')][_0x108b7b('0xcd2')][_0x175980][_0x108b7b('0x27e8')]});}}else _0x11b26e[_0x108b7b('0x8c8')]({'title':_0x2e7437[_0x108b7b('0x2833')]?_0x108b7b('0x27f2')+_0x2e7437[_0x108b7b('0x2833')]+'\x20-\x20'+_0x2e7437[_0x108b7b('0x1fd7')]:_0x108b7b('0x131b'),'msg':_0x2e7437[_0x108b7b('0x11d0')]?JSON[_0x108b7b('0x3ad')](_0x2e7437[_0x108b7b('0x11d0')]['message']):_0x2e7437[_0x108b7b('0x94f')]()});});}function _0xaf9068(){var _0x4954c8=_0x309f63;_0x1ef3b9[_0x4954c8('0xcd2')]=[],_0x23ff14[_0x4954c8('0x1f4a')]['update']({'id':_0x1ef3b9[_0x4954c8('0x2fe')]['id']},_0x1ef3b9[_0x4954c8('0x2fe')])[_0x4954c8('0xe59')]['then'](function(_0x5b1c85){var _0x4996d2=_0x4954c8,_0x522d0a=_0x32d445()[_0x4996d2('0xf15')](_0x1ef3b9[_0x4996d2('0x19a9')],{'id':_0x5b1c85['id']});_0x522d0a&&_0x32d445()[_0x4996d2('0x1d8')](_0x522d0a,_0x32d445()[_0x4996d2('0xed5')](_0x5b1c85[_0x4996d2('0x250e')](),_0x32d445()[_0x4996d2('0x1234')](_0x522d0a))),_0x11b26e[_0x4996d2('0x425')]({'title':_0x4996d2('0x25c0'),'msg':_0x1ef3b9[_0x4996d2('0x2fe')]['name']?_0x1ef3b9[_0x4996d2('0x2fe')][_0x4996d2('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x576152(_0x5b1c85);})['catch'](function(_0x319a4f){var _0x325e85=_0x4954c8;if(_0x319a4f['data']&&_0x319a4f[_0x325e85('0x11d0')]['errors']&&_0x319a4f[_0x325e85('0x11d0')]['errors'][_0x325e85('0x25ae')]){_0x1ef3b9[_0x325e85('0xcd2')]=_0x319a4f[_0x325e85('0x11d0')][_0x325e85('0xcd2')]||[{'message':_0x319a4f[_0x325e85('0x94f')](),'type':'api.voiceMusicOnHold.update'}];for(var _0x3f311d=0x0;_0x3f311d<_0x319a4f[_0x325e85('0x11d0')][_0x325e85('0xcd2')]['length'];_0x3f311d++){_0x11b26e[_0x325e85('0x8c8')]({'title':_0x319a4f[_0x325e85('0x11d0')][_0x325e85('0xcd2')][_0x3f311d][_0x325e85('0x62e')],'msg':_0x319a4f[_0x325e85('0x11d0')]['errors'][_0x3f311d][_0x325e85('0x27e8')]});}}else _0x11b26e[_0x325e85('0x8c8')]({'title':_0x319a4f[_0x325e85('0x2833')]?_0x325e85('0x27f2')+_0x319a4f[_0x325e85('0x2833')]+_0x325e85('0x1b7c')+_0x319a4f['statusText']:_0x325e85('0x2199'),'msg':_0x319a4f[_0x325e85('0x11d0')]?JSON[_0x325e85('0x3ad')](_0x319a4f[_0x325e85('0x11d0')][_0x325e85('0x27e8')]):_0x319a4f['toString']()});});}function _0x5d9d2f(_0x16b517){var _0x1c2590=_0x309f63;_0x1ef3b9['errors']=[];var _0xc911c8=_0xd1278c[_0x1c2590('0xa5')]()['title'](_0x1c2590('0x24d0'))['content'](_0x1c2590('0x1b2b'))[_0x1c2590('0x4d1')](_0x1c2590('0x14bb'))['ok'](_0x1c2590('0x2198'))['cancel']('Cancel')[_0x1c2590('0x1345')](_0x16b517);_0xd1278c['show'](_0xc911c8)[_0x1c2590('0xe19')](function(){var _0x474868=_0x1c2590;_0x23ff14['voiceMusicOnHold']['delete']({'id':_0x1ef3b9[_0x474868('0x2fe')]['id']})[_0x474868('0xe59')]['then'](function(){var _0x293ed1=_0x474868;_0x32d445()['remove'](_0x1ef3b9[_0x293ed1('0x19a9')],{'id':_0x1ef3b9['musiconhold']['id']}),_0x11b26e[_0x293ed1('0x425')]({'title':_0x293ed1('0x582'),'msg':(_0x1ef3b9['musiconhold'][_0x293ed1('0x2623')]||'musiconhold')+_0x293ed1('0x2182')}),_0x576152(_0x1ef3b9[_0x293ed1('0x2fe')]);})['catch'](function(_0x5d82df){var _0x367c90=_0x474868;if(_0x5d82df['data']&&_0x5d82df['data'][_0x367c90('0xcd2')]&&_0x5d82df[_0x367c90('0x11d0')][_0x367c90('0xcd2')][_0x367c90('0x25ae')]){_0x1ef3b9[_0x367c90('0xcd2')]=_0x5d82df['data']['errors']||[{'message':_0x5d82df['toString'](),'type':'api.voiceMusicOnHold.delete'}];for(var _0x4910ab=0x0;_0x4910ab<_0x5d82df['data'][_0x367c90('0xcd2')][_0x367c90('0x25ae')];_0x4910ab++){_0x11b26e[_0x367c90('0x8c8')]({'title':_0x5d82df[_0x367c90('0x11d0')][_0x367c90('0xcd2')][_0x4910ab][_0x367c90('0x62e')],'msg':_0x5d82df[_0x367c90('0x11d0')][_0x367c90('0xcd2')][_0x4910ab][_0x367c90('0x27e8')]});}}else _0x11b26e[_0x367c90('0x8c8')]({'title':_0x5d82df[_0x367c90('0x2833')]?_0x367c90('0x27f2')+_0x5d82df[_0x367c90('0x2833')]+'\x20-\x20'+_0x5d82df[_0x367c90('0x1fd7')]:_0x367c90('0x1f8d'),'msg':_0x5d82df[_0x367c90('0x11d0')]?JSON['stringify'](_0x5d82df[_0x367c90('0x11d0')]['message']):_0x5d82df[_0x367c90('0x27e8')]||_0x5d82df['toString']()});});},function(){});}function _0x571a1f(_0x253c35){return _0x253c35===null?undefined:new Date(_0x253c35);}function _0x576152(_0xb2ebee){var _0x23f88d=_0x309f63;_0xd1278c[_0x23f88d('0x11ed')](_0xb2ebee);}}const _0x5e71ae=_0x5809ae,_0x20c3e0=_0x59426a['p']+_0xb635d2('0x13cd');_0x49eb0e[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),'$scope',_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),'api','Auth'];function _0x49eb0e(_0x1043a6,_0xd2e6ea,_0x5cf964,_0x574d56,_0x124010,_0x3f7150,_0x494b4c,_0x36289c,_0x10a0b6,_0x4366e9,_0x4a19d5){var _0x1c8cd2=_0xb635d2,_0x5484d8=this;_0x5484d8['currentUser']=_0x4a19d5[_0x1c8cd2('0x1ef8')](),_0x5484d8[_0x1c8cd2('0x2fe')]={},_0x5484d8['musiconholdMohSounds']={'count':0x0,'rows':[]},_0x5484d8[_0x1c8cd2('0x1e9')]=[],_0x5484d8['crudPermissions'],_0x5484d8['query']={'fields':_0x1c8cd2('0x593'),'limit':0xa,'page':0x1},_0x5484d8[_0x1c8cd2('0x15f9')]=_0x343a62,_0x5484d8[_0x1c8cd2('0x126c')]=_0x289e98,_0x5484d8[_0x1c8cd2('0x155a')]=_0xeec99d,_0x5484d8[_0x1c8cd2('0x425')]=_0x29ed06,_0x5484d8[_0x1c8cd2('0x26af')]=_0x446e52,_0x5484d8['createOrEditMusicOnHoldMohSound']=_0x2d7981,_0x5484d8[_0x1c8cd2('0x1a56')]=_0x51964e,_0x5484d8[_0x1c8cd2('0x1068')]=_0x389f33,_0x5484d8[_0x1c8cd2('0x22e4')]=_0x2754d6,_0x4a19d5[_0x1c8cd2('0x179e')](_0x1c8cd2('0xd14'))?_0x4366e9[_0x1c8cd2('0x392')][_0x1c8cd2('0x22d5')]({'fields':_0x1c8cd2('0x104'),'sort':_0x1c8cd2('0x2623')})[_0x1c8cd2('0xe59')]['then'](function(_0x24d594){var _0x3435b8=_0x1c8cd2;_0x5484d8['sounds']=_0x24d594[_0x3435b8('0x16a7')]||[];})[_0x1c8cd2('0x223b')](function(_0x4b4252){var _0x380406=_0x1c8cd2;_0x10a0b6['error']({'title':_0x4b4252['status']?_0x380406('0x27f2')+_0x4b4252['status']+_0x380406('0x1b7c')+_0x4b4252[_0x380406('0x1fd7')]:'SYSTEM:GET_SOUNDS','msg':_0x4b4252[_0x380406('0x11d0')]?JSON['stringify'](_0x4b4252[_0x380406('0x11d0')]):_0x4b4252[_0x380406('0x94f')]()});}):_0x4366e9['sound']['get']({'fields':'id,name','sort':_0x1c8cd2('0x2623')})[_0x1c8cd2('0xe59')][_0x1c8cd2('0xe19')](function(_0x2f490f){var _0x1d137b=_0x1c8cd2;_0x5484d8[_0x1d137b('0x219b')]=_0x2f490f[_0x1d137b('0x16a7')]||[];})['then'](function(){var _0x12e124=_0x1c8cd2;return _0x4366e9[_0x12e124('0xb59')][_0x12e124('0x22d5')]({'userProfileId':_0x5484d8['currentUser'][_0x12e124('0x1d04')],'sectionId':0x3ef})['$promise'];})[_0x1c8cd2('0xe19')](function(_0x41b8f1){var _0x334cfb=_0x1c8cd2,_0x4d1881=_0x41b8f1&&_0x41b8f1['rows']?_0x41b8f1[_0x334cfb('0x16a7')][0x0]:null;if(!_0x4d1881){var _0x8d744d=[],_0x42786f=null;_0x5484d8[_0x334cfb('0x2fe')]&&(_0x42786f=_0x32d445()[_0x334cfb('0xf15')](_0x5484d8[_0x334cfb('0x219b')],{'id':Number(_0x5484d8['musiconhold']['id'])}));for(var _0x243e0d=0x0;_0x243e0d<_0x5484d8[_0x334cfb('0x219b')][_0x334cfb('0x25ae')];_0x243e0d++){_0x42786f&&_0x5484d8['sounds'][_0x243e0d]['id']===_0x42786f['id']&&(_0x5484d8[_0x334cfb('0x219b')][_0x243e0d][_0x334cfb('0x1e9d')]=![],_0x8d744d[_0x334cfb('0xb76')](_0x5484d8[_0x334cfb('0x219b')][_0x243e0d]));}_0x5484d8[_0x334cfb('0x219b')]=_0x8d744d;}else{if(!_0x4d1881[_0x334cfb('0x11fd')])return _0x4366e9[_0x334cfb('0xd49')][_0x334cfb('0x22d5')]({'sectionId':_0x4d1881['id']})[_0x334cfb('0xe59')]['then'](function(_0x26aa11){var _0xe64e14=_0x334cfb,_0x4af984=_0x32d445()[_0xe64e14('0x65a')](_0x26aa11[_0xe64e14('0x16a7')],function(_0x3c7744){var _0x190467=_0xe64e14;return _0x32d445()[_0x190467('0xf15')](_0x5484d8[_0x190467('0x219b')],{'id':_0x3c7744[_0x190467('0x1104')]});}),_0x5ed5c=null;_0x5484d8[_0xe64e14('0x2fe')]&&(_0x5ed5c=_0x32d445()['find'](_0x5484d8['sounds'],{'id':Number(_0x5484d8[_0xe64e14('0x2fe')]['id'])}));if(_0x5ed5c&&!_0x32d445()[_0xe64e14('0x201a')](_0x4af984,['id',_0x5ed5c['id']])){var _0x4608d6=_0x32d445()['find'](_0x5484d8['sounds'],{'id':_0x5ed5c['id']});_0x4608d6['canSelect']=![],_0x4af984[_0xe64e14('0xb76')](_0x4608d6);}_0x5484d8[_0xe64e14('0x219b')]=_0x4af984;});}})[_0x1c8cd2('0x223b')](function(_0x950e47){var _0x1957bc=_0x1c8cd2;_0x10a0b6['error']({'title':_0x950e47[_0x1957bc('0x2833')]?_0x1957bc('0x27f2')+_0x950e47[_0x1957bc('0x2833')]+_0x1957bc('0x1b7c')+_0x950e47['statusText']:_0x1957bc('0x684'),'msg':_0x950e47[_0x1957bc('0x11d0')]?JSON[_0x1957bc('0x3ad')](_0x950e47['data']):_0x950e47[_0x1957bc('0x94f')]()});});function _0x343a62(_0xdb0d22,_0x472115){var _0x4e0653=_0x1c8cd2;_0x5484d8[_0x4e0653('0x2fe')]=_0xdb0d22,_0x5484d8[_0x4e0653('0xb3d')]=typeof _0x472115!==_0x4e0653('0x1143')?_0x472115:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5484d8['query'][_0x4e0653('0x1293')]=_0x5484d8['musiconhold']['id'],_0x5484d8['query']['id']=_0x5484d8[_0x4e0653('0x2fe')]['id'],_0x446e52();}function _0xeec99d(_0x5021f6,_0x3eda4d,_0xb5e0c7){var _0x39bb10=_0x1c8cd2;return _0x4366e9[_0x39bb10('0x392')]['download']({'id':_0x5021f6['id'],'exists':!![],'attachments':_0xb5e0c7})[_0x39bb10('0xe59')][_0x39bb10('0xe19')](function(_0x4094b2){var _0x102fe2=_0x39bb10,_0x475d60=[_0x4094b2[_0x102fe2('0x17ab')]],_0x240428=_0x102fe2('0x206f')+_0x5021f6['id'],_0x2fa841=new Blob(_0x475d60,{'type':_0x4094b2[_0x102fe2('0x62e')]});_0x240428=_0x5021f6['converted_format']?_0x5021f6['save_name']+'.'+_0x5021f6[_0x102fe2('0x1c84')]:_0x5021f6[_0x102fe2('0x1cb3')];var _0x302ff0=window[_0x102fe2('0x18fa')][_0x102fe2('0x9a1')]('a');_0x302ff0['setAttribute'](_0x102fe2('0xcb7'),URL[_0x102fe2('0x1360')](_0x2fa841)),_0x302ff0[_0x102fe2('0xede')](_0x102fe2('0x1d1e'),_0x240428),document[_0x102fe2('0x19b2')][_0x102fe2('0x1d13')](_0x302ff0),_0x302ff0[_0x102fe2('0xfe7')]();})['catch'](function(_0x3a3a23){var _0xf03afd=_0x39bb10;if(_0x3a3a23[_0xf03afd('0x11d0')]&&_0x3a3a23[_0xf03afd('0x11d0')]['errors']&&_0x3a3a23['data'][_0xf03afd('0xcd2')][_0xf03afd('0x25ae')])for(var _0x27c4e2=0x0;_0x27c4e2<_0x3a3a23[_0xf03afd('0x11d0')]['errors'][_0xf03afd('0x25ae')];_0x27c4e2+=0x1){_0x10a0b6[_0xf03afd('0x8c8')]({'title':_0x3a3a23[_0xf03afd('0x11d0')][_0xf03afd('0xcd2')][_0x27c4e2][_0xf03afd('0x62e')],'msg':_0x3a3a23[_0xf03afd('0x11d0')][_0xf03afd('0xcd2')][_0x27c4e2][_0xf03afd('0x27e8')]});}else _0x10a0b6['error']({'title':_0x3a3a23[_0xf03afd('0x2833')]?'API:'+_0x3a3a23[_0xf03afd('0x2833')]+_0xf03afd('0x1b7c')+_0x3a3a23['statusText']:_0xf03afd('0x131b'),'msg':_0x3a3a23[_0xf03afd('0x11d0')]?JSON['stringify'](_0x3a3a23[_0xf03afd('0x11d0')][_0xf03afd('0x27e8')]):_0x3a3a23[_0xf03afd('0x94f')]()});});}function _0x289e98(_0x16a99f,_0x1276c6){var _0x4087dd=_0x1c8cd2,_0x488f6c=_0x494b4c[_0x4087dd('0xa5')]()[_0x4087dd('0x13e4')](_0x4087dd('0x1644'))[_0x4087dd('0x221c')](_0x4087dd('0xab2')+(_0x16a99f[_0x4087dd('0x2623')]||_0x16a99f['id']&&_0x32d445()[_0x4087dd('0x2077')](_0x4087dd('0x9a0'))+_0x16a99f['id']||'mohSound')+_0x4087dd('0x27bb')+_0x4087dd('0x21bd'))[_0x4087dd('0x4d1')](_0x4087dd('0xb53'))['targetEvent'](_0x1276c6)['ok']('OK')['cancel'](_0x4087dd('0x17'));_0x494b4c[_0x4087dd('0x26b2')](_0x488f6c)[_0x4087dd('0xe19')](function(){_0x389f33(_0x16a99f);},function(){var _0x2e8a58=_0x4087dd;console[_0x2e8a58('0x1fe9')](_0x2e8a58('0x17'));});}function _0x29ed06(_0x10c54e){var _0x3f5e14=_0x1c8cd2;_0x5484d8[_0x3f5e14('0x32c')]=_0x10c54e||{'count':0x0,'rows':[]};}function _0x446e52(){var _0x1f490b=_0x1c8cd2;_0x5484d8[_0x1f490b('0xa16')][_0x1f490b('0xab0')]=(_0x5484d8[_0x1f490b('0xa16')][_0x1f490b('0xc08')]-0x1)*_0x5484d8[_0x1f490b('0xa16')][_0x1f490b('0x1b6d')],_0x5484d8[_0x1f490b('0x9c8')]=_0x4366e9[_0x1f490b('0x1f4a')][_0x1f490b('0x416')](_0x5484d8[_0x1f490b('0xa16')],_0x29ed06)[_0x1f490b('0xe59')];}function _0x2d7981(_0x552eb4,_0x45532d){var _0x28519d=_0x1c8cd2;_0x494b4c[_0x28519d('0x26b2')]({'controller':_0x28519d('0x2320'),'controllerAs':'vm','templateUrl':_0x20c3e0,'parent':angular[_0x28519d('0x24a1')](_0x36289c[_0x28519d('0x19b2')]),'targetEvent':_0x552eb4,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x5484d8[_0x28519d('0x2fe')],'mohSound':_0x45532d,'mohSounds':_0x5484d8[_0x28519d('0x32c')][_0x28519d('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x5484d8[_0x28519d('0xb3d')]}});}function _0x389f33(_0x291318){var _0x1fe6da=_0x1c8cd2;_0x4366e9[_0x1fe6da('0x1f4a')][_0x1fe6da('0x11f8')]({'id':_0x5cf964['params']['id'],'id2':_0x291318['id']})[_0x1fe6da('0xe59')][_0x1fe6da('0xe19')](function(){var _0x498cc2=_0x1fe6da;_0x32d445()[_0x498cc2('0xa8b')](_0x5484d8[_0x498cc2('0x32c')][_0x498cc2('0x16a7')],{'id':_0x291318['id']}),_0x5484d8[_0x498cc2('0x32c')][_0x498cc2('0x148b')]-=0x1,!_0x5484d8['musiconholdMohSounds'][_0x498cc2('0x16a7')][_0x498cc2('0x25ae')]&&_0x446e52(),_0x10a0b6[_0x498cc2('0x425')]({'title':_0x498cc2('0xbfd'),'msg':_0x291318[_0x498cc2('0x2623')]?_0x291318[_0x498cc2('0x2623')]+_0x498cc2('0x2182'):''});})[_0x1fe6da('0x223b')](function(_0x2d4e39){var _0xf10b6=_0x1fe6da;if(_0x2d4e39[_0xf10b6('0x11d0')]&&_0x2d4e39['data'][_0xf10b6('0xcd2')]&&_0x2d4e39[_0xf10b6('0x11d0')][_0xf10b6('0xcd2')][_0xf10b6('0x25ae')]){_0x5484d8[_0xf10b6('0xcd2')]=_0x2d4e39['data'][_0xf10b6('0xcd2')]||[{'message':_0x2d4e39[_0xf10b6('0x94f')](),'type':_0xf10b6('0x1b8b')}];for(var _0x21f8c9=0x0;_0x21f8c9<_0x2d4e39['data']['errors']['length'];_0x21f8c9++){_0x10a0b6['error']({'title':_0x2d4e39[_0xf10b6('0x11d0')][_0xf10b6('0xcd2')][_0x21f8c9][_0xf10b6('0x62e')],'msg':_0x2d4e39['data']['errors'][_0x21f8c9][_0xf10b6('0x27e8')]});}}else _0x10a0b6['error']({'title':_0x2d4e39[_0xf10b6('0x2833')]?_0xf10b6('0x27f2')+_0x2d4e39[_0xf10b6('0x2833')]+_0xf10b6('0x1b7c')+_0x2d4e39['statusText']:_0xf10b6('0x1b8b'),'msg':_0x2d4e39[_0xf10b6('0x11d0')]?JSON['stringify'](_0x2d4e39['data'][_0xf10b6('0x27e8')]):_0x2d4e39[_0xf10b6('0x27e8')]||_0x2d4e39['toString']()});});}function _0x51964e(){var _0x4d4084=_0x1c8cd2,_0x5d080a=angular[_0x4d4084('0x89')](_0x5484d8[_0x4d4084('0x1e9')]);return _0x5484d8[_0x4d4084('0x1e9')]=[],_0x5d080a;}function _0x2754d6(_0x3ea7c7){var _0x550d3d=_0x1c8cd2,_0x2a7ad4=_0x494b4c[_0x550d3d('0xa5')]()['title'](_0x550d3d('0x2118'))[_0x550d3d('0x221c')](''+_0x5484d8[_0x550d3d('0x1e9')][_0x550d3d('0x25ae')]+_0x550d3d('0x5bc')+_0x550d3d('0x21bd'))['ariaLabel'](_0x550d3d('0x117e'))[_0x550d3d('0x1345')](_0x3ea7c7)['ok']('OK')[_0x550d3d('0x2c1')]('CANCEL');_0x494b4c[_0x550d3d('0x26b2')](_0x2a7ad4)[_0x550d3d('0xe19')](function(){var _0x339610=_0x550d3d;_0x5484d8[_0x339610('0x1e9')][_0x339610('0x1d7e')](function(_0x1bda69){_0x389f33(_0x1bda69);}),_0x5484d8[_0x339610('0x1e9')]=[];});}var _0x2c2695=!![],_0x399b73=0x1;_0xd2e6ea['$watch'](_0x1c8cd2('0x1607'),function(_0x2f7f25,_0x505b54){var _0x3a205e=_0x1c8cd2;_0x2c2695?_0x3f7150(function(){_0x2c2695=![];}):(!_0x505b54&&(_0x399b73=_0x5484d8[_0x3a205e('0xa16')][_0x3a205e('0xc08')]),_0x2f7f25!==_0x505b54&&(_0x5484d8[_0x3a205e('0xa16')][_0x3a205e('0xc08')]=0x1),!_0x2f7f25&&(_0x5484d8[_0x3a205e('0xa16')]['page']=_0x399b73),_0x446e52());});}const _0x4af88a=_0x49eb0e;_0x4c8a8d['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x1850'),_0xb635d2('0x206f'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x4c8a8d(_0x419803,_0x33eeb4,_0x3ebc41,_0x5197f1,_0x48fb3a,_0x3e4a00,_0x290189,_0x42c272,_0xc661e1,_0xd1febb,_0x505c49,_0x4e1236,_0x4f5aeb,_0x102e19){var _0x31ff94=_0xb635d2,_0x1e9a36=this;_0x1e9a36['currentUser']=_0x505c49['getCurrentUser'](),_0x1e9a36[_0x31ff94('0xcd2')]=[],_0x1e9a36['setting']=_0x4f5aeb,_0x1e9a36[_0x31ff94('0x5c1')]=_0x4e1236,_0x1e9a36[_0x31ff94('0xb3d')]=_0x102e19,_0x1e9a36[_0x31ff94('0x1ccb')]={},_0x1e9a36[_0x31ff94('0x25ac')]=_0x1e9a36[_0x31ff94('0x22f1')]&&_0x1e9a36['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e9a36[_0x31ff94('0x13e4')]=_0x31ff94('0x230e'),_0x1e9a36[_0x31ff94('0x206f')]=angular['copy'](_0xc661e1),_0x1e9a36[_0x31ff94('0x1850')]=_0x42c272,_0x1e9a36[_0x31ff94('0xaec')]=![];!_0x1e9a36[_0x31ff94('0x206f')]&&(_0x1e9a36[_0x31ff94('0x206f')]={},_0x1e9a36[_0x31ff94('0x13e4')]=_0x31ff94('0x2071'),_0x1e9a36['newMohSound']=!![]);_0x33eeb4[_0x31ff94('0x2ef')]['id']&&(_0x1e9a36[_0x31ff94('0x206f')][_0x31ff94('0x1293')]=_0x33eeb4['params']['id']);_0x1e9a36[_0x31ff94('0x1794')]=_0x1191fa,_0x1e9a36[_0x31ff94('0x134a')]=_0x394653,_0x1e9a36['deleteMohSound']=_0x4b3980,_0x1e9a36[_0x31ff94('0x2635')]=_0x2c13c6,_0x1e9a36['closeDialog']=_0x29eb1f,_0x505c49[_0x31ff94('0x179e')](_0x31ff94('0xd14'))?_0xd1febb[_0x31ff94('0x392')][_0x31ff94('0x22d5')]({'fields':_0x31ff94('0x104'),'sort':'name'})[_0x31ff94('0xe59')]['then'](function(_0x3f6e57){var _0x561046=_0x31ff94;_0x1e9a36['sounds']=_0x3f6e57[_0x561046('0x16a7')]||[];})[_0x31ff94('0x223b')](function(_0x3089d3){var _0x31be3c=_0x31ff94;_0x290189['error']({'title':_0x3089d3[_0x31be3c('0x2833')]?'API:'+_0x3089d3[_0x31be3c('0x2833')]+_0x31be3c('0x1b7c')+_0x3089d3[_0x31be3c('0x1fd7')]:_0x31be3c('0x13c9'),'msg':_0x3089d3[_0x31be3c('0x11d0')]?JSON['stringify'](_0x3089d3['data']):_0x3089d3[_0x31be3c('0x94f')]()});}):_0xd1febb['sound'][_0x31ff94('0x22d5')]({'fields':_0x31ff94('0x104'),'sort':_0x31ff94('0x2623')})[_0x31ff94('0xe59')]['then'](function(_0x400140){var _0xaaf33d=_0x31ff94;_0x1e9a36[_0xaaf33d('0x219b')]=_0x400140['rows']||[];})[_0x31ff94('0xe19')](function(){var _0x31fef4=_0x31ff94;return _0xd1febb['userProfileSection']['get']({'userProfileId':_0x1e9a36[_0x31fef4('0x15a5')][_0x31fef4('0x1d04')],'sectionId':0x3ef})[_0x31fef4('0xe59')];})[_0x31ff94('0xe19')](function(_0x2398de){var _0x15de1f=_0x31ff94,_0x338011=_0x2398de&&_0x2398de['rows']?_0x2398de[_0x15de1f('0x16a7')][0x0]:null;if(!_0x338011){var _0x1679ec=[],_0x51b6d2=null;_0x1e9a36[_0x15de1f('0x206f')]&&(_0x51b6d2=_0x32d445()[_0x15de1f('0xf15')](_0x1e9a36[_0x15de1f('0x219b')],{'id':Number(_0x1e9a36[_0x15de1f('0x206f')]['id'])}));for(var _0x56e4d8=0x0;_0x56e4d8<_0x1e9a36[_0x15de1f('0x219b')][_0x15de1f('0x25ae')];_0x56e4d8++){_0x51b6d2&&_0x1e9a36[_0x15de1f('0x219b')][_0x56e4d8]['id']===_0x51b6d2['id']&&(_0x1e9a36[_0x15de1f('0x219b')][_0x56e4d8]['canSelect']=![],_0x1679ec[_0x15de1f('0xb76')](_0x1e9a36['sounds'][_0x56e4d8]));}_0x1e9a36[_0x15de1f('0x219b')]=_0x1679ec;}else{if(!_0x338011['autoAssociation'])return _0xd1febb[_0x15de1f('0xd49')][_0x15de1f('0x22d5')]({'sectionId':_0x338011['id']})['$promise']['then'](function(_0x59ec3e){var _0x559bb9=_0x15de1f,_0x133b6d=_0x32d445()[_0x559bb9('0x65a')](_0x59ec3e[_0x559bb9('0x16a7')],function(_0x26739f){var _0x1d2cd3=_0x559bb9;return _0x32d445()['find'](_0x1e9a36[_0x1d2cd3('0x219b')],{'id':_0x26739f[_0x1d2cd3('0x1104')]});}),_0x3505bb=null;_0x1e9a36['mohSound']&&(_0x3505bb=_0x32d445()[_0x559bb9('0xf15')](_0x1e9a36[_0x559bb9('0x219b')],{'id':Number(_0x1e9a36[_0x559bb9('0x206f')]['id'])}));if(_0x3505bb&&!_0x32d445()[_0x559bb9('0x201a')](_0x133b6d,['id',_0x3505bb['id']])){var _0x544208=_0x32d445()['find'](_0x1e9a36[_0x559bb9('0x219b')],{'id':_0x3505bb['id']});_0x544208['canSelect']=![],_0x133b6d[_0x559bb9('0xb76')](_0x544208);}_0x1e9a36[_0x559bb9('0x219b')]=_0x133b6d;});}})[_0x31ff94('0x223b')](function(_0x2a2f76){var _0x2eea0f=_0x31ff94;_0x290189['error']({'title':_0x2a2f76[_0x2eea0f('0x2833')]?_0x2eea0f('0x27f2')+_0x2a2f76[_0x2eea0f('0x2833')]+'\x20-\x20'+_0x2a2f76[_0x2eea0f('0x1fd7')]:_0x2eea0f('0x684'),'msg':_0x2a2f76[_0x2eea0f('0x11d0')]?JSON[_0x2eea0f('0x3ad')](_0x2a2f76[_0x2eea0f('0x11d0')]):_0x2a2f76[_0x2eea0f('0x94f')]()});});function _0x1191fa(){var _0x13c8b1=_0x31ff94;_0x1e9a36[_0x13c8b1('0xcd2')]=[],_0xd1febb[_0x13c8b1('0x1f4a')]['addSound']({'id':_0x33eeb4['params']['id']},_0x1e9a36['mohSound'])['$promise'][_0x13c8b1('0xe19')](function(_0xe96e5c){var _0x1b7673=_0x13c8b1;_0x1e9a36['mohSounds'][_0x1b7673('0x14c9')](_0xe96e5c[_0x1b7673('0x250e')]()),_0x290189[_0x1b7673('0x425')]({'title':_0x1b7673('0x3fc'),'msg':_0x1e9a36[_0x1b7673('0x206f')][_0x1b7673('0x2623')]?_0x1e9a36['mohSound'][_0x1b7673('0x2623')]+'\x20has\x20been\x20created!':''}),_0x29eb1f(_0xe96e5c);})[_0x13c8b1('0x223b')](function(_0x1faf5f){var _0xc5962b=_0x13c8b1;if(_0x1faf5f['data']&&_0x1faf5f[_0xc5962b('0x11d0')][_0xc5962b('0xcd2')]&&_0x1faf5f[_0xc5962b('0x11d0')][_0xc5962b('0xcd2')]['length']){_0x1e9a36[_0xc5962b('0xcd2')]=_0x1faf5f[_0xc5962b('0x11d0')][_0xc5962b('0xcd2')]||[{'message':_0x1faf5f['toString'](),'type':_0xc5962b('0x131b')}];for(var _0x4e2d70=0x0;_0x4e2d70<_0x1faf5f[_0xc5962b('0x11d0')][_0xc5962b('0xcd2')][_0xc5962b('0x25ae')];_0x4e2d70+=0x1){_0x290189['error']({'title':_0x1faf5f[_0xc5962b('0x11d0')][_0xc5962b('0xcd2')][_0x4e2d70][_0xc5962b('0x62e')],'msg':_0x1faf5f[_0xc5962b('0x11d0')][_0xc5962b('0xcd2')][_0x4e2d70][_0xc5962b('0x27e8')]});}}else _0x290189[_0xc5962b('0x8c8')]({'title':_0x1faf5f[_0xc5962b('0x2833')]?'API:'+_0x1faf5f[_0xc5962b('0x2833')]+_0xc5962b('0x1b7c')+_0x1faf5f[_0xc5962b('0x1fd7')]:_0xc5962b('0x131b'),'msg':_0x1faf5f[_0xc5962b('0x11d0')]?JSON[_0xc5962b('0x3ad')](_0x1faf5f[_0xc5962b('0x11d0')][_0xc5962b('0x27e8')]):_0x1faf5f[_0xc5962b('0x94f')]()});});}function _0x394653(){var _0x29784b=_0x31ff94;_0x1e9a36[_0x29784b('0xcd2')]=[],_0xd1febb['voiceMusicOnHold'][_0x29784b('0xa70')]({'id':_0x1e9a36['mohSound']['id']},_0x1e9a36['mohSound'])[_0x29784b('0xe59')][_0x29784b('0xe19')](function(_0x5dfe77){var _0x25d183=_0x29784b,_0x22a8c2=_0x32d445()[_0x25d183('0xf15')](_0x1e9a36[_0x25d183('0x1850')],{'id':_0x5dfe77['id']});_0x22a8c2&&_0x32d445()[_0x25d183('0x1d8')](_0x22a8c2,_0x32d445()[_0x25d183('0xed5')](_0x5dfe77[_0x25d183('0x250e')](),_0x32d445()[_0x25d183('0x1234')](_0x22a8c2))),_0x290189[_0x25d183('0x425')]({'title':'MohSound\x20properly\x20saved!','msg':_0x1e9a36[_0x25d183('0x206f')][_0x25d183('0x2623')]?_0x1e9a36[_0x25d183('0x206f')]['name']+_0x25d183('0x1c19'):''}),_0x29eb1f(_0x5dfe77);})[_0x29784b('0x223b')](function(_0x492509){var _0x4d367c=_0x29784b;if(_0x492509[_0x4d367c('0x11d0')]&&_0x492509['data'][_0x4d367c('0xcd2')]&&_0x492509['data'][_0x4d367c('0xcd2')][_0x4d367c('0x25ae')]){_0x1e9a36[_0x4d367c('0xcd2')]=_0x492509['data'][_0x4d367c('0xcd2')]||[{'message':_0x492509['toString'](),'type':'api.voiceMusicOnHold.update'}];for(var _0x45a40c=0x0;_0x45a40c<_0x492509[_0x4d367c('0x11d0')]['errors'][_0x4d367c('0x25ae')];_0x45a40c++){_0x290189[_0x4d367c('0x8c8')]({'title':_0x492509['data'][_0x4d367c('0xcd2')][_0x45a40c][_0x4d367c('0x62e')],'msg':_0x492509[_0x4d367c('0x11d0')][_0x4d367c('0xcd2')][_0x45a40c][_0x4d367c('0x27e8')]});}}else _0x290189[_0x4d367c('0x8c8')]({'title':_0x492509['status']?'API:'+_0x492509[_0x4d367c('0x2833')]+_0x4d367c('0x1b7c')+_0x492509[_0x4d367c('0x1fd7')]:_0x4d367c('0x2199'),'msg':_0x492509[_0x4d367c('0x11d0')]?JSON['stringify'](_0x492509[_0x4d367c('0x11d0')]['message']):_0x492509[_0x4d367c('0x94f')]()});});}function _0x4b3980(_0x390280){var _0x5f1a8c=_0x31ff94;_0x1e9a36['errors']=[];var _0x4f7b80=_0x5197f1[_0x5f1a8c('0xa5')]()[_0x5f1a8c('0x13e4')](_0x5f1a8c('0x24d0'))['content']('The\x20mohSound\x20will\x20be\x20deleted.')['ariaLabel'](_0x5f1a8c('0x802'))['ok'](_0x5f1a8c('0x2198'))[_0x5f1a8c('0x2c1')](_0x5f1a8c('0x8a3'))[_0x5f1a8c('0x1345')](_0x390280);_0x5197f1[_0x5f1a8c('0x26b2')](_0x4f7b80)[_0x5f1a8c('0xe19')](function(){var _0x4afe70=_0x5f1a8c;_0xd1febb['voiceMusicOnHold'][_0x4afe70('0x229e')]({'id':_0x1e9a36['mohSound']['id']})['$promise']['then'](function(){var _0x25991a=_0x4afe70;_0x32d445()[_0x25991a('0xa8b')](_0x1e9a36[_0x25991a('0x1850')],{'id':_0x1e9a36[_0x25991a('0x206f')]['id']}),_0x290189[_0x25991a('0x425')]({'title':'MohSound\x20properly\x20deleted!','msg':(_0x1e9a36['mohSound'][_0x25991a('0x2623')]||'mohSound')+_0x25991a('0x2182')}),_0x29eb1f(_0x1e9a36[_0x25991a('0x206f')]);})['catch'](function(_0xac353a){var _0x87c499=_0x4afe70;if(_0xac353a[_0x87c499('0x11d0')]&&_0xac353a[_0x87c499('0x11d0')][_0x87c499('0xcd2')]&&_0xac353a[_0x87c499('0x11d0')][_0x87c499('0xcd2')][_0x87c499('0x25ae')]){_0x1e9a36[_0x87c499('0xcd2')]=_0xac353a[_0x87c499('0x11d0')][_0x87c499('0xcd2')]||[{'message':_0xac353a[_0x87c499('0x94f')](),'type':_0x87c499('0x1f8d')}];for(var _0x502f8b=0x0;_0x502f8b<_0xac353a['data'][_0x87c499('0xcd2')][_0x87c499('0x25ae')];_0x502f8b++){_0x290189[_0x87c499('0x8c8')]({'title':_0xac353a['data'][_0x87c499('0xcd2')][_0x502f8b][_0x87c499('0x62e')],'msg':_0xac353a[_0x87c499('0x11d0')][_0x87c499('0xcd2')][_0x502f8b]['message']});}}else _0x290189[_0x87c499('0x8c8')]({'title':_0xac353a[_0x87c499('0x2833')]?_0x87c499('0x27f2')+_0xac353a[_0x87c499('0x2833')]+_0x87c499('0x1b7c')+_0xac353a[_0x87c499('0x1fd7')]:'api.voiceMusicOnHold.delete','msg':_0xac353a[_0x87c499('0x11d0')]?JSON[_0x87c499('0x3ad')](_0xac353a[_0x87c499('0x11d0')][_0x87c499('0x27e8')]):_0xac353a[_0x87c499('0x27e8')]||_0xac353a[_0x87c499('0x94f')]()});});},function(){});}function _0x2c13c6(_0x5a6803){return _0x5a6803===null?undefined:new Date(_0x5a6803);}function _0x29eb1f(_0x4e359d){var _0x2bc148=_0x31ff94;_0x5197f1[_0x2bc148('0x11ed')](_0x4e359d);}}const _0x52a274=_0x4c8a8d;_0x177d50['$inject']=[_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),'license','setting',_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x2fe'),_0xb635d2('0xb59')];function _0x177d50(_0x1a152f,_0x195aec,_0x402111,_0x5af7a9,_0x108119,_0x589be4,_0x32ed95,_0x3de6fd,_0x5c6be8,_0x11542c,_0xf8f295,_0x225465){var _0x2a748a=_0xb635d2,_0x3facfc=this;_0x3facfc[_0x2a748a('0x15a5')]=_0x11542c[_0x2a748a('0x1ef8')](),_0x3facfc['license']=_0x589be4,_0x3facfc[_0x2a748a('0x22f1')]=_0x32ed95,_0x3facfc[_0x2a748a('0x25ac')]=_0x3facfc[_0x2a748a('0x22f1')][_0x2a748a('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3facfc['location']=_0x195aec[_0x2a748a('0xec0')]()+_0x2a748a('0x21a8')+_0x195aec[_0x2a748a('0x3b7')](),_0x3facfc[_0x2a748a('0x2fe')]=_0xf8f295||_0x1a152f[_0x2a748a('0x2ef')][_0x2a748a('0x2fe')]||{},_0x3facfc['userProfileSection']=_0x225465&&_0x225465[_0x2a748a('0x148b')]==0x1?_0x225465[_0x2a748a('0x16a7')][0x0]:null,_0x3facfc[_0x2a748a('0xb3d')]=_0x11542c[_0x2a748a('0xd31')](_0x3facfc[_0x2a748a('0xb59')]?_0x3facfc[_0x2a748a('0xb59')][_0x2a748a('0xb3d')]:null),_0x3facfc[_0x2a748a('0x1ccb')]={},_0x3facfc[_0x2a748a('0xc7b')]=_0x1a152f[_0x2a748a('0x2ef')][_0x2a748a('0x435')]||0x0,_0x3facfc[_0x2a748a('0xbdc')]=_0x5c6be8[_0x2a748a('0x1e67')],_0x3facfc[_0x2a748a('0x1ee2')]=_0x556e1e,_0x3facfc['saveMusicOnHold']=_0x2e33f6;function _0x556e1e(){var _0x3262da=_0x2a748a;_0x1a152f['go']('app.voice.musiconholds',{},{'reload':_0x3262da('0x1950')});}function _0x2e33f6(){var _0x32f18f=_0x2a748a;_0x3de6fd[_0x32f18f('0x1f4a')][_0x32f18f('0xa70')]({'id':_0x3facfc[_0x32f18f('0x2fe')]['id']},_0x3facfc['musiconhold'])[_0x32f18f('0xe59')]['then'](function(){var _0x5bcd43=_0x32f18f;_0x5c6be8[_0x5bcd43('0x425')]({'title':_0x5bcd43('0x185d'),'msg':_0x3facfc['musiconhold']['name']?_0x3facfc['musiconhold']['name']+_0x5bcd43('0x283b'):''});})[_0x32f18f('0x223b')](function(_0x22590b){var _0x44cba0=_0x32f18f;_0x5c6be8['error']({'title':_0x22590b[_0x44cba0('0x2833')]?_0x44cba0('0x27f2')+_0x22590b[_0x44cba0('0x2833')]+'\x20-\x20'+_0x22590b[_0x44cba0('0x1fd7')]:_0x44cba0('0x1b8b'),'msg':_0x22590b[_0x44cba0('0x11d0')]?JSON[_0x44cba0('0x3ad')](_0x22590b[_0x44cba0('0x11d0')]):_0x22590b[_0x44cba0('0x94f')]()});});}}const _0x921177=_0x177d50,_0x588490=_0x59426a['p']+_0xb635d2('0x1815');_0x5ce0d3['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),'$translate','musiconholds',_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x5ce0d3(_0xd93368,_0x503a82,_0x360872,_0x51d79e,_0x3044d1,_0x6d8fcd,_0x5bd710,_0x565af0,_0x5f04ec,_0x546939,_0x26c37f,_0xafe1fc,_0x241ab3,_0x5bb30f,_0x5b6314,_0x7f3806,_0x3c4f99){var _0x4c09d7=_0xb635d2,_0x2102ab=this;_0x2102ab[_0x4c09d7('0x5c1')]=_0x7f3806,_0x2102ab[_0x4c09d7('0x22f1')]=_0x3c4f99,_0x2102ab['currentUser']=_0x5b6314['getCurrentUser'](),_0x2102ab[_0x4c09d7('0x19a9')]=_0x5f04ec||{'count':0x0,'rows':[]},_0x2102ab[_0x4c09d7('0x154f')]=_0x546939,_0x2102ab['userProfileSection']=_0x26c37f&&_0x26c37f[_0x4c09d7('0x148b')]==0x1?_0x26c37f[_0x4c09d7('0x16a7')][0x0]:null,_0x2102ab['crudPermissions']=_0x5b6314[_0x4c09d7('0xd31')](_0x2102ab[_0x4c09d7('0xb59')]?_0x2102ab[_0x4c09d7('0xb59')][_0x4c09d7('0xb3d')]:null),_0x2102ab[_0x4c09d7('0x19b6')]='musiconholds',_0x2102ab['listOrder']='',_0x2102ab[_0x4c09d7('0x190c')]=null,_0x2102ab['selectedMusicOnHolds']=[],_0x2102ab[_0x4c09d7('0xa16')]={'fields':_0x4c09d7('0x23d4'),'defaultEntry':'false','limit':0xa,'page':0x1},_0x2102ab[_0x4c09d7('0xacf')]=_0x32d445()[_0x4c09d7('0x226f')]([{'option':_0x4c09d7('0x17a2'),'value':_0x4c09d7('0x23b1')},{'option':_0x4c09d7('0x1d31'),'value':_0x4c09d7('0x23f3')}],function(_0x138239){var _0x3ddb55=_0x4c09d7;return _0x32d445()[_0x3ddb55('0x1b42')](_0x138239[_0x3ddb55('0x2')],new RegExp('\x27','g'),'');}),_0x2102ab[_0x4c09d7('0x19ba')]=_0x32d445()[_0x4c09d7('0x226f')]([{'option':'Random','value':'\x27random\x27'},{'option':_0x4c09d7('0x1c88'),'value':_0x4c09d7('0x21e5')}],function(_0x4c7793){var _0x2a210a=_0x4c09d7;return _0x32d445()[_0x2a210a('0x1b42')](_0x4c7793['value'],new RegExp('\x27','g'),'');}),_0x2102ab['editstate']=_0x3642d1,_0x2102ab[_0x4c09d7('0x1d9e')]=_0x3bd76f,_0x2102ab[_0x4c09d7('0x425')]=_0x3ea5be,_0x2102ab[_0x4c09d7('0x2624')]=_0x2f4d76,_0x2102ab['createOrEditMusicOnHold']=_0x33f234,_0x2102ab[_0x4c09d7('0x13b')]=_0x1f37a4,_0x2102ab[_0x4c09d7('0xc46')]=_0x5706f7,_0x2102ab[_0x4c09d7('0xf1d')]=_0x461a31,_0x2102ab['deselectMusicOnHolds']=_0x17643d,_0x2102ab[_0x4c09d7('0x1b49')]=_0x42351a;function _0x3642d1(_0x432d51){_0x360872['go']('app.voice.musiconholds.edit',{'id':_0x432d51['id'],'musiconhold':_0x432d51,'crudPermissions':_0x2102ab['crudPermissions']});}function _0x3bd76f(_0x4183b9,_0x3c2d77){var _0x55635f=_0x4c09d7,_0x88307e=_0x3044d1[_0x55635f('0xa5')]()[_0x55635f('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()[_0x55635f('0x1df2')](_0x55635f('0x2fe'))+'?')[_0x55635f('0x221c')](''+(_0x4183b9[_0x55635f('0x2623')]||_0x55635f('0x2fe'))+_0x55635f('0x27bb')+_0x55635f('0x21bd'))[_0x55635f('0x4d1')](_0x55635f('0xd55'))[_0x55635f('0x1345')](_0x3c2d77)['ok']('OK')[_0x55635f('0x2c1')](_0x55635f('0x17'));_0x3044d1['show'](_0x88307e)[_0x55635f('0xe19')](function(){_0x1f37a4(_0x4183b9);},function(){var _0x27f8ff=_0x55635f;console[_0x27f8ff('0x1fe9')](_0x27f8ff('0x17'));});}var _0x398864=!![],_0x5160cc=0x1;_0xd93368[_0x4c09d7('0x107')]('vm.query.filter',function(_0x54d64c,_0x107c8b){var _0x4d5bd0=_0x4c09d7;_0x398864?_0x5bd710(function(){_0x398864=![];}):(!_0x107c8b&&(_0x5160cc=_0x2102ab['query'][_0x4d5bd0('0xc08')]),_0x54d64c!==_0x107c8b&&(_0x2102ab[_0x4d5bd0('0xa16')]['page']=0x1),!_0x54d64c&&(_0x2102ab['query'][_0x4d5bd0('0xc08')]=_0x5160cc),_0x2102ab[_0x4d5bd0('0x2624')]());});function _0x3ea5be(_0x1988cb){var _0x2ac427=_0x4c09d7;_0x2102ab[_0x2ac427('0x19a9')]=_0x1988cb||{'count':0x0,'rows':[]};}function _0x2f4d76(){var _0xeaeb16=_0x4c09d7;_0x2102ab[_0xeaeb16('0xa16')][_0xeaeb16('0xab0')]=(_0x2102ab[_0xeaeb16('0xa16')][_0xeaeb16('0xc08')]-0x1)*_0x2102ab['query'][_0xeaeb16('0x1b6d')],_0x5b6314[_0xeaeb16('0x179e')]('admin')?_0x2102ab[_0xeaeb16('0x9c8')]=_0xafe1fc[_0xeaeb16('0x1f4a')][_0xeaeb16('0x22d5')](_0x2102ab['query'],_0x3ea5be)[_0xeaeb16('0xe59')]:(_0x2102ab[_0xeaeb16('0xa16')]['id']=_0x2102ab[_0xeaeb16('0x154f')]['id'],_0x2102ab[_0xeaeb16('0xa16')]['section']=_0xeaeb16('0x1eb6'),_0x2102ab['promise']=_0xafe1fc['userProfile'][_0xeaeb16('0x14e6')](_0x2102ab['query'],_0x3ea5be)['$promise']);}function _0x33f234(_0x475526,_0x494f05){var _0x3b4a6a=_0x4c09d7;_0x3044d1['show']({'controller':'CreateOrEditMusicOnHoldDialogController','controllerAs':'vm','templateUrl':_0x588490,'parent':angular[_0x3b4a6a('0x24a1')](_0x6d8fcd[_0x3b4a6a('0x19b2')]),'targetEvent':_0x475526,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x494f05,'musiconholds':_0x2102ab['musiconholds'][_0x3b4a6a('0x16a7')],'license':_0x2102ab[_0x3b4a6a('0x5c1')],'setting':_0x2102ab[_0x3b4a6a('0x22f1')],'crudPermissions':_0x2102ab['crudPermissions']}});}function _0x1f37a4(_0x2be050){var _0x3f5c52=_0x4c09d7;_0xafe1fc[_0x3f5c52('0x1f4a')][_0x3f5c52('0x229e')]({'id':_0x2be050['id']})[_0x3f5c52('0xe59')][_0x3f5c52('0xe19')](function(){var _0x3eeecf=_0x3f5c52;_0x32d445()[_0x3eeecf('0xa8b')](_0x2102ab[_0x3eeecf('0x19a9')]['rows'],{'id':_0x2be050['id']}),_0x2102ab['musiconholds']['count']-=0x1,!_0x2102ab[_0x3eeecf('0x19a9')][_0x3eeecf('0x16a7')][_0x3eeecf('0x25ae')]&&_0x2102ab['getMusicOnHolds'](),_0x5bb30f[_0x3eeecf('0x425')]({'title':_0x32d445()[_0x3eeecf('0x1df2')](_0x3eeecf('0x1f94'))+_0x3eeecf('0x1219'),'msg':_0x2be050['name']?_0x2be050[_0x3eeecf('0x2623')]+_0x3eeecf('0x2182'):''});})[_0x3f5c52('0x223b')](function(_0xd92b26){var _0xc76a42=_0x3f5c52;if(_0xd92b26[_0xc76a42('0x11d0')]&&_0xd92b26['data'][_0xc76a42('0xcd2')]&&_0xd92b26[_0xc76a42('0x11d0')]['errors'][_0xc76a42('0x25ae')]){_0x2102ab['errors']=_0xd92b26[_0xc76a42('0x11d0')][_0xc76a42('0xcd2')]||[{'message':_0xd92b26['toString'](),'type':_0xc76a42('0x1107')}];for(var _0x441324=0x0;_0x441324<_0xd92b26[_0xc76a42('0x11d0')][_0xc76a42('0xcd2')][_0xc76a42('0x25ae')];_0x441324++){_0x5bb30f[_0xc76a42('0x8c8')]({'title':_0xd92b26[_0xc76a42('0x11d0')]['errors'][_0x441324][_0xc76a42('0x62e')],'msg':_0xd92b26[_0xc76a42('0x11d0')][_0xc76a42('0xcd2')][_0x441324][_0xc76a42('0x27e8')]});}}else _0x5bb30f[_0xc76a42('0x8c8')]({'title':_0xd92b26[_0xc76a42('0x2833')]?'API:'+_0xd92b26[_0xc76a42('0x2833')]+_0xc76a42('0x1b7c')+_0xd92b26[_0xc76a42('0x1fd7')]:'SYSTEM:DELETEvoiceMusicOnHold','msg':_0xd92b26[_0xc76a42('0x11d0')]?JSON['stringify'](_0xd92b26['data'][_0xc76a42('0x27e8')]):_0xd92b26[_0xc76a42('0x27e8')]||_0xd92b26[_0xc76a42('0x94f')]()});});}function _0x5706f7(){var _0x1ee99a=_0x4c09d7,_0x37dca3=angular[_0x1ee99a('0x89')](_0x2102ab[_0x1ee99a('0x1704')]);return _0x2102ab[_0x1ee99a('0x1704')]=[],_0x37dca3;}function _0x461a31(_0x5801fb){var _0x318bc0=_0x4c09d7,_0x555288=_0x3044d1[_0x318bc0('0xa5')]()[_0x318bc0('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20musiconholds?')[_0x318bc0('0x221c')](_0x318bc0('0xab2')+_0x2102ab[_0x318bc0('0x1704')]['length']+'\x20selected'+_0x318bc0('0x21bd'))['ariaLabel'](_0x318bc0('0x12e9'))[_0x318bc0('0x1345')](_0x5801fb)['ok']('OK')[_0x318bc0('0x2c1')](_0x318bc0('0x17'));_0x3044d1[_0x318bc0('0x26b2')](_0x555288)[_0x318bc0('0xe19')](function(){var _0xeefd3a=_0x318bc0;_0x2102ab[_0xeefd3a('0x1704')]['forEach'](function(_0x1cc45d){_0x1f37a4(_0x1cc45d);}),_0x2102ab[_0xeefd3a('0x1704')]=[];});}function _0x17643d(){var _0x51a0cf=_0x4c09d7;_0x2102ab[_0x51a0cf('0x1704')]=[];}function _0x42351a(){var _0x18ac27=_0x4c09d7;_0x2102ab['selectedMusicOnHolds']=_0x2102ab['musiconholds'][_0x18ac27('0x16a7')];}}const _0x40b1d8=_0x5ce0d3;_0x2ef2f4[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate','toasty',_0xb635d2('0xa95'),_0xb635d2('0x20de'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x2ef2f4(_0x23333a,_0x326f1d,_0x123cac,_0x296a21,_0x4f7671,_0x3e7800,_0x4fa3bd,_0x5e8dc7,_0x1150dc,_0x54526c,_0x3a3833,_0x540277,_0x25267a,_0x3fc716){var _0x101294=_0xb635d2,_0x2961e0=this;_0x2961e0[_0x101294('0x15a5')]=_0x3a3833[_0x101294('0x1ef8')](),_0x2961e0[_0x101294('0xcd2')]=[],_0x2961e0[_0x101294('0x22f1')]=_0x25267a,_0x2961e0[_0x101294('0x5c1')]=_0x540277,_0x2961e0[_0x101294('0xb3d')]=_0x3fc716,_0x2961e0[_0x101294('0x1ccb')]={},_0x2961e0[_0x101294('0x25ac')]=_0x2961e0['setting']&&_0x2961e0[_0x101294('0x22f1')][_0x101294('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2961e0['title']=_0x101294('0x21a4'),_0x2961e0['outboundroute']=angular['copy'](_0x1150dc),_0x2961e0[_0x101294('0xa95')]=_0x5e8dc7,_0x2961e0[_0x101294('0x1f7b')]=![],_0x2961e0['outboundrouteApps']={'count':0x0,'rows':[]},_0x2961e0[_0x101294('0x23bb')]=_0x32d445()[_0x101294('0x1337')](_0x32d445()['sortBy']([{'app':'Interval','appType':_0x101294('0x134c'),'type':_0x101294('0x5d1'),'types':[_0x101294('0x2210'),'custom',_0x101294('0x15a8')],'fields':[],'isApp':![]},{'app':_0x101294('0x8e7'),'appType':_0x101294('0x3d2'),'context':_0x101294('0x280c'),'type':_0x101294('0x5d1'),'icon':_0x101294('0x27be'),'interval':_0x101294('0x2292'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x101294('0x155e'),'route':_0x101294('0x1397'),'filters':{'fields':'name','sort':'name'}},{'name':_0x101294('0x1105'),'route':_0x101294('0x2037'),'filters':{'fields':_0x101294('0x2623'),'sort':_0x101294('0x2623'),'nolimit':!![]}}],'fields':[{'title':_0x101294('0x1317'),'name':'trunk','type':_0x101294('0x14b8'),'values':_0x101294('0x155e'),'value':_0x101294('0x280d'),'option':_0x101294('0x280d'),'required':!![],'param':0x0},{'title':_0x101294('0x1174'),'name':_0x101294('0xfca'),'type':_0x101294('0x1bc6'),'ngPattern':_0x101294('0x3f6'),'help':!![]},{'title':'Prefix','name':_0x101294('0x2580'),'type':'text'},{'title':_0x101294('0x1e7b'),'name':_0x101294('0x2037'),'type':_0x101294('0x14b8'),'values':'tags','value':'tag.name','option':_0x101294('0x460'),'defaultValues':[{'value':_0x101294('0x1566'),'option':_0x101294('0x1b16')}]},{'title':_0x101294('0x784'),'name':_0x101294('0x2058'),'type':_0x101294('0x1c60'),'min':0x0,'param':0x1},{'title':'Options','name':'options','type':_0x101294('0x1bc6'),'param':0x2},{'title':_0x101294('0x1685'),'name':_0x101294('0x2647'),'type':_0x101294('0x1bc6'),'param':0x3}]},{'app':null,'type':_0x101294('0x5d1'),'appType':_0x101294('0x261d'),'icon':_0x101294('0x27be'),'interval':_0x101294('0x2292'),'isApp':!![],'fields':[{'title':_0x101294('0x1a4d'),'name':_0x101294('0xf2b'),'type':_0x101294('0x1bc6'),'required':!![],'param':0x0},{'title':_0x101294('0x374'),'name':_0x101294('0x26d2'),'type':'text','param':0x1}]}],[_0x101294('0xf2b')]),{'isApp':![]});!_0x2961e0[_0x101294('0x20de')]&&(_0x2961e0['outboundroute']={'appdata':_0x101294('0x26a3'),'type':_0x101294('0x1fdf'),'context':_0x101294('0x280c'),'recordingFormat':_0x101294('0x23ca')},_0x2961e0[_0x101294('0x13e4')]=_0x101294('0x25ba'),_0x2961e0[_0x101294('0x1f7b')]=!![]);_0x2961e0['addNewOutboundRoute']=_0x1994ff,_0x2961e0[_0x101294('0x1487')]=_0x41b277,_0x2961e0[_0x101294('0x1cf7')]=_0x4e80b2,_0x2961e0[_0x101294('0x2635')]=_0x21b337,_0x2961e0[_0x101294('0x20b4')]=_0x112c35,_0x2961e0['closeDialog']=_0xff7888,_0x3a3833[_0x101294('0x179e')](_0x101294('0xd14'))?_0x54526c['voiceContext'][_0x101294('0x22d5')]({'fields':_0x101294('0x104'),'sort':'name','nolimit':'true'})['$promise'][_0x101294('0xe19')](function(_0x593bf9){var _0x447b51=_0x101294;_0x2961e0[_0x447b51('0x3c1')]=_0x593bf9['rows']||[];})[_0x101294('0x223b')](function(_0x48e3ee){var _0x42887c=_0x101294;_0x4fa3bd[_0x42887c('0x8c8')]({'title':_0x48e3ee[_0x42887c('0x2833')]?'API:'+_0x48e3ee[_0x42887c('0x2833')]+_0x42887c('0x1b7c')+_0x48e3ee['statusText']:_0x42887c('0x17ac'),'msg':_0x48e3ee[_0x42887c('0x11d0')]?JSON[_0x42887c('0x3ad')](_0x48e3ee['data']):_0x48e3ee[_0x42887c('0x94f')]()});}):_0x54526c['voiceContext'][_0x101294('0x22d5')]({'fields':_0x101294('0x104'),'sort':_0x101294('0x2623'),'nolimit':_0x101294('0x2206')})['$promise'][_0x101294('0xe19')](function(_0x55066a){var _0x756bc6=_0x101294;_0x2961e0[_0x756bc6('0x3c1')]=_0x55066a[_0x756bc6('0x16a7')]||[];})[_0x101294('0xe19')](function(){var _0x1f7bf5=_0x101294;return _0x54526c[_0x1f7bf5('0xb59')]['get']({'userProfileId':_0x2961e0[_0x1f7bf5('0x15a5')][_0x1f7bf5('0x1d04')],'sectionId':0x195})['$promise'];})[_0x101294('0xe19')](function(_0x4bc692){var _0x449a9f=_0x101294,_0x4ce537=_0x4bc692&&_0x4bc692[_0x449a9f('0x16a7')]?_0x4bc692[_0x449a9f('0x16a7')][0x0]:null;if(!_0x4ce537)return _0x54526c[_0x449a9f('0x2768')]['get']({'fields':_0x449a9f('0x104'),'sort':_0x449a9f('0x2623'),'nolimit':'true','defaultEntry':0x1})[_0x449a9f('0xe59')][_0x449a9f('0xe19')](function(_0x20d3a2){var _0x59f7b5=_0x449a9f;_0x2961e0[_0x59f7b5('0x3c1')]=_0x20d3a2[_0x59f7b5('0x16a7')]||[];});else{if(!_0x4ce537[_0x449a9f('0x11fd')])return _0x54526c[_0x449a9f('0xd49')][_0x449a9f('0x22d5')]({'sectionId':_0x4ce537['id']})[_0x449a9f('0xe59')][_0x449a9f('0xe19')](function(_0x302e76){var _0x2bfe48=_0x449a9f,_0x274c2f=_0x32d445()[_0x2bfe48('0x65a')](_0x302e76[_0x2bfe48('0x16a7')],function(_0x4623aa){var _0x338cfe=_0x2bfe48;return _0x32d445()[_0x338cfe('0xf15')](_0x2961e0[_0x338cfe('0x3c1')],{'id':_0x4623aa[_0x338cfe('0x1104')]});}),_0x39598a=null;_0x2961e0[_0x2bfe48('0x20de')]&&(_0x39598a=_0x32d445()['find'](_0x2961e0['contexts'],{'name':_0x2961e0[_0x2bfe48('0x20de')]['context']}));if(_0x39598a&&!_0x32d445()[_0x2bfe48('0x201a')](_0x274c2f,['id',_0x39598a['id']])){var _0x341016=_0x32d445()[_0x2bfe48('0xf15')](_0x2961e0[_0x2bfe48('0x3c1')],{'id':_0x39598a['id']});_0x341016[_0x2bfe48('0x1e9d')]=![],_0x274c2f['push'](_0x341016);}_0x2961e0['contexts']=_0x274c2f;});}})['catch'](function(_0x45e4b1){var _0x129cb2=_0x101294;_0x4fa3bd['error']({'title':_0x45e4b1[_0x129cb2('0x2833')]?_0x129cb2('0x27f2')+_0x45e4b1[_0x129cb2('0x2833')]+'\x20-\x20'+_0x45e4b1['statusText']:_0x129cb2('0x12ed'),'msg':_0x45e4b1[_0x129cb2('0x11d0')]?JSON[_0x129cb2('0x3ad')](_0x45e4b1['data']):_0x45e4b1[_0x129cb2('0x94f')]()});});function _0x1994ff(){var _0x14b2d5=_0x101294;_0x2961e0[_0x14b2d5('0xcd2')]=[],_0x54526c[_0x14b2d5('0x1979')][_0x14b2d5('0xe5e')](_0x2961e0[_0x14b2d5('0x20de')])[_0x14b2d5('0xe59')][_0x14b2d5('0xe19')](function(_0x2abe70){var _0x4669e1=_0x14b2d5;_0x2961e0[_0x4669e1('0xa95')][_0x4669e1('0x14c9')](_0x2abe70[_0x4669e1('0x250e')]()),_0x4fa3bd[_0x4669e1('0x425')]({'title':_0x4669e1('0x1b35'),'msg':_0x2961e0['outboundroute']['name']?_0x2961e0[_0x4669e1('0x20de')][_0x4669e1('0x2623')]+_0x4669e1('0x105f'):''}),_0xff7888(_0x2abe70);})[_0x14b2d5('0x223b')](function(_0x413269){var _0x5d1143=_0x14b2d5;if(_0x413269[_0x5d1143('0x11d0')]&&_0x413269['data']['errors']&&_0x413269[_0x5d1143('0x11d0')]['errors'][_0x5d1143('0x25ae')]){_0x2961e0[_0x5d1143('0xcd2')]=_0x413269['data'][_0x5d1143('0xcd2')]||[{'message':_0x413269[_0x5d1143('0x94f')](),'type':_0x5d1143('0x6b2')}];for(var _0x440450=0x0;_0x440450<_0x413269[_0x5d1143('0x11d0')][_0x5d1143('0xcd2')]['length'];_0x440450+=0x1){_0x4fa3bd['error']({'title':_0x413269[_0x5d1143('0x11d0')][_0x5d1143('0xcd2')][_0x440450][_0x5d1143('0x62e')],'msg':_0x413269[_0x5d1143('0x11d0')][_0x5d1143('0xcd2')][_0x440450][_0x5d1143('0x27e8')]});}}else _0x4fa3bd[_0x5d1143('0x8c8')]({'title':_0x413269[_0x5d1143('0x2833')]?_0x5d1143('0x27f2')+_0x413269[_0x5d1143('0x2833')]+_0x5d1143('0x1b7c')+_0x413269[_0x5d1143('0x1fd7')]:_0x5d1143('0x6b2'),'msg':_0x413269['data']?JSON['stringify'](_0x413269['data'][_0x5d1143('0x27e8')]):_0x413269[_0x5d1143('0x94f')]()});});}function _0x41b277(){var _0x1a2dd6=_0x101294;_0x2961e0[_0x1a2dd6('0xcd2')]=[],_0x54526c[_0x1a2dd6('0x1979')]['update']({'id':_0x2961e0[_0x1a2dd6('0x20de')]['id']},_0x2961e0['outboundroute'])[_0x1a2dd6('0xe59')][_0x1a2dd6('0xe19')](function(_0x548438){var _0xb23759=_0x1a2dd6,_0x5dbf40=_0x32d445()[_0xb23759('0xf15')](_0x2961e0[_0xb23759('0xa95')],{'id':_0x548438['id']});_0x5dbf40&&(_0x32d445()[_0xb23759('0x1d8')](_0x5dbf40,_0x32d445()[_0xb23759('0xed5')](_0x548438[_0xb23759('0x250e')](),_0x32d445()[_0xb23759('0x1234')](_0x5dbf40))),_0x54526c[_0xb23759('0x1979')]['get']({'sort':_0xb23759('0xb33'),'VoiceExtensionId':_0x5dbf40['id'],'isApp':!![],'nolimit':!![]})[_0xb23759('0xe59')][_0xb23759('0xe19')](function(_0x3a17cb){var _0x3e7011=_0xb23759;_0x2961e0[_0x3e7011('0xc2d')]=_0x3a17cb,_0x112c35();})),_0x4fa3bd['success']({'title':_0xb23759('0x384'),'msg':_0x2961e0['outboundroute'][_0xb23759('0x2623')]?_0x2961e0[_0xb23759('0x20de')][_0xb23759('0x2623')]+'\x20has\x20been\x20saved!':''}),_0xff7888(_0x548438);})['catch'](function(_0x1a3d88){var _0x39e3c9=_0x1a2dd6;if(_0x1a3d88[_0x39e3c9('0x11d0')]&&_0x1a3d88['data'][_0x39e3c9('0xcd2')]&&_0x1a3d88[_0x39e3c9('0x11d0')][_0x39e3c9('0xcd2')]['length']){_0x2961e0[_0x39e3c9('0xcd2')]=_0x1a3d88[_0x39e3c9('0x11d0')][_0x39e3c9('0xcd2')]||[{'message':_0x1a3d88[_0x39e3c9('0x94f')](),'type':_0x39e3c9('0x38e')}];for(var _0x1b4db5=0x0;_0x1b4db5<_0x1a3d88[_0x39e3c9('0x11d0')]['errors'][_0x39e3c9('0x25ae')];_0x1b4db5++){_0x4fa3bd[_0x39e3c9('0x8c8')]({'title':_0x1a3d88[_0x39e3c9('0x11d0')][_0x39e3c9('0xcd2')][_0x1b4db5][_0x39e3c9('0x62e')],'msg':_0x1a3d88[_0x39e3c9('0x11d0')][_0x39e3c9('0xcd2')][_0x1b4db5][_0x39e3c9('0x27e8')]});}}else _0x4fa3bd['error']({'title':_0x1a3d88[_0x39e3c9('0x2833')]?_0x39e3c9('0x27f2')+_0x1a3d88['status']+_0x39e3c9('0x1b7c')+_0x1a3d88[_0x39e3c9('0x1fd7')]:_0x39e3c9('0x38e'),'msg':_0x1a3d88['data']?JSON[_0x39e3c9('0x3ad')](_0x1a3d88[_0x39e3c9('0x11d0')][_0x39e3c9('0x27e8')]):_0x1a3d88[_0x39e3c9('0x94f')]()});});}function _0x4e80b2(_0x573049){var _0x59072d=_0x101294;_0x54526c[_0x59072d('0x21df')][_0x59072d('0x22d5')]({'VoiceExtensionId':_0x1150dc['id']})[_0x59072d('0xe59')][_0x59072d('0xe19')](function(_0x2b76bd){var _0xa74491=_0x59072d;if(_0x2b76bd&&_0x2b76bd[_0xa74491('0x16a7')]&&_0x2b76bd[_0xa74491('0x16a7')][_0xa74491('0x25ae')]>0x0)return _0x4fa3bd['error']({'title':_0xa74491('0x191d'),'msg':'You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix'});else{_0x2961e0[_0xa74491('0xcd2')]=[];var _0x39a641=_0x296a21['confirm']()[_0xa74491('0x13e4')](_0xa74491('0x24d0'))[_0xa74491('0xd0')](_0xa74491('0x23c5'))[_0xa74491('0x4d1')](_0xa74491('0x2de'))['ok'](_0xa74491('0x2198'))[_0xa74491('0x2c1')](_0xa74491('0x8a3'))['targetEvent'](_0x573049);_0x296a21['show'](_0x39a641)[_0xa74491('0xe19')](function(){var _0x3c4343=_0xa74491;_0x54526c[_0x3c4343('0x1979')][_0x3c4343('0x229e')]({'id':_0x2961e0[_0x3c4343('0x20de')]['id']})[_0x3c4343('0xe59')][_0x3c4343('0xe19')](function(){var _0xcfb38e=_0x3c4343;_0x32d445()[_0xcfb38e('0xa8b')](_0x2961e0[_0xcfb38e('0xa95')],{'id':_0x2961e0[_0xcfb38e('0x20de')]['id']}),_0x4fa3bd[_0xcfb38e('0x425')]({'title':_0xcfb38e('0x711'),'msg':(_0x2961e0[_0xcfb38e('0x20de')][_0xcfb38e('0x2623')]||'outboundroute')+_0xcfb38e('0x2182')}),_0xff7888(_0x2961e0[_0xcfb38e('0x20de')]);})[_0x3c4343('0x223b')](function(_0x52016f){var _0x3d8c96=_0x3c4343;if(_0x52016f[_0x3d8c96('0x11d0')]&&_0x52016f['data']['errors']&&_0x52016f[_0x3d8c96('0x11d0')][_0x3d8c96('0xcd2')][_0x3d8c96('0x25ae')]){_0x2961e0[_0x3d8c96('0xcd2')]=_0x52016f[_0x3d8c96('0x11d0')][_0x3d8c96('0xcd2')]||[{'message':_0x52016f[_0x3d8c96('0x94f')](),'type':'api.voiceExtension.delete'}];for(var _0x3b1c2d=0x0;_0x3b1c2d<_0x52016f['data'][_0x3d8c96('0xcd2')][_0x3d8c96('0x25ae')];_0x3b1c2d++){_0x4fa3bd[_0x3d8c96('0x8c8')]({'title':_0x52016f['data'][_0x3d8c96('0xcd2')][_0x3b1c2d][_0x3d8c96('0x62e')],'msg':_0x52016f[_0x3d8c96('0x11d0')]['errors'][_0x3b1c2d]['message']});}}else _0x4fa3bd[_0x3d8c96('0x8c8')]({'title':_0x52016f[_0x3d8c96('0x2833')]?'API:'+_0x52016f[_0x3d8c96('0x2833')]+'\x20-\x20'+_0x52016f[_0x3d8c96('0x1fd7')]:_0x3d8c96('0x269e'),'msg':_0x52016f[_0x3d8c96('0x11d0')]?JSON['stringify'](_0x52016f[_0x3d8c96('0x11d0')][_0x3d8c96('0x27e8')]):_0x52016f['message']||_0x52016f[_0x3d8c96('0x94f')]()});});},function(){});}});}function _0x112c35(){var _0x42ab0f=_0x101294,_0x345182=0x2,_0x548aa1=[];_0x548aa1[_0x42ab0f('0xb76')]({'type':_0x42ab0f('0x1fdf'),'app':_0x42ab0f('0x2771'),'appdata':_0x42ab0f('0x12a8'),'context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'exten':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x632')],'priority':_0x345182++,'VoiceExtensionId':_0x2961e0['outboundroute']['id']}),_0x548aa1[_0x42ab0f('0xb76')]({'type':'outbound','app':_0x42ab0f('0x2771'),'appdata':_0x42ab0f('0xc9d')+(_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x27f6')]?'${EXTEN:'+_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x27f6')]+'}':'${EXTEN}'),'context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'exten':_0x2961e0['outboundroute'][_0x42ab0f('0x632')],'priority':_0x345182++,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']}),_0x548aa1['push']({'type':_0x42ab0f('0x1fdf'),'app':_0x42ab0f('0x2771'),'appdata':'XCALLY-MOTION-ANSWER=0','context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'exten':_0x2961e0['outboundroute'][_0x42ab0f('0x632')],'priority':_0x345182++,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']}),_0x548aa1[_0x42ab0f('0xb76')]({'type':_0x42ab0f('0x1fdf'),'app':_0x42ab0f('0x2771'),'appdata':_0x42ab0f('0x6b7'),'context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'exten':_0x2961e0['outboundroute'][_0x42ab0f('0x632')],'priority':_0x345182++,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']}),_0x548aa1[_0x42ab0f('0xb76')]({'type':_0x42ab0f('0x1fdf'),'app':_0x42ab0f('0x2771'),'appdata':_0x42ab0f('0xf46'),'context':_0x2961e0[_0x42ab0f('0x20de')]['context'],'exten':_0x2961e0['outboundroute'][_0x42ab0f('0x632')],'priority':_0x345182++,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']}),_0x548aa1['push']({'type':_0x42ab0f('0x1fdf'),'app':'Set','appdata':'outboundrouteid='+_0x2961e0[_0x42ab0f('0x20de')]['id'],'context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'exten':_0x2961e0['outboundroute'][_0x42ab0f('0x632')],'priority':_0x345182++,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']});typeof _0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x150c')]!==_0x42ab0f('0x1143')&&_0x2961e0['outboundroute'][_0x42ab0f('0x150c')]!==_0x42ab0f('0x23ca')&&(_0x548aa1[_0x42ab0f('0xb76')]({'type':'outbound','app':_0x42ab0f('0x2771'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'exten':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x632')],'priority':_0x345182++,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']}),_0x548aa1[_0x42ab0f('0xb76')]({'type':_0x42ab0f('0x1fdf'),'app':'Set','appdata':_0x42ab0f('0x18d3')+_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x150c')]||0x0,'context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'exten':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x632')],'priority':_0x345182++,'VoiceExtensionId':_0x2961e0['outboundroute']['id']}));for(var _0x5e8ef1=0x0,_0x18f5a4=0x0;_0x5e8ef1<_0x2961e0[_0x42ab0f('0xc2d')][_0x42ab0f('0x16a7')][_0x42ab0f('0x25ae')];_0x5e8ef1++,_0x18f5a4=0x0){var _0x2ca3da=_0x2961e0[_0x42ab0f('0xc2d')][_0x42ab0f('0x16a7')][_0x5e8ef1],_0x418195=[],_0x88f0b5=[];_0x2ca3da[_0x42ab0f('0x10e0')]=_0x2ca3da[_0x42ab0f('0x134c')]!==_0x42ab0f('0x2292')?[_0x2ca3da[_0x42ab0f('0x134c')]]:_0x2ca3da[_0x42ab0f('0x1fc1')]?_0x32d445()[_0x42ab0f('0x65a')](_0x32d445()[_0x42ab0f('0x2891')](_0x2961e0[_0x42ab0f('0x10e0')][_0x42ab0f('0x16a7')],{'IntervalId':_0x2ca3da[_0x42ab0f('0x1fc1')]}),_0x42ab0f('0x134c')):[],_0x2ca3da[_0x42ab0f('0x1318')]=_0x2961e0[_0x42ab0f('0x20de')]['context'],_0x2ca3da['exten']=_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x632')];_0x2ca3da[_0x42ab0f('0x62e')]&&(_0x2ca3da[_0x42ab0f('0x62e')]=_0x2ca3da[_0x42ab0f('0x62e')][_0x42ab0f('0x20dd')]());typeof _0x2ca3da[_0x42ab0f('0x2037')]!==_0x42ab0f('0x1143')&&(_0x2ca3da['tag']&&_0x2ca3da[_0x42ab0f('0x2037')]!=='--'&&_0x418195['push']({'type':_0x2ca3da[_0x42ab0f('0x62e')][_0x42ab0f('0x20dd')](),'app':_0x42ab0f('0x2771'),'appdata':_0x42ab0f('0x9ad')+_0x2ca3da[_0x42ab0f('0x2037')],'context':_0x2961e0['outboundroute'][_0x42ab0f('0x1318')],'exten':_0x2961e0['outboundroute'][_0x42ab0f('0x632')],'priority':_0x2ca3da[_0x42ab0f('0x10e0')]['length']+_0x345182+_0x18f5a4++,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']}));_0x2ca3da[_0x42ab0f('0xfca')]?_0x418195[_0x42ab0f('0xb76')]({'type':_0x2ca3da[_0x42ab0f('0x62e')][_0x42ab0f('0x20dd')](),'app':_0x42ab0f('0x4aa'),'appdata':_0x42ab0f('0x526')+_0x2ca3da[_0x42ab0f('0xfca')]+')','context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'exten':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x632')],'priority':_0x2ca3da[_0x42ab0f('0x10e0')][_0x42ab0f('0x25ae')]+_0x345182+_0x18f5a4++,'VoiceExtensionId':_0x2961e0['outboundroute']['id']}):_0x418195['push']({'type':_0x2ca3da[_0x42ab0f('0x62e')][_0x42ab0f('0x20dd')](),'app':_0x42ab0f('0x4aa'),'appdata':_0x42ab0f('0x1554'),'context':_0x2961e0['outboundroute'][_0x42ab0f('0x1318')],'exten':_0x2961e0[_0x42ab0f('0x20de')]['exten'],'priority':_0x2ca3da['intervals']['length']+_0x345182+_0x18f5a4++,'VoiceExtensionId':_0x2961e0['outboundroute']['id']});for(var _0xf86505=0x0;_0xf86505<_0x2ca3da[_0x42ab0f('0x10e0')][_0x42ab0f('0x25ae')];_0xf86505++){var _0x428d50=_0x345182+_0x2ca3da['intervals'][_0x42ab0f('0x25ae')],_0x22865d=_0xf86505===_0x2ca3da['intervals'][_0x42ab0f('0x25ae')]-0x1?_0x345182+_0x418195[_0x42ab0f('0x25ae')]+_0x88f0b5[_0x42ab0f('0x25ae')]+0x2:_0x345182+_0xf86505+0x1;_0x418195[_0x42ab0f('0x1c8e')](_0xf86505,0x0,{'type':_0x42ab0f('0x1fdf'),'app':_0x42ab0f('0x1476'),'appdata':_0x2ca3da[_0x42ab0f('0x10e0')][_0xf86505]+'?'+_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')]+_0x42ab0f('0x126f')+_0x428d50+':'+_0x2961e0[_0x42ab0f('0x20de')]['context']+_0x42ab0f('0x126f')+_0x22865d,'exten':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x632')],'context':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x1318')],'priority':_0x345182+_0xf86505,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']});}if(_0x2ca3da[_0x42ab0f('0xf44')]==='outboundDial'){var _0x48e19d=_0x32d445()['find'](_0x2961e0[_0x42ab0f('0x23bb')],{'appType':'outboundDial'});if(_0x48e19d&&_0x48e19d[_0x42ab0f('0x1d17')]){var _0x1bedd2={},_0x5c488f=_0x2ca3da[_0x42ab0f('0x26d2')][_0x42ab0f('0x1745')](','),_0x622b50=[];for(var _0x541cd5=0x0,_0x3d49d7=_0x48e19d[_0x42ab0f('0x1d17')][_0x42ab0f('0x25ae')];_0x541cd5<_0x3d49d7;_0x541cd5++){if(typeof _0x48e19d[_0x42ab0f('0x1d17')][_0x541cd5][_0x42ab0f('0x242d')]!==_0x42ab0f('0x1143'))switch(_0x48e19d[_0x42ab0f('0x1d17')][_0x541cd5][_0x42ab0f('0x2623')]){case'trunk':_0x1bedd2['trunk']=_0x5c488f[_0x48e19d['fields'][_0x541cd5][_0x42ab0f('0x242d')]][_0x42ab0f('0x1745')]('/')[0x1],_0x1bedd2[_0x42ab0f('0x1ef5')]=_0x5c488f[_0x48e19d[_0x42ab0f('0x1d17')][_0x541cd5][_0x42ab0f('0x242d')]][_0x42ab0f('0x1745')]('/')[0x2],_0x1bedd2[_0x42ab0f('0x2580')]=_0x1bedd2[_0x42ab0f('0x1ef5')]?_0x1bedd2[_0x42ab0f('0x1ef5')][_0x42ab0f('0x1745')]('$')[0x0]:undefined,_0x1bedd2[_0x42ab0f('0x1ef5')]=_0x2961e0[_0x42ab0f('0x20de')]['cutdigits']?(_0x1bedd2[_0x42ab0f('0x2580')]||'')+'${EXTEN:'+_0x2961e0['outboundroute'][_0x42ab0f('0x27f6')]+'}':(_0x1bedd2[_0x42ab0f('0x2580')]||'')+_0x42ab0f('0x16b5'),_0x622b50[_0x48e19d[_0x42ab0f('0x1d17')][_0x541cd5]['param']]=[_0x42ab0f('0x1295'),_0x1bedd2[_0x42ab0f('0x1397')],_0x1bedd2[_0x42ab0f('0x1ef5')]][_0x42ab0f('0x1537')]('/');break;case _0x42ab0f('0x2116'):_0x1bedd2[_0x42ab0f('0x2116')]=_0x5c488f[_0x48e19d[_0x42ab0f('0x1d17')][_0x541cd5][_0x42ab0f('0x242d')]];_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x150c')]!==_0x42ab0f('0x23ca')?_0x1bedd2[_0x42ab0f('0x2116')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x1bedd2[_0x42ab0f('0x2116')]+=_0x42ab0f('0x767')):_0x1bedd2[_0x42ab0f('0x2116')]=_0x1bedd2['options']['replace']('U(xcally-mixmonitor-context)','');_0x622b50[_0x48e19d[_0x42ab0f('0x1d17')][_0x541cd5]['param']]=_0x1bedd2[_0x42ab0f('0x2116')];break;default:_0x622b50[_0x48e19d[_0x42ab0f('0x1d17')][_0x541cd5][_0x42ab0f('0x242d')]]=_0x5c488f[_0x48e19d['fields'][_0x541cd5][_0x42ab0f('0x242d')]];}}_0x2ca3da[_0x42ab0f('0x26d2')]=_0x622b50[_0x42ab0f('0x1537')](',');}}_0x2ca3da[_0x42ab0f('0xb33')]=_0x418195[_0x42ab0f('0x25ae')]?_0x32d445()[_0x42ab0f('0x27ed')](_0x418195)[_0x42ab0f('0xb33')]+0x1:_0x345182,_0x345182=(_0x88f0b5[_0x42ab0f('0x25ae')]?_0x32d445()[_0x42ab0f('0x27ed')](_0x88f0b5)[_0x42ab0f('0xb33')]:_0x2ca3da[_0x42ab0f('0xb33')])+0x1,_0x548aa1=_0x32d445()['concat'](_0x548aa1,_0x418195,[_0x2ca3da],_0x88f0b5);}_0x548aa1['push']({'type':_0x42ab0f('0x1fdf'),'app':_0x42ab0f('0x9b6'),'exten':_0x2961e0[_0x42ab0f('0x20de')][_0x42ab0f('0x632')],'context':_0x2961e0['outboundroute']['context'],'priority':_0x345182,'VoiceExtensionId':_0x2961e0[_0x42ab0f('0x20de')]['id']}),_0x54526c[_0x42ab0f('0x1979')]['addApplications']({'id':_0x2961e0[_0x42ab0f('0x20de')]['id']},_0x32d445()['sortBy'](_0x548aa1,_0x42ab0f('0xb33')))['$promise'][_0x42ab0f('0xe19')](function(_0x5877cb){var _0x22db46=_0x42ab0f;_0x2961e0['outboundrouteApps'][_0x22db46('0x16a7')]=_0x5877cb['rows'];})['catch'](function(_0x7735){var _0x3aac7c=_0x42ab0f;console[_0x3aac7c('0x8c8')](_0x7735);});}function _0x21b337(_0x125991){return _0x125991===null?undefined:new Date(_0x125991);}function _0xff7888(_0x506156){_0x296a21['hide'](_0x506156);}}const _0x3a593b=_0x2ef2f4,_0x46176c=_0x59426a['p']+'src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog-[chunkhash].html',_0x51f7b3=_0x59426a['p']+_0xb635d2('0x1075'),_0x3e413e=_0x59426a['p']+_0xb635d2('0x1fcb');_0x2e8416[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0x46d'),_0xb635d2('0x63c'),'Auth'];var _0x346f9b={'custom':_0x46176c,'interval':_0x51f7b3,'outbounddial':_0x3e413e};function _0x2e8416(_0x3e2fe2,_0x2ee409,_0x26f4d6,_0x2eff0f,_0x16baa6,_0x5a2cc8,_0x52b1db){var _0x56907a=_0xb635d2,_0x832c28=this;_0x832c28[_0x56907a('0x15a5')]=_0x52b1db['getCurrentUser'](),_0x832c28['outboundroute']={},_0x832c28[_0x56907a('0xc2d')]={'count':0x0,'rows':[]},_0x832c28[_0x56907a('0xfd9')]=[],_0x832c28[_0x56907a('0xb3d')],_0x832c28[_0x56907a('0xa16')]={'sort':_0x56907a('0xb33')},_0x832c28['apps']=_0x32d445()[_0x56907a('0x1337')](_0x32d445()[_0x56907a('0x14c')]([{'app':_0x56907a('0x2102'),'appType':_0x56907a('0x134c'),'type':_0x56907a('0x5d1'),'types':[_0x56907a('0x2210'),'custom','list'],'fields':[],'isApp':![]},{'app':_0x56907a('0x8e7'),'appType':_0x56907a('0x3d2'),'context':_0x56907a('0x280c'),'type':_0x56907a('0x5d1'),'icon':_0x56907a('0x27be'),'interval':_0x56907a('0x2292'),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x56907a('0x1397'),'key':_0x56907a('0x2623')},'route':_0x56907a('0x1397'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x56907a('0x1105'),'field':{'name':_0x56907a('0x2037'),'key':_0x56907a('0x2623')},'route':_0x56907a('0x2037'),'filters':{'fields':'id,name','sort':_0x56907a('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Trunk','name':_0x56907a('0x1397'),'type':_0x56907a('0x14b8'),'values':_0x56907a('0x155e'),'value':'trunk.name','option':_0x56907a('0x280d'),'required':!![],'param':0x0},{'title':_0x56907a('0x1174'),'name':_0x56907a('0xfca'),'type':_0x56907a('0x1bc6'),'help':!![]},{'title':'Prefix','name':_0x56907a('0x2580'),'type':_0x56907a('0x1bc6')},{'title':_0x56907a('0x1e7b'),'name':_0x56907a('0x2037'),'type':_0x56907a('0x14b8'),'values':_0x56907a('0x1105'),'value':_0x56907a('0x460'),'option':_0x56907a('0x460'),'defaultValues':[{'value':_0x56907a('0x1566'),'option':_0x56907a('0x1b16')}]},{'title':'Timeout','name':_0x56907a('0x2058'),'type':'number','min':0x0,'param':0x1},{'title':'Options','name':_0x56907a('0x2116'),'type':_0x56907a('0x1bc6'),'param':0x2},{'title':_0x56907a('0x1685'),'name':_0x56907a('0x2647'),'type':'text','param':0x3}]},{'app':null,'type':_0x56907a('0x5d1'),'appType':_0x56907a('0x261d'),'icon':'icon-apps','interval':_0x56907a('0x2292'),'isApp':!![],'fields':[{'title':_0x56907a('0x1a4d'),'name':'app','type':_0x56907a('0x1bc6'),'required':!![],'param':0x0},{'title':_0x56907a('0x374'),'name':_0x56907a('0x26d2'),'type':_0x56907a('0x1bc6'),'param':0x1}]}],[_0x56907a('0xf2b')]),{'isApp':![]}),_0x832c28[_0x56907a('0x15a8')]={'group':{'name':_0x56907a('0x866'),'pull':_0x56907a('0x2384')},'animation':0x64,'sort':![]},_0x832c28[_0x56907a('0x2358')]={'group':{'name':_0x56907a('0x328'),'put':'opt1'},'animation':0x64,'onAdd':function _0x33fff3(_0x521abf){var _0x1bf6a1=_0x56907a;_0x3be284(_0x521abf,_0x521abf[_0x1bf6a1('0x11ad')]);},'onSort':function _0x4fcf5f(){_0x3f8d9c();}},_0x832c28[_0x56907a('0x15f9')]=_0x558f60,_0x832c28[_0x56907a('0x126c')]=_0x4ebbf1,_0x832c28[_0x56907a('0x2113')]=_0x40a40f,_0x832c28[_0x56907a('0x1b95')]=_0x3be284,_0x832c28['editInterval']=_0x7d85e1,_0x832c28[_0x56907a('0x900')]=_0x3db621,_0x832c28['deleteSelectedOutboundRouteApps']=_0x174733,_0x832c28[_0x56907a('0x20b4')]=_0x3f8d9c,_0x832c28['getIntervals']=_0x33e58b,_0x832c28[_0x56907a('0x1fd2')]=_0x3c8411;function _0x558f60(_0xa9618f,_0x5824a0){var _0x209702=_0x56907a;_0x832c28[_0x209702('0x20de')]=_0xa9618f,_0x832c28[_0x209702('0xb3d')]=typeof _0x5824a0!==_0x209702('0x1143')?_0x5824a0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x832c28[_0x209702('0x2358')][_0x209702('0x1ebc')]=!_0x832c28[_0x209702('0xb3d')][_0x209702('0x12bc')]?!![]:![],_0x16baa6['on'](_0x209702('0x2774'),_0x832c28[_0x209702('0x1fd2')]),_0x832c28[_0x209702('0xa16')][_0x209702('0x2444')]=_0xa9618f['id'],_0x832c28[_0x209702('0xa16')][_0x209702('0x1144')]=!![],_0x832c28[_0x209702('0xa16')]['nolimit']=!![],_0x832c28[_0x209702('0x2113')](),_0x832c28['getIntervals']();}function _0x3c8411(_0x3d2034){var _0x2cca6a=_0x56907a;_0x3d2034[_0x2cca6a('0x2444')]===_0x832c28[_0x2cca6a('0x20de')]['id']&&_0x3f8d9c(!![]);}function _0x4ebbf1(_0x31d579,_0x41885f,_0x58c9fc){var _0x4913b2=_0x56907a,_0x36aa67=_0x2ee409['confirm']()[_0x4913b2('0x13e4')](_0x4913b2('0x21ed'))[_0x4913b2('0x221c')](_0x4913b2('0xab2')+_0x31d579[_0x4913b2('0xf2b')]+_0x4913b2('0x27bb')+'\x20will\x20be\x20deleted.')[_0x4913b2('0x4d1')](_0x4913b2('0x21d1'))['targetEvent'](_0x58c9fc)['ok']('OK')[_0x4913b2('0x2c1')](_0x4913b2('0x17'));_0x2ee409[_0x4913b2('0x26b2')](_0x36aa67)[_0x4913b2('0xe19')](function(){var _0x4ad7a8=_0x4913b2;_0x832c28[_0x4ad7a8('0xc2d')]['rows'][_0x4ad7a8('0x1c8e')](_0x41885f,0x1),_0x3f8d9c();},function(){var _0x2376a1=_0x4913b2;console[_0x2376a1('0x1fe9')](_0x2376a1('0x17'));});}function _0x3be284(_0x396ae0,_0x23b358){var _0x5c9590=_0x56907a;if(_0x832c28[_0x5c9590('0xc2d')]['rows'][_0x5c9590('0x25ae')]){var _0x13888b=_0x832c28['outboundrouteApps']['rows'][_0x23b358]?_0x832c28['outboundrouteApps']['rows'][_0x23b358]:_0x832c28[_0x5c9590('0xc2d')]['rows'][0x0],_0x3771f0=(_0x13888b[_0x5c9590('0xf44')]||_0x13888b['app'])['toLowerCase']();_0x2ee409['show']({'controller':'EditoutboundApp'[_0x5c9590('0x1007')](_0x3771f0,_0x5c9590('0x2893')),'controllerAs':'vm','templateUrl':_0x346f9b[_0x3771f0],'parent':angular['element'](_0x26f4d6['body']),'targetEvent':_0x396ae0,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x13888b,'outboundroute':_0x832c28['outboundroute'],'crudPermissions':_0x832c28[_0x5c9590('0xb3d')]}})[_0x5c9590('0xe19')](function(_0x4b9185){var _0x214fae=_0x5c9590;_0x4b9185&&(_0x4b9185['id']?_0x832c28['outboundrouteApps']['rows'][_0x23b358]=_0x4b9185:_0x832c28[_0x214fae('0xc2d')][_0x214fae('0x16a7')]['splice'](_0x23b358,0x0,_0x4b9185),_0x3f8d9c());})[_0x5c9590('0x223b')](function(_0x4b3c49){var _0x331791=_0x5c9590;_0x4b3c49&&_0x2eff0f[_0x331791('0x8c8')]({'title':_0x4b3c49[_0x331791('0x2833')]?'API:'+_0x4b3c49[_0x331791('0x2833')]+'\x20-\x20'+_0x4b3c49[_0x331791('0x1fd7')]:_0x331791('0x1c4b'),'msg':_0x4b3c49['data']?JSON[_0x331791('0x3ad')](_0x4b3c49[_0x331791('0x11d0')]):_0x4b3c49[_0x331791('0x94f')]()});});}}function _0x7d85e1(_0x51a878,_0x436fd0){var _0x5c0202=_0x56907a;if(_0x832c28[_0x5c0202('0xc2d')][_0x5c0202('0x16a7')][_0x5c0202('0x25ae')]){var _0x42906d=_0x832c28[_0x5c0202('0xc2d')][_0x5c0202('0x16a7')][_0x436fd0]?_0x832c28['outboundrouteApps'][_0x5c0202('0x16a7')][_0x436fd0]:_0x832c28['outboundrouteApps']['rows'][0x0];_0x2ee409[_0x5c0202('0x26b2')]({'controller':_0x5c0202('0xd23'),'controllerAs':'vm','templateUrl':_0x51f7b3,'parent':angular[_0x5c0202('0x24a1')](_0x26f4d6[_0x5c0202('0x19b2')]),'targetEvent':_0x51a878,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x42906d['interval'],'IntervalId':_0x42906d[_0x5c0202('0x1fc1')],'application':!![]},'intervals':[],'crudPermissions':_0x832c28['crudPermissions']}})[_0x5c0202('0xe19')](function(_0x34b71a){var _0x17e224=_0x5c0202;_0x34b71a&&(_0x42906d[_0x17e224('0x134c')]=_0x34b71a['interval']||_0x17e224('0x2292'),_0x42906d[_0x17e224('0x1fc1')]=_0x34b71a[_0x17e224('0x1fc1')]||null,_0x3f8d9c());});}}function _0x3f8d9c(_0x339fc1){var _0x3e0814=_0x56907a,_0x4a0abd=0x2,_0x4366b0=[];_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x2771'),'appdata':_0x3e0814('0x12a8'),'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':'Set','appdata':'CDR(destination)='+(_0x832c28[_0x3e0814('0x20de')]['cutdigits']?_0x3e0814('0x5d8')+_0x832c28[_0x3e0814('0x20de')]['cutdigits']+'}':'${EXTEN}'),'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x4366b0[_0x3e0814('0xb76')]({'type':'outbound','app':'Set','appdata':'CDR(routeid)='+_0x832c28['outboundroute']['id'],'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']});var _0x1920c8=_0x4a0abd++;_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x4aa'),'appdata':_0x3e0814('0x551')+(_0x1920c8+0x2)+_0x3e0814('0xcb0')+(_0x1920c8+0x1)+')','context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')],'priority':_0x1920c8,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x2771'),'appdata':_0x832c28[_0x3e0814('0x20de')]['cutdigits']?_0x3e0814('0x205d')+_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x27f6')]+'}':_0x3e0814('0x13d1'),'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x4366b0[_0x3e0814('0xb76')]({'type':'outbound','app':_0x3e0814('0x2771'),'appdata':_0x3e0814('0xf90'),'context':_0x832c28['outboundroute'][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')]['exten'],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x2771'),'appdata':'XCALLY-MOTION-PROGRESS=0','context':_0x832c28[_0x3e0814('0x20de')]['context'],'exten':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':'Set','appdata':_0x3e0814('0xf46'),'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28['outboundroute'][_0x3e0814('0x632')],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x2771'),'appdata':_0x3e0814('0x24e3')+_0x832c28[_0x3e0814('0x20de')]['id'],'context':_0x832c28[_0x3e0814('0x20de')]['context'],'exten':_0x832c28[_0x3e0814('0x20de')]['exten'],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']});typeof _0x832c28['outboundroute'][_0x3e0814('0x150c')]===_0x3e0814('0x1143')&&_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x150c')]!==_0x3e0814('0x23ca')&&(_0x4366b0['push']({'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x2771'),'appdata':_0x3e0814('0xb5'),'context':_0x832c28['outboundroute'][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')]['exten'],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x2771'),'appdata':_0x3e0814('0x18d3')+_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x150c')]||0x0,'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')],'priority':_0x4a0abd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}));for(var _0x43649c=0x0,_0x467cdd=0x0;_0x43649c<_0x832c28['outboundrouteApps'][_0x3e0814('0x16a7')][_0x3e0814('0x25ae')];_0x43649c++,_0x467cdd=0x0){var _0x575d4a=_0x832c28['outboundrouteApps'][_0x3e0814('0x16a7')][_0x43649c],_0x46d02e=[],_0x348a51=[];_0x575d4a['intervals']=_0x575d4a[_0x3e0814('0x134c')]!=='*,*,*,*'?[_0x575d4a['interval']]:_0x575d4a[_0x3e0814('0x1fc1')]?_0x32d445()[_0x3e0814('0x65a')](_0x32d445()[_0x3e0814('0x2891')](_0x832c28[_0x3e0814('0x10e0')]['rows'],{'IntervalId':_0x575d4a[_0x3e0814('0x1fc1')]}),_0x3e0814('0x134c')):[],_0x575d4a[_0x3e0814('0x1318')]=_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],_0x575d4a[_0x3e0814('0x632')]=_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')];_0x575d4a['type']&&(_0x575d4a[_0x3e0814('0x62e')]=_0x575d4a[_0x3e0814('0x62e')]['toLowerCase']());typeof _0x575d4a['tag']!=='undefined'&&(_0x575d4a[_0x3e0814('0x2037')]&&_0x575d4a[_0x3e0814('0x2037')]!=='--'&&_0x46d02e['push']({'type':_0x575d4a[_0x3e0814('0x62e')][_0x3e0814('0x20dd')](),'app':_0x3e0814('0x2771'),'appdata':'CDR(tag)='+_0x575d4a[_0x3e0814('0x2037')],'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28['outboundroute'][_0x3e0814('0x632')],'priority':_0x575d4a[_0x3e0814('0x10e0')][_0x3e0814('0x25ae')]+_0x4a0abd+_0x467cdd++,'VoiceExtensionId':_0x832c28['outboundroute']['id']}));_0x575d4a[_0x3e0814('0xfca')]?_0x46d02e[_0x3e0814('0xb76')]({'type':_0x575d4a[_0x3e0814('0x62e')]['toLowerCase'](),'app':'ExecIf','appdata':_0x3e0814('0x526')+_0x575d4a[_0x3e0814('0xfca')]+')','context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')]['exten'],'priority':_0x575d4a[_0x3e0814('0x10e0')][_0x3e0814('0x25ae')]+_0x4a0abd+_0x467cdd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}):_0x46d02e[_0x3e0814('0xb76')]({'type':_0x575d4a[_0x3e0814('0x62e')][_0x3e0814('0x20dd')](),'app':'ExecIf','appdata':_0x3e0814('0x1554'),'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'exten':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x632')],'priority':_0x575d4a[_0x3e0814('0x10e0')]['length']+_0x4a0abd+_0x467cdd++,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']});for(var _0x3a4beb=0x0;_0x3a4beb<_0x575d4a[_0x3e0814('0x10e0')]['length'];_0x3a4beb++){var _0x5a3dc6=_0x4a0abd+_0x575d4a[_0x3e0814('0x10e0')][_0x3e0814('0x25ae')],_0x2100a6=_0x3a4beb===_0x575d4a[_0x3e0814('0x10e0')][_0x3e0814('0x25ae')]-0x1?_0x4a0abd+_0x46d02e['length']+_0x348a51[_0x3e0814('0x25ae')]+0x2:_0x4a0abd+_0x3a4beb+0x1;_0x46d02e[_0x3e0814('0x1c8e')](_0x3a4beb,0x0,{'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x1476'),'appdata':_0x575d4a[_0x3e0814('0x10e0')][_0x3a4beb]+'?'+_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')]+_0x3e0814('0x126f')+_0x5a3dc6+':'+_0x832c28['outboundroute'][_0x3e0814('0x1318')]+_0x3e0814('0x126f')+_0x2100a6,'exten':_0x832c28[_0x3e0814('0x20de')]['exten'],'context':_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x1318')],'priority':_0x4a0abd+_0x3a4beb,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']});}if(_0x339fc1&&_0x575d4a[_0x3e0814('0xf44')]===_0x3e0814('0x3d2')){var _0x113ce6=_0x32d445()[_0x3e0814('0xf15')](_0x832c28[_0x3e0814('0x23bb')],{'appType':'outboundDial'});if(_0x113ce6&&_0x113ce6[_0x3e0814('0x1d17')]){var _0x371c93={},_0x1869f2=_0x575d4a[_0x3e0814('0x26d2')][_0x3e0814('0x1745')](','),_0x28aa29=[];for(var _0x4ee322=0x0,_0x1b81c8=_0x113ce6[_0x3e0814('0x1d17')][_0x3e0814('0x25ae')];_0x4ee322<_0x1b81c8;_0x4ee322++){if(typeof _0x113ce6['fields'][_0x4ee322][_0x3e0814('0x242d')]!=='undefined')switch(_0x113ce6['fields'][_0x4ee322][_0x3e0814('0x2623')]){case'trunk':_0x371c93['trunk']=_0x1869f2[_0x113ce6[_0x3e0814('0x1d17')][_0x4ee322][_0x3e0814('0x242d')]]['split']('/')[0x1],_0x371c93[_0x3e0814('0x1ef5')]=_0x1869f2[_0x113ce6[_0x3e0814('0x1d17')][_0x4ee322][_0x3e0814('0x242d')]][_0x3e0814('0x1745')]('/')[0x2],_0x371c93[_0x3e0814('0x2580')]=_0x371c93['phone']?_0x371c93[_0x3e0814('0x1ef5')][_0x3e0814('0x1745')]('$')[0x0]:undefined,_0x371c93['phone']=_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x27f6')]?(_0x371c93[_0x3e0814('0x2580')]||'')+_0x3e0814('0x5d8')+_0x832c28[_0x3e0814('0x20de')][_0x3e0814('0x27f6')]+'}':(_0x371c93[_0x3e0814('0x2580')]||'')+_0x3e0814('0x16b5'),_0x28aa29[_0x113ce6['fields'][_0x4ee322][_0x3e0814('0x242d')]]=[_0x3e0814('0x1295'),_0x371c93[_0x3e0814('0x1397')],_0x371c93[_0x3e0814('0x1ef5')]][_0x3e0814('0x1537')]('/');break;case _0x3e0814('0x2116'):_0x371c93[_0x3e0814('0x2116')]=_0x1869f2[_0x113ce6[_0x3e0814('0x1d17')][_0x4ee322][_0x3e0814('0x242d')]];_0x832c28[_0x3e0814('0x20de')]['recordingFormat']!==_0x3e0814('0x23ca')?_0x371c93['options'][_0x3e0814('0x281c')](_0x3e0814('0x767'))<0x0&&(_0x371c93[_0x3e0814('0x2116')]+='U(xcally-mixmonitor-context)'):_0x371c93[_0x3e0814('0x2116')]=_0x371c93[_0x3e0814('0x2116')][_0x3e0814('0x1b42')](_0x3e0814('0x767'),'');_0x28aa29[_0x113ce6['fields'][_0x4ee322]['param']]=_0x371c93[_0x3e0814('0x2116')];break;default:_0x28aa29[_0x113ce6['fields'][_0x4ee322][_0x3e0814('0x242d')]]=_0x1869f2[_0x113ce6[_0x3e0814('0x1d17')][_0x4ee322][_0x3e0814('0x242d')]];}}_0x575d4a[_0x3e0814('0x26d2')]=_0x28aa29[_0x3e0814('0x1537')](',');}}_0x575d4a[_0x3e0814('0xb33')]=_0x46d02e[_0x3e0814('0x25ae')]?_0x32d445()[_0x3e0814('0x27ed')](_0x46d02e)[_0x3e0814('0xb33')]+0x1:_0x4a0abd,_0x4a0abd=(_0x348a51[_0x3e0814('0x25ae')]?_0x32d445()['last'](_0x348a51)[_0x3e0814('0xb33')]:_0x575d4a['priority'])+0x1,_0x4366b0=_0x32d445()[_0x3e0814('0x1007')](_0x4366b0,_0x46d02e,[_0x575d4a],_0x348a51);}_0x4366b0[_0x3e0814('0xb76')]({'type':_0x3e0814('0x1fdf'),'app':_0x3e0814('0x9b6'),'exten':_0x832c28[_0x3e0814('0x20de')]['exten'],'context':_0x832c28['outboundroute'][_0x3e0814('0x1318')],'priority':_0x4a0abd,'VoiceExtensionId':_0x832c28[_0x3e0814('0x20de')]['id']}),_0x3e2fe2['voiceExtension']['addApplications']({'id':_0x832c28[_0x3e0814('0x20de')]['id']},_0x32d445()['sortBy'](_0x4366b0,_0x3e0814('0xb33')))[_0x3e0814('0xe59')][_0x3e0814('0xe19')](function(_0x271c73){var _0x2337e4=_0x3e0814;_0x832c28[_0x2337e4('0xc2d')]['rows']=_0x271c73[_0x2337e4('0x16a7')];})[_0x3e0814('0x223b')](function(_0x4b077f){var _0x45eca3=_0x3e0814;console[_0x45eca3('0x8c8')](_0x4b077f);});}function _0x181c12(_0x139e17){var _0xa36b20=_0x56907a;_0x832c28[_0xa36b20('0xc2d')]=_0x139e17||{'count':0x0,'rows':[]};}function _0x33e58b(){var _0x38aee4=_0x56907a;return _0x3e2fe2[_0x38aee4('0x134c')]['get']({'fields':_0x38aee4('0x1a19')})[_0x38aee4('0xe59')][_0x38aee4('0xe19')](function(_0x3a3de3){_0x832c28['intervals']=_0x3a3de3;})['catch'](function(_0x50d079){var _0x449d0a=_0x38aee4;console[_0x449d0a('0x8c8')](_0x50d079);});}function _0x40a40f(){var _0x439520=_0x56907a;_0x832c28['promise']=_0x3e2fe2[_0x439520('0x1979')][_0x439520('0x22d5')](_0x832c28[_0x439520('0xa16')],_0x181c12)[_0x439520('0xe59')];}function _0x3db621(_0x1713b4){var _0x5c4da0=_0x56907a;_0x32d445()[_0x5c4da0('0xa8b')](_0x832c28[_0x5c4da0('0xc2d')][_0x5c4da0('0x16a7')],{'id':_0x1713b4['id']}),_0x3f8d9c(),_0x2eff0f[_0x5c4da0('0x425')]({'title':_0x5c4da0('0x13bf'),'msg':_0x1713b4[_0x5c4da0('0xf2b')]?_0x1713b4['app']+_0x5c4da0('0x2182'):''});}function _0x174733(_0x387f47){var _0x2fdcfc=_0x56907a,_0x43a9b5=_0x2ee409[_0x2fdcfc('0xa5')]()[_0x2fdcfc('0x13e4')](_0x2fdcfc('0x6de'))[_0x2fdcfc('0x221c')](''+_0x832c28['selectedOutboundRouteApps'][_0x2fdcfc('0x25ae')]+_0x2fdcfc('0x5bc')+'\x20will\x20be\x20deleted.')[_0x2fdcfc('0x4d1')](_0x2fdcfc('0x17bf'))[_0x2fdcfc('0x1345')](_0x387f47)['ok']('OK')[_0x2fdcfc('0x2c1')](_0x2fdcfc('0x17'));_0x2ee409['show'](_0x43a9b5)['then'](function(){var _0x326129=_0x2fdcfc;_0x832c28['selectedOutboundRouteApps'][_0x326129('0x1d7e')](function(_0x1ba3da){var _0x504d59=_0x326129;_0x32d445()[_0x504d59('0xa8b')](_0x832c28[_0x504d59('0xc2d')][_0x504d59('0x16a7')],{'id':_0x1ba3da['id']});}),_0x832c28[_0x326129('0xfd9')]=[],_0x3f8d9c();});}_0x5a2cc8[_0x56907a('0xb2b')](_0x56907a('0x5cd'),function(){var _0x536029=_0x56907a;_0x16baa6[_0x536029('0x2121')]('voiceExtension:update');});}const _0x118177=_0x2e8416;_0x38ebc3[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xd42'),_0xb635d2('0x20de'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x38ebc3(_0x23be8c,_0x77141b,_0x30d988,_0x4bf11b,_0x34d725,_0x215269,_0x1f77ee,_0x2a355a){var _0x178f81=_0xb635d2,_0x3dbc1d=this;_0x3dbc1d['currentUser']=_0x1f77ee[_0x178f81('0x1ef8')](),_0x3dbc1d[_0x178f81('0xcd2')]=[],_0x3dbc1d[_0x178f81('0x13e4')]=_0x178f81('0x22ff')+(_0x4bf11b['appType']||_0x4bf11b[_0x178f81('0xf2b')])[_0x178f81('0x25f7')](),_0x3dbc1d['custom']=angular[_0x178f81('0x89')](_0x4bf11b),_0x3dbc1d[_0x178f81('0xb3d')]=_0x2a355a,_0x3dbc1d[_0x178f81('0x1ccb')]={};if(_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x26d2')])switch(_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0xf44')]?_0x3dbc1d[_0x178f81('0x261d')]['appType']['toLowerCase']():_0x3dbc1d['custom'][_0x178f81('0xf2b')][_0x178f81('0x20dd')]()){case _0x178f81('0x261d'):break;case _0x178f81('0xc11'):{var _0x39e886=_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x26d2')]['split'](',');_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x6e4')]=_0x39e886[0x0],_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x174b')]=_0x39e886[0x1],_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0xfcc')]=_0x39e886['slice'](0x2,_0x39e886[_0x178f81('0x25ae')])[_0x178f81('0x1537')](',');}break;case _0x178f81('0x1321'):{var _0x12a4ca=_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x26d2')]['split'](',');_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x22be')]=_0x12a4ca[0x0],_0x3dbc1d[_0x178f81('0x261d')]['secretaccesskey']=_0x12a4ca[0x1],_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x206a')]=_0x12a4ca[0x2],_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x191a')]=_0x12a4ca[0x3],_0x3dbc1d[_0x178f81('0x261d')]['welcomemessage']=_0x12a4ca[_0x178f81('0xa19')](0x4,_0x12a4ca[_0x178f81('0x25ae')])[_0x178f81('0x1537')](',');}break;case _0x178f81('0x400'):{var _0x26fb28=_0x3dbc1d['custom'][_0x178f81('0x26d2')]['split'](',');_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x1ec4')]=isNaN(_0x26fb28[0x0])?_0x26fb28[0x0]:parseInt(_0x26fb28[0x0],0xa),_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x1bc6')]=_0x26fb28['slice'](0x1,_0x26fb28[_0x178f81('0x25ae')])[_0x178f81('0x1537')](',');}break;case _0x178f81('0x27e8'):_0x3dbc1d['custom'][_0x178f81('0x1bc6')]=_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x26d2')];break;case _0x178f81('0x2aa'):_0x3dbc1d['custom'][_0x178f81('0x2623')]=_0x3dbc1d['custom'][_0x178f81('0x26d2')][_0x178f81('0x1745')]('=')[0x0],_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x2')]=_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x26d2')][_0x178f81('0x1745')]('=')[0x1];break;case _0x178f81('0x401'):_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x38b')]=_0x3dbc1d['custom'][_0x178f81('0x26d2')];break;default:{var _0x41d7db=_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x26d2')][_0x178f81('0x1745')](',');_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0xf2b')]=_0x32d445()[_0x178f81('0x14b4')](_0x41d7db[0x0])?_0x41d7db[0x0]:isNaN(_0x41d7db[0x0])?_0x41d7db[0x0]:parseInt(_0x41d7db[0x0],0xa),_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x26d2')]=_0x32d445()[_0x178f81('0x14b4')](_0x41d7db[0x1])?_0x41d7db[0x1]:isNaN(_0x41d7db[0x1])?_0x41d7db[0x1]:parseInt(_0x41d7db[0x1],0xa);}break;}else{}_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x62e')]&&_0x3dbc1d['custom'][_0x178f81('0x62e')][_0x178f81('0x20dd')]()===_0x178f81('0x1fdf')&&_0x3dbc1d[_0x178f81('0x261d')]['appType'][_0x178f81('0x20dd')]()===_0x178f81('0x1d1b')&&(_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x2580')]=_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x1ef5')]?_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x1ef5')]['split']('$')[0x0]:undefined,_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0x1b6f')]=_0x3dbc1d[_0x178f81('0x261d')][_0x178f81('0xfca')]?_0x178f81('0xd41')+_0x3dbc1d[_0x178f81('0x261d')]['callerID']:undefined);_0x3dbc1d[_0x178f81('0x166a')]=_0x3eb23d,_0x3dbc1d[_0x178f81('0x2584')]=_0x572b81;function _0x3eb23d(){var _0xa3697e=_0x178f81;_0x3dbc1d[_0xa3697e('0xcd2')]=[];var _0x10cb85=[];_0x3dbc1d[_0xa3697e('0x261d')]['type']&&_0x3dbc1d['custom'][_0xa3697e('0x62e')][_0xa3697e('0x20dd')]()===_0xa3697e('0x1fdf')&&_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0xf44')]==='outboundDial'&&(_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x1ef5')]=_0x34d725['cutdigits']?(_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x2580')]||'')+_0xa3697e('0x5d8')+_0x34d725[_0xa3697e('0x27f6')]+'}':(_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x2580')]||'')+_0xa3697e('0x16b5'),_0x34d725[_0xa3697e('0x150c')]!==_0xa3697e('0x23ca')?_0x3dbc1d['custom'][_0xa3697e('0x2116')][_0xa3697e('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x2116')]+=_0xa3697e('0x767')):_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x2116')]=_0x3dbc1d['custom'][_0xa3697e('0x2116')][_0xa3697e('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0xf44')]&&_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0xf44')]===_0xa3697e('0x261d')){}else switch((_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0xf2b')]||_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0xf44')])[_0xa3697e('0x20dd')]()){case _0xa3697e('0x2aa'):_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x26d2')]=_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x2623')]+'='+_0x3dbc1d['custom'][_0xa3697e('0x2')];break;case _0xa3697e('0x261d'):break;default:_0x10cb85[0x0]=_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0xf2b')],_0x10cb85[0x1]=_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x26d2')],_0x3dbc1d[_0xa3697e('0x261d')][_0xa3697e('0x26d2')]=_0x10cb85[_0xa3697e('0x1537')](',');}_0x572b81(_0x3dbc1d[_0xa3697e('0x261d')]);}function _0x572b81(_0x24851a){var _0x21979b=_0x178f81;_0x23be8c[_0x21979b('0x11ed')](_0x24851a);}}const _0x1ccc5c=_0x38ebc3;_0x2ae1d4[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),'$mdDialog',_0xb635d2('0x1e23'),_0xb635d2('0x9ab'),'interval',_0xb635d2('0x10e0'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x2ae1d4(_0x59d98d,_0xd718a1,_0x14c934,_0x136784,_0x1a26b7,_0x32922a,_0x297ff2,_0x3d09a6,_0x3d4227,_0x45f0ba){var _0x221ba5=_0xb635d2,_0x32ce8d=this;_0x32ce8d[_0x221ba5('0x15a5')]=_0x3d4227['getCurrentUser'](),_0x32ce8d[_0x221ba5('0xcd2')]=[],_0x32ce8d[_0x221ba5('0x13e4')]='TOOLS.EDIT_INTERVAL',_0x32ce8d[_0x221ba5('0x134c')]=angular[_0x221ba5('0x89')](_0x1a26b7),_0x32ce8d[_0x221ba5('0x10e0')]=_0x32922a,_0x32ce8d['newInterval']=![],_0x32ce8d[_0x221ba5('0x1ea6')]=[_0x221ba5('0x2210'),_0x221ba5('0x261d'),'list'],_0x32ce8d['crudPermissions']=_0x45f0ba,_0x32ce8d[_0x221ba5('0x1af')]=_0x136784['getDaysOfWeek'](),_0x32ce8d[_0x221ba5('0x253d')]=_0x136784['getMonthNumber'](),_0x32ce8d[_0x221ba5('0x631')]=_0x136784[_0x221ba5('0x1b22')](),_0x32ce8d[_0x221ba5('0x2347')]=_0x136784[_0x221ba5('0xdee')]();if(!_0x32ce8d[_0x221ba5('0x134c')])_0x32ce8d['interval']={'interval':_0x221ba5('0x2292')},_0x32ce8d[_0x221ba5('0x62e')]=_0x221ba5('0x2210'),_0x32ce8d['title']=_0x221ba5('0x1947'),_0x32ce8d[_0x221ba5('0x1a83')]=!![];else{if(_0x32ce8d[_0x221ba5('0x134c')]['interval']!==_0x221ba5('0x2292')){_0x32ce8d[_0x221ba5('0x62e')]=_0x221ba5('0x261d');var _0x5bd3da=_0x32ce8d[_0x221ba5('0x134c')]['interval'][_0x221ba5('0x1745')](','),_0x45ee9a=_0x5bd3da[0x0],_0x111019=_0x5bd3da[0x1],_0x2ca343=_0x5bd3da[0x2],_0x3b817e=_0x5bd3da[0x3];if(_0x45ee9a!=='*'){var _0xbe60a0=_0x45ee9a[_0x221ba5('0x1745')]('-')[0x0],_0x1a03d3=_0x45ee9a[_0x221ba5('0x1745')]('-')[0x1],_0x1dc3c3;_0x1dc3c3=new Date(),_0x1dc3c3[_0x221ba5('0x19f6')](Number(_0xbe60a0['split'](':')[0x0])),_0x1dc3c3[_0x221ba5('0x6b6')](Number(_0xbe60a0[_0x221ba5('0x1745')](':')[0x1])),_0x32ce8d[_0x221ba5('0xde9')]=_0x1dc3c3,_0x1dc3c3=new Date(),_0x1dc3c3['setHours'](Number(_0x1a03d3[_0x221ba5('0x1745')](':')[0x0])),_0x1dc3c3[_0x221ba5('0x6b6')](Number(_0x1a03d3[_0x221ba5('0x1745')](':')[0x1])),_0x32ce8d['timeRangeTo']=_0x1dc3c3;}_0x111019!=='*'&&(_0x32ce8d['dayOfWeekFrom']=_0x111019[_0x221ba5('0x1745')]('-')[0x0],_0x32ce8d[_0x221ba5('0xa40')]=_0x111019[_0x221ba5('0x1745')]('-')[0x1]),_0x2ca343!=='*'&&(_0x32ce8d[_0x221ba5('0x146b')]=_0x2ca343[_0x221ba5('0x1745')]('-')[0x0],_0x32ce8d[_0x221ba5('0x3d6')]=_0x2ca343[_0x221ba5('0x1745')]('-')[0x1]),_0x3b817e!=='*'&&(_0x32ce8d['monthFrom']=_0x3b817e['split']('-')[0x0],_0x32ce8d[_0x221ba5('0xac6')]=_0x3b817e[_0x221ba5('0x1745')]('-')[0x1]);}else _0x32ce8d[_0x221ba5('0x62e')]=_0x221ba5('0x2210');}_0x59d98d[_0x221ba5('0x2ef')]['id']&&!_0x32ce8d['interval'][_0x221ba5('0x1491')]&&(_0x32ce8d[_0x221ba5('0x134c')][_0x221ba5('0x1fc1')]=_0x59d98d[_0x221ba5('0x2ef')]['id']);_0x32ce8d[_0x221ba5('0x134c')][_0x221ba5('0x1fc1')]&&_0x32ce8d[_0x221ba5('0x134c')][_0x221ba5('0x1491')]&&(_0x32ce8d[_0x221ba5('0x62e')]='list');_0x32ce8d[_0x221ba5('0x10a8')]=_0x2c178c,_0x32ce8d[_0x221ba5('0x201f')]=_0x263c13,_0x32ce8d[_0x221ba5('0x2584')]=_0x17fd0b;_0x32ce8d[_0x221ba5('0x134c')]['application']&&(_0x3d4227[_0x221ba5('0x179e')](_0x221ba5('0xd14'))?_0x3d09a6[_0x221ba5('0x134c')][_0x221ba5('0x22d5')]({'fields':_0x221ba5('0x13df'),'IntervalId':_0x221ba5('0x1046'),'nolimit':!![]})[_0x221ba5('0xe59')]['then'](function(_0x58b3bc){var _0x1c8c17=_0x221ba5;_0x32ce8d[_0x1c8c17('0x10e0')]=_0x58b3bc[_0x1c8c17('0x16a7')]||[];})[_0x221ba5('0x223b')](function(_0x2204eb){var _0x502977=_0x221ba5;_0x297ff2[_0x502977('0x8c8')]({'title':_0x2204eb['status']?_0x502977('0x27f2')+_0x2204eb[_0x502977('0x2833')]+_0x502977('0x1b7c')+_0x2204eb[_0x502977('0x1fd7')]:'SYSTEM:GET_INTERVALS','msg':_0x2204eb[_0x502977('0x11d0')]?JSON[_0x502977('0x3ad')](_0x2204eb[_0x502977('0x11d0')]):_0x2204eb['toString']()});}):_0x3d09a6[_0x221ba5('0x134c')][_0x221ba5('0x22d5')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x221ba5('0x1046'),'nolimit':!![]})[_0x221ba5('0xe59')][_0x221ba5('0xe19')](function(_0x4d4c87){_0x32ce8d['intervals']=_0x4d4c87['rows']||[];})[_0x221ba5('0xe19')](function(){var _0x3b64fe=_0x221ba5;return _0x3d09a6[_0x3b64fe('0xb59')][_0x3b64fe('0x22d5')]({'userProfileId':_0x32ce8d[_0x3b64fe('0x15a5')][_0x3b64fe('0x1d04')],'sectionId':0x3ec})[_0x3b64fe('0xe59')];})[_0x221ba5('0xe19')](function(_0x29d169){var _0x204f34=_0x221ba5,_0x1dc195=_0x29d169&&_0x29d169[_0x204f34('0x16a7')]?_0x29d169[_0x204f34('0x16a7')][0x0]:null;if(!_0x1dc195)_0x32ce8d['intervals']=[];else{if(!_0x1dc195['autoAssociation'])return _0x3d09a6[_0x204f34('0xd49')][_0x204f34('0x22d5')]({'sectionId':_0x1dc195['id']})['$promise'][_0x204f34('0xe19')](function(_0x5a29d4){var _0x5a1417=_0x204f34,_0x214998=_0x5a29d4&&_0x5a29d4['rows']?_0x5a29d4['rows']:[],_0x53c1ac=[],_0x40f074=null;_0x32ce8d[_0x5a1417('0x134c')]&&(_0x40f074=_0x32d445()[_0x5a1417('0xf15')](_0x32ce8d[_0x5a1417('0x10e0')],{'name':_0x32ce8d[_0x5a1417('0x134c')][_0x5a1417('0x1fc1')]})),_0x40f074&&!_0x32d445()[_0x5a1417('0x201a')](_0x214998,['resourceId',_0x40f074['id']])&&_0x32ce8d['intervals'][_0x5a1417('0x1d7e')](function(_0x235ceb){var _0x51bc69=_0x5a1417;_0x235ceb['id']===_0x40f074['id']&&(_0x235ceb[_0x51bc69('0x1e9d')]=![],_0x53c1ac['push'](_0x235ceb));}),_0x32ce8d['intervals']=_0x53c1ac;});}})['catch'](function(_0x5f08c5){var _0x43be70=_0x221ba5;_0x297ff2[_0x43be70('0x8c8')]({'title':_0x5f08c5[_0x43be70('0x2833')]?'API:'+_0x5f08c5[_0x43be70('0x2833')]+'\x20-\x20'+_0x5f08c5[_0x43be70('0x1fd7')]:_0x43be70('0x1c1c'),'msg':_0x5f08c5[_0x43be70('0x11d0')]?JSON['stringify'](_0x5f08c5[_0x43be70('0x11d0')]):_0x5f08c5[_0x43be70('0x94f')]()});}));function _0x578b45(){var _0x3fe1c8=_0x221ba5;switch(_0x32ce8d['type']){case _0x3fe1c8('0x2210'):case _0x3fe1c8('0x15a8'):return _0x3fe1c8('0x2292');case _0x3fe1c8('0x261d'):{var _0x2439fd=[];if(_0x32ce8d[_0x3fe1c8('0xde9')]!=='*'&&_0x32ce8d[_0x3fe1c8('0xde9')]&&_0x32ce8d[_0x3fe1c8('0x12ef')]){var _0x283b8e=(_0x32ce8d[_0x3fe1c8('0xde9')][_0x3fe1c8('0x757')]()<0xa?'0':'')+_0x32ce8d[_0x3fe1c8('0xde9')][_0x3fe1c8('0x757')]()+':'+((_0x32ce8d[_0x3fe1c8('0xde9')]['getMinutes']()<0xa?'0':'')+_0x32ce8d[_0x3fe1c8('0xde9')]['getMinutes']()),_0x83e10c=(_0x32ce8d[_0x3fe1c8('0x12ef')][_0x3fe1c8('0x757')]()<0xa?'0':'')+_0x32ce8d['timeRangeTo'][_0x3fe1c8('0x757')]()+':'+((_0x32ce8d[_0x3fe1c8('0x12ef')]['getMinutes']()<0xa?'0':'')+_0x32ce8d[_0x3fe1c8('0x12ef')]['getMinutes']());_0x2439fd[_0x3fe1c8('0xb76')](_0x283b8e+'-'+_0x83e10c);}else _0x2439fd[_0x3fe1c8('0xb76')]('*');return _0x32ce8d[_0x3fe1c8('0x2359')]?_0x32ce8d['dayOfWeekTo']?_0x2439fd[_0x3fe1c8('0xb76')](_0x32ce8d[_0x3fe1c8('0x2359')]+'-'+_0x32ce8d[_0x3fe1c8('0xa40')]):_0x2439fd[_0x3fe1c8('0xb76')](_0x32ce8d[_0x3fe1c8('0x2359')]):_0x2439fd[_0x3fe1c8('0xb76')]('*'),_0x32ce8d[_0x3fe1c8('0x146b')]?_0x32ce8d[_0x3fe1c8('0x3d6')]?_0x2439fd[_0x3fe1c8('0xb76')](_0x32ce8d['monthDayFrom']+'-'+_0x32ce8d['monthDayTo']):_0x2439fd[_0x3fe1c8('0xb76')](_0x32ce8d[_0x3fe1c8('0x146b')]):_0x2439fd[_0x3fe1c8('0xb76')]('*'),_0x32ce8d[_0x3fe1c8('0x1b2a')]?_0x32ce8d['monthTo']?_0x2439fd[_0x3fe1c8('0xb76')](_0x32ce8d['monthFrom']+'-'+_0x32ce8d[_0x3fe1c8('0xac6')]):_0x2439fd[_0x3fe1c8('0xb76')](_0x32ce8d['monthFrom']):_0x2439fd[_0x3fe1c8('0xb76')]('*'),_0x2439fd[_0x3fe1c8('0x1537')]();}}}function _0x2c178c(){var _0x49bbd0=_0x221ba5;_0x32ce8d['errors']=[],_0x32ce8d[_0x49bbd0('0x134c')][_0x49bbd0('0x134c')]=_0x578b45(),_0x3d09a6[_0x49bbd0('0x134c')][_0x49bbd0('0xe5e')](_0x32ce8d[_0x49bbd0('0x134c')])[_0x49bbd0('0xe59')]['then'](function(_0x222340){var _0x4bf8b2=_0x49bbd0;_0x32ce8d[_0x4bf8b2('0x10e0')][_0x4bf8b2('0xb76')](_0x222340),_0x297ff2[_0x4bf8b2('0x425')]({'title':'Interval\x20properly\x20created','msg':_0x32ce8d[_0x4bf8b2('0x134c')]['name']?_0x32ce8d[_0x4bf8b2('0x134c')][_0x4bf8b2('0x2623')]+_0x4bf8b2('0x105f'):''}),_0x17fd0b();})[_0x49bbd0('0x223b')](function(_0x2edc14){var _0x372ff6=_0x49bbd0;console['error'](_0x2edc14),_0x32ce8d[_0x372ff6('0xcd2')]=_0x2edc14['data']['errors']||[{'message':_0x2edc14[_0x372ff6('0x94f')](),'type':_0x372ff6('0x176b')}];});}function _0x263c13(){var _0x347720=_0x221ba5;_0x32ce8d[_0x347720('0xcd2')]=[],_0x32ce8d[_0x347720('0x134c')][_0x347720('0x134c')]=_0x578b45(),_0x32ce8d[_0x347720('0x134c')][_0x347720('0x1491')]?(_0x32ce8d[_0x347720('0x62e')]!=='list'&&(_0x32ce8d[_0x347720('0x134c')][_0x347720('0x1fc1')]=null),_0x17fd0b(_0x32ce8d['interval'])):_0x3d09a6['interval'][_0x347720('0xa70')]({'id':_0x32ce8d[_0x347720('0x134c')]['id']},_0x32ce8d['interval'])[_0x347720('0xe59')][_0x347720('0xe19')](function(_0x2a4eab){var _0x186a07=_0x347720,_0x5abc22=_0x32d445()['find'](_0x32ce8d['intervals'],{'id':_0x2a4eab['id']});_0x5abc22&&_0x32d445()[_0x186a07('0x1d8')](_0x5abc22,_0x2a4eab),_0x297ff2[_0x186a07('0x425')]({'title':_0x186a07('0x228'),'msg':_0x186a07('0x8b4')}),_0x17fd0b();})['catch'](function(_0x435dcb){var _0x3ea85e=_0x347720;console[_0x3ea85e('0x8c8')](_0x435dcb),_0x32ce8d[_0x3ea85e('0xcd2')]=_0x435dcb['data'][_0x3ea85e('0xcd2')]||[{'message':_0x435dcb[_0x3ea85e('0x94f')](),'type':'api.interval.update'}];});}function _0x17fd0b(_0x15bc8a){_0xd718a1['hide'](_0x15bc8a);}}const _0x3a4c68=_0x2ae1d4;_0x2748f1[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),'outboundrouteApp',_0xb635d2('0x20de'),_0xb635d2('0xffc'),'Auth','crudPermissions'];function _0x2748f1(_0xd9bd24,_0x4e2677,_0x587119,_0x15a923,_0x4968fe,_0x1358d1,_0x385b02,_0x39e996){var _0x4a499e=_0xb635d2,_0x545cc9=this;_0x545cc9['currentUser']=_0x385b02[_0x4a499e('0x1ef8')](),_0x545cc9[_0x4a499e('0xcd2')]=[],_0x545cc9[_0x4a499e('0x13e4')]='VOICE.EDIT_'+(_0x15a923[_0x4a499e('0xf44')]||_0x15a923[_0x4a499e('0xf2b')])[_0x4a499e('0x25f7')](),_0x545cc9[_0x4a499e('0x1d1b')]=angular['copy'](_0x15a923),_0x545cc9[_0x4a499e('0xb3d')]=_0x39e996,_0x545cc9[_0x4a499e('0x1ccb')]={};if(_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x26d2')])switch(_0x545cc9[_0x4a499e('0x1d1b')]['appType']?_0x545cc9[_0x4a499e('0x1d1b')]['appType']['toLowerCase']():_0x545cc9[_0x4a499e('0x1d1b')]['app'][_0x4a499e('0x20dd')]()){case _0x4a499e('0x261d'):break;case _0x4a499e('0xc11'):{var _0x35ec18=_0x545cc9['outbounddial'][_0x4a499e('0x26d2')][_0x4a499e('0x1745')](',');_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x6e4')]=_0x35ec18[0x0],_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x174b')]=_0x35ec18[0x1],_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0xfcc')]=_0x35ec18['slice'](0x2,_0x35ec18['length'])['join'](',');}break;case _0x4a499e('0x1321'):{var _0x20b34d=_0x545cc9[_0x4a499e('0x1d1b')]['appdata']['split'](',');_0x545cc9['outbounddial']['accesskeyid']=_0x20b34d[0x0],_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x700')]=_0x20b34d[0x1],_0x545cc9['outbounddial']['lexregion']=_0x20b34d[0x2],_0x545cc9['outbounddial'][_0x4a499e('0x191a')]=_0x20b34d[0x3],_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0xfcc')]=_0x20b34d[_0x4a499e('0xa19')](0x4,_0x20b34d[_0x4a499e('0x25ae')])['join'](',');}break;case _0x4a499e('0x400'):{var _0xa39d2f=_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x26d2')][_0x4a499e('0x1745')](',');_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x1ec4')]=isNaN(_0xa39d2f[0x0])?_0xa39d2f[0x0]:parseInt(_0xa39d2f[0x0],0xa),_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x1bc6')]=_0xa39d2f[_0x4a499e('0xa19')](0x1,_0xa39d2f[_0x4a499e('0x25ae')])[_0x4a499e('0x1537')](',');}break;case _0x4a499e('0x27e8'):_0x545cc9[_0x4a499e('0x1d1b')]['text']=_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x26d2')];break;case'set':_0x545cc9['outbounddial'][_0x4a499e('0x2623')]=_0x545cc9['outbounddial']['appdata'][_0x4a499e('0x1745')]('=')[0x0],_0x545cc9['outbounddial']['value']=_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x26d2')]['split']('=')[0x1];break;case'agi':_0x545cc9[_0x4a499e('0x1d1b')]['project']=_0x545cc9['outbounddial'][_0x4a499e('0x26d2')];break;default:{var _0xe16399=_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x26d2')]['split'](',');_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x1397')]=_0xe16399[0x0][_0x4a499e('0x1745')]('/')[0x1],_0x545cc9['outbounddial'][_0x4a499e('0x1ef5')]=_0xe16399[0x0][_0x4a499e('0x1745')]('/')[0x2],_0x545cc9[_0x4a499e('0x1d1b')]['timeout']=_0x32d445()[_0x4a499e('0x14b4')](_0xe16399[0x1])?_0xe16399[0x1]:isNaN(_0xe16399[0x1])?_0xe16399[0x1]:parseInt(_0xe16399[0x1],0xa),_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x2116')]=_0x32d445()[_0x4a499e('0x14b4')](_0xe16399[0x2])?_0xe16399[0x2]:isNaN(_0xe16399[0x2])?_0xe16399[0x2]:parseInt(_0xe16399[0x2],0xa),_0x545cc9['outbounddial'][_0x4a499e('0x2647')]=_0x32d445()[_0x4a499e('0x14b4')](_0xe16399[0x3])?_0xe16399[0x3]:isNaN(_0xe16399[0x3])?_0xe16399[0x3]:parseInt(_0xe16399[0x3],0xa);}break;}else{}_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x62e')]&&_0x545cc9['outbounddial']['type'][_0x4a499e('0x20dd')]()===_0x4a499e('0x1fdf')&&_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0xf44')][_0x4a499e('0x20dd')]()===_0x4a499e('0x1d1b')&&(_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x2580')]=_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x1ef5')]?_0x545cc9[_0x4a499e('0x1d1b')]['phone']['split']('$')[0x0]:undefined,_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0x1b6f')]=_0x545cc9[_0x4a499e('0x1d1b')]['callerID']?_0x4a499e('0xd41')+_0x545cc9[_0x4a499e('0x1d1b')][_0x4a499e('0xfca')]:undefined);_0x545cc9['saveOutboundRouteApp']=_0x22edc0,_0x545cc9[_0x4a499e('0x2584')]=_0x2ec989,_0x385b02[_0x4a499e('0x179e')](_0x4a499e('0xd14'))?_0x1358d1[_0x4a499e('0x1397')][_0x4a499e('0x22d5')]({'fields':'id,name','sort':_0x4a499e('0x2623'),'nolimit':_0x4a499e('0x2206')})[_0x4a499e('0xe59')][_0x4a499e('0xe19')](function(_0x493da1){var _0x475bce=_0x4a499e;_0x545cc9[_0x475bce('0x155e')]=_0x493da1[_0x475bce('0x16a7')]||[];})[_0x4a499e('0x223b')](function(_0x2bc4d0){var _0x31dfb7=_0x4a499e;_0x587119['error']({'title':_0x2bc4d0['status']?'API:'+_0x2bc4d0[_0x31dfb7('0x2833')]+_0x31dfb7('0x1b7c')+_0x2bc4d0[_0x31dfb7('0x1fd7')]:_0x31dfb7('0x1e6d'),'msg':_0x2bc4d0['data']?JSON[_0x31dfb7('0x3ad')](_0x2bc4d0[_0x31dfb7('0x11d0')]):_0x2bc4d0[_0x31dfb7('0x94f')]()});}):_0x1358d1[_0x4a499e('0x1397')]['get']({'fields':'id,name','sort':_0x4a499e('0x2623'),'nolimit':_0x4a499e('0x2206')})['$promise'][_0x4a499e('0xe19')](function(_0x5aa018){var _0x58d39d=_0x4a499e;_0x545cc9[_0x58d39d('0x155e')]=_0x5aa018['rows']||[];})['then'](function(){var _0x50c69c=_0x4a499e;return _0x1358d1[_0x50c69c('0xb59')][_0x50c69c('0x22d5')]({'userProfileId':_0x545cc9[_0x50c69c('0x15a5')][_0x50c69c('0x1d04')],'sectionId':0x3f3})[_0x50c69c('0xe59')];})[_0x4a499e('0xe19')](function(_0xb6e132){var _0xc8f795=_0x4a499e,_0x38331f=_0xb6e132&&_0xb6e132[_0xc8f795('0x16a7')]?_0xb6e132[_0xc8f795('0x16a7')][0x0]:null;if(!_0x38331f){var _0x13fec8=[],_0x525ac8=null;_0x545cc9[_0xc8f795('0x1d1b')]&&(_0x525ac8=_0x32d445()[_0xc8f795('0xf15')](_0x545cc9['trunks'],{'name':_0x545cc9[_0xc8f795('0x1d1b')][_0xc8f795('0x1397')]}));for(var _0x3bde1d=0x0;_0x3bde1d<_0x545cc9[_0xc8f795('0x155e')][_0xc8f795('0x25ae')];_0x3bde1d++){_0x525ac8&&_0x545cc9[_0xc8f795('0x155e')][_0x3bde1d]['id']===_0x525ac8['id']&&(_0x545cc9[_0xc8f795('0x155e')][_0x3bde1d][_0xc8f795('0x1e9d')]=![],_0x13fec8['push'](_0x545cc9[_0xc8f795('0x155e')][_0x3bde1d]));}_0x545cc9[_0xc8f795('0x155e')]=_0x13fec8;}else{if(!_0x38331f['autoAssociation'])return _0x1358d1[_0xc8f795('0xd49')][_0xc8f795('0x22d5')]({'sectionId':_0x38331f['id']})[_0xc8f795('0xe59')]['then'](function(_0x2536ad){var _0x4ca7f1=_0xc8f795,_0x37d505=_0x32d445()[_0x4ca7f1('0x65a')](_0x2536ad[_0x4ca7f1('0x16a7')],function(_0x44769c){var _0x59f73e=_0x4ca7f1;return _0x32d445()[_0x59f73e('0xf15')](_0x545cc9[_0x59f73e('0x155e')],{'id':_0x44769c[_0x59f73e('0x1104')]});}),_0x533498=null;_0x545cc9[_0x4ca7f1('0x1d1b')]&&(_0x533498=_0x32d445()['find'](_0x545cc9[_0x4ca7f1('0x155e')],{'name':_0x545cc9['outbounddial'][_0x4ca7f1('0x1397')]}));if(_0x533498&&!_0x32d445()[_0x4ca7f1('0x201a')](_0x37d505,['id',_0x533498['id']])){var _0x3a715c=_0x32d445()['find'](_0x545cc9[_0x4ca7f1('0x155e')],{'id':_0x533498['id']});_0x3a715c[_0x4ca7f1('0x1e9d')]=![],_0x37d505[_0x4ca7f1('0xb76')](_0x3a715c);}_0x545cc9['trunks']=_0x37d505;});}})[_0x4a499e('0x223b')](function(_0x5c622e){var _0x4d97fc=_0x4a499e;_0x587119[_0x4d97fc('0x8c8')]({'title':_0x5c622e[_0x4d97fc('0x2833')]?'API:'+_0x5c622e[_0x4d97fc('0x2833')]+'\x20-\x20'+_0x5c622e['statusText']:_0x4d97fc('0x14b5'),'msg':_0x5c622e[_0x4d97fc('0x11d0')]?JSON[_0x4d97fc('0x3ad')](_0x5c622e[_0x4d97fc('0x11d0')]):_0x5c622e[_0x4d97fc('0x94f')]()});}),_0x385b02['hasRole'](_0x4a499e('0xd14'))?_0x1358d1['tag'][_0x4a499e('0x22d5')]({'fields':_0x4a499e('0x104'),'sort':_0x4a499e('0x2623'),'nolimit':_0x4a499e('0x2206')})[_0x4a499e('0xe59')]['then'](function(_0x47e1ae){var _0xbfdfe6=_0x4a499e;_0x545cc9[_0xbfdfe6('0x1105')]=_0x47e1ae[_0xbfdfe6('0x16a7')]||[];})[_0x4a499e('0x223b')](function(_0x3d149a){var _0x5834e3=_0x4a499e;_0x587119[_0x5834e3('0x8c8')]({'title':_0x3d149a[_0x5834e3('0x2833')]?_0x5834e3('0x27f2')+_0x3d149a[_0x5834e3('0x2833')]+'\x20-\x20'+_0x3d149a[_0x5834e3('0x1fd7')]:_0x5834e3('0x2557'),'msg':_0x3d149a[_0x5834e3('0x11d0')]?JSON[_0x5834e3('0x3ad')](_0x3d149a[_0x5834e3('0x11d0')]):_0x3d149a[_0x5834e3('0x94f')]()});}):_0x1358d1[_0x4a499e('0x2037')][_0x4a499e('0x22d5')]({'fields':_0x4a499e('0x104'),'sort':_0x4a499e('0x2623'),'nolimit':'true'})[_0x4a499e('0xe59')][_0x4a499e('0xe19')](function(_0x404acd){var _0x4e3610=_0x4a499e;_0x545cc9[_0x4e3610('0x1105')]=_0x404acd[_0x4e3610('0x16a7')]||[];})[_0x4a499e('0xe19')](function(){var _0x269c38=_0x4a499e;return _0x1358d1['userProfileSection'][_0x269c38('0x22d5')]({'userProfileId':_0x545cc9[_0x269c38('0x15a5')][_0x269c38('0x1d04')],'sectionId':0x3f0})[_0x269c38('0xe59')];})[_0x4a499e('0xe19')](function(_0x1700e6){var _0x108593=_0x4a499e,_0x828803=_0x1700e6&&_0x1700e6[_0x108593('0x16a7')]?_0x1700e6[_0x108593('0x16a7')][0x0]:null;if(!_0x828803){var _0x5899a4=[],_0x4e79a9=null;_0x545cc9[_0x108593('0x1d1b')]&&(_0x4e79a9=_0x32d445()['find'](_0x545cc9[_0x108593('0x1105')],{'name':_0x545cc9[_0x108593('0x1d1b')][_0x108593('0x2037')]}));for(var _0x36636b=0x0;_0x36636b<_0x545cc9[_0x108593('0x1105')][_0x108593('0x25ae')];_0x36636b++){_0x4e79a9&&_0x545cc9[_0x108593('0x1105')][_0x36636b]['id']===_0x4e79a9['id']&&(_0x545cc9['tags'][_0x36636b]['canSelect']=![],_0x5899a4[_0x108593('0xb76')](_0x545cc9['tags'][_0x36636b]));}_0x545cc9[_0x108593('0x1105')]=_0x5899a4;}else{if(!_0x828803[_0x108593('0x11fd')])return _0x1358d1[_0x108593('0xd49')][_0x108593('0x22d5')]({'sectionId':_0x828803['id']})[_0x108593('0xe59')][_0x108593('0xe19')](function(_0x197b5f){var _0x22d828=_0x108593,_0x1aa2b0=_0x32d445()['map'](_0x197b5f[_0x22d828('0x16a7')],function(_0x492ce8){var _0x3983c0=_0x22d828;return _0x32d445()[_0x3983c0('0xf15')](_0x545cc9[_0x3983c0('0x1105')],{'id':_0x492ce8[_0x3983c0('0x1104')]});}),_0x24d4e4=null;_0x545cc9[_0x22d828('0x1d1b')]&&(_0x24d4e4=_0x32d445()[_0x22d828('0xf15')](_0x545cc9['tags'],{'name':_0x545cc9[_0x22d828('0x1d1b')][_0x22d828('0x2037')]}));if(_0x24d4e4&&!_0x32d445()[_0x22d828('0x201a')](_0x1aa2b0,['id',_0x24d4e4['id']])){var _0x338590=_0x32d445()[_0x22d828('0xf15')](_0x545cc9[_0x22d828('0x1105')],{'id':_0x24d4e4['id']});_0x338590['canSelect']=![],_0x1aa2b0['push'](_0x338590);}_0x545cc9[_0x22d828('0x1105')]=_0x1aa2b0;});}})[_0x4a499e('0x223b')](function(_0x102061){var _0x28feda=_0x4a499e;_0x587119[_0x28feda('0x8c8')]({'title':_0x102061['status']?'API:'+_0x102061[_0x28feda('0x2833')]+_0x28feda('0x1b7c')+_0x102061['statusText']:'SYSTEM:GETtags','msg':_0x102061[_0x28feda('0x11d0')]?JSON[_0x28feda('0x3ad')](_0x102061[_0x28feda('0x11d0')]):_0x102061[_0x28feda('0x94f')]()});});function _0x22edc0(){var _0x138012=_0x4a499e;_0x545cc9['errors']=[];var _0x25bce6=[];_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x62e')]&&_0x545cc9[_0x138012('0x1d1b')]['type'][_0x138012('0x20dd')]()===_0x138012('0x1fdf')&&_0x545cc9[_0x138012('0x1d1b')][_0x138012('0xf44')]===_0x138012('0x3d2')&&(_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x1ef5')]=_0x4968fe[_0x138012('0x27f6')]?(_0x545cc9['outbounddial'][_0x138012('0x2580')]||'')+'${EXTEN:'+_0x4968fe['cutdigits']+'}':(_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x2580')]||'')+'${EXTEN}',_0x4968fe[_0x138012('0x150c')]!==_0x138012('0x23ca')?_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x2116')][_0x138012('0x281c')](_0x138012('0x767'))<0x0&&(_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x2116')]+=_0x138012('0x767')):_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x2116')]=_0x545cc9[_0x138012('0x1d1b')]['options'][_0x138012('0x1b42')](_0x138012('0x767'),''));if(_0x545cc9[_0x138012('0x1d1b')][_0x138012('0xf44')]&&_0x545cc9['outbounddial'][_0x138012('0xf44')]==='custom'){}else switch((_0x545cc9[_0x138012('0x1d1b')][_0x138012('0xf2b')]||_0x545cc9[_0x138012('0x1d1b')][_0x138012('0xf44')])[_0x138012('0x20dd')]()){case _0x138012('0x2aa'):_0x545cc9['outbounddial']['appdata']=_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x2623')]+'='+_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x2')];break;case'custom':break;default:_0x25bce6[0x0]=[_0x138012('0x1295'),_0x545cc9['outbounddial'][_0x138012('0x1397')],_0x545cc9['outbounddial'][_0x138012('0x1ef5')]][_0x138012('0x1537')]('/'),_0x25bce6[0x1]=_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x2058')],_0x25bce6[0x2]=_0x545cc9[_0x138012('0x1d1b')][_0x138012('0x2116')],_0x25bce6[0x3]=_0x545cc9['outbounddial'][_0x138012('0x2647')],_0x545cc9['outbounddial'][_0x138012('0x26d2')]=_0x25bce6[_0x138012('0x1537')](',');}_0x2ec989(_0x545cc9[_0x138012('0x1d1b')]);}function _0x2ec989(_0x256dc5){_0xd9bd24['hide'](_0x256dc5);}}const _0x1bf62a=_0x2748f1;_0x132011[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),'$mdDialog','$document',_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x20de'),_0xb635d2('0xb59')];function _0x132011(_0x547726,_0x505f2a,_0x53100a,_0x46b765,_0x651e,_0x4b10df,_0x3524bb,_0x4ceea4,_0x326fcd,_0x3be3b9,_0x40db6d,_0x3323e4){var _0x3fbc76=_0xb635d2,_0xf71765=this;_0xf71765[_0x3fbc76('0x15a5')]=_0x3be3b9['getCurrentUser'](),_0xf71765[_0x3fbc76('0x5c1')]=_0x4b10df,_0xf71765[_0x3fbc76('0x22f1')]=_0x3524bb,_0xf71765[_0x3fbc76('0x25ac')]=_0xf71765['setting'][_0x3fbc76('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xf71765[_0x3fbc76('0x2170')]=_0x505f2a[_0x3fbc76('0xec0')]()+_0x3fbc76('0x21a8')+_0x505f2a['host'](),_0xf71765['outboundroute']=_0x40db6d||_0x547726[_0x3fbc76('0x2ef')][_0x3fbc76('0x20de')]||{},_0xf71765[_0x3fbc76('0xb59')]=_0x3323e4&&_0x3323e4[_0x3fbc76('0x148b')]==0x1?_0x3323e4['rows'][0x0]:null,_0xf71765[_0x3fbc76('0xb3d')]=_0x3be3b9[_0x3fbc76('0xd31')](_0xf71765[_0x3fbc76('0xb59')]?_0xf71765[_0x3fbc76('0xb59')][_0x3fbc76('0xb3d')]:null),_0xf71765[_0x3fbc76('0x1ccb')]={},_0xf71765[_0x3fbc76('0xc7b')]=_0x547726[_0x3fbc76('0x2ef')][_0x3fbc76('0x435')]||0x0,_0xf71765['alert']=_0x326fcd[_0x3fbc76('0x1e67')],_0xf71765[_0x3fbc76('0x1782')]=_0x3bda84,_0xf71765[_0x3fbc76('0x1487')]=_0x5440ba,_0x3be3b9[_0x3fbc76('0x179e')](_0x3fbc76('0xd14'))?_0x4ceea4[_0x3fbc76('0x2768')][_0x3fbc76('0x22d5')]({'fields':_0x3fbc76('0x104'),'sort':_0x3fbc76('0x2623'),'nolimit':_0x3fbc76('0x2206')})[_0x3fbc76('0xe59')][_0x3fbc76('0xe19')](function(_0x214e26){var _0x5b25b4=_0x3fbc76;_0xf71765['contexts']=_0x214e26[_0x5b25b4('0x16a7')]||[];})[_0x3fbc76('0x223b')](function(_0x27b55b){var _0x1407f8=_0x3fbc76;_0x326fcd[_0x1407f8('0x8c8')]({'title':_0x27b55b['status']?_0x1407f8('0x27f2')+_0x27b55b[_0x1407f8('0x2833')]+_0x1407f8('0x1b7c')+_0x27b55b[_0x1407f8('0x1fd7')]:_0x1407f8('0x17ac'),'msg':_0x27b55b[_0x1407f8('0x11d0')]?JSON[_0x1407f8('0x3ad')](_0x27b55b[_0x1407f8('0x11d0')]):_0x27b55b['toString']()});}):_0x4ceea4[_0x3fbc76('0x2768')][_0x3fbc76('0x22d5')]({'fields':'id,name','sort':_0x3fbc76('0x2623'),'nolimit':_0x3fbc76('0x2206')})[_0x3fbc76('0xe59')][_0x3fbc76('0xe19')](function(_0x434c3a){var _0x1a0a21=_0x3fbc76;_0xf71765['contexts']=_0x434c3a[_0x1a0a21('0x16a7')]||[];})[_0x3fbc76('0xe19')](function(){var _0x3e9a5c=_0x3fbc76;return _0x4ceea4[_0x3e9a5c('0xb59')][_0x3e9a5c('0x22d5')]({'userProfileId':_0xf71765[_0x3e9a5c('0x15a5')][_0x3e9a5c('0x1d04')],'sectionId':0x195})[_0x3e9a5c('0xe59')];})['then'](function(_0x205389){var _0x432b11=_0x3fbc76,_0x2df61d=_0x205389&&_0x205389[_0x432b11('0x16a7')]?_0x205389[_0x432b11('0x16a7')][0x0]:null;if(!_0x2df61d)return _0x4ceea4[_0x432b11('0x2768')][_0x432b11('0x22d5')]({'fields':_0x432b11('0x104'),'sort':'name','nolimit':_0x432b11('0x2206'),'defaultEntry':0x1})[_0x432b11('0xe59')][_0x432b11('0xe19')](function(_0x271cc5){var _0x42bbfd=_0x432b11;_0xf71765[_0x42bbfd('0x3c1')]=_0x271cc5['rows']||[];});else{if(!_0x2df61d[_0x432b11('0x11fd')])return _0x4ceea4['userProfileResource'][_0x432b11('0x22d5')]({'sectionId':_0x2df61d['id']})[_0x432b11('0xe59')]['then'](function(_0x362e75){var _0x55b121=_0x432b11,_0x106832=_0x32d445()[_0x55b121('0x65a')](_0x362e75[_0x55b121('0x16a7')],function(_0x1af535){var _0x2f09b2=_0x55b121;return _0x32d445()[_0x2f09b2('0xf15')](_0xf71765['contexts'],{'id':_0x1af535[_0x2f09b2('0x1104')]});}),_0x3dbb5f=null;_0xf71765[_0x55b121('0x20de')]&&(_0x3dbb5f=_0x32d445()['find'](_0xf71765[_0x55b121('0x3c1')],{'name':_0xf71765[_0x55b121('0x20de')][_0x55b121('0x1318')]}));if(_0x3dbb5f&&!_0x32d445()['some'](_0x106832,['id',_0x3dbb5f['id']])){var _0x13c474=_0x32d445()['find'](_0xf71765[_0x55b121('0x3c1')],{'id':_0x3dbb5f['id']});_0x13c474[_0x55b121('0x1e9d')]=![],_0x106832[_0x55b121('0xb76')](_0x13c474);}_0xf71765[_0x55b121('0x3c1')]=_0x106832;});}})['catch'](function(_0x4856d6){var _0x8ead9f=_0x3fbc76;_0x326fcd[_0x8ead9f('0x8c8')]({'title':_0x4856d6[_0x8ead9f('0x2833')]?_0x8ead9f('0x27f2')+_0x4856d6[_0x8ead9f('0x2833')]+'\x20-\x20'+_0x4856d6[_0x8ead9f('0x1fd7')]:'SYSTEM:GETcontexts','msg':_0x4856d6[_0x8ead9f('0x11d0')]?JSON[_0x8ead9f('0x3ad')](_0x4856d6['data']):_0x4856d6[_0x8ead9f('0x94f')]()});});function _0x3bda84(){var _0xe57b00=_0x3fbc76;_0x547726['go']('app.voice.outboundroutes',{},{'reload':_0xe57b00('0xae2')});}function _0x5440ba(){var _0x1417cc=_0x3fbc76;_0x4ceea4[_0x1417cc('0x1979')][_0x1417cc('0xa70')]({'id':_0xf71765['outboundroute']['id']},_0xf71765[_0x1417cc('0x20de')])[_0x1417cc('0xe59')][_0x1417cc('0xe19')](function(){var _0x4c8bea=_0x1417cc;_0x326fcd['success']({'title':_0x4c8bea('0x243b'),'msg':_0xf71765[_0x4c8bea('0x20de')][_0x4c8bea('0x2623')]?_0xf71765['outboundroute'][_0x4c8bea('0x2623')]+_0x4c8bea('0x283b'):''});})[_0x1417cc('0x223b')](function(_0x145117){var _0x185118=_0x1417cc;_0x326fcd[_0x185118('0x8c8')]({'title':_0x145117[_0x185118('0x2833')]?_0x185118('0x27f2')+_0x145117[_0x185118('0x2833')]+'\x20-\x20'+_0x145117[_0x185118('0x1fd7')]:'SYSTEM:GETvoiceExtension','msg':_0x145117['data']?JSON[_0x185118('0x3ad')](_0x145117[_0x185118('0x11d0')]):_0x145117['toString']()});});}}const _0x4abe6c=_0x132011,_0x500099=_0x59426a['p']+_0xb635d2('0x1ca0');_0x5cb289[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0xa95'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x5cb289(_0x3da8c0,_0x574e53,_0x4c4e4e,_0xe2eec5,_0x496d60,_0x43c4bc,_0x5c296b,_0x29a7ae,_0x28b9f1,_0x121d91,_0x392504,_0x3f653f,_0x59ef8e,_0x31d5f7,_0x82265e,_0x3e11b4,_0x2f5ad1){var _0x5ca856=_0xb635d2,_0x51ad95=this;_0x51ad95[_0x5ca856('0x5c1')]=_0x3e11b4,_0x51ad95['setting']=_0x2f5ad1,_0x51ad95['currentUser']=_0x82265e[_0x5ca856('0x1ef8')](),_0x51ad95[_0x5ca856('0xa95')]=_0x28b9f1||{'count':0x0,'rows':[]},_0x51ad95['userProfile']=_0x121d91,_0x51ad95[_0x5ca856('0xb59')]=_0x392504&&_0x392504['count']==0x1?_0x392504[_0x5ca856('0x16a7')][0x0]:null,_0x51ad95[_0x5ca856('0xb3d')]=_0x82265e['parseCrudPermissions'](_0x51ad95[_0x5ca856('0xb59')]?_0x51ad95[_0x5ca856('0xb59')][_0x5ca856('0xb3d')]:null),_0x51ad95[_0x5ca856('0x19b6')]=_0x5ca856('0xa95'),_0x51ad95[_0x5ca856('0x14d6')]='',_0x51ad95[_0x5ca856('0x190c')]=null,_0x51ad95[_0x5ca856('0x189c')]=[],_0x51ad95[_0x5ca856('0xa16')]={'fields':_0x5ca856('0x2226'),'type':_0x5ca856('0x1fdf'),'sort':_0x5ca856('0x7e8'),'VoiceExtensionId':_0x5ca856('0x1046'),'limit':0xa,'page':0x1},_0x51ad95[_0x5ca856('0x6ad')]=_0x32d445()[_0x5ca856('0x226f')]([{'option':_0x5ca856('0x23ca'),'value':'\x27none\x27'},{'option':'wav','value':_0x5ca856('0x8c5')},{'option':_0x5ca856('0x12c9'),'value':_0x5ca856('0x8c7')},{'option':_0x5ca856('0x2844'),'value':_0x5ca856('0x4db')}],function(_0x546e4c){var _0x5bb795=_0x5ca856;return _0x32d445()[_0x5bb795('0x1b42')](_0x546e4c[_0x5bb795('0x2')],new RegExp('\x27','g'),'');}),_0x51ad95['editstate']=_0x1df92b,_0x51ad95[_0x5ca856('0x1d9e')]=_0x547d92,_0x51ad95[_0x5ca856('0x425')]=_0x23b3fa,_0x51ad95[_0x5ca856('0x2534')]=_0x54191a,_0x51ad95[_0x5ca856('0x2422')]=_0x5ad4d4,_0x51ad95[_0x5ca856('0x1cf7')]=_0x51f7cd,_0x51ad95[_0x5ca856('0x1926')]=_0x435db1,_0x51ad95[_0x5ca856('0x95')]=_0x209e9a,_0x51ad95[_0x5ca856('0xf4c')]=_0x32c30d,_0x51ad95['selectAllOutboundRoutes']=_0x57d371,_0x82265e[_0x5ca856('0x179e')](_0x5ca856('0xd14'))?_0x3f653f[_0x5ca856('0x2768')][_0x5ca856('0x22d5')]({'fields':'id,name','sort':_0x5ca856('0x2623'),'nolimit':_0x5ca856('0x2206')})[_0x5ca856('0xe59')][_0x5ca856('0xe19')](function(_0xc217b9){var _0xe539dd=_0x5ca856;_0x51ad95[_0xe539dd('0x3c1')]=_0xc217b9[_0xe539dd('0x16a7')]||[];})[_0x5ca856('0x223b')](function(_0x218b16){var _0x3af6ae=_0x5ca856;_0x31d5f7[_0x3af6ae('0x8c8')]({'title':_0x218b16[_0x3af6ae('0x2833')]?_0x3af6ae('0x27f2')+_0x218b16[_0x3af6ae('0x2833')]+_0x3af6ae('0x1b7c')+_0x218b16['statusText']:'SYSTEM:GET_CONTEXTS','msg':_0x218b16[_0x3af6ae('0x11d0')]?JSON[_0x3af6ae('0x3ad')](_0x218b16[_0x3af6ae('0x11d0')]):_0x218b16[_0x3af6ae('0x94f')]()});}):_0x3f653f[_0x5ca856('0x2768')][_0x5ca856('0x22d5')]({'fields':_0x5ca856('0x104'),'sort':_0x5ca856('0x2623'),'nolimit':_0x5ca856('0x2206')})[_0x5ca856('0xe59')][_0x5ca856('0xe19')](function(_0x520e38){var _0x2c047d=_0x5ca856;_0x51ad95[_0x2c047d('0x3c1')]=_0x520e38[_0x2c047d('0x16a7')]||[];})[_0x5ca856('0xe19')](function(){var _0x1aa09b=_0x5ca856;return _0x3f653f[_0x1aa09b('0xb59')][_0x1aa09b('0x22d5')]({'userProfileId':_0x51ad95['currentUser'][_0x1aa09b('0x1d04')],'sectionId':0x195})[_0x1aa09b('0xe59')];})[_0x5ca856('0xe19')](function(_0x15a3c2){var _0x399637=_0x5ca856,_0x95e258=_0x15a3c2&&_0x15a3c2[_0x399637('0x16a7')]?_0x15a3c2[_0x399637('0x16a7')][0x0]:null;if(!_0x95e258)return _0x3f653f[_0x399637('0x2768')][_0x399637('0x22d5')]({'fields':_0x399637('0x104'),'sort':_0x399637('0x2623'),'nolimit':_0x399637('0x2206'),'defaultEntry':0x1})[_0x399637('0xe59')][_0x399637('0xe19')](function(_0x498464){var _0x3f9587=_0x399637;_0x51ad95[_0x3f9587('0x3c1')]=_0x498464[_0x3f9587('0x16a7')]||[];});else{if(!_0x95e258[_0x399637('0x11fd')])return _0x3f653f[_0x399637('0xd49')][_0x399637('0x22d5')]({'sectionId':_0x95e258['id']})[_0x399637('0xe59')][_0x399637('0xe19')](function(_0x3e6f9e){var _0x2a33c6=_0x399637,_0x101381=_0x32d445()[_0x2a33c6('0x65a')](_0x3e6f9e[_0x2a33c6('0x16a7')],function(_0x5309e6){var _0x20758a=_0x2a33c6;return _0x32d445()[_0x20758a('0xf15')](_0x51ad95[_0x20758a('0x3c1')],{'id':_0x5309e6[_0x20758a('0x1104')]});}),_0x19685c=null;_0x51ad95[_0x2a33c6('0x20de')]&&(_0x19685c=_0x32d445()['find'](_0x51ad95[_0x2a33c6('0x3c1')],{'name':_0x51ad95['outboundroute'][_0x2a33c6('0x1318')]}));if(_0x19685c&&!_0x32d445()[_0x2a33c6('0x201a')](_0x101381,['id',_0x19685c['id']])){var _0x528b1f=_0x32d445()[_0x2a33c6('0xf15')](_0x51ad95['contexts'],{'id':_0x19685c['id']});_0x528b1f['canSelect']=![],_0x101381[_0x2a33c6('0xb76')](_0x528b1f);}_0x51ad95[_0x2a33c6('0x3c1')]=_0x101381;});}})[_0x5ca856('0x223b')](function(_0x8a99fd){var _0x41a65f=_0x5ca856;_0x31d5f7[_0x41a65f('0x8c8')]({'title':_0x8a99fd['status']?_0x41a65f('0x27f2')+_0x8a99fd['status']+_0x41a65f('0x1b7c')+_0x8a99fd[_0x41a65f('0x1fd7')]:_0x41a65f('0x12ed'),'msg':_0x8a99fd['data']?JSON['stringify'](_0x8a99fd[_0x41a65f('0x11d0')]):_0x8a99fd[_0x41a65f('0x94f')]()});});function _0x1df92b(_0x220f9f){var _0x51d2a3=_0x5ca856;_0x4c4e4e['go'](_0x51d2a3('0x12a2'),{'id':_0x220f9f['id'],'outboundroute':_0x220f9f,'crudPermissions':_0x51ad95[_0x51d2a3('0xb3d')]});}function _0x547d92(_0x12f06e,_0x51d604){var _0x578e4d=_0x5ca856,_0x669f92=_0x496d60[_0x578e4d('0xa5')]()['title'](_0x578e4d('0x346')+_0x32d445()[_0x578e4d('0x1df2')](_0x578e4d('0x20de'))+'?')[_0x578e4d('0x221c')](''+(_0x12f06e[_0x578e4d('0x2623')]||_0x578e4d('0x20de'))+''+'\x20will\x20be\x20deleted.')[_0x578e4d('0x4d1')](_0x578e4d('0x36e'))[_0x578e4d('0x1345')](_0x51d604)['ok']('OK')[_0x578e4d('0x2c1')]('CANCEL');_0x496d60[_0x578e4d('0x26b2')](_0x669f92)['then'](function(){_0x51f7cd(_0x12f06e);},function(){var _0x554001=_0x578e4d;console[_0x554001('0x1fe9')](_0x554001('0x17'));});}var _0x5c0ba1=!![],_0x313bce=0x1;_0x3da8c0['$watch']('vm.query.filter',function(_0x9a035,_0x5017a0){var _0xd3ab4f=_0x5ca856;_0x5c0ba1?_0x5c296b(function(){_0x5c0ba1=![];}):(!_0x5017a0&&(_0x313bce=_0x51ad95[_0xd3ab4f('0xa16')][_0xd3ab4f('0xc08')]),_0x9a035!==_0x5017a0&&(_0x51ad95['query'][_0xd3ab4f('0xc08')]=0x1),!_0x9a035&&(_0x51ad95['query']['page']=_0x313bce),_0x51ad95[_0xd3ab4f('0x2534')]());});function _0x23b3fa(_0x4e9543){var _0x126dd7=_0x5ca856;_0x51ad95[_0x126dd7('0xa95')]=_0x4e9543||{'count':0x0,'rows':[]};}function _0x54191a(){var _0xe77d96=_0x5ca856;_0x51ad95['query'][_0xe77d96('0xab0')]=(_0x51ad95['query']['page']-0x1)*_0x51ad95[_0xe77d96('0xa16')][_0xe77d96('0x1b6d')],_0x82265e[_0xe77d96('0x179e')](_0xe77d96('0xd14'))?_0x51ad95[_0xe77d96('0x9c8')]=_0x3f653f[_0xe77d96('0x1979')]['get'](_0x51ad95[_0xe77d96('0xa16')],_0x23b3fa)[_0xe77d96('0xe59')]:(_0x51ad95[_0xe77d96('0xa16')]['id']=_0x51ad95['userProfile']['id'],_0x51ad95[_0xe77d96('0xa16')][_0xe77d96('0x1e59')]='OutboundRoutes',_0x51ad95['promise']=_0x3f653f[_0xe77d96('0x154f')]['getResources'](_0x51ad95[_0xe77d96('0xa16')],_0x23b3fa)[_0xe77d96('0xe59')]);}function _0x5ad4d4(_0x5d7935,_0x198f47){var _0x458517=_0x5ca856;_0x496d60['show']({'controller':_0x458517('0x3af'),'controllerAs':'vm','templateUrl':_0x500099,'parent':angular['element'](_0x43c4bc[_0x458517('0x19b2')]),'targetEvent':_0x5d7935,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x198f47,'outboundroutes':_0x51ad95[_0x458517('0xa95')][_0x458517('0x16a7')],'license':_0x51ad95[_0x458517('0x5c1')],'setting':_0x51ad95[_0x458517('0x22f1')],'crudPermissions':_0x51ad95[_0x458517('0xb3d')]}});}function _0x51f7cd(_0x289f6c){var _0x2c5fad=_0x5ca856;_0x3f653f[_0x2c5fad('0x21df')][_0x2c5fad('0x22d5')]({'VoiceExtensionId':_0x289f6c['id']})[_0x2c5fad('0xe59')]['then'](function(_0x33a88d){var _0x4f275d=_0x2c5fad;if(_0x33a88d&&_0x33a88d[_0x4f275d('0x16a7')]&&_0x33a88d[_0x4f275d('0x16a7')][_0x4f275d('0x25ae')]>0x0)return _0x31d5f7[_0x4f275d('0x8c8')]({'title':'Outbound\x20route\x20not\x20deleted!','msg':_0x4f275d('0xc48')});else _0x3f653f['voiceExtension']['delete']({'id':_0x289f6c['id']})['$promise'][_0x4f275d('0xe19')](function(){var _0x3c8fab=_0x4f275d;_0x32d445()['remove'](_0x51ad95[_0x3c8fab('0xa95')][_0x3c8fab('0x16a7')],{'id':_0x289f6c['id']}),_0x51ad95['outboundroutes'][_0x3c8fab('0x148b')]-=0x1,!_0x51ad95[_0x3c8fab('0xa95')][_0x3c8fab('0x16a7')]['length']&&_0x51ad95[_0x3c8fab('0x2534')](),_0x31d5f7[_0x3c8fab('0x425')]({'title':_0x32d445()[_0x3c8fab('0x1df2')]('OutboundRoute')+_0x3c8fab('0x1219'),'msg':_0x289f6c[_0x3c8fab('0x2623')]?_0x289f6c[_0x3c8fab('0x2623')]+_0x3c8fab('0x2182'):''});})['catch'](function(_0x1c21b3){var _0x283e16=_0x4f275d;if(_0x1c21b3[_0x283e16('0x11d0')]&&_0x1c21b3[_0x283e16('0x11d0')][_0x283e16('0xcd2')]&&_0x1c21b3[_0x283e16('0x11d0')]['errors']['length']){_0x51ad95['errors']=_0x1c21b3[_0x283e16('0x11d0')][_0x283e16('0xcd2')]||[{'message':_0x1c21b3[_0x283e16('0x94f')](),'type':'SYSTEM:DELETEvoiceExtension'}];for(var _0x364628=0x0;_0x364628<_0x1c21b3[_0x283e16('0x11d0')][_0x283e16('0xcd2')][_0x283e16('0x25ae')];_0x364628++){_0x31d5f7[_0x283e16('0x8c8')]({'title':_0x1c21b3[_0x283e16('0x11d0')][_0x283e16('0xcd2')][_0x364628][_0x283e16('0x62e')],'msg':_0x1c21b3[_0x283e16('0x11d0')][_0x283e16('0xcd2')][_0x364628][_0x283e16('0x27e8')]});}}else _0x31d5f7[_0x283e16('0x8c8')]({'title':_0x1c21b3[_0x283e16('0x2833')]?_0x283e16('0x27f2')+_0x1c21b3[_0x283e16('0x2833')]+_0x283e16('0x1b7c')+_0x1c21b3['statusText']:_0x283e16('0x35c'),'msg':_0x1c21b3['data']?JSON[_0x283e16('0x3ad')](_0x1c21b3[_0x283e16('0x11d0')][_0x283e16('0x27e8')]):_0x1c21b3[_0x283e16('0x27e8')]||_0x1c21b3[_0x283e16('0x94f')]()});});});}function _0x435db1(){var _0x564217=_0x5ca856,_0x4c5227=angular[_0x564217('0x89')](_0x51ad95[_0x564217('0x189c')]);return _0x51ad95[_0x564217('0x189c')]=[],_0x4c5227;}function _0x209e9a(_0x345a37){var _0x1f9b57=_0x5ca856,_0x3b8c78=_0x496d60['confirm']()[_0x1f9b57('0x13e4')](_0x1f9b57('0x72c'))[_0x1f9b57('0x221c')](_0x1f9b57('0xab2')+_0x51ad95[_0x1f9b57('0x189c')][_0x1f9b57('0x25ae')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1f9b57('0x1943'))[_0x1f9b57('0x1345')](_0x345a37)['ok']('OK')[_0x1f9b57('0x2c1')](_0x1f9b57('0x17'));_0x496d60[_0x1f9b57('0x26b2')](_0x3b8c78)[_0x1f9b57('0xe19')](function(){var _0x270aa1=_0x1f9b57;_0x51ad95['selectedOutboundRoutes'][_0x270aa1('0x1d7e')](function(_0x4860fe){_0x51f7cd(_0x4860fe);}),_0x51ad95[_0x270aa1('0x189c')]=[];});}function _0x32c30d(){var _0x5bf9ef=_0x5ca856;_0x51ad95[_0x5bf9ef('0x189c')]=[];}function _0x57d371(){var _0x337750=_0x5ca856;_0x51ad95['selectedOutboundRoutes']=_0x51ad95[_0x337750('0xa95')][_0x337750('0x16a7')];}}const _0x162081=_0x5cb289;_0x375c4c[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x2446'),_0xb635d2('0x4e0'),'api','Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x375c4c(_0x5377cc,_0x4645a6,_0x1a8787,_0x4c8d18,_0x3de6ff,_0x17d8ce,_0x513dfb,_0x2b8567,_0x2ff0b4,_0x1f7adc,_0x4ef91d,_0x215e02,_0x1c1389,_0x49d84a){var _0x478a7d=_0xb635d2,_0x4c3e00=this;_0x4c3e00[_0x478a7d('0x15a5')]=_0x4ef91d[_0x478a7d('0x1ef8')](),_0x4c3e00['errors']=[],_0x4c3e00[_0x478a7d('0x22f1')]=_0x1c1389,_0x4c3e00['license']=_0x215e02,_0x4c3e00[_0x478a7d('0xb3d')]=_0x49d84a,_0x4c3e00['hasModulePermissions']={},_0x4c3e00[_0x478a7d('0x25ac')]=_0x4c3e00[_0x478a7d('0x22f1')]&&_0x4c3e00[_0x478a7d('0x22f1')][_0x478a7d('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c3e00[_0x478a7d('0x13e4')]=_0x478a7d('0x13eb'),_0x4c3e00['voicemail']=angular['copy'](_0x2ff0b4),_0x4c3e00[_0x478a7d('0x2446')]=_0x2b8567,_0x4c3e00[_0x478a7d('0x1405')]=![];!_0x4c3e00[_0x478a7d('0x4e0')]&&(_0x4c3e00['voicemail']={'attach':'no'},_0x4c3e00[_0x478a7d('0x13e4')]=_0x478a7d('0xbaa'),_0x4c3e00['newVoicemail']=!![]);_0x4c3e00['addNewVoicemail']=_0x1bd656,_0x4c3e00['saveVoicemail']=_0x5aa612,_0x4c3e00[_0x478a7d('0x20fe')]=_0x3a9040,_0x4c3e00[_0x478a7d('0x2635')]=_0x1db741,_0x4c3e00[_0x478a7d('0x2584')]=_0x4e786e;function _0x1bd656(){var _0x37630d=_0x478a7d;_0x4c3e00['errors']=[],_0x1f7adc['voiceMail']['save'](_0x4c3e00[_0x37630d('0x4e0')])['$promise'][_0x37630d('0xe19')](function(_0x1c7f6b){var _0x244734=_0x37630d;_0x4c3e00[_0x244734('0x2446')][_0x244734('0x14c9')](_0x1c7f6b[_0x244734('0x250e')]()),_0x513dfb[_0x244734('0x425')]({'title':_0x244734('0x280'),'msg':_0x4c3e00[_0x244734('0x4e0')][_0x244734('0x2623')]?_0x4c3e00[_0x244734('0x4e0')][_0x244734('0x2623')]+_0x244734('0x105f'):''}),_0x4e786e(_0x1c7f6b);})['catch'](function(_0xc41c3f){var _0x485936=_0x37630d;if(_0xc41c3f[_0x485936('0x11d0')]&&_0xc41c3f[_0x485936('0x11d0')][_0x485936('0xcd2')]&&_0xc41c3f['data'][_0x485936('0xcd2')]['length']){_0x4c3e00['errors']=_0xc41c3f[_0x485936('0x11d0')]['errors']||[{'message':_0xc41c3f[_0x485936('0x94f')](),'type':'api.voiceMail.save'}];for(var _0x5d79ad=0x0;_0x5d79ad<_0xc41c3f[_0x485936('0x11d0')][_0x485936('0xcd2')][_0x485936('0x25ae')];_0x5d79ad+=0x1){_0x513dfb[_0x485936('0x8c8')]({'title':_0xc41c3f[_0x485936('0x11d0')]['errors'][_0x5d79ad][_0x485936('0x62e')],'msg':_0xc41c3f['data'][_0x485936('0xcd2')][_0x5d79ad]['message']});}}else _0x513dfb[_0x485936('0x8c8')]({'title':_0xc41c3f['status']?_0x485936('0x27f2')+_0xc41c3f[_0x485936('0x2833')]+'\x20-\x20'+_0xc41c3f[_0x485936('0x1fd7')]:_0x485936('0xea6'),'msg':_0xc41c3f['data']?JSON[_0x485936('0x3ad')](_0xc41c3f['data']['message']):_0xc41c3f['toString']()});});}function _0x5aa612(){var _0x28a725=_0x478a7d;_0x4c3e00[_0x28a725('0xcd2')]=[],_0x1f7adc[_0x28a725('0x27bf')][_0x28a725('0xa70')]({'id':_0x4c3e00[_0x28a725('0x4e0')]['id']},_0x4c3e00[_0x28a725('0x4e0')])['$promise'][_0x28a725('0xe19')](function(_0x378555){var _0x2c387e=_0x28a725,_0xefc7b=_0x32d445()[_0x2c387e('0xf15')](_0x4c3e00['voicemails'],{'id':_0x378555['id']});_0xefc7b&&_0x32d445()[_0x2c387e('0x1d8')](_0xefc7b,_0x32d445()['pick'](_0x378555[_0x2c387e('0x250e')](),_0x32d445()[_0x2c387e('0x1234')](_0xefc7b))),_0x513dfb[_0x2c387e('0x425')]({'title':_0x2c387e('0x2153'),'msg':_0x4c3e00[_0x2c387e('0x4e0')][_0x2c387e('0x2623')]?_0x4c3e00[_0x2c387e('0x4e0')][_0x2c387e('0x2623')]+_0x2c387e('0x1c19'):''}),_0x4e786e(_0x378555);})[_0x28a725('0x223b')](function(_0x3b255e){var _0x4390c0=_0x28a725;if(_0x3b255e['data']&&_0x3b255e[_0x4390c0('0x11d0')][_0x4390c0('0xcd2')]&&_0x3b255e[_0x4390c0('0x11d0')]['errors'][_0x4390c0('0x25ae')]){_0x4c3e00[_0x4390c0('0xcd2')]=_0x3b255e[_0x4390c0('0x11d0')][_0x4390c0('0xcd2')]||[{'message':_0x3b255e[_0x4390c0('0x94f')](),'type':_0x4390c0('0x12ae')}];for(var _0x1fbfaa=0x0;_0x1fbfaa<_0x3b255e[_0x4390c0('0x11d0')]['errors'][_0x4390c0('0x25ae')];_0x1fbfaa++){_0x513dfb[_0x4390c0('0x8c8')]({'title':_0x3b255e[_0x4390c0('0x11d0')]['errors'][_0x1fbfaa][_0x4390c0('0x62e')],'msg':_0x3b255e[_0x4390c0('0x11d0')][_0x4390c0('0xcd2')][_0x1fbfaa]['message']});}}else _0x513dfb[_0x4390c0('0x8c8')]({'title':_0x3b255e['status']?_0x4390c0('0x27f2')+_0x3b255e['status']+_0x4390c0('0x1b7c')+_0x3b255e['statusText']:_0x4390c0('0x12ae'),'msg':_0x3b255e[_0x4390c0('0x11d0')]?JSON['stringify'](_0x3b255e[_0x4390c0('0x11d0')]['message']):_0x3b255e['toString']()});});}function _0x3a9040(_0x33f59d){var _0x2fa8a1=_0x478a7d;_0x4c3e00['errors']=[];var _0x3fed34=_0x4c8d18['confirm']()['title'](_0x2fa8a1('0x24d0'))[_0x2fa8a1('0xd0')](_0x2fa8a1('0xbf'))[_0x2fa8a1('0x4d1')](_0x2fa8a1('0x27a2'))['ok'](_0x2fa8a1('0x2198'))[_0x2fa8a1('0x2c1')](_0x2fa8a1('0x8a3'))[_0x2fa8a1('0x1345')](_0x33f59d);_0x4c8d18[_0x2fa8a1('0x26b2')](_0x3fed34)[_0x2fa8a1('0xe19')](function(){var _0x21c3c8=_0x2fa8a1;_0x1f7adc[_0x21c3c8('0x27bf')][_0x21c3c8('0x229e')]({'id':_0x4c3e00[_0x21c3c8('0x4e0')]['id']})[_0x21c3c8('0xe59')][_0x21c3c8('0xe19')](function(){var _0x4b9b9d=_0x21c3c8;_0x32d445()[_0x4b9b9d('0xa8b')](_0x4c3e00[_0x4b9b9d('0x2446')],{'id':_0x4c3e00[_0x4b9b9d('0x4e0')]['id']}),_0x513dfb['success']({'title':_0x4b9b9d('0xa45'),'msg':(_0x4c3e00[_0x4b9b9d('0x4e0')]['name']||_0x4b9b9d('0x4e0'))+'\x20has\x20been\x20deleted!'}),_0x4e786e(_0x4c3e00['voicemail']);})['catch'](function(_0x4c7580){var _0x52152a=_0x21c3c8;if(_0x4c7580[_0x52152a('0x11d0')]&&_0x4c7580[_0x52152a('0x11d0')][_0x52152a('0xcd2')]&&_0x4c7580[_0x52152a('0x11d0')][_0x52152a('0xcd2')][_0x52152a('0x25ae')]){_0x4c3e00[_0x52152a('0xcd2')]=_0x4c7580['data'][_0x52152a('0xcd2')]||[{'message':_0x4c7580['toString'](),'type':_0x52152a('0x13da')}];for(var _0x4b435b=0x0;_0x4b435b<_0x4c7580[_0x52152a('0x11d0')]['errors'][_0x52152a('0x25ae')];_0x4b435b++){_0x513dfb[_0x52152a('0x8c8')]({'title':_0x4c7580[_0x52152a('0x11d0')][_0x52152a('0xcd2')][_0x4b435b][_0x52152a('0x62e')],'msg':_0x4c7580['data'][_0x52152a('0xcd2')][_0x4b435b][_0x52152a('0x27e8')]});}}else _0x513dfb['error']({'title':_0x4c7580[_0x52152a('0x2833')]?_0x52152a('0x27f2')+_0x4c7580['status']+_0x52152a('0x1b7c')+_0x4c7580[_0x52152a('0x1fd7')]:_0x52152a('0x13da'),'msg':_0x4c7580[_0x52152a('0x11d0')]?JSON['stringify'](_0x4c7580['data'][_0x52152a('0x27e8')]):_0x4c7580[_0x52152a('0x27e8')]||_0x4c7580[_0x52152a('0x94f')]()});});},function(){});}function _0x1db741(_0x4c482a){return _0x4c482a===null?undefined:new Date(_0x4c482a);}function _0x4e786e(_0x417318){_0x4c8d18['hide'](_0x417318);}}const _0x4100dc=_0x375c4c;_0x54c892['$inject']=['$cookies',_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),'$timeout',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x54c892(_0x346808,_0x1fb7df,_0x7ecc88,_0x2e482b,_0xe7da7e,_0x5c352b,_0x2491b4,_0x36bcba,_0x44e31d,_0x3eebe1,_0x10f4a0){var _0x4d15f6=_0xb635d2,_0x84cb5d=this;_0x84cb5d[_0x4d15f6('0x15a5')]=_0x10f4a0[_0x4d15f6('0x1ef8')](),_0x84cb5d['voicemail']={},_0x84cb5d[_0x4d15f6('0x220d')]={'count':0x0,'rows':[]},_0x84cb5d[_0x4d15f6('0x26fd')]=[],_0x84cb5d[_0x4d15f6('0xb3d')],_0x84cb5d[_0x4d15f6('0xa16')]={'fields':_0x4d15f6('0xa97'),'sort':_0x4d15f6('0x7fc'),'limit':0xa,'page':0x1},_0x84cb5d[_0x4d15f6('0x15f9')]=_0x2b9b32,_0x84cb5d[_0x4d15f6('0x126c')]=_0x158a97,_0x84cb5d[_0x4d15f6('0x6c3')]=_0x3c2e67,_0x84cb5d['success']=_0x189bc5,_0x84cb5d[_0x4d15f6('0xb98')]=_0x5c6855,_0x84cb5d[_0x4d15f6('0xbdb')]=_0x55b689,_0x84cb5d[_0x4d15f6('0xde4')]=_0x335d16,_0x84cb5d[_0x4d15f6('0x422')]=_0x591431;function _0x2b9b32(_0x21d056,_0x5f47d2){var _0x4c531e=_0x4d15f6;_0x84cb5d[_0x4c531e('0x4e0')]=_0x21d056,_0x84cb5d[_0x4c531e('0xb3d')]=typeof _0x5f47d2!==_0x4c531e('0x1143')?_0x5f47d2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x84cb5d[_0x4c531e('0xa16')]['id']=_0x84cb5d[_0x4c531e('0x4e0')]['id'],_0x5c6855();}function _0x3c2e67(_0x473beb,_0x306b63,_0x8cd4a){return _0x3eebe1['voiceMailMessage']['download']({'id':_0x473beb['id'],'exists':!![],'attachments':_0x8cd4a})['$promise']['then'](function(_0x52e198){var _0x57553b=a0_0x5325,_0x176789=[_0x52e198[_0x57553b('0x17ab')]],_0x139c7c=_0x57553b('0x27e8')+_0x473beb['id'],_0x2f8b3c=new Blob(_0x176789,{'type':_0x52e198[_0x57553b('0x62e')]});_0x139c7c=_0x473beb[_0x57553b('0x836')]+_0x57553b('0x14e9');var _0x50c71a=window[_0x57553b('0x18fa')][_0x57553b('0x9a1')]('a');_0x50c71a[_0x57553b('0xede')]('href',URL[_0x57553b('0x1360')](_0x2f8b3c)),_0x50c71a[_0x57553b('0xede')](_0x57553b('0x1d1e'),_0x139c7c),document['body'][_0x57553b('0x1d13')](_0x50c71a),_0x50c71a[_0x57553b('0xfe7')]();})['catch'](function(_0x1186b4){var _0x451829=a0_0x5325;if(_0x1186b4[_0x451829('0x11d0')]&&_0x1186b4['data']['errors']&&_0x1186b4[_0x451829('0x11d0')][_0x451829('0xcd2')][_0x451829('0x25ae')])for(var _0x4c7a17=0x0;_0x4c7a17<_0x1186b4[_0x451829('0x11d0')]['errors'][_0x451829('0x25ae')];_0x4c7a17+=0x1){_0x44e31d[_0x451829('0x8c8')]({'title':_0x1186b4['data'][_0x451829('0xcd2')][_0x4c7a17][_0x451829('0x62e')],'msg':_0x1186b4[_0x451829('0x11d0')][_0x451829('0xcd2')][_0x4c7a17][_0x451829('0x27e8')]});}else _0x44e31d[_0x451829('0x8c8')]({'title':_0x1186b4[_0x451829('0x2833')]?_0x451829('0x27f2')+_0x1186b4[_0x451829('0x2833')]+'\x20-\x20'+_0x1186b4[_0x451829('0x1fd7')]:'api.voiceMail.save','msg':_0x1186b4[_0x451829('0x11d0')]?JSON['stringify'](_0x1186b4['data']['message']):_0x1186b4[_0x451829('0x94f')]()});});}function _0x158a97(_0x111452,_0x464b8d){var _0x3e7348=_0x4d15f6,_0x442f52=_0x2491b4[_0x3e7348('0xa5')]()[_0x3e7348('0x13e4')](_0x3e7348('0x1eda'))[_0x3e7348('0x221c')](_0x3e7348('0xab2')+(_0x111452[_0x3e7348('0x2623')]||_0x111452['id']&&_0x32d445()[_0x3e7348('0x2077')](_0x3e7348('0x1e9f'))+_0x111452['id']||_0x3e7348('0x27e8'))+_0x3e7348('0x27bb')+_0x3e7348('0x21bd'))['ariaLabel'](_0x3e7348('0x104d'))['targetEvent'](_0x464b8d)['ok']('OK')[_0x3e7348('0x2c1')](_0x3e7348('0x17'));_0x2491b4[_0x3e7348('0x26b2')](_0x442f52)[_0x3e7348('0xe19')](function(){_0x335d16(_0x111452);},function(){var _0x298be2=_0x3e7348;console['log'](_0x298be2('0x17'));});}function _0x189bc5(_0x54aeb8){var _0x4a0249=_0x4d15f6;_0x84cb5d[_0x4a0249('0x220d')]=_0x54aeb8||{'count':0x0,'rows':[]};}function _0x5c6855(){var _0x11cdc9=_0x4d15f6;_0x84cb5d[_0x11cdc9('0xa16')]['offset']=(_0x84cb5d['query'][_0x11cdc9('0xc08')]-0x1)*_0x84cb5d[_0x11cdc9('0xa16')]['limit'],_0x84cb5d['promise']=_0x3eebe1['voiceMail']['getMessages'](_0x84cb5d['query'],_0x189bc5)[_0x11cdc9('0xe59')];}function _0x335d16(_0x34ae3c){var _0x7e7275=_0x4d15f6;_0x3eebe1[_0x7e7275('0x1e9c')]['delete']({'id':_0x34ae3c['id']})[_0x7e7275('0xe59')][_0x7e7275('0xe19')](function(){var _0x49de9c=_0x7e7275;_0x32d445()[_0x49de9c('0xa8b')](_0x84cb5d[_0x49de9c('0x220d')][_0x49de9c('0x16a7')],{'id':_0x34ae3c['id']}),_0x84cb5d[_0x49de9c('0x220d')][_0x49de9c('0x148b')]-=0x1,!_0x84cb5d[_0x49de9c('0x220d')][_0x49de9c('0x16a7')][_0x49de9c('0x25ae')]&&_0x5c6855(),_0x44e31d[_0x49de9c('0x425')]({'title':_0x49de9c('0x22c4'),'msg':_0x34ae3c[_0x49de9c('0x2623')]?_0x34ae3c[_0x49de9c('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x7e7275('0x223b')](function(_0x2e5ee9){var _0x460b86=_0x7e7275;if(_0x2e5ee9[_0x460b86('0x11d0')]&&_0x2e5ee9[_0x460b86('0x11d0')][_0x460b86('0xcd2')]&&_0x2e5ee9[_0x460b86('0x11d0')]['errors'][_0x460b86('0x25ae')]){_0x84cb5d[_0x460b86('0xcd2')]=_0x2e5ee9['data'][_0x460b86('0xcd2')]||[{'message':_0x2e5ee9['toString'](),'type':_0x460b86('0x52e')}];for(var _0xc6d5e3=0x0;_0xc6d5e3<_0x2e5ee9['data']['errors'][_0x460b86('0x25ae')];_0xc6d5e3++){_0x44e31d[_0x460b86('0x8c8')]({'title':_0x2e5ee9[_0x460b86('0x11d0')]['errors'][_0xc6d5e3][_0x460b86('0x62e')],'msg':_0x2e5ee9[_0x460b86('0x11d0')][_0x460b86('0xcd2')][_0xc6d5e3][_0x460b86('0x27e8')]});}}else _0x44e31d['error']({'title':_0x2e5ee9[_0x460b86('0x2833')]?_0x460b86('0x27f2')+_0x2e5ee9['status']+_0x460b86('0x1b7c')+_0x2e5ee9[_0x460b86('0x1fd7')]:_0x460b86('0x52e'),'msg':_0x2e5ee9[_0x460b86('0x11d0')]?JSON[_0x460b86('0x3ad')](_0x2e5ee9[_0x460b86('0x11d0')][_0x460b86('0x27e8')]):_0x2e5ee9[_0x460b86('0x27e8')]||_0x2e5ee9[_0x460b86('0x94f')]()});});}function _0x55b689(){var _0x5e9c13=_0x4d15f6,_0x5b69cc=angular[_0x5e9c13('0x89')](_0x84cb5d[_0x5e9c13('0x26fd')]);return _0x84cb5d[_0x5e9c13('0x26fd')]=[],_0x5b69cc;}function _0x591431(_0xc6760d){var _0x46bb38=_0x4d15f6,_0x50dc91=_0x2491b4['confirm']()[_0x46bb38('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20messages?')[_0x46bb38('0x221c')](''+_0x84cb5d[_0x46bb38('0x26fd')][_0x46bb38('0x25ae')]+_0x46bb38('0x5bc')+_0x46bb38('0x21bd'))[_0x46bb38('0x4d1')](_0x46bb38('0x1539'))[_0x46bb38('0x1345')](_0xc6760d)['ok']('OK')[_0x46bb38('0x2c1')]('CANCEL');_0x2491b4['show'](_0x50dc91)['then'](function(){var _0x4f90af=_0x46bb38;_0x84cb5d[_0x4f90af('0x26fd')][_0x4f90af('0x1d7e')](function(_0x34c04d){_0x335d16(_0x34c04d);}),_0x84cb5d[_0x4f90af('0x26fd')]=[];});}var _0x5640a8=!![],_0x4eea96=0x1;_0x1fb7df[_0x4d15f6('0x107')](_0x4d15f6('0x1607'),function(_0x3199f2,_0xfe26c7){var _0x3df245=_0x4d15f6;_0x5640a8?_0x5c352b(function(){_0x5640a8=![];}):(!_0xfe26c7&&(_0x4eea96=_0x84cb5d[_0x3df245('0xa16')][_0x3df245('0xc08')]),_0x3199f2!==_0xfe26c7&&(_0x84cb5d[_0x3df245('0xa16')]['page']=0x1),!_0x3199f2&&(_0x84cb5d[_0x3df245('0xa16')][_0x3df245('0xc08')]=_0x4eea96),_0x5c6855());});}const _0x37600e=_0x54c892;_0xb03489['$inject']=[_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$translate','license',_0xb635d2('0x22f1'),'api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x4e0'),_0xb635d2('0xb59')];function _0xb03489(_0x3905fc,_0x2a926d,_0xe55917,_0x1656d8,_0x453b3b,_0x65d1d1,_0x82d174,_0x3fa890,_0x1a2f7e,_0x295d35,_0x22c76a,_0xe3fcc0){var _0x1c2fb0=_0xb635d2,_0x45d2a6=this;_0x45d2a6['currentUser']=_0x295d35[_0x1c2fb0('0x1ef8')](),_0x45d2a6[_0x1c2fb0('0x5c1')]=_0x65d1d1,_0x45d2a6[_0x1c2fb0('0x22f1')]=_0x82d174,_0x45d2a6['passwordPattern']=_0x45d2a6[_0x1c2fb0('0x22f1')][_0x1c2fb0('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45d2a6['location']=_0x2a926d[_0x1c2fb0('0xec0')]()+_0x1c2fb0('0x21a8')+_0x2a926d['host'](),_0x45d2a6[_0x1c2fb0('0x4e0')]=_0x22c76a||_0x3905fc[_0x1c2fb0('0x2ef')]['voicemail']||{},_0x45d2a6[_0x1c2fb0('0xb59')]=_0xe3fcc0&&_0xe3fcc0[_0x1c2fb0('0x148b')]==0x1?_0xe3fcc0[_0x1c2fb0('0x16a7')][0x0]:null,_0x45d2a6[_0x1c2fb0('0xb3d')]=_0x295d35[_0x1c2fb0('0xd31')](_0x45d2a6[_0x1c2fb0('0xb59')]?_0x45d2a6['userProfileSection'][_0x1c2fb0('0xb3d')]:null),_0x45d2a6[_0x1c2fb0('0x1ccb')]={},_0x45d2a6['selectedTab']=_0x3905fc[_0x1c2fb0('0x2ef')][_0x1c2fb0('0x435')]||0x0,_0x45d2a6[_0x1c2fb0('0xbdc')]=_0x1a2f7e[_0x1c2fb0('0x1e67')],_0x45d2a6[_0x1c2fb0('0x1d55')]=_0x4c5f94,_0x45d2a6[_0x1c2fb0('0x3be')]=_0x18e286,_0x295d35['hasRole'](_0x1c2fb0('0xd14'))?_0x3fa890[_0x1c2fb0('0x2768')]['get']({'fields':'id,name','sort':_0x1c2fb0('0x2623')})[_0x1c2fb0('0xe59')][_0x1c2fb0('0xe19')](function(_0x594a74){var _0x5532a2=_0x1c2fb0;_0x45d2a6['contexts']=_0x594a74[_0x5532a2('0x16a7')]||[];})[_0x1c2fb0('0x223b')](function(_0x4453db){var _0x59b69d=_0x1c2fb0;_0x1a2f7e[_0x59b69d('0x8c8')]({'title':_0x4453db[_0x59b69d('0x2833')]?_0x59b69d('0x27f2')+_0x4453db[_0x59b69d('0x2833')]+_0x59b69d('0x1b7c')+_0x4453db[_0x59b69d('0x1fd7')]:_0x59b69d('0x17ac'),'msg':_0x4453db['data']?JSON[_0x59b69d('0x3ad')](_0x4453db[_0x59b69d('0x11d0')]):_0x4453db[_0x59b69d('0x94f')]()});}):_0x3fa890[_0x1c2fb0('0x2768')][_0x1c2fb0('0x22d5')]({'fields':'id,name','sort':'name'})['$promise']['then'](function(_0x19d656){var _0x57ca51=_0x1c2fb0;_0x45d2a6[_0x57ca51('0x3c1')]=_0x19d656['rows']||[];})[_0x1c2fb0('0xe19')](function(){var _0x12f05b=_0x1c2fb0;return _0x3fa890[_0x12f05b('0xb59')][_0x12f05b('0x22d5')]({'userProfileId':_0x45d2a6[_0x12f05b('0x15a5')][_0x12f05b('0x1d04')],'sectionId':0x195})[_0x12f05b('0xe59')];})[_0x1c2fb0('0xe19')](function(_0x2abcc1){var _0x55d2d0=_0x1c2fb0,_0x17ffb2=_0x2abcc1&&_0x2abcc1[_0x55d2d0('0x16a7')]?_0x2abcc1['rows'][0x0]:null;if(!_0x17ffb2)return _0x3fa890[_0x55d2d0('0x2768')][_0x55d2d0('0x22d5')]({'fields':_0x55d2d0('0x104'),'sort':_0x55d2d0('0x2623'),'defaultEntry':0x1})[_0x55d2d0('0xe59')][_0x55d2d0('0xe19')](function(_0x44b5a2){var _0x898cd=_0x55d2d0;_0x45d2a6['contexts']=_0x44b5a2[_0x898cd('0x16a7')]||[];});else{if(!_0x17ffb2[_0x55d2d0('0x11fd')])return _0x3fa890[_0x55d2d0('0xd49')][_0x55d2d0('0x22d5')]({'sectionId':_0x17ffb2['id']})['$promise']['then'](function(_0x52175d){var _0x756f8f=_0x55d2d0,_0x4155f1=_0x32d445()['map'](_0x52175d[_0x756f8f('0x16a7')],function(_0x4db13){var _0x5669ff=_0x756f8f;return _0x32d445()['find'](_0x45d2a6[_0x5669ff('0x3c1')],{'id':_0x4db13[_0x5669ff('0x1104')]});}),_0x17f05a=null;_0x45d2a6[_0x756f8f('0x4e0')]&&(_0x17f05a=_0x32d445()[_0x756f8f('0xf15')](_0x45d2a6['contexts'],{'name':_0x45d2a6[_0x756f8f('0x4e0')][_0x756f8f('0x1318')]}));if(_0x17f05a&&!_0x32d445()[_0x756f8f('0x201a')](_0x4155f1,['id',_0x17f05a['id']])){var _0xb90202=_0x32d445()['find'](_0x45d2a6[_0x756f8f('0x3c1')],{'id':_0x17f05a['id']});_0xb90202['canSelect']=![],_0x4155f1[_0x756f8f('0xb76')](_0xb90202);}_0x45d2a6[_0x756f8f('0x3c1')]=_0x4155f1;});}})['catch'](function(_0x3ed720){var _0x2d8684=_0x1c2fb0;_0x1a2f7e[_0x2d8684('0x8c8')]({'title':_0x3ed720[_0x2d8684('0x2833')]?'API:'+_0x3ed720[_0x2d8684('0x2833')]+'\x20-\x20'+_0x3ed720[_0x2d8684('0x1fd7')]:_0x2d8684('0x12ed'),'msg':_0x3ed720['data']?JSON['stringify'](_0x3ed720[_0x2d8684('0x11d0')]):_0x3ed720['toString']()});});function _0x4c5f94(){var _0x453a82=_0x1c2fb0;_0x3905fc['go'](_0x453a82('0x468'),{},{'reload':_0x453a82('0x468')});}function _0x18e286(){var _0x293876=_0x1c2fb0;_0x3fa890[_0x293876('0x27bf')][_0x293876('0xa70')]({'id':_0x45d2a6['voicemail']['id']},_0x45d2a6[_0x293876('0x4e0')])[_0x293876('0xe59')][_0x293876('0xe19')](function(){var _0x44c146=_0x293876;_0x1a2f7e[_0x44c146('0x425')]({'title':'Voicemail\x20updated!','msg':_0x45d2a6[_0x44c146('0x4e0')][_0x44c146('0x2623')]?_0x45d2a6['voicemail'][_0x44c146('0x2623')]+_0x44c146('0x283b'):''});})[_0x293876('0x223b')](function(_0x3d4a68){var _0x5ed635=_0x293876;_0x1a2f7e[_0x5ed635('0x8c8')]({'title':_0x3d4a68[_0x5ed635('0x2833')]?'API:'+_0x3d4a68[_0x5ed635('0x2833')]+_0x5ed635('0x1b7c')+_0x3d4a68[_0x5ed635('0x1fd7')]:_0x5ed635('0x52e'),'msg':_0x3d4a68[_0x5ed635('0x11d0')]?JSON[_0x5ed635('0x3ad')](_0x3d4a68[_0x5ed635('0x11d0')]):_0x3d4a68[_0x5ed635('0x94f')]()});});}}const _0x3aef3c=_0xb03489,_0x40a8a3=_0x59426a['p']+'src/js/modules/main/apps/voice/views/voicemails/create/dialog.html/dialog-[chunkhash].html';_0x5cc2f5['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x2446'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),'msUtils','toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x5cc2f5(_0x194c6e,_0x5a6dc6,_0x2b5b71,_0x31d639,_0x3bd267,_0x52e4d2,_0x52064c,_0x545b0a,_0x8c948,_0x5aa1be,_0x2c95f3,_0x417110,_0x3056c5,_0x55b696,_0x2cb92e,_0x997e9c,_0x2c209d){var _0x2966d7=_0xb635d2,_0x5bccdf=this;_0x5bccdf[_0x2966d7('0x5c1')]=_0x997e9c,_0x5bccdf[_0x2966d7('0x22f1')]=_0x2c209d,_0x5bccdf[_0x2966d7('0x15a5')]=_0x2cb92e[_0x2966d7('0x1ef8')](),_0x5bccdf[_0x2966d7('0x2446')]=_0x8c948||{'count':0x0,'rows':[]},_0x5bccdf[_0x2966d7('0x154f')]=_0x5aa1be,_0x5bccdf['userProfileSection']=_0x2c95f3&&_0x2c95f3[_0x2966d7('0x148b')]==0x1?_0x2c95f3[_0x2966d7('0x16a7')][0x0]:null,_0x5bccdf[_0x2966d7('0xb3d')]=_0x2cb92e[_0x2966d7('0xd31')](_0x5bccdf[_0x2966d7('0xb59')]?_0x5bccdf[_0x2966d7('0xb59')][_0x2966d7('0xb3d')]:null),_0x5bccdf[_0x2966d7('0x19b6')]=_0x2966d7('0x2446'),_0x5bccdf[_0x2966d7('0x14d6')]='',_0x5bccdf[_0x2966d7('0x190c')]=null,_0x5bccdf[_0x2966d7('0x23e9')]=[],_0x5bccdf[_0x2966d7('0xa16')]={'fields':_0x2966d7('0xf39'),'sort':_0x2966d7('0x7e8'),'limit':0xa,'page':0x1},_0x5bccdf[_0x2966d7('0x140a')]=_0x32d445()[_0x2966d7('0x226f')]([{'option':'Yes','value':'\x27yes\x27'},{'option':'No','value':_0x2966d7('0x16f2')}],function(_0x153698){var _0x4bd9b4=_0x2966d7;return _0x32d445()[_0x4bd9b4('0x1b42')](_0x153698[_0x4bd9b4('0x2')],new RegExp('\x27','g'),'');}),_0x5bccdf[_0x2966d7('0x16be')]=_0x32d445()['keyBy']([{'option':'Yes','value':_0x2966d7('0x11bd')},{'option':'No','value':_0x2966d7('0x16f2')}],function(_0x1a9ed9){var _0x33d6c4=_0x2966d7;return _0x32d445()[_0x33d6c4('0x1b42')](_0x1a9ed9[_0x33d6c4('0x2')],new RegExp('\x27','g'),'');}),_0x5bccdf['arraydelete']=_0x32d445()[_0x2966d7('0x226f')]([{'option':_0x2966d7('0x358'),'value':_0x2966d7('0x11bd')},{'option':'No','value':_0x2966d7('0x16f2')}],function(_0x20773e){var _0x324b2c=_0x2966d7;return _0x32d445()['replace'](_0x20773e[_0x324b2c('0x2')],new RegExp('\x27','g'),'');}),_0x5bccdf['editstate']=_0x3d0595,_0x5bccdf['deleteconfirm']=_0x19d08f,_0x5bccdf[_0x2966d7('0x425')]=_0x578aed,_0x5bccdf['getVoicemails']=_0x30eacd,_0x5bccdf['createOrEditVoicemail']=_0x11827c,_0x5bccdf['deleteVoicemail']=_0x1a98d8,_0x5bccdf[_0x2966d7('0x1ba5')]=_0x420c73,_0x5bccdf['deleteSelectedVoicemails']=_0x5d28e2,_0x5bccdf[_0x2966d7('0x12f6')]=_0x446594,_0x5bccdf['selectAllVoicemails']=_0xa2207f;function _0x3d0595(_0x57f5ef){var _0x15e4c8=_0x2966d7;_0x2b5b71['go']('app.voice.voicemails.edit',{'id':_0x57f5ef['id'],'voicemail':_0x57f5ef,'crudPermissions':_0x5bccdf[_0x15e4c8('0xb3d')]});}function _0x19d08f(_0x59126d,_0x499155){var _0x4d3df2=_0x2966d7,_0x26c061=_0x3bd267[_0x4d3df2('0xa5')]()[_0x4d3df2('0x13e4')](_0x4d3df2('0x346')+_0x32d445()[_0x4d3df2('0x1df2')](_0x4d3df2('0x4e0'))+'?')[_0x4d3df2('0x221c')](_0x4d3df2('0xab2')+(_0x59126d['name']||_0x4d3df2('0x4e0'))+_0x4d3df2('0x27bb')+_0x4d3df2('0x21bd'))[_0x4d3df2('0x4d1')](_0x4d3df2('0x199b'))[_0x4d3df2('0x1345')](_0x499155)['ok']('OK')[_0x4d3df2('0x2c1')](_0x4d3df2('0x17'));_0x3bd267['show'](_0x26c061)[_0x4d3df2('0xe19')](function(){_0x1a98d8(_0x59126d);},function(){var _0x1d0638=_0x4d3df2;console[_0x1d0638('0x1fe9')](_0x1d0638('0x17'));});}var _0x546eec=!![],_0x4b71a7=0x1;_0x194c6e[_0x2966d7('0x107')](_0x2966d7('0x20cb'),function(_0x4bd2a5,_0x164216){var _0x3a175c=_0x2966d7;_0x546eec?_0x52064c(function(){_0x546eec=![];}):(!_0x164216&&(_0x4b71a7=_0x5bccdf['query'][_0x3a175c('0xc08')]),_0x4bd2a5!==_0x164216&&(_0x5bccdf['query'][_0x3a175c('0xc08')]=0x1),!_0x4bd2a5&&(_0x5bccdf['query'][_0x3a175c('0xc08')]=_0x4b71a7),_0x5bccdf[_0x3a175c('0xe1')]());});function _0x578aed(_0x57d77a){var _0x2b24a0=_0x2966d7;_0x5bccdf[_0x2b24a0('0x2446')]=_0x57d77a||{'count':0x0,'rows':[]};}function _0x30eacd(){var _0x327154=_0x2966d7;_0x5bccdf[_0x327154('0xa16')][_0x327154('0xab0')]=(_0x5bccdf[_0x327154('0xa16')]['page']-0x1)*_0x5bccdf['query'][_0x327154('0x1b6d')],_0x2cb92e[_0x327154('0x179e')](_0x327154('0xd14'))?_0x5bccdf[_0x327154('0x9c8')]=_0x417110['voiceMail'][_0x327154('0x22d5')](_0x5bccdf[_0x327154('0xa16')],_0x578aed)[_0x327154('0xe59')]:(_0x5bccdf[_0x327154('0xa16')]['id']=_0x5bccdf[_0x327154('0x154f')]['id'],_0x5bccdf['query'][_0x327154('0x1e59')]=_0x327154('0x1786'),_0x5bccdf[_0x327154('0x9c8')]=_0x417110[_0x327154('0x154f')]['getResources'](_0x5bccdf[_0x327154('0xa16')],_0x578aed)[_0x327154('0xe59')]);}function _0x11827c(_0x39ab9b,_0x1b43a9){var _0x33a6e0=_0x2966d7;_0x3bd267['show']({'controller':_0x33a6e0('0x1d9c'),'controllerAs':'vm','templateUrl':_0x40a8a3,'parent':angular[_0x33a6e0('0x24a1')](_0x52e4d2['body']),'targetEvent':_0x39ab9b,'clickOutsideToClose':!![],'locals':{'voicemail':_0x1b43a9,'voicemails':_0x5bccdf[_0x33a6e0('0x2446')]['rows'],'license':_0x5bccdf[_0x33a6e0('0x5c1')],'setting':_0x5bccdf[_0x33a6e0('0x22f1')],'crudPermissions':_0x5bccdf['crudPermissions']}});}function _0x1a98d8(_0x4b216d){var _0x5d36e1=_0x2966d7;_0x417110[_0x5d36e1('0x27bf')][_0x5d36e1('0x229e')]({'id':_0x4b216d['id']})[_0x5d36e1('0xe59')]['then'](function(){var _0x1e20df=_0x5d36e1;_0x32d445()[_0x1e20df('0xa8b')](_0x5bccdf[_0x1e20df('0x2446')][_0x1e20df('0x16a7')],{'id':_0x4b216d['id']}),_0x5bccdf[_0x1e20df('0x2446')][_0x1e20df('0x148b')]-=0x1,!_0x5bccdf[_0x1e20df('0x2446')][_0x1e20df('0x16a7')][_0x1e20df('0x25ae')]&&_0x5bccdf[_0x1e20df('0xe1')](),_0x55b696[_0x1e20df('0x425')]({'title':_0x32d445()[_0x1e20df('0x1df2')](_0x1e20df('0x22c0'))+_0x1e20df('0x1219'),'msg':_0x4b216d[_0x1e20df('0x2623')]?_0x4b216d['name']+_0x1e20df('0x2182'):''});})[_0x5d36e1('0x223b')](function(_0x1ef154){var _0x3b6dc1=_0x5d36e1;if(_0x1ef154['data']&&_0x1ef154[_0x3b6dc1('0x11d0')][_0x3b6dc1('0xcd2')]&&_0x1ef154['data'][_0x3b6dc1('0xcd2')][_0x3b6dc1('0x25ae')]){_0x5bccdf[_0x3b6dc1('0xcd2')]=_0x1ef154['data'][_0x3b6dc1('0xcd2')]||[{'message':_0x1ef154[_0x3b6dc1('0x94f')](),'type':_0x3b6dc1('0x11ff')}];for(var _0x557e32=0x0;_0x557e32<_0x1ef154[_0x3b6dc1('0x11d0')]['errors'][_0x3b6dc1('0x25ae')];_0x557e32++){_0x55b696[_0x3b6dc1('0x8c8')]({'title':_0x1ef154[_0x3b6dc1('0x11d0')][_0x3b6dc1('0xcd2')][_0x557e32][_0x3b6dc1('0x62e')],'msg':_0x1ef154[_0x3b6dc1('0x11d0')][_0x3b6dc1('0xcd2')][_0x557e32][_0x3b6dc1('0x27e8')]});}}else _0x55b696[_0x3b6dc1('0x8c8')]({'title':_0x1ef154['status']?_0x3b6dc1('0x27f2')+_0x1ef154[_0x3b6dc1('0x2833')]+'\x20-\x20'+_0x1ef154[_0x3b6dc1('0x1fd7')]:_0x3b6dc1('0x11ff'),'msg':_0x1ef154[_0x3b6dc1('0x11d0')]?JSON[_0x3b6dc1('0x3ad')](_0x1ef154[_0x3b6dc1('0x11d0')][_0x3b6dc1('0x27e8')]):_0x1ef154[_0x3b6dc1('0x27e8')]||_0x1ef154[_0x3b6dc1('0x94f')]()});});}function _0x420c73(){var _0x48460e=_0x2966d7,_0x1dfaa0=angular[_0x48460e('0x89')](_0x5bccdf['selectedVoicemails']);return _0x5bccdf['selectedVoicemails']=[],_0x1dfaa0;}function _0x5d28e2(_0x552565){var _0x1291a6=_0x2966d7,_0xdf8587=_0x3bd267[_0x1291a6('0xa5')]()[_0x1291a6('0x13e4')](_0x1291a6('0xade'))['htmlContent'](_0x1291a6('0xab2')+_0x5bccdf['selectedVoicemails'][_0x1291a6('0x25ae')]+_0x1291a6('0x5bc')+_0x1291a6('0x21bd'))[_0x1291a6('0x4d1')](_0x1291a6('0xbcc'))[_0x1291a6('0x1345')](_0x552565)['ok']('OK')[_0x1291a6('0x2c1')](_0x1291a6('0x17'));_0x3bd267[_0x1291a6('0x26b2')](_0xdf8587)[_0x1291a6('0xe19')](function(){var _0x25fba9=_0x1291a6;_0x5bccdf[_0x25fba9('0x23e9')][_0x25fba9('0x1d7e')](function(_0x4a858f){_0x1a98d8(_0x4a858f);}),_0x5bccdf['selectedVoicemails']=[];});}function _0x446594(){var _0x5d47ff=_0x2966d7;_0x5bccdf[_0x5d47ff('0x23e9')]=[];}function _0xa2207f(){var _0x67de42=_0x2966d7;_0x5bccdf[_0x67de42('0x23e9')]=_0x5bccdf['voicemails'][_0x67de42('0x16a7')];}}const _0x4e5973=_0x5cc2f5;_0x1b821b[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'voicePrefixes','voicePrefix',_0xb635d2('0xffc'),'Auth','license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x1b821b(_0x30174d,_0x224c81,_0x9d60a7,_0x40c678,_0x36b0ba,_0x28fe4f,_0xddcf17,_0x3c0703,_0x153e7c,_0x3dcb25,_0xa516d3,_0x2c1748,_0xc325af,_0x40aa2e){var _0x160a76=_0xb635d2,_0x5b1961=this;_0x5b1961[_0x160a76('0x15a5')]=_0xa516d3[_0x160a76('0x1ef8')](),_0x5b1961['errors']=[],_0x5b1961['setting']=_0xc325af,_0x5b1961[_0x160a76('0x5c1')]=_0x2c1748,_0x5b1961[_0x160a76('0xb3d')]=_0x40aa2e,_0x5b1961['hasModulePermissions']={},_0x5b1961[_0x160a76('0x25ac')]=_0x5b1961[_0x160a76('0x22f1')]&&_0x5b1961[_0x160a76('0x22f1')][_0x160a76('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b1961[_0x160a76('0x13e4')]=_0x160a76('0x2e0'),_0x5b1961[_0x160a76('0x21df')]=angular[_0x160a76('0x89')](_0x153e7c),_0x5b1961['voicePrefixes']=_0x3c0703,_0x5b1961[_0x160a76('0xd93')]=![];!_0x5b1961[_0x160a76('0x21df')]&&(_0x5b1961[_0x160a76('0x21df')]={},_0x5b1961[_0x160a76('0x13e4')]=_0x160a76('0x3c2'),_0x5b1961['newvoicePrefix']=!![]);_0x5b1961[_0x160a76('0x28a5')]=_0x5c8627,_0x5b1961[_0x160a76('0x77')]=_0x3d3ae5,_0x5b1961[_0x160a76('0x5f1')]=_0x19a80b,_0x5b1961[_0x160a76('0x2635')]=_0x1fcabc,_0x5b1961[_0x160a76('0x2584')]=_0x4583bd,_0xa516d3[_0x160a76('0x179e')]('admin')?_0x3dcb25[_0x160a76('0x1979')][_0x160a76('0x22d5')]({'fields':_0x160a76('0x1210'),'type':_0x160a76('0x1fdf'),'VoiceExtensionId':'null','nolimit':_0x160a76('0x2206')})[_0x160a76('0xe59')][_0x160a76('0xe19')](function(_0x207fd4){var _0x42dc32=_0x160a76;_0x5b1961['outboundRoutes']=_0x207fd4[_0x42dc32('0x16a7')]||[];})['catch'](function(_0x5eb4f6){var _0x33c6ba=_0x160a76;_0xddcf17[_0x33c6ba('0x8c8')]({'title':_0x5eb4f6[_0x33c6ba('0x2833')]?_0x33c6ba('0x27f2')+_0x5eb4f6[_0x33c6ba('0x2833')]+_0x33c6ba('0x1b7c')+_0x5eb4f6[_0x33c6ba('0x1fd7')]:_0x33c6ba('0x24ba'),'msg':_0x5eb4f6['data']?JSON[_0x33c6ba('0x3ad')](_0x5eb4f6[_0x33c6ba('0x11d0')]):_0x5eb4f6['toString']()});}):_0x3dcb25[_0x160a76('0x1979')][_0x160a76('0x22d5')]({'fields':_0x160a76('0x1210'),'type':_0x160a76('0x1fdf'),'VoiceExtensionId':'null','nolimit':_0x160a76('0x2206')})[_0x160a76('0xe59')][_0x160a76('0xe19')](function(_0x44904a){var _0x2fa16d=_0x160a76;_0x5b1961['outboundRoutes']=_0x44904a[_0x2fa16d('0x16a7')]||[];})['then'](function(){var _0x35afaa=_0x160a76;return _0x3dcb25[_0x35afaa('0xb59')][_0x35afaa('0x22d5')]({'userProfileId':_0x5b1961[_0x35afaa('0x15a5')][_0x35afaa('0x1d04')],'sectionId':0x193})[_0x35afaa('0xe59')];})[_0x160a76('0xe19')](function(_0x2581e2){var _0x58eaa0=_0x160a76,_0x59493b=_0x2581e2&&_0x2581e2[_0x58eaa0('0x16a7')]?_0x2581e2[_0x58eaa0('0x16a7')][0x0]:null;if(!_0x59493b){var _0x56cd0d=[],_0x151f99=null;_0x5b1961[_0x58eaa0('0x21df')]&&(_0x151f99=_0x32d445()['find'](_0x5b1961[_0x58eaa0('0x28ae')],{'id':Number(_0x5b1961[_0x58eaa0('0x21df')][_0x58eaa0('0x2444')])}));for(var _0x2cec34=0x0;_0x2cec34<_0x5b1961['outboundRoutes'][_0x58eaa0('0x25ae')];_0x2cec34++){_0x151f99&&_0x5b1961[_0x58eaa0('0x28ae')][_0x2cec34]['id']===_0x151f99['id']&&(_0x5b1961['outboundRoutes'][_0x2cec34][_0x58eaa0('0x1e9d')]=![],_0x56cd0d['push'](_0x5b1961['outboundRoutes'][_0x2cec34]));}_0x5b1961['outboundRoutes']=_0x56cd0d;}else{if(!_0x59493b[_0x58eaa0('0x11fd')])return _0x3dcb25[_0x58eaa0('0xd49')][_0x58eaa0('0x22d5')]({'sectionId':_0x59493b['id']})['$promise'][_0x58eaa0('0xe19')](function(_0x2ee797){var _0x4da0fe=_0x58eaa0,_0x1edfed=_0x32d445()['map'](_0x2ee797[_0x4da0fe('0x16a7')],function(_0x2468e1){var _0x3e9cbd=_0x4da0fe;return _0x32d445()[_0x3e9cbd('0xf15')](_0x5b1961[_0x3e9cbd('0x28ae')],{'id':_0x2468e1['resourceId']});}),_0xb10bee=null;_0x5b1961[_0x4da0fe('0x21df')]&&(_0xb10bee=_0x32d445()[_0x4da0fe('0xf15')](_0x5b1961[_0x4da0fe('0x28ae')],{'id':Number(_0x5b1961[_0x4da0fe('0x21df')][_0x4da0fe('0x2444')])}));if(_0xb10bee&&!_0x32d445()['some'](_0x1edfed,['id',_0xb10bee['id']])){var _0x2e697b=_0x32d445()['find'](_0x5b1961[_0x4da0fe('0x28ae')],{'id':_0xb10bee['id']});_0x2e697b[_0x4da0fe('0x1e9d')]=![],_0x1edfed[_0x4da0fe('0xb76')](_0x2e697b);}_0x5b1961[_0x4da0fe('0x28ae')]=_0x1edfed;});}})[_0x160a76('0x223b')](function(_0x3b1f2a){var _0x46fec8=_0x160a76;_0xddcf17[_0x46fec8('0x8c8')]({'title':_0x3b1f2a[_0x46fec8('0x2833')]?_0x46fec8('0x27f2')+_0x3b1f2a[_0x46fec8('0x2833')]+_0x46fec8('0x1b7c')+_0x3b1f2a[_0x46fec8('0x1fd7')]:'SYSTEM:GEToutboundRoutes','msg':_0x3b1f2a['data']?JSON[_0x46fec8('0x3ad')](_0x3b1f2a[_0x46fec8('0x11d0')]):_0x3b1f2a[_0x46fec8('0x94f')]()});});function _0x5c8627(){var _0xdf34c5=_0x160a76;_0x5b1961[_0xdf34c5('0xcd2')]=[],_0x3dcb25[_0xdf34c5('0x21df')]['save'](_0x5b1961[_0xdf34c5('0x21df')])[_0xdf34c5('0xe59')]['then'](function(_0x2f190b){var _0x1b7113=_0xdf34c5;_0x5b1961[_0x1b7113('0x1090')][_0x1b7113('0x14c9')](_0x2f190b[_0x1b7113('0x250e')]()),_0xddcf17['success']({'title':_0x1b7113('0x1218'),'msg':_0x5b1961[_0x1b7113('0x21df')][_0x1b7113('0x2623')]?_0x5b1961[_0x1b7113('0x21df')]['name']+_0x1b7113('0x105f'):''}),_0x4583bd(_0x2f190b);})[_0xdf34c5('0x223b')](function(_0x1dba72){var _0x571ffb=_0xdf34c5;if(_0x1dba72[_0x571ffb('0x11d0')]&&_0x1dba72[_0x571ffb('0x11d0')][_0x571ffb('0xcd2')]&&_0x1dba72[_0x571ffb('0x11d0')]['errors'][_0x571ffb('0x25ae')]){_0x5b1961[_0x571ffb('0xcd2')]=_0x1dba72[_0x571ffb('0x11d0')][_0x571ffb('0xcd2')]||[{'message':_0x1dba72[_0x571ffb('0x94f')](),'type':_0x571ffb('0xc71')}];for(var _0x4a6f4d=0x0;_0x4a6f4d<_0x1dba72['data'][_0x571ffb('0xcd2')][_0x571ffb('0x25ae')];_0x4a6f4d+=0x1){_0xddcf17['error']({'title':_0x1dba72[_0x571ffb('0x11d0')][_0x571ffb('0xcd2')][_0x4a6f4d][_0x571ffb('0x62e')],'msg':_0x1dba72[_0x571ffb('0x11d0')]['errors'][_0x4a6f4d][_0x571ffb('0x27e8')]});}}else _0xddcf17[_0x571ffb('0x8c8')]({'title':_0x1dba72['status']?_0x571ffb('0x27f2')+_0x1dba72[_0x571ffb('0x2833')]+'\x20-\x20'+_0x1dba72['statusText']:'api.voicePrefix.save','msg':_0x1dba72[_0x571ffb('0x11d0')]?JSON[_0x571ffb('0x3ad')](_0x1dba72[_0x571ffb('0x11d0')]['message']):_0x1dba72['toString']()});});}function _0x3d3ae5(){var _0x3647d2=_0x160a76;_0x5b1961['errors']=[],_0x3dcb25[_0x3647d2('0x21df')][_0x3647d2('0xa70')]({'id':_0x5b1961[_0x3647d2('0x21df')]['id']},_0x5b1961['voicePrefix'])[_0x3647d2('0xe59')][_0x3647d2('0xe19')](function(_0x3f2e2b){var _0x5cb47c=_0x3647d2,_0x1dca39=_0x32d445()[_0x5cb47c('0xf15')](_0x5b1961[_0x5cb47c('0x1090')],{'id':_0x3f2e2b['id']});_0x1dca39&&_0x32d445()[_0x5cb47c('0x1d8')](_0x1dca39,_0x32d445()[_0x5cb47c('0xed5')](_0x3f2e2b['toJSON'](),_0x32d445()[_0x5cb47c('0x1234')](_0x1dca39))),_0xddcf17['success']({'title':'voicePrefix\x20properly\x20saved!','msg':_0x5b1961[_0x5cb47c('0x21df')][_0x5cb47c('0x2623')]?_0x5b1961[_0x5cb47c('0x21df')]['name']+_0x5cb47c('0x1c19'):''}),_0x4583bd(_0x3f2e2b);})[_0x3647d2('0x223b')](function(_0x4a2f85){var _0x1b69e5=_0x3647d2;if(_0x4a2f85['data']&&_0x4a2f85[_0x1b69e5('0x11d0')][_0x1b69e5('0xcd2')]&&_0x4a2f85[_0x1b69e5('0x11d0')][_0x1b69e5('0xcd2')][_0x1b69e5('0x25ae')]){_0x5b1961['errors']=_0x4a2f85[_0x1b69e5('0x11d0')][_0x1b69e5('0xcd2')]||[{'message':_0x4a2f85['toString'](),'type':'api.voicePrefix.update'}];for(var _0x4d002f=0x0;_0x4d002f<_0x4a2f85['data'][_0x1b69e5('0xcd2')][_0x1b69e5('0x25ae')];_0x4d002f++){_0xddcf17[_0x1b69e5('0x8c8')]({'title':_0x4a2f85[_0x1b69e5('0x11d0')][_0x1b69e5('0xcd2')][_0x4d002f][_0x1b69e5('0x62e')],'msg':_0x4a2f85[_0x1b69e5('0x11d0')]['errors'][_0x4d002f][_0x1b69e5('0x27e8')]});}}else _0xddcf17[_0x1b69e5('0x8c8')]({'title':_0x4a2f85[_0x1b69e5('0x2833')]?'API:'+_0x4a2f85[_0x1b69e5('0x2833')]+_0x1b69e5('0x1b7c')+_0x4a2f85[_0x1b69e5('0x1fd7')]:_0x1b69e5('0x93f'),'msg':_0x4a2f85[_0x1b69e5('0x11d0')]?JSON[_0x1b69e5('0x3ad')](_0x4a2f85[_0x1b69e5('0x11d0')][_0x1b69e5('0x27e8')]):_0x4a2f85[_0x1b69e5('0x94f')]()});});}function _0x19a80b(_0x2aa5f5){var _0x596b40=_0x160a76;_0x5b1961[_0x596b40('0xcd2')]=[];var _0x228baa=_0x40c678[_0x596b40('0xa5')]()['title'](_0x596b40('0x24d0'))['content'](_0x596b40('0x234c'))['ariaLabel']('Delete\x20voicePrefix')['ok'](_0x596b40('0x2198'))[_0x596b40('0x2c1')](_0x596b40('0x8a3'))[_0x596b40('0x1345')](_0x2aa5f5);_0x40c678[_0x596b40('0x26b2')](_0x228baa)['then'](function(){var _0x1fbf7f=_0x596b40;_0x3dcb25[_0x1fbf7f('0x21df')]['delete']({'id':_0x5b1961[_0x1fbf7f('0x21df')]['id']})['$promise'][_0x1fbf7f('0xe19')](function(){var _0x59b60a=_0x1fbf7f;_0x32d445()['remove'](_0x5b1961[_0x59b60a('0x1090')],{'id':_0x5b1961['voicePrefix']['id']}),_0xddcf17[_0x59b60a('0x425')]({'title':_0x59b60a('0x1c40'),'msg':(_0x5b1961[_0x59b60a('0x21df')]['name']||_0x59b60a('0x21df'))+'\x20has\x20been\x20deleted!'}),_0x4583bd(_0x5b1961[_0x59b60a('0x21df')]);})['catch'](function(_0x1e9438){var _0xa788c4=_0x1fbf7f;if(_0x1e9438[_0xa788c4('0x11d0')]&&_0x1e9438[_0xa788c4('0x11d0')][_0xa788c4('0xcd2')]&&_0x1e9438[_0xa788c4('0x11d0')][_0xa788c4('0xcd2')][_0xa788c4('0x25ae')]){_0x5b1961['errors']=_0x1e9438[_0xa788c4('0x11d0')]['errors']||[{'message':_0x1e9438['toString'](),'type':_0xa788c4('0x17f4')}];for(var _0x1f1033=0x0;_0x1f1033<_0x1e9438['data']['errors'][_0xa788c4('0x25ae')];_0x1f1033++){_0xddcf17[_0xa788c4('0x8c8')]({'title':_0x1e9438[_0xa788c4('0x11d0')][_0xa788c4('0xcd2')][_0x1f1033][_0xa788c4('0x62e')],'msg':_0x1e9438[_0xa788c4('0x11d0')][_0xa788c4('0xcd2')][_0x1f1033]['message']});}}else _0xddcf17[_0xa788c4('0x8c8')]({'title':_0x1e9438[_0xa788c4('0x2833')]?'API:'+_0x1e9438[_0xa788c4('0x2833')]+_0xa788c4('0x1b7c')+_0x1e9438[_0xa788c4('0x1fd7')]:_0xa788c4('0x17f4'),'msg':_0x1e9438[_0xa788c4('0x11d0')]?JSON['stringify'](_0x1e9438['data'][_0xa788c4('0x27e8')]):_0x1e9438[_0xa788c4('0x27e8')]||_0x1e9438['toString']()});});},function(){});}function _0x1fcabc(_0x58cc85){return _0x58cc85===null?undefined:new Date(_0x58cc85);}function _0x4583bd(_0xc33691){var _0x4c7502=_0x160a76;_0x40c678[_0x4c7502('0x11ed')](_0xc33691);}}const _0x2813aa=_0x1b821b;_0x3d54ee[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'api',_0xb635d2('0x21df'),_0xb635d2('0x1090'),_0xb635d2('0x24e1'),_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x3d54ee(_0x5daf2b,_0x5f3bc4,_0x4f15b0,_0x95a977,_0x3d1def,_0x2fb8d6,_0x526a74,_0x4d3c85,_0x545b3c,_0x1a5bed){var _0x2d709f=_0xb635d2,_0x9344a4=this;_0x9344a4[_0x2d709f('0x15a5')]=_0x545b3c[_0x2d709f('0x1ef8')](),_0x9344a4[_0x2d709f('0x21df')]=_0x3d1def,_0x9344a4[_0x2d709f('0xb3d')]=_0x1a5bed,_0x9344a4[_0x2d709f('0x24e1')]=_0x526a74,_0x9344a4[_0x2d709f('0xe4b')]=[],_0x9344a4[_0x2d709f('0x1884')]=[],_0x9344a4[_0x2d709f('0x2273')]=[],_0x9344a4['startingAllowedItems']=[],_0x9344a4[_0x2d709f('0xf79')]=[],_0x9344a4[_0x2d709f('0x16e7')]=![],_0x9344a4[_0x2d709f('0x888')]=_0x588eb8,_0x9344a4[_0x2d709f('0x4b8')]=_0xfff23b,_0x9344a4[_0x2d709f('0x2584')]=_0x2280d0,_0x9344a4[_0x2d709f('0xc00')]={'readOnly':!_0x9344a4['crudPermissions'][_0x2d709f('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2d709f('0x2623'),'line1':_0x2d709f('0xe11'),'line2':[_0x2d709f('0x2623'),_0x2d709f('0x1b66')],'line3':'','labelAll':_0x4d3c85[_0x2d709f('0x2159')](_0x2d709f('0x9bd')),'labelSelected':_0x4d3c85[_0x2d709f('0x2159')]('VOICE.SELECTED_AGENTS'),'transferCallback':function _0x50fe9d(){var _0x199677=_0x2d709f,_0x4161ca=_0x32d445()['xorBy'](_0x9344a4['startingSelectedItems'],_0x9344a4[_0x199677('0x2273')],'id');_0x9344a4['pendingChanges']=_0x32d445()[_0x199677('0x14b4')](_0x4161ca)?![]:!![];}};function _0x588eb8(){var _0x3f5cc7=_0x2d709f;return _0x545b3c[_0x3f5cc7('0x179e')](_0x3f5cc7('0xd14'))?_0x4e1173()[_0x3f5cc7('0x223b')](function(_0x338510){var _0x17f591=_0x3f5cc7;_0x4f15b0[_0x17f591('0x8c8')]({'title':_0x338510['status']?_0x17f591('0x27f2')+_0x338510['status']+_0x17f591('0x1b7c')+_0x338510['statusText']:'SYSTEM:GET_AGENTS','msg':_0x338510['status']?JSON[_0x17f591('0x3ad')](_0x338510[_0x17f591('0x11d0')]):_0x338510[_0x17f591('0x94f')]()});}):_0x53b3c1()[_0x3f5cc7('0xe19')](function(_0x1a3bfa){return _0x9344a4['section']=_0x1a3bfa,_0x4e1173();})[_0x3f5cc7('0x223b')](function(_0x39ef76){var _0x199f10=_0x3f5cc7;_0x4f15b0[_0x199f10('0x8c8')]({'title':_0x39ef76[_0x199f10('0x2833')]?_0x199f10('0x27f2')+_0x39ef76['status']+_0x199f10('0x1b7c')+_0x39ef76[_0x199f10('0x1fd7')]:_0x199f10('0x1e86'),'msg':_0x39ef76[_0x199f10('0x2833')]?JSON[_0x199f10('0x3ad')](_0x39ef76[_0x199f10('0x11d0')]):_0x39ef76[_0x199f10('0x94f')]()});});}function _0x53b3c1(){return _0x5f3bc4(function(_0x3ad494,_0x172235){var _0x6c2717=a0_0x5325;_0x95a977[_0x6c2717('0xb59')][_0x6c2717('0x22d5')]({'userProfileId':_0x9344a4[_0x6c2717('0x15a5')]['userProfileId'],'name':_0x6c2717('0xd61')})[_0x6c2717('0xe59')][_0x6c2717('0xe19')](function(_0x4c65fa){var _0x257db1=_0x6c2717,_0x29db66=_0x4c65fa&&_0x4c65fa[_0x257db1('0x16a7')]?_0x4c65fa[_0x257db1('0x16a7')][0x0]:null;_0x3ad494(_0x29db66);})[_0x6c2717('0x223b')](function(_0x31430e){_0x172235(_0x31430e);});});}function _0x4e1173(){return _0x5f3bc4(function(_0x335c7f,_0x1e5096){var _0x3c6db0=a0_0x5325;return _0x267a63()[_0x3c6db0('0xe19')](function(_0xed9922){var _0x30bc2d=_0x3c6db0;return _0x9344a4['items']=_0xed9922[_0x30bc2d('0x16a7')]?_0xed9922[_0x30bc2d('0x16a7')]:[],_0x545b3c['hasRole'](_0x30bc2d('0xd14'))?_0xed9922:_0x9344a4[_0x30bc2d('0x1e59')]?_0x9344a4[_0x30bc2d('0x1e59')][_0x30bc2d('0x11fd')]?_0xed9922:_0x709779():null;})['then'](function(_0x36d19b){var _0x4486df=_0x3c6db0,_0x315b89=_0x36d19b&&_0x36d19b[_0x4486df('0x16a7')]?_0x36d19b[_0x4486df('0x16a7')]:[];return _0x9344a4[_0x4486df('0x1884')]=_0x32d445()[_0x4486df('0x65a')](_0x315b89,function(_0xd98000){var _0x21ef09=_0x4486df;return _0x32d445()[_0x21ef09('0xf15')](_0x9344a4[_0x21ef09('0xe4b')],{'id':_0x545b3c[_0x21ef09('0x179e')](_0x21ef09('0xd14'))||_0x9344a4[_0x21ef09('0x1e59')]['autoAssociation']?_0xd98000['id']:_0xd98000['resourceId']});}),_0x9344a4[_0x4486df('0x286c')]=angular[_0x4486df('0x89')](_0x9344a4[_0x4486df('0x1884')]),_0x9344a4[_0x4486df('0xe4b')][_0x4486df('0x1d7e')](function(_0x1ea07f){var _0x16055b=_0x4486df,_0x2c4a58=_0x32d445()[_0x16055b('0xf15')](_0x9344a4[_0x16055b('0x1884')],{'id':_0x1ea07f['id']});_0x545b3c[_0x16055b('0x179e')]('admin')?_0x1ea07f[_0x16055b('0x1768')]=!![]:_0x1ea07f[_0x16055b('0x1768')]=typeof _0x2c4a58!=='undefined'?!![]:![];}),_0x1cf000();})[_0x3c6db0('0xe19')](function(_0x224922){var _0x73791a=_0x3c6db0,_0x340ee1=_0x224922&&_0x224922['rows']?_0x224922[_0x73791a('0x16a7')]:[];_0x9344a4['selectedItems']=_0x32d445()[_0x73791a('0x65a')](_0x340ee1,function(_0x52d739){var _0x96b86=_0x73791a,_0x1baef0=_0x32d445()[_0x96b86('0xf15')](_0x9344a4['items'],{'id':_0x52d739['id']});return _0x1baef0[_0x96b86('0x21e3')]=_0x52d739['UservoicePrefix']?_0x96b86('0x815')+_0x52d739[_0x96b86('0xe83')]['penalty']:'',_0x1baef0[_0x96b86('0x1b66')]=typeof _0x52d739['internal']!==_0x96b86('0x1143')?'<'+_0x52d739[_0x96b86('0x1b66')]+'>':'',_0x1baef0;}),_0x9344a4[_0x73791a('0xf79')]=angular[_0x73791a('0x89')](_0x9344a4[_0x73791a('0x2273')]),_0x9344a4[_0x73791a('0xc00')][_0x73791a('0x2273')]=_0x9344a4[_0x73791a('0x2273')],_0x9344a4['dualMultiselectOptions']['items']=_0x32d445()[_0x73791a('0x501')](_0x9344a4[_0x73791a('0x1884')],_0x9344a4['dualMultiselectOptions'][_0x73791a('0x2273')],'id'),_0x335c7f();})[_0x3c6db0('0x223b')](function(_0x10da01){_0x1e5096(_0x10da01);});});}function _0x709779(){return _0x5f3bc4(function(_0x3cc28a,_0x588640){var _0x3673ac=a0_0x5325;return _0x95a977[_0x3673ac('0xd49')][_0x3673ac('0x22d5')]({'sectionId':_0x9344a4[_0x3673ac('0x1e59')]['id'],'nolimit':!![]})[_0x3673ac('0xe59')]['then'](function(_0x538127){_0x3cc28a(_0x538127);})[_0x3673ac('0x223b')](function(_0x1bc5a9){_0x588640(_0x1bc5a9);});});}function _0x1cf000(){return _0x5f3bc4(function(_0x12f165,_0x1cf81e){var _0x32331d=a0_0x5325;return _0x95a977[_0x32331d('0x21df')][_0x32331d('0x14fd')]({'id':_0x9344a4[_0x32331d('0x21df')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x32331d('0x108')})['$promise'][_0x32331d('0xe19')](function(_0x1905c1){_0x12f165(_0x1905c1);})[_0x32331d('0x223b')](function(_0x116235){_0x1cf81e(_0x116235);});});}function _0x267a63(){return _0x5f3bc4(function(_0x23538d,_0x585068){var _0x35dca3=a0_0x5325;return _0x95a977['user'][_0x35dca3('0x22d5')]({'fields':_0x35dca3('0x244f'),'nolimit':!![],'role':_0x35dca3('0x108')})['$promise'][_0x35dca3('0xe19')](function(_0x2aca44){_0x23538d(_0x2aca44);})['catch'](function(_0x2893f9){_0x585068(_0x2893f9);});});}function _0x1242a9(_0x1ea747){return _0x5f3bc4(function(_0x1a524a,_0x308149){var _0xc31949=a0_0x5325;_0x32d445()[_0xc31949('0x14b4')](_0x1ea747)?_0x1a524a():_0x95a977[_0xc31949('0x21df')][_0xc31949('0x2271')]({'id':_0x9344a4[_0xc31949('0x21df')]['id'],'ids':_0x32d445()[_0xc31949('0x65a')](_0x1ea747,'id')})[_0xc31949('0xe59')][_0xc31949('0xe19')](function(){_0x1a524a();})[_0xc31949('0x223b')](function(_0x282996){_0x308149(_0x282996);});});}function _0x2a1eea(_0x541da3){return _0x5f3bc4(function(_0x5a6d33,_0x2eddc9){var _0x4e4705=a0_0x5325;_0x32d445()[_0x4e4705('0x14b4')](_0x541da3)?_0x5a6d33():_0x95a977[_0x4e4705('0x21df')][_0x4e4705('0x6aa')]({'id':_0x9344a4[_0x4e4705('0x21df')]['id'],'ids':_0x32d445()[_0x4e4705('0x65a')](_0x541da3,'id')})[_0x4e4705('0xe59')]['then'](function(){_0x5a6d33();})['catch'](function(_0xa96665){_0x2eddc9(_0xa96665);});});}function _0xfff23b(){var _0x51bcda=_0x2d709f,_0x24555f=_0x32d445()[_0x51bcda('0x501')](_0x9344a4['startingSelectedItems'],_0x9344a4[_0x51bcda('0x2273')],'id'),_0x59cb2b=_0x32d445()[_0x51bcda('0x501')](_0x9344a4[_0x51bcda('0x2273')],_0x9344a4[_0x51bcda('0xf79')],'id');return _0x2a1eea(_0x24555f)['then'](function(){return _0x1242a9(_0x59cb2b);})['then'](function(){var _0x30f002=_0x51bcda;_0x9344a4[_0x30f002('0x16e7')]=![],_0x9344a4['startingAllowedItems']=angular['copy'](_0x9344a4[_0x30f002('0x1884')]),_0x9344a4['startingSelectedItems']=angular[_0x30f002('0x89')](_0x9344a4[_0x30f002('0x2273')]),_0x4f15b0[_0x30f002('0x425')]({'title':'SUCCESS','msg':_0x30f002('0x25d')});})['catch'](function(_0x273ba9){var _0x2edf1b=_0x51bcda;_0x4f15b0[_0x2edf1b('0x8c8')]({'title':_0x273ba9[_0x2edf1b('0x2833')]?_0x2edf1b('0x27f2')+_0x273ba9[_0x2edf1b('0x2833')]+_0x2edf1b('0x1b7c')+_0x273ba9[_0x2edf1b('0x1fd7')]:_0x2edf1b('0x2168'),'msg':_0x273ba9[_0x2edf1b('0x2833')]?JSON['stringify'](_0x273ba9[_0x2edf1b('0x11d0')]):_0x273ba9[_0x2edf1b('0x94f')]()});});}function _0x2280d0(){var _0x30b598=_0x2d709f;_0x5daf2b[_0x30b598('0x11ed')]();}}const _0x563625=_0x3d54ee,_0x24b029=_0x59426a['p']+'src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html/dialog-[chunkhash].html',_0x4667e3=_0x59426a['p']+_0xb635d2('0x25e2');_0x5c9252[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),'$timeout','$translate',_0xb635d2('0x1090'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x5c9252(_0x52743d,_0x1d3c83,_0xe9e011,_0x2213b4,_0x55b598,_0x2eb63e,_0x513828,_0x2d0156,_0x1b05e4,_0x13164a,_0x3f85e2,_0x8a750c,_0x5c3555,_0x12700f,_0x58ce55,_0x57975f,_0x5e5017){var _0x5db149=_0xb635d2,_0x1abe63=this;_0x1abe63[_0x5db149('0x5c1')]=_0x57975f,_0x1abe63['setting']=_0x5e5017,_0x1abe63[_0x5db149('0x15a5')]=_0x58ce55[_0x5db149('0x1ef8')](),_0x1abe63[_0x5db149('0x1090')]=_0x1b05e4||{'count':0x0,'rows':[]},_0x1abe63[_0x5db149('0x154f')]=_0x13164a,_0x1abe63['userProfileSection']=_0x3f85e2&&_0x3f85e2[_0x5db149('0x148b')]==0x1?_0x3f85e2[_0x5db149('0x16a7')][0x0]:null,_0x1abe63[_0x5db149('0xb3d')]=_0x58ce55[_0x5db149('0xd31')](_0x1abe63[_0x5db149('0xb59')]?_0x1abe63[_0x5db149('0xb59')][_0x5db149('0xb3d')]:null),_0x1abe63[_0x5db149('0x19b6')]=_0x5db149('0x1090'),_0x1abe63[_0x5db149('0x14d6')]='',_0x1abe63[_0x5db149('0x190c')]=null,_0x1abe63[_0x5db149('0x1474')]=[],_0x1abe63['query']={'fields':'createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','limit':0xa,'page':0x1},_0x1abe63[_0x5db149('0x1752')]=_0xe5d19a,_0x1abe63[_0x5db149('0x1407')]=_0x769b9,_0x1abe63[_0x5db149('0x1d9e')]=_0x2405e3,_0x1abe63[_0x5db149('0x425')]=_0xb025e7,_0x1abe63['getVoicePrefixes']=_0x13262c,_0x1abe63['createOrEditvoicePrefix']=_0x2853bb,_0x1abe63[_0x5db149('0x5f1')]=_0x49e41d,_0x1abe63['exportSelectedVoicePrefixes']=_0xf734a9,_0x1abe63[_0x5db149('0x22b4')]=_0x2a1991,_0x1abe63[_0x5db149('0x2650')]=_0x49c804,_0x1abe63[_0x5db149('0x206e')]=_0xf33864,_0x58ce55['hasRole'](_0x5db149('0xd14'))?_0x8a750c['voiceExtension'][_0x5db149('0x22d5')]({'fields':_0x5db149('0x1210'),'type':_0x5db149('0x1fdf'),'VoiceExtensionId':_0x5db149('0x1046'),'nolimit':_0x5db149('0x2206')})['$promise']['then'](function(_0x5666c0){var _0xf86046=_0x5db149;_0x1abe63[_0xf86046('0x28ae')]=_0x5666c0[_0xf86046('0x16a7')]||[];})[_0x5db149('0x223b')](function(_0x270ec2){var _0x3040f8=_0x5db149;_0x12700f['error']({'title':_0x270ec2[_0x3040f8('0x2833')]?_0x3040f8('0x27f2')+_0x270ec2[_0x3040f8('0x2833')]+_0x3040f8('0x1b7c')+_0x270ec2[_0x3040f8('0x1fd7')]:_0x3040f8('0x24ba'),'msg':_0x270ec2[_0x3040f8('0x11d0')]?JSON[_0x3040f8('0x3ad')](_0x270ec2['data']):_0x270ec2['toString']()});}):_0x8a750c[_0x5db149('0x1979')][_0x5db149('0x22d5')]({'fields':'id,exten','type':_0x5db149('0x1fdf'),'VoiceExtensionId':_0x5db149('0x1046'),'nolimit':'true'})[_0x5db149('0xe59')]['then'](function(_0x2b98e1){var _0x487cd6=_0x5db149;_0x1abe63[_0x487cd6('0x28ae')]=_0x2b98e1['rows']||[];})[_0x5db149('0xe19')](function(){var _0x4cddf7=_0x5db149;return _0x8a750c[_0x4cddf7('0xb59')][_0x4cddf7('0x22d5')]({'userProfileId':_0x1abe63['currentUser'][_0x4cddf7('0x1d04')],'sectionId':0x193})[_0x4cddf7('0xe59')];})[_0x5db149('0xe19')](function(_0x5d7fc2){var _0x13861b=_0x5db149,_0x5728a6=_0x5d7fc2&&_0x5d7fc2[_0x13861b('0x16a7')]?_0x5d7fc2[_0x13861b('0x16a7')][0x0]:null;if(!_0x5728a6){var _0x1613f5=[],_0x3da937=null;_0x1abe63['voicePrefix']&&(_0x3da937=_0x32d445()[_0x13861b('0xf15')](_0x1abe63[_0x13861b('0x28ae')],{'id':Number(_0x1abe63[_0x13861b('0x21df')][_0x13861b('0x2444')])}));for(var _0x2aa5dc=0x0;_0x2aa5dc<_0x1abe63[_0x13861b('0x28ae')]['length'];_0x2aa5dc++){_0x3da937&&_0x1abe63[_0x13861b('0x28ae')][_0x2aa5dc]['id']===_0x3da937['id']&&(_0x1abe63[_0x13861b('0x28ae')][_0x2aa5dc][_0x13861b('0x1e9d')]=![],_0x1613f5['push'](_0x1abe63[_0x13861b('0x28ae')][_0x2aa5dc]));}_0x1abe63[_0x13861b('0x28ae')]=_0x1613f5;}else{if(!_0x5728a6[_0x13861b('0x11fd')])return _0x8a750c['userProfileResource'][_0x13861b('0x22d5')]({'sectionId':_0x5728a6['id']})[_0x13861b('0xe59')]['then'](function(_0x3a7172){var _0x2b0e4d=_0x13861b,_0x57bc4b=_0x32d445()[_0x2b0e4d('0x65a')](_0x3a7172['rows'],function(_0x34c635){var _0x79d72=_0x2b0e4d;return _0x32d445()['find'](_0x1abe63[_0x79d72('0x28ae')],{'id':_0x34c635[_0x79d72('0x1104')]});}),_0x252159=null;_0x1abe63['voicePrefix']&&(_0x252159=_0x32d445()[_0x2b0e4d('0xf15')](_0x1abe63[_0x2b0e4d('0x28ae')],{'id':Number(_0x1abe63[_0x2b0e4d('0x21df')][_0x2b0e4d('0x2444')])}));if(_0x252159&&!_0x32d445()[_0x2b0e4d('0x201a')](_0x57bc4b,['id',_0x252159['id']])){var _0xd91001=_0x32d445()['find'](_0x1abe63['outboundRoutes'],{'id':_0x252159['id']});_0xd91001['canSelect']=![],_0x57bc4b[_0x2b0e4d('0xb76')](_0xd91001);}_0x1abe63[_0x2b0e4d('0x28ae')]=_0x57bc4b;});}})[_0x5db149('0x223b')](function(_0x2adb2b){var _0xb84f3b=_0x5db149;_0x12700f['error']({'title':_0x2adb2b[_0xb84f3b('0x2833')]?_0xb84f3b('0x27f2')+_0x2adb2b['status']+'\x20-\x20'+_0x2adb2b[_0xb84f3b('0x1fd7')]:_0xb84f3b('0x2064'),'msg':_0x2adb2b[_0xb84f3b('0x11d0')]?JSON[_0xb84f3b('0x3ad')](_0x2adb2b[_0xb84f3b('0x11d0')]):_0x2adb2b[_0xb84f3b('0x94f')]()});});function _0xe5d19a(_0x2d290e,_0x179d89){var _0x3b6d1e=_0x5db149;_0x55b598['show']({'controller':_0x3b6d1e('0x15c6'),'controllerAs':'vm','templateUrl':_0x24b029,'parent':angular[_0x3b6d1e('0x24a1')](_0x2eb63e[_0x3b6d1e('0x19b2')]),'targetEvent':_0x179d89,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x2d290e,'voicePrefixes':_0x1abe63[_0x3b6d1e('0x1090')][_0x3b6d1e('0x16a7')],'license':_0x1abe63[_0x3b6d1e('0x5c1')],'setting':null,'crudPermissions':_0x1abe63[_0x3b6d1e('0xb3d')]}});}function _0x769b9(_0x4cafa9,_0x3e9926){var _0x4d5978=_0x5db149;_0x55b598[_0x4d5978('0x26b2')]({'controller':_0x4d5978('0x201c'),'controllerAs':'vm','templateUrl':_0x4667e3,'parent':angular[_0x4d5978('0x24a1')](_0x2eb63e[_0x4d5978('0x19b2')]),'targetEvent':_0x3e9926,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x4cafa9,'voicePrefixes':_0x1abe63[_0x4d5978('0x1090')]?_0x1abe63['voicePrefixes'][_0x4d5978('0x16a7')]:[],'crudPermissions':_0x1abe63['crudPermissions'],'realtime':![]}});}function _0x2405e3(_0x1b6577,_0x5d56fe){var _0x5f4e8a=_0x5db149,_0xee55fe=_0x55b598[_0x5f4e8a('0xa5')]()[_0x5f4e8a('0x13e4')](_0x5f4e8a('0x346')+_0x32d445()[_0x5f4e8a('0x1df2')](_0x5f4e8a('0x21df'))+'?')['htmlContent'](''+(_0x1b6577[_0x5f4e8a('0x2623')]||_0x5f4e8a('0x21df'))+_0x5f4e8a('0x27bb')+_0x5f4e8a('0x21bd'))['ariaLabel'](_0x5f4e8a('0x9e0'))[_0x5f4e8a('0x1345')](_0x5d56fe)['ok']('OK')[_0x5f4e8a('0x2c1')](_0x5f4e8a('0x17'));_0x55b598[_0x5f4e8a('0x26b2')](_0xee55fe)[_0x5f4e8a('0xe19')](function(){_0x49e41d(_0x1b6577);},function(){var _0x50bfbb=_0x5f4e8a;console[_0x50bfbb('0x1fe9')](_0x50bfbb('0x17'));});}var _0x444185=!![],_0x1100d5=0x1;_0x52743d[_0x5db149('0x107')](_0x5db149('0x20cb'),function(_0x2caee3,_0x2c0c75){var _0x5ed045=_0x5db149;_0x444185?_0x513828(function(){_0x444185=![];}):(!_0x2c0c75&&(_0x1100d5=_0x1abe63['query'][_0x5ed045('0xc08')]),_0x2caee3!==_0x2c0c75&&(_0x1abe63[_0x5ed045('0xa16')][_0x5ed045('0xc08')]=0x1),!_0x2caee3&&(_0x1abe63['query'][_0x5ed045('0xc08')]=_0x1100d5),_0x1abe63[_0x5ed045('0x71')]());});function _0xb025e7(_0x260b51){var _0x490275=_0x5db149;_0x1abe63[_0x490275('0x1090')]=_0x260b51||{'count':0x0,'rows':[]};}function _0x13262c(){var _0x3741df=_0x5db149;_0x1abe63[_0x3741df('0xa16')][_0x3741df('0xab0')]=(_0x1abe63[_0x3741df('0xa16')][_0x3741df('0xc08')]-0x1)*_0x1abe63[_0x3741df('0xa16')]['limit'],_0x58ce55[_0x3741df('0x179e')](_0x3741df('0xd14'))?_0x1abe63['promise']=_0x8a750c[_0x3741df('0x21df')][_0x3741df('0x22d5')](_0x1abe63[_0x3741df('0xa16')],_0xb025e7)[_0x3741df('0xe59')]:(_0x1abe63[_0x3741df('0xa16')]['id']=_0x1abe63[_0x3741df('0x154f')]['id'],_0x1abe63[_0x3741df('0xa16')]['section']=_0x3741df('0x499'),_0x1abe63[_0x3741df('0x9c8')]=_0x8a750c[_0x3741df('0x154f')][_0x3741df('0x14e6')](_0x1abe63[_0x3741df('0xa16')],_0xb025e7)['$promise']);}function _0x2853bb(_0x1ea9bc,_0x2b5380){var _0x31f7af=_0x5db149;_0x55b598[_0x31f7af('0x26b2')]({'controller':'CreateOrEditvoicePrefixDialogController','controllerAs':'vm','templateUrl':_0x24b029,'parent':angular[_0x31f7af('0x24a1')](_0x2eb63e['body']),'targetEvent':_0x1ea9bc,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x2b5380,'voicePrefixes':_0x1abe63[_0x31f7af('0x1090')][_0x31f7af('0x16a7')],'license':_0x1abe63['license'],'setting':_0x1abe63[_0x31f7af('0x22f1')],'crudPermissions':_0x1abe63[_0x31f7af('0xb3d')]}});}function _0x49e41d(_0x4e5d7f){var _0x4331c1=_0x5db149;_0x8a750c['voicePrefix'][_0x4331c1('0x229e')]({'id':_0x4e5d7f['id']})[_0x4331c1('0xe59')][_0x4331c1('0xe19')](function(){var _0xa57b35=_0x4331c1;_0x32d445()[_0xa57b35('0xa8b')](_0x1abe63['voicePrefixes'][_0xa57b35('0x16a7')],{'id':_0x4e5d7f['id']}),_0x1abe63[_0xa57b35('0x1090')][_0xa57b35('0x148b')]-=0x1,!_0x1abe63[_0xa57b35('0x1090')][_0xa57b35('0x16a7')][_0xa57b35('0x25ae')]&&_0x1abe63[_0xa57b35('0x71')](),_0x12700f[_0xa57b35('0x425')]({'title':_0x32d445()[_0xa57b35('0x1df2')](_0xa57b35('0x21df'))+_0xa57b35('0x1219'),'msg':_0x4e5d7f[_0xa57b35('0x2623')]?_0x4e5d7f[_0xa57b35('0x2623')]+_0xa57b35('0x2182'):''});})[_0x4331c1('0x223b')](function(_0x413a7c){var _0x153c43=_0x4331c1;if(_0x413a7c[_0x153c43('0x11d0')]&&_0x413a7c[_0x153c43('0x11d0')][_0x153c43('0xcd2')]&&_0x413a7c[_0x153c43('0x11d0')][_0x153c43('0xcd2')]['length']){_0x1abe63[_0x153c43('0xcd2')]=_0x413a7c[_0x153c43('0x11d0')][_0x153c43('0xcd2')]||[{'message':_0x413a7c['toString'](),'type':_0x153c43('0x3f5')}];for(var _0x4cf7a9=0x0;_0x4cf7a9<_0x413a7c['data'][_0x153c43('0xcd2')][_0x153c43('0x25ae')];_0x4cf7a9++){_0x12700f['error']({'title':_0x413a7c[_0x153c43('0x11d0')][_0x153c43('0xcd2')][_0x4cf7a9][_0x153c43('0x62e')],'msg':_0x413a7c['data'][_0x153c43('0xcd2')][_0x4cf7a9][_0x153c43('0x27e8')]});}}else _0x12700f[_0x153c43('0x8c8')]({'title':_0x413a7c[_0x153c43('0x2833')]?_0x153c43('0x27f2')+_0x413a7c[_0x153c43('0x2833')]+'\x20-\x20'+_0x413a7c[_0x153c43('0x1fd7')]:_0x153c43('0x3f5'),'msg':_0x413a7c[_0x153c43('0x11d0')]?JSON[_0x153c43('0x3ad')](_0x413a7c[_0x153c43('0x11d0')][_0x153c43('0x27e8')]):_0x413a7c[_0x153c43('0x27e8')]||_0x413a7c['toString']()});});}function _0xf734a9(){var _0x4094c3=_0x5db149,_0x4c732e=angular['copy'](_0x1abe63[_0x4094c3('0x1474')]);return _0x1abe63[_0x4094c3('0x1474')]=[],_0x4c732e;}function _0x2a1991(_0x4e9071){var _0x82fc50=_0x5db149,_0x43edc4=_0x55b598['confirm']()[_0x82fc50('0x13e4')](_0x82fc50('0x1665'))[_0x82fc50('0x221c')](_0x82fc50('0xab2')+_0x1abe63['selectedVoicePrefixes'][_0x82fc50('0x25ae')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x82fc50('0x4d1')](_0x82fc50('0x7b2'))[_0x82fc50('0x1345')](_0x4e9071)['ok']('OK')['cancel'](_0x82fc50('0x17'));_0x55b598[_0x82fc50('0x26b2')](_0x43edc4)['then'](function(){var _0x18b97a=_0x82fc50;_0x1abe63[_0x18b97a('0x1474')][_0x18b97a('0x1d7e')](function(_0x5c6ed5){_0x49e41d(_0x5c6ed5);}),_0x1abe63[_0x18b97a('0x1474')]=[];});}function _0x49c804(){var _0x485920=_0x5db149;_0x1abe63[_0x485920('0x1474')]=[];}function _0xf33864(){var _0x46735e=_0x5db149;_0x1abe63[_0x46735e('0x1474')]=_0x1abe63[_0x46735e('0x1090')][_0x46735e('0x16a7')];}}const _0x3f483a=_0x5c9252;_0x24325c[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state','$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x15c5'),_0xb635d2('0x25d5'),_0xb635d2('0xffc'),'Auth','license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x24325c(_0x54c6b7,_0x2757e8,_0x3981f1,_0x2cf26f,_0x4751ae,_0x136eb3,_0x5533aa,_0x2ad11b,_0x1699b6,_0x562e67,_0x1f584f,_0x2bd218,_0x2011b3,_0x345c55){var _0x46b213=_0xb635d2,_0x17d35d=this;_0x17d35d['currentUser']=_0x1f584f[_0x46b213('0x1ef8')](),_0x17d35d[_0x46b213('0xcd2')]=[],_0x17d35d[_0x46b213('0x22f1')]=_0x2011b3,_0x17d35d[_0x46b213('0x5c1')]=_0x2bd218,_0x17d35d['crudPermissions']=_0x345c55,_0x17d35d[_0x46b213('0x1ccb')]={},_0x17d35d[_0x46b213('0x25ac')]=_0x17d35d[_0x46b213('0x22f1')]&&_0x17d35d['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17d35d[_0x46b213('0x13e4')]=_0x46b213('0xb55'),_0x17d35d[_0x46b213('0x25d5')]=angular[_0x46b213('0x89')](_0x1699b6),_0x17d35d['voiceQueues']=_0x2ad11b,_0x17d35d['newVoiceQueue']=![];!_0x17d35d[_0x46b213('0x25d5')]&&(_0x17d35d[_0x46b213('0x25d5')]={'type':_0x46b213('0x1a7a'),'strategy':'ringall','timeout':0xf,'retry':0x2,'random_periodic_announce':'no','announce_holdtime':'no','announce_position':'no','reportholdtime':'no','autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no'},_0x17d35d[_0x46b213('0x13e4')]=_0x46b213('0xef9'),_0x17d35d['newVoiceQueue']=!![]);_0x17d35d[_0x46b213('0x1ecd')]=_0x55a0a7,_0x17d35d[_0x46b213('0x1a94')]=_0x5050c4,_0x17d35d[_0x46b213('0x24bd')]=_0x596dac,_0x17d35d[_0x46b213('0x2635')]=_0x154d0b,_0x17d35d[_0x46b213('0x2584')]=_0x35aafd;function _0x55a0a7(){var _0x4c29f4=_0x46b213;_0x17d35d[_0x4c29f4('0xcd2')]=[],_0x562e67[_0x4c29f4('0x25d5')][_0x4c29f4('0xe5e')](_0x17d35d[_0x4c29f4('0x25d5')])[_0x4c29f4('0xe59')][_0x4c29f4('0xe19')](function(_0x1f9937){var _0x1a370b=_0x4c29f4;_0x17d35d[_0x1a370b('0x15c5')][_0x1a370b('0x14c9')](_0x1f9937['toJSON']()),_0x5533aa['success']({'title':'VoiceQueue\x20properly\x20created','msg':_0x17d35d[_0x1a370b('0x25d5')][_0x1a370b('0x2623')]?_0x17d35d['voiceQueue'][_0x1a370b('0x2623')]+_0x1a370b('0x105f'):''}),_0x35aafd(_0x1f9937);})[_0x4c29f4('0x223b')](function(_0x82483f){var _0x1d6c9d=_0x4c29f4;if(_0x82483f['data']&&_0x82483f[_0x1d6c9d('0x11d0')][_0x1d6c9d('0xcd2')]&&_0x82483f[_0x1d6c9d('0x11d0')][_0x1d6c9d('0xcd2')]['length']){_0x17d35d['errors']=_0x82483f[_0x1d6c9d('0x11d0')][_0x1d6c9d('0xcd2')]||[{'message':_0x82483f['toString'](),'type':_0x1d6c9d('0x27a9')}];for(var _0xbee9f5=0x0;_0xbee9f5<_0x82483f[_0x1d6c9d('0x11d0')]['errors'][_0x1d6c9d('0x25ae')];_0xbee9f5+=0x1){_0x5533aa[_0x1d6c9d('0x8c8')]({'title':_0x82483f[_0x1d6c9d('0x11d0')]['errors'][_0xbee9f5][_0x1d6c9d('0x62e')],'msg':_0x82483f[_0x1d6c9d('0x11d0')][_0x1d6c9d('0xcd2')][_0xbee9f5]['message']});}}else _0x5533aa[_0x1d6c9d('0x8c8')]({'title':_0x82483f[_0x1d6c9d('0x2833')]?_0x1d6c9d('0x27f2')+_0x82483f[_0x1d6c9d('0x2833')]+'\x20-\x20'+_0x82483f[_0x1d6c9d('0x1fd7')]:_0x1d6c9d('0x27a9'),'msg':_0x82483f['data']?JSON['stringify'](_0x82483f[_0x1d6c9d('0x11d0')][_0x1d6c9d('0x27e8')]):_0x82483f[_0x1d6c9d('0x94f')]()});});}function _0x5050c4(){var _0x4c1957=_0x46b213;_0x17d35d[_0x4c1957('0xcd2')]=[],_0x562e67[_0x4c1957('0x25d5')][_0x4c1957('0xa70')]({'id':_0x17d35d['voiceQueue']['id']},_0x17d35d['voiceQueue'])[_0x4c1957('0xe59')][_0x4c1957('0xe19')](function(_0x21e5c9){var _0x3ec993=_0x4c1957,_0x41dfd7=_0x32d445()[_0x3ec993('0xf15')](_0x17d35d[_0x3ec993('0x15c5')],{'id':_0x21e5c9['id']});_0x41dfd7&&_0x32d445()[_0x3ec993('0x1d8')](_0x41dfd7,_0x32d445()['pick'](_0x21e5c9[_0x3ec993('0x250e')](),_0x32d445()[_0x3ec993('0x1234')](_0x41dfd7))),_0x5533aa[_0x3ec993('0x425')]({'title':_0x3ec993('0x149b'),'msg':_0x17d35d['voiceQueue']['name']?_0x17d35d[_0x3ec993('0x25d5')]['name']+_0x3ec993('0x1c19'):''}),_0x35aafd(_0x21e5c9);})[_0x4c1957('0x223b')](function(_0x515c08){var _0x2984bb=_0x4c1957;if(_0x515c08['data']&&_0x515c08[_0x2984bb('0x11d0')][_0x2984bb('0xcd2')]&&_0x515c08[_0x2984bb('0x11d0')][_0x2984bb('0xcd2')][_0x2984bb('0x25ae')]){_0x17d35d[_0x2984bb('0xcd2')]=_0x515c08[_0x2984bb('0x11d0')][_0x2984bb('0xcd2')]||[{'message':_0x515c08[_0x2984bb('0x94f')](),'type':'api.voiceQueue.update'}];for(var _0x31c4d4=0x0;_0x31c4d4<_0x515c08[_0x2984bb('0x11d0')][_0x2984bb('0xcd2')]['length'];_0x31c4d4++){_0x5533aa[_0x2984bb('0x8c8')]({'title':_0x515c08[_0x2984bb('0x11d0')][_0x2984bb('0xcd2')][_0x31c4d4][_0x2984bb('0x62e')],'msg':_0x515c08[_0x2984bb('0x11d0')][_0x2984bb('0xcd2')][_0x31c4d4][_0x2984bb('0x27e8')]});}}else _0x5533aa[_0x2984bb('0x8c8')]({'title':_0x515c08[_0x2984bb('0x2833')]?_0x2984bb('0x27f2')+_0x515c08[_0x2984bb('0x2833')]+_0x2984bb('0x1b7c')+_0x515c08[_0x2984bb('0x1fd7')]:_0x2984bb('0x139b'),'msg':_0x515c08['data']?JSON[_0x2984bb('0x3ad')](_0x515c08[_0x2984bb('0x11d0')][_0x2984bb('0x27e8')]):_0x515c08['toString']()});});}function _0x596dac(_0x3ff93e){var _0x3c0066=_0x46b213;_0x17d35d[_0x3c0066('0xcd2')]=[];var _0x426f56=_0x2cf26f[_0x3c0066('0xa5')]()[_0x3c0066('0x13e4')](_0x3c0066('0x24d0'))['content']('The\x20voiceQueue\x20will\x20be\x20deleted.')[_0x3c0066('0x4d1')](_0x3c0066('0x5a6'))['ok'](_0x3c0066('0x2198'))[_0x3c0066('0x2c1')](_0x3c0066('0x8a3'))[_0x3c0066('0x1345')](_0x3ff93e);_0x2cf26f['show'](_0x426f56)[_0x3c0066('0xe19')](function(){var _0x3270ff=_0x3c0066;_0x562e67['voiceQueue'][_0x3270ff('0x229e')]({'id':_0x17d35d[_0x3270ff('0x25d5')]['id']})['$promise'][_0x3270ff('0xe19')](function(){var _0x22f11e=_0x3270ff;_0x32d445()['remove'](_0x17d35d[_0x22f11e('0x15c5')],{'id':_0x17d35d[_0x22f11e('0x25d5')]['id']}),_0x5533aa['success']({'title':'VoiceQueue\x20properly\x20deleted!','msg':(_0x17d35d['voiceQueue'][_0x22f11e('0x2623')]||_0x22f11e('0x25d5'))+_0x22f11e('0x2182')}),_0x35aafd(_0x17d35d['voiceQueue']);})[_0x3270ff('0x223b')](function(_0x123960){var _0x132150=_0x3270ff;if(_0x123960[_0x132150('0x11d0')]&&_0x123960[_0x132150('0x11d0')]['errors']&&_0x123960[_0x132150('0x11d0')][_0x132150('0xcd2')][_0x132150('0x25ae')]){_0x17d35d['errors']=_0x123960[_0x132150('0x11d0')][_0x132150('0xcd2')]||[{'message':_0x123960[_0x132150('0x94f')](),'type':_0x132150('0x6b5')}];for(var _0x48f731=0x0;_0x48f731<_0x123960['data']['errors'][_0x132150('0x25ae')];_0x48f731++){_0x5533aa[_0x132150('0x8c8')]({'title':_0x123960[_0x132150('0x11d0')][_0x132150('0xcd2')][_0x48f731][_0x132150('0x62e')],'msg':_0x123960[_0x132150('0x11d0')][_0x132150('0xcd2')][_0x48f731]['message']});}}else _0x5533aa[_0x132150('0x8c8')]({'title':_0x123960[_0x132150('0x2833')]?'API:'+_0x123960[_0x132150('0x2833')]+_0x132150('0x1b7c')+_0x123960[_0x132150('0x1fd7')]:_0x132150('0x6b5'),'msg':_0x123960[_0x132150('0x11d0')]?JSON[_0x132150('0x3ad')](_0x123960[_0x132150('0x11d0')][_0x132150('0x27e8')]):_0x123960[_0x132150('0x27e8')]||_0x123960['toString']()});});},function(){});}function _0x154d0b(_0x5cc5df){return _0x5cc5df===null?undefined:new Date(_0x5cc5df);}function _0x35aafd(_0xc63238){_0x2cf26f['hide'](_0xc63238);}}const _0x36d645=_0x24325c;_0x552340[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x25d5'),_0xb635d2('0x15c5'),_0xb635d2('0x24e1'),_0xb635d2('0x2493'),'Auth',_0xb635d2('0xb3d')];function _0x552340(_0xf766d5,_0x16b3be,_0x41dab5,_0x355364,_0xab4c06,_0x2f0ada,_0x3ceba0,_0xeb549,_0x3ee632,_0x57e44e){var _0x40f745=_0xb635d2,_0x56e123=this;_0x56e123[_0x40f745('0x15a5')]=_0x3ee632[_0x40f745('0x1ef8')](),_0x56e123['voiceQueue']=_0xab4c06,_0x56e123[_0x40f745('0xb3d')]=_0x57e44e,_0x56e123[_0x40f745('0x21e3')]=0x0,_0x56e123[_0x40f745('0x24e1')]=_0x3ceba0,_0x56e123[_0x40f745('0xe4b')]=[],_0x56e123[_0x40f745('0x1884')]=[],_0x56e123[_0x40f745('0x2273')]=[],_0x56e123['startingAllowedItems']=[],_0x56e123[_0x40f745('0xf79')]=[],_0x56e123[_0x40f745('0x16e7')]=![],_0x56e123[_0x40f745('0x888')]=_0x230c65,_0x56e123[_0x40f745('0x4b8')]=_0x4a6d8d,_0x56e123[_0x40f745('0x2584')]=_0x12edf0,_0x56e123[_0x40f745('0xc00')]={'readOnly':!_0x56e123[_0x40f745('0xb3d')][_0x40f745('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x40f745('0x2623'),'line1':_0x40f745('0xe11'),'line2':[_0x40f745('0x2623'),_0x40f745('0x1b66')],'line3':_0x40f745('0x21e3'),'labelAll':_0xeb549[_0x40f745('0x2159')](_0x40f745('0x9bd')),'labelSelected':_0xeb549['instant']('VOICE.SELECTED_AGENTS'),'transferCallback':function _0x40a312(_0x377602,_0x4ef6eb){var _0x33ab3f=_0x40f745;_0x4ef6eb?_0x377602[_0x33ab3f('0x1d7e')](function(_0x4e45e0){var _0x1fd3e2=_0x33ab3f;_0x4e45e0[_0x1fd3e2('0x21e3')]=undefined;}):_0x377602[_0x33ab3f('0x1d7e')](function(_0x556f31){var _0x154700=_0x33ab3f;_0x556f31[_0x154700('0x21e3')]='penalty\x20'+_0x56e123[_0x154700('0x21e3')];});var _0x24e4ca=_0x32d445()[_0x33ab3f('0x24ca')](_0x56e123[_0x33ab3f('0xf79')],_0x56e123['selectedItems'],function(_0x2706bb,_0x42f029){var _0x17d29b=_0x33ab3f;return _0x2706bb['id']===_0x42f029['id']&&_0x2706bb[_0x17d29b('0x21e3')]===_0x42f029[_0x17d29b('0x21e3')];});_0x56e123[_0x33ab3f('0x16e7')]=_0x32d445()[_0x33ab3f('0x14b4')](_0x24e4ca)?![]:!![];}};function _0x230c65(){var _0x42f068=_0x40f745;return _0x3ee632['hasRole']('admin')?_0x5d0454()['catch'](function(_0x30c954){var _0x369ed2=a0_0x5325;_0x41dab5[_0x369ed2('0x8c8')]({'title':_0x30c954[_0x369ed2('0x2833')]?'API:'+_0x30c954['status']+'\x20-\x20'+_0x30c954['statusText']:_0x369ed2('0x1e86'),'msg':_0x30c954[_0x369ed2('0x2833')]?JSON[_0x369ed2('0x3ad')](_0x30c954[_0x369ed2('0x11d0')]):_0x30c954[_0x369ed2('0x94f')]()});}):_0x60ce1d()['then'](function(_0x178fbb){return _0x56e123['section']=_0x178fbb,_0x5d0454();})[_0x42f068('0x223b')](function(_0x33ab70){var _0x4bda76=_0x42f068;_0x41dab5[_0x4bda76('0x8c8')]({'title':_0x33ab70['status']?_0x4bda76('0x27f2')+_0x33ab70[_0x4bda76('0x2833')]+_0x4bda76('0x1b7c')+_0x33ab70[_0x4bda76('0x1fd7')]:_0x4bda76('0x1e86'),'msg':_0x33ab70[_0x4bda76('0x2833')]?JSON[_0x4bda76('0x3ad')](_0x33ab70['data']):_0x33ab70['toString']()});});}function _0x60ce1d(){return _0x16b3be(function(_0x4cde82,_0xbff556){var _0x415da8=a0_0x5325;_0x355364[_0x415da8('0xb59')][_0x415da8('0x22d5')]({'userProfileId':_0x56e123[_0x415da8('0x15a5')][_0x415da8('0x1d04')],'name':_0x415da8('0xd61')})[_0x415da8('0xe59')]['then'](function(_0x39a598){var _0x46ebe6=_0x415da8,_0x149784=_0x39a598&&_0x39a598['rows']?_0x39a598[_0x46ebe6('0x16a7')][0x0]:null;_0x4cde82(_0x149784);})[_0x415da8('0x223b')](function(_0x51ddc2){_0xbff556(_0x51ddc2);});});}function _0x5d0454(){return _0x16b3be(function(_0x7de14a,_0x1fbe30){var _0x33381c=a0_0x5325;return _0x5e2506()[_0x33381c('0xe19')](function(_0x510a29){var _0x3c6f3a=_0x33381c;return _0x56e123['items']=_0x510a29['rows']?_0x510a29[_0x3c6f3a('0x16a7')]:[],_0x3ee632[_0x3c6f3a('0x179e')]('admin')?_0x510a29:_0x56e123[_0x3c6f3a('0x1e59')]?_0x56e123['section']['autoAssociation']?_0x510a29:_0x93cd6b():null;})[_0x33381c('0xe19')](function(_0x2fa829){var _0x16507e=_0x33381c,_0x2c1fba=_0x2fa829&&_0x2fa829[_0x16507e('0x16a7')]?_0x2fa829[_0x16507e('0x16a7')]:[];return _0x56e123['allowedItems']=_0x32d445()['map'](_0x2c1fba,function(_0xd86510){var _0x54afb5=_0x16507e;return _0x32d445()[_0x54afb5('0xf15')](_0x56e123[_0x54afb5('0xe4b')],{'id':_0x3ee632[_0x54afb5('0x179e')](_0x54afb5('0xd14'))||_0x56e123['section'][_0x54afb5('0x11fd')]?_0xd86510['id']:_0xd86510[_0x54afb5('0x1104')]});}),_0x56e123[_0x16507e('0x286c')]=angular['copy'](_0x56e123[_0x16507e('0x1884')]),_0x56e123['items'][_0x16507e('0x1d7e')](function(_0x324c63){var _0x1d59e0=_0x16507e,_0x155967=_0x32d445()['find'](_0x56e123[_0x1d59e0('0x1884')],{'id':_0x324c63['id']});_0x3ee632[_0x1d59e0('0x179e')](_0x1d59e0('0xd14'))?_0x324c63[_0x1d59e0('0x1768')]=!![]:_0x324c63[_0x1d59e0('0x1768')]=typeof _0x155967!=='undefined'?!![]:![];}),_0x21e1b4();})[_0x33381c('0xe19')](function(_0x4e350b){var _0x1d1a87=_0x33381c,_0x56cc5e=_0x4e350b&&_0x4e350b[_0x1d1a87('0x16a7')]?_0x4e350b[_0x1d1a87('0x16a7')]:[];_0x56e123[_0x1d1a87('0x2273')]=_0x32d445()[_0x1d1a87('0x65a')](_0x56cc5e,function(_0x517d32){var _0x6cfe3=_0x1d1a87,_0x45b5d4=_0x32d445()[_0x6cfe3('0xf15')](_0x56e123[_0x6cfe3('0xe4b')],{'id':_0x517d32['id']});return _0x45b5d4[_0x6cfe3('0x21e3')]=_0x517d32[_0x6cfe3('0xdde')]?_0x6cfe3('0x815')+_0x517d32[_0x6cfe3('0xdde')][_0x6cfe3('0x21e3')]:'',_0x45b5d4['internal']=typeof _0x517d32[_0x6cfe3('0x1b66')]!==_0x6cfe3('0x1143')?'<'+_0x517d32[_0x6cfe3('0x1b66')]+'>':'',_0x45b5d4;}),_0x56e123['startingSelectedItems']=angular[_0x1d1a87('0x89')](_0x56e123[_0x1d1a87('0x2273')]),_0x56e123[_0x1d1a87('0xc00')]['selectedItems']=_0x56e123[_0x1d1a87('0x2273')],_0x56e123[_0x1d1a87('0xc00')]['items']=_0x32d445()[_0x1d1a87('0x501')](_0x56e123[_0x1d1a87('0x1884')],_0x56e123[_0x1d1a87('0xc00')][_0x1d1a87('0x2273')],'id'),_0x7de14a();})['catch'](function(_0x4444c7){_0x1fbe30(_0x4444c7);});});}function _0x93cd6b(){return _0x16b3be(function(_0xdc50f8,_0xc299f4){var _0x2c13fe=a0_0x5325;return _0x355364[_0x2c13fe('0xd49')][_0x2c13fe('0x22d5')]({'sectionId':_0x56e123['section']['id'],'nolimit':!![]})[_0x2c13fe('0xe59')][_0x2c13fe('0xe19')](function(_0x56e7ce){_0xdc50f8(_0x56e7ce);})[_0x2c13fe('0x223b')](function(_0x2d6588){_0xc299f4(_0x2d6588);});});}function _0x21e1b4(){return _0x16b3be(function(_0x52aabe,_0xacbacc){var _0x4b239b=a0_0x5325;return _0x355364[_0x4b239b('0x25d5')][_0x4b239b('0x14fd')]({'id':_0x56e123[_0x4b239b('0x25d5')]['id'],'fields':_0x4b239b('0x244f'),'nolimit':!![],'role':'agent'})[_0x4b239b('0xe59')]['then'](function(_0x1b0f32){_0x52aabe(_0x1b0f32);})[_0x4b239b('0x223b')](function(_0x102975){_0xacbacc(_0x102975);});});}function _0x5e2506(){return _0x16b3be(function(_0x1b4493,_0x244418){var _0x395c6d=a0_0x5325;return _0x355364[_0x395c6d('0x10c6')][_0x395c6d('0x22d5')]({'fields':_0x395c6d('0x244f'),'nolimit':!![],'role':_0x395c6d('0x108')})[_0x395c6d('0xe59')][_0x395c6d('0xe19')](function(_0x39944a){_0x1b4493(_0x39944a);})[_0x395c6d('0x223b')](function(_0xc2f1f0){_0x244418(_0xc2f1f0);});});}function _0x38511d(_0x1bfcd5){return _0x16b3be(function(_0x2bf1ad,_0x151afa){var _0x5ecfe0=a0_0x5325;if(_0x32d445()[_0x5ecfe0('0x14b4')](_0x1bfcd5))_0x2bf1ad();else{var _0x2c1ad8=[],_0x11ac76=_0x32d445()[_0x5ecfe0('0x17fc')](_0x1bfcd5,_0x5ecfe0('0x21e3'));for(var _0x4cc1ed=0x0;_0x4cc1ed'+_0x313067('0x21bd'))[_0x313067('0x4d1')](_0x313067('0x482'))['targetEvent'](_0x396859)['ok']('OK')[_0x313067('0x2c1')](_0x313067('0x17'));_0x53c6eb[_0x313067('0x26b2')](_0x546356)[_0x313067('0xe19')](function(){_0x4c168b(_0x420db7);},function(){var _0x1844d7=_0x313067;console['log'](_0x1844d7('0x17'));});}function _0x1d9f85(){var _0x224d37=_0x4f7dc4;if(_0x56faf4[_0x224d37('0x179e')](_0x224d37('0xd14')))_0x519d83['go'](_0x224d37('0x69'),{});else return _0x2b2fee[_0x224d37('0xb59')][_0x224d37('0x22d5')]({'userProfileId':_0x56faf4[_0x224d37('0x1ef8')]()[_0x224d37('0x1d04')],'sectionId':0x19b})['$promise']['then'](function(_0x1e7550){var _0x1f0de0=_0x224d37,_0x3d9212=_0x1e7550&&_0x1e7550['rows']?_0x1e7550[_0x1f0de0('0x16a7')][0x0]:null;_0x3d9212&&_0x3d9212[_0x1f0de0('0x4ef')]?_0x519d83['go'](_0x1f0de0('0x69'),{}):_0x42f47f['info']({'title':_0x2b45dc[_0x1f0de0('0x2159')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x2b45dc[_0x1f0de0('0x2159')](_0x1f0de0('0x4bb'))});})['catch'](function(_0x2d87fc){var _0x5f30d5=_0x224d37;_0x42f47f[_0x5f30d5('0x8c8')]({'title':_0x2d87fc['status']?_0x5f30d5('0x27f2')+_0x2d87fc[_0x5f30d5('0x2833')]+_0x5f30d5('0x1b7c')+_0x2d87fc[_0x5f30d5('0x1fd7')]:_0x5f30d5('0x343'),'msg':_0x2d87fc['status']?JSON[_0x5f30d5('0x3ad')](_0x2d87fc['data']):_0x2d87fc['toString']()});});}var _0x2a44ef=!![],_0x226d4e=0x1;_0x21a126['$watch']('vm.query.filter',function(_0x2fb0ee,_0x55a35c){var _0x4f8bc1=_0x4f7dc4;_0x2a44ef?_0x4575d2(function(){_0x2a44ef=![];}):(!_0x55a35c&&(_0x226d4e=_0x40e953[_0x4f8bc1('0xa16')][_0x4f8bc1('0xc08')]),_0x2fb0ee!==_0x55a35c&&(_0x40e953['query']['page']=0x1),!_0x2fb0ee&&(_0x40e953['query'][_0x4f8bc1('0xc08')]=_0x226d4e),_0x40e953[_0x4f8bc1('0x224c')]());});function _0xecddd3(_0x34b34c){_0x40e953['voiceQueues']=_0x34b34c||{'count':0x0,'rows':[]};}function _0xdc2a10(){var _0x3e2dc0=_0x4f7dc4;_0x40e953[_0x3e2dc0('0xa16')]['offset']=(_0x40e953[_0x3e2dc0('0xa16')][_0x3e2dc0('0xc08')]-0x1)*_0x40e953[_0x3e2dc0('0xa16')][_0x3e2dc0('0x1b6d')],_0x56faf4[_0x3e2dc0('0x179e')](_0x3e2dc0('0xd14'))?_0x40e953['promise']=_0x2b2fee['voiceQueue'][_0x3e2dc0('0x22d5')](_0x40e953['query'],_0xecddd3)['$promise']:(_0x40e953['query']['id']=_0x40e953[_0x3e2dc0('0x154f')]['id'],_0x40e953['query'][_0x3e2dc0('0x1e59')]=_0x3e2dc0('0x13e1'),_0x40e953[_0x3e2dc0('0x9c8')]=_0x2b2fee[_0x3e2dc0('0x154f')][_0x3e2dc0('0x14e6')](_0x40e953[_0x3e2dc0('0xa16')],_0xecddd3)['$promise']);}function _0x4bea25(_0x3fd28c,_0x227cd2){var _0x228413=_0x4f7dc4;_0x53c6eb[_0x228413('0x26b2')]({'controller':_0x228413('0x20ab'),'controllerAs':'vm','templateUrl':_0x3d89a3,'parent':angular[_0x228413('0x24a1')](_0x2b1af9[_0x228413('0x19b2')]),'targetEvent':_0x3fd28c,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x227cd2,'voiceQueues':_0x40e953[_0x228413('0x15c5')][_0x228413('0x16a7')],'license':_0x40e953['license'],'setting':_0x40e953['setting'],'crudPermissions':_0x40e953[_0x228413('0xb3d')]}});}function _0x4c168b(_0x24eae2){var _0x4cf191=_0x4f7dc4;_0x2b2fee['voiceQueue'][_0x4cf191('0x229e')]({'id':_0x24eae2['id']})[_0x4cf191('0xe59')][_0x4cf191('0xe19')](function(){var _0x23bb5e=_0x4cf191;_0x32d445()[_0x23bb5e('0xa8b')](_0x40e953[_0x23bb5e('0x15c5')][_0x23bb5e('0x16a7')],{'id':_0x24eae2['id']}),_0x40e953[_0x23bb5e('0x15c5')][_0x23bb5e('0x148b')]-=0x1,!_0x40e953[_0x23bb5e('0x15c5')][_0x23bb5e('0x16a7')][_0x23bb5e('0x25ae')]&&_0x40e953[_0x23bb5e('0x224c')](),_0x42f47f[_0x23bb5e('0x425')]({'title':_0x32d445()[_0x23bb5e('0x1df2')](_0x23bb5e('0xb89'))+_0x23bb5e('0x1219'),'msg':_0x24eae2[_0x23bb5e('0x2623')]?_0x24eae2['name']+_0x23bb5e('0x2182'):''});})[_0x4cf191('0x223b')](function(_0x52fc63){var _0x1b5506=_0x4cf191;if(_0x52fc63[_0x1b5506('0x11d0')]&&_0x52fc63[_0x1b5506('0x11d0')][_0x1b5506('0xcd2')]&&_0x52fc63['data'][_0x1b5506('0xcd2')][_0x1b5506('0x25ae')]){_0x40e953[_0x1b5506('0xcd2')]=_0x52fc63[_0x1b5506('0x11d0')][_0x1b5506('0xcd2')]||[{'message':_0x52fc63[_0x1b5506('0x94f')](),'type':'SYSTEM:DELETEvoiceQueue'}];for(var _0xc0a478=0x0;_0xc0a478<_0x52fc63[_0x1b5506('0x11d0')]['errors']['length'];_0xc0a478++){_0x42f47f[_0x1b5506('0x8c8')]({'title':_0x52fc63[_0x1b5506('0x11d0')][_0x1b5506('0xcd2')][_0xc0a478][_0x1b5506('0x62e')],'msg':_0x52fc63[_0x1b5506('0x11d0')][_0x1b5506('0xcd2')][_0xc0a478][_0x1b5506('0x27e8')]});}}else _0x42f47f[_0x1b5506('0x8c8')]({'title':_0x52fc63[_0x1b5506('0x2833')]?_0x1b5506('0x27f2')+_0x52fc63[_0x1b5506('0x2833')]+_0x1b5506('0x1b7c')+_0x52fc63['statusText']:'SYSTEM:DELETEvoiceQueue','msg':_0x52fc63[_0x1b5506('0x11d0')]?JSON[_0x1b5506('0x3ad')](_0x52fc63[_0x1b5506('0x11d0')][_0x1b5506('0x27e8')]):_0x52fc63[_0x1b5506('0x27e8')]||_0x52fc63['toString']()});});}function _0x526d33(){var _0x2e26dc=_0x4f7dc4,_0x5c4f20=angular[_0x2e26dc('0x89')](_0x40e953[_0x2e26dc('0x1f71')]);return _0x40e953['selectedVoiceQueues']=[],_0x5c4f20;}function _0x321ca5(_0x354d60){var _0x5b2fcf=_0x4f7dc4,_0x21adb5=_0x53c6eb[_0x5b2fcf('0xa5')]()[_0x5b2fcf('0x13e4')](_0x5b2fcf('0x19ad'))[_0x5b2fcf('0x221c')](_0x5b2fcf('0xab2')+_0x40e953[_0x5b2fcf('0x1f71')]['length']+_0x5b2fcf('0x5bc')+_0x5b2fcf('0x21bd'))['ariaLabel'](_0x5b2fcf('0x200f'))[_0x5b2fcf('0x1345')](_0x354d60)['ok']('OK')[_0x5b2fcf('0x2c1')](_0x5b2fcf('0x17'));_0x53c6eb['show'](_0x21adb5)[_0x5b2fcf('0xe19')](function(){var _0x360168=_0x5b2fcf;_0x40e953['selectedVoiceQueues'][_0x360168('0x1d7e')](function(_0x417322){_0x4c168b(_0x417322);}),_0x40e953[_0x360168('0x1f71')]=[];});}function _0xc50db2(){_0x40e953['selectedVoiceQueues']=[];}function _0x210c25(){var _0x8a684=_0x4f7dc4;_0x40e953[_0x8a684('0x1f71')]=_0x40e953[_0x8a684('0x15c5')][_0x8a684('0x16a7')];}}const _0x3e488b=_0x5247b7;_0x36e686[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'voiceRecordings',_0xb635d2('0x1a1e'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x36e686(_0x5207d6,_0x451e75,_0x3afded,_0x352b08,_0x46ee0f,_0x32cb82,_0x41027c,_0x482d14,_0x5abec8,_0x5dcfa7,_0xef10dc,_0x645a9f,_0x477b62,_0x143f06){var _0x4fd38c=_0xb635d2,_0x52b094=this;_0x52b094[_0x4fd38c('0x15a5')]=_0xef10dc[_0x4fd38c('0x1ef8')](),_0x52b094[_0x4fd38c('0xcd2')]=[],_0x52b094[_0x4fd38c('0x22f1')]=_0x477b62,_0x52b094['license']=_0x645a9f,_0x52b094[_0x4fd38c('0xb3d')]=_0x143f06,_0x52b094[_0x4fd38c('0x1ccb')]={},_0x52b094[_0x4fd38c('0x25ac')]=_0x52b094[_0x4fd38c('0x22f1')]&&_0x52b094[_0x4fd38c('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52b094['title']=_0x4fd38c('0xde2'),_0x52b094[_0x4fd38c('0x1a1e')]=angular['copy'](_0x5abec8),_0x52b094[_0x4fd38c('0xe61')]=_0x482d14,_0x52b094[_0x4fd38c('0x1457')]=![];!_0x52b094[_0x4fd38c('0x1a1e')]&&(_0x52b094[_0x4fd38c('0x1a1e')]={},_0x52b094[_0x4fd38c('0x13e4')]=_0x4fd38c('0x1f88'),_0x52b094[_0x4fd38c('0x1457')]=!![]);_0x52b094[_0x4fd38c('0x8b6')]=_0xda13b0,_0x52b094[_0x4fd38c('0x63f')]=_0x103531,_0x52b094[_0x4fd38c('0x58')]=_0x30189b,_0x52b094[_0x4fd38c('0x2635')]=_0x4db5d2,_0x52b094[_0x4fd38c('0x2584')]=_0x29165a;function _0xda13b0(){var _0x2039f3=_0x4fd38c;_0x52b094['errors']=[],_0x5dcfa7[_0x2039f3('0x1a1e')]['save'](_0x52b094['voiceRecording'])[_0x2039f3('0xe59')][_0x2039f3('0xe19')](function(_0x336bb6){var _0xad9bb3=_0x2039f3;_0x52b094['voiceRecordings'][_0xad9bb3('0x14c9')](_0x336bb6['toJSON']()),_0x41027c['success']({'title':_0xad9bb3('0x21f0'),'msg':_0x52b094[_0xad9bb3('0x1a1e')][_0xad9bb3('0x2623')]?_0x52b094['voiceRecording'][_0xad9bb3('0x2623')]+_0xad9bb3('0x105f'):''}),_0x29165a(_0x336bb6);})[_0x2039f3('0x223b')](function(_0x176df9){var _0x3dfa0=_0x2039f3;if(_0x176df9[_0x3dfa0('0x11d0')]&&_0x176df9[_0x3dfa0('0x11d0')][_0x3dfa0('0xcd2')]&&_0x176df9[_0x3dfa0('0x11d0')][_0x3dfa0('0xcd2')]['length']){_0x52b094['errors']=_0x176df9[_0x3dfa0('0x11d0')][_0x3dfa0('0xcd2')]||[{'message':_0x176df9[_0x3dfa0('0x94f')](),'type':_0x3dfa0('0xb7a')}];for(var _0x50226d=0x0;_0x50226d<_0x176df9[_0x3dfa0('0x11d0')]['errors'][_0x3dfa0('0x25ae')];_0x50226d+=0x1){_0x41027c[_0x3dfa0('0x8c8')]({'title':_0x176df9[_0x3dfa0('0x11d0')][_0x3dfa0('0xcd2')][_0x50226d][_0x3dfa0('0x62e')],'msg':_0x176df9['data'][_0x3dfa0('0xcd2')][_0x50226d]['message']});}}else _0x41027c[_0x3dfa0('0x8c8')]({'title':_0x176df9[_0x3dfa0('0x2833')]?_0x3dfa0('0x27f2')+_0x176df9[_0x3dfa0('0x2833')]+'\x20-\x20'+_0x176df9[_0x3dfa0('0x1fd7')]:_0x3dfa0('0xb7a'),'msg':_0x176df9['data']?JSON[_0x3dfa0('0x3ad')](_0x176df9[_0x3dfa0('0x11d0')][_0x3dfa0('0x27e8')]):_0x176df9['toString']()});});}function _0x103531(){var _0x4bb5d8=_0x4fd38c;_0x52b094['errors']=[],_0x5dcfa7[_0x4bb5d8('0x1a1e')][_0x4bb5d8('0xa70')]({'id':_0x52b094[_0x4bb5d8('0x1a1e')]['id']},_0x52b094[_0x4bb5d8('0x1a1e')])[_0x4bb5d8('0xe59')][_0x4bb5d8('0xe19')](function(_0x32f2a0){var _0x344e96=_0x4bb5d8,_0x4e71ea=_0x32d445()[_0x344e96('0xf15')](_0x52b094['voiceRecordings'],{'id':_0x32f2a0['id']});_0x4e71ea&&_0x32d445()['merge'](_0x4e71ea,_0x32d445()[_0x344e96('0xed5')](_0x32f2a0[_0x344e96('0x250e')](),_0x32d445()['keys'](_0x4e71ea))),_0x41027c['success']({'title':_0x344e96('0x1ace'),'msg':_0x52b094[_0x344e96('0x1a1e')][_0x344e96('0x2623')]?_0x52b094['voiceRecording']['name']+_0x344e96('0x1c19'):''}),_0x29165a(_0x32f2a0);})[_0x4bb5d8('0x223b')](function(_0x5bb04c){var _0x18c221=_0x4bb5d8;if(_0x5bb04c[_0x18c221('0x11d0')]&&_0x5bb04c[_0x18c221('0x11d0')][_0x18c221('0xcd2')]&&_0x5bb04c[_0x18c221('0x11d0')][_0x18c221('0xcd2')][_0x18c221('0x25ae')]){_0x52b094[_0x18c221('0xcd2')]=_0x5bb04c['data']['errors']||[{'message':_0x5bb04c['toString'](),'type':_0x18c221('0x8c0')}];for(var _0x44bd4b=0x0;_0x44bd4b<_0x5bb04c[_0x18c221('0x11d0')][_0x18c221('0xcd2')][_0x18c221('0x25ae')];_0x44bd4b++){_0x41027c[_0x18c221('0x8c8')]({'title':_0x5bb04c[_0x18c221('0x11d0')][_0x18c221('0xcd2')][_0x44bd4b]['type'],'msg':_0x5bb04c[_0x18c221('0x11d0')][_0x18c221('0xcd2')][_0x44bd4b][_0x18c221('0x27e8')]});}}else _0x41027c[_0x18c221('0x8c8')]({'title':_0x5bb04c[_0x18c221('0x2833')]?'API:'+_0x5bb04c[_0x18c221('0x2833')]+_0x18c221('0x1b7c')+_0x5bb04c[_0x18c221('0x1fd7')]:'api.voiceRecording.update','msg':_0x5bb04c[_0x18c221('0x11d0')]?JSON[_0x18c221('0x3ad')](_0x5bb04c['data'][_0x18c221('0x27e8')]):_0x5bb04c[_0x18c221('0x94f')]()});});}function _0x30189b(_0x4eda19){var _0x209163=_0x4fd38c;_0x52b094[_0x209163('0xcd2')]=[];var _0x1f440c=_0x352b08['confirm']()[_0x209163('0x13e4')](_0x209163('0x24d0'))[_0x209163('0xd0')](_0x209163('0x79d'))[_0x209163('0x4d1')](_0x209163('0x39e'))['ok'](_0x209163('0x2198'))[_0x209163('0x2c1')](_0x209163('0x8a3'))[_0x209163('0x1345')](_0x4eda19);_0x352b08[_0x209163('0x26b2')](_0x1f440c)[_0x209163('0xe19')](function(){var _0x18e8c1=_0x209163;_0x5dcfa7[_0x18e8c1('0x1a1e')][_0x18e8c1('0x229e')]({'id':_0x52b094[_0x18e8c1('0x1a1e')]['id']})[_0x18e8c1('0xe59')]['then'](function(){var _0x3c0f53=_0x18e8c1;_0x32d445()[_0x3c0f53('0xa8b')](_0x52b094[_0x3c0f53('0xe61')],{'id':_0x52b094['voiceRecording']['id']}),_0x41027c['success']({'title':'VoiceRecording\x20properly\x20deleted!','msg':(_0x52b094['voiceRecording'][_0x3c0f53('0x2623')]||_0x3c0f53('0x1a1e'))+_0x3c0f53('0x2182')}),_0x29165a(_0x52b094[_0x3c0f53('0x1a1e')]);})[_0x18e8c1('0x223b')](function(_0x20fce4){var _0x1c4214=_0x18e8c1;if(_0x20fce4[_0x1c4214('0x11d0')]&&_0x20fce4['data'][_0x1c4214('0xcd2')]&&_0x20fce4[_0x1c4214('0x11d0')]['errors'][_0x1c4214('0x25ae')]){_0x52b094['errors']=_0x20fce4['data']['errors']||[{'message':_0x20fce4['toString'](),'type':_0x1c4214('0x2875')}];for(var _0x30ea70=0x0;_0x30ea70<_0x20fce4['data'][_0x1c4214('0xcd2')][_0x1c4214('0x25ae')];_0x30ea70++){_0x41027c[_0x1c4214('0x8c8')]({'title':_0x20fce4['data'][_0x1c4214('0xcd2')][_0x30ea70][_0x1c4214('0x62e')],'msg':_0x20fce4[_0x1c4214('0x11d0')][_0x1c4214('0xcd2')][_0x30ea70]['message']});}}else _0x41027c[_0x1c4214('0x8c8')]({'title':_0x20fce4[_0x1c4214('0x2833')]?_0x1c4214('0x27f2')+_0x20fce4[_0x1c4214('0x2833')]+_0x1c4214('0x1b7c')+_0x20fce4[_0x1c4214('0x1fd7')]:_0x1c4214('0x2875'),'msg':_0x20fce4[_0x1c4214('0x11d0')]?JSON['stringify'](_0x20fce4[_0x1c4214('0x11d0')][_0x1c4214('0x27e8')]):_0x20fce4[_0x1c4214('0x27e8')]||_0x20fce4['toString']()});});},function(){});}function _0x4db5d2(_0x3dce98){return _0x3dce98===null?undefined:new Date(_0x3dce98);}function _0x29165a(_0xa4d35a){var _0x3d1be4=_0x4fd38c;_0x352b08[_0x3d1be4('0x11ed')](_0xa4d35a);}}const _0x435605=_0x36e686;function _0x56b808(){var _0x53e70f=_0xb635d2,_0x4d494b=this;_0x4d494b[_0x53e70f('0x1a1e')]={},_0x4d494b['init']=_0xc02b9f;function _0xc02b9f(_0x4e27a8){_0x4d494b['voiceRecording']=_0x4e27a8;}}const _0x2c74ea=_0x56b808;_0x42b0a3['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x2493'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x1a1e'),_0xb635d2('0xb59')];function _0x42b0a3(_0x5f5852,_0x59483e,_0x9c89e4,_0x5f223f,_0x9a9bef,_0x2eeb0c,_0x13e92d,_0x8378aa,_0x2ada05,_0x38a1a7,_0x1fba03,_0x5d0e5c){var _0x590531=_0xb635d2,_0xbed601=this;_0xbed601['currentUser']=_0x38a1a7[_0x590531('0x1ef8')](),_0xbed601[_0x590531('0x5c1')]=_0x2eeb0c,_0xbed601['setting']=_0x13e92d,_0xbed601[_0x590531('0x25ac')]=_0xbed601['setting'][_0x590531('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbed601[_0x590531('0x2170')]=_0x59483e[_0x590531('0xec0')]()+_0x590531('0x21a8')+_0x59483e[_0x590531('0x3b7')](),_0xbed601['voiceRecording']=_0x1fba03||_0x5f5852[_0x590531('0x2ef')][_0x590531('0x1a1e')]||{},_0xbed601[_0x590531('0xb59')]=_0x5d0e5c&&_0x5d0e5c['count']==0x1?_0x5d0e5c[_0x590531('0x16a7')][0x0]:null,_0xbed601[_0x590531('0xb3d')]=_0x38a1a7[_0x590531('0xd31')](_0xbed601[_0x590531('0xb59')]?_0xbed601[_0x590531('0xb59')]['crudPermissions']:null),_0xbed601[_0x590531('0x1ccb')]={},_0xbed601[_0x590531('0xc7b')]=_0x5f5852[_0x590531('0x2ef')]['tab']||0x0,_0xbed601[_0x590531('0xbdc')]=_0x2ada05[_0x590531('0x1e67')],_0xbed601[_0x590531('0x1b5d')]=_0x5b907e,_0xbed601['saveVoiceRecording']=_0x4f0e09;function _0x5b907e(){var _0x364f6b=_0x590531;_0x5f5852['go'](_0x364f6b('0x1162'),{},{'reload':_0x364f6b('0x1162')});}function _0x4f0e09(){var _0xf71471=_0x590531;_0x8378aa[_0xf71471('0x1a1e')][_0xf71471('0xa70')]({'id':_0xbed601[_0xf71471('0x1a1e')]['id']},_0xbed601[_0xf71471('0x1a1e')])[_0xf71471('0xe59')]['then'](function(){var _0x471776=_0xf71471;_0x2ada05[_0x471776('0x425')]({'title':_0x471776('0x5ee'),'msg':_0xbed601['voiceRecording'][_0x471776('0x2623')]?_0xbed601[_0x471776('0x1a1e')]['name']+_0x471776('0x283b'):''});})[_0xf71471('0x223b')](function(_0x2bf419){var _0xe71fd3=_0xf71471;_0x2ada05[_0xe71fd3('0x8c8')]({'title':_0x2bf419[_0xe71fd3('0x2833')]?'API:'+_0x2bf419[_0xe71fd3('0x2833')]+'\x20-\x20'+_0x2bf419[_0xe71fd3('0x1fd7')]:_0xe71fd3('0x215f'),'msg':_0x2bf419[_0xe71fd3('0x11d0')]?JSON['stringify'](_0x2bf419[_0xe71fd3('0x11d0')]):_0x2bf419[_0xe71fd3('0x94f')]()});});}}const _0x4f60b3=_0x42b0a3,_0x2b471d=_0x59426a['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.html/dialog-[chunkhash].html';_0x566f93[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0xe61'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'api','msUtils','toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x566f93(_0x4aeca1,_0x49fae3,_0x3a979c,_0x5c7586,_0x89c5c,_0x18d73d,_0x5f485f,_0x21a639,_0x39c187,_0x2161d9,_0x40bf47,_0x372f49,_0xbd5e,_0xf09b3d,_0x73f7e5,_0x21c02c,_0x43ec37){var _0x3de3ad=_0xb635d2,_0x1ee227=this;_0x1ee227[_0x3de3ad('0x5c1')]=_0x21c02c,_0x1ee227[_0x3de3ad('0x22f1')]=_0x43ec37,_0x1ee227[_0x3de3ad('0x15a5')]=_0x73f7e5[_0x3de3ad('0x1ef8')](),_0x1ee227[_0x3de3ad('0xe61')]=_0x39c187||{'count':0x0,'rows':[]},_0x1ee227[_0x3de3ad('0x154f')]=_0x2161d9,_0x1ee227['userProfileSection']=_0x40bf47&&_0x40bf47[_0x3de3ad('0x148b')]==0x1?_0x40bf47[_0x3de3ad('0x16a7')][0x0]:null,_0x1ee227[_0x3de3ad('0xb3d')]=_0x73f7e5['parseCrudPermissions'](_0x1ee227[_0x3de3ad('0xb59')]?_0x1ee227[_0x3de3ad('0xb59')]['crudPermissions']:null),_0x1ee227[_0x3de3ad('0x19b6')]=_0x3de3ad('0xe61'),_0x1ee227['listOrder']='',_0x1ee227['listOrderAsc']=null,_0x1ee227[_0x3de3ad('0x1bfc')]=[],_0x1ee227[_0x3de3ad('0xa16')]={'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed','sort':_0x3de3ad('0x7e8'),'createdAt':_0x3de3ad('0xb67'),'limit':0xa,'page':0x1},_0x1ee227['query'][_0x3de3ad('0x15c9')]=_0xbd5e[_0x3de3ad('0x2ca')](),_0x1ee227[_0x3de3ad('0x1fd3')]=_0xfcf49a();function _0xfcf49a(){var _0x50b565=_0x3de3ad;return[{'name':_0x50b565('0x141d'),'key':_0x50b565('0x15c9'),'type':_0x50b565('0xf6d'),'label':_0x50b565('0x61b')}];}_0x1ee227[_0x3de3ad('0x16a0')]=_0x192162,_0x1ee227[_0x3de3ad('0x781')]=_0x1cc648,_0x1ee227[_0x3de3ad('0x2283')]=_0x2ad346,_0x1ee227[_0x3de3ad('0x272d')]=_0x5a708d,_0x1ee227['downloadtranscribefile2']=_0x4a8a33,_0x1ee227[_0x3de3ad('0x42d')]=_0x16676a,_0x1ee227[_0x3de3ad('0x1d9e')]=_0x4c3b0f,_0x1ee227['success']=_0x47547e,_0x1ee227['getVoiceRecordings']=_0x282485,_0x1ee227[_0x3de3ad('0x493')]=_0xde7d6f,_0x1ee227[_0x3de3ad('0x58')]=_0x4076e8,_0x1ee227['exportSelectedVoiceRecordings']=_0x4a2ca6,_0x1ee227['deleteSelectedVoiceRecordings']=_0x2a3da6,_0x1ee227['deselectVoiceRecordings']=_0x3744f0,_0x1ee227[_0x3de3ad('0xf45')]=_0x258d23;function _0x192162(_0x29130d){var _0x2e7e3f=_0x3de3ad;_0x3a979c['go'](_0x2e7e3f('0x1e58'),{'id':_0x29130d['id'],'voiceRecording':_0x29130d,'crudPermissions':_0x1ee227[_0x2e7e3f('0xb3d')]});}_0x1ee227[_0x3de3ad('0x1738')]=_0xad93a1;function _0x1cc648(_0x2bdf93){var _0x4207b2=_0x3de3ad;return _0x372f49[_0x4207b2('0x1a1e')][_0x4207b2('0x1a6f')]({'id':_0x2bdf93['id'],'runSentiment':![]})[_0x4207b2('0xe59')][_0x4207b2('0xe19')](function(_0x5071b9){var _0x52cbe3=_0x4207b2;_0xf09b3d[_0x52cbe3('0x425')]({'title':_0x21a639[_0x52cbe3('0x2159')](_0x52cbe3('0xc72')),'msg':_0x21a639[_0x52cbe3('0x2159')](_0x52cbe3('0xc72'))+_0x52cbe3('0xe2')}),_0x2bdf93[_0x52cbe3('0x829')]=_0x5071b9[_0x52cbe3('0x829')];})[_0x4207b2('0x223b')](function(_0x3432f7){var _0x338350=_0x4207b2;_0xf09b3d[_0x338350('0x8c8')]({'title':_0x21a639[_0x338350('0x2159')](_0x338350('0xc72')),'msg':_0x3432f7['data']?_0x3432f7['data'][_0x338350('0x27e8')]?_0x3432f7[_0x338350('0x11d0')][_0x338350('0x27e8')]:JSON[_0x338350('0x3ad')](_0x3432f7['data']):_0x3432f7[_0x338350('0x94f')]()});});}function _0xad93a1(){var _0x587152=_0x3de3ad;_0x1ee227[_0x587152('0x1bfc')][_0x587152('0x1d7e')](function(_0x2dc9b0){_0x1cc648(_0x2dc9b0);}),_0x1ee227['selectedVoiceRecordings']=[];}_0x1ee227[_0x3de3ad('0x1fc6')]=_0xd9f70;function _0x2ad346(_0x4929f7){var _0x5517f7=_0x3de3ad;return _0x372f49[_0x5517f7('0x1a1e')][_0x5517f7('0x1a6f')]({'id':_0x4929f7['id'],'runSentiment':!![]})['$promise'][_0x5517f7('0xe19')](function(_0x573cca){var _0x2fde3a=_0x5517f7;_0xf09b3d[_0x2fde3a('0x425')]({'title':_0x21a639[_0x2fde3a('0x2159')](_0x2fde3a('0xcbf')),'msg':_0x21a639[_0x2fde3a('0x2159')]('VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING')+_0x2fde3a('0xe2')}),_0x4929f7['transcribeStatus']=_0x573cca[_0x2fde3a('0x829')];})[_0x5517f7('0x223b')](function(_0x6df559){var _0x58dadf=_0x5517f7;_0xf09b3d['error']({'title':_0x21a639['instant'](_0x58dadf('0xcbf')),'msg':_0x6df559[_0x58dadf('0x11d0')]?_0x6df559['data']['message']?_0x6df559['data']['message']:JSON[_0x58dadf('0x3ad')](_0x6df559['data']):_0x6df559[_0x58dadf('0x94f')]()});});}function _0xd9f70(){var _0x59296d=_0x3de3ad;_0x1ee227['selectedVoiceRecordings'][_0x59296d('0x1d7e')](function(_0x58cd94){_0x2ad346(_0x58cd94);}),_0x1ee227[_0x59296d('0x1bfc')]=[];}_0x1ee227[_0x3de3ad('0x1880')]=_0x2f4754;function _0x5a708d(_0x33201f){var _0x5a85f3=_0x3de3ad;return _0x372f49[_0x5a85f3('0x1a1e')][_0x5a85f3('0x1a6f')]({'id':_0x33201f['id'],'runSentiment':!![]})[_0x5a85f3('0xe59')][_0x5a85f3('0xe19')](function(){var _0x5b409d=_0x5a85f3;_0xf09b3d[_0x5b409d('0x425')]({'title':_0x21a639['instant'](_0x5b409d('0x133f')),'msg':_0x21a639[_0x5b409d('0x2159')](_0x5b409d('0x133f'))+_0x5b409d('0xe2')});})[_0x5a85f3('0x223b')](function(_0x25e208){var _0x1add21=_0x5a85f3;_0xf09b3d[_0x1add21('0x8c8')]({'title':_0x21a639[_0x1add21('0x2159')](_0x1add21('0x133f')),'msg':_0x25e208[_0x1add21('0x11d0')]?_0x25e208[_0x1add21('0x11d0')]['message']?_0x25e208['data'][_0x1add21('0x27e8')]:JSON[_0x1add21('0x3ad')](_0x25e208[_0x1add21('0x11d0')]):_0x25e208[_0x1add21('0x94f')]()});});}function _0x2f4754(){var _0x2678a3=_0x3de3ad;_0x1ee227[_0x2678a3('0x1bfc')][_0x2678a3('0x1d7e')](function(_0x5269f4){_0x5a708d(_0x5269f4);}),_0x1ee227[_0x2678a3('0x1bfc')]=[];}function _0x4a8a33(_0x27c0f3){var _0x16a75b=_0x3de3ad,_0x4245af=![],_0xb33cb1=!_0x32d445()[_0x16a75b('0xe44')](_0x27c0f3[_0x16a75b('0x5e5')])?_0x27c0f3[_0x16a75b('0x5e5')]:_0x27c0f3['value'][_0x16a75b('0x126d')](_0x27c0f3['value']['lastIndexOf']('.'));return _0x4245af=_0xb33cb1==='.mp4'?!![]:![],_0x372f49['voiceRecording'][_0x16a75b('0x2125')]({'id':_0x27c0f3['id']})['$promise']['then'](function(_0x2b2971){var _0x2b7c70=_0x16a75b,_0x373588=[_0x2b2971[_0x2b7c70('0x17ab')]],_0x1e70dc=_0x2b7c70('0x1d1e'),_0x879c0e=new Blob(_0x373588,{'type':_0x2b2971[_0x2b7c70('0x62e')]});_0x1e70dc=_0x27c0f3[_0x2b7c70('0x1a6c')]+_0x2b7c70('0x273');var _0x5d6377=window[_0x2b7c70('0x18fa')][_0x2b7c70('0x9a1')]('a');_0x5d6377[_0x2b7c70('0xede')]('href',URL[_0x2b7c70('0x1360')](_0x879c0e)),_0x5d6377[_0x2b7c70('0xede')]('download',_0x1e70dc),document[_0x2b7c70('0x19b2')][_0x2b7c70('0x1d13')](_0x5d6377),_0x5d6377['click']();})[_0x16a75b('0x223b')](function(_0x626b58){var _0xe06f38=_0x16a75b;if(_0x626b58[_0xe06f38('0x11d0')]&&_0x626b58[_0xe06f38('0x11d0')][_0xe06f38('0xcd2')]&&_0x626b58['data'][_0xe06f38('0xcd2')][_0xe06f38('0x25ae')])for(var _0x1a2c6f=0x0;_0x1a2c6f<_0x626b58[_0xe06f38('0x11d0')]['errors']['length'];_0x1a2c6f++){_0xf09b3d[_0xe06f38('0x8c8')]({'title':_0x626b58[_0xe06f38('0x11d0')][_0xe06f38('0xcd2')][_0x1a2c6f][_0xe06f38('0x62e')],'msg':_0x626b58[_0xe06f38('0x11d0')]['errors'][_0x1a2c6f][_0xe06f38('0x27e8')]});}else{if(String(_0x626b58['status'])===_0xe06f38('0x27c5')&&_0x4245af===![])_0xf09b3d['info']({'title':_0x21a639[_0xe06f38('0x2159')](_0xe06f38('0x165a')),'msg':_0x21a639[_0xe06f38('0x2159')](_0xe06f38('0xd63'))});else String(_0x626b58[_0xe06f38('0x2833')])===_0xe06f38('0x27c5')?_0xf09b3d[_0xe06f38('0x1e67')]({'title':_0x21a639[_0xe06f38('0x2159')](_0xe06f38('0x165a')),'msg':_0x21a639[_0xe06f38('0x2159')](_0xe06f38('0xdb4'))}):_0xf09b3d[_0xe06f38('0x8c8')]({'title':_0x626b58[_0xe06f38('0x2833')]?_0xe06f38('0x27f2')+_0x626b58[_0xe06f38('0x2833')]+_0xe06f38('0x1b7c')+_0x626b58[_0xe06f38('0x1fd7')]:_0xe06f38('0xb7a'),'msg':_0x626b58[_0xe06f38('0x11d0')]?JSON[_0xe06f38('0x3ad')](_0x626b58[_0xe06f38('0x11d0')]['message']):_0x626b58[_0xe06f38('0x94f')]()});}});}function _0x2734e6(_0x402a5e){var _0x1de0e9=_0x3de3ad,_0xe71e95=_0x402a5e[_0x1de0e9('0x11cc')]('/')>-0x1?_0x402a5e[_0x1de0e9('0x126d')](_0x402a5e[_0x1de0e9('0x11cc')]('/')+0x1):_0x402a5e[_0x1de0e9('0x11cc')]('\x5c')>-0x1?_0x402a5e[_0x1de0e9('0x126d')](_0x402a5e[_0x1de0e9('0x11cc')]('\x5c')+0x1):_0x402a5e;return _0xe71e95=_0xe71e95[_0x1de0e9('0x126d')](0x0,_0xe71e95['lastIndexOf']('.')),_0xe71e95;}function _0x16676a(_0x59eda5){var _0x9561d7=_0x3de3ad,_0x56a062=![],_0x5b9424=!_0x32d445()['isNil'](_0x59eda5[_0x9561d7('0x5e5')])?_0x59eda5[_0x9561d7('0x5e5')]:_0x59eda5[_0x9561d7('0x2')][_0x9561d7('0x126d')](_0x59eda5[_0x9561d7('0x2')]['lastIndexOf']('.'));return _0x56a062=_0x5b9424===_0x9561d7('0x357')?!![]:![],_0x372f49[_0x9561d7('0x1a1e')]['download']({'id':_0x59eda5['id']})[_0x9561d7('0xe59')]['then'](function(_0x50e58a){var _0x2ca15f=_0x9561d7,_0x28ec7f=[_0x50e58a[_0x2ca15f('0x17ab')]],_0x2596e4='download',_0x116317=new Blob(_0x28ec7f,{'type':_0x50e58a[_0x2ca15f('0x62e')]});_0x2596e4=_0x2734e6(_0x59eda5[_0x2ca15f('0x2')])+_0x59eda5[_0x2ca15f('0x5e5')];var _0x458f95=window[_0x2ca15f('0x18fa')][_0x2ca15f('0x9a1')]('a');_0x458f95[_0x2ca15f('0xede')]('href',URL['createObjectURL'](_0x116317)),_0x458f95[_0x2ca15f('0xede')](_0x2ca15f('0x1d1e'),_0x2596e4),document[_0x2ca15f('0x19b2')][_0x2ca15f('0x1d13')](_0x458f95),_0x458f95[_0x2ca15f('0xfe7')]();})[_0x9561d7('0x223b')](function(_0x58d7d4){var _0x4f52af=_0x9561d7;if(_0x58d7d4[_0x4f52af('0x11d0')]&&_0x58d7d4['data'][_0x4f52af('0xcd2')]&&_0x58d7d4[_0x4f52af('0x11d0')]['errors']['length'])for(var _0x35d085=0x0;_0x35d085<_0x58d7d4[_0x4f52af('0x11d0')][_0x4f52af('0xcd2')][_0x4f52af('0x25ae')];_0x35d085++){_0xf09b3d['error']({'title':_0x58d7d4['data'][_0x4f52af('0xcd2')][_0x35d085][_0x4f52af('0x62e')],'msg':_0x58d7d4[_0x4f52af('0x11d0')][_0x4f52af('0xcd2')][_0x35d085][_0x4f52af('0x27e8')]});}else{if(String(_0x58d7d4[_0x4f52af('0x2833')])===_0x4f52af('0x27c5')&&_0x56a062===![])_0xf09b3d[_0x4f52af('0x1e67')]({'title':_0x21a639[_0x4f52af('0x2159')](_0x4f52af('0x165a')),'msg':_0x21a639[_0x4f52af('0x2159')](_0x4f52af('0xd63'))});else String(_0x58d7d4['status'])===_0x4f52af('0x27c5')?_0xf09b3d[_0x4f52af('0x1e67')]({'title':_0x21a639[_0x4f52af('0x2159')](_0x4f52af('0x165a')),'msg':_0x21a639['instant']('VOICE.FILE_NOT_FOUND')}):_0xf09b3d[_0x4f52af('0x8c8')]({'title':_0x58d7d4[_0x4f52af('0x2833')]?_0x4f52af('0x27f2')+_0x58d7d4[_0x4f52af('0x2833')]+'\x20-\x20'+_0x58d7d4[_0x4f52af('0x1fd7')]:'api.voiceRecording.save','msg':_0x58d7d4['data']?JSON[_0x4f52af('0x3ad')](_0x58d7d4['data'][_0x4f52af('0x27e8')]):_0x58d7d4['toString']()});}});}function _0x4c3b0f(_0x33369d,_0x38e289){var _0x257390=_0x3de3ad,_0x202943=_0x89c5c[_0x257390('0xa5')]()[_0x257390('0x13e4')](_0x257390('0x346')+_0x32d445()[_0x257390('0x1df2')](_0x257390('0x1a1e'))+'?')[_0x257390('0x221c')](_0x257390('0xab2')+(_0x33369d[_0x257390('0x2623')]||_0x257390('0x1a1e'))+_0x257390('0x27bb')+_0x257390('0x21bd'))[_0x257390('0x4d1')](_0x257390('0x1647'))[_0x257390('0x1345')](_0x38e289)['ok']('OK')[_0x257390('0x2c1')](_0x257390('0x17'));_0x89c5c[_0x257390('0x26b2')](_0x202943)[_0x257390('0xe19')](function(){_0x4076e8(_0x33369d);},function(){var _0x19e072=_0x257390;console[_0x19e072('0x1fe9')](_0x19e072('0x17'));});}var _0xdf15cb=!![],_0x3954a8=0x1;_0x4aeca1[_0x3de3ad('0x107')]('vm.query.filter',function(_0x414b8a,_0x1e600d){var _0x48328c=_0x3de3ad;_0xdf15cb?_0x5f485f(function(){_0xdf15cb=![];}):(!_0x1e600d&&(_0x3954a8=_0x1ee227[_0x48328c('0xa16')]['page']),_0x414b8a!==_0x1e600d&&(_0x1ee227[_0x48328c('0xa16')]['page']=0x1),!_0x414b8a&&(_0x1ee227[_0x48328c('0xa16')][_0x48328c('0xc08')]=_0x3954a8),_0x1ee227[_0x48328c('0x28b4')]());});function _0x47547e(_0xfb02ed){_0x1ee227['voiceRecordings']=_0xfb02ed||{'count':0x0,'rows':[]};}function _0x282485(){var _0x3a7db1=_0x3de3ad;_0x1ee227['query'][_0x3a7db1('0xab0')]=(_0x1ee227[_0x3a7db1('0xa16')][_0x3a7db1('0xc08')]-0x1)*_0x1ee227[_0x3a7db1('0xa16')][_0x3a7db1('0x1b6d')],_0x73f7e5[_0x3a7db1('0x179e')](_0x3a7db1('0xd14'))?_0x1ee227[_0x3a7db1('0x9c8')]=_0x372f49[_0x3a7db1('0x1a1e')]['get'](_0x1ee227[_0x3a7db1('0xa16')],_0x47547e)[_0x3a7db1('0xe59')]:(_0x1ee227[_0x3a7db1('0xa16')]['id']=_0x1ee227['userProfile']['id'],_0x1ee227['query']['section']=_0x3a7db1('0xcc6'),_0x1ee227[_0x3a7db1('0x9c8')]=_0x372f49['userProfile'][_0x3a7db1('0x14e6')](_0x1ee227['query'],_0x47547e)[_0x3a7db1('0xe59')]);}function _0xde7d6f(_0x428b91,_0x2b41fe){var _0x468609=_0x3de3ad;_0x89c5c['show']({'controller':'CreateOrEditVoiceRecordingDialogController','controllerAs':'vm','templateUrl':_0x2b471d,'parent':angular[_0x468609('0x24a1')](_0x18d73d[_0x468609('0x19b2')]),'targetEvent':_0x428b91,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x2b41fe,'voiceRecordings':_0x1ee227['voiceRecordings'][_0x468609('0x16a7')],'license':_0x1ee227['license'],'setting':_0x1ee227[_0x468609('0x22f1')],'crudPermissions':_0x1ee227[_0x468609('0xb3d')]}});}function _0x4076e8(_0xbb813d){var _0x50d608=_0x3de3ad;_0x372f49[_0x50d608('0x1a1e')]['delete']({'id':_0xbb813d['id']})['$promise']['then'](function(){var _0x232c86=_0x50d608;_0x32d445()[_0x232c86('0xa8b')](_0x1ee227[_0x232c86('0xe61')][_0x232c86('0x16a7')],{'id':_0xbb813d['id']}),_0x1ee227[_0x232c86('0xe61')][_0x232c86('0x148b')]-=0x1,!_0x1ee227['voiceRecordings']['rows'][_0x232c86('0x25ae')]&&_0x1ee227[_0x232c86('0x28b4')](),_0xf09b3d[_0x232c86('0x425')]({'title':_0x32d445()[_0x232c86('0x1df2')](_0x232c86('0x2459'))+'\x20deleted!','msg':_0xbb813d['name']?_0xbb813d['name']+_0x232c86('0x2182'):''});})['catch'](function(_0x50eff6){var _0x472513=_0x50d608;if(_0x50eff6[_0x472513('0x11d0')]&&_0x50eff6['data'][_0x472513('0xcd2')]&&_0x50eff6[_0x472513('0x11d0')]['errors'][_0x472513('0x25ae')]){_0x1ee227[_0x472513('0xcd2')]=_0x50eff6[_0x472513('0x11d0')]['errors']||[{'message':_0x50eff6[_0x472513('0x94f')](),'type':_0x472513('0xa27')}];for(var _0x3045c7=0x0;_0x3045c7<_0x50eff6['data']['errors'][_0x472513('0x25ae')];_0x3045c7++){_0xf09b3d[_0x472513('0x8c8')]({'title':_0x50eff6[_0x472513('0x11d0')][_0x472513('0xcd2')][_0x3045c7][_0x472513('0x62e')],'msg':_0x50eff6['data'][_0x472513('0xcd2')][_0x3045c7][_0x472513('0x27e8')]});}}else _0xf09b3d['error']({'title':_0x50eff6[_0x472513('0x2833')]?'API:'+_0x50eff6[_0x472513('0x2833')]+_0x472513('0x1b7c')+_0x50eff6['statusText']:_0x472513('0xa27'),'msg':_0x50eff6['data']?JSON[_0x472513('0x3ad')](_0x50eff6[_0x472513('0x11d0')]['message']):_0x50eff6['message']||_0x50eff6[_0x472513('0x94f')]()});});}function _0x4a2ca6(){var _0x3f2704=_0x3de3ad,_0x420c21=angular[_0x3f2704('0x89')](_0x1ee227['selectedVoiceRecordings']);return _0x1ee227['selectedVoiceRecordings']=[],_0x420c21;}function _0x2a3da6(_0x852a08){var _0x10c58d=_0x3de3ad,_0x708698=_0x89c5c[_0x10c58d('0xa5')]()[_0x10c58d('0x13e4')](_0x10c58d('0x130f'))[_0x10c58d('0x221c')](''+_0x1ee227[_0x10c58d('0x1bfc')][_0x10c58d('0x25ae')]+_0x10c58d('0x5bc')+_0x10c58d('0x21bd'))[_0x10c58d('0x4d1')]('delete\x20VoiceRecordings')[_0x10c58d('0x1345')](_0x852a08)['ok']('OK')['cancel'](_0x10c58d('0x17'));_0x89c5c['show'](_0x708698)[_0x10c58d('0xe19')](function(){_0x1ee227['selectedVoiceRecordings']['forEach'](function(_0x58ee7e){_0x4076e8(_0x58ee7e);}),_0x1ee227['selectedVoiceRecordings']=[];});}function _0x3744f0(){var _0x246cbf=_0x3de3ad;_0x1ee227[_0x246cbf('0x1bfc')]=[];}function _0x258d23(){var _0x29cf22=_0x3de3ad;_0x1ee227[_0x29cf22('0x1bfc')]=_0x1ee227['voiceRecordings'][_0x29cf22('0x16a7')];}}const _0x2b0d96=_0x566f93,_0x437d2d=_0x59426a['p']+_0xb635d2('0x11a3'),_0x1a3b68=_0x59426a['p']+_0xb635d2('0x1475'),_0x4eeb21=_0x59426a['p']+_0xb635d2('0x1bf3'),_0x12e9cd=_0x59426a['p']+_0xb635d2('0x1044'),_0x33cff5=_0x59426a['p']+'src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes-[chunkhash].html',_0x4e2bcb=_0x59426a['p']+'src/js/modules/main/apps/voice/views/outboundroutes/edit/view.html/view-[chunkhash].html',_0x5aa40f=_0x59426a['p']+_0xb635d2('0x1dec'),_0x55f36d=_0x59426a['p']+_0xb635d2('0x1c9e'),_0x4b13ba=_0x59426a['p']+_0xb635d2('0x9d2'),_0x5927d6=_0x59426a['p']+_0xb635d2('0x269'),_0x453539=_0x59426a['p']+_0xb635d2('0x1489'),_0x4dc962=_0x59426a['p']+_0xb635d2('0x3e7'),_0x573082=_0x59426a['p']+'src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view-[chunkhash].html',_0x49b9e7=_0x59426a['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.html/voiceRecordings-[chunkhash].html',_0x377ba8=_0x59426a['p']+_0xb635d2('0x116f'),_0x295fda=_0x59426a['p']+_0xb635d2('0x254d'),_0x121164=_0x59426a['p']+_0xb635d2('0x20af');_0x561f14[_0xb635d2('0xb0c')]=['$stateProvider',_0xb635d2('0x2104')];function _0x561f14(_0x3ba3bf,_0x44d736){var _0x4d6f9b=_0xb635d2;_0x3ba3bf['state'](_0x4d6f9b('0x2138'),{'abstract':!![],'url':_0x4d6f9b('0x1386')})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x2308'),{'url':'/voiceQueues','views':{'content@app':{'templateUrl':_0x437d2d,'controller':_0x4d6f9b('0x96f')}},'resolve':{'voiceQueues':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x584538(_0x4e146f,_0x49008b){var _0x1240d1=_0x4d6f9b;return _0x49008b[_0x1240d1('0x179e')](_0x1240d1('0xd14'))?_0x4e146f[_0x1240d1('0xcd6')](_0x1240d1('0x1382'),{'fields':_0x1240d1('0x1546'),'type':'inbound','sort':_0x1240d1('0x7e8'),'channel':_0x1240d1('0xe74'),'limit':0xa,'offset':0x0}):_0x4e146f[_0x1240d1('0xcd6')]('userProfile@getResources',{'id':_0x49008b[_0x1240d1('0x1ef8')]()[_0x1240d1('0x1d04')],'section':'VoiceQueues','fields':_0x1240d1('0x1546'),'type':_0x1240d1('0x1a7a'),'sort':_0x1240d1('0x7e8'),'channel':_0x1240d1('0xe74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x5f4f8d(_0x48c024,_0x1faa89){var _0x1f7ac7=_0x4d6f9b;return _0x1faa89[_0x1f7ac7('0x179e')](_0x1f7ac7('0xd14'))?null:_0x48c024['resolve'](_0x1f7ac7('0x455'),{'fields':_0x1f7ac7('0x1b71'),'id':_0x1faa89[_0x1f7ac7('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x1b8d84(_0x24f719,_0x91df9e){var _0x23a8b8=_0x4d6f9b;return _0x91df9e[_0x23a8b8('0x179e')]('admin')?null:_0x24f719[_0x23a8b8('0xcd6')](_0x23a8b8('0x264e'),{'fields':_0x23a8b8('0x12d6'),'userProfileId':_0x91df9e[_0x23a8b8('0x1ef8')]()[_0x23a8b8('0x1d04')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')]('app.voice.voiceQueues.edit',{'url':_0x4d6f9b('0xb1d'),'params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1a3b68,'controller':'VoiceQueueController\x20as\x20vm'}},'resolve':{'voiceQueue':[_0x4d6f9b('0x292'),_0x4d6f9b('0x34'),function _0x5a334e(_0x3cf422,_0x115e3a){var _0x310851=_0x4d6f9b;return _0x3cf422['resolve']('voiceQueue@get',{'fields':_0x310851('0x1546'),'id':_0x115e3a['id']});}],'userProfileSection':['apiResolver',_0x4d6f9b('0x2730'),function _0x40cff7(_0x22ad89,_0x2c8c2f){var _0x3a074a=_0x4d6f9b;return _0x22ad89[_0x3a074a('0xcd6')](_0x3a074a('0x264e'),{'fields':_0x3a074a('0x12d6'),'userProfileId':_0x2c8c2f[_0x3a074a('0x1ef8')]()[_0x3a074a('0x1d04')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x2219'),{'url':_0x4d6f9b('0x2222'),'views':{'content@app':{'templateUrl':_0x4eeb21,'controller':'InboundRoutesController\x20as\x20vm'}},'resolve':{'inboundroutes':['apiResolver',_0x4d6f9b('0x2730'),function _0x35989e(_0x4113c0,_0xfd9e42){var _0x594a53=_0x4d6f9b;return _0xfd9e42[_0x594a53('0x179e')]('admin')?_0x4113c0[_0x594a53('0xcd6')](_0x594a53('0x1d12'),{'fields':_0x594a53('0x1823'),'type':'inbound','sort':_0x594a53('0x7e8'),'VoiceExtensionId':_0x594a53('0x1046'),'limit':0xa,'offset':0x0}):_0x4113c0[_0x594a53('0xcd6')]('userProfile@getResources',{'id':_0xfd9e42[_0x594a53('0x1ef8')]()[_0x594a53('0x1d04')],'section':'InboundRoutes','fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x594a53('0x1a7a'),'sort':_0x594a53('0x7e8'),'VoiceExtensionId':_0x594a53('0x1046'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x53e708(_0x52e71c,_0x35c051){var _0x1d62ee=_0x4d6f9b;return _0x35c051[_0x1d62ee('0x179e')](_0x1d62ee('0xd14'))?null:_0x52e71c['resolve'](_0x1d62ee('0x455'),{'fields':_0x1d62ee('0x1b71'),'id':_0x35c051[_0x1d62ee('0x1ef8')]()[_0x1d62ee('0x1d04')]});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x36ced4(_0x225d87,_0x3a51ac){var _0x19d919=_0x4d6f9b;return _0x3a51ac[_0x19d919('0x179e')](_0x19d919('0xd14'))?null:_0x225d87[_0x19d919('0xcd6')](_0x19d919('0x264e'),{'fields':_0x19d919('0x12d6'),'userProfileId':_0x3a51ac[_0x19d919('0x1ef8')]()[_0x19d919('0x1d04')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')]('app.voice.inboundroutes.edit',{'url':_0x4d6f9b('0xb1d'),'params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x12e9cd,'controller':'InboundRouteController\x20as\x20vm'}},'resolve':{'inboundroute':['apiResolver','$stateParams',function _0x17d3cd(_0x15bdbb,_0x32155d){var _0x11ba98=_0x4d6f9b;return _0x15bdbb[_0x11ba98('0xcd6')](_0x11ba98('0x1d12'),{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','id':_0x32155d['id']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x3cd4f7(_0x656dd3,_0x1c4583){var _0x5301ff=_0x4d6f9b;return _0x656dd3[_0x5301ff('0xcd6')]('userProfileSection@get',{'fields':_0x5301ff('0x12d6'),'userProfileId':_0x1c4583[_0x5301ff('0x1ef8')]()[_0x5301ff('0x1d04')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')]('app.voice.outboundroutes',{'url':_0x4d6f9b('0x1183'),'views':{'content@app':{'templateUrl':_0x33cff5,'controller':_0x4d6f9b('0x1c01')}},'resolve':{'outboundroutes':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x538fda(_0x47a4a,_0x25f5f0){var _0x587c90=_0x4d6f9b;return _0x25f5f0['hasRole'](_0x587c90('0xd14'))?_0x47a4a[_0x587c90('0xcd6')](_0x587c90('0x1d12'),{'fields':_0x587c90('0x2226'),'type':_0x587c90('0x1fdf'),'sort':_0x587c90('0x7e8'),'VoiceExtensionId':_0x587c90('0x1046'),'limit':0xa,'offset':0x0}):_0x47a4a[_0x587c90('0xcd6')]('userProfile@getResources',{'id':_0x25f5f0['getCurrentUser']()[_0x587c90('0x1d04')],'section':_0x587c90('0x18af'),'fields':_0x587c90('0x2226'),'type':_0x587c90('0x1fdf'),'sort':_0x587c90('0x7e8'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x49ffeb(_0x2d3cf9,_0x5241ce){var _0x1726b9=_0x4d6f9b;return _0x5241ce[_0x1726b9('0x179e')](_0x1726b9('0xd14'))?null:_0x2d3cf9['resolve'](_0x1726b9('0x455'),{'fields':_0x1726b9('0x1b71'),'id':_0x5241ce[_0x1726b9('0x1ef8')]()[_0x1726b9('0x1d04')]});}],'userProfileSection':[_0x4d6f9b('0x292'),'Auth',function _0x4f222f(_0x2cd1d4,_0x9a6e5d){var _0x50812c=_0x4d6f9b;return _0x9a6e5d[_0x50812c('0x179e')](_0x50812c('0xd14'))?null:_0x2cd1d4[_0x50812c('0xcd6')](_0x50812c('0x264e'),{'fields':_0x50812c('0x12d6'),'userProfileId':_0x9a6e5d['getCurrentUser']()[_0x50812c('0x1d04')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':'voice'})[_0x4d6f9b('0x1d72')]('app.voice.outboundroutes.edit',{'url':'/:id?tab','params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4e2bcb,'controller':_0x4d6f9b('0xac3')}},'resolve':{'outboundroute':['apiResolver',_0x4d6f9b('0x34'),function _0x5d2764(_0x4b7e17,_0xcc66c2){var _0x3a4421=_0x4d6f9b;return _0x4b7e17[_0x3a4421('0xcd6')](_0x3a4421('0x1d12'),{'fields':_0x3a4421('0x2226'),'id':_0xcc66c2['id']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x2ae755(_0x310b4c,_0x48ba05){var _0x4b97c2=_0x4d6f9b;return _0x310b4c['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x48ba05['getCurrentUser']()[_0x4b97c2('0x1d04')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x21d5'),{'url':'/internalroutes','views':{'content@app':{'templateUrl':_0x5aa40f,'controller':_0x4d6f9b('0x1f7c')}},'resolve':{'internalroutes':[_0x4d6f9b('0x292'),'Auth',function _0x1b18d8(_0x1fb101,_0x223bac){var _0x102f54=_0x4d6f9b;return _0x223bac['hasRole'](_0x102f54('0xd14'))?_0x1fb101[_0x102f54('0xcd6')]('voiceExtension@get',{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':'internal','sort':'-updatedAt','VoiceExtensionId':_0x102f54('0x1046'),'limit':0xa,'offset':0x0}):_0x1fb101[_0x102f54('0xcd6')](_0x102f54('0x197d'),{'id':_0x223bac['getCurrentUser']()['userProfileId'],'section':_0x102f54('0xb7d'),'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x102f54('0x1b66'),'sort':_0x102f54('0x7e8'),'VoiceExtensionId':_0x102f54('0x1046'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x23d1a1(_0x41c025,_0x45b79f){var _0x468aa2=_0x4d6f9b;return _0x45b79f[_0x468aa2('0x179e')]('admin')?null:_0x41c025[_0x468aa2('0xcd6')]('userProfile@get',{'fields':_0x468aa2('0x1b71'),'id':_0x45b79f[_0x468aa2('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x4d6f9b('0x292'),'Auth',function _0x5e3ffc(_0x571e11,_0x423b19){var _0x2d2f3e=_0x4d6f9b;return _0x423b19[_0x2d2f3e('0x179e')](_0x2d2f3e('0xd14'))?null:_0x571e11[_0x2d2f3e('0xcd6')](_0x2d2f3e('0x264e'),{'fields':_0x2d2f3e('0x12d6'),'userProfileId':_0x423b19[_0x2d2f3e('0x1ef8')]()[_0x2d2f3e('0x1d04')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x4d6f9b('0xe74')})['state'](_0x4d6f9b('0x243e'),{'url':_0x4d6f9b('0xb1d'),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x55f36d,'controller':_0x4d6f9b('0xf86')}},'resolve':{'internalroute':[_0x4d6f9b('0x292'),_0x4d6f9b('0x34'),function _0x298cb8(_0x1ad209,_0x5e5ab4){var _0x137039=_0x4d6f9b;return _0x1ad209[_0x137039('0xcd6')](_0x137039('0x1d12'),{'fields':_0x137039('0x1823'),'id':_0x5e5ab4['id']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x36e3c1(_0x1a413e,_0xa986fc){var _0x35a9bf=_0x4d6f9b;return _0x1a413e[_0x35a9bf('0xcd6')](_0x35a9bf('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xa986fc[_0x35a9bf('0x1ef8')]()[_0x35a9bf('0x1d04')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':'voice'})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x1eb'),{'url':_0x4d6f9b('0x10b8'),'views':{'content@app':{'templateUrl':_0x4b13ba,'controller':_0x4d6f9b('0xdd0')}},'resolve':{'contexts':['apiResolver',_0x4d6f9b('0x2730'),function _0x549cc9(_0x41a235,_0x409d1e){var _0x4e5b2e=_0x4d6f9b;return _0x409d1e['hasRole']('admin')?_0x41a235[_0x4e5b2e('0xcd6')]('voiceContext@get',{'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','defaultEntry':'false','limit':0xa,'offset':0x0}):_0x41a235['resolve'](_0x4e5b2e('0x197d'),{'id':_0x409d1e[_0x4e5b2e('0x1ef8')]()[_0x4e5b2e('0x1d04')],'section':_0x4e5b2e('0xf3f'),'fields':_0x4e5b2e('0x1666'),'sort':'-updatedAt','defaultEntry':_0x4e5b2e('0x1ad3'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),'Auth',function _0x48a821(_0x3566a5,_0x130e68){var _0x2130bf=_0x4d6f9b;return _0x130e68[_0x2130bf('0x179e')](_0x2130bf('0xd14'))?null:_0x3566a5[_0x2130bf('0xcd6')]('userProfile@get',{'fields':_0x2130bf('0x1b71'),'id':_0x130e68[_0x2130bf('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x4dbfff(_0x1076bf,_0x80e98a){var _0x3688ea=_0x4d6f9b;return _0x80e98a['hasRole'](_0x3688ea('0xd14'))?null:_0x1076bf['resolve'](_0x3688ea('0x264e'),{'fields':_0x3688ea('0x12d6'),'userProfileId':_0x80e98a['getCurrentUser']()[_0x3688ea('0x1d04')],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x468'),{'url':_0x4d6f9b('0x42e'),'views':{'content@app':{'templateUrl':_0x5927d6,'controller':_0x4d6f9b('0xc98')}},'resolve':{'voicemails':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x2b5c20(_0x1321cb,_0x5102f0){var _0x37540b=_0x4d6f9b;return _0x5102f0[_0x37540b('0x179e')]('admin')?_0x1321cb['resolve'](_0x37540b('0x8ee'),{'fields':_0x37540b('0xf39'),'sort':_0x37540b('0x7e8'),'limit':0xa,'offset':0x0}):_0x1321cb[_0x37540b('0xcd6')]('userProfile@getResources',{'id':_0x5102f0['getCurrentUser']()[_0x37540b('0x1d04')],'section':_0x37540b('0x1786'),'fields':_0x37540b('0xf39'),'sort':_0x37540b('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x3f2cae(_0x35da81,_0x262263){var _0x2f4285=_0x4d6f9b;return _0x262263[_0x2f4285('0x179e')](_0x2f4285('0xd14'))?null:_0x35da81[_0x2f4285('0xcd6')](_0x2f4285('0x455'),{'fields':_0x2f4285('0x1b71'),'id':_0x262263[_0x2f4285('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x49a2ab(_0xe1044c,_0x5df6a2){var _0x6a50d0=_0x4d6f9b;return _0x5df6a2[_0x6a50d0('0x179e')](_0x6a50d0('0xd14'))?null:_0xe1044c['resolve'](_0x6a50d0('0x264e'),{'fields':_0x6a50d0('0x12d6'),'userProfileId':_0x5df6a2['getCurrentUser']()[_0x6a50d0('0x1d04')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':'voice'})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x16ca'),{'url':_0x4d6f9b('0xb1d'),'params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x453539,'controller':'VoicemailController\x20as\x20vm'}},'resolve':{'voicemail':[_0x4d6f9b('0x292'),_0x4d6f9b('0x34'),function _0x557bb9(_0x50be6c,_0x2cf205){var _0x272f24=_0x4d6f9b;return _0x50be6c['resolve'](_0x272f24('0x8ee'),{'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','id':_0x2cf205['id']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x2317f4(_0x10cd1c,_0x42fe68){var _0x183f46=_0x4d6f9b;return _0x10cd1c[_0x183f46('0xcd6')](_0x183f46('0x264e'),{'fields':_0x183f46('0x12d6'),'userProfileId':_0x42fe68[_0x183f46('0x1ef8')]()[_0x183f46('0x1d04')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x1950'),{'url':_0x4d6f9b('0xc2'),'views':{'content@app':{'templateUrl':_0x4dc962,'controller':_0x4d6f9b('0x2405')}},'resolve':{'musiconholds':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x5f12dc(_0x5b7ddc,_0x31fd58){var _0x257c20=_0x4d6f9b;return _0x31fd58[_0x257c20('0x179e')]('admin')?_0x5b7ddc[_0x257c20('0xcd6')](_0x257c20('0x1a7f'),{'fields':_0x257c20('0x23d4'),'defaultEntry':_0x257c20('0x1ad3'),'limit':0xa,'offset':0x0}):_0x5b7ddc[_0x257c20('0xcd6')](_0x257c20('0x197d'),{'id':_0x31fd58[_0x257c20('0x1ef8')]()[_0x257c20('0x1d04')],'section':_0x257c20('0x1eb6'),'fields':_0x257c20('0x23d4'),'defaultEntry':_0x257c20('0x1ad3'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x4d6f9b('0x2730'),function _0x1e8e9f(_0x3eedcd,_0x2d518d){var _0x436072=_0x4d6f9b;return _0x2d518d[_0x436072('0x179e')]('admin')?null:_0x3eedcd[_0x436072('0xcd6')](_0x436072('0x455'),{'fields':_0x436072('0x1b71'),'id':_0x2d518d['getCurrentUser']()[_0x436072('0x1d04')]});}],'userProfileSection':['apiResolver',_0x4d6f9b('0x2730'),function _0x2b4f7e(_0x2cc938,_0x29d8c5){var _0xa7fc45=_0x4d6f9b;return _0x29d8c5[_0xa7fc45('0x179e')]('admin')?null:_0x2cc938[_0xa7fc45('0xcd6')](_0xa7fc45('0x264e'),{'fields':_0xa7fc45('0x12d6'),'userProfileId':_0x29d8c5[_0xa7fc45('0x1ef8')]()[_0xa7fc45('0x1d04')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x4d6f9b('0xe74')})['state'](_0x4d6f9b('0x9c4'),{'url':_0x4d6f9b('0xb1d'),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x573082,'controller':_0x4d6f9b('0x22fc')}},'resolve':{'musiconhold':['apiResolver','$stateParams',function _0x196479(_0x1f3d6a,_0x1fd89a){var _0x55c15d=_0x4d6f9b;return _0x1f3d6a[_0x55c15d('0xcd6')](_0x55c15d('0x1a7f'),{'fields':_0x55c15d('0x23d4'),'id':_0x1fd89a['id']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x2e35fc(_0x13d6d4,_0x1c3dae){var _0x31bec7=_0x4d6f9b;return _0x13d6d4[_0x31bec7('0xcd6')](_0x31bec7('0x264e'),{'fields':_0x31bec7('0x12d6'),'userProfileId':_0x1c3dae[_0x31bec7('0x1ef8')]()[_0x31bec7('0x1d04')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')]('app.voice.voiceRecordings',{'url':_0x4d6f9b('0x193f'),'views':{'content@app':{'templateUrl':_0x49b9e7,'controller':_0x4d6f9b('0x24e9')}},'resolve':{'voiceRecordings':[_0x4d6f9b('0x292'),'Auth',_0x4d6f9b('0x1563'),function _0x26ba55(_0xda6a43,_0x690fc3,_0x553dd9){var _0x10336a=_0x4d6f9b;return _0x690fc3[_0x10336a('0x179e')](_0x10336a('0xd14'))?_0xda6a43[_0x10336a('0xcd6')](_0x10336a('0xbf0'),{'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed','sort':_0x10336a('0x7e8'),'createdAt':_0x553dd9[_0x10336a('0x2ca')](),'limit':0xa,'offset':0x0}):_0xda6a43[_0x10336a('0xcd6')](_0x10336a('0x197d'),{'id':_0x690fc3[_0x10336a('0x1ef8')]()['userProfileId'],'section':_0x10336a('0xcc6'),'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed','sort':_0x10336a('0x7e8'),'createdAt':_0x553dd9['firstLastDayMonth'](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),'Auth',function _0x2dc456(_0x1cda15,_0x16cb2f){var _0x1d738d=_0x4d6f9b;return _0x16cb2f[_0x1d738d('0x179e')]('admin')?null:_0x1cda15[_0x1d738d('0xcd6')](_0x1d738d('0x455'),{'fields':'id,name,crudPermissions','id':_0x16cb2f[_0x1d738d('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x4c8554(_0x36197c,_0x165f96){var _0x24680a=_0x4d6f9b;return _0x165f96[_0x24680a('0x179e')](_0x24680a('0xd14'))?null:_0x36197c[_0x24680a('0xcd6')](_0x24680a('0x264e'),{'fields':_0x24680a('0x12d6'),'userProfileId':_0x165f96[_0x24680a('0x1ef8')]()[_0x24680a('0x1d04')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x1e58'),{'url':_0x4d6f9b('0xb1d'),'params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x377ba8,'controller':'VoiceRecordingController\x20as\x20vm'}},'resolve':{'voiceRecording':[_0x4d6f9b('0x292'),_0x4d6f9b('0x34'),function _0x299174(_0x3da536,_0x52bdff){var _0x3d1d84=_0x4d6f9b;return _0x3da536[_0x3d1d84('0xcd6')]('voiceRecording@get',{'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed','id':_0x52bdff['id']});}],'userProfileSection':['apiResolver',_0x4d6f9b('0x2730'),function _0x36b79b(_0x2e4b7d,_0x5ebee7){var _0x41e37c=_0x4d6f9b;return _0x2e4b7d['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5ebee7[_0x41e37c('0x1ef8')]()['userProfileId'],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':'voice'})[_0x4d6f9b('0x1d72')]('app.voice.chanSpies',{'url':_0x4d6f9b('0x22fd'),'views':{'content@app':{'templateUrl':_0x295fda,'controller':_0x4d6f9b('0xcf4')}},'resolve':{'chanSpies':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x37b316(_0x2efb4e,_0x432d74){var _0x3c80d6=_0x4d6f9b;return _0x432d74[_0x3c80d6('0x179e')]('admin')?_0x2efb4e['resolve']('voiceChanSpy@get',{'fields':_0x3c80d6('0x7f9'),'sort':_0x3c80d6('0x7e8'),'limit':0xa,'offset':0x0}):_0x2efb4e['resolve'](_0x3c80d6('0x197d'),{'id':_0x432d74[_0x3c80d6('0x1ef8')]()[_0x3c80d6('0x1d04')],'section':_0x3c80d6('0x1f1f'),'fields':_0x3c80d6('0x7f9'),'sort':_0x3c80d6('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x2729f7(_0x3d4a2e,_0x4826fb){var _0x3d751b=_0x4d6f9b;return _0x4826fb[_0x3d751b('0x179e')](_0x3d751b('0xd14'))?null:_0x3d4a2e[_0x3d751b('0xcd6')](_0x3d751b('0x455'),{'fields':'id,name,crudPermissions','id':_0x4826fb[_0x3d751b('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x55965d(_0x51d4e4,_0x2dd7bf){var _0x1bd665=_0x4d6f9b;return _0x2dd7bf[_0x1bd665('0x179e')]('admin')?null:_0x51d4e4[_0x1bd665('0xcd6')]('userProfileSection@get',{'fields':_0x1bd665('0x12d6'),'userProfileId':_0x2dd7bf[_0x1bd665('0x1ef8')]()[_0x1bd665('0x1d04')],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':_0x4d6f9b('0xe74')})[_0x4d6f9b('0x1d72')](_0x4d6f9b('0x1b97'),{'url':'/voicePrefixes','views':{'content@app':{'templateUrl':_0x121164,'controller':'VoicePrefixesController\x20as\x20vm'}},'resolve':{'voicePrefixes':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x60f1e7(_0x95bb29,_0x115103){var _0x1ebc77=_0x4d6f9b;return _0x115103[_0x1ebc77('0x179e')](_0x1ebc77('0xd14'))?_0x95bb29[_0x1ebc77('0xcd6')](_0x1ebc77('0x11f2'),{'fields':'createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','limit':0xa,'offset':0x0}):_0x95bb29[_0x1ebc77('0xcd6')](_0x1ebc77('0x197d'),{'id':_0x115103[_0x1ebc77('0x1ef8')]()[_0x1ebc77('0x1d04')],'section':_0x1ebc77('0x499'),'fields':_0x1ebc77('0x1568'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x467a9c(_0x36482c,_0x19d631){var _0x535b1b=_0x4d6f9b;return _0x19d631[_0x535b1b('0x179e')](_0x535b1b('0xd14'))?null:_0x36482c[_0x535b1b('0xcd6')](_0x535b1b('0x455'),{'fields':_0x535b1b('0x1b71'),'id':_0x19d631[_0x535b1b('0x1ef8')]()[_0x535b1b('0x1d04')]});}],'userProfileSection':[_0x4d6f9b('0x292'),_0x4d6f9b('0x2730'),function _0x1b9def(_0x1666aa,_0x4ffba9){var _0xb423a9=_0x4d6f9b;return _0x4ffba9[_0xb423a9('0x179e')](_0xb423a9('0xd14'))?null:_0x1666aa[_0xb423a9('0xcd6')](_0xb423a9('0x264e'),{'fields':_0xb423a9('0x12d6'),'userProfileId':_0x4ffba9[_0xb423a9('0x1ef8')]()[_0xb423a9('0x1d04')],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':_0x4d6f9b('0xe74')}),_0x44d736[_0x4d6f9b('0xfe3')]('app/main/apps/voice');}angular[_0xb635d2('0x153f')]('app.voice',[_0xb635d2('0x569'),'ngPassword','md.data.table',_0xb635d2('0x206b'),_0xb635d2('0xd8b'),'ckeditor',_0xb635d2('0x1951'),_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),'mdPickers',_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),'angularMaterialFormBuilder','material.components.expansionPanels',_0xb635d2('0xe93'),_0xb635d2('0x16a1'),_0xb635d2('0x23d8')])[_0xb635d2('0x1990')](_0x561f14)[_0xb635d2('0x1a79')](_0xb635d2('0x2333'),_0x5cf7dd)[_0xb635d2('0x1a79')](_0xb635d2('0xeb8'),_0x2053cf)[_0xb635d2('0x1a79')](_0xb635d2('0xe95'),_0x52bc65)['controller'](_0xb635d2('0xc2a'),_0x123fcc)[_0xb635d2('0x1a79')]('CreateOrEditInboundRouteDialogController',_0x2c62c4)[_0xb635d2('0x1a79')](_0xb635d2('0x24f0'),_0x44aa57)['controller'](_0xb635d2('0x21ce'),_0x2be470)[_0xb635d2('0x1a79')]('EditInboundAppcustomDialogController',_0x51b12b)[_0xb635d2('0x1a79')](_0xb635d2('0x935'),_0x46410a)[_0xb635d2('0x1a79')](_0xb635d2('0x1f07'),_0x1f140a)[_0xb635d2('0x1a79')](_0xb635d2('0xc4d'),_0x6d97ac)[_0xb635d2('0x1a79')](_0xb635d2('0x1971'),_0x25b560)[_0xb635d2('0x1a79')](_0xb635d2('0x2195'),_0x4b890e)['controller']('EditInboundAppintervalDialogController',_0x1d330b)[_0xb635d2('0x1a79')](_0xb635d2('0x40'),_0x3900f7)[_0xb635d2('0x1a79')](_0xb635d2('0x2527'),_0x3914ba)[_0xb635d2('0x1a79')](_0xb635d2('0x1c28'),_0x454e9e)['controller'](_0xb635d2('0x1969'),_0x1a0f0c)['controller'](_0xb635d2('0xe5b'),_0x5635f2)[_0xb635d2('0x1a79')](_0xb635d2('0x1f33'),_0x5931c9)[_0xb635d2('0x1a79')](_0xb635d2('0xbfe'),_0x198bfb)[_0xb635d2('0x1a79')](_0xb635d2('0x8a8'),_0x448c25)[_0xb635d2('0x1a79')]('InternalRouteActionsController',_0x508dc3)[_0xb635d2('0x1a79')]('EditInternalAppagiDialogController',_0x1ab48f)['controller'](_0xb635d2('0x9c9'),_0x3b736e)['controller'](_0xb635d2('0x55e'),_0x402ae5)[_0xb635d2('0x1a79')](_0xb635d2('0xd74'),_0x8ca6c5)[_0xb635d2('0x1a79')](_0xb635d2('0x1f5f'),_0x17191e)[_0xb635d2('0x1a79')]('EditInternalApphangupDialogController',_0x20fa9e)['controller'](_0xb635d2('0x11c1'),_0x4a4a9f)[_0xb635d2('0x1a79')](_0xb635d2('0x1650'),_0x4a0bb4)[_0xb635d2('0x1a79')]('EditInternalAppplaybackDialogController',_0x2be522)[_0xb635d2('0x1a79')]('EditInternalAppqueueDialogController',_0xeb0b44)[_0xb635d2('0x1a79')](_0xb635d2('0x1dd'),_0x1072c6)['controller'](_0xb635d2('0x11e0'),_0x152d2d)['controller'](_0xb635d2('0x1706'),_0x1764d7)['controller'](_0xb635d2('0x1495'),_0x545580)['controller'](_0xb635d2('0xad5'),_0x276264)['controller'](_0xb635d2('0x641'),_0x5e71ae)['controller']('MusicOnHoldMohSoundsController',_0x4af88a)[_0xb635d2('0x1a79')]('CreateOrEditMohSoundDialogController',_0x52a274)[_0xb635d2('0x1a79')](_0xb635d2('0x1f49'),_0x921177)['controller'](_0xb635d2('0xc73'),_0x40b1d8),angular[_0xb635d2('0x153f')](_0xb635d2('0x2138'))['controller'](_0xb635d2('0x3af'),_0x3a593b)['controller'](_0xb635d2('0x221f'),_0x118177)[_0xb635d2('0x1a79')](_0xb635d2('0x232e'),_0x1ccc5c)[_0xb635d2('0x1a79')]('EditoutboundAppintervalDialogController',_0x3a4c68)['controller'](_0xb635d2('0x25a0'),_0x1bf62a)[_0xb635d2('0x1a79')](_0xb635d2('0x7a3'),_0x4abe6c)['controller'](_0xb635d2('0x1a71'),_0x162081)[_0xb635d2('0x1a79')](_0xb635d2('0x1d9c'),_0x4100dc)[_0xb635d2('0x1a79')](_0xb635d2('0x88'),_0x37600e)[_0xb635d2('0x1a79')]('VoicemailController',_0x3aef3c)[_0xb635d2('0x1a79')]('VoicemailsController',_0x4e5973)[_0xb635d2('0x1a79')](_0xb635d2('0x15c6'),_0x2813aa)['controller'](_0xb635d2('0x201c'),_0x563625)[_0xb635d2('0x1a79')](_0xb635d2('0x2133'),_0x3f483a)[_0xb635d2('0x1a79')]('CreateOrEditVoiceQueueDialogController',_0x36d645)[_0xb635d2('0x1a79')](_0xb635d2('0x933'),_0x3ec088)[_0xb635d2('0x1a79')]('VoiceQueueteamaddController',_0x26ea9e)[_0xb635d2('0x1a79')](_0xb635d2('0xa08'),_0x41a3b4)[_0xb635d2('0x1a79')](_0xb635d2('0x1edd'),_0x3e488b)['controller'](_0xb635d2('0x12ec'),_0x435605)['controller']('VoiceRecordingSentimentStatisticsController',_0x2c74ea)['controller'](_0xb635d2('0x1fb4'),_0x4f60b3)[_0xb635d2('0x1a79')](_0xb635d2('0x248d'),_0x2b0d96);const _0x3565cd=_0x59426a['p']+'src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html/chatQueues-[chunkhash].html',_0x28084a=_0x59426a['p']+_0xb635d2('0x1ca1'),_0xde9c6a=_0x59426a['p']+_0xb635d2('0x1086'),_0x2eda21=_0x59426a['p']+_0xb635d2('0x225a'),_0x116786=_0x59426a['p']+_0xb635d2('0x13a5'),_0x5da868=_0x59426a['p']+_0xb635d2('0x1aef'),_0x4e8f02=_0x59426a['p']+'src/js/modules/main/apps/chat/views/realtime/queues/view.html/view-[chunkhash].html';_0x866a6e[_0xb635d2('0xb0c')]=['$scope','$q',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xfe0'),_0xb635d2('0x145e'),'agents',_0xb635d2('0x7'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),_0xb635d2('0x20d'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x1c1a')];function _0x866a6e(_0x52a97c,_0x2d029b,_0x54a2c6,_0x810896,_0xf131f1,_0x2877b3,_0x93ca6a,_0x3a2231,_0x1d856a,_0xc7f09,_0x182956,_0x301b3f,_0x29224c,_0x5bd010,_0x19b199,_0x5ea33b,_0x1bed55,_0x57e447){var _0x3c07bb=_0xb635d2,_0x2eee9e=this,_0x3d8736=[_0x3c07bb('0x8b3'),_0x3c07bb('0xb46'),'lastLoginAt',_0x3c07bb('0x823'),_0x3c07bb('0x103'),_0x3c07bb('0x823'),'internal',_0x3c07bb('0xe1f'),'chatPause',_0x3c07bb('0xf2a'),_0x3c07bb('0x2531'),'smsPause',_0x3c07bb('0x14fb'),_0x3c07bb('0x2299'),_0x3c07bb('0x1b8d'),_0x3c07bb('0x201b'),_0x3c07bb('0x195a'),_0x3c07bb('0xc97'),_0x3c07bb('0x1288'),_0x3c07bb('0x15f0'),_0x3c07bb('0x15ee'),'chatCurrentCapacity',_0x3c07bb('0x1d36'),_0x3c07bb('0x1d8a'),_0x3c07bb('0x1f27'),_0x3c07bb('0xa2a'),_0x3c07bb('0x1c17'),_0x3c07bb('0x21f1'),'openchannelStatus',_0x3c07bb('0x44e'),_0x3c07bb('0x1d59'),_0x3c07bb('0x1d57'),_0x3c07bb('0x1c30'),'voiceStatus','chatStatusTime',_0x3c07bb('0x1ca7'),_0x3c07bb('0x1426'),'smsStatusTime','whatsappStatusTime',_0x3c07bb('0xaa3'),_0x3c07bb('0x2469'),_0x3c07bb('0x26a8'),_0x3c07bb('0x149e'),'screenrecording',_0x3c07bb('0x1df6'),_0x3c07bb('0x12d')],_0x389446=[_0x3c07bb('0x1b15'),_0x3c07bb('0xf2a'),_0x3c07bb('0x2531'),_0x3c07bb('0x24f1'),'whatsappPause',_0x3c07bb('0x2299'),'voicePause','online'];_0x2eee9e[_0x3c07bb('0x15a5')]=_0x5ea33b['getCurrentUser'](),_0x2eee9e[_0x3c07bb('0x2254')]=['ringing',_0x3c07bb('0x788'),_0x3c07bb('0x1934'),_0x3c07bb('0x289d'),_0x3c07bb('0x3ef')],_0x2eee9e[_0x3c07bb('0x145e')]=_0x93ca6a||{'count':0x0,'rows':[]},_0x2eee9e['license']=_0x1bed55,_0x2eee9e[_0x3c07bb('0x154f')]=_0x5bd010,_0x2eee9e[_0x3c07bb('0xb59')]=_0x19b199&&_0x19b199[_0x3c07bb('0x148b')]==0x1?_0x19b199['rows'][0x0]:null,_0x2eee9e[_0x3c07bb('0xb3d')]=_0x5ea33b[_0x3c07bb('0xd31')](_0x2eee9e[_0x3c07bb('0xb59')]?_0x2eee9e['userProfileSection'][_0x3c07bb('0xb3d')]:null),_0x2eee9e[_0x3c07bb('0x29b')]=_0x3a2231?_0x32d445()[_0x3c07bb('0x226f')](_0x3a2231[_0x3c07bb('0x16a7')]?_0x3a2231[_0x3c07bb('0x16a7')]:[],'id'):{},_0x2eee9e[_0x3c07bb('0x7')]=_0x1d856a?_0x32d445()[_0x3c07bb('0x226f')](_0x1d856a[_0x3c07bb('0x16a7')]?_0x1d856a[_0x3c07bb('0x16a7')]:[],'id'):{},_0x2eee9e[_0x3c07bb('0xc68')]={},_0x2eee9e['load']=![],_0x2eee9e['order']=[],_0x2eee9e[_0x3c07bb('0x7ff')]={};for(var _0x41bbe8 in _0x2eee9e[_0x3c07bb('0x29b')]){typeof _0x2eee9e[_0x3c07bb('0x29b')][_0x41bbe8]!=='undefined'&&(_0x2eee9e[_0x3c07bb('0x29b')][_0x41bbe8][_0x3c07bb('0x15f9')]=!![]);}_0x2eee9e['query']={'limit':0xa,'page':0x1,'order':_0x3c07bb('0xe11'),'globalStatusFilter':'','pauseTypeFilter':''},_0x2eee9e[_0x3c07bb('0xe4e')]=_0x572827,_0x2eee9e[_0x3c07bb('0x16d4')]=_0xb2b79b,_0x2eee9e[_0x3c07bb('0x1c98')]=_0xf878d4,_0x2eee9e[_0x3c07bb('0x560')]=_0x268b41,_0x2eee9e[_0x3c07bb('0x80b')]=_0x54e9db,_0x2eee9e[_0x3c07bb('0xca0')]=_0x246c8e,_0x2eee9e[_0x3c07bb('0xe1d')]=_0x2e788a,_0x2eee9e[_0x3c07bb('0x361')]=_0x544e80,_0x2eee9e[_0x3c07bb('0x1803')]=_0x502423,_0x2eee9e[_0x3c07bb('0x2052')]=_0x475515,_0x2eee9e['onSave']=_0x152e00,_0x2eee9e[_0x3c07bb('0x18ee')]=_0x1e4f00,_0x2eee9e['onInit']=_0x2c65e8,_0x2eee9e[_0x3c07bb('0x266f')]=_0x384ac2,_0x2eee9e[_0x3c07bb('0x1831')]=_0x366ab2,_0x2eee9e[_0x3c07bb('0x166f')]=_0x9138e,_0x182956['on'](_0x3c07bb('0xb9f'),_0x2eee9e[_0x3c07bb('0x284a')]),_0x182956['on'](_0x3c07bb('0x1ce3'),_0x2eee9e[_0x3c07bb('0x18ee')]),_0x182956['on'](_0x3c07bb('0x1002'),_0x2eee9e[_0x3c07bb('0x266f')]),_0x182956['on']('user:agentcomplete',_0x2eee9e['onComplete']),_0x2c65e8();var _0x19d269=_0x57e447(function(){var _0x2b5c6c=_0x3c07bb;_0x2eee9e[_0x2b5c6c('0xcfe')]&&(_0x2eee9e[_0x2b5c6c('0xcfe')]=![],_0x2c65e8());},0x3e7);function _0x2c65e8(){var _0x3c3cc4=_0x3c07bb;_0x2eee9e[_0x3c3cc4('0xcfe')]=![];var _0x1990d5=_0x2d029b[_0x3c3cc4('0x178')]();_0x2eee9e[_0x3c3cc4('0x9c8')]=_0x1990d5[_0x3c3cc4('0x9c8')],_0x2eee9e[_0x3c3cc4('0x16a4')]=[],_0x2eee9e[_0x3c3cc4('0x1b03')]=[],_0x32d445()['forIn'](_0x2eee9e[_0x3c3cc4('0x29b')],function(_0x4d3519,_0xe35dbe){var _0x45ded9=_0x3c3cc4;_0x2eee9e[_0x45ded9('0x7')][_0xe35dbe]&&_0x32d445()[_0x45ded9('0x1d8')](_0x4d3519,_0x32d445()['pick'](_0x32d445()[_0x45ded9('0x23e3')](_0x2eee9e[_0x45ded9('0x7')][_0xe35dbe],_0x389446),_0x3d8736)),_0x2e788a(_0x4d3519),_0x4d3519[_0x45ded9('0xb46')]?(_0x2eee9e[_0x45ded9('0x16a4')]['push'](_0x4d3519),_0x2eee9e[_0x45ded9('0x7ff')][_0x4d3519['internal']]=_0xe35dbe):_0x4d3519[_0x45ded9('0x16ed')]=_0x32d445()[_0x45ded9('0xcd3')](_0x4ddcaa()()['format']('x'));});_0x2eee9e[_0x3c3cc4('0xa16')][_0x3c3cc4('0xb02')]&&_0x32d445()[_0x3c3cc4('0xa8b')](_0x2eee9e['filteredAgents'],function(_0x489513){var _0x34efb7=_0x3c3cc4;return _0x489513[_0x34efb7('0x25b1')]!==_0x2eee9e[_0x34efb7('0xa16')]['globalStatusFilter'];});_0x2eee9e[_0x3c3cc4('0xa16')][_0x3c3cc4('0x24fc')]&&_0x32d445()[_0x3c3cc4('0xa8b')](_0x2eee9e[_0x3c3cc4('0x16a4')],function(_0x8cd1ba){var _0x4c9ef4=_0x3c3cc4;return _0x8cd1ba['pauseType']!==_0x2eee9e['query'][_0x4c9ef4('0x24fc')];});_0x2eee9e['query'][_0x3c3cc4('0x2891')]&&_0x32d445()['remove'](_0x2eee9e['filteredAgents'],function(_0xf577b9){var _0x3d6425=_0x3c3cc4;return _0xf577b9[_0x3d6425('0xe11')]['toLowerCase']()['indexOf'](_0x2eee9e[_0x3d6425('0xa16')][_0x3d6425('0x2891')][_0x3d6425('0x20dd')]())<0x0;});_0x2eee9e[_0x3c3cc4('0x16a4')]=_0x42f8e5(_0x2eee9e[_0x3c3cc4('0x16a4')]);var _0x12c110=(_0x2eee9e['query']['page']-0x1)*_0x2eee9e[_0x3c3cc4('0xa16')][_0x3c3cc4('0x1b6d')];_0x2eee9e[_0x3c3cc4('0xc68')]=_0x32d445()[_0x3c3cc4('0x4a0')](_0x2eee9e[_0x3c3cc4('0x16a4')],_0x12c110)[_0x3c3cc4('0xa19')](0x0,_0x2eee9e[_0x3c3cc4('0xa16')][_0x3c3cc4('0x1b6d')]);for(var _0x362739=0x0;_0x362739<_0x2eee9e[_0x3c3cc4('0xc68')][_0x3c3cc4('0x25ae')];_0x362739+=0x1){_0x2eee9e[_0x3c3cc4('0x1b03')]['push'](_0x2eee9e['paginatedAgents'][_0x362739]['id']);}_0x1990d5['resolve'](),_0x2eee9e[_0x3c3cc4('0xcfe')]=!![];}function _0x152e00(_0x5b4828){var _0x1dfcf8=_0x3c07bb;_0x2eee9e[_0x1dfcf8('0x29b')][_0x5b4828['id']]&&(_0x32d445()[_0x1dfcf8('0x1d8')](_0x2eee9e[_0x1dfcf8('0x29b')][_0x5b4828['id']],_0x32d445()[_0x1dfcf8('0xed5')](_0x32d445()[_0x1dfcf8('0x23e3')](_0x5b4828,_0x389446),_0x3d8736)),_0x32d445()[_0x1dfcf8('0x1d8')](_0x2eee9e[_0x1dfcf8('0x7')][_0x5b4828['id']],_0x32d445()['pick'](_0x32d445()[_0x1dfcf8('0x23e3')](_0x5b4828,_0x389446),_0x3d8736)),_0x2e788a(_0x2eee9e[_0x1dfcf8('0x29b')][_0x5b4828['id']]));}function _0x1e4f00(_0x14a5d5){var _0x4be2b0=_0x3c07bb;_0x2eee9e[_0x4be2b0('0x29b')][_0x14a5d5['id']]&&(_0x32d445()[_0x4be2b0('0x1d8')](_0x2eee9e[_0x4be2b0('0x29b')][_0x14a5d5['id']],_0x32d445()[_0x4be2b0('0xed5')](_0x14a5d5,_0x3d8736)),_0x32d445()[_0x4be2b0('0x1d8')](_0x2eee9e[_0x4be2b0('0x7')][_0x14a5d5['id']],_0x32d445()[_0x4be2b0('0xed5')](_0x14a5d5,_0x3d8736)),_0x14a5d5['lastPauseAt']&&(_0x2eee9e[_0x4be2b0('0x29b')][_0x14a5d5['id']][_0x4be2b0('0x16ed')]=_0x14a5d5[_0x4be2b0('0x823')],_0x2eee9e[_0x4be2b0('0x7')][_0x14a5d5['id']][_0x4be2b0('0x16ed')]=_0x14a5d5[_0x4be2b0('0x823')]),_0x2e788a(_0x2eee9e[_0x4be2b0('0x29b')][_0x14a5d5['id']]));}function _0x384ac2(_0xb223f7){var _0x1eb7d5=_0x3c07bb;_0x2eee9e['agents'][_0x2eee9e['agentInternal'][_0xb223f7['destaccountcode']]]&&(_0x32d445()['merge'](_0x2eee9e['agents'][_0x2eee9e['agentInternal'][_0xb223f7[_0x1eb7d5('0x1c29')]]],_0x32d445()[_0x1eb7d5('0xed5')](_0xb223f7,[_0x1eb7d5('0x26a8'),_0x1eb7d5('0x149e')])),_0x32d445()[_0x1eb7d5('0x1d8')](_0x2eee9e[_0x1eb7d5('0x7')][_0x2eee9e[_0x1eb7d5('0x7ff')][_0xb223f7[_0x1eb7d5('0x1c29')]]],_0x32d445()[_0x1eb7d5('0xed5')](_0xb223f7,[_0x1eb7d5('0x26a8'),_0x1eb7d5('0x149e')])));}function _0x366ab2(_0x3d06cd){var _0x14d374=_0x3c07bb;_0x2eee9e[_0x14d374('0x29b')][_0x2eee9e[_0x14d374('0x7ff')][_0x3d06cd[_0x14d374('0x1c29')]]]&&(_0x2eee9e['agents'][_0x2eee9e['agentInternal'][_0x3d06cd[_0x14d374('0x1c29')]]]=_0x32d445()[_0x14d374('0x23e3')](_0x2eee9e[_0x14d374('0x29b')][_0x2eee9e[_0x14d374('0x7ff')][_0x3d06cd[_0x14d374('0x1c29')]]],[_0x14d374('0x26a8'),_0x14d374('0x149e')]),_0x2eee9e[_0x14d374('0x7')][_0x2eee9e[_0x14d374('0x7ff')][_0x3d06cd[_0x14d374('0x1c29')]]]=_0x32d445()[_0x14d374('0x23e3')](_0x2eee9e['rpcAgents'][_0x2eee9e[_0x14d374('0x7ff')][_0x3d06cd[_0x14d374('0x1c29')]]],[_0x14d374('0x26a8'),_0x14d374('0x149e')]));}function _0x572827(_0x3c53ed){var _0x16ac97=_0x3c07bb;return _0xc7f09[_0x16ac97('0x10c6')][_0x16ac97('0xe4e')]({'id':_0x3c53ed['id'],'device':_0x16ac97('0x24e1'),'agent_id':_0x3c53ed['id'],'agent_name':_0x3c53ed[_0x16ac97('0x2623')]})['$promise']['then'](function(){var _0xee7903=_0x16ac97;_0x301b3f['success']({'title':_0xee7903('0x25b9'),'msg':_0x3c53ed[_0xee7903('0xe11')]+_0xee7903('0x1a35')}),_0x2eee9e['agents'][_0x3c53ed['id']]&&(_0x2eee9e[_0xee7903('0x29b')][_0x3c53ed['id']][_0xee7903('0xb46')]=![]),_0x2eee9e[_0xee7903('0x7')][_0x3c53ed['id']]&&(_0x2eee9e['rpcAgents'][_0x3c53ed['id']]['online']=![]),_0x2c65e8();})[_0x16ac97('0x223b')](function(_0x49ad7e){var _0x18dcbb=_0x16ac97;_0x301b3f['error']({'title':_0x49ad7e['status']?_0x18dcbb('0x27f2')+_0x49ad7e[_0x18dcbb('0x2833')]+'\x20-\x20'+_0x49ad7e['statusText']:'api.staff.save','msg':_0x49ad7e['data']?JSON[_0x18dcbb('0x3ad')](_0x49ad7e[_0x18dcbb('0x11d0')][_0x18dcbb('0x27e8')]):_0x49ad7e[_0x18dcbb('0x94f')]()});});}function _0xf878d4(_0x1a9cf1,_0x2cd356){var _0x34c4f4=_0x3c07bb;return _0xc7f09[_0x34c4f4('0x10c6')][_0x34c4f4('0x1c98')]({'id':_0x1a9cf1['id'],'type':_0x2cd356})['$promise'][_0x34c4f4('0xe19')](function(_0x28d61e){var _0x2e5101=_0x34c4f4;_0x2eee9e[_0x2e5101('0x29b')][_0x1a9cf1['id']]&&_0x32d445()[_0x2e5101('0x1d8')](_0x2eee9e[_0x2e5101('0x29b')][_0x1a9cf1['id']],_0x32d445()[_0x2e5101('0xed5')](_0x28d61e,_0x3d8736)),_0x2eee9e[_0x2e5101('0x7')][_0x1a9cf1['id']]&&_0x32d445()[_0x2e5101('0x1d8')](_0x2eee9e[_0x2e5101('0x7')][_0x1a9cf1['id']],_0x32d445()['pick'](_0x28d61e,_0x3d8736)),_0x2e788a(_0x2eee9e['agents'][_0x1a9cf1['id']]);})[_0x34c4f4('0x223b')](function(_0xab073a){var _0x25e6f3=_0x34c4f4;_0x301b3f[_0x25e6f3('0x8c8')]({'title':_0xab073a[_0x25e6f3('0x2833')]?_0x25e6f3('0x27f2')+_0xab073a[_0x25e6f3('0x2833')]+_0x25e6f3('0x1b7c')+_0xab073a['statusText']:_0x25e6f3('0x1c95'),'msg':_0xab073a['data']?JSON[_0x25e6f3('0x3ad')](_0xab073a[_0x25e6f3('0x11d0')]['message']):_0xab073a[_0x25e6f3('0x94f')]()});});}function _0x268b41(_0x1eb960){var _0x2c42c8=_0x3c07bb;return _0xc7f09[_0x2c42c8('0x10c6')][_0x2c42c8('0x2471')]({'id':_0x1eb960['id']})['$promise']['then'](function(_0x152428){var _0x130ab4=_0x2c42c8;_0x2eee9e[_0x130ab4('0x29b')][_0x1eb960['id']]&&_0x32d445()[_0x130ab4('0x1d8')](_0x2eee9e['agents'][_0x1eb960['id']],_0x32d445()['pick'](_0x152428,_0x3d8736)),_0x2eee9e[_0x130ab4('0x7')][_0x1eb960['id']]&&_0x32d445()[_0x130ab4('0x1d8')](_0x2eee9e[_0x130ab4('0x7')][_0x1eb960['id']],_0x32d445()[_0x130ab4('0xed5')](_0x152428,_0x3d8736)),_0x2e788a(_0x2eee9e[_0x130ab4('0x29b')][_0x1eb960['id']]);})['catch'](function(_0x47020e){var _0x1799ee=_0x2c42c8;_0x301b3f[_0x1799ee('0x8c8')]({'title':_0x47020e[_0x1799ee('0x2833')]?_0x1799ee('0x27f2')+_0x47020e[_0x1799ee('0x2833')]+_0x1799ee('0x1b7c')+_0x47020e[_0x1799ee('0x1fd7')]:_0x1799ee('0x1c95'),'msg':_0x47020e[_0x1799ee('0x11d0')]?JSON['stringify'](_0x47020e[_0x1799ee('0x11d0')][_0x1799ee('0x27e8')]):_0x47020e[_0x1799ee('0x94f')]()});});}function _0x54e9db(_0x3eb113){var _0x36bce4=_0x3c07bb;_0x810896[_0x36bce4('0x26b2')](_0x810896[_0x36bce4('0xbdc')]()[_0x36bce4('0x26d6')](!![])['title'](_0x36bce4('0x7c0'))['htmlContent'](_0x36bce4('0x1abb'))['ok']('Ok')[_0x36bce4('0x1345')](_0x3eb113));}function _0xb2b79b(_0x5554f1,_0x63c0e2){var _0x32a8ef=_0x3c07bb;_0x810896[_0x32a8ef('0x26b2')]({'controller':_0x32a8ef('0x28ab'),'controllerAs':'vm','templateUrl':_0x3bf6bc,'parent':angular[_0x32a8ef('0x24a1')](_0xf131f1[_0x32a8ef('0x19b2')]),'targetEvent':_0x63c0e2,'clickOutsideToClose':!![],'locals':{'agent':_0x5554f1,'agents':[],'channel':_0x32a8ef('0x17cc'),'direction':_0x32a8ef('0x1a7a'),'crudPermissions':_0x2eee9e[_0x32a8ef('0xb3d')]}});}function _0x544e80(_0x3d7d2e){var _0x52addb=_0x3c07bb;return _0x3d7d2e===_0x52addb('0x1c98')||_0x3d7d2e===_0x52addb('0x2f3');}function _0x502423(_0x704fd6){var _0x12812c=_0x3c07bb;return _0x704fd6===_0x12812c('0x1c98');}function _0x475515(_0x3e9629){return _0x3e9629==='*pause';}function _0x39a017(_0x3947af){var _0x3de505=_0x3c07bb;return _0x3947af===_0x3de505('0x751')||_0x3947af===_0x3de505('0x10df')||_0x3947af===_0x3de505('0x20a1')||_0x3947af==='ringing'||_0x32d445()[_0x3de505('0xe44')](_0x3947af);}function _0x246c8e(_0x2098f7,_0x31bd12){var _0x15d445=_0x3c07bb;if(_0x31bd12===_0x15d445('0xe74')){if(_0x2098f7[_0x31bd12+_0x15d445('0x20e')]!==_0x15d445('0x751'))return _0x2098f7[_0x31bd12+'Status'];if(_0x2098f7[_0x31bd12+_0x15d445('0x27b9')])return _0x2098f7[_0x31bd12+_0x15d445('0x20e')]=_0x15d445('0x1c98'),_0x15d445('0x1c98');return _0x15d445('0x751');}else{if(_0x2098f7[_0x31bd12+_0x15d445('0x27b9')])return _0x2098f7[_0x31bd12+_0x15d445('0x20e')]=_0x15d445('0x1c98'),_0x15d445('0x1c98');return _0x2098f7[_0x31bd12+_0x15d445('0x20e')];}}function _0x2e788a(_0x5c8567){var _0xdc3f87=_0x3c07bb,_0x5cf3ac=_0xdc3f87('0x10df');if(_0x32d445()[_0xdc3f87('0x1ff')]([_0x246c8e(_0x5c8567,_0xdc3f87('0xe74')),_0x246c8e(_0x5c8567,_0xdc3f87('0x17cc')),_0x246c8e(_0x5c8567,'mail'),_0x246c8e(_0x5c8567,'openchannel'),_0x246c8e(_0x5c8567,'sms'),_0x246c8e(_0x5c8567,'whatsapp'),_0x246c8e(_0x5c8567,_0xdc3f87('0x625'))],_0x544e80))_0x5cf3ac='pause';else{if(_0x32d445()[_0xdc3f87('0x201a')]([_0x246c8e(_0x5c8567,_0xdc3f87('0xe74')),_0x246c8e(_0x5c8567,'chat'),_0x246c8e(_0x5c8567,'mail'),_0x246c8e(_0x5c8567,_0xdc3f87('0xaf2')),_0x246c8e(_0x5c8567,_0xdc3f87('0x2801')),_0x246c8e(_0x5c8567,_0xdc3f87('0x4b7')),_0x246c8e(_0x5c8567,'fax')],_0x544e80))_0x5cf3ac=_0xdc3f87('0x2f3');else _0x32d445()['every']([_0x246c8e(_0x5c8567,_0xdc3f87('0xe74')),_0x246c8e(_0x5c8567,_0xdc3f87('0x17cc')),_0x246c8e(_0x5c8567,_0xdc3f87('0x26bf')),_0x246c8e(_0x5c8567,_0xdc3f87('0xaf2')),_0x246c8e(_0x5c8567,'sms'),_0x246c8e(_0x5c8567,_0xdc3f87('0x4b7')),_0x246c8e(_0x5c8567,'fax')],_0x39a017)?_0x5cf3ac=_0xdc3f87('0x751'):_0x5cf3ac='busy';}_0x5c8567['globalStatus']!==_0x5cf3ac&&(_0x5c8567[_0xdc3f87('0x25b1')]=_0x5cf3ac,_0x5c8567[_0xdc3f87('0x15f9')]?(_0x5c8567[_0xdc3f87('0x15f9')]=![],_0x5c8567[_0xdc3f87('0x16ed')]=_0x544e80(_0x5cf3ac)?_0x32d445()[_0xdc3f87('0xcd3')](_0x4ddcaa()(_0x5c8567[_0xdc3f87('0x823')])[_0xdc3f87('0x5e5')]('x')):_0x32d445()[_0xdc3f87('0x1735')]([_0x5c8567[_0xdc3f87('0x2469')],_0x5c8567[_0xdc3f87('0x583')],_0x5c8567[_0xdc3f87('0x1426')],_0x5c8567['smsStatusTime'],_0x5c8567[_0xdc3f87('0xda4')],_0x5c8567['openchannelStatusTime'],_0x5c8567['faxStatusTime']])):_0x5c8567[_0xdc3f87('0x16ed')]=_0x32d445()[_0xdc3f87('0xcd3')](_0x4ddcaa()()['format']('x')));}function _0x42f8e5(_0x562161){var _0x5da6e5=_0x3c07bb,_0x545c55=_0x32d445()[_0x5da6e5('0x20b6')](_0x2eee9e[_0x5da6e5('0xa16')][_0x5da6e5('0x1b03')],'-')?_0x5da6e5('0x1ee9'):'asc';return _0x32d445()[_0x5da6e5('0x10e')](_0x562161,[_0x2eee9e[_0x5da6e5('0xa16')][_0x5da6e5('0x1b03')][_0x5da6e5('0x1b42')]('-','')],[_0x545c55]);}function _0x55fbe6(){var _0x22b44a=_0x3c07bb;_0x19d269&&(_0x57e447[_0x22b44a('0x2c1')](_0x19d269),_0x19d269=null);}function _0x9138e(_0x47a8cf,_0x4394ab){var _0x5b8374=_0x3c07bb;return _0xc7f09['user'][_0x5b8374('0xa70')]({'id':_0x47a8cf['id']},{'screenrecording':_0x4394ab})[_0x5b8374('0xe59')][_0x5b8374('0x223b')](function(_0x2fa6b7){var _0x4f1e09=_0x5b8374;_0x301b3f['error']({'title':_0x2fa6b7[_0x4f1e09('0x2833')]?'API:'+_0x2fa6b7[_0x4f1e09('0x2833')]+_0x4f1e09('0x1b7c')+_0x2fa6b7[_0x4f1e09('0x1fd7')]:'api.user.update','msg':_0x2fa6b7[_0x4f1e09('0x11d0')]?JSON[_0x4f1e09('0x3ad')](_0x2fa6b7[_0x4f1e09('0x11d0')][_0x4f1e09('0x27e8')]):_0x2fa6b7[_0x4f1e09('0x94f')]()});});}_0x52a97c['$on'](_0x3c07bb('0x5cd'),function(){var _0x28e309=_0x3c07bb;_0x182956[_0x28e309('0x2121')](_0x28e309('0xb9f')),_0x182956[_0x28e309('0x2121')]('user:update'),_0x182956[_0x28e309('0x2121')]('user:agentconnect'),_0x182956[_0x28e309('0x2121')](_0x28e309('0xa8e')),_0x55fbe6();});}const _0x344db6=_0x866a6e,_0x26fa2a=_0x59426a['p']+_0xb635d2('0x1ced'),_0x10a3e1=_0x59426a['p']+'src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0x351b60[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x1728'),_0xb635d2('0x1c1a'),_0xb635d2('0x671'),'rpcQueues',_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x351b60(_0x44d033,_0x427a0d,_0x85a41a,_0x2d57e7,_0x4ccc50,_0x6cb5c1,_0x4f9e4c,_0x20f0f6,_0x215841,_0x2a1143,_0x56a2eb,_0x31cf1a,_0x199aac,_0xa0d3b){var _0x2bfdf7=_0xb635d2,_0x482940=this,_0x4e4c37=['loggedIn',_0x2bfdf7('0x2398'),_0x2bfdf7('0x183a'),_0x2bfdf7('0xe75'),_0x2bfdf7('0x1700'),_0x2bfdf7('0x194a'),_0x2bfdf7('0x27e8'),_0x2bfdf7('0x8c9'),_0x2bfdf7('0x1a23'),_0x2bfdf7('0x1317'),_0x2bfdf7('0x1cf8')];_0x482940['currentUser']=_0xa0d3b[_0x2bfdf7('0x1ef8')](),_0x482940[_0x2bfdf7('0x148b')]=_0x4f9e4c[_0x2bfdf7('0x148b')]?_0x4f9e4c[_0x2bfdf7('0x148b')]:0x0,_0x482940[_0x2bfdf7('0x671')]=_0x4f9e4c?_0x32d445()[_0x2bfdf7('0x226f')](_0x4f9e4c[_0x2bfdf7('0x16a7')]?_0x4f9e4c[_0x2bfdf7('0x16a7')]:[],'id'):{},_0x482940['rpcQueues']=_0x20f0f6?_0x32d445()[_0x2bfdf7('0x226f')](_0x20f0f6[_0x2bfdf7('0x16a7')]?_0x20f0f6[_0x2bfdf7('0x16a7')]:[],'id'):{},_0x482940[_0x2bfdf7('0x154f')]=_0x31cf1a,_0x482940[_0x2bfdf7('0xb59')]=_0x199aac&&_0x199aac['count']==0x1?_0x199aac['rows'][0x0]:null,_0x482940[_0x2bfdf7('0xb3d')]=_0xa0d3b[_0x2bfdf7('0xd31')](_0x482940[_0x2bfdf7('0xb59')]?_0x482940[_0x2bfdf7('0xb59')][_0x2bfdf7('0xb3d')]:null);_0xa0d3b['hasRole'](_0x2bfdf7('0xd14'))?_0x482940[_0x2bfdf7('0xa16')]={'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1}:_0x482940['query']={'id':_0x482940[_0x2bfdf7('0x15a5')]['id'],'channel':'chat','type':_0x2bfdf7('0x1a7a'),'sort':_0x2bfdf7('0x7e8'),'limit':0xa,'page':0x1};_0x482940[_0x2bfdf7('0x425')]=_0x2aa4d4,_0x482940[_0x2bfdf7('0x23cf')]=_0x134c11,_0x482940[_0x2bfdf7('0x1983')]=_0x3c3fad,_0x482940[_0x2bfdf7('0x45a')]=_0x409022,_0x482940[_0x2bfdf7('0xabf')]=_0x577f51,_0x482940['onSave']=_0x3304c0,_0x482940[_0x2bfdf7('0xc76')]=_0x357d01,_0x482940[_0x2bfdf7('0x895')]=_0x8deb20,_0x482940[_0x2bfdf7('0x69e')]=_0x41ec65,_0x482940[_0x2bfdf7('0x1707')]=_0x3527d0,_0x482940[_0x2bfdf7('0x1baf')]=_0x4daa88,_0x482940['$onInit']=_0x2e1670,_0x482940[_0x2bfdf7('0x1b03')]=[],_0x32d445()[_0x2bfdf7('0xd1e')](_0x482940[_0x2bfdf7('0x671')],function(_0x3838b1){var _0x53a050=_0x2bfdf7;_0x482940['order'][_0x53a050('0xb76')](_0x3838b1['id']);}),_0x2a1143['on']('chat_queue:save',_0x482940[_0x2bfdf7('0x284a')]),_0x2a1143['on']('userChatQueue:save',_0x482940[_0x2bfdf7('0xc76')]),_0x2a1143['on'](_0x2bfdf7('0x2822'),_0x482940[_0x2bfdf7('0x895')]),_0x2a1143['on'](_0x2bfdf7('0x1ce3'),_0x482940['onPause']),_0x2a1143['on'](_0x2bfdf7('0x1583'),_0x482940[_0x2bfdf7('0x1baf')]),_0x2a1143['on'](_0x2bfdf7('0x2161'),_0x482940[_0x2bfdf7('0x1707')]);function _0x2e1670(){var _0x27f6a1=_0x2bfdf7,_0x578a98=[];return _0x32d445()[_0x27f6a1('0xd1e')](_0x482940[_0x27f6a1('0x671')],function(_0x276fa0,_0x2fdfd1){var _0xd6b82b=_0x27f6a1;_0x276fa0[_0xd6b82b('0x1cf8')]=0x0,_0x276fa0[_0xd6b82b('0x120f')]=0x0,_0x482940[_0xd6b82b('0x671')][_0x2fdfd1][_0xd6b82b('0x29b')]={},_0x578a98[_0xd6b82b('0xb76')](_0x215841[_0xd6b82b('0xfce')]['getMembers']({'id':_0x2fdfd1})[_0xd6b82b('0xe59')]),_0x482940[_0xd6b82b('0x146c')][_0x2fdfd1]&&_0x32d445()[_0xd6b82b('0x1d8')](_0x276fa0,_0x32d445()[_0xd6b82b('0xed5')](_0x482940[_0xd6b82b('0x146c')][_0x2fdfd1],_0x4e4c37));}),_0x2d57e7[_0x27f6a1('0xf0e')](_0x578a98)[_0x27f6a1('0xe19')](function(_0x4cdb16){var _0x4a26be=_0x27f6a1;for(var _0x800d25=0x0;_0x800d25<_0x4cdb16[_0x4a26be('0x25ae')];_0x800d25+=0x1){for(var _0x180201=0x0;_0x180201<_0x4cdb16[_0x800d25][_0x4a26be('0x16a7')][_0x4a26be('0x25ae')];_0x180201++){_0x4cdb16[_0x800d25]['rows'][_0x180201][_0x4a26be('0x1cf8')]&&_0x482940[_0x4a26be('0x671')][_0x4cdb16[_0x800d25][_0x4a26be('0x16a7')][_0x180201][_0x4a26be('0x288c')]]['paused']++,_0x482940[_0x4a26be('0x671')][_0x4cdb16[_0x800d25][_0x4a26be('0x16a7')][_0x180201][_0x4a26be('0x288c')]][_0x4a26be('0x120f')]++,_0x482940[_0x4a26be('0x671')][_0x4cdb16[_0x800d25]['rows'][_0x180201][_0x4a26be('0x288c')]][_0x4a26be('0x29b')][_0x4cdb16[_0x800d25][_0x4a26be('0x16a7')][_0x180201]['UserId']]=_0x4cdb16[_0x800d25][_0x4a26be('0x16a7')][_0x180201]['ChatQueueId'];}}})[_0x27f6a1('0x223b')](function(_0x55343e){console['error'](_0x55343e);});}function _0x3304c0(_0x3e0ae0){var _0x90c55c=_0x2bfdf7;_0x482940[_0x90c55c('0x671')][_0x3e0ae0['id']]&&_0x32d445()[_0x90c55c('0x1d8')](_0x482940['queues'][_0x3e0ae0['id']],_0x32d445()[_0x90c55c('0xed5')](_0x3e0ae0,_0x4e4c37));}function _0x357d01(_0x124e8e){var _0x364f6d=_0x2bfdf7;_0x482940[_0x364f6d('0x671')][_0x124e8e[_0x364f6d('0x288c')]]&&_0x482940[_0x364f6d('0x671')][_0x124e8e[_0x364f6d('0x288c')]][_0x364f6d('0x120f')]++;}function _0x8deb20(_0x4ca351){var _0x4815e1=_0x2bfdf7;_0x482940[_0x4815e1('0x671')][_0x4ca351['ChatQueueId']]&&_0x482940[_0x4815e1('0x671')][_0x4ca351[_0x4815e1('0x288c')]][_0x4815e1('0x120f')]--;}function _0x41ec65(_0x559995){var _0x477a93=_0x2bfdf7;console[_0x477a93('0x1fe9')](_0x477a93('0x69e'),_0x559995);if(_0x559995[_0x477a93('0x1b8d')])_0x32d445()[_0x477a93('0xd1e')](_0x482940[_0x477a93('0x671')],function(_0x1ce458){var _0x141072=_0x477a93;_0x1ce458[_0x141072('0x29b')][_0x559995['id']]&&(_0x1ce458[_0x141072('0x1cf8')]+=0x1,console[_0x141072('0x1fe9')](_0x141072('0x1c98')));});else!_0x559995[_0x477a93('0x1b8d')]&&_0x32d445()[_0x477a93('0xd1e')](_0x482940[_0x477a93('0x671')],function(_0x2322c4){var _0x25b9b9=_0x477a93;_0x2322c4[_0x25b9b9('0x29b')][_0x559995['id']]&&(_0x2322c4[_0x25b9b9('0x1cf8')]>0x0&&(_0x2322c4[_0x25b9b9('0x1cf8')]-=0x1,console[_0x25b9b9('0x1fe9')](_0x25b9b9('0x2471'))));});}function _0x3527d0(_0x14f266){var _0x207f82=_0x2bfdf7;console[_0x207f82('0x1fe9')](_0x207f82('0xb90'),_0x14f266),_0x482940['queues'][_0x14f266['ChatQueueId']]&&(_0x482940[_0x207f82('0x671')][_0x14f266[_0x207f82('0x288c')]][_0x207f82('0x120f')]+=0x1,_0x482940[_0x207f82('0x671')][_0x14f266[_0x207f82('0x288c')]]['agents'][_0x14f266['UserId']]=_0x14f266[_0x207f82('0x288c')]);}function _0x4daa88(_0x28a0d5){var _0xda9ab=_0x2bfdf7;console[_0xda9ab('0x1fe9')]('onLogout',_0x28a0d5),_0x482940[_0xda9ab('0x671')][_0x28a0d5[_0xda9ab('0x288c')]]&&_0x482940[_0xda9ab('0x671')][_0x28a0d5[_0xda9ab('0x288c')]][_0xda9ab('0x120f')]>0x0&&(_0x482940['queues'][_0x28a0d5[_0xda9ab('0x288c')]][_0xda9ab('0x120f')]-=0x1,delete _0x482940[_0xda9ab('0x671')][_0x28a0d5[_0xda9ab('0x288c')]][_0xda9ab('0x29b')][_0x28a0d5[_0xda9ab('0x43d')]]);}var _0x1de013=!![],_0x1a71f5=0x1;_0x44d033[_0x2bfdf7('0x107')](_0x2bfdf7('0x20cb'),function(_0x108d78,_0x38b701){var _0x230425=_0x2bfdf7;_0x1de013?_0x427a0d(function(){_0x1de013=![];}):(!_0x38b701&&(_0x1a71f5=_0x482940[_0x230425('0xa16')][_0x230425('0xc08')]),_0x108d78!==_0x38b701&&(_0x482940[_0x230425('0xa16')][_0x230425('0xc08')]=0x1),!_0x108d78&&(_0x482940[_0x230425('0xa16')][_0x230425('0xc08')]=_0x1a71f5),_0x482940[_0x230425('0x23cf')]());});function _0x2aa4d4(_0x1a6987){var _0xc4b47f=_0x2bfdf7;_0x482940[_0xc4b47f('0x148b')]=_0x1a6987[_0xc4b47f('0x148b')],_0x482940['queues']=_0x1a6987?_0x32d445()[_0xc4b47f('0x226f')](_0x1a6987[_0xc4b47f('0x16a7')]?_0x1a6987[_0xc4b47f('0x16a7')]:[],'id'):{};if(_0x1a6987[_0xc4b47f('0x16a7')]){_0x482940[_0xc4b47f('0x1b03')]=[];for(var _0x45b4b5=0x0;_0x45b4b5<_0x1a6987[_0xc4b47f('0x16a7')][_0xc4b47f('0x25ae')];_0x45b4b5++){_0x482940[_0xc4b47f('0x1b03')][_0xc4b47f('0xb76')](_0x1a6987[_0xc4b47f('0x16a7')][_0x45b4b5]['id']);}}_0x2e1670();}function _0x134c11(){var _0x301e9e=_0x2bfdf7;_0x482940['query'][_0x301e9e('0xab0')]=(_0x482940[_0x301e9e('0xa16')][_0x301e9e('0xc08')]-0x1)*_0x482940[_0x301e9e('0xa16')][_0x301e9e('0x1b6d')],_0xa0d3b[_0x301e9e('0x179e')](_0x301e9e('0xd14'))?_0x482940[_0x301e9e('0x9c8')]=_0x215841['chatQueue'][_0x301e9e('0x22d5')](_0x482940[_0x301e9e('0xa16')],_0x2aa4d4)[_0x301e9e('0xe59')]:(_0x482940[_0x301e9e('0xa16')]['id']=_0x482940[_0x301e9e('0x154f')]['id'],_0x482940[_0x301e9e('0xa16')][_0x301e9e('0x1e59')]=_0x301e9e('0x17c2'),_0x482940[_0x301e9e('0x9c8')]=_0x215841[_0x301e9e('0x154f')]['getResources'](_0x482940['query'],_0x2aa4d4)['$promise']);}function _0x3c3fad(_0x39baca,_0x12b6f1){var _0x4ce01f=_0x2bfdf7;_0x85a41a['show']({'controller':_0x4ce01f('0xbc4'),'controllerAs':'vm','templateUrl':_0x26fa2a,'parent':angular['element'](_0x4ccc50[_0x4ce01f('0x19b2')]),'targetEvent':_0x39baca,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x12b6f1,'chatQueues':_0x32d445()['values'](_0x482940[_0x4ce01f('0x671')]),'license':null,'setting':null,'crudPermissions':_0x482940[_0x4ce01f('0xb3d')]}});}function _0x409022(_0x13e347,_0x1946ab){var _0x5e4774=_0x2bfdf7;_0x85a41a['show']({'controller':_0x5e4774('0x162e'),'controllerAs':'vm','templateUrl':_0x10a3e1,'parent':angular[_0x5e4774('0x24a1')](_0x4ccc50[_0x5e4774('0x19b2')]),'targetEvent':_0x13e347,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1946ab,'chatQueues':_0x482940[_0x5e4774('0x671')]?_0x482940[_0x5e4774('0x671')][_0x5e4774('0x16a7')]:[],'realtime':![],'crudPermissions':_0x482940[_0x5e4774('0xb3d')]}});}function _0x577f51(_0x100a9e){var _0x21ee61=_0x2bfdf7;return _0x215841[_0x21ee61('0xfce')]['update'](_0x100a9e)[_0x21ee61('0xe59')][_0x21ee61('0xe19')](function(){var _0x5e3e5f=_0x21ee61;_0x56a2eb['success']({'title':_0x5e3e5f('0x56a'),'msg':_0x100a9e[_0x5e3e5f('0x2623')]?_0x100a9e[_0x5e3e5f('0x2623')]+_0x5e3e5f('0x283b'):''});})['catch'](function(_0x3bc038){var _0xb36ae3=_0x21ee61;_0x56a2eb[_0xb36ae3('0x8c8')]({'title':_0xb36ae3('0x2780'),'msg':_0x3bc038['message']});});}_0x44d033['$on']('$destroy',function(){var _0x5785f1=_0x2bfdf7;_0x2a1143[_0x5785f1('0x2121')]('chat_queue:save'),_0x2a1143['removeAllListeners']('userChatQueue:remove'),_0x2a1143['removeAllListeners'](_0x5785f1('0x27f9')),_0x2a1143['removeAllListeners'](_0x5785f1('0x1ce3')),_0x2a1143[_0x5785f1('0x2121')](_0x5785f1('0x1583')),_0x2a1143[_0x5785f1('0x2121')]('userVoiceQueue:save');});}const _0x5e3747=_0x351b60;function _0x2bd224(){var _0xc447b2=_0xb635d2;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':'red-300-fg\x20icon-close-circle','lagged':'red-300-fg\x20icon-close-circle','reachable':_0xc447b2('0xcf5'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0xc447b2('0x1fe7')},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0xc447b2('0x11dd'),'inuse':_0xc447b2('0x15af'),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0xc447b2('0x2740'),'unavailable':_0xc447b2('0x2740'),'ringing':_0xc447b2('0x84d'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0xc447b2('0x84d'),'up':_0xc447b2('0x2778'),'hangup':_0xc447b2('0x2432')},'channelStatusOut':{'ring':_0xc447b2('0x24dc'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0xc447b2('0x2432')}};}const _0x1ea054=_0x2bd224;_0x1f5839['$inject']=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x46d')];function _0x1f5839(_0x48bbf2,_0x5be9b0,_0x2fac20){var _0x530fc6=_0xb635d2,_0x45ca7d=this;_0x2fac20[_0x530fc6('0x83c')](),_0x2fac20[_0x530fc6('0x19d9')](),_0x45ca7d[_0x530fc6('0xc7b')]=0x0;switch(_0x5be9b0[_0x530fc6('0x1a60')][_0x530fc6('0x2623')]){case _0x530fc6('0x27dc'):_0x45ca7d[_0x530fc6('0xc7b')]=0x0;break;case'app.chat.realtime.queues':_0x45ca7d['selectedTab']=0x1;break;default:_0x45ca7d['selectedTab']=0x0,_0x5be9b0['go'](_0x530fc6('0x27dc'));}_0x48bbf2['$watch'](_0x530fc6('0xa10'),function(_0x42ad2a,_0x2253dd){var _0x1363db=_0x530fc6;if(_0x42ad2a!==_0x2253dd)switch(_0x42ad2a){case 0x0:_0x5be9b0['go'](_0x1363db('0x27dc'));break;case 0x1:_0x5be9b0['go'](_0x1363db('0x1114'));break;default:_0x5be9b0['go'](_0x1363db('0x27dc'));}});}const _0x37210f=_0x1f5839;_0x5e9099[_0xb635d2('0xb0c')]=['$stateProvider'];function _0x5e9099(_0x16256f){var _0x2cbba1=_0xb635d2;_0x16256f[_0x2cbba1('0x1d72')](_0x2cbba1('0x5e8'),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x116786,'controller':_0x2cbba1('0x15d5')}},'resolve':{'userProfile':[_0x2cbba1('0x292'),_0x2cbba1('0x2730'),function _0x4c222d(_0x351d11,_0x49b93b){var _0x5ac6ad=_0x2cbba1;return _0x49b93b[_0x5ac6ad('0x179e')](_0x5ac6ad('0xd14'))?null:_0x351d11['resolve'](_0x5ac6ad('0x455'),{'fields':_0x5ac6ad('0x1b71'),'id':_0x49b93b[_0x5ac6ad('0x1ef8')]()[_0x5ac6ad('0x1d04')]});}],'userProfileSection':[_0x2cbba1('0x292'),_0x2cbba1('0x2730'),function _0x1b4319(_0x58ff30,_0x19c1b0){var _0x22a2e9=_0x2cbba1;return _0x19c1b0[_0x22a2e9('0x179e')](_0x22a2e9('0xd14'))?null:_0x58ff30[_0x22a2e9('0xcd6')](_0x22a2e9('0x264e'),{'fields':_0x22a2e9('0x12d6'),'userProfileId':_0x19c1b0[_0x22a2e9('0x1ef8')]()[_0x22a2e9('0x1d04')],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})[_0x2cbba1('0x1d72')]('app.chat.realtime.agents',{'url':_0x2cbba1('0x11db'),'controller':_0x2cbba1('0xa26'),'templateUrl':_0x5da868,'resolve':{'pauses':[_0x2cbba1('0x292'),function _0x1e9f79(_0x6dba88){return _0x6dba88['resolve']('pause@get',{'nolimit':!![]});}],'agents':[_0x2cbba1('0x292'),_0x2cbba1('0x2730'),function _0x25ea57(_0x3a51cb,_0x46972f){var _0x5c27a2=_0x2cbba1;return _0x46972f['hasRole']('admin')?_0x3a51cb[_0x5c27a2('0xcd6')](_0x5c27a2('0x24a9'),{'fields':_0x5c27a2('0x11bb'),'role':_0x5c27a2('0x108'),'sort':'fullname','nolimit':!![]}):_0x3a51cb[_0x5c27a2('0xcd6')](_0x5c27a2('0x197d'),{'id':_0x46972f[_0x5c27a2('0x1ef8')]()[_0x5c27a2('0x1d04')],'section':_0x5c27a2('0xd61'),'fields':_0x5c27a2('0x11bb'),'role':_0x5c27a2('0x108'),'sort':_0x5c27a2('0xe11'),'nolimit':!![]});}],'userProfile':[_0x2cbba1('0x292'),'Auth',function _0x596fa9(_0xbebeed,_0x18ce9f){var _0x13a496=_0x2cbba1;return _0x18ce9f[_0x13a496('0x179e')](_0x13a496('0xd14'))?null:_0xbebeed[_0x13a496('0xcd6')](_0x13a496('0x455'),{'fields':_0x13a496('0x1b71'),'id':_0x18ce9f[_0x13a496('0x1ef8')]()[_0x13a496('0x1d04')]});}],'userProfileSection':[_0x2cbba1('0x292'),_0x2cbba1('0x2730'),function _0x286668(_0x24f97e,_0x186704){var _0xa5c149=_0x2cbba1;return _0x186704['hasRole']('admin')?null:_0x24f97e['resolve'](_0xa5c149('0x264e'),{'fields':_0xa5c149('0x12d6'),'userProfileId':_0x186704[_0xa5c149('0x1ef8')]()[_0xa5c149('0x1d04')],'sectionId':0xca});}],'rpcAgents':[_0x2cbba1('0x292'),function _0x3c8fb9(_0xd807d6){var _0xdb783=_0x2cbba1;return _0xd807d6[_0xdb783('0xcd6')](_0xdb783('0x1fdb'));}]},'authenticate':!![],'permissionId':0x1fe})[_0x2cbba1('0x1d72')]('app.chat.realtime.queues',{'url':'/queues','controller':_0x2cbba1('0x1db1'),'templateUrl':_0x4e8f02,'resolve':{'queues':[_0x2cbba1('0x292'),_0x2cbba1('0x2730'),function _0x5c90b9(_0x5bd973,_0x2efece){var _0x39080e=_0x2cbba1;return _0x2efece['hasRole']('admin')?_0x5bd973[_0x39080e('0xcd6')](_0x39080e('0xd50'),{'type':_0x39080e('0x1a7a'),'sort':_0x39080e('0x7e8'),'limit':0xa,'offset':0x0}):_0x5bd973['resolve'](_0x39080e('0x197d'),{'id':_0x2efece[_0x39080e('0x1ef8')]()[_0x39080e('0x1d04')],'section':_0x39080e('0x17c2'),'channel':_0x39080e('0x17cc'),'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':[_0x2cbba1('0x292'),_0x2cbba1('0x2730'),function _0x1ccf8f(_0x41fab6,_0x41bbc0){var _0x16c906=_0x2cbba1;return _0x41bbc0[_0x16c906('0x179e')](_0x16c906('0xd14'))?null:_0x41fab6[_0x16c906('0xcd6')](_0x16c906('0x455'),{'fields':_0x16c906('0x1b71'),'id':_0x41bbc0[_0x16c906('0x1ef8')]()[_0x16c906('0x1d04')]});}],'userProfileSection':[_0x2cbba1('0x292'),'Auth',function _0x3e7b3e(_0x5f0614,_0x26f500){var _0x4da681=_0x2cbba1;return _0x26f500[_0x4da681('0x179e')](_0x4da681('0xd14'))?null:_0x5f0614[_0x4da681('0xcd6')](_0x4da681('0x264e'),{'fields':_0x4da681('0x12d6'),'userProfileId':_0x26f500[_0x4da681('0x1ef8')]()[_0x4da681('0x1d04')],'sectionId':0x1f5});}],'rpcQueues':[_0x2cbba1('0x292'),function _0x5a16cc(_0x16849d){var _0x439d55=_0x2cbba1;return _0x16849d[_0x439d55('0xcd6')](_0x439d55('0x1484'));}]},'authenticate':!![],'permissionId':0x1fe});}angular[_0xb635d2('0x153f')](_0xb635d2('0x5e8'),[])[_0xb635d2('0x1990')](_0x5e9099)[_0xb635d2('0x1a79')]('AgentsChatRealtimeController',_0x344db6)[_0xb635d2('0x1a79')](_0xb635d2('0x222e'),_0x5e3747)[_0xb635d2('0x1324')]('helperClasses',_0x1ea054)[_0xb635d2('0x1a79')](_0xb635d2('0x887'),_0x37210f);const _0x1bafec=_0x59426a['p']+_0xb635d2('0xdb1');_0xdce1f5[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0x1bfa'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'api','msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0xdce1f5(_0x252270,_0x4a6e46,_0x455c57,_0x33aef5,_0x332bbc,_0x5d724c,_0x94f18f,_0x16285d,_0xcd67d0,_0xdb9b30,_0x66ec21,_0x5dc2f9,_0x35455f,_0x3d03a1,_0x10d98e,_0x14887e,_0x457f87){var _0x5616fe=_0xb635d2,_0x75256a=this;_0x75256a[_0x5616fe('0x5c1')]=_0x14887e,_0x75256a[_0x5616fe('0x22f1')]=_0x457f87,_0x75256a[_0x5616fe('0x15a5')]=_0x10d98e['getCurrentUser'](),_0x75256a[_0x5616fe('0x1bfa')]=_0xcd67d0||{'count':0x0,'rows':[]},_0x75256a['userProfile']=_0xdb9b30,_0x75256a['userProfileSection']=_0x66ec21&&_0x66ec21[_0x5616fe('0x148b')]==0x1?_0x66ec21[_0x5616fe('0x16a7')][0x0]:null,_0x75256a['crudPermissions']=_0x10d98e[_0x5616fe('0xd31')](_0x75256a[_0x5616fe('0xb59')]?_0x75256a[_0x5616fe('0xb59')][_0x5616fe('0xb3d')]:null),_0x75256a[_0x5616fe('0x19b6')]='chatQueues',_0x75256a['listOrder']='',_0x75256a['listOrderAsc']=null,_0x75256a['selectedChatQueues']=[],_0x75256a[_0x5616fe('0xa16')]={'fields':_0x5616fe('0x1bd'),'sort':_0x5616fe('0x7e8'),'channel':_0x5616fe('0x17cc'),'limit':0xa,'page':0x1},_0x75256a[_0x5616fe('0xa67')]=_0x32d445()[_0x5616fe('0x226f')]([{'option':_0x5616fe('0x26e4'),'value':_0x5616fe('0x2460')},{'option':_0x5616fe('0x442'),'value':'\x27rrmemory\x27'}],function(_0x289ffa){var _0x53892b=_0x5616fe;return _0x32d445()[_0x53892b('0x1b42')](_0x289ffa['value'],new RegExp('\x27','g'),'');}),_0x75256a[_0x5616fe('0x16a0')]=_0x41b0ca,_0x75256a[_0x5616fe('0x23f1')]=_0x4d58da,_0x75256a[_0x5616fe('0x1407')]=_0x4a376f,_0x75256a['deleteconfirm']=_0x3fd23b,_0x75256a[_0x5616fe('0x20e3')]=_0x28cd8a,_0x75256a[_0x5616fe('0x425')]=_0x5436ed,_0x75256a[_0x5616fe('0x2652')]=_0x80de27,_0x75256a['createOrEditChatQueue']=_0x5e69eb,_0x75256a[_0x5616fe('0x2482')]=_0x46ed1d,_0x75256a[_0x5616fe('0x1d4f')]=_0x1398a5,_0x75256a[_0x5616fe('0x16d2')]=_0x24721c,_0x75256a[_0x5616fe('0x16ad')]=_0x198aca,_0x75256a[_0x5616fe('0x3a3')]=_0x4038b2;function _0x41b0ca(_0x497724){var _0xc83c7d=_0x5616fe;_0x455c57['go'](_0xc83c7d('0xe30'),{'id':_0x497724['id'],'chatQueue':_0x497724,'crudPermissions':_0x75256a[_0xc83c7d('0xb3d')]});}function _0x4d58da(_0x58248c,_0x5b190f){var _0x527665=_0x5616fe;_0x332bbc[_0x527665('0x26b2')]({'controller':_0x527665('0x24c6'),'controllerAs':'vm','templateUrl':_0x1bafec,'parent':angular[_0x527665('0x24a1')](_0x5d724c[_0x527665('0x19b2')]),'targetEvent':_0x5b190f,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x58248c,'chatQueues':_0x75256a['chatQueues']?_0x75256a[_0x527665('0x1bfa')]['rows']:[],'crudPermissions':_0x75256a[_0x527665('0xb3d')]}});}function _0x4a376f(_0x2abf15,_0x25b51){var _0x51f49e=_0x5616fe;_0x332bbc[_0x51f49e('0x26b2')]({'controller':'ChatQueueagentaddController','controllerAs':'vm','templateUrl':_0x10a3e1,'parent':angular[_0x51f49e('0x24a1')](_0x5d724c[_0x51f49e('0x19b2')]),'targetEvent':_0x25b51,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2abf15,'chatQueues':_0x75256a[_0x51f49e('0x1bfa')]?_0x75256a[_0x51f49e('0x1bfa')][_0x51f49e('0x16a7')]:[],'crudPermissions':_0x75256a['crudPermissions'],'realtime':![]}});}function _0x3fd23b(_0x30d708,_0x588416){var _0x4385f7=_0x5616fe,_0x44dba4=_0x332bbc[_0x4385f7('0xa5')]()[_0x4385f7('0x13e4')](_0x4385f7('0x346')+_0x32d445()[_0x4385f7('0x1df2')](_0x4385f7('0xfce'))+'?')[_0x4385f7('0x221c')](_0x4385f7('0xab2')+(_0x30d708[_0x4385f7('0x2623')]||_0x4385f7('0xfce'))+_0x4385f7('0x27bb')+_0x4385f7('0x21bd'))[_0x4385f7('0x4d1')](_0x4385f7('0xca'))[_0x4385f7('0x1345')](_0x588416)['ok']('OK')[_0x4385f7('0x2c1')]('CANCEL');_0x332bbc['show'](_0x44dba4)[_0x4385f7('0xe19')](function(){_0x46ed1d(_0x30d708);},function(){var _0x18d537=_0x4385f7;console[_0x18d537('0x1fe9')]('CANCEL');});}function _0x28cd8a(){var _0x51476d=_0x5616fe;if(_0x10d98e['hasRole'](_0x51476d('0xd14')))_0x455c57['go'](_0x51476d('0x1114'),{});else return _0x5dc2f9[_0x51476d('0xb59')]['get']({'userProfileId':_0x10d98e[_0x51476d('0x1ef8')]()[_0x51476d('0x1d04')],'sectionId':0x1fe})[_0x51476d('0xe59')][_0x51476d('0xe19')](function(_0x3037f7){var _0xef06c4=_0x51476d,_0xc92fcd=_0x3037f7&&_0x3037f7[_0xef06c4('0x16a7')]?_0x3037f7['rows'][0x0]:null;_0xc92fcd&&_0xc92fcd[_0xef06c4('0x4ef')]?_0x455c57['go'](_0xef06c4('0x1114'),{}):_0x3d03a1[_0xef06c4('0x1e67')]({'title':_0x16285d[_0xef06c4('0x2159')](_0xef06c4('0x2786')),'msg':_0x16285d[_0xef06c4('0x2159')](_0xef06c4('0x4bb'))});})['catch'](function(_0x3716e4){var _0x30c1c0=_0x51476d;_0x3d03a1[_0x30c1c0('0x8c8')]({'title':_0x3716e4['status']?_0x30c1c0('0x27f2')+_0x3716e4[_0x30c1c0('0x2833')]+_0x30c1c0('0x1b7c')+_0x3716e4[_0x30c1c0('0x1fd7')]:_0x30c1c0('0x343'),'msg':_0x3716e4[_0x30c1c0('0x2833')]?JSON[_0x30c1c0('0x3ad')](_0x3716e4['data']):_0x3716e4[_0x30c1c0('0x94f')]()});});}var _0x45375d=!![],_0x4233ff=0x1;_0x252270[_0x5616fe('0x107')](_0x5616fe('0x20cb'),function(_0x114156,_0x201264){var _0x3bd337=_0x5616fe;_0x45375d?_0x94f18f(function(){_0x45375d=![];}):(!_0x201264&&(_0x4233ff=_0x75256a['query'][_0x3bd337('0xc08')]),_0x114156!==_0x201264&&(_0x75256a[_0x3bd337('0xa16')]['page']=0x1),!_0x114156&&(_0x75256a[_0x3bd337('0xa16')]['page']=_0x4233ff),_0x75256a['getChatQueues']());});function _0x5436ed(_0x3bb733){_0x75256a['chatQueues']=_0x3bb733||{'count':0x0,'rows':[]};}function _0x80de27(){var _0x23bd38=_0x5616fe;_0x75256a[_0x23bd38('0xa16')]['offset']=(_0x75256a['query']['page']-0x1)*_0x75256a[_0x23bd38('0xa16')][_0x23bd38('0x1b6d')],_0x10d98e[_0x23bd38('0x179e')]('admin')?_0x75256a['promise']=_0x5dc2f9[_0x23bd38('0xfce')]['get'](_0x75256a[_0x23bd38('0xa16')],_0x5436ed)[_0x23bd38('0xe59')]:(_0x75256a[_0x23bd38('0xa16')]['id']=_0x75256a[_0x23bd38('0x154f')]['id'],_0x75256a[_0x23bd38('0xa16')]['section']=_0x23bd38('0x17c2'),_0x75256a[_0x23bd38('0x9c8')]=_0x5dc2f9['userProfile'][_0x23bd38('0x14e6')](_0x75256a['query'],_0x5436ed)[_0x23bd38('0xe59')]);}function _0x5e69eb(_0x3006ce,_0x533200){var _0x3dce31=_0x5616fe;_0x332bbc[_0x3dce31('0x26b2')]({'controller':_0x3dce31('0xbc4'),'controllerAs':'vm','templateUrl':_0x26fa2a,'parent':angular[_0x3dce31('0x24a1')](_0x5d724c[_0x3dce31('0x19b2')]),'targetEvent':_0x3006ce,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x533200,'chatQueues':_0x75256a[_0x3dce31('0x1bfa')][_0x3dce31('0x16a7')],'license':_0x75256a['license'],'setting':_0x75256a[_0x3dce31('0x22f1')],'crudPermissions':_0x75256a[_0x3dce31('0xb3d')]}});}function _0x46ed1d(_0x2faf5c){var _0x434005=_0x5616fe;_0x5dc2f9['chatQueue'][_0x434005('0x229e')]({'id':_0x2faf5c['id']})['$promise'][_0x434005('0xe19')](function(){var _0x416ef0=_0x434005;_0x32d445()[_0x416ef0('0xa8b')](_0x75256a['chatQueues'][_0x416ef0('0x16a7')],{'id':_0x2faf5c['id']}),_0x75256a['chatQueues'][_0x416ef0('0x148b')]-=0x1,!_0x75256a[_0x416ef0('0x1bfa')][_0x416ef0('0x16a7')][_0x416ef0('0x25ae')]&&_0x75256a[_0x416ef0('0x2652')](),_0x3d03a1['success']({'title':_0x32d445()[_0x416ef0('0x1df2')](_0x416ef0('0x1584'))+'\x20deleted!','msg':_0x2faf5c[_0x416ef0('0x2623')]?_0x2faf5c[_0x416ef0('0x2623')]+_0x416ef0('0x2182'):''});})[_0x434005('0x223b')](function(_0x1d2dd4){var _0x52d9ab=_0x434005;if(_0x1d2dd4[_0x52d9ab('0x11d0')]&&_0x1d2dd4[_0x52d9ab('0x11d0')]['errors']&&_0x1d2dd4[_0x52d9ab('0x11d0')]['errors'][_0x52d9ab('0x25ae')]){_0x75256a['errors']=_0x1d2dd4[_0x52d9ab('0x11d0')][_0x52d9ab('0xcd2')]||[{'message':_0x1d2dd4[_0x52d9ab('0x94f')](),'type':_0x52d9ab('0x1e0b')}];for(var _0x422e81=0x0;_0x422e81<_0x1d2dd4[_0x52d9ab('0x11d0')][_0x52d9ab('0xcd2')][_0x52d9ab('0x25ae')];_0x422e81++){_0x3d03a1[_0x52d9ab('0x8c8')]({'title':_0x1d2dd4['data'][_0x52d9ab('0xcd2')][_0x422e81][_0x52d9ab('0x62e')],'msg':_0x1d2dd4['data'][_0x52d9ab('0xcd2')][_0x422e81][_0x52d9ab('0x27e8')]});}}else _0x3d03a1[_0x52d9ab('0x8c8')]({'title':_0x1d2dd4['status']?_0x52d9ab('0x27f2')+_0x1d2dd4[_0x52d9ab('0x2833')]+'\x20-\x20'+_0x1d2dd4[_0x52d9ab('0x1fd7')]:'SYSTEM:DELETEchatQueue','msg':_0x1d2dd4[_0x52d9ab('0x11d0')]?JSON[_0x52d9ab('0x3ad')](_0x1d2dd4[_0x52d9ab('0x11d0')]['message']):_0x1d2dd4[_0x52d9ab('0x27e8')]||_0x1d2dd4[_0x52d9ab('0x94f')]()});});}function _0x1398a5(){var _0x4167d4=_0x5616fe,_0x24f6eb=angular[_0x4167d4('0x89')](_0x75256a[_0x4167d4('0x196')]);return _0x75256a[_0x4167d4('0x196')]=[],_0x24f6eb;}function _0x24721c(_0x5b9090){var _0x370d33=_0x5616fe,_0x3aceef=_0x332bbc[_0x370d33('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatQueues?')[_0x370d33('0x221c')](_0x370d33('0xab2')+_0x75256a[_0x370d33('0x196')][_0x370d33('0x25ae')]+_0x370d33('0x5bc')+_0x370d33('0x21bd'))['ariaLabel'](_0x370d33('0x1513'))[_0x370d33('0x1345')](_0x5b9090)['ok']('OK')[_0x370d33('0x2c1')](_0x370d33('0x17'));_0x332bbc[_0x370d33('0x26b2')](_0x3aceef)[_0x370d33('0xe19')](function(){var _0x53884e=_0x370d33;_0x75256a[_0x53884e('0x196')]['forEach'](function(_0x213faf){_0x46ed1d(_0x213faf);}),_0x75256a[_0x53884e('0x196')]=[];});}function _0x198aca(){_0x75256a['selectedChatQueues']=[];}function _0x4038b2(){var _0x312dd0=_0x5616fe;_0x75256a[_0x312dd0('0x196')]=_0x75256a[_0x312dd0('0x1bfa')]['rows'];}}const _0x2fa0ec=_0xdce1f5;_0x330021[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1bfa'),'chatQueue',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x330021(_0x5cf621,_0x4ab819,_0x2e0cd8,_0x41770d,_0x5e6fe4,_0x21f5ff,_0x4c0890,_0x2c48fd,_0x2f8bce,_0x50b570,_0x4643e0,_0x511644,_0x3e4ea7,_0x26cfc0){var _0x4cfc20=_0xb635d2,_0x59e588=this;_0x59e588[_0x4cfc20('0x15a5')]=_0x4643e0[_0x4cfc20('0x1ef8')](),_0x59e588[_0x4cfc20('0xcd2')]=[],_0x59e588[_0x4cfc20('0x22f1')]=_0x3e4ea7,_0x59e588[_0x4cfc20('0x5c1')]=_0x511644,_0x59e588[_0x4cfc20('0xb3d')]=_0x26cfc0,_0x59e588[_0x4cfc20('0x1ccb')]={},_0x59e588[_0x4cfc20('0x25ac')]=_0x59e588[_0x4cfc20('0x22f1')]&&_0x59e588[_0x4cfc20('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59e588['title']=_0x4cfc20('0xbe5'),_0x59e588[_0x4cfc20('0xfce')]=angular['copy'](_0x2f8bce),_0x59e588['chatQueues']=_0x2c48fd,_0x59e588['newChatQueue']=![];!_0x59e588[_0x4cfc20('0xfce')]&&(_0x59e588[_0x4cfc20('0xfce')]={'strategy':_0x4cfc20('0x1442'),'timeout':0xa},_0x59e588['title']=_0x4cfc20('0x57'),_0x59e588['newChatQueue']=!![]);_0x59e588[_0x4cfc20('0xaff')]=_0x1ca823,_0x59e588[_0x4cfc20('0xf99')]=_0x1944d7,_0x59e588[_0x4cfc20('0x2482')]=_0x41b16f,_0x59e588[_0x4cfc20('0x2635')]=_0x36ab74,_0x59e588[_0x4cfc20('0x2584')]=_0x438bac;function _0x1ca823(){var _0x593a2a=_0x4cfc20;_0x59e588[_0x593a2a('0xcd2')]=[],_0x50b570['chatQueue'][_0x593a2a('0xe5e')](_0x59e588[_0x593a2a('0xfce')])[_0x593a2a('0xe59')][_0x593a2a('0xe19')](function(_0x12f2a0){var _0x29c096=_0x593a2a;_0x59e588[_0x29c096('0x1bfa')][_0x29c096('0x14c9')](_0x12f2a0[_0x29c096('0x250e')]()),_0x4c0890[_0x29c096('0x425')]({'title':_0x29c096('0x6f1'),'msg':_0x59e588['chatQueue'][_0x29c096('0x2623')]?_0x59e588[_0x29c096('0xfce')][_0x29c096('0x2623')]+_0x29c096('0x105f'):''}),_0x438bac(_0x12f2a0);})[_0x593a2a('0x223b')](function(_0x33503d){var _0x389af1=_0x593a2a;if(_0x33503d[_0x389af1('0x11d0')]&&_0x33503d[_0x389af1('0x11d0')]['errors']&&_0x33503d[_0x389af1('0x11d0')][_0x389af1('0xcd2')][_0x389af1('0x25ae')]){_0x59e588[_0x389af1('0xcd2')]=_0x33503d['data'][_0x389af1('0xcd2')]||[{'message':_0x33503d['toString'](),'type':_0x389af1('0x80f')}];for(var _0x3ac991=0x0;_0x3ac991<_0x33503d[_0x389af1('0x11d0')][_0x389af1('0xcd2')][_0x389af1('0x25ae')];_0x3ac991+=0x1){_0x4c0890[_0x389af1('0x8c8')]({'title':_0x33503d['data']['errors'][_0x3ac991][_0x389af1('0x62e')],'msg':_0x33503d[_0x389af1('0x11d0')][_0x389af1('0xcd2')][_0x3ac991][_0x389af1('0x27e8')]});}}else _0x4c0890[_0x389af1('0x8c8')]({'title':_0x33503d[_0x389af1('0x2833')]?_0x389af1('0x27f2')+_0x33503d['status']+_0x389af1('0x1b7c')+_0x33503d[_0x389af1('0x1fd7')]:_0x389af1('0x80f'),'msg':_0x33503d[_0x389af1('0x11d0')]?JSON[_0x389af1('0x3ad')](_0x33503d[_0x389af1('0x11d0')][_0x389af1('0x27e8')]):_0x33503d['toString']()});});}function _0x1944d7(){var _0x461684=_0x4cfc20;_0x59e588[_0x461684('0xcd2')]=[],_0x50b570[_0x461684('0xfce')][_0x461684('0xa70')]({'id':_0x59e588[_0x461684('0xfce')]['id']},_0x59e588[_0x461684('0xfce')])['$promise'][_0x461684('0xe19')](function(_0x438e99){var _0x5974b8=_0x461684,_0x2c755c=_0x32d445()[_0x5974b8('0xf15')](_0x59e588[_0x5974b8('0x1bfa')],{'id':_0x438e99['id']});_0x2c755c&&_0x32d445()['merge'](_0x2c755c,_0x32d445()[_0x5974b8('0xed5')](_0x438e99['toJSON'](),_0x32d445()['keys'](_0x2c755c))),_0x4c0890['success']({'title':_0x5974b8('0x52b'),'msg':_0x59e588[_0x5974b8('0xfce')][_0x5974b8('0x2623')]?_0x59e588['chatQueue']['name']+_0x5974b8('0x1c19'):''}),_0x438bac(_0x438e99);})[_0x461684('0x223b')](function(_0x55a911){var _0x36e73f=_0x461684;if(_0x55a911[_0x36e73f('0x11d0')]&&_0x55a911['data'][_0x36e73f('0xcd2')]&&_0x55a911['data'][_0x36e73f('0xcd2')]['length']){_0x59e588[_0x36e73f('0xcd2')]=_0x55a911['data'][_0x36e73f('0xcd2')]||[{'message':_0x55a911[_0x36e73f('0x94f')](),'type':'api.chatQueue.update'}];for(var _0x248ecb=0x0;_0x248ecb<_0x55a911[_0x36e73f('0x11d0')][_0x36e73f('0xcd2')][_0x36e73f('0x25ae')];_0x248ecb++){_0x4c0890[_0x36e73f('0x8c8')]({'title':_0x55a911[_0x36e73f('0x11d0')][_0x36e73f('0xcd2')][_0x248ecb]['type'],'msg':_0x55a911[_0x36e73f('0x11d0')][_0x36e73f('0xcd2')][_0x248ecb]['message']});}}else _0x4c0890[_0x36e73f('0x8c8')]({'title':_0x55a911[_0x36e73f('0x2833')]?'API:'+_0x55a911[_0x36e73f('0x2833')]+'\x20-\x20'+_0x55a911[_0x36e73f('0x1fd7')]:_0x36e73f('0x2ea'),'msg':_0x55a911[_0x36e73f('0x11d0')]?JSON['stringify'](_0x55a911['data'][_0x36e73f('0x27e8')]):_0x55a911['toString']()});});}function _0x41b16f(_0x5ea248){var _0x5b1eaa=_0x4cfc20;_0x59e588[_0x5b1eaa('0xcd2')]=[];var _0x4ae277=_0x41770d[_0x5b1eaa('0xa5')]()['title'](_0x5b1eaa('0x24d0'))['content']('The\x20chatQueue\x20will\x20be\x20deleted.')[_0x5b1eaa('0x4d1')](_0x5b1eaa('0x4d'))['ok'](_0x5b1eaa('0x2198'))[_0x5b1eaa('0x2c1')](_0x5b1eaa('0x8a3'))[_0x5b1eaa('0x1345')](_0x5ea248);_0x41770d[_0x5b1eaa('0x26b2')](_0x4ae277)[_0x5b1eaa('0xe19')](function(){var _0x580fe8=_0x5b1eaa;_0x50b570[_0x580fe8('0xfce')][_0x580fe8('0x229e')]({'id':_0x59e588[_0x580fe8('0xfce')]['id']})['$promise'][_0x580fe8('0xe19')](function(){var _0x2232ed=_0x580fe8;_0x32d445()['remove'](_0x59e588[_0x2232ed('0x1bfa')],{'id':_0x59e588[_0x2232ed('0xfce')]['id']}),_0x4c0890[_0x2232ed('0x425')]({'title':_0x2232ed('0x280a'),'msg':(_0x59e588[_0x2232ed('0xfce')][_0x2232ed('0x2623')]||_0x2232ed('0xfce'))+'\x20has\x20been\x20deleted!'}),_0x438bac(_0x59e588[_0x2232ed('0xfce')]);})[_0x580fe8('0x223b')](function(_0xc406cd){var _0x42c4e0=_0x580fe8;if(_0xc406cd['data']&&_0xc406cd[_0x42c4e0('0x11d0')][_0x42c4e0('0xcd2')]&&_0xc406cd[_0x42c4e0('0x11d0')][_0x42c4e0('0xcd2')][_0x42c4e0('0x25ae')]){_0x59e588[_0x42c4e0('0xcd2')]=_0xc406cd[_0x42c4e0('0x11d0')][_0x42c4e0('0xcd2')]||[{'message':_0xc406cd[_0x42c4e0('0x94f')](),'type':_0x42c4e0('0x1ee1')}];for(var _0x2b0439=0x0;_0x2b0439<_0xc406cd['data'][_0x42c4e0('0xcd2')][_0x42c4e0('0x25ae')];_0x2b0439++){_0x4c0890['error']({'title':_0xc406cd[_0x42c4e0('0x11d0')][_0x42c4e0('0xcd2')][_0x2b0439][_0x42c4e0('0x62e')],'msg':_0xc406cd[_0x42c4e0('0x11d0')][_0x42c4e0('0xcd2')][_0x2b0439][_0x42c4e0('0x27e8')]});}}else _0x4c0890[_0x42c4e0('0x8c8')]({'title':_0xc406cd[_0x42c4e0('0x2833')]?'API:'+_0xc406cd[_0x42c4e0('0x2833')]+'\x20-\x20'+_0xc406cd['statusText']:'api.chatQueue.delete','msg':_0xc406cd[_0x42c4e0('0x11d0')]?JSON[_0x42c4e0('0x3ad')](_0xc406cd[_0x42c4e0('0x11d0')]['message']):_0xc406cd[_0x42c4e0('0x27e8')]||_0xc406cd[_0x42c4e0('0x94f')]()});});},function(){});}function _0x36ab74(_0x443cca){return _0x443cca===null?undefined:new Date(_0x443cca);}function _0x438bac(_0x3c4a7d){var _0x64169a=_0x4cfc20;_0x41770d[_0x64169a('0x11ed')](_0x3c4a7d);}}const _0x438d61=_0x330021;_0x48b414['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'api','chatQueue','chatQueues',_0xb635d2('0x24e1'),'$translate','Auth','crudPermissions'];function _0x48b414(_0x21a32e,_0x2a6970,_0x161bfd,_0x27324b,_0x5123c2,_0x579817,_0x58e046,_0x554106,_0x1f54a9,_0x42e787){var _0x39e846=_0xb635d2,_0x19e785=this;_0x19e785[_0x39e846('0x15a5')]=_0x1f54a9[_0x39e846('0x1ef8')](),_0x19e785['chatQueue']=_0x5123c2,_0x19e785[_0x39e846('0xb3d')]=_0x42e787,_0x19e785[_0x39e846('0x24e1')]=_0x58e046,_0x19e785[_0x39e846('0xe4b')]=[],_0x19e785[_0x39e846('0x1884')]=[],_0x19e785[_0x39e846('0x2273')]=[],_0x19e785[_0x39e846('0x286c')]=[],_0x19e785['startingSelectedItems']=[],_0x19e785['pendingChanges']=![],_0x19e785[_0x39e846('0x888')]=_0x542fac,_0x19e785['saveAgents']=_0x1c6242,_0x19e785[_0x39e846('0x2584')]=_0x3aec81,_0x19e785['dualMultiselectOptions']={'readOnly':!_0x19e785[_0x39e846('0xb3d')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x39e846('0x2623'),'line1':_0x39e846('0xe11'),'line2':[_0x39e846('0x2623'),_0x39e846('0x1b66')],'line3':'','labelAll':_0x554106[_0x39e846('0x2159')]('CHAT.ALL_AGENTS'),'labelSelected':_0x554106[_0x39e846('0x2159')](_0x39e846('0x1f5')),'transferCallback':function _0x53e1a5(){var _0x47f306=_0x39e846,_0x2fa579=_0x32d445()[_0x47f306('0x118')](_0x19e785[_0x47f306('0xf79')],_0x19e785[_0x47f306('0x2273')],'id');_0x19e785[_0x47f306('0x16e7')]=_0x32d445()['isEmpty'](_0x2fa579)?![]:!![];}};function _0x542fac(){var _0x43e3b0=_0x39e846;return _0x1f54a9[_0x43e3b0('0x179e')](_0x43e3b0('0xd14'))?_0xa34403()[_0x43e3b0('0x223b')](function(_0x7d7fc9){var _0x36a28d=_0x43e3b0;_0x161bfd[_0x36a28d('0x8c8')]({'title':_0x7d7fc9[_0x36a28d('0x2833')]?'API:'+_0x7d7fc9[_0x36a28d('0x2833')]+_0x36a28d('0x1b7c')+_0x7d7fc9[_0x36a28d('0x1fd7')]:_0x36a28d('0x1e86'),'msg':_0x7d7fc9[_0x36a28d('0x2833')]?JSON['stringify'](_0x7d7fc9[_0x36a28d('0x11d0')]):_0x7d7fc9['toString']()});}):_0x29f874()[_0x43e3b0('0xe19')](function(_0x58b0bc){var _0x3db0b6=_0x43e3b0;return _0x19e785[_0x3db0b6('0x1e59')]=_0x58b0bc,_0xa34403();})[_0x43e3b0('0x223b')](function(_0x9fa399){var _0x4b0b08=_0x43e3b0;_0x161bfd['error']({'title':_0x9fa399['status']?_0x4b0b08('0x27f2')+_0x9fa399[_0x4b0b08('0x2833')]+_0x4b0b08('0x1b7c')+_0x9fa399[_0x4b0b08('0x1fd7')]:_0x4b0b08('0x1e86'),'msg':_0x9fa399[_0x4b0b08('0x2833')]?JSON[_0x4b0b08('0x3ad')](_0x9fa399['data']):_0x9fa399[_0x4b0b08('0x94f')]()});});}function _0x29f874(){return _0x2a6970(function(_0x15a436,_0x10b2a0){var _0x2fd281=a0_0x5325;_0x27324b['userProfileSection'][_0x2fd281('0x22d5')]({'userProfileId':_0x19e785[_0x2fd281('0x15a5')]['userProfileId'],'name':_0x2fd281('0xd61')})['$promise']['then'](function(_0x2021bf){var _0x375ec7=_0x2fd281,_0x47d2ba=_0x2021bf&&_0x2021bf['rows']?_0x2021bf[_0x375ec7('0x16a7')][0x0]:null;_0x15a436(_0x47d2ba);})['catch'](function(_0x1b681e){_0x10b2a0(_0x1b681e);});});}function _0xa34403(){return _0x2a6970(function(_0xfef56f,_0x53803a){var _0x2344eb=a0_0x5325;return _0x13bc24()[_0x2344eb('0xe19')](function(_0x56889f){var _0xb5ad9c=_0x2344eb;return _0x19e785['items']=_0x56889f[_0xb5ad9c('0x16a7')]?_0x56889f[_0xb5ad9c('0x16a7')]:[],_0x1f54a9['hasRole']('admin')?_0x56889f:_0x19e785[_0xb5ad9c('0x1e59')]?_0x19e785[_0xb5ad9c('0x1e59')]['autoAssociation']?_0x56889f:_0x1b27c3():null;})[_0x2344eb('0xe19')](function(_0x54f57a){var _0x29175d=_0x2344eb,_0x2fa80f=_0x54f57a&&_0x54f57a['rows']?_0x54f57a[_0x29175d('0x16a7')]:[];return _0x19e785[_0x29175d('0x1884')]=_0x32d445()[_0x29175d('0x65a')](_0x2fa80f,function(_0x33086d){var _0x2383d6=_0x29175d;return _0x32d445()['find'](_0x19e785['items'],{'id':_0x1f54a9[_0x2383d6('0x179e')](_0x2383d6('0xd14'))||_0x19e785[_0x2383d6('0x1e59')][_0x2383d6('0x11fd')]?_0x33086d['id']:_0x33086d[_0x2383d6('0x1104')]});}),_0x19e785['startingAllowedItems']=angular[_0x29175d('0x89')](_0x19e785[_0x29175d('0x1884')]),_0x19e785['items']['forEach'](function(_0x990857){var _0x393a72=_0x29175d,_0xbdd93d=_0x32d445()[_0x393a72('0xf15')](_0x19e785[_0x393a72('0x1884')],{'id':_0x990857['id']});_0x1f54a9['hasRole'](_0x393a72('0xd14'))?_0x990857['isValid']=!![]:_0x990857['isValid']=typeof _0xbdd93d!==_0x393a72('0x1143')?!![]:![];}),_0x66af06();})[_0x2344eb('0xe19')](function(_0x581863){var _0x2286af=_0x2344eb,_0x1db697=_0x581863&&_0x581863[_0x2286af('0x16a7')]?_0x581863['rows']:[];_0x19e785['selectedItems']=_0x32d445()[_0x2286af('0x65a')](_0x1db697,function(_0x2c5374){var _0x3f64e3=_0x2286af,_0x46ba26=_0x32d445()['find'](_0x19e785[_0x3f64e3('0xe4b')],{'id':_0x2c5374['id']});return _0x46ba26[_0x3f64e3('0x21e3')]=_0x2c5374['UserChatQueue']?_0x3f64e3('0x815')+_0x2c5374['UserChatQueue'][_0x3f64e3('0x21e3')]:'',_0x46ba26[_0x3f64e3('0x1b66')]=typeof _0x2c5374[_0x3f64e3('0x1b66')]!==_0x3f64e3('0x1143')?'<'+_0x2c5374[_0x3f64e3('0x1b66')]+'>':'',_0x46ba26;}),_0x19e785[_0x2286af('0xf79')]=angular[_0x2286af('0x89')](_0x19e785[_0x2286af('0x2273')]),_0x19e785['dualMultiselectOptions'][_0x2286af('0x2273')]=_0x19e785[_0x2286af('0x2273')],_0x19e785[_0x2286af('0xc00')][_0x2286af('0xe4b')]=_0x32d445()['differenceBy'](_0x19e785['allowedItems'],_0x19e785[_0x2286af('0xc00')]['selectedItems'],'id'),_0xfef56f();})[_0x2344eb('0x223b')](function(_0x23acd4){_0x53803a(_0x23acd4);});});}function _0x1b27c3(){return _0x2a6970(function(_0x5c5b13,_0x3caba5){var _0x581d55=a0_0x5325;return _0x27324b[_0x581d55('0xd49')][_0x581d55('0x22d5')]({'sectionId':_0x19e785['section']['id'],'nolimit':!![]})[_0x581d55('0xe59')][_0x581d55('0xe19')](function(_0x55fb42){_0x5c5b13(_0x55fb42);})['catch'](function(_0x4cc78e){_0x3caba5(_0x4cc78e);});});}function _0x66af06(){return _0x2a6970(function(_0x2da4ec,_0x248ba3){var _0x390ab4=a0_0x5325;return _0x27324b[_0x390ab4('0xfce')][_0x390ab4('0x14fd')]({'id':_0x19e785[_0x390ab4('0xfce')]['id'],'fields':_0x390ab4('0x244f'),'nolimit':!![],'role':_0x390ab4('0x108')})[_0x390ab4('0xe59')][_0x390ab4('0xe19')](function(_0x2d7278){_0x2da4ec(_0x2d7278);})[_0x390ab4('0x223b')](function(_0x308650){_0x248ba3(_0x308650);});});}function _0x13bc24(){return _0x2a6970(function(_0x418c42,_0x16f2cf){var _0x112fa8=a0_0x5325;return _0x27324b[_0x112fa8('0x10c6')][_0x112fa8('0x22d5')]({'fields':_0x112fa8('0x244f'),'nolimit':!![],'role':_0x112fa8('0x108')})['$promise'][_0x112fa8('0xe19')](function(_0x2be78a){_0x418c42(_0x2be78a);})['catch'](function(_0x5bea7f){_0x16f2cf(_0x5bea7f);});});}function _0x3a924b(_0xe95819){return _0x2a6970(function(_0xac02b5,_0x55c455){var _0x465e67=a0_0x5325;_0x32d445()[_0x465e67('0x14b4')](_0xe95819)?_0xac02b5():_0x27324b[_0x465e67('0xfce')][_0x465e67('0x2271')]({'id':_0x19e785[_0x465e67('0xfce')]['id'],'ids':_0x32d445()[_0x465e67('0x65a')](_0xe95819,'id')})[_0x465e67('0xe59')][_0x465e67('0xe19')](function(){_0xac02b5();})['catch'](function(_0xc56110){_0x55c455(_0xc56110);});});}function _0x404b15(_0x25327b){return _0x2a6970(function(_0x25adf1,_0x292dc1){var _0x330d14=a0_0x5325;_0x32d445()[_0x330d14('0x14b4')](_0x25327b)?_0x25adf1():_0x27324b[_0x330d14('0xfce')][_0x330d14('0x6aa')]({'id':_0x19e785[_0x330d14('0xfce')]['id'],'ids':_0x32d445()[_0x330d14('0x65a')](_0x25327b,'id')})['$promise'][_0x330d14('0xe19')](function(){_0x25adf1();})[_0x330d14('0x223b')](function(_0x56435a){_0x292dc1(_0x56435a);});});}function _0x1c6242(){var _0x178a33=_0x39e846,_0x332415=_0x32d445()['differenceBy'](_0x19e785[_0x178a33('0xf79')],_0x19e785[_0x178a33('0x2273')],'id'),_0x5752cb=_0x32d445()[_0x178a33('0x501')](_0x19e785[_0x178a33('0x2273')],_0x19e785['startingSelectedItems'],'id');return _0x404b15(_0x332415)[_0x178a33('0xe19')](function(){return _0x3a924b(_0x5752cb);})['then'](function(){var _0x3ef950=_0x178a33;_0x19e785[_0x3ef950('0x16e7')]=![],_0x19e785[_0x3ef950('0x286c')]=angular[_0x3ef950('0x89')](_0x19e785[_0x3ef950('0x1884')]),_0x19e785[_0x3ef950('0xf79')]=angular['copy'](_0x19e785[_0x3ef950('0x2273')]),_0x161bfd['success']({'title':_0x3ef950('0x1dca'),'msg':_0x3ef950('0x25d')});})[_0x178a33('0x223b')](function(_0x150c31){var _0xd01489=_0x178a33;_0x161bfd[_0xd01489('0x8c8')]({'title':_0x150c31[_0xd01489('0x2833')]?_0xd01489('0x27f2')+_0x150c31[_0xd01489('0x2833')]+_0xd01489('0x1b7c')+_0x150c31[_0xd01489('0x1fd7')]:_0xd01489('0x2168'),'msg':_0x150c31['status']?JSON[_0xd01489('0x3ad')](_0x150c31[_0xd01489('0x11d0')]):_0x150c31[_0xd01489('0x94f')]()});});}function _0x3aec81(){var _0x436ba5=_0x39e846;_0x21a32e[_0x436ba5('0x11ed')]();}}const _0x30f8df=_0x48b414;_0x36b17b[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty','api',_0xb635d2('0xfce'),'$translate','Auth','crudPermissions'];function _0x36b17b(_0x5fc8e6,_0x9fba43,_0x26ade3,_0x2fafdf,_0x327d2f,_0x4478f1,_0x288a29,_0x478888){var _0x1afd15=_0xb635d2,_0x482d89=this;_0x482d89[_0x1afd15('0x15a5')]=_0x288a29[_0x1afd15('0x1ef8')](),_0x482d89['chatQueue']=_0x327d2f,_0x482d89[_0x1afd15('0xb3d')]=_0x478888,_0x482d89['items']=[],_0x482d89[_0x1afd15('0x1884')]=[],_0x482d89['selectedItems']=[],_0x482d89['startingAllowedItems']=[],_0x482d89[_0x1afd15('0xf79')]=[],_0x482d89[_0x1afd15('0x16e7')]=![],_0x482d89['dualMultiselectOptions']={'readOnly':!_0x482d89[_0x1afd15('0xb3d')]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'name','line2':'','line3':'','labelAll':_0x4478f1[_0x1afd15('0x2159')](_0x1afd15('0x1d5b')),'labelSelected':_0x4478f1[_0x1afd15('0x2159')]('CHAT.SELECTED_TEAMS'),'transferCallback':function _0x1f71b4(){var _0x470451=_0x1afd15,_0x3cc0fd=_0x32d445()[_0x470451('0x118')](_0x482d89[_0x470451('0xf79')],_0x482d89[_0x470451('0x2273')],'id');_0x482d89[_0x470451('0x16e7')]=_0x32d445()[_0x470451('0x14b4')](_0x3cc0fd)?![]:!![];}},_0x482d89[_0x1afd15('0x888')]=_0x189ff8,_0x482d89[_0x1afd15('0xc30')]=_0x5436a9,_0x482d89[_0x1afd15('0x2584')]=_0x2f7b74;function _0x189ff8(){var _0x21e104=_0x1afd15;return _0x288a29[_0x21e104('0x179e')](_0x21e104('0xd14'))?_0x4e9683()['catch'](function(_0x594ae8){var _0x5d38a8=_0x21e104;_0x26ade3[_0x5d38a8('0x8c8')]({'title':_0x594ae8[_0x5d38a8('0x2833')]?_0x5d38a8('0x27f2')+_0x594ae8[_0x5d38a8('0x2833')]+_0x5d38a8('0x1b7c')+_0x594ae8[_0x5d38a8('0x1fd7')]:'SYSTEM:GET_TEAMS','msg':_0x594ae8[_0x5d38a8('0x2833')]?JSON[_0x5d38a8('0x3ad')](_0x594ae8['data']):_0x594ae8[_0x5d38a8('0x94f')]()});}):_0x34e29b()[_0x21e104('0xe19')](function(_0x196d6c){var _0x2c2086=_0x21e104;return _0x482d89[_0x2c2086('0x1e59')]=_0x196d6c,_0x4e9683();})[_0x21e104('0x223b')](function(_0x469e65){var _0x2e3c51=_0x21e104;_0x26ade3[_0x2e3c51('0x8c8')]({'title':_0x469e65[_0x2e3c51('0x2833')]?_0x2e3c51('0x27f2')+_0x469e65[_0x2e3c51('0x2833')]+_0x2e3c51('0x1b7c')+_0x469e65[_0x2e3c51('0x1fd7')]:'SYSTEM:GET_TEAMS','msg':_0x469e65[_0x2e3c51('0x2833')]?JSON[_0x2e3c51('0x3ad')](_0x469e65[_0x2e3c51('0x11d0')]):_0x469e65['toString']()});});}function _0x34e29b(){return _0x9fba43(function(_0x3a785a,_0x4f8b35){var _0x4810d8=a0_0x5325;_0x2fafdf[_0x4810d8('0xb59')][_0x4810d8('0x22d5')]({'userProfileId':_0x482d89[_0x4810d8('0x15a5')]['userProfileId'],'name':_0x4810d8('0x1d54')})['$promise'][_0x4810d8('0xe19')](function(_0x657a00){var _0x5e1707=_0x4810d8,_0x30c129=_0x657a00&&_0x657a00[_0x5e1707('0x16a7')]?_0x657a00['rows'][0x0]:null;_0x3a785a(_0x30c129);})[_0x4810d8('0x223b')](function(_0x3535e9){_0x4f8b35(_0x3535e9);});});}function _0x4e9683(){return _0x9fba43(function(_0x38861f,_0x5f4357){var _0x49a6be=a0_0x5325;return _0x506ca3()['then'](function(_0x3204ac){var _0x1f2d2f=a0_0x5325;return _0x482d89[_0x1f2d2f('0xe4b')]=_0x3204ac[_0x1f2d2f('0x16a7')]?_0x3204ac['rows']:[],_0x288a29[_0x1f2d2f('0x179e')](_0x1f2d2f('0xd14'))?_0x3204ac:_0x482d89[_0x1f2d2f('0x1e59')]?_0x482d89[_0x1f2d2f('0x1e59')]['autoAssociation']?_0x3204ac:_0x52edfe():null;})[_0x49a6be('0xe19')](function(_0x456d33){var _0xf591af=_0x49a6be,_0xaaf135=_0x456d33&&_0x456d33[_0xf591af('0x16a7')]?_0x456d33[_0xf591af('0x16a7')]:[];return _0x482d89[_0xf591af('0x1884')]=_0x32d445()[_0xf591af('0x65a')](_0xaaf135,function(_0x31cbb4){var _0x2d5e4b=_0xf591af;return _0x32d445()['find'](_0x482d89['items'],{'id':_0x288a29[_0x2d5e4b('0x179e')](_0x2d5e4b('0xd14'))||_0x482d89['section'][_0x2d5e4b('0x11fd')]?_0x31cbb4['id']:_0x31cbb4[_0x2d5e4b('0x1104')]});}),_0x482d89[_0xf591af('0xe4b')][_0xf591af('0x1d7e')](function(_0x377629){var _0x24aacb=_0xf591af,_0x283114=_0x32d445()[_0x24aacb('0xf15')](_0x482d89[_0x24aacb('0x1884')],{'id':_0x377629['id']});_0x288a29[_0x24aacb('0x179e')](_0x24aacb('0xd14'))?_0x377629[_0x24aacb('0x1768')]=!![]:_0x377629[_0x24aacb('0x1768')]=typeof _0x283114!==_0x24aacb('0x1143')?!![]:![];}),_0x33cc8b();})[_0x49a6be('0xe19')](function(_0x5eec71){var _0x1fb20a=_0x49a6be,_0x452262=_0x5eec71&&_0x5eec71[_0x1fb20a('0x16a7')]?_0x5eec71['rows']:[];_0x482d89['selectedItems']=_0x32d445()[_0x1fb20a('0x65a')](_0x452262,function(_0x2d5ba6){var _0xe7f55f=_0x1fb20a;return _0x32d445()[_0xe7f55f('0xf15')](_0x482d89[_0xe7f55f('0xe4b')],{'id':_0x2d5ba6['id']});}),_0x482d89[_0x1fb20a('0xf79')]=angular[_0x1fb20a('0x89')](_0x482d89[_0x1fb20a('0x2273')]),_0x482d89['dualMultiselectOptions'][_0x1fb20a('0x2273')]=_0x482d89[_0x1fb20a('0x2273')],_0x482d89[_0x1fb20a('0xc00')][_0x1fb20a('0xe4b')]=_0x32d445()['differenceBy'](_0x482d89[_0x1fb20a('0x1884')],_0x482d89['dualMultiselectOptions'][_0x1fb20a('0x2273')],'id'),_0x38861f();})[_0x49a6be('0x223b')](function(_0x463c00){_0x5f4357(_0x463c00);});});}function _0x52edfe(){return _0x9fba43(function(_0x4d8c0e,_0x5b744f){var _0x5cc0a5=a0_0x5325;return _0x2fafdf[_0x5cc0a5('0xd49')]['get']({'sectionId':_0x482d89[_0x5cc0a5('0x1e59')]['id'],'nolimit':!![]})['$promise'][_0x5cc0a5('0xe19')](function(_0x18f12b){_0x4d8c0e(_0x18f12b);})[_0x5cc0a5('0x223b')](function(_0x4446cc){_0x5b744f(_0x4446cc);});});}function _0x33cc8b(){return _0x9fba43(function(_0x15c2fc,_0x1e1b9f){var _0x5ded99=a0_0x5325;return _0x2fafdf[_0x5ded99('0xfce')]['getTeams']({'id':_0x482d89['chatQueue']['id'],'fields':_0x5ded99('0x104'),'nolimit':!![]})['$promise'][_0x5ded99('0xe19')](function(_0x51b49f){_0x15c2fc(_0x51b49f);})['catch'](function(_0xcf17ce){_0x1e1b9f(_0xcf17ce);});});}function _0x506ca3(){return _0x9fba43(function(_0x430ead,_0xa1ed0){var _0x3e67f2=a0_0x5325;return _0x2fafdf['team'][_0x3e67f2('0x22d5')]({'fields':_0x3e67f2('0x104'),'nolimit':!![]})[_0x3e67f2('0xe59')]['then'](function(_0xf769b3){_0x430ead(_0xf769b3);})['catch'](function(_0x15a390){_0xa1ed0(_0x15a390);});});}function _0x1feb01(_0x332d5c){return _0x9fba43(function(_0x2e5f43,_0x349826){var _0x44266f=a0_0x5325;_0x32d445()[_0x44266f('0x14b4')](_0x332d5c)?_0x2e5f43():_0x2fafdf[_0x44266f('0xfce')]['addTeams']({'id':_0x482d89[_0x44266f('0xfce')]['id'],'ids':_0x32d445()[_0x44266f('0x65a')](_0x332d5c,'id')})[_0x44266f('0xe59')][_0x44266f('0xe19')](function(){_0x2e5f43();})['catch'](function(_0x52246c){_0x349826(_0x52246c);});});}function _0x1f914e(_0x56de80){return _0x9fba43(function(_0x24667d,_0x136e1b){var _0x1f91cd=a0_0x5325;_0x32d445()[_0x1f91cd('0x14b4')](_0x56de80)?_0x24667d():_0x2fafdf['chatQueue'][_0x1f91cd('0x151a')]({'id':_0x482d89[_0x1f91cd('0xfce')]['id'],'ids':_0x32d445()[_0x1f91cd('0x65a')](_0x56de80,'id')})[_0x1f91cd('0xe59')][_0x1f91cd('0xe19')](function(){_0x24667d();})[_0x1f91cd('0x223b')](function(_0x2c0c76){_0x136e1b(_0x2c0c76);});});}function _0x5436a9(){var _0x4ea7a4=_0x1afd15,_0x24f867=_0x32d445()[_0x4ea7a4('0x501')](_0x482d89[_0x4ea7a4('0xf79')],_0x482d89[_0x4ea7a4('0x2273')],'id'),_0xd0e687=_0x32d445()[_0x4ea7a4('0x501')](_0x482d89[_0x4ea7a4('0x2273')],_0x482d89[_0x4ea7a4('0xf79')],'id');return _0x1f914e(_0x24f867)[_0x4ea7a4('0xe19')](function(){return _0x1feb01(_0xd0e687);})['then'](function(){var _0x4a91ab=_0x4ea7a4;_0x482d89[_0x4a91ab('0x16e7')]=![],_0x482d89[_0x4a91ab('0x286c')]=angular[_0x4a91ab('0x89')](_0x482d89[_0x4a91ab('0x1884')]),_0x482d89[_0x4a91ab('0xf79')]=angular[_0x4a91ab('0x89')](_0x482d89[_0x4a91ab('0x2273')]),_0x26ade3[_0x4a91ab('0x425')]({'title':_0x4a91ab('0x1dca'),'msg':_0x4a91ab('0x22e1')});})[_0x4ea7a4('0x223b')](function(_0x45b718){var _0x2f674c=_0x4ea7a4;_0x26ade3['error']({'title':_0x45b718[_0x2f674c('0x2833')]?'API:'+_0x45b718[_0x2f674c('0x2833')]+'\x20-\x20'+_0x45b718[_0x2f674c('0x1fd7')]:_0x2f674c('0x2168'),'msg':_0x45b718['status']?JSON[_0x2f674c('0x3ad')](_0x45b718[_0x2f674c('0x11d0')]):_0x45b718['toString']()});});}function _0x2f7b74(){var _0x25c378=_0x1afd15;_0x5fc8e6[_0x25c378('0x11ed')]();}}const _0x5d49d1=_0x36b17b;_0x4210bc[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),'setting','api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),'chatQueue',_0xb635d2('0xb59')];function _0x4210bc(_0x54967e,_0x1b79b9,_0x359d91,_0x2533d7,_0x45fd97,_0x2446e3,_0x2892c0,_0x558b24,_0x4479c6,_0x5ce38e,_0x185cce,_0x5f4067){var _0x1f72b1=_0xb635d2,_0x101845=this;_0x101845[_0x1f72b1('0x15a5')]=_0x5ce38e[_0x1f72b1('0x1ef8')](),_0x101845[_0x1f72b1('0x5c1')]=_0x2446e3,_0x101845[_0x1f72b1('0x22f1')]=_0x2892c0,_0x101845[_0x1f72b1('0x25ac')]=_0x101845['setting'][_0x1f72b1('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x101845[_0x1f72b1('0x2170')]=_0x1b79b9[_0x1f72b1('0xec0')]()+'://'+_0x1b79b9[_0x1f72b1('0x3b7')](),_0x101845[_0x1f72b1('0xfce')]=_0x185cce||_0x54967e[_0x1f72b1('0x2ef')][_0x1f72b1('0xfce')]||{},_0x101845[_0x1f72b1('0xb59')]=_0x5f4067&&_0x5f4067[_0x1f72b1('0x148b')]==0x1?_0x5f4067[_0x1f72b1('0x16a7')][0x0]:null,_0x101845[_0x1f72b1('0xb3d')]=_0x5ce38e[_0x1f72b1('0xd31')](_0x101845['userProfileSection']?_0x101845['userProfileSection'][_0x1f72b1('0xb3d')]:null),_0x101845['hasModulePermissions']={},_0x101845['selectedTab']=_0x54967e['params'][_0x1f72b1('0x435')]||0x0,_0x101845[_0x1f72b1('0x23f1')]=_0x50ee0c,_0x101845[_0x1f72b1('0x1407')]=_0x303c26,_0x101845[_0x1f72b1('0xbdc')]=_0x4479c6[_0x1f72b1('0x1e67')],_0x101845[_0x1f72b1('0x1f8b')]=_0x18ffae,_0x101845[_0x1f72b1('0xf99')]=_0x51388d;function _0x50ee0c(_0x1993f8,_0x5c8754){var _0x3b2902=_0x1f72b1;_0x359d91['show']({'controller':_0x3b2902('0x24c6'),'controllerAs':'vm','templateUrl':_0x1bafec,'parent':angular[_0x3b2902('0x24a1')](_0x2533d7[_0x3b2902('0x19b2')]),'targetEvent':_0x5c8754,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1993f8,'chatQueues':_0x101845[_0x3b2902('0x1bfa')]?_0x101845[_0x3b2902('0x1bfa')][_0x3b2902('0x16a7')]:[],'crudPermissions':_0x101845['crudPermissions']}});}function _0x303c26(_0x28e988,_0x44c03b){var _0x4d56c1=_0x1f72b1;_0x359d91[_0x4d56c1('0x26b2')]({'controller':'ChatQueueagentaddController','controllerAs':'vm','templateUrl':_0x10a3e1,'parent':angular['element'](_0x2533d7[_0x4d56c1('0x19b2')]),'targetEvent':_0x44c03b,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x28e988,'chatQueues':_0x101845['chatQueues']?_0x101845[_0x4d56c1('0x1bfa')][_0x4d56c1('0x16a7')]:[],'crudPermissions':_0x101845[_0x4d56c1('0xb3d')],'realtime':![]}});}function _0x18ffae(){var _0x3f4907=_0x1f72b1;_0x54967e['go']('app.chat.chatQueues',{},{'reload':_0x3f4907('0x1949')});}function _0x51388d(){var _0x59bf07=_0x1f72b1;_0x558b24['chatQueue'][_0x59bf07('0xa70')]({'id':_0x101845['chatQueue']['id']},_0x101845[_0x59bf07('0xfce')])[_0x59bf07('0xe59')][_0x59bf07('0xe19')](function(){var _0x46aead=_0x59bf07;_0x4479c6['success']({'title':'ChatQueue\x20updated!','msg':_0x101845[_0x46aead('0xfce')][_0x46aead('0x2623')]?_0x101845['chatQueue'][_0x46aead('0x2623')]+_0x46aead('0x283b'):''});})['catch'](function(_0x119078){var _0x38f294=_0x59bf07;_0x4479c6[_0x38f294('0x8c8')]({'title':_0x119078[_0x38f294('0x2833')]?'API:'+_0x119078[_0x38f294('0x2833')]+_0x38f294('0x1b7c')+_0x119078[_0x38f294('0x1fd7')]:'SYSTEM:GETchatQueue','msg':_0x119078['data']?JSON['stringify'](_0x119078[_0x38f294('0x11d0')]):_0x119078['toString']()});});}}const _0x7039ec=_0x4210bc,_0x3b8c1b=_0x59426a['p']+_0xb635d2('0x26c9'),_0x5bc1c0=_0x59426a['p']+_0xb635d2('0x82e');_0x245c1a[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),'$state','$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),'chatWebsites',_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x245c1a(_0x4b5393,_0x345d53,_0xea0085,_0x3a2585,_0x100ef1,_0x312ba5,_0x26d2a3,_0x34897f,_0x127f37,_0x4f371f,_0x1a9056,_0x16494b,_0x1ca771,_0x528798,_0x415405,_0x1ffb93,_0x301773){var _0x46f1ae=_0xb635d2,_0x4917b0=this;_0x4917b0[_0x46f1ae('0x5c1')]=_0x1ffb93,_0x4917b0[_0x46f1ae('0x22f1')]=_0x301773,_0x4917b0[_0x46f1ae('0x15a5')]=_0x415405[_0x46f1ae('0x1ef8')](),_0x4917b0[_0x46f1ae('0x174')]=_0x127f37||{'count':0x0,'rows':[]},_0x4917b0[_0x46f1ae('0x154f')]=_0x4f371f,_0x4917b0['userProfileSection']=_0x1a9056&&_0x1a9056[_0x46f1ae('0x148b')]==0x1?_0x1a9056[_0x46f1ae('0x16a7')][0x0]:null,_0x4917b0[_0x46f1ae('0xb3d')]=_0x415405[_0x46f1ae('0xd31')](_0x4917b0[_0x46f1ae('0xb59')]?_0x4917b0['userProfileSection']['crudPermissions']:null),_0x4917b0[_0x46f1ae('0x19b6')]=_0x46f1ae('0x174'),_0x4917b0[_0x46f1ae('0x14d6')]='',_0x4917b0[_0x46f1ae('0x190c')]=null,_0x4917b0['selectedChatWebsites']=[],_0x4917b0[_0x46f1ae('0xa16')]={'fields':_0x46f1ae('0x189a'),'sort':_0x46f1ae('0x7e8'),'limit':0xa,'page':0x1},_0x4917b0[_0x46f1ae('0x8ff')]=_0x32d445()['keyBy']([{'option':_0x46f1ae('0x17d7'),'value':_0x46f1ae('0xfdb')},{'option':_0x46f1ae('0x1822'),'value':_0x46f1ae('0x1f35')},{'option':_0x46f1ae('0x692'),'value':_0x46f1ae('0x3f9')}],function(_0x2b24bc){var _0x233acb=_0x46f1ae;return _0x32d445()[_0x233acb('0x1b42')](_0x2b24bc[_0x233acb('0x2')],new RegExp('\x27','g'),'');}),_0x4917b0[_0x46f1ae('0xace')]=_0x32d445()[_0x46f1ae('0x226f')]([{'option':_0x46f1ae('0xbce'),'value':_0x46f1ae('0xbf5')},{'option':'Squared','value':_0x46f1ae('0x8fa')}],function(_0x4ab03e){var _0x1d790d=_0x46f1ae;return _0x32d445()['replace'](_0x4ab03e[_0x1d790d('0x2')],new RegExp('\x27','g'),'');}),_0x4917b0['arrayalignment']=_0x32d445()[_0x46f1ae('0x226f')]([{'option':'bottom_right','value':'\x27bottom_right\x27'},{'option':_0x46f1ae('0xf7c'),'value':_0x46f1ae('0x223e')},{'option':_0x46f1ae('0xe4c'),'value':_0x46f1ae('0x2852')}],function(_0x3d2290){var _0x40ad29=_0x46f1ae;return _0x32d445()[_0x40ad29('0x1b42')](_0x3d2290[_0x40ad29('0x2')],new RegExp('\x27','g'),'');}),_0x4917b0[_0x46f1ae('0x20ef')]=_0x32d445()[_0x46f1ae('0x226f')]([{'option':'alternate','value':_0x46f1ae('0x23dc')},{'option':_0x46f1ae('0x7fa'),'value':_0x46f1ae('0x1ecc')}],function(_0x260782){var _0x2ae0b2=_0x46f1ae;return _0x32d445()['replace'](_0x260782[_0x2ae0b2('0x2')],new RegExp('\x27','g'),'');}),_0x4917b0[_0x46f1ae('0xde3')]=_0x32d445()['keyBy']([{'option':_0x46f1ae('0x1394'),'value':_0x46f1ae('0x241d')},{'option':_0x46f1ae('0x41a'),'value':_0x46f1ae('0x1203')}],function(_0x5b5472){var _0x47528d=_0x46f1ae;return _0x32d445()[_0x47528d('0x1b42')](_0x5b5472['value'],new RegExp('\x27','g'),'');}),_0x4917b0[_0x46f1ae('0x16a0')]=_0x2fe177,_0x4917b0[_0x46f1ae('0x1d08')]=_0x5c3e3b,_0x4917b0[_0x46f1ae('0x254')]=_0x28a0f9,_0x4917b0['agentadddialog']=_0x442ec3,_0x4917b0[_0x46f1ae('0x1d9e')]=_0x14bd45,_0x4917b0[_0x46f1ae('0x425')]=_0x482960,_0x4917b0[_0x46f1ae('0x18a5')]=_0x14644f,_0x4917b0[_0x46f1ae('0xe70')]=_0x35142a,_0x4917b0[_0x46f1ae('0x1d6')]=_0x1ac6c4,_0x4917b0['exportSelectedChatWebsites']=_0x5b8693,_0x4917b0[_0x46f1ae('0x1b34')]=_0x270eda,_0x4917b0[_0x46f1ae('0xca6')]=_0x536f68,_0x4917b0[_0x46f1ae('0x2516')]=_0x1bcea9,_0x415405[_0x46f1ae('0x179e')](_0x46f1ae('0xd14'))?_0x16494b[_0x46f1ae('0x1bbd')][_0x46f1ae('0x22d5')]({'fields':_0x46f1ae('0x104'),'sort':_0x46f1ae('0x2623')})['$promise'][_0x46f1ae('0xe19')](function(_0x28eef5){var _0x132803=_0x46f1ae;_0x4917b0[_0x132803('0x9f8')]=_0x28eef5['rows']||[];})[_0x46f1ae('0x223b')](function(_0x5e6fc6){var _0x1f6c65=_0x46f1ae;_0x528798[_0x1f6c65('0x8c8')]({'title':_0x5e6fc6[_0x1f6c65('0x2833')]?_0x1f6c65('0x27f2')+_0x5e6fc6[_0x1f6c65('0x2833')]+'\x20-\x20'+_0x5e6fc6[_0x1f6c65('0x1fd7')]:_0x1f6c65('0x2012'),'msg':_0x5e6fc6['data']?JSON[_0x1f6c65('0x3ad')](_0x5e6fc6['data']):_0x5e6fc6[_0x1f6c65('0x94f')]()});}):_0x16494b[_0x46f1ae('0x1bbd')][_0x46f1ae('0x22d5')]({'fields':_0x46f1ae('0x104'),'sort':_0x46f1ae('0x2623')})[_0x46f1ae('0xe59')][_0x46f1ae('0xe19')](function(_0x53109b){var _0x24549a=_0x46f1ae;_0x4917b0[_0x24549a('0x9f8')]=_0x53109b['rows']||[];})['then'](function(){var _0xc8500b=_0x46f1ae;return _0x16494b[_0xc8500b('0xb59')][_0xc8500b('0x22d5')]({'userProfileId':_0x4917b0[_0xc8500b('0x15a5')]['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x46f1ae('0xe19')](function(_0x15fd28){var _0x27bd63=_0x46f1ae,_0x1caa32=_0x15fd28&&_0x15fd28[_0x27bd63('0x16a7')]?_0x15fd28[_0x27bd63('0x16a7')][0x0]:null;if(!_0x1caa32){var _0xc940fe=[],_0x276051=null;_0x4917b0[_0x27bd63('0xcda')]&&(_0x276051=_0x32d445()['find'](_0x4917b0['lists'],{'id':Number(_0x4917b0[_0x27bd63('0xcda')]['ListId'])}));for(var _0x194aa4=0x0;_0x194aa4<_0x4917b0[_0x27bd63('0x9f8')][_0x27bd63('0x25ae')];_0x194aa4++){_0x276051&&_0x4917b0['lists'][_0x194aa4]['id']===_0x276051['id']&&(_0x4917b0[_0x27bd63('0x9f8')][_0x194aa4]['canSelect']=![],_0xc940fe['push'](_0x4917b0[_0x27bd63('0x9f8')][_0x194aa4]));}_0x4917b0[_0x27bd63('0x9f8')]=_0xc940fe;}else{if(!_0x1caa32[_0x27bd63('0x11fd')])return _0x16494b[_0x27bd63('0xd49')][_0x27bd63('0x22d5')]({'sectionId':_0x1caa32['id']})['$promise'][_0x27bd63('0xe19')](function(_0x481e0f){var _0xad7eee=_0x27bd63,_0x6d4050=_0x32d445()[_0xad7eee('0x65a')](_0x481e0f[_0xad7eee('0x16a7')],function(_0x13ba17){var _0x14364c=_0xad7eee;return _0x32d445()[_0x14364c('0xf15')](_0x4917b0[_0x14364c('0x9f8')],{'id':_0x13ba17[_0x14364c('0x1104')]});}),_0x2a6ce7=null;_0x4917b0[_0xad7eee('0xcda')]&&(_0x2a6ce7=_0x32d445()['find'](_0x4917b0[_0xad7eee('0x9f8')],{'id':Number(_0x4917b0[_0xad7eee('0xcda')][_0xad7eee('0x2463')])}));if(_0x2a6ce7&&!_0x32d445()[_0xad7eee('0x201a')](_0x6d4050,['id',_0x2a6ce7['id']])){var _0x2164ae=_0x32d445()['find'](_0x4917b0[_0xad7eee('0x9f8')],{'id':_0x2a6ce7['id']});_0x2164ae['canSelect']=![],_0x6d4050[_0xad7eee('0xb76')](_0x2164ae);}_0x4917b0[_0xad7eee('0x9f8')]=_0x6d4050;});}})[_0x46f1ae('0x223b')](function(_0x290506){var _0x75c85b=_0x46f1ae;_0x528798[_0x75c85b('0x8c8')]({'title':_0x290506[_0x75c85b('0x2833')]?_0x75c85b('0x27f2')+_0x290506[_0x75c85b('0x2833')]+_0x75c85b('0x1b7c')+_0x290506[_0x75c85b('0x1fd7')]:_0x75c85b('0xd65'),'msg':_0x290506[_0x75c85b('0x11d0')]?JSON['stringify'](_0x290506['data']):_0x290506['toString']()});}),_0x415405['hasRole'](_0x46f1ae('0xd14'))?_0x16494b[_0x46f1ae('0x134c')][_0x46f1ae('0x22d5')]({'fields':_0x46f1ae('0x104'),'sort':_0x46f1ae('0x2623'),'IntervalId':_0x46f1ae('0x1046')})['$promise'][_0x46f1ae('0xe19')](function(_0x4ec56d){_0x4917b0['interval']=_0x4ec56d['rows']||[];})[_0x46f1ae('0x223b')](function(_0x33cdf1){var _0x70353d=_0x46f1ae;_0x528798[_0x70353d('0x8c8')]({'title':_0x33cdf1['status']?'API:'+_0x33cdf1[_0x70353d('0x2833')]+_0x70353d('0x1b7c')+_0x33cdf1['statusText']:_0x70353d('0xb51'),'msg':_0x33cdf1[_0x70353d('0x11d0')]?JSON[_0x70353d('0x3ad')](_0x33cdf1[_0x70353d('0x11d0')]):_0x33cdf1[_0x70353d('0x94f')]()});}):_0x16494b[_0x46f1ae('0x134c')]['get']({'fields':_0x46f1ae('0x104'),'sort':_0x46f1ae('0x2623'),'IntervalId':_0x46f1ae('0x1046')})['$promise'][_0x46f1ae('0xe19')](function(_0x2c1136){var _0x51f866=_0x46f1ae;_0x4917b0[_0x51f866('0x134c')]=_0x2c1136[_0x51f866('0x16a7')]||[];})[_0x46f1ae('0xe19')](function(){var _0x1cba57=_0x46f1ae;return _0x16494b[_0x1cba57('0xb59')][_0x1cba57('0x22d5')]({'userProfileId':_0x4917b0[_0x1cba57('0x15a5')][_0x1cba57('0x1d04')],'sectionId':0x3ec})[_0x1cba57('0xe59')];})[_0x46f1ae('0xe19')](function(_0x1a801f){var _0x544827=_0x46f1ae,_0x637a0d=_0x1a801f&&_0x1a801f['rows']?_0x1a801f[_0x544827('0x16a7')][0x0]:null;if(!_0x637a0d){var _0x25f5ef=[],_0x535970=null;_0x4917b0[_0x544827('0xcda')]&&(_0x535970=_0x32d445()[_0x544827('0xf15')](_0x4917b0[_0x544827('0x134c')],{'id':Number(_0x4917b0[_0x544827('0xcda')][_0x544827('0x1fc1')])}));for(var _0x3aedde=0x0;_0x3aedde<_0x4917b0[_0x544827('0x134c')][_0x544827('0x25ae')];_0x3aedde++){_0x535970&&_0x4917b0[_0x544827('0x134c')][_0x3aedde]['id']===_0x535970['id']&&(_0x4917b0[_0x544827('0x134c')][_0x3aedde]['canSelect']=![],_0x25f5ef[_0x544827('0xb76')](_0x4917b0[_0x544827('0x134c')][_0x3aedde]));}_0x4917b0[_0x544827('0x134c')]=_0x25f5ef;}else{if(!_0x637a0d['autoAssociation'])return _0x16494b[_0x544827('0xd49')][_0x544827('0x22d5')]({'sectionId':_0x637a0d['id']})['$promise'][_0x544827('0xe19')](function(_0x23e6b9){var _0x2c060e=_0x544827,_0x1ae6c2=_0x32d445()['map'](_0x23e6b9[_0x2c060e('0x16a7')],function(_0x5790a6){var _0x3e9724=_0x2c060e;return _0x32d445()['find'](_0x4917b0['interval'],{'id':_0x5790a6[_0x3e9724('0x1104')]});}),_0xedab54=null;_0x4917b0[_0x2c060e('0xcda')]&&(_0xedab54=_0x32d445()['find'](_0x4917b0[_0x2c060e('0x134c')],{'id':Number(_0x4917b0[_0x2c060e('0xcda')][_0x2c060e('0x1fc1')])}));if(_0xedab54&&!_0x32d445()['some'](_0x1ae6c2,['id',_0xedab54['id']])){var _0x5e1f72=_0x32d445()[_0x2c060e('0xf15')](_0x4917b0['interval'],{'id':_0xedab54['id']});_0x5e1f72[_0x2c060e('0x1e9d')]=![],_0x1ae6c2['push'](_0x5e1f72);}_0x4917b0[_0x2c060e('0x134c')]=_0x1ae6c2;});}})[_0x46f1ae('0x223b')](function(_0x20e260){var _0x2819ca=_0x46f1ae;_0x528798[_0x2819ca('0x8c8')]({'title':_0x20e260[_0x2819ca('0x2833')]?_0x2819ca('0x27f2')+_0x20e260['status']+_0x2819ca('0x1b7c')+_0x20e260[_0x2819ca('0x1fd7')]:_0x2819ca('0x2051'),'msg':_0x20e260[_0x2819ca('0x11d0')]?JSON['stringify'](_0x20e260['data']):_0x20e260[_0x2819ca('0x94f')]()});});function _0x2fe177(_0x2b4859){var _0x47807a=_0x46f1ae;_0xea0085['go'](_0x47807a('0x1e1e'),{'id':_0x2b4859['id'],'chatWebsite':_0x2b4859,'crudPermissions':_0x4917b0[_0x47807a('0xb3d')]});}function _0x5c3e3b(_0x57ffe9){_0xea0085['go']('app.chat.chatWebsites.edit',{'id':_0x57ffe9['id'],'tab':0xa});}function _0x28a0f9(_0x38819f){_0xea0085['go']('app.chat.chatWebsites.edit',{'id':_0x38819f['id'],'tab':0xb});}function _0x442ec3(_0x5b6862,_0x242b80){var _0x15d0da=_0x46f1ae;_0x100ef1[_0x15d0da('0x26b2')]({'controller':_0x15d0da('0x251'),'controllerAs':'vm','templateUrl':_0x3b8c1b,'parent':angular[_0x15d0da('0x24a1')](_0x312ba5['body']),'targetEvent':_0x242b80,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x5b6862,'chatWebsites':_0x4917b0[_0x15d0da('0x174')]?_0x4917b0[_0x15d0da('0x174')][_0x15d0da('0x16a7')]:[],'crudPermissions':_0x4917b0[_0x15d0da('0xb3d')],'realtime':![]}});}function _0x14bd45(_0x107268,_0x1eb0c7){var _0x2ad0f6=_0x46f1ae,_0x5e999b=_0x100ef1['confirm']()[_0x2ad0f6('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()['startCase'](_0x2ad0f6('0xcda'))+'?')[_0x2ad0f6('0x221c')](_0x2ad0f6('0xab2')+(_0x107268[_0x2ad0f6('0x2623')]||_0x2ad0f6('0xcda'))+_0x2ad0f6('0x27bb')+_0x2ad0f6('0x21bd'))[_0x2ad0f6('0x4d1')](_0x2ad0f6('0x6fb'))[_0x2ad0f6('0x1345')](_0x1eb0c7)['ok']('OK')[_0x2ad0f6('0x2c1')](_0x2ad0f6('0x17'));_0x100ef1[_0x2ad0f6('0x26b2')](_0x5e999b)[_0x2ad0f6('0xe19')](function(){_0x1ac6c4(_0x107268);},function(){var _0x13277c=_0x2ad0f6;console[_0x13277c('0x1fe9')]('CANCEL');});}var _0x659fe9=!![],_0x66734b=0x1;_0x4b5393[_0x46f1ae('0x107')](_0x46f1ae('0x20cb'),function(_0x2edd86,_0x372f44){var _0x4ce3d6=_0x46f1ae;_0x659fe9?_0x26d2a3(function(){_0x659fe9=![];}):(!_0x372f44&&(_0x66734b=_0x4917b0[_0x4ce3d6('0xa16')][_0x4ce3d6('0xc08')]),_0x2edd86!==_0x372f44&&(_0x4917b0['query'][_0x4ce3d6('0xc08')]=0x1),!_0x2edd86&&(_0x4917b0[_0x4ce3d6('0xa16')]['page']=_0x66734b),_0x4917b0[_0x4ce3d6('0x18a5')]());});function _0x482960(_0x1b1221){var _0x1d4982=_0x46f1ae;_0x4917b0[_0x1d4982('0x174')]=_0x1b1221||{'count':0x0,'rows':[]};}function _0x14644f(){var _0x41c2de=_0x46f1ae;_0x4917b0[_0x41c2de('0xa16')][_0x41c2de('0xab0')]=(_0x4917b0[_0x41c2de('0xa16')][_0x41c2de('0xc08')]-0x1)*_0x4917b0[_0x41c2de('0xa16')][_0x41c2de('0x1b6d')],_0x415405['hasRole'](_0x41c2de('0xd14'))?_0x4917b0[_0x41c2de('0x9c8')]=_0x16494b['chatWebsite']['get'](_0x4917b0['query'],_0x482960)['$promise']:(_0x4917b0[_0x41c2de('0xa16')]['id']=_0x4917b0[_0x41c2de('0x154f')]['id'],_0x4917b0[_0x41c2de('0xa16')][_0x41c2de('0x1e59')]=_0x41c2de('0x1331'),_0x4917b0[_0x41c2de('0x9c8')]=_0x16494b[_0x41c2de('0x154f')][_0x41c2de('0x14e6')](_0x4917b0[_0x41c2de('0xa16')],_0x482960)['$promise']);}function _0x35142a(_0x3d75b2,_0x2b708c){var _0x5c2624=_0x46f1ae;_0x100ef1[_0x5c2624('0x26b2')]({'controller':'CreateOrEditChatWebsiteDialogController','controllerAs':'vm','templateUrl':_0x5bc1c0,'parent':angular[_0x5c2624('0x24a1')](_0x312ba5[_0x5c2624('0x19b2')]),'targetEvent':_0x3d75b2,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x2b708c,'chatWebsites':_0x4917b0[_0x5c2624('0x174')][_0x5c2624('0x16a7')],'license':_0x4917b0[_0x5c2624('0x5c1')],'setting':_0x4917b0[_0x5c2624('0x22f1')],'crudPermissions':_0x4917b0['crudPermissions']}});}function _0x1ac6c4(_0x93e7f0){var _0x24fe9f=_0x46f1ae;_0x16494b[_0x24fe9f('0xcda')]['delete']({'id':_0x93e7f0['id']})[_0x24fe9f('0xe59')]['then'](function(){var _0x172a6c=_0x24fe9f;_0x32d445()['remove'](_0x4917b0[_0x172a6c('0x174')][_0x172a6c('0x16a7')],{'id':_0x93e7f0['id']}),_0x4917b0[_0x172a6c('0x174')][_0x172a6c('0x148b')]-=0x1,!_0x4917b0[_0x172a6c('0x174')]['rows']['length']&&_0x4917b0[_0x172a6c('0x18a5')](),_0x528798[_0x172a6c('0x425')]({'title':_0x32d445()[_0x172a6c('0x1df2')](_0x172a6c('0x17e3'))+_0x172a6c('0x1219'),'msg':_0x93e7f0[_0x172a6c('0x2623')]?_0x93e7f0[_0x172a6c('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x24fe9f('0x223b')](function(_0x362eb4){var _0x55dd74=_0x24fe9f;if(_0x362eb4[_0x55dd74('0x11d0')]&&_0x362eb4[_0x55dd74('0x11d0')][_0x55dd74('0xcd2')]&&_0x362eb4[_0x55dd74('0x11d0')]['errors']['length']){_0x4917b0['errors']=_0x362eb4[_0x55dd74('0x11d0')][_0x55dd74('0xcd2')]||[{'message':_0x362eb4['toString'](),'type':'SYSTEM:DELETEchatWebsite'}];for(var _0x5ce4ad=0x0;_0x5ce4ad<_0x362eb4[_0x55dd74('0x11d0')][_0x55dd74('0xcd2')][_0x55dd74('0x25ae')];_0x5ce4ad++){_0x528798['error']({'title':_0x362eb4['data'][_0x55dd74('0xcd2')][_0x5ce4ad][_0x55dd74('0x62e')],'msg':_0x362eb4[_0x55dd74('0x11d0')][_0x55dd74('0xcd2')][_0x5ce4ad][_0x55dd74('0x27e8')]});}}else _0x528798['error']({'title':_0x362eb4[_0x55dd74('0x2833')]?'API:'+_0x362eb4[_0x55dd74('0x2833')]+_0x55dd74('0x1b7c')+_0x362eb4[_0x55dd74('0x1fd7')]:_0x55dd74('0x2871'),'msg':_0x362eb4[_0x55dd74('0x11d0')]?JSON[_0x55dd74('0x3ad')](_0x362eb4[_0x55dd74('0x11d0')][_0x55dd74('0x27e8')]):_0x362eb4[_0x55dd74('0x27e8')]||_0x362eb4['toString']()});});}function _0x5b8693(){var _0x2f8552=_0x46f1ae,_0x5a242a=angular[_0x2f8552('0x89')](_0x4917b0[_0x2f8552('0x1857')]);return _0x4917b0[_0x2f8552('0x1857')]=[],_0x5a242a;}function _0x270eda(_0xd8c79a){var _0x10ccf2=_0x46f1ae,_0x5c1a4a=_0x100ef1[_0x10ccf2('0xa5')]()[_0x10ccf2('0x13e4')](_0x10ccf2('0x341'))[_0x10ccf2('0x221c')](''+_0x4917b0[_0x10ccf2('0x1857')][_0x10ccf2('0x25ae')]+_0x10ccf2('0x5bc')+'\x20will\x20be\x20deleted.')[_0x10ccf2('0x4d1')](_0x10ccf2('0x1a3d'))[_0x10ccf2('0x1345')](_0xd8c79a)['ok']('OK')[_0x10ccf2('0x2c1')](_0x10ccf2('0x17'));_0x100ef1[_0x10ccf2('0x26b2')](_0x5c1a4a)[_0x10ccf2('0xe19')](function(){var _0x5e3aaa=_0x10ccf2;_0x4917b0[_0x5e3aaa('0x1857')]['forEach'](function(_0x1a4453){_0x1ac6c4(_0x1a4453);}),_0x4917b0[_0x5e3aaa('0x1857')]=[];});}function _0x536f68(){var _0x3cf779=_0x46f1ae;_0x4917b0[_0x3cf779('0x1857')]=[];}function _0x1bcea9(){var _0x4eeb5d=_0x46f1ae;_0x4917b0[_0x4eeb5d('0x1857')]=_0x4917b0[_0x4eeb5d('0x174')][_0x4eeb5d('0x16a7')];}}const _0xa1db6d=_0x245c1a;_0x41f66b[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'chatWebsites','chatWebsite','api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x41f66b(_0x24dbfe,_0x290568,_0x3e466a,_0x5b4505,_0x406a81,_0x442f75,_0x278364,_0x478f5d,_0x6f4abc,_0x1ae8f4,_0x5c895d,_0x53ff18,_0x19c0d7,_0x3cb131){var _0x39cb11=_0xb635d2,_0x558d54=this;_0x558d54[_0x39cb11('0x15a5')]=_0x5c895d[_0x39cb11('0x1ef8')](),_0x558d54[_0x39cb11('0xcd2')]=[],_0x558d54[_0x39cb11('0x22f1')]=_0x19c0d7,_0x558d54['license']=_0x53ff18,_0x558d54[_0x39cb11('0xb3d')]=_0x3cb131,_0x558d54[_0x39cb11('0x1ccb')]={},_0x558d54['passwordPattern']=_0x558d54[_0x39cb11('0x22f1')]&&_0x558d54[_0x39cb11('0x22f1')][_0x39cb11('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x558d54['title']=_0x39cb11('0x184c'),_0x558d54[_0x39cb11('0xcda')]=angular[_0x39cb11('0x89')](_0x6f4abc),_0x558d54[_0x39cb11('0x174')]=_0x478f5d,_0x558d54[_0x39cb11('0x13d7')]=![];!_0x558d54[_0x39cb11('0xcda')]&&(_0x558d54[_0x39cb11('0xcda')]={'remote':_0x3e466a[_0x39cb11('0xec0')]()+'://'+_0x3e466a[_0x39cb11('0x3b7')]()+(_0x3e466a[_0x39cb11('0x11dc')]()?':'+_0x3e466a[_0x39cb11('0x11dc')]():''),'header_shape':_0x39cb11('0x2cf'),'alignment':'bottom_right','verticalAlignment':0x1e,'messagesAlignment':'alternate','IntervalId':_0x39cb11('0x1046'),'timezone':'null','waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x558d54[_0x39cb11('0x13e4')]=_0x39cb11('0x2497'),_0x558d54[_0x39cb11('0x13d7')]=!![]);_0x290568[_0x39cb11('0x2ef')]['id']&&(_0x558d54[_0x39cb11('0xcda')]['ChatWebsiteId']=_0x290568[_0x39cb11('0x2ef')]['id']);_0x558d54[_0x39cb11('0x4f8')]=_0x492c7b,_0x558d54[_0x39cb11('0x8ce')]=_0x35428f,_0x558d54[_0x39cb11('0x1d6')]=_0x324942,_0x558d54[_0x39cb11('0x2635')]=_0x2efd8a,_0x558d54['closeDialog']=_0x2a291c,_0x5c895d[_0x39cb11('0x179e')](_0x39cb11('0xd14'))?_0x1ae8f4[_0x39cb11('0x1bbd')][_0x39cb11('0x22d5')]({'fields':'id,name','sort':'name'})[_0x39cb11('0xe59')]['then'](function(_0x13ba09){var _0x1a4772=_0x39cb11;_0x558d54[_0x1a4772('0x9f8')]=_0x13ba09[_0x1a4772('0x16a7')]||[];})[_0x39cb11('0x223b')](function(_0x5db282){var _0x2b19c1=_0x39cb11;_0x278364[_0x2b19c1('0x8c8')]({'title':_0x5db282[_0x2b19c1('0x2833')]?'API:'+_0x5db282[_0x2b19c1('0x2833')]+'\x20-\x20'+_0x5db282['statusText']:_0x2b19c1('0x2012'),'msg':_0x5db282[_0x2b19c1('0x11d0')]?JSON[_0x2b19c1('0x3ad')](_0x5db282['data']):_0x5db282[_0x2b19c1('0x94f')]()});}):_0x1ae8f4[_0x39cb11('0x1bbd')][_0x39cb11('0x22d5')]({'fields':_0x39cb11('0x104'),'sort':_0x39cb11('0x2623')})[_0x39cb11('0xe59')]['then'](function(_0xba01b){_0x558d54['lists']=_0xba01b['rows']||[];})[_0x39cb11('0xe19')](function(){var _0x9cb56f=_0x39cb11;return _0x1ae8f4['userProfileSection'][_0x9cb56f('0x22d5')]({'userProfileId':_0x558d54[_0x9cb56f('0x15a5')][_0x9cb56f('0x1d04')],'sectionId':0x12d})[_0x9cb56f('0xe59')];})[_0x39cb11('0xe19')](function(_0x187e44){var _0x3eae05=_0x39cb11,_0x3a8016=_0x187e44&&_0x187e44[_0x3eae05('0x16a7')]?_0x187e44[_0x3eae05('0x16a7')][0x0]:null;if(!_0x3a8016){var _0x443ef7=[],_0xb09b2e=null;_0x558d54[_0x3eae05('0xcda')]&&(_0xb09b2e=_0x32d445()[_0x3eae05('0xf15')](_0x558d54[_0x3eae05('0x9f8')],{'id':Number(_0x558d54['chatWebsite'][_0x3eae05('0x2463')])}));for(var _0x29953a=0x0;_0x29953a<_0x558d54[_0x3eae05('0x9f8')][_0x3eae05('0x25ae')];_0x29953a++){_0xb09b2e&&_0x558d54[_0x3eae05('0x9f8')][_0x29953a]['id']===_0xb09b2e['id']&&(_0x558d54[_0x3eae05('0x9f8')][_0x29953a]['canSelect']=![],_0x443ef7[_0x3eae05('0xb76')](_0x558d54[_0x3eae05('0x9f8')][_0x29953a]));}_0x558d54[_0x3eae05('0x9f8')]=_0x443ef7;}else{if(!_0x3a8016[_0x3eae05('0x11fd')])return _0x1ae8f4[_0x3eae05('0xd49')]['get']({'sectionId':_0x3a8016['id']})['$promise'][_0x3eae05('0xe19')](function(_0x5d6123){var _0x2b96d0=_0x3eae05,_0x5916f4=_0x32d445()[_0x2b96d0('0x65a')](_0x5d6123[_0x2b96d0('0x16a7')],function(_0x4cae4d){var _0xc943ac=_0x2b96d0;return _0x32d445()[_0xc943ac('0xf15')](_0x558d54['lists'],{'id':_0x4cae4d[_0xc943ac('0x1104')]});}),_0x496a94=null;_0x558d54[_0x2b96d0('0xcda')]&&(_0x496a94=_0x32d445()[_0x2b96d0('0xf15')](_0x558d54['lists'],{'id':Number(_0x558d54[_0x2b96d0('0xcda')][_0x2b96d0('0x2463')])}));if(_0x496a94&&!_0x32d445()[_0x2b96d0('0x201a')](_0x5916f4,['id',_0x496a94['id']])){var _0xb27cc4=_0x32d445()[_0x2b96d0('0xf15')](_0x558d54[_0x2b96d0('0x9f8')],{'id':_0x496a94['id']});_0xb27cc4[_0x2b96d0('0x1e9d')]=![],_0x5916f4[_0x2b96d0('0xb76')](_0xb27cc4);}_0x558d54[_0x2b96d0('0x9f8')]=_0x5916f4;});}})[_0x39cb11('0x223b')](function(_0x1f8fd8){var _0x5c414b=_0x39cb11;_0x278364[_0x5c414b('0x8c8')]({'title':_0x1f8fd8['status']?_0x5c414b('0x27f2')+_0x1f8fd8[_0x5c414b('0x2833')]+_0x5c414b('0x1b7c')+_0x1f8fd8[_0x5c414b('0x1fd7')]:'SYSTEM:GETlists','msg':_0x1f8fd8['data']?JSON[_0x5c414b('0x3ad')](_0x1f8fd8[_0x5c414b('0x11d0')]):_0x1f8fd8[_0x5c414b('0x94f')]()});}),_0x5c895d['hasRole'](_0x39cb11('0xd14'))?_0x1ae8f4[_0x39cb11('0x134c')][_0x39cb11('0x22d5')]({'fields':_0x39cb11('0x104'),'sort':_0x39cb11('0x2623'),'IntervalId':_0x39cb11('0x1046')})['$promise'][_0x39cb11('0xe19')](function(_0x10a1d6){var _0x466ca4=_0x39cb11;_0x558d54[_0x466ca4('0x134c')]=_0x10a1d6['rows']||[];})[_0x39cb11('0x223b')](function(_0x1b0b89){var _0x154fb6=_0x39cb11;_0x278364[_0x154fb6('0x8c8')]({'title':_0x1b0b89[_0x154fb6('0x2833')]?_0x154fb6('0x27f2')+_0x1b0b89['status']+_0x154fb6('0x1b7c')+_0x1b0b89['statusText']:_0x154fb6('0xb51'),'msg':_0x1b0b89[_0x154fb6('0x11d0')]?JSON['stringify'](_0x1b0b89['data']):_0x1b0b89[_0x154fb6('0x94f')]()});}):_0x1ae8f4[_0x39cb11('0x134c')]['get']({'fields':_0x39cb11('0x104'),'sort':'name','IntervalId':'null'})[_0x39cb11('0xe59')][_0x39cb11('0xe19')](function(_0x49c970){var _0x544b7f=_0x39cb11;_0x558d54['interval']=_0x49c970[_0x544b7f('0x16a7')]||[];})[_0x39cb11('0xe19')](function(){var _0x2c2e81=_0x39cb11;return _0x1ae8f4[_0x2c2e81('0xb59')][_0x2c2e81('0x22d5')]({'userProfileId':_0x558d54[_0x2c2e81('0x15a5')]['userProfileId'],'sectionId':0x3ec})[_0x2c2e81('0xe59')];})[_0x39cb11('0xe19')](function(_0x5b225c){var _0x18a7cb=_0x39cb11,_0x30dba9=_0x5b225c&&_0x5b225c['rows']?_0x5b225c[_0x18a7cb('0x16a7')][0x0]:null;if(!_0x30dba9){var _0x126556=[],_0x448197=null;_0x558d54[_0x18a7cb('0xcda')]&&(_0x448197=_0x32d445()['find'](_0x558d54['interval'],{'id':Number(_0x558d54[_0x18a7cb('0xcda')][_0x18a7cb('0x1fc1')])}));for(var _0x2925de=0x0;_0x2925de<_0x558d54[_0x18a7cb('0x134c')][_0x18a7cb('0x25ae')];_0x2925de++){_0x448197&&_0x558d54[_0x18a7cb('0x134c')][_0x2925de]['id']===_0x448197['id']&&(_0x558d54['interval'][_0x2925de][_0x18a7cb('0x1e9d')]=![],_0x126556[_0x18a7cb('0xb76')](_0x558d54[_0x18a7cb('0x134c')][_0x2925de]));}_0x558d54['interval']=_0x126556;}else{if(!_0x30dba9[_0x18a7cb('0x11fd')])return _0x1ae8f4[_0x18a7cb('0xd49')][_0x18a7cb('0x22d5')]({'sectionId':_0x30dba9['id']})[_0x18a7cb('0xe59')][_0x18a7cb('0xe19')](function(_0x2ce4cb){var _0x2f22cc=_0x18a7cb,_0xa0c9ea=_0x32d445()[_0x2f22cc('0x65a')](_0x2ce4cb['rows'],function(_0x53b455){var _0x56ec72=_0x2f22cc;return _0x32d445()[_0x56ec72('0xf15')](_0x558d54['interval'],{'id':_0x53b455[_0x56ec72('0x1104')]});}),_0x23a88c=null;_0x558d54[_0x2f22cc('0xcda')]&&(_0x23a88c=_0x32d445()[_0x2f22cc('0xf15')](_0x558d54['interval'],{'id':Number(_0x558d54['chatWebsite'][_0x2f22cc('0x1fc1')])}));if(_0x23a88c&&!_0x32d445()['some'](_0xa0c9ea,['id',_0x23a88c['id']])){var _0x3b0463=_0x32d445()[_0x2f22cc('0xf15')](_0x558d54[_0x2f22cc('0x134c')],{'id':_0x23a88c['id']});_0x3b0463[_0x2f22cc('0x1e9d')]=![],_0xa0c9ea[_0x2f22cc('0xb76')](_0x3b0463);}_0x558d54['interval']=_0xa0c9ea;});}})[_0x39cb11('0x223b')](function(_0x24aa6c){var _0x45a7fc=_0x39cb11;_0x278364[_0x45a7fc('0x8c8')]({'title':_0x24aa6c[_0x45a7fc('0x2833')]?'API:'+_0x24aa6c[_0x45a7fc('0x2833')]+_0x45a7fc('0x1b7c')+_0x24aa6c[_0x45a7fc('0x1fd7')]:_0x45a7fc('0x2051'),'msg':_0x24aa6c['data']?JSON['stringify'](_0x24aa6c['data']):_0x24aa6c['toString']()});});function _0x492c7b(){var _0x3f7bce=_0x39cb11;_0x558d54['errors']=[],_0x1ae8f4[_0x3f7bce('0xcda')]['save'](_0x558d54[_0x3f7bce('0xcda')])[_0x3f7bce('0xe59')][_0x3f7bce('0xe19')](function(_0x2024b4){var _0x3d9f95=_0x3f7bce;_0x558d54[_0x3d9f95('0x174')]['unshift'](_0x2024b4[_0x3d9f95('0x250e')]()),_0x278364[_0x3d9f95('0x425')]({'title':'ChatWebsite\x20properly\x20created','msg':_0x558d54['chatWebsite'][_0x3d9f95('0x2623')]?_0x558d54['chatWebsite'][_0x3d9f95('0x2623')]+'\x20has\x20been\x20created!':''}),_0x2a291c(_0x2024b4);})['catch'](function(_0x36f848){var _0x261156=_0x3f7bce;if(_0x36f848[_0x261156('0x11d0')]&&_0x36f848[_0x261156('0x11d0')][_0x261156('0xcd2')]&&_0x36f848[_0x261156('0x11d0')][_0x261156('0xcd2')][_0x261156('0x25ae')]){_0x558d54[_0x261156('0xcd2')]=_0x36f848[_0x261156('0x11d0')][_0x261156('0xcd2')]||[{'message':_0x36f848[_0x261156('0x94f')](),'type':_0x261156('0x136a')}];for(var _0x22725b=0x0;_0x22725b<_0x36f848['data']['errors']['length'];_0x22725b+=0x1){_0x278364[_0x261156('0x8c8')]({'title':_0x36f848[_0x261156('0x11d0')][_0x261156('0xcd2')][_0x22725b][_0x261156('0x62e')],'msg':_0x36f848[_0x261156('0x11d0')][_0x261156('0xcd2')][_0x22725b][_0x261156('0x27e8')]});}}else _0x278364[_0x261156('0x8c8')]({'title':_0x36f848[_0x261156('0x2833')]?_0x261156('0x27f2')+_0x36f848[_0x261156('0x2833')]+_0x261156('0x1b7c')+_0x36f848[_0x261156('0x1fd7')]:_0x261156('0x136a'),'msg':_0x36f848[_0x261156('0x11d0')]?JSON['stringify'](_0x36f848[_0x261156('0x11d0')][_0x261156('0x27e8')]):_0x36f848['toString']()});});}function _0x35428f(){var _0x46c23c=_0x39cb11;_0x558d54[_0x46c23c('0xcd2')]=[],_0x1ae8f4[_0x46c23c('0xcda')][_0x46c23c('0xa70')]({'id':_0x558d54['chatWebsite']['id']},_0x558d54['chatWebsite'])[_0x46c23c('0xe59')][_0x46c23c('0xe19')](function(_0x3de6b1){var _0x5d6278=_0x46c23c,_0x463c41=_0x32d445()[_0x5d6278('0xf15')](_0x558d54['chatWebsites'],{'id':_0x3de6b1['id']});_0x463c41&&_0x32d445()[_0x5d6278('0x1d8')](_0x463c41,_0x32d445()[_0x5d6278('0xed5')](_0x3de6b1[_0x5d6278('0x250e')](),_0x32d445()[_0x5d6278('0x1234')](_0x463c41))),_0x278364[_0x5d6278('0x425')]({'title':'ChatWebsite\x20properly\x20saved!','msg':_0x558d54['chatWebsite'][_0x5d6278('0x2623')]?_0x558d54[_0x5d6278('0xcda')][_0x5d6278('0x2623')]+_0x5d6278('0x1c19'):''}),_0x2a291c(_0x3de6b1);})[_0x46c23c('0x223b')](function(_0x2779b1){var _0x482eda=_0x46c23c;if(_0x2779b1[_0x482eda('0x11d0')]&&_0x2779b1[_0x482eda('0x11d0')][_0x482eda('0xcd2')]&&_0x2779b1[_0x482eda('0x11d0')][_0x482eda('0xcd2')]['length']){_0x558d54[_0x482eda('0xcd2')]=_0x2779b1['data'][_0x482eda('0xcd2')]||[{'message':_0x2779b1[_0x482eda('0x94f')](),'type':_0x482eda('0x21a')}];for(var _0x2b1af7=0x0;_0x2b1af7<_0x2779b1[_0x482eda('0x11d0')][_0x482eda('0xcd2')][_0x482eda('0x25ae')];_0x2b1af7++){_0x278364['error']({'title':_0x2779b1['data'][_0x482eda('0xcd2')][_0x2b1af7]['type'],'msg':_0x2779b1[_0x482eda('0x11d0')][_0x482eda('0xcd2')][_0x2b1af7][_0x482eda('0x27e8')]});}}else _0x278364[_0x482eda('0x8c8')]({'title':_0x2779b1['status']?_0x482eda('0x27f2')+_0x2779b1['status']+_0x482eda('0x1b7c')+_0x2779b1['statusText']:_0x482eda('0x21a'),'msg':_0x2779b1[_0x482eda('0x11d0')]?JSON[_0x482eda('0x3ad')](_0x2779b1[_0x482eda('0x11d0')][_0x482eda('0x27e8')]):_0x2779b1[_0x482eda('0x94f')]()});});}function _0x324942(_0x409824){var _0x3fbc2e=_0x39cb11;_0x558d54[_0x3fbc2e('0xcd2')]=[];var _0x322689=_0x5b4505[_0x3fbc2e('0xa5')]()[_0x3fbc2e('0x13e4')](_0x3fbc2e('0x24d0'))['content'](_0x3fbc2e('0x64b'))[_0x3fbc2e('0x4d1')](_0x3fbc2e('0x47d'))['ok'](_0x3fbc2e('0x2198'))['cancel'](_0x3fbc2e('0x8a3'))[_0x3fbc2e('0x1345')](_0x409824);_0x5b4505[_0x3fbc2e('0x26b2')](_0x322689)[_0x3fbc2e('0xe19')](function(){var _0x1b5a9a=_0x3fbc2e;_0x1ae8f4[_0x1b5a9a('0xcda')][_0x1b5a9a('0x229e')]({'id':_0x558d54[_0x1b5a9a('0xcda')]['id']})[_0x1b5a9a('0xe59')][_0x1b5a9a('0xe19')](function(){var _0x4a303b=_0x1b5a9a;_0x32d445()[_0x4a303b('0xa8b')](_0x558d54[_0x4a303b('0x174')],{'id':_0x558d54[_0x4a303b('0xcda')]['id']}),_0x278364[_0x4a303b('0x425')]({'title':_0x4a303b('0x107d'),'msg':(_0x558d54[_0x4a303b('0xcda')]['name']||'chatWebsite')+_0x4a303b('0x2182')}),_0x2a291c(_0x558d54[_0x4a303b('0xcda')]);})['catch'](function(_0x20d920){var _0x5846a2=_0x1b5a9a;if(_0x20d920[_0x5846a2('0x11d0')]&&_0x20d920[_0x5846a2('0x11d0')][_0x5846a2('0xcd2')]&&_0x20d920['data'][_0x5846a2('0xcd2')][_0x5846a2('0x25ae')]){_0x558d54[_0x5846a2('0xcd2')]=_0x20d920[_0x5846a2('0x11d0')][_0x5846a2('0xcd2')]||[{'message':_0x20d920[_0x5846a2('0x94f')](),'type':_0x5846a2('0x24a7')}];for(var _0x53933f=0x0;_0x53933f<_0x20d920[_0x5846a2('0x11d0')][_0x5846a2('0xcd2')]['length'];_0x53933f++){_0x278364['error']({'title':_0x20d920[_0x5846a2('0x11d0')][_0x5846a2('0xcd2')][_0x53933f]['type'],'msg':_0x20d920[_0x5846a2('0x11d0')]['errors'][_0x53933f]['message']});}}else _0x278364[_0x5846a2('0x8c8')]({'title':_0x20d920['status']?_0x5846a2('0x27f2')+_0x20d920[_0x5846a2('0x2833')]+'\x20-\x20'+_0x20d920[_0x5846a2('0x1fd7')]:_0x5846a2('0x24a7'),'msg':_0x20d920[_0x5846a2('0x11d0')]?JSON['stringify'](_0x20d920[_0x5846a2('0x11d0')]['message']):_0x20d920[_0x5846a2('0x27e8')]||_0x20d920['toString']()});});},function(){});}function _0x2efd8a(_0x5d4da8){return _0x5d4da8===null?undefined:new Date(_0x5d4da8);}function _0x2a291c(_0x207ea5){var _0x4d25b5=_0x39cb11;_0x5b4505[_0x4d25b5('0x11ed')](_0x207ea5);}}const _0x23a5dd=_0x41f66b,_0x4b846d=_0x59426a['p']+_0xb635d2('0x126a'),_0x2c8e8a=_0x59426a['p']+_0xb635d2('0x3a1'),_0x5ced33=_0x59426a['p']+_0xb635d2('0x884'),_0x1e22cc=_0x59426a['p']+_0xb635d2('0x278a'),_0x489732=_0x59426a['p']+_0xb635d2('0x60d'),_0x7117b3=_0x59426a['p']+_0xb635d2('0x273b'),_0x3a1b9c=_0x59426a['p']+_0xb635d2('0x12ce'),_0x2b8b83=_0x59426a['p']+_0xb635d2('0x140e'),_0x413d10=_0x59426a['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html/dialog-[chunkhash].html',_0x5478e7=_0x59426a['p']+_0xb635d2('0x70d'),_0x2c8e1e=_0x59426a['p']+_0xb635d2('0x234f'),_0x32aaea=_0x59426a['p']+_0xb635d2('0x21cd');_0x19a8d2[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];var _0x6f4884={'agent':_0x4b846d,'amazonlex':_0x2c8e8a,'autoreply':_0x5ced33,'close':_0x1e22cc,'dialogflow':_0x489732,'gotoif':_0x7117b3,'gotop':_0x3a1b9c,'interval':_0x2b8b83,'noop':_0x413d10,'queue':_0x5478e7,'system':_0x2c8e1e,'tag':_0x32aaea};function _0x19a8d2(_0x15308e,_0x5f47a5,_0x3c0814,_0x44c679,_0x5b7333){var _0x209cdf=_0xb635d2,_0x4e4482=this;_0x4e4482['currentUser']=_0x5b7333[_0x209cdf('0x1ef8')](),_0x4e4482[_0x209cdf('0xcda')]={},_0x4e4482[_0x209cdf('0x1c6e')]={'count':0x0,'rows':[]},_0x4e4482[_0x209cdf('0x132f')]=[],_0x4e4482[_0x209cdf('0xb3d')],_0x4e4482[_0x209cdf('0xa16')]={'sort':_0x209cdf('0xb33')},_0x4e4482[_0x209cdf('0x23bb')]=_0x32d445()['reject'](_0x32d445()['sortBy']([{'app':'Interval','appType':_0x209cdf('0x134c'),'types':[_0x209cdf('0x2210'),_0x209cdf('0x261d'),_0x209cdf('0x15a8')],'fields':[],'isApp':![]},{'app':_0x209cdf('0xc09'),'appType':_0x209cdf('0xc09'),'type':'noop','icon':_0x209cdf('0x27be'),'interval':_0x209cdf('0x2292'),'required':!![],'isApp':!![],'fields':[{'title':_0x209cdf('0x653'),'name':_0x209cdf('0x2'),'type':_0x209cdf('0x1bc6'),'param':0x0}]},{'app':_0x209cdf('0x1917'),'appType':_0x209cdf('0x1917'),'type':'system','icon':_0x209cdf('0x27be'),'interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x209cdf('0x19a5'),'key':_0x209cdf('0x2623')},'route':'variable','filters':{'fields':_0x209cdf('0x104'),'sort':_0x209cdf('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x209cdf('0x19b8'),'name':_0x209cdf('0x19a'),'type':_0x209cdf('0x1bc6'),'required':!![],'param':0x0},{'title':_0x209cdf('0x1a9d'),'name':'variable','type':'apiselect','values':_0x209cdf('0x1a9e'),'value':_0x209cdf('0x2328'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x209cdf('0x1b16')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x209cdf('0x16fe'),'appType':_0x209cdf('0x16fe'),'type':_0x209cdf('0x1fa1'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x209cdf('0x23fb'),'name':'priority','type':_0x209cdf('0x1c60'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x209cdf('0x22c3'),'appType':'gotoif','type':_0x209cdf('0x22c3'),'icon':_0x209cdf('0x27be'),'interval':_0x209cdf('0x2292'),'isApp':!![],'fields':[{'title':'Condition','name':_0x209cdf('0x1c03'),'type':_0x209cdf('0x1bc6'),'required':!![],'param':0x0},{'title':'truepriority','name':_0x209cdf('0x50'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x209cdf('0x347'),'name':_0x209cdf('0x347'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x209cdf('0x26a8'),'appType':_0x209cdf('0x26a8'),'foreignKey':'ChatQueueId','type':_0x209cdf('0x26a8'),'icon':'icon-apps','interval':_0x209cdf('0x2292'),'isApp':!![],'extraApi':[{'name':_0x209cdf('0x671'),'field':{'name':_0x209cdf('0x26a8'),'key':'name'},'route':_0x209cdf('0xfce'),'filters':{'fields':'id,name,type','sort':_0x209cdf('0x2623'),'nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':_0x209cdf('0x9'),'name':_0x209cdf('0x26a8'),'type':'apiselect','values':_0x209cdf('0x671'),'value':'queue.name','option':_0x209cdf('0x15df'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x209cdf('0x784'),'name':_0x209cdf('0x2058'),'type':_0x209cdf('0x1c60'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x209cdf('0x108'),'appType':_0x209cdf('0x108'),'type':'agent','foreignKey':_0x209cdf('0x43d'),'icon':_0x209cdf('0x27be'),'interval':_0x209cdf('0x2292'),'isApp':!![],'extraApi':[{'name':_0x209cdf('0x29b'),'field':{'name':_0x209cdf('0x108'),'key':_0x209cdf('0x2623')},'route':_0x209cdf('0x10c6'),'filters':{'fields':'id,name','role':'agent','sort':_0x209cdf('0x2623'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x209cdf('0x142e'),'name':_0x209cdf('0x108'),'type':_0x209cdf('0x14b8'),'values':_0x209cdf('0x29b'),'value':'agent.name','option':_0x209cdf('0xec8'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x209cdf('0x2058'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'close','appType':_0x209cdf('0x1886'),'type':_0x209cdf('0x1886'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Disposition','name':_0x209cdf('0x2506'),'type':_0x209cdf('0x1bc6'),'required':!![],'param':0x0}]},{'app':'autoreply','appType':_0x209cdf('0x400'),'type':_0x209cdf('0x400'),'icon':_0x209cdf('0x27be'),'interval':_0x209cdf('0x2292'),'isApp':!![],'fields':[{'title':_0x209cdf('0x1ec4'),'name':_0x209cdf('0x1ec4'),'type':'select','defaultValue':'1','values':[{'option':_0x209cdf('0x12c2'),'value':'1'},{'option':_0x209cdf('0x2d2'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x209cdf('0x2115'),'name':_0x209cdf('0x1bc6'),'type':'textarea','required':!![],'param':0x1}]},{'app':_0x209cdf('0x2037'),'appType':_0x209cdf('0x2037'),'type':'tag','foreignKey':'TagId','icon':_0x209cdf('0x27be'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x209cdf('0x2037'),'key':'name'},'route':_0x209cdf('0x2037'),'filters':{'fields':_0x209cdf('0x104'),'sort':_0x209cdf('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x209cdf('0x1172'),'name':_0x209cdf('0x2037'),'type':_0x209cdf('0x14b8'),'values':_0x209cdf('0x1105'),'value':'tag.name','option':'tag.name','required':!![],'param':0x0}]},{'app':'dialogflow','appType':'dialogflow','type':_0x209cdf('0xc11'),'icon':_0x209cdf('0x27be'),'interval':_0x209cdf('0x2292'),'isApp':!![],'fields':[{'title':_0x209cdf('0x126b'),'name':'key','type':_0x209cdf('0x1bc6'),'required':!![],'param':0x0},{'title':_0x209cdf('0x174b'),'name':_0x209cdf('0x174b'),'type':'select','defaultValue':_0x209cdf('0xc5a'),'values':[{'option':'Danish','value':'\x27da\x27'},{'option':'English','value':_0x209cdf('0xc5a')},{'option':_0x209cdf('0x1753'),'value':_0x209cdf('0x594')},{'option':_0x209cdf('0x24dd'),'value':'\x27it\x27'},{'option':'Spanish','value':_0x209cdf('0x105c')},{'option':_0x209cdf('0x2274'),'value':_0x209cdf('0x23ec')},{'option':_0x209cdf('0x12bf'),'value':'\x27id\x27'},{'option':_0x209cdf('0x2888'),'value':_0x209cdf('0x172')},{'option':'Korean\x20(South\x20Korea)','value':_0x209cdf('0x1c56')},{'option':'Dutch','value':_0x209cdf('0x683')},{'option':_0x209cdf('0x19b5'),'value':_0x209cdf('0x16f2')},{'option':'Portuguese\x20(European)','value':'\x27pt\x27'},{'option':_0x209cdf('0xed9'),'value':_0x209cdf('0x2593')},{'option':_0x209cdf('0x1bd8'),'value':_0x209cdf('0x1070')},{'option':_0x209cdf('0x1dc7'),'value':_0x209cdf('0x249d')},{'option':_0x209cdf('0x2e1'),'value':_0x209cdf('0x3c9')},{'option':_0x209cdf('0x6d9'),'value':'\x27uk\x27'},{'option':_0x209cdf('0x75c'),'value':_0x209cdf('0xaf5')},{'option':_0x209cdf('0x229f'),'value':_0x209cdf('0x152e')},{'option':_0x209cdf('0x12ff'),'value':_0x209cdf('0xafb')}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0x209cdf('0xfcc'),'type':_0x209cdf('0x777'),'maxlength':0xff,'param':0x2,'help':!![]}]},{'app':_0x209cdf('0x1321'),'appType':_0x209cdf('0x1321'),'type':_0x209cdf('0x1321'),'icon':_0x209cdf('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x209cdf('0x22be'),'name':'accesskeyid','type':_0x209cdf('0x1bc6'),'required':!![],'param':0x0},{'title':_0x209cdf('0x700'),'name':'secretaccesskey','type':_0x209cdf('0x1bc6'),'required':!![],'param':0x1},{'title':_0x209cdf('0x206a'),'name':_0x209cdf('0x206a'),'type':_0x209cdf('0x2e6'),'defaultValue':_0x209cdf('0x135a'),'values':[{'option':_0x209cdf('0x26e'),'value':_0x209cdf('0x135a')},{'option':_0x209cdf('0x60c'),'value':_0x209cdf('0x1875')},{'option':_0x209cdf('0x21dc'),'value':_0x209cdf('0x1117')},{'option':_0x209cdf('0xcd'),'value':_0x209cdf('0x170f')}],'required':!![],'param':0x2},{'title':_0x209cdf('0x191a'),'name':_0x209cdf('0x191a'),'type':_0x209cdf('0x1bc6'),'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x209cdf('0xfcc'),'type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]}],[_0x209cdf('0xf2b')]),{'isApp':![]}),_0x4e4482[_0x209cdf('0x15a8')]={'group':{'name':_0x209cdf('0x866'),'pull':'clone'},'animation':0x64,'sort':![]},_0x4e4482[_0x209cdf('0x2358')]={'group':{'name':_0x209cdf('0x328'),'put':'opt1'},'animation':0x64,'onAdd':function _0x25b08c(_0x19c982){var _0x5db702=_0x209cdf;_0x17f48d(_0x19c982,_0x19c982[_0x5db702('0x11ad')]);},'onSort':function _0x257dcd(){_0x1a77b0();}},_0x4e4482[_0x209cdf('0x15f9')]=_0x575236,_0x4e4482[_0x209cdf('0x126c')]=_0x5405dc,_0x4e4482[_0x209cdf('0xd4')]=_0x2b1777,_0x4e4482['editChatWebsiteApp']=_0x17f48d,_0x4e4482['editInterval']=_0x2e5590,_0x4e4482[_0x209cdf('0x1ac5')]=_0x39d814,_0x4e4482[_0x209cdf('0x129f')]=_0x19e969,_0x4e4482[_0x209cdf('0x20b4')]=_0x1a77b0,_0x4e4482[_0x209cdf('0x157')]=_0x2c6ad4;function _0x575236(_0x48106d,_0x411164){var _0x11a493=_0x209cdf;_0x4e4482[_0x11a493('0xcda')]=_0x48106d,_0x4e4482[_0x11a493('0xb3d')]=typeof _0x411164!==_0x11a493('0x1143')?_0x411164:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e4482[_0x11a493('0x2358')][_0x11a493('0x1ebc')]=!_0x4e4482[_0x11a493('0xb3d')][_0x11a493('0x12bc')]?!![]:![],_0x4e4482[_0x11a493('0xa16')]['id']=_0x48106d['id'],_0x4e4482[_0x11a493('0xa16')][_0x11a493('0x1144')]=!![],_0x4e4482['query']['nolimit']=!![],_0x4e4482[_0x11a493('0xd4')](),_0x4e4482[_0x11a493('0x157')]();}function _0x5405dc(_0x38ae2f,_0x4f8610,_0x1c48ec){var _0xcbe7b2=_0x209cdf,_0x55eeee=_0x5f47a5[_0xcbe7b2('0xa5')]()['title'](_0xcbe7b2('0x21ed'))[_0xcbe7b2('0x221c')](_0xcbe7b2('0xab2')+_0x38ae2f[_0xcbe7b2('0xf2b')]+''+_0xcbe7b2('0x21bd'))[_0xcbe7b2('0x4d1')](_0xcbe7b2('0x21d1'))[_0xcbe7b2('0x1345')](_0x1c48ec)['ok']('OK')[_0xcbe7b2('0x2c1')](_0xcbe7b2('0x17'));_0x5f47a5['show'](_0x55eeee)[_0xcbe7b2('0xe19')](function(){var _0x1a670f=_0xcbe7b2;_0x4e4482[_0x1a670f('0x1c6e')]['rows'][_0x1a670f('0x1c8e')](_0x4f8610,0x1),_0x1a77b0();},function(){var _0x76c741=_0xcbe7b2;console[_0x76c741('0x1fe9')](_0x76c741('0x17'));});}function _0x17f48d(_0x473a58,_0x3467fb){var _0x14f532=_0x209cdf;if(_0x4e4482[_0x14f532('0x1c6e')][_0x14f532('0x16a7')]['length']){var _0xf8eb24=_0x4e4482[_0x14f532('0x1c6e')][_0x14f532('0x16a7')][_0x3467fb]?_0x4e4482['chatWebsiteApps']['rows'][_0x3467fb]:_0x4e4482[_0x14f532('0x1c6e')][_0x14f532('0x16a7')][0x0],_0x1d8888=(_0xf8eb24[_0x14f532('0xf44')]||_0xf8eb24[_0x14f532('0xf2b')])[_0x14f532('0x20dd')]();_0x5f47a5['show']({'controller':_0x14f532('0x1cd6')[_0x14f532('0x1007')](_0x1d8888,_0x14f532('0x2893')),'controllerAs':'vm','templateUrl':_0x6f4884[_0x1d8888],'parent':angular['element'](_0x3c0814['body']),'targetEvent':_0x473a58,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0xf8eb24,'chatWebsite':_0x4e4482[_0x14f532('0xcda')],'crudPermissions':_0x4e4482[_0x14f532('0xb3d')]}})['then'](function(_0x5e7fd0){var _0x1475dd=_0x14f532;_0x5e7fd0&&(_0x5e7fd0['id']?_0x4e4482[_0x1475dd('0x1c6e')][_0x1475dd('0x16a7')][_0x3467fb]=_0x5e7fd0:_0x4e4482[_0x1475dd('0x1c6e')][_0x1475dd('0x16a7')][_0x1475dd('0x1c8e')](_0x3467fb,0x0,_0x5e7fd0),_0x1a77b0());})[_0x14f532('0x223b')](function(_0x4c3ce4){var _0x3a69b0=_0x14f532;_0x4c3ce4&&_0x44c679[_0x3a69b0('0x8c8')]({'title':_0x4c3ce4[_0x3a69b0('0x2833')]?_0x3a69b0('0x27f2')+_0x4c3ce4[_0x3a69b0('0x2833')]+'\x20-\x20'+_0x4c3ce4[_0x3a69b0('0x1fd7')]:_0x3a69b0('0x1c4b'),'msg':_0x4c3ce4['data']?JSON['stringify'](_0x4c3ce4[_0x3a69b0('0x11d0')]):_0x4c3ce4['toString']()});});}}function _0x2e5590(_0xb956b9,_0xdde6e2){var _0x1461cf=_0x209cdf;if(_0x4e4482['chatWebsiteApps'][_0x1461cf('0x16a7')]['length']){var _0x1e386d=_0x4e4482[_0x1461cf('0x1c6e')]['rows'][_0xdde6e2]?_0x4e4482[_0x1461cf('0x1c6e')][_0x1461cf('0x16a7')][_0xdde6e2]:_0x4e4482[_0x1461cf('0x1c6e')][_0x1461cf('0x16a7')][0x0];_0x5f47a5[_0x1461cf('0x26b2')]({'controller':_0x1461cf('0x1c31'),'controllerAs':'vm','templateUrl':_0x2b8b83,'parent':angular['element'](_0x3c0814[_0x1461cf('0x19b2')]),'targetEvent':_0xb956b9,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1e386d[_0x1461cf('0x134c')],'IntervalId':_0x1e386d[_0x1461cf('0x1fc1')],'application':!![]},'intervals':[],'crudPermissions':_0x4e4482[_0x1461cf('0xb3d')]}})[_0x1461cf('0xe19')](function(_0x350b63){var _0x5c683a=_0x1461cf;_0x350b63&&(_0x1e386d[_0x5c683a('0x134c')]=_0x350b63[_0x5c683a('0x134c')]||'*,*,*,*',_0x1e386d[_0x5c683a('0x1fc1')]=_0x350b63[_0x5c683a('0x1fc1')]||null,_0x1a77b0());});}}function _0x1a77b0(){var _0x210fb2=_0x209cdf,_0x3758c1=0x1,_0x5d760e=[];for(var _0xc95423=0x0;_0xc95423<_0x4e4482['chatWebsiteApps'][_0x210fb2('0x16a7')]['length'];_0xc95423++){var _0x3459bf=_0x4e4482[_0x210fb2('0x1c6e')]['rows'][_0xc95423],_0x2b75a9=[],_0x10e8d4=[];_0x3459bf[_0x210fb2('0x10e0')]=_0x3459bf[_0x210fb2('0x134c')]!==_0x210fb2('0x2292')?[_0x3459bf[_0x210fb2('0x134c')]]:_0x3459bf[_0x210fb2('0x1fc1')]?_0x32d445()['map'](_0x32d445()[_0x210fb2('0x2891')](_0x4e4482[_0x210fb2('0x10e0')][_0x210fb2('0x16a7')],{'IntervalId':_0x3459bf[_0x210fb2('0x1fc1')]}),_0x210fb2('0x134c')):[],_0x3459bf[_0x210fb2('0x1318')]=_0x4e4482['chatWebsite'][_0x210fb2('0x1318')],_0x3459bf[_0x210fb2('0x632')]=_0x4e4482[_0x210fb2('0xcda')]['exten'],_0x3459bf[_0x210fb2('0x62e')]&&(_0x3459bf[_0x210fb2('0x62e')]=_0x3459bf[_0x210fb2('0x62e')][_0x210fb2('0x20dd')]()),_0x3459bf[_0x210fb2('0xb33')]=_0x2b75a9['length']?_0x32d445()[_0x210fb2('0x27ed')](_0x2b75a9)[_0x210fb2('0xb33')]+0x1:_0x3758c1,_0x3758c1=(_0x10e8d4[_0x210fb2('0x25ae')]?_0x32d445()[_0x210fb2('0x27ed')](_0x10e8d4)[_0x210fb2('0xb33')]:_0x3459bf['priority'])+0x1,_0x5d760e=_0x32d445()[_0x210fb2('0x1007')](_0x5d760e,_0x2b75a9,[_0x3459bf],_0x10e8d4);}_0x15308e[_0x210fb2('0xcda')][_0x210fb2('0x25d9')]({'id':_0x4e4482['chatWebsite']['id']},_0x32d445()[_0x210fb2('0x14c')](_0x5d760e,'priority'))[_0x210fb2('0xe59')]['then'](function(_0x4649a5){var _0x412ddb=_0x210fb2;_0x4e4482[_0x412ddb('0x1c6e')][_0x412ddb('0x16a7')]=_0x4649a5[_0x412ddb('0x16a7')];})[_0x210fb2('0x223b')](function(_0x21bdc1){var _0x5c3f92=_0x210fb2;console[_0x5c3f92('0x8c8')](_0x21bdc1);});}function _0xcd8683(_0x575498){var _0x220195=_0x209cdf;_0x4e4482[_0x220195('0x1c6e')]=_0x575498||{'count':0x0,'rows':[]};}function _0x2c6ad4(){var _0x83b8e5=_0x209cdf;return _0x15308e[_0x83b8e5('0x134c')][_0x83b8e5('0x22d5')]({'fields':_0x83b8e5('0x1a19')})[_0x83b8e5('0xe59')][_0x83b8e5('0xe19')](function(_0x235026){var _0x1dfbeb=_0x83b8e5;_0x4e4482[_0x1dfbeb('0x10e0')]=_0x235026;})[_0x83b8e5('0x223b')](function(_0x4abd1f){console['error'](_0x4abd1f);});}function _0x2b1777(){var _0x4d49a1=_0x209cdf;_0x4e4482[_0x4d49a1('0x9c8')]=_0x15308e[_0x4d49a1('0xcda')][_0x4d49a1('0x1654')](_0x4e4482[_0x4d49a1('0xa16')],_0xcd8683)['$promise'];}function _0x39d814(_0x4f4ce8){var _0x2223df=_0x209cdf;_0x32d445()[_0x2223df('0xa8b')](_0x4e4482['chatWebsiteApps'][_0x2223df('0x16a7')],{'id':_0x4f4ce8['id']}),_0x1a77b0(),_0x44c679[_0x2223df('0x425')]({'title':_0x2223df('0x13bf'),'msg':_0x4f4ce8[_0x2223df('0xf2b')]?_0x4f4ce8[_0x2223df('0xf2b')]+_0x2223df('0x2182'):''});}function _0x19e969(_0x46af8d){var _0x5a2241=_0x209cdf,_0x42c99f=_0x5f47a5['confirm']()[_0x5a2241('0x13e4')](_0x5a2241('0x6de'))[_0x5a2241('0x221c')](_0x5a2241('0xab2')+_0x4e4482['selectedChatWebsiteApps']['length']+_0x5a2241('0x5bc')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5a2241('0x17bf'))[_0x5a2241('0x1345')](_0x46af8d)['ok']('OK')[_0x5a2241('0x2c1')](_0x5a2241('0x17'));_0x5f47a5[_0x5a2241('0x26b2')](_0x42c99f)[_0x5a2241('0xe19')](function(){var _0x5b566c=_0x5a2241;_0x4e4482[_0x5b566c('0x132f')][_0x5b566c('0x1d7e')](function(_0x487a6b){var _0x3dfb6e=_0x5b566c;_0x32d445()[_0x3dfb6e('0xa8b')](_0x4e4482[_0x3dfb6e('0x1c6e')][_0x3dfb6e('0x16a7')],{'id':_0x487a6b['id']});}),_0x4e4482['selectedChatWebsiteApps']=[],_0x1a77b0();});}}const _0x40da5c=_0x19a8d2;_0x4930cd['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),'api',_0xb635d2('0xcda'),_0xb635d2('0x174'),'realtime',_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4930cd(_0x4d5497,_0x52b397,_0xb898f4,_0x517227,_0x4b061d,_0x34295d,_0x4ab113,_0x2fedf1,_0x17f812,_0x24b716){var _0x1ff93a=_0xb635d2,_0x1d7bc9=this;_0x1d7bc9[_0x1ff93a('0x15a5')]=_0x17f812[_0x1ff93a('0x1ef8')](),_0x1d7bc9['chatWebsite']=_0x4b061d,_0x1d7bc9[_0x1ff93a('0xb3d')]=_0x24b716,_0x1d7bc9[_0x1ff93a('0x24e1')]=_0x4ab113,_0x1d7bc9[_0x1ff93a('0xe4b')]=[],_0x1d7bc9[_0x1ff93a('0x1884')]=[],_0x1d7bc9['selectedItems']=[],_0x1d7bc9[_0x1ff93a('0x286c')]=[],_0x1d7bc9[_0x1ff93a('0xf79')]=[],_0x1d7bc9[_0x1ff93a('0x16e7')]=![],_0x1d7bc9[_0x1ff93a('0x888')]=_0x4074e6,_0x1d7bc9[_0x1ff93a('0x4b8')]=_0x1e5ab0,_0x1d7bc9[_0x1ff93a('0x2584')]=_0x39f179,_0x1d7bc9['dualMultiselectOptions']={'readOnly':!_0x1d7bc9[_0x1ff93a('0xb3d')][_0x1ff93a('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1ff93a('0x2623'),'line1':_0x1ff93a('0xe11'),'line2':[_0x1ff93a('0x2623'),_0x1ff93a('0x1b66')],'line3':'','labelAll':_0x2fedf1[_0x1ff93a('0x2159')](_0x1ff93a('0x1eb0')),'labelSelected':_0x2fedf1['instant']('CHAT.SELECTED_AGENTS'),'transferCallback':function _0x4bb26e(){var _0x14d165=_0x1ff93a,_0x18cf38=_0x32d445()[_0x14d165('0x118')](_0x1d7bc9[_0x14d165('0xf79')],_0x1d7bc9[_0x14d165('0x2273')],'id');_0x1d7bc9['pendingChanges']=_0x32d445()[_0x14d165('0x14b4')](_0x18cf38)?![]:!![];}};function _0x4074e6(){var _0x1f457d=_0x1ff93a;return _0x17f812[_0x1f457d('0x179e')](_0x1f457d('0xd14'))?_0x9142cb()['catch'](function(_0x1b902a){var _0x278611=_0x1f457d;_0xb898f4[_0x278611('0x8c8')]({'title':_0x1b902a[_0x278611('0x2833')]?_0x278611('0x27f2')+_0x1b902a[_0x278611('0x2833')]+_0x278611('0x1b7c')+_0x1b902a[_0x278611('0x1fd7')]:_0x278611('0x1e86'),'msg':_0x1b902a['status']?JSON[_0x278611('0x3ad')](_0x1b902a[_0x278611('0x11d0')]):_0x1b902a[_0x278611('0x94f')]()});}):_0x46d088()['then'](function(_0x164a86){var _0x582639=_0x1f457d;return _0x1d7bc9[_0x582639('0x1e59')]=_0x164a86,_0x9142cb();})[_0x1f457d('0x223b')](function(_0x298518){var _0x10d261=_0x1f457d;_0xb898f4['error']({'title':_0x298518[_0x10d261('0x2833')]?_0x10d261('0x27f2')+_0x298518['status']+_0x10d261('0x1b7c')+_0x298518['statusText']:_0x10d261('0x1e86'),'msg':_0x298518['status']?JSON[_0x10d261('0x3ad')](_0x298518[_0x10d261('0x11d0')]):_0x298518['toString']()});});}function _0x46d088(){return _0x52b397(function(_0x1fa643,_0x26e8ef){var _0x300111=a0_0x5325;_0x517227[_0x300111('0xb59')][_0x300111('0x22d5')]({'userProfileId':_0x1d7bc9[_0x300111('0x15a5')][_0x300111('0x1d04')],'name':'Agents'})[_0x300111('0xe59')][_0x300111('0xe19')](function(_0x3533bc){var _0x29c82b=_0x300111,_0x56b5d4=_0x3533bc&&_0x3533bc[_0x29c82b('0x16a7')]?_0x3533bc[_0x29c82b('0x16a7')][0x0]:null;_0x1fa643(_0x56b5d4);})[_0x300111('0x223b')](function(_0x1c4080){_0x26e8ef(_0x1c4080);});});}function _0x9142cb(){return _0x52b397(function(_0x538de8,_0x51b8ed){var _0x2bf4e4=a0_0x5325;return _0x379233()['then'](function(_0x5505e9){var _0x80301c=a0_0x5325;return _0x1d7bc9[_0x80301c('0xe4b')]=_0x5505e9[_0x80301c('0x16a7')]?_0x5505e9['rows']:[],_0x17f812['hasRole'](_0x80301c('0xd14'))?_0x5505e9:_0x1d7bc9[_0x80301c('0x1e59')]?_0x1d7bc9['section'][_0x80301c('0x11fd')]?_0x5505e9:_0x2bc5c7():null;})[_0x2bf4e4('0xe19')](function(_0x24ec1e){var _0x2c8dcc=_0x2bf4e4,_0x3df3ca=_0x24ec1e&&_0x24ec1e[_0x2c8dcc('0x16a7')]?_0x24ec1e[_0x2c8dcc('0x16a7')]:[];return _0x1d7bc9[_0x2c8dcc('0x1884')]=_0x32d445()[_0x2c8dcc('0x65a')](_0x3df3ca,function(_0x38b2db){var _0x4e1f15=_0x2c8dcc;return _0x32d445()[_0x4e1f15('0xf15')](_0x1d7bc9[_0x4e1f15('0xe4b')],{'id':_0x17f812[_0x4e1f15('0x179e')]('admin')||_0x1d7bc9['section'][_0x4e1f15('0x11fd')]?_0x38b2db['id']:_0x38b2db[_0x4e1f15('0x1104')]});}),_0x1d7bc9['startingAllowedItems']=angular['copy'](_0x1d7bc9['allowedItems']),_0x1d7bc9[_0x2c8dcc('0xe4b')][_0x2c8dcc('0x1d7e')](function(_0x405f5f){var _0x42ea8a=_0x2c8dcc,_0x2d94f1=_0x32d445()[_0x42ea8a('0xf15')](_0x1d7bc9[_0x42ea8a('0x1884')],{'id':_0x405f5f['id']});_0x17f812[_0x42ea8a('0x179e')](_0x42ea8a('0xd14'))?_0x405f5f[_0x42ea8a('0x1768')]=!![]:_0x405f5f[_0x42ea8a('0x1768')]=typeof _0x2d94f1!==_0x42ea8a('0x1143')?!![]:![];}),_0x4738fb();})[_0x2bf4e4('0xe19')](function(_0x2bb0ea){var _0x351520=_0x2bf4e4,_0x2ae642=_0x2bb0ea&&_0x2bb0ea[_0x351520('0x16a7')]?_0x2bb0ea[_0x351520('0x16a7')]:[];_0x1d7bc9[_0x351520('0x2273')]=_0x32d445()['map'](_0x2ae642,function(_0x22bd28){var _0x4df7c1=_0x351520,_0x16452a=_0x32d445()['find'](_0x1d7bc9['items'],{'id':_0x22bd28['id']});return _0x16452a[_0x4df7c1('0x21e3')]=_0x22bd28[_0x4df7c1('0x2088')]?_0x4df7c1('0x815')+_0x22bd28['UserChatWebsite']['penalty']:'',_0x16452a[_0x4df7c1('0x1b66')]=typeof _0x22bd28[_0x4df7c1('0x1b66')]!==_0x4df7c1('0x1143')?'<'+_0x22bd28[_0x4df7c1('0x1b66')]+'>':'',_0x16452a;}),_0x1d7bc9[_0x351520('0xf79')]=angular['copy'](_0x1d7bc9[_0x351520('0x2273')]),_0x1d7bc9[_0x351520('0xc00')]['selectedItems']=_0x1d7bc9[_0x351520('0x2273')],_0x1d7bc9[_0x351520('0xc00')]['items']=_0x32d445()[_0x351520('0x501')](_0x1d7bc9[_0x351520('0x1884')],_0x1d7bc9[_0x351520('0xc00')]['selectedItems'],'id'),_0x538de8();})[_0x2bf4e4('0x223b')](function(_0x444046){_0x51b8ed(_0x444046);});});}function _0x2bc5c7(){return _0x52b397(function(_0x2a7e01,_0x43df0b){var _0x3d6387=a0_0x5325;return _0x517227[_0x3d6387('0xd49')][_0x3d6387('0x22d5')]({'sectionId':_0x1d7bc9['section']['id'],'nolimit':!![]})[_0x3d6387('0xe59')][_0x3d6387('0xe19')](function(_0x1aaa18){_0x2a7e01(_0x1aaa18);})[_0x3d6387('0x223b')](function(_0x5502f1){_0x43df0b(_0x5502f1);});});}function _0x4738fb(){return _0x52b397(function(_0x31b53f,_0x1fdff1){var _0x2c9d31=a0_0x5325;return _0x517227[_0x2c9d31('0xcda')][_0x2c9d31('0x14fd')]({'id':_0x1d7bc9['chatWebsite']['id'],'fields':_0x2c9d31('0x244f'),'nolimit':!![],'role':_0x2c9d31('0x108')})[_0x2c9d31('0xe59')][_0x2c9d31('0xe19')](function(_0x48c7f8){_0x31b53f(_0x48c7f8);})[_0x2c9d31('0x223b')](function(_0x1ae664){_0x1fdff1(_0x1ae664);});});}function _0x379233(){return _0x52b397(function(_0x5c9ae0,_0x43437a){var _0x4aa3bd=a0_0x5325;return _0x517227[_0x4aa3bd('0x10c6')][_0x4aa3bd('0x22d5')]({'fields':_0x4aa3bd('0x244f'),'nolimit':!![],'role':_0x4aa3bd('0x108')})[_0x4aa3bd('0xe59')][_0x4aa3bd('0xe19')](function(_0x3fc0e2){_0x5c9ae0(_0x3fc0e2);})[_0x4aa3bd('0x223b')](function(_0x47364a){_0x43437a(_0x47364a);});});}function _0x3a0825(_0x150ed6){return _0x52b397(function(_0x3ba24c,_0x2678f0){var _0x2dee2a=a0_0x5325;_0x32d445()[_0x2dee2a('0x14b4')](_0x150ed6)?_0x3ba24c():_0x517227['chatWebsite'][_0x2dee2a('0x2271')]({'id':_0x1d7bc9[_0x2dee2a('0xcda')]['id'],'ids':_0x32d445()[_0x2dee2a('0x65a')](_0x150ed6,'id')})[_0x2dee2a('0xe59')][_0x2dee2a('0xe19')](function(){_0x3ba24c();})[_0x2dee2a('0x223b')](function(_0x116eda){_0x2678f0(_0x116eda);});});}function _0x51899e(_0x5723d7){return _0x52b397(function(_0x263624,_0x244e0c){var _0x42389b=a0_0x5325;_0x32d445()[_0x42389b('0x14b4')](_0x5723d7)?_0x263624():_0x517227[_0x42389b('0xcda')][_0x42389b('0x6aa')]({'id':_0x1d7bc9[_0x42389b('0xcda')]['id'],'ids':_0x32d445()[_0x42389b('0x65a')](_0x5723d7,'id')})[_0x42389b('0xe59')][_0x42389b('0xe19')](function(){_0x263624();})[_0x42389b('0x223b')](function(_0x268343){_0x244e0c(_0x268343);});});}function _0x1e5ab0(){var _0x279dd0=_0x1ff93a,_0x4346a3=_0x32d445()[_0x279dd0('0x501')](_0x1d7bc9['startingSelectedItems'],_0x1d7bc9[_0x279dd0('0x2273')],'id'),_0x6ddc77=_0x32d445()[_0x279dd0('0x501')](_0x1d7bc9['selectedItems'],_0x1d7bc9[_0x279dd0('0xf79')],'id');return _0x51899e(_0x4346a3)[_0x279dd0('0xe19')](function(){return _0x3a0825(_0x6ddc77);})['then'](function(){var _0x2365cd=_0x279dd0;_0x1d7bc9['pendingChanges']=![],_0x1d7bc9[_0x2365cd('0x286c')]=angular['copy'](_0x1d7bc9[_0x2365cd('0x1884')]),_0x1d7bc9[_0x2365cd('0xf79')]=angular[_0x2365cd('0x89')](_0x1d7bc9[_0x2365cd('0x2273')]),_0xb898f4[_0x2365cd('0x425')]({'title':'SUCCESS','msg':_0x2365cd('0x25d')});})['catch'](function(_0x4cb901){var _0x1fc20f=_0x279dd0;_0xb898f4[_0x1fc20f('0x8c8')]({'title':_0x4cb901[_0x1fc20f('0x2833')]?_0x1fc20f('0x27f2')+_0x4cb901[_0x1fc20f('0x2833')]+_0x1fc20f('0x1b7c')+_0x4cb901[_0x1fc20f('0x1fd7')]:_0x1fc20f('0x2168'),'msg':_0x4cb901[_0x1fc20f('0x2833')]?JSON[_0x1fc20f('0x3ad')](_0x4cb901[_0x1fc20f('0x11d0')]):_0x4cb901[_0x1fc20f('0x94f')]()});});}function _0x39f179(){var _0x469965=_0x1ff93a;_0x4d5497[_0x469965('0x11ed')]();}}const _0xfc28=_0x4930cd;_0xc25871[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0xf65')];function _0xc25871(_0x5797ad,_0x53de0a){var _0x10e959=_0xb635d2,_0x407fa3=this,_0x1eb250=0x8,_0x197fce=_0x1eb250*0x400*0x400;_0x407fa3[_0x10e959('0xcda')]={},_0x407fa3[_0x10e959('0xb3d')],_0x407fa3[_0x10e959('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x197fce,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x407fa3[_0x10e959('0x1b57')]={'flow':{}},_0x407fa3[_0x10e959('0x1403')]=![],_0x407fa3[_0x10e959('0x1124')]=_0x10fee7,_0x407fa3['upload']=_0x4949f5,_0x407fa3['fileSuccess']=_0x2031fa,_0x407fa3[_0x10e959('0x15f9')]=_0x5e01e5;function _0x5e01e5(_0x4af413,_0x5d7331){var _0x16d16f=_0x10e959;_0x407fa3[_0x16d16f('0xcda')]=angular[_0x16d16f('0x89')](_0x4af413),_0x407fa3['crudPermissions']=typeof _0x5d7331!=='undefined'?_0x5d7331:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x407fa3['ngFlowOptions'][_0x16d16f('0xe0b')]=_0x16d16f('0x259f')['replace'](_0x16d16f('0x16f0'),_0x407fa3[_0x16d16f('0xcda')]['id']),_0x407fa3['chatWebsite']['images']=[];}function _0x10fee7(_0x2cbfa6){var _0x214fce=_0x10e959,_0x161577=[_0x214fce('0xb48'),'jpg'];if(!_0x32d445()[_0x214fce('0x1c43')](_0x161577,_0x2cbfa6[_0x214fce('0x23df')]()))return _0x53de0a[_0x214fce('0x8c8')]({'title':'Invalid\x20extension:\x20'+_0x2cbfa6[_0x214fce('0x23df')](),'msg':_0x214fce('0x1450')+_0x161577[_0x214fce('0x1537')]()}),![];if(_0x2cbfa6[_0x214fce('0x1aea')]>_0x197fce)return _0x53de0a[_0x214fce('0x8c8')]({'title':'File\x20too\x20big','msg':_0x214fce('0x275f')+_0x1eb250+'MB'}),![];var _0x15486d={'id':_0x2cbfa6[_0x214fce('0x164e')],'file':_0x2cbfa6,'type':_0x214fce('0x1363')};return _0x407fa3['chatWebsite'][_0x214fce('0x22b8')][_0x214fce('0x14c9')](_0x15486d),!![];}function _0x4949f5(){var _0x5d25cb=_0x10e959;_0x407fa3[_0x5d25cb('0x1b57')][_0x5d25cb('0x206b')][_0x5d25cb('0x5ec')][_0x5d25cb('0x2234')]={'X-Requested-With':'XMLHttpRequest','Authorization':'Bearer\x20'+_0x5797ad[_0x5d25cb('0x22d5')](_0x5d25cb('0x511'))},_0x407fa3[_0x5d25cb('0x1b57')][_0x5d25cb('0x206b')][_0x5d25cb('0x20')]();}function _0x2031fa(_0x35e12b){var _0x27fed3=_0x10e959;angular[_0x27fed3('0x1d7e')](_0x407fa3['chatWebsite'][_0x27fed3('0x22b8')],function(_0x4ff701){var _0x3af849=_0x27fed3;if(_0x4ff701['id']===_0x35e12b[_0x3af849('0x164e')]){var _0x560959=new FileReader();_0x560959[_0x3af849('0x845')](_0x4ff701[_0x3af849('0x2c0')][_0x3af849('0x2c0')]),_0x560959[_0x3af849('0x1d94')]=function(_0x597e8f){var _0x28a711=_0x3af849;_0x4ff701[_0x28a711('0x2647')]=_0x597e8f[_0x28a711('0xe0b')]['result'];},_0x4ff701[_0x3af849('0x62e')]=_0x3af849('0x16af');}});}}const _0x1ff2e6=_0xc25871;_0x4a93b6[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x181c'),_0xb635d2('0xcda'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4a93b6(_0x336100,_0x3d0e84,_0x23923e,_0xb814,_0x544acc,_0x2bff6e,_0x94a58b,_0xb949a3){var _0x1b0bbe=_0xb635d2,_0x1ff4e1=this;_0x1ff4e1[_0x1b0bbe('0x15a5')]=_0x94a58b[_0x1b0bbe('0x1ef8')](),_0x1ff4e1[_0x1b0bbe('0xcd2')]=[],_0x1ff4e1[_0x1b0bbe('0x13e4')]=_0x1b0bbe('0x257c')+(_0xb814[_0x1b0bbe('0xf44')]||_0xb814[_0x1b0bbe('0xf2b')])[_0x1b0bbe('0x25f7')](),_0x1ff4e1[_0x1b0bbe('0x108')]=angular[_0x1b0bbe('0x89')](_0xb814),_0x1ff4e1['crudPermissions']=_0xb949a3,_0x1ff4e1[_0x1b0bbe('0x1ccb')]={};if(_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x26d2')])switch(_0x1ff4e1[_0x1b0bbe('0x108')]['appType']?_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0xf44')]['toLowerCase']():_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0xf2b')][_0x1b0bbe('0x20dd')]()){case _0x1b0bbe('0x261d'):break;case'dialogflow':{var _0x2443d3=_0x1ff4e1['agent'][_0x1b0bbe('0x26d2')][_0x1b0bbe('0x1745')](',');_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x6e4')]=_0x2443d3[0x0],_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x174b')]=_0x2443d3[0x1],_0x1ff4e1[_0x1b0bbe('0x108')]['welcomemessage']=_0x2443d3['slice'](0x2,_0x2443d3[_0x1b0bbe('0x25ae')])[_0x1b0bbe('0x1537')](',');}break;case'amazonlex':{var _0x56e88b=_0x1ff4e1['agent'][_0x1b0bbe('0x26d2')][_0x1b0bbe('0x1745')](',');_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x22be')]=_0x56e88b[0x0],_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x700')]=_0x56e88b[0x1],_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x206a')]=_0x56e88b[0x2],_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x191a')]=_0x56e88b[0x3],_0x1ff4e1['agent'][_0x1b0bbe('0xfcc')]=_0x56e88b[_0x1b0bbe('0xa19')](0x4,_0x56e88b[_0x1b0bbe('0x25ae')])[_0x1b0bbe('0x1537')](',');}break;case _0x1b0bbe('0x400'):{var _0xbc5a87=_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x26d2')]['split'](',');_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x1ec4')]=isNaN(_0xbc5a87[0x0])?_0xbc5a87[0x0]:parseInt(_0xbc5a87[0x0],0xa),_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x1bc6')]=_0xbc5a87['slice'](0x1,_0xbc5a87[_0x1b0bbe('0x25ae')])[_0x1b0bbe('0x1537')](',');}break;case _0x1b0bbe('0x27e8'):_0x1ff4e1[_0x1b0bbe('0x108')]['text']=_0x1ff4e1['agent'][_0x1b0bbe('0x26d2')];break;case _0x1b0bbe('0x2aa'):_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x2623')]=_0x1ff4e1['agent']['appdata'][_0x1b0bbe('0x1745')]('=')[0x0],_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x2')]=_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x26d2')][_0x1b0bbe('0x1745')]('=')[0x1];break;case _0x1b0bbe('0x401'):_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x38b')]=_0x1ff4e1['agent'][_0x1b0bbe('0x26d2')];break;default:{var _0x44e243=_0x1ff4e1[_0x1b0bbe('0x108')]['appdata']['split'](',');_0x1ff4e1['agent'][_0x1b0bbe('0x108')]=_0x32d445()[_0x1b0bbe('0x14b4')](_0x44e243[0x0])?_0x44e243[0x0]:isNaN(_0x44e243[0x0])?_0x44e243[0x0]:parseInt(_0x44e243[0x0],0xa),_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x2058')]=_0x32d445()[_0x1b0bbe('0x14b4')](_0x44e243[0x1])?_0x44e243[0x1]:isNaN(_0x44e243[0x1])?_0x44e243[0x1]:parseInt(_0x44e243[0x1],0xa);}break;}else _0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x2058')]=0x1e;_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x62e')]&&_0x1ff4e1['agent'][_0x1b0bbe('0x62e')]['toLowerCase']()===_0x1b0bbe('0x1fdf')&&_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0xf44')][_0x1b0bbe('0x20dd')]()==='outbounddial'&&(_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x2580')]=_0x1ff4e1[_0x1b0bbe('0x108')]['phone']?_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x1ef5')]['split']('$')[0x0]:undefined,_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0x1b6f')]=_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0xfca')]?'CALLERID(all)='+_0x1ff4e1[_0x1b0bbe('0x108')][_0x1b0bbe('0xfca')]:undefined);_0x1ff4e1['saveChatWebsiteApp']=_0x26a900,_0x1ff4e1[_0x1b0bbe('0x2584')]=_0x32851c,_0x94a58b[_0x1b0bbe('0x179e')](_0x1b0bbe('0xd14'))?_0x2bff6e[_0x1b0bbe('0x10c6')][_0x1b0bbe('0x22d5')]({'fields':'id,name','role':'agent','sort':'name','nolimit':_0x1b0bbe('0x2206')})[_0x1b0bbe('0xe59')][_0x1b0bbe('0xe19')](function(_0x4f149a){_0x1ff4e1['agents']=_0x4f149a['rows']||[];})[_0x1b0bbe('0x223b')](function(_0x1be12c){var _0x961ec=_0x1b0bbe;_0x23923e['error']({'title':_0x1be12c['status']?_0x961ec('0x27f2')+_0x1be12c['status']+_0x961ec('0x1b7c')+_0x1be12c[_0x961ec('0x1fd7')]:_0x961ec('0x1e86'),'msg':_0x1be12c[_0x961ec('0x11d0')]?JSON[_0x961ec('0x3ad')](_0x1be12c['data']):_0x1be12c[_0x961ec('0x94f')]()});}):_0x2bff6e[_0x1b0bbe('0x10c6')][_0x1b0bbe('0x22d5')]({'fields':_0x1b0bbe('0x104'),'role':_0x1b0bbe('0x108'),'sort':_0x1b0bbe('0x2623'),'nolimit':_0x1b0bbe('0x2206')})[_0x1b0bbe('0xe59')][_0x1b0bbe('0xe19')](function(_0x26f65f){_0x1ff4e1['agents']=_0x26f65f['rows']||[];})[_0x1b0bbe('0xe19')](function(){var _0x1ecdef=_0x1b0bbe;return _0x2bff6e[_0x1ecdef('0xb59')][_0x1ecdef('0x22d5')]({'userProfileId':_0x1ff4e1[_0x1ecdef('0x15a5')][_0x1ecdef('0x1d04')],'sectionId':0xca})['$promise'];})[_0x1b0bbe('0xe19')](function(_0x11874e){var _0x1fb5e=_0x1b0bbe,_0x2fec81=_0x11874e&&_0x11874e[_0x1fb5e('0x16a7')]?_0x11874e[_0x1fb5e('0x16a7')][0x0]:null;if(!_0x2fec81){var _0x8ab70b=[],_0x160193=null;_0x1ff4e1[_0x1fb5e('0x108')]&&(_0x160193=_0x32d445()[_0x1fb5e('0xf15')](_0x1ff4e1[_0x1fb5e('0x29b')],{'name':_0x1ff4e1[_0x1fb5e('0x108')][_0x1fb5e('0x108')]}));for(var _0x14b4cd=0x0;_0x14b4cd<_0x1ff4e1[_0x1fb5e('0x29b')][_0x1fb5e('0x25ae')];_0x14b4cd++){_0x160193&&_0x1ff4e1[_0x1fb5e('0x29b')][_0x14b4cd]['id']===_0x160193['id']&&(_0x1ff4e1['agents'][_0x14b4cd][_0x1fb5e('0x1e9d')]=![],_0x8ab70b['push'](_0x1ff4e1[_0x1fb5e('0x29b')][_0x14b4cd]));}_0x1ff4e1[_0x1fb5e('0x29b')]=_0x8ab70b;}else{if(!_0x2fec81['autoAssociation'])return _0x2bff6e[_0x1fb5e('0xd49')][_0x1fb5e('0x22d5')]({'sectionId':_0x2fec81['id']})[_0x1fb5e('0xe59')][_0x1fb5e('0xe19')](function(_0x5223d4){var _0x110d58=_0x1fb5e,_0x244396=_0x32d445()['map'](_0x5223d4[_0x110d58('0x16a7')],function(_0x569efb){var _0x311a03=_0x110d58;return _0x32d445()[_0x311a03('0xf15')](_0x1ff4e1['agents'],{'id':_0x569efb[_0x311a03('0x1104')]});}),_0x5a85a2=null;_0x1ff4e1[_0x110d58('0x108')]&&(_0x5a85a2=_0x32d445()[_0x110d58('0xf15')](_0x1ff4e1[_0x110d58('0x29b')],{'name':_0x1ff4e1[_0x110d58('0x108')][_0x110d58('0x108')]}));if(_0x5a85a2&&!_0x32d445()[_0x110d58('0x201a')](_0x244396,['id',_0x5a85a2['id']])){var _0x105a79=_0x32d445()['find'](_0x1ff4e1[_0x110d58('0x29b')],{'id':_0x5a85a2['id']});_0x105a79[_0x110d58('0x1e9d')]=![],_0x244396[_0x110d58('0xb76')](_0x105a79);}_0x1ff4e1[_0x110d58('0x29b')]=_0x244396;});}})['catch'](function(_0x5c0516){var _0x226ce5=_0x1b0bbe;_0x23923e[_0x226ce5('0x8c8')]({'title':_0x5c0516['status']?_0x226ce5('0x27f2')+_0x5c0516[_0x226ce5('0x2833')]+'\x20-\x20'+_0x5c0516[_0x226ce5('0x1fd7')]:_0x226ce5('0xfe4'),'msg':_0x5c0516[_0x226ce5('0x11d0')]?JSON[_0x226ce5('0x3ad')](_0x5c0516[_0x226ce5('0x11d0')]):_0x5c0516[_0x226ce5('0x94f')]()});});function _0x26a900(){var _0x567e38=_0x1b0bbe;_0x1ff4e1['errors']=[];var _0x35d603=[];_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x62e')]&&_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x62e')]['toLowerCase']()===_0x567e38('0x1fdf')&&_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0xf44')]==='outboundDial'&&(_0x1ff4e1[_0x567e38('0x108')]['phone']=_0x544acc['cutdigits']?(_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x2580')]||'')+_0x567e38('0x5d8')+_0x544acc[_0x567e38('0x27f6')]+'}':(_0x1ff4e1[_0x567e38('0x108')]['prefix']||'')+_0x567e38('0x16b5'),_0x544acc['recordingFormat']!==_0x567e38('0x23ca')?_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x2116')]['indexOf'](_0x567e38('0x767'))<0x0&&(_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x2116')]+=_0x567e38('0x767')):_0x1ff4e1['agent'][_0x567e38('0x2116')]=_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x2116')][_0x567e38('0x1b42')](_0x567e38('0x767'),''));var _0x491e64=_0x32d445()['find'](_0x1ff4e1[_0x567e38('0x29b')],{'name':_0x1ff4e1[_0x567e38('0x108')]['agent']});_0x491e64&&(_0x1ff4e1['agent'][_0x567e38('0x43d')]=_0x491e64['id']);if(_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0xf44')]&&_0x1ff4e1['agent'][_0x567e38('0xf44')]===_0x567e38('0x261d')){}else switch((_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0xf2b')]||_0x1ff4e1['agent']['appType'])[_0x567e38('0x20dd')]()){case _0x567e38('0x2aa'):_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x26d2')]=_0x1ff4e1['agent'][_0x567e38('0x2623')]+'='+_0x1ff4e1['agent'][_0x567e38('0x2')];break;case _0x567e38('0x261d'):break;default:_0x35d603[0x0]=_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x108')],_0x35d603[0x1]=_0x1ff4e1[_0x567e38('0x108')][_0x567e38('0x2058')],_0x1ff4e1['agent'][_0x567e38('0x26d2')]=_0x35d603[_0x567e38('0x1537')](',');}_0x32851c(_0x1ff4e1[_0x567e38('0x108')]);}function _0x32851c(_0x3f1595){var _0x32b044=_0x1b0bbe;_0x336100[_0x32b044('0x11ed')](_0x3f1595);}}const _0x387f2e=_0x4a93b6;_0xc57ec6[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'chatWebsiteApp','chatWebsite','api',_0xb635d2('0x2730'),'crudPermissions'];function _0xc57ec6(_0x58523a,_0x41df14,_0x3f41e6,_0x3943c2,_0x1619a4,_0xe1d6b7,_0x78bbeb,_0x4aa07e){var _0xc5cb0a=_0xb635d2,_0x24bf31=this;_0x24bf31[_0xc5cb0a('0x15a5')]=_0x78bbeb[_0xc5cb0a('0x1ef8')](),_0x24bf31[_0xc5cb0a('0xcd2')]=[],_0x24bf31[_0xc5cb0a('0x13e4')]='CHAT.EDIT_'+(_0x3943c2[_0xc5cb0a('0xf44')]||_0x3943c2[_0xc5cb0a('0xf2b')])[_0xc5cb0a('0x25f7')](),_0x24bf31[_0xc5cb0a('0x1321')]=angular[_0xc5cb0a('0x89')](_0x3943c2),_0x24bf31[_0xc5cb0a('0xb3d')]=_0x4aa07e,_0x24bf31['hasModulePermissions']={};if(_0x24bf31['amazonlex'][_0xc5cb0a('0x26d2')])switch(_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0xf44')]?_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0xf44')]['toLowerCase']():_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0xf2b')]['toLowerCase']()){case _0xc5cb0a('0x261d'):break;case _0xc5cb0a('0xc11'):{var _0x7fd8ca=_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x26d2')][_0xc5cb0a('0x1745')](',');_0x24bf31[_0xc5cb0a('0x1321')]['key']=_0x7fd8ca[0x0],_0x24bf31[_0xc5cb0a('0x1321')]['language']=_0x7fd8ca[0x1],_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0xfcc')]=_0x7fd8ca['slice'](0x2,_0x7fd8ca['length'])[_0xc5cb0a('0x1537')](',');}break;case _0xc5cb0a('0x1321'):{var _0x310261=_0x24bf31['amazonlex'][_0xc5cb0a('0x26d2')][_0xc5cb0a('0x1745')](',');_0x24bf31['amazonlex'][_0xc5cb0a('0x22be')]=_0x310261[0x0],_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x700')]=_0x310261[0x1],_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x206a')]=_0x310261[0x2],_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x191a')]=_0x310261[0x3],_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0xfcc')]=_0x310261['slice'](0x4,_0x310261[_0xc5cb0a('0x25ae')])[_0xc5cb0a('0x1537')](',');}break;case'autoreply':{var _0x4bb0d3=_0x24bf31['amazonlex']['appdata'][_0xc5cb0a('0x1745')](',');_0x24bf31[_0xc5cb0a('0x1321')]['times']=isNaN(_0x4bb0d3[0x0])?_0x4bb0d3[0x0]:parseInt(_0x4bb0d3[0x0],0xa),_0x24bf31['amazonlex']['text']=_0x4bb0d3[_0xc5cb0a('0xa19')](0x1,_0x4bb0d3['length'])[_0xc5cb0a('0x1537')](',');}break;case'message':_0x24bf31['amazonlex'][_0xc5cb0a('0x1bc6')]=_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x26d2')];break;case _0xc5cb0a('0x2aa'):_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x2623')]=_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x26d2')]['split']('=')[0x0],_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x2')]=_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x26d2')][_0xc5cb0a('0x1745')]('=')[0x1];break;case'agi':_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x38b')]=_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x26d2')];break;default:{var _0x9b90c8=_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x26d2')][_0xc5cb0a('0x1745')](',');_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x22be')]=_0x32d445()[_0xc5cb0a('0x14b4')](_0x9b90c8[0x0])?_0x9b90c8[0x0]:isNaN(_0x9b90c8[0x0])?_0x9b90c8[0x0]:parseInt(_0x9b90c8[0x0],0xa),_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x700')]=_0x32d445()[_0xc5cb0a('0x14b4')](_0x9b90c8[0x1])?_0x9b90c8[0x1]:isNaN(_0x9b90c8[0x1])?_0x9b90c8[0x1]:parseInt(_0x9b90c8[0x1],0xa),_0x24bf31['amazonlex'][_0xc5cb0a('0x206a')]=_0x32d445()[_0xc5cb0a('0x14b4')](_0x9b90c8[0x2])?_0x9b90c8[0x2]:isNaN(_0x9b90c8[0x2])?_0x9b90c8[0x2]:parseInt(_0x9b90c8[0x2],0xa),_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x191a')]=_0x32d445()[_0xc5cb0a('0x14b4')](_0x9b90c8[0x3])?_0x9b90c8[0x3]:isNaN(_0x9b90c8[0x3])?_0x9b90c8[0x3]:parseInt(_0x9b90c8[0x3],0xa),_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0xfcc')]=_0x32d445()[_0xc5cb0a('0x14b4')](_0x9b90c8[0x4])?_0x9b90c8[0x4]:isNaN(_0x9b90c8[0x4])?_0x9b90c8[0x4]:parseInt(_0x9b90c8[0x4],0xa);}break;}else _0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x206a')]=_0xc5cb0a('0x1c8');_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x62e')]&&_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x62e')][_0xc5cb0a('0x20dd')]()===_0xc5cb0a('0x1fdf')&&_0x24bf31[_0xc5cb0a('0x1321')]['appType']['toLowerCase']()===_0xc5cb0a('0x1d1b')&&(_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x2580')]=_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x1ef5')]?_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0x1ef5')][_0xc5cb0a('0x1745')]('$')[0x0]:undefined,_0x24bf31['amazonlex'][_0xc5cb0a('0x1b6f')]=_0x24bf31[_0xc5cb0a('0x1321')][_0xc5cb0a('0xfca')]?_0xc5cb0a('0xd41')+_0x24bf31[_0xc5cb0a('0x1321')]['callerID']:undefined);_0x24bf31['saveChatWebsiteApp']=_0x13fa21,_0x24bf31['closeDialog']=_0x50c96c;function _0x13fa21(){var _0x96dea0=_0xc5cb0a;_0x24bf31[_0x96dea0('0xcd2')]=[];var _0x1b47ee=[];_0x24bf31[_0x96dea0('0x1321')]['type']&&_0x24bf31[_0x96dea0('0x1321')]['type']['toLowerCase']()==='outbound'&&_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0xf44')]==='outboundDial'&&(_0x24bf31['amazonlex'][_0x96dea0('0x1ef5')]=_0x1619a4[_0x96dea0('0x27f6')]?(_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0x2580')]||'')+_0x96dea0('0x5d8')+_0x1619a4[_0x96dea0('0x27f6')]+'}':(_0x24bf31['amazonlex']['prefix']||'')+_0x96dea0('0x16b5'),_0x1619a4[_0x96dea0('0x150c')]!==_0x96dea0('0x23ca')?_0x24bf31['amazonlex'][_0x96dea0('0x2116')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0x2116')]+=_0x96dea0('0x767')):_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0x2116')]=_0x24bf31['amazonlex'][_0x96dea0('0x2116')]['replace'](_0x96dea0('0x767'),''));if(_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0xf44')]&&_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0xf44')]==='custom'){}else switch((_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0xf2b')]||_0x24bf31[_0x96dea0('0x1321')]['appType'])['toLowerCase']()){case _0x96dea0('0x2aa'):_0x24bf31[_0x96dea0('0x1321')]['appdata']=_0x24bf31['amazonlex'][_0x96dea0('0x2623')]+'='+_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0x2')];break;case _0x96dea0('0x261d'):break;default:_0x1b47ee[0x0]=_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0x22be')],_0x1b47ee[0x1]=_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0x700')],_0x1b47ee[0x2]=_0x24bf31['amazonlex'][_0x96dea0('0x206a')],_0x1b47ee[0x3]=_0x24bf31[_0x96dea0('0x1321')][_0x96dea0('0x191a')],_0x1b47ee[0x4]=_0x24bf31['amazonlex']['welcomemessage'],_0x24bf31[_0x96dea0('0x1321')]['appdata']=_0x1b47ee['join'](',');}_0x50c96c(_0x24bf31[_0x96dea0('0x1321')]);}function _0x50c96c(_0xf63154){var _0x3d5071=_0xc5cb0a;_0x58523a[_0x3d5071('0x11ed')](_0xf63154);}}const _0x1cc2ff=_0xc57ec6;_0x24a3b4['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x181c'),_0xb635d2('0xcda'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x24a3b4(_0x3eaf6b,_0x2e6ebc,_0xebb0a5,_0x40cfc1,_0x103da1,_0x579e74,_0x5b01f2,_0x968a7){var _0x221eb5=_0xb635d2,_0x5b3d0e=this;_0x5b3d0e[_0x221eb5('0x15a5')]=_0x5b01f2[_0x221eb5('0x1ef8')](),_0x5b3d0e[_0x221eb5('0xcd2')]=[],_0x5b3d0e['title']='CHAT.EDIT_'+(_0x40cfc1['appType']||_0x40cfc1[_0x221eb5('0xf2b')])[_0x221eb5('0x25f7')](),_0x5b3d0e[_0x221eb5('0x400')]=angular[_0x221eb5('0x89')](_0x40cfc1),_0x5b3d0e[_0x221eb5('0xb3d')]=_0x968a7,_0x5b3d0e[_0x221eb5('0x1ccb')]={};if(_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x26d2')])switch(_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0xf44')]?_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0xf44')][_0x221eb5('0x20dd')]():_0x5b3d0e['autoreply'][_0x221eb5('0xf2b')][_0x221eb5('0x20dd')]()){case'custom':break;case _0x221eb5('0xc11'):{var _0x2855f7=_0x5b3d0e[_0x221eb5('0x400')]['appdata']['split'](',');_0x5b3d0e[_0x221eb5('0x400')]['key']=_0x2855f7[0x0],_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x174b')]=_0x2855f7[0x1],_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0xfcc')]=_0x2855f7[_0x221eb5('0xa19')](0x2,_0x2855f7[_0x221eb5('0x25ae')])[_0x221eb5('0x1537')](',');}break;case'amazonlex':{var _0x35f251=_0x5b3d0e[_0x221eb5('0x400')]['appdata'][_0x221eb5('0x1745')](',');_0x5b3d0e[_0x221eb5('0x400')]['accesskeyid']=_0x35f251[0x0],_0x5b3d0e['autoreply'][_0x221eb5('0x700')]=_0x35f251[0x1],_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x206a')]=_0x35f251[0x2],_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x191a')]=_0x35f251[0x3],_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0xfcc')]=_0x35f251[_0x221eb5('0xa19')](0x4,_0x35f251[_0x221eb5('0x25ae')])[_0x221eb5('0x1537')](',');}break;case _0x221eb5('0x400'):{var _0x1825a5=_0x5b3d0e['autoreply'][_0x221eb5('0x26d2')][_0x221eb5('0x1745')](',');_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x1ec4')]=isNaN(_0x1825a5[0x0])?_0x1825a5[0x0]:parseInt(_0x1825a5[0x0],0xa),_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x1bc6')]=_0x1825a5[_0x221eb5('0xa19')](0x1,_0x1825a5[_0x221eb5('0x25ae')])[_0x221eb5('0x1537')](',');}break;case _0x221eb5('0x27e8'):_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x1bc6')]=_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x26d2')];break;case _0x221eb5('0x2aa'):_0x5b3d0e[_0x221eb5('0x400')]['name']=_0x5b3d0e['autoreply'][_0x221eb5('0x26d2')][_0x221eb5('0x1745')]('=')[0x0],_0x5b3d0e['autoreply'][_0x221eb5('0x2')]=_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x26d2')]['split']('=')[0x1];break;case'agi':_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x38b')]=_0x5b3d0e['autoreply']['appdata'];break;default:{var _0x4b2dab=_0x5b3d0e[_0x221eb5('0x400')]['appdata'][_0x221eb5('0x1745')](',');_0x5b3d0e[_0x221eb5('0x400')]['times']=_0x32d445()[_0x221eb5('0x14b4')](_0x4b2dab[0x0])?_0x4b2dab[0x0]:isNaN(_0x4b2dab[0x0])?_0x4b2dab[0x0]:parseInt(_0x4b2dab[0x0],0xa),_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x1bc6')]=_0x32d445()[_0x221eb5('0x14b4')](_0x4b2dab[0x1])?_0x4b2dab[0x1]:isNaN(_0x4b2dab[0x1])?_0x4b2dab[0x1]:parseInt(_0x4b2dab[0x1],0xa);}break;}else _0x5b3d0e[_0x221eb5('0x400')]['times']=0x1;_0x5b3d0e['autoreply'][_0x221eb5('0x62e')]&&_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x62e')][_0x221eb5('0x20dd')]()==='outbound'&&_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0xf44')][_0x221eb5('0x20dd')]()===_0x221eb5('0x1d1b')&&(_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x2580')]=_0x5b3d0e[_0x221eb5('0x400')]['phone']?_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x1ef5')][_0x221eb5('0x1745')]('$')[0x0]:undefined,_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0x1b6f')]=_0x5b3d0e['autoreply'][_0x221eb5('0xfca')]?_0x221eb5('0xd41')+_0x5b3d0e[_0x221eb5('0x400')][_0x221eb5('0xfca')]:undefined);_0x5b3d0e[_0x221eb5('0x16b0')]=_0xe2f67d,_0x5b3d0e[_0x221eb5('0x2584')]=_0x3ede47;function _0xe2f67d(){var _0x134e4f=_0x221eb5;_0x5b3d0e[_0x134e4f('0xcd2')]=[];var _0x723bf4=[];_0x5b3d0e[_0x134e4f('0x400')]['type']&&_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x62e')][_0x134e4f('0x20dd')]()===_0x134e4f('0x1fdf')&&_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0xf44')]===_0x134e4f('0x3d2')&&(_0x5b3d0e[_0x134e4f('0x400')]['phone']=_0x103da1['cutdigits']?(_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x2580')]||'')+_0x134e4f('0x5d8')+_0x103da1[_0x134e4f('0x27f6')]+'}':(_0x5b3d0e[_0x134e4f('0x400')]['prefix']||'')+'${EXTEN}',_0x103da1[_0x134e4f('0x150c')]!==_0x134e4f('0x23ca')?_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x2116')]['indexOf'](_0x134e4f('0x767'))<0x0&&(_0x5b3d0e['autoreply']['options']+=_0x134e4f('0x767')):_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x2116')]=_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x2116')][_0x134e4f('0x1b42')](_0x134e4f('0x767'),''));if(_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0xf44')]&&_0x5b3d0e['autoreply'][_0x134e4f('0xf44')]==='custom'){}else switch((_0x5b3d0e[_0x134e4f('0x400')]['app']||_0x5b3d0e[_0x134e4f('0x400')]['appType'])[_0x134e4f('0x20dd')]()){case _0x134e4f('0x2aa'):_0x5b3d0e['autoreply'][_0x134e4f('0x26d2')]=_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x2623')]+'='+_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x2')];break;case _0x134e4f('0x261d'):break;default:_0x723bf4[0x0]=_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x1ec4')],_0x723bf4[0x1]=_0x5b3d0e[_0x134e4f('0x400')][_0x134e4f('0x1bc6')],_0x5b3d0e['autoreply']['appdata']=_0x723bf4[_0x134e4f('0x1537')](',');}_0x3ede47(_0x5b3d0e['autoreply']);}function _0x3ede47(_0x25a57c){var _0xa178ce=_0x221eb5;_0x3eaf6b[_0xa178ce('0x11ed')](_0x25a57c);}}const _0x3941bc=_0x24a3b4;_0x1ccf23[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x181c'),_0xb635d2('0xcda'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x1ccf23(_0x41bd60,_0x2b1fb7,_0x29f757,_0x3c1cd4,_0x2cc65e,_0xb293fe,_0x5bc332,_0x6f0c2c){var _0x450878=_0xb635d2,_0x1e2f9c=this;_0x1e2f9c[_0x450878('0x15a5')]=_0x5bc332[_0x450878('0x1ef8')](),_0x1e2f9c[_0x450878('0xcd2')]=[],_0x1e2f9c[_0x450878('0x13e4')]=_0x450878('0x257c')+(_0x3c1cd4[_0x450878('0xf44')]||_0x3c1cd4[_0x450878('0xf2b')])['toUpperCase'](),_0x1e2f9c['close']=angular[_0x450878('0x89')](_0x3c1cd4),_0x1e2f9c['crudPermissions']=_0x6f0c2c,_0x1e2f9c[_0x450878('0x1ccb')]={};if(_0x1e2f9c[_0x450878('0x1886')]['appdata'])switch(_0x1e2f9c[_0x450878('0x1886')]['appType']?_0x1e2f9c[_0x450878('0x1886')][_0x450878('0xf44')][_0x450878('0x20dd')]():_0x1e2f9c[_0x450878('0x1886')]['app'][_0x450878('0x20dd')]()){case _0x450878('0x261d'):break;case _0x450878('0xc11'):{var _0x258b70=_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x26d2')]['split'](',');_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x6e4')]=_0x258b70[0x0],_0x1e2f9c['close'][_0x450878('0x174b')]=_0x258b70[0x1],_0x1e2f9c['close'][_0x450878('0xfcc')]=_0x258b70[_0x450878('0xa19')](0x2,_0x258b70[_0x450878('0x25ae')])[_0x450878('0x1537')](',');}break;case _0x450878('0x1321'):{var _0x3b2c85=_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x26d2')][_0x450878('0x1745')](',');_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x22be')]=_0x3b2c85[0x0],_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x700')]=_0x3b2c85[0x1],_0x1e2f9c[_0x450878('0x1886')]['lexregion']=_0x3b2c85[0x2],_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x191a')]=_0x3b2c85[0x3],_0x1e2f9c[_0x450878('0x1886')][_0x450878('0xfcc')]=_0x3b2c85['slice'](0x4,_0x3b2c85[_0x450878('0x25ae')])['join'](',');}break;case'autoreply':{var _0x35634e=_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x26d2')][_0x450878('0x1745')](',');_0x1e2f9c['close'][_0x450878('0x1ec4')]=isNaN(_0x35634e[0x0])?_0x35634e[0x0]:parseInt(_0x35634e[0x0],0xa),_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x1bc6')]=_0x35634e[_0x450878('0xa19')](0x1,_0x35634e[_0x450878('0x25ae')])[_0x450878('0x1537')](',');}break;case _0x450878('0x27e8'):_0x1e2f9c['close'][_0x450878('0x1bc6')]=_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x26d2')];break;case _0x450878('0x2aa'):_0x1e2f9c[_0x450878('0x1886')]['name']=_0x1e2f9c['close'][_0x450878('0x26d2')]['split']('=')[0x0],_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x2')]=_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x26d2')][_0x450878('0x1745')]('=')[0x1];break;case _0x450878('0x401'):_0x1e2f9c['close'][_0x450878('0x38b')]=_0x1e2f9c[_0x450878('0x1886')]['appdata'];break;default:{var _0x5eb0be=_0x1e2f9c[_0x450878('0x1886')]['appdata'][_0x450878('0x1745')](',');_0x1e2f9c['close'][_0x450878('0x2506')]=_0x32d445()[_0x450878('0x14b4')](_0x5eb0be[0x0])?_0x5eb0be[0x0]:isNaN(_0x5eb0be[0x0])?_0x5eb0be[0x0]:parseInt(_0x5eb0be[0x0],0xa);}break;}else{}_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x62e')]&&_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x62e')][_0x450878('0x20dd')]()===_0x450878('0x1fdf')&&_0x1e2f9c[_0x450878('0x1886')][_0x450878('0xf44')][_0x450878('0x20dd')]()===_0x450878('0x1d1b')&&(_0x1e2f9c[_0x450878('0x1886')]['prefix']=_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x1ef5')]?_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x1ef5')][_0x450878('0x1745')]('$')[0x0]:undefined,_0x1e2f9c[_0x450878('0x1886')][_0x450878('0x1b6f')]=_0x1e2f9c['close'][_0x450878('0xfca')]?'CALLERID(all)='+_0x1e2f9c[_0x450878('0x1886')][_0x450878('0xfca')]:undefined);_0x1e2f9c['saveChatWebsiteApp']=_0x39e516,_0x1e2f9c[_0x450878('0x2584')]=_0x19e039;function _0x39e516(){var _0x18ce73=_0x450878;_0x1e2f9c[_0x18ce73('0xcd2')]=[];var _0x597bb1=[];_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0x62e')]&&_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0x62e')][_0x18ce73('0x20dd')]()===_0x18ce73('0x1fdf')&&_0x1e2f9c[_0x18ce73('0x1886')]['appType']==='outboundDial'&&(_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0x1ef5')]=_0x2cc65e['cutdigits']?(_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0x2580')]||'')+_0x18ce73('0x5d8')+_0x2cc65e[_0x18ce73('0x27f6')]+'}':(_0x1e2f9c['close'][_0x18ce73('0x2580')]||'')+_0x18ce73('0x16b5'),_0x2cc65e[_0x18ce73('0x150c')]!==_0x18ce73('0x23ca')?_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0x2116')][_0x18ce73('0x281c')](_0x18ce73('0x767'))<0x0&&(_0x1e2f9c['close'][_0x18ce73('0x2116')]+='U(xcally-mixmonitor-context)'):_0x1e2f9c['close'][_0x18ce73('0x2116')]=_0x1e2f9c['close'][_0x18ce73('0x2116')][_0x18ce73('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0xf44')]&&_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0xf44')]===_0x18ce73('0x261d')){}else switch((_0x1e2f9c['close'][_0x18ce73('0xf2b')]||_0x1e2f9c['close']['appType'])['toLowerCase']()){case _0x18ce73('0x2aa'):_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0x26d2')]=_0x1e2f9c['close'][_0x18ce73('0x2623')]+'='+_0x1e2f9c['close'][_0x18ce73('0x2')];break;case'custom':break;default:_0x597bb1[0x0]=_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0x2506')],_0x1e2f9c[_0x18ce73('0x1886')][_0x18ce73('0x26d2')]=_0x597bb1['join'](',');}_0x19e039(_0x1e2f9c[_0x18ce73('0x1886')]);}function _0x19e039(_0x1665b4){var _0x1547e5=_0x450878;_0x41bd60[_0x1547e5('0x11ed')](_0x1665b4);}}const _0x867d53=_0x1ccf23;_0x52f0a1['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x181c'),_0xb635d2('0xcda'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x52f0a1(_0x27337d,_0x15cf56,_0x2a7fd3,_0xdd2c53,_0x145d70,_0x170a94,_0x9b17d7,_0x3c45f0){var _0x23daa8=_0xb635d2,_0xd6e37e=this;_0xd6e37e[_0x23daa8('0x15a5')]=_0x9b17d7['getCurrentUser'](),_0xd6e37e[_0x23daa8('0xcd2')]=[],_0xd6e37e[_0x23daa8('0x13e4')]=_0x23daa8('0x257c')+(_0xdd2c53[_0x23daa8('0xf44')]||_0xdd2c53[_0x23daa8('0xf2b')])[_0x23daa8('0x25f7')](),_0xd6e37e['dialogflow']=angular[_0x23daa8('0x89')](_0xdd2c53),_0xd6e37e[_0x23daa8('0xb3d')]=_0x3c45f0,_0xd6e37e[_0x23daa8('0x1ccb')]={};if(_0xd6e37e[_0x23daa8('0xc11')]['appdata'])switch(_0xd6e37e[_0x23daa8('0xc11')]['appType']?_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0xf44')][_0x23daa8('0x20dd')]():_0xd6e37e['dialogflow']['app']['toLowerCase']()){case _0x23daa8('0x261d'):break;case _0x23daa8('0xc11'):{var _0x2be50a=_0xd6e37e[_0x23daa8('0xc11')]['appdata'][_0x23daa8('0x1745')](',');_0xd6e37e['dialogflow'][_0x23daa8('0x6e4')]=_0x2be50a[0x0],_0xd6e37e['dialogflow'][_0x23daa8('0x174b')]=_0x2be50a[0x1],_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0xfcc')]=_0x2be50a[_0x23daa8('0xa19')](0x2,_0x2be50a['length'])[_0x23daa8('0x1537')](',');}break;case _0x23daa8('0x1321'):{var _0x53d3d9=_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x26d2')][_0x23daa8('0x1745')](',');_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x22be')]=_0x53d3d9[0x0],_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x700')]=_0x53d3d9[0x1],_0xd6e37e['dialogflow'][_0x23daa8('0x206a')]=_0x53d3d9[0x2],_0xd6e37e['dialogflow'][_0x23daa8('0x191a')]=_0x53d3d9[0x3],_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0xfcc')]=_0x53d3d9[_0x23daa8('0xa19')](0x4,_0x53d3d9[_0x23daa8('0x25ae')])[_0x23daa8('0x1537')](',');}break;case _0x23daa8('0x400'):{var _0x4521a9=_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x26d2')][_0x23daa8('0x1745')](',');_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x1ec4')]=isNaN(_0x4521a9[0x0])?_0x4521a9[0x0]:parseInt(_0x4521a9[0x0],0xa),_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x1bc6')]=_0x4521a9[_0x23daa8('0xa19')](0x1,_0x4521a9[_0x23daa8('0x25ae')])[_0x23daa8('0x1537')](',');}break;case'message':_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x1bc6')]=_0xd6e37e['dialogflow'][_0x23daa8('0x26d2')];break;case _0x23daa8('0x2aa'):_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x2623')]=_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x26d2')][_0x23daa8('0x1745')]('=')[0x0],_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x2')]=_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x26d2')][_0x23daa8('0x1745')]('=')[0x1];break;case _0x23daa8('0x401'):_0xd6e37e[_0x23daa8('0xc11')]['project']=_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x26d2')];break;default:{var _0xb00a57=_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x26d2')][_0x23daa8('0x1745')](',');_0xd6e37e['dialogflow'][_0x23daa8('0x6e4')]=_0x32d445()[_0x23daa8('0x14b4')](_0xb00a57[0x0])?_0xb00a57[0x0]:isNaN(_0xb00a57[0x0])?_0xb00a57[0x0]:parseInt(_0xb00a57[0x0],0xa),_0xd6e37e[_0x23daa8('0xc11')]['language']=_0x32d445()[_0x23daa8('0x14b4')](_0xb00a57[0x1])?_0xb00a57[0x1]:isNaN(_0xb00a57[0x1])?_0xb00a57[0x1]:parseInt(_0xb00a57[0x1],0xa),_0xd6e37e['dialogflow']['welcomemessage']=_0x32d445()['isEmpty'](_0xb00a57[0x2])?_0xb00a57[0x2]:isNaN(_0xb00a57[0x2])?_0xb00a57[0x2]:parseInt(_0xb00a57[0x2],0xa);}break;}else _0xd6e37e[_0x23daa8('0xc11')]['language']='en';_0xd6e37e['dialogflow']['type']&&_0xd6e37e[_0x23daa8('0xc11')]['type'][_0x23daa8('0x20dd')]()==='outbound'&&_0xd6e37e[_0x23daa8('0xc11')]['appType'][_0x23daa8('0x20dd')]()===_0x23daa8('0x1d1b')&&(_0xd6e37e['dialogflow'][_0x23daa8('0x2580')]=_0xd6e37e[_0x23daa8('0xc11')][_0x23daa8('0x1ef5')]?_0xd6e37e['dialogflow'][_0x23daa8('0x1ef5')][_0x23daa8('0x1745')]('$')[0x0]:undefined,_0xd6e37e['dialogflow'][_0x23daa8('0x1b6f')]=_0xd6e37e['dialogflow'][_0x23daa8('0xfca')]?_0x23daa8('0xd41')+_0xd6e37e['dialogflow']['callerID']:undefined);_0xd6e37e['saveChatWebsiteApp']=_0x115281,_0xd6e37e[_0x23daa8('0x2584')]=_0x37e8f1;function _0x115281(){var _0x344f4c=_0x23daa8;_0xd6e37e[_0x344f4c('0xcd2')]=[];var _0x34bd14=[];_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x62e')]&&_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x62e')][_0x344f4c('0x20dd')]()===_0x344f4c('0x1fdf')&&_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0xf44')]===_0x344f4c('0x3d2')&&(_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x1ef5')]=_0x145d70[_0x344f4c('0x27f6')]?(_0xd6e37e['dialogflow'][_0x344f4c('0x2580')]||'')+'${EXTEN:'+_0x145d70['cutdigits']+'}':(_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x2580')]||'')+_0x344f4c('0x16b5'),_0x145d70['recordingFormat']!==_0x344f4c('0x23ca')?_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x2116')][_0x344f4c('0x281c')](_0x344f4c('0x767'))<0x0&&(_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x2116')]+=_0x344f4c('0x767')):_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x2116')]=_0xd6e37e['dialogflow']['options'][_0x344f4c('0x1b42')](_0x344f4c('0x767'),''));if(_0xd6e37e['dialogflow'][_0x344f4c('0xf44')]&&_0xd6e37e['dialogflow']['appType']===_0x344f4c('0x261d')){}else switch((_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0xf2b')]||_0xd6e37e[_0x344f4c('0xc11')]['appType'])['toLowerCase']()){case _0x344f4c('0x2aa'):_0xd6e37e['dialogflow'][_0x344f4c('0x26d2')]=_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x2623')]+'='+_0xd6e37e[_0x344f4c('0xc11')]['value'];break;case'custom':break;default:_0x34bd14[0x0]=_0xd6e37e[_0x344f4c('0xc11')]['key'],_0x34bd14[0x1]=_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x174b')],_0x34bd14[0x2]=_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0xfcc')],_0xd6e37e[_0x344f4c('0xc11')][_0x344f4c('0x26d2')]=_0x34bd14[_0x344f4c('0x1537')](',');}_0x37e8f1(_0xd6e37e[_0x344f4c('0xc11')]);}function _0x37e8f1(_0x13a2cf){var _0x388dc5=_0x23daa8;_0x27337d[_0x388dc5('0x11ed')](_0x13a2cf);}}const _0xc7c776=_0x52f0a1;_0x24b97a['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),'chatWebsiteApp',_0xb635d2('0xcda'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x24b97a(_0x59a752,_0x26e57c,_0x4fe71c,_0x1e363b,_0x387acf,_0x255fbb,_0x3c6db9,_0x1061de){var _0x37140f=_0xb635d2,_0xfc853d=this;_0xfc853d[_0x37140f('0x15a5')]=_0x3c6db9[_0x37140f('0x1ef8')](),_0xfc853d[_0x37140f('0xcd2')]=[],_0xfc853d[_0x37140f('0x13e4')]=_0x37140f('0x257c')+(_0x1e363b[_0x37140f('0xf44')]||_0x1e363b[_0x37140f('0xf2b')])[_0x37140f('0x25f7')](),_0xfc853d[_0x37140f('0x22c3')]=angular['copy'](_0x1e363b),_0xfc853d['crudPermissions']=_0x1061de,_0xfc853d[_0x37140f('0x1ccb')]={};if(_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x26d2')])switch(_0xfc853d['gotoif'][_0x37140f('0xf44')]?_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0xf44')][_0x37140f('0x20dd')]():_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0xf2b')][_0x37140f('0x20dd')]()){case'custom':break;case _0x37140f('0xc11'):{var _0x28dd48=_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x26d2')][_0x37140f('0x1745')](',');_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x6e4')]=_0x28dd48[0x0],_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x174b')]=_0x28dd48[0x1],_0xfc853d[_0x37140f('0x22c3')]['welcomemessage']=_0x28dd48[_0x37140f('0xa19')](0x2,_0x28dd48['length'])[_0x37140f('0x1537')](',');}break;case _0x37140f('0x1321'):{var _0x332c19=_0xfc853d['gotoif'][_0x37140f('0x26d2')][_0x37140f('0x1745')](',');_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x22be')]=_0x332c19[0x0],_0xfc853d[_0x37140f('0x22c3')]['secretaccesskey']=_0x332c19[0x1],_0xfc853d[_0x37140f('0x22c3')]['lexregion']=_0x332c19[0x2],_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x191a')]=_0x332c19[0x3],_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0xfcc')]=_0x332c19[_0x37140f('0xa19')](0x4,_0x332c19[_0x37140f('0x25ae')])['join'](',');}break;case _0x37140f('0x400'):{var _0x477a16=_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x26d2')][_0x37140f('0x1745')](',');_0xfc853d['gotoif'][_0x37140f('0x1ec4')]=isNaN(_0x477a16[0x0])?_0x477a16[0x0]:parseInt(_0x477a16[0x0],0xa),_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x1bc6')]=_0x477a16[_0x37140f('0xa19')](0x1,_0x477a16['length'])[_0x37140f('0x1537')](',');}break;case _0x37140f('0x27e8'):_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x1bc6')]=_0xfc853d['gotoif'][_0x37140f('0x26d2')];break;case _0x37140f('0x2aa'):_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x2623')]=_0xfc853d[_0x37140f('0x22c3')]['appdata'][_0x37140f('0x1745')]('=')[0x0],_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x2')]=_0xfc853d[_0x37140f('0x22c3')]['appdata'][_0x37140f('0x1745')]('=')[0x1];break;case _0x37140f('0x401'):_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x38b')]=_0xfc853d['gotoif']['appdata'];break;default:{var _0x3103b9=_0xfc853d[_0x37140f('0x22c3')]['appdata'][_0x37140f('0x1745')](',');_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x1c03')]=_0x32d445()[_0x37140f('0x14b4')](_0x3103b9[0x0])?_0x3103b9[0x0]:isNaN(_0x3103b9[0x0])?_0x3103b9[0x0]:parseInt(_0x3103b9[0x0],0xa),_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x50')]=_0x32d445()[_0x37140f('0x14b4')](_0x3103b9[0x1])?_0x3103b9[0x1]:isNaN(_0x3103b9[0x1])?_0x3103b9[0x1]:parseInt(_0x3103b9[0x1],0xa),_0xfc853d[_0x37140f('0x22c3')]['falsepriority']=_0x32d445()['isEmpty'](_0x3103b9[0x2])?_0x3103b9[0x2]:isNaN(_0x3103b9[0x2])?_0x3103b9[0x2]:parseInt(_0x3103b9[0x2],0xa);}break;}else{}_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x62e')]&&_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x62e')][_0x37140f('0x20dd')]()===_0x37140f('0x1fdf')&&_0xfc853d[_0x37140f('0x22c3')]['appType'][_0x37140f('0x20dd')]()==='outbounddial'&&(_0xfc853d[_0x37140f('0x22c3')]['prefix']=_0xfc853d['gotoif'][_0x37140f('0x1ef5')]?_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x1ef5')][_0x37140f('0x1745')]('$')[0x0]:undefined,_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0x1b6f')]=_0xfc853d[_0x37140f('0x22c3')]['callerID']?'CALLERID(all)='+_0xfc853d[_0x37140f('0x22c3')][_0x37140f('0xfca')]:undefined);_0xfc853d[_0x37140f('0x16b0')]=_0x14f6c9,_0xfc853d[_0x37140f('0x2584')]=_0x1a4995;function _0x14f6c9(){var _0x359207=_0x37140f;_0xfc853d[_0x359207('0xcd2')]=[];var _0x38c620=[];_0xfc853d[_0x359207('0x22c3')][_0x359207('0x62e')]&&_0xfc853d[_0x359207('0x22c3')][_0x359207('0x62e')][_0x359207('0x20dd')]()===_0x359207('0x1fdf')&&_0xfc853d[_0x359207('0x22c3')][_0x359207('0xf44')]===_0x359207('0x3d2')&&(_0xfc853d[_0x359207('0x22c3')][_0x359207('0x1ef5')]=_0x387acf[_0x359207('0x27f6')]?(_0xfc853d[_0x359207('0x22c3')][_0x359207('0x2580')]||'')+_0x359207('0x5d8')+_0x387acf[_0x359207('0x27f6')]+'}':(_0xfc853d[_0x359207('0x22c3')][_0x359207('0x2580')]||'')+'${EXTEN}',_0x387acf['recordingFormat']!=='none'?_0xfc853d[_0x359207('0x22c3')][_0x359207('0x2116')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0xfc853d[_0x359207('0x22c3')][_0x359207('0x2116')]+=_0x359207('0x767')):_0xfc853d[_0x359207('0x22c3')][_0x359207('0x2116')]=_0xfc853d[_0x359207('0x22c3')][_0x359207('0x2116')][_0x359207('0x1b42')](_0x359207('0x767'),''));if(_0xfc853d['gotoif'][_0x359207('0xf44')]&&_0xfc853d['gotoif'][_0x359207('0xf44')]==='custom'){}else switch((_0xfc853d['gotoif']['app']||_0xfc853d[_0x359207('0x22c3')][_0x359207('0xf44')])['toLowerCase']()){case _0x359207('0x2aa'):_0xfc853d[_0x359207('0x22c3')]['appdata']=_0xfc853d[_0x359207('0x22c3')][_0x359207('0x2623')]+'='+_0xfc853d['gotoif'][_0x359207('0x2')];break;case _0x359207('0x261d'):break;default:_0x38c620[0x0]=_0xfc853d[_0x359207('0x22c3')][_0x359207('0x1c03')],_0x38c620[0x1]=_0xfc853d[_0x359207('0x22c3')]['truepriority'],_0x38c620[0x2]=_0xfc853d[_0x359207('0x22c3')][_0x359207('0x347')],_0xfc853d[_0x359207('0x22c3')]['appdata']=_0x38c620['join'](',');}_0x1a4995(_0xfc853d[_0x359207('0x22c3')]);}function _0x1a4995(_0x82f790){var _0x1f8dab=_0x37140f;_0x59a752[_0x1f8dab('0x11ed')](_0x82f790);}}const _0x15eafd=_0x24b97a;_0x37f782['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x181c'),_0xb635d2('0xcda'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x37f782(_0x26ac8b,_0x2e6613,_0x3eb488,_0x2d2e93,_0x595b44,_0x2a349a,_0x268cc4,_0x28b8b1){var _0x159962=_0xb635d2,_0x5b8ce0=this;_0x5b8ce0[_0x159962('0x15a5')]=_0x268cc4[_0x159962('0x1ef8')](),_0x5b8ce0[_0x159962('0xcd2')]=[],_0x5b8ce0[_0x159962('0x13e4')]=_0x159962('0x257c')+(_0x2d2e93[_0x159962('0xf44')]||_0x2d2e93[_0x159962('0xf2b')])[_0x159962('0x25f7')](),_0x5b8ce0[_0x159962('0x16fe')]=angular[_0x159962('0x89')](_0x2d2e93),_0x5b8ce0[_0x159962('0xb3d')]=_0x28b8b1,_0x5b8ce0[_0x159962('0x1ccb')]={};if(_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x26d2')])switch(_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0xf44')]?_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0xf44')]['toLowerCase']():_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0xf2b')][_0x159962('0x20dd')]()){case'custom':break;case _0x159962('0xc11'):{var _0x144392=_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x26d2')]['split'](',');_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x6e4')]=_0x144392[0x0],_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x174b')]=_0x144392[0x1],_0x5b8ce0[_0x159962('0x16fe')]['welcomemessage']=_0x144392['slice'](0x2,_0x144392[_0x159962('0x25ae')])['join'](',');}break;case'amazonlex':{var _0x24a9af=_0x5b8ce0['gotop'][_0x159962('0x26d2')]['split'](',');_0x5b8ce0['gotop']['accesskeyid']=_0x24a9af[0x0],_0x5b8ce0['gotop'][_0x159962('0x700')]=_0x24a9af[0x1],_0x5b8ce0['gotop']['lexregion']=_0x24a9af[0x2],_0x5b8ce0[_0x159962('0x16fe')]['botname']=_0x24a9af[0x3],_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0xfcc')]=_0x24a9af['slice'](0x4,_0x24a9af[_0x159962('0x25ae')])['join'](',');}break;case _0x159962('0x400'):{var _0x1bd820=_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x26d2')]['split'](',');_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x1ec4')]=isNaN(_0x1bd820[0x0])?_0x1bd820[0x0]:parseInt(_0x1bd820[0x0],0xa),_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x1bc6')]=_0x1bd820['slice'](0x1,_0x1bd820['length'])['join'](',');}break;case _0x159962('0x27e8'):_0x5b8ce0[_0x159962('0x16fe')]['text']=_0x5b8ce0['gotop']['appdata'];break;case _0x159962('0x2aa'):_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x2623')]=_0x5b8ce0['gotop'][_0x159962('0x26d2')][_0x159962('0x1745')]('=')[0x0],_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x2')]=_0x5b8ce0[_0x159962('0x16fe')]['appdata'][_0x159962('0x1745')]('=')[0x1];break;case _0x159962('0x401'):_0x5b8ce0[_0x159962('0x16fe')]['project']=_0x5b8ce0['gotop'][_0x159962('0x26d2')];break;default:{var _0x50f0aa=_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x26d2')][_0x159962('0x1745')](',');_0x5b8ce0['gotop'][_0x159962('0xb33')]=_0x32d445()[_0x159962('0x14b4')](_0x50f0aa[0x0])?_0x50f0aa[0x0]:isNaN(_0x50f0aa[0x0])?_0x50f0aa[0x0]:parseInt(_0x50f0aa[0x0],0xa);}break;}else{}_0x5b8ce0['gotop'][_0x159962('0x62e')]&&_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x62e')]['toLowerCase']()===_0x159962('0x1fdf')&&_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0xf44')][_0x159962('0x20dd')]()===_0x159962('0x1d1b')&&(_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x2580')]=_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x1ef5')]?_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0x1ef5')][_0x159962('0x1745')]('$')[0x0]:undefined,_0x5b8ce0[_0x159962('0x16fe')]['callerId']=_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0xfca')]?_0x159962('0xd41')+_0x5b8ce0[_0x159962('0x16fe')][_0x159962('0xfca')]:undefined);_0x5b8ce0[_0x159962('0x16b0')]=_0x237a14,_0x5b8ce0[_0x159962('0x2584')]=_0x51cdea;function _0x237a14(){var _0x5947d2=_0x159962;_0x5b8ce0[_0x5947d2('0xcd2')]=[];var _0x3c0edc=[];_0x5b8ce0[_0x5947d2('0x16fe')]['type']&&_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x62e')]['toLowerCase']()==='outbound'&&_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0xf44')]==='outboundDial'&&(_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x1ef5')]=_0x595b44['cutdigits']?(_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x2580')]||'')+_0x5947d2('0x5d8')+_0x595b44[_0x5947d2('0x27f6')]+'}':(_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x2580')]||'')+'${EXTEN}',_0x595b44[_0x5947d2('0x150c')]!==_0x5947d2('0x23ca')?_0x5b8ce0[_0x5947d2('0x16fe')]['options'][_0x5947d2('0x281c')](_0x5947d2('0x767'))<0x0&&(_0x5b8ce0[_0x5947d2('0x16fe')]['options']+=_0x5947d2('0x767')):_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x2116')]=_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x2116')][_0x5947d2('0x1b42')](_0x5947d2('0x767'),''));if(_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0xf44')]&&_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0xf44')]===_0x5947d2('0x261d')){}else switch((_0x5b8ce0[_0x5947d2('0x16fe')]['app']||_0x5b8ce0['gotop'][_0x5947d2('0xf44')])[_0x5947d2('0x20dd')]()){case _0x5947d2('0x2aa'):_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x26d2')]=_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x2623')]+'='+_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x2')];break;case'custom':break;default:_0x3c0edc[0x0]=_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0xb33')],_0x5b8ce0[_0x5947d2('0x16fe')][_0x5947d2('0x26d2')]=_0x3c0edc['join'](',');}_0x51cdea(_0x5b8ce0[_0x5947d2('0x16fe')]);}function _0x51cdea(_0x54cf58){var _0x23057a=_0x159962;_0x26ac8b[_0x23057a('0x11ed')](_0x54cf58);}}const _0x203727=_0x37f782;_0x4d819d[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),_0xb635d2('0x1e23'),_0xb635d2('0x9ab'),_0xb635d2('0x134c'),_0xb635d2('0x10e0'),'toasty',_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x4d819d(_0x1012b0,_0x449cdb,_0x9e3576,_0x2ea09e,_0x10fd16,_0x3fc038,_0x3663b4,_0x347ff9,_0x575758,_0x24ac0b){var _0x3bbbbf=_0xb635d2,_0x4f3993=this;_0x4f3993[_0x3bbbbf('0x15a5')]=_0x575758[_0x3bbbbf('0x1ef8')](),_0x4f3993['errors']=[],_0x4f3993[_0x3bbbbf('0x13e4')]='TOOLS.EDIT_INTERVAL',_0x4f3993['interval']=angular[_0x3bbbbf('0x89')](_0x10fd16),_0x4f3993[_0x3bbbbf('0x10e0')]=_0x3fc038,_0x4f3993[_0x3bbbbf('0x1a83')]=![],_0x4f3993[_0x3bbbbf('0x1ea6')]=[_0x3bbbbf('0x2210'),_0x3bbbbf('0x261d'),_0x3bbbbf('0x15a8')],_0x4f3993[_0x3bbbbf('0xb3d')]=_0x24ac0b,_0x4f3993['daysOfWeek']=_0x2ea09e['getDaysOfWeek'](),_0x4f3993[_0x3bbbbf('0x253d')]=_0x2ea09e[_0x3bbbbf('0x1015')](),_0x4f3993[_0x3bbbbf('0x631')]=_0x2ea09e['getMonthName'](),_0x4f3993[_0x3bbbbf('0x2347')]=_0x2ea09e[_0x3bbbbf('0xdee')]();if(!_0x4f3993[_0x3bbbbf('0x134c')])_0x4f3993[_0x3bbbbf('0x134c')]={'interval':_0x3bbbbf('0x2292')},_0x4f3993['type']=_0x3bbbbf('0x2210'),_0x4f3993['title']=_0x3bbbbf('0x1947'),_0x4f3993[_0x3bbbbf('0x1a83')]=!![];else{if(_0x4f3993[_0x3bbbbf('0x134c')]['interval']!==_0x3bbbbf('0x2292')){_0x4f3993[_0x3bbbbf('0x62e')]=_0x3bbbbf('0x261d');var _0x32b5b5=_0x4f3993[_0x3bbbbf('0x134c')][_0x3bbbbf('0x134c')][_0x3bbbbf('0x1745')](','),_0xbb7064=_0x32b5b5[0x0],_0x5536d5=_0x32b5b5[0x1],_0x221cd5=_0x32b5b5[0x2],_0x3c20b9=_0x32b5b5[0x3];if(_0xbb7064!=='*'){var _0x3b5855=_0xbb7064[_0x3bbbbf('0x1745')]('-')[0x0],_0x54dfd5=_0xbb7064[_0x3bbbbf('0x1745')]('-')[0x1],_0x322145;_0x322145=new Date(),_0x322145[_0x3bbbbf('0x19f6')](Number(_0x3b5855[_0x3bbbbf('0x1745')](':')[0x0])),_0x322145[_0x3bbbbf('0x6b6')](Number(_0x3b5855[_0x3bbbbf('0x1745')](':')[0x1])),_0x4f3993[_0x3bbbbf('0xde9')]=_0x322145,_0x322145=new Date(),_0x322145[_0x3bbbbf('0x19f6')](Number(_0x54dfd5[_0x3bbbbf('0x1745')](':')[0x0])),_0x322145[_0x3bbbbf('0x6b6')](Number(_0x54dfd5['split'](':')[0x1])),_0x4f3993['timeRangeTo']=_0x322145;}_0x5536d5!=='*'&&(_0x4f3993[_0x3bbbbf('0x2359')]=_0x5536d5['split']('-')[0x0],_0x4f3993[_0x3bbbbf('0xa40')]=_0x5536d5['split']('-')[0x1]),_0x221cd5!=='*'&&(_0x4f3993[_0x3bbbbf('0x146b')]=_0x221cd5[_0x3bbbbf('0x1745')]('-')[0x0],_0x4f3993[_0x3bbbbf('0x3d6')]=_0x221cd5['split']('-')[0x1]),_0x3c20b9!=='*'&&(_0x4f3993[_0x3bbbbf('0x1b2a')]=_0x3c20b9[_0x3bbbbf('0x1745')]('-')[0x0],_0x4f3993[_0x3bbbbf('0xac6')]=_0x3c20b9[_0x3bbbbf('0x1745')]('-')[0x1]);}else _0x4f3993[_0x3bbbbf('0x62e')]=_0x3bbbbf('0x2210');}_0x1012b0['params']['id']&&!_0x4f3993[_0x3bbbbf('0x134c')][_0x3bbbbf('0x1491')]&&(_0x4f3993[_0x3bbbbf('0x134c')]['IntervalId']=_0x1012b0['params']['id']);_0x4f3993[_0x3bbbbf('0x134c')]['IntervalId']&&_0x4f3993[_0x3bbbbf('0x134c')]['application']&&(_0x4f3993[_0x3bbbbf('0x62e')]=_0x3bbbbf('0x15a8'));_0x4f3993[_0x3bbbbf('0x10a8')]=_0x42ea4e,_0x4f3993[_0x3bbbbf('0x201f')]=_0x55fe3c,_0x4f3993['closeDialog']=_0x521cba;_0x4f3993[_0x3bbbbf('0x134c')][_0x3bbbbf('0x1491')]&&(_0x575758[_0x3bbbbf('0x179e')](_0x3bbbbf('0xd14'))?_0x347ff9[_0x3bbbbf('0x134c')][_0x3bbbbf('0x22d5')]({'fields':_0x3bbbbf('0x13df'),'IntervalId':_0x3bbbbf('0x1046'),'nolimit':!![]})[_0x3bbbbf('0xe59')][_0x3bbbbf('0xe19')](function(_0x258d16){var _0x45c661=_0x3bbbbf;_0x4f3993[_0x45c661('0x10e0')]=_0x258d16[_0x45c661('0x16a7')]||[];})[_0x3bbbbf('0x223b')](function(_0xb22178){var _0xb12b34=_0x3bbbbf;_0x3663b4['error']({'title':_0xb22178[_0xb12b34('0x2833')]?_0xb12b34('0x27f2')+_0xb22178[_0xb12b34('0x2833')]+_0xb12b34('0x1b7c')+_0xb22178[_0xb12b34('0x1fd7')]:_0xb12b34('0x1c1c'),'msg':_0xb22178['data']?JSON[_0xb12b34('0x3ad')](_0xb22178[_0xb12b34('0x11d0')]):_0xb22178[_0xb12b34('0x94f')]()});}):_0x347ff9[_0x3bbbbf('0x134c')][_0x3bbbbf('0x22d5')]({'fields':_0x3bbbbf('0x13df'),'IntervalId':_0x3bbbbf('0x1046'),'nolimit':!![]})[_0x3bbbbf('0xe59')][_0x3bbbbf('0xe19')](function(_0x114a7f){var _0x2a071f=_0x3bbbbf;_0x4f3993[_0x2a071f('0x10e0')]=_0x114a7f[_0x2a071f('0x16a7')]||[];})['then'](function(){return _0x347ff9['userProfileSection']['get']({'userProfileId':_0x4f3993['currentUser']['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x3bbbbf('0xe19')](function(_0x306d88){var _0x538a39=_0x3bbbbf,_0x42cb59=_0x306d88&&_0x306d88[_0x538a39('0x16a7')]?_0x306d88[_0x538a39('0x16a7')][0x0]:null;if(!_0x42cb59)_0x4f3993[_0x538a39('0x10e0')]=[];else{if(!_0x42cb59['autoAssociation'])return _0x347ff9['userProfileResource'][_0x538a39('0x22d5')]({'sectionId':_0x42cb59['id']})[_0x538a39('0xe59')][_0x538a39('0xe19')](function(_0x4d4ef4){var _0x4b1fe2=_0x538a39,_0x4f487b=_0x4d4ef4&&_0x4d4ef4['rows']?_0x4d4ef4[_0x4b1fe2('0x16a7')]:[],_0x21d388=[],_0x830c77=null;_0x4f3993[_0x4b1fe2('0x134c')]&&(_0x830c77=_0x32d445()[_0x4b1fe2('0xf15')](_0x4f3993[_0x4b1fe2('0x10e0')],{'name':_0x4f3993[_0x4b1fe2('0x134c')][_0x4b1fe2('0x1fc1')]})),_0x830c77&&!_0x32d445()['some'](_0x4f487b,[_0x4b1fe2('0x1104'),_0x830c77['id']])&&_0x4f3993[_0x4b1fe2('0x10e0')]['forEach'](function(_0x1d8943){var _0x412912=_0x4b1fe2;_0x1d8943['id']===_0x830c77['id']&&(_0x1d8943[_0x412912('0x1e9d')]=![],_0x21d388[_0x412912('0xb76')](_0x1d8943));}),_0x4f3993[_0x4b1fe2('0x10e0')]=_0x21d388;});}})[_0x3bbbbf('0x223b')](function(_0x529fd2){var _0x24924a=_0x3bbbbf;_0x3663b4[_0x24924a('0x8c8')]({'title':_0x529fd2[_0x24924a('0x2833')]?_0x24924a('0x27f2')+_0x529fd2[_0x24924a('0x2833')]+_0x24924a('0x1b7c')+_0x529fd2['statusText']:_0x24924a('0x1c1c'),'msg':_0x529fd2['data']?JSON[_0x24924a('0x3ad')](_0x529fd2['data']):_0x529fd2['toString']()});}));function _0x4b7172(){var _0x559ee9=_0x3bbbbf;switch(_0x4f3993[_0x559ee9('0x62e')]){case _0x559ee9('0x2210'):case _0x559ee9('0x15a8'):return _0x559ee9('0x2292');case _0x559ee9('0x261d'):{var _0x4ae706=[];if(_0x4f3993[_0x559ee9('0xde9')]!=='*'&&_0x4f3993[_0x559ee9('0xde9')]&&_0x4f3993[_0x559ee9('0x12ef')]){var _0x346234=(_0x4f3993['timeRangeFrom'][_0x559ee9('0x757')]()<0xa?'0':'')+_0x4f3993['timeRangeFrom'][_0x559ee9('0x757')]()+':'+((_0x4f3993['timeRangeFrom'][_0x559ee9('0x961')]()<0xa?'0':'')+_0x4f3993[_0x559ee9('0xde9')][_0x559ee9('0x961')]()),_0x2e140a=(_0x4f3993[_0x559ee9('0x12ef')][_0x559ee9('0x757')]()<0xa?'0':'')+_0x4f3993[_0x559ee9('0x12ef')][_0x559ee9('0x757')]()+':'+((_0x4f3993[_0x559ee9('0x12ef')][_0x559ee9('0x961')]()<0xa?'0':'')+_0x4f3993[_0x559ee9('0x12ef')][_0x559ee9('0x961')]());_0x4ae706['push'](_0x346234+'-'+_0x2e140a);}else _0x4ae706['push']('*');return _0x4f3993[_0x559ee9('0x2359')]?_0x4f3993[_0x559ee9('0xa40')]?_0x4ae706[_0x559ee9('0xb76')](_0x4f3993[_0x559ee9('0x2359')]+'-'+_0x4f3993['dayOfWeekTo']):_0x4ae706[_0x559ee9('0xb76')](_0x4f3993[_0x559ee9('0x2359')]):_0x4ae706[_0x559ee9('0xb76')]('*'),_0x4f3993[_0x559ee9('0x146b')]?_0x4f3993[_0x559ee9('0x3d6')]?_0x4ae706[_0x559ee9('0xb76')](_0x4f3993[_0x559ee9('0x146b')]+'-'+_0x4f3993[_0x559ee9('0x3d6')]):_0x4ae706[_0x559ee9('0xb76')](_0x4f3993[_0x559ee9('0x146b')]):_0x4ae706[_0x559ee9('0xb76')]('*'),_0x4f3993[_0x559ee9('0x1b2a')]?_0x4f3993[_0x559ee9('0xac6')]?_0x4ae706['push'](_0x4f3993[_0x559ee9('0x1b2a')]+'-'+_0x4f3993[_0x559ee9('0xac6')]):_0x4ae706[_0x559ee9('0xb76')](_0x4f3993[_0x559ee9('0x1b2a')]):_0x4ae706['push']('*'),_0x4ae706[_0x559ee9('0x1537')]();}}}function _0x42ea4e(){var _0x2e15a7=_0x3bbbbf;_0x4f3993[_0x2e15a7('0xcd2')]=[],_0x4f3993[_0x2e15a7('0x134c')][_0x2e15a7('0x134c')]=_0x4b7172(),_0x347ff9[_0x2e15a7('0x134c')][_0x2e15a7('0xe5e')](_0x4f3993[_0x2e15a7('0x134c')])['$promise'][_0x2e15a7('0xe19')](function(_0x2b3209){var _0x5cee11=_0x2e15a7;_0x4f3993[_0x5cee11('0x10e0')][_0x5cee11('0xb76')](_0x2b3209),_0x3663b4['success']({'title':_0x5cee11('0x1268'),'msg':_0x4f3993[_0x5cee11('0x134c')][_0x5cee11('0x2623')]?_0x4f3993[_0x5cee11('0x134c')][_0x5cee11('0x2623')]+'\x20has\x20been\x20created!':''}),_0x521cba();})['catch'](function(_0x1c306b){var _0xf11ae1=_0x2e15a7;console['error'](_0x1c306b),_0x4f3993[_0xf11ae1('0xcd2')]=_0x1c306b[_0xf11ae1('0x11d0')]['errors']||[{'message':_0x1c306b['toString'](),'type':_0xf11ae1('0x176b')}];});}function _0x55fe3c(){var _0x4e8972=_0x3bbbbf;_0x4f3993['errors']=[],_0x4f3993['interval'][_0x4e8972('0x134c')]=_0x4b7172(),_0x4f3993['interval'][_0x4e8972('0x1491')]?(_0x4f3993[_0x4e8972('0x62e')]!==_0x4e8972('0x15a8')&&(_0x4f3993[_0x4e8972('0x134c')][_0x4e8972('0x1fc1')]=null),_0x521cba(_0x4f3993['interval'])):_0x347ff9[_0x4e8972('0x134c')]['update']({'id':_0x4f3993['interval']['id']},_0x4f3993[_0x4e8972('0x134c')])[_0x4e8972('0xe59')]['then'](function(_0x662ea){var _0x4483bd=_0x4e8972,_0x2aa6fe=_0x32d445()[_0x4483bd('0xf15')](_0x4f3993[_0x4483bd('0x10e0')],{'id':_0x662ea['id']});_0x2aa6fe&&_0x32d445()[_0x4483bd('0x1d8')](_0x2aa6fe,_0x662ea),_0x3663b4[_0x4483bd('0x425')]({'title':_0x4483bd('0x228'),'msg':_0x4483bd('0x8b4')}),_0x521cba();})[_0x4e8972('0x223b')](function(_0x4cc406){var _0x521ecd=_0x4e8972;console['error'](_0x4cc406),_0x4f3993[_0x521ecd('0xcd2')]=_0x4cc406[_0x521ecd('0x11d0')][_0x521ecd('0xcd2')]||[{'message':_0x4cc406[_0x521ecd('0x94f')](),'type':'api.interval.update'}];});}function _0x521cba(_0x18a93b){var _0x27966c=_0x3bbbbf;_0x449cdb[_0x27966c('0x11ed')](_0x18a93b);}}const _0x357a01=_0x4d819d;_0x14ea1e[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0x181c'),_0xb635d2('0xcda'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x14ea1e(_0x233b44,_0x853528,_0x435161,_0x5497fa,_0x515fdf,_0x326988,_0x2d425e,_0x2774c8){var _0xd2095b=_0xb635d2,_0x285dbb=this;_0x285dbb[_0xd2095b('0x15a5')]=_0x2d425e[_0xd2095b('0x1ef8')](),_0x285dbb['errors']=[],_0x285dbb['title']=_0xd2095b('0x257c')+(_0x5497fa[_0xd2095b('0xf44')]||_0x5497fa['app'])[_0xd2095b('0x25f7')](),_0x285dbb[_0xd2095b('0xc09')]=angular['copy'](_0x5497fa),_0x285dbb[_0xd2095b('0xb3d')]=_0x2774c8,_0x285dbb[_0xd2095b('0x1ccb')]={};if(_0x285dbb['noop']['appdata'])switch(_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0xf44')]?_0x285dbb['noop'][_0xd2095b('0xf44')]['toLowerCase']():_0x285dbb[_0xd2095b('0xc09')]['app']['toLowerCase']()){case _0xd2095b('0x261d'):break;case _0xd2095b('0xc11'):{var _0x1534ef=_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x26d2')][_0xd2095b('0x1745')](',');_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x6e4')]=_0x1534ef[0x0],_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x174b')]=_0x1534ef[0x1],_0x285dbb[_0xd2095b('0xc09')]['welcomemessage']=_0x1534ef[_0xd2095b('0xa19')](0x2,_0x1534ef[_0xd2095b('0x25ae')])[_0xd2095b('0x1537')](',');}break;case _0xd2095b('0x1321'):{var _0x57f1ef=_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x26d2')][_0xd2095b('0x1745')](',');_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x22be')]=_0x57f1ef[0x0],_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x700')]=_0x57f1ef[0x1],_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x206a')]=_0x57f1ef[0x2],_0x285dbb['noop'][_0xd2095b('0x191a')]=_0x57f1ef[0x3],_0x285dbb['noop'][_0xd2095b('0xfcc')]=_0x57f1ef[_0xd2095b('0xa19')](0x4,_0x57f1ef['length'])[_0xd2095b('0x1537')](',');}break;case _0xd2095b('0x400'):{var _0x3d6035=_0x285dbb['noop'][_0xd2095b('0x26d2')][_0xd2095b('0x1745')](',');_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x1ec4')]=isNaN(_0x3d6035[0x0])?_0x3d6035[0x0]:parseInt(_0x3d6035[0x0],0xa),_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x1bc6')]=_0x3d6035[_0xd2095b('0xa19')](0x1,_0x3d6035[_0xd2095b('0x25ae')])['join'](',');}break;case _0xd2095b('0x27e8'):_0x285dbb[_0xd2095b('0xc09')]['text']=_0x285dbb[_0xd2095b('0xc09')]['appdata'];break;case'set':_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x2623')]=_0x285dbb['noop']['appdata']['split']('=')[0x0],_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x2')]=_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x26d2')][_0xd2095b('0x1745')]('=')[0x1];break;case _0xd2095b('0x401'):_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x38b')]=_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x26d2')];break;default:{var _0x28ecc9=_0x285dbb['noop'][_0xd2095b('0x26d2')][_0xd2095b('0x1745')](',');_0x285dbb['noop'][_0xd2095b('0x2')]=_0x32d445()[_0xd2095b('0x14b4')](_0x28ecc9[0x0])?_0x28ecc9[0x0]:isNaN(_0x28ecc9[0x0])?_0x28ecc9[0x0]:parseInt(_0x28ecc9[0x0],0xa);}break;}else{}_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x62e')]&&_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x62e')][_0xd2095b('0x20dd')]()===_0xd2095b('0x1fdf')&&_0x285dbb[_0xd2095b('0xc09')]['appType']['toLowerCase']()===_0xd2095b('0x1d1b')&&(_0x285dbb['noop'][_0xd2095b('0x2580')]=_0x285dbb['noop']['phone']?_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0x1ef5')][_0xd2095b('0x1745')]('$')[0x0]:undefined,_0x285dbb[_0xd2095b('0xc09')]['callerId']=_0x285dbb['noop'][_0xd2095b('0xfca')]?'CALLERID(all)='+_0x285dbb[_0xd2095b('0xc09')][_0xd2095b('0xfca')]:undefined);_0x285dbb[_0xd2095b('0x16b0')]=_0x5c24aa,_0x285dbb[_0xd2095b('0x2584')]=_0x25a0df;function _0x5c24aa(){var _0x20cbd0=_0xd2095b;_0x285dbb['errors']=[];var _0x2514a3=[];_0x285dbb['noop']['type']&&_0x285dbb[_0x20cbd0('0xc09')][_0x20cbd0('0x62e')]['toLowerCase']()===_0x20cbd0('0x1fdf')&&_0x285dbb[_0x20cbd0('0xc09')][_0x20cbd0('0xf44')]===_0x20cbd0('0x3d2')&&(_0x285dbb[_0x20cbd0('0xc09')][_0x20cbd0('0x1ef5')]=_0x515fdf[_0x20cbd0('0x27f6')]?(_0x285dbb['noop'][_0x20cbd0('0x2580')]||'')+_0x20cbd0('0x5d8')+_0x515fdf[_0x20cbd0('0x27f6')]+'}':(_0x285dbb['noop'][_0x20cbd0('0x2580')]||'')+_0x20cbd0('0x16b5'),_0x515fdf['recordingFormat']!==_0x20cbd0('0x23ca')?_0x285dbb['noop'][_0x20cbd0('0x2116')][_0x20cbd0('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x285dbb[_0x20cbd0('0xc09')]['options']+=_0x20cbd0('0x767')):_0x285dbb[_0x20cbd0('0xc09')]['options']=_0x285dbb[_0x20cbd0('0xc09')]['options']['replace'](_0x20cbd0('0x767'),''));if(_0x285dbb[_0x20cbd0('0xc09')][_0x20cbd0('0xf44')]&&_0x285dbb[_0x20cbd0('0xc09')][_0x20cbd0('0xf44')]===_0x20cbd0('0x261d')){}else switch((_0x285dbb['noop'][_0x20cbd0('0xf2b')]||_0x285dbb[_0x20cbd0('0xc09')][_0x20cbd0('0xf44')])[_0x20cbd0('0x20dd')]()){case _0x20cbd0('0x2aa'):_0x285dbb['noop']['appdata']=_0x285dbb[_0x20cbd0('0xc09')][_0x20cbd0('0x2623')]+'='+_0x285dbb['noop'][_0x20cbd0('0x2')];break;case'custom':break;default:_0x2514a3[0x0]=_0x285dbb[_0x20cbd0('0xc09')][_0x20cbd0('0x2')],_0x285dbb['noop'][_0x20cbd0('0x26d2')]=_0x2514a3[_0x20cbd0('0x1537')](',');}_0x25a0df(_0x285dbb[_0x20cbd0('0xc09')]);}function _0x25a0df(_0x25f68e){_0x233b44['hide'](_0x25f68e);}}const _0x5a8d5b=_0x14ea1e;_0x4fb5c9[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x181c'),_0xb635d2('0xcda'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4fb5c9(_0x288c0d,_0x2b820b,_0x2d1eef,_0x3b8b1a,_0x449cad,_0x1bcee0,_0x28099d,_0x8a726f){var _0x5c3123=_0xb635d2,_0x6e2d1=this;_0x6e2d1[_0x5c3123('0x15a5')]=_0x28099d[_0x5c3123('0x1ef8')](),_0x6e2d1[_0x5c3123('0xcd2')]=[],_0x6e2d1[_0x5c3123('0x13e4')]='CHAT.EDIT_'+(_0x3b8b1a['appType']||_0x3b8b1a[_0x5c3123('0xf2b')])[_0x5c3123('0x25f7')](),_0x6e2d1['queue']=angular[_0x5c3123('0x89')](_0x3b8b1a),_0x6e2d1['crudPermissions']=_0x8a726f,_0x6e2d1['hasModulePermissions']={};if(_0x6e2d1['queue'][_0x5c3123('0x26d2')])switch(_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0xf44')]?_0x6e2d1[_0x5c3123('0x26a8')]['appType'][_0x5c3123('0x20dd')]():_0x6e2d1['queue'][_0x5c3123('0xf2b')][_0x5c3123('0x20dd')]()){case _0x5c3123('0x261d'):break;case _0x5c3123('0xc11'):{var _0x3dd942=_0x6e2d1[_0x5c3123('0x26a8')]['appdata']['split'](',');_0x6e2d1['queue']['key']=_0x3dd942[0x0],_0x6e2d1['queue'][_0x5c3123('0x174b')]=_0x3dd942[0x1],_0x6e2d1['queue'][_0x5c3123('0xfcc')]=_0x3dd942[_0x5c3123('0xa19')](0x2,_0x3dd942[_0x5c3123('0x25ae')])[_0x5c3123('0x1537')](',');}break;case _0x5c3123('0x1321'):{var _0x511a7a=_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x26d2')][_0x5c3123('0x1745')](',');_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x22be')]=_0x511a7a[0x0],_0x6e2d1['queue'][_0x5c3123('0x700')]=_0x511a7a[0x1],_0x6e2d1[_0x5c3123('0x26a8')]['lexregion']=_0x511a7a[0x2],_0x6e2d1['queue']['botname']=_0x511a7a[0x3],_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0xfcc')]=_0x511a7a['slice'](0x4,_0x511a7a[_0x5c3123('0x25ae')])['join'](',');}break;case _0x5c3123('0x400'):{var _0x3cc7bb=_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x26d2')]['split'](',');_0x6e2d1[_0x5c3123('0x26a8')]['times']=isNaN(_0x3cc7bb[0x0])?_0x3cc7bb[0x0]:parseInt(_0x3cc7bb[0x0],0xa),_0x6e2d1['queue']['text']=_0x3cc7bb[_0x5c3123('0xa19')](0x1,_0x3cc7bb['length'])['join'](',');}break;case _0x5c3123('0x27e8'):_0x6e2d1[_0x5c3123('0x26a8')]['text']=_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x26d2')];break;case _0x5c3123('0x2aa'):_0x6e2d1['queue'][_0x5c3123('0x2623')]=_0x6e2d1['queue']['appdata'][_0x5c3123('0x1745')]('=')[0x0],_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x2')]=_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x26d2')][_0x5c3123('0x1745')]('=')[0x1];break;case _0x5c3123('0x401'):_0x6e2d1['queue'][_0x5c3123('0x38b')]=_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x26d2')];break;default:{var _0x1c1554=_0x6e2d1['queue']['appdata'][_0x5c3123('0x1745')](',');_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x26a8')]=_0x32d445()[_0x5c3123('0x14b4')](_0x1c1554[0x0])?_0x1c1554[0x0]:isNaN(_0x1c1554[0x0])?_0x1c1554[0x0]:parseInt(_0x1c1554[0x0],0xa),_0x6e2d1['queue'][_0x5c3123('0x2058')]=_0x32d445()[_0x5c3123('0x14b4')](_0x1c1554[0x1])?_0x1c1554[0x1]:isNaN(_0x1c1554[0x1])?_0x1c1554[0x1]:parseInt(_0x1c1554[0x1],0xa);}break;}else _0x6e2d1['queue']['queue']=0x12c,_0x6e2d1[_0x5c3123('0x26a8')]['timeout']=0x12c;_0x6e2d1['queue'][_0x5c3123('0x62e')]&&_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x62e')][_0x5c3123('0x20dd')]()===_0x5c3123('0x1fdf')&&_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0xf44')]['toLowerCase']()===_0x5c3123('0x1d1b')&&(_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x2580')]=_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x1ef5')]?_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0x1ef5')][_0x5c3123('0x1745')]('$')[0x0]:undefined,_0x6e2d1['queue'][_0x5c3123('0x1b6f')]=_0x6e2d1[_0x5c3123('0x26a8')][_0x5c3123('0xfca')]?'CALLERID(all)='+_0x6e2d1['queue'][_0x5c3123('0xfca')]:undefined);_0x6e2d1[_0x5c3123('0x16b0')]=_0x2c3524,_0x6e2d1[_0x5c3123('0x2584')]=_0x1a0328,_0x28099d['hasRole'](_0x5c3123('0xd14'))?_0x1bcee0['chatQueue'][_0x5c3123('0x22d5')]({'fields':_0x5c3123('0x1555'),'sort':_0x5c3123('0x2623'),'nolimit':_0x5c3123('0x2206')})['$promise'][_0x5c3123('0xe19')](function(_0x1648b2){var _0x5531c5=_0x5c3123;_0x6e2d1[_0x5531c5('0x671')]=_0x1648b2[_0x5531c5('0x16a7')]||[];})['catch'](function(_0x3078fc){var _0x1f50ae=_0x5c3123;_0x2d1eef[_0x1f50ae('0x8c8')]({'title':_0x3078fc[_0x1f50ae('0x2833')]?_0x1f50ae('0x27f2')+_0x3078fc['status']+_0x1f50ae('0x1b7c')+_0x3078fc[_0x1f50ae('0x1fd7')]:_0x1f50ae('0x19e6'),'msg':_0x3078fc[_0x1f50ae('0x11d0')]?JSON[_0x1f50ae('0x3ad')](_0x3078fc['data']):_0x3078fc[_0x1f50ae('0x94f')]()});}):_0x1bcee0[_0x5c3123('0xfce')][_0x5c3123('0x22d5')]({'fields':_0x5c3123('0x1555'),'sort':'name','nolimit':_0x5c3123('0x2206')})[_0x5c3123('0xe59')][_0x5c3123('0xe19')](function(_0x49bc7b){var _0x4e6bc9=_0x5c3123;_0x6e2d1[_0x4e6bc9('0x671')]=_0x49bc7b[_0x4e6bc9('0x16a7')]||[];})[_0x5c3123('0xe19')](function(){var _0x29e91a=_0x5c3123;return _0x1bcee0['userProfileSection'][_0x29e91a('0x22d5')]({'userProfileId':_0x6e2d1[_0x29e91a('0x15a5')][_0x29e91a('0x1d04')],'sectionId':0x1f5})['$promise'];})[_0x5c3123('0xe19')](function(_0x5122b7){var _0x5a5536=_0x5c3123,_0x32036b=_0x5122b7&&_0x5122b7[_0x5a5536('0x16a7')]?_0x5122b7[_0x5a5536('0x16a7')][0x0]:null;if(!_0x32036b){var _0x49b245=[],_0x42c2d9=null;_0x6e2d1[_0x5a5536('0x26a8')]&&(_0x42c2d9=_0x32d445()[_0x5a5536('0xf15')](_0x6e2d1[_0x5a5536('0x671')],{'name':_0x6e2d1[_0x5a5536('0x26a8')][_0x5a5536('0x26a8')]}));for(var _0x47b93a=0x0;_0x47b93a<_0x6e2d1[_0x5a5536('0x671')][_0x5a5536('0x25ae')];_0x47b93a++){_0x42c2d9&&_0x6e2d1['queues'][_0x47b93a]['id']===_0x42c2d9['id']&&(_0x6e2d1[_0x5a5536('0x671')][_0x47b93a][_0x5a5536('0x1e9d')]=![],_0x49b245[_0x5a5536('0xb76')](_0x6e2d1['queues'][_0x47b93a]));}_0x6e2d1[_0x5a5536('0x671')]=_0x49b245;}else{if(!_0x32036b[_0x5a5536('0x11fd')])return _0x1bcee0[_0x5a5536('0xd49')][_0x5a5536('0x22d5')]({'sectionId':_0x32036b['id']})['$promise'][_0x5a5536('0xe19')](function(_0xcdf643){var _0x1e2938=_0x5a5536,_0x21193a=_0x32d445()[_0x1e2938('0x65a')](_0xcdf643[_0x1e2938('0x16a7')],function(_0x3653ff){var _0x20ef17=_0x1e2938;return _0x32d445()[_0x20ef17('0xf15')](_0x6e2d1[_0x20ef17('0x671')],{'id':_0x3653ff[_0x20ef17('0x1104')]});}),_0x2675dc=null;_0x6e2d1['queue']&&(_0x2675dc=_0x32d445()['find'](_0x6e2d1[_0x1e2938('0x671')],{'name':_0x6e2d1[_0x1e2938('0x26a8')][_0x1e2938('0x26a8')]}));if(_0x2675dc&&!_0x32d445()[_0x1e2938('0x201a')](_0x21193a,['id',_0x2675dc['id']])){var _0x43b44c=_0x32d445()[_0x1e2938('0xf15')](_0x6e2d1['queues'],{'id':_0x2675dc['id']});_0x43b44c['canSelect']=![],_0x21193a[_0x1e2938('0xb76')](_0x43b44c);}_0x6e2d1[_0x1e2938('0x671')]=_0x21193a;});}})[_0x5c3123('0x223b')](function(_0x102964){var _0x319f52=_0x5c3123;_0x2d1eef[_0x319f52('0x8c8')]({'title':_0x102964[_0x319f52('0x2833')]?_0x319f52('0x27f2')+_0x102964[_0x319f52('0x2833')]+_0x319f52('0x1b7c')+_0x102964[_0x319f52('0x1fd7')]:_0x319f52('0x1716'),'msg':_0x102964['data']?JSON['stringify'](_0x102964['data']):_0x102964['toString']()});});function _0x2c3524(){var _0x7c9297=_0x5c3123;_0x6e2d1[_0x7c9297('0xcd2')]=[];var _0x155447=[];_0x6e2d1[_0x7c9297('0x26a8')]['type']&&_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x62e')][_0x7c9297('0x20dd')]()==='outbound'&&_0x6e2d1['queue'][_0x7c9297('0xf44')]===_0x7c9297('0x3d2')&&(_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x1ef5')]=_0x449cad[_0x7c9297('0x27f6')]?(_0x6e2d1['queue'][_0x7c9297('0x2580')]||'')+_0x7c9297('0x5d8')+_0x449cad[_0x7c9297('0x27f6')]+'}':(_0x6e2d1[_0x7c9297('0x26a8')]['prefix']||'')+_0x7c9297('0x16b5'),_0x449cad['recordingFormat']!==_0x7c9297('0x23ca')?_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x2116')][_0x7c9297('0x281c')](_0x7c9297('0x767'))<0x0&&(_0x6e2d1['queue'][_0x7c9297('0x2116')]+='U(xcally-mixmonitor-context)'):_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x2116')]=_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x2116')][_0x7c9297('0x1b42')](_0x7c9297('0x767'),''));var _0x513a39=_0x32d445()['find'](_0x6e2d1[_0x7c9297('0x671')],{'name':_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x26a8')]});_0x513a39&&(_0x6e2d1['queue'][_0x32d445()['capitalize']('chat')+'QueueId']=_0x513a39['id']);if(_0x6e2d1['queue'][_0x7c9297('0xf44')]&&_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0xf44')]===_0x7c9297('0x261d')){}else switch((_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0xf2b')]||_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0xf44')])['toLowerCase']()){case _0x7c9297('0x2aa'):_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x26d2')]=_0x6e2d1['queue'][_0x7c9297('0x2623')]+'='+_0x6e2d1['queue'][_0x7c9297('0x2')];break;case _0x7c9297('0x261d'):break;default:_0x155447[0x0]=_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x26a8')],_0x155447[0x1]=_0x6e2d1['queue'][_0x7c9297('0x2058')],_0x6e2d1[_0x7c9297('0x26a8')][_0x7c9297('0x26d2')]=_0x155447[_0x7c9297('0x1537')](',');}_0x1a0328(_0x6e2d1[_0x7c9297('0x26a8')]);}function _0x1a0328(_0x5d8f5f){var _0x4433ac=_0x5c3123;_0x288c0d[_0x4433ac('0x11ed')](_0x5d8f5f);}}const _0x56a2a0=_0x4fb5c9;_0x392520[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x181c'),_0xb635d2('0xcda'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x392520(_0x2982ab,_0x44d53b,_0x1e95f1,_0xa4e9df,_0x569a45,_0x4273e0,_0x904049,_0x30dbde){var _0x3e5ee2=_0xb635d2,_0x11e458=this;_0x11e458[_0x3e5ee2('0x15a5')]=_0x904049[_0x3e5ee2('0x1ef8')](),_0x11e458[_0x3e5ee2('0xcd2')]=[],_0x11e458[_0x3e5ee2('0x13e4')]=_0x3e5ee2('0x257c')+(_0xa4e9df['appType']||_0xa4e9df[_0x3e5ee2('0xf2b')])['toUpperCase'](),_0x11e458[_0x3e5ee2('0x1917')]=angular[_0x3e5ee2('0x89')](_0xa4e9df),_0x11e458[_0x3e5ee2('0xb3d')]=_0x30dbde,_0x11e458[_0x3e5ee2('0x1ccb')]={};if(_0x11e458['system']['appdata'])switch(_0x11e458['system']['appType']?_0x11e458['system'][_0x3e5ee2('0xf44')]['toLowerCase']():_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0xf2b')][_0x3e5ee2('0x20dd')]()){case _0x3e5ee2('0x261d'):break;case _0x3e5ee2('0xc11'):{var _0xaf5f82=_0x11e458[_0x3e5ee2('0x1917')]['appdata'][_0x3e5ee2('0x1745')](',');_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x6e4')]=_0xaf5f82[0x0],_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x174b')]=_0xaf5f82[0x1],_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0xfcc')]=_0xaf5f82['slice'](0x2,_0xaf5f82[_0x3e5ee2('0x25ae')])[_0x3e5ee2('0x1537')](',');}break;case _0x3e5ee2('0x1321'):{var _0x30ae80=_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x26d2')][_0x3e5ee2('0x1745')](',');_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x22be')]=_0x30ae80[0x0],_0x11e458[_0x3e5ee2('0x1917')]['secretaccesskey']=_0x30ae80[0x1],_0x11e458['system'][_0x3e5ee2('0x206a')]=_0x30ae80[0x2],_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x191a')]=_0x30ae80[0x3],_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0xfcc')]=_0x30ae80[_0x3e5ee2('0xa19')](0x4,_0x30ae80[_0x3e5ee2('0x25ae')])[_0x3e5ee2('0x1537')](',');}break;case _0x3e5ee2('0x400'):{var _0x371fbf=_0x11e458[_0x3e5ee2('0x1917')]['appdata']['split'](',');_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x1ec4')]=isNaN(_0x371fbf[0x0])?_0x371fbf[0x0]:parseInt(_0x371fbf[0x0],0xa),_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x1bc6')]=_0x371fbf[_0x3e5ee2('0xa19')](0x1,_0x371fbf['length'])[_0x3e5ee2('0x1537')](',');}break;case'message':_0x11e458['system'][_0x3e5ee2('0x1bc6')]=_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x26d2')];break;case _0x3e5ee2('0x2aa'):_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x2623')]=_0x11e458[_0x3e5ee2('0x1917')]['appdata'][_0x3e5ee2('0x1745')]('=')[0x0],_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x2')]=_0x11e458['system'][_0x3e5ee2('0x26d2')][_0x3e5ee2('0x1745')]('=')[0x1];break;case'agi':_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x38b')]=_0x11e458[_0x3e5ee2('0x1917')]['appdata'];break;default:{var _0x406fb0=_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x26d2')][_0x3e5ee2('0x1745')](',');_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x19a')]=_0x32d445()[_0x3e5ee2('0x14b4')](_0x406fb0[0x0])?_0x406fb0[0x0]:isNaN(_0x406fb0[0x0])?_0x406fb0[0x0]:parseInt(_0x406fb0[0x0],0xa),_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x19a5')]=_0x32d445()[_0x3e5ee2('0x14b4')](_0x406fb0[0x1])?_0x406fb0[0x1]:isNaN(_0x406fb0[0x1])?_0x406fb0[0x1]:parseInt(_0x406fb0[0x1],0xa);}break;}else _0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x19a5')]='';_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x62e')]&&_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x62e')][_0x3e5ee2('0x20dd')]()===_0x3e5ee2('0x1fdf')&&_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0xf44')][_0x3e5ee2('0x20dd')]()===_0x3e5ee2('0x1d1b')&&(_0x11e458[_0x3e5ee2('0x1917')]['prefix']=_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x1ef5')]?_0x11e458['system'][_0x3e5ee2('0x1ef5')][_0x3e5ee2('0x1745')]('$')[0x0]:undefined,_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0x1b6f')]=_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0xfca')]?_0x3e5ee2('0xd41')+_0x11e458[_0x3e5ee2('0x1917')][_0x3e5ee2('0xfca')]:undefined);_0x11e458['saveChatWebsiteApp']=_0x3c07fd,_0x11e458[_0x3e5ee2('0x2584')]=_0x3243bd,_0x904049['hasRole'](_0x3e5ee2('0xd14'))?_0x4273e0[_0x3e5ee2('0x19a5')]['get']({'fields':'id,name','sort':_0x3e5ee2('0x2623'),'nolimit':_0x3e5ee2('0x2206')})[_0x3e5ee2('0xe59')][_0x3e5ee2('0xe19')](function(_0x3f3e41){var _0x42a204=_0x3e5ee2;_0x11e458[_0x42a204('0x1a9e')]=_0x3f3e41[_0x42a204('0x16a7')]||[];})[_0x3e5ee2('0x223b')](function(_0x39819b){var _0x1b8dd1=_0x3e5ee2;_0x1e95f1['error']({'title':_0x39819b['status']?_0x1b8dd1('0x27f2')+_0x39819b[_0x1b8dd1('0x2833')]+_0x1b8dd1('0x1b7c')+_0x39819b[_0x1b8dd1('0x1fd7')]:'SYSTEM:GET_VARIABLES','msg':_0x39819b['data']?JSON[_0x1b8dd1('0x3ad')](_0x39819b[_0x1b8dd1('0x11d0')]):_0x39819b[_0x1b8dd1('0x94f')]()});}):_0x4273e0[_0x3e5ee2('0x19a5')]['get']({'fields':'id,name','sort':_0x3e5ee2('0x2623'),'nolimit':_0x3e5ee2('0x2206')})[_0x3e5ee2('0xe59')][_0x3e5ee2('0xe19')](function(_0x4f9de){var _0x5514c7=_0x3e5ee2;_0x11e458[_0x5514c7('0x1a9e')]=_0x4f9de[_0x5514c7('0x16a7')]||[];})[_0x3e5ee2('0xe19')](function(){var _0x185dee=_0x3e5ee2;return _0x4273e0[_0x185dee('0xb59')][_0x185dee('0x22d5')]({'userProfileId':_0x11e458['currentUser'][_0x185dee('0x1d04')],'sectionId':0x3f4})[_0x185dee('0xe59')];})['then'](function(_0x7ec07f){var _0x1ed08b=_0x3e5ee2,_0x2fa013=_0x7ec07f&&_0x7ec07f[_0x1ed08b('0x16a7')]?_0x7ec07f[_0x1ed08b('0x16a7')][0x0]:null;if(!_0x2fa013){var _0x56da10=[],_0x2ce40f=null;_0x11e458[_0x1ed08b('0x1917')]&&(_0x2ce40f=_0x32d445()[_0x1ed08b('0xf15')](_0x11e458[_0x1ed08b('0x1a9e')],{'name':_0x11e458['system']['variable']}));for(var _0x4694c8=0x0;_0x4694c8<_0x11e458[_0x1ed08b('0x1a9e')][_0x1ed08b('0x25ae')];_0x4694c8++){_0x2ce40f&&_0x11e458[_0x1ed08b('0x1a9e')][_0x4694c8]['id']===_0x2ce40f['id']&&(_0x11e458['variables'][_0x4694c8][_0x1ed08b('0x1e9d')]=![],_0x56da10['push'](_0x11e458[_0x1ed08b('0x1a9e')][_0x4694c8]));}_0x11e458[_0x1ed08b('0x1a9e')]=_0x56da10;}else{if(!_0x2fa013[_0x1ed08b('0x11fd')])return _0x4273e0['userProfileResource']['get']({'sectionId':_0x2fa013['id']})[_0x1ed08b('0xe59')]['then'](function(_0x7cd2c9){var _0x14360f=_0x1ed08b,_0x38d279=_0x32d445()[_0x14360f('0x65a')](_0x7cd2c9[_0x14360f('0x16a7')],function(_0x1ca335){var _0x53b06c=_0x14360f;return _0x32d445()[_0x53b06c('0xf15')](_0x11e458[_0x53b06c('0x1a9e')],{'id':_0x1ca335['resourceId']});}),_0xdfdb1e=null;_0x11e458['system']&&(_0xdfdb1e=_0x32d445()[_0x14360f('0xf15')](_0x11e458[_0x14360f('0x1a9e')],{'name':_0x11e458[_0x14360f('0x1917')][_0x14360f('0x19a5')]}));if(_0xdfdb1e&&!_0x32d445()['some'](_0x38d279,['id',_0xdfdb1e['id']])){var _0x31ac4f=_0x32d445()[_0x14360f('0xf15')](_0x11e458[_0x14360f('0x1a9e')],{'id':_0xdfdb1e['id']});_0x31ac4f[_0x14360f('0x1e9d')]=![],_0x38d279['push'](_0x31ac4f);}_0x11e458[_0x14360f('0x1a9e')]=_0x38d279;});}})[_0x3e5ee2('0x223b')](function(_0xb07790){var _0x48e80f=_0x3e5ee2;_0x1e95f1[_0x48e80f('0x8c8')]({'title':_0xb07790[_0x48e80f('0x2833')]?_0x48e80f('0x27f2')+_0xb07790[_0x48e80f('0x2833')]+_0x48e80f('0x1b7c')+_0xb07790[_0x48e80f('0x1fd7')]:_0x48e80f('0x287e'),'msg':_0xb07790['data']?JSON[_0x48e80f('0x3ad')](_0xb07790[_0x48e80f('0x11d0')]):_0xb07790[_0x48e80f('0x94f')]()});});function _0x3c07fd(){var _0x4f52bc=_0x3e5ee2;_0x11e458[_0x4f52bc('0xcd2')]=[];var _0x4fc8d5=[];_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x62e')]&&_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x62e')]['toLowerCase']()===_0x4f52bc('0x1fdf')&&_0x11e458['system']['appType']==='outboundDial'&&(_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x1ef5')]=_0x569a45['cutdigits']?(_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x2580')]||'')+_0x4f52bc('0x5d8')+_0x569a45[_0x4f52bc('0x27f6')]+'}':(_0x11e458['system'][_0x4f52bc('0x2580')]||'')+_0x4f52bc('0x16b5'),_0x569a45['recordingFormat']!=='none'?_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x2116')][_0x4f52bc('0x281c')](_0x4f52bc('0x767'))<0x0&&(_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x2116')]+='U(xcally-mixmonitor-context)'):_0x11e458['system'][_0x4f52bc('0x2116')]=_0x11e458[_0x4f52bc('0x1917')]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0xf44')]&&_0x11e458[_0x4f52bc('0x1917')]['appType']===_0x4f52bc('0x261d')){}else switch((_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0xf2b')]||_0x11e458[_0x4f52bc('0x1917')]['appType'])[_0x4f52bc('0x20dd')]()){case'set':_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x26d2')]=_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x2623')]+'='+_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x2')];break;case'custom':break;default:_0x4fc8d5[0x0]=_0x11e458[_0x4f52bc('0x1917')][_0x4f52bc('0x19a')],_0x4fc8d5[0x1]=_0x11e458['system']['variable'],_0x11e458['system']['appdata']=_0x4fc8d5['join'](',');}_0x3243bd(_0x11e458['system']);}function _0x3243bd(_0x283fe4){var _0x4ffdec=_0x3e5ee2;_0x2982ab[_0x4ffdec('0x11ed')](_0x283fe4);}}const _0x355b60=_0x392520;_0x4e675a['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x181c'),_0xb635d2('0xcda'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4e675a(_0x2c93a5,_0x48c9fd,_0x4fe609,_0xbb796a,_0x366b98,_0x2d8fbd,_0x4fc8ca,_0x1f2a18){var _0x2eab21=_0xb635d2,_0x96137d=this;_0x96137d[_0x2eab21('0x15a5')]=_0x4fc8ca[_0x2eab21('0x1ef8')](),_0x96137d['errors']=[],_0x96137d[_0x2eab21('0x13e4')]=_0x2eab21('0x257c')+(_0xbb796a[_0x2eab21('0xf44')]||_0xbb796a['app'])['toUpperCase'](),_0x96137d[_0x2eab21('0x2037')]=angular[_0x2eab21('0x89')](_0xbb796a),_0x96137d['crudPermissions']=_0x1f2a18,_0x96137d[_0x2eab21('0x1ccb')]={};if(_0x96137d['tag']['appdata'])switch(_0x96137d['tag'][_0x2eab21('0xf44')]?_0x96137d['tag'][_0x2eab21('0xf44')][_0x2eab21('0x20dd')]():_0x96137d['tag'][_0x2eab21('0xf2b')][_0x2eab21('0x20dd')]()){case'custom':break;case _0x2eab21('0xc11'):{var _0x37f562=_0x96137d['tag']['appdata'][_0x2eab21('0x1745')](',');_0x96137d[_0x2eab21('0x2037')]['key']=_0x37f562[0x0],_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x174b')]=_0x37f562[0x1],_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0xfcc')]=_0x37f562['slice'](0x2,_0x37f562[_0x2eab21('0x25ae')])[_0x2eab21('0x1537')](',');}break;case _0x2eab21('0x1321'):{var _0x139cad=_0x96137d['tag'][_0x2eab21('0x26d2')]['split'](',');_0x96137d['tag'][_0x2eab21('0x22be')]=_0x139cad[0x0],_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x700')]=_0x139cad[0x1],_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x206a')]=_0x139cad[0x2],_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x191a')]=_0x139cad[0x3],_0x96137d['tag'][_0x2eab21('0xfcc')]=_0x139cad[_0x2eab21('0xa19')](0x4,_0x139cad[_0x2eab21('0x25ae')])['join'](',');}break;case'autoreply':{var _0x3c80ae=_0x96137d[_0x2eab21('0x2037')]['appdata'][_0x2eab21('0x1745')](',');_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x1ec4')]=isNaN(_0x3c80ae[0x0])?_0x3c80ae[0x0]:parseInt(_0x3c80ae[0x0],0xa),_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x1bc6')]=_0x3c80ae['slice'](0x1,_0x3c80ae[_0x2eab21('0x25ae')])['join'](',');}break;case _0x2eab21('0x27e8'):_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x1bc6')]=_0x96137d['tag'][_0x2eab21('0x26d2')];break;case'set':_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x2623')]=_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x26d2')][_0x2eab21('0x1745')]('=')[0x0],_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x2')]=_0x96137d['tag'][_0x2eab21('0x26d2')][_0x2eab21('0x1745')]('=')[0x1];break;case _0x2eab21('0x401'):_0x96137d[_0x2eab21('0x2037')]['project']=_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x26d2')];break;default:{var _0xf3b4e7=_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x26d2')]['split'](',');_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x2037')]=_0x32d445()[_0x2eab21('0x14b4')](_0xf3b4e7[0x0])?_0xf3b4e7[0x0]:isNaN(_0xf3b4e7[0x0])?_0xf3b4e7[0x0]:parseInt(_0xf3b4e7[0x0],0xa);}break;}else{}_0x96137d['tag'][_0x2eab21('0x62e')]&&_0x96137d['tag'][_0x2eab21('0x62e')]['toLowerCase']()===_0x2eab21('0x1fdf')&&_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0xf44')][_0x2eab21('0x20dd')]()==='outbounddial'&&(_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x2580')]=_0x96137d['tag']['phone']?_0x96137d[_0x2eab21('0x2037')][_0x2eab21('0x1ef5')]['split']('$')[0x0]:undefined,_0x96137d['tag'][_0x2eab21('0x1b6f')]=_0x96137d['tag'][_0x2eab21('0xfca')]?'CALLERID(all)='+_0x96137d[_0x2eab21('0x2037')]['callerID']:undefined);_0x96137d[_0x2eab21('0x16b0')]=_0x2499ba,_0x96137d[_0x2eab21('0x2584')]=_0x29f46c,_0x4fc8ca['hasRole'](_0x2eab21('0xd14'))?_0x2d8fbd['tag'][_0x2eab21('0x22d5')]({'fields':'id,name','sort':'name','nolimit':_0x2eab21('0x2206')})['$promise']['then'](function(_0x4e2268){var _0xd6dde7=_0x2eab21;_0x96137d['tags']=_0x4e2268[_0xd6dde7('0x16a7')]||[];})[_0x2eab21('0x223b')](function(_0x4a8dc7){var _0x4b0cd3=_0x2eab21;_0x4fe609['error']({'title':_0x4a8dc7[_0x4b0cd3('0x2833')]?_0x4b0cd3('0x27f2')+_0x4a8dc7['status']+'\x20-\x20'+_0x4a8dc7[_0x4b0cd3('0x1fd7')]:_0x4b0cd3('0x2557'),'msg':_0x4a8dc7[_0x4b0cd3('0x11d0')]?JSON['stringify'](_0x4a8dc7[_0x4b0cd3('0x11d0')]):_0x4a8dc7['toString']()});}):_0x2d8fbd[_0x2eab21('0x2037')][_0x2eab21('0x22d5')]({'fields':_0x2eab21('0x104'),'sort':_0x2eab21('0x2623'),'nolimit':'true'})[_0x2eab21('0xe59')][_0x2eab21('0xe19')](function(_0x4a2b6f){var _0x58cd5f=_0x2eab21;_0x96137d['tags']=_0x4a2b6f[_0x58cd5f('0x16a7')]||[];})[_0x2eab21('0xe19')](function(){var _0x168516=_0x2eab21;return _0x2d8fbd[_0x168516('0xb59')][_0x168516('0x22d5')]({'userProfileId':_0x96137d[_0x168516('0x15a5')][_0x168516('0x1d04')],'sectionId':0x3f0})[_0x168516('0xe59')];})['then'](function(_0x1354ee){var _0x18c702=_0x2eab21,_0x90463f=_0x1354ee&&_0x1354ee['rows']?_0x1354ee[_0x18c702('0x16a7')][0x0]:null;if(!_0x90463f){var _0xe1bd3e=[],_0x2387ad=null;_0x96137d['tag']&&(_0x2387ad=_0x32d445()[_0x18c702('0xf15')](_0x96137d[_0x18c702('0x1105')],{'name':_0x96137d[_0x18c702('0x2037')][_0x18c702('0x2037')]}));for(var _0x59752a=0x0;_0x59752a<_0x96137d['tags'][_0x18c702('0x25ae')];_0x59752a++){_0x2387ad&&_0x96137d[_0x18c702('0x1105')][_0x59752a]['id']===_0x2387ad['id']&&(_0x96137d[_0x18c702('0x1105')][_0x59752a][_0x18c702('0x1e9d')]=![],_0xe1bd3e[_0x18c702('0xb76')](_0x96137d[_0x18c702('0x1105')][_0x59752a]));}_0x96137d[_0x18c702('0x1105')]=_0xe1bd3e;}else{if(!_0x90463f[_0x18c702('0x11fd')])return _0x2d8fbd['userProfileResource'][_0x18c702('0x22d5')]({'sectionId':_0x90463f['id']})[_0x18c702('0xe59')][_0x18c702('0xe19')](function(_0x415527){var _0x49fcba=_0x18c702,_0x422ef8=_0x32d445()[_0x49fcba('0x65a')](_0x415527[_0x49fcba('0x16a7')],function(_0x24ce59){var _0x1ab8c9=_0x49fcba;return _0x32d445()[_0x1ab8c9('0xf15')](_0x96137d['tags'],{'id':_0x24ce59[_0x1ab8c9('0x1104')]});}),_0x505fe9=null;_0x96137d[_0x49fcba('0x2037')]&&(_0x505fe9=_0x32d445()[_0x49fcba('0xf15')](_0x96137d[_0x49fcba('0x1105')],{'name':_0x96137d[_0x49fcba('0x2037')][_0x49fcba('0x2037')]}));if(_0x505fe9&&!_0x32d445()[_0x49fcba('0x201a')](_0x422ef8,['id',_0x505fe9['id']])){var _0x2100e9=_0x32d445()['find'](_0x96137d[_0x49fcba('0x1105')],{'id':_0x505fe9['id']});_0x2100e9[_0x49fcba('0x1e9d')]=![],_0x422ef8['push'](_0x2100e9);}_0x96137d[_0x49fcba('0x1105')]=_0x422ef8;});}})[_0x2eab21('0x223b')](function(_0x6ccb8e){var _0x5ea9d9=_0x2eab21;_0x4fe609[_0x5ea9d9('0x8c8')]({'title':_0x6ccb8e[_0x5ea9d9('0x2833')]?_0x5ea9d9('0x27f2')+_0x6ccb8e[_0x5ea9d9('0x2833')]+_0x5ea9d9('0x1b7c')+_0x6ccb8e[_0x5ea9d9('0x1fd7')]:_0x5ea9d9('0x25d1'),'msg':_0x6ccb8e[_0x5ea9d9('0x11d0')]?JSON[_0x5ea9d9('0x3ad')](_0x6ccb8e[_0x5ea9d9('0x11d0')]):_0x6ccb8e[_0x5ea9d9('0x94f')]()});});function _0x2499ba(){var _0x4a85bd=_0x2eab21;_0x96137d['errors']=[];var _0x36e9fb=[];_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x62e')]&&_0x96137d[_0x4a85bd('0x2037')]['type'][_0x4a85bd('0x20dd')]()==='outbound'&&_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0xf44')]===_0x4a85bd('0x3d2')&&(_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x1ef5')]=_0x366b98[_0x4a85bd('0x27f6')]?(_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x2580')]||'')+_0x4a85bd('0x5d8')+_0x366b98['cutdigits']+'}':(_0x96137d[_0x4a85bd('0x2037')]['prefix']||'')+_0x4a85bd('0x16b5'),_0x366b98['recordingFormat']!==_0x4a85bd('0x23ca')?_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x2116')]['indexOf'](_0x4a85bd('0x767'))<0x0&&(_0x96137d[_0x4a85bd('0x2037')]['options']+='U(xcally-mixmonitor-context)'):_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x2116')]=_0x96137d['tag'][_0x4a85bd('0x2116')][_0x4a85bd('0x1b42')](_0x4a85bd('0x767'),''));var _0x4ace32=_0x32d445()[_0x4a85bd('0xf15')](_0x96137d['tags'],{'name':_0x96137d[_0x4a85bd('0x2037')]['tag']});_0x4ace32&&(_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x30a')]=_0x4ace32['id']);if(_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0xf44')]&&_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0xf44')]===_0x4a85bd('0x261d')){}else switch((_0x96137d['tag'][_0x4a85bd('0xf2b')]||_0x96137d[_0x4a85bd('0x2037')]['appType'])[_0x4a85bd('0x20dd')]()){case _0x4a85bd('0x2aa'):_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x26d2')]=_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x2623')]+'='+_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x2')];break;case'custom':break;default:_0x36e9fb[0x0]=_0x96137d[_0x4a85bd('0x2037')][_0x4a85bd('0x2037')],_0x96137d[_0x4a85bd('0x2037')]['appdata']=_0x36e9fb[_0x4a85bd('0x1537')](',');}_0x29f46c(_0x96137d[_0x4a85bd('0x2037')]);}function _0x29f46c(_0x40878c){var _0x11434e=_0x2eab21;_0x2c93a5[_0x11434e('0x11ed')](_0x40878c);}}const _0x58adb4=_0x4e675a,_0x5a3194=_0x59426a['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog-[chunkhash].html';_0x438b87['$inject']=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),'$timeout',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x438b87(_0x432c92,_0x30b04b,_0x13ef95,_0x5546f0,_0x462b83,_0x3a3feb,_0x3ce159,_0x44cea6,_0x164719,_0x457203,_0x495e9b){var _0x422c6a=_0xb635d2,_0x5cd477=this;_0x5cd477[_0x422c6a('0x15a5')]=_0x495e9b[_0x422c6a('0x1ef8')](),_0x5cd477[_0x422c6a('0xcda')]={},_0x5cd477[_0x422c6a('0x10aa')]={'count':0x0,'rows':[]},_0x5cd477['selectedChatWebsiteChatCannedAnswers']=[],_0x5cd477[_0x422c6a('0xb3d')],_0x5cd477[_0x422c6a('0xa16')]={'fields':_0x422c6a('0x1ef0'),'limit':0xa,'page':0x1},_0x5cd477[_0x422c6a('0x15f9')]=_0x3ab5e8,_0x5cd477[_0x422c6a('0x126c')]=_0xabfc96,_0x5cd477[_0x422c6a('0x425')]=_0x208e1b,_0x5cd477[_0x422c6a('0x4d5')]=_0x2f2ae6,_0x5cd477['createOrEditChatWebsiteChatCannedAnswer']=_0x2df392,_0x5cd477[_0x422c6a('0x21aa')]=_0x99d9a7,_0x5cd477[_0x422c6a('0x1094')]=_0x350960,_0x5cd477[_0x422c6a('0x11b4')]=_0x38ccb9;function _0x3ab5e8(_0x40629a,_0x9ac091){var _0x37bf69=_0x422c6a;_0x5cd477[_0x37bf69('0xcda')]=_0x40629a,_0x5cd477['crudPermissions']=typeof _0x9ac091!=='undefined'?_0x9ac091:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5cd477[_0x37bf69('0xa16')][_0x37bf69('0x365')]=_0x5cd477[_0x37bf69('0xcda')]['id'],_0x5cd477[_0x37bf69('0xa16')]['id']=_0x5cd477[_0x37bf69('0xcda')]['id'],_0x2f2ae6();}function _0xabfc96(_0x20139c,_0x219215){var _0x1fbd12=_0x422c6a,_0x366410=_0x3ce159[_0x1fbd12('0xa5')]()['title'](_0x1fbd12('0x1e51'))[_0x1fbd12('0x221c')](_0x1fbd12('0xab2')+(_0x20139c[_0x1fbd12('0x2623')]||_0x20139c['id']&&_0x32d445()[_0x1fbd12('0x2077')](_0x1fbd12('0xef4'))+_0x20139c['id']||_0x1fbd12('0x449'))+_0x1fbd12('0x27bb')+_0x1fbd12('0x21bd'))[_0x1fbd12('0x4d1')](_0x1fbd12('0x106'))[_0x1fbd12('0x1345')](_0x219215)['ok']('OK')[_0x1fbd12('0x2c1')]('CANCEL');_0x3ce159[_0x1fbd12('0x26b2')](_0x366410)[_0x1fbd12('0xe19')](function(){_0x350960(_0x20139c);},function(){var _0x1a16b7=_0x1fbd12;console[_0x1a16b7('0x1fe9')]('CANCEL');});}function _0x208e1b(_0x57b933){var _0x5d8d01=_0x422c6a;_0x5cd477[_0x5d8d01('0x10aa')]=_0x57b933||{'count':0x0,'rows':[]};}function _0x2f2ae6(){var _0x189cdd=_0x422c6a;_0x5cd477[_0x189cdd('0xa16')][_0x189cdd('0xab0')]=(_0x5cd477[_0x189cdd('0xa16')][_0x189cdd('0xc08')]-0x1)*_0x5cd477['query'][_0x189cdd('0x1b6d')],_0x5cd477[_0x189cdd('0x9c8')]=_0x457203[_0x189cdd('0xcda')][_0x189cdd('0x152a')](_0x5cd477[_0x189cdd('0xa16')],_0x208e1b)['$promise'];}function _0x2df392(_0x1d4254,_0x1f3220){var _0x451acf=_0x422c6a;_0x3ce159[_0x451acf('0x26b2')]({'controller':_0x451acf('0xd78'),'controllerAs':'vm','templateUrl':_0x5a3194,'parent':angular[_0x451acf('0x24a1')](_0x44cea6['body']),'targetEvent':_0x1d4254,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x5cd477[_0x451acf('0xcda')],'chatCannedAnswer':_0x1f3220,'chatCannedAnswers':_0x5cd477[_0x451acf('0x10aa')][_0x451acf('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x5cd477[_0x451acf('0xb3d')]}});}function _0x350960(_0x2e323e){var _0x357ce9=_0x422c6a;_0x457203[_0x357ce9('0x250b')][_0x357ce9('0x229e')]({'id':_0x2e323e['id']})[_0x357ce9('0xe59')]['then'](function(){var _0x1f7457=_0x357ce9;_0x32d445()[_0x1f7457('0xa8b')](_0x5cd477[_0x1f7457('0x10aa')][_0x1f7457('0x16a7')],{'id':_0x2e323e['id']}),_0x5cd477[_0x1f7457('0x10aa')][_0x1f7457('0x148b')]-=0x1,!_0x5cd477[_0x1f7457('0x10aa')]['rows']['length']&&_0x2f2ae6(),_0x164719[_0x1f7457('0x425')]({'title':_0x1f7457('0x20da'),'msg':_0x2e323e[_0x1f7457('0x2623')]?_0x2e323e['name']+_0x1f7457('0x2182'):''});})[_0x357ce9('0x223b')](function(_0x5bd80a){var _0x8a27c9=_0x357ce9;if(_0x5bd80a[_0x8a27c9('0x11d0')]&&_0x5bd80a[_0x8a27c9('0x11d0')][_0x8a27c9('0xcd2')]&&_0x5bd80a[_0x8a27c9('0x11d0')][_0x8a27c9('0xcd2')][_0x8a27c9('0x25ae')]){_0x5cd477[_0x8a27c9('0xcd2')]=_0x5bd80a[_0x8a27c9('0x11d0')]['errors']||[{'message':_0x5bd80a[_0x8a27c9('0x94f')](),'type':_0x8a27c9('0x250a')}];for(var _0x2215e1=0x0;_0x2215e1<_0x5bd80a[_0x8a27c9('0x11d0')]['errors'][_0x8a27c9('0x25ae')];_0x2215e1++){_0x164719['error']({'title':_0x5bd80a[_0x8a27c9('0x11d0')][_0x8a27c9('0xcd2')][_0x2215e1]['type'],'msg':_0x5bd80a[_0x8a27c9('0x11d0')][_0x8a27c9('0xcd2')][_0x2215e1]['message']});}}else _0x164719[_0x8a27c9('0x8c8')]({'title':_0x5bd80a[_0x8a27c9('0x2833')]?_0x8a27c9('0x27f2')+_0x5bd80a[_0x8a27c9('0x2833')]+_0x8a27c9('0x1b7c')+_0x5bd80a['statusText']:_0x8a27c9('0x250a'),'msg':_0x5bd80a['data']?JSON[_0x8a27c9('0x3ad')](_0x5bd80a['data'][_0x8a27c9('0x27e8')]):_0x5bd80a[_0x8a27c9('0x27e8')]||_0x5bd80a[_0x8a27c9('0x94f')]()});});}function _0x99d9a7(){var _0x546dc9=_0x422c6a,_0x39d959=angular['copy'](_0x5cd477['selectedChatWebsiteChatCannedAnswers']);return _0x5cd477[_0x546dc9('0x1787')]=[],_0x39d959;}function _0x38ccb9(_0x5aec0a){var _0x5b321a=_0x422c6a,_0x4f515d=_0x3ce159[_0x5b321a('0xa5')]()[_0x5b321a('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatCannedAnswers?')[_0x5b321a('0x221c')](''+_0x5cd477[_0x5b321a('0x1787')][_0x5b321a('0x25ae')]+_0x5b321a('0x5bc')+_0x5b321a('0x21bd'))[_0x5b321a('0x4d1')]('delete\x20chatCannedAnswers')[_0x5b321a('0x1345')](_0x5aec0a)['ok']('OK')[_0x5b321a('0x2c1')]('CANCEL');_0x3ce159[_0x5b321a('0x26b2')](_0x4f515d)[_0x5b321a('0xe19')](function(){var _0x1727e2=_0x5b321a;_0x5cd477['selectedChatWebsiteChatCannedAnswers'][_0x1727e2('0x1d7e')](function(_0x4cd9ad){_0x350960(_0x4cd9ad);}),_0x5cd477['selectedChatWebsiteChatCannedAnswers']=[];});}var _0x72a16c=!![],_0x4d77fa=0x1;_0x30b04b['$watch'](_0x422c6a('0x1607'),function(_0x2c85e4,_0x20aa0d){var _0x3cceb6=_0x422c6a;_0x72a16c?_0x3a3feb(function(){_0x72a16c=![];}):(!_0x20aa0d&&(_0x4d77fa=_0x5cd477['query']['page']),_0x2c85e4!==_0x20aa0d&&(_0x5cd477['query'][_0x3cceb6('0xc08')]=0x1),!_0x2c85e4&&(_0x5cd477[_0x3cceb6('0xa16')]['page']=_0x4d77fa),_0x2f2ae6());});}const _0x5b0f9e=_0x438b87;_0x2e2bf0['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1de0'),_0xb635d2('0x449'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x2e2bf0(_0x190fc7,_0x5740d1,_0xaa59bb,_0x3f7ce5,_0x1e0443,_0x2acc2f,_0x2f5b42,_0x1d7c54,_0x5d5d9e,_0x2cb690,_0x52d512,_0x7a3563,_0x593f6f,_0x23f483){var _0x116c9e=_0xb635d2,_0x50ce51=this;_0x50ce51[_0x116c9e('0x15a5')]=_0x52d512[_0x116c9e('0x1ef8')](),_0x50ce51[_0x116c9e('0xcd2')]=[],_0x50ce51[_0x116c9e('0x22f1')]=_0x593f6f,_0x50ce51['license']=_0x7a3563,_0x50ce51[_0x116c9e('0xb3d')]=_0x23f483,_0x50ce51['hasModulePermissions']={},_0x50ce51[_0x116c9e('0x25ac')]=_0x50ce51[_0x116c9e('0x22f1')]&&_0x50ce51[_0x116c9e('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50ce51[_0x116c9e('0x13e4')]=_0x116c9e('0x553'),_0x50ce51['chatCannedAnswer']=angular[_0x116c9e('0x89')](_0x5d5d9e),_0x50ce51['chatCannedAnswers']=_0x1d7c54,_0x50ce51[_0x116c9e('0xdf6')]=![];!_0x50ce51['chatCannedAnswer']&&(_0x50ce51[_0x116c9e('0x449')]={},_0x50ce51[_0x116c9e('0x13e4')]=_0x116c9e('0x98'),_0x50ce51[_0x116c9e('0xdf6')]=!![]);_0x5740d1['params']['id']&&(_0x50ce51[_0x116c9e('0x449')][_0x116c9e('0x365')]=_0x5740d1[_0x116c9e('0x2ef')]['id']);_0x50ce51[_0x116c9e('0x2091')]=_0x349994,_0x50ce51['saveChatCannedAnswer']=_0x9d12b1,_0x50ce51['deleteChatCannedAnswer']=_0x5c5fad,_0x50ce51[_0x116c9e('0x2635')]=_0x337ed1,_0x50ce51[_0x116c9e('0x2584')]=_0x57a233;function _0x349994(){var _0x33ca9e=_0x116c9e;_0x50ce51[_0x33ca9e('0xcd2')]=[],_0x2cb690[_0x33ca9e('0x250b')][_0x33ca9e('0xe5e')](_0x50ce51['chatCannedAnswer'])[_0x33ca9e('0xe59')][_0x33ca9e('0xe19')](function(_0x352f3a){var _0x405401=_0x33ca9e;_0x50ce51[_0x405401('0x1de0')]['unshift'](_0x352f3a[_0x405401('0x250e')]()),_0x2f5b42[_0x405401('0x425')]({'title':'ChatCannedAnswer\x20properly\x20created','msg':_0x50ce51[_0x405401('0x449')][_0x405401('0x2623')]?_0x50ce51[_0x405401('0x449')][_0x405401('0x2623')]+_0x405401('0x105f'):''}),_0x57a233(_0x352f3a);})[_0x33ca9e('0x223b')](function(_0x81ce3d){var _0x12e4e4=_0x33ca9e;if(_0x81ce3d['data']&&_0x81ce3d[_0x12e4e4('0x11d0')][_0x12e4e4('0xcd2')]&&_0x81ce3d[_0x12e4e4('0x11d0')][_0x12e4e4('0xcd2')][_0x12e4e4('0x25ae')]){_0x50ce51[_0x12e4e4('0xcd2')]=_0x81ce3d[_0x12e4e4('0x11d0')]['errors']||[{'message':_0x81ce3d['toString'](),'type':_0x12e4e4('0x80d')}];for(var _0x565454=0x0;_0x565454<_0x81ce3d[_0x12e4e4('0x11d0')][_0x12e4e4('0xcd2')][_0x12e4e4('0x25ae')];_0x565454+=0x1){_0x2f5b42[_0x12e4e4('0x8c8')]({'title':_0x81ce3d[_0x12e4e4('0x11d0')][_0x12e4e4('0xcd2')][_0x565454][_0x12e4e4('0x62e')],'msg':_0x81ce3d[_0x12e4e4('0x11d0')][_0x12e4e4('0xcd2')][_0x565454][_0x12e4e4('0x27e8')]});}}else _0x2f5b42['error']({'title':_0x81ce3d[_0x12e4e4('0x2833')]?'API:'+_0x81ce3d['status']+_0x12e4e4('0x1b7c')+_0x81ce3d[_0x12e4e4('0x1fd7')]:_0x12e4e4('0x80d'),'msg':_0x81ce3d[_0x12e4e4('0x11d0')]?JSON['stringify'](_0x81ce3d['data'][_0x12e4e4('0x27e8')]):_0x81ce3d[_0x12e4e4('0x94f')]()});});}function _0x9d12b1(){var _0x538b3b=_0x116c9e;_0x50ce51[_0x538b3b('0xcd2')]=[],_0x2cb690[_0x538b3b('0x250b')][_0x538b3b('0xa70')]({'id':_0x50ce51['chatCannedAnswer']['id']},_0x50ce51[_0x538b3b('0x449')])[_0x538b3b('0xe59')][_0x538b3b('0xe19')](function(_0x371f57){var _0x5232c3=_0x538b3b,_0x4a4a46=_0x32d445()[_0x5232c3('0xf15')](_0x50ce51[_0x5232c3('0x1de0')],{'id':_0x371f57['id']});_0x4a4a46&&_0x32d445()[_0x5232c3('0x1d8')](_0x4a4a46,_0x32d445()[_0x5232c3('0xed5')](_0x371f57[_0x5232c3('0x250e')](),_0x32d445()['keys'](_0x4a4a46))),_0x2f5b42[_0x5232c3('0x425')]({'title':_0x5232c3('0x3b3'),'msg':_0x50ce51[_0x5232c3('0x449')]['name']?_0x50ce51[_0x5232c3('0x449')][_0x5232c3('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x57a233(_0x371f57);})['catch'](function(_0x57ae24){var _0x5463a2=_0x538b3b;if(_0x57ae24['data']&&_0x57ae24['data'][_0x5463a2('0xcd2')]&&_0x57ae24[_0x5463a2('0x11d0')][_0x5463a2('0xcd2')][_0x5463a2('0x25ae')]){_0x50ce51[_0x5463a2('0xcd2')]=_0x57ae24[_0x5463a2('0x11d0')][_0x5463a2('0xcd2')]||[{'message':_0x57ae24['toString'](),'type':'api.cannedAnswer.update'}];for(var _0x425da0=0x0;_0x425da0<_0x57ae24[_0x5463a2('0x11d0')][_0x5463a2('0xcd2')][_0x5463a2('0x25ae')];_0x425da0++){_0x2f5b42[_0x5463a2('0x8c8')]({'title':_0x57ae24['data'][_0x5463a2('0xcd2')][_0x425da0]['type'],'msg':_0x57ae24[_0x5463a2('0x11d0')]['errors'][_0x425da0][_0x5463a2('0x27e8')]});}}else _0x2f5b42[_0x5463a2('0x8c8')]({'title':_0x57ae24[_0x5463a2('0x2833')]?_0x5463a2('0x27f2')+_0x57ae24[_0x5463a2('0x2833')]+_0x5463a2('0x1b7c')+_0x57ae24[_0x5463a2('0x1fd7')]:_0x5463a2('0x5a0'),'msg':_0x57ae24[_0x5463a2('0x11d0')]?JSON[_0x5463a2('0x3ad')](_0x57ae24[_0x5463a2('0x11d0')][_0x5463a2('0x27e8')]):_0x57ae24[_0x5463a2('0x94f')]()});});}function _0x5c5fad(_0x21f148){var _0x417bb5=_0x116c9e;_0x50ce51['errors']=[];var _0x576f5e=_0x3f7ce5[_0x417bb5('0xa5')]()[_0x417bb5('0x13e4')](_0x417bb5('0x24d0'))[_0x417bb5('0xd0')](_0x417bb5('0xc0e'))[_0x417bb5('0x4d1')](_0x417bb5('0xee3'))['ok']('Delete')[_0x417bb5('0x2c1')](_0x417bb5('0x8a3'))[_0x417bb5('0x1345')](_0x21f148);_0x3f7ce5[_0x417bb5('0x26b2')](_0x576f5e)[_0x417bb5('0xe19')](function(){var _0x8654a7=_0x417bb5;_0x2cb690['cannedAnswer'][_0x8654a7('0x229e')]({'id':_0x50ce51[_0x8654a7('0x449')]['id']})[_0x8654a7('0xe59')][_0x8654a7('0xe19')](function(){var _0x159ca3=_0x8654a7;_0x32d445()[_0x159ca3('0xa8b')](_0x50ce51[_0x159ca3('0x1de0')],{'id':_0x50ce51[_0x159ca3('0x449')]['id']}),_0x2f5b42[_0x159ca3('0x425')]({'title':'ChatCannedAnswer\x20properly\x20deleted!','msg':(_0x50ce51['chatCannedAnswer']['name']||_0x159ca3('0x449'))+_0x159ca3('0x2182')}),_0x57a233(_0x50ce51[_0x159ca3('0x449')]);})['catch'](function(_0x180d0e){var _0x440d6b=_0x8654a7;if(_0x180d0e[_0x440d6b('0x11d0')]&&_0x180d0e[_0x440d6b('0x11d0')][_0x440d6b('0xcd2')]&&_0x180d0e[_0x440d6b('0x11d0')][_0x440d6b('0xcd2')][_0x440d6b('0x25ae')]){_0x50ce51[_0x440d6b('0xcd2')]=_0x180d0e[_0x440d6b('0x11d0')]['errors']||[{'message':_0x180d0e[_0x440d6b('0x94f')](),'type':_0x440d6b('0x1b46')}];for(var _0x5b97a2=0x0;_0x5b97a2<_0x180d0e['data'][_0x440d6b('0xcd2')][_0x440d6b('0x25ae')];_0x5b97a2++){_0x2f5b42[_0x440d6b('0x8c8')]({'title':_0x180d0e['data'][_0x440d6b('0xcd2')][_0x5b97a2]['type'],'msg':_0x180d0e['data'][_0x440d6b('0xcd2')][_0x5b97a2][_0x440d6b('0x27e8')]});}}else _0x2f5b42[_0x440d6b('0x8c8')]({'title':_0x180d0e[_0x440d6b('0x2833')]?_0x440d6b('0x27f2')+_0x180d0e[_0x440d6b('0x2833')]+_0x440d6b('0x1b7c')+_0x180d0e[_0x440d6b('0x1fd7')]:_0x440d6b('0x1b46'),'msg':_0x180d0e[_0x440d6b('0x11d0')]?JSON['stringify'](_0x180d0e[_0x440d6b('0x11d0')][_0x440d6b('0x27e8')]):_0x180d0e['message']||_0x180d0e[_0x440d6b('0x94f')]()});});},function(){});}function _0x337ed1(_0x5dfcf3){return _0x5dfcf3===null?undefined:new Date(_0x5dfcf3);}function _0x57a233(_0x3c12fc){var _0x4d08fe=_0x116c9e;_0x3f7ce5[_0x4d08fe('0x11ed')](_0x3c12fc);}}const _0x5d599b=_0x2e2bf0;_0x5eb2d4[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window','$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth'];function _0x5eb2d4(_0x3584c4,_0x27ff1d,_0x551b23,_0x292324,_0x52ba93,_0x4bc706,_0x5ed62b,_0x58f759,_0x4bd3ba,_0x2fe2c6,_0x5a6b7e){var _0x26a8f7=_0xb635d2,_0x4f01fc=this;_0x4f01fc[_0x26a8f7('0x15a5')]=_0x5a6b7e[_0x26a8f7('0x1ef8')](),_0x4f01fc[_0x26a8f7('0x24eb')]={'count':0x0,'rows':[]},_0x4f01fc['selectedDispositions']=[],_0x4f01fc['crudPermissions'],_0x4f01fc['levels']={'first':_0x26a8f7('0x24ab'),'second':_0x26a8f7('0x6c0'),'third':_0x26a8f7('0x13ee')},_0x4f01fc['query']={'fields':_0x26a8f7('0x561'),'sort':_0x26a8f7('0x7e8'),'limit':0xa,'page':0x1},_0x4f01fc['init']=_0x456a23,_0x4f01fc[_0x26a8f7('0x126c')]=_0x2546d6,_0x4f01fc[_0x26a8f7('0x425')]=_0x3922cf,_0x4f01fc[_0x26a8f7('0x1312')]=_0x503313,_0x4f01fc['createOrEditDisposition']=_0x2a5e9b,_0x4f01fc[_0x26a8f7('0x1db')]=_0x26af48,_0x4f01fc[_0x26a8f7('0x1f38')]=_0x4068c0,_0x4f01fc[_0x26a8f7('0xda0')]=_0x580a31,_0x4f01fc[_0x26a8f7('0x33d')]=_0x2b685c,_0x4f01fc['selectAllDispositions']=_0xa037d2;function _0x456a23(_0x1c397b,_0x4d93c2){var _0x49a9b2=_0x26a8f7;_0x4f01fc[_0x49a9b2('0xcda')]=_0x1c397b||{},_0x4f01fc[_0x49a9b2('0xb3d')]=typeof _0x4d93c2!=='undefined'?_0x4d93c2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4f01fc[_0x49a9b2('0xa16')][_0x49a9b2('0x365')]=_0x4f01fc['chatWebsite']['id'],_0x4f01fc[_0x49a9b2('0xa16')]['id']=_0x4f01fc[_0x49a9b2('0xcda')]['id'],_0x503313();}function _0x2a5e9b(_0x294591,_0x129071){var _0x10492e=_0x26a8f7;_0x52ba93[_0x10492e('0x26b2')]({'controller':_0x10492e('0x4d9'),'controllerAs':'vm','templateUrl':_0x599d02,'parent':angular[_0x10492e('0x24a1')](_0x4bc706[_0x10492e('0x19b2')]),'targetEvent':_0x294591,'clickOutsideToClose':!![],'locals':{'disposition':_0x129071,'dispositions':_0x4f01fc['dispositions'][_0x10492e('0x16a7')],'model':{'id':_0x4f01fc[_0x10492e('0xcda')]['id'],'field':_0x10492e('0x365')},'license':null,'setting':null,'crudPermissions':_0x4f01fc[_0x10492e('0xb3d')]}})['then'](function(_0x3b8ee1){if(_0x3b8ee1)_0x503313();});}function _0x2546d6(_0x113306,_0xa5a1ea){var _0x41bc96=_0x26a8f7,_0x2cbe7b=_0x32d445()[_0x41bc96('0x201a')](_0x4f01fc[_0x41bc96('0x24eb')][_0x41bc96('0x16a7')],[_0x41bc96('0x2450'),_0x113306['id']]),_0x3384f7=_0x52ba93[_0x41bc96('0xa5')]()[_0x41bc96('0x13e4')](_0x58f759[_0x41bc96('0x2159')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x41bc96('0xd0')](_0x58f759['instant'](_0x41bc96('0xd37')+(_0x2cbe7b?_0x41bc96('0x930'):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x113306['name']}))[_0x41bc96('0x4d1')](_0x41bc96('0x1c26'))['targetEvent'](_0xa5a1ea)['ok']('OK')['cancel'](_0x58f759[_0x41bc96('0x2159')](_0x41bc96('0x717')));_0x52ba93['show'](_0x3384f7)[_0x41bc96('0xe19')](function(){_0x26af48(_0x113306);});}function _0x3922cf(_0x256d74){var _0x1e7793=_0x26a8f7;_0x4f01fc[_0x1e7793('0x24eb')]=_0x256d74||{'count':0x0,'rows':[]};}function _0x503313(){var _0x39954f=_0x26a8f7;_0x4f01fc[_0x39954f('0xa16')][_0x39954f('0xab0')]=(_0x4f01fc[_0x39954f('0xa16')][_0x39954f('0xc08')]-0x1)*_0x4f01fc[_0x39954f('0xa16')][_0x39954f('0x1b6d')],_0x4f01fc[_0x39954f('0x9c8')]=_0x4bd3ba[_0x39954f('0xcda')][_0x39954f('0x1312')](_0x4f01fc[_0x39954f('0xa16')],_0x3922cf)['$promise'];}function _0x26af48(_0x5f12e5){var _0x30b0e0=_0x26a8f7;_0x4bd3ba[_0x30b0e0('0x2506')][_0x30b0e0('0x229e')]({'id':_0x5f12e5['id']})[_0x30b0e0('0xe59')][_0x30b0e0('0xe19')](function(){var _0x5d764e=_0x30b0e0;_0x503313(),_0x2fe2c6[_0x5d764e('0x425')]({'title':_0x58f759[_0x5d764e('0x2159')](_0x5d764e('0x1593'))});})[_0x30b0e0('0x223b')](function(_0x3d71c4){var _0xc16eb6=_0x30b0e0;if(_0x3d71c4[_0xc16eb6('0x11d0')]&&_0x3d71c4[_0xc16eb6('0x11d0')][_0xc16eb6('0xcd2')]&&_0x3d71c4[_0xc16eb6('0x11d0')][_0xc16eb6('0xcd2')][_0xc16eb6('0x25ae')]){_0x4f01fc[_0xc16eb6('0xcd2')]=_0x3d71c4['data'][_0xc16eb6('0xcd2')]||[{'message':_0x3d71c4['toString'](),'type':'SYSTEM:DELETEdisposition'}];for(var _0x22a160=0x0;_0x22a160<_0x3d71c4[_0xc16eb6('0x11d0')]['errors'][_0xc16eb6('0x25ae')];_0x22a160++){_0x2fe2c6[_0xc16eb6('0x8c8')]({'title':_0x3d71c4[_0xc16eb6('0x11d0')]['errors'][_0x22a160][_0xc16eb6('0x62e')],'msg':_0x3d71c4['data'][_0xc16eb6('0xcd2')][_0x22a160]['message']});}}else _0x2fe2c6[_0xc16eb6('0x8c8')]({'title':_0x3d71c4[_0xc16eb6('0x2833')]?_0xc16eb6('0x27f2')+_0x3d71c4[_0xc16eb6('0x2833')]+'\x20-\x20'+_0x3d71c4['statusText']:_0xc16eb6('0x45'),'msg':_0x3d71c4[_0xc16eb6('0x11d0')]?JSON[_0xc16eb6('0x3ad')](_0x3d71c4['data']['message']):_0x3d71c4['message']||_0x3d71c4['toString']()});});}function _0x4068c0(){var _0x30f613=_0x26a8f7,_0x325e42=angular['copy'](_0x4f01fc['selectedDispositions']);return _0x4f01fc[_0x30f613('0x17e9')]=[],_0x325e42;}function _0x580a31(_0x4fab68){var _0x481c05=_0x26a8f7,_0x47ac82=_0x52ba93['confirm']()[_0x481c05('0x13e4')](_0x58f759[_0x481c05('0x2159')](_0x481c05('0xf00')))['content'](_0x58f759[_0x481c05('0x2159')](_0x481c05('0x2750'),{'total':_0x4f01fc[_0x481c05('0x17e9')]['length']}))['ariaLabel'](_0x481c05('0x2829'))[_0x481c05('0x1345')](_0x4fab68)['ok']('OK')[_0x481c05('0x2c1')](_0x58f759[_0x481c05('0x2159')](_0x481c05('0x717')));_0x52ba93['show'](_0x47ac82)[_0x481c05('0xe19')](function(){var _0x12db8b=_0x481c05;_0x4f01fc[_0x12db8b('0x17e9')][_0x12db8b('0x1d7e')](function(_0x5dadcd){_0x26af48(_0x5dadcd);}),_0x4f01fc[_0x12db8b('0x17e9')]=[];});}function _0x2b685c(){_0x4f01fc['selectedDispositions']=[];}function _0xa037d2(){var _0x3736ad=_0x26a8f7;_0x4f01fc['selectedDispositions']=_0x4f01fc[_0x3736ad('0x24eb')][_0x3736ad('0x16a7')];}var _0x2ae3dc=!![],_0x39f8de=0x1;_0x3584c4[_0x26a8f7('0x107')]('vm_dc.query.filter',function(_0x40366e,_0x160244){var _0x2673e1=_0x26a8f7;_0x2ae3dc?_0x5ed62b(function(){_0x2ae3dc=![];}):(!_0x160244&&(_0x39f8de=_0x4f01fc['query'][_0x2673e1('0xc08')]),_0x40366e!==_0x160244&&(_0x4f01fc[_0x2673e1('0xa16')]['page']=0x1),!_0x40366e&&(_0x4f01fc[_0x2673e1('0xa16')][_0x2673e1('0xc08')]=_0x39f8de),_0x503313());});}const _0x8db914=_0x5eb2d4;_0xb9a559[_0xb635d2('0xb0c')]=['$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xffc')];function _0xb9a559(_0xfaa154,_0x11dbb4,_0x4282cd){var _0x404ed7=_0xb635d2,_0x2f8c67=this;_0x2f8c67[_0x404ed7('0xcda')]={},_0x2f8c67[_0x404ed7('0x21a2')]={},_0x2f8c67['buttons']=[{'type':_0x404ed7('0x10f6'),'name':_0x404ed7('0x1421'),'icon':_0x404ed7('0x203f')},{'type':_0x404ed7('0x75a'),'name':'Select','icon':_0x404ed7('0x2286')},{'type':_0x404ed7('0x1049'),'name':'Input','icon':'icon-keyboard'},{'type':_0x404ed7('0x777'),'name':_0x404ed7('0x1f59'),'icon':_0x404ed7('0x1f65')},{'type':'multipleChoices','name':'Radio\x20Buttons','icon':_0x404ed7('0x1f5a')},{'type':_0x404ed7('0x6d1'),'name':_0x404ed7('0x1541'),'icon':'icon-checkbox-multiple-marked-outline'},{'type':_0x404ed7('0x1aee'),'name':_0x404ed7('0x8cb'),'icon':_0x404ed7('0xb27')}],_0x2f8c67[_0x404ed7('0x15f9')]=_0x2ccaa3,_0x2f8c67['up']=_0x4a54dd,_0x2f8c67[_0x404ed7('0x1fe')]=_0x359dff,_0x2f8c67[_0x404ed7('0xaf8')]=_0x42dcfc,_0x2f8c67['remove']=_0x4ebd0f;function _0x2ccaa3(_0x6b61dc){var _0x42ca2c=_0x404ed7;_0x2f8c67[_0x42ca2c('0x1d17')]=[],_0x2f8c67['customFields']=[],_0x2f8c67['uselessFields']=['id','createdAt',_0x42ca2c('0x1ce9'),'ListId','CompanyId','$promise',_0x42ca2c('0x113c')],_0x2f8c67[_0x42ca2c('0xcda')]=_0x6b61dc,_0x32d445()['isEmpty'](_0x2f8c67[_0x42ca2c('0xcda')][_0x42ca2c('0x21a2')])&&(_0x2f8c67[_0x42ca2c('0xcda')]['offlineForm']={'items':[],'fromKey':null}),_0x4282cd[_0x42ca2c('0x1bbd')][_0x42ca2c('0xbef')]({'id':_0x2f8c67[_0x42ca2c('0xcda')][_0x42ca2c('0x2463')]})[_0x42ca2c('0xe59')][_0x42ca2c('0xe19')](function(_0x7b1c91){var _0x58d997=_0x42ca2c;for(var _0x566d4c=0x0;_0x566d4c<_0x7b1c91[_0x58d997('0x16a7')][_0x58d997('0x25ae')];_0x566d4c++){_0x2f8c67[_0x58d997('0x6f2')]['push']({'key':'cf_'+_0x7b1c91[_0x58d997('0x16a7')][_0x566d4c]['id'],'value':_0x7b1c91['rows'][_0x566d4c][_0x58d997('0xbac')]});}return _0x4282cd[_0x58d997('0x1711')][_0x58d997('0x215e')]()[_0x58d997('0xe59')];})['then'](function(_0x2076e4){var _0x132039=_0x42ca2c,_0x474d64=_0x32d445()[_0x132039('0x1234')](_0x2076e4);for(var _0x2dac21=0x0;_0x2dac21<_0x474d64[_0x132039('0x25ae')];_0x2dac21++){!_0x32d445()['includes'](_0x2f8c67[_0x132039('0x16ba')],_0x474d64[_0x2dac21])&&!_0x32d445()[_0x132039('0x20b6')](_0x474d64[_0x2dac21],_0x132039('0x1441'))&&_0x2f8c67[_0x132039('0x1d17')][_0x132039('0x14c9')]({'key':_0x474d64[_0x2dac21],'value':_0x474d64[_0x2dac21]});}return _0x4282cd['variable']['get']()['$promise'];})[_0x42ca2c('0xe19')](function(_0x5d8aff){var _0x3a7a00=_0x42ca2c;_0x2f8c67[_0x3a7a00('0x1a9e')]=_0x5d8aff[_0x3a7a00('0x16a7')];})[_0x42ca2c('0x223b')](function(_0x5b54e9){var _0x56dca8=_0x42ca2c;console[_0x56dca8('0x8c8')](_0x5b54e9);});}function _0x4a54dd(_0x1494fb,_0x15cb44){var _0x2bf886=_0x404ed7;if(_0x15cb44!==0x0){var _0x56b3e0=_0x2f8c67[_0x2bf886('0xcda')]['offlineForm'][_0x2bf886('0xe4b')][_0x15cb44-0x1];_0x2f8c67['chatWebsite'][_0x2bf886('0x21a2')][_0x2bf886('0xe4b')][_0x15cb44]=_0x56b3e0,_0x2f8c67[_0x2bf886('0xcda')]['offlineForm'][_0x2bf886('0xe4b')][_0x15cb44-0x1]=angular['copy'](_0x1494fb);if(_0x2f8c67[_0x2bf886('0xcda')]['offlineForm'][_0x2bf886('0x2720')]===_0x15cb44)_0x2f8c67['chatWebsite'][_0x2bf886('0x21a2')][_0x2bf886('0x2720')]--;else _0x2f8c67[_0x2bf886('0xcda')][_0x2bf886('0x21a2')][_0x2bf886('0x2720')]===_0x15cb44-0x1&&_0x2f8c67[_0x2bf886('0xcda')][_0x2bf886('0x21a2')]['fromKey']++;}}function _0x359dff(_0xc25c6c,_0x513f85){var _0x1c2158=_0x404ed7;if(_0x513f85!==_0x2f8c67[_0x1c2158('0xcda')][_0x1c2158('0x21a2')]['items'][_0x1c2158('0x25ae')]-0x1){var _0x3ee886=_0x2f8c67[_0x1c2158('0xcda')][_0x1c2158('0x21a2')][_0x1c2158('0xe4b')][_0x513f85+0x1];_0x2f8c67[_0x1c2158('0xcda')][_0x1c2158('0x21a2')][_0x1c2158('0xe4b')][_0x513f85]=_0x3ee886,_0x2f8c67[_0x1c2158('0xcda')][_0x1c2158('0x21a2')]['items'][_0x513f85+0x1]=angular[_0x1c2158('0x89')](_0xc25c6c);if(_0x2f8c67[_0x1c2158('0xcda')]['offlineForm'][_0x1c2158('0x2720')]===_0x513f85)_0x2f8c67[_0x1c2158('0xcda')][_0x1c2158('0x21a2')]['fromKey']++;else _0x2f8c67[_0x1c2158('0xcda')]['offlineForm'][_0x1c2158('0x2720')]===_0x513f85+0x1&&_0x2f8c67[_0x1c2158('0xcda')][_0x1c2158('0x21a2')][_0x1c2158('0x2720')]--;}}function _0x42dcfc(_0x5e4024){var _0x2072d4=_0x404ed7;_0x2f8c67[_0x2072d4('0xcda')][_0x2072d4('0x21a2')][_0x2072d4('0xe4b')]['push']({'type':_0x5e4024,'cmField':null,'variable':null});}function _0x4ebd0f(_0x282e3e){var _0x208a67=_0x404ed7,_0x204f28=_0xfaa154[_0x208a67('0xa5')]()['title'](_0x208a67('0x26d3'))['textContent']('Are\x20you\x20sure?')['ariaLabel'](_0x208a67('0x1375'))['ok']('Ok')['cancel'](_0x208a67('0x8a3'));_0xfaa154[_0x208a67('0x26b2')](_0x204f28)['then'](function(){var _0x4df5f7=_0x208a67;_0x2f8c67['chatWebsite'][_0x4df5f7('0x21a2')][_0x4df5f7('0xe4b')][_0x4df5f7('0x1c8e')](_0x282e3e,0x1);});}}const _0x76ba88=_0xb9a559;_0x2c5c4c['$inject']=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'api'];function _0x2c5c4c(_0x56fcad,_0x23cd10,_0x42e49b){var _0x4817f9=_0xb635d2,_0x27e923=this;_0x27e923[_0x4817f9('0xcda')]={},_0x27e923[_0x4817f9('0xe17')]={},_0x27e923['buttons']=[{'type':_0x4817f9('0x10f6'),'name':_0x4817f9('0x1421'),'icon':_0x4817f9('0x203f')},{'type':_0x4817f9('0x75a'),'name':_0x4817f9('0x1630'),'icon':_0x4817f9('0x2286')},{'type':_0x4817f9('0x1049'),'name':'Input','icon':_0x4817f9('0x7f')},{'type':_0x4817f9('0x777'),'name':_0x4817f9('0x1f59'),'icon':_0x4817f9('0x1f65')},{'type':_0x4817f9('0x23b0'),'name':_0x4817f9('0xb9a'),'icon':_0x4817f9('0x1f5a')},{'type':_0x4817f9('0x6d1'),'name':_0x4817f9('0x1541'),'icon':_0x4817f9('0x61d')},{'type':_0x4817f9('0x1aee'),'name':_0x4817f9('0x8cb'),'icon':'icon-checkbox-marked-outline'}],_0x27e923['init']=_0x48adb3,_0x27e923['up']=_0x5984a0,_0x27e923[_0x4817f9('0x1fe')]=_0x1edfbd,_0x27e923[_0x4817f9('0xaf8')]=_0x4bd6b1,_0x27e923[_0x4817f9('0xa8b')]=_0x82577;function _0x48adb3(_0x4aed40){var _0x492b25=_0x4817f9;_0x27e923['fields']=[],_0x27e923[_0x492b25('0x6f2')]=[],_0x27e923[_0x492b25('0x16ba')]=['id',_0x492b25('0x15c9'),_0x492b25('0x1ce9'),_0x492b25('0x2463'),_0x492b25('0x11a4'),'$promise',_0x492b25('0x113c')],_0x27e923['chatWebsite']=_0x4aed40,_0x32d445()[_0x492b25('0x14b4')](_0x27e923[_0x492b25('0xcda')]['onlineForm'])&&(_0x27e923[_0x492b25('0xcda')][_0x492b25('0xe17')]={'items':[],'fromKey':null}),_0x42e49b[_0x492b25('0x1bbd')][_0x492b25('0xbef')]({'id':_0x27e923['chatWebsite'][_0x492b25('0x2463')]})[_0x492b25('0xe59')]['then'](function(_0x171179){var _0x513379=_0x492b25;for(var _0x24b338=0x0;_0x24b338<_0x171179['rows'][_0x513379('0x25ae')];_0x24b338++){_0x27e923[_0x513379('0x6f2')][_0x513379('0xb76')]({'key':'cf_'+_0x171179[_0x513379('0x16a7')][_0x24b338]['id'],'value':_0x171179[_0x513379('0x16a7')][_0x24b338][_0x513379('0xbac')]});}return _0x42e49b[_0x513379('0x1711')][_0x513379('0x215e')]()[_0x513379('0xe59')];})[_0x492b25('0xe19')](function(_0x5ac562){var _0x453a3f=_0x492b25,_0x48a6c8=_0x32d445()[_0x453a3f('0x1234')](_0x5ac562);for(var _0x5a0881=0x0;_0x5a0881<_0x48a6c8[_0x453a3f('0x25ae')];_0x5a0881++){!_0x32d445()[_0x453a3f('0x1c43')](_0x27e923[_0x453a3f('0x16ba')],_0x48a6c8[_0x5a0881])&&!_0x32d445()[_0x453a3f('0x20b6')](_0x48a6c8[_0x5a0881],_0x453a3f('0x1441'))&&_0x27e923[_0x453a3f('0x1d17')][_0x453a3f('0x14c9')]({'key':_0x48a6c8[_0x5a0881],'value':_0x48a6c8[_0x5a0881]});}return _0x42e49b[_0x453a3f('0x19a5')][_0x453a3f('0x22d5')]()['$promise'];})[_0x492b25('0xe19')](function(_0x22fb26){var _0x2011f3=_0x492b25;_0x27e923[_0x2011f3('0x1a9e')]=_0x22fb26[_0x2011f3('0x16a7')];})[_0x492b25('0x223b')](function(_0x3a83fb){var _0x582876=_0x492b25;console[_0x582876('0x8c8')](_0x3a83fb);});}function _0x5984a0(_0x4e2050,_0x580099){var _0x4237d9=_0x4817f9;if(_0x580099!==0x0){var _0x430342=_0x27e923[_0x4237d9('0xcda')][_0x4237d9('0xe17')]['items'][_0x580099-0x1];_0x27e923[_0x4237d9('0xcda')][_0x4237d9('0xe17')]['items'][_0x580099]=_0x430342,_0x27e923['chatWebsite'][_0x4237d9('0xe17')][_0x4237d9('0xe4b')][_0x580099-0x1]=angular['copy'](_0x4e2050);if(_0x27e923[_0x4237d9('0xcda')][_0x4237d9('0xe17')][_0x4237d9('0x2720')]===_0x580099)_0x27e923[_0x4237d9('0xcda')][_0x4237d9('0xe17')][_0x4237d9('0x2720')]--;else _0x27e923[_0x4237d9('0xcda')]['onlineForm'][_0x4237d9('0x2720')]===_0x580099-0x1&&_0x27e923[_0x4237d9('0xcda')][_0x4237d9('0xe17')][_0x4237d9('0x2720')]++;}}function _0x1edfbd(_0x47e6a6,_0x28e5c3){var _0x741add=_0x4817f9;if(_0x28e5c3!==_0x27e923['chatWebsite'][_0x741add('0xe17')][_0x741add('0xe4b')][_0x741add('0x25ae')]-0x1){var _0xb8198b=_0x27e923[_0x741add('0xcda')][_0x741add('0xe17')][_0x741add('0xe4b')][_0x28e5c3+0x1];_0x27e923[_0x741add('0xcda')][_0x741add('0xe17')][_0x741add('0xe4b')][_0x28e5c3]=_0xb8198b,_0x27e923['chatWebsite']['onlineForm'][_0x741add('0xe4b')][_0x28e5c3+0x1]=angular[_0x741add('0x89')](_0x47e6a6);if(_0x27e923[_0x741add('0xcda')][_0x741add('0xe17')][_0x741add('0x2720')]===_0x28e5c3)_0x27e923[_0x741add('0xcda')][_0x741add('0xe17')][_0x741add('0x2720')]++;else _0x27e923['chatWebsite']['onlineForm'][_0x741add('0x2720')]===_0x28e5c3+0x1&&_0x27e923[_0x741add('0xcda')][_0x741add('0xe17')][_0x741add('0x2720')]--;}}function _0x4bd6b1(_0x532c19){var _0x47499d=_0x4817f9;_0x27e923[_0x47499d('0xcda')][_0x47499d('0xe17')][_0x47499d('0xe4b')][_0x47499d('0xb76')]({'type':_0x532c19,'cmField':null,'variable':null});}function _0x82577(_0x1d7f23){var _0xb31c4e=_0x4817f9,_0x24fe5d=_0x56fcad['confirm']()[_0xb31c4e('0x13e4')](_0xb31c4e('0x26d3'))[_0xb31c4e('0x2719')](_0xb31c4e('0x24d0'))[_0xb31c4e('0x4d1')](_0xb31c4e('0x1375'))['ok']('Ok')[_0xb31c4e('0x2c1')](_0xb31c4e('0x8a3'));_0x56fcad[_0xb31c4e('0x26b2')](_0x24fe5d)[_0xb31c4e('0xe19')](function(){var _0x5e1bc5=_0xb31c4e;_0x27e923['chatWebsite'][_0x5e1bc5('0xe17')][_0x5e1bc5('0x2720')]===_0x1d7f23&&(_0x27e923[_0x5e1bc5('0xcda')][_0x5e1bc5('0xe17')]['fromKey']=null),_0x27e923[_0x5e1bc5('0xcda')][_0x5e1bc5('0xe17')][_0x5e1bc5('0xe4b')]['splice'](_0x1d7f23,0x1),!_0x27e923[_0x5e1bc5('0xcda')][_0x5e1bc5('0xe17')][_0x5e1bc5('0xe4b')]['length']&&(_0x27e923[_0x5e1bc5('0xcda')][_0x5e1bc5('0xe17')][_0x5e1bc5('0x2720')]=null);});}}const _0x22b586=_0x2c5c4c;_0x2731f7[_0xb635d2('0xb0c')]=['$cookies',_0xb635d2('0xf65')];function _0x2731f7(_0x2844a6,_0x492a2a){var _0x35e4cc=_0xb635d2,_0x4e0a0c=this,_0x245ac3=0x8,_0x4a3e79=_0x245ac3*0x400*0x400;_0x4e0a0c[_0x35e4cc('0xcda')]={},_0x4e0a0c[_0x35e4cc('0xb3d')],_0x4e0a0c[_0x35e4cc('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4a3e79,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4e0a0c['ngFlow']={'flow':{}},_0x4e0a0c[_0x35e4cc('0x1403')]=![],_0x4e0a0c[_0x35e4cc('0x1124')]=_0xbe6ce6,_0x4e0a0c[_0x35e4cc('0x20')]=_0x4e4a2f,_0x4e0a0c['fileSuccess']=_0x1d1603,_0x4e0a0c[_0x35e4cc('0x15f9')]=_0x34b1e6;function _0x34b1e6(_0x3106fa,_0x54aad4){var _0x4f8dfc=_0x35e4cc;_0x4e0a0c[_0x4f8dfc('0xcda')]=angular[_0x4f8dfc('0x89')](_0x3106fa),_0x4e0a0c['crudPermissions']=typeof _0x54aad4!==_0x4f8dfc('0x1143')?_0x54aad4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e0a0c[_0x4f8dfc('0x186a')][_0x4f8dfc('0xe0b')]=_0x4f8dfc('0x1b9e')['replace'](':id',_0x4e0a0c[_0x4f8dfc('0xcda')]['id']),_0x4e0a0c[_0x4f8dfc('0xcda')]['images']=[];}function _0xbe6ce6(_0x3e3860){var _0xb7f22a=_0x35e4cc,_0x375e78=[_0xb7f22a('0xb48'),_0xb7f22a('0x1c0a')];if(!_0x32d445()[_0xb7f22a('0x1c43')](_0x375e78,_0x3e3860[_0xb7f22a('0x23df')]()))return _0x492a2a[_0xb7f22a('0x8c8')]({'title':'Invalid\x20extension:\x20'+_0x3e3860[_0xb7f22a('0x23df')](),'msg':_0xb7f22a('0x1450')+_0x375e78[_0xb7f22a('0x1537')]()}),![];if(_0x3e3860[_0xb7f22a('0x1aea')]>_0x4a3e79)return _0x492a2a[_0xb7f22a('0x8c8')]({'title':_0xb7f22a('0x16c9'),'msg':_0xb7f22a('0x275f')+_0x245ac3+'MB'}),![];var _0x80f32e={'id':_0x3e3860[_0xb7f22a('0x164e')],'file':_0x3e3860,'type':_0xb7f22a('0x1363')};return _0x4e0a0c[_0xb7f22a('0xcda')][_0xb7f22a('0x22b8')][_0xb7f22a('0x14c9')](_0x80f32e),!![];}function _0x4e4a2f(){var _0x3ed809=_0x35e4cc;_0x4e0a0c[_0x3ed809('0x1b57')][_0x3ed809('0x206b')][_0x3ed809('0x5ec')][_0x3ed809('0x2234')]={'X-Requested-With':_0x3ed809('0xdf4'),'Authorization':'Bearer\x20'+_0x2844a6['get'](_0x3ed809('0x511'))},_0x4e0a0c[_0x3ed809('0x1b57')]['flow'][_0x3ed809('0x20')]();}function _0x1d1603(_0x46059f){var _0x3da351=_0x35e4cc;angular[_0x3da351('0x1d7e')](_0x4e0a0c[_0x3da351('0xcda')]['images'],function(_0x5567aa){var _0x15e11c=_0x3da351;if(_0x5567aa['id']===_0x46059f[_0x15e11c('0x164e')]){var _0x508144=new FileReader();_0x508144[_0x15e11c('0x845')](_0x5567aa[_0x15e11c('0x2c0')][_0x15e11c('0x2c0')]),_0x508144['onload']=function(_0x32a57c){var _0x23f41e=_0x15e11c;_0x5567aa[_0x23f41e('0x2647')]=_0x32a57c[_0x23f41e('0xe0b')][_0x23f41e('0x2048')];},_0x5567aa[_0x15e11c('0x62e')]=_0x15e11c('0x16af');}});}}const _0x32a3c8=_0x2731f7,_0x43d9d1=_0x59426a['p']+_0xb635d2('0x1bc1');_0x2cec36[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),'api','Auth'];function _0x2cec36(_0x1cfb1a,_0x5a4fd1,_0x3a2cb4,_0x1739fc,_0x1df2b7,_0xf7d8a4,_0x29d846,_0xd31c0a,_0x187834,_0x26329e,_0x11f71e){var _0x3b3bd5=_0xb635d2,_0x11c1a2=this;_0x11c1a2[_0x3b3bd5('0x15a5')]=_0x11f71e[_0x3b3bd5('0x1ef8')](),_0x11c1a2[_0x3b3bd5('0xcda')]={},_0x11c1a2[_0x3b3bd5('0x6cc')]={'count':0x0,'rows':[]},_0x11c1a2[_0x3b3bd5('0x2806')]=[],_0x11c1a2[_0x3b3bd5('0xb3d')],_0x11c1a2[_0x3b3bd5('0xa16')]={'read':_0x3b3bd5('0x1046'),'closed':_0x3b3bd5('0x1046'),'sort':'-createdAt','includeAll':_0x3b3bd5('0x2206'),'limit':0xa,'page':0x1},_0x11c1a2[_0x3b3bd5('0x15f9')]=_0x4ce492,_0x11c1a2[_0x3b3bd5('0x126c')]=_0x12a8a4,_0x11c1a2[_0x3b3bd5('0x1fe8')]=_0x46f419,_0x11c1a2['success']=_0x55c3c6,_0x11c1a2[_0x3b3bd5('0x2500')]=_0x3c82d3,_0x11c1a2[_0x3b3bd5('0x29d')]=_0xb73618,_0x11c1a2['openAdvancedSearch']=_0xc09a0,_0x11c1a2[_0x3b3bd5('0x1b40')]=_0x181407,_0x11c1a2[_0x3b3bd5('0x1ffb')]=_0x47c8ea,_0x11c1a2[_0x3b3bd5('0x125')]=_0x304404;function _0x4ce492(_0x3c6699,_0x41f701){var _0x45c088=_0x3b3bd5;_0x11c1a2['chatWebsite']=_0x3c6699,_0x11c1a2['crudPermissions']=typeof _0x41f701!==_0x45c088('0x1143')?_0x41f701:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x11c1a2[_0x45c088('0xa16')][_0x45c088('0x365')]=_0x11c1a2['chatWebsite']['id'],_0x11c1a2[_0x45c088('0x164')]={'fields':_0x58163a()},_0x7d9440();}function _0x7d9440(){var _0xa7697a=_0x3b3bd5;return _0x26329e[_0xa7697a('0x2037')][_0xa7697a('0x22d5')]()[_0xa7697a('0xe59')][_0xa7697a('0xe19')](function(_0x7c64d2){var _0x4df161=_0xa7697a;_0x11c1a2[_0x4df161('0x1105')]=_0x7c64d2||{'count':0x0,'rows':[]};})[_0xa7697a('0xe19')](function(){var _0x29b01d=_0xa7697a;_0x11c1a2[_0x29b01d('0x1fd3')]=_0x2c2811();});}function _0x2c2811(){var _0x44e5b7=_0x3b3bd5;return[{'name':_0x44e5b7('0x141d'),'key':_0x44e5b7('0x15c9'),'type':_0x44e5b7('0xf6d'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x44e5b7('0x1e63'),'key':_0x44e5b7('0x1a6e'),'type':_0x44e5b7('0x2e6'),'label':_0x44e5b7('0x2738'),'customOptions':[{'value':0x0,'translate':_0x44e5b7('0x10db')},{'value':0x1,'translate':_0x44e5b7('0x3b4')},{'value':null,'translate':_0x44e5b7('0x296')}]},{'name':_0x44e5b7('0x20e'),'key':_0x44e5b7('0x1835'),'type':_0x44e5b7('0x2e6'),'label':_0x44e5b7('0xef5'),'customOptions':[{'value':0x0,'translate':_0x44e5b7('0x1c37')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x44e5b7('0x296')}]},{'name':_0x44e5b7('0x142e'),'key':_0x44e5b7('0x43d'),'type':_0x44e5b7('0x2e6'),'label':_0x44e5b7('0x120c'),'customOptions':[{'value':_0x44e5b7('0x1046'),'translate':_0x44e5b7('0x2094')},{'value':undefined,'translate':_0x44e5b7('0x296')}]},{'name':'Tag','key':_0x44e5b7('0x2037'),'type':'multiselect','label':'DASHBOARDS.SELECT_TAG','options':_0x11c1a2['tags'][_0x44e5b7('0x16a7')],'placeholder':_0x44e5b7('0x14ec')}];}function _0x58163a(){var _0x4634a1=_0x3b3bd5;return[{'name':'Id','column':'id','type':_0x4634a1('0x1c60')},{'name':_0x4634a1('0x1286'),'column':_0x4634a1('0x1286'),'type':_0x4634a1('0x5c0'),'options':{'searchFields':[_0x4634a1('0x2566'),_0x4634a1('0x151f'),_0x4634a1('0x1211')],'route':{'model':_0x4634a1('0x1711'),'action':_0x4634a1('0x22d5'),'params':{'fields':_0x4634a1('0x75'),'Contact':_0x4634a1('0x217d'),'nolimit':!![]}},'extraOperators':[_0x4634a1('0x1247')],'excludedOperators':['$ne']}},{'name':'Subject','column':_0x4634a1('0x9ec'),'type':_0x4634a1('0x1bc6'),'options':{'excludedOperators':[_0x4634a1('0x1d15'),_0x4634a1('0x1f51')]}},{'name':_0x4634a1('0x750'),'column':_0x4634a1('0x6c9'),'type':_0x4634a1('0x1bc6'),'options':{'excludedOperators':[_0x4634a1('0x1d15'),_0x4634a1('0x1f51')]}},{'name':_0x4634a1('0x20e'),'column':'closed','type':_0x4634a1('0x2e6'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x4634a1('0x1f51')]}},{'name':_0x4634a1('0x142e'),'column':_0x4634a1('0x2630'),'type':_0x4634a1('0x5c0'),'options':{'table':'i','route':{'model':_0x4634a1('0x10c6'),'action':_0x4634a1('0x22d5'),'params':{'role':_0x4634a1('0x108'),'fields':_0x4634a1('0x194c'),'nolimit':!![]}},'searchFields':[_0x4634a1('0xe11'),_0x4634a1('0x2623')],'extraOperators':[_0x4634a1('0x1247')],'excludedOperators':['$ne']}},{'name':_0x4634a1('0x1e7b'),'column':_0x4634a1('0x1172'),'type':'multiselect','options':{'route':{'model':_0x4634a1('0x2037'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x4634a1('0x19a3')]}},{'name':'Start\x20Date','column':_0x4634a1('0x15c9'),'type':_0x4634a1('0xf6d'),'options':{'excludedOperators':[_0x4634a1('0x1f51')]}},{'name':_0x4634a1('0x2233'),'column':_0x4634a1('0x98d'),'type':_0x4634a1('0x2e6'),'values':[{'id':0x1,'translate':_0x4634a1('0x3b4')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':['$ne']}}];}function _0xc09a0(){var _0x1ded0d=_0x3b3bd5;_0x29d846[_0x1ded0d('0x26b2')]({'controller':_0x1ded0d('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular['element'](_0xd31c0a[_0x1ded0d('0x19b2')]),'clickOutsideToClose':![],'locals':{'fields':_0x11c1a2[_0x1ded0d('0x164')]['fields'],'color':undefined,'storagePath':_0x1ded0d('0xf0f')},'fullscreen':!![]})[_0x1ded0d('0xe19')](function(_0x2fb6ef){var _0x5a272b=_0x1ded0d;_0x11c1a2[_0x5a272b('0xa16')][_0x5a272b('0x1cc8')]=_0x2fb6ef===![]?undefined:_0x2fb6ef;if(_0x11c1a2[_0x5a272b('0xa16')][_0x5a272b('0x1cc8')])_0x3c82d3();else _0x2fb6ef===![]&&_0x3c82d3();})[_0x1ded0d('0x223b')](function(_0x2ae44a){var _0x5b3a3a=_0x1ded0d;_0x187834['error']({'title':_0x5b3a3a('0x71e'),'msg':_0x2ae44a[_0x5b3a3a('0x11d0')]?JSON[_0x5b3a3a('0x3ad')](_0x2ae44a[_0x5b3a3a('0x11d0')][_0x5b3a3a('0x27e8')]):_0x2ae44a[_0x5b3a3a('0x94f')]()});});}function _0x46f419(_0x4d4a40,_0x3066ee,_0x5081a4){var _0x269cf4=_0x3b3bd5;return _0x26329e['chatInteraction'][_0x269cf4('0x1d1e')]({'id':_0x4d4a40['id'],'exists':!![],'attachments':_0x5081a4})['$promise']['then'](function(_0x91eeea){var _0x1b4b4a=_0x269cf4,_0x4c3cf6=[_0x91eeea['buffer']],_0x5ddd16='interaction'+_0x4d4a40['id'],_0x280122=new Blob(_0x4c3cf6,{'type':_0x91eeea[_0x1b4b4a('0x62e')]});_0x5ddd16=_0x1b4b4a('0x1ae4')+_0x4d4a40['id']+_0x1b4b4a('0x985');var _0x336a6c=window['document'][_0x1b4b4a('0x9a1')]('a');_0x336a6c[_0x1b4b4a('0xede')]('href',URL[_0x1b4b4a('0x1360')](_0x280122)),_0x336a6c[_0x1b4b4a('0xede')]('download',_0x5ddd16),document['body']['appendChild'](_0x336a6c),_0x336a6c[_0x1b4b4a('0xfe7')]();})[_0x269cf4('0x223b')](function(_0x44d4d8){var _0x2b85f6=_0x269cf4;if(_0x44d4d8[_0x2b85f6('0x11d0')]&&_0x44d4d8[_0x2b85f6('0x11d0')]['errors']&&_0x44d4d8['data'][_0x2b85f6('0xcd2')][_0x2b85f6('0x25ae')])for(var _0x882ada=0x0;_0x882ada<_0x44d4d8[_0x2b85f6('0x11d0')][_0x2b85f6('0xcd2')][_0x2b85f6('0x25ae')];_0x882ada+=0x1){_0x187834[_0x2b85f6('0x8c8')]({'title':_0x44d4d8[_0x2b85f6('0x11d0')][_0x2b85f6('0xcd2')][_0x882ada]['type'],'msg':_0x44d4d8[_0x2b85f6('0x11d0')]['errors'][_0x882ada]['message']});}else _0x187834[_0x2b85f6('0x8c8')]({'title':_0x44d4d8[_0x2b85f6('0x2833')]?_0x2b85f6('0x27f2')+_0x44d4d8[_0x2b85f6('0x2833')]+'\x20-\x20'+_0x44d4d8[_0x2b85f6('0x1fd7')]:_0x2b85f6('0x136a'),'msg':_0x44d4d8['data']?JSON['stringify'](_0x44d4d8[_0x2b85f6('0x11d0')]['message']):_0x44d4d8[_0x2b85f6('0x94f')]()});});}function _0x12a8a4(_0x287223,_0x7f7e49){var _0x3e12f3=_0x3b3bd5,_0x5a442c=_0x29d846[_0x3e12f3('0xa5')]()[_0x3e12f3('0x13e4')](_0x3e12f3('0x1f13'))[_0x3e12f3('0x221c')](_0x3e12f3('0xab2')+(_0x287223[_0x3e12f3('0x2623')]||_0x287223['id']&&_0x32d445()[_0x3e12f3('0x2077')](_0x3e12f3('0x1fcc'))+_0x287223['id']||_0x3e12f3('0xf6'))+''+'\x20will\x20be\x20deleted.')[_0x3e12f3('0x4d1')](_0x3e12f3('0x1a82'))['targetEvent'](_0x7f7e49)['ok']('OK')[_0x3e12f3('0x2c1')](_0x3e12f3('0x17'));_0x29d846[_0x3e12f3('0x26b2')](_0x5a442c)[_0x3e12f3('0xe19')](function(){_0x47c8ea(_0x287223);},function(){console['log']('CANCEL');});}function _0x55c3c6(_0xb4dc08){var _0x3ff4ee=_0x3b3bd5;_0x11c1a2['chatWebsiteInteractions']=_0xb4dc08||{'count':0x0,'rows':[]};for(var _0x539524=0x0;_0x539524<_0x11c1a2[_0x3ff4ee('0x6cc')][_0x3ff4ee('0x16a7')][_0x3ff4ee('0x25ae')];_0x539524+=0x1){var _0xe14b5a=_0x11c1a2[_0x3ff4ee('0x6cc')][_0x3ff4ee('0x16a7')][_0x539524];_0x2fcfc4(_0xe14b5a),_0xe14b5a[_0x3ff4ee('0x2237')][_0x3ff4ee('0x2623')]=_0x5285e5(_0xe14b5a);}}function _0x3c82d3(){var _0x5f1b1e=_0x3b3bd5;_0x11c1a2[_0x5f1b1e('0xa16')][_0x5f1b1e('0xab0')]=(_0x11c1a2[_0x5f1b1e('0xa16')][_0x5f1b1e('0xc08')]-0x1)*_0x11c1a2['query'][_0x5f1b1e('0x1b6d')],_0x11c1a2[_0x5f1b1e('0x9c8')]=_0x26329e[_0x5f1b1e('0x11a0')][_0x5f1b1e('0x22d5')](_0x11c1a2['query'],_0x55c3c6)['$promise'];}function _0xb73618(_0x10183e,_0x2897ed){var _0x36e132=_0x3b3bd5;_0x29d846[_0x36e132('0x26b2')]({'controller':_0x36e132('0x1b1'),'controllerAs':'vm','templateUrl':_0x43d9d1,'parent':angular['element'](_0xd31c0a[_0x36e132('0x19b2')]),'targetEvent':_0x10183e,'clickOutsideToClose':!![],'onShowing':function _0x440874(_0x2b7f85){var _0x13f714=_0x36e132;_0x2b7f85['vm'][_0x13f714('0x15f9')]({'id':0x1,'channel':_0x13f714('0x17cc'),'interaction':_0x2897ed,'spy':!![]},_0x5a4fd1[_0x13f714('0x5cf')]['vm']['setting']);}});}function _0x47c8ea(_0x56ff1b){var _0x3450f2=_0x3b3bd5;_0x26329e[_0x3450f2('0x11a0')]['delete']({'id':_0x56ff1b['id']})[_0x3450f2('0xe59')][_0x3450f2('0xe19')](function(){var _0x553038=_0x3450f2;_0x32d445()[_0x553038('0xa8b')](_0x11c1a2['chatWebsiteInteractions'][_0x553038('0x16a7')],{'id':_0x56ff1b['id']}),_0x11c1a2[_0x553038('0x6cc')]['count']-=0x1,!_0x11c1a2['chatWebsiteInteractions'][_0x553038('0x16a7')]['length']&&_0x3c82d3(),_0x187834[_0x553038('0x425')]({'title':_0x553038('0x5c'),'msg':_0x56ff1b[_0x553038('0x2623')]?_0x56ff1b[_0x553038('0x2623')]+_0x553038('0x2182'):''});})[_0x3450f2('0x223b')](function(_0x36850f){var _0x2943e4=_0x3450f2;if(_0x36850f[_0x2943e4('0x11d0')]&&_0x36850f['data']['errors']&&_0x36850f['data'][_0x2943e4('0xcd2')]['length']){_0x11c1a2[_0x2943e4('0xcd2')]=_0x36850f[_0x2943e4('0x11d0')]['errors']||[{'message':_0x36850f[_0x2943e4('0x94f')](),'type':_0x2943e4('0x250a')}];for(var _0x16a6eb=0x0;_0x16a6eb<_0x36850f[_0x2943e4('0x11d0')][_0x2943e4('0xcd2')][_0x2943e4('0x25ae')];_0x16a6eb++){_0x187834[_0x2943e4('0x8c8')]({'title':_0x36850f[_0x2943e4('0x11d0')][_0x2943e4('0xcd2')][_0x16a6eb]['type'],'msg':_0x36850f[_0x2943e4('0x11d0')]['errors'][_0x16a6eb][_0x2943e4('0x27e8')]});}}else _0x187834[_0x2943e4('0x8c8')]({'title':_0x36850f[_0x2943e4('0x2833')]?_0x2943e4('0x27f2')+_0x36850f['status']+_0x2943e4('0x1b7c')+_0x36850f['statusText']:_0x2943e4('0x250a'),'msg':_0x36850f['data']?JSON[_0x2943e4('0x3ad')](_0x36850f[_0x2943e4('0x11d0')][_0x2943e4('0x27e8')]):_0x36850f[_0x2943e4('0x27e8')]||_0x36850f[_0x2943e4('0x94f')]()});});}function _0x181407(){var _0x3d2aea=_0x3b3bd5,_0x29060e=angular[_0x3d2aea('0x89')](_0x11c1a2['selectedChatWebsiteInteractions']);return _0x11c1a2['selectedChatWebsiteInteractions']=[],_0x29060e;}function _0x304404(_0x881416){var _0x54697b=_0x3b3bd5,_0x3e68c5=_0x29d846['confirm']()[_0x54697b('0x13e4')](_0x54697b('0x275c'))[_0x54697b('0x221c')](_0x54697b('0xab2')+_0x11c1a2[_0x54697b('0x2806')][_0x54697b('0x25ae')]+_0x54697b('0x5bc')+_0x54697b('0x21bd'))[_0x54697b('0x4d1')](_0x54697b('0x234e'))[_0x54697b('0x1345')](_0x881416)['ok']('OK')[_0x54697b('0x2c1')](_0x54697b('0x17'));_0x29d846[_0x54697b('0x26b2')](_0x3e68c5)['then'](function(){var _0x4c573d=_0x54697b;_0x11c1a2[_0x4c573d('0x2806')][_0x4c573d('0x1d7e')](function(_0x8c4467){_0x47c8ea(_0x8c4467);}),_0x11c1a2['selectedChatWebsiteInteractions']=[];});}function _0x2fcfc4(_0x1e6bcd){var _0x107c75=_0x3b3bd5;_0x1e6bcd[_0x107c75('0x1286')]?_0x1e6bcd[_0x107c75('0x130c')]=(_0x1e6bcd[_0x107c75('0x1286')]['firstName']||'')+'\x20'+(_0x1e6bcd['Contact']['lastName']||''):_0x1e6bcd[_0x107c75('0x130c')]=_0x1df2b7['instant']('DASHBOARDS.UNKNOWN');}function _0x5285e5(_0x6e3101){var _0x305888=_0x3b3bd5;if(_0x6e3101[_0x305888('0x43d')])return _0x6e3101[_0x305888('0x43d')]===_0x11c1a2[_0x305888('0x15a5')]['id']?_0x1df2b7[_0x305888('0x2159')](_0x305888('0x132d')):_0x6e3101['Owner'][_0x305888('0xe11')]+'\x20<'+_0x6e3101[_0x305888('0x2237')][_0x305888('0x1b66')]+'>';return _0x1df2b7['instant'](_0x305888('0x2094'));}var _0x26af88=!![],_0x2f3bc3=0x1;_0x5a4fd1[_0x3b3bd5('0x107')](_0x3b3bd5('0x1607'),function(_0x405242,_0x3a193d){var _0x419776=_0x3b3bd5;_0x26af88?_0xf7d8a4(function(){_0x26af88=![];}):(!_0x3a193d&&(_0x2f3bc3=_0x11c1a2[_0x419776('0xa16')][_0x419776('0xc08')]),_0x405242!==_0x3a193d&&(_0x11c1a2[_0x419776('0xa16')]['page']=0x1),!_0x405242&&(_0x11c1a2['query'][_0x419776('0xc08')]=_0x2f3bc3),_0x3c82d3());});}const _0x20db23=_0x2cec36;_0x469ec8[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),'toasty'];function _0x469ec8(_0x4197cf,_0x531bd4){var _0x17a93d=_0xb635d2,_0x1210f0=this,_0x1e5d16=0x8,_0x327318=_0x1e5d16*0x400*0x400;_0x1210f0[_0x17a93d('0xcda')]={},_0x1210f0[_0x17a93d('0xb3d')],_0x1210f0[_0x17a93d('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x327318,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1210f0[_0x17a93d('0x1b57')]={'flow':{}},_0x1210f0[_0x17a93d('0x1403')]=![],_0x1210f0[_0x17a93d('0x1124')]=_0x52cee0,_0x1210f0['upload']=_0x4c0d07,_0x1210f0[_0x17a93d('0x24e8')]=_0x32cc33,_0x1210f0[_0x17a93d('0x15f9')]=_0x2e6baa;function _0x2e6baa(_0x124bed,_0x1264f6){var _0x2e00af=_0x17a93d;_0x1210f0[_0x2e00af('0xcda')]=angular[_0x2e00af('0x89')](_0x124bed),_0x1210f0['crudPermissions']=typeof _0x1264f6!==_0x2e00af('0x1143')?_0x1264f6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1210f0['ngFlowOptions'][_0x2e00af('0xe0b')]=_0x2e00af('0x4d3')[_0x2e00af('0x1b42')](_0x2e00af('0x16f0'),_0x1210f0[_0x2e00af('0xcda')]['id']),_0x1210f0[_0x2e00af('0xcda')][_0x2e00af('0x22b8')]=[];}function _0x52cee0(_0x4730ca){var _0x2658bf=_0x17a93d,_0x4c916d=[_0x2658bf('0xb48'),'jpg'];if(!_0x32d445()[_0x2658bf('0x1c43')](_0x4c916d,_0x4730ca[_0x2658bf('0x23df')]()))return _0x531bd4[_0x2658bf('0x8c8')]({'title':_0x2658bf('0x11b6')+_0x4730ca['getExtension'](),'msg':_0x2658bf('0x1450')+_0x4c916d[_0x2658bf('0x1537')]()}),![];if(_0x4730ca[_0x2658bf('0x1aea')]>_0x327318)return _0x531bd4[_0x2658bf('0x8c8')]({'title':_0x2658bf('0x16c9'),'msg':_0x2658bf('0x275f')+_0x1e5d16+'MB'}),![];var _0x4f5afc={'id':_0x4730ca[_0x2658bf('0x164e')],'file':_0x4730ca,'type':_0x2658bf('0x1363')};return _0x1210f0[_0x2658bf('0xcda')][_0x2658bf('0x22b8')][_0x2658bf('0x14c9')](_0x4f5afc),!![];}function _0x4c0d07(){var _0x349de6=_0x17a93d;_0x1210f0[_0x349de6('0x1b57')]['flow'][_0x349de6('0x5ec')]['headers']={'X-Requested-With':_0x349de6('0xdf4'),'Authorization':_0x349de6('0x17b7')+_0x4197cf['get'](_0x349de6('0x511'))},_0x1210f0['ngFlow'][_0x349de6('0x206b')][_0x349de6('0x20')]();}function _0x32cc33(_0x19e1b2){var _0x32372c=_0x17a93d;angular['forEach'](_0x1210f0[_0x32372c('0xcda')]['images'],function(_0x2175b4){var _0x3a80ab=_0x32372c;if(_0x2175b4['id']===_0x19e1b2[_0x3a80ab('0x164e')]){var _0x18badb=new FileReader();_0x18badb[_0x3a80ab('0x845')](_0x2175b4['file'][_0x3a80ab('0x2c0')]),_0x18badb[_0x3a80ab('0x1d94')]=function(_0x435e1e){var _0x5f195d=_0x3a80ab;_0x2175b4[_0x5f195d('0x2647')]=_0x435e1e['target'][_0x5f195d('0x2048')];},_0x2175b4[_0x3a80ab('0x62e')]=_0x3a80ab('0x16af');}});}}const _0x1a8223=_0x469ec8,_0x42c14f=_0x59426a['p']+_0xb635d2('0x211b');_0x559700['$inject']=[_0xb635d2('0x1c1d'),'$scope',_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),'$mdDialog','$document',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x559700(_0x5ab2fa,_0xc99317,_0x554170,_0x5767bb,_0x320f01,_0x42c596,_0x276c08,_0x25ea5e,_0x53a2f0,_0x5135fa,_0x2aa3fa){var _0x106f74=_0xb635d2,_0x3fc2eb=this;_0x3fc2eb[_0x106f74('0x15a5')]=_0x2aa3fa[_0x106f74('0x1ef8')](),_0x3fc2eb[_0x106f74('0xcda')]={},_0x3fc2eb[_0x106f74('0x9ea')]={'count':0x0,'rows':[]},_0x3fc2eb[_0x106f74('0x6d')]=[],_0x3fc2eb[_0x106f74('0xb3d')],_0x3fc2eb[_0x106f74('0xa16')]={'fields':_0x106f74('0x2395'),'sort':_0x106f74('0x962'),'limit':0xa,'page':0x1},_0x3fc2eb[_0x106f74('0x15f9')]=_0x4eb396,_0x3fc2eb[_0x106f74('0x126c')]=_0x97e495,_0x3fc2eb[_0x106f74('0x425')]=_0x52ba8c,_0x3fc2eb[_0x106f74('0x220')]=_0x36e7b1,_0x3fc2eb[_0x106f74('0x15bf')]=_0x11c4d3,_0x3fc2eb[_0x106f74('0x210f')]=_0x24047c,_0x3fc2eb[_0x106f74('0x1221')]=_0x18be5c,_0x3fc2eb[_0x106f74('0x2362')]=_0x3fea52,_0x3fc2eb['deleteSelectedChatWebsiteOfflineMessages']=_0x5a110e;function _0x4eb396(_0x7270e,_0x3441d9){var _0x84b2f=_0x106f74;_0x3fc2eb[_0x84b2f('0xcda')]=_0x7270e,_0x3fc2eb[_0x84b2f('0xb3d')]=typeof _0x3441d9!==_0x84b2f('0x1143')?_0x3441d9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3fc2eb[_0x84b2f('0xa16')]['id']=_0x3fc2eb[_0x84b2f('0xcda')]['id'],_0x36e7b1();}function _0x97e495(_0x59224f,_0x280fd8){var _0x4510ed=_0x106f74,_0x486e66=_0x276c08[_0x4510ed('0xa5')]()[_0x4510ed('0x13e4')](_0x4510ed('0x2668'))['htmlContent'](_0x4510ed('0xab2')+(_0x59224f[_0x4510ed('0x2623')]||_0x59224f['id']&&_0x32d445()[_0x4510ed('0x2077')](_0x4510ed('0x169a'))+_0x59224f['id']||_0x4510ed('0x2690'))+_0x4510ed('0x27bb')+_0x4510ed('0x21bd'))['ariaLabel'](_0x4510ed('0x25f1'))[_0x4510ed('0x1345')](_0x280fd8)['ok']('OK')['cancel']('CANCEL');_0x276c08['show'](_0x486e66)[_0x4510ed('0xe19')](function(){_0x3fea52(_0x59224f);},function(){var _0x4f1b2c=_0x4510ed;console[_0x4f1b2c('0x1fe9')](_0x4f1b2c('0x17'));});}function _0x52ba8c(_0x470aee){var _0x3fb99c=_0x106f74;_0x3fc2eb[_0x3fb99c('0x9ea')]=_0x470aee||{'count':0x0,'rows':[]};}function _0x36e7b1(){var _0x4d62a4=_0x106f74;_0x3fc2eb[_0x4d62a4('0xa16')][_0x4d62a4('0xab0')]=(_0x3fc2eb['query']['page']-0x1)*_0x3fc2eb[_0x4d62a4('0xa16')][_0x4d62a4('0x1b6d')],_0x3fc2eb[_0x4d62a4('0x9c8')]=_0x5135fa[_0x4d62a4('0xcda')]['getOfflineMessages'](_0x3fc2eb[_0x4d62a4('0xa16')],_0x52ba8c)[_0x4d62a4('0xe59')];}function _0x11c4d3(_0xc4c852,_0x275d22){var _0x21d24e=_0x106f74;_0x276c08[_0x21d24e('0x26b2')]({'controller':_0x21d24e('0xf3a'),'controllerAs':'vm','templateUrl':_0x42c14f,'parent':angular['element'](_0x25ea5e[_0x21d24e('0x19b2')]),'targetEvent':_0xc4c852,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x3fc2eb[_0x21d24e('0xcda')],'offlineMessage':_0x275d22,'offlineMessages':_0x3fc2eb[_0x21d24e('0x9ea')]['rows'],'license':null,'setting':null,'crudPermissions':_0x3fc2eb[_0x21d24e('0xb3d')]}});}function _0x24047c(_0x148d7d,_0x1bfea6){var _0x531743=_0x106f74;_0x276c08[_0x531743('0x26b2')]({'controller':_0x531743('0x2870'),'controllerAs':'vm','templateUrl':_0x42c14f,'parent':angular[_0x531743('0x24a1')](_0x25ea5e['body']),'targetEvent':_0x148d7d,'clickOutsideToClose':!![],'resolve':{'message':[_0x531743('0x292'),function _0x2d692a(_0x3e4a63){var _0xf20c43=_0x531743;return _0x3e4a63['resolve'](_0xf20c43('0x1c92'),{'fields':_0xf20c43('0x1b00'),'id':_0x1bfea6['id']});}]}});}function _0x3fea52(_0x4d61dc){var _0x2e6f50=_0x106f74;_0x5135fa[_0x2e6f50('0x10f')]['delete']({'id':_0x4d61dc['id']})['$promise'][_0x2e6f50('0xe19')](function(){var _0x136039=_0x2e6f50;_0x32d445()[_0x136039('0xa8b')](_0x3fc2eb['chatWebsiteOfflineMessages'][_0x136039('0x16a7')],{'id':_0x4d61dc['id']}),_0x3fc2eb['chatWebsiteOfflineMessages'][_0x136039('0x148b')]-=0x1,!_0x3fc2eb[_0x136039('0x9ea')][_0x136039('0x16a7')][_0x136039('0x25ae')]&&_0x36e7b1(),_0x53a2f0[_0x136039('0x425')]({'title':_0x136039('0x1f8'),'msg':_0x4d61dc['name']?_0x4d61dc[_0x136039('0x2623')]+_0x136039('0x2182'):''});})[_0x2e6f50('0x223b')](function(_0x268e47){var _0xaf3049=_0x2e6f50;if(_0x268e47[_0xaf3049('0x11d0')]&&_0x268e47['data'][_0xaf3049('0xcd2')]&&_0x268e47[_0xaf3049('0x11d0')][_0xaf3049('0xcd2')]['length']){_0x3fc2eb[_0xaf3049('0xcd2')]=_0x268e47[_0xaf3049('0x11d0')][_0xaf3049('0xcd2')]||[{'message':_0x268e47['toString'](),'type':_0xaf3049('0x250a')}];for(var _0x4e7af4=0x0;_0x4e7af4<_0x268e47['data'][_0xaf3049('0xcd2')][_0xaf3049('0x25ae')];_0x4e7af4++){_0x53a2f0['error']({'title':_0x268e47[_0xaf3049('0x11d0')][_0xaf3049('0xcd2')][_0x4e7af4]['type'],'msg':_0x268e47[_0xaf3049('0x11d0')]['errors'][_0x4e7af4][_0xaf3049('0x27e8')]});}}else _0x53a2f0[_0xaf3049('0x8c8')]({'title':_0x268e47['status']?_0xaf3049('0x27f2')+_0x268e47[_0xaf3049('0x2833')]+'\x20-\x20'+_0x268e47[_0xaf3049('0x1fd7')]:_0xaf3049('0x250a'),'msg':_0x268e47[_0xaf3049('0x11d0')]?JSON[_0xaf3049('0x3ad')](_0x268e47[_0xaf3049('0x11d0')][_0xaf3049('0x27e8')]):_0x268e47['message']||_0x268e47[_0xaf3049('0x94f')]()});});}function _0x18be5c(){var _0x5730c9=_0x106f74,_0x4908d7=angular[_0x5730c9('0x89')](_0x3fc2eb[_0x5730c9('0x6d')]);return _0x3fc2eb[_0x5730c9('0x6d')]=[],_0x4908d7;}function _0x5a110e(_0x3c739e){var _0x4a1c65=_0x106f74,_0x5c954f=_0x276c08[_0x4a1c65('0xa5')]()[_0x4a1c65('0x13e4')](_0x4a1c65('0x1fbf'))['htmlContent'](_0x4a1c65('0xab2')+_0x3fc2eb[_0x4a1c65('0x6d')][_0x4a1c65('0x25ae')]+_0x4a1c65('0x5bc')+_0x4a1c65('0x21bd'))[_0x4a1c65('0x4d1')](_0x4a1c65('0x1471'))[_0x4a1c65('0x1345')](_0x3c739e)['ok']('OK')['cancel'](_0x4a1c65('0x17'));_0x276c08[_0x4a1c65('0x26b2')](_0x5c954f)[_0x4a1c65('0xe19')](function(){var _0x2793b3=_0x4a1c65;_0x3fc2eb[_0x2793b3('0x6d')][_0x2793b3('0x1d7e')](function(_0x3ec75b){_0x3fea52(_0x3ec75b);}),_0x3fc2eb[_0x2793b3('0x6d')]=[];});}var _0x3ed66c=!![],_0x1ed1b3=0x1;_0xc99317[_0x106f74('0x107')](_0x106f74('0x1607'),function(_0x27c514,_0x53c4c0){var _0x49140f=_0x106f74;_0x3ed66c?_0x42c596(function(){_0x3ed66c=![];}):(!_0x53c4c0&&(_0x1ed1b3=_0x3fc2eb[_0x49140f('0xa16')][_0x49140f('0xc08')]),_0x27c514!==_0x53c4c0&&(_0x3fc2eb[_0x49140f('0xa16')][_0x49140f('0xc08')]=0x1),!_0x27c514&&(_0x3fc2eb[_0x49140f('0xa16')][_0x49140f('0xc08')]=_0x1ed1b3),_0x36e7b1());});}const _0x25a6f1=_0x559700;_0x334f58['$inject']=[_0xb635d2('0x1c9f'),'message'];function _0x334f58(_0x4400a4,_0x4a1ce2){var _0x1b33e7=_0xb635d2,_0xf35228=this;_0xf35228[_0x1b33e7('0x13e4')]='CHAT.OFFLINE_MESSAGE',_0xf35228[_0x1b33e7('0x27e8')]=_0x4a1ce2,_0xf35228['closeDialog']=_0x480827;function _0x480827(_0x33340e){var _0x4ab6ed=_0x1b33e7;_0x4400a4[_0x4ab6ed('0x11ed')](_0x33340e);}}const _0x4783db=_0x334f58,_0x220dfa=_0x59426a['p']+_0xb635d2('0x198f');_0x223c7a[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),'$scope',_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),'$timeout','$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x223c7a(_0x146c57,_0x2d6afa,_0x1a89bf,_0x5940a7,_0x96226e,_0x366acd,_0x391168,_0x3bd41a,_0x56ad3b,_0x793d8b,_0x34a84b){var _0x17b31f=_0xb635d2,_0x439154=this;_0x439154[_0x17b31f('0x15a5')]=_0x34a84b[_0x17b31f('0x1ef8')](),_0x439154[_0x17b31f('0xcda')]={},_0x439154[_0x17b31f('0x993')]={'count':0x0,'rows':[]},_0x439154[_0x17b31f('0x6ce')]=[],_0x439154['crudPermissions'],_0x439154[_0x17b31f('0xa16')]={'fields':'createdAt,updatedAt,id,name,type,selector,timeout','limit':0xa,'page':0x1},_0x439154['arraytype']=_0x32d445()[_0x17b31f('0x226f')]([{'option':_0x17b31f('0x10c2'),'value':_0x17b31f('0x20d9')},{'option':_0x17b31f('0x784'),'value':_0x17b31f('0x10a6')}],function(_0x3dd027){var _0x335603=_0x17b31f;return _0x32d445()[_0x335603('0x1b42')](_0x3dd027['value'],new RegExp('\x27','g'),'');}),_0x439154[_0x17b31f('0x15f9')]=_0x3bdd4e,_0x439154[_0x17b31f('0x126c')]=_0x44f92b,_0x439154['success']=_0x43ae48,_0x439154[_0x17b31f('0x1dd8')]=_0x545879,_0x439154[_0x17b31f('0x1f64')]=_0x2cfd68,_0x439154[_0x17b31f('0xae1')]=_0x2f4a08,_0x439154[_0x17b31f('0xf23')]=_0x5b628a,_0x439154['deleteSelectedChatWebsiteProactiveActions']=_0x305a8a;function _0x3bdd4e(_0x19c7e5,_0x415fdf){var _0xf018d5=_0x17b31f;_0x439154[_0xf018d5('0xcda')]=_0x19c7e5,_0x439154[_0xf018d5('0xb3d')]=typeof _0x415fdf!=='undefined'?_0x415fdf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x439154['query'][_0xf018d5('0x365')]=_0x439154[_0xf018d5('0xcda')]['id'],_0x439154[_0xf018d5('0xa16')]['id']=_0x439154[_0xf018d5('0xcda')]['id'],_0x545879();}function _0x44f92b(_0x4afba1,_0x4a4458){var _0x218d36=_0x17b31f,_0x31f36b=_0x391168[_0x218d36('0xa5')]()[_0x218d36('0x13e4')](_0x218d36('0x5e0'))[_0x218d36('0x221c')](''+(_0x4afba1[_0x218d36('0x2623')]||_0x4afba1['id']&&_0x32d445()[_0x218d36('0x2077')](_0x218d36('0x1ca3'))+_0x4afba1['id']||_0x218d36('0xb40'))+_0x218d36('0x27bb')+_0x218d36('0x21bd'))[_0x218d36('0x4d1')]('delete\x20chatProactiveAction')[_0x218d36('0x1345')](_0x4a4458)['ok']('OK')[_0x218d36('0x2c1')]('CANCEL');_0x391168['show'](_0x31f36b)[_0x218d36('0xe19')](function(){_0x5b628a(_0x4afba1);},function(){var _0xf7716a=_0x218d36;console[_0xf7716a('0x1fe9')](_0xf7716a('0x17'));});}function _0x43ae48(_0x3383ba){var _0x2c2a98=_0x17b31f;_0x439154[_0x2c2a98('0x993')]=_0x3383ba||{'count':0x0,'rows':[]};}function _0x545879(){var _0x34a83c=_0x17b31f;_0x439154[_0x34a83c('0xa16')][_0x34a83c('0xab0')]=(_0x439154['query'][_0x34a83c('0xc08')]-0x1)*_0x439154['query'][_0x34a83c('0x1b6d')],_0x439154['promise']=_0x793d8b[_0x34a83c('0xcda')][_0x34a83c('0x1bcc')](_0x439154[_0x34a83c('0xa16')],_0x43ae48)[_0x34a83c('0xe59')];}function _0x2cfd68(_0x3b8f78,_0x1ea8c9){var _0x420599=_0x17b31f;_0x391168[_0x420599('0x26b2')]({'controller':_0x420599('0x1b2c'),'controllerAs':'vm','templateUrl':_0x220dfa,'parent':angular[_0x420599('0x24a1')](_0x3bd41a['body']),'targetEvent':_0x3b8f78,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x439154[_0x420599('0xcda')],'chatProactiveAction':_0x1ea8c9,'proactive':_0x439154[_0x420599('0x993')][_0x420599('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x439154['crudPermissions']}});}function _0x5b628a(_0x130e98){var _0x4f5d1b=_0x17b31f;_0x793d8b[_0x4f5d1b('0xb40')][_0x4f5d1b('0x229e')]({'id':_0x130e98['id']})[_0x4f5d1b('0xe59')]['then'](function(){var _0x32aa4b=_0x4f5d1b;_0x32d445()[_0x32aa4b('0xa8b')](_0x439154[_0x32aa4b('0x993')][_0x32aa4b('0x16a7')],{'id':_0x130e98['id']}),_0x439154[_0x32aa4b('0x993')][_0x32aa4b('0x148b')]-=0x1,!_0x439154[_0x32aa4b('0x993')]['rows'][_0x32aa4b('0x25ae')]&&_0x545879(),_0x56ad3b[_0x32aa4b('0x425')]({'title':_0x32aa4b('0x2122'),'msg':_0x130e98[_0x32aa4b('0x2623')]?_0x130e98[_0x32aa4b('0x2623')]+_0x32aa4b('0x2182'):''});})['catch'](function(_0xec6540){var _0x19929d=_0x4f5d1b;if(_0xec6540['data']&&_0xec6540[_0x19929d('0x11d0')]['errors']&&_0xec6540['data']['errors'][_0x19929d('0x25ae')]){_0x439154[_0x19929d('0xcd2')]=_0xec6540[_0x19929d('0x11d0')][_0x19929d('0xcd2')]||[{'message':_0xec6540['toString'](),'type':'SYSTEM:GETchatWebsite'}];for(var _0x218a74=0x0;_0x218a74<_0xec6540[_0x19929d('0x11d0')][_0x19929d('0xcd2')][_0x19929d('0x25ae')];_0x218a74++){_0x56ad3b[_0x19929d('0x8c8')]({'title':_0xec6540['data'][_0x19929d('0xcd2')][_0x218a74][_0x19929d('0x62e')],'msg':_0xec6540[_0x19929d('0x11d0')]['errors'][_0x218a74][_0x19929d('0x27e8')]});}}else _0x56ad3b[_0x19929d('0x8c8')]({'title':_0xec6540[_0x19929d('0x2833')]?_0x19929d('0x27f2')+_0xec6540['status']+_0x19929d('0x1b7c')+_0xec6540['statusText']:_0x19929d('0x250a'),'msg':_0xec6540[_0x19929d('0x11d0')]?JSON[_0x19929d('0x3ad')](_0xec6540[_0x19929d('0x11d0')][_0x19929d('0x27e8')]):_0xec6540[_0x19929d('0x27e8')]||_0xec6540[_0x19929d('0x94f')]()});});}function _0x2f4a08(){var _0x7b1f1=_0x17b31f,_0x4df8c8=angular[_0x7b1f1('0x89')](_0x439154[_0x7b1f1('0x6ce')]);return _0x439154[_0x7b1f1('0x6ce')]=[],_0x4df8c8;}function _0x305a8a(_0x11f5dc){var _0x240973=_0x17b31f,_0x5e0df2=_0x391168['confirm']()[_0x240973('0x13e4')](_0x240973('0x1c38'))['htmlContent'](''+_0x439154[_0x240973('0x6ce')]['length']+_0x240973('0x5bc')+_0x240973('0x21bd'))[_0x240973('0x4d1')](_0x240973('0x544'))[_0x240973('0x1345')](_0x11f5dc)['ok']('OK')['cancel'](_0x240973('0x17'));_0x391168['show'](_0x5e0df2)[_0x240973('0xe19')](function(){var _0x374b14=_0x240973;_0x439154[_0x374b14('0x6ce')][_0x374b14('0x1d7e')](function(_0x19fdbb){_0x5b628a(_0x19fdbb);}),_0x439154[_0x374b14('0x6ce')]=[];});}var _0x254f9e=!![],_0xe12f86=0x1;_0x2d6afa[_0x17b31f('0x107')](_0x17b31f('0x1607'),function(_0x33030c,_0x494f29){var _0x18a2a8=_0x17b31f;_0x254f9e?_0x366acd(function(){_0x254f9e=![];}):(!_0x494f29&&(_0xe12f86=_0x439154['query']['page']),_0x33030c!==_0x494f29&&(_0x439154[_0x18a2a8('0xa16')][_0x18a2a8('0xc08')]=0x1),!_0x33030c&&(_0x439154[_0x18a2a8('0xa16')][_0x18a2a8('0xc08')]=_0xe12f86),_0x545879());});}const _0x378050=_0x223c7a;_0x1c57c8['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'proactive',_0xb635d2('0xb40'),'api',_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x1c57c8(_0x2efc8d,_0x2aca67,_0x40aa12,_0x243355,_0x279308,_0x5cc493,_0x32ef79,_0x4c833b,_0x217904,_0x46853e,_0x2813f0,_0x50a253,_0x9b4d55,_0x4acd72){var _0x4881e9=_0xb635d2,_0x1bb5c8=this;_0x1bb5c8[_0x4881e9('0x15a5')]=_0x2813f0[_0x4881e9('0x1ef8')](),_0x1bb5c8[_0x4881e9('0xcd2')]=[],_0x1bb5c8['setting']=_0x9b4d55,_0x1bb5c8[_0x4881e9('0x5c1')]=_0x50a253,_0x1bb5c8[_0x4881e9('0xb3d')]=_0x4acd72,_0x1bb5c8[_0x4881e9('0x1ccb')]={},_0x1bb5c8[_0x4881e9('0x25ac')]=_0x1bb5c8['setting']&&_0x1bb5c8['setting'][_0x4881e9('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1bb5c8[_0x4881e9('0x13e4')]='CHAT.EDIT_CHATPROACTIVEACTION',_0x1bb5c8[_0x4881e9('0xb40')]=angular[_0x4881e9('0x89')](_0x217904),_0x1bb5c8[_0x4881e9('0x1d47')]=_0x4c833b,_0x1bb5c8['newChatProactiveAction']=![];!_0x1bb5c8[_0x4881e9('0xb40')]&&(_0x1bb5c8['chatProactiveAction']={'type':_0x4881e9('0x172a')},_0x1bb5c8['title']='CHAT.NEW_CHATPROACTIVEACTION',_0x1bb5c8[_0x4881e9('0x698')]=!![]);_0x2aca67[_0x4881e9('0x2ef')]['id']&&(_0x1bb5c8[_0x4881e9('0xb40')]['ChatWebsiteId']=_0x2aca67['params']['id']);_0x1bb5c8[_0x4881e9('0xc5')]=_0x226599,_0x1bb5c8[_0x4881e9('0x2457')]=_0x1263fa,_0x1bb5c8['deleteChatProactiveAction']=_0x3854d4,_0x1bb5c8[_0x4881e9('0x2635')]=_0x465e11,_0x1bb5c8['closeDialog']=_0x2a7325;function _0x226599(){var _0x27e494=_0x4881e9;_0x1bb5c8[_0x27e494('0xcd2')]=[],_0x46853e['chatProactiveAction'][_0x27e494('0xe5e')](_0x1bb5c8[_0x27e494('0xb40')])[_0x27e494('0xe59')][_0x27e494('0xe19')](function(_0x1878ea){var _0x50a5ce=_0x27e494;_0x1bb5c8[_0x50a5ce('0x1d47')][_0x50a5ce('0x14c9')](_0x1878ea[_0x50a5ce('0x250e')]()),_0x32ef79[_0x50a5ce('0x425')]({'title':_0x50a5ce('0x1722'),'msg':_0x1bb5c8[_0x50a5ce('0xb40')][_0x50a5ce('0x2623')]?_0x1bb5c8[_0x50a5ce('0xb40')][_0x50a5ce('0x2623')]+'\x20has\x20been\x20created!':''}),_0x2a7325(_0x1878ea);})['catch'](function(_0x23743f){var _0x1d0ffe=_0x27e494;if(_0x23743f[_0x1d0ffe('0x11d0')]&&_0x23743f[_0x1d0ffe('0x11d0')][_0x1d0ffe('0xcd2')]&&_0x23743f[_0x1d0ffe('0x11d0')]['errors'][_0x1d0ffe('0x25ae')]){_0x1bb5c8[_0x1d0ffe('0xcd2')]=_0x23743f[_0x1d0ffe('0x11d0')][_0x1d0ffe('0xcd2')]||[{'message':_0x23743f[_0x1d0ffe('0x94f')](),'type':_0x1d0ffe('0x2193')}];for(var _0x6cef2e=0x0;_0x6cef2e<_0x23743f[_0x1d0ffe('0x11d0')][_0x1d0ffe('0xcd2')][_0x1d0ffe('0x25ae')];_0x6cef2e+=0x1){_0x32ef79['error']({'title':_0x23743f[_0x1d0ffe('0x11d0')][_0x1d0ffe('0xcd2')][_0x6cef2e][_0x1d0ffe('0x62e')],'msg':_0x23743f[_0x1d0ffe('0x11d0')]['errors'][_0x6cef2e][_0x1d0ffe('0x27e8')]});}}else _0x32ef79[_0x1d0ffe('0x8c8')]({'title':_0x23743f[_0x1d0ffe('0x2833')]?'API:'+_0x23743f[_0x1d0ffe('0x2833')]+_0x1d0ffe('0x1b7c')+_0x23743f[_0x1d0ffe('0x1fd7')]:_0x1d0ffe('0x2193'),'msg':_0x23743f[_0x1d0ffe('0x11d0')]?JSON[_0x1d0ffe('0x3ad')](_0x23743f[_0x1d0ffe('0x11d0')][_0x1d0ffe('0x27e8')]):_0x23743f[_0x1d0ffe('0x94f')]()});});}function _0x1263fa(){var _0x2fe868=_0x4881e9;_0x1bb5c8[_0x2fe868('0xcd2')]=[],_0x46853e[_0x2fe868('0xb40')]['update']({'id':_0x1bb5c8[_0x2fe868('0xb40')]['id']},_0x1bb5c8['chatProactiveAction'])[_0x2fe868('0xe59')][_0x2fe868('0xe19')](function(_0x58f0fc){var _0x2fd807=_0x2fe868,_0x5819d4=_0x32d445()['find'](_0x1bb5c8[_0x2fd807('0x1d47')],{'id':_0x58f0fc['id']});_0x5819d4&&_0x32d445()[_0x2fd807('0x1d8')](_0x5819d4,_0x32d445()[_0x2fd807('0xed5')](_0x58f0fc[_0x2fd807('0x250e')](),_0x32d445()['keys'](_0x5819d4))),_0x32ef79['success']({'title':'ChatProactiveAction\x20properly\x20saved!','msg':_0x1bb5c8[_0x2fd807('0xb40')][_0x2fd807('0x2623')]?_0x1bb5c8[_0x2fd807('0xb40')]['name']+'\x20has\x20been\x20saved!':''}),_0x2a7325(_0x58f0fc);})[_0x2fe868('0x223b')](function(_0x3a449f){var _0x4087d7=_0x2fe868;if(_0x3a449f[_0x4087d7('0x11d0')]&&_0x3a449f[_0x4087d7('0x11d0')][_0x4087d7('0xcd2')]&&_0x3a449f[_0x4087d7('0x11d0')][_0x4087d7('0xcd2')][_0x4087d7('0x25ae')]){_0x1bb5c8[_0x4087d7('0xcd2')]=_0x3a449f['data'][_0x4087d7('0xcd2')]||[{'message':_0x3a449f[_0x4087d7('0x94f')](),'type':_0x4087d7('0x218e')}];for(var _0x1a0f5a=0x0;_0x1a0f5a<_0x3a449f[_0x4087d7('0x11d0')][_0x4087d7('0xcd2')][_0x4087d7('0x25ae')];_0x1a0f5a++){_0x32ef79[_0x4087d7('0x8c8')]({'title':_0x3a449f[_0x4087d7('0x11d0')][_0x4087d7('0xcd2')][_0x1a0f5a]['type'],'msg':_0x3a449f[_0x4087d7('0x11d0')][_0x4087d7('0xcd2')][_0x1a0f5a]['message']});}}else _0x32ef79[_0x4087d7('0x8c8')]({'title':_0x3a449f[_0x4087d7('0x2833')]?_0x4087d7('0x27f2')+_0x3a449f['status']+_0x4087d7('0x1b7c')+_0x3a449f['statusText']:_0x4087d7('0x218e'),'msg':_0x3a449f[_0x4087d7('0x11d0')]?JSON['stringify'](_0x3a449f[_0x4087d7('0x11d0')][_0x4087d7('0x27e8')]):_0x3a449f[_0x4087d7('0x94f')]()});});}function _0x3854d4(_0x1b551f){var _0x8d6461=_0x4881e9;_0x1bb5c8[_0x8d6461('0xcd2')]=[];var _0x5ab5f8=_0x243355[_0x8d6461('0xa5')]()['title'](_0x8d6461('0x24d0'))[_0x8d6461('0xd0')](_0x8d6461('0x1fb'))[_0x8d6461('0x4d1')]('Delete\x20ChatProactiveAction')['ok']('Delete')[_0x8d6461('0x2c1')](_0x8d6461('0x8a3'))[_0x8d6461('0x1345')](_0x1b551f);_0x243355[_0x8d6461('0x26b2')](_0x5ab5f8)[_0x8d6461('0xe19')](function(){var _0x53d641=_0x8d6461;_0x46853e[_0x53d641('0xb40')][_0x53d641('0x229e')]({'id':_0x1bb5c8[_0x53d641('0xb40')]['id']})[_0x53d641('0xe59')][_0x53d641('0xe19')](function(){var _0x49b4dd=_0x53d641;_0x32d445()[_0x49b4dd('0xa8b')](_0x1bb5c8['proactive'],{'id':_0x1bb5c8['chatProactiveAction']['id']}),_0x32ef79['success']({'title':_0x49b4dd('0x1a02'),'msg':(_0x1bb5c8[_0x49b4dd('0xb40')][_0x49b4dd('0x2623')]||'chatProactiveAction')+_0x49b4dd('0x2182')}),_0x2a7325(_0x1bb5c8[_0x49b4dd('0xb40')]);})[_0x53d641('0x223b')](function(_0xbc92ad){var _0x13ba28=_0x53d641;if(_0xbc92ad[_0x13ba28('0x11d0')]&&_0xbc92ad[_0x13ba28('0x11d0')][_0x13ba28('0xcd2')]&&_0xbc92ad[_0x13ba28('0x11d0')][_0x13ba28('0xcd2')][_0x13ba28('0x25ae')]){_0x1bb5c8[_0x13ba28('0xcd2')]=_0xbc92ad['data'][_0x13ba28('0xcd2')]||[{'message':_0xbc92ad[_0x13ba28('0x94f')](),'type':_0x13ba28('0x1290')}];for(var _0x36b7fc=0x0;_0x36b7fc<_0xbc92ad[_0x13ba28('0x11d0')][_0x13ba28('0xcd2')][_0x13ba28('0x25ae')];_0x36b7fc++){_0x32ef79[_0x13ba28('0x8c8')]({'title':_0xbc92ad[_0x13ba28('0x11d0')][_0x13ba28('0xcd2')][_0x36b7fc][_0x13ba28('0x62e')],'msg':_0xbc92ad[_0x13ba28('0x11d0')][_0x13ba28('0xcd2')][_0x36b7fc][_0x13ba28('0x27e8')]});}}else _0x32ef79[_0x13ba28('0x8c8')]({'title':_0xbc92ad[_0x13ba28('0x2833')]?_0x13ba28('0x27f2')+_0xbc92ad[_0x13ba28('0x2833')]+_0x13ba28('0x1b7c')+_0xbc92ad['statusText']:_0x13ba28('0x1290'),'msg':_0xbc92ad[_0x13ba28('0x11d0')]?JSON[_0x13ba28('0x3ad')](_0xbc92ad[_0x13ba28('0x11d0')]['message']):_0xbc92ad[_0x13ba28('0x27e8')]||_0xbc92ad[_0x13ba28('0x94f')]()});});},function(){});}function _0x465e11(_0xaec9dd){return _0xaec9dd===null?undefined:new Date(_0xaec9dd);}function _0x2a7325(_0x2ad04d){var _0x526e95=_0x4881e9;_0x243355[_0x526e95('0x11ed')](_0x2ad04d);}}const _0x2f5baf=_0x1c57c8;_0x218257[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c')];function _0x218257(_0x1d9f17){var _0x4c8481=_0xb635d2,_0x189725=this;_0x189725['chatWebsite']={},_0x189725[_0x4c8481('0x15f9')]=_0x23d613,_0x189725[_0x4c8481('0x1e67')]={};function _0x23d613(_0x423bc8){var _0x3349d0=_0x4c8481;_0x189725[_0x3349d0('0xcda')]=_0x423bc8,_0x189725[_0x3349d0('0x157d')]=_0x3349d0('0x469'),_0x189725[_0x3349d0('0x1244')]=_0x3349d0('0x26df')+_0x189725[_0x3349d0('0xcda')]['remote']+_0x3349d0('0x4b9')+_0x189725['chatWebsite']['id']+'/snippet?token='+_0x189725[_0x3349d0('0xcda')][_0x3349d0('0x1fbd')]+_0x3349d0('0x15a4'),_0x189725[_0x3349d0('0x1658')]=_0x3349d0('0x469');}_0x1d9f17[_0x4c8481('0x107')]('vm_ac.chatWebsite.remote',function(){var _0x377dce=_0x4c8481;_0x189725[_0x377dce('0x1244')]='\x0a\x20\x20\x20\x20_0x1bf296)return _0x55f83f[_0x5bdc20('0x8c8')]({'title':'File\x20too\x20big','msg':_0x5bdc20('0x275f')+_0xdf7a7c+'MB'}),![];var _0x134ec6={'id':_0x55625c[_0x5bdc20('0x164e')],'file':_0x55625c,'type':'uploading'};return _0x169572[_0x5bdc20('0xcda')][_0x5bdc20('0x22b8')][_0x5bdc20('0x14c9')](_0x134ec6),!![];}function _0x4edce2(){var _0x1019c2=_0x3e4a8d;_0x169572['ngFlow'][_0x1019c2('0x206b')][_0x1019c2('0x5ec')]['headers']={'X-Requested-With':_0x1019c2('0xdf4'),'Authorization':_0x1019c2('0x17b7')+_0x1ca15e[_0x1019c2('0x22d5')](_0x1019c2('0x511'))},_0x169572['ngFlow'][_0x1019c2('0x206b')][_0x1019c2('0x20')]();}function _0x49a27e(_0x2dd3f1){var _0x1625b=_0x3e4a8d;angular[_0x1625b('0x1d7e')](_0x169572[_0x1625b('0xcda')]['images'],function(_0xadba4e){var _0x329a02=_0x1625b;if(_0xadba4e['id']===_0x2dd3f1[_0x329a02('0x164e')]){var _0x91a675=new FileReader();_0x91a675[_0x329a02('0x845')](_0xadba4e[_0x329a02('0x2c0')][_0x329a02('0x2c0')]),_0x91a675[_0x329a02('0x1d94')]=function(_0x148557){var _0xdfda69=_0x329a02;_0xadba4e[_0xdfda69('0x2647')]=_0x148557['target'][_0xdfda69('0x2048')];},_0xadba4e[_0x329a02('0x62e')]=_0x329a02('0x16af');}});}}const _0x5defb5=_0xee5862;_0x2d7c78[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$translate',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0xcda'),_0xb635d2('0xb59')];function _0x2d7c78(_0x28f254,_0x245996,_0x37393b,_0x591de5,_0x21f549,_0x4e6276,_0x405f27,_0x4ec5e8,_0x3f179b,_0x26f414,_0x180650,_0x4afa0d){var _0x1052c2=_0xb635d2,_0x5fba55=this;_0x5fba55[_0x1052c2('0x15a5')]=_0x26f414[_0x1052c2('0x1ef8')](),_0x5fba55['license']=_0x4e6276,_0x5fba55[_0x1052c2('0x22f1')]=_0x405f27,_0x5fba55[_0x1052c2('0x25ac')]=_0x5fba55[_0x1052c2('0x22f1')][_0x1052c2('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5fba55[_0x1052c2('0x2170')]=_0x245996[_0x1052c2('0xec0')]()+'://'+_0x245996[_0x1052c2('0x3b7')](),_0x5fba55[_0x1052c2('0xcda')]=_0x180650||_0x28f254['params'][_0x1052c2('0xcda')]||{},_0x5fba55[_0x1052c2('0xb59')]=_0x4afa0d&&_0x4afa0d[_0x1052c2('0x148b')]==0x1?_0x4afa0d[_0x1052c2('0x16a7')][0x0]:null,_0x5fba55[_0x1052c2('0xb3d')]=_0x26f414[_0x1052c2('0xd31')](_0x5fba55[_0x1052c2('0xb59')]?_0x5fba55['userProfileSection'][_0x1052c2('0xb3d')]:null),_0x5fba55['hasModulePermissions']={},_0x5fba55[_0x1052c2('0xc7b')]=_0x28f254[_0x1052c2('0x2ef')][_0x1052c2('0x435')]||0x0,_0x5fba55['agentadddialog']=_0x2f65dc,_0x5fba55[_0x1052c2('0xbdc')]=_0x3f179b[_0x1052c2('0x1e67')],_0x5fba55[_0x1052c2('0x1c79')]=_0x37a752,_0x5fba55['saveChatWebsite']=_0x45fde0,_0x26f414[_0x1052c2('0x179e')](_0x1052c2('0xd14'))?_0x4ec5e8['cmList'][_0x1052c2('0x22d5')]({'fields':_0x1052c2('0x104'),'sort':_0x1052c2('0x2623')})['$promise'][_0x1052c2('0xe19')](function(_0x8c2210){var _0x5e5121=_0x1052c2;_0x5fba55['lists']=_0x8c2210[_0x5e5121('0x16a7')]||[];})[_0x1052c2('0x223b')](function(_0x388097){var _0x42c6f7=_0x1052c2;_0x3f179b[_0x42c6f7('0x8c8')]({'title':_0x388097[_0x42c6f7('0x2833')]?_0x42c6f7('0x27f2')+_0x388097[_0x42c6f7('0x2833')]+_0x42c6f7('0x1b7c')+_0x388097[_0x42c6f7('0x1fd7')]:_0x42c6f7('0x2012'),'msg':_0x388097[_0x42c6f7('0x11d0')]?JSON[_0x42c6f7('0x3ad')](_0x388097[_0x42c6f7('0x11d0')]):_0x388097[_0x42c6f7('0x94f')]()});}):_0x4ec5e8['cmList']['get']({'fields':'id,name','sort':_0x1052c2('0x2623')})[_0x1052c2('0xe59')][_0x1052c2('0xe19')](function(_0xaedfef){var _0x31ea0a=_0x1052c2;_0x5fba55[_0x31ea0a('0x9f8')]=_0xaedfef[_0x31ea0a('0x16a7')]||[];})['then'](function(){var _0x36d234=_0x1052c2;return _0x4ec5e8['userProfileSection'][_0x36d234('0x22d5')]({'userProfileId':_0x5fba55[_0x36d234('0x15a5')]['userProfileId'],'sectionId':0x12d})[_0x36d234('0xe59')];})['then'](function(_0x155b52){var _0x88bc4a=_0x1052c2,_0x5d056b=_0x155b52&&_0x155b52[_0x88bc4a('0x16a7')]?_0x155b52[_0x88bc4a('0x16a7')][0x0]:null;if(!_0x5d056b){var _0x4a80d5=[],_0x68e53c=null;_0x5fba55[_0x88bc4a('0xcda')]&&(_0x68e53c=_0x32d445()[_0x88bc4a('0xf15')](_0x5fba55['lists'],{'id':Number(_0x5fba55[_0x88bc4a('0xcda')][_0x88bc4a('0x2463')])}));for(var _0x5f5c8b=0x0;_0x5f5c8b<_0x5fba55[_0x88bc4a('0x9f8')][_0x88bc4a('0x25ae')];_0x5f5c8b++){_0x68e53c&&_0x5fba55[_0x88bc4a('0x9f8')][_0x5f5c8b]['id']===_0x68e53c['id']&&(_0x5fba55[_0x88bc4a('0x9f8')][_0x5f5c8b][_0x88bc4a('0x1e9d')]=![],_0x4a80d5[_0x88bc4a('0xb76')](_0x5fba55['lists'][_0x5f5c8b]));}_0x5fba55[_0x88bc4a('0x9f8')]=_0x4a80d5;}else{if(!_0x5d056b['autoAssociation'])return _0x4ec5e8['userProfileResource'][_0x88bc4a('0x22d5')]({'sectionId':_0x5d056b['id']})[_0x88bc4a('0xe59')][_0x88bc4a('0xe19')](function(_0x52810e){var _0x48d86f=_0x88bc4a,_0x437283=_0x32d445()[_0x48d86f('0x65a')](_0x52810e[_0x48d86f('0x16a7')],function(_0x41e82e){var _0x3034ce=_0x48d86f;return _0x32d445()[_0x3034ce('0xf15')](_0x5fba55[_0x3034ce('0x9f8')],{'id':_0x41e82e[_0x3034ce('0x1104')]});}),_0x258343=null;_0x5fba55[_0x48d86f('0xcda')]&&(_0x258343=_0x32d445()[_0x48d86f('0xf15')](_0x5fba55[_0x48d86f('0x9f8')],{'id':Number(_0x5fba55['chatWebsite'][_0x48d86f('0x2463')])}));if(_0x258343&&!_0x32d445()[_0x48d86f('0x201a')](_0x437283,['id',_0x258343['id']])){var _0xdf1344=_0x32d445()[_0x48d86f('0xf15')](_0x5fba55['lists'],{'id':_0x258343['id']});_0xdf1344[_0x48d86f('0x1e9d')]=![],_0x437283[_0x48d86f('0xb76')](_0xdf1344);}_0x5fba55[_0x48d86f('0x9f8')]=_0x437283;});}})[_0x1052c2('0x223b')](function(_0x1d1465){var _0x38fea9=_0x1052c2;_0x3f179b[_0x38fea9('0x8c8')]({'title':_0x1d1465['status']?_0x38fea9('0x27f2')+_0x1d1465[_0x38fea9('0x2833')]+_0x38fea9('0x1b7c')+_0x1d1465['statusText']:'SYSTEM:GETlists','msg':_0x1d1465[_0x38fea9('0x11d0')]?JSON[_0x38fea9('0x3ad')](_0x1d1465[_0x38fea9('0x11d0')]):_0x1d1465[_0x38fea9('0x94f')]()});}),_0x26f414[_0x1052c2('0x179e')](_0x1052c2('0xd14'))?_0x4ec5e8[_0x1052c2('0x134c')][_0x1052c2('0x22d5')]({'fields':_0x1052c2('0x104'),'sort':'name','IntervalId':'null'})[_0x1052c2('0xe59')][_0x1052c2('0xe19')](function(_0x35f1a7){var _0xb0c8c7=_0x1052c2;_0x5fba55[_0xb0c8c7('0x134c')]=_0x35f1a7[_0xb0c8c7('0x16a7')]||[];})[_0x1052c2('0x223b')](function(_0x159af5){var _0x8dec6b=_0x1052c2;_0x3f179b[_0x8dec6b('0x8c8')]({'title':_0x159af5[_0x8dec6b('0x2833')]?_0x8dec6b('0x27f2')+_0x159af5[_0x8dec6b('0x2833')]+_0x8dec6b('0x1b7c')+_0x159af5[_0x8dec6b('0x1fd7')]:_0x8dec6b('0xb51'),'msg':_0x159af5[_0x8dec6b('0x11d0')]?JSON[_0x8dec6b('0x3ad')](_0x159af5[_0x8dec6b('0x11d0')]):_0x159af5[_0x8dec6b('0x94f')]()});}):_0x4ec5e8[_0x1052c2('0x134c')][_0x1052c2('0x22d5')]({'fields':_0x1052c2('0x104'),'sort':_0x1052c2('0x2623'),'IntervalId':_0x1052c2('0x1046')})[_0x1052c2('0xe59')][_0x1052c2('0xe19')](function(_0x35aa85){var _0x6fb69a=_0x1052c2;_0x5fba55['interval']=_0x35aa85[_0x6fb69a('0x16a7')]||[];})[_0x1052c2('0xe19')](function(){var _0x5b3a1e=_0x1052c2;return _0x4ec5e8[_0x5b3a1e('0xb59')][_0x5b3a1e('0x22d5')]({'userProfileId':_0x5fba55[_0x5b3a1e('0x15a5')][_0x5b3a1e('0x1d04')],'sectionId':0x3ec})[_0x5b3a1e('0xe59')];})[_0x1052c2('0xe19')](function(_0x131983){var _0x293eb5=_0x1052c2,_0x116f95=_0x131983&&_0x131983['rows']?_0x131983[_0x293eb5('0x16a7')][0x0]:null;if(!_0x116f95){var _0x5e21d3=[],_0x1305c0=null;_0x5fba55[_0x293eb5('0xcda')]&&(_0x1305c0=_0x32d445()[_0x293eb5('0xf15')](_0x5fba55[_0x293eb5('0x134c')],{'id':Number(_0x5fba55[_0x293eb5('0xcda')][_0x293eb5('0x1fc1')])}));for(var _0x586cf2=0x0;_0x586cf2<_0x5fba55[_0x293eb5('0x134c')]['length'];_0x586cf2++){_0x1305c0&&_0x5fba55[_0x293eb5('0x134c')][_0x586cf2]['id']===_0x1305c0['id']&&(_0x5fba55['interval'][_0x586cf2][_0x293eb5('0x1e9d')]=![],_0x5e21d3['push'](_0x5fba55[_0x293eb5('0x134c')][_0x586cf2]));}_0x5fba55[_0x293eb5('0x134c')]=_0x5e21d3;}else{if(!_0x116f95[_0x293eb5('0x11fd')])return _0x4ec5e8[_0x293eb5('0xd49')][_0x293eb5('0x22d5')]({'sectionId':_0x116f95['id']})[_0x293eb5('0xe59')][_0x293eb5('0xe19')](function(_0x52d44e){var _0x20e705=_0x293eb5,_0x1e70f6=_0x32d445()[_0x20e705('0x65a')](_0x52d44e[_0x20e705('0x16a7')],function(_0x116453){var _0xb9eae5=_0x20e705;return _0x32d445()[_0xb9eae5('0xf15')](_0x5fba55[_0xb9eae5('0x134c')],{'id':_0x116453['resourceId']});}),_0x2f8361=null;_0x5fba55[_0x20e705('0xcda')]&&(_0x2f8361=_0x32d445()[_0x20e705('0xf15')](_0x5fba55[_0x20e705('0x134c')],{'id':Number(_0x5fba55[_0x20e705('0xcda')][_0x20e705('0x1fc1')])}));if(_0x2f8361&&!_0x32d445()[_0x20e705('0x201a')](_0x1e70f6,['id',_0x2f8361['id']])){var _0x520d61=_0x32d445()[_0x20e705('0xf15')](_0x5fba55['interval'],{'id':_0x2f8361['id']});_0x520d61['canSelect']=![],_0x1e70f6[_0x20e705('0xb76')](_0x520d61);}_0x5fba55[_0x20e705('0x134c')]=_0x1e70f6;});}})[_0x1052c2('0x223b')](function(_0x4ec16f){var _0x53079f=_0x1052c2;_0x3f179b[_0x53079f('0x8c8')]({'title':_0x4ec16f[_0x53079f('0x2833')]?_0x53079f('0x27f2')+_0x4ec16f[_0x53079f('0x2833')]+_0x53079f('0x1b7c')+_0x4ec16f['statusText']:_0x53079f('0x2051'),'msg':_0x4ec16f['data']?JSON[_0x53079f('0x3ad')](_0x4ec16f[_0x53079f('0x11d0')]):_0x4ec16f[_0x53079f('0x94f')]()});}),_0x26f414['hasRole'](_0x1052c2('0xd14'))?_0x4ec5e8[_0x1052c2('0x1c98')][_0x1052c2('0x22d5')]({'fields':_0x1052c2('0x1b75'),'sort':_0x1052c2('0x2623'),'nolimit':'true'})[_0x1052c2('0xe59')]['then'](function(_0x2fe987){var _0x76cf1e=_0x1052c2;_0x5fba55[_0x76cf1e('0x145e')]=_0x2fe987[_0x76cf1e('0x16a7')]||[];})[_0x1052c2('0x223b')](function(_0x41fef5){var _0x4520bc=_0x1052c2;_0x3f179b[_0x4520bc('0x8c8')]({'title':_0x41fef5[_0x4520bc('0x2833')]?_0x4520bc('0x27f2')+_0x41fef5['status']+_0x4520bc('0x1b7c')+_0x41fef5[_0x4520bc('0x1fd7')]:_0x4520bc('0x20ea'),'msg':_0x41fef5[_0x4520bc('0x11d0')]?JSON[_0x4520bc('0x3ad')](_0x41fef5['data']):_0x41fef5['toString']()});}):_0x4ec5e8[_0x1052c2('0x1c98')][_0x1052c2('0x22d5')]({'fields':_0x1052c2('0x1b75'),'sort':_0x1052c2('0x2623'),'nolimit':_0x1052c2('0x2206')})['$promise']['then'](function(_0x2d476a){var _0x4f33c5=_0x1052c2;_0x5fba55[_0x4f33c5('0x145e')]=_0x2d476a[_0x4f33c5('0x16a7')]||[];})[_0x1052c2('0xe19')](function(){var _0x376172=_0x1052c2;return _0x4ec5e8[_0x376172('0xb59')]['get']({'userProfileId':_0x5fba55[_0x376172('0x15a5')][_0x376172('0x1d04')],'sectionId':0x3ed})['$promise'];})['then'](function(_0x3196c1){var _0x4a9ef2=_0x1052c2,_0x359282=_0x3196c1&&_0x3196c1[_0x4a9ef2('0x16a7')]?_0x3196c1[_0x4a9ef2('0x16a7')][0x0]:null;if(!_0x359282)_0x5fba55[_0x4a9ef2('0x145e')]=[];else{if(!_0x359282[_0x4a9ef2('0x11fd')])return _0x4ec5e8['userProfileResource'][_0x4a9ef2('0x22d5')]({'sectionId':_0x359282['id']})['$promise']['then'](function(_0x45b2cd){var _0x588b2a=_0x4a9ef2,_0x3ccdf0=_0x32d445()[_0x588b2a('0x65a')](_0x45b2cd[_0x588b2a('0x16a7')],function(_0x16412e){var _0xbab4dc=_0x588b2a;return _0x32d445()['find'](_0x5fba55[_0xbab4dc('0x145e')],{'id':_0x16412e['resourceId']});});_0x5fba55[_0x588b2a('0x145e')][_0x588b2a('0x1d7e')](function(_0x4727fe){var _0x9df3d6=_0x588b2a;!_0x32d445()[_0x9df3d6('0x201a')](_0x3ccdf0,['id',_0x4727fe['id']])&&(_0x4727fe[_0x9df3d6('0x1e9d')]=![]),_0x3ccdf0[_0x9df3d6('0xb76')](_0x4727fe);}),_0x5fba55['pauses']=_0x3ccdf0;});}})['catch'](function(_0x599a54){var _0x15ff64=_0x1052c2;_0x3f179b[_0x15ff64('0x8c8')]({'title':_0x599a54[_0x15ff64('0x2833')]?'API:'+_0x599a54[_0x15ff64('0x2833')]+_0x15ff64('0x1b7c')+_0x599a54[_0x15ff64('0x1fd7')]:_0x15ff64('0x1da6'),'msg':_0x599a54[_0x15ff64('0x11d0')]?JSON[_0x15ff64('0x3ad')](_0x599a54['data']):_0x599a54['toString']()});});function _0x2f65dc(_0x366c22,_0x3312c0){var _0x54b718=_0x1052c2;_0x37393b[_0x54b718('0x26b2')]({'controller':_0x54b718('0x251'),'controllerAs':'vm','templateUrl':_0x3b8c1b,'parent':angular[_0x54b718('0x24a1')](_0x591de5[_0x54b718('0x19b2')]),'targetEvent':_0x3312c0,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x366c22,'chatWebsites':_0x5fba55[_0x54b718('0x174')]?_0x5fba55[_0x54b718('0x174')][_0x54b718('0x16a7')]:[],'crudPermissions':_0x5fba55[_0x54b718('0xb3d')],'realtime':![]}});}function _0x37a752(){var _0x3b4a8d=_0x1052c2;_0x28f254['go'](_0x3b4a8d('0x1c0e'),{},{'reload':_0x3b4a8d('0x1c0e')});}function _0x45fde0(){var _0x245bbc=_0x1052c2;_0x4ec5e8[_0x245bbc('0xcda')][_0x245bbc('0xa70')]({'id':_0x5fba55[_0x245bbc('0xcda')]['id']},_0x5fba55['chatWebsite'])[_0x245bbc('0xe59')][_0x245bbc('0xe19')](function(){var _0xb0e52b=_0x245bbc;_0x3f179b[_0xb0e52b('0x425')]({'title':_0xb0e52b('0x2481'),'msg':_0x5fba55[_0xb0e52b('0xcda')][_0xb0e52b('0x2623')]?_0x5fba55['chatWebsite'][_0xb0e52b('0x2623')]+'\x20has\x20been\x20updated!':''});})[_0x245bbc('0x223b')](function(_0x1f04d9){var _0x1535a8=_0x245bbc;_0x3f179b['error']({'title':_0x1f04d9[_0x1535a8('0x2833')]?'API:'+_0x1f04d9[_0x1535a8('0x2833')]+_0x1535a8('0x1b7c')+_0x1f04d9[_0x1535a8('0x1fd7')]:'SYSTEM:GETchatWebsite','msg':_0x1f04d9[_0x1535a8('0x11d0')]?JSON[_0x1535a8('0x3ad')](_0x1f04d9[_0x1535a8('0x11d0')]):_0x1f04d9[_0x1535a8('0x94f')]()});});}}const _0x38ff2c=_0x2d7c78;_0x1badc6[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x1badc6(_0x112dd9,_0x3ae357){var _0x25b213=_0xb635d2;_0x112dd9[_0x25b213('0x1d72')](_0x25b213('0x1651'),{'abstract':!![],'url':_0x25b213('0x1688')})[_0x25b213('0x1d72')]('app.chat.chatQueues',{'url':_0x25b213('0xfbd'),'views':{'content@app':{'templateUrl':_0x3565cd,'controller':'ChatQueuesController\x20as\x20vm'}},'resolve':{'chatQueues':[_0x25b213('0x292'),_0x25b213('0x2730'),function _0x2b9853(_0x49eefa,_0x3ed1e9){var _0x29b48f=_0x25b213;return _0x3ed1e9[_0x29b48f('0x179e')](_0x29b48f('0xd14'))?_0x49eefa[_0x29b48f('0xcd6')](_0x29b48f('0xd50'),{'fields':_0x29b48f('0x1bd'),'sort':'-updatedAt','channel':'chat','limit':0xa,'offset':0x0}):_0x49eefa['resolve'](_0x29b48f('0x197d'),{'id':_0x3ed1e9['getCurrentUser']()[_0x29b48f('0x1d04')],'section':_0x29b48f('0x17c2'),'fields':_0x29b48f('0x1bd'),'sort':'-updatedAt','channel':'chat','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x25b213('0x2730'),function _0x26be0a(_0x45e1e2,_0x56d0c3){var _0x1e2407=_0x25b213;return _0x56d0c3[_0x1e2407('0x179e')](_0x1e2407('0xd14'))?null:_0x45e1e2[_0x1e2407('0xcd6')](_0x1e2407('0x455'),{'fields':_0x1e2407('0x1b71'),'id':_0x56d0c3['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function _0x55a226(_0x4262e2,_0x53f459){var _0x5e793c=_0x25b213;return _0x53f459['hasRole'](_0x5e793c('0xd14'))?null:_0x4262e2[_0x5e793c('0xcd6')](_0x5e793c('0x264e'),{'fields':_0x5e793c('0x12d6'),'userProfileId':_0x53f459[_0x5e793c('0x1ef8')]()[_0x5e793c('0x1d04')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x25b213('0x17cc')})[_0x25b213('0x1d72')](_0x25b213('0xe30'),{'url':'/:id?tab','params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x28084a,'controller':_0x25b213('0x1c69')}},'resolve':{'chatQueue':['apiResolver',_0x25b213('0x34'),function _0x153a43(_0x2e02cf,_0xdd352f){var _0x5430dc=_0x25b213;return _0x2e02cf['resolve'](_0x5430dc('0xd50'),{'fields':_0x5430dc('0x1bd'),'id':_0xdd352f['id']});}],'userProfileSection':[_0x25b213('0x292'),_0x25b213('0x2730'),function _0x2a7470(_0x592597,_0x9190f5){var _0x332436=_0x25b213;return _0x592597[_0x332436('0xcd6')](_0x332436('0x264e'),{'fields':_0x332436('0x12d6'),'userProfileId':_0x9190f5[_0x332436('0x1ef8')]()[_0x332436('0x1d04')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x25b213('0x17cc')})[_0x25b213('0x1d72')](_0x25b213('0x1c0e'),{'url':'/chatWebsites','views':{'content@app':{'templateUrl':_0xde9c6a,'controller':_0x25b213('0x1ebf')}},'resolve':{'chatWebsites':[_0x25b213('0x292'),_0x25b213('0x2730'),function _0x28ffbc(_0x57b026,_0x408c67){var _0x9c7f70=_0x25b213;return _0x408c67['hasRole'](_0x9c7f70('0xd14'))?_0x57b026[_0x9c7f70('0xcd6')]('chatWebsite@get',{'fields':'createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x57b026['resolve'](_0x9c7f70('0x197d'),{'id':_0x408c67['getCurrentUser']()[_0x9c7f70('0x1d04')],'section':_0x9c7f70('0x1331'),'fields':_0x9c7f70('0x189a'),'sort':_0x9c7f70('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x25b213('0x292'),'Auth',function _0x5b954f(_0x1f3d4a,_0xa81aa7){var _0x4b32fc=_0x25b213;return _0xa81aa7['hasRole'](_0x4b32fc('0xd14'))?null:_0x1f3d4a[_0x4b32fc('0xcd6')](_0x4b32fc('0x455'),{'fields':_0x4b32fc('0x1b71'),'id':_0xa81aa7[_0x4b32fc('0x1ef8')]()[_0x4b32fc('0x1d04')]});}],'userProfileSection':[_0x25b213('0x292'),_0x25b213('0x2730'),function _0x251224(_0x4916b7,_0xb8f0fe){var _0x2cf498=_0x25b213;return _0xb8f0fe[_0x2cf498('0x179e')](_0x2cf498('0xd14'))?null:_0x4916b7[_0x2cf498('0xcd6')](_0x2cf498('0x264e'),{'fields':_0x2cf498('0x12d6'),'userProfileId':_0xb8f0fe['getCurrentUser']()[_0x2cf498('0x1d04')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x25b213('0x17cc')})[_0x25b213('0x1d72')](_0x25b213('0x1e1e'),{'url':'/:id?tab','params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2eda21,'controller':_0x25b213('0x1d8c')}},'resolve':{'chatWebsite':[_0x25b213('0x292'),_0x25b213('0x34'),function _0x56b422(_0x4d9f0e,_0x2dcb61){var _0x20224c=_0x25b213;return _0x4d9f0e[_0x20224c('0xcd6')](_0x20224c('0xa00'),{'fields':_0x20224c('0x189a'),'id':_0x2dcb61['id']});}],'userProfileSection':[_0x25b213('0x292'),_0x25b213('0x2730'),function _0xceebf8(_0x4bdfb3,_0x471bc2){var _0x202c32=_0x25b213;return _0x4bdfb3[_0x202c32('0xcd6')](_0x202c32('0x264e'),{'fields':_0x202c32('0x12d6'),'userProfileId':_0x471bc2[_0x202c32('0x1ef8')]()[_0x202c32('0x1d04')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x25b213('0x17cc')}),_0x3ae357[_0x25b213('0xfe3')]('app/main/apps/chat');}angular[_0xb635d2('0x153f')](_0xb635d2('0x1651'),[_0xb635d2('0x569'),_0xb635d2('0x24b'),'md.data.table',_0xb635d2('0x206b'),_0xb635d2('0xd8b'),_0xb635d2('0x1727'),_0xb635d2('0x1951'),_0xb635d2('0x1703'),'ngAnimate',_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),'angular-cron-jobs','ngEmbed',_0xb635d2('0x17b0'),_0xb635d2('0x191c'),_0xb635d2('0xe93'),'angular.filter',_0xb635d2('0x5e8')])[_0xb635d2('0x1990')](_0x1badc6)[_0xb635d2('0x1a79')](_0xb635d2('0x19bf'),_0x2fa0ec)[_0xb635d2('0x1a79')]('CreateOrEditChatQueueDialogController',_0x438d61)['controller'](_0xb635d2('0x162e'),_0x30f8df)['controller'](_0xb635d2('0x24c6'),_0x5d49d1)[_0xb635d2('0x1a79')](_0xb635d2('0x1f0a'),_0x7039ec)[_0xb635d2('0x1a79')](_0xb635d2('0xa57'),_0xa1db6d)[_0xb635d2('0x1a79')](_0xb635d2('0x2b2'),_0x23a5dd)['controller']('ChatWebsiteActionsController',_0x40da5c)[_0xb635d2('0x1a79')](_0xb635d2('0x251'),_0xfc28)['controller'](_0xb635d2('0x1223'),_0x1ff2e6)[_0xb635d2('0x1a79')](_0xb635d2('0x21c2'),_0x387f2e)[_0xb635d2('0x1a79')](_0xb635d2('0xb38'),_0x1cc2ff)[_0xb635d2('0x1a79')]('EditChatWebsiteAppamazonlexDialogController',_0x1cc2ff)['controller']('EditChatWebsiteAppautoreplyDialogController',_0x3941bc)[_0xb635d2('0x1a79')]('EditChatWebsiteAppcloseDialogController',_0x867d53)[_0xb635d2('0x1a79')]('EditChatWebsiteAppdialogflowDialogController',_0xc7c776)[_0xb635d2('0x1a79')]('EditChatWebsiteAppgotoifDialogController',_0x15eafd)[_0xb635d2('0x1a79')](_0xb635d2('0x8f9'),_0x203727)[_0xb635d2('0x1a79')]('EditChatWebsiteAppintervalDialogController',_0x357a01)[_0xb635d2('0x1a79')]('EditChatWebsiteAppnoopDialogController',_0x5a8d5b)['controller'](_0xb635d2('0x1d4a'),_0x56a2a0)[_0xb635d2('0x1a79')](_0xb635d2('0x1f97'),_0x355b60)[_0xb635d2('0x1a79')](_0xb635d2('0x1c65'),_0x58adb4)[_0xb635d2('0x1a79')](_0xb635d2('0x4ea'),_0x5b0f9e)['controller'](_0xb635d2('0xd78'),_0x5d599b)[_0xb635d2('0x1a79')]('ChatWebsiteChatDispositionsController',_0x8db914)[_0xb635d2('0x1a79')]('ChatWebsiteofflineFormController',_0x76ba88)[_0xb635d2('0x1a79')](_0xb635d2('0x5d4'),_0x22b586)[_0xb635d2('0x1a79')](_0xb635d2('0x21fd'),_0x32a3c8)[_0xb635d2('0x1a79')](_0xb635d2('0x1417'),_0x20db23)['controller'](_0xb635d2('0x2759'),_0x1a8223)['controller']('ChatWebsiteOfflineMessagesController',_0x25a6f1)['controller'](_0xb635d2('0x2870'),_0x4783db)[_0xb635d2('0x1a79')](_0xb635d2('0xe13'),_0x378050)[_0xb635d2('0x1a79')]('CreateOrEditChatProactiveActionDialogController',_0x2f5baf)['controller'](_0xb635d2('0x261f'),_0x47b80f)[_0xb635d2('0x1a79')]('ChatWebsitesystemAvatarController',_0x5defb5)[_0xb635d2('0x1a79')]('ChatWebsiteController',_0x38ff2c);const _0x2ff432=_0x59426a['p']+_0xb635d2('0x741'),_0x1c7995=_0x59426a['p']+_0xb635d2('0x103a'),_0x4deaf5=_0x59426a['p']+'src/js/modules/main/apps/mail/views/realtime/queues/view.html/view-[chunkhash].html',_0x49451b=_0x59426a['p']+_0xb635d2('0x14cc');_0x55a1ff['$inject']=['$scope','$q',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$filter','pauses','agents',_0xb635d2('0x7'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),_0xb635d2('0x20d'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x1c1a')];function _0x55a1ff(_0x305e49,_0x35eaef,_0x15e6df,_0x178272,_0x3449b1,_0x1729e0,_0x24ad2b,_0x3ff0a6,_0x3b6d58,_0x6200de,_0x34f48d,_0x1a828e,_0x5df9f9,_0x17462f,_0xef3075,_0x3ed8f4,_0x48084c,_0xe29c88){var _0x297b64=_0xb635d2,_0x8555fb=this,_0x111ea7=['userpic',_0x297b64('0xb46'),_0x297b64('0x76e'),_0x297b64('0x823'),_0x297b64('0x103'),_0x297b64('0x823'),_0x297b64('0x1b66'),_0x297b64('0xe1f'),_0x297b64('0x1b15'),_0x297b64('0xf2a'),_0x297b64('0x2531'),_0x297b64('0x24f1'),'whatsappPause',_0x297b64('0x2299'),_0x297b64('0x1b8d'),'chatCapacity',_0x297b64('0x195a'),_0x297b64('0xc97'),'smsCapacity',_0x297b64('0x15f0'),'faxCapacity','chatCurrentCapacity',_0x297b64('0x1d36'),_0x297b64('0x1d8a'),'smsCurrentCapacity',_0x297b64('0xa2a'),_0x297b64('0x1c17'),_0x297b64('0x21f1'),_0x297b64('0x1ec9'),'mailStatus',_0x297b64('0x1d59'),_0x297b64('0x1d57'),_0x297b64('0x1c30'),'voiceStatus','chatStatusTime',_0x297b64('0x1ca7'),'mailStatusTime',_0x297b64('0x1c51'),_0x297b64('0xda4'),'faxStatusTime','voiceStatusTime',_0x297b64('0x26a8'),'destconnectedlinenum',_0x297b64('0x783'),_0x297b64('0x1df6'),_0x297b64('0x12d')],_0x59a4db=[_0x297b64('0x1b15'),_0x297b64('0xf2a'),_0x297b64('0x2531'),'smsPause',_0x297b64('0x14fb'),_0x297b64('0x2299'),_0x297b64('0x1b8d'),_0x297b64('0xb46')];_0x8555fb[_0x297b64('0x15a5')]=_0x3ed8f4['getCurrentUser'](),_0x8555fb[_0x297b64('0x2254')]=[_0x297b64('0xb4'),'inuse','busy','onhold',_0x297b64('0x3ef')],_0x8555fb['pauses']=_0x24ad2b||{'count':0x0,'rows':[]},_0x8555fb['license']=_0x48084c,_0x8555fb[_0x297b64('0x154f')]=_0x17462f,_0x8555fb['userProfileSection']=_0xef3075&&_0xef3075[_0x297b64('0x148b')]==0x1?_0xef3075[_0x297b64('0x16a7')][0x0]:null,_0x8555fb['crudPermissions']=_0x3ed8f4[_0x297b64('0xd31')](_0x8555fb[_0x297b64('0xb59')]?_0x8555fb[_0x297b64('0xb59')]['crudPermissions']:null),_0x8555fb['agents']=_0x3ff0a6?_0x32d445()['keyBy'](_0x3ff0a6[_0x297b64('0x16a7')]?_0x3ff0a6[_0x297b64('0x16a7')]:[],'id'):{},_0x8555fb[_0x297b64('0x7')]=_0x3b6d58?_0x32d445()['keyBy'](_0x3b6d58['rows']?_0x3b6d58['rows']:[],'id'):{},_0x8555fb[_0x297b64('0xc68')]={},_0x8555fb[_0x297b64('0xcfe')]=![],_0x8555fb['order']=[],_0x8555fb['agentInternal']={};for(var _0x6b3267 in _0x8555fb[_0x297b64('0x29b')]){typeof _0x8555fb[_0x297b64('0x29b')][_0x6b3267]!==_0x297b64('0x1143')&&(_0x8555fb['agents'][_0x6b3267][_0x297b64('0x15f9')]=!![]);}_0x8555fb['query']={'limit':0xa,'page':0x1,'order':_0x297b64('0xe11'),'globalStatusFilter':'','pauseTypeFilter':''},_0x8555fb[_0x297b64('0xe4e')]=_0x385ed4,_0x8555fb['queueAdd']=_0x27a05b,_0x8555fb[_0x297b64('0x1c98')]=_0x57e881,_0x8555fb[_0x297b64('0x560')]=_0x45cb8f,_0x8555fb[_0x297b64('0x80b')]=_0x2f6c0f,_0x8555fb[_0x297b64('0xca0')]=_0x38edeb,_0x8555fb[_0x297b64('0xe1d')]=_0x439b9b,_0x8555fb[_0x297b64('0x361')]=_0x277c5b,_0x8555fb[_0x297b64('0x1803')]=_0x2d747c,_0x8555fb[_0x297b64('0x2052')]=_0x38f4c7,_0x8555fb[_0x297b64('0x284a')]=_0x27a29d,_0x8555fb[_0x297b64('0x18ee')]=_0x56a9c3,_0x8555fb[_0x297b64('0x888')]=_0x584378,_0x8555fb['onConnect']=_0x1fa08e,_0x8555fb['onComplete']=_0x4116c8,_0x8555fb['screenRecording']=_0x408939,_0x34f48d['on'](_0x297b64('0xb9f'),_0x8555fb[_0x297b64('0x284a')]),_0x34f48d['on'](_0x297b64('0x1ce3'),_0x8555fb['onUpdate']),_0x34f48d['on'](_0x297b64('0x1002'),_0x8555fb[_0x297b64('0x266f')]),_0x34f48d['on'](_0x297b64('0xa8e'),_0x8555fb[_0x297b64('0x1831')]),_0x584378();var _0x2009b1=_0xe29c88(function(){_0x8555fb['load']&&(_0x8555fb['load']=![],_0x584378());},0x3e7);function _0x584378(){var _0x116ba5=_0x297b64;_0x8555fb[_0x116ba5('0xcfe')]=![];var _0x4d6203=_0x35eaef['defer']();_0x8555fb[_0x116ba5('0x9c8')]=_0x4d6203[_0x116ba5('0x9c8')],_0x8555fb['filteredAgents']=[],_0x8555fb[_0x116ba5('0x1b03')]=[],_0x32d445()[_0x116ba5('0xd1e')](_0x8555fb[_0x116ba5('0x29b')],function(_0x54ff92,_0x111f54){var _0x2a6e5e=_0x116ba5;_0x8555fb[_0x2a6e5e('0x7')][_0x111f54]&&_0x32d445()[_0x2a6e5e('0x1d8')](_0x54ff92,_0x32d445()[_0x2a6e5e('0xed5')](_0x32d445()[_0x2a6e5e('0x23e3')](_0x8555fb['rpcAgents'][_0x111f54],_0x59a4db),_0x111ea7)),_0x439b9b(_0x54ff92),_0x54ff92[_0x2a6e5e('0xb46')]?(_0x8555fb[_0x2a6e5e('0x16a4')][_0x2a6e5e('0xb76')](_0x54ff92),_0x8555fb[_0x2a6e5e('0x7ff')][_0x54ff92['internal']]=_0x111f54):_0x54ff92[_0x2a6e5e('0x16ed')]=_0x32d445()[_0x2a6e5e('0xcd3')](_0x4ddcaa()()['format']('x'));});_0x8555fb[_0x116ba5('0xa16')][_0x116ba5('0xb02')]&&_0x32d445()[_0x116ba5('0xa8b')](_0x8555fb[_0x116ba5('0x16a4')],function(_0x3a818a){var _0x4711ad=_0x116ba5;return _0x3a818a[_0x4711ad('0x25b1')]!==_0x8555fb[_0x4711ad('0xa16')][_0x4711ad('0xb02')];});_0x8555fb[_0x116ba5('0xa16')]['pauseTypeFilter']&&_0x32d445()[_0x116ba5('0xa8b')](_0x8555fb['filteredAgents'],function(_0x514238){var _0x547a23=_0x116ba5;return _0x514238[_0x547a23('0x103')]!==_0x8555fb['query']['pauseTypeFilter'];});_0x8555fb[_0x116ba5('0xa16')][_0x116ba5('0x2891')]&&_0x32d445()[_0x116ba5('0xa8b')](_0x8555fb[_0x116ba5('0x16a4')],function(_0x475cff){var _0x5cccac=_0x116ba5;return _0x475cff['fullname'][_0x5cccac('0x20dd')]()[_0x5cccac('0x281c')](_0x8555fb[_0x5cccac('0xa16')][_0x5cccac('0x2891')][_0x5cccac('0x20dd')]())<0x0;});_0x8555fb[_0x116ba5('0x16a4')]=_0xa783e4(_0x8555fb[_0x116ba5('0x16a4')]);var _0x3aa95e=(_0x8555fb[_0x116ba5('0xa16')][_0x116ba5('0xc08')]-0x1)*_0x8555fb[_0x116ba5('0xa16')][_0x116ba5('0x1b6d')];_0x8555fb[_0x116ba5('0xc68')]=_0x32d445()['drop'](_0x8555fb[_0x116ba5('0x16a4')],_0x3aa95e)[_0x116ba5('0xa19')](0x0,_0x8555fb[_0x116ba5('0xa16')][_0x116ba5('0x1b6d')]);for(var _0x11b4c5=0x0;_0x11b4c5<_0x8555fb[_0x116ba5('0xc68')]['length'];_0x11b4c5+=0x1){_0x8555fb[_0x116ba5('0x1b03')][_0x116ba5('0xb76')](_0x8555fb[_0x116ba5('0xc68')][_0x11b4c5]['id']);}_0x4d6203[_0x116ba5('0xcd6')](),_0x8555fb['load']=!![];}function _0x27a29d(_0xfb52c3){var _0x91fd88=_0x297b64;_0x8555fb[_0x91fd88('0x29b')][_0xfb52c3['id']]&&(_0x32d445()[_0x91fd88('0x1d8')](_0x8555fb[_0x91fd88('0x29b')][_0xfb52c3['id']],_0x32d445()[_0x91fd88('0xed5')](_0x32d445()['omit'](_0xfb52c3,_0x59a4db),_0x111ea7)),_0x32d445()[_0x91fd88('0x1d8')](_0x8555fb[_0x91fd88('0x7')][_0xfb52c3['id']],_0x32d445()[_0x91fd88('0xed5')](_0x32d445()['omit'](_0xfb52c3,_0x59a4db),_0x111ea7)),_0x439b9b(_0x8555fb['agents'][_0xfb52c3['id']]));}function _0x56a9c3(_0x125866){var _0x391668=_0x297b64;_0x8555fb[_0x391668('0x29b')][_0x125866['id']]&&(_0x32d445()[_0x391668('0x1d8')](_0x8555fb['agents'][_0x125866['id']],_0x32d445()['pick'](_0x125866,_0x111ea7)),_0x32d445()[_0x391668('0x1d8')](_0x8555fb[_0x391668('0x7')][_0x125866['id']],_0x32d445()[_0x391668('0xed5')](_0x125866,_0x111ea7)),_0x125866['lastPauseAt']&&(_0x8555fb[_0x391668('0x29b')][_0x125866['id']][_0x391668('0x16ed')]=_0x125866[_0x391668('0x823')],_0x8555fb['rpcAgents'][_0x125866['id']][_0x391668('0x16ed')]=_0x125866[_0x391668('0x823')]),_0x439b9b(_0x8555fb['agents'][_0x125866['id']]));}function _0x1fa08e(_0x382715){var _0x509b9c=_0x297b64;_0x8555fb[_0x509b9c('0x29b')][_0x8555fb[_0x509b9c('0x7ff')][_0x382715[_0x509b9c('0x1c29')]]]&&(_0x32d445()[_0x509b9c('0x1d8')](_0x8555fb['agents'][_0x8555fb['agentInternal'][_0x382715[_0x509b9c('0x1c29')]]],_0x32d445()[_0x509b9c('0xed5')](_0x382715,['queue','destconnectedlinenum'])),_0x32d445()['merge'](_0x8555fb[_0x509b9c('0x7')][_0x8555fb[_0x509b9c('0x7ff')][_0x382715[_0x509b9c('0x1c29')]]],_0x32d445()[_0x509b9c('0xed5')](_0x382715,[_0x509b9c('0x26a8'),'destconnectedlinenum'])));}function _0x4116c8(_0x4ba638){var _0x3dacb4=_0x297b64;_0x8555fb['agents'][_0x8555fb[_0x3dacb4('0x7ff')][_0x4ba638['destaccountcode']]]&&(_0x8555fb[_0x3dacb4('0x29b')][_0x8555fb[_0x3dacb4('0x7ff')][_0x4ba638['destaccountcode']]]=_0x32d445()[_0x3dacb4('0x23e3')](_0x8555fb[_0x3dacb4('0x29b')][_0x8555fb[_0x3dacb4('0x7ff')][_0x4ba638[_0x3dacb4('0x1c29')]]],[_0x3dacb4('0x26a8'),'destconnectedlinenum']),_0x8555fb[_0x3dacb4('0x7')][_0x8555fb[_0x3dacb4('0x7ff')][_0x4ba638[_0x3dacb4('0x1c29')]]]=_0x32d445()[_0x3dacb4('0x23e3')](_0x8555fb[_0x3dacb4('0x7')][_0x8555fb[_0x3dacb4('0x7ff')][_0x4ba638[_0x3dacb4('0x1c29')]]],[_0x3dacb4('0x26a8'),_0x3dacb4('0x149e')]));}function _0x385ed4(_0x5ddf89){var _0x169ccd=_0x297b64;return _0x6200de[_0x169ccd('0x10c6')][_0x169ccd('0xe4e')]({'id':_0x5ddf89['id'],'device':'realtime','agent_id':_0x5ddf89['id'],'agent_name':_0x5ddf89[_0x169ccd('0x2623')]})['$promise'][_0x169ccd('0xe19')](function(){var _0x2234d2=_0x169ccd;_0x1a828e[_0x2234d2('0x425')]({'title':_0x2234d2('0x25b9'),'msg':_0x5ddf89[_0x2234d2('0xe11')]+_0x2234d2('0x1a35')}),_0x8555fb[_0x2234d2('0x29b')][_0x5ddf89['id']]&&(_0x8555fb['agents'][_0x5ddf89['id']][_0x2234d2('0xb46')]=![]),_0x8555fb[_0x2234d2('0x7')][_0x5ddf89['id']]&&(_0x8555fb[_0x2234d2('0x7')][_0x5ddf89['id']][_0x2234d2('0xb46')]=![]),_0x584378();})['catch'](function(_0xaa4494){var _0x1786ab=_0x169ccd;_0x1a828e[_0x1786ab('0x8c8')]({'title':_0xaa4494[_0x1786ab('0x2833')]?_0x1786ab('0x27f2')+_0xaa4494[_0x1786ab('0x2833')]+_0x1786ab('0x1b7c')+_0xaa4494[_0x1786ab('0x1fd7')]:_0x1786ab('0x1c95'),'msg':_0xaa4494[_0x1786ab('0x11d0')]?JSON[_0x1786ab('0x3ad')](_0xaa4494[_0x1786ab('0x11d0')][_0x1786ab('0x27e8')]):_0xaa4494[_0x1786ab('0x94f')]()});});}function _0x57e881(_0x1e2b32,_0x2dd697){var _0x4b30ba=_0x297b64;return _0x6200de[_0x4b30ba('0x10c6')]['pause']({'id':_0x1e2b32['id'],'type':_0x2dd697})['$promise'][_0x4b30ba('0xe19')](function(_0xd6fe4b){var _0x5cb628=_0x4b30ba;_0x8555fb[_0x5cb628('0x29b')][_0x1e2b32['id']]&&_0x32d445()[_0x5cb628('0x1d8')](_0x8555fb['agents'][_0x1e2b32['id']],_0x32d445()[_0x5cb628('0xed5')](_0xd6fe4b,_0x111ea7)),_0x8555fb[_0x5cb628('0x7')][_0x1e2b32['id']]&&_0x32d445()['merge'](_0x8555fb[_0x5cb628('0x7')][_0x1e2b32['id']],_0x32d445()[_0x5cb628('0xed5')](_0xd6fe4b,_0x111ea7)),_0x439b9b(_0x8555fb[_0x5cb628('0x29b')][_0x1e2b32['id']]);})[_0x4b30ba('0x223b')](function(_0x5d310c){var _0x4239a6=_0x4b30ba;_0x1a828e['error']({'title':_0x5d310c[_0x4239a6('0x2833')]?_0x4239a6('0x27f2')+_0x5d310c['status']+_0x4239a6('0x1b7c')+_0x5d310c[_0x4239a6('0x1fd7')]:_0x4239a6('0x1c95'),'msg':_0x5d310c['data']?JSON[_0x4239a6('0x3ad')](_0x5d310c[_0x4239a6('0x11d0')]['message']):_0x5d310c['toString']()});});}function _0x45cb8f(_0x53199e){var _0x1273e7=_0x297b64;return _0x6200de[_0x1273e7('0x10c6')][_0x1273e7('0x2471')]({'id':_0x53199e['id']})[_0x1273e7('0xe59')]['then'](function(_0x49b445){var _0x223b0b=_0x1273e7;_0x8555fb[_0x223b0b('0x29b')][_0x53199e['id']]&&_0x32d445()['merge'](_0x8555fb[_0x223b0b('0x29b')][_0x53199e['id']],_0x32d445()[_0x223b0b('0xed5')](_0x49b445,_0x111ea7)),_0x8555fb['rpcAgents'][_0x53199e['id']]&&_0x32d445()['merge'](_0x8555fb['rpcAgents'][_0x53199e['id']],_0x32d445()[_0x223b0b('0xed5')](_0x49b445,_0x111ea7)),_0x439b9b(_0x8555fb['agents'][_0x53199e['id']]);})[_0x1273e7('0x223b')](function(_0xa5277c){var _0xe6c5d=_0x1273e7;_0x1a828e[_0xe6c5d('0x8c8')]({'title':_0xa5277c['status']?_0xe6c5d('0x27f2')+_0xa5277c[_0xe6c5d('0x2833')]+_0xe6c5d('0x1b7c')+_0xa5277c[_0xe6c5d('0x1fd7')]:_0xe6c5d('0x1c95'),'msg':_0xa5277c[_0xe6c5d('0x11d0')]?JSON['stringify'](_0xa5277c['data'][_0xe6c5d('0x27e8')]):_0xa5277c[_0xe6c5d('0x94f')]()});});}function _0x2f6c0f(_0x5839bd){var _0x56feda=_0x297b64;_0x178272['show'](_0x178272[_0x56feda('0xbdc')]()[_0x56feda('0x26d6')](!![])['title']('Legend')[_0x56feda('0x221c')](_0x56feda('0x1abb'))['ok']('Ok')[_0x56feda('0x1345')](_0x5839bd));}function _0x27a05b(_0x5f3267,_0x28942b){var _0x8f16fc=_0x297b64;_0x178272[_0x8f16fc('0x26b2')]({'controller':_0x8f16fc('0x28ab'),'controllerAs':'vm','templateUrl':_0x3bf6bc,'parent':angular[_0x8f16fc('0x24a1')](_0x3449b1[_0x8f16fc('0x19b2')]),'targetEvent':_0x28942b,'clickOutsideToClose':!![],'locals':{'agent':_0x5f3267,'agents':[],'channel':_0x8f16fc('0x26bf'),'direction':_0x8f16fc('0x1a7a'),'crudPermissions':_0x8555fb['crudPermissions']}});}function _0x277c5b(_0x4ee6f0){var _0x31394f=_0x297b64;return _0x4ee6f0===_0x31394f('0x1c98')||_0x4ee6f0===_0x31394f('0x2f3');}function _0x2d747c(_0x428657){var _0x5c33db=_0x297b64;return _0x428657===_0x5c33db('0x1c98');}function _0x38f4c7(_0x1e9b07){var _0x99be1f=_0x297b64;return _0x1e9b07===_0x99be1f('0x2f3');}function _0x3a3954(_0x3f339b){var _0x441af4=_0x297b64;return _0x3f339b===_0x441af4('0x751')||_0x3f339b===_0x441af4('0x10df')||_0x3f339b===_0x441af4('0x20a1')||_0x3f339b==='ringing'||_0x32d445()['isNil'](_0x3f339b);}function _0x38edeb(_0x451f9d,_0x48836d){var _0x4f7160=_0x297b64;if(_0x48836d===_0x4f7160('0xe74')){if(_0x451f9d[_0x48836d+'Status']!==_0x4f7160('0x751'))return _0x451f9d[_0x48836d+_0x4f7160('0x20e')];if(_0x451f9d[_0x48836d+_0x4f7160('0x27b9')])return _0x451f9d[_0x48836d+'Status']=_0x4f7160('0x1c98'),_0x4f7160('0x1c98');return _0x4f7160('0x751');}else{if(_0x451f9d[_0x48836d+_0x4f7160('0x27b9')])return _0x451f9d[_0x48836d+_0x4f7160('0x20e')]=_0x4f7160('0x1c98'),_0x4f7160('0x1c98');return _0x451f9d[_0x48836d+'Status'];}}function _0x439b9b(_0x3077f2){var _0xd96435=_0x297b64,_0xd1b345=_0xd96435('0x10df');if(_0x32d445()[_0xd96435('0x1ff')]([_0x38edeb(_0x3077f2,_0xd96435('0xe74')),_0x38edeb(_0x3077f2,_0xd96435('0x17cc')),_0x38edeb(_0x3077f2,_0xd96435('0x26bf')),_0x38edeb(_0x3077f2,_0xd96435('0xaf2')),_0x38edeb(_0x3077f2,_0xd96435('0x2801')),_0x38edeb(_0x3077f2,_0xd96435('0x4b7')),_0x38edeb(_0x3077f2,_0xd96435('0x625'))],_0x277c5b))_0xd1b345=_0xd96435('0x1c98');else{if(_0x32d445()[_0xd96435('0x201a')]([_0x38edeb(_0x3077f2,_0xd96435('0xe74')),_0x38edeb(_0x3077f2,_0xd96435('0x17cc')),_0x38edeb(_0x3077f2,_0xd96435('0x26bf')),_0x38edeb(_0x3077f2,'openchannel'),_0x38edeb(_0x3077f2,_0xd96435('0x2801')),_0x38edeb(_0x3077f2,_0xd96435('0x4b7')),_0x38edeb(_0x3077f2,_0xd96435('0x625'))],_0x277c5b))_0xd1b345=_0xd96435('0x2f3');else _0x32d445()[_0xd96435('0x1ff')]([_0x38edeb(_0x3077f2,_0xd96435('0xe74')),_0x38edeb(_0x3077f2,'chat'),_0x38edeb(_0x3077f2,_0xd96435('0x26bf')),_0x38edeb(_0x3077f2,_0xd96435('0xaf2')),_0x38edeb(_0x3077f2,_0xd96435('0x2801')),_0x38edeb(_0x3077f2,_0xd96435('0x4b7')),_0x38edeb(_0x3077f2,_0xd96435('0x625'))],_0x3a3954)?_0xd1b345=_0xd96435('0x751'):_0xd1b345=_0xd96435('0x1934');}_0x3077f2[_0xd96435('0x25b1')]!==_0xd1b345&&(_0x3077f2['globalStatus']=_0xd1b345,_0x3077f2[_0xd96435('0x15f9')]?(_0x3077f2[_0xd96435('0x15f9')]=![],_0x3077f2[_0xd96435('0x16ed')]=_0x277c5b(_0xd1b345)?_0x32d445()['toNumber'](_0x4ddcaa()(_0x3077f2['lastPauseAt'])['format']('x')):_0x32d445()[_0xd96435('0x1735')]([_0x3077f2[_0xd96435('0x2469')],_0x3077f2[_0xd96435('0x583')],_0x3077f2[_0xd96435('0x1426')],_0x3077f2[_0xd96435('0x1c51')],_0x3077f2[_0xd96435('0xda4')],_0x3077f2[_0xd96435('0x1ca7')],_0x3077f2['faxStatusTime']])):_0x3077f2['globalStatusTime']=_0x32d445()[_0xd96435('0xcd3')](_0x4ddcaa()()[_0xd96435('0x5e5')]('x')));}function _0xa783e4(_0x4fa782){var _0x558391=_0x297b64,_0x313ae2=_0x32d445()[_0x558391('0x20b6')](_0x8555fb[_0x558391('0xa16')][_0x558391('0x1b03')],'-')?_0x558391('0x1ee9'):'asc';return _0x32d445()[_0x558391('0x10e')](_0x4fa782,[_0x8555fb[_0x558391('0xa16')][_0x558391('0x1b03')]['replace']('-','')],[_0x313ae2]);}function _0x1a3fcb(){var _0x489f35=_0x297b64;_0x2009b1&&(_0xe29c88[_0x489f35('0x2c1')](_0x2009b1),_0x2009b1=null);}function _0x408939(_0x54ad5a,_0x5afe77){var _0x2c8558=_0x297b64;return _0x6200de[_0x2c8558('0x10c6')][_0x2c8558('0xa70')]({'id':_0x54ad5a['id']},{'screenrecording':_0x5afe77})['$promise'][_0x2c8558('0x223b')](function(_0x1d91a5){var _0x1d4322=_0x2c8558;_0x1a828e[_0x1d4322('0x8c8')]({'title':_0x1d91a5[_0x1d4322('0x2833')]?_0x1d4322('0x27f2')+_0x1d91a5[_0x1d4322('0x2833')]+'\x20-\x20'+_0x1d91a5[_0x1d4322('0x1fd7')]:_0x1d4322('0x2bf'),'msg':_0x1d91a5['data']?JSON['stringify'](_0x1d91a5[_0x1d4322('0x11d0')][_0x1d4322('0x27e8')]):_0x1d91a5[_0x1d4322('0x94f')]()});});}_0x305e49[_0x297b64('0xb2b')]('$destroy',function(){var _0x4de3cb=_0x297b64;_0x34f48d[_0x4de3cb('0x2121')](_0x4de3cb('0xb9f')),_0x34f48d[_0x4de3cb('0x2121')]('user:update'),_0x34f48d['removeAllListeners'](_0x4de3cb('0x1002')),_0x34f48d['removeAllListeners'](_0x4de3cb('0xa8e')),_0x1a3fcb();});}const _0x4192a9=_0x55a1ff,_0x5a918d=_0x59426a['p']+_0xb635d2('0xd7e'),_0x5f1771=_0x59426a['p']+_0xb635d2('0x22c6');_0x53211e[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),'$mdDialog','$q',_0xb635d2('0x1728'),_0xb635d2('0x1c1a'),_0xb635d2('0x671'),_0xb635d2('0x146c'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x53211e(_0x57e2a9,_0x27dfe8,_0x4dc05e,_0x86f6f6,_0x551cd8,_0x17522f,_0x2f3a4c,_0xd5eb07,_0x4d69fb,_0x52a413,_0x4fa123,_0x9df8f3,_0x2be2ac,_0x371cd6){var _0x44e1e0=_0xb635d2,_0x247a01=this,_0x52159=[_0x44e1e0('0x462'),_0x44e1e0('0x2398'),_0x44e1e0('0x183a'),_0x44e1e0('0xe75'),_0x44e1e0('0x1700'),_0x44e1e0('0x194a'),_0x44e1e0('0x27e8'),_0x44e1e0('0x8c9'),_0x44e1e0('0x1a23'),_0x44e1e0('0x1317'),_0x44e1e0('0x1cf8')];_0x247a01[_0x44e1e0('0x15a5')]=_0x371cd6['getCurrentUser'](),_0x247a01[_0x44e1e0('0x148b')]=_0x2f3a4c[_0x44e1e0('0x148b')]?_0x2f3a4c[_0x44e1e0('0x148b')]:0x0,_0x247a01[_0x44e1e0('0x671')]=_0x2f3a4c?_0x32d445()['keyBy'](_0x2f3a4c['rows']?_0x2f3a4c[_0x44e1e0('0x16a7')]:[],'id'):{},_0x247a01[_0x44e1e0('0x146c')]=_0xd5eb07?_0x32d445()[_0x44e1e0('0x226f')](_0xd5eb07[_0x44e1e0('0x16a7')]?_0xd5eb07[_0x44e1e0('0x16a7')]:[],'id'):{},_0x247a01['userProfile']=_0x9df8f3,_0x247a01[_0x44e1e0('0xb59')]=_0x2be2ac&&_0x2be2ac[_0x44e1e0('0x148b')]==0x1?_0x2be2ac[_0x44e1e0('0x16a7')][0x0]:null,_0x247a01[_0x44e1e0('0xb3d')]=_0x371cd6[_0x44e1e0('0xd31')](_0x247a01[_0x44e1e0('0xb59')]?_0x247a01[_0x44e1e0('0xb59')][_0x44e1e0('0xb3d')]:null);_0x371cd6['hasRole'](_0x44e1e0('0xd14'))?_0x247a01['query']={'type':'inbound','sort':_0x44e1e0('0x7e8'),'limit':0xa,'page':0x1}:_0x247a01[_0x44e1e0('0xa16')]={'id':_0x247a01['currentUser']['id'],'channel':_0x44e1e0('0x26bf'),'type':_0x44e1e0('0x1a7a'),'sort':_0x44e1e0('0x7e8'),'limit':0xa,'page':0x1};_0x247a01[_0x44e1e0('0x425')]=_0x26b592,_0x247a01['getQueues']=_0xa076c0,_0x247a01[_0x44e1e0('0xf9e')]=_0x1e235a,_0x247a01[_0x44e1e0('0x45a')]=_0x5ca2d9,_0x247a01['updateQueue']=_0x2f77c4,_0x247a01[_0x44e1e0('0x284a')]=_0x578b09,_0x247a01[_0x44e1e0('0xc76')]=_0x4074ed,_0x247a01['onRemoveMember']=_0x137a0b,_0x247a01['onPause']=_0x62654d,_0x247a01['onLogin']=_0x34e647,_0x247a01[_0x44e1e0('0x1baf')]=_0x53e680,_0x247a01[_0x44e1e0('0x696')]=_0x55791d,_0x247a01[_0x44e1e0('0x1b03')]=[],_0x32d445()[_0x44e1e0('0xd1e')](_0x247a01[_0x44e1e0('0x671')],function(_0x13f706){var _0x2b4853=_0x44e1e0;_0x247a01[_0x2b4853('0x1b03')][_0x2b4853('0xb76')](_0x13f706['id']);}),_0x52a413['on'](_0x44e1e0('0x2670'),_0x247a01[_0x44e1e0('0x284a')]),_0x52a413['on']('userMailQueue:save',_0x247a01[_0x44e1e0('0xc76')]),_0x52a413['on']('userMailQueue:remove',_0x247a01[_0x44e1e0('0x895')]),_0x52a413['on'](_0x44e1e0('0x1ce3'),_0x247a01[_0x44e1e0('0x69e')]),_0x52a413['on'](_0x44e1e0('0x1583'),_0x247a01[_0x44e1e0('0x1baf')]),_0x52a413['on'](_0x44e1e0('0x2161'),_0x247a01[_0x44e1e0('0x1707')]);function _0x55791d(){var _0x15a94e=_0x44e1e0,_0x477ba0=[];return _0x32d445()['forIn'](_0x247a01['queues'],function(_0x779bfe,_0x491249){var _0x1427f9=a0_0x5325;_0x779bfe[_0x1427f9('0x1cf8')]=0x0,_0x779bfe['loggedInDb']=0x0,_0x247a01[_0x1427f9('0x671')][_0x491249][_0x1427f9('0x29b')]={},_0x477ba0[_0x1427f9('0xb76')](_0x4d69fb[_0x1427f9('0x18d9')]['getMembers']({'id':_0x491249})[_0x1427f9('0xe59')]),_0x247a01[_0x1427f9('0x146c')][_0x491249]&&_0x32d445()[_0x1427f9('0x1d8')](_0x779bfe,_0x32d445()['pick'](_0x247a01[_0x1427f9('0x146c')][_0x491249],_0x52159));}),_0x86f6f6[_0x15a94e('0xf0e')](_0x477ba0)['then'](function(_0x381ec0){var _0x2021a5=_0x15a94e;for(var _0x3f7492=0x0;_0x3f7492<_0x381ec0[_0x2021a5('0x25ae')];_0x3f7492+=0x1){for(var _0xf93ecb=0x0;_0xf93ecb<_0x381ec0[_0x3f7492][_0x2021a5('0x16a7')][_0x2021a5('0x25ae')];_0xf93ecb++){_0x381ec0[_0x3f7492]['rows'][_0xf93ecb][_0x2021a5('0x1cf8')]&&_0x247a01[_0x2021a5('0x671')][_0x381ec0[_0x3f7492][_0x2021a5('0x16a7')][_0xf93ecb][_0x2021a5('0x840')]][_0x2021a5('0x1cf8')]++,_0x247a01['queues'][_0x381ec0[_0x3f7492][_0x2021a5('0x16a7')][_0xf93ecb][_0x2021a5('0x840')]][_0x2021a5('0x120f')]++,_0x247a01[_0x2021a5('0x671')][_0x381ec0[_0x3f7492][_0x2021a5('0x16a7')][_0xf93ecb][_0x2021a5('0x840')]][_0x2021a5('0x29b')][_0x381ec0[_0x3f7492][_0x2021a5('0x16a7')][_0xf93ecb][_0x2021a5('0x43d')]]=_0x381ec0[_0x3f7492][_0x2021a5('0x16a7')][_0xf93ecb]['MailQueueId'];}}})['catch'](function(_0x1ddfdc){var _0x4a2cd8=_0x15a94e;console[_0x4a2cd8('0x8c8')](_0x1ddfdc);});}function _0x578b09(_0x41d8dc){var _0x5ef43c=_0x44e1e0;_0x247a01[_0x5ef43c('0x671')][_0x41d8dc['id']]&&_0x32d445()[_0x5ef43c('0x1d8')](_0x247a01[_0x5ef43c('0x671')][_0x41d8dc['id']],_0x32d445()[_0x5ef43c('0xed5')](_0x41d8dc,_0x52159));}function _0x4074ed(_0x38345c){var _0x113ca4=_0x44e1e0;_0x247a01[_0x113ca4('0x671')][_0x38345c['MailQueueId']]&&_0x247a01[_0x113ca4('0x671')][_0x38345c['MailQueueId']][_0x113ca4('0x120f')]++;}function _0x137a0b(_0x2cd9fc){var _0x545ddd=_0x44e1e0;_0x247a01['queues'][_0x2cd9fc[_0x545ddd('0x840')]]&&_0x247a01[_0x545ddd('0x671')][_0x2cd9fc[_0x545ddd('0x840')]][_0x545ddd('0x120f')]--;}function _0x62654d(_0x567544){var _0x40a5d7=_0x44e1e0;console[_0x40a5d7('0x1fe9')](_0x40a5d7('0x69e'),_0x567544);if(_0x567544[_0x40a5d7('0x1b8d')])_0x32d445()[_0x40a5d7('0xd1e')](_0x247a01['queues'],function(_0x5bfeac){var _0x23acf1=_0x40a5d7;_0x5bfeac[_0x23acf1('0x29b')][_0x567544['id']]&&(_0x5bfeac['paused']+=0x1,console['log'](_0x23acf1('0x1c98')));});else!_0x567544['voicePause']&&_0x32d445()['forIn'](_0x247a01[_0x40a5d7('0x671')],function(_0x432294){var _0x22eb36=_0x40a5d7;_0x432294[_0x22eb36('0x29b')][_0x567544['id']]&&(_0x432294['paused']>0x0&&(_0x432294['paused']-=0x1,console[_0x22eb36('0x1fe9')](_0x22eb36('0x2471'))));});}function _0x34e647(_0x35c160){var _0x3a6608=_0x44e1e0;console[_0x3a6608('0x1fe9')](_0x3a6608('0xb90'),_0x35c160),_0x247a01[_0x3a6608('0x671')][_0x35c160[_0x3a6608('0x840')]]&&(_0x247a01[_0x3a6608('0x671')][_0x35c160[_0x3a6608('0x840')]]['loggedInDb']+=0x1,_0x247a01[_0x3a6608('0x671')][_0x35c160[_0x3a6608('0x840')]]['agents'][_0x35c160['UserId']]=_0x35c160['MailQueueId']);}function _0x53e680(_0x5c3ddb){var _0x3aa2d5=_0x44e1e0;console['log'](_0x3aa2d5('0x1baf'),_0x5c3ddb),_0x247a01[_0x3aa2d5('0x671')][_0x5c3ddb['MailQueueId']]&&_0x247a01[_0x3aa2d5('0x671')][_0x5c3ddb[_0x3aa2d5('0x840')]]['loggedInDb']>0x0&&(_0x247a01['queues'][_0x5c3ddb[_0x3aa2d5('0x840')]][_0x3aa2d5('0x120f')]-=0x1,delete _0x247a01[_0x3aa2d5('0x671')][_0x5c3ddb['MailQueueId']]['agents'][_0x5c3ddb[_0x3aa2d5('0x43d')]]);}var _0x3d1997=!![],_0x177cb6=0x1;_0x57e2a9['$watch']('vm.query.filter',function(_0x3a13cd,_0x1fdc15){var _0x4f6b10=_0x44e1e0;_0x3d1997?_0x27dfe8(function(){_0x3d1997=![];}):(!_0x1fdc15&&(_0x177cb6=_0x247a01[_0x4f6b10('0xa16')][_0x4f6b10('0xc08')]),_0x3a13cd!==_0x1fdc15&&(_0x247a01[_0x4f6b10('0xa16')][_0x4f6b10('0xc08')]=0x1),!_0x3a13cd&&(_0x247a01['query'][_0x4f6b10('0xc08')]=_0x177cb6),_0x247a01['getQueues']());});function _0x26b592(_0x475012){var _0x5817eb=_0x44e1e0;_0x247a01[_0x5817eb('0x148b')]=_0x475012['count'],_0x247a01[_0x5817eb('0x671')]=_0x475012?_0x32d445()[_0x5817eb('0x226f')](_0x475012[_0x5817eb('0x16a7')]?_0x475012[_0x5817eb('0x16a7')]:[],'id'):{};if(_0x475012[_0x5817eb('0x16a7')]){_0x247a01[_0x5817eb('0x1b03')]=[];for(var _0x1c2f1b=0x0;_0x1c2f1b<_0x475012[_0x5817eb('0x16a7')][_0x5817eb('0x25ae')];_0x1c2f1b++){_0x247a01[_0x5817eb('0x1b03')][_0x5817eb('0xb76')](_0x475012['rows'][_0x1c2f1b]['id']);}}_0x55791d();}function _0xa076c0(){var _0x2913ae=_0x44e1e0;_0x247a01[_0x2913ae('0xa16')][_0x2913ae('0xab0')]=(_0x247a01[_0x2913ae('0xa16')][_0x2913ae('0xc08')]-0x1)*_0x247a01[_0x2913ae('0xa16')][_0x2913ae('0x1b6d')],_0x371cd6[_0x2913ae('0x179e')](_0x2913ae('0xd14'))?_0x247a01[_0x2913ae('0x9c8')]=_0x4d69fb[_0x2913ae('0x18d9')]['get'](_0x247a01['query'],_0x26b592)['$promise']:(_0x247a01[_0x2913ae('0xa16')]['id']=_0x247a01['userProfile']['id'],_0x247a01[_0x2913ae('0xa16')]['section']=_0x2913ae('0x12e8'),_0x247a01['promise']=_0x4d69fb[_0x2913ae('0x154f')][_0x2913ae('0x14e6')](_0x247a01[_0x2913ae('0xa16')],_0x26b592)[_0x2913ae('0xe59')]);}function _0x1e235a(_0x2e93ba,_0x5dffe2){var _0x250df1=_0x44e1e0;_0x4dc05e[_0x250df1('0x26b2')]({'controller':_0x250df1('0x26f8'),'controllerAs':'vm','templateUrl':_0x5a918d,'parent':angular[_0x250df1('0x24a1')](_0x551cd8['body']),'targetEvent':_0x2e93ba,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x5dffe2,'mailQueues':_0x32d445()[_0x250df1('0x1b79')](_0x247a01[_0x250df1('0x671')]),'license':null,'setting':null,'crudPermissions':_0x247a01['crudPermissions']}});}function _0x5ca2d9(_0x47c9e2,_0x205349){var _0x32ef75=_0x44e1e0;_0x4dc05e[_0x32ef75('0x26b2')]({'controller':_0x32ef75('0x14f'),'controllerAs':'vm','templateUrl':_0x5f1771,'parent':angular[_0x32ef75('0x24a1')](_0x551cd8['body']),'targetEvent':_0x47c9e2,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x205349,'mailQueues':_0x247a01['queues']?_0x247a01['queues'][_0x32ef75('0x16a7')]:[],'realtime':![],'crudPermissions':_0x247a01[_0x32ef75('0xb3d')]}});}function _0x2f77c4(_0x4c9c4b){var _0x57c99a=_0x44e1e0;return _0x4d69fb['mailQueue']['update'](_0x4c9c4b)['$promise'][_0x57c99a('0xe19')](function(){var _0x1fa27b=_0x57c99a;_0x4fa123['success']({'title':_0x1fa27b('0x56a'),'msg':_0x4c9c4b['name']?_0x4c9c4b[_0x1fa27b('0x2623')]+_0x1fa27b('0x283b'):''});})[_0x57c99a('0x223b')](function(_0x2b194b){var _0x465f10=_0x57c99a;_0x4fa123['error']({'title':_0x465f10('0x2780'),'msg':_0x2b194b[_0x465f10('0x27e8')]});});}_0x57e2a9[_0x44e1e0('0xb2b')]('$destroy',function(){var _0xa6ed77=_0x44e1e0;_0x52a413[_0xa6ed77('0x2121')](_0xa6ed77('0x2670')),_0x52a413[_0xa6ed77('0x2121')](_0xa6ed77('0x20aa')),_0x52a413['removeAllListeners'](_0xa6ed77('0x2ee')),_0x52a413['removeAllListeners']('user:update'),_0x52a413[_0xa6ed77('0x2121')](_0xa6ed77('0x1583')),_0x52a413['removeAllListeners']('userVoiceQueue:save');});}const _0x431025=_0x53211e;function _0x4d6c6c(){var _0x3b4953=_0xb635d2;return{'status':{'registered':_0x3b4953('0xcf5'),'unregistered':_0x3b4953('0x10ea'),'lagged':_0x3b4953('0x10ea'),'reachable':_0x3b4953('0xcf5'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x3b4953('0x1fe7')},'state':{'unknown':_0x3b4953('0x2740'),'not_inuse':_0x3b4953('0x11dd'),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x3b4953('0x441'),'invalid':_0x3b4953('0x2740'),'unavailable':_0x3b4953('0x2740'),'ringing':_0x3b4953('0x84d'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x3b4953('0x90f')},'channelStatus':{'ring':_0x3b4953('0x84d'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x3b4953('0x24dc'),'up':_0x3b4953('0x2778'),'hangup':_0x3b4953('0x2432')}};}const _0x208fee=_0x4d6c6c;_0x240e3e[_0xb635d2('0xb0c')]=['$scope','$state','socket'];function _0x240e3e(_0x4e69e5,_0x486c2,_0x35dcca){var _0x4f3774=_0xb635d2,_0x3b8a78=this;_0x35dcca[_0x4f3774('0x83c')](),_0x35dcca['connect'](),_0x3b8a78[_0x4f3774('0xc7b')]=0x0;switch(_0x486c2[_0x4f3774('0x1a60')][_0x4f3774('0x2623')]){case _0x4f3774('0x1bb6'):_0x3b8a78[_0x4f3774('0xc7b')]=0x0;break;case _0x4f3774('0x2464'):_0x3b8a78[_0x4f3774('0xc7b')]=0x1;break;case'app.mail.realtime.accounts':_0x3b8a78['selectedTab']=0x2;break;default:_0x3b8a78[_0x4f3774('0xc7b')]=0x0,_0x486c2['go'](_0x4f3774('0x1bb6'));}_0x4e69e5[_0x4f3774('0x107')](_0x4f3774('0xa10'),function(_0x248b89,_0xb57929){var _0x15b786=_0x4f3774;if(_0x248b89!==_0xb57929)switch(_0x248b89){case 0x0:_0x486c2['go']('app.mail.realtime.agents');break;case 0x1:_0x486c2['go']('app.mail.realtime.queues');break;case 0x2:_0x486c2['go'](_0x15b786('0xbfc'));break;default:_0x486c2['go'](_0x15b786('0x1bb6'));}});}const _0x150e8a=_0x240e3e;_0x20a9ae['$inject']=[_0xb635d2('0x1a6d')];function _0x20a9ae(_0x240787){var _0x3912c7=_0xb635d2;_0x240787['state']('app.mail.realtime',{'url':'/realtime','views':{'content@app':{'templateUrl':_0x2ff432,'controller':_0x3912c7('0x22b5')}},'resolve':{'userProfile':[_0x3912c7('0x292'),_0x3912c7('0x2730'),function _0x2bd070(_0x515f36,_0x20c8f2){var _0x32849e=_0x3912c7;return _0x20c8f2[_0x32849e('0x179e')](_0x32849e('0xd14'))?null:_0x515f36[_0x32849e('0xcd6')](_0x32849e('0x455'),{'fields':_0x32849e('0x1b71'),'id':_0x20c8f2['getCurrentUser']()[_0x32849e('0x1d04')]});}],'userProfileSection':[_0x3912c7('0x292'),_0x3912c7('0x2730'),function _0x2b2803(_0x101422,_0x9e4b56){var _0x519539=_0x3912c7;return _0x9e4b56['hasRole'](_0x519539('0xd14'))?null:_0x101422[_0x519539('0xcd6')](_0x519539('0x264e'),{'fields':_0x519539('0x12d6'),'userProfileId':_0x9e4b56[_0x519539('0x1ef8')]()[_0x519539('0x1d04')],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})[_0x3912c7('0x1d72')]('app.mail.realtime.agents',{'url':'/agents','controller':_0x3912c7('0x17a'),'templateUrl':_0x1c7995,'resolve':{'pauses':[_0x3912c7('0x292'),function _0x14213a(_0x1d46eb){var _0x16c881=_0x3912c7;return _0x1d46eb['resolve'](_0x16c881('0x2414'),{'nolimit':!![]});}],'agents':[_0x3912c7('0x292'),_0x3912c7('0x2730'),function _0x44627f(_0x106f2f,_0x46116c){var _0x573023=_0x3912c7;return _0x46116c[_0x573023('0x179e')](_0x573023('0xd14'))?_0x106f2f[_0x573023('0xcd6')]('user@get',{'fields':_0x573023('0x11bb'),'role':_0x573023('0x108'),'sort':_0x573023('0xe11'),'nolimit':!![]}):_0x106f2f[_0x573023('0xcd6')](_0x573023('0x197d'),{'id':_0x46116c['getCurrentUser']()['userProfileId'],'section':_0x573023('0xd61'),'fields':_0x573023('0x11bb'),'role':'agent','sort':_0x573023('0xe11'),'nolimit':!![]});}],'userProfile':[_0x3912c7('0x292'),_0x3912c7('0x2730'),function _0x323776(_0x223a6e,_0x459522){var _0x1d80a1=_0x3912c7;return _0x459522['hasRole'](_0x1d80a1('0xd14'))?null:_0x223a6e[_0x1d80a1('0xcd6')]('userProfile@get',{'fields':_0x1d80a1('0x1b71'),'id':_0x459522[_0x1d80a1('0x1ef8')]()[_0x1d80a1('0x1d04')]});}],'userProfileSection':[_0x3912c7('0x292'),'Auth',function _0x33d13d(_0x58f842,_0x96419d){var _0x51b2d6=_0x3912c7;return _0x96419d['hasRole'](_0x51b2d6('0xd14'))?null:_0x58f842[_0x51b2d6('0xcd6')](_0x51b2d6('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x96419d[_0x51b2d6('0x1ef8')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x3912c7('0x292'),function _0x57f9f5(_0x50a294){var _0x4fca1d=_0x3912c7;return _0x50a294[_0x4fca1d('0xcd6')](_0x4fca1d('0x1fdb'));}]},'authenticate':!![],'permissionId':0x262})[_0x3912c7('0x1d72')](_0x3912c7('0x2464'),{'url':'/queues','controller':_0x3912c7('0x1bd1'),'templateUrl':_0x4deaf5,'resolve':{'queues':[_0x3912c7('0x292'),'Auth',function _0x45365c(_0x21157c,_0x22152c){var _0x1942de=_0x3912c7;return _0x22152c[_0x1942de('0x179e')](_0x1942de('0xd14'))?_0x21157c['resolve']('mailQueue@get',{'type':_0x1942de('0x1a7a'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x21157c[_0x1942de('0xcd6')]('userProfile@getResources',{'id':_0x22152c[_0x1942de('0x1ef8')]()[_0x1942de('0x1d04')],'section':'MailQueues','channel':'mail','type':_0x1942de('0x1a7a'),'sort':_0x1942de('0x7e8'),'limit':0xa,'page':0x1});}],'userProfile':[_0x3912c7('0x292'),_0x3912c7('0x2730'),function _0x113221(_0xc4ac3d,_0xf84919){var _0x3ef4c5=_0x3912c7;return _0xf84919[_0x3ef4c5('0x179e')]('admin')?null:_0xc4ac3d['resolve'](_0x3ef4c5('0x455'),{'fields':_0x3ef4c5('0x1b71'),'id':_0xf84919[_0x3ef4c5('0x1ef8')]()[_0x3ef4c5('0x1d04')]});}],'userProfileSection':[_0x3912c7('0x292'),'Auth',function _0x46e78f(_0x6ce59,_0x109cc7){var _0x2fdf35=_0x3912c7;return _0x109cc7['hasRole'](_0x2fdf35('0xd14'))?null:_0x6ce59[_0x2fdf35('0xcd6')](_0x2fdf35('0x264e'),{'fields':_0x2fdf35('0x12d6'),'userProfileId':_0x109cc7[_0x2fdf35('0x1ef8')]()[_0x2fdf35('0x1d04')],'sectionId':0x259});}],'rpcQueues':[_0x3912c7('0x292'),function _0x564c57(_0x3b5b66){var _0x3ee281=_0x3912c7;return _0x3b5b66[_0x3ee281('0xcd6')](_0x3ee281('0x19b1'));}]},'authenticate':!![],'permissionId':0x262})[_0x3912c7('0x1d72')](_0x3912c7('0xbfc'),{'url':_0x3912c7('0x185b'),'controller':_0x3912c7('0x1da4'),'templateUrl':_0x49451b,'resolve':{'mailAccounts':[_0x3912c7('0x292'),'Auth',function _0x18f432(_0x17b31a,_0x18fb11){var _0x4a4d5e=_0x3912c7;return _0x18fb11[_0x4a4d5e('0x179e')](_0x4a4d5e('0xd14'))?_0x17b31a[_0x4a4d5e('0xcd6')](_0x4a4d5e('0xff5'),{'sort':_0x4a4d5e('0x7e8'),'limit':0xa,'offset':0x0}):_0x17b31a[_0x4a4d5e('0xcd6')](_0x4a4d5e('0x197d'),{'id':_0x18fb11[_0x4a4d5e('0x1ef8')]()[_0x4a4d5e('0x1d04')],'section':_0x4a4d5e('0xa3e'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3912c7('0x292'),_0x3912c7('0x2730'),function _0x3648e5(_0x2135fb,_0x2734c0){var _0x211f8b=_0x3912c7;return _0x2734c0[_0x211f8b('0x179e')](_0x211f8b('0xd14'))?null:_0x2135fb[_0x211f8b('0xcd6')](_0x211f8b('0x455'),{'fields':_0x211f8b('0x1b71'),'id':_0x2734c0[_0x211f8b('0x1ef8')]()[_0x211f8b('0x1d04')]});}],'userProfileSection':[_0x3912c7('0x292'),_0x3912c7('0x2730'),function _0x1a49a3(_0x44eac9,_0x496249){var _0x3cf2a0=_0x3912c7;return _0x496249[_0x3cf2a0('0x179e')](_0x3cf2a0('0xd14'))?null:_0x44eac9[_0x3cf2a0('0xcd6')](_0x3cf2a0('0x264e'),{'fields':_0x3cf2a0('0x12d6'),'userProfileId':_0x496249[_0x3cf2a0('0x1ef8')]()['userProfileId'],'sectionId':0x25a});}],'rpcMailAccounts':[_0x3912c7('0x292'),function _0x190436(_0x26bae8){var _0x3fe9bc=_0x3912c7;return _0x26bae8[_0x3fe9bc('0xcd6')]('rpc@getMailAccounts');}]},'authenticate':!![],'permissionId':0x262});}angular[_0xb635d2('0x153f')](_0xb635d2('0x1c07'),[])['config'](_0x20a9ae)['controller'](_0xb635d2('0x229c'),_0x4192a9)[_0xb635d2('0x1a79')](_0xb635d2('0x76f'),_0x431025)[_0xb635d2('0x1324')]('helperClasses',_0x208fee)[_0xb635d2('0x1a79')](_0xb635d2('0xc43'),_0x150e8a);const _0x5b0268=_0x59426a['p']+'src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues-[chunkhash].html',_0x10f098=_0x59426a['p']+_0xb635d2('0x1084'),_0x59b751=_0x59426a['p']+_0xb635d2('0x1e40'),_0x406d07=_0x59426a['p']+_0xb635d2('0x2258'),_0x4fda87=_0x59426a['p']+_0xb635d2('0x20c');_0x473c6f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x248b'),_0xb635d2('0x17f0'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x473c6f(_0x278ff6,_0x19f048,_0x11441c,_0x2cc2ec,_0x1dc8b6,_0xcd6731,_0x139f3c,_0x11d7c8,_0x429121,_0x48efa3,_0xa02283,_0x5984ee,_0x20e66b,_0x2bb1ba){var _0x37f628=_0xb635d2,_0x2304f4=this;_0x2304f4['currentUser']=_0xa02283['getCurrentUser'](),_0x2304f4[_0x37f628('0xcd2')]=[],_0x2304f4[_0x37f628('0x22f1')]=_0x20e66b,_0x2304f4[_0x37f628('0x5c1')]=_0x5984ee,_0x2304f4[_0x37f628('0xb3d')]=_0x2bb1ba,_0x2304f4[_0x37f628('0x1ccb')]={},_0x2304f4[_0x37f628('0x25ac')]=_0x2304f4[_0x37f628('0x22f1')]&&_0x2304f4[_0x37f628('0x22f1')][_0x37f628('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2304f4[_0x37f628('0x13e4')]=_0x37f628('0x24d'),_0x2304f4[_0x37f628('0x17f0')]=angular['copy'](_0x429121),_0x2304f4[_0x37f628('0x248b')]=_0x11d7c8,_0x2304f4[_0x37f628('0x2570')]=![];!_0x2304f4['mailAccount']&&(_0x2304f4[_0x37f628('0x17f0')]={'active':!![],'cservice':'null','cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x2304f4['title']='MAIL.NEW_MAILACCOUNT',_0x2304f4['newMailAccount']=!![]);_0x19f048[_0x37f628('0x2ef')]['id']&&(_0x2304f4[_0x37f628('0x17f0')][_0x37f628('0xa20')]=_0x19f048[_0x37f628('0x2ef')]['id']);_0x2304f4[_0x37f628('0x10ad')]=_0x8fb90d,_0x2304f4[_0x37f628('0x12aa')]=_0x3ea6bc,_0x2304f4[_0x37f628('0x1fa6')]=_0x5689d1,_0x2304f4[_0x37f628('0x2635')]=_0x1b9f35,_0x2304f4['closeDialog']=_0x28f00c,_0xa02283[_0x37f628('0x179e')](_0x37f628('0xd14'))?_0x48efa3[_0x37f628('0x1bbd')][_0x37f628('0x22d5')]({'fields':_0x37f628('0x104'),'sort':_0x37f628('0x2623')})[_0x37f628('0xe59')]['then'](function(_0x55909e){var _0x21540d=_0x37f628;_0x2304f4[_0x21540d('0x9f8')]=_0x55909e[_0x21540d('0x16a7')]||[];})['catch'](function(_0x575902){var _0xd2bd32=_0x37f628;_0x139f3c[_0xd2bd32('0x8c8')]({'title':_0x575902[_0xd2bd32('0x2833')]?'API:'+_0x575902['status']+_0xd2bd32('0x1b7c')+_0x575902['statusText']:_0xd2bd32('0x2012'),'msg':_0x575902[_0xd2bd32('0x11d0')]?JSON[_0xd2bd32('0x3ad')](_0x575902['data']):_0x575902[_0xd2bd32('0x94f')]()});}):_0x48efa3[_0x37f628('0x1bbd')]['get']({'fields':_0x37f628('0x104'),'sort':_0x37f628('0x2623')})[_0x37f628('0xe59')]['then'](function(_0x3db091){var _0x56a34a=_0x37f628;_0x2304f4[_0x56a34a('0x9f8')]=_0x3db091['rows']||[];})[_0x37f628('0xe19')](function(){var _0x669308=_0x37f628;return _0x48efa3['userProfileSection']['get']({'userProfileId':_0x2304f4['currentUser']['userProfileId'],'sectionId':0x12d})[_0x669308('0xe59')];})['then'](function(_0x4d3e5f){var _0x2c1805=_0x37f628,_0x36d35a=_0x4d3e5f&&_0x4d3e5f[_0x2c1805('0x16a7')]?_0x4d3e5f[_0x2c1805('0x16a7')][0x0]:null;if(!_0x36d35a){var _0x58f207=[],_0x12ed1c=null;_0x2304f4[_0x2c1805('0x17f0')]&&(_0x12ed1c=_0x32d445()[_0x2c1805('0xf15')](_0x2304f4[_0x2c1805('0x9f8')],{'id':Number(_0x2304f4[_0x2c1805('0x17f0')][_0x2c1805('0x2463')])}));for(var _0x1df886=0x0;_0x1df886<_0x2304f4[_0x2c1805('0x9f8')][_0x2c1805('0x25ae')];_0x1df886++){_0x12ed1c&&_0x2304f4[_0x2c1805('0x9f8')][_0x1df886]['id']===_0x12ed1c['id']&&(_0x2304f4[_0x2c1805('0x9f8')][_0x1df886][_0x2c1805('0x1e9d')]=![],_0x58f207[_0x2c1805('0xb76')](_0x2304f4[_0x2c1805('0x9f8')][_0x1df886]));}_0x2304f4[_0x2c1805('0x9f8')]=_0x58f207;}else{if(!_0x36d35a[_0x2c1805('0x11fd')])return _0x48efa3[_0x2c1805('0xd49')]['get']({'sectionId':_0x36d35a['id']})[_0x2c1805('0xe59')][_0x2c1805('0xe19')](function(_0x25d94e){var _0x4179d7=_0x2c1805,_0x24018d=_0x32d445()[_0x4179d7('0x65a')](_0x25d94e[_0x4179d7('0x16a7')],function(_0x18d13a){var _0x4b4db0=_0x4179d7;return _0x32d445()[_0x4b4db0('0xf15')](_0x2304f4[_0x4b4db0('0x9f8')],{'id':_0x18d13a[_0x4b4db0('0x1104')]});}),_0x3a6872=null;_0x2304f4['mailAccount']&&(_0x3a6872=_0x32d445()[_0x4179d7('0xf15')](_0x2304f4[_0x4179d7('0x9f8')],{'id':Number(_0x2304f4['mailAccount'][_0x4179d7('0x2463')])}));if(_0x3a6872&&!_0x32d445()[_0x4179d7('0x201a')](_0x24018d,['id',_0x3a6872['id']])){var _0xf34ec2=_0x32d445()[_0x4179d7('0xf15')](_0x2304f4['lists'],{'id':_0x3a6872['id']});_0xf34ec2[_0x4179d7('0x1e9d')]=![],_0x24018d[_0x4179d7('0xb76')](_0xf34ec2);}_0x2304f4['lists']=_0x24018d;});}})[_0x37f628('0x223b')](function(_0x47c2af){var _0xb911e3=_0x37f628;_0x139f3c[_0xb911e3('0x8c8')]({'title':_0x47c2af[_0xb911e3('0x2833')]?_0xb911e3('0x27f2')+_0x47c2af[_0xb911e3('0x2833')]+_0xb911e3('0x1b7c')+_0x47c2af[_0xb911e3('0x1fd7')]:_0xb911e3('0xd65'),'msg':_0x47c2af['data']?JSON[_0xb911e3('0x3ad')](_0x47c2af[_0xb911e3('0x11d0')]):_0x47c2af[_0xb911e3('0x94f')]()});});function _0x8fb90d(){var _0x9fcc56=_0x37f628;_0x2304f4['errors']=[],_0x48efa3['mailAccount'][_0x9fcc56('0xe5e')](_0x2304f4[_0x9fcc56('0x17f0')])[_0x9fcc56('0xe59')][_0x9fcc56('0xe19')](function(_0x568ed9){var _0x364d30=_0x9fcc56;_0x2304f4[_0x364d30('0x248b')][_0x364d30('0x14c9')](_0x568ed9[_0x364d30('0x250e')]()),_0x139f3c[_0x364d30('0x425')]({'title':_0x364d30('0x1e89'),'msg':_0x2304f4[_0x364d30('0x17f0')][_0x364d30('0x2623')]?_0x2304f4[_0x364d30('0x17f0')][_0x364d30('0x2623')]+_0x364d30('0x105f'):''}),_0x28f00c(_0x568ed9);})[_0x9fcc56('0x223b')](function(_0x176634){var _0x171234=_0x9fcc56;if(_0x176634[_0x171234('0x11d0')]&&_0x176634['data'][_0x171234('0xcd2')]&&_0x176634['data']['errors'][_0x171234('0x25ae')]){_0x2304f4[_0x171234('0xcd2')]=_0x176634['data'][_0x171234('0xcd2')]||[{'message':_0x176634['toString'](),'type':_0x171234('0x116c')}];for(var _0x30a7d1=0x0;_0x30a7d1<_0x176634[_0x171234('0x11d0')][_0x171234('0xcd2')][_0x171234('0x25ae')];_0x30a7d1+=0x1){_0x139f3c['error']({'title':_0x176634[_0x171234('0x11d0')][_0x171234('0xcd2')][_0x30a7d1][_0x171234('0x62e')],'msg':_0x176634[_0x171234('0x11d0')][_0x171234('0xcd2')][_0x30a7d1][_0x171234('0x27e8')]});}}else _0x139f3c[_0x171234('0x8c8')]({'title':_0x176634[_0x171234('0x2833')]?_0x171234('0x27f2')+_0x176634[_0x171234('0x2833')]+_0x171234('0x1b7c')+_0x176634['statusText']:_0x171234('0x116c'),'msg':_0x176634[_0x171234('0x11d0')]?JSON['stringify'](_0x176634[_0x171234('0x11d0')][_0x171234('0x27e8')]):_0x176634[_0x171234('0x94f')]()});});}function _0x3ea6bc(){var _0x542e17=_0x37f628;_0x2304f4[_0x542e17('0xcd2')]=[],_0x48efa3[_0x542e17('0x17f0')]['update']({'id':_0x2304f4[_0x542e17('0x17f0')]['id']},_0x2304f4[_0x542e17('0x17f0')])[_0x542e17('0xe59')][_0x542e17('0xe19')](function(_0x121d83){var _0x2f4c84=_0x542e17,_0x35cc59=_0x32d445()[_0x2f4c84('0xf15')](_0x2304f4['mailAccounts'],{'id':_0x121d83['id']});_0x35cc59&&_0x32d445()[_0x2f4c84('0x1d8')](_0x35cc59,_0x32d445()[_0x2f4c84('0xed5')](_0x121d83['toJSON'](),_0x32d445()[_0x2f4c84('0x1234')](_0x35cc59))),_0x139f3c['success']({'title':_0x2f4c84('0x159e'),'msg':_0x2304f4[_0x2f4c84('0x17f0')][_0x2f4c84('0x2623')]?_0x2304f4[_0x2f4c84('0x17f0')][_0x2f4c84('0x2623')]+_0x2f4c84('0x1c19'):''}),_0x28f00c(_0x121d83);})[_0x542e17('0x223b')](function(_0x41615d){var _0x39d6aa=_0x542e17;if(_0x41615d['data']&&_0x41615d['data'][_0x39d6aa('0xcd2')]&&_0x41615d[_0x39d6aa('0x11d0')][_0x39d6aa('0xcd2')][_0x39d6aa('0x25ae')]){_0x2304f4['errors']=_0x41615d[_0x39d6aa('0x11d0')][_0x39d6aa('0xcd2')]||[{'message':_0x41615d[_0x39d6aa('0x94f')](),'type':_0x39d6aa('0x22c1')}];for(var _0x3efd7d=0x0;_0x3efd7d<_0x41615d[_0x39d6aa('0x11d0')][_0x39d6aa('0xcd2')][_0x39d6aa('0x25ae')];_0x3efd7d++){_0x139f3c[_0x39d6aa('0x8c8')]({'title':_0x41615d[_0x39d6aa('0x11d0')][_0x39d6aa('0xcd2')][_0x3efd7d][_0x39d6aa('0x62e')],'msg':_0x41615d['data'][_0x39d6aa('0xcd2')][_0x3efd7d][_0x39d6aa('0x27e8')]});}}else _0x139f3c['error']({'title':_0x41615d[_0x39d6aa('0x2833')]?_0x39d6aa('0x27f2')+_0x41615d['status']+_0x39d6aa('0x1b7c')+_0x41615d[_0x39d6aa('0x1fd7')]:'api.mailAccount.update','msg':_0x41615d['data']?JSON[_0x39d6aa('0x3ad')](_0x41615d[_0x39d6aa('0x11d0')]['message']):_0x41615d[_0x39d6aa('0x94f')]()});});}function _0x5689d1(_0x584d0d){var _0x1d19cb=_0x37f628;if(_0x2304f4['mailAccount'][_0x1d19cb('0x78')])return _0x139f3c[_0x1d19cb('0x8c8')]({'title':_0x1d19cb('0x1ab'),'msg':_0x1d19cb('0x214d')});_0x2304f4['errors']=[];var _0x187d77=_0x2cc2ec['confirm']()['title'](_0x1d19cb('0x24d0'))[_0x1d19cb('0xd0')](_0x1d19cb('0x2128'))[_0x1d19cb('0x4d1')](_0x1d19cb('0x164b'))['ok'](_0x1d19cb('0x2198'))['cancel'](_0x1d19cb('0x8a3'))[_0x1d19cb('0x1345')](_0x584d0d);_0x2cc2ec[_0x1d19cb('0x26b2')](_0x187d77)[_0x1d19cb('0xe19')](function(){var _0x4fdac0=_0x1d19cb;_0x48efa3[_0x4fdac0('0x17f0')][_0x4fdac0('0x229e')]({'id':_0x2304f4[_0x4fdac0('0x17f0')]['id']})[_0x4fdac0('0xe59')]['then'](function(){var _0x3d3785=_0x4fdac0;_0x32d445()['remove'](_0x2304f4[_0x3d3785('0x248b')],{'id':_0x2304f4['mailAccount']['id']}),_0x139f3c[_0x3d3785('0x425')]({'title':_0x3d3785('0x18d4'),'msg':(_0x2304f4[_0x3d3785('0x17f0')]['name']||'mailAccount')+_0x3d3785('0x2182')}),_0x28f00c(_0x2304f4[_0x3d3785('0x17f0')]);})[_0x4fdac0('0x223b')](function(_0x439048){var _0x1a4ef6=_0x4fdac0;if(_0x439048['data']&&_0x439048[_0x1a4ef6('0x11d0')]['errors']&&_0x439048['data'][_0x1a4ef6('0xcd2')]['length']){_0x2304f4[_0x1a4ef6('0xcd2')]=_0x439048[_0x1a4ef6('0x11d0')]['errors']||[{'message':_0x439048[_0x1a4ef6('0x94f')](),'type':_0x1a4ef6('0x1cf0')}];for(var _0x32f086=0x0;_0x32f086<_0x439048[_0x1a4ef6('0x11d0')]['errors'][_0x1a4ef6('0x25ae')];_0x32f086++){_0x139f3c[_0x1a4ef6('0x8c8')]({'title':_0x439048[_0x1a4ef6('0x11d0')][_0x1a4ef6('0xcd2')][_0x32f086]['type'],'msg':_0x439048[_0x1a4ef6('0x11d0')][_0x1a4ef6('0xcd2')][_0x32f086][_0x1a4ef6('0x27e8')]});}}else _0x139f3c[_0x1a4ef6('0x8c8')]({'title':_0x439048['status']?_0x1a4ef6('0x27f2')+_0x439048['status']+_0x1a4ef6('0x1b7c')+_0x439048[_0x1a4ef6('0x1fd7')]:_0x1a4ef6('0x1cf0'),'msg':_0x439048[_0x1a4ef6('0x11d0')]?JSON[_0x1a4ef6('0x3ad')](_0x439048[_0x1a4ef6('0x11d0')][_0x1a4ef6('0x27e8')]):_0x439048[_0x1a4ef6('0x27e8')]||_0x439048[_0x1a4ef6('0x94f')]()});});},function(){});}function _0x1b9f35(_0xdb71ba){return _0xdb71ba===null?undefined:new Date(_0xdb71ba);}function _0x28f00c(_0x5aea38){var _0x384f41=_0x37f628;_0x2cc2ec[_0x384f41('0x11ed')](_0x5aea38);}}const _0x556368=_0x473c6f,_0x2cb5b8=_0x59426a['p']+_0xb635d2('0x1343'),_0x590c7d=_0x59426a['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html',_0x38c307=_0x59426a['p']+_0xb635d2('0x471'),_0x29dd8e=_0x59426a['p']+_0xb635d2('0x9ae'),_0x99816f=_0x59426a['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html',_0x8bd85b=_0x59426a['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html',_0x415a9e=_0x59426a['p']+_0xb635d2('0x21c3'),_0x5dee62=_0x59426a['p']+_0xb635d2('0x2675'),_0xf20106=_0x59426a['p']+_0xb635d2('0xa1d'),_0x517e35=_0x59426a['p']+_0xb635d2('0x91');_0x5494f1['$inject']=[_0xb635d2('0xffc'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0xf65'),'Auth'];var _0x319fb1={'agent':_0x2cb5b8,'autoreply':_0x590c7d,'close':_0x38c307,'gotoif':_0x29dd8e,'gotop':_0x99816f,'interval':_0x8bd85b,'noop':_0x415a9e,'queue':_0x5dee62,'system':_0xf20106,'tag':_0x517e35};function _0x5494f1(_0x53c39e,_0x1bb959,_0x17666c,_0xf78d33,_0x13f2bf){var _0x3a20c5=_0xb635d2,_0x168e5f=this;_0x168e5f[_0x3a20c5('0x15a5')]=_0x13f2bf[_0x3a20c5('0x1ef8')](),_0x168e5f['mailAccount']={},_0x168e5f[_0x3a20c5('0x26a2')]={'count':0x0,'rows':[]},_0x168e5f[_0x3a20c5('0x1c13')]=[],_0x168e5f[_0x3a20c5('0xb3d')],_0x168e5f[_0x3a20c5('0xa16')]={'sort':_0x3a20c5('0xb33')},_0x168e5f[_0x3a20c5('0x23bb')]=_0x32d445()[_0x3a20c5('0x1337')](_0x32d445()['sortBy']([{'app':_0x3a20c5('0x2102'),'appType':_0x3a20c5('0x134c'),'types':['always',_0x3a20c5('0x261d'),_0x3a20c5('0x15a8')],'fields':[],'isApp':![]},{'app':'noop','appType':'noop','type':_0x3a20c5('0xc09'),'icon':'icon-apps','interval':_0x3a20c5('0x2292'),'required':!![],'isApp':!![],'fields':[{'title':_0x3a20c5('0x653'),'name':_0x3a20c5('0x2'),'type':_0x3a20c5('0x1bc6'),'param':0x0}]},{'app':_0x3a20c5('0x1917'),'appType':'system','type':_0x3a20c5('0x1917'),'icon':_0x3a20c5('0x27be'),'interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':_0x3a20c5('0x1a9e'),'field':{'name':_0x3a20c5('0x19a5'),'key':_0x3a20c5('0x2623')},'route':_0x3a20c5('0x19a5'),'filters':{'fields':'id,name','sort':_0x3a20c5('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x3a20c5('0x19b8'),'name':'command','type':'text','required':!![],'param':0x0},{'title':'Variable','name':_0x3a20c5('0x19a5'),'type':_0x3a20c5('0x14b8'),'values':'variables','value':_0x3a20c5('0x2328'),'option':_0x3a20c5('0x2328'),'defaultValues':[{'value':'\x27\x27','option':_0x3a20c5('0x1b16')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x3a20c5('0x16fe'),'appType':_0x3a20c5('0x16fe'),'type':_0x3a20c5('0x1fa1'),'icon':_0x3a20c5('0x27be'),'interval':_0x3a20c5('0x2292'),'isApp':!![],'fields':[{'title':_0x3a20c5('0x23fb'),'name':'priority','type':_0x3a20c5('0x1c60'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x3a20c5('0x22c3'),'appType':_0x3a20c5('0x22c3'),'type':_0x3a20c5('0x22c3'),'icon':_0x3a20c5('0x27be'),'interval':_0x3a20c5('0x2292'),'isApp':!![],'fields':[{'title':_0x3a20c5('0x48c'),'name':_0x3a20c5('0x1c03'),'type':'text','required':!![],'param':0x0},{'title':_0x3a20c5('0x50'),'name':_0x3a20c5('0x50'),'type':_0x3a20c5('0x1c60'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x3a20c5('0x347'),'type':_0x3a20c5('0x1c60'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x3a20c5('0x26a8'),'appType':_0x3a20c5('0x26a8'),'foreignKey':_0x3a20c5('0x840'),'type':'queue','icon':'icon-apps','interval':_0x3a20c5('0x2292'),'isApp':!![],'extraApi':[{'name':_0x3a20c5('0x671'),'field':{'name':_0x3a20c5('0x26a8'),'key':'name'},'route':_0x3a20c5('0x18d9'),'filters':{'fields':_0x3a20c5('0x1555'),'sort':'name','nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':_0x3a20c5('0x9'),'name':_0x3a20c5('0x26a8'),'type':_0x3a20c5('0x14b8'),'values':_0x3a20c5('0x671'),'value':_0x3a20c5('0x15df'),'option':_0x3a20c5('0x15df'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x3a20c5('0x784'),'name':_0x3a20c5('0x2058'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x3a20c5('0x108'),'appType':_0x3a20c5('0x108'),'type':_0x3a20c5('0x108'),'foreignKey':'UserId','icon':_0x3a20c5('0x27be'),'interval':_0x3a20c5('0x2292'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x3a20c5('0x108'),'key':_0x3a20c5('0x2623')},'route':_0x3a20c5('0x10c6'),'filters':{'fields':_0x3a20c5('0x104'),'sort':_0x3a20c5('0x2623'),'nolimit':!![],'role':_0x3a20c5('0x108')},'permissions':{'section':0xca}}],'fields':[{'title':_0x3a20c5('0x142e'),'name':_0x3a20c5('0x108'),'type':'apiselect','values':_0x3a20c5('0x29b'),'value':_0x3a20c5('0xec8'),'option':_0x3a20c5('0xec8'),'required':!![],'param':0x0},{'title':_0x3a20c5('0x784'),'name':'timeout','type':_0x3a20c5('0x1c60'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':_0x3a20c5('0x400'),'type':_0x3a20c5('0x400'),'icon':_0x3a20c5('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'times','name':_0x3a20c5('0x1ec4'),'type':'select','defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0x3a20c5('0x1bc6'),'type':_0x3a20c5('0x158f'),'required':!![],'param':0x1}]},{'app':'close','appType':_0x3a20c5('0x1886'),'type':_0x3a20c5('0x1886'),'icon':_0x3a20c5('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3a20c5('0x1892'),'name':'disposition','type':_0x3a20c5('0x1bc6'),'required':!![],'param':0x0}]},{'app':'tag','appType':_0x3a20c5('0x2037'),'type':_0x3a20c5('0x2037'),'foreignKey':_0x3a20c5('0x30a'),'icon':_0x3a20c5('0x27be'),'interval':_0x3a20c5('0x2292'),'isApp':!![],'extraApi':[{'name':_0x3a20c5('0x1105'),'field':{'name':_0x3a20c5('0x2037'),'key':_0x3a20c5('0x2623')},'route':_0x3a20c5('0x2037'),'filters':{'fields':_0x3a20c5('0x104'),'sort':_0x3a20c5('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3a20c5('0x1172'),'name':'tag','type':_0x3a20c5('0x14b8'),'values':'tags','value':_0x3a20c5('0x460'),'option':_0x3a20c5('0x460'),'required':!![],'param':0x0}]}],[_0x3a20c5('0xf2b')]),{'isApp':![]}),_0x168e5f[_0x3a20c5('0x15a8')]={'group':{'name':_0x3a20c5('0x866'),'pull':_0x3a20c5('0x2384')},'animation':0x64,'sort':![]},_0x168e5f[_0x3a20c5('0x2358')]={'group':{'name':_0x3a20c5('0x328'),'put':_0x3a20c5('0x866')},'animation':0x64,'onAdd':function _0x4ab0a8(_0x436f7c){_0x5cca5a(_0x436f7c,_0x436f7c['newIndex']);},'onSort':function _0x4755cb(){_0x2240f2();}},_0x168e5f[_0x3a20c5('0x15f9')]=_0x3ff919,_0x168e5f['deleteConfirm']=_0x32f3,_0x168e5f[_0x3a20c5('0x1a91')]=_0x4d4cac,_0x168e5f[_0x3a20c5('0x9a')]=_0x5cca5a,_0x168e5f[_0x3a20c5('0xf50')]=_0x4f4319,_0x168e5f[_0x3a20c5('0x1557')]=_0x5648ee,_0x168e5f[_0x3a20c5('0xc29')]=_0x4499ff,_0x168e5f[_0x3a20c5('0x20b4')]=_0x2240f2,_0x168e5f[_0x3a20c5('0x157')]=_0x17796a;function _0x3ff919(_0x62d337,_0x43ab78){var _0x47acc8=_0x3a20c5;_0x168e5f[_0x47acc8('0x17f0')]=_0x62d337,_0x168e5f[_0x47acc8('0xb3d')]=typeof _0x43ab78!=='undefined'?_0x43ab78:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x168e5f[_0x47acc8('0x2358')]['disabled']=!_0x168e5f[_0x47acc8('0xb3d')][_0x47acc8('0x12bc')]?!![]:![],_0x168e5f[_0x47acc8('0xa16')]['id']=_0x62d337['id'],_0x168e5f[_0x47acc8('0xa16')]['isApp']=!![],_0x168e5f[_0x47acc8('0xa16')][_0x47acc8('0x1bbe')]=!![],_0x168e5f[_0x47acc8('0x1a91')](),_0x168e5f[_0x47acc8('0x157')]();}function _0x32f3(_0x1ff4d5,_0x452240,_0x3ad454){var _0x1a56e3=_0x3a20c5,_0x46d837=_0x1bb959[_0x1a56e3('0xa5')]()[_0x1a56e3('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x1a56e3('0x221c')](_0x1a56e3('0xab2')+_0x1ff4d5[_0x1a56e3('0xf2b')]+''+'\x20will\x20be\x20deleted.')[_0x1a56e3('0x4d1')](_0x1a56e3('0x21d1'))[_0x1a56e3('0x1345')](_0x3ad454)['ok']('OK')['cancel'](_0x1a56e3('0x17'));_0x1bb959[_0x1a56e3('0x26b2')](_0x46d837)['then'](function(){var _0xd2aa53=_0x1a56e3;_0x168e5f[_0xd2aa53('0x26a2')]['rows']['splice'](_0x452240,0x1),_0x2240f2();},function(){var _0xfdd915=_0x1a56e3;console[_0xfdd915('0x1fe9')]('CANCEL');});}function _0x5cca5a(_0x4395da,_0x2f999a){var _0x40709f=_0x3a20c5;if(_0x168e5f[_0x40709f('0x26a2')][_0x40709f('0x16a7')]['length']){var _0x3dcedb=_0x168e5f['mailAccountApps'][_0x40709f('0x16a7')][_0x2f999a]?_0x168e5f[_0x40709f('0x26a2')][_0x40709f('0x16a7')][_0x2f999a]:_0x168e5f['mailAccountApps']['rows'][0x0],_0x1276da=(_0x3dcedb[_0x40709f('0xf44')]||_0x3dcedb[_0x40709f('0xf2b')])[_0x40709f('0x20dd')]();_0x1bb959['show']({'controller':'EditMailAccountApp'[_0x40709f('0x1007')](_0x1276da,_0x40709f('0x2893')),'controllerAs':'vm','templateUrl':_0x319fb1[_0x1276da],'parent':angular[_0x40709f('0x24a1')](_0x17666c[_0x40709f('0x19b2')]),'targetEvent':_0x4395da,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x3dcedb,'mailAccount':_0x168e5f[_0x40709f('0x17f0')],'crudPermissions':_0x168e5f['crudPermissions']}})[_0x40709f('0xe19')](function(_0x4a043b){var _0x299b36=_0x40709f;_0x4a043b&&(_0x4a043b['id']?_0x168e5f[_0x299b36('0x26a2')]['rows'][_0x2f999a]=_0x4a043b:_0x168e5f[_0x299b36('0x26a2')]['rows'][_0x299b36('0x1c8e')](_0x2f999a,0x0,_0x4a043b),_0x2240f2());})[_0x40709f('0x223b')](function(_0x49bf96){var _0x5cfb72=_0x40709f;_0x49bf96&&_0xf78d33['error']({'title':_0x49bf96[_0x5cfb72('0x2833')]?_0x5cfb72('0x27f2')+_0x49bf96['status']+_0x5cfb72('0x1b7c')+_0x49bf96['statusText']:_0x5cfb72('0x1c4b'),'msg':_0x49bf96['data']?JSON['stringify'](_0x49bf96['data']):_0x49bf96[_0x5cfb72('0x94f')]()});});}}function _0x4f4319(_0x147fd2,_0x41b9f4){var _0x2f6057=_0x3a20c5;if(_0x168e5f[_0x2f6057('0x26a2')][_0x2f6057('0x16a7')][_0x2f6057('0x25ae')]){var _0x50b652=_0x168e5f['mailAccountApps']['rows'][_0x41b9f4]?_0x168e5f[_0x2f6057('0x26a2')][_0x2f6057('0x16a7')][_0x41b9f4]:_0x168e5f[_0x2f6057('0x26a2')][_0x2f6057('0x16a7')][0x0];_0x1bb959[_0x2f6057('0x26b2')]({'controller':_0x2f6057('0x1182'),'controllerAs':'vm','templateUrl':_0x8bd85b,'parent':angular[_0x2f6057('0x24a1')](_0x17666c[_0x2f6057('0x19b2')]),'targetEvent':_0x147fd2,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x50b652[_0x2f6057('0x134c')],'IntervalId':_0x50b652['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x168e5f[_0x2f6057('0xb3d')]}})[_0x2f6057('0xe19')](function(_0x42f7ba){var _0x3b16fd=_0x2f6057;_0x42f7ba&&(_0x50b652['interval']=_0x42f7ba[_0x3b16fd('0x134c')]||_0x3b16fd('0x2292'),_0x50b652[_0x3b16fd('0x1fc1')]=_0x42f7ba[_0x3b16fd('0x1fc1')]||null,_0x2240f2());});}}function _0x2240f2(){var _0x3c44e2=_0x3a20c5,_0x42c44f=0x1,_0x38aef4=[];for(var _0x184af0=0x0;_0x184af0<_0x168e5f[_0x3c44e2('0x26a2')][_0x3c44e2('0x16a7')][_0x3c44e2('0x25ae')];_0x184af0++){var _0x4542f4=_0x168e5f[_0x3c44e2('0x26a2')][_0x3c44e2('0x16a7')][_0x184af0],_0xaf28ea=[],_0x4bd0b3=[];_0x4542f4['intervals']=_0x4542f4['interval']!=='*,*,*,*'?[_0x4542f4[_0x3c44e2('0x134c')]]:_0x4542f4[_0x3c44e2('0x1fc1')]?_0x32d445()[_0x3c44e2('0x65a')](_0x32d445()[_0x3c44e2('0x2891')](_0x168e5f[_0x3c44e2('0x10e0')]['rows'],{'IntervalId':_0x4542f4[_0x3c44e2('0x1fc1')]}),_0x3c44e2('0x134c')):[],_0x4542f4['context']=_0x168e5f[_0x3c44e2('0x17f0')][_0x3c44e2('0x1318')],_0x4542f4[_0x3c44e2('0x632')]=_0x168e5f[_0x3c44e2('0x17f0')][_0x3c44e2('0x632')],_0x4542f4[_0x3c44e2('0x62e')]&&(_0x4542f4['type']=_0x4542f4['type']['toLowerCase']()),_0x4542f4[_0x3c44e2('0xb33')]=_0xaf28ea['length']?_0x32d445()[_0x3c44e2('0x27ed')](_0xaf28ea)[_0x3c44e2('0xb33')]+0x1:_0x42c44f,_0x42c44f=(_0x4bd0b3[_0x3c44e2('0x25ae')]?_0x32d445()[_0x3c44e2('0x27ed')](_0x4bd0b3)[_0x3c44e2('0xb33')]:_0x4542f4[_0x3c44e2('0xb33')])+0x1,_0x38aef4=_0x32d445()[_0x3c44e2('0x1007')](_0x38aef4,_0xaf28ea,[_0x4542f4],_0x4bd0b3);}_0x53c39e[_0x3c44e2('0x17f0')][_0x3c44e2('0x25d9')]({'id':_0x168e5f['mailAccount']['id']},_0x32d445()[_0x3c44e2('0x14c')](_0x38aef4,_0x3c44e2('0xb33')))[_0x3c44e2('0xe59')][_0x3c44e2('0xe19')](function(_0x5ca2b8){var _0x32e55a=_0x3c44e2;_0x168e5f[_0x32e55a('0x26a2')][_0x32e55a('0x16a7')]=_0x5ca2b8[_0x32e55a('0x16a7')];})[_0x3c44e2('0x223b')](function(_0x2a3f4a){console['error'](_0x2a3f4a);});}function _0x2385f1(_0x5945f1){var _0x59961a=_0x3a20c5;_0x168e5f[_0x59961a('0x26a2')]=_0x5945f1||{'count':0x0,'rows':[]};}function _0x17796a(){var _0x1797cf=_0x3a20c5;return _0x53c39e[_0x1797cf('0x134c')][_0x1797cf('0x22d5')]({'fields':_0x1797cf('0x1a19')})[_0x1797cf('0xe59')][_0x1797cf('0xe19')](function(_0x5b70f1){_0x168e5f['intervals']=_0x5b70f1;})[_0x1797cf('0x223b')](function(_0x177ef6){var _0x240dad=_0x1797cf;console[_0x240dad('0x8c8')](_0x177ef6);});}function _0x4d4cac(){var _0x30ebd2=_0x3a20c5;_0x168e5f[_0x30ebd2('0x9c8')]=_0x53c39e['mailAccount'][_0x30ebd2('0x1654')](_0x168e5f[_0x30ebd2('0xa16')],_0x2385f1)[_0x30ebd2('0xe59')];}function _0x5648ee(_0x136c6f){var _0x44457f=_0x3a20c5;_0x32d445()[_0x44457f('0xa8b')](_0x168e5f['mailAccountApps']['rows'],{'id':_0x136c6f['id']}),_0x2240f2(),_0xf78d33[_0x44457f('0x425')]({'title':'App\x20deleted!','msg':_0x136c6f[_0x44457f('0xf2b')]?_0x136c6f[_0x44457f('0xf2b')]+_0x44457f('0x2182'):''});}function _0x4499ff(_0x4446f8){var _0x1b1ac1=_0x3a20c5,_0x370be1=_0x1bb959[_0x1b1ac1('0xa5')]()['title'](_0x1b1ac1('0x6de'))['htmlContent'](_0x1b1ac1('0xab2')+_0x168e5f['selectedMailAccountApps'][_0x1b1ac1('0x25ae')]+_0x1b1ac1('0x5bc')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1b1ac1('0x17bf'))['targetEvent'](_0x4446f8)['ok']('OK')[_0x1b1ac1('0x2c1')](_0x1b1ac1('0x17'));_0x1bb959['show'](_0x370be1)[_0x1b1ac1('0xe19')](function(){var _0x274f19=_0x1b1ac1;_0x168e5f[_0x274f19('0x1c13')][_0x274f19('0x1d7e')](function(_0x748f12){var _0x45b446=_0x274f19;_0x32d445()[_0x45b446('0xa8b')](_0x168e5f[_0x45b446('0x26a2')]['rows'],{'id':_0x748f12['id']});}),_0x168e5f[_0x274f19('0x1c13')]=[],_0x2240f2();});}}const _0x3b3fc8=_0x5494f1;_0xde89dd[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x17f0'),'mailAccounts','realtime',_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0xde89dd(_0x283d21,_0x2e107a,_0x4404f5,_0x309a9c,_0x10744b,_0x1a022d,_0x2cd7ee,_0x4780a5,_0x53ff4d,_0xebcf37){var _0x375ec2=_0xb635d2,_0x42376e=this;_0x42376e[_0x375ec2('0x15a5')]=_0x53ff4d[_0x375ec2('0x1ef8')](),_0x42376e['mailAccount']=_0x10744b,_0x42376e[_0x375ec2('0xb3d')]=_0xebcf37,_0x42376e[_0x375ec2('0x24e1')]=_0x2cd7ee,_0x42376e[_0x375ec2('0xe4b')]=[],_0x42376e[_0x375ec2('0x1884')]=[],_0x42376e[_0x375ec2('0x2273')]=[],_0x42376e[_0x375ec2('0x286c')]=[],_0x42376e[_0x375ec2('0xf79')]=[],_0x42376e['pendingChanges']=![],_0x42376e[_0x375ec2('0x888')]=_0xb9ec5,_0x42376e[_0x375ec2('0x4b8')]=_0x37ca48,_0x42376e[_0x375ec2('0x2584')]=_0xe490a,_0x42376e[_0x375ec2('0xc00')]={'readOnly':!_0x42376e[_0x375ec2('0xb3d')][_0x375ec2('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x375ec2('0xe11'),'line2':[_0x375ec2('0x2623'),_0x375ec2('0x1b66')],'line3':'','labelAll':_0x4780a5[_0x375ec2('0x2159')]('MAIL.ALL_AGENTS'),'labelSelected':_0x4780a5[_0x375ec2('0x2159')](_0x375ec2('0x2079')),'transferCallback':function _0x1621fa(){var _0x5a2f37=_0x375ec2,_0xc7499c=_0x32d445()[_0x5a2f37('0x118')](_0x42376e[_0x5a2f37('0xf79')],_0x42376e[_0x5a2f37('0x2273')],'id');_0x42376e['pendingChanges']=_0x32d445()[_0x5a2f37('0x14b4')](_0xc7499c)?![]:!![];}};function _0xb9ec5(){var _0x223b4a=_0x375ec2;return _0x53ff4d['hasRole'](_0x223b4a('0xd14'))?_0x4ce5c0()['catch'](function(_0xc8fc8e){var _0x4d275e=_0x223b4a;_0x4404f5['error']({'title':_0xc8fc8e[_0x4d275e('0x2833')]?_0x4d275e('0x27f2')+_0xc8fc8e[_0x4d275e('0x2833')]+_0x4d275e('0x1b7c')+_0xc8fc8e[_0x4d275e('0x1fd7')]:_0x4d275e('0x1e86'),'msg':_0xc8fc8e[_0x4d275e('0x2833')]?JSON[_0x4d275e('0x3ad')](_0xc8fc8e[_0x4d275e('0x11d0')]):_0xc8fc8e['toString']()});}):_0x380b1f()[_0x223b4a('0xe19')](function(_0x18dfea){var _0x21b61b=_0x223b4a;return _0x42376e[_0x21b61b('0x1e59')]=_0x18dfea,_0x4ce5c0();})[_0x223b4a('0x223b')](function(_0x200d57){var _0x467120=_0x223b4a;_0x4404f5[_0x467120('0x8c8')]({'title':_0x200d57[_0x467120('0x2833')]?_0x467120('0x27f2')+_0x200d57[_0x467120('0x2833')]+'\x20-\x20'+_0x200d57[_0x467120('0x1fd7')]:_0x467120('0x1e86'),'msg':_0x200d57['status']?JSON['stringify'](_0x200d57[_0x467120('0x11d0')]):_0x200d57[_0x467120('0x94f')]()});});}function _0x380b1f(){return _0x2e107a(function(_0x122772,_0x868e8e){var _0x586381=a0_0x5325;_0x309a9c[_0x586381('0xb59')][_0x586381('0x22d5')]({'userProfileId':_0x42376e[_0x586381('0x15a5')][_0x586381('0x1d04')],'name':_0x586381('0xd61')})[_0x586381('0xe59')][_0x586381('0xe19')](function(_0x146312){var _0x154d9d=_0x586381,_0x10cc76=_0x146312&&_0x146312[_0x154d9d('0x16a7')]?_0x146312[_0x154d9d('0x16a7')][0x0]:null;_0x122772(_0x10cc76);})[_0x586381('0x223b')](function(_0x576874){_0x868e8e(_0x576874);});});}function _0x4ce5c0(){return _0x2e107a(function(_0x49225f,_0x3d2066){var _0xec882f=a0_0x5325;return _0x5de8f2()[_0xec882f('0xe19')](function(_0xe1a76d){var _0x310acc=_0xec882f;return _0x42376e[_0x310acc('0xe4b')]=_0xe1a76d['rows']?_0xe1a76d[_0x310acc('0x16a7')]:[],_0x53ff4d[_0x310acc('0x179e')](_0x310acc('0xd14'))?_0xe1a76d:_0x42376e[_0x310acc('0x1e59')]?_0x42376e['section'][_0x310acc('0x11fd')]?_0xe1a76d:_0x3b0ab8():null;})[_0xec882f('0xe19')](function(_0x4a8259){var _0x11f5a7=_0xec882f,_0x50901a=_0x4a8259&&_0x4a8259['rows']?_0x4a8259[_0x11f5a7('0x16a7')]:[];return _0x42376e['allowedItems']=_0x32d445()[_0x11f5a7('0x65a')](_0x50901a,function(_0xdfc572){var _0x56ca13=_0x11f5a7;return _0x32d445()[_0x56ca13('0xf15')](_0x42376e[_0x56ca13('0xe4b')],{'id':_0x53ff4d[_0x56ca13('0x179e')](_0x56ca13('0xd14'))||_0x42376e[_0x56ca13('0x1e59')][_0x56ca13('0x11fd')]?_0xdfc572['id']:_0xdfc572[_0x56ca13('0x1104')]});}),_0x42376e['startingAllowedItems']=angular['copy'](_0x42376e['allowedItems']),_0x42376e[_0x11f5a7('0xe4b')][_0x11f5a7('0x1d7e')](function(_0x6f245f){var _0x5bc74b=_0x11f5a7,_0x2b65c7=_0x32d445()['find'](_0x42376e[_0x5bc74b('0x1884')],{'id':_0x6f245f['id']});_0x53ff4d['hasRole']('admin')?_0x6f245f['isValid']=!![]:_0x6f245f['isValid']=typeof _0x2b65c7!==_0x5bc74b('0x1143')?!![]:![];}),_0x356f07();})[_0xec882f('0xe19')](function(_0x12f46b){var _0x9fbcc3=_0xec882f,_0x541d69=_0x12f46b&&_0x12f46b[_0x9fbcc3('0x16a7')]?_0x12f46b[_0x9fbcc3('0x16a7')]:[];_0x42376e[_0x9fbcc3('0x2273')]=_0x32d445()['map'](_0x541d69,function(_0x37c749){var _0x5c69da=_0x9fbcc3,_0x3a1931=_0x32d445()[_0x5c69da('0xf15')](_0x42376e[_0x5c69da('0xe4b')],{'id':_0x37c749['id']});return _0x3a1931[_0x5c69da('0x21e3')]=_0x37c749[_0x5c69da('0x1621')]?_0x5c69da('0x815')+_0x37c749[_0x5c69da('0x1621')][_0x5c69da('0x21e3')]:'',_0x3a1931['internal']=typeof _0x37c749[_0x5c69da('0x1b66')]!==_0x5c69da('0x1143')?'<'+_0x37c749['internal']+'>':'',_0x3a1931;}),_0x42376e[_0x9fbcc3('0xf79')]=angular[_0x9fbcc3('0x89')](_0x42376e['selectedItems']),_0x42376e[_0x9fbcc3('0xc00')][_0x9fbcc3('0x2273')]=_0x42376e[_0x9fbcc3('0x2273')],_0x42376e['dualMultiselectOptions'][_0x9fbcc3('0xe4b')]=_0x32d445()[_0x9fbcc3('0x501')](_0x42376e[_0x9fbcc3('0x1884')],_0x42376e[_0x9fbcc3('0xc00')]['selectedItems'],'id'),_0x49225f();})[_0xec882f('0x223b')](function(_0x1baa69){_0x3d2066(_0x1baa69);});});}function _0x3b0ab8(){return _0x2e107a(function(_0x4292dc,_0x3f9911){var _0x57fc01=a0_0x5325;return _0x309a9c['userProfileResource'][_0x57fc01('0x22d5')]({'sectionId':_0x42376e[_0x57fc01('0x1e59')]['id'],'nolimit':!![]})[_0x57fc01('0xe59')][_0x57fc01('0xe19')](function(_0x5daf6a){_0x4292dc(_0x5daf6a);})['catch'](function(_0x1f645e){_0x3f9911(_0x1f645e);});});}function _0x356f07(){return _0x2e107a(function(_0x1fe9f6,_0x246d5a){var _0x2b6a90=a0_0x5325;return _0x309a9c['mailAccount'][_0x2b6a90('0x14fd')]({'id':_0x42376e[_0x2b6a90('0x17f0')]['id'],'fields':_0x2b6a90('0x244f'),'nolimit':!![],'role':_0x2b6a90('0x108')})['$promise'][_0x2b6a90('0xe19')](function(_0x1120e7){_0x1fe9f6(_0x1120e7);})[_0x2b6a90('0x223b')](function(_0xc4e446){_0x246d5a(_0xc4e446);});});}function _0x5de8f2(){return _0x2e107a(function(_0x18f0cf,_0x4d2e12){var _0x1d76d2=a0_0x5325;return _0x309a9c[_0x1d76d2('0x10c6')][_0x1d76d2('0x22d5')]({'fields':_0x1d76d2('0x244f'),'nolimit':!![],'role':'agent'})[_0x1d76d2('0xe59')][_0x1d76d2('0xe19')](function(_0x382ca4){_0x18f0cf(_0x382ca4);})[_0x1d76d2('0x223b')](function(_0x88e6d7){_0x4d2e12(_0x88e6d7);});});}function _0x4b0350(_0x3c1b43){return _0x2e107a(function(_0x1cd169,_0x28f978){var _0x2eb6da=a0_0x5325;_0x32d445()[_0x2eb6da('0x14b4')](_0x3c1b43)?_0x1cd169():_0x309a9c[_0x2eb6da('0x17f0')][_0x2eb6da('0x2271')]({'id':_0x42376e[_0x2eb6da('0x17f0')]['id'],'ids':_0x32d445()[_0x2eb6da('0x65a')](_0x3c1b43,'id')})[_0x2eb6da('0xe59')]['then'](function(){_0x1cd169();})[_0x2eb6da('0x223b')](function(_0x3ae300){_0x28f978(_0x3ae300);});});}function _0x51c50f(_0x12237b){return _0x2e107a(function(_0x29c55a,_0x54e4b2){var _0xa3cd77=a0_0x5325;_0x32d445()['isEmpty'](_0x12237b)?_0x29c55a():_0x309a9c[_0xa3cd77('0x17f0')][_0xa3cd77('0x6aa')]({'id':_0x42376e[_0xa3cd77('0x17f0')]['id'],'ids':_0x32d445()[_0xa3cd77('0x65a')](_0x12237b,'id')})['$promise'][_0xa3cd77('0xe19')](function(){_0x29c55a();})['catch'](function(_0x2b67bb){_0x54e4b2(_0x2b67bb);});});}function _0x37ca48(){var _0xcbbf53=_0x375ec2,_0x488451=_0x32d445()[_0xcbbf53('0x501')](_0x42376e['startingSelectedItems'],_0x42376e[_0xcbbf53('0x2273')],'id'),_0x5b13db=_0x32d445()[_0xcbbf53('0x501')](_0x42376e[_0xcbbf53('0x2273')],_0x42376e[_0xcbbf53('0xf79')],'id');return _0x51c50f(_0x488451)[_0xcbbf53('0xe19')](function(){return _0x4b0350(_0x5b13db);})['then'](function(){var _0x572319=_0xcbbf53;_0x42376e[_0x572319('0x16e7')]=![],_0x42376e[_0x572319('0x286c')]=angular[_0x572319('0x89')](_0x42376e[_0x572319('0x1884')]),_0x42376e[_0x572319('0xf79')]=angular[_0x572319('0x89')](_0x42376e[_0x572319('0x2273')]),_0x4404f5['success']({'title':_0x572319('0x1dca'),'msg':_0x572319('0x25d')});})[_0xcbbf53('0x223b')](function(_0x5b7115){var _0xb6cb51=_0xcbbf53;_0x4404f5['error']({'title':_0x5b7115[_0xb6cb51('0x2833')]?'API:'+_0x5b7115[_0xb6cb51('0x2833')]+_0xb6cb51('0x1b7c')+_0x5b7115['statusText']:_0xb6cb51('0x2168'),'msg':_0x5b7115['status']?JSON[_0xb6cb51('0x3ad')](_0x5b7115[_0xb6cb51('0x11d0')]):_0x5b7115[_0xb6cb51('0x94f')]()});});}function _0xe490a(){var _0x32dccc=_0x375ec2;_0x283d21[_0x32dccc('0x11ed')]();}}const _0x52878e=_0xde89dd;_0x92b7a5[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1c3f'),'mailAccount','api',_0xb635d2('0x2730'),'crudPermissions'];function _0x92b7a5(_0x4ca70b,_0x32b59f,_0x5343fc,_0x50f1a3,_0x4583fa,_0x281e60,_0x5388c8,_0x27b0a3){var _0x1ef993=_0xb635d2,_0x5c0c96=this;_0x5c0c96[_0x1ef993('0x15a5')]=_0x5388c8['getCurrentUser'](),_0x5c0c96[_0x1ef993('0xcd2')]=[],_0x5c0c96[_0x1ef993('0x13e4')]=_0x1ef993('0x1e52')+(_0x50f1a3['appType']||_0x50f1a3['app'])[_0x1ef993('0x25f7')](),_0x5c0c96[_0x1ef993('0x108')]=angular[_0x1ef993('0x89')](_0x50f1a3),_0x5c0c96[_0x1ef993('0xb3d')]=_0x27b0a3,_0x5c0c96[_0x1ef993('0x1ccb')]={};if(_0x5c0c96['agent']['appdata'])switch(_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0xf44')]?_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0xf44')][_0x1ef993('0x20dd')]():_0x5c0c96['agent']['app'][_0x1ef993('0x20dd')]()){case'custom':break;case _0x1ef993('0xc11'):{var _0x1bc7f8=_0x5c0c96['agent'][_0x1ef993('0x26d2')][_0x1ef993('0x1745')](',');_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x6e4')]=_0x1bc7f8[0x0],_0x5c0c96['agent'][_0x1ef993('0x174b')]=_0x1bc7f8[0x1],_0x5c0c96[_0x1ef993('0x108')]['welcomemessage']=_0x1bc7f8[_0x1ef993('0xa19')](0x2,_0x1bc7f8[_0x1ef993('0x25ae')])[_0x1ef993('0x1537')](',');}break;case'amazonlex':{var _0x3e1cc1=_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x26d2')][_0x1ef993('0x1745')](',');_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x22be')]=_0x3e1cc1[0x0],_0x5c0c96['agent']['secretaccesskey']=_0x3e1cc1[0x1],_0x5c0c96[_0x1ef993('0x108')]['lexregion']=_0x3e1cc1[0x2],_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x191a')]=_0x3e1cc1[0x3],_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0xfcc')]=_0x3e1cc1['slice'](0x4,_0x3e1cc1['length'])[_0x1ef993('0x1537')](',');}break;case'autoreply':{var _0xf4a6ae=_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x26d2')][_0x1ef993('0x1745')](',');_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x1ec4')]=isNaN(_0xf4a6ae[0x0])?_0xf4a6ae[0x0]:parseInt(_0xf4a6ae[0x0],0xa),_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x1bc6')]=_0xf4a6ae['slice'](0x1,_0xf4a6ae[_0x1ef993('0x25ae')])[_0x1ef993('0x1537')](',');}break;case _0x1ef993('0x27e8'):_0x5c0c96[_0x1ef993('0x108')]['text']=_0x5c0c96[_0x1ef993('0x108')]['appdata'];break;case'set':_0x5c0c96['agent'][_0x1ef993('0x2623')]=_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x26d2')]['split']('=')[0x0],_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x2')]=_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x26d2')][_0x1ef993('0x1745')]('=')[0x1];break;case _0x1ef993('0x401'):_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x38b')]=_0x5c0c96[_0x1ef993('0x108')]['appdata'];break;default:{var _0x42a9f8=_0x5c0c96['agent'][_0x1ef993('0x26d2')]['split'](',');_0x5c0c96[_0x1ef993('0x108')]['agent']=_0x32d445()[_0x1ef993('0x14b4')](_0x42a9f8[0x0])?_0x42a9f8[0x0]:isNaN(_0x42a9f8[0x0])?_0x42a9f8[0x0]:parseInt(_0x42a9f8[0x0],0xa),_0x5c0c96[_0x1ef993('0x108')]['timeout']=_0x32d445()['isEmpty'](_0x42a9f8[0x1])?_0x42a9f8[0x1]:isNaN(_0x42a9f8[0x1])?_0x42a9f8[0x1]:parseInt(_0x42a9f8[0x1],0xa);}break;}else _0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x2058')]=0x1e;_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x62e')]&&_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x62e')]['toLowerCase']()===_0x1ef993('0x1fdf')&&_0x5c0c96['agent'][_0x1ef993('0xf44')][_0x1ef993('0x20dd')]()===_0x1ef993('0x1d1b')&&(_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x2580')]=_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x1ef5')]?_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0x1ef5')][_0x1ef993('0x1745')]('$')[0x0]:undefined,_0x5c0c96['agent']['callerId']=_0x5c0c96[_0x1ef993('0x108')]['callerID']?_0x1ef993('0xd41')+_0x5c0c96[_0x1ef993('0x108')][_0x1ef993('0xfca')]:undefined);_0x5c0c96[_0x1ef993('0x20cd')]=_0xec9be5,_0x5c0c96['closeDialog']=_0x5c8333,_0x5388c8[_0x1ef993('0x179e')](_0x1ef993('0xd14'))?_0x281e60['user'][_0x1ef993('0x22d5')]({'fields':_0x1ef993('0x104'),'sort':_0x1ef993('0x2623'),'nolimit':_0x1ef993('0x2206'),'role':_0x1ef993('0x108')})['$promise']['then'](function(_0x1b3d34){var _0x4ba534=_0x1ef993;_0x5c0c96['agents']=_0x1b3d34[_0x4ba534('0x16a7')]||[];})[_0x1ef993('0x223b')](function(_0x276941){var _0x4f49b5=_0x1ef993;_0x5343fc[_0x4f49b5('0x8c8')]({'title':_0x276941[_0x4f49b5('0x2833')]?_0x4f49b5('0x27f2')+_0x276941['status']+_0x4f49b5('0x1b7c')+_0x276941['statusText']:_0x4f49b5('0x1e86'),'msg':_0x276941[_0x4f49b5('0x11d0')]?JSON[_0x4f49b5('0x3ad')](_0x276941[_0x4f49b5('0x11d0')]):_0x276941[_0x4f49b5('0x94f')]()});}):_0x281e60[_0x1ef993('0x10c6')]['get']({'fields':'id,name','sort':_0x1ef993('0x2623'),'nolimit':_0x1ef993('0x2206'),'role':_0x1ef993('0x108')})['$promise'][_0x1ef993('0xe19')](function(_0x482d61){_0x5c0c96['agents']=_0x482d61['rows']||[];})[_0x1ef993('0xe19')](function(){var _0x57463c=_0x1ef993;return _0x281e60[_0x57463c('0xb59')][_0x57463c('0x22d5')]({'userProfileId':_0x5c0c96[_0x57463c('0x15a5')]['userProfileId'],'sectionId':0xca})[_0x57463c('0xe59')];})[_0x1ef993('0xe19')](function(_0x234172){var _0x42fc0d=_0x1ef993,_0x53e082=_0x234172&&_0x234172['rows']?_0x234172[_0x42fc0d('0x16a7')][0x0]:null;if(!_0x53e082){var _0xf157cb=[],_0x39f417=null;_0x5c0c96[_0x42fc0d('0x108')]&&(_0x39f417=_0x32d445()[_0x42fc0d('0xf15')](_0x5c0c96[_0x42fc0d('0x29b')],{'name':_0x5c0c96[_0x42fc0d('0x108')][_0x42fc0d('0x108')]}));for(var _0x53c93d=0x0;_0x53c93d<_0x5c0c96[_0x42fc0d('0x29b')][_0x42fc0d('0x25ae')];_0x53c93d++){_0x39f417&&_0x5c0c96[_0x42fc0d('0x29b')][_0x53c93d]['id']===_0x39f417['id']&&(_0x5c0c96[_0x42fc0d('0x29b')][_0x53c93d]['canSelect']=![],_0xf157cb[_0x42fc0d('0xb76')](_0x5c0c96[_0x42fc0d('0x29b')][_0x53c93d]));}_0x5c0c96[_0x42fc0d('0x29b')]=_0xf157cb;}else{if(!_0x53e082[_0x42fc0d('0x11fd')])return _0x281e60[_0x42fc0d('0xd49')][_0x42fc0d('0x22d5')]({'sectionId':_0x53e082['id']})['$promise'][_0x42fc0d('0xe19')](function(_0x1081b0){var _0x479f35=_0x42fc0d,_0x45ebcb=_0x32d445()[_0x479f35('0x65a')](_0x1081b0[_0x479f35('0x16a7')],function(_0x49f96b){var _0x243d44=_0x479f35;return _0x32d445()[_0x243d44('0xf15')](_0x5c0c96[_0x243d44('0x29b')],{'id':_0x49f96b[_0x243d44('0x1104')]});}),_0x5d439f=null;_0x5c0c96[_0x479f35('0x108')]&&(_0x5d439f=_0x32d445()[_0x479f35('0xf15')](_0x5c0c96[_0x479f35('0x29b')],{'name':_0x5c0c96[_0x479f35('0x108')][_0x479f35('0x108')]}));if(_0x5d439f&&!_0x32d445()[_0x479f35('0x201a')](_0x45ebcb,['id',_0x5d439f['id']])){var _0x289de0=_0x32d445()[_0x479f35('0xf15')](_0x5c0c96[_0x479f35('0x29b')],{'id':_0x5d439f['id']});_0x289de0[_0x479f35('0x1e9d')]=![],_0x45ebcb[_0x479f35('0xb76')](_0x289de0);}_0x5c0c96[_0x479f35('0x29b')]=_0x45ebcb;});}})[_0x1ef993('0x223b')](function(_0xbdbc95){var _0x2d5bfa=_0x1ef993;_0x5343fc['error']({'title':_0xbdbc95[_0x2d5bfa('0x2833')]?_0x2d5bfa('0x27f2')+_0xbdbc95[_0x2d5bfa('0x2833')]+_0x2d5bfa('0x1b7c')+_0xbdbc95[_0x2d5bfa('0x1fd7')]:_0x2d5bfa('0xfe4'),'msg':_0xbdbc95[_0x2d5bfa('0x11d0')]?JSON[_0x2d5bfa('0x3ad')](_0xbdbc95[_0x2d5bfa('0x11d0')]):_0xbdbc95['toString']()});});function _0xec9be5(){var _0x2dab71=_0x1ef993;_0x5c0c96[_0x2dab71('0xcd2')]=[];var _0x3007a4=[];_0x5c0c96['agent'][_0x2dab71('0x62e')]&&_0x5c0c96[_0x2dab71('0x108')][_0x2dab71('0x62e')]['toLowerCase']()===_0x2dab71('0x1fdf')&&_0x5c0c96[_0x2dab71('0x108')]['appType']===_0x2dab71('0x3d2')&&(_0x5c0c96['agent'][_0x2dab71('0x1ef5')]=_0x4583fa[_0x2dab71('0x27f6')]?(_0x5c0c96[_0x2dab71('0x108')][_0x2dab71('0x2580')]||'')+_0x2dab71('0x5d8')+_0x4583fa[_0x2dab71('0x27f6')]+'}':(_0x5c0c96[_0x2dab71('0x108')]['prefix']||'')+_0x2dab71('0x16b5'),_0x4583fa['recordingFormat']!==_0x2dab71('0x23ca')?_0x5c0c96['agent']['options'][_0x2dab71('0x281c')](_0x2dab71('0x767'))<0x0&&(_0x5c0c96['agent'][_0x2dab71('0x2116')]+=_0x2dab71('0x767')):_0x5c0c96[_0x2dab71('0x108')][_0x2dab71('0x2116')]=_0x5c0c96[_0x2dab71('0x108')][_0x2dab71('0x2116')]['replace'](_0x2dab71('0x767'),''));var _0x176039=_0x32d445()[_0x2dab71('0xf15')](_0x5c0c96[_0x2dab71('0x29b')],{'name':_0x5c0c96['agent'][_0x2dab71('0x108')]});_0x176039&&(_0x5c0c96['agent']['UserId']=_0x176039['id']);if(_0x5c0c96['agent'][_0x2dab71('0xf44')]&&_0x5c0c96['agent'][_0x2dab71('0xf44')]===_0x2dab71('0x261d')){}else switch((_0x5c0c96[_0x2dab71('0x108')][_0x2dab71('0xf2b')]||_0x5c0c96[_0x2dab71('0x108')]['appType'])['toLowerCase']()){case'set':_0x5c0c96[_0x2dab71('0x108')][_0x2dab71('0x26d2')]=_0x5c0c96[_0x2dab71('0x108')]['name']+'='+_0x5c0c96[_0x2dab71('0x108')]['value'];break;case'custom':break;default:_0x3007a4[0x0]=_0x5c0c96[_0x2dab71('0x108')][_0x2dab71('0x108')],_0x3007a4[0x1]=_0x5c0c96[_0x2dab71('0x108')][_0x2dab71('0x2058')],_0x5c0c96['agent'][_0x2dab71('0x26d2')]=_0x3007a4[_0x2dab71('0x1537')](',');}_0x5c8333(_0x5c0c96['agent']);}function _0x5c8333(_0x12926f){var _0x1c206a=_0x1ef993;_0x4ca70b[_0x1c206a('0x11ed')](_0x12926f);}}const _0x68739b=_0x92b7a5;_0x57e356[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1c3f'),_0xb635d2('0x17f0'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x57e356(_0x9cd703,_0x324ca4,_0x3e2821,_0x12afec,_0x35e548,_0x570145,_0x3de291,_0xa0541e){var _0x33e317=_0xb635d2,_0xacce03=this;_0xacce03[_0x33e317('0x15a5')]=_0x3de291['getCurrentUser'](),_0xacce03['errors']=[],_0xacce03[_0x33e317('0x13e4')]=_0x33e317('0x1e52')+(_0x12afec[_0x33e317('0xf44')]||_0x12afec[_0x33e317('0xf2b')])[_0x33e317('0x25f7')](),_0xacce03['autoreply']=angular['copy'](_0x12afec),_0xacce03[_0x33e317('0xb3d')]=_0xa0541e,_0xacce03[_0x33e317('0x1ccb')]={};if(_0xacce03[_0x33e317('0x400')][_0x33e317('0x26d2')])switch(_0xacce03[_0x33e317('0x400')][_0x33e317('0xf44')]?_0xacce03[_0x33e317('0x400')][_0x33e317('0xf44')][_0x33e317('0x20dd')]():_0xacce03[_0x33e317('0x400')][_0x33e317('0xf2b')][_0x33e317('0x20dd')]()){case _0x33e317('0x261d'):break;case'dialogflow':{var _0x273281=_0xacce03['autoreply'][_0x33e317('0x26d2')][_0x33e317('0x1745')](',');_0xacce03[_0x33e317('0x400')]['key']=_0x273281[0x0],_0xacce03[_0x33e317('0x400')]['language']=_0x273281[0x1],_0xacce03[_0x33e317('0x400')]['welcomemessage']=_0x273281[_0x33e317('0xa19')](0x2,_0x273281['length'])[_0x33e317('0x1537')](',');}break;case _0x33e317('0x1321'):{var _0x1832bd=_0xacce03['autoreply'][_0x33e317('0x26d2')]['split'](',');_0xacce03[_0x33e317('0x400')][_0x33e317('0x22be')]=_0x1832bd[0x0],_0xacce03[_0x33e317('0x400')][_0x33e317('0x700')]=_0x1832bd[0x1],_0xacce03[_0x33e317('0x400')][_0x33e317('0x206a')]=_0x1832bd[0x2],_0xacce03[_0x33e317('0x400')][_0x33e317('0x191a')]=_0x1832bd[0x3],_0xacce03['autoreply']['welcomemessage']=_0x1832bd[_0x33e317('0xa19')](0x4,_0x1832bd[_0x33e317('0x25ae')])[_0x33e317('0x1537')](',');}break;case _0x33e317('0x400'):{var _0x318e3c=_0xacce03[_0x33e317('0x400')][_0x33e317('0x26d2')][_0x33e317('0x1745')](',');_0xacce03[_0x33e317('0x400')][_0x33e317('0x1ec4')]=isNaN(_0x318e3c[0x0])?_0x318e3c[0x0]:parseInt(_0x318e3c[0x0],0xa),_0xacce03['autoreply'][_0x33e317('0x1bc6')]=_0x318e3c[_0x33e317('0xa19')](0x1,_0x318e3c[_0x33e317('0x25ae')])[_0x33e317('0x1537')](',');}break;case _0x33e317('0x27e8'):_0xacce03['autoreply'][_0x33e317('0x1bc6')]=_0xacce03[_0x33e317('0x400')][_0x33e317('0x26d2')];break;case'set':_0xacce03[_0x33e317('0x400')][_0x33e317('0x2623')]=_0xacce03['autoreply']['appdata'][_0x33e317('0x1745')]('=')[0x0],_0xacce03[_0x33e317('0x400')]['value']=_0xacce03[_0x33e317('0x400')][_0x33e317('0x26d2')][_0x33e317('0x1745')]('=')[0x1];break;case _0x33e317('0x401'):_0xacce03['autoreply'][_0x33e317('0x38b')]=_0xacce03[_0x33e317('0x400')]['appdata'];break;default:{var _0x418035=_0xacce03[_0x33e317('0x400')][_0x33e317('0x26d2')]['split'](',');_0xacce03[_0x33e317('0x400')][_0x33e317('0x1ec4')]=_0x32d445()['isEmpty'](_0x418035[0x0])?_0x418035[0x0]:isNaN(_0x418035[0x0])?_0x418035[0x0]:parseInt(_0x418035[0x0],0xa),_0xacce03['autoreply'][_0x33e317('0x1bc6')]=_0x32d445()[_0x33e317('0x14b4')](_0x418035[0x1])?_0x418035[0x1]:isNaN(_0x418035[0x1])?_0x418035[0x1]:parseInt(_0x418035[0x1],0xa);}break;}else _0xacce03[_0x33e317('0x400')][_0x33e317('0x1ec4')]=0x1;_0xacce03[_0x33e317('0x400')]['type']&&_0xacce03['autoreply'][_0x33e317('0x62e')][_0x33e317('0x20dd')]()===_0x33e317('0x1fdf')&&_0xacce03[_0x33e317('0x400')][_0x33e317('0xf44')][_0x33e317('0x20dd')]()===_0x33e317('0x1d1b')&&(_0xacce03[_0x33e317('0x400')]['prefix']=_0xacce03[_0x33e317('0x400')][_0x33e317('0x1ef5')]?_0xacce03['autoreply'][_0x33e317('0x1ef5')][_0x33e317('0x1745')]('$')[0x0]:undefined,_0xacce03[_0x33e317('0x400')][_0x33e317('0x1b6f')]=_0xacce03[_0x33e317('0x400')][_0x33e317('0xfca')]?_0x33e317('0xd41')+_0xacce03['autoreply'][_0x33e317('0xfca')]:undefined);_0xacce03[_0x33e317('0x20cd')]=_0x2e49e6,_0xacce03['closeDialog']=_0x3ff006;function _0x2e49e6(){var _0xa5453=_0x33e317;_0xacce03[_0xa5453('0xcd2')]=[];var _0x461d19=[];_0xacce03['autoreply'][_0xa5453('0x62e')]&&_0xacce03[_0xa5453('0x400')][_0xa5453('0x62e')][_0xa5453('0x20dd')]()===_0xa5453('0x1fdf')&&_0xacce03['autoreply'][_0xa5453('0xf44')]===_0xa5453('0x3d2')&&(_0xacce03[_0xa5453('0x400')][_0xa5453('0x1ef5')]=_0x35e548[_0xa5453('0x27f6')]?(_0xacce03[_0xa5453('0x400')][_0xa5453('0x2580')]||'')+_0xa5453('0x5d8')+_0x35e548[_0xa5453('0x27f6')]+'}':(_0xacce03[_0xa5453('0x400')][_0xa5453('0x2580')]||'')+_0xa5453('0x16b5'),_0x35e548[_0xa5453('0x150c')]!==_0xa5453('0x23ca')?_0xacce03[_0xa5453('0x400')][_0xa5453('0x2116')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0xacce03['autoreply'][_0xa5453('0x2116')]+=_0xa5453('0x767')):_0xacce03[_0xa5453('0x400')]['options']=_0xacce03[_0xa5453('0x400')][_0xa5453('0x2116')][_0xa5453('0x1b42')](_0xa5453('0x767'),''));if(_0xacce03[_0xa5453('0x400')][_0xa5453('0xf44')]&&_0xacce03[_0xa5453('0x400')][_0xa5453('0xf44')]===_0xa5453('0x261d')){}else switch((_0xacce03[_0xa5453('0x400')][_0xa5453('0xf2b')]||_0xacce03[_0xa5453('0x400')][_0xa5453('0xf44')])['toLowerCase']()){case _0xa5453('0x2aa'):_0xacce03[_0xa5453('0x400')][_0xa5453('0x26d2')]=_0xacce03[_0xa5453('0x400')][_0xa5453('0x2623')]+'='+_0xacce03['autoreply'][_0xa5453('0x2')];break;case'custom':break;default:_0x461d19[0x0]=_0xacce03['autoreply'][_0xa5453('0x1ec4')],_0x461d19[0x1]=_0xacce03['autoreply'][_0xa5453('0x1bc6')],_0xacce03[_0xa5453('0x400')][_0xa5453('0x26d2')]=_0x461d19['join'](',');}_0x3ff006(_0xacce03[_0xa5453('0x400')]);}function _0x3ff006(_0x19060c){var _0xbc9e8d=_0x33e317;_0x9cd703[_0xbc9e8d('0x11ed')](_0x19060c);}}const _0x4ef070=_0x57e356;_0xa7d9db[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1c3f'),_0xb635d2('0x17f0'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0xa7d9db(_0x127096,_0x42d138,_0x3099cd,_0x3e2b4a,_0x246b59,_0x19dae7,_0x4b4fca,_0x535a0b){var _0x3cbefe=_0xb635d2,_0x17c265=this;_0x17c265['currentUser']=_0x4b4fca[_0x3cbefe('0x1ef8')](),_0x17c265[_0x3cbefe('0xcd2')]=[],_0x17c265[_0x3cbefe('0x13e4')]=_0x3cbefe('0x1e52')+(_0x3e2b4a[_0x3cbefe('0xf44')]||_0x3e2b4a[_0x3cbefe('0xf2b')])['toUpperCase'](),_0x17c265['close']=angular[_0x3cbefe('0x89')](_0x3e2b4a),_0x17c265[_0x3cbefe('0xb3d')]=_0x535a0b,_0x17c265[_0x3cbefe('0x1ccb')]={};if(_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x26d2')])switch(_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0xf44')]?_0x17c265['close'][_0x3cbefe('0xf44')][_0x3cbefe('0x20dd')]():_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0xf2b')][_0x3cbefe('0x20dd')]()){case _0x3cbefe('0x261d'):break;case _0x3cbefe('0xc11'):{var _0x566f69=_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x26d2')][_0x3cbefe('0x1745')](',');_0x17c265[_0x3cbefe('0x1886')]['key']=_0x566f69[0x0],_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x174b')]=_0x566f69[0x1],_0x17c265[_0x3cbefe('0x1886')]['welcomemessage']=_0x566f69[_0x3cbefe('0xa19')](0x2,_0x566f69['length'])[_0x3cbefe('0x1537')](',');}break;case _0x3cbefe('0x1321'):{var _0x4634e5=_0x17c265['close']['appdata']['split'](',');_0x17c265[_0x3cbefe('0x1886')]['accesskeyid']=_0x4634e5[0x0],_0x17c265[_0x3cbefe('0x1886')]['secretaccesskey']=_0x4634e5[0x1],_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x206a')]=_0x4634e5[0x2],_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x191a')]=_0x4634e5[0x3],_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0xfcc')]=_0x4634e5[_0x3cbefe('0xa19')](0x4,_0x4634e5[_0x3cbefe('0x25ae')])[_0x3cbefe('0x1537')](',');}break;case _0x3cbefe('0x400'):{var _0x1d2114=_0x17c265[_0x3cbefe('0x1886')]['appdata'][_0x3cbefe('0x1745')](',');_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x1ec4')]=isNaN(_0x1d2114[0x0])?_0x1d2114[0x0]:parseInt(_0x1d2114[0x0],0xa),_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x1bc6')]=_0x1d2114[_0x3cbefe('0xa19')](0x1,_0x1d2114[_0x3cbefe('0x25ae')])['join'](',');}break;case'message':_0x17c265[_0x3cbefe('0x1886')]['text']=_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x26d2')];break;case _0x3cbefe('0x2aa'):_0x17c265[_0x3cbefe('0x1886')]['name']=_0x17c265[_0x3cbefe('0x1886')]['appdata']['split']('=')[0x0],_0x17c265['close'][_0x3cbefe('0x2')]=_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x26d2')]['split']('=')[0x1];break;case _0x3cbefe('0x401'):_0x17c265['close'][_0x3cbefe('0x38b')]=_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x26d2')];break;default:{var _0xc98b02=_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x26d2')][_0x3cbefe('0x1745')](',');_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x2506')]=_0x32d445()[_0x3cbefe('0x14b4')](_0xc98b02[0x0])?_0xc98b02[0x0]:isNaN(_0xc98b02[0x0])?_0xc98b02[0x0]:parseInt(_0xc98b02[0x0],0xa);}break;}else{}_0x17c265['close']['type']&&_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x62e')][_0x3cbefe('0x20dd')]()===_0x3cbefe('0x1fdf')&&_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0xf44')][_0x3cbefe('0x20dd')]()==='outbounddial'&&(_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x2580')]=_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0x1ef5')]?_0x17c265['close'][_0x3cbefe('0x1ef5')][_0x3cbefe('0x1745')]('$')[0x0]:undefined,_0x17c265['close'][_0x3cbefe('0x1b6f')]=_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0xfca')]?_0x3cbefe('0xd41')+_0x17c265[_0x3cbefe('0x1886')][_0x3cbefe('0xfca')]:undefined);_0x17c265[_0x3cbefe('0x20cd')]=_0x388747,_0x17c265[_0x3cbefe('0x2584')]=_0x42ea83;function _0x388747(){var _0x167d7b=_0x3cbefe;_0x17c265[_0x167d7b('0xcd2')]=[];var _0x5bc50b=[];_0x17c265[_0x167d7b('0x1886')]['type']&&_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0x62e')]['toLowerCase']()===_0x167d7b('0x1fdf')&&_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0xf44')]===_0x167d7b('0x3d2')&&(_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0x1ef5')]=_0x246b59[_0x167d7b('0x27f6')]?(_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0x2580')]||'')+'${EXTEN:'+_0x246b59[_0x167d7b('0x27f6')]+'}':(_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0x2580')]||'')+_0x167d7b('0x16b5'),_0x246b59[_0x167d7b('0x150c')]!=='none'?_0x17c265['close'][_0x167d7b('0x2116')][_0x167d7b('0x281c')](_0x167d7b('0x767'))<0x0&&(_0x17c265[_0x167d7b('0x1886')]['options']+='U(xcally-mixmonitor-context)'):_0x17c265[_0x167d7b('0x1886')]['options']=_0x17c265['close'][_0x167d7b('0x2116')][_0x167d7b('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0xf44')]&&_0x17c265[_0x167d7b('0x1886')]['appType']===_0x167d7b('0x261d')){}else switch((_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0xf2b')]||_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0xf44')])[_0x167d7b('0x20dd')]()){case _0x167d7b('0x2aa'):_0x17c265['close'][_0x167d7b('0x26d2')]=_0x17c265['close']['name']+'='+_0x17c265[_0x167d7b('0x1886')][_0x167d7b('0x2')];break;case _0x167d7b('0x261d'):break;default:_0x5bc50b[0x0]=_0x17c265['close']['disposition'],_0x17c265[_0x167d7b('0x1886')]['appdata']=_0x5bc50b[_0x167d7b('0x1537')](',');}_0x42ea83(_0x17c265[_0x167d7b('0x1886')]);}function _0x42ea83(_0x36977b){var _0x4212e4=_0x3cbefe;_0x127096[_0x4212e4('0x11ed')](_0x36977b);}}const _0x40f8cb=_0xa7d9db;_0x108b1b[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'mailAccountApp',_0xb635d2('0x17f0'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x108b1b(_0x123ff5,_0x476c65,_0x50c9ab,_0x4f455d,_0x59efae,_0xb27220,_0x13b8c8,_0x44a8df){var _0x424f21=_0xb635d2,_0xcb8464=this;_0xcb8464[_0x424f21('0x15a5')]=_0x13b8c8[_0x424f21('0x1ef8')](),_0xcb8464[_0x424f21('0xcd2')]=[],_0xcb8464[_0x424f21('0x13e4')]=_0x424f21('0x1e52')+(_0x4f455d['appType']||_0x4f455d[_0x424f21('0xf2b')])[_0x424f21('0x25f7')](),_0xcb8464[_0x424f21('0x22c3')]=angular[_0x424f21('0x89')](_0x4f455d),_0xcb8464['crudPermissions']=_0x44a8df,_0xcb8464['hasModulePermissions']={};if(_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x26d2')])switch(_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0xf44')]?_0xcb8464['gotoif'][_0x424f21('0xf44')]['toLowerCase']():_0xcb8464[_0x424f21('0x22c3')]['app']['toLowerCase']()){case'custom':break;case _0x424f21('0xc11'):{var _0x2c16b1=_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x26d2')][_0x424f21('0x1745')](',');_0xcb8464[_0x424f21('0x22c3')]['key']=_0x2c16b1[0x0],_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x174b')]=_0x2c16b1[0x1],_0xcb8464['gotoif'][_0x424f21('0xfcc')]=_0x2c16b1[_0x424f21('0xa19')](0x2,_0x2c16b1[_0x424f21('0x25ae')])[_0x424f21('0x1537')](',');}break;case _0x424f21('0x1321'):{var _0x2a7349=_0xcb8464['gotoif'][_0x424f21('0x26d2')][_0x424f21('0x1745')](',');_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x22be')]=_0x2a7349[0x0],_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x700')]=_0x2a7349[0x1],_0xcb8464[_0x424f21('0x22c3')]['lexregion']=_0x2a7349[0x2],_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x191a')]=_0x2a7349[0x3],_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0xfcc')]=_0x2a7349[_0x424f21('0xa19')](0x4,_0x2a7349[_0x424f21('0x25ae')])[_0x424f21('0x1537')](',');}break;case _0x424f21('0x400'):{var _0x15c881=_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x26d2')][_0x424f21('0x1745')](',');_0xcb8464['gotoif']['times']=isNaN(_0x15c881[0x0])?_0x15c881[0x0]:parseInt(_0x15c881[0x0],0xa),_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x1bc6')]=_0x15c881[_0x424f21('0xa19')](0x1,_0x15c881['length'])['join'](',');}break;case _0x424f21('0x27e8'):_0xcb8464['gotoif']['text']=_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x26d2')];break;case'set':_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x2623')]=_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x26d2')][_0x424f21('0x1745')]('=')[0x0],_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x2')]=_0xcb8464['gotoif'][_0x424f21('0x26d2')]['split']('=')[0x1];break;case _0x424f21('0x401'):_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x38b')]=_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x26d2')];break;default:{var _0x573b78=_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x26d2')][_0x424f21('0x1745')](',');_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x1c03')]=_0x32d445()[_0x424f21('0x14b4')](_0x573b78[0x0])?_0x573b78[0x0]:isNaN(_0x573b78[0x0])?_0x573b78[0x0]:parseInt(_0x573b78[0x0],0xa),_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x50')]=_0x32d445()[_0x424f21('0x14b4')](_0x573b78[0x1])?_0x573b78[0x1]:isNaN(_0x573b78[0x1])?_0x573b78[0x1]:parseInt(_0x573b78[0x1],0xa),_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x347')]=_0x32d445()[_0x424f21('0x14b4')](_0x573b78[0x2])?_0x573b78[0x2]:isNaN(_0x573b78[0x2])?_0x573b78[0x2]:parseInt(_0x573b78[0x2],0xa);}break;}else{}_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x62e')]&&_0xcb8464['gotoif'][_0x424f21('0x62e')]['toLowerCase']()===_0x424f21('0x1fdf')&&_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0xf44')]['toLowerCase']()===_0x424f21('0x1d1b')&&(_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x2580')]=_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x1ef5')]?_0xcb8464['gotoif']['phone'][_0x424f21('0x1745')]('$')[0x0]:undefined,_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0x1b6f')]=_0xcb8464['gotoif'][_0x424f21('0xfca')]?'CALLERID(all)='+_0xcb8464[_0x424f21('0x22c3')][_0x424f21('0xfca')]:undefined);_0xcb8464['saveMailAccountApp']=_0x333594,_0xcb8464['closeDialog']=_0x44ca9c;function _0x333594(){var _0x2e4bd5=_0x424f21;_0xcb8464['errors']=[];var _0x2453df=[];_0xcb8464['gotoif'][_0x2e4bd5('0x62e')]&&_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0x62e')]['toLowerCase']()===_0x2e4bd5('0x1fdf')&&_0xcb8464['gotoif'][_0x2e4bd5('0xf44')]===_0x2e4bd5('0x3d2')&&(_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0x1ef5')]=_0x59efae['cutdigits']?(_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0x2580')]||'')+_0x2e4bd5('0x5d8')+_0x59efae[_0x2e4bd5('0x27f6')]+'}':(_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0x2580')]||'')+_0x2e4bd5('0x16b5'),_0x59efae[_0x2e4bd5('0x150c')]!==_0x2e4bd5('0x23ca')?_0xcb8464['gotoif'][_0x2e4bd5('0x2116')][_0x2e4bd5('0x281c')](_0x2e4bd5('0x767'))<0x0&&(_0xcb8464['gotoif'][_0x2e4bd5('0x2116')]+=_0x2e4bd5('0x767')):_0xcb8464[_0x2e4bd5('0x22c3')]['options']=_0xcb8464[_0x2e4bd5('0x22c3')]['options'][_0x2e4bd5('0x1b42')](_0x2e4bd5('0x767'),''));if(_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0xf44')]&&_0xcb8464['gotoif'][_0x2e4bd5('0xf44')]==='custom'){}else switch((_0xcb8464[_0x2e4bd5('0x22c3')]['app']||_0xcb8464[_0x2e4bd5('0x22c3')]['appType'])[_0x2e4bd5('0x20dd')]()){case _0x2e4bd5('0x2aa'):_0xcb8464['gotoif'][_0x2e4bd5('0x26d2')]=_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0x2623')]+'='+_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0x2')];break;case'custom':break;default:_0x2453df[0x0]=_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0x1c03')],_0x2453df[0x1]=_0xcb8464['gotoif'][_0x2e4bd5('0x50')],_0x2453df[0x2]=_0xcb8464['gotoif']['falsepriority'],_0xcb8464[_0x2e4bd5('0x22c3')][_0x2e4bd5('0x26d2')]=_0x2453df[_0x2e4bd5('0x1537')](',');}_0x44ca9c(_0xcb8464[_0x2e4bd5('0x22c3')]);}function _0x44ca9c(_0x39b99e){var _0x4e2b0f=_0x424f21;_0x123ff5[_0x4e2b0f('0x11ed')](_0x39b99e);}}const _0xcca668=_0x108b1b;_0xf3a3d9['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1c3f'),'mailAccount',_0xb635d2('0xffc'),'Auth','crudPermissions'];function _0xf3a3d9(_0x1aa978,_0x90665c,_0x42c368,_0x8d5ab4,_0x5cf23f,_0x31649f,_0x404e13,_0x5329d7){var _0x2d1b0a=_0xb635d2,_0xcc4ff9=this;_0xcc4ff9[_0x2d1b0a('0x15a5')]=_0x404e13[_0x2d1b0a('0x1ef8')](),_0xcc4ff9['errors']=[],_0xcc4ff9[_0x2d1b0a('0x13e4')]=_0x2d1b0a('0x1e52')+(_0x8d5ab4[_0x2d1b0a('0xf44')]||_0x8d5ab4['app'])['toUpperCase'](),_0xcc4ff9[_0x2d1b0a('0x16fe')]=angular[_0x2d1b0a('0x89')](_0x8d5ab4),_0xcc4ff9[_0x2d1b0a('0xb3d')]=_0x5329d7,_0xcc4ff9[_0x2d1b0a('0x1ccb')]={};if(_0xcc4ff9['gotop'][_0x2d1b0a('0x26d2')])switch(_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0xf44')]?_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0xf44')][_0x2d1b0a('0x20dd')]():_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0xf2b')][_0x2d1b0a('0x20dd')]()){case _0x2d1b0a('0x261d'):break;case _0x2d1b0a('0xc11'):{var _0x4df1d9=_0xcc4ff9['gotop'][_0x2d1b0a('0x26d2')]['split'](',');_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x6e4')]=_0x4df1d9[0x0],_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x174b')]=_0x4df1d9[0x1],_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0xfcc')]=_0x4df1d9[_0x2d1b0a('0xa19')](0x2,_0x4df1d9[_0x2d1b0a('0x25ae')])[_0x2d1b0a('0x1537')](',');}break;case _0x2d1b0a('0x1321'):{var _0x5df056=_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x26d2')]['split'](',');_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x22be')]=_0x5df056[0x0],_0xcc4ff9['gotop']['secretaccesskey']=_0x5df056[0x1],_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x206a')]=_0x5df056[0x2],_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x191a')]=_0x5df056[0x3],_0xcc4ff9['gotop']['welcomemessage']=_0x5df056[_0x2d1b0a('0xa19')](0x4,_0x5df056[_0x2d1b0a('0x25ae')])[_0x2d1b0a('0x1537')](',');}break;case _0x2d1b0a('0x400'):{var _0x4079a0=_0xcc4ff9['gotop'][_0x2d1b0a('0x26d2')][_0x2d1b0a('0x1745')](',');_0xcc4ff9[_0x2d1b0a('0x16fe')]['times']=isNaN(_0x4079a0[0x0])?_0x4079a0[0x0]:parseInt(_0x4079a0[0x0],0xa),_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x1bc6')]=_0x4079a0[_0x2d1b0a('0xa19')](0x1,_0x4079a0[_0x2d1b0a('0x25ae')])[_0x2d1b0a('0x1537')](',');}break;case _0x2d1b0a('0x27e8'):_0xcc4ff9[_0x2d1b0a('0x16fe')]['text']=_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x26d2')];break;case'set':_0xcc4ff9[_0x2d1b0a('0x16fe')]['name']=_0xcc4ff9['gotop'][_0x2d1b0a('0x26d2')][_0x2d1b0a('0x1745')]('=')[0x0],_0xcc4ff9['gotop'][_0x2d1b0a('0x2')]=_0xcc4ff9[_0x2d1b0a('0x16fe')]['appdata'][_0x2d1b0a('0x1745')]('=')[0x1];break;case'agi':_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x38b')]=_0xcc4ff9[_0x2d1b0a('0x16fe')]['appdata'];break;default:{var _0x2e2544=_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x26d2')][_0x2d1b0a('0x1745')](',');_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0xb33')]=_0x32d445()[_0x2d1b0a('0x14b4')](_0x2e2544[0x0])?_0x2e2544[0x0]:isNaN(_0x2e2544[0x0])?_0x2e2544[0x0]:parseInt(_0x2e2544[0x0],0xa);}break;}else{}_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x62e')]&&_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x62e')][_0x2d1b0a('0x20dd')]()===_0x2d1b0a('0x1fdf')&&_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0xf44')][_0x2d1b0a('0x20dd')]()===_0x2d1b0a('0x1d1b')&&(_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x2580')]=_0xcc4ff9['gotop'][_0x2d1b0a('0x1ef5')]?_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x1ef5')][_0x2d1b0a('0x1745')]('$')[0x0]:undefined,_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0x1b6f')]=_0xcc4ff9[_0x2d1b0a('0x16fe')][_0x2d1b0a('0xfca')]?'CALLERID(all)='+_0xcc4ff9[_0x2d1b0a('0x16fe')]['callerID']:undefined);_0xcc4ff9[_0x2d1b0a('0x20cd')]=_0x454159,_0xcc4ff9[_0x2d1b0a('0x2584')]=_0x18ba00;function _0x454159(){var _0x59e912=_0x2d1b0a;_0xcc4ff9[_0x59e912('0xcd2')]=[];var _0x12d43f=[];_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0x62e')]&&_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0x62e')][_0x59e912('0x20dd')]()===_0x59e912('0x1fdf')&&_0xcc4ff9['gotop']['appType']==='outboundDial'&&(_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0x1ef5')]=_0x5cf23f[_0x59e912('0x27f6')]?(_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0x2580')]||'')+_0x59e912('0x5d8')+_0x5cf23f[_0x59e912('0x27f6')]+'}':(_0xcc4ff9['gotop'][_0x59e912('0x2580')]||'')+_0x59e912('0x16b5'),_0x5cf23f[_0x59e912('0x150c')]!=='none'?_0xcc4ff9[_0x59e912('0x16fe')]['options'][_0x59e912('0x281c')](_0x59e912('0x767'))<0x0&&(_0xcc4ff9['gotop'][_0x59e912('0x2116')]+=_0x59e912('0x767')):_0xcc4ff9['gotop'][_0x59e912('0x2116')]=_0xcc4ff9['gotop'][_0x59e912('0x2116')][_0x59e912('0x1b42')](_0x59e912('0x767'),''));if(_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0xf44')]&&_0xcc4ff9['gotop'][_0x59e912('0xf44')]===_0x59e912('0x261d')){}else switch((_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0xf2b')]||_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0xf44')])['toLowerCase']()){case'set':_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0x26d2')]=_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0x2623')]+'='+_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0x2')];break;case'custom':break;default:_0x12d43f[0x0]=_0xcc4ff9[_0x59e912('0x16fe')]['priority'],_0xcc4ff9[_0x59e912('0x16fe')][_0x59e912('0x26d2')]=_0x12d43f[_0x59e912('0x1537')](',');}_0x18ba00(_0xcc4ff9[_0x59e912('0x16fe')]);}function _0x18ba00(_0x49655e){var _0x4418ad=_0x2d1b0a;_0x1aa978[_0x4418ad('0x11ed')](_0x49655e);}}const _0x2f52fd=_0xf3a3d9;_0x3d82b2[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),'$mdToast',_0xb635d2('0x9ab'),'interval',_0xb635d2('0x10e0'),_0xb635d2('0xf65'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x3d82b2(_0x264304,_0x33734f,_0xe897f4,_0xe028e1,_0x2c5eed,_0x3be0ac,_0x1546f7,_0x46bddc,_0x11ddc2,_0x41aa83){var _0x1ec3d8=_0xb635d2,_0x538e59=this;_0x538e59[_0x1ec3d8('0x15a5')]=_0x11ddc2['getCurrentUser'](),_0x538e59[_0x1ec3d8('0xcd2')]=[],_0x538e59[_0x1ec3d8('0x13e4')]='TOOLS.EDIT_INTERVAL',_0x538e59[_0x1ec3d8('0x134c')]=angular[_0x1ec3d8('0x89')](_0x2c5eed),_0x538e59[_0x1ec3d8('0x10e0')]=_0x3be0ac,_0x538e59[_0x1ec3d8('0x1a83')]=![],_0x538e59[_0x1ec3d8('0x1ea6')]=[_0x1ec3d8('0x2210'),_0x1ec3d8('0x261d'),_0x1ec3d8('0x15a8')],_0x538e59[_0x1ec3d8('0xb3d')]=_0x41aa83,_0x538e59[_0x1ec3d8('0x1af')]=_0xe028e1[_0x1ec3d8('0xfd7')](),_0x538e59['monthNumber']=_0xe028e1[_0x1ec3d8('0x1015')](),_0x538e59[_0x1ec3d8('0x631')]=_0xe028e1['getMonthName'](),_0x538e59[_0x1ec3d8('0x2347')]=_0xe028e1[_0x1ec3d8('0xdee')]();if(!_0x538e59[_0x1ec3d8('0x134c')])_0x538e59[_0x1ec3d8('0x134c')]={'interval':_0x1ec3d8('0x2292')},_0x538e59[_0x1ec3d8('0x62e')]=_0x1ec3d8('0x2210'),_0x538e59[_0x1ec3d8('0x13e4')]=_0x1ec3d8('0x1947'),_0x538e59[_0x1ec3d8('0x1a83')]=!![];else{if(_0x538e59['interval'][_0x1ec3d8('0x134c')]!=='*,*,*,*'){_0x538e59[_0x1ec3d8('0x62e')]=_0x1ec3d8('0x261d');var _0x126890=_0x538e59['interval'][_0x1ec3d8('0x134c')][_0x1ec3d8('0x1745')](','),_0x166d30=_0x126890[0x0],_0x4a3999=_0x126890[0x1],_0xf1129a=_0x126890[0x2],_0x38faf3=_0x126890[0x3];if(_0x166d30!=='*'){var _0x2d3635=_0x166d30[_0x1ec3d8('0x1745')]('-')[0x0],_0x34c3ad=_0x166d30[_0x1ec3d8('0x1745')]('-')[0x1],_0x40f99d;_0x40f99d=new Date(),_0x40f99d['setHours'](Number(_0x2d3635[_0x1ec3d8('0x1745')](':')[0x0])),_0x40f99d[_0x1ec3d8('0x6b6')](Number(_0x2d3635[_0x1ec3d8('0x1745')](':')[0x1])),_0x538e59[_0x1ec3d8('0xde9')]=_0x40f99d,_0x40f99d=new Date(),_0x40f99d[_0x1ec3d8('0x19f6')](Number(_0x34c3ad[_0x1ec3d8('0x1745')](':')[0x0])),_0x40f99d[_0x1ec3d8('0x6b6')](Number(_0x34c3ad[_0x1ec3d8('0x1745')](':')[0x1])),_0x538e59[_0x1ec3d8('0x12ef')]=_0x40f99d;}_0x4a3999!=='*'&&(_0x538e59[_0x1ec3d8('0x2359')]=_0x4a3999[_0x1ec3d8('0x1745')]('-')[0x0],_0x538e59[_0x1ec3d8('0xa40')]=_0x4a3999['split']('-')[0x1]),_0xf1129a!=='*'&&(_0x538e59['monthDayFrom']=_0xf1129a['split']('-')[0x0],_0x538e59['monthDayTo']=_0xf1129a[_0x1ec3d8('0x1745')]('-')[0x1]),_0x38faf3!=='*'&&(_0x538e59[_0x1ec3d8('0x1b2a')]=_0x38faf3[_0x1ec3d8('0x1745')]('-')[0x0],_0x538e59[_0x1ec3d8('0xac6')]=_0x38faf3[_0x1ec3d8('0x1745')]('-')[0x1]);}else _0x538e59[_0x1ec3d8('0x62e')]='always';}_0x264304['params']['id']&&!_0x538e59[_0x1ec3d8('0x134c')][_0x1ec3d8('0x1491')]&&(_0x538e59[_0x1ec3d8('0x134c')]['IntervalId']=_0x264304[_0x1ec3d8('0x2ef')]['id']);_0x538e59['interval']['IntervalId']&&_0x538e59[_0x1ec3d8('0x134c')]['application']&&(_0x538e59[_0x1ec3d8('0x62e')]=_0x1ec3d8('0x15a8'));_0x538e59['addNewInterval']=_0x1dacbc,_0x538e59[_0x1ec3d8('0x201f')]=_0x2b5e94,_0x538e59[_0x1ec3d8('0x2584')]=_0x442c35;_0x538e59[_0x1ec3d8('0x134c')][_0x1ec3d8('0x1491')]&&(_0x11ddc2[_0x1ec3d8('0x179e')](_0x1ec3d8('0xd14'))?_0x46bddc[_0x1ec3d8('0x134c')][_0x1ec3d8('0x22d5')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x1ec3d8('0x1046'),'nolimit':!![]})[_0x1ec3d8('0xe59')][_0x1ec3d8('0xe19')](function(_0x149f04){var _0x34228c=_0x1ec3d8;_0x538e59[_0x34228c('0x10e0')]=_0x149f04[_0x34228c('0x16a7')]||[];})[_0x1ec3d8('0x223b')](function(_0x2fb4e8){var _0x551c90=_0x1ec3d8;_0x1546f7[_0x551c90('0x8c8')]({'title':_0x2fb4e8['status']?_0x551c90('0x27f2')+_0x2fb4e8['status']+'\x20-\x20'+_0x2fb4e8[_0x551c90('0x1fd7')]:_0x551c90('0x1c1c'),'msg':_0x2fb4e8[_0x551c90('0x11d0')]?JSON[_0x551c90('0x3ad')](_0x2fb4e8[_0x551c90('0x11d0')]):_0x2fb4e8['toString']()});}):_0x46bddc[_0x1ec3d8('0x134c')][_0x1ec3d8('0x22d5')]({'fields':_0x1ec3d8('0x13df'),'IntervalId':_0x1ec3d8('0x1046'),'nolimit':!![]})['$promise'][_0x1ec3d8('0xe19')](function(_0x4367a0){var _0x273116=_0x1ec3d8;_0x538e59[_0x273116('0x10e0')]=_0x4367a0[_0x273116('0x16a7')]||[];})[_0x1ec3d8('0xe19')](function(){var _0xd2d1d7=_0x1ec3d8;return _0x46bddc[_0xd2d1d7('0xb59')]['get']({'userProfileId':_0x538e59[_0xd2d1d7('0x15a5')]['userProfileId'],'sectionId':0x3ec})[_0xd2d1d7('0xe59')];})[_0x1ec3d8('0xe19')](function(_0x2b0085){var _0x319d7f=_0x1ec3d8,_0x51a261=_0x2b0085&&_0x2b0085[_0x319d7f('0x16a7')]?_0x2b0085[_0x319d7f('0x16a7')][0x0]:null;if(!_0x51a261)_0x538e59['intervals']=[];else{if(!_0x51a261[_0x319d7f('0x11fd')])return _0x46bddc[_0x319d7f('0xd49')][_0x319d7f('0x22d5')]({'sectionId':_0x51a261['id']})[_0x319d7f('0xe59')][_0x319d7f('0xe19')](function(_0x449795){var _0x5548c1=_0x319d7f,_0x34aeea=_0x449795&&_0x449795[_0x5548c1('0x16a7')]?_0x449795[_0x5548c1('0x16a7')]:[],_0x64b13e=[],_0x3d7bb2=null;_0x538e59[_0x5548c1('0x134c')]&&(_0x3d7bb2=_0x32d445()[_0x5548c1('0xf15')](_0x538e59[_0x5548c1('0x10e0')],{'name':_0x538e59[_0x5548c1('0x134c')]['IntervalId']})),_0x3d7bb2&&!_0x32d445()[_0x5548c1('0x201a')](_0x34aeea,[_0x5548c1('0x1104'),_0x3d7bb2['id']])&&_0x538e59[_0x5548c1('0x10e0')][_0x5548c1('0x1d7e')](function(_0x2420d4){var _0x2eff1c=_0x5548c1;_0x2420d4['id']===_0x3d7bb2['id']&&(_0x2420d4[_0x2eff1c('0x1e9d')]=![],_0x64b13e['push'](_0x2420d4));}),_0x538e59[_0x5548c1('0x10e0')]=_0x64b13e;});}})[_0x1ec3d8('0x223b')](function(_0xbf56f9){var _0x448470=_0x1ec3d8;_0x1546f7[_0x448470('0x8c8')]({'title':_0xbf56f9[_0x448470('0x2833')]?_0x448470('0x27f2')+_0xbf56f9[_0x448470('0x2833')]+_0x448470('0x1b7c')+_0xbf56f9[_0x448470('0x1fd7')]:_0x448470('0x1c1c'),'msg':_0xbf56f9['data']?JSON['stringify'](_0xbf56f9[_0x448470('0x11d0')]):_0xbf56f9['toString']()});}));function _0x59f2e7(){var _0x273702=_0x1ec3d8;switch(_0x538e59[_0x273702('0x62e')]){case _0x273702('0x2210'):case _0x273702('0x15a8'):return'*,*,*,*';case'custom':{var _0x257d36=[];if(_0x538e59[_0x273702('0xde9')]!=='*'&&_0x538e59[_0x273702('0xde9')]&&_0x538e59[_0x273702('0x12ef')]){var _0x2eabd=(_0x538e59[_0x273702('0xde9')]['getHours']()<0xa?'0':'')+_0x538e59[_0x273702('0xde9')][_0x273702('0x757')]()+':'+((_0x538e59[_0x273702('0xde9')][_0x273702('0x961')]()<0xa?'0':'')+_0x538e59['timeRangeFrom'][_0x273702('0x961')]()),_0x51fd26=(_0x538e59[_0x273702('0x12ef')][_0x273702('0x757')]()<0xa?'0':'')+_0x538e59[_0x273702('0x12ef')][_0x273702('0x757')]()+':'+((_0x538e59[_0x273702('0x12ef')][_0x273702('0x961')]()<0xa?'0':'')+_0x538e59[_0x273702('0x12ef')][_0x273702('0x961')]());_0x257d36[_0x273702('0xb76')](_0x2eabd+'-'+_0x51fd26);}else _0x257d36[_0x273702('0xb76')]('*');return _0x538e59[_0x273702('0x2359')]?_0x538e59[_0x273702('0xa40')]?_0x257d36['push'](_0x538e59['dayOfWeekFrom']+'-'+_0x538e59[_0x273702('0xa40')]):_0x257d36['push'](_0x538e59[_0x273702('0x2359')]):_0x257d36['push']('*'),_0x538e59[_0x273702('0x146b')]?_0x538e59['monthDayTo']?_0x257d36[_0x273702('0xb76')](_0x538e59[_0x273702('0x146b')]+'-'+_0x538e59[_0x273702('0x3d6')]):_0x257d36[_0x273702('0xb76')](_0x538e59[_0x273702('0x146b')]):_0x257d36['push']('*'),_0x538e59['monthFrom']?_0x538e59[_0x273702('0xac6')]?_0x257d36[_0x273702('0xb76')](_0x538e59['monthFrom']+'-'+_0x538e59[_0x273702('0xac6')]):_0x257d36[_0x273702('0xb76')](_0x538e59[_0x273702('0x1b2a')]):_0x257d36[_0x273702('0xb76')]('*'),_0x257d36[_0x273702('0x1537')]();}}}function _0x1dacbc(){var _0x4fab28=_0x1ec3d8;_0x538e59[_0x4fab28('0xcd2')]=[],_0x538e59[_0x4fab28('0x134c')]['interval']=_0x59f2e7(),_0x46bddc[_0x4fab28('0x134c')][_0x4fab28('0xe5e')](_0x538e59['interval'])['$promise']['then'](function(_0x108178){var _0x57f491=_0x4fab28;_0x538e59[_0x57f491('0x10e0')][_0x57f491('0xb76')](_0x108178),_0x1546f7['success']({'title':_0x57f491('0x1268'),'msg':_0x538e59[_0x57f491('0x134c')][_0x57f491('0x2623')]?_0x538e59[_0x57f491('0x134c')][_0x57f491('0x2623')]+_0x57f491('0x105f'):''}),_0x442c35();})['catch'](function(_0x3693e0){var _0x26d80f=_0x4fab28;console[_0x26d80f('0x8c8')](_0x3693e0),_0x538e59[_0x26d80f('0xcd2')]=_0x3693e0['data']['errors']||[{'message':_0x3693e0[_0x26d80f('0x94f')](),'type':'api.interval.save'}];});}function _0x2b5e94(){var _0x37846a=_0x1ec3d8;_0x538e59[_0x37846a('0xcd2')]=[],_0x538e59[_0x37846a('0x134c')][_0x37846a('0x134c')]=_0x59f2e7(),_0x538e59['interval'][_0x37846a('0x1491')]?(_0x538e59[_0x37846a('0x62e')]!==_0x37846a('0x15a8')&&(_0x538e59['interval']['IntervalId']=null),_0x442c35(_0x538e59['interval'])):_0x46bddc['interval'][_0x37846a('0xa70')]({'id':_0x538e59['interval']['id']},_0x538e59[_0x37846a('0x134c')])[_0x37846a('0xe59')][_0x37846a('0xe19')](function(_0x51c5a6){var _0x43f2a1=_0x37846a,_0x4b334a=_0x32d445()[_0x43f2a1('0xf15')](_0x538e59[_0x43f2a1('0x10e0')],{'id':_0x51c5a6['id']});_0x4b334a&&_0x32d445()[_0x43f2a1('0x1d8')](_0x4b334a,_0x51c5a6),_0x1546f7[_0x43f2a1('0x425')]({'title':_0x43f2a1('0x228'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x442c35();})['catch'](function(_0x2c4ece){var _0x260d40=_0x37846a;console[_0x260d40('0x8c8')](_0x2c4ece),_0x538e59[_0x260d40('0xcd2')]=_0x2c4ece[_0x260d40('0x11d0')][_0x260d40('0xcd2')]||[{'message':_0x2c4ece['toString'](),'type':_0x260d40('0x1ff2')}];});}function _0x442c35(_0x23a1cd){var _0x1d0ee5=_0x1ec3d8;_0x33734f[_0x1d0ee5('0x11ed')](_0x23a1cd);}}const _0x11942d=_0x3d82b2;_0x23b7d8[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),'mailAccountApp','mailAccount','api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x23b7d8(_0x4e7a0a,_0x431d0a,_0x339463,_0x4c5030,_0x35dc55,_0xdd7a5e,_0x5e8f29,_0x8526d9){var _0x5db018=_0xb635d2,_0x4ded49=this;_0x4ded49['currentUser']=_0x5e8f29[_0x5db018('0x1ef8')](),_0x4ded49[_0x5db018('0xcd2')]=[],_0x4ded49['title']=_0x5db018('0x1e52')+(_0x4c5030[_0x5db018('0xf44')]||_0x4c5030[_0x5db018('0xf2b')])[_0x5db018('0x25f7')](),_0x4ded49[_0x5db018('0xc09')]=angular[_0x5db018('0x89')](_0x4c5030),_0x4ded49['crudPermissions']=_0x8526d9,_0x4ded49[_0x5db018('0x1ccb')]={};if(_0x4ded49[_0x5db018('0xc09')]['appdata'])switch(_0x4ded49[_0x5db018('0xc09')]['appType']?_0x4ded49[_0x5db018('0xc09')][_0x5db018('0xf44')]['toLowerCase']():_0x4ded49[_0x5db018('0xc09')][_0x5db018('0xf2b')][_0x5db018('0x20dd')]()){case _0x5db018('0x261d'):break;case _0x5db018('0xc11'):{var _0x281de5=_0x4ded49['noop']['appdata'][_0x5db018('0x1745')](',');_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x6e4')]=_0x281de5[0x0],_0x4ded49[_0x5db018('0xc09')]['language']=_0x281de5[0x1],_0x4ded49[_0x5db018('0xc09')][_0x5db018('0xfcc')]=_0x281de5[_0x5db018('0xa19')](0x2,_0x281de5[_0x5db018('0x25ae')])[_0x5db018('0x1537')](',');}break;case _0x5db018('0x1321'):{var _0x3e0df6=_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x26d2')][_0x5db018('0x1745')](',');_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x22be')]=_0x3e0df6[0x0],_0x4ded49[_0x5db018('0xc09')]['secretaccesskey']=_0x3e0df6[0x1],_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x206a')]=_0x3e0df6[0x2],_0x4ded49['noop']['botname']=_0x3e0df6[0x3],_0x4ded49[_0x5db018('0xc09')][_0x5db018('0xfcc')]=_0x3e0df6[_0x5db018('0xa19')](0x4,_0x3e0df6[_0x5db018('0x25ae')])[_0x5db018('0x1537')](',');}break;case'autoreply':{var _0xe2cc0a=_0x4ded49['noop'][_0x5db018('0x26d2')]['split'](',');_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x1ec4')]=isNaN(_0xe2cc0a[0x0])?_0xe2cc0a[0x0]:parseInt(_0xe2cc0a[0x0],0xa),_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x1bc6')]=_0xe2cc0a[_0x5db018('0xa19')](0x1,_0xe2cc0a['length'])[_0x5db018('0x1537')](',');}break;case _0x5db018('0x27e8'):_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x1bc6')]=_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x26d2')];break;case'set':_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x2623')]=_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x26d2')]['split']('=')[0x0],_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x2')]=_0x4ded49['noop']['appdata'][_0x5db018('0x1745')]('=')[0x1];break;case'agi':_0x4ded49[_0x5db018('0xc09')]['project']=_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x26d2')];break;default:{var _0x546e41=_0x4ded49[_0x5db018('0xc09')]['appdata'][_0x5db018('0x1745')](',');_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x2')]=_0x32d445()[_0x5db018('0x14b4')](_0x546e41[0x0])?_0x546e41[0x0]:isNaN(_0x546e41[0x0])?_0x546e41[0x0]:parseInt(_0x546e41[0x0],0xa);}break;}else{}_0x4ded49['noop']['type']&&_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x62e')][_0x5db018('0x20dd')]()===_0x5db018('0x1fdf')&&_0x4ded49[_0x5db018('0xc09')]['appType'][_0x5db018('0x20dd')]()===_0x5db018('0x1d1b')&&(_0x4ded49['noop'][_0x5db018('0x2580')]=_0x4ded49['noop'][_0x5db018('0x1ef5')]?_0x4ded49[_0x5db018('0xc09')][_0x5db018('0x1ef5')]['split']('$')[0x0]:undefined,_0x4ded49['noop'][_0x5db018('0x1b6f')]=_0x4ded49['noop'][_0x5db018('0xfca')]?'CALLERID(all)='+_0x4ded49[_0x5db018('0xc09')][_0x5db018('0xfca')]:undefined);_0x4ded49[_0x5db018('0x20cd')]=_0x49d880,_0x4ded49[_0x5db018('0x2584')]=_0xfa1bfe;function _0x49d880(){var _0xb24996=_0x5db018;_0x4ded49['errors']=[];var _0x237bbc=[];_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x62e')]&&_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x62e')][_0xb24996('0x20dd')]()==='outbound'&&_0x4ded49[_0xb24996('0xc09')][_0xb24996('0xf44')]===_0xb24996('0x3d2')&&(_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x1ef5')]=_0x35dc55['cutdigits']?(_0x4ded49[_0xb24996('0xc09')]['prefix']||'')+_0xb24996('0x5d8')+_0x35dc55[_0xb24996('0x27f6')]+'}':(_0x4ded49['noop'][_0xb24996('0x2580')]||'')+_0xb24996('0x16b5'),_0x35dc55['recordingFormat']!==_0xb24996('0x23ca')?_0x4ded49[_0xb24996('0xc09')]['options'][_0xb24996('0x281c')](_0xb24996('0x767'))<0x0&&(_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x2116')]+='U(xcally-mixmonitor-context)'):_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x2116')]=_0x4ded49['noop']['options'][_0xb24996('0x1b42')](_0xb24996('0x767'),''));if(_0x4ded49[_0xb24996('0xc09')][_0xb24996('0xf44')]&&_0x4ded49[_0xb24996('0xc09')][_0xb24996('0xf44')]==='custom'){}else switch((_0x4ded49[_0xb24996('0xc09')]['app']||_0x4ded49[_0xb24996('0xc09')]['appType'])[_0xb24996('0x20dd')]()){case _0xb24996('0x2aa'):_0x4ded49[_0xb24996('0xc09')]['appdata']=_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x2623')]+'='+_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x2')];break;case _0xb24996('0x261d'):break;default:_0x237bbc[0x0]=_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x2')],_0x4ded49[_0xb24996('0xc09')][_0xb24996('0x26d2')]=_0x237bbc['join'](',');}_0xfa1bfe(_0x4ded49[_0xb24996('0xc09')]);}function _0xfa1bfe(_0x1645fa){_0x4e7a0a['hide'](_0x1645fa);}}const _0x5ac401=_0x23b7d8;_0x48bcfe['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0x1c3f'),_0xb635d2('0x17f0'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x48bcfe(_0x41b138,_0x5794a8,_0x13fddb,_0x5939c5,_0x4d8717,_0x2f6b2f,_0x22f49c,_0x379abc){var _0x2c50d2=_0xb635d2,_0xb77022=this;_0xb77022[_0x2c50d2('0x15a5')]=_0x22f49c[_0x2c50d2('0x1ef8')](),_0xb77022[_0x2c50d2('0xcd2')]=[],_0xb77022['title']=_0x2c50d2('0x1e52')+(_0x5939c5[_0x2c50d2('0xf44')]||_0x5939c5['app'])['toUpperCase'](),_0xb77022[_0x2c50d2('0x26a8')]=angular['copy'](_0x5939c5),_0xb77022['crudPermissions']=_0x379abc,_0xb77022[_0x2c50d2('0x1ccb')]={};if(_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x26d2')])switch(_0xb77022[_0x2c50d2('0x26a8')]['appType']?_0xb77022['queue'][_0x2c50d2('0xf44')]['toLowerCase']():_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0xf2b')][_0x2c50d2('0x20dd')]()){case'custom':break;case'dialogflow':{var _0x1286e2=_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x26d2')]['split'](',');_0xb77022['queue']['key']=_0x1286e2[0x0],_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x174b')]=_0x1286e2[0x1],_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0xfcc')]=_0x1286e2[_0x2c50d2('0xa19')](0x2,_0x1286e2['length'])[_0x2c50d2('0x1537')](',');}break;case'amazonlex':{var _0x2a1ded=_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x26d2')][_0x2c50d2('0x1745')](',');_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x22be')]=_0x2a1ded[0x0],_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x700')]=_0x2a1ded[0x1],_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x206a')]=_0x2a1ded[0x2],_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x191a')]=_0x2a1ded[0x3],_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0xfcc')]=_0x2a1ded['slice'](0x4,_0x2a1ded['length'])[_0x2c50d2('0x1537')](',');}break;case _0x2c50d2('0x400'):{var _0x21c875=_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x26d2')]['split'](',');_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x1ec4')]=isNaN(_0x21c875[0x0])?_0x21c875[0x0]:parseInt(_0x21c875[0x0],0xa),_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x1bc6')]=_0x21c875['slice'](0x1,_0x21c875[_0x2c50d2('0x25ae')])['join'](',');}break;case _0x2c50d2('0x27e8'):_0xb77022['queue'][_0x2c50d2('0x1bc6')]=_0xb77022[_0x2c50d2('0x26a8')]['appdata'];break;case _0x2c50d2('0x2aa'):_0xb77022['queue'][_0x2c50d2('0x2623')]=_0xb77022['queue'][_0x2c50d2('0x26d2')]['split']('=')[0x0],_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x2')]=_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x26d2')][_0x2c50d2('0x1745')]('=')[0x1];break;case _0x2c50d2('0x401'):_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x38b')]=_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x26d2')];break;default:{var _0xc940a7=_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x26d2')]['split'](',');_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x26a8')]=_0x32d445()[_0x2c50d2('0x14b4')](_0xc940a7[0x0])?_0xc940a7[0x0]:isNaN(_0xc940a7[0x0])?_0xc940a7[0x0]:parseInt(_0xc940a7[0x0],0xa),_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x2058')]=_0x32d445()[_0x2c50d2('0x14b4')](_0xc940a7[0x1])?_0xc940a7[0x1]:isNaN(_0xc940a7[0x1])?_0xc940a7[0x1]:parseInt(_0xc940a7[0x1],0xa);}break;}else _0xb77022['queue'][_0x2c50d2('0x26a8')]=0x12c,_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x2058')]=0x12c;_0xb77022['queue'][_0x2c50d2('0x62e')]&&_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x62e')][_0x2c50d2('0x20dd')]()===_0x2c50d2('0x1fdf')&&_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0xf44')][_0x2c50d2('0x20dd')]()===_0x2c50d2('0x1d1b')&&(_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x2580')]=_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0x1ef5')]?_0xb77022['queue'][_0x2c50d2('0x1ef5')][_0x2c50d2('0x1745')]('$')[0x0]:undefined,_0xb77022['queue'][_0x2c50d2('0x1b6f')]=_0xb77022['queue'][_0x2c50d2('0xfca')]?_0x2c50d2('0xd41')+_0xb77022[_0x2c50d2('0x26a8')][_0x2c50d2('0xfca')]:undefined);_0xb77022[_0x2c50d2('0x20cd')]=_0x33f645,_0xb77022['closeDialog']=_0x5dcb0b,_0x22f49c[_0x2c50d2('0x179e')](_0x2c50d2('0xd14'))?_0x2f6b2f[_0x2c50d2('0x18d9')]['get']({'fields':_0x2c50d2('0x1555'),'sort':_0x2c50d2('0x2623'),'nolimit':'true'})[_0x2c50d2('0xe59')][_0x2c50d2('0xe19')](function(_0x1f9895){var _0x9704b1=_0x2c50d2;_0xb77022[_0x9704b1('0x671')]=_0x1f9895[_0x9704b1('0x16a7')]||[];})['catch'](function(_0x583dc6){var _0x21201f=_0x2c50d2;_0x13fddb[_0x21201f('0x8c8')]({'title':_0x583dc6[_0x21201f('0x2833')]?_0x21201f('0x27f2')+_0x583dc6[_0x21201f('0x2833')]+'\x20-\x20'+_0x583dc6[_0x21201f('0x1fd7')]:_0x21201f('0x19e6'),'msg':_0x583dc6[_0x21201f('0x11d0')]?JSON[_0x21201f('0x3ad')](_0x583dc6[_0x21201f('0x11d0')]):_0x583dc6[_0x21201f('0x94f')]()});}):_0x2f6b2f[_0x2c50d2('0x18d9')][_0x2c50d2('0x22d5')]({'fields':_0x2c50d2('0x1555'),'sort':_0x2c50d2('0x2623'),'nolimit':_0x2c50d2('0x2206')})[_0x2c50d2('0xe59')][_0x2c50d2('0xe19')](function(_0x128747){var _0x2a7b75=_0x2c50d2;_0xb77022[_0x2a7b75('0x671')]=_0x128747[_0x2a7b75('0x16a7')]||[];})[_0x2c50d2('0xe19')](function(){var _0x5b3f8e=_0x2c50d2;return _0x2f6b2f[_0x5b3f8e('0xb59')][_0x5b3f8e('0x22d5')]({'userProfileId':_0xb77022[_0x5b3f8e('0x15a5')][_0x5b3f8e('0x1d04')],'sectionId':0x259})['$promise'];})[_0x2c50d2('0xe19')](function(_0x144a65){var _0x4c82d8=_0x2c50d2,_0x3fa2b5=_0x144a65&&_0x144a65[_0x4c82d8('0x16a7')]?_0x144a65[_0x4c82d8('0x16a7')][0x0]:null;if(!_0x3fa2b5){var _0x253a5f=[],_0x4356ec=null;_0xb77022['queue']&&(_0x4356ec=_0x32d445()[_0x4c82d8('0xf15')](_0xb77022[_0x4c82d8('0x671')],{'name':_0xb77022[_0x4c82d8('0x26a8')][_0x4c82d8('0x26a8')]}));for(var _0x45ae95=0x0;_0x45ae95<_0xb77022[_0x4c82d8('0x671')][_0x4c82d8('0x25ae')];_0x45ae95++){_0x4356ec&&_0xb77022['queues'][_0x45ae95]['id']===_0x4356ec['id']&&(_0xb77022[_0x4c82d8('0x671')][_0x45ae95][_0x4c82d8('0x1e9d')]=![],_0x253a5f[_0x4c82d8('0xb76')](_0xb77022['queues'][_0x45ae95]));}_0xb77022['queues']=_0x253a5f;}else{if(!_0x3fa2b5[_0x4c82d8('0x11fd')])return _0x2f6b2f[_0x4c82d8('0xd49')][_0x4c82d8('0x22d5')]({'sectionId':_0x3fa2b5['id']})[_0x4c82d8('0xe59')][_0x4c82d8('0xe19')](function(_0x3ef4f9){var _0x565d13=_0x4c82d8,_0x59d882=_0x32d445()[_0x565d13('0x65a')](_0x3ef4f9[_0x565d13('0x16a7')],function(_0x26b26e){var _0x457b25=_0x565d13;return _0x32d445()[_0x457b25('0xf15')](_0xb77022[_0x457b25('0x671')],{'id':_0x26b26e['resourceId']});}),_0xca633f=null;_0xb77022['queue']&&(_0xca633f=_0x32d445()[_0x565d13('0xf15')](_0xb77022[_0x565d13('0x671')],{'name':_0xb77022[_0x565d13('0x26a8')][_0x565d13('0x26a8')]}));if(_0xca633f&&!_0x32d445()[_0x565d13('0x201a')](_0x59d882,['id',_0xca633f['id']])){var _0x400dd1=_0x32d445()['find'](_0xb77022[_0x565d13('0x671')],{'id':_0xca633f['id']});_0x400dd1[_0x565d13('0x1e9d')]=![],_0x59d882['push'](_0x400dd1);}_0xb77022[_0x565d13('0x671')]=_0x59d882;});}})[_0x2c50d2('0x223b')](function(_0x3637e6){var _0xe7e127=_0x2c50d2;_0x13fddb[_0xe7e127('0x8c8')]({'title':_0x3637e6[_0xe7e127('0x2833')]?_0xe7e127('0x27f2')+_0x3637e6[_0xe7e127('0x2833')]+_0xe7e127('0x1b7c')+_0x3637e6[_0xe7e127('0x1fd7')]:'SYSTEM:GETqueues','msg':_0x3637e6[_0xe7e127('0x11d0')]?JSON[_0xe7e127('0x3ad')](_0x3637e6[_0xe7e127('0x11d0')]):_0x3637e6[_0xe7e127('0x94f')]()});});function _0x33f645(){var _0xab04fc=_0x2c50d2;_0xb77022[_0xab04fc('0xcd2')]=[];var _0x1f4d83=[];_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x62e')]&&_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x62e')][_0xab04fc('0x20dd')]()===_0xab04fc('0x1fdf')&&_0xb77022[_0xab04fc('0x26a8')]['appType']===_0xab04fc('0x3d2')&&(_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x1ef5')]=_0x4d8717[_0xab04fc('0x27f6')]?(_0xb77022['queue'][_0xab04fc('0x2580')]||'')+'${EXTEN:'+_0x4d8717[_0xab04fc('0x27f6')]+'}':(_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x2580')]||'')+_0xab04fc('0x16b5'),_0x4d8717[_0xab04fc('0x150c')]!=='none'?_0xb77022[_0xab04fc('0x26a8')]['options'][_0xab04fc('0x281c')](_0xab04fc('0x767'))<0x0&&(_0xb77022['queue'][_0xab04fc('0x2116')]+='U(xcally-mixmonitor-context)'):_0xb77022['queue'][_0xab04fc('0x2116')]=_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x2116')]['replace'](_0xab04fc('0x767'),''));var _0x14e147=_0x32d445()[_0xab04fc('0xf15')](_0xb77022[_0xab04fc('0x671')],{'name':_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x26a8')]});_0x14e147&&(_0xb77022['queue'][_0x32d445()['capitalize'](_0xab04fc('0x26bf'))+_0xab04fc('0x27a3')]=_0x14e147['id']);if(_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0xf44')]&&_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0xf44')]===_0xab04fc('0x261d')){}else switch((_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0xf2b')]||_0xb77022[_0xab04fc('0x26a8')]['appType'])[_0xab04fc('0x20dd')]()){case _0xab04fc('0x2aa'):_0xb77022['queue'][_0xab04fc('0x26d2')]=_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x2623')]+'='+_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x2')];break;case _0xab04fc('0x261d'):break;default:_0x1f4d83[0x0]=_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x26a8')],_0x1f4d83[0x1]=_0xb77022['queue'][_0xab04fc('0x2058')],_0xb77022[_0xab04fc('0x26a8')][_0xab04fc('0x26d2')]=_0x1f4d83['join'](',');}_0x5dcb0b(_0xb77022['queue']);}function _0x5dcb0b(_0x93b02){var _0x38316c=_0x2c50d2;_0x41b138[_0x38316c('0x11ed')](_0x93b02);}}const _0x403357=_0x48bcfe;_0x580ae1[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1c3f'),_0xb635d2('0x17f0'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x580ae1(_0x3bb8db,_0x48d701,_0x27a3a3,_0x47b7ac,_0xd9fecd,_0x1e434f,_0x39dc69,_0x1d2c7d){var _0x51eefe=_0xb635d2,_0x5afa83=this;_0x5afa83['currentUser']=_0x39dc69[_0x51eefe('0x1ef8')](),_0x5afa83[_0x51eefe('0xcd2')]=[],_0x5afa83[_0x51eefe('0x13e4')]='MAIL.EDIT_'+(_0x47b7ac[_0x51eefe('0xf44')]||_0x47b7ac[_0x51eefe('0xf2b')])[_0x51eefe('0x25f7')](),_0x5afa83['system']=angular['copy'](_0x47b7ac),_0x5afa83[_0x51eefe('0xb3d')]=_0x1d2c7d,_0x5afa83[_0x51eefe('0x1ccb')]={};if(_0x5afa83[_0x51eefe('0x1917')]['appdata'])switch(_0x5afa83[_0x51eefe('0x1917')]['appType']?_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0xf44')]['toLowerCase']():_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0xf2b')][_0x51eefe('0x20dd')]()){case _0x51eefe('0x261d'):break;case _0x51eefe('0xc11'):{var _0x18124b=_0x5afa83[_0x51eefe('0x1917')]['appdata'][_0x51eefe('0x1745')](',');_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x6e4')]=_0x18124b[0x0],_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x174b')]=_0x18124b[0x1],_0x5afa83[_0x51eefe('0x1917')]['welcomemessage']=_0x18124b[_0x51eefe('0xa19')](0x2,_0x18124b['length'])[_0x51eefe('0x1537')](',');}break;case'amazonlex':{var _0x586083=_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x26d2')][_0x51eefe('0x1745')](',');_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x22be')]=_0x586083[0x0],_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x700')]=_0x586083[0x1],_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x206a')]=_0x586083[0x2],_0x5afa83[_0x51eefe('0x1917')]['botname']=_0x586083[0x3],_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0xfcc')]=_0x586083[_0x51eefe('0xa19')](0x4,_0x586083['length'])[_0x51eefe('0x1537')](',');}break;case _0x51eefe('0x400'):{var _0x5b2232=_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x26d2')][_0x51eefe('0x1745')](',');_0x5afa83['system'][_0x51eefe('0x1ec4')]=isNaN(_0x5b2232[0x0])?_0x5b2232[0x0]:parseInt(_0x5b2232[0x0],0xa),_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x1bc6')]=_0x5b2232['slice'](0x1,_0x5b2232[_0x51eefe('0x25ae')])[_0x51eefe('0x1537')](',');}break;case _0x51eefe('0x27e8'):_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x1bc6')]=_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x26d2')];break;case _0x51eefe('0x2aa'):_0x5afa83[_0x51eefe('0x1917')]['name']=_0x5afa83[_0x51eefe('0x1917')]['appdata'][_0x51eefe('0x1745')]('=')[0x0],_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x2')]=_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x26d2')][_0x51eefe('0x1745')]('=')[0x1];break;case _0x51eefe('0x401'):_0x5afa83[_0x51eefe('0x1917')]['project']=_0x5afa83['system']['appdata'];break;default:{var _0x5c4086=_0x5afa83['system']['appdata']['split'](',');_0x5afa83['system']['command']=_0x32d445()[_0x51eefe('0x14b4')](_0x5c4086[0x0])?_0x5c4086[0x0]:isNaN(_0x5c4086[0x0])?_0x5c4086[0x0]:parseInt(_0x5c4086[0x0],0xa),_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x19a5')]=_0x32d445()[_0x51eefe('0x14b4')](_0x5c4086[0x1])?_0x5c4086[0x1]:isNaN(_0x5c4086[0x1])?_0x5c4086[0x1]:parseInt(_0x5c4086[0x1],0xa);}break;}else _0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x19a5')]='';_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x62e')]&&_0x5afa83['system']['type']['toLowerCase']()===_0x51eefe('0x1fdf')&&_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0xf44')][_0x51eefe('0x20dd')]()===_0x51eefe('0x1d1b')&&(_0x5afa83['system'][_0x51eefe('0x2580')]=_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x1ef5')]?_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0x1ef5')][_0x51eefe('0x1745')]('$')[0x0]:undefined,_0x5afa83[_0x51eefe('0x1917')]['callerId']=_0x5afa83[_0x51eefe('0x1917')][_0x51eefe('0xfca')]?_0x51eefe('0xd41')+_0x5afa83[_0x51eefe('0x1917')]['callerID']:undefined);_0x5afa83[_0x51eefe('0x20cd')]=_0x7364f1,_0x5afa83[_0x51eefe('0x2584')]=_0x234219,_0x39dc69[_0x51eefe('0x179e')]('admin')?_0x1e434f['variable'][_0x51eefe('0x22d5')]({'fields':_0x51eefe('0x104'),'sort':_0x51eefe('0x2623'),'nolimit':'true'})[_0x51eefe('0xe59')][_0x51eefe('0xe19')](function(_0x226633){var _0x22649c=_0x51eefe;_0x5afa83[_0x22649c('0x1a9e')]=_0x226633[_0x22649c('0x16a7')]||[];})['catch'](function(_0x3001ec){var _0x323b5e=_0x51eefe;_0x27a3a3[_0x323b5e('0x8c8')]({'title':_0x3001ec[_0x323b5e('0x2833')]?'API:'+_0x3001ec['status']+_0x323b5e('0x1b7c')+_0x3001ec[_0x323b5e('0x1fd7')]:_0x323b5e('0x282'),'msg':_0x3001ec[_0x323b5e('0x11d0')]?JSON[_0x323b5e('0x3ad')](_0x3001ec[_0x323b5e('0x11d0')]):_0x3001ec[_0x323b5e('0x94f')]()});}):_0x1e434f[_0x51eefe('0x19a5')][_0x51eefe('0x22d5')]({'fields':_0x51eefe('0x104'),'sort':'name','nolimit':'true'})[_0x51eefe('0xe59')]['then'](function(_0x30d092){_0x5afa83['variables']=_0x30d092['rows']||[];})[_0x51eefe('0xe19')](function(){var _0x1b97ef=_0x51eefe;return _0x1e434f[_0x1b97ef('0xb59')][_0x1b97ef('0x22d5')]({'userProfileId':_0x5afa83['currentUser'][_0x1b97ef('0x1d04')],'sectionId':0x3f4})['$promise'];})[_0x51eefe('0xe19')](function(_0x2a34bb){var _0x368975=_0x51eefe,_0x4fa7bf=_0x2a34bb&&_0x2a34bb['rows']?_0x2a34bb[_0x368975('0x16a7')][0x0]:null;if(!_0x4fa7bf){var _0x4cdbeb=[],_0x3a712d=null;_0x5afa83[_0x368975('0x1917')]&&(_0x3a712d=_0x32d445()['find'](_0x5afa83['variables'],{'name':_0x5afa83['system'][_0x368975('0x19a5')]}));for(var _0x459b11=0x0;_0x459b11<_0x5afa83[_0x368975('0x1a9e')][_0x368975('0x25ae')];_0x459b11++){_0x3a712d&&_0x5afa83[_0x368975('0x1a9e')][_0x459b11]['id']===_0x3a712d['id']&&(_0x5afa83[_0x368975('0x1a9e')][_0x459b11][_0x368975('0x1e9d')]=![],_0x4cdbeb[_0x368975('0xb76')](_0x5afa83[_0x368975('0x1a9e')][_0x459b11]));}_0x5afa83['variables']=_0x4cdbeb;}else{if(!_0x4fa7bf[_0x368975('0x11fd')])return _0x1e434f['userProfileResource']['get']({'sectionId':_0x4fa7bf['id']})[_0x368975('0xe59')][_0x368975('0xe19')](function(_0x15e353){var _0x24d6a0=_0x368975,_0x431478=_0x32d445()['map'](_0x15e353[_0x24d6a0('0x16a7')],function(_0x477bfb){var _0x4da83e=_0x24d6a0;return _0x32d445()[_0x4da83e('0xf15')](_0x5afa83[_0x4da83e('0x1a9e')],{'id':_0x477bfb['resourceId']});}),_0x385243=null;_0x5afa83['system']&&(_0x385243=_0x32d445()[_0x24d6a0('0xf15')](_0x5afa83[_0x24d6a0('0x1a9e')],{'name':_0x5afa83[_0x24d6a0('0x1917')][_0x24d6a0('0x19a5')]}));if(_0x385243&&!_0x32d445()[_0x24d6a0('0x201a')](_0x431478,['id',_0x385243['id']])){var _0x32dd8d=_0x32d445()[_0x24d6a0('0xf15')](_0x5afa83['variables'],{'id':_0x385243['id']});_0x32dd8d['canSelect']=![],_0x431478['push'](_0x32dd8d);}_0x5afa83['variables']=_0x431478;});}})['catch'](function(_0x4e5b12){var _0xe1345a=_0x51eefe;_0x27a3a3[_0xe1345a('0x8c8')]({'title':_0x4e5b12[_0xe1345a('0x2833')]?_0xe1345a('0x27f2')+_0x4e5b12[_0xe1345a('0x2833')]+'\x20-\x20'+_0x4e5b12[_0xe1345a('0x1fd7')]:_0xe1345a('0x287e'),'msg':_0x4e5b12[_0xe1345a('0x11d0')]?JSON[_0xe1345a('0x3ad')](_0x4e5b12['data']):_0x4e5b12[_0xe1345a('0x94f')]()});});function _0x7364f1(){var _0x5ee395=_0x51eefe;_0x5afa83[_0x5ee395('0xcd2')]=[];var _0x5d5480=[];_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0x62e')]&&_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0x62e')][_0x5ee395('0x20dd')]()===_0x5ee395('0x1fdf')&&_0x5afa83[_0x5ee395('0x1917')]['appType']===_0x5ee395('0x3d2')&&(_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0x1ef5')]=_0xd9fecd[_0x5ee395('0x27f6')]?(_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0x2580')]||'')+'${EXTEN:'+_0xd9fecd[_0x5ee395('0x27f6')]+'}':(_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0x2580')]||'')+_0x5ee395('0x16b5'),_0xd9fecd['recordingFormat']!==_0x5ee395('0x23ca')?_0x5afa83[_0x5ee395('0x1917')]['options'][_0x5ee395('0x281c')](_0x5ee395('0x767'))<0x0&&(_0x5afa83[_0x5ee395('0x1917')]['options']+=_0x5ee395('0x767')):_0x5afa83[_0x5ee395('0x1917')]['options']=_0x5afa83[_0x5ee395('0x1917')]['options'][_0x5ee395('0x1b42')](_0x5ee395('0x767'),''));if(_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0xf44')]&&_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0xf44')]==='custom'){}else switch((_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0xf2b')]||_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0xf44')])[_0x5ee395('0x20dd')]()){case _0x5ee395('0x2aa'):_0x5afa83['system'][_0x5ee395('0x26d2')]=_0x5afa83['system'][_0x5ee395('0x2623')]+'='+_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0x2')];break;case _0x5ee395('0x261d'):break;default:_0x5d5480[0x0]=_0x5afa83[_0x5ee395('0x1917')][_0x5ee395('0x19a')],_0x5d5480[0x1]=_0x5afa83['system']['variable'],_0x5afa83['system']['appdata']=_0x5d5480[_0x5ee395('0x1537')](',');}_0x234219(_0x5afa83[_0x5ee395('0x1917')]);}function _0x234219(_0x322171){_0x3bb8db['hide'](_0x322171);}}const _0x5d5f7a=_0x580ae1;_0x2d6750[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1c3f'),_0xb635d2('0x17f0'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x2d6750(_0x318ca7,_0x9bb599,_0x59351c,_0x115556,_0x12c9fd,_0x569be1,_0x1704b0,_0x4af647){var _0x466690=_0xb635d2,_0x59e003=this;_0x59e003[_0x466690('0x15a5')]=_0x1704b0[_0x466690('0x1ef8')](),_0x59e003['errors']=[],_0x59e003[_0x466690('0x13e4')]=_0x466690('0x1e52')+(_0x115556[_0x466690('0xf44')]||_0x115556['app'])[_0x466690('0x25f7')](),_0x59e003[_0x466690('0x2037')]=angular[_0x466690('0x89')](_0x115556),_0x59e003['crudPermissions']=_0x4af647,_0x59e003[_0x466690('0x1ccb')]={};if(_0x59e003[_0x466690('0x2037')][_0x466690('0x26d2')])switch(_0x59e003[_0x466690('0x2037')][_0x466690('0xf44')]?_0x59e003[_0x466690('0x2037')][_0x466690('0xf44')][_0x466690('0x20dd')]():_0x59e003[_0x466690('0x2037')][_0x466690('0xf2b')][_0x466690('0x20dd')]()){case _0x466690('0x261d'):break;case _0x466690('0xc11'):{var _0x414cc9=_0x59e003[_0x466690('0x2037')][_0x466690('0x26d2')][_0x466690('0x1745')](',');_0x59e003[_0x466690('0x2037')][_0x466690('0x6e4')]=_0x414cc9[0x0],_0x59e003[_0x466690('0x2037')]['language']=_0x414cc9[0x1],_0x59e003[_0x466690('0x2037')][_0x466690('0xfcc')]=_0x414cc9['slice'](0x2,_0x414cc9[_0x466690('0x25ae')])['join'](',');}break;case _0x466690('0x1321'):{var _0x5815f6=_0x59e003[_0x466690('0x2037')][_0x466690('0x26d2')]['split'](',');_0x59e003[_0x466690('0x2037')][_0x466690('0x22be')]=_0x5815f6[0x0],_0x59e003[_0x466690('0x2037')][_0x466690('0x700')]=_0x5815f6[0x1],_0x59e003[_0x466690('0x2037')][_0x466690('0x206a')]=_0x5815f6[0x2],_0x59e003[_0x466690('0x2037')][_0x466690('0x191a')]=_0x5815f6[0x3],_0x59e003[_0x466690('0x2037')][_0x466690('0xfcc')]=_0x5815f6['slice'](0x4,_0x5815f6[_0x466690('0x25ae')])[_0x466690('0x1537')](',');}break;case _0x466690('0x400'):{var _0x88b4cf=_0x59e003[_0x466690('0x2037')][_0x466690('0x26d2')][_0x466690('0x1745')](',');_0x59e003[_0x466690('0x2037')][_0x466690('0x1ec4')]=isNaN(_0x88b4cf[0x0])?_0x88b4cf[0x0]:parseInt(_0x88b4cf[0x0],0xa),_0x59e003[_0x466690('0x2037')]['text']=_0x88b4cf[_0x466690('0xa19')](0x1,_0x88b4cf[_0x466690('0x25ae')])['join'](',');}break;case _0x466690('0x27e8'):_0x59e003['tag'][_0x466690('0x1bc6')]=_0x59e003[_0x466690('0x2037')][_0x466690('0x26d2')];break;case _0x466690('0x2aa'):_0x59e003[_0x466690('0x2037')][_0x466690('0x2623')]=_0x59e003[_0x466690('0x2037')][_0x466690('0x26d2')][_0x466690('0x1745')]('=')[0x0],_0x59e003[_0x466690('0x2037')][_0x466690('0x2')]=_0x59e003[_0x466690('0x2037')][_0x466690('0x26d2')][_0x466690('0x1745')]('=')[0x1];break;case _0x466690('0x401'):_0x59e003[_0x466690('0x2037')][_0x466690('0x38b')]=_0x59e003[_0x466690('0x2037')][_0x466690('0x26d2')];break;default:{var _0x15dc56=_0x59e003['tag']['appdata'][_0x466690('0x1745')](',');_0x59e003[_0x466690('0x2037')][_0x466690('0x2037')]=_0x32d445()['isEmpty'](_0x15dc56[0x0])?_0x15dc56[0x0]:isNaN(_0x15dc56[0x0])?_0x15dc56[0x0]:parseInt(_0x15dc56[0x0],0xa);}break;}else{}_0x59e003['tag']['type']&&_0x59e003[_0x466690('0x2037')][_0x466690('0x62e')][_0x466690('0x20dd')]()===_0x466690('0x1fdf')&&_0x59e003[_0x466690('0x2037')][_0x466690('0xf44')][_0x466690('0x20dd')]()===_0x466690('0x1d1b')&&(_0x59e003['tag'][_0x466690('0x2580')]=_0x59e003[_0x466690('0x2037')][_0x466690('0x1ef5')]?_0x59e003['tag'][_0x466690('0x1ef5')]['split']('$')[0x0]:undefined,_0x59e003[_0x466690('0x2037')][_0x466690('0x1b6f')]=_0x59e003[_0x466690('0x2037')][_0x466690('0xfca')]?_0x466690('0xd41')+_0x59e003[_0x466690('0x2037')]['callerID']:undefined);_0x59e003[_0x466690('0x20cd')]=_0x56b3e1,_0x59e003[_0x466690('0x2584')]=_0x3ef826,_0x1704b0[_0x466690('0x179e')]('admin')?_0x569be1['tag'][_0x466690('0x22d5')]({'fields':_0x466690('0x104'),'sort':_0x466690('0x2623'),'nolimit':_0x466690('0x2206')})['$promise']['then'](function(_0x4d533b){var _0x48847c=_0x466690;_0x59e003[_0x48847c('0x1105')]=_0x4d533b[_0x48847c('0x16a7')]||[];})[_0x466690('0x223b')](function(_0x12ba59){var _0xcc2320=_0x466690;_0x59351c[_0xcc2320('0x8c8')]({'title':_0x12ba59[_0xcc2320('0x2833')]?_0xcc2320('0x27f2')+_0x12ba59[_0xcc2320('0x2833')]+_0xcc2320('0x1b7c')+_0x12ba59[_0xcc2320('0x1fd7')]:'SYSTEM:GET_TAGS','msg':_0x12ba59[_0xcc2320('0x11d0')]?JSON[_0xcc2320('0x3ad')](_0x12ba59[_0xcc2320('0x11d0')]):_0x12ba59[_0xcc2320('0x94f')]()});}):_0x569be1['tag'][_0x466690('0x22d5')]({'fields':'id,name','sort':_0x466690('0x2623'),'nolimit':_0x466690('0x2206')})[_0x466690('0xe59')][_0x466690('0xe19')](function(_0x5f0467){var _0x41efbb=_0x466690;_0x59e003['tags']=_0x5f0467[_0x41efbb('0x16a7')]||[];})['then'](function(){var _0x1e1fb7=_0x466690;return _0x569be1[_0x1e1fb7('0xb59')][_0x1e1fb7('0x22d5')]({'userProfileId':_0x59e003[_0x1e1fb7('0x15a5')][_0x1e1fb7('0x1d04')],'sectionId':0x3f0})[_0x1e1fb7('0xe59')];})[_0x466690('0xe19')](function(_0x2517e3){var _0x2a11b5=_0x466690,_0xe5bce3=_0x2517e3&&_0x2517e3[_0x2a11b5('0x16a7')]?_0x2517e3[_0x2a11b5('0x16a7')][0x0]:null;if(!_0xe5bce3){var _0xe4bd94=[],_0x2d3c4c=null;_0x59e003[_0x2a11b5('0x2037')]&&(_0x2d3c4c=_0x32d445()[_0x2a11b5('0xf15')](_0x59e003[_0x2a11b5('0x1105')],{'name':_0x59e003['tag']['tag']}));for(var _0x2fb44e=0x0;_0x2fb44e<_0x59e003['tags']['length'];_0x2fb44e++){_0x2d3c4c&&_0x59e003[_0x2a11b5('0x1105')][_0x2fb44e]['id']===_0x2d3c4c['id']&&(_0x59e003[_0x2a11b5('0x1105')][_0x2fb44e][_0x2a11b5('0x1e9d')]=![],_0xe4bd94[_0x2a11b5('0xb76')](_0x59e003[_0x2a11b5('0x1105')][_0x2fb44e]));}_0x59e003[_0x2a11b5('0x1105')]=_0xe4bd94;}else{if(!_0xe5bce3[_0x2a11b5('0x11fd')])return _0x569be1[_0x2a11b5('0xd49')][_0x2a11b5('0x22d5')]({'sectionId':_0xe5bce3['id']})['$promise'][_0x2a11b5('0xe19')](function(_0x27a162){var _0x4ef0da=_0x2a11b5,_0x293999=_0x32d445()[_0x4ef0da('0x65a')](_0x27a162[_0x4ef0da('0x16a7')],function(_0x100507){var _0x20f664=_0x4ef0da;return _0x32d445()[_0x20f664('0xf15')](_0x59e003[_0x20f664('0x1105')],{'id':_0x100507[_0x20f664('0x1104')]});}),_0x13b375=null;_0x59e003[_0x4ef0da('0x2037')]&&(_0x13b375=_0x32d445()[_0x4ef0da('0xf15')](_0x59e003[_0x4ef0da('0x1105')],{'name':_0x59e003[_0x4ef0da('0x2037')][_0x4ef0da('0x2037')]}));if(_0x13b375&&!_0x32d445()['some'](_0x293999,['id',_0x13b375['id']])){var _0x4fdda3=_0x32d445()[_0x4ef0da('0xf15')](_0x59e003['tags'],{'id':_0x13b375['id']});_0x4fdda3[_0x4ef0da('0x1e9d')]=![],_0x293999['push'](_0x4fdda3);}_0x59e003[_0x4ef0da('0x1105')]=_0x293999;});}})[_0x466690('0x223b')](function(_0x1d4d4d){var _0x4d7509=_0x466690;_0x59351c['error']({'title':_0x1d4d4d[_0x4d7509('0x2833')]?_0x4d7509('0x27f2')+_0x1d4d4d['status']+_0x4d7509('0x1b7c')+_0x1d4d4d[_0x4d7509('0x1fd7')]:_0x4d7509('0x25d1'),'msg':_0x1d4d4d[_0x4d7509('0x11d0')]?JSON['stringify'](_0x1d4d4d[_0x4d7509('0x11d0')]):_0x1d4d4d[_0x4d7509('0x94f')]()});});function _0x56b3e1(){var _0x4079f2=_0x466690;_0x59e003[_0x4079f2('0xcd2')]=[];var _0x14d1f5=[];_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x62e')]&&_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x62e')][_0x4079f2('0x20dd')]()===_0x4079f2('0x1fdf')&&_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0xf44')]===_0x4079f2('0x3d2')&&(_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x1ef5')]=_0x12c9fd[_0x4079f2('0x27f6')]?(_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x2580')]||'')+_0x4079f2('0x5d8')+_0x12c9fd[_0x4079f2('0x27f6')]+'}':(_0x59e003['tag'][_0x4079f2('0x2580')]||'')+'${EXTEN}',_0x12c9fd[_0x4079f2('0x150c')]!==_0x4079f2('0x23ca')?_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x2116')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x2116')]+=_0x4079f2('0x767')):_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x2116')]=_0x59e003[_0x4079f2('0x2037')]['options'][_0x4079f2('0x1b42')](_0x4079f2('0x767'),''));var _0x50d9d5=_0x32d445()[_0x4079f2('0xf15')](_0x59e003[_0x4079f2('0x1105')],{'name':_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x2037')]});_0x50d9d5&&(_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x30a')]=_0x50d9d5['id']);if(_0x59e003[_0x4079f2('0x2037')]['appType']&&_0x59e003[_0x4079f2('0x2037')]['appType']===_0x4079f2('0x261d')){}else switch((_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0xf2b')]||_0x59e003['tag'][_0x4079f2('0xf44')])[_0x4079f2('0x20dd')]()){case _0x4079f2('0x2aa'):_0x59e003['tag'][_0x4079f2('0x26d2')]=_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x2623')]+'='+_0x59e003['tag'][_0x4079f2('0x2')];break;case _0x4079f2('0x261d'):break;default:_0x14d1f5[0x0]=_0x59e003[_0x4079f2('0x2037')][_0x4079f2('0x2037')],_0x59e003['tag'][_0x4079f2('0x26d2')]=_0x14d1f5['join'](',');}_0x3ef826(_0x59e003[_0x4079f2('0x2037')]);}function _0x3ef826(_0x10e7db){var _0x90e938=_0x466690;_0x318ca7[_0x90e938('0x11ed')](_0x10e7db);}}const _0x59c26d=_0x2d6750;_0x2bf76d[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q','$translate',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x2bf76d(_0x4937e2,_0x17f052,_0xaa9f90,_0x578593,_0x191049,_0x25ee63,_0x4b5837,_0x3fe946,_0x10b3d4,_0x871f38,_0x37437b){var _0x5975e5=_0xb635d2,_0x711bef=this;_0x711bef['currentUser']=_0x37437b[_0x5975e5('0x1ef8')](),_0x711bef['mailAccount']={},_0x711bef[_0x5975e5('0x565')]={'count':0x0,'rows':[]},_0x711bef[_0x5975e5('0xd45')]=[],_0x711bef['crudPermissions'],_0x711bef[_0x5975e5('0xa16')]={'read':_0x5975e5('0x1046'),'closed':_0x5975e5('0x1046'),'sort':'-createdAt','includeAll':_0x5975e5('0x2206'),'limit':0xa,'page':0x1},_0x711bef[_0x5975e5('0x15f9')]=_0x89370f,_0x711bef[_0x5975e5('0x126c')]=_0x33b735,_0x711bef[_0x5975e5('0xccd')]=_0x414e64,_0x711bef['success']=_0x196655,_0x711bef[_0x5975e5('0x12b0')]=_0x2d87f7,_0x711bef['spymailInteraction']=_0x125865,_0x711bef[_0x5975e5('0x1f45')]=_0x5dc996,_0x711bef[_0x5975e5('0x192')]=_0x5adbe6,_0x711bef[_0x5975e5('0xac9')]=_0xc1f2d3,_0x711bef[_0x5975e5('0x26c0')]=_0x2ac57a;function _0x89370f(_0x61bf89,_0x5bfa80){var _0x4b39db=_0x5975e5;_0x711bef['mailAccount']=_0x61bf89,_0x711bef['crudPermissions']=typeof _0x5bfa80!==_0x4b39db('0x1143')?_0x5bfa80:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x711bef[_0x4b39db('0xa16')][_0x4b39db('0xa20')]=_0x711bef[_0x4b39db('0x17f0')]['id'],_0x711bef[_0x4b39db('0x164')]={'fields':_0x2de044()},_0x4c2992();}function _0x4c2992(){var _0x306fc1=_0x5975e5;return _0x871f38[_0x306fc1('0x2037')][_0x306fc1('0x22d5')]()['$promise'][_0x306fc1('0xe19')](function(_0x259c24){var _0x2689fc=_0x306fc1;_0x711bef[_0x2689fc('0x1105')]=_0x259c24||{'count':0x0,'rows':[]};})[_0x306fc1('0xe19')](function(){var _0x5a4b06=_0x306fc1;return _0x871f38[_0x5a4b06('0x158e')][_0x5a4b06('0x22d5')]({'nolimit':!![]})[_0x5a4b06('0xe59')][_0x5a4b06('0xe19')](function(_0xd8be53){var _0x4b415a=_0x5a4b06;_0x711bef[_0x4b415a('0x2042')]=_0xd8be53||{'count':0x0,'rows':[]};});})[_0x306fc1('0xe19')](function(){var _0x1716e1=_0x306fc1;_0x711bef[_0x1716e1('0x1fd3')]=_0x431caf();});}function _0x431caf(){var _0x531c70=_0x5975e5;return[{'name':'Start\x20Date','key':_0x531c70('0x15c9'),'type':'date','label':_0x531c70('0x19b7')},{'name':_0x531c70('0x1e63'),'key':'read','type':_0x531c70('0x2e6'),'label':_0x531c70('0x2738'),'customOptions':[{'value':0x0,'translate':_0x531c70('0x10db')},{'value':0x1,'translate':_0x531c70('0x3b4')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x531c70('0x20e'),'key':_0x531c70('0x1835'),'type':_0x531c70('0x2e6'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x531c70('0x1c37')},{'value':0x1,'translate':_0x531c70('0x1bbb')},{'value':null,'translate':_0x531c70('0x296')}]},{'name':_0x531c70('0x1f60'),'key':'substatus','type':_0x531c70('0x2e6'),'label':_0x531c70('0x1c06'),'options':_0x711bef[_0x531c70('0x2042')][_0x531c70('0x16a7')],'customOptions':[{'value':_0x531c70('0x1046'),'translate':_0x531c70('0x1b56')},{'value':undefined,'translate':_0x531c70('0x296')}],'ngValue':_0x531c70('0x2623'),'ngIf':_0x531c70('0xc61')},{'name':_0x531c70('0x142e'),'key':_0x531c70('0x43d'),'type':'select','label':_0x531c70('0x120c'),'customOptions':[{'value':_0x531c70('0x1046'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x531c70('0x296')}]},{'name':_0x531c70('0x1172'),'key':_0x531c70('0x2037'),'type':_0x531c70('0x19a0'),'label':_0x531c70('0x23c7'),'options':_0x711bef[_0x531c70('0x1105')][_0x531c70('0x16a7')],'placeholder':_0x531c70('0x14ec')}];}function _0x2de044(){var _0x55c14e=_0x5975e5;return[{'name':'Id','column':'id','type':_0x55c14e('0x1c60')},{'name':_0x55c14e('0x1286'),'column':_0x55c14e('0x1286'),'type':_0x55c14e('0x5c0'),'options':{'searchFields':[_0x55c14e('0x2566'),_0x55c14e('0x151f'),_0x55c14e('0x1211')],'route':{'model':'cmContact','action':_0x55c14e('0x22d5'),'params':{'fields':_0x55c14e('0x75'),'Contact':_0x55c14e('0x217d'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x55c14e('0x1f51')]}},{'name':_0x55c14e('0x375'),'column':'subject','type':_0x55c14e('0x1bc6'),'options':{'excludedOperators':[_0x55c14e('0x1d15'),_0x55c14e('0x1f51')]}},{'name':'Body','column':_0x55c14e('0x6c9'),'type':_0x55c14e('0x1bc6'),'options':{'excludedOperators':[_0x55c14e('0x1d15'),_0x55c14e('0x1f51')]}},{'name':_0x55c14e('0x20e'),'column':_0x55c14e('0x1835'),'type':_0x55c14e('0x2e6'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x55c14e('0x1bbb')}],'options':{'excludedOperators':[_0x55c14e('0x1f51')]}},{'name':_0x55c14e('0x1f60'),'column':_0x55c14e('0x164d'),'type':_0x55c14e('0x19a0'),'options':{'field':_0x55c14e('0x2623'),'route':{'model':_0x55c14e('0x158e'),'action':_0x55c14e('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x55c14e('0x19a3')]}},{'name':'Agent','column':_0x55c14e('0x2630'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x55c14e('0x10c6'),'action':_0x55c14e('0x22d5'),'params':{'role':_0x55c14e('0x108'),'fields':_0x55c14e('0x194c'),'nolimit':!![]}},'searchFields':[_0x55c14e('0xe11'),_0x55c14e('0x2623')],'extraOperators':[_0x55c14e('0x1247')],'excludedOperators':[_0x55c14e('0x1f51')]}},{'name':_0x55c14e('0x1e7b'),'column':_0x55c14e('0x1172'),'type':_0x55c14e('0x19a0'),'options':{'route':{'model':_0x55c14e('0x2037'),'action':_0x55c14e('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x55c14e('0x19a3')]}},{'name':_0x55c14e('0x141d'),'column':_0x55c14e('0x15c9'),'type':_0x55c14e('0xf6d'),'options':{'excludedOperators':[_0x55c14e('0x1f51')]}},{'name':_0x55c14e('0x2233'),'column':'unreadMessages','type':_0x55c14e('0x2e6'),'values':[{'id':0x1,'translate':_0x55c14e('0x3b4')},{'id':0x0,'translate':_0x55c14e('0x10db')}],'options':{'excludedOperators':[_0x55c14e('0x1f51')]}}];}function _0x5dc996(){var _0x98d2ac=_0x5975e5;_0x4b5837[_0x98d2ac('0x26b2')]({'controller':_0x98d2ac('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x98d2ac('0x24a1')](_0x3fe946['body']),'clickOutsideToClose':![],'locals':{'fields':_0x711bef[_0x98d2ac('0x164')][_0x98d2ac('0x1d17')],'color':undefined,'storagePath':_0x98d2ac('0x1958')},'fullscreen':!![]})[_0x98d2ac('0xe19')](function(_0x393290){var _0x16becc=_0x98d2ac;_0x711bef[_0x16becc('0xa16')][_0x16becc('0x1cc8')]=_0x393290===![]?undefined:_0x393290;if(_0x711bef[_0x16becc('0xa16')][_0x16becc('0x1cc8')])_0x711bef[_0x16becc('0xa16')]['search']+=_0x16becc('0x12ca')+_0x711bef[_0x16becc('0x17f0')]['id']+']',_0x2d87f7();else _0x393290===![]&&_0x2d87f7();})[_0x98d2ac('0x223b')](function(_0x845d32){var _0x221179=_0x98d2ac;_0x10b3d4[_0x221179('0x8c8')]({'title':_0x221179('0x71e'),'msg':_0x845d32[_0x221179('0x11d0')]?JSON[_0x221179('0x3ad')](_0x845d32['data']['message']):_0x845d32[_0x221179('0x94f')]()});});}function _0x414e64(_0xf7cda3,_0x2ee3a4,_0x1d48f8){var _0xc468f2=_0x5975e5;return _0x871f38['mailInteraction'][_0xc468f2('0x1d1e')]({'id':_0xf7cda3['id'],'exists':!![],'attachments':_0x1d48f8})[_0xc468f2('0xe59')]['then'](function(_0x318fc7){var _0xbacd33=_0xc468f2,_0x24b328=[_0x318fc7[_0xbacd33('0x17ab')]],_0x241203='interaction'+_0xf7cda3['id'],_0x1a570d=new Blob(_0x24b328,{'type':_0x318fc7['type']});_0x241203=_0xbacd33('0x5db')+_0xf7cda3['id']+_0xbacd33('0x985');var _0x1cb12d=window[_0xbacd33('0x18fa')]['createElement']('a');_0x1cb12d[_0xbacd33('0xede')]('href',URL['createObjectURL'](_0x1a570d)),_0x1cb12d[_0xbacd33('0xede')](_0xbacd33('0x1d1e'),_0x241203),document['body']['appendChild'](_0x1cb12d),_0x1cb12d[_0xbacd33('0xfe7')]();})[_0xc468f2('0x223b')](function(_0x17d270){var _0x42206c=_0xc468f2;if(_0x17d270[_0x42206c('0x11d0')]&&_0x17d270['data']['errors']&&_0x17d270['data'][_0x42206c('0xcd2')][_0x42206c('0x25ae')])for(var _0x315b15=0x0;_0x315b15<_0x17d270[_0x42206c('0x11d0')]['errors'][_0x42206c('0x25ae')];_0x315b15+=0x1){_0x10b3d4['error']({'title':_0x17d270[_0x42206c('0x11d0')]['errors'][_0x315b15]['type'],'msg':_0x17d270[_0x42206c('0x11d0')]['errors'][_0x315b15]['message']});}else _0x10b3d4[_0x42206c('0x8c8')]({'title':_0x17d270[_0x42206c('0x2833')]?_0x42206c('0x27f2')+_0x17d270['status']+_0x42206c('0x1b7c')+_0x17d270[_0x42206c('0x1fd7')]:_0x42206c('0x116c'),'msg':_0x17d270[_0x42206c('0x11d0')]?JSON[_0x42206c('0x3ad')](_0x17d270[_0x42206c('0x11d0')][_0x42206c('0x27e8')]):_0x17d270[_0x42206c('0x94f')]()});});}function _0x33b735(_0x2ef085,_0x5b75c5){var _0x1da6eb=_0x5975e5,_0x3a8bd4=_0x4b5837[_0x1da6eb('0xa5')]()[_0x1da6eb('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0x1da6eb('0x221c')](_0x1da6eb('0xab2')+(_0x2ef085[_0x1da6eb('0x2623')]||_0x2ef085['id']&&_0x32d445()[_0x1da6eb('0x2077')](_0x1da6eb('0x1fcc'))+_0x2ef085['id']||_0x1da6eb('0xf6'))+_0x1da6eb('0x27bb')+_0x1da6eb('0x21bd'))[_0x1da6eb('0x4d1')](_0x1da6eb('0x1a82'))[_0x1da6eb('0x1345')](_0x5b75c5)['ok']('OK')[_0x1da6eb('0x2c1')]('CANCEL');_0x4b5837[_0x1da6eb('0x26b2')](_0x3a8bd4)[_0x1da6eb('0xe19')](function(){_0xc1f2d3(_0x2ef085);},function(){var _0x1ffdc8=_0x1da6eb;console['log'](_0x1ffdc8('0x17'));});}function _0x196655(_0x26890d){var _0x42b505=_0x5975e5;_0x711bef[_0x42b505('0x565')]=_0x26890d||{'count':0x0,'rows':[]};for(var _0x3e6921=0x0;_0x3e6921<_0x711bef[_0x42b505('0x565')][_0x42b505('0x16a7')]['length'];_0x3e6921+=0x1){var _0x5b433b=_0x711bef['mailAccountInteractions'][_0x42b505('0x16a7')][_0x3e6921];_0x200071(_0x5b433b),_0x5b433b[_0x42b505('0x2237')][_0x42b505('0x2623')]=_0x37edc4(_0x5b433b);}}function _0x2d87f7(){var _0xc49410=_0x5975e5;_0x711bef[_0xc49410('0xa16')][_0xc49410('0xab0')]=(_0x711bef[_0xc49410('0xa16')][_0xc49410('0xc08')]-0x1)*_0x711bef[_0xc49410('0xa16')][_0xc49410('0x1b6d')],_0x711bef['promise']=_0x871f38[_0xc49410('0x497')][_0xc49410('0x22d5')](_0x711bef[_0xc49410('0xa16')],_0x196655)[_0xc49410('0xe59')];}function _0x125865(_0x3afbdd,_0x1a410f){var _0x4da4f1=_0x5975e5;_0x4b5837[_0x4da4f1('0x26b2')]({'controller':_0x4da4f1('0x1b1'),'controllerAs':'vm','templateUrl':_0x43d9d1,'parent':angular[_0x4da4f1('0x24a1')](_0x3fe946[_0x4da4f1('0x19b2')]),'targetEvent':_0x3afbdd,'clickOutsideToClose':!![],'onShowing':function _0xbee9b6(_0x53891a){var _0x54f0f8=_0x4da4f1;_0x53891a['vm']['init']({'id':0x1,'channel':_0x54f0f8('0x26bf'),'interaction':_0x1a410f,'spy':!![]},_0x17f052['$parent']['vm'][_0x54f0f8('0x22f1')]);}});}function _0xc1f2d3(_0x4ccb7b){var _0x1c4ee9=_0x5975e5;_0x871f38[_0x1c4ee9('0x497')]['delete']({'id':_0x4ccb7b['id']})[_0x1c4ee9('0xe59')][_0x1c4ee9('0xe19')](function(){var _0x1722a4=_0x1c4ee9;_0x32d445()[_0x1722a4('0xa8b')](_0x711bef['mailAccountInteractions'][_0x1722a4('0x16a7')],{'id':_0x4ccb7b['id']}),_0x711bef[_0x1722a4('0x565')][_0x1722a4('0x148b')]-=0x1,!_0x711bef['mailAccountInteractions'][_0x1722a4('0x16a7')][_0x1722a4('0x25ae')]&&_0x2d87f7(),_0x10b3d4[_0x1722a4('0x425')]({'title':_0x1722a4('0x5c'),'msg':_0x4ccb7b[_0x1722a4('0x2623')]?_0x4ccb7b[_0x1722a4('0x2623')]+_0x1722a4('0x2182'):''});})[_0x1c4ee9('0x223b')](function(_0x44ed03){var _0x2a9b28=_0x1c4ee9;if(_0x44ed03[_0x2a9b28('0x11d0')]&&_0x44ed03[_0x2a9b28('0x11d0')][_0x2a9b28('0xcd2')]&&_0x44ed03[_0x2a9b28('0x11d0')]['errors'][_0x2a9b28('0x25ae')]){_0x711bef[_0x2a9b28('0xcd2')]=_0x44ed03[_0x2a9b28('0x11d0')][_0x2a9b28('0xcd2')]||[{'message':_0x44ed03[_0x2a9b28('0x94f')](),'type':'SYSTEM:GETmailAccount'}];for(var _0x35be82=0x0;_0x35be82<_0x44ed03['data'][_0x2a9b28('0xcd2')][_0x2a9b28('0x25ae')];_0x35be82++){_0x10b3d4['error']({'title':_0x44ed03[_0x2a9b28('0x11d0')][_0x2a9b28('0xcd2')][_0x35be82][_0x2a9b28('0x62e')],'msg':_0x44ed03['data'][_0x2a9b28('0xcd2')][_0x35be82][_0x2a9b28('0x27e8')]});}}else _0x10b3d4[_0x2a9b28('0x8c8')]({'title':_0x44ed03[_0x2a9b28('0x2833')]?_0x2a9b28('0x27f2')+_0x44ed03[_0x2a9b28('0x2833')]+_0x2a9b28('0x1b7c')+_0x44ed03[_0x2a9b28('0x1fd7')]:_0x2a9b28('0x20e9'),'msg':_0x44ed03['data']?JSON[_0x2a9b28('0x3ad')](_0x44ed03[_0x2a9b28('0x11d0')][_0x2a9b28('0x27e8')]):_0x44ed03[_0x2a9b28('0x27e8')]||_0x44ed03['toString']()});});}function _0x5adbe6(){var _0x26ac3e=_0x5975e5,_0x227159=angular[_0x26ac3e('0x89')](_0x711bef[_0x26ac3e('0xd45')]);return _0x711bef['selectedMailAccountInteractions']=[],_0x227159;}function _0x2ac57a(_0x4ef28d){var _0x41d4ec=_0x5975e5,_0x32606d=_0x4b5837[_0x41d4ec('0xa5')]()[_0x41d4ec('0x13e4')](_0x41d4ec('0x275c'))[_0x41d4ec('0x221c')](_0x41d4ec('0xab2')+_0x711bef[_0x41d4ec('0xd45')][_0x41d4ec('0x25ae')]+_0x41d4ec('0x5bc')+_0x41d4ec('0x21bd'))['ariaLabel'](_0x41d4ec('0x234e'))[_0x41d4ec('0x1345')](_0x4ef28d)['ok']('OK')[_0x41d4ec('0x2c1')](_0x41d4ec('0x17'));_0x4b5837[_0x41d4ec('0x26b2')](_0x32606d)[_0x41d4ec('0xe19')](function(){var _0xd72e12=_0x41d4ec;_0x711bef['selectedMailAccountInteractions'][_0xd72e12('0x1d7e')](function(_0x458036){_0xc1f2d3(_0x458036);}),_0x711bef[_0xd72e12('0xd45')]=[];});}function _0x200071(_0x1df6a1){var _0x441f03=_0x5975e5;if(!_0x32d445()[_0x441f03('0x14b4')](_0x1df6a1['to'])&&!_0x32d445()['includes'](_0x1df6a1['to'],_0x711bef[_0x441f03('0x17f0')]['email']))_0x1df6a1[_0x441f03('0x130c')]=_0x1df6a1['to'][_0x441f03('0x1745')]('\x20<')[0x0],_0x1df6a1[_0x441f03('0x15a6')]=_0x1df6a1['to'][_0x441f03('0x1745')]('<')[_0x441f03('0x2b')]()[_0x441f03('0x1745')]('>')[0x0];else _0x1df6a1[_0x441f03('0x1286')]?(_0x1df6a1[_0x441f03('0x130c')]=(_0x1df6a1[_0x441f03('0x1286')][_0x441f03('0x2566')]||'')+'\x20'+(_0x1df6a1['Contact'][_0x441f03('0x151f')]||''),_0x1df6a1[_0x441f03('0x15a6')]=_0x1df6a1[_0x441f03('0x1286')]['email']||''):_0x1df6a1['contactName']=_0x191049[_0x441f03('0x2159')](_0x441f03('0x690'));}function _0x37edc4(_0x30e15a){var _0x14170d=_0x5975e5;if(_0x30e15a[_0x14170d('0x43d')])return _0x30e15a['UserId']===_0x711bef['currentUser']['id']?_0x191049['instant'](_0x14170d('0x132d')):_0x30e15a[_0x14170d('0x2237')][_0x14170d('0xe11')]+'\x20<'+_0x30e15a[_0x14170d('0x2237')][_0x14170d('0x1b66')]+'>';return _0x191049['instant']('DASHBOARDS.NOT_ASSIGNED');}var _0x145187=!![],_0x2a1dee=0x1;_0x17f052[_0x5975e5('0x107')](_0x5975e5('0x1607'),function(_0x150f4e,_0x30922c){var _0x4c807f=_0x5975e5;_0x145187?_0x25ee63(function(){_0x145187=![];}):(!_0x30922c&&(_0x2a1dee=_0x711bef[_0x4c807f('0xa16')][_0x4c807f('0xc08')]),_0x150f4e!==_0x30922c&&(_0x711bef[_0x4c807f('0xa16')][_0x4c807f('0xc08')]=0x1),!_0x150f4e&&(_0x711bef['query']['page']=_0x2a1dee),_0x2d87f7());});}const _0x3afa84=_0x2bf76d,_0x5320ac=_0x59426a['p']+_0xb635d2('0x22c9');_0x4129a0[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),'$timeout',_0xb635d2('0x1c9f'),'$document',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x4129a0(_0x2361e9,_0x396edf,_0x57d940,_0x12c2c7,_0x18e2f3,_0x5c97a5,_0x49d367,_0x34e8e4,_0x1e9fc0,_0x32d1d7,_0x4d6cb6){var _0x13c5f1=_0xb635d2,_0x13c803=this;_0x13c803[_0x13c5f1('0x15a5')]=_0x4d6cb6[_0x13c5f1('0x1ef8')](),_0x13c803['mailAccount']={},_0x13c803[_0x13c5f1('0x94d')]={'count':0x0,'rows':[]},_0x13c803[_0x13c5f1('0xc8f')]=[],_0x13c803[_0x13c5f1('0xb3d')],_0x13c803[_0x13c5f1('0xa16')]={'fields':_0x13c5f1('0x1ef0'),'limit':0xa,'page':0x1},_0x13c803['init']=_0x58dceb,_0x13c803[_0x13c5f1('0x126c')]=_0x53fb8a,_0x13c803[_0x13c5f1('0x425')]=_0x4b4d7c,_0x13c803[_0x13c5f1('0x2173')]=_0x294ccd,_0x13c803['createOrEditMailAccountMailCannedAnswer']=_0x29bf50,_0x13c803[_0x13c5f1('0x14fc')]=_0x4b2799,_0x13c803[_0x13c5f1('0xe23')]=_0x38285c,_0x13c803['deleteSelectedMailAccountMailCannedAnswers']=_0x57a062;function _0x58dceb(_0x18c886,_0x3e6d49){var _0x2d6c23=_0x13c5f1;_0x13c803[_0x2d6c23('0x17f0')]=_0x18c886,_0x13c803[_0x2d6c23('0xb3d')]=typeof _0x3e6d49!==_0x2d6c23('0x1143')?_0x3e6d49:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x13c803[_0x2d6c23('0xa16')][_0x2d6c23('0xa20')]=_0x13c803[_0x2d6c23('0x17f0')]['id'],_0x13c803['query']['id']=_0x13c803['mailAccount']['id'],_0x294ccd();}function _0x53fb8a(_0x349b69,_0x290704){var _0x1b2ee0=_0x13c5f1,_0x3f76f8=_0x49d367[_0x1b2ee0('0xa5')]()[_0x1b2ee0('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?')['htmlContent'](''+(_0x349b69[_0x1b2ee0('0x2623')]||_0x349b69['id']&&_0x32d445()[_0x1b2ee0('0x2077')]('mailCannedAnswer\x20#')+_0x349b69['id']||_0x1b2ee0('0x519'))+_0x1b2ee0('0x27bb')+_0x1b2ee0('0x21bd'))[_0x1b2ee0('0x4d1')]('delete\x20mailCannedAnswer')[_0x1b2ee0('0x1345')](_0x290704)['ok']('OK')['cancel'](_0x1b2ee0('0x17'));_0x49d367['show'](_0x3f76f8)['then'](function(){_0x38285c(_0x349b69);},function(){var _0x559590=_0x1b2ee0;console[_0x559590('0x1fe9')](_0x559590('0x17'));});}function _0x4b4d7c(_0x54b938){_0x13c803['mailAccountMailCannedAnswers']=_0x54b938||{'count':0x0,'rows':[]};}function _0x294ccd(){var _0x51c743=_0x13c5f1;_0x13c803[_0x51c743('0xa16')][_0x51c743('0xab0')]=(_0x13c803[_0x51c743('0xa16')]['page']-0x1)*_0x13c803['query']['limit'],_0x13c803[_0x51c743('0x9c8')]=_0x32d1d7[_0x51c743('0x17f0')][_0x51c743('0x152a')](_0x13c803[_0x51c743('0xa16')],_0x4b4d7c)[_0x51c743('0xe59')];}function _0x29bf50(_0x3deac0,_0x521dd4){var _0x387869=_0x13c5f1;_0x49d367[_0x387869('0x26b2')]({'controller':'CreateOrEditMailCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x5320ac,'parent':angular[_0x387869('0x24a1')](_0x34e8e4[_0x387869('0x19b2')]),'targetEvent':_0x3deac0,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x13c803[_0x387869('0x17f0')],'mailCannedAnswer':_0x521dd4,'mailCannedAnswers':_0x13c803[_0x387869('0x94d')][_0x387869('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x13c803['crudPermissions']}});}function _0x38285c(_0x4f2ecf){var _0x7a6b64=_0x13c5f1;_0x32d1d7[_0x7a6b64('0x250b')][_0x7a6b64('0x229e')]({'id':_0x4f2ecf['id']})[_0x7a6b64('0xe59')][_0x7a6b64('0xe19')](function(){var _0x414ffc=_0x7a6b64;_0x32d445()[_0x414ffc('0xa8b')](_0x13c803[_0x414ffc('0x94d')]['rows'],{'id':_0x4f2ecf['id']}),_0x13c803[_0x414ffc('0x94d')][_0x414ffc('0x148b')]-=0x1,!_0x13c803[_0x414ffc('0x94d')][_0x414ffc('0x16a7')][_0x414ffc('0x25ae')]&&_0x294ccd(),_0x1e9fc0[_0x414ffc('0x425')]({'title':_0x414ffc('0x2687'),'msg':_0x4f2ecf['name']?_0x4f2ecf[_0x414ffc('0x2623')]+_0x414ffc('0x2182'):''});})[_0x7a6b64('0x223b')](function(_0x21f8a9){var _0x2393ad=_0x7a6b64;if(_0x21f8a9['data']&&_0x21f8a9['data']['errors']&&_0x21f8a9['data'][_0x2393ad('0xcd2')][_0x2393ad('0x25ae')]){_0x13c803['errors']=_0x21f8a9['data'][_0x2393ad('0xcd2')]||[{'message':_0x21f8a9[_0x2393ad('0x94f')](),'type':_0x2393ad('0x20e9')}];for(var _0x30c8d2=0x0;_0x30c8d2<_0x21f8a9[_0x2393ad('0x11d0')][_0x2393ad('0xcd2')][_0x2393ad('0x25ae')];_0x30c8d2++){_0x1e9fc0['error']({'title':_0x21f8a9[_0x2393ad('0x11d0')][_0x2393ad('0xcd2')][_0x30c8d2][_0x2393ad('0x62e')],'msg':_0x21f8a9[_0x2393ad('0x11d0')][_0x2393ad('0xcd2')][_0x30c8d2][_0x2393ad('0x27e8')]});}}else _0x1e9fc0[_0x2393ad('0x8c8')]({'title':_0x21f8a9[_0x2393ad('0x2833')]?_0x2393ad('0x27f2')+_0x21f8a9[_0x2393ad('0x2833')]+_0x2393ad('0x1b7c')+_0x21f8a9[_0x2393ad('0x1fd7')]:'SYSTEM:GETmailAccount','msg':_0x21f8a9['data']?JSON[_0x2393ad('0x3ad')](_0x21f8a9['data'][_0x2393ad('0x27e8')]):_0x21f8a9[_0x2393ad('0x27e8')]||_0x21f8a9[_0x2393ad('0x94f')]()});});}function _0x4b2799(){var _0x10d4cb=_0x13c5f1,_0x2a82ab=angular[_0x10d4cb('0x89')](_0x13c803[_0x10d4cb('0xc8f')]);return _0x13c803[_0x10d4cb('0xc8f')]=[],_0x2a82ab;}function _0x57a062(_0x2a719b){var _0x5e4bfa=_0x13c5f1,_0x5e3353=_0x49d367[_0x5e4bfa('0xa5')]()[_0x5e4bfa('0x13e4')](_0x5e4bfa('0xadf'))[_0x5e4bfa('0x221c')](_0x5e4bfa('0xab2')+_0x13c803['selectedMailAccountMailCannedAnswers'][_0x5e4bfa('0x25ae')]+_0x5e4bfa('0x5bc')+_0x5e4bfa('0x21bd'))[_0x5e4bfa('0x4d1')](_0x5e4bfa('0x1b17'))[_0x5e4bfa('0x1345')](_0x2a719b)['ok']('OK')[_0x5e4bfa('0x2c1')](_0x5e4bfa('0x17'));_0x49d367[_0x5e4bfa('0x26b2')](_0x5e3353)[_0x5e4bfa('0xe19')](function(){var _0x1a153f=_0x5e4bfa;_0x13c803[_0x1a153f('0xc8f')][_0x1a153f('0x1d7e')](function(_0x258501){_0x38285c(_0x258501);}),_0x13c803[_0x1a153f('0xc8f')]=[];});}var _0x139e94=!![],_0x1d3c23=0x1;_0x396edf['$watch'](_0x13c5f1('0x1607'),function(_0x3a7fa3,_0x5c0873){var _0x466984=_0x13c5f1;_0x139e94?_0x5c97a5(function(){_0x139e94=![];}):(!_0x5c0873&&(_0x1d3c23=_0x13c803['query'][_0x466984('0xc08')]),_0x3a7fa3!==_0x5c0873&&(_0x13c803[_0x466984('0xa16')][_0x466984('0xc08')]=0x1),!_0x3a7fa3&&(_0x13c803[_0x466984('0xa16')][_0x466984('0xc08')]=_0x1d3c23),_0x294ccd());});}const _0x49721b=_0x4129a0;_0xd4a77a[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'mailCannedAnswers',_0xb635d2('0x519'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license','setting','crudPermissions'];function _0xd4a77a(_0x4b2539,_0x1949e4,_0x28e3e1,_0x38c63e,_0x616d95,_0x1d6731,_0x520a92,_0x595968,_0x1ef696,_0x3b142e,_0x1a3f81,_0x32baad,_0x2f3123,_0x44d18a){var _0x207129=_0xb635d2,_0x3d976d=this;_0x3d976d[_0x207129('0x15a5')]=_0x1a3f81[_0x207129('0x1ef8')](),_0x3d976d[_0x207129('0xcd2')]=[],_0x3d976d['setting']=_0x2f3123,_0x3d976d[_0x207129('0x5c1')]=_0x32baad,_0x3d976d[_0x207129('0xb3d')]=_0x44d18a,_0x3d976d['hasModulePermissions']={},_0x3d976d[_0x207129('0x25ac')]=_0x3d976d['setting']&&_0x3d976d[_0x207129('0x22f1')][_0x207129('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d976d['title']=_0x207129('0x2b3'),_0x3d976d['mailCannedAnswer']=angular[_0x207129('0x89')](_0x1ef696),_0x3d976d['mailCannedAnswers']=_0x595968,_0x3d976d[_0x207129('0x1616')]=![];!_0x3d976d[_0x207129('0x519')]&&(_0x3d976d[_0x207129('0x519')]={},_0x3d976d[_0x207129('0x13e4')]=_0x207129('0x5fd'),_0x3d976d['newMailCannedAnswer']=!![]);_0x1949e4[_0x207129('0x2ef')]['id']&&(_0x3d976d[_0x207129('0x519')][_0x207129('0xa20')]=_0x1949e4[_0x207129('0x2ef')]['id']);_0x3d976d[_0x207129('0x212e')]=_0x45c93c,_0x3d976d[_0x207129('0x251b')]=_0x520a94,_0x3d976d[_0x207129('0x81f')]=_0x2f1c62,_0x3d976d['getDateFromString']=_0x428610,_0x3d976d[_0x207129('0x2584')]=_0x542c0a;function _0x45c93c(){var _0x29fbfa=_0x207129;_0x3d976d[_0x29fbfa('0xcd2')]=[],_0x3b142e[_0x29fbfa('0x250b')][_0x29fbfa('0xe5e')](_0x3d976d[_0x29fbfa('0x519')])[_0x29fbfa('0xe59')][_0x29fbfa('0xe19')](function(_0x2a2efb){var _0x2c7386=_0x29fbfa;_0x3d976d['mailCannedAnswers'][_0x2c7386('0x14c9')](_0x2a2efb['toJSON']()),_0x520a92[_0x2c7386('0x425')]({'title':_0x2c7386('0x1c5a'),'msg':_0x3d976d[_0x2c7386('0x519')]['name']?_0x3d976d[_0x2c7386('0x519')][_0x2c7386('0x2623')]+_0x2c7386('0x105f'):''}),_0x542c0a(_0x2a2efb);})['catch'](function(_0x5eda49){var _0x26a3a7=_0x29fbfa;if(_0x5eda49[_0x26a3a7('0x11d0')]&&_0x5eda49['data'][_0x26a3a7('0xcd2')]&&_0x5eda49[_0x26a3a7('0x11d0')]['errors']['length']){_0x3d976d[_0x26a3a7('0xcd2')]=_0x5eda49[_0x26a3a7('0x11d0')][_0x26a3a7('0xcd2')]||[{'message':_0x5eda49['toString'](),'type':'api.cannedAnswer.save'}];for(var _0x769bc6=0x0;_0x769bc6<_0x5eda49[_0x26a3a7('0x11d0')][_0x26a3a7('0xcd2')]['length'];_0x769bc6+=0x1){_0x520a92[_0x26a3a7('0x8c8')]({'title':_0x5eda49[_0x26a3a7('0x11d0')][_0x26a3a7('0xcd2')][_0x769bc6]['type'],'msg':_0x5eda49[_0x26a3a7('0x11d0')][_0x26a3a7('0xcd2')][_0x769bc6][_0x26a3a7('0x27e8')]});}}else _0x520a92[_0x26a3a7('0x8c8')]({'title':_0x5eda49[_0x26a3a7('0x2833')]?_0x26a3a7('0x27f2')+_0x5eda49[_0x26a3a7('0x2833')]+_0x26a3a7('0x1b7c')+_0x5eda49[_0x26a3a7('0x1fd7')]:_0x26a3a7('0x80d'),'msg':_0x5eda49[_0x26a3a7('0x11d0')]?JSON['stringify'](_0x5eda49['data']['message']):_0x5eda49[_0x26a3a7('0x94f')]()});});}function _0x520a94(){var _0x381ef3=_0x207129;_0x3d976d['errors']=[],_0x3b142e[_0x381ef3('0x250b')]['update']({'id':_0x3d976d[_0x381ef3('0x519')]['id']},_0x3d976d[_0x381ef3('0x519')])[_0x381ef3('0xe59')][_0x381ef3('0xe19')](function(_0xe35545){var _0x109852=_0x381ef3,_0x4b2840=_0x32d445()[_0x109852('0xf15')](_0x3d976d[_0x109852('0x5b2')],{'id':_0xe35545['id']});_0x4b2840&&_0x32d445()['merge'](_0x4b2840,_0x32d445()[_0x109852('0xed5')](_0xe35545[_0x109852('0x250e')](),_0x32d445()[_0x109852('0x1234')](_0x4b2840))),_0x520a92[_0x109852('0x425')]({'title':'MailCannedAnswer\x20properly\x20saved!','msg':_0x3d976d[_0x109852('0x519')]['name']?_0x3d976d[_0x109852('0x519')]['name']+_0x109852('0x1c19'):''}),_0x542c0a(_0xe35545);})[_0x381ef3('0x223b')](function(_0x1eef4e){var _0x4b54d6=_0x381ef3;if(_0x1eef4e[_0x4b54d6('0x11d0')]&&_0x1eef4e[_0x4b54d6('0x11d0')][_0x4b54d6('0xcd2')]&&_0x1eef4e[_0x4b54d6('0x11d0')][_0x4b54d6('0xcd2')][_0x4b54d6('0x25ae')]){_0x3d976d[_0x4b54d6('0xcd2')]=_0x1eef4e['data'][_0x4b54d6('0xcd2')]||[{'message':_0x1eef4e[_0x4b54d6('0x94f')](),'type':'api.cannedAnswer.update'}];for(var _0x4d34b4=0x0;_0x4d34b4<_0x1eef4e['data']['errors'][_0x4b54d6('0x25ae')];_0x4d34b4++){_0x520a92[_0x4b54d6('0x8c8')]({'title':_0x1eef4e[_0x4b54d6('0x11d0')]['errors'][_0x4d34b4][_0x4b54d6('0x62e')],'msg':_0x1eef4e[_0x4b54d6('0x11d0')][_0x4b54d6('0xcd2')][_0x4d34b4][_0x4b54d6('0x27e8')]});}}else _0x520a92[_0x4b54d6('0x8c8')]({'title':_0x1eef4e[_0x4b54d6('0x2833')]?_0x4b54d6('0x27f2')+_0x1eef4e['status']+'\x20-\x20'+_0x1eef4e['statusText']:_0x4b54d6('0x5a0'),'msg':_0x1eef4e['data']?JSON[_0x4b54d6('0x3ad')](_0x1eef4e[_0x4b54d6('0x11d0')][_0x4b54d6('0x27e8')]):_0x1eef4e['toString']()});});}function _0x2f1c62(_0x476965){var _0x20c653=_0x207129;_0x3d976d[_0x20c653('0xcd2')]=[];var _0x581d73=_0x38c63e['confirm']()[_0x20c653('0x13e4')](_0x20c653('0x24d0'))['content'](_0x20c653('0x14f0'))[_0x20c653('0x4d1')](_0x20c653('0x31b'))['ok']('Delete')[_0x20c653('0x2c1')](_0x20c653('0x8a3'))[_0x20c653('0x1345')](_0x476965);_0x38c63e[_0x20c653('0x26b2')](_0x581d73)['then'](function(){var _0x243e6e=_0x20c653;_0x3b142e[_0x243e6e('0x250b')]['delete']({'id':_0x3d976d[_0x243e6e('0x519')]['id']})['$promise'][_0x243e6e('0xe19')](function(){var _0x45fe35=_0x243e6e;_0x32d445()[_0x45fe35('0xa8b')](_0x3d976d['mailCannedAnswers'],{'id':_0x3d976d[_0x45fe35('0x519')]['id']}),_0x520a92[_0x45fe35('0x425')]({'title':_0x45fe35('0x1592'),'msg':(_0x3d976d[_0x45fe35('0x519')]['name']||'mailCannedAnswer')+_0x45fe35('0x2182')}),_0x542c0a(_0x3d976d[_0x45fe35('0x519')]);})[_0x243e6e('0x223b')](function(_0x5de4f1){var _0x261ab2=_0x243e6e;if(_0x5de4f1[_0x261ab2('0x11d0')]&&_0x5de4f1['data'][_0x261ab2('0xcd2')]&&_0x5de4f1[_0x261ab2('0x11d0')][_0x261ab2('0xcd2')][_0x261ab2('0x25ae')]){_0x3d976d[_0x261ab2('0xcd2')]=_0x5de4f1[_0x261ab2('0x11d0')][_0x261ab2('0xcd2')]||[{'message':_0x5de4f1[_0x261ab2('0x94f')](),'type':_0x261ab2('0x1b46')}];for(var _0x21a110=0x0;_0x21a110<_0x5de4f1[_0x261ab2('0x11d0')][_0x261ab2('0xcd2')][_0x261ab2('0x25ae')];_0x21a110++){_0x520a92[_0x261ab2('0x8c8')]({'title':_0x5de4f1['data']['errors'][_0x21a110]['type'],'msg':_0x5de4f1[_0x261ab2('0x11d0')][_0x261ab2('0xcd2')][_0x21a110]['message']});}}else _0x520a92[_0x261ab2('0x8c8')]({'title':_0x5de4f1[_0x261ab2('0x2833')]?_0x261ab2('0x27f2')+_0x5de4f1[_0x261ab2('0x2833')]+_0x261ab2('0x1b7c')+_0x5de4f1[_0x261ab2('0x1fd7')]:_0x261ab2('0x1b46'),'msg':_0x5de4f1['data']?JSON[_0x261ab2('0x3ad')](_0x5de4f1['data'][_0x261ab2('0x27e8')]):_0x5de4f1[_0x261ab2('0x27e8')]||_0x5de4f1[_0x261ab2('0x94f')]()});});},function(){});}function _0x428610(_0x57ac4e){return _0x57ac4e===null?undefined:new Date(_0x57ac4e);}function _0x542c0a(_0x24667f){_0x38c63e['hide'](_0x24667f);}}const _0x590835=_0xd4a77a;_0x479493[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x479493(_0x8e8fe3,_0x4dd8d2,_0x3a3e6b,_0x177cbf,_0x228f79,_0x1c6470,_0x9a6b29,_0x55ba44,_0x2520aa,_0x25e1dd,_0x14d981){var _0x7c815b=_0xb635d2,_0x271efc=this;_0x271efc[_0x7c815b('0x15a5')]=_0x14d981['getCurrentUser'](),_0x271efc[_0x7c815b('0x24eb')]={'count':0x0,'rows':[]},_0x271efc[_0x7c815b('0x17e9')]=[],_0x271efc[_0x7c815b('0xb3d')],_0x271efc[_0x7c815b('0x513')]={'first':_0x7c815b('0x24ab'),'second':_0x7c815b('0x6c0'),'third':_0x7c815b('0x13ee')},_0x271efc['query']={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x7c815b('0x7e8'),'limit':0xa,'page':0x1},_0x271efc[_0x7c815b('0x15f9')]=_0x372c8e,_0x271efc[_0x7c815b('0x126c')]=_0x56be58,_0x271efc['success']=_0x68dcd8,_0x271efc[_0x7c815b('0x1312')]=_0x1ca3c3,_0x271efc['createOrEditDisposition']=_0x4bcfae,_0x271efc[_0x7c815b('0x1db')]=_0x136790,_0x271efc[_0x7c815b('0x1f38')]=_0x24cc95,_0x271efc['deleteSelectedDispositions']=_0x3265c9,_0x271efc[_0x7c815b('0x33d')]=_0x3e640f,_0x271efc['selectAllDispositions']=_0x574246;function _0x372c8e(_0x108744,_0x174ba1){var _0x1f5c9f=_0x7c815b;_0x271efc[_0x1f5c9f('0x17f0')]=_0x108744||{},_0x271efc[_0x1f5c9f('0xb3d')]=typeof _0x174ba1!=='undefined'?_0x174ba1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x271efc[_0x1f5c9f('0xa16')][_0x1f5c9f('0xa20')]=_0x271efc[_0x1f5c9f('0x17f0')]['id'],_0x271efc['query']['id']=_0x271efc['mailAccount']['id'],_0x1ca3c3();}function _0x4bcfae(_0x339f68,_0x57bd40){var _0x453a94=_0x7c815b;_0x228f79[_0x453a94('0x26b2')]({'controller':_0x453a94('0x4d9'),'controllerAs':'vm','templateUrl':_0x599d02,'parent':angular[_0x453a94('0x24a1')](_0x1c6470[_0x453a94('0x19b2')]),'targetEvent':_0x339f68,'clickOutsideToClose':!![],'locals':{'disposition':_0x57bd40,'dispositions':_0x271efc[_0x453a94('0x24eb')][_0x453a94('0x16a7')],'model':{'id':_0x271efc['mailAccount']['id'],'field':_0x453a94('0xa20')},'license':null,'setting':null,'crudPermissions':_0x271efc[_0x453a94('0xb3d')]}})[_0x453a94('0xe19')](function(_0x5ce39a){if(_0x5ce39a)_0x1ca3c3();});}function _0x56be58(_0x236d18,_0x2541de){var _0x5028df=_0x7c815b,_0x62eae8=_0x32d445()[_0x5028df('0x201a')](_0x271efc['dispositions'][_0x5028df('0x16a7')],[_0x5028df('0x2450'),_0x236d18['id']]),_0x29c255=_0x228f79[_0x5028df('0xa5')]()[_0x5028df('0x13e4')](_0x55ba44[_0x5028df('0x2159')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x5028df('0xd0')](_0x55ba44[_0x5028df('0x2159')]('TOOLS.NOTIFICATIONS.'+(_0x62eae8?_0x5028df('0x930'):_0x5028df('0xf36')),{'name':_0x236d18[_0x5028df('0x2623')]}))[_0x5028df('0x4d1')]('Delete\x20disposition')[_0x5028df('0x1345')](_0x2541de)['ok']('OK')['cancel'](_0x55ba44[_0x5028df('0x2159')](_0x5028df('0x717')));_0x228f79[_0x5028df('0x26b2')](_0x29c255)['then'](function(){_0x136790(_0x236d18);});}function _0x68dcd8(_0x5ea814){var _0x2f127c=_0x7c815b;_0x271efc[_0x2f127c('0x24eb')]=_0x5ea814||{'count':0x0,'rows':[]};}function _0x1ca3c3(){var _0x49d3a6=_0x7c815b;_0x271efc[_0x49d3a6('0xa16')][_0x49d3a6('0xab0')]=(_0x271efc[_0x49d3a6('0xa16')][_0x49d3a6('0xc08')]-0x1)*_0x271efc[_0x49d3a6('0xa16')][_0x49d3a6('0x1b6d')],_0x271efc['promise']=_0x2520aa['mailAccount'][_0x49d3a6('0x1312')](_0x271efc[_0x49d3a6('0xa16')],_0x68dcd8)[_0x49d3a6('0xe59')];}function _0x136790(_0xe42fe8){var _0x431aa0=_0x7c815b;_0x2520aa[_0x431aa0('0x2506')][_0x431aa0('0x229e')]({'id':_0xe42fe8['id']})['$promise'][_0x431aa0('0xe19')](function(){var _0x203af3=_0x431aa0;_0x1ca3c3(),_0x25e1dd['success']({'title':_0x55ba44[_0x203af3('0x2159')](_0x203af3('0x1593'))});})['catch'](function(_0x107c87){var _0x5314a9=_0x431aa0;if(_0x107c87['data']&&_0x107c87['data']['errors']&&_0x107c87['data']['errors']['length']){_0x271efc[_0x5314a9('0xcd2')]=_0x107c87[_0x5314a9('0x11d0')][_0x5314a9('0xcd2')]||[{'message':_0x107c87['toString'](),'type':_0x5314a9('0x45')}];for(var _0x21d9f8=0x0;_0x21d9f8<_0x107c87[_0x5314a9('0x11d0')]['errors'][_0x5314a9('0x25ae')];_0x21d9f8++){_0x25e1dd[_0x5314a9('0x8c8')]({'title':_0x107c87['data'][_0x5314a9('0xcd2')][_0x21d9f8][_0x5314a9('0x62e')],'msg':_0x107c87[_0x5314a9('0x11d0')][_0x5314a9('0xcd2')][_0x21d9f8][_0x5314a9('0x27e8')]});}}else _0x25e1dd['error']({'title':_0x107c87[_0x5314a9('0x2833')]?_0x5314a9('0x27f2')+_0x107c87[_0x5314a9('0x2833')]+_0x5314a9('0x1b7c')+_0x107c87[_0x5314a9('0x1fd7')]:'SYSTEM:DELETEdisposition','msg':_0x107c87['data']?JSON['stringify'](_0x107c87[_0x5314a9('0x11d0')]['message']):_0x107c87[_0x5314a9('0x27e8')]||_0x107c87[_0x5314a9('0x94f')]()});});}function _0x24cc95(){var _0x5b1bbc=_0x7c815b,_0x5ccdc5=angular[_0x5b1bbc('0x89')](_0x271efc[_0x5b1bbc('0x17e9')]);return _0x271efc[_0x5b1bbc('0x17e9')]=[],_0x5ccdc5;}function _0x3265c9(_0x1fa401){var _0x37b592=_0x7c815b,_0x14f004=_0x228f79['confirm']()[_0x37b592('0x13e4')](_0x55ba44['instant'](_0x37b592('0xf00')))[_0x37b592('0xd0')](_0x55ba44['instant'](_0x37b592('0x2750'),{'total':_0x271efc[_0x37b592('0x17e9')][_0x37b592('0x25ae')]}))[_0x37b592('0x4d1')](_0x37b592('0x2829'))[_0x37b592('0x1345')](_0x1fa401)['ok']('OK')[_0x37b592('0x2c1')](_0x55ba44[_0x37b592('0x2159')](_0x37b592('0x717')));_0x228f79['show'](_0x14f004)[_0x37b592('0xe19')](function(){var _0xa02579=_0x37b592;_0x271efc[_0xa02579('0x17e9')][_0xa02579('0x1d7e')](function(_0x43556b){_0x136790(_0x43556b);}),_0x271efc[_0xa02579('0x17e9')]=[];});}function _0x3e640f(){var _0x5cdbf2=_0x7c815b;_0x271efc[_0x5cdbf2('0x17e9')]=[];}function _0x574246(){var _0x47b226=_0x7c815b;_0x271efc[_0x47b226('0x17e9')]=_0x271efc[_0x47b226('0x24eb')][_0x47b226('0x16a7')];}var _0x1cdab0=!![],_0x21f2a6=0x1;_0x8e8fe3[_0x7c815b('0x107')]('vm_dc.query.filter',function(_0x273fd8,_0x22b889){var _0x2d4bfb=_0x7c815b;_0x1cdab0?_0x9a6b29(function(){_0x1cdab0=![];}):(!_0x22b889&&(_0x21f2a6=_0x271efc[_0x2d4bfb('0xa16')][_0x2d4bfb('0xc08')]),_0x273fd8!==_0x22b889&&(_0x271efc[_0x2d4bfb('0xa16')][_0x2d4bfb('0xc08')]=0x1),!_0x273fd8&&(_0x271efc[_0x2d4bfb('0xa16')][_0x2d4bfb('0xc08')]=_0x21f2a6),_0x1ca3c3());});}const _0x8c3edc=_0x479493,_0x17b40d=_0x59426a['p']+_0xb635d2('0x4de');_0x320bc6[_0xb635d2('0xb0c')]=['$state','$location',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x17f0'),_0xb635d2('0xb59')];function _0x320bc6(_0x29700c,_0x3a07e3,_0x1591d2,_0x377568,_0x5df42b,_0x2d9c96,_0x34885e,_0xbcdac4,_0x477f49,_0x2cf3cf,_0x4f36ed,_0x4a068c){var _0xa640b4=_0xb635d2,_0x73ec49=this;_0x73ec49[_0xa640b4('0x15a5')]=_0x2cf3cf[_0xa640b4('0x1ef8')](),_0x73ec49[_0xa640b4('0x5c1')]=_0x2d9c96,_0x73ec49['setting']=_0x34885e,_0x73ec49[_0xa640b4('0x25ac')]=_0x73ec49[_0xa640b4('0x22f1')][_0xa640b4('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x73ec49[_0xa640b4('0x2170')]=_0x3a07e3[_0xa640b4('0xec0')]()+_0xa640b4('0x21a8')+_0x3a07e3['host'](),_0x73ec49[_0xa640b4('0x17f0')]=_0x4f36ed||_0x29700c['params']['mailAccount']||{},_0x73ec49['userProfileSection']=_0x4a068c&&_0x4a068c[_0xa640b4('0x148b')]==0x1?_0x4a068c['rows'][0x0]:null,_0x73ec49[_0xa640b4('0xb3d')]=_0x2cf3cf[_0xa640b4('0xd31')](_0x73ec49['userProfileSection']?_0x73ec49[_0xa640b4('0xb59')][_0xa640b4('0xb3d')]:null),_0x73ec49[_0xa640b4('0x1ccb')]={},_0x73ec49['selectedTab']=_0x29700c['params'][_0xa640b4('0x435')]||0x0,_0x73ec49[_0xa640b4('0x7ef')]=_0x14491e,_0x73ec49[_0xa640b4('0x1407')]=_0x20cd1b,_0x73ec49['alert']=_0x477f49[_0xa640b4('0x1e67')],_0x73ec49[_0xa640b4('0x83a')]=_0x5a6bd4,_0x73ec49[_0xa640b4('0x12aa')]=_0x3aa395,_0x2cf3cf[_0xa640b4('0x179e')](_0xa640b4('0xd14'))?_0xbcdac4[_0xa640b4('0x1bbd')][_0xa640b4('0x22d5')]({'fields':_0xa640b4('0x104'),'sort':_0xa640b4('0x2623')})[_0xa640b4('0xe59')][_0xa640b4('0xe19')](function(_0x9e25a1){var _0x581289=_0xa640b4;_0x73ec49[_0x581289('0x9f8')]=_0x9e25a1[_0x581289('0x16a7')]||[];})[_0xa640b4('0x223b')](function(_0x465fc9){var _0x15dbb9=_0xa640b4;_0x477f49[_0x15dbb9('0x8c8')]({'title':_0x465fc9['status']?'API:'+_0x465fc9['status']+_0x15dbb9('0x1b7c')+_0x465fc9[_0x15dbb9('0x1fd7')]:_0x15dbb9('0x2012'),'msg':_0x465fc9[_0x15dbb9('0x11d0')]?JSON[_0x15dbb9('0x3ad')](_0x465fc9['data']):_0x465fc9[_0x15dbb9('0x94f')]()});}):_0xbcdac4[_0xa640b4('0x1bbd')][_0xa640b4('0x22d5')]({'fields':_0xa640b4('0x104'),'sort':_0xa640b4('0x2623')})[_0xa640b4('0xe59')][_0xa640b4('0xe19')](function(_0x48f565){var _0x4a0292=_0xa640b4;_0x73ec49[_0x4a0292('0x9f8')]=_0x48f565[_0x4a0292('0x16a7')]||[];})['then'](function(){var _0x176db1=_0xa640b4;return _0xbcdac4[_0x176db1('0xb59')][_0x176db1('0x22d5')]({'userProfileId':_0x73ec49[_0x176db1('0x15a5')][_0x176db1('0x1d04')],'sectionId':0x12d})['$promise'];})[_0xa640b4('0xe19')](function(_0x40d1f9){var _0x464606=_0xa640b4,_0x24b65e=_0x40d1f9&&_0x40d1f9[_0x464606('0x16a7')]?_0x40d1f9[_0x464606('0x16a7')][0x0]:null;if(!_0x24b65e){var _0x5074a0=[],_0x813926=null;_0x73ec49[_0x464606('0x17f0')]&&(_0x813926=_0x32d445()[_0x464606('0xf15')](_0x73ec49[_0x464606('0x9f8')],{'id':Number(_0x73ec49[_0x464606('0x17f0')][_0x464606('0x2463')])}));for(var _0x2ec1b3=0x0;_0x2ec1b3<_0x73ec49[_0x464606('0x9f8')]['length'];_0x2ec1b3++){_0x813926&&_0x73ec49['lists'][_0x2ec1b3]['id']===_0x813926['id']&&(_0x73ec49['lists'][_0x2ec1b3][_0x464606('0x1e9d')]=![],_0x5074a0['push'](_0x73ec49[_0x464606('0x9f8')][_0x2ec1b3]));}_0x73ec49['lists']=_0x5074a0;}else{if(!_0x24b65e[_0x464606('0x11fd')])return _0xbcdac4[_0x464606('0xd49')][_0x464606('0x22d5')]({'sectionId':_0x24b65e['id']})[_0x464606('0xe59')][_0x464606('0xe19')](function(_0x1c9ce1){var _0x558a6f=_0x464606,_0x364d8f=_0x32d445()['map'](_0x1c9ce1['rows'],function(_0x58ca00){var _0x4512ef=a0_0x5325;return _0x32d445()['find'](_0x73ec49[_0x4512ef('0x9f8')],{'id':_0x58ca00['resourceId']});}),_0x44067f=null;_0x73ec49[_0x558a6f('0x17f0')]&&(_0x44067f=_0x32d445()[_0x558a6f('0xf15')](_0x73ec49[_0x558a6f('0x9f8')],{'id':Number(_0x73ec49[_0x558a6f('0x17f0')][_0x558a6f('0x2463')])}));if(_0x44067f&&!_0x32d445()['some'](_0x364d8f,['id',_0x44067f['id']])){var _0x52af4d=_0x32d445()[_0x558a6f('0xf15')](_0x73ec49[_0x558a6f('0x9f8')],{'id':_0x44067f['id']});_0x52af4d[_0x558a6f('0x1e9d')]=![],_0x364d8f[_0x558a6f('0xb76')](_0x52af4d);}_0x73ec49[_0x558a6f('0x9f8')]=_0x364d8f;});}})[_0xa640b4('0x223b')](function(_0x114dde){var _0x579e73=_0xa640b4;_0x477f49[_0x579e73('0x8c8')]({'title':_0x114dde[_0x579e73('0x2833')]?_0x579e73('0x27f2')+_0x114dde[_0x579e73('0x2833')]+_0x579e73('0x1b7c')+_0x114dde[_0x579e73('0x1fd7')]:_0x579e73('0xd65'),'msg':_0x114dde[_0x579e73('0x11d0')]?JSON[_0x579e73('0x3ad')](_0x114dde[_0x579e73('0x11d0')]):_0x114dde[_0x579e73('0x94f')]()});}),_0x2cf3cf['hasRole']('admin')?_0xbcdac4['pause']['get']({'fields':_0xa640b4('0x1b75'),'sort':_0xa640b4('0x2623'),'nolimit':_0xa640b4('0x2206')})[_0xa640b4('0xe59')][_0xa640b4('0xe19')](function(_0x2158f3){var _0x5628b1=_0xa640b4;_0x73ec49['pauses']=_0x2158f3[_0x5628b1('0x16a7')]||[];})[_0xa640b4('0x223b')](function(_0x4f0e9c){var _0x5a1dcf=_0xa640b4;_0x477f49[_0x5a1dcf('0x8c8')]({'title':_0x4f0e9c['status']?_0x5a1dcf('0x27f2')+_0x4f0e9c[_0x5a1dcf('0x2833')]+_0x5a1dcf('0x1b7c')+_0x4f0e9c[_0x5a1dcf('0x1fd7')]:'SYSTEM:GET_PAUSES','msg':_0x4f0e9c['data']?JSON[_0x5a1dcf('0x3ad')](_0x4f0e9c[_0x5a1dcf('0x11d0')]):_0x4f0e9c[_0x5a1dcf('0x94f')]()});}):_0xbcdac4[_0xa640b4('0x1c98')]['get']({'fields':_0xa640b4('0x1b75'),'sort':_0xa640b4('0x2623'),'nolimit':_0xa640b4('0x2206')})[_0xa640b4('0xe59')][_0xa640b4('0xe19')](function(_0xbe8d4e){var _0x4254f4=_0xa640b4;_0x73ec49[_0x4254f4('0x145e')]=_0xbe8d4e[_0x4254f4('0x16a7')]||[];})[_0xa640b4('0xe19')](function(){var _0x1005e7=_0xa640b4;return _0xbcdac4[_0x1005e7('0xb59')][_0x1005e7('0x22d5')]({'userProfileId':_0x73ec49[_0x1005e7('0x15a5')]['userProfileId'],'sectionId':0x3ed})[_0x1005e7('0xe59')];})[_0xa640b4('0xe19')](function(_0x4a0ee1){var _0x363114=_0xa640b4,_0x7b6c32=_0x4a0ee1&&_0x4a0ee1[_0x363114('0x16a7')]?_0x4a0ee1[_0x363114('0x16a7')][0x0]:null;if(!_0x7b6c32)_0x73ec49['pauses']=[];else{if(!_0x7b6c32[_0x363114('0x11fd')])return _0xbcdac4[_0x363114('0xd49')][_0x363114('0x22d5')]({'sectionId':_0x7b6c32['id']})[_0x363114('0xe59')][_0x363114('0xe19')](function(_0x1662a9){var _0x161cdd=_0x363114,_0x27433e=_0x32d445()[_0x161cdd('0x65a')](_0x1662a9[_0x161cdd('0x16a7')],function(_0x19448b){var _0x2b94f7=_0x161cdd;return _0x32d445()[_0x2b94f7('0xf15')](_0x73ec49[_0x2b94f7('0x145e')],{'id':_0x19448b['resourceId']});});_0x73ec49[_0x161cdd('0x145e')][_0x161cdd('0x1d7e')](function(_0xabefac){var _0x3dfc43=_0x161cdd;!_0x32d445()[_0x3dfc43('0x201a')](_0x27433e,['id',_0xabefac['id']])&&(_0xabefac[_0x3dfc43('0x1e9d')]=![]),_0x27433e[_0x3dfc43('0xb76')](_0xabefac);}),_0x73ec49[_0x161cdd('0x145e')]=_0x27433e;});}})['catch'](function(_0x38de8d){var _0x521ae6=_0xa640b4;_0x477f49['error']({'title':_0x38de8d['status']?_0x521ae6('0x27f2')+_0x38de8d[_0x521ae6('0x2833')]+_0x521ae6('0x1b7c')+_0x38de8d[_0x521ae6('0x1fd7')]:_0x521ae6('0x1da6'),'msg':_0x38de8d[_0x521ae6('0x11d0')]?JSON[_0x521ae6('0x3ad')](_0x38de8d['data']):_0x38de8d['toString']()});});function _0x14491e(){var _0x2746a5=_0xa640b4;if(_0x2cf3cf[_0x2746a5('0x179e')](_0x2746a5('0xd14')))_0x29700c['go'](_0x2746a5('0xbfc'),{});else return _0xbcdac4[_0x2746a5('0xb59')][_0x2746a5('0x22d5')]({'userProfileId':_0x2cf3cf[_0x2746a5('0x1ef8')]()[_0x2746a5('0x1d04')],'sectionId':0x262})[_0x2746a5('0xe59')][_0x2746a5('0xe19')](function(_0x49ae2a){var _0x355a81=_0x2746a5,_0x2214ad=_0x49ae2a&&_0x49ae2a[_0x355a81('0x16a7')]?_0x49ae2a['rows'][0x0]:null;_0x2214ad&&_0x2214ad[_0x355a81('0x4ef')]?_0x29700c['go'](_0x355a81('0xbfc'),{}):_0x477f49['info']({'title':_0x5df42b[_0x355a81('0x2159')](_0x355a81('0x2786')),'msg':_0x5df42b['instant'](_0x355a81('0x4bb'))});})[_0x2746a5('0x223b')](function(_0x3cc7b1){var _0x4310ef=_0x2746a5;_0x477f49[_0x4310ef('0x8c8')]({'title':_0x3cc7b1[_0x4310ef('0x2833')]?_0x4310ef('0x27f2')+_0x3cc7b1['status']+'\x20-\x20'+_0x3cc7b1[_0x4310ef('0x1fd7')]:_0x4310ef('0x343'),'msg':_0x3cc7b1[_0x4310ef('0x2833')]?JSON[_0x4310ef('0x3ad')](_0x3cc7b1[_0x4310ef('0x11d0')]):_0x3cc7b1['toString']()});});}function _0x20cd1b(_0x2d12a0,_0x5cb4ba){var _0x468f9b=_0xa640b4;_0x1591d2['show']({'controller':_0x468f9b('0x88e'),'controllerAs':'vm','templateUrl':_0x17b40d,'parent':angular[_0x468f9b('0x24a1')](_0x377568[_0x468f9b('0x19b2')]),'targetEvent':_0x5cb4ba,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x2d12a0,'mailAccounts':_0x73ec49[_0x468f9b('0x248b')]?_0x73ec49[_0x468f9b('0x248b')]['rows']:[],'crudPermissions':_0x73ec49[_0x468f9b('0xb3d')],'realtime':![]}});}function _0x5a6bd4(){var _0x4417b5=_0xa640b4;_0x29700c['go']('app.mail.mailAccounts',{},{'reload':_0x4417b5('0x1978')});}function _0x3aa395(){var _0x33e9a8=_0xa640b4;_0xbcdac4[_0x33e9a8('0x17f0')][_0x33e9a8('0xa70')]({'id':_0x73ec49[_0x33e9a8('0x17f0')]['id']},_0x73ec49[_0x33e9a8('0x17f0')])[_0x33e9a8('0xe59')][_0x33e9a8('0xe19')](function(){var _0x1ec5f6=_0x33e9a8;_0x477f49[_0x1ec5f6('0x425')]({'title':_0x1ec5f6('0x14bc'),'msg':_0x73ec49['mailAccount']['name']?_0x73ec49[_0x1ec5f6('0x17f0')][_0x1ec5f6('0x2623')]+_0x1ec5f6('0x283b'):''});})[_0x33e9a8('0x223b')](function(_0x30c7fc){var _0x416f19=_0x33e9a8;_0x477f49[_0x416f19('0x8c8')]({'title':_0x30c7fc[_0x416f19('0x2833')]?_0x416f19('0x27f2')+_0x30c7fc[_0x416f19('0x2833')]+_0x416f19('0x1b7c')+_0x30c7fc[_0x416f19('0x1fd7')]:_0x416f19('0x20e9'),'msg':_0x30c7fc[_0x416f19('0x11d0')]?JSON['stringify'](_0x30c7fc[_0x416f19('0x11d0')]):_0x30c7fc[_0x416f19('0x94f')]()});});}}const _0x13fab2=_0x320bc6,_0x2b9c50=_0x59426a['p']+_0xb635d2('0xd6e');_0x59edb8['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x248b'),_0xb635d2('0x154f'),'userProfileSection','api',_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x59edb8(_0x7e5f98,_0x548509,_0x5358a9,_0x3be9b8,_0x41c2f5,_0x1aa9cb,_0x35cfdb,_0x539460,_0x27b019,_0x450568,_0x27d248,_0x56862a,_0x321040,_0x13d8fe,_0x1d2264,_0x6f1148,_0x57075f){var _0x1744b9=_0xb635d2,_0xa714e7=this;_0xa714e7['license']=_0x6f1148,_0xa714e7[_0x1744b9('0x22f1')]=_0x57075f,_0xa714e7[_0x1744b9('0x15a5')]=_0x1d2264[_0x1744b9('0x1ef8')](),_0xa714e7[_0x1744b9('0x248b')]=_0x27b019||{'count':0x0,'rows':[]},_0xa714e7[_0x1744b9('0x154f')]=_0x450568,_0xa714e7[_0x1744b9('0xb59')]=_0x27d248&&_0x27d248[_0x1744b9('0x148b')]==0x1?_0x27d248['rows'][0x0]:null,_0xa714e7[_0x1744b9('0xb3d')]=_0x1d2264[_0x1744b9('0xd31')](_0xa714e7[_0x1744b9('0xb59')]?_0xa714e7[_0x1744b9('0xb59')][_0x1744b9('0xb3d')]:null),_0xa714e7[_0x1744b9('0x19b6')]=_0x1744b9('0x248b'),_0xa714e7[_0x1744b9('0x14d6')]='',_0xa714e7['listOrderAsc']=null,_0xa714e7[_0x1744b9('0x16ee')]=[],_0xa714e7[_0x1744b9('0xa16')]={'fields':_0x1744b9('0x1333'),'sort':_0x1744b9('0x7e8'),'limit':0xa,'page':0x1},_0xa714e7['arraycservice']=_0x32d445()[_0x1744b9('0x226f')]([{'option':_0x1744b9('0x1d31'),'value':_0x1744b9('0x1046')},{'option':_0x1744b9('0xad7'),'value':_0x1744b9('0x10ca')},{'option':_0x1744b9('0x226b'),'value':_0x1744b9('0x10f4')},{'option':'Yahoo','value':_0x1744b9('0x85e')},{'option':_0x1744b9('0x2562'),'value':'\x27outlook365\x27'}],function(_0x23b7b2){var _0x224346=_0x1744b9;return _0x32d445()[_0x224346('0x1b42')](_0x23b7b2[_0x224346('0x2')],new RegExp('\x27','g'),'');}),_0xa714e7['arrayImap.service']=_0x32d445()[_0x1744b9('0x226f')]([{'option':_0x1744b9('0x1d31'),'value':'null'},{'option':'Gmail','value':'\x27gmail\x27'},{'option':_0x1744b9('0x226b'),'value':_0x1744b9('0x10f4')},{'option':_0x1744b9('0x2802'),'value':'\x27yahoo\x27'},{'option':'Outlook365','value':_0x1744b9('0xb4b')}],function(_0x12dcb9){var _0x12cc82=_0x1744b9;return _0x32d445()[_0x12cc82('0x1b42')](_0x12dcb9[_0x12cc82('0x2')],new RegExp('\x27','g'),'');}),_0xa714e7[_0x1744b9('0x1020')]=_0x32d445()[_0x1744b9('0x226f')]([{'option':_0x1744b9('0x1d31'),'value':_0x1744b9('0x1046')},{'option':_0x1744b9('0xad7'),'value':_0x1744b9('0x10ca')},{'option':_0x1744b9('0x226b'),'value':_0x1744b9('0x10f4')},{'option':'Yahoo','value':_0x1744b9('0x85e')},{'option':_0x1744b9('0x2562'),'value':_0x1744b9('0xb4b')}],function(_0x5bd7fd){var _0x2fb469=_0x1744b9;return _0x32d445()[_0x2fb469('0x1b42')](_0x5bd7fd[_0x2fb469('0x2')],new RegExp('\x27','g'),'');}),_0xa714e7[_0x1744b9('0x16a0')]=_0x41a973,_0xa714e7[_0x1744b9('0x20f5')]=_0x421da2,_0xa714e7['interactionsgoto']=_0xa89396,_0xa714e7[_0x1744b9('0x20e3')]=_0x35574a,_0xa714e7['agentadddialog']=_0x4b64f6,_0xa714e7[_0x1744b9('0x1d9e')]=_0x347f80,_0xa714e7[_0x1744b9('0x425')]=_0x3d3279,_0xa714e7['getMailAccounts']=_0x54893c,_0xa714e7[_0x1744b9('0xc70')]=_0x120221,_0xa714e7[_0x1744b9('0x1fa6')]=_0x594b55,_0xa714e7[_0x1744b9('0x14b6')]=_0x56c4f9,_0xa714e7[_0x1744b9('0xfe8')]=_0xf911ec,_0xa714e7['deselectMailAccounts']=_0x50cf53,_0xa714e7['selectAllMailAccounts']=_0x10c593,_0x1d2264[_0x1744b9('0x179e')]('admin')?_0x56862a['cmList'][_0x1744b9('0x22d5')]({'fields':'id,name','sort':_0x1744b9('0x2623')})[_0x1744b9('0xe59')][_0x1744b9('0xe19')](function(_0x545e26){var _0x4cf84a=_0x1744b9;_0xa714e7[_0x4cf84a('0x9f8')]=_0x545e26[_0x4cf84a('0x16a7')]||[];})[_0x1744b9('0x223b')](function(_0x2dba0c){var _0x298135=_0x1744b9;_0x13d8fe[_0x298135('0x8c8')]({'title':_0x2dba0c[_0x298135('0x2833')]?_0x298135('0x27f2')+_0x2dba0c[_0x298135('0x2833')]+_0x298135('0x1b7c')+_0x2dba0c[_0x298135('0x1fd7')]:_0x298135('0x2012'),'msg':_0x2dba0c[_0x298135('0x11d0')]?JSON[_0x298135('0x3ad')](_0x2dba0c[_0x298135('0x11d0')]):_0x2dba0c[_0x298135('0x94f')]()});}):_0x56862a['cmList']['get']({'fields':_0x1744b9('0x104'),'sort':'name'})[_0x1744b9('0xe59')][_0x1744b9('0xe19')](function(_0xac06fc){var _0x438b5d=_0x1744b9;_0xa714e7[_0x438b5d('0x9f8')]=_0xac06fc[_0x438b5d('0x16a7')]||[];})[_0x1744b9('0xe19')](function(){var _0x311a3f=_0x1744b9;return _0x56862a[_0x311a3f('0xb59')][_0x311a3f('0x22d5')]({'userProfileId':_0xa714e7[_0x311a3f('0x15a5')]['userProfileId'],'sectionId':0x12d})[_0x311a3f('0xe59')];})[_0x1744b9('0xe19')](function(_0xf0fc4f){var _0x33d2d9=_0x1744b9,_0x27ede0=_0xf0fc4f&&_0xf0fc4f['rows']?_0xf0fc4f[_0x33d2d9('0x16a7')][0x0]:null;if(!_0x27ede0){var _0x922589=[],_0x281a59=null;_0xa714e7[_0x33d2d9('0x17f0')]&&(_0x281a59=_0x32d445()[_0x33d2d9('0xf15')](_0xa714e7[_0x33d2d9('0x9f8')],{'id':Number(_0xa714e7['mailAccount'][_0x33d2d9('0x2463')])}));for(var _0x1024ef=0x0;_0x1024ef<_0xa714e7[_0x33d2d9('0x9f8')][_0x33d2d9('0x25ae')];_0x1024ef++){_0x281a59&&_0xa714e7['lists'][_0x1024ef]['id']===_0x281a59['id']&&(_0xa714e7['lists'][_0x1024ef][_0x33d2d9('0x1e9d')]=![],_0x922589[_0x33d2d9('0xb76')](_0xa714e7[_0x33d2d9('0x9f8')][_0x1024ef]));}_0xa714e7[_0x33d2d9('0x9f8')]=_0x922589;}else{if(!_0x27ede0[_0x33d2d9('0x11fd')])return _0x56862a['userProfileResource'][_0x33d2d9('0x22d5')]({'sectionId':_0x27ede0['id']})[_0x33d2d9('0xe59')][_0x33d2d9('0xe19')](function(_0x6ad39f){var _0x3e8a14=_0x33d2d9,_0x93b09e=_0x32d445()[_0x3e8a14('0x65a')](_0x6ad39f[_0x3e8a14('0x16a7')],function(_0x553095){var _0x538022=_0x3e8a14;return _0x32d445()['find'](_0xa714e7[_0x538022('0x9f8')],{'id':_0x553095[_0x538022('0x1104')]});}),_0x10a9f7=null;_0xa714e7['mailAccount']&&(_0x10a9f7=_0x32d445()[_0x3e8a14('0xf15')](_0xa714e7[_0x3e8a14('0x9f8')],{'id':Number(_0xa714e7['mailAccount']['ListId'])}));if(_0x10a9f7&&!_0x32d445()[_0x3e8a14('0x201a')](_0x93b09e,['id',_0x10a9f7['id']])){var _0x3bd5f5=_0x32d445()['find'](_0xa714e7['lists'],{'id':_0x10a9f7['id']});_0x3bd5f5[_0x3e8a14('0x1e9d')]=![],_0x93b09e[_0x3e8a14('0xb76')](_0x3bd5f5);}_0xa714e7[_0x3e8a14('0x9f8')]=_0x93b09e;});}})[_0x1744b9('0x223b')](function(_0x1aa2e2){var _0x5ef187=_0x1744b9;_0x13d8fe['error']({'title':_0x1aa2e2[_0x5ef187('0x2833')]?_0x5ef187('0x27f2')+_0x1aa2e2[_0x5ef187('0x2833')]+'\x20-\x20'+_0x1aa2e2[_0x5ef187('0x1fd7')]:'SYSTEM:GETlists','msg':_0x1aa2e2['data']?JSON['stringify'](_0x1aa2e2[_0x5ef187('0x11d0')]):_0x1aa2e2['toString']()});});function _0x41a973(_0x2ebce8){var _0x3d0bf2=_0x1744b9;_0x5358a9['go']('app.mail.mailAccounts.edit',{'id':_0x2ebce8['id'],'mailAccount':_0x2ebce8,'crudPermissions':_0xa714e7[_0x3d0bf2('0xb3d')]});}function _0x421da2(_0xc6b64f){var _0x470493=_0x1744b9;if(_0xc6b64f&&_0xc6b64f['id'])return _0x56862a[_0x470493('0x17f0')][_0x470493('0x1cb1')]({'id':_0xc6b64f['id']})[_0x470493('0xe59')][_0x470493('0xe19')](function(){var _0x1db907=_0x470493;_0x13d8fe['success']({'title':_0x1db907('0xdda'),'msg':'Connection\x20succeded!'});})['catch'](function(_0x46ac40){var _0x358aa2=_0x470493;_0x13d8fe[_0x358aa2('0x8c8')]({'title':_0x358aa2('0xdda'),'msg':_0x46ac40[_0x358aa2('0x11d0')]?JSON['stringify'](_0x46ac40['data']):_0x46ac40[_0x358aa2('0x94f')]()});});else _0x13d8fe[_0x470493('0x8c8')]({'title':_0x470493('0xdda'),'msg':_0x470493('0x10e1')});}function _0xa89396(_0x2b808d){_0x5358a9['go']('app.mail.mailAccounts.edit',{'id':_0x2b808d['id'],'tab':0x7});}function _0x35574a(){var _0x4ec27b=_0x1744b9;if(_0x1d2264[_0x4ec27b('0x179e')](_0x4ec27b('0xd14')))_0x5358a9['go'](_0x4ec27b('0xbfc'),{});else return _0x56862a[_0x4ec27b('0xb59')]['get']({'userProfileId':_0x1d2264['getCurrentUser']()[_0x4ec27b('0x1d04')],'sectionId':0x262})['$promise'][_0x4ec27b('0xe19')](function(_0x1fc01c){var _0x1f1384=_0x4ec27b,_0x3010c1=_0x1fc01c&&_0x1fc01c[_0x1f1384('0x16a7')]?_0x1fc01c[_0x1f1384('0x16a7')][0x0]:null;_0x3010c1&&_0x3010c1['enabled']?_0x5358a9['go']('app.mail.realtime.accounts',{}):_0x13d8fe['info']({'title':_0x539460[_0x1f1384('0x2159')](_0x1f1384('0x2786')),'msg':_0x539460['instant'](_0x1f1384('0x4bb'))});})[_0x4ec27b('0x223b')](function(_0x1da843){var _0x3f15ce=_0x4ec27b;_0x13d8fe['error']({'title':_0x1da843[_0x3f15ce('0x2833')]?_0x3f15ce('0x27f2')+_0x1da843[_0x3f15ce('0x2833')]+_0x3f15ce('0x1b7c')+_0x1da843[_0x3f15ce('0x1fd7')]:_0x3f15ce('0x343'),'msg':_0x1da843['status']?JSON[_0x3f15ce('0x3ad')](_0x1da843[_0x3f15ce('0x11d0')]):_0x1da843[_0x3f15ce('0x94f')]()});});}function _0x4b64f6(_0x59ebef,_0x54b7d2){var _0x2b68e7=_0x1744b9;_0x41c2f5[_0x2b68e7('0x26b2')]({'controller':_0x2b68e7('0x88e'),'controllerAs':'vm','templateUrl':_0x17b40d,'parent':angular[_0x2b68e7('0x24a1')](_0x1aa9cb[_0x2b68e7('0x19b2')]),'targetEvent':_0x54b7d2,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x59ebef,'mailAccounts':_0xa714e7[_0x2b68e7('0x248b')]?_0xa714e7[_0x2b68e7('0x248b')][_0x2b68e7('0x16a7')]:[],'crudPermissions':_0xa714e7[_0x2b68e7('0xb3d')],'realtime':![]}});}function _0x347f80(_0x300a16,_0x1b4a50){var _0x3bdaaf=_0x1744b9,_0x402e93=_0x41c2f5[_0x3bdaaf('0xa5')]()[_0x3bdaaf('0x13e4')](_0x3bdaaf('0x346')+_0x32d445()[_0x3bdaaf('0x1df2')](_0x3bdaaf('0x17f0'))+'?')[_0x3bdaaf('0x221c')](''+(_0x300a16[_0x3bdaaf('0x2623')]||_0x3bdaaf('0x17f0'))+_0x3bdaaf('0x27bb')+_0x3bdaaf('0x21bd'))[_0x3bdaaf('0x4d1')](_0x3bdaaf('0x13e5'))[_0x3bdaaf('0x1345')](_0x1b4a50)['ok']('OK')[_0x3bdaaf('0x2c1')](_0x3bdaaf('0x17'));_0x41c2f5[_0x3bdaaf('0x26b2')](_0x402e93)['then'](function(){_0x594b55(_0x300a16);},function(){var _0x2bb097=_0x3bdaaf;console[_0x2bb097('0x1fe9')](_0x2bb097('0x17'));});}var _0x59d4f7=!![],_0x17d348=0x1;_0x7e5f98[_0x1744b9('0x107')](_0x1744b9('0x20cb'),function(_0x396f41,_0x3a516f){var _0x11d193=_0x1744b9;_0x59d4f7?_0x35cfdb(function(){_0x59d4f7=![];}):(!_0x3a516f&&(_0x17d348=_0xa714e7['query'][_0x11d193('0xc08')]),_0x396f41!==_0x3a516f&&(_0xa714e7[_0x11d193('0xa16')][_0x11d193('0xc08')]=0x1),!_0x396f41&&(_0xa714e7[_0x11d193('0xa16')][_0x11d193('0xc08')]=_0x17d348),_0xa714e7[_0x11d193('0x1cd2')]());});function _0x3d3279(_0x28088f){var _0x2019a9=_0x1744b9;_0xa714e7[_0x2019a9('0x248b')]=_0x28088f||{'count':0x0,'rows':[]};}function _0x54893c(){var _0x108cff=_0x1744b9;_0xa714e7[_0x108cff('0xa16')]['offset']=(_0xa714e7[_0x108cff('0xa16')]['page']-0x1)*_0xa714e7['query'][_0x108cff('0x1b6d')],_0x1d2264[_0x108cff('0x179e')](_0x108cff('0xd14'))?_0xa714e7[_0x108cff('0x9c8')]=_0x56862a['mailAccount']['get'](_0xa714e7[_0x108cff('0xa16')],_0x3d3279)['$promise']:(_0xa714e7[_0x108cff('0xa16')]['id']=_0xa714e7[_0x108cff('0x154f')]['id'],_0xa714e7[_0x108cff('0xa16')][_0x108cff('0x1e59')]=_0x108cff('0xa3e'),_0xa714e7[_0x108cff('0x9c8')]=_0x56862a['userProfile'][_0x108cff('0x14e6')](_0xa714e7['query'],_0x3d3279)[_0x108cff('0xe59')]);}function _0x120221(_0x5919e2,_0xa3b7cc){var _0x792c0a=_0x1744b9;_0x41c2f5['show']({'controller':'CreateOrEditMailAccountDialogController','controllerAs':'vm','templateUrl':_0x2b9c50,'parent':angular[_0x792c0a('0x24a1')](_0x1aa9cb['body']),'targetEvent':_0x5919e2,'clickOutsideToClose':!![],'locals':{'mailAccount':_0xa3b7cc,'mailAccounts':_0xa714e7[_0x792c0a('0x248b')][_0x792c0a('0x16a7')],'license':_0xa714e7['license'],'setting':_0xa714e7['setting'],'crudPermissions':_0xa714e7[_0x792c0a('0xb3d')]}});}function _0x594b55(_0x186e69){var _0x36710f=_0x1744b9;if(_0x186e69['service'])return _0x13d8fe[_0x36710f('0x8c8')]({'title':'Mail\x20Account\x20not\x20deleted!','msg':_0x36710f('0x214d')});_0x56862a[_0x36710f('0x17f0')][_0x36710f('0x229e')]({'id':_0x186e69['id']})[_0x36710f('0xe59')][_0x36710f('0xe19')](function(){var _0x59ebbe=_0x36710f;_0x32d445()[_0x59ebbe('0xa8b')](_0xa714e7[_0x59ebbe('0x248b')]['rows'],{'id':_0x186e69['id']}),_0xa714e7[_0x59ebbe('0x248b')][_0x59ebbe('0x148b')]-=0x1,!_0xa714e7[_0x59ebbe('0x248b')][_0x59ebbe('0x16a7')]['length']&&_0xa714e7[_0x59ebbe('0x1cd2')](),_0x13d8fe[_0x59ebbe('0x425')]({'title':_0x32d445()[_0x59ebbe('0x1df2')](_0x59ebbe('0x3cf'))+_0x59ebbe('0x1219'),'msg':_0x186e69[_0x59ebbe('0x2623')]?_0x186e69[_0x59ebbe('0x2623')]+_0x59ebbe('0x2182'):''});})[_0x36710f('0x223b')](function(_0x134aef){var _0xe26911=_0x36710f;if(_0x134aef[_0xe26911('0x11d0')]&&_0x134aef[_0xe26911('0x11d0')][_0xe26911('0xcd2')]&&_0x134aef[_0xe26911('0x11d0')][_0xe26911('0xcd2')][_0xe26911('0x25ae')]){_0xa714e7['errors']=_0x134aef[_0xe26911('0x11d0')][_0xe26911('0xcd2')]||[{'message':_0x134aef['toString'](),'type':_0xe26911('0x990')}];for(var _0x5d602f=0x0;_0x5d602f<_0x134aef[_0xe26911('0x11d0')][_0xe26911('0xcd2')][_0xe26911('0x25ae')];_0x5d602f++){_0x13d8fe[_0xe26911('0x8c8')]({'title':_0x134aef[_0xe26911('0x11d0')][_0xe26911('0xcd2')][_0x5d602f][_0xe26911('0x62e')],'msg':_0x134aef['data'][_0xe26911('0xcd2')][_0x5d602f][_0xe26911('0x27e8')]});}}else _0x13d8fe['error']({'title':_0x134aef[_0xe26911('0x2833')]?_0xe26911('0x27f2')+_0x134aef[_0xe26911('0x2833')]+'\x20-\x20'+_0x134aef[_0xe26911('0x1fd7')]:'SYSTEM:DELETEmailAccount','msg':_0x134aef['data']?JSON[_0xe26911('0x3ad')](_0x134aef['data'][_0xe26911('0x27e8')]):_0x134aef[_0xe26911('0x27e8')]||_0x134aef['toString']()});});}function _0x56c4f9(){var _0x54f4e9=_0x1744b9,_0x52e9e3=angular[_0x54f4e9('0x89')](_0xa714e7[_0x54f4e9('0x16ee')]);return _0xa714e7[_0x54f4e9('0x16ee')]=[],_0x52e9e3;}function _0xf911ec(_0x8f0bfe){var _0x36c6fb=_0x1744b9,_0x5d38d8=_0x41c2f5['confirm']()[_0x36c6fb('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailAccounts?')[_0x36c6fb('0x221c')](_0x36c6fb('0xab2')+_0xa714e7[_0x36c6fb('0x16ee')][_0x36c6fb('0x25ae')]+_0x36c6fb('0x5bc')+_0x36c6fb('0x21bd'))[_0x36c6fb('0x4d1')](_0x36c6fb('0x158b'))[_0x36c6fb('0x1345')](_0x8f0bfe)['ok']('OK')['cancel']('CANCEL');_0x41c2f5['show'](_0x5d38d8)[_0x36c6fb('0xe19')](function(){var _0x1aecff=_0x36c6fb;_0xa714e7['selectedMailAccounts'][_0x1aecff('0x1d7e')](function(_0x44390c){_0x594b55(_0x44390c);}),_0xa714e7[_0x1aecff('0x16ee')]=[];});}function _0x50cf53(){var _0x2ad2dc=_0x1744b9;_0xa714e7[_0x2ad2dc('0x16ee')]=[];}function _0x10c593(){var _0x504ae6=_0x1744b9;_0xa714e7['selectedMailAccounts']=_0xa714e7[_0x504ae6('0x248b')][_0x504ae6('0x16a7')];}}const _0x2f3824=_0x59edb8;_0x557890[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x12af'),_0xb635d2('0x18d9'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x557890(_0x41fa26,_0x4124d1,_0x62fb28,_0x4f01ff,_0x188dc8,_0x492fc9,_0xda058c,_0x347304,_0x14f4f9,_0x44ead9,_0x2df860,_0xf93dea,_0x103893,_0x478a09){var _0x3b0df3=_0xb635d2,_0x1807f5=this;_0x1807f5[_0x3b0df3('0x15a5')]=_0x2df860['getCurrentUser'](),_0x1807f5['errors']=[],_0x1807f5[_0x3b0df3('0x22f1')]=_0x103893,_0x1807f5['license']=_0xf93dea,_0x1807f5[_0x3b0df3('0xb3d')]=_0x478a09,_0x1807f5[_0x3b0df3('0x1ccb')]={},_0x1807f5[_0x3b0df3('0x25ac')]=_0x1807f5[_0x3b0df3('0x22f1')]&&_0x1807f5[_0x3b0df3('0x22f1')][_0x3b0df3('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1807f5['title']=_0x3b0df3('0x310'),_0x1807f5[_0x3b0df3('0x18d9')]=angular['copy'](_0x14f4f9),_0x1807f5[_0x3b0df3('0x12af')]=_0x347304,_0x1807f5[_0x3b0df3('0x1e53')]=![];!_0x1807f5[_0x3b0df3('0x18d9')]&&(_0x1807f5[_0x3b0df3('0x18d9')]={'strategy':_0x3b0df3('0x1442'),'timeout':0xa},_0x1807f5[_0x3b0df3('0x13e4')]=_0x3b0df3('0xa'),_0x1807f5[_0x3b0df3('0x1e53')]=!![]);_0x1807f5[_0x3b0df3('0x15e')]=_0x1be98e,_0x1807f5[_0x3b0df3('0x2196')]=_0x45dea9,_0x1807f5[_0x3b0df3('0x1812')]=_0x4459b3,_0x1807f5[_0x3b0df3('0x2635')]=_0x40771a,_0x1807f5[_0x3b0df3('0x2584')]=_0x37d9cf;function _0x1be98e(){var _0x37df07=_0x3b0df3;_0x1807f5[_0x37df07('0xcd2')]=[],_0x44ead9[_0x37df07('0x18d9')][_0x37df07('0xe5e')](_0x1807f5[_0x37df07('0x18d9')])[_0x37df07('0xe59')][_0x37df07('0xe19')](function(_0x6acb1){var _0xb148fd=_0x37df07;_0x1807f5[_0xb148fd('0x12af')][_0xb148fd('0x14c9')](_0x6acb1[_0xb148fd('0x250e')]()),_0xda058c[_0xb148fd('0x425')]({'title':_0xb148fd('0x704'),'msg':_0x1807f5[_0xb148fd('0x18d9')][_0xb148fd('0x2623')]?_0x1807f5[_0xb148fd('0x18d9')]['name']+_0xb148fd('0x105f'):''}),_0x37d9cf(_0x6acb1);})[_0x37df07('0x223b')](function(_0x50526a){var _0x57adc7=_0x37df07;if(_0x50526a[_0x57adc7('0x11d0')]&&_0x50526a[_0x57adc7('0x11d0')][_0x57adc7('0xcd2')]&&_0x50526a[_0x57adc7('0x11d0')][_0x57adc7('0xcd2')][_0x57adc7('0x25ae')]){_0x1807f5[_0x57adc7('0xcd2')]=_0x50526a['data'][_0x57adc7('0xcd2')]||[{'message':_0x50526a[_0x57adc7('0x94f')](),'type':'api.mailQueue.save'}];for(var _0x1bcbc0=0x0;_0x1bcbc0<_0x50526a['data'][_0x57adc7('0xcd2')][_0x57adc7('0x25ae')];_0x1bcbc0+=0x1){_0xda058c[_0x57adc7('0x8c8')]({'title':_0x50526a[_0x57adc7('0x11d0')][_0x57adc7('0xcd2')][_0x1bcbc0][_0x57adc7('0x62e')],'msg':_0x50526a[_0x57adc7('0x11d0')][_0x57adc7('0xcd2')][_0x1bcbc0]['message']});}}else _0xda058c[_0x57adc7('0x8c8')]({'title':_0x50526a[_0x57adc7('0x2833')]?'API:'+_0x50526a[_0x57adc7('0x2833')]+_0x57adc7('0x1b7c')+_0x50526a[_0x57adc7('0x1fd7')]:_0x57adc7('0x198d'),'msg':_0x50526a[_0x57adc7('0x11d0')]?JSON['stringify'](_0x50526a['data'][_0x57adc7('0x27e8')]):_0x50526a[_0x57adc7('0x94f')]()});});}function _0x45dea9(){var _0x311190=_0x3b0df3;_0x1807f5['errors']=[],_0x44ead9[_0x311190('0x18d9')][_0x311190('0xa70')]({'id':_0x1807f5[_0x311190('0x18d9')]['id']},_0x1807f5[_0x311190('0x18d9')])[_0x311190('0xe59')][_0x311190('0xe19')](function(_0x173fdf){var _0x206422=_0x311190,_0x3cac51=_0x32d445()[_0x206422('0xf15')](_0x1807f5['mailQueues'],{'id':_0x173fdf['id']});_0x3cac51&&_0x32d445()[_0x206422('0x1d8')](_0x3cac51,_0x32d445()['pick'](_0x173fdf[_0x206422('0x250e')](),_0x32d445()[_0x206422('0x1234')](_0x3cac51))),_0xda058c[_0x206422('0x425')]({'title':_0x206422('0x8bb'),'msg':_0x1807f5[_0x206422('0x18d9')][_0x206422('0x2623')]?_0x1807f5[_0x206422('0x18d9')][_0x206422('0x2623')]+_0x206422('0x1c19'):''}),_0x37d9cf(_0x173fdf);})['catch'](function(_0x11a100){var _0x2c13c3=_0x311190;if(_0x11a100[_0x2c13c3('0x11d0')]&&_0x11a100['data']['errors']&&_0x11a100[_0x2c13c3('0x11d0')][_0x2c13c3('0xcd2')][_0x2c13c3('0x25ae')]){_0x1807f5['errors']=_0x11a100['data'][_0x2c13c3('0xcd2')]||[{'message':_0x11a100['toString'](),'type':'api.mailQueue.update'}];for(var _0x356592=0x0;_0x356592<_0x11a100[_0x2c13c3('0x11d0')][_0x2c13c3('0xcd2')][_0x2c13c3('0x25ae')];_0x356592++){_0xda058c['error']({'title':_0x11a100['data'][_0x2c13c3('0xcd2')][_0x356592][_0x2c13c3('0x62e')],'msg':_0x11a100[_0x2c13c3('0x11d0')][_0x2c13c3('0xcd2')][_0x356592][_0x2c13c3('0x27e8')]});}}else _0xda058c[_0x2c13c3('0x8c8')]({'title':_0x11a100[_0x2c13c3('0x2833')]?_0x2c13c3('0x27f2')+_0x11a100[_0x2c13c3('0x2833')]+_0x2c13c3('0x1b7c')+_0x11a100[_0x2c13c3('0x1fd7')]:_0x2c13c3('0x1a10'),'msg':_0x11a100[_0x2c13c3('0x11d0')]?JSON[_0x2c13c3('0x3ad')](_0x11a100[_0x2c13c3('0x11d0')][_0x2c13c3('0x27e8')]):_0x11a100['toString']()});});}function _0x4459b3(_0x3daa22){var _0x5703da=_0x3b0df3;_0x1807f5[_0x5703da('0xcd2')]=[];var _0x2083dd=_0x4f01ff[_0x5703da('0xa5')]()[_0x5703da('0x13e4')](_0x5703da('0x24d0'))['content'](_0x5703da('0x1f47'))[_0x5703da('0x4d1')](_0x5703da('0x1d98'))['ok'](_0x5703da('0x2198'))['cancel'](_0x5703da('0x8a3'))['targetEvent'](_0x3daa22);_0x4f01ff['show'](_0x2083dd)[_0x5703da('0xe19')](function(){var _0x2a2980=_0x5703da;_0x44ead9[_0x2a2980('0x18d9')][_0x2a2980('0x229e')]({'id':_0x1807f5[_0x2a2980('0x18d9')]['id']})[_0x2a2980('0xe59')][_0x2a2980('0xe19')](function(){var _0x250dd9=_0x2a2980;_0x32d445()[_0x250dd9('0xa8b')](_0x1807f5['mailQueues'],{'id':_0x1807f5['mailQueue']['id']}),_0xda058c[_0x250dd9('0x425')]({'title':_0x250dd9('0x2684'),'msg':(_0x1807f5['mailQueue']['name']||_0x250dd9('0x18d9'))+_0x250dd9('0x2182')}),_0x37d9cf(_0x1807f5[_0x250dd9('0x18d9')]);})[_0x2a2980('0x223b')](function(_0x2d0655){var _0x5cb5bd=_0x2a2980;if(_0x2d0655[_0x5cb5bd('0x11d0')]&&_0x2d0655[_0x5cb5bd('0x11d0')][_0x5cb5bd('0xcd2')]&&_0x2d0655[_0x5cb5bd('0x11d0')]['errors']['length']){_0x1807f5[_0x5cb5bd('0xcd2')]=_0x2d0655[_0x5cb5bd('0x11d0')][_0x5cb5bd('0xcd2')]||[{'message':_0x2d0655[_0x5cb5bd('0x94f')](),'type':_0x5cb5bd('0xb94')}];for(var _0x995099=0x0;_0x995099<_0x2d0655[_0x5cb5bd('0x11d0')][_0x5cb5bd('0xcd2')][_0x5cb5bd('0x25ae')];_0x995099++){_0xda058c[_0x5cb5bd('0x8c8')]({'title':_0x2d0655[_0x5cb5bd('0x11d0')]['errors'][_0x995099][_0x5cb5bd('0x62e')],'msg':_0x2d0655[_0x5cb5bd('0x11d0')]['errors'][_0x995099]['message']});}}else _0xda058c['error']({'title':_0x2d0655[_0x5cb5bd('0x2833')]?_0x5cb5bd('0x27f2')+_0x2d0655[_0x5cb5bd('0x2833')]+'\x20-\x20'+_0x2d0655[_0x5cb5bd('0x1fd7')]:_0x5cb5bd('0xb94'),'msg':_0x2d0655[_0x5cb5bd('0x11d0')]?JSON['stringify'](_0x2d0655[_0x5cb5bd('0x11d0')][_0x5cb5bd('0x27e8')]):_0x2d0655[_0x5cb5bd('0x27e8')]||_0x2d0655[_0x5cb5bd('0x94f')]()});});},function(){});}function _0x40771a(_0x555e02){return _0x555e02===null?undefined:new Date(_0x555e02);}function _0x37d9cf(_0x33abe3){_0x4f01ff['hide'](_0x33abe3);}}const _0x41f310=_0x557890;_0xddbd63[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),'mailQueue',_0xb635d2('0x12af'),'realtime',_0xb635d2('0x2493'),_0xb635d2('0x2730'),'crudPermissions'];function _0xddbd63(_0x91dfd7,_0x2d0191,_0x402748,_0x53a18a,_0x39d3a3,_0x25796f,_0x2edb9d,_0x4cc63e,_0x5e0849,_0x39a1b8){var _0x2a9d66=_0xb635d2,_0x4ea3d0=this;_0x4ea3d0[_0x2a9d66('0x15a5')]=_0x5e0849[_0x2a9d66('0x1ef8')](),_0x4ea3d0[_0x2a9d66('0x18d9')]=_0x39d3a3,_0x4ea3d0[_0x2a9d66('0xb3d')]=_0x39a1b8,_0x4ea3d0[_0x2a9d66('0x24e1')]=_0x2edb9d,_0x4ea3d0[_0x2a9d66('0xe4b')]=[],_0x4ea3d0[_0x2a9d66('0x1884')]=[],_0x4ea3d0[_0x2a9d66('0x2273')]=[],_0x4ea3d0['startingAllowedItems']=[],_0x4ea3d0[_0x2a9d66('0xf79')]=[],_0x4ea3d0['pendingChanges']=![],_0x4ea3d0['onInit']=_0x20d060,_0x4ea3d0[_0x2a9d66('0x4b8')]=_0x1a9479,_0x4ea3d0[_0x2a9d66('0x2584')]=_0x563c19,_0x4ea3d0[_0x2a9d66('0xc00')]={'readOnly':!_0x4ea3d0['crudPermissions'][_0x2a9d66('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2a9d66('0x2623'),'line1':'fullname','line2':['name',_0x2a9d66('0x1b66')],'line3':'','labelAll':_0x4cc63e['instant'](_0x2a9d66('0x1ea8')),'labelSelected':_0x4cc63e['instant'](_0x2a9d66('0x2079')),'transferCallback':function _0x293a6e(){var _0x3dd509=_0x2a9d66,_0x2f4341=_0x32d445()[_0x3dd509('0x118')](_0x4ea3d0[_0x3dd509('0xf79')],_0x4ea3d0[_0x3dd509('0x2273')],'id');_0x4ea3d0[_0x3dd509('0x16e7')]=_0x32d445()[_0x3dd509('0x14b4')](_0x2f4341)?![]:!![];}};function _0x20d060(){var _0x57c08a=_0x2a9d66;return _0x5e0849[_0x57c08a('0x179e')]('admin')?_0x150e8d()[_0x57c08a('0x223b')](function(_0x4c55a9){var _0x385168=_0x57c08a;_0x402748[_0x385168('0x8c8')]({'title':_0x4c55a9[_0x385168('0x2833')]?'API:'+_0x4c55a9['status']+_0x385168('0x1b7c')+_0x4c55a9[_0x385168('0x1fd7')]:'SYSTEM:GET_AGENTS','msg':_0x4c55a9[_0x385168('0x2833')]?JSON[_0x385168('0x3ad')](_0x4c55a9['data']):_0x4c55a9[_0x385168('0x94f')]()});}):_0x1e7df6()[_0x57c08a('0xe19')](function(_0x1d5c87){var _0x3c9f6f=_0x57c08a;return _0x4ea3d0[_0x3c9f6f('0x1e59')]=_0x1d5c87,_0x150e8d();})[_0x57c08a('0x223b')](function(_0x51bd85){var _0x4141cd=_0x57c08a;_0x402748[_0x4141cd('0x8c8')]({'title':_0x51bd85[_0x4141cd('0x2833')]?_0x4141cd('0x27f2')+_0x51bd85['status']+'\x20-\x20'+_0x51bd85[_0x4141cd('0x1fd7')]:_0x4141cd('0x1e86'),'msg':_0x51bd85[_0x4141cd('0x2833')]?JSON[_0x4141cd('0x3ad')](_0x51bd85[_0x4141cd('0x11d0')]):_0x51bd85[_0x4141cd('0x94f')]()});});}function _0x1e7df6(){return _0x2d0191(function(_0xe07e27,_0x57df74){var _0x340bab=a0_0x5325;_0x53a18a[_0x340bab('0xb59')]['get']({'userProfileId':_0x4ea3d0['currentUser'][_0x340bab('0x1d04')],'name':'Agents'})[_0x340bab('0xe59')][_0x340bab('0xe19')](function(_0x5bc8af){var _0x429cda=_0x340bab,_0x18ae8e=_0x5bc8af&&_0x5bc8af[_0x429cda('0x16a7')]?_0x5bc8af[_0x429cda('0x16a7')][0x0]:null;_0xe07e27(_0x18ae8e);})['catch'](function(_0x59a03c){_0x57df74(_0x59a03c);});});}function _0x150e8d(){return _0x2d0191(function(_0x20fe33,_0x49b954){var _0x408463=a0_0x5325;return _0x2d1651()['then'](function(_0x17874e){var _0x337127=a0_0x5325;return _0x4ea3d0[_0x337127('0xe4b')]=_0x17874e['rows']?_0x17874e[_0x337127('0x16a7')]:[],_0x5e0849[_0x337127('0x179e')](_0x337127('0xd14'))?_0x17874e:_0x4ea3d0[_0x337127('0x1e59')]?_0x4ea3d0[_0x337127('0x1e59')][_0x337127('0x11fd')]?_0x17874e:_0x1ed767():null;})['then'](function(_0x815f21){var _0x24538f=a0_0x5325,_0x493653=_0x815f21&&_0x815f21['rows']?_0x815f21[_0x24538f('0x16a7')]:[];return _0x4ea3d0[_0x24538f('0x1884')]=_0x32d445()[_0x24538f('0x65a')](_0x493653,function(_0x31ceba){var _0x572ff4=_0x24538f;return _0x32d445()[_0x572ff4('0xf15')](_0x4ea3d0[_0x572ff4('0xe4b')],{'id':_0x5e0849[_0x572ff4('0x179e')](_0x572ff4('0xd14'))||_0x4ea3d0[_0x572ff4('0x1e59')][_0x572ff4('0x11fd')]?_0x31ceba['id']:_0x31ceba['resourceId']});}),_0x4ea3d0[_0x24538f('0x286c')]=angular[_0x24538f('0x89')](_0x4ea3d0[_0x24538f('0x1884')]),_0x4ea3d0[_0x24538f('0xe4b')][_0x24538f('0x1d7e')](function(_0x4efba1){var _0x372853=_0x24538f,_0x538db0=_0x32d445()[_0x372853('0xf15')](_0x4ea3d0[_0x372853('0x1884')],{'id':_0x4efba1['id']});_0x5e0849[_0x372853('0x179e')](_0x372853('0xd14'))?_0x4efba1['isValid']=!![]:_0x4efba1[_0x372853('0x1768')]=typeof _0x538db0!==_0x372853('0x1143')?!![]:![];}),_0x1350aa();})[_0x408463('0xe19')](function(_0x26c8ce){var _0x324861=_0x408463,_0x2020d0=_0x26c8ce&&_0x26c8ce[_0x324861('0x16a7')]?_0x26c8ce[_0x324861('0x16a7')]:[];_0x4ea3d0[_0x324861('0x2273')]=_0x32d445()['map'](_0x2020d0,function(_0x1503c2){var _0x38efb9=_0x324861,_0x3e6b6d=_0x32d445()[_0x38efb9('0xf15')](_0x4ea3d0[_0x38efb9('0xe4b')],{'id':_0x1503c2['id']});return _0x3e6b6d[_0x38efb9('0x21e3')]=_0x1503c2[_0x38efb9('0x286a')]?_0x38efb9('0x815')+_0x1503c2['UserMailQueue'][_0x38efb9('0x21e3')]:'',_0x3e6b6d[_0x38efb9('0x1b66')]=typeof _0x1503c2[_0x38efb9('0x1b66')]!==_0x38efb9('0x1143')?'<'+_0x1503c2[_0x38efb9('0x1b66')]+'>':'',_0x3e6b6d;}),_0x4ea3d0[_0x324861('0xf79')]=angular[_0x324861('0x89')](_0x4ea3d0[_0x324861('0x2273')]),_0x4ea3d0[_0x324861('0xc00')]['selectedItems']=_0x4ea3d0[_0x324861('0x2273')],_0x4ea3d0[_0x324861('0xc00')]['items']=_0x32d445()[_0x324861('0x501')](_0x4ea3d0['allowedItems'],_0x4ea3d0[_0x324861('0xc00')]['selectedItems'],'id'),_0x20fe33();})['catch'](function(_0x2f2d04){_0x49b954(_0x2f2d04);});});}function _0x1ed767(){return _0x2d0191(function(_0x4c9aaa,_0x33b3b2){var _0x24ebe2=a0_0x5325;return _0x53a18a[_0x24ebe2('0xd49')][_0x24ebe2('0x22d5')]({'sectionId':_0x4ea3d0['section']['id'],'nolimit':!![]})[_0x24ebe2('0xe59')][_0x24ebe2('0xe19')](function(_0x454dee){_0x4c9aaa(_0x454dee);})[_0x24ebe2('0x223b')](function(_0x40e733){_0x33b3b2(_0x40e733);});});}function _0x1350aa(){return _0x2d0191(function(_0x4daf55,_0x92c837){var _0x39c77c=a0_0x5325;return _0x53a18a[_0x39c77c('0x18d9')][_0x39c77c('0x14fd')]({'id':_0x4ea3d0[_0x39c77c('0x18d9')]['id'],'fields':_0x39c77c('0x244f'),'nolimit':!![],'role':_0x39c77c('0x108')})[_0x39c77c('0xe59')]['then'](function(_0xcb3c2a){_0x4daf55(_0xcb3c2a);})['catch'](function(_0x359a72){_0x92c837(_0x359a72);});});}function _0x2d1651(){return _0x2d0191(function(_0x33c533,_0x39fccb){var _0x2c44a9=a0_0x5325;return _0x53a18a[_0x2c44a9('0x10c6')]['get']({'fields':_0x2c44a9('0x244f'),'nolimit':!![],'role':'agent'})[_0x2c44a9('0xe59')][_0x2c44a9('0xe19')](function(_0x22cc7c){_0x33c533(_0x22cc7c);})['catch'](function(_0x43002c){_0x39fccb(_0x43002c);});});}function _0x353f13(_0x5c2afc){return _0x2d0191(function(_0x13bc83,_0x55ee61){var _0x2278fe=a0_0x5325;_0x32d445()[_0x2278fe('0x14b4')](_0x5c2afc)?_0x13bc83():_0x53a18a[_0x2278fe('0x18d9')][_0x2278fe('0x2271')]({'id':_0x4ea3d0[_0x2278fe('0x18d9')]['id'],'ids':_0x32d445()[_0x2278fe('0x65a')](_0x5c2afc,'id')})[_0x2278fe('0xe59')][_0x2278fe('0xe19')](function(){_0x13bc83();})[_0x2278fe('0x223b')](function(_0x350fa4){_0x55ee61(_0x350fa4);});});}function _0x1bab93(_0x49dfb2){return _0x2d0191(function(_0x2738d5,_0x1ab78f){var _0x54904d=a0_0x5325;_0x32d445()[_0x54904d('0x14b4')](_0x49dfb2)?_0x2738d5():_0x53a18a[_0x54904d('0x18d9')]['removeAgents']({'id':_0x4ea3d0['mailQueue']['id'],'ids':_0x32d445()[_0x54904d('0x65a')](_0x49dfb2,'id')})[_0x54904d('0xe59')]['then'](function(){_0x2738d5();})['catch'](function(_0x3e4c06){_0x1ab78f(_0x3e4c06);});});}function _0x1a9479(){var _0x36b6de=_0x2a9d66,_0x71e2c9=_0x32d445()[_0x36b6de('0x501')](_0x4ea3d0[_0x36b6de('0xf79')],_0x4ea3d0[_0x36b6de('0x2273')],'id'),_0x15a0eb=_0x32d445()['differenceBy'](_0x4ea3d0[_0x36b6de('0x2273')],_0x4ea3d0[_0x36b6de('0xf79')],'id');return _0x1bab93(_0x71e2c9)[_0x36b6de('0xe19')](function(){return _0x353f13(_0x15a0eb);})[_0x36b6de('0xe19')](function(){var _0x421f15=_0x36b6de;_0x4ea3d0[_0x421f15('0x16e7')]=![],_0x4ea3d0[_0x421f15('0x286c')]=angular[_0x421f15('0x89')](_0x4ea3d0[_0x421f15('0x1884')]),_0x4ea3d0['startingSelectedItems']=angular[_0x421f15('0x89')](_0x4ea3d0[_0x421f15('0x2273')]),_0x402748['success']({'title':_0x421f15('0x1dca'),'msg':_0x421f15('0x25d')});})[_0x36b6de('0x223b')](function(_0x2a5176){var _0x40e0b0=_0x36b6de;_0x402748[_0x40e0b0('0x8c8')]({'title':_0x2a5176[_0x40e0b0('0x2833')]?_0x40e0b0('0x27f2')+_0x2a5176[_0x40e0b0('0x2833')]+_0x40e0b0('0x1b7c')+_0x2a5176[_0x40e0b0('0x1fd7')]:_0x40e0b0('0x2168'),'msg':_0x2a5176[_0x40e0b0('0x2833')]?JSON['stringify'](_0x2a5176[_0x40e0b0('0x11d0')]):_0x2a5176[_0x40e0b0('0x94f')]()});});}function _0x563c19(){_0x91dfd7['hide']();}}const _0xa8e117=_0xddbd63;_0xab7b6e[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'api','mailQueue',_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0xab7b6e(_0x46dd28,_0x502ac5,_0x8ceaac,_0x2df0b0,_0x128c4a,_0x20aae7,_0x524031,_0x39a069){var _0x16f3a9=_0xb635d2,_0x29a172=this;_0x29a172[_0x16f3a9('0x15a5')]=_0x524031['getCurrentUser'](),_0x29a172[_0x16f3a9('0x18d9')]=_0x128c4a,_0x29a172[_0x16f3a9('0xb3d')]=_0x39a069,_0x29a172['items']=[],_0x29a172['allowedItems']=[],_0x29a172[_0x16f3a9('0x2273')]=[],_0x29a172[_0x16f3a9('0x286c')]=[],_0x29a172[_0x16f3a9('0xf79')]=[],_0x29a172['pendingChanges']=![],_0x29a172[_0x16f3a9('0xc00')]={'readOnly':!_0x29a172['crudPermissions'][_0x16f3a9('0x12bc')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x16f3a9('0x2623'),'line1':_0x16f3a9('0x2623'),'line2':'','line3':'','labelAll':_0x20aae7[_0x16f3a9('0x2159')](_0x16f3a9('0x14de')),'labelSelected':_0x20aae7[_0x16f3a9('0x2159')]('MAIL.SELECTED_TEAMS'),'transferCallback':function _0x1eabfc(){var _0x4e6177=_0x16f3a9,_0x3baf8b=_0x32d445()[_0x4e6177('0x118')](_0x29a172['startingSelectedItems'],_0x29a172[_0x4e6177('0x2273')],'id');_0x29a172[_0x4e6177('0x16e7')]=_0x32d445()[_0x4e6177('0x14b4')](_0x3baf8b)?![]:!![];}},_0x29a172[_0x16f3a9('0x888')]=_0x52590b,_0x29a172[_0x16f3a9('0xc30')]=_0x34850d,_0x29a172[_0x16f3a9('0x2584')]=_0x589ce2;function _0x52590b(){var _0x1711b6=_0x16f3a9;return _0x524031['hasRole'](_0x1711b6('0xd14'))?_0x2f085d()[_0x1711b6('0x223b')](function(_0x22bec0){var _0x168f70=_0x1711b6;_0x8ceaac[_0x168f70('0x8c8')]({'title':_0x22bec0[_0x168f70('0x2833')]?'API:'+_0x22bec0['status']+'\x20-\x20'+_0x22bec0['statusText']:'SYSTEM:GET_TEAMS','msg':_0x22bec0[_0x168f70('0x2833')]?JSON[_0x168f70('0x3ad')](_0x22bec0['data']):_0x22bec0[_0x168f70('0x94f')]()});}):_0x2d4a4b()[_0x1711b6('0xe19')](function(_0x1cd2bd){return _0x29a172['section']=_0x1cd2bd,_0x2f085d();})[_0x1711b6('0x223b')](function(_0x52c43f){var _0x4508f5=_0x1711b6;_0x8ceaac[_0x4508f5('0x8c8')]({'title':_0x52c43f[_0x4508f5('0x2833')]?_0x4508f5('0x27f2')+_0x52c43f[_0x4508f5('0x2833')]+'\x20-\x20'+_0x52c43f[_0x4508f5('0x1fd7')]:'SYSTEM:GET_TEAMS','msg':_0x52c43f[_0x4508f5('0x2833')]?JSON['stringify'](_0x52c43f[_0x4508f5('0x11d0')]):_0x52c43f[_0x4508f5('0x94f')]()});});}function _0x2d4a4b(){return _0x502ac5(function(_0x13b7c7,_0x243e01){var _0x403080=a0_0x5325;_0x2df0b0[_0x403080('0xb59')]['get']({'userProfileId':_0x29a172[_0x403080('0x15a5')][_0x403080('0x1d04')],'name':_0x403080('0x1d54')})[_0x403080('0xe59')][_0x403080('0xe19')](function(_0x32b430){var _0x5c526c=_0x403080,_0x529dd9=_0x32b430&&_0x32b430[_0x5c526c('0x16a7')]?_0x32b430['rows'][0x0]:null;_0x13b7c7(_0x529dd9);})['catch'](function(_0xd9bbb0){_0x243e01(_0xd9bbb0);});});}function _0x2f085d(){return _0x502ac5(function(_0x35edfc,_0x1d4f4e){var _0x49d3fa=a0_0x5325;return _0x24f0ad()[_0x49d3fa('0xe19')](function(_0x3aa78d){var _0x420081=_0x49d3fa;return _0x29a172[_0x420081('0xe4b')]=_0x3aa78d[_0x420081('0x16a7')]?_0x3aa78d['rows']:[],_0x524031[_0x420081('0x179e')](_0x420081('0xd14'))?_0x3aa78d:_0x29a172[_0x420081('0x1e59')]?_0x29a172[_0x420081('0x1e59')][_0x420081('0x11fd')]?_0x3aa78d:_0xbce46c():null;})[_0x49d3fa('0xe19')](function(_0x3a7637){var _0x510fb7=_0x49d3fa,_0x4c7a06=_0x3a7637&&_0x3a7637[_0x510fb7('0x16a7')]?_0x3a7637[_0x510fb7('0x16a7')]:[];return _0x29a172[_0x510fb7('0x1884')]=_0x32d445()[_0x510fb7('0x65a')](_0x4c7a06,function(_0x53cd8c){var _0x17f10f=_0x510fb7;return _0x32d445()[_0x17f10f('0xf15')](_0x29a172[_0x17f10f('0xe4b')],{'id':_0x524031[_0x17f10f('0x179e')](_0x17f10f('0xd14'))||_0x29a172[_0x17f10f('0x1e59')][_0x17f10f('0x11fd')]?_0x53cd8c['id']:_0x53cd8c[_0x17f10f('0x1104')]});}),_0x29a172[_0x510fb7('0xe4b')]['forEach'](function(_0x5340a9){var _0x4c0a2c=_0x510fb7,_0x19a683=_0x32d445()[_0x4c0a2c('0xf15')](_0x29a172[_0x4c0a2c('0x1884')],{'id':_0x5340a9['id']});_0x524031['hasRole'](_0x4c0a2c('0xd14'))?_0x5340a9['isValid']=!![]:_0x5340a9[_0x4c0a2c('0x1768')]=typeof _0x19a683!==_0x4c0a2c('0x1143')?!![]:![];}),_0x554feb();})[_0x49d3fa('0xe19')](function(_0x3a84cd){var _0xf9237a=_0x49d3fa,_0x209e42=_0x3a84cd&&_0x3a84cd[_0xf9237a('0x16a7')]?_0x3a84cd[_0xf9237a('0x16a7')]:[];_0x29a172['selectedItems']=_0x32d445()[_0xf9237a('0x65a')](_0x209e42,function(_0x202158){var _0x5b040d=_0xf9237a;return _0x32d445()[_0x5b040d('0xf15')](_0x29a172[_0x5b040d('0xe4b')],{'id':_0x202158['id']});}),_0x29a172[_0xf9237a('0xf79')]=angular[_0xf9237a('0x89')](_0x29a172['selectedItems']),_0x29a172[_0xf9237a('0xc00')][_0xf9237a('0x2273')]=_0x29a172[_0xf9237a('0x2273')],_0x29a172[_0xf9237a('0xc00')]['items']=_0x32d445()[_0xf9237a('0x501')](_0x29a172['allowedItems'],_0x29a172[_0xf9237a('0xc00')][_0xf9237a('0x2273')],'id'),_0x35edfc();})[_0x49d3fa('0x223b')](function(_0x16c62a){_0x1d4f4e(_0x16c62a);});});}function _0xbce46c(){return _0x502ac5(function(_0x2263ff,_0x2c5b6a){var _0x161589=a0_0x5325;return _0x2df0b0[_0x161589('0xd49')][_0x161589('0x22d5')]({'sectionId':_0x29a172[_0x161589('0x1e59')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x4fe8cb){_0x2263ff(_0x4fe8cb);})[_0x161589('0x223b')](function(_0x4d3ed4){_0x2c5b6a(_0x4d3ed4);});});}function _0x554feb(){return _0x502ac5(function(_0x443f20,_0x6bfd33){var _0x44d12e=a0_0x5325;return _0x2df0b0[_0x44d12e('0x18d9')]['getTeams']({'id':_0x29a172['mailQueue']['id'],'fields':_0x44d12e('0x104'),'nolimit':!![]})[_0x44d12e('0xe59')]['then'](function(_0x8aaa49){_0x443f20(_0x8aaa49);})[_0x44d12e('0x223b')](function(_0x336388){_0x6bfd33(_0x336388);});});}function _0x24f0ad(){return _0x502ac5(function(_0x494ba2,_0x4f12aa){var _0x24d9b7=a0_0x5325;return _0x2df0b0[_0x24d9b7('0x25af')][_0x24d9b7('0x22d5')]({'fields':_0x24d9b7('0x104'),'nolimit':!![]})[_0x24d9b7('0xe59')][_0x24d9b7('0xe19')](function(_0x1946f7){_0x494ba2(_0x1946f7);})[_0x24d9b7('0x223b')](function(_0x422423){_0x4f12aa(_0x422423);});});}function _0x4603c0(_0x3bc7ad){return _0x502ac5(function(_0x25c13a,_0x1e28b){var _0x239aef=a0_0x5325;_0x32d445()[_0x239aef('0x14b4')](_0x3bc7ad)?_0x25c13a():_0x2df0b0[_0x239aef('0x18d9')][_0x239aef('0x37f')]({'id':_0x29a172[_0x239aef('0x18d9')]['id'],'ids':_0x32d445()[_0x239aef('0x65a')](_0x3bc7ad,'id')})['$promise']['then'](function(){_0x25c13a();})[_0x239aef('0x223b')](function(_0x80aa6b){_0x1e28b(_0x80aa6b);});});}function _0x4be854(_0x4d360b){return _0x502ac5(function(_0x394e17,_0x3d1348){var _0x268f51=a0_0x5325;_0x32d445()[_0x268f51('0x14b4')](_0x4d360b)?_0x394e17():_0x2df0b0['mailQueue'][_0x268f51('0x151a')]({'id':_0x29a172[_0x268f51('0x18d9')]['id'],'ids':_0x32d445()[_0x268f51('0x65a')](_0x4d360b,'id')})[_0x268f51('0xe59')][_0x268f51('0xe19')](function(){_0x394e17();})[_0x268f51('0x223b')](function(_0x4a9536){_0x3d1348(_0x4a9536);});});}function _0x34850d(){var _0x105414=_0x16f3a9,_0x361047=_0x32d445()['differenceBy'](_0x29a172[_0x105414('0xf79')],_0x29a172[_0x105414('0x2273')],'id'),_0x2787e3=_0x32d445()['differenceBy'](_0x29a172['selectedItems'],_0x29a172['startingSelectedItems'],'id');return _0x4be854(_0x361047)[_0x105414('0xe19')](function(){return _0x4603c0(_0x2787e3);})[_0x105414('0xe19')](function(){var _0x24f791=_0x105414;_0x29a172[_0x24f791('0x16e7')]=![],_0x29a172[_0x24f791('0x286c')]=angular[_0x24f791('0x89')](_0x29a172[_0x24f791('0x1884')]),_0x29a172['startingSelectedItems']=angular[_0x24f791('0x89')](_0x29a172[_0x24f791('0x2273')]),_0x8ceaac[_0x24f791('0x425')]({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x105414('0x223b')](function(_0xb5c82){var _0x454b17=_0x105414;_0x8ceaac[_0x454b17('0x8c8')]({'title':_0xb5c82[_0x454b17('0x2833')]?_0x454b17('0x27f2')+_0xb5c82[_0x454b17('0x2833')]+_0x454b17('0x1b7c')+_0xb5c82[_0x454b17('0x1fd7')]:_0x454b17('0x2168'),'msg':_0xb5c82[_0x454b17('0x2833')]?JSON[_0x454b17('0x3ad')](_0xb5c82[_0x454b17('0x11d0')]):_0xb5c82[_0x454b17('0x94f')]()});});}function _0x589ce2(){var _0x54581a=_0x16f3a9;_0x46dd28[_0x54581a('0x11ed')]();}}const _0x380cba=_0xab7b6e,_0x303a8d=_0x59426a['p']+'src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html';_0x517ce7[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2493'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x18d9'),'userProfileSection'];function _0x517ce7(_0x5555b5,_0x1451ac,_0x1e875b,_0x2c026f,_0x5e4b1f,_0x1ea20e,_0x420db2,_0x71bbc1,_0x124c52,_0x48e751,_0x1b0c0c,_0x4b990a){var _0x53978c=_0xb635d2,_0x5df37e=this;_0x5df37e['currentUser']=_0x48e751['getCurrentUser'](),_0x5df37e[_0x53978c('0x5c1')]=_0x1ea20e,_0x5df37e[_0x53978c('0x22f1')]=_0x420db2,_0x5df37e['passwordPattern']=_0x5df37e[_0x53978c('0x22f1')][_0x53978c('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5df37e['location']=_0x1451ac[_0x53978c('0xec0')]()+'://'+_0x1451ac[_0x53978c('0x3b7')](),_0x5df37e[_0x53978c('0x18d9')]=_0x1b0c0c||_0x5555b5['params'][_0x53978c('0x18d9')]||{},_0x5df37e[_0x53978c('0xb59')]=_0x4b990a&&_0x4b990a[_0x53978c('0x148b')]==0x1?_0x4b990a[_0x53978c('0x16a7')][0x0]:null,_0x5df37e[_0x53978c('0xb3d')]=_0x48e751[_0x53978c('0xd31')](_0x5df37e[_0x53978c('0xb59')]?_0x5df37e[_0x53978c('0xb59')][_0x53978c('0xb3d')]:null),_0x5df37e['hasModulePermissions']={},_0x5df37e[_0x53978c('0xc7b')]=_0x5555b5[_0x53978c('0x2ef')][_0x53978c('0x435')]||0x0,_0x5df37e[_0x53978c('0x23f1')]=_0x2ed404,_0x5df37e['agentadddialog']=_0x157326,_0x5df37e[_0x53978c('0xbdc')]=_0x124c52[_0x53978c('0x1e67')],_0x5df37e[_0x53978c('0x1432')]=_0x3db08a,_0x5df37e['saveMailQueue']=_0x270c80;function _0x2ed404(_0x4a3f9b,_0x3d1157){var _0x219cc4=_0x53978c;_0x1e875b[_0x219cc4('0x26b2')]({'controller':_0x219cc4('0x182f'),'controllerAs':'vm','templateUrl':_0x303a8d,'parent':angular['element'](_0x2c026f['body']),'targetEvent':_0x3d1157,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x4a3f9b,'mailQueues':_0x5df37e[_0x219cc4('0x12af')]?_0x5df37e[_0x219cc4('0x12af')][_0x219cc4('0x16a7')]:[],'crudPermissions':_0x5df37e['crudPermissions']}});}function _0x157326(_0x32df88,_0x109fc5){var _0x10353c=_0x53978c;_0x1e875b['show']({'controller':_0x10353c('0x14f'),'controllerAs':'vm','templateUrl':_0x5f1771,'parent':angular['element'](_0x2c026f[_0x10353c('0x19b2')]),'targetEvent':_0x109fc5,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x32df88,'mailQueues':_0x5df37e[_0x10353c('0x12af')]?_0x5df37e['mailQueues'][_0x10353c('0x16a7')]:[],'crudPermissions':_0x5df37e[_0x10353c('0xb3d')],'realtime':![]}});}function _0x3db08a(){var _0x42be88=_0x53978c;_0x5555b5['go']('app.mail.mailQueues',{},{'reload':_0x42be88('0x1202')});}function _0x270c80(){var _0x5348d0=_0x53978c;_0x71bbc1[_0x5348d0('0x18d9')][_0x5348d0('0xa70')]({'id':_0x5df37e['mailQueue']['id']},_0x5df37e[_0x5348d0('0x18d9')])[_0x5348d0('0xe59')][_0x5348d0('0xe19')](function(){var _0xfd079e=_0x5348d0;_0x124c52[_0xfd079e('0x425')]({'title':_0xfd079e('0x485'),'msg':_0x5df37e['mailQueue'][_0xfd079e('0x2623')]?_0x5df37e[_0xfd079e('0x18d9')][_0xfd079e('0x2623')]+_0xfd079e('0x283b'):''});})['catch'](function(_0x1b0b2b){var _0x2c3ed4=_0x5348d0;_0x124c52[_0x2c3ed4('0x8c8')]({'title':_0x1b0b2b[_0x2c3ed4('0x2833')]?_0x2c3ed4('0x27f2')+_0x1b0b2b[_0x2c3ed4('0x2833')]+_0x2c3ed4('0x1b7c')+_0x1b0b2b[_0x2c3ed4('0x1fd7')]:_0x2c3ed4('0x1048'),'msg':_0x1b0b2b[_0x2c3ed4('0x11d0')]?JSON['stringify'](_0x1b0b2b[_0x2c3ed4('0x11d0')]):_0x1b0b2b[_0x2c3ed4('0x94f')]()});});}}const _0x36085d=_0x517ce7;_0x38bcec[_0xb635d2('0xb0c')]=['$scope','$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0x12af'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'api','msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x38bcec(_0x50a232,_0x1980ed,_0x4681a0,_0x218d72,_0x1f901a,_0x4c96d2,_0x13d4b5,_0x4f1a9e,_0x11cb3c,_0x369d21,_0x4d4319,_0x1da23d,_0x100e5f,_0x17b990,_0x36b286,_0x33cca3,_0x53f3bc){var _0x2f707f=_0xb635d2,_0x3abc44=this;_0x3abc44[_0x2f707f('0x5c1')]=_0x33cca3,_0x3abc44[_0x2f707f('0x22f1')]=_0x53f3bc,_0x3abc44['currentUser']=_0x36b286[_0x2f707f('0x1ef8')](),_0x3abc44[_0x2f707f('0x12af')]=_0x11cb3c||{'count':0x0,'rows':[]},_0x3abc44['userProfile']=_0x369d21,_0x3abc44[_0x2f707f('0xb59')]=_0x4d4319&&_0x4d4319['count']==0x1?_0x4d4319[_0x2f707f('0x16a7')][0x0]:null,_0x3abc44[_0x2f707f('0xb3d')]=_0x36b286[_0x2f707f('0xd31')](_0x3abc44[_0x2f707f('0xb59')]?_0x3abc44[_0x2f707f('0xb59')][_0x2f707f('0xb3d')]:null),_0x3abc44['table']=_0x2f707f('0x12af'),_0x3abc44[_0x2f707f('0x14d6')]='',_0x3abc44['listOrderAsc']=null,_0x3abc44[_0x2f707f('0x44d')]=[],_0x3abc44[_0x2f707f('0xa16')]={'fields':_0x2f707f('0x1bd'),'sort':_0x2f707f('0x7e8'),'channel':'mail','limit':0xa,'page':0x1},_0x3abc44['arraystrategy']=_0x32d445()[_0x2f707f('0x226f')]([{'option':_0x2f707f('0x26e4'),'value':_0x2f707f('0x2460')},{'option':_0x2f707f('0x442'),'value':_0x2f707f('0x236a')}],function(_0x494ae7){var _0x7e19ef=_0x2f707f;return _0x32d445()[_0x7e19ef('0x1b42')](_0x494ae7['value'],new RegExp('\x27','g'),'');}),_0x3abc44[_0x2f707f('0x16a0')]=_0x1f1f7b,_0x3abc44[_0x2f707f('0x23f1')]=_0x240489,_0x3abc44[_0x2f707f('0x1407')]=_0x377ad8,_0x3abc44[_0x2f707f('0x1d9e')]=_0x1667cf,_0x3abc44[_0x2f707f('0x20e3')]=_0x8f67e4,_0x3abc44[_0x2f707f('0x425')]=_0x5c17bf,_0x3abc44[_0x2f707f('0x634')]=_0x1a3752,_0x3abc44[_0x2f707f('0xf9e')]=_0x3dce49,_0x3abc44[_0x2f707f('0x1812')]=_0x5d03ca,_0x3abc44[_0x2f707f('0x194d')]=_0x49f968,_0x3abc44['deleteSelectedMailQueues']=_0x14a92b,_0x3abc44[_0x2f707f('0x20d5')]=_0x125e5a,_0x3abc44[_0x2f707f('0x1a8c')]=_0x163941;function _0x1f1f7b(_0x2af963){var _0x26c06c=_0x2f707f;_0x4681a0['go'](_0x26c06c('0x2413'),{'id':_0x2af963['id'],'mailQueue':_0x2af963,'crudPermissions':_0x3abc44[_0x26c06c('0xb3d')]});}function _0x240489(_0x251ce5,_0x5ef532){var _0x33c3ee=_0x2f707f;_0x1f901a[_0x33c3ee('0x26b2')]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x303a8d,'parent':angular[_0x33c3ee('0x24a1')](_0x4c96d2['body']),'targetEvent':_0x5ef532,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x251ce5,'mailQueues':_0x3abc44[_0x33c3ee('0x12af')]?_0x3abc44[_0x33c3ee('0x12af')]['rows']:[],'crudPermissions':_0x3abc44[_0x33c3ee('0xb3d')]}});}function _0x377ad8(_0x1b42c6,_0xd72c47){var _0x1dec6c=_0x2f707f;_0x1f901a['show']({'controller':'MailQueueagentaddController','controllerAs':'vm','templateUrl':_0x5f1771,'parent':angular['element'](_0x4c96d2[_0x1dec6c('0x19b2')]),'targetEvent':_0xd72c47,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x1b42c6,'mailQueues':_0x3abc44[_0x1dec6c('0x12af')]?_0x3abc44['mailQueues'][_0x1dec6c('0x16a7')]:[],'crudPermissions':_0x3abc44[_0x1dec6c('0xb3d')],'realtime':![]}});}function _0x1667cf(_0x6b6e01,_0x187ee7){var _0x419d5c=_0x2f707f,_0x269f31=_0x1f901a[_0x419d5c('0xa5')]()[_0x419d5c('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()['startCase']('mailQueue')+'?')[_0x419d5c('0x221c')](''+(_0x6b6e01['name']||_0x419d5c('0x18d9'))+_0x419d5c('0x27bb')+_0x419d5c('0x21bd'))[_0x419d5c('0x4d1')]('delete\x20mailQueue')[_0x419d5c('0x1345')](_0x187ee7)['ok']('OK')[_0x419d5c('0x2c1')](_0x419d5c('0x17'));_0x1f901a['show'](_0x269f31)[_0x419d5c('0xe19')](function(){_0x5d03ca(_0x6b6e01);},function(){var _0x498408=_0x419d5c;console['log'](_0x498408('0x17'));});}function _0x8f67e4(){var _0x1bff09=_0x2f707f;if(_0x36b286[_0x1bff09('0x179e')]('admin'))_0x4681a0['go'](_0x1bff09('0x2464'),{});else return _0x1da23d['userProfileSection'][_0x1bff09('0x22d5')]({'userProfileId':_0x36b286[_0x1bff09('0x1ef8')]()['userProfileId'],'sectionId':0x262})[_0x1bff09('0xe59')][_0x1bff09('0xe19')](function(_0x3a1b0a){var _0x18fdb0=_0x1bff09,_0x4b3616=_0x3a1b0a&&_0x3a1b0a[_0x18fdb0('0x16a7')]?_0x3a1b0a[_0x18fdb0('0x16a7')][0x0]:null;_0x4b3616&&_0x4b3616['enabled']?_0x4681a0['go'](_0x18fdb0('0x2464'),{}):_0x17b990[_0x18fdb0('0x1e67')]({'title':_0x4f1a9e['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x4f1a9e[_0x18fdb0('0x2159')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x1bff09('0x223b')](function(_0x148f0a){var _0x20e644=_0x1bff09;_0x17b990['error']({'title':_0x148f0a['status']?_0x20e644('0x27f2')+_0x148f0a['status']+_0x20e644('0x1b7c')+_0x148f0a['statusText']:_0x20e644('0x343'),'msg':_0x148f0a['status']?JSON['stringify'](_0x148f0a['data']):_0x148f0a['toString']()});});}var _0x120d9a=!![],_0x4d1938=0x1;_0x50a232[_0x2f707f('0x107')]('vm.query.filter',function(_0x17ed6a,_0x174524){var _0x7cc766=_0x2f707f;_0x120d9a?_0x13d4b5(function(){_0x120d9a=![];}):(!_0x174524&&(_0x4d1938=_0x3abc44[_0x7cc766('0xa16')][_0x7cc766('0xc08')]),_0x17ed6a!==_0x174524&&(_0x3abc44[_0x7cc766('0xa16')][_0x7cc766('0xc08')]=0x1),!_0x17ed6a&&(_0x3abc44[_0x7cc766('0xa16')][_0x7cc766('0xc08')]=_0x4d1938),_0x3abc44['getMailQueues']());});function _0x5c17bf(_0x361d41){var _0x10fa2f=_0x2f707f;_0x3abc44[_0x10fa2f('0x12af')]=_0x361d41||{'count':0x0,'rows':[]};}function _0x1a3752(){var _0x516ee5=_0x2f707f;_0x3abc44['query'][_0x516ee5('0xab0')]=(_0x3abc44[_0x516ee5('0xa16')][_0x516ee5('0xc08')]-0x1)*_0x3abc44[_0x516ee5('0xa16')]['limit'],_0x36b286[_0x516ee5('0x179e')](_0x516ee5('0xd14'))?_0x3abc44['promise']=_0x1da23d[_0x516ee5('0x18d9')][_0x516ee5('0x22d5')](_0x3abc44[_0x516ee5('0xa16')],_0x5c17bf)[_0x516ee5('0xe59')]:(_0x3abc44[_0x516ee5('0xa16')]['id']=_0x3abc44[_0x516ee5('0x154f')]['id'],_0x3abc44['query'][_0x516ee5('0x1e59')]=_0x516ee5('0x12e8'),_0x3abc44[_0x516ee5('0x9c8')]=_0x1da23d[_0x516ee5('0x154f')][_0x516ee5('0x14e6')](_0x3abc44[_0x516ee5('0xa16')],_0x5c17bf)[_0x516ee5('0xe59')]);}function _0x3dce49(_0x3d6ffd,_0x3cb120){var _0x32f42e=_0x2f707f;_0x1f901a[_0x32f42e('0x26b2')]({'controller':_0x32f42e('0x26f8'),'controllerAs':'vm','templateUrl':_0x5a918d,'parent':angular[_0x32f42e('0x24a1')](_0x4c96d2[_0x32f42e('0x19b2')]),'targetEvent':_0x3d6ffd,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x3cb120,'mailQueues':_0x3abc44[_0x32f42e('0x12af')][_0x32f42e('0x16a7')],'license':_0x3abc44['license'],'setting':_0x3abc44['setting'],'crudPermissions':_0x3abc44['crudPermissions']}});}function _0x5d03ca(_0x233a31){var _0x3d524d=_0x2f707f;_0x1da23d[_0x3d524d('0x18d9')]['delete']({'id':_0x233a31['id']})[_0x3d524d('0xe59')]['then'](function(){var _0x22551d=_0x3d524d;_0x32d445()[_0x22551d('0xa8b')](_0x3abc44[_0x22551d('0x12af')][_0x22551d('0x16a7')],{'id':_0x233a31['id']}),_0x3abc44['mailQueues'][_0x22551d('0x148b')]-=0x1,!_0x3abc44[_0x22551d('0x12af')][_0x22551d('0x16a7')]['length']&&_0x3abc44['getMailQueues'](),_0x17b990[_0x22551d('0x425')]({'title':_0x32d445()['startCase'](_0x22551d('0xc95'))+_0x22551d('0x1219'),'msg':_0x233a31[_0x22551d('0x2623')]?_0x233a31[_0x22551d('0x2623')]+_0x22551d('0x2182'):''});})[_0x3d524d('0x223b')](function(_0x18601f){var _0x2a43b4=_0x3d524d;if(_0x18601f[_0x2a43b4('0x11d0')]&&_0x18601f[_0x2a43b4('0x11d0')][_0x2a43b4('0xcd2')]&&_0x18601f[_0x2a43b4('0x11d0')][_0x2a43b4('0xcd2')][_0x2a43b4('0x25ae')]){_0x3abc44[_0x2a43b4('0xcd2')]=_0x18601f[_0x2a43b4('0x11d0')][_0x2a43b4('0xcd2')]||[{'message':_0x18601f[_0x2a43b4('0x94f')](),'type':_0x2a43b4('0xd9d')}];for(var _0x284cdd=0x0;_0x284cdd<_0x18601f['data']['errors']['length'];_0x284cdd++){_0x17b990[_0x2a43b4('0x8c8')]({'title':_0x18601f[_0x2a43b4('0x11d0')][_0x2a43b4('0xcd2')][_0x284cdd][_0x2a43b4('0x62e')],'msg':_0x18601f[_0x2a43b4('0x11d0')][_0x2a43b4('0xcd2')][_0x284cdd][_0x2a43b4('0x27e8')]});}}else _0x17b990['error']({'title':_0x18601f[_0x2a43b4('0x2833')]?'API:'+_0x18601f['status']+_0x2a43b4('0x1b7c')+_0x18601f[_0x2a43b4('0x1fd7')]:_0x2a43b4('0xd9d'),'msg':_0x18601f[_0x2a43b4('0x11d0')]?JSON[_0x2a43b4('0x3ad')](_0x18601f[_0x2a43b4('0x11d0')][_0x2a43b4('0x27e8')]):_0x18601f[_0x2a43b4('0x27e8')]||_0x18601f[_0x2a43b4('0x94f')]()});});}function _0x49f968(){var _0x429e9a=_0x2f707f,_0x15bbd4=angular[_0x429e9a('0x89')](_0x3abc44['selectedMailQueues']);return _0x3abc44[_0x429e9a('0x44d')]=[],_0x15bbd4;}function _0x14a92b(_0x497b0b){var _0x8c8efc=_0x2f707f,_0x5dd4a2=_0x1f901a[_0x8c8efc('0xa5')]()[_0x8c8efc('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailQueues?')[_0x8c8efc('0x221c')](_0x8c8efc('0xab2')+_0x3abc44[_0x8c8efc('0x44d')][_0x8c8efc('0x25ae')]+'\x20selected'+_0x8c8efc('0x21bd'))[_0x8c8efc('0x4d1')](_0x8c8efc('0xac8'))['targetEvent'](_0x497b0b)['ok']('OK')[_0x8c8efc('0x2c1')](_0x8c8efc('0x17'));_0x1f901a[_0x8c8efc('0x26b2')](_0x5dd4a2)[_0x8c8efc('0xe19')](function(){var _0x4d7d61=_0x8c8efc;_0x3abc44['selectedMailQueues'][_0x4d7d61('0x1d7e')](function(_0x52deb7){_0x5d03ca(_0x52deb7);}),_0x3abc44[_0x4d7d61('0x44d')]=[];});}function _0x125e5a(){var _0x427b88=_0x2f707f;_0x3abc44[_0x427b88('0x44d')]=[];}function _0x163941(){var _0x21e66d=_0x2f707f;_0x3abc44[_0x21e66d('0x44d')]=_0x3abc44[_0x21e66d('0x12af')][_0x21e66d('0x16a7')];}}const _0x244716=_0x38bcec;_0x3fc5ed[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate','toasty',_0xb635d2('0x1455'),_0xb635d2('0x158e'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x3fc5ed(_0x43a0eb,_0x50b4d4,_0x301de0,_0x40a0ef,_0x54fb7d,_0x1b482e,_0x1829d5,_0x1f541c,_0x3342a8,_0x19fc0d,_0x33b64c,_0x2869fd,_0x35d7ec,_0x244654){var _0x4063c8=_0xb635d2,_0x48753e=this;_0x48753e['currentUser']=_0x33b64c[_0x4063c8('0x1ef8')](),_0x48753e[_0x4063c8('0xcd2')]=[],_0x48753e[_0x4063c8('0x22f1')]=_0x35d7ec,_0x48753e[_0x4063c8('0x5c1')]=_0x2869fd,_0x48753e[_0x4063c8('0xb3d')]=_0x244654,_0x48753e[_0x4063c8('0x1ccb')]={},_0x48753e[_0x4063c8('0x25ac')]=_0x48753e[_0x4063c8('0x22f1')]&&_0x48753e[_0x4063c8('0x22f1')][_0x4063c8('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x48753e[_0x4063c8('0x13e4')]=_0x4063c8('0x201e'),_0x48753e[_0x4063c8('0x158e')]=angular[_0x4063c8('0x89')](_0x3342a8),_0x48753e[_0x4063c8('0x1455')]=_0x1f541c,_0x48753e['newMailSubstatus']=![];!_0x48753e[_0x4063c8('0x158e')]&&(_0x48753e[_0x4063c8('0x158e')]={},_0x48753e['title']=_0x4063c8('0x10bd'),_0x48753e[_0x4063c8('0x1656')]=!![]);_0x48753e[_0x4063c8('0x1879')]=_0x566554,_0x48753e['saveMailSubstatus']=_0x5c22f0,_0x48753e['deleteMailSubstatus']=_0x1a6478,_0x48753e['getDateFromString']=_0x5e36d5,_0x48753e['closeDialog']=_0x156e39;function _0x566554(){var _0x3bab0e=_0x4063c8;_0x48753e[_0x3bab0e('0xcd2')]=[],_0x19fc0d[_0x3bab0e('0x158e')][_0x3bab0e('0xe5e')](_0x48753e[_0x3bab0e('0x158e')])[_0x3bab0e('0xe59')]['then'](function(_0x30ca4d){var _0x4b9368=_0x3bab0e;_0x48753e[_0x4b9368('0x1455')]['unshift'](_0x30ca4d[_0x4b9368('0x250e')]()),_0x1829d5['success']({'title':_0x4b9368('0x73a'),'msg':_0x48753e[_0x4b9368('0x158e')]['name']?_0x48753e[_0x4b9368('0x158e')][_0x4b9368('0x2623')]+'\x20has\x20been\x20created!':''}),_0x156e39(_0x30ca4d);})['catch'](function(_0x58d963){var _0x3940cc=_0x3bab0e;if(_0x58d963[_0x3940cc('0x11d0')]&&_0x58d963[_0x3940cc('0x11d0')][_0x3940cc('0xcd2')]&&_0x58d963['data'][_0x3940cc('0xcd2')][_0x3940cc('0x25ae')]){_0x48753e['errors']=_0x58d963[_0x3940cc('0x11d0')][_0x3940cc('0xcd2')]||[{'message':_0x58d963[_0x3940cc('0x94f')](),'type':_0x3940cc('0xa6f')}];for(var _0x1160fb=0x0;_0x1160fb<_0x58d963['data']['errors'][_0x3940cc('0x25ae')];_0x1160fb+=0x1){_0x1829d5[_0x3940cc('0x8c8')]({'title':_0x58d963['data']['errors'][_0x1160fb]['type'],'msg':_0x58d963[_0x3940cc('0x11d0')]['errors'][_0x1160fb][_0x3940cc('0x27e8')]});}}else _0x1829d5[_0x3940cc('0x8c8')]({'title':_0x58d963[_0x3940cc('0x2833')]?_0x3940cc('0x27f2')+_0x58d963[_0x3940cc('0x2833')]+_0x3940cc('0x1b7c')+_0x58d963['statusText']:_0x3940cc('0xa6f'),'msg':_0x58d963[_0x3940cc('0x11d0')]?JSON[_0x3940cc('0x3ad')](_0x58d963['data'][_0x3940cc('0x27e8')]):_0x58d963['toString']()});});}function _0x5c22f0(){var _0x22cb7d=_0x4063c8;_0x48753e[_0x22cb7d('0xcd2')]=[],_0x19fc0d[_0x22cb7d('0x158e')][_0x22cb7d('0xa70')]({'id':_0x48753e[_0x22cb7d('0x158e')]['id']},_0x48753e[_0x22cb7d('0x158e')])[_0x22cb7d('0xe59')][_0x22cb7d('0xe19')](function(_0x3d12dc){var _0x39d11f=_0x22cb7d,_0xb65926=_0x32d445()[_0x39d11f('0xf15')](_0x48753e[_0x39d11f('0x1455')],{'id':_0x3d12dc['id']});_0xb65926&&_0x32d445()[_0x39d11f('0x1d8')](_0xb65926,_0x32d445()[_0x39d11f('0xed5')](_0x3d12dc['toJSON'](),_0x32d445()[_0x39d11f('0x1234')](_0xb65926))),_0x1829d5['success']({'title':'MailSubstatus\x20properly\x20saved!','msg':_0x48753e[_0x39d11f('0x158e')][_0x39d11f('0x2623')]?_0x48753e['mailSubstatus'][_0x39d11f('0x2623')]+_0x39d11f('0x1c19'):''}),_0x156e39(_0x3d12dc);})[_0x22cb7d('0x223b')](function(_0x236d31){var _0x4ccf3b=_0x22cb7d;if(_0x236d31['data']&&_0x236d31[_0x4ccf3b('0x11d0')]['errors']&&_0x236d31['data'][_0x4ccf3b('0xcd2')][_0x4ccf3b('0x25ae')]){_0x48753e[_0x4ccf3b('0xcd2')]=_0x236d31[_0x4ccf3b('0x11d0')]['errors']||[{'message':_0x236d31[_0x4ccf3b('0x94f')](),'type':'api.mailSubstatus.update'}];for(var _0x2600a8=0x0;_0x2600a8<_0x236d31['data'][_0x4ccf3b('0xcd2')][_0x4ccf3b('0x25ae')];_0x2600a8++){_0x1829d5[_0x4ccf3b('0x8c8')]({'title':_0x236d31[_0x4ccf3b('0x11d0')]['errors'][_0x2600a8][_0x4ccf3b('0x62e')],'msg':_0x236d31['data'][_0x4ccf3b('0xcd2')][_0x2600a8][_0x4ccf3b('0x27e8')]});}}else _0x1829d5[_0x4ccf3b('0x8c8')]({'title':_0x236d31[_0x4ccf3b('0x2833')]?'API:'+_0x236d31['status']+_0x4ccf3b('0x1b7c')+_0x236d31[_0x4ccf3b('0x1fd7')]:_0x4ccf3b('0x1730'),'msg':_0x236d31['data']?JSON['stringify'](_0x236d31[_0x4ccf3b('0x11d0')]['message']):_0x236d31[_0x4ccf3b('0x94f')]()});});}function _0x1a6478(_0x6a58a0){var _0x11e19e=_0x4063c8;_0x48753e['errors']=[];var _0x55c976=_0x40a0ef[_0x11e19e('0xa5')]()['title'](_0x11e19e('0x24d0'))[_0x11e19e('0xd0')](_0x11e19e('0x38'))[_0x11e19e('0x4d1')](_0x11e19e('0x1543'))['ok'](_0x11e19e('0x2198'))[_0x11e19e('0x2c1')](_0x11e19e('0x8a3'))['targetEvent'](_0x6a58a0);_0x40a0ef[_0x11e19e('0x26b2')](_0x55c976)['then'](function(){var _0x539a0=_0x11e19e;_0x19fc0d[_0x539a0('0x158e')][_0x539a0('0x229e')]({'id':_0x48753e['mailSubstatus']['id']})[_0x539a0('0xe59')][_0x539a0('0xe19')](function(){var _0x58f3c3=_0x539a0;_0x32d445()[_0x58f3c3('0xa8b')](_0x48753e[_0x58f3c3('0x1455')],{'id':_0x48753e[_0x58f3c3('0x158e')]['id']}),_0x1829d5[_0x58f3c3('0x425')]({'title':_0x58f3c3('0x863'),'msg':(_0x48753e[_0x58f3c3('0x158e')]['name']||_0x58f3c3('0x158e'))+'\x20has\x20been\x20deleted!'}),_0x156e39(_0x48753e[_0x58f3c3('0x158e')]);})['catch'](function(_0x5c57fe){var _0x550c9c=_0x539a0;if(_0x5c57fe[_0x550c9c('0x11d0')]&&_0x5c57fe[_0x550c9c('0x11d0')][_0x550c9c('0xcd2')]&&_0x5c57fe[_0x550c9c('0x11d0')][_0x550c9c('0xcd2')]['length']){_0x48753e['errors']=_0x5c57fe[_0x550c9c('0x11d0')][_0x550c9c('0xcd2')]||[{'message':_0x5c57fe['toString'](),'type':'api.mailSubstatus.delete'}];for(var _0x27183f=0x0;_0x27183f<_0x5c57fe[_0x550c9c('0x11d0')]['errors'][_0x550c9c('0x25ae')];_0x27183f++){_0x1829d5['error']({'title':_0x5c57fe[_0x550c9c('0x11d0')][_0x550c9c('0xcd2')][_0x27183f]['type'],'msg':_0x5c57fe[_0x550c9c('0x11d0')][_0x550c9c('0xcd2')][_0x27183f][_0x550c9c('0x27e8')]});}}else _0x1829d5['error']({'title':_0x5c57fe[_0x550c9c('0x2833')]?_0x550c9c('0x27f2')+_0x5c57fe[_0x550c9c('0x2833')]+_0x550c9c('0x1b7c')+_0x5c57fe[_0x550c9c('0x1fd7')]:_0x550c9c('0x245d'),'msg':_0x5c57fe[_0x550c9c('0x11d0')]?JSON[_0x550c9c('0x3ad')](_0x5c57fe[_0x550c9c('0x11d0')][_0x550c9c('0x27e8')]):_0x5c57fe[_0x550c9c('0x27e8')]||_0x5c57fe[_0x550c9c('0x94f')]()});});},function(){});}function _0x5e36d5(_0x5919b5){return _0x5919b5===null?undefined:new Date(_0x5919b5);}function _0x156e39(_0x432498){_0x40a0ef['hide'](_0x432498);}}const _0x37cc85=_0x3fc5ed,_0x497577=_0x59426a['p']+_0xb635d2('0x1b5');_0x1c49ff[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0x1455'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x1c49ff(_0x54acc7,_0x54beb9,_0x32937b,_0x3aa52d,_0xcf6683,_0x237987,_0x23d422,_0x8b25b3,_0x27bdec,_0x518648,_0x5cee62,_0x15eb73,_0x5ec536,_0x52064b,_0x186d8b,_0x53f8fa,_0x45edbf){var _0x530fe7=_0xb635d2,_0x55a440=this;_0x55a440[_0x530fe7('0x5c1')]=_0x53f8fa,_0x55a440['setting']=_0x45edbf,_0x55a440[_0x530fe7('0x15a5')]=_0x186d8b[_0x530fe7('0x1ef8')](),_0x55a440[_0x530fe7('0x1455')]=_0x27bdec||{'count':0x0,'rows':[]},_0x55a440['userProfile']=_0x518648,_0x55a440['userProfileSection']=_0x5cee62&&_0x5cee62[_0x530fe7('0x148b')]==0x1?_0x5cee62['rows'][0x0]:null,_0x55a440[_0x530fe7('0xb3d')]=_0x186d8b['parseCrudPermissions'](_0x55a440[_0x530fe7('0xb59')]?_0x55a440[_0x530fe7('0xb59')]['crudPermissions']:null),_0x55a440[_0x530fe7('0x19b6')]=_0x530fe7('0x1455'),_0x55a440[_0x530fe7('0x14d6')]='',_0x55a440[_0x530fe7('0x190c')]=null,_0x55a440[_0x530fe7('0x1ae9')]=[],_0x55a440['query']={'fields':_0x530fe7('0x1666'),'sort':_0x530fe7('0x7e8'),'limit':0xa,'page':0x1},_0x55a440[_0x530fe7('0x1752')]=_0x41482d,_0x55a440[_0x530fe7('0x1d9e')]=_0x254fad,_0x55a440[_0x530fe7('0x425')]=_0x570090,_0x55a440[_0x530fe7('0x6fd')]=_0x485124,_0x55a440[_0x530fe7('0x573')]=_0x268ba5,_0x55a440[_0x530fe7('0x1746')]=_0x16ad7c,_0x55a440['exportSelectedMailSubstatuses']=_0x1be739,_0x55a440['deleteSelectedMailSubstatuses']=_0x25ce65,_0x55a440['deselectMailSubstatuses']=_0x54ae5c,_0x55a440['selectAllMailSubstatuses']=_0x30e842;function _0x41482d(_0xc5d52e,_0x2cf547){var _0x3039ff=_0x530fe7;_0xcf6683[_0x3039ff('0x26b2')]({'controller':_0x3039ff('0x118d'),'controllerAs':'vm','templateUrl':_0x497577,'parent':angular[_0x3039ff('0x24a1')](_0x237987['body']),'targetEvent':_0x2cf547,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0xc5d52e,'mailSubtatuses':_0x55a440[_0x3039ff('0x1455')][_0x3039ff('0x16a7')],'license':_0x55a440[_0x3039ff('0x5c1')],'setting':null,'crudPermissions':_0x55a440[_0x3039ff('0xb3d')]}});}function _0x254fad(_0x10d1af,_0x1c5d44){var _0x535756=_0x530fe7,_0x2cec37=_0xcf6683[_0x535756('0xa5')]()[_0x535756('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()[_0x535756('0x1df2')](_0x535756('0x158e'))+'?')['htmlContent'](_0x535756('0xab2')+(_0x10d1af[_0x535756('0x2623')]||'mailSubstatus')+_0x535756('0x27bb')+_0x535756('0x21bd'))[_0x535756('0x4d1')](_0x535756('0x144d'))[_0x535756('0x1345')](_0x1c5d44)['ok']('OK')[_0x535756('0x2c1')]('CANCEL');_0xcf6683[_0x535756('0x26b2')](_0x2cec37)[_0x535756('0xe19')](function(){_0x16ad7c(_0x10d1af);},function(){var _0x3879be=_0x535756;console[_0x3879be('0x1fe9')](_0x3879be('0x17'));});}var _0x21a505=!![],_0x199333=0x1;_0x54acc7['$watch']('vm.query.filter',function(_0x3c239b,_0x3b1836){var _0x524f77=_0x530fe7;_0x21a505?_0x23d422(function(){_0x21a505=![];}):(!_0x3b1836&&(_0x199333=_0x55a440['query']['page']),_0x3c239b!==_0x3b1836&&(_0x55a440[_0x524f77('0xa16')][_0x524f77('0xc08')]=0x1),!_0x3c239b&&(_0x55a440[_0x524f77('0xa16')][_0x524f77('0xc08')]=_0x199333),_0x55a440['getMailSubstatuses']());});function _0x570090(_0x333f73){var _0x29e4a2=_0x530fe7;_0x55a440[_0x29e4a2('0x1455')]=_0x333f73||{'count':0x0,'rows':[]};}function _0x485124(){var _0x192080=_0x530fe7;_0x55a440['query'][_0x192080('0xab0')]=(_0x55a440[_0x192080('0xa16')]['page']-0x1)*_0x55a440[_0x192080('0xa16')][_0x192080('0x1b6d')],_0x186d8b[_0x192080('0x179e')](_0x192080('0xd14'))?_0x55a440['promise']=_0x15eb73[_0x192080('0x158e')][_0x192080('0x22d5')](_0x55a440['query'],_0x570090)['$promise']:(_0x55a440[_0x192080('0xa16')]['id']=_0x55a440[_0x192080('0x154f')]['id'],_0x55a440[_0x192080('0xa16')][_0x192080('0x1e59')]=_0x192080('0x198'),_0x55a440[_0x192080('0x9c8')]=_0x15eb73['userProfile'][_0x192080('0x14e6')](_0x55a440[_0x192080('0xa16')],_0x570090)[_0x192080('0xe59')]);}function _0x268ba5(_0x1edc80,_0x4d6117){var _0x3bc9b5=_0x530fe7;_0xcf6683['show']({'controller':_0x3bc9b5('0x118d'),'controllerAs':'vm','templateUrl':_0x497577,'parent':angular[_0x3bc9b5('0x24a1')](_0x237987[_0x3bc9b5('0x19b2')]),'targetEvent':_0x1edc80,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x4d6117,'mailSubtatuses':_0x55a440[_0x3bc9b5('0x1455')][_0x3bc9b5('0x16a7')],'license':_0x55a440[_0x3bc9b5('0x5c1')],'setting':_0x55a440[_0x3bc9b5('0x22f1')],'crudPermissions':_0x55a440[_0x3bc9b5('0xb3d')]}});}function _0x16ad7c(_0x122014){var _0xe9c879=_0x530fe7;_0x15eb73[_0xe9c879('0x158e')][_0xe9c879('0x229e')]({'id':_0x122014['id']})['$promise']['then'](function(){var _0xbf1413=_0xe9c879;_0x32d445()['remove'](_0x55a440[_0xbf1413('0x1455')][_0xbf1413('0x16a7')],{'id':_0x122014['id']}),_0x55a440[_0xbf1413('0x1455')][_0xbf1413('0x148b')]-=0x1,!_0x55a440[_0xbf1413('0x1455')]['rows'][_0xbf1413('0x25ae')]&&_0x55a440['getMailSubstatuses'](),_0x52064b[_0xbf1413('0x425')]({'title':_0x32d445()[_0xbf1413('0x1df2')](_0xbf1413('0x26be'))+_0xbf1413('0x1219'),'msg':_0x122014[_0xbf1413('0x2623')]?_0x122014[_0xbf1413('0x2623')]+_0xbf1413('0x2182'):''});})['catch'](function(_0x288c7d){var _0x5542bf=_0xe9c879;if(_0x288c7d[_0x5542bf('0x11d0')]&&_0x288c7d[_0x5542bf('0x11d0')][_0x5542bf('0xcd2')]&&_0x288c7d['data']['errors']['length']){_0x55a440[_0x5542bf('0xcd2')]=_0x288c7d[_0x5542bf('0x11d0')]['errors']||[{'message':_0x288c7d[_0x5542bf('0x94f')](),'type':_0x5542bf('0x23ee')}];for(var _0x58f05d=0x0;_0x58f05d<_0x288c7d[_0x5542bf('0x11d0')][_0x5542bf('0xcd2')]['length'];_0x58f05d++){_0x52064b[_0x5542bf('0x8c8')]({'title':_0x288c7d['data']['errors'][_0x58f05d][_0x5542bf('0x62e')],'msg':_0x288c7d['data'][_0x5542bf('0xcd2')][_0x58f05d][_0x5542bf('0x27e8')]});}}else _0x52064b['error']({'title':_0x288c7d[_0x5542bf('0x2833')]?_0x5542bf('0x27f2')+_0x288c7d[_0x5542bf('0x2833')]+_0x5542bf('0x1b7c')+_0x288c7d[_0x5542bf('0x1fd7')]:_0x5542bf('0x23ee'),'msg':_0x288c7d['data']?JSON[_0x5542bf('0x3ad')](_0x288c7d[_0x5542bf('0x11d0')]['message']):_0x288c7d[_0x5542bf('0x27e8')]||_0x288c7d[_0x5542bf('0x94f')]()});});}function _0x1be739(){var _0x3a945a=_0x530fe7,_0x2b8093=angular['copy'](_0x55a440[_0x3a945a('0x1ae9')]);return _0x55a440[_0x3a945a('0x1ae9')]=[],_0x2b8093;}function _0x25ce65(_0x27ec18){var _0x32c168=_0x530fe7,_0xc946a=_0xcf6683[_0x32c168('0xa5')]()[_0x32c168('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailSubtatuses?')[_0x32c168('0x221c')](_0x32c168('0xab2')+_0x55a440[_0x32c168('0x1ae9')][_0x32c168('0x25ae')]+_0x32c168('0x5bc')+_0x32c168('0x21bd'))[_0x32c168('0x4d1')]('delete\x20MailSubstatuss')[_0x32c168('0x1345')](_0x27ec18)['ok']('OK')[_0x32c168('0x2c1')](_0x32c168('0x17'));_0xcf6683[_0x32c168('0x26b2')](_0xc946a)[_0x32c168('0xe19')](function(){var _0xdc3da1=_0x32c168;_0x55a440[_0xdc3da1('0x1ae9')]['forEach'](function(_0x56032a){_0x16ad7c(_0x56032a);}),_0x55a440[_0xdc3da1('0x1ae9')]=[];});}function _0x54ae5c(){var _0x59e1c6=_0x530fe7;_0x55a440[_0x59e1c6('0x1ae9')]=[];}function _0x30e842(){var _0x1e9f60=_0x530fe7;_0x55a440[_0x1e9f60('0x1ae9')]=_0x55a440['mailSubtatuses'][_0x1e9f60('0x16a7')];}}const _0x407535=_0x1c49ff;_0x3a9077[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x3a9077(_0x389f5c,_0x402533){var _0x31a8fb=_0xb635d2;_0x389f5c[_0x31a8fb('0x1d72')](_0x31a8fb('0x104b'),{'abstract':!![],'url':_0x31a8fb('0x1aad')})['state'](_0x31a8fb('0x1202'),{'url':_0x31a8fb('0x1a1'),'views':{'content@app':{'templateUrl':_0x5b0268,'controller':'MailQueuesController\x20as\x20vm'}},'resolve':{'mailQueues':[_0x31a8fb('0x292'),'Auth',function _0x37e841(_0x3eab88,_0x2f170c){var _0x2915bd=_0x31a8fb;return _0x2f170c[_0x2915bd('0x179e')](_0x2915bd('0xd14'))?_0x3eab88[_0x2915bd('0xcd6')]('mailQueue@get',{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x2915bd('0x26bf'),'limit':0xa,'offset':0x0}):_0x3eab88[_0x2915bd('0xcd6')]('userProfile@getResources',{'id':_0x2f170c[_0x2915bd('0x1ef8')]()[_0x2915bd('0x1d04')],'section':_0x2915bd('0x12e8'),'fields':_0x2915bd('0x1bd'),'sort':_0x2915bd('0x7e8'),'channel':_0x2915bd('0x26bf'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x31a8fb('0x292'),_0x31a8fb('0x2730'),function _0x492de7(_0x50debe,_0x4197d9){var _0xc1c734=_0x31a8fb;return _0x4197d9[_0xc1c734('0x179e')]('admin')?null:_0x50debe[_0xc1c734('0xcd6')](_0xc1c734('0x455'),{'fields':_0xc1c734('0x1b71'),'id':_0x4197d9[_0xc1c734('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x31a8fb('0x292'),_0x31a8fb('0x2730'),function _0x481bd9(_0x1ee835,_0x224a2a){var _0x251209=_0x31a8fb;return _0x224a2a[_0x251209('0x179e')](_0x251209('0xd14'))?null:_0x1ee835['resolve'](_0x251209('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x224a2a['getCurrentUser']()[_0x251209('0x1d04')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x31a8fb('0x26bf')})[_0x31a8fb('0x1d72')](_0x31a8fb('0x2413'),{'url':_0x31a8fb('0xb1d'),'params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x10f098,'controller':'MailQueueController\x20as\x20vm'}},'resolve':{'mailQueue':[_0x31a8fb('0x292'),_0x31a8fb('0x34'),function _0x82d3ac(_0x10bd86,_0xdcacb){var _0x3093b1=_0x31a8fb;return _0x10bd86[_0x3093b1('0xcd6')]('mailQueue@get',{'fields':_0x3093b1('0x1bd'),'id':_0xdcacb['id']});}],'userProfileSection':[_0x31a8fb('0x292'),_0x31a8fb('0x2730'),function _0x4f6464(_0x429f7d,_0x29d1bf){var _0x3d62b0=_0x31a8fb;return _0x429f7d['resolve'](_0x3d62b0('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x29d1bf[_0x3d62b0('0x1ef8')]()['userProfileId'],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x31a8fb('0x26bf')})[_0x31a8fb('0x1d72')](_0x31a8fb('0x1978'),{'url':_0x31a8fb('0x1911'),'views':{'content@app':{'templateUrl':_0x59b751,'controller':'MailAccountsController\x20as\x20vm'}},'resolve':{'mailAccounts':['apiResolver',_0x31a8fb('0x2730'),function _0x2e54d8(_0x2ed14b,_0x183b9a){var _0x3cf611=_0x31a8fb;return _0x183b9a[_0x3cf611('0x179e')](_0x3cf611('0xd14'))?_0x2ed14b[_0x3cf611('0xcd6')]('mailAccount@get',{'fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x3cf611('0x7e8'),'limit':0xa,'offset':0x0}):_0x2ed14b[_0x3cf611('0xcd6')](_0x3cf611('0x197d'),{'id':_0x183b9a[_0x3cf611('0x1ef8')]()[_0x3cf611('0x1d04')],'section':_0x3cf611('0xa3e'),'fields':_0x3cf611('0x1333'),'sort':_0x3cf611('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x31a8fb('0x292'),_0x31a8fb('0x2730'),function _0x19ecaa(_0x38bd1b,_0x1b1eeb){var _0x26b7cd=_0x31a8fb;return _0x1b1eeb[_0x26b7cd('0x179e')]('admin')?null:_0x38bd1b[_0x26b7cd('0xcd6')](_0x26b7cd('0x455'),{'fields':'id,name,crudPermissions','id':_0x1b1eeb[_0x26b7cd('0x1ef8')]()[_0x26b7cd('0x1d04')]});}],'userProfileSection':[_0x31a8fb('0x292'),_0x31a8fb('0x2730'),function _0x300039(_0xf7eb91,_0x3319fd){var _0x95bc8f=_0x31a8fb;return _0x3319fd[_0x95bc8f('0x179e')](_0x95bc8f('0xd14'))?null:_0xf7eb91[_0x95bc8f('0xcd6')]('userProfileSection@get',{'fields':_0x95bc8f('0x12d6'),'userProfileId':_0x3319fd[_0x95bc8f('0x1ef8')]()[_0x95bc8f('0x1d04')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x31a8fb('0x26bf')})[_0x31a8fb('0x1d72')](_0x31a8fb('0x1ee6'),{'url':_0x31a8fb('0xb1d'),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x406d07,'controller':_0x31a8fb('0x945')}},'resolve':{'mailAccount':[_0x31a8fb('0x292'),'$stateParams',function _0x352443(_0x34cb8c,_0x3516ab){var _0x1d87d9=_0x31a8fb;return _0x34cb8c[_0x1d87d9('0xcd6')]('mailAccount@get',{'fields':_0x1d87d9('0x1333'),'id':_0x3516ab['id']});}],'userProfileSection':[_0x31a8fb('0x292'),'Auth',function _0x570ea9(_0x5782f0,_0x52f29b){var _0x2b9428=_0x31a8fb;return _0x5782f0[_0x2b9428('0xcd6')]('userProfileSection@get',{'fields':_0x2b9428('0x12d6'),'userProfileId':_0x52f29b[_0x2b9428('0x1ef8')]()['userProfileId'],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x31a8fb('0x26bf')})['state'](_0x31a8fb('0x231a'),{'url':_0x31a8fb('0x7e6'),'views':{'content@app':{'templateUrl':_0x4fda87,'controller':_0x31a8fb('0xee7')}},'resolve':{'mailSubtatuses':[_0x31a8fb('0x292'),function _0x5c4376(_0x2bfabb){var _0x5e44d4=_0x31a8fb;return _0x2bfabb[_0x5e44d4('0xcd6')]('mailSubstatus@get',{'fields':_0x5e44d4('0x1666'),'sort':_0x5e44d4('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x31a8fb('0x292'),_0x31a8fb('0x2730'),function _0x1768d3(_0xfca206,_0x27187f){var _0x314292=_0x31a8fb;return _0x27187f['hasRole'](_0x314292('0xd14'))?null:_0xfca206[_0x314292('0xcd6')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x27187f['getCurrentUser']()[_0x314292('0x1d04')]});}],'userProfileSection':[_0x31a8fb('0x292'),_0x31a8fb('0x2730'),function _0x52b14f(_0x412592,_0x5476a0){var _0x145dd8=_0x31a8fb;return _0x5476a0['hasRole'](_0x145dd8('0xd14'))?null:_0x412592['resolve'](_0x145dd8('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5476a0['getCurrentUser']()[_0x145dd8('0x1d04')],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':_0x31a8fb('0x26bf')}),_0x402533[_0x31a8fb('0xfe3')](_0x31a8fb('0x177c'));}angular[_0xb635d2('0x153f')]('app.mail',[_0xb635d2('0x569'),'ngPassword',_0xb635d2('0x274e'),_0xb635d2('0x206b'),_0xb635d2('0xd8b'),'ckeditor',_0xb635d2('0x1951'),_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),_0xb635d2('0x17b0'),_0xb635d2('0x191c'),_0xb635d2('0xe93'),_0xb635d2('0x16a1'),_0xb635d2('0x1c07')])[_0xb635d2('0x1990')](_0x3a9077)[_0xb635d2('0x1a79')](_0xb635d2('0x197'),_0x556368)[_0xb635d2('0x1a79')](_0xb635d2('0x31f'),_0x3b3fc8)[_0xb635d2('0x1a79')]('MailAccountagentaddController',_0x52878e)[_0xb635d2('0x1a79')](_0xb635d2('0x73c'),_0x68739b)[_0xb635d2('0x1a79')](_0xb635d2('0x1ea5'),_0x4ef070)[_0xb635d2('0x1a79')](_0xb635d2('0x1b23'),_0x40f8cb)[_0xb635d2('0x1a79')]('EditMailAccountAppgotoifDialogController',_0xcca668)[_0xb635d2('0x1a79')](_0xb635d2('0xd0c'),_0x2f52fd)[_0xb635d2('0x1a79')]('EditMailAccountAppintervalDialogController',_0x11942d)[_0xb635d2('0x1a79')](_0xb635d2('0x16ce'),_0x5ac401)[_0xb635d2('0x1a79')](_0xb635d2('0x6fa'),_0x403357)[_0xb635d2('0x1a79')](_0xb635d2('0x1578'),_0x5d5f7a)[_0xb635d2('0x1a79')](_0xb635d2('0x1f5d'),_0x59c26d)['controller']('MailAccountInteractionsController',_0x3afa84)[_0xb635d2('0x1a79')](_0xb635d2('0x179a'),_0x49721b)['controller'](_0xb635d2('0xa1'),_0x590835)[_0xb635d2('0x1a79')]('MailAccountDispositionsController',_0x8c3edc)['controller'](_0xb635d2('0x18ce'),_0x13fab2)[_0xb635d2('0x1a79')](_0xb635d2('0x12f0'),_0x2f3824)[_0xb635d2('0x1a79')](_0xb635d2('0x26f8'),_0x41f310)[_0xb635d2('0x1a79')]('MailQueueagentaddController',_0xa8e117)[_0xb635d2('0x1a79')]('MailQueueteamaddController',_0x380cba)[_0xb635d2('0x1a79')]('MailQueueController',_0x36085d)[_0xb635d2('0x1a79')](_0xb635d2('0x18ca'),_0x244716)[_0xb635d2('0x1a79')]('CreateOrEditMailSubstatusDialogController',_0x37cc85)[_0xb635d2('0x1a79')](_0xb635d2('0x1df9'),_0x407535);const _0x2411d1=_0x59426a['p']+'src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime-[chunkhash].html',_0x38c1d8=_0x59426a['p']+_0xb635d2('0x4e7'),_0x52b9e7=_0x59426a['p']+_0xb635d2('0x1867');_0xbd3c37[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$q',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$filter',_0xb635d2('0x145e'),_0xb635d2('0x29b'),_0xb635d2('0x7'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),_0xb635d2('0x20d'),'userProfile',_0xb635d2('0xb59'),'Auth',_0xb635d2('0x5c1'),'$interval'];function _0xbd3c37(_0x4bc32a,_0x14942a,_0x5d6965,_0xa5b079,_0x37f681,_0x1d60fb,_0x32aa1c,_0x5d14ef,_0x50edfa,_0x58cac5,_0x50b681,_0x28efb0,_0x45610d,_0x519a7e,_0x180107,_0x506726,_0x3ff52c,_0x359057){var _0x35d332=_0xb635d2,_0x6e9733=this,_0x45105d=[_0x35d332('0x8b3'),'online','lastLoginAt',_0x35d332('0x823'),_0x35d332('0x103'),_0x35d332('0x823'),_0x35d332('0x1b66'),'address','chatPause',_0x35d332('0xf2a'),_0x35d332('0x2531'),_0x35d332('0x24f1'),_0x35d332('0x14fb'),_0x35d332('0x2299'),'voicePause',_0x35d332('0x201b'),_0x35d332('0x195a'),_0x35d332('0xc97'),'smsCapacity',_0x35d332('0x15f0'),_0x35d332('0x15ee'),_0x35d332('0x1fa2'),'openchannelCurrentCapacity',_0x35d332('0x1d8a'),'smsCurrentCapacity',_0x35d332('0xa2a'),_0x35d332('0x1c17'),_0x35d332('0x21f1'),_0x35d332('0x1ec9'),_0x35d332('0x44e'),'smsStatus',_0x35d332('0x1d57'),'faxStatus',_0x35d332('0xff0'),_0x35d332('0x583'),'openchannelStatusTime',_0x35d332('0x1426'),_0x35d332('0x1c51'),_0x35d332('0xda4'),_0x35d332('0xaa3'),'voiceStatusTime',_0x35d332('0x26a8'),_0x35d332('0x149e'),_0x35d332('0x783'),_0x35d332('0x1df6'),'phoneBarEnableAutomaticScreenRecording'],_0x3dbb23=[_0x35d332('0x1b15'),_0x35d332('0xf2a'),'mailPause',_0x35d332('0x24f1'),_0x35d332('0x14fb'),_0x35d332('0x2299'),'voicePause','online'];_0x6e9733[_0x35d332('0x15a5')]=_0x506726[_0x35d332('0x1ef8')](),_0x6e9733['availableStates']=[_0x35d332('0xb4'),'inuse',_0x35d332('0x1934'),_0x35d332('0x289d'),_0x35d332('0x3ef')],_0x6e9733['pauses']=_0x32aa1c||{'count':0x0,'rows':[]},_0x6e9733[_0x35d332('0x5c1')]=_0x3ff52c,_0x6e9733[_0x35d332('0x154f')]=_0x519a7e,_0x6e9733[_0x35d332('0xb59')]=_0x180107&&_0x180107[_0x35d332('0x148b')]==0x1?_0x180107[_0x35d332('0x16a7')][0x0]:null,_0x6e9733[_0x35d332('0xb3d')]=_0x506726[_0x35d332('0xd31')](_0x6e9733['userProfileSection']?_0x6e9733['userProfileSection'][_0x35d332('0xb3d')]:null),_0x6e9733[_0x35d332('0x29b')]=_0x5d14ef?_0x32d445()[_0x35d332('0x226f')](_0x5d14ef[_0x35d332('0x16a7')]?_0x5d14ef[_0x35d332('0x16a7')]:[],'id'):{},_0x6e9733[_0x35d332('0x7')]=_0x50edfa?_0x32d445()['keyBy'](_0x50edfa[_0x35d332('0x16a7')]?_0x50edfa[_0x35d332('0x16a7')]:[],'id'):{},_0x6e9733[_0x35d332('0xc68')]={},_0x6e9733[_0x35d332('0xcfe')]=![],_0x6e9733[_0x35d332('0x1b03')]=[],_0x6e9733['agentInternal']={};for(var _0x40a99a in _0x6e9733[_0x35d332('0x29b')]){typeof _0x6e9733[_0x35d332('0x29b')][_0x40a99a]!==_0x35d332('0x1143')&&(_0x6e9733[_0x35d332('0x29b')][_0x40a99a][_0x35d332('0x15f9')]=!![]);}_0x6e9733[_0x35d332('0xa16')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x6e9733[_0x35d332('0xe4e')]=_0x35ab1b,_0x6e9733[_0x35d332('0x16d4')]=_0x4e3942,_0x6e9733[_0x35d332('0x1c98')]=_0x52e991,_0x6e9733[_0x35d332('0x560')]=_0x59cc3b,_0x6e9733[_0x35d332('0x80b')]=_0x4e394d,_0x6e9733[_0x35d332('0xca0')]=_0x99a9c1,_0x6e9733[_0x35d332('0xe1d')]=_0x1aed18,_0x6e9733[_0x35d332('0x361')]=_0x1fb4ac,_0x6e9733[_0x35d332('0x1803')]=_0x1e8b6a,_0x6e9733[_0x35d332('0x2052')]=_0x56edf0,_0x6e9733[_0x35d332('0x284a')]=_0x2ded67,_0x6e9733[_0x35d332('0x18ee')]=_0xae399c,_0x6e9733['onInit']=_0x39d157,_0x6e9733[_0x35d332('0x266f')]=_0xf11feb,_0x6e9733['onComplete']=_0xaf4380,_0x6e9733[_0x35d332('0x166f')]=_0x434018,_0x50b681['on'](_0x35d332('0xb9f'),_0x6e9733[_0x35d332('0x284a')]),_0x50b681['on'](_0x35d332('0x1ce3'),_0x6e9733['onUpdate']),_0x50b681['on'](_0x35d332('0x1002'),_0x6e9733[_0x35d332('0x266f')]),_0x50b681['on'](_0x35d332('0xa8e'),_0x6e9733[_0x35d332('0x1831')]),_0x39d157();var _0x1ee3d0=_0x359057(function(){var _0x1f65c2=_0x35d332;_0x6e9733[_0x1f65c2('0xcfe')]&&(_0x6e9733['load']=![],_0x39d157());},0x3e7);function _0x39d157(){var _0x15098f=_0x35d332;_0x6e9733[_0x15098f('0xcfe')]=![];var _0x1163ef=_0x14942a['defer']();_0x6e9733[_0x15098f('0x9c8')]=_0x1163ef[_0x15098f('0x9c8')],_0x6e9733[_0x15098f('0x16a4')]=[],_0x6e9733['order']=[],_0x32d445()['forIn'](_0x6e9733[_0x15098f('0x29b')],function(_0x59c0fa,_0x9fcf6d){var _0x1b5b20=_0x15098f;_0x6e9733[_0x1b5b20('0x7')][_0x9fcf6d]&&_0x32d445()[_0x1b5b20('0x1d8')](_0x59c0fa,_0x32d445()[_0x1b5b20('0xed5')](_0x32d445()[_0x1b5b20('0x23e3')](_0x6e9733[_0x1b5b20('0x7')][_0x9fcf6d],_0x3dbb23),_0x45105d)),_0x1aed18(_0x59c0fa),_0x59c0fa[_0x1b5b20('0xb46')]?(_0x6e9733['filteredAgents'][_0x1b5b20('0xb76')](_0x59c0fa),_0x6e9733[_0x1b5b20('0x7ff')][_0x59c0fa[_0x1b5b20('0x1b66')]]=_0x9fcf6d):_0x59c0fa[_0x1b5b20('0x16ed')]=_0x32d445()[_0x1b5b20('0xcd3')](_0x4ddcaa()()['format']('x'));});_0x6e9733[_0x15098f('0xa16')][_0x15098f('0xb02')]&&_0x32d445()[_0x15098f('0xa8b')](_0x6e9733[_0x15098f('0x16a4')],function(_0x16d234){var _0x2d0fec=_0x15098f;return _0x16d234[_0x2d0fec('0x25b1')]!==_0x6e9733[_0x2d0fec('0xa16')][_0x2d0fec('0xb02')];});_0x6e9733[_0x15098f('0xa16')][_0x15098f('0x24fc')]&&_0x32d445()[_0x15098f('0xa8b')](_0x6e9733[_0x15098f('0x16a4')],function(_0x476af4){var _0x379f93=_0x15098f;return _0x476af4[_0x379f93('0x103')]!==_0x6e9733['query'][_0x379f93('0x24fc')];});_0x6e9733[_0x15098f('0xa16')][_0x15098f('0x2891')]&&_0x32d445()[_0x15098f('0xa8b')](_0x6e9733[_0x15098f('0x16a4')],function(_0x71ca8c){var _0x56133c=_0x15098f;return _0x71ca8c[_0x56133c('0xe11')][_0x56133c('0x20dd')]()[_0x56133c('0x281c')](_0x6e9733[_0x56133c('0xa16')][_0x56133c('0x2891')][_0x56133c('0x20dd')]())<0x0;});_0x6e9733[_0x15098f('0x16a4')]=_0x200647(_0x6e9733[_0x15098f('0x16a4')]);var _0x56dd05=(_0x6e9733['query']['page']-0x1)*_0x6e9733['query']['limit'];_0x6e9733['paginatedAgents']=_0x32d445()[_0x15098f('0x4a0')](_0x6e9733[_0x15098f('0x16a4')],_0x56dd05)[_0x15098f('0xa19')](0x0,_0x6e9733[_0x15098f('0xa16')]['limit']);for(var _0x267480=0x0;_0x267480<_0x6e9733[_0x15098f('0xc68')][_0x15098f('0x25ae')];_0x267480+=0x1){_0x6e9733[_0x15098f('0x1b03')][_0x15098f('0xb76')](_0x6e9733[_0x15098f('0xc68')][_0x267480]['id']);}_0x1163ef[_0x15098f('0xcd6')](),_0x6e9733['load']=!![];}function _0x2ded67(_0xf61849){var _0x148b40=_0x35d332;_0x6e9733['agents'][_0xf61849['id']]&&(_0x32d445()[_0x148b40('0x1d8')](_0x6e9733[_0x148b40('0x29b')][_0xf61849['id']],_0x32d445()[_0x148b40('0xed5')](_0x32d445()[_0x148b40('0x23e3')](_0xf61849,_0x3dbb23),_0x45105d)),_0x32d445()['merge'](_0x6e9733[_0x148b40('0x7')][_0xf61849['id']],_0x32d445()[_0x148b40('0xed5')](_0x32d445()[_0x148b40('0x23e3')](_0xf61849,_0x3dbb23),_0x45105d)),_0x1aed18(_0x6e9733[_0x148b40('0x29b')][_0xf61849['id']]));}function _0xae399c(_0x526db5){var _0x5711f3=_0x35d332;_0x6e9733['agents'][_0x526db5['id']]&&(_0x32d445()[_0x5711f3('0x1d8')](_0x6e9733['agents'][_0x526db5['id']],_0x32d445()[_0x5711f3('0xed5')](_0x526db5,_0x45105d)),_0x32d445()[_0x5711f3('0x1d8')](_0x6e9733['rpcAgents'][_0x526db5['id']],_0x32d445()[_0x5711f3('0xed5')](_0x526db5,_0x45105d)),_0x526db5[_0x5711f3('0x823')]&&(_0x6e9733['agents'][_0x526db5['id']]['globalStatusTime']=_0x526db5[_0x5711f3('0x823')],_0x6e9733[_0x5711f3('0x7')][_0x526db5['id']][_0x5711f3('0x16ed')]=_0x526db5[_0x5711f3('0x823')]),_0x1aed18(_0x6e9733['agents'][_0x526db5['id']]));}function _0xf11feb(_0xb0b01){var _0x9542fd=_0x35d332;_0x6e9733[_0x9542fd('0x29b')][_0x6e9733[_0x9542fd('0x7ff')][_0xb0b01['destaccountcode']]]&&(_0x32d445()[_0x9542fd('0x1d8')](_0x6e9733[_0x9542fd('0x29b')][_0x6e9733[_0x9542fd('0x7ff')][_0xb0b01[_0x9542fd('0x1c29')]]],_0x32d445()[_0x9542fd('0xed5')](_0xb0b01,['queue',_0x9542fd('0x149e')])),_0x32d445()[_0x9542fd('0x1d8')](_0x6e9733['rpcAgents'][_0x6e9733[_0x9542fd('0x7ff')][_0xb0b01[_0x9542fd('0x1c29')]]],_0x32d445()['pick'](_0xb0b01,[_0x9542fd('0x26a8'),_0x9542fd('0x149e')])));}function _0xaf4380(_0x15ddc8){var _0x3aa976=_0x35d332;_0x6e9733['agents'][_0x6e9733[_0x3aa976('0x7ff')][_0x15ddc8[_0x3aa976('0x1c29')]]]&&(_0x6e9733[_0x3aa976('0x29b')][_0x6e9733[_0x3aa976('0x7ff')][_0x15ddc8[_0x3aa976('0x1c29')]]]=_0x32d445()[_0x3aa976('0x23e3')](_0x6e9733[_0x3aa976('0x29b')][_0x6e9733[_0x3aa976('0x7ff')][_0x15ddc8[_0x3aa976('0x1c29')]]],[_0x3aa976('0x26a8'),_0x3aa976('0x149e')]),_0x6e9733[_0x3aa976('0x7')][_0x6e9733[_0x3aa976('0x7ff')][_0x15ddc8[_0x3aa976('0x1c29')]]]=_0x32d445()[_0x3aa976('0x23e3')](_0x6e9733[_0x3aa976('0x7')][_0x6e9733[_0x3aa976('0x7ff')][_0x15ddc8['destaccountcode']]],[_0x3aa976('0x26a8'),_0x3aa976('0x149e')]));}function _0x35ab1b(_0x319f54){var _0x3aaf45=_0x35d332;return _0x58cac5[_0x3aaf45('0x10c6')]['logout']({'id':_0x319f54['id'],'device':_0x3aaf45('0x24e1'),'agent_id':_0x319f54['id'],'agent_name':_0x319f54[_0x3aaf45('0x2623')]})[_0x3aaf45('0xe59')][_0x3aaf45('0xe19')](function(){var _0x2ffe80=_0x3aaf45;_0x28efb0[_0x2ffe80('0x425')]({'title':_0x2ffe80('0x25b9'),'msg':_0x319f54['fullname']+'\x20\x20properly\x20logout'}),_0x6e9733['agents'][_0x319f54['id']]&&(_0x6e9733[_0x2ffe80('0x29b')][_0x319f54['id']][_0x2ffe80('0xb46')]=![]),_0x6e9733[_0x2ffe80('0x7')][_0x319f54['id']]&&(_0x6e9733[_0x2ffe80('0x7')][_0x319f54['id']][_0x2ffe80('0xb46')]=![]),_0x39d157();})[_0x3aaf45('0x223b')](function(_0x336d6c){var _0x4b77ac=_0x3aaf45;_0x28efb0[_0x4b77ac('0x8c8')]({'title':_0x336d6c[_0x4b77ac('0x2833')]?_0x4b77ac('0x27f2')+_0x336d6c[_0x4b77ac('0x2833')]+_0x4b77ac('0x1b7c')+_0x336d6c[_0x4b77ac('0x1fd7')]:_0x4b77ac('0x1c95'),'msg':_0x336d6c[_0x4b77ac('0x11d0')]?JSON[_0x4b77ac('0x3ad')](_0x336d6c[_0x4b77ac('0x11d0')][_0x4b77ac('0x27e8')]):_0x336d6c[_0x4b77ac('0x94f')]()});});}function _0x52e991(_0x478ae9,_0xb56c21){var _0x5b46b7=_0x35d332;return _0x58cac5[_0x5b46b7('0x10c6')]['pause']({'id':_0x478ae9['id'],'type':_0xb56c21})[_0x5b46b7('0xe59')][_0x5b46b7('0xe19')](function(_0x3ed5dd){var _0x348e7a=_0x5b46b7;_0x6e9733['agents'][_0x478ae9['id']]&&_0x32d445()['merge'](_0x6e9733['agents'][_0x478ae9['id']],_0x32d445()['pick'](_0x3ed5dd,_0x45105d)),_0x6e9733[_0x348e7a('0x7')][_0x478ae9['id']]&&_0x32d445()[_0x348e7a('0x1d8')](_0x6e9733['rpcAgents'][_0x478ae9['id']],_0x32d445()['pick'](_0x3ed5dd,_0x45105d)),_0x1aed18(_0x6e9733[_0x348e7a('0x29b')][_0x478ae9['id']]);})['catch'](function(_0x44b25c){var _0x18bced=_0x5b46b7;_0x28efb0[_0x18bced('0x8c8')]({'title':_0x44b25c[_0x18bced('0x2833')]?_0x18bced('0x27f2')+_0x44b25c[_0x18bced('0x2833')]+_0x18bced('0x1b7c')+_0x44b25c[_0x18bced('0x1fd7')]:_0x18bced('0x1c95'),'msg':_0x44b25c[_0x18bced('0x11d0')]?JSON[_0x18bced('0x3ad')](_0x44b25c[_0x18bced('0x11d0')][_0x18bced('0x27e8')]):_0x44b25c[_0x18bced('0x94f')]()});});}function _0x59cc3b(_0xe12e4f){var _0x2a20e5=_0x35d332;return _0x58cac5['user'][_0x2a20e5('0x2471')]({'id':_0xe12e4f['id']})['$promise'][_0x2a20e5('0xe19')](function(_0x456f3d){var _0x34049d=_0x2a20e5;_0x6e9733['agents'][_0xe12e4f['id']]&&_0x32d445()[_0x34049d('0x1d8')](_0x6e9733[_0x34049d('0x29b')][_0xe12e4f['id']],_0x32d445()[_0x34049d('0xed5')](_0x456f3d,_0x45105d)),_0x6e9733[_0x34049d('0x7')][_0xe12e4f['id']]&&_0x32d445()[_0x34049d('0x1d8')](_0x6e9733[_0x34049d('0x7')][_0xe12e4f['id']],_0x32d445()[_0x34049d('0xed5')](_0x456f3d,_0x45105d)),_0x1aed18(_0x6e9733[_0x34049d('0x29b')][_0xe12e4f['id']]);})[_0x2a20e5('0x223b')](function(_0x3bdcf6){var _0x331315=_0x2a20e5;_0x28efb0[_0x331315('0x8c8')]({'title':_0x3bdcf6[_0x331315('0x2833')]?_0x331315('0x27f2')+_0x3bdcf6[_0x331315('0x2833')]+_0x331315('0x1b7c')+_0x3bdcf6[_0x331315('0x1fd7')]:_0x331315('0x1c95'),'msg':_0x3bdcf6['data']?JSON[_0x331315('0x3ad')](_0x3bdcf6[_0x331315('0x11d0')][_0x331315('0x27e8')]):_0x3bdcf6[_0x331315('0x94f')]()});});}function _0x4e394d(_0x33358b){var _0x1340fb=_0x35d332;_0xa5b079[_0x1340fb('0x26b2')](_0xa5b079['alert']()[_0x1340fb('0x26d6')](!![])['title'](_0x1340fb('0x7c0'))[_0x1340fb('0x221c')](_0x1340fb('0x1abb'))['ok']('Ok')[_0x1340fb('0x1345')](_0x33358b));}function _0x4e3942(_0x3f4b8b,_0x5a0535){var _0x5e9bcc=_0x35d332;_0xa5b079['show']({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x3bf6bc,'parent':angular['element'](_0x37f681[_0x5e9bcc('0x19b2')]),'targetEvent':_0x5a0535,'clickOutsideToClose':!![],'locals':{'agent':_0x3f4b8b,'agents':[],'channel':_0x5e9bcc('0x2801'),'direction':'inbound','crudPermissions':_0x6e9733[_0x5e9bcc('0xb3d')]}});}function _0x1fb4ac(_0x2b1039){var _0x519ea0=_0x35d332;return _0x2b1039===_0x519ea0('0x1c98')||_0x2b1039==='*pause';}function _0x1e8b6a(_0x74a0d){var _0x405656=_0x35d332;return _0x74a0d===_0x405656('0x1c98');}function _0x56edf0(_0x5100aa){var _0x58da15=_0x35d332;return _0x5100aa===_0x58da15('0x2f3');}function _0x4b4891(_0x784807){var _0x559992=_0x35d332;return _0x784807==='idle'||_0x784807===_0x559992('0x10df')||_0x784807===_0x559992('0x20a1')||_0x784807===_0x559992('0xb4')||_0x32d445()['isNil'](_0x784807);}function _0x99a9c1(_0x53ad94,_0x2602e1){var _0x92bd60=_0x35d332;if(_0x2602e1===_0x92bd60('0xe74')){if(_0x53ad94[_0x2602e1+_0x92bd60('0x20e')]!==_0x92bd60('0x751'))return _0x53ad94[_0x2602e1+_0x92bd60('0x20e')];if(_0x53ad94[_0x2602e1+_0x92bd60('0x27b9')])return _0x53ad94[_0x2602e1+_0x92bd60('0x20e')]=_0x92bd60('0x1c98'),_0x92bd60('0x1c98');return'idle';}else{if(_0x53ad94[_0x2602e1+_0x92bd60('0x27b9')])return _0x53ad94[_0x2602e1+_0x92bd60('0x20e')]=_0x92bd60('0x1c98'),'pause';return _0x53ad94[_0x2602e1+_0x92bd60('0x20e')];}}function _0x1aed18(_0x352cb5){var _0x502c28=_0x35d332,_0x251134=_0x502c28('0x10df');if(_0x32d445()[_0x502c28('0x1ff')]([_0x99a9c1(_0x352cb5,'voice'),_0x99a9c1(_0x352cb5,'chat'),_0x99a9c1(_0x352cb5,_0x502c28('0x26bf')),_0x99a9c1(_0x352cb5,_0x502c28('0xaf2')),_0x99a9c1(_0x352cb5,_0x502c28('0x2801')),_0x99a9c1(_0x352cb5,'whatsapp'),_0x99a9c1(_0x352cb5,_0x502c28('0x625'))],_0x1fb4ac))_0x251134=_0x502c28('0x1c98');else{if(_0x32d445()[_0x502c28('0x201a')]([_0x99a9c1(_0x352cb5,_0x502c28('0xe74')),_0x99a9c1(_0x352cb5,_0x502c28('0x17cc')),_0x99a9c1(_0x352cb5,_0x502c28('0x26bf')),_0x99a9c1(_0x352cb5,'openchannel'),_0x99a9c1(_0x352cb5,_0x502c28('0x2801')),_0x99a9c1(_0x352cb5,'whatsapp'),_0x99a9c1(_0x352cb5,_0x502c28('0x625'))],_0x1fb4ac))_0x251134=_0x502c28('0x2f3');else _0x32d445()[_0x502c28('0x1ff')]([_0x99a9c1(_0x352cb5,_0x502c28('0xe74')),_0x99a9c1(_0x352cb5,_0x502c28('0x17cc')),_0x99a9c1(_0x352cb5,_0x502c28('0x26bf')),_0x99a9c1(_0x352cb5,_0x502c28('0xaf2')),_0x99a9c1(_0x352cb5,_0x502c28('0x2801')),_0x99a9c1(_0x352cb5,'whatsapp'),_0x99a9c1(_0x352cb5,_0x502c28('0x625'))],_0x4b4891)?_0x251134=_0x502c28('0x751'):_0x251134=_0x502c28('0x1934');}_0x352cb5[_0x502c28('0x25b1')]!==_0x251134&&(_0x352cb5[_0x502c28('0x25b1')]=_0x251134,_0x352cb5['init']?(_0x352cb5['init']=![],_0x352cb5[_0x502c28('0x16ed')]=_0x1fb4ac(_0x251134)?_0x32d445()[_0x502c28('0xcd3')](_0x4ddcaa()(_0x352cb5[_0x502c28('0x823')])[_0x502c28('0x5e5')]('x')):_0x32d445()[_0x502c28('0x1735')]([_0x352cb5['voiceStatusTime'],_0x352cb5['chatStatusTime'],_0x352cb5[_0x502c28('0x1426')],_0x352cb5[_0x502c28('0x1c51')],_0x352cb5[_0x502c28('0xda4')],_0x352cb5[_0x502c28('0x1ca7')],_0x352cb5[_0x502c28('0xaa3')]])):_0x352cb5[_0x502c28('0x16ed')]=_0x32d445()['toNumber'](_0x4ddcaa()()[_0x502c28('0x5e5')]('x')));}function _0x200647(_0x5d8c97){var _0x5caa87=_0x35d332,_0x3361f9=_0x32d445()[_0x5caa87('0x20b6')](_0x6e9733[_0x5caa87('0xa16')][_0x5caa87('0x1b03')],'-')?_0x5caa87('0x1ee9'):_0x5caa87('0x1564');return _0x32d445()['orderBy'](_0x5d8c97,[_0x6e9733[_0x5caa87('0xa16')]['order'][_0x5caa87('0x1b42')]('-','')],[_0x3361f9]);}function _0x5c1e5f(){_0x1ee3d0&&(_0x359057['cancel'](_0x1ee3d0),_0x1ee3d0=null);}function _0x434018(_0x29062f,_0x59a2f7){var _0x32e598=_0x35d332;return _0x58cac5[_0x32e598('0x10c6')][_0x32e598('0xa70')]({'id':_0x29062f['id']},{'screenrecording':_0x59a2f7})['$promise'][_0x32e598('0x223b')](function(_0x27fa22){var _0x17025c=_0x32e598;_0x28efb0[_0x17025c('0x8c8')]({'title':_0x27fa22[_0x17025c('0x2833')]?_0x17025c('0x27f2')+_0x27fa22[_0x17025c('0x2833')]+_0x17025c('0x1b7c')+_0x27fa22['statusText']:'api.user.update','msg':_0x27fa22[_0x17025c('0x11d0')]?JSON['stringify'](_0x27fa22[_0x17025c('0x11d0')][_0x17025c('0x27e8')]):_0x27fa22['toString']()});});}_0x4bc32a[_0x35d332('0xb2b')]('$destroy',function(){var _0x4aacda=_0x35d332;_0x50b681[_0x4aacda('0x2121')](_0x4aacda('0xb9f')),_0x50b681[_0x4aacda('0x2121')]('user:update'),_0x50b681[_0x4aacda('0x2121')](_0x4aacda('0x1002')),_0x50b681[_0x4aacda('0x2121')](_0x4aacda('0xa8e')),_0x5c1e5f();});}const _0x13d3c8=_0xbd3c37,_0x568c9d=_0x59426a['p']+_0xb635d2('0x965'),_0x22f1cc=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0xe223d4['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x1728'),_0xb635d2('0x1c1a'),'queues','rpcQueues',_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0xe223d4(_0x16b70d,_0x2877e1,_0x1e74f7,_0x62afa,_0x22c688,_0x24515f,_0x3c0b8c,_0x5f38fc,_0x42c1a3,_0xefcaaa,_0x51a6e4,_0x263248,_0x40a033,_0x130f8f){var _0x33e211=_0xb635d2,_0x18b9bf=this,_0x51b7a8=['loggedIn','available',_0x33e211('0x183a'),'talking',_0x33e211('0x1700'),_0x33e211('0x194a'),_0x33e211('0x27e8'),_0x33e211('0x8c9'),_0x33e211('0x1a23'),_0x33e211('0x1317'),'paused'];_0x18b9bf[_0x33e211('0x15a5')]=_0x130f8f['getCurrentUser'](),_0x18b9bf[_0x33e211('0x148b')]=_0x3c0b8c[_0x33e211('0x148b')]?_0x3c0b8c[_0x33e211('0x148b')]:0x0,_0x18b9bf[_0x33e211('0x671')]=_0x3c0b8c?_0x32d445()['keyBy'](_0x3c0b8c[_0x33e211('0x16a7')]?_0x3c0b8c[_0x33e211('0x16a7')]:[],'id'):{},_0x18b9bf['rpcQueues']=_0x5f38fc?_0x32d445()[_0x33e211('0x226f')](_0x5f38fc[_0x33e211('0x16a7')]?_0x5f38fc[_0x33e211('0x16a7')]:[],'id'):{},_0x18b9bf[_0x33e211('0x154f')]=_0x263248,_0x18b9bf['userProfileSection']=_0x40a033&&_0x40a033[_0x33e211('0x148b')]==0x1?_0x40a033[_0x33e211('0x16a7')][0x0]:null,_0x18b9bf[_0x33e211('0xb3d')]=_0x130f8f[_0x33e211('0xd31')](_0x18b9bf['userProfileSection']?_0x18b9bf[_0x33e211('0xb59')][_0x33e211('0xb3d')]:null);_0x130f8f[_0x33e211('0x179e')](_0x33e211('0xd14'))?_0x18b9bf[_0x33e211('0xa16')]={'type':_0x33e211('0x1a7a'),'sort':_0x33e211('0x7e8'),'limit':0xa,'page':0x1}:_0x18b9bf[_0x33e211('0xa16')]={'id':_0x18b9bf[_0x33e211('0x15a5')]['id'],'channel':_0x33e211('0x2801'),'type':_0x33e211('0x1a7a'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x18b9bf[_0x33e211('0x425')]=_0x2f2e03,_0x18b9bf[_0x33e211('0x23cf')]=_0x2d0e6c,_0x18b9bf[_0x33e211('0x9c')]=_0x461ee6,_0x18b9bf[_0x33e211('0x45a')]=_0x202be1,_0x18b9bf['updateQueue']=_0x51315a,_0x18b9bf[_0x33e211('0x284a')]=_0x354e45,_0x18b9bf[_0x33e211('0xc76')]=_0x225c9b,_0x18b9bf['onRemoveMember']=_0x42df97,_0x18b9bf['onPause']=_0x453d39,_0x18b9bf[_0x33e211('0x1707')]=_0x5c4b14,_0x18b9bf[_0x33e211('0x1baf')]=_0x5abfed,_0x18b9bf[_0x33e211('0x696')]=_0x4de9bf,_0x18b9bf['order']=[],_0x32d445()[_0x33e211('0xd1e')](_0x18b9bf['queues'],function(_0x4676b9){var _0x42eb32=_0x33e211;_0x18b9bf[_0x42eb32('0x1b03')][_0x42eb32('0xb76')](_0x4676b9['id']);}),_0xefcaaa['on'](_0x33e211('0x1d03'),_0x18b9bf[_0x33e211('0x284a')]),_0xefcaaa['on'](_0x33e211('0x17d3'),_0x18b9bf[_0x33e211('0xc76')]),_0xefcaaa['on'](_0x33e211('0x176a'),_0x18b9bf['onRemoveMember']),_0xefcaaa['on'](_0x33e211('0x1ce3'),_0x18b9bf[_0x33e211('0x69e')]),_0xefcaaa['on']('userVoiceQueue:remove',_0x18b9bf[_0x33e211('0x1baf')]),_0xefcaaa['on'](_0x33e211('0x2161'),_0x18b9bf['onLogin']);function _0x4de9bf(){var _0x4a86c2=_0x33e211,_0x92a846=[];return _0x32d445()['forIn'](_0x18b9bf[_0x4a86c2('0x671')],function(_0x540acf,_0x2a69f0){var _0x4da201=_0x4a86c2;_0x540acf[_0x4da201('0x1cf8')]=0x0,_0x540acf['loggedInDb']=0x0,_0x18b9bf[_0x4da201('0x671')][_0x2a69f0][_0x4da201('0x29b')]={},_0x92a846[_0x4da201('0xb76')](_0x42c1a3['smsQueue'][_0x4da201('0xb5d')]({'id':_0x2a69f0})['$promise']),_0x18b9bf['rpcQueues'][_0x2a69f0]&&_0x32d445()[_0x4da201('0x1d8')](_0x540acf,_0x32d445()['pick'](_0x18b9bf[_0x4da201('0x146c')][_0x2a69f0],_0x51b7a8));}),_0x62afa[_0x4a86c2('0xf0e')](_0x92a846)[_0x4a86c2('0xe19')](function(_0x23aa37){var _0x442b04=_0x4a86c2;for(var _0x13e666=0x0;_0x13e666<_0x23aa37[_0x442b04('0x25ae')];_0x13e666+=0x1){for(var _0x1b7a96=0x0;_0x1b7a96<_0x23aa37[_0x13e666][_0x442b04('0x16a7')][_0x442b04('0x25ae')];_0x1b7a96++){_0x23aa37[_0x13e666]['rows'][_0x1b7a96][_0x442b04('0x1cf8')]&&_0x18b9bf[_0x442b04('0x671')][_0x23aa37[_0x13e666]['rows'][_0x1b7a96][_0x442b04('0x6a7')]][_0x442b04('0x1cf8')]++,_0x18b9bf[_0x442b04('0x671')][_0x23aa37[_0x13e666]['rows'][_0x1b7a96][_0x442b04('0x6a7')]]['loggedInDb']++,_0x18b9bf[_0x442b04('0x671')][_0x23aa37[_0x13e666][_0x442b04('0x16a7')][_0x1b7a96][_0x442b04('0x6a7')]][_0x442b04('0x29b')][_0x23aa37[_0x13e666][_0x442b04('0x16a7')][_0x1b7a96][_0x442b04('0x43d')]]=_0x23aa37[_0x13e666][_0x442b04('0x16a7')][_0x1b7a96][_0x442b04('0x6a7')];}}})['catch'](function(_0x568081){var _0x366708=_0x4a86c2;console[_0x366708('0x8c8')](_0x568081);});}function _0x354e45(_0x3cfbd7){var _0x4c5384=_0x33e211;_0x18b9bf[_0x4c5384('0x671')][_0x3cfbd7['id']]&&_0x32d445()[_0x4c5384('0x1d8')](_0x18b9bf[_0x4c5384('0x671')][_0x3cfbd7['id']],_0x32d445()['pick'](_0x3cfbd7,_0x51b7a8));}function _0x225c9b(_0x406bab){var _0x379443=_0x33e211;_0x18b9bf[_0x379443('0x671')][_0x406bab['SmsQueueId']]&&_0x18b9bf[_0x379443('0x671')][_0x406bab['SmsQueueId']]['loggedInDb']++;}function _0x42df97(_0x2ab940){var _0x23bf83=_0x33e211;_0x18b9bf[_0x23bf83('0x671')][_0x2ab940[_0x23bf83('0x6a7')]]&&_0x18b9bf['queues'][_0x2ab940[_0x23bf83('0x6a7')]]['loggedInDb']--;}function _0x453d39(_0x46f0ac){var _0x339988=_0x33e211;console[_0x339988('0x1fe9')]('onPause',_0x46f0ac);if(_0x46f0ac[_0x339988('0x1b8d')])_0x32d445()[_0x339988('0xd1e')](_0x18b9bf['queues'],function(_0x58c920){var _0x25d01d=_0x339988;_0x58c920[_0x25d01d('0x29b')][_0x46f0ac['id']]&&(_0x58c920[_0x25d01d('0x1cf8')]+=0x1,console[_0x25d01d('0x1fe9')](_0x25d01d('0x1c98')));});else!_0x46f0ac[_0x339988('0x1b8d')]&&_0x32d445()['forIn'](_0x18b9bf['queues'],function(_0x277372){var _0x860f36=_0x339988;_0x277372[_0x860f36('0x29b')][_0x46f0ac['id']]&&(_0x277372[_0x860f36('0x1cf8')]>0x0&&(_0x277372['paused']-=0x1,console[_0x860f36('0x1fe9')](_0x860f36('0x2471'))));});}function _0x5c4b14(_0x47e41d){var _0xd8a1d4=_0x33e211;console[_0xd8a1d4('0x1fe9')](_0xd8a1d4('0xb90'),_0x47e41d),_0x18b9bf[_0xd8a1d4('0x671')][_0x47e41d[_0xd8a1d4('0x6a7')]]&&(_0x18b9bf['queues'][_0x47e41d[_0xd8a1d4('0x6a7')]][_0xd8a1d4('0x120f')]+=0x1,_0x18b9bf[_0xd8a1d4('0x671')][_0x47e41d[_0xd8a1d4('0x6a7')]][_0xd8a1d4('0x29b')][_0x47e41d[_0xd8a1d4('0x43d')]]=_0x47e41d[_0xd8a1d4('0x6a7')]);}function _0x5abfed(_0x680f2){var _0x8e7476=_0x33e211;console['log'](_0x8e7476('0x1baf'),_0x680f2),_0x18b9bf[_0x8e7476('0x671')][_0x680f2[_0x8e7476('0x6a7')]]&&_0x18b9bf[_0x8e7476('0x671')][_0x680f2[_0x8e7476('0x6a7')]][_0x8e7476('0x120f')]>0x0&&(_0x18b9bf['queues'][_0x680f2[_0x8e7476('0x6a7')]][_0x8e7476('0x120f')]-=0x1,delete _0x18b9bf[_0x8e7476('0x671')][_0x680f2['SmsQueueId']]['agents'][_0x680f2[_0x8e7476('0x43d')]]);}var _0x4d9ecd=!![],_0x5df23b=0x1;_0x16b70d[_0x33e211('0x107')]('vm.query.filter',function(_0x4c4a9d,_0xd88097){var _0x1bebfa=_0x33e211;_0x4d9ecd?_0x2877e1(function(){_0x4d9ecd=![];}):(!_0xd88097&&(_0x5df23b=_0x18b9bf[_0x1bebfa('0xa16')][_0x1bebfa('0xc08')]),_0x4c4a9d!==_0xd88097&&(_0x18b9bf[_0x1bebfa('0xa16')][_0x1bebfa('0xc08')]=0x1),!_0x4c4a9d&&(_0x18b9bf['query']['page']=_0x5df23b),_0x18b9bf[_0x1bebfa('0x23cf')]());});function _0x2f2e03(_0x2b5603){var _0x4719f9=_0x33e211;_0x18b9bf[_0x4719f9('0x148b')]=_0x2b5603[_0x4719f9('0x148b')],_0x18b9bf[_0x4719f9('0x671')]=_0x2b5603?_0x32d445()[_0x4719f9('0x226f')](_0x2b5603[_0x4719f9('0x16a7')]?_0x2b5603['rows']:[],'id'):{};if(_0x2b5603[_0x4719f9('0x16a7')]){_0x18b9bf[_0x4719f9('0x1b03')]=[];for(var _0x1b120c=0x0;_0x1b120c<_0x2b5603[_0x4719f9('0x16a7')][_0x4719f9('0x25ae')];_0x1b120c++){_0x18b9bf[_0x4719f9('0x1b03')][_0x4719f9('0xb76')](_0x2b5603['rows'][_0x1b120c]['id']);}}_0x4de9bf();}function _0x2d0e6c(){var _0x26da9b=_0x33e211;_0x18b9bf[_0x26da9b('0xa16')][_0x26da9b('0xab0')]=(_0x18b9bf[_0x26da9b('0xa16')][_0x26da9b('0xc08')]-0x1)*_0x18b9bf[_0x26da9b('0xa16')][_0x26da9b('0x1b6d')],_0x130f8f[_0x26da9b('0x179e')](_0x26da9b('0xd14'))?_0x18b9bf['promise']=_0x42c1a3['smsQueue']['get'](_0x18b9bf['query'],_0x2f2e03)[_0x26da9b('0xe59')]:(_0x18b9bf[_0x26da9b('0xa16')]['id']=_0x18b9bf[_0x26da9b('0x154f')]['id'],_0x18b9bf[_0x26da9b('0xa16')]['section']=_0x26da9b('0x1f11'),_0x18b9bf[_0x26da9b('0x9c8')]=_0x42c1a3[_0x26da9b('0x154f')]['getResources'](_0x18b9bf['query'],_0x2f2e03)['$promise']);}function _0x461ee6(_0x5d5fb8,_0x461697){var _0x51f107=_0x33e211;_0x1e74f7['show']({'controller':_0x51f107('0x160e'),'controllerAs':'vm','templateUrl':_0x568c9d,'parent':angular['element'](_0x22c688[_0x51f107('0x19b2')]),'targetEvent':_0x5d5fb8,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x461697,'smsQueues':_0x32d445()[_0x51f107('0x1b79')](_0x18b9bf[_0x51f107('0x671')]),'license':null,'setting':null,'crudPermissions':_0x18b9bf[_0x51f107('0xb3d')]}});}function _0x202be1(_0x54ec42,_0x5d9b88){var _0x4e408d=_0x33e211;_0x1e74f7[_0x4e408d('0x26b2')]({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x22f1cc,'parent':angular['element'](_0x22c688['body']),'targetEvent':_0x54ec42,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x5d9b88,'smsQueues':_0x18b9bf[_0x4e408d('0x671')]?_0x18b9bf[_0x4e408d('0x671')][_0x4e408d('0x16a7')]:[],'realtime':![],'crudPermissions':_0x18b9bf['crudPermissions']}});}function _0x51315a(_0x1f60c6){var _0x4eb472=_0x33e211;return _0x42c1a3['smsQueue'][_0x4eb472('0xa70')](_0x1f60c6)[_0x4eb472('0xe59')][_0x4eb472('0xe19')](function(){var _0x336f66=_0x4eb472;_0x51a6e4[_0x336f66('0x425')]({'title':_0x336f66('0x56a'),'msg':_0x1f60c6[_0x336f66('0x2623')]?_0x1f60c6[_0x336f66('0x2623')]+_0x336f66('0x283b'):''});})[_0x4eb472('0x223b')](function(_0x24fa0f){var _0x3df132=_0x4eb472;_0x51a6e4[_0x3df132('0x8c8')]({'title':_0x3df132('0x2780'),'msg':_0x24fa0f[_0x3df132('0x27e8')]});});}_0x16b70d[_0x33e211('0xb2b')]('$destroy',function(){var _0x2985d6=_0x33e211;_0xefcaaa[_0x2985d6('0x2121')](_0x2985d6('0x1d03')),_0xefcaaa['removeAllListeners']('userSmsQueue:remove'),_0xefcaaa['removeAllListeners']('userSmsQueue:save'),_0xefcaaa['removeAllListeners']('user:update'),_0xefcaaa[_0x2985d6('0x2121')](_0x2985d6('0x1583')),_0xefcaaa[_0x2985d6('0x2121')](_0x2985d6('0x2161'));});}const _0x5d204d=_0xe223d4;function _0x3df6f9(){var _0x232015=_0xb635d2;return{'status':{'registered':_0x232015('0xcf5'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':'red-300-fg\x20icon-close-circle','reachable':_0x232015('0xcf5'),'unreachable':_0x232015('0x10ea'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x232015('0x15af'),'busy':_0x232015('0x441'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x232015('0x2740'),'ringing':_0x232015('0x84d'),'ringinuse':_0x232015('0x84d'),'onhold':_0x232015('0x90f')},'channelStatus':{'ring':_0x232015('0x84d'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x232015('0x2432')},'channelStatusOut':{'ring':_0x232015('0x24dc'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x232015('0x2432')}};}const _0xc89e83=_0x3df6f9;_0x3aa66c['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x46d')];function _0x3aa66c(_0x10e196,_0x3a67e9,_0x31e1f3){var _0x219986=_0xb635d2,_0x2e310c=this;_0x31e1f3[_0x219986('0x83c')](),_0x31e1f3[_0x219986('0x19d9')](),_0x2e310c[_0x219986('0xc7b')]=0x0;switch(_0x3a67e9['current'][_0x219986('0x2623')]){case'app.sms.realtime.agents':_0x2e310c['selectedTab']=0x0;break;case _0x219986('0x6c2'):_0x2e310c['selectedTab']=0x1;break;default:_0x2e310c[_0x219986('0xc7b')]=0x0,_0x3a67e9['go'](_0x219986('0x2403'));}_0x10e196[_0x219986('0x107')](_0x219986('0xa10'),function(_0x52a4d3,_0x596f31){var _0x47ed79=_0x219986;if(_0x52a4d3!==_0x596f31)switch(_0x52a4d3){case 0x0:_0x3a67e9['go'](_0x47ed79('0x2403'));break;case 0x1:_0x3a67e9['go']('app.sms.realtime.queues');break;default:_0x3a67e9['go'](_0x47ed79('0x2403'));}});}const _0x371d39=_0x3aa66c;_0x57a203[_0xb635d2('0xb0c')]=['$stateProvider'];function _0x57a203(_0x30f7a8){var _0x50f098=_0xb635d2;_0x30f7a8['state'](_0x50f098('0x1806'),{'url':_0x50f098('0x18ff'),'views':{'content@app':{'templateUrl':_0x2411d1,'controller':_0x50f098('0x288a')}},'resolve':{'userProfile':['apiResolver','Auth',function _0x28e9f3(_0x2a83a2,_0x557330){var _0x29ebfa=_0x50f098;return _0x557330[_0x29ebfa('0x179e')]('admin')?null:_0x2a83a2['resolve'](_0x29ebfa('0x455'),{'fields':_0x29ebfa('0x1b71'),'id':_0x557330[_0x29ebfa('0x1ef8')]()[_0x29ebfa('0x1d04')]});}],'userProfileSection':[_0x50f098('0x292'),_0x50f098('0x2730'),function _0x4a88df(_0x2f83a6,_0x39182c){var _0xca84ab=_0x50f098;return _0x39182c[_0xca84ab('0x179e')](_0xca84ab('0xd14'))?null:_0x2f83a6['resolve'](_0xca84ab('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x39182c['getCurrentUser']()[_0xca84ab('0x1d04')],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})[_0x50f098('0x1d72')](_0x50f098('0x2403'),{'url':'/agents','controller':_0x50f098('0xd57'),'templateUrl':_0x38c1d8,'resolve':{'pauses':[_0x50f098('0x292'),function _0x54c45c(_0x4e59b3){return _0x4e59b3['resolve']('pause@get',{'nolimit':!![]});}],'agents':[_0x50f098('0x292'),'Auth',function _0x561f2d(_0x296187,_0x515a95){var _0xa9f81d=_0x50f098;return _0x515a95[_0xa9f81d('0x179e')](_0xa9f81d('0xd14'))?_0x296187['resolve'](_0xa9f81d('0x24a9'),{'fields':_0xa9f81d('0x11bb'),'role':'agent','sort':'fullname','nolimit':!![]}):_0x296187['resolve']('userProfile@getResources',{'id':_0x515a95['getCurrentUser']()[_0xa9f81d('0x1d04')],'section':_0xa9f81d('0xd61'),'fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':'agent','sort':_0xa9f81d('0xe11'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x50f098('0x2730'),function _0x146f0b(_0x3dbd46,_0x205044){var _0x39f439=_0x50f098;return _0x205044['hasRole'](_0x39f439('0xd14'))?null:_0x3dbd46['resolve'](_0x39f439('0x455'),{'fields':'id,name,crudPermissions','id':_0x205044[_0x39f439('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x50f098('0x292'),_0x50f098('0x2730'),function _0x53efb2(_0x51ade7,_0x22e06c){var _0x512883=_0x50f098;return _0x22e06c[_0x512883('0x179e')](_0x512883('0xd14'))?null:_0x51ade7[_0x512883('0xcd6')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x22e06c[_0x512883('0x1ef8')]()[_0x512883('0x1d04')],'sectionId':0xca});}],'rpcAgents':[_0x50f098('0x292'),function _0xacd55a(_0xa96948){return _0xa96948['resolve']('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x2c6})[_0x50f098('0x1d72')](_0x50f098('0x6c2'),{'url':_0x50f098('0x17e4'),'controller':_0x50f098('0x85'),'templateUrl':_0x52b9e7,'resolve':{'queues':[_0x50f098('0x292'),'Auth',function _0x588239(_0x29623b,_0x558a76){var _0x4ab8fc=_0x50f098;return _0x558a76['hasRole'](_0x4ab8fc('0xd14'))?_0x29623b['resolve'](_0x4ab8fc('0x1376'),{'type':'inbound','sort':_0x4ab8fc('0x7e8'),'limit':0xa,'offset':0x0}):_0x29623b[_0x4ab8fc('0xcd6')]('userProfile@getResources',{'id':_0x558a76[_0x4ab8fc('0x1ef8')]()[_0x4ab8fc('0x1d04')],'section':_0x4ab8fc('0x1f11'),'channel':'sms','type':_0x4ab8fc('0x1a7a'),'sort':_0x4ab8fc('0x7e8'),'limit':0xa,'page':0x1});}],'userProfile':[_0x50f098('0x292'),_0x50f098('0x2730'),function _0x566198(_0x1f748e,_0x27d99b){var _0x2ef658=_0x50f098;return _0x27d99b[_0x2ef658('0x179e')](_0x2ef658('0xd14'))?null:_0x1f748e['resolve'](_0x2ef658('0x455'),{'fields':'id,name,crudPermissions','id':_0x27d99b[_0x2ef658('0x1ef8')]()[_0x2ef658('0x1d04')]});}],'userProfileSection':[_0x50f098('0x292'),'Auth',function _0x19d7c0(_0x1ac0c0,_0x43c2a5){var _0x3098d1=_0x50f098;return _0x43c2a5[_0x3098d1('0x179e')](_0x3098d1('0xd14'))?null:_0x1ac0c0[_0x3098d1('0xcd6')](_0x3098d1('0x264e'),{'fields':_0x3098d1('0x12d6'),'userProfileId':_0x43c2a5[_0x3098d1('0x1ef8')]()[_0x3098d1('0x1d04')],'sectionId':0x2bd});}],'rpcQueues':['apiResolver',function _0x26aa7d(_0x3ed7be){var _0x567b86=_0x50f098;return _0x3ed7be[_0x567b86('0xcd6')](_0x567b86('0x274a'));}]},'authenticate':!![],'permissionId':0x2c6});}angular[_0xb635d2('0x153f')](_0xb635d2('0x1806'),[])[_0xb635d2('0x1990')](_0x57a203)[_0xb635d2('0x1a79')](_0xb635d2('0x2537'),_0x13d3c8)[_0xb635d2('0x1a79')](_0xb635d2('0x1553'),_0x5d204d)[_0xb635d2('0x1324')](_0xb635d2('0x20d'),_0xc89e83)[_0xb635d2('0x1a79')](_0xb635d2('0xa6'),_0x371d39);const _0x53abf3=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues-[chunkhash].html',_0x5ae2a2=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/view.html/view-[chunkhash].html',_0xc73107=_0x59426a['p']+_0xb635d2('0x430'),_0x7af933=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html/view-[chunkhash].html';_0x4643da[_0xb635d2('0xb0c')]=['$scope','$state',_0xb635d2('0x2276'),'$mdDialog','$q','$translate','toasty',_0xb635d2('0x25db'),_0xb635d2('0x1437'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x4643da(_0x19287b,_0x3f432e,_0x29c0a8,_0x435822,_0x908902,_0x440006,_0x3bceab,_0x4f86e4,_0x2d3b34,_0x32e47d,_0x4fec52,_0x2cfa33,_0x353934,_0x5a49a6){var _0x3f9293=_0xb635d2,_0xdb3d3=this;_0xdb3d3[_0x3f9293('0x15a5')]=_0x4fec52['getCurrentUser'](),_0xdb3d3['errors']=[],_0xdb3d3['setting']=_0x353934,_0xdb3d3[_0x3f9293('0x5c1')]=_0x2cfa33,_0xdb3d3['crudPermissions']=_0x5a49a6,_0xdb3d3[_0x3f9293('0x1ccb')]={},_0xdb3d3[_0x3f9293('0x25ac')]=_0xdb3d3[_0x3f9293('0x22f1')]&&_0xdb3d3[_0x3f9293('0x22f1')][_0x3f9293('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xdb3d3[_0x3f9293('0x13e4')]=_0x3f9293('0x695'),_0xdb3d3[_0x3f9293('0x1437')]=angular[_0x3f9293('0x89')](_0x2d3b34),_0xdb3d3[_0x3f9293('0x25db')]=_0x4f86e4,_0xdb3d3['newSmsAccount']=![];!_0xdb3d3[_0x3f9293('0x1437')]&&(_0xdb3d3[_0x3f9293('0x1437')]={'remote':_0x29c0a8[_0x3f9293('0xec0')]()+_0x3f9293('0x21a8')+_0x29c0a8[_0x3f9293('0x3b7')]()+(_0x29c0a8['port']()?':'+_0x29c0a8['port']():''),'type':_0x3f9293('0x15ac'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0xdb3d3[_0x3f9293('0x13e4')]='SMS.NEW_SMSACCOUNT',_0xdb3d3[_0x3f9293('0x1ed3')]=!![]);_0x3f432e[_0x3f9293('0x2ef')]['id']&&(_0xdb3d3[_0x3f9293('0x1437')][_0x3f9293('0x26a9')]=_0x3f432e['params']['id']);_0xdb3d3[_0x3f9293('0x24f5')]=_0xdd45ca,_0xdb3d3[_0x3f9293('0xef2')]=_0x170746,_0xdb3d3[_0x3f9293('0x1e9a')]=_0x1c39d4,_0xdb3d3['getDateFromString']=_0x84f8c9,_0xdb3d3[_0x3f9293('0x2584')]=_0x1cb227,_0x4fec52[_0x3f9293('0x179e')](_0x3f9293('0xd14'))?_0x32e47d[_0x3f9293('0x1bbd')][_0x3f9293('0x22d5')]({'fields':_0x3f9293('0x104'),'sort':'name'})[_0x3f9293('0xe59')][_0x3f9293('0xe19')](function(_0x5bb37b){var _0x56086b=_0x3f9293;_0xdb3d3[_0x56086b('0x9f8')]=_0x5bb37b[_0x56086b('0x16a7')]||[];})[_0x3f9293('0x223b')](function(_0x3755c2){var _0x24638c=_0x3f9293;_0x3bceab[_0x24638c('0x8c8')]({'title':_0x3755c2[_0x24638c('0x2833')]?_0x24638c('0x27f2')+_0x3755c2[_0x24638c('0x2833')]+_0x24638c('0x1b7c')+_0x3755c2[_0x24638c('0x1fd7')]:'SYSTEM:GET_LISTS','msg':_0x3755c2[_0x24638c('0x11d0')]?JSON[_0x24638c('0x3ad')](_0x3755c2[_0x24638c('0x11d0')]):_0x3755c2[_0x24638c('0x94f')]()});}):_0x32e47d['cmList'][_0x3f9293('0x22d5')]({'fields':_0x3f9293('0x104'),'sort':'name'})[_0x3f9293('0xe59')][_0x3f9293('0xe19')](function(_0x5b7424){var _0x30d113=_0x3f9293;_0xdb3d3[_0x30d113('0x9f8')]=_0x5b7424['rows']||[];})[_0x3f9293('0xe19')](function(){var _0x2a589f=_0x3f9293;return _0x32e47d[_0x2a589f('0xb59')][_0x2a589f('0x22d5')]({'userProfileId':_0xdb3d3['currentUser']['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x3f9293('0xe19')](function(_0x1b18e2){var _0x23c576=_0x3f9293,_0x420bbf=_0x1b18e2&&_0x1b18e2[_0x23c576('0x16a7')]?_0x1b18e2[_0x23c576('0x16a7')][0x0]:null;if(!_0x420bbf){var _0x3ec449=[],_0x370530=null;_0xdb3d3[_0x23c576('0x1437')]&&(_0x370530=_0x32d445()[_0x23c576('0xf15')](_0xdb3d3[_0x23c576('0x9f8')],{'id':Number(_0xdb3d3[_0x23c576('0x1437')][_0x23c576('0x2463')])}));for(var _0x7a198c=0x0;_0x7a198c<_0xdb3d3[_0x23c576('0x9f8')][_0x23c576('0x25ae')];_0x7a198c++){_0x370530&&_0xdb3d3[_0x23c576('0x9f8')][_0x7a198c]['id']===_0x370530['id']&&(_0xdb3d3[_0x23c576('0x9f8')][_0x7a198c][_0x23c576('0x1e9d')]=![],_0x3ec449[_0x23c576('0xb76')](_0xdb3d3[_0x23c576('0x9f8')][_0x7a198c]));}_0xdb3d3['lists']=_0x3ec449;}else{if(!_0x420bbf[_0x23c576('0x11fd')])return _0x32e47d[_0x23c576('0xd49')][_0x23c576('0x22d5')]({'sectionId':_0x420bbf['id']})['$promise'][_0x23c576('0xe19')](function(_0x5f2434){var _0x536c5f=_0x23c576,_0x244937=_0x32d445()[_0x536c5f('0x65a')](_0x5f2434[_0x536c5f('0x16a7')],function(_0x5432b0){var _0x3e6826=_0x536c5f;return _0x32d445()['find'](_0xdb3d3[_0x3e6826('0x9f8')],{'id':_0x5432b0[_0x3e6826('0x1104')]});}),_0x4dc631=null;_0xdb3d3[_0x536c5f('0x1437')]&&(_0x4dc631=_0x32d445()[_0x536c5f('0xf15')](_0xdb3d3[_0x536c5f('0x9f8')],{'id':Number(_0xdb3d3[_0x536c5f('0x1437')]['ListId'])}));if(_0x4dc631&&!_0x32d445()['some'](_0x244937,['id',_0x4dc631['id']])){var _0x4747a2=_0x32d445()[_0x536c5f('0xf15')](_0xdb3d3[_0x536c5f('0x9f8')],{'id':_0x4dc631['id']});_0x4747a2[_0x536c5f('0x1e9d')]=![],_0x244937[_0x536c5f('0xb76')](_0x4747a2);}_0xdb3d3[_0x536c5f('0x9f8')]=_0x244937;});}})['catch'](function(_0x571031){var _0x7629a9=_0x3f9293;_0x3bceab[_0x7629a9('0x8c8')]({'title':_0x571031[_0x7629a9('0x2833')]?_0x7629a9('0x27f2')+_0x571031[_0x7629a9('0x2833')]+_0x7629a9('0x1b7c')+_0x571031[_0x7629a9('0x1fd7')]:_0x7629a9('0xd65'),'msg':_0x571031[_0x7629a9('0x11d0')]?JSON[_0x7629a9('0x3ad')](_0x571031[_0x7629a9('0x11d0')]):_0x571031[_0x7629a9('0x94f')]()});});function _0xdd45ca(){var _0x1b6e10=_0x3f9293;_0xdb3d3[_0x1b6e10('0xcd2')]=[],_0x32e47d[_0x1b6e10('0x1437')][_0x1b6e10('0xe5e')](_0xdb3d3[_0x1b6e10('0x1437')])[_0x1b6e10('0xe59')][_0x1b6e10('0xe19')](function(_0x342c09){var _0x4ddc2f=_0x1b6e10;_0xdb3d3[_0x4ddc2f('0x25db')][_0x4ddc2f('0x14c9')](_0x342c09[_0x4ddc2f('0x250e')]()),_0x3bceab[_0x4ddc2f('0x425')]({'title':_0x4ddc2f('0x12e1'),'msg':_0xdb3d3[_0x4ddc2f('0x1437')][_0x4ddc2f('0x2623')]?_0xdb3d3[_0x4ddc2f('0x1437')]['name']+_0x4ddc2f('0x105f'):''}),_0x1cb227(_0x342c09);})[_0x1b6e10('0x223b')](function(_0x1d5c35){var _0x1cebad=_0x1b6e10;if(_0x1d5c35[_0x1cebad('0x11d0')]&&_0x1d5c35[_0x1cebad('0x11d0')][_0x1cebad('0xcd2')]&&_0x1d5c35['data'][_0x1cebad('0xcd2')][_0x1cebad('0x25ae')]){_0xdb3d3[_0x1cebad('0xcd2')]=_0x1d5c35[_0x1cebad('0x11d0')][_0x1cebad('0xcd2')]||[{'message':_0x1d5c35[_0x1cebad('0x94f')](),'type':_0x1cebad('0x2701')}];for(var _0x4921fa=0x0;_0x4921fa<_0x1d5c35[_0x1cebad('0x11d0')][_0x1cebad('0xcd2')][_0x1cebad('0x25ae')];_0x4921fa+=0x1){_0x3bceab['error']({'title':_0x1d5c35[_0x1cebad('0x11d0')][_0x1cebad('0xcd2')][_0x4921fa]['type'],'msg':_0x1d5c35[_0x1cebad('0x11d0')]['errors'][_0x4921fa]['message']});}}else _0x3bceab[_0x1cebad('0x8c8')]({'title':_0x1d5c35['status']?'API:'+_0x1d5c35['status']+_0x1cebad('0x1b7c')+_0x1d5c35[_0x1cebad('0x1fd7')]:_0x1cebad('0x2701'),'msg':_0x1d5c35[_0x1cebad('0x11d0')]?JSON[_0x1cebad('0x3ad')](_0x1d5c35[_0x1cebad('0x11d0')][_0x1cebad('0x27e8')]):_0x1d5c35[_0x1cebad('0x94f')]()});});}function _0x170746(){var _0x4396bd=_0x3f9293;_0xdb3d3[_0x4396bd('0xcd2')]=[],_0x32e47d['smsAccount']['update']({'id':_0xdb3d3[_0x4396bd('0x1437')]['id']},_0xdb3d3['smsAccount'])[_0x4396bd('0xe59')]['then'](function(_0x1939a5){var _0x54ac8f=_0x4396bd,_0x398cef=_0x32d445()[_0x54ac8f('0xf15')](_0xdb3d3[_0x54ac8f('0x25db')],{'id':_0x1939a5['id']});_0x398cef&&_0x32d445()[_0x54ac8f('0x1d8')](_0x398cef,_0x32d445()[_0x54ac8f('0xed5')](_0x1939a5['toJSON'](),_0x32d445()['keys'](_0x398cef))),_0x3bceab[_0x54ac8f('0x425')]({'title':_0x54ac8f('0x1131'),'msg':_0xdb3d3[_0x54ac8f('0x1437')][_0x54ac8f('0x2623')]?_0xdb3d3[_0x54ac8f('0x1437')][_0x54ac8f('0x2623')]+_0x54ac8f('0x1c19'):''}),_0x1cb227(_0x1939a5);})[_0x4396bd('0x223b')](function(_0x1025e2){var _0x345479=_0x4396bd;if(_0x1025e2[_0x345479('0x11d0')]&&_0x1025e2[_0x345479('0x11d0')][_0x345479('0xcd2')]&&_0x1025e2[_0x345479('0x11d0')][_0x345479('0xcd2')]['length']){_0xdb3d3[_0x345479('0xcd2')]=_0x1025e2[_0x345479('0x11d0')][_0x345479('0xcd2')]||[{'message':_0x1025e2[_0x345479('0x94f')](),'type':_0x345479('0x12c0')}];for(var _0x2f7414=0x0;_0x2f7414<_0x1025e2[_0x345479('0x11d0')][_0x345479('0xcd2')][_0x345479('0x25ae')];_0x2f7414++){_0x3bceab[_0x345479('0x8c8')]({'title':_0x1025e2['data'][_0x345479('0xcd2')][_0x2f7414][_0x345479('0x62e')],'msg':_0x1025e2[_0x345479('0x11d0')][_0x345479('0xcd2')][_0x2f7414][_0x345479('0x27e8')]});}}else _0x3bceab[_0x345479('0x8c8')]({'title':_0x1025e2[_0x345479('0x2833')]?_0x345479('0x27f2')+_0x1025e2[_0x345479('0x2833')]+_0x345479('0x1b7c')+_0x1025e2[_0x345479('0x1fd7')]:'api.smsAccount.update','msg':_0x1025e2['data']?JSON['stringify'](_0x1025e2[_0x345479('0x11d0')][_0x345479('0x27e8')]):_0x1025e2[_0x345479('0x94f')]()});});}function _0x1c39d4(_0xa2c7d3){var _0xfb89d0=_0x3f9293;_0xdb3d3[_0xfb89d0('0xcd2')]=[];var _0x34d020=_0x435822[_0xfb89d0('0xa5')]()[_0xfb89d0('0x13e4')]('Are\x20you\x20sure?')['content']('The\x20smsAccount\x20will\x20be\x20deleted.')[_0xfb89d0('0x4d1')](_0xfb89d0('0x128f'))['ok'](_0xfb89d0('0x2198'))[_0xfb89d0('0x2c1')]('Cancel')[_0xfb89d0('0x1345')](_0xa2c7d3);_0x435822[_0xfb89d0('0x26b2')](_0x34d020)[_0xfb89d0('0xe19')](function(){var _0xa123dd=_0xfb89d0;_0x32e47d[_0xa123dd('0x1437')][_0xa123dd('0x229e')]({'id':_0xdb3d3[_0xa123dd('0x1437')]['id']})[_0xa123dd('0xe59')][_0xa123dd('0xe19')](function(){var _0x44e408=_0xa123dd;_0x32d445()[_0x44e408('0xa8b')](_0xdb3d3[_0x44e408('0x25db')],{'id':_0xdb3d3[_0x44e408('0x1437')]['id']}),_0x3bceab[_0x44e408('0x425')]({'title':'SmsAccount\x20properly\x20deleted!','msg':(_0xdb3d3['smsAccount']['name']||_0x44e408('0x1437'))+_0x44e408('0x2182')}),_0x1cb227(_0xdb3d3[_0x44e408('0x1437')]);})[_0xa123dd('0x223b')](function(_0x4e93aa){var _0x55a709=_0xa123dd;if(_0x4e93aa[_0x55a709('0x11d0')]&&_0x4e93aa[_0x55a709('0x11d0')][_0x55a709('0xcd2')]&&_0x4e93aa[_0x55a709('0x11d0')]['errors'][_0x55a709('0x25ae')]){_0xdb3d3['errors']=_0x4e93aa[_0x55a709('0x11d0')][_0x55a709('0xcd2')]||[{'message':_0x4e93aa[_0x55a709('0x94f')](),'type':_0x55a709('0x2600')}];for(var _0x67836b=0x0;_0x67836b<_0x4e93aa[_0x55a709('0x11d0')][_0x55a709('0xcd2')]['length'];_0x67836b++){_0x3bceab['error']({'title':_0x4e93aa[_0x55a709('0x11d0')][_0x55a709('0xcd2')][_0x67836b][_0x55a709('0x62e')],'msg':_0x4e93aa[_0x55a709('0x11d0')][_0x55a709('0xcd2')][_0x67836b][_0x55a709('0x27e8')]});}}else _0x3bceab[_0x55a709('0x8c8')]({'title':_0x4e93aa['status']?_0x55a709('0x27f2')+_0x4e93aa[_0x55a709('0x2833')]+_0x55a709('0x1b7c')+_0x4e93aa[_0x55a709('0x1fd7')]:_0x55a709('0x2600'),'msg':_0x4e93aa[_0x55a709('0x11d0')]?JSON[_0x55a709('0x3ad')](_0x4e93aa[_0x55a709('0x11d0')]['message']):_0x4e93aa[_0x55a709('0x27e8')]||_0x4e93aa[_0x55a709('0x94f')]()});});},function(){});}function _0x84f8c9(_0x269387){return _0x269387===null?undefined:new Date(_0x269387);}function _0x1cb227(_0x16cb15){_0x435822['hide'](_0x16cb15);}}const _0x3151ac=_0x4643da,_0x304b69=_0x59426a['p']+_0xb635d2('0x18b1'),_0x792eee=_0x59426a['p']+_0xb635d2('0x194f'),_0x43c9c3=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html',_0x488449=_0x59426a['p']+_0xb635d2('0xc7c'),_0x55e7f1=_0x59426a['p']+_0xb635d2('0x2166'),_0x467611=_0x59426a['p']+_0xb635d2('0x19d4'),_0x31dd98=_0x59426a['p']+_0xb635d2('0x1ce'),_0x1f791b=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html',_0x5d57f3=_0x59426a['p']+_0xb635d2('0xf82'),_0x3edb01=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html',_0x2fc14a=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html',_0x48a068=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html';_0x553c45[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),'Auth'];var _0x48d9af={'agent':_0x304b69,'amazonlex':_0x792eee,'autoreply':_0x43c9c3,'close':_0x488449,'dialogflow':_0x55e7f1,'gotoif':_0x467611,'gotop':_0x31dd98,'interval':_0x1f791b,'noop':_0x5d57f3,'queue':_0x3edb01,'system':_0x2fc14a,'tag':_0x48a068};function _0x553c45(_0x48ae81,_0x37c750,_0xaa3492,_0x6cab2e,_0x5379bc){var _0x5abb25=_0xb635d2,_0x2f0472=this;_0x2f0472[_0x5abb25('0x15a5')]=_0x5379bc[_0x5abb25('0x1ef8')](),_0x2f0472[_0x5abb25('0x1437')]={},_0x2f0472[_0x5abb25('0x20c8')]={'count':0x0,'rows':[]},_0x2f0472[_0x5abb25('0x2203')]=[],_0x2f0472['crudPermissions'],_0x2f0472[_0x5abb25('0xa16')]={'sort':_0x5abb25('0xb33')},_0x2f0472[_0x5abb25('0x23bb')]=_0x32d445()[_0x5abb25('0x1337')](_0x32d445()[_0x5abb25('0x14c')]([{'app':_0x5abb25('0x2102'),'appType':_0x5abb25('0x134c'),'types':[_0x5abb25('0x2210'),_0x5abb25('0x261d'),_0x5abb25('0x15a8')],'fields':[],'isApp':![]},{'app':_0x5abb25('0xc09'),'appType':_0x5abb25('0xc09'),'type':'noop','icon':_0x5abb25('0x27be'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x5abb25('0x653'),'name':_0x5abb25('0x2'),'type':'text','param':0x0}]},{'app':'system','appType':_0x5abb25('0x1917'),'type':_0x5abb25('0x1917'),'icon':_0x5abb25('0x27be'),'interval':_0x5abb25('0x2292'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x5abb25('0x19a5'),'key':_0x5abb25('0x2623')},'route':_0x5abb25('0x19a5'),'filters':{'fields':_0x5abb25('0x104'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x5abb25('0x19b8'),'name':'command','type':_0x5abb25('0x1bc6'),'required':!![],'param':0x0},{'title':_0x5abb25('0x1a9d'),'name':_0x5abb25('0x19a5'),'type':_0x5abb25('0x14b8'),'values':'variables','value':_0x5abb25('0x2328'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x5abb25('0x1b16')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x5abb25('0x16fe'),'appType':_0x5abb25('0x16fe'),'type':_0x5abb25('0x1fa1'),'icon':_0x5abb25('0x27be'),'interval':_0x5abb25('0x2292'),'isApp':!![],'fields':[{'title':'Priority','name':_0x5abb25('0xb33'),'type':_0x5abb25('0x1c60'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x5abb25('0x22c3'),'appType':_0x5abb25('0x22c3'),'type':'gotoif','icon':_0x5abb25('0x27be'),'interval':_0x5abb25('0x2292'),'isApp':!![],'fields':[{'title':'Condition','name':'condition','type':_0x5abb25('0x1bc6'),'required':!![],'param':0x0},{'title':_0x5abb25('0x50'),'name':_0x5abb25('0x50'),'type':_0x5abb25('0x1c60'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x5abb25('0x347'),'type':_0x5abb25('0x1c60'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x5abb25('0x26a8'),'appType':_0x5abb25('0x26a8'),'foreignKey':_0x5abb25('0x6a7'),'type':'queue','icon':'icon-apps','interval':_0x5abb25('0x2292'),'isApp':!![],'extraApi':[{'name':_0x5abb25('0x671'),'field':{'name':'queue','key':_0x5abb25('0x2623')},'route':_0x5abb25('0x19fb'),'filters':{'fields':_0x5abb25('0x1555'),'sort':_0x5abb25('0x2623'),'nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':_0x5abb25('0x9'),'name':_0x5abb25('0x26a8'),'type':_0x5abb25('0x14b8'),'values':_0x5abb25('0x671'),'value':_0x5abb25('0x15df'),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x5abb25('0x784'),'name':_0x5abb25('0x2058'),'type':_0x5abb25('0x1c60'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x5abb25('0x108'),'appType':_0x5abb25('0x108'),'type':'agent','foreignKey':'UserId','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x5abb25('0x108'),'key':'name'},'route':_0x5abb25('0x10c6'),'filters':{'fields':_0x5abb25('0x104'),'sort':_0x5abb25('0x2623'),'nolimit':!![],'role':_0x5abb25('0x108')},'permissions':{'section':0xca}}],'fields':[{'title':_0x5abb25('0x142e'),'name':_0x5abb25('0x108'),'type':_0x5abb25('0x14b8'),'values':_0x5abb25('0x29b'),'value':_0x5abb25('0xec8'),'option':_0x5abb25('0xec8'),'required':!![],'param':0x0},{'title':_0x5abb25('0x784'),'name':_0x5abb25('0x2058'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':'autoreply','type':'autoreply','icon':'icon-apps','interval':_0x5abb25('0x2292'),'isApp':!![],'fields':[{'title':'times','name':_0x5abb25('0x1ec4'),'type':_0x5abb25('0x2e6'),'defaultValue':'1','values':[{'option':_0x5abb25('0x12c2'),'value':'1'},{'option':_0x5abb25('0x2d2'),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0x5abb25('0x1bc6'),'type':_0x5abb25('0x777'),'required':!![],'param':0x1}]},{'app':_0x5abb25('0x1886'),'appType':_0x5abb25('0x1886'),'type':'close','icon':_0x5abb25('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x5abb25('0x1892'),'name':_0x5abb25('0x2506'),'type':_0x5abb25('0x1bc6'),'required':!![],'param':0x0}]},{'app':'tag','appType':_0x5abb25('0x2037'),'type':_0x5abb25('0x2037'),'foreignKey':'TagId','icon':'icon-apps','interval':_0x5abb25('0x2292'),'isApp':!![],'extraApi':[{'name':_0x5abb25('0x1105'),'field':{'name':'tag','key':_0x5abb25('0x2623')},'route':_0x5abb25('0x2037'),'filters':{'fields':'id,name','sort':_0x5abb25('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x5abb25('0x1172'),'name':_0x5abb25('0x2037'),'type':_0x5abb25('0x14b8'),'values':'tags','value':_0x5abb25('0x460'),'option':_0x5abb25('0x460'),'required':!![],'param':0x0}]},{'app':_0x5abb25('0xc11'),'appType':_0x5abb25('0xc11'),'type':_0x5abb25('0xc11'),'icon':_0x5abb25('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Key','name':_0x5abb25('0x6e4'),'type':_0x5abb25('0x1bc6'),'required':!![],'param':0x0},{'title':_0x5abb25('0x174b'),'name':_0x5abb25('0x174b'),'type':_0x5abb25('0x2e6'),'defaultValue':_0x5abb25('0xc5a'),'values':[{'option':_0x5abb25('0x1298'),'value':_0x5abb25('0x1d90')},{'option':'English','value':_0x5abb25('0xc5a')},{'option':'German','value':'\x27de\x27'},{'option':'Italian','value':'\x27it\x27'},{'option':_0x5abb25('0x74e'),'value':_0x5abb25('0x105c')},{'option':_0x5abb25('0x2274'),'value':'\x27fr\x27'},{'option':_0x5abb25('0x12bf'),'value':'\x27id\x27'},{'option':'Japanese','value':_0x5abb25('0x172')},{'option':_0x5abb25('0xa60'),'value':'\x27ko\x27'},{'option':'Dutch','value':_0x5abb25('0x683')},{'option':_0x5abb25('0x19b5'),'value':_0x5abb25('0x16f2')},{'option':'Portuguese\x20(European)','value':_0x5abb25('0x1d6a')},{'option':_0x5abb25('0xed9'),'value':'\x27pt-br\x27'},{'option':_0x5abb25('0x1bd8'),'value':_0x5abb25('0x1070')},{'option':_0x5abb25('0x1dc7'),'value':'\x27sv\x27'},{'option':_0x5abb25('0x2e1'),'value':_0x5abb25('0x3c9')},{'option':_0x5abb25('0x6d9'),'value':_0x5abb25('0x20df')},{'option':_0x5abb25('0x75c'),'value':_0x5abb25('0xaf5')},{'option':_0x5abb25('0x229f'),'value':_0x5abb25('0x152e')},{'option':'Chinese\x20(Traditional)','value':_0x5abb25('0xafb')}],'required':!![],'param':0x1},{'title':_0x5abb25('0xfcc'),'name':'welcomemessage','type':_0x5abb25('0x777'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x5abb25('0x1321'),'appType':_0x5abb25('0x1321'),'type':_0x5abb25('0x1321'),'icon':_0x5abb25('0x27be'),'interval':_0x5abb25('0x2292'),'isApp':!![],'fields':[{'title':_0x5abb25('0x22be'),'name':'accesskeyid','type':_0x5abb25('0x1bc6'),'required':!![],'param':0x0},{'title':_0x5abb25('0x700'),'name':'secretaccesskey','type':_0x5abb25('0x1bc6'),'required':!![],'param':0x1},{'title':'lexregion','name':'lexregion','type':_0x5abb25('0x2e6'),'defaultValue':_0x5abb25('0x135a'),'values':[{'option':_0x5abb25('0x26e'),'value':_0x5abb25('0x135a')},{'option':'US\x20West\x20(Oregon)','value':_0x5abb25('0x1875')},{'option':_0x5abb25('0x21dc'),'value':_0x5abb25('0x1117')},{'option':_0x5abb25('0xcd'),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x5abb25('0x191a'),'name':_0x5abb25('0x191a'),'type':_0x5abb25('0x1bc6'),'required':!![],'param':0x3},{'title':_0x5abb25('0xfcc'),'name':'welcomemessage','type':_0x5abb25('0x777'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x5abb25('0xf2b')]),{'isApp':![]}),_0x2f0472[_0x5abb25('0x15a8')]={'group':{'name':_0x5abb25('0x866'),'pull':_0x5abb25('0x2384')},'animation':0x64,'sort':![]},_0x2f0472[_0x5abb25('0x2358')]={'group':{'name':'opt2','put':_0x5abb25('0x866')},'animation':0x64,'onAdd':function _0x331341(_0x479725){var _0x1672a6=_0x5abb25;_0x470284(_0x479725,_0x479725[_0x1672a6('0x11ad')]);},'onSort':function _0x24328c(){_0x233b71();}},_0x2f0472[_0x5abb25('0x15f9')]=_0x45c75c,_0x2f0472[_0x5abb25('0x126c')]=_0x6e910b,_0x2f0472['getSmsAccountApps']=_0x41e229,_0x2f0472['editSmsAccountApp']=_0x470284,_0x2f0472[_0x5abb25('0xf50')]=_0x2a39e9,_0x2f0472[_0x5abb25('0x1d5f')]=_0x3970a6,_0x2f0472[_0x5abb25('0xa4b')]=_0x2b335c,_0x2f0472['rewriteRouting']=_0x233b71,_0x2f0472[_0x5abb25('0x157')]=_0x37a94e;function _0x45c75c(_0xee8fa2,_0x53d8e7){var _0x110988=_0x5abb25;_0x2f0472[_0x110988('0x1437')]=_0xee8fa2,_0x2f0472['crudPermissions']=typeof _0x53d8e7!==_0x110988('0x1143')?_0x53d8e7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2f0472[_0x110988('0x2358')][_0x110988('0x1ebc')]=!_0x2f0472[_0x110988('0xb3d')]['canEdit']?!![]:![],_0x2f0472[_0x110988('0xa16')]['id']=_0xee8fa2['id'],_0x2f0472[_0x110988('0xa16')][_0x110988('0x1144')]=!![],_0x2f0472['query']['nolimit']=!![],_0x2f0472[_0x110988('0x2c9')](),_0x2f0472[_0x110988('0x157')]();}function _0x6e910b(_0x252d51,_0x5e6ce1,_0x5338c1){var _0x1c2641=_0x5abb25,_0x4ff43e=_0x37c750[_0x1c2641('0xa5')]()[_0x1c2641('0x13e4')](_0x1c2641('0x21ed'))[_0x1c2641('0x221c')](_0x1c2641('0xab2')+_0x252d51['app']+''+_0x1c2641('0x21bd'))['ariaLabel'](_0x1c2641('0x21d1'))['targetEvent'](_0x5338c1)['ok']('OK')[_0x1c2641('0x2c1')]('CANCEL');_0x37c750[_0x1c2641('0x26b2')](_0x4ff43e)[_0x1c2641('0xe19')](function(){var _0x3e480e=_0x1c2641;_0x2f0472[_0x3e480e('0x20c8')][_0x3e480e('0x16a7')]['splice'](_0x5e6ce1,0x1),_0x233b71();},function(){var _0x13a6f0=_0x1c2641;console[_0x13a6f0('0x1fe9')](_0x13a6f0('0x17'));});}function _0x470284(_0x29a18d,_0x143c73){var _0x44e689=_0x5abb25;if(_0x2f0472['smsAccountApps'][_0x44e689('0x16a7')][_0x44e689('0x25ae')]){var _0x83a619=_0x2f0472[_0x44e689('0x20c8')][_0x44e689('0x16a7')][_0x143c73]?_0x2f0472[_0x44e689('0x20c8')][_0x44e689('0x16a7')][_0x143c73]:_0x2f0472['smsAccountApps'][_0x44e689('0x16a7')][0x0],_0x5740fc=(_0x83a619[_0x44e689('0xf44')]||_0x83a619[_0x44e689('0xf2b')])[_0x44e689('0x20dd')]();_0x37c750[_0x44e689('0x26b2')]({'controller':'EditSmsAccountApp'[_0x44e689('0x1007')](_0x5740fc,'DialogController'),'controllerAs':'vm','templateUrl':_0x48d9af[_0x5740fc],'parent':angular[_0x44e689('0x24a1')](_0xaa3492[_0x44e689('0x19b2')]),'targetEvent':_0x29a18d,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x83a619,'smsAccount':_0x2f0472[_0x44e689('0x1437')],'crudPermissions':_0x2f0472[_0x44e689('0xb3d')]}})[_0x44e689('0xe19')](function(_0x3fc9bd){var _0x46cb20=_0x44e689;_0x3fc9bd&&(_0x3fc9bd['id']?_0x2f0472[_0x46cb20('0x20c8')][_0x46cb20('0x16a7')][_0x143c73]=_0x3fc9bd:_0x2f0472['smsAccountApps'][_0x46cb20('0x16a7')][_0x46cb20('0x1c8e')](_0x143c73,0x0,_0x3fc9bd),_0x233b71());})[_0x44e689('0x223b')](function(_0x24235c){var _0x584aac=_0x44e689;_0x24235c&&_0x6cab2e[_0x584aac('0x8c8')]({'title':_0x24235c['status']?'API:'+_0x24235c[_0x584aac('0x2833')]+_0x584aac('0x1b7c')+_0x24235c[_0x584aac('0x1fd7')]:_0x584aac('0x1c4b'),'msg':_0x24235c[_0x584aac('0x11d0')]?JSON[_0x584aac('0x3ad')](_0x24235c[_0x584aac('0x11d0')]):_0x24235c[_0x584aac('0x94f')]()});});}}function _0x2a39e9(_0x5a8e62,_0x525121){var _0x5a5eee=_0x5abb25;if(_0x2f0472[_0x5a5eee('0x20c8')]['rows'][_0x5a5eee('0x25ae')]){var _0x4b3085=_0x2f0472['smsAccountApps']['rows'][_0x525121]?_0x2f0472['smsAccountApps'][_0x5a5eee('0x16a7')][_0x525121]:_0x2f0472[_0x5a5eee('0x20c8')]['rows'][0x0];_0x37c750['show']({'controller':_0x5a5eee('0x2440'),'controllerAs':'vm','templateUrl':_0x1f791b,'parent':angular[_0x5a5eee('0x24a1')](_0xaa3492[_0x5a5eee('0x19b2')]),'targetEvent':_0x5a8e62,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x4b3085[_0x5a5eee('0x134c')],'IntervalId':_0x4b3085[_0x5a5eee('0x1fc1')],'application':!![]},'intervals':[],'crudPermissions':_0x2f0472[_0x5a5eee('0xb3d')]}})['then'](function(_0x23ff6e){var _0x54ea0e=_0x5a5eee;_0x23ff6e&&(_0x4b3085[_0x54ea0e('0x134c')]=_0x23ff6e[_0x54ea0e('0x134c')]||_0x54ea0e('0x2292'),_0x4b3085[_0x54ea0e('0x1fc1')]=_0x23ff6e[_0x54ea0e('0x1fc1')]||null,_0x233b71());});}}function _0x233b71(){var _0x1b3748=_0x5abb25,_0x3d3a44=0x1,_0x367971=[];for(var _0x5c5329=0x0;_0x5c5329<_0x2f0472[_0x1b3748('0x20c8')][_0x1b3748('0x16a7')][_0x1b3748('0x25ae')];_0x5c5329++){var _0x1c6a0a=_0x2f0472['smsAccountApps']['rows'][_0x5c5329],_0x133dee=[],_0x54a727=[];_0x1c6a0a[_0x1b3748('0x10e0')]=_0x1c6a0a['interval']!=='*,*,*,*'?[_0x1c6a0a[_0x1b3748('0x134c')]]:_0x1c6a0a[_0x1b3748('0x1fc1')]?_0x32d445()[_0x1b3748('0x65a')](_0x32d445()[_0x1b3748('0x2891')](_0x2f0472['intervals'][_0x1b3748('0x16a7')],{'IntervalId':_0x1c6a0a[_0x1b3748('0x1fc1')]}),_0x1b3748('0x134c')):[],_0x1c6a0a['context']=_0x2f0472[_0x1b3748('0x1437')][_0x1b3748('0x1318')],_0x1c6a0a[_0x1b3748('0x632')]=_0x2f0472[_0x1b3748('0x1437')][_0x1b3748('0x632')],_0x1c6a0a['type']&&(_0x1c6a0a[_0x1b3748('0x62e')]=_0x1c6a0a[_0x1b3748('0x62e')][_0x1b3748('0x20dd')]()),_0x1c6a0a['priority']=_0x133dee['length']?_0x32d445()[_0x1b3748('0x27ed')](_0x133dee)[_0x1b3748('0xb33')]+0x1:_0x3d3a44,_0x3d3a44=(_0x54a727[_0x1b3748('0x25ae')]?_0x32d445()[_0x1b3748('0x27ed')](_0x54a727)['priority']:_0x1c6a0a['priority'])+0x1,_0x367971=_0x32d445()[_0x1b3748('0x1007')](_0x367971,_0x133dee,[_0x1c6a0a],_0x54a727);}_0x48ae81[_0x1b3748('0x1437')][_0x1b3748('0x25d9')]({'id':_0x2f0472['smsAccount']['id']},_0x32d445()[_0x1b3748('0x14c')](_0x367971,_0x1b3748('0xb33')))[_0x1b3748('0xe59')][_0x1b3748('0xe19')](function(_0x43301b){var _0x317ce9=_0x1b3748;_0x2f0472['smsAccountApps'][_0x317ce9('0x16a7')]=_0x43301b[_0x317ce9('0x16a7')];})[_0x1b3748('0x223b')](function(_0x2059b4){var _0x486e32=_0x1b3748;console[_0x486e32('0x8c8')](_0x2059b4);});}function _0x489f04(_0x4ad9e5){var _0x3a6ae5=_0x5abb25;_0x2f0472[_0x3a6ae5('0x20c8')]=_0x4ad9e5||{'count':0x0,'rows':[]};}function _0x37a94e(){var _0x3147f0=_0x5abb25;return _0x48ae81[_0x3147f0('0x134c')][_0x3147f0('0x22d5')]({'fields':_0x3147f0('0x1a19')})[_0x3147f0('0xe59')]['then'](function(_0x2b1600){var _0x377fe9=_0x3147f0;_0x2f0472[_0x377fe9('0x10e0')]=_0x2b1600;})['catch'](function(_0x2812a7){var _0x41098b=_0x3147f0;console[_0x41098b('0x8c8')](_0x2812a7);});}function _0x41e229(){var _0x23b0a1=_0x5abb25;_0x2f0472[_0x23b0a1('0x9c8')]=_0x48ae81[_0x23b0a1('0x1437')][_0x23b0a1('0x1654')](_0x2f0472[_0x23b0a1('0xa16')],_0x489f04)[_0x23b0a1('0xe59')];}function _0x3970a6(_0x4c3758){var _0x1bac26=_0x5abb25;_0x32d445()['remove'](_0x2f0472[_0x1bac26('0x20c8')][_0x1bac26('0x16a7')],{'id':_0x4c3758['id']}),_0x233b71(),_0x6cab2e[_0x1bac26('0x425')]({'title':_0x1bac26('0x13bf'),'msg':_0x4c3758[_0x1bac26('0xf2b')]?_0x4c3758[_0x1bac26('0xf2b')]+_0x1bac26('0x2182'):''});}function _0x2b335c(_0x1c5dfa){var _0x4b71f8=_0x5abb25,_0x122fb9=_0x37c750[_0x4b71f8('0xa5')]()['title'](_0x4b71f8('0x6de'))[_0x4b71f8('0x221c')](_0x4b71f8('0xab2')+_0x2f0472[_0x4b71f8('0x2203')][_0x4b71f8('0x25ae')]+_0x4b71f8('0x5bc')+_0x4b71f8('0x21bd'))[_0x4b71f8('0x4d1')]('delete\x20applications')['targetEvent'](_0x1c5dfa)['ok']('OK')[_0x4b71f8('0x2c1')](_0x4b71f8('0x17'));_0x37c750[_0x4b71f8('0x26b2')](_0x122fb9)[_0x4b71f8('0xe19')](function(){var _0x3ada68=_0x4b71f8;_0x2f0472[_0x3ada68('0x2203')][_0x3ada68('0x1d7e')](function(_0x108cab){var _0x310516=_0x3ada68;_0x32d445()[_0x310516('0xa8b')](_0x2f0472['smsAccountApps'][_0x310516('0x16a7')],{'id':_0x108cab['id']});}),_0x2f0472[_0x3ada68('0x2203')]=[],_0x233b71();});}}const _0x88339a=_0x553c45;_0x229568[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'api','smsAccount',_0xb635d2('0x25db'),'realtime',_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x229568(_0x528959,_0x28fe7d,_0x108d62,_0x2adbcc,_0x5de4c4,_0x1bbd90,_0xc83f8e,_0x39d2ac,_0x4018c0,_0x5bd6b2){var _0x57e95c=_0xb635d2,_0x4398a9=this;_0x4398a9[_0x57e95c('0x15a5')]=_0x4018c0[_0x57e95c('0x1ef8')](),_0x4398a9[_0x57e95c('0x1437')]=_0x5de4c4,_0x4398a9[_0x57e95c('0xb3d')]=_0x5bd6b2,_0x4398a9[_0x57e95c('0x24e1')]=_0xc83f8e,_0x4398a9[_0x57e95c('0xe4b')]=[],_0x4398a9['allowedItems']=[],_0x4398a9['selectedItems']=[],_0x4398a9[_0x57e95c('0x286c')]=[],_0x4398a9['startingSelectedItems']=[],_0x4398a9[_0x57e95c('0x16e7')]=![],_0x4398a9[_0x57e95c('0x888')]=_0x530232,_0x4398a9[_0x57e95c('0x4b8')]=_0x332983,_0x4398a9['closeDialog']=_0x11aee3,_0x4398a9[_0x57e95c('0xc00')]={'readOnly':!_0x4398a9[_0x57e95c('0xb3d')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x57e95c('0x2623'),'line1':_0x57e95c('0xe11'),'line2':[_0x57e95c('0x2623'),_0x57e95c('0x1b66')],'line3':'','labelAll':_0x39d2ac['instant'](_0x57e95c('0xb3c')),'labelSelected':_0x39d2ac[_0x57e95c('0x2159')]('SMS.SELECTED_AGENTS'),'transferCallback':function _0x16124e(){var _0x4a2b78=_0x57e95c,_0x14d7e9=_0x32d445()[_0x4a2b78('0x118')](_0x4398a9[_0x4a2b78('0xf79')],_0x4398a9[_0x4a2b78('0x2273')],'id');_0x4398a9[_0x4a2b78('0x16e7')]=_0x32d445()[_0x4a2b78('0x14b4')](_0x14d7e9)?![]:!![];}};function _0x530232(){var _0x4b2cfc=_0x57e95c;return _0x4018c0[_0x4b2cfc('0x179e')](_0x4b2cfc('0xd14'))?_0x38c604()['catch'](function(_0x3bdb31){var _0x2185a3=_0x4b2cfc;_0x108d62[_0x2185a3('0x8c8')]({'title':_0x3bdb31[_0x2185a3('0x2833')]?_0x2185a3('0x27f2')+_0x3bdb31[_0x2185a3('0x2833')]+'\x20-\x20'+_0x3bdb31[_0x2185a3('0x1fd7')]:_0x2185a3('0x1e86'),'msg':_0x3bdb31[_0x2185a3('0x2833')]?JSON['stringify'](_0x3bdb31[_0x2185a3('0x11d0')]):_0x3bdb31[_0x2185a3('0x94f')]()});}):_0x543ff1()[_0x4b2cfc('0xe19')](function(_0xf25ec6){var _0x4ddf35=_0x4b2cfc;return _0x4398a9[_0x4ddf35('0x1e59')]=_0xf25ec6,_0x38c604();})[_0x4b2cfc('0x223b')](function(_0x1608fb){var _0x339b52=_0x4b2cfc;_0x108d62[_0x339b52('0x8c8')]({'title':_0x1608fb[_0x339b52('0x2833')]?_0x339b52('0x27f2')+_0x1608fb['status']+_0x339b52('0x1b7c')+_0x1608fb['statusText']:'SYSTEM:GET_AGENTS','msg':_0x1608fb['status']?JSON['stringify'](_0x1608fb[_0x339b52('0x11d0')]):_0x1608fb[_0x339b52('0x94f')]()});});}function _0x543ff1(){return _0x28fe7d(function(_0x4509d9,_0x1ac7dd){var _0x334f6c=a0_0x5325;_0x2adbcc[_0x334f6c('0xb59')][_0x334f6c('0x22d5')]({'userProfileId':_0x4398a9[_0x334f6c('0x15a5')][_0x334f6c('0x1d04')],'name':_0x334f6c('0xd61')})[_0x334f6c('0xe59')][_0x334f6c('0xe19')](function(_0x1355ed){var _0x1eec41=_0x334f6c,_0x2e52b=_0x1355ed&&_0x1355ed[_0x1eec41('0x16a7')]?_0x1355ed[_0x1eec41('0x16a7')][0x0]:null;_0x4509d9(_0x2e52b);})[_0x334f6c('0x223b')](function(_0x424b42){_0x1ac7dd(_0x424b42);});});}function _0x38c604(){return _0x28fe7d(function(_0x822cbd,_0x3f0280){var _0x4c81d5=a0_0x5325;return _0x107233()['then'](function(_0xcf5bbb){var _0x45305a=a0_0x5325;return _0x4398a9[_0x45305a('0xe4b')]=_0xcf5bbb[_0x45305a('0x16a7')]?_0xcf5bbb['rows']:[],_0x4018c0[_0x45305a('0x179e')](_0x45305a('0xd14'))?_0xcf5bbb:_0x4398a9[_0x45305a('0x1e59')]?_0x4398a9[_0x45305a('0x1e59')][_0x45305a('0x11fd')]?_0xcf5bbb:_0x2b1008():null;})[_0x4c81d5('0xe19')](function(_0x56638a){var _0x40cba1=_0x4c81d5,_0x345664=_0x56638a&&_0x56638a[_0x40cba1('0x16a7')]?_0x56638a[_0x40cba1('0x16a7')]:[];return _0x4398a9[_0x40cba1('0x1884')]=_0x32d445()[_0x40cba1('0x65a')](_0x345664,function(_0x49d9a4){var _0x29d699=_0x40cba1;return _0x32d445()['find'](_0x4398a9[_0x29d699('0xe4b')],{'id':_0x4018c0['hasRole'](_0x29d699('0xd14'))||_0x4398a9[_0x29d699('0x1e59')]['autoAssociation']?_0x49d9a4['id']:_0x49d9a4[_0x29d699('0x1104')]});}),_0x4398a9[_0x40cba1('0x286c')]=angular['copy'](_0x4398a9[_0x40cba1('0x1884')]),_0x4398a9[_0x40cba1('0xe4b')]['forEach'](function(_0x5be73f){var _0x380934=_0x40cba1,_0x1c3e02=_0x32d445()[_0x380934('0xf15')](_0x4398a9[_0x380934('0x1884')],{'id':_0x5be73f['id']});_0x4018c0[_0x380934('0x179e')](_0x380934('0xd14'))?_0x5be73f['isValid']=!![]:_0x5be73f[_0x380934('0x1768')]=typeof _0x1c3e02!=='undefined'?!![]:![];}),_0x51711d();})[_0x4c81d5('0xe19')](function(_0x2c3a84){var _0x2dc56e=_0x4c81d5,_0x395703=_0x2c3a84&&_0x2c3a84[_0x2dc56e('0x16a7')]?_0x2c3a84['rows']:[];_0x4398a9[_0x2dc56e('0x2273')]=_0x32d445()[_0x2dc56e('0x65a')](_0x395703,function(_0x33749d){var _0x349675=_0x2dc56e,_0x24f60e=_0x32d445()[_0x349675('0xf15')](_0x4398a9[_0x349675('0xe4b')],{'id':_0x33749d['id']});return _0x24f60e[_0x349675('0x21e3')]=_0x33749d['UserSmsAccount']?_0x349675('0x815')+_0x33749d[_0x349675('0xd05')][_0x349675('0x21e3')]:'',_0x24f60e[_0x349675('0x1b66')]=typeof _0x33749d[_0x349675('0x1b66')]!=='undefined'?'<'+_0x33749d[_0x349675('0x1b66')]+'>':'',_0x24f60e;}),_0x4398a9[_0x2dc56e('0xf79')]=angular[_0x2dc56e('0x89')](_0x4398a9[_0x2dc56e('0x2273')]),_0x4398a9[_0x2dc56e('0xc00')][_0x2dc56e('0x2273')]=_0x4398a9[_0x2dc56e('0x2273')],_0x4398a9[_0x2dc56e('0xc00')][_0x2dc56e('0xe4b')]=_0x32d445()['differenceBy'](_0x4398a9[_0x2dc56e('0x1884')],_0x4398a9['dualMultiselectOptions'][_0x2dc56e('0x2273')],'id'),_0x822cbd();})[_0x4c81d5('0x223b')](function(_0x11ca23){_0x3f0280(_0x11ca23);});});}function _0x2b1008(){return _0x28fe7d(function(_0x436557,_0x1f7265){var _0x5d9657=a0_0x5325;return _0x2adbcc[_0x5d9657('0xd49')]['get']({'sectionId':_0x4398a9[_0x5d9657('0x1e59')]['id'],'nolimit':!![]})[_0x5d9657('0xe59')]['then'](function(_0x146a23){_0x436557(_0x146a23);})['catch'](function(_0x1ba39b){_0x1f7265(_0x1ba39b);});});}function _0x51711d(){return _0x28fe7d(function(_0x414ad2,_0x5cecb9){var _0x501dbb=a0_0x5325;return _0x2adbcc['smsAccount'][_0x501dbb('0x14fd')]({'id':_0x4398a9[_0x501dbb('0x1437')]['id'],'fields':_0x501dbb('0x244f'),'nolimit':!![],'role':_0x501dbb('0x108')})[_0x501dbb('0xe59')][_0x501dbb('0xe19')](function(_0x5dddce){_0x414ad2(_0x5dddce);})[_0x501dbb('0x223b')](function(_0x539e56){_0x5cecb9(_0x539e56);});});}function _0x107233(){return _0x28fe7d(function(_0x22aaf0,_0x5cff3c){var _0x151d36=a0_0x5325;return _0x2adbcc[_0x151d36('0x10c6')][_0x151d36('0x22d5')]({'fields':_0x151d36('0x244f'),'nolimit':!![],'role':_0x151d36('0x108')})[_0x151d36('0xe59')][_0x151d36('0xe19')](function(_0x1afae6){_0x22aaf0(_0x1afae6);})[_0x151d36('0x223b')](function(_0x141b13){_0x5cff3c(_0x141b13);});});}function _0x390d35(_0x5aa537){return _0x28fe7d(function(_0x329e24,_0x5aef7a){var _0x145772=a0_0x5325;_0x32d445()[_0x145772('0x14b4')](_0x5aa537)?_0x329e24():_0x2adbcc[_0x145772('0x1437')]['addAgents']({'id':_0x4398a9[_0x145772('0x1437')]['id'],'ids':_0x32d445()['map'](_0x5aa537,'id')})[_0x145772('0xe59')][_0x145772('0xe19')](function(){_0x329e24();})['catch'](function(_0x462487){_0x5aef7a(_0x462487);});});}function _0x3a3ba6(_0x5bff58){return _0x28fe7d(function(_0x689460,_0x575a1a){var _0x4ded9e=a0_0x5325;_0x32d445()[_0x4ded9e('0x14b4')](_0x5bff58)?_0x689460():_0x2adbcc[_0x4ded9e('0x1437')][_0x4ded9e('0x6aa')]({'id':_0x4398a9[_0x4ded9e('0x1437')]['id'],'ids':_0x32d445()[_0x4ded9e('0x65a')](_0x5bff58,'id')})[_0x4ded9e('0xe59')][_0x4ded9e('0xe19')](function(){_0x689460();})['catch'](function(_0x2489b5){_0x575a1a(_0x2489b5);});});}function _0x332983(){var _0x33f4cf=_0x57e95c,_0x2f770b=_0x32d445()[_0x33f4cf('0x501')](_0x4398a9['startingSelectedItems'],_0x4398a9[_0x33f4cf('0x2273')],'id'),_0x13eb2c=_0x32d445()[_0x33f4cf('0x501')](_0x4398a9[_0x33f4cf('0x2273')],_0x4398a9['startingSelectedItems'],'id');return _0x3a3ba6(_0x2f770b)[_0x33f4cf('0xe19')](function(){return _0x390d35(_0x13eb2c);})[_0x33f4cf('0xe19')](function(){var _0x391e48=_0x33f4cf;_0x4398a9[_0x391e48('0x16e7')]=![],_0x4398a9[_0x391e48('0x286c')]=angular[_0x391e48('0x89')](_0x4398a9[_0x391e48('0x1884')]),_0x4398a9[_0x391e48('0xf79')]=angular['copy'](_0x4398a9[_0x391e48('0x2273')]),_0x108d62[_0x391e48('0x425')]({'title':'SUCCESS','msg':_0x391e48('0x25d')});})[_0x33f4cf('0x223b')](function(_0x466b5b){var _0x5480db=_0x33f4cf;_0x108d62['error']({'title':_0x466b5b[_0x5480db('0x2833')]?_0x5480db('0x27f2')+_0x466b5b['status']+_0x5480db('0x1b7c')+_0x466b5b['statusText']:_0x5480db('0x2168'),'msg':_0x466b5b['status']?JSON[_0x5480db('0x3ad')](_0x466b5b[_0x5480db('0x11d0')]):_0x466b5b[_0x5480db('0x94f')]()});});}function _0x11aee3(){_0x528959['hide']();}}const _0x2dcfa9=_0x229568;_0x4dd525[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1a3e'),_0xb635d2('0x1437'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x4dd525(_0x13f933,_0x1216a1,_0x303cd8,_0x3eaffa,_0x5ae915,_0x4302bb,_0x5308b0,_0x187ee2){var _0x285c88=_0xb635d2,_0x302b0c=this;_0x302b0c['currentUser']=_0x5308b0['getCurrentUser'](),_0x302b0c[_0x285c88('0xcd2')]=[],_0x302b0c[_0x285c88('0x13e4')]='SMS.EDIT_'+(_0x3eaffa[_0x285c88('0xf44')]||_0x3eaffa[_0x285c88('0xf2b')])[_0x285c88('0x25f7')](),_0x302b0c['agent']=angular[_0x285c88('0x89')](_0x3eaffa),_0x302b0c[_0x285c88('0xb3d')]=_0x187ee2,_0x302b0c['hasModulePermissions']={};if(_0x302b0c['agent']['appdata'])switch(_0x302b0c[_0x285c88('0x108')]['appType']?_0x302b0c[_0x285c88('0x108')]['appType'][_0x285c88('0x20dd')]():_0x302b0c[_0x285c88('0x108')][_0x285c88('0xf2b')]['toLowerCase']()){case _0x285c88('0x261d'):break;case _0x285c88('0xc11'):{var _0x5100cf=_0x302b0c['agent'][_0x285c88('0x26d2')]['split'](',');_0x302b0c[_0x285c88('0x108')][_0x285c88('0x6e4')]=_0x5100cf[0x0],_0x302b0c[_0x285c88('0x108')][_0x285c88('0x174b')]=_0x5100cf[0x1],_0x302b0c[_0x285c88('0x108')][_0x285c88('0xfcc')]=_0x5100cf[_0x285c88('0xa19')](0x2,_0x5100cf[_0x285c88('0x25ae')])[_0x285c88('0x1537')](',');}break;case _0x285c88('0x1321'):{var _0x58625d=_0x302b0c[_0x285c88('0x108')][_0x285c88('0x26d2')][_0x285c88('0x1745')](',');_0x302b0c[_0x285c88('0x108')][_0x285c88('0x22be')]=_0x58625d[0x0],_0x302b0c[_0x285c88('0x108')][_0x285c88('0x700')]=_0x58625d[0x1],_0x302b0c['agent'][_0x285c88('0x206a')]=_0x58625d[0x2],_0x302b0c[_0x285c88('0x108')][_0x285c88('0x191a')]=_0x58625d[0x3],_0x302b0c[_0x285c88('0x108')][_0x285c88('0xfcc')]=_0x58625d[_0x285c88('0xa19')](0x4,_0x58625d[_0x285c88('0x25ae')])['join'](',');}break;case'autoreply':{var _0x37bb36=_0x302b0c[_0x285c88('0x108')]['appdata'][_0x285c88('0x1745')](',');_0x302b0c['agent'][_0x285c88('0x1ec4')]=isNaN(_0x37bb36[0x0])?_0x37bb36[0x0]:parseInt(_0x37bb36[0x0],0xa),_0x302b0c['agent'][_0x285c88('0x1bc6')]=_0x37bb36[_0x285c88('0xa19')](0x1,_0x37bb36[_0x285c88('0x25ae')])[_0x285c88('0x1537')](',');}break;case _0x285c88('0x27e8'):_0x302b0c[_0x285c88('0x108')][_0x285c88('0x1bc6')]=_0x302b0c[_0x285c88('0x108')]['appdata'];break;case _0x285c88('0x2aa'):_0x302b0c['agent'][_0x285c88('0x2623')]=_0x302b0c[_0x285c88('0x108')][_0x285c88('0x26d2')][_0x285c88('0x1745')]('=')[0x0],_0x302b0c[_0x285c88('0x108')][_0x285c88('0x2')]=_0x302b0c['agent'][_0x285c88('0x26d2')][_0x285c88('0x1745')]('=')[0x1];break;case'agi':_0x302b0c['agent']['project']=_0x302b0c[_0x285c88('0x108')][_0x285c88('0x26d2')];break;default:{var _0x4d92f0=_0x302b0c['agent'][_0x285c88('0x26d2')][_0x285c88('0x1745')](',');_0x302b0c[_0x285c88('0x108')]['agent']=_0x32d445()[_0x285c88('0x14b4')](_0x4d92f0[0x0])?_0x4d92f0[0x0]:isNaN(_0x4d92f0[0x0])?_0x4d92f0[0x0]:parseInt(_0x4d92f0[0x0],0xa),_0x302b0c[_0x285c88('0x108')]['timeout']=_0x32d445()[_0x285c88('0x14b4')](_0x4d92f0[0x1])?_0x4d92f0[0x1]:isNaN(_0x4d92f0[0x1])?_0x4d92f0[0x1]:parseInt(_0x4d92f0[0x1],0xa);}break;}else _0x302b0c[_0x285c88('0x108')][_0x285c88('0x2058')]=0x1e;_0x302b0c[_0x285c88('0x108')][_0x285c88('0x62e')]&&_0x302b0c['agent'][_0x285c88('0x62e')][_0x285c88('0x20dd')]()===_0x285c88('0x1fdf')&&_0x302b0c[_0x285c88('0x108')]['appType'][_0x285c88('0x20dd')]()===_0x285c88('0x1d1b')&&(_0x302b0c[_0x285c88('0x108')][_0x285c88('0x2580')]=_0x302b0c[_0x285c88('0x108')][_0x285c88('0x1ef5')]?_0x302b0c[_0x285c88('0x108')][_0x285c88('0x1ef5')][_0x285c88('0x1745')]('$')[0x0]:undefined,_0x302b0c['agent']['callerId']=_0x302b0c[_0x285c88('0x108')][_0x285c88('0xfca')]?_0x285c88('0xd41')+_0x302b0c['agent'][_0x285c88('0xfca')]:undefined);_0x302b0c['saveSmsAccountApp']=_0x5486a6,_0x302b0c['closeDialog']=_0xbad843,_0x5308b0[_0x285c88('0x179e')](_0x285c88('0xd14'))?_0x4302bb['user'][_0x285c88('0x22d5')]({'fields':'id,name','sort':'name','nolimit':_0x285c88('0x2206'),'role':_0x285c88('0x108')})['$promise']['then'](function(_0x2e61ab){var _0x57a7bd=_0x285c88;_0x302b0c[_0x57a7bd('0x29b')]=_0x2e61ab[_0x57a7bd('0x16a7')]||[];})[_0x285c88('0x223b')](function(_0x4cfcff){var _0x4a4621=_0x285c88;_0x303cd8[_0x4a4621('0x8c8')]({'title':_0x4cfcff[_0x4a4621('0x2833')]?'API:'+_0x4cfcff[_0x4a4621('0x2833')]+'\x20-\x20'+_0x4cfcff['statusText']:'SYSTEM:GET_AGENTS','msg':_0x4cfcff['data']?JSON['stringify'](_0x4cfcff[_0x4a4621('0x11d0')]):_0x4cfcff[_0x4a4621('0x94f')]()});}):_0x4302bb[_0x285c88('0x10c6')]['get']({'fields':_0x285c88('0x104'),'sort':_0x285c88('0x2623'),'nolimit':'true','role':'agent'})[_0x285c88('0xe59')][_0x285c88('0xe19')](function(_0xe89334){var _0x549136=_0x285c88;_0x302b0c[_0x549136('0x29b')]=_0xe89334['rows']||[];})[_0x285c88('0xe19')](function(){var _0x1b4329=_0x285c88;return _0x4302bb[_0x1b4329('0xb59')]['get']({'userProfileId':_0x302b0c[_0x1b4329('0x15a5')]['userProfileId'],'sectionId':0xca})[_0x1b4329('0xe59')];})['then'](function(_0x12ecc1){var _0x4877b0=_0x285c88,_0x43f748=_0x12ecc1&&_0x12ecc1[_0x4877b0('0x16a7')]?_0x12ecc1['rows'][0x0]:null;if(!_0x43f748){var _0x1412ce=[],_0x846d21=null;_0x302b0c['agent']&&(_0x846d21=_0x32d445()[_0x4877b0('0xf15')](_0x302b0c['agents'],{'name':_0x302b0c[_0x4877b0('0x108')]['agent']}));for(var _0x38a32e=0x0;_0x38a32e<_0x302b0c['agents'][_0x4877b0('0x25ae')];_0x38a32e++){_0x846d21&&_0x302b0c['agents'][_0x38a32e]['id']===_0x846d21['id']&&(_0x302b0c[_0x4877b0('0x29b')][_0x38a32e][_0x4877b0('0x1e9d')]=![],_0x1412ce['push'](_0x302b0c[_0x4877b0('0x29b')][_0x38a32e]));}_0x302b0c[_0x4877b0('0x29b')]=_0x1412ce;}else{if(!_0x43f748[_0x4877b0('0x11fd')])return _0x4302bb[_0x4877b0('0xd49')][_0x4877b0('0x22d5')]({'sectionId':_0x43f748['id']})['$promise'][_0x4877b0('0xe19')](function(_0x41814e){var _0x162cb3=_0x4877b0,_0x38d754=_0x32d445()[_0x162cb3('0x65a')](_0x41814e[_0x162cb3('0x16a7')],function(_0x2153f8){var _0x4234ae=_0x162cb3;return _0x32d445()[_0x4234ae('0xf15')](_0x302b0c[_0x4234ae('0x29b')],{'id':_0x2153f8[_0x4234ae('0x1104')]});}),_0x31d648=null;_0x302b0c['agent']&&(_0x31d648=_0x32d445()['find'](_0x302b0c['agents'],{'name':_0x302b0c[_0x162cb3('0x108')][_0x162cb3('0x108')]}));if(_0x31d648&&!_0x32d445()['some'](_0x38d754,['id',_0x31d648['id']])){var _0x417645=_0x32d445()[_0x162cb3('0xf15')](_0x302b0c[_0x162cb3('0x29b')],{'id':_0x31d648['id']});_0x417645[_0x162cb3('0x1e9d')]=![],_0x38d754['push'](_0x417645);}_0x302b0c[_0x162cb3('0x29b')]=_0x38d754;});}})['catch'](function(_0x16baf4){var _0x24f885=_0x285c88;_0x303cd8['error']({'title':_0x16baf4['status']?_0x24f885('0x27f2')+_0x16baf4[_0x24f885('0x2833')]+_0x24f885('0x1b7c')+_0x16baf4[_0x24f885('0x1fd7')]:_0x24f885('0xfe4'),'msg':_0x16baf4[_0x24f885('0x11d0')]?JSON['stringify'](_0x16baf4[_0x24f885('0x11d0')]):_0x16baf4['toString']()});});function _0x5486a6(){var _0x41e8bf=_0x285c88;_0x302b0c[_0x41e8bf('0xcd2')]=[];var _0x39f838=[];_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x62e')]&&_0x302b0c[_0x41e8bf('0x108')]['type'][_0x41e8bf('0x20dd')]()===_0x41e8bf('0x1fdf')&&_0x302b0c[_0x41e8bf('0x108')]['appType']===_0x41e8bf('0x3d2')&&(_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x1ef5')]=_0x5ae915[_0x41e8bf('0x27f6')]?(_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x2580')]||'')+_0x41e8bf('0x5d8')+_0x5ae915[_0x41e8bf('0x27f6')]+'}':(_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x2580')]||'')+_0x41e8bf('0x16b5'),_0x5ae915[_0x41e8bf('0x150c')]!==_0x41e8bf('0x23ca')?_0x302b0c['agent'][_0x41e8bf('0x2116')][_0x41e8bf('0x281c')](_0x41e8bf('0x767'))<0x0&&(_0x302b0c[_0x41e8bf('0x108')]['options']+=_0x41e8bf('0x767')):_0x302b0c[_0x41e8bf('0x108')]['options']=_0x302b0c['agent']['options'][_0x41e8bf('0x1b42')](_0x41e8bf('0x767'),''));var _0x2c371e=_0x32d445()[_0x41e8bf('0xf15')](_0x302b0c[_0x41e8bf('0x29b')],{'name':_0x302b0c['agent'][_0x41e8bf('0x108')]});_0x2c371e&&(_0x302b0c[_0x41e8bf('0x108')]['UserId']=_0x2c371e['id']);if(_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0xf44')]&&_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0xf44')]===_0x41e8bf('0x261d')){}else switch((_0x302b0c[_0x41e8bf('0x108')]['app']||_0x302b0c['agent'][_0x41e8bf('0xf44')])[_0x41e8bf('0x20dd')]()){case _0x41e8bf('0x2aa'):_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x26d2')]=_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x2623')]+'='+_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x2')];break;case _0x41e8bf('0x261d'):break;default:_0x39f838[0x0]=_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x108')],_0x39f838[0x1]=_0x302b0c['agent']['timeout'],_0x302b0c[_0x41e8bf('0x108')][_0x41e8bf('0x26d2')]=_0x39f838[_0x41e8bf('0x1537')](',');}_0xbad843(_0x302b0c[_0x41e8bf('0x108')]);}function _0xbad843(_0x590e0e){var _0x2c80f5=_0x285c88;_0x13f933[_0x2c80f5('0x11ed')](_0x590e0e);}}const _0x475c77=_0x4dd525;_0x33cce4['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1a3e'),_0xb635d2('0x1437'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x33cce4(_0x2da586,_0x430ecb,_0x2ebd8b,_0x596c02,_0x5e7002,_0x5dc190,_0x4a2a3d,_0x8101b0){var _0x5b1198=_0xb635d2,_0x9a0618=this;_0x9a0618[_0x5b1198('0x15a5')]=_0x4a2a3d['getCurrentUser'](),_0x9a0618[_0x5b1198('0xcd2')]=[],_0x9a0618[_0x5b1198('0x13e4')]=_0x5b1198('0x13b6')+(_0x596c02[_0x5b1198('0xf44')]||_0x596c02[_0x5b1198('0xf2b')])[_0x5b1198('0x25f7')](),_0x9a0618[_0x5b1198('0x1321')]=angular[_0x5b1198('0x89')](_0x596c02),_0x9a0618[_0x5b1198('0xb3d')]=_0x8101b0,_0x9a0618['hasModulePermissions']={};if(_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x26d2')])switch(_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0xf44')]?_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0xf44')][_0x5b1198('0x20dd')]():_0x9a0618[_0x5b1198('0x1321')]['app']['toLowerCase']()){case _0x5b1198('0x261d'):break;case'dialogflow':{var _0x3f9f17=_0x9a0618['amazonlex'][_0x5b1198('0x26d2')][_0x5b1198('0x1745')](',');_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x6e4')]=_0x3f9f17[0x0],_0x9a0618['amazonlex'][_0x5b1198('0x174b')]=_0x3f9f17[0x1],_0x9a0618[_0x5b1198('0x1321')]['welcomemessage']=_0x3f9f17[_0x5b1198('0xa19')](0x2,_0x3f9f17[_0x5b1198('0x25ae')])['join'](',');}break;case'amazonlex':{var _0x2135e5=_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x26d2')]['split'](',');_0x9a0618['amazonlex']['accesskeyid']=_0x2135e5[0x0],_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x700')]=_0x2135e5[0x1],_0x9a0618['amazonlex'][_0x5b1198('0x206a')]=_0x2135e5[0x2],_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x191a')]=_0x2135e5[0x3],_0x9a0618['amazonlex'][_0x5b1198('0xfcc')]=_0x2135e5[_0x5b1198('0xa19')](0x4,_0x2135e5['length'])['join'](',');}break;case _0x5b1198('0x400'):{var _0x3ed8b9=_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x26d2')][_0x5b1198('0x1745')](',');_0x9a0618['amazonlex']['times']=isNaN(_0x3ed8b9[0x0])?_0x3ed8b9[0x0]:parseInt(_0x3ed8b9[0x0],0xa),_0x9a0618[_0x5b1198('0x1321')]['text']=_0x3ed8b9[_0x5b1198('0xa19')](0x1,_0x3ed8b9[_0x5b1198('0x25ae')])[_0x5b1198('0x1537')](',');}break;case _0x5b1198('0x27e8'):_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x1bc6')]=_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x26d2')];break;case'set':_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x2623')]=_0x9a0618[_0x5b1198('0x1321')]['appdata'][_0x5b1198('0x1745')]('=')[0x0],_0x9a0618[_0x5b1198('0x1321')]['value']=_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x26d2')]['split']('=')[0x1];break;case _0x5b1198('0x401'):_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x38b')]=_0x9a0618['amazonlex'][_0x5b1198('0x26d2')];break;default:{var _0x576a56=_0x9a0618[_0x5b1198('0x1321')]['appdata']['split'](',');_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x22be')]=_0x32d445()[_0x5b1198('0x14b4')](_0x576a56[0x0])?_0x576a56[0x0]:isNaN(_0x576a56[0x0])?_0x576a56[0x0]:parseInt(_0x576a56[0x0],0xa),_0x9a0618[_0x5b1198('0x1321')]['secretaccesskey']=_0x32d445()['isEmpty'](_0x576a56[0x1])?_0x576a56[0x1]:isNaN(_0x576a56[0x1])?_0x576a56[0x1]:parseInt(_0x576a56[0x1],0xa),_0x9a0618['amazonlex'][_0x5b1198('0x206a')]=_0x32d445()[_0x5b1198('0x14b4')](_0x576a56[0x2])?_0x576a56[0x2]:isNaN(_0x576a56[0x2])?_0x576a56[0x2]:parseInt(_0x576a56[0x2],0xa),_0x9a0618[_0x5b1198('0x1321')]['botname']=_0x32d445()[_0x5b1198('0x14b4')](_0x576a56[0x3])?_0x576a56[0x3]:isNaN(_0x576a56[0x3])?_0x576a56[0x3]:parseInt(_0x576a56[0x3],0xa),_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0xfcc')]=_0x32d445()[_0x5b1198('0x14b4')](_0x576a56[0x4])?_0x576a56[0x4]:isNaN(_0x576a56[0x4])?_0x576a56[0x4]:parseInt(_0x576a56[0x4],0xa);}break;}else _0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x206a')]=_0x5b1198('0x1c8');_0x9a0618['amazonlex']['type']&&_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x62e')][_0x5b1198('0x20dd')]()===_0x5b1198('0x1fdf')&&_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0xf44')]['toLowerCase']()===_0x5b1198('0x1d1b')&&(_0x9a0618['amazonlex'][_0x5b1198('0x2580')]=_0x9a0618[_0x5b1198('0x1321')]['phone']?_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x1ef5')][_0x5b1198('0x1745')]('$')[0x0]:undefined,_0x9a0618[_0x5b1198('0x1321')][_0x5b1198('0x1b6f')]=_0x9a0618[_0x5b1198('0x1321')]['callerID']?_0x5b1198('0xd41')+_0x9a0618[_0x5b1198('0x1321')]['callerID']:undefined);_0x9a0618[_0x5b1198('0xaed')]=_0x521f70,_0x9a0618[_0x5b1198('0x2584')]=_0x2e262f;function _0x521f70(){var _0x90f98f=_0x5b1198;_0x9a0618[_0x90f98f('0xcd2')]=[];var _0x591a00=[];_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x62e')]&&_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x62e')][_0x90f98f('0x20dd')]()===_0x90f98f('0x1fdf')&&_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0xf44')]===_0x90f98f('0x3d2')&&(_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x1ef5')]=_0x5e7002[_0x90f98f('0x27f6')]?(_0x9a0618['amazonlex'][_0x90f98f('0x2580')]||'')+_0x90f98f('0x5d8')+_0x5e7002['cutdigits']+'}':(_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x2580')]||'')+'${EXTEN}',_0x5e7002['recordingFormat']!=='none'?_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x2116')][_0x90f98f('0x281c')](_0x90f98f('0x767'))<0x0&&(_0x9a0618[_0x90f98f('0x1321')]['options']+=_0x90f98f('0x767')):_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x2116')]=_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x2116')]['replace'](_0x90f98f('0x767'),''));if(_0x9a0618['amazonlex'][_0x90f98f('0xf44')]&&_0x9a0618[_0x90f98f('0x1321')]['appType']===_0x90f98f('0x261d')){}else switch((_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0xf2b')]||_0x9a0618[_0x90f98f('0x1321')]['appType'])[_0x90f98f('0x20dd')]()){case _0x90f98f('0x2aa'):_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x26d2')]=_0x9a0618['amazonlex'][_0x90f98f('0x2623')]+'='+_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x2')];break;case _0x90f98f('0x261d'):break;default:_0x591a00[0x0]=_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x22be')],_0x591a00[0x1]=_0x9a0618['amazonlex']['secretaccesskey'],_0x591a00[0x2]=_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x206a')],_0x591a00[0x3]=_0x9a0618[_0x90f98f('0x1321')][_0x90f98f('0x191a')],_0x591a00[0x4]=_0x9a0618['amazonlex'][_0x90f98f('0xfcc')],_0x9a0618[_0x90f98f('0x1321')]['appdata']=_0x591a00['join'](',');}_0x2e262f(_0x9a0618[_0x90f98f('0x1321')]);}function _0x2e262f(_0x406dcd){var _0x1bff05=_0x5b1198;_0x2da586[_0x1bff05('0x11ed')](_0x406dcd);}}const _0x4259a4=_0x33cce4;_0x2da367[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x1a3e'),'smsAccount','api',_0xb635d2('0x2730'),'crudPermissions'];function _0x2da367(_0x33b91b,_0x1babc5,_0x24ab9c,_0x9a1ef5,_0x69b27a,_0x24d99e,_0x242058,_0xe3109a){var _0x374453=_0xb635d2,_0x3761e6=this;_0x3761e6[_0x374453('0x15a5')]=_0x242058[_0x374453('0x1ef8')](),_0x3761e6[_0x374453('0xcd2')]=[],_0x3761e6[_0x374453('0x13e4')]='SMS.EDIT_'+(_0x9a1ef5[_0x374453('0xf44')]||_0x9a1ef5[_0x374453('0xf2b')])[_0x374453('0x25f7')](),_0x3761e6[_0x374453('0x400')]=angular[_0x374453('0x89')](_0x9a1ef5),_0x3761e6['crudPermissions']=_0xe3109a,_0x3761e6[_0x374453('0x1ccb')]={};if(_0x3761e6[_0x374453('0x400')]['appdata'])switch(_0x3761e6['autoreply']['appType']?_0x3761e6['autoreply']['appType'][_0x374453('0x20dd')]():_0x3761e6['autoreply'][_0x374453('0xf2b')][_0x374453('0x20dd')]()){case _0x374453('0x261d'):break;case'dialogflow':{var _0x6ae3df=_0x3761e6[_0x374453('0x400')][_0x374453('0x26d2')]['split'](',');_0x3761e6[_0x374453('0x400')][_0x374453('0x6e4')]=_0x6ae3df[0x0],_0x3761e6[_0x374453('0x400')][_0x374453('0x174b')]=_0x6ae3df[0x1],_0x3761e6[_0x374453('0x400')][_0x374453('0xfcc')]=_0x6ae3df[_0x374453('0xa19')](0x2,_0x6ae3df[_0x374453('0x25ae')])[_0x374453('0x1537')](',');}break;case _0x374453('0x1321'):{var _0x57eaeb=_0x3761e6['autoreply'][_0x374453('0x26d2')]['split'](',');_0x3761e6[_0x374453('0x400')][_0x374453('0x22be')]=_0x57eaeb[0x0],_0x3761e6[_0x374453('0x400')][_0x374453('0x700')]=_0x57eaeb[0x1],_0x3761e6[_0x374453('0x400')][_0x374453('0x206a')]=_0x57eaeb[0x2],_0x3761e6['autoreply']['botname']=_0x57eaeb[0x3],_0x3761e6[_0x374453('0x400')]['welcomemessage']=_0x57eaeb[_0x374453('0xa19')](0x4,_0x57eaeb[_0x374453('0x25ae')])['join'](',');}break;case _0x374453('0x400'):{var _0x53d9bb=_0x3761e6[_0x374453('0x400')][_0x374453('0x26d2')][_0x374453('0x1745')](',');_0x3761e6[_0x374453('0x400')]['times']=isNaN(_0x53d9bb[0x0])?_0x53d9bb[0x0]:parseInt(_0x53d9bb[0x0],0xa),_0x3761e6['autoreply'][_0x374453('0x1bc6')]=_0x53d9bb['slice'](0x1,_0x53d9bb['length'])[_0x374453('0x1537')](',');}break;case _0x374453('0x27e8'):_0x3761e6[_0x374453('0x400')][_0x374453('0x1bc6')]=_0x3761e6[_0x374453('0x400')][_0x374453('0x26d2')];break;case _0x374453('0x2aa'):_0x3761e6[_0x374453('0x400')][_0x374453('0x2623')]=_0x3761e6['autoreply']['appdata'][_0x374453('0x1745')]('=')[0x0],_0x3761e6[_0x374453('0x400')][_0x374453('0x2')]=_0x3761e6[_0x374453('0x400')][_0x374453('0x26d2')][_0x374453('0x1745')]('=')[0x1];break;case'agi':_0x3761e6[_0x374453('0x400')][_0x374453('0x38b')]=_0x3761e6['autoreply'][_0x374453('0x26d2')];break;default:{var _0x2682a5=_0x3761e6[_0x374453('0x400')][_0x374453('0x26d2')][_0x374453('0x1745')](',');_0x3761e6[_0x374453('0x400')]['times']=_0x32d445()[_0x374453('0x14b4')](_0x2682a5[0x0])?_0x2682a5[0x0]:isNaN(_0x2682a5[0x0])?_0x2682a5[0x0]:parseInt(_0x2682a5[0x0],0xa),_0x3761e6[_0x374453('0x400')][_0x374453('0x1bc6')]=_0x32d445()[_0x374453('0x14b4')](_0x2682a5[0x1])?_0x2682a5[0x1]:isNaN(_0x2682a5[0x1])?_0x2682a5[0x1]:parseInt(_0x2682a5[0x1],0xa);}}else _0x3761e6['autoreply']['times']=0x1;_0x3761e6['autoreply'][_0x374453('0x62e')]&&_0x3761e6[_0x374453('0x400')][_0x374453('0x62e')]['toLowerCase']()==='outbound'&&_0x3761e6[_0x374453('0x400')][_0x374453('0xf44')][_0x374453('0x20dd')]()===_0x374453('0x1d1b')&&(_0x3761e6[_0x374453('0x400')][_0x374453('0x2580')]=_0x3761e6[_0x374453('0x400')][_0x374453('0x1ef5')]?_0x3761e6[_0x374453('0x400')][_0x374453('0x1ef5')][_0x374453('0x1745')]('$')[0x0]:undefined,_0x3761e6['autoreply']['callerId']=_0x3761e6[_0x374453('0x400')][_0x374453('0xfca')]?_0x374453('0xd41')+_0x3761e6[_0x374453('0x400')][_0x374453('0xfca')]:undefined);_0x3761e6[_0x374453('0xaed')]=_0x315d13,_0x3761e6[_0x374453('0x2584')]=_0x270773;function _0x315d13(){var _0x19ac8b=_0x374453;_0x3761e6[_0x19ac8b('0xcd2')]=[];var _0x5b622c=[];_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x62e')]&&_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x62e')]['toLowerCase']()===_0x19ac8b('0x1fdf')&&_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0xf44')]==='outboundDial'&&(_0x3761e6[_0x19ac8b('0x400')]['phone']=_0x69b27a['cutdigits']?(_0x3761e6['autoreply'][_0x19ac8b('0x2580')]||'')+_0x19ac8b('0x5d8')+_0x69b27a[_0x19ac8b('0x27f6')]+'}':(_0x3761e6[_0x19ac8b('0x400')]['prefix']||'')+'${EXTEN}',_0x69b27a[_0x19ac8b('0x150c')]!==_0x19ac8b('0x23ca')?_0x3761e6['autoreply'][_0x19ac8b('0x2116')]['indexOf'](_0x19ac8b('0x767'))<0x0&&(_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x2116')]+=_0x19ac8b('0x767')):_0x3761e6[_0x19ac8b('0x400')]['options']=_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x2116')][_0x19ac8b('0x1b42')](_0x19ac8b('0x767'),''));if(_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0xf44')]&&_0x3761e6[_0x19ac8b('0x400')]['appType']===_0x19ac8b('0x261d')){}else switch((_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0xf2b')]||_0x3761e6[_0x19ac8b('0x400')]['appType'])[_0x19ac8b('0x20dd')]()){case _0x19ac8b('0x2aa'):_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x26d2')]=_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x2623')]+'='+_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x2')];break;case _0x19ac8b('0x261d'):break;default:_0x5b622c[0x0]=_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x1ec4')],_0x5b622c[0x1]=_0x3761e6[_0x19ac8b('0x400')][_0x19ac8b('0x1bc6')],_0x3761e6[_0x19ac8b('0x400')]['appdata']=_0x5b622c[_0x19ac8b('0x1537')](',');}_0x270773(_0x3761e6['autoreply']);}function _0x270773(_0xf1b606){_0x33b91b['hide'](_0xf1b606);}}const _0x33a052=_0x2da367;_0x377587['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0x1a3e'),_0xb635d2('0x1437'),'api','Auth',_0xb635d2('0xb3d')];function _0x377587(_0x8c3ea4,_0x3cf586,_0x55b66b,_0x38e2f0,_0x285f5d,_0x1bd151,_0x5333b4,_0x5a1082){var _0x5d1c9b=_0xb635d2,_0x25968a=this;_0x25968a['currentUser']=_0x5333b4[_0x5d1c9b('0x1ef8')](),_0x25968a[_0x5d1c9b('0xcd2')]=[],_0x25968a[_0x5d1c9b('0x13e4')]=_0x5d1c9b('0x13b6')+(_0x38e2f0[_0x5d1c9b('0xf44')]||_0x38e2f0['app'])[_0x5d1c9b('0x25f7')](),_0x25968a['close']=angular[_0x5d1c9b('0x89')](_0x38e2f0),_0x25968a[_0x5d1c9b('0xb3d')]=_0x5a1082,_0x25968a[_0x5d1c9b('0x1ccb')]={};if(_0x25968a['close'][_0x5d1c9b('0x26d2')])switch(_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0xf44')]?_0x25968a[_0x5d1c9b('0x1886')]['appType'][_0x5d1c9b('0x20dd')]():_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0xf2b')][_0x5d1c9b('0x20dd')]()){case'custom':break;case _0x5d1c9b('0xc11'):{var _0x3eab22=_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x26d2')][_0x5d1c9b('0x1745')](',');_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x6e4')]=_0x3eab22[0x0],_0x25968a['close'][_0x5d1c9b('0x174b')]=_0x3eab22[0x1],_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0xfcc')]=_0x3eab22[_0x5d1c9b('0xa19')](0x2,_0x3eab22['length'])['join'](',');}break;case _0x5d1c9b('0x1321'):{var _0x3bbdf6=_0x25968a[_0x5d1c9b('0x1886')]['appdata'][_0x5d1c9b('0x1745')](',');_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x22be')]=_0x3bbdf6[0x0],_0x25968a['close'][_0x5d1c9b('0x700')]=_0x3bbdf6[0x1],_0x25968a['close']['lexregion']=_0x3bbdf6[0x2],_0x25968a['close']['botname']=_0x3bbdf6[0x3],_0x25968a['close']['welcomemessage']=_0x3bbdf6[_0x5d1c9b('0xa19')](0x4,_0x3bbdf6[_0x5d1c9b('0x25ae')])[_0x5d1c9b('0x1537')](',');}break;case _0x5d1c9b('0x400'):{var _0x57813a=_0x25968a['close'][_0x5d1c9b('0x26d2')][_0x5d1c9b('0x1745')](',');_0x25968a[_0x5d1c9b('0x1886')]['times']=isNaN(_0x57813a[0x0])?_0x57813a[0x0]:parseInt(_0x57813a[0x0],0xa),_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x1bc6')]=_0x57813a[_0x5d1c9b('0xa19')](0x1,_0x57813a[_0x5d1c9b('0x25ae')])[_0x5d1c9b('0x1537')](',');}break;case _0x5d1c9b('0x27e8'):_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x1bc6')]=_0x25968a[_0x5d1c9b('0x1886')]['appdata'];break;case _0x5d1c9b('0x2aa'):_0x25968a[_0x5d1c9b('0x1886')]['name']=_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x26d2')][_0x5d1c9b('0x1745')]('=')[0x0],_0x25968a['close'][_0x5d1c9b('0x2')]=_0x25968a['close'][_0x5d1c9b('0x26d2')]['split']('=')[0x1];break;case'agi':_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x38b')]=_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x26d2')];break;default:{var _0x2bcc23=_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x26d2')][_0x5d1c9b('0x1745')](',');_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x2506')]=_0x32d445()[_0x5d1c9b('0x14b4')](_0x2bcc23[0x0])?_0x2bcc23[0x0]:isNaN(_0x2bcc23[0x0])?_0x2bcc23[0x0]:parseInt(_0x2bcc23[0x0],0xa);}break;}else{}_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x62e')]&&_0x25968a[_0x5d1c9b('0x1886')]['type'][_0x5d1c9b('0x20dd')]()===_0x5d1c9b('0x1fdf')&&_0x25968a['close'][_0x5d1c9b('0xf44')]['toLowerCase']()==='outbounddial'&&(_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x2580')]=_0x25968a['close'][_0x5d1c9b('0x1ef5')]?_0x25968a['close'][_0x5d1c9b('0x1ef5')][_0x5d1c9b('0x1745')]('$')[0x0]:undefined,_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0x1b6f')]=_0x25968a[_0x5d1c9b('0x1886')]['callerID']?_0x5d1c9b('0xd41')+_0x25968a[_0x5d1c9b('0x1886')][_0x5d1c9b('0xfca')]:undefined);_0x25968a[_0x5d1c9b('0xaed')]=_0x5280fb,_0x25968a[_0x5d1c9b('0x2584')]=_0xd0f0a7;function _0x5280fb(){var _0x30818d=_0x5d1c9b;_0x25968a[_0x30818d('0xcd2')]=[];var _0x138a33=[];_0x25968a[_0x30818d('0x1886')][_0x30818d('0x62e')]&&_0x25968a[_0x30818d('0x1886')][_0x30818d('0x62e')]['toLowerCase']()===_0x30818d('0x1fdf')&&_0x25968a[_0x30818d('0x1886')][_0x30818d('0xf44')]===_0x30818d('0x3d2')&&(_0x25968a[_0x30818d('0x1886')][_0x30818d('0x1ef5')]=_0x285f5d[_0x30818d('0x27f6')]?(_0x25968a[_0x30818d('0x1886')]['prefix']||'')+_0x30818d('0x5d8')+_0x285f5d[_0x30818d('0x27f6')]+'}':(_0x25968a['close'][_0x30818d('0x2580')]||'')+_0x30818d('0x16b5'),_0x285f5d['recordingFormat']!=='none'?_0x25968a[_0x30818d('0x1886')][_0x30818d('0x2116')][_0x30818d('0x281c')](_0x30818d('0x767'))<0x0&&(_0x25968a[_0x30818d('0x1886')][_0x30818d('0x2116')]+=_0x30818d('0x767')):_0x25968a[_0x30818d('0x1886')]['options']=_0x25968a[_0x30818d('0x1886')][_0x30818d('0x2116')][_0x30818d('0x1b42')](_0x30818d('0x767'),''));if(_0x25968a[_0x30818d('0x1886')][_0x30818d('0xf44')]&&_0x25968a[_0x30818d('0x1886')][_0x30818d('0xf44')]===_0x30818d('0x261d')){}else switch((_0x25968a[_0x30818d('0x1886')][_0x30818d('0xf2b')]||_0x25968a[_0x30818d('0x1886')][_0x30818d('0xf44')])[_0x30818d('0x20dd')]()){case _0x30818d('0x2aa'):_0x25968a[_0x30818d('0x1886')][_0x30818d('0x26d2')]=_0x25968a['close'][_0x30818d('0x2623')]+'='+_0x25968a[_0x30818d('0x1886')][_0x30818d('0x2')];break;case _0x30818d('0x261d'):break;default:_0x138a33[0x0]=_0x25968a[_0x30818d('0x1886')][_0x30818d('0x2506')],_0x25968a[_0x30818d('0x1886')]['appdata']=_0x138a33['join'](',');}_0xd0f0a7(_0x25968a[_0x30818d('0x1886')]);}function _0xd0f0a7(_0x29ed08){var _0x17bf21=_0x5d1c9b;_0x8c3ea4[_0x17bf21('0x11ed')](_0x29ed08);}}const _0x13cc7f=_0x377587;_0x2a4452[_0xb635d2('0xb0c')]=['$mdDialog','$q','toasty',_0xb635d2('0x1a3e'),_0xb635d2('0x1437'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x2a4452(_0x476cce,_0x18f1ea,_0x398493,_0x199a7c,_0x1b0330,_0x4bb5cb,_0x196298,_0x43ad93){var _0x341176=_0xb635d2,_0x3d6b7f=this;_0x3d6b7f['currentUser']=_0x196298[_0x341176('0x1ef8')](),_0x3d6b7f[_0x341176('0xcd2')]=[],_0x3d6b7f['title']=_0x341176('0x13b6')+(_0x199a7c[_0x341176('0xf44')]||_0x199a7c[_0x341176('0xf2b')])[_0x341176('0x25f7')](),_0x3d6b7f[_0x341176('0xc11')]=angular[_0x341176('0x89')](_0x199a7c),_0x3d6b7f['crudPermissions']=_0x43ad93,_0x3d6b7f[_0x341176('0x1ccb')]={};if(_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x26d2')])switch(_0x3d6b7f[_0x341176('0xc11')][_0x341176('0xf44')]?_0x3d6b7f[_0x341176('0xc11')]['appType'][_0x341176('0x20dd')]():_0x3d6b7f[_0x341176('0xc11')][_0x341176('0xf2b')]['toLowerCase']()){case _0x341176('0x261d'):break;case _0x341176('0xc11'):{var _0x43057c=_0x3d6b7f['dialogflow'][_0x341176('0x26d2')][_0x341176('0x1745')](',');_0x3d6b7f[_0x341176('0xc11')]['key']=_0x43057c[0x0],_0x3d6b7f[_0x341176('0xc11')]['language']=_0x43057c[0x1],_0x3d6b7f[_0x341176('0xc11')][_0x341176('0xfcc')]=_0x43057c[_0x341176('0xa19')](0x2,_0x43057c[_0x341176('0x25ae')])[_0x341176('0x1537')](',');}break;case _0x341176('0x1321'):{var _0x156cc1=_0x3d6b7f['dialogflow'][_0x341176('0x26d2')][_0x341176('0x1745')](',');_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x22be')]=_0x156cc1[0x0],_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x700')]=_0x156cc1[0x1],_0x3d6b7f[_0x341176('0xc11')]['lexregion']=_0x156cc1[0x2],_0x3d6b7f['dialogflow'][_0x341176('0x191a')]=_0x156cc1[0x3],_0x3d6b7f['dialogflow'][_0x341176('0xfcc')]=_0x156cc1[_0x341176('0xa19')](0x4,_0x156cc1[_0x341176('0x25ae')])[_0x341176('0x1537')](',');}break;case _0x341176('0x400'):{var _0x723c70=_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x26d2')][_0x341176('0x1745')](',');_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x1ec4')]=isNaN(_0x723c70[0x0])?_0x723c70[0x0]:parseInt(_0x723c70[0x0],0xa),_0x3d6b7f['dialogflow'][_0x341176('0x1bc6')]=_0x723c70[_0x341176('0xa19')](0x1,_0x723c70[_0x341176('0x25ae')])['join'](',');}break;case _0x341176('0x27e8'):_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x1bc6')]=_0x3d6b7f['dialogflow'][_0x341176('0x26d2')];break;case _0x341176('0x2aa'):_0x3d6b7f['dialogflow'][_0x341176('0x2623')]=_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x26d2')][_0x341176('0x1745')]('=')[0x0],_0x3d6b7f['dialogflow']['value']=_0x3d6b7f['dialogflow']['appdata'][_0x341176('0x1745')]('=')[0x1];break;case _0x341176('0x401'):_0x3d6b7f[_0x341176('0xc11')]['project']=_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x26d2')];break;default:{var _0x7f41ff=_0x3d6b7f['dialogflow']['appdata'][_0x341176('0x1745')](',');_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x6e4')]=_0x32d445()[_0x341176('0x14b4')](_0x7f41ff[0x0])?_0x7f41ff[0x0]:isNaN(_0x7f41ff[0x0])?_0x7f41ff[0x0]:parseInt(_0x7f41ff[0x0],0xa),_0x3d6b7f[_0x341176('0xc11')]['language']=_0x32d445()['isEmpty'](_0x7f41ff[0x1])?_0x7f41ff[0x1]:isNaN(_0x7f41ff[0x1])?_0x7f41ff[0x1]:parseInt(_0x7f41ff[0x1],0xa),_0x3d6b7f[_0x341176('0xc11')][_0x341176('0xfcc')]=_0x32d445()[_0x341176('0x14b4')](_0x7f41ff[0x2])?_0x7f41ff[0x2]:isNaN(_0x7f41ff[0x2])?_0x7f41ff[0x2]:parseInt(_0x7f41ff[0x2],0xa);}break;}else _0x3d6b7f['dialogflow'][_0x341176('0x174b')]='en';_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x62e')]&&_0x3d6b7f[_0x341176('0xc11')]['type']['toLowerCase']()===_0x341176('0x1fdf')&&_0x3d6b7f[_0x341176('0xc11')]['appType'][_0x341176('0x20dd')]()===_0x341176('0x1d1b')&&(_0x3d6b7f['dialogflow'][_0x341176('0x2580')]=_0x3d6b7f['dialogflow'][_0x341176('0x1ef5')]?_0x3d6b7f[_0x341176('0xc11')][_0x341176('0x1ef5')][_0x341176('0x1745')]('$')[0x0]:undefined,_0x3d6b7f['dialogflow']['callerId']=_0x3d6b7f[_0x341176('0xc11')][_0x341176('0xfca')]?_0x341176('0xd41')+_0x3d6b7f['dialogflow'][_0x341176('0xfca')]:undefined);_0x3d6b7f['saveSmsAccountApp']=_0x1fdf28,_0x3d6b7f['closeDialog']=_0x4d7c58;function _0x1fdf28(){var _0x5331f3=_0x341176;_0x3d6b7f[_0x5331f3('0xcd2')]=[];var _0x107c25=[];_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x62e')]&&_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x62e')][_0x5331f3('0x20dd')]()==='outbound'&&_0x3d6b7f['dialogflow'][_0x5331f3('0xf44')]===_0x5331f3('0x3d2')&&(_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x1ef5')]=_0x1b0330[_0x5331f3('0x27f6')]?(_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x2580')]||'')+_0x5331f3('0x5d8')+_0x1b0330[_0x5331f3('0x27f6')]+'}':(_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x2580')]||'')+_0x5331f3('0x16b5'),_0x1b0330['recordingFormat']!==_0x5331f3('0x23ca')?_0x3d6b7f['dialogflow']['options']['indexOf'](_0x5331f3('0x767'))<0x0&&(_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x2116')]+=_0x5331f3('0x767')):_0x3d6b7f[_0x5331f3('0xc11')]['options']=_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x2116')][_0x5331f3('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x3d6b7f['dialogflow'][_0x5331f3('0xf44')]&&_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0xf44')]===_0x5331f3('0x261d')){}else switch((_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0xf2b')]||_0x3d6b7f['dialogflow'][_0x5331f3('0xf44')])[_0x5331f3('0x20dd')]()){case _0x5331f3('0x2aa'):_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x26d2')]=_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x2623')]+'='+_0x3d6b7f[_0x5331f3('0xc11')]['value'];break;case _0x5331f3('0x261d'):break;default:_0x107c25[0x0]=_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x6e4')],_0x107c25[0x1]=_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x174b')],_0x107c25[0x2]=_0x3d6b7f['dialogflow'][_0x5331f3('0xfcc')],_0x3d6b7f[_0x5331f3('0xc11')][_0x5331f3('0x26d2')]=_0x107c25[_0x5331f3('0x1537')](',');}_0x4d7c58(_0x3d6b7f[_0x5331f3('0xc11')]);}function _0x4d7c58(_0x2e3ee7){var _0x561dca=_0x341176;_0x476cce[_0x561dca('0x11ed')](_0x2e3ee7);}}const _0x55d9b3=_0x2a4452;_0x16b27b[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1a3e'),_0xb635d2('0x1437'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x16b27b(_0x14e6f4,_0x2210bb,_0x3745f0,_0x1b00a0,_0x39934a,_0x81b4a5,_0x3076eb,_0x64673c){var _0x48098c=_0xb635d2,_0x12cd2a=this;_0x12cd2a[_0x48098c('0x15a5')]=_0x3076eb['getCurrentUser'](),_0x12cd2a[_0x48098c('0xcd2')]=[],_0x12cd2a['title']=_0x48098c('0x13b6')+(_0x1b00a0['appType']||_0x1b00a0[_0x48098c('0xf2b')])[_0x48098c('0x25f7')](),_0x12cd2a[_0x48098c('0x22c3')]=angular['copy'](_0x1b00a0),_0x12cd2a[_0x48098c('0xb3d')]=_0x64673c,_0x12cd2a[_0x48098c('0x1ccb')]={};if(_0x12cd2a['gotoif'][_0x48098c('0x26d2')])switch(_0x12cd2a[_0x48098c('0x22c3')]['appType']?_0x12cd2a[_0x48098c('0x22c3')]['appType'][_0x48098c('0x20dd')]():_0x12cd2a['gotoif'][_0x48098c('0xf2b')][_0x48098c('0x20dd')]()){case _0x48098c('0x261d'):break;case _0x48098c('0xc11'):{var _0x5c8dc3=_0x12cd2a[_0x48098c('0x22c3')]['appdata'][_0x48098c('0x1745')](',');_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x6e4')]=_0x5c8dc3[0x0],_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x174b')]=_0x5c8dc3[0x1],_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0xfcc')]=_0x5c8dc3[_0x48098c('0xa19')](0x2,_0x5c8dc3[_0x48098c('0x25ae')])[_0x48098c('0x1537')](',');}break;case _0x48098c('0x1321'):{var _0x372d65=_0x12cd2a[_0x48098c('0x22c3')]['appdata'][_0x48098c('0x1745')](',');_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x22be')]=_0x372d65[0x0],_0x12cd2a[_0x48098c('0x22c3')]['secretaccesskey']=_0x372d65[0x1],_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x206a')]=_0x372d65[0x2],_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x191a')]=_0x372d65[0x3],_0x12cd2a[_0x48098c('0x22c3')]['welcomemessage']=_0x372d65[_0x48098c('0xa19')](0x4,_0x372d65[_0x48098c('0x25ae')])[_0x48098c('0x1537')](',');}break;case _0x48098c('0x400'):{var _0x50d1dc=_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x26d2')][_0x48098c('0x1745')](',');_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x1ec4')]=isNaN(_0x50d1dc[0x0])?_0x50d1dc[0x0]:parseInt(_0x50d1dc[0x0],0xa),_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x1bc6')]=_0x50d1dc[_0x48098c('0xa19')](0x1,_0x50d1dc['length'])[_0x48098c('0x1537')](',');}break;case _0x48098c('0x27e8'):_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x1bc6')]=_0x12cd2a['gotoif'][_0x48098c('0x26d2')];break;case'set':_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x2623')]=_0x12cd2a[_0x48098c('0x22c3')]['appdata']['split']('=')[0x0],_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x2')]=_0x12cd2a['gotoif'][_0x48098c('0x26d2')][_0x48098c('0x1745')]('=')[0x1];break;case _0x48098c('0x401'):_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x38b')]=_0x12cd2a[_0x48098c('0x22c3')]['appdata'];break;default:{var _0x55f1e8=_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x26d2')]['split'](',');_0x12cd2a[_0x48098c('0x22c3')]['condition']=_0x32d445()[_0x48098c('0x14b4')](_0x55f1e8[0x0])?_0x55f1e8[0x0]:isNaN(_0x55f1e8[0x0])?_0x55f1e8[0x0]:parseInt(_0x55f1e8[0x0],0xa),_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x50')]=_0x32d445()[_0x48098c('0x14b4')](_0x55f1e8[0x1])?_0x55f1e8[0x1]:isNaN(_0x55f1e8[0x1])?_0x55f1e8[0x1]:parseInt(_0x55f1e8[0x1],0xa),_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x347')]=_0x32d445()[_0x48098c('0x14b4')](_0x55f1e8[0x2])?_0x55f1e8[0x2]:isNaN(_0x55f1e8[0x2])?_0x55f1e8[0x2]:parseInt(_0x55f1e8[0x2],0xa);}break;}else{}_0x12cd2a['gotoif']['type']&&_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x62e')][_0x48098c('0x20dd')]()===_0x48098c('0x1fdf')&&_0x12cd2a['gotoif'][_0x48098c('0xf44')]['toLowerCase']()===_0x48098c('0x1d1b')&&(_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0x2580')]=_0x12cd2a['gotoif'][_0x48098c('0x1ef5')]?_0x12cd2a['gotoif']['phone']['split']('$')[0x0]:undefined,_0x12cd2a[_0x48098c('0x22c3')]['callerId']=_0x12cd2a['gotoif'][_0x48098c('0xfca')]?_0x48098c('0xd41')+_0x12cd2a[_0x48098c('0x22c3')][_0x48098c('0xfca')]:undefined);_0x12cd2a[_0x48098c('0xaed')]=_0x204786,_0x12cd2a[_0x48098c('0x2584')]=_0x3ebe6b;function _0x204786(){var _0x55c7d3=_0x48098c;_0x12cd2a[_0x55c7d3('0xcd2')]=[];var _0x4bc53e=[];_0x12cd2a['gotoif'][_0x55c7d3('0x62e')]&&_0x12cd2a['gotoif']['type'][_0x55c7d3('0x20dd')]()===_0x55c7d3('0x1fdf')&&_0x12cd2a[_0x55c7d3('0x22c3')]['appType']===_0x55c7d3('0x3d2')&&(_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x1ef5')]=_0x39934a['cutdigits']?(_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x2580')]||'')+_0x55c7d3('0x5d8')+_0x39934a[_0x55c7d3('0x27f6')]+'}':(_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x2580')]||'')+_0x55c7d3('0x16b5'),_0x39934a[_0x55c7d3('0x150c')]!==_0x55c7d3('0x23ca')?_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x2116')][_0x55c7d3('0x281c')](_0x55c7d3('0x767'))<0x0&&(_0x12cd2a[_0x55c7d3('0x22c3')]['options']+=_0x55c7d3('0x767')):_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x2116')]=_0x12cd2a['gotoif'][_0x55c7d3('0x2116')]['replace'](_0x55c7d3('0x767'),''));if(_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0xf44')]&&_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0xf44')]===_0x55c7d3('0x261d')){}else switch((_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0xf2b')]||_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0xf44')])[_0x55c7d3('0x20dd')]()){case _0x55c7d3('0x2aa'):_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x26d2')]=_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x2623')]+'='+_0x12cd2a['gotoif'][_0x55c7d3('0x2')];break;case'custom':break;default:_0x4bc53e[0x0]=_0x12cd2a['gotoif'][_0x55c7d3('0x1c03')],_0x4bc53e[0x1]=_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x50')],_0x4bc53e[0x2]=_0x12cd2a[_0x55c7d3('0x22c3')][_0x55c7d3('0x347')],_0x12cd2a['gotoif'][_0x55c7d3('0x26d2')]=_0x4bc53e['join'](',');}_0x3ebe6b(_0x12cd2a[_0x55c7d3('0x22c3')]);}function _0x3ebe6b(_0x30d242){var _0x1f1c43=_0x48098c;_0x14e6f4[_0x1f1c43('0x11ed')](_0x30d242);}}const _0x9d0d64=_0x16b27b;_0x509277[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1a3e'),'smsAccount','api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x509277(_0x359edd,_0x3c6f8e,_0x31d660,_0x32f335,_0x5da65f,_0x2c1e57,_0x2cc495,_0x58f633){var _0x285bbe=_0xb635d2,_0x5903eb=this;_0x5903eb[_0x285bbe('0x15a5')]=_0x2cc495[_0x285bbe('0x1ef8')](),_0x5903eb['errors']=[],_0x5903eb[_0x285bbe('0x13e4')]=_0x285bbe('0x13b6')+(_0x32f335[_0x285bbe('0xf44')]||_0x32f335[_0x285bbe('0xf2b')])[_0x285bbe('0x25f7')](),_0x5903eb[_0x285bbe('0x16fe')]=angular[_0x285bbe('0x89')](_0x32f335),_0x5903eb[_0x285bbe('0xb3d')]=_0x58f633,_0x5903eb[_0x285bbe('0x1ccb')]={};if(_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x26d2')])switch(_0x5903eb['gotop'][_0x285bbe('0xf44')]?_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0xf44')]['toLowerCase']():_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0xf2b')][_0x285bbe('0x20dd')]()){case _0x285bbe('0x261d'):break;case _0x285bbe('0xc11'):{var _0x46b795=_0x5903eb[_0x285bbe('0x16fe')]['appdata'][_0x285bbe('0x1745')](',');_0x5903eb[_0x285bbe('0x16fe')]['key']=_0x46b795[0x0],_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x174b')]=_0x46b795[0x1],_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0xfcc')]=_0x46b795[_0x285bbe('0xa19')](0x2,_0x46b795[_0x285bbe('0x25ae')])['join'](',');}break;case _0x285bbe('0x1321'):{var _0x2beecb=_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x26d2')][_0x285bbe('0x1745')](',');_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x22be')]=_0x2beecb[0x0],_0x5903eb['gotop']['secretaccesskey']=_0x2beecb[0x1],_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x206a')]=_0x2beecb[0x2],_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x191a')]=_0x2beecb[0x3],_0x5903eb['gotop'][_0x285bbe('0xfcc')]=_0x2beecb[_0x285bbe('0xa19')](0x4,_0x2beecb[_0x285bbe('0x25ae')])[_0x285bbe('0x1537')](',');}break;case _0x285bbe('0x400'):{var _0x38b58a=_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x26d2')][_0x285bbe('0x1745')](',');_0x5903eb['gotop'][_0x285bbe('0x1ec4')]=isNaN(_0x38b58a[0x0])?_0x38b58a[0x0]:parseInt(_0x38b58a[0x0],0xa),_0x5903eb['gotop'][_0x285bbe('0x1bc6')]=_0x38b58a['slice'](0x1,_0x38b58a[_0x285bbe('0x25ae')])['join'](',');}break;case _0x285bbe('0x27e8'):_0x5903eb['gotop'][_0x285bbe('0x1bc6')]=_0x5903eb['gotop'][_0x285bbe('0x26d2')];break;case _0x285bbe('0x2aa'):_0x5903eb[_0x285bbe('0x16fe')]['name']=_0x5903eb[_0x285bbe('0x16fe')]['appdata'][_0x285bbe('0x1745')]('=')[0x0],_0x5903eb['gotop']['value']=_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x26d2')]['split']('=')[0x1];break;case _0x285bbe('0x401'):_0x5903eb['gotop'][_0x285bbe('0x38b')]=_0x5903eb[_0x285bbe('0x16fe')]['appdata'];break;default:{var _0x138a2b=_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x26d2')][_0x285bbe('0x1745')](',');_0x5903eb['gotop'][_0x285bbe('0xb33')]=_0x32d445()[_0x285bbe('0x14b4')](_0x138a2b[0x0])?_0x138a2b[0x0]:isNaN(_0x138a2b[0x0])?_0x138a2b[0x0]:parseInt(_0x138a2b[0x0],0xa);}break;}else{}_0x5903eb[_0x285bbe('0x16fe')]['type']&&_0x5903eb[_0x285bbe('0x16fe')]['type'][_0x285bbe('0x20dd')]()===_0x285bbe('0x1fdf')&&_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0xf44')][_0x285bbe('0x20dd')]()===_0x285bbe('0x1d1b')&&(_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x2580')]=_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x1ef5')]?_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x1ef5')][_0x285bbe('0x1745')]('$')[0x0]:undefined,_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0x1b6f')]=_0x5903eb[_0x285bbe('0x16fe')][_0x285bbe('0xfca')]?_0x285bbe('0xd41')+_0x5903eb['gotop']['callerID']:undefined);_0x5903eb['saveSmsAccountApp']=_0x4234da,_0x5903eb[_0x285bbe('0x2584')]=_0x1ef879;function _0x4234da(){var _0x434a93=_0x285bbe;_0x5903eb[_0x434a93('0xcd2')]=[];var _0x50c6d6=[];_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x62e')]&&_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x62e')][_0x434a93('0x20dd')]()===_0x434a93('0x1fdf')&&_0x5903eb['gotop']['appType']==='outboundDial'&&(_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x1ef5')]=_0x5da65f[_0x434a93('0x27f6')]?(_0x5903eb[_0x434a93('0x16fe')]['prefix']||'')+_0x434a93('0x5d8')+_0x5da65f[_0x434a93('0x27f6')]+'}':(_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x2580')]||'')+_0x434a93('0x16b5'),_0x5da65f['recordingFormat']!==_0x434a93('0x23ca')?_0x5903eb['gotop'][_0x434a93('0x2116')][_0x434a93('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x2116')]+=_0x434a93('0x767')):_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x2116')]=_0x5903eb['gotop'][_0x434a93('0x2116')][_0x434a93('0x1b42')](_0x434a93('0x767'),''));if(_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0xf44')]&&_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0xf44')]===_0x434a93('0x261d')){}else switch((_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0xf2b')]||_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0xf44')])[_0x434a93('0x20dd')]()){case _0x434a93('0x2aa'):_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x26d2')]=_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x2623')]+'='+_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x2')];break;case _0x434a93('0x261d'):break;default:_0x50c6d6[0x0]=_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0xb33')],_0x5903eb[_0x434a93('0x16fe')][_0x434a93('0x26d2')]=_0x50c6d6['join'](',');}_0x1ef879(_0x5903eb['gotop']);}function _0x1ef879(_0x592df7){var _0x93e27b=_0x285bbe;_0x359edd[_0x93e27b('0x11ed')](_0x592df7);}}const _0x48a3e2=_0x509277;_0x4de34f[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),'$mdToast',_0xb635d2('0x9ab'),_0xb635d2('0x134c'),_0xb635d2('0x10e0'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4de34f(_0x567e3d,_0x3ed2a1,_0xaf241b,_0x473ef7,_0x3fc2e6,_0x4e5fb1,_0x8c12c2,_0x267ddd,_0x5b6508,_0x1780c5){var _0x2ab242=_0xb635d2,_0x1a3341=this;_0x1a3341['currentUser']=_0x5b6508[_0x2ab242('0x1ef8')](),_0x1a3341[_0x2ab242('0xcd2')]=[],_0x1a3341[_0x2ab242('0x13e4')]='TOOLS.EDIT_INTERVAL',_0x1a3341['interval']=angular['copy'](_0x3fc2e6),_0x1a3341[_0x2ab242('0x10e0')]=_0x4e5fb1,_0x1a3341[_0x2ab242('0x1a83')]=![],_0x1a3341[_0x2ab242('0x1ea6')]=[_0x2ab242('0x2210'),_0x2ab242('0x261d'),'list'],_0x1a3341[_0x2ab242('0xb3d')]=_0x1780c5,_0x1a3341['daysOfWeek']=_0x473ef7[_0x2ab242('0xfd7')](),_0x1a3341[_0x2ab242('0x253d')]=_0x473ef7[_0x2ab242('0x1015')](),_0x1a3341[_0x2ab242('0x631')]=_0x473ef7[_0x2ab242('0x1b22')](),_0x1a3341[_0x2ab242('0x2347')]=_0x473ef7[_0x2ab242('0xdee')]();if(!_0x1a3341[_0x2ab242('0x134c')])_0x1a3341['interval']={'interval':_0x2ab242('0x2292')},_0x1a3341[_0x2ab242('0x62e')]='always',_0x1a3341[_0x2ab242('0x13e4')]='TOOLS.NEW_INTERVAL',_0x1a3341['newInterval']=!![];else{if(_0x1a3341[_0x2ab242('0x134c')][_0x2ab242('0x134c')]!==_0x2ab242('0x2292')){_0x1a3341[_0x2ab242('0x62e')]=_0x2ab242('0x261d');var _0x569708=_0x1a3341[_0x2ab242('0x134c')][_0x2ab242('0x134c')][_0x2ab242('0x1745')](','),_0x879f9e=_0x569708[0x0],_0x350aa5=_0x569708[0x1],_0x2bd485=_0x569708[0x2],_0x2c3a7d=_0x569708[0x3];if(_0x879f9e!=='*'){var _0x5116cd=_0x879f9e[_0x2ab242('0x1745')]('-')[0x0],_0x460b2c=_0x879f9e[_0x2ab242('0x1745')]('-')[0x1],_0x403c36;_0x403c36=new Date(),_0x403c36[_0x2ab242('0x19f6')](Number(_0x5116cd[_0x2ab242('0x1745')](':')[0x0])),_0x403c36[_0x2ab242('0x6b6')](Number(_0x5116cd['split'](':')[0x1])),_0x1a3341[_0x2ab242('0xde9')]=_0x403c36,_0x403c36=new Date(),_0x403c36['setHours'](Number(_0x460b2c[_0x2ab242('0x1745')](':')[0x0])),_0x403c36[_0x2ab242('0x6b6')](Number(_0x460b2c[_0x2ab242('0x1745')](':')[0x1])),_0x1a3341[_0x2ab242('0x12ef')]=_0x403c36;}_0x350aa5!=='*'&&(_0x1a3341[_0x2ab242('0x2359')]=_0x350aa5[_0x2ab242('0x1745')]('-')[0x0],_0x1a3341['dayOfWeekTo']=_0x350aa5[_0x2ab242('0x1745')]('-')[0x1]),_0x2bd485!=='*'&&(_0x1a3341[_0x2ab242('0x146b')]=_0x2bd485[_0x2ab242('0x1745')]('-')[0x0],_0x1a3341['monthDayTo']=_0x2bd485[_0x2ab242('0x1745')]('-')[0x1]),_0x2c3a7d!=='*'&&(_0x1a3341[_0x2ab242('0x1b2a')]=_0x2c3a7d[_0x2ab242('0x1745')]('-')[0x0],_0x1a3341[_0x2ab242('0xac6')]=_0x2c3a7d['split']('-')[0x1]);}else _0x1a3341['type']=_0x2ab242('0x2210');}_0x567e3d[_0x2ab242('0x2ef')]['id']&&!_0x1a3341[_0x2ab242('0x134c')][_0x2ab242('0x1491')]&&(_0x1a3341[_0x2ab242('0x134c')]['IntervalId']=_0x567e3d['params']['id']);_0x1a3341[_0x2ab242('0x134c')][_0x2ab242('0x1fc1')]&&_0x1a3341[_0x2ab242('0x134c')]['application']&&(_0x1a3341['type']=_0x2ab242('0x15a8'));_0x1a3341['addNewInterval']=_0x4fc212,_0x1a3341[_0x2ab242('0x201f')]=_0x49518e,_0x1a3341[_0x2ab242('0x2584')]=_0x48e850;_0x1a3341[_0x2ab242('0x134c')][_0x2ab242('0x1491')]&&(_0x5b6508[_0x2ab242('0x179e')](_0x2ab242('0xd14'))?_0x267ddd[_0x2ab242('0x134c')]['get']({'fields':_0x2ab242('0x13df'),'IntervalId':_0x2ab242('0x1046'),'nolimit':!![]})['$promise'][_0x2ab242('0xe19')](function(_0x53a005){var _0x3bb520=_0x2ab242;_0x1a3341['intervals']=_0x53a005[_0x3bb520('0x16a7')]||[];})[_0x2ab242('0x223b')](function(_0x41de6f){var _0x36fb2b=_0x2ab242;_0x8c12c2[_0x36fb2b('0x8c8')]({'title':_0x41de6f[_0x36fb2b('0x2833')]?_0x36fb2b('0x27f2')+_0x41de6f[_0x36fb2b('0x2833')]+_0x36fb2b('0x1b7c')+_0x41de6f[_0x36fb2b('0x1fd7')]:_0x36fb2b('0x1c1c'),'msg':_0x41de6f[_0x36fb2b('0x11d0')]?JSON[_0x36fb2b('0x3ad')](_0x41de6f[_0x36fb2b('0x11d0')]):_0x41de6f[_0x36fb2b('0x94f')]()});}):_0x267ddd[_0x2ab242('0x134c')][_0x2ab242('0x22d5')]({'fields':_0x2ab242('0x13df'),'IntervalId':_0x2ab242('0x1046'),'nolimit':!![]})['$promise']['then'](function(_0x404c12){var _0x53bea4=_0x2ab242;_0x1a3341[_0x53bea4('0x10e0')]=_0x404c12['rows']||[];})[_0x2ab242('0xe19')](function(){var _0x593cfc=_0x2ab242;return _0x267ddd[_0x593cfc('0xb59')][_0x593cfc('0x22d5')]({'userProfileId':_0x1a3341[_0x593cfc('0x15a5')]['userProfileId'],'sectionId':0x3ec})[_0x593cfc('0xe59')];})[_0x2ab242('0xe19')](function(_0x15bdff){var _0x469e04=_0x2ab242,_0x3b8afa=_0x15bdff&&_0x15bdff[_0x469e04('0x16a7')]?_0x15bdff[_0x469e04('0x16a7')][0x0]:null;if(!_0x3b8afa)_0x1a3341[_0x469e04('0x10e0')]=[];else{if(!_0x3b8afa[_0x469e04('0x11fd')])return _0x267ddd['userProfileResource'][_0x469e04('0x22d5')]({'sectionId':_0x3b8afa['id']})[_0x469e04('0xe59')][_0x469e04('0xe19')](function(_0x51d407){var _0x16ae0d=_0x469e04,_0x115d11=_0x51d407&&_0x51d407[_0x16ae0d('0x16a7')]?_0x51d407[_0x16ae0d('0x16a7')]:[],_0x3189d7=[],_0x2d9955=null;_0x1a3341[_0x16ae0d('0x134c')]&&(_0x2d9955=_0x32d445()[_0x16ae0d('0xf15')](_0x1a3341[_0x16ae0d('0x10e0')],{'name':_0x1a3341[_0x16ae0d('0x134c')][_0x16ae0d('0x1fc1')]})),_0x2d9955&&!_0x32d445()[_0x16ae0d('0x201a')](_0x115d11,['resourceId',_0x2d9955['id']])&&_0x1a3341[_0x16ae0d('0x10e0')][_0x16ae0d('0x1d7e')](function(_0x3999b1){var _0x484523=_0x16ae0d;_0x3999b1['id']===_0x2d9955['id']&&(_0x3999b1[_0x484523('0x1e9d')]=![],_0x3189d7[_0x484523('0xb76')](_0x3999b1));}),_0x1a3341[_0x16ae0d('0x10e0')]=_0x3189d7;});}})['catch'](function(_0x1dd0a2){var _0x12be8b=_0x2ab242;_0x8c12c2[_0x12be8b('0x8c8')]({'title':_0x1dd0a2[_0x12be8b('0x2833')]?_0x12be8b('0x27f2')+_0x1dd0a2[_0x12be8b('0x2833')]+_0x12be8b('0x1b7c')+_0x1dd0a2[_0x12be8b('0x1fd7')]:_0x12be8b('0x1c1c'),'msg':_0x1dd0a2['data']?JSON[_0x12be8b('0x3ad')](_0x1dd0a2[_0x12be8b('0x11d0')]):_0x1dd0a2['toString']()});}));function _0x11b661(){var _0x25ac7b=_0x2ab242;switch(_0x1a3341[_0x25ac7b('0x62e')]){case _0x25ac7b('0x2210'):case _0x25ac7b('0x15a8'):return _0x25ac7b('0x2292');case _0x25ac7b('0x261d'):{var _0x1d831d=[];if(_0x1a3341[_0x25ac7b('0xde9')]!=='*'&&_0x1a3341[_0x25ac7b('0xde9')]&&_0x1a3341[_0x25ac7b('0x12ef')]){var _0x138871=(_0x1a3341[_0x25ac7b('0xde9')][_0x25ac7b('0x757')]()<0xa?'0':'')+_0x1a3341[_0x25ac7b('0xde9')][_0x25ac7b('0x757')]()+':'+((_0x1a3341['timeRangeFrom'][_0x25ac7b('0x961')]()<0xa?'0':'')+_0x1a3341[_0x25ac7b('0xde9')][_0x25ac7b('0x961')]()),_0x57deed=(_0x1a3341['timeRangeTo'][_0x25ac7b('0x757')]()<0xa?'0':'')+_0x1a3341['timeRangeTo'][_0x25ac7b('0x757')]()+':'+((_0x1a3341[_0x25ac7b('0x12ef')][_0x25ac7b('0x961')]()<0xa?'0':'')+_0x1a3341[_0x25ac7b('0x12ef')][_0x25ac7b('0x961')]());_0x1d831d[_0x25ac7b('0xb76')](_0x138871+'-'+_0x57deed);}else _0x1d831d['push']('*');return _0x1a3341[_0x25ac7b('0x2359')]?_0x1a3341[_0x25ac7b('0xa40')]?_0x1d831d[_0x25ac7b('0xb76')](_0x1a3341[_0x25ac7b('0x2359')]+'-'+_0x1a3341[_0x25ac7b('0xa40')]):_0x1d831d[_0x25ac7b('0xb76')](_0x1a3341[_0x25ac7b('0x2359')]):_0x1d831d['push']('*'),_0x1a3341['monthDayFrom']?_0x1a3341['monthDayTo']?_0x1d831d[_0x25ac7b('0xb76')](_0x1a3341[_0x25ac7b('0x146b')]+'-'+_0x1a3341['monthDayTo']):_0x1d831d['push'](_0x1a3341[_0x25ac7b('0x146b')]):_0x1d831d[_0x25ac7b('0xb76')]('*'),_0x1a3341[_0x25ac7b('0x1b2a')]?_0x1a3341[_0x25ac7b('0xac6')]?_0x1d831d[_0x25ac7b('0xb76')](_0x1a3341[_0x25ac7b('0x1b2a')]+'-'+_0x1a3341['monthTo']):_0x1d831d[_0x25ac7b('0xb76')](_0x1a3341[_0x25ac7b('0x1b2a')]):_0x1d831d[_0x25ac7b('0xb76')]('*'),_0x1d831d['join']();}}}function _0x4fc212(){var _0x1cd7f4=_0x2ab242;_0x1a3341[_0x1cd7f4('0xcd2')]=[],_0x1a3341[_0x1cd7f4('0x134c')]['interval']=_0x11b661(),_0x267ddd[_0x1cd7f4('0x134c')][_0x1cd7f4('0xe5e')](_0x1a3341[_0x1cd7f4('0x134c')])[_0x1cd7f4('0xe59')][_0x1cd7f4('0xe19')](function(_0x44d637){var _0x56134d=_0x1cd7f4;_0x1a3341[_0x56134d('0x10e0')][_0x56134d('0xb76')](_0x44d637),_0x8c12c2['success']({'title':_0x56134d('0x1268'),'msg':_0x1a3341['interval'][_0x56134d('0x2623')]?_0x1a3341[_0x56134d('0x134c')]['name']+_0x56134d('0x105f'):''}),_0x48e850();})[_0x1cd7f4('0x223b')](function(_0x4eeb6a){var _0x4e8c20=_0x1cd7f4;console[_0x4e8c20('0x8c8')](_0x4eeb6a),_0x1a3341[_0x4e8c20('0xcd2')]=_0x4eeb6a['data'][_0x4e8c20('0xcd2')]||[{'message':_0x4eeb6a['toString'](),'type':_0x4e8c20('0x176b')}];});}function _0x49518e(){var _0x3c8e0a=_0x2ab242;_0x1a3341[_0x3c8e0a('0xcd2')]=[],_0x1a3341[_0x3c8e0a('0x134c')][_0x3c8e0a('0x134c')]=_0x11b661(),_0x1a3341['interval'][_0x3c8e0a('0x1491')]?(_0x1a3341['type']!==_0x3c8e0a('0x15a8')&&(_0x1a3341[_0x3c8e0a('0x134c')][_0x3c8e0a('0x1fc1')]=null),_0x48e850(_0x1a3341[_0x3c8e0a('0x134c')])):_0x267ddd[_0x3c8e0a('0x134c')]['update']({'id':_0x1a3341['interval']['id']},_0x1a3341[_0x3c8e0a('0x134c')])[_0x3c8e0a('0xe59')][_0x3c8e0a('0xe19')](function(_0xf5e281){var _0x32572e=_0x3c8e0a,_0x111eb6=_0x32d445()[_0x32572e('0xf15')](_0x1a3341['intervals'],{'id':_0xf5e281['id']});_0x111eb6&&_0x32d445()[_0x32572e('0x1d8')](_0x111eb6,_0xf5e281),_0x8c12c2['success']({'title':'Interval\x20properly\x20saved!','msg':_0x32572e('0x8b4')}),_0x48e850();})[_0x3c8e0a('0x223b')](function(_0x401d49){var _0xdc444a=_0x3c8e0a;console['error'](_0x401d49),_0x1a3341[_0xdc444a('0xcd2')]=_0x401d49[_0xdc444a('0x11d0')]['errors']||[{'message':_0x401d49[_0xdc444a('0x94f')](),'type':'api.interval.update'}];});}function _0x48e850(_0x1fb5b5){var _0x105cbe=_0x2ab242;_0x3ed2a1[_0x105cbe('0x11ed')](_0x1fb5b5);}}const _0x449e1f=_0x4de34f;_0xbb64ce[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1a3e'),_0xb635d2('0x1437'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0xbb64ce(_0x331a7b,_0x5c621a,_0x355384,_0x4ddf5e,_0x4c6aab,_0x3bb865,_0x4f3424,_0x479aa4){var _0x51e4fd=_0xb635d2,_0x2d7f05=this;_0x2d7f05['currentUser']=_0x4f3424[_0x51e4fd('0x1ef8')](),_0x2d7f05[_0x51e4fd('0xcd2')]=[],_0x2d7f05[_0x51e4fd('0x13e4')]=_0x51e4fd('0x13b6')+(_0x4ddf5e['appType']||_0x4ddf5e[_0x51e4fd('0xf2b')])[_0x51e4fd('0x25f7')](),_0x2d7f05[_0x51e4fd('0xc09')]=angular[_0x51e4fd('0x89')](_0x4ddf5e),_0x2d7f05['crudPermissions']=_0x479aa4,_0x2d7f05['hasModulePermissions']={};if(_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x26d2')])switch(_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0xf44')]?_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0xf44')][_0x51e4fd('0x20dd')]():_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0xf2b')]['toLowerCase']()){case _0x51e4fd('0x261d'):break;case _0x51e4fd('0xc11'):{var _0x433220=_0x2d7f05['noop']['appdata'][_0x51e4fd('0x1745')](',');_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x6e4')]=_0x433220[0x0],_0x2d7f05['noop'][_0x51e4fd('0x174b')]=_0x433220[0x1],_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0xfcc')]=_0x433220[_0x51e4fd('0xa19')](0x2,_0x433220[_0x51e4fd('0x25ae')])[_0x51e4fd('0x1537')](',');}break;case _0x51e4fd('0x1321'):{var _0x2daa3d=_0x2d7f05[_0x51e4fd('0xc09')]['appdata'][_0x51e4fd('0x1745')](',');_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x22be')]=_0x2daa3d[0x0],_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x700')]=_0x2daa3d[0x1],_0x2d7f05[_0x51e4fd('0xc09')]['lexregion']=_0x2daa3d[0x2],_0x2d7f05[_0x51e4fd('0xc09')]['botname']=_0x2daa3d[0x3],_0x2d7f05[_0x51e4fd('0xc09')]['welcomemessage']=_0x2daa3d[_0x51e4fd('0xa19')](0x4,_0x2daa3d[_0x51e4fd('0x25ae')])[_0x51e4fd('0x1537')](',');}break;case _0x51e4fd('0x400'):{var _0x4b0d0f=_0x2d7f05[_0x51e4fd('0xc09')]['appdata'][_0x51e4fd('0x1745')](',');_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x1ec4')]=isNaN(_0x4b0d0f[0x0])?_0x4b0d0f[0x0]:parseInt(_0x4b0d0f[0x0],0xa),_0x2d7f05['noop'][_0x51e4fd('0x1bc6')]=_0x4b0d0f[_0x51e4fd('0xa19')](0x1,_0x4b0d0f['length'])[_0x51e4fd('0x1537')](',');}break;case _0x51e4fd('0x27e8'):_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x1bc6')]=_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x26d2')];break;case _0x51e4fd('0x2aa'):_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x2623')]=_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x26d2')][_0x51e4fd('0x1745')]('=')[0x0],_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x2')]=_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x26d2')]['split']('=')[0x1];break;case'agi':_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x38b')]=_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x26d2')];break;default:{var _0x344c32=_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x26d2')][_0x51e4fd('0x1745')](',');_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x2')]=_0x32d445()[_0x51e4fd('0x14b4')](_0x344c32[0x0])?_0x344c32[0x0]:isNaN(_0x344c32[0x0])?_0x344c32[0x0]:parseInt(_0x344c32[0x0],0xa);}break;}else{}_0x2d7f05['noop'][_0x51e4fd('0x62e')]&&_0x2d7f05['noop'][_0x51e4fd('0x62e')][_0x51e4fd('0x20dd')]()==='outbound'&&_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0xf44')][_0x51e4fd('0x20dd')]()==='outbounddial'&&(_0x2d7f05[_0x51e4fd('0xc09')]['prefix']=_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x1ef5')]?_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x1ef5')][_0x51e4fd('0x1745')]('$')[0x0]:undefined,_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0x1b6f')]=_0x2d7f05['noop'][_0x51e4fd('0xfca')]?_0x51e4fd('0xd41')+_0x2d7f05[_0x51e4fd('0xc09')][_0x51e4fd('0xfca')]:undefined);_0x2d7f05[_0x51e4fd('0xaed')]=_0x329d1e,_0x2d7f05['closeDialog']=_0x5cb39c;function _0x329d1e(){var _0x4c426b=_0x51e4fd;_0x2d7f05[_0x4c426b('0xcd2')]=[];var _0x4f50cb=[];_0x2d7f05[_0x4c426b('0xc09')]['type']&&_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0x62e')][_0x4c426b('0x20dd')]()==='outbound'&&_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0xf44')]==='outboundDial'&&(_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0x1ef5')]=_0x4c6aab[_0x4c426b('0x27f6')]?(_0x2d7f05['noop'][_0x4c426b('0x2580')]||'')+_0x4c426b('0x5d8')+_0x4c6aab[_0x4c426b('0x27f6')]+'}':(_0x2d7f05[_0x4c426b('0xc09')]['prefix']||'')+_0x4c426b('0x16b5'),_0x4c6aab['recordingFormat']!=='none'?_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0x2116')][_0x4c426b('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2d7f05['noop'][_0x4c426b('0x2116')]+=_0x4c426b('0x767')):_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0x2116')]=_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0x2116')]['replace'](_0x4c426b('0x767'),''));if(_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0xf44')]&&_0x2d7f05[_0x4c426b('0xc09')]['appType']===_0x4c426b('0x261d')){}else switch((_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0xf2b')]||_0x2d7f05['noop'][_0x4c426b('0xf44')])[_0x4c426b('0x20dd')]()){case'set':_0x2d7f05[_0x4c426b('0xc09')]['appdata']=_0x2d7f05['noop'][_0x4c426b('0x2623')]+'='+_0x2d7f05[_0x4c426b('0xc09')]['value'];break;case _0x4c426b('0x261d'):break;default:_0x4f50cb[0x0]=_0x2d7f05[_0x4c426b('0xc09')][_0x4c426b('0x2')],_0x2d7f05['noop'][_0x4c426b('0x26d2')]=_0x4f50cb[_0x4c426b('0x1537')](',');}_0x5cb39c(_0x2d7f05[_0x4c426b('0xc09')]);}function _0x5cb39c(_0x1ebced){var _0x326011=_0x51e4fd;_0x331a7b[_0x326011('0x11ed')](_0x1ebced);}}const _0x23a46f=_0xbb64ce;_0x53f3f2[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'smsAccountApp',_0xb635d2('0x1437'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x53f3f2(_0x47e302,_0x5cbacf,_0x307d9c,_0x1b9efe,_0x2e6a90,_0x34d2b4,_0x114449,_0x41f79c){var _0x53d550=_0xb635d2,_0x4ee2d2=this;_0x4ee2d2[_0x53d550('0x15a5')]=_0x114449[_0x53d550('0x1ef8')](),_0x4ee2d2[_0x53d550('0xcd2')]=[],_0x4ee2d2[_0x53d550('0x13e4')]='SMS.EDIT_'+(_0x1b9efe['appType']||_0x1b9efe[_0x53d550('0xf2b')])[_0x53d550('0x25f7')](),_0x4ee2d2[_0x53d550('0x26a8')]=angular[_0x53d550('0x89')](_0x1b9efe),_0x4ee2d2[_0x53d550('0xb3d')]=_0x41f79c,_0x4ee2d2[_0x53d550('0x1ccb')]={};if(_0x4ee2d2['queue']['appdata'])switch(_0x4ee2d2['queue'][_0x53d550('0xf44')]?_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0xf44')][_0x53d550('0x20dd')]():_0x4ee2d2[_0x53d550('0x26a8')]['app'][_0x53d550('0x20dd')]()){case _0x53d550('0x261d'):break;case _0x53d550('0xc11'):{var _0x22a2ed=_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x26d2')][_0x53d550('0x1745')](',');_0x4ee2d2['queue'][_0x53d550('0x6e4')]=_0x22a2ed[0x0],_0x4ee2d2[_0x53d550('0x26a8')]['language']=_0x22a2ed[0x1],_0x4ee2d2[_0x53d550('0x26a8')]['welcomemessage']=_0x22a2ed[_0x53d550('0xa19')](0x2,_0x22a2ed[_0x53d550('0x25ae')])[_0x53d550('0x1537')](',');}break;case'amazonlex':{var _0x594099=_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x26d2')][_0x53d550('0x1745')](',');_0x4ee2d2['queue'][_0x53d550('0x22be')]=_0x594099[0x0],_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x700')]=_0x594099[0x1],_0x4ee2d2[_0x53d550('0x26a8')]['lexregion']=_0x594099[0x2],_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x191a')]=_0x594099[0x3],_0x4ee2d2[_0x53d550('0x26a8')]['welcomemessage']=_0x594099[_0x53d550('0xa19')](0x4,_0x594099[_0x53d550('0x25ae')])['join'](',');}break;case _0x53d550('0x400'):{var _0xbea9fc=_0x4ee2d2['queue']['appdata'][_0x53d550('0x1745')](',');_0x4ee2d2['queue'][_0x53d550('0x1ec4')]=isNaN(_0xbea9fc[0x0])?_0xbea9fc[0x0]:parseInt(_0xbea9fc[0x0],0xa),_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x1bc6')]=_0xbea9fc['slice'](0x1,_0xbea9fc[_0x53d550('0x25ae')])[_0x53d550('0x1537')](',');}break;case _0x53d550('0x27e8'):_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x1bc6')]=_0x4ee2d2['queue'][_0x53d550('0x26d2')];break;case'set':_0x4ee2d2['queue'][_0x53d550('0x2623')]=_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x26d2')][_0x53d550('0x1745')]('=')[0x0],_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x2')]=_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x26d2')]['split']('=')[0x1];break;case _0x53d550('0x401'):_0x4ee2d2['queue'][_0x53d550('0x38b')]=_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x26d2')];break;default:{var _0x14b6a8=_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x26d2')][_0x53d550('0x1745')](',');_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x26a8')]=_0x32d445()[_0x53d550('0x14b4')](_0x14b6a8[0x0])?_0x14b6a8[0x0]:isNaN(_0x14b6a8[0x0])?_0x14b6a8[0x0]:parseInt(_0x14b6a8[0x0],0xa),_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x2058')]=_0x32d445()['isEmpty'](_0x14b6a8[0x1])?_0x14b6a8[0x1]:isNaN(_0x14b6a8[0x1])?_0x14b6a8[0x1]:parseInt(_0x14b6a8[0x1],0xa);}break;}else _0x4ee2d2['queue'][_0x53d550('0x26a8')]=0x12c,_0x4ee2d2[_0x53d550('0x26a8')]['timeout']=0x12c;_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x62e')]&&_0x4ee2d2['queue'][_0x53d550('0x62e')][_0x53d550('0x20dd')]()==='outbound'&&_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0xf44')][_0x53d550('0x20dd')]()===_0x53d550('0x1d1b')&&(_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x2580')]=_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x1ef5')]?_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0x1ef5')][_0x53d550('0x1745')]('$')[0x0]:undefined,_0x4ee2d2[_0x53d550('0x26a8')]['callerId']=_0x4ee2d2[_0x53d550('0x26a8')][_0x53d550('0xfca')]?_0x53d550('0xd41')+_0x4ee2d2['queue']['callerID']:undefined);_0x4ee2d2['saveSmsAccountApp']=_0x176008,_0x4ee2d2[_0x53d550('0x2584')]=_0x2eb6f7,_0x114449[_0x53d550('0x179e')](_0x53d550('0xd14'))?_0x34d2b4[_0x53d550('0x19fb')][_0x53d550('0x22d5')]({'fields':_0x53d550('0x1555'),'sort':_0x53d550('0x2623'),'nolimit':'true'})[_0x53d550('0xe59')][_0x53d550('0xe19')](function(_0x5616f7){var _0x3dd5a3=_0x53d550;_0x4ee2d2[_0x3dd5a3('0x671')]=_0x5616f7[_0x3dd5a3('0x16a7')]||[];})[_0x53d550('0x223b')](function(_0x4aaeea){var _0x9aa470=_0x53d550;_0x307d9c[_0x9aa470('0x8c8')]({'title':_0x4aaeea['status']?_0x9aa470('0x27f2')+_0x4aaeea[_0x9aa470('0x2833')]+_0x9aa470('0x1b7c')+_0x4aaeea[_0x9aa470('0x1fd7')]:_0x9aa470('0x19e6'),'msg':_0x4aaeea[_0x9aa470('0x11d0')]?JSON[_0x9aa470('0x3ad')](_0x4aaeea[_0x9aa470('0x11d0')]):_0x4aaeea[_0x9aa470('0x94f')]()});}):_0x34d2b4[_0x53d550('0x19fb')][_0x53d550('0x22d5')]({'fields':_0x53d550('0x1555'),'sort':_0x53d550('0x2623'),'nolimit':_0x53d550('0x2206')})[_0x53d550('0xe59')]['then'](function(_0x1ae118){var _0x52109d=_0x53d550;_0x4ee2d2[_0x52109d('0x671')]=_0x1ae118[_0x52109d('0x16a7')]||[];})['then'](function(){var _0x5a7a99=_0x53d550;return _0x34d2b4[_0x5a7a99('0xb59')][_0x5a7a99('0x22d5')]({'userProfileId':_0x4ee2d2['currentUser'][_0x5a7a99('0x1d04')],'sectionId':0x2bd})['$promise'];})[_0x53d550('0xe19')](function(_0x3a5d3a){var _0x248d73=_0x53d550,_0x12c9b5=_0x3a5d3a&&_0x3a5d3a[_0x248d73('0x16a7')]?_0x3a5d3a[_0x248d73('0x16a7')][0x0]:null;if(!_0x12c9b5){var _0xc6dc28=[],_0x1d5ab4=null;_0x4ee2d2[_0x248d73('0x26a8')]&&(_0x1d5ab4=_0x32d445()[_0x248d73('0xf15')](_0x4ee2d2[_0x248d73('0x671')],{'name':_0x4ee2d2[_0x248d73('0x26a8')][_0x248d73('0x26a8')]}));for(var _0x51bc31=0x0;_0x51bc31<_0x4ee2d2[_0x248d73('0x671')][_0x248d73('0x25ae')];_0x51bc31++){_0x1d5ab4&&_0x4ee2d2[_0x248d73('0x671')][_0x51bc31]['id']===_0x1d5ab4['id']&&(_0x4ee2d2[_0x248d73('0x671')][_0x51bc31]['canSelect']=![],_0xc6dc28[_0x248d73('0xb76')](_0x4ee2d2[_0x248d73('0x671')][_0x51bc31]));}_0x4ee2d2['queues']=_0xc6dc28;}else{if(!_0x12c9b5[_0x248d73('0x11fd')])return _0x34d2b4[_0x248d73('0xd49')]['get']({'sectionId':_0x12c9b5['id']})['$promise'][_0x248d73('0xe19')](function(_0xc9f40a){var _0x54929f=_0x248d73,_0x824d13=_0x32d445()[_0x54929f('0x65a')](_0xc9f40a[_0x54929f('0x16a7')],function(_0x8cbbc1){var _0x352542=_0x54929f;return _0x32d445()['find'](_0x4ee2d2['queues'],{'id':_0x8cbbc1[_0x352542('0x1104')]});}),_0x5e004f=null;_0x4ee2d2[_0x54929f('0x26a8')]&&(_0x5e004f=_0x32d445()[_0x54929f('0xf15')](_0x4ee2d2['queues'],{'name':_0x4ee2d2[_0x54929f('0x26a8')][_0x54929f('0x26a8')]}));if(_0x5e004f&&!_0x32d445()['some'](_0x824d13,['id',_0x5e004f['id']])){var _0xf15ac2=_0x32d445()[_0x54929f('0xf15')](_0x4ee2d2[_0x54929f('0x671')],{'id':_0x5e004f['id']});_0xf15ac2['canSelect']=![],_0x824d13['push'](_0xf15ac2);}_0x4ee2d2['queues']=_0x824d13;});}})[_0x53d550('0x223b')](function(_0x881a36){var _0x1cadc5=_0x53d550;_0x307d9c['error']({'title':_0x881a36[_0x1cadc5('0x2833')]?'API:'+_0x881a36[_0x1cadc5('0x2833')]+'\x20-\x20'+_0x881a36[_0x1cadc5('0x1fd7')]:_0x1cadc5('0x1716'),'msg':_0x881a36[_0x1cadc5('0x11d0')]?JSON['stringify'](_0x881a36[_0x1cadc5('0x11d0')]):_0x881a36[_0x1cadc5('0x94f')]()});});function _0x176008(){var _0x35f097=_0x53d550;_0x4ee2d2['errors']=[];var _0x59c51e=[];_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0x62e')]&&_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0x62e')][_0x35f097('0x20dd')]()===_0x35f097('0x1fdf')&&_0x4ee2d2[_0x35f097('0x26a8')]['appType']===_0x35f097('0x3d2')&&(_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0x1ef5')]=_0x2e6a90[_0x35f097('0x27f6')]?(_0x4ee2d2[_0x35f097('0x26a8')]['prefix']||'')+'${EXTEN:'+_0x2e6a90[_0x35f097('0x27f6')]+'}':(_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0x2580')]||'')+_0x35f097('0x16b5'),_0x2e6a90[_0x35f097('0x150c')]!==_0x35f097('0x23ca')?_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0x2116')][_0x35f097('0x281c')](_0x35f097('0x767'))<0x0&&(_0x4ee2d2['queue'][_0x35f097('0x2116')]+=_0x35f097('0x767')):_0x4ee2d2[_0x35f097('0x26a8')]['options']=_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0x2116')]['replace'](_0x35f097('0x767'),''));var _0x4b6323=_0x32d445()[_0x35f097('0xf15')](_0x4ee2d2[_0x35f097('0x671')],{'name':_0x4ee2d2['queue'][_0x35f097('0x26a8')]});_0x4b6323&&(_0x4ee2d2['queue'][_0x32d445()[_0x35f097('0xbf6')](_0x35f097('0x2801'))+_0x35f097('0x27a3')]=_0x4b6323['id']);if(_0x4ee2d2[_0x35f097('0x26a8')]['appType']&&_0x4ee2d2[_0x35f097('0x26a8')]['appType']===_0x35f097('0x261d')){}else switch((_0x4ee2d2['queue'][_0x35f097('0xf2b')]||_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0xf44')])[_0x35f097('0x20dd')]()){case _0x35f097('0x2aa'):_0x4ee2d2[_0x35f097('0x26a8')]['appdata']=_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0x2623')]+'='+_0x4ee2d2[_0x35f097('0x26a8')]['value'];break;case'custom':break;default:_0x59c51e[0x0]=_0x4ee2d2[_0x35f097('0x26a8')]['queue'],_0x59c51e[0x1]=_0x4ee2d2['queue'][_0x35f097('0x2058')],_0x4ee2d2[_0x35f097('0x26a8')][_0x35f097('0x26d2')]=_0x59c51e[_0x35f097('0x1537')](',');}_0x2eb6f7(_0x4ee2d2[_0x35f097('0x26a8')]);}function _0x2eb6f7(_0x3e0248){var _0x5d5a3b=_0x53d550;_0x47e302[_0x5d5a3b('0x11ed')](_0x3e0248);}}const _0x5816d7=_0x53f3f2;_0x1fe0c1[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),'smsAccountApp',_0xb635d2('0x1437'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x1fe0c1(_0x37e3dc,_0x745122,_0x29ff60,_0x2cac7c,_0x39880e,_0x562000,_0x210285,_0x9232ab){var _0x169e8d=_0xb635d2,_0x30b1f9=this;_0x30b1f9[_0x169e8d('0x15a5')]=_0x210285['getCurrentUser'](),_0x30b1f9['errors']=[],_0x30b1f9[_0x169e8d('0x13e4')]='SMS.EDIT_'+(_0x2cac7c[_0x169e8d('0xf44')]||_0x2cac7c['app'])[_0x169e8d('0x25f7')](),_0x30b1f9[_0x169e8d('0x1917')]=angular['copy'](_0x2cac7c),_0x30b1f9[_0x169e8d('0xb3d')]=_0x9232ab,_0x30b1f9[_0x169e8d('0x1ccb')]={};if(_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x26d2')])switch(_0x30b1f9['system']['appType']?_0x30b1f9[_0x169e8d('0x1917')]['appType'][_0x169e8d('0x20dd')]():_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0xf2b')]['toLowerCase']()){case _0x169e8d('0x261d'):break;case _0x169e8d('0xc11'):{var _0x11fef6=_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x26d2')][_0x169e8d('0x1745')](',');_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x6e4')]=_0x11fef6[0x0],_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x174b')]=_0x11fef6[0x1],_0x30b1f9[_0x169e8d('0x1917')]['welcomemessage']=_0x11fef6[_0x169e8d('0xa19')](0x2,_0x11fef6[_0x169e8d('0x25ae')])[_0x169e8d('0x1537')](',');}break;case _0x169e8d('0x1321'):{var _0x51e5b6=_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x26d2')][_0x169e8d('0x1745')](',');_0x30b1f9['system'][_0x169e8d('0x22be')]=_0x51e5b6[0x0],_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x700')]=_0x51e5b6[0x1],_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x206a')]=_0x51e5b6[0x2],_0x30b1f9[_0x169e8d('0x1917')]['botname']=_0x51e5b6[0x3],_0x30b1f9['system'][_0x169e8d('0xfcc')]=_0x51e5b6[_0x169e8d('0xa19')](0x4,_0x51e5b6[_0x169e8d('0x25ae')])[_0x169e8d('0x1537')](',');}break;case'autoreply':{var _0x34f16d=_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x26d2')][_0x169e8d('0x1745')](',');_0x30b1f9['system'][_0x169e8d('0x1ec4')]=isNaN(_0x34f16d[0x0])?_0x34f16d[0x0]:parseInt(_0x34f16d[0x0],0xa),_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x1bc6')]=_0x34f16d[_0x169e8d('0xa19')](0x1,_0x34f16d[_0x169e8d('0x25ae')])['join'](',');}break;case _0x169e8d('0x27e8'):_0x30b1f9['system'][_0x169e8d('0x1bc6')]=_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x26d2')];break;case'set':_0x30b1f9['system'][_0x169e8d('0x2623')]=_0x30b1f9['system'][_0x169e8d('0x26d2')][_0x169e8d('0x1745')]('=')[0x0],_0x30b1f9[_0x169e8d('0x1917')]['value']=_0x30b1f9[_0x169e8d('0x1917')]['appdata'][_0x169e8d('0x1745')]('=')[0x1];break;case _0x169e8d('0x401'):_0x30b1f9['system']['project']=_0x30b1f9['system']['appdata'];break;default:{var _0x3eb52f=_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x26d2')][_0x169e8d('0x1745')](',');_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x19a')]=_0x32d445()[_0x169e8d('0x14b4')](_0x3eb52f[0x0])?_0x3eb52f[0x0]:isNaN(_0x3eb52f[0x0])?_0x3eb52f[0x0]:parseInt(_0x3eb52f[0x0],0xa),_0x30b1f9[_0x169e8d('0x1917')]['variable']=_0x32d445()[_0x169e8d('0x14b4')](_0x3eb52f[0x1])?_0x3eb52f[0x1]:isNaN(_0x3eb52f[0x1])?_0x3eb52f[0x1]:parseInt(_0x3eb52f[0x1],0xa);}break;}else _0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x19a5')]='';_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x62e')]&&_0x30b1f9[_0x169e8d('0x1917')]['type'][_0x169e8d('0x20dd')]()===_0x169e8d('0x1fdf')&&_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0xf44')][_0x169e8d('0x20dd')]()===_0x169e8d('0x1d1b')&&(_0x30b1f9['system'][_0x169e8d('0x2580')]=_0x30b1f9[_0x169e8d('0x1917')]['phone']?_0x30b1f9['system'][_0x169e8d('0x1ef5')][_0x169e8d('0x1745')]('$')[0x0]:undefined,_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0x1b6f')]=_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0xfca')]?_0x169e8d('0xd41')+_0x30b1f9[_0x169e8d('0x1917')][_0x169e8d('0xfca')]:undefined);_0x30b1f9['saveSmsAccountApp']=_0x50173d,_0x30b1f9['closeDialog']=_0x2c0c88,_0x210285[_0x169e8d('0x179e')]('admin')?_0x562000['variable'][_0x169e8d('0x22d5')]({'fields':_0x169e8d('0x104'),'sort':'name','nolimit':_0x169e8d('0x2206')})[_0x169e8d('0xe59')]['then'](function(_0x7cd1be){var _0x4e16d1=_0x169e8d;_0x30b1f9['variables']=_0x7cd1be[_0x4e16d1('0x16a7')]||[];})[_0x169e8d('0x223b')](function(_0x31e981){var _0x1821da=_0x169e8d;_0x29ff60[_0x1821da('0x8c8')]({'title':_0x31e981[_0x1821da('0x2833')]?_0x1821da('0x27f2')+_0x31e981[_0x1821da('0x2833')]+_0x1821da('0x1b7c')+_0x31e981[_0x1821da('0x1fd7')]:'SYSTEM:GET_VARIABLES','msg':_0x31e981[_0x1821da('0x11d0')]?JSON[_0x1821da('0x3ad')](_0x31e981['data']):_0x31e981['toString']()});}):_0x562000['variable'][_0x169e8d('0x22d5')]({'fields':_0x169e8d('0x104'),'sort':'name','nolimit':_0x169e8d('0x2206')})[_0x169e8d('0xe59')][_0x169e8d('0xe19')](function(_0x3aa263){var _0x1210c2=_0x169e8d;_0x30b1f9[_0x1210c2('0x1a9e')]=_0x3aa263[_0x1210c2('0x16a7')]||[];})[_0x169e8d('0xe19')](function(){var _0x21585d=_0x169e8d;return _0x562000[_0x21585d('0xb59')][_0x21585d('0x22d5')]({'userProfileId':_0x30b1f9[_0x21585d('0x15a5')][_0x21585d('0x1d04')],'sectionId':0x3f4})[_0x21585d('0xe59')];})['then'](function(_0x468eed){var _0x151cdf=_0x169e8d,_0x372857=_0x468eed&&_0x468eed[_0x151cdf('0x16a7')]?_0x468eed[_0x151cdf('0x16a7')][0x0]:null;if(!_0x372857){var _0x40fda2=[],_0x1dc424=null;_0x30b1f9['system']&&(_0x1dc424=_0x32d445()['find'](_0x30b1f9['variables'],{'name':_0x30b1f9[_0x151cdf('0x1917')][_0x151cdf('0x19a5')]}));for(var _0x36fed1=0x0;_0x36fed1<_0x30b1f9['variables']['length'];_0x36fed1++){_0x1dc424&&_0x30b1f9[_0x151cdf('0x1a9e')][_0x36fed1]['id']===_0x1dc424['id']&&(_0x30b1f9[_0x151cdf('0x1a9e')][_0x36fed1][_0x151cdf('0x1e9d')]=![],_0x40fda2['push'](_0x30b1f9[_0x151cdf('0x1a9e')][_0x36fed1]));}_0x30b1f9[_0x151cdf('0x1a9e')]=_0x40fda2;}else{if(!_0x372857[_0x151cdf('0x11fd')])return _0x562000[_0x151cdf('0xd49')][_0x151cdf('0x22d5')]({'sectionId':_0x372857['id']})[_0x151cdf('0xe59')]['then'](function(_0x2bdb03){var _0x4c5a06=_0x151cdf,_0x25793b=_0x32d445()['map'](_0x2bdb03['rows'],function(_0x39df07){var _0x198eb7=a0_0x5325;return _0x32d445()[_0x198eb7('0xf15')](_0x30b1f9['variables'],{'id':_0x39df07[_0x198eb7('0x1104')]});}),_0x233873=null;_0x30b1f9['system']&&(_0x233873=_0x32d445()[_0x4c5a06('0xf15')](_0x30b1f9[_0x4c5a06('0x1a9e')],{'name':_0x30b1f9[_0x4c5a06('0x1917')][_0x4c5a06('0x19a5')]}));if(_0x233873&&!_0x32d445()[_0x4c5a06('0x201a')](_0x25793b,['id',_0x233873['id']])){var _0x21d90e=_0x32d445()[_0x4c5a06('0xf15')](_0x30b1f9[_0x4c5a06('0x1a9e')],{'id':_0x233873['id']});_0x21d90e[_0x4c5a06('0x1e9d')]=![],_0x25793b[_0x4c5a06('0xb76')](_0x21d90e);}_0x30b1f9[_0x4c5a06('0x1a9e')]=_0x25793b;});}})[_0x169e8d('0x223b')](function(_0x34ba70){var _0x29d53e=_0x169e8d;_0x29ff60['error']({'title':_0x34ba70[_0x29d53e('0x2833')]?_0x29d53e('0x27f2')+_0x34ba70['status']+'\x20-\x20'+_0x34ba70['statusText']:'SYSTEM:GETvariables','msg':_0x34ba70[_0x29d53e('0x11d0')]?JSON[_0x29d53e('0x3ad')](_0x34ba70[_0x29d53e('0x11d0')]):_0x34ba70[_0x29d53e('0x94f')]()});});function _0x50173d(){var _0x46311b=_0x169e8d;_0x30b1f9[_0x46311b('0xcd2')]=[];var _0x396f7b=[];_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0x62e')]&&_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0x62e')]['toLowerCase']()===_0x46311b('0x1fdf')&&_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0xf44')]==='outboundDial'&&(_0x30b1f9[_0x46311b('0x1917')]['phone']=_0x39880e[_0x46311b('0x27f6')]?(_0x30b1f9['system'][_0x46311b('0x2580')]||'')+_0x46311b('0x5d8')+_0x39880e[_0x46311b('0x27f6')]+'}':(_0x30b1f9[_0x46311b('0x1917')]['prefix']||'')+_0x46311b('0x16b5'),_0x39880e[_0x46311b('0x150c')]!==_0x46311b('0x23ca')?_0x30b1f9[_0x46311b('0x1917')]['options'][_0x46311b('0x281c')](_0x46311b('0x767'))<0x0&&(_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0x2116')]+='U(xcally-mixmonitor-context)'):_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0x2116')]=_0x30b1f9['system'][_0x46311b('0x2116')][_0x46311b('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x30b1f9['system']['appType']&&_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0xf44')]===_0x46311b('0x261d')){}else switch((_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0xf2b')]||_0x30b1f9[_0x46311b('0x1917')]['appType'])[_0x46311b('0x20dd')]()){case _0x46311b('0x2aa'):_0x30b1f9['system'][_0x46311b('0x26d2')]=_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0x2623')]+'='+_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0x2')];break;case'custom':break;default:_0x396f7b[0x0]=_0x30b1f9[_0x46311b('0x1917')]['command'],_0x396f7b[0x1]=_0x30b1f9['system'][_0x46311b('0x19a5')],_0x30b1f9[_0x46311b('0x1917')][_0x46311b('0x26d2')]=_0x396f7b[_0x46311b('0x1537')](',');}_0x2c0c88(_0x30b1f9[_0x46311b('0x1917')]);}function _0x2c0c88(_0x43cf6f){var _0x45a85e=_0x169e8d;_0x37e3dc[_0x45a85e('0x11ed')](_0x43cf6f);}}const _0x1774c9=_0x1fe0c1;_0x4203bb[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x1a3e'),_0xb635d2('0x1437'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x4203bb(_0x4b1441,_0x1ec9ee,_0x50d030,_0xd8faa6,_0x521955,_0x545134,_0x452494,_0x351843){var _0x4e1a0f=_0xb635d2,_0x2c1ebf=this;_0x2c1ebf[_0x4e1a0f('0x15a5')]=_0x452494[_0x4e1a0f('0x1ef8')](),_0x2c1ebf[_0x4e1a0f('0xcd2')]=[],_0x2c1ebf['title']=_0x4e1a0f('0x13b6')+(_0xd8faa6['appType']||_0xd8faa6['app'])[_0x4e1a0f('0x25f7')](),_0x2c1ebf[_0x4e1a0f('0x2037')]=angular[_0x4e1a0f('0x89')](_0xd8faa6),_0x2c1ebf[_0x4e1a0f('0xb3d')]=_0x351843,_0x2c1ebf['hasModulePermissions']={};if(_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x26d2')])switch(_0x2c1ebf[_0x4e1a0f('0x2037')]['appType']?_0x2c1ebf[_0x4e1a0f('0x2037')]['appType']['toLowerCase']():_0x2c1ebf[_0x4e1a0f('0x2037')]['app'][_0x4e1a0f('0x20dd')]()){case _0x4e1a0f('0x261d'):break;case'dialogflow':{var _0x2d6d29=_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x26d2')]['split'](',');_0x2c1ebf[_0x4e1a0f('0x2037')]['key']=_0x2d6d29[0x0],_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x174b')]=_0x2d6d29[0x1],_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0xfcc')]=_0x2d6d29[_0x4e1a0f('0xa19')](0x2,_0x2d6d29[_0x4e1a0f('0x25ae')])[_0x4e1a0f('0x1537')](',');}break;case _0x4e1a0f('0x1321'):{var _0x4c64a1=_0x2c1ebf['tag']['appdata']['split'](',');_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x22be')]=_0x4c64a1[0x0],_0x2c1ebf[_0x4e1a0f('0x2037')]['secretaccesskey']=_0x4c64a1[0x1],_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x206a')]=_0x4c64a1[0x2],_0x2c1ebf['tag'][_0x4e1a0f('0x191a')]=_0x4c64a1[0x3],_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0xfcc')]=_0x4c64a1[_0x4e1a0f('0xa19')](0x4,_0x4c64a1[_0x4e1a0f('0x25ae')])[_0x4e1a0f('0x1537')](',');}break;case _0x4e1a0f('0x400'):{var _0x2e905a=_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x26d2')][_0x4e1a0f('0x1745')](',');_0x2c1ebf[_0x4e1a0f('0x2037')]['times']=isNaN(_0x2e905a[0x0])?_0x2e905a[0x0]:parseInt(_0x2e905a[0x0],0xa),_0x2c1ebf['tag'][_0x4e1a0f('0x1bc6')]=_0x2e905a['slice'](0x1,_0x2e905a[_0x4e1a0f('0x25ae')])['join'](',');}break;case'message':_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x1bc6')]=_0x2c1ebf[_0x4e1a0f('0x2037')]['appdata'];break;case'set':_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x2623')]=_0x2c1ebf[_0x4e1a0f('0x2037')]['appdata'][_0x4e1a0f('0x1745')]('=')[0x0],_0x2c1ebf[_0x4e1a0f('0x2037')]['value']=_0x2c1ebf[_0x4e1a0f('0x2037')]['appdata'][_0x4e1a0f('0x1745')]('=')[0x1];break;case _0x4e1a0f('0x401'):_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x38b')]=_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x26d2')];break;default:{var _0x5543fb=_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x26d2')][_0x4e1a0f('0x1745')](',');_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x2037')]=_0x32d445()[_0x4e1a0f('0x14b4')](_0x5543fb[0x0])?_0x5543fb[0x0]:isNaN(_0x5543fb[0x0])?_0x5543fb[0x0]:parseInt(_0x5543fb[0x0],0xa);}break;}else{}_0x2c1ebf['tag'][_0x4e1a0f('0x62e')]&&_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x62e')][_0x4e1a0f('0x20dd')]()==='outbound'&&_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0xf44')]['toLowerCase']()===_0x4e1a0f('0x1d1b')&&(_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x2580')]=_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x1ef5')]?_0x2c1ebf[_0x4e1a0f('0x2037')]['phone'][_0x4e1a0f('0x1745')]('$')[0x0]:undefined,_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0x1b6f')]=_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0xfca')]?'CALLERID(all)='+_0x2c1ebf[_0x4e1a0f('0x2037')][_0x4e1a0f('0xfca')]:undefined);_0x2c1ebf['saveSmsAccountApp']=_0x5978c8,_0x2c1ebf[_0x4e1a0f('0x2584')]=_0x37fb25,_0x452494[_0x4e1a0f('0x179e')](_0x4e1a0f('0xd14'))?_0x545134['tag']['get']({'fields':_0x4e1a0f('0x104'),'sort':_0x4e1a0f('0x2623'),'nolimit':'true'})[_0x4e1a0f('0xe59')][_0x4e1a0f('0xe19')](function(_0x377ce2){var _0x29fd62=_0x4e1a0f;_0x2c1ebf[_0x29fd62('0x1105')]=_0x377ce2[_0x29fd62('0x16a7')]||[];})[_0x4e1a0f('0x223b')](function(_0x23f79c){var _0x47e0bb=_0x4e1a0f;_0x50d030[_0x47e0bb('0x8c8')]({'title':_0x23f79c[_0x47e0bb('0x2833')]?_0x47e0bb('0x27f2')+_0x23f79c['status']+_0x47e0bb('0x1b7c')+_0x23f79c['statusText']:_0x47e0bb('0x2557'),'msg':_0x23f79c[_0x47e0bb('0x11d0')]?JSON[_0x47e0bb('0x3ad')](_0x23f79c[_0x47e0bb('0x11d0')]):_0x23f79c[_0x47e0bb('0x94f')]()});}):_0x545134[_0x4e1a0f('0x2037')]['get']({'fields':_0x4e1a0f('0x104'),'sort':_0x4e1a0f('0x2623'),'nolimit':_0x4e1a0f('0x2206')})['$promise'][_0x4e1a0f('0xe19')](function(_0x78712a){var _0x399a74=_0x4e1a0f;_0x2c1ebf['tags']=_0x78712a[_0x399a74('0x16a7')]||[];})[_0x4e1a0f('0xe19')](function(){var _0x3f3b57=_0x4e1a0f;return _0x545134[_0x3f3b57('0xb59')][_0x3f3b57('0x22d5')]({'userProfileId':_0x2c1ebf[_0x3f3b57('0x15a5')][_0x3f3b57('0x1d04')],'sectionId':0x3f0})[_0x3f3b57('0xe59')];})[_0x4e1a0f('0xe19')](function(_0x4d73b8){var _0x38e51c=_0x4e1a0f,_0x25eb80=_0x4d73b8&&_0x4d73b8['rows']?_0x4d73b8[_0x38e51c('0x16a7')][0x0]:null;if(!_0x25eb80){var _0x2b71d0=[],_0x3cab8b=null;_0x2c1ebf[_0x38e51c('0x2037')]&&(_0x3cab8b=_0x32d445()[_0x38e51c('0xf15')](_0x2c1ebf[_0x38e51c('0x1105')],{'name':_0x2c1ebf[_0x38e51c('0x2037')][_0x38e51c('0x2037')]}));for(var _0x24d59b=0x0;_0x24d59b<_0x2c1ebf[_0x38e51c('0x1105')][_0x38e51c('0x25ae')];_0x24d59b++){_0x3cab8b&&_0x2c1ebf['tags'][_0x24d59b]['id']===_0x3cab8b['id']&&(_0x2c1ebf[_0x38e51c('0x1105')][_0x24d59b][_0x38e51c('0x1e9d')]=![],_0x2b71d0[_0x38e51c('0xb76')](_0x2c1ebf[_0x38e51c('0x1105')][_0x24d59b]));}_0x2c1ebf[_0x38e51c('0x1105')]=_0x2b71d0;}else{if(!_0x25eb80[_0x38e51c('0x11fd')])return _0x545134['userProfileResource'][_0x38e51c('0x22d5')]({'sectionId':_0x25eb80['id']})[_0x38e51c('0xe59')][_0x38e51c('0xe19')](function(_0x497469){var _0x1bea09=_0x38e51c,_0x5c59ff=_0x32d445()[_0x1bea09('0x65a')](_0x497469['rows'],function(_0x51ac74){var _0x4829ab=_0x1bea09;return _0x32d445()[_0x4829ab('0xf15')](_0x2c1ebf['tags'],{'id':_0x51ac74[_0x4829ab('0x1104')]});}),_0x3ef5c7=null;_0x2c1ebf['tag']&&(_0x3ef5c7=_0x32d445()[_0x1bea09('0xf15')](_0x2c1ebf[_0x1bea09('0x1105')],{'name':_0x2c1ebf[_0x1bea09('0x2037')][_0x1bea09('0x2037')]}));if(_0x3ef5c7&&!_0x32d445()[_0x1bea09('0x201a')](_0x5c59ff,['id',_0x3ef5c7['id']])){var _0x6434bc=_0x32d445()[_0x1bea09('0xf15')](_0x2c1ebf['tags'],{'id':_0x3ef5c7['id']});_0x6434bc[_0x1bea09('0x1e9d')]=![],_0x5c59ff[_0x1bea09('0xb76')](_0x6434bc);}_0x2c1ebf[_0x1bea09('0x1105')]=_0x5c59ff;});}})[_0x4e1a0f('0x223b')](function(_0x18f365){var _0x53fc17=_0x4e1a0f;_0x50d030['error']({'title':_0x18f365[_0x53fc17('0x2833')]?_0x53fc17('0x27f2')+_0x18f365[_0x53fc17('0x2833')]+_0x53fc17('0x1b7c')+_0x18f365[_0x53fc17('0x1fd7')]:_0x53fc17('0x25d1'),'msg':_0x18f365[_0x53fc17('0x11d0')]?JSON[_0x53fc17('0x3ad')](_0x18f365[_0x53fc17('0x11d0')]):_0x18f365[_0x53fc17('0x94f')]()});});function _0x5978c8(){var _0x163429=_0x4e1a0f;_0x2c1ebf[_0x163429('0xcd2')]=[];var _0x1517df=[];_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x62e')]&&_0x2c1ebf['tag'][_0x163429('0x62e')]['toLowerCase']()===_0x163429('0x1fdf')&&_0x2c1ebf[_0x163429('0x2037')]['appType']===_0x163429('0x3d2')&&(_0x2c1ebf['tag'][_0x163429('0x1ef5')]=_0x521955[_0x163429('0x27f6')]?(_0x2c1ebf['tag']['prefix']||'')+_0x163429('0x5d8')+_0x521955[_0x163429('0x27f6')]+'}':(_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x2580')]||'')+_0x163429('0x16b5'),_0x521955[_0x163429('0x150c')]!=='none'?_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x2116')][_0x163429('0x281c')](_0x163429('0x767'))<0x0&&(_0x2c1ebf['tag'][_0x163429('0x2116')]+=_0x163429('0x767')):_0x2c1ebf['tag'][_0x163429('0x2116')]=_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x2116')][_0x163429('0x1b42')]('U(xcally-mixmonitor-context)',''));var _0x30fdf1=_0x32d445()[_0x163429('0xf15')](_0x2c1ebf[_0x163429('0x1105')],{'name':_0x2c1ebf[_0x163429('0x2037')]['tag']});_0x30fdf1&&(_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x30a')]=_0x30fdf1['id']);if(_0x2c1ebf['tag'][_0x163429('0xf44')]&&_0x2c1ebf[_0x163429('0x2037')][_0x163429('0xf44')]==='custom'){}else switch((_0x2c1ebf['tag'][_0x163429('0xf2b')]||_0x2c1ebf['tag'][_0x163429('0xf44')])[_0x163429('0x20dd')]()){case _0x163429('0x2aa'):_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x26d2')]=_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x2623')]+'='+_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x2')];break;case _0x163429('0x261d'):break;default:_0x1517df[0x0]=_0x2c1ebf['tag'][_0x163429('0x2037')],_0x2c1ebf[_0x163429('0x2037')][_0x163429('0x26d2')]=_0x1517df['join'](',');}_0x37fb25(_0x2c1ebf[_0x163429('0x2037')]);}function _0x37fb25(_0x204829){_0x4b1441['hide'](_0x204829);}}const _0x238b87=_0x4203bb;_0x911b39[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),'$scope',_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x911b39(_0x344388,_0xd80b5,_0x15aa9d,_0x47fa9d,_0x20f2dc,_0x4b4b65,_0x49472b,_0x40014b,_0x4e660a,_0x3237d4,_0x3babb7){var _0x225d11=_0xb635d2,_0x267e3e=this;_0x267e3e[_0x225d11('0x15a5')]=_0x3babb7['getCurrentUser'](),_0x267e3e['smsAccount']={},_0x267e3e[_0x225d11('0x277a')]={'count':0x0,'rows':[]},_0x267e3e['selectedSmsAccountInteractions']=[],_0x267e3e[_0x225d11('0xb3d')],_0x267e3e[_0x225d11('0xa16')]={'read':_0x225d11('0x1046'),'closed':_0x225d11('0x1046'),'sort':'-createdAt','includeAll':_0x225d11('0x2206'),'limit':0xa,'page':0x1},_0x267e3e[_0x225d11('0x15f9')]=_0x21b7ce,_0x267e3e['deleteConfirm']=_0x1a29bf,_0x267e3e[_0x225d11('0x175a')]=_0x1c86d2,_0x267e3e[_0x225d11('0x425')]=_0x2229a9,_0x267e3e['getSmsAccountInteractions']=_0xb2a685,_0x267e3e[_0x225d11('0x114a')]=_0x52406f,_0x267e3e[_0x225d11('0x1f45')]=_0x265c30,_0x267e3e[_0x225d11('0x870')]=_0x55d4b7,_0x267e3e['deleteSmsAccountInteraction']=_0x3332e3,_0x267e3e['deleteSelectedSmsAccountInteractions']=_0x52b0d3;function _0x21b7ce(_0x44ee10,_0x1d236d){var _0x6c1043=_0x225d11;_0x267e3e[_0x6c1043('0x1437')]=_0x44ee10,_0x267e3e[_0x6c1043('0xb3d')]=typeof _0x1d236d!=='undefined'?_0x1d236d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x267e3e[_0x6c1043('0xa16')][_0x6c1043('0x26a9')]=_0x267e3e['smsAccount']['id'],_0x267e3e[_0x6c1043('0x164')]={'fields':_0x378020()},_0x2d5f5e();}function _0x2d5f5e(){var _0x3c0f1b=_0x225d11;return _0x3237d4[_0x3c0f1b('0x2037')]['get']()[_0x3c0f1b('0xe59')][_0x3c0f1b('0xe19')](function(_0x291941){_0x267e3e['tags']=_0x291941||{'count':0x0,'rows':[]};})[_0x3c0f1b('0xe19')](function(){var _0x2d93cf=_0x3c0f1b;_0x267e3e[_0x2d93cf('0x1fd3')]=_0x3bb2ac();});}function _0x3bb2ac(){var _0xc83d2c=_0x225d11;return[{'name':_0xc83d2c('0x141d'),'key':_0xc83d2c('0x15c9'),'type':_0xc83d2c('0xf6d'),'label':_0xc83d2c('0x19b7')},{'name':'Messages','key':_0xc83d2c('0x1a6e'),'type':_0xc83d2c('0x2e6'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0xc83d2c('0x3b4')},{'value':null,'translate':_0xc83d2c('0x296')}]},{'name':'Status','key':'closed','type':_0xc83d2c('0x2e6'),'label':_0xc83d2c('0xef5'),'customOptions':[{'value':0x0,'translate':_0xc83d2c('0x1c37')},{'value':0x1,'translate':_0xc83d2c('0x1bbb')},{'value':null,'translate':_0xc83d2c('0x296')}]},{'name':_0xc83d2c('0x142e'),'key':'UserId','type':'select','label':_0xc83d2c('0x120c'),'customOptions':[{'value':_0xc83d2c('0x1046'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0xc83d2c('0x296')}]},{'name':_0xc83d2c('0x1172'),'key':_0xc83d2c('0x2037'),'type':_0xc83d2c('0x19a0'),'label':_0xc83d2c('0x23c7'),'options':_0x267e3e[_0xc83d2c('0x1105')][_0xc83d2c('0x16a7')],'placeholder':_0xc83d2c('0x14ec')}];}function _0x378020(){var _0x35e778=_0x225d11;return[{'name':'Id','column':'id','type':'number'},{'name':_0x35e778('0x1286'),'column':_0x35e778('0x1286'),'type':'autocomplete','options':{'searchFields':[_0x35e778('0x2566'),_0x35e778('0x151f'),_0x35e778('0x1211')],'route':{'model':_0x35e778('0x1711'),'action':_0x35e778('0x22d5'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x35e778('0x217d'),'nolimit':!![]}},'extraOperators':[_0x35e778('0x1247')],'excludedOperators':[_0x35e778('0x1f51')]}},{'name':_0x35e778('0x375'),'column':'subject','type':'text','options':{'excludedOperators':[_0x35e778('0x1d15'),_0x35e778('0x1f51')]}},{'name':_0x35e778('0x750'),'column':_0x35e778('0x6c9'),'type':'text','options':{'excludedOperators':['$eq',_0x35e778('0x1f51')]}},{'name':'Status','column':'closed','type':_0x35e778('0x2e6'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x35e778('0x1bbb')}],'options':{'excludedOperators':[_0x35e778('0x1f51')]}},{'name':_0x35e778('0x142e'),'column':_0x35e778('0x2630'),'type':_0x35e778('0x5c0'),'options':{'table':'i','route':{'model':'user','action':_0x35e778('0x22d5'),'params':{'role':_0x35e778('0x108'),'fields':_0x35e778('0x194c'),'nolimit':!![]}},'searchFields':[_0x35e778('0xe11'),_0x35e778('0x2623')],'extraOperators':[_0x35e778('0x1247')],'excludedOperators':['$ne']}},{'name':_0x35e778('0x1e7b'),'column':_0x35e778('0x1172'),'type':_0x35e778('0x19a0'),'options':{'route':{'model':_0x35e778('0x2037'),'action':_0x35e778('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x35e778('0x19a3')]}},{'name':'Start\x20Date','column':_0x35e778('0x15c9'),'type':_0x35e778('0xf6d'),'options':{'excludedOperators':[_0x35e778('0x1f51')]}},{'name':_0x35e778('0x2233'),'column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x35e778('0x3b4')},{'id':0x0,'translate':_0x35e778('0x10db')}],'options':{'excludedOperators':[_0x35e778('0x1f51')]}}];}function _0x265c30(){var _0x39f1e9=_0x225d11;_0x49472b[_0x39f1e9('0x26b2')]({'controller':_0x39f1e9('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x39f1e9('0x24a1')](_0x40014b[_0x39f1e9('0x19b2')]),'clickOutsideToClose':![],'locals':{'fields':_0x267e3e[_0x39f1e9('0x164')][_0x39f1e9('0x1d17')],'color':undefined,'storagePath':_0x39f1e9('0x1ba3')},'fullscreen':!![]})[_0x39f1e9('0xe19')](function(_0x51fa66){var _0x2ba809=_0x39f1e9;_0x267e3e[_0x2ba809('0xa16')][_0x2ba809('0x1cc8')]=_0x51fa66===![]?undefined:_0x51fa66;if(_0x267e3e[_0x2ba809('0xa16')][_0x2ba809('0x1cc8')])_0xb2a685();else _0x51fa66===![]&&_0xb2a685();})['catch'](function(_0x5a37b7){var _0x2c2296=_0x39f1e9;_0x4e660a['error']({'title':_0x2c2296('0x71e'),'msg':_0x5a37b7[_0x2c2296('0x11d0')]?JSON['stringify'](_0x5a37b7['data'][_0x2c2296('0x27e8')]):_0x5a37b7[_0x2c2296('0x94f')]()});});}function _0x1c86d2(_0x565db2,_0x43b90c,_0x3e10cb){var _0x3bcd21=_0x225d11;return _0x3237d4['smsInteraction'][_0x3bcd21('0x1d1e')]({'id':_0x565db2['id'],'exists':!![],'attachments':_0x3e10cb})['$promise']['then'](function(_0x1d09eb){var _0x5e30df=_0x3bcd21,_0x1359d6=[_0x1d09eb[_0x5e30df('0x17ab')]],_0x133afe='interaction'+_0x565db2['id'],_0x208737=new Blob(_0x1359d6,{'type':_0x1d09eb[_0x5e30df('0x62e')]});_0x133afe=_0x5e30df('0x1213')+_0x565db2['id']+_0x5e30df('0x985');var _0x4608f4=window[_0x5e30df('0x18fa')][_0x5e30df('0x9a1')]('a');_0x4608f4[_0x5e30df('0xede')](_0x5e30df('0xcb7'),URL[_0x5e30df('0x1360')](_0x208737)),_0x4608f4[_0x5e30df('0xede')](_0x5e30df('0x1d1e'),_0x133afe),document[_0x5e30df('0x19b2')][_0x5e30df('0x1d13')](_0x4608f4),_0x4608f4['click']();})['catch'](function(_0x463653){var _0xd54c7d=_0x3bcd21;if(_0x463653[_0xd54c7d('0x11d0')]&&_0x463653[_0xd54c7d('0x11d0')][_0xd54c7d('0xcd2')]&&_0x463653[_0xd54c7d('0x11d0')][_0xd54c7d('0xcd2')]['length'])for(var _0x2998c5=0x0;_0x2998c5<_0x463653[_0xd54c7d('0x11d0')][_0xd54c7d('0xcd2')][_0xd54c7d('0x25ae')];_0x2998c5+=0x1){_0x4e660a[_0xd54c7d('0x8c8')]({'title':_0x463653[_0xd54c7d('0x11d0')][_0xd54c7d('0xcd2')][_0x2998c5][_0xd54c7d('0x62e')],'msg':_0x463653[_0xd54c7d('0x11d0')][_0xd54c7d('0xcd2')][_0x2998c5][_0xd54c7d('0x27e8')]});}else _0x4e660a[_0xd54c7d('0x8c8')]({'title':_0x463653[_0xd54c7d('0x2833')]?_0xd54c7d('0x27f2')+_0x463653['status']+_0xd54c7d('0x1b7c')+_0x463653[_0xd54c7d('0x1fd7')]:'api.smsAccount.save','msg':_0x463653[_0xd54c7d('0x11d0')]?JSON[_0xd54c7d('0x3ad')](_0x463653[_0xd54c7d('0x11d0')][_0xd54c7d('0x27e8')]):_0x463653['toString']()});});}function _0x1a29bf(_0x175e1e,_0x26f713){var _0x47a27a=_0x225d11,_0x2f902a=_0x49472b[_0x47a27a('0xa5')]()[_0x47a27a('0x13e4')](_0x47a27a('0x1f13'))['htmlContent'](_0x47a27a('0xab2')+(_0x175e1e[_0x47a27a('0x2623')]||_0x175e1e['id']&&_0x32d445()['upperFirst']('interaction\x20#')+_0x175e1e['id']||_0x47a27a('0xf6'))+_0x47a27a('0x27bb')+'\x20will\x20be\x20deleted.')[_0x47a27a('0x4d1')](_0x47a27a('0x1a82'))[_0x47a27a('0x1345')](_0x26f713)['ok']('OK')[_0x47a27a('0x2c1')](_0x47a27a('0x17'));_0x49472b[_0x47a27a('0x26b2')](_0x2f902a)[_0x47a27a('0xe19')](function(){_0x3332e3(_0x175e1e);},function(){var _0x8d1ccf=_0x47a27a;console[_0x8d1ccf('0x1fe9')](_0x8d1ccf('0x17'));});}function _0x2229a9(_0x25577e){var _0x1383f3=_0x225d11;_0x267e3e[_0x1383f3('0x277a')]=_0x25577e||{'count':0x0,'rows':[]};for(var _0x1c3285=0x0;_0x1c3285<_0x267e3e[_0x1383f3('0x277a')][_0x1383f3('0x16a7')][_0x1383f3('0x25ae')];_0x1c3285+=0x1){var _0x42bfed=_0x267e3e['smsAccountInteractions'][_0x1383f3('0x16a7')][_0x1c3285];_0x8d4930(_0x42bfed),_0x42bfed[_0x1383f3('0x2237')]['name']=_0xa48595(_0x42bfed);}}function _0xb2a685(){var _0x3a48ab=_0x225d11;_0x267e3e['query'][_0x3a48ab('0xab0')]=(_0x267e3e['query'][_0x3a48ab('0xc08')]-0x1)*_0x267e3e[_0x3a48ab('0xa16')][_0x3a48ab('0x1b6d')],_0x267e3e['promise']=_0x3237d4[_0x3a48ab('0xc1')][_0x3a48ab('0x22d5')](_0x267e3e[_0x3a48ab('0xa16')],_0x2229a9)[_0x3a48ab('0xe59')];}function _0x52406f(_0x337ccf,_0x29f416){var _0x143676=_0x225d11;_0x49472b[_0x143676('0x26b2')]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x43d9d1,'parent':angular[_0x143676('0x24a1')](_0x40014b[_0x143676('0x19b2')]),'targetEvent':_0x337ccf,'clickOutsideToClose':!![],'onShowing':function _0x19efd1(_0x57900f){var _0x367d3d=_0x143676;_0x57900f['vm'][_0x367d3d('0x15f9')]({'id':0x1,'channel':'sms','interaction':_0x29f416,'spy':!![]},_0xd80b5['$parent']['vm'][_0x367d3d('0x22f1')]);}});}function _0x3332e3(_0x4a817b){var _0x5424dc=_0x225d11;_0x3237d4[_0x5424dc('0xc1')][_0x5424dc('0x229e')]({'id':_0x4a817b['id']})[_0x5424dc('0xe59')]['then'](function(){var _0x5b312e=_0x5424dc;_0x32d445()['remove'](_0x267e3e[_0x5b312e('0x277a')][_0x5b312e('0x16a7')],{'id':_0x4a817b['id']}),_0x267e3e[_0x5b312e('0x277a')][_0x5b312e('0x148b')]-=0x1,!_0x267e3e[_0x5b312e('0x277a')][_0x5b312e('0x16a7')][_0x5b312e('0x25ae')]&&_0xb2a685(),_0x4e660a[_0x5b312e('0x425')]({'title':_0x5b312e('0x5c'),'msg':_0x4a817b[_0x5b312e('0x2623')]?_0x4a817b[_0x5b312e('0x2623')]+_0x5b312e('0x2182'):''});})['catch'](function(_0x4f5e02){var _0x35d3fc=_0x5424dc;if(_0x4f5e02[_0x35d3fc('0x11d0')]&&_0x4f5e02[_0x35d3fc('0x11d0')]['errors']&&_0x4f5e02[_0x35d3fc('0x11d0')]['errors'][_0x35d3fc('0x25ae')]){_0x267e3e[_0x35d3fc('0xcd2')]=_0x4f5e02[_0x35d3fc('0x11d0')][_0x35d3fc('0xcd2')]||[{'message':_0x4f5e02[_0x35d3fc('0x94f')](),'type':'SYSTEM:GETsmsAccount'}];for(var _0xb496e2=0x0;_0xb496e2<_0x4f5e02[_0x35d3fc('0x11d0')][_0x35d3fc('0xcd2')][_0x35d3fc('0x25ae')];_0xb496e2++){_0x4e660a[_0x35d3fc('0x8c8')]({'title':_0x4f5e02[_0x35d3fc('0x11d0')][_0x35d3fc('0xcd2')][_0xb496e2][_0x35d3fc('0x62e')],'msg':_0x4f5e02['data'][_0x35d3fc('0xcd2')][_0xb496e2][_0x35d3fc('0x27e8')]});}}else _0x4e660a[_0x35d3fc('0x8c8')]({'title':_0x4f5e02['status']?_0x35d3fc('0x27f2')+_0x4f5e02[_0x35d3fc('0x2833')]+'\x20-\x20'+_0x4f5e02[_0x35d3fc('0x1fd7')]:'SYSTEM:GETsmsAccount','msg':_0x4f5e02[_0x35d3fc('0x11d0')]?JSON['stringify'](_0x4f5e02[_0x35d3fc('0x11d0')]['message']):_0x4f5e02[_0x35d3fc('0x27e8')]||_0x4f5e02['toString']()});});}function _0x55d4b7(){var _0x47fc2f=_0x225d11,_0x16b54d=angular[_0x47fc2f('0x89')](_0x267e3e[_0x47fc2f('0x2040')]);return _0x267e3e['selectedSmsAccountInteractions']=[],_0x16b54d;}function _0x52b0d3(_0x208739){var _0x4e0408=_0x225d11,_0x4827d8=_0x49472b[_0x4e0408('0xa5')]()[_0x4e0408('0x13e4')](_0x4e0408('0x275c'))[_0x4e0408('0x221c')](_0x4e0408('0xab2')+_0x267e3e[_0x4e0408('0x2040')][_0x4e0408('0x25ae')]+_0x4e0408('0x5bc')+'\x20will\x20be\x20deleted.')[_0x4e0408('0x4d1')]('delete\x20interactions')[_0x4e0408('0x1345')](_0x208739)['ok']('OK')[_0x4e0408('0x2c1')]('CANCEL');_0x49472b[_0x4e0408('0x26b2')](_0x4827d8)['then'](function(){var _0x11e219=_0x4e0408;_0x267e3e['selectedSmsAccountInteractions'][_0x11e219('0x1d7e')](function(_0x460b1b){_0x3332e3(_0x460b1b);}),_0x267e3e['selectedSmsAccountInteractions']=[];});}function _0x8d4930(_0x317246){var _0x42cc41=_0x225d11;_0x317246['Contact']?(_0x317246[_0x42cc41('0x130c')]=(_0x317246['Contact'][_0x42cc41('0x2566')]||'')+'\x20'+(_0x317246[_0x42cc41('0x1286')][_0x42cc41('0x151f')]||''),_0x317246['contactInfo']=_0x317246[_0x42cc41('0x1286')][_0x42cc41('0x23a0')]):_0x317246[_0x42cc41('0x130c')]=_0x20f2dc[_0x42cc41('0x2159')](_0x42cc41('0x27df'));}function _0xa48595(_0x3d8490){var _0x58c1a4=_0x225d11;if(_0x3d8490[_0x58c1a4('0x43d')])return _0x3d8490['UserId']===_0x267e3e[_0x58c1a4('0x15a5')]['id']?_0x20f2dc[_0x58c1a4('0x2159')](_0x58c1a4('0x132d')):_0x3d8490['Owner'][_0x58c1a4('0xe11')]+'\x20<'+_0x3d8490['Owner'][_0x58c1a4('0x1b66')]+'>';return _0x20f2dc[_0x58c1a4('0x2159')]('DASHBOARDS.NOT_ASSIGNED');}var _0x316157=!![],_0x35cd63=0x1;_0xd80b5['$watch']('vm_dc.query.filter',function(_0x103f82,_0x39ca8a){var _0x5c880d=_0x225d11;_0x316157?_0x4b4b65(function(){_0x316157=![];}):(!_0x39ca8a&&(_0x35cd63=_0x267e3e['query'][_0x5c880d('0xc08')]),_0x103f82!==_0x39ca8a&&(_0x267e3e[_0x5c880d('0xa16')][_0x5c880d('0xc08')]=0x1),!_0x103f82&&(_0x267e3e[_0x5c880d('0xa16')]['page']=_0x35cd63),_0xb2a685());});}const _0x43d750=_0x911b39,_0x3829f1=_0x59426a['p']+_0xb635d2('0x529');_0x4a1457[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'toasty',_0xb635d2('0xffc'),'Auth'];function _0x4a1457(_0xe2c98d,_0x4c791b,_0x5b2287,_0x2e7b42,_0x33b4ce,_0x229fc6,_0x2db169,_0x208bd2,_0x537bc2,_0x26d4e0,_0x3fb5c1){var _0x51bc19=_0xb635d2,_0x23227c=this;_0x23227c[_0x51bc19('0x15a5')]=_0x3fb5c1[_0x51bc19('0x1ef8')](),_0x23227c[_0x51bc19('0x1437')]={},_0x23227c['smsAccountSmsCannedAnswers']={'count':0x0,'rows':[]},_0x23227c[_0x51bc19('0x3d5')]=[],_0x23227c['crudPermissions'],_0x23227c[_0x51bc19('0xa16')]={'fields':_0x51bc19('0x1ef0'),'limit':0xa,'page':0x1},_0x23227c['init']=_0x3d0bfc,_0x23227c['deleteConfirm']=_0x508ae4,_0x23227c[_0x51bc19('0x425')]=_0x519c8c,_0x23227c[_0x51bc19('0x1af5')]=_0x214bd0,_0x23227c[_0x51bc19('0x19e2')]=_0x4fcc12,_0x23227c['exportSelectedSmsAccountSmsCannedAnswers']=_0x36f77e,_0x23227c[_0x51bc19('0x1713')]=_0x226729,_0x23227c['deleteSelectedSmsAccountSmsCannedAnswers']=_0x3c5212;function _0x3d0bfc(_0x220909,_0x5f3146){var _0x2fb42c=_0x51bc19;_0x23227c[_0x2fb42c('0x1437')]=_0x220909,_0x23227c[_0x2fb42c('0xb3d')]=typeof _0x5f3146!=='undefined'?_0x5f3146:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x23227c[_0x2fb42c('0xa16')][_0x2fb42c('0x26a9')]=_0x23227c[_0x2fb42c('0x1437')]['id'],_0x23227c['query']['id']=_0x23227c[_0x2fb42c('0x1437')]['id'],_0x214bd0();}function _0x508ae4(_0x42ae89,_0xc645c2){var _0x4604e6=_0x51bc19,_0x560bef=_0x2db169[_0x4604e6('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20smsCannedAnswer?')[_0x4604e6('0x221c')](_0x4604e6('0xab2')+(_0x42ae89['name']||_0x42ae89['id']&&_0x32d445()['upperFirst'](_0x4604e6('0x70f'))+_0x42ae89['id']||'smsCannedAnswer')+_0x4604e6('0x27bb')+_0x4604e6('0x21bd'))[_0x4604e6('0x4d1')](_0x4604e6('0x116'))[_0x4604e6('0x1345')](_0xc645c2)['ok']('OK')[_0x4604e6('0x2c1')](_0x4604e6('0x17'));_0x2db169['show'](_0x560bef)[_0x4604e6('0xe19')](function(){_0x226729(_0x42ae89);},function(){var _0x12d9e4=_0x4604e6;console[_0x12d9e4('0x1fe9')]('CANCEL');});}function _0x519c8c(_0x3d467d){var _0x329898=_0x51bc19;_0x23227c[_0x329898('0x1525')]=_0x3d467d||{'count':0x0,'rows':[]};}function _0x214bd0(){var _0x3949e1=_0x51bc19;_0x23227c[_0x3949e1('0xa16')][_0x3949e1('0xab0')]=(_0x23227c[_0x3949e1('0xa16')][_0x3949e1('0xc08')]-0x1)*_0x23227c[_0x3949e1('0xa16')][_0x3949e1('0x1b6d')],_0x23227c[_0x3949e1('0x9c8')]=_0x26d4e0[_0x3949e1('0x1437')][_0x3949e1('0x152a')](_0x23227c[_0x3949e1('0xa16')],_0x519c8c)[_0x3949e1('0xe59')];}function _0x4fcc12(_0x3ae759,_0x30006c){var _0x50c036=_0x51bc19;_0x2db169[_0x50c036('0x26b2')]({'controller':'CreateOrEditSmsCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x3829f1,'parent':angular[_0x50c036('0x24a1')](_0x208bd2[_0x50c036('0x19b2')]),'targetEvent':_0x3ae759,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x23227c['smsAccount'],'smsCannedAnswer':_0x30006c,'smsCannedAnswers':_0x23227c['smsAccountSmsCannedAnswers'][_0x50c036('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x23227c['crudPermissions']}});}function _0x226729(_0x2a8348){var _0xe386b5=_0x51bc19;_0x26d4e0[_0xe386b5('0x250b')][_0xe386b5('0x229e')]({'id':_0x2a8348['id']})['$promise']['then'](function(){var _0x1f2a7e=_0xe386b5;_0x32d445()[_0x1f2a7e('0xa8b')](_0x23227c[_0x1f2a7e('0x1525')][_0x1f2a7e('0x16a7')],{'id':_0x2a8348['id']}),_0x23227c[_0x1f2a7e('0x1525')][_0x1f2a7e('0x148b')]-=0x1,!_0x23227c['smsAccountSmsCannedAnswers'][_0x1f2a7e('0x16a7')]['length']&&_0x214bd0(),_0x537bc2[_0x1f2a7e('0x425')]({'title':_0x1f2a7e('0xedd'),'msg':_0x2a8348[_0x1f2a7e('0x2623')]?_0x2a8348[_0x1f2a7e('0x2623')]+_0x1f2a7e('0x2182'):''});})[_0xe386b5('0x223b')](function(_0x419604){var _0x4ef2eb=_0xe386b5;if(_0x419604[_0x4ef2eb('0x11d0')]&&_0x419604[_0x4ef2eb('0x11d0')][_0x4ef2eb('0xcd2')]&&_0x419604['data'][_0x4ef2eb('0xcd2')][_0x4ef2eb('0x25ae')]){_0x23227c[_0x4ef2eb('0xcd2')]=_0x419604[_0x4ef2eb('0x11d0')][_0x4ef2eb('0xcd2')]||[{'message':_0x419604[_0x4ef2eb('0x94f')](),'type':_0x4ef2eb('0x28e')}];for(var _0x41b9a2=0x0;_0x41b9a2<_0x419604[_0x4ef2eb('0x11d0')][_0x4ef2eb('0xcd2')][_0x4ef2eb('0x25ae')];_0x41b9a2++){_0x537bc2['error']({'title':_0x419604[_0x4ef2eb('0x11d0')][_0x4ef2eb('0xcd2')][_0x41b9a2]['type'],'msg':_0x419604[_0x4ef2eb('0x11d0')][_0x4ef2eb('0xcd2')][_0x41b9a2]['message']});}}else _0x537bc2['error']({'title':_0x419604[_0x4ef2eb('0x2833')]?'API:'+_0x419604['status']+'\x20-\x20'+_0x419604[_0x4ef2eb('0x1fd7')]:_0x4ef2eb('0x28e'),'msg':_0x419604[_0x4ef2eb('0x11d0')]?JSON[_0x4ef2eb('0x3ad')](_0x419604[_0x4ef2eb('0x11d0')][_0x4ef2eb('0x27e8')]):_0x419604[_0x4ef2eb('0x27e8')]||_0x419604[_0x4ef2eb('0x94f')]()});});}function _0x36f77e(){var _0x1c5096=_0x51bc19,_0x2c7bf2=angular[_0x1c5096('0x89')](_0x23227c['selectedSmsAccountSmsCannedAnswers']);return _0x23227c['selectedSmsAccountSmsCannedAnswers']=[],_0x2c7bf2;}function _0x3c5212(_0x476a8b){var _0x1c5ebf=_0x51bc19,_0x16291d=_0x2db169['confirm']()[_0x1c5ebf('0x13e4')](_0x1c5ebf('0x178b'))[_0x1c5ebf('0x221c')](_0x1c5ebf('0xab2')+_0x23227c[_0x1c5ebf('0x3d5')]['length']+_0x1c5ebf('0x5bc')+_0x1c5ebf('0x21bd'))[_0x1c5ebf('0x4d1')](_0x1c5ebf('0x231e'))[_0x1c5ebf('0x1345')](_0x476a8b)['ok']('OK')[_0x1c5ebf('0x2c1')](_0x1c5ebf('0x17'));_0x2db169['show'](_0x16291d)[_0x1c5ebf('0xe19')](function(){var _0x1de6b8=_0x1c5ebf;_0x23227c[_0x1de6b8('0x3d5')][_0x1de6b8('0x1d7e')](function(_0x3d7593){_0x226729(_0x3d7593);}),_0x23227c['selectedSmsAccountSmsCannedAnswers']=[];});}var _0x3b8726=!![],_0x4cb253=0x1;_0x4c791b[_0x51bc19('0x107')]('vm_dc.query.filter',function(_0x45f6d7,_0x4fb3fe){var _0x1da7e3=_0x51bc19;_0x3b8726?_0x229fc6(function(){_0x3b8726=![];}):(!_0x4fb3fe&&(_0x4cb253=_0x23227c[_0x1da7e3('0xa16')][_0x1da7e3('0xc08')]),_0x45f6d7!==_0x4fb3fe&&(_0x23227c[_0x1da7e3('0xa16')]['page']=0x1),!_0x45f6d7&&(_0x23227c['query']['page']=_0x4cb253),_0x214bd0());});}const _0x364785=_0x4a1457;_0x15a3a5[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'smsCannedAnswers','smsCannedAnswer',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x15a3a5(_0x3f7836,_0x31ab57,_0x207b55,_0x1e463b,_0x2bd00c,_0x1b7ff9,_0x4113e5,_0x5d02ec,_0x460cff,_0x1632fe,_0x53d7ee,_0x5e0c08,_0x1fcb77,_0x11a677){var _0x36ea85=_0xb635d2,_0x169bd9=this;_0x169bd9[_0x36ea85('0x15a5')]=_0x53d7ee[_0x36ea85('0x1ef8')](),_0x169bd9[_0x36ea85('0xcd2')]=[],_0x169bd9['setting']=_0x1fcb77,_0x169bd9[_0x36ea85('0x5c1')]=_0x5e0c08,_0x169bd9[_0x36ea85('0xb3d')]=_0x11a677,_0x169bd9[_0x36ea85('0x1ccb')]={},_0x169bd9[_0x36ea85('0x25ac')]=_0x169bd9[_0x36ea85('0x22f1')]&&_0x169bd9[_0x36ea85('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x169bd9['title']=_0x36ea85('0x1cd5'),_0x169bd9['smsCannedAnswer']=angular[_0x36ea85('0x89')](_0x460cff),_0x169bd9[_0x36ea85('0x2285')]=_0x5d02ec,_0x169bd9[_0x36ea85('0x2756')]=![];!_0x169bd9[_0x36ea85('0x1157')]&&(_0x169bd9[_0x36ea85('0x1157')]={},_0x169bd9[_0x36ea85('0x13e4')]=_0x36ea85('0x4c0'),_0x169bd9[_0x36ea85('0x2756')]=!![]);_0x31ab57[_0x36ea85('0x2ef')]['id']&&(_0x169bd9[_0x36ea85('0x1157')]['SmsAccountId']=_0x31ab57[_0x36ea85('0x2ef')]['id']);_0x169bd9[_0x36ea85('0xea8')]=_0x297e66,_0x169bd9[_0x36ea85('0x234b')]=_0xc029ec,_0x169bd9[_0x36ea85('0x22ca')]=_0x17620a,_0x169bd9[_0x36ea85('0x2635')]=_0x2d1c79,_0x169bd9[_0x36ea85('0x2584')]=_0x380df7;function _0x297e66(){var _0x2a6854=_0x36ea85;_0x169bd9['errors']=[],_0x1632fe[_0x2a6854('0x250b')][_0x2a6854('0xe5e')](_0x169bd9[_0x2a6854('0x1157')])[_0x2a6854('0xe59')][_0x2a6854('0xe19')](function(_0x491a27){var _0x4c10a0=_0x2a6854;_0x169bd9[_0x4c10a0('0x2285')]['unshift'](_0x491a27['toJSON']()),_0x4113e5[_0x4c10a0('0x425')]({'title':'SmsCannedAnswer\x20properly\x20created','msg':_0x169bd9[_0x4c10a0('0x1157')][_0x4c10a0('0x2623')]?_0x169bd9[_0x4c10a0('0x1157')][_0x4c10a0('0x2623')]+_0x4c10a0('0x105f'):''}),_0x380df7(_0x491a27);})[_0x2a6854('0x223b')](function(_0x5c5c51){var _0x37f61e=_0x2a6854;if(_0x5c5c51[_0x37f61e('0x11d0')]&&_0x5c5c51['data'][_0x37f61e('0xcd2')]&&_0x5c5c51[_0x37f61e('0x11d0')]['errors'][_0x37f61e('0x25ae')]){_0x169bd9[_0x37f61e('0xcd2')]=_0x5c5c51[_0x37f61e('0x11d0')][_0x37f61e('0xcd2')]||[{'message':_0x5c5c51[_0x37f61e('0x94f')](),'type':'api.cannedAnswer.save'}];for(var _0x566c5c=0x0;_0x566c5c<_0x5c5c51[_0x37f61e('0x11d0')][_0x37f61e('0xcd2')][_0x37f61e('0x25ae')];_0x566c5c+=0x1){_0x4113e5[_0x37f61e('0x8c8')]({'title':_0x5c5c51[_0x37f61e('0x11d0')][_0x37f61e('0xcd2')][_0x566c5c][_0x37f61e('0x62e')],'msg':_0x5c5c51['data']['errors'][_0x566c5c][_0x37f61e('0x27e8')]});}}else _0x4113e5['error']({'title':_0x5c5c51[_0x37f61e('0x2833')]?_0x37f61e('0x27f2')+_0x5c5c51[_0x37f61e('0x2833')]+_0x37f61e('0x1b7c')+_0x5c5c51[_0x37f61e('0x1fd7')]:'api.cannedAnswer.save','msg':_0x5c5c51['data']?JSON[_0x37f61e('0x3ad')](_0x5c5c51[_0x37f61e('0x11d0')][_0x37f61e('0x27e8')]):_0x5c5c51[_0x37f61e('0x94f')]()});});}function _0xc029ec(){var _0x12fb1c=_0x36ea85;_0x169bd9['errors']=[],_0x1632fe[_0x12fb1c('0x250b')][_0x12fb1c('0xa70')]({'id':_0x169bd9[_0x12fb1c('0x1157')]['id']},_0x169bd9[_0x12fb1c('0x1157')])[_0x12fb1c('0xe59')][_0x12fb1c('0xe19')](function(_0x499635){var _0x21091b=_0x12fb1c,_0x4e7b6d=_0x32d445()['find'](_0x169bd9[_0x21091b('0x2285')],{'id':_0x499635['id']});_0x4e7b6d&&_0x32d445()[_0x21091b('0x1d8')](_0x4e7b6d,_0x32d445()[_0x21091b('0xed5')](_0x499635[_0x21091b('0x250e')](),_0x32d445()[_0x21091b('0x1234')](_0x4e7b6d))),_0x4113e5[_0x21091b('0x425')]({'title':'SmsCannedAnswer\x20properly\x20saved!','msg':_0x169bd9[_0x21091b('0x1157')]['name']?_0x169bd9[_0x21091b('0x1157')][_0x21091b('0x2623')]+_0x21091b('0x1c19'):''}),_0x380df7(_0x499635);})[_0x12fb1c('0x223b')](function(_0x233293){var _0x4ffa26=_0x12fb1c;if(_0x233293['data']&&_0x233293[_0x4ffa26('0x11d0')][_0x4ffa26('0xcd2')]&&_0x233293[_0x4ffa26('0x11d0')][_0x4ffa26('0xcd2')][_0x4ffa26('0x25ae')]){_0x169bd9[_0x4ffa26('0xcd2')]=_0x233293[_0x4ffa26('0x11d0')][_0x4ffa26('0xcd2')]||[{'message':_0x233293['toString'](),'type':'api.cannedAnswer.update'}];for(var _0x38ccff=0x0;_0x38ccff<_0x233293['data'][_0x4ffa26('0xcd2')]['length'];_0x38ccff++){_0x4113e5[_0x4ffa26('0x8c8')]({'title':_0x233293[_0x4ffa26('0x11d0')][_0x4ffa26('0xcd2')][_0x38ccff]['type'],'msg':_0x233293[_0x4ffa26('0x11d0')][_0x4ffa26('0xcd2')][_0x38ccff][_0x4ffa26('0x27e8')]});}}else _0x4113e5[_0x4ffa26('0x8c8')]({'title':_0x233293['status']?_0x4ffa26('0x27f2')+_0x233293[_0x4ffa26('0x2833')]+_0x4ffa26('0x1b7c')+_0x233293[_0x4ffa26('0x1fd7')]:_0x4ffa26('0x5a0'),'msg':_0x233293[_0x4ffa26('0x11d0')]?JSON[_0x4ffa26('0x3ad')](_0x233293[_0x4ffa26('0x11d0')]['message']):_0x233293[_0x4ffa26('0x94f')]()});});}function _0x17620a(_0xd9d543){var _0x4da8f9=_0x36ea85;_0x169bd9[_0x4da8f9('0xcd2')]=[];var _0x4a6033=_0x1e463b[_0x4da8f9('0xa5')]()[_0x4da8f9('0x13e4')](_0x4da8f9('0x24d0'))['content'](_0x4da8f9('0x15d8'))[_0x4da8f9('0x4d1')](_0x4da8f9('0x1f10'))['ok'](_0x4da8f9('0x2198'))[_0x4da8f9('0x2c1')]('Cancel')[_0x4da8f9('0x1345')](_0xd9d543);_0x1e463b[_0x4da8f9('0x26b2')](_0x4a6033)[_0x4da8f9('0xe19')](function(){var _0x4033e0=_0x4da8f9;_0x1632fe['cannedAnswer'][_0x4033e0('0x229e')]({'id':_0x169bd9['smsCannedAnswer']['id']})['$promise'][_0x4033e0('0xe19')](function(){var _0x477f24=_0x4033e0;_0x32d445()[_0x477f24('0xa8b')](_0x169bd9['smsCannedAnswers'],{'id':_0x169bd9['smsCannedAnswer']['id']}),_0x4113e5[_0x477f24('0x425')]({'title':_0x477f24('0x18c7'),'msg':(_0x169bd9[_0x477f24('0x1157')][_0x477f24('0x2623')]||_0x477f24('0x1157'))+_0x477f24('0x2182')}),_0x380df7(_0x169bd9[_0x477f24('0x1157')]);})[_0x4033e0('0x223b')](function(_0x3fd35a){var _0x1623f9=_0x4033e0;if(_0x3fd35a['data']&&_0x3fd35a['data'][_0x1623f9('0xcd2')]&&_0x3fd35a[_0x1623f9('0x11d0')][_0x1623f9('0xcd2')][_0x1623f9('0x25ae')]){_0x169bd9[_0x1623f9('0xcd2')]=_0x3fd35a[_0x1623f9('0x11d0')][_0x1623f9('0xcd2')]||[{'message':_0x3fd35a['toString'](),'type':'api.cannedAnswer.delete'}];for(var _0x36f385=0x0;_0x36f385<_0x3fd35a[_0x1623f9('0x11d0')][_0x1623f9('0xcd2')]['length'];_0x36f385++){_0x4113e5[_0x1623f9('0x8c8')]({'title':_0x3fd35a[_0x1623f9('0x11d0')][_0x1623f9('0xcd2')][_0x36f385][_0x1623f9('0x62e')],'msg':_0x3fd35a[_0x1623f9('0x11d0')][_0x1623f9('0xcd2')][_0x36f385]['message']});}}else _0x4113e5[_0x1623f9('0x8c8')]({'title':_0x3fd35a[_0x1623f9('0x2833')]?'API:'+_0x3fd35a['status']+_0x1623f9('0x1b7c')+_0x3fd35a[_0x1623f9('0x1fd7')]:'api.cannedAnswer.delete','msg':_0x3fd35a[_0x1623f9('0x11d0')]?JSON[_0x1623f9('0x3ad')](_0x3fd35a[_0x1623f9('0x11d0')][_0x1623f9('0x27e8')]):_0x3fd35a[_0x1623f9('0x27e8')]||_0x3fd35a[_0x1623f9('0x94f')]()});});},function(){});}function _0x2d1c79(_0x4eaa18){return _0x4eaa18===null?undefined:new Date(_0x4eaa18);}function _0x380df7(_0x569891){var _0x22e994=_0x36ea85;_0x1e463b[_0x22e994('0x11ed')](_0x569891);}}const _0x4bf9a0=_0x15a3a5;_0x219fa8[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x219fa8(_0x1e1ed8,_0x54d17d,_0x40f88a,_0x2e3916,_0x5b3e2d,_0x198c5f,_0x170e27,_0x5bd5e9,_0xee19e,_0x2905d9,_0x32e02d){var _0x3cc20b=_0xb635d2,_0x3023f8=this;_0x3023f8[_0x3cc20b('0x15a5')]=_0x32e02d[_0x3cc20b('0x1ef8')](),_0x3023f8[_0x3cc20b('0x24eb')]={'count':0x0,'rows':[]},_0x3023f8['selectedDispositions']=[],_0x3023f8[_0x3cc20b('0xb3d')],_0x3023f8[_0x3cc20b('0x513')]={'first':_0x3cc20b('0x24ab'),'second':'2nd','third':_0x3cc20b('0x13ee')},_0x3023f8[_0x3cc20b('0xa16')]={'fields':_0x3cc20b('0x561'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x3023f8[_0x3cc20b('0x15f9')]=_0x1ab983,_0x3023f8[_0x3cc20b('0x126c')]=_0x2b3826,_0x3023f8[_0x3cc20b('0x425')]=_0x554bc6,_0x3023f8['getDispositions']=_0x4e2efe,_0x3023f8[_0x3cc20b('0x2374')]=_0x8e8139,_0x3023f8[_0x3cc20b('0x1db')]=_0x216801,_0x3023f8[_0x3cc20b('0x1f38')]=_0x50cb9d,_0x3023f8[_0x3cc20b('0xda0')]=_0x4ab5ea,_0x3023f8[_0x3cc20b('0x33d')]=_0x35de98,_0x3023f8[_0x3cc20b('0x56f')]=_0x3f2dca;function _0x1ab983(_0xc0cde8,_0x23970b){var _0x367fb3=_0x3cc20b;_0x3023f8[_0x367fb3('0x1437')]=_0xc0cde8||{},_0x3023f8[_0x367fb3('0xb3d')]=typeof _0x23970b!==_0x367fb3('0x1143')?_0x23970b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3023f8[_0x367fb3('0xa16')][_0x367fb3('0x26a9')]=_0x3023f8[_0x367fb3('0x1437')]['id'],_0x3023f8['query']['id']=_0x3023f8[_0x367fb3('0x1437')]['id'],_0x4e2efe();}function _0x8e8139(_0x1d41ae,_0x3f3d66){var _0x101901=_0x3cc20b;_0x5b3e2d[_0x101901('0x26b2')]({'controller':_0x101901('0x4d9'),'controllerAs':'vm','templateUrl':_0x599d02,'parent':angular[_0x101901('0x24a1')](_0x198c5f[_0x101901('0x19b2')]),'targetEvent':_0x1d41ae,'clickOutsideToClose':!![],'locals':{'disposition':_0x3f3d66,'dispositions':_0x3023f8['dispositions']['rows'],'model':{'id':_0x3023f8[_0x101901('0x1437')]['id'],'field':_0x101901('0x26a9')},'license':null,'setting':null,'crudPermissions':_0x3023f8[_0x101901('0xb3d')]}})[_0x101901('0xe19')](function(_0x1e1157){if(_0x1e1157)_0x4e2efe();});}function _0x2b3826(_0x34466c,_0x5994e9){var _0x16d6c6=_0x3cc20b,_0x4dcb3f=_0x32d445()[_0x16d6c6('0x201a')](_0x3023f8[_0x16d6c6('0x24eb')][_0x16d6c6('0x16a7')],[_0x16d6c6('0x2450'),_0x34466c['id']]),_0x3b046b=_0x5b3e2d[_0x16d6c6('0xa5')]()[_0x16d6c6('0x13e4')](_0x5bd5e9[_0x16d6c6('0x2159')](_0x16d6c6('0x5d9')))['content'](_0x5bd5e9[_0x16d6c6('0x2159')](_0x16d6c6('0xd37')+(_0x4dcb3f?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x16d6c6('0xf36')),{'name':_0x34466c[_0x16d6c6('0x2623')]}))[_0x16d6c6('0x4d1')](_0x16d6c6('0x1c26'))[_0x16d6c6('0x1345')](_0x5994e9)['ok']('OK')[_0x16d6c6('0x2c1')](_0x5bd5e9[_0x16d6c6('0x2159')]('TOOLS.CANCEL'));_0x5b3e2d[_0x16d6c6('0x26b2')](_0x3b046b)[_0x16d6c6('0xe19')](function(){_0x216801(_0x34466c);});}function _0x554bc6(_0x2dfc47){var _0x4944f9=_0x3cc20b;_0x3023f8[_0x4944f9('0x24eb')]=_0x2dfc47||{'count':0x0,'rows':[]};}function _0x4e2efe(){var _0x698a3b=_0x3cc20b;_0x3023f8[_0x698a3b('0xa16')][_0x698a3b('0xab0')]=(_0x3023f8[_0x698a3b('0xa16')][_0x698a3b('0xc08')]-0x1)*_0x3023f8[_0x698a3b('0xa16')][_0x698a3b('0x1b6d')],_0x3023f8[_0x698a3b('0x9c8')]=_0xee19e[_0x698a3b('0x1437')][_0x698a3b('0x1312')](_0x3023f8[_0x698a3b('0xa16')],_0x554bc6)[_0x698a3b('0xe59')];}function _0x216801(_0x56b1ff){var _0x4760b6=_0x3cc20b;_0xee19e[_0x4760b6('0x2506')][_0x4760b6('0x229e')]({'id':_0x56b1ff['id']})[_0x4760b6('0xe59')]['then'](function(){var _0x573f3d=_0x4760b6;_0x4e2efe(),_0x2905d9[_0x573f3d('0x425')]({'title':_0x5bd5e9[_0x573f3d('0x2159')](_0x573f3d('0x1593'))});})[_0x4760b6('0x223b')](function(_0x3c8993){var _0x3829a8=_0x4760b6;if(_0x3c8993[_0x3829a8('0x11d0')]&&_0x3c8993[_0x3829a8('0x11d0')][_0x3829a8('0xcd2')]&&_0x3c8993[_0x3829a8('0x11d0')][_0x3829a8('0xcd2')][_0x3829a8('0x25ae')]){_0x3023f8[_0x3829a8('0xcd2')]=_0x3c8993[_0x3829a8('0x11d0')][_0x3829a8('0xcd2')]||[{'message':_0x3c8993[_0x3829a8('0x94f')](),'type':_0x3829a8('0x45')}];for(var _0x559999=0x0;_0x559999<_0x3c8993['data'][_0x3829a8('0xcd2')]['length'];_0x559999++){_0x2905d9[_0x3829a8('0x8c8')]({'title':_0x3c8993[_0x3829a8('0x11d0')][_0x3829a8('0xcd2')][_0x559999][_0x3829a8('0x62e')],'msg':_0x3c8993[_0x3829a8('0x11d0')][_0x3829a8('0xcd2')][_0x559999][_0x3829a8('0x27e8')]});}}else _0x2905d9['error']({'title':_0x3c8993[_0x3829a8('0x2833')]?_0x3829a8('0x27f2')+_0x3c8993[_0x3829a8('0x2833')]+_0x3829a8('0x1b7c')+_0x3c8993[_0x3829a8('0x1fd7')]:_0x3829a8('0x45'),'msg':_0x3c8993[_0x3829a8('0x11d0')]?JSON[_0x3829a8('0x3ad')](_0x3c8993[_0x3829a8('0x11d0')]['message']):_0x3c8993[_0x3829a8('0x27e8')]||_0x3c8993['toString']()});});}function _0x50cb9d(){var _0x1f9571=_0x3cc20b,_0x10900f=angular[_0x1f9571('0x89')](_0x3023f8[_0x1f9571('0x17e9')]);return _0x3023f8[_0x1f9571('0x17e9')]=[],_0x10900f;}function _0x4ab5ea(_0x136f00){var _0x2e6f51=_0x3cc20b,_0xfb2962=_0x5b3e2d[_0x2e6f51('0xa5')]()[_0x2e6f51('0x13e4')](_0x5bd5e9[_0x2e6f51('0x2159')](_0x2e6f51('0xf00')))[_0x2e6f51('0xd0')](_0x5bd5e9[_0x2e6f51('0x2159')](_0x2e6f51('0x2750'),{'total':_0x3023f8[_0x2e6f51('0x17e9')][_0x2e6f51('0x25ae')]}))[_0x2e6f51('0x4d1')](_0x2e6f51('0x2829'))[_0x2e6f51('0x1345')](_0x136f00)['ok']('OK')[_0x2e6f51('0x2c1')](_0x5bd5e9['instant']('TOOLS.CANCEL'));_0x5b3e2d[_0x2e6f51('0x26b2')](_0xfb2962)[_0x2e6f51('0xe19')](function(){var _0x28e58a=_0x2e6f51;_0x3023f8[_0x28e58a('0x17e9')][_0x28e58a('0x1d7e')](function(_0x264d21){_0x216801(_0x264d21);}),_0x3023f8[_0x28e58a('0x17e9')]=[];});}function _0x35de98(){var _0x15f811=_0x3cc20b;_0x3023f8[_0x15f811('0x17e9')]=[];}function _0x3f2dca(){var _0x46392a=_0x3cc20b;_0x3023f8[_0x46392a('0x17e9')]=_0x3023f8[_0x46392a('0x24eb')][_0x46392a('0x16a7')];}var _0x55d64f=!![],_0xa8e4bc=0x1;_0x1e1ed8[_0x3cc20b('0x107')](_0x3cc20b('0x1607'),function(_0x4d7533,_0x3eebac){var _0x32f1b3=_0x3cc20b;_0x55d64f?_0x170e27(function(){_0x55d64f=![];}):(!_0x3eebac&&(_0xa8e4bc=_0x3023f8[_0x32f1b3('0xa16')]['page']),_0x4d7533!==_0x3eebac&&(_0x3023f8[_0x32f1b3('0xa16')][_0x32f1b3('0xc08')]=0x1),!_0x4d7533&&(_0x3023f8['query']['page']=_0xa8e4bc),_0x4e2efe());});}const _0xdfbf60=_0x219fa8,_0x3ba318=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0x430212[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2493'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xffc'),'toasty','Auth','smsAccount','userProfileSection'];function _0x430212(_0x3feec4,_0x3c95af,_0x33d2c1,_0x175bd0,_0x56d79d,_0x145e22,_0x2d969a,_0x137d56,_0x4f4969,_0x47ada8,_0x2fb607,_0x34ef8d){var _0x1fee5f=_0xb635d2,_0x3bd0cd=this;_0x3bd0cd[_0x1fee5f('0x15a5')]=_0x47ada8[_0x1fee5f('0x1ef8')](),_0x3bd0cd[_0x1fee5f('0x5c1')]=_0x145e22,_0x3bd0cd[_0x1fee5f('0x22f1')]=_0x2d969a,_0x3bd0cd['passwordPattern']=_0x3bd0cd[_0x1fee5f('0x22f1')][_0x1fee5f('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3bd0cd[_0x1fee5f('0x2170')]=_0x3c95af[_0x1fee5f('0xec0')]()+_0x1fee5f('0x21a8')+_0x3c95af[_0x1fee5f('0x3b7')](),_0x3bd0cd['smsAccount']=_0x2fb607||_0x3feec4['params'][_0x1fee5f('0x1437')]||{},_0x3bd0cd[_0x1fee5f('0xb59')]=_0x34ef8d&&_0x34ef8d[_0x1fee5f('0x148b')]==0x1?_0x34ef8d[_0x1fee5f('0x16a7')][0x0]:null,_0x3bd0cd[_0x1fee5f('0xb3d')]=_0x47ada8['parseCrudPermissions'](_0x3bd0cd[_0x1fee5f('0xb59')]?_0x3bd0cd[_0x1fee5f('0xb59')][_0x1fee5f('0xb3d')]:null),_0x3bd0cd[_0x1fee5f('0x1ccb')]={},_0x3bd0cd[_0x1fee5f('0xc7b')]=_0x3feec4[_0x1fee5f('0x2ef')]['tab']||0x0,_0x3bd0cd['agentadddialog']=_0x2a1cd9,_0x3bd0cd[_0x1fee5f('0xbdc')]=_0x4f4969['info'],_0x3bd0cd[_0x1fee5f('0x11ba')]=_0x54a540,_0x3bd0cd[_0x1fee5f('0xef2')]=_0x6cacc3,_0x47ada8[_0x1fee5f('0x179e')](_0x1fee5f('0xd14'))?_0x137d56[_0x1fee5f('0x1bbd')][_0x1fee5f('0x22d5')]({'fields':'id,name','sort':_0x1fee5f('0x2623')})[_0x1fee5f('0xe59')]['then'](function(_0x55b282){var _0x58cf24=_0x1fee5f;_0x3bd0cd['lists']=_0x55b282[_0x58cf24('0x16a7')]||[];})['catch'](function(_0x1baf91){var _0x8717da=_0x1fee5f;_0x4f4969[_0x8717da('0x8c8')]({'title':_0x1baf91['status']?_0x8717da('0x27f2')+_0x1baf91['status']+'\x20-\x20'+_0x1baf91[_0x8717da('0x1fd7')]:_0x8717da('0x2012'),'msg':_0x1baf91[_0x8717da('0x11d0')]?JSON[_0x8717da('0x3ad')](_0x1baf91[_0x8717da('0x11d0')]):_0x1baf91[_0x8717da('0x94f')]()});}):_0x137d56[_0x1fee5f('0x1bbd')][_0x1fee5f('0x22d5')]({'fields':_0x1fee5f('0x104'),'sort':_0x1fee5f('0x2623')})['$promise'][_0x1fee5f('0xe19')](function(_0x336532){var _0x39246f=_0x1fee5f;_0x3bd0cd[_0x39246f('0x9f8')]=_0x336532[_0x39246f('0x16a7')]||[];})[_0x1fee5f('0xe19')](function(){var _0x172a47=_0x1fee5f;return _0x137d56[_0x172a47('0xb59')][_0x172a47('0x22d5')]({'userProfileId':_0x3bd0cd[_0x172a47('0x15a5')]['userProfileId'],'sectionId':0x12d})[_0x172a47('0xe59')];})[_0x1fee5f('0xe19')](function(_0x47be02){var _0x33dd5e=_0x1fee5f,_0x2676d3=_0x47be02&&_0x47be02[_0x33dd5e('0x16a7')]?_0x47be02[_0x33dd5e('0x16a7')][0x0]:null;if(!_0x2676d3){var _0x3746a5=[],_0x2ff92e=null;_0x3bd0cd[_0x33dd5e('0x1437')]&&(_0x2ff92e=_0x32d445()[_0x33dd5e('0xf15')](_0x3bd0cd[_0x33dd5e('0x9f8')],{'id':Number(_0x3bd0cd[_0x33dd5e('0x1437')][_0x33dd5e('0x2463')])}));for(var _0xe1d80f=0x0;_0xe1d80f<_0x3bd0cd[_0x33dd5e('0x9f8')][_0x33dd5e('0x25ae')];_0xe1d80f++){_0x2ff92e&&_0x3bd0cd[_0x33dd5e('0x9f8')][_0xe1d80f]['id']===_0x2ff92e['id']&&(_0x3bd0cd['lists'][_0xe1d80f][_0x33dd5e('0x1e9d')]=![],_0x3746a5['push'](_0x3bd0cd[_0x33dd5e('0x9f8')][_0xe1d80f]));}_0x3bd0cd[_0x33dd5e('0x9f8')]=_0x3746a5;}else{if(!_0x2676d3['autoAssociation'])return _0x137d56[_0x33dd5e('0xd49')][_0x33dd5e('0x22d5')]({'sectionId':_0x2676d3['id']})[_0x33dd5e('0xe59')][_0x33dd5e('0xe19')](function(_0x55e04b){var _0x4ee473=_0x33dd5e,_0x1eb4d4=_0x32d445()[_0x4ee473('0x65a')](_0x55e04b[_0x4ee473('0x16a7')],function(_0x5e81d0){var _0x5a230b=_0x4ee473;return _0x32d445()[_0x5a230b('0xf15')](_0x3bd0cd['lists'],{'id':_0x5e81d0['resourceId']});}),_0x19178c=null;_0x3bd0cd[_0x4ee473('0x1437')]&&(_0x19178c=_0x32d445()[_0x4ee473('0xf15')](_0x3bd0cd[_0x4ee473('0x9f8')],{'id':Number(_0x3bd0cd[_0x4ee473('0x1437')][_0x4ee473('0x2463')])}));if(_0x19178c&&!_0x32d445()[_0x4ee473('0x201a')](_0x1eb4d4,['id',_0x19178c['id']])){var _0x564a77=_0x32d445()[_0x4ee473('0xf15')](_0x3bd0cd[_0x4ee473('0x9f8')],{'id':_0x19178c['id']});_0x564a77[_0x4ee473('0x1e9d')]=![],_0x1eb4d4[_0x4ee473('0xb76')](_0x564a77);}_0x3bd0cd[_0x4ee473('0x9f8')]=_0x1eb4d4;});}})[_0x1fee5f('0x223b')](function(_0x5313ec){var _0x426fe9=_0x1fee5f;_0x4f4969[_0x426fe9('0x8c8')]({'title':_0x5313ec['status']?'API:'+_0x5313ec[_0x426fe9('0x2833')]+'\x20-\x20'+_0x5313ec[_0x426fe9('0x1fd7')]:_0x426fe9('0xd65'),'msg':_0x5313ec[_0x426fe9('0x11d0')]?JSON[_0x426fe9('0x3ad')](_0x5313ec[_0x426fe9('0x11d0')]):_0x5313ec[_0x426fe9('0x94f')]()});}),_0x47ada8[_0x1fee5f('0x179e')](_0x1fee5f('0xd14'))?_0x137d56[_0x1fee5f('0x1c98')][_0x1fee5f('0x22d5')]({'fields':_0x1fee5f('0x1b75'),'sort':_0x1fee5f('0x2623'),'nolimit':_0x1fee5f('0x2206')})['$promise'][_0x1fee5f('0xe19')](function(_0x2f862f){_0x3bd0cd['pauses']=_0x2f862f['rows']||[];})[_0x1fee5f('0x223b')](function(_0x5e9804){var _0x229f6a=_0x1fee5f;_0x4f4969[_0x229f6a('0x8c8')]({'title':_0x5e9804[_0x229f6a('0x2833')]?_0x229f6a('0x27f2')+_0x5e9804[_0x229f6a('0x2833')]+_0x229f6a('0x1b7c')+_0x5e9804[_0x229f6a('0x1fd7')]:_0x229f6a('0x20ea'),'msg':_0x5e9804[_0x229f6a('0x11d0')]?JSON[_0x229f6a('0x3ad')](_0x5e9804[_0x229f6a('0x11d0')]):_0x5e9804[_0x229f6a('0x94f')]()});}):_0x137d56['pause'][_0x1fee5f('0x22d5')]({'fields':_0x1fee5f('0x1b75'),'sort':'name','nolimit':_0x1fee5f('0x2206')})[_0x1fee5f('0xe59')][_0x1fee5f('0xe19')](function(_0x3c4edd){var _0x2f483a=_0x1fee5f;_0x3bd0cd[_0x2f483a('0x145e')]=_0x3c4edd['rows']||[];})[_0x1fee5f('0xe19')](function(){var _0x1bec4c=_0x1fee5f;return _0x137d56[_0x1bec4c('0xb59')][_0x1bec4c('0x22d5')]({'userProfileId':_0x3bd0cd['currentUser']['userProfileId'],'sectionId':0x3ed})[_0x1bec4c('0xe59')];})[_0x1fee5f('0xe19')](function(_0x51a9d2){var _0xf0a2e0=_0x1fee5f,_0x4b5e60=_0x51a9d2&&_0x51a9d2[_0xf0a2e0('0x16a7')]?_0x51a9d2[_0xf0a2e0('0x16a7')][0x0]:null;if(!_0x4b5e60)_0x3bd0cd['pauses']=[];else{if(!_0x4b5e60['autoAssociation'])return _0x137d56[_0xf0a2e0('0xd49')][_0xf0a2e0('0x22d5')]({'sectionId':_0x4b5e60['id']})['$promise']['then'](function(_0x32dfe9){var _0x380108=_0xf0a2e0,_0x142bd6=_0x32d445()[_0x380108('0x65a')](_0x32dfe9['rows'],function(_0x104aed){var _0x25fd40=_0x380108;return _0x32d445()[_0x25fd40('0xf15')](_0x3bd0cd[_0x25fd40('0x145e')],{'id':_0x104aed[_0x25fd40('0x1104')]});});_0x3bd0cd[_0x380108('0x145e')]['forEach'](function(_0x40044b){var _0x1fe8a4=_0x380108;!_0x32d445()['some'](_0x142bd6,['id',_0x40044b['id']])&&(_0x40044b['canSelect']=![]),_0x142bd6[_0x1fe8a4('0xb76')](_0x40044b);}),_0x3bd0cd[_0x380108('0x145e')]=_0x142bd6;});}})[_0x1fee5f('0x223b')](function(_0xfe243b){var _0x5f01b8=_0x1fee5f;_0x4f4969[_0x5f01b8('0x8c8')]({'title':_0xfe243b[_0x5f01b8('0x2833')]?'API:'+_0xfe243b['status']+_0x5f01b8('0x1b7c')+_0xfe243b[_0x5f01b8('0x1fd7')]:'SYSTEM:GETpauses','msg':_0xfe243b[_0x5f01b8('0x11d0')]?JSON[_0x5f01b8('0x3ad')](_0xfe243b['data']):_0xfe243b[_0x5f01b8('0x94f')]()});});function _0x2a1cd9(_0x51c0da,_0x978a15){var _0xf4cccb=_0x1fee5f;_0x33d2c1['show']({'controller':_0xf4cccb('0x9f'),'controllerAs':'vm','templateUrl':_0x3ba318,'parent':angular[_0xf4cccb('0x24a1')](_0x175bd0['body']),'targetEvent':_0x978a15,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x51c0da,'smsAccounts':_0x3bd0cd[_0xf4cccb('0x25db')]?_0x3bd0cd[_0xf4cccb('0x25db')]['rows']:[],'crudPermissions':_0x3bd0cd[_0xf4cccb('0xb3d')],'realtime':![]}});}function _0x54a540(){var _0x2c0bfd=_0x1fee5f;_0x3feec4['go'](_0x2c0bfd('0x1dea'),{},{'reload':'app.sms.smsAccounts'});}function _0x6cacc3(){var _0x394a5f=_0x1fee5f;_0x137d56[_0x394a5f('0x1437')]['update']({'id':_0x3bd0cd[_0x394a5f('0x1437')]['id']},_0x3bd0cd[_0x394a5f('0x1437')])['$promise'][_0x394a5f('0xe19')](function(){var _0x2bae09=_0x394a5f;_0x4f4969[_0x2bae09('0x425')]({'title':'SmsAccount\x20updated!','msg':_0x3bd0cd[_0x2bae09('0x1437')][_0x2bae09('0x2623')]?_0x3bd0cd[_0x2bae09('0x1437')][_0x2bae09('0x2623')]+_0x2bae09('0x283b'):''});})[_0x394a5f('0x223b')](function(_0x362dbd){var _0x5f4985=_0x394a5f;_0x4f4969[_0x5f4985('0x8c8')]({'title':_0x362dbd[_0x5f4985('0x2833')]?_0x5f4985('0x27f2')+_0x362dbd[_0x5f4985('0x2833')]+_0x5f4985('0x1b7c')+_0x362dbd['statusText']:_0x5f4985('0x28e'),'msg':_0x362dbd[_0x5f4985('0x11d0')]?JSON[_0x5f4985('0x3ad')](_0x362dbd[_0x5f4985('0x11d0')]):_0x362dbd[_0x5f4985('0x94f')]()});});}}const _0x42a18f=_0x430212,_0x2721e8=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html/dialog-[chunkhash].html';_0x333e98[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x25db'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x333e98(_0x34e894,_0x3c906f,_0x972321,_0x39d2b0,_0x3f319b,_0x30cdd5,_0x27162a,_0x388a15,_0x270dba,_0x4e7b6a,_0x2c340e,_0x20fa01,_0x38c0b1,_0x14fe7b,_0x32f3b9,_0x32e7b8,_0x7b9398){var _0x2d2a88=_0xb635d2,_0x2eaf4a=this;_0x2eaf4a[_0x2d2a88('0x5c1')]=_0x32e7b8,_0x2eaf4a[_0x2d2a88('0x22f1')]=_0x7b9398,_0x2eaf4a[_0x2d2a88('0x15a5')]=_0x32f3b9[_0x2d2a88('0x1ef8')](),_0x2eaf4a[_0x2d2a88('0x25db')]=_0x270dba||{'count':0x0,'rows':[]},_0x2eaf4a[_0x2d2a88('0x154f')]=_0x4e7b6a,_0x2eaf4a[_0x2d2a88('0xb59')]=_0x2c340e&&_0x2c340e[_0x2d2a88('0x148b')]==0x1?_0x2c340e[_0x2d2a88('0x16a7')][0x0]:null,_0x2eaf4a[_0x2d2a88('0xb3d')]=_0x32f3b9[_0x2d2a88('0xd31')](_0x2eaf4a[_0x2d2a88('0xb59')]?_0x2eaf4a[_0x2d2a88('0xb59')][_0x2d2a88('0xb3d')]:null),_0x2eaf4a[_0x2d2a88('0x19b6')]=_0x2d2a88('0x25db'),_0x2eaf4a['listOrder']='',_0x2eaf4a[_0x2d2a88('0x190c')]=null,_0x2eaf4a['selectedSmsAccounts']=[],_0x2eaf4a[_0x2d2a88('0xa16')]={'fields':_0x2d2a88('0x228a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2eaf4a[_0x2d2a88('0x143e')]=_0x32d445()['keyBy']([{'option':_0x2d2a88('0x18cd'),'value':_0x2d2a88('0x1332')},{'option':'Skebby','value':'\x27skebby\x27'},{'option':_0x2d2a88('0x252d'),'value':_0x2d2a88('0x633')},{'option':_0x2d2a88('0x249e'),'value':_0x2d2a88('0x25dd')},{'option':_0x2d2a88('0x10bb'),'value':_0x2d2a88('0x2363')},{'option':'Infobip','value':_0x2d2a88('0x4dc')},{'option':_0x2d2a88('0x2437'),'value':_0x2d2a88('0x165b')},{'option':_0x2d2a88('0xe02'),'value':_0x2d2a88('0x1af9')},{'option':_0x2d2a88('0x21dd'),'value':_0x2d2a88('0x236d')}],function(_0x4d93e8){var _0x397662=_0x2d2a88;return _0x32d445()[_0x397662('0x1b42')](_0x4d93e8[_0x397662('0x2')],new RegExp('\x27','g'),'');}),_0x2eaf4a[_0x2d2a88('0x15ce')]=_0x32d445()['keyBy']([{'option':_0x2d2a88('0x25f6'),'value':_0x2d2a88('0x1a3f')},{'option':_0x2d2a88('0x1341'),'value':_0x2d2a88('0x140b')},{'option':_0x2d2a88('0x1721'),'value':'\x27GP\x27'}],function(_0x3177d4){var _0x20dfc6=_0x2d2a88;return _0x32d445()[_0x20dfc6('0x1b42')](_0x3177d4[_0x20dfc6('0x2')],new RegExp('\x27','g'),'');}),_0x2eaf4a[_0x2d2a88('0x16a0')]=_0x4db42c,_0x2eaf4a[_0x2d2a88('0x1d08')]=_0x406758,_0x2eaf4a[_0x2d2a88('0x1407')]=_0x515706,_0x2eaf4a['deleteconfirm']=_0x16127c,_0x2eaf4a[_0x2d2a88('0x425')]=_0x5ede3c,_0x2eaf4a[_0x2d2a88('0x1847')]=_0x271220,_0x2eaf4a[_0x2d2a88('0x1aba')]=_0x367fae,_0x2eaf4a[_0x2d2a88('0x1e9a')]=_0x48a95d,_0x2eaf4a[_0x2d2a88('0x203a')]=_0x5132e3,_0x2eaf4a[_0x2d2a88('0xd3d')]=_0x3bdba6,_0x2eaf4a[_0x2d2a88('0xdcc')]=_0x25a9b7,_0x2eaf4a[_0x2d2a88('0x509')]=_0x6582ba,_0x32f3b9[_0x2d2a88('0x179e')]('admin')?_0x20fa01[_0x2d2a88('0x1bbd')][_0x2d2a88('0x22d5')]({'fields':_0x2d2a88('0x104'),'sort':_0x2d2a88('0x2623')})[_0x2d2a88('0xe59')]['then'](function(_0x39ade1){var _0x3a4515=_0x2d2a88;_0x2eaf4a[_0x3a4515('0x9f8')]=_0x39ade1['rows']||[];})[_0x2d2a88('0x223b')](function(_0x510015){var _0x2baecf=_0x2d2a88;_0x14fe7b[_0x2baecf('0x8c8')]({'title':_0x510015[_0x2baecf('0x2833')]?'API:'+_0x510015[_0x2baecf('0x2833')]+_0x2baecf('0x1b7c')+_0x510015[_0x2baecf('0x1fd7')]:'SYSTEM:GET_LISTS','msg':_0x510015['data']?JSON[_0x2baecf('0x3ad')](_0x510015[_0x2baecf('0x11d0')]):_0x510015['toString']()});}):_0x20fa01[_0x2d2a88('0x1bbd')][_0x2d2a88('0x22d5')]({'fields':_0x2d2a88('0x104'),'sort':'name'})[_0x2d2a88('0xe59')][_0x2d2a88('0xe19')](function(_0x43e815){_0x2eaf4a['lists']=_0x43e815['rows']||[];})[_0x2d2a88('0xe19')](function(){var _0x43e3be=_0x2d2a88;return _0x20fa01[_0x43e3be('0xb59')][_0x43e3be('0x22d5')]({'userProfileId':_0x2eaf4a[_0x43e3be('0x15a5')][_0x43e3be('0x1d04')],'sectionId':0x12d})['$promise'];})[_0x2d2a88('0xe19')](function(_0x405163){var _0x1f8a22=_0x2d2a88,_0x3a629e=_0x405163&&_0x405163[_0x1f8a22('0x16a7')]?_0x405163[_0x1f8a22('0x16a7')][0x0]:null;if(!_0x3a629e){var _0x51f4ea=[],_0x1f3d72=null;_0x2eaf4a[_0x1f8a22('0x1437')]&&(_0x1f3d72=_0x32d445()[_0x1f8a22('0xf15')](_0x2eaf4a[_0x1f8a22('0x9f8')],{'id':Number(_0x2eaf4a[_0x1f8a22('0x1437')][_0x1f8a22('0x2463')])}));for(var _0x1b921b=0x0;_0x1b921b<_0x2eaf4a[_0x1f8a22('0x9f8')]['length'];_0x1b921b++){_0x1f3d72&&_0x2eaf4a[_0x1f8a22('0x9f8')][_0x1b921b]['id']===_0x1f3d72['id']&&(_0x2eaf4a[_0x1f8a22('0x9f8')][_0x1b921b][_0x1f8a22('0x1e9d')]=![],_0x51f4ea[_0x1f8a22('0xb76')](_0x2eaf4a[_0x1f8a22('0x9f8')][_0x1b921b]));}_0x2eaf4a[_0x1f8a22('0x9f8')]=_0x51f4ea;}else{if(!_0x3a629e[_0x1f8a22('0x11fd')])return _0x20fa01[_0x1f8a22('0xd49')]['get']({'sectionId':_0x3a629e['id']})[_0x1f8a22('0xe59')]['then'](function(_0x1079b1){var _0xd477b2=_0x1f8a22,_0x4edc91=_0x32d445()[_0xd477b2('0x65a')](_0x1079b1['rows'],function(_0x4c9bb0){var _0x18a76c=_0xd477b2;return _0x32d445()['find'](_0x2eaf4a[_0x18a76c('0x9f8')],{'id':_0x4c9bb0[_0x18a76c('0x1104')]});}),_0x14ce42=null;_0x2eaf4a[_0xd477b2('0x1437')]&&(_0x14ce42=_0x32d445()[_0xd477b2('0xf15')](_0x2eaf4a[_0xd477b2('0x9f8')],{'id':Number(_0x2eaf4a[_0xd477b2('0x1437')][_0xd477b2('0x2463')])}));if(_0x14ce42&&!_0x32d445()[_0xd477b2('0x201a')](_0x4edc91,['id',_0x14ce42['id']])){var _0x356e3f=_0x32d445()[_0xd477b2('0xf15')](_0x2eaf4a[_0xd477b2('0x9f8')],{'id':_0x14ce42['id']});_0x356e3f[_0xd477b2('0x1e9d')]=![],_0x4edc91[_0xd477b2('0xb76')](_0x356e3f);}_0x2eaf4a[_0xd477b2('0x9f8')]=_0x4edc91;});}})[_0x2d2a88('0x223b')](function(_0x3fa7e7){var _0xd6fe04=_0x2d2a88;_0x14fe7b[_0xd6fe04('0x8c8')]({'title':_0x3fa7e7[_0xd6fe04('0x2833')]?_0xd6fe04('0x27f2')+_0x3fa7e7['status']+_0xd6fe04('0x1b7c')+_0x3fa7e7[_0xd6fe04('0x1fd7')]:_0xd6fe04('0xd65'),'msg':_0x3fa7e7[_0xd6fe04('0x11d0')]?JSON[_0xd6fe04('0x3ad')](_0x3fa7e7[_0xd6fe04('0x11d0')]):_0x3fa7e7['toString']()});});function _0x4db42c(_0x178c51){_0x972321['go']('app.sms.smsAccounts.edit',{'id':_0x178c51['id'],'smsAccount':_0x178c51,'crudPermissions':_0x2eaf4a['crudPermissions']});}function _0x406758(_0x45b967){var _0x4b769e=_0x2d2a88;_0x972321['go'](_0x4b769e('0x10c7'),{'id':_0x45b967['id'],'tab':0x5});}function _0x515706(_0x53683e,_0x40f157){var _0x57ea8d=_0x2d2a88;_0x3f319b[_0x57ea8d('0x26b2')]({'controller':_0x57ea8d('0x9f'),'controllerAs':'vm','templateUrl':_0x3ba318,'parent':angular[_0x57ea8d('0x24a1')](_0x30cdd5[_0x57ea8d('0x19b2')]),'targetEvent':_0x40f157,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x53683e,'smsAccounts':_0x2eaf4a[_0x57ea8d('0x25db')]?_0x2eaf4a['smsAccounts'][_0x57ea8d('0x16a7')]:[],'crudPermissions':_0x2eaf4a[_0x57ea8d('0xb3d')],'realtime':![]}});}function _0x16127c(_0x2099ea,_0x18b460){var _0x1335e7=_0x2d2a88,_0x15c850=_0x3f319b[_0x1335e7('0xa5')]()[_0x1335e7('0x13e4')](_0x1335e7('0x346')+_0x32d445()[_0x1335e7('0x1df2')](_0x1335e7('0x1437'))+'?')[_0x1335e7('0x221c')](_0x1335e7('0xab2')+(_0x2099ea[_0x1335e7('0x2623')]||_0x1335e7('0x1437'))+''+_0x1335e7('0x21bd'))['ariaLabel'](_0x1335e7('0x2354'))[_0x1335e7('0x1345')](_0x18b460)['ok']('OK')[_0x1335e7('0x2c1')](_0x1335e7('0x17'));_0x3f319b[_0x1335e7('0x26b2')](_0x15c850)[_0x1335e7('0xe19')](function(){_0x48a95d(_0x2099ea);},function(){var _0xee76bf=_0x1335e7;console[_0xee76bf('0x1fe9')](_0xee76bf('0x17'));});}var _0x3f3287=!![],_0x5907f2=0x1;_0x34e894['$watch']('vm.query.filter',function(_0x45be34,_0x11f3d6){var _0x48356a=_0x2d2a88;_0x3f3287?_0x27162a(function(){_0x3f3287=![];}):(!_0x11f3d6&&(_0x5907f2=_0x2eaf4a[_0x48356a('0xa16')][_0x48356a('0xc08')]),_0x45be34!==_0x11f3d6&&(_0x2eaf4a[_0x48356a('0xa16')]['page']=0x1),!_0x45be34&&(_0x2eaf4a[_0x48356a('0xa16')]['page']=_0x5907f2),_0x2eaf4a['getSmsAccounts']());});function _0x5ede3c(_0x301fed){_0x2eaf4a['smsAccounts']=_0x301fed||{'count':0x0,'rows':[]};}function _0x271220(){var _0x31245c=_0x2d2a88;_0x2eaf4a[_0x31245c('0xa16')][_0x31245c('0xab0')]=(_0x2eaf4a[_0x31245c('0xa16')]['page']-0x1)*_0x2eaf4a['query'][_0x31245c('0x1b6d')],_0x32f3b9[_0x31245c('0x179e')](_0x31245c('0xd14'))?_0x2eaf4a[_0x31245c('0x9c8')]=_0x20fa01['smsAccount'][_0x31245c('0x22d5')](_0x2eaf4a['query'],_0x5ede3c)[_0x31245c('0xe59')]:(_0x2eaf4a[_0x31245c('0xa16')]['id']=_0x2eaf4a[_0x31245c('0x154f')]['id'],_0x2eaf4a[_0x31245c('0xa16')]['section']='SmsAccounts',_0x2eaf4a[_0x31245c('0x9c8')]=_0x20fa01['userProfile'][_0x31245c('0x14e6')](_0x2eaf4a[_0x31245c('0xa16')],_0x5ede3c)[_0x31245c('0xe59')]);}function _0x367fae(_0x5697ea,_0x5b0703){var _0x3f42b0=_0x2d2a88;_0x3f319b[_0x3f42b0('0x26b2')]({'controller':'CreateOrEditSmsAccountDialogController','controllerAs':'vm','templateUrl':_0x2721e8,'parent':angular[_0x3f42b0('0x24a1')](_0x30cdd5[_0x3f42b0('0x19b2')]),'targetEvent':_0x5697ea,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x5b0703,'smsAccounts':_0x2eaf4a['smsAccounts'][_0x3f42b0('0x16a7')],'license':_0x2eaf4a[_0x3f42b0('0x5c1')],'setting':_0x2eaf4a[_0x3f42b0('0x22f1')],'crudPermissions':_0x2eaf4a[_0x3f42b0('0xb3d')]}});}function _0x48a95d(_0xe922da){var _0x3ebf48=_0x2d2a88;_0x20fa01[_0x3ebf48('0x1437')][_0x3ebf48('0x229e')]({'id':_0xe922da['id']})['$promise'][_0x3ebf48('0xe19')](function(){var _0x368f96=_0x3ebf48;_0x32d445()['remove'](_0x2eaf4a[_0x368f96('0x25db')][_0x368f96('0x16a7')],{'id':_0xe922da['id']}),_0x2eaf4a['smsAccounts'][_0x368f96('0x148b')]-=0x1,!_0x2eaf4a['smsAccounts'][_0x368f96('0x16a7')][_0x368f96('0x25ae')]&&_0x2eaf4a['getSmsAccounts'](),_0x14fe7b['success']({'title':_0x32d445()[_0x368f96('0x1df2')](_0x368f96('0x5af'))+_0x368f96('0x1219'),'msg':_0xe922da['name']?_0xe922da[_0x368f96('0x2623')]+_0x368f96('0x2182'):''});})[_0x3ebf48('0x223b')](function(_0x523dcf){var _0x23c45f=_0x3ebf48;if(_0x523dcf['data']&&_0x523dcf['data']['errors']&&_0x523dcf[_0x23c45f('0x11d0')][_0x23c45f('0xcd2')][_0x23c45f('0x25ae')]){_0x2eaf4a[_0x23c45f('0xcd2')]=_0x523dcf['data'][_0x23c45f('0xcd2')]||[{'message':_0x523dcf[_0x23c45f('0x94f')](),'type':_0x23c45f('0x22c8')}];for(var _0x22d548=0x0;_0x22d548<_0x523dcf[_0x23c45f('0x11d0')][_0x23c45f('0xcd2')][_0x23c45f('0x25ae')];_0x22d548++){_0x14fe7b[_0x23c45f('0x8c8')]({'title':_0x523dcf[_0x23c45f('0x11d0')][_0x23c45f('0xcd2')][_0x22d548][_0x23c45f('0x62e')],'msg':_0x523dcf[_0x23c45f('0x11d0')][_0x23c45f('0xcd2')][_0x22d548][_0x23c45f('0x27e8')]});}}else _0x14fe7b['error']({'title':_0x523dcf[_0x23c45f('0x2833')]?_0x23c45f('0x27f2')+_0x523dcf['status']+_0x23c45f('0x1b7c')+_0x523dcf['statusText']:_0x23c45f('0x22c8'),'msg':_0x523dcf[_0x23c45f('0x11d0')]?JSON[_0x23c45f('0x3ad')](_0x523dcf['data'][_0x23c45f('0x27e8')]):_0x523dcf['message']||_0x523dcf[_0x23c45f('0x94f')]()});});}function _0x5132e3(){var _0x199c76=_0x2d2a88,_0x32e496=angular[_0x199c76('0x89')](_0x2eaf4a[_0x199c76('0xefc')]);return _0x2eaf4a['selectedSmsAccounts']=[],_0x32e496;}function _0x3bdba6(_0x4599aa){var _0x18c797=_0x2d2a88,_0x265b99=_0x3f319b[_0x18c797('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsAccounts?')[_0x18c797('0x221c')](_0x18c797('0xab2')+_0x2eaf4a[_0x18c797('0xefc')][_0x18c797('0x25ae')]+_0x18c797('0x5bc')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x18c797('0x1bf5'))[_0x18c797('0x1345')](_0x4599aa)['ok']('OK')['cancel'](_0x18c797('0x17'));_0x3f319b['show'](_0x265b99)[_0x18c797('0xe19')](function(){var _0x5ad917=_0x18c797;_0x2eaf4a[_0x5ad917('0xefc')]['forEach'](function(_0x3cc3b0){_0x48a95d(_0x3cc3b0);}),_0x2eaf4a['selectedSmsAccounts']=[];});}function _0x25a9b7(){var _0x4517ea=_0x2d2a88;_0x2eaf4a[_0x4517ea('0xefc')]=[];}function _0x6582ba(){var _0x506c9a=_0x2d2a88;_0x2eaf4a[_0x506c9a('0xefc')]=_0x2eaf4a[_0x506c9a('0x25db')][_0x506c9a('0x16a7')];}}const _0x36915a=_0x333e98;_0x5bf46a[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x2336'),_0xb635d2('0x19fb'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),'crudPermissions'];function _0x5bf46a(_0x1999b2,_0x1ddc5e,_0x53b5c3,_0x372040,_0x4cbfc8,_0x1229ca,_0x2845dc,_0x321bcb,_0x5b506b,_0x2a392a,_0x5b14fd,_0x3e83b1,_0x3966a4,_0x16a452){var _0x4ea9e5=_0xb635d2,_0x60d400=this;_0x60d400[_0x4ea9e5('0x15a5')]=_0x5b14fd[_0x4ea9e5('0x1ef8')](),_0x60d400[_0x4ea9e5('0xcd2')]=[],_0x60d400[_0x4ea9e5('0x22f1')]=_0x3966a4,_0x60d400[_0x4ea9e5('0x5c1')]=_0x3e83b1,_0x60d400[_0x4ea9e5('0xb3d')]=_0x16a452,_0x60d400[_0x4ea9e5('0x1ccb')]={},_0x60d400[_0x4ea9e5('0x25ac')]=_0x60d400[_0x4ea9e5('0x22f1')]&&_0x60d400[_0x4ea9e5('0x22f1')][_0x4ea9e5('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x60d400[_0x4ea9e5('0x13e4')]='SMS.EDIT_SMSQUEUE',_0x60d400[_0x4ea9e5('0x19fb')]=angular[_0x4ea9e5('0x89')](_0x5b506b),_0x60d400['smsQueues']=_0x321bcb,_0x60d400[_0x4ea9e5('0x2334')]=![];!_0x60d400[_0x4ea9e5('0x19fb')]&&(_0x60d400[_0x4ea9e5('0x19fb')]={'strategy':'beepall','timeout':0xa},_0x60d400[_0x4ea9e5('0x13e4')]=_0x4ea9e5('0x37a'),_0x60d400[_0x4ea9e5('0x2334')]=!![]);_0x60d400[_0x4ea9e5('0x27e3')]=_0x1cf504,_0x60d400['saveSmsQueue']=_0x459ffb,_0x60d400[_0x4ea9e5('0x23bf')]=_0x1e7e9b,_0x60d400[_0x4ea9e5('0x2635')]=_0x34b8b9,_0x60d400[_0x4ea9e5('0x2584')]=_0x815c60;function _0x1cf504(){var _0x476a77=_0x4ea9e5;_0x60d400[_0x476a77('0xcd2')]=[],_0x2a392a[_0x476a77('0x19fb')][_0x476a77('0xe5e')](_0x60d400[_0x476a77('0x19fb')])[_0x476a77('0xe59')][_0x476a77('0xe19')](function(_0x320bc){var _0x5071ef=_0x476a77;_0x60d400[_0x5071ef('0x2336')][_0x5071ef('0x14c9')](_0x320bc[_0x5071ef('0x250e')]()),_0x2845dc[_0x5071ef('0x425')]({'title':'SmsQueue\x20properly\x20created','msg':_0x60d400[_0x5071ef('0x19fb')][_0x5071ef('0x2623')]?_0x60d400['smsQueue'][_0x5071ef('0x2623')]+_0x5071ef('0x105f'):''}),_0x815c60(_0x320bc);})[_0x476a77('0x223b')](function(_0x258c46){var _0x4272be=_0x476a77;if(_0x258c46[_0x4272be('0x11d0')]&&_0x258c46['data']['errors']&&_0x258c46['data'][_0x4272be('0xcd2')][_0x4272be('0x25ae')]){_0x60d400[_0x4272be('0xcd2')]=_0x258c46['data'][_0x4272be('0xcd2')]||[{'message':_0x258c46[_0x4272be('0x94f')](),'type':_0x4272be('0x3e6')}];for(var _0x7a67a1=0x0;_0x7a67a1<_0x258c46[_0x4272be('0x11d0')][_0x4272be('0xcd2')][_0x4272be('0x25ae')];_0x7a67a1+=0x1){_0x2845dc[_0x4272be('0x8c8')]({'title':_0x258c46['data'][_0x4272be('0xcd2')][_0x7a67a1][_0x4272be('0x62e')],'msg':_0x258c46[_0x4272be('0x11d0')][_0x4272be('0xcd2')][_0x7a67a1][_0x4272be('0x27e8')]});}}else _0x2845dc['error']({'title':_0x258c46[_0x4272be('0x2833')]?'API:'+_0x258c46[_0x4272be('0x2833')]+_0x4272be('0x1b7c')+_0x258c46[_0x4272be('0x1fd7')]:_0x4272be('0x3e6'),'msg':_0x258c46[_0x4272be('0x11d0')]?JSON[_0x4272be('0x3ad')](_0x258c46[_0x4272be('0x11d0')]['message']):_0x258c46[_0x4272be('0x94f')]()});});}function _0x459ffb(){var _0x55056a=_0x4ea9e5;_0x60d400[_0x55056a('0xcd2')]=[],_0x2a392a[_0x55056a('0x19fb')][_0x55056a('0xa70')]({'id':_0x60d400[_0x55056a('0x19fb')]['id']},_0x60d400[_0x55056a('0x19fb')])[_0x55056a('0xe59')][_0x55056a('0xe19')](function(_0x41ad55){var _0x542d61=_0x55056a,_0x56d453=_0x32d445()[_0x542d61('0xf15')](_0x60d400[_0x542d61('0x2336')],{'id':_0x41ad55['id']});_0x56d453&&_0x32d445()[_0x542d61('0x1d8')](_0x56d453,_0x32d445()[_0x542d61('0xed5')](_0x41ad55[_0x542d61('0x250e')](),_0x32d445()[_0x542d61('0x1234')](_0x56d453))),_0x2845dc[_0x542d61('0x425')]({'title':_0x542d61('0x2270'),'msg':_0x60d400[_0x542d61('0x19fb')]['name']?_0x60d400[_0x542d61('0x19fb')][_0x542d61('0x2623')]+_0x542d61('0x1c19'):''}),_0x815c60(_0x41ad55);})[_0x55056a('0x223b')](function(_0x3d32ed){var _0x1384dd=_0x55056a;if(_0x3d32ed[_0x1384dd('0x11d0')]&&_0x3d32ed[_0x1384dd('0x11d0')][_0x1384dd('0xcd2')]&&_0x3d32ed[_0x1384dd('0x11d0')][_0x1384dd('0xcd2')][_0x1384dd('0x25ae')]){_0x60d400[_0x1384dd('0xcd2')]=_0x3d32ed[_0x1384dd('0x11d0')][_0x1384dd('0xcd2')]||[{'message':_0x3d32ed[_0x1384dd('0x94f')](),'type':_0x1384dd('0x1df0')}];for(var _0x3826b8=0x0;_0x3826b8<_0x3d32ed[_0x1384dd('0x11d0')][_0x1384dd('0xcd2')][_0x1384dd('0x25ae')];_0x3826b8++){_0x2845dc[_0x1384dd('0x8c8')]({'title':_0x3d32ed[_0x1384dd('0x11d0')]['errors'][_0x3826b8]['type'],'msg':_0x3d32ed['data']['errors'][_0x3826b8][_0x1384dd('0x27e8')]});}}else _0x2845dc[_0x1384dd('0x8c8')]({'title':_0x3d32ed[_0x1384dd('0x2833')]?_0x1384dd('0x27f2')+_0x3d32ed[_0x1384dd('0x2833')]+'\x20-\x20'+_0x3d32ed[_0x1384dd('0x1fd7')]:'api.smsQueue.update','msg':_0x3d32ed[_0x1384dd('0x11d0')]?JSON[_0x1384dd('0x3ad')](_0x3d32ed['data']['message']):_0x3d32ed[_0x1384dd('0x94f')]()});});}function _0x1e7e9b(_0x13f05e){var _0x5df63b=_0x4ea9e5;_0x60d400[_0x5df63b('0xcd2')]=[];var _0x172c19=_0x372040[_0x5df63b('0xa5')]()[_0x5df63b('0x13e4')](_0x5df63b('0x24d0'))['content'](_0x5df63b('0x9d9'))[_0x5df63b('0x4d1')](_0x5df63b('0x177b'))['ok'](_0x5df63b('0x2198'))[_0x5df63b('0x2c1')](_0x5df63b('0x8a3'))[_0x5df63b('0x1345')](_0x13f05e);_0x372040['show'](_0x172c19)[_0x5df63b('0xe19')](function(){var _0x3de7b5=_0x5df63b;_0x2a392a[_0x3de7b5('0x19fb')][_0x3de7b5('0x229e')]({'id':_0x60d400['smsQueue']['id']})[_0x3de7b5('0xe59')]['then'](function(){var _0x4efde2=_0x3de7b5;_0x32d445()[_0x4efde2('0xa8b')](_0x60d400['smsQueues'],{'id':_0x60d400['smsQueue']['id']}),_0x2845dc[_0x4efde2('0x425')]({'title':_0x4efde2('0x1248'),'msg':(_0x60d400[_0x4efde2('0x19fb')]['name']||_0x4efde2('0x19fb'))+_0x4efde2('0x2182')}),_0x815c60(_0x60d400['smsQueue']);})['catch'](function(_0x4b402a){var _0x1376a9=_0x3de7b5;if(_0x4b402a[_0x1376a9('0x11d0')]&&_0x4b402a[_0x1376a9('0x11d0')]['errors']&&_0x4b402a['data'][_0x1376a9('0xcd2')][_0x1376a9('0x25ae')]){_0x60d400[_0x1376a9('0xcd2')]=_0x4b402a[_0x1376a9('0x11d0')]['errors']||[{'message':_0x4b402a[_0x1376a9('0x94f')](),'type':_0x1376a9('0xe47')}];for(var _0x299a3b=0x0;_0x299a3b<_0x4b402a[_0x1376a9('0x11d0')][_0x1376a9('0xcd2')][_0x1376a9('0x25ae')];_0x299a3b++){_0x2845dc[_0x1376a9('0x8c8')]({'title':_0x4b402a[_0x1376a9('0x11d0')]['errors'][_0x299a3b][_0x1376a9('0x62e')],'msg':_0x4b402a['data'][_0x1376a9('0xcd2')][_0x299a3b][_0x1376a9('0x27e8')]});}}else _0x2845dc[_0x1376a9('0x8c8')]({'title':_0x4b402a[_0x1376a9('0x2833')]?_0x1376a9('0x27f2')+_0x4b402a['status']+_0x1376a9('0x1b7c')+_0x4b402a[_0x1376a9('0x1fd7')]:_0x1376a9('0xe47'),'msg':_0x4b402a['data']?JSON[_0x1376a9('0x3ad')](_0x4b402a[_0x1376a9('0x11d0')][_0x1376a9('0x27e8')]):_0x4b402a[_0x1376a9('0x27e8')]||_0x4b402a['toString']()});});},function(){});}function _0x34b8b9(_0x50b2b){return _0x50b2b===null?undefined:new Date(_0x50b2b);}function _0x815c60(_0x203b8a){var _0x2790d8=_0x4ea9e5;_0x372040[_0x2790d8('0x11ed')](_0x203b8a);}}const _0x55881d=_0x5bf46a;_0x5e2b35[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x19fb'),_0xb635d2('0x2336'),'realtime',_0xb635d2('0x2493'),'Auth',_0xb635d2('0xb3d')];function _0x5e2b35(_0x346d61,_0x33c655,_0x16798e,_0x27fcac,_0x5ebe8d,_0x1b7645,_0x3846ea,_0x1b7bec,_0x2d0f5d,_0x41e75a){var _0x2450ba=_0xb635d2,_0x54bc92=this;_0x54bc92[_0x2450ba('0x15a5')]=_0x2d0f5d[_0x2450ba('0x1ef8')](),_0x54bc92[_0x2450ba('0x19fb')]=_0x5ebe8d,_0x54bc92[_0x2450ba('0xb3d')]=_0x41e75a,_0x54bc92[_0x2450ba('0x24e1')]=_0x3846ea,_0x54bc92['items']=[],_0x54bc92[_0x2450ba('0x1884')]=[],_0x54bc92['selectedItems']=[],_0x54bc92[_0x2450ba('0x286c')]=[],_0x54bc92[_0x2450ba('0xf79')]=[],_0x54bc92[_0x2450ba('0x16e7')]=![],_0x54bc92[_0x2450ba('0x888')]=_0x18bb21,_0x54bc92[_0x2450ba('0x4b8')]=_0xac25af,_0x54bc92[_0x2450ba('0x2584')]=_0x3c2e5c,_0x54bc92[_0x2450ba('0xc00')]={'readOnly':!_0x54bc92[_0x2450ba('0xb3d')][_0x2450ba('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2450ba('0x2623'),'line1':_0x2450ba('0xe11'),'line2':[_0x2450ba('0x2623'),_0x2450ba('0x1b66')],'line3':'','labelAll':_0x1b7bec[_0x2450ba('0x2159')](_0x2450ba('0xb3c')),'labelSelected':_0x1b7bec[_0x2450ba('0x2159')]('SMS.SELECTED_AGENTS'),'transferCallback':function _0x2a4662(){var _0x20fa57=_0x2450ba,_0x44a687=_0x32d445()[_0x20fa57('0x118')](_0x54bc92[_0x20fa57('0xf79')],_0x54bc92['selectedItems'],'id');_0x54bc92[_0x20fa57('0x16e7')]=_0x32d445()['isEmpty'](_0x44a687)?![]:!![];}};function _0x18bb21(){var _0x33eb05=_0x2450ba;return _0x2d0f5d['hasRole'](_0x33eb05('0xd14'))?_0x232219()[_0x33eb05('0x223b')](function(_0x5ec029){var _0x13c7f4=_0x33eb05;_0x16798e['error']({'title':_0x5ec029[_0x13c7f4('0x2833')]?'API:'+_0x5ec029['status']+_0x13c7f4('0x1b7c')+_0x5ec029[_0x13c7f4('0x1fd7')]:_0x13c7f4('0x1e86'),'msg':_0x5ec029[_0x13c7f4('0x2833')]?JSON[_0x13c7f4('0x3ad')](_0x5ec029['data']):_0x5ec029[_0x13c7f4('0x94f')]()});}):_0x4e6592()[_0x33eb05('0xe19')](function(_0x447b3b){return _0x54bc92['section']=_0x447b3b,_0x232219();})['catch'](function(_0x1c935e){var _0x266f7b=_0x33eb05;_0x16798e[_0x266f7b('0x8c8')]({'title':_0x1c935e[_0x266f7b('0x2833')]?'API:'+_0x1c935e[_0x266f7b('0x2833')]+'\x20-\x20'+_0x1c935e[_0x266f7b('0x1fd7')]:'SYSTEM:GET_AGENTS','msg':_0x1c935e[_0x266f7b('0x2833')]?JSON[_0x266f7b('0x3ad')](_0x1c935e[_0x266f7b('0x11d0')]):_0x1c935e['toString']()});});}function _0x4e6592(){return _0x33c655(function(_0x280b7f,_0x4c2e36){var _0x2c9c16=a0_0x5325;_0x27fcac[_0x2c9c16('0xb59')][_0x2c9c16('0x22d5')]({'userProfileId':_0x54bc92[_0x2c9c16('0x15a5')][_0x2c9c16('0x1d04')],'name':_0x2c9c16('0xd61')})[_0x2c9c16('0xe59')][_0x2c9c16('0xe19')](function(_0x1424b4){var _0x2d8904=_0x2c9c16,_0x4e8a60=_0x1424b4&&_0x1424b4[_0x2d8904('0x16a7')]?_0x1424b4[_0x2d8904('0x16a7')][0x0]:null;_0x280b7f(_0x4e8a60);})['catch'](function(_0x32c8cc){_0x4c2e36(_0x32c8cc);});});}function _0x232219(){return _0x33c655(function(_0x3f7345,_0x5d8a94){var _0x49e96d=a0_0x5325;return _0x16e874()[_0x49e96d('0xe19')](function(_0x32323d){var _0x3a207e=_0x49e96d;return _0x54bc92[_0x3a207e('0xe4b')]=_0x32323d['rows']?_0x32323d[_0x3a207e('0x16a7')]:[],_0x2d0f5d['hasRole'](_0x3a207e('0xd14'))?_0x32323d:_0x54bc92[_0x3a207e('0x1e59')]?_0x54bc92['section'][_0x3a207e('0x11fd')]?_0x32323d:_0x1e38bc():null;})[_0x49e96d('0xe19')](function(_0x37c022){var _0x65a102=_0x49e96d,_0x5c081e=_0x37c022&&_0x37c022[_0x65a102('0x16a7')]?_0x37c022['rows']:[];return _0x54bc92['allowedItems']=_0x32d445()[_0x65a102('0x65a')](_0x5c081e,function(_0x1aa0dd){var _0x2c37dc=_0x65a102;return _0x32d445()['find'](_0x54bc92[_0x2c37dc('0xe4b')],{'id':_0x2d0f5d[_0x2c37dc('0x179e')](_0x2c37dc('0xd14'))||_0x54bc92[_0x2c37dc('0x1e59')][_0x2c37dc('0x11fd')]?_0x1aa0dd['id']:_0x1aa0dd[_0x2c37dc('0x1104')]});}),_0x54bc92[_0x65a102('0x286c')]=angular[_0x65a102('0x89')](_0x54bc92[_0x65a102('0x1884')]),_0x54bc92[_0x65a102('0xe4b')][_0x65a102('0x1d7e')](function(_0x5c4fb1){var _0x52e2b3=_0x65a102,_0x140386=_0x32d445()[_0x52e2b3('0xf15')](_0x54bc92['allowedItems'],{'id':_0x5c4fb1['id']});_0x2d0f5d[_0x52e2b3('0x179e')]('admin')?_0x5c4fb1['isValid']=!![]:_0x5c4fb1[_0x52e2b3('0x1768')]=typeof _0x140386!=='undefined'?!![]:![];}),_0x28040e();})[_0x49e96d('0xe19')](function(_0xfda0d2){var _0x36c259=_0x49e96d,_0x530a58=_0xfda0d2&&_0xfda0d2[_0x36c259('0x16a7')]?_0xfda0d2[_0x36c259('0x16a7')]:[];_0x54bc92[_0x36c259('0x2273')]=_0x32d445()['map'](_0x530a58,function(_0x45de79){var _0x1955ea=_0x36c259,_0x41dbd8=_0x32d445()[_0x1955ea('0xf15')](_0x54bc92['items'],{'id':_0x45de79['id']});return _0x41dbd8['penalty']=_0x45de79['UserSmsQueue']?'penalty\x20'+_0x45de79[_0x1955ea('0x1181')]['penalty']:'',_0x41dbd8[_0x1955ea('0x1b66')]=typeof _0x45de79[_0x1955ea('0x1b66')]!==_0x1955ea('0x1143')?'<'+_0x45de79[_0x1955ea('0x1b66')]+'>':'',_0x41dbd8;}),_0x54bc92[_0x36c259('0xf79')]=angular['copy'](_0x54bc92['selectedItems']),_0x54bc92[_0x36c259('0xc00')]['selectedItems']=_0x54bc92[_0x36c259('0x2273')],_0x54bc92[_0x36c259('0xc00')][_0x36c259('0xe4b')]=_0x32d445()[_0x36c259('0x501')](_0x54bc92['allowedItems'],_0x54bc92['dualMultiselectOptions'][_0x36c259('0x2273')],'id'),_0x3f7345();})['catch'](function(_0x489d66){_0x5d8a94(_0x489d66);});});}function _0x1e38bc(){return _0x33c655(function(_0x3370ea,_0x507545){var _0x1e89dd=a0_0x5325;return _0x27fcac[_0x1e89dd('0xd49')][_0x1e89dd('0x22d5')]({'sectionId':_0x54bc92[_0x1e89dd('0x1e59')]['id'],'nolimit':!![]})['$promise'][_0x1e89dd('0xe19')](function(_0x4d2d25){_0x3370ea(_0x4d2d25);})['catch'](function(_0x4068b1){_0x507545(_0x4068b1);});});}function _0x28040e(){return _0x33c655(function(_0x5358b5,_0x940a68){var _0x5df5d2=a0_0x5325;return _0x27fcac[_0x5df5d2('0x19fb')][_0x5df5d2('0x14fd')]({'id':_0x54bc92[_0x5df5d2('0x19fb')]['id'],'fields':_0x5df5d2('0x244f'),'nolimit':!![],'role':_0x5df5d2('0x108')})['$promise']['then'](function(_0x301784){_0x5358b5(_0x301784);})['catch'](function(_0x45742b){_0x940a68(_0x45742b);});});}function _0x16e874(){return _0x33c655(function(_0x216598,_0x4be37c){var _0x6a3ed0=a0_0x5325;return _0x27fcac['user'][_0x6a3ed0('0x22d5')]({'fields':_0x6a3ed0('0x244f'),'nolimit':!![],'role':_0x6a3ed0('0x108')})[_0x6a3ed0('0xe59')][_0x6a3ed0('0xe19')](function(_0x5bb1c3){_0x216598(_0x5bb1c3);})[_0x6a3ed0('0x223b')](function(_0x33e91c){_0x4be37c(_0x33e91c);});});}function _0x2a6d4a(_0x2d1074){return _0x33c655(function(_0x59e0bf,_0x220315){var _0x3a32fd=a0_0x5325;_0x32d445()[_0x3a32fd('0x14b4')](_0x2d1074)?_0x59e0bf():_0x27fcac[_0x3a32fd('0x19fb')][_0x3a32fd('0x2271')]({'id':_0x54bc92[_0x3a32fd('0x19fb')]['id'],'ids':_0x32d445()[_0x3a32fd('0x65a')](_0x2d1074,'id')})['$promise'][_0x3a32fd('0xe19')](function(){_0x59e0bf();})[_0x3a32fd('0x223b')](function(_0x298a54){_0x220315(_0x298a54);});});}function _0x2e1e8c(_0x34862e){return _0x33c655(function(_0x266861,_0x123f7a){var _0x1fe1fc=a0_0x5325;_0x32d445()[_0x1fe1fc('0x14b4')](_0x34862e)?_0x266861():_0x27fcac[_0x1fe1fc('0x19fb')][_0x1fe1fc('0x6aa')]({'id':_0x54bc92[_0x1fe1fc('0x19fb')]['id'],'ids':_0x32d445()[_0x1fe1fc('0x65a')](_0x34862e,'id')})[_0x1fe1fc('0xe59')]['then'](function(){_0x266861();})[_0x1fe1fc('0x223b')](function(_0x5b9db4){_0x123f7a(_0x5b9db4);});});}function _0xac25af(){var _0x51bb7c=_0x2450ba,_0x30cc28=_0x32d445()['differenceBy'](_0x54bc92[_0x51bb7c('0xf79')],_0x54bc92[_0x51bb7c('0x2273')],'id'),_0x254711=_0x32d445()['differenceBy'](_0x54bc92[_0x51bb7c('0x2273')],_0x54bc92[_0x51bb7c('0xf79')],'id');return _0x2e1e8c(_0x30cc28)['then'](function(){return _0x2a6d4a(_0x254711);})['then'](function(){var _0x2cf0ce=_0x51bb7c;_0x54bc92[_0x2cf0ce('0x16e7')]=![],_0x54bc92[_0x2cf0ce('0x286c')]=angular['copy'](_0x54bc92['allowedItems']),_0x54bc92['startingSelectedItems']=angular[_0x2cf0ce('0x89')](_0x54bc92['selectedItems']),_0x16798e[_0x2cf0ce('0x425')]({'title':_0x2cf0ce('0x1dca'),'msg':_0x2cf0ce('0x25d')});})['catch'](function(_0x46e322){var _0x5c98d0=_0x51bb7c;_0x16798e['error']({'title':_0x46e322[_0x5c98d0('0x2833')]?_0x5c98d0('0x27f2')+_0x46e322[_0x5c98d0('0x2833')]+_0x5c98d0('0x1b7c')+_0x46e322[_0x5c98d0('0x1fd7')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x46e322[_0x5c98d0('0x2833')]?JSON[_0x5c98d0('0x3ad')](_0x46e322['data']):_0x46e322[_0x5c98d0('0x94f')]()});});}function _0x3c2e5c(){var _0xd0bcd3=_0x2450ba;_0x346d61[_0xd0bcd3('0x11ed')]();}}const _0x48d5a9=_0x5e2b35;_0x52f687[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0xffc'),_0xb635d2('0x19fb'),_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x52f687(_0x11273c,_0x25f2fc,_0x573c17,_0x211bfc,_0x43ec20,_0x477011,_0x1bea42,_0x3f4b60){var _0xfde003=_0xb635d2,_0x473f56=this;_0x473f56['currentUser']=_0x1bea42['getCurrentUser'](),_0x473f56[_0xfde003('0x19fb')]=_0x43ec20,_0x473f56[_0xfde003('0xb3d')]=_0x3f4b60,_0x473f56[_0xfde003('0xe4b')]=[],_0x473f56[_0xfde003('0x1884')]=[],_0x473f56[_0xfde003('0x2273')]=[],_0x473f56[_0xfde003('0x286c')]=[],_0x473f56[_0xfde003('0xf79')]=[],_0x473f56[_0xfde003('0x16e7')]=![],_0x473f56['dualMultiselectOptions']={'readOnly':!_0x473f56[_0xfde003('0xb3d')][_0xfde003('0x12bc')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'name','line2':'','line3':'','labelAll':_0x477011[_0xfde003('0x2159')](_0xfde003('0x1b55')),'labelSelected':_0x477011['instant'](_0xfde003('0xad6')),'transferCallback':function _0x2e3fb5(){var _0x2dee5e=_0xfde003,_0x263927=_0x32d445()[_0x2dee5e('0x118')](_0x473f56[_0x2dee5e('0xf79')],_0x473f56[_0x2dee5e('0x2273')],'id');_0x473f56[_0x2dee5e('0x16e7')]=_0x32d445()[_0x2dee5e('0x14b4')](_0x263927)?![]:!![];}},_0x473f56[_0xfde003('0x888')]=_0x558faa,_0x473f56[_0xfde003('0xc30')]=_0x1e1306,_0x473f56[_0xfde003('0x2584')]=_0x5cb783;function _0x558faa(){var _0x6edf7f=_0xfde003;return _0x1bea42[_0x6edf7f('0x179e')](_0x6edf7f('0xd14'))?_0x2bab5c()[_0x6edf7f('0x223b')](function(_0x4c2fcc){var _0xc01ea5=_0x6edf7f;_0x573c17[_0xc01ea5('0x8c8')]({'title':_0x4c2fcc[_0xc01ea5('0x2833')]?_0xc01ea5('0x27f2')+_0x4c2fcc[_0xc01ea5('0x2833')]+_0xc01ea5('0x1b7c')+_0x4c2fcc[_0xc01ea5('0x1fd7')]:_0xc01ea5('0x4a4'),'msg':_0x4c2fcc[_0xc01ea5('0x2833')]?JSON[_0xc01ea5('0x3ad')](_0x4c2fcc[_0xc01ea5('0x11d0')]):_0x4c2fcc[_0xc01ea5('0x94f')]()});}):_0x2f73b9()['then'](function(_0x2916c7){var _0x1f91bb=_0x6edf7f;return _0x473f56[_0x1f91bb('0x1e59')]=_0x2916c7,_0x2bab5c();})[_0x6edf7f('0x223b')](function(_0x5e7227){var _0x160945=_0x6edf7f;_0x573c17[_0x160945('0x8c8')]({'title':_0x5e7227[_0x160945('0x2833')]?_0x160945('0x27f2')+_0x5e7227['status']+_0x160945('0x1b7c')+_0x5e7227[_0x160945('0x1fd7')]:_0x160945('0x4a4'),'msg':_0x5e7227[_0x160945('0x2833')]?JSON[_0x160945('0x3ad')](_0x5e7227[_0x160945('0x11d0')]):_0x5e7227[_0x160945('0x94f')]()});});}function _0x2f73b9(){return _0x25f2fc(function(_0x367a92,_0x144ee){var _0x5cf8a2=a0_0x5325;_0x211bfc[_0x5cf8a2('0xb59')][_0x5cf8a2('0x22d5')]({'userProfileId':_0x473f56[_0x5cf8a2('0x15a5')][_0x5cf8a2('0x1d04')],'name':_0x5cf8a2('0x1d54')})[_0x5cf8a2('0xe59')]['then'](function(_0x53343c){var _0x13fba6=_0x5cf8a2,_0x562b9e=_0x53343c&&_0x53343c[_0x13fba6('0x16a7')]?_0x53343c[_0x13fba6('0x16a7')][0x0]:null;_0x367a92(_0x562b9e);})[_0x5cf8a2('0x223b')](function(_0x9a3bf6){_0x144ee(_0x9a3bf6);});});}function _0x2bab5c(){return _0x25f2fc(function(_0x2bcba6,_0x179611){var _0x43cb4b=a0_0x5325;return _0x290aad()['then'](function(_0x5aff8e){var _0x34b7a3=a0_0x5325;return _0x473f56[_0x34b7a3('0xe4b')]=_0x5aff8e[_0x34b7a3('0x16a7')]?_0x5aff8e['rows']:[],_0x1bea42['hasRole'](_0x34b7a3('0xd14'))?_0x5aff8e:_0x473f56[_0x34b7a3('0x1e59')]?_0x473f56[_0x34b7a3('0x1e59')][_0x34b7a3('0x11fd')]?_0x5aff8e:_0x36a5e0():null;})[_0x43cb4b('0xe19')](function(_0x468c2f){var _0x4b6ab9=_0x43cb4b,_0x50be9e=_0x468c2f&&_0x468c2f[_0x4b6ab9('0x16a7')]?_0x468c2f[_0x4b6ab9('0x16a7')]:[];return _0x473f56[_0x4b6ab9('0x1884')]=_0x32d445()['map'](_0x50be9e,function(_0x1e58ab){var _0x13b4fe=_0x4b6ab9;return _0x32d445()[_0x13b4fe('0xf15')](_0x473f56[_0x13b4fe('0xe4b')],{'id':_0x1bea42[_0x13b4fe('0x179e')](_0x13b4fe('0xd14'))||_0x473f56[_0x13b4fe('0x1e59')][_0x13b4fe('0x11fd')]?_0x1e58ab['id']:_0x1e58ab['resourceId']});}),_0x473f56['items'][_0x4b6ab9('0x1d7e')](function(_0x283dce){var _0x29434b=_0x4b6ab9,_0x39dce5=_0x32d445()[_0x29434b('0xf15')](_0x473f56[_0x29434b('0x1884')],{'id':_0x283dce['id']});_0x1bea42[_0x29434b('0x179e')](_0x29434b('0xd14'))?_0x283dce[_0x29434b('0x1768')]=!![]:_0x283dce[_0x29434b('0x1768')]=typeof _0x39dce5!=='undefined'?!![]:![];}),_0x2e4092();})[_0x43cb4b('0xe19')](function(_0x3fb09a){var _0x431648=_0x43cb4b,_0x56a574=_0x3fb09a&&_0x3fb09a[_0x431648('0x16a7')]?_0x3fb09a[_0x431648('0x16a7')]:[];_0x473f56['selectedItems']=_0x32d445()[_0x431648('0x65a')](_0x56a574,function(_0x4b042e){var _0x49846d=_0x431648;return _0x32d445()[_0x49846d('0xf15')](_0x473f56['items'],{'id':_0x4b042e['id']});}),_0x473f56[_0x431648('0xf79')]=angular[_0x431648('0x89')](_0x473f56[_0x431648('0x2273')]),_0x473f56['dualMultiselectOptions'][_0x431648('0x2273')]=_0x473f56[_0x431648('0x2273')],_0x473f56[_0x431648('0xc00')]['items']=_0x32d445()['differenceBy'](_0x473f56[_0x431648('0x1884')],_0x473f56[_0x431648('0xc00')][_0x431648('0x2273')],'id'),_0x2bcba6();})['catch'](function(_0x16fc54){_0x179611(_0x16fc54);});});}function _0x36a5e0(){return _0x25f2fc(function(_0xec477c,_0x58b783){var _0x20815e=a0_0x5325;return _0x211bfc[_0x20815e('0xd49')][_0x20815e('0x22d5')]({'sectionId':_0x473f56[_0x20815e('0x1e59')]['id'],'nolimit':!![]})[_0x20815e('0xe59')][_0x20815e('0xe19')](function(_0x57840a){_0xec477c(_0x57840a);})[_0x20815e('0x223b')](function(_0xda10f9){_0x58b783(_0xda10f9);});});}function _0x2e4092(){return _0x25f2fc(function(_0x33e2f3,_0x594cc4){var _0x20e49c=a0_0x5325;return _0x211bfc[_0x20e49c('0x19fb')][_0x20e49c('0x106a')]({'id':_0x473f56[_0x20e49c('0x19fb')]['id'],'fields':_0x20e49c('0x104'),'nolimit':!![]})[_0x20e49c('0xe59')][_0x20e49c('0xe19')](function(_0x96e4c){_0x33e2f3(_0x96e4c);})[_0x20e49c('0x223b')](function(_0x4bdf46){_0x594cc4(_0x4bdf46);});});}function _0x290aad(){return _0x25f2fc(function(_0x5cb8f1,_0x4b20a8){var _0x5ceb89=a0_0x5325;return _0x211bfc['team'][_0x5ceb89('0x22d5')]({'fields':'id,name','nolimit':!![]})[_0x5ceb89('0xe59')][_0x5ceb89('0xe19')](function(_0x4c0f90){_0x5cb8f1(_0x4c0f90);})['catch'](function(_0x1c572a){_0x4b20a8(_0x1c572a);});});}function _0xd86a1b(_0x2e04cf){return _0x25f2fc(function(_0x5da9e7,_0x404e42){var _0x4316a5=a0_0x5325;_0x32d445()[_0x4316a5('0x14b4')](_0x2e04cf)?_0x5da9e7():_0x211bfc[_0x4316a5('0x19fb')][_0x4316a5('0x37f')]({'id':_0x473f56[_0x4316a5('0x19fb')]['id'],'ids':_0x32d445()[_0x4316a5('0x65a')](_0x2e04cf,'id')})[_0x4316a5('0xe59')]['then'](function(){_0x5da9e7();})[_0x4316a5('0x223b')](function(_0x1c1ace){_0x404e42(_0x1c1ace);});});}function _0x3b32a4(_0x5aec47){return _0x25f2fc(function(_0x385fb1,_0xcfc463){var _0x2c56df=a0_0x5325;_0x32d445()[_0x2c56df('0x14b4')](_0x5aec47)?_0x385fb1():_0x211bfc[_0x2c56df('0x19fb')][_0x2c56df('0x151a')]({'id':_0x473f56[_0x2c56df('0x19fb')]['id'],'ids':_0x32d445()['map'](_0x5aec47,'id')})[_0x2c56df('0xe59')][_0x2c56df('0xe19')](function(){_0x385fb1();})[_0x2c56df('0x223b')](function(_0x186eb0){_0xcfc463(_0x186eb0);});});}function _0x1e1306(){var _0x4c993a=_0xfde003,_0x34f907=_0x32d445()[_0x4c993a('0x501')](_0x473f56[_0x4c993a('0xf79')],_0x473f56[_0x4c993a('0x2273')],'id'),_0x528c73=_0x32d445()[_0x4c993a('0x501')](_0x473f56[_0x4c993a('0x2273')],_0x473f56['startingSelectedItems'],'id');return _0x3b32a4(_0x34f907)[_0x4c993a('0xe19')](function(){return _0xd86a1b(_0x528c73);})['then'](function(){var _0x58f421=_0x4c993a;_0x473f56[_0x58f421('0x16e7')]=![],_0x473f56[_0x58f421('0x286c')]=angular[_0x58f421('0x89')](_0x473f56[_0x58f421('0x1884')]),_0x473f56[_0x58f421('0xf79')]=angular['copy'](_0x473f56[_0x58f421('0x2273')]),_0x573c17[_0x58f421('0x425')]({'title':_0x58f421('0x1dca'),'msg':_0x58f421('0x22e1')});})['catch'](function(_0x4d599c){var _0x59032c=_0x4c993a;_0x573c17['error']({'title':_0x4d599c[_0x59032c('0x2833')]?_0x59032c('0x27f2')+_0x4d599c['status']+_0x59032c('0x1b7c')+_0x4d599c[_0x59032c('0x1fd7')]:_0x59032c('0x2168'),'msg':_0x4d599c[_0x59032c('0x2833')]?JSON[_0x59032c('0x3ad')](_0x4d599c[_0x59032c('0x11d0')]):_0x4d599c[_0x59032c('0x94f')]()});});}function _0x5cb783(){var _0x170833=_0xfde003;_0x11273c[_0x170833('0x11ed')]();}}const _0x3a73a6=_0x52f687,_0xdecf02=_0x59426a['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html';_0x1c9ced['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$translate',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x19fb'),'userProfileSection'];function _0x1c9ced(_0x4e2884,_0x199ff0,_0x276866,_0x151248,_0xfa9a21,_0x1e2ad2,_0x4f1170,_0x38b42f,_0x336984,_0x21e917,_0x17068e,_0x40f79a){var _0x1fd7d8=_0xb635d2,_0x45e907=this;_0x45e907[_0x1fd7d8('0x15a5')]=_0x21e917[_0x1fd7d8('0x1ef8')](),_0x45e907['license']=_0x1e2ad2,_0x45e907[_0x1fd7d8('0x22f1')]=_0x4f1170,_0x45e907[_0x1fd7d8('0x25ac')]=_0x45e907[_0x1fd7d8('0x22f1')][_0x1fd7d8('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45e907['location']=_0x199ff0[_0x1fd7d8('0xec0')]()+_0x1fd7d8('0x21a8')+_0x199ff0['host'](),_0x45e907[_0x1fd7d8('0x19fb')]=_0x17068e||_0x4e2884[_0x1fd7d8('0x2ef')][_0x1fd7d8('0x19fb')]||{},_0x45e907[_0x1fd7d8('0xb59')]=_0x40f79a&&_0x40f79a[_0x1fd7d8('0x148b')]==0x1?_0x40f79a[_0x1fd7d8('0x16a7')][0x0]:null,_0x45e907[_0x1fd7d8('0xb3d')]=_0x21e917['parseCrudPermissions'](_0x45e907[_0x1fd7d8('0xb59')]?_0x45e907[_0x1fd7d8('0xb59')][_0x1fd7d8('0xb3d')]:null),_0x45e907['hasModulePermissions']={},_0x45e907[_0x1fd7d8('0xc7b')]=_0x4e2884[_0x1fd7d8('0x2ef')][_0x1fd7d8('0x435')]||0x0,_0x45e907[_0x1fd7d8('0x23f1')]=_0x2ba746,_0x45e907[_0x1fd7d8('0x1407')]=_0x214688,_0x45e907[_0x1fd7d8('0xbdc')]=_0x336984[_0x1fd7d8('0x1e67')],_0x45e907[_0x1fd7d8('0x167c')]=_0x219234,_0x45e907[_0x1fd7d8('0xf67')]=_0x28de3e;function _0x2ba746(_0x3be7fe,_0x554ea3){var _0x13127b=_0x1fd7d8;_0x276866[_0x13127b('0x26b2')]({'controller':_0x13127b('0x16b'),'controllerAs':'vm','templateUrl':_0xdecf02,'parent':angular[_0x13127b('0x24a1')](_0x151248['body']),'targetEvent':_0x554ea3,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x3be7fe,'smsQueues':_0x45e907[_0x13127b('0x2336')]?_0x45e907[_0x13127b('0x2336')][_0x13127b('0x16a7')]:[],'crudPermissions':_0x45e907['crudPermissions']}});}function _0x214688(_0x17a6fd,_0x1eaac5){var _0x5d3ef6=_0x1fd7d8;_0x276866[_0x5d3ef6('0x26b2')]({'controller':_0x5d3ef6('0x1c76'),'controllerAs':'vm','templateUrl':_0x22f1cc,'parent':angular['element'](_0x151248[_0x5d3ef6('0x19b2')]),'targetEvent':_0x1eaac5,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x17a6fd,'smsQueues':_0x45e907[_0x5d3ef6('0x2336')]?_0x45e907[_0x5d3ef6('0x2336')]['rows']:[],'crudPermissions':_0x45e907[_0x5d3ef6('0xb3d')],'realtime':![]}});}function _0x219234(){var _0x35d0d6=_0x1fd7d8;_0x4e2884['go'](_0x35d0d6('0x17e8'),{},{'reload':_0x35d0d6('0x17e8')});}function _0x28de3e(){var _0x32a42c=_0x1fd7d8;_0x38b42f[_0x32a42c('0x19fb')]['update']({'id':_0x45e907[_0x32a42c('0x19fb')]['id']},_0x45e907[_0x32a42c('0x19fb')])[_0x32a42c('0xe59')][_0x32a42c('0xe19')](function(){var _0x2af6e6=_0x32a42c;_0x336984[_0x2af6e6('0x425')]({'title':_0x2af6e6('0x134b'),'msg':_0x45e907['smsQueue'][_0x2af6e6('0x2623')]?_0x45e907['smsQueue'][_0x2af6e6('0x2623')]+_0x2af6e6('0x283b'):''});})[_0x32a42c('0x223b')](function(_0x22d977){var _0x196568=_0x32a42c;_0x336984[_0x196568('0x8c8')]({'title':_0x22d977[_0x196568('0x2833')]?'API:'+_0x22d977['status']+_0x196568('0x1b7c')+_0x22d977['statusText']:_0x196568('0x1ab4'),'msg':_0x22d977[_0x196568('0x11d0')]?JSON['stringify'](_0x22d977[_0x196568('0x11d0')]):_0x22d977[_0x196568('0x94f')]()});});}}const _0x15a4f2=_0x1c9ced;_0x413ba2[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0x2336'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x413ba2(_0x12f2fb,_0x325d53,_0x5dd888,_0x1b6e07,_0x5cb6d3,_0x3b0c76,_0x1e213a,_0x2c1955,_0x241f13,_0x3f713e,_0x58671c,_0x262cfc,_0x270b1a,_0xe92123,_0x1cc204,_0x3eeb35,_0x54af11){var _0x5d26eb=_0xb635d2,_0xde6883=this;_0xde6883[_0x5d26eb('0x5c1')]=_0x3eeb35,_0xde6883[_0x5d26eb('0x22f1')]=_0x54af11,_0xde6883['currentUser']=_0x1cc204[_0x5d26eb('0x1ef8')](),_0xde6883['smsQueues']=_0x241f13||{'count':0x0,'rows':[]},_0xde6883['userProfile']=_0x3f713e,_0xde6883[_0x5d26eb('0xb59')]=_0x58671c&&_0x58671c[_0x5d26eb('0x148b')]==0x1?_0x58671c[_0x5d26eb('0x16a7')][0x0]:null,_0xde6883[_0x5d26eb('0xb3d')]=_0x1cc204['parseCrudPermissions'](_0xde6883[_0x5d26eb('0xb59')]?_0xde6883[_0x5d26eb('0xb59')]['crudPermissions']:null),_0xde6883[_0x5d26eb('0x19b6')]=_0x5d26eb('0x2336'),_0xde6883[_0x5d26eb('0x14d6')]='',_0xde6883['listOrderAsc']=null,_0xde6883[_0x5d26eb('0x1b09')]=[],_0xde6883['query']={'fields':_0x5d26eb('0x1bd'),'sort':'-updatedAt','channel':_0x5d26eb('0x2801'),'limit':0xa,'page':0x1},_0xde6883[_0x5d26eb('0xa67')]=_0x32d445()[_0x5d26eb('0x226f')]([{'option':_0x5d26eb('0x26e4'),'value':_0x5d26eb('0x2460')},{'option':_0x5d26eb('0x442'),'value':'\x27rrmemory\x27'}],function(_0x3c19ff){var _0x8e6a1d=_0x5d26eb;return _0x32d445()[_0x8e6a1d('0x1b42')](_0x3c19ff['value'],new RegExp('\x27','g'),'');}),_0xde6883[_0x5d26eb('0x16a0')]=_0x58a105,_0xde6883['teamadddialog']=_0x21e338,_0xde6883['agentadddialog']=_0x2e62da,_0xde6883['deleteconfirm']=_0x2b427f,_0xde6883[_0x5d26eb('0x20e3')]=_0x510273,_0xde6883[_0x5d26eb('0x425')]=_0x15572b,_0xde6883[_0x5d26eb('0x1bad')]=_0x20dc63,_0xde6883[_0x5d26eb('0x9c')]=_0x512c13,_0xde6883['deleteSmsQueue']=_0x499517,_0xde6883[_0x5d26eb('0xf5c')]=_0x1bda8b,_0xde6883[_0x5d26eb('0x507')]=_0x4fb3c1,_0xde6883[_0x5d26eb('0x2611')]=_0x1b4055,_0xde6883[_0x5d26eb('0x130a')]=_0x2afcf7;function _0x58a105(_0x31a527){var _0x2452ee=_0x5d26eb;_0x5dd888['go']('app.sms.smsQueues.edit',{'id':_0x31a527['id'],'smsQueue':_0x31a527,'crudPermissions':_0xde6883[_0x2452ee('0xb3d')]});}function _0x21e338(_0x3bb703,_0x44a766){var _0x59d532=_0x5d26eb;_0x5cb6d3['show']({'controller':_0x59d532('0x16b'),'controllerAs':'vm','templateUrl':_0xdecf02,'parent':angular[_0x59d532('0x24a1')](_0x3b0c76['body']),'targetEvent':_0x44a766,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x3bb703,'smsQueues':_0xde6883[_0x59d532('0x2336')]?_0xde6883[_0x59d532('0x2336')][_0x59d532('0x16a7')]:[],'crudPermissions':_0xde6883[_0x59d532('0xb3d')]}});}function _0x2e62da(_0x56de1e,_0x4cc851){var _0x1e64fe=_0x5d26eb;_0x5cb6d3[_0x1e64fe('0x26b2')]({'controller':_0x1e64fe('0x1c76'),'controllerAs':'vm','templateUrl':_0x22f1cc,'parent':angular[_0x1e64fe('0x24a1')](_0x3b0c76[_0x1e64fe('0x19b2')]),'targetEvent':_0x4cc851,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x56de1e,'smsQueues':_0xde6883['smsQueues']?_0xde6883['smsQueues'][_0x1e64fe('0x16a7')]:[],'crudPermissions':_0xde6883['crudPermissions'],'realtime':![]}});}function _0x2b427f(_0x14c4b3,_0xdefe7f){var _0x5f0f91=_0x5d26eb,_0x161467=_0x5cb6d3[_0x5f0f91('0xa5')]()[_0x5f0f91('0x13e4')](_0x5f0f91('0x346')+_0x32d445()[_0x5f0f91('0x1df2')](_0x5f0f91('0x19fb'))+'?')[_0x5f0f91('0x221c')](_0x5f0f91('0xab2')+(_0x14c4b3['name']||'smsQueue')+_0x5f0f91('0x27bb')+'\x20will\x20be\x20deleted.')[_0x5f0f91('0x4d1')](_0x5f0f91('0x1d18'))[_0x5f0f91('0x1345')](_0xdefe7f)['ok']('OK')['cancel']('CANCEL');_0x5cb6d3[_0x5f0f91('0x26b2')](_0x161467)['then'](function(){_0x499517(_0x14c4b3);},function(){var _0x310e0c=_0x5f0f91;console[_0x310e0c('0x1fe9')](_0x310e0c('0x17'));});}function _0x510273(){var _0x474224=_0x5d26eb;if(_0x1cc204[_0x474224('0x179e')](_0x474224('0xd14')))_0x5dd888['go'](_0x474224('0x6c2'),{});else return _0x262cfc['userProfileSection']['get']({'userProfileId':_0x1cc204['getCurrentUser']()[_0x474224('0x1d04')],'sectionId':0x2c6})[_0x474224('0xe59')]['then'](function(_0x11a1c0){var _0x1258cb=_0x474224,_0x116cae=_0x11a1c0&&_0x11a1c0[_0x1258cb('0x16a7')]?_0x11a1c0[_0x1258cb('0x16a7')][0x0]:null;_0x116cae&&_0x116cae[_0x1258cb('0x4ef')]?_0x5dd888['go'](_0x1258cb('0x6c2'),{}):_0xe92123[_0x1258cb('0x1e67')]({'title':_0x2c1955[_0x1258cb('0x2159')](_0x1258cb('0x2786')),'msg':_0x2c1955[_0x1258cb('0x2159')](_0x1258cb('0x4bb'))});})[_0x474224('0x223b')](function(_0x30a7b7){var _0x1ad851=_0x474224;_0xe92123[_0x1ad851('0x8c8')]({'title':_0x30a7b7[_0x1ad851('0x2833')]?_0x1ad851('0x27f2')+_0x30a7b7[_0x1ad851('0x2833')]+_0x1ad851('0x1b7c')+_0x30a7b7['statusText']:_0x1ad851('0x343'),'msg':_0x30a7b7['status']?JSON[_0x1ad851('0x3ad')](_0x30a7b7['data']):_0x30a7b7[_0x1ad851('0x94f')]()});});}var _0x4e0f85=!![],_0x16bb83=0x1;_0x12f2fb[_0x5d26eb('0x107')](_0x5d26eb('0x20cb'),function(_0x52a359,_0x21b2b4){var _0x60ec09=_0x5d26eb;_0x4e0f85?_0x1e213a(function(){_0x4e0f85=![];}):(!_0x21b2b4&&(_0x16bb83=_0xde6883['query'][_0x60ec09('0xc08')]),_0x52a359!==_0x21b2b4&&(_0xde6883[_0x60ec09('0xa16')][_0x60ec09('0xc08')]=0x1),!_0x52a359&&(_0xde6883[_0x60ec09('0xa16')][_0x60ec09('0xc08')]=_0x16bb83),_0xde6883['getSmsQueues']());});function _0x15572b(_0x551580){_0xde6883['smsQueues']=_0x551580||{'count':0x0,'rows':[]};}function _0x20dc63(){var _0x12146c=_0x5d26eb;_0xde6883[_0x12146c('0xa16')][_0x12146c('0xab0')]=(_0xde6883[_0x12146c('0xa16')][_0x12146c('0xc08')]-0x1)*_0xde6883[_0x12146c('0xa16')][_0x12146c('0x1b6d')],_0x1cc204[_0x12146c('0x179e')]('admin')?_0xde6883['promise']=_0x262cfc[_0x12146c('0x19fb')]['get'](_0xde6883[_0x12146c('0xa16')],_0x15572b)['$promise']:(_0xde6883[_0x12146c('0xa16')]['id']=_0xde6883['userProfile']['id'],_0xde6883[_0x12146c('0xa16')][_0x12146c('0x1e59')]=_0x12146c('0x1f11'),_0xde6883[_0x12146c('0x9c8')]=_0x262cfc[_0x12146c('0x154f')]['getResources'](_0xde6883[_0x12146c('0xa16')],_0x15572b)[_0x12146c('0xe59')]);}function _0x512c13(_0x3fa251,_0x836cc2){var _0x25760e=_0x5d26eb;_0x5cb6d3[_0x25760e('0x26b2')]({'controller':_0x25760e('0x160e'),'controllerAs':'vm','templateUrl':_0x568c9d,'parent':angular[_0x25760e('0x24a1')](_0x3b0c76['body']),'targetEvent':_0x3fa251,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x836cc2,'smsQueues':_0xde6883[_0x25760e('0x2336')][_0x25760e('0x16a7')],'license':_0xde6883['license'],'setting':_0xde6883[_0x25760e('0x22f1')],'crudPermissions':_0xde6883[_0x25760e('0xb3d')]}});}function _0x499517(_0x92f9b8){var _0x1224eb=_0x5d26eb;_0x262cfc[_0x1224eb('0x19fb')][_0x1224eb('0x229e')]({'id':_0x92f9b8['id']})['$promise'][_0x1224eb('0xe19')](function(){var _0x42aad3=_0x1224eb;_0x32d445()[_0x42aad3('0xa8b')](_0xde6883[_0x42aad3('0x2336')]['rows'],{'id':_0x92f9b8['id']}),_0xde6883[_0x42aad3('0x2336')][_0x42aad3('0x148b')]-=0x1,!_0xde6883[_0x42aad3('0x2336')]['rows'][_0x42aad3('0x25ae')]&&_0xde6883['getSmsQueues'](),_0xe92123[_0x42aad3('0x425')]({'title':_0x32d445()[_0x42aad3('0x1df2')](_0x42aad3('0x2065'))+_0x42aad3('0x1219'),'msg':_0x92f9b8[_0x42aad3('0x2623')]?_0x92f9b8[_0x42aad3('0x2623')]+_0x42aad3('0x2182'):''});})[_0x1224eb('0x223b')](function(_0x265d9c){var _0x213b60=_0x1224eb;if(_0x265d9c[_0x213b60('0x11d0')]&&_0x265d9c[_0x213b60('0x11d0')][_0x213b60('0xcd2')]&&_0x265d9c[_0x213b60('0x11d0')][_0x213b60('0xcd2')]['length']){_0xde6883['errors']=_0x265d9c[_0x213b60('0x11d0')]['errors']||[{'message':_0x265d9c['toString'](),'type':_0x213b60('0x2487')}];for(var _0x1823fe=0x0;_0x1823fe<_0x265d9c['data']['errors'][_0x213b60('0x25ae')];_0x1823fe++){_0xe92123[_0x213b60('0x8c8')]({'title':_0x265d9c['data'][_0x213b60('0xcd2')][_0x1823fe]['type'],'msg':_0x265d9c[_0x213b60('0x11d0')][_0x213b60('0xcd2')][_0x1823fe][_0x213b60('0x27e8')]});}}else _0xe92123[_0x213b60('0x8c8')]({'title':_0x265d9c[_0x213b60('0x2833')]?_0x213b60('0x27f2')+_0x265d9c[_0x213b60('0x2833')]+_0x213b60('0x1b7c')+_0x265d9c[_0x213b60('0x1fd7')]:'SYSTEM:DELETEsmsQueue','msg':_0x265d9c[_0x213b60('0x11d0')]?JSON['stringify'](_0x265d9c[_0x213b60('0x11d0')][_0x213b60('0x27e8')]):_0x265d9c['message']||_0x265d9c[_0x213b60('0x94f')]()});});}function _0x1bda8b(){var _0x128b68=_0x5d26eb,_0x433ff6=angular[_0x128b68('0x89')](_0xde6883['selectedSmsQueues']);return _0xde6883['selectedSmsQueues']=[],_0x433ff6;}function _0x4fb3c1(_0x54b979){var _0x41b167=_0x5d26eb,_0x414e4e=_0x5cb6d3[_0x41b167('0xa5')]()[_0x41b167('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?')[_0x41b167('0x221c')](_0x41b167('0xab2')+_0xde6883[_0x41b167('0x1b09')][_0x41b167('0x25ae')]+'\x20selected'+_0x41b167('0x21bd'))[_0x41b167('0x4d1')](_0x41b167('0x57a'))[_0x41b167('0x1345')](_0x54b979)['ok']('OK')['cancel'](_0x41b167('0x17'));_0x5cb6d3[_0x41b167('0x26b2')](_0x414e4e)[_0x41b167('0xe19')](function(){var _0x4ddd45=_0x41b167;_0xde6883[_0x4ddd45('0x1b09')][_0x4ddd45('0x1d7e')](function(_0x3b3d6){_0x499517(_0x3b3d6);}),_0xde6883['selectedSmsQueues']=[];});}function _0x1b4055(){var _0x1ddc03=_0x5d26eb;_0xde6883[_0x1ddc03('0x1b09')]=[];}function _0x2afcf7(){var _0x2b7671=_0x5d26eb;_0xde6883[_0x2b7671('0x1b09')]=_0xde6883[_0x2b7671('0x2336')][_0x2b7671('0x16a7')];}}const _0x39a4a2=_0x413ba2;_0x5f2859['$inject']=['$stateProvider',_0xb635d2('0x2104')];function _0x5f2859(_0x3bdf8f,_0x3cc134){var _0x35d365=_0xb635d2;_0x3bdf8f[_0x35d365('0x1d72')](_0x35d365('0x1aa1'),{'abstract':!![],'url':_0x35d365('0x1a05')})[_0x35d365('0x1d72')](_0x35d365('0x17e8'),{'url':_0x35d365('0x22ef'),'views':{'content@app':{'templateUrl':_0x53abf3,'controller':'SmsQueuesController\x20as\x20vm'}},'resolve':{'smsQueues':[_0x35d365('0x292'),'Auth',function _0x44b62f(_0x1bdfeb,_0x15d6b1){var _0x4a1a76=_0x35d365;return _0x15d6b1['hasRole'](_0x4a1a76('0xd14'))?_0x1bdfeb[_0x4a1a76('0xcd6')](_0x4a1a76('0x1376'),{'fields':_0x4a1a76('0x1bd'),'sort':_0x4a1a76('0x7e8'),'channel':_0x4a1a76('0x2801'),'limit':0xa,'offset':0x0}):_0x1bdfeb[_0x4a1a76('0xcd6')](_0x4a1a76('0x197d'),{'id':_0x15d6b1[_0x4a1a76('0x1ef8')]()['userProfileId'],'section':_0x4a1a76('0x1f11'),'fields':_0x4a1a76('0x1bd'),'sort':'-updatedAt','channel':_0x4a1a76('0x2801'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x35d365('0x292'),_0x35d365('0x2730'),function _0x3f812c(_0x308f9f,_0x3775a0){var _0x5c72c5=_0x35d365;return _0x3775a0[_0x5c72c5('0x179e')](_0x5c72c5('0xd14'))?null:_0x308f9f['resolve'](_0x5c72c5('0x455'),{'fields':'id,name,crudPermissions','id':_0x3775a0[_0x5c72c5('0x1ef8')]()[_0x5c72c5('0x1d04')]});}],'userProfileSection':[_0x35d365('0x292'),_0x35d365('0x2730'),function _0x4835cc(_0x4fb270,_0x227503){var _0x333743=_0x35d365;return _0x227503[_0x333743('0x179e')](_0x333743('0xd14'))?null:_0x4fb270['resolve']('userProfileSection@get',{'fields':_0x333743('0x12d6'),'userProfileId':_0x227503[_0x333743('0x1ef8')]()[_0x333743('0x1d04')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':'sms'})[_0x35d365('0x1d72')](_0x35d365('0x2002'),{'url':_0x35d365('0xb1d'),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5ae2a2,'controller':'SmsQueueController\x20as\x20vm'}},'resolve':{'smsQueue':['apiResolver','$stateParams',function _0x1629f1(_0x1e09c6,_0x880803){var _0x4c8798=_0x35d365;return _0x1e09c6[_0x4c8798('0xcd6')](_0x4c8798('0x1376'),{'fields':_0x4c8798('0x1bd'),'id':_0x880803['id']});}],'userProfileSection':[_0x35d365('0x292'),'Auth',function _0x1f718e(_0x2cfe5d,_0x52ebfc){var _0xf14f42=_0x35d365;return _0x2cfe5d[_0xf14f42('0xcd6')](_0xf14f42('0x264e'),{'fields':_0xf14f42('0x12d6'),'userProfileId':_0x52ebfc['getCurrentUser']()['userProfileId'],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x35d365('0x2801')})['state'](_0x35d365('0x1dea'),{'url':_0x35d365('0x211d'),'views':{'content@app':{'templateUrl':_0xc73107,'controller':_0x35d365('0x2878')}},'resolve':{'smsAccounts':[_0x35d365('0x292'),_0x35d365('0x2730'),function _0x4466c3(_0x31416b,_0x17b3a6){var _0x2331cc=_0x35d365;return _0x17b3a6['hasRole']('admin')?_0x31416b[_0x2331cc('0xcd6')](_0x2331cc('0x1739'),{'fields':_0x2331cc('0x228a'),'sort':_0x2331cc('0x7e8'),'limit':0xa,'offset':0x0}):_0x31416b[_0x2331cc('0xcd6')](_0x2331cc('0x197d'),{'id':_0x17b3a6['getCurrentUser']()[_0x2331cc('0x1d04')],'section':_0x2331cc('0x20a4'),'fields':_0x2331cc('0x228a'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x35d365('0x2730'),function _0x585307(_0x291e58,_0x35d087){var _0x3c989c=_0x35d365;return _0x35d087[_0x3c989c('0x179e')](_0x3c989c('0xd14'))?null:_0x291e58[_0x3c989c('0xcd6')](_0x3c989c('0x455'),{'fields':'id,name,crudPermissions','id':_0x35d087[_0x3c989c('0x1ef8')]()[_0x3c989c('0x1d04')]});}],'userProfileSection':['apiResolver',_0x35d365('0x2730'),function _0x477943(_0xd2d674,_0xfa894e){var _0x4456bd=_0x35d365;return _0xfa894e[_0x4456bd('0x179e')](_0x4456bd('0xd14'))?null:_0xd2d674['resolve'](_0x4456bd('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xfa894e[_0x4456bd('0x1ef8')]()[_0x4456bd('0x1d04')],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x35d365('0x2801')})['state'](_0x35d365('0x10c7'),{'url':_0x35d365('0xb1d'),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x7af933,'controller':_0x35d365('0x167a')}},'resolve':{'smsAccount':[_0x35d365('0x292'),_0x35d365('0x34'),function _0x1ad801(_0x36c707,_0x52563a){var _0x12adb3=_0x35d365;return _0x36c707[_0x12adb3('0xcd6')](_0x12adb3('0x1739'),{'fields':_0x12adb3('0x228a'),'id':_0x52563a['id']});}],'userProfileSection':['apiResolver',_0x35d365('0x2730'),function _0x22b9d4(_0x456221,_0x99795e){var _0x2328a7=_0x35d365;return _0x456221['resolve'](_0x2328a7('0x264e'),{'fields':_0x2328a7('0x12d6'),'userProfileId':_0x99795e['getCurrentUser']()['userProfileId'],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x35d365('0x2801')}),_0x3cc134[_0x35d365('0xfe3')](_0x35d365('0x1fce'));}angular[_0xb635d2('0x153f')](_0xb635d2('0x1aa1'),[_0xb635d2('0x569'),'ngPassword','md.data.table',_0xb635d2('0x206b'),'mdColorPicker',_0xb635d2('0x1727'),_0xb635d2('0x1951'),_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),'ngEmbed',_0xb635d2('0x17b0'),_0xb635d2('0x191c'),'chart.js','angular.filter','app.sms.realtime'])['config'](_0x5f2859)['controller']('CreateOrEditSmsAccountDialogController',_0x3151ac)[_0xb635d2('0x1a79')]('SmsAccountActionsController',_0x88339a)[_0xb635d2('0x1a79')](_0xb635d2('0x9f'),_0x2dcfa9)[_0xb635d2('0x1a79')]('EditSmsAccountAppagentDialogController',_0x475c77)[_0xb635d2('0x1a79')](_0xb635d2('0x1e1d'),_0x4259a4)['controller'](_0xb635d2('0x1863'),_0x33a052)[_0xb635d2('0x1a79')](_0xb635d2('0xbb5'),_0x13cc7f)[_0xb635d2('0x1a79')](_0xb635d2('0x1d58'),_0x55d9b3)['controller'](_0xb635d2('0x2705'),_0x9d0d64)[_0xb635d2('0x1a79')](_0xb635d2('0x1561'),_0x48a3e2)[_0xb635d2('0x1a79')](_0xb635d2('0x2440'),_0x449e1f)[_0xb635d2('0x1a79')](_0xb635d2('0xd90'),_0x23a46f)[_0xb635d2('0x1a79')](_0xb635d2('0x1898'),_0x5816d7)['controller'](_0xb635d2('0x5ea'),_0x1774c9)['controller']('EditSmsAccountApptagDialogController',_0x238b87)[_0xb635d2('0x1a79')](_0xb635d2('0x1e1b'),_0x43d750)['controller'](_0xb635d2('0x210d'),_0x364785)[_0xb635d2('0x1a79')]('CreateOrEditSmsCannedAnswerDialogController',_0x4bf9a0)['controller'](_0xb635d2('0x1ba1'),_0xdfbf60)[_0xb635d2('0x1a79')](_0xb635d2('0x2877'),_0x42a18f)[_0xb635d2('0x1a79')](_0xb635d2('0xddb'),_0x36915a)['controller'](_0xb635d2('0x160e'),_0x55881d)['controller'](_0xb635d2('0x1c76'),_0x48d5a9)[_0xb635d2('0x1a79')](_0xb635d2('0x16b'),_0x3a73a6)[_0xb635d2('0x1a79')](_0xb635d2('0x916'),_0x15a4f2)[_0xb635d2('0x1a79')](_0xb635d2('0x1d5a'),_0x39a4a2);const _0x5604a5=_0x59426a['p']+_0xb635d2('0x1305'),_0x5b3451=_0x59426a['p']+'src/js/modules/main/apps/openchannel/views/realtime/agents/view.html/view-[chunkhash].html',_0x29e457=_0x59426a['p']+_0xb635d2('0x1f0d');_0x2142b5[_0xb635d2('0xb0c')]=['$scope','$q',_0xb635d2('0x1a0b'),'$mdDialog','$document',_0xb635d2('0xfe0'),_0xb635d2('0x145e'),_0xb635d2('0x29b'),_0xb635d2('0x7'),_0xb635d2('0xffc'),'socket',_0xb635d2('0xf65'),_0xb635d2('0x20d'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x1c1a')];function _0x2142b5(_0x11866a,_0x174279,_0x14fee7,_0xede56e,_0x22ab38,_0x3c7f01,_0x25e52f,_0x333d65,_0xb85c6,_0x4122c7,_0x109a89,_0xca2f9c,_0x52255d,_0x53c3f6,_0x55b8aa,_0x359195,_0x3dcff3,_0x2f5d83){var _0x3eaac9=_0xb635d2,_0x31a4dc=this,_0x584843=[_0x3eaac9('0x8b3'),_0x3eaac9('0xb46'),'lastLoginAt',_0x3eaac9('0x823'),'pauseType',_0x3eaac9('0x823'),_0x3eaac9('0x1b66'),'address',_0x3eaac9('0x1b15'),_0x3eaac9('0xf2a'),_0x3eaac9('0x2531'),_0x3eaac9('0x24f1'),_0x3eaac9('0x14fb'),_0x3eaac9('0x2299'),_0x3eaac9('0x1b8d'),_0x3eaac9('0x201b'),_0x3eaac9('0x195a'),_0x3eaac9('0xc97'),_0x3eaac9('0x1288'),_0x3eaac9('0x15f0'),'faxCapacity',_0x3eaac9('0x1fa2'),_0x3eaac9('0x1d36'),_0x3eaac9('0x1d8a'),_0x3eaac9('0x1f27'),_0x3eaac9('0xa2a'),_0x3eaac9('0x1c17'),_0x3eaac9('0x21f1'),_0x3eaac9('0x1ec9'),_0x3eaac9('0x44e'),_0x3eaac9('0x1d59'),_0x3eaac9('0x1d57'),_0x3eaac9('0x1c30'),'voiceStatus',_0x3eaac9('0x583'),_0x3eaac9('0x1ca7'),'mailStatusTime',_0x3eaac9('0x1c51'),_0x3eaac9('0xda4'),_0x3eaac9('0xaa3'),_0x3eaac9('0x2469'),'queue',_0x3eaac9('0x149e'),_0x3eaac9('0x783'),'phoneBarEnableScreenRecordingByAgent',_0x3eaac9('0x12d')],_0x28fb6f=[_0x3eaac9('0x1b15'),'openchannelPause','mailPause',_0x3eaac9('0x24f1'),_0x3eaac9('0x14fb'),'faxPause',_0x3eaac9('0x1b8d'),_0x3eaac9('0xb46')];_0x31a4dc['currentUser']=_0x359195[_0x3eaac9('0x1ef8')](),_0x31a4dc['availableStates']=[_0x3eaac9('0xb4'),_0x3eaac9('0x788'),_0x3eaac9('0x1934'),_0x3eaac9('0x289d'),'not_inuse'],_0x31a4dc[_0x3eaac9('0x145e')]=_0x25e52f||{'count':0x0,'rows':[]},_0x31a4dc[_0x3eaac9('0x5c1')]=_0x3dcff3,_0x31a4dc[_0x3eaac9('0x154f')]=_0x53c3f6,_0x31a4dc[_0x3eaac9('0xb59')]=_0x55b8aa&&_0x55b8aa['count']==0x1?_0x55b8aa[_0x3eaac9('0x16a7')][0x0]:null,_0x31a4dc[_0x3eaac9('0xb3d')]=_0x359195['parseCrudPermissions'](_0x31a4dc[_0x3eaac9('0xb59')]?_0x31a4dc[_0x3eaac9('0xb59')][_0x3eaac9('0xb3d')]:null),_0x31a4dc[_0x3eaac9('0x29b')]=_0x333d65?_0x32d445()[_0x3eaac9('0x226f')](_0x333d65[_0x3eaac9('0x16a7')]?_0x333d65['rows']:[],'id'):{},_0x31a4dc['rpcAgents']=_0xb85c6?_0x32d445()[_0x3eaac9('0x226f')](_0xb85c6[_0x3eaac9('0x16a7')]?_0xb85c6[_0x3eaac9('0x16a7')]:[],'id'):{},_0x31a4dc[_0x3eaac9('0xc68')]={},_0x31a4dc[_0x3eaac9('0xcfe')]=![],_0x31a4dc[_0x3eaac9('0x1b03')]=[],_0x31a4dc['agentInternal']={};for(var _0x5695d9 in _0x31a4dc['agents']){typeof _0x31a4dc[_0x3eaac9('0x29b')][_0x5695d9]!==_0x3eaac9('0x1143')&&(_0x31a4dc[_0x3eaac9('0x29b')][_0x5695d9][_0x3eaac9('0x15f9')]=!![]);}_0x31a4dc[_0x3eaac9('0xa16')]={'limit':0xa,'page':0x1,'order':_0x3eaac9('0xe11'),'globalStatusFilter':'','pauseTypeFilter':''},_0x31a4dc['logout']=_0x310b0c,_0x31a4dc[_0x3eaac9('0x16d4')]=_0x8a5d7a,_0x31a4dc[_0x3eaac9('0x1c98')]=_0x5bf4f7,_0x31a4dc[_0x3eaac9('0x560')]=_0x179890,_0x31a4dc[_0x3eaac9('0x80b')]=_0x5833e9,_0x31a4dc[_0x3eaac9('0xca0')]=_0x3049b8,_0x31a4dc[_0x3eaac9('0xe1d')]=_0x58980b,_0x31a4dc['isPause']=_0x408ed1,_0x31a4dc[_0x3eaac9('0x1803')]=_0x5137c9,_0x31a4dc['isPartialPause']=_0x2f7436,_0x31a4dc[_0x3eaac9('0x284a')]=_0x536162,_0x31a4dc[_0x3eaac9('0x18ee')]=_0x1cfaf6,_0x31a4dc[_0x3eaac9('0x888')]=_0x4d79c2,_0x31a4dc['onConnect']=_0x1bb8d4,_0x31a4dc[_0x3eaac9('0x1831')]=_0x251262,_0x31a4dc['screenRecording']=_0xa0547f,_0x109a89['on'](_0x3eaac9('0xb9f'),_0x31a4dc[_0x3eaac9('0x284a')]),_0x109a89['on']('user:update',_0x31a4dc[_0x3eaac9('0x18ee')]),_0x109a89['on'](_0x3eaac9('0x1002'),_0x31a4dc['onConnect']),_0x109a89['on'](_0x3eaac9('0xa8e'),_0x31a4dc[_0x3eaac9('0x1831')]),_0x4d79c2();var _0x55059a=_0x2f5d83(function(){var _0x593856=_0x3eaac9;_0x31a4dc['load']&&(_0x31a4dc[_0x593856('0xcfe')]=![],_0x4d79c2());},0x3e7);function _0x4d79c2(){var _0x29216c=_0x3eaac9;_0x31a4dc[_0x29216c('0xcfe')]=![];var _0xd71dcc=_0x174279[_0x29216c('0x178')]();_0x31a4dc['promise']=_0xd71dcc[_0x29216c('0x9c8')],_0x31a4dc[_0x29216c('0x16a4')]=[],_0x31a4dc[_0x29216c('0x1b03')]=[],_0x32d445()[_0x29216c('0xd1e')](_0x31a4dc[_0x29216c('0x29b')],function(_0x2785f7,_0x3a1ca9){var _0x2caa62=_0x29216c;_0x31a4dc[_0x2caa62('0x7')][_0x3a1ca9]&&_0x32d445()[_0x2caa62('0x1d8')](_0x2785f7,_0x32d445()[_0x2caa62('0xed5')](_0x32d445()[_0x2caa62('0x23e3')](_0x31a4dc[_0x2caa62('0x7')][_0x3a1ca9],_0x28fb6f),_0x584843)),_0x58980b(_0x2785f7),_0x2785f7['online']?(_0x31a4dc['filteredAgents'][_0x2caa62('0xb76')](_0x2785f7),_0x31a4dc[_0x2caa62('0x7ff')][_0x2785f7['internal']]=_0x3a1ca9):_0x2785f7['globalStatusTime']=_0x32d445()[_0x2caa62('0xcd3')](_0x4ddcaa()()[_0x2caa62('0x5e5')]('x'));});_0x31a4dc[_0x29216c('0xa16')][_0x29216c('0xb02')]&&_0x32d445()[_0x29216c('0xa8b')](_0x31a4dc['filteredAgents'],function(_0x11cd3c){return _0x11cd3c['globalStatus']!==_0x31a4dc['query']['globalStatusFilter'];});_0x31a4dc['query'][_0x29216c('0x24fc')]&&_0x32d445()['remove'](_0x31a4dc['filteredAgents'],function(_0x48ae16){var _0x210fbc=_0x29216c;return _0x48ae16[_0x210fbc('0x103')]!==_0x31a4dc[_0x210fbc('0xa16')][_0x210fbc('0x24fc')];});_0x31a4dc['query']['filter']&&_0x32d445()['remove'](_0x31a4dc[_0x29216c('0x16a4')],function(_0x359dbe){var _0x16d61c=_0x29216c;return _0x359dbe['fullname'][_0x16d61c('0x20dd')]()[_0x16d61c('0x281c')](_0x31a4dc['query'][_0x16d61c('0x2891')]['toLowerCase']())<0x0;});_0x31a4dc[_0x29216c('0x16a4')]=_0x5bbd4b(_0x31a4dc[_0x29216c('0x16a4')]);var _0x5327dd=(_0x31a4dc[_0x29216c('0xa16')]['page']-0x1)*_0x31a4dc['query'][_0x29216c('0x1b6d')];_0x31a4dc[_0x29216c('0xc68')]=_0x32d445()['drop'](_0x31a4dc['filteredAgents'],_0x5327dd)[_0x29216c('0xa19')](0x0,_0x31a4dc['query']['limit']);for(var _0x579dca=0x0;_0x579dca<_0x31a4dc[_0x29216c('0xc68')]['length'];_0x579dca+=0x1){_0x31a4dc['order'][_0x29216c('0xb76')](_0x31a4dc['paginatedAgents'][_0x579dca]['id']);}_0xd71dcc[_0x29216c('0xcd6')](),_0x31a4dc[_0x29216c('0xcfe')]=!![];}function _0x536162(_0x4d64f6){var _0x4fe665=_0x3eaac9;_0x31a4dc[_0x4fe665('0x29b')][_0x4d64f6['id']]&&(_0x32d445()['merge'](_0x31a4dc['agents'][_0x4d64f6['id']],_0x32d445()[_0x4fe665('0xed5')](_0x32d445()[_0x4fe665('0x23e3')](_0x4d64f6,_0x28fb6f),_0x584843)),_0x32d445()['merge'](_0x31a4dc[_0x4fe665('0x7')][_0x4d64f6['id']],_0x32d445()[_0x4fe665('0xed5')](_0x32d445()[_0x4fe665('0x23e3')](_0x4d64f6,_0x28fb6f),_0x584843)),_0x58980b(_0x31a4dc['agents'][_0x4d64f6['id']]));}function _0x1cfaf6(_0x5bd20b){var _0x2cbae8=_0x3eaac9;_0x31a4dc['agents'][_0x5bd20b['id']]&&(_0x32d445()[_0x2cbae8('0x1d8')](_0x31a4dc[_0x2cbae8('0x29b')][_0x5bd20b['id']],_0x32d445()[_0x2cbae8('0xed5')](_0x5bd20b,_0x584843)),_0x32d445()['merge'](_0x31a4dc[_0x2cbae8('0x7')][_0x5bd20b['id']],_0x32d445()[_0x2cbae8('0xed5')](_0x5bd20b,_0x584843)),_0x5bd20b[_0x2cbae8('0x823')]&&(_0x31a4dc[_0x2cbae8('0x29b')][_0x5bd20b['id']][_0x2cbae8('0x16ed')]=_0x5bd20b['lastPauseAt'],_0x31a4dc[_0x2cbae8('0x7')][_0x5bd20b['id']][_0x2cbae8('0x16ed')]=_0x5bd20b[_0x2cbae8('0x823')]),_0x58980b(_0x31a4dc[_0x2cbae8('0x29b')][_0x5bd20b['id']]));}function _0x1bb8d4(_0x42f00a){var _0x7c63b2=_0x3eaac9;_0x31a4dc['agents'][_0x31a4dc[_0x7c63b2('0x7ff')][_0x42f00a[_0x7c63b2('0x1c29')]]]&&(_0x32d445()[_0x7c63b2('0x1d8')](_0x31a4dc['agents'][_0x31a4dc['agentInternal'][_0x42f00a['destaccountcode']]],_0x32d445()[_0x7c63b2('0xed5')](_0x42f00a,[_0x7c63b2('0x26a8'),_0x7c63b2('0x149e')])),_0x32d445()[_0x7c63b2('0x1d8')](_0x31a4dc[_0x7c63b2('0x7')][_0x31a4dc[_0x7c63b2('0x7ff')][_0x42f00a[_0x7c63b2('0x1c29')]]],_0x32d445()[_0x7c63b2('0xed5')](_0x42f00a,['queue',_0x7c63b2('0x149e')])));}function _0x251262(_0x678264){var _0x589454=_0x3eaac9;_0x31a4dc['agents'][_0x31a4dc[_0x589454('0x7ff')][_0x678264[_0x589454('0x1c29')]]]&&(_0x31a4dc[_0x589454('0x29b')][_0x31a4dc[_0x589454('0x7ff')][_0x678264[_0x589454('0x1c29')]]]=_0x32d445()[_0x589454('0x23e3')](_0x31a4dc[_0x589454('0x29b')][_0x31a4dc[_0x589454('0x7ff')][_0x678264[_0x589454('0x1c29')]]],[_0x589454('0x26a8'),'destconnectedlinenum']),_0x31a4dc[_0x589454('0x7')][_0x31a4dc['agentInternal'][_0x678264['destaccountcode']]]=_0x32d445()['omit'](_0x31a4dc[_0x589454('0x7')][_0x31a4dc[_0x589454('0x7ff')][_0x678264[_0x589454('0x1c29')]]],['queue','destconnectedlinenum']));}function _0x310b0c(_0x241408){var _0x15e266=_0x3eaac9;return _0x4122c7[_0x15e266('0x10c6')]['logout']({'id':_0x241408['id'],'device':_0x15e266('0x24e1'),'agent_id':_0x241408['id'],'agent_name':_0x241408['name']})[_0x15e266('0xe59')][_0x15e266('0xe19')](function(){var _0xe061db=_0x15e266;_0xca2f9c['success']({'title':_0xe061db('0x25b9'),'msg':_0x241408[_0xe061db('0xe11')]+'\x20\x20properly\x20logout'}),_0x31a4dc[_0xe061db('0x29b')][_0x241408['id']]&&(_0x31a4dc[_0xe061db('0x29b')][_0x241408['id']][_0xe061db('0xb46')]=![]),_0x31a4dc[_0xe061db('0x7')][_0x241408['id']]&&(_0x31a4dc['rpcAgents'][_0x241408['id']][_0xe061db('0xb46')]=![]),_0x4d79c2();})[_0x15e266('0x223b')](function(_0xffbf8e){var _0x45ca39=_0x15e266;_0xca2f9c[_0x45ca39('0x8c8')]({'title':_0xffbf8e[_0x45ca39('0x2833')]?'API:'+_0xffbf8e[_0x45ca39('0x2833')]+_0x45ca39('0x1b7c')+_0xffbf8e[_0x45ca39('0x1fd7')]:_0x45ca39('0x1c95'),'msg':_0xffbf8e[_0x45ca39('0x11d0')]?JSON[_0x45ca39('0x3ad')](_0xffbf8e['data'][_0x45ca39('0x27e8')]):_0xffbf8e[_0x45ca39('0x94f')]()});});}function _0x5bf4f7(_0x4d3045,_0x165dfa){var _0x20c34c=_0x3eaac9;return _0x4122c7[_0x20c34c('0x10c6')][_0x20c34c('0x1c98')]({'id':_0x4d3045['id'],'type':_0x165dfa})[_0x20c34c('0xe59')][_0x20c34c('0xe19')](function(_0x589686){var _0x112848=_0x20c34c;_0x31a4dc[_0x112848('0x29b')][_0x4d3045['id']]&&_0x32d445()[_0x112848('0x1d8')](_0x31a4dc[_0x112848('0x29b')][_0x4d3045['id']],_0x32d445()[_0x112848('0xed5')](_0x589686,_0x584843)),_0x31a4dc['rpcAgents'][_0x4d3045['id']]&&_0x32d445()[_0x112848('0x1d8')](_0x31a4dc[_0x112848('0x7')][_0x4d3045['id']],_0x32d445()[_0x112848('0xed5')](_0x589686,_0x584843)),_0x58980b(_0x31a4dc[_0x112848('0x29b')][_0x4d3045['id']]);})[_0x20c34c('0x223b')](function(_0x3494d6){var _0x49732e=_0x20c34c;_0xca2f9c[_0x49732e('0x8c8')]({'title':_0x3494d6['status']?_0x49732e('0x27f2')+_0x3494d6['status']+_0x49732e('0x1b7c')+_0x3494d6[_0x49732e('0x1fd7')]:_0x49732e('0x1c95'),'msg':_0x3494d6[_0x49732e('0x11d0')]?JSON[_0x49732e('0x3ad')](_0x3494d6[_0x49732e('0x11d0')]['message']):_0x3494d6['toString']()});});}function _0x179890(_0x25f511){var _0x21ac1b=_0x3eaac9;return _0x4122c7[_0x21ac1b('0x10c6')][_0x21ac1b('0x2471')]({'id':_0x25f511['id']})[_0x21ac1b('0xe59')][_0x21ac1b('0xe19')](function(_0x35cdc0){var _0x40fcc5=_0x21ac1b;_0x31a4dc[_0x40fcc5('0x29b')][_0x25f511['id']]&&_0x32d445()[_0x40fcc5('0x1d8')](_0x31a4dc[_0x40fcc5('0x29b')][_0x25f511['id']],_0x32d445()[_0x40fcc5('0xed5')](_0x35cdc0,_0x584843)),_0x31a4dc[_0x40fcc5('0x7')][_0x25f511['id']]&&_0x32d445()[_0x40fcc5('0x1d8')](_0x31a4dc[_0x40fcc5('0x7')][_0x25f511['id']],_0x32d445()['pick'](_0x35cdc0,_0x584843)),_0x58980b(_0x31a4dc['agents'][_0x25f511['id']]);})[_0x21ac1b('0x223b')](function(_0x53b383){var _0xd3838c=_0x21ac1b;_0xca2f9c[_0xd3838c('0x8c8')]({'title':_0x53b383[_0xd3838c('0x2833')]?_0xd3838c('0x27f2')+_0x53b383['status']+_0xd3838c('0x1b7c')+_0x53b383['statusText']:_0xd3838c('0x1c95'),'msg':_0x53b383[_0xd3838c('0x11d0')]?JSON['stringify'](_0x53b383[_0xd3838c('0x11d0')][_0xd3838c('0x27e8')]):_0x53b383[_0xd3838c('0x94f')]()});});}function _0x5833e9(_0x31738c){var _0x39ba34=_0x3eaac9;_0xede56e[_0x39ba34('0x26b2')](_0xede56e['alert']()[_0x39ba34('0x26d6')](!![])[_0x39ba34('0x13e4')](_0x39ba34('0x7c0'))[_0x39ba34('0x221c')](_0x39ba34('0x1abb'))['ok']('Ok')[_0x39ba34('0x1345')](_0x31738c));}function _0x8a5d7a(_0x4ef2af,_0x253eca){var _0x3faa9e=_0x3eaac9;_0xede56e[_0x3faa9e('0x26b2')]({'controller':_0x3faa9e('0x28ab'),'controllerAs':'vm','templateUrl':_0x3bf6bc,'parent':angular[_0x3faa9e('0x24a1')](_0x22ab38[_0x3faa9e('0x19b2')]),'targetEvent':_0x253eca,'clickOutsideToClose':!![],'locals':{'agent':_0x4ef2af,'agents':[],'channel':_0x3faa9e('0xaf2'),'direction':_0x3faa9e('0x1a7a'),'crudPermissions':_0x31a4dc[_0x3faa9e('0xb3d')]}});}function _0x408ed1(_0x35ebfb){return _0x35ebfb==='pause'||_0x35ebfb==='*pause';}function _0x5137c9(_0x54ed23){var _0x23ab0c=_0x3eaac9;return _0x54ed23===_0x23ab0c('0x1c98');}function _0x2f7436(_0x529ea9){return _0x529ea9==='*pause';}function _0x526581(_0x12a79e){var _0x35f400=_0x3eaac9;return _0x12a79e==='idle'||_0x12a79e===_0x35f400('0x10df')||_0x12a79e===_0x35f400('0x20a1')||_0x12a79e===_0x35f400('0xb4')||_0x32d445()[_0x35f400('0xe44')](_0x12a79e);}function _0x3049b8(_0x2d4bc0,_0x3b16ee){var _0x3f961c=_0x3eaac9;if(_0x3b16ee==='voice'){if(_0x2d4bc0[_0x3b16ee+_0x3f961c('0x20e')]!==_0x3f961c('0x751'))return _0x2d4bc0[_0x3b16ee+_0x3f961c('0x20e')];if(_0x2d4bc0[_0x3b16ee+_0x3f961c('0x27b9')])return _0x2d4bc0[_0x3b16ee+'Status']=_0x3f961c('0x1c98'),_0x3f961c('0x1c98');return'idle';}else{if(_0x2d4bc0[_0x3b16ee+_0x3f961c('0x27b9')])return _0x2d4bc0[_0x3b16ee+_0x3f961c('0x20e')]='pause','pause';return _0x2d4bc0[_0x3b16ee+_0x3f961c('0x20e')];}}function _0x58980b(_0x3dcaaf){var _0x53d4b8=_0x3eaac9,_0x2f6096=_0x53d4b8('0x10df');if(_0x32d445()[_0x53d4b8('0x1ff')]([_0x3049b8(_0x3dcaaf,_0x53d4b8('0xe74')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x17cc')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x26bf')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0xaf2')),_0x3049b8(_0x3dcaaf,'sms'),_0x3049b8(_0x3dcaaf,'whatsapp'),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x625'))],_0x408ed1))_0x2f6096=_0x53d4b8('0x1c98');else{if(_0x32d445()[_0x53d4b8('0x201a')]([_0x3049b8(_0x3dcaaf,_0x53d4b8('0xe74')),_0x3049b8(_0x3dcaaf,'chat'),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x26bf')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0xaf2')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x2801')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x4b7')),_0x3049b8(_0x3dcaaf,'fax')],_0x408ed1))_0x2f6096=_0x53d4b8('0x2f3');else _0x32d445()[_0x53d4b8('0x1ff')]([_0x3049b8(_0x3dcaaf,_0x53d4b8('0xe74')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x17cc')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x26bf')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0xaf2')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x2801')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x4b7')),_0x3049b8(_0x3dcaaf,_0x53d4b8('0x625'))],_0x526581)?_0x2f6096=_0x53d4b8('0x751'):_0x2f6096=_0x53d4b8('0x1934');}_0x3dcaaf[_0x53d4b8('0x25b1')]!==_0x2f6096&&(_0x3dcaaf[_0x53d4b8('0x25b1')]=_0x2f6096,_0x3dcaaf[_0x53d4b8('0x15f9')]?(_0x3dcaaf[_0x53d4b8('0x15f9')]=![],_0x3dcaaf['globalStatusTime']=_0x408ed1(_0x2f6096)?_0x32d445()[_0x53d4b8('0xcd3')](_0x4ddcaa()(_0x3dcaaf[_0x53d4b8('0x823')])[_0x53d4b8('0x5e5')]('x')):_0x32d445()[_0x53d4b8('0x1735')]([_0x3dcaaf[_0x53d4b8('0x2469')],_0x3dcaaf[_0x53d4b8('0x583')],_0x3dcaaf[_0x53d4b8('0x1426')],_0x3dcaaf[_0x53d4b8('0x1c51')],_0x3dcaaf[_0x53d4b8('0xda4')],_0x3dcaaf['openchannelStatusTime'],_0x3dcaaf[_0x53d4b8('0xaa3')]])):_0x3dcaaf[_0x53d4b8('0x16ed')]=_0x32d445()[_0x53d4b8('0xcd3')](_0x4ddcaa()()[_0x53d4b8('0x5e5')]('x')));}function _0x5bbd4b(_0x2a152b){var _0xb6453e=_0x3eaac9,_0x473467=_0x32d445()[_0xb6453e('0x20b6')](_0x31a4dc['query'][_0xb6453e('0x1b03')],'-')?_0xb6453e('0x1ee9'):'asc';return _0x32d445()[_0xb6453e('0x10e')](_0x2a152b,[_0x31a4dc[_0xb6453e('0xa16')][_0xb6453e('0x1b03')][_0xb6453e('0x1b42')]('-','')],[_0x473467]);}function _0x5a369d(){var _0x2ec3d4=_0x3eaac9;_0x55059a&&(_0x2f5d83[_0x2ec3d4('0x2c1')](_0x55059a),_0x55059a=null);}function _0xa0547f(_0x55c36b,_0x410777){var _0x4b3656=_0x3eaac9;return _0x4122c7[_0x4b3656('0x10c6')][_0x4b3656('0xa70')]({'id':_0x55c36b['id']},{'screenrecording':_0x410777})['$promise'][_0x4b3656('0x223b')](function(_0x211a00){var _0x328bc7=_0x4b3656;_0xca2f9c[_0x328bc7('0x8c8')]({'title':_0x211a00['status']?_0x328bc7('0x27f2')+_0x211a00[_0x328bc7('0x2833')]+'\x20-\x20'+_0x211a00['statusText']:_0x328bc7('0x2bf'),'msg':_0x211a00[_0x328bc7('0x11d0')]?JSON[_0x328bc7('0x3ad')](_0x211a00[_0x328bc7('0x11d0')]['message']):_0x211a00[_0x328bc7('0x94f')]()});});}_0x11866a[_0x3eaac9('0xb2b')](_0x3eaac9('0x5cd'),function(){var _0x229539=_0x3eaac9;_0x109a89[_0x229539('0x2121')](_0x229539('0xb9f')),_0x109a89[_0x229539('0x2121')](_0x229539('0x1ce3')),_0x109a89[_0x229539('0x2121')]('user:agentconnect'),_0x109a89[_0x229539('0x2121')]('user:agentcomplete'),_0x5a369d();});}const _0x448388=_0x2142b5,_0x7ecb1a=_0x59426a['p']+_0xb635d2('0x150f'),_0x54aeb6=_0x59426a['p']+_0xb635d2('0x89e');_0x494a00[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$q','$document',_0xb635d2('0x1c1a'),_0xb635d2('0x671'),_0xb635d2('0x146c'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x494a00(_0x4f29ee,_0x42f272,_0x3db6ae,_0x2a58d0,_0x94b687,_0x4ef1c8,_0x1d6167,_0x527b0e,_0xd3e30c,_0x5e449e,_0xad86a1,_0x16f764,_0x50d4d5,_0x1f47c0){var _0x15242d=_0xb635d2,_0x3fd7c2=this,_0x36fb0d=[_0x15242d('0x462'),_0x15242d('0x2398'),_0x15242d('0x183a'),_0x15242d('0xe75'),'pTalking',_0x15242d('0x194a'),_0x15242d('0x27e8'),_0x15242d('0x8c9'),'dialMethod',_0x15242d('0x1317'),_0x15242d('0x1cf8')];_0x3fd7c2[_0x15242d('0x15a5')]=_0x1f47c0[_0x15242d('0x1ef8')](),_0x3fd7c2[_0x15242d('0x148b')]=_0x1d6167[_0x15242d('0x148b')]?_0x1d6167['count']:0x0,_0x3fd7c2[_0x15242d('0x671')]=_0x1d6167?_0x32d445()[_0x15242d('0x226f')](_0x1d6167[_0x15242d('0x16a7')]?_0x1d6167[_0x15242d('0x16a7')]:[],'id'):{},_0x3fd7c2['rpcQueues']=_0x527b0e?_0x32d445()[_0x15242d('0x226f')](_0x527b0e[_0x15242d('0x16a7')]?_0x527b0e[_0x15242d('0x16a7')]:[],'id'):{},_0x3fd7c2[_0x15242d('0x154f')]=_0x16f764,_0x3fd7c2[_0x15242d('0xb59')]=_0x50d4d5&&_0x50d4d5[_0x15242d('0x148b')]==0x1?_0x50d4d5[_0x15242d('0x16a7')][0x0]:null,_0x3fd7c2[_0x15242d('0xb3d')]=_0x1f47c0[_0x15242d('0xd31')](_0x3fd7c2['userProfileSection']?_0x3fd7c2[_0x15242d('0xb59')][_0x15242d('0xb3d')]:null);_0x1f47c0[_0x15242d('0x179e')](_0x15242d('0xd14'))?_0x3fd7c2[_0x15242d('0xa16')]={'type':_0x15242d('0x1a7a'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x3fd7c2['query']={'id':_0x3fd7c2[_0x15242d('0x15a5')]['id'],'channel':'openchannel','type':_0x15242d('0x1a7a'),'sort':_0x15242d('0x7e8'),'limit':0xa,'page':0x1};_0x3fd7c2[_0x15242d('0x425')]=_0x12251c,_0x3fd7c2[_0x15242d('0x23cf')]=_0x2c07d1,_0x3fd7c2[_0x15242d('0x10b')]=_0x42157c,_0x3fd7c2[_0x15242d('0x45a')]=_0x3135a0,_0x3fd7c2[_0x15242d('0xabf')]=_0x66a7b,_0x3fd7c2['onSave']=_0x3ca96c,_0x3fd7c2[_0x15242d('0xc76')]=_0x5d5ec8,_0x3fd7c2[_0x15242d('0x895')]=_0x5c3836,_0x3fd7c2[_0x15242d('0x69e')]=_0x491e04,_0x3fd7c2[_0x15242d('0x1707')]=_0x553e7f,_0x3fd7c2[_0x15242d('0x1baf')]=_0x4a1f22,_0x3fd7c2[_0x15242d('0x696')]=_0x5d2b7e,_0x3fd7c2['order']=[],_0x32d445()[_0x15242d('0xd1e')](_0x3fd7c2[_0x15242d('0x671')],function(_0x2876d7){var _0x412c80=_0x15242d;_0x3fd7c2['order'][_0x412c80('0xb76')](_0x2876d7['id']);}),_0x5e449e['on'](_0x15242d('0x170'),_0x3fd7c2[_0x15242d('0x284a')]),_0x5e449e['on'](_0x15242d('0x94a'),_0x3fd7c2['onSaveMember']),_0x5e449e['on']('userOpenchannelQueue:remove',_0x3fd7c2[_0x15242d('0x895')]),_0x5e449e['on'](_0x15242d('0x1ce3'),_0x3fd7c2[_0x15242d('0x69e')]),_0x5e449e['on'](_0x15242d('0x1583'),_0x3fd7c2[_0x15242d('0x1baf')]),_0x5e449e['on'](_0x15242d('0x2161'),_0x3fd7c2[_0x15242d('0x1707')]);function _0x5d2b7e(){var _0x31b10e=_0x15242d,_0x4f9df1=[];return _0x32d445()[_0x31b10e('0xd1e')](_0x3fd7c2['queues'],function(_0x31845f,_0x3dfb75){var _0x1b2ade=_0x31b10e;_0x31845f[_0x1b2ade('0x1cf8')]=0x0,_0x31845f['loggedInDb']=0x0,_0x3fd7c2[_0x1b2ade('0x671')][_0x3dfb75][_0x1b2ade('0x29b')]={},_0x4f9df1[_0x1b2ade('0xb76')](_0xd3e30c[_0x1b2ade('0x22b1')][_0x1b2ade('0xb5d')]({'id':_0x3dfb75})[_0x1b2ade('0xe59')]),_0x3fd7c2[_0x1b2ade('0x146c')][_0x3dfb75]&&_0x32d445()[_0x1b2ade('0x1d8')](_0x31845f,_0x32d445()[_0x1b2ade('0xed5')](_0x3fd7c2[_0x1b2ade('0x146c')][_0x3dfb75],_0x36fb0d));}),_0x2a58d0[_0x31b10e('0xf0e')](_0x4f9df1)[_0x31b10e('0xe19')](function(_0x476ac6){var _0x5c4975=_0x31b10e;for(var _0x7a3b6f=0x0;_0x7a3b6f<_0x476ac6['length'];_0x7a3b6f+=0x1){for(var _0xe1aab8=0x0;_0xe1aab8<_0x476ac6[_0x7a3b6f][_0x5c4975('0x16a7')][_0x5c4975('0x25ae')];_0xe1aab8++){_0x476ac6[_0x7a3b6f][_0x5c4975('0x16a7')][_0xe1aab8]['paused']&&_0x3fd7c2[_0x5c4975('0x671')][_0x476ac6[_0x7a3b6f]['rows'][_0xe1aab8][_0x5c4975('0x7d6')]][_0x5c4975('0x1cf8')]++,_0x3fd7c2[_0x5c4975('0x671')][_0x476ac6[_0x7a3b6f][_0x5c4975('0x16a7')][_0xe1aab8][_0x5c4975('0x7d6')]][_0x5c4975('0x120f')]++,_0x3fd7c2[_0x5c4975('0x671')][_0x476ac6[_0x7a3b6f][_0x5c4975('0x16a7')][_0xe1aab8][_0x5c4975('0x7d6')]][_0x5c4975('0x29b')][_0x476ac6[_0x7a3b6f][_0x5c4975('0x16a7')][_0xe1aab8][_0x5c4975('0x43d')]]=_0x476ac6[_0x7a3b6f][_0x5c4975('0x16a7')][_0xe1aab8][_0x5c4975('0x7d6')];}}})[_0x31b10e('0x223b')](function(_0x49946e){var _0x289948=_0x31b10e;console[_0x289948('0x8c8')](_0x49946e);});}function _0x3ca96c(_0x2ac860){var _0x5e0624=_0x15242d;_0x3fd7c2[_0x5e0624('0x671')][_0x2ac860['id']]&&_0x32d445()['merge'](_0x3fd7c2[_0x5e0624('0x671')][_0x2ac860['id']],_0x32d445()['pick'](_0x2ac860,_0x36fb0d));}function _0x5d5ec8(_0x30fc6b){var _0x11e676=_0x15242d;_0x3fd7c2[_0x11e676('0x671')][_0x30fc6b[_0x11e676('0x7d6')]]&&_0x3fd7c2[_0x11e676('0x671')][_0x30fc6b[_0x11e676('0x7d6')]][_0x11e676('0x120f')]++;}function _0x5c3836(_0x3e01fd){var _0x1a0b03=_0x15242d;_0x3fd7c2[_0x1a0b03('0x671')][_0x3e01fd[_0x1a0b03('0x7d6')]]&&_0x3fd7c2[_0x1a0b03('0x671')][_0x3e01fd[_0x1a0b03('0x7d6')]][_0x1a0b03('0x120f')]--;}function _0x491e04(_0x1d4da8){var _0x299b4b=_0x15242d;console[_0x299b4b('0x1fe9')](_0x299b4b('0x69e'),_0x1d4da8);if(_0x1d4da8[_0x299b4b('0x1b8d')])_0x32d445()['forIn'](_0x3fd7c2[_0x299b4b('0x671')],function(_0x6be1f5){var _0x22ac60=_0x299b4b;_0x6be1f5[_0x22ac60('0x29b')][_0x1d4da8['id']]&&(_0x6be1f5[_0x22ac60('0x1cf8')]+=0x1,console['log'](_0x22ac60('0x1c98')));});else!_0x1d4da8[_0x299b4b('0x1b8d')]&&_0x32d445()['forIn'](_0x3fd7c2[_0x299b4b('0x671')],function(_0x35cac3){var _0x500819=_0x299b4b;_0x35cac3[_0x500819('0x29b')][_0x1d4da8['id']]&&(_0x35cac3[_0x500819('0x1cf8')]>0x0&&(_0x35cac3[_0x500819('0x1cf8')]-=0x1,console[_0x500819('0x1fe9')]('unpause')));});}function _0x553e7f(_0x1def67){var _0x225d13=_0x15242d;console[_0x225d13('0x1fe9')](_0x225d13('0xb90'),_0x1def67),_0x3fd7c2[_0x225d13('0x671')][_0x1def67[_0x225d13('0x7d6')]]&&(_0x3fd7c2[_0x225d13('0x671')][_0x1def67[_0x225d13('0x7d6')]][_0x225d13('0x120f')]+=0x1,_0x3fd7c2[_0x225d13('0x671')][_0x1def67[_0x225d13('0x7d6')]]['agents'][_0x1def67['UserId']]=_0x1def67[_0x225d13('0x7d6')]);}function _0x4a1f22(_0x39b6bf){var _0x2df9a0=_0x15242d;console['log'](_0x2df9a0('0x1baf'),_0x39b6bf),_0x3fd7c2[_0x2df9a0('0x671')][_0x39b6bf[_0x2df9a0('0x7d6')]]&&_0x3fd7c2[_0x2df9a0('0x671')][_0x39b6bf[_0x2df9a0('0x7d6')]]['loggedInDb']>0x0&&(_0x3fd7c2['queues'][_0x39b6bf[_0x2df9a0('0x7d6')]][_0x2df9a0('0x120f')]-=0x1,delete _0x3fd7c2['queues'][_0x39b6bf[_0x2df9a0('0x7d6')]]['agents'][_0x39b6bf[_0x2df9a0('0x43d')]]);}var _0x5e0a65=!![],_0x32d256=0x1;_0x4f29ee['$watch'](_0x15242d('0x20cb'),function(_0xabad4a,_0x2cbe02){var _0x54e29d=_0x15242d;_0x5e0a65?_0x42f272(function(){_0x5e0a65=![];}):(!_0x2cbe02&&(_0x32d256=_0x3fd7c2[_0x54e29d('0xa16')]['page']),_0xabad4a!==_0x2cbe02&&(_0x3fd7c2[_0x54e29d('0xa16')][_0x54e29d('0xc08')]=0x1),!_0xabad4a&&(_0x3fd7c2['query'][_0x54e29d('0xc08')]=_0x32d256),_0x3fd7c2[_0x54e29d('0x23cf')]());});function _0x12251c(_0x142a8c){var _0x3ae33c=_0x15242d;_0x3fd7c2[_0x3ae33c('0x148b')]=_0x142a8c[_0x3ae33c('0x148b')],_0x3fd7c2['queues']=_0x142a8c?_0x32d445()[_0x3ae33c('0x226f')](_0x142a8c[_0x3ae33c('0x16a7')]?_0x142a8c[_0x3ae33c('0x16a7')]:[],'id'):{};if(_0x142a8c[_0x3ae33c('0x16a7')]){_0x3fd7c2[_0x3ae33c('0x1b03')]=[];for(var _0x43cef9=0x0;_0x43cef9<_0x142a8c[_0x3ae33c('0x16a7')][_0x3ae33c('0x25ae')];_0x43cef9++){_0x3fd7c2[_0x3ae33c('0x1b03')][_0x3ae33c('0xb76')](_0x142a8c[_0x3ae33c('0x16a7')][_0x43cef9]['id']);}}_0x5d2b7e();}function _0x2c07d1(){var _0x13eb17=_0x15242d;_0x3fd7c2[_0x13eb17('0xa16')]['offset']=(_0x3fd7c2['query'][_0x13eb17('0xc08')]-0x1)*_0x3fd7c2[_0x13eb17('0xa16')][_0x13eb17('0x1b6d')],_0x1f47c0[_0x13eb17('0x179e')](_0x13eb17('0xd14'))?_0x3fd7c2['promise']=_0xd3e30c[_0x13eb17('0x22b1')][_0x13eb17('0x22d5')](_0x3fd7c2[_0x13eb17('0xa16')],_0x12251c)[_0x13eb17('0xe59')]:(_0x3fd7c2[_0x13eb17('0xa16')]['id']=_0x3fd7c2[_0x13eb17('0x154f')]['id'],_0x3fd7c2[_0x13eb17('0xa16')][_0x13eb17('0x1e59')]='OpenchannelQueues',_0x3fd7c2[_0x13eb17('0x9c8')]=_0xd3e30c[_0x13eb17('0x154f')][_0x13eb17('0x14e6')](_0x3fd7c2['query'],_0x12251c)[_0x13eb17('0xe59')]);}function _0x42157c(_0x450020,_0x3ee6d8){var _0x3b2828=_0x15242d;_0x3db6ae[_0x3b2828('0x26b2')]({'controller':_0x3b2828('0xb3'),'controllerAs':'vm','templateUrl':_0x7ecb1a,'parent':angular[_0x3b2828('0x24a1')](_0x94b687[_0x3b2828('0x19b2')]),'targetEvent':_0x450020,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x3ee6d8,'openchannelQueues':_0x32d445()['values'](_0x3fd7c2[_0x3b2828('0x671')]),'license':null,'setting':null,'crudPermissions':_0x3fd7c2[_0x3b2828('0xb3d')]}});}function _0x3135a0(_0x3f72a6,_0x57f998){var _0x2796e7=_0x15242d;_0x3db6ae[_0x2796e7('0x26b2')]({'controller':_0x2796e7('0x1106'),'controllerAs':'vm','templateUrl':_0x54aeb6,'parent':angular[_0x2796e7('0x24a1')](_0x94b687[_0x2796e7('0x19b2')]),'targetEvent':_0x3f72a6,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x57f998,'openchannelQueues':_0x3fd7c2['queues']?_0x3fd7c2[_0x2796e7('0x671')][_0x2796e7('0x16a7')]:[],'realtime':![],'crudPermissions':_0x3fd7c2[_0x2796e7('0xb3d')]}});}function _0x66a7b(_0x151f56){var _0x400ad4=_0x15242d;return _0xd3e30c[_0x400ad4('0x22b1')][_0x400ad4('0xa70')](_0x151f56)[_0x400ad4('0xe59')]['then'](function(){var _0x39fd15=_0x400ad4;_0xad86a1[_0x39fd15('0x425')]({'title':_0x39fd15('0x56a'),'msg':_0x151f56[_0x39fd15('0x2623')]?_0x151f56[_0x39fd15('0x2623')]+_0x39fd15('0x283b'):''});})[_0x400ad4('0x223b')](function(_0x14d44c){var _0xf6b3bc=_0x400ad4;_0xad86a1['error']({'title':_0xf6b3bc('0x2780'),'msg':_0x14d44c[_0xf6b3bc('0x27e8')]});});}_0x4f29ee[_0x15242d('0xb2b')](_0x15242d('0x5cd'),function(){var _0x467762=_0x15242d;_0x5e449e['removeAllListeners'](_0x467762('0x170')),_0x5e449e[_0x467762('0x2121')](_0x467762('0x5c9')),_0x5e449e[_0x467762('0x2121')]('userOpenchannelQueue:save'),_0x5e449e[_0x467762('0x2121')]('user:update'),_0x5e449e[_0x467762('0x2121')](_0x467762('0x1583')),_0x5e449e['removeAllListeners'](_0x467762('0x2161'));});}const _0x3fd42a=_0x494a00;function _0x52b8fa(){var _0xdf468e=_0xb635d2;return{'status':{'registered':_0xdf468e('0xcf5'),'unregistered':_0xdf468e('0x10ea'),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0xdf468e('0xcf5'),'unreachable':_0xdf468e('0x10ea'),'unknown':_0xdf468e('0x1fe7')},'state':{'unknown':_0xdf468e('0x2740'),'not_inuse':_0xdf468e('0x11dd'),'inuse':_0xdf468e('0x15af'),'busy':_0xdf468e('0x441'),'invalid':_0xdf468e('0x2740'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0xdf468e('0x84d'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0xdf468e('0x84d'),'up':_0xdf468e('0x2778'),'hangup':_0xdf468e('0x2432')},'channelStatusOut':{'ring':_0xdf468e('0x24dc'),'up':_0xdf468e('0x2778'),'hangup':_0xdf468e('0x2432')}};}const _0xf642d6=_0x52b8fa;_0x18d390[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x46d')];function _0x18d390(_0x3a0d23,_0x360e17,_0x209344){var _0x57d6bc=_0xb635d2,_0x424f04=this;_0x209344[_0x57d6bc('0x83c')](),_0x209344[_0x57d6bc('0x19d9')](),_0x424f04['selectedTab']=0x0;switch(_0x360e17[_0x57d6bc('0x1a60')][_0x57d6bc('0x2623')]){case _0x57d6bc('0x381'):_0x424f04[_0x57d6bc('0xc7b')]=0x0;break;case'app.openchannel.realtime.queues':_0x424f04['selectedTab']=0x1;break;default:_0x424f04['selectedTab']=0x0,_0x360e17['go'](_0x57d6bc('0x381'));}_0x3a0d23[_0x57d6bc('0x107')](_0x57d6bc('0xa10'),function(_0x2565db,_0x69df7a){var _0x2a07c4=_0x57d6bc;if(_0x2565db!==_0x69df7a)switch(_0x2565db){case 0x0:_0x360e17['go'](_0x2a07c4('0x381'));break;case 0x1:_0x360e17['go'](_0x2a07c4('0x16b4'));break;default:_0x360e17['go'](_0x2a07c4('0x381'));}});}const _0x115508=_0x18d390;_0x276f36[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x276f36(_0x108246){var _0x50c0d0=_0xb635d2;_0x108246[_0x50c0d0('0x1d72')](_0x50c0d0('0x1c5'),{'url':_0x50c0d0('0x18ff'),'views':{'content@app':{'templateUrl':_0x5604a5,'controller':_0x50c0d0('0xa23')}},'resolve':{'userProfile':[_0x50c0d0('0x292'),_0x50c0d0('0x2730'),function _0x488247(_0x298709,_0x5ed6f6){var _0x2dc966=_0x50c0d0;return _0x5ed6f6[_0x2dc966('0x179e')](_0x2dc966('0xd14'))?null:_0x298709[_0x2dc966('0xcd6')](_0x2dc966('0x455'),{'fields':_0x2dc966('0x1b71'),'id':_0x5ed6f6[_0x2dc966('0x1ef8')]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function _0x187caa(_0x3053a0,_0x1e378a){var _0x5e28e4=_0x50c0d0;return _0x1e378a[_0x5e28e4('0x179e')](_0x5e28e4('0xd14'))?null:_0x3053a0['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1e378a['getCurrentUser']()['userProfileId'],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})[_0x50c0d0('0x1d72')](_0x50c0d0('0x381'),{'url':_0x50c0d0('0x11db'),'controller':_0x50c0d0('0x1c08'),'templateUrl':_0x5b3451,'resolve':{'pauses':[_0x50c0d0('0x292'),function _0xcc9fe3(_0x2ff46b){return _0x2ff46b['resolve']('pause@get',{'nolimit':!![]});}],'agents':['apiResolver',_0x50c0d0('0x2730'),function _0x316d39(_0x213cb8,_0x5c20ad){var _0x470eaf=_0x50c0d0;return _0x5c20ad['hasRole'](_0x470eaf('0xd14'))?_0x213cb8[_0x470eaf('0xcd6')](_0x470eaf('0x24a9'),{'fields':_0x470eaf('0x11bb'),'role':_0x470eaf('0x108'),'sort':'fullname','nolimit':!![]}):_0x213cb8[_0x470eaf('0xcd6')](_0x470eaf('0x197d'),{'id':_0x5c20ad['getCurrentUser']()[_0x470eaf('0x1d04')],'section':_0x470eaf('0xd61'),'fields':_0x470eaf('0x11bb'),'role':_0x470eaf('0x108'),'sort':_0x470eaf('0xe11'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x50c0d0('0x2730'),function _0x55e723(_0x599c24,_0x1a7d49){var _0x579515=_0x50c0d0;return _0x1a7d49[_0x579515('0x179e')](_0x579515('0xd14'))?null:_0x599c24[_0x579515('0xcd6')](_0x579515('0x455'),{'fields':_0x579515('0x1b71'),'id':_0x1a7d49[_0x579515('0x1ef8')]()[_0x579515('0x1d04')]});}],'userProfileSection':[_0x50c0d0('0x292'),'Auth',function _0x18c445(_0x59e28f,_0x1400c8){var _0x132fbe=_0x50c0d0;return _0x1400c8[_0x132fbe('0x179e')](_0x132fbe('0xd14'))?null:_0x59e28f[_0x132fbe('0xcd6')](_0x132fbe('0x264e'),{'fields':_0x132fbe('0x12d6'),'userProfileId':_0x1400c8[_0x132fbe('0x1ef8')]()[_0x132fbe('0x1d04')],'sectionId':0xca});}],'rpcAgents':[_0x50c0d0('0x292'),function _0x326e0b(_0x2bb5fc){var _0x443fcb=_0x50c0d0;return _0x2bb5fc[_0x443fcb('0xcd6')](_0x443fcb('0x1fdb'));}]},'authenticate':!![],'permissionId':0x32a})[_0x50c0d0('0x1d72')](_0x50c0d0('0x16b4'),{'url':_0x50c0d0('0x17e4'),'controller':_0x50c0d0('0xd38'),'templateUrl':_0x29e457,'resolve':{'queues':[_0x50c0d0('0x292'),'Auth',function _0x3742b0(_0x1e2c4b,_0x4ed484){var _0x5ee2f1=_0x50c0d0;return _0x4ed484[_0x5ee2f1('0x179e')]('admin')?_0x1e2c4b[_0x5ee2f1('0xcd6')]('openchannelQueue@get',{'type':_0x5ee2f1('0x1a7a'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x1e2c4b[_0x5ee2f1('0xcd6')](_0x5ee2f1('0x197d'),{'id':_0x4ed484[_0x5ee2f1('0x1ef8')]()['userProfileId'],'section':'OpenchannelQueues','channel':_0x5ee2f1('0xaf2'),'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x50c0d0('0x2730'),function _0x5b3fc2(_0x7c8fe5,_0x34442e){var _0xba81b6=_0x50c0d0;return _0x34442e[_0xba81b6('0x179e')](_0xba81b6('0xd14'))?null:_0x7c8fe5[_0xba81b6('0xcd6')](_0xba81b6('0x455'),{'fields':_0xba81b6('0x1b71'),'id':_0x34442e[_0xba81b6('0x1ef8')]()[_0xba81b6('0x1d04')]});}],'userProfileSection':[_0x50c0d0('0x292'),_0x50c0d0('0x2730'),function _0x553cc2(_0x3d53a4,_0x3ff806){var _0x5e0b73=_0x50c0d0;return _0x3ff806[_0x5e0b73('0x179e')](_0x5e0b73('0xd14'))?null:_0x3d53a4[_0x5e0b73('0xcd6')]('userProfileSection@get',{'fields':_0x5e0b73('0x12d6'),'userProfileId':_0x3ff806[_0x5e0b73('0x1ef8')]()['userProfileId'],'sectionId':0x321});}],'rpcQueues':[_0x50c0d0('0x292'),function _0x2d2f9(_0x136f88){var _0xc07a97=_0x50c0d0;return _0x136f88['resolve'](_0xc07a97('0x7b'));}]},'authenticate':!![],'permissionId':0x32a});}angular[_0xb635d2('0x153f')](_0xb635d2('0x1c5'),[])['config'](_0x276f36)['controller']('AgentsOpenchannelRealtimeController',_0x448388)[_0xb635d2('0x1a79')]('QueuesOpenchannelRealtimeController',_0x3fd42a)[_0xb635d2('0x1324')]('helperClasses',_0xf642d6)['controller'](_0xb635d2('0x186f'),_0x115508);const _0x521981=_0x59426a['p']+_0xb635d2('0x24c8'),_0xd5894d=_0x59426a['p']+_0xb635d2('0x778'),_0x1876a0=_0x59426a['p']+_0xb635d2('0xbb2'),_0x13eadc=_0x59426a['p']+_0xb635d2('0x20f1');_0x508b86['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate','toasty',_0xb635d2('0x86e'),_0xb635d2('0x1a7'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x508b86(_0x2e46d8,_0x45b2d8,_0x1e6465,_0x4370ed,_0x452373,_0x244621,_0x1d6924,_0x56aeb7,_0x3b195b,_0x1fa071,_0x560ca6,_0x5a58d3,_0x377347,_0x42970e){var _0xd1d255=_0xb635d2,_0x39a3af=this;_0x39a3af['currentUser']=_0x560ca6[_0xd1d255('0x1ef8')](),_0x39a3af[_0xd1d255('0xcd2')]=[],_0x39a3af[_0xd1d255('0x22f1')]=_0x377347,_0x39a3af[_0xd1d255('0x5c1')]=_0x5a58d3,_0x39a3af[_0xd1d255('0xb3d')]=_0x42970e,_0x39a3af['hasModulePermissions']={},_0x39a3af[_0xd1d255('0x25ac')]=_0x39a3af[_0xd1d255('0x22f1')]&&_0x39a3af[_0xd1d255('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x39a3af['title']=_0xd1d255('0xe21'),_0x39a3af[_0xd1d255('0x1a7')]=angular['copy'](_0x3b195b),_0x39a3af[_0xd1d255('0x86e')]=_0x56aeb7,_0x39a3af[_0xd1d255('0x1280')]=![];!_0x39a3af[_0xd1d255('0x1a7')]&&(_0x39a3af[_0xd1d255('0x1a7')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x39a3af[_0xd1d255('0x13e4')]=_0xd1d255('0x151c'),_0x39a3af[_0xd1d255('0x1280')]=!![]);_0x45b2d8[_0xd1d255('0x2ef')]['id']&&(_0x39a3af['openchannelAccount'][_0xd1d255('0xf26')]=_0x45b2d8[_0xd1d255('0x2ef')]['id']);_0x39a3af['addNewOpenchannelAccount']=_0x1ff1db,_0x39a3af[_0xd1d255('0xd34')]=_0x6b7832,_0x39a3af[_0xd1d255('0x7b1')]=_0x1c7c38,_0x39a3af[_0xd1d255('0x2635')]=_0x529881,_0x39a3af['closeDialog']=_0x44480c,_0x560ca6[_0xd1d255('0x179e')](_0xd1d255('0xd14'))?_0x1fa071[_0xd1d255('0x1bbd')][_0xd1d255('0x22d5')]({'fields':'id,name','sort':_0xd1d255('0x2623')})[_0xd1d255('0xe59')][_0xd1d255('0xe19')](function(_0x2e18a0){var _0x2494fd=_0xd1d255;_0x39a3af[_0x2494fd('0x9f8')]=_0x2e18a0['rows']||[];})[_0xd1d255('0x223b')](function(_0x3bef0d){var _0x38e616=_0xd1d255;_0x1d6924[_0x38e616('0x8c8')]({'title':_0x3bef0d[_0x38e616('0x2833')]?'API:'+_0x3bef0d[_0x38e616('0x2833')]+'\x20-\x20'+_0x3bef0d['statusText']:_0x38e616('0x2012'),'msg':_0x3bef0d[_0x38e616('0x11d0')]?JSON['stringify'](_0x3bef0d['data']):_0x3bef0d[_0x38e616('0x94f')]()});}):_0x1fa071[_0xd1d255('0x1bbd')][_0xd1d255('0x22d5')]({'fields':_0xd1d255('0x104'),'sort':_0xd1d255('0x2623')})['$promise'][_0xd1d255('0xe19')](function(_0x381bb9){var _0x4592ed=_0xd1d255;_0x39a3af[_0x4592ed('0x9f8')]=_0x381bb9[_0x4592ed('0x16a7')]||[];})[_0xd1d255('0xe19')](function(){var _0x242520=_0xd1d255;return _0x1fa071[_0x242520('0xb59')][_0x242520('0x22d5')]({'userProfileId':_0x39a3af['currentUser'][_0x242520('0x1d04')],'sectionId':0x12d})['$promise'];})[_0xd1d255('0xe19')](function(_0x1892fa){var _0x297e62=_0xd1d255,_0x3fd56f=_0x1892fa&&_0x1892fa[_0x297e62('0x16a7')]?_0x1892fa['rows'][0x0]:null;if(!_0x3fd56f){var _0x5aa995=[],_0x3c881d=null;_0x39a3af[_0x297e62('0x1a7')]&&(_0x3c881d=_0x32d445()[_0x297e62('0xf15')](_0x39a3af[_0x297e62('0x9f8')],{'id':Number(_0x39a3af[_0x297e62('0x1a7')][_0x297e62('0x2463')])}));for(var _0x15f301=0x0;_0x15f301<_0x39a3af[_0x297e62('0x9f8')]['length'];_0x15f301++){_0x3c881d&&_0x39a3af[_0x297e62('0x9f8')][_0x15f301]['id']===_0x3c881d['id']&&(_0x39a3af[_0x297e62('0x9f8')][_0x15f301][_0x297e62('0x1e9d')]=![],_0x5aa995[_0x297e62('0xb76')](_0x39a3af['lists'][_0x15f301]));}_0x39a3af[_0x297e62('0x9f8')]=_0x5aa995;}else{if(!_0x3fd56f['autoAssociation'])return _0x1fa071[_0x297e62('0xd49')][_0x297e62('0x22d5')]({'sectionId':_0x3fd56f['id']})[_0x297e62('0xe59')][_0x297e62('0xe19')](function(_0x5c032a){var _0x2264b3=_0x297e62,_0x3c6054=_0x32d445()['map'](_0x5c032a['rows'],function(_0x3b57a2){var _0x394a97=a0_0x5325;return _0x32d445()[_0x394a97('0xf15')](_0x39a3af['lists'],{'id':_0x3b57a2[_0x394a97('0x1104')]});}),_0x3fc271=null;_0x39a3af[_0x2264b3('0x1a7')]&&(_0x3fc271=_0x32d445()[_0x2264b3('0xf15')](_0x39a3af[_0x2264b3('0x9f8')],{'id':Number(_0x39a3af[_0x2264b3('0x1a7')][_0x2264b3('0x2463')])}));if(_0x3fc271&&!_0x32d445()[_0x2264b3('0x201a')](_0x3c6054,['id',_0x3fc271['id']])){var _0x11bcf9=_0x32d445()[_0x2264b3('0xf15')](_0x39a3af[_0x2264b3('0x9f8')],{'id':_0x3fc271['id']});_0x11bcf9[_0x2264b3('0x1e9d')]=![],_0x3c6054['push'](_0x11bcf9);}_0x39a3af[_0x2264b3('0x9f8')]=_0x3c6054;});}})['catch'](function(_0x1eb2b2){var _0x1251cc=_0xd1d255;_0x1d6924[_0x1251cc('0x8c8')]({'title':_0x1eb2b2[_0x1251cc('0x2833')]?_0x1251cc('0x27f2')+_0x1eb2b2['status']+_0x1251cc('0x1b7c')+_0x1eb2b2[_0x1251cc('0x1fd7')]:_0x1251cc('0xd65'),'msg':_0x1eb2b2[_0x1251cc('0x11d0')]?JSON['stringify'](_0x1eb2b2['data']):_0x1eb2b2[_0x1251cc('0x94f')]()});});function _0x1ff1db(){var _0x73ce9b=_0xd1d255;_0x39a3af[_0x73ce9b('0xcd2')]=[],_0x1fa071[_0x73ce9b('0x1a7')][_0x73ce9b('0xe5e')](_0x39a3af[_0x73ce9b('0x1a7')])['$promise'][_0x73ce9b('0xe19')](function(_0x338080){var _0xe1dcd3=_0x73ce9b;_0x39a3af['openchannelAccounts']['unshift'](_0x338080[_0xe1dcd3('0x250e')]()),_0x1d6924['success']({'title':_0xe1dcd3('0x444'),'msg':_0x39a3af[_0xe1dcd3('0x1a7')]['name']?_0x39a3af[_0xe1dcd3('0x1a7')]['name']+_0xe1dcd3('0x105f'):''}),_0x44480c(_0x338080);})[_0x73ce9b('0x223b')](function(_0x217a9a){var _0x4eb2aa=_0x73ce9b;if(_0x217a9a['data']&&_0x217a9a[_0x4eb2aa('0x11d0')][_0x4eb2aa('0xcd2')]&&_0x217a9a[_0x4eb2aa('0x11d0')]['errors'][_0x4eb2aa('0x25ae')]){_0x39a3af['errors']=_0x217a9a[_0x4eb2aa('0x11d0')][_0x4eb2aa('0xcd2')]||[{'message':_0x217a9a[_0x4eb2aa('0x94f')](),'type':_0x4eb2aa('0x1265')}];for(var _0xa66c01=0x0;_0xa66c01<_0x217a9a[_0x4eb2aa('0x11d0')][_0x4eb2aa('0xcd2')][_0x4eb2aa('0x25ae')];_0xa66c01+=0x1){_0x1d6924[_0x4eb2aa('0x8c8')]({'title':_0x217a9a[_0x4eb2aa('0x11d0')][_0x4eb2aa('0xcd2')][_0xa66c01]['type'],'msg':_0x217a9a[_0x4eb2aa('0x11d0')]['errors'][_0xa66c01][_0x4eb2aa('0x27e8')]});}}else _0x1d6924[_0x4eb2aa('0x8c8')]({'title':_0x217a9a['status']?_0x4eb2aa('0x27f2')+_0x217a9a['status']+_0x4eb2aa('0x1b7c')+_0x217a9a['statusText']:_0x4eb2aa('0x1265'),'msg':_0x217a9a[_0x4eb2aa('0x11d0')]?JSON[_0x4eb2aa('0x3ad')](_0x217a9a[_0x4eb2aa('0x11d0')][_0x4eb2aa('0x27e8')]):_0x217a9a[_0x4eb2aa('0x94f')]()});});}function _0x6b7832(){var _0x210f22=_0xd1d255;_0x39a3af[_0x210f22('0xcd2')]=[],_0x1fa071[_0x210f22('0x1a7')][_0x210f22('0xa70')]({'id':_0x39a3af[_0x210f22('0x1a7')]['id']},_0x39a3af['openchannelAccount'])[_0x210f22('0xe59')][_0x210f22('0xe19')](function(_0x5a02bc){var _0x8274b8=_0x210f22,_0x1326a6=_0x32d445()[_0x8274b8('0xf15')](_0x39a3af[_0x8274b8('0x86e')],{'id':_0x5a02bc['id']});_0x1326a6&&_0x32d445()[_0x8274b8('0x1d8')](_0x1326a6,_0x32d445()[_0x8274b8('0xed5')](_0x5a02bc[_0x8274b8('0x250e')](),_0x32d445()[_0x8274b8('0x1234')](_0x1326a6))),_0x1d6924['success']({'title':_0x8274b8('0x91c'),'msg':_0x39a3af[_0x8274b8('0x1a7')]['name']?_0x39a3af[_0x8274b8('0x1a7')]['name']+_0x8274b8('0x1c19'):''}),_0x44480c(_0x5a02bc);})['catch'](function(_0xc2bd29){var _0x2b695e=_0x210f22;if(_0xc2bd29['data']&&_0xc2bd29[_0x2b695e('0x11d0')]['errors']&&_0xc2bd29[_0x2b695e('0x11d0')][_0x2b695e('0xcd2')][_0x2b695e('0x25ae')]){_0x39a3af[_0x2b695e('0xcd2')]=_0xc2bd29[_0x2b695e('0x11d0')]['errors']||[{'message':_0xc2bd29[_0x2b695e('0x94f')](),'type':'api.openchannelAccount.update'}];for(var _0x24fe31=0x0;_0x24fe31<_0xc2bd29[_0x2b695e('0x11d0')][_0x2b695e('0xcd2')][_0x2b695e('0x25ae')];_0x24fe31++){_0x1d6924[_0x2b695e('0x8c8')]({'title':_0xc2bd29[_0x2b695e('0x11d0')][_0x2b695e('0xcd2')][_0x24fe31]['type'],'msg':_0xc2bd29['data']['errors'][_0x24fe31]['message']});}}else _0x1d6924[_0x2b695e('0x8c8')]({'title':_0xc2bd29[_0x2b695e('0x2833')]?_0x2b695e('0x27f2')+_0xc2bd29[_0x2b695e('0x2833')]+'\x20-\x20'+_0xc2bd29[_0x2b695e('0x1fd7')]:_0x2b695e('0x10e7'),'msg':_0xc2bd29['data']?JSON[_0x2b695e('0x3ad')](_0xc2bd29[_0x2b695e('0x11d0')][_0x2b695e('0x27e8')]):_0xc2bd29['toString']()});});}function _0x1c7c38(_0x2f3435){var _0x2d07e4=_0xd1d255;_0x39a3af[_0x2d07e4('0xcd2')]=[];var _0x3faad1=_0x4370ed[_0x2d07e4('0xa5')]()[_0x2d07e4('0x13e4')]('Are\x20you\x20sure?')[_0x2d07e4('0xd0')](_0x2d07e4('0x951'))[_0x2d07e4('0x4d1')](_0x2d07e4('0x229d'))['ok'](_0x2d07e4('0x2198'))[_0x2d07e4('0x2c1')](_0x2d07e4('0x8a3'))[_0x2d07e4('0x1345')](_0x2f3435);_0x4370ed['show'](_0x3faad1)[_0x2d07e4('0xe19')](function(){var _0x23509b=_0x2d07e4;_0x1fa071[_0x23509b('0x1a7')][_0x23509b('0x229e')]({'id':_0x39a3af[_0x23509b('0x1a7')]['id']})[_0x23509b('0xe59')][_0x23509b('0xe19')](function(){var _0x11cc2f=_0x23509b;_0x32d445()[_0x11cc2f('0xa8b')](_0x39a3af['openchannelAccounts'],{'id':_0x39a3af[_0x11cc2f('0x1a7')]['id']}),_0x1d6924[_0x11cc2f('0x425')]({'title':_0x11cc2f('0x4fa'),'msg':(_0x39a3af[_0x11cc2f('0x1a7')][_0x11cc2f('0x2623')]||'openchannelAccount')+'\x20has\x20been\x20deleted!'}),_0x44480c(_0x39a3af['openchannelAccount']);})[_0x23509b('0x223b')](function(_0x38921d){var _0x5e63ee=_0x23509b;if(_0x38921d[_0x5e63ee('0x11d0')]&&_0x38921d['data'][_0x5e63ee('0xcd2')]&&_0x38921d[_0x5e63ee('0x11d0')][_0x5e63ee('0xcd2')][_0x5e63ee('0x25ae')]){_0x39a3af[_0x5e63ee('0xcd2')]=_0x38921d['data'][_0x5e63ee('0xcd2')]||[{'message':_0x38921d[_0x5e63ee('0x94f')](),'type':_0x5e63ee('0x17a6')}];for(var _0x2f9c45=0x0;_0x2f9c45<_0x38921d[_0x5e63ee('0x11d0')][_0x5e63ee('0xcd2')][_0x5e63ee('0x25ae')];_0x2f9c45++){_0x1d6924[_0x5e63ee('0x8c8')]({'title':_0x38921d[_0x5e63ee('0x11d0')]['errors'][_0x2f9c45][_0x5e63ee('0x62e')],'msg':_0x38921d[_0x5e63ee('0x11d0')]['errors'][_0x2f9c45][_0x5e63ee('0x27e8')]});}}else _0x1d6924[_0x5e63ee('0x8c8')]({'title':_0x38921d['status']?_0x5e63ee('0x27f2')+_0x38921d[_0x5e63ee('0x2833')]+_0x5e63ee('0x1b7c')+_0x38921d[_0x5e63ee('0x1fd7')]:'api.openchannelAccount.delete','msg':_0x38921d[_0x5e63ee('0x11d0')]?JSON['stringify'](_0x38921d[_0x5e63ee('0x11d0')][_0x5e63ee('0x27e8')]):_0x38921d[_0x5e63ee('0x27e8')]||_0x38921d[_0x5e63ee('0x94f')]()});});},function(){});}function _0x529881(_0x5c2a56){return _0x5c2a56===null?undefined:new Date(_0x5c2a56);}function _0x44480c(_0x40508a){var _0x447d1a=_0xd1d255;_0x4370ed[_0x447d1a('0x11ed')](_0x40508a);}}const _0x57be12=_0x508b86,_0x2f3cbe=_0x59426a['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html',_0x11b671=_0x59426a['p']+_0xb635d2('0x3cb'),_0x512a72=_0x59426a['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html',_0x4e4ce8=_0x59426a['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html',_0x41a5da=_0x59426a['p']+_0xb635d2('0x708'),_0x4f9354=_0x59426a['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html',_0x31674b=_0x59426a['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html',_0x5f3fdd=_0x59426a['p']+_0xb635d2('0x2ac'),_0x35fecc=_0x59426a['p']+_0xb635d2('0xfcd'),_0x2279ce=_0x59426a['p']+_0xb635d2('0x236c');_0x334603[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];var _0x3d498b={'agent':_0x2f3cbe,'autoreply':_0x11b671,'close':_0x512a72,'gotoif':_0x4e4ce8,'gotop':_0x41a5da,'interval':_0x4f9354,'noop':_0x31674b,'queue':_0x5f3fdd,'system':_0x35fecc,'tag':_0x2279ce};function _0x334603(_0x576adc,_0x12610c,_0x24b6c0,_0x1e4588,_0x7d9d5c){var _0x4f2803=_0xb635d2,_0x4a5f00=this;_0x4a5f00[_0x4f2803('0x15a5')]=_0x7d9d5c[_0x4f2803('0x1ef8')](),_0x4a5f00[_0x4f2803('0x1a7')]={},_0x4a5f00[_0x4f2803('0x570')]={'count':0x0,'rows':[]},_0x4a5f00[_0x4f2803('0xca2')]=[],_0x4a5f00[_0x4f2803('0xb3d')],_0x4a5f00[_0x4f2803('0xa16')]={'sort':'priority'},_0x4a5f00[_0x4f2803('0x23bb')]=_0x32d445()[_0x4f2803('0x1337')](_0x32d445()[_0x4f2803('0x14c')]([{'app':_0x4f2803('0xc11'),'appType':_0x4f2803('0xc11'),'type':'dialogflow','icon':_0x4f2803('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4f2803('0x126b'),'name':_0x4f2803('0x6e4'),'type':_0x4f2803('0x1bc6'),'required':!![],'param':0x0},{'title':_0x4f2803('0x174b'),'name':_0x4f2803('0x174b'),'type':_0x4f2803('0x2e6'),'defaultValue':_0x4f2803('0xc5a'),'values':[{'option':_0x4f2803('0x1298'),'value':_0x4f2803('0x1d90')},{'option':_0x4f2803('0x1a01'),'value':_0x4f2803('0xc5a')},{'option':'German','value':_0x4f2803('0x594')},{'option':_0x4f2803('0x24dd'),'value':_0x4f2803('0x1d9b')},{'option':_0x4f2803('0x74e'),'value':_0x4f2803('0x105c')},{'option':'French','value':_0x4f2803('0x23ec')},{'option':'Indonesian','value':_0x4f2803('0xf32')},{'option':_0x4f2803('0x2888'),'value':'\x27ja\x27'},{'option':_0x4f2803('0xa60'),'value':_0x4f2803('0x1c56')},{'option':_0x4f2803('0xcba'),'value':'\x27nl\x27'},{'option':_0x4f2803('0x19b5'),'value':_0x4f2803('0x16f2')},{'option':_0x4f2803('0x82f'),'value':_0x4f2803('0x1d6a')},{'option':'Portuguese\x20(Nrazilian)','value':'\x27pt-br\x27'},{'option':_0x4f2803('0x1bd8'),'value':'\x27ru\x27'},{'option':'Swedish','value':_0x4f2803('0x249d')},{'option':'Thai','value':_0x4f2803('0x3c9')},{'option':_0x4f2803('0x6d9'),'value':_0x4f2803('0x20df')},{'option':_0x4f2803('0x75c'),'value':_0x4f2803('0xaf5')},{'option':'Chinese\x20(Hong\x20Kong)','value':_0x4f2803('0x152e')},{'option':_0x4f2803('0x12ff'),'value':_0x4f2803('0xafb')}],'required':!![],'param':0x1},{'title':_0x4f2803('0xfcc'),'name':'welcomemessage','type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x4f2803('0x1321'),'appType':_0x4f2803('0x1321'),'type':_0x4f2803('0x1321'),'icon':_0x4f2803('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'accesskeyid','name':'accesskeyid','type':_0x4f2803('0x1bc6'),'required':!![],'param':0x0},{'title':_0x4f2803('0x700'),'name':'secretaccesskey','type':_0x4f2803('0x1bc6'),'required':!![],'param':0x1},{'title':_0x4f2803('0x206a'),'name':_0x4f2803('0x206a'),'type':_0x4f2803('0x2e6'),'defaultValue':_0x4f2803('0x135a'),'values':[{'option':_0x4f2803('0x26e'),'value':_0x4f2803('0x135a')},{'option':_0x4f2803('0x60c'),'value':'\x27us-west-2\x27'},{'option':_0x4f2803('0x21dc'),'value':_0x4f2803('0x1117')},{'option':_0x4f2803('0xcd'),'value':_0x4f2803('0x170f')}],'required':!![],'param':0x2},{'title':_0x4f2803('0x191a'),'name':_0x4f2803('0x191a'),'type':'text','required':!![],'param':0x3},{'title':_0x4f2803('0xfcc'),'name':_0x4f2803('0xfcc'),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':_0x4f2803('0x2102'),'appType':'interval','types':['always','custom',_0x4f2803('0x15a8')],'fields':[],'isApp':![]},{'app':_0x4f2803('0xc09'),'appType':'noop','type':_0x4f2803('0xc09'),'icon':_0x4f2803('0x27be'),'interval':_0x4f2803('0x2292'),'required':!![],'isApp':!![],'fields':[{'title':_0x4f2803('0x653'),'name':_0x4f2803('0x2'),'type':'text','param':0x0}]},{'app':_0x4f2803('0x1917'),'appType':'system','type':_0x4f2803('0x1917'),'icon':_0x4f2803('0x27be'),'interval':_0x4f2803('0x2292'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x4f2803('0x1a9e'),'field':{'name':_0x4f2803('0x19a5'),'key':_0x4f2803('0x2623')},'route':_0x4f2803('0x19a5'),'filters':{'fields':_0x4f2803('0x104'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x4f2803('0x19b8'),'name':_0x4f2803('0x19a'),'type':_0x4f2803('0x1bc6'),'required':!![],'param':0x0},{'title':_0x4f2803('0x1a9d'),'name':'variable','type':_0x4f2803('0x14b8'),'values':_0x4f2803('0x1a9e'),'value':'variable.name','option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x4f2803('0x1b16')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x4f2803('0x16fe'),'appType':_0x4f2803('0x16fe'),'type':_0x4f2803('0x1fa1'),'icon':'icon-apps','interval':_0x4f2803('0x2292'),'isApp':!![],'fields':[{'title':_0x4f2803('0x23fb'),'name':'priority','type':_0x4f2803('0x1c60'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x4f2803('0x22c3'),'appType':'gotoif','type':_0x4f2803('0x22c3'),'icon':_0x4f2803('0x27be'),'interval':_0x4f2803('0x2292'),'isApp':!![],'fields':[{'title':_0x4f2803('0x48c'),'name':_0x4f2803('0x1c03'),'type':_0x4f2803('0x1bc6'),'required':!![],'param':0x0},{'title':_0x4f2803('0x50'),'name':_0x4f2803('0x50'),'type':_0x4f2803('0x1c60'),'min':0x1,'required':!![],'param':0x1},{'title':_0x4f2803('0x347'),'name':_0x4f2803('0x347'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x4f2803('0x26a8'),'appType':_0x4f2803('0x26a8'),'foreignKey':'OpenchannelQueueId','type':_0x4f2803('0x26a8'),'icon':_0x4f2803('0x27be'),'interval':_0x4f2803('0x2292'),'isApp':!![],'extraApi':[{'name':_0x4f2803('0x671'),'field':{'name':_0x4f2803('0x26a8'),'key':'name'},'route':_0x4f2803('0x22b1'),'filters':{'fields':_0x4f2803('0x1555'),'sort':_0x4f2803('0x2623'),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':_0x4f2803('0x9'),'name':'queue','type':_0x4f2803('0x14b8'),'values':_0x4f2803('0x671'),'value':'queue.name','option':_0x4f2803('0x15df'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x4f2803('0x784'),'name':_0x4f2803('0x2058'),'type':_0x4f2803('0x1c60'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x4f2803('0x108'),'appType':_0x4f2803('0x108'),'type':'agent','foreignKey':_0x4f2803('0x43d'),'icon':_0x4f2803('0x27be'),'interval':_0x4f2803('0x2292'),'isApp':!![],'extraApi':[{'name':_0x4f2803('0x29b'),'field':{'name':_0x4f2803('0x108'),'key':'name'},'route':'user','filters':{'fields':'id,name','sort':_0x4f2803('0x2623'),'role':_0x4f2803('0x108'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x4f2803('0x142e'),'name':_0x4f2803('0x108'),'type':'apiselect','values':_0x4f2803('0x29b'),'value':'agent.name','option':'agent.name','required':!![],'param':0x0},{'title':_0x4f2803('0x784'),'name':'timeout','type':_0x4f2803('0x1c60'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x4f2803('0x400'),'appType':_0x4f2803('0x400'),'type':_0x4f2803('0x400'),'icon':'icon-apps','interval':_0x4f2803('0x2292'),'isApp':!![],'fields':[{'title':_0x4f2803('0x1ec4'),'name':_0x4f2803('0x1ec4'),'type':_0x4f2803('0x2e6'),'defaultValue':'1','values':[{'option':_0x4f2803('0x12c2'),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0x4f2803('0x2115'),'name':_0x4f2803('0x1bc6'),'type':_0x4f2803('0x777'),'required':!![],'param':0x1}]},{'app':_0x4f2803('0x1886'),'appType':_0x4f2803('0x1886'),'type':_0x4f2803('0x1886'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4f2803('0x1892'),'name':'disposition','type':_0x4f2803('0x1bc6'),'required':!![],'param':0x0}]},{'app':_0x4f2803('0x2037'),'appType':_0x4f2803('0x2037'),'type':_0x4f2803('0x2037'),'foreignKey':_0x4f2803('0x30a'),'icon':_0x4f2803('0x27be'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x4f2803('0x1105'),'field':{'name':_0x4f2803('0x2037'),'key':'name'},'route':_0x4f2803('0x2037'),'filters':{'fields':_0x4f2803('0x104'),'sort':_0x4f2803('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x4f2803('0x1172'),'name':_0x4f2803('0x2037'),'type':_0x4f2803('0x14b8'),'values':'tags','value':'tag.name','option':'tag.name','required':!![],'param':0x0}]}],[_0x4f2803('0xf2b')]),{'isApp':![]}),_0x4a5f00[_0x4f2803('0x15a8')]={'group':{'name':_0x4f2803('0x866'),'pull':_0x4f2803('0x2384')},'animation':0x64,'sort':![]},_0x4a5f00[_0x4f2803('0x2358')]={'group':{'name':'opt2','put':_0x4f2803('0x866')},'animation':0x64,'onAdd':function _0xe7f05e(_0xe0e26c){var _0x1c08cd=_0x4f2803;_0x1efe71(_0xe0e26c,_0xe0e26c[_0x1c08cd('0x11ad')]);},'onSort':function _0xfc540(){_0x305a16();}},_0x4a5f00['init']=_0x240634,_0x4a5f00['deleteConfirm']=_0x12628c,_0x4a5f00[_0x4f2803('0x1c75')]=_0x55fc71,_0x4a5f00['editOpenchannelAccountApp']=_0x1efe71,_0x4a5f00[_0x4f2803('0xf50')]=_0xd955c6,_0x4a5f00[_0x4f2803('0x691')]=_0x353de1,_0x4a5f00[_0x4f2803('0x1e22')]=_0x53c623,_0x4a5f00[_0x4f2803('0x20b4')]=_0x305a16,_0x4a5f00[_0x4f2803('0x157')]=_0x178a95;function _0x240634(_0x19ad53,_0xb1c480){var _0x49827b=_0x4f2803;_0x4a5f00[_0x49827b('0x1a7')]=_0x19ad53,_0x4a5f00[_0x49827b('0xb3d')]=typeof _0xb1c480!=='undefined'?_0xb1c480:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a5f00[_0x49827b('0x2358')][_0x49827b('0x1ebc')]=!_0x4a5f00[_0x49827b('0xb3d')][_0x49827b('0x12bc')]?!![]:![],_0x4a5f00[_0x49827b('0xa16')]['id']=_0x19ad53['id'],_0x4a5f00[_0x49827b('0xa16')][_0x49827b('0x1144')]=!![],_0x4a5f00[_0x49827b('0xa16')][_0x49827b('0x1bbe')]=!![],_0x4a5f00['getOpenchannelAccountApps'](),_0x4a5f00[_0x49827b('0x157')]();}function _0x12628c(_0x48d74b,_0x17a915,_0x59cada){var _0x58481f=_0x4f2803,_0x35fdbe=_0x12610c[_0x58481f('0xa5')]()[_0x58481f('0x13e4')](_0x58481f('0x21ed'))[_0x58481f('0x221c')](_0x58481f('0xab2')+_0x48d74b[_0x58481f('0xf2b')]+_0x58481f('0x27bb')+_0x58481f('0x21bd'))[_0x58481f('0x4d1')](_0x58481f('0x21d1'))[_0x58481f('0x1345')](_0x59cada)['ok']('OK')['cancel']('CANCEL');_0x12610c[_0x58481f('0x26b2')](_0x35fdbe)['then'](function(){var _0x54770e=_0x58481f;_0x4a5f00['openchannelAccountApps'][_0x54770e('0x16a7')]['splice'](_0x17a915,0x1),_0x305a16();},function(){var _0x1868d2=_0x58481f;console[_0x1868d2('0x1fe9')]('CANCEL');});}function _0x1efe71(_0x16e782,_0x5bf642){var _0x337005=_0x4f2803;if(_0x4a5f00[_0x337005('0x570')][_0x337005('0x16a7')]['length']){var _0x391875=_0x4a5f00[_0x337005('0x570')][_0x337005('0x16a7')][_0x5bf642]?_0x4a5f00['openchannelAccountApps']['rows'][_0x5bf642]:_0x4a5f00[_0x337005('0x570')][_0x337005('0x16a7')][0x0],_0x573656=(_0x391875['appType']||_0x391875[_0x337005('0xf2b')])['toLowerCase']();_0x12610c[_0x337005('0x26b2')]({'controller':'EditOpenchannelAccountApp'[_0x337005('0x1007')](_0x573656,'DialogController'),'controllerAs':'vm','templateUrl':_0x3d498b[_0x573656],'parent':angular[_0x337005('0x24a1')](_0x24b6c0[_0x337005('0x19b2')]),'targetEvent':_0x16e782,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x391875,'openchannelAccount':_0x4a5f00['openchannelAccount'],'crudPermissions':_0x4a5f00['crudPermissions']}})[_0x337005('0xe19')](function(_0x574aaa){var _0x534263=_0x337005;_0x574aaa&&(_0x574aaa['id']?_0x4a5f00['openchannelAccountApps'][_0x534263('0x16a7')][_0x5bf642]=_0x574aaa:_0x4a5f00[_0x534263('0x570')][_0x534263('0x16a7')][_0x534263('0x1c8e')](_0x5bf642,0x0,_0x574aaa),_0x305a16());})[_0x337005('0x223b')](function(_0x1e92a2){var _0x53dc15=_0x337005;_0x1e92a2&&_0x1e4588['error']({'title':_0x1e92a2[_0x53dc15('0x2833')]?_0x53dc15('0x27f2')+_0x1e92a2[_0x53dc15('0x2833')]+'\x20-\x20'+_0x1e92a2[_0x53dc15('0x1fd7')]:_0x53dc15('0x1c4b'),'msg':_0x1e92a2['data']?JSON['stringify'](_0x1e92a2['data']):_0x1e92a2[_0x53dc15('0x94f')]()});});}}function _0xd955c6(_0x179cdf,_0x15e31c){var _0x38545a=_0x4f2803;if(_0x4a5f00[_0x38545a('0x570')][_0x38545a('0x16a7')][_0x38545a('0x25ae')]){var _0x1de3bc=_0x4a5f00[_0x38545a('0x570')]['rows'][_0x15e31c]?_0x4a5f00[_0x38545a('0x570')][_0x38545a('0x16a7')][_0x15e31c]:_0x4a5f00[_0x38545a('0x570')]['rows'][0x0];_0x12610c['show']({'controller':_0x38545a('0x978'),'controllerAs':'vm','templateUrl':_0x4f9354,'parent':angular[_0x38545a('0x24a1')](_0x24b6c0[_0x38545a('0x19b2')]),'targetEvent':_0x179cdf,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1de3bc[_0x38545a('0x134c')],'IntervalId':_0x1de3bc['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x4a5f00['crudPermissions']}})[_0x38545a('0xe19')](function(_0x5cf758){var _0x41ebbf=_0x38545a;_0x5cf758&&(_0x1de3bc[_0x41ebbf('0x134c')]=_0x5cf758[_0x41ebbf('0x134c')]||'*,*,*,*',_0x1de3bc[_0x41ebbf('0x1fc1')]=_0x5cf758[_0x41ebbf('0x1fc1')]||null,_0x305a16());});}}function _0x305a16(){var _0x4a673f=_0x4f2803,_0x2f0eb5=0x1,_0x326ad4=[];for(var _0x3ecf8e=0x0;_0x3ecf8e<_0x4a5f00['openchannelAccountApps'][_0x4a673f('0x16a7')]['length'];_0x3ecf8e++){var _0x4e1aab=_0x4a5f00[_0x4a673f('0x570')][_0x4a673f('0x16a7')][_0x3ecf8e],_0x3edb7c=[],_0x1b9209=[];_0x4e1aab[_0x4a673f('0x10e0')]=_0x4e1aab['interval']!==_0x4a673f('0x2292')?[_0x4e1aab['interval']]:_0x4e1aab[_0x4a673f('0x1fc1')]?_0x32d445()['map'](_0x32d445()['filter'](_0x4a5f00[_0x4a673f('0x10e0')]['rows'],{'IntervalId':_0x4e1aab[_0x4a673f('0x1fc1')]}),'interval'):[],_0x4e1aab['context']=_0x4a5f00[_0x4a673f('0x1a7')][_0x4a673f('0x1318')],_0x4e1aab[_0x4a673f('0x632')]=_0x4a5f00[_0x4a673f('0x1a7')][_0x4a673f('0x632')],_0x4e1aab['type']&&(_0x4e1aab[_0x4a673f('0x62e')]=_0x4e1aab[_0x4a673f('0x62e')][_0x4a673f('0x20dd')]()),_0x4e1aab['priority']=_0x3edb7c['length']?_0x32d445()[_0x4a673f('0x27ed')](_0x3edb7c)[_0x4a673f('0xb33')]+0x1:_0x2f0eb5,_0x2f0eb5=(_0x1b9209[_0x4a673f('0x25ae')]?_0x32d445()[_0x4a673f('0x27ed')](_0x1b9209)[_0x4a673f('0xb33')]:_0x4e1aab['priority'])+0x1,_0x326ad4=_0x32d445()[_0x4a673f('0x1007')](_0x326ad4,_0x3edb7c,[_0x4e1aab],_0x1b9209);}_0x576adc[_0x4a673f('0x1a7')][_0x4a673f('0x25d9')]({'id':_0x4a5f00[_0x4a673f('0x1a7')]['id']},_0x32d445()[_0x4a673f('0x14c')](_0x326ad4,'priority'))[_0x4a673f('0xe59')][_0x4a673f('0xe19')](function(_0x5af5e9){var _0x2d4ccd=_0x4a673f;_0x4a5f00[_0x2d4ccd('0x570')][_0x2d4ccd('0x16a7')]=_0x5af5e9[_0x2d4ccd('0x16a7')];})[_0x4a673f('0x223b')](function(_0x337fb2){console['error'](_0x337fb2);});}function _0x5a5ee8(_0x10e231){var _0x2d6460=_0x4f2803;_0x4a5f00[_0x2d6460('0x570')]=_0x10e231||{'count':0x0,'rows':[]};}function _0x178a95(){var _0x32c256=_0x4f2803;return _0x576adc[_0x32c256('0x134c')][_0x32c256('0x22d5')]({'fields':_0x32c256('0x1a19')})[_0x32c256('0xe59')]['then'](function(_0x3b01bd){_0x4a5f00['intervals']=_0x3b01bd;})[_0x32c256('0x223b')](function(_0x5045cf){console['error'](_0x5045cf);});}function _0x55fc71(){var _0x1b2c26=_0x4f2803;_0x4a5f00['promise']=_0x576adc['openchannelAccount'][_0x1b2c26('0x1654')](_0x4a5f00[_0x1b2c26('0xa16')],_0x5a5ee8)[_0x1b2c26('0xe59')];}function _0x353de1(_0x887b07){var _0xc9b6d1=_0x4f2803;_0x32d445()['remove'](_0x4a5f00[_0xc9b6d1('0x570')][_0xc9b6d1('0x16a7')],{'id':_0x887b07['id']}),_0x305a16(),_0x1e4588[_0xc9b6d1('0x425')]({'title':_0xc9b6d1('0x13bf'),'msg':_0x887b07[_0xc9b6d1('0xf2b')]?_0x887b07[_0xc9b6d1('0xf2b')]+_0xc9b6d1('0x2182'):''});}function _0x53c623(_0x4bb79b){var _0x47604d=_0x4f2803,_0x15fd3e=_0x12610c[_0x47604d('0xa5')]()[_0x47604d('0x13e4')](_0x47604d('0x6de'))[_0x47604d('0x221c')](_0x47604d('0xab2')+_0x4a5f00[_0x47604d('0xca2')][_0x47604d('0x25ae')]+_0x47604d('0x5bc')+'\x20will\x20be\x20deleted.')[_0x47604d('0x4d1')](_0x47604d('0x17bf'))['targetEvent'](_0x4bb79b)['ok']('OK')[_0x47604d('0x2c1')](_0x47604d('0x17'));_0x12610c[_0x47604d('0x26b2')](_0x15fd3e)['then'](function(){var _0xbe3b23=_0x47604d;_0x4a5f00[_0xbe3b23('0xca2')][_0xbe3b23('0x1d7e')](function(_0x522191){var _0x42f693=_0xbe3b23;_0x32d445()['remove'](_0x4a5f00[_0x42f693('0x570')][_0x42f693('0x16a7')],{'id':_0x522191['id']});}),_0x4a5f00[_0xbe3b23('0xca2')]=[],_0x305a16();});}}const _0x184929=_0x334603;_0x40734a[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0xffc'),_0xb635d2('0x1a7'),'openchannelAccounts',_0xb635d2('0x24e1'),'$translate',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x40734a(_0x5ef96e,_0x350133,_0x56f55b,_0x50d935,_0x21bb1b,_0x41f981,_0x395db4,_0x1c6f17,_0x128867,_0x159764){var _0x222e1d=_0xb635d2,_0x40ccc4=this;_0x40ccc4[_0x222e1d('0x15a5')]=_0x128867[_0x222e1d('0x1ef8')](),_0x40ccc4[_0x222e1d('0x1a7')]=_0x21bb1b,_0x40ccc4['crudPermissions']=_0x159764,_0x40ccc4[_0x222e1d('0x24e1')]=_0x395db4,_0x40ccc4['items']=[],_0x40ccc4['allowedItems']=[],_0x40ccc4['selectedItems']=[],_0x40ccc4[_0x222e1d('0x286c')]=[],_0x40ccc4[_0x222e1d('0xf79')]=[],_0x40ccc4[_0x222e1d('0x16e7')]=![],_0x40ccc4[_0x222e1d('0x888')]=_0x446fe8,_0x40ccc4['saveAgents']=_0x3d226f,_0x40ccc4[_0x222e1d('0x2584')]=_0x55c8da,_0x40ccc4[_0x222e1d('0xc00')]={'readOnly':!_0x40ccc4['crudPermissions']['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x222e1d('0xe11'),'line2':[_0x222e1d('0x2623'),'internal'],'line3':'','labelAll':_0x1c6f17[_0x222e1d('0x2159')](_0x222e1d('0x14ca')),'labelSelected':_0x1c6f17[_0x222e1d('0x2159')](_0x222e1d('0x21b9')),'transferCallback':function _0xf49dcd(){var _0x554122=_0x222e1d,_0x4cc0c8=_0x32d445()[_0x554122('0x118')](_0x40ccc4[_0x554122('0xf79')],_0x40ccc4['selectedItems'],'id');_0x40ccc4[_0x554122('0x16e7')]=_0x32d445()['isEmpty'](_0x4cc0c8)?![]:!![];}};function _0x446fe8(){var _0x216511=_0x222e1d;return _0x128867[_0x216511('0x179e')](_0x216511('0xd14'))?_0x1f33a3()[_0x216511('0x223b')](function(_0x5bb346){var _0x13c558=_0x216511;_0x56f55b[_0x13c558('0x8c8')]({'title':_0x5bb346[_0x13c558('0x2833')]?'API:'+_0x5bb346[_0x13c558('0x2833')]+'\x20-\x20'+_0x5bb346[_0x13c558('0x1fd7')]:'SYSTEM:GET_AGENTS','msg':_0x5bb346['status']?JSON[_0x13c558('0x3ad')](_0x5bb346[_0x13c558('0x11d0')]):_0x5bb346[_0x13c558('0x94f')]()});}):_0x47d1e2()[_0x216511('0xe19')](function(_0xb9a084){var _0x4ce9f6=_0x216511;return _0x40ccc4[_0x4ce9f6('0x1e59')]=_0xb9a084,_0x1f33a3();})[_0x216511('0x223b')](function(_0x32f453){var _0x5e3cae=_0x216511;_0x56f55b['error']({'title':_0x32f453['status']?_0x5e3cae('0x27f2')+_0x32f453[_0x5e3cae('0x2833')]+_0x5e3cae('0x1b7c')+_0x32f453['statusText']:_0x5e3cae('0x1e86'),'msg':_0x32f453[_0x5e3cae('0x2833')]?JSON[_0x5e3cae('0x3ad')](_0x32f453['data']):_0x32f453[_0x5e3cae('0x94f')]()});});}function _0x47d1e2(){return _0x350133(function(_0x222b4f,_0x35c87f){var _0x44eec9=a0_0x5325;_0x50d935[_0x44eec9('0xb59')]['get']({'userProfileId':_0x40ccc4[_0x44eec9('0x15a5')][_0x44eec9('0x1d04')],'name':_0x44eec9('0xd61')})[_0x44eec9('0xe59')]['then'](function(_0x481cf5){var _0x376cf3=_0x44eec9,_0x15dfc6=_0x481cf5&&_0x481cf5[_0x376cf3('0x16a7')]?_0x481cf5['rows'][0x0]:null;_0x222b4f(_0x15dfc6);})['catch'](function(_0x5cd9c6){_0x35c87f(_0x5cd9c6);});});}function _0x1f33a3(){return _0x350133(function(_0x13fde4,_0x25736a){var _0x32ccdd=a0_0x5325;return _0x1bbc43()[_0x32ccdd('0xe19')](function(_0x5879c9){var _0x59a834=_0x32ccdd;return _0x40ccc4[_0x59a834('0xe4b')]=_0x5879c9[_0x59a834('0x16a7')]?_0x5879c9['rows']:[],_0x128867[_0x59a834('0x179e')]('admin')?_0x5879c9:_0x40ccc4[_0x59a834('0x1e59')]?_0x40ccc4[_0x59a834('0x1e59')][_0x59a834('0x11fd')]?_0x5879c9:_0x5c5f51():null;})[_0x32ccdd('0xe19')](function(_0xa272c3){var _0x45914e=_0x32ccdd,_0x5b5636=_0xa272c3&&_0xa272c3['rows']?_0xa272c3['rows']:[];return _0x40ccc4['allowedItems']=_0x32d445()['map'](_0x5b5636,function(_0x551917){var _0x225f27=a0_0x5325;return _0x32d445()[_0x225f27('0xf15')](_0x40ccc4[_0x225f27('0xe4b')],{'id':_0x128867[_0x225f27('0x179e')](_0x225f27('0xd14'))||_0x40ccc4['section'][_0x225f27('0x11fd')]?_0x551917['id']:_0x551917[_0x225f27('0x1104')]});}),_0x40ccc4[_0x45914e('0x286c')]=angular[_0x45914e('0x89')](_0x40ccc4['allowedItems']),_0x40ccc4[_0x45914e('0xe4b')]['forEach'](function(_0x4bfbfa){var _0x28b811=_0x45914e,_0x6b42a=_0x32d445()['find'](_0x40ccc4[_0x28b811('0x1884')],{'id':_0x4bfbfa['id']});_0x128867['hasRole'](_0x28b811('0xd14'))?_0x4bfbfa['isValid']=!![]:_0x4bfbfa[_0x28b811('0x1768')]=typeof _0x6b42a!=='undefined'?!![]:![];}),_0x5a9d58();})['then'](function(_0x4034a6){var _0x30b937=_0x32ccdd,_0x5b73c1=_0x4034a6&&_0x4034a6['rows']?_0x4034a6[_0x30b937('0x16a7')]:[];_0x40ccc4[_0x30b937('0x2273')]=_0x32d445()[_0x30b937('0x65a')](_0x5b73c1,function(_0x60065){var _0x2fd5b0=_0x30b937,_0x12e2d1=_0x32d445()['find'](_0x40ccc4[_0x2fd5b0('0xe4b')],{'id':_0x60065['id']});return _0x12e2d1['penalty']=_0x60065[_0x2fd5b0('0x6c6')]?_0x2fd5b0('0x815')+_0x60065[_0x2fd5b0('0x6c6')][_0x2fd5b0('0x21e3')]:'',_0x12e2d1[_0x2fd5b0('0x1b66')]=typeof _0x60065[_0x2fd5b0('0x1b66')]!==_0x2fd5b0('0x1143')?'<'+_0x60065['internal']+'>':'',_0x12e2d1;}),_0x40ccc4[_0x30b937('0xf79')]=angular[_0x30b937('0x89')](_0x40ccc4[_0x30b937('0x2273')]),_0x40ccc4[_0x30b937('0xc00')][_0x30b937('0x2273')]=_0x40ccc4[_0x30b937('0x2273')],_0x40ccc4[_0x30b937('0xc00')][_0x30b937('0xe4b')]=_0x32d445()[_0x30b937('0x501')](_0x40ccc4[_0x30b937('0x1884')],_0x40ccc4[_0x30b937('0xc00')][_0x30b937('0x2273')],'id'),_0x13fde4();})[_0x32ccdd('0x223b')](function(_0x21df5c){_0x25736a(_0x21df5c);});});}function _0x5c5f51(){return _0x350133(function(_0x5a4c81,_0x59f927){var _0x285e77=a0_0x5325;return _0x50d935['userProfileResource'][_0x285e77('0x22d5')]({'sectionId':_0x40ccc4[_0x285e77('0x1e59')]['id'],'nolimit':!![]})[_0x285e77('0xe59')]['then'](function(_0x319ec2){_0x5a4c81(_0x319ec2);})[_0x285e77('0x223b')](function(_0x450cce){_0x59f927(_0x450cce);});});}function _0x5a9d58(){return _0x350133(function(_0x2ada75,_0x3bbb22){var _0x2caf30=a0_0x5325;return _0x50d935[_0x2caf30('0x1a7')]['getAgents']({'id':_0x40ccc4[_0x2caf30('0x1a7')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x2caf30('0xe59')][_0x2caf30('0xe19')](function(_0x474407){_0x2ada75(_0x474407);})[_0x2caf30('0x223b')](function(_0x1aa29f){_0x3bbb22(_0x1aa29f);});});}function _0x1bbc43(){return _0x350133(function(_0x559885,_0x39eb32){var _0x3612c5=a0_0x5325;return _0x50d935[_0x3612c5('0x10c6')][_0x3612c5('0x22d5')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x3612c5('0x108')})[_0x3612c5('0xe59')][_0x3612c5('0xe19')](function(_0x3cd0ba){_0x559885(_0x3cd0ba);})['catch'](function(_0x10e41a){_0x39eb32(_0x10e41a);});});}function _0x4b6f0a(_0x503b01){return _0x350133(function(_0x4f6317,_0x21bf7f){var _0x5732cd=a0_0x5325;_0x32d445()['isEmpty'](_0x503b01)?_0x4f6317():_0x50d935[_0x5732cd('0x1a7')]['addAgents']({'id':_0x40ccc4[_0x5732cd('0x1a7')]['id'],'ids':_0x32d445()['map'](_0x503b01,'id')})[_0x5732cd('0xe59')][_0x5732cd('0xe19')](function(){_0x4f6317();})[_0x5732cd('0x223b')](function(_0x505e86){_0x21bf7f(_0x505e86);});});}function _0x2b30b1(_0x1e8f0e){return _0x350133(function(_0x4a8609,_0x35f390){var _0xb125c3=a0_0x5325;_0x32d445()[_0xb125c3('0x14b4')](_0x1e8f0e)?_0x4a8609():_0x50d935[_0xb125c3('0x1a7')][_0xb125c3('0x6aa')]({'id':_0x40ccc4['openchannelAccount']['id'],'ids':_0x32d445()[_0xb125c3('0x65a')](_0x1e8f0e,'id')})[_0xb125c3('0xe59')]['then'](function(){_0x4a8609();})[_0xb125c3('0x223b')](function(_0xae25fd){_0x35f390(_0xae25fd);});});}function _0x3d226f(){var _0x2c10d5=_0x222e1d,_0x5a4cd4=_0x32d445()[_0x2c10d5('0x501')](_0x40ccc4[_0x2c10d5('0xf79')],_0x40ccc4[_0x2c10d5('0x2273')],'id'),_0x254311=_0x32d445()[_0x2c10d5('0x501')](_0x40ccc4['selectedItems'],_0x40ccc4[_0x2c10d5('0xf79')],'id');return _0x2b30b1(_0x5a4cd4)[_0x2c10d5('0xe19')](function(){return _0x4b6f0a(_0x254311);})['then'](function(){var _0x4b6f8f=_0x2c10d5;_0x40ccc4[_0x4b6f8f('0x16e7')]=![],_0x40ccc4[_0x4b6f8f('0x286c')]=angular['copy'](_0x40ccc4['allowedItems']),_0x40ccc4[_0x4b6f8f('0xf79')]=angular[_0x4b6f8f('0x89')](_0x40ccc4[_0x4b6f8f('0x2273')]),_0x56f55b[_0x4b6f8f('0x425')]({'title':_0x4b6f8f('0x1dca'),'msg':_0x4b6f8f('0x25d')});})[_0x2c10d5('0x223b')](function(_0x2a3576){var _0x2336a4=_0x2c10d5;_0x56f55b[_0x2336a4('0x8c8')]({'title':_0x2a3576[_0x2336a4('0x2833')]?_0x2336a4('0x27f2')+_0x2a3576[_0x2336a4('0x2833')]+'\x20-\x20'+_0x2a3576[_0x2336a4('0x1fd7')]:_0x2336a4('0x2168'),'msg':_0x2a3576[_0x2336a4('0x2833')]?JSON[_0x2336a4('0x3ad')](_0x2a3576[_0x2336a4('0x11d0')]):_0x2a3576[_0x2336a4('0x94f')]()});});}function _0x55c8da(){var _0x2579d3=_0x222e1d;_0x5ef96e[_0x2579d3('0x11ed')]();}}const _0x2c2fc5=_0x40734a;_0x2cdfcf[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x7b3'),_0xb635d2('0x1a7'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x2cdfcf(_0x2c1eb7,_0x146943,_0x3ca1a5,_0x4a957e,_0x472a41,_0x1272f2,_0x517f35,_0x4a9d96){var _0x16170a=_0xb635d2,_0x386dd3=this;_0x386dd3[_0x16170a('0x15a5')]=_0x517f35['getCurrentUser'](),_0x386dd3[_0x16170a('0xcd2')]=[],_0x386dd3[_0x16170a('0x13e4')]='OPENCHANNEL.EDIT_'+(_0x4a957e['appType']||_0x4a957e[_0x16170a('0xf2b')])[_0x16170a('0x25f7')](),_0x386dd3['agent']=angular[_0x16170a('0x89')](_0x4a957e),_0x386dd3['crudPermissions']=_0x4a9d96,_0x386dd3[_0x16170a('0x1ccb')]={};if(_0x386dd3[_0x16170a('0x108')]['appdata'])switch(_0x386dd3[_0x16170a('0x108')]['appType']?_0x386dd3[_0x16170a('0x108')][_0x16170a('0xf44')]['toLowerCase']():_0x386dd3[_0x16170a('0x108')][_0x16170a('0xf2b')][_0x16170a('0x20dd')]()){case _0x16170a('0x261d'):break;case _0x16170a('0xc11'):{var _0x1150e1=_0x386dd3[_0x16170a('0x108')]['appdata'][_0x16170a('0x1745')](',');_0x386dd3[_0x16170a('0x108')]['key']=_0x1150e1[0x0],_0x386dd3[_0x16170a('0x108')][_0x16170a('0x174b')]=_0x1150e1[0x1],_0x386dd3[_0x16170a('0x108')][_0x16170a('0xfcc')]=_0x1150e1['slice'](0x2,_0x1150e1[_0x16170a('0x25ae')])[_0x16170a('0x1537')](',');}break;case _0x16170a('0x1321'):{var _0x2477e6=_0x386dd3[_0x16170a('0x108')][_0x16170a('0x26d2')][_0x16170a('0x1745')](',');_0x386dd3[_0x16170a('0x108')][_0x16170a('0x22be')]=_0x2477e6[0x0],_0x386dd3[_0x16170a('0x108')][_0x16170a('0x700')]=_0x2477e6[0x1],_0x386dd3[_0x16170a('0x108')][_0x16170a('0x206a')]=_0x2477e6[0x2],_0x386dd3[_0x16170a('0x108')][_0x16170a('0x191a')]=_0x2477e6[0x3],_0x386dd3[_0x16170a('0x108')][_0x16170a('0xfcc')]=_0x2477e6[_0x16170a('0xa19')](0x4,_0x2477e6[_0x16170a('0x25ae')])[_0x16170a('0x1537')](',');}break;case _0x16170a('0x400'):{var _0x1bec12=_0x386dd3[_0x16170a('0x108')]['appdata'][_0x16170a('0x1745')](',');_0x386dd3['agent']['times']=isNaN(_0x1bec12[0x0])?_0x1bec12[0x0]:parseInt(_0x1bec12[0x0],0xa),_0x386dd3[_0x16170a('0x108')][_0x16170a('0x1bc6')]=_0x1bec12[_0x16170a('0xa19')](0x1,_0x1bec12[_0x16170a('0x25ae')])[_0x16170a('0x1537')](',');}break;case'message':_0x386dd3[_0x16170a('0x108')][_0x16170a('0x1bc6')]=_0x386dd3[_0x16170a('0x108')]['appdata'];break;case _0x16170a('0x2aa'):_0x386dd3[_0x16170a('0x108')][_0x16170a('0x2623')]=_0x386dd3[_0x16170a('0x108')]['appdata'][_0x16170a('0x1745')]('=')[0x0],_0x386dd3[_0x16170a('0x108')][_0x16170a('0x2')]=_0x386dd3[_0x16170a('0x108')][_0x16170a('0x26d2')][_0x16170a('0x1745')]('=')[0x1];break;case _0x16170a('0x401'):_0x386dd3[_0x16170a('0x108')][_0x16170a('0x38b')]=_0x386dd3[_0x16170a('0x108')][_0x16170a('0x26d2')];break;default:{var _0x717d65=_0x386dd3[_0x16170a('0x108')][_0x16170a('0x26d2')]['split'](',');_0x386dd3[_0x16170a('0x108')][_0x16170a('0x108')]=_0x32d445()[_0x16170a('0x14b4')](_0x717d65[0x0])?_0x717d65[0x0]:isNaN(_0x717d65[0x0])?_0x717d65[0x0]:parseInt(_0x717d65[0x0],0xa),_0x386dd3['agent']['timeout']=_0x32d445()[_0x16170a('0x14b4')](_0x717d65[0x1])?_0x717d65[0x1]:isNaN(_0x717d65[0x1])?_0x717d65[0x1]:parseInt(_0x717d65[0x1],0xa);}break;}else _0x386dd3[_0x16170a('0x108')][_0x16170a('0x2058')]=0x1e;_0x386dd3['agent'][_0x16170a('0x62e')]&&_0x386dd3[_0x16170a('0x108')][_0x16170a('0x62e')][_0x16170a('0x20dd')]()===_0x16170a('0x1fdf')&&_0x386dd3[_0x16170a('0x108')][_0x16170a('0xf44')][_0x16170a('0x20dd')]()===_0x16170a('0x1d1b')&&(_0x386dd3[_0x16170a('0x108')][_0x16170a('0x2580')]=_0x386dd3['agent'][_0x16170a('0x1ef5')]?_0x386dd3[_0x16170a('0x108')][_0x16170a('0x1ef5')]['split']('$')[0x0]:undefined,_0x386dd3[_0x16170a('0x108')][_0x16170a('0x1b6f')]=_0x386dd3[_0x16170a('0x108')][_0x16170a('0xfca')]?_0x16170a('0xd41')+_0x386dd3[_0x16170a('0x108')][_0x16170a('0xfca')]:undefined);_0x386dd3['saveOpenchannelAccountApp']=_0x282498,_0x386dd3[_0x16170a('0x2584')]=_0x2f142d,_0x517f35['hasRole'](_0x16170a('0xd14'))?_0x1272f2['user']['get']({'fields':'id,name','sort':_0x16170a('0x2623'),'role':_0x16170a('0x108'),'nolimit':'true'})['$promise'][_0x16170a('0xe19')](function(_0x18a764){_0x386dd3['agents']=_0x18a764['rows']||[];})['catch'](function(_0x23fdff){var _0x34e539=_0x16170a;_0x3ca1a5[_0x34e539('0x8c8')]({'title':_0x23fdff[_0x34e539('0x2833')]?_0x34e539('0x27f2')+_0x23fdff['status']+_0x34e539('0x1b7c')+_0x23fdff['statusText']:_0x34e539('0x1e86'),'msg':_0x23fdff[_0x34e539('0x11d0')]?JSON[_0x34e539('0x3ad')](_0x23fdff[_0x34e539('0x11d0')]):_0x23fdff[_0x34e539('0x94f')]()});}):_0x1272f2[_0x16170a('0x10c6')][_0x16170a('0x22d5')]({'fields':_0x16170a('0x104'),'sort':_0x16170a('0x2623'),'role':_0x16170a('0x108'),'nolimit':_0x16170a('0x2206')})[_0x16170a('0xe59')][_0x16170a('0xe19')](function(_0x1d2607){var _0x1bdba6=_0x16170a;_0x386dd3[_0x1bdba6('0x29b')]=_0x1d2607[_0x1bdba6('0x16a7')]||[];})[_0x16170a('0xe19')](function(){var _0x3c9c78=_0x16170a;return _0x1272f2[_0x3c9c78('0xb59')][_0x3c9c78('0x22d5')]({'userProfileId':_0x386dd3['currentUser']['userProfileId'],'sectionId':0xca})['$promise'];})[_0x16170a('0xe19')](function(_0x1210a3){var _0x2b01b5=_0x16170a,_0x2ea5ce=_0x1210a3&&_0x1210a3['rows']?_0x1210a3['rows'][0x0]:null;if(!_0x2ea5ce){var _0x4660b1=[],_0x578656=null;_0x386dd3[_0x2b01b5('0x108')]&&(_0x578656=_0x32d445()['find'](_0x386dd3['agents'],{'name':_0x386dd3[_0x2b01b5('0x108')][_0x2b01b5('0x108')]}));for(var _0x2ba6bf=0x0;_0x2ba6bf<_0x386dd3[_0x2b01b5('0x29b')]['length'];_0x2ba6bf++){_0x578656&&_0x386dd3[_0x2b01b5('0x29b')][_0x2ba6bf]['id']===_0x578656['id']&&(_0x386dd3[_0x2b01b5('0x29b')][_0x2ba6bf][_0x2b01b5('0x1e9d')]=![],_0x4660b1[_0x2b01b5('0xb76')](_0x386dd3[_0x2b01b5('0x29b')][_0x2ba6bf]));}_0x386dd3['agents']=_0x4660b1;}else{if(!_0x2ea5ce['autoAssociation'])return _0x1272f2['userProfileResource'][_0x2b01b5('0x22d5')]({'sectionId':_0x2ea5ce['id']})[_0x2b01b5('0xe59')][_0x2b01b5('0xe19')](function(_0x552137){var _0x1db46c=_0x2b01b5,_0x3003d4=_0x32d445()[_0x1db46c('0x65a')](_0x552137[_0x1db46c('0x16a7')],function(_0x401e6d){var _0x529f97=_0x1db46c;return _0x32d445()[_0x529f97('0xf15')](_0x386dd3[_0x529f97('0x29b')],{'id':_0x401e6d[_0x529f97('0x1104')]});}),_0x322f94=null;_0x386dd3[_0x1db46c('0x108')]&&(_0x322f94=_0x32d445()['find'](_0x386dd3[_0x1db46c('0x29b')],{'name':_0x386dd3['agent'][_0x1db46c('0x108')]}));if(_0x322f94&&!_0x32d445()[_0x1db46c('0x201a')](_0x3003d4,['id',_0x322f94['id']])){var _0x4a99c5=_0x32d445()[_0x1db46c('0xf15')](_0x386dd3[_0x1db46c('0x29b')],{'id':_0x322f94['id']});_0x4a99c5[_0x1db46c('0x1e9d')]=![],_0x3003d4['push'](_0x4a99c5);}_0x386dd3[_0x1db46c('0x29b')]=_0x3003d4;});}})[_0x16170a('0x223b')](function(_0x57fc97){var _0x2f0641=_0x16170a;_0x3ca1a5[_0x2f0641('0x8c8')]({'title':_0x57fc97['status']?_0x2f0641('0x27f2')+_0x57fc97[_0x2f0641('0x2833')]+'\x20-\x20'+_0x57fc97['statusText']:_0x2f0641('0xfe4'),'msg':_0x57fc97['data']?JSON[_0x2f0641('0x3ad')](_0x57fc97[_0x2f0641('0x11d0')]):_0x57fc97[_0x2f0641('0x94f')]()});});function _0x282498(){var _0x541bce=_0x16170a;_0x386dd3[_0x541bce('0xcd2')]=[];var _0x22b29b=[];_0x386dd3[_0x541bce('0x108')]['type']&&_0x386dd3[_0x541bce('0x108')]['type']['toLowerCase']()==='outbound'&&_0x386dd3['agent'][_0x541bce('0xf44')]==='outboundDial'&&(_0x386dd3['agent'][_0x541bce('0x1ef5')]=_0x472a41[_0x541bce('0x27f6')]?(_0x386dd3[_0x541bce('0x108')][_0x541bce('0x2580')]||'')+_0x541bce('0x5d8')+_0x472a41[_0x541bce('0x27f6')]+'}':(_0x386dd3[_0x541bce('0x108')][_0x541bce('0x2580')]||'')+_0x541bce('0x16b5'),_0x472a41['recordingFormat']!=='none'?_0x386dd3[_0x541bce('0x108')][_0x541bce('0x2116')][_0x541bce('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x386dd3[_0x541bce('0x108')][_0x541bce('0x2116')]+=_0x541bce('0x767')):_0x386dd3['agent']['options']=_0x386dd3['agent'][_0x541bce('0x2116')]['replace'](_0x541bce('0x767'),''));var _0x3481da=_0x32d445()[_0x541bce('0xf15')](_0x386dd3[_0x541bce('0x29b')],{'name':_0x386dd3[_0x541bce('0x108')]['agent']});_0x3481da&&(_0x386dd3[_0x541bce('0x108')][_0x541bce('0x43d')]=_0x3481da['id']);if(_0x386dd3['agent'][_0x541bce('0xf44')]&&_0x386dd3[_0x541bce('0x108')][_0x541bce('0xf44')]===_0x541bce('0x261d')){}else switch((_0x386dd3[_0x541bce('0x108')][_0x541bce('0xf2b')]||_0x386dd3[_0x541bce('0x108')][_0x541bce('0xf44')])[_0x541bce('0x20dd')]()){case _0x541bce('0x2aa'):_0x386dd3['agent'][_0x541bce('0x26d2')]=_0x386dd3['agent'][_0x541bce('0x2623')]+'='+_0x386dd3[_0x541bce('0x108')][_0x541bce('0x2')];break;case _0x541bce('0x261d'):break;default:_0x22b29b[0x0]=_0x386dd3[_0x541bce('0x108')][_0x541bce('0x108')],_0x22b29b[0x1]=_0x386dd3[_0x541bce('0x108')][_0x541bce('0x2058')],_0x386dd3[_0x541bce('0x108')][_0x541bce('0x26d2')]=_0x22b29b[_0x541bce('0x1537')](',');}_0x2f142d(_0x386dd3[_0x541bce('0x108')]);}function _0x2f142d(_0x5b0145){_0x2c1eb7['hide'](_0x5b0145);}}const _0x10d01d=_0x2cdfcf;_0x4b3cde[_0xb635d2('0xb0c')]=['$mdDialog','$q','toasty',_0xb635d2('0x7b3'),_0xb635d2('0x1a7'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4b3cde(_0x2a57eb,_0x3a6f5a,_0x366f44,_0x379475,_0xa008f4,_0x5b85ba,_0xc72f74,_0x3f6deb){var _0x878be=_0xb635d2,_0x49b7b8=this;_0x49b7b8[_0x878be('0x15a5')]=_0xc72f74['getCurrentUser'](),_0x49b7b8['errors']=[],_0x49b7b8[_0x878be('0x13e4')]=_0x878be('0x1e1')+(_0x379475[_0x878be('0xf44')]||_0x379475[_0x878be('0xf2b')])['toUpperCase'](),_0x49b7b8['amazonlex']=angular[_0x878be('0x89')](_0x379475),_0x49b7b8[_0x878be('0xb3d')]=_0x3f6deb,_0x49b7b8['hasModulePermissions']={};if(_0x49b7b8[_0x878be('0x1321')]['appdata'])switch(_0x49b7b8['amazonlex'][_0x878be('0xf44')]?_0x49b7b8[_0x878be('0x1321')]['appType'][_0x878be('0x20dd')]():_0x49b7b8[_0x878be('0x1321')]['app']['toLowerCase']()){case _0x878be('0x261d'):break;case _0x878be('0xc11'):{var _0xa11a25=_0x49b7b8['amazonlex']['appdata'][_0x878be('0x1745')](',');_0x49b7b8[_0x878be('0x1321')][_0x878be('0x6e4')]=_0xa11a25[0x0],_0x49b7b8['amazonlex'][_0x878be('0x174b')]=_0xa11a25[0x1],_0x49b7b8[_0x878be('0x1321')][_0x878be('0xfcc')]=_0xa11a25[_0x878be('0xa19')](0x2,_0xa11a25[_0x878be('0x25ae')])[_0x878be('0x1537')](',');}break;case _0x878be('0x1321'):{var _0x3968f5=_0x49b7b8[_0x878be('0x1321')]['appdata'][_0x878be('0x1745')](',');_0x49b7b8[_0x878be('0x1321')][_0x878be('0x22be')]=_0x3968f5[0x0],_0x49b7b8['amazonlex']['secretaccesskey']=_0x3968f5[0x1],_0x49b7b8[_0x878be('0x1321')]['lexregion']=_0x3968f5[0x2],_0x49b7b8[_0x878be('0x1321')][_0x878be('0x191a')]=_0x3968f5[0x3],_0x49b7b8[_0x878be('0x1321')][_0x878be('0xfcc')]=_0x3968f5['slice'](0x4,_0x3968f5[_0x878be('0x25ae')])[_0x878be('0x1537')](',');}break;case'autoreply':{var _0x17a69b=_0x49b7b8[_0x878be('0x1321')]['appdata'][_0x878be('0x1745')](',');_0x49b7b8[_0x878be('0x1321')][_0x878be('0x1ec4')]=isNaN(_0x17a69b[0x0])?_0x17a69b[0x0]:parseInt(_0x17a69b[0x0],0xa),_0x49b7b8[_0x878be('0x1321')]['text']=_0x17a69b['slice'](0x1,_0x17a69b['length'])[_0x878be('0x1537')](',');}break;case _0x878be('0x27e8'):_0x49b7b8[_0x878be('0x1321')][_0x878be('0x1bc6')]=_0x49b7b8[_0x878be('0x1321')][_0x878be('0x26d2')];break;case'set':_0x49b7b8[_0x878be('0x1321')][_0x878be('0x2623')]=_0x49b7b8[_0x878be('0x1321')][_0x878be('0x26d2')]['split']('=')[0x0],_0x49b7b8[_0x878be('0x1321')][_0x878be('0x2')]=_0x49b7b8[_0x878be('0x1321')][_0x878be('0x26d2')][_0x878be('0x1745')]('=')[0x1];break;case _0x878be('0x401'):_0x49b7b8[_0x878be('0x1321')][_0x878be('0x38b')]=_0x49b7b8[_0x878be('0x1321')][_0x878be('0x26d2')];break;default:{var _0x34c420=_0x49b7b8['amazonlex']['appdata'][_0x878be('0x1745')](',');_0x49b7b8[_0x878be('0x1321')][_0x878be('0x22be')]=_0x32d445()[_0x878be('0x14b4')](_0x34c420[0x0])?_0x34c420[0x0]:isNaN(_0x34c420[0x0])?_0x34c420[0x0]:parseInt(_0x34c420[0x0],0xa),_0x49b7b8[_0x878be('0x1321')][_0x878be('0x700')]=_0x32d445()[_0x878be('0x14b4')](_0x34c420[0x1])?_0x34c420[0x1]:isNaN(_0x34c420[0x1])?_0x34c420[0x1]:parseInt(_0x34c420[0x1],0xa),_0x49b7b8[_0x878be('0x1321')][_0x878be('0x206a')]=_0x32d445()[_0x878be('0x14b4')](_0x34c420[0x2])?_0x34c420[0x2]:isNaN(_0x34c420[0x2])?_0x34c420[0x2]:parseInt(_0x34c420[0x2],0xa),_0x49b7b8['amazonlex'][_0x878be('0x191a')]=_0x32d445()[_0x878be('0x14b4')](_0x34c420[0x3])?_0x34c420[0x3]:isNaN(_0x34c420[0x3])?_0x34c420[0x3]:parseInt(_0x34c420[0x3],0xa),_0x49b7b8[_0x878be('0x1321')][_0x878be('0xfcc')]=_0x32d445()[_0x878be('0x14b4')](_0x34c420[0x4])?_0x34c420[0x4]:isNaN(_0x34c420[0x4])?_0x34c420[0x4]:parseInt(_0x34c420[0x4],0xa);}break;}else _0x49b7b8[_0x878be('0x1321')][_0x878be('0x206a')]='us-east-1';_0x49b7b8['amazonlex'][_0x878be('0x62e')]&&_0x49b7b8[_0x878be('0x1321')]['type']['toLowerCase']()===_0x878be('0x1fdf')&&_0x49b7b8[_0x878be('0x1321')][_0x878be('0xf44')][_0x878be('0x20dd')]()===_0x878be('0x1d1b')&&(_0x49b7b8[_0x878be('0x1321')][_0x878be('0x2580')]=_0x49b7b8[_0x878be('0x1321')][_0x878be('0x1ef5')]?_0x49b7b8[_0x878be('0x1321')][_0x878be('0x1ef5')][_0x878be('0x1745')]('$')[0x0]:undefined,_0x49b7b8[_0x878be('0x1321')][_0x878be('0x1b6f')]=_0x49b7b8[_0x878be('0x1321')][_0x878be('0xfca')]?_0x878be('0xd41')+_0x49b7b8[_0x878be('0x1321')][_0x878be('0xfca')]:undefined);_0x49b7b8[_0x878be('0x2554')]=_0x4523ea,_0x49b7b8['closeDialog']=_0x16c0d2;function _0x4523ea(){var _0xd6aff8=_0x878be;_0x49b7b8['errors']=[];var _0xb1e96b=[];_0x49b7b8[_0xd6aff8('0x1321')]['type']&&_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x62e')]['toLowerCase']()===_0xd6aff8('0x1fdf')&&_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0xf44')]===_0xd6aff8('0x3d2')&&(_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x1ef5')]=_0xa008f4[_0xd6aff8('0x27f6')]?(_0x49b7b8[_0xd6aff8('0x1321')]['prefix']||'')+'${EXTEN:'+_0xa008f4['cutdigits']+'}':(_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x2580')]||'')+_0xd6aff8('0x16b5'),_0xa008f4['recordingFormat']!=='none'?_0x49b7b8[_0xd6aff8('0x1321')]['options'][_0xd6aff8('0x281c')](_0xd6aff8('0x767'))<0x0&&(_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x2116')]+=_0xd6aff8('0x767')):_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x2116')]=_0x49b7b8[_0xd6aff8('0x1321')]['options'][_0xd6aff8('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0xf44')]&&_0x49b7b8[_0xd6aff8('0x1321')]['appType']===_0xd6aff8('0x261d')){}else switch((_0x49b7b8[_0xd6aff8('0x1321')]['app']||_0x49b7b8[_0xd6aff8('0x1321')]['appType'])[_0xd6aff8('0x20dd')]()){case _0xd6aff8('0x2aa'):_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x26d2')]=_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x2623')]+'='+_0x49b7b8['amazonlex'][_0xd6aff8('0x2')];break;case _0xd6aff8('0x261d'):break;default:_0xb1e96b[0x0]=_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x22be')],_0xb1e96b[0x1]=_0x49b7b8['amazonlex']['secretaccesskey'],_0xb1e96b[0x2]=_0x49b7b8['amazonlex'][_0xd6aff8('0x206a')],_0xb1e96b[0x3]=_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0x191a')],_0xb1e96b[0x4]=_0x49b7b8[_0xd6aff8('0x1321')][_0xd6aff8('0xfcc')],_0x49b7b8['amazonlex'][_0xd6aff8('0x26d2')]=_0xb1e96b['join'](',');}_0x16c0d2(_0x49b7b8[_0xd6aff8('0x1321')]);}function _0x16c0d2(_0x1a17d2){_0x2a57eb['hide'](_0x1a17d2);}}const _0x3886c8=_0x4b3cde;_0x1ea3f0[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty','openchannelAccountApp','openchannelAccount',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x1ea3f0(_0x975dae,_0x3d7ba9,_0x13fbe6,_0x48ea26,_0x2dd176,_0x3db3bd,_0x115082,_0x400bbc){var _0x3cfbbe=_0xb635d2,_0x380059=this;_0x380059[_0x3cfbbe('0x15a5')]=_0x115082[_0x3cfbbe('0x1ef8')](),_0x380059[_0x3cfbbe('0xcd2')]=[],_0x380059[_0x3cfbbe('0x13e4')]='OPENCHANNEL.EDIT_'+(_0x48ea26[_0x3cfbbe('0xf44')]||_0x48ea26[_0x3cfbbe('0xf2b')])[_0x3cfbbe('0x25f7')](),_0x380059[_0x3cfbbe('0x400')]=angular[_0x3cfbbe('0x89')](_0x48ea26),_0x380059[_0x3cfbbe('0xb3d')]=_0x400bbc,_0x380059[_0x3cfbbe('0x1ccb')]={};if(_0x380059['autoreply'][_0x3cfbbe('0x26d2')])switch(_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0xf44')]?_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0xf44')]['toLowerCase']():_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0xf2b')][_0x3cfbbe('0x20dd')]()){case _0x3cfbbe('0x261d'):break;case _0x3cfbbe('0xc11'):{var _0x3490f5=_0x380059['autoreply'][_0x3cfbbe('0x26d2')][_0x3cfbbe('0x1745')](',');_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x6e4')]=_0x3490f5[0x0],_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x174b')]=_0x3490f5[0x1],_0x380059['autoreply']['welcomemessage']=_0x3490f5[_0x3cfbbe('0xa19')](0x2,_0x3490f5[_0x3cfbbe('0x25ae')])[_0x3cfbbe('0x1537')](',');}break;case _0x3cfbbe('0x1321'):{var _0x1a903a=_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x26d2')][_0x3cfbbe('0x1745')](',');_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x22be')]=_0x1a903a[0x0],_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x700')]=_0x1a903a[0x1],_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x206a')]=_0x1a903a[0x2],_0x380059[_0x3cfbbe('0x400')]['botname']=_0x1a903a[0x3],_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0xfcc')]=_0x1a903a['slice'](0x4,_0x1a903a[_0x3cfbbe('0x25ae')])[_0x3cfbbe('0x1537')](',');}break;case _0x3cfbbe('0x400'):{var _0x19ec07=_0x380059[_0x3cfbbe('0x400')]['appdata']['split'](',');_0x380059['autoreply']['times']=isNaN(_0x19ec07[0x0])?_0x19ec07[0x0]:parseInt(_0x19ec07[0x0],0xa),_0x380059[_0x3cfbbe('0x400')]['text']=_0x19ec07['slice'](0x1,_0x19ec07['length'])[_0x3cfbbe('0x1537')](',');}break;case _0x3cfbbe('0x27e8'):_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x1bc6')]=_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x26d2')];break;case _0x3cfbbe('0x2aa'):_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x2623')]=_0x380059['autoreply'][_0x3cfbbe('0x26d2')][_0x3cfbbe('0x1745')]('=')[0x0],_0x380059['autoreply'][_0x3cfbbe('0x2')]=_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x26d2')]['split']('=')[0x1];break;case _0x3cfbbe('0x401'):_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x38b')]=_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x26d2')];break;default:{var _0x380631=_0x380059[_0x3cfbbe('0x400')]['appdata'][_0x3cfbbe('0x1745')](',');_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x1ec4')]=_0x32d445()['isEmpty'](_0x380631[0x0])?_0x380631[0x0]:isNaN(_0x380631[0x0])?_0x380631[0x0]:parseInt(_0x380631[0x0],0xa),_0x380059['autoreply'][_0x3cfbbe('0x1bc6')]=_0x32d445()[_0x3cfbbe('0x14b4')](_0x380631[0x1])?_0x380631[0x1]:isNaN(_0x380631[0x1])?_0x380631[0x1]:parseInt(_0x380631[0x1],0xa);}break;}else _0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x1ec4')]=0x1;_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x62e')]&&_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x62e')]['toLowerCase']()==='outbound'&&_0x380059['autoreply'][_0x3cfbbe('0xf44')]['toLowerCase']()==='outbounddial'&&(_0x380059[_0x3cfbbe('0x400')]['prefix']=_0x380059[_0x3cfbbe('0x400')]['phone']?_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x1ef5')][_0x3cfbbe('0x1745')]('$')[0x0]:undefined,_0x380059[_0x3cfbbe('0x400')][_0x3cfbbe('0x1b6f')]=_0x380059['autoreply'][_0x3cfbbe('0xfca')]?_0x3cfbbe('0xd41')+_0x380059[_0x3cfbbe('0x400')]['callerID']:undefined);_0x380059[_0x3cfbbe('0x2554')]=_0x217e0f,_0x380059[_0x3cfbbe('0x2584')]=_0x468a89;function _0x217e0f(){var _0x2527b3=_0x3cfbbe;_0x380059[_0x2527b3('0xcd2')]=[];var _0x56c157=[];_0x380059['autoreply']['type']&&_0x380059['autoreply'][_0x2527b3('0x62e')]['toLowerCase']()===_0x2527b3('0x1fdf')&&_0x380059[_0x2527b3('0x400')]['appType']===_0x2527b3('0x3d2')&&(_0x380059['autoreply'][_0x2527b3('0x1ef5')]=_0x2dd176['cutdigits']?(_0x380059['autoreply'][_0x2527b3('0x2580')]||'')+_0x2527b3('0x5d8')+_0x2dd176[_0x2527b3('0x27f6')]+'}':(_0x380059['autoreply'][_0x2527b3('0x2580')]||'')+_0x2527b3('0x16b5'),_0x2dd176[_0x2527b3('0x150c')]!==_0x2527b3('0x23ca')?_0x380059['autoreply'][_0x2527b3('0x2116')][_0x2527b3('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x380059[_0x2527b3('0x400')][_0x2527b3('0x2116')]+=_0x2527b3('0x767')):_0x380059[_0x2527b3('0x400')][_0x2527b3('0x2116')]=_0x380059['autoreply'][_0x2527b3('0x2116')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x380059[_0x2527b3('0x400')]['appType']&&_0x380059[_0x2527b3('0x400')]['appType']===_0x2527b3('0x261d')){}else switch((_0x380059[_0x2527b3('0x400')][_0x2527b3('0xf2b')]||_0x380059['autoreply']['appType'])[_0x2527b3('0x20dd')]()){case'set':_0x380059[_0x2527b3('0x400')][_0x2527b3('0x26d2')]=_0x380059[_0x2527b3('0x400')][_0x2527b3('0x2623')]+'='+_0x380059[_0x2527b3('0x400')][_0x2527b3('0x2')];break;case _0x2527b3('0x261d'):break;default:_0x56c157[0x0]=_0x380059[_0x2527b3('0x400')]['times'],_0x56c157[0x1]=_0x380059[_0x2527b3('0x400')][_0x2527b3('0x1bc6')],_0x380059[_0x2527b3('0x400')][_0x2527b3('0x26d2')]=_0x56c157[_0x2527b3('0x1537')](',');}_0x468a89(_0x380059[_0x2527b3('0x400')]);}function _0x468a89(_0x5e455f){var _0x406181=_0x3cfbbe;_0x975dae[_0x406181('0x11ed')](_0x5e455f);}}const _0x32e09e=_0x1ea3f0;_0x29e5ff[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x7b3'),_0xb635d2('0x1a7'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x29e5ff(_0x4f6ecb,_0x5a6929,_0x236994,_0x2cf3fc,_0x94c209,_0x4b8664,_0x536588,_0x514c3f){var _0x305607=_0xb635d2,_0x41a5a8=this;_0x41a5a8['currentUser']=_0x536588[_0x305607('0x1ef8')](),_0x41a5a8[_0x305607('0xcd2')]=[],_0x41a5a8[_0x305607('0x13e4')]=_0x305607('0x1e1')+(_0x2cf3fc[_0x305607('0xf44')]||_0x2cf3fc[_0x305607('0xf2b')])[_0x305607('0x25f7')](),_0x41a5a8[_0x305607('0x1886')]=angular[_0x305607('0x89')](_0x2cf3fc),_0x41a5a8[_0x305607('0xb3d')]=_0x514c3f,_0x41a5a8[_0x305607('0x1ccb')]={};if(_0x41a5a8[_0x305607('0x1886')][_0x305607('0x26d2')])switch(_0x41a5a8['close']['appType']?_0x41a5a8[_0x305607('0x1886')][_0x305607('0xf44')][_0x305607('0x20dd')]():_0x41a5a8['close'][_0x305607('0xf2b')][_0x305607('0x20dd')]()){case'custom':break;case _0x305607('0xc11'):{var _0x2bc83f=_0x41a5a8[_0x305607('0x1886')][_0x305607('0x26d2')][_0x305607('0x1745')](',');_0x41a5a8[_0x305607('0x1886')][_0x305607('0x6e4')]=_0x2bc83f[0x0],_0x41a5a8[_0x305607('0x1886')][_0x305607('0x174b')]=_0x2bc83f[0x1],_0x41a5a8[_0x305607('0x1886')][_0x305607('0xfcc')]=_0x2bc83f['slice'](0x2,_0x2bc83f['length'])['join'](',');}break;case _0x305607('0x1321'):{var _0xe0bc3b=_0x41a5a8['close']['appdata'][_0x305607('0x1745')](',');_0x41a5a8['close'][_0x305607('0x22be')]=_0xe0bc3b[0x0],_0x41a5a8['close']['secretaccesskey']=_0xe0bc3b[0x1],_0x41a5a8['close'][_0x305607('0x206a')]=_0xe0bc3b[0x2],_0x41a5a8[_0x305607('0x1886')][_0x305607('0x191a')]=_0xe0bc3b[0x3],_0x41a5a8[_0x305607('0x1886')]['welcomemessage']=_0xe0bc3b[_0x305607('0xa19')](0x4,_0xe0bc3b['length'])[_0x305607('0x1537')](',');}break;case _0x305607('0x400'):{var _0xe73717=_0x41a5a8[_0x305607('0x1886')][_0x305607('0x26d2')]['split'](',');_0x41a5a8[_0x305607('0x1886')]['times']=isNaN(_0xe73717[0x0])?_0xe73717[0x0]:parseInt(_0xe73717[0x0],0xa),_0x41a5a8[_0x305607('0x1886')][_0x305607('0x1bc6')]=_0xe73717[_0x305607('0xa19')](0x1,_0xe73717[_0x305607('0x25ae')])[_0x305607('0x1537')](',');}break;case _0x305607('0x27e8'):_0x41a5a8[_0x305607('0x1886')][_0x305607('0x1bc6')]=_0x41a5a8[_0x305607('0x1886')][_0x305607('0x26d2')];break;case'set':_0x41a5a8[_0x305607('0x1886')][_0x305607('0x2623')]=_0x41a5a8[_0x305607('0x1886')][_0x305607('0x26d2')]['split']('=')[0x0],_0x41a5a8[_0x305607('0x1886')][_0x305607('0x2')]=_0x41a5a8[_0x305607('0x1886')][_0x305607('0x26d2')][_0x305607('0x1745')]('=')[0x1];break;case _0x305607('0x401'):_0x41a5a8[_0x305607('0x1886')][_0x305607('0x38b')]=_0x41a5a8[_0x305607('0x1886')]['appdata'];break;default:{var _0x5ac5f8=_0x41a5a8[_0x305607('0x1886')][_0x305607('0x26d2')]['split'](',');_0x41a5a8[_0x305607('0x1886')]['disposition']=_0x32d445()[_0x305607('0x14b4')](_0x5ac5f8[0x0])?_0x5ac5f8[0x0]:isNaN(_0x5ac5f8[0x0])?_0x5ac5f8[0x0]:parseInt(_0x5ac5f8[0x0],0xa);}break;}else{}_0x41a5a8['close']['type']&&_0x41a5a8[_0x305607('0x1886')][_0x305607('0x62e')][_0x305607('0x20dd')]()==='outbound'&&_0x41a5a8['close'][_0x305607('0xf44')][_0x305607('0x20dd')]()===_0x305607('0x1d1b')&&(_0x41a5a8[_0x305607('0x1886')][_0x305607('0x2580')]=_0x41a5a8[_0x305607('0x1886')][_0x305607('0x1ef5')]?_0x41a5a8['close'][_0x305607('0x1ef5')][_0x305607('0x1745')]('$')[0x0]:undefined,_0x41a5a8[_0x305607('0x1886')]['callerId']=_0x41a5a8[_0x305607('0x1886')]['callerID']?_0x305607('0xd41')+_0x41a5a8[_0x305607('0x1886')]['callerID']:undefined);_0x41a5a8[_0x305607('0x2554')]=_0x5d193a,_0x41a5a8['closeDialog']=_0x4abc92;function _0x5d193a(){var _0x2f9e22=_0x305607;_0x41a5a8[_0x2f9e22('0xcd2')]=[];var _0x236fb8=[];_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0x62e')]&&_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0x62e')]['toLowerCase']()===_0x2f9e22('0x1fdf')&&_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0xf44')]===_0x2f9e22('0x3d2')&&(_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0x1ef5')]=_0x94c209[_0x2f9e22('0x27f6')]?(_0x41a5a8[_0x2f9e22('0x1886')]['prefix']||'')+_0x2f9e22('0x5d8')+_0x94c209[_0x2f9e22('0x27f6')]+'}':(_0x41a5a8['close'][_0x2f9e22('0x2580')]||'')+_0x2f9e22('0x16b5'),_0x94c209[_0x2f9e22('0x150c')]!==_0x2f9e22('0x23ca')?_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0x2116')]['indexOf'](_0x2f9e22('0x767'))<0x0&&(_0x41a5a8[_0x2f9e22('0x1886')]['options']+='U(xcally-mixmonitor-context)'):_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0x2116')]=_0x41a5a8[_0x2f9e22('0x1886')]['options'][_0x2f9e22('0x1b42')](_0x2f9e22('0x767'),''));if(_0x41a5a8['close'][_0x2f9e22('0xf44')]&&_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0xf44')]==='custom'){}else switch((_0x41a5a8['close'][_0x2f9e22('0xf2b')]||_0x41a5a8['close'][_0x2f9e22('0xf44')])[_0x2f9e22('0x20dd')]()){case _0x2f9e22('0x2aa'):_0x41a5a8[_0x2f9e22('0x1886')]['appdata']=_0x41a5a8[_0x2f9e22('0x1886')]['name']+'='+_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0x2')];break;case _0x2f9e22('0x261d'):break;default:_0x236fb8[0x0]=_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0x2506')],_0x41a5a8[_0x2f9e22('0x1886')][_0x2f9e22('0x26d2')]=_0x236fb8['join'](',');}_0x4abc92(_0x41a5a8['close']);}function _0x4abc92(_0x579ccf){var _0x5531b8=_0x305607;_0x4f6ecb[_0x5531b8('0x11ed')](_0x579ccf);}}const _0x203a44=_0x29e5ff;_0x4cba58['$inject']=['$mdDialog','$q','toasty','openchannelAccountApp',_0xb635d2('0x1a7'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4cba58(_0xdfdc03,_0xb6c429,_0x10291e,_0x4d3509,_0x55cbee,_0x36d8cd,_0x348755,_0x3af6fb){var _0x258ba4=_0xb635d2,_0x2796d2=this;_0x2796d2[_0x258ba4('0x15a5')]=_0x348755[_0x258ba4('0x1ef8')](),_0x2796d2[_0x258ba4('0xcd2')]=[],_0x2796d2['title']=_0x258ba4('0x1e1')+(_0x4d3509[_0x258ba4('0xf44')]||_0x4d3509['app'])[_0x258ba4('0x25f7')](),_0x2796d2[_0x258ba4('0xc11')]=angular[_0x258ba4('0x89')](_0x4d3509),_0x2796d2[_0x258ba4('0xb3d')]=_0x3af6fb,_0x2796d2[_0x258ba4('0x1ccb')]={};if(_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x26d2')])switch(_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0xf44')]?_0x2796d2['dialogflow'][_0x258ba4('0xf44')][_0x258ba4('0x20dd')]():_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0xf2b')][_0x258ba4('0x20dd')]()){case _0x258ba4('0x261d'):break;case'dialogflow':{var _0x3c85fc=_0x2796d2['dialogflow'][_0x258ba4('0x26d2')][_0x258ba4('0x1745')](',');_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x6e4')]=_0x3c85fc[0x0],_0x2796d2['dialogflow']['language']=_0x3c85fc[0x1],_0x2796d2[_0x258ba4('0xc11')]['welcomemessage']=_0x3c85fc[_0x258ba4('0xa19')](0x2,_0x3c85fc[_0x258ba4('0x25ae')])['join'](',');}break;case'amazonlex':{var _0x58e643=_0x2796d2['dialogflow'][_0x258ba4('0x26d2')][_0x258ba4('0x1745')](',');_0x2796d2['dialogflow'][_0x258ba4('0x22be')]=_0x58e643[0x0],_0x2796d2['dialogflow']['secretaccesskey']=_0x58e643[0x1],_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x206a')]=_0x58e643[0x2],_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x191a')]=_0x58e643[0x3],_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0xfcc')]=_0x58e643[_0x258ba4('0xa19')](0x4,_0x58e643[_0x258ba4('0x25ae')])[_0x258ba4('0x1537')](',');}break;case _0x258ba4('0x400'):{var _0x133156=_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x26d2')][_0x258ba4('0x1745')](',');_0x2796d2['dialogflow'][_0x258ba4('0x1ec4')]=isNaN(_0x133156[0x0])?_0x133156[0x0]:parseInt(_0x133156[0x0],0xa),_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x1bc6')]=_0x133156[_0x258ba4('0xa19')](0x1,_0x133156[_0x258ba4('0x25ae')])['join'](',');}break;case'message':_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x1bc6')]=_0x2796d2['dialogflow']['appdata'];break;case'set':_0x2796d2['dialogflow'][_0x258ba4('0x2623')]=_0x2796d2[_0x258ba4('0xc11')]['appdata'][_0x258ba4('0x1745')]('=')[0x0],_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x2')]=_0x2796d2['dialogflow'][_0x258ba4('0x26d2')]['split']('=')[0x1];break;case'agi':_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x38b')]=_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x26d2')];break;default:{var _0x1de64e=_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x26d2')][_0x258ba4('0x1745')](',');_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x6e4')]=_0x32d445()[_0x258ba4('0x14b4')](_0x1de64e[0x0])?_0x1de64e[0x0]:isNaN(_0x1de64e[0x0])?_0x1de64e[0x0]:parseInt(_0x1de64e[0x0],0xa),_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x174b')]=_0x32d445()[_0x258ba4('0x14b4')](_0x1de64e[0x1])?_0x1de64e[0x1]:isNaN(_0x1de64e[0x1])?_0x1de64e[0x1]:parseInt(_0x1de64e[0x1],0xa),_0x2796d2[_0x258ba4('0xc11')]['welcomemessage']=_0x32d445()[_0x258ba4('0x14b4')](_0x1de64e[0x2])?_0x1de64e[0x2]:isNaN(_0x1de64e[0x2])?_0x1de64e[0x2]:parseInt(_0x1de64e[0x2],0xa);}break;}else _0x2796d2[_0x258ba4('0xc11')]['language']='en';_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x62e')]&&_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x62e')][_0x258ba4('0x20dd')]()==='outbound'&&_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0xf44')][_0x258ba4('0x20dd')]()===_0x258ba4('0x1d1b')&&(_0x2796d2['dialogflow']['prefix']=_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x1ef5')]?_0x2796d2['dialogflow'][_0x258ba4('0x1ef5')][_0x258ba4('0x1745')]('$')[0x0]:undefined,_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0x1b6f')]=_0x2796d2[_0x258ba4('0xc11')][_0x258ba4('0xfca')]?_0x258ba4('0xd41')+_0x2796d2['dialogflow'][_0x258ba4('0xfca')]:undefined);_0x2796d2[_0x258ba4('0x2554')]=_0x46d30f,_0x2796d2['closeDialog']=_0x41a623;function _0x46d30f(){var _0x4937d5=_0x258ba4;_0x2796d2[_0x4937d5('0xcd2')]=[];var _0x310325=[];_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0x62e')]&&_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0x62e')][_0x4937d5('0x20dd')]()==='outbound'&&_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0xf44')]==='outboundDial'&&(_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0x1ef5')]=_0x55cbee[_0x4937d5('0x27f6')]?(_0x2796d2['dialogflow'][_0x4937d5('0x2580')]||'')+_0x4937d5('0x5d8')+_0x55cbee[_0x4937d5('0x27f6')]+'}':(_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0x2580')]||'')+_0x4937d5('0x16b5'),_0x55cbee['recordingFormat']!=='none'?_0x2796d2['dialogflow'][_0x4937d5('0x2116')][_0x4937d5('0x281c')](_0x4937d5('0x767'))<0x0&&(_0x2796d2['dialogflow'][_0x4937d5('0x2116')]+=_0x4937d5('0x767')):_0x2796d2[_0x4937d5('0xc11')]['options']=_0x2796d2[_0x4937d5('0xc11')]['options'][_0x4937d5('0x1b42')](_0x4937d5('0x767'),''));if(_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0xf44')]&&_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0xf44')]===_0x4937d5('0x261d')){}else switch((_0x2796d2[_0x4937d5('0xc11')]['app']||_0x2796d2[_0x4937d5('0xc11')]['appType'])['toLowerCase']()){case _0x4937d5('0x2aa'):_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0x26d2')]=_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0x2623')]+'='+_0x2796d2[_0x4937d5('0xc11')]['value'];break;case _0x4937d5('0x261d'):break;default:_0x310325[0x0]=_0x2796d2[_0x4937d5('0xc11')]['key'],_0x310325[0x1]=_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0x174b')],_0x310325[0x2]=_0x2796d2[_0x4937d5('0xc11')][_0x4937d5('0xfcc')],_0x2796d2['dialogflow'][_0x4937d5('0x26d2')]=_0x310325[_0x4937d5('0x1537')](',');}_0x41a623(_0x2796d2[_0x4937d5('0xc11')]);}function _0x41a623(_0x2b2062){_0xdfdc03['hide'](_0x2b2062);}}const _0x58a2fe=_0x4cba58;_0x3a01af[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x7b3'),_0xb635d2('0x1a7'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x3a01af(_0x2f0af4,_0x185693,_0x27e658,_0x1ab6d7,_0x3e074a,_0x12da7b,_0xfbf260,_0x1a5e6f){var _0x14134f=_0xb635d2,_0x5903b6=this;_0x5903b6[_0x14134f('0x15a5')]=_0xfbf260['getCurrentUser'](),_0x5903b6[_0x14134f('0xcd2')]=[],_0x5903b6[_0x14134f('0x13e4')]=_0x14134f('0x1e1')+(_0x1ab6d7[_0x14134f('0xf44')]||_0x1ab6d7[_0x14134f('0xf2b')])['toUpperCase'](),_0x5903b6[_0x14134f('0x22c3')]=angular[_0x14134f('0x89')](_0x1ab6d7),_0x5903b6[_0x14134f('0xb3d')]=_0x1a5e6f,_0x5903b6['hasModulePermissions']={};if(_0x5903b6['gotoif'][_0x14134f('0x26d2')])switch(_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0xf44')]?_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0xf44')][_0x14134f('0x20dd')]():_0x5903b6['gotoif']['app']['toLowerCase']()){case'custom':break;case _0x14134f('0xc11'):{var _0xdf6898=_0x5903b6[_0x14134f('0x22c3')]['appdata'][_0x14134f('0x1745')](',');_0x5903b6[_0x14134f('0x22c3')]['key']=_0xdf6898[0x0],_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x174b')]=_0xdf6898[0x1],_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0xfcc')]=_0xdf6898['slice'](0x2,_0xdf6898[_0x14134f('0x25ae')])[_0x14134f('0x1537')](',');}break;case'amazonlex':{var _0x2dd9c4=_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x26d2')][_0x14134f('0x1745')](',');_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x22be')]=_0x2dd9c4[0x0],_0x5903b6[_0x14134f('0x22c3')]['secretaccesskey']=_0x2dd9c4[0x1],_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x206a')]=_0x2dd9c4[0x2],_0x5903b6[_0x14134f('0x22c3')]['botname']=_0x2dd9c4[0x3],_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0xfcc')]=_0x2dd9c4['slice'](0x4,_0x2dd9c4['length'])[_0x14134f('0x1537')](',');}break;case _0x14134f('0x400'):{var _0xf84955=_0x5903b6['gotoif'][_0x14134f('0x26d2')][_0x14134f('0x1745')](',');_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x1ec4')]=isNaN(_0xf84955[0x0])?_0xf84955[0x0]:parseInt(_0xf84955[0x0],0xa),_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x1bc6')]=_0xf84955[_0x14134f('0xa19')](0x1,_0xf84955[_0x14134f('0x25ae')])[_0x14134f('0x1537')](',');}break;case _0x14134f('0x27e8'):_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x1bc6')]=_0x5903b6['gotoif'][_0x14134f('0x26d2')];break;case _0x14134f('0x2aa'):_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x2623')]=_0x5903b6['gotoif'][_0x14134f('0x26d2')][_0x14134f('0x1745')]('=')[0x0],_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x2')]=_0x5903b6[_0x14134f('0x22c3')]['appdata'][_0x14134f('0x1745')]('=')[0x1];break;case _0x14134f('0x401'):_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x38b')]=_0x5903b6[_0x14134f('0x22c3')]['appdata'];break;default:{var _0x33e339=_0x5903b6['gotoif'][_0x14134f('0x26d2')][_0x14134f('0x1745')](',');_0x5903b6[_0x14134f('0x22c3')]['condition']=_0x32d445()['isEmpty'](_0x33e339[0x0])?_0x33e339[0x0]:isNaN(_0x33e339[0x0])?_0x33e339[0x0]:parseInt(_0x33e339[0x0],0xa),_0x5903b6[_0x14134f('0x22c3')]['truepriority']=_0x32d445()[_0x14134f('0x14b4')](_0x33e339[0x1])?_0x33e339[0x1]:isNaN(_0x33e339[0x1])?_0x33e339[0x1]:parseInt(_0x33e339[0x1],0xa),_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x347')]=_0x32d445()['isEmpty'](_0x33e339[0x2])?_0x33e339[0x2]:isNaN(_0x33e339[0x2])?_0x33e339[0x2]:parseInt(_0x33e339[0x2],0xa);}break;}else{}_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x62e')]&&_0x5903b6['gotoif'][_0x14134f('0x62e')][_0x14134f('0x20dd')]()===_0x14134f('0x1fdf')&&_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0xf44')][_0x14134f('0x20dd')]()===_0x14134f('0x1d1b')&&(_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x2580')]=_0x5903b6['gotoif']['phone']?_0x5903b6[_0x14134f('0x22c3')][_0x14134f('0x1ef5')][_0x14134f('0x1745')]('$')[0x0]:undefined,_0x5903b6['gotoif'][_0x14134f('0x1b6f')]=_0x5903b6['gotoif']['callerID']?_0x14134f('0xd41')+_0x5903b6[_0x14134f('0x22c3')]['callerID']:undefined);_0x5903b6['saveOpenchannelAccountApp']=_0x1fd5f5,_0x5903b6['closeDialog']=_0x49648d;function _0x1fd5f5(){var _0x55e5fc=_0x14134f;_0x5903b6[_0x55e5fc('0xcd2')]=[];var _0x405cfa=[];_0x5903b6['gotoif'][_0x55e5fc('0x62e')]&&_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0x62e')]['toLowerCase']()===_0x55e5fc('0x1fdf')&&_0x5903b6['gotoif']['appType']===_0x55e5fc('0x3d2')&&(_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0x1ef5')]=_0x3e074a[_0x55e5fc('0x27f6')]?(_0x5903b6['gotoif']['prefix']||'')+_0x55e5fc('0x5d8')+_0x3e074a[_0x55e5fc('0x27f6')]+'}':(_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0x2580')]||'')+_0x55e5fc('0x16b5'),_0x3e074a[_0x55e5fc('0x150c')]!==_0x55e5fc('0x23ca')?_0x5903b6[_0x55e5fc('0x22c3')]['options'][_0x55e5fc('0x281c')](_0x55e5fc('0x767'))<0x0&&(_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0x2116')]+=_0x55e5fc('0x767')):_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0x2116')]=_0x5903b6[_0x55e5fc('0x22c3')]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0xf44')]&&_0x5903b6[_0x55e5fc('0x22c3')]['appType']===_0x55e5fc('0x261d')){}else switch((_0x5903b6[_0x55e5fc('0x22c3')]['app']||_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0xf44')])[_0x55e5fc('0x20dd')]()){case _0x55e5fc('0x2aa'):_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0x26d2')]=_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0x2623')]+'='+_0x5903b6['gotoif'][_0x55e5fc('0x2')];break;case _0x55e5fc('0x261d'):break;default:_0x405cfa[0x0]=_0x5903b6['gotoif'][_0x55e5fc('0x1c03')],_0x405cfa[0x1]=_0x5903b6[_0x55e5fc('0x22c3')]['truepriority'],_0x405cfa[0x2]=_0x5903b6[_0x55e5fc('0x22c3')][_0x55e5fc('0x347')],_0x5903b6[_0x55e5fc('0x22c3')]['appdata']=_0x405cfa[_0x55e5fc('0x1537')](',');}_0x49648d(_0x5903b6[_0x55e5fc('0x22c3')]);}function _0x49648d(_0xe7eafa){var _0x552083=_0x14134f;_0x2f0af4[_0x552083('0x11ed')](_0xe7eafa);}}const _0x10f90c=_0x3a01af;_0x337b0f['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x7b3'),_0xb635d2('0x1a7'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x337b0f(_0x37b8d1,_0x5db81f,_0x5607f1,_0x439f07,_0x17ad86,_0x3d2ad7,_0x42ec75,_0x10f105){var _0xab4764=_0xb635d2,_0xbe7593=this;_0xbe7593['currentUser']=_0x42ec75['getCurrentUser'](),_0xbe7593[_0xab4764('0xcd2')]=[],_0xbe7593[_0xab4764('0x13e4')]=_0xab4764('0x1e1')+(_0x439f07['appType']||_0x439f07[_0xab4764('0xf2b')])[_0xab4764('0x25f7')](),_0xbe7593[_0xab4764('0x16fe')]=angular[_0xab4764('0x89')](_0x439f07),_0xbe7593[_0xab4764('0xb3d')]=_0x10f105,_0xbe7593[_0xab4764('0x1ccb')]={};if(_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x26d2')])switch(_0xbe7593['gotop'][_0xab4764('0xf44')]?_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0xf44')][_0xab4764('0x20dd')]():_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0xf2b')][_0xab4764('0x20dd')]()){case _0xab4764('0x261d'):break;case _0xab4764('0xc11'):{var _0x24d8e7=_0xbe7593[_0xab4764('0x16fe')]['appdata'][_0xab4764('0x1745')](',');_0xbe7593[_0xab4764('0x16fe')]['key']=_0x24d8e7[0x0],_0xbe7593[_0xab4764('0x16fe')]['language']=_0x24d8e7[0x1],_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0xfcc')]=_0x24d8e7[_0xab4764('0xa19')](0x2,_0x24d8e7[_0xab4764('0x25ae')])[_0xab4764('0x1537')](',');}break;case _0xab4764('0x1321'):{var _0x3ba751=_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x26d2')]['split'](',');_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x22be')]=_0x3ba751[0x0],_0xbe7593[_0xab4764('0x16fe')]['secretaccesskey']=_0x3ba751[0x1],_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x206a')]=_0x3ba751[0x2],_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x191a')]=_0x3ba751[0x3],_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0xfcc')]=_0x3ba751[_0xab4764('0xa19')](0x4,_0x3ba751['length'])['join'](',');}break;case _0xab4764('0x400'):{var _0x365dae=_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x26d2')][_0xab4764('0x1745')](',');_0xbe7593[_0xab4764('0x16fe')]['times']=isNaN(_0x365dae[0x0])?_0x365dae[0x0]:parseInt(_0x365dae[0x0],0xa),_0xbe7593['gotop'][_0xab4764('0x1bc6')]=_0x365dae[_0xab4764('0xa19')](0x1,_0x365dae['length'])[_0xab4764('0x1537')](',');}break;case'message':_0xbe7593['gotop'][_0xab4764('0x1bc6')]=_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x26d2')];break;case _0xab4764('0x2aa'):_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x2623')]=_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x26d2')][_0xab4764('0x1745')]('=')[0x0],_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x2')]=_0xbe7593[_0xab4764('0x16fe')]['appdata']['split']('=')[0x1];break;case _0xab4764('0x401'):_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x38b')]=_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x26d2')];break;default:{var _0x25fb25=_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x26d2')][_0xab4764('0x1745')](',');_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0xb33')]=_0x32d445()[_0xab4764('0x14b4')](_0x25fb25[0x0])?_0x25fb25[0x0]:isNaN(_0x25fb25[0x0])?_0x25fb25[0x0]:parseInt(_0x25fb25[0x0],0xa);}break;}else{}_0xbe7593[_0xab4764('0x16fe')]['type']&&_0xbe7593['gotop'][_0xab4764('0x62e')]['toLowerCase']()==='outbound'&&_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0xf44')]['toLowerCase']()==='outbounddial'&&(_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x2580')]=_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x1ef5')]?_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0x1ef5')][_0xab4764('0x1745')]('$')[0x0]:undefined,_0xbe7593['gotop'][_0xab4764('0x1b6f')]=_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0xfca')]?_0xab4764('0xd41')+_0xbe7593[_0xab4764('0x16fe')][_0xab4764('0xfca')]:undefined);_0xbe7593[_0xab4764('0x2554')]=_0x4042bd,_0xbe7593[_0xab4764('0x2584')]=_0x461fc8;function _0x4042bd(){var _0x3ac9b6=_0xab4764;_0xbe7593[_0x3ac9b6('0xcd2')]=[];var _0x5d50d3=[];_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0x62e')]&&_0xbe7593[_0x3ac9b6('0x16fe')]['type'][_0x3ac9b6('0x20dd')]()===_0x3ac9b6('0x1fdf')&&_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0xf44')]==='outboundDial'&&(_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0x1ef5')]=_0x17ad86[_0x3ac9b6('0x27f6')]?(_0xbe7593['gotop']['prefix']||'')+_0x3ac9b6('0x5d8')+_0x17ad86[_0x3ac9b6('0x27f6')]+'}':(_0xbe7593['gotop']['prefix']||'')+_0x3ac9b6('0x16b5'),_0x17ad86[_0x3ac9b6('0x150c')]!==_0x3ac9b6('0x23ca')?_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0x2116')][_0x3ac9b6('0x281c')](_0x3ac9b6('0x767'))<0x0&&(_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0x2116')]+=_0x3ac9b6('0x767')):_0xbe7593['gotop']['options']=_0xbe7593['gotop'][_0x3ac9b6('0x2116')][_0x3ac9b6('0x1b42')](_0x3ac9b6('0x767'),''));if(_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0xf44')]&&_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0xf44')]===_0x3ac9b6('0x261d')){}else switch((_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0xf2b')]||_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0xf44')])['toLowerCase']()){case'set':_0xbe7593['gotop'][_0x3ac9b6('0x26d2')]=_0xbe7593['gotop'][_0x3ac9b6('0x2623')]+'='+_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0x2')];break;case'custom':break;default:_0x5d50d3[0x0]=_0xbe7593[_0x3ac9b6('0x16fe')][_0x3ac9b6('0xb33')],_0xbe7593[_0x3ac9b6('0x16fe')]['appdata']=_0x5d50d3[_0x3ac9b6('0x1537')](',');}_0x461fc8(_0xbe7593[_0x3ac9b6('0x16fe')]);}function _0x461fc8(_0x444f40){_0x37b8d1['hide'](_0x444f40);}}const _0x545ace=_0x337b0f;_0x608cc3[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),_0xb635d2('0x1e23'),_0xb635d2('0x9ab'),_0xb635d2('0x134c'),_0xb635d2('0x10e0'),_0xb635d2('0xf65'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x608cc3(_0x3c25f0,_0xf8f71b,_0x51f910,_0xa94b2a,_0x2845e5,_0x443f83,_0x931a,_0x49ba01,_0x1f68c8,_0x57d597){var _0x33ec9f=_0xb635d2,_0x292707=this;_0x292707[_0x33ec9f('0x15a5')]=_0x1f68c8[_0x33ec9f('0x1ef8')](),_0x292707[_0x33ec9f('0xcd2')]=[],_0x292707[_0x33ec9f('0x13e4')]=_0x33ec9f('0xf42'),_0x292707['interval']=angular[_0x33ec9f('0x89')](_0x2845e5),_0x292707['intervals']=_0x443f83,_0x292707[_0x33ec9f('0x1a83')]=![],_0x292707[_0x33ec9f('0x1ea6')]=[_0x33ec9f('0x2210'),_0x33ec9f('0x261d'),_0x33ec9f('0x15a8')],_0x292707[_0x33ec9f('0xb3d')]=_0x57d597,_0x292707['daysOfWeek']=_0xa94b2a['getDaysOfWeek'](),_0x292707['monthNumber']=_0xa94b2a[_0x33ec9f('0x1015')](),_0x292707['monthName']=_0xa94b2a[_0x33ec9f('0x1b22')](),_0x292707[_0x33ec9f('0x2347')]=_0xa94b2a[_0x33ec9f('0xdee')]();if(!_0x292707[_0x33ec9f('0x134c')])_0x292707['interval']={'interval':_0x33ec9f('0x2292')},_0x292707[_0x33ec9f('0x62e')]=_0x33ec9f('0x2210'),_0x292707[_0x33ec9f('0x13e4')]='TOOLS.NEW_INTERVAL',_0x292707[_0x33ec9f('0x1a83')]=!![];else{if(_0x292707[_0x33ec9f('0x134c')]['interval']!==_0x33ec9f('0x2292')){_0x292707[_0x33ec9f('0x62e')]=_0x33ec9f('0x261d');var _0x1f69de=_0x292707[_0x33ec9f('0x134c')][_0x33ec9f('0x134c')][_0x33ec9f('0x1745')](','),_0x174cd6=_0x1f69de[0x0],_0x134283=_0x1f69de[0x1],_0x3b5a65=_0x1f69de[0x2],_0x2c8367=_0x1f69de[0x3];if(_0x174cd6!=='*'){var _0x57b33e=_0x174cd6[_0x33ec9f('0x1745')]('-')[0x0],_0x1d420b=_0x174cd6[_0x33ec9f('0x1745')]('-')[0x1],_0x12a28c;_0x12a28c=new Date(),_0x12a28c[_0x33ec9f('0x19f6')](Number(_0x57b33e[_0x33ec9f('0x1745')](':')[0x0])),_0x12a28c[_0x33ec9f('0x6b6')](Number(_0x57b33e[_0x33ec9f('0x1745')](':')[0x1])),_0x292707[_0x33ec9f('0xde9')]=_0x12a28c,_0x12a28c=new Date(),_0x12a28c[_0x33ec9f('0x19f6')](Number(_0x1d420b[_0x33ec9f('0x1745')](':')[0x0])),_0x12a28c['setMinutes'](Number(_0x1d420b[_0x33ec9f('0x1745')](':')[0x1])),_0x292707['timeRangeTo']=_0x12a28c;}_0x134283!=='*'&&(_0x292707[_0x33ec9f('0x2359')]=_0x134283[_0x33ec9f('0x1745')]('-')[0x0],_0x292707['dayOfWeekTo']=_0x134283[_0x33ec9f('0x1745')]('-')[0x1]),_0x3b5a65!=='*'&&(_0x292707['monthDayFrom']=_0x3b5a65[_0x33ec9f('0x1745')]('-')[0x0],_0x292707['monthDayTo']=_0x3b5a65[_0x33ec9f('0x1745')]('-')[0x1]),_0x2c8367!=='*'&&(_0x292707['monthFrom']=_0x2c8367['split']('-')[0x0],_0x292707[_0x33ec9f('0xac6')]=_0x2c8367[_0x33ec9f('0x1745')]('-')[0x1]);}else _0x292707[_0x33ec9f('0x62e')]=_0x33ec9f('0x2210');}_0x3c25f0[_0x33ec9f('0x2ef')]['id']&&!_0x292707['interval'][_0x33ec9f('0x1491')]&&(_0x292707[_0x33ec9f('0x134c')]['IntervalId']=_0x3c25f0[_0x33ec9f('0x2ef')]['id']);_0x292707[_0x33ec9f('0x134c')][_0x33ec9f('0x1fc1')]&&_0x292707[_0x33ec9f('0x134c')]['application']&&(_0x292707[_0x33ec9f('0x62e')]=_0x33ec9f('0x15a8'));_0x292707[_0x33ec9f('0x10a8')]=_0x2ac68b,_0x292707[_0x33ec9f('0x201f')]=_0x13e2a5,_0x292707[_0x33ec9f('0x2584')]=_0x2e2304;_0x292707[_0x33ec9f('0x134c')][_0x33ec9f('0x1491')]&&(_0x1f68c8[_0x33ec9f('0x179e')](_0x33ec9f('0xd14'))?_0x49ba01[_0x33ec9f('0x134c')]['get']({'fields':_0x33ec9f('0x13df'),'IntervalId':_0x33ec9f('0x1046'),'nolimit':!![]})[_0x33ec9f('0xe59')][_0x33ec9f('0xe19')](function(_0x5b8681){var _0x3424ee=_0x33ec9f;_0x292707[_0x3424ee('0x10e0')]=_0x5b8681[_0x3424ee('0x16a7')]||[];})[_0x33ec9f('0x223b')](function(_0x2552ed){var _0x242aca=_0x33ec9f;_0x931a['error']({'title':_0x2552ed[_0x242aca('0x2833')]?'API:'+_0x2552ed[_0x242aca('0x2833')]+'\x20-\x20'+_0x2552ed['statusText']:_0x242aca('0x1c1c'),'msg':_0x2552ed[_0x242aca('0x11d0')]?JSON[_0x242aca('0x3ad')](_0x2552ed[_0x242aca('0x11d0')]):_0x2552ed['toString']()});}):_0x49ba01[_0x33ec9f('0x134c')][_0x33ec9f('0x22d5')]({'fields':_0x33ec9f('0x13df'),'IntervalId':_0x33ec9f('0x1046'),'nolimit':!![]})[_0x33ec9f('0xe59')]['then'](function(_0xfcf08f){_0x292707['intervals']=_0xfcf08f['rows']||[];})[_0x33ec9f('0xe19')](function(){var _0x4fecee=_0x33ec9f;return _0x49ba01[_0x4fecee('0xb59')][_0x4fecee('0x22d5')]({'userProfileId':_0x292707[_0x4fecee('0x15a5')][_0x4fecee('0x1d04')],'sectionId':0x3ec})['$promise'];})[_0x33ec9f('0xe19')](function(_0x8b6bb0){var _0x14cf3e=_0x33ec9f,_0x45ed56=_0x8b6bb0&&_0x8b6bb0['rows']?_0x8b6bb0[_0x14cf3e('0x16a7')][0x0]:null;if(!_0x45ed56)_0x292707[_0x14cf3e('0x10e0')]=[];else{if(!_0x45ed56[_0x14cf3e('0x11fd')])return _0x49ba01[_0x14cf3e('0xd49')]['get']({'sectionId':_0x45ed56['id']})['$promise'][_0x14cf3e('0xe19')](function(_0x16694d){var _0x5d0501=_0x14cf3e,_0x8d0e77=_0x16694d&&_0x16694d[_0x5d0501('0x16a7')]?_0x16694d['rows']:[],_0x2e160b=[],_0x15c53e=null;_0x292707[_0x5d0501('0x134c')]&&(_0x15c53e=_0x32d445()[_0x5d0501('0xf15')](_0x292707[_0x5d0501('0x10e0')],{'name':_0x292707[_0x5d0501('0x134c')]['IntervalId']})),_0x15c53e&&!_0x32d445()[_0x5d0501('0x201a')](_0x8d0e77,['resourceId',_0x15c53e['id']])&&_0x292707[_0x5d0501('0x10e0')][_0x5d0501('0x1d7e')](function(_0x43e7da){var _0x432961=_0x5d0501;_0x43e7da['id']===_0x15c53e['id']&&(_0x43e7da['canSelect']=![],_0x2e160b[_0x432961('0xb76')](_0x43e7da));}),_0x292707['intervals']=_0x2e160b;});}})['catch'](function(_0xca8e1){var _0x27b75d=_0x33ec9f;_0x931a[_0x27b75d('0x8c8')]({'title':_0xca8e1[_0x27b75d('0x2833')]?_0x27b75d('0x27f2')+_0xca8e1[_0x27b75d('0x2833')]+'\x20-\x20'+_0xca8e1[_0x27b75d('0x1fd7')]:'SYSTEM:GET_INTERVALS','msg':_0xca8e1['data']?JSON[_0x27b75d('0x3ad')](_0xca8e1[_0x27b75d('0x11d0')]):_0xca8e1[_0x27b75d('0x94f')]()});}));function _0x121267(){var _0x586c21=_0x33ec9f;switch(_0x292707[_0x586c21('0x62e')]){case _0x586c21('0x2210'):case _0x586c21('0x15a8'):return _0x586c21('0x2292');case _0x586c21('0x261d'):{var _0x314c4b=[];if(_0x292707[_0x586c21('0xde9')]!=='*'&&_0x292707[_0x586c21('0xde9')]&&_0x292707[_0x586c21('0x12ef')]){var _0x13c93f=(_0x292707['timeRangeFrom'][_0x586c21('0x757')]()<0xa?'0':'')+_0x292707['timeRangeFrom'][_0x586c21('0x757')]()+':'+((_0x292707['timeRangeFrom'][_0x586c21('0x961')]()<0xa?'0':'')+_0x292707['timeRangeFrom'][_0x586c21('0x961')]()),_0x2db905=(_0x292707[_0x586c21('0x12ef')][_0x586c21('0x757')]()<0xa?'0':'')+_0x292707[_0x586c21('0x12ef')][_0x586c21('0x757')]()+':'+((_0x292707[_0x586c21('0x12ef')][_0x586c21('0x961')]()<0xa?'0':'')+_0x292707[_0x586c21('0x12ef')][_0x586c21('0x961')]());_0x314c4b[_0x586c21('0xb76')](_0x13c93f+'-'+_0x2db905);}else _0x314c4b[_0x586c21('0xb76')]('*');return _0x292707['dayOfWeekFrom']?_0x292707[_0x586c21('0xa40')]?_0x314c4b[_0x586c21('0xb76')](_0x292707[_0x586c21('0x2359')]+'-'+_0x292707[_0x586c21('0xa40')]):_0x314c4b[_0x586c21('0xb76')](_0x292707[_0x586c21('0x2359')]):_0x314c4b[_0x586c21('0xb76')]('*'),_0x292707[_0x586c21('0x146b')]?_0x292707[_0x586c21('0x3d6')]?_0x314c4b[_0x586c21('0xb76')](_0x292707['monthDayFrom']+'-'+_0x292707[_0x586c21('0x3d6')]):_0x314c4b[_0x586c21('0xb76')](_0x292707[_0x586c21('0x146b')]):_0x314c4b[_0x586c21('0xb76')]('*'),_0x292707[_0x586c21('0x1b2a')]?_0x292707['monthTo']?_0x314c4b['push'](_0x292707[_0x586c21('0x1b2a')]+'-'+_0x292707[_0x586c21('0xac6')]):_0x314c4b['push'](_0x292707[_0x586c21('0x1b2a')]):_0x314c4b['push']('*'),_0x314c4b[_0x586c21('0x1537')]();}}}function _0x2ac68b(){var _0x225d54=_0x33ec9f;_0x292707['errors']=[],_0x292707[_0x225d54('0x134c')]['interval']=_0x121267(),_0x49ba01['interval']['save'](_0x292707[_0x225d54('0x134c')])[_0x225d54('0xe59')][_0x225d54('0xe19')](function(_0x259d33){var _0x11f39e=_0x225d54;_0x292707[_0x11f39e('0x10e0')][_0x11f39e('0xb76')](_0x259d33),_0x931a['success']({'title':'Interval\x20properly\x20created','msg':_0x292707[_0x11f39e('0x134c')][_0x11f39e('0x2623')]?_0x292707[_0x11f39e('0x134c')]['name']+_0x11f39e('0x105f'):''}),_0x2e2304();})[_0x225d54('0x223b')](function(_0x2950d6){var _0x1c3ee1=_0x225d54;console[_0x1c3ee1('0x8c8')](_0x2950d6),_0x292707['errors']=_0x2950d6[_0x1c3ee1('0x11d0')][_0x1c3ee1('0xcd2')]||[{'message':_0x2950d6[_0x1c3ee1('0x94f')](),'type':'api.interval.save'}];});}function _0x13e2a5(){var _0x49bc36=_0x33ec9f;_0x292707[_0x49bc36('0xcd2')]=[],_0x292707[_0x49bc36('0x134c')][_0x49bc36('0x134c')]=_0x121267(),_0x292707[_0x49bc36('0x134c')][_0x49bc36('0x1491')]?(_0x292707[_0x49bc36('0x62e')]!=='list'&&(_0x292707['interval'][_0x49bc36('0x1fc1')]=null),_0x2e2304(_0x292707[_0x49bc36('0x134c')])):_0x49ba01[_0x49bc36('0x134c')][_0x49bc36('0xa70')]({'id':_0x292707['interval']['id']},_0x292707['interval'])[_0x49bc36('0xe59')][_0x49bc36('0xe19')](function(_0x61590a){var _0x5a7b6c=_0x49bc36,_0x487a41=_0x32d445()[_0x5a7b6c('0xf15')](_0x292707[_0x5a7b6c('0x10e0')],{'id':_0x61590a['id']});_0x487a41&&_0x32d445()['merge'](_0x487a41,_0x61590a),_0x931a[_0x5a7b6c('0x425')]({'title':_0x5a7b6c('0x228'),'msg':_0x5a7b6c('0x8b4')}),_0x2e2304();})[_0x49bc36('0x223b')](function(_0x5e70e3){var _0x376119=_0x49bc36;console[_0x376119('0x8c8')](_0x5e70e3),_0x292707['errors']=_0x5e70e3[_0x376119('0x11d0')][_0x376119('0xcd2')]||[{'message':_0x5e70e3[_0x376119('0x94f')](),'type':_0x376119('0x1ff2')}];});}function _0x2e2304(_0x30afb4){var _0x1edb17=_0x33ec9f;_0xf8f71b[_0x1edb17('0x11ed')](_0x30afb4);}}const _0x20c5c0=_0x608cc3;_0xad4d8b['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x7b3'),_0xb635d2('0x1a7'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0xad4d8b(_0x18fad0,_0x531565,_0x38b062,_0x3dea14,_0x365078,_0x130d16,_0x149e0a,_0x260da7){var _0x4facad=_0xb635d2,_0x13b76d=this;_0x13b76d[_0x4facad('0x15a5')]=_0x149e0a[_0x4facad('0x1ef8')](),_0x13b76d[_0x4facad('0xcd2')]=[],_0x13b76d['title']=_0x4facad('0x1e1')+(_0x3dea14['appType']||_0x3dea14[_0x4facad('0xf2b')])[_0x4facad('0x25f7')](),_0x13b76d[_0x4facad('0xc09')]=angular[_0x4facad('0x89')](_0x3dea14),_0x13b76d[_0x4facad('0xb3d')]=_0x260da7,_0x13b76d[_0x4facad('0x1ccb')]={};if(_0x13b76d['noop'][_0x4facad('0x26d2')])switch(_0x13b76d[_0x4facad('0xc09')][_0x4facad('0xf44')]?_0x13b76d[_0x4facad('0xc09')]['appType'][_0x4facad('0x20dd')]():_0x13b76d[_0x4facad('0xc09')][_0x4facad('0xf2b')][_0x4facad('0x20dd')]()){case _0x4facad('0x261d'):break;case _0x4facad('0xc11'):{var _0x295c74=_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x26d2')]['split'](',');_0x13b76d[_0x4facad('0xc09')]['key']=_0x295c74[0x0],_0x13b76d['noop'][_0x4facad('0x174b')]=_0x295c74[0x1],_0x13b76d[_0x4facad('0xc09')][_0x4facad('0xfcc')]=_0x295c74[_0x4facad('0xa19')](0x2,_0x295c74[_0x4facad('0x25ae')])[_0x4facad('0x1537')](',');}break;case _0x4facad('0x1321'):{var _0x18bf6f=_0x13b76d['noop'][_0x4facad('0x26d2')][_0x4facad('0x1745')](',');_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x22be')]=_0x18bf6f[0x0],_0x13b76d['noop'][_0x4facad('0x700')]=_0x18bf6f[0x1],_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x206a')]=_0x18bf6f[0x2],_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x191a')]=_0x18bf6f[0x3],_0x13b76d[_0x4facad('0xc09')][_0x4facad('0xfcc')]=_0x18bf6f['slice'](0x4,_0x18bf6f[_0x4facad('0x25ae')])['join'](',');}break;case'autoreply':{var _0x46a4fc=_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x26d2')]['split'](',');_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x1ec4')]=isNaN(_0x46a4fc[0x0])?_0x46a4fc[0x0]:parseInt(_0x46a4fc[0x0],0xa),_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x1bc6')]=_0x46a4fc[_0x4facad('0xa19')](0x1,_0x46a4fc[_0x4facad('0x25ae')])[_0x4facad('0x1537')](',');}break;case'message':_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x1bc6')]=_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x26d2')];break;case _0x4facad('0x2aa'):_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x2623')]=_0x13b76d['noop'][_0x4facad('0x26d2')]['split']('=')[0x0],_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x2')]=_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x26d2')][_0x4facad('0x1745')]('=')[0x1];break;case _0x4facad('0x401'):_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x38b')]=_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x26d2')];break;default:{var _0x55b638=_0x13b76d['noop'][_0x4facad('0x26d2')]['split'](',');_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x2')]=_0x32d445()['isEmpty'](_0x55b638[0x0])?_0x55b638[0x0]:isNaN(_0x55b638[0x0])?_0x55b638[0x0]:parseInt(_0x55b638[0x0],0xa);}break;}else{}_0x13b76d[_0x4facad('0xc09')]['type']&&_0x13b76d[_0x4facad('0xc09')]['type']['toLowerCase']()===_0x4facad('0x1fdf')&&_0x13b76d[_0x4facad('0xc09')]['appType'][_0x4facad('0x20dd')]()===_0x4facad('0x1d1b')&&(_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x2580')]=_0x13b76d['noop'][_0x4facad('0x1ef5')]?_0x13b76d['noop']['phone']['split']('$')[0x0]:undefined,_0x13b76d[_0x4facad('0xc09')][_0x4facad('0x1b6f')]=_0x13b76d[_0x4facad('0xc09')][_0x4facad('0xfca')]?'CALLERID(all)='+_0x13b76d[_0x4facad('0xc09')][_0x4facad('0xfca')]:undefined);_0x13b76d[_0x4facad('0x2554')]=_0x1e4782,_0x13b76d['closeDialog']=_0x2b57f6;function _0x1e4782(){var _0x32d5bb=_0x4facad;_0x13b76d[_0x32d5bb('0xcd2')]=[];var _0x1c150c=[];_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x62e')]&&_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x62e')][_0x32d5bb('0x20dd')]()===_0x32d5bb('0x1fdf')&&_0x13b76d['noop']['appType']===_0x32d5bb('0x3d2')&&(_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x1ef5')]=_0x365078[_0x32d5bb('0x27f6')]?(_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x2580')]||'')+'${EXTEN:'+_0x365078['cutdigits']+'}':(_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x2580')]||'')+'${EXTEN}',_0x365078[_0x32d5bb('0x150c')]!==_0x32d5bb('0x23ca')?_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x2116')][_0x32d5bb('0x281c')](_0x32d5bb('0x767'))<0x0&&(_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x2116')]+=_0x32d5bb('0x767')):_0x13b76d['noop'][_0x32d5bb('0x2116')]=_0x13b76d['noop']['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x13b76d[_0x32d5bb('0xc09')]['appType']&&_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0xf44')]===_0x32d5bb('0x261d')){}else switch((_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0xf2b')]||_0x13b76d[_0x32d5bb('0xc09')]['appType'])['toLowerCase']()){case _0x32d5bb('0x2aa'):_0x13b76d['noop'][_0x32d5bb('0x26d2')]=_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x2623')]+'='+_0x13b76d['noop'][_0x32d5bb('0x2')];break;case _0x32d5bb('0x261d'):break;default:_0x1c150c[0x0]=_0x13b76d[_0x32d5bb('0xc09')][_0x32d5bb('0x2')],_0x13b76d['noop'][_0x32d5bb('0x26d2')]=_0x1c150c[_0x32d5bb('0x1537')](',');}_0x2b57f6(_0x13b76d['noop']);}function _0x2b57f6(_0x4c4d84){var _0x11cac1=_0x4facad;_0x18fad0[_0x11cac1('0x11ed')](_0x4c4d84);}}const _0x30a901=_0xad4d8b;_0x151366['$inject']=['$mdDialog','$q','toasty','openchannelAccountApp',_0xb635d2('0x1a7'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x151366(_0x5d4346,_0xee768c,_0x563923,_0x185fc5,_0x2f42ac,_0x9c95e9,_0x358a50,_0x153e50){var _0x387a04=_0xb635d2,_0x38e275=this;_0x38e275['currentUser']=_0x358a50[_0x387a04('0x1ef8')](),_0x38e275['errors']=[],_0x38e275[_0x387a04('0x13e4')]='OPENCHANNEL.EDIT_'+(_0x185fc5[_0x387a04('0xf44')]||_0x185fc5['app'])['toUpperCase'](),_0x38e275[_0x387a04('0x26a8')]=angular[_0x387a04('0x89')](_0x185fc5),_0x38e275[_0x387a04('0xb3d')]=_0x153e50,_0x38e275[_0x387a04('0x1ccb')]={};if(_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x26d2')])switch(_0x38e275[_0x387a04('0x26a8')][_0x387a04('0xf44')]?_0x38e275[_0x387a04('0x26a8')]['appType'][_0x387a04('0x20dd')]():_0x38e275['queue'][_0x387a04('0xf2b')]['toLowerCase']()){case'custom':break;case _0x387a04('0xc11'):{var _0x136947=_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x26d2')]['split'](',');_0x38e275[_0x387a04('0x26a8')]['key']=_0x136947[0x0],_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x174b')]=_0x136947[0x1],_0x38e275[_0x387a04('0x26a8')]['welcomemessage']=_0x136947[_0x387a04('0xa19')](0x2,_0x136947[_0x387a04('0x25ae')])[_0x387a04('0x1537')](',');}break;case _0x387a04('0x1321'):{var _0x1221d5=_0x38e275[_0x387a04('0x26a8')]['appdata'][_0x387a04('0x1745')](',');_0x38e275['queue'][_0x387a04('0x22be')]=_0x1221d5[0x0],_0x38e275['queue'][_0x387a04('0x700')]=_0x1221d5[0x1],_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x206a')]=_0x1221d5[0x2],_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x191a')]=_0x1221d5[0x3],_0x38e275[_0x387a04('0x26a8')]['welcomemessage']=_0x1221d5[_0x387a04('0xa19')](0x4,_0x1221d5[_0x387a04('0x25ae')])['join'](',');}break;case _0x387a04('0x400'):{var _0x294e82=_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x26d2')]['split'](',');_0x38e275[_0x387a04('0x26a8')]['times']=isNaN(_0x294e82[0x0])?_0x294e82[0x0]:parseInt(_0x294e82[0x0],0xa),_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x1bc6')]=_0x294e82[_0x387a04('0xa19')](0x1,_0x294e82['length'])[_0x387a04('0x1537')](',');}break;case _0x387a04('0x27e8'):_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x1bc6')]=_0x38e275['queue'][_0x387a04('0x26d2')];break;case _0x387a04('0x2aa'):_0x38e275['queue'][_0x387a04('0x2623')]=_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x26d2')]['split']('=')[0x0],_0x38e275[_0x387a04('0x26a8')]['value']=_0x38e275['queue']['appdata'][_0x387a04('0x1745')]('=')[0x1];break;case _0x387a04('0x401'):_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x38b')]=_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x26d2')];break;default:{var _0x50ae72=_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x26d2')][_0x387a04('0x1745')](',');_0x38e275[_0x387a04('0x26a8')]['queue']=_0x32d445()[_0x387a04('0x14b4')](_0x50ae72[0x0])?_0x50ae72[0x0]:isNaN(_0x50ae72[0x0])?_0x50ae72[0x0]:parseInt(_0x50ae72[0x0],0xa),_0x38e275['queue'][_0x387a04('0x2058')]=_0x32d445()[_0x387a04('0x14b4')](_0x50ae72[0x1])?_0x50ae72[0x1]:isNaN(_0x50ae72[0x1])?_0x50ae72[0x1]:parseInt(_0x50ae72[0x1],0xa);}break;}else _0x38e275[_0x387a04('0x26a8')][_0x387a04('0x26a8')]=0x12c,_0x38e275['queue'][_0x387a04('0x2058')]=0x12c;_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x62e')]&&_0x38e275['queue'][_0x387a04('0x62e')][_0x387a04('0x20dd')]()==='outbound'&&_0x38e275[_0x387a04('0x26a8')][_0x387a04('0xf44')][_0x387a04('0x20dd')]()==='outbounddial'&&(_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x2580')]=_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x1ef5')]?_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x1ef5')][_0x387a04('0x1745')]('$')[0x0]:undefined,_0x38e275[_0x387a04('0x26a8')][_0x387a04('0x1b6f')]=_0x38e275[_0x387a04('0x26a8')][_0x387a04('0xfca')]?'CALLERID(all)='+_0x38e275['queue'][_0x387a04('0xfca')]:undefined);_0x38e275[_0x387a04('0x2554')]=_0x1119b9,_0x38e275[_0x387a04('0x2584')]=_0x9f7b67,_0x358a50['hasRole'](_0x387a04('0xd14'))?_0x9c95e9[_0x387a04('0x22b1')][_0x387a04('0x22d5')]({'fields':_0x387a04('0x1555'),'sort':_0x387a04('0x2623'),'nolimit':_0x387a04('0x2206')})[_0x387a04('0xe59')][_0x387a04('0xe19')](function(_0x40f2a2){var _0x795387=_0x387a04;_0x38e275[_0x795387('0x671')]=_0x40f2a2[_0x795387('0x16a7')]||[];})[_0x387a04('0x223b')](function(_0x302e5b){var _0x17dfe6=_0x387a04;_0x563923[_0x17dfe6('0x8c8')]({'title':_0x302e5b[_0x17dfe6('0x2833')]?'API:'+_0x302e5b[_0x17dfe6('0x2833')]+_0x17dfe6('0x1b7c')+_0x302e5b['statusText']:'SYSTEM:GET_QUEUES','msg':_0x302e5b[_0x17dfe6('0x11d0')]?JSON[_0x17dfe6('0x3ad')](_0x302e5b[_0x17dfe6('0x11d0')]):_0x302e5b[_0x17dfe6('0x94f')]()});}):_0x9c95e9[_0x387a04('0x22b1')][_0x387a04('0x22d5')]({'fields':_0x387a04('0x1555'),'sort':_0x387a04('0x2623'),'nolimit':_0x387a04('0x2206')})[_0x387a04('0xe59')][_0x387a04('0xe19')](function(_0x17c047){var _0x5671a4=_0x387a04;_0x38e275[_0x5671a4('0x671')]=_0x17c047['rows']||[];})[_0x387a04('0xe19')](function(){var _0x24ed13=_0x387a04;return _0x9c95e9[_0x24ed13('0xb59')]['get']({'userProfileId':_0x38e275['currentUser']['userProfileId'],'sectionId':0x321})[_0x24ed13('0xe59')];})['then'](function(_0x49f718){var _0x126763=_0x387a04,_0x3a4252=_0x49f718&&_0x49f718[_0x126763('0x16a7')]?_0x49f718[_0x126763('0x16a7')][0x0]:null;if(!_0x3a4252){var _0x45601b=[],_0x19eb39=null;_0x38e275[_0x126763('0x26a8')]&&(_0x19eb39=_0x32d445()['find'](_0x38e275[_0x126763('0x671')],{'name':_0x38e275[_0x126763('0x26a8')][_0x126763('0x26a8')]}));for(var _0x4f73db=0x0;_0x4f73db<_0x38e275[_0x126763('0x671')][_0x126763('0x25ae')];_0x4f73db++){_0x19eb39&&_0x38e275['queues'][_0x4f73db]['id']===_0x19eb39['id']&&(_0x38e275[_0x126763('0x671')][_0x4f73db][_0x126763('0x1e9d')]=![],_0x45601b['push'](_0x38e275[_0x126763('0x671')][_0x4f73db]));}_0x38e275[_0x126763('0x671')]=_0x45601b;}else{if(!_0x3a4252[_0x126763('0x11fd')])return _0x9c95e9[_0x126763('0xd49')][_0x126763('0x22d5')]({'sectionId':_0x3a4252['id']})[_0x126763('0xe59')]['then'](function(_0x50a533){var _0x88fa38=_0x126763,_0x57076a=_0x32d445()[_0x88fa38('0x65a')](_0x50a533[_0x88fa38('0x16a7')],function(_0x43816f){var _0x13bdd6=_0x88fa38;return _0x32d445()[_0x13bdd6('0xf15')](_0x38e275[_0x13bdd6('0x671')],{'id':_0x43816f[_0x13bdd6('0x1104')]});}),_0x5a560a=null;_0x38e275[_0x88fa38('0x26a8')]&&(_0x5a560a=_0x32d445()[_0x88fa38('0xf15')](_0x38e275['queues'],{'name':_0x38e275[_0x88fa38('0x26a8')][_0x88fa38('0x26a8')]}));if(_0x5a560a&&!_0x32d445()['some'](_0x57076a,['id',_0x5a560a['id']])){var _0xcbdb41=_0x32d445()[_0x88fa38('0xf15')](_0x38e275[_0x88fa38('0x671')],{'id':_0x5a560a['id']});_0xcbdb41[_0x88fa38('0x1e9d')]=![],_0x57076a[_0x88fa38('0xb76')](_0xcbdb41);}_0x38e275[_0x88fa38('0x671')]=_0x57076a;});}})[_0x387a04('0x223b')](function(_0xd19200){var _0x5e0ff5=_0x387a04;_0x563923['error']({'title':_0xd19200[_0x5e0ff5('0x2833')]?_0x5e0ff5('0x27f2')+_0xd19200[_0x5e0ff5('0x2833')]+_0x5e0ff5('0x1b7c')+_0xd19200['statusText']:_0x5e0ff5('0x1716'),'msg':_0xd19200[_0x5e0ff5('0x11d0')]?JSON[_0x5e0ff5('0x3ad')](_0xd19200[_0x5e0ff5('0x11d0')]):_0xd19200['toString']()});});function _0x1119b9(){var _0xea61ef=_0x387a04;_0x38e275[_0xea61ef('0xcd2')]=[];var _0x3a86a9=[];_0x38e275['queue'][_0xea61ef('0x62e')]&&_0x38e275[_0xea61ef('0x26a8')][_0xea61ef('0x62e')]['toLowerCase']()===_0xea61ef('0x1fdf')&&_0x38e275['queue']['appType']===_0xea61ef('0x3d2')&&(_0x38e275[_0xea61ef('0x26a8')][_0xea61ef('0x1ef5')]=_0x2f42ac[_0xea61ef('0x27f6')]?(_0x38e275['queue'][_0xea61ef('0x2580')]||'')+_0xea61ef('0x5d8')+_0x2f42ac[_0xea61ef('0x27f6')]+'}':(_0x38e275['queue']['prefix']||'')+_0xea61ef('0x16b5'),_0x2f42ac[_0xea61ef('0x150c')]!=='none'?_0x38e275['queue'][_0xea61ef('0x2116')][_0xea61ef('0x281c')](_0xea61ef('0x767'))<0x0&&(_0x38e275[_0xea61ef('0x26a8')][_0xea61ef('0x2116')]+=_0xea61ef('0x767')):_0x38e275['queue'][_0xea61ef('0x2116')]=_0x38e275[_0xea61ef('0x26a8')][_0xea61ef('0x2116')]['replace']('U(xcally-mixmonitor-context)',''));var _0xc83aba=_0x32d445()['find'](_0x38e275[_0xea61ef('0x671')],{'name':_0x38e275[_0xea61ef('0x26a8')][_0xea61ef('0x26a8')]});_0xc83aba&&(_0x38e275[_0xea61ef('0x26a8')][_0x32d445()[_0xea61ef('0xbf6')](_0xea61ef('0x1b44'))+_0xea61ef('0x27a3')]=_0xc83aba['id']);if(_0x38e275[_0xea61ef('0x26a8')]['appType']&&_0x38e275[_0xea61ef('0x26a8')]['appType']===_0xea61ef('0x261d')){}else switch((_0x38e275['queue'][_0xea61ef('0xf2b')]||_0x38e275[_0xea61ef('0x26a8')]['appType'])[_0xea61ef('0x20dd')]()){case _0xea61ef('0x2aa'):_0x38e275['queue']['appdata']=_0x38e275[_0xea61ef('0x26a8')][_0xea61ef('0x2623')]+'='+_0x38e275[_0xea61ef('0x26a8')][_0xea61ef('0x2')];break;case _0xea61ef('0x261d'):break;default:_0x3a86a9[0x0]=_0x38e275[_0xea61ef('0x26a8')]['queue'],_0x3a86a9[0x1]=_0x38e275[_0xea61ef('0x26a8')][_0xea61ef('0x2058')],_0x38e275[_0xea61ef('0x26a8')]['appdata']=_0x3a86a9[_0xea61ef('0x1537')](',');}_0x9f7b67(_0x38e275[_0xea61ef('0x26a8')]);}function _0x9f7b67(_0x9ae264){var _0x3d0b7b=_0x387a04;_0x5d4346[_0x3d0b7b('0x11ed')](_0x9ae264);}}const _0x147ae1=_0x151366;_0x5939f6[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0x7b3'),_0xb635d2('0x1a7'),'api','Auth',_0xb635d2('0xb3d')];function _0x5939f6(_0x16bbd6,_0xe3a5f5,_0x2d130c,_0x23f3a8,_0x39ac92,_0xb1f271,_0x2f3af6,_0x423db7){var _0x23e843=_0xb635d2,_0x395f7a=this;_0x395f7a[_0x23e843('0x15a5')]=_0x2f3af6[_0x23e843('0x1ef8')](),_0x395f7a[_0x23e843('0xcd2')]=[],_0x395f7a[_0x23e843('0x13e4')]=_0x23e843('0x1e1')+(_0x23f3a8['appType']||_0x23f3a8[_0x23e843('0xf2b')])[_0x23e843('0x25f7')](),_0x395f7a[_0x23e843('0x1917')]=angular[_0x23e843('0x89')](_0x23f3a8),_0x395f7a[_0x23e843('0xb3d')]=_0x423db7,_0x395f7a[_0x23e843('0x1ccb')]={};if(_0x395f7a[_0x23e843('0x1917')]['appdata'])switch(_0x395f7a[_0x23e843('0x1917')][_0x23e843('0xf44')]?_0x395f7a[_0x23e843('0x1917')][_0x23e843('0xf44')][_0x23e843('0x20dd')]():_0x395f7a['system'][_0x23e843('0xf2b')][_0x23e843('0x20dd')]()){case _0x23e843('0x261d'):break;case'dialogflow':{var _0x62ee43=_0x395f7a[_0x23e843('0x1917')]['appdata'][_0x23e843('0x1745')](',');_0x395f7a['system'][_0x23e843('0x6e4')]=_0x62ee43[0x0],_0x395f7a[_0x23e843('0x1917')]['language']=_0x62ee43[0x1],_0x395f7a[_0x23e843('0x1917')]['welcomemessage']=_0x62ee43[_0x23e843('0xa19')](0x2,_0x62ee43[_0x23e843('0x25ae')])[_0x23e843('0x1537')](',');}break;case'amazonlex':{var _0x2cc524=_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x26d2')][_0x23e843('0x1745')](',');_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x22be')]=_0x2cc524[0x0],_0x395f7a['system']['secretaccesskey']=_0x2cc524[0x1],_0x395f7a['system']['lexregion']=_0x2cc524[0x2],_0x395f7a['system'][_0x23e843('0x191a')]=_0x2cc524[0x3],_0x395f7a[_0x23e843('0x1917')]['welcomemessage']=_0x2cc524[_0x23e843('0xa19')](0x4,_0x2cc524['length'])[_0x23e843('0x1537')](',');}break;case _0x23e843('0x400'):{var _0x50552=_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x26d2')][_0x23e843('0x1745')](',');_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x1ec4')]=isNaN(_0x50552[0x0])?_0x50552[0x0]:parseInt(_0x50552[0x0],0xa),_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x1bc6')]=_0x50552[_0x23e843('0xa19')](0x1,_0x50552[_0x23e843('0x25ae')])['join'](',');}break;case _0x23e843('0x27e8'):_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x1bc6')]=_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x26d2')];break;case _0x23e843('0x2aa'):_0x395f7a[_0x23e843('0x1917')]['name']=_0x395f7a[_0x23e843('0x1917')]['appdata']['split']('=')[0x0],_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x2')]=_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x26d2')]['split']('=')[0x1];break;case _0x23e843('0x401'):_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x38b')]=_0x395f7a['system']['appdata'];break;default:{var _0x14f6ee=_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x26d2')][_0x23e843('0x1745')](',');_0x395f7a['system'][_0x23e843('0x19a')]=_0x32d445()['isEmpty'](_0x14f6ee[0x0])?_0x14f6ee[0x0]:isNaN(_0x14f6ee[0x0])?_0x14f6ee[0x0]:parseInt(_0x14f6ee[0x0],0xa),_0x395f7a['system'][_0x23e843('0x19a5')]=_0x32d445()[_0x23e843('0x14b4')](_0x14f6ee[0x1])?_0x14f6ee[0x1]:isNaN(_0x14f6ee[0x1])?_0x14f6ee[0x1]:parseInt(_0x14f6ee[0x1],0xa);}break;}else _0x395f7a[_0x23e843('0x1917')][_0x23e843('0x19a5')]='';_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x62e')]&&_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x62e')]['toLowerCase']()==='outbound'&&_0x395f7a[_0x23e843('0x1917')][_0x23e843('0xf44')][_0x23e843('0x20dd')]()===_0x23e843('0x1d1b')&&(_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x2580')]=_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x1ef5')]?_0x395f7a[_0x23e843('0x1917')][_0x23e843('0x1ef5')][_0x23e843('0x1745')]('$')[0x0]:undefined,_0x395f7a[_0x23e843('0x1917')]['callerId']=_0x395f7a[_0x23e843('0x1917')]['callerID']?'CALLERID(all)='+_0x395f7a[_0x23e843('0x1917')][_0x23e843('0xfca')]:undefined);_0x395f7a['saveOpenchannelAccountApp']=_0x1736a3,_0x395f7a[_0x23e843('0x2584')]=_0x2f7017,_0x2f3af6['hasRole'](_0x23e843('0xd14'))?_0xb1f271['variable'][_0x23e843('0x22d5')]({'fields':_0x23e843('0x104'),'sort':_0x23e843('0x2623'),'nolimit':'true'})[_0x23e843('0xe59')]['then'](function(_0x55c94d){_0x395f7a['variables']=_0x55c94d['rows']||[];})[_0x23e843('0x223b')](function(_0x5121b5){var _0x5f344f=_0x23e843;_0x2d130c[_0x5f344f('0x8c8')]({'title':_0x5121b5['status']?_0x5f344f('0x27f2')+_0x5121b5[_0x5f344f('0x2833')]+'\x20-\x20'+_0x5121b5[_0x5f344f('0x1fd7')]:_0x5f344f('0x282'),'msg':_0x5121b5['data']?JSON[_0x5f344f('0x3ad')](_0x5121b5['data']):_0x5121b5['toString']()});}):_0xb1f271[_0x23e843('0x19a5')][_0x23e843('0x22d5')]({'fields':'id,name','sort':_0x23e843('0x2623'),'nolimit':'true'})[_0x23e843('0xe59')]['then'](function(_0x38a491){var _0x11a465=_0x23e843;_0x395f7a[_0x11a465('0x1a9e')]=_0x38a491['rows']||[];})[_0x23e843('0xe19')](function(){var _0x14c2a7=_0x23e843;return _0xb1f271[_0x14c2a7('0xb59')]['get']({'userProfileId':_0x395f7a[_0x14c2a7('0x15a5')]['userProfileId'],'sectionId':0x3f4})[_0x14c2a7('0xe59')];})['then'](function(_0x3ed363){var _0x4f9187=_0x23e843,_0x1bad73=_0x3ed363&&_0x3ed363[_0x4f9187('0x16a7')]?_0x3ed363[_0x4f9187('0x16a7')][0x0]:null;if(!_0x1bad73){var _0x2cb35c=[],_0x1fdd3c=null;_0x395f7a['system']&&(_0x1fdd3c=_0x32d445()['find'](_0x395f7a[_0x4f9187('0x1a9e')],{'name':_0x395f7a[_0x4f9187('0x1917')][_0x4f9187('0x19a5')]}));for(var _0x2200fe=0x0;_0x2200fe<_0x395f7a[_0x4f9187('0x1a9e')][_0x4f9187('0x25ae')];_0x2200fe++){_0x1fdd3c&&_0x395f7a['variables'][_0x2200fe]['id']===_0x1fdd3c['id']&&(_0x395f7a[_0x4f9187('0x1a9e')][_0x2200fe][_0x4f9187('0x1e9d')]=![],_0x2cb35c['push'](_0x395f7a[_0x4f9187('0x1a9e')][_0x2200fe]));}_0x395f7a[_0x4f9187('0x1a9e')]=_0x2cb35c;}else{if(!_0x1bad73[_0x4f9187('0x11fd')])return _0xb1f271['userProfileResource']['get']({'sectionId':_0x1bad73['id']})[_0x4f9187('0xe59')]['then'](function(_0xd70d9a){var _0x47cec9=_0x4f9187,_0x3934ce=_0x32d445()['map'](_0xd70d9a[_0x47cec9('0x16a7')],function(_0x4874b1){var _0x3d94ca=_0x47cec9;return _0x32d445()[_0x3d94ca('0xf15')](_0x395f7a[_0x3d94ca('0x1a9e')],{'id':_0x4874b1[_0x3d94ca('0x1104')]});}),_0x1e8e1e=null;_0x395f7a['system']&&(_0x1e8e1e=_0x32d445()[_0x47cec9('0xf15')](_0x395f7a[_0x47cec9('0x1a9e')],{'name':_0x395f7a[_0x47cec9('0x1917')][_0x47cec9('0x19a5')]}));if(_0x1e8e1e&&!_0x32d445()[_0x47cec9('0x201a')](_0x3934ce,['id',_0x1e8e1e['id']])){var _0x12a124=_0x32d445()[_0x47cec9('0xf15')](_0x395f7a[_0x47cec9('0x1a9e')],{'id':_0x1e8e1e['id']});_0x12a124[_0x47cec9('0x1e9d')]=![],_0x3934ce['push'](_0x12a124);}_0x395f7a[_0x47cec9('0x1a9e')]=_0x3934ce;});}})[_0x23e843('0x223b')](function(_0x539f3a){var _0x3f75f7=_0x23e843;_0x2d130c['error']({'title':_0x539f3a[_0x3f75f7('0x2833')]?_0x3f75f7('0x27f2')+_0x539f3a['status']+_0x3f75f7('0x1b7c')+_0x539f3a[_0x3f75f7('0x1fd7')]:_0x3f75f7('0x287e'),'msg':_0x539f3a[_0x3f75f7('0x11d0')]?JSON[_0x3f75f7('0x3ad')](_0x539f3a[_0x3f75f7('0x11d0')]):_0x539f3a[_0x3f75f7('0x94f')]()});});function _0x1736a3(){var _0xf14888=_0x23e843;_0x395f7a[_0xf14888('0xcd2')]=[];var _0x39998f=[];_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x62e')]&&_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x62e')][_0xf14888('0x20dd')]()===_0xf14888('0x1fdf')&&_0x395f7a['system'][_0xf14888('0xf44')]===_0xf14888('0x3d2')&&(_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x1ef5')]=_0x39ac92['cutdigits']?(_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x2580')]||'')+_0xf14888('0x5d8')+_0x39ac92[_0xf14888('0x27f6')]+'}':(_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x2580')]||'')+_0xf14888('0x16b5'),_0x39ac92[_0xf14888('0x150c')]!==_0xf14888('0x23ca')?_0x395f7a[_0xf14888('0x1917')]['options'][_0xf14888('0x281c')](_0xf14888('0x767'))<0x0&&(_0x395f7a['system'][_0xf14888('0x2116')]+=_0xf14888('0x767')):_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x2116')]=_0x395f7a['system']['options'][_0xf14888('0x1b42')](_0xf14888('0x767'),''));if(_0x395f7a[_0xf14888('0x1917')][_0xf14888('0xf44')]&&_0x395f7a[_0xf14888('0x1917')][_0xf14888('0xf44')]==='custom'){}else switch((_0x395f7a[_0xf14888('0x1917')][_0xf14888('0xf2b')]||_0x395f7a['system']['appType'])['toLowerCase']()){case _0xf14888('0x2aa'):_0x395f7a[_0xf14888('0x1917')]['appdata']=_0x395f7a[_0xf14888('0x1917')]['name']+'='+_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x2')];break;case _0xf14888('0x261d'):break;default:_0x39998f[0x0]=_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x19a')],_0x39998f[0x1]=_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x19a5')],_0x395f7a[_0xf14888('0x1917')][_0xf14888('0x26d2')]=_0x39998f[_0xf14888('0x1537')](',');}_0x2f7017(_0x395f7a[_0xf14888('0x1917')]);}function _0x2f7017(_0x411453){var _0x3bb321=_0x23e843;_0x16bbd6[_0x3bb321('0x11ed')](_0x411453);}}const _0x35f2cf=_0x5939f6;_0x49f174[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x7b3'),_0xb635d2('0x1a7'),_0xb635d2('0xffc'),'Auth','crudPermissions'];function _0x49f174(_0x4314eb,_0x26e2ed,_0x33e0a1,_0x13d6fa,_0x50edfc,_0x20638b,_0x2547a8,_0x1a2c27){var _0x2c35fb=_0xb635d2,_0x1bd8c9=this;_0x1bd8c9['currentUser']=_0x2547a8[_0x2c35fb('0x1ef8')](),_0x1bd8c9[_0x2c35fb('0xcd2')]=[],_0x1bd8c9[_0x2c35fb('0x13e4')]=_0x2c35fb('0x1e1')+(_0x13d6fa[_0x2c35fb('0xf44')]||_0x13d6fa[_0x2c35fb('0xf2b')])[_0x2c35fb('0x25f7')](),_0x1bd8c9['tag']=angular[_0x2c35fb('0x89')](_0x13d6fa),_0x1bd8c9['crudPermissions']=_0x1a2c27,_0x1bd8c9[_0x2c35fb('0x1ccb')]={};if(_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x26d2')])switch(_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0xf44')]?_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0xf44')][_0x2c35fb('0x20dd')]():_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0xf2b')]['toLowerCase']()){case _0x2c35fb('0x261d'):break;case _0x2c35fb('0xc11'):{var _0x3d69fc=_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x26d2')][_0x2c35fb('0x1745')](',');_0x1bd8c9['tag'][_0x2c35fb('0x6e4')]=_0x3d69fc[0x0],_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x174b')]=_0x3d69fc[0x1],_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0xfcc')]=_0x3d69fc[_0x2c35fb('0xa19')](0x2,_0x3d69fc[_0x2c35fb('0x25ae')])[_0x2c35fb('0x1537')](',');}break;case _0x2c35fb('0x1321'):{var _0x32575e=_0x1bd8c9[_0x2c35fb('0x2037')]['appdata'][_0x2c35fb('0x1745')](',');_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x22be')]=_0x32575e[0x0],_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x700')]=_0x32575e[0x1],_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x206a')]=_0x32575e[0x2],_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x191a')]=_0x32575e[0x3],_0x1bd8c9['tag'][_0x2c35fb('0xfcc')]=_0x32575e['slice'](0x4,_0x32575e[_0x2c35fb('0x25ae')])['join'](',');}break;case _0x2c35fb('0x400'):{var _0xce51d3=_0x1bd8c9['tag'][_0x2c35fb('0x26d2')][_0x2c35fb('0x1745')](',');_0x1bd8c9[_0x2c35fb('0x2037')]['times']=isNaN(_0xce51d3[0x0])?_0xce51d3[0x0]:parseInt(_0xce51d3[0x0],0xa),_0x1bd8c9['tag'][_0x2c35fb('0x1bc6')]=_0xce51d3['slice'](0x1,_0xce51d3[_0x2c35fb('0x25ae')])[_0x2c35fb('0x1537')](',');}break;case _0x2c35fb('0x27e8'):_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x1bc6')]=_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x26d2')];break;case'set':_0x1bd8c9[_0x2c35fb('0x2037')]['name']=_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x26d2')]['split']('=')[0x0],_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x2')]=_0x1bd8c9['tag'][_0x2c35fb('0x26d2')]['split']('=')[0x1];break;case _0x2c35fb('0x401'):_0x1bd8c9['tag'][_0x2c35fb('0x38b')]=_0x1bd8c9['tag'][_0x2c35fb('0x26d2')];break;default:{var _0x5c2a7f=_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x26d2')]['split'](',');_0x1bd8c9['tag']['tag']=_0x32d445()['isEmpty'](_0x5c2a7f[0x0])?_0x5c2a7f[0x0]:isNaN(_0x5c2a7f[0x0])?_0x5c2a7f[0x0]:parseInt(_0x5c2a7f[0x0],0xa);}break;}else{}_0x1bd8c9['tag']['type']&&_0x1bd8c9['tag'][_0x2c35fb('0x62e')][_0x2c35fb('0x20dd')]()===_0x2c35fb('0x1fdf')&&_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0xf44')]['toLowerCase']()===_0x2c35fb('0x1d1b')&&(_0x1bd8c9[_0x2c35fb('0x2037')]['prefix']=_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0x1ef5')]?_0x1bd8c9['tag'][_0x2c35fb('0x1ef5')][_0x2c35fb('0x1745')]('$')[0x0]:undefined,_0x1bd8c9[_0x2c35fb('0x2037')]['callerId']=_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0xfca')]?_0x2c35fb('0xd41')+_0x1bd8c9[_0x2c35fb('0x2037')][_0x2c35fb('0xfca')]:undefined);_0x1bd8c9[_0x2c35fb('0x2554')]=_0x4fd7c5,_0x1bd8c9[_0x2c35fb('0x2584')]=_0x5c6ab2,_0x2547a8[_0x2c35fb('0x179e')](_0x2c35fb('0xd14'))?_0x20638b[_0x2c35fb('0x2037')][_0x2c35fb('0x22d5')]({'fields':_0x2c35fb('0x104'),'sort':_0x2c35fb('0x2623'),'nolimit':'true'})[_0x2c35fb('0xe59')]['then'](function(_0x3c2a99){var _0xe2c49a=_0x2c35fb;_0x1bd8c9[_0xe2c49a('0x1105')]=_0x3c2a99[_0xe2c49a('0x16a7')]||[];})[_0x2c35fb('0x223b')](function(_0x2fbfc0){var _0x2fab67=_0x2c35fb;_0x33e0a1['error']({'title':_0x2fbfc0[_0x2fab67('0x2833')]?_0x2fab67('0x27f2')+_0x2fbfc0[_0x2fab67('0x2833')]+_0x2fab67('0x1b7c')+_0x2fbfc0[_0x2fab67('0x1fd7')]:'SYSTEM:GET_TAGS','msg':_0x2fbfc0[_0x2fab67('0x11d0')]?JSON[_0x2fab67('0x3ad')](_0x2fbfc0[_0x2fab67('0x11d0')]):_0x2fbfc0['toString']()});}):_0x20638b[_0x2c35fb('0x2037')][_0x2c35fb('0x22d5')]({'fields':_0x2c35fb('0x104'),'sort':_0x2c35fb('0x2623'),'nolimit':_0x2c35fb('0x2206')})[_0x2c35fb('0xe59')][_0x2c35fb('0xe19')](function(_0x10bee7){_0x1bd8c9['tags']=_0x10bee7['rows']||[];})['then'](function(){var _0x376cf9=_0x2c35fb;return _0x20638b[_0x376cf9('0xb59')]['get']({'userProfileId':_0x1bd8c9[_0x376cf9('0x15a5')][_0x376cf9('0x1d04')],'sectionId':0x3f0})[_0x376cf9('0xe59')];})[_0x2c35fb('0xe19')](function(_0x17813a){var _0x4b3c4d=_0x2c35fb,_0xad2d5e=_0x17813a&&_0x17813a[_0x4b3c4d('0x16a7')]?_0x17813a[_0x4b3c4d('0x16a7')][0x0]:null;if(!_0xad2d5e){var _0x1d931e=[],_0x579105=null;_0x1bd8c9[_0x4b3c4d('0x2037')]&&(_0x579105=_0x32d445()[_0x4b3c4d('0xf15')](_0x1bd8c9[_0x4b3c4d('0x1105')],{'name':_0x1bd8c9[_0x4b3c4d('0x2037')][_0x4b3c4d('0x2037')]}));for(var _0xc81eb1=0x0;_0xc81eb1<_0x1bd8c9[_0x4b3c4d('0x1105')]['length'];_0xc81eb1++){_0x579105&&_0x1bd8c9[_0x4b3c4d('0x1105')][_0xc81eb1]['id']===_0x579105['id']&&(_0x1bd8c9[_0x4b3c4d('0x1105')][_0xc81eb1]['canSelect']=![],_0x1d931e[_0x4b3c4d('0xb76')](_0x1bd8c9[_0x4b3c4d('0x1105')][_0xc81eb1]));}_0x1bd8c9[_0x4b3c4d('0x1105')]=_0x1d931e;}else{if(!_0xad2d5e['autoAssociation'])return _0x20638b['userProfileResource']['get']({'sectionId':_0xad2d5e['id']})['$promise'][_0x4b3c4d('0xe19')](function(_0x163c34){var _0x1e68bb=_0x4b3c4d,_0x30e258=_0x32d445()[_0x1e68bb('0x65a')](_0x163c34[_0x1e68bb('0x16a7')],function(_0x14f4b8){var _0x27ee43=_0x1e68bb;return _0x32d445()['find'](_0x1bd8c9[_0x27ee43('0x1105')],{'id':_0x14f4b8[_0x27ee43('0x1104')]});}),_0x272a24=null;_0x1bd8c9['tag']&&(_0x272a24=_0x32d445()[_0x1e68bb('0xf15')](_0x1bd8c9[_0x1e68bb('0x1105')],{'name':_0x1bd8c9[_0x1e68bb('0x2037')][_0x1e68bb('0x2037')]}));if(_0x272a24&&!_0x32d445()[_0x1e68bb('0x201a')](_0x30e258,['id',_0x272a24['id']])){var _0x23ddf7=_0x32d445()[_0x1e68bb('0xf15')](_0x1bd8c9['tags'],{'id':_0x272a24['id']});_0x23ddf7[_0x1e68bb('0x1e9d')]=![],_0x30e258[_0x1e68bb('0xb76')](_0x23ddf7);}_0x1bd8c9[_0x1e68bb('0x1105')]=_0x30e258;});}})['catch'](function(_0x3cdfe8){var _0x51b392=_0x2c35fb;_0x33e0a1[_0x51b392('0x8c8')]({'title':_0x3cdfe8[_0x51b392('0x2833')]?'API:'+_0x3cdfe8[_0x51b392('0x2833')]+_0x51b392('0x1b7c')+_0x3cdfe8[_0x51b392('0x1fd7')]:_0x51b392('0x25d1'),'msg':_0x3cdfe8[_0x51b392('0x11d0')]?JSON[_0x51b392('0x3ad')](_0x3cdfe8[_0x51b392('0x11d0')]):_0x3cdfe8[_0x51b392('0x94f')]()});});function _0x4fd7c5(){var _0x424284=_0x2c35fb;_0x1bd8c9[_0x424284('0xcd2')]=[];var _0x51b421=[];_0x1bd8c9[_0x424284('0x2037')][_0x424284('0x62e')]&&_0x1bd8c9[_0x424284('0x2037')][_0x424284('0x62e')][_0x424284('0x20dd')]()===_0x424284('0x1fdf')&&_0x1bd8c9['tag'][_0x424284('0xf44')]===_0x424284('0x3d2')&&(_0x1bd8c9['tag'][_0x424284('0x1ef5')]=_0x50edfc[_0x424284('0x27f6')]?(_0x1bd8c9[_0x424284('0x2037')]['prefix']||'')+_0x424284('0x5d8')+_0x50edfc[_0x424284('0x27f6')]+'}':(_0x1bd8c9[_0x424284('0x2037')]['prefix']||'')+'${EXTEN}',_0x50edfc[_0x424284('0x150c')]!==_0x424284('0x23ca')?_0x1bd8c9['tag'][_0x424284('0x2116')][_0x424284('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x1bd8c9['tag'][_0x424284('0x2116')]+=_0x424284('0x767')):_0x1bd8c9[_0x424284('0x2037')][_0x424284('0x2116')]=_0x1bd8c9[_0x424284('0x2037')]['options'][_0x424284('0x1b42')](_0x424284('0x767'),''));var _0x1b1538=_0x32d445()[_0x424284('0xf15')](_0x1bd8c9[_0x424284('0x1105')],{'name':_0x1bd8c9[_0x424284('0x2037')][_0x424284('0x2037')]});_0x1b1538&&(_0x1bd8c9[_0x424284('0x2037')][_0x424284('0x30a')]=_0x1b1538['id']);if(_0x1bd8c9[_0x424284('0x2037')][_0x424284('0xf44')]&&_0x1bd8c9[_0x424284('0x2037')][_0x424284('0xf44')]===_0x424284('0x261d')){}else switch((_0x1bd8c9[_0x424284('0x2037')][_0x424284('0xf2b')]||_0x1bd8c9[_0x424284('0x2037')][_0x424284('0xf44')])[_0x424284('0x20dd')]()){case _0x424284('0x2aa'):_0x1bd8c9['tag'][_0x424284('0x26d2')]=_0x1bd8c9[_0x424284('0x2037')]['name']+'='+_0x1bd8c9[_0x424284('0x2037')][_0x424284('0x2')];break;case _0x424284('0x261d'):break;default:_0x51b421[0x0]=_0x1bd8c9[_0x424284('0x2037')][_0x424284('0x2037')],_0x1bd8c9[_0x424284('0x2037')][_0x424284('0x26d2')]=_0x51b421[_0x424284('0x1537')](',');}_0x5c6ab2(_0x1bd8c9[_0x424284('0x2037')]);}function _0x5c6ab2(_0x176038){var _0x71b485=_0x2c35fb;_0x4314eb[_0x71b485('0x11ed')](_0x176038);}}const _0x48baf2=_0x49f174;_0x33020e['$inject']=['$cookies',_0xb635d2('0x63c'),'$state','$q',_0xb635d2('0x2493'),'$timeout',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),'api','Auth'];function _0x33020e(_0x2fe1a1,_0x2cc086,_0x22c82b,_0x26d4e6,_0x5ebe2a,_0x5037b8,_0x1b5bb6,_0xfcd068,_0x5aed82,_0x7214d6,_0x36253e){var _0x5e6f2c=_0xb635d2,_0xfdce87=this;_0xfdce87[_0x5e6f2c('0x15a5')]=_0x36253e[_0x5e6f2c('0x1ef8')](),_0xfdce87[_0x5e6f2c('0x1a7')]={},_0xfdce87['openchannelAccountInteractions']={'count':0x0,'rows':[]},_0xfdce87[_0x5e6f2c('0x246d')]=[],_0xfdce87[_0x5e6f2c('0xb3d')],_0xfdce87['query']={'read':_0x5e6f2c('0x1046'),'closed':'null','sort':_0x5e6f2c('0x962'),'includeAll':'true','limit':0xa,'page':0x1},_0xfdce87[_0x5e6f2c('0x15f9')]=_0x5b0597,_0xfdce87[_0x5e6f2c('0x126c')]=_0x2daf74,_0xfdce87['openchannelInteractionDownload']=_0x276c85,_0xfdce87[_0x5e6f2c('0x425')]=_0x459bb6,_0xfdce87[_0x5e6f2c('0xbb')]=_0x182d75,_0xfdce87[_0x5e6f2c('0x3de')]=_0x5ebb53,_0xfdce87[_0x5e6f2c('0x1f45')]=_0x21ef34,_0xfdce87[_0x5e6f2c('0xc96')]=_0x53c9e4,_0xfdce87[_0x5e6f2c('0x1c2c')]=_0xac50a6,_0xfdce87[_0x5e6f2c('0x7a')]=_0x1a562b;function _0x5b0597(_0x155fc8,_0x410ed6){var _0x575195=_0x5e6f2c;_0xfdce87[_0x575195('0x1a7')]=_0x155fc8,_0xfdce87[_0x575195('0xb3d')]=typeof _0x410ed6!==_0x575195('0x1143')?_0x410ed6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xfdce87['query'][_0x575195('0xf26')]=_0xfdce87[_0x575195('0x1a7')]['id'],_0xfdce87[_0x575195('0x164')]={'fields':_0x233c3e()},_0x216e57();}function _0x216e57(){var _0x5c61ce=_0x5e6f2c;return _0x7214d6[_0x5c61ce('0x2037')][_0x5c61ce('0x22d5')]()['$promise'][_0x5c61ce('0xe19')](function(_0x102fd8){var _0x5192f9=_0x5c61ce;_0xfdce87[_0x5192f9('0x1105')]=_0x102fd8||{'count':0x0,'rows':[]};})['then'](function(){_0xfdce87['quickFilters']=_0x442e0d();});}function _0x442e0d(){var _0x489217=_0x5e6f2c;return[{'name':_0x489217('0x141d'),'key':_0x489217('0x15c9'),'type':_0x489217('0xf6d'),'label':_0x489217('0x19b7')},{'name':_0x489217('0x1e63'),'key':_0x489217('0x1a6e'),'type':_0x489217('0x2e6'),'label':_0x489217('0x2738'),'customOptions':[{'value':0x0,'translate':_0x489217('0x10db')},{'value':0x1,'translate':_0x489217('0x3b4')},{'value':null,'translate':_0x489217('0x296')}]},{'name':_0x489217('0x20e'),'key':_0x489217('0x1835'),'type':_0x489217('0x2e6'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x489217('0x1c37')},{'value':0x1,'translate':_0x489217('0x1bbb')},{'value':null,'translate':_0x489217('0x296')}]},{'name':_0x489217('0x142e'),'key':_0x489217('0x43d'),'type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x489217('0x1046'),'translate':_0x489217('0x2094')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x489217('0x1172'),'key':_0x489217('0x2037'),'type':_0x489217('0x19a0'),'label':_0x489217('0x23c7'),'options':_0xfdce87['tags'][_0x489217('0x16a7')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x233c3e(){var _0x3d51b3=_0x5e6f2c;return[{'name':'Id','column':'id','type':_0x3d51b3('0x1c60')},{'name':_0x3d51b3('0x1286'),'column':'Contact','type':_0x3d51b3('0x5c0'),'options':{'searchFields':['firstName',_0x3d51b3('0x151f'),_0x3d51b3('0x1211')],'route':{'model':_0x3d51b3('0x1711'),'action':_0x3d51b3('0x22d5'),'params':{'fields':_0x3d51b3('0x75'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x3d51b3('0x1247')],'excludedOperators':[_0x3d51b3('0x1f51')]}},{'name':_0x3d51b3('0x375'),'column':_0x3d51b3('0x9ec'),'type':_0x3d51b3('0x1bc6'),'options':{'excludedOperators':['$eq',_0x3d51b3('0x1f51')]}},{'name':_0x3d51b3('0x750'),'column':'plainBody','type':_0x3d51b3('0x1bc6'),'options':{'excludedOperators':[_0x3d51b3('0x1d15'),_0x3d51b3('0x1f51')]}},{'name':'Status','column':_0x3d51b3('0x1835'),'type':_0x3d51b3('0x2e6'),'values':[{'id':0x0,'translate':_0x3d51b3('0x1c37')},{'id':0x1,'translate':_0x3d51b3('0x1bbb')}],'options':{'excludedOperators':[_0x3d51b3('0x1f51')]}},{'name':_0x3d51b3('0x142e'),'column':_0x3d51b3('0x2630'),'type':_0x3d51b3('0x5c0'),'options':{'table':'i','route':{'model':'user','action':_0x3d51b3('0x22d5'),'params':{'role':_0x3d51b3('0x108'),'fields':_0x3d51b3('0x194c'),'nolimit':!![]}},'searchFields':[_0x3d51b3('0xe11'),_0x3d51b3('0x2623')],'extraOperators':[_0x3d51b3('0x1247')],'excludedOperators':[_0x3d51b3('0x1f51')]}},{'name':'Tags','column':'Tag','type':_0x3d51b3('0x19a0'),'options':{'route':{'model':_0x3d51b3('0x2037'),'action':_0x3d51b3('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0x3d51b3('0x19a3')]}},{'name':'Start\x20Date','column':_0x3d51b3('0x15c9'),'type':_0x3d51b3('0xf6d'),'options':{'excludedOperators':['$ne']}},{'name':_0x3d51b3('0x2233'),'column':'unreadMessages','type':_0x3d51b3('0x2e6'),'values':[{'id':0x1,'translate':_0x3d51b3('0x3b4')},{'id':0x0,'translate':_0x3d51b3('0x10db')}],'options':{'excludedOperators':[_0x3d51b3('0x1f51')]}}];}function _0x21ef34(){var _0x3a9ea6=_0x5e6f2c;_0x1b5bb6[_0x3a9ea6('0x26b2')]({'controller':_0x3a9ea6('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x3a9ea6('0x24a1')](_0xfcd068[_0x3a9ea6('0x19b2')]),'clickOutsideToClose':![],'locals':{'fields':_0xfdce87[_0x3a9ea6('0x164')][_0x3a9ea6('0x1d17')],'color':undefined,'storagePath':_0x3a9ea6('0x125b')},'fullscreen':!![]})['then'](function(_0x59ae6f){var _0x5eba86=_0x3a9ea6;_0xfdce87['query'][_0x5eba86('0x1cc8')]=_0x59ae6f===![]?undefined:_0x59ae6f;if(_0xfdce87[_0x5eba86('0xa16')][_0x5eba86('0x1cc8')])_0x182d75();else _0x59ae6f===![]&&_0x182d75();})['catch'](function(_0x495730){var _0x241ac9=_0x3a9ea6;_0x5aed82[_0x241ac9('0x8c8')]({'title':_0x241ac9('0x71e'),'msg':_0x495730[_0x241ac9('0x11d0')]?JSON[_0x241ac9('0x3ad')](_0x495730[_0x241ac9('0x11d0')][_0x241ac9('0x27e8')]):_0x495730[_0x241ac9('0x94f')]()});});}function _0x276c85(_0x36e34f,_0x49fa27,_0xd17c33){var _0x5c8568=_0x5e6f2c;return _0x7214d6[_0x5c8568('0x208b')][_0x5c8568('0x1d1e')]({'id':_0x36e34f['id'],'exists':!![],'attachments':_0xd17c33})[_0x5c8568('0xe59')][_0x5c8568('0xe19')](function(_0x51b286){var _0x494880=_0x5c8568,_0xf2d70c=[_0x51b286['buffer']],_0x2eef80=_0x494880('0xf6')+_0x36e34f['id'],_0x545b55=new Blob(_0xf2d70c,{'type':_0x51b286['type']});_0x2eef80=_0x494880('0x1a5c')+_0x36e34f['id']+_0x494880('0x985');var _0x406336=window[_0x494880('0x18fa')][_0x494880('0x9a1')]('a');_0x406336[_0x494880('0xede')](_0x494880('0xcb7'),URL[_0x494880('0x1360')](_0x545b55)),_0x406336[_0x494880('0xede')](_0x494880('0x1d1e'),_0x2eef80),document[_0x494880('0x19b2')][_0x494880('0x1d13')](_0x406336),_0x406336[_0x494880('0xfe7')]();})[_0x5c8568('0x223b')](function(_0xd625c5){var _0x3ffca3=_0x5c8568;if(_0xd625c5[_0x3ffca3('0x11d0')]&&_0xd625c5['data'][_0x3ffca3('0xcd2')]&&_0xd625c5[_0x3ffca3('0x11d0')]['errors']['length'])for(var _0x36f4e9=0x0;_0x36f4e9<_0xd625c5[_0x3ffca3('0x11d0')][_0x3ffca3('0xcd2')][_0x3ffca3('0x25ae')];_0x36f4e9+=0x1){_0x5aed82['error']({'title':_0xd625c5[_0x3ffca3('0x11d0')][_0x3ffca3('0xcd2')][_0x36f4e9][_0x3ffca3('0x62e')],'msg':_0xd625c5[_0x3ffca3('0x11d0')][_0x3ffca3('0xcd2')][_0x36f4e9][_0x3ffca3('0x27e8')]});}else _0x5aed82[_0x3ffca3('0x8c8')]({'title':_0xd625c5[_0x3ffca3('0x2833')]?_0x3ffca3('0x27f2')+_0xd625c5[_0x3ffca3('0x2833')]+_0x3ffca3('0x1b7c')+_0xd625c5['statusText']:'api.openchannelAccount.save','msg':_0xd625c5[_0x3ffca3('0x11d0')]?JSON[_0x3ffca3('0x3ad')](_0xd625c5[_0x3ffca3('0x11d0')]['message']):_0xd625c5['toString']()});});}function _0x2daf74(_0x1253bc,_0x5b77e5){var _0x42c351=_0x5e6f2c,_0xf940dd=_0x1b5bb6[_0x42c351('0xa5')]()[_0x42c351('0x13e4')](_0x42c351('0x1f13'))['htmlContent'](_0x42c351('0xab2')+(_0x1253bc[_0x42c351('0x2623')]||_0x1253bc['id']&&_0x32d445()[_0x42c351('0x2077')]('interaction\x20#')+_0x1253bc['id']||_0x42c351('0xf6'))+''+_0x42c351('0x21bd'))[_0x42c351('0x4d1')]('delete\x20interaction')[_0x42c351('0x1345')](_0x5b77e5)['ok']('OK')[_0x42c351('0x2c1')](_0x42c351('0x17'));_0x1b5bb6[_0x42c351('0x26b2')](_0xf940dd)[_0x42c351('0xe19')](function(){_0xac50a6(_0x1253bc);},function(){var _0x559fe9=_0x42c351;console[_0x559fe9('0x1fe9')](_0x559fe9('0x17'));});}function _0x459bb6(_0x4bd43e){var _0x5b9132=_0x5e6f2c;_0xfdce87['openchannelAccountInteractions']=_0x4bd43e||{'count':0x0,'rows':[]};for(var _0x28b0cf=0x0;_0x28b0cf<_0xfdce87[_0x5b9132('0x13b4')][_0x5b9132('0x16a7')][_0x5b9132('0x25ae')];_0x28b0cf+=0x1){var _0x211dd7=_0xfdce87[_0x5b9132('0x13b4')][_0x5b9132('0x16a7')][_0x28b0cf];_0x186eb8(_0x211dd7),_0x211dd7['Owner']['name']=_0x3b9fa3(_0x211dd7);}}function _0x182d75(){var _0x434e40=_0x5e6f2c;_0xfdce87[_0x434e40('0xa16')][_0x434e40('0xab0')]=(_0xfdce87[_0x434e40('0xa16')]['page']-0x1)*_0xfdce87['query'][_0x434e40('0x1b6d')],_0xfdce87['promise']=_0x7214d6[_0x434e40('0x208b')][_0x434e40('0x22d5')](_0xfdce87[_0x434e40('0xa16')],_0x459bb6)['$promise'];}function _0x5ebb53(_0x39cb14,_0x17d84a){var _0x2e0052=_0x5e6f2c;_0x1b5bb6['show']({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x43d9d1,'parent':angular[_0x2e0052('0x24a1')](_0xfcd068['body']),'targetEvent':_0x39cb14,'clickOutsideToClose':!![],'onShowing':function _0x19c24c(_0x31f6f8){var _0x38037d=_0x2e0052;_0x31f6f8['vm']['init']({'id':0x1,'channel':'openchannel','interaction':_0x17d84a,'spy':!![]},_0x2cc086['$parent']['vm'][_0x38037d('0x22f1')]);}});}function _0xac50a6(_0x2c9791){var _0x460501=_0x5e6f2c;_0x7214d6[_0x460501('0x208b')]['delete']({'id':_0x2c9791['id']})['$promise'][_0x460501('0xe19')](function(){var _0x2bdb9f=_0x460501;_0x32d445()[_0x2bdb9f('0xa8b')](_0xfdce87['openchannelAccountInteractions'][_0x2bdb9f('0x16a7')],{'id':_0x2c9791['id']}),_0xfdce87[_0x2bdb9f('0x13b4')][_0x2bdb9f('0x148b')]-=0x1,!_0xfdce87[_0x2bdb9f('0x13b4')][_0x2bdb9f('0x16a7')][_0x2bdb9f('0x25ae')]&&_0x182d75(),_0x5aed82[_0x2bdb9f('0x425')]({'title':'Interaction\x20deleted!','msg':_0x2c9791[_0x2bdb9f('0x2623')]?_0x2c9791[_0x2bdb9f('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x460501('0x223b')](function(_0x37873a){var _0x5203e0=_0x460501;if(_0x37873a[_0x5203e0('0x11d0')]&&_0x37873a[_0x5203e0('0x11d0')][_0x5203e0('0xcd2')]&&_0x37873a[_0x5203e0('0x11d0')][_0x5203e0('0xcd2')][_0x5203e0('0x25ae')]){_0xfdce87[_0x5203e0('0xcd2')]=_0x37873a['data'][_0x5203e0('0xcd2')]||[{'message':_0x37873a[_0x5203e0('0x94f')](),'type':'SYSTEM:GETopenchannelAccount'}];for(var _0x6c687b=0x0;_0x6c687b<_0x37873a[_0x5203e0('0x11d0')]['errors'][_0x5203e0('0x25ae')];_0x6c687b++){_0x5aed82[_0x5203e0('0x8c8')]({'title':_0x37873a[_0x5203e0('0x11d0')]['errors'][_0x6c687b][_0x5203e0('0x62e')],'msg':_0x37873a[_0x5203e0('0x11d0')]['errors'][_0x6c687b][_0x5203e0('0x27e8')]});}}else _0x5aed82[_0x5203e0('0x8c8')]({'title':_0x37873a[_0x5203e0('0x2833')]?_0x5203e0('0x27f2')+_0x37873a[_0x5203e0('0x2833')]+_0x5203e0('0x1b7c')+_0x37873a[_0x5203e0('0x1fd7')]:_0x5203e0('0x433'),'msg':_0x37873a[_0x5203e0('0x11d0')]?JSON[_0x5203e0('0x3ad')](_0x37873a['data']['message']):_0x37873a[_0x5203e0('0x27e8')]||_0x37873a[_0x5203e0('0x94f')]()});});}function _0x53c9e4(){var _0x1d6770=_0x5e6f2c,_0x4f6264=angular[_0x1d6770('0x89')](_0xfdce87['selectedOpenchannelAccountInteractions']);return _0xfdce87[_0x1d6770('0x246d')]=[],_0x4f6264;}function _0x1a562b(_0x53c1e7){var _0x4ab7e5=_0x5e6f2c,_0x1534d8=_0x1b5bb6[_0x4ab7e5('0xa5')]()['title'](_0x4ab7e5('0x275c'))[_0x4ab7e5('0x221c')](''+_0xfdce87[_0x4ab7e5('0x246d')]['length']+_0x4ab7e5('0x5bc')+_0x4ab7e5('0x21bd'))['ariaLabel'](_0x4ab7e5('0x234e'))[_0x4ab7e5('0x1345')](_0x53c1e7)['ok']('OK')['cancel']('CANCEL');_0x1b5bb6['show'](_0x1534d8)['then'](function(){var _0xc37866=_0x4ab7e5;_0xfdce87[_0xc37866('0x246d')][_0xc37866('0x1d7e')](function(_0x2ce3fb){_0xac50a6(_0x2ce3fb);}),_0xfdce87[_0xc37866('0x246d')]=[];});}function _0x186eb8(_0x1f709b){var _0x47e9cd=_0x5e6f2c;if(_0x1f709b['from'])_0x1f709b['contactName']=_0x1f709b[_0x47e9cd('0x6f7')];else _0x1f709b[_0x47e9cd('0x1286')]?_0x1f709b[_0x47e9cd('0x130c')]=(_0x1f709b[_0x47e9cd('0x1286')][_0x47e9cd('0x2566')]||'')+'\x20'+(_0x1f709b['Contact']['lastName']||''):_0x1f709b[_0x47e9cd('0x130c')]=_0x5ebe2a[_0x47e9cd('0x2159')](_0x47e9cd('0x10b2'));}function _0x3b9fa3(_0x2faf44){var _0x2811c6=_0x5e6f2c;if(_0x2faf44[_0x2811c6('0x43d')])return _0x2faf44[_0x2811c6('0x43d')]===_0xfdce87[_0x2811c6('0x15a5')]['id']?_0x5ebe2a[_0x2811c6('0x2159')](_0x2811c6('0x132d')):_0x2faf44[_0x2811c6('0x2237')][_0x2811c6('0xe11')]+'\x20<'+_0x2faf44[_0x2811c6('0x2237')][_0x2811c6('0x1b66')]+'>';return _0x5ebe2a[_0x2811c6('0x2159')]('DASHBOARDS.NOT_ASSIGNED');}var _0x2ba5b6=!![],_0x5283fe=0x1;_0x2cc086['$watch'](_0x5e6f2c('0x1607'),function(_0x39942a,_0x5935c4){var _0x5babed=_0x5e6f2c;_0x2ba5b6?_0x5037b8(function(){_0x2ba5b6=![];}):(!_0x5935c4&&(_0x5283fe=_0xfdce87[_0x5babed('0xa16')]['page']),_0x39942a!==_0x5935c4&&(_0xfdce87[_0x5babed('0xa16')][_0x5babed('0xc08')]=0x1),!_0x39942a&&(_0xfdce87[_0x5babed('0xa16')][_0x5babed('0xc08')]=_0x5283fe),_0x182d75());});}const _0x49ec0d=_0x33020e,_0x16980b=_0x59426a['p']+_0xb635d2('0x1c7');_0x5349b8[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x5349b8(_0x3a111f,_0x2d970e,_0x2e7c8d,_0x4006d7,_0xb55218,_0x2702fd,_0x4ed05f,_0x1682d8,_0x15aa87,_0x16c379,_0x1ee224){var _0x193357=_0xb635d2,_0xcaad66=this;_0xcaad66['currentUser']=_0x1ee224[_0x193357('0x1ef8')](),_0xcaad66[_0x193357('0x1a7')]={},_0xcaad66[_0x193357('0x25c5')]={'count':0x0,'rows':[]},_0xcaad66[_0x193357('0x65')]=[],_0xcaad66[_0x193357('0xb3d')],_0xcaad66['query']={'fields':_0x193357('0x1ef0'),'limit':0xa,'page':0x1},_0xcaad66['init']=_0x3b4422,_0xcaad66['deleteConfirm']=_0x26f885,_0xcaad66[_0x193357('0x425')]=_0x367970,_0xcaad66[_0x193357('0x25d0')]=_0x3eb1da,_0xcaad66[_0x193357('0x13aa')]=_0x4d9001,_0xcaad66[_0x193357('0x16fd')]=_0x554645,_0xcaad66[_0x193357('0x226e')]=_0x4fbae3,_0xcaad66[_0x193357('0xbf9')]=_0xb63503;function _0x3b4422(_0x51b2a0,_0x364b91){var _0x53bbe6=_0x193357;_0xcaad66[_0x53bbe6('0x1a7')]=_0x51b2a0,_0xcaad66[_0x53bbe6('0xb3d')]=typeof _0x364b91!==_0x53bbe6('0x1143')?_0x364b91:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xcaad66[_0x53bbe6('0xa16')][_0x53bbe6('0xf26')]=_0xcaad66['openchannelAccount']['id'],_0xcaad66[_0x53bbe6('0xa16')]['id']=_0xcaad66[_0x53bbe6('0x1a7')]['id'],_0x3eb1da();}function _0x26f885(_0x2dfe26,_0x2e9281){var _0x103c1f=_0x193357,_0x436832=_0x4ed05f['confirm']()[_0x103c1f('0x13e4')](_0x103c1f('0x2f5'))[_0x103c1f('0x221c')](_0x103c1f('0xab2')+(_0x2dfe26[_0x103c1f('0x2623')]||_0x2dfe26['id']&&_0x32d445()[_0x103c1f('0x2077')](_0x103c1f('0x329'))+_0x2dfe26['id']||_0x103c1f('0x24d7'))+_0x103c1f('0x27bb')+_0x103c1f('0x21bd'))[_0x103c1f('0x4d1')](_0x103c1f('0x599'))[_0x103c1f('0x1345')](_0x2e9281)['ok']('OK')[_0x103c1f('0x2c1')](_0x103c1f('0x17'));_0x4ed05f['show'](_0x436832)[_0x103c1f('0xe19')](function(){_0x4fbae3(_0x2dfe26);},function(){var _0x48896b=_0x103c1f;console[_0x48896b('0x1fe9')](_0x48896b('0x17'));});}function _0x367970(_0x5eaa8d){var _0x546a3a=_0x193357;_0xcaad66[_0x546a3a('0x25c5')]=_0x5eaa8d||{'count':0x0,'rows':[]};}function _0x3eb1da(){var _0x587b78=_0x193357;_0xcaad66[_0x587b78('0xa16')][_0x587b78('0xab0')]=(_0xcaad66['query']['page']-0x1)*_0xcaad66[_0x587b78('0xa16')]['limit'],_0xcaad66[_0x587b78('0x9c8')]=_0x16c379[_0x587b78('0x1a7')][_0x587b78('0x152a')](_0xcaad66[_0x587b78('0xa16')],_0x367970)['$promise'];}function _0x4d9001(_0x445840,_0x55b3b3){var _0x1806bd=_0x193357;_0x4ed05f[_0x1806bd('0x26b2')]({'controller':_0x1806bd('0x3e0'),'controllerAs':'vm','templateUrl':_0x16980b,'parent':angular['element'](_0x1682d8[_0x1806bd('0x19b2')]),'targetEvent':_0x445840,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0xcaad66[_0x1806bd('0x1a7')],'openchannelCannedAnswer':_0x55b3b3,'openchannelCannedAnswers':_0xcaad66[_0x1806bd('0x25c5')][_0x1806bd('0x16a7')],'license':null,'setting':null,'crudPermissions':_0xcaad66[_0x1806bd('0xb3d')]}});}function _0x4fbae3(_0x4f205c){var _0xdae410=_0x193357;_0x16c379[_0xdae410('0x250b')]['delete']({'id':_0x4f205c['id']})[_0xdae410('0xe59')][_0xdae410('0xe19')](function(){var _0x3fa3e8=_0xdae410;_0x32d445()[_0x3fa3e8('0xa8b')](_0xcaad66[_0x3fa3e8('0x25c5')][_0x3fa3e8('0x16a7')],{'id':_0x4f205c['id']}),_0xcaad66[_0x3fa3e8('0x25c5')][_0x3fa3e8('0x148b')]-=0x1,!_0xcaad66[_0x3fa3e8('0x25c5')][_0x3fa3e8('0x16a7')][_0x3fa3e8('0x25ae')]&&_0x3eb1da(),_0x15aa87[_0x3fa3e8('0x425')]({'title':_0x3fa3e8('0xeef'),'msg':_0x4f205c[_0x3fa3e8('0x2623')]?_0x4f205c[_0x3fa3e8('0x2623')]+_0x3fa3e8('0x2182'):''});})[_0xdae410('0x223b')](function(_0x5c3371){var _0x35ae24=_0xdae410;if(_0x5c3371[_0x35ae24('0x11d0')]&&_0x5c3371[_0x35ae24('0x11d0')][_0x35ae24('0xcd2')]&&_0x5c3371[_0x35ae24('0x11d0')][_0x35ae24('0xcd2')][_0x35ae24('0x25ae')]){_0xcaad66[_0x35ae24('0xcd2')]=_0x5c3371[_0x35ae24('0x11d0')][_0x35ae24('0xcd2')]||[{'message':_0x5c3371[_0x35ae24('0x94f')](),'type':_0x35ae24('0x433')}];for(var _0x3176c8=0x0;_0x3176c8<_0x5c3371['data'][_0x35ae24('0xcd2')]['length'];_0x3176c8++){_0x15aa87[_0x35ae24('0x8c8')]({'title':_0x5c3371[_0x35ae24('0x11d0')][_0x35ae24('0xcd2')][_0x3176c8]['type'],'msg':_0x5c3371[_0x35ae24('0x11d0')][_0x35ae24('0xcd2')][_0x3176c8]['message']});}}else _0x15aa87[_0x35ae24('0x8c8')]({'title':_0x5c3371['status']?'API:'+_0x5c3371[_0x35ae24('0x2833')]+_0x35ae24('0x1b7c')+_0x5c3371['statusText']:_0x35ae24('0x433'),'msg':_0x5c3371[_0x35ae24('0x11d0')]?JSON['stringify'](_0x5c3371['data'][_0x35ae24('0x27e8')]):_0x5c3371[_0x35ae24('0x27e8')]||_0x5c3371['toString']()});});}function _0x554645(){var _0x55adee=_0x193357,_0x23ac20=angular[_0x55adee('0x89')](_0xcaad66[_0x55adee('0x65')]);return _0xcaad66[_0x55adee('0x65')]=[],_0x23ac20;}function _0xb63503(_0x362dac){var _0x2125a0=_0x193357,_0xe797f=_0x4ed05f[_0x2125a0('0xa5')]()[_0x2125a0('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelCannedAnswers?')[_0x2125a0('0x221c')](_0x2125a0('0xab2')+_0xcaad66['selectedOpenchannelAccountOpenchannelCannedAnswers'][_0x2125a0('0x25ae')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x2125a0('0x4d1')](_0x2125a0('0xda9'))[_0x2125a0('0x1345')](_0x362dac)['ok']('OK')['cancel'](_0x2125a0('0x17'));_0x4ed05f[_0x2125a0('0x26b2')](_0xe797f)[_0x2125a0('0xe19')](function(){var _0x3deac3=_0x2125a0;_0xcaad66[_0x3deac3('0x65')][_0x3deac3('0x1d7e')](function(_0x435e2b){_0x4fbae3(_0x435e2b);}),_0xcaad66[_0x3deac3('0x65')]=[];});}var _0x3ea9cb=!![],_0x13f678=0x1;_0x2d970e[_0x193357('0x107')](_0x193357('0x1607'),function(_0x4810cd,_0x1759bd){var _0x704c51=_0x193357;_0x3ea9cb?_0x2702fd(function(){_0x3ea9cb=![];}):(!_0x1759bd&&(_0x13f678=_0xcaad66['query']['page']),_0x4810cd!==_0x1759bd&&(_0xcaad66[_0x704c51('0xa16')][_0x704c51('0xc08')]=0x1),!_0x4810cd&&(_0xcaad66[_0x704c51('0xa16')][_0x704c51('0xc08')]=_0x13f678),_0x3eb1da());});}const _0x4990b2=_0x5349b8;_0x3d603d[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),'$q','$translate','toasty',_0xb635d2('0x5dc'),_0xb635d2('0x24d7'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting','crudPermissions'];function _0x3d603d(_0x3ae18d,_0x51b3e4,_0x4d21a8,_0x3ae09d,_0x5aa29d,_0x51c5b7,_0x24c2b1,_0x3ca0df,_0x537d87,_0x3d18ab,_0x4a9615,_0x179c02,_0x2ed9d9,_0x45918c){var _0x26e7f3=_0xb635d2,_0x5b1986=this;_0x5b1986[_0x26e7f3('0x15a5')]=_0x4a9615[_0x26e7f3('0x1ef8')](),_0x5b1986[_0x26e7f3('0xcd2')]=[],_0x5b1986[_0x26e7f3('0x22f1')]=_0x2ed9d9,_0x5b1986[_0x26e7f3('0x5c1')]=_0x179c02,_0x5b1986[_0x26e7f3('0xb3d')]=_0x45918c,_0x5b1986[_0x26e7f3('0x1ccb')]={},_0x5b1986[_0x26e7f3('0x25ac')]=_0x5b1986['setting']&&_0x5b1986['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b1986['title']=_0x26e7f3('0x134d'),_0x5b1986[_0x26e7f3('0x24d7')]=angular[_0x26e7f3('0x89')](_0x537d87),_0x5b1986[_0x26e7f3('0x5dc')]=_0x3ca0df,_0x5b1986[_0x26e7f3('0x4f0')]=![];!_0x5b1986[_0x26e7f3('0x24d7')]&&(_0x5b1986[_0x26e7f3('0x24d7')]={},_0x5b1986[_0x26e7f3('0x13e4')]=_0x26e7f3('0x59f'),_0x5b1986['newOpenchannelCannedAnswer']=!![]);_0x51b3e4[_0x26e7f3('0x2ef')]['id']&&(_0x5b1986[_0x26e7f3('0x24d7')][_0x26e7f3('0xf26')]=_0x51b3e4[_0x26e7f3('0x2ef')]['id']);_0x5b1986[_0x26e7f3('0x290')]=_0x54f503,_0x5b1986[_0x26e7f3('0x122')]=_0x2cb152,_0x5b1986[_0x26e7f3('0x281a')]=_0x56a88d,_0x5b1986[_0x26e7f3('0x2635')]=_0x3175fc,_0x5b1986[_0x26e7f3('0x2584')]=_0x533755;function _0x54f503(){var _0x342d40=_0x26e7f3;_0x5b1986[_0x342d40('0xcd2')]=[],_0x3d18ab[_0x342d40('0x250b')][_0x342d40('0xe5e')](_0x5b1986['openchannelCannedAnswer'])[_0x342d40('0xe59')][_0x342d40('0xe19')](function(_0x1f73e3){var _0x3da8cc=_0x342d40;_0x5b1986[_0x3da8cc('0x5dc')]['unshift'](_0x1f73e3[_0x3da8cc('0x250e')]()),_0x24c2b1[_0x3da8cc('0x425')]({'title':'OpenchannelCannedAnswer\x20properly\x20created','msg':_0x5b1986[_0x3da8cc('0x24d7')]['name']?_0x5b1986[_0x3da8cc('0x24d7')][_0x3da8cc('0x2623')]+_0x3da8cc('0x105f'):''}),_0x533755(_0x1f73e3);})[_0x342d40('0x223b')](function(_0x2e0c57){var _0x19949d=_0x342d40;if(_0x2e0c57['data']&&_0x2e0c57[_0x19949d('0x11d0')][_0x19949d('0xcd2')]&&_0x2e0c57[_0x19949d('0x11d0')][_0x19949d('0xcd2')]['length']){_0x5b1986[_0x19949d('0xcd2')]=_0x2e0c57[_0x19949d('0x11d0')][_0x19949d('0xcd2')]||[{'message':_0x2e0c57[_0x19949d('0x94f')](),'type':_0x19949d('0x80d')}];for(var _0x412a3a=0x0;_0x412a3a<_0x2e0c57[_0x19949d('0x11d0')][_0x19949d('0xcd2')][_0x19949d('0x25ae')];_0x412a3a+=0x1){_0x24c2b1[_0x19949d('0x8c8')]({'title':_0x2e0c57['data'][_0x19949d('0xcd2')][_0x412a3a][_0x19949d('0x62e')],'msg':_0x2e0c57[_0x19949d('0x11d0')][_0x19949d('0xcd2')][_0x412a3a][_0x19949d('0x27e8')]});}}else _0x24c2b1[_0x19949d('0x8c8')]({'title':_0x2e0c57[_0x19949d('0x2833')]?_0x19949d('0x27f2')+_0x2e0c57[_0x19949d('0x2833')]+_0x19949d('0x1b7c')+_0x2e0c57['statusText']:_0x19949d('0x80d'),'msg':_0x2e0c57['data']?JSON[_0x19949d('0x3ad')](_0x2e0c57[_0x19949d('0x11d0')][_0x19949d('0x27e8')]):_0x2e0c57[_0x19949d('0x94f')]()});});}function _0x2cb152(){var _0x268a89=_0x26e7f3;_0x5b1986['errors']=[],_0x3d18ab[_0x268a89('0x250b')][_0x268a89('0xa70')]({'id':_0x5b1986[_0x268a89('0x24d7')]['id']},_0x5b1986[_0x268a89('0x24d7')])[_0x268a89('0xe59')]['then'](function(_0x30fe5a){var _0xf04676=_0x268a89,_0x5cc36d=_0x32d445()[_0xf04676('0xf15')](_0x5b1986[_0xf04676('0x5dc')],{'id':_0x30fe5a['id']});_0x5cc36d&&_0x32d445()[_0xf04676('0x1d8')](_0x5cc36d,_0x32d445()[_0xf04676('0xed5')](_0x30fe5a['toJSON'](),_0x32d445()[_0xf04676('0x1234')](_0x5cc36d))),_0x24c2b1[_0xf04676('0x425')]({'title':_0xf04676('0x314'),'msg':_0x5b1986[_0xf04676('0x24d7')][_0xf04676('0x2623')]?_0x5b1986[_0xf04676('0x24d7')][_0xf04676('0x2623')]+_0xf04676('0x1c19'):''}),_0x533755(_0x30fe5a);})[_0x268a89('0x223b')](function(_0x32724f){var _0x5a5569=_0x268a89;if(_0x32724f[_0x5a5569('0x11d0')]&&_0x32724f['data'][_0x5a5569('0xcd2')]&&_0x32724f[_0x5a5569('0x11d0')][_0x5a5569('0xcd2')]['length']){_0x5b1986[_0x5a5569('0xcd2')]=_0x32724f[_0x5a5569('0x11d0')][_0x5a5569('0xcd2')]||[{'message':_0x32724f[_0x5a5569('0x94f')](),'type':_0x5a5569('0x5a0')}];for(var _0x31d17c=0x0;_0x31d17c<_0x32724f[_0x5a5569('0x11d0')]['errors']['length'];_0x31d17c++){_0x24c2b1['error']({'title':_0x32724f[_0x5a5569('0x11d0')][_0x5a5569('0xcd2')][_0x31d17c]['type'],'msg':_0x32724f[_0x5a5569('0x11d0')][_0x5a5569('0xcd2')][_0x31d17c][_0x5a5569('0x27e8')]});}}else _0x24c2b1[_0x5a5569('0x8c8')]({'title':_0x32724f[_0x5a5569('0x2833')]?_0x5a5569('0x27f2')+_0x32724f[_0x5a5569('0x2833')]+_0x5a5569('0x1b7c')+_0x32724f['statusText']:_0x5a5569('0x5a0'),'msg':_0x32724f[_0x5a5569('0x11d0')]?JSON[_0x5a5569('0x3ad')](_0x32724f[_0x5a5569('0x11d0')][_0x5a5569('0x27e8')]):_0x32724f[_0x5a5569('0x94f')]()});});}function _0x56a88d(_0x4dc905){var _0x50d0dc=_0x26e7f3;_0x5b1986[_0x50d0dc('0xcd2')]=[];var _0x233e84=_0x3ae09d[_0x50d0dc('0xa5')]()[_0x50d0dc('0x13e4')](_0x50d0dc('0x24d0'))[_0x50d0dc('0xd0')](_0x50d0dc('0x198b'))[_0x50d0dc('0x4d1')](_0x50d0dc('0x181e'))['ok']('Delete')[_0x50d0dc('0x2c1')](_0x50d0dc('0x8a3'))[_0x50d0dc('0x1345')](_0x4dc905);_0x3ae09d[_0x50d0dc('0x26b2')](_0x233e84)[_0x50d0dc('0xe19')](function(){var _0xa2ddca=_0x50d0dc;_0x3d18ab[_0xa2ddca('0x250b')][_0xa2ddca('0x229e')]({'id':_0x5b1986[_0xa2ddca('0x24d7')]['id']})[_0xa2ddca('0xe59')][_0xa2ddca('0xe19')](function(){var _0xe0cb53=_0xa2ddca;_0x32d445()[_0xe0cb53('0xa8b')](_0x5b1986['openchannelCannedAnswers'],{'id':_0x5b1986['openchannelCannedAnswer']['id']}),_0x24c2b1[_0xe0cb53('0x425')]({'title':_0xe0cb53('0x52f'),'msg':(_0x5b1986[_0xe0cb53('0x24d7')]['name']||_0xe0cb53('0x24d7'))+_0xe0cb53('0x2182')}),_0x533755(_0x5b1986[_0xe0cb53('0x24d7')]);})['catch'](function(_0x45f7fc){var _0x4629b7=_0xa2ddca;if(_0x45f7fc['data']&&_0x45f7fc[_0x4629b7('0x11d0')]['errors']&&_0x45f7fc[_0x4629b7('0x11d0')][_0x4629b7('0xcd2')][_0x4629b7('0x25ae')]){_0x5b1986[_0x4629b7('0xcd2')]=_0x45f7fc['data'][_0x4629b7('0xcd2')]||[{'message':_0x45f7fc[_0x4629b7('0x94f')](),'type':_0x4629b7('0x1b46')}];for(var _0xa42707=0x0;_0xa42707<_0x45f7fc[_0x4629b7('0x11d0')][_0x4629b7('0xcd2')][_0x4629b7('0x25ae')];_0xa42707++){_0x24c2b1['error']({'title':_0x45f7fc[_0x4629b7('0x11d0')][_0x4629b7('0xcd2')][_0xa42707][_0x4629b7('0x62e')],'msg':_0x45f7fc[_0x4629b7('0x11d0')][_0x4629b7('0xcd2')][_0xa42707][_0x4629b7('0x27e8')]});}}else _0x24c2b1[_0x4629b7('0x8c8')]({'title':_0x45f7fc[_0x4629b7('0x2833')]?_0x4629b7('0x27f2')+_0x45f7fc[_0x4629b7('0x2833')]+_0x4629b7('0x1b7c')+_0x45f7fc[_0x4629b7('0x1fd7')]:_0x4629b7('0x1b46'),'msg':_0x45f7fc[_0x4629b7('0x11d0')]?JSON[_0x4629b7('0x3ad')](_0x45f7fc[_0x4629b7('0x11d0')][_0x4629b7('0x27e8')]):_0x45f7fc[_0x4629b7('0x27e8')]||_0x45f7fc[_0x4629b7('0x94f')]()});});},function(){});}function _0x3175fc(_0x3fe1c2){return _0x3fe1c2===null?undefined:new Date(_0x3fe1c2);}function _0x533755(_0x141dd5){var _0xb486b7=_0x26e7f3;_0x3ae09d[_0xb486b7('0x11ed')](_0x141dd5);}}const _0xb1f7fb=_0x3d603d;_0x10e3b7[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),'api',_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x10e3b7(_0x33898b,_0xfa1b30,_0x4ea5e9,_0x2988bf,_0x41fb59,_0x465da9,_0x1fb156,_0x3666da,_0x8234e8,_0x570a7a,_0x9fd1bd){var _0x537fe2=_0xb635d2,_0x3e723c=this;_0x3e723c[_0x537fe2('0x15a5')]=_0x9fd1bd[_0x537fe2('0x1ef8')](),_0x3e723c['dispositions']={'count':0x0,'rows':[]},_0x3e723c[_0x537fe2('0x17e9')]=[],_0x3e723c[_0x537fe2('0xb3d')],_0x3e723c[_0x537fe2('0x513')]={'first':_0x537fe2('0x24ab'),'second':_0x537fe2('0x6c0'),'third':'3rd'},_0x3e723c[_0x537fe2('0xa16')]={'fields':_0x537fe2('0x561'),'sort':_0x537fe2('0x7e8'),'limit':0xa,'page':0x1},_0x3e723c[_0x537fe2('0x15f9')]=_0x5bf98e,_0x3e723c[_0x537fe2('0x126c')]=_0x119b2f,_0x3e723c[_0x537fe2('0x425')]=_0x2728ee,_0x3e723c[_0x537fe2('0x1312')]=_0x4080c5,_0x3e723c['createOrEditDisposition']=_0x2ea080,_0x3e723c[_0x537fe2('0x1db')]=_0x36b0e3,_0x3e723c['exportSelectedDispositions']=_0x94cf2e,_0x3e723c[_0x537fe2('0xda0')]=_0x42ee3a,_0x3e723c['deselectDispositions']=_0x7de393,_0x3e723c['selectAllDispositions']=_0x340f0a;function _0x5bf98e(_0x56050d,_0x379749){var _0x11a84e=_0x537fe2;_0x3e723c[_0x11a84e('0x1a7')]=_0x56050d||{},_0x3e723c[_0x11a84e('0xb3d')]=typeof _0x379749!==_0x11a84e('0x1143')?_0x379749:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3e723c[_0x11a84e('0xa16')][_0x11a84e('0xf26')]=_0x3e723c[_0x11a84e('0x1a7')]['id'],_0x3e723c[_0x11a84e('0xa16')]['id']=_0x3e723c[_0x11a84e('0x1a7')]['id'],_0x4080c5();}function _0x2ea080(_0x2cc1db,_0x5b45df){var _0xb64b8b=_0x537fe2;_0x41fb59[_0xb64b8b('0x26b2')]({'controller':_0xb64b8b('0x4d9'),'controllerAs':'vm','templateUrl':_0x599d02,'parent':angular[_0xb64b8b('0x24a1')](_0x465da9[_0xb64b8b('0x19b2')]),'targetEvent':_0x2cc1db,'clickOutsideToClose':!![],'locals':{'disposition':_0x5b45df,'dispositions':_0x3e723c[_0xb64b8b('0x24eb')][_0xb64b8b('0x16a7')],'model':{'id':_0x3e723c[_0xb64b8b('0x1a7')]['id'],'field':_0xb64b8b('0xf26')},'license':null,'setting':null,'crudPermissions':_0x3e723c[_0xb64b8b('0xb3d')]}})['then'](function(_0x491a61){if(_0x491a61)_0x4080c5();});}function _0x119b2f(_0x840ddd,_0x253097){var _0x1b64fa=_0x537fe2,_0x4b660f=_0x32d445()[_0x1b64fa('0x201a')](_0x3e723c[_0x1b64fa('0x24eb')][_0x1b64fa('0x16a7')],[_0x1b64fa('0x2450'),_0x840ddd['id']]),_0x543255=_0x41fb59[_0x1b64fa('0xa5')]()[_0x1b64fa('0x13e4')](_0x3666da[_0x1b64fa('0x2159')](_0x1b64fa('0x5d9')))['content'](_0x3666da[_0x1b64fa('0x2159')](_0x1b64fa('0xd37')+(_0x4b660f?_0x1b64fa('0x930'):_0x1b64fa('0xf36')),{'name':_0x840ddd[_0x1b64fa('0x2623')]}))[_0x1b64fa('0x4d1')](_0x1b64fa('0x1c26'))['targetEvent'](_0x253097)['ok']('OK')[_0x1b64fa('0x2c1')](_0x3666da[_0x1b64fa('0x2159')]('TOOLS.CANCEL'));_0x41fb59['show'](_0x543255)[_0x1b64fa('0xe19')](function(){_0x36b0e3(_0x840ddd);});}function _0x2728ee(_0x3e2177){var _0x477af5=_0x537fe2;_0x3e723c[_0x477af5('0x24eb')]=_0x3e2177||{'count':0x0,'rows':[]};}function _0x4080c5(){var _0x511d93=_0x537fe2;_0x3e723c[_0x511d93('0xa16')][_0x511d93('0xab0')]=(_0x3e723c[_0x511d93('0xa16')][_0x511d93('0xc08')]-0x1)*_0x3e723c[_0x511d93('0xa16')][_0x511d93('0x1b6d')],_0x3e723c[_0x511d93('0x9c8')]=_0x8234e8[_0x511d93('0x1a7')][_0x511d93('0x1312')](_0x3e723c[_0x511d93('0xa16')],_0x2728ee)[_0x511d93('0xe59')];}function _0x36b0e3(_0x2241fe){var _0xacf936=_0x537fe2;_0x8234e8[_0xacf936('0x2506')][_0xacf936('0x229e')]({'id':_0x2241fe['id']})[_0xacf936('0xe59')][_0xacf936('0xe19')](function(){var _0x2b1890=_0xacf936;_0x4080c5(),_0x570a7a['success']({'title':_0x3666da[_0x2b1890('0x2159')](_0x2b1890('0x1593'))});})['catch'](function(_0x221a01){var _0x14363a=_0xacf936;if(_0x221a01[_0x14363a('0x11d0')]&&_0x221a01[_0x14363a('0x11d0')][_0x14363a('0xcd2')]&&_0x221a01[_0x14363a('0x11d0')][_0x14363a('0xcd2')][_0x14363a('0x25ae')]){_0x3e723c[_0x14363a('0xcd2')]=_0x221a01[_0x14363a('0x11d0')][_0x14363a('0xcd2')]||[{'message':_0x221a01[_0x14363a('0x94f')](),'type':_0x14363a('0x45')}];for(var _0x1fcb4e=0x0;_0x1fcb4e<_0x221a01[_0x14363a('0x11d0')][_0x14363a('0xcd2')][_0x14363a('0x25ae')];_0x1fcb4e++){_0x570a7a[_0x14363a('0x8c8')]({'title':_0x221a01['data']['errors'][_0x1fcb4e]['type'],'msg':_0x221a01[_0x14363a('0x11d0')][_0x14363a('0xcd2')][_0x1fcb4e][_0x14363a('0x27e8')]});}}else _0x570a7a[_0x14363a('0x8c8')]({'title':_0x221a01[_0x14363a('0x2833')]?_0x14363a('0x27f2')+_0x221a01[_0x14363a('0x2833')]+_0x14363a('0x1b7c')+_0x221a01[_0x14363a('0x1fd7')]:_0x14363a('0x45'),'msg':_0x221a01[_0x14363a('0x11d0')]?JSON[_0x14363a('0x3ad')](_0x221a01[_0x14363a('0x11d0')]['message']):_0x221a01['message']||_0x221a01['toString']()});});}function _0x94cf2e(){var _0x4518e2=_0x537fe2,_0x4b4dfd=angular[_0x4518e2('0x89')](_0x3e723c[_0x4518e2('0x17e9')]);return _0x3e723c[_0x4518e2('0x17e9')]=[],_0x4b4dfd;}function _0x42ee3a(_0xafbb7b){var _0x507a34=_0x537fe2,_0x2cca5b=_0x41fb59[_0x507a34('0xa5')]()[_0x507a34('0x13e4')](_0x3666da[_0x507a34('0x2159')](_0x507a34('0xf00')))[_0x507a34('0xd0')](_0x3666da[_0x507a34('0x2159')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x3e723c[_0x507a34('0x17e9')][_0x507a34('0x25ae')]}))[_0x507a34('0x4d1')](_0x507a34('0x2829'))['targetEvent'](_0xafbb7b)['ok']('OK')[_0x507a34('0x2c1')](_0x3666da[_0x507a34('0x2159')]('TOOLS.CANCEL'));_0x41fb59[_0x507a34('0x26b2')](_0x2cca5b)[_0x507a34('0xe19')](function(){var _0x330913=_0x507a34;_0x3e723c['selectedDispositions'][_0x330913('0x1d7e')](function(_0x37dc85){_0x36b0e3(_0x37dc85);}),_0x3e723c[_0x330913('0x17e9')]=[];});}function _0x7de393(){var _0x5aa43e=_0x537fe2;_0x3e723c[_0x5aa43e('0x17e9')]=[];}function _0x340f0a(){var _0x5d4904=_0x537fe2;_0x3e723c[_0x5d4904('0x17e9')]=_0x3e723c[_0x5d4904('0x24eb')]['rows'];}var _0x2c13d0=!![],_0x49cdfa=0x1;_0x33898b[_0x537fe2('0x107')](_0x537fe2('0x1607'),function(_0x45fb14,_0x15f7da){var _0x5746a8=_0x537fe2;_0x2c13d0?_0x1fb156(function(){_0x2c13d0=![];}):(!_0x15f7da&&(_0x49cdfa=_0x3e723c[_0x5746a8('0xa16')][_0x5746a8('0xc08')]),_0x45fb14!==_0x15f7da&&(_0x3e723c[_0x5746a8('0xa16')]['page']=0x1),!_0x45fb14&&(_0x3e723c[_0x5746a8('0xa16')][_0x5746a8('0xc08')]=_0x49cdfa),_0x4080c5());});}const _0x3e02d8=_0x10e3b7,_0x57b82e=_0x59426a['p']+_0xb635d2('0x1597');_0x7c73cb[_0xb635d2('0xb0c')]=['$state','$location',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x1a7'),'userProfileSection'];function _0x7c73cb(_0x39db4f,_0x2b3d6e,_0x331bee,_0x177c7f,_0x4c2b2a,_0x30602e,_0x5c4fa8,_0x3bba7c,_0x4d08a3,_0x1bc8de,_0xf45ee9,_0x5901ab){var _0x25d40b=_0xb635d2,_0x35f2f9=this;_0x35f2f9[_0x25d40b('0x15a5')]=_0x1bc8de[_0x25d40b('0x1ef8')](),_0x35f2f9[_0x25d40b('0x5c1')]=_0x30602e,_0x35f2f9[_0x25d40b('0x22f1')]=_0x5c4fa8,_0x35f2f9[_0x25d40b('0x25ac')]=_0x35f2f9['setting'][_0x25d40b('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x35f2f9[_0x25d40b('0x2170')]=_0x2b3d6e[_0x25d40b('0xec0')]()+_0x25d40b('0x21a8')+_0x2b3d6e[_0x25d40b('0x3b7')](),_0x35f2f9['openchannelAccount']=_0xf45ee9||_0x39db4f[_0x25d40b('0x2ef')][_0x25d40b('0x1a7')]||{},_0x35f2f9[_0x25d40b('0xb59')]=_0x5901ab&&_0x5901ab[_0x25d40b('0x148b')]==0x1?_0x5901ab['rows'][0x0]:null,_0x35f2f9[_0x25d40b('0xb3d')]=_0x1bc8de['parseCrudPermissions'](_0x35f2f9['userProfileSection']?_0x35f2f9[_0x25d40b('0xb59')][_0x25d40b('0xb3d')]:null),_0x35f2f9[_0x25d40b('0x1ccb')]={},_0x35f2f9[_0x25d40b('0xc7b')]=_0x39db4f[_0x25d40b('0x2ef')][_0x25d40b('0x435')]||0x0,_0x35f2f9[_0x25d40b('0x1407')]=_0x25c064,_0x35f2f9['alert']=_0x4d08a3[_0x25d40b('0x1e67')],_0x35f2f9['gotoOpenchannelAccounts']=_0x2fe515,_0x35f2f9[_0x25d40b('0xd34')]=_0x5a82a2,_0x1bc8de[_0x25d40b('0x179e')](_0x25d40b('0xd14'))?_0x3bba7c[_0x25d40b('0x1bbd')]['get']({'fields':_0x25d40b('0x104'),'sort':'name'})[_0x25d40b('0xe59')][_0x25d40b('0xe19')](function(_0x20d613){var _0x311309=_0x25d40b;_0x35f2f9[_0x311309('0x9f8')]=_0x20d613[_0x311309('0x16a7')]||[];})[_0x25d40b('0x223b')](function(_0xa8f771){var _0x2f9dd9=_0x25d40b;_0x4d08a3[_0x2f9dd9('0x8c8')]({'title':_0xa8f771[_0x2f9dd9('0x2833')]?_0x2f9dd9('0x27f2')+_0xa8f771['status']+_0x2f9dd9('0x1b7c')+_0xa8f771[_0x2f9dd9('0x1fd7')]:_0x2f9dd9('0x2012'),'msg':_0xa8f771['data']?JSON['stringify'](_0xa8f771[_0x2f9dd9('0x11d0')]):_0xa8f771[_0x2f9dd9('0x94f')]()});}):_0x3bba7c[_0x25d40b('0x1bbd')][_0x25d40b('0x22d5')]({'fields':'id,name','sort':_0x25d40b('0x2623')})[_0x25d40b('0xe59')][_0x25d40b('0xe19')](function(_0x5e2a4c){var _0x1528cb=_0x25d40b;_0x35f2f9[_0x1528cb('0x9f8')]=_0x5e2a4c[_0x1528cb('0x16a7')]||[];})['then'](function(){var _0x559402=_0x25d40b;return _0x3bba7c[_0x559402('0xb59')][_0x559402('0x22d5')]({'userProfileId':_0x35f2f9[_0x559402('0x15a5')][_0x559402('0x1d04')],'sectionId':0x12d})[_0x559402('0xe59')];})[_0x25d40b('0xe19')](function(_0x318777){var _0x53651c=_0x25d40b,_0x16938f=_0x318777&&_0x318777[_0x53651c('0x16a7')]?_0x318777[_0x53651c('0x16a7')][0x0]:null;if(!_0x16938f){var _0x51b9af=[],_0x2962b4=null;_0x35f2f9[_0x53651c('0x1a7')]&&(_0x2962b4=_0x32d445()[_0x53651c('0xf15')](_0x35f2f9['lists'],{'id':Number(_0x35f2f9['openchannelAccount'][_0x53651c('0x2463')])}));for(var _0x4916a0=0x0;_0x4916a0<_0x35f2f9['lists']['length'];_0x4916a0++){_0x2962b4&&_0x35f2f9[_0x53651c('0x9f8')][_0x4916a0]['id']===_0x2962b4['id']&&(_0x35f2f9['lists'][_0x4916a0][_0x53651c('0x1e9d')]=![],_0x51b9af[_0x53651c('0xb76')](_0x35f2f9[_0x53651c('0x9f8')][_0x4916a0]));}_0x35f2f9[_0x53651c('0x9f8')]=_0x51b9af;}else{if(!_0x16938f[_0x53651c('0x11fd')])return _0x3bba7c['userProfileResource'][_0x53651c('0x22d5')]({'sectionId':_0x16938f['id']})[_0x53651c('0xe59')][_0x53651c('0xe19')](function(_0x90f82b){var _0x419ca3=_0x53651c,_0x48dd61=_0x32d445()['map'](_0x90f82b[_0x419ca3('0x16a7')],function(_0x77409f){var _0x226d81=_0x419ca3;return _0x32d445()[_0x226d81('0xf15')](_0x35f2f9['lists'],{'id':_0x77409f['resourceId']});}),_0x4ba02d=null;_0x35f2f9[_0x419ca3('0x1a7')]&&(_0x4ba02d=_0x32d445()[_0x419ca3('0xf15')](_0x35f2f9[_0x419ca3('0x9f8')],{'id':Number(_0x35f2f9[_0x419ca3('0x1a7')][_0x419ca3('0x2463')])}));if(_0x4ba02d&&!_0x32d445()[_0x419ca3('0x201a')](_0x48dd61,['id',_0x4ba02d['id']])){var _0x350aac=_0x32d445()['find'](_0x35f2f9[_0x419ca3('0x9f8')],{'id':_0x4ba02d['id']});_0x350aac['canSelect']=![],_0x48dd61['push'](_0x350aac);}_0x35f2f9['lists']=_0x48dd61;});}})[_0x25d40b('0x223b')](function(_0x56e339){var _0x2d3d15=_0x25d40b;_0x4d08a3[_0x2d3d15('0x8c8')]({'title':_0x56e339[_0x2d3d15('0x2833')]?_0x2d3d15('0x27f2')+_0x56e339[_0x2d3d15('0x2833')]+_0x2d3d15('0x1b7c')+_0x56e339[_0x2d3d15('0x1fd7')]:'SYSTEM:GETlists','msg':_0x56e339[_0x2d3d15('0x11d0')]?JSON[_0x2d3d15('0x3ad')](_0x56e339['data']):_0x56e339['toString']()});}),_0x3bba7c['cmContact'][_0x25d40b('0x215e')]({'id':_0x35f2f9['openchannelAccount'][_0x25d40b('0x2463')]})['$promise']['then'](function(_0x1e1a40){var _0x4ae635=_0x25d40b;_0x35f2f9[_0x4ae635('0x1d17')]=[],_0x1e1a40=_0x32d445()[_0x4ae635('0x1b79')](_0x1e1a40[_0x4ae635('0x250e')]());var _0x30a555=['id','createdAt','updatedAt',_0x4ae635('0x1336'),_0x4ae635('0x50e'),_0x4ae635('0x2463'),_0x4ae635('0x11a4')];for(var _0x258fc5=0x0;_0x258fc5<_0x1e1a40[_0x4ae635('0x25ae')];_0x258fc5++){!_0x32d445()['includes'](_0x30a555,_0x1e1a40[_0x258fc5][_0x4ae635('0x2127')])&&_0x35f2f9['fields'][_0x4ae635('0xb76')](_0x1e1a40[_0x258fc5]);}})[_0x25d40b('0x223b')](function(_0x30a516){var _0x4ad764=_0x25d40b;_0x4d08a3['error']({'title':_0x30a516['status']?_0x4ad764('0x27f2')+_0x30a516['status']+'\x20-\x20'+_0x30a516[_0x4ad764('0x1fd7')]:_0x4ad764('0x12de'),'msg':_0x30a516['data']?JSON[_0x4ad764('0x3ad')](_0x30a516['data']):_0x30a516[_0x4ad764('0x94f')]()});}),_0x1bc8de[_0x25d40b('0x179e')](_0x25d40b('0xd14'))?_0x3bba7c[_0x25d40b('0x1c98')][_0x25d40b('0x22d5')]({'fields':_0x25d40b('0x1b75'),'sort':_0x25d40b('0x2623'),'nolimit':_0x25d40b('0x2206')})['$promise']['then'](function(_0x51e8ee){var _0x3d302e=_0x25d40b;_0x35f2f9[_0x3d302e('0x145e')]=_0x51e8ee['rows']||[];})[_0x25d40b('0x223b')](function(_0x5cfe00){var _0x434f5f=_0x25d40b;_0x4d08a3[_0x434f5f('0x8c8')]({'title':_0x5cfe00[_0x434f5f('0x2833')]?'API:'+_0x5cfe00[_0x434f5f('0x2833')]+_0x434f5f('0x1b7c')+_0x5cfe00[_0x434f5f('0x1fd7')]:_0x434f5f('0x20ea'),'msg':_0x5cfe00[_0x434f5f('0x11d0')]?JSON[_0x434f5f('0x3ad')](_0x5cfe00[_0x434f5f('0x11d0')]):_0x5cfe00[_0x434f5f('0x94f')]()});}):_0x3bba7c[_0x25d40b('0x1c98')]['get']({'fields':_0x25d40b('0x1b75'),'sort':_0x25d40b('0x2623'),'nolimit':_0x25d40b('0x2206')})[_0x25d40b('0xe59')][_0x25d40b('0xe19')](function(_0x380d28){var _0x3f9866=_0x25d40b;_0x35f2f9[_0x3f9866('0x145e')]=_0x380d28[_0x3f9866('0x16a7')]||[];})[_0x25d40b('0xe19')](function(){var _0x5e0376=_0x25d40b;return _0x3bba7c[_0x5e0376('0xb59')][_0x5e0376('0x22d5')]({'userProfileId':_0x35f2f9[_0x5e0376('0x15a5')][_0x5e0376('0x1d04')],'sectionId':0x3ed})[_0x5e0376('0xe59')];})[_0x25d40b('0xe19')](function(_0x2ee5aa){var _0x181576=_0x25d40b,_0x177c8b=_0x2ee5aa&&_0x2ee5aa[_0x181576('0x16a7')]?_0x2ee5aa['rows'][0x0]:null;if(!_0x177c8b)_0x35f2f9[_0x181576('0x145e')]=[];else{if(!_0x177c8b[_0x181576('0x11fd')])return _0x3bba7c['userProfileResource'][_0x181576('0x22d5')]({'sectionId':_0x177c8b['id']})[_0x181576('0xe59')]['then'](function(_0x329ae8){var _0x1793ff=_0x181576,_0x3f693d=_0x32d445()[_0x1793ff('0x65a')](_0x329ae8['rows'],function(_0x32c228){var _0x57eb2e=_0x1793ff;return _0x32d445()[_0x57eb2e('0xf15')](_0x35f2f9[_0x57eb2e('0x145e')],{'id':_0x32c228[_0x57eb2e('0x1104')]});});_0x35f2f9[_0x1793ff('0x145e')][_0x1793ff('0x1d7e')](function(_0x3e5ac0){var _0x128d0c=_0x1793ff;!_0x32d445()[_0x128d0c('0x201a')](_0x3f693d,['id',_0x3e5ac0['id']])&&(_0x3e5ac0['canSelect']=![]),_0x3f693d[_0x128d0c('0xb76')](_0x3e5ac0);}),_0x35f2f9['pauses']=_0x3f693d;});}})['catch'](function(_0x69d1a9){var _0x20c061=_0x25d40b;_0x4d08a3[_0x20c061('0x8c8')]({'title':_0x69d1a9[_0x20c061('0x2833')]?_0x20c061('0x27f2')+_0x69d1a9[_0x20c061('0x2833')]+'\x20-\x20'+_0x69d1a9['statusText']:'SYSTEM:GETpauses','msg':_0x69d1a9[_0x20c061('0x11d0')]?JSON['stringify'](_0x69d1a9[_0x20c061('0x11d0')]):_0x69d1a9['toString']()});});function _0x25c064(_0x10f049,_0x31a1cc){var _0x1c88cf=_0x25d40b;_0x331bee[_0x1c88cf('0x26b2')]({'controller':_0x1c88cf('0x8f0'),'controllerAs':'vm','templateUrl':_0x57b82e,'parent':angular[_0x1c88cf('0x24a1')](_0x177c7f[_0x1c88cf('0x19b2')]),'targetEvent':_0x31a1cc,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x10f049,'openchannelAccounts':_0x35f2f9['openchannelAccounts']?_0x35f2f9['openchannelAccounts'][_0x1c88cf('0x16a7')]:[],'crudPermissions':_0x35f2f9[_0x1c88cf('0xb3d')],'realtime':![]}});}function _0x2fe515(){var _0x4703f7=_0x25d40b;_0x39db4f['go'](_0x4703f7('0x69b'),{},{'reload':_0x4703f7('0x69b')});}function _0x5a82a2(){var _0x81a511=_0x25d40b;_0x3bba7c[_0x81a511('0x1a7')]['update']({'id':_0x35f2f9[_0x81a511('0x1a7')]['id']},_0x35f2f9['openchannelAccount'])[_0x81a511('0xe59')][_0x81a511('0xe19')](function(){var _0x1186e4=_0x81a511;_0x4d08a3['success']({'title':_0x1186e4('0x1cf1'),'msg':_0x35f2f9[_0x1186e4('0x1a7')]['name']?_0x35f2f9[_0x1186e4('0x1a7')][_0x1186e4('0x2623')]+_0x1186e4('0x283b'):''});})[_0x81a511('0x223b')](function(_0x4b2374){var _0x54aa14=_0x81a511;_0x4d08a3[_0x54aa14('0x8c8')]({'title':_0x4b2374[_0x54aa14('0x2833')]?_0x54aa14('0x27f2')+_0x4b2374['status']+_0x54aa14('0x1b7c')+_0x4b2374[_0x54aa14('0x1fd7')]:_0x54aa14('0x433'),'msg':_0x4b2374[_0x54aa14('0x11d0')]?JSON['stringify'](_0x4b2374[_0x54aa14('0x11d0')]):_0x4b2374[_0x54aa14('0x94f')]()});});}}const _0x6c0d4=_0x7c73cb,_0x29ab2f=_0x59426a['p']+_0xb635d2('0x1178');_0x469c1b[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0x86e'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),'msUtils','toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x469c1b(_0x37e4a2,_0x14a6e4,_0x5d93a3,_0x35b51a,_0x3e0dd2,_0x4275e2,_0x59013f,_0x2a3b59,_0x2940fd,_0x3607d5,_0x4db7a6,_0x5df8d7,_0x84ba57,_0x10ca11,_0x38a308,_0x53ef4b,_0x2ee29d){var _0x1510af=_0xb635d2,_0x3cc07e=this;_0x3cc07e['license']=_0x53ef4b,_0x3cc07e[_0x1510af('0x22f1')]=_0x2ee29d,_0x3cc07e[_0x1510af('0x15a5')]=_0x38a308['getCurrentUser'](),_0x3cc07e[_0x1510af('0x86e')]=_0x2940fd||{'count':0x0,'rows':[]},_0x3cc07e[_0x1510af('0x154f')]=_0x3607d5,_0x3cc07e[_0x1510af('0xb59')]=_0x4db7a6&&_0x4db7a6[_0x1510af('0x148b')]==0x1?_0x4db7a6['rows'][0x0]:null,_0x3cc07e[_0x1510af('0xb3d')]=_0x38a308[_0x1510af('0xd31')](_0x3cc07e['userProfileSection']?_0x3cc07e[_0x1510af('0xb59')][_0x1510af('0xb3d')]:null),_0x3cc07e['table']=_0x1510af('0x86e'),_0x3cc07e[_0x1510af('0x14d6')]='',_0x3cc07e[_0x1510af('0x190c')]=null,_0x3cc07e[_0x1510af('0x10a')]=[],_0x3cc07e[_0x1510af('0xa16')]={'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x1510af('0x7e8'),'limit':0xa,'page':0x1},_0x3cc07e[_0x1510af('0x16a0')]=_0xf7cb7,_0x3cc07e[_0x1510af('0x1d08')]=_0x509058,_0x3cc07e[_0x1510af('0x1407')]=_0x447d1c,_0x3cc07e[_0x1510af('0x1d9e')]=_0xa25dcf,_0x3cc07e['success']=_0xc2b0de,_0x3cc07e[_0x1510af('0x1449')]=_0x11b5af,_0x3cc07e['createOrEditOpenchannelAccount']=_0x307f85,_0x3cc07e[_0x1510af('0x7b1')]=_0x3a8ca7,_0x3cc07e[_0x1510af('0x2511')]=_0x341128,_0x3cc07e['deleteSelectedOpenchannelAccounts']=_0x51e5d6,_0x3cc07e[_0x1510af('0x2d5')]=_0x355bbd,_0x3cc07e[_0x1510af('0x22f4')]=_0x486bee,_0x38a308[_0x1510af('0x179e')](_0x1510af('0xd14'))?_0x5df8d7[_0x1510af('0x1bbd')][_0x1510af('0x22d5')]({'fields':_0x1510af('0x104'),'sort':_0x1510af('0x2623')})[_0x1510af('0xe59')][_0x1510af('0xe19')](function(_0x4ba092){_0x3cc07e['lists']=_0x4ba092['rows']||[];})[_0x1510af('0x223b')](function(_0x4f70f4){var _0x15801d=_0x1510af;_0x10ca11[_0x15801d('0x8c8')]({'title':_0x4f70f4[_0x15801d('0x2833')]?_0x15801d('0x27f2')+_0x4f70f4['status']+_0x15801d('0x1b7c')+_0x4f70f4['statusText']:'SYSTEM:GET_LISTS','msg':_0x4f70f4[_0x15801d('0x11d0')]?JSON[_0x15801d('0x3ad')](_0x4f70f4[_0x15801d('0x11d0')]):_0x4f70f4[_0x15801d('0x94f')]()});}):_0x5df8d7[_0x1510af('0x1bbd')][_0x1510af('0x22d5')]({'fields':_0x1510af('0x104'),'sort':_0x1510af('0x2623')})['$promise'][_0x1510af('0xe19')](function(_0x4158f3){var _0x43276f=_0x1510af;_0x3cc07e[_0x43276f('0x9f8')]=_0x4158f3[_0x43276f('0x16a7')]||[];})['then'](function(){var _0x1bd156=_0x1510af;return _0x5df8d7[_0x1bd156('0xb59')][_0x1bd156('0x22d5')]({'userProfileId':_0x3cc07e['currentUser'][_0x1bd156('0x1d04')],'sectionId':0x12d})[_0x1bd156('0xe59')];})[_0x1510af('0xe19')](function(_0x2ec31b){var _0x200157=_0x1510af,_0x1bf122=_0x2ec31b&&_0x2ec31b[_0x200157('0x16a7')]?_0x2ec31b[_0x200157('0x16a7')][0x0]:null;if(!_0x1bf122){var _0x3a9828=[],_0x3c16f6=null;_0x3cc07e['openchannelAccount']&&(_0x3c16f6=_0x32d445()[_0x200157('0xf15')](_0x3cc07e[_0x200157('0x9f8')],{'id':Number(_0x3cc07e[_0x200157('0x1a7')][_0x200157('0x2463')])}));for(var _0x59186b=0x0;_0x59186b<_0x3cc07e[_0x200157('0x9f8')]['length'];_0x59186b++){_0x3c16f6&&_0x3cc07e[_0x200157('0x9f8')][_0x59186b]['id']===_0x3c16f6['id']&&(_0x3cc07e['lists'][_0x59186b][_0x200157('0x1e9d')]=![],_0x3a9828['push'](_0x3cc07e['lists'][_0x59186b]));}_0x3cc07e['lists']=_0x3a9828;}else{if(!_0x1bf122[_0x200157('0x11fd')])return _0x5df8d7['userProfileResource']['get']({'sectionId':_0x1bf122['id']})['$promise'][_0x200157('0xe19')](function(_0x83ffa2){var _0x7a6987=_0x200157,_0xf2e498=_0x32d445()[_0x7a6987('0x65a')](_0x83ffa2[_0x7a6987('0x16a7')],function(_0x28534a){var _0x281852=_0x7a6987;return _0x32d445()[_0x281852('0xf15')](_0x3cc07e[_0x281852('0x9f8')],{'id':_0x28534a[_0x281852('0x1104')]});}),_0x5eecd3=null;_0x3cc07e['openchannelAccount']&&(_0x5eecd3=_0x32d445()[_0x7a6987('0xf15')](_0x3cc07e[_0x7a6987('0x9f8')],{'id':Number(_0x3cc07e[_0x7a6987('0x1a7')][_0x7a6987('0x2463')])}));if(_0x5eecd3&&!_0x32d445()['some'](_0xf2e498,['id',_0x5eecd3['id']])){var _0x1cb104=_0x32d445()['find'](_0x3cc07e[_0x7a6987('0x9f8')],{'id':_0x5eecd3['id']});_0x1cb104[_0x7a6987('0x1e9d')]=![],_0xf2e498['push'](_0x1cb104);}_0x3cc07e[_0x7a6987('0x9f8')]=_0xf2e498;});}})[_0x1510af('0x223b')](function(_0x2bf102){var _0x1d7041=_0x1510af;_0x10ca11[_0x1d7041('0x8c8')]({'title':_0x2bf102[_0x1d7041('0x2833')]?_0x1d7041('0x27f2')+_0x2bf102[_0x1d7041('0x2833')]+_0x1d7041('0x1b7c')+_0x2bf102[_0x1d7041('0x1fd7')]:_0x1d7041('0xd65'),'msg':_0x2bf102[_0x1d7041('0x11d0')]?JSON[_0x1d7041('0x3ad')](_0x2bf102['data']):_0x2bf102[_0x1d7041('0x94f')]()});});function _0xf7cb7(_0xcab8b4){var _0x4e53ab=_0x1510af;_0x5d93a3['go'](_0x4e53ab('0x398'),{'id':_0xcab8b4['id'],'openchannelAccount':_0xcab8b4,'crudPermissions':_0x3cc07e['crudPermissions']});}function _0x509058(_0x577562){var _0x386229=_0x1510af;_0x5d93a3['go'](_0x386229('0x398'),{'id':_0x577562['id'],'tab':0x5});}function _0x447d1c(_0x1b392e,_0xdfa8b6){var _0x33c301=_0x1510af;_0x3e0dd2[_0x33c301('0x26b2')]({'controller':_0x33c301('0x8f0'),'controllerAs':'vm','templateUrl':_0x57b82e,'parent':angular[_0x33c301('0x24a1')](_0x4275e2['body']),'targetEvent':_0xdfa8b6,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x1b392e,'openchannelAccounts':_0x3cc07e[_0x33c301('0x86e')]?_0x3cc07e['openchannelAccounts'][_0x33c301('0x16a7')]:[],'crudPermissions':_0x3cc07e[_0x33c301('0xb3d')],'realtime':![]}});}function _0xa25dcf(_0x213fd8,_0xfa1ada){var _0x674b55=_0x1510af,_0x1f4a3c=_0x3e0dd2[_0x674b55('0xa5')]()[_0x674b55('0x13e4')](_0x674b55('0x346')+_0x32d445()[_0x674b55('0x1df2')](_0x674b55('0x1a7'))+'?')[_0x674b55('0x221c')](_0x674b55('0xab2')+(_0x213fd8[_0x674b55('0x2623')]||_0x674b55('0x1a7'))+''+_0x674b55('0x21bd'))[_0x674b55('0x4d1')]('delete\x20openchannelAccount')['targetEvent'](_0xfa1ada)['ok']('OK')[_0x674b55('0x2c1')](_0x674b55('0x17'));_0x3e0dd2[_0x674b55('0x26b2')](_0x1f4a3c)[_0x674b55('0xe19')](function(){_0x3a8ca7(_0x213fd8);},function(){var _0x4d5ff6=_0x674b55;console[_0x4d5ff6('0x1fe9')]('CANCEL');});}var _0x204d7f=!![],_0x59d14b=0x1;_0x37e4a2['$watch'](_0x1510af('0x20cb'),function(_0x1702f7,_0x3089a3){var _0x3f807a=_0x1510af;_0x204d7f?_0x59013f(function(){_0x204d7f=![];}):(!_0x3089a3&&(_0x59d14b=_0x3cc07e[_0x3f807a('0xa16')][_0x3f807a('0xc08')]),_0x1702f7!==_0x3089a3&&(_0x3cc07e['query'][_0x3f807a('0xc08')]=0x1),!_0x1702f7&&(_0x3cc07e[_0x3f807a('0xa16')][_0x3f807a('0xc08')]=_0x59d14b),_0x3cc07e[_0x3f807a('0x1449')]());});function _0xc2b0de(_0x360c5c){var _0x239a6d=_0x1510af;_0x3cc07e[_0x239a6d('0x86e')]=_0x360c5c||{'count':0x0,'rows':[]};}function _0x11b5af(){var _0x1eca72=_0x1510af;_0x3cc07e['query'][_0x1eca72('0xab0')]=(_0x3cc07e[_0x1eca72('0xa16')]['page']-0x1)*_0x3cc07e[_0x1eca72('0xa16')][_0x1eca72('0x1b6d')],_0x38a308[_0x1eca72('0x179e')]('admin')?_0x3cc07e[_0x1eca72('0x9c8')]=_0x5df8d7[_0x1eca72('0x1a7')][_0x1eca72('0x22d5')](_0x3cc07e['query'],_0xc2b0de)[_0x1eca72('0xe59')]:(_0x3cc07e['query']['id']=_0x3cc07e['userProfile']['id'],_0x3cc07e[_0x1eca72('0xa16')][_0x1eca72('0x1e59')]=_0x1eca72('0xa46'),_0x3cc07e[_0x1eca72('0x9c8')]=_0x5df8d7['userProfile'][_0x1eca72('0x14e6')](_0x3cc07e[_0x1eca72('0xa16')],_0xc2b0de)[_0x1eca72('0xe59')]);}function _0x307f85(_0x5b3743,_0x487fcb){var _0x47cb19=_0x1510af;_0x3e0dd2[_0x47cb19('0x26b2')]({'controller':_0x47cb19('0x1d2f'),'controllerAs':'vm','templateUrl':_0x29ab2f,'parent':angular[_0x47cb19('0x24a1')](_0x4275e2[_0x47cb19('0x19b2')]),'targetEvent':_0x5b3743,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x487fcb,'openchannelAccounts':_0x3cc07e[_0x47cb19('0x86e')]['rows'],'license':_0x3cc07e[_0x47cb19('0x5c1')],'setting':_0x3cc07e[_0x47cb19('0x22f1')],'crudPermissions':_0x3cc07e[_0x47cb19('0xb3d')]}});}function _0x3a8ca7(_0x1bfb30){var _0x75e117=_0x1510af;_0x5df8d7[_0x75e117('0x1a7')][_0x75e117('0x229e')]({'id':_0x1bfb30['id']})[_0x75e117('0xe59')]['then'](function(){var _0x2782af=_0x75e117;_0x32d445()[_0x2782af('0xa8b')](_0x3cc07e[_0x2782af('0x86e')][_0x2782af('0x16a7')],{'id':_0x1bfb30['id']}),_0x3cc07e[_0x2782af('0x86e')][_0x2782af('0x148b')]-=0x1,!_0x3cc07e[_0x2782af('0x86e')][_0x2782af('0x16a7')]['length']&&_0x3cc07e[_0x2782af('0x1449')](),_0x10ca11['success']({'title':_0x32d445()['startCase'](_0x2782af('0x22e3'))+_0x2782af('0x1219'),'msg':_0x1bfb30[_0x2782af('0x2623')]?_0x1bfb30[_0x2782af('0x2623')]+_0x2782af('0x2182'):''});})[_0x75e117('0x223b')](function(_0x6b6baf){var _0x59b1e0=_0x75e117;if(_0x6b6baf[_0x59b1e0('0x11d0')]&&_0x6b6baf[_0x59b1e0('0x11d0')][_0x59b1e0('0xcd2')]&&_0x6b6baf[_0x59b1e0('0x11d0')][_0x59b1e0('0xcd2')][_0x59b1e0('0x25ae')]){_0x3cc07e['errors']=_0x6b6baf[_0x59b1e0('0x11d0')][_0x59b1e0('0xcd2')]||[{'message':_0x6b6baf[_0x59b1e0('0x94f')](),'type':_0x59b1e0('0x259b')}];for(var _0x3a7eaf=0x0;_0x3a7eaf<_0x6b6baf[_0x59b1e0('0x11d0')]['errors'][_0x59b1e0('0x25ae')];_0x3a7eaf++){_0x10ca11[_0x59b1e0('0x8c8')]({'title':_0x6b6baf[_0x59b1e0('0x11d0')][_0x59b1e0('0xcd2')][_0x3a7eaf][_0x59b1e0('0x62e')],'msg':_0x6b6baf[_0x59b1e0('0x11d0')][_0x59b1e0('0xcd2')][_0x3a7eaf][_0x59b1e0('0x27e8')]});}}else _0x10ca11['error']({'title':_0x6b6baf[_0x59b1e0('0x2833')]?_0x59b1e0('0x27f2')+_0x6b6baf[_0x59b1e0('0x2833')]+_0x59b1e0('0x1b7c')+_0x6b6baf['statusText']:'SYSTEM:DELETEopenchannelAccount','msg':_0x6b6baf[_0x59b1e0('0x11d0')]?JSON[_0x59b1e0('0x3ad')](_0x6b6baf[_0x59b1e0('0x11d0')][_0x59b1e0('0x27e8')]):_0x6b6baf['message']||_0x6b6baf[_0x59b1e0('0x94f')]()});});}function _0x341128(){var _0x54b9fe=_0x1510af,_0x5d4109=angular['copy'](_0x3cc07e[_0x54b9fe('0x10a')]);return _0x3cc07e['selectedOpenchannelAccounts']=[],_0x5d4109;}function _0x51e5d6(_0x13048b){var _0x5281b1=_0x1510af,_0x2ddd5a=_0x3e0dd2[_0x5281b1('0xa5')]()['title'](_0x5281b1('0x2449'))[_0x5281b1('0x221c')](_0x5281b1('0xab2')+_0x3cc07e['selectedOpenchannelAccounts'][_0x5281b1('0x25ae')]+_0x5281b1('0x5bc')+'\x20will\x20be\x20deleted.')[_0x5281b1('0x4d1')](_0x5281b1('0x18b8'))['targetEvent'](_0x13048b)['ok']('OK')[_0x5281b1('0x2c1')](_0x5281b1('0x17'));_0x3e0dd2[_0x5281b1('0x26b2')](_0x2ddd5a)['then'](function(){var _0x4b2caa=_0x5281b1;_0x3cc07e[_0x4b2caa('0x10a')][_0x4b2caa('0x1d7e')](function(_0x4fb4e6){_0x3a8ca7(_0x4fb4e6);}),_0x3cc07e[_0x4b2caa('0x10a')]=[];});}function _0x355bbd(){var _0x5cc246=_0x1510af;_0x3cc07e[_0x5cc246('0x10a')]=[];}function _0x486bee(){var _0x217f5b=_0x1510af;_0x3cc07e[_0x217f5b('0x10a')]=_0x3cc07e[_0x217f5b('0x86e')][_0x217f5b('0x16a7')];}}const _0x307928=_0x469c1b;_0x3dbba6[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x5df'),_0xb635d2('0x22b1'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x3dbba6(_0x898219,_0x63d8d0,_0x5b3c8d,_0x24cb45,_0x26175e,_0xd6b2a3,_0x2c7aff,_0x1997e3,_0x5e1d24,_0x4b02df,_0x1b73d1,_0x227694,_0x400742,_0x482f97){var _0x256bf1=_0xb635d2,_0x20f1c8=this;_0x20f1c8[_0x256bf1('0x15a5')]=_0x1b73d1[_0x256bf1('0x1ef8')](),_0x20f1c8[_0x256bf1('0xcd2')]=[],_0x20f1c8['setting']=_0x400742,_0x20f1c8[_0x256bf1('0x5c1')]=_0x227694,_0x20f1c8[_0x256bf1('0xb3d')]=_0x482f97,_0x20f1c8[_0x256bf1('0x1ccb')]={},_0x20f1c8['passwordPattern']=_0x20f1c8[_0x256bf1('0x22f1')]&&_0x20f1c8[_0x256bf1('0x22f1')][_0x256bf1('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20f1c8[_0x256bf1('0x13e4')]=_0x256bf1('0x18f2'),_0x20f1c8[_0x256bf1('0x22b1')]=angular[_0x256bf1('0x89')](_0x5e1d24),_0x20f1c8['openchannelQueues']=_0x1997e3,_0x20f1c8[_0x256bf1('0x7e9')]=![];!_0x20f1c8[_0x256bf1('0x22b1')]&&(_0x20f1c8['openchannelQueue']={'strategy':_0x256bf1('0x1442'),'timeout':0xa},_0x20f1c8[_0x256bf1('0x13e4')]='OPENCHANNEL.NEW_OPENCHANNELQUEUE',_0x20f1c8['newOpenchannelQueue']=!![]);_0x20f1c8[_0x256bf1('0xa62')]=_0x79d9f6,_0x20f1c8[_0x256bf1('0x1680')]=_0x29816b,_0x20f1c8['deleteOpenchannelQueue']=_0x37f3b9,_0x20f1c8['getDateFromString']=_0x2e9e04,_0x20f1c8[_0x256bf1('0x2584')]=_0x2a5d5c;function _0x79d9f6(){var _0x14d6a0=_0x256bf1;_0x20f1c8[_0x14d6a0('0xcd2')]=[],_0x4b02df[_0x14d6a0('0x22b1')][_0x14d6a0('0xe5e')](_0x20f1c8[_0x14d6a0('0x22b1')])[_0x14d6a0('0xe59')]['then'](function(_0x1e616d){var _0x2fb6d7=_0x14d6a0;_0x20f1c8['openchannelQueues']['unshift'](_0x1e616d[_0x2fb6d7('0x250e')]()),_0x2c7aff['success']({'title':_0x2fb6d7('0x254e'),'msg':_0x20f1c8['openchannelQueue'][_0x2fb6d7('0x2623')]?_0x20f1c8[_0x2fb6d7('0x22b1')][_0x2fb6d7('0x2623')]+_0x2fb6d7('0x105f'):''}),_0x2a5d5c(_0x1e616d);})[_0x14d6a0('0x223b')](function(_0x52d6b3){var _0x3ac0b5=_0x14d6a0;if(_0x52d6b3['data']&&_0x52d6b3[_0x3ac0b5('0x11d0')][_0x3ac0b5('0xcd2')]&&_0x52d6b3[_0x3ac0b5('0x11d0')]['errors'][_0x3ac0b5('0x25ae')]){_0x20f1c8[_0x3ac0b5('0xcd2')]=_0x52d6b3['data'][_0x3ac0b5('0xcd2')]||[{'message':_0x52d6b3['toString'](),'type':'api.openchannelQueue.save'}];for(var _0x5d95a7=0x0;_0x5d95a7<_0x52d6b3[_0x3ac0b5('0x11d0')]['errors'][_0x3ac0b5('0x25ae')];_0x5d95a7+=0x1){_0x2c7aff[_0x3ac0b5('0x8c8')]({'title':_0x52d6b3[_0x3ac0b5('0x11d0')][_0x3ac0b5('0xcd2')][_0x5d95a7][_0x3ac0b5('0x62e')],'msg':_0x52d6b3['data'][_0x3ac0b5('0xcd2')][_0x5d95a7][_0x3ac0b5('0x27e8')]});}}else _0x2c7aff['error']({'title':_0x52d6b3[_0x3ac0b5('0x2833')]?_0x3ac0b5('0x27f2')+_0x52d6b3[_0x3ac0b5('0x2833')]+_0x3ac0b5('0x1b7c')+_0x52d6b3['statusText']:_0x3ac0b5('0xc6c'),'msg':_0x52d6b3[_0x3ac0b5('0x11d0')]?JSON[_0x3ac0b5('0x3ad')](_0x52d6b3[_0x3ac0b5('0x11d0')][_0x3ac0b5('0x27e8')]):_0x52d6b3['toString']()});});}function _0x29816b(){var _0x2dc0f7=_0x256bf1;_0x20f1c8[_0x2dc0f7('0xcd2')]=[],_0x4b02df['openchannelQueue']['update']({'id':_0x20f1c8[_0x2dc0f7('0x22b1')]['id']},_0x20f1c8[_0x2dc0f7('0x22b1')])[_0x2dc0f7('0xe59')][_0x2dc0f7('0xe19')](function(_0x55f17d){var _0x3daed2=_0x2dc0f7,_0x2b2478=_0x32d445()[_0x3daed2('0xf15')](_0x20f1c8[_0x3daed2('0x5df')],{'id':_0x55f17d['id']});_0x2b2478&&_0x32d445()[_0x3daed2('0x1d8')](_0x2b2478,_0x32d445()[_0x3daed2('0xed5')](_0x55f17d[_0x3daed2('0x250e')](),_0x32d445()[_0x3daed2('0x1234')](_0x2b2478))),_0x2c7aff[_0x3daed2('0x425')]({'title':_0x3daed2('0x13ba'),'msg':_0x20f1c8[_0x3daed2('0x22b1')]['name']?_0x20f1c8[_0x3daed2('0x22b1')][_0x3daed2('0x2623')]+_0x3daed2('0x1c19'):''}),_0x2a5d5c(_0x55f17d);})[_0x2dc0f7('0x223b')](function(_0x4f7a43){var _0x3aafb3=_0x2dc0f7;if(_0x4f7a43[_0x3aafb3('0x11d0')]&&_0x4f7a43[_0x3aafb3('0x11d0')][_0x3aafb3('0xcd2')]&&_0x4f7a43[_0x3aafb3('0x11d0')][_0x3aafb3('0xcd2')]['length']){_0x20f1c8[_0x3aafb3('0xcd2')]=_0x4f7a43['data'][_0x3aafb3('0xcd2')]||[{'message':_0x4f7a43[_0x3aafb3('0x94f')](),'type':'api.openchannelQueue.update'}];for(var _0x28fd0f=0x0;_0x28fd0f<_0x4f7a43[_0x3aafb3('0x11d0')][_0x3aafb3('0xcd2')]['length'];_0x28fd0f++){_0x2c7aff[_0x3aafb3('0x8c8')]({'title':_0x4f7a43[_0x3aafb3('0x11d0')][_0x3aafb3('0xcd2')][_0x28fd0f][_0x3aafb3('0x62e')],'msg':_0x4f7a43['data']['errors'][_0x28fd0f]['message']});}}else _0x2c7aff[_0x3aafb3('0x8c8')]({'title':_0x4f7a43[_0x3aafb3('0x2833')]?_0x3aafb3('0x27f2')+_0x4f7a43[_0x3aafb3('0x2833')]+_0x3aafb3('0x1b7c')+_0x4f7a43[_0x3aafb3('0x1fd7')]:_0x3aafb3('0x487'),'msg':_0x4f7a43[_0x3aafb3('0x11d0')]?JSON[_0x3aafb3('0x3ad')](_0x4f7a43[_0x3aafb3('0x11d0')]['message']):_0x4f7a43[_0x3aafb3('0x94f')]()});});}function _0x37f3b9(_0x423067){var _0x45f939=_0x256bf1;_0x20f1c8[_0x45f939('0xcd2')]=[];var _0x424d53=_0x24cb45[_0x45f939('0xa5')]()[_0x45f939('0x13e4')](_0x45f939('0x24d0'))['content'](_0x45f939('0x1300'))[_0x45f939('0x4d1')](_0x45f939('0x150a'))['ok'](_0x45f939('0x2198'))[_0x45f939('0x2c1')]('Cancel')['targetEvent'](_0x423067);_0x24cb45[_0x45f939('0x26b2')](_0x424d53)[_0x45f939('0xe19')](function(){var _0x466161=_0x45f939;_0x4b02df['openchannelQueue'][_0x466161('0x229e')]({'id':_0x20f1c8[_0x466161('0x22b1')]['id']})[_0x466161('0xe59')][_0x466161('0xe19')](function(){var _0x447f51=_0x466161;_0x32d445()[_0x447f51('0xa8b')](_0x20f1c8[_0x447f51('0x5df')],{'id':_0x20f1c8[_0x447f51('0x22b1')]['id']}),_0x2c7aff[_0x447f51('0x425')]({'title':_0x447f51('0x1723'),'msg':(_0x20f1c8[_0x447f51('0x22b1')]['name']||_0x447f51('0x22b1'))+_0x447f51('0x2182')}),_0x2a5d5c(_0x20f1c8[_0x447f51('0x22b1')]);})[_0x466161('0x223b')](function(_0x386c75){var _0x2aafe9=_0x466161;if(_0x386c75[_0x2aafe9('0x11d0')]&&_0x386c75[_0x2aafe9('0x11d0')]['errors']&&_0x386c75[_0x2aafe9('0x11d0')]['errors'][_0x2aafe9('0x25ae')]){_0x20f1c8[_0x2aafe9('0xcd2')]=_0x386c75['data'][_0x2aafe9('0xcd2')]||[{'message':_0x386c75[_0x2aafe9('0x94f')](),'type':_0x2aafe9('0x1186')}];for(var _0x4040cd=0x0;_0x4040cd<_0x386c75['data']['errors'][_0x2aafe9('0x25ae')];_0x4040cd++){_0x2c7aff[_0x2aafe9('0x8c8')]({'title':_0x386c75[_0x2aafe9('0x11d0')][_0x2aafe9('0xcd2')][_0x4040cd][_0x2aafe9('0x62e')],'msg':_0x386c75[_0x2aafe9('0x11d0')]['errors'][_0x4040cd]['message']});}}else _0x2c7aff[_0x2aafe9('0x8c8')]({'title':_0x386c75['status']?_0x2aafe9('0x27f2')+_0x386c75[_0x2aafe9('0x2833')]+_0x2aafe9('0x1b7c')+_0x386c75['statusText']:_0x2aafe9('0x1186'),'msg':_0x386c75[_0x2aafe9('0x11d0')]?JSON[_0x2aafe9('0x3ad')](_0x386c75['data'][_0x2aafe9('0x27e8')]):_0x386c75[_0x2aafe9('0x27e8')]||_0x386c75[_0x2aafe9('0x94f')]()});});},function(){});}function _0x2e9e04(_0x479936){return _0x479936===null?undefined:new Date(_0x479936);}function _0x2a5d5c(_0x4f5d08){var _0x4a04ca=_0x256bf1;_0x24cb45[_0x4a04ca('0x11ed')](_0x4f5d08);}}const _0xadaa7f=_0x3dbba6;_0x24b53b[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x22b1'),'openchannelQueues',_0xb635d2('0x24e1'),_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x24b53b(_0x9f318d,_0x476056,_0x43cfe7,_0x7edaef,_0x1083a9,_0x33d41a,_0x59ebc2,_0x44f7e4,_0x28635e,_0x56b27b){var _0x50e18a=_0xb635d2,_0x3ab2d8=this;_0x3ab2d8['currentUser']=_0x28635e[_0x50e18a('0x1ef8')](),_0x3ab2d8[_0x50e18a('0x22b1')]=_0x1083a9,_0x3ab2d8[_0x50e18a('0xb3d')]=_0x56b27b,_0x3ab2d8['realtime']=_0x59ebc2,_0x3ab2d8[_0x50e18a('0xe4b')]=[],_0x3ab2d8[_0x50e18a('0x1884')]=[],_0x3ab2d8[_0x50e18a('0x2273')]=[],_0x3ab2d8[_0x50e18a('0x286c')]=[],_0x3ab2d8[_0x50e18a('0xf79')]=[],_0x3ab2d8['pendingChanges']=![],_0x3ab2d8[_0x50e18a('0x888')]=_0xd13c58,_0x3ab2d8[_0x50e18a('0x4b8')]=_0xc050de,_0x3ab2d8[_0x50e18a('0x2584')]=_0x1a9cc4,_0x3ab2d8[_0x50e18a('0xc00')]={'readOnly':!_0x3ab2d8[_0x50e18a('0xb3d')][_0x50e18a('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x50e18a('0xe11'),'line2':[_0x50e18a('0x2623'),_0x50e18a('0x1b66')],'line3':'','labelAll':_0x44f7e4['instant'](_0x50e18a('0x14ca')),'labelSelected':_0x44f7e4[_0x50e18a('0x2159')](_0x50e18a('0x21b9')),'transferCallback':function _0x54411a(){var _0x4064eb=_0x50e18a,_0x44eb4b=_0x32d445()[_0x4064eb('0x118')](_0x3ab2d8[_0x4064eb('0xf79')],_0x3ab2d8[_0x4064eb('0x2273')],'id');_0x3ab2d8[_0x4064eb('0x16e7')]=_0x32d445()['isEmpty'](_0x44eb4b)?![]:!![];}};function _0xd13c58(){var _0x3bcab4=_0x50e18a;return _0x28635e[_0x3bcab4('0x179e')](_0x3bcab4('0xd14'))?_0x3be6a2()['catch'](function(_0x22b4a3){var _0x15a519=_0x3bcab4;_0x43cfe7['error']({'title':_0x22b4a3[_0x15a519('0x2833')]?_0x15a519('0x27f2')+_0x22b4a3[_0x15a519('0x2833')]+_0x15a519('0x1b7c')+_0x22b4a3['statusText']:_0x15a519('0x1e86'),'msg':_0x22b4a3[_0x15a519('0x2833')]?JSON['stringify'](_0x22b4a3[_0x15a519('0x11d0')]):_0x22b4a3[_0x15a519('0x94f')]()});}):_0x3360f3()[_0x3bcab4('0xe19')](function(_0x2a16a7){return _0x3ab2d8['section']=_0x2a16a7,_0x3be6a2();})[_0x3bcab4('0x223b')](function(_0x5dfae8){var _0x136311=_0x3bcab4;_0x43cfe7[_0x136311('0x8c8')]({'title':_0x5dfae8[_0x136311('0x2833')]?'API:'+_0x5dfae8[_0x136311('0x2833')]+_0x136311('0x1b7c')+_0x5dfae8[_0x136311('0x1fd7')]:_0x136311('0x1e86'),'msg':_0x5dfae8[_0x136311('0x2833')]?JSON[_0x136311('0x3ad')](_0x5dfae8[_0x136311('0x11d0')]):_0x5dfae8['toString']()});});}function _0x3360f3(){return _0x476056(function(_0x6a28f0,_0x5b3582){var _0x232e13=a0_0x5325;_0x7edaef['userProfileSection'][_0x232e13('0x22d5')]({'userProfileId':_0x3ab2d8['currentUser'][_0x232e13('0x1d04')],'name':_0x232e13('0xd61')})[_0x232e13('0xe59')][_0x232e13('0xe19')](function(_0x482619){var _0x41ae69=_0x232e13,_0x5dba1b=_0x482619&&_0x482619[_0x41ae69('0x16a7')]?_0x482619['rows'][0x0]:null;_0x6a28f0(_0x5dba1b);})[_0x232e13('0x223b')](function(_0x370dcf){_0x5b3582(_0x370dcf);});});}function _0x3be6a2(){return _0x476056(function(_0x51adaf,_0x51d4d8){var _0x37c1eb=a0_0x5325;return _0x468979()[_0x37c1eb('0xe19')](function(_0x162df2){var _0x17098b=_0x37c1eb;return _0x3ab2d8['items']=_0x162df2[_0x17098b('0x16a7')]?_0x162df2[_0x17098b('0x16a7')]:[],_0x28635e[_0x17098b('0x179e')](_0x17098b('0xd14'))?_0x162df2:_0x3ab2d8['section']?_0x3ab2d8['section']['autoAssociation']?_0x162df2:_0x2a07ac():null;})['then'](function(_0x141bb9){var _0x30ffcc=_0x37c1eb,_0x5189e5=_0x141bb9&&_0x141bb9[_0x30ffcc('0x16a7')]?_0x141bb9[_0x30ffcc('0x16a7')]:[];return _0x3ab2d8['allowedItems']=_0x32d445()['map'](_0x5189e5,function(_0x18509c){var _0x5acb66=_0x30ffcc;return _0x32d445()[_0x5acb66('0xf15')](_0x3ab2d8[_0x5acb66('0xe4b')],{'id':_0x28635e[_0x5acb66('0x179e')](_0x5acb66('0xd14'))||_0x3ab2d8[_0x5acb66('0x1e59')][_0x5acb66('0x11fd')]?_0x18509c['id']:_0x18509c[_0x5acb66('0x1104')]});}),_0x3ab2d8[_0x30ffcc('0x286c')]=angular[_0x30ffcc('0x89')](_0x3ab2d8[_0x30ffcc('0x1884')]),_0x3ab2d8[_0x30ffcc('0xe4b')][_0x30ffcc('0x1d7e')](function(_0x4fdfa8){var _0x5a6f41=_0x30ffcc,_0x5ec84a=_0x32d445()[_0x5a6f41('0xf15')](_0x3ab2d8[_0x5a6f41('0x1884')],{'id':_0x4fdfa8['id']});_0x28635e['hasRole'](_0x5a6f41('0xd14'))?_0x4fdfa8[_0x5a6f41('0x1768')]=!![]:_0x4fdfa8[_0x5a6f41('0x1768')]=typeof _0x5ec84a!==_0x5a6f41('0x1143')?!![]:![];}),_0x464a4b();})[_0x37c1eb('0xe19')](function(_0x18630d){var _0x4c60f5=_0x37c1eb,_0x14366d=_0x18630d&&_0x18630d['rows']?_0x18630d[_0x4c60f5('0x16a7')]:[];_0x3ab2d8[_0x4c60f5('0x2273')]=_0x32d445()['map'](_0x14366d,function(_0x215d82){var _0x2f286e=_0x4c60f5,_0x1624fa=_0x32d445()['find'](_0x3ab2d8[_0x2f286e('0xe4b')],{'id':_0x215d82['id']});return _0x1624fa[_0x2f286e('0x21e3')]=_0x215d82['UserOpenchannelQueue']?_0x2f286e('0x815')+_0x215d82[_0x2f286e('0x18d2')][_0x2f286e('0x21e3')]:'',_0x1624fa[_0x2f286e('0x1b66')]=typeof _0x215d82[_0x2f286e('0x1b66')]!==_0x2f286e('0x1143')?'<'+_0x215d82[_0x2f286e('0x1b66')]+'>':'',_0x1624fa;}),_0x3ab2d8[_0x4c60f5('0xf79')]=angular[_0x4c60f5('0x89')](_0x3ab2d8[_0x4c60f5('0x2273')]),_0x3ab2d8[_0x4c60f5('0xc00')][_0x4c60f5('0x2273')]=_0x3ab2d8['selectedItems'],_0x3ab2d8[_0x4c60f5('0xc00')]['items']=_0x32d445()[_0x4c60f5('0x501')](_0x3ab2d8[_0x4c60f5('0x1884')],_0x3ab2d8[_0x4c60f5('0xc00')][_0x4c60f5('0x2273')],'id'),_0x51adaf();})[_0x37c1eb('0x223b')](function(_0x498659){_0x51d4d8(_0x498659);});});}function _0x2a07ac(){return _0x476056(function(_0x587d04,_0x353379){var _0xa00cf3=a0_0x5325;return _0x7edaef[_0xa00cf3('0xd49')][_0xa00cf3('0x22d5')]({'sectionId':_0x3ab2d8[_0xa00cf3('0x1e59')]['id'],'nolimit':!![]})['$promise'][_0xa00cf3('0xe19')](function(_0x20a0f4){_0x587d04(_0x20a0f4);})[_0xa00cf3('0x223b')](function(_0x3d8388){_0x353379(_0x3d8388);});});}function _0x464a4b(){return _0x476056(function(_0x2e2562,_0x2852e2){var _0x1bd324=a0_0x5325;return _0x7edaef[_0x1bd324('0x22b1')]['getAgents']({'id':_0x3ab2d8[_0x1bd324('0x22b1')]['id'],'fields':_0x1bd324('0x244f'),'nolimit':!![],'role':'agent'})[_0x1bd324('0xe59')][_0x1bd324('0xe19')](function(_0x383fcb){_0x2e2562(_0x383fcb);})['catch'](function(_0x209049){_0x2852e2(_0x209049);});});}function _0x468979(){return _0x476056(function(_0x31610d,_0x4f0c5e){var _0x260d99=a0_0x5325;return _0x7edaef[_0x260d99('0x10c6')][_0x260d99('0x22d5')]({'fields':_0x260d99('0x244f'),'nolimit':!![],'role':_0x260d99('0x108')})[_0x260d99('0xe59')]['then'](function(_0x44763f){_0x31610d(_0x44763f);})[_0x260d99('0x223b')](function(_0x551c42){_0x4f0c5e(_0x551c42);});});}function _0x41b680(_0x4ddae3){return _0x476056(function(_0x43ad22,_0x3dd5a1){var _0x213a93=a0_0x5325;_0x32d445()[_0x213a93('0x14b4')](_0x4ddae3)?_0x43ad22():_0x7edaef[_0x213a93('0x22b1')][_0x213a93('0x2271')]({'id':_0x3ab2d8['openchannelQueue']['id'],'ids':_0x32d445()[_0x213a93('0x65a')](_0x4ddae3,'id')})['$promise'][_0x213a93('0xe19')](function(){_0x43ad22();})[_0x213a93('0x223b')](function(_0x11039d){_0x3dd5a1(_0x11039d);});});}function _0x361179(_0x3e26f4){return _0x476056(function(_0x3448e2,_0x11809a){var _0x163d27=a0_0x5325;_0x32d445()[_0x163d27('0x14b4')](_0x3e26f4)?_0x3448e2():_0x7edaef[_0x163d27('0x22b1')]['removeAgents']({'id':_0x3ab2d8['openchannelQueue']['id'],'ids':_0x32d445()[_0x163d27('0x65a')](_0x3e26f4,'id')})[_0x163d27('0xe59')]['then'](function(){_0x3448e2();})[_0x163d27('0x223b')](function(_0x32a780){_0x11809a(_0x32a780);});});}function _0xc050de(){var _0x2eac79=_0x50e18a,_0x33ec6f=_0x32d445()['differenceBy'](_0x3ab2d8['startingSelectedItems'],_0x3ab2d8[_0x2eac79('0x2273')],'id'),_0x3a57fa=_0x32d445()[_0x2eac79('0x501')](_0x3ab2d8[_0x2eac79('0x2273')],_0x3ab2d8[_0x2eac79('0xf79')],'id');return _0x361179(_0x33ec6f)[_0x2eac79('0xe19')](function(){return _0x41b680(_0x3a57fa);})[_0x2eac79('0xe19')](function(){var _0x11a2b8=_0x2eac79;_0x3ab2d8[_0x11a2b8('0x16e7')]=![],_0x3ab2d8[_0x11a2b8('0x286c')]=angular['copy'](_0x3ab2d8[_0x11a2b8('0x1884')]),_0x3ab2d8[_0x11a2b8('0xf79')]=angular[_0x11a2b8('0x89')](_0x3ab2d8[_0x11a2b8('0x2273')]),_0x43cfe7[_0x11a2b8('0x425')]({'title':_0x11a2b8('0x1dca'),'msg':_0x11a2b8('0x25d')});})['catch'](function(_0x43152c){var _0x2c7982=_0x2eac79;_0x43cfe7[_0x2c7982('0x8c8')]({'title':_0x43152c[_0x2c7982('0x2833')]?_0x2c7982('0x27f2')+_0x43152c[_0x2c7982('0x2833')]+'\x20-\x20'+_0x43152c[_0x2c7982('0x1fd7')]:_0x2c7982('0x2168'),'msg':_0x43152c[_0x2c7982('0x2833')]?JSON[_0x2c7982('0x3ad')](_0x43152c['data']):_0x43152c[_0x2c7982('0x94f')]()});});}function _0x1a9cc4(){var _0x35b31e=_0x50e18a;_0x9f318d[_0x35b31e('0x11ed')]();}}const _0x5ec4a3=_0x24b53b;_0x144a76[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x22b1'),_0xb635d2('0x2493'),_0xb635d2('0x2730'),'crudPermissions'];function _0x144a76(_0x24d76b,_0xa2d756,_0x517c5c,_0x1215ef,_0xf4c7e3,_0x288ec1,_0x299fce,_0x5abe2d){var _0x411c4f=_0xb635d2,_0x599afb=this;_0x599afb[_0x411c4f('0x15a5')]=_0x299fce[_0x411c4f('0x1ef8')](),_0x599afb[_0x411c4f('0x22b1')]=_0xf4c7e3,_0x599afb[_0x411c4f('0xb3d')]=_0x5abe2d,_0x599afb[_0x411c4f('0xe4b')]=[],_0x599afb[_0x411c4f('0x1884')]=[],_0x599afb[_0x411c4f('0x2273')]=[],_0x599afb['startingAllowedItems']=[],_0x599afb[_0x411c4f('0xf79')]=[],_0x599afb[_0x411c4f('0x16e7')]=![],_0x599afb['dualMultiselectOptions']={'readOnly':!_0x599afb[_0x411c4f('0xb3d')][_0x411c4f('0x12bc')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x411c4f('0x2623'),'line2':'','line3':'','labelAll':_0x288ec1[_0x411c4f('0x2159')](_0x411c4f('0x1383')),'labelSelected':_0x288ec1[_0x411c4f('0x2159')](_0x411c4f('0x26d4')),'transferCallback':function _0x37fbb8(){var _0x3f2f55=_0x411c4f,_0x219b69=_0x32d445()[_0x3f2f55('0x118')](_0x599afb[_0x3f2f55('0xf79')],_0x599afb['selectedItems'],'id');_0x599afb[_0x3f2f55('0x16e7')]=_0x32d445()[_0x3f2f55('0x14b4')](_0x219b69)?![]:!![];}},_0x599afb['onInit']=_0x16e4fc,_0x599afb[_0x411c4f('0xc30')]=_0x177d89,_0x599afb['closeDialog']=_0x54f1e9;function _0x16e4fc(){var _0x166a13=_0x411c4f;return _0x299fce['hasRole'](_0x166a13('0xd14'))?_0x3f9048()[_0x166a13('0x223b')](function(_0x598cf1){var _0x29adb2=_0x166a13;_0x517c5c[_0x29adb2('0x8c8')]({'title':_0x598cf1['status']?'API:'+_0x598cf1[_0x29adb2('0x2833')]+'\x20-\x20'+_0x598cf1[_0x29adb2('0x1fd7')]:'SYSTEM:GET_TEAMS','msg':_0x598cf1[_0x29adb2('0x2833')]?JSON['stringify'](_0x598cf1[_0x29adb2('0x11d0')]):_0x598cf1['toString']()});}):_0x365932()[_0x166a13('0xe19')](function(_0x2a473a){return _0x599afb['section']=_0x2a473a,_0x3f9048();})[_0x166a13('0x223b')](function(_0x2f401c){var _0x40ddf7=_0x166a13;_0x517c5c[_0x40ddf7('0x8c8')]({'title':_0x2f401c[_0x40ddf7('0x2833')]?'API:'+_0x2f401c[_0x40ddf7('0x2833')]+'\x20-\x20'+_0x2f401c[_0x40ddf7('0x1fd7')]:_0x40ddf7('0x4a4'),'msg':_0x2f401c[_0x40ddf7('0x2833')]?JSON[_0x40ddf7('0x3ad')](_0x2f401c[_0x40ddf7('0x11d0')]):_0x2f401c['toString']()});});}function _0x365932(){return _0xa2d756(function(_0x57d681,_0x4d98e3){var _0x3809e5=a0_0x5325;_0x1215ef[_0x3809e5('0xb59')][_0x3809e5('0x22d5')]({'userProfileId':_0x599afb[_0x3809e5('0x15a5')][_0x3809e5('0x1d04')],'name':_0x3809e5('0x1d54')})[_0x3809e5('0xe59')]['then'](function(_0x65da03){var _0x58cff3=_0x3809e5,_0x4de51e=_0x65da03&&_0x65da03['rows']?_0x65da03[_0x58cff3('0x16a7')][0x0]:null;_0x57d681(_0x4de51e);})['catch'](function(_0x39f360){_0x4d98e3(_0x39f360);});});}function _0x3f9048(){return _0xa2d756(function(_0x2267a7,_0x24b820){var _0x598e67=a0_0x5325;return _0x167899()[_0x598e67('0xe19')](function(_0x5a7ba8){var _0x179bd9=_0x598e67;return _0x599afb[_0x179bd9('0xe4b')]=_0x5a7ba8[_0x179bd9('0x16a7')]?_0x5a7ba8[_0x179bd9('0x16a7')]:[],_0x299fce[_0x179bd9('0x179e')]('admin')?_0x5a7ba8:_0x599afb[_0x179bd9('0x1e59')]?_0x599afb[_0x179bd9('0x1e59')][_0x179bd9('0x11fd')]?_0x5a7ba8:_0x282745():null;})[_0x598e67('0xe19')](function(_0x2a82e8){var _0x44e614=_0x598e67,_0x21ee4b=_0x2a82e8&&_0x2a82e8[_0x44e614('0x16a7')]?_0x2a82e8['rows']:[];return _0x599afb[_0x44e614('0x1884')]=_0x32d445()[_0x44e614('0x65a')](_0x21ee4b,function(_0xe092f3){var _0x4849dc=_0x44e614;return _0x32d445()['find'](_0x599afb[_0x4849dc('0xe4b')],{'id':_0x299fce[_0x4849dc('0x179e')](_0x4849dc('0xd14'))||_0x599afb['section'][_0x4849dc('0x11fd')]?_0xe092f3['id']:_0xe092f3[_0x4849dc('0x1104')]});}),_0x599afb['items'][_0x44e614('0x1d7e')](function(_0xe463a6){var _0x416f25=_0x44e614,_0x39a569=_0x32d445()[_0x416f25('0xf15')](_0x599afb[_0x416f25('0x1884')],{'id':_0xe463a6['id']});_0x299fce[_0x416f25('0x179e')]('admin')?_0xe463a6['isValid']=!![]:_0xe463a6[_0x416f25('0x1768')]=typeof _0x39a569!=='undefined'?!![]:![];}),_0x24f79f();})['then'](function(_0x9701dd){var _0x4cac8a=_0x598e67,_0x3b69bb=_0x9701dd&&_0x9701dd['rows']?_0x9701dd[_0x4cac8a('0x16a7')]:[];_0x599afb['selectedItems']=_0x32d445()[_0x4cac8a('0x65a')](_0x3b69bb,function(_0x4e1212){var _0x2533b6=_0x4cac8a;return _0x32d445()[_0x2533b6('0xf15')](_0x599afb[_0x2533b6('0xe4b')],{'id':_0x4e1212['id']});}),_0x599afb[_0x4cac8a('0xf79')]=angular[_0x4cac8a('0x89')](_0x599afb[_0x4cac8a('0x2273')]),_0x599afb[_0x4cac8a('0xc00')]['selectedItems']=_0x599afb['selectedItems'],_0x599afb[_0x4cac8a('0xc00')][_0x4cac8a('0xe4b')]=_0x32d445()['differenceBy'](_0x599afb[_0x4cac8a('0x1884')],_0x599afb[_0x4cac8a('0xc00')][_0x4cac8a('0x2273')],'id'),_0x2267a7();})[_0x598e67('0x223b')](function(_0x4ae6e0){_0x24b820(_0x4ae6e0);});});}function _0x282745(){return _0xa2d756(function(_0x32340d,_0x247128){var _0x390ed5=a0_0x5325;return _0x1215ef[_0x390ed5('0xd49')][_0x390ed5('0x22d5')]({'sectionId':_0x599afb['section']['id'],'nolimit':!![]})[_0x390ed5('0xe59')][_0x390ed5('0xe19')](function(_0x538ae7){_0x32340d(_0x538ae7);})['catch'](function(_0x4072bf){_0x247128(_0x4072bf);});});}function _0x24f79f(){return _0xa2d756(function(_0x2cd5e5,_0x3e5991){var _0x4de682=a0_0x5325;return _0x1215ef[_0x4de682('0x22b1')]['getTeams']({'id':_0x599afb[_0x4de682('0x22b1')]['id'],'fields':_0x4de682('0x104'),'nolimit':!![]})[_0x4de682('0xe59')][_0x4de682('0xe19')](function(_0x2955de){_0x2cd5e5(_0x2955de);})[_0x4de682('0x223b')](function(_0x467c6f){_0x3e5991(_0x467c6f);});});}function _0x167899(){return _0xa2d756(function(_0x26a0b9,_0x5d2ea8){var _0x596a71=a0_0x5325;return _0x1215ef[_0x596a71('0x25af')][_0x596a71('0x22d5')]({'fields':'id,name','nolimit':!![]})[_0x596a71('0xe59')][_0x596a71('0xe19')](function(_0x9596ab){_0x26a0b9(_0x9596ab);})['catch'](function(_0x18179c){_0x5d2ea8(_0x18179c);});});}function _0x41661b(_0x4bae13){return _0xa2d756(function(_0x333769,_0x30853e){var _0x4d1dc2=a0_0x5325;_0x32d445()[_0x4d1dc2('0x14b4')](_0x4bae13)?_0x333769():_0x1215ef['openchannelQueue']['addTeams']({'id':_0x599afb[_0x4d1dc2('0x22b1')]['id'],'ids':_0x32d445()[_0x4d1dc2('0x65a')](_0x4bae13,'id')})['$promise'][_0x4d1dc2('0xe19')](function(){_0x333769();})[_0x4d1dc2('0x223b')](function(_0x469182){_0x30853e(_0x469182);});});}function _0x4fb005(_0x358ae3){return _0xa2d756(function(_0x130db7,_0xd67715){var _0x52e281=a0_0x5325;_0x32d445()[_0x52e281('0x14b4')](_0x358ae3)?_0x130db7():_0x1215ef[_0x52e281('0x22b1')][_0x52e281('0x151a')]({'id':_0x599afb[_0x52e281('0x22b1')]['id'],'ids':_0x32d445()['map'](_0x358ae3,'id')})[_0x52e281('0xe59')][_0x52e281('0xe19')](function(){_0x130db7();})[_0x52e281('0x223b')](function(_0x23ed01){_0xd67715(_0x23ed01);});});}function _0x177d89(){var _0x47937b=_0x411c4f,_0x159fbf=_0x32d445()[_0x47937b('0x501')](_0x599afb[_0x47937b('0xf79')],_0x599afb['selectedItems'],'id'),_0x2ad0a1=_0x32d445()['differenceBy'](_0x599afb[_0x47937b('0x2273')],_0x599afb[_0x47937b('0xf79')],'id');return _0x4fb005(_0x159fbf)['then'](function(){return _0x41661b(_0x2ad0a1);})[_0x47937b('0xe19')](function(){var _0x4675dd=_0x47937b;_0x599afb[_0x4675dd('0x16e7')]=![],_0x599afb[_0x4675dd('0x286c')]=angular[_0x4675dd('0x89')](_0x599afb[_0x4675dd('0x1884')]),_0x599afb[_0x4675dd('0xf79')]=angular[_0x4675dd('0x89')](_0x599afb['selectedItems']),_0x517c5c[_0x4675dd('0x425')]({'title':_0x4675dd('0x1dca'),'msg':_0x4675dd('0x22e1')});})[_0x47937b('0x223b')](function(_0x51b832){var _0x12d84e=_0x47937b;_0x517c5c['error']({'title':_0x51b832[_0x12d84e('0x2833')]?'API:'+_0x51b832[_0x12d84e('0x2833')]+_0x12d84e('0x1b7c')+_0x51b832[_0x12d84e('0x1fd7')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x51b832[_0x12d84e('0x2833')]?JSON[_0x12d84e('0x3ad')](_0x51b832['data']):_0x51b832[_0x12d84e('0x94f')]()});});}function _0x54f1e9(){var _0x4b9c2d=_0x411c4f;_0x24d76b[_0x4b9c2d('0x11ed')]();}}const _0x52c3df=_0x144a76,_0x3eb346=_0x59426a['p']+_0xb635d2('0x8b0');_0x2411ea['$inject']=[_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$translate',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),'openchannelQueue',_0xb635d2('0xb59')];function _0x2411ea(_0x7b88a7,_0x1b061a,_0x52b17a,_0x7ba662,_0xc406b8,_0x204bee,_0xd25202,_0x55b11c,_0x44a716,_0x3147b7,_0x26ca8f,_0x4bc054){var _0x593711=_0xb635d2,_0x3b5040=this;_0x3b5040[_0x593711('0x15a5')]=_0x3147b7[_0x593711('0x1ef8')](),_0x3b5040[_0x593711('0x5c1')]=_0x204bee,_0x3b5040[_0x593711('0x22f1')]=_0xd25202,_0x3b5040[_0x593711('0x25ac')]=_0x3b5040[_0x593711('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3b5040[_0x593711('0x2170')]=_0x1b061a[_0x593711('0xec0')]()+'://'+_0x1b061a[_0x593711('0x3b7')](),_0x3b5040[_0x593711('0x22b1')]=_0x26ca8f||_0x7b88a7[_0x593711('0x2ef')]['openchannelQueue']||{},_0x3b5040[_0x593711('0xb59')]=_0x4bc054&&_0x4bc054['count']==0x1?_0x4bc054[_0x593711('0x16a7')][0x0]:null,_0x3b5040['crudPermissions']=_0x3147b7['parseCrudPermissions'](_0x3b5040[_0x593711('0xb59')]?_0x3b5040[_0x593711('0xb59')]['crudPermissions']:null),_0x3b5040[_0x593711('0x1ccb')]={},_0x3b5040[_0x593711('0xc7b')]=_0x7b88a7[_0x593711('0x2ef')][_0x593711('0x435')]||0x0,_0x3b5040[_0x593711('0x23f1')]=_0x270fcc,_0x3b5040[_0x593711('0x1407')]=_0x289652,_0x3b5040[_0x593711('0xbdc')]=_0x44a716[_0x593711('0x1e67')],_0x3b5040['gotoOpenchannelQueues']=_0x1d22e4,_0x3b5040[_0x593711('0x1680')]=_0x5ac626;function _0x270fcc(_0x3e1d1f,_0x591d51){var _0x29191e=_0x593711;_0x52b17a[_0x29191e('0x26b2')]({'controller':_0x29191e('0x55d'),'controllerAs':'vm','templateUrl':_0x3eb346,'parent':angular[_0x29191e('0x24a1')](_0x7ba662[_0x29191e('0x19b2')]),'targetEvent':_0x591d51,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x3e1d1f,'openchannelQueues':_0x3b5040['openchannelQueues']?_0x3b5040[_0x29191e('0x5df')][_0x29191e('0x16a7')]:[],'crudPermissions':_0x3b5040[_0x29191e('0xb3d')]}});}function _0x289652(_0x383733,_0x4bc367){var _0x40a0c1=_0x593711;_0x52b17a[_0x40a0c1('0x26b2')]({'controller':_0x40a0c1('0x1106'),'controllerAs':'vm','templateUrl':_0x54aeb6,'parent':angular[_0x40a0c1('0x24a1')](_0x7ba662[_0x40a0c1('0x19b2')]),'targetEvent':_0x4bc367,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x383733,'openchannelQueues':_0x3b5040[_0x40a0c1('0x5df')]?_0x3b5040[_0x40a0c1('0x5df')][_0x40a0c1('0x16a7')]:[],'crudPermissions':_0x3b5040[_0x40a0c1('0xb3d')],'realtime':![]}});}function _0x1d22e4(){var _0x1998dc=_0x593711;_0x7b88a7['go'](_0x1998dc('0x1f5e'),{},{'reload':_0x1998dc('0x1f5e')});}function _0x5ac626(){var _0x9b6092=_0x593711;_0x55b11c['openchannelQueue'][_0x9b6092('0xa70')]({'id':_0x3b5040[_0x9b6092('0x22b1')]['id']},_0x3b5040['openchannelQueue'])[_0x9b6092('0xe59')]['then'](function(){var _0xa0a947=_0x9b6092;_0x44a716[_0xa0a947('0x425')]({'title':_0xa0a947('0x70a'),'msg':_0x3b5040[_0xa0a947('0x22b1')]['name']?_0x3b5040[_0xa0a947('0x22b1')][_0xa0a947('0x2623')]+_0xa0a947('0x283b'):''});})[_0x9b6092('0x223b')](function(_0x2a1e6d){var _0x5f5109=_0x9b6092;_0x44a716[_0x5f5109('0x8c8')]({'title':_0x2a1e6d[_0x5f5109('0x2833')]?_0x5f5109('0x27f2')+_0x2a1e6d[_0x5f5109('0x2833')]+_0x5f5109('0x1b7c')+_0x2a1e6d[_0x5f5109('0x1fd7')]:_0x5f5109('0x2287'),'msg':_0x2a1e6d['data']?JSON[_0x5f5109('0x3ad')](_0x2a1e6d['data']):_0x2a1e6d[_0x5f5109('0x94f')]()});});}}const _0x10162c=_0x2411ea;_0x218edc[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x5df'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'api',_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x218edc(_0x1305c2,_0x42b93a,_0x4f30ae,_0x55c372,_0x138910,_0x4749b5,_0x87e472,_0x288a54,_0x38bee9,_0x15b740,_0x476eb8,_0x99b862,_0x11007,_0x5a675c,_0x2652c1,_0x2cbe2c,_0x1ddcfc){var _0x11ac20=_0xb635d2,_0x2b5a42=this;_0x2b5a42[_0x11ac20('0x5c1')]=_0x2cbe2c,_0x2b5a42['setting']=_0x1ddcfc,_0x2b5a42[_0x11ac20('0x15a5')]=_0x2652c1[_0x11ac20('0x1ef8')](),_0x2b5a42[_0x11ac20('0x5df')]=_0x38bee9||{'count':0x0,'rows':[]},_0x2b5a42[_0x11ac20('0x154f')]=_0x15b740,_0x2b5a42[_0x11ac20('0xb59')]=_0x476eb8&&_0x476eb8[_0x11ac20('0x148b')]==0x1?_0x476eb8[_0x11ac20('0x16a7')][0x0]:null,_0x2b5a42[_0x11ac20('0xb3d')]=_0x2652c1[_0x11ac20('0xd31')](_0x2b5a42['userProfileSection']?_0x2b5a42[_0x11ac20('0xb59')][_0x11ac20('0xb3d')]:null),_0x2b5a42[_0x11ac20('0x19b6')]=_0x11ac20('0x5df'),_0x2b5a42[_0x11ac20('0x14d6')]='',_0x2b5a42[_0x11ac20('0x190c')]=null,_0x2b5a42[_0x11ac20('0x1a72')]=[],_0x2b5a42[_0x11ac20('0xa16')]={'fields':_0x11ac20('0x1bd'),'sort':_0x11ac20('0x7e8'),'channel':_0x11ac20('0xaf2'),'limit':0xa,'page':0x1},_0x2b5a42[_0x11ac20('0xa67')]=_0x32d445()[_0x11ac20('0x226f')]([{'option':_0x11ac20('0x26e4'),'value':_0x11ac20('0x2460')},{'option':_0x11ac20('0x442'),'value':_0x11ac20('0x236a')}],function(_0x23993f){var _0x2dda89=_0x11ac20;return _0x32d445()['replace'](_0x23993f[_0x2dda89('0x2')],new RegExp('\x27','g'),'');}),_0x2b5a42[_0x11ac20('0x16a0')]=_0xec2d5f,_0x2b5a42[_0x11ac20('0x23f1')]=_0x284d91,_0x2b5a42[_0x11ac20('0x1407')]=_0x4f3171,_0x2b5a42['deleteconfirm']=_0x29f13c,_0x2b5a42[_0x11ac20('0x20e3')]=_0xd6eaa7,_0x2b5a42[_0x11ac20('0x425')]=_0x501dbf,_0x2b5a42[_0x11ac20('0x1d0d')]=_0x4b1951,_0x2b5a42[_0x11ac20('0x10b')]=_0x38f4bc,_0x2b5a42[_0x11ac20('0x11a5')]=_0x3af322,_0x2b5a42['exportSelectedOpenchannelQueues']=_0x277102,_0x2b5a42[_0x11ac20('0x243c')]=_0x116563,_0x2b5a42[_0x11ac20('0x121e')]=_0x525098,_0x2b5a42['selectAllOpenchannelQueues']=_0x47553c;function _0xec2d5f(_0x254e2e){var _0x1f7edd=_0x11ac20;_0x4f30ae['go'](_0x1f7edd('0x18bc'),{'id':_0x254e2e['id'],'openchannelQueue':_0x254e2e,'crudPermissions':_0x2b5a42['crudPermissions']});}function _0x284d91(_0x2bc898,_0x71ab73){var _0x52d888=_0x11ac20;_0x138910[_0x52d888('0x26b2')]({'controller':_0x52d888('0x55d'),'controllerAs':'vm','templateUrl':_0x3eb346,'parent':angular['element'](_0x4749b5[_0x52d888('0x19b2')]),'targetEvent':_0x71ab73,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2bc898,'openchannelQueues':_0x2b5a42[_0x52d888('0x5df')]?_0x2b5a42[_0x52d888('0x5df')][_0x52d888('0x16a7')]:[],'crudPermissions':_0x2b5a42[_0x52d888('0xb3d')]}});}function _0x4f3171(_0x5c6680,_0x49f018){var _0x299c1a=_0x11ac20;_0x138910[_0x299c1a('0x26b2')]({'controller':_0x299c1a('0x1106'),'controllerAs':'vm','templateUrl':_0x54aeb6,'parent':angular[_0x299c1a('0x24a1')](_0x4749b5[_0x299c1a('0x19b2')]),'targetEvent':_0x49f018,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x5c6680,'openchannelQueues':_0x2b5a42[_0x299c1a('0x5df')]?_0x2b5a42[_0x299c1a('0x5df')]['rows']:[],'crudPermissions':_0x2b5a42[_0x299c1a('0xb3d')],'realtime':![]}});}function _0x29f13c(_0x503030,_0x2075c8){var _0x313603=_0x11ac20,_0x1c3438=_0x138910['confirm']()[_0x313603('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()['startCase'](_0x313603('0x22b1'))+'?')[_0x313603('0x221c')](_0x313603('0xab2')+(_0x503030['name']||'openchannelQueue')+_0x313603('0x27bb')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x313603('0x22ab'))['targetEvent'](_0x2075c8)['ok']('OK')[_0x313603('0x2c1')](_0x313603('0x17'));_0x138910['show'](_0x1c3438)[_0x313603('0xe19')](function(){_0x3af322(_0x503030);},function(){var _0xc9db48=_0x313603;console['log'](_0xc9db48('0x17'));});}function _0xd6eaa7(){var _0x5afe7c=_0x11ac20;if(_0x2652c1[_0x5afe7c('0x179e')](_0x5afe7c('0xd14')))_0x4f30ae['go'](_0x5afe7c('0x16b4'),{});else return _0x99b862[_0x5afe7c('0xb59')][_0x5afe7c('0x22d5')]({'userProfileId':_0x2652c1[_0x5afe7c('0x1ef8')]()[_0x5afe7c('0x1d04')],'sectionId':0x32a})['$promise'][_0x5afe7c('0xe19')](function(_0x140972){var _0x3f0160=_0x5afe7c,_0x3ef630=_0x140972&&_0x140972[_0x3f0160('0x16a7')]?_0x140972[_0x3f0160('0x16a7')][0x0]:null;_0x3ef630&&_0x3ef630[_0x3f0160('0x4ef')]?_0x4f30ae['go'](_0x3f0160('0x16b4'),{}):_0x5a675c[_0x3f0160('0x1e67')]({'title':_0x288a54[_0x3f0160('0x2159')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x288a54[_0x3f0160('0x2159')](_0x3f0160('0x4bb'))});})[_0x5afe7c('0x223b')](function(_0x564947){var _0x42b300=_0x5afe7c;_0x5a675c[_0x42b300('0x8c8')]({'title':_0x564947['status']?_0x42b300('0x27f2')+_0x564947[_0x42b300('0x2833')]+'\x20-\x20'+_0x564947[_0x42b300('0x1fd7')]:_0x42b300('0x343'),'msg':_0x564947[_0x42b300('0x2833')]?JSON[_0x42b300('0x3ad')](_0x564947[_0x42b300('0x11d0')]):_0x564947[_0x42b300('0x94f')]()});});}var _0x301ea2=!![],_0x3a3787=0x1;_0x1305c2[_0x11ac20('0x107')](_0x11ac20('0x20cb'),function(_0x2b7932,_0x554e4c){var _0x77507a=_0x11ac20;_0x301ea2?_0x87e472(function(){_0x301ea2=![];}):(!_0x554e4c&&(_0x3a3787=_0x2b5a42[_0x77507a('0xa16')]['page']),_0x2b7932!==_0x554e4c&&(_0x2b5a42[_0x77507a('0xa16')][_0x77507a('0xc08')]=0x1),!_0x2b7932&&(_0x2b5a42[_0x77507a('0xa16')][_0x77507a('0xc08')]=_0x3a3787),_0x2b5a42[_0x77507a('0x1d0d')]());});function _0x501dbf(_0x27cac3){_0x2b5a42['openchannelQueues']=_0x27cac3||{'count':0x0,'rows':[]};}function _0x4b1951(){var _0x35783c=_0x11ac20;_0x2b5a42[_0x35783c('0xa16')]['offset']=(_0x2b5a42[_0x35783c('0xa16')][_0x35783c('0xc08')]-0x1)*_0x2b5a42['query'][_0x35783c('0x1b6d')],_0x2652c1[_0x35783c('0x179e')](_0x35783c('0xd14'))?_0x2b5a42[_0x35783c('0x9c8')]=_0x99b862[_0x35783c('0x22b1')][_0x35783c('0x22d5')](_0x2b5a42[_0x35783c('0xa16')],_0x501dbf)[_0x35783c('0xe59')]:(_0x2b5a42[_0x35783c('0xa16')]['id']=_0x2b5a42[_0x35783c('0x154f')]['id'],_0x2b5a42['query'][_0x35783c('0x1e59')]=_0x35783c('0x744'),_0x2b5a42[_0x35783c('0x9c8')]=_0x99b862[_0x35783c('0x154f')][_0x35783c('0x14e6')](_0x2b5a42[_0x35783c('0xa16')],_0x501dbf)[_0x35783c('0xe59')]);}function _0x38f4bc(_0x4746d2,_0x2430e5){var _0x3a1d6b=_0x11ac20;_0x138910[_0x3a1d6b('0x26b2')]({'controller':'CreateOrEditOpenchannelQueueDialogController','controllerAs':'vm','templateUrl':_0x7ecb1a,'parent':angular[_0x3a1d6b('0x24a1')](_0x4749b5[_0x3a1d6b('0x19b2')]),'targetEvent':_0x4746d2,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2430e5,'openchannelQueues':_0x2b5a42[_0x3a1d6b('0x5df')][_0x3a1d6b('0x16a7')],'license':_0x2b5a42[_0x3a1d6b('0x5c1')],'setting':_0x2b5a42['setting'],'crudPermissions':_0x2b5a42['crudPermissions']}});}function _0x3af322(_0x5cc0ef){var _0x8e2f5c=_0x11ac20;_0x99b862[_0x8e2f5c('0x22b1')][_0x8e2f5c('0x229e')]({'id':_0x5cc0ef['id']})['$promise'][_0x8e2f5c('0xe19')](function(){var _0xe9e4d4=_0x8e2f5c;_0x32d445()['remove'](_0x2b5a42['openchannelQueues'][_0xe9e4d4('0x16a7')],{'id':_0x5cc0ef['id']}),_0x2b5a42[_0xe9e4d4('0x5df')][_0xe9e4d4('0x148b')]-=0x1,!_0x2b5a42['openchannelQueues'][_0xe9e4d4('0x16a7')][_0xe9e4d4('0x25ae')]&&_0x2b5a42['getOpenchannelQueues'](),_0x5a675c[_0xe9e4d4('0x425')]({'title':_0x32d445()[_0xe9e4d4('0x1df2')](_0xe9e4d4('0x1501'))+_0xe9e4d4('0x1219'),'msg':_0x5cc0ef[_0xe9e4d4('0x2623')]?_0x5cc0ef[_0xe9e4d4('0x2623')]+_0xe9e4d4('0x2182'):''});})[_0x8e2f5c('0x223b')](function(_0x48bdb8){var _0x3f5006=_0x8e2f5c;if(_0x48bdb8[_0x3f5006('0x11d0')]&&_0x48bdb8[_0x3f5006('0x11d0')][_0x3f5006('0xcd2')]&&_0x48bdb8[_0x3f5006('0x11d0')][_0x3f5006('0xcd2')]['length']){_0x2b5a42[_0x3f5006('0xcd2')]=_0x48bdb8[_0x3f5006('0x11d0')]['errors']||[{'message':_0x48bdb8[_0x3f5006('0x94f')](),'type':_0x3f5006('0x24ee')}];for(var _0x4ef6e4=0x0;_0x4ef6e4<_0x48bdb8[_0x3f5006('0x11d0')][_0x3f5006('0xcd2')]['length'];_0x4ef6e4++){_0x5a675c['error']({'title':_0x48bdb8['data'][_0x3f5006('0xcd2')][_0x4ef6e4][_0x3f5006('0x62e')],'msg':_0x48bdb8[_0x3f5006('0x11d0')][_0x3f5006('0xcd2')][_0x4ef6e4]['message']});}}else _0x5a675c['error']({'title':_0x48bdb8[_0x3f5006('0x2833')]?_0x3f5006('0x27f2')+_0x48bdb8[_0x3f5006('0x2833')]+_0x3f5006('0x1b7c')+_0x48bdb8['statusText']:'SYSTEM:DELETEopenchannelQueue','msg':_0x48bdb8['data']?JSON[_0x3f5006('0x3ad')](_0x48bdb8[_0x3f5006('0x11d0')][_0x3f5006('0x27e8')]):_0x48bdb8[_0x3f5006('0x27e8')]||_0x48bdb8[_0x3f5006('0x94f')]()});});}function _0x277102(){var _0x31d94e=_0x11ac20,_0x1707ce=angular['copy'](_0x2b5a42[_0x31d94e('0x1a72')]);return _0x2b5a42[_0x31d94e('0x1a72')]=[],_0x1707ce;}function _0x116563(_0x497c26){var _0x2f6bdd=_0x11ac20,_0x2c688f=_0x138910[_0x2f6bdd('0xa5')]()[_0x2f6bdd('0x13e4')](_0x2f6bdd('0x1cc9'))[_0x2f6bdd('0x221c')](_0x2f6bdd('0xab2')+_0x2b5a42[_0x2f6bdd('0x1a72')][_0x2f6bdd('0x25ae')]+_0x2f6bdd('0x5bc')+'\x20will\x20be\x20deleted.')[_0x2f6bdd('0x4d1')](_0x2f6bdd('0x25f9'))[_0x2f6bdd('0x1345')](_0x497c26)['ok']('OK')[_0x2f6bdd('0x2c1')](_0x2f6bdd('0x17'));_0x138910[_0x2f6bdd('0x26b2')](_0x2c688f)[_0x2f6bdd('0xe19')](function(){var _0x1f4176=_0x2f6bdd;_0x2b5a42[_0x1f4176('0x1a72')][_0x1f4176('0x1d7e')](function(_0x2082c6){_0x3af322(_0x2082c6);}),_0x2b5a42[_0x1f4176('0x1a72')]=[];});}function _0x525098(){_0x2b5a42['selectedOpenchannelQueues']=[];}function _0x47553c(){var _0x95a5bd=_0x11ac20;_0x2b5a42[_0x95a5bd('0x1a72')]=_0x2b5a42[_0x95a5bd('0x5df')][_0x95a5bd('0x16a7')];}}const _0x51a604=_0x218edc;_0x4cda04[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x4cda04(_0x412bcd,_0x28bb2b){var _0x2b2a68=_0xb635d2;_0x412bcd[_0x2b2a68('0x1d72')]('app.openchannel',{'abstract':!![],'url':_0x2b2a68('0x1856')})[_0x2b2a68('0x1d72')](_0x2b2a68('0x1f5e'),{'url':_0x2b2a68('0x253a'),'views':{'content@app':{'templateUrl':_0x521981,'controller':_0x2b2a68('0x120')}},'resolve':{'openchannelQueues':[_0x2b2a68('0x292'),_0x2b2a68('0x2730'),function _0x1b1222(_0x46233c,_0x5178ca){var _0x5970ff=_0x2b2a68;return _0x5178ca[_0x5970ff('0x179e')](_0x5970ff('0xd14'))?_0x46233c[_0x5970ff('0xcd6')](_0x5970ff('0x19f0'),{'fields':_0x5970ff('0x1bd'),'sort':_0x5970ff('0x7e8'),'channel':_0x5970ff('0xaf2'),'limit':0xa,'offset':0x0}):_0x46233c['resolve'](_0x5970ff('0x197d'),{'id':_0x5178ca[_0x5970ff('0x1ef8')]()[_0x5970ff('0x1d04')],'section':'OpenchannelQueues','fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x5970ff('0x7e8'),'channel':_0x5970ff('0xaf2'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x39444b(_0x819b22,_0x1a28e6){var _0xceb723=_0x2b2a68;return _0x1a28e6[_0xceb723('0x179e')]('admin')?null:_0x819b22['resolve'](_0xceb723('0x455'),{'fields':_0xceb723('0x1b71'),'id':_0x1a28e6[_0xceb723('0x1ef8')]()[_0xceb723('0x1d04')]});}],'userProfileSection':[_0x2b2a68('0x292'),_0x2b2a68('0x2730'),function _0x547afd(_0x1571d5,_0x484a0e){var _0x4ba1f1=_0x2b2a68;return _0x484a0e['hasRole']('admin')?null:_0x1571d5[_0x4ba1f1('0xcd6')](_0x4ba1f1('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x484a0e['getCurrentUser']()[_0x4ba1f1('0x1d04')],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0x2b2a68('0xaf2')})[_0x2b2a68('0x1d72')](_0x2b2a68('0x18bc'),{'url':_0x2b2a68('0xb1d'),'params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xd5894d,'controller':'OpenchannelQueueController\x20as\x20vm'}},'resolve':{'openchannelQueue':[_0x2b2a68('0x292'),_0x2b2a68('0x34'),function _0x58c5d4(_0x3c0f16,_0x23b350){var _0x198913=_0x2b2a68;return _0x3c0f16[_0x198913('0xcd6')](_0x198913('0x19f0'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x23b350['id']});}],'userProfileSection':[_0x2b2a68('0x292'),'Auth',function _0x3d8a88(_0x1caf42,_0x41e6ba){var _0x38aa74=_0x2b2a68;return _0x1caf42['resolve'](_0x38aa74('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x41e6ba[_0x38aa74('0x1ef8')]()[_0x38aa74('0x1d04')],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0x2b2a68('0xaf2')})[_0x2b2a68('0x1d72')]('app.openchannel.openchannelAccounts',{'url':'/openchannelAccounts','views':{'content@app':{'templateUrl':_0x1876a0,'controller':_0x2b2a68('0x256')}},'resolve':{'openchannelAccounts':[_0x2b2a68('0x292'),_0x2b2a68('0x2730'),function _0x34a533(_0x590483,_0x43fa55){var _0xd43a05=_0x2b2a68;return _0x43fa55[_0xd43a05('0x179e')](_0xd43a05('0xd14'))?_0x590483[_0xd43a05('0xcd6')](_0xd43a05('0x107f'),{'fields':_0xd43a05('0x2453'),'sort':_0xd43a05('0x7e8'),'limit':0xa,'offset':0x0}):_0x590483[_0xd43a05('0xcd6')](_0xd43a05('0x197d'),{'id':_0x43fa55[_0xd43a05('0x1ef8')]()[_0xd43a05('0x1d04')],'section':_0xd43a05('0xa46'),'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2b2a68('0x292'),_0x2b2a68('0x2730'),function _0x37a22c(_0x3f06ce,_0x1b5386){var _0x15d9c4=_0x2b2a68;return _0x1b5386[_0x15d9c4('0x179e')](_0x15d9c4('0xd14'))?null:_0x3f06ce[_0x15d9c4('0xcd6')](_0x15d9c4('0x455'),{'fields':_0x15d9c4('0x1b71'),'id':_0x1b5386['getCurrentUser']()[_0x15d9c4('0x1d04')]});}],'userProfileSection':[_0x2b2a68('0x292'),'Auth',function _0x2ee665(_0x144e6f,_0x59d1c1){var _0x243ca4=_0x2b2a68;return _0x59d1c1[_0x243ca4('0x179e')]('admin')?null:_0x144e6f[_0x243ca4('0xcd6')](_0x243ca4('0x264e'),{'fields':_0x243ca4('0x12d6'),'userProfileId':_0x59d1c1[_0x243ca4('0x1ef8')]()[_0x243ca4('0x1d04')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':'openchannel'})[_0x2b2a68('0x1d72')](_0x2b2a68('0x398'),{'url':'/:id?tab','params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x13eadc,'controller':_0x2b2a68('0x14e')}},'resolve':{'openchannelAccount':[_0x2b2a68('0x292'),'$stateParams',function _0x468e8d(_0x58bbe0,_0x259793){var _0x1e1432=_0x2b2a68;return _0x58bbe0[_0x1e1432('0xcd6')](_0x1e1432('0x107f'),{'fields':_0x1e1432('0x2453'),'id':_0x259793['id']});}],'userProfileSection':['apiResolver',_0x2b2a68('0x2730'),function _0x4f176e(_0x7efd24,_0x3e8b9f){var _0x187600=_0x2b2a68;return _0x7efd24[_0x187600('0xcd6')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3e8b9f['getCurrentUser']()[_0x187600('0x1d04')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':'openchannel'}),_0x28bb2b[_0x2b2a68('0xfe3')](_0x2b2a68('0x2068'));}angular['module'](_0xb635d2('0xe52'),[_0xb635d2('0x569'),'ngPassword','md.data.table',_0xb635d2('0x206b'),_0xb635d2('0xd8b'),_0xb635d2('0x1727'),'ng-sortable',_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),'mdPickers',_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),'mwFormUtils',_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),_0xb635d2('0x17b0'),'material.components.expansionPanels',_0xb635d2('0xe93'),'angular.filter',_0xb635d2('0x1c5')])[_0xb635d2('0x1990')](_0x4cda04)[_0xb635d2('0x1a79')](_0xb635d2('0x1d2f'),_0x57be12)[_0xb635d2('0x1a79')](_0xb635d2('0x26f6'),_0x184929)[_0xb635d2('0x1a79')](_0xb635d2('0x8f0'),_0x2c2fc5)[_0xb635d2('0x1a79')]('EditOpenchannelAccountAppagentDialogController',_0x10d01d)[_0xb635d2('0x1a79')](_0xb635d2('0x18e8'),_0x3886c8)[_0xb635d2('0x1a79')](_0xb635d2('0x1031'),_0x32e09e)[_0xb635d2('0x1a79')](_0xb635d2('0x1cd9'),_0x203a44)[_0xb635d2('0x1a79')]('EditOpenchannelAccountAppdialogflowDialogController',_0x58a2fe)[_0xb635d2('0x1a79')](_0xb635d2('0x157b'),_0x10f90c)[_0xb635d2('0x1a79')](_0xb635d2('0xccb'),_0x545ace)[_0xb635d2('0x1a79')](_0xb635d2('0x978'),_0x20c5c0)[_0xb635d2('0x1a79')](_0xb635d2('0x1642'),_0x30a901)[_0xb635d2('0x1a79')](_0xb635d2('0x1c93'),_0x147ae1)[_0xb635d2('0x1a79')](_0xb635d2('0xda'),_0x35f2cf)['controller'](_0xb635d2('0x213c'),_0x48baf2)[_0xb635d2('0x1a79')](_0xb635d2('0x17de'),_0x49ec0d)['controller'](_0xb635d2('0x2307'),_0x4990b2)[_0xb635d2('0x1a79')](_0xb635d2('0x3e0'),_0xb1f7fb)['controller'](_0xb635d2('0x1a57'),_0x3e02d8)[_0xb635d2('0x1a79')](_0xb635d2('0x104f'),_0x6c0d4)[_0xb635d2('0x1a79')](_0xb635d2('0x1e20'),_0x307928)[_0xb635d2('0x1a79')](_0xb635d2('0xb3'),_0xadaa7f)['controller']('OpenchannelQueueagentaddController',_0x5ec4a3)[_0xb635d2('0x1a79')](_0xb635d2('0x55d'),_0x52c3df)[_0xb635d2('0x1a79')](_0xb635d2('0xf83'),_0x10162c)[_0xb635d2('0x1a79')]('OpenchannelQueuesController',_0x51a604);const _0x4354c1=_0x59426a['p']+_0xb635d2('0x9e7'),_0x1df102=_0x59426a['p']+_0xb635d2('0x24b8'),_0x13f3ba=_0x59426a['p']+_0xb635d2('0x363'),_0x2f1e26=_0x59426a['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html/view-[chunkhash].html',_0x203a71=_0x59426a['p']+'src/js/modules/main/apps/fax/views/realtime/realtime.html/realtime-[chunkhash].html',_0x5e8ae7=_0x59426a['p']+_0xb635d2('0x1148'),_0xcb2d8a=_0x59426a['p']+_0xb635d2('0x1b0'),_0xfa6253=_0x59426a['p']+'src/js/modules/main/apps/fax/views/realtime/queues/view.html/view-[chunkhash].html',_0x17f616=_0x59426a['p']+_0xb635d2('0x1e80');_0x5e5597[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xeb6'),'api','socket',_0xb635d2('0xf65'),_0xb635d2('0x1a77'),_0xb635d2('0x63'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x5e5597(_0x3dd577,_0x2596a2,_0x25448a,_0x4529ba,_0x55db70,_0x32a818,_0x65ae53,_0x377a58,_0x195b7b,_0x4db710,_0x5bec6d,_0x572376,_0xd4fd80){var _0x3f86d9=_0xb635d2,_0xc8e0f=this;_0xc8e0f[_0x3f86d9('0x15a5')]=_0xd4fd80['getCurrentUser'](),_0xc8e0f[_0x3f86d9('0x148b')]=_0x195b7b&&_0x195b7b['count']?_0x195b7b[_0x3f86d9('0x148b')]:0x0,_0xc8e0f['faxAccounts']=_0x195b7b?_0x32d445()['keyBy'](_0x195b7b[_0x3f86d9('0x16a7')]?_0x195b7b[_0x3f86d9('0x16a7')]:[],'id'):{},_0xc8e0f[_0x3f86d9('0x63')]=_0x4db710?_0x32d445()[_0x3f86d9('0x226f')](_0x4db710[_0x3f86d9('0x16a7')]?_0x4db710['rows']:[],'id'):{},_0xc8e0f[_0x3f86d9('0x154f')]=_0x5bec6d,_0xc8e0f[_0x3f86d9('0xb59')]=_0x572376&&_0x572376[_0x3f86d9('0x148b')]==0x1?_0x572376[_0x3f86d9('0x16a7')][0x0]:null,_0xc8e0f[_0x3f86d9('0xb3d')]=_0xd4fd80['parseCrudPermissions'](_0xc8e0f[_0x3f86d9('0xb59')]?_0xc8e0f[_0x3f86d9('0xb59')][_0x3f86d9('0xb3d')]:null),_0xc8e0f[_0x3f86d9('0xa16')]={'sort':_0x3f86d9('0x125a'),'limit':0xa,'page':0x1},_0xc8e0f[_0x3f86d9('0x425')]=_0x2ea11c,_0xc8e0f[_0x3f86d9('0x696')]=_0x25b77c,_0xc8e0f[_0x3f86d9('0x281e')]=_0x4b8197,_0xc8e0f[_0x3f86d9('0x284a')]=_0x5e9bec,_0xc8e0f[_0x3f86d9('0x942')]=_0x5bc617,_0xc8e0f[_0x3f86d9('0x2662')]=_0x1dcfc4,_0xc8e0f[_0x3f86d9('0x1b03')]=[],_0x32d445()[_0x3f86d9('0xd1e')](_0xc8e0f[_0x3f86d9('0x1a77')],function(_0x31baba){var _0x3c0122=_0x3f86d9;_0xc8e0f[_0x3c0122('0x1b03')][_0x3c0122('0xb76')](_0x31baba['id']);}),_0x65ae53['on'](_0x3f86d9('0xb28'),_0xc8e0f[_0x3f86d9('0x284a')]),_0x65ae53['on']('faxAccount:update',_0xc8e0f[_0x3f86d9('0x284a')]),_0x65ae53['on'](_0x3f86d9('0x1936'),_0xc8e0f['onFaxMessageSave']);function _0x25b77c(){var _0x25db46=_0x3f86d9;_0x32d445()['forIn'](_0xc8e0f[_0x25db46('0x1a77')],function(_0x454e34,_0x553e1e){var _0x2f9653=_0x25db46;_0xc8e0f[_0x2f9653('0x63')][_0x553e1e]&&_0x32d445()[_0x2f9653('0x1d8')](_0x454e34,_0xc8e0f[_0x2f9653('0x63')][_0x553e1e]);}),_0x32d445()[_0x25db46('0xd1e')](_0xc8e0f[_0x25db46('0x1a77')],function(_0x1911dd,_0x1f3c04){var _0xbe2223=_0x25db46,_0x466e87={'id':_0x1f3c04,'sort':_0xbe2223('0x2289'),'direction':'in','limit':0x1,'offset':0x0,'$gte':_0xbe2223('0x15f')+_0x4ddcaa()()[_0xbe2223('0x21b1')]('day')['format'](_0xbe2223('0x1f90'))};_0x32a818[_0xbe2223('0x688')][_0xbe2223('0xe6f')](_0x466e87)[_0xbe2223('0xe59')][_0xbe2223('0xe19')](function(_0x5d5fe9){var _0x4431ec=_0xbe2223;return _0x5d5fe9&&(_0x1911dd['in']=_0x5d5fe9[_0x4431ec('0x148b')]||0x0,_0x1911dd['lastIn']=_0x5d5fe9[_0x4431ec('0x16a7')]&&_0x5d5fe9[_0x4431ec('0x16a7')][_0x4431ec('0x25ae')]?_0x5d5fe9[_0x4431ec('0x16a7')][0x0]['createdAt']:undefined),_0x466e87[_0x4431ec('0x1338')]=_0x4431ec('0x2101'),_0x32a818['faxAccount'][_0x4431ec('0xe6f')](_0x466e87)[_0x4431ec('0xe59')];})[_0xbe2223('0xe19')](function(_0x2e3885){var _0x418b74=_0xbe2223;_0x2e3885&&(_0x1911dd['out']=_0x2e3885[_0x418b74('0x148b')]||0x0,_0x1911dd[_0x418b74('0x26d9')]=_0x2e3885[_0x418b74('0x16a7')]&&_0x2e3885[_0x418b74('0x16a7')][_0x418b74('0x25ae')]?_0x2e3885[_0x418b74('0x16a7')][0x0][_0x418b74('0x15c9')]:undefined);})[_0xbe2223('0x223b')](function(_0x19fdc8){var _0x259976=_0xbe2223;console[_0x259976('0x1fe9')](_0x19fdc8);});});}function _0x5e9bec(_0x44b1f5){var _0xae220b=_0x3f86d9;_0xc8e0f[_0xae220b('0x1a77')][_0x44b1f5['id']]&&_0x32d445()[_0xae220b('0x1d8')](_0xc8e0f['faxAccounts'][_0x44b1f5['id']],_0x44b1f5);}function _0x5bc617(_0x50db5b){var _0x395a98=_0x3f86d9;_0xc8e0f[_0x395a98('0x1a77')][_0x50db5b[_0x395a98('0xef3')]]&&(_0x50db5b[_0x395a98('0x1338')]=='in'?(_0xc8e0f['faxAccounts'][_0x50db5b[_0x395a98('0xef3')]]['in']+=0x1,_0xc8e0f[_0x395a98('0x1a77')][_0x50db5b['FaxAccountId']][_0x395a98('0x1445')]=_0x50db5b[_0x395a98('0x15c9')]):(_0xc8e0f[_0x395a98('0x1a77')][_0x50db5b[_0x395a98('0xef3')]]['out']+=0x1,_0xc8e0f[_0x395a98('0x1a77')][_0x50db5b[_0x395a98('0xef3')]]['lastOut']=_0x50db5b[_0x395a98('0x15c9')]));}function _0x1dcfc4(_0x5b5c94,_0x366b2d){_0x55db70['go']('app.fax.faxAccounts.edit',{'id':_0x366b2d['id'],'faxAccount':_0x366b2d});}var _0x4d454f=!![],_0x227534=0x1;_0x3dd577[_0x3f86d9('0x107')](_0x3f86d9('0x20cb'),function(_0xedfa8,_0x5751c3){var _0x2ab80d=_0x3f86d9;_0x4d454f?_0x2596a2(function(){_0x4d454f=![];}):(!_0x5751c3&&(_0x227534=_0xc8e0f[_0x2ab80d('0xa16')][_0x2ab80d('0xc08')]),_0xedfa8!==_0x5751c3&&(_0xc8e0f[_0x2ab80d('0xa16')][_0x2ab80d('0xc08')]=0x1),!_0xedfa8&&(_0xc8e0f[_0x2ab80d('0xa16')][_0x2ab80d('0xc08')]=_0x227534),_0xc8e0f['getFaxAccounts']());});function _0x2ea11c(_0x13250b){var _0x4a99a9=_0x3f86d9;_0xc8e0f[_0x4a99a9('0x1a77')]=_0x13250b?_0x32d445()['keyBy'](_0x13250b[_0x4a99a9('0x16a7')]?_0x13250b['rows']:[],'id'):{};if(_0x13250b[_0x4a99a9('0x16a7')]){_0xc8e0f[_0x4a99a9('0x1b03')]=[];for(var _0x4d131f=0x0;_0x4d131f<_0x13250b[_0x4a99a9('0x16a7')][_0x4a99a9('0x25ae')];_0x4d131f++){_0xc8e0f[_0x4a99a9('0x1b03')][_0x4a99a9('0xb76')](_0x13250b[_0x4a99a9('0x16a7')][_0x4d131f]['id']);}}_0x25b77c();}function _0x4b8197(){var _0x586c2a=_0x3f86d9;_0xc8e0f[_0x586c2a('0xa16')]['offset']=(_0xc8e0f[_0x586c2a('0xa16')][_0x586c2a('0xc08')]-0x1)*_0xc8e0f[_0x586c2a('0xa16')]['limit'],_0xd4fd80[_0x586c2a('0x179e')]('admin')?_0xc8e0f[_0x586c2a('0x9c8')]=_0x32a818[_0x586c2a('0x688')][_0x586c2a('0x22d5')](_0xc8e0f[_0x586c2a('0xa16')],_0x2ea11c)[_0x586c2a('0xe59')]:(_0xc8e0f[_0x586c2a('0xa16')]['id']=_0xc8e0f[_0x586c2a('0x154f')]['id'],_0xc8e0f['query'][_0x586c2a('0x1e59')]='FaxAccounts',_0xc8e0f[_0x586c2a('0x9c8')]=_0x32a818[_0x586c2a('0x154f')][_0x586c2a('0x14e6')](_0xc8e0f[_0x586c2a('0xa16')],_0x2ea11c)[_0x586c2a('0xe59')]);}_0x3dd577[_0x3f86d9('0xb2b')](_0x3f86d9('0x5cd'),function(){var _0x417359=_0x3f86d9;_0x65ae53['removeAllListeners'](_0x417359('0xb28')),_0x65ae53[_0x417359('0x2121')](_0x417359('0x1190')),_0x65ae53['removeAllListeners']('faxMessage:save');});}const _0x11684b=_0x5e5597;_0x3d59fe[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$q',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xfe0'),_0xb635d2('0x145e'),_0xb635d2('0x29b'),'rpcAgents',_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),_0xb635d2('0x20d'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'$interval'];function _0x3d59fe(_0x1c687a,_0x2a8a62,_0x50b857,_0x467714,_0xdb60e5,_0x531035,_0x3b1374,_0x33c17a,_0x4e9f6a,_0x3fa7a4,_0x50a7c9,_0x4649f8,_0x2c9473,_0x1ab722,_0x611602,_0x51e959,_0x268b89,_0x5da721){var _0x49d3d9=_0xb635d2,_0x3741b9=this,_0x1dc708=[_0x49d3d9('0x8b3'),_0x49d3d9('0xb46'),_0x49d3d9('0x76e'),_0x49d3d9('0x823'),_0x49d3d9('0x103'),_0x49d3d9('0x823'),_0x49d3d9('0x1b66'),_0x49d3d9('0xe1f'),_0x49d3d9('0x1b15'),_0x49d3d9('0xf2a'),_0x49d3d9('0x2531'),_0x49d3d9('0x24f1'),_0x49d3d9('0x14fb'),'faxPause',_0x49d3d9('0x1b8d'),_0x49d3d9('0x201b'),_0x49d3d9('0x195a'),_0x49d3d9('0xc97'),_0x49d3d9('0x1288'),_0x49d3d9('0x15f0'),'faxCapacity',_0x49d3d9('0x1fa2'),_0x49d3d9('0x1d36'),_0x49d3d9('0x1d8a'),_0x49d3d9('0x1f27'),_0x49d3d9('0xa2a'),_0x49d3d9('0x1c17'),'chatStatus',_0x49d3d9('0x1ec9'),_0x49d3d9('0x44e'),_0x49d3d9('0x1d59'),'whatsappStatus',_0x49d3d9('0x1c30'),_0x49d3d9('0xff0'),_0x49d3d9('0x583'),_0x49d3d9('0x1ca7'),_0x49d3d9('0x1426'),_0x49d3d9('0x1c51'),_0x49d3d9('0xda4'),_0x49d3d9('0xaa3'),'voiceStatusTime','queue',_0x49d3d9('0x149e'),_0x49d3d9('0x783'),_0x49d3d9('0x1df6'),_0x49d3d9('0x12d')],_0x131c5a=['chatPause','openchannelPause',_0x49d3d9('0x2531'),_0x49d3d9('0x24f1'),_0x49d3d9('0x14fb'),_0x49d3d9('0x2299'),'voicePause',_0x49d3d9('0xb46')];_0x3741b9['currentUser']=_0x51e959[_0x49d3d9('0x1ef8')](),_0x3741b9[_0x49d3d9('0x2254')]=[_0x49d3d9('0xb4'),'inuse',_0x49d3d9('0x1934'),'onhold',_0x49d3d9('0x3ef')],_0x3741b9['pauses']=_0x3b1374||{'count':0x0,'rows':[]},_0x3741b9['license']=_0x268b89,_0x3741b9[_0x49d3d9('0x154f')]=_0x1ab722,_0x3741b9['userProfileSection']=_0x611602&&_0x611602[_0x49d3d9('0x148b')]==0x1?_0x611602[_0x49d3d9('0x16a7')][0x0]:null,_0x3741b9['crudPermissions']=_0x51e959[_0x49d3d9('0xd31')](_0x3741b9[_0x49d3d9('0xb59')]?_0x3741b9[_0x49d3d9('0xb59')][_0x49d3d9('0xb3d')]:null),_0x3741b9[_0x49d3d9('0x29b')]=_0x33c17a?_0x32d445()['keyBy'](_0x33c17a[_0x49d3d9('0x16a7')]?_0x33c17a[_0x49d3d9('0x16a7')]:[],'id'):{},_0x3741b9['rpcAgents']=_0x4e9f6a?_0x32d445()[_0x49d3d9('0x226f')](_0x4e9f6a['rows']?_0x4e9f6a['rows']:[],'id'):{},_0x3741b9[_0x49d3d9('0xc68')]={},_0x3741b9[_0x49d3d9('0xcfe')]=![],_0x3741b9[_0x49d3d9('0x1b03')]=[],_0x3741b9[_0x49d3d9('0x7ff')]={};for(var _0x510d5c in _0x3741b9[_0x49d3d9('0x29b')]){typeof _0x3741b9['agents'][_0x510d5c]!==_0x49d3d9('0x1143')&&(_0x3741b9['agents'][_0x510d5c]['init']=!![]);}_0x3741b9[_0x49d3d9('0xa16')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x3741b9[_0x49d3d9('0xe4e')]=_0x22cf0f,_0x3741b9[_0x49d3d9('0x16d4')]=_0x4b4983,_0x3741b9[_0x49d3d9('0x1c98')]=_0x6aa389,_0x3741b9['unPause']=_0x1cdb4a,_0x3741b9[_0x49d3d9('0x80b')]=_0x5dbd9c,_0x3741b9['getAgentStatus']=_0x30f283,_0x3741b9[_0x49d3d9('0xe1d')]=_0x5eb65e,_0x3741b9[_0x49d3d9('0x361')]=_0x5cc5f6,_0x3741b9['checkPause']=_0x335ea8,_0x3741b9[_0x49d3d9('0x2052')]=_0x207dd4,_0x3741b9[_0x49d3d9('0x284a')]=_0x42ee2a,_0x3741b9['onUpdate']=_0x3c3370,_0x3741b9[_0x49d3d9('0x888')]=_0x59d519,_0x3741b9[_0x49d3d9('0x266f')]=_0xd4b225,_0x3741b9[_0x49d3d9('0x1831')]=_0xd354d2,_0x3741b9[_0x49d3d9('0x166f')]=_0xcf401b,_0x50a7c9['on'](_0x49d3d9('0xb9f'),_0x3741b9[_0x49d3d9('0x284a')]),_0x50a7c9['on'](_0x49d3d9('0x1ce3'),_0x3741b9['onUpdate']),_0x50a7c9['on'](_0x49d3d9('0x1002'),_0x3741b9[_0x49d3d9('0x266f')]),_0x50a7c9['on'](_0x49d3d9('0xa8e'),_0x3741b9[_0x49d3d9('0x1831')]),_0x59d519();var _0x2d992d=_0x5da721(function(){var _0x17d795=_0x49d3d9;_0x3741b9[_0x17d795('0xcfe')]&&(_0x3741b9[_0x17d795('0xcfe')]=![],_0x59d519());},0x3e7);function _0x59d519(){var _0x45d7ea=_0x49d3d9;_0x3741b9['load']=![];var _0x200da8=_0x2a8a62['defer']();_0x3741b9[_0x45d7ea('0x9c8')]=_0x200da8[_0x45d7ea('0x9c8')],_0x3741b9[_0x45d7ea('0x16a4')]=[],_0x3741b9[_0x45d7ea('0x1b03')]=[],_0x32d445()['forIn'](_0x3741b9[_0x45d7ea('0x29b')],function(_0x96c901,_0x1e9369){var _0x1ea1f0=_0x45d7ea;_0x3741b9[_0x1ea1f0('0x7')][_0x1e9369]&&_0x32d445()['merge'](_0x96c901,_0x32d445()[_0x1ea1f0('0xed5')](_0x32d445()[_0x1ea1f0('0x23e3')](_0x3741b9[_0x1ea1f0('0x7')][_0x1e9369],_0x131c5a),_0x1dc708)),_0x5eb65e(_0x96c901),_0x96c901[_0x1ea1f0('0xb46')]?(_0x3741b9[_0x1ea1f0('0x16a4')][_0x1ea1f0('0xb76')](_0x96c901),_0x3741b9[_0x1ea1f0('0x7ff')][_0x96c901[_0x1ea1f0('0x1b66')]]=_0x1e9369):_0x96c901[_0x1ea1f0('0x16ed')]=_0x32d445()['toNumber'](_0x4ddcaa()()['format']('x'));});_0x3741b9[_0x45d7ea('0xa16')]['globalStatusFilter']&&_0x32d445()[_0x45d7ea('0xa8b')](_0x3741b9[_0x45d7ea('0x16a4')],function(_0x29d7df){var _0xabd8fe=_0x45d7ea;return _0x29d7df['globalStatus']!==_0x3741b9[_0xabd8fe('0xa16')][_0xabd8fe('0xb02')];});_0x3741b9[_0x45d7ea('0xa16')]['pauseTypeFilter']&&_0x32d445()[_0x45d7ea('0xa8b')](_0x3741b9[_0x45d7ea('0x16a4')],function(_0x2b7b29){var _0x601fb3=_0x45d7ea;return _0x2b7b29[_0x601fb3('0x103')]!==_0x3741b9['query'][_0x601fb3('0x24fc')];});_0x3741b9['query']['filter']&&_0x32d445()[_0x45d7ea('0xa8b')](_0x3741b9[_0x45d7ea('0x16a4')],function(_0xcc37df){var _0x310a8e=_0x45d7ea;return _0xcc37df[_0x310a8e('0xe11')][_0x310a8e('0x20dd')]()[_0x310a8e('0x281c')](_0x3741b9['query'][_0x310a8e('0x2891')]['toLowerCase']())<0x0;});_0x3741b9[_0x45d7ea('0x16a4')]=_0x29ee88(_0x3741b9['filteredAgents']);var _0x3aae47=(_0x3741b9['query']['page']-0x1)*_0x3741b9[_0x45d7ea('0xa16')][_0x45d7ea('0x1b6d')];_0x3741b9[_0x45d7ea('0xc68')]=_0x32d445()[_0x45d7ea('0x4a0')](_0x3741b9[_0x45d7ea('0x16a4')],_0x3aae47)[_0x45d7ea('0xa19')](0x0,_0x3741b9[_0x45d7ea('0xa16')]['limit']);for(var _0x227001=0x0;_0x227001<_0x3741b9[_0x45d7ea('0xc68')][_0x45d7ea('0x25ae')];_0x227001+=0x1){_0x3741b9[_0x45d7ea('0x1b03')]['push'](_0x3741b9[_0x45d7ea('0xc68')][_0x227001]['id']);}_0x200da8[_0x45d7ea('0xcd6')](),_0x3741b9[_0x45d7ea('0xcfe')]=!![];}function _0x42ee2a(_0x13e71a){var _0x372a26=_0x49d3d9;_0x3741b9['agents'][_0x13e71a['id']]&&(_0x32d445()[_0x372a26('0x1d8')](_0x3741b9[_0x372a26('0x29b')][_0x13e71a['id']],_0x32d445()['pick'](_0x32d445()[_0x372a26('0x23e3')](_0x13e71a,_0x131c5a),_0x1dc708)),_0x32d445()[_0x372a26('0x1d8')](_0x3741b9['rpcAgents'][_0x13e71a['id']],_0x32d445()[_0x372a26('0xed5')](_0x32d445()[_0x372a26('0x23e3')](_0x13e71a,_0x131c5a),_0x1dc708)),_0x5eb65e(_0x3741b9['agents'][_0x13e71a['id']]));}function _0x3c3370(_0x10d02b){var _0x308ebd=_0x49d3d9;_0x3741b9[_0x308ebd('0x29b')][_0x10d02b['id']]&&(_0x32d445()['merge'](_0x3741b9[_0x308ebd('0x29b')][_0x10d02b['id']],_0x32d445()['pick'](_0x10d02b,_0x1dc708)),_0x32d445()[_0x308ebd('0x1d8')](_0x3741b9['rpcAgents'][_0x10d02b['id']],_0x32d445()[_0x308ebd('0xed5')](_0x10d02b,_0x1dc708)),_0x10d02b[_0x308ebd('0x823')]&&(_0x3741b9[_0x308ebd('0x29b')][_0x10d02b['id']][_0x308ebd('0x16ed')]=_0x10d02b['lastPauseAt'],_0x3741b9[_0x308ebd('0x7')][_0x10d02b['id']][_0x308ebd('0x16ed')]=_0x10d02b[_0x308ebd('0x823')]),_0x5eb65e(_0x3741b9[_0x308ebd('0x29b')][_0x10d02b['id']]));}function _0xd4b225(_0x13bdeb){var _0x5e35e3=_0x49d3d9;_0x3741b9[_0x5e35e3('0x29b')][_0x3741b9['agentInternal'][_0x13bdeb[_0x5e35e3('0x1c29')]]]&&(_0x32d445()[_0x5e35e3('0x1d8')](_0x3741b9[_0x5e35e3('0x29b')][_0x3741b9[_0x5e35e3('0x7ff')][_0x13bdeb['destaccountcode']]],_0x32d445()['pick'](_0x13bdeb,[_0x5e35e3('0x26a8'),'destconnectedlinenum'])),_0x32d445()['merge'](_0x3741b9[_0x5e35e3('0x7')][_0x3741b9[_0x5e35e3('0x7ff')][_0x13bdeb['destaccountcode']]],_0x32d445()[_0x5e35e3('0xed5')](_0x13bdeb,[_0x5e35e3('0x26a8'),'destconnectedlinenum'])));}function _0xd354d2(_0x2facfb){var _0x1917e2=_0x49d3d9;_0x3741b9[_0x1917e2('0x29b')][_0x3741b9[_0x1917e2('0x7ff')][_0x2facfb[_0x1917e2('0x1c29')]]]&&(_0x3741b9[_0x1917e2('0x29b')][_0x3741b9['agentInternal'][_0x2facfb[_0x1917e2('0x1c29')]]]=_0x32d445()['omit'](_0x3741b9['agents'][_0x3741b9[_0x1917e2('0x7ff')][_0x2facfb[_0x1917e2('0x1c29')]]],[_0x1917e2('0x26a8'),'destconnectedlinenum']),_0x3741b9[_0x1917e2('0x7')][_0x3741b9['agentInternal'][_0x2facfb['destaccountcode']]]=_0x32d445()['omit'](_0x3741b9['rpcAgents'][_0x3741b9[_0x1917e2('0x7ff')][_0x2facfb[_0x1917e2('0x1c29')]]],[_0x1917e2('0x26a8'),_0x1917e2('0x149e')]));}function _0x22cf0f(_0x25ca3e){var _0x440c15=_0x49d3d9;return _0x3fa7a4[_0x440c15('0x10c6')]['logout']({'id':_0x25ca3e['id'],'device':_0x440c15('0x24e1'),'agent_id':_0x25ca3e['id'],'agent_name':_0x25ca3e['name']})[_0x440c15('0xe59')][_0x440c15('0xe19')](function(){var _0x436e55=_0x440c15;_0x4649f8[_0x436e55('0x425')]({'title':'Agent\x20logout','msg':_0x25ca3e[_0x436e55('0xe11')]+_0x436e55('0x1a35')}),_0x3741b9['agents'][_0x25ca3e['id']]&&(_0x3741b9[_0x436e55('0x29b')][_0x25ca3e['id']][_0x436e55('0xb46')]=![]),_0x3741b9[_0x436e55('0x7')][_0x25ca3e['id']]&&(_0x3741b9[_0x436e55('0x7')][_0x25ca3e['id']]['online']=![]),_0x59d519();})[_0x440c15('0x223b')](function(_0x4e54ad){var _0x4b4a29=_0x440c15;_0x4649f8['error']({'title':_0x4e54ad['status']?_0x4b4a29('0x27f2')+_0x4e54ad[_0x4b4a29('0x2833')]+_0x4b4a29('0x1b7c')+_0x4e54ad['statusText']:_0x4b4a29('0x1c95'),'msg':_0x4e54ad[_0x4b4a29('0x11d0')]?JSON[_0x4b4a29('0x3ad')](_0x4e54ad[_0x4b4a29('0x11d0')][_0x4b4a29('0x27e8')]):_0x4e54ad[_0x4b4a29('0x94f')]()});});}function _0x6aa389(_0x2ba4a1,_0x209e87){var _0x5403f8=_0x49d3d9;return _0x3fa7a4[_0x5403f8('0x10c6')][_0x5403f8('0x1c98')]({'id':_0x2ba4a1['id'],'type':_0x209e87})[_0x5403f8('0xe59')]['then'](function(_0x53ef9c){var _0x2fd5fc=_0x5403f8;_0x3741b9[_0x2fd5fc('0x29b')][_0x2ba4a1['id']]&&_0x32d445()[_0x2fd5fc('0x1d8')](_0x3741b9[_0x2fd5fc('0x29b')][_0x2ba4a1['id']],_0x32d445()[_0x2fd5fc('0xed5')](_0x53ef9c,_0x1dc708)),_0x3741b9[_0x2fd5fc('0x7')][_0x2ba4a1['id']]&&_0x32d445()['merge'](_0x3741b9[_0x2fd5fc('0x7')][_0x2ba4a1['id']],_0x32d445()[_0x2fd5fc('0xed5')](_0x53ef9c,_0x1dc708)),_0x5eb65e(_0x3741b9[_0x2fd5fc('0x29b')][_0x2ba4a1['id']]);})['catch'](function(_0x3fcdf6){var _0x2d2337=_0x5403f8;_0x4649f8[_0x2d2337('0x8c8')]({'title':_0x3fcdf6[_0x2d2337('0x2833')]?_0x2d2337('0x27f2')+_0x3fcdf6[_0x2d2337('0x2833')]+_0x2d2337('0x1b7c')+_0x3fcdf6[_0x2d2337('0x1fd7')]:_0x2d2337('0x1c95'),'msg':_0x3fcdf6[_0x2d2337('0x11d0')]?JSON[_0x2d2337('0x3ad')](_0x3fcdf6['data']['message']):_0x3fcdf6[_0x2d2337('0x94f')]()});});}function _0x1cdb4a(_0x51965e){var _0x522428=_0x49d3d9;return _0x3fa7a4[_0x522428('0x10c6')][_0x522428('0x2471')]({'id':_0x51965e['id']})['$promise'][_0x522428('0xe19')](function(_0x2c49c8){var _0x604461=_0x522428;_0x3741b9['agents'][_0x51965e['id']]&&_0x32d445()[_0x604461('0x1d8')](_0x3741b9[_0x604461('0x29b')][_0x51965e['id']],_0x32d445()[_0x604461('0xed5')](_0x2c49c8,_0x1dc708)),_0x3741b9[_0x604461('0x7')][_0x51965e['id']]&&_0x32d445()[_0x604461('0x1d8')](_0x3741b9[_0x604461('0x7')][_0x51965e['id']],_0x32d445()[_0x604461('0xed5')](_0x2c49c8,_0x1dc708)),_0x5eb65e(_0x3741b9[_0x604461('0x29b')][_0x51965e['id']]);})[_0x522428('0x223b')](function(_0x23b13e){var _0x182d5c=_0x522428;_0x4649f8[_0x182d5c('0x8c8')]({'title':_0x23b13e[_0x182d5c('0x2833')]?_0x182d5c('0x27f2')+_0x23b13e[_0x182d5c('0x2833')]+_0x182d5c('0x1b7c')+_0x23b13e['statusText']:_0x182d5c('0x1c95'),'msg':_0x23b13e[_0x182d5c('0x11d0')]?JSON['stringify'](_0x23b13e['data'][_0x182d5c('0x27e8')]):_0x23b13e[_0x182d5c('0x94f')]()});});}function _0x5dbd9c(_0x52735c){var _0x523d95=_0x49d3d9;_0x467714[_0x523d95('0x26b2')](_0x467714['alert']()[_0x523d95('0x26d6')](!![])[_0x523d95('0x13e4')]('Legend')[_0x523d95('0x221c')](_0x523d95('0x1abb'))['ok']('Ok')['targetEvent'](_0x52735c));}function _0x4b4983(_0x89e351,_0x13db4e){var _0x3bc9f0=_0x49d3d9;_0x467714[_0x3bc9f0('0x26b2')]({'controller':_0x3bc9f0('0x28ab'),'controllerAs':'vm','templateUrl':_0x3bf6bc,'parent':angular['element'](_0xdb60e5[_0x3bc9f0('0x19b2')]),'targetEvent':_0x13db4e,'clickOutsideToClose':!![],'locals':{'agent':_0x89e351,'agents':[],'channel':_0x3bc9f0('0x625'),'direction':_0x3bc9f0('0x1a7a'),'crudPermissions':_0x3741b9[_0x3bc9f0('0xb3d')]}});}function _0x5cc5f6(_0xacf868){var _0x4eae2e=_0x49d3d9;return _0xacf868===_0x4eae2e('0x1c98')||_0xacf868===_0x4eae2e('0x2f3');}function _0x335ea8(_0x2bd44a){var _0x300e32=_0x49d3d9;return _0x2bd44a===_0x300e32('0x1c98');}function _0x207dd4(_0x1f6b54){var _0x40cea6=_0x49d3d9;return _0x1f6b54===_0x40cea6('0x2f3');}function _0x4555c1(_0x3e0a55){var _0x343f85=_0x49d3d9;return _0x3e0a55===_0x343f85('0x751')||_0x3e0a55===_0x343f85('0x10df')||_0x3e0a55==='unavailable'||_0x3e0a55===_0x343f85('0xb4')||_0x32d445()[_0x343f85('0xe44')](_0x3e0a55);}function _0x30f283(_0x99ee43,_0xf32f93){var _0x468b5d=_0x49d3d9;if(_0xf32f93==='voice'){if(_0x99ee43[_0xf32f93+'Status']!==_0x468b5d('0x751'))return _0x99ee43[_0xf32f93+_0x468b5d('0x20e')];if(_0x99ee43[_0xf32f93+_0x468b5d('0x27b9')])return _0x99ee43[_0xf32f93+_0x468b5d('0x20e')]=_0x468b5d('0x1c98'),'pause';return _0x468b5d('0x751');}else{if(_0x99ee43[_0xf32f93+_0x468b5d('0x27b9')])return _0x99ee43[_0xf32f93+_0x468b5d('0x20e')]=_0x468b5d('0x1c98'),'pause';return _0x99ee43[_0xf32f93+_0x468b5d('0x20e')];}}function _0x5eb65e(_0x43026b){var _0x13fed4=_0x49d3d9,_0x150768=_0x13fed4('0x10df');if(_0x32d445()['every']([_0x30f283(_0x43026b,_0x13fed4('0xe74')),_0x30f283(_0x43026b,_0x13fed4('0x17cc')),_0x30f283(_0x43026b,_0x13fed4('0x26bf')),_0x30f283(_0x43026b,'openchannel'),_0x30f283(_0x43026b,_0x13fed4('0x2801')),_0x30f283(_0x43026b,_0x13fed4('0x4b7')),_0x30f283(_0x43026b,'fax')],_0x5cc5f6))_0x150768='pause';else{if(_0x32d445()[_0x13fed4('0x201a')]([_0x30f283(_0x43026b,_0x13fed4('0xe74')),_0x30f283(_0x43026b,_0x13fed4('0x17cc')),_0x30f283(_0x43026b,_0x13fed4('0x26bf')),_0x30f283(_0x43026b,'openchannel'),_0x30f283(_0x43026b,_0x13fed4('0x2801')),_0x30f283(_0x43026b,_0x13fed4('0x4b7')),_0x30f283(_0x43026b,_0x13fed4('0x625'))],_0x5cc5f6))_0x150768='*pause';else _0x32d445()[_0x13fed4('0x1ff')]([_0x30f283(_0x43026b,_0x13fed4('0xe74')),_0x30f283(_0x43026b,_0x13fed4('0x17cc')),_0x30f283(_0x43026b,'mail'),_0x30f283(_0x43026b,_0x13fed4('0xaf2')),_0x30f283(_0x43026b,_0x13fed4('0x2801')),_0x30f283(_0x43026b,_0x13fed4('0x4b7')),_0x30f283(_0x43026b,_0x13fed4('0x625'))],_0x4555c1)?_0x150768=_0x13fed4('0x751'):_0x150768='busy';}_0x43026b['globalStatus']!==_0x150768&&(_0x43026b[_0x13fed4('0x25b1')]=_0x150768,_0x43026b[_0x13fed4('0x15f9')]?(_0x43026b['init']=![],_0x43026b['globalStatusTime']=_0x5cc5f6(_0x150768)?_0x32d445()[_0x13fed4('0xcd3')](_0x4ddcaa()(_0x43026b[_0x13fed4('0x823')])[_0x13fed4('0x5e5')]('x')):_0x32d445()[_0x13fed4('0x1735')]([_0x43026b['voiceStatusTime'],_0x43026b[_0x13fed4('0x583')],_0x43026b[_0x13fed4('0x1426')],_0x43026b[_0x13fed4('0x1c51')],_0x43026b[_0x13fed4('0xda4')],_0x43026b['openchannelStatusTime'],_0x43026b['faxStatusTime']])):_0x43026b[_0x13fed4('0x16ed')]=_0x32d445()[_0x13fed4('0xcd3')](_0x4ddcaa()()[_0x13fed4('0x5e5')]('x')));}function _0x29ee88(_0x33440b){var _0x430d47=_0x49d3d9,_0x255f41=_0x32d445()[_0x430d47('0x20b6')](_0x3741b9[_0x430d47('0xa16')][_0x430d47('0x1b03')],'-')?_0x430d47('0x1ee9'):_0x430d47('0x1564');return _0x32d445()['orderBy'](_0x33440b,[_0x3741b9[_0x430d47('0xa16')][_0x430d47('0x1b03')][_0x430d47('0x1b42')]('-','')],[_0x255f41]);}function _0x5a2ba8(){var _0x10f752=_0x49d3d9;_0x2d992d&&(_0x5da721[_0x10f752('0x2c1')](_0x2d992d),_0x2d992d=null);}function _0xcf401b(_0x892c37,_0x4be65c){var _0x55f1a0=_0x49d3d9;return _0x3fa7a4[_0x55f1a0('0x10c6')][_0x55f1a0('0xa70')]({'id':_0x892c37['id']},{'screenrecording':_0x4be65c})[_0x55f1a0('0xe59')][_0x55f1a0('0x223b')](function(_0x14d2ae){var _0x405b55=_0x55f1a0;_0x4649f8[_0x405b55('0x8c8')]({'title':_0x14d2ae['status']?_0x405b55('0x27f2')+_0x14d2ae[_0x405b55('0x2833')]+_0x405b55('0x1b7c')+_0x14d2ae[_0x405b55('0x1fd7')]:_0x405b55('0x2bf'),'msg':_0x14d2ae['data']?JSON[_0x405b55('0x3ad')](_0x14d2ae[_0x405b55('0x11d0')][_0x405b55('0x27e8')]):_0x14d2ae[_0x405b55('0x94f')]()});});}_0x1c687a[_0x49d3d9('0xb2b')](_0x49d3d9('0x5cd'),function(){var _0x42d23d=_0x49d3d9;_0x50a7c9[_0x42d23d('0x2121')](_0x42d23d('0xb9f')),_0x50a7c9['removeAllListeners'](_0x42d23d('0x1ce3')),_0x50a7c9[_0x42d23d('0x2121')](_0x42d23d('0x1002')),_0x50a7c9[_0x42d23d('0x2121')](_0x42d23d('0xa8e')),_0x5a2ba8();});}const _0x25820d=_0x3d59fe,_0xbfc5c3=_0x59426a['p']+'src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html',_0x5c13e8=_0x59426a['p']+'src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog-[chunkhash].html';_0x458fae['$inject']=['$scope',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x1728'),'$interval',_0xb635d2('0x671'),_0xb635d2('0x146c'),'api',_0xb635d2('0x46d'),'toasty','userProfile',_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x458fae(_0x3b379b,_0x5afea3,_0x467c5e,_0x5132bc,_0x31a171,_0x519146,_0x529a4e,_0x4ef065,_0x413245,_0x57b428,_0x2663e7,_0x40363b,_0x4ca4cf,_0x18747e){var _0x54ad81=_0xb635d2,_0x132773=this,_0x26d173=['loggedIn',_0x54ad81('0x2398'),_0x54ad81('0x183a'),_0x54ad81('0xe75'),_0x54ad81('0x1700'),_0x54ad81('0x194a'),_0x54ad81('0x27e8'),_0x54ad81('0x8c9'),'dialMethod',_0x54ad81('0x1317'),'paused'];_0x132773[_0x54ad81('0x15a5')]=_0x18747e[_0x54ad81('0x1ef8')](),_0x132773[_0x54ad81('0x148b')]=_0x529a4e['count']?_0x529a4e[_0x54ad81('0x148b')]:0x0,_0x132773['queues']=_0x529a4e?_0x32d445()[_0x54ad81('0x226f')](_0x529a4e['rows']?_0x529a4e[_0x54ad81('0x16a7')]:[],'id'):{},_0x132773[_0x54ad81('0x146c')]=_0x4ef065?_0x32d445()[_0x54ad81('0x226f')](_0x4ef065['rows']?_0x4ef065[_0x54ad81('0x16a7')]:[],'id'):{},_0x132773['userProfile']=_0x40363b,_0x132773[_0x54ad81('0xb59')]=_0x4ca4cf&&_0x4ca4cf['count']==0x1?_0x4ca4cf['rows'][0x0]:null,_0x132773[_0x54ad81('0xb3d')]=_0x18747e[_0x54ad81('0xd31')](_0x132773['userProfileSection']?_0x132773[_0x54ad81('0xb59')]['crudPermissions']:null);_0x18747e[_0x54ad81('0x179e')]('admin')?_0x132773[_0x54ad81('0xa16')]={'type':_0x54ad81('0x1a7a'),'sort':_0x54ad81('0x7e8'),'limit':0xa,'page':0x1}:_0x132773['query']={'id':_0x132773['currentUser']['id'],'channel':_0x54ad81('0x625'),'type':_0x54ad81('0x1a7a'),'sort':_0x54ad81('0x7e8'),'limit':0xa,'page':0x1};_0x132773['success']=_0x2b22ab,_0x132773[_0x54ad81('0x23cf')]=_0x48fae9,_0x132773['createOrEditFaxQueue']=_0x31029d,_0x132773[_0x54ad81('0x45a')]=_0xc950bb,_0x132773[_0x54ad81('0xabf')]=_0x5794a7,_0x132773[_0x54ad81('0x284a')]=_0x4eedb7,_0x132773['onSaveMember']=_0xf0e708,_0x132773[_0x54ad81('0x895')]=_0x189c42,_0x132773[_0x54ad81('0x69e')]=_0x473b5d,_0x132773[_0x54ad81('0x1707')]=_0x445439,_0x132773[_0x54ad81('0x1baf')]=_0x60562a,_0x132773[_0x54ad81('0x696')]=_0x5704e4,_0x132773[_0x54ad81('0x1b03')]=[],_0x32d445()[_0x54ad81('0xd1e')](_0x132773[_0x54ad81('0x671')],function(_0x5d88c4){var _0x574292=_0x54ad81;_0x132773[_0x574292('0x1b03')]['push'](_0x5d88c4['id']);}),_0x57b428['on'](_0x54ad81('0x1ab0'),_0x132773[_0x54ad81('0x284a')]),_0x57b428['on'](_0x54ad81('0x21e'),_0x132773['onSaveMember']),_0x57b428['on'](_0x54ad81('0x20b7'),_0x132773[_0x54ad81('0x895')]),_0x57b428['on'](_0x54ad81('0x1ce3'),_0x132773[_0x54ad81('0x69e')]),_0x57b428['on'](_0x54ad81('0x1583'),_0x132773['onLogout']),_0x57b428['on'](_0x54ad81('0x2161'),_0x132773[_0x54ad81('0x1707')]);function _0x5704e4(){var _0x229e87=_0x54ad81,_0x13573e=[];return _0x32d445()[_0x229e87('0xd1e')](_0x132773[_0x229e87('0x671')],function(_0x3400fc,_0x3cc9d2){var _0x2d504c=_0x229e87;_0x3400fc[_0x2d504c('0x1cf8')]=0x0,_0x3400fc['loggedInDb']=0x0,_0x132773[_0x2d504c('0x671')][_0x3cc9d2]['agents']={},_0x13573e['push'](_0x413245[_0x2d504c('0x3f4')][_0x2d504c('0xb5d')]({'id':_0x3cc9d2})[_0x2d504c('0xe59')]),_0x132773[_0x2d504c('0x146c')][_0x3cc9d2]&&_0x32d445()[_0x2d504c('0x1d8')](_0x3400fc,_0x32d445()[_0x2d504c('0xed5')](_0x132773[_0x2d504c('0x146c')][_0x3cc9d2],_0x26d173));}),_0x5132bc[_0x229e87('0xf0e')](_0x13573e)[_0x229e87('0xe19')](function(_0x126ea1){var _0x5d3635=_0x229e87;for(var _0xc60a02=0x0;_0xc60a02<_0x126ea1[_0x5d3635('0x25ae')];_0xc60a02+=0x1){for(var _0x5600f9=0x0;_0x5600f9<_0x126ea1[_0xc60a02]['rows'][_0x5d3635('0x25ae')];_0x5600f9++){_0x126ea1[_0xc60a02][_0x5d3635('0x16a7')][_0x5600f9][_0x5d3635('0x1cf8')]&&_0x132773[_0x5d3635('0x671')][_0x126ea1[_0xc60a02][_0x5d3635('0x16a7')][_0x5600f9][_0x5d3635('0x367')]][_0x5d3635('0x1cf8')]++,_0x132773[_0x5d3635('0x671')][_0x126ea1[_0xc60a02][_0x5d3635('0x16a7')][_0x5600f9]['FaxQueueId']][_0x5d3635('0x120f')]++,_0x132773[_0x5d3635('0x671')][_0x126ea1[_0xc60a02][_0x5d3635('0x16a7')][_0x5600f9][_0x5d3635('0x367')]][_0x5d3635('0x29b')][_0x126ea1[_0xc60a02][_0x5d3635('0x16a7')][_0x5600f9][_0x5d3635('0x43d')]]=_0x126ea1[_0xc60a02]['rows'][_0x5600f9][_0x5d3635('0x367')];}}})[_0x229e87('0x223b')](function(_0x45bd26){console['error'](_0x45bd26);});}function _0x4eedb7(_0x5d67fb){var _0x5c262a=_0x54ad81;_0x132773[_0x5c262a('0x671')][_0x5d67fb['id']]&&_0x32d445()[_0x5c262a('0x1d8')](_0x132773[_0x5c262a('0x671')][_0x5d67fb['id']],_0x32d445()['pick'](_0x5d67fb,_0x26d173));}function _0xf0e708(_0x48b47e){var _0x23d5f9=_0x54ad81;_0x132773[_0x23d5f9('0x671')][_0x48b47e['FaxQueueId']]&&_0x132773[_0x23d5f9('0x671')][_0x48b47e['FaxQueueId']][_0x23d5f9('0x120f')]++;}function _0x189c42(_0x23981f){var _0x4f9278=_0x54ad81;_0x132773[_0x4f9278('0x671')][_0x23981f[_0x4f9278('0x367')]]&&_0x132773[_0x4f9278('0x671')][_0x23981f['FaxQueueId']][_0x4f9278('0x120f')]--;}function _0x473b5d(_0x166fa5){var _0xb01a97=_0x54ad81;console[_0xb01a97('0x1fe9')]('onPause',_0x166fa5);if(_0x166fa5['voicePause'])_0x32d445()[_0xb01a97('0xd1e')](_0x132773['queues'],function(_0x578bf2){var _0x11ae30=_0xb01a97;_0x578bf2[_0x11ae30('0x29b')][_0x166fa5['id']]&&(_0x578bf2['paused']+=0x1,console[_0x11ae30('0x1fe9')](_0x11ae30('0x1c98')));});else!_0x166fa5[_0xb01a97('0x1b8d')]&&_0x32d445()[_0xb01a97('0xd1e')](_0x132773[_0xb01a97('0x671')],function(_0x12f4ce){var _0x67cfd5=_0xb01a97;_0x12f4ce[_0x67cfd5('0x29b')][_0x166fa5['id']]&&(_0x12f4ce[_0x67cfd5('0x1cf8')]>0x0&&(_0x12f4ce[_0x67cfd5('0x1cf8')]-=0x1,console[_0x67cfd5('0x1fe9')](_0x67cfd5('0x2471'))));});}function _0x445439(_0x5936dc){var _0x3bc18b=_0x54ad81;console[_0x3bc18b('0x1fe9')](_0x3bc18b('0xb90'),_0x5936dc),_0x132773[_0x3bc18b('0x671')][_0x5936dc['FaxQueueId']]&&(_0x132773['queues'][_0x5936dc[_0x3bc18b('0x367')]]['loggedInDb']+=0x1,_0x132773[_0x3bc18b('0x671')][_0x5936dc[_0x3bc18b('0x367')]][_0x3bc18b('0x29b')][_0x5936dc[_0x3bc18b('0x43d')]]=_0x5936dc['FaxQueueId']);}function _0x60562a(_0x4b074b){var _0x4a6af7=_0x54ad81;console[_0x4a6af7('0x1fe9')](_0x4a6af7('0x1baf'),_0x4b074b),_0x132773[_0x4a6af7('0x671')][_0x4b074b[_0x4a6af7('0x367')]]&&_0x132773[_0x4a6af7('0x671')][_0x4b074b[_0x4a6af7('0x367')]][_0x4a6af7('0x120f')]>0x0&&(_0x132773[_0x4a6af7('0x671')][_0x4b074b[_0x4a6af7('0x367')]][_0x4a6af7('0x120f')]-=0x1,delete _0x132773[_0x4a6af7('0x671')][_0x4b074b[_0x4a6af7('0x367')]][_0x4a6af7('0x29b')][_0x4b074b[_0x4a6af7('0x43d')]]);}var _0x43fac5=!![],_0x3d19bc=0x1;_0x3b379b[_0x54ad81('0x107')]('vm.query.filter',function(_0x491213,_0x1a75ff){var _0x92c528=_0x54ad81;_0x43fac5?_0x5afea3(function(){_0x43fac5=![];}):(!_0x1a75ff&&(_0x3d19bc=_0x132773[_0x92c528('0xa16')]['page']),_0x491213!==_0x1a75ff&&(_0x132773[_0x92c528('0xa16')][_0x92c528('0xc08')]=0x1),!_0x491213&&(_0x132773[_0x92c528('0xa16')][_0x92c528('0xc08')]=_0x3d19bc),_0x132773[_0x92c528('0x23cf')]());});function _0x2b22ab(_0x31711d){var _0x19e613=_0x54ad81;_0x132773[_0x19e613('0x148b')]=_0x31711d[_0x19e613('0x148b')],_0x132773[_0x19e613('0x671')]=_0x31711d?_0x32d445()[_0x19e613('0x226f')](_0x31711d['rows']?_0x31711d['rows']:[],'id'):{};if(_0x31711d['rows']){_0x132773[_0x19e613('0x1b03')]=[];for(var _0x37c878=0x0;_0x37c878<_0x31711d[_0x19e613('0x16a7')]['length'];_0x37c878++){_0x132773[_0x19e613('0x1b03')][_0x19e613('0xb76')](_0x31711d[_0x19e613('0x16a7')][_0x37c878]['id']);}}_0x5704e4();}function _0x48fae9(){var _0x5e7b13=_0x54ad81;_0x132773[_0x5e7b13('0xa16')][_0x5e7b13('0xab0')]=(_0x132773[_0x5e7b13('0xa16')][_0x5e7b13('0xc08')]-0x1)*_0x132773['query']['limit'],_0x18747e['hasRole']('admin')?_0x132773[_0x5e7b13('0x9c8')]=_0x413245[_0x5e7b13('0x3f4')][_0x5e7b13('0x22d5')](_0x132773[_0x5e7b13('0xa16')],_0x2b22ab)[_0x5e7b13('0xe59')]:(_0x132773['query']['id']=_0x132773[_0x5e7b13('0x154f')]['id'],_0x132773[_0x5e7b13('0xa16')]['section']=_0x5e7b13('0x1473'),_0x132773['promise']=_0x413245[_0x5e7b13('0x154f')][_0x5e7b13('0x14e6')](_0x132773[_0x5e7b13('0xa16')],_0x2b22ab)['$promise']);}function _0x31029d(_0x489f9f,_0x565696){var _0x3ea542=_0x54ad81;_0x467c5e[_0x3ea542('0x26b2')]({'controller':'CreateOrEditFaxQueueDialogController','controllerAs':'vm','templateUrl':_0x5c13e8,'parent':angular[_0x3ea542('0x24a1')](_0x31a171[_0x3ea542('0x19b2')]),'targetEvent':_0x489f9f,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x565696,'faxQueues':_0x32d445()[_0x3ea542('0x1b79')](_0x132773[_0x3ea542('0x671')]),'license':null,'setting':null,'crudPermissions':_0x132773[_0x3ea542('0xb3d')]}});}function _0xc950bb(_0x4de30b,_0x27c53a){var _0xfdc094=_0x54ad81;_0x467c5e[_0xfdc094('0x26b2')]({'controller':_0xfdc094('0x20e4'),'controllerAs':'vm','templateUrl':_0xbfc5c3,'parent':angular[_0xfdc094('0x24a1')](_0x31a171[_0xfdc094('0x19b2')]),'targetEvent':_0x4de30b,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x27c53a,'faxQueues':_0x132773[_0xfdc094('0x671')]?_0x132773[_0xfdc094('0x671')][_0xfdc094('0x16a7')]:[],'realtime':![],'crudPermissions':_0x132773[_0xfdc094('0xb3d')]}});}function _0x5794a7(_0x581358){var _0xede89f=_0x54ad81;return _0x413245['faxQueue'][_0xede89f('0xa70')](_0x581358)['$promise'][_0xede89f('0xe19')](function(){var _0x272505=_0xede89f;_0x2663e7[_0x272505('0x425')]({'title':_0x272505('0x56a'),'msg':_0x581358['name']?_0x581358[_0x272505('0x2623')]+_0x272505('0x283b'):''});})['catch'](function(_0x2aa2f8){var _0x3a3f57=_0xede89f;_0x2663e7[_0x3a3f57('0x8c8')]({'title':'Error\x20creating\x20queue!','msg':_0x2aa2f8[_0x3a3f57('0x27e8')]});});}_0x3b379b[_0x54ad81('0xb2b')](_0x54ad81('0x5cd'),function(){var _0x3cf23d=_0x54ad81;_0x57b428[_0x3cf23d('0x2121')](_0x3cf23d('0x1ab0')),_0x57b428['removeAllListeners']('userFaxQueue:remove'),_0x57b428[_0x3cf23d('0x2121')](_0x3cf23d('0x21e')),_0x57b428[_0x3cf23d('0x2121')](_0x3cf23d('0x1ce3')),_0x57b428['removeAllListeners'](_0x3cf23d('0x1583')),_0x57b428[_0x3cf23d('0x2121')]('userVoiceQueue:save');});}const _0x10fa91=_0x458fae;function _0x177d8b(){var _0x4c4f09=_0xb635d2;return{'status':{'registered':_0x4c4f09('0xcf5'),'unregistered':_0x4c4f09('0x10ea'),'lagged':_0x4c4f09('0x10ea'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x4c4f09('0x10ea'),'unknown':_0x4c4f09('0x1fe7')},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x4c4f09('0x11dd'),'inuse':_0x4c4f09('0x15af'),'busy':_0x4c4f09('0x441'),'invalid':_0x4c4f09('0x2740'),'unavailable':_0x4c4f09('0x2740'),'ringing':_0x4c4f09('0x84d'),'ringinuse':_0x4c4f09('0x84d'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x4c4f09('0x2778'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x4c4f09('0x24dc'),'up':_0x4c4f09('0x2778'),'hangup':_0x4c4f09('0x2432')}};}const _0x1fb4a5=_0x177d8b;_0x4928b0[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x46d')];function _0x4928b0(_0x5697f7,_0x47a08c,_0x22e07a){var _0x1d9cfb=_0xb635d2,_0xb16934=this;_0x22e07a[_0x1d9cfb('0x83c')](),_0x22e07a[_0x1d9cfb('0x19d9')](),_0xb16934[_0x1d9cfb('0xc7b')]=0x0;switch(_0x47a08c[_0x1d9cfb('0x1a60')][_0x1d9cfb('0x2623')]){case'app.fax.realtime.agents':_0xb16934['selectedTab']=0x0;break;case _0x1d9cfb('0x765'):_0xb16934[_0x1d9cfb('0xc7b')]=0x1;break;case _0x1d9cfb('0xc93'):_0xb16934[_0x1d9cfb('0xc7b')]=0x2;break;case _0x1d9cfb('0x1529'):_0xb16934['selectedTab']=0x3;break;default:_0xb16934[_0x1d9cfb('0xc7b')]=0x0,_0x47a08c['go'](_0x1d9cfb('0x25da'));}_0x5697f7['$watch'](_0x1d9cfb('0xa10'),function(_0x257d97,_0x2e8b6a){var _0x11e292=_0x1d9cfb;if(_0x257d97!==_0x2e8b6a)switch(_0x257d97){case 0x0:_0x47a08c['go']('app.fax.realtime.agents');break;case 0x1:_0x47a08c['go'](_0x11e292('0x765'));break;case 0x2:_0x47a08c['go'](_0x11e292('0xc93'));break;case 0x3:_0x47a08c['go'](_0x11e292('0x1529'));break;default:_0x47a08c['go'](_0x11e292('0x25da'));}});}const _0x3ca22d=_0x4928b0;_0x31c9de['$inject']=['$scope',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x155e'),_0xb635d2('0x9b'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0x20d'),'$state','userProfile','userProfileSection',_0xb635d2('0x2730')];function _0x31c9de(_0x301764,_0x193fd9,_0x4ca675,_0x1e7921,_0x42372a,_0xd0445f,_0x5ba230,_0x437ee1,_0x5a05f6,_0x1e7e8f,_0x9816a1,_0x2b8b55){var _0x12b99c=_0xb635d2,_0x5a47f6=this,_0x3c1cef=[_0x12b99c('0x2833'),_0x12b99c('0x1802'),_0x12b99c('0x980'),_0x12b99c('0x3b7'),_0x12b99c('0x11dc'),_0x12b99c('0x1b66'),_0x12b99c('0x1d72'),_0x12b99c('0x2833')];_0x5a47f6[_0x12b99c('0x15a5')]=_0x2b8b55[_0x12b99c('0x1ef8')](),_0x5a47f6[_0x12b99c('0x148b')]=_0x1e7921['count'],_0x5a47f6['trunks']=_0x1e7921?_0x1e7921['rows']:[],_0x5a47f6[_0x12b99c('0x9b')]=_0x42372a?_0x42372a['rows']?_0x42372a['rows']:[]:[],_0x5a47f6[_0x12b99c('0xa16')]={'fields':_0x12b99c('0x104'),'active':!![],'sort':_0x12b99c('0x7e8'),'limit':0xa,'page':0x1},_0x5a47f6[_0x12b99c('0xa2b')]=_0x437ee1['status'],_0x5a47f6[_0x12b99c('0xc63')]=_0x437ee1[_0x12b99c('0x1d72')],_0x5a47f6[_0x12b99c('0x154f')]=_0x1e7e8f,_0x5a47f6['userProfileSection']=_0x9816a1&&_0x9816a1[_0x12b99c('0x148b')]==0x1?_0x9816a1[_0x12b99c('0x16a7')][0x0]:null,_0x5a47f6[_0x12b99c('0xb3d')]=_0x2b8b55[_0x12b99c('0xd31')](_0x5a47f6[_0x12b99c('0xb59')]?_0x5a47f6['userProfileSection']['crudPermissions']:null),_0x5a47f6[_0x12b99c('0x425')]=_0x344766,_0x5a47f6['$onInit']=_0xada861,_0x5a47f6[_0x12b99c('0x80b')]=_0x1fd41c,_0x5a47f6[_0x12b99c('0x1c27')]=_0x4407ee,_0x5a47f6[_0x12b99c('0x15e4')]=_0x7f540a,_0x5a47f6[_0x12b99c('0x284a')]=_0xbb7994,_0x5ba230['on'](_0x12b99c('0x16a6'),_0x5a47f6['onSave']);function _0xada861(){var _0x57833a=_0x12b99c,_0x444a8b;for(var _0x45938e=0x0;_0x45938e<_0x5a47f6[_0x57833a('0x155e')]['length'];_0x45938e+=0x1){_0x444a8b=_0x32d445()[_0x57833a('0x8d3')](_0x5a47f6[_0x57833a('0x9b')],['id',_0x5a47f6[_0x57833a('0x155e')][_0x45938e]['id']]),_0x444a8b>=0x0&&_0x32d445()[_0x57833a('0x1d8')](_0x5a47f6[_0x57833a('0x155e')][_0x45938e],_0x32d445()[_0x57833a('0xed5')](_0x5a47f6[_0x57833a('0x9b')][_0x444a8b],_0x3c1cef));}}function _0x1fd41c(_0x1686c2){var _0x361041=_0x12b99c;_0x4ca675[_0x361041('0x26b2')](_0x4ca675[_0x361041('0xbdc')]()[_0x361041('0x26d6')](!![])[_0x361041('0x13e4')]('Legend')[_0x361041('0x221c')](_0x361041('0x1abb'))['ok']('Ok')[_0x361041('0x1345')](_0x1686c2));}function _0x143c07(_0x3cd132,_0xefdfa8,_0x5e0a72){var _0x43d2ba=_0x12b99c;_0xefdfa8>=0x0&&_0x32d445()[_0x43d2ba('0x1d8')](_0x3cd132[_0xefdfa8],_0x32d445()['pick'](_0x5e0a72,_0x3c1cef));}function _0xbb7994(_0x4deea2){var _0x4ccd2c=_0x12b99c,_0x51b0c0=_0x32d445()[_0x4ccd2c('0x8d3')](_0x5a47f6[_0x4ccd2c('0x155e')],['id',_0x4deea2['id']]),_0x82647=_0x32d445()['findIndex'](_0x5a47f6['rpcTrunks'],['id',_0x4deea2['id']]);_0x143c07(_0x5a47f6[_0x4ccd2c('0x155e')],_0x51b0c0,_0x4deea2),_0x143c07(_0x5a47f6[_0x4ccd2c('0x9b')],_0x82647,_0x4deea2);}var _0x1b4c2e=!![],_0x1aff84=0x1;_0x301764['$watch'](_0x12b99c('0x20cb'),function(_0x4727a8,_0x3043f4){var _0x8393fb=_0x12b99c;_0x1b4c2e?_0x193fd9(function(){_0x1b4c2e=![];}):(!_0x3043f4&&(_0x1aff84=_0x5a47f6[_0x8393fb('0xa16')]['page']),_0x4727a8!==_0x3043f4&&(_0x5a47f6[_0x8393fb('0xa16')]['page']=0x1),!_0x4727a8&&(_0x5a47f6[_0x8393fb('0xa16')][_0x8393fb('0xc08')]=_0x1aff84),_0x5a47f6[_0x8393fb('0x1c27')]());});function _0x344766(_0x16e131){var _0x31c71b=_0x12b99c;_0x5a47f6[_0x31c71b('0x148b')]=_0x16e131['count'],_0x5a47f6[_0x31c71b('0x155e')]=_0x16e131?_0x16e131[_0x31c71b('0x16a7')]?_0x16e131[_0x31c71b('0x16a7')]:[]:[],_0xada861();}function _0x4407ee(){var _0x35961b=_0x12b99c;_0x5a47f6['query'][_0x35961b('0xab0')]=(_0x5a47f6[_0x35961b('0xa16')][_0x35961b('0xc08')]-0x1)*_0x5a47f6[_0x35961b('0xa16')][_0x35961b('0x1b6d')],_0x2b8b55[_0x35961b('0x179e')]('admin')?_0x5a47f6[_0x35961b('0x9c8')]=_0xd0445f['trunk']['get'](_0x5a47f6[_0x35961b('0xa16')],_0x344766)[_0x35961b('0xe59')]:(_0x5a47f6['query']['id']=_0x5a47f6['userProfile']['id'],_0x5a47f6[_0x35961b('0xa16')][_0x35961b('0x1e59')]=_0x35961b('0xb30'),_0x5a47f6['promise']=_0xd0445f['userProfile'][_0x35961b('0x14e6')](_0x5a47f6['query'],_0x344766)[_0x35961b('0xe59')]);}_0x301764[_0x12b99c('0xb2b')](_0x12b99c('0x5cd'),function(){var _0x3020b6=_0x12b99c;_0x5ba230[_0x3020b6('0x2121')](_0x3020b6('0x16a6'));});function _0x7f540a(_0x7c538b,_0x57cf){var _0x13186d=_0x12b99c;_0x5a05f6['go'](_0x13186d('0x257b'),{'id':_0x57cf['id']});}}const _0x25e422=_0x31c9de;_0x2666bb[_0xb635d2('0xb0c')]=['$stateProvider'];function _0x2666bb(_0x3b0324){var _0x5ec1dd=_0xb635d2;_0x3b0324[_0x5ec1dd('0x1d72')](_0x5ec1dd('0x190a'),{'url':_0x5ec1dd('0x18ff'),'views':{'content@app':{'templateUrl':_0x203a71,'controller':_0x5ec1dd('0x1f2b')}},'resolve':{'userProfile':[_0x5ec1dd('0x292'),_0x5ec1dd('0x2730'),function _0x14bdac(_0x59e229,_0x184964){var _0x2a0ae6=_0x5ec1dd;return _0x184964[_0x2a0ae6('0x179e')]('admin')?null:_0x59e229['resolve']('userProfile@get',{'fields':_0x2a0ae6('0x1b71'),'id':_0x184964[_0x2a0ae6('0x1ef8')]()[_0x2a0ae6('0x1d04')]});}],'userProfileSection':[_0x5ec1dd('0x292'),'Auth',function _0x497d13(_0xf6a986,_0x68b5e5){var _0xccfe4a=_0x5ec1dd;return _0x68b5e5[_0xccfe4a('0x179e')](_0xccfe4a('0xd14'))?null:_0xf6a986[_0xccfe4a('0xcd6')](_0xccfe4a('0x264e'),{'fields':_0xccfe4a('0x12d6'),'userProfileId':_0x68b5e5[_0xccfe4a('0x1ef8')]()[_0xccfe4a('0x1d04')],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})[_0x5ec1dd('0x1d72')]('app.fax.realtime.agents',{'url':_0x5ec1dd('0x11db'),'controller':_0x5ec1dd('0x1205'),'templateUrl':_0x5e8ae7,'resolve':{'pauses':[_0x5ec1dd('0x292'),function _0x4b3cac(_0x3c82eb){return _0x3c82eb['resolve']('pause@get',{'nolimit':!![]});}],'agents':[_0x5ec1dd('0x292'),_0x5ec1dd('0x2730'),function _0x4e57ca(_0x1f1747,_0x5cd6fa){var _0x4fbdee=_0x5ec1dd;return _0x5cd6fa['hasRole']('admin')?_0x1f1747['resolve'](_0x4fbdee('0x24a9'),{'fields':_0x4fbdee('0x11bb'),'role':_0x4fbdee('0x108'),'sort':'fullname','nolimit':!![]}):_0x1f1747[_0x4fbdee('0xcd6')](_0x4fbdee('0x197d'),{'id':_0x5cd6fa[_0x4fbdee('0x1ef8')]()[_0x4fbdee('0x1d04')],'section':_0x4fbdee('0xd61'),'fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':_0x4fbdee('0x108'),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x5ec1dd('0x292'),_0x5ec1dd('0x2730'),function _0x30b4eb(_0x5eaf7a,_0x5eaabc){var _0x476417=_0x5ec1dd;return _0x5eaabc['hasRole']('admin')?null:_0x5eaf7a[_0x476417('0xcd6')]('userProfile@get',{'fields':_0x476417('0x1b71'),'id':_0x5eaabc[_0x476417('0x1ef8')]()[_0x476417('0x1d04')]});}],'userProfileSection':[_0x5ec1dd('0x292'),'Auth',function _0x57d333(_0x43f8af,_0x6e14b1){var _0x8b097b=_0x5ec1dd;return _0x6e14b1[_0x8b097b('0x179e')](_0x8b097b('0xd14'))?null:_0x43f8af[_0x8b097b('0xcd6')](_0x8b097b('0x264e'),{'fields':_0x8b097b('0x12d6'),'userProfileId':_0x6e14b1[_0x8b097b('0x1ef8')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x5ec1dd('0x292'),function _0x36a564(_0x4cf237){var _0x43304f=_0x5ec1dd;return _0x4cf237[_0x43304f('0xcd6')](_0x43304f('0x1fdb'));}]},'authenticate':!![],'permissionId':0x38e})[_0x5ec1dd('0x1d72')](_0x5ec1dd('0x765'),{'url':'/trunks','controller':_0x5ec1dd('0x18e5'),'templateUrl':_0xcb2d8a,'resolve':{'trunks':['apiResolver',_0x5ec1dd('0x2730'),function _0x52ec98(_0x319a8b,_0x236cfa){var _0x48026e=_0x5ec1dd;return _0x236cfa['hasRole'](_0x48026e('0xd14'))?_0x319a8b[_0x48026e('0xcd6')](_0x48026e('0x27f7'),{'fields':'id,name','active':!![],'sort':_0x48026e('0x7e8'),'limit':0xa,'offset':0x0}):_0x319a8b[_0x48026e('0xcd6')](_0x48026e('0x197d'),{'id':_0x236cfa[_0x48026e('0x1ef8')]()[_0x48026e('0x1d04')],'section':_0x48026e('0xb30'),'fields':_0x48026e('0x104'),'active':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x5ec1dd('0x292'),_0x5ec1dd('0x2730'),function _0x67d394(_0x38e18b,_0x46feea){var _0x45c98e=_0x5ec1dd;return _0x46feea['hasRole'](_0x45c98e('0xd14'))?null:_0x38e18b['resolve'](_0x45c98e('0x455'),{'fields':'id,name,crudPermissions','id':_0x46feea['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x5ec1dd('0x292'),'Auth',function _0x2a0370(_0x1a440d,_0x5c0294){var _0x401fbf=_0x5ec1dd;return _0x5c0294[_0x401fbf('0x179e')](_0x401fbf('0xd14'))?null:_0x1a440d[_0x401fbf('0xcd6')](_0x401fbf('0x264e'),{'fields':_0x401fbf('0x12d6'),'userProfileId':_0x5c0294[_0x401fbf('0x1ef8')]()['userProfileId'],'sectionId':0x3f3});}],'rpcTrunks':[_0x5ec1dd('0x292'),function _0xdc668d(_0x3ca1a9){var _0x2b1341=_0x5ec1dd;return _0x3ca1a9[_0x2b1341('0xcd6')]('rpc@getTrunks');}]},'authenticate':!![],'permissionId':0x38e})['state'](_0x5ec1dd('0xc93'),{'url':_0x5ec1dd('0x17e4'),'controller':_0x5ec1dd('0x5ac'),'templateUrl':_0xfa6253,'resolve':{'queues':[_0x5ec1dd('0x292'),_0x5ec1dd('0x2730'),function _0x4723bb(_0x3d8649,_0x355244){var _0x2958fa=_0x5ec1dd;return _0x355244['hasRole'](_0x2958fa('0xd14'))?_0x3d8649[_0x2958fa('0xcd6')]('faxQueue@get',{'type':_0x2958fa('0x1a7a'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x3d8649['resolve']('userProfile@getResources',{'id':_0x355244[_0x2958fa('0x1ef8')]()[_0x2958fa('0x1d04')],'section':'FaxQueues','channel':_0x2958fa('0x625'),'type':_0x2958fa('0x1a7a'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':[_0x5ec1dd('0x292'),_0x5ec1dd('0x2730'),function _0x3c9996(_0x2bd89d,_0x3c9264){var _0x11af02=_0x5ec1dd;return _0x3c9264[_0x11af02('0x179e')](_0x11af02('0xd14'))?null:_0x2bd89d[_0x11af02('0xcd6')]('userProfile@get',{'fields':_0x11af02('0x1b71'),'id':_0x3c9264[_0x11af02('0x1ef8')]()[_0x11af02('0x1d04')]});}],'userProfileSection':[_0x5ec1dd('0x292'),'Auth',function _0x443ac7(_0x466a11,_0x183766){var _0x755e68=_0x5ec1dd;return _0x183766[_0x755e68('0x179e')](_0x755e68('0xd14'))?null:_0x466a11[_0x755e68('0xcd6')](_0x755e68('0x264e'),{'fields':_0x755e68('0x12d6'),'userProfileId':_0x183766[_0x755e68('0x1ef8')]()[_0x755e68('0x1d04')],'sectionId':0x385});}],'rpcQueues':[_0x5ec1dd('0x292'),function _0x4fbfc7(_0x2e581b){var _0x10c90e=_0x5ec1dd;return _0x2e581b[_0x10c90e('0xcd6')](_0x10c90e('0x586'));}]},'authenticate':!![],'permissionId':0x38e})[_0x5ec1dd('0x1d72')](_0x5ec1dd('0x1529'),{'url':_0x5ec1dd('0x185b'),'controller':_0x5ec1dd('0x8ba'),'templateUrl':_0x17f616,'resolve':{'faxAccounts':['apiResolver',_0x5ec1dd('0x2730'),function _0x4a9357(_0x314a3a,_0x21d61c){var _0x3421f6=_0x5ec1dd;return _0x21d61c[_0x3421f6('0x179e')](_0x3421f6('0xd14'))?_0x314a3a['resolve'](_0x3421f6('0x27c'),{'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x314a3a[_0x3421f6('0xcd6')]('userProfile@getResources',{'id':_0x21d61c[_0x3421f6('0x1ef8')]()[_0x3421f6('0x1d04')],'section':_0x3421f6('0x19b0'),'sort':_0x3421f6('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5ec1dd('0x292'),_0x5ec1dd('0x2730'),function _0x34f761(_0x3e8364,_0x14697c){var _0x416054=_0x5ec1dd;return _0x14697c[_0x416054('0x179e')](_0x416054('0xd14'))?null:_0x3e8364[_0x416054('0xcd6')](_0x416054('0x455'),{'fields':_0x416054('0x1b71'),'id':_0x14697c[_0x416054('0x1ef8')]()[_0x416054('0x1d04')]});}],'userProfileSection':[_0x5ec1dd('0x292'),_0x5ec1dd('0x2730'),function _0x180e3e(_0x16c6f8,_0x330d93){var _0x37d8f3=_0x5ec1dd;return _0x330d93[_0x37d8f3('0x179e')]('admin')?null:_0x16c6f8[_0x37d8f3('0xcd6')](_0x37d8f3('0x264e'),{'fields':_0x37d8f3('0x12d6'),'userProfileId':_0x330d93[_0x37d8f3('0x1ef8')]()[_0x37d8f3('0x1d04')],'sectionId':0x386});}],'rpcFaxAccounts':['apiResolver',function _0x180515(_0x4bce41){var _0x1dc418=_0x5ec1dd;return _0x4bce41[_0x1dc418('0xcd6')](_0x1dc418('0x1ceb'));}]},'authenticate':!![],'permissionId':0x38e});}angular[_0xb635d2('0x153f')](_0xb635d2('0x190a'),[])[_0xb635d2('0x1990')](_0x2666bb)[_0xb635d2('0x1a79')](_0xb635d2('0x2419'),_0x11684b)[_0xb635d2('0x1a79')](_0xb635d2('0x1ba8'),_0x25820d)['controller']('QueuesFaxRealtimeController',_0x10fa91)['factory'](_0xb635d2('0x20d'),_0x1fb4a5)['controller'](_0xb635d2('0x46e'),_0x3ca22d)[_0xb635d2('0x1a79')]('TrunksFaxRealtimeController',_0x25e422),_0x470942[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1a77'),'faxAccount',_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x470942(_0x4c151f,_0x1e192c,_0x173e5f,_0x557b0d,_0x557b79,_0x1de3cd,_0xc75a3b,_0x13a5e6,_0x3107b8,_0x53766c,_0x39c0af,_0x3d01c8,_0x493631,_0x2c6920){var _0x422f36=_0xb635d2,_0x3897fe=this;_0x3897fe['currentUser']=_0x39c0af[_0x422f36('0x1ef8')](),_0x3897fe[_0x422f36('0xcd2')]=[],_0x3897fe[_0x422f36('0x22f1')]=_0x493631,_0x3897fe[_0x422f36('0x5c1')]=_0x3d01c8,_0x3897fe['crudPermissions']=_0x2c6920,_0x3897fe['hasModulePermissions']={},_0x3897fe['passwordPattern']=_0x3897fe[_0x422f36('0x22f1')]&&_0x3897fe[_0x422f36('0x22f1')][_0x422f36('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3897fe['title']='FAX.EDIT_FAXACCOUNT',_0x3897fe[_0x422f36('0x688')]=angular[_0x422f36('0x89')](_0x3107b8),_0x3897fe[_0x422f36('0x1a77')]=_0x13a5e6,_0x3897fe['newFaxAccount']=![];!_0x3897fe['faxAccount']&&(_0x3897fe[_0x422f36('0x688')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x3897fe[_0x422f36('0x13e4')]=_0x422f36('0x143a'),_0x3897fe[_0x422f36('0x24ef')]=!![]);_0x1e192c[_0x422f36('0x2ef')]['id']&&(_0x3897fe['faxAccount']['FaxAccountId']=_0x1e192c[_0x422f36('0x2ef')]['id']);_0x3897fe[_0x422f36('0x161f')]=_0x9d7304,_0x3897fe[_0x422f36('0x1d42')]=_0x2776ae,_0x3897fe['deleteFaxAccount']=_0x13c5b,_0x3897fe[_0x422f36('0x2635')]=_0x209ce0,_0x3897fe['closeDialog']=_0x3e41ab,_0x39c0af[_0x422f36('0x179e')](_0x422f36('0xd14'))?_0x53766c[_0x422f36('0x1397')][_0x422f36('0x22d5')]({'fields':_0x422f36('0x104'),'sort':_0x422f36('0x2623')})[_0x422f36('0xe59')][_0x422f36('0xe19')](function(_0x299ccb){var _0x52851a=_0x422f36;_0x3897fe[_0x52851a('0x155e')]=_0x299ccb[_0x52851a('0x16a7')]||[];})[_0x422f36('0x223b')](function(_0x1d7acc){var _0x40ccf4=_0x422f36;_0xc75a3b[_0x40ccf4('0x8c8')]({'title':_0x1d7acc['status']?_0x40ccf4('0x27f2')+_0x1d7acc[_0x40ccf4('0x2833')]+_0x40ccf4('0x1b7c')+_0x1d7acc[_0x40ccf4('0x1fd7')]:_0x40ccf4('0x1e6d'),'msg':_0x1d7acc[_0x40ccf4('0x11d0')]?JSON['stringify'](_0x1d7acc[_0x40ccf4('0x11d0')]):_0x1d7acc[_0x40ccf4('0x94f')]()});}):_0x53766c['trunk']['get']({'fields':_0x422f36('0x104'),'sort':_0x422f36('0x2623')})['$promise']['then'](function(_0x10ca76){var _0x5a0d61=_0x422f36;_0x3897fe[_0x5a0d61('0x155e')]=_0x10ca76[_0x5a0d61('0x16a7')]||[];})[_0x422f36('0xe19')](function(){var _0x129b05=_0x422f36;return _0x53766c['userProfileSection'][_0x129b05('0x22d5')]({'userProfileId':_0x3897fe[_0x129b05('0x15a5')][_0x129b05('0x1d04')],'sectionId':0x3f3})[_0x129b05('0xe59')];})[_0x422f36('0xe19')](function(_0x1a2664){var _0x509dbb=_0x422f36,_0x17a203=_0x1a2664&&_0x1a2664[_0x509dbb('0x16a7')]?_0x1a2664[_0x509dbb('0x16a7')][0x0]:null;if(!_0x17a203){var _0x54b70e=[],_0x26134f=null;_0x3897fe[_0x509dbb('0x688')]&&(_0x26134f=_0x32d445()['find'](_0x3897fe[_0x509dbb('0x155e')],{'id':Number(_0x3897fe[_0x509dbb('0x688')][_0x509dbb('0x186d')])}));for(var _0x3e8080=0x0;_0x3e8080<_0x3897fe[_0x509dbb('0x155e')][_0x509dbb('0x25ae')];_0x3e8080++){_0x26134f&&_0x3897fe[_0x509dbb('0x155e')][_0x3e8080]['id']===_0x26134f['id']&&(_0x3897fe['trunks'][_0x3e8080][_0x509dbb('0x1e9d')]=![],_0x54b70e[_0x509dbb('0xb76')](_0x3897fe['trunks'][_0x3e8080]));}_0x3897fe['trunks']=_0x54b70e;}else{if(!_0x17a203['autoAssociation'])return _0x53766c[_0x509dbb('0xd49')][_0x509dbb('0x22d5')]({'sectionId':_0x17a203['id']})[_0x509dbb('0xe59')][_0x509dbb('0xe19')](function(_0x181ae4){var _0x2454f7=_0x509dbb,_0x51a95c=_0x32d445()['map'](_0x181ae4['rows'],function(_0x4cc05a){var _0xc5854c=a0_0x5325;return _0x32d445()[_0xc5854c('0xf15')](_0x3897fe[_0xc5854c('0x155e')],{'id':_0x4cc05a[_0xc5854c('0x1104')]});}),_0x4ea3b1=null;_0x3897fe['faxAccount']&&(_0x4ea3b1=_0x32d445()['find'](_0x3897fe['trunks'],{'id':Number(_0x3897fe['faxAccount']['TrunkId'])}));if(_0x4ea3b1&&!_0x32d445()[_0x2454f7('0x201a')](_0x51a95c,['id',_0x4ea3b1['id']])){var _0x568698=_0x32d445()['find'](_0x3897fe[_0x2454f7('0x155e')],{'id':_0x4ea3b1['id']});_0x568698[_0x2454f7('0x1e9d')]=![],_0x51a95c[_0x2454f7('0xb76')](_0x568698);}_0x3897fe[_0x2454f7('0x155e')]=_0x51a95c;});}})[_0x422f36('0x223b')](function(_0xc665fd){var _0x77ee5d=_0x422f36;_0xc75a3b['error']({'title':_0xc665fd[_0x77ee5d('0x2833')]?'API:'+_0xc665fd[_0x77ee5d('0x2833')]+_0x77ee5d('0x1b7c')+_0xc665fd[_0x77ee5d('0x1fd7')]:_0x77ee5d('0x14b5'),'msg':_0xc665fd[_0x77ee5d('0x11d0')]?JSON[_0x77ee5d('0x3ad')](_0xc665fd[_0x77ee5d('0x11d0')]):_0xc665fd[_0x77ee5d('0x94f')]()});}),_0x39c0af['hasRole'](_0x422f36('0xd14'))?_0x53766c[_0x422f36('0x1bbd')][_0x422f36('0x22d5')]({'fields':_0x422f36('0x104'),'sort':_0x422f36('0x2623')})[_0x422f36('0xe59')][_0x422f36('0xe19')](function(_0x3b87e3){var _0x48b864=_0x422f36;_0x3897fe[_0x48b864('0x9f8')]=_0x3b87e3['rows']||[];})[_0x422f36('0x223b')](function(_0x2b7a7f){var _0x506897=_0x422f36;_0xc75a3b[_0x506897('0x8c8')]({'title':_0x2b7a7f[_0x506897('0x2833')]?_0x506897('0x27f2')+_0x2b7a7f[_0x506897('0x2833')]+'\x20-\x20'+_0x2b7a7f[_0x506897('0x1fd7')]:'SYSTEM:GET_LISTS','msg':_0x2b7a7f['data']?JSON['stringify'](_0x2b7a7f[_0x506897('0x11d0')]):_0x2b7a7f['toString']()});}):_0x53766c[_0x422f36('0x1bbd')][_0x422f36('0x22d5')]({'fields':_0x422f36('0x104'),'sort':_0x422f36('0x2623')})[_0x422f36('0xe59')][_0x422f36('0xe19')](function(_0xa58494){var _0x9986a2=_0x422f36;_0x3897fe[_0x9986a2('0x9f8')]=_0xa58494[_0x9986a2('0x16a7')]||[];})['then'](function(){var _0x51b0b0=_0x422f36;return _0x53766c['userProfileSection'][_0x51b0b0('0x22d5')]({'userProfileId':_0x3897fe['currentUser'][_0x51b0b0('0x1d04')],'sectionId':0x12d})['$promise'];})[_0x422f36('0xe19')](function(_0x1d705a){var _0x31e991=_0x422f36,_0x1f976d=_0x1d705a&&_0x1d705a[_0x31e991('0x16a7')]?_0x1d705a[_0x31e991('0x16a7')][0x0]:null;if(!_0x1f976d){var _0x23f434=[],_0x2004df=null;_0x3897fe['faxAccount']&&(_0x2004df=_0x32d445()['find'](_0x3897fe[_0x31e991('0x9f8')],{'id':Number(_0x3897fe[_0x31e991('0x688')][_0x31e991('0x2463')])}));for(var _0x2c1937=0x0;_0x2c1937<_0x3897fe[_0x31e991('0x9f8')][_0x31e991('0x25ae')];_0x2c1937++){_0x2004df&&_0x3897fe[_0x31e991('0x9f8')][_0x2c1937]['id']===_0x2004df['id']&&(_0x3897fe[_0x31e991('0x9f8')][_0x2c1937]['canSelect']=![],_0x23f434[_0x31e991('0xb76')](_0x3897fe[_0x31e991('0x9f8')][_0x2c1937]));}_0x3897fe[_0x31e991('0x9f8')]=_0x23f434;}else{if(!_0x1f976d[_0x31e991('0x11fd')])return _0x53766c[_0x31e991('0xd49')][_0x31e991('0x22d5')]({'sectionId':_0x1f976d['id']})[_0x31e991('0xe59')][_0x31e991('0xe19')](function(_0x4cbdc6){var _0x4c5593=_0x31e991,_0x5ddc3c=_0x32d445()[_0x4c5593('0x65a')](_0x4cbdc6[_0x4c5593('0x16a7')],function(_0x118e16){var _0x19f36f=_0x4c5593;return _0x32d445()[_0x19f36f('0xf15')](_0x3897fe[_0x19f36f('0x9f8')],{'id':_0x118e16['resourceId']});}),_0x58addb=null;_0x3897fe['faxAccount']&&(_0x58addb=_0x32d445()[_0x4c5593('0xf15')](_0x3897fe[_0x4c5593('0x9f8')],{'id':Number(_0x3897fe[_0x4c5593('0x688')][_0x4c5593('0x2463')])}));if(_0x58addb&&!_0x32d445()['some'](_0x5ddc3c,['id',_0x58addb['id']])){var _0x1aa93a=_0x32d445()['find'](_0x3897fe[_0x4c5593('0x9f8')],{'id':_0x58addb['id']});_0x1aa93a[_0x4c5593('0x1e9d')]=![],_0x5ddc3c[_0x4c5593('0xb76')](_0x1aa93a);}_0x3897fe[_0x4c5593('0x9f8')]=_0x5ddc3c;});}})['catch'](function(_0x3d689b){var _0x17b880=_0x422f36;_0xc75a3b[_0x17b880('0x8c8')]({'title':_0x3d689b[_0x17b880('0x2833')]?_0x17b880('0x27f2')+_0x3d689b[_0x17b880('0x2833')]+_0x17b880('0x1b7c')+_0x3d689b['statusText']:'SYSTEM:GETlists','msg':_0x3d689b['data']?JSON[_0x17b880('0x3ad')](_0x3d689b['data']):_0x3d689b[_0x17b880('0x94f')]()});});function _0x9d7304(){var _0xd38db9=_0x422f36;_0x3897fe[_0xd38db9('0xcd2')]=[],_0x53766c[_0xd38db9('0x688')][_0xd38db9('0x105d')](_0x3897fe['faxAccount'])[_0xd38db9('0xe59')][_0xd38db9('0xe19')](function(_0x11ec8f){var _0x4b7ade=_0xd38db9;_0x3897fe['faxAccounts'][_0x4b7ade('0x14c9')](_0x11ec8f[_0x4b7ade('0x250e')]()),_0xc75a3b[_0x4b7ade('0x425')]({'title':_0x4b7ade('0x5ff'),'msg':_0x3897fe['faxAccount'][_0x4b7ade('0x2623')]?_0x3897fe[_0x4b7ade('0x688')]['name']+_0x4b7ade('0x105f'):''}),_0x3e41ab(_0x11ec8f);})[_0xd38db9('0x223b')](function(_0x5c8fb1){var _0x5c7dca=_0xd38db9;if(_0x5c8fb1[_0x5c7dca('0x11d0')]&&_0x5c8fb1[_0x5c7dca('0x11d0')][_0x5c7dca('0xcd2')]&&_0x5c8fb1['data'][_0x5c7dca('0xcd2')][_0x5c7dca('0x25ae')]){_0x3897fe[_0x5c7dca('0xcd2')]=_0x5c8fb1['data']['errors']||[{'message':_0x5c8fb1[_0x5c7dca('0x94f')](),'type':_0x5c7dca('0x2145')}];for(var _0x253cfe=0x0;_0x253cfe<_0x5c8fb1['data']['errors'][_0x5c7dca('0x25ae')];_0x253cfe+=0x1){_0xc75a3b[_0x5c7dca('0x8c8')]({'title':_0x5c8fb1[_0x5c7dca('0x11d0')][_0x5c7dca('0xcd2')][_0x253cfe]['type'],'msg':_0x5c8fb1['data'][_0x5c7dca('0xcd2')][_0x253cfe][_0x5c7dca('0x27e8')]});}}else _0xc75a3b[_0x5c7dca('0x8c8')]({'title':_0x5c8fb1[_0x5c7dca('0x2833')]?_0x5c7dca('0x27f2')+_0x5c8fb1[_0x5c7dca('0x2833')]+'\x20-\x20'+_0x5c8fb1[_0x5c7dca('0x1fd7')]:_0x5c7dca('0x2145'),'msg':_0x5c8fb1[_0x5c7dca('0x11d0')]?JSON[_0x5c7dca('0x3ad')](_0x5c8fb1['data'][_0x5c7dca('0x27e8')]):_0x5c8fb1[_0x5c7dca('0x94f')]()});});}function _0x2776ae(){var _0x156671=_0x422f36;_0x3897fe['errors']=[],_0x53766c[_0x156671('0x688')]['updateAccountApplications'](_0x3897fe['faxAccount'])[_0x156671('0xe59')][_0x156671('0xe19')](function(_0x256bc8){var _0x4d602d=_0x156671,_0x3a00c0=_0x32d445()[_0x4d602d('0xf15')](_0x3897fe['faxAccounts'],{'id':_0x256bc8['id']});_0x3a00c0&&_0x32d445()[_0x4d602d('0x1d8')](_0x3a00c0,_0x32d445()[_0x4d602d('0xed5')](_0x256bc8[_0x4d602d('0x250e')](),_0x32d445()[_0x4d602d('0x1234')](_0x3a00c0))),_0xc75a3b[_0x4d602d('0x425')]({'title':'FaxAccount\x20properly\x20saved!','msg':_0x3897fe[_0x4d602d('0x688')]['name']?_0x3897fe[_0x4d602d('0x688')][_0x4d602d('0x2623')]+_0x4d602d('0x1c19'):''}),_0x3e41ab(_0x256bc8);})[_0x156671('0x223b')](function(_0x3c5b70){var _0x3aeeb8=_0x156671;if(_0x3c5b70[_0x3aeeb8('0x11d0')]&&_0x3c5b70[_0x3aeeb8('0x11d0')]['errors']&&_0x3c5b70[_0x3aeeb8('0x11d0')][_0x3aeeb8('0xcd2')][_0x3aeeb8('0x25ae')]){_0x3897fe['errors']=_0x3c5b70[_0x3aeeb8('0x11d0')][_0x3aeeb8('0xcd2')]||[{'message':_0x3c5b70['toString'](),'type':_0x3aeeb8('0x1250')}];for(var _0x56f758=0x0;_0x56f758<_0x3c5b70[_0x3aeeb8('0x11d0')][_0x3aeeb8('0xcd2')][_0x3aeeb8('0x25ae')];_0x56f758++){_0xc75a3b[_0x3aeeb8('0x8c8')]({'title':_0x3c5b70[_0x3aeeb8('0x11d0')][_0x3aeeb8('0xcd2')][_0x56f758][_0x3aeeb8('0x62e')],'msg':_0x3c5b70[_0x3aeeb8('0x11d0')]['errors'][_0x56f758][_0x3aeeb8('0x27e8')]});}}else _0xc75a3b[_0x3aeeb8('0x8c8')]({'title':_0x3c5b70[_0x3aeeb8('0x2833')]?'API:'+_0x3c5b70[_0x3aeeb8('0x2833')]+_0x3aeeb8('0x1b7c')+_0x3c5b70[_0x3aeeb8('0x1fd7')]:_0x3aeeb8('0x1250'),'msg':_0x3c5b70[_0x3aeeb8('0x11d0')]?JSON[_0x3aeeb8('0x3ad')](_0x3c5b70['data'][_0x3aeeb8('0x27e8')]):_0x3c5b70[_0x3aeeb8('0x94f')]()});});}function _0x13c5b(_0x503dcc){var _0x3763be=_0x422f36;_0x3897fe[_0x3763be('0xcd2')]=[];var _0x77bbb3=_0x557b0d[_0x3763be('0xa5')]()['title'](_0x3763be('0x24d0'))[_0x3763be('0xd0')]('The\x20faxAccount\x20will\x20be\x20deleted.')[_0x3763be('0x4d1')]('Delete\x20FaxAccount')['ok'](_0x3763be('0x2198'))[_0x3763be('0x2c1')]('Cancel')[_0x3763be('0x1345')](_0x503dcc);_0x557b0d[_0x3763be('0x26b2')](_0x77bbb3)[_0x3763be('0xe19')](function(){var _0x484bc6=_0x3763be;_0x53766c[_0x484bc6('0x688')][_0x484bc6('0x229e')]({'id':_0x3897fe[_0x484bc6('0x688')]['id']})[_0x484bc6('0xe59')][_0x484bc6('0xe19')](function(){var _0x250691=_0x484bc6;_0x32d445()[_0x250691('0xa8b')](_0x3897fe[_0x250691('0x1a77')],{'id':_0x3897fe[_0x250691('0x688')]['id']}),_0xc75a3b[_0x250691('0x425')]({'title':_0x250691('0x154d'),'msg':(_0x3897fe[_0x250691('0x688')][_0x250691('0x2623')]||_0x250691('0x688'))+_0x250691('0x2182')}),_0x3e41ab(_0x3897fe[_0x250691('0x688')]);})[_0x484bc6('0x223b')](function(_0x1c4f2a){var _0x38cb66=_0x484bc6;if(_0x1c4f2a[_0x38cb66('0x11d0')]&&_0x1c4f2a[_0x38cb66('0x11d0')]['errors']&&_0x1c4f2a[_0x38cb66('0x11d0')][_0x38cb66('0xcd2')]['length']){_0x3897fe['errors']=_0x1c4f2a[_0x38cb66('0x11d0')]['errors']||[{'message':_0x1c4f2a[_0x38cb66('0x94f')](),'type':'api.faxAccount.delete'}];for(var _0x147aac=0x0;_0x147aac<_0x1c4f2a[_0x38cb66('0x11d0')][_0x38cb66('0xcd2')]['length'];_0x147aac++){_0xc75a3b[_0x38cb66('0x8c8')]({'title':_0x1c4f2a[_0x38cb66('0x11d0')]['errors'][_0x147aac][_0x38cb66('0x62e')],'msg':_0x1c4f2a[_0x38cb66('0x11d0')][_0x38cb66('0xcd2')][_0x147aac][_0x38cb66('0x27e8')]});}}else _0xc75a3b['error']({'title':_0x1c4f2a[_0x38cb66('0x2833')]?_0x38cb66('0x27f2')+_0x1c4f2a[_0x38cb66('0x2833')]+'\x20-\x20'+_0x1c4f2a[_0x38cb66('0x1fd7')]:_0x38cb66('0x1e3f'),'msg':_0x1c4f2a['data']?JSON[_0x38cb66('0x3ad')](_0x1c4f2a[_0x38cb66('0x11d0')][_0x38cb66('0x27e8')]):_0x1c4f2a['message']||_0x1c4f2a[_0x38cb66('0x94f')]()});});},function(){});}function _0x209ce0(_0x3d48c7){return _0x3d48c7===null?undefined:new Date(_0x3d48c7);}function _0x3e41ab(_0x2b7271){var _0x4e63b8=_0x422f36;_0x557b0d[_0x4e63b8('0x11ed')](_0x2b7271);}}const _0x6c4191=_0x470942,_0x357695=_0x59426a['p']+_0xb635d2('0x2009'),_0x4a83b5=_0x59426a['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html',_0x3f74ba=_0x59426a['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html',_0x2a6715=_0x59426a['p']+_0xb635d2('0x18ec'),_0x46d7=_0x59426a['p']+_0xb635d2('0x26f'),_0x38a0bb=_0x59426a['p']+_0xb635d2('0xe29'),_0x1b43ac=_0x59426a['p']+_0xb635d2('0x235f'),_0x41cc6f=_0x59426a['p']+_0xb635d2('0x1c02'),_0x12c576=_0x59426a['p']+_0xb635d2('0x117');_0x56c917['$inject']=[_0xb635d2('0xffc'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0xf65'),_0xb635d2('0x2730')];var _0x330c70={'agent':_0x357695,'close':_0x4a83b5,'gotoif':_0x3f74ba,'gotop':_0x2a6715,'interval':_0x46d7,'noop':_0x38a0bb,'queue':_0x1b43ac,'system':_0x41cc6f,'tag':_0x12c576};function _0x56c917(_0x41022a,_0x362ae9,_0x392ce5,_0x56ee41,_0x2b0921){var _0xd5576b=_0xb635d2,_0x30805e=this;_0x30805e[_0xd5576b('0x15a5')]=_0x2b0921[_0xd5576b('0x1ef8')](),_0x30805e[_0xd5576b('0x688')]={},_0x30805e['faxAccountApps']={'count':0x0,'rows':[]},_0x30805e['selectedFaxAccountApps']=[],_0x30805e[_0xd5576b('0xb3d')],_0x30805e[_0xd5576b('0xa16')]={'sort':'priority'},_0x30805e['apps']=_0x32d445()['reject'](_0x32d445()[_0xd5576b('0x14c')]([{'app':'Interval','appType':_0xd5576b('0x134c'),'types':['always',_0xd5576b('0x261d'),_0xd5576b('0x15a8')],'fields':[],'isApp':![]},{'app':_0xd5576b('0xc09'),'appType':'noop','type':_0xd5576b('0xc09'),'icon':_0xd5576b('0x27be'),'interval':_0xd5576b('0x2292'),'required':!![],'isApp':!![],'fields':[{'title':_0xd5576b('0x653'),'name':_0xd5576b('0x2'),'type':'text','param':0x0}]},{'app':_0xd5576b('0x1917'),'appType':_0xd5576b('0x1917'),'type':_0xd5576b('0x1917'),'icon':_0xd5576b('0x27be'),'interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':_0xd5576b('0x1a9e'),'field':{'name':'variable','key':_0xd5576b('0x2623')},'route':'variable','filters':{'fields':'id,name','sort':_0xd5576b('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':'command','type':_0xd5576b('0x1bc6'),'required':!![],'param':0x0},{'title':'Variable','name':_0xd5576b('0x19a5'),'type':_0xd5576b('0x14b8'),'values':'variables','value':_0xd5576b('0x2328'),'option':_0xd5576b('0x2328'),'defaultValues':[{'value':'\x27\x27','option':_0xd5576b('0x1b16')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0xd5576b('0x16fe'),'appType':'gotop','type':_0xd5576b('0x1fa1'),'icon':_0xd5576b('0x27be'),'interval':_0xd5576b('0x2292'),'isApp':!![],'fields':[{'title':_0xd5576b('0x23fb'),'name':_0xd5576b('0xb33'),'type':_0xd5576b('0x1c60'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0xd5576b('0x22c3'),'appType':_0xd5576b('0x22c3'),'type':_0xd5576b('0x22c3'),'icon':_0xd5576b('0x27be'),'interval':_0xd5576b('0x2292'),'isApp':!![],'fields':[{'title':_0xd5576b('0x48c'),'name':_0xd5576b('0x1c03'),'type':_0xd5576b('0x1bc6'),'required':!![],'param':0x0},{'title':_0xd5576b('0x50'),'name':'truepriority','type':_0xd5576b('0x1c60'),'min':0x1,'required':!![],'param':0x1},{'title':_0xd5576b('0x347'),'name':_0xd5576b('0x347'),'type':_0xd5576b('0x1c60'),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0xd5576b('0x26a8'),'foreignKey':'FaxQueueId','type':_0xd5576b('0x26a8'),'icon':_0xd5576b('0x27be'),'interval':_0xd5576b('0x2292'),'isApp':!![],'extraApi':[{'name':_0xd5576b('0x671'),'field':{'name':'queue','key':_0xd5576b('0x2623')},'route':_0xd5576b('0x3f4'),'filters':{'fields':_0xd5576b('0x1555'),'sort':_0xd5576b('0x2623'),'nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':'Queue','name':_0xd5576b('0x26a8'),'type':'apiselect','values':_0xd5576b('0x671'),'value':'queue.name','option':_0xd5576b('0x15df'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0xd5576b('0x784'),'name':_0xd5576b('0x2058'),'type':_0xd5576b('0x1c60'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0xd5576b('0x108'),'appType':_0xd5576b('0x108'),'type':'agent','foreignKey':_0xd5576b('0x43d'),'icon':_0xd5576b('0x27be'),'interval':_0xd5576b('0x2292'),'isApp':!![],'extraApi':[{'name':_0xd5576b('0x29b'),'field':{'name':'agent','key':'name'},'route':_0xd5576b('0x10c6'),'filters':{'fields':_0xd5576b('0x104'),'sort':'name','role':_0xd5576b('0x108'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0xd5576b('0x108'),'type':'apiselect','values':'agents','value':'agent.name','option':_0xd5576b('0xec8'),'required':!![],'param':0x0},{'title':_0xd5576b('0x784'),'name':_0xd5576b('0x2058'),'type':_0xd5576b('0x1c60'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0xd5576b('0x1886'),'appType':'close','type':_0xd5576b('0x1886'),'icon':_0xd5576b('0x27be'),'interval':_0xd5576b('0x2292'),'isApp':!![],'fields':[{'title':_0xd5576b('0x1892'),'name':_0xd5576b('0x2506'),'type':_0xd5576b('0x1bc6'),'required':!![],'param':0x0}]},{'app':_0xd5576b('0x2037'),'appType':_0xd5576b('0x2037'),'type':'tag','foreignKey':_0xd5576b('0x30a'),'icon':_0xd5576b('0x27be'),'interval':_0xd5576b('0x2292'),'isApp':!![],'extraApi':[{'name':_0xd5576b('0x1105'),'field':{'name':_0xd5576b('0x2037'),'key':_0xd5576b('0x2623')},'route':_0xd5576b('0x2037'),'filters':{'fields':_0xd5576b('0x104'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0xd5576b('0x1172'),'name':_0xd5576b('0x2037'),'type':'apiselect','values':'tags','value':'tag.name','option':_0xd5576b('0x460'),'required':!![],'param':0x0}]}],[_0xd5576b('0xf2b')]),{'isApp':![]}),_0x30805e['list']={'group':{'name':_0xd5576b('0x866'),'pull':_0xd5576b('0x2384')},'animation':0x64,'sort':![]},_0x30805e[_0xd5576b('0x2358')]={'group':{'name':'opt2','put':_0xd5576b('0x866')},'animation':0x64,'onAdd':function _0x77edfa(_0x5e055c){_0x1a4d6e(_0x5e055c,_0x5e055c['newIndex']);},'onSort':function _0x1a9f73(){_0x561e2f();}},_0x30805e['init']=_0x504e91,_0x30805e['deleteConfirm']=_0x429cee,_0x30805e[_0xd5576b('0xc03')]=_0x53a111,_0x30805e[_0xd5576b('0xca8')]=_0x1a4d6e,_0x30805e[_0xd5576b('0xf50')]=_0x70e009,_0x30805e[_0xd5576b('0x12e7')]=_0x10dd90,_0x30805e[_0xd5576b('0x58b')]=_0x4fa5fb,_0x30805e[_0xd5576b('0x20b4')]=_0x561e2f,_0x30805e[_0xd5576b('0x157')]=_0x4b0bfc;function _0x504e91(_0x1f3bc9,_0x30548){var _0x22b9b7=_0xd5576b;_0x30805e[_0x22b9b7('0x688')]=_0x1f3bc9,_0x30805e[_0x22b9b7('0xb3d')]=typeof _0x30548!==_0x22b9b7('0x1143')?_0x30548:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x30805e[_0x22b9b7('0x2358')][_0x22b9b7('0x1ebc')]=!_0x30805e['crudPermissions'][_0x22b9b7('0x12bc')]?!![]:![],_0x30805e['query']['id']=_0x1f3bc9['id'],_0x30805e['query'][_0x22b9b7('0x1144')]=!![],_0x30805e[_0x22b9b7('0xa16')][_0x22b9b7('0x1bbe')]=!![],_0x30805e[_0x22b9b7('0xc03')](),_0x30805e[_0x22b9b7('0x157')]();}function _0x429cee(_0x4f538e,_0x29badb,_0x389f2e){var _0x121c8c=_0xd5576b,_0x3a71b9=_0x362ae9['confirm']()[_0x121c8c('0x13e4')](_0x121c8c('0x21ed'))[_0x121c8c('0x221c')](_0x121c8c('0xab2')+_0x4f538e[_0x121c8c('0xf2b')]+_0x121c8c('0x27bb')+'\x20will\x20be\x20deleted.')[_0x121c8c('0x4d1')](_0x121c8c('0x21d1'))[_0x121c8c('0x1345')](_0x389f2e)['ok']('OK')['cancel']('CANCEL');_0x362ae9[_0x121c8c('0x26b2')](_0x3a71b9)[_0x121c8c('0xe19')](function(){var _0x37b3e4=_0x121c8c;_0x30805e[_0x37b3e4('0x1b74')][_0x37b3e4('0x16a7')][_0x37b3e4('0x1c8e')](_0x29badb,0x1),_0x561e2f();},function(){var _0x44159d=_0x121c8c;console[_0x44159d('0x1fe9')](_0x44159d('0x17'));});}function _0x1a4d6e(_0x6c7166,_0x17df89){var _0x2bb051=_0xd5576b;if(_0x30805e[_0x2bb051('0x1b74')][_0x2bb051('0x16a7')]['length']){var _0x54d1c0=_0x30805e[_0x2bb051('0x1b74')][_0x2bb051('0x16a7')][_0x17df89]?_0x30805e[_0x2bb051('0x1b74')]['rows'][_0x17df89]:_0x30805e[_0x2bb051('0x1b74')]['rows'][0x0],_0x4f2011=(_0x54d1c0['appType']||_0x54d1c0[_0x2bb051('0xf2b')])[_0x2bb051('0x20dd')]();_0x362ae9[_0x2bb051('0x26b2')]({'controller':_0x2bb051('0x1767')[_0x2bb051('0x1007')](_0x4f2011,_0x2bb051('0x2893')),'controllerAs':'vm','templateUrl':_0x330c70[_0x4f2011],'parent':angular[_0x2bb051('0x24a1')](_0x392ce5[_0x2bb051('0x19b2')]),'targetEvent':_0x6c7166,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x54d1c0,'faxAccount':_0x30805e[_0x2bb051('0x688')],'crudPermissions':_0x30805e[_0x2bb051('0xb3d')]}})[_0x2bb051('0xe19')](function(_0x465b51){var _0x93b68c=_0x2bb051;_0x465b51&&(_0x465b51['id']?_0x30805e[_0x93b68c('0x1b74')][_0x93b68c('0x16a7')][_0x17df89]=_0x465b51:_0x30805e['faxAccountApps'][_0x93b68c('0x16a7')]['splice'](_0x17df89,0x0,_0x465b51),_0x561e2f());})[_0x2bb051('0x223b')](function(_0x3bb977){var _0x520f28=_0x2bb051;_0x3bb977&&_0x56ee41[_0x520f28('0x8c8')]({'title':_0x3bb977[_0x520f28('0x2833')]?_0x520f28('0x27f2')+_0x3bb977[_0x520f28('0x2833')]+_0x520f28('0x1b7c')+_0x3bb977[_0x520f28('0x1fd7')]:_0x520f28('0x1c4b'),'msg':_0x3bb977[_0x520f28('0x11d0')]?JSON[_0x520f28('0x3ad')](_0x3bb977['data']):_0x3bb977['toString']()});});}}function _0x70e009(_0x32845c,_0x3ec39c){var _0x57c872=_0xd5576b;if(_0x30805e['faxAccountApps'][_0x57c872('0x16a7')][_0x57c872('0x25ae')]){var _0x412135=_0x30805e['faxAccountApps'][_0x57c872('0x16a7')][_0x3ec39c]?_0x30805e['faxAccountApps'][_0x57c872('0x16a7')][_0x3ec39c]:_0x30805e[_0x57c872('0x1b74')][_0x57c872('0x16a7')][0x0];_0x362ae9[_0x57c872('0x26b2')]({'controller':_0x57c872('0x2404'),'controllerAs':'vm','templateUrl':_0x46d7,'parent':angular['element'](_0x392ce5[_0x57c872('0x19b2')]),'targetEvent':_0x32845c,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x412135[_0x57c872('0x134c')],'IntervalId':_0x412135[_0x57c872('0x1fc1')],'application':!![]},'intervals':[],'crudPermissions':_0x30805e[_0x57c872('0xb3d')]}})['then'](function(_0xb593d){var _0x56b001=_0x57c872;_0xb593d&&(_0x412135[_0x56b001('0x134c')]=_0xb593d[_0x56b001('0x134c')]||_0x56b001('0x2292'),_0x412135[_0x56b001('0x1fc1')]=_0xb593d[_0x56b001('0x1fc1')]||null,_0x561e2f());});}}function _0x561e2f(){var _0x18a0d5=_0xd5576b,_0x3d4ab0=0x1,_0x18286f=[];for(var _0x5c725a=0x0;_0x5c725a<_0x30805e[_0x18a0d5('0x1b74')][_0x18a0d5('0x16a7')]['length'];_0x5c725a++){var _0x5936ef=_0x30805e[_0x18a0d5('0x1b74')][_0x18a0d5('0x16a7')][_0x5c725a],_0x3563c0=[],_0xe6dd1b=[];_0x5936ef[_0x18a0d5('0x10e0')]=_0x5936ef[_0x18a0d5('0x134c')]!==_0x18a0d5('0x2292')?[_0x5936ef[_0x18a0d5('0x134c')]]:_0x5936ef[_0x18a0d5('0x1fc1')]?_0x32d445()['map'](_0x32d445()['filter'](_0x30805e[_0x18a0d5('0x10e0')][_0x18a0d5('0x16a7')],{'IntervalId':_0x5936ef['IntervalId']}),_0x18a0d5('0x134c')):[],_0x5936ef['context']=_0x30805e[_0x18a0d5('0x688')][_0x18a0d5('0x1318')],_0x5936ef[_0x18a0d5('0x632')]=_0x30805e['faxAccount'][_0x18a0d5('0x632')],_0x5936ef[_0x18a0d5('0x62e')]&&(_0x5936ef['type']=_0x5936ef[_0x18a0d5('0x62e')]['toLowerCase']()),_0x5936ef[_0x18a0d5('0xb33')]=_0x3563c0[_0x18a0d5('0x25ae')]?_0x32d445()['last'](_0x3563c0)[_0x18a0d5('0xb33')]+0x1:_0x3d4ab0,_0x3d4ab0=(_0xe6dd1b[_0x18a0d5('0x25ae')]?_0x32d445()['last'](_0xe6dd1b)[_0x18a0d5('0xb33')]:_0x5936ef['priority'])+0x1,_0x18286f=_0x32d445()[_0x18a0d5('0x1007')](_0x18286f,_0x3563c0,[_0x5936ef],_0xe6dd1b);}_0x41022a[_0x18a0d5('0x688')][_0x18a0d5('0x25d9')]({'id':_0x30805e[_0x18a0d5('0x688')]['id']},_0x32d445()[_0x18a0d5('0x14c')](_0x18286f,_0x18a0d5('0xb33')))[_0x18a0d5('0xe59')][_0x18a0d5('0xe19')](function(_0x19b18b){var _0x49edcb=_0x18a0d5;_0x30805e[_0x49edcb('0x1b74')][_0x49edcb('0x16a7')]=_0x19b18b['rows'];})['catch'](function(_0x55e322){console['error'](_0x55e322);});}function _0x3a999f(_0x2aa95f){var _0x4ba1ef=_0xd5576b;_0x30805e[_0x4ba1ef('0x1b74')]=_0x2aa95f||{'count':0x0,'rows':[]};}function _0x4b0bfc(){var _0x1755c9=_0xd5576b;return _0x41022a['interval'][_0x1755c9('0x22d5')]({'fields':_0x1755c9('0x1a19')})[_0x1755c9('0xe59')][_0x1755c9('0xe19')](function(_0x17050b){var _0x1d6293=_0x1755c9;_0x30805e[_0x1d6293('0x10e0')]=_0x17050b;})[_0x1755c9('0x223b')](function(_0x42ee6b){var _0x377dc9=_0x1755c9;console[_0x377dc9('0x8c8')](_0x42ee6b);});}function _0x53a111(){var _0x8a6424=_0xd5576b;_0x30805e[_0x8a6424('0x9c8')]=_0x41022a[_0x8a6424('0x688')][_0x8a6424('0x1654')](_0x30805e[_0x8a6424('0xa16')],_0x3a999f)[_0x8a6424('0xe59')];}function _0x10dd90(_0x5727b6){var _0x4764a2=_0xd5576b;_0x32d445()['remove'](_0x30805e[_0x4764a2('0x1b74')][_0x4764a2('0x16a7')],{'id':_0x5727b6['id']}),_0x561e2f(),_0x56ee41[_0x4764a2('0x425')]({'title':_0x4764a2('0x13bf'),'msg':_0x5727b6[_0x4764a2('0xf2b')]?_0x5727b6['app']+'\x20has\x20been\x20deleted!':''});}function _0x4fa5fb(_0x6796f5){var _0x32402c=_0xd5576b,_0x5d1d4e=_0x362ae9['confirm']()[_0x32402c('0x13e4')](_0x32402c('0x6de'))[_0x32402c('0x221c')](_0x32402c('0xab2')+_0x30805e[_0x32402c('0x8a5')][_0x32402c('0x25ae')]+_0x32402c('0x5bc')+_0x32402c('0x21bd'))[_0x32402c('0x4d1')](_0x32402c('0x17bf'))['targetEvent'](_0x6796f5)['ok']('OK')[_0x32402c('0x2c1')](_0x32402c('0x17'));_0x362ae9[_0x32402c('0x26b2')](_0x5d1d4e)[_0x32402c('0xe19')](function(){var _0x39ea3e=_0x32402c;_0x30805e[_0x39ea3e('0x8a5')][_0x39ea3e('0x1d7e')](function(_0x576fc8){var _0x56832e=_0x39ea3e;_0x32d445()[_0x56832e('0xa8b')](_0x30805e[_0x56832e('0x1b74')][_0x56832e('0x16a7')],{'id':_0x576fc8['id']});}),_0x30805e[_0x39ea3e('0x8a5')]=[],_0x561e2f();});}}const _0x45c5cf=_0x56c917;_0x15c337['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x688'),_0xb635d2('0x1a77'),_0xb635d2('0x24e1'),_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x15c337(_0x4eb128,_0x1708d3,_0x12a6af,_0x269e53,_0x4c467c,_0x5da610,_0x4ee969,_0xa0782b,_0x532cce,_0x476556){var _0xec1467=_0xb635d2,_0x816e6f=this;_0x816e6f['currentUser']=_0x532cce['getCurrentUser'](),_0x816e6f[_0xec1467('0x688')]=_0x4c467c,_0x816e6f[_0xec1467('0xb3d')]=_0x476556,_0x816e6f[_0xec1467('0x24e1')]=_0x4ee969,_0x816e6f[_0xec1467('0xe4b')]=[],_0x816e6f[_0xec1467('0x1884')]=[],_0x816e6f['selectedItems']=[],_0x816e6f[_0xec1467('0x286c')]=[],_0x816e6f[_0xec1467('0xf79')]=[],_0x816e6f[_0xec1467('0x16e7')]=![],_0x816e6f['onInit']=_0xf2871,_0x816e6f['saveAgents']=_0x158da9,_0x816e6f['closeDialog']=_0x208fda,_0x816e6f[_0xec1467('0xc00')]={'readOnly':!_0x816e6f[_0xec1467('0xb3d')][_0xec1467('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xec1467('0x2623'),'line1':_0xec1467('0xe11'),'line2':[_0xec1467('0x2623'),_0xec1467('0x1b66')],'line3':'','labelAll':_0xa0782b[_0xec1467('0x2159')](_0xec1467('0x1435')),'labelSelected':_0xa0782b[_0xec1467('0x2159')](_0xec1467('0xb14')),'transferCallback':function _0x100944(){var _0x4a901e=_0xec1467,_0x536332=_0x32d445()['xorBy'](_0x816e6f[_0x4a901e('0xf79')],_0x816e6f['selectedItems'],'id');_0x816e6f[_0x4a901e('0x16e7')]=_0x32d445()[_0x4a901e('0x14b4')](_0x536332)?![]:!![];}};function _0xf2871(){var _0x30ab23=_0xec1467;return _0x532cce[_0x30ab23('0x179e')](_0x30ab23('0xd14'))?_0x4ae811()[_0x30ab23('0x223b')](function(_0xd2873b){var _0xd2ebe3=_0x30ab23;_0x12a6af[_0xd2ebe3('0x8c8')]({'title':_0xd2873b[_0xd2ebe3('0x2833')]?_0xd2ebe3('0x27f2')+_0xd2873b[_0xd2ebe3('0x2833')]+_0xd2ebe3('0x1b7c')+_0xd2873b['statusText']:'SYSTEM:GET_AGENTS','msg':_0xd2873b['status']?JSON[_0xd2ebe3('0x3ad')](_0xd2873b[_0xd2ebe3('0x11d0')]):_0xd2873b[_0xd2ebe3('0x94f')]()});}):_0xe6b37()[_0x30ab23('0xe19')](function(_0x2473d2){return _0x816e6f['section']=_0x2473d2,_0x4ae811();})[_0x30ab23('0x223b')](function(_0x291732){var _0x210fec=_0x30ab23;_0x12a6af[_0x210fec('0x8c8')]({'title':_0x291732[_0x210fec('0x2833')]?_0x210fec('0x27f2')+_0x291732[_0x210fec('0x2833')]+_0x210fec('0x1b7c')+_0x291732[_0x210fec('0x1fd7')]:_0x210fec('0x1e86'),'msg':_0x291732['status']?JSON[_0x210fec('0x3ad')](_0x291732['data']):_0x291732[_0x210fec('0x94f')]()});});}function _0xe6b37(){return _0x1708d3(function(_0x3cd3ff,_0x599809){var _0x3b12dc=a0_0x5325;_0x269e53['userProfileSection'][_0x3b12dc('0x22d5')]({'userProfileId':_0x816e6f[_0x3b12dc('0x15a5')]['userProfileId'],'name':_0x3b12dc('0xd61')})[_0x3b12dc('0xe59')]['then'](function(_0x2e8459){var _0x5b53c4=_0x3b12dc,_0x1d1588=_0x2e8459&&_0x2e8459[_0x5b53c4('0x16a7')]?_0x2e8459[_0x5b53c4('0x16a7')][0x0]:null;_0x3cd3ff(_0x1d1588);})['catch'](function(_0xda4019){_0x599809(_0xda4019);});});}function _0x4ae811(){return _0x1708d3(function(_0x1d7065,_0x2c2347){var _0x44bd7c=a0_0x5325;return _0x2f2183()[_0x44bd7c('0xe19')](function(_0x15c84f){var _0x240f61=_0x44bd7c;return _0x816e6f['items']=_0x15c84f[_0x240f61('0x16a7')]?_0x15c84f[_0x240f61('0x16a7')]:[],_0x532cce['hasRole'](_0x240f61('0xd14'))?_0x15c84f:_0x816e6f[_0x240f61('0x1e59')]?_0x816e6f[_0x240f61('0x1e59')][_0x240f61('0x11fd')]?_0x15c84f:_0x2b0757():null;})[_0x44bd7c('0xe19')](function(_0x5dc720){var _0xbb5612=_0x44bd7c,_0x92c396=_0x5dc720&&_0x5dc720['rows']?_0x5dc720[_0xbb5612('0x16a7')]:[];return _0x816e6f[_0xbb5612('0x1884')]=_0x32d445()[_0xbb5612('0x65a')](_0x92c396,function(_0x3d3611){var _0x21c063=_0xbb5612;return _0x32d445()[_0x21c063('0xf15')](_0x816e6f[_0x21c063('0xe4b')],{'id':_0x532cce['hasRole'](_0x21c063('0xd14'))||_0x816e6f[_0x21c063('0x1e59')][_0x21c063('0x11fd')]?_0x3d3611['id']:_0x3d3611['resourceId']});}),_0x816e6f['startingAllowedItems']=angular[_0xbb5612('0x89')](_0x816e6f[_0xbb5612('0x1884')]),_0x816e6f[_0xbb5612('0xe4b')][_0xbb5612('0x1d7e')](function(_0x1cc883){var _0x27bdf3=_0xbb5612,_0x32bcfe=_0x32d445()['find'](_0x816e6f[_0x27bdf3('0x1884')],{'id':_0x1cc883['id']});_0x532cce['hasRole']('admin')?_0x1cc883[_0x27bdf3('0x1768')]=!![]:_0x1cc883[_0x27bdf3('0x1768')]=typeof _0x32bcfe!==_0x27bdf3('0x1143')?!![]:![];}),_0x4f8e0c();})[_0x44bd7c('0xe19')](function(_0x185442){var _0x5e1745=_0x44bd7c,_0x303c3b=_0x185442&&_0x185442['rows']?_0x185442[_0x5e1745('0x16a7')]:[];_0x816e6f[_0x5e1745('0x2273')]=_0x32d445()[_0x5e1745('0x65a')](_0x303c3b,function(_0x13c6ca){var _0x533e55=_0x5e1745,_0x321c90=_0x32d445()[_0x533e55('0xf15')](_0x816e6f[_0x533e55('0xe4b')],{'id':_0x13c6ca['id']});return _0x321c90['penalty']=_0x13c6ca[_0x533e55('0x491')]?_0x533e55('0x815')+_0x13c6ca['UserFaxAccount']['penalty']:'',_0x321c90[_0x533e55('0x1b66')]=typeof _0x13c6ca[_0x533e55('0x1b66')]!=='undefined'?'<'+_0x13c6ca[_0x533e55('0x1b66')]+'>':'',_0x321c90;}),_0x816e6f['startingSelectedItems']=angular['copy'](_0x816e6f[_0x5e1745('0x2273')]),_0x816e6f[_0x5e1745('0xc00')][_0x5e1745('0x2273')]=_0x816e6f['selectedItems'],_0x816e6f[_0x5e1745('0xc00')][_0x5e1745('0xe4b')]=_0x32d445()[_0x5e1745('0x501')](_0x816e6f['allowedItems'],_0x816e6f[_0x5e1745('0xc00')]['selectedItems'],'id'),_0x1d7065();})[_0x44bd7c('0x223b')](function(_0x5a42ad){_0x2c2347(_0x5a42ad);});});}function _0x2b0757(){return _0x1708d3(function(_0x10c384,_0x1b0ae8){var _0x1d3e73=a0_0x5325;return _0x269e53[_0x1d3e73('0xd49')][_0x1d3e73('0x22d5')]({'sectionId':_0x816e6f['section']['id'],'nolimit':!![]})[_0x1d3e73('0xe59')]['then'](function(_0x1aaf13){_0x10c384(_0x1aaf13);})[_0x1d3e73('0x223b')](function(_0x5daf81){_0x1b0ae8(_0x5daf81);});});}function _0x4f8e0c(){return _0x1708d3(function(_0x551696,_0x5dc48e){var _0x5999db=a0_0x5325;return _0x269e53[_0x5999db('0x688')]['getAgents']({'id':_0x816e6f[_0x5999db('0x688')]['id'],'fields':_0x5999db('0x244f'),'nolimit':!![],'role':_0x5999db('0x108')})[_0x5999db('0xe59')][_0x5999db('0xe19')](function(_0x3cfc33){_0x551696(_0x3cfc33);})['catch'](function(_0x1be8b5){_0x5dc48e(_0x1be8b5);});});}function _0x2f2183(){return _0x1708d3(function(_0x5315ff,_0x3ba915){var _0xe99924=a0_0x5325;return _0x269e53[_0xe99924('0x10c6')][_0xe99924('0x22d5')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})['$promise']['then'](function(_0x333498){_0x5315ff(_0x333498);})[_0xe99924('0x223b')](function(_0x1ce8d4){_0x3ba915(_0x1ce8d4);});});}function _0x23f2ff(_0x1b6c90){return _0x1708d3(function(_0x11b29e,_0xf911df){var _0x437b6e=a0_0x5325;_0x32d445()[_0x437b6e('0x14b4')](_0x1b6c90)?_0x11b29e():_0x269e53[_0x437b6e('0x688')]['addAgents']({'id':_0x816e6f[_0x437b6e('0x688')]['id'],'ids':_0x32d445()[_0x437b6e('0x65a')](_0x1b6c90,'id')})[_0x437b6e('0xe59')]['then'](function(){_0x11b29e();})[_0x437b6e('0x223b')](function(_0x4e3242){_0xf911df(_0x4e3242);});});}function _0x44bf0e(_0x4028b2){return _0x1708d3(function(_0x5ef72b,_0x4bf074){var _0x286834=a0_0x5325;_0x32d445()[_0x286834('0x14b4')](_0x4028b2)?_0x5ef72b():_0x269e53[_0x286834('0x688')][_0x286834('0x6aa')]({'id':_0x816e6f['faxAccount']['id'],'ids':_0x32d445()['map'](_0x4028b2,'id')})[_0x286834('0xe59')][_0x286834('0xe19')](function(){_0x5ef72b();})[_0x286834('0x223b')](function(_0x16494c){_0x4bf074(_0x16494c);});});}function _0x158da9(){var _0x254385=_0xec1467,_0x41fb5b=_0x32d445()['differenceBy'](_0x816e6f[_0x254385('0xf79')],_0x816e6f[_0x254385('0x2273')],'id'),_0x430083=_0x32d445()[_0x254385('0x501')](_0x816e6f[_0x254385('0x2273')],_0x816e6f['startingSelectedItems'],'id');return _0x44bf0e(_0x41fb5b)[_0x254385('0xe19')](function(){return _0x23f2ff(_0x430083);})['then'](function(){var _0x8fa08b=_0x254385;_0x816e6f['pendingChanges']=![],_0x816e6f[_0x8fa08b('0x286c')]=angular[_0x8fa08b('0x89')](_0x816e6f[_0x8fa08b('0x1884')]),_0x816e6f[_0x8fa08b('0xf79')]=angular[_0x8fa08b('0x89')](_0x816e6f[_0x8fa08b('0x2273')]),_0x12a6af['success']({'title':_0x8fa08b('0x1dca'),'msg':_0x8fa08b('0x25d')});})['catch'](function(_0x36bd84){var _0x401a4e=_0x254385;_0x12a6af[_0x401a4e('0x8c8')]({'title':_0x36bd84[_0x401a4e('0x2833')]?_0x401a4e('0x27f2')+_0x36bd84[_0x401a4e('0x2833')]+_0x401a4e('0x1b7c')+_0x36bd84[_0x401a4e('0x1fd7')]:_0x401a4e('0x2168'),'msg':_0x36bd84[_0x401a4e('0x2833')]?JSON[_0x401a4e('0x3ad')](_0x36bd84[_0x401a4e('0x11d0')]):_0x36bd84['toString']()});});}function _0x208fda(){var _0x14adac=_0xec1467;_0x4eb128[_0x14adac('0x11ed')]();}}const _0xaaa8b3=_0x15c337;_0x12936f['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x2452'),_0xb635d2('0x688'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x12936f(_0x56aaa3,_0x1ea21c,_0xc19212,_0x9f3bb1,_0x740dfd,_0x34d2f8,_0x19bfaa,_0x36a1d2){var _0x333e6e=_0xb635d2,_0x2751a1=this;_0x2751a1[_0x333e6e('0x15a5')]=_0x19bfaa['getCurrentUser'](),_0x2751a1['errors']=[],_0x2751a1[_0x333e6e('0x13e4')]='FAX.EDIT_'+(_0x9f3bb1[_0x333e6e('0xf44')]||_0x9f3bb1[_0x333e6e('0xf2b')])[_0x333e6e('0x25f7')](),_0x2751a1[_0x333e6e('0x108')]=angular[_0x333e6e('0x89')](_0x9f3bb1),_0x2751a1[_0x333e6e('0xb3d')]=_0x36a1d2,_0x2751a1[_0x333e6e('0x1ccb')]={};if(_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x26d2')])switch(_0x2751a1[_0x333e6e('0x108')]['appType']?_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0xf44')][_0x333e6e('0x20dd')]():_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0xf2b')]['toLowerCase']()){case _0x333e6e('0x261d'):break;case _0x333e6e('0xc11'):{var _0x48e951=_0x2751a1['agent'][_0x333e6e('0x26d2')][_0x333e6e('0x1745')](',');_0x2751a1['agent'][_0x333e6e('0x6e4')]=_0x48e951[0x0],_0x2751a1['agent']['language']=_0x48e951[0x1],_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0xfcc')]=_0x48e951[_0x333e6e('0xa19')](0x2,_0x48e951[_0x333e6e('0x25ae')])[_0x333e6e('0x1537')](',');}break;case _0x333e6e('0x1321'):{var _0x57cc0f=_0x2751a1['agent'][_0x333e6e('0x26d2')][_0x333e6e('0x1745')](',');_0x2751a1['agent'][_0x333e6e('0x22be')]=_0x57cc0f[0x0],_0x2751a1['agent'][_0x333e6e('0x700')]=_0x57cc0f[0x1],_0x2751a1[_0x333e6e('0x108')]['lexregion']=_0x57cc0f[0x2],_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x191a')]=_0x57cc0f[0x3],_0x2751a1[_0x333e6e('0x108')]['welcomemessage']=_0x57cc0f[_0x333e6e('0xa19')](0x4,_0x57cc0f[_0x333e6e('0x25ae')])[_0x333e6e('0x1537')](',');}break;case _0x333e6e('0x400'):{var _0x441eaf=_0x2751a1['agent']['appdata'][_0x333e6e('0x1745')](',');_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x1ec4')]=isNaN(_0x441eaf[0x0])?_0x441eaf[0x0]:parseInt(_0x441eaf[0x0],0xa),_0x2751a1[_0x333e6e('0x108')]['text']=_0x441eaf[_0x333e6e('0xa19')](0x1,_0x441eaf['length'])[_0x333e6e('0x1537')](',');}break;case'message':_0x2751a1['agent'][_0x333e6e('0x1bc6')]=_0x2751a1[_0x333e6e('0x108')]['appdata'];break;case _0x333e6e('0x2aa'):_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x2623')]=_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x26d2')][_0x333e6e('0x1745')]('=')[0x0],_0x2751a1['agent'][_0x333e6e('0x2')]=_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x26d2')]['split']('=')[0x1];break;case'agi':_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x38b')]=_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x26d2')];break;default:{var _0x25db5f=_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x26d2')][_0x333e6e('0x1745')](',');_0x2751a1[_0x333e6e('0x108')]['agent']=_0x32d445()[_0x333e6e('0x14b4')](_0x25db5f[0x0])?_0x25db5f[0x0]:isNaN(_0x25db5f[0x0])?_0x25db5f[0x0]:parseInt(_0x25db5f[0x0],0xa),_0x2751a1['agent']['timeout']=_0x32d445()[_0x333e6e('0x14b4')](_0x25db5f[0x1])?_0x25db5f[0x1]:isNaN(_0x25db5f[0x1])?_0x25db5f[0x1]:parseInt(_0x25db5f[0x1],0xa);}break;}else _0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x2058')]=0x1e;_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x62e')]&&_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x62e')][_0x333e6e('0x20dd')]()===_0x333e6e('0x1fdf')&&_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0xf44')][_0x333e6e('0x20dd')]()===_0x333e6e('0x1d1b')&&(_0x2751a1['agent'][_0x333e6e('0x2580')]=_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x1ef5')]?_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x1ef5')][_0x333e6e('0x1745')]('$')[0x0]:undefined,_0x2751a1[_0x333e6e('0x108')][_0x333e6e('0x1b6f')]=_0x2751a1['agent'][_0x333e6e('0xfca')]?'CALLERID(all)='+_0x2751a1['agent'][_0x333e6e('0xfca')]:undefined);_0x2751a1[_0x333e6e('0x1f72')]=_0xab442b,_0x2751a1['closeDialog']=_0x3e55c6,_0x19bfaa[_0x333e6e('0x179e')](_0x333e6e('0xd14'))?_0x34d2f8[_0x333e6e('0x10c6')][_0x333e6e('0x22d5')]({'fields':_0x333e6e('0x104'),'sort':_0x333e6e('0x2623'),'role':_0x333e6e('0x108'),'nolimit':_0x333e6e('0x2206')})[_0x333e6e('0xe59')][_0x333e6e('0xe19')](function(_0x4722aa){var _0x379a00=_0x333e6e;_0x2751a1[_0x379a00('0x29b')]=_0x4722aa[_0x379a00('0x16a7')]||[];})['catch'](function(_0x4714a7){var _0x16ac55=_0x333e6e;_0xc19212[_0x16ac55('0x8c8')]({'title':_0x4714a7[_0x16ac55('0x2833')]?_0x16ac55('0x27f2')+_0x4714a7[_0x16ac55('0x2833')]+_0x16ac55('0x1b7c')+_0x4714a7[_0x16ac55('0x1fd7')]:'SYSTEM:GET_AGENTS','msg':_0x4714a7[_0x16ac55('0x11d0')]?JSON['stringify'](_0x4714a7['data']):_0x4714a7[_0x16ac55('0x94f')]()});}):_0x34d2f8['user'][_0x333e6e('0x22d5')]({'fields':_0x333e6e('0x104'),'sort':_0x333e6e('0x2623'),'role':'agent','nolimit':_0x333e6e('0x2206')})['$promise']['then'](function(_0x320ae6){var _0x1e86f1=_0x333e6e;_0x2751a1[_0x1e86f1('0x29b')]=_0x320ae6[_0x1e86f1('0x16a7')]||[];})[_0x333e6e('0xe19')](function(){var _0x36fa12=_0x333e6e;return _0x34d2f8[_0x36fa12('0xb59')][_0x36fa12('0x22d5')]({'userProfileId':_0x2751a1[_0x36fa12('0x15a5')]['userProfileId'],'sectionId':0xca})[_0x36fa12('0xe59')];})[_0x333e6e('0xe19')](function(_0x4fec36){var _0x251411=_0x333e6e,_0x327b61=_0x4fec36&&_0x4fec36[_0x251411('0x16a7')]?_0x4fec36[_0x251411('0x16a7')][0x0]:null;if(!_0x327b61){var _0x2846a6=[],_0x2ed25b=null;_0x2751a1[_0x251411('0x108')]&&(_0x2ed25b=_0x32d445()['find'](_0x2751a1[_0x251411('0x29b')],{'name':_0x2751a1[_0x251411('0x108')][_0x251411('0x108')]}));for(var _0x46cc1b=0x0;_0x46cc1b<_0x2751a1[_0x251411('0x29b')]['length'];_0x46cc1b++){_0x2ed25b&&_0x2751a1[_0x251411('0x29b')][_0x46cc1b]['id']===_0x2ed25b['id']&&(_0x2751a1['agents'][_0x46cc1b][_0x251411('0x1e9d')]=![],_0x2846a6['push'](_0x2751a1['agents'][_0x46cc1b]));}_0x2751a1[_0x251411('0x29b')]=_0x2846a6;}else{if(!_0x327b61['autoAssociation'])return _0x34d2f8[_0x251411('0xd49')][_0x251411('0x22d5')]({'sectionId':_0x327b61['id']})[_0x251411('0xe59')][_0x251411('0xe19')](function(_0x1b8b39){var _0x500839=_0x251411,_0x289edd=_0x32d445()['map'](_0x1b8b39['rows'],function(_0x11208b){var _0x30a749=a0_0x5325;return _0x32d445()['find'](_0x2751a1['agents'],{'id':_0x11208b[_0x30a749('0x1104')]});}),_0x5a0e4f=null;_0x2751a1[_0x500839('0x108')]&&(_0x5a0e4f=_0x32d445()[_0x500839('0xf15')](_0x2751a1[_0x500839('0x29b')],{'name':_0x2751a1['agent'][_0x500839('0x108')]}));if(_0x5a0e4f&&!_0x32d445()[_0x500839('0x201a')](_0x289edd,['id',_0x5a0e4f['id']])){var _0x292e8e=_0x32d445()[_0x500839('0xf15')](_0x2751a1[_0x500839('0x29b')],{'id':_0x5a0e4f['id']});_0x292e8e['canSelect']=![],_0x289edd[_0x500839('0xb76')](_0x292e8e);}_0x2751a1[_0x500839('0x29b')]=_0x289edd;});}})[_0x333e6e('0x223b')](function(_0x4be03a){var _0x24c1c8=_0x333e6e;_0xc19212[_0x24c1c8('0x8c8')]({'title':_0x4be03a['status']?_0x24c1c8('0x27f2')+_0x4be03a[_0x24c1c8('0x2833')]+'\x20-\x20'+_0x4be03a[_0x24c1c8('0x1fd7')]:'SYSTEM:GETagents','msg':_0x4be03a[_0x24c1c8('0x11d0')]?JSON['stringify'](_0x4be03a['data']):_0x4be03a['toString']()});});function _0xab442b(){var _0x33016a=_0x333e6e;_0x2751a1[_0x33016a('0xcd2')]=[];var _0x2f15ac=[];_0x2751a1[_0x33016a('0x108')][_0x33016a('0x62e')]&&_0x2751a1['agent']['type'][_0x33016a('0x20dd')]()===_0x33016a('0x1fdf')&&_0x2751a1[_0x33016a('0x108')][_0x33016a('0xf44')]===_0x33016a('0x3d2')&&(_0x2751a1[_0x33016a('0x108')][_0x33016a('0x1ef5')]=_0x740dfd[_0x33016a('0x27f6')]?(_0x2751a1[_0x33016a('0x108')][_0x33016a('0x2580')]||'')+'${EXTEN:'+_0x740dfd[_0x33016a('0x27f6')]+'}':(_0x2751a1[_0x33016a('0x108')]['prefix']||'')+_0x33016a('0x16b5'),_0x740dfd[_0x33016a('0x150c')]!==_0x33016a('0x23ca')?_0x2751a1[_0x33016a('0x108')][_0x33016a('0x2116')]['indexOf'](_0x33016a('0x767'))<0x0&&(_0x2751a1[_0x33016a('0x108')][_0x33016a('0x2116')]+=_0x33016a('0x767')):_0x2751a1['agent'][_0x33016a('0x2116')]=_0x2751a1[_0x33016a('0x108')][_0x33016a('0x2116')][_0x33016a('0x1b42')](_0x33016a('0x767'),''));var _0x19ce02=_0x32d445()[_0x33016a('0xf15')](_0x2751a1['agents'],{'name':_0x2751a1[_0x33016a('0x108')]['agent']});_0x19ce02&&(_0x2751a1[_0x33016a('0x108')][_0x33016a('0x43d')]=_0x19ce02['id']);if(_0x2751a1[_0x33016a('0x108')]['appType']&&_0x2751a1['agent'][_0x33016a('0xf44')]===_0x33016a('0x261d')){}else switch((_0x2751a1[_0x33016a('0x108')]['app']||_0x2751a1[_0x33016a('0x108')]['appType'])['toLowerCase']()){case'set':_0x2751a1[_0x33016a('0x108')]['appdata']=_0x2751a1[_0x33016a('0x108')][_0x33016a('0x2623')]+'='+_0x2751a1[_0x33016a('0x108')][_0x33016a('0x2')];break;case'custom':break;default:_0x2f15ac[0x0]=_0x2751a1[_0x33016a('0x108')][_0x33016a('0x108')],_0x2f15ac[0x1]=_0x2751a1['agent']['timeout'],_0x2751a1[_0x33016a('0x108')][_0x33016a('0x26d2')]=_0x2f15ac['join'](',');}_0x3e55c6(_0x2751a1[_0x33016a('0x108')]);}function _0x3e55c6(_0xd2debd){var _0x166e00=_0x333e6e;_0x56aaa3[_0x166e00('0x11ed')](_0xd2debd);}}const _0x2b3879=_0x12936f;_0x5a3962['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0x2452'),'faxAccount',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x5a3962(_0x5d956e,_0x13b7fd,_0x24250e,_0x43f1ca,_0x328902,_0x149eb2,_0xff511a,_0x3c5930){var _0x5a9b00=_0xb635d2,_0xd04462=this;_0xd04462[_0x5a9b00('0x15a5')]=_0xff511a['getCurrentUser'](),_0xd04462[_0x5a9b00('0xcd2')]=[],_0xd04462['title']=_0x5a9b00('0x1f2e')+(_0x43f1ca['appType']||_0x43f1ca[_0x5a9b00('0xf2b')])[_0x5a9b00('0x25f7')](),_0xd04462[_0x5a9b00('0x1886')]=angular[_0x5a9b00('0x89')](_0x43f1ca),_0xd04462['crudPermissions']=_0x3c5930,_0xd04462[_0x5a9b00('0x1ccb')]={};if(_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x26d2')])switch(_0xd04462['close']['appType']?_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0xf44')][_0x5a9b00('0x20dd')]():_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0xf2b')][_0x5a9b00('0x20dd')]()){case _0x5a9b00('0x261d'):break;case'dialogflow':{var _0x596747=_0xd04462['close']['appdata'][_0x5a9b00('0x1745')](',');_0xd04462['close'][_0x5a9b00('0x6e4')]=_0x596747[0x0],_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x174b')]=_0x596747[0x1],_0xd04462['close'][_0x5a9b00('0xfcc')]=_0x596747[_0x5a9b00('0xa19')](0x2,_0x596747[_0x5a9b00('0x25ae')])[_0x5a9b00('0x1537')](',');}break;case _0x5a9b00('0x1321'):{var _0x292a69=_0xd04462[_0x5a9b00('0x1886')]['appdata'][_0x5a9b00('0x1745')](',');_0xd04462['close'][_0x5a9b00('0x22be')]=_0x292a69[0x0],_0xd04462['close'][_0x5a9b00('0x700')]=_0x292a69[0x1],_0xd04462[_0x5a9b00('0x1886')]['lexregion']=_0x292a69[0x2],_0xd04462[_0x5a9b00('0x1886')]['botname']=_0x292a69[0x3],_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0xfcc')]=_0x292a69[_0x5a9b00('0xa19')](0x4,_0x292a69[_0x5a9b00('0x25ae')])[_0x5a9b00('0x1537')](',');}break;case _0x5a9b00('0x400'):{var _0x27acc0=_0xd04462[_0x5a9b00('0x1886')]['appdata']['split'](',');_0xd04462[_0x5a9b00('0x1886')]['times']=isNaN(_0x27acc0[0x0])?_0x27acc0[0x0]:parseInt(_0x27acc0[0x0],0xa),_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x1bc6')]=_0x27acc0[_0x5a9b00('0xa19')](0x1,_0x27acc0[_0x5a9b00('0x25ae')])[_0x5a9b00('0x1537')](',');}break;case'message':_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x1bc6')]=_0xd04462[_0x5a9b00('0x1886')]['appdata'];break;case _0x5a9b00('0x2aa'):_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x2623')]=_0xd04462['close']['appdata'][_0x5a9b00('0x1745')]('=')[0x0],_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x2')]=_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x26d2')][_0x5a9b00('0x1745')]('=')[0x1];break;case _0x5a9b00('0x401'):_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x38b')]=_0xd04462[_0x5a9b00('0x1886')]['appdata'];break;default:{var _0x29684a=_0xd04462['close'][_0x5a9b00('0x26d2')][_0x5a9b00('0x1745')](',');_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x2506')]=_0x32d445()[_0x5a9b00('0x14b4')](_0x29684a[0x0])?_0x29684a[0x0]:isNaN(_0x29684a[0x0])?_0x29684a[0x0]:parseInt(_0x29684a[0x0],0xa);}break;}else{}_0xd04462['close'][_0x5a9b00('0x62e')]&&_0xd04462[_0x5a9b00('0x1886')]['type']['toLowerCase']()==='outbound'&&_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0xf44')][_0x5a9b00('0x20dd')]()===_0x5a9b00('0x1d1b')&&(_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x2580')]=_0xd04462[_0x5a9b00('0x1886')]['phone']?_0xd04462['close'][_0x5a9b00('0x1ef5')][_0x5a9b00('0x1745')]('$')[0x0]:undefined,_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0x1b6f')]=_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0xfca')]?_0x5a9b00('0xd41')+_0xd04462[_0x5a9b00('0x1886')][_0x5a9b00('0xfca')]:undefined);_0xd04462[_0x5a9b00('0x1f72')]=_0x3893ac,_0xd04462[_0x5a9b00('0x2584')]=_0x1610f4;function _0x3893ac(){var _0x296f74=_0x5a9b00;_0xd04462['errors']=[];var _0x30fbdb=[];_0xd04462[_0x296f74('0x1886')][_0x296f74('0x62e')]&&_0xd04462[_0x296f74('0x1886')][_0x296f74('0x62e')][_0x296f74('0x20dd')]()===_0x296f74('0x1fdf')&&_0xd04462[_0x296f74('0x1886')][_0x296f74('0xf44')]==='outboundDial'&&(_0xd04462[_0x296f74('0x1886')][_0x296f74('0x1ef5')]=_0x328902[_0x296f74('0x27f6')]?(_0xd04462[_0x296f74('0x1886')]['prefix']||'')+_0x296f74('0x5d8')+_0x328902[_0x296f74('0x27f6')]+'}':(_0xd04462[_0x296f74('0x1886')]['prefix']||'')+_0x296f74('0x16b5'),_0x328902[_0x296f74('0x150c')]!==_0x296f74('0x23ca')?_0xd04462[_0x296f74('0x1886')][_0x296f74('0x2116')][_0x296f74('0x281c')](_0x296f74('0x767'))<0x0&&(_0xd04462[_0x296f74('0x1886')][_0x296f74('0x2116')]+='U(xcally-mixmonitor-context)'):_0xd04462[_0x296f74('0x1886')][_0x296f74('0x2116')]=_0xd04462[_0x296f74('0x1886')][_0x296f74('0x2116')][_0x296f74('0x1b42')](_0x296f74('0x767'),''));if(_0xd04462[_0x296f74('0x1886')][_0x296f74('0xf44')]&&_0xd04462[_0x296f74('0x1886')][_0x296f74('0xf44')]===_0x296f74('0x261d')){}else switch((_0xd04462[_0x296f74('0x1886')][_0x296f74('0xf2b')]||_0xd04462[_0x296f74('0x1886')][_0x296f74('0xf44')])[_0x296f74('0x20dd')]()){case _0x296f74('0x2aa'):_0xd04462[_0x296f74('0x1886')][_0x296f74('0x26d2')]=_0xd04462[_0x296f74('0x1886')][_0x296f74('0x2623')]+'='+_0xd04462[_0x296f74('0x1886')][_0x296f74('0x2')];break;case _0x296f74('0x261d'):break;default:_0x30fbdb[0x0]=_0xd04462[_0x296f74('0x1886')][_0x296f74('0x2506')],_0xd04462['close'][_0x296f74('0x26d2')]=_0x30fbdb[_0x296f74('0x1537')](',');}_0x1610f4(_0xd04462['close']);}function _0x1610f4(_0x5098b4){var _0x378996=_0x5a9b00;_0x5d956e[_0x378996('0x11ed')](_0x5098b4);}}const _0x537690=_0x5a3962;_0x440021[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x2452'),'faxAccount',_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x440021(_0x543e81,_0x54223d,_0x192ea0,_0x56c11c,_0x42376c,_0x380741,_0x39cd58,_0x12c896){var _0x250f42=_0xb635d2,_0x2e06bb=this;_0x2e06bb[_0x250f42('0x15a5')]=_0x39cd58[_0x250f42('0x1ef8')](),_0x2e06bb[_0x250f42('0xcd2')]=[],_0x2e06bb[_0x250f42('0x13e4')]=_0x250f42('0x1f2e')+(_0x56c11c[_0x250f42('0xf44')]||_0x56c11c[_0x250f42('0xf2b')])[_0x250f42('0x25f7')](),_0x2e06bb[_0x250f42('0x22c3')]=angular[_0x250f42('0x89')](_0x56c11c),_0x2e06bb[_0x250f42('0xb3d')]=_0x12c896,_0x2e06bb[_0x250f42('0x1ccb')]={};if(_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x26d2')])switch(_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0xf44')]?_0x2e06bb[_0x250f42('0x22c3')]['appType'][_0x250f42('0x20dd')]():_0x2e06bb[_0x250f42('0x22c3')]['app'][_0x250f42('0x20dd')]()){case _0x250f42('0x261d'):break;case _0x250f42('0xc11'):{var _0x440e51=_0x2e06bb[_0x250f42('0x22c3')]['appdata'][_0x250f42('0x1745')](',');_0x2e06bb['gotoif']['key']=_0x440e51[0x0],_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x174b')]=_0x440e51[0x1],_0x2e06bb[_0x250f42('0x22c3')]['welcomemessage']=_0x440e51[_0x250f42('0xa19')](0x2,_0x440e51[_0x250f42('0x25ae')])[_0x250f42('0x1537')](',');}break;case'amazonlex':{var _0x37576a=_0x2e06bb[_0x250f42('0x22c3')]['appdata'][_0x250f42('0x1745')](',');_0x2e06bb['gotoif'][_0x250f42('0x22be')]=_0x37576a[0x0],_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x700')]=_0x37576a[0x1],_0x2e06bb['gotoif'][_0x250f42('0x206a')]=_0x37576a[0x2],_0x2e06bb['gotoif'][_0x250f42('0x191a')]=_0x37576a[0x3],_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0xfcc')]=_0x37576a['slice'](0x4,_0x37576a[_0x250f42('0x25ae')])[_0x250f42('0x1537')](',');}break;case'autoreply':{var _0x5e47d0=_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x26d2')]['split'](',');_0x2e06bb[_0x250f42('0x22c3')]['times']=isNaN(_0x5e47d0[0x0])?_0x5e47d0[0x0]:parseInt(_0x5e47d0[0x0],0xa),_0x2e06bb[_0x250f42('0x22c3')]['text']=_0x5e47d0[_0x250f42('0xa19')](0x1,_0x5e47d0[_0x250f42('0x25ae')])[_0x250f42('0x1537')](',');}break;case'message':_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x1bc6')]=_0x2e06bb[_0x250f42('0x22c3')]['appdata'];break;case'set':_0x2e06bb[_0x250f42('0x22c3')]['name']=_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x26d2')]['split']('=')[0x0],_0x2e06bb['gotoif'][_0x250f42('0x2')]=_0x2e06bb['gotoif']['appdata'][_0x250f42('0x1745')]('=')[0x1];break;case'agi':_0x2e06bb['gotoif']['project']=_0x2e06bb['gotoif']['appdata'];break;default:{var _0xaa30f4=_0x2e06bb['gotoif'][_0x250f42('0x26d2')]['split'](',');_0x2e06bb['gotoif'][_0x250f42('0x1c03')]=_0x32d445()['isEmpty'](_0xaa30f4[0x0])?_0xaa30f4[0x0]:isNaN(_0xaa30f4[0x0])?_0xaa30f4[0x0]:parseInt(_0xaa30f4[0x0],0xa),_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x50')]=_0x32d445()[_0x250f42('0x14b4')](_0xaa30f4[0x1])?_0xaa30f4[0x1]:isNaN(_0xaa30f4[0x1])?_0xaa30f4[0x1]:parseInt(_0xaa30f4[0x1],0xa),_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x347')]=_0x32d445()[_0x250f42('0x14b4')](_0xaa30f4[0x2])?_0xaa30f4[0x2]:isNaN(_0xaa30f4[0x2])?_0xaa30f4[0x2]:parseInt(_0xaa30f4[0x2],0xa);}break;}else{}_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x62e')]&&_0x2e06bb[_0x250f42('0x22c3')]['type'][_0x250f42('0x20dd')]()==='outbound'&&_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0xf44')][_0x250f42('0x20dd')]()===_0x250f42('0x1d1b')&&(_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x2580')]=_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x1ef5')]?_0x2e06bb[_0x250f42('0x22c3')]['phone'][_0x250f42('0x1745')]('$')[0x0]:undefined,_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0x1b6f')]=_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0xfca')]?_0x250f42('0xd41')+_0x2e06bb[_0x250f42('0x22c3')][_0x250f42('0xfca')]:undefined);_0x2e06bb[_0x250f42('0x1f72')]=_0x4cf7c1,_0x2e06bb['closeDialog']=_0x4b44b2;function _0x4cf7c1(){var _0x1a19ea=_0x250f42;_0x2e06bb[_0x1a19ea('0xcd2')]=[];var _0x5d06c5=[];_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x62e')]&&_0x2e06bb['gotoif']['type']['toLowerCase']()===_0x1a19ea('0x1fdf')&&_0x2e06bb[_0x1a19ea('0x22c3')]['appType']===_0x1a19ea('0x3d2')&&(_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x1ef5')]=_0x42376c[_0x1a19ea('0x27f6')]?(_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x2580')]||'')+_0x1a19ea('0x5d8')+_0x42376c[_0x1a19ea('0x27f6')]+'}':(_0x2e06bb[_0x1a19ea('0x22c3')]['prefix']||'')+_0x1a19ea('0x16b5'),_0x42376c[_0x1a19ea('0x150c')]!=='none'?_0x2e06bb['gotoif'][_0x1a19ea('0x2116')][_0x1a19ea('0x281c')](_0x1a19ea('0x767'))<0x0&&(_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x2116')]+='U(xcally-mixmonitor-context)'):_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x2116')]=_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x2116')][_0x1a19ea('0x1b42')](_0x1a19ea('0x767'),''));if(_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0xf44')]&&_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0xf44')]===_0x1a19ea('0x261d')){}else switch((_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0xf2b')]||_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0xf44')])[_0x1a19ea('0x20dd')]()){case _0x1a19ea('0x2aa'):_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x26d2')]=_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x2623')]+'='+_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x2')];break;case _0x1a19ea('0x261d'):break;default:_0x5d06c5[0x0]=_0x2e06bb[_0x1a19ea('0x22c3')][_0x1a19ea('0x1c03')],_0x5d06c5[0x1]=_0x2e06bb['gotoif'][_0x1a19ea('0x50')],_0x5d06c5[0x2]=_0x2e06bb['gotoif']['falsepriority'],_0x2e06bb['gotoif'][_0x1a19ea('0x26d2')]=_0x5d06c5[_0x1a19ea('0x1537')](',');}_0x4b44b2(_0x2e06bb[_0x1a19ea('0x22c3')]);}function _0x4b44b2(_0x523acd){var _0x560e9f=_0x250f42;_0x543e81[_0x560e9f('0x11ed')](_0x523acd);}}const _0x29166a=_0x440021;_0x30a572['$inject']=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x2452'),'faxAccount',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x30a572(_0x4b4e35,_0x166b1a,_0x517d78,_0x91d5b7,_0x508913,_0x94308e,_0x1b7fc1,_0x286672){var _0x17e048=_0xb635d2,_0x40feab=this;_0x40feab[_0x17e048('0x15a5')]=_0x1b7fc1[_0x17e048('0x1ef8')](),_0x40feab[_0x17e048('0xcd2')]=[],_0x40feab[_0x17e048('0x13e4')]=_0x17e048('0x1f2e')+(_0x91d5b7[_0x17e048('0xf44')]||_0x91d5b7[_0x17e048('0xf2b')])[_0x17e048('0x25f7')](),_0x40feab['gotop']=angular[_0x17e048('0x89')](_0x91d5b7),_0x40feab['crudPermissions']=_0x286672,_0x40feab['hasModulePermissions']={};if(_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x26d2')])switch(_0x40feab[_0x17e048('0x16fe')][_0x17e048('0xf44')]?_0x40feab[_0x17e048('0x16fe')]['appType'][_0x17e048('0x20dd')]():_0x40feab[_0x17e048('0x16fe')][_0x17e048('0xf2b')]['toLowerCase']()){case'custom':break;case'dialogflow':{var _0x162488=_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x26d2')][_0x17e048('0x1745')](',');_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x6e4')]=_0x162488[0x0],_0x40feab['gotop'][_0x17e048('0x174b')]=_0x162488[0x1],_0x40feab[_0x17e048('0x16fe')][_0x17e048('0xfcc')]=_0x162488[_0x17e048('0xa19')](0x2,_0x162488[_0x17e048('0x25ae')])[_0x17e048('0x1537')](',');}break;case _0x17e048('0x1321'):{var _0x111b3f=_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x26d2')][_0x17e048('0x1745')](',');_0x40feab['gotop'][_0x17e048('0x22be')]=_0x111b3f[0x0],_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x700')]=_0x111b3f[0x1],_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x206a')]=_0x111b3f[0x2],_0x40feab['gotop'][_0x17e048('0x191a')]=_0x111b3f[0x3],_0x40feab[_0x17e048('0x16fe')][_0x17e048('0xfcc')]=_0x111b3f[_0x17e048('0xa19')](0x4,_0x111b3f[_0x17e048('0x25ae')])[_0x17e048('0x1537')](',');}break;case'autoreply':{var _0x235a55=_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x26d2')]['split'](',');_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x1ec4')]=isNaN(_0x235a55[0x0])?_0x235a55[0x0]:parseInt(_0x235a55[0x0],0xa),_0x40feab['gotop'][_0x17e048('0x1bc6')]=_0x235a55[_0x17e048('0xa19')](0x1,_0x235a55[_0x17e048('0x25ae')])[_0x17e048('0x1537')](',');}break;case _0x17e048('0x27e8'):_0x40feab['gotop'][_0x17e048('0x1bc6')]=_0x40feab['gotop'][_0x17e048('0x26d2')];break;case _0x17e048('0x2aa'):_0x40feab['gotop']['name']=_0x40feab[_0x17e048('0x16fe')]['appdata']['split']('=')[0x0],_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x2')]=_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x26d2')][_0x17e048('0x1745')]('=')[0x1];break;case'agi':_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x38b')]=_0x40feab['gotop'][_0x17e048('0x26d2')];break;default:{var _0x1b4d15=_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x26d2')][_0x17e048('0x1745')](',');_0x40feab[_0x17e048('0x16fe')]['priority']=_0x32d445()[_0x17e048('0x14b4')](_0x1b4d15[0x0])?_0x1b4d15[0x0]:isNaN(_0x1b4d15[0x0])?_0x1b4d15[0x0]:parseInt(_0x1b4d15[0x0],0xa);}break;}else{}_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x62e')]&&_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x62e')][_0x17e048('0x20dd')]()===_0x17e048('0x1fdf')&&_0x40feab[_0x17e048('0x16fe')][_0x17e048('0xf44')][_0x17e048('0x20dd')]()===_0x17e048('0x1d1b')&&(_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x2580')]=_0x40feab[_0x17e048('0x16fe')][_0x17e048('0x1ef5')]?_0x40feab['gotop'][_0x17e048('0x1ef5')][_0x17e048('0x1745')]('$')[0x0]:undefined,_0x40feab['gotop'][_0x17e048('0x1b6f')]=_0x40feab[_0x17e048('0x16fe')][_0x17e048('0xfca')]?_0x17e048('0xd41')+_0x40feab[_0x17e048('0x16fe')]['callerID']:undefined);_0x40feab[_0x17e048('0x1f72')]=_0x54f922,_0x40feab[_0x17e048('0x2584')]=_0x1810fb;function _0x54f922(){var _0x3c1bef=_0x17e048;_0x40feab[_0x3c1bef('0xcd2')]=[];var _0x2979d8=[];_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0x62e')]&&_0x40feab['gotop']['type'][_0x3c1bef('0x20dd')]()==='outbound'&&_0x40feab['gotop'][_0x3c1bef('0xf44')]===_0x3c1bef('0x3d2')&&(_0x40feab['gotop'][_0x3c1bef('0x1ef5')]=_0x508913[_0x3c1bef('0x27f6')]?(_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0x2580')]||'')+_0x3c1bef('0x5d8')+_0x508913[_0x3c1bef('0x27f6')]+'}':(_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0x2580')]||'')+'${EXTEN}',_0x508913[_0x3c1bef('0x150c')]!==_0x3c1bef('0x23ca')?_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0x2116')]['indexOf'](_0x3c1bef('0x767'))<0x0&&(_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0x2116')]+='U(xcally-mixmonitor-context)'):_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0x2116')]=_0x40feab[_0x3c1bef('0x16fe')]['options'][_0x3c1bef('0x1b42')]('U(xcally-mixmonitor-context)',''));if(_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0xf44')]&&_0x40feab[_0x3c1bef('0x16fe')]['appType']===_0x3c1bef('0x261d')){}else switch((_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0xf2b')]||_0x40feab[_0x3c1bef('0x16fe')]['appType'])['toLowerCase']()){case _0x3c1bef('0x2aa'):_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0x26d2')]=_0x40feab[_0x3c1bef('0x16fe')][_0x3c1bef('0x2623')]+'='+_0x40feab['gotop']['value'];break;case'custom':break;default:_0x2979d8[0x0]=_0x40feab['gotop'][_0x3c1bef('0xb33')],_0x40feab['gotop']['appdata']=_0x2979d8['join'](',');}_0x1810fb(_0x40feab[_0x3c1bef('0x16fe')]);}function _0x1810fb(_0x324929){var _0x3c4d35=_0x17e048;_0x4b4e35[_0x3c4d35('0x11ed')](_0x324929);}}const _0x435025=_0x30a572;_0x5d691d[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),'$mdDialog',_0xb635d2('0x1e23'),_0xb635d2('0x9ab'),_0xb635d2('0x134c'),_0xb635d2('0x10e0'),'toasty',_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x5d691d(_0x372090,_0x5d45f2,_0x323932,_0x4ac3d3,_0x53911d,_0x52c9a2,_0x5d0e64,_0xd69fe9,_0x1568f9,_0xe1382a){var _0x60ff04=_0xb635d2,_0x55cded=this;_0x55cded['currentUser']=_0x1568f9[_0x60ff04('0x1ef8')](),_0x55cded['errors']=[],_0x55cded[_0x60ff04('0x13e4')]=_0x60ff04('0xf42'),_0x55cded[_0x60ff04('0x134c')]=angular['copy'](_0x53911d),_0x55cded[_0x60ff04('0x10e0')]=_0x52c9a2,_0x55cded[_0x60ff04('0x1a83')]=![],_0x55cded[_0x60ff04('0x1ea6')]=[_0x60ff04('0x2210'),'custom','list'],_0x55cded[_0x60ff04('0xb3d')]=_0xe1382a,_0x55cded[_0x60ff04('0x1af')]=_0x4ac3d3['getDaysOfWeek'](),_0x55cded[_0x60ff04('0x253d')]=_0x4ac3d3['getMonthNumber'](),_0x55cded[_0x60ff04('0x631')]=_0x4ac3d3[_0x60ff04('0x1b22')](),_0x55cded[_0x60ff04('0x2347')]=_0x4ac3d3[_0x60ff04('0xdee')]();if(!_0x55cded['interval'])_0x55cded['interval']={'interval':_0x60ff04('0x2292')},_0x55cded[_0x60ff04('0x62e')]='always',_0x55cded[_0x60ff04('0x13e4')]=_0x60ff04('0x1947'),_0x55cded[_0x60ff04('0x1a83')]=!![];else{if(_0x55cded[_0x60ff04('0x134c')][_0x60ff04('0x134c')]!=='*,*,*,*'){_0x55cded[_0x60ff04('0x62e')]=_0x60ff04('0x261d');var _0x1f77c5=_0x55cded[_0x60ff04('0x134c')][_0x60ff04('0x134c')][_0x60ff04('0x1745')](','),_0x5e9a16=_0x1f77c5[0x0],_0x7e5de7=_0x1f77c5[0x1],_0xceed28=_0x1f77c5[0x2],_0x34abc0=_0x1f77c5[0x3];if(_0x5e9a16!=='*'){var _0x15f9a9=_0x5e9a16[_0x60ff04('0x1745')]('-')[0x0],_0x4bae91=_0x5e9a16['split']('-')[0x1],_0x107801;_0x107801=new Date(),_0x107801['setHours'](Number(_0x15f9a9[_0x60ff04('0x1745')](':')[0x0])),_0x107801['setMinutes'](Number(_0x15f9a9[_0x60ff04('0x1745')](':')[0x1])),_0x55cded[_0x60ff04('0xde9')]=_0x107801,_0x107801=new Date(),_0x107801[_0x60ff04('0x19f6')](Number(_0x4bae91['split'](':')[0x0])),_0x107801[_0x60ff04('0x6b6')](Number(_0x4bae91[_0x60ff04('0x1745')](':')[0x1])),_0x55cded[_0x60ff04('0x12ef')]=_0x107801;}_0x7e5de7!=='*'&&(_0x55cded[_0x60ff04('0x2359')]=_0x7e5de7[_0x60ff04('0x1745')]('-')[0x0],_0x55cded[_0x60ff04('0xa40')]=_0x7e5de7[_0x60ff04('0x1745')]('-')[0x1]),_0xceed28!=='*'&&(_0x55cded['monthDayFrom']=_0xceed28[_0x60ff04('0x1745')]('-')[0x0],_0x55cded[_0x60ff04('0x3d6')]=_0xceed28[_0x60ff04('0x1745')]('-')[0x1]),_0x34abc0!=='*'&&(_0x55cded[_0x60ff04('0x1b2a')]=_0x34abc0[_0x60ff04('0x1745')]('-')[0x0],_0x55cded['monthTo']=_0x34abc0['split']('-')[0x1]);}else _0x55cded[_0x60ff04('0x62e')]='always';}_0x372090[_0x60ff04('0x2ef')]['id']&&!_0x55cded[_0x60ff04('0x134c')]['application']&&(_0x55cded[_0x60ff04('0x134c')]['IntervalId']=_0x372090[_0x60ff04('0x2ef')]['id']);_0x55cded[_0x60ff04('0x134c')][_0x60ff04('0x1fc1')]&&_0x55cded[_0x60ff04('0x134c')]['application']&&(_0x55cded[_0x60ff04('0x62e')]=_0x60ff04('0x15a8'));_0x55cded['addNewInterval']=_0x250f4f,_0x55cded[_0x60ff04('0x201f')]=_0x111536,_0x55cded[_0x60ff04('0x2584')]=_0x3b68d7;_0x55cded['interval']['application']&&(_0x1568f9[_0x60ff04('0x179e')]('admin')?_0xd69fe9['interval'][_0x60ff04('0x22d5')]({'fields':_0x60ff04('0x13df'),'IntervalId':_0x60ff04('0x1046'),'nolimit':!![]})[_0x60ff04('0xe59')][_0x60ff04('0xe19')](function(_0x4e092b){var _0x348859=_0x60ff04;_0x55cded[_0x348859('0x10e0')]=_0x4e092b[_0x348859('0x16a7')]||[];})['catch'](function(_0x2df4b6){var _0x246dd1=_0x60ff04;_0x5d0e64[_0x246dd1('0x8c8')]({'title':_0x2df4b6[_0x246dd1('0x2833')]?_0x246dd1('0x27f2')+_0x2df4b6[_0x246dd1('0x2833')]+_0x246dd1('0x1b7c')+_0x2df4b6[_0x246dd1('0x1fd7')]:_0x246dd1('0x1c1c'),'msg':_0x2df4b6[_0x246dd1('0x11d0')]?JSON[_0x246dd1('0x3ad')](_0x2df4b6[_0x246dd1('0x11d0')]):_0x2df4b6[_0x246dd1('0x94f')]()});}):_0xd69fe9[_0x60ff04('0x134c')]['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x60ff04('0x1046'),'nolimit':!![]})[_0x60ff04('0xe59')]['then'](function(_0x290931){var _0x20c241=_0x60ff04;_0x55cded[_0x20c241('0x10e0')]=_0x290931[_0x20c241('0x16a7')]||[];})[_0x60ff04('0xe19')](function(){var _0x3a6fa5=_0x60ff04;return _0xd69fe9[_0x3a6fa5('0xb59')][_0x3a6fa5('0x22d5')]({'userProfileId':_0x55cded['currentUser'][_0x3a6fa5('0x1d04')],'sectionId':0x3ec})[_0x3a6fa5('0xe59')];})['then'](function(_0x3e8d82){var _0x24e0f4=_0x60ff04,_0x173b9f=_0x3e8d82&&_0x3e8d82[_0x24e0f4('0x16a7')]?_0x3e8d82[_0x24e0f4('0x16a7')][0x0]:null;if(!_0x173b9f)_0x55cded[_0x24e0f4('0x10e0')]=[];else{if(!_0x173b9f[_0x24e0f4('0x11fd')])return _0xd69fe9[_0x24e0f4('0xd49')]['get']({'sectionId':_0x173b9f['id']})[_0x24e0f4('0xe59')][_0x24e0f4('0xe19')](function(_0x3612ec){var _0x5d3af5=_0x24e0f4,_0x16e94e=_0x3612ec&&_0x3612ec[_0x5d3af5('0x16a7')]?_0x3612ec['rows']:[],_0x2aa307=[],_0x374eb4=null;_0x55cded['interval']&&(_0x374eb4=_0x32d445()[_0x5d3af5('0xf15')](_0x55cded[_0x5d3af5('0x10e0')],{'name':_0x55cded[_0x5d3af5('0x134c')][_0x5d3af5('0x1fc1')]})),_0x374eb4&&!_0x32d445()[_0x5d3af5('0x201a')](_0x16e94e,['resourceId',_0x374eb4['id']])&&_0x55cded[_0x5d3af5('0x10e0')][_0x5d3af5('0x1d7e')](function(_0x2b9e22){var _0x47b8a1=_0x5d3af5;_0x2b9e22['id']===_0x374eb4['id']&&(_0x2b9e22[_0x47b8a1('0x1e9d')]=![],_0x2aa307[_0x47b8a1('0xb76')](_0x2b9e22));}),_0x55cded[_0x5d3af5('0x10e0')]=_0x2aa307;});}})[_0x60ff04('0x223b')](function(_0x22f626){var _0x29a8a3=_0x60ff04;_0x5d0e64[_0x29a8a3('0x8c8')]({'title':_0x22f626[_0x29a8a3('0x2833')]?'API:'+_0x22f626[_0x29a8a3('0x2833')]+_0x29a8a3('0x1b7c')+_0x22f626[_0x29a8a3('0x1fd7')]:'SYSTEM:GET_INTERVALS','msg':_0x22f626['data']?JSON['stringify'](_0x22f626['data']):_0x22f626[_0x29a8a3('0x94f')]()});}));function _0x1f70d0(){var _0x98857b=_0x60ff04;switch(_0x55cded[_0x98857b('0x62e')]){case _0x98857b('0x2210'):case _0x98857b('0x15a8'):return'*,*,*,*';case'custom':{var _0xbacd74=[];if(_0x55cded['timeRangeFrom']!=='*'&&_0x55cded['timeRangeFrom']&&_0x55cded[_0x98857b('0x12ef')]){var _0x4c58bb=(_0x55cded[_0x98857b('0xde9')][_0x98857b('0x757')]()<0xa?'0':'')+_0x55cded[_0x98857b('0xde9')][_0x98857b('0x757')]()+':'+((_0x55cded['timeRangeFrom'][_0x98857b('0x961')]()<0xa?'0':'')+_0x55cded[_0x98857b('0xde9')][_0x98857b('0x961')]()),_0x1751ee=(_0x55cded[_0x98857b('0x12ef')]['getHours']()<0xa?'0':'')+_0x55cded['timeRangeTo']['getHours']()+':'+((_0x55cded[_0x98857b('0x12ef')][_0x98857b('0x961')]()<0xa?'0':'')+_0x55cded['timeRangeTo']['getMinutes']());_0xbacd74[_0x98857b('0xb76')](_0x4c58bb+'-'+_0x1751ee);}else _0xbacd74[_0x98857b('0xb76')]('*');return _0x55cded[_0x98857b('0x2359')]?_0x55cded[_0x98857b('0xa40')]?_0xbacd74[_0x98857b('0xb76')](_0x55cded[_0x98857b('0x2359')]+'-'+_0x55cded['dayOfWeekTo']):_0xbacd74[_0x98857b('0xb76')](_0x55cded[_0x98857b('0x2359')]):_0xbacd74[_0x98857b('0xb76')]('*'),_0x55cded[_0x98857b('0x146b')]?_0x55cded['monthDayTo']?_0xbacd74[_0x98857b('0xb76')](_0x55cded['monthDayFrom']+'-'+_0x55cded[_0x98857b('0x3d6')]):_0xbacd74[_0x98857b('0xb76')](_0x55cded[_0x98857b('0x146b')]):_0xbacd74[_0x98857b('0xb76')]('*'),_0x55cded['monthFrom']?_0x55cded['monthTo']?_0xbacd74['push'](_0x55cded[_0x98857b('0x1b2a')]+'-'+_0x55cded[_0x98857b('0xac6')]):_0xbacd74[_0x98857b('0xb76')](_0x55cded[_0x98857b('0x1b2a')]):_0xbacd74[_0x98857b('0xb76')]('*'),_0xbacd74[_0x98857b('0x1537')]();}}}function _0x250f4f(){var _0x58f353=_0x60ff04;_0x55cded[_0x58f353('0xcd2')]=[],_0x55cded[_0x58f353('0x134c')]['interval']=_0x1f70d0(),_0xd69fe9[_0x58f353('0x134c')][_0x58f353('0xe5e')](_0x55cded[_0x58f353('0x134c')])[_0x58f353('0xe59')][_0x58f353('0xe19')](function(_0x156662){var _0x503bf9=_0x58f353;_0x55cded[_0x503bf9('0x10e0')][_0x503bf9('0xb76')](_0x156662),_0x5d0e64[_0x503bf9('0x425')]({'title':'Interval\x20properly\x20created','msg':_0x55cded[_0x503bf9('0x134c')]['name']?_0x55cded[_0x503bf9('0x134c')]['name']+_0x503bf9('0x105f'):''}),_0x3b68d7();})['catch'](function(_0x2ea0c8){var _0x4f3754=_0x58f353;console['error'](_0x2ea0c8),_0x55cded[_0x4f3754('0xcd2')]=_0x2ea0c8[_0x4f3754('0x11d0')][_0x4f3754('0xcd2')]||[{'message':_0x2ea0c8['toString'](),'type':_0x4f3754('0x176b')}];});}function _0x111536(){var _0x5468c4=_0x60ff04;_0x55cded[_0x5468c4('0xcd2')]=[],_0x55cded[_0x5468c4('0x134c')][_0x5468c4('0x134c')]=_0x1f70d0(),_0x55cded['interval']['application']?(_0x55cded[_0x5468c4('0x62e')]!=='list'&&(_0x55cded['interval'][_0x5468c4('0x1fc1')]=null),_0x3b68d7(_0x55cded[_0x5468c4('0x134c')])):_0xd69fe9['interval'][_0x5468c4('0xa70')]({'id':_0x55cded[_0x5468c4('0x134c')]['id']},_0x55cded['interval'])[_0x5468c4('0xe59')]['then'](function(_0x28d11c){var _0x21944d=_0x5468c4,_0x1a7aa3=_0x32d445()[_0x21944d('0xf15')](_0x55cded[_0x21944d('0x10e0')],{'id':_0x28d11c['id']});_0x1a7aa3&&_0x32d445()[_0x21944d('0x1d8')](_0x1a7aa3,_0x28d11c),_0x5d0e64['success']({'title':_0x21944d('0x228'),'msg':_0x21944d('0x8b4')}),_0x3b68d7();})['catch'](function(_0x41ce40){var _0x3fe0b3=_0x5468c4;console['error'](_0x41ce40),_0x55cded[_0x3fe0b3('0xcd2')]=_0x41ce40[_0x3fe0b3('0x11d0')][_0x3fe0b3('0xcd2')]||[{'message':_0x41ce40[_0x3fe0b3('0x94f')](),'type':_0x3fe0b3('0x1ff2')}];});}function _0x3b68d7(_0x401817){var _0x272c75=_0x60ff04;_0x5d45f2[_0x272c75('0x11ed')](_0x401817);}}const _0x3fcba2=_0x5d691d;_0x31fbc2[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0x2452'),_0xb635d2('0x688'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x31fbc2(_0x3eecd7,_0x214fde,_0x58d51e,_0x5ebea3,_0x1e5fba,_0x4615a7,_0x4c33ad,_0x24ffcc){var _0x57737e=_0xb635d2,_0x309b24=this;_0x309b24[_0x57737e('0x15a5')]=_0x4c33ad[_0x57737e('0x1ef8')](),_0x309b24[_0x57737e('0xcd2')]=[],_0x309b24[_0x57737e('0x13e4')]='FAX.EDIT_'+(_0x5ebea3[_0x57737e('0xf44')]||_0x5ebea3[_0x57737e('0xf2b')])[_0x57737e('0x25f7')](),_0x309b24[_0x57737e('0xc09')]=angular[_0x57737e('0x89')](_0x5ebea3),_0x309b24[_0x57737e('0xb3d')]=_0x24ffcc,_0x309b24['hasModulePermissions']={};if(_0x309b24['noop']['appdata'])switch(_0x309b24['noop']['appType']?_0x309b24[_0x57737e('0xc09')][_0x57737e('0xf44')][_0x57737e('0x20dd')]():_0x309b24[_0x57737e('0xc09')][_0x57737e('0xf2b')][_0x57737e('0x20dd')]()){case _0x57737e('0x261d'):break;case _0x57737e('0xc11'):{var _0x395356=_0x309b24[_0x57737e('0xc09')]['appdata'][_0x57737e('0x1745')](',');_0x309b24[_0x57737e('0xc09')][_0x57737e('0x6e4')]=_0x395356[0x0],_0x309b24[_0x57737e('0xc09')][_0x57737e('0x174b')]=_0x395356[0x1],_0x309b24['noop'][_0x57737e('0xfcc')]=_0x395356[_0x57737e('0xa19')](0x2,_0x395356[_0x57737e('0x25ae')])[_0x57737e('0x1537')](',');}break;case _0x57737e('0x1321'):{var _0x441667=_0x309b24[_0x57737e('0xc09')][_0x57737e('0x26d2')][_0x57737e('0x1745')](',');_0x309b24[_0x57737e('0xc09')][_0x57737e('0x22be')]=_0x441667[0x0],_0x309b24['noop']['secretaccesskey']=_0x441667[0x1],_0x309b24[_0x57737e('0xc09')][_0x57737e('0x206a')]=_0x441667[0x2],_0x309b24[_0x57737e('0xc09')]['botname']=_0x441667[0x3],_0x309b24['noop'][_0x57737e('0xfcc')]=_0x441667[_0x57737e('0xa19')](0x4,_0x441667[_0x57737e('0x25ae')])['join'](',');}break;case'autoreply':{var _0x3a6206=_0x309b24[_0x57737e('0xc09')][_0x57737e('0x26d2')][_0x57737e('0x1745')](',');_0x309b24[_0x57737e('0xc09')][_0x57737e('0x1ec4')]=isNaN(_0x3a6206[0x0])?_0x3a6206[0x0]:parseInt(_0x3a6206[0x0],0xa),_0x309b24[_0x57737e('0xc09')][_0x57737e('0x1bc6')]=_0x3a6206[_0x57737e('0xa19')](0x1,_0x3a6206['length'])[_0x57737e('0x1537')](',');}break;case'message':_0x309b24['noop']['text']=_0x309b24[_0x57737e('0xc09')]['appdata'];break;case _0x57737e('0x2aa'):_0x309b24[_0x57737e('0xc09')]['name']=_0x309b24[_0x57737e('0xc09')]['appdata'][_0x57737e('0x1745')]('=')[0x0],_0x309b24[_0x57737e('0xc09')][_0x57737e('0x2')]=_0x309b24[_0x57737e('0xc09')][_0x57737e('0x26d2')]['split']('=')[0x1];break;case _0x57737e('0x401'):_0x309b24[_0x57737e('0xc09')][_0x57737e('0x38b')]=_0x309b24[_0x57737e('0xc09')][_0x57737e('0x26d2')];break;default:{var _0x36425f=_0x309b24['noop']['appdata'][_0x57737e('0x1745')](',');_0x309b24[_0x57737e('0xc09')]['value']=_0x32d445()[_0x57737e('0x14b4')](_0x36425f[0x0])?_0x36425f[0x0]:isNaN(_0x36425f[0x0])?_0x36425f[0x0]:parseInt(_0x36425f[0x0],0xa);}break;}else{}_0x309b24['noop'][_0x57737e('0x62e')]&&_0x309b24[_0x57737e('0xc09')]['type'][_0x57737e('0x20dd')]()==='outbound'&&_0x309b24[_0x57737e('0xc09')]['appType']['toLowerCase']()===_0x57737e('0x1d1b')&&(_0x309b24[_0x57737e('0xc09')][_0x57737e('0x2580')]=_0x309b24[_0x57737e('0xc09')][_0x57737e('0x1ef5')]?_0x309b24[_0x57737e('0xc09')][_0x57737e('0x1ef5')][_0x57737e('0x1745')]('$')[0x0]:undefined,_0x309b24['noop']['callerId']=_0x309b24[_0x57737e('0xc09')][_0x57737e('0xfca')]?_0x57737e('0xd41')+_0x309b24['noop'][_0x57737e('0xfca')]:undefined);_0x309b24[_0x57737e('0x1f72')]=_0x5e3f6b,_0x309b24[_0x57737e('0x2584')]=_0x5124b2;function _0x5e3f6b(){var _0x1ae6f1=_0x57737e;_0x309b24[_0x1ae6f1('0xcd2')]=[];var _0x4a948a=[];_0x309b24[_0x1ae6f1('0xc09')]['type']&&_0x309b24['noop']['type'][_0x1ae6f1('0x20dd')]()==='outbound'&&_0x309b24[_0x1ae6f1('0xc09')]['appType']===_0x1ae6f1('0x3d2')&&(_0x309b24[_0x1ae6f1('0xc09')][_0x1ae6f1('0x1ef5')]=_0x1e5fba[_0x1ae6f1('0x27f6')]?(_0x309b24['noop'][_0x1ae6f1('0x2580')]||'')+_0x1ae6f1('0x5d8')+_0x1e5fba['cutdigits']+'}':(_0x309b24[_0x1ae6f1('0xc09')][_0x1ae6f1('0x2580')]||'')+_0x1ae6f1('0x16b5'),_0x1e5fba['recordingFormat']!==_0x1ae6f1('0x23ca')?_0x309b24[_0x1ae6f1('0xc09')][_0x1ae6f1('0x2116')]['indexOf'](_0x1ae6f1('0x767'))<0x0&&(_0x309b24['noop'][_0x1ae6f1('0x2116')]+=_0x1ae6f1('0x767')):_0x309b24['noop'][_0x1ae6f1('0x2116')]=_0x309b24['noop']['options']['replace'](_0x1ae6f1('0x767'),''));if(_0x309b24['noop'][_0x1ae6f1('0xf44')]&&_0x309b24[_0x1ae6f1('0xc09')][_0x1ae6f1('0xf44')]===_0x1ae6f1('0x261d')){}else switch((_0x309b24[_0x1ae6f1('0xc09')][_0x1ae6f1('0xf2b')]||_0x309b24[_0x1ae6f1('0xc09')]['appType'])[_0x1ae6f1('0x20dd')]()){case'set':_0x309b24[_0x1ae6f1('0xc09')][_0x1ae6f1('0x26d2')]=_0x309b24[_0x1ae6f1('0xc09')][_0x1ae6f1('0x2623')]+'='+_0x309b24[_0x1ae6f1('0xc09')][_0x1ae6f1('0x2')];break;case _0x1ae6f1('0x261d'):break;default:_0x4a948a[0x0]=_0x309b24['noop'][_0x1ae6f1('0x2')],_0x309b24[_0x1ae6f1('0xc09')]['appdata']=_0x4a948a[_0x1ae6f1('0x1537')](',');}_0x5124b2(_0x309b24['noop']);}function _0x5124b2(_0x44e6ce){var _0x1678d6=_0x57737e;_0x3eecd7[_0x1678d6('0x11ed')](_0x44e6ce);}}const _0x4ad264=_0x31fbc2;_0x254a53['$inject']=['$mdDialog','$q','toasty',_0xb635d2('0x2452'),_0xb635d2('0x688'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x254a53(_0x2513da,_0x37e27e,_0xbf27e6,_0x3a1219,_0x453033,_0x431ee2,_0x55bc17,_0x471187){var _0x429099=_0xb635d2,_0x594c53=this;_0x594c53['currentUser']=_0x55bc17[_0x429099('0x1ef8')](),_0x594c53[_0x429099('0xcd2')]=[],_0x594c53[_0x429099('0x13e4')]=_0x429099('0x1f2e')+(_0x3a1219[_0x429099('0xf44')]||_0x3a1219[_0x429099('0xf2b')])[_0x429099('0x25f7')](),_0x594c53[_0x429099('0x26a8')]=angular[_0x429099('0x89')](_0x3a1219),_0x594c53['crudPermissions']=_0x471187,_0x594c53['hasModulePermissions']={};if(_0x594c53['queue']['appdata'])switch(_0x594c53[_0x429099('0x26a8')]['appType']?_0x594c53[_0x429099('0x26a8')]['appType'][_0x429099('0x20dd')]():_0x594c53[_0x429099('0x26a8')][_0x429099('0xf2b')][_0x429099('0x20dd')]()){case _0x429099('0x261d'):break;case _0x429099('0xc11'):{var _0x93a595=_0x594c53[_0x429099('0x26a8')][_0x429099('0x26d2')][_0x429099('0x1745')](',');_0x594c53[_0x429099('0x26a8')]['key']=_0x93a595[0x0],_0x594c53[_0x429099('0x26a8')][_0x429099('0x174b')]=_0x93a595[0x1],_0x594c53[_0x429099('0x26a8')][_0x429099('0xfcc')]=_0x93a595['slice'](0x2,_0x93a595[_0x429099('0x25ae')])[_0x429099('0x1537')](',');}break;case _0x429099('0x1321'):{var _0x3365bd=_0x594c53['queue'][_0x429099('0x26d2')][_0x429099('0x1745')](',');_0x594c53[_0x429099('0x26a8')]['accesskeyid']=_0x3365bd[0x0],_0x594c53['queue'][_0x429099('0x700')]=_0x3365bd[0x1],_0x594c53['queue'][_0x429099('0x206a')]=_0x3365bd[0x2],_0x594c53[_0x429099('0x26a8')]['botname']=_0x3365bd[0x3],_0x594c53[_0x429099('0x26a8')][_0x429099('0xfcc')]=_0x3365bd[_0x429099('0xa19')](0x4,_0x3365bd[_0x429099('0x25ae')])[_0x429099('0x1537')](',');}break;case _0x429099('0x400'):{var _0x17c4bb=_0x594c53[_0x429099('0x26a8')]['appdata']['split'](',');_0x594c53['queue'][_0x429099('0x1ec4')]=isNaN(_0x17c4bb[0x0])?_0x17c4bb[0x0]:parseInt(_0x17c4bb[0x0],0xa),_0x594c53[_0x429099('0x26a8')][_0x429099('0x1bc6')]=_0x17c4bb['slice'](0x1,_0x17c4bb['length'])[_0x429099('0x1537')](',');}break;case _0x429099('0x27e8'):_0x594c53['queue'][_0x429099('0x1bc6')]=_0x594c53['queue'][_0x429099('0x26d2')];break;case _0x429099('0x2aa'):_0x594c53[_0x429099('0x26a8')][_0x429099('0x2623')]=_0x594c53[_0x429099('0x26a8')][_0x429099('0x26d2')][_0x429099('0x1745')]('=')[0x0],_0x594c53[_0x429099('0x26a8')]['value']=_0x594c53[_0x429099('0x26a8')][_0x429099('0x26d2')][_0x429099('0x1745')]('=')[0x1];break;case _0x429099('0x401'):_0x594c53['queue'][_0x429099('0x38b')]=_0x594c53['queue']['appdata'];break;default:{var _0x5cbfbe=_0x594c53[_0x429099('0x26a8')]['appdata'][_0x429099('0x1745')](',');_0x594c53[_0x429099('0x26a8')][_0x429099('0x26a8')]=_0x32d445()[_0x429099('0x14b4')](_0x5cbfbe[0x0])?_0x5cbfbe[0x0]:isNaN(_0x5cbfbe[0x0])?_0x5cbfbe[0x0]:parseInt(_0x5cbfbe[0x0],0xa),_0x594c53['queue']['timeout']=_0x32d445()[_0x429099('0x14b4')](_0x5cbfbe[0x1])?_0x5cbfbe[0x1]:isNaN(_0x5cbfbe[0x1])?_0x5cbfbe[0x1]:parseInt(_0x5cbfbe[0x1],0xa);}break;}else _0x594c53[_0x429099('0x26a8')]['queue']=0x12c,_0x594c53[_0x429099('0x26a8')][_0x429099('0x2058')]=0x12c;_0x594c53['queue'][_0x429099('0x62e')]&&_0x594c53[_0x429099('0x26a8')][_0x429099('0x62e')][_0x429099('0x20dd')]()===_0x429099('0x1fdf')&&_0x594c53[_0x429099('0x26a8')][_0x429099('0xf44')]['toLowerCase']()===_0x429099('0x1d1b')&&(_0x594c53[_0x429099('0x26a8')][_0x429099('0x2580')]=_0x594c53[_0x429099('0x26a8')]['phone']?_0x594c53['queue'][_0x429099('0x1ef5')][_0x429099('0x1745')]('$')[0x0]:undefined,_0x594c53[_0x429099('0x26a8')][_0x429099('0x1b6f')]=_0x594c53[_0x429099('0x26a8')][_0x429099('0xfca')]?_0x429099('0xd41')+_0x594c53[_0x429099('0x26a8')][_0x429099('0xfca')]:undefined);_0x594c53[_0x429099('0x1f72')]=_0xe72dd5,_0x594c53[_0x429099('0x2584')]=_0xe67795,_0x55bc17[_0x429099('0x179e')](_0x429099('0xd14'))?_0x431ee2[_0x429099('0x3f4')][_0x429099('0x22d5')]({'fields':_0x429099('0x1555'),'sort':_0x429099('0x2623'),'nolimit':_0x429099('0x2206')})[_0x429099('0xe59')][_0x429099('0xe19')](function(_0x29d46c){var _0x44b299=_0x429099;_0x594c53[_0x44b299('0x671')]=_0x29d46c[_0x44b299('0x16a7')]||[];})[_0x429099('0x223b')](function(_0x4ef18b){var _0x538f50=_0x429099;_0xbf27e6[_0x538f50('0x8c8')]({'title':_0x4ef18b[_0x538f50('0x2833')]?_0x538f50('0x27f2')+_0x4ef18b[_0x538f50('0x2833')]+_0x538f50('0x1b7c')+_0x4ef18b[_0x538f50('0x1fd7')]:_0x538f50('0x19e6'),'msg':_0x4ef18b[_0x538f50('0x11d0')]?JSON[_0x538f50('0x3ad')](_0x4ef18b['data']):_0x4ef18b[_0x538f50('0x94f')]()});}):_0x431ee2[_0x429099('0x3f4')][_0x429099('0x22d5')]({'fields':_0x429099('0x1555'),'sort':_0x429099('0x2623'),'nolimit':'true'})['$promise']['then'](function(_0x2d0d03){var _0x99d071=_0x429099;_0x594c53[_0x99d071('0x671')]=_0x2d0d03[_0x99d071('0x16a7')]||[];})[_0x429099('0xe19')](function(){var _0x4557a7=_0x429099;return _0x431ee2[_0x4557a7('0xb59')]['get']({'userProfileId':_0x594c53[_0x4557a7('0x15a5')][_0x4557a7('0x1d04')],'sectionId':0x385})[_0x4557a7('0xe59')];})[_0x429099('0xe19')](function(_0x5d069d){var _0x27ca75=_0x429099,_0xb52732=_0x5d069d&&_0x5d069d[_0x27ca75('0x16a7')]?_0x5d069d[_0x27ca75('0x16a7')][0x0]:null;if(!_0xb52732){var _0x2fa680=[],_0x381e38=null;_0x594c53['queue']&&(_0x381e38=_0x32d445()[_0x27ca75('0xf15')](_0x594c53['queues'],{'name':_0x594c53[_0x27ca75('0x26a8')][_0x27ca75('0x26a8')]}));for(var _0x24258f=0x0;_0x24258f<_0x594c53[_0x27ca75('0x671')][_0x27ca75('0x25ae')];_0x24258f++){_0x381e38&&_0x594c53['queues'][_0x24258f]['id']===_0x381e38['id']&&(_0x594c53[_0x27ca75('0x671')][_0x24258f]['canSelect']=![],_0x2fa680[_0x27ca75('0xb76')](_0x594c53['queues'][_0x24258f]));}_0x594c53[_0x27ca75('0x671')]=_0x2fa680;}else{if(!_0xb52732[_0x27ca75('0x11fd')])return _0x431ee2[_0x27ca75('0xd49')][_0x27ca75('0x22d5')]({'sectionId':_0xb52732['id']})[_0x27ca75('0xe59')][_0x27ca75('0xe19')](function(_0x1c73b8){var _0xfde456=_0x27ca75,_0x4e1222=_0x32d445()[_0xfde456('0x65a')](_0x1c73b8['rows'],function(_0x57ee29){var _0x27915d=_0xfde456;return _0x32d445()[_0x27915d('0xf15')](_0x594c53[_0x27915d('0x671')],{'id':_0x57ee29[_0x27915d('0x1104')]});}),_0x497767=null;_0x594c53[_0xfde456('0x26a8')]&&(_0x497767=_0x32d445()['find'](_0x594c53['queues'],{'name':_0x594c53[_0xfde456('0x26a8')][_0xfde456('0x26a8')]}));if(_0x497767&&!_0x32d445()[_0xfde456('0x201a')](_0x4e1222,['id',_0x497767['id']])){var _0x14b5bf=_0x32d445()[_0xfde456('0xf15')](_0x594c53[_0xfde456('0x671')],{'id':_0x497767['id']});_0x14b5bf[_0xfde456('0x1e9d')]=![],_0x4e1222[_0xfde456('0xb76')](_0x14b5bf);}_0x594c53['queues']=_0x4e1222;});}})[_0x429099('0x223b')](function(_0xffd587){var _0x53ef31=_0x429099;_0xbf27e6[_0x53ef31('0x8c8')]({'title':_0xffd587[_0x53ef31('0x2833')]?_0x53ef31('0x27f2')+_0xffd587[_0x53ef31('0x2833')]+_0x53ef31('0x1b7c')+_0xffd587[_0x53ef31('0x1fd7')]:_0x53ef31('0x1716'),'msg':_0xffd587[_0x53ef31('0x11d0')]?JSON[_0x53ef31('0x3ad')](_0xffd587['data']):_0xffd587[_0x53ef31('0x94f')]()});});function _0xe72dd5(){var _0xc481a5=_0x429099;_0x594c53[_0xc481a5('0xcd2')]=[];var _0xaa9d72=[];_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x62e')]&&_0x594c53['queue']['type'][_0xc481a5('0x20dd')]()==='outbound'&&_0x594c53['queue'][_0xc481a5('0xf44')]===_0xc481a5('0x3d2')&&(_0x594c53[_0xc481a5('0x26a8')]['phone']=_0x453033['cutdigits']?(_0x594c53[_0xc481a5('0x26a8')]['prefix']||'')+_0xc481a5('0x5d8')+_0x453033[_0xc481a5('0x27f6')]+'}':(_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x2580')]||'')+_0xc481a5('0x16b5'),_0x453033['recordingFormat']!==_0xc481a5('0x23ca')?_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x2116')][_0xc481a5('0x281c')](_0xc481a5('0x767'))<0x0&&(_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x2116')]+=_0xc481a5('0x767')):_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x2116')]=_0x594c53['queue'][_0xc481a5('0x2116')][_0xc481a5('0x1b42')]('U(xcally-mixmonitor-context)',''));var _0x2c797f=_0x32d445()[_0xc481a5('0xf15')](_0x594c53['queues'],{'name':_0x594c53['queue'][_0xc481a5('0x26a8')]});_0x2c797f&&(_0x594c53[_0xc481a5('0x26a8')][_0x32d445()[_0xc481a5('0xbf6')](_0xc481a5('0x625'))+_0xc481a5('0x27a3')]=_0x2c797f['id']);if(_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0xf44')]&&_0x594c53[_0xc481a5('0x26a8')]['appType']===_0xc481a5('0x261d')){}else switch((_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0xf2b')]||_0x594c53[_0xc481a5('0x26a8')]['appType'])[_0xc481a5('0x20dd')]()){case'set':_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x26d2')]=_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x2623')]+'='+_0x594c53['queue'][_0xc481a5('0x2')];break;case'custom':break;default:_0xaa9d72[0x0]=_0x594c53[_0xc481a5('0x26a8')]['queue'],_0xaa9d72[0x1]=_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x2058')],_0x594c53[_0xc481a5('0x26a8')][_0xc481a5('0x26d2')]=_0xaa9d72[_0xc481a5('0x1537')](',');}_0xe67795(_0x594c53['queue']);}function _0xe67795(_0x5c2789){var _0x11f436=_0x429099;_0x2513da[_0x11f436('0x11ed')](_0x5c2789);}}const _0x2c9414=_0x254a53;_0x41dbb1[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x2452'),_0xb635d2('0x688'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x41dbb1(_0x31cfde,_0x44ad93,_0x4e6d86,_0x1b95b3,_0x57401d,_0x531d15,_0x51ae11,_0x10a6d9){var _0x1def97=_0xb635d2,_0x278679=this;_0x278679[_0x1def97('0x15a5')]=_0x51ae11[_0x1def97('0x1ef8')](),_0x278679[_0x1def97('0xcd2')]=[],_0x278679[_0x1def97('0x13e4')]=_0x1def97('0x1f2e')+(_0x1b95b3[_0x1def97('0xf44')]||_0x1b95b3[_0x1def97('0xf2b')])[_0x1def97('0x25f7')](),_0x278679[_0x1def97('0x1917')]=angular[_0x1def97('0x89')](_0x1b95b3),_0x278679['crudPermissions']=_0x10a6d9,_0x278679[_0x1def97('0x1ccb')]={};if(_0x278679[_0x1def97('0x1917')][_0x1def97('0x26d2')])switch(_0x278679[_0x1def97('0x1917')][_0x1def97('0xf44')]?_0x278679['system'][_0x1def97('0xf44')]['toLowerCase']():_0x278679['system'][_0x1def97('0xf2b')]['toLowerCase']()){case _0x1def97('0x261d'):break;case'dialogflow':{var _0x54844a=_0x278679[_0x1def97('0x1917')][_0x1def97('0x26d2')]['split'](',');_0x278679['system'][_0x1def97('0x6e4')]=_0x54844a[0x0],_0x278679[_0x1def97('0x1917')]['language']=_0x54844a[0x1],_0x278679['system']['welcomemessage']=_0x54844a['slice'](0x2,_0x54844a[_0x1def97('0x25ae')])[_0x1def97('0x1537')](',');}break;case'amazonlex':{var _0x5c252c=_0x278679[_0x1def97('0x1917')][_0x1def97('0x26d2')][_0x1def97('0x1745')](',');_0x278679[_0x1def97('0x1917')][_0x1def97('0x22be')]=_0x5c252c[0x0],_0x278679[_0x1def97('0x1917')][_0x1def97('0x700')]=_0x5c252c[0x1],_0x278679['system']['lexregion']=_0x5c252c[0x2],_0x278679['system']['botname']=_0x5c252c[0x3],_0x278679['system']['welcomemessage']=_0x5c252c[_0x1def97('0xa19')](0x4,_0x5c252c[_0x1def97('0x25ae')])[_0x1def97('0x1537')](',');}break;case'autoreply':{var _0x5ae05c=_0x278679['system'][_0x1def97('0x26d2')]['split'](',');_0x278679['system'][_0x1def97('0x1ec4')]=isNaN(_0x5ae05c[0x0])?_0x5ae05c[0x0]:parseInt(_0x5ae05c[0x0],0xa),_0x278679['system'][_0x1def97('0x1bc6')]=_0x5ae05c[_0x1def97('0xa19')](0x1,_0x5ae05c[_0x1def97('0x25ae')])['join'](',');}break;case'message':_0x278679[_0x1def97('0x1917')][_0x1def97('0x1bc6')]=_0x278679[_0x1def97('0x1917')][_0x1def97('0x26d2')];break;case _0x1def97('0x2aa'):_0x278679[_0x1def97('0x1917')][_0x1def97('0x2623')]=_0x278679[_0x1def97('0x1917')][_0x1def97('0x26d2')][_0x1def97('0x1745')]('=')[0x0],_0x278679[_0x1def97('0x1917')][_0x1def97('0x2')]=_0x278679['system'][_0x1def97('0x26d2')]['split']('=')[0x1];break;case'agi':_0x278679[_0x1def97('0x1917')]['project']=_0x278679[_0x1def97('0x1917')][_0x1def97('0x26d2')];break;default:{var _0x2f9676=_0x278679[_0x1def97('0x1917')][_0x1def97('0x26d2')][_0x1def97('0x1745')](',');_0x278679['system'][_0x1def97('0x19a')]=_0x32d445()[_0x1def97('0x14b4')](_0x2f9676[0x0])?_0x2f9676[0x0]:isNaN(_0x2f9676[0x0])?_0x2f9676[0x0]:parseInt(_0x2f9676[0x0],0xa),_0x278679['system'][_0x1def97('0x19a5')]=_0x32d445()[_0x1def97('0x14b4')](_0x2f9676[0x1])?_0x2f9676[0x1]:isNaN(_0x2f9676[0x1])?_0x2f9676[0x1]:parseInt(_0x2f9676[0x1],0xa);}}else _0x278679[_0x1def97('0x1917')]['variable']='';_0x278679['system'][_0x1def97('0x62e')]&&_0x278679[_0x1def97('0x1917')][_0x1def97('0x62e')][_0x1def97('0x20dd')]()===_0x1def97('0x1fdf')&&_0x278679[_0x1def97('0x1917')][_0x1def97('0xf44')][_0x1def97('0x20dd')]()===_0x1def97('0x1d1b')&&(_0x278679[_0x1def97('0x1917')]['prefix']=_0x278679[_0x1def97('0x1917')]['phone']?_0x278679['system'][_0x1def97('0x1ef5')]['split']('$')[0x0]:undefined,_0x278679[_0x1def97('0x1917')][_0x1def97('0x1b6f')]=_0x278679['system'][_0x1def97('0xfca')]?_0x1def97('0xd41')+_0x278679[_0x1def97('0x1917')][_0x1def97('0xfca')]:undefined);_0x278679[_0x1def97('0x1f72')]=_0x2fc62c,_0x278679[_0x1def97('0x2584')]=_0x159555,_0x51ae11[_0x1def97('0x179e')](_0x1def97('0xd14'))?_0x531d15[_0x1def97('0x19a5')][_0x1def97('0x22d5')]({'fields':'id,name','sort':_0x1def97('0x2623'),'nolimit':_0x1def97('0x2206')})[_0x1def97('0xe59')][_0x1def97('0xe19')](function(_0x4132e6){var _0x533f75=_0x1def97;_0x278679[_0x533f75('0x1a9e')]=_0x4132e6[_0x533f75('0x16a7')]||[];})[_0x1def97('0x223b')](function(_0x3834ee){var _0xc631e7=_0x1def97;_0x4e6d86[_0xc631e7('0x8c8')]({'title':_0x3834ee['status']?_0xc631e7('0x27f2')+_0x3834ee[_0xc631e7('0x2833')]+'\x20-\x20'+_0x3834ee[_0xc631e7('0x1fd7')]:_0xc631e7('0x282'),'msg':_0x3834ee[_0xc631e7('0x11d0')]?JSON[_0xc631e7('0x3ad')](_0x3834ee[_0xc631e7('0x11d0')]):_0x3834ee[_0xc631e7('0x94f')]()});}):_0x531d15[_0x1def97('0x19a5')][_0x1def97('0x22d5')]({'fields':_0x1def97('0x104'),'sort':_0x1def97('0x2623'),'nolimit':_0x1def97('0x2206')})['$promise'][_0x1def97('0xe19')](function(_0x4f9548){var _0x16a777=_0x1def97;_0x278679[_0x16a777('0x1a9e')]=_0x4f9548[_0x16a777('0x16a7')]||[];})['then'](function(){var _0x5f1d95=_0x1def97;return _0x531d15[_0x5f1d95('0xb59')]['get']({'userProfileId':_0x278679['currentUser']['userProfileId'],'sectionId':0x3f4})[_0x5f1d95('0xe59')];})[_0x1def97('0xe19')](function(_0x2535b6){var _0x4e1c4c=_0x1def97,_0x18af1f=_0x2535b6&&_0x2535b6[_0x4e1c4c('0x16a7')]?_0x2535b6[_0x4e1c4c('0x16a7')][0x0]:null;if(!_0x18af1f){var _0xdef295=[],_0x586ff7=null;_0x278679[_0x4e1c4c('0x1917')]&&(_0x586ff7=_0x32d445()['find'](_0x278679['variables'],{'name':_0x278679['system'][_0x4e1c4c('0x19a5')]}));for(var _0x52d409=0x0;_0x52d409<_0x278679['variables']['length'];_0x52d409++){_0x586ff7&&_0x278679[_0x4e1c4c('0x1a9e')][_0x52d409]['id']===_0x586ff7['id']&&(_0x278679[_0x4e1c4c('0x1a9e')][_0x52d409][_0x4e1c4c('0x1e9d')]=![],_0xdef295[_0x4e1c4c('0xb76')](_0x278679[_0x4e1c4c('0x1a9e')][_0x52d409]));}_0x278679['variables']=_0xdef295;}else{if(!_0x18af1f[_0x4e1c4c('0x11fd')])return _0x531d15[_0x4e1c4c('0xd49')][_0x4e1c4c('0x22d5')]({'sectionId':_0x18af1f['id']})['$promise'][_0x4e1c4c('0xe19')](function(_0x4c80df){var _0x193e01=_0x4e1c4c,_0x3ed91e=_0x32d445()[_0x193e01('0x65a')](_0x4c80df[_0x193e01('0x16a7')],function(_0x63166e){var _0x41e06a=_0x193e01;return _0x32d445()[_0x41e06a('0xf15')](_0x278679[_0x41e06a('0x1a9e')],{'id':_0x63166e[_0x41e06a('0x1104')]});}),_0x489514=null;_0x278679[_0x193e01('0x1917')]&&(_0x489514=_0x32d445()[_0x193e01('0xf15')](_0x278679[_0x193e01('0x1a9e')],{'name':_0x278679[_0x193e01('0x1917')][_0x193e01('0x19a5')]}));if(_0x489514&&!_0x32d445()['some'](_0x3ed91e,['id',_0x489514['id']])){var _0x4a9f28=_0x32d445()[_0x193e01('0xf15')](_0x278679[_0x193e01('0x1a9e')],{'id':_0x489514['id']});_0x4a9f28['canSelect']=![],_0x3ed91e['push'](_0x4a9f28);}_0x278679['variables']=_0x3ed91e;});}})['catch'](function(_0x4abed2){var _0x33703d=_0x1def97;_0x4e6d86[_0x33703d('0x8c8')]({'title':_0x4abed2[_0x33703d('0x2833')]?_0x33703d('0x27f2')+_0x4abed2[_0x33703d('0x2833')]+_0x33703d('0x1b7c')+_0x4abed2[_0x33703d('0x1fd7')]:_0x33703d('0x287e'),'msg':_0x4abed2[_0x33703d('0x11d0')]?JSON[_0x33703d('0x3ad')](_0x4abed2[_0x33703d('0x11d0')]):_0x4abed2[_0x33703d('0x94f')]()});});function _0x2fc62c(){var _0x1f1ce3=_0x1def97;_0x278679[_0x1f1ce3('0xcd2')]=[];var _0x3e13c4=[];_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0x62e')]&&_0x278679['system'][_0x1f1ce3('0x62e')][_0x1f1ce3('0x20dd')]()===_0x1f1ce3('0x1fdf')&&_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0xf44')]==='outboundDial'&&(_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0x1ef5')]=_0x57401d[_0x1f1ce3('0x27f6')]?(_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0x2580')]||'')+'${EXTEN:'+_0x57401d[_0x1f1ce3('0x27f6')]+'}':(_0x278679['system'][_0x1f1ce3('0x2580')]||'')+_0x1f1ce3('0x16b5'),_0x57401d[_0x1f1ce3('0x150c')]!==_0x1f1ce3('0x23ca')?_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0x2116')]['indexOf'](_0x1f1ce3('0x767'))<0x0&&(_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0x2116')]+='U(xcally-mixmonitor-context)'):_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0x2116')]=_0x278679[_0x1f1ce3('0x1917')]['options']['replace'](_0x1f1ce3('0x767'),''));if(_0x278679['system'][_0x1f1ce3('0xf44')]&&_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0xf44')]===_0x1f1ce3('0x261d')){}else switch((_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0xf2b')]||_0x278679['system'][_0x1f1ce3('0xf44')])[_0x1f1ce3('0x20dd')]()){case _0x1f1ce3('0x2aa'):_0x278679[_0x1f1ce3('0x1917')]['appdata']=_0x278679['system'][_0x1f1ce3('0x2623')]+'='+_0x278679['system'][_0x1f1ce3('0x2')];break;case _0x1f1ce3('0x261d'):break;default:_0x3e13c4[0x0]=_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0x19a')],_0x3e13c4[0x1]=_0x278679['system']['variable'],_0x278679[_0x1f1ce3('0x1917')][_0x1f1ce3('0x26d2')]=_0x3e13c4['join'](',');}_0x159555(_0x278679[_0x1f1ce3('0x1917')]);}function _0x159555(_0x5eb452){var _0x542b32=_0x1def97;_0x31cfde[_0x542b32('0x11ed')](_0x5eb452);}}const _0x245f8f=_0x41dbb1;_0x44e32e[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0x2452'),'faxAccount','api',_0xb635d2('0x2730'),'crudPermissions'];function _0x44e32e(_0x5d8cde,_0x2da3c4,_0x207949,_0x24b08d,_0x190e57,_0x470693,_0x17a0cf,_0x26afa9){var _0x293140=_0xb635d2,_0x100063=this;_0x100063[_0x293140('0x15a5')]=_0x17a0cf[_0x293140('0x1ef8')](),_0x100063[_0x293140('0xcd2')]=[],_0x100063[_0x293140('0x13e4')]='FAX.EDIT_'+(_0x24b08d[_0x293140('0xf44')]||_0x24b08d[_0x293140('0xf2b')])['toUpperCase'](),_0x100063[_0x293140('0x2037')]=angular[_0x293140('0x89')](_0x24b08d),_0x100063['crudPermissions']=_0x26afa9,_0x100063[_0x293140('0x1ccb')]={};if(_0x100063[_0x293140('0x2037')][_0x293140('0x26d2')])switch(_0x100063[_0x293140('0x2037')][_0x293140('0xf44')]?_0x100063['tag']['appType']['toLowerCase']():_0x100063[_0x293140('0x2037')][_0x293140('0xf2b')][_0x293140('0x20dd')]()){case _0x293140('0x261d'):break;case _0x293140('0xc11'):{var _0x16e53a=_0x100063[_0x293140('0x2037')]['appdata'][_0x293140('0x1745')](',');_0x100063['tag']['key']=_0x16e53a[0x0],_0x100063[_0x293140('0x2037')][_0x293140('0x174b')]=_0x16e53a[0x1],_0x100063['tag']['welcomemessage']=_0x16e53a['slice'](0x2,_0x16e53a[_0x293140('0x25ae')])[_0x293140('0x1537')](',');}break;case _0x293140('0x1321'):{var _0x2344a0=_0x100063[_0x293140('0x2037')][_0x293140('0x26d2')]['split'](',');_0x100063[_0x293140('0x2037')]['accesskeyid']=_0x2344a0[0x0],_0x100063[_0x293140('0x2037')][_0x293140('0x700')]=_0x2344a0[0x1],_0x100063[_0x293140('0x2037')][_0x293140('0x206a')]=_0x2344a0[0x2],_0x100063['tag'][_0x293140('0x191a')]=_0x2344a0[0x3],_0x100063[_0x293140('0x2037')][_0x293140('0xfcc')]=_0x2344a0[_0x293140('0xa19')](0x4,_0x2344a0['length'])[_0x293140('0x1537')](',');}break;case'autoreply':{var _0x5cfca7=_0x100063[_0x293140('0x2037')]['appdata'][_0x293140('0x1745')](',');_0x100063[_0x293140('0x2037')]['times']=isNaN(_0x5cfca7[0x0])?_0x5cfca7[0x0]:parseInt(_0x5cfca7[0x0],0xa),_0x100063[_0x293140('0x2037')][_0x293140('0x1bc6')]=_0x5cfca7[_0x293140('0xa19')](0x1,_0x5cfca7['length'])[_0x293140('0x1537')](',');}break;case'message':_0x100063[_0x293140('0x2037')]['text']=_0x100063[_0x293140('0x2037')][_0x293140('0x26d2')];break;case _0x293140('0x2aa'):_0x100063['tag'][_0x293140('0x2623')]=_0x100063[_0x293140('0x2037')][_0x293140('0x26d2')]['split']('=')[0x0],_0x100063[_0x293140('0x2037')][_0x293140('0x2')]=_0x100063[_0x293140('0x2037')]['appdata'][_0x293140('0x1745')]('=')[0x1];break;case'agi':_0x100063[_0x293140('0x2037')][_0x293140('0x38b')]=_0x100063[_0x293140('0x2037')]['appdata'];break;default:{var _0x463b50=_0x100063['tag'][_0x293140('0x26d2')][_0x293140('0x1745')](',');_0x100063[_0x293140('0x2037')][_0x293140('0x2037')]=_0x32d445()[_0x293140('0x14b4')](_0x463b50[0x0])?_0x463b50[0x0]:isNaN(_0x463b50[0x0])?_0x463b50[0x0]:parseInt(_0x463b50[0x0],0xa);}break;}else{}_0x100063['tag'][_0x293140('0x62e')]&&_0x100063[_0x293140('0x2037')][_0x293140('0x62e')][_0x293140('0x20dd')]()===_0x293140('0x1fdf')&&_0x100063[_0x293140('0x2037')]['appType']['toLowerCase']()===_0x293140('0x1d1b')&&(_0x100063['tag'][_0x293140('0x2580')]=_0x100063[_0x293140('0x2037')][_0x293140('0x1ef5')]?_0x100063['tag'][_0x293140('0x1ef5')][_0x293140('0x1745')]('$')[0x0]:undefined,_0x100063[_0x293140('0x2037')][_0x293140('0x1b6f')]=_0x100063[_0x293140('0x2037')]['callerID']?_0x293140('0xd41')+_0x100063[_0x293140('0x2037')][_0x293140('0xfca')]:undefined);_0x100063[_0x293140('0x1f72')]=_0x9dcf3f,_0x100063[_0x293140('0x2584')]=_0x253192,_0x17a0cf[_0x293140('0x179e')]('admin')?_0x470693[_0x293140('0x2037')][_0x293140('0x22d5')]({'fields':_0x293140('0x104'),'sort':_0x293140('0x2623'),'nolimit':_0x293140('0x2206')})[_0x293140('0xe59')]['then'](function(_0x304fb4){_0x100063['tags']=_0x304fb4['rows']||[];})[_0x293140('0x223b')](function(_0x39e835){var _0x23ea40=_0x293140;_0x207949[_0x23ea40('0x8c8')]({'title':_0x39e835[_0x23ea40('0x2833')]?_0x23ea40('0x27f2')+_0x39e835[_0x23ea40('0x2833')]+_0x23ea40('0x1b7c')+_0x39e835[_0x23ea40('0x1fd7')]:'SYSTEM:GET_TAGS','msg':_0x39e835['data']?JSON[_0x23ea40('0x3ad')](_0x39e835[_0x23ea40('0x11d0')]):_0x39e835[_0x23ea40('0x94f')]()});}):_0x470693['tag'][_0x293140('0x22d5')]({'fields':'id,name','sort':_0x293140('0x2623'),'nolimit':_0x293140('0x2206')})[_0x293140('0xe59')][_0x293140('0xe19')](function(_0x23d2bf){var _0x33e185=_0x293140;_0x100063[_0x33e185('0x1105')]=_0x23d2bf['rows']||[];})['then'](function(){var _0x52644a=_0x293140;return _0x470693[_0x52644a('0xb59')]['get']({'userProfileId':_0x100063['currentUser'][_0x52644a('0x1d04')],'sectionId':0x3f0})[_0x52644a('0xe59')];})['then'](function(_0x5d5836){var _0x15f445=_0x293140,_0x5d19d8=_0x5d5836&&_0x5d5836[_0x15f445('0x16a7')]?_0x5d5836['rows'][0x0]:null;if(!_0x5d19d8){var _0x364e5d=[],_0x4950ef=null;_0x100063[_0x15f445('0x2037')]&&(_0x4950ef=_0x32d445()[_0x15f445('0xf15')](_0x100063[_0x15f445('0x1105')],{'name':_0x100063[_0x15f445('0x2037')][_0x15f445('0x2037')]}));for(var _0x173bb4=0x0;_0x173bb4<_0x100063[_0x15f445('0x1105')][_0x15f445('0x25ae')];_0x173bb4++){_0x4950ef&&_0x100063[_0x15f445('0x1105')][_0x173bb4]['id']===_0x4950ef['id']&&(_0x100063[_0x15f445('0x1105')][_0x173bb4][_0x15f445('0x1e9d')]=![],_0x364e5d['push'](_0x100063['tags'][_0x173bb4]));}_0x100063[_0x15f445('0x1105')]=_0x364e5d;}else{if(!_0x5d19d8[_0x15f445('0x11fd')])return _0x470693[_0x15f445('0xd49')][_0x15f445('0x22d5')]({'sectionId':_0x5d19d8['id']})['$promise'][_0x15f445('0xe19')](function(_0x8a32dc){var _0x490fdd=_0x15f445,_0x759c25=_0x32d445()[_0x490fdd('0x65a')](_0x8a32dc[_0x490fdd('0x16a7')],function(_0x1203f4){var _0x218efe=_0x490fdd;return _0x32d445()[_0x218efe('0xf15')](_0x100063['tags'],{'id':_0x1203f4[_0x218efe('0x1104')]});}),_0x5300ff=null;_0x100063['tag']&&(_0x5300ff=_0x32d445()['find'](_0x100063[_0x490fdd('0x1105')],{'name':_0x100063['tag'][_0x490fdd('0x2037')]}));if(_0x5300ff&&!_0x32d445()[_0x490fdd('0x201a')](_0x759c25,['id',_0x5300ff['id']])){var _0x5d71d9=_0x32d445()[_0x490fdd('0xf15')](_0x100063[_0x490fdd('0x1105')],{'id':_0x5300ff['id']});_0x5d71d9[_0x490fdd('0x1e9d')]=![],_0x759c25['push'](_0x5d71d9);}_0x100063['tags']=_0x759c25;});}})[_0x293140('0x223b')](function(_0xef1d29){var _0x58aa6e=_0x293140;_0x207949[_0x58aa6e('0x8c8')]({'title':_0xef1d29[_0x58aa6e('0x2833')]?_0x58aa6e('0x27f2')+_0xef1d29['status']+_0x58aa6e('0x1b7c')+_0xef1d29['statusText']:_0x58aa6e('0x25d1'),'msg':_0xef1d29[_0x58aa6e('0x11d0')]?JSON[_0x58aa6e('0x3ad')](_0xef1d29[_0x58aa6e('0x11d0')]):_0xef1d29[_0x58aa6e('0x94f')]()});});function _0x9dcf3f(){var _0x16897e=_0x293140;_0x100063['errors']=[];var _0x59c28c=[];_0x100063[_0x16897e('0x2037')]['type']&&_0x100063[_0x16897e('0x2037')][_0x16897e('0x62e')][_0x16897e('0x20dd')]()===_0x16897e('0x1fdf')&&_0x100063['tag'][_0x16897e('0xf44')]==='outboundDial'&&(_0x100063[_0x16897e('0x2037')][_0x16897e('0x1ef5')]=_0x190e57[_0x16897e('0x27f6')]?(_0x100063[_0x16897e('0x2037')][_0x16897e('0x2580')]||'')+'${EXTEN:'+_0x190e57[_0x16897e('0x27f6')]+'}':(_0x100063['tag']['prefix']||'')+'${EXTEN}',_0x190e57[_0x16897e('0x150c')]!==_0x16897e('0x23ca')?_0x100063[_0x16897e('0x2037')]['options'][_0x16897e('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x100063[_0x16897e('0x2037')][_0x16897e('0x2116')]+=_0x16897e('0x767')):_0x100063[_0x16897e('0x2037')][_0x16897e('0x2116')]=_0x100063[_0x16897e('0x2037')][_0x16897e('0x2116')][_0x16897e('0x1b42')](_0x16897e('0x767'),''));var _0x58a26b=_0x32d445()[_0x16897e('0xf15')](_0x100063['tags'],{'name':_0x100063[_0x16897e('0x2037')][_0x16897e('0x2037')]});_0x58a26b&&(_0x100063[_0x16897e('0x2037')][_0x16897e('0x30a')]=_0x58a26b['id']);if(_0x100063[_0x16897e('0x2037')][_0x16897e('0xf44')]&&_0x100063[_0x16897e('0x2037')][_0x16897e('0xf44')]===_0x16897e('0x261d')){}else switch((_0x100063[_0x16897e('0x2037')][_0x16897e('0xf2b')]||_0x100063[_0x16897e('0x2037')]['appType'])[_0x16897e('0x20dd')]()){case _0x16897e('0x2aa'):_0x100063[_0x16897e('0x2037')][_0x16897e('0x26d2')]=_0x100063['tag']['name']+'='+_0x100063[_0x16897e('0x2037')][_0x16897e('0x2')];break;case _0x16897e('0x261d'):break;default:_0x59c28c[0x0]=_0x100063[_0x16897e('0x2037')]['tag'],_0x100063[_0x16897e('0x2037')]['appdata']=_0x59c28c[_0x16897e('0x1537')](',');}_0x253192(_0x100063['tag']);}function _0x253192(_0x15d0ab){var _0x4d51a3=_0x293140;_0x5d8cde[_0x4d51a3('0x11ed')](_0x15d0ab);}}const _0x11bce5=_0x44e32e;_0x3c3834['$inject']=['$scope','$window',_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x3c3834(_0x5d4bc9,_0x4961c6,_0x3d6858,_0x63c807,_0x15b71f,_0x322d86,_0x375068,_0x5422ce,_0x3f1fa8,_0x2762e7,_0x2312fc){var _0x2979a8=_0xb635d2,_0x29be46=this;_0x29be46[_0x2979a8('0x15a5')]=_0x2312fc[_0x2979a8('0x1ef8')](),_0x29be46['dispositions']={'count':0x0,'rows':[]},_0x29be46[_0x2979a8('0x17e9')]=[],_0x29be46['crudPermissions'],_0x29be46[_0x2979a8('0x513')]={'first':'1st','second':_0x2979a8('0x6c0'),'third':_0x2979a8('0x13ee')},_0x29be46[_0x2979a8('0xa16')]={'fields':_0x2979a8('0x561'),'sort':_0x2979a8('0x7e8'),'limit':0xa,'page':0x1},_0x29be46['init']=_0x27ee3a,_0x29be46[_0x2979a8('0x126c')]=_0x881d29,_0x29be46[_0x2979a8('0x425')]=_0x1b8972,_0x29be46[_0x2979a8('0x1312')]=_0x339ac,_0x29be46['createOrEditDisposition']=_0x4c6c41,_0x29be46[_0x2979a8('0x1db')]=_0xe6f82d,_0x29be46[_0x2979a8('0x1f38')]=_0x1d7c68,_0x29be46[_0x2979a8('0xda0')]=_0x88fca,_0x29be46[_0x2979a8('0x33d')]=_0x594de4,_0x29be46[_0x2979a8('0x56f')]=_0x3a36c5;function _0x27ee3a(_0x54fe16,_0x5bab4a){var _0x47fcea=_0x2979a8;_0x29be46[_0x47fcea('0x688')]=_0x54fe16||{},_0x29be46['crudPermissions']=typeof _0x5bab4a!==_0x47fcea('0x1143')?_0x5bab4a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x29be46['query'][_0x47fcea('0xef3')]=_0x29be46[_0x47fcea('0x688')]['id'],_0x29be46[_0x47fcea('0xa16')]['id']=_0x29be46['faxAccount']['id'],_0x339ac();}function _0x4c6c41(_0x478da4,_0xe437dd){var _0x51dac5=_0x2979a8;_0x15b71f['show']({'controller':_0x51dac5('0x4d9'),'controllerAs':'vm','templateUrl':_0x599d02,'parent':angular[_0x51dac5('0x24a1')](_0x322d86[_0x51dac5('0x19b2')]),'targetEvent':_0x478da4,'clickOutsideToClose':!![],'locals':{'disposition':_0xe437dd,'dispositions':_0x29be46['dispositions']['rows'],'model':{'id':_0x29be46[_0x51dac5('0x688')]['id'],'field':_0x51dac5('0xef3')},'license':null,'setting':null,'crudPermissions':_0x29be46['crudPermissions']}})[_0x51dac5('0xe19')](function(_0x36768a){if(_0x36768a)_0x339ac();});}function _0x881d29(_0x3f369c,_0x5c16d4){var _0x3af55b=_0x2979a8,_0x571563=_0x32d445()['some'](_0x29be46[_0x3af55b('0x24eb')]['rows'],[_0x3af55b('0x2450'),_0x3f369c['id']]),_0x3f9168=_0x15b71f['confirm']()[_0x3af55b('0x13e4')](_0x5422ce[_0x3af55b('0x2159')](_0x3af55b('0x5d9')))[_0x3af55b('0xd0')](_0x5422ce[_0x3af55b('0x2159')](_0x3af55b('0xd37')+(_0x571563?_0x3af55b('0x930'):_0x3af55b('0xf36')),{'name':_0x3f369c['name']}))[_0x3af55b('0x4d1')](_0x3af55b('0x1c26'))['targetEvent'](_0x5c16d4)['ok']('OK')[_0x3af55b('0x2c1')](_0x5422ce['instant']('TOOLS.CANCEL'));_0x15b71f[_0x3af55b('0x26b2')](_0x3f9168)[_0x3af55b('0xe19')](function(){_0xe6f82d(_0x3f369c);});}function _0x1b8972(_0x159c2c){_0x29be46['dispositions']=_0x159c2c||{'count':0x0,'rows':[]};}function _0x339ac(){var _0x3e30ea=_0x2979a8;_0x29be46[_0x3e30ea('0xa16')][_0x3e30ea('0xab0')]=(_0x29be46[_0x3e30ea('0xa16')][_0x3e30ea('0xc08')]-0x1)*_0x29be46[_0x3e30ea('0xa16')][_0x3e30ea('0x1b6d')],_0x29be46[_0x3e30ea('0x9c8')]=_0x3f1fa8['faxAccount']['getDispositions'](_0x29be46['query'],_0x1b8972)['$promise'];}function _0xe6f82d(_0xd50ba1){var _0x561625=_0x2979a8;_0x3f1fa8[_0x561625('0x2506')][_0x561625('0x229e')]({'id':_0xd50ba1['id']})['$promise'][_0x561625('0xe19')](function(){var _0x5a2543=_0x561625;_0x339ac(),_0x2762e7[_0x5a2543('0x425')]({'title':_0x5422ce[_0x5a2543('0x2159')](_0x5a2543('0x1593'))});})[_0x561625('0x223b')](function(_0x42747c){var _0x47763f=_0x561625;if(_0x42747c[_0x47763f('0x11d0')]&&_0x42747c[_0x47763f('0x11d0')]['errors']&&_0x42747c[_0x47763f('0x11d0')][_0x47763f('0xcd2')][_0x47763f('0x25ae')]){_0x29be46[_0x47763f('0xcd2')]=_0x42747c[_0x47763f('0x11d0')][_0x47763f('0xcd2')]||[{'message':_0x42747c['toString'](),'type':_0x47763f('0x45')}];for(var _0x54e3fa=0x0;_0x54e3fa<_0x42747c[_0x47763f('0x11d0')][_0x47763f('0xcd2')][_0x47763f('0x25ae')];_0x54e3fa++){_0x2762e7['error']({'title':_0x42747c[_0x47763f('0x11d0')][_0x47763f('0xcd2')][_0x54e3fa][_0x47763f('0x62e')],'msg':_0x42747c[_0x47763f('0x11d0')][_0x47763f('0xcd2')][_0x54e3fa]['message']});}}else _0x2762e7[_0x47763f('0x8c8')]({'title':_0x42747c[_0x47763f('0x2833')]?_0x47763f('0x27f2')+_0x42747c['status']+_0x47763f('0x1b7c')+_0x42747c['statusText']:_0x47763f('0x45'),'msg':_0x42747c[_0x47763f('0x11d0')]?JSON['stringify'](_0x42747c['data'][_0x47763f('0x27e8')]):_0x42747c[_0x47763f('0x27e8')]||_0x42747c[_0x47763f('0x94f')]()});});}function _0x1d7c68(){var _0xfb3d52=_0x2979a8,_0x470d1b=angular[_0xfb3d52('0x89')](_0x29be46['selectedDispositions']);return _0x29be46[_0xfb3d52('0x17e9')]=[],_0x470d1b;}function _0x88fca(_0x34b506){var _0xf870c8=_0x2979a8,_0x50a456=_0x15b71f['confirm']()[_0xf870c8('0x13e4')](_0x5422ce[_0xf870c8('0x2159')](_0xf870c8('0xf00')))[_0xf870c8('0xd0')](_0x5422ce[_0xf870c8('0x2159')](_0xf870c8('0x2750'),{'total':_0x29be46['selectedDispositions'][_0xf870c8('0x25ae')]}))[_0xf870c8('0x4d1')]('Delete\x20dispositions')[_0xf870c8('0x1345')](_0x34b506)['ok']('OK')[_0xf870c8('0x2c1')](_0x5422ce['instant'](_0xf870c8('0x717')));_0x15b71f[_0xf870c8('0x26b2')](_0x50a456)['then'](function(){var _0x5ad09b=_0xf870c8;_0x29be46['selectedDispositions'][_0x5ad09b('0x1d7e')](function(_0x4ac35f){_0xe6f82d(_0x4ac35f);}),_0x29be46[_0x5ad09b('0x17e9')]=[];});}function _0x594de4(){var _0x2d161d=_0x2979a8;_0x29be46[_0x2d161d('0x17e9')]=[];}function _0x3a36c5(){var _0x21406d=_0x2979a8;_0x29be46['selectedDispositions']=_0x29be46[_0x21406d('0x24eb')][_0x21406d('0x16a7')];}var _0x449d64=!![],_0xb2fd3a=0x1;_0x5d4bc9[_0x2979a8('0x107')]('vm_dc.query.filter',function(_0x37bac3,_0x56221d){var _0x1fc9a6=_0x2979a8;_0x449d64?_0x375068(function(){_0x449d64=![];}):(!_0x56221d&&(_0xb2fd3a=_0x29be46['query']['page']),_0x37bac3!==_0x56221d&&(_0x29be46[_0x1fc9a6('0xa16')][_0x1fc9a6('0xc08')]=0x1),!_0x37bac3&&(_0x29be46[_0x1fc9a6('0xa16')][_0x1fc9a6('0xc08')]=_0xb2fd3a),_0x339ac());});}const _0x3cc4bb=_0x3c3834;_0x27f2af[_0xb635d2('0xb0c')]=['$cookies',_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),'api',_0xb635d2('0x2730')];function _0x27f2af(_0xb9e6b7,_0x3137b0,_0x5d58a7,_0x592a63,_0x5ae483,_0x17be1d,_0x660b9c,_0x34d039,_0x9567c8,_0x125da5,_0x2bf869){var _0x2fc56d=_0xb635d2,_0x48e6e5=this;_0x48e6e5[_0x2fc56d('0x15a5')]=_0x2bf869[_0x2fc56d('0x1ef8')](),_0x48e6e5[_0x2fc56d('0x688')]={},_0x48e6e5[_0x2fc56d('0x283c')]={'count':0x0,'rows':[]},_0x48e6e5[_0x2fc56d('0x283a')]=[],_0x48e6e5[_0x2fc56d('0xb3d')],_0x48e6e5[_0x2fc56d('0xa16')]={'read':'null','closed':_0x2fc56d('0x1046'),'sort':_0x2fc56d('0x962'),'includeAll':_0x2fc56d('0x2206'),'limit':0xa,'page':0x1},_0x48e6e5[_0x2fc56d('0x15f9')]=_0x1481a5,_0x48e6e5['deleteConfirm']=_0x5730cc,_0x48e6e5['faxInteractionDownload']=_0x5e3185,_0x48e6e5['success']=_0x5d4c15,_0x48e6e5[_0x2fc56d('0x26a0')]=_0x5d6ff6,_0x48e6e5[_0x2fc56d('0x22e5')]=_0x363162,_0x48e6e5[_0x2fc56d('0x1f45')]=_0x528588,_0x48e6e5['exportSelectedFaxAccountInteractions']=_0x525f2e,_0x48e6e5[_0x2fc56d('0x2236')]=_0x1667a0,_0x48e6e5['deleteSelectedFaxAccountInteractions']=_0xa7d8e1;function _0x1481a5(_0x2850fa,_0x1568f8){var _0x377bfb=_0x2fc56d;_0x48e6e5[_0x377bfb('0x688')]=_0x2850fa,_0x48e6e5[_0x377bfb('0xb3d')]=typeof _0x1568f8!=='undefined'?_0x1568f8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x48e6e5[_0x377bfb('0xa16')][_0x377bfb('0xef3')]=_0x48e6e5[_0x377bfb('0x688')]['id'],_0x48e6e5['advancedSearch']={'fields':_0x352272()},_0x309e6e();}function _0x309e6e(){var _0x2ad4f8=_0x2fc56d;return _0x125da5[_0x2ad4f8('0x2037')][_0x2ad4f8('0x22d5')]()[_0x2ad4f8('0xe59')]['then'](function(_0x22d6ac){var _0x5f2657=_0x2ad4f8;_0x48e6e5[_0x5f2657('0x1105')]=_0x22d6ac||{'count':0x0,'rows':[]};})[_0x2ad4f8('0xe19')](function(){_0x48e6e5['quickFilters']=_0x154786();});}function _0x154786(){var _0x17db69=_0x2fc56d;return[{'name':_0x17db69('0x141d'),'key':_0x17db69('0x15c9'),'type':'date','label':_0x17db69('0x19b7')},{'name':_0x17db69('0x1e63'),'key':_0x17db69('0x1a6e'),'type':_0x17db69('0x2e6'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x17db69('0x296')}]},{'name':'Status','key':_0x17db69('0x1835'),'type':_0x17db69('0x2e6'),'label':_0x17db69('0xef5'),'customOptions':[{'value':0x0,'translate':_0x17db69('0x1c37')},{'value':0x1,'translate':_0x17db69('0x1bbb')},{'value':null,'translate':_0x17db69('0x296')}]},{'name':_0x17db69('0x142e'),'key':_0x17db69('0x43d'),'type':_0x17db69('0x2e6'),'label':_0x17db69('0x120c'),'customOptions':[{'value':'null','translate':_0x17db69('0x2094')},{'value':undefined,'translate':_0x17db69('0x296')}]},{'name':_0x17db69('0x1172'),'key':_0x17db69('0x2037'),'type':_0x17db69('0x19a0'),'label':_0x17db69('0x23c7'),'options':_0x48e6e5[_0x17db69('0x1105')][_0x17db69('0x16a7')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x352272(){var _0x332f51=_0x2fc56d;return[{'name':'Id','column':'id','type':'number'},{'name':_0x332f51('0x1286'),'column':_0x332f51('0x1286'),'type':_0x332f51('0x5c0'),'options':{'searchFields':[_0x332f51('0x2566'),_0x332f51('0x151f'),'email'],'route':{'model':'cmContact','action':_0x332f51('0x22d5'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x332f51('0x217d'),'nolimit':!![]}},'extraOperators':[_0x332f51('0x1247')],'excludedOperators':[_0x332f51('0x1f51')]}},{'name':'Subject','column':'subject','type':'text','options':{'excludedOperators':[_0x332f51('0x1d15'),_0x332f51('0x1f51')]}},{'name':_0x332f51('0x750'),'column':_0x332f51('0x6c9'),'type':_0x332f51('0x1bc6'),'options':{'excludedOperators':[_0x332f51('0x1d15'),_0x332f51('0x1f51')]}},{'name':_0x332f51('0x20e'),'column':_0x332f51('0x1835'),'type':_0x332f51('0x2e6'),'values':[{'id':0x0,'translate':_0x332f51('0x1c37')},{'id':0x1,'translate':_0x332f51('0x1bbb')}],'options':{'excludedOperators':[_0x332f51('0x1f51')]}},{'name':_0x332f51('0x142e'),'column':_0x332f51('0x2630'),'type':_0x332f51('0x5c0'),'options':{'table':'i','route':{'model':_0x332f51('0x10c6'),'action':_0x332f51('0x22d5'),'params':{'role':_0x332f51('0x108'),'fields':_0x332f51('0x194c'),'nolimit':!![]}},'searchFields':[_0x332f51('0xe11'),_0x332f51('0x2623')],'extraOperators':[_0x332f51('0x1247')],'excludedOperators':[_0x332f51('0x1f51')]}},{'name':_0x332f51('0x1e7b'),'column':_0x332f51('0x1172'),'type':_0x332f51('0x19a0'),'options':{'route':{'model':_0x332f51('0x2037'),'action':_0x332f51('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x332f51('0x141d'),'column':_0x332f51('0x15c9'),'type':_0x332f51('0xf6d'),'options':{'excludedOperators':['$ne']}},{'name':_0x332f51('0x2233'),'column':_0x332f51('0x98d'),'type':'select','values':[{'id':0x1,'translate':_0x332f51('0x3b4')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x332f51('0x1f51')]}}];}function _0x528588(){var _0x4df31e=_0x2fc56d;_0x660b9c[_0x4df31e('0x26b2')]({'controller':_0x4df31e('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x4df31e('0x24a1')](_0x34d039[_0x4df31e('0x19b2')]),'clickOutsideToClose':![],'locals':{'fields':_0x48e6e5[_0x4df31e('0x164')][_0x4df31e('0x1d17')],'color':undefined,'storagePath':_0x4df31e('0x1de8')},'fullscreen':!![]})[_0x4df31e('0xe19')](function(_0x43494d){var _0x5e8a8b=_0x4df31e;_0x48e6e5[_0x5e8a8b('0xa16')][_0x5e8a8b('0x1cc8')]=_0x43494d===![]?undefined:_0x43494d;if(_0x48e6e5[_0x5e8a8b('0xa16')][_0x5e8a8b('0x1cc8')])_0x5d6ff6();else _0x43494d===![]&&_0x5d6ff6();})[_0x4df31e('0x223b')](function(_0x228180){var _0x482d21=_0x4df31e;_0x9567c8[_0x482d21('0x8c8')]({'title':'ERROR','msg':_0x228180[_0x482d21('0x11d0')]?JSON['stringify'](_0x228180[_0x482d21('0x11d0')][_0x482d21('0x27e8')]):_0x228180[_0x482d21('0x94f')]()});});}function _0x5e3185(_0x2f7394,_0x1a2048,_0x239563){var _0x2c6d0f=_0x2fc56d;return _0x125da5[_0x2c6d0f('0x100b')][_0x2c6d0f('0x1d1e')]({'id':_0x2f7394['id'],'exists':!![],'attachments':_0x239563})[_0x2c6d0f('0xe59')][_0x2c6d0f('0xe19')](function(_0x1c5898){var _0x3410ac=_0x2c6d0f,_0x48dc9b=[_0x1c5898[_0x3410ac('0x17ab')]],_0x2aa50b='interaction'+_0x2f7394['id'],_0x4e0ba6=new Blob(_0x48dc9b,{'type':_0x1c5898[_0x3410ac('0x62e')]});_0x2aa50b=_0x3410ac('0x10f8')+_0x2f7394['id']+_0x3410ac('0x985');var _0x3f46f9=window['document'][_0x3410ac('0x9a1')]('a');_0x3f46f9[_0x3410ac('0xede')](_0x3410ac('0xcb7'),URL['createObjectURL'](_0x4e0ba6)),_0x3f46f9['setAttribute'](_0x3410ac('0x1d1e'),_0x2aa50b),document[_0x3410ac('0x19b2')][_0x3410ac('0x1d13')](_0x3f46f9),_0x3f46f9[_0x3410ac('0xfe7')]();})[_0x2c6d0f('0x223b')](function(_0x51febb){var _0x251ad6=_0x2c6d0f;if(_0x51febb[_0x251ad6('0x11d0')]&&_0x51febb[_0x251ad6('0x11d0')][_0x251ad6('0xcd2')]&&_0x51febb['data'][_0x251ad6('0xcd2')][_0x251ad6('0x25ae')])for(var _0x30a6be=0x0;_0x30a6be<_0x51febb[_0x251ad6('0x11d0')]['errors'][_0x251ad6('0x25ae')];_0x30a6be+=0x1){_0x9567c8[_0x251ad6('0x8c8')]({'title':_0x51febb[_0x251ad6('0x11d0')]['errors'][_0x30a6be]['type'],'msg':_0x51febb['data'][_0x251ad6('0xcd2')][_0x30a6be]['message']});}else _0x9567c8[_0x251ad6('0x8c8')]({'title':_0x51febb['status']?_0x251ad6('0x27f2')+_0x51febb[_0x251ad6('0x2833')]+_0x251ad6('0x1b7c')+_0x51febb[_0x251ad6('0x1fd7')]:'api.faxAccount.save','msg':_0x51febb[_0x251ad6('0x11d0')]?JSON[_0x251ad6('0x3ad')](_0x51febb[_0x251ad6('0x11d0')][_0x251ad6('0x27e8')]):_0x51febb[_0x251ad6('0x94f')]()});});}function _0x5730cc(_0x2f71b1,_0x528018){var _0x312ae8=_0x2fc56d,_0x488030=_0x660b9c['confirm']()['title'](_0x312ae8('0x1f13'))['htmlContent'](_0x312ae8('0xab2')+(_0x2f71b1['name']||_0x2f71b1['id']&&_0x32d445()[_0x312ae8('0x2077')]('interaction\x20#')+_0x2f71b1['id']||_0x312ae8('0xf6'))+_0x312ae8('0x27bb')+_0x312ae8('0x21bd'))[_0x312ae8('0x4d1')](_0x312ae8('0x1a82'))[_0x312ae8('0x1345')](_0x528018)['ok']('OK')[_0x312ae8('0x2c1')](_0x312ae8('0x17'));_0x660b9c[_0x312ae8('0x26b2')](_0x488030)[_0x312ae8('0xe19')](function(){_0x1667a0(_0x2f71b1);},function(){var _0x369251=_0x312ae8;console['log'](_0x369251('0x17'));});}function _0x5d4c15(_0x335b2d){var _0x446917=_0x2fc56d;_0x48e6e5[_0x446917('0x283c')]=_0x335b2d||{'count':0x0,'rows':[]};for(var _0x15261d=0x0;_0x15261d<_0x48e6e5['faxAccountInteractions'][_0x446917('0x16a7')][_0x446917('0x25ae')];_0x15261d+=0x1){var _0x584b9b=_0x48e6e5[_0x446917('0x283c')][_0x446917('0x16a7')][_0x15261d];_0x25177a(_0x584b9b),_0x584b9b[_0x446917('0x2237')][_0x446917('0x2623')]=_0x52a6c4(_0x584b9b);}}function _0x5d6ff6(){var _0x23da61=_0x2fc56d;_0x48e6e5[_0x23da61('0xa16')][_0x23da61('0xab0')]=(_0x48e6e5[_0x23da61('0xa16')][_0x23da61('0xc08')]-0x1)*_0x48e6e5[_0x23da61('0xa16')][_0x23da61('0x1b6d')],_0x48e6e5[_0x23da61('0x9c8')]=_0x125da5[_0x23da61('0x100b')]['get'](_0x48e6e5[_0x23da61('0xa16')],_0x5d4c15)[_0x23da61('0xe59')];}function _0x363162(_0x5ea9e7,_0x4128d5){var _0xa5c881=_0x2fc56d;_0x660b9c[_0xa5c881('0x26b2')]({'controller':_0xa5c881('0x1b1'),'controllerAs':'vm','templateUrl':_0x43d9d1,'parent':angular[_0xa5c881('0x24a1')](_0x34d039[_0xa5c881('0x19b2')]),'targetEvent':_0x5ea9e7,'clickOutsideToClose':!![],'onShowing':function _0x4082ed(_0x48f8fc){var _0x7072c3=_0xa5c881;_0x48f8fc['vm'][_0x7072c3('0x15f9')]({'id':0x1,'channel':_0x7072c3('0x625'),'interaction':_0x4128d5,'spy':!![]},_0x3137b0[_0x7072c3('0x5cf')]['vm']['setting']);}});}function _0x1667a0(_0x309690){var _0x55b963=_0x2fc56d;_0x125da5[_0x55b963('0x100b')]['delete']({'id':_0x309690['id']})['$promise'][_0x55b963('0xe19')](function(){var _0x2e0a5f=_0x55b963;_0x32d445()[_0x2e0a5f('0xa8b')](_0x48e6e5[_0x2e0a5f('0x283c')][_0x2e0a5f('0x16a7')],{'id':_0x309690['id']}),_0x48e6e5['faxAccountInteractions'][_0x2e0a5f('0x148b')]-=0x1,!_0x48e6e5['faxAccountInteractions'][_0x2e0a5f('0x16a7')][_0x2e0a5f('0x25ae')]&&_0x5d6ff6(),_0x9567c8[_0x2e0a5f('0x425')]({'title':'Interaction\x20deleted!','msg':_0x309690[_0x2e0a5f('0x2623')]?_0x309690['name']+_0x2e0a5f('0x2182'):''});})[_0x55b963('0x223b')](function(_0x34b7a1){var _0x323881=_0x55b963;if(_0x34b7a1[_0x323881('0x11d0')]&&_0x34b7a1[_0x323881('0x11d0')][_0x323881('0xcd2')]&&_0x34b7a1[_0x323881('0x11d0')][_0x323881('0xcd2')]['length']){_0x48e6e5[_0x323881('0xcd2')]=_0x34b7a1['data'][_0x323881('0xcd2')]||[{'message':_0x34b7a1[_0x323881('0x94f')](),'type':'SYSTEM:GETfaxAccount'}];for(var _0x52d7eb=0x0;_0x52d7eb<_0x34b7a1[_0x323881('0x11d0')]['errors'][_0x323881('0x25ae')];_0x52d7eb++){_0x9567c8['error']({'title':_0x34b7a1[_0x323881('0x11d0')]['errors'][_0x52d7eb][_0x323881('0x62e')],'msg':_0x34b7a1[_0x323881('0x11d0')][_0x323881('0xcd2')][_0x52d7eb][_0x323881('0x27e8')]});}}else _0x9567c8['error']({'title':_0x34b7a1[_0x323881('0x2833')]?_0x323881('0x27f2')+_0x34b7a1['status']+_0x323881('0x1b7c')+_0x34b7a1[_0x323881('0x1fd7')]:'SYSTEM:GETfaxAccount','msg':_0x34b7a1['data']?JSON['stringify'](_0x34b7a1[_0x323881('0x11d0')][_0x323881('0x27e8')]):_0x34b7a1['message']||_0x34b7a1[_0x323881('0x94f')]()});});}function _0x525f2e(){var _0x5da3b1=_0x2fc56d,_0x4c772a=angular['copy'](_0x48e6e5[_0x5da3b1('0x283a')]);return _0x48e6e5[_0x5da3b1('0x283a')]=[],_0x4c772a;}function _0xa7d8e1(_0x74d835){var _0x2d1405=_0x2fc56d,_0x2c7b64=_0x660b9c['confirm']()[_0x2d1405('0x13e4')](_0x2d1405('0x275c'))['htmlContent'](_0x2d1405('0xab2')+_0x48e6e5[_0x2d1405('0x283a')][_0x2d1405('0x25ae')]+_0x2d1405('0x5bc')+_0x2d1405('0x21bd'))[_0x2d1405('0x4d1')](_0x2d1405('0x234e'))[_0x2d1405('0x1345')](_0x74d835)['ok']('OK')[_0x2d1405('0x2c1')]('CANCEL');_0x660b9c[_0x2d1405('0x26b2')](_0x2c7b64)[_0x2d1405('0xe19')](function(){var _0x1e0609=_0x2d1405;_0x48e6e5[_0x1e0609('0x283a')][_0x1e0609('0x1d7e')](function(_0x3c8ad5){_0x1667a0(_0x3c8ad5);}),_0x48e6e5['selectedFaxAccountInteractions']=[];});}function _0x25177a(_0x17d070){var _0x18ddde=_0x2fc56d;_0x17d070[_0x18ddde('0x1286')]?(_0x17d070[_0x18ddde('0x130c')]=(_0x17d070[_0x18ddde('0x1286')][_0x18ddde('0x2566')]||'')+'\x20'+(_0x17d070[_0x18ddde('0x1286')][_0x18ddde('0x151f')]||''),_0x17d070[_0x18ddde('0x15a6')]=_0x17d070[_0x18ddde('0x1286')][_0x18ddde('0x625')]):_0x17d070['contactName']=_0x5ae483[_0x18ddde('0x2159')](_0x18ddde('0x27df'));}function _0x52a6c4(_0x19cad9){var _0x4ca7be=_0x2fc56d;if(_0x19cad9['UserId'])return _0x19cad9[_0x4ca7be('0x43d')]===_0x48e6e5[_0x4ca7be('0x15a5')]['id']?_0x5ae483[_0x4ca7be('0x2159')]('DASHBOARDS.ME'):_0x19cad9['Owner'][_0x4ca7be('0xe11')]+'\x20<'+_0x19cad9[_0x4ca7be('0x2237')][_0x4ca7be('0x1b66')]+'>';return _0x5ae483['instant'](_0x4ca7be('0x2094'));}var _0x435656=!![],_0xbab9a8=0x1;_0x3137b0[_0x2fc56d('0x107')](_0x2fc56d('0x1607'),function(_0x253ed1,_0x4a8e4e){var _0x4b275c=_0x2fc56d;_0x435656?_0x17be1d(function(){_0x435656=![];}):(!_0x4a8e4e&&(_0xbab9a8=_0x48e6e5[_0x4b275c('0xa16')][_0x4b275c('0xc08')]),_0x253ed1!==_0x4a8e4e&&(_0x48e6e5[_0x4b275c('0xa16')][_0x4b275c('0xc08')]=0x1),!_0x253ed1&&(_0x48e6e5[_0x4b275c('0xa16')][_0x4b275c('0xc08')]=_0xbab9a8),_0x5d6ff6());});}const _0x42058c=_0x27f2af,_0x54cd1d=_0x59426a['p']+_0xb635d2('0x184e');_0x2fd57a[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x2493'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'faxAccount',_0xb635d2('0xb59')];function _0x2fd57a(_0x2e0ee3,_0xf64341,_0x3e6f58,_0x26d0fd,_0x2f506c,_0x27ab36,_0x1c0441,_0x1a2891,_0x589af8,_0x492f06,_0x3b679a,_0x4a0be5){var _0x3de1a8=_0xb635d2,_0x1c9e05=this;_0x1c9e05['currentUser']=_0x492f06[_0x3de1a8('0x1ef8')](),_0x1c9e05[_0x3de1a8('0x5c1')]=_0x27ab36,_0x1c9e05[_0x3de1a8('0x22f1')]=_0x1c0441,_0x1c9e05[_0x3de1a8('0x25ac')]=_0x1c9e05[_0x3de1a8('0x22f1')][_0x3de1a8('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c9e05[_0x3de1a8('0x2170')]=_0xf64341[_0x3de1a8('0xec0')]()+'://'+_0xf64341[_0x3de1a8('0x3b7')](),_0x1c9e05['faxAccount']=_0x3b679a||_0x2e0ee3[_0x3de1a8('0x2ef')][_0x3de1a8('0x688')]||{},_0x1c9e05[_0x3de1a8('0xb59')]=_0x4a0be5&&_0x4a0be5['count']==0x1?_0x4a0be5['rows'][0x0]:null,_0x1c9e05['crudPermissions']=_0x492f06['parseCrudPermissions'](_0x1c9e05[_0x3de1a8('0xb59')]?_0x1c9e05['userProfileSection'][_0x3de1a8('0xb3d')]:null),_0x1c9e05[_0x3de1a8('0x1ccb')]={},_0x1c9e05[_0x3de1a8('0xc7b')]=_0x2e0ee3[_0x3de1a8('0x2ef')][_0x3de1a8('0x435')]||0x0,_0x1c9e05[_0x3de1a8('0x7ef')]=_0x4bd70e,_0x1c9e05[_0x3de1a8('0x1407')]=_0x2be14c,_0x1c9e05[_0x3de1a8('0xbdc')]=_0x589af8[_0x3de1a8('0x1e67')],_0x1c9e05[_0x3de1a8('0x28a9')]=_0x406ec0,_0x1c9e05[_0x3de1a8('0x1d42')]=_0x5b9568,_0x492f06[_0x3de1a8('0x179e')](_0x3de1a8('0xd14'))?_0x1a2891[_0x3de1a8('0x1397')]['get']({'fields':'id,name','sort':_0x3de1a8('0x2623')})[_0x3de1a8('0xe59')]['then'](function(_0x35c2c3){var _0x3d5845=_0x3de1a8;_0x1c9e05[_0x3d5845('0x155e')]=_0x35c2c3[_0x3d5845('0x16a7')]||[];})[_0x3de1a8('0x223b')](function(_0x3a1eba){var _0x14e9e9=_0x3de1a8;_0x589af8['error']({'title':_0x3a1eba[_0x14e9e9('0x2833')]?_0x14e9e9('0x27f2')+_0x3a1eba[_0x14e9e9('0x2833')]+_0x14e9e9('0x1b7c')+_0x3a1eba[_0x14e9e9('0x1fd7')]:'SYSTEM:GET_TRUNKS','msg':_0x3a1eba['data']?JSON[_0x14e9e9('0x3ad')](_0x3a1eba[_0x14e9e9('0x11d0')]):_0x3a1eba[_0x14e9e9('0x94f')]()});}):_0x1a2891[_0x3de1a8('0x1397')][_0x3de1a8('0x22d5')]({'fields':_0x3de1a8('0x104'),'sort':_0x3de1a8('0x2623')})['$promise'][_0x3de1a8('0xe19')](function(_0x497e5b){var _0x1de1c7=_0x3de1a8;_0x1c9e05[_0x1de1c7('0x155e')]=_0x497e5b[_0x1de1c7('0x16a7')]||[];})[_0x3de1a8('0xe19')](function(){var _0x1d6a3c=_0x3de1a8;return _0x1a2891[_0x1d6a3c('0xb59')][_0x1d6a3c('0x22d5')]({'userProfileId':_0x1c9e05['currentUser'][_0x1d6a3c('0x1d04')],'sectionId':0x3f3})[_0x1d6a3c('0xe59')];})['then'](function(_0x138552){var _0x45c4cf=_0x3de1a8,_0x4ba5c7=_0x138552&&_0x138552[_0x45c4cf('0x16a7')]?_0x138552[_0x45c4cf('0x16a7')][0x0]:null;if(!_0x4ba5c7){var _0x104fab=[],_0x360207=null;_0x1c9e05[_0x45c4cf('0x688')]&&(_0x360207=_0x32d445()[_0x45c4cf('0xf15')](_0x1c9e05[_0x45c4cf('0x155e')],{'id':Number(_0x1c9e05['faxAccount']['TrunkId'])}));for(var _0x1b864c=0x0;_0x1b864c<_0x1c9e05[_0x45c4cf('0x155e')][_0x45c4cf('0x25ae')];_0x1b864c++){_0x360207&&_0x1c9e05[_0x45c4cf('0x155e')][_0x1b864c]['id']===_0x360207['id']&&(_0x1c9e05[_0x45c4cf('0x155e')][_0x1b864c][_0x45c4cf('0x1e9d')]=![],_0x104fab[_0x45c4cf('0xb76')](_0x1c9e05[_0x45c4cf('0x155e')][_0x1b864c]));}_0x1c9e05[_0x45c4cf('0x155e')]=_0x104fab;}else{if(!_0x4ba5c7[_0x45c4cf('0x11fd')])return _0x1a2891[_0x45c4cf('0xd49')]['get']({'sectionId':_0x4ba5c7['id']})[_0x45c4cf('0xe59')][_0x45c4cf('0xe19')](function(_0x14d92a){var _0x1181c7=_0x45c4cf,_0x3d4f7a=_0x32d445()[_0x1181c7('0x65a')](_0x14d92a[_0x1181c7('0x16a7')],function(_0x143c9a){var _0x546b23=_0x1181c7;return _0x32d445()[_0x546b23('0xf15')](_0x1c9e05['trunks'],{'id':_0x143c9a['resourceId']});}),_0x44cb6e=null;_0x1c9e05[_0x1181c7('0x688')]&&(_0x44cb6e=_0x32d445()[_0x1181c7('0xf15')](_0x1c9e05[_0x1181c7('0x155e')],{'id':Number(_0x1c9e05[_0x1181c7('0x688')]['TrunkId'])}));if(_0x44cb6e&&!_0x32d445()[_0x1181c7('0x201a')](_0x3d4f7a,['id',_0x44cb6e['id']])){var _0x256de8=_0x32d445()['find'](_0x1c9e05[_0x1181c7('0x155e')],{'id':_0x44cb6e['id']});_0x256de8[_0x1181c7('0x1e9d')]=![],_0x3d4f7a[_0x1181c7('0xb76')](_0x256de8);}_0x1c9e05['trunks']=_0x3d4f7a;});}})[_0x3de1a8('0x223b')](function(_0x22b9cf){var _0x3a69f5=_0x3de1a8;_0x589af8[_0x3a69f5('0x8c8')]({'title':_0x22b9cf[_0x3a69f5('0x2833')]?_0x3a69f5('0x27f2')+_0x22b9cf['status']+_0x3a69f5('0x1b7c')+_0x22b9cf['statusText']:_0x3a69f5('0x14b5'),'msg':_0x22b9cf[_0x3a69f5('0x11d0')]?JSON[_0x3a69f5('0x3ad')](_0x22b9cf[_0x3a69f5('0x11d0')]):_0x22b9cf['toString']()});}),_0x492f06['hasRole']('admin')?_0x1a2891[_0x3de1a8('0x1bbd')][_0x3de1a8('0x22d5')]({'fields':_0x3de1a8('0x104'),'sort':_0x3de1a8('0x2623')})['$promise'][_0x3de1a8('0xe19')](function(_0x435e27){var _0x565450=_0x3de1a8;_0x1c9e05[_0x565450('0x9f8')]=_0x435e27['rows']||[];})[_0x3de1a8('0x223b')](function(_0x19fc92){var _0x20f63b=_0x3de1a8;_0x589af8[_0x20f63b('0x8c8')]({'title':_0x19fc92['status']?_0x20f63b('0x27f2')+_0x19fc92[_0x20f63b('0x2833')]+_0x20f63b('0x1b7c')+_0x19fc92[_0x20f63b('0x1fd7')]:_0x20f63b('0x2012'),'msg':_0x19fc92[_0x20f63b('0x11d0')]?JSON[_0x20f63b('0x3ad')](_0x19fc92[_0x20f63b('0x11d0')]):_0x19fc92[_0x20f63b('0x94f')]()});}):_0x1a2891[_0x3de1a8('0x1bbd')][_0x3de1a8('0x22d5')]({'fields':_0x3de1a8('0x104'),'sort':_0x3de1a8('0x2623')})[_0x3de1a8('0xe59')][_0x3de1a8('0xe19')](function(_0x3f256e){var _0x325166=_0x3de1a8;_0x1c9e05[_0x325166('0x9f8')]=_0x3f256e[_0x325166('0x16a7')]||[];})[_0x3de1a8('0xe19')](function(){var _0x522f43=_0x3de1a8;return _0x1a2891[_0x522f43('0xb59')]['get']({'userProfileId':_0x1c9e05['currentUser'][_0x522f43('0x1d04')],'sectionId':0x12d})[_0x522f43('0xe59')];})['then'](function(_0x457d49){var _0x1f48b5=_0x3de1a8,_0x4cd233=_0x457d49&&_0x457d49[_0x1f48b5('0x16a7')]?_0x457d49['rows'][0x0]:null;if(!_0x4cd233){var _0xebfe6c=[],_0x26a21b=null;_0x1c9e05[_0x1f48b5('0x688')]&&(_0x26a21b=_0x32d445()[_0x1f48b5('0xf15')](_0x1c9e05[_0x1f48b5('0x9f8')],{'id':Number(_0x1c9e05[_0x1f48b5('0x688')][_0x1f48b5('0x2463')])}));for(var _0x5bd56a=0x0;_0x5bd56a<_0x1c9e05[_0x1f48b5('0x9f8')][_0x1f48b5('0x25ae')];_0x5bd56a++){_0x26a21b&&_0x1c9e05[_0x1f48b5('0x9f8')][_0x5bd56a]['id']===_0x26a21b['id']&&(_0x1c9e05[_0x1f48b5('0x9f8')][_0x5bd56a][_0x1f48b5('0x1e9d')]=![],_0xebfe6c['push'](_0x1c9e05[_0x1f48b5('0x9f8')][_0x5bd56a]));}_0x1c9e05[_0x1f48b5('0x9f8')]=_0xebfe6c;}else{if(!_0x4cd233['autoAssociation'])return _0x1a2891[_0x1f48b5('0xd49')][_0x1f48b5('0x22d5')]({'sectionId':_0x4cd233['id']})[_0x1f48b5('0xe59')]['then'](function(_0x14f8b1){var _0x567602=_0x1f48b5,_0x19694d=_0x32d445()[_0x567602('0x65a')](_0x14f8b1[_0x567602('0x16a7')],function(_0x54c4a1){var _0x29e62f=_0x567602;return _0x32d445()[_0x29e62f('0xf15')](_0x1c9e05[_0x29e62f('0x9f8')],{'id':_0x54c4a1[_0x29e62f('0x1104')]});}),_0x16b56e=null;_0x1c9e05['faxAccount']&&(_0x16b56e=_0x32d445()[_0x567602('0xf15')](_0x1c9e05[_0x567602('0x9f8')],{'id':Number(_0x1c9e05[_0x567602('0x688')][_0x567602('0x2463')])}));if(_0x16b56e&&!_0x32d445()[_0x567602('0x201a')](_0x19694d,['id',_0x16b56e['id']])){var _0x280226=_0x32d445()['find'](_0x1c9e05[_0x567602('0x9f8')],{'id':_0x16b56e['id']});_0x280226['canSelect']=![],_0x19694d[_0x567602('0xb76')](_0x280226);}_0x1c9e05[_0x567602('0x9f8')]=_0x19694d;});}})['catch'](function(_0x35b4e2){var _0x5ec293=_0x3de1a8;_0x589af8[_0x5ec293('0x8c8')]({'title':_0x35b4e2[_0x5ec293('0x2833')]?_0x5ec293('0x27f2')+_0x35b4e2[_0x5ec293('0x2833')]+_0x5ec293('0x1b7c')+_0x35b4e2[_0x5ec293('0x1fd7')]:_0x5ec293('0xd65'),'msg':_0x35b4e2['data']?JSON['stringify'](_0x35b4e2[_0x5ec293('0x11d0')]):_0x35b4e2[_0x5ec293('0x94f')]()});}),_0x492f06[_0x3de1a8('0x179e')]('admin')?_0x1a2891[_0x3de1a8('0x1c98')][_0x3de1a8('0x22d5')]({'fields':_0x3de1a8('0x1b75'),'sort':_0x3de1a8('0x2623'),'nolimit':_0x3de1a8('0x2206')})[_0x3de1a8('0xe59')][_0x3de1a8('0xe19')](function(_0x343c09){var _0xf7e7a=_0x3de1a8;_0x1c9e05[_0xf7e7a('0x145e')]=_0x343c09[_0xf7e7a('0x16a7')]||[];})[_0x3de1a8('0x223b')](function(_0x4c6e73){var _0x31c5a5=_0x3de1a8;_0x589af8[_0x31c5a5('0x8c8')]({'title':_0x4c6e73[_0x31c5a5('0x2833')]?'API:'+_0x4c6e73[_0x31c5a5('0x2833')]+_0x31c5a5('0x1b7c')+_0x4c6e73['statusText']:_0x31c5a5('0x20ea'),'msg':_0x4c6e73[_0x31c5a5('0x11d0')]?JSON[_0x31c5a5('0x3ad')](_0x4c6e73['data']):_0x4c6e73[_0x31c5a5('0x94f')]()});}):_0x1a2891[_0x3de1a8('0x1c98')][_0x3de1a8('0x22d5')]({'fields':_0x3de1a8('0x1b75'),'sort':_0x3de1a8('0x2623'),'nolimit':_0x3de1a8('0x2206')})[_0x3de1a8('0xe59')][_0x3de1a8('0xe19')](function(_0x2abace){var _0x3d5bee=_0x3de1a8;_0x1c9e05['pauses']=_0x2abace[_0x3d5bee('0x16a7')]||[];})['then'](function(){var _0x955c5d=_0x3de1a8;return _0x1a2891[_0x955c5d('0xb59')][_0x955c5d('0x22d5')]({'userProfileId':_0x1c9e05[_0x955c5d('0x15a5')][_0x955c5d('0x1d04')],'sectionId':0x3ed})['$promise'];})[_0x3de1a8('0xe19')](function(_0x3d2a76){var _0x226ed4=_0x3de1a8,_0x4b7ce3=_0x3d2a76&&_0x3d2a76[_0x226ed4('0x16a7')]?_0x3d2a76[_0x226ed4('0x16a7')][0x0]:null;if(!_0x4b7ce3)_0x1c9e05[_0x226ed4('0x145e')]=[];else{if(!_0x4b7ce3[_0x226ed4('0x11fd')])return _0x1a2891[_0x226ed4('0xd49')][_0x226ed4('0x22d5')]({'sectionId':_0x4b7ce3['id']})['$promise'][_0x226ed4('0xe19')](function(_0x1ac79b){var _0x529025=_0x226ed4,_0x4592d0=_0x32d445()['map'](_0x1ac79b[_0x529025('0x16a7')],function(_0x3b773e){var _0x32fcb4=_0x529025;return _0x32d445()[_0x32fcb4('0xf15')](_0x1c9e05[_0x32fcb4('0x145e')],{'id':_0x3b773e[_0x32fcb4('0x1104')]});});_0x1c9e05[_0x529025('0x145e')]['forEach'](function(_0xbc16f9){var _0x557845=_0x529025;!_0x32d445()[_0x557845('0x201a')](_0x4592d0,['id',_0xbc16f9['id']])&&(_0xbc16f9['canSelect']=![]),_0x4592d0[_0x557845('0xb76')](_0xbc16f9);}),_0x1c9e05['pauses']=_0x4592d0;});}})[_0x3de1a8('0x223b')](function(_0x1326f0){var _0x1e9fdc=_0x3de1a8;_0x589af8[_0x1e9fdc('0x8c8')]({'title':_0x1326f0[_0x1e9fdc('0x2833')]?_0x1e9fdc('0x27f2')+_0x1326f0[_0x1e9fdc('0x2833')]+_0x1e9fdc('0x1b7c')+_0x1326f0[_0x1e9fdc('0x1fd7')]:'SYSTEM:GETpauses','msg':_0x1326f0[_0x1e9fdc('0x11d0')]?JSON['stringify'](_0x1326f0['data']):_0x1326f0[_0x1e9fdc('0x94f')]()});});function _0x4bd70e(){var _0x49c266=_0x3de1a8;if(_0x492f06[_0x49c266('0x179e')](_0x49c266('0xd14')))_0x2e0ee3['go']('app.fax.realtime.accounts',{});else return _0x1a2891[_0x49c266('0xb59')][_0x49c266('0x22d5')]({'userProfileId':_0x492f06[_0x49c266('0x1ef8')]()['userProfileId'],'sectionId':0x38e})[_0x49c266('0xe59')][_0x49c266('0xe19')](function(_0x4544cd){var _0x2eed71=_0x49c266,_0x54515e=_0x4544cd&&_0x4544cd[_0x2eed71('0x16a7')]?_0x4544cd[_0x2eed71('0x16a7')][0x0]:null;_0x54515e&&_0x54515e[_0x2eed71('0x4ef')]?_0x2e0ee3['go'](_0x2eed71('0x1529'),{}):_0x589af8[_0x2eed71('0x1e67')]({'title':_0x2f506c[_0x2eed71('0x2159')](_0x2eed71('0x2786')),'msg':_0x2f506c[_0x2eed71('0x2159')](_0x2eed71('0x4bb'))});})['catch'](function(_0x2eebe7){var _0x3843c4=_0x49c266;_0x589af8[_0x3843c4('0x8c8')]({'title':_0x2eebe7[_0x3843c4('0x2833')]?_0x3843c4('0x27f2')+_0x2eebe7[_0x3843c4('0x2833')]+_0x3843c4('0x1b7c')+_0x2eebe7['statusText']:_0x3843c4('0x343'),'msg':_0x2eebe7[_0x3843c4('0x2833')]?JSON[_0x3843c4('0x3ad')](_0x2eebe7['data']):_0x2eebe7[_0x3843c4('0x94f')]()});});}function _0x2be14c(_0x3c47eb,_0x240999){var _0x2b29cc=_0x3de1a8;_0x3e6f58[_0x2b29cc('0x26b2')]({'controller':_0x2b29cc('0x195c'),'controllerAs':'vm','templateUrl':_0x54cd1d,'parent':angular['element'](_0x26d0fd[_0x2b29cc('0x19b2')]),'targetEvent':_0x240999,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x3c47eb,'faxAccounts':_0x1c9e05['faxAccounts']?_0x1c9e05[_0x2b29cc('0x1a77')][_0x2b29cc('0x16a7')]:[],'crudPermissions':_0x1c9e05[_0x2b29cc('0xb3d')],'realtime':![]}});}function _0x406ec0(){var _0x470c14=_0x3de1a8;_0x2e0ee3['go'](_0x470c14('0x6dc'),{},{'reload':_0x470c14('0x6dc')});}function _0x5b9568(){var _0x4a6ac5=_0x3de1a8;_0x1a2891['faxAccount']['updateAccountApplications'](_0x1c9e05[_0x4a6ac5('0x688')])[_0x4a6ac5('0xe59')][_0x4a6ac5('0xe19')](function(){var _0x56300f=_0x4a6ac5;_0x589af8['success']({'title':_0x56300f('0x1ad7'),'msg':_0x1c9e05[_0x56300f('0x688')]['name']?_0x1c9e05[_0x56300f('0x688')]['name']+_0x56300f('0x283b'):''});})[_0x4a6ac5('0x223b')](function(_0x40ab63){var _0x58ce62=_0x4a6ac5;_0x589af8[_0x58ce62('0x8c8')]({'title':_0x40ab63[_0x58ce62('0x2833')]?_0x58ce62('0x27f2')+_0x40ab63[_0x58ce62('0x2833')]+_0x58ce62('0x1b7c')+_0x40ab63[_0x58ce62('0x1fd7')]:_0x58ce62('0x31c'),'msg':_0x40ab63[_0x58ce62('0x11d0')]?JSON[_0x58ce62('0x3ad')](_0x40ab63[_0x58ce62('0x11d0')]):_0x40ab63[_0x58ce62('0x94f')]()});});}}const _0x1b7fb5=_0x2fd57a,_0x2fe2bf=_0x59426a['p']+_0xb635d2('0x1078');_0x2750c0['$inject']=[_0xb635d2('0x63c'),'$window','$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x1a77'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x2750c0(_0x291a97,_0x547682,_0x1be849,_0x3f6a8c,_0x138744,_0x2deae9,_0x5d0c03,_0x236b83,_0x2bc367,_0x350176,_0x21b677,_0x540af7,_0x5acf8f,_0x4cfd9e,_0xe3b822,_0x183458,_0x47bd93){var _0x586a4f=_0xb635d2,_0x5ac773=this;_0x5ac773[_0x586a4f('0x5c1')]=_0x183458,_0x5ac773[_0x586a4f('0x22f1')]=_0x47bd93,_0x5ac773[_0x586a4f('0x15a5')]=_0xe3b822[_0x586a4f('0x1ef8')](),_0x5ac773[_0x586a4f('0x1a77')]=_0x2bc367||{'count':0x0,'rows':[]},_0x5ac773[_0x586a4f('0x154f')]=_0x350176,_0x5ac773[_0x586a4f('0xb59')]=_0x21b677&&_0x21b677[_0x586a4f('0x148b')]==0x1?_0x21b677[_0x586a4f('0x16a7')][0x0]:null,_0x5ac773['crudPermissions']=_0xe3b822[_0x586a4f('0xd31')](_0x5ac773[_0x586a4f('0xb59')]?_0x5ac773[_0x586a4f('0xb59')][_0x586a4f('0xb3d')]:null),_0x5ac773[_0x586a4f('0x19b6')]='faxAccounts',_0x5ac773[_0x586a4f('0x14d6')]='',_0x5ac773['listOrderAsc']=null,_0x5ac773[_0x586a4f('0x1fbc')]=[],_0x5ac773['query']={'fields':_0x586a4f('0x1aa4'),'sort':_0x586a4f('0x7e8'),'limit':0xa,'page':0x1},_0x5ac773[_0x586a4f('0x835')]=_0x32d445()['keyBy']([{'option':_0x586a4f('0x794'),'value':_0x586a4f('0x11bd')},{'option':'no','value':_0x586a4f('0x16f2')}],function(_0x80b1f1){var _0x1cd626=_0x586a4f;return _0x32d445()[_0x1cd626('0x1b42')](_0x80b1f1['value'],new RegExp('\x27','g'),'');}),_0x5ac773[_0x586a4f('0x1a68')]=_0x32d445()['keyBy']([{'option':_0x586a4f('0x20a2'),'value':_0x586a4f('0xe0c')},{'option':_0x586a4f('0x14dc'),'value':_0x586a4f('0x1e1f')},{'option':'7200','value':'\x277200\x27'},{'option':_0x586a4f('0x2249'),'value':_0x586a4f('0x81c')},{'option':_0x586a4f('0xd8d'),'value':_0x586a4f('0x38d')},{'option':_0x586a4f('0x220c'),'value':_0x586a4f('0x1d9f')}],function(_0x22368c){var _0x6fe33d=_0x586a4f;return _0x32d445()[_0x6fe33d('0x1b42')](_0x22368c['value'],new RegExp('\x27','g'),'');}),_0x5ac773[_0x586a4f('0xee2')]=_0x32d445()[_0x586a4f('0x226f')]([{'option':_0x586a4f('0x20a2'),'value':_0x586a4f('0xe0c')},{'option':_0x586a4f('0x14dc'),'value':_0x586a4f('0x1e1f')},{'option':_0x586a4f('0x1185'),'value':_0x586a4f('0x1a0a')},{'option':_0x586a4f('0x2249'),'value':'\x279600\x27'},{'option':'12000','value':_0x586a4f('0x38d')},{'option':_0x586a4f('0x220c'),'value':_0x586a4f('0x1d9f')}],function(_0x1536cb){var _0x4afd5e=_0x586a4f;return _0x32d445()[_0x4afd5e('0x1b42')](_0x1536cb[_0x4afd5e('0x2')],new RegExp('\x27','g'),'');}),_0x5ac773[_0x586a4f('0x28a8')]=_0x32d445()['keyBy']([{'option':_0x586a4f('0x1295'),'value':_0x586a4f('0x171')},{'option':_0x586a4f('0x123b'),'value':'\x27IAX\x27'},{'option':'DADHI','value':'\x27DADHI\x27'},{'option':_0x586a4f('0x2704'),'value':_0x586a4f('0x5f8')}],function(_0x3883f9){var _0x3b3ffd=_0x586a4f;return _0x32d445()[_0x3b3ffd('0x1b42')](_0x3883f9['value'],new RegExp('\x27','g'),'');}),_0x5ac773[_0x586a4f('0x16a0')]=_0x1627b5,_0x5ac773[_0x586a4f('0x1d08')]=_0x195e6d,_0x5ac773[_0x586a4f('0x20e3')]=_0x31a39d,_0x5ac773[_0x586a4f('0x1407')]=_0x25fad0,_0x5ac773[_0x586a4f('0x1d9e')]=_0x244b75,_0x5ac773[_0x586a4f('0x425')]=_0x245858,_0x5ac773['getFaxAccounts']=_0x8ac356,_0x5ac773[_0x586a4f('0x19d6')]=_0x2a9532,_0x5ac773[_0x586a4f('0x21d0')]=_0x15aaac,_0x5ac773['exportSelectedFaxAccounts']=_0x157708,_0x5ac773[_0x586a4f('0x3bf')]=_0x3d6c8b,_0x5ac773[_0x586a4f('0x138a')]=_0x5a7d37,_0x5ac773[_0x586a4f('0x1db9')]=_0x255849,_0xe3b822[_0x586a4f('0x179e')]('admin')?_0x540af7[_0x586a4f('0x1397')]['get']({'fields':_0x586a4f('0x104'),'sort':_0x586a4f('0x2623')})['$promise']['then'](function(_0xddf913){var _0x219480=_0x586a4f;_0x5ac773[_0x219480('0x155e')]=_0xddf913[_0x219480('0x16a7')]||[];})[_0x586a4f('0x223b')](function(_0x113e91){var _0x28d59c=_0x586a4f;_0x4cfd9e[_0x28d59c('0x8c8')]({'title':_0x113e91['status']?_0x28d59c('0x27f2')+_0x113e91[_0x28d59c('0x2833')]+_0x28d59c('0x1b7c')+_0x113e91[_0x28d59c('0x1fd7')]:_0x28d59c('0x1e6d'),'msg':_0x113e91[_0x28d59c('0x11d0')]?JSON[_0x28d59c('0x3ad')](_0x113e91[_0x28d59c('0x11d0')]):_0x113e91[_0x28d59c('0x94f')]()});}):_0x540af7['trunk'][_0x586a4f('0x22d5')]({'fields':_0x586a4f('0x104'),'sort':'name'})['$promise']['then'](function(_0x52ef9e){var _0x413486=_0x586a4f;_0x5ac773[_0x413486('0x155e')]=_0x52ef9e[_0x413486('0x16a7')]||[];})[_0x586a4f('0xe19')](function(){var _0x4b5273=_0x586a4f;return _0x540af7['userProfileSection']['get']({'userProfileId':_0x5ac773[_0x4b5273('0x15a5')][_0x4b5273('0x1d04')],'sectionId':0x3f3})[_0x4b5273('0xe59')];})[_0x586a4f('0xe19')](function(_0x4677cc){var _0x341547=_0x586a4f,_0x5593f0=_0x4677cc&&_0x4677cc[_0x341547('0x16a7')]?_0x4677cc['rows'][0x0]:null;if(!_0x5593f0){var _0x596397=[],_0x1596bd=[];_0x5ac773[_0x341547('0x1a77')][_0x341547('0x16a7')][_0x341547('0x1d7e')](function(_0x825d44){var _0x4ddea7=_0x341547,_0x5af90c=_0x32d445()[_0x4ddea7('0xf15')](_0x5ac773[_0x4ddea7('0x155e')],{'id':Number(_0x825d44[_0x4ddea7('0x186d')])});_0x1596bd[_0x4ddea7('0xb76')](_0x5af90c);});for(var _0x4704e3=0x0;_0x4704e3<_0x5ac773['trunks'][_0x341547('0x25ae')];_0x4704e3++){var _0x44f976=_0x32d445()[_0x341547('0x201a')](_0x1596bd,{'id':_0x5ac773[_0x341547('0x155e')][_0x4704e3]['id']});_0x44f976&&(_0x5ac773['trunks'][_0x4704e3]['canSelect']=![],_0x596397[_0x341547('0xb76')](_0x5ac773['trunks'][_0x4704e3]));}_0x5ac773[_0x341547('0x155e')]=_0x596397;}else{if(!_0x5593f0[_0x341547('0x11fd')])return _0x540af7[_0x341547('0xd49')]['get']({'sectionId':_0x5593f0['id']})['$promise'][_0x341547('0xe19')](function(_0x25f7a2){var _0x56c6bf=_0x341547,_0x206aff=_0x32d445()[_0x56c6bf('0x65a')](_0x25f7a2['rows'],function(_0x3b0066){var _0x316e5f=_0x56c6bf;return _0x32d445()[_0x316e5f('0xf15')](_0x5ac773[_0x316e5f('0x155e')],{'id':_0x3b0066[_0x316e5f('0x1104')]});}),_0x4d9fe4=null;_0x4d9fe4=[],_0x5ac773['faxAccounts'][_0x56c6bf('0x16a7')][_0x56c6bf('0x1d7e')](function(_0xcc1e8f){var _0x1c28e2=_0x56c6bf,_0x146b67=_0x32d445()[_0x1c28e2('0xf15')](_0x5ac773[_0x1c28e2('0x155e')],{'id':Number(_0xcc1e8f[_0x1c28e2('0x186d')])});_0x4d9fe4[_0x1c28e2('0xb76')](_0x146b67);}),!_0x32d445()['isEmpty'](_0x4d9fe4)&&_0x4d9fe4[_0x56c6bf('0x1d7e')](function(_0x3aecfc){var _0x47f9c6=_0x56c6bf;if(!_0x32d445()[_0x47f9c6('0x201a')](_0x206aff,['id',_0x3aecfc['id']])){var _0x1ab7aa=_0x32d445()[_0x47f9c6('0xf15')](_0x5ac773[_0x47f9c6('0x155e')],{'id':_0x3aecfc['id']});_0x1ab7aa[_0x47f9c6('0x1e9d')]=![],_0x206aff[_0x47f9c6('0xb76')](_0x1ab7aa);}}),_0x5ac773[_0x56c6bf('0x155e')]=_0x206aff;});}})[_0x586a4f('0x223b')](function(_0x326c32){var _0x460cc9=_0x586a4f;_0x4cfd9e[_0x460cc9('0x8c8')]({'title':_0x326c32[_0x460cc9('0x2833')]?_0x460cc9('0x27f2')+_0x326c32[_0x460cc9('0x2833')]+'\x20-\x20'+_0x326c32[_0x460cc9('0x1fd7')]:_0x460cc9('0x14b5'),'msg':_0x326c32['data']?JSON[_0x460cc9('0x3ad')](_0x326c32['data']):_0x326c32[_0x460cc9('0x94f')]()});}),_0xe3b822[_0x586a4f('0x179e')]('admin')?_0x540af7[_0x586a4f('0x1bbd')]['get']({'fields':_0x586a4f('0x104'),'sort':_0x586a4f('0x2623')})['$promise'][_0x586a4f('0xe19')](function(_0x287252){var _0xb46af=_0x586a4f;_0x5ac773[_0xb46af('0x9f8')]=_0x287252[_0xb46af('0x16a7')]||[];})[_0x586a4f('0x223b')](function(_0x249e4f){var _0x5b72af=_0x586a4f;_0x4cfd9e['error']({'title':_0x249e4f[_0x5b72af('0x2833')]?_0x5b72af('0x27f2')+_0x249e4f[_0x5b72af('0x2833')]+_0x5b72af('0x1b7c')+_0x249e4f[_0x5b72af('0x1fd7')]:_0x5b72af('0x2012'),'msg':_0x249e4f['data']?JSON[_0x5b72af('0x3ad')](_0x249e4f[_0x5b72af('0x11d0')]):_0x249e4f[_0x5b72af('0x94f')]()});}):_0x540af7[_0x586a4f('0x1bbd')]['get']({'fields':_0x586a4f('0x104'),'sort':_0x586a4f('0x2623')})[_0x586a4f('0xe59')][_0x586a4f('0xe19')](function(_0x47c82f){var _0x4b27a9=_0x586a4f;_0x5ac773[_0x4b27a9('0x9f8')]=_0x47c82f[_0x4b27a9('0x16a7')]||[];})[_0x586a4f('0xe19')](function(){var _0x1e432b=_0x586a4f;return _0x540af7[_0x1e432b('0xb59')]['get']({'userProfileId':_0x5ac773[_0x1e432b('0x15a5')][_0x1e432b('0x1d04')],'sectionId':0x12d})['$promise'];})[_0x586a4f('0xe19')](function(_0x9711a7){var _0x4193f8=_0x586a4f,_0x29b783=_0x9711a7&&_0x9711a7['rows']?_0x9711a7[_0x4193f8('0x16a7')][0x0]:null;if(!_0x29b783){var _0x5411cf=[],_0x13dfde=null;_0x5ac773[_0x4193f8('0x688')]&&(_0x13dfde=_0x32d445()[_0x4193f8('0xf15')](_0x5ac773['lists'],{'id':Number(_0x5ac773[_0x4193f8('0x688')][_0x4193f8('0x2463')])}));for(var _0x43c944=0x0;_0x43c944<_0x5ac773[_0x4193f8('0x9f8')][_0x4193f8('0x25ae')];_0x43c944++){_0x13dfde&&_0x5ac773[_0x4193f8('0x9f8')][_0x43c944]['id']===_0x13dfde['id']&&(_0x5ac773[_0x4193f8('0x9f8')][_0x43c944][_0x4193f8('0x1e9d')]=![],_0x5411cf['push'](_0x5ac773[_0x4193f8('0x9f8')][_0x43c944]));}_0x5ac773[_0x4193f8('0x9f8')]=_0x5411cf;}else{if(!_0x29b783[_0x4193f8('0x11fd')])return _0x540af7[_0x4193f8('0xd49')][_0x4193f8('0x22d5')]({'sectionId':_0x29b783['id']})[_0x4193f8('0xe59')][_0x4193f8('0xe19')](function(_0x6d5ce2){var _0x5c7ab3=_0x4193f8,_0x469c9a=_0x32d445()[_0x5c7ab3('0x65a')](_0x6d5ce2['rows'],function(_0x7f31a4){var _0x57b3e0=_0x5c7ab3;return _0x32d445()['find'](_0x5ac773['lists'],{'id':_0x7f31a4[_0x57b3e0('0x1104')]});}),_0x4a2f32=null;_0x5ac773[_0x5c7ab3('0x688')]&&(_0x4a2f32=_0x32d445()[_0x5c7ab3('0xf15')](_0x5ac773[_0x5c7ab3('0x9f8')],{'id':Number(_0x5ac773['faxAccount']['ListId'])}));if(_0x4a2f32&&!_0x32d445()[_0x5c7ab3('0x201a')](_0x469c9a,['id',_0x4a2f32['id']])){var _0x41863c=_0x32d445()['find'](_0x5ac773['lists'],{'id':_0x4a2f32['id']});_0x41863c[_0x5c7ab3('0x1e9d')]=![],_0x469c9a[_0x5c7ab3('0xb76')](_0x41863c);}_0x5ac773[_0x5c7ab3('0x9f8')]=_0x469c9a;});}})[_0x586a4f('0x223b')](function(_0x470bbd){var _0x27f0d9=_0x586a4f;_0x4cfd9e[_0x27f0d9('0x8c8')]({'title':_0x470bbd[_0x27f0d9('0x2833')]?_0x27f0d9('0x27f2')+_0x470bbd[_0x27f0d9('0x2833')]+'\x20-\x20'+_0x470bbd[_0x27f0d9('0x1fd7')]:_0x27f0d9('0xd65'),'msg':_0x470bbd[_0x27f0d9('0x11d0')]?JSON[_0x27f0d9('0x3ad')](_0x470bbd[_0x27f0d9('0x11d0')]):_0x470bbd[_0x27f0d9('0x94f')]()});});function _0x1627b5(_0x5cf0e2){var _0x1bc759=_0x586a4f;_0x1be849['go'](_0x1bc759('0x100d'),{'id':_0x5cf0e2['id'],'faxAccount':_0x5cf0e2,'crudPermissions':_0x5ac773[_0x1bc759('0xb3d')]});}function _0x195e6d(_0x56f05f){var _0x4fe283=_0x586a4f;_0x1be849['go'](_0x4fe283('0x100d'),{'id':_0x56f05f['id'],'tab':0x5});}function _0x31a39d(){var _0x1a5fcf=_0x586a4f;if(_0xe3b822[_0x1a5fcf('0x179e')]('admin'))_0x1be849['go']('app.fax.realtime.accounts',{});else return _0x540af7[_0x1a5fcf('0xb59')]['get']({'userProfileId':_0xe3b822['getCurrentUser']()['userProfileId'],'sectionId':0x38e})[_0x1a5fcf('0xe59')]['then'](function(_0x5c110f){var _0x52b4f6=_0x1a5fcf,_0x52f93e=_0x5c110f&&_0x5c110f[_0x52b4f6('0x16a7')]?_0x5c110f[_0x52b4f6('0x16a7')][0x0]:null;_0x52f93e&&_0x52f93e[_0x52b4f6('0x4ef')]?_0x1be849['go'](_0x52b4f6('0x1529'),{}):_0x4cfd9e['info']({'title':_0x236b83[_0x52b4f6('0x2159')](_0x52b4f6('0x2786')),'msg':_0x236b83['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x1a5fcf('0x223b')](function(_0x4fc30a){var _0x546cd0=_0x1a5fcf;_0x4cfd9e[_0x546cd0('0x8c8')]({'title':_0x4fc30a[_0x546cd0('0x2833')]?_0x546cd0('0x27f2')+_0x4fc30a['status']+_0x546cd0('0x1b7c')+_0x4fc30a[_0x546cd0('0x1fd7')]:_0x546cd0('0x343'),'msg':_0x4fc30a[_0x546cd0('0x2833')]?JSON[_0x546cd0('0x3ad')](_0x4fc30a[_0x546cd0('0x11d0')]):_0x4fc30a[_0x546cd0('0x94f')]()});});}function _0x25fad0(_0x594300,_0x245339){var _0x2e7c54=_0x586a4f;_0x138744[_0x2e7c54('0x26b2')]({'controller':_0x2e7c54('0x195c'),'controllerAs':'vm','templateUrl':_0x54cd1d,'parent':angular['element'](_0x2deae9[_0x2e7c54('0x19b2')]),'targetEvent':_0x245339,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x594300,'faxAccounts':_0x5ac773[_0x2e7c54('0x1a77')]?_0x5ac773['faxAccounts']['rows']:[],'crudPermissions':_0x5ac773[_0x2e7c54('0xb3d')],'realtime':![]}});}function _0x244b75(_0xec5cee,_0x2e798e){var _0x1722bc=_0x586a4f,_0x4956cc=_0x138744[_0x1722bc('0xa5')]()['title'](_0x1722bc('0x346')+_0x32d445()[_0x1722bc('0x1df2')](_0x1722bc('0x688'))+'?')[_0x1722bc('0x221c')](_0x1722bc('0xab2')+(_0xec5cee[_0x1722bc('0x2623')]||_0x1722bc('0x688'))+_0x1722bc('0x27bb')+_0x1722bc('0x21bd'))[_0x1722bc('0x4d1')](_0x1722bc('0xb82'))[_0x1722bc('0x1345')](_0x2e798e)['ok']('OK')['cancel'](_0x1722bc('0x17'));_0x138744['show'](_0x4956cc)[_0x1722bc('0xe19')](function(){_0x15aaac(_0xec5cee);},function(){var _0x32e4b1=_0x1722bc;console[_0x32e4b1('0x1fe9')](_0x32e4b1('0x17'));});}var _0x397ed6=!![],_0x2511d3=0x1;_0x291a97[_0x586a4f('0x107')](_0x586a4f('0x20cb'),function(_0x4e1e26,_0x2088fe){var _0x2589c3=_0x586a4f;_0x397ed6?_0x5d0c03(function(){_0x397ed6=![];}):(!_0x2088fe&&(_0x2511d3=_0x5ac773[_0x2589c3('0xa16')][_0x2589c3('0xc08')]),_0x4e1e26!==_0x2088fe&&(_0x5ac773[_0x2589c3('0xa16')][_0x2589c3('0xc08')]=0x1),!_0x4e1e26&&(_0x5ac773[_0x2589c3('0xa16')]['page']=_0x2511d3),_0x5ac773[_0x2589c3('0x281e')]());});function _0x245858(_0x5b3af7){_0x5ac773['faxAccounts']=_0x5b3af7||{'count':0x0,'rows':[]};}function _0x8ac356(){var _0x5676db=_0x586a4f;_0x5ac773['query']['offset']=(_0x5ac773[_0x5676db('0xa16')][_0x5676db('0xc08')]-0x1)*_0x5ac773[_0x5676db('0xa16')][_0x5676db('0x1b6d')],_0xe3b822[_0x5676db('0x179e')](_0x5676db('0xd14'))?_0x5ac773[_0x5676db('0x9c8')]=_0x540af7[_0x5676db('0x688')][_0x5676db('0x22d5')](_0x5ac773[_0x5676db('0xa16')],_0x245858)[_0x5676db('0xe59')]:(_0x5ac773[_0x5676db('0xa16')]['id']=_0x5ac773[_0x5676db('0x154f')]['id'],_0x5ac773[_0x5676db('0xa16')][_0x5676db('0x1e59')]=_0x5676db('0x19b0'),_0x5ac773[_0x5676db('0x9c8')]=_0x540af7[_0x5676db('0x154f')][_0x5676db('0x14e6')](_0x5ac773[_0x5676db('0xa16')],_0x245858)[_0x5676db('0xe59')]);}function _0x2a9532(_0x2b7431,_0x4cbf3f){var _0x166a9d=_0x586a4f;_0x138744['show']({'controller':_0x166a9d('0x1740'),'controllerAs':'vm','templateUrl':_0x2fe2bf,'parent':angular[_0x166a9d('0x24a1')](_0x2deae9[_0x166a9d('0x19b2')]),'targetEvent':_0x2b7431,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x4cbf3f,'faxAccounts':_0x5ac773[_0x166a9d('0x1a77')]['rows'],'license':_0x5ac773[_0x166a9d('0x5c1')],'setting':_0x5ac773[_0x166a9d('0x22f1')],'crudPermissions':_0x5ac773['crudPermissions']}});}function _0x15aaac(_0x3c3b7b){var _0xa17a20=_0x586a4f;_0x540af7[_0xa17a20('0x688')]['delete']({'id':_0x3c3b7b['id']})[_0xa17a20('0xe59')][_0xa17a20('0xe19')](function(){var _0x2e1ea6=_0xa17a20;_0x32d445()[_0x2e1ea6('0xa8b')](_0x5ac773[_0x2e1ea6('0x1a77')][_0x2e1ea6('0x16a7')],{'id':_0x3c3b7b['id']}),_0x5ac773[_0x2e1ea6('0x1a77')]['count']-=0x1,!_0x5ac773['faxAccounts'][_0x2e1ea6('0x16a7')][_0x2e1ea6('0x25ae')]&&_0x5ac773['getFaxAccounts'](),_0x4cfd9e[_0x2e1ea6('0x425')]({'title':_0x32d445()[_0x2e1ea6('0x1df2')](_0x2e1ea6('0x1bc'))+'\x20deleted!','msg':_0x3c3b7b['name']?_0x3c3b7b['name']+'\x20has\x20been\x20deleted!':''});})[_0xa17a20('0x223b')](function(_0x2c8ee7){var _0x40bd23=_0xa17a20;if(_0x2c8ee7[_0x40bd23('0x11d0')]&&_0x2c8ee7[_0x40bd23('0x11d0')][_0x40bd23('0xcd2')]&&_0x2c8ee7[_0x40bd23('0x11d0')]['errors'][_0x40bd23('0x25ae')]){_0x5ac773[_0x40bd23('0xcd2')]=_0x2c8ee7[_0x40bd23('0x11d0')]['errors']||[{'message':_0x2c8ee7[_0x40bd23('0x94f')](),'type':_0x40bd23('0x1477')}];for(var _0x3e3dfc=0x0;_0x3e3dfc<_0x2c8ee7['data'][_0x40bd23('0xcd2')]['length'];_0x3e3dfc++){_0x4cfd9e[_0x40bd23('0x8c8')]({'title':_0x2c8ee7['data'][_0x40bd23('0xcd2')][_0x3e3dfc][_0x40bd23('0x62e')],'msg':_0x2c8ee7[_0x40bd23('0x11d0')]['errors'][_0x3e3dfc][_0x40bd23('0x27e8')]});}}else _0x4cfd9e[_0x40bd23('0x8c8')]({'title':_0x2c8ee7[_0x40bd23('0x2833')]?'API:'+_0x2c8ee7['status']+'\x20-\x20'+_0x2c8ee7[_0x40bd23('0x1fd7')]:'SYSTEM:DELETEfaxAccount','msg':_0x2c8ee7['data']?JSON[_0x40bd23('0x3ad')](_0x2c8ee7['data'][_0x40bd23('0x27e8')]):_0x2c8ee7[_0x40bd23('0x27e8')]||_0x2c8ee7[_0x40bd23('0x94f')]()});});}function _0x157708(){var _0x269eff=_0x586a4f,_0x20d930=angular[_0x269eff('0x89')](_0x5ac773[_0x269eff('0x1fbc')]);return _0x5ac773[_0x269eff('0x1fbc')]=[],_0x20d930;}function _0x3d6c8b(_0x17efb7){var _0x1b8cc4=_0x586a4f,_0x534f80=_0x138744[_0x1b8cc4('0xa5')]()[_0x1b8cc4('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxAccounts?')[_0x1b8cc4('0x221c')](_0x1b8cc4('0xab2')+_0x5ac773['selectedFaxAccounts']['length']+_0x1b8cc4('0x5bc')+'\x20will\x20be\x20deleted.')[_0x1b8cc4('0x4d1')](_0x1b8cc4('0x21e2'))[_0x1b8cc4('0x1345')](_0x17efb7)['ok']('OK')['cancel']('CANCEL');_0x138744[_0x1b8cc4('0x26b2')](_0x534f80)[_0x1b8cc4('0xe19')](function(){var _0x5964a2=_0x1b8cc4;_0x5ac773[_0x5964a2('0x1fbc')][_0x5964a2('0x1d7e')](function(_0x24049d){_0x15aaac(_0x24049d);}),_0x5ac773[_0x5964a2('0x1fbc')]=[];});}function _0x5a7d37(){var _0xebf680=_0x586a4f;_0x5ac773[_0xebf680('0x1fbc')]=[];}function _0x255849(){var _0x4a4fa5=_0x586a4f;_0x5ac773[_0x4a4fa5('0x1fbc')]=_0x5ac773[_0x4a4fa5('0x1a77')]['rows'];}}const _0x1a291a=_0x2750c0;_0x564c62[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x156e'),'faxQueue',_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x564c62(_0x36f082,_0x2e9ccd,_0x194d99,_0x120516,_0x2e32c8,_0x48acb8,_0x5672f0,_0x1a7090,_0x21db91,_0xd021a3,_0x332922,_0x50652e,_0xe2349d,_0x48a2e8){var _0x49e20e=_0xb635d2,_0x5e12fe=this;_0x5e12fe['currentUser']=_0x332922[_0x49e20e('0x1ef8')](),_0x5e12fe['errors']=[],_0x5e12fe[_0x49e20e('0x22f1')]=_0xe2349d,_0x5e12fe[_0x49e20e('0x5c1')]=_0x50652e,_0x5e12fe['crudPermissions']=_0x48a2e8,_0x5e12fe[_0x49e20e('0x1ccb')]={},_0x5e12fe[_0x49e20e('0x25ac')]=_0x5e12fe[_0x49e20e('0x22f1')]&&_0x5e12fe[_0x49e20e('0x22f1')][_0x49e20e('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e12fe[_0x49e20e('0x13e4')]='FAX.EDIT_FAXQUEUE',_0x5e12fe['faxQueue']=angular['copy'](_0x21db91),_0x5e12fe['faxQueues']=_0x1a7090,_0x5e12fe['newFaxQueue']=![];!_0x5e12fe['faxQueue']&&(_0x5e12fe[_0x49e20e('0x3f4')]={'strategy':_0x49e20e('0x1442'),'timeout':0xa},_0x5e12fe['title']=_0x49e20e('0x1285'),_0x5e12fe['newFaxQueue']=!![]);_0x5e12fe[_0x49e20e('0x7af')]=_0x47179d,_0x5e12fe[_0x49e20e('0x14d8')]=_0x27300e,_0x5e12fe[_0x49e20e('0x1d2b')]=_0xee0171,_0x5e12fe[_0x49e20e('0x2635')]=_0x53545c,_0x5e12fe[_0x49e20e('0x2584')]=_0x323d67;function _0x47179d(){var _0x347832=_0x49e20e;_0x5e12fe[_0x347832('0xcd2')]=[],_0xd021a3[_0x347832('0x3f4')]['save'](_0x5e12fe[_0x347832('0x3f4')])['$promise'][_0x347832('0xe19')](function(_0x363bd8){var _0x40515c=_0x347832;_0x5e12fe['faxQueues']['unshift'](_0x363bd8[_0x40515c('0x250e')]()),_0x5672f0[_0x40515c('0x425')]({'title':'FaxQueue\x20properly\x20created','msg':_0x5e12fe[_0x40515c('0x3f4')]['name']?_0x5e12fe[_0x40515c('0x3f4')][_0x40515c('0x2623')]+_0x40515c('0x105f'):''}),_0x323d67(_0x363bd8);})[_0x347832('0x223b')](function(_0x367804){var _0x55c788=_0x347832;if(_0x367804[_0x55c788('0x11d0')]&&_0x367804['data']['errors']&&_0x367804[_0x55c788('0x11d0')]['errors'][_0x55c788('0x25ae')]){_0x5e12fe['errors']=_0x367804[_0x55c788('0x11d0')][_0x55c788('0xcd2')]||[{'message':_0x367804[_0x55c788('0x94f')](),'type':_0x55c788('0xa1f')}];for(var _0x455561=0x0;_0x455561<_0x367804[_0x55c788('0x11d0')][_0x55c788('0xcd2')][_0x55c788('0x25ae')];_0x455561+=0x1){_0x5672f0[_0x55c788('0x8c8')]({'title':_0x367804[_0x55c788('0x11d0')][_0x55c788('0xcd2')][_0x455561]['type'],'msg':_0x367804[_0x55c788('0x11d0')]['errors'][_0x455561][_0x55c788('0x27e8')]});}}else _0x5672f0[_0x55c788('0x8c8')]({'title':_0x367804[_0x55c788('0x2833')]?_0x55c788('0x27f2')+_0x367804[_0x55c788('0x2833')]+_0x55c788('0x1b7c')+_0x367804[_0x55c788('0x1fd7')]:_0x55c788('0xa1f'),'msg':_0x367804[_0x55c788('0x11d0')]?JSON[_0x55c788('0x3ad')](_0x367804[_0x55c788('0x11d0')]['message']):_0x367804[_0x55c788('0x94f')]()});});}function _0x27300e(){var _0x2bff9c=_0x49e20e;_0x5e12fe[_0x2bff9c('0xcd2')]=[],_0xd021a3[_0x2bff9c('0x3f4')][_0x2bff9c('0xa70')]({'id':_0x5e12fe[_0x2bff9c('0x3f4')]['id']},_0x5e12fe[_0x2bff9c('0x3f4')])[_0x2bff9c('0xe59')][_0x2bff9c('0xe19')](function(_0x339e94){var _0x126052=_0x2bff9c,_0x4cbd3a=_0x32d445()[_0x126052('0xf15')](_0x5e12fe[_0x126052('0x156e')],{'id':_0x339e94['id']});_0x4cbd3a&&_0x32d445()[_0x126052('0x1d8')](_0x4cbd3a,_0x32d445()['pick'](_0x339e94['toJSON'](),_0x32d445()[_0x126052('0x1234')](_0x4cbd3a))),_0x5672f0[_0x126052('0x425')]({'title':_0x126052('0x87b'),'msg':_0x5e12fe[_0x126052('0x3f4')][_0x126052('0x2623')]?_0x5e12fe[_0x126052('0x3f4')][_0x126052('0x2623')]+_0x126052('0x1c19'):''}),_0x323d67(_0x339e94);})[_0x2bff9c('0x223b')](function(_0x5a7c43){var _0x25c59e=_0x2bff9c;if(_0x5a7c43['data']&&_0x5a7c43['data'][_0x25c59e('0xcd2')]&&_0x5a7c43[_0x25c59e('0x11d0')][_0x25c59e('0xcd2')]['length']){_0x5e12fe[_0x25c59e('0xcd2')]=_0x5a7c43['data'][_0x25c59e('0xcd2')]||[{'message':_0x5a7c43['toString'](),'type':_0x25c59e('0xff6')}];for(var _0xf92c7a=0x0;_0xf92c7a<_0x5a7c43[_0x25c59e('0x11d0')]['errors'][_0x25c59e('0x25ae')];_0xf92c7a++){_0x5672f0[_0x25c59e('0x8c8')]({'title':_0x5a7c43[_0x25c59e('0x11d0')][_0x25c59e('0xcd2')][_0xf92c7a]['type'],'msg':_0x5a7c43['data'][_0x25c59e('0xcd2')][_0xf92c7a][_0x25c59e('0x27e8')]});}}else _0x5672f0[_0x25c59e('0x8c8')]({'title':_0x5a7c43[_0x25c59e('0x2833')]?_0x25c59e('0x27f2')+_0x5a7c43[_0x25c59e('0x2833')]+'\x20-\x20'+_0x5a7c43[_0x25c59e('0x1fd7')]:_0x25c59e('0xff6'),'msg':_0x5a7c43[_0x25c59e('0x11d0')]?JSON[_0x25c59e('0x3ad')](_0x5a7c43['data'][_0x25c59e('0x27e8')]):_0x5a7c43[_0x25c59e('0x94f')]()});});}function _0xee0171(_0x2dbffc){var _0x1c20b0=_0x49e20e;_0x5e12fe['errors']=[];var _0x15ac94=_0x120516[_0x1c20b0('0xa5')]()[_0x1c20b0('0x13e4')]('Are\x20you\x20sure?')[_0x1c20b0('0xd0')]('The\x20faxQueue\x20will\x20be\x20deleted.')[_0x1c20b0('0x4d1')](_0x1c20b0('0xe1b'))['ok']('Delete')[_0x1c20b0('0x2c1')]('Cancel')[_0x1c20b0('0x1345')](_0x2dbffc);_0x120516[_0x1c20b0('0x26b2')](_0x15ac94)[_0x1c20b0('0xe19')](function(){var _0x38006a=_0x1c20b0;_0xd021a3[_0x38006a('0x3f4')]['delete']({'id':_0x5e12fe['faxQueue']['id']})[_0x38006a('0xe59')][_0x38006a('0xe19')](function(){var _0x327dbd=_0x38006a;_0x32d445()[_0x327dbd('0xa8b')](_0x5e12fe[_0x327dbd('0x156e')],{'id':_0x5e12fe[_0x327dbd('0x3f4')]['id']}),_0x5672f0[_0x327dbd('0x425')]({'title':'FaxQueue\x20properly\x20deleted!','msg':(_0x5e12fe[_0x327dbd('0x3f4')][_0x327dbd('0x2623')]||_0x327dbd('0x3f4'))+_0x327dbd('0x2182')}),_0x323d67(_0x5e12fe[_0x327dbd('0x3f4')]);})[_0x38006a('0x223b')](function(_0x58c674){var _0x1f9652=_0x38006a;if(_0x58c674[_0x1f9652('0x11d0')]&&_0x58c674['data'][_0x1f9652('0xcd2')]&&_0x58c674[_0x1f9652('0x11d0')][_0x1f9652('0xcd2')][_0x1f9652('0x25ae')]){_0x5e12fe[_0x1f9652('0xcd2')]=_0x58c674[_0x1f9652('0x11d0')][_0x1f9652('0xcd2')]||[{'message':_0x58c674[_0x1f9652('0x94f')](),'type':_0x1f9652('0x27ab')}];for(var _0x4e55df=0x0;_0x4e55df<_0x58c674[_0x1f9652('0x11d0')]['errors'][_0x1f9652('0x25ae')];_0x4e55df++){_0x5672f0[_0x1f9652('0x8c8')]({'title':_0x58c674[_0x1f9652('0x11d0')][_0x1f9652('0xcd2')][_0x4e55df][_0x1f9652('0x62e')],'msg':_0x58c674['data'][_0x1f9652('0xcd2')][_0x4e55df]['message']});}}else _0x5672f0[_0x1f9652('0x8c8')]({'title':_0x58c674['status']?_0x1f9652('0x27f2')+_0x58c674[_0x1f9652('0x2833')]+_0x1f9652('0x1b7c')+_0x58c674[_0x1f9652('0x1fd7')]:'api.faxQueue.delete','msg':_0x58c674[_0x1f9652('0x11d0')]?JSON[_0x1f9652('0x3ad')](_0x58c674[_0x1f9652('0x11d0')]['message']):_0x58c674[_0x1f9652('0x27e8')]||_0x58c674['toString']()});});},function(){});}function _0x53545c(_0xfd0a81){return _0xfd0a81===null?undefined:new Date(_0xfd0a81);}function _0x323d67(_0x6527ea){var _0x1cc437=_0x49e20e;_0x120516[_0x1cc437('0x11ed')](_0x6527ea);}}const _0xa7a08e=_0x564c62;_0x487c98[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x3f4'),_0xb635d2('0x156e'),'realtime','$translate',_0xb635d2('0x2730'),'crudPermissions'];function _0x487c98(_0x1df3f6,_0x4a318f,_0xe2931c,_0x727b94,_0x2c1a13,_0x3e221b,_0x5aca7a,_0x925baa,_0x22af2f,_0x2fb32f){var _0x3a55c0=_0xb635d2,_0x5e044a=this;_0x5e044a[_0x3a55c0('0x15a5')]=_0x22af2f[_0x3a55c0('0x1ef8')](),_0x5e044a[_0x3a55c0('0x3f4')]=_0x2c1a13,_0x5e044a['crudPermissions']=_0x2fb32f,_0x5e044a['realtime']=_0x5aca7a,_0x5e044a[_0x3a55c0('0xe4b')]=[],_0x5e044a[_0x3a55c0('0x1884')]=[],_0x5e044a[_0x3a55c0('0x2273')]=[],_0x5e044a['startingAllowedItems']=[],_0x5e044a[_0x3a55c0('0xf79')]=[],_0x5e044a[_0x3a55c0('0x16e7')]=![],_0x5e044a['onInit']=_0x14ebd6,_0x5e044a[_0x3a55c0('0x4b8')]=_0x19f78e,_0x5e044a[_0x3a55c0('0x2584')]=_0x1853ec,_0x5e044a['dualMultiselectOptions']={'readOnly':!_0x5e044a[_0x3a55c0('0xb3d')][_0x3a55c0('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x3a55c0('0xe11'),'line2':[_0x3a55c0('0x2623'),_0x3a55c0('0x1b66')],'line3':'','labelAll':_0x925baa[_0x3a55c0('0x2159')]('FAX.ALL_AGENTS'),'labelSelected':_0x925baa[_0x3a55c0('0x2159')](_0x3a55c0('0xb14')),'transferCallback':function _0x38e568(){var _0x26e048=_0x3a55c0,_0xdd72e9=_0x32d445()[_0x26e048('0x118')](_0x5e044a[_0x26e048('0xf79')],_0x5e044a[_0x26e048('0x2273')],'id');_0x5e044a[_0x26e048('0x16e7')]=_0x32d445()[_0x26e048('0x14b4')](_0xdd72e9)?![]:!![];}};function _0x14ebd6(){var _0x2a02cc=_0x3a55c0;return _0x22af2f[_0x2a02cc('0x179e')](_0x2a02cc('0xd14'))?_0x612547()['catch'](function(_0x496908){var _0x4dda00=_0x2a02cc;_0xe2931c['error']({'title':_0x496908[_0x4dda00('0x2833')]?_0x4dda00('0x27f2')+_0x496908[_0x4dda00('0x2833')]+_0x4dda00('0x1b7c')+_0x496908[_0x4dda00('0x1fd7')]:'SYSTEM:GET_AGENTS','msg':_0x496908[_0x4dda00('0x2833')]?JSON[_0x4dda00('0x3ad')](_0x496908[_0x4dda00('0x11d0')]):_0x496908[_0x4dda00('0x94f')]()});}):_0x4c115c()['then'](function(_0x2224d1){return _0x5e044a['section']=_0x2224d1,_0x612547();})[_0x2a02cc('0x223b')](function(_0x4988ca){var _0x3b8d18=_0x2a02cc;_0xe2931c['error']({'title':_0x4988ca[_0x3b8d18('0x2833')]?_0x3b8d18('0x27f2')+_0x4988ca[_0x3b8d18('0x2833')]+_0x3b8d18('0x1b7c')+_0x4988ca[_0x3b8d18('0x1fd7')]:_0x3b8d18('0x1e86'),'msg':_0x4988ca[_0x3b8d18('0x2833')]?JSON[_0x3b8d18('0x3ad')](_0x4988ca[_0x3b8d18('0x11d0')]):_0x4988ca[_0x3b8d18('0x94f')]()});});}function _0x4c115c(){return _0x4a318f(function(_0x28a0e3,_0x3275c5){var _0x3d810b=a0_0x5325;_0x727b94['userProfileSection'][_0x3d810b('0x22d5')]({'userProfileId':_0x5e044a[_0x3d810b('0x15a5')][_0x3d810b('0x1d04')],'name':'Agents'})[_0x3d810b('0xe59')][_0x3d810b('0xe19')](function(_0xc98f14){var _0x30c7c6=_0x3d810b,_0x21212d=_0xc98f14&&_0xc98f14[_0x30c7c6('0x16a7')]?_0xc98f14['rows'][0x0]:null;_0x28a0e3(_0x21212d);})[_0x3d810b('0x223b')](function(_0x5b02cf){_0x3275c5(_0x5b02cf);});});}function _0x612547(){return _0x4a318f(function(_0x4295c2,_0x112dd5){var _0x442b1b=a0_0x5325;return _0x2900c3()[_0x442b1b('0xe19')](function(_0xf00541){var _0x332381=_0x442b1b;return _0x5e044a[_0x332381('0xe4b')]=_0xf00541[_0x332381('0x16a7')]?_0xf00541[_0x332381('0x16a7')]:[],_0x22af2f[_0x332381('0x179e')](_0x332381('0xd14'))?_0xf00541:_0x5e044a[_0x332381('0x1e59')]?_0x5e044a['section']['autoAssociation']?_0xf00541:_0x850ba2():null;})['then'](function(_0x528dd2){var _0x556747=_0x442b1b,_0x5bfee1=_0x528dd2&&_0x528dd2[_0x556747('0x16a7')]?_0x528dd2['rows']:[];return _0x5e044a[_0x556747('0x1884')]=_0x32d445()[_0x556747('0x65a')](_0x5bfee1,function(_0x5376ff){var _0x54cb1a=_0x556747;return _0x32d445()[_0x54cb1a('0xf15')](_0x5e044a[_0x54cb1a('0xe4b')],{'id':_0x22af2f[_0x54cb1a('0x179e')](_0x54cb1a('0xd14'))||_0x5e044a[_0x54cb1a('0x1e59')]['autoAssociation']?_0x5376ff['id']:_0x5376ff[_0x54cb1a('0x1104')]});}),_0x5e044a[_0x556747('0x286c')]=angular[_0x556747('0x89')](_0x5e044a['allowedItems']),_0x5e044a['items']['forEach'](function(_0x4485d3){var _0x16b575=_0x556747,_0x55f7cb=_0x32d445()[_0x16b575('0xf15')](_0x5e044a[_0x16b575('0x1884')],{'id':_0x4485d3['id']});_0x22af2f['hasRole'](_0x16b575('0xd14'))?_0x4485d3[_0x16b575('0x1768')]=!![]:_0x4485d3[_0x16b575('0x1768')]=typeof _0x55f7cb!==_0x16b575('0x1143')?!![]:![];}),_0x2c724e();})['then'](function(_0x217a10){var _0x52d64c=_0x442b1b,_0x308066=_0x217a10&&_0x217a10[_0x52d64c('0x16a7')]?_0x217a10[_0x52d64c('0x16a7')]:[];_0x5e044a[_0x52d64c('0x2273')]=_0x32d445()[_0x52d64c('0x65a')](_0x308066,function(_0x777f0){var _0xbaada0=_0x52d64c,_0x238a9f=_0x32d445()[_0xbaada0('0xf15')](_0x5e044a[_0xbaada0('0xe4b')],{'id':_0x777f0['id']});return _0x238a9f[_0xbaada0('0x21e3')]=_0x777f0[_0xbaada0('0x202')]?'penalty\x20'+_0x777f0[_0xbaada0('0x202')][_0xbaada0('0x21e3')]:'',_0x238a9f[_0xbaada0('0x1b66')]=typeof _0x777f0[_0xbaada0('0x1b66')]!=='undefined'?'<'+_0x777f0[_0xbaada0('0x1b66')]+'>':'',_0x238a9f;}),_0x5e044a[_0x52d64c('0xf79')]=angular[_0x52d64c('0x89')](_0x5e044a[_0x52d64c('0x2273')]),_0x5e044a[_0x52d64c('0xc00')]['selectedItems']=_0x5e044a[_0x52d64c('0x2273')],_0x5e044a[_0x52d64c('0xc00')]['items']=_0x32d445()[_0x52d64c('0x501')](_0x5e044a[_0x52d64c('0x1884')],_0x5e044a[_0x52d64c('0xc00')][_0x52d64c('0x2273')],'id'),_0x4295c2();})[_0x442b1b('0x223b')](function(_0x16893e){_0x112dd5(_0x16893e);});});}function _0x850ba2(){return _0x4a318f(function(_0x31dffe,_0x335b6c){var _0x1c7aa8=a0_0x5325;return _0x727b94[_0x1c7aa8('0xd49')][_0x1c7aa8('0x22d5')]({'sectionId':_0x5e044a[_0x1c7aa8('0x1e59')]['id'],'nolimit':!![]})[_0x1c7aa8('0xe59')]['then'](function(_0x4043fb){_0x31dffe(_0x4043fb);})[_0x1c7aa8('0x223b')](function(_0x113cd8){_0x335b6c(_0x113cd8);});});}function _0x2c724e(){return _0x4a318f(function(_0x198ae7,_0x1fdd69){var _0x35ba10=a0_0x5325;return _0x727b94[_0x35ba10('0x3f4')][_0x35ba10('0x14fd')]({'id':_0x5e044a['faxQueue']['id'],'fields':_0x35ba10('0x244f'),'nolimit':!![],'role':_0x35ba10('0x108')})[_0x35ba10('0xe59')][_0x35ba10('0xe19')](function(_0x4dd97a){_0x198ae7(_0x4dd97a);})[_0x35ba10('0x223b')](function(_0x568d10){_0x1fdd69(_0x568d10);});});}function _0x2900c3(){return _0x4a318f(function(_0x5008f2,_0x577886){var _0x5d50fb=a0_0x5325;return _0x727b94[_0x5d50fb('0x10c6')]['get']({'fields':_0x5d50fb('0x244f'),'nolimit':!![],'role':_0x5d50fb('0x108')})[_0x5d50fb('0xe59')]['then'](function(_0x1b9d44){_0x5008f2(_0x1b9d44);})['catch'](function(_0xe5a314){_0x577886(_0xe5a314);});});}function _0x18131f(_0x28ed6e){return _0x4a318f(function(_0x8fe85b,_0x2073c2){var _0x3592f1=a0_0x5325;_0x32d445()[_0x3592f1('0x14b4')](_0x28ed6e)?_0x8fe85b():_0x727b94[_0x3592f1('0x3f4')][_0x3592f1('0x2271')]({'id':_0x5e044a[_0x3592f1('0x3f4')]['id'],'ids':_0x32d445()[_0x3592f1('0x65a')](_0x28ed6e,'id')})['$promise'][_0x3592f1('0xe19')](function(){_0x8fe85b();})[_0x3592f1('0x223b')](function(_0xd6ccbc){_0x2073c2(_0xd6ccbc);});});}function _0x40296b(_0x4bdd8e){return _0x4a318f(function(_0x1bce0f,_0x29f37a){var _0x258652=a0_0x5325;_0x32d445()['isEmpty'](_0x4bdd8e)?_0x1bce0f():_0x727b94[_0x258652('0x3f4')]['removeAgents']({'id':_0x5e044a[_0x258652('0x3f4')]['id'],'ids':_0x32d445()[_0x258652('0x65a')](_0x4bdd8e,'id')})[_0x258652('0xe59')][_0x258652('0xe19')](function(){_0x1bce0f();})[_0x258652('0x223b')](function(_0x4fbbc2){_0x29f37a(_0x4fbbc2);});});}function _0x19f78e(){var _0x2f9709=_0x3a55c0,_0x5723f7=_0x32d445()[_0x2f9709('0x501')](_0x5e044a[_0x2f9709('0xf79')],_0x5e044a[_0x2f9709('0x2273')],'id'),_0xf1107a=_0x32d445()['differenceBy'](_0x5e044a[_0x2f9709('0x2273')],_0x5e044a[_0x2f9709('0xf79')],'id');return _0x40296b(_0x5723f7)[_0x2f9709('0xe19')](function(){return _0x18131f(_0xf1107a);})[_0x2f9709('0xe19')](function(){var _0x584608=_0x2f9709;_0x5e044a[_0x584608('0x16e7')]=![],_0x5e044a[_0x584608('0x286c')]=angular['copy'](_0x5e044a[_0x584608('0x1884')]),_0x5e044a[_0x584608('0xf79')]=angular['copy'](_0x5e044a['selectedItems']),_0xe2931c[_0x584608('0x425')]({'title':'SUCCESS','msg':_0x584608('0x25d')});})[_0x2f9709('0x223b')](function(_0x122776){var _0x87961a=_0x2f9709;_0xe2931c['error']({'title':_0x122776['status']?_0x87961a('0x27f2')+_0x122776[_0x87961a('0x2833')]+_0x87961a('0x1b7c')+_0x122776['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x122776[_0x87961a('0x2833')]?JSON[_0x87961a('0x3ad')](_0x122776[_0x87961a('0x11d0')]):_0x122776[_0x87961a('0x94f')]()});});}function _0x1853ec(){_0x1df3f6['hide']();}}const _0x55c42d=_0x487c98;_0x3d6288[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x3f4'),_0xb635d2('0x2493'),'Auth',_0xb635d2('0xb3d')];function _0x3d6288(_0x405684,_0x24bbe1,_0x40d12e,_0x5d9800,_0x31e9a7,_0x55ed98,_0x35a32b,_0x18f6bc){var _0x428cda=_0xb635d2,_0x20bc9a=this;_0x20bc9a[_0x428cda('0x15a5')]=_0x35a32b['getCurrentUser'](),_0x20bc9a['faxQueue']=_0x31e9a7,_0x20bc9a[_0x428cda('0xb3d')]=_0x18f6bc,_0x20bc9a[_0x428cda('0xe4b')]=[],_0x20bc9a[_0x428cda('0x1884')]=[],_0x20bc9a[_0x428cda('0x2273')]=[],_0x20bc9a[_0x428cda('0x286c')]=[],_0x20bc9a[_0x428cda('0xf79')]=[],_0x20bc9a[_0x428cda('0x16e7')]=![],_0x20bc9a[_0x428cda('0xc00')]={'readOnly':!_0x20bc9a[_0x428cda('0xb3d')][_0x428cda('0x12bc')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x428cda('0x2623'),'line1':'name','line2':'','line3':'','labelAll':_0x55ed98[_0x428cda('0x2159')]('FAX.ALL_TEAMS'),'labelSelected':_0x55ed98[_0x428cda('0x2159')](_0x428cda('0x2267')),'transferCallback':function _0x335fcf(){var _0x3f9e45=_0x428cda,_0x249bcc=_0x32d445()[_0x3f9e45('0x118')](_0x20bc9a[_0x3f9e45('0xf79')],_0x20bc9a[_0x3f9e45('0x2273')],'id');_0x20bc9a[_0x3f9e45('0x16e7')]=_0x32d445()[_0x3f9e45('0x14b4')](_0x249bcc)?![]:!![];}},_0x20bc9a['onInit']=_0x17108d,_0x20bc9a[_0x428cda('0xc30')]=_0x5bd4a0,_0x20bc9a['closeDialog']=_0x3b3d44;function _0x17108d(){var _0x185996=_0x428cda;return _0x35a32b[_0x185996('0x179e')](_0x185996('0xd14'))?_0x13ca07()['catch'](function(_0x183e89){var _0x9a5bc3=_0x185996;_0x40d12e[_0x9a5bc3('0x8c8')]({'title':_0x183e89['status']?_0x9a5bc3('0x27f2')+_0x183e89[_0x9a5bc3('0x2833')]+_0x9a5bc3('0x1b7c')+_0x183e89[_0x9a5bc3('0x1fd7')]:_0x9a5bc3('0x4a4'),'msg':_0x183e89['status']?JSON[_0x9a5bc3('0x3ad')](_0x183e89[_0x9a5bc3('0x11d0')]):_0x183e89[_0x9a5bc3('0x94f')]()});}):_0x50e47b()[_0x185996('0xe19')](function(_0x526c40){var _0x2046ee=_0x185996;return _0x20bc9a[_0x2046ee('0x1e59')]=_0x526c40,_0x13ca07();})['catch'](function(_0x5de2dc){var _0xa4e5e3=_0x185996;_0x40d12e['error']({'title':_0x5de2dc[_0xa4e5e3('0x2833')]?_0xa4e5e3('0x27f2')+_0x5de2dc[_0xa4e5e3('0x2833')]+_0xa4e5e3('0x1b7c')+_0x5de2dc[_0xa4e5e3('0x1fd7')]:'SYSTEM:GET_TEAMS','msg':_0x5de2dc[_0xa4e5e3('0x2833')]?JSON[_0xa4e5e3('0x3ad')](_0x5de2dc[_0xa4e5e3('0x11d0')]):_0x5de2dc[_0xa4e5e3('0x94f')]()});});}function _0x50e47b(){return _0x24bbe1(function(_0x467c82,_0x54f3bd){var _0x38e45a=a0_0x5325;_0x5d9800['userProfileSection'][_0x38e45a('0x22d5')]({'userProfileId':_0x20bc9a['currentUser'][_0x38e45a('0x1d04')],'name':'Teams'})[_0x38e45a('0xe59')][_0x38e45a('0xe19')](function(_0x36654c){var _0x20b7af=_0x38e45a,_0x211508=_0x36654c&&_0x36654c[_0x20b7af('0x16a7')]?_0x36654c[_0x20b7af('0x16a7')][0x0]:null;_0x467c82(_0x211508);})[_0x38e45a('0x223b')](function(_0x10f774){_0x54f3bd(_0x10f774);});});}function _0x13ca07(){return _0x24bbe1(function(_0x1f2a60,_0x5ec5a9){var _0x3443cd=a0_0x5325;return _0x2d9c7c()[_0x3443cd('0xe19')](function(_0x28b6d1){var _0x5d2396=_0x3443cd;return _0x20bc9a['items']=_0x28b6d1['rows']?_0x28b6d1[_0x5d2396('0x16a7')]:[],_0x35a32b[_0x5d2396('0x179e')](_0x5d2396('0xd14'))?_0x28b6d1:_0x20bc9a[_0x5d2396('0x1e59')]?_0x20bc9a[_0x5d2396('0x1e59')]['autoAssociation']?_0x28b6d1:_0x3079d5():null;})[_0x3443cd('0xe19')](function(_0x537f11){var _0x16f47e=_0x3443cd,_0x10188b=_0x537f11&&_0x537f11[_0x16f47e('0x16a7')]?_0x537f11[_0x16f47e('0x16a7')]:[];return _0x20bc9a[_0x16f47e('0x1884')]=_0x32d445()[_0x16f47e('0x65a')](_0x10188b,function(_0x593027){var _0x2bf84b=_0x16f47e;return _0x32d445()[_0x2bf84b('0xf15')](_0x20bc9a[_0x2bf84b('0xe4b')],{'id':_0x35a32b['hasRole'](_0x2bf84b('0xd14'))||_0x20bc9a['section'][_0x2bf84b('0x11fd')]?_0x593027['id']:_0x593027['resourceId']});}),_0x20bc9a[_0x16f47e('0xe4b')][_0x16f47e('0x1d7e')](function(_0x153c5f){var _0x595b83=_0x16f47e,_0x4da733=_0x32d445()[_0x595b83('0xf15')](_0x20bc9a['allowedItems'],{'id':_0x153c5f['id']});_0x35a32b['hasRole'](_0x595b83('0xd14'))?_0x153c5f[_0x595b83('0x1768')]=!![]:_0x153c5f['isValid']=typeof _0x4da733!==_0x595b83('0x1143')?!![]:![];}),_0xe17993();})[_0x3443cd('0xe19')](function(_0x1f9c23){var _0x17f165=_0x3443cd,_0x5aefa0=_0x1f9c23&&_0x1f9c23[_0x17f165('0x16a7')]?_0x1f9c23[_0x17f165('0x16a7')]:[];_0x20bc9a[_0x17f165('0x2273')]=_0x32d445()[_0x17f165('0x65a')](_0x5aefa0,function(_0x573368){var _0x157e53=_0x17f165;return _0x32d445()[_0x157e53('0xf15')](_0x20bc9a[_0x157e53('0xe4b')],{'id':_0x573368['id']});}),_0x20bc9a[_0x17f165('0xf79')]=angular[_0x17f165('0x89')](_0x20bc9a[_0x17f165('0x2273')]),_0x20bc9a['dualMultiselectOptions'][_0x17f165('0x2273')]=_0x20bc9a['selectedItems'],_0x20bc9a['dualMultiselectOptions'][_0x17f165('0xe4b')]=_0x32d445()[_0x17f165('0x501')](_0x20bc9a[_0x17f165('0x1884')],_0x20bc9a[_0x17f165('0xc00')][_0x17f165('0x2273')],'id'),_0x1f2a60();})['catch'](function(_0x4cdf61){_0x5ec5a9(_0x4cdf61);});});}function _0x3079d5(){return _0x24bbe1(function(_0x3f0321,_0x864423){var _0x8709da=a0_0x5325;return _0x5d9800[_0x8709da('0xd49')][_0x8709da('0x22d5')]({'sectionId':_0x20bc9a[_0x8709da('0x1e59')]['id'],'nolimit':!![]})[_0x8709da('0xe59')]['then'](function(_0x556eee){_0x3f0321(_0x556eee);})['catch'](function(_0x403923){_0x864423(_0x403923);});});}function _0xe17993(){return _0x24bbe1(function(_0x127723,_0x3304e8){var _0x4fb543=a0_0x5325;return _0x5d9800[_0x4fb543('0x3f4')][_0x4fb543('0x106a')]({'id':_0x20bc9a[_0x4fb543('0x3f4')]['id'],'fields':_0x4fb543('0x104'),'nolimit':!![]})[_0x4fb543('0xe59')][_0x4fb543('0xe19')](function(_0xd16a5c){_0x127723(_0xd16a5c);})['catch'](function(_0x31d01f){_0x3304e8(_0x31d01f);});});}function _0x2d9c7c(){return _0x24bbe1(function(_0x372cdf,_0x4c51fe){var _0x14ce7c=a0_0x5325;return _0x5d9800[_0x14ce7c('0x25af')][_0x14ce7c('0x22d5')]({'fields':'id,name','nolimit':!![]})[_0x14ce7c('0xe59')][_0x14ce7c('0xe19')](function(_0x49dc95){_0x372cdf(_0x49dc95);})['catch'](function(_0x4bbc00){_0x4c51fe(_0x4bbc00);});});}function _0x28a0e5(_0x2fdbae){return _0x24bbe1(function(_0x4c4339,_0x3be46a){var _0x5f0fbc=a0_0x5325;_0x32d445()[_0x5f0fbc('0x14b4')](_0x2fdbae)?_0x4c4339():_0x5d9800[_0x5f0fbc('0x3f4')][_0x5f0fbc('0x37f')]({'id':_0x20bc9a[_0x5f0fbc('0x3f4')]['id'],'ids':_0x32d445()[_0x5f0fbc('0x65a')](_0x2fdbae,'id')})['$promise'][_0x5f0fbc('0xe19')](function(){_0x4c4339();})[_0x5f0fbc('0x223b')](function(_0x22683a){_0x3be46a(_0x22683a);});});}function _0xe2aaec(_0x4cec4e){return _0x24bbe1(function(_0x6336b9,_0x435bbb){var _0x53d06d=a0_0x5325;_0x32d445()[_0x53d06d('0x14b4')](_0x4cec4e)?_0x6336b9():_0x5d9800[_0x53d06d('0x3f4')]['removeTeams']({'id':_0x20bc9a[_0x53d06d('0x3f4')]['id'],'ids':_0x32d445()[_0x53d06d('0x65a')](_0x4cec4e,'id')})[_0x53d06d('0xe59')][_0x53d06d('0xe19')](function(){_0x6336b9();})['catch'](function(_0x46ba3f){_0x435bbb(_0x46ba3f);});});}function _0x5bd4a0(){var _0x559031=_0x428cda,_0x3bab16=_0x32d445()[_0x559031('0x501')](_0x20bc9a[_0x559031('0xf79')],_0x20bc9a[_0x559031('0x2273')],'id'),_0x34c281=_0x32d445()[_0x559031('0x501')](_0x20bc9a[_0x559031('0x2273')],_0x20bc9a['startingSelectedItems'],'id');return _0xe2aaec(_0x3bab16)[_0x559031('0xe19')](function(){return _0x28a0e5(_0x34c281);})[_0x559031('0xe19')](function(){var _0x35f8f1=_0x559031;_0x20bc9a[_0x35f8f1('0x16e7')]=![],_0x20bc9a[_0x35f8f1('0x286c')]=angular[_0x35f8f1('0x89')](_0x20bc9a['allowedItems']),_0x20bc9a[_0x35f8f1('0xf79')]=angular[_0x35f8f1('0x89')](_0x20bc9a['selectedItems']),_0x40d12e[_0x35f8f1('0x425')]({'title':_0x35f8f1('0x1dca'),'msg':_0x35f8f1('0x22e1')});})[_0x559031('0x223b')](function(_0x3a47d8){var _0x52e70c=_0x559031;_0x40d12e[_0x52e70c('0x8c8')]({'title':_0x3a47d8[_0x52e70c('0x2833')]?_0x52e70c('0x27f2')+_0x3a47d8['status']+_0x52e70c('0x1b7c')+_0x3a47d8['statusText']:_0x52e70c('0x2168'),'msg':_0x3a47d8['status']?JSON[_0x52e70c('0x3ad')](_0x3a47d8[_0x52e70c('0x11d0')]):_0x3a47d8[_0x52e70c('0x94f')]()});});}function _0x3b3d44(){_0x405684['hide']();}}const _0x2a79f9=_0x3d6288,_0x294abb=_0x59426a['p']+_0xb635d2('0x23fa');_0x1867a9[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x3f4'),_0xb635d2('0xb59')];function _0x1867a9(_0x3ee584,_0x584eb7,_0x15bb41,_0x5c4b7c,_0x3562f1,_0x1c0a09,_0x5e083e,_0x53d4d1,_0x390847,_0xd706f9,_0x3926f9,_0x169225){var _0x427ade=_0xb635d2,_0x493ea8=this;_0x493ea8[_0x427ade('0x15a5')]=_0xd706f9[_0x427ade('0x1ef8')](),_0x493ea8['license']=_0x1c0a09,_0x493ea8['setting']=_0x5e083e,_0x493ea8[_0x427ade('0x25ac')]=_0x493ea8[_0x427ade('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x493ea8[_0x427ade('0x2170')]=_0x584eb7['protocol']()+_0x427ade('0x21a8')+_0x584eb7[_0x427ade('0x3b7')](),_0x493ea8[_0x427ade('0x3f4')]=_0x3926f9||_0x3ee584[_0x427ade('0x2ef')]['faxQueue']||{},_0x493ea8[_0x427ade('0xb59')]=_0x169225&&_0x169225[_0x427ade('0x148b')]==0x1?_0x169225[_0x427ade('0x16a7')][0x0]:null,_0x493ea8[_0x427ade('0xb3d')]=_0xd706f9[_0x427ade('0xd31')](_0x493ea8[_0x427ade('0xb59')]?_0x493ea8[_0x427ade('0xb59')][_0x427ade('0xb3d')]:null),_0x493ea8[_0x427ade('0x1ccb')]={},_0x493ea8[_0x427ade('0xc7b')]=_0x3ee584['params'][_0x427ade('0x435')]||0x0,_0x493ea8[_0x427ade('0x23f1')]=_0x5b2ba5,_0x493ea8[_0x427ade('0x1407')]=_0x45cf74,_0x493ea8[_0x427ade('0xbdc')]=_0x390847[_0x427ade('0x1e67')],_0x493ea8[_0x427ade('0x10b0')]=_0x18ed9b,_0x493ea8[_0x427ade('0x14d8')]=_0x3c057e;function _0x5b2ba5(_0x2d0eab,_0x1c0931){var _0x3a8351=_0x427ade;_0x15bb41[_0x3a8351('0x26b2')]({'controller':_0x3a8351('0xf6c'),'controllerAs':'vm','templateUrl':_0x294abb,'parent':angular[_0x3a8351('0x24a1')](_0x5c4b7c[_0x3a8351('0x19b2')]),'targetEvent':_0x1c0931,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x2d0eab,'faxQueues':_0x493ea8['faxQueues']?_0x493ea8[_0x3a8351('0x156e')][_0x3a8351('0x16a7')]:[],'crudPermissions':_0x493ea8['crudPermissions']}});}function _0x45cf74(_0x3c55b2,_0x257bd7){var _0x27d4d8=_0x427ade;_0x15bb41['show']({'controller':_0x27d4d8('0x20e4'),'controllerAs':'vm','templateUrl':_0xbfc5c3,'parent':angular['element'](_0x5c4b7c[_0x27d4d8('0x19b2')]),'targetEvent':_0x257bd7,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3c55b2,'faxQueues':_0x493ea8['faxQueues']?_0x493ea8[_0x27d4d8('0x156e')][_0x27d4d8('0x16a7')]:[],'crudPermissions':_0x493ea8[_0x27d4d8('0xb3d')],'realtime':![]}});}function _0x18ed9b(){var _0x3a4f1c=_0x427ade;_0x3ee584['go'](_0x3a4f1c('0x26b6'),{},{'reload':_0x3a4f1c('0x26b6')});}function _0x3c057e(){var _0x5c88b7=_0x427ade;_0x53d4d1['faxQueue'][_0x5c88b7('0xa70')]({'id':_0x493ea8[_0x5c88b7('0x3f4')]['id']},_0x493ea8['faxQueue'])[_0x5c88b7('0xe59')][_0x5c88b7('0xe19')](function(){var _0x1549e0=_0x5c88b7;_0x390847[_0x1549e0('0x425')]({'title':_0x1549e0('0x24e4'),'msg':_0x493ea8[_0x1549e0('0x3f4')][_0x1549e0('0x2623')]?_0x493ea8[_0x1549e0('0x3f4')][_0x1549e0('0x2623')]+_0x1549e0('0x283b'):''});})[_0x5c88b7('0x223b')](function(_0x198e9f){var _0x49bcaf=_0x5c88b7;_0x390847['error']({'title':_0x198e9f[_0x49bcaf('0x2833')]?_0x49bcaf('0x27f2')+_0x198e9f[_0x49bcaf('0x2833')]+'\x20-\x20'+_0x198e9f[_0x49bcaf('0x1fd7')]:_0x49bcaf('0x2141'),'msg':_0x198e9f[_0x49bcaf('0x11d0')]?JSON[_0x49bcaf('0x3ad')](_0x198e9f['data']):_0x198e9f[_0x49bcaf('0x94f')]()});});}}const _0x19953e=_0x1867a9;_0xc29bfc[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),'$state','$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0x156e'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'api',_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0xc29bfc(_0x4193fd,_0x440237,_0x29769d,_0x2467ee,_0x48eda4,_0x3c108a,_0x2e7c07,_0x37d370,_0x25a6b6,_0x29cc03,_0x384ed8,_0x5a7590,_0x18d188,_0x5d8530,_0x1b460e,_0x493884,_0x40d285){var _0x4383a5=_0xb635d2,_0x150a98=this;_0x150a98[_0x4383a5('0x5c1')]=_0x493884,_0x150a98[_0x4383a5('0x22f1')]=_0x40d285,_0x150a98[_0x4383a5('0x15a5')]=_0x1b460e[_0x4383a5('0x1ef8')](),_0x150a98[_0x4383a5('0x156e')]=_0x25a6b6||{'count':0x0,'rows':[]},_0x150a98[_0x4383a5('0x154f')]=_0x29cc03,_0x150a98[_0x4383a5('0xb59')]=_0x384ed8&&_0x384ed8[_0x4383a5('0x148b')]==0x1?_0x384ed8['rows'][0x0]:null,_0x150a98[_0x4383a5('0xb3d')]=_0x1b460e['parseCrudPermissions'](_0x150a98['userProfileSection']?_0x150a98['userProfileSection'][_0x4383a5('0xb3d')]:null),_0x150a98[_0x4383a5('0x19b6')]='faxQueues',_0x150a98[_0x4383a5('0x14d6')]='',_0x150a98[_0x4383a5('0x190c')]=null,_0x150a98['selectedFaxQueues']=[],_0x150a98[_0x4383a5('0xa16')]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x4383a5('0x625'),'limit':0xa,'page':0x1},_0x150a98[_0x4383a5('0xa67')]=_0x32d445()[_0x4383a5('0x226f')]([{'option':'Beepall','value':_0x4383a5('0x2460')},{'option':_0x4383a5('0x442'),'value':_0x4383a5('0x236a')}],function(_0x1075d8){var _0x2ddc9f=_0x4383a5;return _0x32d445()[_0x2ddc9f('0x1b42')](_0x1075d8[_0x2ddc9f('0x2')],new RegExp('\x27','g'),'');}),_0x150a98['editstate']=_0x507004,_0x150a98[_0x4383a5('0x23f1')]=_0x5283b9,_0x150a98['agentadddialog']=_0x413570,_0x150a98[_0x4383a5('0x1d9e')]=_0x1a4add,_0x150a98[_0x4383a5('0x20e3')]=_0x323e00,_0x150a98[_0x4383a5('0x425')]=_0x376947,_0x150a98[_0x4383a5('0x2339')]=_0x2ca1f5,_0x150a98[_0x4383a5('0x14d3')]=_0x50db3e,_0x150a98[_0x4383a5('0x1d2b')]=_0x54bf8f,_0x150a98['exportSelectedFaxQueues']=_0x28e492,_0x150a98['deleteSelectedFaxQueues']=_0x205983,_0x150a98[_0x4383a5('0x11e6')]=_0x1abfcf,_0x150a98[_0x4383a5('0x27c1')]=_0x2127f4;function _0x507004(_0x1b8974){var _0x46ac67=_0x4383a5;_0x29769d['go'](_0x46ac67('0x9cb'),{'id':_0x1b8974['id'],'faxQueue':_0x1b8974,'crudPermissions':_0x150a98[_0x46ac67('0xb3d')]});}function _0x5283b9(_0x36657e,_0x2ed251){var _0x1fda18=_0x4383a5;_0x48eda4[_0x1fda18('0x26b2')]({'controller':'FaxQueueteamaddController','controllerAs':'vm','templateUrl':_0x294abb,'parent':angular[_0x1fda18('0x24a1')](_0x3c108a['body']),'targetEvent':_0x2ed251,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x36657e,'faxQueues':_0x150a98[_0x1fda18('0x156e')]?_0x150a98['faxQueues'][_0x1fda18('0x16a7')]:[],'crudPermissions':_0x150a98[_0x1fda18('0xb3d')]}});}function _0x413570(_0x11cf72,_0x5ba3b2){var _0x5367bd=_0x4383a5;_0x48eda4[_0x5367bd('0x26b2')]({'controller':'FaxQueueagentaddController','controllerAs':'vm','templateUrl':_0xbfc5c3,'parent':angular[_0x5367bd('0x24a1')](_0x3c108a[_0x5367bd('0x19b2')]),'targetEvent':_0x5ba3b2,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x11cf72,'faxQueues':_0x150a98['faxQueues']?_0x150a98[_0x5367bd('0x156e')]['rows']:[],'crudPermissions':_0x150a98[_0x5367bd('0xb3d')],'realtime':![]}});}function _0x1a4add(_0x5bcc9e,_0x1a6e32){var _0x30c394=_0x4383a5,_0x3d92c3=_0x48eda4[_0x30c394('0xa5')]()[_0x30c394('0x13e4')](_0x30c394('0x346')+_0x32d445()[_0x30c394('0x1df2')](_0x30c394('0x3f4'))+'?')[_0x30c394('0x221c')](_0x30c394('0xab2')+(_0x5bcc9e[_0x30c394('0x2623')]||_0x30c394('0x3f4'))+_0x30c394('0x27bb')+_0x30c394('0x21bd'))[_0x30c394('0x4d1')](_0x30c394('0x17eb'))[_0x30c394('0x1345')](_0x1a6e32)['ok']('OK')[_0x30c394('0x2c1')](_0x30c394('0x17'));_0x48eda4[_0x30c394('0x26b2')](_0x3d92c3)[_0x30c394('0xe19')](function(){_0x54bf8f(_0x5bcc9e);},function(){var _0x3d4e46=_0x30c394;console[_0x3d4e46('0x1fe9')](_0x3d4e46('0x17'));});}function _0x323e00(){var _0x49def4=_0x4383a5;if(_0x1b460e[_0x49def4('0x179e')](_0x49def4('0xd14')))_0x29769d['go'](_0x49def4('0xc93'),{});else return _0x5a7590['userProfileSection'][_0x49def4('0x22d5')]({'userProfileId':_0x1b460e[_0x49def4('0x1ef8')]()[_0x49def4('0x1d04')],'sectionId':0x38e})[_0x49def4('0xe59')][_0x49def4('0xe19')](function(_0x4c3575){var _0x51520b=_0x49def4,_0x5ff5cc=_0x4c3575&&_0x4c3575[_0x51520b('0x16a7')]?_0x4c3575['rows'][0x0]:null;_0x5ff5cc&&_0x5ff5cc[_0x51520b('0x4ef')]?_0x29769d['go'](_0x51520b('0xc93'),{}):_0x5d8530[_0x51520b('0x1e67')]({'title':_0x37d370[_0x51520b('0x2159')](_0x51520b('0x2786')),'msg':_0x37d370[_0x51520b('0x2159')](_0x51520b('0x4bb'))});})['catch'](function(_0x512083){var _0x2d5565=_0x49def4;_0x5d8530[_0x2d5565('0x8c8')]({'title':_0x512083[_0x2d5565('0x2833')]?_0x2d5565('0x27f2')+_0x512083[_0x2d5565('0x2833')]+_0x2d5565('0x1b7c')+_0x512083[_0x2d5565('0x1fd7')]:_0x2d5565('0x343'),'msg':_0x512083[_0x2d5565('0x2833')]?JSON['stringify'](_0x512083['data']):_0x512083[_0x2d5565('0x94f')]()});});}var _0x2cf961=!![],_0xd4c7e8=0x1;_0x4193fd[_0x4383a5('0x107')](_0x4383a5('0x20cb'),function(_0x3d819d,_0x1bbe05){var _0x3218bc=_0x4383a5;_0x2cf961?_0x2e7c07(function(){_0x2cf961=![];}):(!_0x1bbe05&&(_0xd4c7e8=_0x150a98[_0x3218bc('0xa16')][_0x3218bc('0xc08')]),_0x3d819d!==_0x1bbe05&&(_0x150a98[_0x3218bc('0xa16')][_0x3218bc('0xc08')]=0x1),!_0x3d819d&&(_0x150a98[_0x3218bc('0xa16')][_0x3218bc('0xc08')]=_0xd4c7e8),_0x150a98[_0x3218bc('0x2339')]());});function _0x376947(_0x4788ae){_0x150a98['faxQueues']=_0x4788ae||{'count':0x0,'rows':[]};}function _0x2ca1f5(){var _0x51ce2a=_0x4383a5;_0x150a98['query'][_0x51ce2a('0xab0')]=(_0x150a98[_0x51ce2a('0xa16')]['page']-0x1)*_0x150a98[_0x51ce2a('0xa16')][_0x51ce2a('0x1b6d')],_0x1b460e['hasRole'](_0x51ce2a('0xd14'))?_0x150a98['promise']=_0x5a7590['faxQueue'][_0x51ce2a('0x22d5')](_0x150a98['query'],_0x376947)[_0x51ce2a('0xe59')]:(_0x150a98[_0x51ce2a('0xa16')]['id']=_0x150a98[_0x51ce2a('0x154f')]['id'],_0x150a98['query'][_0x51ce2a('0x1e59')]=_0x51ce2a('0x1473'),_0x150a98['promise']=_0x5a7590[_0x51ce2a('0x154f')][_0x51ce2a('0x14e6')](_0x150a98[_0x51ce2a('0xa16')],_0x376947)[_0x51ce2a('0xe59')]);}function _0x50db3e(_0x11a7c3,_0x3062e2){var _0x425c4f=_0x4383a5;_0x48eda4[_0x425c4f('0x26b2')]({'controller':_0x425c4f('0x1fa8'),'controllerAs':'vm','templateUrl':_0x5c13e8,'parent':angular[_0x425c4f('0x24a1')](_0x3c108a['body']),'targetEvent':_0x11a7c3,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3062e2,'faxQueues':_0x150a98['faxQueues'][_0x425c4f('0x16a7')],'license':_0x150a98['license'],'setting':_0x150a98[_0x425c4f('0x22f1')],'crudPermissions':_0x150a98['crudPermissions']}});}function _0x54bf8f(_0x2a0abd){var _0x593101=_0x4383a5;_0x5a7590[_0x593101('0x3f4')][_0x593101('0x229e')]({'id':_0x2a0abd['id']})[_0x593101('0xe59')][_0x593101('0xe19')](function(){var _0x1c56f8=_0x593101;_0x32d445()[_0x1c56f8('0xa8b')](_0x150a98[_0x1c56f8('0x156e')]['rows'],{'id':_0x2a0abd['id']}),_0x150a98[_0x1c56f8('0x156e')][_0x1c56f8('0x148b')]-=0x1,!_0x150a98['faxQueues'][_0x1c56f8('0x16a7')][_0x1c56f8('0x25ae')]&&_0x150a98[_0x1c56f8('0x2339')](),_0x5d8530[_0x1c56f8('0x425')]({'title':_0x32d445()[_0x1c56f8('0x1df2')](_0x1c56f8('0xa61'))+_0x1c56f8('0x1219'),'msg':_0x2a0abd[_0x1c56f8('0x2623')]?_0x2a0abd[_0x1c56f8('0x2623')]+_0x1c56f8('0x2182'):''});})['catch'](function(_0x4d3bc8){var _0x252994=_0x593101;if(_0x4d3bc8['data']&&_0x4d3bc8[_0x252994('0x11d0')][_0x252994('0xcd2')]&&_0x4d3bc8[_0x252994('0x11d0')]['errors'][_0x252994('0x25ae')]){_0x150a98[_0x252994('0xcd2')]=_0x4d3bc8[_0x252994('0x11d0')][_0x252994('0xcd2')]||[{'message':_0x4d3bc8[_0x252994('0x94f')](),'type':_0x252994('0x69f')}];for(var _0x45e4b3=0x0;_0x45e4b3<_0x4d3bc8[_0x252994('0x11d0')][_0x252994('0xcd2')][_0x252994('0x25ae')];_0x45e4b3++){_0x5d8530[_0x252994('0x8c8')]({'title':_0x4d3bc8['data'][_0x252994('0xcd2')][_0x45e4b3][_0x252994('0x62e')],'msg':_0x4d3bc8['data'][_0x252994('0xcd2')][_0x45e4b3][_0x252994('0x27e8')]});}}else _0x5d8530[_0x252994('0x8c8')]({'title':_0x4d3bc8[_0x252994('0x2833')]?_0x252994('0x27f2')+_0x4d3bc8[_0x252994('0x2833')]+_0x252994('0x1b7c')+_0x4d3bc8[_0x252994('0x1fd7')]:_0x252994('0x69f'),'msg':_0x4d3bc8[_0x252994('0x11d0')]?JSON[_0x252994('0x3ad')](_0x4d3bc8[_0x252994('0x11d0')][_0x252994('0x27e8')]):_0x4d3bc8[_0x252994('0x27e8')]||_0x4d3bc8[_0x252994('0x94f')]()});});}function _0x28e492(){var _0x274183=_0x4383a5,_0x1d4da1=angular['copy'](_0x150a98[_0x274183('0x1069')]);return _0x150a98[_0x274183('0x1069')]=[],_0x1d4da1;}function _0x205983(_0x220ba4){var _0x3f98d5=_0x4383a5,_0x7e6b16=_0x48eda4[_0x3f98d5('0xa5')]()[_0x3f98d5('0x13e4')](_0x3f98d5('0xefa'))[_0x3f98d5('0x221c')](_0x3f98d5('0xab2')+_0x150a98['selectedFaxQueues'][_0x3f98d5('0x25ae')]+'\x20selected'+_0x3f98d5('0x21bd'))['ariaLabel']('delete\x20FaxQueues')['targetEvent'](_0x220ba4)['ok']('OK')['cancel'](_0x3f98d5('0x17'));_0x48eda4[_0x3f98d5('0x26b2')](_0x7e6b16)[_0x3f98d5('0xe19')](function(){var _0x51e151=_0x3f98d5;_0x150a98[_0x51e151('0x1069')][_0x51e151('0x1d7e')](function(_0x22e8c8){_0x54bf8f(_0x22e8c8);}),_0x150a98[_0x51e151('0x1069')]=[];});}function _0x1abfcf(){_0x150a98['selectedFaxQueues']=[];}function _0x2127f4(){var _0x4362b5=_0x4383a5;_0x150a98[_0x4362b5('0x1069')]=_0x150a98[_0x4362b5('0x156e')][_0x4362b5('0x16a7')];}}const _0x148648=_0xc29bfc;_0x3cd5b5[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x3cd5b5(_0x4fa8c4,_0x252b6f){var _0x297960=_0xb635d2;_0x4fa8c4[_0x297960('0x1d72')](_0x297960('0x5f6'),{'abstract':!![],'url':'/fax'})[_0x297960('0x1d72')](_0x297960('0x26b6'),{'url':_0x297960('0x188c'),'views':{'content@app':{'templateUrl':_0x4354c1,'controller':_0x297960('0x2550')}},'resolve':{'faxQueues':[_0x297960('0x292'),_0x297960('0x2730'),function _0x456984(_0x2d7958,_0x3dbc06){var _0x31dd02=_0x297960;return _0x3dbc06[_0x31dd02('0x179e')](_0x31dd02('0xd14'))?_0x2d7958[_0x31dd02('0xcd6')](_0x31dd02('0x669'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x31dd02('0x7e8'),'channel':_0x31dd02('0x625'),'limit':0xa,'offset':0x0}):_0x2d7958[_0x31dd02('0xcd6')](_0x31dd02('0x197d'),{'id':_0x3dbc06[_0x31dd02('0x1ef8')]()[_0x31dd02('0x1d04')],'section':_0x31dd02('0x1473'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x31dd02('0x7e8'),'channel':_0x31dd02('0x625'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x297960('0x292'),'Auth',function _0x382a54(_0x60d691,_0x328b56){var _0x343b41=_0x297960;return _0x328b56[_0x343b41('0x179e')](_0x343b41('0xd14'))?null:_0x60d691[_0x343b41('0xcd6')](_0x343b41('0x455'),{'fields':_0x343b41('0x1b71'),'id':_0x328b56[_0x343b41('0x1ef8')]()[_0x343b41('0x1d04')]});}],'userProfileSection':['apiResolver',_0x297960('0x2730'),function _0x9cbc20(_0x179779,_0x2f880c){var _0x5d8e79=_0x297960;return _0x2f880c[_0x5d8e79('0x179e')](_0x5d8e79('0xd14'))?null:_0x179779[_0x5d8e79('0xcd6')](_0x5d8e79('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2f880c[_0x5d8e79('0x1ef8')]()[_0x5d8e79('0x1d04')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':'fax'})[_0x297960('0x1d72')](_0x297960('0x9cb'),{'url':_0x297960('0xb1d'),'params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1df102,'controller':_0x297960('0xe6e')}},'resolve':{'faxQueue':[_0x297960('0x292'),_0x297960('0x34'),function _0x5f3484(_0x23c79f,_0x262ced){var _0xd89a8c=_0x297960;return _0x23c79f[_0xd89a8c('0xcd6')](_0xd89a8c('0x669'),{'fields':_0xd89a8c('0x1bd'),'id':_0x262ced['id']});}],'userProfileSection':[_0x297960('0x292'),_0x297960('0x2730'),function _0x4e591e(_0x24d519,_0xfb897){var _0x338d6a=_0x297960;return _0x24d519[_0x338d6a('0xcd6')](_0x338d6a('0x264e'),{'fields':_0x338d6a('0x12d6'),'userProfileId':_0xfb897[_0x338d6a('0x1ef8')]()['userProfileId'],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x297960('0x625')})[_0x297960('0x1d72')](_0x297960('0x6dc'),{'url':'/faxAccounts','views':{'content@app':{'templateUrl':_0x13f3ba,'controller':'FaxAccountsController\x20as\x20vm'}},'resolve':{'faxAccounts':['apiResolver',_0x297960('0x2730'),function _0x23ab39(_0x1f3e96,_0x56426c){var _0x20decd=_0x297960;return _0x56426c[_0x20decd('0x179e')](_0x20decd('0xd14'))?_0x1f3e96['resolve'](_0x20decd('0x27c'),{'fields':'createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x20decd('0x7e8'),'limit':0xa,'offset':0x0}):_0x1f3e96[_0x20decd('0xcd6')]('userProfile@getResources',{'id':_0x56426c[_0x20decd('0x1ef8')]()[_0x20decd('0x1d04')],'section':'FaxAccounts','fields':_0x20decd('0x1aa4'),'sort':_0x20decd('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x297960('0x292'),_0x297960('0x2730'),function _0x5c5aac(_0x40e3f1,_0x37c437){var _0xb9ee95=_0x297960;return _0x37c437[_0xb9ee95('0x179e')](_0xb9ee95('0xd14'))?null:_0x40e3f1[_0xb9ee95('0xcd6')](_0xb9ee95('0x455'),{'fields':_0xb9ee95('0x1b71'),'id':_0x37c437[_0xb9ee95('0x1ef8')]()[_0xb9ee95('0x1d04')]});}],'userProfileSection':['apiResolver',_0x297960('0x2730'),function _0x1d9a3b(_0x465141,_0x1ba51e){var _0x218ab3=_0x297960;return _0x1ba51e[_0x218ab3('0x179e')](_0x218ab3('0xd14'))?null:_0x465141[_0x218ab3('0xcd6')](_0x218ab3('0x264e'),{'fields':_0x218ab3('0x12d6'),'userProfileId':_0x1ba51e[_0x218ab3('0x1ef8')]()[_0x218ab3('0x1d04')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x297960('0x625')})[_0x297960('0x1d72')]('app.fax.faxAccounts.edit',{'url':_0x297960('0xb1d'),'params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2f1e26,'controller':_0x297960('0x1cad')}},'resolve':{'faxAccount':[_0x297960('0x292'),'$stateParams',function _0x3ea6e9(_0x3165a2,_0x2af455){var _0x2bb2b4=_0x297960;return _0x3165a2[_0x2bb2b4('0xcd6')](_0x2bb2b4('0x27c'),{'fields':'createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','id':_0x2af455['id']});}],'userProfileSection':[_0x297960('0x292'),_0x297960('0x2730'),function _0x13e788(_0x3af079,_0x16ef9c){var _0xc3d394=_0x297960;return _0x3af079[_0xc3d394('0xcd6')](_0xc3d394('0x264e'),{'fields':_0xc3d394('0x12d6'),'userProfileId':_0x16ef9c[_0xc3d394('0x1ef8')]()[_0xc3d394('0x1d04')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x297960('0x625')}),_0x252b6f[_0x297960('0xfe3')]('app/main/apps/fax');}angular[_0xb635d2('0x153f')]('app.fax',[_0xb635d2('0x569'),_0xb635d2('0x24b'),_0xb635d2('0x274e'),'flow','mdColorPicker',_0xb635d2('0x1727'),'ng-sortable',_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),'angularMaterialFormBuilder',_0xb635d2('0x191c'),_0xb635d2('0xe93'),_0xb635d2('0x16a1'),_0xb635d2('0x190a')])[_0xb635d2('0x1990')](_0x3cd5b5)[_0xb635d2('0x1a79')]('CreateOrEditFaxAccountDialogController',_0x6c4191)[_0xb635d2('0x1a79')]('FaxAccountActionsController',_0x45c5cf)[_0xb635d2('0x1a79')]('FaxAccountagentaddController',_0xaaa8b3)[_0xb635d2('0x1a79')](_0xb635d2('0xada'),_0x2b3879)[_0xb635d2('0x1a79')](_0xb635d2('0x1f53'),_0x537690)[_0xb635d2('0x1a79')]('EditFaxAccountAppgotoifDialogController',_0x29166a)[_0xb635d2('0x1a79')](_0xb635d2('0x264b'),_0x435025)[_0xb635d2('0x1a79')](_0xb635d2('0x2404'),_0x3fcba2)[_0xb635d2('0x1a79')](_0xb635d2('0x1535'),_0x4ad264)[_0xb635d2('0x1a79')](_0xb635d2('0x1fd9'),_0x2c9414)[_0xb635d2('0x1a79')](_0xb635d2('0x1f3c'),_0x245f8f)[_0xb635d2('0x1a79')]('EditFaxAccountApptagDialogController',_0x11bce5)[_0xb635d2('0x1a79')]('FaxAccountDispositionsController',_0x3cc4bb)['controller'](_0xb635d2('0x13dc'),_0x42058c)['controller'](_0xb635d2('0x252c'),_0x1b7fb5)[_0xb635d2('0x1a79')](_0xb635d2('0x20f4'),_0x1a291a)[_0xb635d2('0x1a79')]('CreateOrEditFaxQueueDialogController',_0xa7a08e)[_0xb635d2('0x1a79')](_0xb635d2('0x20e4'),_0x55c42d)[_0xb635d2('0x1a79')]('FaxQueueteamaddController',_0x2a79f9)['controller']('FaxQueueController',_0x19953e)[_0xb635d2('0x1a79')]('FaxQueuesController',_0x148648);const _0x46fb7a=_0x59426a['p']+_0xb635d2('0x2811');_0x5140b2[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$translate','$q',_0xb635d2('0xf65'),'dispositions',_0xb635d2('0x2506'),_0xb635d2('0x179f'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x5140b2(_0x26071f,_0x2583f1,_0x304bf7,_0x221451,_0x1fb6f5,_0x405dcf,_0x2dc58b,_0x31fc49,_0x43b65d,_0x3272e4,_0x3fdd27,_0x34c014){var _0x1f2753=_0xb635d2,_0x5be594=this;_0x5be594[_0x1f2753('0x15a5')]=_0x43b65d[_0x1f2753('0x1ef8')](),_0x5be594[_0x1f2753('0x2506')]=angular[_0x1f2753('0x89')](_0x405dcf),_0x5be594['dispositions']=angular[_0x1f2753('0x89')](_0x1fb6f5),_0x5be594[_0x1f2753('0x22f1')]=_0x34c014,_0x5be594[_0x1f2753('0x5c1')]=_0x3fdd27,_0x5be594[_0x1f2753('0xb3d')]=_0x3272e4,_0x5be594[_0x1f2753('0xa0d')]=![],_0x5be594[_0x1f2753('0xcd2')]=[];!_0x5be594[_0x1f2753('0x2506')]?(_0x5be594['disposition']={'level':_0x1f2753('0x2325')},_0x5be594[_0x1f2753('0xa0d')]=!![]):_0x28d007();if(_0x2dc58b){var _0x2229b2=_0x2dc58b['field'];_0x5be594[_0x1f2753('0x2506')][_0x2229b2]=_0x2dc58b['id'];}_0x5be594[_0x1f2753('0x6d6')]=_0x5b1b0f,_0x5be594[_0x1f2753('0x1594')]=_0x28d88,_0x5be594[_0x1f2753('0x3d9')]=_0x43e780,_0x5be594[_0x1f2753('0x1db')]=_0x3d1edc,_0x5be594[_0x1f2753('0x359')]=_0x28e011,_0x5be594['closeDialog']=_0x2b493c;function _0x28d007(){var _0x424fcb=_0x1f2753;if(_0x5be594[_0x424fcb('0x2506')][_0x424fcb('0x1296')]==='first')return;_0x5be594[_0x424fcb('0x92')]=_0x32d445()[_0x424fcb('0xf15')](_0x5be594[_0x424fcb('0x24eb')],['id',_0x5be594[_0x424fcb('0x2506')]['ParentId']]);if(!_0x5be594[_0x424fcb('0x92')]){_0xeb56a6()[_0x424fcb('0xe19')](function(){var _0x506823=_0x424fcb;for(var _0x346358=0x0;_0x346358<_0x5be594[_0x506823('0x1930')][_0x506823('0x25ae')];_0x346358++){var _0x901afe=_0x5be594[_0x506823('0x1930')][_0x346358];if(_0x901afe['id']===_0x5be594['disposition']['ParentId']){_0x2e7ef6(_0x901afe),_0x901afe['canSelect']=![],_0x5be594[_0x506823('0x24eb')]['push'](_0x901afe);break;}}});return;}_0x2e7ef6(_0x5be594['parentDisposition']);}function _0xeb56a6(){return _0x304bf7(function(_0x532f03,_0x340d8f){var _0x52b8b3=a0_0x5325;_0x31fc49['disposition']['get']({'fields':_0x52b8b3('0x232f'),'sort':'id','nolimit':_0x52b8b3('0x2206')})['$promise'][_0x52b8b3('0xe19')](function(_0x311dc0){var _0x5482a1=_0x52b8b3;_0x5be594[_0x5482a1('0x1930')]=_0x311dc0[_0x5482a1('0x16a7')]||[],_0x532f03();})[_0x52b8b3('0x223b')](function(_0x570a1c){_0x340d8f(_0x570a1c);});});}function _0x2e7ef6(_0x4a2620){var _0x213105=_0x1f2753;_0x4a2620[_0x213105('0x1296')]===_0x213105('0x2325')?_0x5be594[_0x213105('0xeac')]=_0x4a2620:(_0x5be594[_0x213105('0x27e1')]=!![],_0x5be594[_0x213105('0x2625')]=_0x4a2620,_0x5be594[_0x213105('0xeac')]=_0x32d445()['find'](_0x5be594[_0x213105('0x24eb')],['id',_0x5be594[_0x213105('0x2625')][_0x213105('0x2450')]]),!_0x5be594[_0x213105('0xeac')]&&_0xeb56a6()[_0x213105('0xe19')](function(){var _0x297854=_0x213105;_0x5be594[_0x297854('0xeac')]=_0x32d445()[_0x297854('0xf15')](_0x5be594[_0x297854('0x1930')],['id',_0x5be594[_0x297854('0x2625')]['ParentId']]),_0x5be594['firstLevelDisposition']['canSelect']=![],_0x5be594['dispositions'][_0x297854('0xb76')](_0x5be594[_0x297854('0xeac')]);}));}function _0x28e011(_0x45b414){var _0x3acd6d=_0x1f2753;_0x45b414==='first'?(_0x5be594[_0x3acd6d('0xeac')]=undefined,_0x5be594[_0x3acd6d('0x2625')]=undefined,_0x5be594[_0x3acd6d('0x27e1')]=![]):_0x5be594[_0x3acd6d('0x2625')]=undefined;}function _0x5b1b0f(){var _0x499674=_0x1f2753;_0x5be594[_0x499674('0x2625')]=undefined,_0x5be594[_0x499674('0x27e1')]=_0x32d445()[_0x499674('0x201a')](_0x5be594[_0x499674('0x24eb')],function(_0x2f2be7){var _0x3cb685=_0x499674;return _0x2f2be7[_0x3cb685('0x2450')]===_0x5be594[_0x3cb685('0xeac')]['id']&&_0x2f2be7['id']!=_0x5be594['disposition']['id'];});}function _0x28d88(){var _0x170ac3=_0x1f2753;_0x5be594[_0x170ac3('0xcd2')]=[];if(_0x5be594[_0x170ac3('0x2625')])_0x5be594[_0x170ac3('0x2506')][_0x170ac3('0x2450')]=_0x5be594['secondLevelDisposition']['id'],_0x5be594[_0x170ac3('0x2506')][_0x170ac3('0x1296')]='third';else _0x5be594['firstLevelDisposition']&&(_0x5be594[_0x170ac3('0x2506')][_0x170ac3('0x2450')]=_0x5be594[_0x170ac3('0xeac')]['id'],_0x5be594['disposition'][_0x170ac3('0x1296')]='second');_0x31fc49[_0x170ac3('0x2506')][_0x170ac3('0xe5e')](_0x5be594[_0x170ac3('0x2506')])[_0x170ac3('0xe59')][_0x170ac3('0xe19')](function(_0x5c61e7){var _0x1b05f4=_0x170ac3;_0x5be594[_0x1b05f4('0x24eb')]['unshift'](_0x5c61e7[_0x1b05f4('0x250e')]()),_0x221451[_0x1b05f4('0x425')]({'title':_0x2583f1['instant'](_0x1b05f4('0x1c99'))}),_0x2b493c(!![]);})[_0x170ac3('0x223b')](function(_0x55e002){var _0x17d68d=_0x170ac3;if(_0x55e002[_0x17d68d('0x11d0')]&&_0x55e002[_0x17d68d('0x11d0')][_0x17d68d('0xcd2')]&&_0x55e002[_0x17d68d('0x11d0')][_0x17d68d('0xcd2')][_0x17d68d('0x25ae')]){_0x5be594['errors']=_0x55e002[_0x17d68d('0x11d0')][_0x17d68d('0xcd2')]||[{'message':_0x55e002[_0x17d68d('0x94f')](),'type':_0x17d68d('0x16f1')}];for(var _0x49188f=0x0;_0x49188f<_0x55e002[_0x17d68d('0x11d0')][_0x17d68d('0xcd2')]['length'];_0x49188f+=0x1){_0x221451[_0x17d68d('0x8c8')]({'title':_0x55e002[_0x17d68d('0x11d0')][_0x17d68d('0xcd2')][_0x49188f][_0x17d68d('0x62e')],'msg':_0x55e002[_0x17d68d('0x11d0')][_0x17d68d('0xcd2')][_0x49188f][_0x17d68d('0x27e8')]});}}else _0x221451[_0x17d68d('0x8c8')]({'title':_0x55e002['status']?_0x17d68d('0x27f2')+_0x55e002['status']+_0x17d68d('0x1b7c')+_0x55e002['statusText']:_0x17d68d('0x16f1'),'msg':_0x55e002[_0x17d68d('0x11d0')]?JSON[_0x17d68d('0x3ad')](_0x55e002[_0x17d68d('0x11d0')][_0x17d68d('0x27e8')]):_0x55e002[_0x17d68d('0x94f')]()});});}function _0x43e780(){var _0x1b23d5=_0x1f2753;_0x5be594[_0x1b23d5('0xcd2')]=[];if(_0x5be594[_0x1b23d5('0x2625')])_0x5be594[_0x1b23d5('0x2506')]['ParentId']=_0x5be594[_0x1b23d5('0x2625')]['id'],_0x5be594['disposition']['level']=_0x1b23d5('0x2038');else _0x5be594[_0x1b23d5('0xeac')]&&(_0x5be594[_0x1b23d5('0x2506')][_0x1b23d5('0x2450')]=_0x5be594['firstLevelDisposition']['id'],_0x5be594[_0x1b23d5('0x2506')][_0x1b23d5('0x1296')]='second');_0x31fc49['disposition'][_0x1b23d5('0xa70')]({'id':_0x5be594['disposition']['id']},_0x5be594[_0x1b23d5('0x2506')])[_0x1b23d5('0xe59')][_0x1b23d5('0xe19')](function(_0x18fb5f){var _0x36ea23=_0x1b23d5,_0x39d2a4=_0x32d445()[_0x36ea23('0xf15')](_0x5be594[_0x36ea23('0x24eb')],{'id':_0x18fb5f['id']});_0x39d2a4&&_0x32d445()[_0x36ea23('0x1d8')](_0x39d2a4,_0x32d445()[_0x36ea23('0xed5')](_0x18fb5f[_0x36ea23('0x250e')](),_0x32d445()[_0x36ea23('0x1234')](_0x39d2a4))),_0x221451['success']({'title':_0x2583f1[_0x36ea23('0x2159')]('TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE')}),_0x2b493c(!![]);})[_0x1b23d5('0x223b')](function(_0x51e05e){var _0x13be5e=_0x1b23d5;if(_0x51e05e[_0x13be5e('0x11d0')]&&_0x51e05e[_0x13be5e('0x11d0')][_0x13be5e('0xcd2')]&&_0x51e05e[_0x13be5e('0x11d0')][_0x13be5e('0xcd2')][_0x13be5e('0x25ae')]){_0x5be594[_0x13be5e('0xcd2')]=_0x51e05e[_0x13be5e('0x11d0')][_0x13be5e('0xcd2')]||[{'message':_0x51e05e[_0x13be5e('0x94f')](),'type':_0x13be5e('0x278e')}];for(var _0x59e6bd=0x0;_0x59e6bd<_0x51e05e[_0x13be5e('0x11d0')][_0x13be5e('0xcd2')]['length'];_0x59e6bd++){_0x221451[_0x13be5e('0x8c8')]({'title':_0x51e05e[_0x13be5e('0x11d0')]['errors'][_0x59e6bd][_0x13be5e('0x62e')],'msg':_0x51e05e[_0x13be5e('0x11d0')][_0x13be5e('0xcd2')][_0x59e6bd]['message']});}}else _0x221451[_0x13be5e('0x8c8')]({'title':_0x51e05e[_0x13be5e('0x2833')]?'API:'+_0x51e05e[_0x13be5e('0x2833')]+_0x13be5e('0x1b7c')+_0x51e05e['statusText']:_0x13be5e('0x278e'),'msg':_0x51e05e['data']?JSON['stringify'](_0x51e05e[_0x13be5e('0x11d0')]['message']):_0x51e05e[_0x13be5e('0x94f')]()});});}function _0x3d1edc(_0xd3c660){var _0x17ea43=_0x1f2753;_0x5be594[_0x17ea43('0xcd2')]=[];var _0x17bbba=_0x32d445()['some'](_0x5be594[_0x17ea43('0x24eb')],[_0x17ea43('0x2450'),_0x5be594[_0x17ea43('0x2506')]['id']]),_0x3c8dda=_0x26071f[_0x17ea43('0xa5')]({'skipHide':!![]})[_0x17ea43('0x13e4')](_0x2583f1['instant'](_0x17ea43('0x5d9')))[_0x17ea43('0xd0')](_0x2583f1[_0x17ea43('0x2159')]('TOOLS.NOTIFICATIONS.'+(_0x17bbba?_0x17ea43('0x930'):_0x17ea43('0xf36')),{'name':_0x5be594[_0x17ea43('0x2506')]['name']}))[_0x17ea43('0x4d1')](_0x17ea43('0x1c26'))['ok'](_0x2583f1[_0x17ea43('0x2159')](_0x17ea43('0x185a')))[_0x17ea43('0x2c1')](_0x2583f1[_0x17ea43('0x2159')](_0x17ea43('0x717')))[_0x17ea43('0x1345')](_0xd3c660);_0x26071f['show'](_0x3c8dda)[_0x17ea43('0xe19')](function(){var _0x48db4c=_0x17ea43;_0x31fc49[_0x48db4c('0x2506')][_0x48db4c('0x229e')]({'id':_0x5be594[_0x48db4c('0x2506')]['id']})['$promise'][_0x48db4c('0xe19')](function(){var _0x5e2316=_0x48db4c;_0x221451[_0x5e2316('0x425')]({'title':_0x2583f1[_0x5e2316('0x2159')](_0x5e2316('0x1593'))}),_0x2b493c(!![]);})[_0x48db4c('0x223b')](function(_0x44458c){var _0xa56f47=_0x48db4c;if(_0x44458c['data']&&_0x44458c['data']['errors']&&_0x44458c[_0xa56f47('0x11d0')]['errors'][_0xa56f47('0x25ae')]){_0x5be594[_0xa56f47('0xcd2')]=_0x44458c[_0xa56f47('0x11d0')]['errors']||[{'message':_0x44458c[_0xa56f47('0x94f')](),'type':_0xa56f47('0x2827')}];for(var _0x3c186=0x0;_0x3c186<_0x44458c['data'][_0xa56f47('0xcd2')][_0xa56f47('0x25ae')];_0x3c186++){_0x221451['error']({'title':_0x44458c[_0xa56f47('0x11d0')][_0xa56f47('0xcd2')][_0x3c186][_0xa56f47('0x62e')],'msg':_0x44458c[_0xa56f47('0x11d0')][_0xa56f47('0xcd2')][_0x3c186][_0xa56f47('0x27e8')]});}}else _0x221451['error']({'title':_0x44458c[_0xa56f47('0x2833')]?_0xa56f47('0x27f2')+_0x44458c[_0xa56f47('0x2833')]+_0xa56f47('0x1b7c')+_0x44458c[_0xa56f47('0x1fd7')]:_0xa56f47('0x2827'),'msg':_0x44458c['data']?JSON['stringify'](_0x44458c[_0xa56f47('0x11d0')]['message']):_0x44458c['message']||_0x44458c['toString']()});});});}function _0x2b493c(_0x18f052){_0x26071f['hide'](_0x18f052);}}const _0x4b4f86=_0x5140b2;_0x36bc66[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x24eb'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x36bc66(_0x101a71,_0x4b21e6,_0x264f39,_0x12bb4f,_0x56ba8e,_0x1bdca,_0x590698,_0x17f44f,_0x1cdcfc,_0xa851e5,_0x4c0b4f,_0x176347,_0x2d8414,_0x2769bc,_0x135a30,_0x568639){var _0x37a8c6=_0xb635d2,_0x45ff1f=this;_0x45ff1f['license']=_0x135a30,_0x45ff1f[_0x37a8c6('0x22f1')]=_0x568639,_0x45ff1f[_0x37a8c6('0x15a5')]=_0x2769bc['getCurrentUser'](),_0x45ff1f[_0x37a8c6('0x24eb')]=_0x1cdcfc||{'count':0x0,'rows':[]},_0x45ff1f[_0x37a8c6('0x154f')]=_0xa851e5,_0x45ff1f[_0x37a8c6('0xb59')]=_0x4c0b4f&&_0x4c0b4f[_0x37a8c6('0x148b')]==0x1?_0x4c0b4f[_0x37a8c6('0x16a7')][0x0]:null,_0x45ff1f[_0x37a8c6('0xb3d')]=_0x2769bc[_0x37a8c6('0xd31')](_0x45ff1f[_0x37a8c6('0xb59')]?_0x45ff1f[_0x37a8c6('0xb59')][_0x37a8c6('0xb3d')]:null),_0x45ff1f[_0x37a8c6('0x17e9')]=[],_0x45ff1f['levels']={'first':_0x37a8c6('0x24ab'),'second':_0x37a8c6('0x6c0'),'third':_0x37a8c6('0x13ee')},_0x45ff1f['query']={'fields':_0x37a8c6('0x561'),'sort':_0x37a8c6('0x7e8'),'MailAccountId':_0x37a8c6('0x1046'),'FaxAccountId':_0x37a8c6('0x1046'),'SmsAccountId':'null','OpenchannelAccountId':_0x37a8c6('0x1046'),'ChatWebsiteId':_0x37a8c6('0x1046'),'WhatsappAccountId':_0x37a8c6('0x1046'),'ListId':_0x37a8c6('0x1046'),'limit':0xa,'page':0x1},_0x45ff1f[_0x37a8c6('0x1d9e')]=_0x2925f1,_0x45ff1f[_0x37a8c6('0x425')]=_0x15404,_0x45ff1f[_0x37a8c6('0x1312')]=_0x144256,_0x45ff1f['createOrEditDisposition']=_0x17efde,_0x45ff1f[_0x37a8c6('0x1db')]=_0x43d0fc,_0x45ff1f[_0x37a8c6('0x1f38')]=_0x539201,_0x45ff1f[_0x37a8c6('0xda0')]=_0x37fb98,_0x45ff1f[_0x37a8c6('0x33d')]=_0x2e3659,_0x45ff1f[_0x37a8c6('0x56f')]=_0x13a22c;function _0x17efde(_0x43fff1,_0x14d671){var _0x1c245d=_0x37a8c6;_0x56ba8e[_0x1c245d('0x26b2')]({'controller':_0x1c245d('0x4d9'),'controllerAs':'vm','templateUrl':_0x599d02,'parent':angular[_0x1c245d('0x24a1')](_0x1bdca[_0x1c245d('0x19b2')]),'targetEvent':_0x43fff1,'clickOutsideToClose':!![],'locals':{'disposition':_0x14d671,'dispositions':_0x45ff1f['dispositions'][_0x1c245d('0x16a7')],'model':null,'license':_0x45ff1f[_0x1c245d('0x5c1')],'setting':_0x45ff1f[_0x1c245d('0x22f1')],'crudPermissions':_0x45ff1f[_0x1c245d('0xb3d')]}})[_0x1c245d('0xe19')](function(_0x1098ed){if(_0x1098ed===!![])_0x144256();});}function _0x2925f1(_0x1a3f41,_0x4aef51){var _0x496012=_0x37a8c6,_0x437236=_0x32d445()[_0x496012('0x201a')](_0x45ff1f[_0x496012('0x24eb')][_0x496012('0x16a7')],[_0x496012('0x2450'),_0x1a3f41['id']]),_0xe642ca=_0x56ba8e[_0x496012('0xa5')]()[_0x496012('0x13e4')](_0x17f44f[_0x496012('0x2159')](_0x496012('0x5d9')))[_0x496012('0xd0')](_0x17f44f[_0x496012('0x2159')](_0x496012('0xd37')+(_0x437236?_0x496012('0x930'):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x1a3f41[_0x496012('0x2623')]}))[_0x496012('0x4d1')](_0x496012('0x1c26'))[_0x496012('0x1345')](_0x4aef51)['ok']('OK')[_0x496012('0x2c1')](_0x17f44f[_0x496012('0x2159')](_0x496012('0x717')));_0x56ba8e[_0x496012('0x26b2')](_0xe642ca)[_0x496012('0xe19')](function(){_0x43d0fc(_0x1a3f41);});}function _0x15404(_0x28924b){var _0x1e44ee=_0x37a8c6;_0x45ff1f[_0x1e44ee('0x24eb')]=_0x28924b||{'count':0x0,'rows':[]};}function _0x144256(){var _0x3f17cf=_0x37a8c6;_0x45ff1f[_0x3f17cf('0xa16')][_0x3f17cf('0xab0')]=(_0x45ff1f[_0x3f17cf('0xa16')][_0x3f17cf('0xc08')]-0x1)*_0x45ff1f[_0x3f17cf('0xa16')]['limit'],_0x2769bc[_0x3f17cf('0x1da3')]()?_0x45ff1f[_0x3f17cf('0x9c8')]=_0x176347['disposition']['get'](_0x45ff1f[_0x3f17cf('0xa16')],_0x15404)[_0x3f17cf('0xe59')]:(_0x45ff1f[_0x3f17cf('0xa16')]['id']=_0x45ff1f[_0x3f17cf('0x154f')]['id'],_0x45ff1f[_0x3f17cf('0xa16')][_0x3f17cf('0x1e59')]='Dispositions',_0x45ff1f[_0x3f17cf('0x9c8')]=_0x176347[_0x3f17cf('0x154f')][_0x3f17cf('0x14e6')](_0x45ff1f[_0x3f17cf('0xa16')],_0x15404)[_0x3f17cf('0xe59')]);}function _0x43d0fc(_0x3d5625){var _0x1d4a82=_0x37a8c6;_0x176347[_0x1d4a82('0x2506')][_0x1d4a82('0x229e')]({'id':_0x3d5625['id']})[_0x1d4a82('0xe59')][_0x1d4a82('0xe19')](function(){var _0x5db2a9=_0x1d4a82;_0x144256(),_0x2d8414['success']({'title':_0x17f44f[_0x5db2a9('0x2159')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x1d4a82('0x223b')](function(_0x13b194){var _0x1f7bff=_0x1d4a82;if(_0x13b194['data']&&_0x13b194[_0x1f7bff('0x11d0')]['errors']&&_0x13b194[_0x1f7bff('0x11d0')]['errors'][_0x1f7bff('0x25ae')]){_0x45ff1f[_0x1f7bff('0xcd2')]=_0x13b194[_0x1f7bff('0x11d0')][_0x1f7bff('0xcd2')]||[{'message':_0x13b194[_0x1f7bff('0x94f')](),'type':'SYSTEM:DELETEdisposition'}];for(var _0x1ad09b=0x0;_0x1ad09b<_0x13b194['data']['errors'][_0x1f7bff('0x25ae')];_0x1ad09b++){_0x2d8414[_0x1f7bff('0x8c8')]({'title':_0x13b194['data'][_0x1f7bff('0xcd2')][_0x1ad09b]['type'],'msg':_0x13b194['data'][_0x1f7bff('0xcd2')][_0x1ad09b][_0x1f7bff('0x27e8')]});}}else _0x2d8414[_0x1f7bff('0x8c8')]({'title':_0x13b194[_0x1f7bff('0x2833')]?_0x1f7bff('0x27f2')+_0x13b194['status']+_0x1f7bff('0x1b7c')+_0x13b194[_0x1f7bff('0x1fd7')]:_0x1f7bff('0x45'),'msg':_0x13b194['data']?JSON[_0x1f7bff('0x3ad')](_0x13b194['data'][_0x1f7bff('0x27e8')]):_0x13b194[_0x1f7bff('0x27e8')]||_0x13b194['toString']()});});}function _0x539201(){var _0x50b201=_0x37a8c6,_0x1c765f=angular[_0x50b201('0x89')](_0x45ff1f['selectedDispositions']);return _0x45ff1f[_0x50b201('0x17e9')]=[],_0x1c765f;}function _0x37fb98(_0x4b2e6b){var _0xdac352=_0x37a8c6,_0x17e849=_0x56ba8e[_0xdac352('0xa5')]()[_0xdac352('0x13e4')](_0x17f44f['instant'](_0xdac352('0xf00')))[_0xdac352('0xd0')](_0x17f44f[_0xdac352('0x2159')](_0xdac352('0x2750'),{'total':_0x45ff1f[_0xdac352('0x17e9')][_0xdac352('0x25ae')]}))[_0xdac352('0x4d1')]('Delete\x20dispositions')['targetEvent'](_0x4b2e6b)['ok']('OK')['cancel'](_0x17f44f[_0xdac352('0x2159')]('TOOLS.CANCEL'));_0x56ba8e['show'](_0x17e849)[_0xdac352('0xe19')](function(){var _0x30c562=_0xdac352;_0x45ff1f['selectedDispositions'][_0x30c562('0x1d7e')](function(_0x4919f2){_0x43d0fc(_0x4919f2);}),_0x45ff1f['selectedDispositions']=[];});}function _0x2e3659(){_0x45ff1f['selectedDispositions']=[];}function _0x13a22c(){var _0xf0b651=_0x37a8c6;_0x45ff1f['selectedDispositions']=_0x45ff1f[_0xf0b651('0x24eb')][_0xf0b651('0x16a7')];}var _0x4d13cf=!![],_0x14241e=0x1;_0x101a71[_0x37a8c6('0x107')](_0x37a8c6('0x20cb'),function(_0x51c117,_0x1eb5d5){var _0x911aef=_0x37a8c6;_0x4d13cf?_0x590698(function(){_0x4d13cf=![];}):(!_0x1eb5d5&&(_0x14241e=_0x45ff1f[_0x911aef('0xa16')]['page']),_0x51c117!==_0x1eb5d5&&(_0x45ff1f['query'][_0x911aef('0xc08')]=0x1),!_0x51c117&&(_0x45ff1f['query'][_0x911aef('0xc08')]=_0x14241e),_0x144256());});}const _0x47e8be=_0x36bc66;_0x548b72[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x548b72(_0x2d9395){var _0x355c0b=_0xb635d2;_0x2d9395[_0x355c0b('0x1d72')](_0x355c0b('0x289f'),{'url':_0x355c0b('0x1342'),'views':{'content@app':{'templateUrl':_0x46fb7a,'controller':_0x355c0b('0x22d8')}},'resolve':{'dispositions':[_0x355c0b('0x292'),'Auth',function _0x18f234(_0x3b8c97,_0x4c29c3){var _0x20eb0c=_0x355c0b;return _0x4c29c3[_0x20eb0c('0x179e')](_0x20eb0c('0xd14'))?_0x3b8c97[_0x20eb0c('0xcd6')](_0x20eb0c('0xb91'),{'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':'-updatedAt','MailAccountId':_0x20eb0c('0x1046'),'FaxAccountId':_0x20eb0c('0x1046'),'SmsAccountId':_0x20eb0c('0x1046'),'OpenchannelAccountId':_0x20eb0c('0x1046'),'ChatWebsiteId':_0x20eb0c('0x1046'),'WhatsappAccountId':_0x20eb0c('0x1046'),'ListId':'null','limit':0xa,'offset':0x0}):_0x3b8c97[_0x20eb0c('0xcd6')](_0x20eb0c('0x197d'),{'id':_0x4c29c3['getCurrentUser']()[_0x20eb0c('0x1d04')],'section':_0x20eb0c('0x23f6'),'fields':_0x20eb0c('0x561'),'sort':_0x20eb0c('0x7e8'),'MailAccountId':_0x20eb0c('0x1046'),'FaxAccountId':_0x20eb0c('0x1046'),'SmsAccountId':'null','OpenchannelAccountId':_0x20eb0c('0x1046'),'ChatWebsiteId':_0x20eb0c('0x1046'),'WhatsappAccountId':'null','ListId':_0x20eb0c('0x1046'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x355c0b('0x292'),_0x355c0b('0x2730'),function _0x528252(_0xfd0fa8,_0x2538ea){var _0x31c14a=_0x355c0b;return _0x2538ea[_0x31c14a('0x179e')](_0x31c14a('0xd14'))?null:_0xfd0fa8[_0x31c14a('0xcd6')](_0x31c14a('0x455'),{'fields':_0x31c14a('0x1b71'),'id':_0x2538ea[_0x31c14a('0x1ef8')]()[_0x31c14a('0x1d04')]});}],'userProfileSection':[_0x355c0b('0x292'),_0x355c0b('0x2730'),function _0x555953(_0x1ad1f0,_0x49d9ea){var _0xd37b82=_0x355c0b;return _0x49d9ea[_0xd37b82('0x179e')](_0xd37b82('0xd14'))?null:_0x1ad1f0[_0xd37b82('0xcd6')](_0xd37b82('0x264e'),{'fields':_0xd37b82('0x12d6'),'userProfileId':_0x49d9ea['getCurrentUser']()['userProfileId'],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':_0x355c0b('0xfbe')});}angular[_0xb635d2('0x153f')]('app.tools.dispositions',[])['config'](_0x548b72)[_0xb635d2('0x1a79')]('CreateOrEditDispositionDialogController',_0x4b4f86)['controller'](_0xb635d2('0x3da'),_0x47e8be);const _0x1137aa=_0x59426a['p']+_0xb635d2('0x25a8'),_0x49319b=_0x59426a['p']+'src/js/modules/main/apps/tools/views/triggers/edit/view.html/view-[chunkhash].html';_0x4e1205[_0xb635d2('0xb0c')]=['$mdDialog','$translate',_0xb635d2('0xf65'),_0xb635d2('0x1373'),_0xb635d2('0x1481'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x4e1205(_0x5ddbb9,_0x5a0880,_0x8a770d,_0x37ca58,_0xf034f1,_0x469e3f,_0x4c9237,_0x10db65,_0x3ba366,_0x12369f){var _0x48f162=_0xb635d2,_0x57f018=this;_0x57f018[_0x48f162('0x15a5')]=_0x4c9237['getCurrentUser'](),_0x57f018[_0x48f162('0x1481')]=angular['copy'](_0xf034f1),_0x57f018[_0x48f162('0x1373')]=angular['copy'](_0x37ca58),_0x57f018[_0x48f162('0x22f1')]=_0x3ba366,_0x57f018[_0x48f162('0x5c1')]=_0x10db65,_0x57f018[_0x48f162('0xb3d')]=_0x12369f,_0x57f018[_0x48f162('0x56b')]=![],_0x57f018['errors']=[];!_0x57f018[_0x48f162('0x1481')]&&(_0x57f018[_0x48f162('0x1481')]={'channel':_0x48f162('0xe74')},_0x57f018[_0x48f162('0x56b')]=!![]);_0x57f018['addNewTrigger']=_0x12e743,_0x57f018[_0x48f162('0x323')]=_0x32f34d,_0x57f018[_0x48f162('0x98f')]=_0x51ba08,_0x57f018[_0x48f162('0x2584')]=_0x422888;function _0x12e743(){var _0x1a3bf3=_0x48f162;_0x57f018[_0x1a3bf3('0xcd2')]=[],_0x469e3f[_0x1a3bf3('0x1481')]['save'](_0x57f018['trigger'])['$promise'][_0x1a3bf3('0xe19')](function(_0x308917){var _0x5a5d45=_0x1a3bf3;_0x57f018[_0x5a5d45('0x1373')][_0x5a5d45('0x14c9')](_0x308917[_0x5a5d45('0x250e')]()),_0x8a770d[_0x5a5d45('0x425')]({'title':_0x5a0880[_0x5a5d45('0x2159')](_0x5a5d45('0xdc'))}),_0x422888(_0x57f018[_0x5a5d45('0x1373')]);})[_0x1a3bf3('0x223b')](function(_0x268ea4){var _0x19d8ec=_0x1a3bf3;if(_0x268ea4['data']&&_0x268ea4['data'][_0x19d8ec('0xcd2')]&&_0x268ea4['data'][_0x19d8ec('0xcd2')][_0x19d8ec('0x25ae')]){_0x57f018[_0x19d8ec('0xcd2')]=_0x268ea4[_0x19d8ec('0x11d0')][_0x19d8ec('0xcd2')]||[{'message':_0x268ea4[_0x19d8ec('0x94f')](),'type':_0x19d8ec('0x2300')}];for(var _0x2ae942=0x0;_0x2ae942<_0x268ea4[_0x19d8ec('0x11d0')]['errors'][_0x19d8ec('0x25ae')];_0x2ae942+=0x1){_0x8a770d[_0x19d8ec('0x8c8')]({'title':_0x268ea4['data'][_0x19d8ec('0xcd2')][_0x2ae942][_0x19d8ec('0x62e')],'msg':_0x268ea4[_0x19d8ec('0x11d0')][_0x19d8ec('0xcd2')][_0x2ae942][_0x19d8ec('0x27e8')]});}}else _0x8a770d['error']({'title':_0x268ea4[_0x19d8ec('0x2833')]?_0x19d8ec('0x27f2')+_0x268ea4[_0x19d8ec('0x2833')]+_0x19d8ec('0x1b7c')+_0x268ea4[_0x19d8ec('0x1fd7')]:_0x19d8ec('0x2300'),'msg':_0x268ea4[_0x19d8ec('0x11d0')]?JSON[_0x19d8ec('0x3ad')](_0x268ea4[_0x19d8ec('0x11d0')][_0x19d8ec('0x27e8')]):_0x268ea4[_0x19d8ec('0x94f')]()});});}function _0x32f34d(){var _0xd86d77=_0x48f162;_0x57f018[_0xd86d77('0xcd2')]=[],_0x469e3f[_0xd86d77('0x1481')][_0xd86d77('0xa70')]({'id':_0x57f018[_0xd86d77('0x1481')]['id']},_0x57f018[_0xd86d77('0x1481')])['$promise'][_0xd86d77('0xe19')](function(){var _0x5571b0=_0xd86d77;_0x57f018[_0x5571b0('0x1373')]=_0x32d445()[_0x5571b0('0x65a')](_0x57f018[_0x5571b0('0x1373')],function(_0x47b0ef){var _0x623c8a=_0x5571b0;if(_0x47b0ef['id']===_0x57f018['trigger']['id'])return _0x57f018[_0x623c8a('0x1481')];else return _0x47b0ef;}),_0x8a770d[_0x5571b0('0x425')]({'title':_0x5a0880['instant'](_0x5571b0('0x14c1'))}),_0x422888(_0x57f018['triggers']);})[_0xd86d77('0x223b')](function(_0x66b556){var _0x4a9984=_0xd86d77;if(_0x66b556[_0x4a9984('0x11d0')]&&_0x66b556[_0x4a9984('0x11d0')][_0x4a9984('0xcd2')]&&_0x66b556[_0x4a9984('0x11d0')][_0x4a9984('0xcd2')][_0x4a9984('0x25ae')]){_0x57f018[_0x4a9984('0xcd2')]=_0x66b556[_0x4a9984('0x11d0')]['errors']||[{'message':_0x66b556[_0x4a9984('0x94f')](),'type':'api.trigger.update'}];for(var _0x5cd01b=0x0;_0x5cd01b<_0x66b556[_0x4a9984('0x11d0')][_0x4a9984('0xcd2')][_0x4a9984('0x25ae')];_0x5cd01b++){_0x8a770d[_0x4a9984('0x8c8')]({'title':_0x66b556[_0x4a9984('0x11d0')][_0x4a9984('0xcd2')][_0x5cd01b][_0x4a9984('0x62e')],'msg':_0x66b556['data']['errors'][_0x5cd01b][_0x4a9984('0x27e8')]});}}else _0x8a770d[_0x4a9984('0x8c8')]({'title':_0x66b556['status']?_0x4a9984('0x27f2')+_0x66b556[_0x4a9984('0x2833')]+'\x20-\x20'+_0x66b556[_0x4a9984('0x1fd7')]:_0x4a9984('0x4b0'),'msg':_0x66b556['data']?JSON[_0x4a9984('0x3ad')](_0x66b556[_0x4a9984('0x11d0')][_0x4a9984('0x27e8')]):_0x66b556[_0x4a9984('0x94f')]()});});}function _0x51ba08(_0x243084){var _0x42545f=_0x48f162;_0x57f018['errors']=[];var _0x509f40=_0x5ddbb9[_0x42545f('0xa5')]({'skipHide':!![]})[_0x42545f('0x13e4')](_0x5a0880[_0x42545f('0x2159')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE'))[_0x42545f('0xd0')](_0x5a0880[_0x42545f('0x2159')](_0x42545f('0x1dcc'),{'name':_0x57f018[_0x42545f('0x1481')][_0x42545f('0x2623')]}))[_0x42545f('0x4d1')](_0x42545f('0x16c4'))['ok'](_0x5a0880[_0x42545f('0x2159')](_0x42545f('0x185a')))[_0x42545f('0x2c1')](_0x5a0880[_0x42545f('0x2159')](_0x42545f('0x717')))[_0x42545f('0x1345')](_0x243084);_0x5ddbb9[_0x42545f('0x26b2')](_0x509f40)[_0x42545f('0xe19')](function(){var _0x5e5252=_0x42545f;_0x469e3f[_0x5e5252('0x1481')][_0x5e5252('0x229e')]({'id':_0x57f018[_0x5e5252('0x1481')]['id']})[_0x5e5252('0xe59')][_0x5e5252('0xe19')](function(){var _0x2cb6d4=_0x5e5252;_0x57f018[_0x2cb6d4('0x1373')]=_0x32d445()[_0x2cb6d4('0x2891')](_0x57f018[_0x2cb6d4('0x1373')],function(_0x727988){var _0x204a60=_0x2cb6d4;return _0x727988['id']!==_0x57f018[_0x204a60('0x1481')]['id'];}),_0x8a770d[_0x2cb6d4('0x425')]({'title':_0x5a0880[_0x2cb6d4('0x2159')](_0x2cb6d4('0x146e'))}),_0x422888(_0x57f018[_0x2cb6d4('0x1373')]);})[_0x5e5252('0x223b')](function(_0x584180){var _0x590a79=_0x5e5252;if(_0x584180[_0x590a79('0x11d0')]&&_0x584180[_0x590a79('0x11d0')]['errors']&&_0x584180[_0x590a79('0x11d0')]['errors'][_0x590a79('0x25ae')]){_0x57f018['errors']=_0x584180[_0x590a79('0x11d0')]['errors']||[{'message':_0x584180[_0x590a79('0x94f')](),'type':_0x590a79('0x1bc2')}];for(var _0x5e36ad=0x0;_0x5e36ad<_0x584180[_0x590a79('0x11d0')][_0x590a79('0xcd2')][_0x590a79('0x25ae')];_0x5e36ad++){_0x8a770d[_0x590a79('0x8c8')]({'title':_0x584180[_0x590a79('0x11d0')][_0x590a79('0xcd2')][_0x5e36ad][_0x590a79('0x62e')],'msg':_0x584180[_0x590a79('0x11d0')][_0x590a79('0xcd2')][_0x5e36ad][_0x590a79('0x27e8')]});}}else _0x8a770d[_0x590a79('0x8c8')]({'title':_0x584180['status']?'API:'+_0x584180[_0x590a79('0x2833')]+_0x590a79('0x1b7c')+_0x584180[_0x590a79('0x1fd7')]:'api.trigger.delete','msg':_0x584180[_0x590a79('0x11d0')]?JSON['stringify'](_0x584180[_0x590a79('0x11d0')][_0x590a79('0x27e8')]):_0x584180[_0x590a79('0x27e8')]||_0x584180['toString']()});});},function(){});}function _0x422888(_0xc5f37e){var _0x5d9016=_0x48f162;_0x5ddbb9[_0x5d9016('0x11ed')](_0xc5f37e);}}const _0x17e626=_0x4e1205,_0x2b2028=_0x59426a['p']+_0xb635d2('0xc3b');_0x1b97eb[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$translate','$timeout','$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x1b97eb(_0x1cea0a,_0x1725a9,_0xa3b5d5,_0x196bbc,_0x19ae2f,_0x1c71e7,_0x5a9141,_0x14dc9a){var _0x356eeb=_0xb635d2,_0x5f0fd7=this;_0x5f0fd7[_0x356eeb('0x15a5')]=_0x14dc9a[_0x356eeb('0x1ef8')](),_0x5f0fd7[_0x356eeb('0x1481')]={},_0x5f0fd7['triggerActions']={'count':0x0,'rows':[]},_0x5f0fd7['selectedTriggerActions']=[],_0x5f0fd7[_0x356eeb('0xa16')]={'fields':_0x356eeb('0x91f'),'limit':0xa,'page':0x1},_0x5f0fd7['integrationTypes']={'zendesk':_0x356eeb('0x1cb5'),'salesforce':_0x356eeb('0x24e0'),'sugarcrm':_0x356eeb('0xb95'),'freshdesk':_0x356eeb('0x1133'),'desk':_0x356eeb('0x16ef'),'zoho':_0x356eeb('0x247f'),'vtiger':'vTiger','dynamics365':_0x356eeb('0xa55'),'servicenow':_0x356eeb('0x15f2'),'freshsales':_0x356eeb('0x1ae')},_0x5f0fd7[_0x356eeb('0x1cac')]={0x0:_0x356eeb('0xc83'),0x1:'CTI\x20URL',0x2:'Windows\x20App'},_0x5f0fd7[_0x356eeb('0x888')]=_0x182a2b,_0x5f0fd7[_0x356eeb('0x425')]=_0x17b2df,_0x5f0fd7[_0x356eeb('0x25de')]=_0x1fdacc,_0x5f0fd7[_0x356eeb('0x1af0')]=_0x2f1f1a,_0x5f0fd7[_0x356eeb('0xc0a')]=_0x48ba4a,_0x5f0fd7[_0x356eeb('0x126c')]=_0xb6bb40,_0x5f0fd7[_0x356eeb('0x1904')]=_0x5d183f;function _0x182a2b(_0x3042a4,_0xd4ea4c){var _0x405ae2=_0x356eeb;_0x5f0fd7['trigger']=_0x3042a4,_0x5f0fd7[_0x405ae2('0xb3d')]=typeof _0xd4ea4c!==_0x405ae2('0x1143')?_0xd4ea4c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5f0fd7[_0x405ae2('0xa16')][_0x405ae2('0x241')]=_0x5f0fd7[_0x405ae2('0x1481')]['id'],_0x5f0fd7[_0x405ae2('0xa16')]['id']=_0x5f0fd7[_0x405ae2('0x1481')]['id'],_0x1fdacc();}function _0xf56997(){var _0x2380db=_0x356eeb;_0x14dc9a[_0x2380db('0x1da3')]()?_0x5a9141[_0x2380db('0x1bbd')][_0x2380db('0x22d5')]({'fields':'id,name','sort':_0x2380db('0x2623'),'nolimit':_0x2380db('0x2206')})[_0x2380db('0xe59')]['then'](function(_0x497856){var _0x59a918=_0x2380db;_0x5f0fd7[_0x59a918('0x9f8')]=_0x497856['rows']||[];})['catch'](function(_0x27dd1f){var _0x2c832f=_0x2380db;_0x1c71e7[_0x2c832f('0x8c8')]({'title':_0x27dd1f['status']?_0x2c832f('0x27f2')+_0x27dd1f[_0x2c832f('0x2833')]+_0x2c832f('0x1b7c')+_0x27dd1f[_0x2c832f('0x1fd7')]:_0x2c832f('0x2012'),'msg':_0x27dd1f[_0x2c832f('0x11d0')]?JSON[_0x2c832f('0x3ad')](_0x27dd1f[_0x2c832f('0x11d0')]):_0x27dd1f[_0x2c832f('0x94f')]()});}):_0x5a9141[_0x2380db('0x1bbd')][_0x2380db('0x22d5')]({'fields':_0x2380db('0x104'),'sort':'name','nolimit':'true'})[_0x2380db('0xe59')]['then'](function(_0x3f0f17){var _0x12954d=_0x2380db;_0x5f0fd7[_0x12954d('0x9f8')]=_0x3f0f17[_0x12954d('0x16a7')]||[];})['then'](function(){var _0x40b4ca=_0x2380db;return _0x5a9141[_0x40b4ca('0xb59')][_0x40b4ca('0x22d5')]({'userProfileId':_0x5f0fd7['currentUser'][_0x40b4ca('0x1d04')],'sectionId':0x12d})[_0x40b4ca('0xe59')];})[_0x2380db('0xe19')](function(_0x1a59f2){var _0x54a2a4=_0x2380db,_0x1a17c0=_0x1a59f2&&_0x1a59f2[_0x54a2a4('0x16a7')]?_0x1a59f2[_0x54a2a4('0x16a7')][0x0]:null;if(!_0x1a17c0){var _0x44864d=[],_0x5114a0=[];_0x5f0fd7[_0x54a2a4('0x110b')][_0x54a2a4('0x16a7')][_0x54a2a4('0x1d7e')](function(_0x5dc9a0){var _0x1a1af0=_0x54a2a4;if(_0x5dc9a0['action']===_0x1a1af0('0x1de1')){var _0x16b1bd=_0x32d445()[_0x1a1af0('0xf15')](_0x5f0fd7['lists'],{'id':Number(_0x5dc9a0[_0x1a1af0('0x1cbe')])});_0x5114a0[_0x1a1af0('0xb76')](_0x16b1bd);}});for(var _0x272ff9=0x0;_0x272ff9<_0x5f0fd7['lists'][_0x54a2a4('0x25ae')];_0x272ff9++){var _0xa9a67=_0x32d445()[_0x54a2a4('0x201a')](_0x5114a0,{'id':_0x5f0fd7['lists'][_0x272ff9]['id']});_0xa9a67&&(_0x5f0fd7[_0x54a2a4('0x9f8')][_0x272ff9]['canSelect']=![],_0x44864d['push'](_0x5f0fd7[_0x54a2a4('0x9f8')][_0x272ff9]));}_0x5f0fd7[_0x54a2a4('0x9f8')]=_0x44864d;}else{if(!_0x1a17c0[_0x54a2a4('0x11fd')])return _0x5a9141['userProfileResource'][_0x54a2a4('0x22d5')]({'sectionId':_0x1a17c0['id']})[_0x54a2a4('0xe59')][_0x54a2a4('0xe19')](function(_0x16ac81){var _0x434b9e=_0x54a2a4,_0x561ac4=_0x32d445()[_0x434b9e('0x65a')](_0x16ac81[_0x434b9e('0x16a7')],function(_0x3e5351){var _0x27d776=_0x434b9e;return _0x32d445()[_0x27d776('0xf15')](_0x5f0fd7['lists'],{'id':_0x3e5351['resourceId']});}),_0xce86b9=null;_0xce86b9=[],_0x5f0fd7[_0x434b9e('0x110b')][_0x434b9e('0x16a7')]['forEach'](function(_0x4e3b6d){var _0x26b785=_0x434b9e;if(_0x4e3b6d[_0x26b785('0xf8')]==='contactManager'){var _0x8a0893=_0x32d445()[_0x26b785('0xf15')](_0x5f0fd7[_0x26b785('0x9f8')],{'id':Number(_0x4e3b6d['data1'])});_0xce86b9[_0x26b785('0xb76')](_0x8a0893);}}),!_0x32d445()[_0x434b9e('0x14b4')](_0xce86b9)&&_0xce86b9[_0x434b9e('0x1d7e')](function(_0x3ce59e){var _0x389853=_0x434b9e;if(!_0x32d445()[_0x389853('0x201a')](_0x561ac4,['id',_0x3ce59e['id']])){var _0x45e48c=_0x32d445()['find'](_0x5f0fd7['lists'],{'id':_0x3ce59e['id']});_0x45e48c['canSelect']=![],_0x561ac4[_0x389853('0xb76')](_0x45e48c);}}),_0x5f0fd7[_0x434b9e('0x9f8')]=_0x561ac4;});}})[_0x2380db('0x223b')](function(_0x52dee9){var _0x16d791=_0x2380db;_0x1c71e7[_0x16d791('0x8c8')]({'title':_0x52dee9[_0x16d791('0x2833')]?_0x16d791('0x27f2')+_0x52dee9[_0x16d791('0x2833')]+_0x16d791('0x1b7c')+_0x52dee9[_0x16d791('0x1fd7')]:_0x16d791('0xd65'),'msg':_0x52dee9['data']?JSON[_0x16d791('0x3ad')](_0x52dee9[_0x16d791('0x11d0')]):_0x52dee9[_0x16d791('0x94f')]()});});}function _0x26d87d(){var _0x139526=_0x356eeb,_0x5632d8=_0x32d445()(_0x5f0fd7[_0x139526('0x110b')][_0x139526('0x16a7')])[_0x139526('0x65a')](function(_0x3f8857){var _0x119c4d=_0x139526;return _0x3f8857['action']===_0x119c4d('0x2223')?_0x3f8857['data1']:undefined;})[_0x139526('0x289b')]()[_0x139526('0x735')]()[_0x139526('0x2')]();_0x5632d8[_0x139526('0x1d7e')](function(_0x5693c3){var _0x1f59d3=_0x139526,_0x2c7509=_0x5693c3+'Accounts';if(!_0x5f0fd7[_0x2c7509]){var _0x1c7025=_0x1f59d3('0xf5f')+_0x32d445()[_0x1f59d3('0x1df2')](_0x5693c3)+_0x1f59d3('0x1e4e');_0x5a9141[_0x1c7025][_0x1f59d3('0x22d5')]({'fields':_0x1f59d3('0x104'),'sort':'id','nolimit':_0x1f59d3('0x2206')})['$promise'][_0x1f59d3('0xe19')](function(_0x290022){var _0x9f48ff=_0x1f59d3;_0x5f0fd7[_0x2c7509]=_0x290022[_0x9f48ff('0x16a7')]||[];})[_0x1f59d3('0x223b')](function(_0x467abc){var _0x2dd38a=_0x1f59d3;_0x1c71e7[_0x2dd38a('0x8c8')]({'title':_0x467abc['status']?_0x2dd38a('0x27f2')+_0x467abc['status']+_0x2dd38a('0x1b7c')+_0x467abc[_0x2dd38a('0x1fd7')]:_0x2dd38a('0x1e13')+_0x2c7509[_0x2dd38a('0x25f7')]()+_0x2dd38a('0x14e7'),'msg':_0x467abc[_0x2dd38a('0x11d0')]?JSON[_0x2dd38a('0x3ad')](_0x467abc[_0x2dd38a('0x11d0')]):_0x467abc[_0x2dd38a('0x94f')]()});});}});}function _0x107e5a(){var _0xf14c6c=_0x356eeb;_0x14dc9a[_0xf14c6c('0x1da3')]()?_0x5a9141[_0xf14c6c('0x6c7')][_0xf14c6c('0x22d5')]({'fields':_0xf14c6c('0x104'),'sort':_0xf14c6c('0x2623'),'nolimit':_0xf14c6c('0x2206')})['$promise'][_0xf14c6c('0xe19')](function(_0x19e44c){var _0x2f8965=_0xf14c6c;_0x5f0fd7[_0x2f8965('0x1d39')]=_0x19e44c['rows']||[];})[_0xf14c6c('0x223b')](function(_0x1d4f95){var _0x4a64fa=_0xf14c6c;_0x1c71e7[_0x4a64fa('0x8c8')]({'title':_0x1d4f95[_0x4a64fa('0x2833')]?_0x4a64fa('0x27f2')+_0x1d4f95['status']+'\x20-\x20'+_0x1d4f95[_0x4a64fa('0x1fd7')]:'SYSTEM:GET_PROJECTS','msg':_0x1d4f95[_0x4a64fa('0x11d0')]?JSON[_0x4a64fa('0x3ad')](_0x1d4f95[_0x4a64fa('0x11d0')]):_0x1d4f95[_0x4a64fa('0x94f')]()});}):_0x5a9141[_0xf14c6c('0x6c7')][_0xf14c6c('0x22d5')]({'fields':_0xf14c6c('0x104'),'sort':_0xf14c6c('0x2623'),'nolimit':'true'})[_0xf14c6c('0xe59')][_0xf14c6c('0xe19')](function(_0x2d3281){var _0xdc6482=_0xf14c6c;_0x5f0fd7[_0xdc6482('0x1d39')]=_0x2d3281[_0xdc6482('0x16a7')]||[];})[_0xf14c6c('0xe19')](function(){var _0x209438=_0xf14c6c;return _0x5a9141[_0x209438('0xb59')]['get']({'userProfileId':_0x5f0fd7[_0x209438('0x15a5')][_0x209438('0x1d04')],'sectionId':0x6a5})[_0x209438('0xe59')];})[_0xf14c6c('0xe19')](function(_0x565168){var _0x446b8c=_0xf14c6c,_0x5e43d0=_0x565168&&_0x565168[_0x446b8c('0x16a7')]?_0x565168[_0x446b8c('0x16a7')][0x0]:null;if(!_0x5e43d0){var _0x2dd32a=[],_0x333123=[];_0x5f0fd7[_0x446b8c('0x110b')][_0x446b8c('0x16a7')][_0x446b8c('0x1d7e')](function(_0x2b2e5f){var _0x2af660=_0x446b8c;if(_0x2b2e5f[_0x2af660('0xf8')]===_0x2af660('0x1c47')){var _0x25f7e4=_0x32d445()[_0x2af660('0xf15')](_0x5f0fd7[_0x2af660('0x1d39')],{'id':Number(_0x2b2e5f[_0x2af660('0x1cbe')])});_0x333123['push'](_0x25f7e4);}});for(var _0x37fd24=0x0;_0x37fd24<_0x5f0fd7[_0x446b8c('0x1d39')][_0x446b8c('0x25ae')];_0x37fd24++){var _0x5aa5e1=_0x32d445()[_0x446b8c('0x201a')](_0x333123,{'id':_0x5f0fd7[_0x446b8c('0x1d39')][_0x37fd24]['id']});_0x5aa5e1&&(_0x5f0fd7[_0x446b8c('0x1d39')][_0x37fd24][_0x446b8c('0x1e9d')]=![],_0x2dd32a[_0x446b8c('0xb76')](_0x5f0fd7[_0x446b8c('0x1d39')][_0x37fd24]));}_0x5f0fd7[_0x446b8c('0x1d39')]=_0x2dd32a;}else{if(!_0x5e43d0[_0x446b8c('0x11fd')])return _0x5a9141['userProfileResource']['get']({'sectionId':_0x5e43d0['id']})['$promise'][_0x446b8c('0xe19')](function(_0x116dc9){var _0x5d2828=_0x446b8c,_0x1b5ff1=_0x32d445()['map'](_0x116dc9['rows'],function(_0x453a80){var _0x5829aa=a0_0x5325;return _0x32d445()[_0x5829aa('0xf15')](_0x5f0fd7[_0x5829aa('0x1d39')],{'id':_0x453a80['resourceId']});}),_0x19016e=null;_0x19016e=[],_0x5f0fd7[_0x5d2828('0x110b')]['rows'][_0x5d2828('0x1d7e')](function(_0x452f42){var _0x5041e9=_0x5d2828;if(_0x452f42[_0x5041e9('0xf8')]==='jscripty'){var _0x32d550=_0x32d445()[_0x5041e9('0xf15')](_0x5f0fd7[_0x5041e9('0x1d39')],{'id':Number(_0x452f42[_0x5041e9('0x1cbe')])});_0x19016e[_0x5041e9('0xb76')](_0x32d550);}}),!_0x32d445()[_0x5d2828('0x14b4')](_0x19016e)&&_0x19016e[_0x5d2828('0x1d7e')](function(_0x1ac30a){var _0xae3a4d=_0x5d2828;if(!_0x32d445()[_0xae3a4d('0x201a')](_0x1b5ff1,['id',_0x1ac30a['id']])){var _0x2ff7ac=_0x32d445()[_0xae3a4d('0xf15')](_0x5f0fd7[_0xae3a4d('0x1d39')],{'id':_0x1ac30a['id']});_0x2ff7ac['canSelect']=![],_0x1b5ff1[_0xae3a4d('0xb76')](_0x2ff7ac);}}),_0x5f0fd7[_0x5d2828('0x1d39')]=_0x1b5ff1;});}})[_0xf14c6c('0x223b')](function(_0x1362a3){var _0x5b7d51=_0xf14c6c;_0x1c71e7[_0x5b7d51('0x8c8')]({'title':_0x1362a3[_0x5b7d51('0x2833')]?'API:'+_0x1362a3[_0x5b7d51('0x2833')]+_0x5b7d51('0x1b7c')+_0x1362a3[_0x5b7d51('0x1fd7')]:_0x5b7d51('0xa18'),'msg':_0x1362a3[_0x5b7d51('0x11d0')]?JSON[_0x5b7d51('0x3ad')](_0x1362a3[_0x5b7d51('0x11d0')]):_0x1362a3[_0x5b7d51('0x94f')]()});});}function _0x5bdd45(){var _0x45d060=_0x356eeb;_0x14dc9a[_0x45d060('0x1da3')]()?_0x5a9141[_0x45d060('0x12e2')]['get']({'fields':'id,name','sort':'id','nolimit':'true'})[_0x45d060('0xe59')][_0x45d060('0xe19')](function(_0xfe3d53){var _0x587ddb=_0x45d060;_0x5f0fd7['templates']=_0xfe3d53[_0x587ddb('0x16a7')]||[];})[_0x45d060('0x223b')](function(_0xe65701){var _0x5d83db=_0x45d060;_0x1c71e7[_0x5d83db('0x8c8')]({'title':_0xe65701['status']?_0x5d83db('0x27f2')+_0xe65701['status']+_0x5d83db('0x1b7c')+_0xe65701[_0x5d83db('0x1fd7')]:_0x5d83db('0x37e'),'msg':_0xe65701[_0x5d83db('0x11d0')]?JSON[_0x5d83db('0x3ad')](_0xe65701[_0x5d83db('0x11d0')]):_0xe65701['toString']()});}):_0x5a9141[_0x45d060('0x12e2')][_0x45d060('0x22d5')]({'fields':_0x45d060('0x104'),'sort':'id','nolimit':_0x45d060('0x2206')})[_0x45d060('0xe59')]['then'](function(_0x111037){var _0x5992c3=_0x45d060;_0x5f0fd7[_0x5992c3('0x702')]=_0x111037['rows']||[];})[_0x45d060('0xe19')](function(){var _0x1005c1=_0x45d060;return _0x5a9141[_0x1005c1('0xb59')][_0x1005c1('0x22d5')]({'userProfileId':_0x5f0fd7[_0x1005c1('0x15a5')][_0x1005c1('0x1d04')],'sectionId':0x3f1})[_0x1005c1('0xe59')];})['then'](function(_0x203026){var _0x1fec43=_0x45d060,_0xa26a1e=_0x203026&&_0x203026[_0x1fec43('0x16a7')]?_0x203026[_0x1fec43('0x16a7')][0x0]:null;if(!_0xa26a1e){var _0x29dffd=[],_0x519749=[];_0x5f0fd7[_0x1fec43('0x110b')][_0x1fec43('0x16a7')]['forEach'](function(_0x52740d){var _0x46f64d=_0x1fec43;if(_0x32d445()[_0x46f64d('0x1c43')]([_0x46f64d('0x19c7'),'browser'],_0x52740d[_0x46f64d('0xf8')])){var _0x315d4b=_0x32d445()[_0x46f64d('0xf15')](_0x5f0fd7[_0x46f64d('0x702')],{'id':Number(_0x52740d[_0x46f64d('0x153b')])});_0x519749[_0x46f64d('0xb76')](_0x315d4b);}});for(var _0x1ec128=0x0;_0x1ec128<_0x5f0fd7[_0x1fec43('0x702')]['length'];_0x1ec128++){var _0x5d7395=_0x32d445()[_0x1fec43('0x201a')](_0x519749,{'id':_0x5f0fd7[_0x1fec43('0x702')][_0x1ec128]['id']});_0x5d7395&&(_0x5f0fd7[_0x1fec43('0x702')][_0x1ec128][_0x1fec43('0x1e9d')]=![],_0x29dffd[_0x1fec43('0xb76')](_0x5f0fd7[_0x1fec43('0x702')][_0x1ec128]));}_0x5f0fd7[_0x1fec43('0x702')]=_0x29dffd;}else{if(!_0xa26a1e[_0x1fec43('0x11fd')])return _0x5a9141[_0x1fec43('0xd49')]['get']({'sectionId':_0xa26a1e['id']})[_0x1fec43('0xe59')][_0x1fec43('0xe19')](function(_0x251733){var _0x5a40e4=_0x1fec43,_0x150edc=_0x32d445()[_0x5a40e4('0x65a')](_0x251733[_0x5a40e4('0x16a7')],function(_0x5c190c){var _0x1cebec=_0x5a40e4;return _0x32d445()['find'](_0x5f0fd7['templates'],{'id':_0x5c190c[_0x1cebec('0x1104')]});}),_0xbd8c64=null;_0xbd8c64=[],_0x5f0fd7['triggerActions'][_0x5a40e4('0x16a7')][_0x5a40e4('0x1d7e')](function(_0x37bec1){var _0x5b13ca=_0x5a40e4;if(_0x32d445()[_0x5b13ca('0x1c43')]([_0x5b13ca('0x19c7'),'browser'],_0x37bec1[_0x5b13ca('0xf8')])){var _0x58c31e=_0x32d445()['find'](_0x5f0fd7[_0x5b13ca('0x702')],{'id':Number(_0x37bec1[_0x5b13ca('0x153b')])});_0xbd8c64['push'](_0x58c31e);}}),!_0x32d445()[_0x5a40e4('0x14b4')](_0xbd8c64)&&_0xbd8c64[_0x5a40e4('0x1d7e')](function(_0x3aea51){var _0x31141e=_0x5a40e4;if(!_0x32d445()[_0x31141e('0x201a')](_0x150edc,['id',_0x3aea51['id']])){var _0x3c2abd=_0x32d445()[_0x31141e('0xf15')](_0x5f0fd7[_0x31141e('0x702')],{'id':_0x3aea51['id']});_0x3c2abd['canSelect']=![],_0x150edc[_0x31141e('0xb76')](_0x3c2abd);}}),_0x5f0fd7[_0x5a40e4('0x702')]=_0x150edc;});}})[_0x45d060('0x223b')](function(_0x491d30){var _0xec301e=_0x45d060;_0x1c71e7[_0xec301e('0x8c8')]({'title':_0x491d30[_0xec301e('0x2833')]?_0xec301e('0x27f2')+_0x491d30['status']+_0xec301e('0x1b7c')+_0x491d30[_0xec301e('0x1fd7')]:_0xec301e('0x37e'),'msg':_0x491d30[_0xec301e('0x11d0')]?JSON['stringify'](_0x491d30[_0xec301e('0x11d0')]):_0x491d30['toString']()});});}function _0x59a5d6(){var _0x5db201=_0x356eeb;if(_0x32d445()[_0x5db201('0x201a')](_0x5f0fd7['triggerActions'][_0x5db201('0x16a7')],[_0x5db201('0xf8'),'contactManager'])){if(!_0x5f0fd7[_0x5db201('0x9f8')])_0xf56997();}_0x32d445()[_0x5db201('0x201a')](_0x5f0fd7[_0x5db201('0x110b')][_0x5db201('0x16a7')],[_0x5db201('0xf8'),_0x5db201('0x2223')])&&_0x26d87d();if(_0x32d445()[_0x5db201('0x201a')](_0x5f0fd7[_0x5db201('0x110b')][_0x5db201('0x16a7')],function(_0x3261e1){var _0x181ff0=_0x5db201;return _0x32d445()['includes']([_0x181ff0('0x19c7'),_0x181ff0('0x1ef')],_0x3261e1[_0x181ff0('0xf8')]);})){if(!_0x5f0fd7['templates'])_0x5bdd45();}if(_0x32d445()[_0x5db201('0x201a')](_0x5f0fd7[_0x5db201('0x110b')]['rows'],['action',_0x5db201('0x1c47')])){if(!_0x5f0fd7[_0x5db201('0x1d39')])_0x107e5a();}}function _0x17b2df(_0x48c980){_0x5f0fd7['triggerActions']=_0x48c980||{'count':0x0,'rows':[]},_0x59a5d6();}function _0x1fdacc(){var _0x5655dc=_0x356eeb;_0x5f0fd7[_0x5655dc('0xa16')][_0x5655dc('0xab0')]=(_0x5f0fd7[_0x5655dc('0xa16')][_0x5655dc('0xc08')]-0x1)*_0x5f0fd7[_0x5655dc('0xa16')][_0x5655dc('0x1b6d')],_0x5f0fd7[_0x5655dc('0x9c8')]=_0x5a9141[_0x5655dc('0x1481')][_0x5655dc('0x62c')](_0x5f0fd7[_0x5655dc('0xa16')],_0x17b2df)[_0x5655dc('0xe59')];}function _0x2f1f1a(_0x563b4d,_0x3e40f6){var _0x15392b=_0x356eeb;_0x196bbc[_0x15392b('0x26b2')]({'controller':'CreateOrEditActionDialogController','controllerAs':'vm','templateUrl':_0x2b2028,'parent':angular[_0x15392b('0x24a1')](_0x19ae2f[_0x15392b('0x19b2')]),'targetEvent':_0x563b4d,'clickOutsideToClose':!![],'locals':{'trigger':_0x5f0fd7[_0x15392b('0x1481')],'action':_0x3e40f6,'actions':_0x5f0fd7[_0x15392b('0x110b')][_0x15392b('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x5f0fd7[_0x15392b('0xb3d')]}})['then'](function(_0x52793c){var _0x51052e=_0x15392b;_0x52793c&&(_0x5f0fd7[_0x51052e('0x110b')]={'count':_0x52793c['length'],'rows':_0x52793c},_0x59a5d6());});}function _0xb6bb40(_0x45d165,_0x4a645e){var _0x16871c=_0x356eeb,_0x42c6d5=_0x196bbc[_0x16871c('0xa5')]()[_0x16871c('0x13e4')](_0x1725a9['instant'](_0x16871c('0x1f43')))[_0x16871c('0x4d1')](_0x16871c('0x1747'))[_0x16871c('0x1345')](_0x4a645e)['ok']('OK')[_0x16871c('0x2c1')](_0x1725a9[_0x16871c('0x2159')](_0x16871c('0x717')));_0x196bbc[_0x16871c('0x26b2')](_0x42c6d5)[_0x16871c('0xe19')](function(){_0xca8116(_0x45d165,!![]);});}function _0xca8116(_0x1eb1d6,_0x19db2){var _0x187a1c=_0x356eeb;_0x5a9141[_0x187a1c('0xf8')][_0x187a1c('0x229e')]({'id':_0x1eb1d6['id']})['$promise'][_0x187a1c('0xe19')](function(){var _0x52c35d=_0x187a1c;_0x1fdacc(),_0x19db2&&_0x1c71e7[_0x52c35d('0x425')]({'title':_0x1725a9[_0x52c35d('0x2159')]('TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE')});})[_0x187a1c('0x223b')](function(_0x3fedd9){var _0x56e5f6=_0x187a1c;if(_0x3fedd9[_0x56e5f6('0x11d0')]&&_0x3fedd9[_0x56e5f6('0x11d0')][_0x56e5f6('0xcd2')]&&_0x3fedd9[_0x56e5f6('0x11d0')][_0x56e5f6('0xcd2')][_0x56e5f6('0x25ae')]){_0x5f0fd7[_0x56e5f6('0xcd2')]=_0x3fedd9[_0x56e5f6('0x11d0')][_0x56e5f6('0xcd2')]||[{'message':_0x3fedd9[_0x56e5f6('0x94f')](),'type':'SYSTEM:GETtrigger'}];for(var _0x247f9e=0x0;_0x247f9e<_0x3fedd9['data'][_0x56e5f6('0xcd2')][_0x56e5f6('0x25ae')];_0x247f9e++){_0x1c71e7['error']({'title':_0x3fedd9[_0x56e5f6('0x11d0')][_0x56e5f6('0xcd2')][_0x247f9e]['type'],'msg':_0x3fedd9[_0x56e5f6('0x11d0')]['errors'][_0x247f9e][_0x56e5f6('0x27e8')]});}}else _0x1c71e7['error']({'title':_0x3fedd9[_0x56e5f6('0x2833')]?'API:'+_0x3fedd9[_0x56e5f6('0x2833')]+_0x56e5f6('0x1b7c')+_0x3fedd9[_0x56e5f6('0x1fd7')]:_0x56e5f6('0x207f'),'msg':_0x3fedd9[_0x56e5f6('0x11d0')]?JSON[_0x56e5f6('0x3ad')](_0x3fedd9['data'][_0x56e5f6('0x27e8')]):_0x3fedd9[_0x56e5f6('0x27e8')]||_0x3fedd9[_0x56e5f6('0x94f')]()});});}function _0x48ba4a(){var _0x37600a=_0x356eeb,_0x5b82a2=angular[_0x37600a('0x89')](_0x5f0fd7[_0x37600a('0x1281')]);return _0x5f0fd7[_0x37600a('0x1281')]=[],_0x5b82a2;}function _0x5d183f(_0x392e91){var _0x4fd767=_0x356eeb,_0x39fe8b=_0x196bbc[_0x4fd767('0xa5')]()[_0x4fd767('0x13e4')](_0x1725a9[_0x4fd767('0x2159')](_0x4fd767('0x20ed')))[_0x4fd767('0xd0')](_0x1725a9[_0x4fd767('0x2159')]('TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE',{'total':_0x5f0fd7['selectedTriggerActions'][_0x4fd767('0x25ae')]}))[_0x4fd767('0x4d1')]('Delete\x20actions')[_0x4fd767('0x1345')](_0x392e91)['ok']('OK')['cancel'](_0x1725a9[_0x4fd767('0x2159')](_0x4fd767('0x717')));_0x196bbc['show'](_0x39fe8b)[_0x4fd767('0xe19')](function(){var _0x588fe1=_0x4fd767;_0x5f0fd7[_0x588fe1('0x1281')][_0x588fe1('0x1d7e')](function(_0x1dfb2f){_0xca8116(_0x1dfb2f);}),_0x5f0fd7[_0x588fe1('0x1281')]=[],_0x1c71e7[_0x588fe1('0x425')]({'title':_0x1725a9[_0x588fe1('0x2159')](_0x588fe1('0x1e1a'))});});}var _0x239146=!![],_0x21119d=0x1;_0x1cea0a[_0x356eeb('0x107')]('vm_dc.query.filter',function(_0x322a10,_0xf52d46){var _0x3adf2c=_0x356eeb;_0x239146?_0xa3b5d5(function(){_0x239146=![];}):(!_0xf52d46&&(_0x21119d=_0x5f0fd7['query']['page']),_0x322a10!==_0xf52d46&&(_0x5f0fd7[_0x3adf2c('0xa16')][_0x3adf2c('0xc08')]=0x1),!_0x322a10&&(_0x5f0fd7[_0x3adf2c('0xa16')][_0x3adf2c('0xc08')]=_0x21119d),_0x1fdacc());});}const _0x5db86b=_0x1b97eb;_0xc6209b[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),_0xb635d2('0x2493'),'toasty','actions',_0xb635d2('0xf8'),_0xb635d2('0x1481'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0xc6209b(_0x225a14,_0x302d67,_0x3e8c22,_0x1d7cdd,_0x1066aa,_0x21a060,_0x5942a5,_0x41ceaa,_0xef87fd,_0x16478c,_0x4ec57c,_0x3f9ea5){var _0x5718ca=_0xb635d2,_0x240932=this;_0x240932[_0x5718ca('0x15a5')]=_0xef87fd['getCurrentUser'](),_0x240932[_0x5718ca('0xf8')]=angular[_0x5718ca('0x89')](_0x21a060),_0x240932[_0x5718ca('0xc06')]=angular[_0x5718ca('0x89')](_0x1066aa),_0x240932[_0x5718ca('0x22f1')]=_0x4ec57c,_0x240932[_0x5718ca('0x5c1')]=_0x16478c,_0x240932[_0x5718ca('0xb3d')]=_0x3f9ea5,_0x240932[_0x5718ca('0x54a')]=![],_0x240932['errors']=[],_0x240932[_0x5718ca('0x1481')]=angular[_0x5718ca('0x89')](_0x5942a5);!_0x240932[_0x5718ca('0xf8')]&&(_0x240932['action']={},_0x240932['newAction']=!![]);_0x240932[_0x5718ca('0xf8')][_0x5718ca('0x241')]=_0x225a14[_0x5718ca('0x2ef')]['id']||undefined,_0x240932[_0x5718ca('0x21c0')]=[_0x5718ca('0x1ef5'),_0x5718ca('0x23a0'),'fax'],_0x240932[_0x5718ca('0x21da')]=_0x48a5ce,_0x240932[_0x5718ca('0x1cdd')]=_0x35e840,_0x240932[_0x5718ca('0x1e5c')]=_0x677a48,_0x240932[_0x5718ca('0x1b4c')]=_0x922f82,_0x240932[_0x5718ca('0x79e')]=_0xea663b,_0x240932[_0x5718ca('0x271a')]=_0x52a858,_0x240932[_0x5718ca('0xf22')]=_0x2bcc60,_0x240932[_0x5718ca('0x1361')]=_0x25da0a,_0x240932['onListSelection']=_0x4b77a2,_0x240932[_0x5718ca('0x40b')]=_0x424ad7,_0x240932[_0x5718ca('0x1cae')]=_0x151486,_0x240932['onIntegrationAccountSelection']=_0x5cfbb4,_0x240932[_0x5718ca('0x2584')]=_0x16843f;function _0x922f82(){var _0x408692=_0x5718ca;_0xef87fd[_0x408692('0x1ccb')]('Integrations')['then'](function(_0x2afc97){var _0x10163f=_0x408692;_0x240932[_0x10163f('0x210a')]=_0x2afc97;})[_0x408692('0x223b')](function(_0x5bb8bd){var _0x50524a=_0x408692;_0x1d7cdd[_0x50524a('0x8c8')]({'title':_0x5bb8bd[_0x50524a('0x2833')]?_0x50524a('0x27f2')+_0x5bb8bd['status']+_0x50524a('0x1b7c')+_0x5bb8bd['statusText']:'SYSTEM:GET_MODULE_PERMISSIONS','msg':_0x5bb8bd['data']?JSON[_0x50524a('0x3ad')](_0x5bb8bd[_0x50524a('0x11d0')]):_0x5bb8bd[_0x50524a('0x94f')]()});});if(_0x240932[_0x408692('0xf8')][_0x408692('0xf8')])_0x73236e();}function _0xea663b(){var _0xe4487d=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0xef87fd['hasSectionsPermissions'](_0xe4487d)['then'](function(_0x1d8c54){var _0x353b5e=a0_0x5325;_0x240932[_0x353b5e('0x64f')]=_0x32d445()[_0x353b5e('0x1d8')](_0x240932['hasSectionPermissions'],_0x1d8c54);})['catch'](function(_0x4e9bc8){var _0x2f12a9=a0_0x5325;_0x1d7cdd['error']({'title':_0x4e9bc8[_0x2f12a9('0x2833')]?'API:'+_0x4e9bc8[_0x2f12a9('0x2833')]+_0x2f12a9('0x1b7c')+_0x4e9bc8['statusText']:_0x2f12a9('0xf59'),'msg':_0x4e9bc8[_0x2f12a9('0x11d0')]?JSON['stringify'](_0x4e9bc8['data']):_0x4e9bc8[_0x2f12a9('0x94f')]()});});}function _0x52a858(){var _0x2efacf=_0x5718ca;if(!_0x240932[_0x2efacf('0x54a')])_0x341e72();}function _0x3841c7(){var _0x5f01ee=_0x5718ca;_0xef87fd['isAdmin']()?_0x41ceaa[_0x5f01ee('0x1bbd')][_0x5f01ee('0x22d5')]({'fields':_0x5f01ee('0x104'),'sort':'name','nolimit':_0x5f01ee('0x2206')})['$promise'][_0x5f01ee('0xe19')](function(_0x478f63){var _0x3ff854=_0x5f01ee;_0x240932[_0x3ff854('0x9f8')]=_0x478f63[_0x3ff854('0x16a7')]||[];})[_0x5f01ee('0x223b')](function(_0x4fe062){var _0x3f39b3=_0x5f01ee;_0x1d7cdd[_0x3f39b3('0x8c8')]({'title':_0x4fe062['status']?_0x3f39b3('0x27f2')+_0x4fe062[_0x3f39b3('0x2833')]+_0x3f39b3('0x1b7c')+_0x4fe062[_0x3f39b3('0x1fd7')]:_0x3f39b3('0x2012'),'msg':_0x4fe062['data']?JSON['stringify'](_0x4fe062['data']):_0x4fe062[_0x3f39b3('0x94f')]()});}):_0x41ceaa[_0x5f01ee('0x1bbd')][_0x5f01ee('0x22d5')]({'fields':_0x5f01ee('0x104'),'sort':_0x5f01ee('0x2623'),'nolimit':_0x5f01ee('0x2206')})[_0x5f01ee('0xe59')][_0x5f01ee('0xe19')](function(_0x1a4231){_0x240932['lists']=_0x1a4231['rows']||[];})[_0x5f01ee('0xe19')](function(){var _0x21acc1=_0x5f01ee;return _0x41ceaa['userProfileSection']['get']({'userProfileId':_0x240932[_0x21acc1('0x15a5')]['userProfileId'],'sectionId':0x12d})[_0x21acc1('0xe59')];})[_0x5f01ee('0xe19')](function(_0x6ba7f6){var _0x12d84a=_0x5f01ee,_0x2acea8=_0x6ba7f6&&_0x6ba7f6[_0x12d84a('0x16a7')]?_0x6ba7f6[_0x12d84a('0x16a7')][0x0]:null;if(!_0x2acea8){var _0x46fb2e=[],_0x4acb54=[];_0x240932[_0x12d84a('0x110b')][_0x12d84a('0x16a7')]['forEach'](function(_0x3632ee){var _0x282796=_0x12d84a;if(_0x3632ee[_0x282796('0xf8')]===_0x282796('0x1de1')){var _0x35f4f5=_0x32d445()[_0x282796('0xf15')](_0x240932[_0x282796('0x9f8')],{'id':Number(_0x3632ee[_0x282796('0x1cbe')])});_0x4acb54[_0x282796('0xb76')](_0x35f4f5);}});for(var _0x47d72c=0x0;_0x47d72c<_0x240932['lists'][_0x12d84a('0x25ae')];_0x47d72c++){var _0x1dd660=_0x32d445()[_0x12d84a('0x201a')](_0x4acb54,{'id':_0x240932['lists'][_0x47d72c]['id']});_0x1dd660&&(_0x240932[_0x12d84a('0x9f8')][_0x47d72c][_0x12d84a('0x1e9d')]=![],_0x46fb2e[_0x12d84a('0xb76')](_0x240932['lists'][_0x47d72c]));}_0x240932[_0x12d84a('0x9f8')]=_0x46fb2e;}else{if(!_0x2acea8['autoAssociation'])return _0x41ceaa[_0x12d84a('0xd49')][_0x12d84a('0x22d5')]({'sectionId':_0x2acea8['id']})['$promise']['then'](function(_0x31a965){var _0x5c6cc7=_0x12d84a,_0x30cb8d=_0x32d445()[_0x5c6cc7('0x65a')](_0x31a965['rows'],function(_0x389907){var _0xbd8192=_0x5c6cc7;return _0x32d445()['find'](_0x240932[_0xbd8192('0x9f8')],{'id':_0x389907[_0xbd8192('0x1104')]});}),_0x35736a=null;_0x35736a=[],_0x240932[_0x5c6cc7('0x110b')][_0x5c6cc7('0x16a7')][_0x5c6cc7('0x1d7e')](function(_0x4f4cbd){var _0x2241c1=_0x5c6cc7;if(_0x4f4cbd[_0x2241c1('0xf8')]==='contactManager'){var _0x15961d=_0x32d445()[_0x2241c1('0xf15')](_0x240932['lists'],{'id':Number(_0x4f4cbd['data1'])});_0x35736a[_0x2241c1('0xb76')](_0x15961d);}}),!_0x32d445()[_0x5c6cc7('0x14b4')](_0x35736a)&&_0x35736a[_0x5c6cc7('0x1d7e')](function(_0x33001d){var _0x39c305=_0x5c6cc7;if(!_0x32d445()['some'](_0x30cb8d,['id',_0x33001d['id']])){var _0x3de49d=_0x32d445()[_0x39c305('0xf15')](_0x240932[_0x39c305('0x9f8')],{'id':_0x33001d['id']});_0x3de49d[_0x39c305('0x1e9d')]=![],_0x30cb8d['push'](_0x3de49d);}}),_0x240932['lists']=_0x30cb8d;});}})[_0x5f01ee('0x223b')](function(_0x5c1cd8){var _0x52cdd1=_0x5f01ee;_0x1d7cdd[_0x52cdd1('0x8c8')]({'title':_0x5c1cd8['status']?_0x52cdd1('0x27f2')+_0x5c1cd8['status']+_0x52cdd1('0x1b7c')+_0x5c1cd8[_0x52cdd1('0x1fd7')]:_0x52cdd1('0xd65'),'msg':_0x5c1cd8['data']?JSON[_0x52cdd1('0x3ad')](_0x5c1cd8[_0x52cdd1('0x11d0')]):_0x5c1cd8[_0x52cdd1('0x94f')]()});});}function _0x41d672(){var _0x1cb40d=_0x5718ca;_0x41ceaa[_0x1cb40d('0x1711')]['describe']({})[_0x1cb40d('0xe59')][_0x1cb40d('0xe19')](function(_0x481e1f){var _0x500d5a=_0x1cb40d;_0x240932['contactFields']=[],_0x240932['customFields']=[];var _0xb4e63b=_0x32d445()[_0x500d5a('0x1b79')](_0x481e1f['toJSON']());for(var _0x13ad13=0x0;_0x13ad13<_0xb4e63b[_0x500d5a('0x25ae')];_0x13ad13++){if(_0x32d445()[_0x500d5a('0x1c43')](_0x240932['allowedStandardFields'],_0xb4e63b[_0x13ad13][_0x500d5a('0x2127')]))_0x240932[_0x500d5a('0x268f')][_0x500d5a('0xb76')](_0xb4e63b[_0x13ad13]);else{if(_0x32d445()['startsWith'](_0xb4e63b[_0x13ad13][_0x500d5a('0x2127')],'cf_')){if(_0xb4e63b[_0x13ad13][_0x500d5a('0x261d')]['type']===_0x500d5a('0x1bc6'))_0x240932[_0x500d5a('0x6f2')]['push'](_0xb4e63b[_0x13ad13]);}}}})['catch'](function(_0x40a99c){var _0x5b7b50=_0x1cb40d;_0x1d7cdd[_0x5b7b50('0x8c8')]({'title':_0x40a99c[_0x5b7b50('0x2833')]?_0x5b7b50('0x27f2')+_0x40a99c[_0x5b7b50('0x2833')]+_0x5b7b50('0x1b7c')+_0x40a99c[_0x5b7b50('0x1fd7')]:_0x5b7b50('0x1878'),'msg':_0x40a99c['data']?JSON['stringify'](_0x40a99c[_0x5b7b50('0x11d0')]):_0x40a99c[_0x5b7b50('0x94f')]()});});}function _0x341e72(){var _0x386870=_0x5718ca;_0x41ceaa[_0x386870('0x1bbd')][_0x386870('0xbef')]({'id':_0x240932['action'][_0x386870('0x1cbe')],'ListId':_0x240932['action'][_0x386870('0x1cbe')]})['$promise'][_0x386870('0xe19')](function(_0x2596bd){var _0x164659=_0x386870;_0x240932[_0x164659('0x2126')]=_0x32d445()[_0x164659('0x2891')](_0x2596bd[_0x164659('0x16a7')],[_0x164659('0x62e'),_0x164659('0x1bc6')]),_0x240932['listFields'][_0x164659('0x1d7e')](function(_0x3d5d4d){var _0xe46b77=_0x164659;_0x3d5d4d['columnName']=_0xe46b77('0x1441')+_0x3d5d4d['id'];});})[_0x386870('0x223b')](function(_0x2e53cc){var _0x1664e6=_0x386870;_0x1d7cdd['error']({'title':_0x2e53cc[_0x1664e6('0x2833')]?_0x1664e6('0x27f2')+_0x2e53cc['status']+_0x1664e6('0x1b7c')+_0x2e53cc[_0x1664e6('0x1fd7')]:_0x1664e6('0x982'),'msg':_0x2e53cc[_0x1664e6('0x11d0')]?JSON[_0x1664e6('0x3ad')](_0x2e53cc[_0x1664e6('0x11d0')]):_0x2e53cc[_0x1664e6('0x94f')]()});});}function _0x2e82d5(){var _0x56e36d=_0x5718ca;_0xef87fd['isAdmin']()?_0x41ceaa[_0x56e36d('0x6c7')][_0x56e36d('0x22d5')]({'fields':_0x56e36d('0x104'),'sort':_0x56e36d('0x2623'),'nolimit':_0x56e36d('0x2206')})[_0x56e36d('0xe59')][_0x56e36d('0xe19')](function(_0x305fe7){var _0x22961c=_0x56e36d;_0x240932[_0x22961c('0x1d39')]=_0x305fe7[_0x22961c('0x16a7')]||[];})['catch'](function(_0x487e20){var _0x1e5204=_0x56e36d;_0x1d7cdd[_0x1e5204('0x8c8')]({'title':_0x487e20['status']?_0x1e5204('0x27f2')+_0x487e20[_0x1e5204('0x2833')]+_0x1e5204('0x1b7c')+_0x487e20[_0x1e5204('0x1fd7')]:'SYSTEM:GET_PROJECTS','msg':_0x487e20[_0x1e5204('0x11d0')]?JSON['stringify'](_0x487e20[_0x1e5204('0x11d0')]):_0x487e20[_0x1e5204('0x94f')]()});}):_0x41ceaa[_0x56e36d('0x6c7')][_0x56e36d('0x22d5')]({'fields':_0x56e36d('0x104'),'sort':_0x56e36d('0x2623'),'nolimit':_0x56e36d('0x2206')})[_0x56e36d('0xe59')][_0x56e36d('0xe19')](function(_0x32ca42){var _0x341ddd=_0x56e36d;_0x240932[_0x341ddd('0x1d39')]=_0x32ca42[_0x341ddd('0x16a7')]||[];})['then'](function(){var _0x3eba03=_0x56e36d;return _0x41ceaa['userProfileSection'][_0x3eba03('0x22d5')]({'userProfileId':_0x240932['currentUser'][_0x3eba03('0x1d04')],'sectionId':0x6a5})[_0x3eba03('0xe59')];})[_0x56e36d('0xe19')](function(_0x3c61e9){var _0x3811fe=_0x56e36d,_0x38558d=_0x3c61e9&&_0x3c61e9[_0x3811fe('0x16a7')]?_0x3c61e9[_0x3811fe('0x16a7')][0x0]:null;if(!_0x38558d){var _0x2ae3ea=[],_0x249bc4=[];_0x240932[_0x3811fe('0x110b')][_0x3811fe('0x16a7')][_0x3811fe('0x1d7e')](function(_0x4fdfa0){var _0x3711ea=_0x3811fe;if(_0x4fdfa0['action']===_0x3711ea('0x1c47')){var _0xd82f01=_0x32d445()[_0x3711ea('0xf15')](_0x240932['projects'],{'id':Number(_0x4fdfa0[_0x3711ea('0x1cbe')])});_0x249bc4['push'](_0xd82f01);}});for(var _0x37f975=0x0;_0x37f975<_0x240932[_0x3811fe('0x1d39')][_0x3811fe('0x25ae')];_0x37f975++){var _0x5faa87=_0x32d445()['some'](_0x249bc4,{'id':_0x240932[_0x3811fe('0x1d39')][_0x37f975]['id']});_0x5faa87&&(_0x240932[_0x3811fe('0x1d39')][_0x37f975][_0x3811fe('0x1e9d')]=![],_0x2ae3ea[_0x3811fe('0xb76')](_0x240932[_0x3811fe('0x1d39')][_0x37f975]));}_0x240932[_0x3811fe('0x1d39')]=_0x2ae3ea;}else{if(!_0x38558d[_0x3811fe('0x11fd')])return _0x41ceaa[_0x3811fe('0xd49')][_0x3811fe('0x22d5')]({'sectionId':_0x38558d['id']})[_0x3811fe('0xe59')]['then'](function(_0xc0b2dd){var _0x548cfb=_0x3811fe,_0x322cd6=_0x32d445()[_0x548cfb('0x65a')](_0xc0b2dd[_0x548cfb('0x16a7')],function(_0x5bc3f5){var _0x13ecc8=_0x548cfb;return _0x32d445()[_0x13ecc8('0xf15')](_0x240932[_0x13ecc8('0x1d39')],{'id':_0x5bc3f5['resourceId']});}),_0x160de6=null;_0x160de6=[],_0x240932[_0x548cfb('0x110b')][_0x548cfb('0x16a7')][_0x548cfb('0x1d7e')](function(_0x1d5b81){var _0x441257=_0x548cfb;if(_0x1d5b81['action']===_0x441257('0x1c47')){var _0x3c0cf1=_0x32d445()[_0x441257('0xf15')](_0x240932[_0x441257('0x1d39')],{'id':Number(_0x1d5b81[_0x441257('0x1cbe')])});_0x160de6['push'](_0x3c0cf1);}}),!_0x32d445()['isEmpty'](_0x160de6)&&_0x160de6[_0x548cfb('0x1d7e')](function(_0x8da92b){var _0x3f678c=_0x548cfb;if(!_0x32d445()[_0x3f678c('0x201a')](_0x322cd6,['id',_0x8da92b['id']])){var _0x237a55=_0x32d445()[_0x3f678c('0xf15')](_0x240932[_0x3f678c('0x1d39')],{'id':_0x8da92b['id']});_0x237a55[_0x3f678c('0x1e9d')]=![],_0x322cd6[_0x3f678c('0xb76')](_0x237a55);}}),_0x240932[_0x548cfb('0x1d39')]=_0x322cd6;});}})[_0x56e36d('0x223b')](function(_0x30b270){var _0x578253=_0x56e36d;_0x1d7cdd['error']({'title':_0x30b270['status']?_0x578253('0x27f2')+_0x30b270[_0x578253('0x2833')]+_0x578253('0x1b7c')+_0x30b270['statusText']:'SYSTEM:GETprojects','msg':_0x30b270[_0x578253('0x11d0')]?JSON[_0x578253('0x3ad')](_0x30b270['data']):_0x30b270[_0x578253('0x94f')]()});});}function _0x1e1228(){var _0x3dce17=_0x5718ca;_0xef87fd[_0x3dce17('0x1da3')]()?_0x41ceaa[_0x3dce17('0x12e2')]['get']({'fields':_0x3dce17('0x104'),'sort':'id','nolimit':'true'})[_0x3dce17('0xe59')]['then'](function(_0x31eada){var _0x41ad7a=_0x3dce17;_0x240932[_0x41ad7a('0x702')]=_0x31eada[_0x41ad7a('0x16a7')]||[];})['catch'](function(_0x3814cb){var _0x32d8a7=_0x3dce17;_0x1d7cdd[_0x32d8a7('0x8c8')]({'title':_0x3814cb['status']?_0x32d8a7('0x27f2')+_0x3814cb[_0x32d8a7('0x2833')]+_0x32d8a7('0x1b7c')+_0x3814cb[_0x32d8a7('0x1fd7')]:_0x32d8a7('0x37e'),'msg':_0x3814cb['data']?JSON[_0x32d8a7('0x3ad')](_0x3814cb[_0x32d8a7('0x11d0')]):_0x3814cb[_0x32d8a7('0x94f')]()});}):_0x41ceaa[_0x3dce17('0x12e2')][_0x3dce17('0x22d5')]({'fields':_0x3dce17('0x104'),'sort':'id','nolimit':_0x3dce17('0x2206')})[_0x3dce17('0xe59')][_0x3dce17('0xe19')](function(_0x445f5f){var _0x1a72a4=_0x3dce17;_0x240932[_0x1a72a4('0x702')]=_0x445f5f['rows']||[];})[_0x3dce17('0xe19')](function(){var _0x53fffd=_0x3dce17;return _0x41ceaa[_0x53fffd('0xb59')][_0x53fffd('0x22d5')]({'userProfileId':_0x240932[_0x53fffd('0x15a5')][_0x53fffd('0x1d04')],'sectionId':0x3f1})[_0x53fffd('0xe59')];})[_0x3dce17('0xe19')](function(_0x1bf4a2){var _0x3d180c=_0x3dce17,_0x1175dc=_0x1bf4a2&&_0x1bf4a2[_0x3d180c('0x16a7')]?_0x1bf4a2[_0x3d180c('0x16a7')][0x0]:null;if(!_0x1175dc){var _0x1d238f=[],_0x3b96cb=[];_0x240932[_0x3d180c('0x110b')][_0x3d180c('0x16a7')][_0x3d180c('0x1d7e')](function(_0x1cf13f){var _0x4d49f7=_0x3d180c;if(_0x32d445()[_0x4d49f7('0x1c43')]([_0x4d49f7('0x19c7'),_0x4d49f7('0x1ef')],_0x1cf13f['action'])){var _0x204479=_0x32d445()['find'](_0x240932[_0x4d49f7('0x702')],{'id':Number(_0x1cf13f[_0x4d49f7('0x153b')])});_0x3b96cb[_0x4d49f7('0xb76')](_0x204479);}});for(var _0x473e18=0x0;_0x473e18<_0x240932[_0x3d180c('0x702')][_0x3d180c('0x25ae')];_0x473e18++){var _0xf0b7a6=_0x32d445()[_0x3d180c('0x201a')](_0x3b96cb,{'id':_0x240932[_0x3d180c('0x702')][_0x473e18]['id']});_0xf0b7a6&&(_0x240932[_0x3d180c('0x702')][_0x473e18][_0x3d180c('0x1e9d')]=![],_0x1d238f['push'](_0x240932[_0x3d180c('0x702')][_0x473e18]));}_0x240932[_0x3d180c('0x702')]=_0x1d238f;}else{if(!_0x1175dc[_0x3d180c('0x11fd')])return _0x41ceaa[_0x3d180c('0xd49')][_0x3d180c('0x22d5')]({'sectionId':_0x1175dc['id']})[_0x3d180c('0xe59')][_0x3d180c('0xe19')](function(_0x423d7d){var _0x2d0e3a=_0x3d180c,_0x57e177=_0x32d445()[_0x2d0e3a('0x65a')](_0x423d7d[_0x2d0e3a('0x16a7')],function(_0x3d60d0){var _0x54fd22=_0x2d0e3a;return _0x32d445()['find'](_0x240932['templates'],{'id':_0x3d60d0[_0x54fd22('0x1104')]});}),_0x52bbf2=null;_0x52bbf2=[],_0x240932[_0x2d0e3a('0x110b')][_0x2d0e3a('0x16a7')][_0x2d0e3a('0x1d7e')](function(_0x48b9f4){var _0x17ba3b=_0x2d0e3a;if(_0x32d445()['includes']([_0x17ba3b('0x19c7'),_0x17ba3b('0x1ef')],_0x48b9f4[_0x17ba3b('0xf8')])){var _0x5d7971=_0x32d445()[_0x17ba3b('0xf15')](_0x240932[_0x17ba3b('0x702')],{'id':Number(_0x48b9f4['data2'])});_0x52bbf2[_0x17ba3b('0xb76')](_0x5d7971);}}),!_0x32d445()[_0x2d0e3a('0x14b4')](_0x52bbf2)&&_0x52bbf2[_0x2d0e3a('0x1d7e')](function(_0x155c05){var _0x279bf0=_0x2d0e3a;if(!_0x32d445()[_0x279bf0('0x201a')](_0x57e177,['id',_0x155c05['id']])){var _0x2ed248=_0x32d445()[_0x279bf0('0xf15')](_0x240932[_0x279bf0('0x702')],{'id':_0x155c05['id']});_0x2ed248[_0x279bf0('0x1e9d')]=![],_0x57e177[_0x279bf0('0xb76')](_0x2ed248);}}),_0x240932[_0x2d0e3a('0x702')]=_0x57e177;});}})[_0x3dce17('0x223b')](function(_0x5b5586){var _0x1b9748=_0x3dce17;_0x1d7cdd[_0x1b9748('0x8c8')]({'title':_0x5b5586[_0x1b9748('0x2833')]?'API:'+_0x5b5586[_0x1b9748('0x2833')]+_0x1b9748('0x1b7c')+_0x5b5586[_0x1b9748('0x1fd7')]:_0x1b9748('0x37e'),'msg':_0x5b5586['data']?JSON[_0x1b9748('0x3ad')](_0x5b5586[_0x1b9748('0x11d0')]):_0x5b5586[_0x1b9748('0x94f')]()});});}function _0x567fce(){var _0x3176e8=_0x5718ca;switch(_0x240932['action'][_0x3176e8('0x1cbe')]){case'zendesk':return _0x240932['hasSectionPermissions'][0x515];case _0x3176e8('0xd77'):return _0x240932[_0x3176e8('0x64f')][0x516];case _0x3176e8('0x3e5'):return _0x240932[_0x3176e8('0x64f')][0x519];case'freshdesk':return _0x240932[_0x3176e8('0x64f')][0x517];case _0x3176e8('0x1bfd'):return _0x240932[_0x3176e8('0x64f')][0x51a];case _0x3176e8('0x24f2'):return _0x240932[_0x3176e8('0x64f')][0x51b];case'vtiger':return _0x240932[_0x3176e8('0x64f')][0x51c];case'dynamics365':return _0x240932[_0x3176e8('0x64f')][0x51d];case'servicenow':return _0x240932[_0x3176e8('0x64f')][0x51e];case _0x3176e8('0xdec'):return _0x240932[_0x3176e8('0x64f')][0x51f];}}function _0x392170(){var _0x2466f8=_0x5718ca;_0x240932['action'][_0x2466f8('0x1cbe')]=undefined,_0x240932['action'][_0x2466f8('0x153b')]=undefined,_0x240932[_0x2466f8('0xf8')]['data3']=undefined,_0x240932[_0x2466f8('0xf8')][_0x2466f8('0x27b6')]=undefined,_0x240932[_0x2466f8('0xf8')][_0x2466f8('0x1423')]=_0x240932['action'][_0x2466f8('0xf8')]===_0x2466f8('0xd67')?0x5:undefined;}function _0x73236e(){var _0x4c73b6=_0x5718ca;switch(_0x240932[_0x4c73b6('0xf8')][_0x4c73b6('0xf8')]){case _0x4c73b6('0x1de1'):if(!_0x240932[_0x4c73b6('0x9f8')])_0x3841c7();if(!_0x240932[_0x4c73b6('0x268f')])_0x41d672();_0x240932['action']['data3']=_0x240932[_0x4c73b6('0xf8')][_0x4c73b6('0x810')]?_0x240932[_0x4c73b6('0xf8')][_0x4c73b6('0x810')]['split'](','):['phone'];if(_0x240932[_0x4c73b6('0xf8')][_0x4c73b6('0x153b')]==='1'&&!_0x240932[_0x4c73b6('0xf8')][_0x4c73b6('0x27b6')])_0x240932[_0x4c73b6('0xf8')][_0x4c73b6('0x27b6')]=_0x4c73b6('0x1ef5');break;case _0x4c73b6('0x1c47'):if(!_0x240932[_0x4c73b6('0x1d39')])_0x2e82d5();break;case _0x4c73b6('0xd67'):if(!_0x240932['action']['data5'])_0x240932[_0x4c73b6('0xf8')]['data5']=0x5;break;}}function _0x2bcc60(){_0x392170(),_0x73236e();}function _0x25da0a(){var _0x50c02c=_0x5718ca;_0x240932[_0x50c02c('0xf8')][_0x50c02c('0x153b')]=undefined,_0x240932[_0x50c02c('0xf8')][_0x50c02c('0x810')]=undefined,_0x240932[_0x50c02c('0xf8')][_0x50c02c('0x1d3c')]=_0x240932[_0x50c02c('0x54a')]?![]:!_0x567fce();var _0x53c3eb=_0x50c02c('0xf5f')+_0x32d445()[_0x50c02c('0xbf6')](_0x240932[_0x50c02c('0xf8')][_0x50c02c('0x1cbe')])+_0x50c02c('0x1e4e');_0x41ceaa[_0x53c3eb][_0x50c02c('0x22d5')]({'fields':_0x50c02c('0x104'),'sort':'id','nolimit':_0x50c02c('0x2206')})[_0x50c02c('0xe59')][_0x50c02c('0xe19')](function(_0x351673){var _0x20d152=_0x50c02c;_0x240932[_0x20d152('0xe00')]=_0x351673[_0x20d152('0x16a7')]||[];})[_0x50c02c('0x223b')](function(_0x33cc6b){var _0x3eec73=_0x50c02c;_0x1d7cdd['error']({'title':_0x33cc6b[_0x3eec73('0x2833')]?'API:'+_0x33cc6b[_0x3eec73('0x2833')]+_0x3eec73('0x1b7c')+_0x33cc6b[_0x3eec73('0x1fd7')]:_0x3eec73('0x1e13')+_0x240932['action'][_0x3eec73('0x1cbe')][_0x3eec73('0x25f7')]()+_0x3eec73('0x14e7'),'msg':_0x33cc6b[_0x3eec73('0x11d0')]?JSON['stringify'](_0x33cc6b['data']):_0x33cc6b[_0x3eec73('0x94f')]()});});}function _0x4b77a2(){_0x341e72();}function _0x424ad7(){var _0x199a22=_0x5718ca;if(_0x240932[_0x199a22('0xf8')][_0x199a22('0x1cbe')]==='0'&&!_0x240932[_0x199a22('0x702')])_0x1e1228();}function _0x151486(){var _0x1238a2=_0x5718ca;if(_0x240932['action'][_0x1238a2('0x153b')]==='0')_0x240932['action'][_0x1238a2('0x27b6')]=undefined;if(!_0x240932[_0x1238a2('0xf8')][_0x1238a2('0x27b6')]&&_0x240932[_0x1238a2('0xf8')][_0x1238a2('0x153b')]==='1')_0x240932[_0x1238a2('0xf8')][_0x1238a2('0x27b6')]=_0x1238a2('0x1ef5');}function _0x5cfbb4(){var _0x2d5dbe=_0x5718ca;_0x240932['action'][_0x2d5dbe('0x810')]=undefined;var _0x4a4acf='int'+_0x32d445()['capitalize'](_0x240932[_0x2d5dbe('0xf8')][_0x2d5dbe('0x1cbe')])+_0x2d5dbe('0xdc4');_0x41ceaa[_0x4a4acf][_0x2d5dbe('0x22d5')]({'fields':_0x2d5dbe('0x2423'),'sort':'id','nolimit':_0x2d5dbe('0x2206')})[_0x2d5dbe('0xe59')]['then'](function(_0x4a48af){var _0x2214e=_0x2d5dbe;_0x240932[_0x2214e('0x244e')]=_0x4a48af[_0x2214e('0x16a7')]||[];})[_0x2d5dbe('0x223b')](function(_0x415c2c){var _0xf335aa=_0x2d5dbe;_0x1d7cdd[_0xf335aa('0x8c8')]({'title':_0x415c2c[_0xf335aa('0x2833')]?_0xf335aa('0x27f2')+_0x415c2c['status']+'\x20-\x20'+_0x415c2c[_0xf335aa('0x1fd7')]:_0xf335aa('0x1e13')+_0x240932['action']['data1'][_0xf335aa('0x25f7')]()+_0xf335aa('0x1fe2'),'msg':_0x415c2c[_0xf335aa('0x11d0')]?JSON[_0xf335aa('0x3ad')](_0x415c2c[_0xf335aa('0x11d0')]):_0x415c2c['toString']()});});}function _0x44abfb(){var _0x8e6e43=_0x5718ca,_0xf4ab96=angular[_0x8e6e43('0x89')](_0x240932[_0x8e6e43('0xf8')]);if(_0x32d445()['isArray'](_0xf4ab96[_0x8e6e43('0x810')]))_0xf4ab96[_0x8e6e43('0x810')]=_0x240932[_0x8e6e43('0xf8')][_0x8e6e43('0x810')][_0x8e6e43('0x1537')](',');return _0xf4ab96;}function _0x48a5ce(){var _0x2589dc=_0x5718ca;_0x240932[_0x2589dc('0xcd2')]=[];var _0x57bff5=_0x44abfb();_0x41ceaa['trigger'][_0x2589dc('0x1356')]({'id':_0x225a14['params']['id']},_0x57bff5)[_0x2589dc('0xe59')][_0x2589dc('0xe19')](function(_0xb35936){var _0x553c75=_0x2589dc;_0x240932[_0x553c75('0xc06')][_0x553c75('0x14c9')](_0xb35936['toJSON']()),_0x1d7cdd['success']({'title':_0x3e8c22[_0x553c75('0x2159')](_0x553c75('0x11ce'))}),_0x16843f(_0x240932[_0x553c75('0xc06')]);})[_0x2589dc('0x223b')](function(_0xfb6dd5){var _0x57f235=_0x2589dc;if(_0xfb6dd5[_0x57f235('0x11d0')]&&_0xfb6dd5[_0x57f235('0x11d0')][_0x57f235('0xcd2')]&&_0xfb6dd5[_0x57f235('0x11d0')][_0x57f235('0xcd2')][_0x57f235('0x25ae')]){_0x240932[_0x57f235('0xcd2')]=_0xfb6dd5['data'][_0x57f235('0xcd2')]||[{'message':_0xfb6dd5[_0x57f235('0x94f')](),'type':_0x57f235('0x2899')}];for(var _0x1cdb40=0x0;_0x1cdb40<_0xfb6dd5['data'][_0x57f235('0xcd2')]['length'];_0x1cdb40+=0x1){_0x1d7cdd[_0x57f235('0x8c8')]({'title':_0xfb6dd5[_0x57f235('0x11d0')][_0x57f235('0xcd2')][_0x1cdb40]['type'],'msg':_0xfb6dd5['data'][_0x57f235('0xcd2')][_0x1cdb40]['message']});}}else _0x1d7cdd[_0x57f235('0x8c8')]({'title':_0xfb6dd5[_0x57f235('0x2833')]?_0x57f235('0x27f2')+_0xfb6dd5[_0x57f235('0x2833')]+_0x57f235('0x1b7c')+_0xfb6dd5[_0x57f235('0x1fd7')]:'api.action.save','msg':_0xfb6dd5[_0x57f235('0x11d0')]?JSON[_0x57f235('0x3ad')](_0xfb6dd5[_0x57f235('0x11d0')]['message']):_0xfb6dd5['toString']()});});}function _0x35e840(){var _0x49e406=_0x5718ca;_0x240932[_0x49e406('0xcd2')]=[];var _0x46e59d=_0x44abfb();_0x41ceaa[_0x49e406('0xf8')]['update']({'id':_0x46e59d['id']},_0x46e59d)[_0x49e406('0xe59')]['then'](function(){var _0x20bebb=_0x49e406;_0x240932[_0x20bebb('0xc06')]=_0x32d445()[_0x20bebb('0x65a')](_0x240932[_0x20bebb('0xc06')],function(_0x3b8c64){if(_0x3b8c64['id']===_0x46e59d['id'])return _0x46e59d;else return _0x3b8c64;}),_0x1d7cdd[_0x20bebb('0x425')]({'title':_0x3e8c22[_0x20bebb('0x2159')](_0x20bebb('0x43f'))}),_0x16843f(_0x240932['actions']);})['catch'](function(_0x4e0c7b){var _0x1cbd5e=_0x49e406;if(_0x4e0c7b[_0x1cbd5e('0x11d0')]&&_0x4e0c7b[_0x1cbd5e('0x11d0')]['errors']&&_0x4e0c7b[_0x1cbd5e('0x11d0')][_0x1cbd5e('0xcd2')][_0x1cbd5e('0x25ae')]){_0x240932[_0x1cbd5e('0xcd2')]=_0x4e0c7b[_0x1cbd5e('0x11d0')][_0x1cbd5e('0xcd2')]||[{'message':_0x4e0c7b[_0x1cbd5e('0x94f')](),'type':'api.action.update'}];for(var _0x38f660=0x0;_0x38f660<_0x4e0c7b[_0x1cbd5e('0x11d0')][_0x1cbd5e('0xcd2')][_0x1cbd5e('0x25ae')];_0x38f660++){_0x1d7cdd['error']({'title':_0x4e0c7b[_0x1cbd5e('0x11d0')][_0x1cbd5e('0xcd2')][_0x38f660]['type'],'msg':_0x4e0c7b[_0x1cbd5e('0x11d0')]['errors'][_0x38f660][_0x1cbd5e('0x27e8')]});}}else _0x1d7cdd['error']({'title':_0x4e0c7b[_0x1cbd5e('0x2833')]?_0x1cbd5e('0x27f2')+_0x4e0c7b[_0x1cbd5e('0x2833')]+_0x1cbd5e('0x1b7c')+_0x4e0c7b['statusText']:_0x1cbd5e('0x8b1'),'msg':_0x4e0c7b[_0x1cbd5e('0x11d0')]?JSON[_0x1cbd5e('0x3ad')](_0x4e0c7b[_0x1cbd5e('0x11d0')][_0x1cbd5e('0x27e8')]):_0x4e0c7b[_0x1cbd5e('0x94f')]()});});}function _0x677a48(_0x4f3648){var _0x229e4b=_0x5718ca;_0x240932[_0x229e4b('0xcd2')]=[];var _0x23269a=_0x302d67[_0x229e4b('0xa5')]({'skipHide':!![]})[_0x229e4b('0x13e4')](_0x3e8c22[_0x229e4b('0x2159')](_0x229e4b('0x1f43')))[_0x229e4b('0x4d1')](_0x229e4b('0x1747'))['ok'](_0x3e8c22['instant'](_0x229e4b('0x185a')))[_0x229e4b('0x2c1')](_0x3e8c22[_0x229e4b('0x2159')](_0x229e4b('0x717')))[_0x229e4b('0x1345')](_0x4f3648);_0x302d67[_0x229e4b('0x26b2')](_0x23269a)[_0x229e4b('0xe19')](function(){var _0x19aba2=_0x229e4b;_0x41ceaa[_0x19aba2('0xf8')][_0x19aba2('0x229e')]({'id':_0x240932[_0x19aba2('0xf8')]['id']})[_0x19aba2('0xe59')][_0x19aba2('0xe19')](function(){var _0x41732e=_0x19aba2;_0x240932[_0x41732e('0xc06')]=_0x32d445()[_0x41732e('0x2891')](_0x240932[_0x41732e('0xc06')],function(_0x465c8a){var _0x4162b2=_0x41732e;return _0x465c8a['id']!==_0x240932[_0x4162b2('0xf8')]['id'];}),_0x1d7cdd[_0x41732e('0x425')]({'title':_0x3e8c22[_0x41732e('0x2159')](_0x41732e('0xf2d'))}),_0x16843f(_0x240932['actions']);})[_0x19aba2('0x223b')](function(_0x3d0943){var _0x131886=_0x19aba2;if(_0x3d0943[_0x131886('0x11d0')]&&_0x3d0943[_0x131886('0x11d0')]['errors']&&_0x3d0943[_0x131886('0x11d0')][_0x131886('0xcd2')][_0x131886('0x25ae')]){_0x240932['errors']=_0x3d0943[_0x131886('0x11d0')][_0x131886('0xcd2')]||[{'message':_0x3d0943['toString'](),'type':_0x131886('0x620')}];for(var _0x35737c=0x0;_0x35737c<_0x3d0943[_0x131886('0x11d0')]['errors']['length'];_0x35737c++){_0x1d7cdd['error']({'title':_0x3d0943['data'][_0x131886('0xcd2')][_0x35737c][_0x131886('0x62e')],'msg':_0x3d0943[_0x131886('0x11d0')][_0x131886('0xcd2')][_0x35737c][_0x131886('0x27e8')]});}}else _0x1d7cdd['error']({'title':_0x3d0943['status']?_0x131886('0x27f2')+_0x3d0943[_0x131886('0x2833')]+'\x20-\x20'+_0x3d0943[_0x131886('0x1fd7')]:_0x131886('0x620'),'msg':_0x3d0943[_0x131886('0x11d0')]?JSON[_0x131886('0x3ad')](_0x3d0943[_0x131886('0x11d0')]['message']):_0x3d0943[_0x131886('0x27e8')]||_0x3d0943['toString']()});});},function(){});}function _0x16843f(_0x501696){var _0x140281=_0x5718ca;_0x302d67[_0x140281('0x11ed')](_0x501696);}}const _0xf34333=_0xc6209b,_0x2ce170=_0x59426a['p']+_0xb635d2('0x19f');_0x2aafc3[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$q',_0xb635d2('0x2493'),'$timeout',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'toasty',_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x2aafc3(_0x2b4005,_0x567bf3,_0x6aaf97,_0x494a87,_0x123c45,_0x30f11d,_0x285216,_0x10906a,_0x897694){var _0x149ef4=_0xb635d2,_0x4e42a2=this;_0x4e42a2['currentUser']=_0x897694[_0x149ef4('0x1ef8')](),_0x4e42a2[_0x149ef4('0x1481')]={},_0x4e42a2[_0x149ef4('0x1e64')]={'count':0x0,'rows':[]},_0x4e42a2[_0x149ef4('0x1f00')]=[],_0x4e42a2[_0x149ef4('0xa16')]={'fields':_0x149ef4('0x2083'),'limit':0xa,'page':0x1},_0x4e42a2[_0x149ef4('0x1d17')]={'queue':_0x149ef4('0x9'),'lastevent':_0x149ef4('0xe9f'),'routeId':_0x149ef4('0xfe6'),'agent':_0x149ef4('0x142e'),'account':'Account','interaction':'Interaction','message':_0x149ef4('0x2164')},_0x4e42a2[_0x149ef4('0x23d1')]={'abandoned':_0x149ef4('0x1562'),'timeout':_0x149ef4('0x784'),'complete':_0x149ef4('0x9b6'),'rejected':'Reject','called':'Ring','connect':_0x149ef4('0x98a'),'nosuchnumber':_0x149ef4('0x173f'),'busy':_0x149ef4('0x1302'),'noanswer':_0x149ef4('0x1c6b'),'congestion':_0x149ef4('0x13ef'),'agentreject':_0x149ef4('0x207e')},_0x4e42a2[_0x149ef4('0x26ac')]={'in':_0x149ef4('0x9df'),'out':'Outgoing','accept':_0x149ef4('0x5eb'),'reject':_0x149ef4('0x147c')},_0x4e42a2[_0x149ef4('0x888')]=_0x42aaa2,_0x4e42a2[_0x149ef4('0x425')]=_0xe2f077,_0x4e42a2[_0x149ef4('0x7cc')]=_0x3fe627,_0x4e42a2[_0x149ef4('0x2297')]=_0x43780b,_0x4e42a2[_0x149ef4('0x263e')]=_0x455fae,_0x4e42a2[_0x149ef4('0x126c')]=_0x29fed5,_0x4e42a2['deleteSelectedTriggerAllConditions']=_0x45c4e1;function _0x42aaa2(_0x30e74f,_0x432b31){var _0x249216=_0x149ef4;_0x4e42a2[_0x249216('0x1481')]=_0x30e74f,_0x4e42a2['crudPermissions']=typeof _0x432b31!==_0x249216('0x1143')?_0x432b31:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e42a2[_0x249216('0xa16')][_0x249216('0x16d0')]=_0x4e42a2[_0x249216('0x1481')]['id'],_0x4e42a2[_0x249216('0xa16')]['id']=_0x4e42a2[_0x249216('0x1481')]['id'],_0x3fe627();}function _0x5b3e55(){var _0x3e13a4=_0x149ef4,_0x382116=_0x4e42a2['trigger']['channel'],_0x1aa79d=_0x4e42a2['trigger'][_0x3e13a4('0x4e')]+_0x4e42a2['trigger']['channel']===_0x3e13a4('0x17cc')?_0x3e13a4('0x2225'):_0x3e13a4('0x225b'),_0xf6f46=_0x4e42a2[_0x3e13a4('0x1481')][_0x3e13a4('0x4e')]+(_0x4e42a2[_0x3e13a4('0x1481')][_0x3e13a4('0x4e')]===_0x3e13a4('0x17cc')?'Website':_0x3e13a4('0x1e4e')),_0x370640;switch(_0x4e42a2['trigger'][_0x3e13a4('0x4e')]){case'chat':_0x370640=0x1f6;break;case _0x3e13a4('0x625'):_0x370640=0x386;break;case _0x3e13a4('0x26bf'):_0x370640=0x25a;break;case _0x3e13a4('0xaf2'):_0x370640=0x322;break;case _0x3e13a4('0x2801'):_0x370640=0x2be;break;case _0x3e13a4('0x4b7'):_0x370640=0x836;break;}_0x897694[_0x3e13a4('0x1da3')]()?_0x10906a[_0xf6f46][_0x3e13a4('0x22d5')]({'fields':_0x3e13a4('0x104'),'sort':'id','nolimit':'true'})[_0x3e13a4('0xe59')][_0x3e13a4('0xe19')](function(_0x494eb4){var _0x40cd49=_0x3e13a4;_0x4e42a2[_0x1aa79d]=_0x494eb4[_0x40cd49('0x16a7')]||[];})[_0x3e13a4('0x223b')](function(_0xb6bc49){var _0x24ea65=_0x3e13a4;_0x285216['error']({'title':_0xb6bc49['status']?_0x24ea65('0x27f2')+_0xb6bc49[_0x24ea65('0x2833')]+_0x24ea65('0x1b7c')+_0xb6bc49[_0x24ea65('0x1fd7')]:_0x24ea65('0x1e13')+_0x382116[_0x24ea65('0x25f7')]()+_0x382116===_0x24ea65('0x17cc')?_0x24ea65('0x270d'):'ACCOUNTS','msg':_0xb6bc49[_0x24ea65('0x11d0')]?JSON[_0x24ea65('0x3ad')](_0xb6bc49[_0x24ea65('0x11d0')]):_0xb6bc49[_0x24ea65('0x94f')]()});}):_0x10906a[_0xf6f46][_0x3e13a4('0x22d5')]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x3e13a4('0xe59')]['then'](function(_0x135b21){_0x4e42a2[_0x1aa79d]=_0x135b21['rows']||[];})[_0x3e13a4('0xe19')](function(){var _0x2e23ad=_0x3e13a4;return _0x10906a['userProfileSection'][_0x2e23ad('0x22d5')]({'userProfileId':_0x4e42a2[_0x2e23ad('0x15a5')][_0x2e23ad('0x1d04')],'sectionId':_0x370640})[_0x2e23ad('0xe59')];})['then'](function(_0xb7dcea){var _0x25524e=_0x3e13a4,_0xd1a6c5=_0xb7dcea&&_0xb7dcea[_0x25524e('0x16a7')]?_0xb7dcea[_0x25524e('0x16a7')][0x0]:null;if(!_0xd1a6c5){var _0xda1e1d=[],_0x3dd367=[];_0x4e42a2['triggerAllConditions']['rows'][_0x25524e('0x1d7e')](function(_0x41380e){var _0x3b68a1=_0x25524e;if(_0x41380e[_0x3b68a1('0x15d1')]==='account'){var _0x149b8a=_0x32d445()[_0x3b68a1('0xf15')](_0x4e42a2[_0x1aa79d],{'id':Number(_0x41380e['value'])});_0x3dd367[_0x3b68a1('0xb76')](_0x149b8a);}});for(var _0x52f5d1=0x0;_0x52f5d1<_0x4e42a2[_0x1aa79d]['length'];_0x52f5d1++){var _0x1b6170=_0x32d445()['some'](_0x3dd367,{'id':_0x4e42a2[_0x1aa79d][_0x52f5d1]['id']});_0x1b6170&&(_0x4e42a2[_0x1aa79d][_0x52f5d1]['canSelect']=![],_0xda1e1d[_0x25524e('0xb76')](_0x4e42a2[_0x1aa79d][_0x52f5d1]));}_0x4e42a2[_0x1aa79d]=_0xda1e1d;}else{if(!_0xd1a6c5['autoAssociation'])return _0x10906a['userProfileResource'][_0x25524e('0x22d5')]({'sectionId':_0xd1a6c5['id']})[_0x25524e('0xe59')][_0x25524e('0xe19')](function(_0x54ebdb){var _0x56546e=_0x25524e,_0x5f47cf=_0x32d445()['map'](_0x54ebdb['rows'],function(_0x428342){var _0x5e0867=a0_0x5325;return _0x32d445()[_0x5e0867('0xf15')](_0x4e42a2[_0x1aa79d],{'id':_0x428342[_0x5e0867('0x1104')]});}),_0x3ece54=null;_0x3ece54=[],_0x4e42a2[_0x56546e('0x1e64')][_0x56546e('0x16a7')][_0x56546e('0x1d7e')](function(_0xb3f812){var _0x2a77a7=_0x56546e;if(_0xb3f812[_0x2a77a7('0x15d1')]===_0x2a77a7('0xe8b')){var _0x528658=_0x32d445()[_0x2a77a7('0xf15')](_0x4e42a2[_0x1aa79d],{'id':Number(_0xb3f812[_0x2a77a7('0x2')])});_0x3ece54[_0x2a77a7('0xb76')](_0x528658);}}),!_0x32d445()[_0x56546e('0x14b4')](_0x3ece54)&&_0x3ece54['forEach'](function(_0x33986a){var _0x385411=_0x56546e;if(!_0x32d445()[_0x385411('0x201a')](_0x5f47cf,['id',_0x33986a['id']])){var _0x15f612=_0x32d445()['find'](_0x4e42a2[_0x1aa79d],{'id':_0x33986a['id']});_0x15f612[_0x385411('0x1e9d')]=![],_0x5f47cf[_0x385411('0xb76')](_0x15f612);}}),_0x4e42a2[_0x1aa79d]=_0x5f47cf;});}})['catch'](function(_0xf7dbf9){var _0x9aa673=_0x3e13a4;_0x285216[_0x9aa673('0x8c8')]({'title':_0xf7dbf9[_0x9aa673('0x2833')]?_0x9aa673('0x27f2')+_0xf7dbf9[_0x9aa673('0x2833')]+'\x20-\x20'+_0xf7dbf9['statusText']:_0x9aa673('0x1e13')+_0x382116[_0x9aa673('0x25f7')]()+_0x382116==='chat'?_0x9aa673('0x270d'):_0x9aa673('0x14e7'),'msg':_0xf7dbf9['data']?JSON['stringify'](_0xf7dbf9[_0x9aa673('0x11d0')]):_0xf7dbf9[_0x9aa673('0x94f')]()});});}function _0x466cc7(){var _0x526d7c=_0x149ef4,_0x267191=[{'id':0x191,'type':_0x526d7c('0x1a7a')},{'id':0x5dd,'type':_0x526d7c('0x1fdf')}],_0x447536=null;_0x897694[_0x526d7c('0x1da3')]()?_0x10906a[_0x526d7c('0x25d5')][_0x526d7c('0x22d5')]({'fields':_0x526d7c('0x1555'),'sort':_0x526d7c('0x2623'),'nolimit':'true'})[_0x526d7c('0xe59')][_0x526d7c('0xe19')](function(_0x37733e){var _0x49410d=_0x526d7c;_0x4e42a2['queues']=_0x37733e[_0x49410d('0x16a7')]||[];})['catch'](function(_0x47ea2f){var _0x2a04f6=_0x526d7c;_0x285216[_0x2a04f6('0x8c8')]({'title':_0x47ea2f['status']?_0x2a04f6('0x27f2')+_0x47ea2f[_0x2a04f6('0x2833')]+_0x2a04f6('0x1b7c')+_0x47ea2f[_0x2a04f6('0x1fd7')]:_0x2a04f6('0x1b28'),'msg':_0x47ea2f[_0x2a04f6('0x11d0')]?JSON[_0x2a04f6('0x3ad')](_0x47ea2f[_0x2a04f6('0x11d0')]):_0x47ea2f[_0x2a04f6('0x94f')]()});}):_0x10906a[_0x526d7c('0x25d5')][_0x526d7c('0x22d5')]({'fields':'id,name,type','sort':_0x526d7c('0x2623'),'nolimit':_0x526d7c('0x2206')})[_0x526d7c('0xe59')][_0x526d7c('0xe19')](function(_0x391f56){var _0x2a66e5=_0x526d7c;_0x447536=_0x391f56[_0x2a66e5('0x16a7')]||[];})[_0x526d7c('0xe19')](function(){var _0x1f7b19=_0x526d7c,_0x5c9390=[];for(var _0x1dd58b=0x0;_0x1dd58b<_0x267191[_0x1f7b19('0x25ae')];_0x1dd58b++){_0x5c9390[_0x1f7b19('0xb76')](_0x10906a[_0x1f7b19('0xb59')][_0x1f7b19('0x22d5')]({'userProfileId':_0x4e42a2[_0x1f7b19('0x15a5')][_0x1f7b19('0x1d04')],'sectionId':_0x267191[_0x1dd58b]['id']})[_0x1f7b19('0xe59')]);}return _0x567bf3[_0x1f7b19('0xf0e')](_0x5c9390);})[_0x526d7c('0xe19')](function(_0x2347f2){var _0x279ba7=_0x526d7c,_0x4af8d9=_0x32d445()[_0x279ba7('0x65a')](_0x2347f2,function(_0x2834df){var _0x936158=_0x279ba7;return _0x2834df&&_0x2834df['rows']?_0x2834df[_0x936158('0x16a7')][0x0]:null;}),_0xdbbd3b=[],_0x2c2581=function _0x22de23(_0x4977a4){var _0x8ba5a=_0x279ba7,_0x12f21e=_0x32d445()[_0x8ba5a('0xf15')](_0x4af8d9,[_0x8ba5a('0x964'),_0x267191[_0x4977a4]['id']]);if(_0x12f21e){if(!_0x12f21e['autoAssociation'])_0xdbbd3b[_0x8ba5a('0xb76')](_0x10906a[_0x8ba5a('0xd49')][_0x8ba5a('0x22d5')]({'sectionId':_0x12f21e['id']})[_0x8ba5a('0xe59')]);else{var _0x2c2a7e=[];_0x447536[_0x8ba5a('0x1d7e')](function(_0x4b06f5){var _0x30bfca=_0x8ba5a;_0x4b06f5[_0x30bfca('0x62e')]===_0x267191[_0x4977a4][_0x30bfca('0x62e')]&&_0x2c2a7e[_0x30bfca('0xb76')](_0x4b06f5);}),_0xdbbd3b['push']({'rows':_0x2c2a7e,'count':_0x2c2a7e[_0x8ba5a('0x25ae')]});}}};for(var _0x1f0b8b=0x0;_0x1f0b8b<_0x267191[_0x279ba7('0x25ae')];_0x1f0b8b++){_0x2c2581(_0x1f0b8b);}return _0x567bf3['all'](_0xdbbd3b);})['then'](function(_0x4fbbcd){var _0x554643=_0x526d7c,_0x147c05=[],_0x51395c=[];_0x4e42a2['triggerAllConditions']['rows']['forEach'](function(_0x1d9ac8){var _0x58f00a=a0_0x5325;if(_0x1d9ac8[_0x58f00a('0x15d1')]===_0x58f00a('0x26a8')){var _0x257ae9=_0x32d445()[_0x58f00a('0xf15')](_0x447536,{'name':_0x1d9ac8['value']});_0x51395c[_0x58f00a('0xb76')](_0x257ae9);}});for(var _0xaf2faf=0x0;_0xaf2faf<_0x4fbbcd[_0x554643('0x25ae')];_0xaf2faf++){var _0x22c62d=_0x4fbbcd[_0xaf2faf][_0x554643('0x16a7')]||[];_0x22c62d[_0x554643('0x1d7e')](function(_0x56a482){var _0x9af24=_0x554643;_0x147c05[_0x9af24('0xb76')](_0x56a482);});}!_0x32d445()[_0x554643('0x14b4')](_0x51395c)&&_0x51395c['forEach'](function(_0x20ddfe){var _0x5796e8=_0x554643;if(!_0x32d445()['some'](_0x147c05,[_0x5796e8('0x1104'),_0x20ddfe['id']])){var _0x20f8c3=_0x32d445()[_0x5796e8('0xf15')](_0x447536,{'id':_0x20ddfe['id']});_0x20f8c3[_0x5796e8('0x1e9d')]=![],_0x147c05['push'](_0x20f8c3);}}),_0x4e42a2['queues']=_0x147c05;})[_0x526d7c('0x223b')](function(_0x5b6c8a){var _0x523399=_0x526d7c;_0x285216['error']({'title':_0x5b6c8a[_0x523399('0x2833')]?'API:'+_0x5b6c8a[_0x523399('0x2833')]+_0x523399('0x1b7c')+_0x5b6c8a[_0x523399('0x1fd7')]:'SYSTEM:GET_QUEUES','msg':_0x5b6c8a[_0x523399('0x11d0')]?JSON[_0x523399('0x3ad')](_0x5b6c8a[_0x523399('0x11d0')]):_0x5b6c8a['toString']()});});}function _0x6b00bc(){var _0x25f99e=_0x149ef4;_0x897694[_0x25f99e('0x1da3')]()?_0x10906a[_0x25f99e('0x1979')][_0x25f99e('0x22d5')]({'fields':_0x25f99e('0x1210'),'type':_0x25f99e('0x1fdf'),'VoiceExtensionId':'null','nolimit':_0x25f99e('0x2206')})[_0x25f99e('0xe59')][_0x25f99e('0xe19')](function(_0x4f29e4){var _0x4cd203=_0x25f99e;_0x4e42a2[_0x4cd203('0x28ae')]=_0x4f29e4[_0x4cd203('0x16a7')]||[];})[_0x25f99e('0x223b')](function(_0x81e967){var _0xc691d8=_0x25f99e;_0x285216[_0xc691d8('0x8c8')]({'title':_0x81e967['status']?_0xc691d8('0x27f2')+_0x81e967['status']+_0xc691d8('0x1b7c')+_0x81e967['statusText']:_0xc691d8('0x24ba'),'msg':_0x81e967[_0xc691d8('0x11d0')]?JSON[_0xc691d8('0x3ad')](_0x81e967[_0xc691d8('0x11d0')]):_0x81e967[_0xc691d8('0x94f')]()});}):_0x10906a[_0x25f99e('0x1979')][_0x25f99e('0x22d5')]({'fields':_0x25f99e('0x1210'),'type':_0x25f99e('0x1fdf'),'VoiceExtensionId':_0x25f99e('0x1046'),'nolimit':_0x25f99e('0x2206')})[_0x25f99e('0xe59')][_0x25f99e('0xe19')](function(_0x586c6f){var _0x15fc96=_0x25f99e;_0x4e42a2[_0x15fc96('0x28ae')]=_0x586c6f[_0x15fc96('0x16a7')]||[];})[_0x25f99e('0xe19')](function(){var _0x4a9081=_0x25f99e;return _0x10906a['userProfileSection'][_0x4a9081('0x22d5')]({'userProfileId':_0x4e42a2[_0x4a9081('0x15a5')]['userProfileId'],'sectionId':0x193})[_0x4a9081('0xe59')];})['then'](function(_0x283cb3){var _0x5b4f5d=_0x25f99e,_0x2ca1de=_0x283cb3&&_0x283cb3[_0x5b4f5d('0x16a7')]?_0x283cb3[_0x5b4f5d('0x16a7')][0x0]:null;if(!_0x2ca1de){var _0x4db0ac=[],_0xa7fd60=[];_0x4e42a2[_0x5b4f5d('0x1e64')][_0x5b4f5d('0x16a7')][_0x5b4f5d('0x1d7e')](function(_0x3af828){var _0xf2082d=_0x5b4f5d;if(_0x3af828[_0xf2082d('0x15d1')]===_0xf2082d('0x4b3')){var _0x1893dd=_0x32d445()[_0xf2082d('0xf15')](_0x4e42a2[_0xf2082d('0x28ae')],{'id':Number(_0x3af828[_0xf2082d('0x2')])});_0xa7fd60[_0xf2082d('0xb76')](_0x1893dd);}});for(var _0x566120=0x0;_0x566120<_0x4e42a2[_0x5b4f5d('0x28ae')][_0x5b4f5d('0x25ae')];_0x566120++){var _0x2b7df7=_0x32d445()[_0x5b4f5d('0x201a')](_0xa7fd60,{'id':_0x4e42a2['outboundRoutes'][_0x566120]['id']});_0x2b7df7&&(_0x4e42a2[_0x5b4f5d('0x28ae')][_0x566120]['canSelect']=![],_0x4db0ac[_0x5b4f5d('0xb76')](_0x4e42a2[_0x5b4f5d('0x28ae')][_0x566120]));}_0x4e42a2[_0x5b4f5d('0x28ae')]=_0x4db0ac;}else{if(!_0x2ca1de['autoAssociation'])return _0x10906a[_0x5b4f5d('0xd49')][_0x5b4f5d('0x22d5')]({'sectionId':_0x2ca1de['id']})[_0x5b4f5d('0xe59')]['then'](function(_0x2b7e36){var _0x42d9dc=_0x5b4f5d,_0x5b5cae=_0x32d445()[_0x42d9dc('0x65a')](_0x2b7e36[_0x42d9dc('0x16a7')],function(_0x2c0e6d){var _0x388ea7=_0x42d9dc;return _0x32d445()[_0x388ea7('0xf15')](_0x4e42a2[_0x388ea7('0x28ae')],{'id':_0x2c0e6d[_0x388ea7('0x1104')]});}),_0x3f2ed3=null;_0x3f2ed3=[],_0x4e42a2[_0x42d9dc('0x1e64')]['rows'][_0x42d9dc('0x1d7e')](function(_0x2f98d5){var _0x67b466=_0x42d9dc;if(_0x2f98d5[_0x67b466('0x15d1')]===_0x67b466('0x4b3')){var _0x56a40d=_0x32d445()[_0x67b466('0xf15')](_0x4e42a2[_0x67b466('0x28ae')],{'id':Number(_0x2f98d5[_0x67b466('0x2')])});_0x3f2ed3[_0x67b466('0xb76')](_0x56a40d);}}),!_0x32d445()['isEmpty'](_0x3f2ed3)&&_0x3f2ed3[_0x42d9dc('0x1d7e')](function(_0x5eaa43){var _0x50d11e=_0x42d9dc;if(!_0x32d445()[_0x50d11e('0x201a')](_0x5b5cae,['id',_0x5eaa43['id']])){var _0x4e5b8c=_0x32d445()[_0x50d11e('0xf15')](_0x4e42a2['outboundRoutes'],{'id':_0x5eaa43['id']});_0x4e5b8c[_0x50d11e('0x1e9d')]=![],_0x5b5cae[_0x50d11e('0xb76')](_0x4e5b8c);}}),_0x4e42a2[_0x42d9dc('0x28ae')]=_0x5b5cae;});}})['catch'](function(_0x561afb){var _0x2fa5db=_0x25f99e;_0x285216[_0x2fa5db('0x8c8')]({'title':_0x561afb['status']?_0x2fa5db('0x27f2')+_0x561afb[_0x2fa5db('0x2833')]+_0x2fa5db('0x1b7c')+_0x561afb[_0x2fa5db('0x1fd7')]:_0x2fa5db('0x24ba'),'msg':_0x561afb[_0x2fa5db('0x11d0')]?JSON[_0x2fa5db('0x3ad')](_0x561afb[_0x2fa5db('0x11d0')]):_0x561afb['toString']()});});}function _0x11ecd3(){var _0x25deca=_0x149ef4;_0x897694[_0x25deca('0x1da3')]()?_0x10906a['user']['get']({'fields':_0x25deca('0x194c'),'sort':_0x25deca('0x2623'),'role':'agent','nolimit':_0x25deca('0x2206')})[_0x25deca('0xe59')][_0x25deca('0xe19')](function(_0x5d73ee){var _0x52e0e3=_0x25deca;_0x4e42a2[_0x52e0e3('0x29b')]=_0x5d73ee[_0x52e0e3('0x16a7')]||[];})[_0x25deca('0x223b')](function(_0x52b771){var _0x3e6673=_0x25deca;_0x285216['error']({'title':_0x52b771[_0x3e6673('0x2833')]?'API:'+_0x52b771[_0x3e6673('0x2833')]+'\x20-\x20'+_0x52b771[_0x3e6673('0x1fd7')]:_0x3e6673('0x1e86'),'msg':_0x52b771['data']?JSON['stringify'](_0x52b771['data']):_0x52b771[_0x3e6673('0x94f')]()});}):_0x10906a['user'][_0x25deca('0x22d5')]({'fields':_0x25deca('0x194c'),'sort':_0x25deca('0x2623'),'role':_0x25deca('0x108'),'nolimit':'true'})['$promise'][_0x25deca('0xe19')](function(_0x21e06d){var _0x878d92=_0x25deca;_0x4e42a2[_0x878d92('0x29b')]=_0x21e06d[_0x878d92('0x16a7')]||[];})[_0x25deca('0xe19')](function(){var _0x40cc10=_0x25deca;return _0x10906a[_0x40cc10('0xb59')]['get']({'userProfileId':_0x4e42a2[_0x40cc10('0x15a5')][_0x40cc10('0x1d04')],'sectionId':0xca})[_0x40cc10('0xe59')];})['then'](function(_0x4fa03c){var _0x338bbb=_0x25deca,_0x5004b1=_0x4fa03c&&_0x4fa03c[_0x338bbb('0x16a7')]?_0x4fa03c['rows'][0x0]:null;if(!_0x5004b1){var _0x2ebd6a=[],_0x29f490=[];_0x4e42a2[_0x338bbb('0x1e64')][_0x338bbb('0x16a7')][_0x338bbb('0x1d7e')](function(_0x5da505){var _0xa40b17=_0x338bbb;if(_0x5da505[_0xa40b17('0x15d1')]===_0xa40b17('0x108')){var _0xb150a3=_0x32d445()['find'](_0x4e42a2[_0xa40b17('0x29b')],{'name':_0x5da505[_0xa40b17('0x2')]});_0x29f490[_0xa40b17('0xb76')](_0xb150a3);}});for(var _0x5cfb99=0x0;_0x5cfb99<_0x4e42a2[_0x338bbb('0x29b')][_0x338bbb('0x25ae')];_0x5cfb99++){var _0x4a7dad=_0x32d445()[_0x338bbb('0x201a')](_0x29f490,{'id':_0x4e42a2[_0x338bbb('0x29b')][_0x5cfb99]['id']});_0x4a7dad&&(_0x4e42a2['agents'][_0x5cfb99][_0x338bbb('0x1e9d')]=![],_0x2ebd6a[_0x338bbb('0xb76')](_0x4e42a2[_0x338bbb('0x29b')][_0x5cfb99]));}_0x4e42a2[_0x338bbb('0x29b')]=_0x2ebd6a;}else{if(!_0x5004b1[_0x338bbb('0x11fd')])return _0x10906a[_0x338bbb('0xd49')][_0x338bbb('0x22d5')]({'sectionId':_0x5004b1['id']})[_0x338bbb('0xe59')][_0x338bbb('0xe19')](function(_0x1d0ccb){var _0x267879=_0x338bbb,_0x3b76c0=_0x32d445()[_0x267879('0x65a')](_0x1d0ccb[_0x267879('0x16a7')],function(_0x8217f3){var _0x197c69=_0x267879;return _0x32d445()[_0x197c69('0xf15')](_0x4e42a2[_0x197c69('0x29b')],{'id':_0x8217f3[_0x197c69('0x1104')]});}),_0x10ecd0=null;_0x10ecd0=[],_0x4e42a2['triggerAllConditions'][_0x267879('0x16a7')][_0x267879('0x1d7e')](function(_0x574790){var _0x50c0f7=_0x267879;if(_0x574790['field']===_0x50c0f7('0x108')){var _0x4aa5bd=_0x32d445()[_0x50c0f7('0xf15')](_0x4e42a2[_0x50c0f7('0x29b')],{'name':_0x574790['value']});_0x10ecd0[_0x50c0f7('0xb76')](_0x4aa5bd);}}),!_0x32d445()[_0x267879('0x14b4')](_0x10ecd0)&&_0x10ecd0[_0x267879('0x1d7e')](function(_0x5f5ac1){var _0x58a2fa=_0x267879;if(!_0x32d445()['some'](_0x3b76c0,['id',_0x5f5ac1['id']])){var _0x30f0d7=_0x32d445()[_0x58a2fa('0xf15')](_0x4e42a2[_0x58a2fa('0x29b')],{'id':_0x5f5ac1['id']});_0x30f0d7[_0x58a2fa('0x1e9d')]=![],_0x3b76c0[_0x58a2fa('0xb76')](_0x30f0d7);}}),_0x4e42a2[_0x267879('0x29b')]=_0x3b76c0;});}})['catch'](function(_0x7ddc0f){var _0x30815d=_0x25deca;_0x285216[_0x30815d('0x8c8')]({'title':_0x7ddc0f['status']?'API:'+_0x7ddc0f['status']+_0x30815d('0x1b7c')+_0x7ddc0f[_0x30815d('0x1fd7')]:_0x30815d('0x1e86'),'msg':_0x7ddc0f[_0x30815d('0x11d0')]?JSON['stringify'](_0x7ddc0f[_0x30815d('0x11d0')]):_0x7ddc0f[_0x30815d('0x94f')]()});});}function _0x48e9db(){var _0x1b3b4f=_0x149ef4;if(_0x4e42a2['trigger'][_0x1b3b4f('0x4e')]===_0x1b3b4f('0xe74')){if(_0x32d445()['some'](_0x4e42a2[_0x1b3b4f('0x1e64')][_0x1b3b4f('0x16a7')],['field',_0x1b3b4f('0x26a8')])){if(!_0x4e42a2[_0x1b3b4f('0x671')])_0x466cc7();}if(_0x32d445()[_0x1b3b4f('0x201a')](_0x4e42a2[_0x1b3b4f('0x1e64')][_0x1b3b4f('0x16a7')],[_0x1b3b4f('0x15d1'),_0x1b3b4f('0x4b3')])){if(!_0x4e42a2[_0x1b3b4f('0x28ae')])_0x6b00bc();}if(_0x32d445()[_0x1b3b4f('0x201a')](_0x4e42a2['triggerAllConditions'][_0x1b3b4f('0x16a7')],[_0x1b3b4f('0x15d1'),'agent'])){if(!_0x4e42a2[_0x1b3b4f('0x29b')])_0x11ecd3();}}else _0x5b3e55();}function _0xe2f077(_0x3536ea){var _0x5f0789=_0x149ef4;_0x4e42a2[_0x5f0789('0x1e64')]=_0x3536ea||{'count':0x0,'rows':[]},_0x48e9db();}function _0x3fe627(){var _0x388960=_0x149ef4;_0x4e42a2[_0x388960('0xa16')]['offset']=(_0x4e42a2[_0x388960('0xa16')][_0x388960('0xc08')]-0x1)*_0x4e42a2[_0x388960('0xa16')]['limit'],_0x4e42a2['promise']=_0x10906a[_0x388960('0x1481')][_0x388960('0x1ebd')](_0x4e42a2[_0x388960('0xa16')],_0xe2f077)[_0x388960('0xe59')];}function _0x43780b(_0xc9ea26,_0x31fba7){var _0x17f48e=_0x149ef4;_0x123c45['show']({'controller':'CreateOrEditAllConditionDialogController','controllerAs':'vm','templateUrl':_0x2ce170,'parent':angular[_0x17f48e('0x24a1')](_0x30f11d['body']),'targetEvent':_0xc9ea26,'clickOutsideToClose':!![],'locals':{'trigger':_0x4e42a2[_0x17f48e('0x1481')],'allCondition':_0x31fba7,'allConditions':_0x4e42a2['triggerAllConditions'][_0x17f48e('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x4e42a2['crudPermissions']}})[_0x17f48e('0xe19')](function(_0x9c9216){var _0x413e79=_0x17f48e;_0x9c9216&&(_0x4e42a2[_0x413e79('0x1e64')]={'count':_0x9c9216[_0x413e79('0x25ae')],'rows':_0x9c9216},_0x48e9db());});}function _0x29fed5(_0x1a2def,_0x2dd543){var _0x227b32=_0x149ef4,_0x3d9694=_0x123c45[_0x227b32('0xa5')]()[_0x227b32('0x13e4')](_0x6aaf97[_0x227b32('0x2159')](_0x227b32('0x25c6')))[_0x227b32('0x4d1')]('Delete\x20condition')[_0x227b32('0x1345')](_0x2dd543)['ok']('OK')[_0x227b32('0x2c1')](_0x6aaf97[_0x227b32('0x2159')](_0x227b32('0x717')));_0x123c45[_0x227b32('0x26b2')](_0x3d9694)[_0x227b32('0xe19')](function(){_0x57e83(_0x1a2def,!![]);});}function _0x57e83(_0x49d796,_0x1ca65a){var _0x2d76c2=_0x149ef4;_0x10906a[_0x2d76c2('0x1c03')][_0x2d76c2('0x229e')]({'id':_0x49d796['id']})[_0x2d76c2('0xe59')]['then'](function(){var _0x1a78c7=_0x2d76c2;_0x3fe627(),_0x1ca65a&&_0x285216['success']({'title':_0x6aaf97[_0x1a78c7('0x2159')]('TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE')});})[_0x2d76c2('0x223b')](function(_0x2f6bd6){var _0x4fc1c2=_0x2d76c2;if(_0x2f6bd6[_0x4fc1c2('0x11d0')]&&_0x2f6bd6[_0x4fc1c2('0x11d0')][_0x4fc1c2('0xcd2')]&&_0x2f6bd6['data'][_0x4fc1c2('0xcd2')][_0x4fc1c2('0x25ae')]){_0x4e42a2[_0x4fc1c2('0xcd2')]=_0x2f6bd6[_0x4fc1c2('0x11d0')][_0x4fc1c2('0xcd2')]||[{'message':_0x2f6bd6['toString'](),'type':_0x4fc1c2('0x207f')}];for(var _0x326c73=0x0;_0x326c73<_0x2f6bd6['data']['errors']['length'];_0x326c73++){_0x285216[_0x4fc1c2('0x8c8')]({'title':_0x2f6bd6[_0x4fc1c2('0x11d0')]['errors'][_0x326c73]['type'],'msg':_0x2f6bd6[_0x4fc1c2('0x11d0')][_0x4fc1c2('0xcd2')][_0x326c73][_0x4fc1c2('0x27e8')]});}}else _0x285216[_0x4fc1c2('0x8c8')]({'title':_0x2f6bd6['status']?_0x4fc1c2('0x27f2')+_0x2f6bd6[_0x4fc1c2('0x2833')]+_0x4fc1c2('0x1b7c')+_0x2f6bd6[_0x4fc1c2('0x1fd7')]:_0x4fc1c2('0x207f'),'msg':_0x2f6bd6[_0x4fc1c2('0x11d0')]?JSON['stringify'](_0x2f6bd6[_0x4fc1c2('0x11d0')]['message']):_0x2f6bd6[_0x4fc1c2('0x27e8')]||_0x2f6bd6[_0x4fc1c2('0x94f')]()});});}function _0x455fae(){var _0x1ad989=_0x149ef4,_0x1125ce=angular[_0x1ad989('0x89')](_0x4e42a2[_0x1ad989('0x1f00')]);return _0x4e42a2[_0x1ad989('0x1f00')]=[],_0x1125ce;}function _0x45c4e1(_0x152c40){var _0x26e68c=_0x149ef4,_0x305a24=_0x123c45[_0x26e68c('0xa5')]()[_0x26e68c('0x13e4')](_0x6aaf97['instant'](_0x26e68c('0x89b')))[_0x26e68c('0xd0')](_0x6aaf97[_0x26e68c('0x2159')](_0x26e68c('0x20a9'),{'total':_0x4e42a2[_0x26e68c('0x1f00')][_0x26e68c('0x25ae')]}))[_0x26e68c('0x4d1')]('Delete\x20conditions')[_0x26e68c('0x1345')](_0x152c40)['ok']('OK')['cancel'](_0x6aaf97['instant']('TOOLS.CANCEL'));_0x123c45[_0x26e68c('0x26b2')](_0x305a24)[_0x26e68c('0xe19')](function(){var _0x5ab553=_0x26e68c;_0x4e42a2['selectedTriggerAllConditions']['forEach'](function(_0x29c1f0){_0x57e83(_0x29c1f0);}),_0x4e42a2[_0x5ab553('0x1f00')]=[],_0x285216[_0x5ab553('0x425')]({'title':_0x6aaf97[_0x5ab553('0x2159')]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE')});});}var _0x1b5d33=!![],_0x113f3c=0x1;_0x2b4005['$watch'](_0x149ef4('0x1607'),function(_0x3fac50,_0x282673){var _0x4ce275=_0x149ef4;_0x1b5d33?_0x494a87(function(){_0x1b5d33=![];}):(!_0x282673&&(_0x113f3c=_0x4e42a2[_0x4ce275('0xa16')][_0x4ce275('0xc08')]),_0x3fac50!==_0x282673&&(_0x4e42a2[_0x4ce275('0xa16')][_0x4ce275('0xc08')]=0x1),!_0x3fac50&&(_0x4e42a2[_0x4ce275('0xa16')]['page']=_0x113f3c),_0x3fe627());});}const _0x22ba88=_0x2aafc3;_0x19f6a9[_0xb635d2('0xb0c')]=['$scope','$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x929'),_0xb635d2('0xecd'),_0xb635d2('0x1481'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x19f6a9(_0x2a818b,_0x4077e1,_0x58214d,_0x394133,_0x46c40d,_0x459ad6,_0x5585bc,_0x3e49bf,_0x3685d3,_0xac86cd,_0x2e5241,_0x20f1bd,_0x18e90a,_0x4a0d89,_0x26cc37){var _0x5cbe29=_0xb635d2,_0x1f7ab3=this;_0x1f7ab3[_0x5cbe29('0x15a5')]=_0x20f1bd[_0x5cbe29('0x1ef8')](),_0x1f7ab3['errors']=[],_0x1f7ab3[_0x5cbe29('0x22f1')]=_0x4a0d89,_0x1f7ab3[_0x5cbe29('0x5c1')]=_0x18e90a,_0x1f7ab3[_0x5cbe29('0xb3d')]=_0x26cc37,_0x1f7ab3[_0x5cbe29('0x1ccb')]={},_0x1f7ab3[_0x5cbe29('0x25ac')]=_0x1f7ab3[_0x5cbe29('0x22f1')]&&_0x1f7ab3[_0x5cbe29('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f7ab3[_0x5cbe29('0x13e4')]=_0x5cbe29('0x4e8'),_0x1f7ab3['allCondition']=angular[_0x5cbe29('0x89')](_0x3685d3),_0x1f7ab3[_0x5cbe29('0x929')]=_0x3e49bf,_0x1f7ab3[_0x5cbe29('0x1954')]=![],_0x1f7ab3['trigger']=angular[_0x5cbe29('0x89')](_0xac86cd);!_0x1f7ab3[_0x5cbe29('0xecd')]&&(_0x1f7ab3[_0x5cbe29('0xecd')]={'field':'queue','operator':_0x5cbe29('0x1f15'),'value':'in'},_0x1f7ab3[_0x5cbe29('0x13e4')]=_0x5cbe29('0x11b8'),_0x1f7ab3[_0x5cbe29('0x1954')]=!![]);_0x4077e1[_0x5cbe29('0x2ef')]['id']&&(_0x1f7ab3[_0x5cbe29('0xecd')][_0x5cbe29('0x16d0')]=_0x4077e1[_0x5cbe29('0x2ef')]['id']);_0x1f7ab3['addNewAllCondition']=_0x138cc9,_0x1f7ab3[_0x5cbe29('0x25bd')]=_0x3eb8e1,_0x1f7ab3[_0x5cbe29('0x8af')]=_0x29bda4,_0x1f7ab3[_0x5cbe29('0x2635')]=_0x2840dc,_0x1f7ab3[_0x5cbe29('0x2584')]=_0x5cfe0c,_0x20f1bd['hasRole'](_0x5cbe29('0xd14'))?_0x2e5241['chatWebsite']['get']({'fields':_0x5cbe29('0x104'),'sort':'id','nolimit':'true'})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0x102fee){var _0x303ecb=_0x5cbe29;_0x1f7ab3[_0x303ecb('0x607')]=_0x102fee[_0x303ecb('0x16a7')]||[];})[_0x5cbe29('0x223b')](function(_0x19d5d8){var _0x24c82f=_0x5cbe29;_0x5585bc['error']({'title':_0x19d5d8[_0x24c82f('0x2833')]?_0x24c82f('0x27f2')+_0x19d5d8['status']+_0x24c82f('0x1b7c')+_0x19d5d8[_0x24c82f('0x1fd7')]:_0x24c82f('0x2421'),'msg':_0x19d5d8['data']?JSON[_0x24c82f('0x3ad')](_0x19d5d8['data']):_0x19d5d8[_0x24c82f('0x94f')]()});}):_0x2e5241[_0x5cbe29('0xcda')][_0x5cbe29('0x22d5')]({'fields':'id,name','sort':'id','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0x23b4b1){var _0x4be37b=_0x5cbe29;_0x1f7ab3[_0x4be37b('0x607')]=_0x23b4b1[_0x4be37b('0x16a7')]||[];})[_0x5cbe29('0xe19')](function(){var _0x2bd987=_0x5cbe29;return _0x2e5241[_0x2bd987('0xb59')]['get']({'userProfileId':_0x1f7ab3['currentUser'][_0x2bd987('0x1d04')],'sectionId':0x1f6})['$promise'];})[_0x5cbe29('0xe19')](function(_0x34ab69){var _0x13eebf=_0x5cbe29,_0x3bca40=_0x34ab69&&_0x34ab69[_0x13eebf('0x16a7')]?_0x34ab69[_0x13eebf('0x16a7')][0x0]:null;if(!_0x3bca40){var _0x1304af=[],_0x30cfe3=null;_0x1f7ab3[_0x13eebf('0xecd')]&&(_0x30cfe3=_0x32d445()['find'](_0x1f7ab3['chatAccounts'],{'id':Number(_0x1f7ab3[_0x13eebf('0xecd')]['value'])}));for(var _0x30e23f=0x0;_0x30e23f<_0x1f7ab3['chatAccounts'][_0x13eebf('0x25ae')];_0x30e23f++){_0x30cfe3&&_0x1f7ab3['chatAccounts'][_0x30e23f]['id']===_0x30cfe3['id']&&(_0x1f7ab3[_0x13eebf('0x607')][_0x30e23f][_0x13eebf('0x1e9d')]=![],_0x1304af[_0x13eebf('0xb76')](_0x1f7ab3[_0x13eebf('0x607')][_0x30e23f]));}_0x1f7ab3[_0x13eebf('0x607')]=_0x1304af;}else{if(!_0x3bca40[_0x13eebf('0x11fd')])return _0x2e5241[_0x13eebf('0xd49')][_0x13eebf('0x22d5')]({'sectionId':_0x3bca40['id']})[_0x13eebf('0xe59')][_0x13eebf('0xe19')](function(_0x1d2949){var _0x39833d=_0x13eebf,_0x326aca=_0x32d445()['map'](_0x1d2949['rows'],function(_0x5f1c8c){var _0x36ceea=a0_0x5325;return _0x32d445()[_0x36ceea('0xf15')](_0x1f7ab3[_0x36ceea('0x607')],{'id':_0x5f1c8c[_0x36ceea('0x1104')]});}),_0x41eb29=null;_0x1f7ab3[_0x39833d('0xecd')]&&(_0x41eb29=_0x32d445()['find'](_0x1f7ab3['chatAccounts'],{'id':Number(_0x1f7ab3[_0x39833d('0xecd')][_0x39833d('0x2')])}));if(_0x41eb29&&!_0x32d445()[_0x39833d('0x201a')](_0x326aca,['id',_0x41eb29['id']])){var _0x19ce3a=_0x32d445()[_0x39833d('0xf15')](_0x1f7ab3[_0x39833d('0x607')],{'id':_0x41eb29['id']});_0x19ce3a[_0x39833d('0x1e9d')]=![],_0x326aca[_0x39833d('0xb76')](_0x19ce3a);}_0x1f7ab3[_0x39833d('0x607')]=_0x326aca;});}})[_0x5cbe29('0x223b')](function(_0x2efdbd){var _0x2b2e1c=_0x5cbe29;_0x5585bc[_0x2b2e1c('0x8c8')]({'title':_0x2efdbd[_0x2b2e1c('0x2833')]?_0x2b2e1c('0x27f2')+_0x2efdbd['status']+_0x2b2e1c('0x1b7c')+_0x2efdbd['statusText']:_0x2b2e1c('0xabc'),'msg':_0x2efdbd[_0x2b2e1c('0x11d0')]?JSON[_0x2b2e1c('0x3ad')](_0x2efdbd[_0x2b2e1c('0x11d0')]):_0x2efdbd[_0x2b2e1c('0x94f')]()});}),_0x20f1bd['hasRole'](_0x5cbe29('0xd14'))?_0x2e5241[_0x5cbe29('0x17f0')][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x104'),'sort':'id','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0x5cc4c7){var _0x39e6f4=_0x5cbe29;_0x1f7ab3[_0x39e6f4('0x248b')]=_0x5cc4c7['rows']||[];})[_0x5cbe29('0x223b')](function(_0x4bbdf5){var _0xb5c146=_0x5cbe29;_0x5585bc[_0xb5c146('0x8c8')]({'title':_0x4bbdf5['status']?_0xb5c146('0x27f2')+_0x4bbdf5['status']+_0xb5c146('0x1b7c')+_0x4bbdf5[_0xb5c146('0x1fd7')]:_0xb5c146('0x18f4'),'msg':_0x4bbdf5[_0xb5c146('0x11d0')]?JSON[_0xb5c146('0x3ad')](_0x4bbdf5[_0xb5c146('0x11d0')]):_0x4bbdf5['toString']()});}):_0x2e5241[_0x5cbe29('0x17f0')][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x104'),'sort':'id','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')]['then'](function(_0x2ab1e6){var _0x281b47=_0x5cbe29;_0x1f7ab3[_0x281b47('0x248b')]=_0x2ab1e6['rows']||[];})[_0x5cbe29('0xe19')](function(){var _0x71f5ed=_0x5cbe29;return _0x2e5241[_0x71f5ed('0xb59')][_0x71f5ed('0x22d5')]({'userProfileId':_0x1f7ab3[_0x71f5ed('0x15a5')][_0x71f5ed('0x1d04')],'sectionId':0x25a})[_0x71f5ed('0xe59')];})[_0x5cbe29('0xe19')](function(_0xf875e5){var _0x44d63b=_0x5cbe29,_0x487a28=_0xf875e5&&_0xf875e5['rows']?_0xf875e5[_0x44d63b('0x16a7')][0x0]:null;if(!_0x487a28){var _0x323ae6=[],_0x558795=null;_0x1f7ab3[_0x44d63b('0xecd')]&&(_0x558795=_0x32d445()['find'](_0x1f7ab3[_0x44d63b('0x248b')],{'id':Number(_0x1f7ab3[_0x44d63b('0xecd')][_0x44d63b('0x2')])}));for(var _0x41ad66=0x0;_0x41ad66<_0x1f7ab3[_0x44d63b('0x248b')][_0x44d63b('0x25ae')];_0x41ad66++){_0x558795&&_0x1f7ab3[_0x44d63b('0x248b')][_0x41ad66]['id']===_0x558795['id']&&(_0x1f7ab3[_0x44d63b('0x248b')][_0x41ad66][_0x44d63b('0x1e9d')]=![],_0x323ae6['push'](_0x1f7ab3[_0x44d63b('0x248b')][_0x41ad66]));}_0x1f7ab3[_0x44d63b('0x248b')]=_0x323ae6;}else{if(!_0x487a28[_0x44d63b('0x11fd')])return _0x2e5241['userProfileResource']['get']({'sectionId':_0x487a28['id']})[_0x44d63b('0xe59')]['then'](function(_0x19da8a){var _0x27fe1a=_0x44d63b,_0x97b233=_0x32d445()[_0x27fe1a('0x65a')](_0x19da8a[_0x27fe1a('0x16a7')],function(_0x5976c2){var _0x3d63bc=_0x27fe1a;return _0x32d445()[_0x3d63bc('0xf15')](_0x1f7ab3[_0x3d63bc('0x248b')],{'id':_0x5976c2[_0x3d63bc('0x1104')]});}),_0x23a222=null;_0x1f7ab3['allCondition']&&(_0x23a222=_0x32d445()[_0x27fe1a('0xf15')](_0x1f7ab3['mailAccounts'],{'id':Number(_0x1f7ab3[_0x27fe1a('0xecd')][_0x27fe1a('0x2')])}));if(_0x23a222&&!_0x32d445()[_0x27fe1a('0x201a')](_0x97b233,['id',_0x23a222['id']])){var _0x5e7567=_0x32d445()['find'](_0x1f7ab3[_0x27fe1a('0x248b')],{'id':_0x23a222['id']});_0x5e7567[_0x27fe1a('0x1e9d')]=![],_0x97b233[_0x27fe1a('0xb76')](_0x5e7567);}_0x1f7ab3[_0x27fe1a('0x248b')]=_0x97b233;});}})['catch'](function(_0x999dc5){var _0x2d6816=_0x5cbe29;_0x5585bc['error']({'title':_0x999dc5[_0x2d6816('0x2833')]?_0x2d6816('0x27f2')+_0x999dc5[_0x2d6816('0x2833')]+_0x2d6816('0x1b7c')+_0x999dc5[_0x2d6816('0x1fd7')]:_0x2d6816('0xff3'),'msg':_0x999dc5[_0x2d6816('0x11d0')]?JSON[_0x2d6816('0x3ad')](_0x999dc5[_0x2d6816('0x11d0')]):_0x999dc5[_0x2d6816('0x94f')]()});}),_0x20f1bd[_0x5cbe29('0x179e')](_0x5cbe29('0xd14'))?_0x2e5241['smsAccount'][_0x5cbe29('0x22d5')]({'fields':'id,name','sort':'id','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0x5f0be8){var _0x21dbd7=_0x5cbe29;_0x1f7ab3['smsAccounts']=_0x5f0be8[_0x21dbd7('0x16a7')]||[];})[_0x5cbe29('0x223b')](function(_0x3de6ae){var _0x5e5d69=_0x5cbe29;_0x5585bc['error']({'title':_0x3de6ae['status']?_0x5e5d69('0x27f2')+_0x3de6ae[_0x5e5d69('0x2833')]+_0x5e5d69('0x1b7c')+_0x3de6ae[_0x5e5d69('0x1fd7')]:_0x5e5d69('0x61a'),'msg':_0x3de6ae[_0x5e5d69('0x11d0')]?JSON[_0x5e5d69('0x3ad')](_0x3de6ae['data']):_0x3de6ae[_0x5e5d69('0x94f')]()});}):_0x2e5241[_0x5cbe29('0x1437')]['get']({'fields':'id,name','sort':'id','nolimit':_0x5cbe29('0x2206')})['$promise']['then'](function(_0x24ab23){var _0x3d4769=_0x5cbe29;_0x1f7ab3['smsAccounts']=_0x24ab23[_0x3d4769('0x16a7')]||[];})[_0x5cbe29('0xe19')](function(){var _0x3eca83=_0x5cbe29;return _0x2e5241[_0x3eca83('0xb59')][_0x3eca83('0x22d5')]({'userProfileId':_0x1f7ab3[_0x3eca83('0x15a5')][_0x3eca83('0x1d04')],'sectionId':0x2be})[_0x3eca83('0xe59')];})[_0x5cbe29('0xe19')](function(_0x31b25f){var _0x2235d0=_0x5cbe29,_0x703506=_0x31b25f&&_0x31b25f[_0x2235d0('0x16a7')]?_0x31b25f['rows'][0x0]:null;if(!_0x703506){var _0x26e055=[],_0x10ede6=null;_0x1f7ab3[_0x2235d0('0xecd')]&&(_0x10ede6=_0x32d445()['find'](_0x1f7ab3[_0x2235d0('0x25db')],{'id':Number(_0x1f7ab3[_0x2235d0('0xecd')][_0x2235d0('0x2')])}));for(var _0x4042c1=0x0;_0x4042c1<_0x1f7ab3[_0x2235d0('0x25db')][_0x2235d0('0x25ae')];_0x4042c1++){_0x10ede6&&_0x1f7ab3[_0x2235d0('0x25db')][_0x4042c1]['id']===_0x10ede6['id']&&(_0x1f7ab3['smsAccounts'][_0x4042c1][_0x2235d0('0x1e9d')]=![],_0x26e055[_0x2235d0('0xb76')](_0x1f7ab3[_0x2235d0('0x25db')][_0x4042c1]));}_0x1f7ab3[_0x2235d0('0x25db')]=_0x26e055;}else{if(!_0x703506[_0x2235d0('0x11fd')])return _0x2e5241[_0x2235d0('0xd49')][_0x2235d0('0x22d5')]({'sectionId':_0x703506['id']})[_0x2235d0('0xe59')][_0x2235d0('0xe19')](function(_0xf3c380){var _0x1d8a4b=_0x2235d0,_0x4b0840=_0x32d445()['map'](_0xf3c380[_0x1d8a4b('0x16a7')],function(_0x2bb44d){var _0x4b7c8c=_0x1d8a4b;return _0x32d445()[_0x4b7c8c('0xf15')](_0x1f7ab3['smsAccounts'],{'id':_0x2bb44d[_0x4b7c8c('0x1104')]});}),_0x1e4f9f=null;_0x1f7ab3['allCondition']&&(_0x1e4f9f=_0x32d445()[_0x1d8a4b('0xf15')](_0x1f7ab3[_0x1d8a4b('0x25db')],{'id':Number(_0x1f7ab3['allCondition'][_0x1d8a4b('0x2')])}));if(_0x1e4f9f&&!_0x32d445()['some'](_0x4b0840,['id',_0x1e4f9f['id']])){var _0xbeeb03=_0x32d445()[_0x1d8a4b('0xf15')](_0x1f7ab3[_0x1d8a4b('0x25db')],{'id':_0x1e4f9f['id']});_0xbeeb03[_0x1d8a4b('0x1e9d')]=![],_0x4b0840[_0x1d8a4b('0xb76')](_0xbeeb03);}_0x1f7ab3['smsAccounts']=_0x4b0840;});}})['catch'](function(_0x4c94d2){var _0x3ecd9a=_0x5cbe29;_0x5585bc[_0x3ecd9a('0x8c8')]({'title':_0x4c94d2[_0x3ecd9a('0x2833')]?_0x3ecd9a('0x27f2')+_0x4c94d2[_0x3ecd9a('0x2833')]+'\x20-\x20'+_0x4c94d2[_0x3ecd9a('0x1fd7')]:_0x3ecd9a('0x1079'),'msg':_0x4c94d2['data']?JSON[_0x3ecd9a('0x3ad')](_0x4c94d2['data']):_0x4c94d2[_0x3ecd9a('0x94f')]()});}),_0x20f1bd['hasRole'](_0x5cbe29('0xd14'))?_0x2e5241[_0x5cbe29('0x223')][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x104'),'sort':'id','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')]['then'](function(_0x2413df){var _0x4484e7=_0x5cbe29;_0x1f7ab3[_0x4484e7('0x14cf')]=_0x2413df['rows']||[];})[_0x5cbe29('0x223b')](function(_0x5ecfa5){var _0x52094c=_0x5cbe29;_0x5585bc['error']({'title':_0x5ecfa5['status']?_0x52094c('0x27f2')+_0x5ecfa5[_0x52094c('0x2833')]+_0x52094c('0x1b7c')+_0x5ecfa5['statusText']:'SYSTEM:GET_WHATSAPPACCOUNTS','msg':_0x5ecfa5[_0x52094c('0x11d0')]?JSON[_0x52094c('0x3ad')](_0x5ecfa5['data']):_0x5ecfa5[_0x52094c('0x94f')]()});}):_0x2e5241[_0x5cbe29('0x223')][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x104'),'sort':'id','nolimit':'true'})[_0x5cbe29('0xe59')]['then'](function(_0x1fd988){var _0x3e4293=_0x5cbe29;_0x1f7ab3[_0x3e4293('0x14cf')]=_0x1fd988[_0x3e4293('0x16a7')]||[];})[_0x5cbe29('0xe19')](function(){var _0x530868=_0x5cbe29;return _0x2e5241['userProfileSection'][_0x530868('0x22d5')]({'userProfileId':_0x1f7ab3[_0x530868('0x15a5')][_0x530868('0x1d04')],'sectionId':0x836})[_0x530868('0xe59')];})['then'](function(_0xf0bc58){var _0x1e3761=_0x5cbe29,_0x114166=_0xf0bc58&&_0xf0bc58[_0x1e3761('0x16a7')]?_0xf0bc58['rows'][0x0]:null;if(!_0x114166){var _0x26aa72=[],_0x1368ab=null;_0x1f7ab3[_0x1e3761('0xecd')]&&(_0x1368ab=_0x32d445()[_0x1e3761('0xf15')](_0x1f7ab3['whatsappAccounts'],{'id':Number(_0x1f7ab3[_0x1e3761('0xecd')][_0x1e3761('0x2')])}));for(var _0x584269=0x0;_0x584269<_0x1f7ab3['whatsappAccounts'][_0x1e3761('0x25ae')];_0x584269++){_0x1368ab&&_0x1f7ab3[_0x1e3761('0x14cf')][_0x584269]['id']===_0x1368ab['id']&&(_0x1f7ab3[_0x1e3761('0x14cf')][_0x584269][_0x1e3761('0x1e9d')]=![],_0x26aa72[_0x1e3761('0xb76')](_0x1f7ab3['whatsappAccounts'][_0x584269]));}_0x1f7ab3[_0x1e3761('0x14cf')]=_0x26aa72;}else{if(!_0x114166[_0x1e3761('0x11fd')])return _0x2e5241['userProfileResource'][_0x1e3761('0x22d5')]({'sectionId':_0x114166['id']})['$promise'][_0x1e3761('0xe19')](function(_0x15e169){var _0x49801a=_0x1e3761,_0x5d72b0=_0x32d445()[_0x49801a('0x65a')](_0x15e169['rows'],function(_0x5a1251){var _0x2ba555=_0x49801a;return _0x32d445()[_0x2ba555('0xf15')](_0x1f7ab3['whatsappAccounts'],{'id':_0x5a1251[_0x2ba555('0x1104')]});}),_0x180ef4=null;_0x1f7ab3[_0x49801a('0xecd')]&&(_0x180ef4=_0x32d445()['find'](_0x1f7ab3[_0x49801a('0x14cf')],{'id':Number(_0x1f7ab3[_0x49801a('0xecd')]['value'])}));if(_0x180ef4&&!_0x32d445()['some'](_0x5d72b0,['id',_0x180ef4['id']])){var _0x28c19d=_0x32d445()['find'](_0x1f7ab3[_0x49801a('0x14cf')],{'id':_0x180ef4['id']});_0x28c19d[_0x49801a('0x1e9d')]=![],_0x5d72b0[_0x49801a('0xb76')](_0x28c19d);}_0x1f7ab3[_0x49801a('0x14cf')]=_0x5d72b0;});}})[_0x5cbe29('0x223b')](function(_0x2376b4){var _0x16f820=_0x5cbe29;_0x5585bc[_0x16f820('0x8c8')]({'title':_0x2376b4[_0x16f820('0x2833')]?'API:'+_0x2376b4[_0x16f820('0x2833')]+_0x16f820('0x1b7c')+_0x2376b4[_0x16f820('0x1fd7')]:'SYSTEM:GETwhatsappAccounts','msg':_0x2376b4[_0x16f820('0x11d0')]?JSON[_0x16f820('0x3ad')](_0x2376b4[_0x16f820('0x11d0')]):_0x2376b4[_0x16f820('0x94f')]()});}),_0x20f1bd[_0x5cbe29('0x179e')]('admin')?_0x2e5241[_0x5cbe29('0x688')][_0x5cbe29('0x22d5')]({'fields':'id,name','sort':'id','nolimit':_0x5cbe29('0x2206')})['$promise']['then'](function(_0x4c8bf6){var _0x2b8c73=_0x5cbe29;_0x1f7ab3['faxAccounts']=_0x4c8bf6[_0x2b8c73('0x16a7')]||[];})[_0x5cbe29('0x223b')](function(_0x4aa88a){var _0x3d3551=_0x5cbe29;_0x5585bc[_0x3d3551('0x8c8')]({'title':_0x4aa88a['status']?_0x3d3551('0x27f2')+_0x4aa88a[_0x3d3551('0x2833')]+_0x3d3551('0x1b7c')+_0x4aa88a[_0x3d3551('0x1fd7')]:_0x3d3551('0xc45'),'msg':_0x4aa88a['data']?JSON[_0x3d3551('0x3ad')](_0x4aa88a['data']):_0x4aa88a[_0x3d3551('0x94f')]()});}):_0x2e5241[_0x5cbe29('0x688')][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x104'),'sort':'id','nolimit':'true'})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0x346c97){var _0x3b9b39=_0x5cbe29;_0x1f7ab3[_0x3b9b39('0x1a77')]=_0x346c97['rows']||[];})[_0x5cbe29('0xe19')](function(){var _0x2c92a8=_0x5cbe29;return _0x2e5241[_0x2c92a8('0xb59')][_0x2c92a8('0x22d5')]({'userProfileId':_0x1f7ab3[_0x2c92a8('0x15a5')][_0x2c92a8('0x1d04')],'sectionId':0x386})[_0x2c92a8('0xe59')];})[_0x5cbe29('0xe19')](function(_0x1a3344){var _0x22d96c=_0x5cbe29,_0x51c081=_0x1a3344&&_0x1a3344['rows']?_0x1a3344[_0x22d96c('0x16a7')][0x0]:null;if(!_0x51c081){var _0x369104=[],_0x135cdc=null;_0x1f7ab3[_0x22d96c('0xecd')]&&(_0x135cdc=_0x32d445()['find'](_0x1f7ab3[_0x22d96c('0x1a77')],{'id':Number(_0x1f7ab3['allCondition']['value'])}));for(var _0x52ca65=0x0;_0x52ca65<_0x1f7ab3['faxAccounts'][_0x22d96c('0x25ae')];_0x52ca65++){_0x135cdc&&_0x1f7ab3[_0x22d96c('0x1a77')][_0x52ca65]['id']===_0x135cdc['id']&&(_0x1f7ab3[_0x22d96c('0x1a77')][_0x52ca65][_0x22d96c('0x1e9d')]=![],_0x369104['push'](_0x1f7ab3[_0x22d96c('0x1a77')][_0x52ca65]));}_0x1f7ab3[_0x22d96c('0x1a77')]=_0x369104;}else{if(!_0x51c081[_0x22d96c('0x11fd')])return _0x2e5241[_0x22d96c('0xd49')][_0x22d96c('0x22d5')]({'sectionId':_0x51c081['id']})[_0x22d96c('0xe59')][_0x22d96c('0xe19')](function(_0x53afea){var _0x2104aa=_0x22d96c,_0x296859=_0x32d445()[_0x2104aa('0x65a')](_0x53afea[_0x2104aa('0x16a7')],function(_0xb3fe0f){var _0xd72f6a=_0x2104aa;return _0x32d445()[_0xd72f6a('0xf15')](_0x1f7ab3['faxAccounts'],{'id':_0xb3fe0f[_0xd72f6a('0x1104')]});}),_0x5e1378=null;_0x1f7ab3['allCondition']&&(_0x5e1378=_0x32d445()['find'](_0x1f7ab3['faxAccounts'],{'id':Number(_0x1f7ab3[_0x2104aa('0xecd')][_0x2104aa('0x2')])}));if(_0x5e1378&&!_0x32d445()[_0x2104aa('0x201a')](_0x296859,['id',_0x5e1378['id']])){var _0x5ac948=_0x32d445()[_0x2104aa('0xf15')](_0x1f7ab3[_0x2104aa('0x1a77')],{'id':_0x5e1378['id']});_0x5ac948[_0x2104aa('0x1e9d')]=![],_0x296859['push'](_0x5ac948);}_0x1f7ab3[_0x2104aa('0x1a77')]=_0x296859;});}})[_0x5cbe29('0x223b')](function(_0x46b60f){var _0x302bb8=_0x5cbe29;_0x5585bc[_0x302bb8('0x8c8')]({'title':_0x46b60f[_0x302bb8('0x2833')]?_0x302bb8('0x27f2')+_0x46b60f[_0x302bb8('0x2833')]+_0x302bb8('0x1b7c')+_0x46b60f['statusText']:_0x302bb8('0x2744'),'msg':_0x46b60f[_0x302bb8('0x11d0')]?JSON[_0x302bb8('0x3ad')](_0x46b60f[_0x302bb8('0x11d0')]):_0x46b60f[_0x302bb8('0x94f')]()});}),_0x20f1bd[_0x5cbe29('0x179e')](_0x5cbe29('0xd14'))?_0x2e5241['openchannelAccount'][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x104'),'sort':'id','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')]['then'](function(_0x135136){var _0x69cd50=_0x5cbe29;_0x1f7ab3[_0x69cd50('0x86e')]=_0x135136[_0x69cd50('0x16a7')]||[];})[_0x5cbe29('0x223b')](function(_0x59d805){var _0x291ad2=_0x5cbe29;_0x5585bc[_0x291ad2('0x8c8')]({'title':_0x59d805['status']?_0x291ad2('0x27f2')+_0x59d805[_0x291ad2('0x2833')]+'\x20-\x20'+_0x59d805['statusText']:_0x291ad2('0x1f3e'),'msg':_0x59d805[_0x291ad2('0x11d0')]?JSON[_0x291ad2('0x3ad')](_0x59d805['data']):_0x59d805['toString']()});}):_0x2e5241['openchannelAccount'][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x104'),'sort':'id','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0x1bb81b){var _0x57e93b=_0x5cbe29;_0x1f7ab3[_0x57e93b('0x86e')]=_0x1bb81b['rows']||[];})[_0x5cbe29('0xe19')](function(){var _0x1990a0=_0x5cbe29;return _0x2e5241[_0x1990a0('0xb59')][_0x1990a0('0x22d5')]({'userProfileId':_0x1f7ab3[_0x1990a0('0x15a5')][_0x1990a0('0x1d04')],'sectionId':0x322})['$promise'];})['then'](function(_0x3aa26f){var _0x4b083f=_0x5cbe29,_0x2d7911=_0x3aa26f&&_0x3aa26f[_0x4b083f('0x16a7')]?_0x3aa26f['rows'][0x0]:null;if(!_0x2d7911){var _0xb6b2f6=[],_0x599907=null;_0x1f7ab3[_0x4b083f('0xecd')]&&(_0x599907=_0x32d445()[_0x4b083f('0xf15')](_0x1f7ab3[_0x4b083f('0x86e')],{'id':Number(_0x1f7ab3[_0x4b083f('0xecd')][_0x4b083f('0x2')])}));for(var _0x1fc408=0x0;_0x1fc408<_0x1f7ab3[_0x4b083f('0x86e')]['length'];_0x1fc408++){_0x599907&&_0x1f7ab3[_0x4b083f('0x86e')][_0x1fc408]['id']===_0x599907['id']&&(_0x1f7ab3[_0x4b083f('0x86e')][_0x1fc408][_0x4b083f('0x1e9d')]=![],_0xb6b2f6['push'](_0x1f7ab3[_0x4b083f('0x86e')][_0x1fc408]));}_0x1f7ab3[_0x4b083f('0x86e')]=_0xb6b2f6;}else{if(!_0x2d7911[_0x4b083f('0x11fd')])return _0x2e5241['userProfileResource']['get']({'sectionId':_0x2d7911['id']})[_0x4b083f('0xe59')][_0x4b083f('0xe19')](function(_0x193949){var _0x1357f6=_0x4b083f,_0xb1eac7=_0x32d445()[_0x1357f6('0x65a')](_0x193949[_0x1357f6('0x16a7')],function(_0x838f26){var _0x293046=_0x1357f6;return _0x32d445()[_0x293046('0xf15')](_0x1f7ab3['openchannelAccounts'],{'id':_0x838f26['resourceId']});}),_0x1a7f18=null;_0x1f7ab3[_0x1357f6('0xecd')]&&(_0x1a7f18=_0x32d445()[_0x1357f6('0xf15')](_0x1f7ab3[_0x1357f6('0x86e')],{'id':Number(_0x1f7ab3[_0x1357f6('0xecd')]['value'])}));if(_0x1a7f18&&!_0x32d445()[_0x1357f6('0x201a')](_0xb1eac7,['id',_0x1a7f18['id']])){var _0x3f8d40=_0x32d445()[_0x1357f6('0xf15')](_0x1f7ab3[_0x1357f6('0x86e')],{'id':_0x1a7f18['id']});_0x3f8d40[_0x1357f6('0x1e9d')]=![],_0xb1eac7['push'](_0x3f8d40);}_0x1f7ab3['openchannelAccounts']=_0xb1eac7;});}})[_0x5cbe29('0x223b')](function(_0x563006){var _0x25ff9d=_0x5cbe29;_0x5585bc[_0x25ff9d('0x8c8')]({'title':_0x563006[_0x25ff9d('0x2833')]?_0x25ff9d('0x27f2')+_0x563006[_0x25ff9d('0x2833')]+_0x25ff9d('0x1b7c')+_0x563006['statusText']:'SYSTEM:GETopenchannelAccounts','msg':_0x563006['data']?JSON[_0x25ff9d('0x3ad')](_0x563006[_0x25ff9d('0x11d0')]):_0x563006[_0x25ff9d('0x94f')]()});});var _0x3f3c1d=[{'id':0x191,'type':_0x5cbe29('0x1a7a')},{'id':0x5dd,'type':'outbound'}],_0x3509ad=null;_0x20f1bd[_0x5cbe29('0x179e')]('admin')?_0x2e5241[_0x5cbe29('0x25d5')][_0x5cbe29('0x22d5')]({'fields':'id,name,type','sort':'name','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0xa20ddc){var _0x45b141=_0x5cbe29;_0x1f7ab3['queues']=_0xa20ddc[_0x45b141('0x16a7')]||[];})[_0x5cbe29('0x223b')](function(_0x8db9a4){var _0x4778e0=_0x5cbe29;_0x5585bc[_0x4778e0('0x8c8')]({'title':_0x8db9a4[_0x4778e0('0x2833')]?'API:'+_0x8db9a4[_0x4778e0('0x2833')]+'\x20-\x20'+_0x8db9a4['statusText']:'SYSTEM:GET_QUEUES','msg':_0x8db9a4[_0x4778e0('0x11d0')]?JSON[_0x4778e0('0x3ad')](_0x8db9a4['data']):_0x8db9a4['toString']()});}):_0x2e5241[_0x5cbe29('0x25d5')][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x1555'),'sort':_0x5cbe29('0x2623'),'nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0x460a90){var _0x967e8a=_0x5cbe29;_0x3509ad=_0x460a90[_0x967e8a('0x16a7')]||[];})[_0x5cbe29('0xe19')](function(){var _0x523c65=_0x5cbe29,_0x1f0e69=[];for(var _0x39236d=0x0;_0x39236d<_0x3f3c1d[_0x523c65('0x25ae')];_0x39236d++){_0x1f0e69[_0x523c65('0xb76')](_0x2e5241[_0x523c65('0xb59')][_0x523c65('0x22d5')]({'userProfileId':_0x1f7ab3[_0x523c65('0x15a5')][_0x523c65('0x1d04')],'sectionId':_0x3f3c1d[_0x39236d]['id']})[_0x523c65('0xe59')]);}return _0x46c40d[_0x523c65('0xf0e')](_0x1f0e69);})['then'](function(_0x4cee26){var _0x340382=_0x5cbe29,_0x331511=_0x32d445()[_0x340382('0x65a')](_0x4cee26,function(_0x2e4de1){var _0x477df5=_0x340382;return _0x2e4de1&&_0x2e4de1[_0x477df5('0x16a7')]?_0x2e4de1[_0x477df5('0x16a7')][0x0]:null;}),_0x4995d5=[],_0x316e37=function _0x33645c(_0x33b1aa){var _0x2e9cb1=_0x340382,_0x4c2cf3=_0x32d445()[_0x2e9cb1('0xf15')](_0x331511,[_0x2e9cb1('0x964'),_0x3f3c1d[_0x33b1aa]['id']]);if(_0x4c2cf3){if(!_0x4c2cf3[_0x2e9cb1('0x11fd')])_0x4995d5[_0x2e9cb1('0xb76')](_0x2e5241[_0x2e9cb1('0xd49')][_0x2e9cb1('0x22d5')]({'sectionId':_0x4c2cf3['id']})[_0x2e9cb1('0xe59')]);else{var _0x2a5235=[];_0x3509ad[_0x2e9cb1('0x1d7e')](function(_0x36365e){var _0x2cf656=_0x2e9cb1;_0x36365e[_0x2cf656('0x62e')]===_0x3f3c1d[_0x33b1aa][_0x2cf656('0x62e')]&&_0x2a5235[_0x2cf656('0xb76')](_0x36365e);}),_0x4995d5[_0x2e9cb1('0xb76')]({'rows':_0x2a5235,'count':_0x2a5235[_0x2e9cb1('0x25ae')]});}}};for(var _0x20df38=0x0;_0x20df38<_0x3f3c1d[_0x340382('0x25ae')];_0x20df38++){_0x316e37(_0x20df38);}return _0x46c40d['all'](_0x4995d5);})[_0x5cbe29('0xe19')](function(_0x45ddbc){var _0x4a1aff=_0x5cbe29,_0x41e87e=[],_0x814bc0=null;_0x1f7ab3['allCondition']&&(_0x814bc0=_0x32d445()[_0x4a1aff('0xf15')](_0x3509ad,{'name':_0x1f7ab3[_0x4a1aff('0xecd')][_0x4a1aff('0x2')]}));for(var _0xd00b2a=0x0;_0xd00b2a<_0x45ddbc[_0x4a1aff('0x25ae')];_0xd00b2a++){var _0x59c5ea=_0x45ddbc[_0xd00b2a][_0x4a1aff('0x16a7')]||[];_0x59c5ea[_0x4a1aff('0x1d7e')](function(_0x4cd851){var _0x15a5f3=_0x4a1aff;_0x41e87e[_0x15a5f3('0xb76')](_0x4cd851);});}_0x814bc0&&!_0x32d445()['some'](_0x41e87e,[_0x4a1aff('0x1104'),_0x814bc0['id']])&&_0x3509ad[_0x4a1aff('0x1d7e')](function(_0x40a179){var _0x196ede=_0x4a1aff;_0x40a179['id']===_0x814bc0['id']&&(_0x40a179['canSelect']=![],_0x41e87e[_0x196ede('0xb76')](_0x40a179));}),_0x1f7ab3['queues']=_0x41e87e;})[_0x5cbe29('0x223b')](function(_0x586ba6){var _0x319eeb=_0x5cbe29;_0x5585bc[_0x319eeb('0x8c8')]({'title':_0x586ba6[_0x319eeb('0x2833')]?_0x319eeb('0x27f2')+_0x586ba6[_0x319eeb('0x2833')]+_0x319eeb('0x1b7c')+_0x586ba6['statusText']:'SYSTEM:GETqueues','msg':_0x586ba6[_0x319eeb('0x11d0')]?JSON[_0x319eeb('0x3ad')](_0x586ba6[_0x319eeb('0x11d0')]):_0x586ba6[_0x319eeb('0x94f')]()});}),_0x20f1bd['hasRole'](_0x5cbe29('0xd14'))?_0x2e5241[_0x5cbe29('0x1979')][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x1210'),'type':'outbound','VoiceExtensionId':_0x5cbe29('0x1046'),'nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0xf8f27a){var _0x1ac35c=_0x5cbe29;_0x1f7ab3[_0x1ac35c('0x28ae')]=_0xf8f27a[_0x1ac35c('0x16a7')]||[];})[_0x5cbe29('0x223b')](function(_0x5cedd3){var _0x57172b=_0x5cbe29;_0x5585bc[_0x57172b('0x8c8')]({'title':_0x5cedd3[_0x57172b('0x2833')]?_0x57172b('0x27f2')+_0x5cedd3[_0x57172b('0x2833')]+_0x57172b('0x1b7c')+_0x5cedd3[_0x57172b('0x1fd7')]:_0x57172b('0x24ba'),'msg':_0x5cedd3[_0x57172b('0x11d0')]?JSON['stringify'](_0x5cedd3[_0x57172b('0x11d0')]):_0x5cedd3['toString']()});}):_0x2e5241[_0x5cbe29('0x1979')][_0x5cbe29('0x22d5')]({'fields':_0x5cbe29('0x1210'),'type':_0x5cbe29('0x1fdf'),'VoiceExtensionId':'null','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')]['then'](function(_0x24843d){var _0x5e07c5=_0x5cbe29;_0x1f7ab3[_0x5e07c5('0x28ae')]=_0x24843d[_0x5e07c5('0x16a7')]||[];})[_0x5cbe29('0xe19')](function(){var _0x3036d6=_0x5cbe29;return _0x2e5241['userProfileSection'][_0x3036d6('0x22d5')]({'userProfileId':_0x1f7ab3[_0x3036d6('0x15a5')][_0x3036d6('0x1d04')],'sectionId':0x193})[_0x3036d6('0xe59')];})[_0x5cbe29('0xe19')](function(_0x225964){var _0x315ec0=_0x5cbe29,_0x430274=_0x225964&&_0x225964['rows']?_0x225964['rows'][0x0]:null;if(!_0x430274){var _0x2138f2=[],_0x4fd40e=null;_0x1f7ab3[_0x315ec0('0xecd')]&&(_0x4fd40e=_0x32d445()[_0x315ec0('0xf15')](_0x1f7ab3[_0x315ec0('0x28ae')],{'id':Number(_0x1f7ab3[_0x315ec0('0xecd')][_0x315ec0('0x2')])}));for(var _0x358dfa=0x0;_0x358dfa<_0x1f7ab3['outboundRoutes'][_0x315ec0('0x25ae')];_0x358dfa++){_0x4fd40e&&_0x1f7ab3['outboundRoutes'][_0x358dfa]['id']===_0x4fd40e['id']&&(_0x1f7ab3['outboundRoutes'][_0x358dfa]['canSelect']=![],_0x2138f2[_0x315ec0('0xb76')](_0x1f7ab3[_0x315ec0('0x28ae')][_0x358dfa]));}_0x1f7ab3['outboundRoutes']=_0x2138f2;}else{if(!_0x430274[_0x315ec0('0x11fd')])return _0x2e5241[_0x315ec0('0xd49')][_0x315ec0('0x22d5')]({'sectionId':_0x430274['id']})[_0x315ec0('0xe59')][_0x315ec0('0xe19')](function(_0x3acc01){var _0x48446a=_0x315ec0,_0x14ee1d=_0x32d445()['map'](_0x3acc01['rows'],function(_0xbf61bd){var _0x596c6b=a0_0x5325;return _0x32d445()[_0x596c6b('0xf15')](_0x1f7ab3[_0x596c6b('0x28ae')],{'id':_0xbf61bd[_0x596c6b('0x1104')]});}),_0x3a2d1c=null;_0x1f7ab3['allCondition']&&(_0x3a2d1c=_0x32d445()[_0x48446a('0xf15')](_0x1f7ab3['outboundRoutes'],{'id':Number(_0x1f7ab3[_0x48446a('0xecd')][_0x48446a('0x2')])}));if(_0x3a2d1c&&!_0x32d445()[_0x48446a('0x201a')](_0x14ee1d,['id',_0x3a2d1c['id']])){var _0x3a9bc2=_0x32d445()[_0x48446a('0xf15')](_0x1f7ab3[_0x48446a('0x28ae')],{'id':_0x3a2d1c['id']});_0x3a9bc2[_0x48446a('0x1e9d')]=![],_0x14ee1d[_0x48446a('0xb76')](_0x3a9bc2);}_0x1f7ab3[_0x48446a('0x28ae')]=_0x14ee1d;});}})[_0x5cbe29('0x223b')](function(_0x44cbf6){var _0x2cda69=_0x5cbe29;_0x5585bc['error']({'title':_0x44cbf6['status']?'API:'+_0x44cbf6['status']+_0x2cda69('0x1b7c')+_0x44cbf6[_0x2cda69('0x1fd7')]:_0x2cda69('0x2064'),'msg':_0x44cbf6['data']?JSON[_0x2cda69('0x3ad')](_0x44cbf6['data']):_0x44cbf6[_0x2cda69('0x94f')]()});}),_0x20f1bd[_0x5cbe29('0x179e')](_0x5cbe29('0xd14'))?_0x2e5241[_0x5cbe29('0x10c6')][_0x5cbe29('0x22d5')]({'fields':'id,name,fullname','sort':'name','role':_0x5cbe29('0x108'),'nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')]['then'](function(_0x51c1f7){var _0xd4aad9=_0x5cbe29;_0x1f7ab3[_0xd4aad9('0x29b')]=_0x51c1f7['rows']||[];})[_0x5cbe29('0x223b')](function(_0x3966b2){var _0x3f4c90=_0x5cbe29;_0x5585bc[_0x3f4c90('0x8c8')]({'title':_0x3966b2[_0x3f4c90('0x2833')]?_0x3f4c90('0x27f2')+_0x3966b2[_0x3f4c90('0x2833')]+_0x3f4c90('0x1b7c')+_0x3966b2[_0x3f4c90('0x1fd7')]:_0x3f4c90('0x1e86'),'msg':_0x3966b2[_0x3f4c90('0x11d0')]?JSON[_0x3f4c90('0x3ad')](_0x3966b2[_0x3f4c90('0x11d0')]):_0x3966b2[_0x3f4c90('0x94f')]()});}):_0x2e5241[_0x5cbe29('0x10c6')]['get']({'fields':_0x5cbe29('0x194c'),'sort':'name','role':'agent','nolimit':_0x5cbe29('0x2206')})[_0x5cbe29('0xe59')][_0x5cbe29('0xe19')](function(_0x457246){var _0x30a0c5=_0x5cbe29;_0x1f7ab3[_0x30a0c5('0x29b')]=_0x457246['rows']||[];})[_0x5cbe29('0xe19')](function(){var _0x45586e=_0x5cbe29;return _0x2e5241[_0x45586e('0xb59')][_0x45586e('0x22d5')]({'userProfileId':_0x1f7ab3[_0x45586e('0x15a5')]['userProfileId'],'sectionId':0xca})['$promise'];})[_0x5cbe29('0xe19')](function(_0x25d2d7){var _0x41a0ae=_0x5cbe29,_0x41587f=_0x25d2d7&&_0x25d2d7[_0x41a0ae('0x16a7')]?_0x25d2d7[_0x41a0ae('0x16a7')][0x0]:null;if(!_0x41587f){var _0xd04725=[],_0x3465b8=null;_0x1f7ab3[_0x41a0ae('0xecd')]&&(_0x3465b8=_0x32d445()[_0x41a0ae('0xf15')](_0x1f7ab3[_0x41a0ae('0x29b')],{'name':_0x1f7ab3[_0x41a0ae('0xecd')][_0x41a0ae('0x2')]}));for(var _0x200e53=0x0;_0x200e53<_0x1f7ab3['agents'][_0x41a0ae('0x25ae')];_0x200e53++){_0x3465b8&&_0x1f7ab3['agents'][_0x200e53]['id']===_0x3465b8['id']&&(_0x1f7ab3[_0x41a0ae('0x29b')][_0x200e53]['canSelect']=![],_0xd04725['push'](_0x1f7ab3['agents'][_0x200e53]));}_0x1f7ab3['agents']=_0xd04725;}else{if(!_0x41587f[_0x41a0ae('0x11fd')])return _0x2e5241[_0x41a0ae('0xd49')][_0x41a0ae('0x22d5')]({'sectionId':_0x41587f['id']})[_0x41a0ae('0xe59')]['then'](function(_0x5cfca9){var _0x40a42d=_0x41a0ae,_0x777d83=_0x32d445()[_0x40a42d('0x65a')](_0x5cfca9[_0x40a42d('0x16a7')],function(_0x4f9c17){var _0x34fccd=_0x40a42d;return _0x32d445()[_0x34fccd('0xf15')](_0x1f7ab3[_0x34fccd('0x29b')],{'id':_0x4f9c17[_0x34fccd('0x1104')]});}),_0x561322=null;_0x1f7ab3['allCondition']&&(_0x561322=_0x32d445()['find'](_0x1f7ab3[_0x40a42d('0x29b')],{'name':_0x1f7ab3[_0x40a42d('0xecd')][_0x40a42d('0x2')]}));if(_0x561322&&!_0x32d445()[_0x40a42d('0x201a')](_0x777d83,['id',_0x561322['id']])){var _0xe27700=_0x32d445()['find'](_0x1f7ab3[_0x40a42d('0x29b')],{'id':_0x561322['id']});_0xe27700['canSelect']=![],_0x777d83[_0x40a42d('0xb76')](_0xe27700);}_0x1f7ab3['agents']=_0x777d83;});}})[_0x5cbe29('0x223b')](function(_0x468421){var _0x4e27b3=_0x5cbe29;_0x5585bc[_0x4e27b3('0x8c8')]({'title':_0x468421['status']?_0x4e27b3('0x27f2')+_0x468421[_0x4e27b3('0x2833')]+_0x4e27b3('0x1b7c')+_0x468421['statusText']:_0x4e27b3('0xfe4'),'msg':_0x468421[_0x4e27b3('0x11d0')]?JSON[_0x4e27b3('0x3ad')](_0x468421[_0x4e27b3('0x11d0')]):_0x468421['toString']()});});function _0x138cc9(){var _0x5a9554=_0x5cbe29;_0x1f7ab3[_0x5a9554('0xcd2')]=[],_0x2e5241['trigger'][_0x5a9554('0xadb')]({'id':_0x4077e1[_0x5a9554('0x2ef')]['id']},_0x1f7ab3['allCondition'])[_0x5a9554('0xe59')][_0x5a9554('0xe19')](function(_0x56102d){var _0x38860a=_0x5a9554;_0x1f7ab3['allconditions']['unshift'](_0x56102d[_0x38860a('0x250e')]()),_0x5585bc[_0x38860a('0x425')]({'title':_0x38860a('0x1fef'),'msg':_0x1f7ab3[_0x38860a('0xecd')][_0x38860a('0x2623')]?_0x1f7ab3[_0x38860a('0xecd')][_0x38860a('0x2623')]+_0x38860a('0x105f'):''}),_0x5cfe0c(_0x56102d);})[_0x5a9554('0x223b')](function(_0x50f2cc){var _0x54adb7=_0x5a9554;if(_0x50f2cc['data']&&_0x50f2cc['data'][_0x54adb7('0xcd2')]&&_0x50f2cc[_0x54adb7('0x11d0')][_0x54adb7('0xcd2')]['length']){_0x1f7ab3[_0x54adb7('0xcd2')]=_0x50f2cc[_0x54adb7('0x11d0')][_0x54adb7('0xcd2')]||[{'message':_0x50f2cc['toString'](),'type':'api.condition.save'}];for(var _0x3cc2cb=0x0;_0x3cc2cb<_0x50f2cc[_0x54adb7('0x11d0')]['errors'][_0x54adb7('0x25ae')];_0x3cc2cb+=0x1){_0x5585bc['error']({'title':_0x50f2cc[_0x54adb7('0x11d0')][_0x54adb7('0xcd2')][_0x3cc2cb][_0x54adb7('0x62e')],'msg':_0x50f2cc[_0x54adb7('0x11d0')][_0x54adb7('0xcd2')][_0x3cc2cb][_0x54adb7('0x27e8')]});}}else _0x5585bc[_0x54adb7('0x8c8')]({'title':_0x50f2cc[_0x54adb7('0x2833')]?'API:'+_0x50f2cc[_0x54adb7('0x2833')]+_0x54adb7('0x1b7c')+_0x50f2cc[_0x54adb7('0x1fd7')]:'api.condition.save','msg':_0x50f2cc[_0x54adb7('0x11d0')]?JSON[_0x54adb7('0x3ad')](_0x50f2cc[_0x54adb7('0x11d0')][_0x54adb7('0x27e8')]):_0x50f2cc[_0x54adb7('0x94f')]()});});}function _0x3eb8e1(){var _0x57d18f=_0x5cbe29;_0x1f7ab3['errors']=[],_0x2e5241[_0x57d18f('0x1c03')]['update']({'id':_0x1f7ab3[_0x57d18f('0xecd')]['id']},_0x1f7ab3[_0x57d18f('0xecd')])[_0x57d18f('0xe59')]['then'](function(_0x20dd87){var _0xb84223=_0x57d18f,_0x146394=_0x32d445()['find'](_0x1f7ab3[_0xb84223('0x929')],{'id':_0x20dd87['id']});_0x146394&&_0x32d445()['merge'](_0x146394,_0x32d445()[_0xb84223('0xed5')](_0x20dd87[_0xb84223('0x250e')](),_0x32d445()[_0xb84223('0x1234')](_0x146394))),_0x5585bc['success']({'title':'AllCondition\x20properly\x20saved!','msg':_0x1f7ab3[_0xb84223('0xecd')][_0xb84223('0x2623')]?_0x1f7ab3[_0xb84223('0xecd')][_0xb84223('0x2623')]+_0xb84223('0x1c19'):''}),_0x5cfe0c(_0x20dd87);})[_0x57d18f('0x223b')](function(_0x560f1e){var _0x3a6d17=_0x57d18f;if(_0x560f1e[_0x3a6d17('0x11d0')]&&_0x560f1e[_0x3a6d17('0x11d0')][_0x3a6d17('0xcd2')]&&_0x560f1e['data'][_0x3a6d17('0xcd2')][_0x3a6d17('0x25ae')]){_0x1f7ab3[_0x3a6d17('0xcd2')]=_0x560f1e[_0x3a6d17('0x11d0')][_0x3a6d17('0xcd2')]||[{'message':_0x560f1e[_0x3a6d17('0x94f')](),'type':_0x3a6d17('0xbc3')}];for(var _0x1ff86a=0x0;_0x1ff86a<_0x560f1e[_0x3a6d17('0x11d0')]['errors'][_0x3a6d17('0x25ae')];_0x1ff86a++){_0x5585bc['error']({'title':_0x560f1e[_0x3a6d17('0x11d0')][_0x3a6d17('0xcd2')][_0x1ff86a][_0x3a6d17('0x62e')],'msg':_0x560f1e['data'][_0x3a6d17('0xcd2')][_0x1ff86a][_0x3a6d17('0x27e8')]});}}else _0x5585bc[_0x3a6d17('0x8c8')]({'title':_0x560f1e['status']?_0x3a6d17('0x27f2')+_0x560f1e['status']+'\x20-\x20'+_0x560f1e[_0x3a6d17('0x1fd7')]:'api.condition.update','msg':_0x560f1e[_0x3a6d17('0x11d0')]?JSON['stringify'](_0x560f1e['data'][_0x3a6d17('0x27e8')]):_0x560f1e[_0x3a6d17('0x94f')]()});});}function _0x29bda4(_0x2de314){var _0x489d45=_0x5cbe29;_0x1f7ab3[_0x489d45('0xcd2')]=[];var _0x5e0fad=_0x394133[_0x489d45('0xa5')]()[_0x489d45('0x13e4')](_0x489d45('0x24d0'))[_0x489d45('0xd0')](_0x489d45('0x1311'))['ariaLabel'](_0x489d45('0x198a'))['ok'](_0x489d45('0x2198'))[_0x489d45('0x2c1')](_0x489d45('0x8a3'))[_0x489d45('0x1345')](_0x2de314);_0x394133[_0x489d45('0x26b2')](_0x5e0fad)[_0x489d45('0xe19')](function(){var _0x43a58d=_0x489d45;_0x2e5241[_0x43a58d('0x1c03')]['delete']({'id':_0x1f7ab3[_0x43a58d('0xecd')]['id']})[_0x43a58d('0xe59')]['then'](function(){var _0x117b1e=_0x43a58d;_0x32d445()[_0x117b1e('0xa8b')](_0x1f7ab3['allconditions'],{'id':_0x1f7ab3[_0x117b1e('0xecd')]['id']}),_0x5585bc[_0x117b1e('0x425')]({'title':'AllCondition\x20properly\x20deleted!','msg':(_0x1f7ab3[_0x117b1e('0xecd')][_0x117b1e('0x2623')]||_0x117b1e('0xecd'))+_0x117b1e('0x2182')}),_0x5cfe0c(_0x1f7ab3[_0x117b1e('0xecd')]);})['catch'](function(_0x1abd1d){var _0x19c957=_0x43a58d;if(_0x1abd1d['data']&&_0x1abd1d[_0x19c957('0x11d0')][_0x19c957('0xcd2')]&&_0x1abd1d['data'][_0x19c957('0xcd2')][_0x19c957('0x25ae')]){_0x1f7ab3['errors']=_0x1abd1d[_0x19c957('0x11d0')][_0x19c957('0xcd2')]||[{'message':_0x1abd1d[_0x19c957('0x94f')](),'type':_0x19c957('0x22b')}];for(var _0x3ffa15=0x0;_0x3ffa15<_0x1abd1d['data'][_0x19c957('0xcd2')][_0x19c957('0x25ae')];_0x3ffa15++){_0x5585bc[_0x19c957('0x8c8')]({'title':_0x1abd1d[_0x19c957('0x11d0')][_0x19c957('0xcd2')][_0x3ffa15][_0x19c957('0x62e')],'msg':_0x1abd1d['data'][_0x19c957('0xcd2')][_0x3ffa15][_0x19c957('0x27e8')]});}}else _0x5585bc['error']({'title':_0x1abd1d[_0x19c957('0x2833')]?'API:'+_0x1abd1d['status']+_0x19c957('0x1b7c')+_0x1abd1d[_0x19c957('0x1fd7')]:_0x19c957('0x22b'),'msg':_0x1abd1d[_0x19c957('0x11d0')]?JSON['stringify'](_0x1abd1d[_0x19c957('0x11d0')][_0x19c957('0x27e8')]):_0x1abd1d[_0x19c957('0x27e8')]||_0x1abd1d[_0x19c957('0x94f')]()});});},function(){});}function _0x2840dc(_0xe87800){return _0xe87800===null?undefined:new Date(_0xe87800);}function _0x5cfe0c(_0x34c084){var _0x1a90e6=_0x5cbe29;_0x394133[_0x1a90e6('0x11ed')](_0x34c084);}}const _0x1d376b=_0x19f6a9,_0xe71dbd=_0x59426a['p']+_0xb635d2('0x725');_0x17b820[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x17b820(_0x1b8f44,_0x330867,_0x48e31b,_0x2975b3,_0x1513d4,_0x411fd1,_0x1b558f,_0x231a64,_0x1d4c6c){var _0x5e7031=_0xb635d2,_0x5a7a59=this;_0x5a7a59[_0x5e7031('0x15a5')]=_0x1d4c6c[_0x5e7031('0x1ef8')](),_0x5a7a59[_0x5e7031('0x1481')]={},_0x5a7a59[_0x5e7031('0x1732')]={'count':0x0,'rows':[]},_0x5a7a59[_0x5e7031('0x1d7b')]=[],_0x5a7a59[_0x5e7031('0xa16')]={'fields':_0x5e7031('0x2083'),'limit':0xa,'page':0x1},_0x5a7a59['fields']={'queue':_0x5e7031('0x9'),'lastevent':'Call_Status','routeId':_0x5e7031('0xfe6'),'agent':'Agent','account':'Account','interaction':_0x5e7031('0x764'),'message':_0x5e7031('0x2164')},_0x5a7a59[_0x5e7031('0x23d1')]={'abandoned':_0x5e7031('0x1562'),'timeout':_0x5e7031('0x784'),'complete':'Hangup','rejected':_0x5e7031('0x285e'),'called':_0x5e7031('0xba0'),'connect':_0x5e7031('0x98a'),'nosuchnumber':_0x5e7031('0x173f'),'busy':_0x5e7031('0x1302'),'noanswer':_0x5e7031('0x1c6b'),'congestion':_0x5e7031('0x13ef'),'agentreject':_0x5e7031('0x207e')},_0x5a7a59[_0x5e7031('0x26ac')]={'in':_0x5e7031('0x9df'),'out':_0x5e7031('0x17c3'),'accept':_0x5e7031('0x5eb'),'reject':_0x5e7031('0x147c')},_0x5a7a59[_0x5e7031('0x888')]=_0x1db82f,_0x5a7a59[_0x5e7031('0x425')]=_0x410e0b,_0x5a7a59[_0x5e7031('0x9d')]=_0x5a48db,_0x5a7a59[_0x5e7031('0x199c')]=_0x51d9d5,_0x5a7a59[_0x5e7031('0x262b')]=_0x5d928b,_0x5a7a59[_0x5e7031('0x126c')]=_0x8a4c15,_0x5a7a59[_0x5e7031('0x66')]=_0x2fa74e,_0x5a7a59[_0x5e7031('0x2775')]=_0x2544e2;function _0x1db82f(_0x1ba816,_0x22e06a){var _0x19a0b6=_0x5e7031;_0x5a7a59[_0x19a0b6('0x1481')]=_0x1ba816,_0x5a7a59['crudPermissions']=typeof _0x22e06a!==_0x19a0b6('0x1143')?_0x22e06a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5a7a59[_0x19a0b6('0xa16')][_0x19a0b6('0x13e')]=_0x5a7a59[_0x19a0b6('0x1481')]['id'],_0x5a7a59['query']['id']=_0x5a7a59[_0x19a0b6('0x1481')]['id'],_0x5a48db();}function _0x11da7c(){var _0x4166d7=_0x5e7031,_0x477bbe=_0x5a7a59[_0x4166d7('0x1481')][_0x4166d7('0x4e')]+_0x5a7a59['trigger']['channel']==='chat'?_0x4166d7('0x2225'):_0x4166d7('0x225b'),_0x3fb8ee=_0x5a7a59[_0x4166d7('0x1481')][_0x4166d7('0x4e')]+(_0x5a7a59[_0x4166d7('0x1481')]['channel']===_0x4166d7('0x17cc')?_0x4166d7('0x186c'):_0x4166d7('0x1e4e')),_0x1b0773;switch(_0x5a7a59[_0x4166d7('0x1481')][_0x4166d7('0x4e')]){case'chat':_0x1b0773=0x1f6;break;case _0x4166d7('0x625'):_0x1b0773=0x386;break;case _0x4166d7('0x26bf'):_0x1b0773=0x25a;break;case _0x4166d7('0xaf2'):_0x1b0773=0x322;break;case _0x4166d7('0x2801'):_0x1b0773=0x2be;break;case'whatsapp':_0x1b0773=0x836;break;}if(_0x1d4c6c['isAdmin']()){var _0x5ed1cf=_0x5a7a59['trigger'][_0x4166d7('0x4e')];_0x231a64[_0x3fb8ee]['get']({'fields':_0x4166d7('0x104'),'sort':'id','nolimit':_0x4166d7('0x2206')})[_0x4166d7('0xe59')][_0x4166d7('0xe19')](function(_0x10d31c){var _0x4ccde4=_0x4166d7;_0x5a7a59[_0x477bbe]=_0x10d31c[_0x4ccde4('0x16a7')]||[];})[_0x4166d7('0x223b')](function(_0x6d8b52){var _0x2fdded=_0x4166d7;_0x1b558f[_0x2fdded('0x8c8')]({'title':_0x6d8b52[_0x2fdded('0x2833')]?'API:'+_0x6d8b52['status']+_0x2fdded('0x1b7c')+_0x6d8b52[_0x2fdded('0x1fd7')]:_0x2fdded('0x1e13')+_0x5ed1cf['toUpperCase']()+_0x5ed1cf===_0x2fdded('0x17cc')?'WEBSITES':_0x2fdded('0x14e7'),'msg':_0x6d8b52[_0x2fdded('0x11d0')]?JSON[_0x2fdded('0x3ad')](_0x6d8b52[_0x2fdded('0x11d0')]):_0x6d8b52[_0x2fdded('0x94f')]()});});}else{var _0x26f4f6=_0x5a7a59[_0x4166d7('0x1481')][_0x4166d7('0x4e')];_0x231a64[_0x3fb8ee][_0x4166d7('0x22d5')]({'fields':_0x4166d7('0x104'),'sort':'id','nolimit':_0x4166d7('0x2206')})[_0x4166d7('0xe59')]['then'](function(_0x5d3724){_0x5a7a59[_0x477bbe]=_0x5d3724['rows']||[];})[_0x4166d7('0xe19')](function(){var _0x56baf6=_0x4166d7;return _0x231a64[_0x56baf6('0xb59')][_0x56baf6('0x22d5')]({'userProfileId':_0x5a7a59[_0x56baf6('0x15a5')]['userProfileId'],'sectionId':_0x1b0773})[_0x56baf6('0xe59')];})[_0x4166d7('0xe19')](function(_0x2cbbe7){var _0x4247f1=_0x4166d7,_0x1dc81e=_0x2cbbe7&&_0x2cbbe7[_0x4247f1('0x16a7')]?_0x2cbbe7['rows'][0x0]:null;if(!_0x1dc81e){var _0x32c8ee=[],_0x4b4db3=[];_0x5a7a59[_0x4247f1('0x1732')][_0x4247f1('0x16a7')]['forEach'](function(_0x8b4577){var _0x1e454e=_0x4247f1;if(_0x8b4577[_0x1e454e('0x15d1')]===_0x1e454e('0xe8b')){var _0x180afa=_0x32d445()['find'](_0x5a7a59[_0x477bbe],{'id':Number(_0x8b4577[_0x1e454e('0x2')])});_0x4b4db3[_0x1e454e('0xb76')](_0x180afa);}});for(var _0x145e61=0x0;_0x145e61<_0x5a7a59[_0x477bbe][_0x4247f1('0x25ae')];_0x145e61++){var _0x5681e9=_0x32d445()['some'](_0x4b4db3,{'id':_0x5a7a59[_0x477bbe][_0x145e61]['id']});_0x5681e9&&(_0x5a7a59[_0x477bbe][_0x145e61][_0x4247f1('0x1e9d')]=![],_0x32c8ee['push'](_0x5a7a59[_0x477bbe][_0x145e61]));}_0x5a7a59[_0x477bbe]=_0x32c8ee;}else{if(!_0x1dc81e['autoAssociation'])return _0x231a64[_0x4247f1('0xd49')][_0x4247f1('0x22d5')]({'sectionId':_0x1dc81e['id']})[_0x4247f1('0xe59')][_0x4247f1('0xe19')](function(_0x310ded){var _0x32e721=_0x4247f1,_0x4681db=_0x32d445()[_0x32e721('0x65a')](_0x310ded[_0x32e721('0x16a7')],function(_0x2d2f0a){var _0x2ce2d2=_0x32e721;return _0x32d445()[_0x2ce2d2('0xf15')](_0x5a7a59[_0x477bbe],{'id':_0x2d2f0a['resourceId']});}),_0x2281be=null;_0x2281be=[],_0x5a7a59[_0x32e721('0x1732')][_0x32e721('0x16a7')][_0x32e721('0x1d7e')](function(_0x135a20){var _0x4a3adb=_0x32e721;if(_0x135a20[_0x4a3adb('0x15d1')]==='account'){var _0x4fffa1=_0x32d445()[_0x4a3adb('0xf15')](_0x5a7a59[_0x477bbe],{'id':Number(_0x135a20[_0x4a3adb('0x2')])});_0x2281be[_0x4a3adb('0xb76')](_0x4fffa1);}}),!_0x32d445()['isEmpty'](_0x2281be)&&_0x2281be[_0x32e721('0x1d7e')](function(_0x286588){var _0x5bcb2f=_0x32e721;if(!_0x32d445()[_0x5bcb2f('0x201a')](_0x4681db,['id',_0x286588['id']])){var _0x539514=_0x32d445()[_0x5bcb2f('0xf15')](_0x5a7a59[_0x477bbe],{'id':_0x286588['id']});_0x539514[_0x5bcb2f('0x1e9d')]=![],_0x4681db[_0x5bcb2f('0xb76')](_0x539514);}}),_0x5a7a59[_0x477bbe]=_0x4681db;});}})[_0x4166d7('0x223b')](function(_0x21c17c){var _0x3039a5=_0x4166d7;_0x1b558f[_0x3039a5('0x8c8')]({'title':_0x21c17c[_0x3039a5('0x2833')]?_0x3039a5('0x27f2')+_0x21c17c[_0x3039a5('0x2833')]+_0x3039a5('0x1b7c')+_0x21c17c[_0x3039a5('0x1fd7')]:_0x3039a5('0x1e13')+_0x26f4f6['toUpperCase']()+_0x26f4f6===_0x3039a5('0x17cc')?_0x3039a5('0x270d'):_0x3039a5('0x14e7'),'msg':_0x21c17c[_0x3039a5('0x11d0')]?JSON[_0x3039a5('0x3ad')](_0x21c17c[_0x3039a5('0x11d0')]):_0x21c17c[_0x3039a5('0x94f')]()});});}}function _0x1af0b4(){var _0xd914c0=_0x5e7031,_0x536140=[{'id':0x191,'type':_0xd914c0('0x1a7a')},{'id':0x5dd,'type':_0xd914c0('0x1fdf')}],_0x522419=null;_0x1d4c6c[_0xd914c0('0x1da3')]()?_0x231a64[_0xd914c0('0x25d5')][_0xd914c0('0x22d5')]({'fields':_0xd914c0('0x1555'),'sort':_0xd914c0('0x2623'),'nolimit':_0xd914c0('0x2206')})[_0xd914c0('0xe59')]['then'](function(_0x5202d2){var _0x1b9f7d=_0xd914c0;_0x5a7a59[_0x1b9f7d('0x671')]=_0x5202d2[_0x1b9f7d('0x16a7')]||[];})[_0xd914c0('0x223b')](function(_0xef385d){var _0x3b8d94=_0xd914c0;_0x1b558f[_0x3b8d94('0x8c8')]({'title':_0xef385d[_0x3b8d94('0x2833')]?_0x3b8d94('0x27f2')+_0xef385d[_0x3b8d94('0x2833')]+_0x3b8d94('0x1b7c')+_0xef385d['statusText']:'SYSTEM:GET_VOICEQUEUES','msg':_0xef385d[_0x3b8d94('0x11d0')]?JSON[_0x3b8d94('0x3ad')](_0xef385d[_0x3b8d94('0x11d0')]):_0xef385d['toString']()});}):_0x231a64[_0xd914c0('0x25d5')][_0xd914c0('0x22d5')]({'fields':_0xd914c0('0x1555'),'sort':'name','nolimit':_0xd914c0('0x2206')})['$promise'][_0xd914c0('0xe19')](function(_0x236fbe){var _0x568b59=_0xd914c0;_0x522419=_0x236fbe[_0x568b59('0x16a7')]||[];})[_0xd914c0('0xe19')](function(){var _0x1f0f0c=_0xd914c0,_0x5b47dc=[];for(var _0x194d91=0x0;_0x194d91<_0x536140[_0x1f0f0c('0x25ae')];_0x194d91++){_0x5b47dc[_0x1f0f0c('0xb76')](_0x231a64[_0x1f0f0c('0xb59')]['get']({'userProfileId':_0x5a7a59[_0x1f0f0c('0x15a5')][_0x1f0f0c('0x1d04')],'sectionId':_0x536140[_0x194d91]['id']})['$promise']);}return _0x330867[_0x1f0f0c('0xf0e')](_0x5b47dc);})[_0xd914c0('0xe19')](function(_0x202789){var _0x4ca977=_0xd914c0,_0x38f408=_0x32d445()[_0x4ca977('0x65a')](_0x202789,function(_0x1f9609){var _0x5bf2d4=_0x4ca977;return _0x1f9609&&_0x1f9609[_0x5bf2d4('0x16a7')]?_0x1f9609[_0x5bf2d4('0x16a7')][0x0]:null;}),_0x3d1caa=[],_0x20d4a1=function _0x5733f1(_0x1762d6){var _0x22f2d9=_0x4ca977,_0x4d0437=_0x32d445()['find'](_0x38f408,[_0x22f2d9('0x964'),_0x536140[_0x1762d6]['id']]);if(_0x4d0437){if(!_0x4d0437[_0x22f2d9('0x11fd')])_0x3d1caa[_0x22f2d9('0xb76')](_0x231a64[_0x22f2d9('0xd49')][_0x22f2d9('0x22d5')]({'sectionId':_0x4d0437['id']})['$promise']);else{var _0x386ff7=[];_0x522419[_0x22f2d9('0x1d7e')](function(_0x2aa0a2){var _0x380cc4=_0x22f2d9;_0x2aa0a2[_0x380cc4('0x62e')]===_0x536140[_0x1762d6][_0x380cc4('0x62e')]&&_0x386ff7[_0x380cc4('0xb76')](_0x2aa0a2);}),_0x3d1caa[_0x22f2d9('0xb76')]({'rows':_0x386ff7,'count':_0x386ff7[_0x22f2d9('0x25ae')]});}}};for(var _0x3068a5=0x0;_0x3068a5<_0x536140[_0x4ca977('0x25ae')];_0x3068a5++){_0x20d4a1(_0x3068a5);}return _0x330867['all'](_0x3d1caa);})[_0xd914c0('0xe19')](function(_0x4c5ee4){var _0x570154=_0xd914c0,_0x43ec41=[],_0x505188=[];_0x5a7a59[_0x570154('0x1732')][_0x570154('0x16a7')]['forEach'](function(_0x453b0d){var _0x5519e2=_0x570154;if(_0x453b0d[_0x5519e2('0x15d1')]===_0x5519e2('0x26a8')){var _0x57cea0=_0x32d445()['find'](_0x522419,{'name':_0x453b0d[_0x5519e2('0x2')]});_0x505188[_0x5519e2('0xb76')](_0x57cea0);}});for(var _0x33465e=0x0;_0x33465e<_0x4c5ee4[_0x570154('0x25ae')];_0x33465e++){var _0x322c0e=_0x4c5ee4[_0x33465e][_0x570154('0x16a7')]||[];_0x322c0e['forEach'](function(_0x4638d2){var _0x99246=_0x570154;_0x43ec41[_0x99246('0xb76')](_0x4638d2);});}!_0x32d445()['isEmpty'](_0x505188)&&_0x505188[_0x570154('0x1d7e')](function(_0x94fc37){var _0x2c57f0=_0x570154;if(!_0x32d445()[_0x2c57f0('0x201a')](_0x43ec41,[_0x2c57f0('0x1104'),_0x94fc37['id']])){var _0x5d8b82=_0x32d445()[_0x2c57f0('0xf15')](_0x522419,{'id':_0x94fc37['id']});_0x5d8b82[_0x2c57f0('0x1e9d')]=![],_0x43ec41[_0x2c57f0('0xb76')](_0x5d8b82);}}),_0x5a7a59[_0x570154('0x671')]=_0x43ec41;})[_0xd914c0('0x223b')](function(_0x394928){var _0x487ac9=_0xd914c0;_0x1b558f[_0x487ac9('0x8c8')]({'title':_0x394928[_0x487ac9('0x2833')]?_0x487ac9('0x27f2')+_0x394928[_0x487ac9('0x2833')]+_0x487ac9('0x1b7c')+_0x394928[_0x487ac9('0x1fd7')]:_0x487ac9('0x19e6'),'msg':_0x394928['data']?JSON[_0x487ac9('0x3ad')](_0x394928[_0x487ac9('0x11d0')]):_0x394928[_0x487ac9('0x94f')]()});});}function _0x34b9eb(){var _0x5d0cba=_0x5e7031;_0x1d4c6c[_0x5d0cba('0x1da3')]()?_0x231a64[_0x5d0cba('0x1979')][_0x5d0cba('0x22d5')]({'fields':_0x5d0cba('0x1210'),'type':_0x5d0cba('0x1fdf'),'VoiceExtensionId':_0x5d0cba('0x1046'),'nolimit':'true'})[_0x5d0cba('0xe59')][_0x5d0cba('0xe19')](function(_0x1dc76e){var _0xc23cb=_0x5d0cba;_0x5a7a59[_0xc23cb('0x28ae')]=_0x1dc76e['rows']||[];})['catch'](function(_0x3eb5c0){var _0x36721f=_0x5d0cba;_0x1b558f[_0x36721f('0x8c8')]({'title':_0x3eb5c0['status']?_0x36721f('0x27f2')+_0x3eb5c0['status']+_0x36721f('0x1b7c')+_0x3eb5c0['statusText']:_0x36721f('0x24ba'),'msg':_0x3eb5c0[_0x36721f('0x11d0')]?JSON[_0x36721f('0x3ad')](_0x3eb5c0[_0x36721f('0x11d0')]):_0x3eb5c0[_0x36721f('0x94f')]()});}):_0x231a64[_0x5d0cba('0x1979')][_0x5d0cba('0x22d5')]({'fields':_0x5d0cba('0x1210'),'type':_0x5d0cba('0x1fdf'),'VoiceExtensionId':_0x5d0cba('0x1046'),'nolimit':_0x5d0cba('0x2206')})[_0x5d0cba('0xe59')][_0x5d0cba('0xe19')](function(_0x434ec5){var _0xf4d80=_0x5d0cba;_0x5a7a59['outboundRoutes']=_0x434ec5[_0xf4d80('0x16a7')]||[];})[_0x5d0cba('0xe19')](function(){var _0x3b2bd7=_0x5d0cba;return _0x231a64['userProfileSection'][_0x3b2bd7('0x22d5')]({'userProfileId':_0x5a7a59[_0x3b2bd7('0x15a5')][_0x3b2bd7('0x1d04')],'sectionId':0x193})[_0x3b2bd7('0xe59')];})[_0x5d0cba('0xe19')](function(_0x10d9c8){var _0x82c16d=_0x5d0cba,_0x1e3651=_0x10d9c8&&_0x10d9c8[_0x82c16d('0x16a7')]?_0x10d9c8[_0x82c16d('0x16a7')][0x0]:null;if(!_0x1e3651){var _0x347023=[],_0x1e347c=[];_0x5a7a59[_0x82c16d('0x1732')][_0x82c16d('0x16a7')]['forEach'](function(_0x421022){var _0x17021c=_0x82c16d;if(_0x421022[_0x17021c('0x15d1')]===_0x17021c('0x4b3')){var _0x111182=_0x32d445()['find'](_0x5a7a59[_0x17021c('0x28ae')],{'id':Number(_0x421022[_0x17021c('0x2')])});_0x1e347c['push'](_0x111182);}});for(var _0x554687=0x0;_0x554687<_0x5a7a59[_0x82c16d('0x28ae')]['length'];_0x554687++){var _0x4b74a0=_0x32d445()[_0x82c16d('0x201a')](_0x1e347c,{'id':_0x5a7a59[_0x82c16d('0x28ae')][_0x554687]['id']});_0x4b74a0&&(_0x5a7a59[_0x82c16d('0x28ae')][_0x554687][_0x82c16d('0x1e9d')]=![],_0x347023[_0x82c16d('0xb76')](_0x5a7a59['outboundRoutes'][_0x554687]));}_0x5a7a59[_0x82c16d('0x28ae')]=_0x347023;}else{if(!_0x1e3651[_0x82c16d('0x11fd')])return _0x231a64[_0x82c16d('0xd49')]['get']({'sectionId':_0x1e3651['id']})['$promise'][_0x82c16d('0xe19')](function(_0x3e7077){var _0x2a61aa=_0x82c16d,_0x1ab630=_0x32d445()[_0x2a61aa('0x65a')](_0x3e7077[_0x2a61aa('0x16a7')],function(_0x302c33){var _0x419e7c=_0x2a61aa;return _0x32d445()[_0x419e7c('0xf15')](_0x5a7a59[_0x419e7c('0x28ae')],{'id':_0x302c33[_0x419e7c('0x1104')]});}),_0x5bac04=null;_0x5bac04=[],_0x5a7a59[_0x2a61aa('0x1732')][_0x2a61aa('0x16a7')][_0x2a61aa('0x1d7e')](function(_0x863005){var _0x59e11e=_0x2a61aa;if(_0x863005['field']===_0x59e11e('0x4b3')){var _0x5908ee=_0x32d445()[_0x59e11e('0xf15')](_0x5a7a59[_0x59e11e('0x28ae')],{'id':Number(_0x863005[_0x59e11e('0x2')])});_0x5bac04[_0x59e11e('0xb76')](_0x5908ee);}}),!_0x32d445()['isEmpty'](_0x5bac04)&&_0x5bac04[_0x2a61aa('0x1d7e')](function(_0x4df394){var _0x502f5f=_0x2a61aa;if(!_0x32d445()['some'](_0x1ab630,['id',_0x4df394['id']])){var _0x25cb55=_0x32d445()[_0x502f5f('0xf15')](_0x5a7a59[_0x502f5f('0x28ae')],{'id':_0x4df394['id']});_0x25cb55[_0x502f5f('0x1e9d')]=![],_0x1ab630[_0x502f5f('0xb76')](_0x25cb55);}}),_0x5a7a59[_0x2a61aa('0x28ae')]=_0x1ab630;});}})['catch'](function(_0x385dea){var _0x3c27ca=_0x5d0cba;_0x1b558f[_0x3c27ca('0x8c8')]({'title':_0x385dea['status']?_0x3c27ca('0x27f2')+_0x385dea[_0x3c27ca('0x2833')]+_0x3c27ca('0x1b7c')+_0x385dea[_0x3c27ca('0x1fd7')]:_0x3c27ca('0x24ba'),'msg':_0x385dea[_0x3c27ca('0x11d0')]?JSON[_0x3c27ca('0x3ad')](_0x385dea['data']):_0x385dea[_0x3c27ca('0x94f')]()});});}function _0x1e4a68(){var _0x424549=_0x5e7031;_0x1d4c6c['isAdmin']()?_0x231a64[_0x424549('0x10c6')]['get']({'fields':'id,name,fullname','sort':_0x424549('0x2623'),'role':_0x424549('0x108'),'nolimit':_0x424549('0x2206')})[_0x424549('0xe59')][_0x424549('0xe19')](function(_0x43e561){var _0x54392d=_0x424549;_0x5a7a59[_0x54392d('0x29b')]=_0x43e561[_0x54392d('0x16a7')]||[];})['catch'](function(_0x1344f4){var _0x3dd8b4=_0x424549;_0x1b558f[_0x3dd8b4('0x8c8')]({'title':_0x1344f4['status']?_0x3dd8b4('0x27f2')+_0x1344f4[_0x3dd8b4('0x2833')]+_0x3dd8b4('0x1b7c')+_0x1344f4[_0x3dd8b4('0x1fd7')]:_0x3dd8b4('0x1e86'),'msg':_0x1344f4[_0x3dd8b4('0x11d0')]?JSON['stringify'](_0x1344f4[_0x3dd8b4('0x11d0')]):_0x1344f4[_0x3dd8b4('0x94f')]()});}):_0x231a64['user']['get']({'fields':'id,name,fullname','sort':_0x424549('0x2623'),'role':_0x424549('0x108'),'nolimit':_0x424549('0x2206')})[_0x424549('0xe59')]['then'](function(_0x360a72){var _0x109888=_0x424549;_0x5a7a59[_0x109888('0x29b')]=_0x360a72[_0x109888('0x16a7')]||[];})['then'](function(){var _0x21c47f=_0x424549;return _0x231a64[_0x21c47f('0xb59')][_0x21c47f('0x22d5')]({'userProfileId':_0x5a7a59[_0x21c47f('0x15a5')]['userProfileId'],'sectionId':0xca})[_0x21c47f('0xe59')];})[_0x424549('0xe19')](function(_0x52de87){var _0xb0c1c1=_0x424549,_0x5034fc=_0x52de87&&_0x52de87[_0xb0c1c1('0x16a7')]?_0x52de87[_0xb0c1c1('0x16a7')][0x0]:null;if(!_0x5034fc){var _0xa6100f=[],_0x5cd9fd=[];_0x5a7a59['triggerAnyConditions'][_0xb0c1c1('0x16a7')]['forEach'](function(_0x54163a){var _0x4ab8c3=_0xb0c1c1;if(_0x54163a[_0x4ab8c3('0x15d1')]===_0x4ab8c3('0x108')){var _0x1b810f=_0x32d445()['find'](_0x5a7a59[_0x4ab8c3('0x29b')],{'name':_0x54163a[_0x4ab8c3('0x2')]});_0x5cd9fd[_0x4ab8c3('0xb76')](_0x1b810f);}});for(var _0x6dbc1=0x0;_0x6dbc1<_0x5a7a59[_0xb0c1c1('0x29b')]['length'];_0x6dbc1++){var _0x3a45a3=_0x32d445()['some'](_0x5cd9fd,{'id':_0x5a7a59[_0xb0c1c1('0x29b')][_0x6dbc1]['id']});_0x3a45a3&&(_0x5a7a59['agents'][_0x6dbc1][_0xb0c1c1('0x1e9d')]=![],_0xa6100f[_0xb0c1c1('0xb76')](_0x5a7a59['agents'][_0x6dbc1]));}_0x5a7a59['agents']=_0xa6100f;}else{if(!_0x5034fc[_0xb0c1c1('0x11fd')])return _0x231a64['userProfileResource'][_0xb0c1c1('0x22d5')]({'sectionId':_0x5034fc['id']})[_0xb0c1c1('0xe59')][_0xb0c1c1('0xe19')](function(_0x4907b0){var _0x2b076c=_0xb0c1c1,_0x3b330b=_0x32d445()[_0x2b076c('0x65a')](_0x4907b0[_0x2b076c('0x16a7')],function(_0x638ae8){var _0x5309a4=_0x2b076c;return _0x32d445()[_0x5309a4('0xf15')](_0x5a7a59['agents'],{'id':_0x638ae8[_0x5309a4('0x1104')]});}),_0x57a3b2=null;_0x57a3b2=[],_0x5a7a59['triggerAnyConditions']['rows'][_0x2b076c('0x1d7e')](function(_0x1080c7){var _0x3cd98f=_0x2b076c;if(_0x1080c7[_0x3cd98f('0x15d1')]===_0x3cd98f('0x108')){var _0x114c01=_0x32d445()['find'](_0x5a7a59[_0x3cd98f('0x29b')],{'name':_0x1080c7[_0x3cd98f('0x2')]});_0x57a3b2['push'](_0x114c01);}}),!_0x32d445()[_0x2b076c('0x14b4')](_0x57a3b2)&&_0x57a3b2[_0x2b076c('0x1d7e')](function(_0x3f94f5){var _0x568ef7=_0x2b076c;if(!_0x32d445()[_0x568ef7('0x201a')](_0x3b330b,['id',_0x3f94f5['id']])){var _0x75691d=_0x32d445()['find'](_0x5a7a59[_0x568ef7('0x29b')],{'id':_0x3f94f5['id']});_0x75691d['canSelect']=![],_0x3b330b[_0x568ef7('0xb76')](_0x75691d);}}),_0x5a7a59['agents']=_0x3b330b;});}})[_0x424549('0x223b')](function(_0x3bd2f3){var _0x484cab=_0x424549;_0x1b558f['error']({'title':_0x3bd2f3[_0x484cab('0x2833')]?_0x484cab('0x27f2')+_0x3bd2f3['status']+'\x20-\x20'+_0x3bd2f3[_0x484cab('0x1fd7')]:_0x484cab('0x1e86'),'msg':_0x3bd2f3[_0x484cab('0x11d0')]?JSON[_0x484cab('0x3ad')](_0x3bd2f3[_0x484cab('0x11d0')]):_0x3bd2f3['toString']()});});}function _0x18e2e8(){var _0x2c7f3=_0x5e7031;if(_0x5a7a59['trigger'][_0x2c7f3('0x4e')]==='voice'){if(_0x32d445()['some'](_0x5a7a59[_0x2c7f3('0x1732')][_0x2c7f3('0x16a7')],[_0x2c7f3('0x15d1'),'queue'])){if(!_0x5a7a59[_0x2c7f3('0x671')])_0x1af0b4();}if(_0x32d445()['some'](_0x5a7a59[_0x2c7f3('0x1732')][_0x2c7f3('0x16a7')],['field',_0x2c7f3('0x4b3')])){if(!_0x5a7a59[_0x2c7f3('0x28ae')])_0x34b9eb();}if(_0x32d445()['some'](_0x5a7a59['triggerAnyConditions'][_0x2c7f3('0x16a7')],[_0x2c7f3('0x15d1'),'agent'])){if(!_0x5a7a59[_0x2c7f3('0x29b')])_0x1e4a68();}}else _0x11da7c();}function _0x410e0b(_0x277d97){_0x5a7a59['triggerAnyConditions']=_0x277d97||{'count':0x0,'rows':[]},_0x18e2e8();}function _0x5a48db(){var _0x354fe7=_0x5e7031;_0x5a7a59[_0x354fe7('0xa16')]['offset']=(_0x5a7a59['query']['page']-0x1)*_0x5a7a59['query']['limit'],_0x5a7a59[_0x354fe7('0x9c8')]=_0x231a64[_0x354fe7('0x1481')][_0x354fe7('0x17d8')](_0x5a7a59['query'],_0x410e0b)[_0x354fe7('0xe59')];}function _0x51d9d5(_0x3da6ba,_0x56f236){var _0x425943=_0x5e7031;_0x1513d4['show']({'controller':_0x425943('0x502'),'controllerAs':'vm','templateUrl':_0xe71dbd,'parent':angular[_0x425943('0x24a1')](_0x411fd1[_0x425943('0x19b2')]),'targetEvent':_0x3da6ba,'clickOutsideToClose':!![],'locals':{'trigger':_0x5a7a59['trigger'],'anyCondition':_0x56f236,'anyConditions':_0x5a7a59[_0x425943('0x1732')][_0x425943('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x5a7a59[_0x425943('0xb3d')]}})[_0x425943('0xe19')](function(_0x2b73cc){var _0x41cf45=_0x425943;_0x2b73cc&&(_0x5a7a59[_0x41cf45('0x1732')]={'count':_0x2b73cc[_0x41cf45('0x25ae')],'rows':_0x2b73cc},_0x18e2e8());});}function _0x8a4c15(_0x1a8f5c,_0x1d3ec2){var _0x500122=_0x5e7031,_0x1a96dc=_0x1513d4['confirm']()[_0x500122('0x13e4')](_0x48e31b[_0x500122('0x2159')](_0x500122('0x25c6')))['ariaLabel'](_0x500122('0x576'))['targetEvent'](_0x1d3ec2)['ok']('OK')[_0x500122('0x2c1')](_0x48e31b['instant']('TOOLS.CANCEL'));_0x1513d4['show'](_0x1a96dc)[_0x500122('0xe19')](function(){_0x2fa74e(_0x1a8f5c,!![]);});}function _0x2fa74e(_0x3f994d,_0x59d063){var _0x324720=_0x5e7031;_0x231a64['condition'][_0x324720('0x229e')]({'id':_0x3f994d['id']})[_0x324720('0xe59')][_0x324720('0xe19')](function(){var _0x27be49=_0x324720;_0x5a48db(),_0x59d063&&_0x1b558f[_0x27be49('0x425')]({'title':_0x48e31b[_0x27be49('0x2159')](_0x27be49('0x536'))});})[_0x324720('0x223b')](function(_0x12a799){var _0xc57670=_0x324720;if(_0x12a799[_0xc57670('0x11d0')]&&_0x12a799[_0xc57670('0x11d0')][_0xc57670('0xcd2')]&&_0x12a799['data'][_0xc57670('0xcd2')]['length']){_0x5a7a59['errors']=_0x12a799['data'][_0xc57670('0xcd2')]||[{'message':_0x12a799['toString'](),'type':'SYSTEM:GETtrigger'}];for(var _0x4c4c51=0x0;_0x4c4c51<_0x12a799[_0xc57670('0x11d0')][_0xc57670('0xcd2')][_0xc57670('0x25ae')];_0x4c4c51++){_0x1b558f[_0xc57670('0x8c8')]({'title':_0x12a799['data'][_0xc57670('0xcd2')][_0x4c4c51][_0xc57670('0x62e')],'msg':_0x12a799[_0xc57670('0x11d0')][_0xc57670('0xcd2')][_0x4c4c51][_0xc57670('0x27e8')]});}}else _0x1b558f[_0xc57670('0x8c8')]({'title':_0x12a799[_0xc57670('0x2833')]?_0xc57670('0x27f2')+_0x12a799['status']+_0xc57670('0x1b7c')+_0x12a799[_0xc57670('0x1fd7')]:_0xc57670('0x207f'),'msg':_0x12a799['data']?JSON['stringify'](_0x12a799[_0xc57670('0x11d0')][_0xc57670('0x27e8')]):_0x12a799[_0xc57670('0x27e8')]||_0x12a799[_0xc57670('0x94f')]()});});}function _0x5d928b(){var _0x4fc5ed=_0x5e7031,_0x104eda=angular[_0x4fc5ed('0x89')](_0x5a7a59[_0x4fc5ed('0x1d7b')]);return _0x5a7a59['selectedTriggerAnyConditions']=[],_0x104eda;}function _0x2544e2(_0x3653f6){var _0x4582bf=_0x5e7031,_0x2ef040=_0x1513d4[_0x4582bf('0xa5')]()[_0x4582bf('0x13e4')](_0x48e31b[_0x4582bf('0x2159')]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE'))['content'](_0x48e31b[_0x4582bf('0x2159')]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE',{'total':_0x5a7a59[_0x4582bf('0x1d7b')]['length']}))[_0x4582bf('0x4d1')](_0x4582bf('0x1ba9'))[_0x4582bf('0x1345')](_0x3653f6)['ok']('OK')['cancel'](_0x48e31b['instant'](_0x4582bf('0x717')));_0x1513d4[_0x4582bf('0x26b2')](_0x2ef040)[_0x4582bf('0xe19')](function(){var _0x4bb59b=_0x4582bf;_0x5a7a59[_0x4bb59b('0x1d7b')][_0x4bb59b('0x1d7e')](function(_0x466f58){_0x2fa74e(_0x466f58);}),_0x5a7a59[_0x4bb59b('0x1d7b')]=[],_0x1b558f[_0x4bb59b('0x425')]({'title':_0x48e31b[_0x4bb59b('0x2159')](_0x4bb59b('0x10c5'))});});}var _0x124746=!![],_0x27e450=0x1;_0x1b8f44[_0x5e7031('0x107')](_0x5e7031('0x1607'),function(_0x10df5c,_0x57801d){var _0x4654fc=_0x5e7031;_0x124746?_0x2975b3(function(){_0x124746=![];}):(!_0x57801d&&(_0x27e450=_0x5a7a59[_0x4654fc('0xa16')][_0x4654fc('0xc08')]),_0x10df5c!==_0x57801d&&(_0x5a7a59['query']['page']=0x1),!_0x10df5c&&(_0x5a7a59[_0x4654fc('0xa16')]['page']=_0x27e450),_0x5a48db());});}const _0x4f3637=_0x17b820;_0x1a47e3[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x1e2b'),_0xb635d2('0xecd'),_0xb635d2('0x1481'),'api','Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x1a47e3(_0x5d0be9,_0x5dbc25,_0x4f3f07,_0x443c64,_0x2fedc2,_0x4e3f9a,_0x2ccfb7,_0x1dc289,_0xaadbfb,_0x5133fd,_0x4232b9,_0x3cb87b,_0x59e928){var _0x1089fd=_0xb635d2,_0x3c5787=this;_0x3c5787[_0x1089fd('0x15a5')]=_0x5133fd[_0x1089fd('0x1ef8')](),_0x3c5787[_0x1089fd('0xecd')]=angular[_0x1089fd('0x89')](_0x2ccfb7),_0x3c5787[_0x1089fd('0x1e2b')]=angular[_0x1089fd('0x89')](_0x4e3f9a),_0x3c5787[_0x1089fd('0x22f1')]=_0x3cb87b,_0x3c5787[_0x1089fd('0x5c1')]=_0x4232b9,_0x3c5787[_0x1089fd('0xb3d')]=_0x59e928,_0x3c5787['hasModulePermissions']={},_0x3c5787['newAllCondition']=![],_0x3c5787[_0x1089fd('0xcd2')]=[],_0x3c5787[_0x1089fd('0x1481')]=angular[_0x1089fd('0x89')](_0x1dc289);!_0x3c5787[_0x1089fd('0xecd')]?(_0x3c5787[_0x1089fd('0xecd')]={'operator':_0x1089fd('0x1f15')},_0x3c5787[_0x1089fd('0x1954')]=!![]):_0x231d3e();_0x3c5787['allCondition'][_0x1089fd('0x16d0')]=_0x5d0be9[_0x1089fd('0x2ef')]['id']||undefined,_0x3c5787[_0x1089fd('0x23d1')]=[{'name':_0x1089fd('0x1562'),'value':'abandoned'},{'name':'Timeout','value':_0x1089fd('0x2058')},{'name':'Hangup','value':_0x1089fd('0x2157')},{'name':_0x1089fd('0x285e'),'value':_0x1089fd('0xe2a')},{'name':_0x1089fd('0xba0'),'value':_0x1089fd('0x279')},{'name':_0x1089fd('0x98a'),'value':_0x1089fd('0x19d9')},{'name':'NoSuchNumber','value':_0x1089fd('0x1d25')},{'name':'Busy','value':_0x1089fd('0x1934')},{'name':'NoAnswer','value':_0x1089fd('0x1dd3')},{'name':_0x1089fd('0x13ef'),'value':_0x1089fd('0x10b9')},{'name':_0x1089fd('0x207e'),'value':_0x1089fd('0x167d')}],_0x3c5787['onFieldSelection']=_0x48d5f0,_0x3c5787[_0x1089fd('0x13b3')]=_0xffd59b,_0x3c5787[_0x1089fd('0x25bd')]=_0x4121bf,_0x3c5787['deleteAllCondition']=_0x2cfa40,_0x3c5787['closeDialog']=_0x2b3dfb;function _0x2c873f(){var _0x489c1b=_0x1089fd,_0x295f79=[{'id':0x191,'type':_0x489c1b('0x1a7a')},{'id':0x5dd,'type':'outbound'}],_0x4b26d9=null;_0x5133fd[_0x489c1b('0x1da3')]()?_0xaadbfb['voiceQueue']['get']({'fields':_0x489c1b('0x1555'),'sort':'name','nolimit':'true'})[_0x489c1b('0xe59')][_0x489c1b('0xe19')](function(_0x27632b){var _0x522df0=_0x489c1b;_0x3c5787[_0x522df0('0x671')]=_0x27632b['rows']||[];})[_0x489c1b('0x223b')](function(_0x24427f){var _0x2236b9=_0x489c1b;_0x2fedc2[_0x2236b9('0x8c8')]({'title':_0x24427f[_0x2236b9('0x2833')]?_0x2236b9('0x27f2')+_0x24427f[_0x2236b9('0x2833')]+'\x20-\x20'+_0x24427f[_0x2236b9('0x1fd7')]:_0x2236b9('0x1b28'),'msg':_0x24427f[_0x2236b9('0x11d0')]?JSON['stringify'](_0x24427f[_0x2236b9('0x11d0')]):_0x24427f['toString']()});}):_0xaadbfb['voiceQueue'][_0x489c1b('0x22d5')]({'fields':'id,name,type','sort':_0x489c1b('0x2623'),'nolimit':_0x489c1b('0x2206')})[_0x489c1b('0xe59')][_0x489c1b('0xe19')](function(_0x163f7f){var _0x2ebd9d=_0x489c1b;_0x4b26d9=_0x163f7f[_0x2ebd9d('0x16a7')]||[];})[_0x489c1b('0xe19')](function(){var _0x44cbaf=_0x489c1b,_0x4bbdad=[];for(var _0x1dafb5=0x0;_0x1dafb5<_0x295f79[_0x44cbaf('0x25ae')];_0x1dafb5++){_0x4bbdad[_0x44cbaf('0xb76')](_0xaadbfb[_0x44cbaf('0xb59')][_0x44cbaf('0x22d5')]({'userProfileId':_0x3c5787[_0x44cbaf('0x15a5')]['userProfileId'],'sectionId':_0x295f79[_0x1dafb5]['id']})[_0x44cbaf('0xe59')]);}return _0x4f3f07[_0x44cbaf('0xf0e')](_0x4bbdad);})[_0x489c1b('0xe19')](function(_0x5cd859){var _0x2d6049=_0x489c1b,_0x64c706=_0x32d445()[_0x2d6049('0x65a')](_0x5cd859,function(_0x1d1997){var _0x2f7c0a=_0x2d6049;return _0x1d1997&&_0x1d1997[_0x2f7c0a('0x16a7')]?_0x1d1997['rows'][0x0]:null;}),_0x4ae231=[],_0x560ded=function _0x11c010(_0x32c625){var _0x3e4e20=_0x2d6049,_0x2b2de5=_0x32d445()['find'](_0x64c706,['sectionId',_0x295f79[_0x32c625]['id']]);if(_0x2b2de5){if(!_0x2b2de5[_0x3e4e20('0x11fd')])_0x4ae231[_0x3e4e20('0xb76')](_0xaadbfb[_0x3e4e20('0xd49')][_0x3e4e20('0x22d5')]({'sectionId':_0x2b2de5['id']})[_0x3e4e20('0xe59')]);else{var _0x3f25d4=[];_0x4b26d9['forEach'](function(_0x59a5f1){var _0x559130=_0x3e4e20;_0x59a5f1[_0x559130('0x62e')]===_0x295f79[_0x32c625]['type']&&_0x3f25d4['push'](_0x59a5f1);}),_0x4ae231[_0x3e4e20('0xb76')]({'rows':_0x3f25d4,'count':_0x3f25d4['length']});}}};for(var _0x14c740=0x0;_0x14c740<_0x295f79[_0x2d6049('0x25ae')];_0x14c740++){_0x560ded(_0x14c740);}return _0x4f3f07[_0x2d6049('0xf0e')](_0x4ae231);})[_0x489c1b('0xe19')](function(_0x5ae75b){var _0x53d5c2=_0x489c1b,_0x1c81d9=[],_0xbcf4fb=[];_0x3c5787[_0x53d5c2('0x2244')][_0x53d5c2('0x16a7')][_0x53d5c2('0x1d7e')](function(_0x3aa1b3){var _0x335aae=_0x53d5c2;if(_0x3aa1b3[_0x335aae('0x15d1')]==='queue'){var _0x1b9df0=_0x32d445()[_0x335aae('0xf15')](_0x4b26d9,{'name':_0x3aa1b3['value']});_0xbcf4fb['push'](_0x1b9df0);}});for(var _0x2f908c=0x0;_0x2f908c<_0x5ae75b['length'];_0x2f908c++){var _0x32bce1=_0x5ae75b[_0x2f908c][_0x53d5c2('0x16a7')]||[];_0x32bce1['forEach'](function(_0x14dea7){_0x1c81d9['push'](_0x14dea7);});}!_0x32d445()['isEmpty'](_0xbcf4fb)&&_0xbcf4fb[_0x53d5c2('0x1d7e')](function(_0x402a01){var _0x12390d=_0x53d5c2;if(!_0x32d445()['some'](_0x1c81d9,[_0x12390d('0x1104'),_0x402a01['id']])){var _0x1e7c25=_0x32d445()[_0x12390d('0xf15')](_0x4b26d9,{'id':_0x402a01['id']});_0x1e7c25[_0x12390d('0x1e9d')]=![],_0x1c81d9[_0x12390d('0xb76')](_0x1e7c25);}}),_0x3c5787['queues']=_0x1c81d9;})[_0x489c1b('0x223b')](function(_0x3311fe){var _0x52cf0a=_0x489c1b;_0x2fedc2[_0x52cf0a('0x8c8')]({'title':_0x3311fe[_0x52cf0a('0x2833')]?_0x52cf0a('0x27f2')+_0x3311fe[_0x52cf0a('0x2833')]+_0x52cf0a('0x1b7c')+_0x3311fe[_0x52cf0a('0x1fd7')]:_0x52cf0a('0x19e6'),'msg':_0x3311fe['data']?JSON[_0x52cf0a('0x3ad')](_0x3311fe['data']):_0x3311fe['toString']()});});}function _0x5ad993(){var _0xa68d88=_0x1089fd;_0x5133fd['isAdmin']()?_0xaadbfb['voiceExtension'][_0xa68d88('0x22d5')]({'fields':_0xa68d88('0x1210'),'type':_0xa68d88('0x1fdf'),'VoiceExtensionId':'null','nolimit':'true'})['$promise'][_0xa68d88('0xe19')](function(_0x42cadc){var _0x5e6207=_0xa68d88;_0x3c5787[_0x5e6207('0x28ae')]=_0x42cadc[_0x5e6207('0x16a7')]||[];})[_0xa68d88('0x223b')](function(_0x4bf870){var _0x2e2c28=_0xa68d88;_0x2fedc2['error']({'title':_0x4bf870[_0x2e2c28('0x2833')]?'API:'+_0x4bf870[_0x2e2c28('0x2833')]+_0x2e2c28('0x1b7c')+_0x4bf870[_0x2e2c28('0x1fd7')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x4bf870[_0x2e2c28('0x11d0')]?JSON[_0x2e2c28('0x3ad')](_0x4bf870[_0x2e2c28('0x11d0')]):_0x4bf870[_0x2e2c28('0x94f')]()});}):_0xaadbfb['voiceExtension'][_0xa68d88('0x22d5')]({'fields':'id,exten','type':_0xa68d88('0x1fdf'),'VoiceExtensionId':_0xa68d88('0x1046'),'nolimit':_0xa68d88('0x2206')})[_0xa68d88('0xe59')]['then'](function(_0x53e718){var _0x2f5060=_0xa68d88;_0x3c5787[_0x2f5060('0x28ae')]=_0x53e718[_0x2f5060('0x16a7')]||[];})[_0xa68d88('0xe19')](function(){var _0x2f482c=_0xa68d88;return _0xaadbfb[_0x2f482c('0xb59')][_0x2f482c('0x22d5')]({'userProfileId':_0x3c5787['currentUser']['userProfileId'],'sectionId':0x193})[_0x2f482c('0xe59')];})[_0xa68d88('0xe19')](function(_0x51049a){var _0x1ddb5e=_0xa68d88,_0x35b877=_0x51049a&&_0x51049a[_0x1ddb5e('0x16a7')]?_0x51049a['rows'][0x0]:null;if(!_0x35b877){var _0x4c1a52=[],_0x16dfc1=[];_0x3c5787[_0x1ddb5e('0x2244')][_0x1ddb5e('0x16a7')]['forEach'](function(_0x2a75e9){var _0x41c259=_0x1ddb5e;if(_0x2a75e9[_0x41c259('0x15d1')]===_0x41c259('0x4b3')){var _0x1220ed=_0x32d445()['find'](_0x3c5787[_0x41c259('0x28ae')],{'id':Number(_0x2a75e9[_0x41c259('0x2')])});_0x16dfc1[_0x41c259('0xb76')](_0x1220ed);}});for(var _0x33a2aa=0x0;_0x33a2aa<_0x3c5787['outboundRoutes'][_0x1ddb5e('0x25ae')];_0x33a2aa++){var _0x1b640c=_0x32d445()['some'](_0x16dfc1,{'id':_0x3c5787[_0x1ddb5e('0x28ae')][_0x33a2aa]['id']});_0x1b640c&&(_0x3c5787[_0x1ddb5e('0x28ae')][_0x33a2aa][_0x1ddb5e('0x1e9d')]=![],_0x4c1a52[_0x1ddb5e('0xb76')](_0x3c5787[_0x1ddb5e('0x28ae')][_0x33a2aa]));}_0x3c5787['outboundRoutes']=_0x4c1a52;}else{if(!_0x35b877[_0x1ddb5e('0x11fd')])return _0xaadbfb[_0x1ddb5e('0xd49')][_0x1ddb5e('0x22d5')]({'sectionId':_0x35b877['id']})[_0x1ddb5e('0xe59')][_0x1ddb5e('0xe19')](function(_0x272c34){var _0x257c03=_0x1ddb5e,_0x84eaee=_0x32d445()[_0x257c03('0x65a')](_0x272c34['rows'],function(_0x2a0f83){var _0x1f189d=_0x257c03;return _0x32d445()[_0x1f189d('0xf15')](_0x3c5787[_0x1f189d('0x28ae')],{'id':_0x2a0f83[_0x1f189d('0x1104')]});}),_0x34217a=null;_0x34217a=[],_0x3c5787['triggerallConditions'][_0x257c03('0x16a7')][_0x257c03('0x1d7e')](function(_0x50a667){var _0x26f61c=_0x257c03;if(_0x50a667[_0x26f61c('0x15d1')]===_0x26f61c('0x4b3')){var _0x1297b0=_0x32d445()[_0x26f61c('0xf15')](_0x3c5787[_0x26f61c('0x28ae')],{'id':Number(_0x50a667[_0x26f61c('0x2')])});_0x34217a[_0x26f61c('0xb76')](_0x1297b0);}}),!_0x32d445()[_0x257c03('0x14b4')](_0x34217a)&&_0x34217a[_0x257c03('0x1d7e')](function(_0x57726a){var _0x401686=_0x257c03;if(!_0x32d445()[_0x401686('0x201a')](_0x84eaee,['id',_0x57726a['id']])){var _0x5d9791=_0x32d445()['find'](_0x3c5787[_0x401686('0x28ae')],{'id':_0x57726a['id']});_0x5d9791['canSelect']=![],_0x84eaee['push'](_0x5d9791);}}),_0x3c5787[_0x257c03('0x28ae')]=_0x84eaee;});}})[_0xa68d88('0x223b')](function(_0x42e2c7){var _0x4365ae=_0xa68d88;_0x2fedc2[_0x4365ae('0x8c8')]({'title':_0x42e2c7[_0x4365ae('0x2833')]?'API:'+_0x42e2c7[_0x4365ae('0x2833')]+_0x4365ae('0x1b7c')+_0x42e2c7['statusText']:_0x4365ae('0x24ba'),'msg':_0x42e2c7[_0x4365ae('0x11d0')]?JSON['stringify'](_0x42e2c7[_0x4365ae('0x11d0')]):_0x42e2c7['toString']()});});}function _0x4aab30(){var _0x3ca1c7=_0x1089fd;_0x5133fd[_0x3ca1c7('0x1da3')]()?_0xaadbfb[_0x3ca1c7('0x10c6')][_0x3ca1c7('0x22d5')]({'fields':_0x3ca1c7('0x194c'),'sort':_0x3ca1c7('0x2623'),'role':'agent','nolimit':_0x3ca1c7('0x2206')})[_0x3ca1c7('0xe59')][_0x3ca1c7('0xe19')](function(_0xe31786){var _0x526534=_0x3ca1c7;_0x3c5787[_0x526534('0x29b')]=_0xe31786['rows']||[];})[_0x3ca1c7('0x223b')](function(_0x5523b8){var _0x4ccee7=_0x3ca1c7;_0x2fedc2[_0x4ccee7('0x8c8')]({'title':_0x5523b8['status']?_0x4ccee7('0x27f2')+_0x5523b8['status']+_0x4ccee7('0x1b7c')+_0x5523b8[_0x4ccee7('0x1fd7')]:_0x4ccee7('0x1e86'),'msg':_0x5523b8[_0x4ccee7('0x11d0')]?JSON[_0x4ccee7('0x3ad')](_0x5523b8[_0x4ccee7('0x11d0')]):_0x5523b8['toString']()});}):_0xaadbfb['user'][_0x3ca1c7('0x22d5')]({'fields':_0x3ca1c7('0x194c'),'sort':_0x3ca1c7('0x2623'),'role':_0x3ca1c7('0x108'),'nolimit':_0x3ca1c7('0x2206')})['$promise'][_0x3ca1c7('0xe19')](function(_0x3e9302){var _0x4b4a3a=_0x3ca1c7;_0x3c5787[_0x4b4a3a('0x29b')]=_0x3e9302[_0x4b4a3a('0x16a7')]||[];})[_0x3ca1c7('0xe19')](function(){var _0x4e5970=_0x3ca1c7;return _0xaadbfb[_0x4e5970('0xb59')]['get']({'userProfileId':_0x3c5787[_0x4e5970('0x15a5')][_0x4e5970('0x1d04')],'sectionId':0xca})[_0x4e5970('0xe59')];})[_0x3ca1c7('0xe19')](function(_0x17028c){var _0x4f912b=_0x3ca1c7,_0x21647e=_0x17028c&&_0x17028c[_0x4f912b('0x16a7')]?_0x17028c[_0x4f912b('0x16a7')][0x0]:null;if(!_0x21647e){var _0x5376b0=[],_0x57a3d4=[];_0x3c5787[_0x4f912b('0x2244')][_0x4f912b('0x16a7')][_0x4f912b('0x1d7e')](function(_0x44c953){var _0x5b7bac=_0x4f912b;if(_0x44c953[_0x5b7bac('0x15d1')]===_0x5b7bac('0x108')){var _0x400a81=_0x32d445()[_0x5b7bac('0xf15')](_0x3c5787['agents'],{'name':_0x44c953[_0x5b7bac('0x2')]});_0x57a3d4['push'](_0x400a81);}});for(var _0x16db18=0x0;_0x16db18<_0x3c5787['agents'][_0x4f912b('0x25ae')];_0x16db18++){var _0x1a96d1=_0x32d445()[_0x4f912b('0x201a')](_0x57a3d4,{'id':_0x3c5787[_0x4f912b('0x29b')][_0x16db18]['id']});_0x1a96d1&&(_0x3c5787['agents'][_0x16db18]['canSelect']=![],_0x5376b0[_0x4f912b('0xb76')](_0x3c5787[_0x4f912b('0x29b')][_0x16db18]));}_0x3c5787[_0x4f912b('0x29b')]=_0x5376b0;}else{if(!_0x21647e[_0x4f912b('0x11fd')])return _0xaadbfb[_0x4f912b('0xd49')][_0x4f912b('0x22d5')]({'sectionId':_0x21647e['id']})[_0x4f912b('0xe59')][_0x4f912b('0xe19')](function(_0x5c53af){var _0x2732ee=_0x4f912b,_0x1c1c04=_0x32d445()[_0x2732ee('0x65a')](_0x5c53af[_0x2732ee('0x16a7')],function(_0x38cca1){var _0x2d93d9=_0x2732ee;return _0x32d445()[_0x2d93d9('0xf15')](_0x3c5787[_0x2d93d9('0x29b')],{'id':_0x38cca1[_0x2d93d9('0x1104')]});}),_0x3dd461=null;_0x3dd461=[],_0x3c5787[_0x2732ee('0x2244')][_0x2732ee('0x16a7')][_0x2732ee('0x1d7e')](function(_0x2703ab){var _0x13aa53=_0x2732ee;if(_0x2703ab[_0x13aa53('0x15d1')]===_0x13aa53('0x108')){var _0x2f38b6=_0x32d445()[_0x13aa53('0xf15')](_0x3c5787[_0x13aa53('0x29b')],{'name':_0x2703ab[_0x13aa53('0x2')]});_0x3dd461[_0x13aa53('0xb76')](_0x2f38b6);}}),!_0x32d445()[_0x2732ee('0x14b4')](_0x3dd461)&&_0x3dd461[_0x2732ee('0x1d7e')](function(_0x377211){var _0x3540f9=_0x2732ee;if(!_0x32d445()[_0x3540f9('0x201a')](_0x1c1c04,['id',_0x377211['id']])){var _0x381d3d=_0x32d445()[_0x3540f9('0xf15')](_0x3c5787['agents'],{'id':_0x377211['id']});_0x381d3d[_0x3540f9('0x1e9d')]=![],_0x1c1c04[_0x3540f9('0xb76')](_0x381d3d);}}),_0x3c5787[_0x2732ee('0x29b')]=_0x1c1c04;});}})['catch'](function(_0x164cb2){var _0x14faaf=_0x3ca1c7;_0x2fedc2[_0x14faaf('0x8c8')]({'title':_0x164cb2[_0x14faaf('0x2833')]?_0x14faaf('0x27f2')+_0x164cb2[_0x14faaf('0x2833')]+_0x14faaf('0x1b7c')+_0x164cb2['statusText']:'SYSTEM:GET_AGENTS','msg':_0x164cb2[_0x14faaf('0x11d0')]?JSON[_0x14faaf('0x3ad')](_0x164cb2[_0x14faaf('0x11d0')]):_0x164cb2[_0x14faaf('0x94f')]()});});}function _0x5a2476(){var _0x11a960=_0x1089fd,_0x8e3fa4=_0x3c5787[_0x11a960('0x1481')]['channel']+(_0x3c5787[_0x11a960('0x1481')][_0x11a960('0x4e')]===_0x11a960('0x17cc')?_0x11a960('0x186c'):_0x11a960('0x1e4e')),_0x5c291b;switch(_0x3c5787[_0x11a960('0x1481')][_0x11a960('0x4e')]){case _0x11a960('0x17cc'):_0x5c291b=0x1f6;break;case _0x11a960('0x625'):_0x5c291b=0x386;break;case'mail':_0x5c291b=0x25a;break;case _0x11a960('0xaf2'):_0x5c291b=0x322;break;case'sms':_0x5c291b=0x2be;break;case _0x11a960('0x4b7'):_0x5c291b=0x836;break;}if(_0x5133fd[_0x11a960('0x1da3')]()){var _0x5ebebd=_0x3c5787[_0x11a960('0x1481')][_0x11a960('0x4e')];_0xaadbfb[_0x8e3fa4][_0x11a960('0x22d5')]({'fields':'id,name','sort':'id','nolimit':_0x11a960('0x2206')})[_0x11a960('0xe59')][_0x11a960('0xe19')](function(_0x204dee){var _0x49c03d=_0x11a960;_0x3c5787['accounts']=_0x204dee[_0x49c03d('0x16a7')]||[];})[_0x11a960('0x223b')](function(_0x394c59){var _0x5329f3=_0x11a960;_0x2fedc2[_0x5329f3('0x8c8')]({'title':_0x394c59[_0x5329f3('0x2833')]?_0x5329f3('0x27f2')+_0x394c59[_0x5329f3('0x2833')]+_0x5329f3('0x1b7c')+_0x394c59[_0x5329f3('0x1fd7')]:_0x5329f3('0x1e13')+_0x5ebebd[_0x5329f3('0x25f7')]()+_0x5ebebd===_0x5329f3('0x17cc')?'WEBSITES':_0x5329f3('0x14e7'),'msg':_0x394c59[_0x5329f3('0x11d0')]?JSON[_0x5329f3('0x3ad')](_0x394c59[_0x5329f3('0x11d0')]):_0x394c59[_0x5329f3('0x94f')]()});});}else _0xaadbfb[_0x8e3fa4][_0x11a960('0x22d5')]({'fields':_0x11a960('0x104'),'sort':'id','nolimit':_0x11a960('0x2206')})[_0x11a960('0xe59')]['then'](function(_0x598201){_0x3c5787['accounts']=_0x598201['rows']||[];})[_0x11a960('0xe19')](function(){var _0x336b4d=_0x11a960;return _0xaadbfb[_0x336b4d('0xb59')][_0x336b4d('0x22d5')]({'userProfileId':_0x3c5787[_0x336b4d('0x15a5')]['userProfileId'],'sectionId':_0x5c291b})[_0x336b4d('0xe59')];})['then'](function(_0x226853){var _0x18f09e=_0x11a960,_0x3e5558=_0x226853&&_0x226853[_0x18f09e('0x16a7')]?_0x226853[_0x18f09e('0x16a7')][0x0]:null;if(!_0x3e5558){var _0x5c7efb=[],_0x214102=[];_0x3c5787['triggerallConditions'][_0x18f09e('0x16a7')]['forEach'](function(_0x2ea26f){var _0x1c070f=_0x18f09e;if(_0x2ea26f[_0x1c070f('0x15d1')]==='account'){var _0x322ee5=_0x32d445()[_0x1c070f('0xf15')](_0x3c5787[_0x1c070f('0xe00')],{'id':Number(_0x2ea26f[_0x1c070f('0x2')])});_0x214102[_0x1c070f('0xb76')](_0x322ee5);}});for(var _0x87ca22=0x0;_0x87ca22<_0x3c5787[_0x18f09e('0xe00')]['length'];_0x87ca22++){var _0xe56408=_0x32d445()['some'](_0x214102,{'id':_0x3c5787['accounts'][_0x87ca22]['id']});_0xe56408&&(_0x3c5787[_0x18f09e('0xe00')][_0x87ca22][_0x18f09e('0x1e9d')]=![],_0x5c7efb['push'](_0x3c5787[_0x18f09e('0xe00')][_0x87ca22]));}_0x3c5787['accounts']=_0x5c7efb;}else{if(!_0x3e5558[_0x18f09e('0x11fd')])return _0xaadbfb[_0x18f09e('0xd49')][_0x18f09e('0x22d5')]({'sectionId':_0x3e5558['id']})[_0x18f09e('0xe59')][_0x18f09e('0xe19')](function(_0x360206){var _0x524fb9=_0x18f09e,_0x44dd5c=_0x32d445()['map'](_0x360206[_0x524fb9('0x16a7')],function(_0x92a760){var _0x2ea388=_0x524fb9;return _0x32d445()[_0x2ea388('0xf15')](_0x3c5787[_0x2ea388('0xe00')],{'id':_0x92a760['resourceId']});}),_0x347ff4=null;_0x347ff4=[],_0x3c5787['triggerallConditions'][_0x524fb9('0x16a7')][_0x524fb9('0x1d7e')](function(_0x3f5cdd){var _0x4c9a82=_0x524fb9;if(_0x3f5cdd[_0x4c9a82('0x15d1')]===_0x4c9a82('0xe8b')){var _0x383c46=_0x32d445()[_0x4c9a82('0xf15')](_0x3c5787['accounts'],{'id':Number(_0x3f5cdd['value'])});_0x347ff4[_0x4c9a82('0xb76')](_0x383c46);}}),!_0x32d445()[_0x524fb9('0x14b4')](_0x347ff4)&&_0x347ff4[_0x524fb9('0x1d7e')](function(_0xfe0f32){var _0x21f2bb=_0x524fb9;if(!_0x32d445()[_0x21f2bb('0x201a')](_0x44dd5c,['id',_0xfe0f32['id']])){var _0x2fc301=_0x32d445()[_0x21f2bb('0xf15')](_0x3c5787['accounts'],{'id':_0xfe0f32['id']});_0x2fc301[_0x21f2bb('0x1e9d')]=![],_0x44dd5c['push'](_0x2fc301);}}),_0x3c5787[_0x524fb9('0xe00')]=_0x44dd5c;});}})[_0x11a960('0x223b')](function(_0x390d92){var _0x5c2ae2=_0x11a960,_0x558d06=_0x3c5787[_0x5c2ae2('0x1481')][_0x5c2ae2('0x4e')];_0x2fedc2['error']({'title':_0x390d92[_0x5c2ae2('0x2833')]?_0x5c2ae2('0x27f2')+_0x390d92[_0x5c2ae2('0x2833')]+'\x20-\x20'+_0x390d92[_0x5c2ae2('0x1fd7')]:_0x5c2ae2('0x1e13')+_0x558d06[_0x5c2ae2('0x25f7')]()+_0x558d06===_0x5c2ae2('0x17cc')?_0x5c2ae2('0x270d'):_0x5c2ae2('0x14e7'),'msg':_0x390d92[_0x5c2ae2('0x11d0')]?JSON['stringify'](_0x390d92[_0x5c2ae2('0x11d0')]):_0x390d92[_0x5c2ae2('0x94f')]()});});}function _0x231d3e(){var _0x22aaad=_0x1089fd;switch(_0x3c5787['allCondition']['field']){case'queue':if(!_0x3c5787[_0x22aaad('0x671')])_0x2c873f();break;case _0x22aaad('0x4b3'):if(!_0x3c5787['outboundRoutes'])_0x5ad993();break;case _0x22aaad('0x108'):if(!_0x3c5787[_0x22aaad('0x29b')])_0x4aab30();break;case _0x22aaad('0xe8b'):_0x5a2476();break;}}function _0x48d5f0(){_0x231d3e();}function _0xffd59b(){var _0x2d1b40=_0x1089fd;_0x3c5787[_0x2d1b40('0xcd2')]=[],_0xaadbfb[_0x2d1b40('0x1481')][_0x2d1b40('0xadb')]({'id':_0x5d0be9[_0x2d1b40('0x2ef')]['id']},_0x3c5787[_0x2d1b40('0xecd')])[_0x2d1b40('0xe59')][_0x2d1b40('0xe19')](function(_0x5bf376){var _0x48116e=_0x2d1b40;_0x3c5787[_0x48116e('0x1e2b')]['unshift'](_0x5bf376[_0x48116e('0x250e')]()),_0x2fedc2['success']({'title':_0x443c64[_0x48116e('0x2159')](_0x48116e('0xe7a'))}),_0x2b3dfb(_0x3c5787['allConditions']);})['catch'](function(_0x4f7031){var _0x336d9e=_0x2d1b40;if(_0x4f7031[_0x336d9e('0x11d0')]&&_0x4f7031[_0x336d9e('0x11d0')][_0x336d9e('0xcd2')]&&_0x4f7031[_0x336d9e('0x11d0')][_0x336d9e('0xcd2')][_0x336d9e('0x25ae')]){_0x3c5787[_0x336d9e('0xcd2')]=_0x4f7031[_0x336d9e('0x11d0')][_0x336d9e('0xcd2')]||[{'message':_0x4f7031['toString'](),'type':'api.condition.save'}];for(var _0x15f8c8=0x0;_0x15f8c8<_0x4f7031['data'][_0x336d9e('0xcd2')][_0x336d9e('0x25ae')];_0x15f8c8+=0x1){_0x2fedc2[_0x336d9e('0x8c8')]({'title':_0x4f7031['data'][_0x336d9e('0xcd2')][_0x15f8c8][_0x336d9e('0x62e')],'msg':_0x4f7031[_0x336d9e('0x11d0')][_0x336d9e('0xcd2')][_0x15f8c8]['message']});}}else _0x2fedc2[_0x336d9e('0x8c8')]({'title':_0x4f7031['status']?'API:'+_0x4f7031[_0x336d9e('0x2833')]+'\x20-\x20'+_0x4f7031[_0x336d9e('0x1fd7')]:_0x336d9e('0x71a'),'msg':_0x4f7031[_0x336d9e('0x11d0')]?JSON['stringify'](_0x4f7031[_0x336d9e('0x11d0')][_0x336d9e('0x27e8')]):_0x4f7031[_0x336d9e('0x94f')]()});});}function _0x4121bf(){var _0x42317c=_0x1089fd;_0x3c5787[_0x42317c('0xcd2')]=[],_0xaadbfb['condition']['update']({'id':_0x3c5787['allCondition']['id']},_0x3c5787['allCondition'])[_0x42317c('0xe59')][_0x42317c('0xe19')](function(){var _0x12727b=_0x42317c;_0x3c5787[_0x12727b('0x1e2b')]=_0x32d445()[_0x12727b('0x65a')](_0x3c5787[_0x12727b('0x1e2b')],function(_0x10f4fa){var _0x5ebea7=_0x12727b;if(_0x10f4fa['id']===_0x3c5787['allCondition']['id'])return _0x3c5787[_0x5ebea7('0xecd')];else return _0x10f4fa;}),_0x2fedc2[_0x12727b('0x425')]({'title':_0x443c64[_0x12727b('0x2159')]('TOOLS.NOTIFICATIONS.CONDITION_SAVED_SUCCESS_TITLE')}),_0x2b3dfb(_0x3c5787['allConditions']);})['catch'](function(_0x4738c5){var _0x29dd08=_0x42317c;if(_0x4738c5[_0x29dd08('0x11d0')]&&_0x4738c5[_0x29dd08('0x11d0')]['errors']&&_0x4738c5['data']['errors'][_0x29dd08('0x25ae')]){_0x3c5787[_0x29dd08('0xcd2')]=_0x4738c5[_0x29dd08('0x11d0')][_0x29dd08('0xcd2')]||[{'message':_0x4738c5[_0x29dd08('0x94f')](),'type':'api.condition.update'}];for(var _0x356ae7=0x0;_0x356ae7<_0x4738c5[_0x29dd08('0x11d0')][_0x29dd08('0xcd2')][_0x29dd08('0x25ae')];_0x356ae7++){_0x2fedc2['error']({'title':_0x4738c5[_0x29dd08('0x11d0')][_0x29dd08('0xcd2')][_0x356ae7][_0x29dd08('0x62e')],'msg':_0x4738c5[_0x29dd08('0x11d0')][_0x29dd08('0xcd2')][_0x356ae7][_0x29dd08('0x27e8')]});}}else _0x2fedc2[_0x29dd08('0x8c8')]({'title':_0x4738c5[_0x29dd08('0x2833')]?'API:'+_0x4738c5[_0x29dd08('0x2833')]+_0x29dd08('0x1b7c')+_0x4738c5['statusText']:_0x29dd08('0xbc3'),'msg':_0x4738c5[_0x29dd08('0x11d0')]?JSON['stringify'](_0x4738c5[_0x29dd08('0x11d0')]['message']):_0x4738c5[_0x29dd08('0x94f')]()});});}function _0x2cfa40(_0x4f3b74){var _0x1f980f=_0x1089fd;_0x3c5787[_0x1f980f('0xcd2')]=[];var _0x29b863=_0x5dbc25[_0x1f980f('0xa5')]({'skipHide':!![]})[_0x1f980f('0x13e4')](_0x443c64['instant'](_0x1f980f('0x25c6')))[_0x1f980f('0x4d1')]('Delete\x20condition')['ok'](_0x443c64['instant']('TOOLS.DELETE'))['cancel'](_0x443c64['instant'](_0x1f980f('0x717')))[_0x1f980f('0x1345')](_0x4f3b74);_0x5dbc25['show'](_0x29b863)[_0x1f980f('0xe19')](function(){var _0x292648=_0x1f980f;_0xaadbfb[_0x292648('0x1c03')]['delete']({'id':_0x3c5787[_0x292648('0xecd')]['id']})[_0x292648('0xe59')][_0x292648('0xe19')](function(){var _0x48baaf=_0x292648;_0x3c5787[_0x48baaf('0x1e2b')]=_0x32d445()[_0x48baaf('0x2891')](_0x3c5787[_0x48baaf('0x1e2b')],function(_0x57e606){var _0x4ff679=_0x48baaf;return _0x57e606['id']!==_0x3c5787[_0x4ff679('0xecd')]['id'];}),_0x2fedc2[_0x48baaf('0x425')]({'title':_0x443c64[_0x48baaf('0x2159')](_0x48baaf('0x536'))}),_0x2b3dfb(_0x3c5787[_0x48baaf('0x1e2b')]);})[_0x292648('0x223b')](function(_0x124f52){var _0x5ace29=_0x292648;if(_0x124f52[_0x5ace29('0x11d0')]&&_0x124f52['data'][_0x5ace29('0xcd2')]&&_0x124f52['data'][_0x5ace29('0xcd2')][_0x5ace29('0x25ae')]){_0x3c5787[_0x5ace29('0xcd2')]=_0x124f52[_0x5ace29('0x11d0')][_0x5ace29('0xcd2')]||[{'message':_0x124f52[_0x5ace29('0x94f')](),'type':_0x5ace29('0x22b')}];for(var _0x2f0bb3=0x0;_0x2f0bb3<_0x124f52[_0x5ace29('0x11d0')][_0x5ace29('0xcd2')][_0x5ace29('0x25ae')];_0x2f0bb3++){_0x2fedc2[_0x5ace29('0x8c8')]({'title':_0x124f52['data'][_0x5ace29('0xcd2')][_0x2f0bb3]['type'],'msg':_0x124f52[_0x5ace29('0x11d0')][_0x5ace29('0xcd2')][_0x2f0bb3][_0x5ace29('0x27e8')]});}}else _0x2fedc2[_0x5ace29('0x8c8')]({'title':_0x124f52[_0x5ace29('0x2833')]?_0x5ace29('0x27f2')+_0x124f52[_0x5ace29('0x2833')]+_0x5ace29('0x1b7c')+_0x124f52[_0x5ace29('0x1fd7')]:'api.condition.delete','msg':_0x124f52[_0x5ace29('0x11d0')]?JSON['stringify'](_0x124f52[_0x5ace29('0x11d0')]['message']):_0x124f52[_0x5ace29('0x27e8')]||_0x124f52[_0x5ace29('0x94f')]()});});},function(){});}function _0x2b3dfb(_0x363f2a){var _0x2a3ba0=_0x1089fd;_0x5dbc25[_0x2a3ba0('0x11ed')](_0x363f2a);}}const _0xfa5a60=_0x1a47e3;_0x1feaee[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),'$translate',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x1481'),'userProfileSection'];function _0x1feaee(_0x4da42d,_0xf8352e,_0x1d07cb,_0x21ddad,_0x4af5b5,_0x398c72,_0xad9389,_0xc9e152,_0x262af3){var _0x551232=_0xb635d2,_0x2fe6d3=this;_0x2fe6d3[_0x551232('0x15a5')]=_0xad9389[_0x551232('0x1ef8')](),_0x2fe6d3[_0x551232('0x5c1')]=_0x1d07cb,_0x2fe6d3[_0x551232('0x22f1')]=_0x21ddad,_0x2fe6d3['trigger']=_0xc9e152||_0x4da42d[_0x551232('0x2ef')][_0x551232('0x1481')]||{},_0x2fe6d3['selectedTab']=_0x4da42d[_0x551232('0x2ef')][_0x551232('0x435')]||0x0;_0x4da42d[_0x551232('0x2ef')][_0x551232('0xb3d')]?_0x2fe6d3[_0x551232('0xb3d')]=_0x4da42d['params'][_0x551232('0xb3d')]:(_0x2fe6d3['userProfileSection']=_0x262af3&&_0x262af3[_0x551232('0x148b')]==0x1?_0x262af3['rows'][0x0]:null,_0x2fe6d3[_0x551232('0xb3d')]=_0xad9389['parseCrudPermissions'](_0x2fe6d3[_0x551232('0xb59')]?_0x2fe6d3[_0x551232('0xb59')][_0x551232('0xb3d')]:null));_0x2fe6d3['gotoTriggers']=_0x563bda,_0x2fe6d3[_0x551232('0x323')]=_0x477538;function _0x563bda(){var _0xd66187=_0x551232;_0x4da42d['go']('app.tools.triggers',{},{'reload':_0xd66187('0x1641')});}function _0x477538(){var _0x5a0d30=_0x551232;_0x4af5b5['trigger'][_0x5a0d30('0xa70')]({'id':_0x2fe6d3[_0x5a0d30('0x1481')]['id']},_0x2fe6d3[_0x5a0d30('0x1481')])[_0x5a0d30('0xe59')][_0x5a0d30('0xe19')](function(){var _0x15152d=_0x5a0d30;_0x398c72['success']({'title':_0xf8352e[_0x15152d('0x2159')](_0x15152d('0x14c1'))});})[_0x5a0d30('0x223b')](function(_0x3cfe3c){var _0x2811eb=_0x5a0d30;_0x398c72[_0x2811eb('0x8c8')]({'title':_0x3cfe3c[_0x2811eb('0x2833')]?_0x2811eb('0x27f2')+_0x3cfe3c['status']+_0x2811eb('0x1b7c')+_0x3cfe3c[_0x2811eb('0x1fd7')]:_0x2811eb('0x207f'),'msg':_0x3cfe3c[_0x2811eb('0x11d0')]?JSON[_0x2811eb('0x3ad')](_0x3cfe3c[_0x2811eb('0x11d0')]):_0x3cfe3c[_0x2811eb('0x94f')]()});});}}const _0x4fc1ed=_0x1feaee,_0x447fee=_0x59426a['p']+_0xb635d2('0x21a9');_0x188989[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0x1373'),_0xb635d2('0x154f'),'userProfileSection','api',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x188989(_0x16d304,_0xdad6ec,_0x431c12,_0x54947b,_0xef9e7e,_0xe599d,_0x800848,_0x2acada,_0x409d29,_0x28c57c,_0x2ab347,_0x414f70,_0x1c38b2,_0x26a71f){var _0x2851bd=_0xb635d2,_0x56a4bd=this;_0x56a4bd['license']=_0x1c38b2,_0x56a4bd[_0x2851bd('0x22f1')]=_0x26a71f,_0x56a4bd[_0x2851bd('0x15a5')]=_0x414f70['getCurrentUser'](),_0x56a4bd['triggers']=_0x800848||{'count':0x0,'rows':[]},_0x56a4bd['userProfile']=_0x2acada,_0x56a4bd[_0x2851bd('0xb59')]=_0x409d29&&_0x409d29[_0x2851bd('0x148b')]==0x1?_0x409d29[_0x2851bd('0x16a7')][0x0]:null,_0x56a4bd[_0x2851bd('0xb3d')]=_0x414f70[_0x2851bd('0xd31')](_0x56a4bd['userProfileSection']?_0x56a4bd[_0x2851bd('0xb59')][_0x2851bd('0xb3d')]:null),_0x56a4bd[_0x2851bd('0x243')]=[],_0x56a4bd[_0x2851bd('0xa16')]={'fields':_0x2851bd('0x253'),'sort':_0x2851bd('0x7e8'),'limit':0xa,'page':0x1},_0x56a4bd[_0x2851bd('0x202e')]=_0x1ae984,_0x56a4bd['createOrEditTrigger']=_0x175226,_0x56a4bd['success']=_0x26aa3e,_0x56a4bd[_0x2851bd('0x239f')]=_0x1950ba,_0x56a4bd[_0x2851bd('0x1d9e')]=_0x5a5a5d,_0x56a4bd[_0x2851bd('0x27c0')]=_0x439d23,_0x56a4bd[_0x2851bd('0x3bc')]=_0x46965e,_0x56a4bd[_0x2851bd('0x1c5e')]=_0xbd3f04,_0x56a4bd['selectAllTriggers']=_0x4f12af;function _0x1ae984(_0x147c39){var _0x1bce01=_0x2851bd;_0xdad6ec['go'](_0x1bce01('0xb57'),{'id':_0x147c39['id'],'trigger':_0x147c39,'crudPermissions':_0x56a4bd[_0x1bce01('0xb3d')]});}function _0x175226(_0xd4a5d9,_0x510e19){var _0x329c5d=_0x2851bd;if(_0x56a4bd[_0x329c5d('0xb3d')][_0x329c5d('0xab5')]||_0x56a4bd[_0x329c5d('0xb3d')]['canDelete']&&!_0x56a4bd[_0x329c5d('0xb3d')][_0x329c5d('0x12bc')]){_0x1ae984(_0x510e19);return;}_0x431c12[_0x329c5d('0x26b2')]({'controller':_0x329c5d('0xf03'),'controllerAs':'vm','templateUrl':_0x447fee,'parent':angular[_0x329c5d('0x24a1')](_0x54947b[_0x329c5d('0x19b2')]),'targetEvent':_0xd4a5d9,'clickOutsideToClose':!![],'locals':{'trigger':_0x510e19,'triggers':_0x56a4bd[_0x329c5d('0x1373')]['rows'],'license':_0x56a4bd[_0x329c5d('0x5c1')],'setting':_0x56a4bd['setting'],'crudPermissions':_0x56a4bd[_0x329c5d('0xb3d')]}})[_0x329c5d('0xe19')](function(_0x90bded){var _0x42ed7f=_0x329c5d;_0x90bded&&(_0x56a4bd[_0x42ed7f('0x1373')]={'count':_0x90bded[_0x42ed7f('0x25ae')],'rows':_0x90bded});});}function _0x26aa3e(_0x3b8090){var _0x2db089=_0x2851bd;_0x56a4bd[_0x2db089('0x1373')]=_0x3b8090||{'count':0x0,'rows':[]};}function _0x1950ba(){var _0x5475cb=_0x2851bd;_0x56a4bd['query'][_0x5475cb('0xab0')]=(_0x56a4bd[_0x5475cb('0xa16')][_0x5475cb('0xc08')]-0x1)*_0x56a4bd[_0x5475cb('0xa16')][_0x5475cb('0x1b6d')],_0x414f70[_0x5475cb('0x1da3')]()?_0x56a4bd['promise']=_0x28c57c[_0x5475cb('0x1481')][_0x5475cb('0x22d5')](_0x56a4bd[_0x5475cb('0xa16')],_0x26aa3e)['$promise']:(_0x56a4bd[_0x5475cb('0xa16')]['id']=_0x56a4bd[_0x5475cb('0x154f')]['id'],_0x56a4bd[_0x5475cb('0xa16')]['section']=_0x5475cb('0xb8f'),_0x56a4bd['promise']=_0x28c57c['userProfile'][_0x5475cb('0x14e6')](_0x56a4bd['query'],_0x26aa3e)[_0x5475cb('0xe59')]);}function _0x5a5a5d(_0x1d6523,_0x480891){var _0x11a16d=_0x2851bd,_0x5b4343=_0x431c12['confirm']()[_0x11a16d('0x13e4')](_0xe599d[_0x11a16d('0x2159')](_0x11a16d('0x23c')))['content'](_0xe599d[_0x11a16d('0x2159')](_0x11a16d('0x1dcc'),{'name':_0x1d6523[_0x11a16d('0x2623')]}))[_0x11a16d('0x4d1')]('Delete\x20trigger')[_0x11a16d('0x1345')](_0x480891)['ok']('OK')[_0x11a16d('0x2c1')](_0xe599d[_0x11a16d('0x2159')](_0x11a16d('0x717')));_0x431c12['show'](_0x5b4343)['then'](function(){_0x230398(_0x1d6523,!![]);});}function _0x230398(_0x33306a,_0xaef2f2){var _0x2cbf9b=_0x2851bd;_0x28c57c['trigger']['delete']({'id':_0x33306a['id']})[_0x2cbf9b('0xe59')]['then'](function(){_0x1950ba(),_0xaef2f2&&_0x2ab347['success']({'title':_0xe599d['instant']('TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE')});})[_0x2cbf9b('0x223b')](function(_0x2cd678){var _0x52b66c=_0x2cbf9b;if(_0x2cd678[_0x52b66c('0x11d0')]&&_0x2cd678[_0x52b66c('0x11d0')]['errors']&&_0x2cd678[_0x52b66c('0x11d0')][_0x52b66c('0xcd2')][_0x52b66c('0x25ae')]){_0x56a4bd['errors']=_0x2cd678[_0x52b66c('0x11d0')][_0x52b66c('0xcd2')]||[{'message':_0x2cd678[_0x52b66c('0x94f')](),'type':_0x52b66c('0x1b80')}];for(var _0x1af98d=0x0;_0x1af98d<_0x2cd678[_0x52b66c('0x11d0')]['errors'][_0x52b66c('0x25ae')];_0x1af98d++){_0x2ab347[_0x52b66c('0x8c8')]({'title':_0x2cd678[_0x52b66c('0x11d0')][_0x52b66c('0xcd2')][_0x1af98d][_0x52b66c('0x62e')],'msg':_0x2cd678[_0x52b66c('0x11d0')][_0x52b66c('0xcd2')][_0x1af98d]['message']});}}else _0x2ab347['error']({'title':_0x2cd678['status']?_0x52b66c('0x27f2')+_0x2cd678[_0x52b66c('0x2833')]+_0x52b66c('0x1b7c')+_0x2cd678[_0x52b66c('0x1fd7')]:_0x52b66c('0x1b80'),'msg':_0x2cd678[_0x52b66c('0x11d0')]?JSON[_0x52b66c('0x3ad')](_0x2cd678['data'][_0x52b66c('0x27e8')]):_0x2cd678[_0x52b66c('0x27e8')]||_0x2cd678[_0x52b66c('0x94f')]()});});}function _0x439d23(){var _0x7bc892=_0x2851bd,_0x443f9a=angular['copy'](_0x56a4bd[_0x7bc892('0x243')]);return _0x56a4bd[_0x7bc892('0x243')]=[],_0x443f9a;}function _0x46965e(_0x4fbd55){var _0x1454ae=_0x2851bd,_0x192b8b=_0x431c12[_0x1454ae('0xa5')]()[_0x1454ae('0x13e4')](_0xe599d['instant']('TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_TITLE'))['content'](_0xe599d['instant'](_0x1454ae('0x8fb'),{'total':_0x56a4bd[_0x1454ae('0x243')]['length']}))[_0x1454ae('0x4d1')](_0x1454ae('0xc49'))[_0x1454ae('0x1345')](_0x4fbd55)['ok']('OK')[_0x1454ae('0x2c1')](_0xe599d[_0x1454ae('0x2159')](_0x1454ae('0x717')));_0x431c12['show'](_0x192b8b)[_0x1454ae('0xe19')](function(){var _0x1e8ff3=_0x1454ae;_0x56a4bd[_0x1e8ff3('0x243')][_0x1e8ff3('0x1d7e')](function(_0x33e655){_0x230398(_0x33e655);}),_0x56a4bd[_0x1e8ff3('0x243')]=[],_0x2ab347[_0x1e8ff3('0x425')]({'title':_0xe599d[_0x1e8ff3('0x2159')](_0x1e8ff3('0x222'))});});}function _0xbd3f04(){var _0x175634=_0x2851bd;_0x56a4bd[_0x175634('0x243')]=[];}function _0x4f12af(){var _0x1d6891=_0x2851bd;_0x56a4bd[_0x1d6891('0x243')]=_0x56a4bd['triggers'][_0x1d6891('0x16a7')];}var _0x235f71=!![],_0x12adbc=0x1;_0x16d304[_0x2851bd('0x107')](_0x2851bd('0x20cb'),function(_0x4e75ab,_0x221be1){var _0x571f1b=_0x2851bd;_0x235f71?_0xef9e7e(function(){_0x235f71=![];}):(!_0x221be1&&(_0x12adbc=_0x56a4bd[_0x571f1b('0xa16')][_0x571f1b('0xc08')]),_0x4e75ab!==_0x221be1&&(_0x56a4bd[_0x571f1b('0xa16')][_0x571f1b('0xc08')]=0x1),!_0x4e75ab&&(_0x56a4bd[_0x571f1b('0xa16')]['page']=_0x12adbc),_0x1950ba());});}const _0x52fadd=_0x188989;_0x9d3a25[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x9d3a25(_0x27a0ee){var _0x534806=_0xb635d2;_0x27a0ee['state'](_0x534806('0x1641'),{'url':'/triggers','views':{'content@app':{'templateUrl':_0x1137aa,'controller':_0x534806('0x1d7d')}},'resolve':{'triggers':['apiResolver',_0x534806('0x2730'),function _0x379cc7(_0x2aa930,_0x3c8c29){var _0x3ccbd6=_0x534806;return _0x3c8c29[_0x3ccbd6('0x179e')](_0x3ccbd6('0xd14'))?_0x2aa930[_0x3ccbd6('0xcd6')](_0x3ccbd6('0x1364'),{'fields':_0x3ccbd6('0x7e3'),'sort':_0x3ccbd6('0x7e8'),'limit':0xa,'offset':0x0}):_0x2aa930[_0x3ccbd6('0xcd6')](_0x3ccbd6('0x197d'),{'id':_0x3c8c29['getCurrentUser']()[_0x3ccbd6('0x1d04')],'section':'Triggers','fields':'createdAt,updatedAt,id,name,channel,status,description','sort':_0x3ccbd6('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x534806('0x2730'),function _0x4ca4fc(_0xc16b9e,_0x2d9b13){var _0x944366=_0x534806;return _0x2d9b13[_0x944366('0x179e')](_0x944366('0xd14'))?null:_0xc16b9e[_0x944366('0xcd6')](_0x944366('0x455'),{'fields':_0x944366('0x1b71'),'id':_0x2d9b13[_0x944366('0x1ef8')]()[_0x944366('0x1d04')]});}],'userProfileSection':[_0x534806('0x292'),_0x534806('0x2730'),function _0x3ec5c4(_0x219615,_0x6a4007){var _0x5c705d=_0x534806;return _0x6a4007['hasRole'](_0x5c705d('0xd14'))?null:_0x219615[_0x5c705d('0xcd6')](_0x5c705d('0x264e'),{'fields':_0x5c705d('0x12d6'),'userProfileId':_0x6a4007[_0x5c705d('0x1ef8')]()[_0x5c705d('0x1d04')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x534806('0xfbe')})[_0x534806('0x1d72')](_0x534806('0xb57'),{'url':_0x534806('0xb1d'),'params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x49319b,'controller':_0x534806('0x26b3')}},'resolve':{'trigger':['apiResolver',_0x534806('0x34'),function _0x232fe1(_0x3622f3,_0x1e311a){var _0x33b0f7=_0x534806;return _0x3622f3[_0x33b0f7('0xcd6')](_0x33b0f7('0x1364'),{'fields':_0x33b0f7('0x7e3'),'id':_0x1e311a['id']});}],'userProfileSection':[_0x534806('0x292'),_0x534806('0x2730'),function _0x1fbf21(_0x1ccb4d,_0x1571a9){var _0x4a72af=_0x534806;return _0x1ccb4d[_0x4a72af('0xcd6')]('userProfileSection@get',{'fields':_0x4a72af('0x12d6'),'userProfileId':_0x1571a9[_0x4a72af('0x1ef8')]()[_0x4a72af('0x1d04')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x534806('0xfbe')});}angular['module'](_0xb635d2('0x1641'),[])['config'](_0x9d3a25)[_0xb635d2('0x1a79')](_0xb635d2('0xf03'),_0x17e626)[_0xb635d2('0x1a79')](_0xb635d2('0xe34'),_0x5db86b)[_0xb635d2('0x1a79')](_0xb635d2('0x27e2'),_0xf34333)['controller'](_0xb635d2('0x2776'),_0x22ba88)[_0xb635d2('0x1a79')]('CreateOrEditAllConditionDialogController',_0x1d376b)[_0xb635d2('0x1a79')]('TriggerAnyConditionsController',_0x4f3637)['controller']('CreateOrEditAnyConditionDialogController',_0xfa5a60)[_0xb635d2('0x1a79')](_0xb635d2('0x21db'),_0x4fc1ed)[_0xb635d2('0x1a79')](_0xb635d2('0x4d6'),_0x52fadd);const _0x30e64b=_0x59426a['p']+'src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.html/cannedAnswers-[chunkhash].html',_0xe48123=_0x59426a['p']+_0xb635d2('0x1ff8'),_0x5945b1=_0x59426a['p']+_0xb635d2('0x332'),_0x5582cb=_0x59426a['p']+'src/js/modules/main/apps/tools/views/intervals/intervals.html/intervals-[chunkhash].html',_0x567638=_0x59426a['p']+_0xb635d2('0x1f74'),_0x3e56ff=_0x59426a['p']+'src/js/modules/main/apps/tools/views/pauses/pauses.html/pauses-[chunkhash].html',_0x517953=_0x59426a['p']+'src/js/modules/main/apps/tools/views/schedules/schedules.html/schedules-[chunkhash].html',_0x26f45f=_0x59426a['p']+_0xb635d2('0x252b'),_0x218067=_0x59426a['p']+_0xb635d2('0x58a'),_0x1914f7=_0x59426a['p']+'src/js/modules/main/apps/tools/views/templates/templates.html/templates-[chunkhash].html',_0x307757=_0x59426a['p']+_0xb635d2('0x1e50'),_0x40f673=_0x59426a['p']+'src/js/modules/main/apps/tools/views/trunks/edit/view.html/view-[chunkhash].html',_0x118bdb=_0x59426a['p']+_0xb635d2('0x1d97'),_0x5d9b74=_0x59426a['p']+_0xb635d2('0x117b');_0x288817[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x2099'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'license','setting'];function _0x288817(_0x2c919a,_0x47e794,_0x1fa026,_0x55fe6e,_0x10693b,_0x3e1a25,_0x248233,_0x4c258e,_0x416758,_0x94bcb1,_0x243963,_0x234ae5,_0x47282a,_0x27bad1,_0x1de1ef,_0x58acba,_0x50e001){var _0x17b5c1=_0xb635d2,_0x10e240=this;_0x10e240[_0x17b5c1('0x5c1')]=_0x58acba,_0x10e240[_0x17b5c1('0x22f1')]=_0x50e001,_0x10e240[_0x17b5c1('0x15a5')]=_0x1de1ef['getCurrentUser'](),_0x10e240[_0x17b5c1('0x2099')]=_0x416758||{'count':0x0,'rows':[]},_0x10e240[_0x17b5c1('0x154f')]=_0x94bcb1,_0x10e240[_0x17b5c1('0xb59')]=_0x243963&&_0x243963[_0x17b5c1('0x148b')]==0x1?_0x243963[_0x17b5c1('0x16a7')][0x0]:null,_0x10e240[_0x17b5c1('0xb3d')]=_0x1de1ef[_0x17b5c1('0xd31')](_0x10e240[_0x17b5c1('0xb59')]?_0x10e240[_0x17b5c1('0xb59')][_0x17b5c1('0xb3d')]:null),_0x10e240[_0x17b5c1('0x19b6')]='cannedAnswers',_0x10e240[_0x17b5c1('0x14d6')]='',_0x10e240[_0x17b5c1('0x190c')]=null,_0x10e240[_0x17b5c1('0x7bb')]=[],_0x10e240[_0x17b5c1('0xa16')]={'fields':_0x17b5c1('0x1ef0'),'sort':_0x17b5c1('0x7e8'),'MailAccountId':_0x17b5c1('0x1046'),'FaxAccountId':'null','SmsAccountId':'null','OpenchannelAccountId':'null','ChatWebsiteId':_0x17b5c1('0x1046'),'limit':0xa,'page':0x1},_0x10e240['editdialog']=_0x4023af,_0x10e240['deleteconfirm']=_0x30d30c,_0x10e240[_0x17b5c1('0x425')]=_0x727cec,_0x10e240[_0x17b5c1('0x1660')]=_0x56fe4a,_0x10e240[_0x17b5c1('0x18c2')]=_0x58d637,_0x10e240[_0x17b5c1('0x851')]=_0x2654a3,_0x10e240[_0x17b5c1('0xc1d')]=_0x126cb2,_0x10e240[_0x17b5c1('0x769')]=_0x2c6de2,_0x10e240[_0x17b5c1('0x90e')]=_0x5f63d9,_0x10e240[_0x17b5c1('0x5b7')]=_0x1a7d56;function _0x4023af(_0x39188e,_0x13e340){var _0x3fe1e4=_0x17b5c1;_0x10693b[_0x3fe1e4('0x26b2')]({'controller':_0x3fe1e4('0x3ba'),'controllerAs':'vm','templateUrl':_0x5d9b74,'parent':angular[_0x3fe1e4('0x24a1')](_0x3e1a25[_0x3fe1e4('0x19b2')]),'targetEvent':_0x13e340,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x39188e,'cannedAnswers':_0x10e240[_0x3fe1e4('0x2099')]['rows'],'license':_0x10e240[_0x3fe1e4('0x5c1')],'setting':null,'crudPermissions':_0x10e240[_0x3fe1e4('0xb3d')]}});}function _0x30d30c(_0x390811,_0x503e8c){var _0xd5e52b=_0x17b5c1,_0x32652f=_0x10693b['confirm']()[_0xd5e52b('0x13e4')](_0xd5e52b('0x346')+_0x32d445()['startCase'](_0xd5e52b('0x250b'))+'?')['htmlContent'](_0xd5e52b('0xab2')+(_0x390811['name']||_0xd5e52b('0x250b'))+_0xd5e52b('0x27bb')+_0xd5e52b('0x21bd'))[_0xd5e52b('0x4d1')]('delete\x20cannedAnswer')[_0xd5e52b('0x1345')](_0x503e8c)['ok']('OK')[_0xd5e52b('0x2c1')](_0xd5e52b('0x17'));_0x10693b['show'](_0x32652f)[_0xd5e52b('0xe19')](function(){_0x2654a3(_0x390811);},function(){var _0x30db25=_0xd5e52b;console[_0x30db25('0x1fe9')](_0x30db25('0x17'));});}var _0x1dbedc=!![],_0x228a3d=0x1;_0x2c919a[_0x17b5c1('0x107')](_0x17b5c1('0x20cb'),function(_0x4f9035,_0x2b17ee){var _0xaf88f0=_0x17b5c1;_0x1dbedc?_0x248233(function(){_0x1dbedc=![];}):(!_0x2b17ee&&(_0x228a3d=_0x10e240[_0xaf88f0('0xa16')][_0xaf88f0('0xc08')]),_0x4f9035!==_0x2b17ee&&(_0x10e240[_0xaf88f0('0xa16')][_0xaf88f0('0xc08')]=0x1),!_0x4f9035&&(_0x10e240[_0xaf88f0('0xa16')][_0xaf88f0('0xc08')]=_0x228a3d),_0x10e240[_0xaf88f0('0x1660')]());});function _0x727cec(_0xdd7c33){var _0x4e0e0c=_0x17b5c1;_0x10e240[_0x4e0e0c('0x2099')]=_0xdd7c33||{'count':0x0,'rows':[]};}function _0x56fe4a(){var _0x17dd9a=_0x17b5c1;_0x10e240[_0x17dd9a('0xa16')][_0x17dd9a('0xab0')]=(_0x10e240[_0x17dd9a('0xa16')][_0x17dd9a('0xc08')]-0x1)*_0x10e240[_0x17dd9a('0xa16')][_0x17dd9a('0x1b6d')],_0x1de1ef[_0x17dd9a('0x179e')]('admin')?_0x10e240[_0x17dd9a('0x9c8')]=_0x234ae5[_0x17dd9a('0x250b')][_0x17dd9a('0x22d5')](_0x10e240['query'],_0x727cec)[_0x17dd9a('0xe59')]:(_0x10e240[_0x17dd9a('0xa16')]['id']=_0x10e240[_0x17dd9a('0x154f')]['id'],_0x10e240[_0x17dd9a('0xa16')][_0x17dd9a('0x1e59')]=_0x17dd9a('0xaa2'),_0x10e240[_0x17dd9a('0x9c8')]=_0x234ae5[_0x17dd9a('0x154f')][_0x17dd9a('0x14e6')](_0x10e240[_0x17dd9a('0xa16')],_0x727cec)[_0x17dd9a('0xe59')]);}function _0x58d637(_0xcdc5e6,_0x39c896){var _0x1018f3=_0x17b5c1;_0x10693b[_0x1018f3('0x26b2')]({'controller':_0x1018f3('0x3ba'),'controllerAs':'vm','templateUrl':_0x5d9b74,'parent':angular['element'](_0x3e1a25[_0x1018f3('0x19b2')]),'targetEvent':_0xcdc5e6,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x39c896,'cannedAnswers':_0x10e240[_0x1018f3('0x2099')]['rows'],'license':_0x10e240[_0x1018f3('0x5c1')],'setting':_0x10e240['setting'],'crudPermissions':_0x10e240[_0x1018f3('0xb3d')]}});}function _0x2654a3(_0xe80415){var _0x3abb96=_0x17b5c1;_0x234ae5[_0x3abb96('0x250b')][_0x3abb96('0x229e')]({'id':_0xe80415['id']})[_0x3abb96('0xe59')][_0x3abb96('0xe19')](function(){var _0xecc9d6=_0x3abb96;_0x32d445()['remove'](_0x10e240['cannedAnswers'][_0xecc9d6('0x16a7')],{'id':_0xe80415['id']}),_0x10e240[_0xecc9d6('0x2099')][_0xecc9d6('0x148b')]-=0x1,!_0x10e240[_0xecc9d6('0x2099')][_0xecc9d6('0x16a7')][_0xecc9d6('0x25ae')]&&_0x10e240[_0xecc9d6('0x1660')](),_0x27bad1[_0xecc9d6('0x425')]({'title':_0x32d445()[_0xecc9d6('0x1df2')](_0xecc9d6('0xab1'))+_0xecc9d6('0x1219'),'msg':_0xe80415[_0xecc9d6('0x2623')]?_0xe80415['name']+_0xecc9d6('0x2182'):''});})[_0x3abb96('0x223b')](function(_0x5189a4){var _0x454daa=_0x3abb96;if(_0x5189a4[_0x454daa('0x11d0')]&&_0x5189a4[_0x454daa('0x11d0')][_0x454daa('0xcd2')]&&_0x5189a4[_0x454daa('0x11d0')][_0x454daa('0xcd2')][_0x454daa('0x25ae')]){_0x10e240[_0x454daa('0xcd2')]=_0x5189a4[_0x454daa('0x11d0')][_0x454daa('0xcd2')]||[{'message':_0x5189a4[_0x454daa('0x94f')](),'type':_0x454daa('0x1e6e')}];for(var _0x4ca379=0x0;_0x4ca379<_0x5189a4[_0x454daa('0x11d0')][_0x454daa('0xcd2')][_0x454daa('0x25ae')];_0x4ca379++){_0x27bad1[_0x454daa('0x8c8')]({'title':_0x5189a4[_0x454daa('0x11d0')]['errors'][_0x4ca379][_0x454daa('0x62e')],'msg':_0x5189a4[_0x454daa('0x11d0')][_0x454daa('0xcd2')][_0x4ca379]['message']});}}else _0x27bad1[_0x454daa('0x8c8')]({'title':_0x5189a4[_0x454daa('0x2833')]?'API:'+_0x5189a4[_0x454daa('0x2833')]+_0x454daa('0x1b7c')+_0x5189a4[_0x454daa('0x1fd7')]:'SYSTEM:DELETEcannedAnswer','msg':_0x5189a4[_0x454daa('0x11d0')]?JSON[_0x454daa('0x3ad')](_0x5189a4[_0x454daa('0x11d0')][_0x454daa('0x27e8')]):_0x5189a4[_0x454daa('0x27e8')]||_0x5189a4[_0x454daa('0x94f')]()});});}function _0x126cb2(){var _0x291cff=_0x17b5c1,_0xee33f3=angular[_0x291cff('0x89')](_0x10e240[_0x291cff('0x7bb')]);return _0x10e240[_0x291cff('0x7bb')]=[],_0xee33f3;}function _0x2c6de2(_0xc742a5){var _0x5a3b21=_0x17b5c1,_0x285051=_0x10693b['confirm']()['title'](_0x5a3b21('0x1aab'))[_0x5a3b21('0x221c')](_0x5a3b21('0xab2')+_0x10e240['selectedCannedAnswers'][_0x5a3b21('0x25ae')]+'\x20selected'+_0x5a3b21('0x21bd'))['ariaLabel'](_0x5a3b21('0x1af1'))[_0x5a3b21('0x1345')](_0xc742a5)['ok']('OK')[_0x5a3b21('0x2c1')](_0x5a3b21('0x17'));_0x10693b[_0x5a3b21('0x26b2')](_0x285051)[_0x5a3b21('0xe19')](function(){var _0x17a3b5=_0x5a3b21;_0x10e240[_0x17a3b5('0x7bb')]['forEach'](function(_0x5c1cbb){_0x2654a3(_0x5c1cbb);}),_0x10e240[_0x17a3b5('0x7bb')]=[];});}function _0x5f63d9(){var _0x1f9feb=_0x17b5c1;_0x10e240[_0x1f9feb('0x7bb')]=[];}function _0x1a7d56(){var _0x6c825a=_0x17b5c1;_0x10e240[_0x6c825a('0x7bb')]=_0x10e240['cannedAnswers'][_0x6c825a('0x16a7')];}}const _0xffc2a9=_0x288817;_0x28c426[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x2099'),_0xb635d2('0x250b'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x28c426(_0x43f8a5,_0x35f0f6,_0x31253b,_0x123df2,_0x1a308a,_0x2ca479,_0x272a74,_0x58d8b3,_0x333a45,_0x374314,_0x1797ff,_0xe458cb,_0x4c1dab,_0x54c51c){var _0x3e9133=_0xb635d2,_0x1183bf=this;_0x1183bf[_0x3e9133('0x15a5')]=_0x1797ff[_0x3e9133('0x1ef8')](),_0x1183bf[_0x3e9133('0xcd2')]=[],_0x1183bf['setting']=_0x4c1dab,_0x1183bf[_0x3e9133('0x5c1')]=_0xe458cb,_0x1183bf['crudPermissions']=_0x54c51c,_0x1183bf[_0x3e9133('0x1ccb')]={},_0x1183bf['passwordPattern']=_0x1183bf['setting']&&_0x1183bf['setting'][_0x3e9133('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1183bf[_0x3e9133('0x13e4')]=_0x3e9133('0x2757'),_0x1183bf[_0x3e9133('0x250b')]=angular[_0x3e9133('0x89')](_0x333a45),_0x1183bf['cannedAnswers']=_0x58d8b3,_0x1183bf[_0x3e9133('0xbd6')]=![];!_0x1183bf[_0x3e9133('0x250b')]&&(_0x1183bf[_0x3e9133('0x250b')]={},_0x1183bf[_0x3e9133('0x13e4')]='TOOLS.NEW_CANNEDANSWER',_0x1183bf[_0x3e9133('0xbd6')]=!![]);_0x1183bf[_0x3e9133('0x1cc3')]=_0x3f3047,_0x1183bf['saveCannedAnswer']=_0x5e9557,_0x1183bf[_0x3e9133('0x851')]=_0x52b264,_0x1183bf['getDateFromString']=_0x4b6a6c,_0x1183bf['closeDialog']=_0xdd4b8;function _0x3f3047(){var _0x3fb9df=_0x3e9133;_0x1183bf[_0x3fb9df('0xcd2')]=[],_0x374314['cannedAnswer'][_0x3fb9df('0xe5e')](_0x1183bf['cannedAnswer'])[_0x3fb9df('0xe59')][_0x3fb9df('0xe19')](function(_0x4f580b){var _0x1fae28=_0x3fb9df;_0x1183bf[_0x1fae28('0x2099')]['unshift'](_0x4f580b[_0x1fae28('0x250e')]()),_0x272a74[_0x1fae28('0x425')]({'title':_0x1fae28('0x953'),'msg':_0x1183bf['cannedAnswer']['name']?_0x1183bf[_0x1fae28('0x250b')][_0x1fae28('0x2623')]+'\x20has\x20been\x20created!':''}),_0xdd4b8(_0x4f580b);})[_0x3fb9df('0x223b')](function(_0x1fe85f){var _0xda2bee=_0x3fb9df;if(_0x1fe85f['data']&&_0x1fe85f[_0xda2bee('0x11d0')][_0xda2bee('0xcd2')]&&_0x1fe85f['data']['errors'][_0xda2bee('0x25ae')]){_0x1183bf[_0xda2bee('0xcd2')]=_0x1fe85f[_0xda2bee('0x11d0')][_0xda2bee('0xcd2')]||[{'message':_0x1fe85f['toString'](),'type':_0xda2bee('0x80d')}];for(var _0x1fb23d=0x0;_0x1fb23d<_0x1fe85f[_0xda2bee('0x11d0')][_0xda2bee('0xcd2')][_0xda2bee('0x25ae')];_0x1fb23d+=0x1){_0x272a74[_0xda2bee('0x8c8')]({'title':_0x1fe85f[_0xda2bee('0x11d0')][_0xda2bee('0xcd2')][_0x1fb23d][_0xda2bee('0x62e')],'msg':_0x1fe85f[_0xda2bee('0x11d0')][_0xda2bee('0xcd2')][_0x1fb23d][_0xda2bee('0x27e8')]});}}else _0x272a74['error']({'title':_0x1fe85f[_0xda2bee('0x2833')]?'API:'+_0x1fe85f[_0xda2bee('0x2833')]+_0xda2bee('0x1b7c')+_0x1fe85f[_0xda2bee('0x1fd7')]:_0xda2bee('0x80d'),'msg':_0x1fe85f[_0xda2bee('0x11d0')]?JSON[_0xda2bee('0x3ad')](_0x1fe85f[_0xda2bee('0x11d0')][_0xda2bee('0x27e8')]):_0x1fe85f['toString']()});});}function _0x5e9557(){var _0x3628e4=_0x3e9133;_0x1183bf['errors']=[],_0x374314['cannedAnswer'][_0x3628e4('0xa70')]({'id':_0x1183bf[_0x3628e4('0x250b')]['id']},_0x1183bf[_0x3628e4('0x250b')])[_0x3628e4('0xe59')][_0x3628e4('0xe19')](function(_0x452216){var _0x1f9b72=_0x3628e4,_0x659300=_0x32d445()[_0x1f9b72('0xf15')](_0x1183bf[_0x1f9b72('0x2099')],{'id':_0x452216['id']});_0x659300&&_0x32d445()[_0x1f9b72('0x1d8')](_0x659300,_0x32d445()[_0x1f9b72('0xed5')](_0x452216[_0x1f9b72('0x250e')](),_0x32d445()[_0x1f9b72('0x1234')](_0x659300))),_0x272a74[_0x1f9b72('0x425')]({'title':_0x1f9b72('0x1af4'),'msg':_0x1183bf[_0x1f9b72('0x250b')]['name']?_0x1183bf[_0x1f9b72('0x250b')][_0x1f9b72('0x2623')]+_0x1f9b72('0x1c19'):''}),_0xdd4b8(_0x452216);})['catch'](function(_0x195db1){var _0xc7d79d=_0x3628e4;if(_0x195db1[_0xc7d79d('0x11d0')]&&_0x195db1['data'][_0xc7d79d('0xcd2')]&&_0x195db1[_0xc7d79d('0x11d0')][_0xc7d79d('0xcd2')][_0xc7d79d('0x25ae')]){_0x1183bf[_0xc7d79d('0xcd2')]=_0x195db1[_0xc7d79d('0x11d0')][_0xc7d79d('0xcd2')]||[{'message':_0x195db1[_0xc7d79d('0x94f')](),'type':_0xc7d79d('0x5a0')}];for(var _0x5b8743=0x0;_0x5b8743<_0x195db1[_0xc7d79d('0x11d0')]['errors']['length'];_0x5b8743++){_0x272a74[_0xc7d79d('0x8c8')]({'title':_0x195db1[_0xc7d79d('0x11d0')][_0xc7d79d('0xcd2')][_0x5b8743]['type'],'msg':_0x195db1[_0xc7d79d('0x11d0')][_0xc7d79d('0xcd2')][_0x5b8743]['message']});}}else _0x272a74[_0xc7d79d('0x8c8')]({'title':_0x195db1[_0xc7d79d('0x2833')]?_0xc7d79d('0x27f2')+_0x195db1[_0xc7d79d('0x2833')]+_0xc7d79d('0x1b7c')+_0x195db1[_0xc7d79d('0x1fd7')]:_0xc7d79d('0x5a0'),'msg':_0x195db1[_0xc7d79d('0x11d0')]?JSON[_0xc7d79d('0x3ad')](_0x195db1[_0xc7d79d('0x11d0')][_0xc7d79d('0x27e8')]):_0x195db1[_0xc7d79d('0x94f')]()});});}function _0x52b264(_0x4eabb8){var _0x22627d=_0x3e9133;_0x1183bf[_0x22627d('0xcd2')]=[];var _0x413546=_0x123df2[_0x22627d('0xa5')]()['title'](_0x22627d('0x24d0'))[_0x22627d('0xd0')](_0x22627d('0x249a'))[_0x22627d('0x4d1')](_0x22627d('0x19ef'))['ok']('Delete')[_0x22627d('0x2c1')](_0x22627d('0x8a3'))[_0x22627d('0x1345')](_0x4eabb8);_0x123df2[_0x22627d('0x26b2')](_0x413546)[_0x22627d('0xe19')](function(){var _0x111169=_0x22627d;_0x374314[_0x111169('0x250b')]['delete']({'id':_0x1183bf[_0x111169('0x250b')]['id']})[_0x111169('0xe59')][_0x111169('0xe19')](function(){var _0x59cac3=_0x111169;_0x32d445()[_0x59cac3('0xa8b')](_0x1183bf['cannedAnswers'],{'id':_0x1183bf[_0x59cac3('0x250b')]['id']}),_0x272a74[_0x59cac3('0x425')]({'title':'CannedAnswer\x20properly\x20deleted!','msg':(_0x1183bf[_0x59cac3('0x250b')][_0x59cac3('0x2623')]||_0x59cac3('0x250b'))+'\x20has\x20been\x20deleted!'}),_0xdd4b8(_0x1183bf[_0x59cac3('0x250b')]);})[_0x111169('0x223b')](function(_0x3064bc){var _0x4e4bdd=_0x111169;if(_0x3064bc[_0x4e4bdd('0x11d0')]&&_0x3064bc[_0x4e4bdd('0x11d0')]['errors']&&_0x3064bc[_0x4e4bdd('0x11d0')]['errors'][_0x4e4bdd('0x25ae')]){_0x1183bf[_0x4e4bdd('0xcd2')]=_0x3064bc[_0x4e4bdd('0x11d0')]['errors']||[{'message':_0x3064bc['toString'](),'type':'api.cannedAnswer.delete'}];for(var _0xcd8342=0x0;_0xcd8342<_0x3064bc[_0x4e4bdd('0x11d0')][_0x4e4bdd('0xcd2')][_0x4e4bdd('0x25ae')];_0xcd8342++){_0x272a74[_0x4e4bdd('0x8c8')]({'title':_0x3064bc[_0x4e4bdd('0x11d0')][_0x4e4bdd('0xcd2')][_0xcd8342]['type'],'msg':_0x3064bc[_0x4e4bdd('0x11d0')][_0x4e4bdd('0xcd2')][_0xcd8342]['message']});}}else _0x272a74['error']({'title':_0x3064bc[_0x4e4bdd('0x2833')]?_0x4e4bdd('0x27f2')+_0x3064bc[_0x4e4bdd('0x2833')]+'\x20-\x20'+_0x3064bc[_0x4e4bdd('0x1fd7')]:_0x4e4bdd('0x1b46'),'msg':_0x3064bc[_0x4e4bdd('0x11d0')]?JSON[_0x4e4bdd('0x3ad')](_0x3064bc[_0x4e4bdd('0x11d0')][_0x4e4bdd('0x27e8')]):_0x3064bc[_0x4e4bdd('0x27e8')]||_0x3064bc['toString']()});});},function(){});}function _0x4b6a6c(_0x4a893d){return _0x4a893d===null?undefined:new Date(_0x4a893d);}function _0xdd4b8(_0x27fcb1){_0x123df2['hide'](_0x27fcb1);}}const _0x258cf2=_0x28c426;_0x20ad6e['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x21b7'),'customDashboard','api','Auth','license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x20ad6e(_0x46f3fd,_0x48973e,_0x5a8bd0,_0x2cbf5f,_0x474322,_0x30a00f,_0x20a29a,_0xf9fd23,_0x10ec80,_0x45fd09,_0x2f3f9c,_0x5c678e,_0xb06770,_0x39f477){var _0x2121cc=_0xb635d2,_0x2b7c34=this;_0x2b7c34[_0x2121cc('0x15a5')]=_0x2f3f9c[_0x2121cc('0x1ef8')](),_0x2b7c34[_0x2121cc('0xcd2')]=[],_0x2b7c34[_0x2121cc('0x22f1')]=_0xb06770,_0x2b7c34[_0x2121cc('0x5c1')]=_0x5c678e,_0x2b7c34[_0x2121cc('0xb3d')]=_0x39f477,_0x2b7c34[_0x2121cc('0x1ccb')]={},_0x2b7c34[_0x2121cc('0x25ac')]=_0x2b7c34['setting']&&_0x2b7c34[_0x2121cc('0x22f1')][_0x2121cc('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b7c34[_0x2121cc('0x13e4')]=_0x2121cc('0x23d3'),_0x2b7c34[_0x2121cc('0xae')]=angular[_0x2121cc('0x89')](_0x10ec80),_0x2b7c34['customDashboards']=_0xf9fd23,_0x2b7c34['newCustomDashboard']=![];!_0x2b7c34[_0x2121cc('0xae')]&&(_0x2b7c34[_0x2121cc('0xae')]={},_0x2b7c34['title']=_0x2121cc('0x8f2'),_0x2b7c34[_0x2121cc('0x2490')]=!![]);_0x2b7c34[_0x2121cc('0x24b5')]=_0x415484,_0x2b7c34[_0x2121cc('0xa15')]=_0x1f9be2,_0x2b7c34[_0x2121cc('0x350')]=_0x4b3b83,_0x2b7c34[_0x2121cc('0x2635')]=_0x385dd0,_0x2b7c34['closeDialog']=_0x3779cd;function _0x415484(){var _0x37c28b=_0x2121cc;_0x2b7c34[_0x37c28b('0xcd2')]=[],_0x45fd09['dashboard']['save'](_0x2b7c34[_0x37c28b('0xae')])['$promise'][_0x37c28b('0xe19')](function(_0x713eed){var _0x161245=_0x37c28b;_0x2b7c34[_0x161245('0x21b7')][_0x161245('0x14c9')](_0x713eed[_0x161245('0x250e')]()),_0x20a29a[_0x161245('0x425')]({'title':_0x161245('0xedc'),'msg':_0x2b7c34[_0x161245('0xae')][_0x161245('0x2623')]?_0x2b7c34[_0x161245('0xae')][_0x161245('0x2623')]+_0x161245('0x105f'):''}),_0x3779cd(_0x713eed);})['catch'](function(_0x51d364){var _0x4fc7d6=_0x37c28b;if(_0x51d364[_0x4fc7d6('0x11d0')]&&_0x51d364[_0x4fc7d6('0x11d0')][_0x4fc7d6('0xcd2')]&&_0x51d364[_0x4fc7d6('0x11d0')][_0x4fc7d6('0xcd2')][_0x4fc7d6('0x25ae')]){_0x2b7c34['errors']=_0x51d364['data'][_0x4fc7d6('0xcd2')]||[{'message':_0x51d364[_0x4fc7d6('0x94f')](),'type':'api.dashboard.save'}];for(var _0x3afe0e=0x0;_0x3afe0e<_0x51d364[_0x4fc7d6('0x11d0')][_0x4fc7d6('0xcd2')]['length'];_0x3afe0e+=0x1){_0x20a29a[_0x4fc7d6('0x8c8')]({'title':_0x51d364[_0x4fc7d6('0x11d0')][_0x4fc7d6('0xcd2')][_0x3afe0e]['type'],'msg':_0x51d364[_0x4fc7d6('0x11d0')]['errors'][_0x3afe0e][_0x4fc7d6('0x27e8')]});}}else _0x20a29a[_0x4fc7d6('0x8c8')]({'title':_0x51d364[_0x4fc7d6('0x2833')]?_0x4fc7d6('0x27f2')+_0x51d364[_0x4fc7d6('0x2833')]+_0x4fc7d6('0x1b7c')+_0x51d364[_0x4fc7d6('0x1fd7')]:'api.dashboard.save','msg':_0x51d364[_0x4fc7d6('0x11d0')]?JSON[_0x4fc7d6('0x3ad')](_0x51d364[_0x4fc7d6('0x11d0')][_0x4fc7d6('0x27e8')]):_0x51d364[_0x4fc7d6('0x94f')]()});});}function _0x1f9be2(){var _0x4c161e=_0x2121cc;_0x2b7c34[_0x4c161e('0xcd2')]=[],_0x45fd09[_0x4c161e('0xe6c')][_0x4c161e('0xa70')]({'id':_0x2b7c34[_0x4c161e('0xae')]['id']},_0x2b7c34[_0x4c161e('0xae')])[_0x4c161e('0xe59')][_0x4c161e('0xe19')](function(_0x25784e){var _0x10bbf1=_0x4c161e,_0x140908=_0x32d445()[_0x10bbf1('0xf15')](_0x2b7c34[_0x10bbf1('0x21b7')],{'id':_0x25784e['id']});_0x140908&&_0x32d445()[_0x10bbf1('0x1d8')](_0x140908,_0x32d445()[_0x10bbf1('0xed5')](_0x25784e[_0x10bbf1('0x250e')](),_0x32d445()['keys'](_0x140908))),_0x20a29a[_0x10bbf1('0x425')]({'title':_0x10bbf1('0x8b8'),'msg':_0x2b7c34[_0x10bbf1('0xae')][_0x10bbf1('0x2623')]?_0x2b7c34[_0x10bbf1('0xae')]['name']+_0x10bbf1('0x1c19'):''}),_0x3779cd(_0x25784e);})[_0x4c161e('0x223b')](function(_0x52fdd2){var _0x58305a=_0x4c161e;if(_0x52fdd2[_0x58305a('0x11d0')]&&_0x52fdd2[_0x58305a('0x11d0')][_0x58305a('0xcd2')]&&_0x52fdd2[_0x58305a('0x11d0')][_0x58305a('0xcd2')][_0x58305a('0x25ae')]){_0x2b7c34['errors']=_0x52fdd2[_0x58305a('0x11d0')][_0x58305a('0xcd2')]||[{'message':_0x52fdd2[_0x58305a('0x94f')](),'type':_0x58305a('0x722')}];for(var _0x16ef99=0x0;_0x16ef99<_0x52fdd2[_0x58305a('0x11d0')][_0x58305a('0xcd2')][_0x58305a('0x25ae')];_0x16ef99++){_0x20a29a['error']({'title':_0x52fdd2[_0x58305a('0x11d0')]['errors'][_0x16ef99][_0x58305a('0x62e')],'msg':_0x52fdd2[_0x58305a('0x11d0')][_0x58305a('0xcd2')][_0x16ef99][_0x58305a('0x27e8')]});}}else _0x20a29a[_0x58305a('0x8c8')]({'title':_0x52fdd2[_0x58305a('0x2833')]?_0x58305a('0x27f2')+_0x52fdd2[_0x58305a('0x2833')]+_0x58305a('0x1b7c')+_0x52fdd2[_0x58305a('0x1fd7')]:'api.dashboard.update','msg':_0x52fdd2[_0x58305a('0x11d0')]?JSON[_0x58305a('0x3ad')](_0x52fdd2[_0x58305a('0x11d0')][_0x58305a('0x27e8')]):_0x52fdd2[_0x58305a('0x94f')]()});});}function _0x4b3b83(_0x4eff26){var _0xa5594=_0x2121cc;_0x2b7c34[_0xa5594('0xcd2')]=[];var _0x4dd15a=_0x2cbf5f['confirm']()['title'](_0xa5594('0x24d0'))[_0xa5594('0xd0')](_0xa5594('0xb74'))[_0xa5594('0x4d1')](_0xa5594('0x923'))['ok'](_0xa5594('0x2198'))[_0xa5594('0x2c1')](_0xa5594('0x8a3'))[_0xa5594('0x1345')](_0x4eff26);_0x2cbf5f[_0xa5594('0x26b2')](_0x4dd15a)[_0xa5594('0xe19')](function(){var _0x99d24e=_0xa5594;_0x45fd09['dashboard']['delete']({'id':_0x2b7c34['customDashboard']['id']})[_0x99d24e('0xe59')][_0x99d24e('0xe19')](function(){var _0x136f4f=_0x99d24e;_0x32d445()['remove'](_0x2b7c34[_0x136f4f('0x21b7')],{'id':_0x2b7c34[_0x136f4f('0xae')]['id']}),_0x20a29a[_0x136f4f('0x425')]({'title':_0x136f4f('0x1eae'),'msg':(_0x2b7c34[_0x136f4f('0xae')][_0x136f4f('0x2623')]||_0x136f4f('0xae'))+'\x20has\x20been\x20deleted!'}),_0x3779cd(_0x2b7c34[_0x136f4f('0xae')]);})['catch'](function(_0x542222){var _0x57cffd=_0x99d24e;if(_0x542222[_0x57cffd('0x11d0')]&&_0x542222[_0x57cffd('0x11d0')][_0x57cffd('0xcd2')]&&_0x542222[_0x57cffd('0x11d0')]['errors'][_0x57cffd('0x25ae')]){_0x2b7c34[_0x57cffd('0xcd2')]=_0x542222[_0x57cffd('0x11d0')][_0x57cffd('0xcd2')]||[{'message':_0x542222[_0x57cffd('0x94f')](),'type':'api.dashboard.delete'}];for(var _0x4f3b97=0x0;_0x4f3b97<_0x542222['data'][_0x57cffd('0xcd2')][_0x57cffd('0x25ae')];_0x4f3b97++){_0x20a29a[_0x57cffd('0x8c8')]({'title':_0x542222[_0x57cffd('0x11d0')][_0x57cffd('0xcd2')][_0x4f3b97][_0x57cffd('0x62e')],'msg':_0x542222[_0x57cffd('0x11d0')][_0x57cffd('0xcd2')][_0x4f3b97][_0x57cffd('0x27e8')]});}}else _0x20a29a['error']({'title':_0x542222[_0x57cffd('0x2833')]?'API:'+_0x542222[_0x57cffd('0x2833')]+'\x20-\x20'+_0x542222[_0x57cffd('0x1fd7')]:'api.dashboard.delete','msg':_0x542222[_0x57cffd('0x11d0')]?JSON[_0x57cffd('0x3ad')](_0x542222[_0x57cffd('0x11d0')]['message']):_0x542222[_0x57cffd('0x27e8')]||_0x542222[_0x57cffd('0x94f')]()});});},function(){});}function _0x385dd0(_0x4cf839){return _0x4cf839===null?undefined:new Date(_0x4cf839);}function _0x3779cd(_0x1590cf){var _0x5e9d35=_0x2121cc;_0x2cbf5f[_0x5e9d35('0x11ed')](_0x1590cf);}}const _0x55fcc9=_0x20ad6e,_0x47c88c=_0x59426a['p']+_0xb635d2('0x1b9f');_0x580ff8[_0xb635d2('0xb0c')]=['$scope','$window','$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x21b7'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x580ff8(_0x93dedb,_0x3e10a6,_0x4aa30c,_0x26c9d0,_0x5f1533,_0x5328b2,_0x465cb2,_0x5f4d70,_0x5cc667,_0x467058,_0x1873d5,_0x1f81e2,_0x35b3c9,_0x5b89d4,_0x956580,_0x278353,_0x2d80c2){var _0x5a1cd0=_0xb635d2,_0x55dba5=this;_0x55dba5['license']=_0x278353,_0x55dba5[_0x5a1cd0('0x22f1')]=_0x2d80c2,_0x55dba5[_0x5a1cd0('0x15a5')]=_0x956580[_0x5a1cd0('0x1ef8')](),_0x55dba5[_0x5a1cd0('0x21b7')]=_0x5cc667||{'count':0x0,'rows':[]},_0x55dba5[_0x5a1cd0('0x154f')]=_0x467058,_0x55dba5[_0x5a1cd0('0xb59')]=_0x1873d5&&_0x1873d5[_0x5a1cd0('0x148b')]==0x1?_0x1873d5[_0x5a1cd0('0x16a7')][0x0]:null,_0x55dba5[_0x5a1cd0('0xb3d')]=_0x956580[_0x5a1cd0('0xd31')](_0x55dba5[_0x5a1cd0('0xb59')]?_0x55dba5[_0x5a1cd0('0xb59')][_0x5a1cd0('0xb3d')]:null),_0x55dba5[_0x5a1cd0('0x19b6')]=_0x5a1cd0('0x21b7'),_0x55dba5[_0x5a1cd0('0x14d6')]='',_0x55dba5[_0x5a1cd0('0x190c')]=null,_0x55dba5[_0x5a1cd0('0x5ba')]=[],_0x55dba5['query']={'fields':_0x5a1cd0('0x1666'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x55dba5[_0x5a1cd0('0x16a0')]=_0x5e5d8a,_0x55dba5[_0x5a1cd0('0x2163')]=_0x54c139,_0x55dba5[_0x5a1cd0('0x1d9e')]=_0x14af5b,_0x55dba5[_0x5a1cd0('0x425')]=_0x36f255,_0x55dba5['getCustomDashboards']=_0x2ed1c3,_0x55dba5[_0x5a1cd0('0xc9f')]=_0x2d92af,_0x55dba5[_0x5a1cd0('0x350')]=_0x40e0fd,_0x55dba5[_0x5a1cd0('0xafe')]=_0x4c70e2,_0x55dba5[_0x5a1cd0('0x12c6')]=_0x40dac4,_0x55dba5[_0x5a1cd0('0x1ab3')]=_0xaeafaf,_0x55dba5[_0x5a1cd0('0xbcb')]=_0x55b35e;function _0x5e5d8a(_0x30668a){_0x4aa30c['go']('app.tools.customDashboards.edit',{'id':_0x30668a['id'],'customDashboard':_0x30668a,'crudPermissions':_0x55dba5['crudPermissions']});}function _0x54c139(_0x85cd13){_0x4aa30c['go']('app.dashboards.custom',{'id':_0x85cd13['id']});}function _0x14af5b(_0x34c5ff,_0xeccd70){var _0x20c9ab=_0x5a1cd0,_0x19eeb2=_0x5f1533[_0x20c9ab('0xa5')]()[_0x20c9ab('0x13e4')](_0x20c9ab('0x346')+_0x32d445()[_0x20c9ab('0x1df2')](_0x20c9ab('0xae'))+'?')['htmlContent'](_0x20c9ab('0xab2')+(_0x34c5ff[_0x20c9ab('0x2623')]||_0x20c9ab('0xae'))+_0x20c9ab('0x27bb')+'\x20will\x20be\x20deleted.')[_0x20c9ab('0x4d1')](_0x20c9ab('0x14bd'))[_0x20c9ab('0x1345')](_0xeccd70)['ok']('OK')[_0x20c9ab('0x2c1')](_0x20c9ab('0x17'));_0x5f1533['show'](_0x19eeb2)['then'](function(){_0x40e0fd(_0x34c5ff);},function(){var _0x2b5715=_0x20c9ab;console['log'](_0x2b5715('0x17'));});}var _0x288b91=!![],_0x29242a=0x1;_0x93dedb[_0x5a1cd0('0x107')](_0x5a1cd0('0x20cb'),function(_0x46177d,_0x80554d){var _0x5cd7fe=_0x5a1cd0;_0x288b91?_0x465cb2(function(){_0x288b91=![];}):(!_0x80554d&&(_0x29242a=_0x55dba5[_0x5cd7fe('0xa16')][_0x5cd7fe('0xc08')]),_0x46177d!==_0x80554d&&(_0x55dba5[_0x5cd7fe('0xa16')][_0x5cd7fe('0xc08')]=0x1),!_0x46177d&&(_0x55dba5['query'][_0x5cd7fe('0xc08')]=_0x29242a),_0x55dba5['getCustomDashboards']());});function _0x36f255(_0x4a2c3c){var _0x2f81d8=_0x5a1cd0;_0x55dba5[_0x2f81d8('0x21b7')]=_0x4a2c3c||{'count':0x0,'rows':[]};}function _0x2ed1c3(){var _0x4e3f89=_0x5a1cd0;_0x55dba5[_0x4e3f89('0xa16')][_0x4e3f89('0xab0')]=(_0x55dba5[_0x4e3f89('0xa16')][_0x4e3f89('0xc08')]-0x1)*_0x55dba5[_0x4e3f89('0xa16')][_0x4e3f89('0x1b6d')],_0x956580[_0x4e3f89('0x179e')]('admin')?_0x55dba5[_0x4e3f89('0x9c8')]=_0x1f81e2['dashboard'][_0x4e3f89('0x22d5')](_0x55dba5[_0x4e3f89('0xa16')],_0x36f255)[_0x4e3f89('0xe59')]:(_0x55dba5[_0x4e3f89('0xa16')]['id']=_0x55dba5['userProfile']['id'],_0x55dba5[_0x4e3f89('0xa16')]['section']=_0x4e3f89('0x1398'),_0x55dba5[_0x4e3f89('0x9c8')]=_0x1f81e2[_0x4e3f89('0x154f')]['getResources'](_0x55dba5['query'],_0x36f255)['$promise']);}function _0x2d92af(_0x422ff1,_0x2647e){var _0x2d9d48=_0x5a1cd0;_0x5f1533['show']({'controller':_0x2d9d48('0x167'),'controllerAs':'vm','templateUrl':_0x47c88c,'parent':angular[_0x2d9d48('0x24a1')](_0x5328b2[_0x2d9d48('0x19b2')]),'targetEvent':_0x422ff1,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x2647e,'customDashboards':_0x55dba5[_0x2d9d48('0x21b7')][_0x2d9d48('0x16a7')],'license':_0x55dba5[_0x2d9d48('0x5c1')],'setting':_0x55dba5[_0x2d9d48('0x22f1')],'crudPermissions':_0x55dba5['crudPermissions']}});}function _0x40e0fd(_0x163607){var _0x21ad17=_0x5a1cd0;_0x1f81e2[_0x21ad17('0xe6c')][_0x21ad17('0x229e')]({'id':_0x163607['id']})['$promise']['then'](function(){var _0xc8001d=_0x21ad17;_0x32d445()['remove'](_0x55dba5[_0xc8001d('0x21b7')]['rows'],{'id':_0x163607['id']}),_0x55dba5[_0xc8001d('0x21b7')][_0xc8001d('0x148b')]-=0x1,!_0x55dba5[_0xc8001d('0x21b7')][_0xc8001d('0x16a7')][_0xc8001d('0x25ae')]&&_0x55dba5[_0xc8001d('0x1fc8')](),_0x5b89d4[_0xc8001d('0x425')]({'title':_0x32d445()[_0xc8001d('0x1df2')](_0xc8001d('0x58f'))+_0xc8001d('0x1219'),'msg':_0x163607[_0xc8001d('0x2623')]?_0x163607[_0xc8001d('0x2623')]+_0xc8001d('0x2182'):''});})[_0x21ad17('0x223b')](function(_0x4e560f){var _0x20eafd=_0x21ad17;if(_0x4e560f[_0x20eafd('0x11d0')]&&_0x4e560f['data'][_0x20eafd('0xcd2')]&&_0x4e560f[_0x20eafd('0x11d0')][_0x20eafd('0xcd2')][_0x20eafd('0x25ae')]){_0x55dba5['errors']=_0x4e560f[_0x20eafd('0x11d0')]['errors']||[{'message':_0x4e560f[_0x20eafd('0x94f')](),'type':'SYSTEM:DELETEdashboard'}];for(var _0x1ab3b2=0x0;_0x1ab3b2<_0x4e560f[_0x20eafd('0x11d0')][_0x20eafd('0xcd2')][_0x20eafd('0x25ae')];_0x1ab3b2++){_0x5b89d4[_0x20eafd('0x8c8')]({'title':_0x4e560f[_0x20eafd('0x11d0')][_0x20eafd('0xcd2')][_0x1ab3b2][_0x20eafd('0x62e')],'msg':_0x4e560f['data'][_0x20eafd('0xcd2')][_0x1ab3b2][_0x20eafd('0x27e8')]});}}else _0x5b89d4[_0x20eafd('0x8c8')]({'title':_0x4e560f[_0x20eafd('0x2833')]?_0x20eafd('0x27f2')+_0x4e560f[_0x20eafd('0x2833')]+_0x20eafd('0x1b7c')+_0x4e560f[_0x20eafd('0x1fd7')]:_0x20eafd('0x4d8'),'msg':_0x4e560f['data']?JSON[_0x20eafd('0x3ad')](_0x4e560f[_0x20eafd('0x11d0')]['message']):_0x4e560f[_0x20eafd('0x27e8')]||_0x4e560f[_0x20eafd('0x94f')]()});});}function _0x4c70e2(){var _0xd57ff0=_0x5a1cd0,_0x32547a=angular[_0xd57ff0('0x89')](_0x55dba5[_0xd57ff0('0x5ba')]);return _0x55dba5['selectedCustomDashboards']=[],_0x32547a;}function _0x40dac4(_0x3b916c){var _0x430e13=_0x5a1cd0,_0x4b9064=_0x5f1533[_0x430e13('0xa5')]()[_0x430e13('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customDashboards?')['htmlContent'](_0x430e13('0xab2')+_0x55dba5[_0x430e13('0x5ba')][_0x430e13('0x25ae')]+_0x430e13('0x5bc')+_0x430e13('0x21bd'))['ariaLabel'](_0x430e13('0xa06'))[_0x430e13('0x1345')](_0x3b916c)['ok']('OK')[_0x430e13('0x2c1')](_0x430e13('0x17'));_0x5f1533[_0x430e13('0x26b2')](_0x4b9064)[_0x430e13('0xe19')](function(){var _0x1a436a=_0x430e13;_0x55dba5[_0x1a436a('0x5ba')][_0x1a436a('0x1d7e')](function(_0x708d44){_0x40e0fd(_0x708d44);}),_0x55dba5['selectedCustomDashboards']=[];});}function _0xaeafaf(){_0x55dba5['selectedCustomDashboards']=[];}function _0x55b35e(){var _0x160837=_0x5a1cd0;_0x55dba5[_0x160837('0x5ba')]=_0x55dba5[_0x160837('0x21b7')][_0x160837('0x16a7')];}}const _0xe137f2=_0x580ff8;_0x45c459[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$state',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0xae'),_0xb635d2('0x21b7'),_0xb635d2('0x2493')];function _0x45c459(_0x82153a,_0x3e5e1c,_0x338e61,_0xe867b3,_0x142f8e,_0x23f73a,_0xf1eb09){var _0x413bde=_0xb635d2,_0x1fe806=this;_0x1fe806[_0x413bde('0x2490')]=!![],_0x1fe806[_0x413bde('0xae')]=angular['copy'](_0x142f8e),_0x1fe806[_0x413bde('0x21b7')]=_0x23f73a,_0x1fe806[_0x413bde('0x13e4')]=_0xf1eb09[_0x413bde('0x2159')](_0x413bde('0x21f2'));_0x142f8e&&_0x142f8e[_0x413bde('0x2623')]&&(_0x1fe806[_0x413bde('0x13e4')]+=':\x20'+_0x142f8e[_0x413bde('0x2623')]);_0x1fe806['cloneCustomDashboard']=_0x1d60fa,_0x1fe806[_0x413bde('0x2584')]=_0x33e102;function _0x1d60fa(){var _0x49c082=_0x413bde;return _0xe867b3['dashboard'][_0x49c082('0x2384')]({'id':_0x142f8e['id'],'includeAll':!![]},_0x1fe806[_0x49c082('0xae')])[_0x49c082('0xe59')][_0x49c082('0xe19')](function(_0x36a6aa){var _0x3caec0=_0x49c082;_0x1fe806[_0x3caec0('0x21b7')][_0x3caec0('0x14c9')](_0x36a6aa[_0x3caec0('0x250e')]()),_0x338e61[_0x3caec0('0x425')]({'title':'CustomDashboard\x20properly\x20cloned','msg':_0x1fe806[_0x3caec0('0xae')]['name']?_0x1fe806[_0x3caec0('0xae')][_0x3caec0('0x2623')]+_0x3caec0('0x86b'):''}),_0x3e5e1c['go']('app.tools.customDashboards.edit',{'id':_0x36a6aa['id']}),_0x33e102(_0x36a6aa);})[_0x49c082('0x223b')](function(_0x176787){var _0x2b913d=_0x49c082;if(_0x176787[_0x2b913d('0x11d0')]&&_0x176787[_0x2b913d('0x11d0')]['errors']&&_0x176787[_0x2b913d('0x11d0')][_0x2b913d('0xcd2')][_0x2b913d('0x25ae')]){_0x1fe806[_0x2b913d('0xcd2')]=_0x176787[_0x2b913d('0x11d0')][_0x2b913d('0xcd2')]||[{'message':_0x176787['toString'](),'type':'api.dashboard.clone'}];for(var _0x4ee003=0x0;_0x4ee003<_0x176787[_0x2b913d('0x11d0')][_0x2b913d('0xcd2')][_0x2b913d('0x25ae')];_0x4ee003+=0x1){_0x338e61[_0x2b913d('0x8c8')]({'title':_0x176787[_0x2b913d('0x11d0')]['errors'][_0x4ee003]['type'],'msg':_0x176787[_0x2b913d('0x11d0')][_0x2b913d('0xcd2')][_0x4ee003][_0x2b913d('0x27e8')]});}}else _0x338e61[_0x2b913d('0x8c8')]({'title':_0x176787[_0x2b913d('0x2833')]?_0x2b913d('0x27f2')+_0x176787[_0x2b913d('0x2833')]+_0x2b913d('0x1b7c')+_0x176787[_0x2b913d('0x1fd7')]:'api.dashboard.clone','msg':_0x176787[_0x2b913d('0x11d0')]?JSON[_0x2b913d('0x3ad')](_0x176787[_0x2b913d('0x11d0')][_0x2b913d('0x27e8')]):_0x176787['toString']()});});}function _0x33e102(_0x5ad65f){var _0x407c9e=_0x413bde;_0x82153a[_0x407c9e('0x11ed')](_0x5ad65f);}}const _0xbd7bca=_0x45c459,_0x56bb2d=_0x59426a['p']+_0xb635d2('0x4c8');_0x5740eb[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),'api'];function _0x5740eb(_0x1b310b,_0x1000ca,_0x3b32f9,_0x5d3463,_0xbb01f9){var _0x5763aa=_0xb635d2,_0x4dc330=this;_0x4dc330[_0x5763aa('0xae')]={},_0x4dc330[_0x5763aa('0x15c5')]=_0xbb01f9[_0x5763aa('0x21e1')]['getVoiceQueues']({'fields':_0x5763aa('0x104')}),_0x4dc330[_0x5763aa('0x15f9')]=_0xe9f9eb,_0x4dc330['createOrEditWidget']=_0x1565b1,_0x4dc330['deleteWidget']=_0x25c648;function _0xe9f9eb(_0xfe50dd,_0x438ac6){var _0xc7e53c=_0x5763aa;return _0x4dc330[_0xc7e53c('0xb3d')]=typeof _0x438ac6!==_0xc7e53c('0x1143')?_0x438ac6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4dc330[_0xc7e53c('0xae')]=_0xfe50dd,_0x4dc330[_0xc7e53c('0xae')][_0xc7e53c('0x13af')]={'enabled':!![],'handle':_0xc7e53c('0x1d5c'),'stop':_0x11ec03},_0x4dc330[_0xc7e53c('0xae')][_0xc7e53c('0x1622')]={'enabled':!![],'handle':'.resizable','stop':_0x11ec03},_0x4dc330[_0xc7e53c('0xae')][_0xc7e53c('0x21b8')]=[],_0xbb01f9['dashboard'][_0xc7e53c('0xf8c')]({'id':_0xfe50dd['id']})[_0xc7e53c('0xe59')][_0xc7e53c('0xe19')](function(_0x454ba5){var _0x277631=_0xc7e53c;if(_0x454ba5&&_0x454ba5[_0x277631('0x148b')]&&_0x454ba5['rows'])for(var _0x4c746b=0x0;_0x4c746b<_0x454ba5[_0x277631('0x16a7')][_0x277631('0x25ae')];_0x4c746b+=0x1){_0x454ba5[_0x277631('0x16a7')][_0x4c746b]['voiceQueues']=_0x4dc330['voiceQueues'],_0x454ba5[_0x277631('0x16a7')][_0x4c746b][_0x277631('0x26cf')]=_0x32d445()[_0x277631('0x65a')](_0x4dc330[_0x277631('0x15c5')][_0x277631('0x16a7')],'id'),_0x454ba5[_0x277631('0x16a7')][_0x4c746b]['templateUrl']=_0x277631('0xfc2')+_0x454ba5['rows'][_0x4c746b][_0x277631('0x62e')]+'/ms-widget-engine.'+_0x454ba5['rows'][_0x4c746b][_0x277631('0x62e')]+_0x277631('0x96c'),_0x4dc330[_0x277631('0xae')]['widgets'][_0x277631('0xb76')](_0x454ba5[_0x277631('0x16a7')][_0x4c746b]);}})[_0xc7e53c('0x223b')](function(_0x2ce2e0){console['error'](_0x2ce2e0);});}function _0x1565b1(_0x577272){var _0x27c227=_0x5763aa;if(_0x577272&&_0x577272[_0x27c227('0x1a0e')])for(var _0x139c9d=0x0;_0x139c9d<_0x577272[_0x27c227('0x1a0e')][_0x27c227('0x25ae')];_0x139c9d+=0x1){_0x577272[_0x27c227('0x1a0e')][_0x139c9d]['name']==='attrReport'&&(_0x577272[_0x27c227('0x30f')]=_0x577272[_0x27c227('0x1a0e')][_0x139c9d][_0x27c227('0x62e')]),_0x577272[_0x577272['attrs'][_0x139c9d]['name']]=_0x577272[_0x27c227('0x1a0e')][_0x139c9d][_0x27c227('0x2')];}_0x1b310b[_0x27c227('0x26b2')]({'controller':_0x27c227('0x86d'),'controllerAs':'vm','templateUrl':_0x56bb2d,'parent':angular[_0x27c227('0x24a1')](_0x1000ca[_0x27c227('0x19b2')]),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x577272,'dashboard':_0x4dc330[_0x27c227('0xae')][_0x27c227('0x21b8')],'license':null,'setting':null,'crudPermissions':_0x4dc330[_0x27c227('0xb3d')]}})['then'](function(_0x318bc2){var _0x46b50d=_0x27c227;if(_0x318bc2)for(var _0x36ce82=0x0;_0x36ce82<_0x4dc330[_0x46b50d('0xae')][_0x46b50d('0x21b8')]['length'];_0x36ce82+=0x1){_0x4dc330[_0x46b50d('0xae')][_0x46b50d('0x21b8')][_0x36ce82]['id']===_0x318bc2['id']&&(_0x4dc330[_0x46b50d('0xae')][_0x46b50d('0x21b8')][_0x36ce82]['attrs']=_0x318bc2[_0x46b50d('0x1a0e')],_0x4dc330['customDashboard'][_0x46b50d('0x21b8')][_0x36ce82][_0x46b50d('0x15c5')]=_0x4dc330['voiceQueues'],_0x4dc330[_0x46b50d('0xae')][_0x46b50d('0x21b8')][_0x36ce82]['voiceQueuesSelected']=_0x32d445()['map'](_0x4dc330[_0x46b50d('0x15c5')]['rows'],'id'),_0x4dc330[_0x46b50d('0xae')][_0x46b50d('0x21b8')][_0x36ce82]['templateUrl']=_0x46b50d('0xfc2')+_0x4dc330[_0x46b50d('0xae')][_0x46b50d('0x21b8')][_0x36ce82]['type']+_0x46b50d('0x1125')+_0x4dc330[_0x46b50d('0xae')]['widgets'][_0x36ce82][_0x46b50d('0x62e')]+_0x46b50d('0x96c'));}});}function _0x25c648(_0x4e0a84){var _0x71c2aa=_0x5763aa,_0x25d82e=_0x1b310b['confirm']()[_0x71c2aa('0x13e4')](_0x71c2aa('0xdab')+_0x4e0a84['title']+'?')['textContent']('')[_0x71c2aa('0x4d1')](_0x71c2aa('0x1a0c'))['ok'](_0x71c2aa('0x1c5b'))[_0x71c2aa('0x2c1')]('NO');_0x1b310b[_0x71c2aa('0x26b2')](_0x25d82e)[_0x71c2aa('0xe19')](function(){var _0x57c384=_0x71c2aa;return _0xbb01f9['dashboardItem'][_0x57c384('0x229e')]({'id':_0x4e0a84['id']})[_0x57c384('0xe59')][_0x57c384('0xe19')](function(){var _0x2c2a04=_0x57c384;_0x32d445()['remove'](_0x4dc330[_0x2c2a04('0xae')][_0x2c2a04('0x21b8')],{'id':_0x4e0a84['id']}),_0x5d3463[_0x2c2a04('0x425')]({'title':_0x2c2a04('0x2578'),'msg':_0x4e0a84[_0x2c2a04('0x2623')]?_0x4e0a84[_0x2c2a04('0x2623')]+_0x2c2a04('0x2182'):_0x2c2a04('0x9bf')});})['catch'](function(_0x3d026d){var _0x5185d7=_0x57c384;if(_0x3d026d[_0x5185d7('0x11d0')]&&_0x3d026d[_0x5185d7('0x11d0')][_0x5185d7('0xcd2')]&&_0x3d026d['data']['errors'][_0x5185d7('0x25ae')]){_0x4dc330[_0x5185d7('0xcd2')]=_0x3d026d[_0x5185d7('0x11d0')][_0x5185d7('0xcd2')]||[{'message':_0x3d026d['toString'](),'type':_0x5185d7('0x251d')}];for(var _0x1fbfe0=0x0;_0x1fbfe0<_0x3d026d['data'][_0x5185d7('0xcd2')][_0x5185d7('0x25ae')];_0x1fbfe0++){_0x5d3463['error']({'title':_0x3d026d['data'][_0x5185d7('0xcd2')][_0x1fbfe0][_0x5185d7('0x62e')],'msg':_0x3d026d['data'][_0x5185d7('0xcd2')][_0x1fbfe0]['message']});}}else _0x5d3463['error']({'title':_0x3d026d[_0x5185d7('0x2833')]?_0x5185d7('0x27f2')+_0x3d026d[_0x5185d7('0x2833')]+_0x5185d7('0x1b7c')+_0x3d026d[_0x5185d7('0x1fd7')]:'SYSTEM:DELETEdashboard','msg':_0x3d026d[_0x5185d7('0x11d0')]?JSON[_0x5185d7('0x3ad')](_0x3d026d[_0x5185d7('0x11d0')][_0x5185d7('0x27e8')]):_0x3d026d['message']||_0x3d026d[_0x5185d7('0x94f')]()});console['error'](_0x3d026d);});});}function _0x11ec03(_0xee72f5,_0x173bd9,_0x3c0c76){var _0x1afd10=_0x5763aa;return _0xbb01f9[_0x1afd10('0x16b6')][_0x1afd10('0xa70')](_0x3c0c76)[_0x1afd10('0xe59')][_0x1afd10('0x223b')](function(_0x542a68){var _0x50e21c=_0x1afd10;console[_0x50e21c('0x8c8')](_0x542a68);});}}const _0x4678d1=_0x5740eb,_0x362898=_0x59426a['p']+_0xb635d2('0x2fd');_0x13f90a[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q','$translate','toasty',_0xb635d2('0xe6c'),'dashboarditem',_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x13f90a(_0x11f3fd,_0x55f87c,_0x4287ca,_0x1555cc,_0x30d2b8,_0x5054cc,_0x45524b,_0x31a0dd,_0x1dde58,_0x3ffd7b,_0x47abce,_0x3538bb,_0x938181,_0x3812b3){var _0x2f6a5b=_0xb635d2,_0x2e14e9=this;_0x2e14e9[_0x2f6a5b('0x15a5')]=_0x47abce[_0x2f6a5b('0x1ef8')](),_0x2e14e9[_0x2f6a5b('0xcd2')]=[],_0x2e14e9['setting']=_0x938181,_0x2e14e9[_0x2f6a5b('0x5c1')]=_0x3538bb,_0x2e14e9[_0x2f6a5b('0xb3d')]=_0x3812b3,_0x2e14e9[_0x2f6a5b('0x1ccb')]={},_0x2e14e9['passwordPattern']=_0x2e14e9[_0x2f6a5b('0x22f1')]&&_0x2e14e9['setting'][_0x2f6a5b('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2e14e9[_0x2f6a5b('0x13e4')]=_0x2f6a5b('0x17b4'),_0x2e14e9[_0x2f6a5b('0x643')]=angular['copy'](_0x1dde58),_0x2e14e9[_0x2f6a5b('0xe6c')]=_0x31a0dd,_0x2e14e9[_0x2f6a5b('0x168b')]=![],_0x2e14e9[_0x2f6a5b('0x2346')]=[],_0x2e14e9['query']={'fields':_0x2f6a5b('0x23a5'),'limit':0xa,'page':0x1,'sort':_0x2f6a5b('0x7e8')};!_0x2e14e9['dashboarditem']?(_0x2e14e9['dashboarditem']={'type':'counter','attrUrl':_0x2f6a5b('0x1e19'),'attrHourFormat':_0x2f6a5b('0x124e'),'attrTimezone':_0x2f6a5b('0xafa'),'attrMetric':_0x2f6a5b('0x1e14'),'attrSerie1':_0x2f6a5b('0x1e14'),'attrSerie2':_0x2f6a5b('0x1046'),'attrSerie3':_0x2f6a5b('0x1046'),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':_0x2f6a5b('0x8a0'),'background':_0x2f6a5b('0x16f7')},_0x2e14e9['title']=_0x2f6a5b('0xc8d'),_0x2e14e9[_0x2f6a5b('0x168b')]=!![]):_0x2e14e9[_0x2f6a5b('0x643')][_0x2f6a5b('0x62e')]==_0x2f6a5b('0x1ada')&&(_0x2e14e9[_0x2f6a5b('0x16a')]=_0x2e14e9[_0x2f6a5b('0x643')]['reportType']===_0x2f6a5b('0x261d')?_0x2f6a5b('0x247b'):'analyticDefaultReport',_0x3ffd7b[_0x2e14e9['apiName']]['get']({'fields':'id,name,parent'})[_0x2f6a5b('0xe59')][_0x2f6a5b('0xe19')](function(_0x17501c){var _0x3845f5=_0x2f6a5b;_0x2e14e9[_0x3845f5('0xa3f')]=_0x32d445()[_0x3845f5('0xf15')](_0x17501c[_0x3845f5('0x16a7')],{'id':_0x2e14e9[_0x3845f5('0x643')][_0x3845f5('0x15dd')]}),_0x2e14e9[_0x3845f5('0x643')][_0x3845f5('0x372')]=_0x2e14e9['currentReport'][_0x3845f5('0x2623')],_0x2e14e9[_0x3845f5('0xa16')][_0x3845f5('0x4ec')]=_0x2e14e9[_0x3845f5('0xa3f')][_0x3845f5('0x4ec')];}));_0x2e14e9[_0x2f6a5b('0x748')]=_0x564f01,_0x2e14e9['saveDashboardItem']=_0x1f993f,_0x2e14e9[_0x2f6a5b('0xf95')]=_0x193735,_0x2e14e9[_0x2f6a5b('0x2635')]=_0x2b3963,_0x2e14e9['getReports']=_0x4bef56,_0x2e14e9[_0x2f6a5b('0x1cea')]=_0x1b4c2d,_0x2e14e9[_0x2f6a5b('0xd9c')]=_0x2e2be7,_0x2e14e9[_0x2f6a5b('0x221a')]=_0x17fcaa,_0x2e14e9[_0x2f6a5b('0x2584')]=_0x1b306f,_0x3ffd7b[_0x2f6a5b('0x188a')][_0x2f6a5b('0x22d5')]({})[_0x2f6a5b('0xe59')][_0x2f6a5b('0xe19')](function(_0x3bab94){var _0x1ccbd3=_0x2f6a5b;_0x2e14e9['treeReports']=_0x3bab94[_0x1ccbd3('0x16a7')]||[];})[_0x2f6a5b('0x223b')](function(_0x3e31d4){var _0xb7ad01=_0x2f6a5b;_0x45524b[_0xb7ad01('0x8c8')]({'title':_0x3e31d4[_0xb7ad01('0x2833')]?_0xb7ad01('0x27f2')+_0x3e31d4[_0xb7ad01('0x2833')]+'\x20-\x20'+_0x3e31d4[_0xb7ad01('0x1fd7')]:_0xb7ad01('0x1f7d'),'msg':_0x3e31d4[_0xb7ad01('0x11d0')]?JSON[_0xb7ad01('0x3ad')](_0x3e31d4[_0xb7ad01('0x11d0')]):_0x3e31d4['toString']()});});var _0x288dd7=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x2f6a5b('0x1fdf')}],_0x12c2d1=null;_0x47abce[_0x2f6a5b('0x179e')](_0x2f6a5b('0xd14'))?_0x3ffd7b[_0x2f6a5b('0x25d5')][_0x2f6a5b('0x22d5')]({'fields':_0x2f6a5b('0x1555'),'sort':_0x2f6a5b('0x2623'),'nolimit':_0x2f6a5b('0x2206')})['$promise'][_0x2f6a5b('0xe19')](function(_0x154a33){var _0x463016=_0x2f6a5b;_0x2e14e9['voiceQueues']=_0x154a33[_0x463016('0x16a7')]||[];})[_0x2f6a5b('0x223b')](function(_0x4730d5){var _0x4c30f7=_0x2f6a5b;_0x45524b[_0x4c30f7('0x8c8')]({'title':_0x4730d5[_0x4c30f7('0x2833')]?'API:'+_0x4730d5[_0x4c30f7('0x2833')]+'\x20-\x20'+_0x4730d5[_0x4c30f7('0x1fd7')]:_0x4c30f7('0x1b28'),'msg':_0x4730d5['data']?JSON[_0x4c30f7('0x3ad')](_0x4730d5[_0x4c30f7('0x11d0')]):_0x4730d5[_0x4c30f7('0x94f')]()});}):_0x3ffd7b[_0x2f6a5b('0x25d5')]['get']({'fields':_0x2f6a5b('0x1555'),'sort':'name','nolimit':_0x2f6a5b('0x2206')})['$promise']['then'](function(_0xac40a){var _0x5eaa5b=_0x2f6a5b;_0x12c2d1=_0xac40a[_0x5eaa5b('0x16a7')]||[];})[_0x2f6a5b('0xe19')](function(){var _0x5b76f3=_0x2f6a5b,_0x27b8a7=[];for(var _0x23d6af=0x0;_0x23d6af<_0x288dd7['length'];_0x23d6af++){_0x27b8a7[_0x5b76f3('0xb76')](_0x3ffd7b['userProfileSection'][_0x5b76f3('0x22d5')]({'userProfileId':_0x2e14e9[_0x5b76f3('0x15a5')][_0x5b76f3('0x1d04')],'sectionId':_0x288dd7[_0x23d6af]['id']})['$promise']);}return _0x30d2b8[_0x5b76f3('0xf0e')](_0x27b8a7);})[_0x2f6a5b('0xe19')](function(_0x134d2a){var _0x4e21a0=_0x2f6a5b,_0x250edc=_0x32d445()[_0x4e21a0('0x65a')](_0x134d2a,function(_0x2eb7b1){var _0x4194f9=_0x4e21a0;return _0x2eb7b1&&_0x2eb7b1[_0x4194f9('0x16a7')]?_0x2eb7b1[_0x4194f9('0x16a7')][0x0]:null;}),_0x4a83ce=[],_0x4ba128=function _0x346180(_0xb3e4b2){var _0x120548=_0x4e21a0,_0x85d2e9=_0x32d445()[_0x120548('0xf15')](_0x250edc,[_0x120548('0x964'),_0x288dd7[_0xb3e4b2]['id']]);if(_0x85d2e9){if(!_0x85d2e9[_0x120548('0x11fd')])_0x4a83ce['push'](_0x3ffd7b[_0x120548('0xd49')][_0x120548('0x22d5')]({'sectionId':_0x85d2e9['id']})[_0x120548('0xe59')]);else{var _0x566d50=[];_0x12c2d1[_0x120548('0x1d7e')](function(_0x44d4fa){var _0x216fc9=_0x120548;_0x44d4fa[_0x216fc9('0x62e')]===_0x288dd7[_0xb3e4b2][_0x216fc9('0x62e')]&&_0x566d50[_0x216fc9('0xb76')](_0x44d4fa);}),_0x4a83ce[_0x120548('0xb76')]({'rows':_0x566d50,'count':_0x566d50['length']});}}};for(var _0x5d25ac=0x0;_0x5d25ac<_0x288dd7[_0x4e21a0('0x25ae')];_0x5d25ac++){_0x4ba128(_0x5d25ac);}return _0x30d2b8[_0x4e21a0('0xf0e')](_0x4a83ce);})['then'](function(_0x2b12fd){var _0x4dc3a2=_0x2f6a5b,_0x4b4a68=[],_0x35fc74=null;_0x2e14e9['dashboarditem']&&(_0x35fc74=_0x32d445()[_0x4dc3a2('0xf15')](_0x12c2d1,{'id':Number(_0x2e14e9[_0x4dc3a2('0x643')][_0x4dc3a2('0x2321')])}));for(var _0x3d6aa6=0x0;_0x3d6aa6<_0x2b12fd[_0x4dc3a2('0x25ae')];_0x3d6aa6++){var _0x357fda=_0x2b12fd[_0x3d6aa6][_0x4dc3a2('0x16a7')]||[];_0x357fda['forEach'](function(_0x419925){var _0x1173f8=_0x4dc3a2;_0x4b4a68[_0x1173f8('0xb76')](_0x419925);});}_0x35fc74&&!_0x32d445()[_0x4dc3a2('0x201a')](_0x4b4a68,[_0x4dc3a2('0x1104'),_0x35fc74['id']])&&_0x12c2d1[_0x4dc3a2('0x1d7e')](function(_0xe06250){var _0x5da647=_0x4dc3a2;_0xe06250['id']===_0x35fc74['id']&&(_0xe06250['canSelect']=![],_0x4b4a68[_0x5da647('0xb76')](_0xe06250));}),_0x2e14e9[_0x4dc3a2('0x15c5')]=_0x4b4a68;})['catch'](function(_0x1b9e00){var _0x399825=_0x2f6a5b;_0x45524b[_0x399825('0x8c8')]({'title':_0x1b9e00[_0x399825('0x2833')]?_0x399825('0x27f2')+_0x1b9e00['status']+_0x399825('0x1b7c')+_0x1b9e00[_0x399825('0x1fd7')]:_0x399825('0x2174'),'msg':_0x1b9e00[_0x399825('0x11d0')]?JSON[_0x399825('0x3ad')](_0x1b9e00[_0x399825('0x11d0')]):_0x1b9e00[_0x399825('0x94f')]()});});function _0x564f01(){var _0x29676d=_0x2f6a5b;_0x2e14e9[_0x29676d('0xcd2')]=[],_0x3ffd7b[_0x29676d('0xe6c')][_0x29676d('0x25e7')]({'id':_0x55f87c[_0x29676d('0x2ef')]['id']},_0x2e14e9[_0x29676d('0x643')])[_0x29676d('0xe59')]['then'](function(_0x3a7803){var _0x4c51f9=_0x29676d;_0x2e14e9[_0x4c51f9('0xe6c')][_0x4c51f9('0x14c9')](_0x3a7803['toJSON']()),_0x45524b[_0x4c51f9('0x425')]({'title':'DashboardItem\x20properly\x20created','msg':_0x2e14e9[_0x4c51f9('0x643')]['name']?_0x2e14e9[_0x4c51f9('0x643')][_0x4c51f9('0x2623')]+_0x4c51f9('0x105f'):''}),_0x1b306f(_0x3a7803);})[_0x29676d('0x223b')](function(_0x3cb50b){var _0x320ec2=_0x29676d;if(_0x3cb50b['data']&&_0x3cb50b[_0x320ec2('0x11d0')]['errors']&&_0x3cb50b['data'][_0x320ec2('0xcd2')][_0x320ec2('0x25ae')]){_0x2e14e9[_0x320ec2('0xcd2')]=_0x3cb50b[_0x320ec2('0x11d0')][_0x320ec2('0xcd2')]||[{'message':_0x3cb50b[_0x320ec2('0x94f')](),'type':_0x320ec2('0x114c')}];for(var _0xaa23de=0x0;_0xaa23de<_0x3cb50b[_0x320ec2('0x11d0')][_0x320ec2('0xcd2')][_0x320ec2('0x25ae')];_0xaa23de+=0x1){_0x45524b[_0x320ec2('0x8c8')]({'title':_0x3cb50b[_0x320ec2('0x11d0')][_0x320ec2('0xcd2')][_0xaa23de][_0x320ec2('0x62e')],'msg':_0x3cb50b[_0x320ec2('0x11d0')][_0x320ec2('0xcd2')][_0xaa23de]['message']});}}else _0x45524b[_0x320ec2('0x8c8')]({'title':_0x3cb50b[_0x320ec2('0x2833')]?_0x320ec2('0x27f2')+_0x3cb50b[_0x320ec2('0x2833')]+_0x320ec2('0x1b7c')+_0x3cb50b[_0x320ec2('0x1fd7')]:'api.dashboardItem.save','msg':_0x3cb50b[_0x320ec2('0x11d0')]?JSON[_0x320ec2('0x3ad')](_0x3cb50b[_0x320ec2('0x11d0')][_0x320ec2('0x27e8')]):_0x3cb50b[_0x320ec2('0x94f')]()});});}function _0x1f993f(){var _0x373bbd=_0x2f6a5b;_0x2e14e9['errors']=[],_0x3ffd7b[_0x373bbd('0x16b6')][_0x373bbd('0xa70')]({'id':_0x2e14e9['dashboarditem']['id']},_0x2e14e9[_0x373bbd('0x643')])[_0x373bbd('0xe59')][_0x373bbd('0xe19')](function(_0x1e3328){var _0x77a514=_0x373bbd,_0x52065c=_0x32d445()['find'](_0x2e14e9[_0x77a514('0xe6c')],{'id':_0x1e3328['id']});_0x52065c&&_0x32d445()[_0x77a514('0x1d8')](_0x52065c,_0x32d445()[_0x77a514('0xed5')](_0x1e3328['toJSON'](),_0x32d445()['keys'](_0x52065c))),_0x45524b[_0x77a514('0x425')]({'title':_0x77a514('0x1b41'),'msg':_0x2e14e9['dashboarditem'][_0x77a514('0x2623')]?_0x2e14e9['dashboarditem']['name']+_0x77a514('0x1c19'):''}),_0x1b306f(_0x1e3328);})['catch'](function(_0x4e79e2){var _0x9ddcd3=_0x373bbd;if(_0x4e79e2['data']&&_0x4e79e2[_0x9ddcd3('0x11d0')][_0x9ddcd3('0xcd2')]&&_0x4e79e2['data'][_0x9ddcd3('0xcd2')][_0x9ddcd3('0x25ae')]){_0x2e14e9[_0x9ddcd3('0xcd2')]=_0x4e79e2['data'][_0x9ddcd3('0xcd2')]||[{'message':_0x4e79e2[_0x9ddcd3('0x94f')](),'type':_0x9ddcd3('0x252f')}];for(var _0xb9fc60=0x0;_0xb9fc60<_0x4e79e2[_0x9ddcd3('0x11d0')]['errors']['length'];_0xb9fc60++){_0x45524b['error']({'title':_0x4e79e2[_0x9ddcd3('0x11d0')][_0x9ddcd3('0xcd2')][_0xb9fc60][_0x9ddcd3('0x62e')],'msg':_0x4e79e2[_0x9ddcd3('0x11d0')][_0x9ddcd3('0xcd2')][_0xb9fc60][_0x9ddcd3('0x27e8')]});}}else _0x45524b[_0x9ddcd3('0x8c8')]({'title':_0x4e79e2[_0x9ddcd3('0x2833')]?_0x9ddcd3('0x27f2')+_0x4e79e2['status']+_0x9ddcd3('0x1b7c')+_0x4e79e2[_0x9ddcd3('0x1fd7')]:_0x9ddcd3('0x252f'),'msg':_0x4e79e2[_0x9ddcd3('0x11d0')]?JSON['stringify'](_0x4e79e2['data'][_0x9ddcd3('0x27e8')]):_0x4e79e2['toString']()});});}function _0x193735(_0x15a9a1){var _0x46880a=_0x2f6a5b;_0x2e14e9[_0x46880a('0xcd2')]=[];var _0x1b05a8=_0x1555cc['confirm']()[_0x46880a('0x13e4')](_0x46880a('0x24d0'))[_0x46880a('0xd0')](_0x46880a('0x204b'))[_0x46880a('0x4d1')](_0x46880a('0x612'))['ok'](_0x46880a('0x2198'))['cancel'](_0x46880a('0x8a3'))[_0x46880a('0x1345')](_0x15a9a1);_0x1555cc['show'](_0x1b05a8)[_0x46880a('0xe19')](function(){var _0x45240a=_0x46880a;_0x3ffd7b[_0x45240a('0x16b6')][_0x45240a('0x229e')]({'id':_0x2e14e9[_0x45240a('0x643')]['id']})[_0x45240a('0xe59')][_0x45240a('0xe19')](function(){var _0x50bfc1=_0x45240a;_0x32d445()[_0x50bfc1('0xa8b')](_0x2e14e9[_0x50bfc1('0xe6c')],{'id':_0x2e14e9[_0x50bfc1('0x643')]['id']}),_0x45524b['success']({'title':_0x50bfc1('0x248a'),'msg':(_0x2e14e9[_0x50bfc1('0x643')][_0x50bfc1('0x2623')]||'dashboarditem')+_0x50bfc1('0x2182')}),_0x1b306f(_0x2e14e9['dashboarditem']);})[_0x45240a('0x223b')](function(_0xeb4e60){var _0x48998b=_0x45240a;if(_0xeb4e60[_0x48998b('0x11d0')]&&_0xeb4e60[_0x48998b('0x11d0')][_0x48998b('0xcd2')]&&_0xeb4e60[_0x48998b('0x11d0')][_0x48998b('0xcd2')][_0x48998b('0x25ae')]){_0x2e14e9[_0x48998b('0xcd2')]=_0xeb4e60['data'][_0x48998b('0xcd2')]||[{'message':_0xeb4e60[_0x48998b('0x94f')](),'type':_0x48998b('0x1ddb')}];for(var _0x19bba3=0x0;_0x19bba3<_0xeb4e60['data'][_0x48998b('0xcd2')][_0x48998b('0x25ae')];_0x19bba3++){_0x45524b[_0x48998b('0x8c8')]({'title':_0xeb4e60['data'][_0x48998b('0xcd2')][_0x19bba3][_0x48998b('0x62e')],'msg':_0xeb4e60[_0x48998b('0x11d0')][_0x48998b('0xcd2')][_0x19bba3]['message']});}}else _0x45524b[_0x48998b('0x8c8')]({'title':_0xeb4e60['status']?'API:'+_0xeb4e60[_0x48998b('0x2833')]+_0x48998b('0x1b7c')+_0xeb4e60[_0x48998b('0x1fd7')]:_0x48998b('0x1ddb'),'msg':_0xeb4e60[_0x48998b('0x11d0')]?JSON[_0x48998b('0x3ad')](_0xeb4e60['data'][_0x48998b('0x27e8')]):_0xeb4e60[_0x48998b('0x27e8')]||_0xeb4e60[_0x48998b('0x94f')]()});});},function(){});}function _0x68bfe7(){var _0x8d8c35=_0x2f6a5b,_0x1bf5f2={'core':{'multiple':![],'animation':!![],'error':function _0x1921ef(_0x2254fe){var _0x2670a4=a0_0x5325;console[_0x2670a4('0x8c8')](_0x2670a4('0x1f9e')+angular['toJson'](_0x2254fe));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0x2e14e9[_0x8d8c35('0x15a5')][_0x8d8c35('0xcd9')]!=='admin'?_0x3ffd7b[_0x8d8c35('0xb59')]['get']({'fields':_0x8d8c35('0x12d6'),'userProfileId':_0x2e14e9[_0x8d8c35('0x15a5')][_0x8d8c35('0x1d04')],'sectionId':0x4b3})['$promise'][_0x8d8c35('0xe19')](function(_0x91a084){var _0x5f2cf2=_0x8d8c35;return _0x2e14e9[_0x5f2cf2('0xb59')]=_0x91a084&&_0x91a084[_0x5f2cf2('0x148b')]==0x1?_0x91a084['rows'][0x0]:null,_0x1bf5f2;})[_0x8d8c35('0x223b')](function(_0x4d258e){var _0x29aa81=_0x8d8c35;_0x45524b[_0x29aa81('0x8c8')]({'title':_0x29aa81('0x71e'),'msg':_0x4d258e['message']});}):_0x1bf5f2;}function _0x58e5dc(_0x427c38){return _0x427c38?{'loaded':_0x2db3b6,'select_node':_0x2afe27}:{'loaded':_0x1f196d,'select_node':_0x31a7a0};}function _0x2afe27(_0x48b3f1,_0xff19d0){var _0x1c5a36=_0x2f6a5b;_0x2e14e9[_0x1c5a36('0x2686')]['jstree'](!![])[_0x1c5a36('0x1633')](),_0x2e14e9['treeDefaultInstance'][_0x1c5a36('0xfe')](!![])[_0x1c5a36('0x1577')](),_0x2e14e9['currentNode']=_0xff19d0[_0x1c5a36('0x1a8f')],_0x2e14e9['currentNode'][_0x1c5a36('0x261d')]=!![],_0x2e14e9[_0x1c5a36('0xc2c')]=_0x2e14e9[_0x1c5a36('0x14b1')][_0x1c5a36('0xfe')](!![])[_0x1c5a36('0xa09')](_0x2e14e9[_0x1c5a36('0x1367')])['join']('/\x20'),_0x2e14e9[_0x1c5a36('0x16a')]=_0x1c5a36('0x247b'),_0x2e14e9[_0x1c5a36('0xa16')][_0x1c5a36('0x4ec')]=_0xff19d0[_0x1c5a36('0x1a8f')]['id'],_0x4bef56();}function _0x31a7a0(_0x12a851,_0x34c09b){var _0x2469dc=_0x2f6a5b;_0x2e14e9[_0x2469dc('0x14b1')]['jstree'](!![])['deselect_all'](),_0x2e14e9['treeCustomInstance']['jstree'](!![])[_0x2469dc('0x1577')](),_0x2e14e9['currentNode']=_0x34c09b[_0x2469dc('0x1a8f')],_0x2e14e9[_0x2469dc('0x1367')][_0x2469dc('0x261d')]=![],_0x2e14e9[_0x2469dc('0xc2c')]=_0x2e14e9[_0x2469dc('0x2686')][_0x2469dc('0xfe')](!![])[_0x2469dc('0xa09')](_0x2e14e9[_0x2469dc('0x1367')])[_0x2469dc('0x1537')]('/\x20'),_0x2e14e9[_0x2469dc('0x16a')]='analyticDefaultReport',_0x2e14e9[_0x2469dc('0xa16')]['parent']=_0x34c09b[_0x2469dc('0x1a8f')]['id'],_0x4bef56();}function _0x2db3b6(){var _0x218fa8=_0x2f6a5b;if(!_0x2e14e9[_0x218fa8('0x168b')]&&_0x2e14e9[_0x218fa8('0x16a')]===_0x218fa8('0x247b')){var _0x2be2ad=_0x2e14e9['treeCustomInstance'][_0x218fa8('0xfe')](!![])['get_node'](_0x2e14e9[_0x218fa8('0xa16')][_0x218fa8('0x4ec')]);_0x2afe27(null,{'node':_0x2be2ad,'selected':_0x2be2ad['id']});}}function _0x1f196d(){var _0x20245c=_0x2f6a5b;if(!_0x2e14e9['newDashboardItem']&&_0x2e14e9[_0x20245c('0x16a')]===_0x20245c('0x1092')){var _0x597c50=_0x2e14e9[_0x20245c('0x2686')][_0x20245c('0xfe')](!![])[_0x20245c('0x278')](_0x2e14e9[_0x20245c('0xa16')][_0x20245c('0x4ec')]);_0x31a7a0(null,{'node':_0x597c50,'selected':_0x597c50['id']});}}function _0x4bef56(){var _0x4a6b1e=_0x2f6a5b;_0x2e14e9[_0x4a6b1e('0xa16')][_0x4a6b1e('0xab0')]=(_0x2e14e9[_0x4a6b1e('0xa16')][_0x4a6b1e('0xc08')]-0x1)*_0x2e14e9[_0x4a6b1e('0xa16')]['limit'];if(_0x2e14e9['apiName']){if(_0x2e14e9[_0x4a6b1e('0x15a5')][_0x4a6b1e('0xcd9')]===_0x4a6b1e('0xd14'))_0x2e14e9[_0x4a6b1e('0x9c8')]=_0x3ffd7b[_0x2e14e9[_0x4a6b1e('0x16a')]]['get'](_0x2e14e9['query'],_0x220f24)[_0x4a6b1e('0xe59')];else{if(!_0x2e14e9[_0x4a6b1e('0xb59')])return _0x220f24(null);else{if(_0x2e14e9[_0x4a6b1e('0xb59')][_0x4a6b1e('0x11fd')])_0x2e14e9['promise']=_0x3ffd7b[_0x2e14e9[_0x4a6b1e('0x16a')]][_0x4a6b1e('0x22d5')](_0x2e14e9[_0x4a6b1e('0xa16')],_0x220f24)[_0x4a6b1e('0xe59')];else{var _0x2d01d9=[];_0x2e14e9[_0x4a6b1e('0x9c8')]=_0x3ffd7b[_0x2e14e9[_0x4a6b1e('0x16a')]][_0x4a6b1e('0x22d5')](_0x2e14e9[_0x4a6b1e('0xa16')])[_0x4a6b1e('0xe59')]['then'](function(_0x3ddc96){var _0x316f0b=_0x4a6b1e;return _0x2d01d9=_0x3ddc96&&_0x3ddc96[_0x316f0b('0x16a7')]?_0x3ddc96[_0x316f0b('0x16a7')]:[],_0x2d01d9[_0x316f0b('0x25ae')]>0x0?_0x3ffd7b[_0x316f0b('0xd49')][_0x316f0b('0x22d5')]({'sectionId':_0x2e14e9[_0x316f0b('0xb59')]['id'],'type':_0x2e14e9[_0x316f0b('0x16a')]==='analyticDefaultReport'?_0x316f0b('0x118b'):_0x316f0b('0x1617')})[_0x316f0b('0xe59')][_0x316f0b('0xe19')](function(_0xe28b7f){var _0x5d4f40=_0x316f0b,_0x316f68=_0xe28b7f&&_0xe28b7f[_0x5d4f40('0x16a7')]?_0xe28b7f[_0x5d4f40('0x16a7')]:[];if(_0x316f68[_0x5d4f40('0x25ae')]>0x0){var _0x580b58=[];return _0x2d01d9['forEach'](function(_0x72124d){var _0x456588=_0x5d4f40,_0x11bce8=_0x32d445()['find'](_0x316f68,[_0x456588('0x1104'),_0x72124d['id']]);if(_0x11bce8)_0x580b58[_0x456588('0xb76')](_0x72124d);}),_0x220f24({'count':_0x580b58[_0x5d4f40('0x25ae')],'rows':_0x580b58});}else return _0x220f24(null);}):_0x220f24(null);})[_0x4a6b1e('0x223b')](function(_0x18f097){var _0x340009=_0x4a6b1e;_0x45524b[_0x340009('0x8c8')]({'title':_0x18f097[_0x340009('0x2833')]?'API:'+_0x18f097[_0x340009('0x2833')]+'\x20-\x20'+_0x18f097[_0x340009('0x1fd7')]:_0x340009('0x64'),'msg':_0x18f097['data']?JSON[_0x340009('0x3ad')](_0x18f097[_0x340009('0x11d0')]):_0x18f097['toString']()});});}}}}}function _0x220f24(_0x4196d0){var _0x319d05=_0x2f6a5b;_0x2e14e9[_0x319d05('0x1b65')]=_0x4196d0||{'count':0x0,'rows':[]},!_0x2e14e9[_0x319d05('0x168b')]&&_0x2e14e9['selectedReport'][_0x319d05('0xb76')](_0x32d445()[_0x319d05('0xf15')](_0x2e14e9[_0x319d05('0x1b65')][_0x319d05('0x16a7')],{'id':_0x2e14e9[_0x319d05('0xa3f')]['id']}));}function _0x17fcaa(){var _0xd6cbdf=_0x2f6a5b;_0x2e14e9[_0xd6cbdf('0xed1')]=_0x2e14e9[_0xd6cbdf('0xe9b')][0x0]?angular['fromJson'](_0x2e14e9[_0xd6cbdf('0xe9b')][0x0][_0xd6cbdf('0xd03')]):[],_0x2e14e9[_0xd6cbdf('0xa17')]=_0x2e14e9[_0xd6cbdf('0xe9b')][0x1]?angular[_0xd6cbdf('0x56')](_0x2e14e9[_0xd6cbdf('0xe9b')][0x1][_0xd6cbdf('0xd03')]):[],_0x2e14e9[_0xd6cbdf('0x160d')]=_0x68bfe7(),_0x2e14e9[_0xd6cbdf('0x1d5')]=_0x58e5dc(![]),_0x2e14e9[_0xd6cbdf('0x162f')]=_0x58e5dc(!![]),_0x1555cc[_0xd6cbdf('0x26b2')]({'controller':function _0x151f3e(){return _0x2e14e9;},'controllerAs':'vm','templateUrl':_0x362898,'autoWrap':!![],'skipHide':!![]});}function _0x1b4c2d(){var _0x4de693=_0x2f6a5b;_0x2e14e9[_0x4de693('0x643')]['report']=_0x2e14e9[_0x4de693('0x2346')][0x0][_0x4de693('0x2623')],_0x2e14e9[_0x4de693('0x643')][_0x4de693('0x15dd')]=_0x2e14e9[_0x4de693('0x2346')][0x0]['id'],_0x2e14e9['dashboarditem'][_0x4de693('0x30f')]=_0x2e14e9['currentNode'][_0x4de693('0x261d')]?_0x4de693('0x261d'):_0x4de693('0x206');if(!_0x2e14e9[_0x4de693('0x168b')]){var _0x4c8bb6={'name':'attrReport','type':_0x2e14e9[_0x4de693('0x643')]['reportType'],'value':_0x2e14e9[_0x4de693('0x2346')][0x0]['id']};_0x2e14e9[_0x4de693('0x643')][_0x4de693('0x1a0e')][_0x4de693('0x1c8e')](_0x32d445()[_0x4de693('0x8d3')](_0x2e14e9[_0x4de693('0x643')][_0x4de693('0x1a0e')],0x1,_0x4c8bb6));}_0x11f3fd[_0x4de693('0x9ff')][_0x4de693('0x372')][_0x4de693('0x27c3')](),_0x1555cc['hide']();}function _0x2e2be7(){var _0x1d77e5=_0x2f6a5b;_0x1555cc[_0x1d77e5('0x11ed')]();}function _0x2b3963(_0x5d2ce9){return _0x5d2ce9===null?undefined:new Date(_0x5d2ce9);}function _0x1b306f(_0x3f06a6){var _0x573944=_0x2f6a5b;_0x1555cc[_0x573944('0x11ed')](_0x3f06a6);}}const _0x5c8b45=_0x13f90a,_0x245889=_0x59426a['p']+'src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html/clone-[chunkhash].html';_0x2eb15d['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730'),'customDashboard',_0xb635d2('0xb59')];function _0x2eb15d(_0x842284,_0x13d788,_0xb028a5,_0x4a9f8a,_0xd37804,_0xb98082,_0x1b5546,_0x55ad67,_0x342cf8,_0x3e0e8d,_0x195f02,_0x5f38a3){var _0x468759=_0xb635d2,_0x2fe90e=this;_0x2fe90e[_0x468759('0x15a5')]=_0x3e0e8d[_0x468759('0x1ef8')](),_0x2fe90e['license']=_0xb98082,_0x2fe90e[_0x468759('0x22f1')]=_0x1b5546,_0x2fe90e[_0x468759('0x25ac')]=_0x2fe90e[_0x468759('0x22f1')][_0x468759('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2fe90e[_0x468759('0x2170')]=_0x13d788[_0x468759('0xec0')]()+_0x468759('0x21a8')+_0x13d788[_0x468759('0x3b7')](),_0x2fe90e[_0x468759('0xae')]=_0x195f02||_0x842284[_0x468759('0x2ef')][_0x468759('0xae')]||{},_0x2fe90e['userProfileSection']=_0x5f38a3&&_0x5f38a3[_0x468759('0x148b')]==0x1?_0x5f38a3[_0x468759('0x16a7')][0x0]:null,_0x2fe90e['crudPermissions']=_0x3e0e8d[_0x468759('0xd31')](_0x2fe90e[_0x468759('0xb59')]?_0x2fe90e[_0x468759('0xb59')][_0x468759('0xb3d')]:null),_0x2fe90e[_0x468759('0x1ccb')]={},_0x2fe90e[_0x468759('0xc7b')]=_0x842284[_0x468759('0x2ef')][_0x468759('0x435')]||0x0,_0x2fe90e[_0x468759('0x26b7')]=_0x327606,_0x2fe90e[_0x468759('0x7ef')]=_0x4d0e91,_0x2fe90e[_0x468759('0xbdc')]=_0x342cf8[_0x468759('0x1e67')],_0x2fe90e[_0x468759('0x270c')]=_0x19939a,_0x2fe90e[_0x468759('0xa15')]=_0x5c503e;function _0x327606(_0x4ac0cf,_0x36df99){var _0x1a4ac4=_0x468759;_0xb028a5[_0x1a4ac4('0x26b2')]({'controller':_0x1a4ac4('0x94c'),'controllerAs':'vm','templateUrl':_0x245889,'parent':angular[_0x1a4ac4('0x24a1')](_0x4a9f8a['body']),'targetEvent':_0x36df99,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x4ac0cf,'customDashboards':_0x2fe90e['customDashboards']?_0x2fe90e[_0x1a4ac4('0x21b7')][_0x1a4ac4('0x16a7')]:[],'crudPermissions':_0x2fe90e['crudPermissions']}});}function _0x4d0e91(_0x3bcfa2){_0x842284['go']('app.dashboards.custom',{'id':_0x3bcfa2['id']});}function _0x19939a(){var _0x47b3b3=_0x468759;_0x842284['go'](_0x47b3b3('0x1e54'),{},{'reload':_0x47b3b3('0x1e54')});}function _0x5c503e(){var _0x5ee76f=_0x468759;_0x55ad67[_0x5ee76f('0xe6c')][_0x5ee76f('0xa70')]({'id':_0x2fe90e['customDashboard']['id']},_0x2fe90e[_0x5ee76f('0xae')])['$promise']['then'](function(){var _0x374b4f=_0x5ee76f;_0x342cf8[_0x374b4f('0x425')]({'title':'CustomDashboard\x20updated!','msg':_0x2fe90e[_0x374b4f('0xae')]['name']?_0x2fe90e[_0x374b4f('0xae')][_0x374b4f('0x2623')]+_0x374b4f('0x283b'):''});})['catch'](function(_0x415b14){var _0xa92535=_0x5ee76f;_0x342cf8[_0xa92535('0x8c8')]({'title':_0x415b14['status']?_0xa92535('0x27f2')+_0x415b14[_0xa92535('0x2833')]+'\x20-\x20'+_0x415b14[_0xa92535('0x1fd7')]:'SYSTEM:GETdashboard','msg':_0x415b14[_0xa92535('0x11d0')]?JSON[_0xa92535('0x3ad')](_0x415b14[_0xa92535('0x11d0')]):_0x415b14[_0xa92535('0x94f')]()});});}}const _0x516ceb=_0x2eb15d;_0x5aa970[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x10e0'),'interval',_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x5aa970(_0x56fcc0,_0x452aab,_0x12d23f,_0x2aeeae,_0x4a9228,_0x271a53,_0x18d6bc,_0xba2fe7,_0xd2ea1e,_0x2efac0,_0x50a598,_0x129a29,_0x54e66c,_0x1c1ebf){var _0x201e4f=_0xb635d2,_0x28f69f=this;_0x28f69f[_0x201e4f('0x15a5')]=_0x50a598[_0x201e4f('0x1ef8')](),_0x28f69f[_0x201e4f('0xcd2')]=[],_0x28f69f[_0x201e4f('0x22f1')]=_0x54e66c,_0x28f69f[_0x201e4f('0x5c1')]=_0x129a29,_0x28f69f['crudPermissions']=_0x1c1ebf,_0x28f69f['hasModulePermissions']={},_0x28f69f[_0x201e4f('0x25ac')]=_0x28f69f['setting']&&_0x28f69f[_0x201e4f('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28f69f[_0x201e4f('0x13e4')]='TOOLS.EDIT_INTERVAL',_0x28f69f[_0x201e4f('0x134c')]=angular['copy'](_0xd2ea1e),_0x28f69f['intervals']=_0xba2fe7,_0x28f69f['newInterval']=![];!_0x28f69f['interval']&&(_0x28f69f[_0x201e4f('0x134c')]={},_0x28f69f['title']=_0x201e4f('0x1947'),_0x28f69f[_0x201e4f('0x1a83')]=!![]);_0x28f69f[_0x201e4f('0x10a8')]=_0x423f2b,_0x28f69f['saveInterval']=_0x5418a9,_0x28f69f['deleteInterval']=_0x1efbac,_0x28f69f[_0x201e4f('0x2635')]=_0x3b0287,_0x28f69f['closeDialog']=_0x2b69c8;function _0x423f2b(){var _0x1cce53=_0x201e4f;_0x28f69f[_0x1cce53('0xcd2')]=[],_0x2efac0[_0x1cce53('0x134c')][_0x1cce53('0xe5e')](_0x28f69f[_0x1cce53('0x134c')])[_0x1cce53('0xe59')]['then'](function(_0x25a776){var _0x420bc7=_0x1cce53;_0x28f69f['intervals']['unshift'](_0x25a776['toJSON']()),_0x18d6bc['success']({'title':_0x420bc7('0x1268'),'msg':_0x28f69f[_0x420bc7('0x134c')][_0x420bc7('0x2623')]?_0x28f69f[_0x420bc7('0x134c')][_0x420bc7('0x2623')]+_0x420bc7('0x105f'):''}),_0x2b69c8(_0x25a776);})[_0x1cce53('0x223b')](function(_0x552005){var _0x20e241=_0x1cce53;if(_0x552005[_0x20e241('0x11d0')]&&_0x552005[_0x20e241('0x11d0')]['errors']&&_0x552005[_0x20e241('0x11d0')][_0x20e241('0xcd2')][_0x20e241('0x25ae')]){_0x28f69f[_0x20e241('0xcd2')]=_0x552005[_0x20e241('0x11d0')][_0x20e241('0xcd2')]||[{'message':_0x552005['toString'](),'type':_0x20e241('0x176b')}];for(var _0x2e8cc2=0x0;_0x2e8cc2<_0x552005['data'][_0x20e241('0xcd2')][_0x20e241('0x25ae')];_0x2e8cc2+=0x1){_0x18d6bc[_0x20e241('0x8c8')]({'title':_0x552005['data'][_0x20e241('0xcd2')][_0x2e8cc2]['type'],'msg':_0x552005[_0x20e241('0x11d0')][_0x20e241('0xcd2')][_0x2e8cc2]['message']});}}else _0x18d6bc[_0x20e241('0x8c8')]({'title':_0x552005['status']?_0x20e241('0x27f2')+_0x552005[_0x20e241('0x2833')]+_0x20e241('0x1b7c')+_0x552005['statusText']:'api.interval.save','msg':_0x552005[_0x20e241('0x11d0')]?JSON['stringify'](_0x552005[_0x20e241('0x11d0')]['message']):_0x552005['toString']()});});}function _0x5418a9(){var _0x40dd10=_0x201e4f;_0x28f69f[_0x40dd10('0xcd2')]=[],_0x2efac0[_0x40dd10('0x134c')][_0x40dd10('0xa70')]({'id':_0x28f69f['interval']['id']},_0x28f69f[_0x40dd10('0x134c')])[_0x40dd10('0xe59')][_0x40dd10('0xe19')](function(_0x55ae8f){var _0xd9e01c=_0x40dd10,_0x28c07b=_0x32d445()[_0xd9e01c('0xf15')](_0x28f69f[_0xd9e01c('0x10e0')],{'id':_0x55ae8f['id']});_0x28c07b&&_0x32d445()[_0xd9e01c('0x1d8')](_0x28c07b,_0x32d445()[_0xd9e01c('0xed5')](_0x55ae8f[_0xd9e01c('0x250e')](),_0x32d445()['keys'](_0x28c07b))),_0x18d6bc[_0xd9e01c('0x425')]({'title':_0xd9e01c('0x228'),'msg':_0x28f69f[_0xd9e01c('0x134c')][_0xd9e01c('0x2623')]?_0x28f69f[_0xd9e01c('0x134c')][_0xd9e01c('0x2623')]+_0xd9e01c('0x1c19'):''}),_0x2b69c8(_0x55ae8f);})[_0x40dd10('0x223b')](function(_0x3d8da9){var _0x142bd4=_0x40dd10;if(_0x3d8da9[_0x142bd4('0x11d0')]&&_0x3d8da9[_0x142bd4('0x11d0')]['errors']&&_0x3d8da9['data'][_0x142bd4('0xcd2')][_0x142bd4('0x25ae')]){_0x28f69f[_0x142bd4('0xcd2')]=_0x3d8da9['data'][_0x142bd4('0xcd2')]||[{'message':_0x3d8da9[_0x142bd4('0x94f')](),'type':_0x142bd4('0x1ff2')}];for(var _0x3647b6=0x0;_0x3647b6<_0x3d8da9[_0x142bd4('0x11d0')][_0x142bd4('0xcd2')][_0x142bd4('0x25ae')];_0x3647b6++){_0x18d6bc['error']({'title':_0x3d8da9['data'][_0x142bd4('0xcd2')][_0x3647b6][_0x142bd4('0x62e')],'msg':_0x3d8da9[_0x142bd4('0x11d0')][_0x142bd4('0xcd2')][_0x3647b6][_0x142bd4('0x27e8')]});}}else _0x18d6bc[_0x142bd4('0x8c8')]({'title':_0x3d8da9['status']?'API:'+_0x3d8da9['status']+'\x20-\x20'+_0x3d8da9[_0x142bd4('0x1fd7')]:_0x142bd4('0x1ff2'),'msg':_0x3d8da9[_0x142bd4('0x11d0')]?JSON['stringify'](_0x3d8da9[_0x142bd4('0x11d0')]['message']):_0x3d8da9[_0x142bd4('0x94f')]()});});}function _0x1efbac(_0x205c96){var _0x2404e2=_0x201e4f;_0x28f69f[_0x2404e2('0xcd2')]=[];var _0x518e59=_0x2aeeae[_0x2404e2('0xa5')]()['title'](_0x2404e2('0x24d0'))[_0x2404e2('0xd0')](_0x2404e2('0x10a7'))[_0x2404e2('0x4d1')](_0x2404e2('0x10ff'))['ok']('Delete')[_0x2404e2('0x2c1')](_0x2404e2('0x8a3'))[_0x2404e2('0x1345')](_0x205c96);_0x2aeeae['show'](_0x518e59)[_0x2404e2('0xe19')](function(){var _0x18d6cb=_0x2404e2;_0x2efac0[_0x18d6cb('0x134c')][_0x18d6cb('0x229e')]({'id':_0x28f69f[_0x18d6cb('0x134c')]['id']})[_0x18d6cb('0xe59')][_0x18d6cb('0xe19')](function(){var _0x489385=_0x18d6cb;_0x32d445()[_0x489385('0xa8b')](_0x28f69f[_0x489385('0x10e0')],{'id':_0x28f69f[_0x489385('0x134c')]['id']}),_0x18d6bc[_0x489385('0x425')]({'title':_0x489385('0x230d'),'msg':(_0x28f69f['interval'][_0x489385('0x2623')]||_0x489385('0x134c'))+_0x489385('0x2182')}),_0x2b69c8(_0x28f69f[_0x489385('0x134c')]);})[_0x18d6cb('0x223b')](function(_0x11a6e0){var _0x58bd61=_0x18d6cb;if(_0x11a6e0['data']&&_0x11a6e0['data']['errors']&&_0x11a6e0[_0x58bd61('0x11d0')][_0x58bd61('0xcd2')][_0x58bd61('0x25ae')]){_0x28f69f[_0x58bd61('0xcd2')]=_0x11a6e0[_0x58bd61('0x11d0')][_0x58bd61('0xcd2')]||[{'message':_0x11a6e0[_0x58bd61('0x94f')](),'type':'api.interval.delete'}];for(var _0x2b4598=0x0;_0x2b4598<_0x11a6e0['data'][_0x58bd61('0xcd2')]['length'];_0x2b4598++){_0x18d6bc['error']({'title':_0x11a6e0[_0x58bd61('0x11d0')][_0x58bd61('0xcd2')][_0x2b4598]['type'],'msg':_0x11a6e0[_0x58bd61('0x11d0')]['errors'][_0x2b4598][_0x58bd61('0x27e8')]});}}else _0x18d6bc['error']({'title':_0x11a6e0['status']?_0x58bd61('0x27f2')+_0x11a6e0['status']+_0x58bd61('0x1b7c')+_0x11a6e0['statusText']:'api.interval.delete','msg':_0x11a6e0[_0x58bd61('0x11d0')]?JSON[_0x58bd61('0x3ad')](_0x11a6e0[_0x58bd61('0x11d0')][_0x58bd61('0x27e8')]):_0x11a6e0[_0x58bd61('0x27e8')]||_0x11a6e0[_0x58bd61('0x94f')]()});});},function(){});}function _0x3b0287(_0x28cfb9){return _0x28cfb9===null?undefined:new Date(_0x28cfb9);}function _0x2b69c8(_0x5ead31){var _0x3d3173=_0x201e4f;_0x2aeeae[_0x3d3173('0x11ed')](_0x5ead31);}}const _0x4d02d7=_0x5aa970;_0x12cfcd['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),_0xb635d2('0x1e23'),_0xb635d2('0x9ab'),'interval',_0xb635d2('0x10e0'),_0xb635d2('0xf65'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x12cfcd(_0x13f0b4,_0x348064,_0x1f7934,_0x394810,_0x62dc4f,_0x48cfd2,_0x52b3e4,_0x24b863,_0x56503a,_0x4b4af6){var _0x1607e2=_0xb635d2,_0x7d193a=this;_0x7d193a[_0x1607e2('0x15a5')]=_0x56503a['getCurrentUser'](),_0x7d193a[_0x1607e2('0xcd2')]=[],_0x7d193a[_0x1607e2('0x13e4')]='TOOLS.EDIT_INTERVAL',_0x7d193a['interval']=angular[_0x1607e2('0x89')](_0x62dc4f),_0x7d193a[_0x1607e2('0x10e0')]=_0x48cfd2,_0x7d193a[_0x1607e2('0x1a83')]=![],_0x7d193a[_0x1607e2('0x1ea6')]=[_0x1607e2('0x2210'),_0x1607e2('0x261d')],_0x7d193a['crudPermissions']=_0x4b4af6,_0x7d193a[_0x1607e2('0x1af')]=_0x394810['getDaysOfWeek'](),_0x7d193a[_0x1607e2('0x253d')]=_0x394810[_0x1607e2('0x1015')](),_0x7d193a[_0x1607e2('0x631')]=_0x394810[_0x1607e2('0x1b22')](),_0x7d193a[_0x1607e2('0x2347')]=_0x394810[_0x1607e2('0xdee')]();if(!_0x7d193a[_0x1607e2('0x134c')])_0x7d193a[_0x1607e2('0x134c')]={'interval':_0x1607e2('0x2292')},_0x7d193a[_0x1607e2('0x62e')]=_0x1607e2('0x2210'),_0x7d193a['title']=_0x1607e2('0x1947'),_0x7d193a[_0x1607e2('0x1a83')]=!![];else{if(_0x7d193a[_0x1607e2('0x134c')]['interval']!==_0x1607e2('0x2292')){_0x7d193a[_0x1607e2('0x62e')]=_0x1607e2('0x261d');var _0x33bbb3=_0x7d193a[_0x1607e2('0x134c')][_0x1607e2('0x134c')][_0x1607e2('0x1745')](','),_0x17f434=_0x33bbb3[0x0],_0x2157bb=_0x33bbb3[0x1],_0x20cf54=_0x33bbb3[0x2],_0x3002f2=_0x33bbb3[0x3];if(_0x17f434!=='*'){var _0xe9a18b=_0x17f434[_0x1607e2('0x1745')]('-')[0x0],_0x2cc2c2=_0x17f434[_0x1607e2('0x1745')]('-')[0x1],_0x2f6b79;_0x2f6b79=new Date(),_0x2f6b79[_0x1607e2('0x19f6')](Number(_0xe9a18b[_0x1607e2('0x1745')](':')[0x0])),_0x2f6b79[_0x1607e2('0x6b6')](Number(_0xe9a18b[_0x1607e2('0x1745')](':')[0x1])),_0x7d193a[_0x1607e2('0xde9')]=_0x2f6b79,_0x2f6b79=new Date(),_0x2f6b79[_0x1607e2('0x19f6')](Number(_0x2cc2c2[_0x1607e2('0x1745')](':')[0x0])),_0x2f6b79[_0x1607e2('0x6b6')](Number(_0x2cc2c2[_0x1607e2('0x1745')](':')[0x1])),_0x7d193a['timeRangeTo']=_0x2f6b79;}_0x2157bb!=='*'&&(_0x7d193a[_0x1607e2('0x2359')]=_0x2157bb[_0x1607e2('0x1745')]('-')[0x0],_0x7d193a[_0x1607e2('0xa40')]=_0x2157bb['split']('-')[0x1]),_0x20cf54!=='*'&&(_0x7d193a[_0x1607e2('0x146b')]=_0x20cf54[_0x1607e2('0x1745')]('-')[0x0],_0x7d193a[_0x1607e2('0x3d6')]=_0x20cf54[_0x1607e2('0x1745')]('-')[0x1]),_0x3002f2!=='*'&&(_0x7d193a[_0x1607e2('0x1b2a')]=_0x3002f2[_0x1607e2('0x1745')]('-')[0x0],_0x7d193a[_0x1607e2('0xac6')]=_0x3002f2['split']('-')[0x1]);}else _0x7d193a[_0x1607e2('0x62e')]=_0x1607e2('0x2210');}_0x13f0b4['params']['id']&&!_0x7d193a[_0x1607e2('0x134c')][_0x1607e2('0x1491')]&&(_0x7d193a[_0x1607e2('0x134c')][_0x1607e2('0x1fc1')]=_0x13f0b4['params']['id']);_0x7d193a['interval']['IntervalId']&&_0x7d193a[_0x1607e2('0x134c')][_0x1607e2('0x1491')]&&(_0x7d193a[_0x1607e2('0x62e')]=_0x1607e2('0x15a8'));_0x7d193a['addNewInterval']=_0x23f7e9,_0x7d193a[_0x1607e2('0x201f')]=_0xb735bc,_0x7d193a['closeDialog']=_0x9c8ae8;_0x7d193a[_0x1607e2('0x134c')][_0x1607e2('0x1491')]&&(_0x56503a[_0x1607e2('0x179e')]('admin')?_0x24b863[_0x1607e2('0x134c')][_0x1607e2('0x22d5')]({'fields':_0x1607e2('0x13df'),'IntervalId':_0x1607e2('0x1046'),'nolimit':!![]})['$promise'][_0x1607e2('0xe19')](function(_0x11ed6c){var _0x5aa0ee=_0x1607e2;_0x7d193a[_0x5aa0ee('0x10e0')]=_0x11ed6c[_0x5aa0ee('0x16a7')]||[];})['catch'](function(_0x4b3649){var _0xa4af41=_0x1607e2;_0x52b3e4[_0xa4af41('0x8c8')]({'title':_0x4b3649[_0xa4af41('0x2833')]?_0xa4af41('0x27f2')+_0x4b3649[_0xa4af41('0x2833')]+_0xa4af41('0x1b7c')+_0x4b3649[_0xa4af41('0x1fd7')]:_0xa4af41('0x1c1c'),'msg':_0x4b3649['data']?JSON[_0xa4af41('0x3ad')](_0x4b3649['data']):_0x4b3649[_0xa4af41('0x94f')]()});}):_0x24b863['interval']['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x1607e2('0x1046'),'nolimit':!![]})[_0x1607e2('0xe59')][_0x1607e2('0xe19')](function(_0x185ee3){var _0x49ff87=_0x1607e2;_0x7d193a['intervals']=_0x185ee3[_0x49ff87('0x16a7')]||[];})[_0x1607e2('0xe19')](function(){var _0x691c10=_0x1607e2;return _0x24b863[_0x691c10('0xb59')][_0x691c10('0x22d5')]({'userProfileId':_0x7d193a[_0x691c10('0x15a5')][_0x691c10('0x1d04')],'sectionId':0x3ec})[_0x691c10('0xe59')];})[_0x1607e2('0xe19')](function(_0x10bc0b){var _0xb4ec59=_0x1607e2,_0x1a5b14=_0x10bc0b&&_0x10bc0b[_0xb4ec59('0x16a7')]?_0x10bc0b[_0xb4ec59('0x16a7')][0x0]:null;if(!_0x1a5b14)_0x7d193a[_0xb4ec59('0x10e0')]=[];else{if(!_0x1a5b14[_0xb4ec59('0x11fd')])return _0x24b863[_0xb4ec59('0xd49')][_0xb4ec59('0x22d5')]({'sectionId':_0x1a5b14['id']})[_0xb4ec59('0xe59')][_0xb4ec59('0xe19')](function(_0x21369d){var _0x181abf=_0xb4ec59,_0x380984=_0x21369d&&_0x21369d[_0x181abf('0x16a7')]?_0x21369d[_0x181abf('0x16a7')]:[],_0x149055=[],_0x4d247e=null;_0x7d193a[_0x181abf('0x134c')]&&(_0x4d247e=_0x32d445()[_0x181abf('0xf15')](_0x7d193a['intervals'],{'name':_0x7d193a[_0x181abf('0x134c')]['IntervalId']})),_0x4d247e&&!_0x32d445()[_0x181abf('0x201a')](_0x380984,['resourceId',_0x4d247e['id']])&&_0x7d193a[_0x181abf('0x10e0')]['forEach'](function(_0x31f225){var _0x5b20e1=_0x181abf;_0x31f225['id']===_0x4d247e['id']&&(_0x31f225[_0x5b20e1('0x1e9d')]=![],_0x149055[_0x5b20e1('0xb76')](_0x31f225));}),_0x7d193a['intervals']=_0x149055;});}})[_0x1607e2('0x223b')](function(_0x295449){var _0x337a18=_0x1607e2;_0x52b3e4[_0x337a18('0x8c8')]({'title':_0x295449[_0x337a18('0x2833')]?_0x337a18('0x27f2')+_0x295449[_0x337a18('0x2833')]+_0x337a18('0x1b7c')+_0x295449['statusText']:_0x337a18('0x1c1c'),'msg':_0x295449[_0x337a18('0x11d0')]?JSON['stringify'](_0x295449[_0x337a18('0x11d0')]):_0x295449['toString']()});}));function _0x341c67(){var _0x2e2904=_0x1607e2;switch(_0x7d193a[_0x2e2904('0x62e')]){case _0x2e2904('0x2210'):case _0x2e2904('0x15a8'):return _0x2e2904('0x2292');case _0x2e2904('0x261d'):{var _0x288f3b=[];if(_0x7d193a[_0x2e2904('0xde9')]!=='*'&&_0x7d193a['timeRangeFrom']&&_0x7d193a[_0x2e2904('0x12ef')]){var _0x2ae03e=(_0x7d193a[_0x2e2904('0xde9')]['getHours']()<0xa?'0':'')+_0x7d193a['timeRangeFrom'][_0x2e2904('0x757')]()+':'+((_0x7d193a['timeRangeFrom'][_0x2e2904('0x961')]()<0xa?'0':'')+_0x7d193a[_0x2e2904('0xde9')]['getMinutes']()),_0x2f659b=(_0x7d193a[_0x2e2904('0x12ef')]['getHours']()<0xa?'0':'')+_0x7d193a[_0x2e2904('0x12ef')][_0x2e2904('0x757')]()+':'+((_0x7d193a[_0x2e2904('0x12ef')][_0x2e2904('0x961')]()<0xa?'0':'')+_0x7d193a[_0x2e2904('0x12ef')][_0x2e2904('0x961')]());_0x288f3b[_0x2e2904('0xb76')](_0x2ae03e+'-'+_0x2f659b);}else _0x288f3b[_0x2e2904('0xb76')]('*');return _0x7d193a['dayOfWeekFrom']?_0x7d193a[_0x2e2904('0xa40')]?_0x288f3b[_0x2e2904('0xb76')](_0x7d193a['dayOfWeekFrom']+'-'+_0x7d193a[_0x2e2904('0xa40')]):_0x288f3b['push'](_0x7d193a[_0x2e2904('0x2359')]):_0x288f3b[_0x2e2904('0xb76')]('*'),_0x7d193a[_0x2e2904('0x146b')]?_0x7d193a[_0x2e2904('0x3d6')]?_0x288f3b[_0x2e2904('0xb76')](_0x7d193a[_0x2e2904('0x146b')]+'-'+_0x7d193a[_0x2e2904('0x3d6')]):_0x288f3b['push'](_0x7d193a['monthDayFrom']):_0x288f3b['push']('*'),_0x7d193a['monthFrom']?_0x7d193a[_0x2e2904('0xac6')]?_0x288f3b[_0x2e2904('0xb76')](_0x7d193a[_0x2e2904('0x1b2a')]+'-'+_0x7d193a[_0x2e2904('0xac6')]):_0x288f3b[_0x2e2904('0xb76')](_0x7d193a[_0x2e2904('0x1b2a')]):_0x288f3b['push']('*'),_0x288f3b[_0x2e2904('0x1537')]();}}}function _0x23f7e9(){var _0x61bd3d=_0x1607e2;_0x7d193a[_0x61bd3d('0xcd2')]=[],_0x7d193a[_0x61bd3d('0x134c')][_0x61bd3d('0x134c')]=_0x341c67(),_0x24b863[_0x61bd3d('0x134c')][_0x61bd3d('0xe5e')](_0x7d193a[_0x61bd3d('0x134c')])[_0x61bd3d('0xe59')]['then'](function(_0x2184a9){var _0x335ded=_0x61bd3d;_0x7d193a[_0x335ded('0x10e0')][_0x335ded('0xb76')](_0x2184a9),_0x52b3e4[_0x335ded('0x425')]({'title':_0x335ded('0x1268'),'msg':_0x7d193a[_0x335ded('0x134c')][_0x335ded('0x2623')]?_0x7d193a['interval'][_0x335ded('0x2623')]+_0x335ded('0x105f'):''}),_0x9c8ae8();})[_0x61bd3d('0x223b')](function(_0x129fa4){var _0x177014=_0x61bd3d;console[_0x177014('0x8c8')](_0x129fa4),_0x7d193a[_0x177014('0xcd2')]=_0x129fa4[_0x177014('0x11d0')][_0x177014('0xcd2')]||[{'message':_0x129fa4['toString'](),'type':_0x177014('0x176b')}];});}function _0xb735bc(){var _0x4fa0a4=_0x1607e2;_0x7d193a['errors']=[],_0x7d193a[_0x4fa0a4('0x134c')][_0x4fa0a4('0x134c')]=_0x341c67(),_0x7d193a[_0x4fa0a4('0x134c')]['application']?(_0x7d193a[_0x4fa0a4('0x62e')]!=='list'&&(_0x7d193a['interval']['IntervalId']=null),_0x9c8ae8(_0x7d193a[_0x4fa0a4('0x134c')])):_0x24b863['interval'][_0x4fa0a4('0xa70')]({'id':_0x7d193a[_0x4fa0a4('0x134c')]['id']},_0x7d193a[_0x4fa0a4('0x134c')])[_0x4fa0a4('0xe59')][_0x4fa0a4('0xe19')](function(_0x33e0d6){var _0x30fb1c=_0x4fa0a4,_0x26c46d=_0x32d445()['find'](_0x7d193a[_0x30fb1c('0x10e0')],{'id':_0x33e0d6['id']});_0x26c46d&&_0x32d445()[_0x30fb1c('0x1d8')](_0x26c46d,_0x33e0d6),_0x52b3e4['success']({'title':'Interval\x20properly\x20saved!','msg':_0x30fb1c('0x8b4')}),_0x9c8ae8();})[_0x4fa0a4('0x223b')](function(_0x26e8fd){var _0x506273=_0x4fa0a4;console['error'](_0x26e8fd),_0x7d193a[_0x506273('0xcd2')]=_0x26e8fd[_0x506273('0x11d0')][_0x506273('0xcd2')]||[{'message':_0x26e8fd[_0x506273('0x94f')](),'type':_0x506273('0x1ff2')}];});}function _0x9c8ae8(_0x20c7bd){_0x348064['hide'](_0x20c7bd);}}const _0x3b2623=_0x12cfcd,_0x4b2b37=_0x59426a['p']+_0xb635d2('0x19f4');_0x512a62[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),'$state','$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x512a62(_0x226cf0,_0x9fb367,_0x5a27ce,_0x580a9b,_0x31802d,_0x127c31,_0xaa7d87,_0xd43ec7,_0xe3a236,_0x11be5f,_0x463517){var _0x4efee5=_0xb635d2,_0x568a08=this;_0x568a08[_0x4efee5('0x15a5')]=_0x463517[_0x4efee5('0x1ef8')](),_0x568a08[_0x4efee5('0x134c')]={},_0x568a08[_0x4efee5('0x202f')]={'count':0x0,'rows':[]},_0x568a08[_0x4efee5('0x2519')]=[],_0x568a08[_0x4efee5('0xb3d')],_0x568a08[_0x4efee5('0x2067')]={'animation':0x64,'onSort':function _0x5d4bef(_0x1d0250){var _0x18ec82=_0x4efee5;_0x11be5f['interval'][_0x18ec82('0x1715')]({'id':_0x568a08[_0x18ec82('0x134c')]['id']},_0x1d0250['models'])[_0x18ec82('0xe59')][_0x18ec82('0xe19')](function(_0x1ebf48){var _0x411cc5=_0x18ec82;_0x568a08[_0x411cc5('0x202f')][_0x411cc5('0x16a7')]=_0x1ebf48;})[_0x18ec82('0x223b')](function(_0x189bdf){var _0x28c96a=_0x18ec82;_0xe3a236['error']({'title':_0x189bdf['status']?_0x28c96a('0x27f2')+_0x189bdf[_0x28c96a('0x2833')]+'\x20-\x20'+_0x189bdf[_0x28c96a('0x1fd7')]:_0x28c96a('0x9e6'),'msg':_0x189bdf[_0x28c96a('0x11d0')]?JSON['stringify'](_0x189bdf['data']):_0x189bdf[_0x28c96a('0x94f')]()});});}},_0x568a08[_0x4efee5('0xa16')]={'fields':_0x4efee5('0xf38'),'nolimit':'true','limit':0xa,'page':0x1},_0x568a08[_0x4efee5('0x15f9')]=_0x3aa415,_0x568a08[_0x4efee5('0x126c')]=_0x291773,_0x568a08[_0x4efee5('0x425')]=_0x4b911f,_0x568a08[_0x4efee5('0x1c35')]=_0x319d7a,_0x568a08[_0x4efee5('0x193d')]=_0x3e2fa8,_0x568a08[_0x4efee5('0x2076')]=_0x531fb5,_0x568a08[_0x4efee5('0x66e')]=_0x2ddcdd,_0x568a08[_0x4efee5('0xee1')]=_0x440a03;function _0x3aa415(_0x402324,_0x1e5191){var _0x1bd1e2=_0x4efee5;_0x568a08[_0x1bd1e2('0x134c')]=_0x402324,_0x568a08[_0x1bd1e2('0xb3d')]=typeof _0x1e5191!==_0x1bd1e2('0x1143')?_0x1e5191:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x568a08['sortableTable'][_0x1bd1e2('0x1ebc')]=!_0x568a08[_0x1bd1e2('0xb3d')]['canEdit']?!![]:![],_0x568a08[_0x1bd1e2('0xa16')]['id']=_0x568a08[_0x1bd1e2('0x134c')]['id'],_0x319d7a();}function _0x291773(_0x5a65f5,_0x20c221){var _0x66a2bb=_0x4efee5,_0x1ddb00=_0xaa7d87[_0x66a2bb('0xa5')]()[_0x66a2bb('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interval?')[_0x66a2bb('0x221c')](_0x66a2bb('0xab2')+(_0x5a65f5[_0x66a2bb('0x2623')]||_0x5a65f5['id']&&_0x32d445()[_0x66a2bb('0x2077')](_0x66a2bb('0x2345'))+_0x5a65f5['id']||_0x66a2bb('0x134c'))+_0x66a2bb('0x27bb')+_0x66a2bb('0x21bd'))[_0x66a2bb('0x4d1')]('delete\x20interval')[_0x66a2bb('0x1345')](_0x20c221)['ok']('OK')[_0x66a2bb('0x2c1')](_0x66a2bb('0x17'));_0xaa7d87[_0x66a2bb('0x26b2')](_0x1ddb00)['then'](function(){_0x2ddcdd(_0x5a65f5);},function(){var _0x4fd54a=_0x66a2bb;console[_0x4fd54a('0x1fe9')](_0x4fd54a('0x17'));});}function _0x4b911f(_0x3d6896){var _0x5e4ed1=_0x4efee5;_0x568a08[_0x5e4ed1('0x202f')]=_0x3d6896||{'count':0x0,'rows':[]};}function _0x319d7a(){var _0x2c28c2=_0x4efee5;_0x568a08[_0x2c28c2('0xa16')][_0x2c28c2('0xab0')]=(_0x568a08[_0x2c28c2('0xa16')]['page']-0x1)*_0x568a08[_0x2c28c2('0xa16')][_0x2c28c2('0x1b6d')],_0x568a08[_0x2c28c2('0x9c8')]=_0x11be5f[_0x2c28c2('0x134c')][_0x2c28c2('0x157')](_0x568a08[_0x2c28c2('0xa16')],_0x4b911f)[_0x2c28c2('0xe59')];}function _0x3e2fa8(_0x4f2c05,_0x285784){var _0x291685=_0x4efee5;_0xaa7d87['show']({'controller':_0x291685('0xd0f'),'controllerAs':'vm','templateUrl':_0x4b2b37,'parent':angular[_0x291685('0x24a1')](_0xd43ec7[_0x291685('0x19b2')]),'targetEvent':_0x4f2c05,'clickOutsideToClose':!![],'locals':{'interval':_0x285784,'intervals':_0x568a08[_0x291685('0x202f')][_0x291685('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x568a08[_0x291685('0xb3d')]}});}function _0x2ddcdd(_0x36ce3e){var _0x5e00a1=_0x4efee5;_0x11be5f['interval'][_0x5e00a1('0x229e')]({'id':_0x36ce3e['id']})[_0x5e00a1('0xe59')]['then'](function(){var _0x384264=_0x5e00a1;_0x32d445()[_0x384264('0xa8b')](_0x568a08[_0x384264('0x202f')]['rows'],{'id':_0x36ce3e['id']}),_0x568a08['intervalIntervals'][_0x384264('0x148b')]-=0x1,!_0x568a08[_0x384264('0x202f')][_0x384264('0x16a7')][_0x384264('0x25ae')]&&_0x319d7a(),_0xe3a236[_0x384264('0x425')]({'title':_0x384264('0x1a86'),'msg':_0x36ce3e[_0x384264('0x2623')]?_0x36ce3e['name']+_0x384264('0x2182'):''});})[_0x5e00a1('0x223b')](function(_0x221c32){var _0x15ff05=_0x5e00a1;if(_0x221c32[_0x15ff05('0x11d0')]&&_0x221c32[_0x15ff05('0x11d0')][_0x15ff05('0xcd2')]&&_0x221c32['data'][_0x15ff05('0xcd2')]['length']){_0x568a08[_0x15ff05('0xcd2')]=_0x221c32['data'][_0x15ff05('0xcd2')]||[{'message':_0x221c32[_0x15ff05('0x94f')](),'type':_0x15ff05('0x2051')}];for(var _0x417e30=0x0;_0x417e30<_0x221c32['data']['errors'][_0x15ff05('0x25ae')];_0x417e30++){_0xe3a236[_0x15ff05('0x8c8')]({'title':_0x221c32[_0x15ff05('0x11d0')][_0x15ff05('0xcd2')][_0x417e30][_0x15ff05('0x62e')],'msg':_0x221c32[_0x15ff05('0x11d0')][_0x15ff05('0xcd2')][_0x417e30][_0x15ff05('0x27e8')]});}}else _0xe3a236[_0x15ff05('0x8c8')]({'title':_0x221c32[_0x15ff05('0x2833')]?_0x15ff05('0x27f2')+_0x221c32[_0x15ff05('0x2833')]+_0x15ff05('0x1b7c')+_0x221c32[_0x15ff05('0x1fd7')]:'SYSTEM:GETinterval','msg':_0x221c32[_0x15ff05('0x11d0')]?JSON['stringify'](_0x221c32[_0x15ff05('0x11d0')]['message']):_0x221c32['message']||_0x221c32['toString']()});});}function _0x531fb5(){var _0x375cdd=_0x4efee5,_0x35a2e0=angular[_0x375cdd('0x89')](_0x568a08[_0x375cdd('0x2519')]);return _0x568a08[_0x375cdd('0x2519')]=[],_0x35a2e0;}function _0x440a03(_0xc27810){var _0x571dea=_0x4efee5,_0x294e57=_0xaa7d87[_0x571dea('0xa5')]()[_0x571dea('0x13e4')](_0x571dea('0x147'))['htmlContent'](_0x571dea('0xab2')+_0x568a08[_0x571dea('0x2519')][_0x571dea('0x25ae')]+'\x20selected'+_0x571dea('0x21bd'))[_0x571dea('0x4d1')](_0x571dea('0x2688'))[_0x571dea('0x1345')](_0xc27810)['ok']('OK')[_0x571dea('0x2c1')](_0x571dea('0x17'));_0xaa7d87[_0x571dea('0x26b2')](_0x294e57)[_0x571dea('0xe19')](function(){var _0x5e140f=_0x571dea;_0x568a08[_0x5e140f('0x2519')][_0x5e140f('0x1d7e')](function(_0x17becb){_0x2ddcdd(_0x17becb);}),_0x568a08['selectedIntervalIntervals']=[];});}var _0xb7460b=!![],_0xbef3d=0x1;_0x9fb367[_0x4efee5('0x107')](_0x4efee5('0x1607'),function(_0x167d29,_0x3c9589){var _0x5cbc10=_0x4efee5;_0xb7460b?_0x127c31(function(){_0xb7460b=![];}):(!_0x3c9589&&(_0xbef3d=_0x568a08[_0x5cbc10('0xa16')][_0x5cbc10('0xc08')]),_0x167d29!==_0x3c9589&&(_0x568a08[_0x5cbc10('0xa16')][_0x5cbc10('0xc08')]=0x1),!_0x167d29&&(_0x568a08['query'][_0x5cbc10('0xc08')]=_0xbef3d),_0x319d7a());});}const _0x12f920=_0x512a62;_0x2485cf[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x134c'),_0xb635d2('0xb59')];function _0x2485cf(_0x188e11,_0x3b8416,_0x225db0,_0x34abdf,_0x378ba6,_0x576a41,_0x3d5b28,_0x424c94,_0x46b0d1,_0x5ee660,_0x4228bf,_0x20ff88){var _0x1f5c8c=_0xb635d2,_0x4a95c9=this;_0x4a95c9['currentUser']=_0x5ee660[_0x1f5c8c('0x1ef8')](),_0x4a95c9[_0x1f5c8c('0x5c1')]=_0x576a41,_0x4a95c9[_0x1f5c8c('0x22f1')]=_0x3d5b28,_0x4a95c9[_0x1f5c8c('0x25ac')]=_0x4a95c9[_0x1f5c8c('0x22f1')][_0x1f5c8c('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a95c9[_0x1f5c8c('0x2170')]=_0x3b8416[_0x1f5c8c('0xec0')]()+_0x1f5c8c('0x21a8')+_0x3b8416[_0x1f5c8c('0x3b7')](),_0x4a95c9[_0x1f5c8c('0x134c')]=_0x4228bf||_0x188e11[_0x1f5c8c('0x2ef')][_0x1f5c8c('0x134c')]||{},_0x4a95c9[_0x1f5c8c('0xb59')]=_0x20ff88&&_0x20ff88[_0x1f5c8c('0x148b')]==0x1?_0x20ff88[_0x1f5c8c('0x16a7')][0x0]:null,_0x4a95c9['crudPermissions']=_0x5ee660[_0x1f5c8c('0xd31')](_0x4a95c9['userProfileSection']?_0x4a95c9[_0x1f5c8c('0xb59')][_0x1f5c8c('0xb3d')]:null),_0x4a95c9[_0x1f5c8c('0x1ccb')]={},_0x4a95c9[_0x1f5c8c('0xc7b')]=_0x188e11[_0x1f5c8c('0x2ef')]['tab']||0x0,_0x4a95c9[_0x1f5c8c('0xbdc')]=_0x46b0d1['info'],_0x4a95c9[_0x1f5c8c('0x13f9')]=_0x238cb4,_0x4a95c9[_0x1f5c8c('0x201f')]=_0x209bce;function _0x238cb4(){var _0x480947=_0x1f5c8c;_0x188e11['go'](_0x480947('0x33a'),{},{'reload':_0x480947('0x33a')});}function _0x209bce(){var _0x1e56e7=_0x1f5c8c;_0x424c94[_0x1e56e7('0x134c')][_0x1e56e7('0xa70')]({'id':_0x4a95c9[_0x1e56e7('0x134c')]['id']},_0x4a95c9[_0x1e56e7('0x134c')])[_0x1e56e7('0xe59')][_0x1e56e7('0xe19')](function(){var _0x97da97=_0x1e56e7;_0x46b0d1[_0x97da97('0x425')]({'title':_0x97da97('0x1dc2'),'msg':_0x4a95c9['interval'][_0x97da97('0x2623')]?_0x4a95c9[_0x97da97('0x134c')]['name']+_0x97da97('0x283b'):''});})[_0x1e56e7('0x223b')](function(_0x2cc5d0){var _0xc443f=_0x1e56e7;_0x46b0d1[_0xc443f('0x8c8')]({'title':_0x2cc5d0['status']?_0xc443f('0x27f2')+_0x2cc5d0[_0xc443f('0x2833')]+_0xc443f('0x1b7c')+_0x2cc5d0['statusText']:'SYSTEM:GETinterval','msg':_0x2cc5d0[_0xc443f('0x11d0')]?JSON[_0xc443f('0x3ad')](_0x2cc5d0[_0xc443f('0x11d0')]):_0x2cc5d0[_0xc443f('0x94f')]()});});}}const _0x361d2a=_0x2485cf,_0x167944=_0x59426a['p']+_0xb635d2('0x12d3');_0x5163c0[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document','$timeout','$translate',_0xb635d2('0x10e0'),'userProfile',_0xb635d2('0xb59'),'api','msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x5163c0(_0x5c1a69,_0x122b09,_0x3e4a97,_0x1c55eb,_0x1014dd,_0x3158af,_0x6395db,_0x27634d,_0x513068,_0xb0fbb6,_0x1a2916,_0x1baa99,_0x44083c,_0x4ab67b,_0x572833,_0x4661ac,_0x4910ea){var _0x1c3940=_0xb635d2,_0xbb3258=this;_0xbb3258['license']=_0x4661ac,_0xbb3258[_0x1c3940('0x22f1')]=_0x4910ea,_0xbb3258[_0x1c3940('0x15a5')]=_0x572833[_0x1c3940('0x1ef8')](),_0xbb3258[_0x1c3940('0x10e0')]=_0x513068||{'count':0x0,'rows':[]},_0xbb3258[_0x1c3940('0x154f')]=_0xb0fbb6,_0xbb3258[_0x1c3940('0xb59')]=_0x1a2916&&_0x1a2916[_0x1c3940('0x148b')]==0x1?_0x1a2916[_0x1c3940('0x16a7')][0x0]:null,_0xbb3258[_0x1c3940('0xb3d')]=_0x572833[_0x1c3940('0xd31')](_0xbb3258[_0x1c3940('0xb59')]?_0xbb3258[_0x1c3940('0xb59')][_0x1c3940('0xb3d')]:null),_0xbb3258[_0x1c3940('0x19b6')]=_0x1c3940('0x10e0'),_0xbb3258[_0x1c3940('0x14d6')]='',_0xbb3258[_0x1c3940('0x190c')]=null,_0xbb3258['selectedIntervals']=[],_0xbb3258[_0x1c3940('0xa16')]={'fields':_0x1c3940('0x1666'),'sort':_0x1c3940('0x7e8'),'IntervalId':_0x1c3940('0x1046'),'limit':0xa,'page':0x1},_0xbb3258[_0x1c3940('0x16a0')]=_0x53104a,_0xbb3258[_0x1c3940('0x1d9e')]=_0x46e2e6,_0xbb3258['success']=_0x2f8eb5,_0xbb3258[_0x1c3940('0x157')]=_0x42d507,_0xbb3258['createOrEditInterval']=_0x59bf90,_0xbb3258[_0x1c3940('0x2266')]=_0xe307bb,_0xbb3258[_0x1c3940('0x81a')]=_0x23f950,_0xbb3258[_0x1c3940('0x7f0')]=_0x21c01f,_0xbb3258[_0x1c3940('0x1197')]=_0x279777,_0xbb3258[_0x1c3940('0x1b2e')]=_0xfea55d;function _0x53104a(_0x5eb5dc){var _0x5a72d0=_0x1c3940;_0x3e4a97['go'](_0x5a72d0('0x24c'),{'id':_0x5eb5dc['id'],'interval':_0x5eb5dc,'crudPermissions':_0xbb3258[_0x5a72d0('0xb3d')]});}function _0x46e2e6(_0x473e39,_0x3467b5){var _0x578ef6=_0x1c3940,_0x31c0f1=_0x1014dd[_0x578ef6('0xa5')]()[_0x578ef6('0x13e4')](_0x578ef6('0x346')+_0x32d445()[_0x578ef6('0x1df2')](_0x578ef6('0x134c'))+'?')[_0x578ef6('0x221c')](_0x578ef6('0xab2')+(_0x473e39[_0x578ef6('0x2623')]||_0x578ef6('0x134c'))+_0x578ef6('0x27bb')+_0x578ef6('0x21bd'))[_0x578ef6('0x4d1')](_0x578ef6('0x1c3e'))[_0x578ef6('0x1345')](_0x3467b5)['ok']('OK')[_0x578ef6('0x2c1')](_0x578ef6('0x17'));_0x1014dd[_0x578ef6('0x26b2')](_0x31c0f1)['then'](function(){_0xe307bb(_0x473e39);},function(){var _0x325eb9=_0x578ef6;console['log'](_0x325eb9('0x17'));});}var _0x8f3e21=!![],_0x5ba11d=0x1;_0x5c1a69[_0x1c3940('0x107')](_0x1c3940('0x20cb'),function(_0x4238d9,_0xee7b22){var _0x5745e2=_0x1c3940;_0x8f3e21?_0x6395db(function(){_0x8f3e21=![];}):(!_0xee7b22&&(_0x5ba11d=_0xbb3258[_0x5745e2('0xa16')]['page']),_0x4238d9!==_0xee7b22&&(_0xbb3258[_0x5745e2('0xa16')][_0x5745e2('0xc08')]=0x1),!_0x4238d9&&(_0xbb3258[_0x5745e2('0xa16')]['page']=_0x5ba11d),_0xbb3258[_0x5745e2('0x157')]());});function _0x2f8eb5(_0x262d22){var _0x2c5a8d=_0x1c3940;_0xbb3258[_0x2c5a8d('0x10e0')]=_0x262d22||{'count':0x0,'rows':[]};}function _0x42d507(){var _0x3ca9a6=_0x1c3940;_0xbb3258['query'][_0x3ca9a6('0xab0')]=(_0xbb3258[_0x3ca9a6('0xa16')][_0x3ca9a6('0xc08')]-0x1)*_0xbb3258[_0x3ca9a6('0xa16')]['limit'],_0x572833[_0x3ca9a6('0x179e')]('admin')?_0xbb3258[_0x3ca9a6('0x9c8')]=_0x1baa99['interval'][_0x3ca9a6('0x22d5')](_0xbb3258[_0x3ca9a6('0xa16')],_0x2f8eb5)[_0x3ca9a6('0xe59')]:(_0xbb3258[_0x3ca9a6('0xa16')]['id']=_0xbb3258['userProfile']['id'],_0xbb3258['query']['section']=_0x3ca9a6('0x1916'),_0xbb3258[_0x3ca9a6('0x9c8')]=_0x1baa99[_0x3ca9a6('0x154f')][_0x3ca9a6('0x14e6')](_0xbb3258['query'],_0x2f8eb5)['$promise']);}function _0x59bf90(_0xf278b2,_0x45df2b){var _0x521c72=_0x1c3940;_0x1014dd[_0x521c72('0x26b2')]({'controller':_0x521c72('0x1a5e'),'controllerAs':'vm','templateUrl':_0x167944,'parent':angular[_0x521c72('0x24a1')](_0x3158af['body']),'targetEvent':_0xf278b2,'clickOutsideToClose':!![],'locals':{'interval':_0x45df2b,'intervals':_0xbb3258[_0x521c72('0x10e0')][_0x521c72('0x16a7')],'license':_0xbb3258[_0x521c72('0x5c1')],'setting':_0xbb3258['setting'],'crudPermissions':_0xbb3258[_0x521c72('0xb3d')]}});}function _0xe307bb(_0x4e83c3){var _0x10244c=_0x1c3940;_0x1baa99[_0x10244c('0x134c')][_0x10244c('0x229e')]({'id':_0x4e83c3['id']})[_0x10244c('0xe59')][_0x10244c('0xe19')](function(){var _0x1c64e4=_0x10244c;_0x32d445()['remove'](_0xbb3258[_0x1c64e4('0x10e0')][_0x1c64e4('0x16a7')],{'id':_0x4e83c3['id']}),_0xbb3258[_0x1c64e4('0x10e0')][_0x1c64e4('0x148b')]-=0x1,!_0xbb3258['intervals']['rows'][_0x1c64e4('0x25ae')]&&_0xbb3258[_0x1c64e4('0x157')](),_0x4ab67b[_0x1c64e4('0x425')]({'title':_0x32d445()[_0x1c64e4('0x1df2')](_0x1c64e4('0x2102'))+_0x1c64e4('0x1219'),'msg':_0x4e83c3[_0x1c64e4('0x2623')]?_0x4e83c3['name']+_0x1c64e4('0x2182'):''});})[_0x10244c('0x223b')](function(_0x41ad2a){var _0x35cbaf=_0x10244c;if(_0x41ad2a[_0x35cbaf('0x11d0')]&&_0x41ad2a[_0x35cbaf('0x11d0')][_0x35cbaf('0xcd2')]&&_0x41ad2a['data']['errors'][_0x35cbaf('0x25ae')]){_0xbb3258[_0x35cbaf('0xcd2')]=_0x41ad2a[_0x35cbaf('0x11d0')]['errors']||[{'message':_0x41ad2a[_0x35cbaf('0x94f')](),'type':_0x35cbaf('0x2525')}];for(var _0x3b1056=0x0;_0x3b1056<_0x41ad2a[_0x35cbaf('0x11d0')][_0x35cbaf('0xcd2')]['length'];_0x3b1056++){_0x4ab67b[_0x35cbaf('0x8c8')]({'title':_0x41ad2a[_0x35cbaf('0x11d0')][_0x35cbaf('0xcd2')][_0x3b1056][_0x35cbaf('0x62e')],'msg':_0x41ad2a[_0x35cbaf('0x11d0')][_0x35cbaf('0xcd2')][_0x3b1056]['message']});}}else _0x4ab67b['error']({'title':_0x41ad2a[_0x35cbaf('0x2833')]?'API:'+_0x41ad2a[_0x35cbaf('0x2833')]+_0x35cbaf('0x1b7c')+_0x41ad2a[_0x35cbaf('0x1fd7')]:_0x35cbaf('0x2525'),'msg':_0x41ad2a[_0x35cbaf('0x11d0')]?JSON[_0x35cbaf('0x3ad')](_0x41ad2a[_0x35cbaf('0x11d0')]['message']):_0x41ad2a['message']||_0x41ad2a['toString']()});});}function _0x23f950(){var _0x36a717=_0x1c3940,_0x402f7e=angular[_0x36a717('0x89')](_0xbb3258['selectedIntervals']);return _0xbb3258[_0x36a717('0x28b2')]=[],_0x402f7e;}function _0x21c01f(_0x4bd472){var _0x434e55=_0x1c3940,_0x5c1adb=_0x1014dd[_0x434e55('0xa5')]()[_0x434e55('0x13e4')](_0x434e55('0x147'))[_0x434e55('0x221c')](_0x434e55('0xab2')+_0xbb3258[_0x434e55('0x28b2')][_0x434e55('0x25ae')]+_0x434e55('0x5bc')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x434e55('0x697'))[_0x434e55('0x1345')](_0x4bd472)['ok']('OK')[_0x434e55('0x2c1')]('CANCEL');_0x1014dd[_0x434e55('0x26b2')](_0x5c1adb)[_0x434e55('0xe19')](function(){_0xbb3258['selectedIntervals']['forEach'](function(_0x3d35fd){_0xe307bb(_0x3d35fd);}),_0xbb3258['selectedIntervals']=[];});}function _0x279777(){_0xbb3258['selectedIntervals']=[];}function _0xfea55d(){var _0x48c1af=_0x1c3940;_0xbb3258[_0x48c1af('0x28b2')]=_0xbb3258['intervals'][_0x48c1af('0x16a7')];}}const _0x23397d=_0x5163c0;_0x27c9cf[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x145e'),_0xb635d2('0x1c98'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x27c9cf(_0x2b47e8,_0x8978f9,_0x1cefba,_0x3b3be9,_0x41bd9e,_0x440db4,_0x509f32,_0x391add,_0x4ed1ae,_0x317a61,_0x426998,_0x86bd0,_0x2057e1,_0x2e6c4a){var _0x1ec350=_0xb635d2,_0x18a930=this;_0x18a930[_0x1ec350('0x15a5')]=_0x426998[_0x1ec350('0x1ef8')](),_0x18a930['errors']=[],_0x18a930[_0x1ec350('0x22f1')]=_0x2057e1,_0x18a930[_0x1ec350('0x5c1')]=_0x86bd0,_0x18a930['crudPermissions']=_0x2e6c4a,_0x18a930[_0x1ec350('0x1ccb')]={},_0x18a930[_0x1ec350('0x25ac')]=_0x18a930[_0x1ec350('0x22f1')]&&_0x18a930['setting'][_0x1ec350('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x18a930[_0x1ec350('0x13e4')]=_0x1ec350('0x25be'),_0x18a930[_0x1ec350('0x1c98')]=angular['copy'](_0x4ed1ae),_0x18a930[_0x1ec350('0x145e')]=_0x391add,_0x18a930['newPause']=![];!_0x18a930[_0x1ec350('0x1c98')]&&(_0x18a930['pause']={},_0x18a930[_0x1ec350('0x13e4')]=_0x1ec350('0xfef'),_0x18a930[_0x1ec350('0x10ef')]=!![]);_0x18a930[_0x1ec350('0x2783')]=_0x4a44bd,_0x18a930[_0x1ec350('0xbd2')]=_0x32e655,_0x18a930[_0x1ec350('0xa2e')]=_0x104433,_0x18a930[_0x1ec350('0x2635')]=_0x9b70cb,_0x18a930[_0x1ec350('0x2584')]=_0x5e968c;function _0x4a44bd(){var _0xef8c60=_0x1ec350;_0x18a930[_0xef8c60('0xcd2')]=[],_0x317a61[_0xef8c60('0x1c98')]['save'](_0x18a930[_0xef8c60('0x1c98')])[_0xef8c60('0xe59')][_0xef8c60('0xe19')](function(_0x51a48a){var _0x41fc15=_0xef8c60;_0x18a930['pauses']['unshift'](_0x51a48a[_0x41fc15('0x250e')]()),_0x509f32[_0x41fc15('0x425')]({'title':_0x41fc15('0x1424'),'msg':_0x18a930['pause']['name']?_0x18a930['pause'][_0x41fc15('0x2623')]+'\x20has\x20been\x20created!':''}),_0x5e968c(_0x51a48a);})[_0xef8c60('0x223b')](function(_0xac32bb){var _0x24a7a7=_0xef8c60;if(_0xac32bb[_0x24a7a7('0x11d0')]&&_0xac32bb[_0x24a7a7('0x11d0')][_0x24a7a7('0xcd2')]&&_0xac32bb[_0x24a7a7('0x11d0')]['errors'][_0x24a7a7('0x25ae')]){_0x18a930[_0x24a7a7('0xcd2')]=_0xac32bb[_0x24a7a7('0x11d0')][_0x24a7a7('0xcd2')]||[{'message':_0xac32bb[_0x24a7a7('0x94f')](),'type':'api.pause.save'}];for(var _0x1ab163=0x0;_0x1ab163<_0xac32bb[_0x24a7a7('0x11d0')][_0x24a7a7('0xcd2')]['length'];_0x1ab163+=0x1){_0x509f32[_0x24a7a7('0x8c8')]({'title':_0xac32bb[_0x24a7a7('0x11d0')]['errors'][_0x1ab163][_0x24a7a7('0x62e')],'msg':_0xac32bb[_0x24a7a7('0x11d0')][_0x24a7a7('0xcd2')][_0x1ab163][_0x24a7a7('0x27e8')]});}}else _0x509f32[_0x24a7a7('0x8c8')]({'title':_0xac32bb['status']?_0x24a7a7('0x27f2')+_0xac32bb[_0x24a7a7('0x2833')]+_0x24a7a7('0x1b7c')+_0xac32bb[_0x24a7a7('0x1fd7')]:'api.pause.save','msg':_0xac32bb['data']?JSON[_0x24a7a7('0x3ad')](_0xac32bb['data'][_0x24a7a7('0x27e8')]):_0xac32bb[_0x24a7a7('0x94f')]()});});}function _0x32e655(){var _0x4c48ff=_0x1ec350;_0x18a930[_0x4c48ff('0xcd2')]=[],_0x317a61[_0x4c48ff('0x1c98')][_0x4c48ff('0xa70')]({'id':_0x18a930[_0x4c48ff('0x1c98')]['id']},_0x18a930[_0x4c48ff('0x1c98')])[_0x4c48ff('0xe59')][_0x4c48ff('0xe19')](function(_0xfd1f29){var _0x97682d=_0x4c48ff,_0xb1680b=_0x32d445()[_0x97682d('0xf15')](_0x18a930[_0x97682d('0x145e')],{'id':_0xfd1f29['id']});_0xb1680b&&_0x32d445()[_0x97682d('0x1d8')](_0xb1680b,_0x32d445()[_0x97682d('0xed5')](_0xfd1f29['toJSON'](),_0x32d445()['keys'](_0xb1680b))),_0x509f32[_0x97682d('0x425')]({'title':'Pause\x20properly\x20saved!','msg':_0x18a930[_0x97682d('0x1c98')][_0x97682d('0x2623')]?_0x18a930[_0x97682d('0x1c98')][_0x97682d('0x2623')]+_0x97682d('0x1c19'):''}),_0x5e968c(_0xfd1f29);})[_0x4c48ff('0x223b')](function(_0x3394b8){var _0x2d9a2b=_0x4c48ff;if(_0x3394b8[_0x2d9a2b('0x11d0')]&&_0x3394b8[_0x2d9a2b('0x11d0')]['errors']&&_0x3394b8[_0x2d9a2b('0x11d0')][_0x2d9a2b('0xcd2')][_0x2d9a2b('0x25ae')]){_0x18a930[_0x2d9a2b('0xcd2')]=_0x3394b8[_0x2d9a2b('0x11d0')][_0x2d9a2b('0xcd2')]||[{'message':_0x3394b8[_0x2d9a2b('0x94f')](),'type':_0x2d9a2b('0x1eca')}];for(var _0x3b253c=0x0;_0x3b253c<_0x3394b8[_0x2d9a2b('0x11d0')][_0x2d9a2b('0xcd2')][_0x2d9a2b('0x25ae')];_0x3b253c++){_0x509f32['error']({'title':_0x3394b8[_0x2d9a2b('0x11d0')][_0x2d9a2b('0xcd2')][_0x3b253c][_0x2d9a2b('0x62e')],'msg':_0x3394b8[_0x2d9a2b('0x11d0')][_0x2d9a2b('0xcd2')][_0x3b253c][_0x2d9a2b('0x27e8')]});}}else _0x509f32[_0x2d9a2b('0x8c8')]({'title':_0x3394b8[_0x2d9a2b('0x2833')]?_0x2d9a2b('0x27f2')+_0x3394b8[_0x2d9a2b('0x2833')]+_0x2d9a2b('0x1b7c')+_0x3394b8['statusText']:_0x2d9a2b('0x1eca'),'msg':_0x3394b8[_0x2d9a2b('0x11d0')]?JSON[_0x2d9a2b('0x3ad')](_0x3394b8[_0x2d9a2b('0x11d0')][_0x2d9a2b('0x27e8')]):_0x3394b8[_0x2d9a2b('0x94f')]()});});}function _0x104433(_0xa26dd7){var _0xedb7a1=_0x1ec350;_0x18a930[_0xedb7a1('0xcd2')]=[];var _0x4572a7=_0x3b3be9['confirm']()[_0xedb7a1('0x13e4')](_0xedb7a1('0x24d0'))[_0xedb7a1('0xd0')](_0xedb7a1('0xb21'))[_0xedb7a1('0x4d1')]('Delete\x20Pause')['ok']('Delete')[_0xedb7a1('0x2c1')](_0xedb7a1('0x8a3'))[_0xedb7a1('0x1345')](_0xa26dd7);_0x3b3be9[_0xedb7a1('0x26b2')](_0x4572a7)[_0xedb7a1('0xe19')](function(){var _0x2aac70=_0xedb7a1;_0x317a61[_0x2aac70('0x1c98')][_0x2aac70('0x229e')]({'id':_0x18a930[_0x2aac70('0x1c98')]['id']})[_0x2aac70('0xe59')][_0x2aac70('0xe19')](function(){var _0x1e85f9=_0x2aac70;_0x32d445()[_0x1e85f9('0xa8b')](_0x18a930['pauses'],{'id':_0x18a930[_0x1e85f9('0x1c98')]['id']}),_0x509f32[_0x1e85f9('0x425')]({'title':'Pause\x20properly\x20deleted!','msg':(_0x18a930[_0x1e85f9('0x1c98')][_0x1e85f9('0x2623')]||_0x1e85f9('0x1c98'))+_0x1e85f9('0x2182')}),_0x5e968c(_0x18a930[_0x1e85f9('0x1c98')]);})['catch'](function(_0x3f1f2f){var _0x285f60=_0x2aac70;if(_0x3f1f2f[_0x285f60('0x11d0')]&&_0x3f1f2f[_0x285f60('0x11d0')][_0x285f60('0xcd2')]&&_0x3f1f2f[_0x285f60('0x11d0')][_0x285f60('0xcd2')]['length']){_0x18a930['errors']=_0x3f1f2f[_0x285f60('0x11d0')]['errors']||[{'message':_0x3f1f2f[_0x285f60('0x94f')](),'type':_0x285f60('0xc33')}];for(var _0x2d02e6=0x0;_0x2d02e6<_0x3f1f2f[_0x285f60('0x11d0')][_0x285f60('0xcd2')][_0x285f60('0x25ae')];_0x2d02e6++){_0x509f32[_0x285f60('0x8c8')]({'title':_0x3f1f2f['data'][_0x285f60('0xcd2')][_0x2d02e6][_0x285f60('0x62e')],'msg':_0x3f1f2f[_0x285f60('0x11d0')][_0x285f60('0xcd2')][_0x2d02e6][_0x285f60('0x27e8')]});}}else _0x509f32[_0x285f60('0x8c8')]({'title':_0x3f1f2f[_0x285f60('0x2833')]?_0x285f60('0x27f2')+_0x3f1f2f[_0x285f60('0x2833')]+_0x285f60('0x1b7c')+_0x3f1f2f['statusText']:_0x285f60('0xc33'),'msg':_0x3f1f2f[_0x285f60('0x11d0')]?JSON[_0x285f60('0x3ad')](_0x3f1f2f[_0x285f60('0x11d0')][_0x285f60('0x27e8')]):_0x3f1f2f['message']||_0x3f1f2f['toString']()});});},function(){});}function _0x9b70cb(_0x66fbc6){return _0x66fbc6===null?undefined:new Date(_0x66fbc6);}function _0x5e968c(_0xf3e5fe){var _0x5a010b=_0x1ec350;_0x3b3be9[_0x5a010b('0x11ed')](_0xf3e5fe);}}const _0x4ab5ae=_0x27c9cf,_0x37cb36=_0x59426a['p']+_0xb635d2('0x2e9');_0x3da8f7['$inject']=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav','$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x145e'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x3da8f7(_0x3efa26,_0x17a1e5,_0x1650f0,_0x2e0565,_0xcacd20,_0xdb9f31,_0x33aef9,_0x44c1f4,_0x47ba1c,_0x5e05eb,_0x18fcfa,_0x3e829f,_0x462a6a,_0x1ff1ab,_0x4fc9dd,_0x3436c9,_0x51348a){var _0x2faf18=_0xb635d2,_0x350873=this;_0x350873[_0x2faf18('0x5c1')]=_0x3436c9,_0x350873[_0x2faf18('0x22f1')]=_0x51348a,_0x350873[_0x2faf18('0x15a5')]=_0x4fc9dd[_0x2faf18('0x1ef8')](),_0x350873[_0x2faf18('0x145e')]=_0x47ba1c||{'count':0x0,'rows':[]},_0x350873[_0x2faf18('0x154f')]=_0x5e05eb,_0x350873[_0x2faf18('0xb59')]=_0x18fcfa&&_0x18fcfa['count']==0x1?_0x18fcfa[_0x2faf18('0x16a7')][0x0]:null,_0x350873[_0x2faf18('0xb3d')]=_0x4fc9dd[_0x2faf18('0xd31')](_0x350873['userProfileSection']?_0x350873[_0x2faf18('0xb59')][_0x2faf18('0xb3d')]:null),_0x350873[_0x2faf18('0x19b6')]=_0x2faf18('0x145e'),_0x350873[_0x2faf18('0x14d6')]='',_0x350873[_0x2faf18('0x190c')]=null,_0x350873[_0x2faf18('0x602')]=[],_0x350873[_0x2faf18('0xa16')]={'fields':_0x2faf18('0x1666'),'sort':_0x2faf18('0x7e8'),'limit':0xa,'page':0x1},_0x350873[_0x2faf18('0x1752')]=_0x4b6876,_0x350873[_0x2faf18('0x1d9e')]=_0x28daf0,_0x350873[_0x2faf18('0x425')]=_0x20365a,_0x350873['getPauses']=_0xd747cc,_0x350873[_0x2faf18('0x3ee')]=_0x3b8db7,_0x350873[_0x2faf18('0xa2e')]=_0x1d3844,_0x350873[_0x2faf18('0x24a0')]=_0x15afb3,_0x350873['deleteSelectedPauses']=_0x5dcafe,_0x350873[_0x2faf18('0x41')]=_0x15ef25,_0x350873[_0x2faf18('0x8f5')]=_0x360676;function _0x4b6876(_0x3515b8,_0x403306){var _0x8b44b6=_0x2faf18;_0xcacd20[_0x8b44b6('0x26b2')]({'controller':_0x8b44b6('0x1156'),'controllerAs':'vm','templateUrl':_0x37cb36,'parent':angular[_0x8b44b6('0x24a1')](_0xdb9f31[_0x8b44b6('0x19b2')]),'targetEvent':_0x403306,'clickOutsideToClose':!![],'locals':{'pause':_0x3515b8,'pauses':_0x350873[_0x8b44b6('0x145e')]['rows'],'license':_0x350873[_0x8b44b6('0x5c1')],'setting':null,'crudPermissions':_0x350873['crudPermissions']}});}function _0x28daf0(_0x412f24,_0x153997){var _0x4de192=_0x2faf18,_0x38bed0=_0xcacd20[_0x4de192('0xa5')]()[_0x4de192('0x13e4')](_0x4de192('0x346')+_0x32d445()['startCase'](_0x4de192('0x1c98'))+'?')[_0x4de192('0x221c')](''+(_0x412f24[_0x4de192('0x2623')]||_0x4de192('0x1c98'))+''+_0x4de192('0x21bd'))[_0x4de192('0x4d1')](_0x4de192('0x2039'))[_0x4de192('0x1345')](_0x153997)['ok']('OK')[_0x4de192('0x2c1')](_0x4de192('0x17'));_0xcacd20[_0x4de192('0x26b2')](_0x38bed0)[_0x4de192('0xe19')](function(){_0x1d3844(_0x412f24);},function(){var _0xe8cb2c=_0x4de192;console[_0xe8cb2c('0x1fe9')](_0xe8cb2c('0x17'));});}var _0x776ad5=!![],_0x33aed5=0x1;_0x3efa26['$watch'](_0x2faf18('0x20cb'),function(_0x17b6b9,_0x3e66c4){var _0x40187b=_0x2faf18;_0x776ad5?_0x33aef9(function(){_0x776ad5=![];}):(!_0x3e66c4&&(_0x33aed5=_0x350873[_0x40187b('0xa16')]['page']),_0x17b6b9!==_0x3e66c4&&(_0x350873[_0x40187b('0xa16')][_0x40187b('0xc08')]=0x1),!_0x17b6b9&&(_0x350873['query'][_0x40187b('0xc08')]=_0x33aed5),_0x350873[_0x40187b('0x13c3')]());});function _0x20365a(_0x8fa766){var _0x1dd733=_0x2faf18;_0x350873[_0x1dd733('0x145e')]=_0x8fa766||{'count':0x0,'rows':[]};}function _0xd747cc(){var _0x44da7f=_0x2faf18;_0x350873[_0x44da7f('0xa16')][_0x44da7f('0xab0')]=(_0x350873[_0x44da7f('0xa16')][_0x44da7f('0xc08')]-0x1)*_0x350873[_0x44da7f('0xa16')][_0x44da7f('0x1b6d')],_0x4fc9dd[_0x44da7f('0x179e')]('admin')?_0x350873['promise']=_0x3e829f[_0x44da7f('0x1c98')][_0x44da7f('0x22d5')](_0x350873['query'],_0x20365a)['$promise']:(_0x350873['query']['id']=_0x350873[_0x44da7f('0x154f')]['id'],_0x350873['query'][_0x44da7f('0x1e59')]='Pauses',_0x350873['promise']=_0x3e829f[_0x44da7f('0x154f')]['getResources'](_0x350873[_0x44da7f('0xa16')],_0x20365a)['$promise']);}function _0x3b8db7(_0x152da6,_0x269d11){var _0x4224b1=_0x2faf18;_0xcacd20[_0x4224b1('0x26b2')]({'controller':_0x4224b1('0x1156'),'controllerAs':'vm','templateUrl':_0x37cb36,'parent':angular['element'](_0xdb9f31[_0x4224b1('0x19b2')]),'targetEvent':_0x152da6,'clickOutsideToClose':!![],'locals':{'pause':_0x269d11,'pauses':_0x350873['pauses'][_0x4224b1('0x16a7')],'license':_0x350873['license'],'setting':_0x350873[_0x4224b1('0x22f1')],'crudPermissions':_0x350873[_0x4224b1('0xb3d')]}});}function _0x1d3844(_0x779852){var _0x3a4492=_0x2faf18;_0x3e829f[_0x3a4492('0x1c98')][_0x3a4492('0x229e')]({'id':_0x779852['id']})[_0x3a4492('0xe59')]['then'](function(){var _0x1f2048=_0x3a4492;_0x32d445()[_0x1f2048('0xa8b')](_0x350873[_0x1f2048('0x145e')][_0x1f2048('0x16a7')],{'id':_0x779852['id']}),_0x350873[_0x1f2048('0x145e')][_0x1f2048('0x148b')]-=0x1,!_0x350873[_0x1f2048('0x145e')][_0x1f2048('0x16a7')][_0x1f2048('0x25ae')]&&_0x350873['getPauses'](),_0x1ff1ab['success']({'title':_0x32d445()['startCase'](_0x1f2048('0x27b9'))+_0x1f2048('0x1219'),'msg':_0x779852['name']?_0x779852[_0x1f2048('0x2623')]+_0x1f2048('0x2182'):''});})[_0x3a4492('0x223b')](function(_0x116cf8){var _0x553c00=_0x3a4492;if(_0x116cf8['data']&&_0x116cf8['data'][_0x553c00('0xcd2')]&&_0x116cf8['data']['errors'][_0x553c00('0x25ae')]){_0x350873['errors']=_0x116cf8[_0x553c00('0x11d0')][_0x553c00('0xcd2')]||[{'message':_0x116cf8[_0x553c00('0x94f')](),'type':_0x553c00('0x1833')}];for(var _0x2171dc=0x0;_0x2171dc<_0x116cf8['data']['errors'][_0x553c00('0x25ae')];_0x2171dc++){_0x1ff1ab[_0x553c00('0x8c8')]({'title':_0x116cf8[_0x553c00('0x11d0')][_0x553c00('0xcd2')][_0x2171dc][_0x553c00('0x62e')],'msg':_0x116cf8[_0x553c00('0x11d0')][_0x553c00('0xcd2')][_0x2171dc][_0x553c00('0x27e8')]});}}else _0x1ff1ab[_0x553c00('0x8c8')]({'title':_0x116cf8[_0x553c00('0x2833')]?_0x553c00('0x27f2')+_0x116cf8[_0x553c00('0x2833')]+_0x553c00('0x1b7c')+_0x116cf8['statusText']:_0x553c00('0x1833'),'msg':_0x116cf8[_0x553c00('0x11d0')]?JSON[_0x553c00('0x3ad')](_0x116cf8['data'][_0x553c00('0x27e8')]):_0x116cf8['message']||_0x116cf8[_0x553c00('0x94f')]()});});}function _0x15afb3(){var _0x5f1466=_0x2faf18,_0x16d3de=angular[_0x5f1466('0x89')](_0x350873[_0x5f1466('0x602')]);return _0x350873[_0x5f1466('0x602')]=[],_0x16d3de;}function _0x5dcafe(_0x491510){var _0x24a0dd=_0x2faf18,_0x4ff048=_0xcacd20[_0x24a0dd('0xa5')]()[_0x24a0dd('0x13e4')](_0x24a0dd('0x141c'))['htmlContent'](_0x24a0dd('0xab2')+_0x350873['selectedPauses'][_0x24a0dd('0x25ae')]+'\x20selected'+_0x24a0dd('0x21bd'))[_0x24a0dd('0x4d1')](_0x24a0dd('0xea4'))['targetEvent'](_0x491510)['ok']('OK')[_0x24a0dd('0x2c1')](_0x24a0dd('0x17'));_0xcacd20[_0x24a0dd('0x26b2')](_0x4ff048)['then'](function(){var _0x542294=_0x24a0dd;_0x350873[_0x542294('0x602')][_0x542294('0x1d7e')](function(_0x448c89){_0x1d3844(_0x448c89);}),_0x350873[_0x542294('0x602')]=[];});}function _0x15ef25(){var _0x49d02a=_0x2faf18;_0x350873[_0x49d02a('0x602')]=[];}function _0x360676(){var _0xdf2bec=_0x2faf18;_0x350873[_0xdf2bec('0x602')]=_0x350873[_0xdf2bec('0x145e')]['rows'];}}const _0x38a34b=_0x3da8f7,_0x5c9519=_0x59426a['p']+_0xb635d2('0x155f');_0x13c11b[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x271'),'schedule',_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x13c11b(_0x5124dc,_0xccada5,_0x2c6036,_0x4b29fe,_0x57efbd,_0x19f631,_0x783018,_0x569307,_0x31146f,_0x5ab1df,_0x1ce764,_0x49627a,_0x16614f,_0x37aa79){var _0x1fd0cb=_0xb635d2,_0x1c228f=this;_0x1c228f[_0x1fd0cb('0x15a5')]=_0x1ce764[_0x1fd0cb('0x1ef8')](),_0x1c228f[_0x1fd0cb('0xcd2')]=[],_0x1c228f[_0x1fd0cb('0x22f1')]=_0x16614f,_0x1c228f[_0x1fd0cb('0x5c1')]=_0x49627a,_0x1c228f[_0x1fd0cb('0xb3d')]=_0x37aa79,_0x1c228f[_0x1fd0cb('0x1ccb')]={},_0x1c228f[_0x1fd0cb('0x25ac')]=_0x1c228f[_0x1fd0cb('0x22f1')]&&_0x1c228f[_0x1fd0cb('0x22f1')][_0x1fd0cb('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c228f[_0x1fd0cb('0x13e4')]=_0x1fd0cb('0x6d4'),_0x1c228f['schedule']=angular['copy'](_0x31146f),_0x1c228f['schedules']=_0x569307,_0x1c228f[_0x1fd0cb('0x22a')]=![],_0x1c228f[_0x1fd0cb('0x2346')]=[],_0x1c228f[_0x1fd0cb('0xa16')]={'fields':_0x1fd0cb('0x23a5'),'limit':0xa,'page':0x1,'sort':'-updatedAt'};if(!_0x1c228f[_0x1fd0cb('0x20bc')])_0x1c228f['schedule']={'output':_0x1fd0cb('0xdf7'),'active':!![],'startAt':new Date(),'endAt':new Date(Date[_0x1fd0cb('0x26f2')]()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0x1fd0cb('0xa8'),'subtractNumber':0x1,'subtractUnit':_0x1fd0cb('0x1b05'),'sendMail':![],'sendIfEmpty':!![]},_0x1c228f[_0x1fd0cb('0x13e4')]=_0x1fd0cb('0x28b0'),_0x1c228f['newSchedule']=!![];else{_0x1c228f['apiName']=_0x1c228f['schedule'][_0x1fd0cb('0x94')]?_0x1fd0cb('0x1092'):_0x1fd0cb('0x247b');var _0x275e0b=_0x1c228f[_0x1fd0cb('0x20bc')][_0x1fd0cb('0x94')]?_0x1c228f[_0x1fd0cb('0x20bc')][_0x1fd0cb('0x94')]:_0x1c228f[_0x1fd0cb('0x20bc')][_0x1fd0cb('0xecf')];_0x5ab1df[_0x1c228f['apiName']][_0x1fd0cb('0x22d5')]({'fields':_0x1fd0cb('0xb72')})[_0x1fd0cb('0xe59')][_0x1fd0cb('0xe19')](function(_0x248113){var _0x4faba1=_0x1fd0cb;_0x1c228f[_0x4faba1('0xa3f')]=_0x32d445()['find'](_0x248113[_0x4faba1('0x16a7')],{'id':_0x275e0b}),_0x1c228f[_0x4faba1('0x20bc')][_0x4faba1('0x372')]=_0x1c228f[_0x4faba1('0xa3f')]['name'],_0x1c228f[_0x4faba1('0xa16')][_0x4faba1('0x4ec')]=_0x1c228f[_0x4faba1('0xa3f')]['parent'];});}_0x1c228f['addNewSchedule']=_0x3bd390,_0x1c228f[_0x1fd0cb('0xc23')]=_0x246188,_0x1c228f[_0x1fd0cb('0x1d8b')]=_0x185186,_0x1c228f['getDateFromString']=_0x16836a,_0x1c228f[_0x1fd0cb('0x1c55')]=_0x161c32,_0x1c228f['selectReport']=_0x1d295f,_0x1c228f['closeReportDialog']=_0x1c0b84,_0x1c228f[_0x1fd0cb('0x221a')]=_0x4112cc,_0x1c228f['closeDialog']=_0x45799e,_0x5ab1df[_0x1fd0cb('0x188a')][_0x1fd0cb('0x22d5')]({})[_0x1fd0cb('0xe59')][_0x1fd0cb('0xe19')](function(_0x1a87dc){var _0x28e93d=_0x1fd0cb;_0x1c228f[_0x28e93d('0xe9b')]=_0x1a87dc[_0x28e93d('0x16a7')]||[];})['catch'](function(_0x7de5c7){var _0x102533=_0x1fd0cb;_0x783018['error']({'title':_0x7de5c7[_0x102533('0x2833')]?_0x102533('0x27f2')+_0x7de5c7[_0x102533('0x2833')]+_0x102533('0x1b7c')+_0x7de5c7[_0x102533('0x1fd7')]:_0x102533('0x1f7d'),'msg':_0x7de5c7[_0x102533('0x11d0')]?JSON[_0x102533('0x3ad')](_0x7de5c7[_0x102533('0x11d0')]):_0x7de5c7[_0x102533('0x94f')]()});}),_0x1ce764[_0x1fd0cb('0x179e')]('admin')?_0x5ab1df[_0x1fd0cb('0x17f0')]['get']({'fields':_0x1fd0cb('0x104'),'sort':'name'})[_0x1fd0cb('0xe59')][_0x1fd0cb('0xe19')](function(_0x170bd9){var _0x3df54b=_0x1fd0cb;_0x1c228f[_0x3df54b('0x248b')]=_0x170bd9['rows']||[];})[_0x1fd0cb('0x223b')](function(_0x1f9683){var _0x523603=_0x1fd0cb;_0x783018[_0x523603('0x8c8')]({'title':_0x1f9683['status']?'API:'+_0x1f9683['status']+'\x20-\x20'+_0x1f9683[_0x523603('0x1fd7')]:_0x523603('0x18f4'),'msg':_0x1f9683['data']?JSON['stringify'](_0x1f9683[_0x523603('0x11d0')]):_0x1f9683[_0x523603('0x94f')]()});}):_0x5ab1df[_0x1fd0cb('0x17f0')]['get']({'fields':_0x1fd0cb('0x104'),'sort':_0x1fd0cb('0x2623')})['$promise'][_0x1fd0cb('0xe19')](function(_0x529517){var _0x1c577b=_0x1fd0cb;_0x1c228f[_0x1c577b('0x248b')]=_0x529517['rows']||[];})[_0x1fd0cb('0xe19')](function(){var _0x538c7a=_0x1fd0cb;return _0x5ab1df[_0x538c7a('0xb59')][_0x538c7a('0x22d5')]({'userProfileId':_0x1c228f[_0x538c7a('0x15a5')][_0x538c7a('0x1d04')],'sectionId':0x25a})[_0x538c7a('0xe59')];})[_0x1fd0cb('0xe19')](function(_0x15b132){var _0x49854f=_0x1fd0cb,_0x7ceb02=_0x15b132&&_0x15b132[_0x49854f('0x16a7')]?_0x15b132[_0x49854f('0x16a7')][0x0]:null;if(!_0x7ceb02){var _0x3c5d23=[],_0x1f7ccf=null;_0x1c228f[_0x49854f('0x20bc')]&&(_0x1f7ccf=_0x32d445()[_0x49854f('0xf15')](_0x1c228f[_0x49854f('0x248b')],{'id':Number(_0x1c228f[_0x49854f('0x20bc')][_0x49854f('0xa20')])}));for(var _0x478b95=0x0;_0x478b95<_0x1c228f[_0x49854f('0x248b')]['length'];_0x478b95++){_0x1f7ccf&&_0x1c228f['mailAccounts'][_0x478b95]['id']===_0x1f7ccf['id']&&(_0x1c228f[_0x49854f('0x248b')][_0x478b95]['canSelect']=![],_0x3c5d23[_0x49854f('0xb76')](_0x1c228f[_0x49854f('0x248b')][_0x478b95]));}_0x1c228f['mailAccounts']=_0x3c5d23;}else{if(!_0x7ceb02[_0x49854f('0x11fd')])return _0x5ab1df['userProfileResource'][_0x49854f('0x22d5')]({'sectionId':_0x7ceb02['id']})[_0x49854f('0xe59')][_0x49854f('0xe19')](function(_0x53ff02){var _0x29a324=_0x49854f,_0x300b42=_0x32d445()['map'](_0x53ff02[_0x29a324('0x16a7')],function(_0x3212a7){var _0x546a35=_0x29a324;return _0x32d445()[_0x546a35('0xf15')](_0x1c228f[_0x546a35('0x248b')],{'id':_0x3212a7[_0x546a35('0x1104')]});}),_0xb1564a=null;_0x1c228f[_0x29a324('0x20bc')]&&(_0xb1564a=_0x32d445()['find'](_0x1c228f[_0x29a324('0x248b')],{'id':Number(_0x1c228f[_0x29a324('0x20bc')]['MailAccountId'])}));if(_0xb1564a&&!_0x32d445()[_0x29a324('0x201a')](_0x300b42,['id',_0xb1564a['id']])){var _0x5b9396=_0x32d445()[_0x29a324('0xf15')](_0x1c228f[_0x29a324('0x248b')],{'id':_0xb1564a['id']});_0x5b9396[_0x29a324('0x1e9d')]=![],_0x300b42['push'](_0x5b9396);}_0x1c228f[_0x29a324('0x248b')]=_0x300b42;});}})[_0x1fd0cb('0x223b')](function(_0x1d924f){var _0x622573=_0x1fd0cb;_0x783018[_0x622573('0x8c8')]({'title':_0x1d924f[_0x622573('0x2833')]?_0x622573('0x27f2')+_0x1d924f['status']+'\x20-\x20'+_0x1d924f[_0x622573('0x1fd7')]:'SYSTEM:GETmailAccounts','msg':_0x1d924f['data']?JSON[_0x622573('0x3ad')](_0x1d924f['data']):_0x1d924f[_0x622573('0x94f')]()});});function _0x3bd390(){var _0x593eb5=_0x1fd0cb;_0x1c228f[_0x593eb5('0xcd2')]=[],_0x5ab1df[_0x593eb5('0x20bc')]['save'](_0x1c228f[_0x593eb5('0x20bc')])[_0x593eb5('0xe59')][_0x593eb5('0xe19')](function(_0xf9e5cc){var _0x4c273e=_0x593eb5;_0x1c228f[_0x4c273e('0x271')][_0x4c273e('0x14c9')](_0xf9e5cc[_0x4c273e('0x250e')]()),_0x783018[_0x4c273e('0x425')]({'title':_0x4c273e('0x28ac'),'msg':_0x1c228f['schedule'][_0x4c273e('0x2623')]?_0x1c228f['schedule'][_0x4c273e('0x2623')]+_0x4c273e('0x105f'):''}),_0x45799e(_0xf9e5cc);})['catch'](function(_0x2bf9e9){var _0x240821=_0x593eb5;if(_0x2bf9e9[_0x240821('0x11d0')]&&_0x2bf9e9[_0x240821('0x11d0')][_0x240821('0xcd2')]&&_0x2bf9e9[_0x240821('0x11d0')][_0x240821('0xcd2')][_0x240821('0x25ae')]){_0x1c228f[_0x240821('0xcd2')]=_0x2bf9e9[_0x240821('0x11d0')][_0x240821('0xcd2')]||[{'message':_0x2bf9e9[_0x240821('0x94f')](),'type':'api.schedule.save'}];for(var _0x1eaacb=0x0;_0x1eaacb<_0x2bf9e9[_0x240821('0x11d0')]['errors'][_0x240821('0x25ae')];_0x1eaacb+=0x1){_0x783018[_0x240821('0x8c8')]({'title':_0x2bf9e9[_0x240821('0x11d0')][_0x240821('0xcd2')][_0x1eaacb][_0x240821('0x62e')],'msg':_0x2bf9e9[_0x240821('0x11d0')][_0x240821('0xcd2')][_0x1eaacb][_0x240821('0x27e8')]});}}else _0x783018[_0x240821('0x8c8')]({'title':_0x2bf9e9[_0x240821('0x2833')]?_0x240821('0x27f2')+_0x2bf9e9[_0x240821('0x2833')]+_0x240821('0x1b7c')+_0x2bf9e9['statusText']:_0x240821('0x48b'),'msg':_0x2bf9e9['data']?JSON[_0x240821('0x3ad')](_0x2bf9e9[_0x240821('0x11d0')]['message']):_0x2bf9e9[_0x240821('0x94f')]()});});}function _0x246188(){var _0x3d7f5f=_0x1fd0cb;_0x1c228f[_0x3d7f5f('0xcd2')]=[],_0x5ab1df['schedule'][_0x3d7f5f('0xa70')]({'id':_0x1c228f[_0x3d7f5f('0x20bc')]['id']},_0x1c228f['schedule'])[_0x3d7f5f('0xe59')][_0x3d7f5f('0xe19')](function(_0xce7046){var _0xd6d816=_0x3d7f5f,_0x425159=_0x32d445()[_0xd6d816('0xf15')](_0x1c228f[_0xd6d816('0x271')],{'id':_0xce7046['id']});_0x425159&&_0x32d445()['merge'](_0x425159,_0x32d445()['pick'](_0xce7046[_0xd6d816('0x250e')](),_0x32d445()['keys'](_0x425159))),_0x783018[_0xd6d816('0x425')]({'title':'Schedule\x20properly\x20saved!','msg':_0x1c228f[_0xd6d816('0x20bc')][_0xd6d816('0x2623')]?_0x1c228f['schedule'][_0xd6d816('0x2623')]+_0xd6d816('0x1c19'):''}),_0x45799e(_0xce7046);})[_0x3d7f5f('0x223b')](function(_0x3a617f){var _0x596335=_0x3d7f5f;if(_0x3a617f[_0x596335('0x11d0')]&&_0x3a617f[_0x596335('0x11d0')]['errors']&&_0x3a617f[_0x596335('0x11d0')][_0x596335('0xcd2')][_0x596335('0x25ae')]){_0x1c228f[_0x596335('0xcd2')]=_0x3a617f['data'][_0x596335('0xcd2')]||[{'message':_0x3a617f['toString'](),'type':'api.schedule.update'}];for(var _0x22e03b=0x0;_0x22e03b<_0x3a617f[_0x596335('0x11d0')][_0x596335('0xcd2')]['length'];_0x22e03b++){_0x783018[_0x596335('0x8c8')]({'title':_0x3a617f[_0x596335('0x11d0')][_0x596335('0xcd2')][_0x22e03b]['type'],'msg':_0x3a617f[_0x596335('0x11d0')][_0x596335('0xcd2')][_0x22e03b][_0x596335('0x27e8')]});}}else _0x783018['error']({'title':_0x3a617f[_0x596335('0x2833')]?_0x596335('0x27f2')+_0x3a617f[_0x596335('0x2833')]+'\x20-\x20'+_0x3a617f['statusText']:_0x596335('0x27d9'),'msg':_0x3a617f[_0x596335('0x11d0')]?JSON[_0x596335('0x3ad')](_0x3a617f[_0x596335('0x11d0')][_0x596335('0x27e8')]):_0x3a617f[_0x596335('0x94f')]()});});}function _0x185186(_0x1be51d){var _0xb473a3=_0x1fd0cb;_0x1c228f['errors']=[];var _0x3f957c=_0x4b29fe['confirm']()['title'](_0xb473a3('0x24d0'))[_0xb473a3('0xd0')](_0xb473a3('0x2279'))[_0xb473a3('0x4d1')](_0xb473a3('0xe2f'))['ok'](_0xb473a3('0x2198'))['cancel'](_0xb473a3('0x8a3'))[_0xb473a3('0x1345')](_0x1be51d);_0x4b29fe[_0xb473a3('0x26b2')](_0x3f957c)['then'](function(){var _0x5e74c7=_0xb473a3;_0x5ab1df[_0x5e74c7('0x20bc')]['delete']({'id':_0x1c228f[_0x5e74c7('0x20bc')]['id']})['$promise'][_0x5e74c7('0xe19')](function(){var _0x1cd395=_0x5e74c7;_0x32d445()[_0x1cd395('0xa8b')](_0x1c228f[_0x1cd395('0x271')],{'id':_0x1c228f[_0x1cd395('0x20bc')]['id']}),_0x783018[_0x1cd395('0x425')]({'title':'Schedule\x20properly\x20deleted!','msg':(_0x1c228f[_0x1cd395('0x20bc')]['name']||'schedule')+_0x1cd395('0x2182')}),_0x45799e(_0x1c228f['schedule']);})['catch'](function(_0x15f13c){var _0x167d84=_0x5e74c7;if(_0x15f13c['data']&&_0x15f13c[_0x167d84('0x11d0')][_0x167d84('0xcd2')]&&_0x15f13c[_0x167d84('0x11d0')][_0x167d84('0xcd2')][_0x167d84('0x25ae')]){_0x1c228f[_0x167d84('0xcd2')]=_0x15f13c[_0x167d84('0x11d0')]['errors']||[{'message':_0x15f13c[_0x167d84('0x94f')](),'type':'api.schedule.delete'}];for(var _0x575d65=0x0;_0x575d65<_0x15f13c[_0x167d84('0x11d0')]['errors']['length'];_0x575d65++){_0x783018[_0x167d84('0x8c8')]({'title':_0x15f13c[_0x167d84('0x11d0')][_0x167d84('0xcd2')][_0x575d65]['type'],'msg':_0x15f13c[_0x167d84('0x11d0')][_0x167d84('0xcd2')][_0x575d65][_0x167d84('0x27e8')]});}}else _0x783018['error']({'title':_0x15f13c[_0x167d84('0x2833')]?_0x167d84('0x27f2')+_0x15f13c['status']+'\x20-\x20'+_0x15f13c['statusText']:'api.schedule.delete','msg':_0x15f13c[_0x167d84('0x11d0')]?JSON[_0x167d84('0x3ad')](_0x15f13c['data']['message']):_0x15f13c['message']||_0x15f13c['toString']()});});},function(){});}function _0x2c0df4(){var _0xf6641d=_0x1fd0cb,_0x57e6ed={'core':{'multiple':![],'animation':!![],'error':function _0x31751(_0x107285){var _0x54d937=a0_0x5325;console[_0x54d937('0x8c8')](_0x54d937('0x1f9e')+angular[_0x54d937('0x1a33')](_0x107285));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0xf6641d('0x25c1')]};return _0x1c228f[_0xf6641d('0x15a5')][_0xf6641d('0xcd9')]!==_0xf6641d('0xd14')?_0x5ab1df['userProfileSection'][_0xf6641d('0x22d5')]({'fields':_0xf6641d('0x12d6'),'userProfileId':_0x1c228f['currentUser'][_0xf6641d('0x1d04')],'sectionId':0x4b3})[_0xf6641d('0xe59')][_0xf6641d('0xe19')](function(_0x346cef){var _0x203b6f=_0xf6641d;return _0x1c228f['userProfileSection']=_0x346cef&&_0x346cef[_0x203b6f('0x148b')]==0x1?_0x346cef[_0x203b6f('0x16a7')][0x0]:null,_0x57e6ed;})['catch'](function(_0x394d2f){var _0x3fd2e0=_0xf6641d;_0x783018[_0x3fd2e0('0x8c8')]({'title':_0x3fd2e0('0x71e'),'msg':_0x394d2f['message']});}):_0x57e6ed;}function _0x3d3f0b(_0x2e0bd0){return _0x2e0bd0?{'loaded':_0x11af2e,'select_node':_0x117f06}:{'loaded':_0x1b53c0,'select_node':_0x4abcb6};}function _0x117f06(_0x25a3d8,_0x48f870){var _0x57b6ac=_0x1fd0cb;_0x1c228f[_0x57b6ac('0x2686')][_0x57b6ac('0xfe')](!![])['deselect_all'](),_0x1c228f[_0x57b6ac('0x2686')][_0x57b6ac('0xfe')](!![])['close_all'](),_0x1c228f[_0x57b6ac('0x1367')]=_0x48f870['node'],_0x1c228f['currentNode'][_0x57b6ac('0x261d')]=!![],_0x1c228f[_0x57b6ac('0xc2c')]=_0x1c228f['treeCustomInstance']['jstree'](!![])[_0x57b6ac('0xa09')](_0x1c228f[_0x57b6ac('0x1367')])[_0x57b6ac('0x1537')]('/\x20'),_0x1c228f[_0x57b6ac('0x16a')]='analyticCustomReport',_0x1c228f['query'][_0x57b6ac('0x4ec')]=_0x48f870[_0x57b6ac('0x1a8f')]['id'],_0x161c32();}function _0x4abcb6(_0x2a60a5,_0x5658ed){var _0x401346=_0x1fd0cb;_0x1c228f[_0x401346('0x14b1')]['jstree'](!![])[_0x401346('0x1633')](),_0x1c228f[_0x401346('0x14b1')][_0x401346('0xfe')](!![])[_0x401346('0x1577')](),_0x1c228f[_0x401346('0x1367')]=_0x5658ed[_0x401346('0x1a8f')],_0x1c228f[_0x401346('0x1367')][_0x401346('0x261d')]=![],_0x1c228f[_0x401346('0xc2c')]=_0x1c228f[_0x401346('0x2686')]['jstree'](!![])['get_path'](_0x1c228f[_0x401346('0x1367')])[_0x401346('0x1537')]('/\x20'),_0x1c228f[_0x401346('0x16a')]=_0x401346('0x1092'),_0x1c228f[_0x401346('0xa16')][_0x401346('0x4ec')]=_0x5658ed[_0x401346('0x1a8f')]['id'],_0x161c32();}function _0x11af2e(){var _0x361ff8=_0x1fd0cb;if(!_0x1c228f[_0x361ff8('0x22a')]&&_0x1c228f[_0x361ff8('0x16a')]===_0x361ff8('0x247b')){var _0x4cf643=_0x1c228f[_0x361ff8('0x14b1')][_0x361ff8('0xfe')](!![])[_0x361ff8('0x278')](_0x1c228f[_0x361ff8('0xa16')][_0x361ff8('0x4ec')]);_0x117f06(null,{'node':_0x4cf643,'selected':_0x4cf643['id']});}}function _0x1b53c0(){var _0x5c2036=_0x1fd0cb;if(!_0x1c228f[_0x5c2036('0x22a')]&&_0x1c228f[_0x5c2036('0x16a')]===_0x5c2036('0x1092')){var _0x257277=_0x1c228f[_0x5c2036('0x2686')][_0x5c2036('0xfe')](!![])[_0x5c2036('0x278')](_0x1c228f['query']['parent']);_0x4abcb6(null,{'node':_0x257277,'selected':_0x257277['id']});}}function _0x161c32(){var _0x1ce837=_0x1fd0cb;_0x1c228f[_0x1ce837('0xa16')][_0x1ce837('0xab0')]=(_0x1c228f[_0x1ce837('0xa16')][_0x1ce837('0xc08')]-0x1)*_0x1c228f[_0x1ce837('0xa16')][_0x1ce837('0x1b6d')];if(_0x1c228f[_0x1ce837('0x16a')]){if(_0x1c228f[_0x1ce837('0x15a5')][_0x1ce837('0xcd9')]===_0x1ce837('0xd14'))_0x1c228f[_0x1ce837('0x9c8')]=_0x5ab1df[_0x1c228f[_0x1ce837('0x16a')]][_0x1ce837('0x22d5')](_0x1c228f[_0x1ce837('0xa16')],_0x3027dc)[_0x1ce837('0xe59')];else{if(!_0x1c228f['userProfileSection'])return _0x3027dc(null);else{if(_0x1c228f[_0x1ce837('0xb59')][_0x1ce837('0x11fd')])_0x1c228f[_0x1ce837('0x9c8')]=_0x5ab1df[_0x1c228f['apiName']][_0x1ce837('0x22d5')](_0x1c228f[_0x1ce837('0xa16')],_0x3027dc)[_0x1ce837('0xe59')];else{var _0x566a63=[];_0x1c228f['promise']=_0x5ab1df[_0x1c228f[_0x1ce837('0x16a')]][_0x1ce837('0x22d5')](_0x1c228f[_0x1ce837('0xa16')])[_0x1ce837('0xe59')][_0x1ce837('0xe19')](function(_0x16115f){var _0x55d722=_0x1ce837;return _0x566a63=_0x16115f&&_0x16115f[_0x55d722('0x16a7')]?_0x16115f[_0x55d722('0x16a7')]:[],_0x566a63[_0x55d722('0x25ae')]>0x0?_0x5ab1df['userProfileResource'][_0x55d722('0x22d5')]({'sectionId':_0x1c228f[_0x55d722('0xb59')]['id'],'type':_0x1c228f[_0x55d722('0x16a')]===_0x55d722('0x1092')?'DefaultReports':'CustomReports'})[_0x55d722('0xe59')][_0x55d722('0xe19')](function(_0x34b52a){var _0x9b2dac=_0x55d722,_0x5bb330=_0x34b52a&&_0x34b52a['rows']?_0x34b52a[_0x9b2dac('0x16a7')]:[];if(_0x5bb330[_0x9b2dac('0x25ae')]>0x0){var _0x5b9535=[];return _0x566a63[_0x9b2dac('0x1d7e')](function(_0x3dfed7){var _0x4886ca=_0x9b2dac,_0x195412=_0x32d445()['find'](_0x5bb330,[_0x4886ca('0x1104'),_0x3dfed7['id']]);if(_0x195412)_0x5b9535[_0x4886ca('0xb76')](_0x3dfed7);}),_0x3027dc({'count':_0x5b9535[_0x9b2dac('0x25ae')],'rows':_0x5b9535});}else return _0x3027dc(null);}):_0x3027dc(null);})['catch'](function(_0xcf8f32){var _0x56f83f=_0x1ce837;_0x783018[_0x56f83f('0x8c8')]({'title':_0xcf8f32[_0x56f83f('0x2833')]?_0x56f83f('0x27f2')+_0xcf8f32[_0x56f83f('0x2833')]+_0x56f83f('0x1b7c')+_0xcf8f32[_0x56f83f('0x1fd7')]:_0x56f83f('0x64'),'msg':_0xcf8f32[_0x56f83f('0x11d0')]?JSON[_0x56f83f('0x3ad')](_0xcf8f32[_0x56f83f('0x11d0')]):_0xcf8f32[_0x56f83f('0x94f')]()});});}}}}}function _0x3027dc(_0x5558d1){var _0x1c0c82=_0x1fd0cb;_0x1c228f[_0x1c0c82('0x1b65')]=_0x5558d1||{'count':0x0,'rows':[]},!_0x1c228f[_0x1c0c82('0x22a')]&&_0x1c228f[_0x1c0c82('0x2346')]['push'](_0x32d445()['find'](_0x1c228f['reports']['rows'],{'id':_0x1c228f[_0x1c0c82('0xa3f')]['id']}));}function _0x4112cc(){var _0x3e7ce8=_0x1fd0cb;_0x1c228f['treeDefaultData']=_0x1c228f[_0x3e7ce8('0xe9b')][0x0]?angular[_0x3e7ce8('0x56')](_0x1c228f[_0x3e7ce8('0xe9b')][0x0][_0x3e7ce8('0xd03')]):[],_0x1c228f[_0x3e7ce8('0xa17')]=_0x1c228f[_0x3e7ce8('0xe9b')][0x1]?angular[_0x3e7ce8('0x56')](_0x1c228f[_0x3e7ce8('0xe9b')][0x1][_0x3e7ce8('0xd03')]):[],_0x1c228f[_0x3e7ce8('0x160d')]=_0x2c0df4(),_0x1c228f[_0x3e7ce8('0x1d5')]=_0x3d3f0b(![]),_0x1c228f['treeCustomEvents']=_0x3d3f0b(!![]),_0x4b29fe[_0x3e7ce8('0x26b2')]({'controller':function _0x35421d(){return _0x1c228f;},'controllerAs':'vm','templateUrl':_0x5c9519,'autoWrap':!![],'skipHide':!![]});}function _0x1d295f(){var _0x439ac0=_0x1fd0cb;_0x1c228f[_0x439ac0('0x20bc')][_0x439ac0('0x372')]=_0x1c228f[_0x439ac0('0x2346')][0x0]['name'],_0x1c228f[_0x439ac0('0x1367')][_0x439ac0('0x261d')]?(_0x1c228f['schedule'][_0x439ac0('0xecf')]=_0x1c228f['selectedReport'][0x0]['id'],delete _0x1c228f[_0x439ac0('0x20bc')]['DefaultReportId']):(_0x1c228f[_0x439ac0('0x20bc')]['DefaultReportId']=_0x1c228f[_0x439ac0('0x2346')][0x0]['id'],delete _0x1c228f['schedule'][_0x439ac0('0xecf')]),_0x5124dc[_0x439ac0('0x1b70')][_0x439ac0('0x372')][_0x439ac0('0x27c3')](),_0x4b29fe[_0x439ac0('0x11ed')]();}function _0x1c0b84(){var _0x3722d1=_0x1fd0cb;_0x4b29fe[_0x3722d1('0x11ed')]();}function _0x16836a(_0x3a362a){return _0x3a362a===null?undefined:new Date(_0x3a362a);}function _0x45799e(_0x3d5229){_0x4b29fe['hide'](_0x3d5229);}}const _0x4d3fb7=_0x13c11b,_0x524aca=_0x59426a['p']+_0xb635d2('0x2634');_0x415121['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x271'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x415121(_0x4b6923,_0x29814b,_0x2b1601,_0x543efb,_0x2ee0d7,_0x3d90c3,_0xc1ad6,_0x4aaac6,_0x18fec6,_0x394a9f,_0x272fc9,_0x1c0974,_0x19b154,_0x210717,_0x14b6ea,_0x4daaa8,_0x457f46){var _0x150fae=_0xb635d2,_0x28d883=this;_0x28d883['license']=_0x4daaa8,_0x28d883['setting']=_0x457f46,_0x28d883[_0x150fae('0x15a5')]=_0x14b6ea[_0x150fae('0x1ef8')](),_0x28d883[_0x150fae('0x271')]=_0x18fec6||{'count':0x0,'rows':[]},_0x28d883[_0x150fae('0x154f')]=_0x394a9f,_0x28d883[_0x150fae('0xb59')]=_0x272fc9&&_0x272fc9[_0x150fae('0x148b')]==0x1?_0x272fc9[_0x150fae('0x16a7')][0x0]:null,_0x28d883[_0x150fae('0xb3d')]=_0x14b6ea[_0x150fae('0xd31')](_0x28d883[_0x150fae('0xb59')]?_0x28d883[_0x150fae('0xb59')][_0x150fae('0xb3d')]:null),_0x28d883[_0x150fae('0x19b6')]=_0x150fae('0x271'),_0x28d883[_0x150fae('0x14d6')]='',_0x28d883[_0x150fae('0x190c')]=null,_0x28d883['selectedScheduler']=[],_0x28d883[_0x150fae('0xa16')]={'fields':_0x150fae('0x151b'),'sort':_0x150fae('0x7e8'),'limit':0xa,'page':0x1},_0x28d883['arrayoutput']=_0x32d445()['keyBy']([{'option':_0x150fae('0xa02'),'value':_0x150fae('0xba7')},{'option':_0x150fae('0x1d8f'),'value':_0x150fae('0x1574')},{'option':_0x150fae('0x5f7'),'value':_0x150fae('0x24c9')}],function(_0x30139e){var _0x103468=_0x150fae;return _0x32d445()[_0x103468('0x1b42')](_0x30139e[_0x103468('0x2')],new RegExp('\x27','g'),'');}),_0x28d883[_0x150fae('0x2387')]=_0x32d445()[_0x150fae('0x226f')]([{'option':_0x150fae('0x6d0'),'value':_0x150fae('0x3eb')},{'option':_0x150fae('0xb9d'),'value':'\x27hours\x27'},{'option':'Days','value':_0x150fae('0x2683')},{'option':'Weeks','value':'\x27weeks\x27'},{'option':'Months','value':_0x150fae('0x2602')},{'option':'Quarters','value':_0x150fae('0x2682')},{'option':_0x150fae('0x5d2'),'value':_0x150fae('0x1d46')}],function(_0x566306){var _0x376655=_0x150fae;return _0x32d445()['replace'](_0x566306[_0x376655('0x2')],new RegExp('\x27','g'),'');}),_0x28d883['editdialog']=_0x346319,_0x28d883[_0x150fae('0x1e29')]=_0x3f5d1a,_0x28d883[_0x150fae('0x1d9e')]=_0x418e07,_0x28d883[_0x150fae('0x425')]=_0x3ee0b9,_0x28d883['getScheduler']=_0x5a861c,_0x28d883['createOrEditSchedule']=_0xa5d120,_0x28d883['deleteSchedule']=_0x5b10ff,_0x28d883[_0x150fae('0x5ab')]=_0x1957c4,_0x28d883[_0x150fae('0xb7b')]=_0x58baed,_0x28d883[_0x150fae('0xbe6')]=_0x45d617,_0x28d883[_0x150fae('0xbe8')]=_0x45d59d,_0x1c0974['analyticTreeReport'][_0x150fae('0x22d5')]({})[_0x150fae('0xe59')][_0x150fae('0xe19')](function(_0x4662ab){var _0x1d8103=_0x150fae;_0x28d883[_0x1d8103('0xe9b')]=_0x4662ab[_0x1d8103('0x16a7')]||[];})[_0x150fae('0x223b')](function(_0x563e98){var _0x12cb53=_0x150fae;_0x210717[_0x12cb53('0x8c8')]({'title':_0x563e98[_0x12cb53('0x2833')]?_0x12cb53('0x27f2')+_0x563e98['status']+_0x12cb53('0x1b7c')+_0x563e98[_0x12cb53('0x1fd7')]:_0x12cb53('0x1f7d'),'msg':_0x563e98[_0x12cb53('0x11d0')]?JSON[_0x12cb53('0x3ad')](_0x563e98[_0x12cb53('0x11d0')]):_0x563e98[_0x12cb53('0x94f')]()});}),_0x14b6ea[_0x150fae('0x179e')](_0x150fae('0xd14'))?_0x1c0974[_0x150fae('0x17f0')][_0x150fae('0x22d5')]({'fields':_0x150fae('0x104'),'sort':_0x150fae('0x2623')})[_0x150fae('0xe59')][_0x150fae('0xe19')](function(_0x1c9a6b){var _0x5f1d21=_0x150fae;_0x28d883[_0x5f1d21('0x248b')]=_0x1c9a6b[_0x5f1d21('0x16a7')]||[];})[_0x150fae('0x223b')](function(_0x4a8a7d){var _0x191fbe=_0x150fae;_0x210717[_0x191fbe('0x8c8')]({'title':_0x4a8a7d[_0x191fbe('0x2833')]?_0x191fbe('0x27f2')+_0x4a8a7d['status']+_0x191fbe('0x1b7c')+_0x4a8a7d['statusText']:_0x191fbe('0x18f4'),'msg':_0x4a8a7d[_0x191fbe('0x11d0')]?JSON['stringify'](_0x4a8a7d['data']):_0x4a8a7d[_0x191fbe('0x94f')]()});}):_0x1c0974[_0x150fae('0x17f0')][_0x150fae('0x22d5')]({'fields':'id,name','sort':'name'})[_0x150fae('0xe59')][_0x150fae('0xe19')](function(_0x1e41d7){var _0x25ce4e=_0x150fae;_0x28d883[_0x25ce4e('0x248b')]=_0x1e41d7[_0x25ce4e('0x16a7')]||[];})[_0x150fae('0xe19')](function(){var _0xc6908c=_0x150fae;return _0x1c0974['userProfileSection'][_0xc6908c('0x22d5')]({'userProfileId':_0x28d883[_0xc6908c('0x15a5')][_0xc6908c('0x1d04')],'sectionId':0x25a})[_0xc6908c('0xe59')];})[_0x150fae('0xe19')](function(_0x360453){var _0x3aea2b=_0x150fae,_0x47467a=_0x360453&&_0x360453[_0x3aea2b('0x16a7')]?_0x360453[_0x3aea2b('0x16a7')][0x0]:null;if(!_0x47467a){var _0x401dc4=[],_0x285b80=null;_0x28d883['schedule']&&(_0x285b80=_0x32d445()[_0x3aea2b('0xf15')](_0x28d883[_0x3aea2b('0x248b')],{'id':Number(_0x28d883['schedule'][_0x3aea2b('0xa20')])}));for(var _0x343dea=0x0;_0x343dea<_0x28d883[_0x3aea2b('0x248b')]['length'];_0x343dea++){_0x285b80&&_0x28d883[_0x3aea2b('0x248b')][_0x343dea]['id']===_0x285b80['id']&&(_0x28d883[_0x3aea2b('0x248b')][_0x343dea]['canSelect']=![],_0x401dc4[_0x3aea2b('0xb76')](_0x28d883[_0x3aea2b('0x248b')][_0x343dea]));}_0x28d883[_0x3aea2b('0x248b')]=_0x401dc4;}else{if(!_0x47467a[_0x3aea2b('0x11fd')])return _0x1c0974[_0x3aea2b('0xd49')][_0x3aea2b('0x22d5')]({'sectionId':_0x47467a['id']})[_0x3aea2b('0xe59')][_0x3aea2b('0xe19')](function(_0x1b6f85){var _0x234a0b=_0x3aea2b,_0x594e54=_0x32d445()[_0x234a0b('0x65a')](_0x1b6f85[_0x234a0b('0x16a7')],function(_0x412194){var _0x23d872=_0x234a0b;return _0x32d445()[_0x23d872('0xf15')](_0x28d883['mailAccounts'],{'id':_0x412194[_0x23d872('0x1104')]});}),_0x2f5ad8=null;_0x28d883['schedule']&&(_0x2f5ad8=_0x32d445()[_0x234a0b('0xf15')](_0x28d883[_0x234a0b('0x248b')],{'id':Number(_0x28d883[_0x234a0b('0x20bc')][_0x234a0b('0xa20')])}));if(_0x2f5ad8&&!_0x32d445()[_0x234a0b('0x201a')](_0x594e54,['id',_0x2f5ad8['id']])){var _0x47744d=_0x32d445()['find'](_0x28d883[_0x234a0b('0x248b')],{'id':_0x2f5ad8['id']});_0x47744d[_0x234a0b('0x1e9d')]=![],_0x594e54[_0x234a0b('0xb76')](_0x47744d);}_0x28d883[_0x234a0b('0x248b')]=_0x594e54;});}})['catch'](function(_0x272f72){var _0x5a7071=_0x150fae;_0x210717[_0x5a7071('0x8c8')]({'title':_0x272f72[_0x5a7071('0x2833')]?_0x5a7071('0x27f2')+_0x272f72[_0x5a7071('0x2833')]+_0x5a7071('0x1b7c')+_0x272f72[_0x5a7071('0x1fd7')]:_0x5a7071('0xff3'),'msg':_0x272f72['data']?JSON['stringify'](_0x272f72[_0x5a7071('0x11d0')]):_0x272f72[_0x5a7071('0x94f')]()});});function _0x346319(_0x4be7eb,_0x4f9ed9){var _0x41492b=_0x150fae;_0x2ee0d7[_0x41492b('0x26b2')]({'controller':_0x41492b('0x770'),'controllerAs':'vm','templateUrl':_0x524aca,'parent':angular[_0x41492b('0x24a1')](_0x3d90c3['body']),'targetEvent':_0x4f9ed9,'clickOutsideToClose':!![],'locals':{'schedule':_0x4be7eb,'schedules':_0x28d883[_0x41492b('0x271')][_0x41492b('0x16a7')],'license':_0x28d883[_0x41492b('0x5c1')],'setting':null,'crudPermissions':_0x28d883['crudPermissions']}});}function _0x3f5d1a(_0x37d644,_0x523150){var _0x414daf=_0x150fae,_0x410d31=_0x2ee0d7[_0x414daf('0xa5')]()[_0x414daf('0x13e4')](_0x414daf('0x24d4'))[_0x414daf('0x221c')](_0x414daf('0xab2')+(_0x37d644['name']||'schedule')+_0x414daf('0x27bb')+_0x414daf('0x17ce'))['ariaLabel'](_0x414daf('0x2607'))[_0x414daf('0x1345')](_0x523150)['ok']('OK')[_0x414daf('0x2c1')](_0x414daf('0x17'));_0x2ee0d7[_0x414daf('0x26b2')](_0x410d31)['then'](function(){var _0x57f17b=_0x414daf;return _0x1c0974['schedule'][_0x57f17b('0x1813')]({'id':_0x37d644['id']})[_0x57f17b('0xe59')];},function(){var _0x3d0f2c=_0x414daf;console[_0x3d0f2c('0x1fe9')]('CANCEL');});}function _0x418e07(_0xad0b72,_0x206cb3){var _0x5e04b9=_0x150fae,_0x429197=_0x2ee0d7[_0x5e04b9('0xa5')]()['title'](_0x5e04b9('0x346')+_0x32d445()[_0x5e04b9('0x1df2')]('schedule')+'?')[_0x5e04b9('0x221c')](_0x5e04b9('0xab2')+(_0xad0b72['name']||_0x5e04b9('0x20bc'))+_0x5e04b9('0x27bb')+_0x5e04b9('0x21bd'))[_0x5e04b9('0x4d1')](_0x5e04b9('0x2607'))[_0x5e04b9('0x1345')](_0x206cb3)['ok']('OK')[_0x5e04b9('0x2c1')](_0x5e04b9('0x17'));_0x2ee0d7['show'](_0x429197)[_0x5e04b9('0xe19')](function(){_0x5b10ff(_0xad0b72);},function(){var _0x56f5f6=_0x5e04b9;console[_0x56f5f6('0x1fe9')](_0x56f5f6('0x17'));});}var _0x2b15f3=!![],_0x27c150=0x1;_0x4b6923['$watch']('vm.query.filter',function(_0x1a3e17,_0x56caf6){var _0x2c776f=_0x150fae;_0x2b15f3?_0xc1ad6(function(){_0x2b15f3=![];}):(!_0x56caf6&&(_0x27c150=_0x28d883[_0x2c776f('0xa16')][_0x2c776f('0xc08')]),_0x1a3e17!==_0x56caf6&&(_0x28d883[_0x2c776f('0xa16')]['page']=0x1),!_0x1a3e17&&(_0x28d883[_0x2c776f('0xa16')][_0x2c776f('0xc08')]=_0x27c150),_0x28d883[_0x2c776f('0x1444')]());});function _0x3ee0b9(_0x431dfc){var _0x4abdbc=_0x150fae;_0x28d883[_0x4abdbc('0x271')]=_0x431dfc||{'count':0x0,'rows':[]};}function _0x5a861c(){var _0x367624=_0x150fae;_0x28d883['query'][_0x367624('0xab0')]=(_0x28d883[_0x367624('0xa16')][_0x367624('0xc08')]-0x1)*_0x28d883['query'][_0x367624('0x1b6d')],_0x14b6ea['hasRole']('admin')?_0x28d883['promise']=_0x1c0974[_0x367624('0x20bc')][_0x367624('0x22d5')](_0x28d883[_0x367624('0xa16')],_0x3ee0b9)['$promise']:(_0x28d883[_0x367624('0xa16')]['id']=_0x28d883[_0x367624('0x154f')]['id'],_0x28d883['query']['section']=_0x367624('0x1c7c'),_0x28d883[_0x367624('0x9c8')]=_0x1c0974[_0x367624('0x154f')][_0x367624('0x14e6')](_0x28d883[_0x367624('0xa16')],_0x3ee0b9)[_0x367624('0xe59')]);}function _0xa5d120(_0x5e6697,_0x2b7da4){var _0x4b2edd=_0x150fae;_0x2ee0d7[_0x4b2edd('0x26b2')]({'controller':_0x4b2edd('0x770'),'controllerAs':'vm','templateUrl':_0x524aca,'parent':angular['element'](_0x3d90c3[_0x4b2edd('0x19b2')]),'targetEvent':_0x5e6697,'clickOutsideToClose':!![],'locals':{'schedule':_0x2b7da4,'schedules':_0x28d883[_0x4b2edd('0x271')][_0x4b2edd('0x16a7')],'license':_0x28d883[_0x4b2edd('0x5c1')],'setting':_0x28d883[_0x4b2edd('0x22f1')],'crudPermissions':_0x28d883[_0x4b2edd('0xb3d')]}});}function _0x5b10ff(_0x56e4db){var _0x4867ef=_0x150fae;_0x1c0974[_0x4867ef('0x20bc')][_0x4867ef('0x229e')]({'id':_0x56e4db['id']})[_0x4867ef('0xe59')][_0x4867ef('0xe19')](function(){var _0x125038=_0x4867ef;_0x32d445()[_0x125038('0xa8b')](_0x28d883[_0x125038('0x271')]['rows'],{'id':_0x56e4db['id']}),_0x28d883[_0x125038('0x271')]['count']-=0x1,!_0x28d883['schedules']['rows'][_0x125038('0x25ae')]&&_0x28d883['getScheduler'](),_0x210717[_0x125038('0x425')]({'title':_0x32d445()['startCase'](_0x125038('0xad0'))+_0x125038('0x1219'),'msg':_0x56e4db[_0x125038('0x2623')]?_0x56e4db[_0x125038('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x4867ef('0x223b')](function(_0x557e7a){var _0x49fbd6=_0x4867ef;if(_0x557e7a[_0x49fbd6('0x11d0')]&&_0x557e7a[_0x49fbd6('0x11d0')][_0x49fbd6('0xcd2')]&&_0x557e7a[_0x49fbd6('0x11d0')][_0x49fbd6('0xcd2')][_0x49fbd6('0x25ae')]){_0x28d883[_0x49fbd6('0xcd2')]=_0x557e7a[_0x49fbd6('0x11d0')][_0x49fbd6('0xcd2')]||[{'message':_0x557e7a['toString'](),'type':'SYSTEM:DELETEschedule'}];for(var _0x2b30bc=0x0;_0x2b30bc<_0x557e7a['data']['errors'][_0x49fbd6('0x25ae')];_0x2b30bc++){_0x210717[_0x49fbd6('0x8c8')]({'title':_0x557e7a[_0x49fbd6('0x11d0')][_0x49fbd6('0xcd2')][_0x2b30bc][_0x49fbd6('0x62e')],'msg':_0x557e7a[_0x49fbd6('0x11d0')][_0x49fbd6('0xcd2')][_0x2b30bc][_0x49fbd6('0x27e8')]});}}else _0x210717[_0x49fbd6('0x8c8')]({'title':_0x557e7a[_0x49fbd6('0x2833')]?_0x49fbd6('0x27f2')+_0x557e7a[_0x49fbd6('0x2833')]+_0x49fbd6('0x1b7c')+_0x557e7a[_0x49fbd6('0x1fd7')]:'SYSTEM:DELETEschedule','msg':_0x557e7a[_0x49fbd6('0x11d0')]?JSON[_0x49fbd6('0x3ad')](_0x557e7a['data'][_0x49fbd6('0x27e8')]):_0x557e7a[_0x49fbd6('0x27e8')]||_0x557e7a['toString']()});});}function _0x1957c4(){var _0x3af79d=_0x150fae,_0x3b8258=angular[_0x3af79d('0x89')](_0x28d883['selectedScheduler']);return _0x28d883[_0x3af79d('0x1602')]=[],_0x3b8258;}function _0x58baed(_0x1de12b){var _0x316ce4=_0x150fae,_0x2325f7=_0x2ee0d7['confirm']()[_0x316ce4('0x13e4')](_0x316ce4('0x1f3'))[_0x316ce4('0x221c')](_0x316ce4('0xab2')+_0x28d883[_0x316ce4('0x1602')][_0x316ce4('0x25ae')]+_0x316ce4('0x5bc')+_0x316ce4('0x21bd'))[_0x316ce4('0x4d1')](_0x316ce4('0x71d'))[_0x316ce4('0x1345')](_0x1de12b)['ok']('OK')[_0x316ce4('0x2c1')](_0x316ce4('0x17'));_0x2ee0d7[_0x316ce4('0x26b2')](_0x2325f7)['then'](function(){var _0x15f31b=_0x316ce4;_0x28d883[_0x15f31b('0x1602')]['forEach'](function(_0x1ce177){_0x5b10ff(_0x1ce177);}),_0x28d883['selectedScheduler']=[];});}function _0x45d617(){var _0x1fc92b=_0x150fae;_0x28d883[_0x1fc92b('0x1602')]=[];}function _0x45d59d(){var _0x3666d6=_0x150fae;_0x28d883[_0x3666d6('0x1602')]=_0x28d883[_0x3666d6('0x271')][_0x3666d6('0x16a7')];}}const _0x51dd14=_0x415121;_0x249663[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x219b'),_0xb635d2('0x392'),'api',_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),'crudPermissions'];function _0x249663(_0x954df,_0x1139f6,_0x483e2b,_0x3e1229,_0x5b565e,_0x50e3ed,_0x28093d,_0x2a03b0,_0x59d9af,_0x41276c,_0x483499,_0x19d4e6,_0x3e5762,_0x155f2c){var _0x3ab3b7=_0xb635d2,_0x3c40b6=this;_0x3c40b6[_0x3ab3b7('0x15a5')]=_0x483499['getCurrentUser'](),_0x3c40b6['errors']=[],_0x3c40b6[_0x3ab3b7('0x22f1')]=_0x3e5762,_0x3c40b6[_0x3ab3b7('0x5c1')]=_0x19d4e6,_0x3c40b6[_0x3ab3b7('0xb3d')]=_0x155f2c,_0x3c40b6[_0x3ab3b7('0x1ccb')]={},_0x3c40b6[_0x3ab3b7('0x25ac')]=_0x3c40b6['setting']&&_0x3c40b6[_0x3ab3b7('0x22f1')][_0x3ab3b7('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c40b6['title']=_0x3ab3b7('0x242b'),_0x3c40b6[_0x3ab3b7('0x392')]=angular['copy'](_0x59d9af),_0x3c40b6[_0x3ab3b7('0x219b')]=_0x2a03b0,_0x3c40b6[_0x3ab3b7('0xc26')]=![];!_0x3c40b6[_0x3ab3b7('0x392')]&&(_0x3c40b6[_0x3ab3b7('0x392')]={},_0x3c40b6[_0x3ab3b7('0x13e4')]=_0x3ab3b7('0x814'),_0x3c40b6[_0x3ab3b7('0xc26')]=!![]);_0x3c40b6[_0x3ab3b7('0x611')]=_0x1ef21f,_0x3c40b6[_0x3ab3b7('0x32d')]=_0x4a1177,_0x3c40b6['deleteSound']=_0xf2c450,_0x3c40b6[_0x3ab3b7('0x2635')]=_0x563385,_0x3c40b6[_0x3ab3b7('0x2584')]=_0x3b73d9;function _0x1ef21f(){var _0x1e8440=_0x3ab3b7;_0x3c40b6[_0x1e8440('0xcd2')]=[],_0x41276c['sound']['save'](_0x3c40b6[_0x1e8440('0x392')])['$promise'][_0x1e8440('0xe19')](function(_0x4a2228){var _0x53f1e0=_0x1e8440;_0x3c40b6['sounds'][_0x53f1e0('0x14c9')](_0x4a2228['toJSON']()),_0x28093d[_0x53f1e0('0x425')]({'title':_0x53f1e0('0x629'),'msg':_0x3c40b6[_0x53f1e0('0x392')][_0x53f1e0('0x2623')]?_0x3c40b6[_0x53f1e0('0x392')]['name']+_0x53f1e0('0x105f'):''}),_0x3b73d9(_0x4a2228);})[_0x1e8440('0x223b')](function(_0x2a7623){var _0x2345eb=_0x1e8440;if(_0x2a7623[_0x2345eb('0x11d0')]&&_0x2a7623['data'][_0x2345eb('0xcd2')]&&_0x2a7623[_0x2345eb('0x11d0')][_0x2345eb('0xcd2')][_0x2345eb('0x25ae')]){_0x3c40b6[_0x2345eb('0xcd2')]=_0x2a7623[_0x2345eb('0x11d0')][_0x2345eb('0xcd2')]||[{'message':_0x2a7623[_0x2345eb('0x94f')](),'type':_0x2345eb('0x2326')}];for(var _0xa3c603=0x0;_0xa3c603<_0x2a7623[_0x2345eb('0x11d0')][_0x2345eb('0xcd2')][_0x2345eb('0x25ae')];_0xa3c603+=0x1){_0x28093d[_0x2345eb('0x8c8')]({'title':_0x2a7623[_0x2345eb('0x11d0')][_0x2345eb('0xcd2')][_0xa3c603][_0x2345eb('0x62e')],'msg':_0x2a7623[_0x2345eb('0x11d0')][_0x2345eb('0xcd2')][_0xa3c603][_0x2345eb('0x27e8')]});}}else _0x28093d[_0x2345eb('0x8c8')]({'title':_0x2a7623[_0x2345eb('0x2833')]?_0x2345eb('0x27f2')+_0x2a7623['status']+_0x2345eb('0x1b7c')+_0x2a7623[_0x2345eb('0x1fd7')]:_0x2345eb('0x2326'),'msg':_0x2a7623[_0x2345eb('0x11d0')]?JSON[_0x2345eb('0x3ad')](_0x2a7623[_0x2345eb('0x11d0')]['message']):_0x2a7623['toString']()});});}function _0x4a1177(){var _0x52d723=_0x3ab3b7;_0x3c40b6[_0x52d723('0xcd2')]=[],_0x41276c[_0x52d723('0x392')][_0x52d723('0xa70')]({'id':_0x3c40b6['sound']['id']},_0x3c40b6[_0x52d723('0x392')])[_0x52d723('0xe59')][_0x52d723('0xe19')](function(_0x1ace4f){var _0x55d68a=_0x52d723,_0x116b91=_0x32d445()[_0x55d68a('0xf15')](_0x3c40b6[_0x55d68a('0x219b')],{'id':_0x1ace4f['id']});_0x116b91&&_0x32d445()['merge'](_0x116b91,_0x32d445()['pick'](_0x1ace4f[_0x55d68a('0x250e')](),_0x32d445()[_0x55d68a('0x1234')](_0x116b91))),_0x28093d['success']({'title':_0x55d68a('0x180e'),'msg':_0x3c40b6[_0x55d68a('0x392')][_0x55d68a('0x2623')]?_0x3c40b6[_0x55d68a('0x392')][_0x55d68a('0x2623')]+_0x55d68a('0x1c19'):''}),_0x3b73d9(_0x1ace4f);})[_0x52d723('0x223b')](function(_0x334762){var _0x2a6637=_0x52d723;if(_0x334762['data']&&_0x334762[_0x2a6637('0x11d0')][_0x2a6637('0xcd2')]&&_0x334762[_0x2a6637('0x11d0')]['errors'][_0x2a6637('0x25ae')]){_0x3c40b6[_0x2a6637('0xcd2')]=_0x334762[_0x2a6637('0x11d0')][_0x2a6637('0xcd2')]||[{'message':_0x334762[_0x2a6637('0x94f')](),'type':_0x2a6637('0x1188')}];for(var _0x3d99de=0x0;_0x3d99de<_0x334762[_0x2a6637('0x11d0')][_0x2a6637('0xcd2')]['length'];_0x3d99de++){_0x28093d['error']({'title':_0x334762[_0x2a6637('0x11d0')][_0x2a6637('0xcd2')][_0x3d99de][_0x2a6637('0x62e')],'msg':_0x334762[_0x2a6637('0x11d0')][_0x2a6637('0xcd2')][_0x3d99de]['message']});}}else _0x28093d['error']({'title':_0x334762['status']?_0x2a6637('0x27f2')+_0x334762[_0x2a6637('0x2833')]+_0x2a6637('0x1b7c')+_0x334762[_0x2a6637('0x1fd7')]:'api.sound.update','msg':_0x334762[_0x2a6637('0x11d0')]?JSON[_0x2a6637('0x3ad')](_0x334762[_0x2a6637('0x11d0')][_0x2a6637('0x27e8')]):_0x334762[_0x2a6637('0x94f')]()});});}function _0xf2c450(_0x37ca08){var _0x274c94=_0x3ab3b7;_0x3c40b6[_0x274c94('0xcd2')]=[];var _0x357dd8=_0x3e1229[_0x274c94('0xa5')]()[_0x274c94('0x13e4')](_0x274c94('0x24d0'))[_0x274c94('0xd0')](_0x274c94('0xd6c'))[_0x274c94('0x4d1')](_0x274c94('0x1760'))['ok'](_0x274c94('0x2198'))[_0x274c94('0x2c1')](_0x274c94('0x8a3'))[_0x274c94('0x1345')](_0x37ca08);_0x3e1229[_0x274c94('0x26b2')](_0x357dd8)[_0x274c94('0xe19')](function(){var _0x5ab092=_0x274c94;_0x41276c[_0x5ab092('0x392')]['delete']({'id':_0x3c40b6[_0x5ab092('0x392')]['id']})[_0x5ab092('0xe59')][_0x5ab092('0xe19')](function(){var _0xebcac5=_0x5ab092;_0x32d445()[_0xebcac5('0xa8b')](_0x3c40b6['sounds'],{'id':_0x3c40b6[_0xebcac5('0x392')]['id']}),_0x28093d[_0xebcac5('0x425')]({'title':'Sound\x20properly\x20deleted!','msg':(_0x3c40b6[_0xebcac5('0x392')][_0xebcac5('0x2623')]||_0xebcac5('0x392'))+'\x20has\x20been\x20deleted!'}),_0x3b73d9(_0x3c40b6[_0xebcac5('0x392')]);})[_0x5ab092('0x223b')](function(_0x4cc569){var _0x56c280=_0x5ab092;if(_0x4cc569[_0x56c280('0x11d0')]&&_0x4cc569['data'][_0x56c280('0xcd2')]&&_0x4cc569[_0x56c280('0x11d0')][_0x56c280('0xcd2')]['length']){_0x3c40b6[_0x56c280('0xcd2')]=_0x4cc569['data']['errors']||[{'message':_0x4cc569[_0x56c280('0x94f')](),'type':'api.sound.delete'}];for(var _0x1bcb6c=0x0;_0x1bcb6c<_0x4cc569['data'][_0x56c280('0xcd2')][_0x56c280('0x25ae')];_0x1bcb6c++){_0x28093d[_0x56c280('0x8c8')]({'title':_0x4cc569[_0x56c280('0x11d0')][_0x56c280('0xcd2')][_0x1bcb6c][_0x56c280('0x62e')],'msg':_0x4cc569[_0x56c280('0x11d0')][_0x56c280('0xcd2')][_0x1bcb6c]['message']});}}else _0x28093d[_0x56c280('0x8c8')]({'title':_0x4cc569['status']?_0x56c280('0x27f2')+_0x4cc569[_0x56c280('0x2833')]+_0x56c280('0x1b7c')+_0x4cc569[_0x56c280('0x1fd7')]:_0x56c280('0x10cb'),'msg':_0x4cc569['data']?JSON[_0x56c280('0x3ad')](_0x4cc569['data'][_0x56c280('0x27e8')]):_0x4cc569[_0x56c280('0x27e8')]||_0x4cc569[_0x56c280('0x94f')]()});});},function(){});}function _0x563385(_0x5082c5){return _0x5082c5===null?undefined:new Date(_0x5082c5);}function _0x3b73d9(_0x443fb4){var _0x161047=_0x3ab3b7;_0x3e1229[_0x161047('0x11ed')](_0x443fb4);}}const _0x5ea1de=_0x249663,_0x1f7a7b=_0x59426a['p']+_0xb635d2('0x478'),_0x185ac7=_0x59426a['p']+'src/js/modules/main/apps/tools/views/sounds/upload/dialog.html/dialog-[chunkhash].html';_0x5d495f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),'sounds','userProfile','userProfileSection',_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),'Auth','license',_0xb635d2('0x22f1')];function _0x5d495f(_0x37853d,_0x4e8b81,_0x9c41c4,_0x558d1a,_0x21b72d,_0x4f8f6b,_0x5d6867,_0x3cfdaf,_0x12bc91,_0x2ef1f5,_0x115dc4,_0x565cb0,_0x550120,_0x14c44f,_0x42e3f2,_0x4d686a,_0x206113){var _0x3979be=_0xb635d2,_0x197d48=this;_0x197d48[_0x3979be('0x5c1')]=_0x4d686a,_0x197d48[_0x3979be('0x22f1')]=_0x206113,_0x197d48[_0x3979be('0x15a5')]=_0x42e3f2['getCurrentUser'](),_0x197d48[_0x3979be('0x219b')]=_0x12bc91||{'count':0x0,'rows':[]},_0x197d48['userProfile']=_0x2ef1f5,_0x197d48[_0x3979be('0xb59')]=_0x115dc4&&_0x115dc4[_0x3979be('0x148b')]==0x1?_0x115dc4[_0x3979be('0x16a7')][0x0]:null,_0x197d48[_0x3979be('0xb3d')]=_0x42e3f2[_0x3979be('0xd31')](_0x197d48[_0x3979be('0xb59')]?_0x197d48[_0x3979be('0xb59')]['crudPermissions']:null),_0x197d48['table']=_0x3979be('0x219b'),_0x197d48[_0x3979be('0x14d6')]='',_0x197d48[_0x3979be('0x190c')]=null,_0x197d48[_0x3979be('0x101f')]=[],_0x197d48['query']={'fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x197d48[_0x3979be('0x1752')]=_0x4db290,_0x197d48[_0x3979be('0x42d')]=_0x35c8fd,_0x197d48[_0x3979be('0x1d9e')]=_0x2639b7,_0x197d48['success']=_0x838af9,_0x197d48[_0x3979be('0x416')]=_0x3a3ced,_0x197d48['createOrEditSound']=_0x5a1695,_0x197d48[_0x3979be('0x121c')]=_0x42deb1,_0x197d48[_0x3979be('0x1d09')]=_0x3b83f6,_0x197d48[_0x3979be('0x2692')]=_0x4c8e8e,_0x197d48[_0x3979be('0x50b')]=_0xad2062,_0x197d48[_0x3979be('0x2c2')]=_0x4fd3e2,_0x197d48[_0x3979be('0x255e')]=_0xd26896;function _0x4db290(_0x835700,_0x109f26){var _0x4352cd=_0x3979be;_0x21b72d['show']({'controller':_0x4352cd('0x111a'),'controllerAs':'vm','templateUrl':_0x1f7a7b,'parent':angular['element'](_0x4f8f6b[_0x4352cd('0x19b2')]),'targetEvent':_0x109f26,'clickOutsideToClose':!![],'locals':{'sound':_0x835700,'sounds':_0x197d48[_0x4352cd('0x219b')][_0x4352cd('0x16a7')],'license':_0x197d48['license'],'setting':null,'crudPermissions':_0x197d48[_0x4352cd('0xb3d')]}});}function _0x35c8fd(_0x1012fc){var _0x46ef5f=_0x3979be;return _0x565cb0[_0x46ef5f('0x392')][_0x46ef5f('0x1d1e')]({'id':_0x1012fc['id']})[_0x46ef5f('0xe59')][_0x46ef5f('0xe19')](function(_0xf1aed6){var _0x107562=_0x46ef5f,_0x57f901=[_0xf1aed6[_0x107562('0x17ab')]],_0x5a99d6=_0x107562('0x1d1e'),_0x2aae94=new Blob(_0x57f901,{'type':_0xf1aed6['type']});_0x5a99d6=_0x1012fc[_0x107562('0x1c84')]?_0x1012fc[_0x107562('0x1cb3')]+'.'+_0x1012fc[_0x107562('0x1c84')]:_0x1012fc['save_name'];var _0x505138=window[_0x107562('0x18fa')]['createElement']('a');_0x505138[_0x107562('0xede')](_0x107562('0xcb7'),URL[_0x107562('0x1360')](_0x2aae94)),_0x505138['setAttribute'](_0x107562('0x1d1e'),_0x5a99d6),document[_0x107562('0x19b2')][_0x107562('0x1d13')](_0x505138),_0x505138['click']();})['catch'](function(_0x45b7b3){var _0x48340c=_0x46ef5f;if(_0x45b7b3[_0x48340c('0x11d0')]&&_0x45b7b3['data'][_0x48340c('0xcd2')]&&_0x45b7b3['data'][_0x48340c('0xcd2')]['length'])for(var _0x282795=0x0;_0x282795<_0x45b7b3[_0x48340c('0x11d0')]['errors']['length'];_0x282795++){_0x14c44f[_0x48340c('0x8c8')]({'title':_0x45b7b3[_0x48340c('0x11d0')][_0x48340c('0xcd2')][_0x282795][_0x48340c('0x62e')],'msg':_0x45b7b3[_0x48340c('0x11d0')][_0x48340c('0xcd2')][_0x282795][_0x48340c('0x27e8')]});}else _0x14c44f[_0x48340c('0x8c8')]({'title':_0x45b7b3[_0x48340c('0x2833')]?'API:'+_0x45b7b3[_0x48340c('0x2833')]+_0x48340c('0x1b7c')+_0x45b7b3[_0x48340c('0x1fd7')]:_0x48340c('0x2326'),'msg':_0x45b7b3[_0x48340c('0x11d0')]?JSON[_0x48340c('0x3ad')](_0x45b7b3['data'][_0x48340c('0x27e8')]):_0x45b7b3[_0x48340c('0x94f')]()});});}function _0x2639b7(_0x94bcbc,_0x15824f){var _0x580b6c=_0x3979be,_0x1b34cb=_0x21b72d['confirm']()['title'](_0x580b6c('0x346')+_0x32d445()[_0x580b6c('0x1df2')](_0x580b6c('0x392'))+'?')[_0x580b6c('0x221c')](_0x580b6c('0xab2')+(_0x94bcbc[_0x580b6c('0x2623')]||_0x580b6c('0x392'))+_0x580b6c('0x27bb')+'\x20will\x20be\x20deleted.')[_0x580b6c('0x4d1')](_0x580b6c('0x2078'))[_0x580b6c('0x1345')](_0x15824f)['ok']('OK')[_0x580b6c('0x2c1')](_0x580b6c('0x17'));_0x21b72d[_0x580b6c('0x26b2')](_0x1b34cb)[_0x580b6c('0xe19')](function(){_0x42deb1(_0x94bcbc);},function(){var _0x49c20b=_0x580b6c;console[_0x49c20b('0x1fe9')]('CANCEL');});}var _0x22a5e5=!![],_0x4e8e39=0x1;_0x37853d[_0x3979be('0x107')](_0x3979be('0x20cb'),function(_0x5f5eaa,_0x249c07){var _0x52ffb5=_0x3979be;_0x22a5e5?_0x5d6867(function(){_0x22a5e5=![];}):(!_0x249c07&&(_0x4e8e39=_0x197d48[_0x52ffb5('0xa16')]['page']),_0x5f5eaa!==_0x249c07&&(_0x197d48[_0x52ffb5('0xa16')][_0x52ffb5('0xc08')]=0x1),!_0x5f5eaa&&(_0x197d48[_0x52ffb5('0xa16')]['page']=_0x4e8e39),_0x197d48[_0x52ffb5('0x416')]());});function _0x838af9(_0x15ca24){_0x197d48['sounds']=_0x15ca24||{'count':0x0,'rows':[]};}function _0x3a3ced(){var _0x34d5f7=_0x3979be;_0x197d48[_0x34d5f7('0xa16')][_0x34d5f7('0xab0')]=(_0x197d48[_0x34d5f7('0xa16')][_0x34d5f7('0xc08')]-0x1)*_0x197d48[_0x34d5f7('0xa16')]['limit'],_0x42e3f2[_0x34d5f7('0x179e')](_0x34d5f7('0xd14'))?_0x197d48[_0x34d5f7('0x9c8')]=_0x565cb0[_0x34d5f7('0x392')][_0x34d5f7('0x22d5')](_0x197d48[_0x34d5f7('0xa16')],_0x838af9)['$promise']:(_0x197d48[_0x34d5f7('0xa16')]['id']=_0x197d48['userProfile']['id'],_0x197d48[_0x34d5f7('0xa16')]['section']=_0x34d5f7('0x156'),_0x197d48[_0x34d5f7('0x9c8')]=_0x565cb0[_0x34d5f7('0x154f')][_0x34d5f7('0x14e6')](_0x197d48[_0x34d5f7('0xa16')],_0x838af9)[_0x34d5f7('0xe59')]);}function _0x5a1695(_0xa92083,_0x1f28f8){var _0x40478d=_0x3979be;_0x21b72d[_0x40478d('0x26b2')]({'controller':_0x40478d('0x111a'),'controllerAs':'vm','templateUrl':_0x1f7a7b,'parent':angular[_0x40478d('0x24a1')](_0x4f8f6b[_0x40478d('0x19b2')]),'targetEvent':_0xa92083,'clickOutsideToClose':!![],'locals':{'sound':_0x1f28f8,'sounds':_0x197d48[_0x40478d('0x219b')][_0x40478d('0x16a7')],'license':_0x197d48['license'],'setting':_0x197d48[_0x40478d('0x22f1')],'crudPermissions':_0x197d48[_0x40478d('0xb3d')]}});}function _0x42deb1(_0x53e723){var _0x5940a1=_0x3979be;_0x565cb0[_0x5940a1('0x392')][_0x5940a1('0x229e')]({'id':_0x53e723['id']})[_0x5940a1('0xe59')][_0x5940a1('0xe19')](function(){var _0x1223cd=_0x5940a1;_0x32d445()[_0x1223cd('0xa8b')](_0x197d48[_0x1223cd('0x219b')][_0x1223cd('0x16a7')],{'id':_0x53e723['id']}),_0x197d48[_0x1223cd('0x219b')][_0x1223cd('0x148b')]-=0x1,!_0x197d48['sounds'][_0x1223cd('0x16a7')][_0x1223cd('0x25ae')]&&_0x197d48[_0x1223cd('0x416')](),_0x14c44f[_0x1223cd('0x425')]({'title':_0x32d445()[_0x1223cd('0x1df2')](_0x1223cd('0x20ce'))+'\x20deleted!','msg':_0x53e723[_0x1223cd('0x2623')]?_0x53e723[_0x1223cd('0x2623')]+_0x1223cd('0x2182'):''});})[_0x5940a1('0x223b')](function(_0x52aa1b){var _0x1f489a=_0x5940a1;if(_0x52aa1b['data']&&_0x52aa1b[_0x1f489a('0x11d0')][_0x1f489a('0xcd2')]&&_0x52aa1b[_0x1f489a('0x11d0')][_0x1f489a('0xcd2')][_0x1f489a('0x25ae')]){_0x197d48['errors']=_0x52aa1b['data']['errors']||[{'message':_0x52aa1b[_0x1f489a('0x94f')](),'type':_0x1f489a('0x26f3')}];for(var _0x44269a=0x0;_0x44269a<_0x52aa1b[_0x1f489a('0x11d0')][_0x1f489a('0xcd2')]['length'];_0x44269a++){_0x14c44f[_0x1f489a('0x8c8')]({'title':_0x52aa1b[_0x1f489a('0x11d0')]['errors'][_0x44269a][_0x1f489a('0x62e')],'msg':_0x52aa1b[_0x1f489a('0x11d0')]['errors'][_0x44269a][_0x1f489a('0x27e8')]});}}else _0x14c44f[_0x1f489a('0x8c8')]({'title':_0x52aa1b['status']?_0x1f489a('0x27f2')+_0x52aa1b[_0x1f489a('0x2833')]+_0x1f489a('0x1b7c')+_0x52aa1b['statusText']:'SYSTEM:DELETEsound','msg':_0x52aa1b[_0x1f489a('0x11d0')]?JSON[_0x1f489a('0x3ad')](_0x52aa1b[_0x1f489a('0x11d0')][_0x1f489a('0x27e8')]):_0x52aa1b[_0x1f489a('0x27e8')]||_0x52aa1b[_0x1f489a('0x94f')]()});});}function _0x3b83f6(){var _0x500069=_0x3979be,_0x5b2c6b=angular['copy'](_0x197d48[_0x500069('0x101f')]);return _0x197d48[_0x500069('0x101f')]=[],_0x5b2c6b;}function _0x4c8e8e(_0x4577b2){var _0x366e48=_0x3979be,_0xc900de=_0x21b72d[_0x366e48('0xa5')]()[_0x366e48('0x13e4')](_0x366e48('0x1c85'))[_0x366e48('0x221c')](_0x366e48('0xab2')+_0x197d48[_0x366e48('0x101f')]['length']+'\x20selected'+_0x366e48('0x21bd'))[_0x366e48('0x4d1')](_0x366e48('0x16a2'))[_0x366e48('0x1345')](_0x4577b2)['ok']('OK')['cancel'](_0x366e48('0x17'));_0x21b72d['show'](_0xc900de)[_0x366e48('0xe19')](function(){var _0x1f0a65=_0x366e48;_0x197d48[_0x1f0a65('0x101f')][_0x1f0a65('0x1d7e')](function(_0x496656){_0x42deb1(_0x496656);}),_0x197d48['selectedSounds']=[];});}function _0xad2062(){var _0x3af9aa=_0x3979be;_0x197d48[_0x3af9aa('0x101f')]=[];}function _0x4fd3e2(){var _0x35f8ea=_0x3979be;_0x197d48[_0x35f8ea('0x101f')]=_0x197d48[_0x35f8ea('0x219b')][_0x35f8ea('0x16a7')];}function _0xd26896(_0x215bf2){var _0x2cfd70=_0x3979be;_0x21b72d[_0x2cfd70('0x26b2')]({'controller':_0x2cfd70('0x1c41'),'controllerAs':'vm','templateUrl':_0x185ac7,'parent':angular[_0x2cfd70('0x24a1')](_0x4f8f6b[_0x2cfd70('0x19b2')]),'targetEvent':_0x215bf2,'clickOutsideToClose':!![],'locals':{'sounds':_0x197d48[_0x2cfd70('0x219b')][_0x2cfd70('0x16a7')]}});}}const _0x39fd59=_0x5d495f;_0x2785d2[_0xb635d2('0xb0c')]=['$cookies',_0xb635d2('0x1c9f'),'toasty',_0xb635d2('0x219b'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x2785d2(_0x54588c,_0x2ac87a,_0x170ba6,_0x53b7ed,_0x2fdd0c,_0x2b13cc){var _0x56d3c6=_0xb635d2,_0x5ac58c=this,_0x43f980=0xf,_0x1f18ba=_0x43f980*0x400*0x400;_0x5ac58c[_0x56d3c6('0x15a5')]=_0x2b13cc['getCurrentUser'](),_0x5ac58c[_0x56d3c6('0xcd2')]=[],_0x5ac58c['title']=_0x56d3c6('0xa4c'),_0x5ac58c[_0x56d3c6('0x219b')]=_0x53b7ed,_0x5ac58c[_0x56d3c6('0x1836')]=[],_0x5ac58c[_0x56d3c6('0x18c9')]=_0x56d3c6('0x23ca'),_0x5ac58c[_0x56d3c6('0x392')]={},_0x5ac58c[_0x56d3c6('0x186a')]={'maxChunkRetries':0x1,'chunkSize':_0x1f18ba,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x56d3c6('0x2070')},_0x5ac58c[_0x56d3c6('0x1b57')]={'flow':{}},_0x5ac58c['dropping']=![],_0x5ac58c[_0x56d3c6('0x1124')]=_0x59fec9,_0x5ac58c[_0x56d3c6('0x20')]=_0x3a3f1b,_0x5ac58c[_0x56d3c6('0x24e8')]=_0x4bb558,_0x5ac58c[_0x56d3c6('0x2791')]=_0x471365,_0x5ac58c[_0x56d3c6('0x2370')]=_0x36b66a,_0x5ac58c['closeDialog']=_0x33562a;function _0x59fec9(_0x4b0b1b){var _0x4830de=_0x56d3c6,_0x11460f=['wav',_0x4830de('0x2589'),'gsm'];if(!_0x32d445()[_0x4830de('0x1c43')](_0x11460f,_0x4b0b1b[_0x4830de('0x23df')]()))return _0x170ba6[_0x4830de('0x8c8')]({'title':_0x4830de('0x11b6')+_0x4b0b1b[_0x4830de('0x23df')](),'msg':_0x4830de('0x1450')+_0x11460f[_0x4830de('0x1537')]()}),![];if(_0x4b0b1b['size']>_0x1f18ba)return _0x170ba6[_0x4830de('0x8c8')]({'title':_0x4830de('0x16c9'),'msg':_0x4830de('0x275f')+_0x43f980+'MB'}),![];return _0x5ac58c[_0x4830de('0x392')]={'id':_0x4b0b1b['uniqueIdentifier'],'file':_0x4b0b1b},_0x5ac58c['uploadSounds'][_0x4830de('0x14c9')](_0x5ac58c[_0x4830de('0x392')]),!![];}function _0x3a3f1b(){var _0x955b9b=_0x56d3c6;_0x5ac58c[_0x955b9b('0x18c9')]='uploading',_0x5ac58c[_0x955b9b('0x1b57')][_0x955b9b('0x206b')][_0x955b9b('0x5ec')][_0x955b9b('0x2234')]={'X-Requested-With':_0x955b9b('0xdf4'),'Authorization':_0x955b9b('0x17b7')+_0x54588c[_0x955b9b('0x22d5')]('motion.token')},_0x5ac58c[_0x955b9b('0x1b57')]['flow'][_0x955b9b('0x5ec')]['query']={'role':_0x5ac58c[_0x955b9b('0x15a5')][_0x955b9b('0xcd9')],'userProfileId':_0x5ac58c[_0x955b9b('0x15a5')]['userProfileId']},_0x5ac58c[_0x955b9b('0x1b57')][_0x955b9b('0x206b')]['upload']();}function _0x4bb558(_0x5c5964,_0xe8a689){var _0x44462c=_0x56d3c6;_0x5ac58c[_0x44462c('0x219b')][_0x44462c('0x14c9')](JSON[_0x44462c('0x118e')](_0xe8a689)),angular[_0x44462c('0x1d7e')](_0x5ac58c[_0x44462c('0x1836')],function(_0x2f61cd){var _0x2e40fe=_0x44462c;if(_0x2f61cd['id']===_0x5c5964['uniqueIdentifier']){var _0x12173c=new FileReader();_0x12173c[_0x2e40fe('0x845')](_0x2f61cd[_0x2e40fe('0x2c0')][_0x2e40fe('0x2c0')]),_0x12173c[_0x2e40fe('0x1d94')]=function(_0x321c4e){var _0x3c1c2c=_0x2e40fe;_0x2f61cd[_0x3c1c2c('0x2647')]=_0x321c4e['target'][_0x3c1c2c('0x2048')];};}});}function _0x471365(){var _0x209c55=_0x56d3c6;_0x5ac58c[_0x209c55('0x1b57')][_0x209c55('0x206b')]['cancel'](),_0x170ba6['error']({'title':'Upload\x20error','msg':_0x209c55('0x2462')}),_0x5ac58c[_0x209c55('0x18c9')]='failed';}function _0x36b66a(){var _0x531b47=_0x56d3c6;_0x5ac58c[_0x531b47('0x18c9')]!==_0x531b47('0x17ad')&&(_0x5ac58c[_0x531b47('0x18c9')]=_0x531b47('0x20c5'),_0x170ba6[_0x531b47('0x425')]({'title':_0x531b47('0x21b3'),'msg':_0x5ac58c[_0x531b47('0x392')][_0x531b47('0x2c0')][_0x531b47('0x2623')]+_0x531b47('0x5a5')}));}function _0x33562a(){var _0x3d3add=_0x56d3c6;_0x2ac87a[_0x3d3add('0x11ed')]();}}const _0x1f4412=_0x2785d2;_0x476479[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),'$location','$mdDialog','$q','$translate','toasty',_0xb635d2('0x1105'),_0xb635d2('0x2037'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x476479(_0x7ae550,_0x48d045,_0x300bdb,_0x296d61,_0x44a129,_0x22cc5d,_0x343fd6,_0x7153d9,_0xac50ef,_0x3289e0,_0x1fc768,_0x1fc411,_0xe9f9e5,_0x68c692){var _0x3cc734=_0xb635d2,_0x59e43d=this;_0x59e43d['currentUser']=_0x1fc768[_0x3cc734('0x1ef8')](),_0x59e43d[_0x3cc734('0xcd2')]=[],_0x59e43d[_0x3cc734('0x22f1')]=_0xe9f9e5,_0x59e43d[_0x3cc734('0x5c1')]=_0x1fc411,_0x59e43d['crudPermissions']=_0x68c692,_0x59e43d['hasModulePermissions']={},_0x59e43d[_0x3cc734('0x25ac')]=_0x59e43d[_0x3cc734('0x22f1')]&&_0x59e43d[_0x3cc734('0x22f1')][_0x3cc734('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59e43d[_0x3cc734('0x13e4')]='TOOLS.EDIT_TAG',_0x59e43d[_0x3cc734('0x2037')]=angular[_0x3cc734('0x89')](_0xac50ef),_0x59e43d['tags']=_0x7153d9,_0x59e43d['newTag']=![];!_0x59e43d[_0x3cc734('0x2037')]&&(_0x59e43d[_0x3cc734('0x2037')]={},_0x59e43d[_0x3cc734('0x13e4')]=_0x3cc734('0x27d8'),_0x59e43d['newTag']=!![]);_0x59e43d[_0x3cc734('0x84c')]=_0x3a7d97,_0x59e43d['saveTag']=_0x3f8f0b,_0x59e43d[_0x3cc734('0x715')]=_0x5708d3,_0x59e43d[_0x3cc734('0x2635')]=_0x5143ef,_0x59e43d[_0x3cc734('0x2584')]=_0x17bd2b;function _0x3a7d97(){var _0x2144bd=_0x3cc734;_0x59e43d[_0x2144bd('0xcd2')]=[],_0x3289e0[_0x2144bd('0x2037')][_0x2144bd('0xe5e')](_0x59e43d[_0x2144bd('0x2037')])[_0x2144bd('0xe59')]['then'](function(_0x2a3849){var _0x2e69f9=_0x2144bd;_0x59e43d[_0x2e69f9('0x1105')]['unshift'](_0x2a3849['toJSON']()),_0x343fd6[_0x2e69f9('0x425')]({'title':_0x2e69f9('0xba6'),'msg':_0x59e43d[_0x2e69f9('0x2037')]['name']?_0x59e43d[_0x2e69f9('0x2037')][_0x2e69f9('0x2623')]+'\x20has\x20been\x20created!':''}),_0x17bd2b(_0x2a3849);})[_0x2144bd('0x223b')](function(_0x1d0091){var _0x2dbd3b=_0x2144bd;if(_0x1d0091['data']&&_0x1d0091[_0x2dbd3b('0x11d0')][_0x2dbd3b('0xcd2')]&&_0x1d0091['data']['errors'][_0x2dbd3b('0x25ae')]){_0x59e43d['errors']=_0x1d0091[_0x2dbd3b('0x11d0')][_0x2dbd3b('0xcd2')]||[{'message':_0x1d0091[_0x2dbd3b('0x94f')](),'type':'api.tag.save'}];for(var _0x1dbc08=0x0;_0x1dbc08<_0x1d0091[_0x2dbd3b('0x11d0')][_0x2dbd3b('0xcd2')][_0x2dbd3b('0x25ae')];_0x1dbc08+=0x1){_0x343fd6['error']({'title':_0x1d0091[_0x2dbd3b('0x11d0')][_0x2dbd3b('0xcd2')][_0x1dbc08][_0x2dbd3b('0x62e')],'msg':_0x1d0091[_0x2dbd3b('0x11d0')][_0x2dbd3b('0xcd2')][_0x1dbc08][_0x2dbd3b('0x27e8')]});}}else _0x343fd6[_0x2dbd3b('0x8c8')]({'title':_0x1d0091[_0x2dbd3b('0x2833')]?_0x2dbd3b('0x27f2')+_0x1d0091[_0x2dbd3b('0x2833')]+_0x2dbd3b('0x1b7c')+_0x1d0091[_0x2dbd3b('0x1fd7')]:_0x2dbd3b('0x2762'),'msg':_0x1d0091[_0x2dbd3b('0x11d0')]?JSON[_0x2dbd3b('0x3ad')](_0x1d0091[_0x2dbd3b('0x11d0')][_0x2dbd3b('0x27e8')]):_0x1d0091['toString']()});});}function _0x3f8f0b(){var _0x8a2197=_0x3cc734;_0x59e43d[_0x8a2197('0xcd2')]=[],_0x3289e0[_0x8a2197('0x2037')][_0x8a2197('0xa70')]({'id':_0x59e43d[_0x8a2197('0x2037')]['id']},_0x59e43d[_0x8a2197('0x2037')])['$promise'][_0x8a2197('0xe19')](function(_0x1b736f){var _0x321559=_0x8a2197,_0x33e08f=_0x32d445()[_0x321559('0xf15')](_0x59e43d[_0x321559('0x1105')],{'id':_0x1b736f['id']});_0x33e08f&&_0x32d445()[_0x321559('0x1d8')](_0x33e08f,_0x32d445()['pick'](_0x1b736f['toJSON'](),_0x32d445()[_0x321559('0x1234')](_0x33e08f))),_0x343fd6[_0x321559('0x425')]({'title':_0x321559('0x2335'),'msg':_0x59e43d[_0x321559('0x2037')][_0x321559('0x2623')]?_0x59e43d[_0x321559('0x2037')][_0x321559('0x2623')]+_0x321559('0x1c19'):''}),_0x17bd2b(_0x1b736f);})[_0x8a2197('0x223b')](function(_0x172b53){var _0x562bc8=_0x8a2197;if(_0x172b53[_0x562bc8('0x11d0')]&&_0x172b53[_0x562bc8('0x11d0')][_0x562bc8('0xcd2')]&&_0x172b53[_0x562bc8('0x11d0')][_0x562bc8('0xcd2')][_0x562bc8('0x25ae')]){_0x59e43d[_0x562bc8('0xcd2')]=_0x172b53[_0x562bc8('0x11d0')][_0x562bc8('0xcd2')]||[{'message':_0x172b53[_0x562bc8('0x94f')](),'type':_0x562bc8('0xc4f')}];for(var _0x55884c=0x0;_0x55884c<_0x172b53['data']['errors'][_0x562bc8('0x25ae')];_0x55884c++){_0x343fd6[_0x562bc8('0x8c8')]({'title':_0x172b53[_0x562bc8('0x11d0')][_0x562bc8('0xcd2')][_0x55884c][_0x562bc8('0x62e')],'msg':_0x172b53[_0x562bc8('0x11d0')][_0x562bc8('0xcd2')][_0x55884c][_0x562bc8('0x27e8')]});}}else _0x343fd6[_0x562bc8('0x8c8')]({'title':_0x172b53['status']?_0x562bc8('0x27f2')+_0x172b53[_0x562bc8('0x2833')]+_0x562bc8('0x1b7c')+_0x172b53['statusText']:_0x562bc8('0xc4f'),'msg':_0x172b53[_0x562bc8('0x11d0')]?JSON[_0x562bc8('0x3ad')](_0x172b53[_0x562bc8('0x11d0')][_0x562bc8('0x27e8')]):_0x172b53[_0x562bc8('0x94f')]()});});}function _0x5708d3(_0x11212c){var _0x4898c6=_0x3cc734;_0x59e43d[_0x4898c6('0xcd2')]=[];var _0x51b021=_0x296d61[_0x4898c6('0xa5')]()['title'](_0x4898c6('0x24d0'))['content']('The\x20tag\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Tag')['ok'](_0x4898c6('0x2198'))[_0x4898c6('0x2c1')](_0x4898c6('0x8a3'))[_0x4898c6('0x1345')](_0x11212c);_0x296d61['show'](_0x51b021)[_0x4898c6('0xe19')](function(){var _0x26a801=_0x4898c6;_0x3289e0[_0x26a801('0x2037')][_0x26a801('0x229e')]({'id':_0x59e43d[_0x26a801('0x2037')]['id']})[_0x26a801('0xe59')]['then'](function(){var _0xd317b3=_0x26a801;_0x32d445()[_0xd317b3('0xa8b')](_0x59e43d[_0xd317b3('0x1105')],{'id':_0x59e43d['tag']['id']}),_0x343fd6['success']({'title':_0xd317b3('0x26ab'),'msg':(_0x59e43d[_0xd317b3('0x2037')][_0xd317b3('0x2623')]||'tag')+_0xd317b3('0x2182')}),_0x17bd2b(_0x59e43d['tag']);})[_0x26a801('0x223b')](function(_0x26ff9a){var _0x4d43f4=_0x26a801;if(_0x26ff9a['data']&&_0x26ff9a[_0x4d43f4('0x11d0')][_0x4d43f4('0xcd2')]&&_0x26ff9a['data'][_0x4d43f4('0xcd2')][_0x4d43f4('0x25ae')]){_0x59e43d['errors']=_0x26ff9a['data']['errors']||[{'message':_0x26ff9a['toString'](),'type':'api.tag.delete'}];for(var _0xc9fae2=0x0;_0xc9fae2<_0x26ff9a[_0x4d43f4('0x11d0')][_0x4d43f4('0xcd2')][_0x4d43f4('0x25ae')];_0xc9fae2++){_0x343fd6['error']({'title':_0x26ff9a[_0x4d43f4('0x11d0')]['errors'][_0xc9fae2][_0x4d43f4('0x62e')],'msg':_0x26ff9a[_0x4d43f4('0x11d0')]['errors'][_0xc9fae2][_0x4d43f4('0x27e8')]});}}else _0x343fd6[_0x4d43f4('0x8c8')]({'title':_0x26ff9a[_0x4d43f4('0x2833')]?'API:'+_0x26ff9a['status']+_0x4d43f4('0x1b7c')+_0x26ff9a['statusText']:_0x4d43f4('0x2013'),'msg':_0x26ff9a[_0x4d43f4('0x11d0')]?JSON[_0x4d43f4('0x3ad')](_0x26ff9a['data'][_0x4d43f4('0x27e8')]):_0x26ff9a[_0x4d43f4('0x27e8')]||_0x26ff9a['toString']()});});},function(){});}function _0x5143ef(_0x3c9063){return _0x3c9063===null?undefined:new Date(_0x3c9063);}function _0x17bd2b(_0xf34fda){var _0x472591=_0x3cc734;_0x296d61[_0x472591('0x11ed')](_0xf34fda);}}const _0x2d703c=_0x476479,_0x1241f3=_0x59426a['p']+_0xb635d2('0x1751');_0xfdc3af[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x1105'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0xfdc3af(_0xf4a67d,_0x587858,_0x46a252,_0xf9fbd9,_0x1d5473,_0x39ea3d,_0x33c732,_0x4caf6c,_0x22ce8a,_0xa38f,_0x25962b,_0x27ef33,_0x251607,_0xebde06,_0x9cf2fd,_0x1b293c,_0x167a7f){var _0x5dfa3c=_0xb635d2,_0xdbfbd=this;_0xdbfbd[_0x5dfa3c('0x5c1')]=_0x1b293c,_0xdbfbd[_0x5dfa3c('0x22f1')]=_0x167a7f,_0xdbfbd[_0x5dfa3c('0x15a5')]=_0x9cf2fd[_0x5dfa3c('0x1ef8')](),_0xdbfbd[_0x5dfa3c('0x1105')]=_0x22ce8a||{'count':0x0,'rows':[]},_0xdbfbd['userProfile']=_0xa38f,_0xdbfbd[_0x5dfa3c('0xb59')]=_0x25962b&&_0x25962b[_0x5dfa3c('0x148b')]==0x1?_0x25962b[_0x5dfa3c('0x16a7')][0x0]:null,_0xdbfbd[_0x5dfa3c('0xb3d')]=_0x9cf2fd[_0x5dfa3c('0xd31')](_0xdbfbd[_0x5dfa3c('0xb59')]?_0xdbfbd[_0x5dfa3c('0xb59')][_0x5dfa3c('0xb3d')]:null),_0xdbfbd[_0x5dfa3c('0x19b6')]=_0x5dfa3c('0x1105'),_0xdbfbd[_0x5dfa3c('0x14d6')]='',_0xdbfbd[_0x5dfa3c('0x190c')]=null,_0xdbfbd['selectedTags']=[],_0xdbfbd[_0x5dfa3c('0xa16')]={'fields':_0x5dfa3c('0x1021'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0xdbfbd['editdialog']=_0x4a1edc,_0xdbfbd[_0x5dfa3c('0x1d9e')]=_0x52bf6b,_0xdbfbd[_0x5dfa3c('0x425')]=_0x26bffd,_0xdbfbd[_0x5dfa3c('0x17b8')]=_0x14af57,_0xdbfbd[_0x5dfa3c('0x1fcd')]=_0x2ae37d,_0xdbfbd[_0x5dfa3c('0x715')]=_0xc2bd76,_0xdbfbd[_0x5dfa3c('0xb70')]=_0x2ae86a,_0xdbfbd[_0x5dfa3c('0x25d6')]=_0x402037,_0xdbfbd[_0x5dfa3c('0x2181')]=_0x26d4fc,_0xdbfbd[_0x5dfa3c('0x99')]=_0x487eb3;function _0x4a1edc(_0x353a3a,_0x4cabca){var _0x61275a=_0x5dfa3c;_0x1d5473[_0x61275a('0x26b2')]({'controller':_0x61275a('0x13f1'),'controllerAs':'vm','templateUrl':_0x1241f3,'parent':angular['element'](_0x39ea3d['body']),'targetEvent':_0x4cabca,'clickOutsideToClose':!![],'locals':{'tag':_0x353a3a,'tags':_0xdbfbd[_0x61275a('0x1105')]['rows'],'license':_0xdbfbd[_0x61275a('0x5c1')],'setting':null,'crudPermissions':_0xdbfbd[_0x61275a('0xb3d')]}});}function _0x52bf6b(_0x5c1034,_0x333759){var _0x189b53=_0x5dfa3c,_0x3fae33=_0x1d5473[_0x189b53('0xa5')]()[_0x189b53('0x13e4')](_0x189b53('0x346')+_0x32d445()[_0x189b53('0x1df2')](_0x189b53('0x2037'))+'?')[_0x189b53('0x221c')](''+(_0x5c1034['name']||_0x189b53('0x2037'))+_0x189b53('0x27bb')+'\x20will\x20be\x20deleted.')[_0x189b53('0x4d1')](_0x189b53('0x924'))['targetEvent'](_0x333759)['ok']('OK')[_0x189b53('0x2c1')](_0x189b53('0x17'));_0x1d5473[_0x189b53('0x26b2')](_0x3fae33)[_0x189b53('0xe19')](function(){_0xc2bd76(_0x5c1034);},function(){var _0x47ac2c=_0x189b53;console[_0x47ac2c('0x1fe9')](_0x47ac2c('0x17'));});}var _0x3c5185=!![],_0x10456b=0x1;_0xf4a67d[_0x5dfa3c('0x107')]('vm.query.filter',function(_0x33fbfe,_0x3cefe5){var _0x37f39a=_0x5dfa3c;_0x3c5185?_0x33c732(function(){_0x3c5185=![];}):(!_0x3cefe5&&(_0x10456b=_0xdbfbd[_0x37f39a('0xa16')][_0x37f39a('0xc08')]),_0x33fbfe!==_0x3cefe5&&(_0xdbfbd[_0x37f39a('0xa16')][_0x37f39a('0xc08')]=0x1),!_0x33fbfe&&(_0xdbfbd[_0x37f39a('0xa16')][_0x37f39a('0xc08')]=_0x10456b),_0xdbfbd[_0x37f39a('0x17b8')]());});function _0x26bffd(_0xc3a319){var _0x48547f=_0x5dfa3c;_0xdbfbd[_0x48547f('0x1105')]=_0xc3a319||{'count':0x0,'rows':[]};}function _0x14af57(){var _0x2c5bb1=_0x5dfa3c;_0xdbfbd[_0x2c5bb1('0xa16')][_0x2c5bb1('0xab0')]=(_0xdbfbd[_0x2c5bb1('0xa16')][_0x2c5bb1('0xc08')]-0x1)*_0xdbfbd[_0x2c5bb1('0xa16')][_0x2c5bb1('0x1b6d')],_0x9cf2fd[_0x2c5bb1('0x179e')]('admin')?_0xdbfbd[_0x2c5bb1('0x9c8')]=_0x27ef33[_0x2c5bb1('0x2037')]['get'](_0xdbfbd[_0x2c5bb1('0xa16')],_0x26bffd)[_0x2c5bb1('0xe59')]:(_0xdbfbd[_0x2c5bb1('0xa16')]['id']=_0xdbfbd[_0x2c5bb1('0x154f')]['id'],_0xdbfbd['query'][_0x2c5bb1('0x1e59')]=_0x2c5bb1('0x1e7b'),_0xdbfbd[_0x2c5bb1('0x9c8')]=_0x27ef33[_0x2c5bb1('0x154f')]['getResources'](_0xdbfbd['query'],_0x26bffd)[_0x2c5bb1('0xe59')]);}function _0x2ae37d(_0x30fadb,_0x3aa56a){var _0x5468ec=_0x5dfa3c;_0x1d5473[_0x5468ec('0x26b2')]({'controller':'CreateOrEditTagDialogController','controllerAs':'vm','templateUrl':_0x1241f3,'parent':angular['element'](_0x39ea3d[_0x5468ec('0x19b2')]),'targetEvent':_0x30fadb,'clickOutsideToClose':!![],'locals':{'tag':_0x3aa56a,'tags':_0xdbfbd[_0x5468ec('0x1105')][_0x5468ec('0x16a7')],'license':_0xdbfbd['license'],'setting':_0xdbfbd['setting'],'crudPermissions':_0xdbfbd[_0x5468ec('0xb3d')]}});}function _0xc2bd76(_0x556ef0){var _0x4b74e5=_0x5dfa3c;_0x27ef33[_0x4b74e5('0x2037')][_0x4b74e5('0x229e')]({'id':_0x556ef0['id']})['$promise']['then'](function(){var _0x6f729f=_0x4b74e5;_0x32d445()[_0x6f729f('0xa8b')](_0xdbfbd[_0x6f729f('0x1105')][_0x6f729f('0x16a7')],{'id':_0x556ef0['id']}),_0xdbfbd[_0x6f729f('0x1105')]['count']-=0x1,!_0xdbfbd['tags'][_0x6f729f('0x16a7')]['length']&&_0xdbfbd[_0x6f729f('0x17b8')](),_0xebde06[_0x6f729f('0x425')]({'title':_0x32d445()[_0x6f729f('0x1df2')](_0x6f729f('0x1172'))+_0x6f729f('0x1219'),'msg':_0x556ef0[_0x6f729f('0x2623')]?_0x556ef0[_0x6f729f('0x2623')]+_0x6f729f('0x2182'):''});})['catch'](function(_0x1d47a1){var _0x31663e=_0x4b74e5;if(_0x1d47a1['data']&&_0x1d47a1[_0x31663e('0x11d0')][_0x31663e('0xcd2')]&&_0x1d47a1[_0x31663e('0x11d0')]['errors'][_0x31663e('0x25ae')]){_0xdbfbd[_0x31663e('0xcd2')]=_0x1d47a1[_0x31663e('0x11d0')]['errors']||[{'message':_0x1d47a1['toString'](),'type':'SYSTEM:DELETEtag'}];for(var _0x4f10cc=0x0;_0x4f10cc<_0x1d47a1[_0x31663e('0x11d0')][_0x31663e('0xcd2')]['length'];_0x4f10cc++){_0xebde06['error']({'title':_0x1d47a1[_0x31663e('0x11d0')]['errors'][_0x4f10cc]['type'],'msg':_0x1d47a1[_0x31663e('0x11d0')]['errors'][_0x4f10cc][_0x31663e('0x27e8')]});}}else _0xebde06[_0x31663e('0x8c8')]({'title':_0x1d47a1[_0x31663e('0x2833')]?_0x31663e('0x27f2')+_0x1d47a1[_0x31663e('0x2833')]+_0x31663e('0x1b7c')+_0x1d47a1[_0x31663e('0x1fd7')]:_0x31663e('0x994'),'msg':_0x1d47a1[_0x31663e('0x11d0')]?JSON['stringify'](_0x1d47a1[_0x31663e('0x11d0')][_0x31663e('0x27e8')]):_0x1d47a1['message']||_0x1d47a1[_0x31663e('0x94f')]()});});}function _0x2ae86a(){var _0x458238=_0x5dfa3c,_0x332e57=angular['copy'](_0xdbfbd[_0x458238('0x244a')]);return _0xdbfbd[_0x458238('0x244a')]=[],_0x332e57;}function _0x402037(_0x1be1cc){var _0x1b8cf4=_0x5dfa3c,_0x5177d3=_0x1d5473[_0x1b8cf4('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20tags?')[_0x1b8cf4('0x221c')](''+_0xdbfbd[_0x1b8cf4('0x244a')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1b8cf4('0x162b'))['targetEvent'](_0x1be1cc)['ok']('OK')['cancel']('CANCEL');_0x1d5473[_0x1b8cf4('0x26b2')](_0x5177d3)[_0x1b8cf4('0xe19')](function(){var _0x54dd03=_0x1b8cf4;_0xdbfbd[_0x54dd03('0x244a')][_0x54dd03('0x1d7e')](function(_0x4c8fc5){_0xc2bd76(_0x4c8fc5);}),_0xdbfbd[_0x54dd03('0x244a')]=[];});}function _0x26d4fc(){var _0x378994=_0x5dfa3c;_0xdbfbd[_0x378994('0x244a')]=[];}function _0x487eb3(){var _0x8ded8a=_0x5dfa3c;_0xdbfbd[_0x8ded8a('0x244a')]=_0xdbfbd[_0x8ded8a('0x1105')][_0x8ded8a('0x16a7')];}}const _0x31f03c=_0xfdc3af;_0x23f34f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'templates',_0xb635d2('0x12e2'),'api',_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x23f34f(_0x2d8c91,_0x13869a,_0x3e7fe5,_0x135961,_0x3656e3,_0x28f6df,_0xaa3d59,_0x6f410c,_0x3da8ab,_0x38b15f,_0x21ccd4,_0x42224b,_0x4e6575,_0x27faef){var _0x6a7979=_0xb635d2,_0x3a5a8c=this;_0x3a5a8c[_0x6a7979('0x15a5')]=_0x21ccd4[_0x6a7979('0x1ef8')](),_0x3a5a8c[_0x6a7979('0xcd2')]=[],_0x3a5a8c[_0x6a7979('0x22f1')]=_0x4e6575,_0x3a5a8c[_0x6a7979('0x5c1')]=_0x42224b,_0x3a5a8c['crudPermissions']=_0x27faef,_0x3a5a8c[_0x6a7979('0x1ccb')]={},_0x3a5a8c[_0x6a7979('0x25ac')]=_0x3a5a8c[_0x6a7979('0x22f1')]&&_0x3a5a8c['setting'][_0x6a7979('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a5a8c[_0x6a7979('0x13e4')]=_0x6a7979('0x16dd'),_0x3a5a8c[_0x6a7979('0x12e2')]=angular[_0x6a7979('0x89')](_0x3da8ab),_0x3a5a8c['templates']=_0x6f410c,_0x3a5a8c['newTemplate']=![];!_0x3a5a8c['template']&&(_0x3a5a8c[_0x6a7979('0x12e2')]={},_0x3a5a8c[_0x6a7979('0x13e4')]=_0x6a7979('0x1f4'),_0x3a5a8c['newTemplate']=!![]);_0x3a5a8c['addNewTemplate']=_0xc9ccdf,_0x3a5a8c[_0x6a7979('0x52')]=_0x157dc9,_0x3a5a8c[_0x6a7979('0xd13')]=_0x5dd6af,_0x3a5a8c[_0x6a7979('0x2635')]=_0x3da83d,_0x3a5a8c[_0x6a7979('0x2584')]=_0x35b36b;function _0xc9ccdf(){var _0x5224f4=_0x6a7979;_0x3a5a8c[_0x5224f4('0xcd2')]=[],_0x38b15f[_0x5224f4('0x12e2')][_0x5224f4('0xe5e')](_0x3a5a8c[_0x5224f4('0x12e2')])[_0x5224f4('0xe59')][_0x5224f4('0xe19')](function(_0x20997f){var _0xc17c99=_0x5224f4;_0x3a5a8c['templates'][_0xc17c99('0x14c9')](_0x20997f[_0xc17c99('0x250e')]()),_0xaa3d59[_0xc17c99('0x425')]({'title':'Template\x20properly\x20created','msg':_0x3a5a8c['template'][_0xc17c99('0x2623')]?_0x3a5a8c[_0xc17c99('0x12e2')][_0xc17c99('0x2623')]+'\x20has\x20been\x20created!':''}),_0x35b36b(_0x20997f);})['catch'](function(_0x30d168){var _0x3b386f=_0x5224f4;if(_0x30d168['data']&&_0x30d168['data'][_0x3b386f('0xcd2')]&&_0x30d168[_0x3b386f('0x11d0')]['errors']['length']){_0x3a5a8c[_0x3b386f('0xcd2')]=_0x30d168[_0x3b386f('0x11d0')][_0x3b386f('0xcd2')]||[{'message':_0x30d168[_0x3b386f('0x94f')](),'type':'api.template.save'}];for(var _0x20a2eb=0x0;_0x20a2eb<_0x30d168[_0x3b386f('0x11d0')][_0x3b386f('0xcd2')][_0x3b386f('0x25ae')];_0x20a2eb+=0x1){_0xaa3d59[_0x3b386f('0x8c8')]({'title':_0x30d168[_0x3b386f('0x11d0')]['errors'][_0x20a2eb][_0x3b386f('0x62e')],'msg':_0x30d168[_0x3b386f('0x11d0')]['errors'][_0x20a2eb]['message']});}}else _0xaa3d59[_0x3b386f('0x8c8')]({'title':_0x30d168[_0x3b386f('0x2833')]?_0x3b386f('0x27f2')+_0x30d168[_0x3b386f('0x2833')]+_0x3b386f('0x1b7c')+_0x30d168[_0x3b386f('0x1fd7')]:_0x3b386f('0xaad'),'msg':_0x30d168[_0x3b386f('0x11d0')]?JSON[_0x3b386f('0x3ad')](_0x30d168[_0x3b386f('0x11d0')][_0x3b386f('0x27e8')]):_0x30d168[_0x3b386f('0x94f')]()});});}function _0x157dc9(){var _0x5260cb=_0x6a7979;_0x3a5a8c[_0x5260cb('0xcd2')]=[],_0x38b15f['template']['update']({'id':_0x3a5a8c[_0x5260cb('0x12e2')]['id']},_0x3a5a8c['template'])[_0x5260cb('0xe59')][_0x5260cb('0xe19')](function(_0x503d38){var _0x4f8d67=_0x5260cb,_0x28987c=_0x32d445()[_0x4f8d67('0xf15')](_0x3a5a8c[_0x4f8d67('0x702')],{'id':_0x503d38['id']});_0x28987c&&_0x32d445()['merge'](_0x28987c,_0x32d445()[_0x4f8d67('0xed5')](_0x503d38[_0x4f8d67('0x250e')](),_0x32d445()[_0x4f8d67('0x1234')](_0x28987c))),_0xaa3d59[_0x4f8d67('0x425')]({'title':'Template\x20properly\x20saved!','msg':_0x3a5a8c[_0x4f8d67('0x12e2')][_0x4f8d67('0x2623')]?_0x3a5a8c[_0x4f8d67('0x12e2')][_0x4f8d67('0x2623')]+_0x4f8d67('0x1c19'):''}),_0x35b36b(_0x503d38);})[_0x5260cb('0x223b')](function(_0x2b8c90){var _0x34c6b2=_0x5260cb;if(_0x2b8c90[_0x34c6b2('0x11d0')]&&_0x2b8c90[_0x34c6b2('0x11d0')]['errors']&&_0x2b8c90[_0x34c6b2('0x11d0')][_0x34c6b2('0xcd2')][_0x34c6b2('0x25ae')]){_0x3a5a8c[_0x34c6b2('0xcd2')]=_0x2b8c90[_0x34c6b2('0x11d0')][_0x34c6b2('0xcd2')]||[{'message':_0x2b8c90[_0x34c6b2('0x94f')](),'type':_0x34c6b2('0x3b9')}];for(var _0x5d1408=0x0;_0x5d1408<_0x2b8c90[_0x34c6b2('0x11d0')][_0x34c6b2('0xcd2')]['length'];_0x5d1408++){_0xaa3d59[_0x34c6b2('0x8c8')]({'title':_0x2b8c90[_0x34c6b2('0x11d0')]['errors'][_0x5d1408]['type'],'msg':_0x2b8c90[_0x34c6b2('0x11d0')][_0x34c6b2('0xcd2')][_0x5d1408][_0x34c6b2('0x27e8')]});}}else _0xaa3d59['error']({'title':_0x2b8c90['status']?_0x34c6b2('0x27f2')+_0x2b8c90['status']+_0x34c6b2('0x1b7c')+_0x2b8c90[_0x34c6b2('0x1fd7')]:'api.template.update','msg':_0x2b8c90[_0x34c6b2('0x11d0')]?JSON[_0x34c6b2('0x3ad')](_0x2b8c90[_0x34c6b2('0x11d0')]['message']):_0x2b8c90[_0x34c6b2('0x94f')]()});});}function _0x5dd6af(_0x3e54fb){var _0x5b2997=_0x6a7979;_0x3a5a8c[_0x5b2997('0xcd2')]=[];var _0x5ce8ae=_0x135961[_0x5b2997('0xa5')]()[_0x5b2997('0x13e4')](_0x5b2997('0x24d0'))[_0x5b2997('0xd0')]('The\x20template\x20will\x20be\x20deleted.')[_0x5b2997('0x4d1')]('Delete\x20Template')['ok'](_0x5b2997('0x2198'))['cancel']('Cancel')[_0x5b2997('0x1345')](_0x3e54fb);_0x135961[_0x5b2997('0x26b2')](_0x5ce8ae)['then'](function(){var _0x27cc17=_0x5b2997;_0x38b15f['template'][_0x27cc17('0x229e')]({'id':_0x3a5a8c[_0x27cc17('0x12e2')]['id']})[_0x27cc17('0xe59')]['then'](function(){var _0x80b42b=_0x27cc17;_0x32d445()[_0x80b42b('0xa8b')](_0x3a5a8c[_0x80b42b('0x702')],{'id':_0x3a5a8c[_0x80b42b('0x12e2')]['id']}),_0xaa3d59[_0x80b42b('0x425')]({'title':_0x80b42b('0x76a'),'msg':(_0x3a5a8c[_0x80b42b('0x12e2')][_0x80b42b('0x2623')]||_0x80b42b('0x12e2'))+_0x80b42b('0x2182')}),_0x35b36b(_0x3a5a8c[_0x80b42b('0x12e2')]);})[_0x27cc17('0x223b')](function(_0x597c67){var _0x2ce647=_0x27cc17;if(_0x597c67[_0x2ce647('0x11d0')]&&_0x597c67[_0x2ce647('0x11d0')][_0x2ce647('0xcd2')]&&_0x597c67['data']['errors'][_0x2ce647('0x25ae')]){_0x3a5a8c[_0x2ce647('0xcd2')]=_0x597c67['data'][_0x2ce647('0xcd2')]||[{'message':_0x597c67[_0x2ce647('0x94f')](),'type':_0x2ce647('0x1861')}];for(var _0x1a4c4e=0x0;_0x1a4c4e<_0x597c67['data'][_0x2ce647('0xcd2')][_0x2ce647('0x25ae')];_0x1a4c4e++){_0xaa3d59['error']({'title':_0x597c67[_0x2ce647('0x11d0')][_0x2ce647('0xcd2')][_0x1a4c4e][_0x2ce647('0x62e')],'msg':_0x597c67[_0x2ce647('0x11d0')][_0x2ce647('0xcd2')][_0x1a4c4e]['message']});}}else _0xaa3d59['error']({'title':_0x597c67['status']?'API:'+_0x597c67[_0x2ce647('0x2833')]+_0x2ce647('0x1b7c')+_0x597c67[_0x2ce647('0x1fd7')]:_0x2ce647('0x1861'),'msg':_0x597c67[_0x2ce647('0x11d0')]?JSON[_0x2ce647('0x3ad')](_0x597c67[_0x2ce647('0x11d0')]['message']):_0x597c67[_0x2ce647('0x27e8')]||_0x597c67[_0x2ce647('0x94f')]()});});},function(){});}function _0x3da83d(_0x15e2fe){return _0x15e2fe===null?undefined:new Date(_0x15e2fe);}function _0x35b36b(_0x39aa6b){_0x135961['hide'](_0x39aa6b);}}const _0x144de2=_0x23f34f,_0x26827a=_0x59426a['p']+_0xb635d2('0xb6a');_0x2244ac[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x702'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x2244ac(_0x311266,_0x4080dc,_0x34812e,_0x48a5f8,_0x1b77cb,_0x2e5ee3,_0x262284,_0x5e1639,_0x2e9edb,_0x6e90a8,_0x5342aa,_0x535eb8,_0x37dbe1,_0xf703c0,_0x597331,_0x48be98,_0x532bca){var _0x3e891c=_0xb635d2,_0xad3eee=this;_0xad3eee[_0x3e891c('0x5c1')]=_0x48be98,_0xad3eee['setting']=_0x532bca,_0xad3eee[_0x3e891c('0x15a5')]=_0x597331[_0x3e891c('0x1ef8')](),_0xad3eee[_0x3e891c('0x702')]=_0x2e9edb||{'count':0x0,'rows':[]},_0xad3eee[_0x3e891c('0x154f')]=_0x6e90a8,_0xad3eee[_0x3e891c('0xb59')]=_0x5342aa&&_0x5342aa['count']==0x1?_0x5342aa[_0x3e891c('0x16a7')][0x0]:null,_0xad3eee[_0x3e891c('0xb3d')]=_0x597331['parseCrudPermissions'](_0xad3eee[_0x3e891c('0xb59')]?_0xad3eee[_0x3e891c('0xb59')][_0x3e891c('0xb3d')]:null),_0xad3eee[_0x3e891c('0x19b6')]=_0x3e891c('0x702'),_0xad3eee[_0x3e891c('0x14d6')]='',_0xad3eee['listOrderAsc']=null,_0xad3eee[_0x3e891c('0x209e')]=[],_0xad3eee[_0x3e891c('0xa16')]={'fields':_0x3e891c('0xe55'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0xad3eee[_0x3e891c('0x1752')]=_0x3018b1,_0xad3eee[_0x3e891c('0x1d9e')]=_0x35b0bb,_0xad3eee[_0x3e891c('0x425')]=_0x7396bf,_0xad3eee['getTemplates']=_0x5f30a9,_0xad3eee[_0x3e891c('0x16ab')]=_0x1fca39,_0xad3eee[_0x3e891c('0xd13')]=_0x50f80d,_0xad3eee['exportSelectedTemplates']=_0x4f87ae,_0xad3eee[_0x3e891c('0x1698')]=_0x750e7,_0xad3eee[_0x3e891c('0xc5f')]=_0x47c247,_0xad3eee['selectAllTemplates']=_0x25eaa8;function _0x3018b1(_0x3e0aef,_0x149bbc){var _0x2542a5=_0x3e891c;_0x1b77cb[_0x2542a5('0x26b2')]({'controller':'CreateOrEditTemplateDialogController','controllerAs':'vm','templateUrl':_0x26827a,'parent':angular[_0x2542a5('0x24a1')](_0x2e5ee3['body']),'targetEvent':_0x149bbc,'clickOutsideToClose':!![],'locals':{'template':_0x3e0aef,'templates':_0xad3eee[_0x2542a5('0x702')]['rows'],'license':_0xad3eee[_0x2542a5('0x5c1')],'setting':null,'crudPermissions':_0xad3eee[_0x2542a5('0xb3d')]}});}function _0x35b0bb(_0x4804a9,_0x26c49d){var _0x28828c=_0x3e891c,_0x34be63=_0x1b77cb[_0x28828c('0xa5')]()['title'](_0x28828c('0x346')+_0x32d445()[_0x28828c('0x1df2')](_0x28828c('0x12e2'))+'?')['htmlContent'](_0x28828c('0xab2')+(_0x4804a9[_0x28828c('0x2623')]||_0x28828c('0x12e2'))+_0x28828c('0x27bb')+_0x28828c('0x21bd'))[_0x28828c('0x4d1')]('delete\x20template')[_0x28828c('0x1345')](_0x26c49d)['ok']('OK')[_0x28828c('0x2c1')](_0x28828c('0x17'));_0x1b77cb['show'](_0x34be63)[_0x28828c('0xe19')](function(){_0x50f80d(_0x4804a9);},function(){var _0x200460=_0x28828c;console[_0x200460('0x1fe9')]('CANCEL');});}var _0x363eb8=!![],_0x5007bb=0x1;_0x311266[_0x3e891c('0x107')](_0x3e891c('0x20cb'),function(_0xb2b70d,_0xf3a193){var _0x2f82f0=_0x3e891c;_0x363eb8?_0x262284(function(){_0x363eb8=![];}):(!_0xf3a193&&(_0x5007bb=_0xad3eee[_0x2f82f0('0xa16')]['page']),_0xb2b70d!==_0xf3a193&&(_0xad3eee[_0x2f82f0('0xa16')][_0x2f82f0('0xc08')]=0x1),!_0xb2b70d&&(_0xad3eee[_0x2f82f0('0xa16')][_0x2f82f0('0xc08')]=_0x5007bb),_0xad3eee[_0x2f82f0('0x1f1e')]());});function _0x7396bf(_0xf12da4){var _0x35a44a=_0x3e891c;_0xad3eee[_0x35a44a('0x702')]=_0xf12da4||{'count':0x0,'rows':[]};}function _0x5f30a9(){var _0x4c3943=_0x3e891c;_0xad3eee[_0x4c3943('0xa16')]['offset']=(_0xad3eee[_0x4c3943('0xa16')][_0x4c3943('0xc08')]-0x1)*_0xad3eee[_0x4c3943('0xa16')][_0x4c3943('0x1b6d')],_0x597331['hasRole'](_0x4c3943('0xd14'))?_0xad3eee[_0x4c3943('0x9c8')]=_0x535eb8[_0x4c3943('0x12e2')][_0x4c3943('0x22d5')](_0xad3eee[_0x4c3943('0xa16')],_0x7396bf)[_0x4c3943('0xe59')]:(_0xad3eee['query']['id']=_0xad3eee[_0x4c3943('0x154f')]['id'],_0xad3eee['query'][_0x4c3943('0x1e59')]=_0x4c3943('0x1985'),_0xad3eee['promise']=_0x535eb8[_0x4c3943('0x154f')][_0x4c3943('0x14e6')](_0xad3eee[_0x4c3943('0xa16')],_0x7396bf)[_0x4c3943('0xe59')]);}function _0x1fca39(_0x2d9b9b,_0x5617a9){var _0x5b4203=_0x3e891c;_0x1b77cb[_0x5b4203('0x26b2')]({'controller':_0x5b4203('0x1bb1'),'controllerAs':'vm','templateUrl':_0x26827a,'parent':angular[_0x5b4203('0x24a1')](_0x2e5ee3[_0x5b4203('0x19b2')]),'targetEvent':_0x2d9b9b,'clickOutsideToClose':!![],'locals':{'template':_0x5617a9,'templates':_0xad3eee[_0x5b4203('0x702')][_0x5b4203('0x16a7')],'license':_0xad3eee[_0x5b4203('0x5c1')],'setting':_0xad3eee[_0x5b4203('0x22f1')],'crudPermissions':_0xad3eee[_0x5b4203('0xb3d')]}});}function _0x50f80d(_0x45ff4a){var _0x2dece5=_0x3e891c;_0x535eb8[_0x2dece5('0x12e2')]['delete']({'id':_0x45ff4a['id']})[_0x2dece5('0xe59')][_0x2dece5('0xe19')](function(){var _0x34d19d=_0x2dece5;_0x32d445()[_0x34d19d('0xa8b')](_0xad3eee['templates'][_0x34d19d('0x16a7')],{'id':_0x45ff4a['id']}),_0xad3eee[_0x34d19d('0x702')]['count']-=0x1,!_0xad3eee['templates']['rows'][_0x34d19d('0x25ae')]&&_0xad3eee[_0x34d19d('0x1f1e')](),_0xf703c0['success']({'title':_0x32d445()[_0x34d19d('0x1df2')](_0x34d19d('0xbc2'))+_0x34d19d('0x1219'),'msg':_0x45ff4a[_0x34d19d('0x2623')]?_0x45ff4a[_0x34d19d('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x2dece5('0x223b')](function(_0x5e4c24){var _0xec66f9=_0x2dece5;if(_0x5e4c24['data']&&_0x5e4c24[_0xec66f9('0x11d0')][_0xec66f9('0xcd2')]&&_0x5e4c24['data'][_0xec66f9('0xcd2')][_0xec66f9('0x25ae')]){_0xad3eee[_0xec66f9('0xcd2')]=_0x5e4c24[_0xec66f9('0x11d0')][_0xec66f9('0xcd2')]||[{'message':_0x5e4c24[_0xec66f9('0x94f')](),'type':_0xec66f9('0x808')}];for(var _0x10d4a7=0x0;_0x10d4a7<_0x5e4c24[_0xec66f9('0x11d0')][_0xec66f9('0xcd2')][_0xec66f9('0x25ae')];_0x10d4a7++){_0xf703c0[_0xec66f9('0x8c8')]({'title':_0x5e4c24['data'][_0xec66f9('0xcd2')][_0x10d4a7][_0xec66f9('0x62e')],'msg':_0x5e4c24['data'][_0xec66f9('0xcd2')][_0x10d4a7][_0xec66f9('0x27e8')]});}}else _0xf703c0[_0xec66f9('0x8c8')]({'title':_0x5e4c24['status']?_0xec66f9('0x27f2')+_0x5e4c24[_0xec66f9('0x2833')]+_0xec66f9('0x1b7c')+_0x5e4c24[_0xec66f9('0x1fd7')]:_0xec66f9('0x808'),'msg':_0x5e4c24[_0xec66f9('0x11d0')]?JSON[_0xec66f9('0x3ad')](_0x5e4c24[_0xec66f9('0x11d0')]['message']):_0x5e4c24['message']||_0x5e4c24['toString']()});});}function _0x4f87ae(){var _0x4cdf63=_0x3e891c,_0x1d7c91=angular['copy'](_0xad3eee[_0x4cdf63('0x209e')]);return _0xad3eee['selectedTemplates']=[],_0x1d7c91;}function _0x750e7(_0x30b17b){var _0x30fb5c=_0x3e891c,_0x3b6f17=_0x1b77cb[_0x30fb5c('0xa5')]()[_0x30fb5c('0x13e4')](_0x30fb5c('0x24b2'))[_0x30fb5c('0x221c')](''+_0xad3eee[_0x30fb5c('0x209e')]['length']+'\x20selected'+_0x30fb5c('0x21bd'))['ariaLabel'](_0x30fb5c('0x1f4f'))[_0x30fb5c('0x1345')](_0x30b17b)['ok']('OK')[_0x30fb5c('0x2c1')](_0x30fb5c('0x17'));_0x1b77cb[_0x30fb5c('0x26b2')](_0x3b6f17)['then'](function(){var _0x5024d1=_0x30fb5c;_0xad3eee[_0x5024d1('0x209e')]['forEach'](function(_0x15e011){_0x50f80d(_0x15e011);}),_0xad3eee['selectedTemplates']=[];});}function _0x47c247(){var _0x48771e=_0x3e891c;_0xad3eee[_0x48771e('0x209e')]=[];}function _0x25eaa8(){var _0xe9808e=_0x3e891c;_0xad3eee[_0xe9808e('0x209e')]=_0xad3eee[_0xe9808e('0x702')][_0xe9808e('0x16a7')];}}const _0x4b4bd1=_0x2244ac;_0x1ffc61['$inject']=['$scope','$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'trunks',_0xb635d2('0x1397'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x1ffc61(_0x2276dc,_0x36bcfe,_0x2af84c,_0x470b23,_0x23b3d4,_0x2f4f5c,_0x2783b7,_0x8c64c6,_0x59942d,_0x5355b2,_0x5b40dd,_0x3bf7d0,_0x21675c,_0x357354){var _0x18e30e=_0xb635d2,_0x5bd5a4=this;_0x5bd5a4[_0x18e30e('0x15a5')]=_0x5b40dd['getCurrentUser'](),_0x5bd5a4[_0x18e30e('0xcd2')]=[],_0x5bd5a4['setting']=_0x21675c,_0x5bd5a4[_0x18e30e('0x5c1')]=_0x3bf7d0,_0x5bd5a4[_0x18e30e('0xb3d')]=_0x357354,_0x5bd5a4[_0x18e30e('0x1ccb')]={},_0x5bd5a4[_0x18e30e('0x25ac')]=_0x5bd5a4[_0x18e30e('0x22f1')]&&_0x5bd5a4['setting'][_0x18e30e('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5bd5a4[_0x18e30e('0x13e4')]='TOOLS.EDIT_TRUNK',_0x5bd5a4[_0x18e30e('0x1397')]=angular[_0x18e30e('0x89')](_0x59942d),_0x5bd5a4[_0x18e30e('0x155e')]=_0x8c64c6,_0x5bd5a4[_0x18e30e('0x24b6')]=![];!_0x5bd5a4[_0x18e30e('0x1397')]&&(_0x5bd5a4['trunk']={'active':!![],'type':_0x18e30e('0x1083'),'dtmfmode':_0x18e30e('0x905'),'qualify':_0x18e30e('0x794'),'t38pt_udptl':'no'},_0x5bd5a4['title']=_0x18e30e('0xc47'),_0x5bd5a4[_0x18e30e('0x24b6')]=!![]);_0x5bd5a4[_0x18e30e('0x882')]=_0x2b21ca,_0x5bd5a4[_0x18e30e('0x1431')]=_0x1fe46f,_0x5bd5a4[_0x18e30e('0x1c73')]=_0xfcb582,_0x5bd5a4[_0x18e30e('0x2635')]=_0xaea504,_0x5bd5a4[_0x18e30e('0x2584')]=_0x5b98cf;function _0x2b21ca(){var _0x180a28=_0x18e30e;_0x5bd5a4[_0x180a28('0xcd2')]=[],_0x5355b2[_0x180a28('0x1397')][_0x180a28('0xe5e')](_0x5bd5a4[_0x180a28('0x1397')])[_0x180a28('0xe59')][_0x180a28('0xe19')](function(_0x156851){var _0x43c3a3=_0x180a28;_0x5bd5a4[_0x43c3a3('0x155e')][_0x43c3a3('0x14c9')](_0x156851[_0x43c3a3('0x250e')]()),_0x2783b7[_0x43c3a3('0x425')]({'title':_0x43c3a3('0x13be'),'msg':_0x5bd5a4[_0x43c3a3('0x1397')]['name']?_0x5bd5a4[_0x43c3a3('0x1397')][_0x43c3a3('0x2623')]+'\x20has\x20been\x20created!':''}),_0x5b98cf(_0x156851);})['catch'](function(_0x2b1a60){var _0x39f6d4=_0x180a28;if(_0x2b1a60['data']&&_0x2b1a60[_0x39f6d4('0x11d0')]['errors']&&_0x2b1a60[_0x39f6d4('0x11d0')]['errors'][_0x39f6d4('0x25ae')]){_0x5bd5a4[_0x39f6d4('0xcd2')]=_0x2b1a60[_0x39f6d4('0x11d0')]['errors']||[{'message':_0x2b1a60[_0x39f6d4('0x94f')](),'type':_0x39f6d4('0x8d0')}];for(var _0x226538=0x0;_0x226538<_0x2b1a60[_0x39f6d4('0x11d0')]['errors']['length'];_0x226538+=0x1){_0x2783b7[_0x39f6d4('0x8c8')]({'title':_0x2b1a60[_0x39f6d4('0x11d0')]['errors'][_0x226538][_0x39f6d4('0x62e')],'msg':_0x2b1a60[_0x39f6d4('0x11d0')][_0x39f6d4('0xcd2')][_0x226538][_0x39f6d4('0x27e8')]});}}else _0x2783b7[_0x39f6d4('0x8c8')]({'title':_0x2b1a60[_0x39f6d4('0x2833')]?_0x39f6d4('0x27f2')+_0x2b1a60[_0x39f6d4('0x2833')]+_0x39f6d4('0x1b7c')+_0x2b1a60[_0x39f6d4('0x1fd7')]:'api.trunk.save','msg':_0x2b1a60['data']?JSON[_0x39f6d4('0x3ad')](_0x2b1a60[_0x39f6d4('0x11d0')][_0x39f6d4('0x27e8')]):_0x2b1a60[_0x39f6d4('0x94f')]()});});}function _0x1fe46f(){var _0x4f0e16=_0x18e30e;_0x5bd5a4[_0x4f0e16('0xcd2')]=[],_0x5355b2['trunk'][_0x4f0e16('0xa70')]({'id':_0x5bd5a4['trunk']['id']},_0x5bd5a4[_0x4f0e16('0x1397')])[_0x4f0e16('0xe59')][_0x4f0e16('0xe19')](function(_0xd07423){var _0x32e0d7=_0x4f0e16,_0x2d0f34=_0x32d445()[_0x32e0d7('0xf15')](_0x5bd5a4[_0x32e0d7('0x155e')],{'id':_0xd07423['id']});_0x2d0f34&&_0x32d445()[_0x32e0d7('0x1d8')](_0x2d0f34,_0x32d445()['pick'](_0xd07423[_0x32e0d7('0x250e')](),_0x32d445()[_0x32e0d7('0x1234')](_0x2d0f34))),_0x2783b7[_0x32e0d7('0x425')]({'title':'Trunk\x20properly\x20saved!','msg':_0x5bd5a4[_0x32e0d7('0x1397')][_0x32e0d7('0x2623')]?_0x5bd5a4[_0x32e0d7('0x1397')][_0x32e0d7('0x2623')]+_0x32e0d7('0x1c19'):''}),_0x5b98cf(_0xd07423);})['catch'](function(_0x21076a){var _0x1f3e55=_0x4f0e16;if(_0x21076a[_0x1f3e55('0x11d0')]&&_0x21076a[_0x1f3e55('0x11d0')][_0x1f3e55('0xcd2')]&&_0x21076a[_0x1f3e55('0x11d0')]['errors'][_0x1f3e55('0x25ae')]){_0x5bd5a4[_0x1f3e55('0xcd2')]=_0x21076a['data'][_0x1f3e55('0xcd2')]||[{'message':_0x21076a[_0x1f3e55('0x94f')](),'type':_0x1f3e55('0x25e3')}];for(var _0xf106d7=0x0;_0xf106d7<_0x21076a['data']['errors']['length'];_0xf106d7++){_0x2783b7['error']({'title':_0x21076a[_0x1f3e55('0x11d0')][_0x1f3e55('0xcd2')][_0xf106d7][_0x1f3e55('0x62e')],'msg':_0x21076a['data'][_0x1f3e55('0xcd2')][_0xf106d7][_0x1f3e55('0x27e8')]});}}else _0x2783b7[_0x1f3e55('0x8c8')]({'title':_0x21076a[_0x1f3e55('0x2833')]?_0x1f3e55('0x27f2')+_0x21076a[_0x1f3e55('0x2833')]+_0x1f3e55('0x1b7c')+_0x21076a[_0x1f3e55('0x1fd7')]:_0x1f3e55('0x25e3'),'msg':_0x21076a[_0x1f3e55('0x11d0')]?JSON[_0x1f3e55('0x3ad')](_0x21076a[_0x1f3e55('0x11d0')][_0x1f3e55('0x27e8')]):_0x21076a[_0x1f3e55('0x94f')]()});});}function _0xfcb582(_0x41799a){var _0x45e34e=_0x18e30e;_0x5bd5a4[_0x45e34e('0xcd2')]=[];var _0x20575f=_0x470b23[_0x45e34e('0xa5')]()[_0x45e34e('0x13e4')]('Are\x20you\x20sure?')[_0x45e34e('0xd0')](_0x45e34e('0x2155'))[_0x45e34e('0x4d1')](_0x45e34e('0x26b8'))['ok'](_0x45e34e('0x2198'))['cancel'](_0x45e34e('0x8a3'))['targetEvent'](_0x41799a);_0x470b23['show'](_0x20575f)['then'](function(){var _0x5cf4d2=_0x45e34e;_0x5355b2[_0x5cf4d2('0x1397')][_0x5cf4d2('0x229e')]({'id':_0x5bd5a4[_0x5cf4d2('0x1397')]['id']})[_0x5cf4d2('0xe59')][_0x5cf4d2('0xe19')](function(){var _0x1c53d2=_0x5cf4d2;_0x32d445()[_0x1c53d2('0xa8b')](_0x5bd5a4[_0x1c53d2('0x155e')],{'id':_0x5bd5a4[_0x1c53d2('0x1397')]['id']}),_0x2783b7[_0x1c53d2('0x425')]({'title':_0x1c53d2('0x1f22'),'msg':(_0x5bd5a4[_0x1c53d2('0x1397')][_0x1c53d2('0x2623')]||_0x1c53d2('0x1397'))+_0x1c53d2('0x2182')}),_0x5b98cf(_0x5bd5a4['trunk']);})[_0x5cf4d2('0x223b')](function(_0x1ecc73){var _0x47cacd=_0x5cf4d2;if(_0x1ecc73[_0x47cacd('0x11d0')]&&_0x1ecc73[_0x47cacd('0x11d0')][_0x47cacd('0xcd2')]&&_0x1ecc73['data'][_0x47cacd('0xcd2')][_0x47cacd('0x25ae')]){_0x5bd5a4[_0x47cacd('0xcd2')]=_0x1ecc73[_0x47cacd('0x11d0')][_0x47cacd('0xcd2')]||[{'message':_0x1ecc73[_0x47cacd('0x94f')](),'type':_0x47cacd('0x14f9')}];for(var _0x8c7da6=0x0;_0x8c7da6<_0x1ecc73[_0x47cacd('0x11d0')]['errors']['length'];_0x8c7da6++){_0x2783b7[_0x47cacd('0x8c8')]({'title':_0x1ecc73[_0x47cacd('0x11d0')][_0x47cacd('0xcd2')][_0x8c7da6][_0x47cacd('0x62e')],'msg':_0x1ecc73[_0x47cacd('0x11d0')][_0x47cacd('0xcd2')][_0x8c7da6][_0x47cacd('0x27e8')]});}}else _0x2783b7['error']({'title':_0x1ecc73[_0x47cacd('0x2833')]?_0x47cacd('0x27f2')+_0x1ecc73['status']+_0x47cacd('0x1b7c')+_0x1ecc73[_0x47cacd('0x1fd7')]:'api.trunk.delete','msg':_0x1ecc73[_0x47cacd('0x11d0')]?JSON[_0x47cacd('0x3ad')](_0x1ecc73[_0x47cacd('0x11d0')]['message']):_0x1ecc73[_0x47cacd('0x27e8')]||_0x1ecc73[_0x47cacd('0x94f')]()});});},function(){});}function _0xaea504(_0x137539){return _0x137539===null?undefined:new Date(_0x137539);}function _0x5b98cf(_0x2e0f8d){_0x470b23['hide'](_0x2e0f8d);}}const _0x2ab1e7=_0x1ffc61;_0x5373a6[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$state',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x1397'),_0xb635d2('0x155e'),'$translate'];function _0x5373a6(_0x57faeb,_0x3d8cc8,_0x5ad3f5,_0x3e202a,_0x578d0d,_0x41e0bb,_0x39d8d5){var _0x52d34c=_0xb635d2,_0x44fbe7=this;_0x44fbe7['newTrunk']=!![],_0x44fbe7[_0x52d34c('0x1397')]=angular[_0x52d34c('0x89')](_0x578d0d),_0x44fbe7[_0x52d34c('0x155e')]=_0x41e0bb,_0x44fbe7[_0x52d34c('0x13e4')]=_0x39d8d5[_0x52d34c('0x2159')](_0x52d34c('0x15b8'));_0x578d0d&&_0x578d0d[_0x52d34c('0x2623')]&&(_0x44fbe7['title']+=':\x20'+_0x578d0d[_0x52d34c('0x2623')]);_0x44fbe7[_0x52d34c('0x260')]=_0x299aff,_0x44fbe7['closeDialog']=_0xd5bc64;function _0x299aff(){var _0x2e20a1=_0x52d34c;return _0x3e202a[_0x2e20a1('0x1397')][_0x2e20a1('0x2384')]({'id':_0x578d0d['id']},_0x44fbe7[_0x2e20a1('0x1397')])[_0x2e20a1('0xe59')]['then'](function(_0x3bfd27){var _0x5303a6=_0x2e20a1;_0x44fbe7[_0x5303a6('0x155e')][_0x5303a6('0x14c9')](_0x3bfd27[_0x5303a6('0x250e')]()),_0x5ad3f5[_0x5303a6('0x425')]({'title':_0x5303a6('0x22d3'),'msg':_0x44fbe7[_0x5303a6('0x1397')]['name']?_0x44fbe7[_0x5303a6('0x1397')][_0x5303a6('0x2623')]+'\x20has\x20been\x20cloned!':''}),_0x3d8cc8['go'](_0x5303a6('0x257b'),{'id':_0x3bfd27['id']}),_0xd5bc64(_0x3bfd27);})['catch'](function(_0x5e8926){var _0x18441a=_0x2e20a1;if(_0x5e8926['data']&&_0x5e8926[_0x18441a('0x11d0')][_0x18441a('0xcd2')]&&_0x5e8926['data'][_0x18441a('0xcd2')]['length']){_0x44fbe7[_0x18441a('0xcd2')]=_0x5e8926[_0x18441a('0x11d0')][_0x18441a('0xcd2')]||[{'message':_0x5e8926[_0x18441a('0x94f')](),'type':_0x18441a('0x85b')}];for(var _0x186931=0x0;_0x186931<_0x5e8926[_0x18441a('0x11d0')][_0x18441a('0xcd2')][_0x18441a('0x25ae')];_0x186931+=0x1){_0x5ad3f5[_0x18441a('0x8c8')]({'title':_0x5e8926[_0x18441a('0x11d0')]['errors'][_0x186931][_0x18441a('0x62e')],'msg':_0x5e8926[_0x18441a('0x11d0')][_0x18441a('0xcd2')][_0x186931][_0x18441a('0x27e8')]});}}else _0x5ad3f5['error']({'title':_0x5e8926[_0x18441a('0x2833')]?_0x18441a('0x27f2')+_0x5e8926[_0x18441a('0x2833')]+_0x18441a('0x1b7c')+_0x5e8926[_0x18441a('0x1fd7')]:'api.trunk.clone','msg':_0x5e8926[_0x18441a('0x11d0')]?JSON[_0x18441a('0x3ad')](_0x5e8926[_0x18441a('0x11d0')][_0x18441a('0x27e8')]):_0x5e8926[_0x18441a('0x94f')]()});});}function _0xd5bc64(_0x2d7711){var _0x58c5d1=_0x52d34c;_0x57faeb[_0x58c5d1('0x11ed')](_0x2d7711);}}const _0x3d440b=_0x5373a6,_0xd1bfb0=_0x59426a['p']+_0xb635d2('0x1c9b');_0x449cec[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x1397'),_0xb635d2('0xb59')];function _0x449cec(_0x3b198b,_0x43c045,_0x4d3e92,_0x3cdc59,_0x189c35,_0xa169ac,_0x42ca08,_0x33664c,_0x2fcd02,_0x57abbc,_0x195d2b,_0xae16af){var _0x345505=_0xb635d2,_0x58889f=this;_0x58889f[_0x345505('0x15a5')]=_0x57abbc['getCurrentUser'](),_0x58889f[_0x345505('0x5c1')]=_0xa169ac,_0x58889f['setting']=_0x42ca08,_0x58889f[_0x345505('0x25ac')]=_0x58889f[_0x345505('0x22f1')][_0x345505('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x58889f[_0x345505('0x2170')]=_0x43c045[_0x345505('0xec0')]()+_0x345505('0x21a8')+_0x43c045[_0x345505('0x3b7')](),_0x58889f[_0x345505('0x1397')]=_0x195d2b||_0x3b198b[_0x345505('0x2ef')][_0x345505('0x1397')]||{},_0x58889f['userProfileSection']=_0xae16af&&_0xae16af['count']==0x1?_0xae16af[_0x345505('0x16a7')][0x0]:null,_0x58889f[_0x345505('0xb3d')]=_0x57abbc[_0x345505('0xd31')](_0x58889f[_0x345505('0xb59')]?_0x58889f[_0x345505('0xb59')]['crudPermissions']:null),_0x58889f[_0x345505('0x1ccb')]={},_0x58889f[_0x345505('0xc7b')]=_0x3b198b[_0x345505('0x2ef')][_0x345505('0x435')]||0x0,_0x58889f['gotogoto']=_0x128c98,_0x58889f[_0x345505('0x26b7')]=_0x1b1453,_0x58889f[_0x345505('0xbdc')]=_0x2fcd02[_0x345505('0x1e67')],_0x58889f[_0x345505('0x18a1')]=_0x21240d,_0x58889f[_0x345505('0x1431')]=_0x3955bb,_0x57abbc[_0x345505('0x179e')]('admin')?_0x33664c[_0x345505('0x2768')][_0x345505('0x22d5')]({'fields':'id,name','sort':_0x345505('0x2623')})[_0x345505('0xe59')]['then'](function(_0x130182){var _0x1e10f0=_0x345505;_0x58889f[_0x1e10f0('0x3c1')]=_0x130182['rows']||[];})['catch'](function(_0x458d51){var _0x1db37a=_0x345505;_0x2fcd02[_0x1db37a('0x8c8')]({'title':_0x458d51[_0x1db37a('0x2833')]?_0x1db37a('0x27f2')+_0x458d51['status']+_0x1db37a('0x1b7c')+_0x458d51[_0x1db37a('0x1fd7')]:_0x1db37a('0x17ac'),'msg':_0x458d51[_0x1db37a('0x11d0')]?JSON[_0x1db37a('0x3ad')](_0x458d51[_0x1db37a('0x11d0')]):_0x458d51[_0x1db37a('0x94f')]()});}):_0x33664c[_0x345505('0x2768')][_0x345505('0x22d5')]({'fields':_0x345505('0x104'),'sort':_0x345505('0x2623')})['$promise']['then'](function(_0x421960){var _0x529088=_0x345505;_0x58889f[_0x529088('0x3c1')]=_0x421960['rows']||[];})[_0x345505('0xe19')](function(){var _0x37ed76=_0x345505;return _0x33664c[_0x37ed76('0xb59')][_0x37ed76('0x22d5')]({'userProfileId':_0x58889f[_0x37ed76('0x15a5')][_0x37ed76('0x1d04')],'sectionId':0x195})[_0x37ed76('0xe59')];})['then'](function(_0x4b09d3){var _0x445d15=_0x345505,_0x2d8c7a=_0x4b09d3&&_0x4b09d3[_0x445d15('0x16a7')]?_0x4b09d3[_0x445d15('0x16a7')][0x0]:null;if(!_0x2d8c7a)return _0x33664c[_0x445d15('0x2768')][_0x445d15('0x22d5')]({'fields':_0x445d15('0x104'),'sort':'name','defaultEntry':0x1})[_0x445d15('0xe59')][_0x445d15('0xe19')](function(_0x378f8e){var _0x4301a7=_0x445d15;_0x58889f['contexts']=_0x378f8e[_0x4301a7('0x16a7')]||[];});else{if(!_0x2d8c7a[_0x445d15('0x11fd')])return _0x33664c['userProfileResource'][_0x445d15('0x22d5')]({'sectionId':_0x2d8c7a['id']})[_0x445d15('0xe59')][_0x445d15('0xe19')](function(_0xed25af){var _0x332e21=_0x445d15,_0x34a948=_0x32d445()['map'](_0xed25af['rows'],function(_0x380561){var _0x3240ee=a0_0x5325;return _0x32d445()[_0x3240ee('0xf15')](_0x58889f['contexts'],{'id':_0x380561['resourceId']});}),_0xc3fed3=null;_0x58889f['trunk']&&(_0xc3fed3=_0x32d445()[_0x332e21('0xf15')](_0x58889f[_0x332e21('0x3c1')],{'name':_0x58889f[_0x332e21('0x1397')]['context']}));if(_0xc3fed3&&!_0x32d445()[_0x332e21('0x201a')](_0x34a948,['id',_0xc3fed3['id']])){var _0x111c7d=_0x32d445()[_0x332e21('0xf15')](_0x58889f[_0x332e21('0x3c1')],{'id':_0xc3fed3['id']});_0x111c7d[_0x332e21('0x1e9d')]=![],_0x34a948[_0x332e21('0xb76')](_0x111c7d);}_0x58889f['contexts']=_0x34a948;});}})[_0x345505('0x223b')](function(_0x9b29a8){var _0x24f547=_0x345505;_0x2fcd02[_0x24f547('0x8c8')]({'title':_0x9b29a8[_0x24f547('0x2833')]?_0x24f547('0x27f2')+_0x9b29a8[_0x24f547('0x2833')]+_0x24f547('0x1b7c')+_0x9b29a8[_0x24f547('0x1fd7')]:_0x24f547('0x12ed'),'msg':_0x9b29a8[_0x24f547('0x11d0')]?JSON['stringify'](_0x9b29a8[_0x24f547('0x11d0')]):_0x9b29a8['toString']()});});function _0x128c98(){var _0x448c2f=_0x345505;if(_0x57abbc[_0x448c2f('0x179e')](_0x448c2f('0xd14')))_0x3b198b['go']('app.voice.realtime.trunks',{});else return _0x33664c['userProfileSection'][_0x448c2f('0x22d5')]({'userProfileId':_0x57abbc[_0x448c2f('0x1ef8')]()[_0x448c2f('0x1d04')],'sectionId':0x19b})[_0x448c2f('0xe59')][_0x448c2f('0xe19')](function(_0x51d7e6){var _0x1e584e=_0x448c2f,_0x32a820=_0x51d7e6&&_0x51d7e6[_0x1e584e('0x16a7')]?_0x51d7e6['rows'][0x0]:null;_0x32a820&&_0x32a820[_0x1e584e('0x4ef')]?_0x3b198b['go'](_0x1e584e('0x235e'),{}):_0x2fcd02[_0x1e584e('0x1e67')]({'title':_0x189c35['instant'](_0x1e584e('0x2786')),'msg':_0x189c35[_0x1e584e('0x2159')](_0x1e584e('0x4bb'))});})[_0x448c2f('0x223b')](function(_0x1e369b){var _0x387688=_0x448c2f;_0x2fcd02[_0x387688('0x8c8')]({'title':_0x1e369b['status']?_0x387688('0x27f2')+_0x1e369b[_0x387688('0x2833')]+'\x20-\x20'+_0x1e369b['statusText']:_0x387688('0x343'),'msg':_0x1e369b[_0x387688('0x2833')]?JSON[_0x387688('0x3ad')](_0x1e369b[_0x387688('0x11d0')]):_0x1e369b[_0x387688('0x94f')]()});});}function _0x1b1453(_0x3c09a0,_0x488d7f){var _0x271a0a=_0x345505;_0x4d3e92[_0x271a0a('0x26b2')]({'controller':_0x271a0a('0x1837'),'controllerAs':'vm','templateUrl':_0xd1bfb0,'parent':angular[_0x271a0a('0x24a1')](_0x3cdc59[_0x271a0a('0x19b2')]),'targetEvent':_0x488d7f,'clickOutsideToClose':!![],'locals':{'trunk':_0x3c09a0,'trunks':_0x58889f[_0x271a0a('0x155e')]?_0x58889f[_0x271a0a('0x155e')][_0x271a0a('0x16a7')]:[],'crudPermissions':_0x58889f[_0x271a0a('0xb3d')]}});}function _0x21240d(){var _0x47e3fb=_0x345505;_0x3b198b['go'](_0x47e3fb('0x1ef3'),{},{'reload':_0x47e3fb('0x1ef3')});}function _0x3955bb(){var _0x2de9f3=_0x345505;_0x33664c[_0x2de9f3('0x1397')][_0x2de9f3('0xa70')]({'id':_0x58889f[_0x2de9f3('0x1397')]['id']},_0x58889f['trunk'])[_0x2de9f3('0xe59')][_0x2de9f3('0xe19')](function(){var _0x25c277=_0x2de9f3;_0x2fcd02[_0x25c277('0x425')]({'title':'Trunk\x20updated!','msg':_0x58889f[_0x25c277('0x1397')][_0x25c277('0x2623')]?_0x58889f[_0x25c277('0x1397')][_0x25c277('0x2623')]+_0x25c277('0x283b'):''});})['catch'](function(_0x59e267){var _0x2556e5=_0x2de9f3;_0x2fcd02[_0x2556e5('0x8c8')]({'title':_0x59e267[_0x2556e5('0x2833')]?_0x2556e5('0x27f2')+_0x59e267[_0x2556e5('0x2833')]+_0x2556e5('0x1b7c')+_0x59e267[_0x2556e5('0x1fd7')]:'SYSTEM:GETtrunk','msg':_0x59e267['data']?JSON[_0x2556e5('0x3ad')](_0x59e267[_0x2556e5('0x11d0')]):_0x59e267[_0x2556e5('0x94f')]()});});}}const _0x27fde3=_0x449cec,_0x22118b=_0x59426a['p']+_0xb635d2('0x1bcf');_0x3a2236['$inject']=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x155e'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x3a2236(_0x454bf7,_0x97dc44,_0x42b16b,_0x582802,_0x26a3d1,_0x5ea430,_0x52fa9d,_0x3cd4f9,_0x1f1cb1,_0x560ba8,_0x20bcb4,_0x37bac4,_0x1982cf,_0x30ccb1,_0x1b8872,_0x1ded47,_0x1f21ea){var _0x5b862e=_0xb635d2,_0x4752c5=this;_0x4752c5[_0x5b862e('0x5c1')]=_0x1ded47,_0x4752c5[_0x5b862e('0x22f1')]=_0x1f21ea,_0x4752c5['currentUser']=_0x1b8872[_0x5b862e('0x1ef8')](),_0x4752c5[_0x5b862e('0x155e')]=_0x1f1cb1||{'count':0x0,'rows':[]},_0x4752c5['userProfile']=_0x560ba8,_0x4752c5['userProfileSection']=_0x20bcb4&&_0x20bcb4[_0x5b862e('0x148b')]==0x1?_0x20bcb4[_0x5b862e('0x16a7')][0x0]:null,_0x4752c5[_0x5b862e('0xb3d')]=_0x1b8872['parseCrudPermissions'](_0x4752c5[_0x5b862e('0xb59')]?_0x4752c5[_0x5b862e('0xb59')][_0x5b862e('0xb3d')]:null),_0x4752c5[_0x5b862e('0x19b6')]='trunks',_0x4752c5['listOrder']='',_0x4752c5[_0x5b862e('0x190c')]=null,_0x4752c5['selectedTrunks']=[],_0x4752c5['query']={'fields':'createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields','sort':_0x5b862e('0x7e8'),'limit':0xa,'page':0x1},_0x4752c5[_0x5b862e('0x143e')]=_0x32d445()[_0x5b862e('0x226f')]([{'option':'Friend','value':_0x5b862e('0x540')},{'option':_0x5b862e('0x2630'),'value':'\x27user\x27'},{'option':_0x5b862e('0x5d0'),'value':_0x5b862e('0x1402')}],function(_0x29b828){var _0x140221=_0x5b862e;return _0x32d445()[_0x140221('0x1b42')](_0x29b828['value'],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0x2049')]=_0x32d445()[_0x5b862e('0x226f')]([{'option':_0x5b862e('0x905'),'value':_0x5b862e('0x239')},{'option':_0x5b862e('0x1e67'),'value':'\x27info\x27'},{'option':_0x5b862e('0x108b'),'value':_0x5b862e('0x119f')},{'option':'inband','value':_0x5b862e('0xf2c')},{'option':_0x5b862e('0xa1e'),'value':_0x5b862e('0x277b')}],function(_0x1d8017){var _0x4ac905=_0x5b862e;return _0x32d445()[_0x4ac905('0x1b42')](_0x1d8017[_0x4ac905('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5['arraynat']=_0x32d445()[_0x5b862e('0x226f')]([{'option':_0x5b862e('0x253c'),'value':_0x5b862e('0x12cd')},{'option':'comedia','value':_0x5b862e('0x10b4')},{'option':_0x5b862e('0x794'),'value':'\x27yes\x27'},{'option':'no','value':_0x5b862e('0x16f2')},{'option':_0x5b862e('0x1045'),'value':'\x27never\x27'},{'option':'route','value':_0x5b862e('0x7d2')}],function(_0x383ceb){var _0x4c6838=_0x5b862e;return _0x32d445()['replace'](_0x383ceb[_0x4c6838('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0x11f9')]=_0x32d445()[_0x5b862e('0x226f')]([{'option':_0x5b862e('0x794'),'value':_0x5b862e('0x11bd')},{'option':'no','value':'\x27no\x27'}],function(_0x1672ec){var _0x57213f=_0x5b862e;return _0x32d445()[_0x57213f('0x1b42')](_0x1672ec[_0x57213f('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0xe7d')]=_0x32d445()[_0x5b862e('0x226f')]([{'option':_0x5b862e('0xb87'),'value':_0x5b862e('0x4a5')},{'option':_0x5b862e('0x171b'),'value':'\x27alaw\x27'},{'option':_0x5b862e('0x2844'),'value':_0x5b862e('0x4db')},{'option':_0x5b862e('0x274c'),'value':_0x5b862e('0x28a6')},{'option':'g726','value':'\x27g726\x27'},{'option':'g722','value':'\x27g722\x27'},{'option':'g729','value':'\x27g729\x27'},{'option':_0x5b862e('0x20bf'),'value':_0x5b862e('0x2751')},{'option':_0x5b862e('0x2608'),'value':'\x27opus\x27'},{'option':_0x5b862e('0x1e33'),'value':_0x5b862e('0xe40')}],function(_0x5c882c){var _0x22d6f2=_0x5b862e;return _0x32d445()['replace'](_0x5c882c[_0x22d6f2('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5['arrayinsecure']=_0x32d445()['keyBy']([{'option':'port','value':'\x27port\x27'},{'option':_0x5b862e('0x19d0'),'value':_0x5b862e('0x8ef')},{'option':_0x5b862e('0x65e'),'value':_0x5b862e('0x1e76')}],function(_0x4892b1){var _0x2a3c5e=_0x5b862e;return _0x32d445()[_0x2a3c5e('0x1b42')](_0x4892b1[_0x2a3c5e('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0x353')]=_0x32d445()[_0x5b862e('0x226f')]([{'option':'yes','value':_0x5b862e('0x11bd')},{'option':'no','value':'\x27no\x27'},{'option':_0x5b862e('0x1161'),'value':_0x5b862e('0x1a5b')},{'option':_0x5b862e('0xa70'),'value':_0x5b862e('0x18a9')}],function(_0x3b3f44){var _0x5cc952=_0x5b862e;return _0x32d445()[_0x5cc952('0x1b42')](_0x3b3f44[_0x5cc952('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5['arraycallcounter']=_0x32d445()[_0x5b862e('0x226f')]([{'option':_0x5b862e('0x794'),'value':_0x5b862e('0x11bd')},{'option':'no','value':'\x27no\x27'}],function(_0x46d769){var _0x5939ef=_0x5b862e;return _0x32d445()[_0x5939ef('0x1b42')](_0x46d769['value'],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0x247')]=_0x32d445()[_0x5b862e('0x226f')]([{'option':_0x5b862e('0x794'),'value':_0x5b862e('0x11bd')},{'option':'no','value':'\x27no\x27'}],function(_0x345389){var _0x30416f=_0x5b862e;return _0x32d445()[_0x30416f('0x1b42')](_0x345389[_0x30416f('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5['arraytrustrpid']=_0x32d445()['keyBy']([{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x5b862e('0x16f2')}],function(_0x2f81d7){var _0x50ba8f=_0x5b862e;return _0x32d445()[_0x50ba8f('0x1b42')](_0x2f81d7[_0x50ba8f('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5['arraysendrpid']=_0x32d445()[_0x5b862e('0x226f')]([{'option':_0x5b862e('0x794'),'value':_0x5b862e('0x11bd')},{'option':'no','value':_0x5b862e('0x16f2')},{'option':_0x5b862e('0x87a'),'value':_0x5b862e('0x423')}],function(_0x284c0b){var _0x49d531=_0x5b862e;return _0x32d445()[_0x49d531('0x1b42')](_0x284c0b[_0x49d531('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0x871')]=_0x32d445()[_0x5b862e('0x226f')]([{'option':'yes','value':_0x5b862e('0x11bd')},{'option':'no','value':_0x5b862e('0x16f2')}],function(_0x5cd9a6){var _0x18c9b1=_0x5b862e;return _0x32d445()[_0x18c9b1('0x1b42')](_0x5cd9a6['value'],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0x207b')]=_0x32d445()[_0x5b862e('0x226f')]([{'option':_0x5b862e('0x1966'),'value':_0x5b862e('0x1c33')},{'option':_0x5b862e('0x127b'),'value':_0x5b862e('0xc4')},{'option':'ws','value':_0x5b862e('0x1c4e')},{'option':_0x5b862e('0x1263'),'value':'\x27wss\x27'},{'option':_0x5b862e('0x16cb'),'value':_0x5b862e('0x2868')}],function(_0x183385){var _0x388b78=_0x5b862e;return _0x32d445()['replace'](_0x183385[_0x388b78('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0xdfe')]=_0x32d445()['keyBy']([{'option':_0x5b862e('0x358'),'value':_0x5b862e('0x11bd')},{'option':'No','value':_0x5b862e('0x16f2')},{'option':_0x5b862e('0x2d2'),'value':_0x5b862e('0x23a1')}],function(_0x416d9a){var _0x59e54c=_0x5b862e;return _0x32d445()[_0x59e54c('0x1b42')](_0x416d9a[_0x59e54c('0x2')],new RegExp('\x27','g'),'');}),_0x4752c5[_0x5b862e('0x16a0')]=_0xf9bb5,_0x4752c5[_0x5b862e('0x26b7')]=_0x317725,_0x4752c5[_0x5b862e('0x20e3')]=_0x935a86,_0x4752c5['deleteconfirm']=_0x2260de,_0x4752c5[_0x5b862e('0x425')]=_0x1a0227,_0x4752c5[_0x5b862e('0x1c27')]=_0x39935b,_0x4752c5['createOrEditTrunk']=_0x2f4f9e,_0x4752c5['deleteTrunk']=_0x1c0858,_0x4752c5[_0x5b862e('0x2873')]=_0x232b98,_0x4752c5[_0x5b862e('0xeee')]=_0x5e3206,_0x4752c5['deselectTrunks']=_0x5d21a7,_0x4752c5[_0x5b862e('0x1629')]=_0x2f5698;function _0xf9bb5(_0x5b0def){var _0x49acf8=_0x5b862e;_0x42b16b['go'](_0x49acf8('0x257b'),{'id':_0x5b0def['id'],'trunk':_0x5b0def,'crudPermissions':_0x4752c5[_0x49acf8('0xb3d')]});}function _0x317725(_0x50319b,_0x1e1722){var _0x403d1d=_0x5b862e;_0x26a3d1[_0x403d1d('0x26b2')]({'controller':_0x403d1d('0x1837'),'controllerAs':'vm','templateUrl':_0xd1bfb0,'parent':angular['element'](_0x5ea430[_0x403d1d('0x19b2')]),'targetEvent':_0x1e1722,'clickOutsideToClose':!![],'locals':{'trunk':_0x50319b,'trunks':_0x4752c5['trunks']?_0x4752c5[_0x403d1d('0x155e')][_0x403d1d('0x16a7')]:[],'crudPermissions':_0x4752c5[_0x403d1d('0xb3d')]}});}function _0x935a86(){var _0x358edf=_0x5b862e;if(_0x1b8872[_0x358edf('0x179e')](_0x358edf('0xd14')))_0x42b16b['go'](_0x358edf('0x235e'),{});else return _0x37bac4[_0x358edf('0xb59')][_0x358edf('0x22d5')]({'userProfileId':_0x1b8872[_0x358edf('0x1ef8')]()['userProfileId'],'sectionId':0x19b})[_0x358edf('0xe59')][_0x358edf('0xe19')](function(_0x214e14){var _0x5342ca=_0x358edf,_0x150e24=_0x214e14&&_0x214e14[_0x5342ca('0x16a7')]?_0x214e14[_0x5342ca('0x16a7')][0x0]:null;_0x150e24&&_0x150e24[_0x5342ca('0x4ef')]?_0x42b16b['go'](_0x5342ca('0x235e'),{}):_0x30ccb1['info']({'title':_0x3cd4f9[_0x5342ca('0x2159')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x3cd4f9[_0x5342ca('0x2159')](_0x5342ca('0x4bb'))});})[_0x358edf('0x223b')](function(_0x11f37b){var _0x3127a2=_0x358edf;_0x30ccb1[_0x3127a2('0x8c8')]({'title':_0x11f37b[_0x3127a2('0x2833')]?_0x3127a2('0x27f2')+_0x11f37b[_0x3127a2('0x2833')]+_0x3127a2('0x1b7c')+_0x11f37b['statusText']:_0x3127a2('0x343'),'msg':_0x11f37b[_0x3127a2('0x2833')]?JSON['stringify'](_0x11f37b[_0x3127a2('0x11d0')]):_0x11f37b[_0x3127a2('0x94f')]()});});}function _0x2260de(_0x2fc13d,_0x47e506){var _0x69d9=_0x5b862e,_0x1f00f0=_0x26a3d1['confirm']()[_0x69d9('0x13e4')](_0x69d9('0x346')+_0x32d445()['startCase'](_0x69d9('0x1397'))+'?')[_0x69d9('0x221c')](''+(_0x2fc13d[_0x69d9('0x2623')]||_0x69d9('0x1397'))+_0x69d9('0x27bb')+_0x69d9('0x21bd'))[_0x69d9('0x4d1')](_0x69d9('0x251e'))['targetEvent'](_0x47e506)['ok']('OK')[_0x69d9('0x2c1')](_0x69d9('0x17'));_0x26a3d1[_0x69d9('0x26b2')](_0x1f00f0)[_0x69d9('0xe19')](function(){_0x1c0858(_0x2fc13d);},function(){var _0x2c67e9=_0x69d9;console[_0x2c67e9('0x1fe9')](_0x2c67e9('0x17'));});}var _0x4a3fdc=!![],_0x910495=0x1;_0x454bf7['$watch'](_0x5b862e('0x20cb'),function(_0x6a53be,_0x2a5a52){var _0x4a4804=_0x5b862e;_0x4a3fdc?_0x52fa9d(function(){_0x4a3fdc=![];}):(!_0x2a5a52&&(_0x910495=_0x4752c5[_0x4a4804('0xa16')][_0x4a4804('0xc08')]),_0x6a53be!==_0x2a5a52&&(_0x4752c5[_0x4a4804('0xa16')]['page']=0x1),!_0x6a53be&&(_0x4752c5[_0x4a4804('0xa16')][_0x4a4804('0xc08')]=_0x910495),_0x4752c5[_0x4a4804('0x1c27')]());});function _0x1a0227(_0x25523e){var _0x444759=_0x5b862e;_0x4752c5[_0x444759('0x155e')]=_0x25523e||{'count':0x0,'rows':[]};}function _0x39935b(){var _0x247e14=_0x5b862e;_0x4752c5[_0x247e14('0xa16')][_0x247e14('0xab0')]=(_0x4752c5['query'][_0x247e14('0xc08')]-0x1)*_0x4752c5[_0x247e14('0xa16')][_0x247e14('0x1b6d')],_0x1b8872[_0x247e14('0x179e')](_0x247e14('0xd14'))?_0x4752c5[_0x247e14('0x9c8')]=_0x37bac4[_0x247e14('0x1397')]['get'](_0x4752c5[_0x247e14('0xa16')],_0x1a0227)[_0x247e14('0xe59')]:(_0x4752c5[_0x247e14('0xa16')]['id']=_0x4752c5['userProfile']['id'],_0x4752c5[_0x247e14('0xa16')][_0x247e14('0x1e59')]=_0x247e14('0xb30'),_0x4752c5[_0x247e14('0x9c8')]=_0x37bac4[_0x247e14('0x154f')][_0x247e14('0x14e6')](_0x4752c5['query'],_0x1a0227)['$promise']);}function _0x2f4f9e(_0x153ccb,_0x3548a4){var _0x1d7c6d=_0x5b862e;_0x26a3d1['show']({'controller':'CreateOrEditTrunkDialogController','controllerAs':'vm','templateUrl':_0x22118b,'parent':angular[_0x1d7c6d('0x24a1')](_0x5ea430[_0x1d7c6d('0x19b2')]),'targetEvent':_0x153ccb,'clickOutsideToClose':!![],'locals':{'trunk':_0x3548a4,'trunks':_0x4752c5[_0x1d7c6d('0x155e')][_0x1d7c6d('0x16a7')],'license':_0x4752c5[_0x1d7c6d('0x5c1')],'setting':_0x4752c5[_0x1d7c6d('0x22f1')],'crudPermissions':_0x4752c5[_0x1d7c6d('0xb3d')]}});}function _0x1c0858(_0xc668ab){var _0x289492=_0x5b862e;_0x37bac4[_0x289492('0x1397')][_0x289492('0x229e')]({'id':_0xc668ab['id']})[_0x289492('0xe59')][_0x289492('0xe19')](function(){var _0x5e9c2a=_0x289492;_0x32d445()['remove'](_0x4752c5[_0x5e9c2a('0x155e')][_0x5e9c2a('0x16a7')],{'id':_0xc668ab['id']}),_0x4752c5[_0x5e9c2a('0x155e')][_0x5e9c2a('0x148b')]-=0x1,!_0x4752c5[_0x5e9c2a('0x155e')][_0x5e9c2a('0x16a7')][_0x5e9c2a('0x25ae')]&&_0x4752c5[_0x5e9c2a('0x1c27')](),_0x30ccb1[_0x5e9c2a('0x425')]({'title':_0x32d445()[_0x5e9c2a('0x1df2')](_0x5e9c2a('0x1317'))+_0x5e9c2a('0x1219'),'msg':_0xc668ab[_0x5e9c2a('0x2623')]?_0xc668ab[_0x5e9c2a('0x2623')]+_0x5e9c2a('0x2182'):''});})['catch'](function(_0x384d4f){var _0xaeec1c=_0x289492;if(_0x384d4f['data']&&_0x384d4f['data']['errors']&&_0x384d4f[_0xaeec1c('0x11d0')][_0xaeec1c('0xcd2')][_0xaeec1c('0x25ae')]){_0x4752c5[_0xaeec1c('0xcd2')]=_0x384d4f['data']['errors']||[{'message':_0x384d4f[_0xaeec1c('0x94f')](),'type':_0xaeec1c('0xcb9')}];for(var _0x1e6813=0x0;_0x1e6813<_0x384d4f[_0xaeec1c('0x11d0')]['errors'][_0xaeec1c('0x25ae')];_0x1e6813++){_0x30ccb1['error']({'title':_0x384d4f[_0xaeec1c('0x11d0')][_0xaeec1c('0xcd2')][_0x1e6813]['type'],'msg':_0x384d4f[_0xaeec1c('0x11d0')][_0xaeec1c('0xcd2')][_0x1e6813][_0xaeec1c('0x27e8')]});}}else _0x30ccb1[_0xaeec1c('0x8c8')]({'title':_0x384d4f[_0xaeec1c('0x2833')]?_0xaeec1c('0x27f2')+_0x384d4f[_0xaeec1c('0x2833')]+'\x20-\x20'+_0x384d4f[_0xaeec1c('0x1fd7')]:_0xaeec1c('0xcb9'),'msg':_0x384d4f['data']?JSON[_0xaeec1c('0x3ad')](_0x384d4f[_0xaeec1c('0x11d0')][_0xaeec1c('0x27e8')]):_0x384d4f[_0xaeec1c('0x27e8')]||_0x384d4f[_0xaeec1c('0x94f')]()});});}function _0x232b98(){var _0x2ffb67=_0x5b862e,_0x4137f7=angular[_0x2ffb67('0x89')](_0x4752c5[_0x2ffb67('0x1624')]);return _0x4752c5[_0x2ffb67('0x1624')]=[],_0x4137f7;}function _0x5e3206(_0x2466c8){var _0x3a2872=_0x5b862e,_0x54ebee=_0x26a3d1[_0x3a2872('0xa5')]()[_0x3a2872('0x13e4')](_0x3a2872('0x23b'))['htmlContent'](''+_0x4752c5[_0x3a2872('0x1624')][_0x3a2872('0x25ae')]+_0x3a2872('0x5bc')+_0x3a2872('0x21bd'))[_0x3a2872('0x4d1')]('delete\x20Trunks')['targetEvent'](_0x2466c8)['ok']('OK')[_0x3a2872('0x2c1')](_0x3a2872('0x17'));_0x26a3d1['show'](_0x54ebee)[_0x3a2872('0xe19')](function(){var _0x2a845f=_0x3a2872;_0x4752c5[_0x2a845f('0x1624')][_0x2a845f('0x1d7e')](function(_0x317396){_0x1c0858(_0x317396);}),_0x4752c5[_0x2a845f('0x1624')]=[];});}function _0x5d21a7(){var _0x4d1a37=_0x5b862e;_0x4752c5[_0x4d1a37('0x1624')]=[];}function _0x2f5698(){var _0x42a1f5=_0x5b862e;_0x4752c5['selectedTrunks']=_0x4752c5[_0x42a1f5('0x155e')][_0x42a1f5('0x16a7')];}}const _0x3cfc3c=_0x3a2236;_0x4f9b93[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1a9e'),_0xb635d2('0x19a5'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license','setting',_0xb635d2('0xb3d')];function _0x4f9b93(_0x1212a2,_0xb6ef7e,_0x38f077,_0x1c5753,_0x1f122e,_0x53012f,_0x29eedb,_0x307163,_0xf4f032,_0x6c694e,_0x36ed26,_0xabf57d,_0x522225,_0xf6f940){var _0x554634=_0xb635d2,_0x38e9f2=this;_0x38e9f2['currentUser']=_0x36ed26['getCurrentUser'](),_0x38e9f2[_0x554634('0xcd2')]=[],_0x38e9f2[_0x554634('0x22f1')]=_0x522225,_0x38e9f2[_0x554634('0x5c1')]=_0xabf57d,_0x38e9f2[_0x554634('0xb3d')]=_0xf6f940,_0x38e9f2[_0x554634('0x1ccb')]={},_0x38e9f2[_0x554634('0x25ac')]=_0x38e9f2[_0x554634('0x22f1')]&&_0x38e9f2[_0x554634('0x22f1')][_0x554634('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x38e9f2[_0x554634('0x13e4')]=_0x554634('0x1a14'),_0x38e9f2[_0x554634('0x19a5')]=angular[_0x554634('0x89')](_0xf4f032),_0x38e9f2['variables']=_0x307163,_0x38e9f2['newVariable']=![];!_0x38e9f2[_0x554634('0x19a5')]&&(_0x38e9f2['variable']={},_0x38e9f2[_0x554634('0x13e4')]=_0x554634('0x1549'),_0x38e9f2[_0x554634('0x21d2')]=!![]);_0x38e9f2[_0x554634('0x1a11')]=_0x4999f6,_0x38e9f2['saveVariable']=_0x44304d,_0x38e9f2[_0x554634('0x1a2e')]=_0x6057bb,_0x38e9f2[_0x554634('0x2635')]=_0x31c0c9,_0x38e9f2[_0x554634('0x2584')]=_0x28155d;function _0x4999f6(){var _0x547168=_0x554634;_0x38e9f2[_0x547168('0xcd2')]=[],_0x6c694e[_0x547168('0x19a5')][_0x547168('0xe5e')](_0x38e9f2['variable'])[_0x547168('0xe59')]['then'](function(_0x41bd75){var _0x1b56d7=_0x547168;_0x38e9f2[_0x1b56d7('0x1a9e')]['unshift'](_0x41bd75[_0x1b56d7('0x250e')]()),_0x29eedb[_0x1b56d7('0x425')]({'title':_0x1b56d7('0x1772'),'msg':_0x38e9f2[_0x1b56d7('0x19a5')][_0x1b56d7('0x2623')]?_0x38e9f2['variable'][_0x1b56d7('0x2623')]+'\x20has\x20been\x20created!':''}),_0x28155d(_0x41bd75);})[_0x547168('0x223b')](function(_0x440c2a){var _0x18d85d=_0x547168;if(_0x440c2a[_0x18d85d('0x11d0')]&&_0x440c2a[_0x18d85d('0x11d0')][_0x18d85d('0xcd2')]&&_0x440c2a['data'][_0x18d85d('0xcd2')][_0x18d85d('0x25ae')]){_0x38e9f2[_0x18d85d('0xcd2')]=_0x440c2a[_0x18d85d('0x11d0')][_0x18d85d('0xcd2')]||[{'message':_0x440c2a[_0x18d85d('0x94f')](),'type':'api.variable.save'}];for(var _0x427dce=0x0;_0x427dce<_0x440c2a[_0x18d85d('0x11d0')][_0x18d85d('0xcd2')][_0x18d85d('0x25ae')];_0x427dce+=0x1){_0x29eedb[_0x18d85d('0x8c8')]({'title':_0x440c2a[_0x18d85d('0x11d0')]['errors'][_0x427dce][_0x18d85d('0x62e')],'msg':_0x440c2a[_0x18d85d('0x11d0')][_0x18d85d('0xcd2')][_0x427dce][_0x18d85d('0x27e8')]});}}else _0x29eedb[_0x18d85d('0x8c8')]({'title':_0x440c2a['status']?_0x18d85d('0x27f2')+_0x440c2a[_0x18d85d('0x2833')]+_0x18d85d('0x1b7c')+_0x440c2a['statusText']:'api.variable.save','msg':_0x440c2a[_0x18d85d('0x11d0')]?JSON['stringify'](_0x440c2a[_0x18d85d('0x11d0')]['message']):_0x440c2a[_0x18d85d('0x94f')]()});});}function _0x44304d(){var _0xd140eb=_0x554634;_0x38e9f2[_0xd140eb('0xcd2')]=[],_0x6c694e[_0xd140eb('0x19a5')][_0xd140eb('0xa70')]({'id':_0x38e9f2[_0xd140eb('0x19a5')]['id']},_0x38e9f2[_0xd140eb('0x19a5')])[_0xd140eb('0xe59')]['then'](function(_0x122a9d){var _0x23e714=_0xd140eb,_0x5c84d7=_0x32d445()[_0x23e714('0xf15')](_0x38e9f2[_0x23e714('0x1a9e')],{'id':_0x122a9d['id']});_0x5c84d7&&_0x32d445()[_0x23e714('0x1d8')](_0x5c84d7,_0x32d445()[_0x23e714('0xed5')](_0x122a9d[_0x23e714('0x250e')](),_0x32d445()['keys'](_0x5c84d7))),_0x29eedb[_0x23e714('0x425')]({'title':_0x23e714('0xb39'),'msg':_0x38e9f2['variable'][_0x23e714('0x2623')]?_0x38e9f2[_0x23e714('0x19a5')][_0x23e714('0x2623')]+_0x23e714('0x1c19'):''}),_0x28155d(_0x122a9d);})[_0xd140eb('0x223b')](function(_0x2ce33f){var _0x50ae70=_0xd140eb;if(_0x2ce33f[_0x50ae70('0x11d0')]&&_0x2ce33f[_0x50ae70('0x11d0')][_0x50ae70('0xcd2')]&&_0x2ce33f[_0x50ae70('0x11d0')][_0x50ae70('0xcd2')][_0x50ae70('0x25ae')]){_0x38e9f2[_0x50ae70('0xcd2')]=_0x2ce33f[_0x50ae70('0x11d0')]['errors']||[{'message':_0x2ce33f[_0x50ae70('0x94f')](),'type':_0x50ae70('0x1c6a')}];for(var _0x44bdc7=0x0;_0x44bdc7<_0x2ce33f[_0x50ae70('0x11d0')][_0x50ae70('0xcd2')][_0x50ae70('0x25ae')];_0x44bdc7++){_0x29eedb[_0x50ae70('0x8c8')]({'title':_0x2ce33f[_0x50ae70('0x11d0')][_0x50ae70('0xcd2')][_0x44bdc7]['type'],'msg':_0x2ce33f['data'][_0x50ae70('0xcd2')][_0x44bdc7][_0x50ae70('0x27e8')]});}}else _0x29eedb[_0x50ae70('0x8c8')]({'title':_0x2ce33f[_0x50ae70('0x2833')]?_0x50ae70('0x27f2')+_0x2ce33f['status']+_0x50ae70('0x1b7c')+_0x2ce33f[_0x50ae70('0x1fd7')]:_0x50ae70('0x1c6a'),'msg':_0x2ce33f[_0x50ae70('0x11d0')]?JSON[_0x50ae70('0x3ad')](_0x2ce33f[_0x50ae70('0x11d0')][_0x50ae70('0x27e8')]):_0x2ce33f[_0x50ae70('0x94f')]()});});}function _0x6057bb(_0x11e10b){var _0x30ba38=_0x554634;_0x38e9f2[_0x30ba38('0xcd2')]=[];var _0x374440=_0x1c5753[_0x30ba38('0xa5')]()[_0x30ba38('0x13e4')]('Are\x20you\x20sure?')[_0x30ba38('0xd0')](_0x30ba38('0x1a2f'))[_0x30ba38('0x4d1')]('Delete\x20Variable')['ok'](_0x30ba38('0x2198'))[_0x30ba38('0x2c1')](_0x30ba38('0x8a3'))[_0x30ba38('0x1345')](_0x11e10b);_0x1c5753['show'](_0x374440)[_0x30ba38('0xe19')](function(){var _0x1750c7=_0x30ba38;_0x6c694e[_0x1750c7('0x19a5')][_0x1750c7('0x229e')]({'id':_0x38e9f2[_0x1750c7('0x19a5')]['id']})['$promise'][_0x1750c7('0xe19')](function(){var _0x14143d=_0x1750c7;_0x32d445()[_0x14143d('0xa8b')](_0x38e9f2[_0x14143d('0x1a9e')],{'id':_0x38e9f2[_0x14143d('0x19a5')]['id']}),_0x29eedb['success']({'title':_0x14143d('0x29e'),'msg':(_0x38e9f2[_0x14143d('0x19a5')][_0x14143d('0x2623')]||'variable')+'\x20has\x20been\x20deleted!'}),_0x28155d(_0x38e9f2[_0x14143d('0x19a5')]);})[_0x1750c7('0x223b')](function(_0x19ac96){var _0xb192e=_0x1750c7;if(_0x19ac96[_0xb192e('0x11d0')]&&_0x19ac96[_0xb192e('0x11d0')][_0xb192e('0xcd2')]&&_0x19ac96[_0xb192e('0x11d0')][_0xb192e('0xcd2')][_0xb192e('0x25ae')]){_0x38e9f2['errors']=_0x19ac96['data'][_0xb192e('0xcd2')]||[{'message':_0x19ac96[_0xb192e('0x94f')](),'type':_0xb192e('0x1dfe')}];for(var _0x344df5=0x0;_0x344df5<_0x19ac96[_0xb192e('0x11d0')][_0xb192e('0xcd2')][_0xb192e('0x25ae')];_0x344df5++){_0x29eedb[_0xb192e('0x8c8')]({'title':_0x19ac96[_0xb192e('0x11d0')]['errors'][_0x344df5][_0xb192e('0x62e')],'msg':_0x19ac96['data']['errors'][_0x344df5][_0xb192e('0x27e8')]});}}else _0x29eedb[_0xb192e('0x8c8')]({'title':_0x19ac96[_0xb192e('0x2833')]?_0xb192e('0x27f2')+_0x19ac96[_0xb192e('0x2833')]+'\x20-\x20'+_0x19ac96[_0xb192e('0x1fd7')]:_0xb192e('0x1dfe'),'msg':_0x19ac96[_0xb192e('0x11d0')]?JSON[_0xb192e('0x3ad')](_0x19ac96['data']['message']):_0x19ac96[_0xb192e('0x27e8')]||_0x19ac96['toString']()});});},function(){});}function _0x31c0c9(_0xc9681f){return _0xc9681f===null?undefined:new Date(_0xc9681f);}function _0x28155d(_0x70c099){var _0x495d36=_0x554634;_0x1c5753[_0x495d36('0x11ed')](_0x70c099);}}const _0x4cb9bd=_0x4f9b93,_0x2b054d=_0x59426a['p']+_0xb635d2('0x220e');_0x50f2ae['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document','$timeout',_0xb635d2('0x2493'),'variables',_0xb635d2('0x154f'),'userProfileSection','api',_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x50f2ae(_0x206e71,_0x525f23,_0x395107,_0x3b1e19,_0x43f2fb,_0x2346af,_0x47c3ee,_0xd2f8ec,_0xe262d3,_0x3f47db,_0x2c6cb9,_0xdb2442,_0x1504eb,_0x295089,_0x2137ea,_0x3436b1,_0x1c72e3){var _0x2fe637=_0xb635d2,_0x310a0b=this;_0x310a0b[_0x2fe637('0x5c1')]=_0x3436b1,_0x310a0b[_0x2fe637('0x22f1')]=_0x1c72e3,_0x310a0b[_0x2fe637('0x15a5')]=_0x2137ea[_0x2fe637('0x1ef8')](),_0x310a0b[_0x2fe637('0x1a9e')]=_0xe262d3||{'count':0x0,'rows':[]},_0x310a0b[_0x2fe637('0x154f')]=_0x3f47db,_0x310a0b['userProfileSection']=_0x2c6cb9&&_0x2c6cb9[_0x2fe637('0x148b')]==0x1?_0x2c6cb9[_0x2fe637('0x16a7')][0x0]:null,_0x310a0b['crudPermissions']=_0x2137ea[_0x2fe637('0xd31')](_0x310a0b[_0x2fe637('0xb59')]?_0x310a0b[_0x2fe637('0xb59')]['crudPermissions']:null),_0x310a0b[_0x2fe637('0x19b6')]='variables',_0x310a0b[_0x2fe637('0x14d6')]='',_0x310a0b[_0x2fe637('0x190c')]=null,_0x310a0b['selectedVariables']=[],_0x310a0b[_0x2fe637('0xa16')]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x2fe637('0x7e8'),'limit':0xa,'page':0x1},_0x310a0b[_0x2fe637('0x1752')]=_0x529c40,_0x310a0b[_0x2fe637('0x1d9e')]=_0x559b32,_0x310a0b[_0x2fe637('0x425')]=_0x91cc68,_0x310a0b[_0x2fe637('0xe3d')]=_0x3e6477,_0x310a0b['createOrEditVariable']=_0x28a0ce,_0x310a0b[_0x2fe637('0x1a2e')]=_0x34203f,_0x310a0b[_0x2fe637('0xf88')]=_0x1f0794,_0x310a0b[_0x2fe637('0x1ae8')]=_0x566012,_0x310a0b['deselectVariables']=_0x5a03d9,_0x310a0b['selectAllVariables']=_0x2a066a;function _0x529c40(_0x406ee3,_0x38fe3c){var _0x2df650=_0x2fe637;_0x43f2fb[_0x2df650('0x26b2')]({'controller':'CreateOrEditVariableDialogController','controllerAs':'vm','templateUrl':_0x2b054d,'parent':angular['element'](_0x2346af[_0x2df650('0x19b2')]),'targetEvent':_0x38fe3c,'clickOutsideToClose':!![],'locals':{'variable':_0x406ee3,'variables':_0x310a0b[_0x2df650('0x1a9e')][_0x2df650('0x16a7')],'license':_0x310a0b['license'],'setting':null,'crudPermissions':_0x310a0b['crudPermissions']}});}function _0x559b32(_0x9fff3d,_0x32b562){var _0x202396=_0x2fe637,_0x277906=_0x43f2fb[_0x202396('0xa5')]()[_0x202396('0x13e4')](_0x202396('0x346')+_0x32d445()[_0x202396('0x1df2')](_0x202396('0x19a5'))+'?')[_0x202396('0x221c')](_0x202396('0xab2')+(_0x9fff3d[_0x202396('0x2623')]||_0x202396('0x19a5'))+_0x202396('0x27bb')+_0x202396('0x21bd'))[_0x202396('0x4d1')](_0x202396('0x265'))[_0x202396('0x1345')](_0x32b562)['ok']('OK')[_0x202396('0x2c1')](_0x202396('0x17'));_0x43f2fb[_0x202396('0x26b2')](_0x277906)[_0x202396('0xe19')](function(){_0x34203f(_0x9fff3d);},function(){var _0x18282e=_0x202396;console[_0x18282e('0x1fe9')](_0x18282e('0x17'));});}var _0x4db7aa=!![],_0xd8fe01=0x1;_0x206e71[_0x2fe637('0x107')](_0x2fe637('0x20cb'),function(_0x5e2fa4,_0x3502d9){var _0x332970=_0x2fe637;_0x4db7aa?_0x47c3ee(function(){_0x4db7aa=![];}):(!_0x3502d9&&(_0xd8fe01=_0x310a0b[_0x332970('0xa16')][_0x332970('0xc08')]),_0x5e2fa4!==_0x3502d9&&(_0x310a0b[_0x332970('0xa16')][_0x332970('0xc08')]=0x1),!_0x5e2fa4&&(_0x310a0b['query'][_0x332970('0xc08')]=_0xd8fe01),_0x310a0b['getVariables']());});function _0x91cc68(_0xa34ada){_0x310a0b['variables']=_0xa34ada||{'count':0x0,'rows':[]};}function _0x3e6477(){var _0x4a086d=_0x2fe637;_0x310a0b[_0x4a086d('0xa16')][_0x4a086d('0xab0')]=(_0x310a0b[_0x4a086d('0xa16')][_0x4a086d('0xc08')]-0x1)*_0x310a0b[_0x4a086d('0xa16')][_0x4a086d('0x1b6d')],_0x2137ea['hasRole'](_0x4a086d('0xd14'))?_0x310a0b['promise']=_0xdb2442['variable'][_0x4a086d('0x22d5')](_0x310a0b[_0x4a086d('0xa16')],_0x91cc68)['$promise']:(_0x310a0b[_0x4a086d('0xa16')]['id']=_0x310a0b[_0x4a086d('0x154f')]['id'],_0x310a0b[_0x4a086d('0xa16')][_0x4a086d('0x1e59')]=_0x4a086d('0xd64'),_0x310a0b[_0x4a086d('0x9c8')]=_0xdb2442['userProfile'][_0x4a086d('0x14e6')](_0x310a0b[_0x4a086d('0xa16')],_0x91cc68)[_0x4a086d('0xe59')]);}function _0x28a0ce(_0x33a17c,_0x5c134a){var _0x3a1524=_0x2fe637;_0x43f2fb[_0x3a1524('0x26b2')]({'controller':_0x3a1524('0x27f0'),'controllerAs':'vm','templateUrl':_0x2b054d,'parent':angular['element'](_0x2346af[_0x3a1524('0x19b2')]),'targetEvent':_0x33a17c,'clickOutsideToClose':!![],'locals':{'variable':_0x5c134a,'variables':_0x310a0b['variables'][_0x3a1524('0x16a7')],'license':_0x310a0b[_0x3a1524('0x5c1')],'setting':_0x310a0b[_0x3a1524('0x22f1')],'crudPermissions':_0x310a0b[_0x3a1524('0xb3d')]}});}function _0x34203f(_0x5db077){var _0x18a0b1=_0x2fe637;_0xdb2442[_0x18a0b1('0x19a5')]['delete']({'id':_0x5db077['id']})[_0x18a0b1('0xe59')][_0x18a0b1('0xe19')](function(){var _0x447f4b=_0x18a0b1;_0x32d445()[_0x447f4b('0xa8b')](_0x310a0b[_0x447f4b('0x1a9e')][_0x447f4b('0x16a7')],{'id':_0x5db077['id']}),_0x310a0b[_0x447f4b('0x1a9e')][_0x447f4b('0x148b')]-=0x1,!_0x310a0b[_0x447f4b('0x1a9e')][_0x447f4b('0x16a7')]['length']&&_0x310a0b[_0x447f4b('0xe3d')](),_0x295089[_0x447f4b('0x425')]({'title':_0x32d445()[_0x447f4b('0x1df2')](_0x447f4b('0x1a9d'))+'\x20deleted!','msg':_0x5db077[_0x447f4b('0x2623')]?_0x5db077[_0x447f4b('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x18a0b1('0x223b')](function(_0x49cb7c){var _0x378a6e=_0x18a0b1;if(_0x49cb7c[_0x378a6e('0x11d0')]&&_0x49cb7c[_0x378a6e('0x11d0')]['errors']&&_0x49cb7c[_0x378a6e('0x11d0')][_0x378a6e('0xcd2')][_0x378a6e('0x25ae')]){_0x310a0b[_0x378a6e('0xcd2')]=_0x49cb7c[_0x378a6e('0x11d0')][_0x378a6e('0xcd2')]||[{'message':_0x49cb7c[_0x378a6e('0x94f')](),'type':_0x378a6e('0xb81')}];for(var _0x47b653=0x0;_0x47b653<_0x49cb7c[_0x378a6e('0x11d0')]['errors']['length'];_0x47b653++){_0x295089[_0x378a6e('0x8c8')]({'title':_0x49cb7c[_0x378a6e('0x11d0')][_0x378a6e('0xcd2')][_0x47b653][_0x378a6e('0x62e')],'msg':_0x49cb7c[_0x378a6e('0x11d0')][_0x378a6e('0xcd2')][_0x47b653][_0x378a6e('0x27e8')]});}}else _0x295089[_0x378a6e('0x8c8')]({'title':_0x49cb7c[_0x378a6e('0x2833')]?'API:'+_0x49cb7c[_0x378a6e('0x2833')]+'\x20-\x20'+_0x49cb7c[_0x378a6e('0x1fd7')]:_0x378a6e('0xb81'),'msg':_0x49cb7c[_0x378a6e('0x11d0')]?JSON[_0x378a6e('0x3ad')](_0x49cb7c[_0x378a6e('0x11d0')]['message']):_0x49cb7c[_0x378a6e('0x27e8')]||_0x49cb7c[_0x378a6e('0x94f')]()});});}function _0x1f0794(){var _0x41d1f0=_0x2fe637,_0x5f20b3=angular[_0x41d1f0('0x89')](_0x310a0b[_0x41d1f0('0x51a')]);return _0x310a0b[_0x41d1f0('0x51a')]=[],_0x5f20b3;}function _0x566012(_0xe69bd7){var _0x46ec0f=_0x2fe637,_0x4497bc=_0x43f2fb[_0x46ec0f('0xa5')]()[_0x46ec0f('0x13e4')](_0x46ec0f('0x1c2'))[_0x46ec0f('0x221c')](_0x46ec0f('0xab2')+_0x310a0b[_0x46ec0f('0x51a')][_0x46ec0f('0x25ae')]+_0x46ec0f('0x5bc')+_0x46ec0f('0x21bd'))[_0x46ec0f('0x4d1')](_0x46ec0f('0x1e'))['targetEvent'](_0xe69bd7)['ok']('OK')[_0x46ec0f('0x2c1')]('CANCEL');_0x43f2fb[_0x46ec0f('0x26b2')](_0x4497bc)[_0x46ec0f('0xe19')](function(){var _0x4a0615=_0x46ec0f;_0x310a0b['selectedVariables'][_0x4a0615('0x1d7e')](function(_0x230816){_0x34203f(_0x230816);}),_0x310a0b['selectedVariables']=[];});}function _0x5a03d9(){var _0x442e3b=_0x2fe637;_0x310a0b[_0x442e3b('0x51a')]=[];}function _0x2a066a(){var _0x3bf88f=_0x2fe637;_0x310a0b[_0x3bf88f('0x51a')]=_0x310a0b['variables'][_0x3bf88f('0x16a7')];}}const _0x469565=_0x50f2ae;_0x5a9254[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x5a9254(_0x48279d,_0x31ec8d){var _0x4cdfa9=_0xb635d2;_0x48279d[_0x4cdfa9('0x1d72')](_0x4cdfa9('0x2268'),{'abstract':!![],'url':'/tools'})[_0x4cdfa9('0x1d72')]('app.tools.cannedAnswers',{'url':_0x4cdfa9('0xf60'),'views':{'content@app':{'templateUrl':_0x30e64b,'controller':_0x4cdfa9('0x1fc2')}},'resolve':{'cannedAnswers':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x49a936(_0x540099,_0x42daf3){var _0x3832cc=_0x4cdfa9;return _0x42daf3[_0x3832cc('0x179e')](_0x3832cc('0xd14'))?_0x540099[_0x3832cc('0xcd6')]('cannedAnswer@get',{'fields':_0x3832cc('0x1ef0'),'sort':_0x3832cc('0x7e8'),'MailAccountId':_0x3832cc('0x1046'),'FaxAccountId':_0x3832cc('0x1046'),'SmsAccountId':_0x3832cc('0x1046'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x3832cc('0x1046'),'limit':0xa,'offset':0x0}):_0x540099['resolve'](_0x3832cc('0x197d'),{'id':_0x42daf3[_0x3832cc('0x1ef8')]()[_0x3832cc('0x1d04')],'section':'CannedAnswers','fields':'createdAt,updatedAt,id,key,value,description','sort':'-updatedAt','MailAccountId':_0x3832cc('0x1046'),'FaxAccountId':_0x3832cc('0x1046'),'SmsAccountId':_0x3832cc('0x1046'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x3832cc('0x1046'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x5c6686(_0x541aa4,_0x2e42e1){var _0x37a198=_0x4cdfa9;return _0x2e42e1[_0x37a198('0x179e')]('admin')?null:_0x541aa4['resolve'](_0x37a198('0x455'),{'fields':_0x37a198('0x1b71'),'id':_0x2e42e1['getCurrentUser']()[_0x37a198('0x1d04')]});}],'userProfileSection':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x8b9657(_0x57ca75,_0x49a915){var _0x50592d=_0x4cdfa9;return _0x49a915[_0x50592d('0x179e')](_0x50592d('0xd14'))?null:_0x57ca75[_0x50592d('0xcd6')](_0x50592d('0x264e'),{'fields':_0x50592d('0x12d6'),'userProfileId':_0x49a915[_0x50592d('0x1ef8')]()[_0x50592d('0x1d04')],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':_0x4cdfa9('0xfbe')})['state']('app.tools.customDashboards',{'url':_0x4cdfa9('0x23f9'),'views':{'content@app':{'templateUrl':_0xe48123,'controller':'CustomDashboardsController\x20as\x20vm'}},'resolve':{'customDashboards':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x3a655b(_0x458128,_0x540fa6){var _0x2fcc67=_0x4cdfa9;return _0x540fa6[_0x2fcc67('0x179e')](_0x2fcc67('0xd14'))?_0x458128[_0x2fcc67('0xcd6')](_0x2fcc67('0x25c7'),{'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x458128[_0x2fcc67('0xcd6')](_0x2fcc67('0x197d'),{'id':_0x540fa6[_0x2fcc67('0x1ef8')]()['userProfileId'],'section':'CustomDashboards','fields':_0x2fcc67('0x1666'),'sort':_0x2fcc67('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x4cdfa9('0x2730'),function _0x1e8263(_0x34113a,_0x5d2007){var _0x501a06=_0x4cdfa9;return _0x5d2007['hasRole'](_0x501a06('0xd14'))?null:_0x34113a[_0x501a06('0xcd6')](_0x501a06('0x455'),{'fields':_0x501a06('0x1b71'),'id':_0x5d2007[_0x501a06('0x1ef8')]()[_0x501a06('0x1d04')]});}],'userProfileSection':['apiResolver',_0x4cdfa9('0x2730'),function _0x14375b(_0x428eb7,_0x1a6b49){var _0xa66374=_0x4cdfa9;return _0x1a6b49[_0xa66374('0x179e')](_0xa66374('0xd14'))?null:_0x428eb7[_0xa66374('0xcd6')](_0xa66374('0x264e'),{'fields':_0xa66374('0x12d6'),'userProfileId':_0x1a6b49[_0xa66374('0x1ef8')]()['userProfileId'],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x4cdfa9('0xfbe')})[_0x4cdfa9('0x1d72')](_0x4cdfa9('0x1f7'),{'url':_0x4cdfa9('0xb1d'),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5945b1,'controller':_0x4cdfa9('0x205e')}},'resolve':{'customDashboard':[_0x4cdfa9('0x292'),'$stateParams',function _0x1eb1f8(_0x511867,_0x3a46cf){var _0x47528f=_0x4cdfa9;return _0x511867[_0x47528f('0xcd6')](_0x47528f('0x25c7'),{'fields':_0x47528f('0x1666'),'id':_0x3a46cf['id']});}],'userProfileSection':['apiResolver','Auth',function _0x460206(_0x5e37c1,_0x3d1e59){var _0x28b93e=_0x4cdfa9;return _0x5e37c1[_0x28b93e('0xcd6')]('userProfileSection@get',{'fields':_0x28b93e('0x12d6'),'userProfileId':_0x3d1e59[_0x28b93e('0x1ef8')]()[_0x28b93e('0x1d04')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x4cdfa9('0xfbe')})[_0x4cdfa9('0x1d72')](_0x4cdfa9('0x33a'),{'url':_0x4cdfa9('0x11f1'),'views':{'content@app':{'templateUrl':_0x5582cb,'controller':_0x4cdfa9('0x1580')}},'resolve':{'intervals':[_0x4cdfa9('0x292'),'Auth',function _0x58ae49(_0x170b4c,_0x5aefeb){var _0x4694e4=_0x4cdfa9;return _0x5aefeb[_0x4694e4('0x179e')](_0x4694e4('0xd14'))?_0x170b4c[_0x4694e4('0xcd6')](_0x4694e4('0x16e2'),{'fields':_0x4694e4('0x1666'),'sort':'-updatedAt','IntervalId':_0x4694e4('0x1046'),'limit':0xa,'offset':0x0}):_0x170b4c['resolve']('userProfile@getResources',{'id':_0x5aefeb[_0x4694e4('0x1ef8')]()[_0x4694e4('0x1d04')],'section':'Intervals','fields':_0x4694e4('0x1666'),'sort':'-updatedAt','IntervalId':_0x4694e4('0x1046'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x4d3bb8(_0x5e4cda,_0x5a99ec){var _0x3dfab8=_0x4cdfa9;return _0x5a99ec[_0x3dfab8('0x179e')]('admin')?null:_0x5e4cda[_0x3dfab8('0xcd6')](_0x3dfab8('0x455'),{'fields':_0x3dfab8('0x1b71'),'id':_0x5a99ec['getCurrentUser']()[_0x3dfab8('0x1d04')]});}],'userProfileSection':[_0x4cdfa9('0x292'),'Auth',function _0x2ebb99(_0x2c5c29,_0x442d85){var _0x8422d9=_0x4cdfa9;return _0x442d85['hasRole'](_0x8422d9('0xd14'))?null:_0x2c5c29['resolve'](_0x8422d9('0x264e'),{'fields':_0x8422d9('0x12d6'),'userProfileId':_0x442d85[_0x8422d9('0x1ef8')]()['userProfileId'],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':'tools'})['state'](_0x4cdfa9('0x24c'),{'url':'/:id?tab','params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x567638,'controller':_0x4cdfa9('0x2897')}},'resolve':{'interval':[_0x4cdfa9('0x292'),_0x4cdfa9('0x34'),function _0x2b4ef5(_0x59766e,_0x3d45e3){var _0x5a3fd8=_0x4cdfa9;return _0x59766e[_0x5a3fd8('0xcd6')](_0x5a3fd8('0x16e2'),{'fields':_0x5a3fd8('0x1666'),'id':_0x3d45e3['id']});}],'userProfileSection':['apiResolver',_0x4cdfa9('0x2730'),function _0x560149(_0x1b7fab,_0x513401){var _0xf3a2e2=_0x4cdfa9;return _0x1b7fab[_0xf3a2e2('0xcd6')](_0xf3a2e2('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x513401['getCurrentUser']()[_0xf3a2e2('0x1d04')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x4cdfa9('0xfbe')})[_0x4cdfa9('0x1d72')](_0x4cdfa9('0x25a5'),{'url':_0x4cdfa9('0xd2d'),'views':{'content@app':{'templateUrl':_0x3e56ff,'controller':_0x4cdfa9('0x129d')}},'resolve':{'pauses':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0xb326f9(_0x4d966a,_0xcbaaa8){var _0x55c71c=_0x4cdfa9;return _0xcbaaa8[_0x55c71c('0x179e')]('admin')?_0x4d966a[_0x55c71c('0xcd6')]('pause@get',{'fields':_0x55c71c('0x1666'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x4d966a[_0x55c71c('0xcd6')](_0x55c71c('0x197d'),{'id':_0xcbaaa8[_0x55c71c('0x1ef8')]()[_0x55c71c('0x1d04')],'section':_0x55c71c('0x860'),'fields':_0x55c71c('0x1666'),'sort':_0x55c71c('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x89be9d(_0x516522,_0x5e5c8b){var _0x35b1ec=_0x4cdfa9;return _0x5e5c8b['hasRole'](_0x35b1ec('0xd14'))?null:_0x516522[_0x35b1ec('0xcd6')](_0x35b1ec('0x455'),{'fields':_0x35b1ec('0x1b71'),'id':_0x5e5c8b['getCurrentUser']()[_0x35b1ec('0x1d04')]});}],'userProfileSection':['apiResolver','Auth',function _0x452e59(_0x5470c5,_0x523556){var _0x3036d5=_0x4cdfa9;return _0x523556[_0x3036d5('0x179e')](_0x3036d5('0xd14'))?null:_0x5470c5[_0x3036d5('0xcd6')](_0x3036d5('0x264e'),{'fields':_0x3036d5('0x12d6'),'userProfileId':_0x523556[_0x3036d5('0x1ef8')]()[_0x3036d5('0x1d04')],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x4cdfa9('0xfbe')})[_0x4cdfa9('0x1d72')](_0x4cdfa9('0xece'),{'url':_0x4cdfa9('0x1e3a'),'views':{'content@app':{'templateUrl':_0x517953,'controller':'SchedulesController\x20as\x20vm'}},'resolve':{'schedules':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x337364(_0x107b85,_0x3648cb){var _0x493b70=_0x4cdfa9;return _0x3648cb['hasRole'](_0x493b70('0xd14'))?_0x107b85[_0x493b70('0xcd6')](_0x493b70('0x12e5'),{'fields':_0x493b70('0x151b'),'sort':_0x493b70('0x7e8'),'limit':0xa,'offset':0x0}):_0x107b85['resolve'](_0x493b70('0x197d'),{'id':_0x3648cb[_0x493b70('0x1ef8')]()['userProfileId'],'section':_0x493b70('0x1c7c'),'fields':_0x493b70('0x151b'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x4cdfa9('0x2730'),function _0x1fc356(_0x4ddec2,_0x5841ad){var _0x591744=_0x4cdfa9;return _0x5841ad[_0x591744('0x179e')](_0x591744('0xd14'))?null:_0x4ddec2[_0x591744('0xcd6')]('userProfile@get',{'fields':_0x591744('0x1b71'),'id':_0x5841ad[_0x591744('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x557bb5(_0x466179,_0x2f5bf2){var _0x2ccb28=_0x4cdfa9;return _0x2f5bf2[_0x2ccb28('0x179e')](_0x2ccb28('0xd14'))?null:_0x466179['resolve'](_0x2ccb28('0x264e'),{'fields':_0x2ccb28('0x12d6'),'userProfileId':_0x2f5bf2[_0x2ccb28('0x1ef8')]()[_0x2ccb28('0x1d04')],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':'tools'})['state']('app.tools.sounds',{'url':'/sounds','views':{'content@app':{'templateUrl':_0x26f45f,'controller':_0x4cdfa9('0x17d4')}},'resolve':{'sounds':[_0x4cdfa9('0x292'),'Auth',function _0x19d94c(_0x5444dd,_0x101d3b){var _0x49f511=_0x4cdfa9;return _0x101d3b[_0x49f511('0x179e')](_0x49f511('0xd14'))?_0x5444dd[_0x49f511('0xcd6')](_0x49f511('0xee5'),{'fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5444dd['resolve'](_0x49f511('0x197d'),{'id':_0x101d3b[_0x49f511('0x1ef8')]()[_0x49f511('0x1d04')],'section':_0x49f511('0x156'),'fields':_0x49f511('0x1bb3'),'sort':_0x49f511('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x37b65c(_0x33f322,_0x3f72ed){var _0xee2e6b=_0x4cdfa9;return _0x3f72ed[_0xee2e6b('0x179e')](_0xee2e6b('0xd14'))?null:_0x33f322[_0xee2e6b('0xcd6')]('userProfile@get',{'fields':_0xee2e6b('0x1b71'),'id':_0x3f72ed[_0xee2e6b('0x1ef8')]()[_0xee2e6b('0x1d04')]});}],'userProfileSection':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x4b02f7(_0x48d026,_0x1ef632){var _0x334eb9=_0x4cdfa9;return _0x1ef632[_0x334eb9('0x179e')]('admin')?null:_0x48d026[_0x334eb9('0xcd6')](_0x334eb9('0x264e'),{'fields':_0x334eb9('0x12d6'),'userProfileId':_0x1ef632[_0x334eb9('0x1ef8')]()['userProfileId'],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':_0x4cdfa9('0xfbe')})['state'](_0x4cdfa9('0x1a4'),{'url':_0x4cdfa9('0x1f3d'),'views':{'content@app':{'templateUrl':_0x218067,'controller':'TagsController\x20as\x20vm'}},'resolve':{'tags':['apiResolver',_0x4cdfa9('0x2730'),function _0x153dd8(_0x5521a1,_0x411283){var _0x1e2ffa=_0x4cdfa9;return _0x411283[_0x1e2ffa('0x179e')]('admin')?_0x5521a1[_0x1e2ffa('0xcd6')](_0x1e2ffa('0xd04'),{'fields':_0x1e2ffa('0x1021'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5521a1[_0x1e2ffa('0xcd6')](_0x1e2ffa('0x197d'),{'id':_0x411283[_0x1e2ffa('0x1ef8')]()[_0x1e2ffa('0x1d04')],'section':'Tags','fields':_0x1e2ffa('0x1021'),'sort':_0x1e2ffa('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x4d06a3(_0x1f3ab6,_0x381ed4){var _0x4e85fd=_0x4cdfa9;return _0x381ed4[_0x4e85fd('0x179e')](_0x4e85fd('0xd14'))?null:_0x1f3ab6[_0x4e85fd('0xcd6')](_0x4e85fd('0x455'),{'fields':_0x4e85fd('0x1b71'),'id':_0x381ed4[_0x4e85fd('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x8e0a2d(_0xf4fefe,_0x11b84b){var _0x3c077f=_0x4cdfa9;return _0x11b84b[_0x3c077f('0x179e')](_0x3c077f('0xd14'))?null:_0xf4fefe[_0x3c077f('0xcd6')](_0x3c077f('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x11b84b[_0x3c077f('0x1ef8')]()[_0x3c077f('0x1d04')],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':_0x4cdfa9('0xfbe')})[_0x4cdfa9('0x1d72')]('app.tools.templates',{'url':'/templates','views':{'content@app':{'templateUrl':_0x1914f7,'controller':_0x4cdfa9('0x828')}},'resolve':{'templates':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x315d4f(_0x4d7c6a,_0x37cb85){var _0x4ed9f2=_0x4cdfa9;return _0x37cb85[_0x4ed9f2('0x179e')](_0x4ed9f2('0xd14'))?_0x4d7c6a[_0x4ed9f2('0xcd6')](_0x4ed9f2('0x2548'),{'fields':_0x4ed9f2('0xe55'),'sort':_0x4ed9f2('0x7e8'),'limit':0xa,'offset':0x0}):_0x4d7c6a['resolve']('userProfile@getResources',{'id':_0x37cb85[_0x4ed9f2('0x1ef8')]()['userProfileId'],'section':_0x4ed9f2('0x1985'),'fields':_0x4ed9f2('0xe55'),'sort':_0x4ed9f2('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4cdfa9('0x292'),'Auth',function _0x29a4c5(_0x32eb08,_0x2520da){var _0x21072d=_0x4cdfa9;return _0x2520da['hasRole']('admin')?null:_0x32eb08[_0x21072d('0xcd6')](_0x21072d('0x455'),{'fields':_0x21072d('0x1b71'),'id':_0x2520da['getCurrentUser']()[_0x21072d('0x1d04')]});}],'userProfileSection':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x5c77cf(_0x1f0898,_0x1e3230){var _0x232de3=_0x4cdfa9;return _0x1e3230[_0x232de3('0x179e')]('admin')?null:_0x1f0898['resolve'](_0x232de3('0x264e'),{'fields':_0x232de3('0x12d6'),'userProfileId':_0x1e3230[_0x232de3('0x1ef8')]()[_0x232de3('0x1d04')],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0x4cdfa9('0xfbe')})[_0x4cdfa9('0x1d72')](_0x4cdfa9('0x1ef3'),{'url':_0x4cdfa9('0x80a'),'views':{'content@app':{'templateUrl':_0x307757,'controller':_0x4cdfa9('0x14e3')}},'resolve':{'trunks':[_0x4cdfa9('0x292'),'Auth',function _0x2b2d38(_0x4f95b1,_0x5099b1){var _0x150fca=_0x4cdfa9;return _0x5099b1[_0x150fca('0x179e')]('admin')?_0x4f95b1[_0x150fca('0xcd6')]('trunk@get',{'fields':_0x150fca('0x19c8'),'sort':_0x150fca('0x7e8'),'limit':0xa,'offset':0x0}):_0x4f95b1[_0x150fca('0xcd6')](_0x150fca('0x197d'),{'id':_0x5099b1[_0x150fca('0x1ef8')]()[_0x150fca('0x1d04')],'section':'Trunks','fields':_0x150fca('0x19c8'),'sort':_0x150fca('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x1c58f8(_0x51cb59,_0x2a6af8){var _0x23a7ce=_0x4cdfa9;return _0x2a6af8[_0x23a7ce('0x179e')](_0x23a7ce('0xd14'))?null:_0x51cb59[_0x23a7ce('0xcd6')](_0x23a7ce('0x455'),{'fields':'id,name,crudPermissions','id':_0x2a6af8[_0x23a7ce('0x1ef8')]()[_0x23a7ce('0x1d04')]});}],'userProfileSection':['apiResolver',_0x4cdfa9('0x2730'),function _0x5338b0(_0x26eee7,_0xec5085){var _0x51483a=_0x4cdfa9;return _0xec5085[_0x51483a('0x179e')](_0x51483a('0xd14'))?null:_0x26eee7[_0x51483a('0xcd6')](_0x51483a('0x264e'),{'fields':_0x51483a('0x12d6'),'userProfileId':_0xec5085[_0x51483a('0x1ef8')]()[_0x51483a('0x1d04')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x4cdfa9('0xfbe')})[_0x4cdfa9('0x1d72')]('app.tools.trunks.edit',{'url':_0x4cdfa9('0xb1d'),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x40f673,'controller':'TrunkController\x20as\x20vm'}},'resolve':{'trunk':[_0x4cdfa9('0x292'),'$stateParams',function _0x5377d7(_0x2c4c89,_0xf3b079){var _0x242995=_0x4cdfa9;return _0x2c4c89[_0x242995('0xcd6')](_0x242995('0x27f7'),{'fields':_0x242995('0x19c8'),'id':_0xf3b079['id']});}],'userProfileSection':[_0x4cdfa9('0x292'),_0x4cdfa9('0x2730'),function _0x40f84a(_0x263f7d,_0xfb7207){var _0x2b7cec=_0x4cdfa9;return _0x263f7d['resolve'](_0x2b7cec('0x264e'),{'fields':_0x2b7cec('0x12d6'),'userProfileId':_0xfb7207[_0x2b7cec('0x1ef8')]()[_0x2b7cec('0x1d04')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':'tools'})[_0x4cdfa9('0x1d72')](_0x4cdfa9('0x1780'),{'url':'/variables','views':{'content@app':{'templateUrl':_0x118bdb,'controller':_0x4cdfa9('0x10a5')}},'resolve':{'variables':['apiResolver',_0x4cdfa9('0x2730'),function _0x5506bc(_0x398f3c,_0x17c9b5){var _0x50c5dc=_0x4cdfa9;return _0x17c9b5[_0x50c5dc('0x179e')](_0x50c5dc('0xd14'))?_0x398f3c[_0x50c5dc('0xcd6')]('variable@get',{'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x398f3c[_0x50c5dc('0xcd6')](_0x50c5dc('0x197d'),{'id':_0x17c9b5['getCurrentUser']()[_0x50c5dc('0x1d04')],'section':'Variables','fields':'createdAt,updatedAt,id,name,description','sort':_0x50c5dc('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x393ab2(_0x4c625c,_0x3d5f1f){var _0x5d269f=_0x4cdfa9;return _0x3d5f1f[_0x5d269f('0x179e')](_0x5d269f('0xd14'))?null:_0x4c625c[_0x5d269f('0xcd6')](_0x5d269f('0x455'),{'fields':_0x5d269f('0x1b71'),'id':_0x3d5f1f[_0x5d269f('0x1ef8')]()[_0x5d269f('0x1d04')]});}],'userProfileSection':['apiResolver',_0x4cdfa9('0x2730'),function _0x270f5f(_0x2e470d,_0x20b491){var _0x4db917=_0x4cdfa9;return _0x20b491['hasRole']('admin')?null:_0x2e470d[_0x4db917('0xcd6')](_0x4db917('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x20b491['getCurrentUser']()[_0x4db917('0x1d04')],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0x4cdfa9('0xfbe')}),_0x31ec8d[_0x4cdfa9('0xfe3')]('app/main/apps/tools');}angular['module'](_0xb635d2('0x2268'),[_0xb635d2('0x569'),_0xb635d2('0x24b'),'md.data.table',_0xb635d2('0x206b'),_0xb635d2('0xd8b'),_0xb635d2('0x1727'),'ng-sortable',_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),'mdPickers',_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),_0xb635d2('0x17b0'),_0xb635d2('0x191c'),_0xb635d2('0xe93'),'angular.filter',_0xb635d2('0x289f'),'app.tools.triggers'])[_0xb635d2('0x1990')](_0x5a9254)[_0xb635d2('0x1a79')]('CannedAnswersController',_0xffc2a9)[_0xb635d2('0x1a79')](_0xb635d2('0x3ba'),_0x258cf2)[_0xb635d2('0x1a79')]('CreateOrEditCustomDashboardDialogController',_0x55fcc9)[_0xb635d2('0x1a79')](_0xb635d2('0xa9c'),_0xe137f2)[_0xb635d2('0x1a79')](_0xb635d2('0x94c'),_0xbd7bca)[_0xb635d2('0x1a79')]('CustomDashboardItemsController',_0x4678d1)['controller'](_0xb635d2('0x86d'),_0x5c8b45)['controller'](_0xb635d2('0x6f9'),_0x516ceb)[_0xb635d2('0x1a79')](_0xb635d2('0x1a5e'),_0x4d02d7)['controller'](_0xb635d2('0xd0f'),_0x3b2623)[_0xb635d2('0x1a79')](_0xb635d2('0x1a80'),_0x12f920)[_0xb635d2('0x1a79')](_0xb635d2('0x792'),_0x361d2a)[_0xb635d2('0x1a79')](_0xb635d2('0x121f'),_0x23397d)['controller']('CreateOrEditPauseDialogController',_0x4ab5ae)['controller'](_0xb635d2('0x1775'),_0x38a34b)[_0xb635d2('0x1a79')](_0xb635d2('0x770'),_0x4d3fb7)[_0xb635d2('0x1a79')](_0xb635d2('0xbf1'),_0x51dd14)[_0xb635d2('0x1a79')](_0xb635d2('0x111a'),_0x5ea1de)['controller'](_0xb635d2('0x833'),_0x39fd59)['controller']('UploadSoundDialogController',_0x1f4412)[_0xb635d2('0x1a79')](_0xb635d2('0x13f1'),_0x2d703c)[_0xb635d2('0x1a79')](_0xb635d2('0x1a89'),_0x31f03c)[_0xb635d2('0x1a79')](_0xb635d2('0x1bb1'),_0x144de2)[_0xb635d2('0x1a79')]('TemplatesController',_0x4b4bd1)[_0xb635d2('0x1a79')]('CreateOrEditTrunkDialogController',_0x2ab1e7)['controller'](_0xb635d2('0x1837'),_0x3d440b)[_0xb635d2('0x1a79')]('TrunkController',_0x27fde3)[_0xb635d2('0x1a79')]('TrunksController',_0x3cfc3c)[_0xb635d2('0x1a79')](_0xb635d2('0x27f0'),_0x4cb9bd)[_0xb635d2('0x1a79')]('VariablesController',_0x469565);const _0x54f311=_0x59426a['p']+_0xb635d2('0x183e'),_0x355102=_0x59426a['p']+_0xb635d2('0x21ba');_0x2a5ac4[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$window',_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2730'),'toasty',_0xb635d2('0x1d39'),'project','api',_0xb635d2('0x2804'),_0xb635d2('0xb3d')];function _0x2a5ac4(_0x411e3e,_0x35e1e4,_0x376998,_0x349829,_0x34a76a,_0x5d301e,_0x424ae9,_0x4e8718,_0x5dc6a7,_0x4f77f8,_0x5f94f2){var _0x213621=_0xb635d2,_0x1b24a3=this;_0x1b24a3[_0x213621('0xcd2')]=[],_0x1b24a3['title']=_0x213621('0x1493'),_0x1b24a3[_0x213621('0xb3d')]=_0x5f94f2,_0x1b24a3[_0x213621('0x38b')]=angular[_0x213621('0x89')](_0x4e8718),_0x1b24a3[_0x213621('0xe45')]=!![],_0x1b24a3[_0x213621('0x1d39')]=_0x424ae9,_0x1b24a3[_0x213621('0x81')]=![],_0x1b24a3[_0x213621('0x2804')]=_0x4f77f8;!_0x1b24a3[_0x213621('0x38b')]&&(_0x1b24a3[_0x213621('0x38b')]={'name':'','description':''},_0x1b24a3['title']=_0x213621('0x2583'),_0x1b24a3[_0x213621('0x81')]=!![]);_0x1b24a3['addNewProject']=_0x4c87cd,_0x1b24a3[_0x213621('0x2124')]=_0x591160,_0x1b24a3[_0x213621('0x6d2')]=_0x3f7ed5,_0x1b24a3[_0x213621('0x2584')]=_0x18a49e;function _0x4c87cd(){var _0x18b849=_0x213621;_0x1b24a3[_0x18b849('0xcd2')]=[],_0x5dc6a7[_0x18b849('0x20c9')]['save'](_0x1b24a3[_0x18b849('0x38b')])[_0x18b849('0xe59')]['then'](function(_0x188eda){var _0x3b5a9c=_0x18b849;return _0x5dc6a7['user'][_0x3b5a9c('0x2114')]({'id':_0x34a76a[_0x3b5a9c('0x1ef8')]()['id'],'ids':[_0x188eda['id']]})[_0x3b5a9c('0xe59')],_0x188eda;})[_0x18b849('0xe19')](function(_0x1910dc){var _0x19538e=_0x18b849;_0x1b24a3[_0x19538e('0x1d39')]['unshift'](_0x1910dc),_0x5d301e[_0x19538e('0x425')]({'title':_0x19538e('0xbf3'),'msg':_0x1b24a3[_0x19538e('0x38b')][_0x19538e('0x2623')]?_0x1b24a3[_0x19538e('0x38b')][_0x19538e('0x2623')]+_0x19538e('0x105f'):''}),_0x18a49e(_0x1910dc),_0x1b24a3['openFromEditor']&&(_0x1b24a3[_0x19538e('0xe45')]?_0x35e1e4[_0x19538e('0x72a')](_0x19538e('0x1af3')+_0x1910dc['id'],_0x19538e('0x571')):_0x376998['go'](_0x19538e('0x26e8'),{'id':_0x1910dc['id']}));})['catch'](function(_0x99c5e){var _0xb05e95=_0x18b849;if(_0x99c5e[_0xb05e95('0x11d0')]&&_0x99c5e[_0xb05e95('0x11d0')][_0xb05e95('0xcd2')]&&_0x99c5e['data']['errors'][_0xb05e95('0x25ae')]){_0x1b24a3['errors']=_0x99c5e[_0xb05e95('0x11d0')][_0xb05e95('0xcd2')]||[{'message':_0x99c5e[_0xb05e95('0x94f')](),'type':_0xb05e95('0x35d')}];for(var _0xaf9d80=0x0;_0xaf9d80<_0x99c5e['data'][_0xb05e95('0xcd2')][_0xb05e95('0x25ae')];_0xaf9d80++){_0x5d301e[_0xb05e95('0x8c8')]({'title':_0x99c5e['data'][_0xb05e95('0xcd2')][_0xaf9d80]['type'],'msg':_0x99c5e[_0xb05e95('0x11d0')][_0xb05e95('0xcd2')][_0xaf9d80]['message']});}}else _0x5d301e['error']({'title':_0x99c5e[_0xb05e95('0x2833')]?_0xb05e95('0x27f2')+_0x99c5e[_0xb05e95('0x2833')]+_0xb05e95('0x1b7c')+_0x99c5e[_0xb05e95('0x1fd7')]:_0xb05e95('0x35d'),'msg':_0x99c5e[_0xb05e95('0x11d0')]?JSON[_0xb05e95('0x3ad')](_0x99c5e[_0xb05e95('0x11d0')][_0xb05e95('0x27e8')]):_0x99c5e[_0xb05e95('0x94f')]()});});}function _0x591160(){var _0x3fb3f5=_0x213621;_0x1b24a3['errors']=[],_0x5dc6a7[_0x3fb3f5('0x20c9')][_0x3fb3f5('0xa70')]({'id':_0x1b24a3[_0x3fb3f5('0x38b')]['id']},_0x1b24a3[_0x3fb3f5('0x38b')])[_0x3fb3f5('0xe59')][_0x3fb3f5('0xe19')](function(_0x34ae88){var _0x4cb13f=_0x3fb3f5,_0x342f8a=_0x32d445()[_0x4cb13f('0xf15')](_0x1b24a3[_0x4cb13f('0x1d39')],{'id':_0x34ae88['id']});_0x342f8a&&_0x32d445()[_0x4cb13f('0x1d8')](_0x342f8a,_0x34ae88),_0x5d301e[_0x4cb13f('0x425')]({'title':_0x4cb13f('0x1c74'),'msg':_0x1b24a3[_0x4cb13f('0x38b')]['name']?_0x1b24a3[_0x4cb13f('0x38b')][_0x4cb13f('0x2623')]+_0x4cb13f('0x1c19'):''}),_0x18a49e(_0x34ae88);})[_0x3fb3f5('0x223b')](function(_0x20820d){var _0x228c44=_0x3fb3f5;if(_0x20820d['data']&&_0x20820d['data'][_0x228c44('0xcd2')]&&_0x20820d[_0x228c44('0x11d0')][_0x228c44('0xcd2')][_0x228c44('0x25ae')]){_0x1b24a3[_0x228c44('0xcd2')]=_0x20820d[_0x228c44('0x11d0')]['errors']||[{'message':_0x20820d[_0x228c44('0x94f')](),'type':_0x228c44('0x110e')}];for(var _0x4d9f39=0x0;_0x4d9f39<_0x20820d[_0x228c44('0x11d0')]['errors'][_0x228c44('0x25ae')];_0x4d9f39++){_0x5d301e[_0x228c44('0x8c8')]({'title':_0x20820d[_0x228c44('0x11d0')][_0x228c44('0xcd2')][_0x4d9f39]['type'],'msg':_0x20820d[_0x228c44('0x11d0')][_0x228c44('0xcd2')][_0x4d9f39][_0x228c44('0x27e8')]});}}else _0x5d301e['error']({'title':_0x20820d[_0x228c44('0x2833')]?_0x228c44('0x27f2')+_0x20820d[_0x228c44('0x2833')]+'\x20-\x20'+_0x20820d[_0x228c44('0x1fd7')]:_0x228c44('0x110e'),'msg':_0x20820d['data']?JSON[_0x228c44('0x3ad')](_0x20820d[_0x228c44('0x11d0')][_0x228c44('0x27e8')]):_0x20820d['toString']()});});}function _0x3f7ed5(){var _0xcc4404=_0x213621;_0x1b24a3[_0xcc4404('0xcd2')]=[];var _0x393626=_0x411e3e[_0xcc4404('0xa5')]()[_0xcc4404('0x13e4')]('Are\x20you\x20sure?')[_0xcc4404('0xd0')](_0xcc4404('0x76d'))[_0xcc4404('0x4d1')](_0xcc4404('0x23ad'))['ok'](_0xcc4404('0x2198'))[_0xcc4404('0x2c1')](_0xcc4404('0x8a3'))[_0xcc4404('0x1345')](event);_0x411e3e[_0xcc4404('0x26b2')](_0x393626)[_0xcc4404('0xe19')](function(){var _0x4973a0=_0xcc4404;_0x5dc6a7[_0x4973a0('0x20c9')][_0x4973a0('0x229e')]({'id':_0x1b24a3['project']['id']})[_0x4973a0('0xe59')][_0x4973a0('0xe19')](function(){var _0x5c90d3=_0x4973a0;return _0x5dc6a7[_0x5c90d3('0x20c9')][_0x5c90d3('0x3df')]({'id':_0x1b24a3[_0x5c90d3('0x38b')]['id']})['$promise'];})[_0x4973a0('0xe19')](function(_0x37fee6){var _0x59f6c6=_0x4973a0,_0x5c69a1=[],_0x3b8c52=_0x37fee6[_0x59f6c6('0x16a7')];for(var _0xc4f8e=0x0;_0xc4f8e<_0x3b8c52['length'];_0xc4f8e++){_0x5c69a1['push'](_0x5dc6a7[_0x59f6c6('0x10c6')][_0x59f6c6('0x283d')]({'id':_0x34a76a[_0x59f6c6('0x1ef8')]()['id'],'ids':[_0x1b24a3[_0x59f6c6('0x38b')]['id']]})['$promise']);}return _0x349829[_0x59f6c6('0xf0e')](_0x5c69a1);})[_0x4973a0('0xe19')](function(){var _0xaf856e=_0x4973a0;_0x32d445()[_0xaf856e('0xa8b')](_0x1b24a3[_0xaf856e('0x1d39')],{'id':_0x1b24a3[_0xaf856e('0x38b')]['id']}),_0x5d301e[_0xaf856e('0x425')]({'title':'Project\x20properly\x20deleted!','msg':_0x1b24a3['project'][_0xaf856e('0x2623')]?_0x1b24a3[_0xaf856e('0x38b')][_0xaf856e('0x2623')]+'\x20has\x20been\x20deleted!':''}),_0x18a49e(_0x1b24a3[_0xaf856e('0x38b')]);})['catch'](function(_0x5a4e77){var _0x77dc58=_0x4973a0;console[_0x77dc58('0x8c8')](_0x5a4e77),_0x1b24a3[_0x77dc58('0xcd2')]=_0x5a4e77['data']['errors']||[{'message':_0x5a4e77[_0x77dc58('0x94f')](),'type':_0x77dc58('0xf48')}];});},function(){});}function _0x18a49e(_0x2f1b09){var _0x3d5c56=_0x213621;_0x411e3e[_0x3d5c56('0x11ed')](_0x2f1b09);}}const _0x4e4a95=_0x2a5ac4;_0x2f920b[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'api','toasty',_0xb635d2('0x1cce'),_0xb635d2('0x8a1'),_0xb635d2('0x1229'),_0xb635d2('0x1933'),_0xb635d2('0xe78'),_0xb635d2('0x1575'),'users',_0xb635d2('0x155e'),_0xb635d2('0x671'),_0xb635d2('0x219b'),'variables',_0xb635d2('0xdc1'),'projects',_0xb635d2('0x3c1'),_0xb635d2('0x10e0'),_0xb635d2('0x248b'),_0xb635d2('0x702'),'lists','cell','saveCallback',_0xb635d2('0x119c'),_0xb635d2('0x1175'),_0xb635d2('0x25db'),_0xb635d2('0x145e'),_0xb635d2('0x93b'),_0xb635d2('0xde6'),'Auth','crudPermissions'];function _0x2f920b(_0x42ac1d,_0x4432e4,_0x49257a,_0x36d99d,_0x446d6d,_0xf31fa3,_0xd37c02,_0x511a21,_0x4a0155,_0xac3e1b,_0x2817e9,_0x28a348,_0x2492fb,_0x50099c,_0x5ea3dd,_0x142343,_0x205379,_0x468f9a,_0xaebe55,_0x4d453e,_0x2dd5bf,_0x4da125,_0x2988b7,_0x5157e2,_0x3992b8,_0x4fecef,_0x523e35,_0x4f1f0c,_0xbc521f,_0x2835c9,_0x1480fd){var _0x490e10=_0xb635d2,_0x2f3986=this,_0x2f08b3={'playback':[_0x490e10('0x889')],'answer':[_0x490e10('0x2058')],'menu':['file_id',_0x490e10('0x14d5'),_0x490e10('0x1f83'),_0x490e10('0x16db')],'getdigits':['file_id',_0x490e10('0x1626'),_0x490e10('0x26ef'),_0x490e10('0x248f'),_0x490e10('0x16db')],'getsecretdigits':[_0x490e10('0x889'),_0x490e10('0x1626'),_0x490e10('0x26ef'),_0x490e10('0x248f'),'hiddendigitsnum',_0x490e10('0x16db')],'vswitch':[_0x490e10('0x1626')],'database':[_0x490e10('0xffa'),_0x490e10('0xa16')],'ext_dial':[_0x490e10('0x224f'),_0x490e10('0x1ef5'),_0x490e10('0x2058')],'set':[_0x490e10('0x1626')],'math':[_0x490e10('0x1626')],'gotoc':[_0x490e10('0x1318'),_0x490e10('0x1530'),_0x490e10('0xb33')],'system':['command'],'agi':[_0x490e10('0x19a')],'gotoif':['condition'],'saydigits':[_0x490e10('0x339')],'saynumber':[_0x490e10('0x1c60')],'sayphonetic':[_0x490e10('0x1bc6')],'record':[_0x490e10('0x2c0'),_0x490e10('0x2058')],'goal':['goalname'],'dial':[_0x490e10('0x1e55'),_0x490e10('0x2058')],'queue':[_0x490e10('0x1d83'),_0x490e10('0x2058')],'callback':['list_id',_0x490e10('0x2623'),_0x490e10('0x1ef5'),_0x490e10('0x8a2')],'gotoiftime':['interval_id'],'voicemail':[_0x490e10('0xd8c')],'subproject':[_0x490e10('0x11')],'sendSMS':[_0x490e10('0xcd7'),'to',_0x490e10('0x109d')],'sendMail':[_0x490e10('0x14a1'),'to'],'sendFax':[_0x490e10('0x14a1'),'to','attachment_path'],'google_cloud_tts':[_0x490e10('0x8cf'),'google_cloud_tts_text_type',_0x490e10('0x1bc6')],'tts':['text'],'ispeechtts':['text','key',_0x490e10('0x135c')],'ispeechasr':[_0x490e10('0x6e4'),_0x490e10('0x2058')],'custom_app':[_0x490e10('0x1491')],'googleasr':[_0x490e10('0x6e4'),_0x490e10('0x2058')],'awspolly':[_0x490e10('0xd40'),_0x490e10('0x35f'),_0x490e10('0x1bc6'),_0x490e10('0x1f05')],'lumenvoxtts':['text'],'sestektts':[_0x490e10('0x1bc6')],'lumenvoxasr':[_0x490e10('0x1854')],'sestekasr':[_0x490e10('0x1854')],'tildeasr':[_0x490e10('0x1540'),_0x490e10('0x22a4'),_0x490e10('0x154a')],'login':[_0x490e10('0x22b2')],'pause':[_0x490e10('0x22b2'),_0x490e10('0xce6')],'unpause':[_0x490e10('0x22b2')],'logout':[_0x490e10('0x22b2')],'dialogflow':[_0x490e10('0x6e4'),_0x490e10('0x1bc6'),_0x490e10('0x207a')],'awslex':['aws_access_key_id',_0x490e10('0x35f'),_0x490e10('0x1cfa'),_0x490e10('0x281f'),_0x490e10('0x1bc6')],'sesteknda':[_0x490e10('0x1bc6'),_0x490e10('0x2f4'),_0x490e10('0x120b'),_0x490e10('0x1f6d'),_0x490e10('0x1389')],'restapi':[_0x490e10('0x2647'),'method'],'mrcpsynth':[_0x490e10('0x1bc6')],'mrcprecog':[_0x490e10('0x1854')]},_0x3c3aa4={'queue':['file_id'],'database':[_0x490e10('0x1626')],'pause':[_0x490e10('0xce6')]},_0x586038={'sendMail':['to','cc','bcc'],'voicemail':[_0x490e10('0xd8c')]};_0x2f3986[_0x490e10('0x60f')]=_0x4da125['tagName'],_0x2f3986['attributes']=_0x32d445()[_0x490e10('0x65a')](_0x4da125[_0x490e10('0x20fc')],function(_0x10a0f4){var _0x4d8620=_0x490e10;return{'name':_0x10a0f4[_0x4d8620('0x2623')],'value':_0x10a0f4[_0x4d8620('0x2')],'defaultValue':_0x3c3aa4[_0x2f3986[_0x4d8620('0x60f')]]&&_0x32d445()[_0x4d8620('0x1c43')](_0x3c3aa4[_0x2f3986[_0x4d8620('0x60f')]],_0x10a0f4[_0x4d8620('0x2623')]),'required':_0x2f08b3[_0x2f3986[_0x4d8620('0x60f')]]&&_0x32d445()[_0x4d8620('0x1c43')](_0x2f08b3[_0x2f3986[_0x4d8620('0x60f')]],_0x10a0f4['name']),'help':_0x586038[_0x2f3986[_0x4d8620('0x60f')]]&&_0x32d445()[_0x4d8620('0x1c43')](_0x586038[_0x2f3986[_0x4d8620('0x60f')]],_0x10a0f4['name'])};}),_0x2f3986['values']={'authMethod':[{'value':_0x490e10('0x33b'),'option':_0x490e10('0x263c')},{'value':_0x490e10('0x21eb'),'option':'HMAC'}],'answer':[{'value':_0x490e10('0x794'),'option':_0x490e10('0x358')},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':_0x490e10('0x358')},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0x490e10('0x27e8'),'option':_0x490e10('0x2164')},{'value':_0x490e10('0xd02'),'option':'Conversation\x20Update'},{'value':_0x490e10('0x1bb9'),'option':_0x490e10('0x967')},{'value':_0x490e10('0x2812'),'option':'End\x20of\x20Conversation'}],'hiddendigitspos':[{'value':_0x490e10('0x2325'),'option':_0x490e10('0x6f5')},{'value':'last','option':_0x490e10('0x14c6')}],'recordingFormat':[{'value':'wav','option':_0x490e10('0x1a7b')},{'value':_0x490e10('0x2844'),'option':_0x490e10('0x1a96')}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':_0x490e10('0x1164'),'option':_0x490e10('0x358')},{'value':_0x490e10('0x197a'),'option':'No'}],'model':_0x36d99d,'ispeech_asr_language':_0x446d6d,'ispeech_tts_language':_0xd37c02,'languageCode':_0x511a21,'ssmlGender':[{'value':_0x490e10('0x13a1'),'option':_0x490e10('0x157c')},{'value':_0x490e10('0x1cff'),'option':'Male'}],'google_tts_language':_0x4a0155,'google_asr_language':_0xf31fa3,'google_cloud_tts_text_type':[{'value':_0x490e10('0x1bc6'),'option':_0x490e10('0x2115')},{'value':_0x490e10('0x1504'),'option':_0x490e10('0x1b24')}],'aws_polly_region':_0x3992b8,'aws_polly_voice':_0x5157e2,'aws_text_type':[{'value':'text','option':'Text'},{'value':_0x490e10('0x1504'),'option':'SSML'}],'callback_priority':[{'option':'Highest','value':0x4},{'option':_0x490e10('0x239c'),'value':0x3},{'option':_0x490e10('0x231d'),'value':0x2},{'option':'Low','value':0x1},{'option':_0x490e10('0x1618'),'value':0x0}],'findBy':[{'value':_0x490e10('0x1b66'),'option':'Internal'},{'value':_0x490e10('0x1ef5'),'option':_0x490e10('0x54c')},{'value':_0x490e10('0x23a0'),'option':_0x490e10('0x218c')}],'dialogflow_language':_0x4f1f0c,'aws_lex_region':_0xbc521f,'method':[{'value':_0x490e10('0x2617'),'option':_0x490e10('0x2617')},{'value':_0x490e10('0xe98'),'option':_0x490e10('0xe98')},{'value':_0x490e10('0x25e5'),'option':_0x490e10('0x25e5')},{'value':'DELETE','option':'DELETE'}]},_0x2f3986[_0x490e10('0xb3d')]=_0x1480fd,_0x2f3986[_0x490e10('0x888')]=_0x3c6b39,_0x2f3986[_0x490e10('0x2584')]=_0x1a4e80,_0x2f3986[_0x490e10('0xdd7')]=_0x25544f;function _0x3c6b39(){var _0x3ae8b1=_0x490e10;_0x2835c9[_0x3ae8b1('0x179e')](_0x3ae8b1('0xd14'))?_0x52ffde():_0x1ea650();}function _0x25544f(_0x3520fb,_0x5e0b41,_0x3e34ee,_0x33e3f3){var _0x127b70=_0x490e10;return _0x32d445()[_0x127b70('0x65a')](_0x3520fb,function(_0x549bd4){var _0x26e992=_0x127b70;return{'value':_0x549bd4[_0x5e0b41],'option':_0x549bd4[_0x3e34ee],'group':_0x33e3f3?_0x549bd4[_0x33e3f3]:undefined,'canSelect':typeof _0x549bd4[_0x26e992('0x1e9d')]!==_0x26e992('0x1143')?_0x549bd4['canSelect']:!![]};});}function _0x4809a7(_0x402330,_0x58a645,_0x12d05e,_0x33db89){var _0x426b54=_0x490e10,_0x3beee0=_0x32d445()[_0x426b54('0x2891')](_0x402330,function(_0x2f09db){return _0x2f09db[_0x33db89]===null;}),_0x50de93=[];return _0x32d445()[_0x426b54('0x1d7e')](_0x3beee0,function(_0x294217){var _0x415a69=_0x426b54;_0x50de93[_0x415a69('0xb76')]({'value':_0x294217[_0x58a645],'option':_0x294217[_0x12d05e]});var _0x420dab=_0x32d445()[_0x415a69('0x2891')](_0x402330,function(_0x4f8ffb){return _0x4f8ffb[_0x33db89]===_0x294217['id'];});_0x32d445()[_0x415a69('0x1d7e')](_0x420dab,function(_0x2f8fbd){var _0x2c4aac=_0x415a69;_0x50de93['push']({'value':_0x2f8fbd[_0x58a645],'option':_0x2c4aac('0x1b7c')+_0x2f8fbd[_0x12d05e]});});}),_0x50de93;}function _0x52ffde(){var _0x575643=_0x490e10,_0x1fd33e={'sip_id':_0x25544f(_0xac3e1b,'id',_0x575643('0xe11'),_0x575643('0xcd9')),'trunk_name':_0x25544f(_0x2817e9,_0x575643('0x2623'),_0x575643('0x2623')),'trunk_id':_0x25544f(_0x2817e9,'id',_0x575643('0x2623')),'queue_id':_0x25544f(_0x28a348,'id',_0x575643('0x2623')),'file_id':_0x25544f(_0x2492fb,'id',_0x575643('0x2623')),'variable_id':_0x25544f(_0x50099c,'id',_0x575643('0x2623')),'odbc_id':_0x25544f(_0x5ea3dd,'id',_0x575643('0x2623')),'project_id':_0x25544f(_0x142343,'id',_0x575643('0x2623')),'context':_0x25544f(_0x205379,'id',_0x575643('0x2623')),'interval_id':_0x4809a7(_0x468f9a,'id',_0x575643('0x2623'),_0x575643('0x1fc1')),'account_id':_0x25544f(_0xaebe55,'id',_0x575643('0x2623')),'template_id':_0x25544f(_0x4d453e,'id',_0x575643('0x2623')),'list_id':_0x25544f(_0x2dd5bf,'id',_0x575643('0x2623')),'sms_account_id':_0x25544f(_0x4fecef,'id','name'),'pause_id':_0x25544f(_0x523e35,'id',_0x575643('0x2623'))},_0x198069=_0x32d445()['merge'](_0x2f3986[_0x575643('0x1b79')],_0x1fd33e);_0x2f3986[_0x575643('0x1b79')]=_0x198069;}function _0x1ea650(){var _0x32b981=_0x490e10,_0x1a7651=[_0x32b981('0x1e55'),_0x32b981('0x224f'),_0x32b981('0xe36'),'queue_id',_0x32b981('0x889'),_0x32b981('0x1626'),_0x32b981('0xffa'),'project_id',_0x32b981('0x1318'),_0x32b981('0x14be'),_0x32b981('0x14a1'),_0x32b981('0x217a'),'list_id',_0x32b981('0xcd7'),_0x32b981('0xce6')];for(var _0x3c856f=0x0;_0x3c856f<_0x2f3986[_0x32b981('0x20fc')][_0x32b981('0x25ae')];_0x3c856f++){if(_0x32d445()['includes'](_0x1a7651,_0x2f3986[_0x32b981('0x20fc')][_0x3c856f][_0x32b981('0x2623')]))switch(_0x2f3986[_0x32b981('0x20fc')][_0x3c856f]['name']){case _0x32b981('0x1e55'):_0x189cba();break;case _0x32b981('0x224f'):_0x5db82b();break;case'trunk_id':_0x2c5a3f();break;case _0x32b981('0x1d83'):_0x1d71ed();break;case _0x32b981('0x889'):_0x1cea89();break;case _0x32b981('0x1626'):_0x335d36();break;case _0x32b981('0xffa'):_0x482ed8();break;case _0x32b981('0x11'):_0x5ecc04();break;case _0x32b981('0x1318'):_0x33a857();break;case _0x32b981('0x14be'):_0x144475();break;case _0x32b981('0x14a1'):_0x3eb1a1();break;case'template_id':_0x1d31ef();break;case _0x32b981('0xc3c'):_0x132298();break;case _0x32b981('0xcd7'):_0x296a7f();break;case _0x32b981('0xce6'):_0x24cfbf();break;}}}function _0x189cba(){var _0x4cd09d=_0x490e10,_0x53444b=Number(_0x32d445()[_0x4cd09d('0xf15')](_0x2f3986[_0x4cd09d('0x20fc')],{'name':_0x4cd09d('0x1e55')})[_0x4cd09d('0x2')]),_0x1f41a8=_0x32d445()[_0x4cd09d('0x201a')](_0xac3e1b,{'id':_0x53444b});if(!_0x1f41a8&&_0x53444b>0x0)return _0x4432e4[_0x4cd09d('0x10c6')][_0x4cd09d('0x22d5')]({'id':_0x53444b,'fields':_0x4cd09d('0x21a7')})[_0x4cd09d('0xe59')]['then'](function(_0x3f9eed){var _0x285230=_0x4cd09d,_0x339f09=_0x3f9eed['toJSON']();_0x339f09[_0x285230('0x1e9d')]=![],_0xac3e1b[_0x285230('0xb76')](_0x339f09),_0x2f3986['values'][_0x285230('0x1e55')]=_0x25544f(_0xac3e1b,'id',_0x285230('0xe11'),_0x285230('0xcd9'));})[_0x4cd09d('0x223b')](function(_0x19fb34){var _0x1c72a5=_0x4cd09d;_0x49257a[_0x1c72a5('0x8c8')]({'title':_0x19fb34[_0x1c72a5('0x2833')]?_0x1c72a5('0x27f2')+_0x19fb34[_0x1c72a5('0x2833')]+_0x1c72a5('0x1b7c')+_0x19fb34[_0x1c72a5('0x1fd7')]:_0x1c72a5('0x22f5'),'msg':_0x19fb34[_0x1c72a5('0x11d0')]?JSON['stringify'](_0x19fb34['data']['message']):_0x19fb34[_0x1c72a5('0x94f')]()});});else _0x2f3986[_0x4cd09d('0x1b79')][_0x4cd09d('0x1e55')]=_0x25544f(_0xac3e1b,'id',_0x4cd09d('0xe11'),_0x4cd09d('0xcd9'));}function _0x132298(){var _0x19409e=_0x490e10,_0x18c55d=Number(_0x32d445()[_0x19409e('0xf15')](_0x2f3986[_0x19409e('0x20fc')],{'name':'list_id'})[_0x19409e('0x2')]),_0x29524e=_0x32d445()[_0x19409e('0x201a')](_0x2dd5bf,{'id':_0x18c55d});if(!_0x29524e&&_0x18c55d>0x0)return _0x4432e4['cmList']['get']({'id':_0x18c55d,'fields':_0x19409e('0x104')})[_0x19409e('0xe59')]['then'](function(_0x52cc92){var _0x8fab62=_0x19409e,_0x567359=_0x52cc92[_0x8fab62('0x250e')]();_0x567359[_0x8fab62('0x1e9d')]=![],_0x2dd5bf[_0x8fab62('0xb76')](_0x567359),_0x2f3986[_0x8fab62('0x1b79')][_0x8fab62('0xc3c')]=_0x25544f(_0x2dd5bf,'id',_0x8fab62('0x2623'));})[_0x19409e('0x223b')](function(_0x243105){var _0x42b2be=_0x19409e;_0x49257a[_0x42b2be('0x8c8')]({'title':_0x243105[_0x42b2be('0x2833')]?_0x42b2be('0x27f2')+_0x243105[_0x42b2be('0x2833')]+_0x42b2be('0x1b7c')+_0x243105[_0x42b2be('0x1fd7')]:_0x42b2be('0x4f'),'msg':_0x243105[_0x42b2be('0x11d0')]?JSON[_0x42b2be('0x3ad')](_0x243105[_0x42b2be('0x11d0')]['message']):_0x243105['toString']()});});else _0x2f3986[_0x19409e('0x1b79')][_0x19409e('0xc3c')]=_0x25544f(_0x2dd5bf,'id',_0x19409e('0x2623'));}function _0x2c5a3f(){var _0x35f26d=_0x490e10,_0x5adc46=Number(_0x32d445()[_0x35f26d('0xf15')](_0x2f3986[_0x35f26d('0x20fc')],{'name':_0x35f26d('0xe36')})['value']),_0x1e609b=_0x32d445()[_0x35f26d('0x201a')](_0x2817e9,{'id':_0x5adc46});if(!_0x1e609b&&_0x5adc46>0x0)return _0x4432e4[_0x35f26d('0x1397')]['get']({'id':_0x5adc46,'fields':'id,name'})['$promise'][_0x35f26d('0xe19')](function(_0x3287f9){var _0x402aa8=_0x35f26d,_0x1239a7=_0x3287f9['toJSON']();_0x1239a7['canSelect']=![],_0x2817e9[_0x402aa8('0xb76')](_0x1239a7),_0x2f3986['values'][_0x402aa8('0xe36')]=_0x25544f(_0x2817e9,'id',_0x402aa8('0x2623'));})[_0x35f26d('0x223b')](function(_0x3ae954){var _0x4ca8b4=_0x35f26d;_0x49257a['error']({'title':_0x3ae954['status']?_0x4ca8b4('0x27f2')+_0x3ae954[_0x4ca8b4('0x2833')]+'\x20-\x20'+_0x3ae954[_0x4ca8b4('0x1fd7')]:_0x4ca8b4('0xe01'),'msg':_0x3ae954['data']?JSON[_0x4ca8b4('0x3ad')](_0x3ae954[_0x4ca8b4('0x11d0')][_0x4ca8b4('0x27e8')]):_0x3ae954[_0x4ca8b4('0x94f')]()});});else _0x2f3986['values'][_0x35f26d('0xe36')]=_0x25544f(_0x2817e9,'id',_0x35f26d('0x2623'));}function _0x5db82b(){var _0x2e6d2e=_0x490e10,_0x1e035d=_0x32d445()[_0x2e6d2e('0xf15')](_0x2f3986['attributes'],{'name':_0x2e6d2e('0x224f')})['value'],_0x167a49=_0x32d445()['some'](_0x2817e9,{'name':_0x1e035d});if(!_0x167a49&&_0x1e035d)return _0x4432e4[_0x2e6d2e('0x1397')][_0x2e6d2e('0x22d5')]({'name':_0x1e035d,'fields':_0x2e6d2e('0x104')})[_0x2e6d2e('0xe59')]['then'](function(_0x182f10){var _0x1e8523=_0x2e6d2e;if(_0x182f10[_0x1e8523('0x148b')]>0x0&&_0x182f10[_0x1e8523('0x16a7')]['length']>0x0){var _0x47917b=_0x182f10[_0x1e8523('0x16a7')][0x0];_0x47917b[_0x1e8523('0x1e9d')]=![],_0x2817e9['push'](_0x47917b),_0x2f3986[_0x1e8523('0x1b79')][_0x1e8523('0x224f')]=_0x25544f(_0x2817e9,'name',_0x1e8523('0x2623'));}})[_0x2e6d2e('0x223b')](function(_0x47d77c){var _0xe7c25d=_0x2e6d2e;_0x49257a[_0xe7c25d('0x8c8')]({'title':_0x47d77c[_0xe7c25d('0x2833')]?_0xe7c25d('0x27f2')+_0x47d77c[_0xe7c25d('0x2833')]+'\x20-\x20'+_0x47d77c[_0xe7c25d('0x1fd7')]:_0xe7c25d('0xe01'),'msg':_0x47d77c[_0xe7c25d('0x11d0')]?JSON[_0xe7c25d('0x3ad')](_0x47d77c[_0xe7c25d('0x11d0')][_0xe7c25d('0x27e8')]):_0x47d77c[_0xe7c25d('0x94f')]()});});else _0x2f3986[_0x2e6d2e('0x1b79')][_0x2e6d2e('0x224f')]=_0x25544f(_0x2817e9,'name',_0x2e6d2e('0x2623'));}function _0x1d71ed(){var _0x7c432a=_0x490e10,_0x14a3cc=Number(_0x32d445()['find'](_0x2f3986[_0x7c432a('0x20fc')],{'name':'queue_id'})[_0x7c432a('0x2')]),_0x28399f=_0x32d445()['some'](_0x28a348,{'id':_0x14a3cc});if(!_0x28399f&&_0x14a3cc>0x0)return _0x4432e4['voiceQueue'][_0x7c432a('0x22d5')]({'id':_0x14a3cc,'fields':_0x7c432a('0x104')})[_0x7c432a('0xe59')][_0x7c432a('0xe19')](function(_0x165b38){var _0x3bb7ce=_0x7c432a,_0xae2cf6=_0x165b38['toJSON']();_0xae2cf6['canSelect']=![],_0x28a348[_0x3bb7ce('0xb76')](_0xae2cf6),_0x2f3986[_0x3bb7ce('0x1b79')]['queue_id']=_0x25544f(_0x28a348,'id',_0x3bb7ce('0x2623'));})[_0x7c432a('0x223b')](function(_0xc7f54c){var _0x515042=_0x7c432a;_0x49257a['error']({'title':_0xc7f54c[_0x515042('0x2833')]?_0x515042('0x27f2')+_0xc7f54c['status']+_0x515042('0x1b7c')+_0xc7f54c[_0x515042('0x1fd7')]:'GET_QUEUE','msg':_0xc7f54c[_0x515042('0x11d0')]?JSON[_0x515042('0x3ad')](_0xc7f54c['data'][_0x515042('0x27e8')]):_0xc7f54c['toString']()});});else _0x2f3986['values'][_0x7c432a('0x1d83')]=_0x25544f(_0x28a348,'id','name');}function _0x1cea89(){var _0x1e09fa=_0x490e10,_0x363b8a=Number(_0x32d445()[_0x1e09fa('0xf15')](_0x2f3986[_0x1e09fa('0x20fc')],{'name':_0x1e09fa('0x889')})[_0x1e09fa('0x2')]),_0x50d00a=_0x32d445()['some'](_0x2492fb,{'id':_0x363b8a});if(!_0x50d00a&&_0x363b8a>0x0)return _0x4432e4['sound']['get']({'id':_0x363b8a,'fields':_0x1e09fa('0x104')})[_0x1e09fa('0xe59')][_0x1e09fa('0xe19')](function(_0x193f14){var _0x20d0f6=_0x1e09fa,_0x3aa69d=_0x193f14[_0x20d0f6('0x250e')]();_0x3aa69d[_0x20d0f6('0x1e9d')]=![],_0x2492fb[_0x20d0f6('0xb76')](_0x3aa69d),_0x2f3986[_0x20d0f6('0x1b79')]['file_id']=_0x25544f(_0x2492fb,'id','name');})[_0x1e09fa('0x223b')](function(_0x3f86f2){var _0x401c48=_0x1e09fa;_0x49257a[_0x401c48('0x8c8')]({'title':_0x3f86f2[_0x401c48('0x2833')]?'API:'+_0x3f86f2[_0x401c48('0x2833')]+_0x401c48('0x1b7c')+_0x3f86f2[_0x401c48('0x1fd7')]:_0x401c48('0xa82'),'msg':_0x3f86f2[_0x401c48('0x11d0')]?JSON[_0x401c48('0x3ad')](_0x3f86f2[_0x401c48('0x11d0')][_0x401c48('0x27e8')]):_0x3f86f2['toString']()});});else _0x2f3986[_0x1e09fa('0x1b79')][_0x1e09fa('0x889')]=_0x25544f(_0x2492fb,'id','name');}function _0x335d36(){var _0x1d1a78=_0x490e10,_0x34e3f7=Number(_0x32d445()[_0x1d1a78('0xf15')](_0x2f3986['attributes'],{'name':_0x1d1a78('0x1626')})['value']),_0x17cb3d=_0x32d445()['some'](_0x50099c,{'id':_0x34e3f7});if(!_0x17cb3d&&_0x34e3f7>0x0)return _0x4432e4[_0x1d1a78('0x19a5')]['get']({'id':_0x34e3f7,'fields':'id,name'})[_0x1d1a78('0xe59')]['then'](function(_0x51917f){var _0x16d86a=_0x1d1a78,_0x48b26b=_0x51917f['toJSON']();_0x48b26b[_0x16d86a('0x1e9d')]=![],_0x50099c[_0x16d86a('0xb76')](_0x48b26b),_0x2f3986['values'][_0x16d86a('0x1626')]=_0x25544f(_0x50099c,'id',_0x16d86a('0x2623'));})[_0x1d1a78('0x223b')](function(_0x261178){var _0x34309e=_0x1d1a78;_0x49257a['error']({'title':_0x261178[_0x34309e('0x2833')]?_0x34309e('0x27f2')+_0x261178[_0x34309e('0x2833')]+_0x34309e('0x1b7c')+_0x261178[_0x34309e('0x1fd7')]:'GET_VARIABLE','msg':_0x261178[_0x34309e('0x11d0')]?JSON['stringify'](_0x261178[_0x34309e('0x11d0')][_0x34309e('0x27e8')]):_0x261178[_0x34309e('0x94f')]()});});else _0x2f3986[_0x1d1a78('0x1b79')][_0x1d1a78('0x1626')]=_0x25544f(_0x50099c,'id',_0x1d1a78('0x2623'));}function _0x482ed8(){var _0x24dcc2=_0x490e10,_0x4ab5ee=Number(_0x32d445()[_0x24dcc2('0xf15')](_0x2f3986[_0x24dcc2('0x20fc')],{'name':'odbc_id'})[_0x24dcc2('0x2')]),_0x559e6f=_0x32d445()[_0x24dcc2('0x201a')](_0x5ea3dd,{'id':_0x4ab5ee});if(!_0x559e6f&&_0x4ab5ee>0x0)return _0x4432e4[_0x24dcc2('0x731')]['get']({'id':_0x4ab5ee,'fields':_0x24dcc2('0x104')})[_0x24dcc2('0xe59')][_0x24dcc2('0xe19')](function(_0x516d9e){var _0x40ef70=_0x24dcc2,_0x27b9ab=_0x516d9e[_0x40ef70('0x250e')]();_0x27b9ab[_0x40ef70('0x1e9d')]=![],_0x5ea3dd[_0x40ef70('0xb76')](_0x27b9ab),_0x2f3986[_0x40ef70('0x1b79')][_0x40ef70('0xffa')]=_0x25544f(_0x5ea3dd,'id','name');})[_0x24dcc2('0x223b')](function(_0xdb35fd){var _0x5b0ed8=_0x24dcc2;_0x49257a[_0x5b0ed8('0x8c8')]({'title':_0xdb35fd[_0x5b0ed8('0x2833')]?_0x5b0ed8('0x27f2')+_0xdb35fd[_0x5b0ed8('0x2833')]+_0x5b0ed8('0x1b7c')+_0xdb35fd['statusText']:_0x5b0ed8('0x1f28'),'msg':_0xdb35fd[_0x5b0ed8('0x11d0')]?JSON['stringify'](_0xdb35fd[_0x5b0ed8('0x11d0')]['message']):_0xdb35fd[_0x5b0ed8('0x94f')]()});});else _0x2f3986[_0x24dcc2('0x1b79')][_0x24dcc2('0xffa')]=_0x25544f(_0x5ea3dd,'id',_0x24dcc2('0x2623'));}function _0x5ecc04(){var _0x1a9de7=_0x490e10,_0x2e2b3d=Number(_0x32d445()[_0x1a9de7('0xf15')](_0x2f3986[_0x1a9de7('0x20fc')],{'name':_0x1a9de7('0x11')})[_0x1a9de7('0x2')]),_0x4cfb65=_0x32d445()[_0x1a9de7('0x201a')](_0x142343,{'id':_0x2e2b3d});if(!_0x4cfb65&&_0x2e2b3d>0x0)return _0x4432e4[_0x1a9de7('0x20c9')][_0x1a9de7('0x22d5')]({'id':_0x2e2b3d,'fields':'id,name'})[_0x1a9de7('0xe59')][_0x1a9de7('0xe19')](function(_0x4b2b6a){var _0x2651ea=_0x1a9de7,_0x383311=_0x4b2b6a[_0x2651ea('0x250e')]();_0x383311[_0x2651ea('0x1e9d')]=![],_0x142343[_0x2651ea('0xb76')](_0x383311),_0x2f3986[_0x2651ea('0x1b79')][_0x2651ea('0x11')]=_0x25544f(_0x142343,'id',_0x2651ea('0x2623'));})[_0x1a9de7('0x223b')](function(_0x29121f){var _0x4e9897=_0x1a9de7;_0x49257a[_0x4e9897('0x8c8')]({'title':_0x29121f['status']?_0x4e9897('0x27f2')+_0x29121f[_0x4e9897('0x2833')]+_0x4e9897('0x1b7c')+_0x29121f['statusText']:_0x4e9897('0x12c'),'msg':_0x29121f['data']?JSON['stringify'](_0x29121f[_0x4e9897('0x11d0')][_0x4e9897('0x27e8')]):_0x29121f[_0x4e9897('0x94f')]()});});else _0x2f3986['values'][_0x1a9de7('0x11')]=_0x25544f(_0x142343,'id',_0x1a9de7('0x2623'));}function _0x33a857(){var _0x1718c3=_0x490e10,_0x371b96=Number(_0x32d445()[_0x1718c3('0xf15')](_0x2f3986[_0x1718c3('0x20fc')],{'name':_0x1718c3('0x1318')})[_0x1718c3('0x2')]),_0x248462=_0x32d445()[_0x1718c3('0x201a')](_0x205379,{'id':_0x371b96});if(!_0x248462&&_0x371b96>0x0)return _0x4432e4[_0x1718c3('0x2768')][_0x1718c3('0x22d5')]({'id':_0x371b96,'fields':'id,name'})[_0x1718c3('0xe59')][_0x1718c3('0xe19')](function(_0x4600c2){var _0x3d5762=_0x1718c3,_0xaa99ee=_0x4600c2[_0x3d5762('0x250e')]();_0xaa99ee[_0x3d5762('0x1e9d')]=![],_0x205379[_0x3d5762('0xb76')](_0xaa99ee),_0x2f3986[_0x3d5762('0x1b79')][_0x3d5762('0x1318')]=_0x25544f(_0x205379,'id',_0x3d5762('0x2623'));})[_0x1718c3('0x223b')](function(_0x4d2c85){var _0x4ff144=_0x1718c3;_0x49257a['error']({'title':_0x4d2c85[_0x4ff144('0x2833')]?'API:'+_0x4d2c85['status']+_0x4ff144('0x1b7c')+_0x4d2c85[_0x4ff144('0x1fd7')]:_0x4ff144('0x1122'),'msg':_0x4d2c85[_0x4ff144('0x11d0')]?JSON['stringify'](_0x4d2c85[_0x4ff144('0x11d0')][_0x4ff144('0x27e8')]):_0x4d2c85['toString']()});});else _0x2f3986[_0x1718c3('0x1b79')][_0x1718c3('0x1318')]=_0x25544f(_0x205379,'id',_0x1718c3('0x2623'));}function _0x144475(){var _0x3d6ee8=_0x490e10,_0x1b98d4=Number(_0x32d445()['find'](_0x2f3986[_0x3d6ee8('0x20fc')],{'name':_0x3d6ee8('0x14be')})[_0x3d6ee8('0x2')]),_0x2056b5=_0x32d445()['some'](_0x468f9a,{'id':_0x1b98d4});if(!_0x2056b5&&_0x1b98d4>0x0)return _0x4432e4[_0x3d6ee8('0x134c')]['get']({'id':_0x1b98d4,'fields':_0x3d6ee8('0x4b')})[_0x3d6ee8('0xe59')][_0x3d6ee8('0xe19')](function(_0x5e52af){var _0x4d621a=_0x3d6ee8,_0x308115=_0x5e52af[_0x4d621a('0x250e')]();_0x308115[_0x4d621a('0x1e9d')]=![],_0x468f9a[_0x4d621a('0xb76')](_0x308115),_0x2f3986['values'][_0x4d621a('0x14be')]=_0x25544f(_0x468f9a,'id',_0x4d621a('0x2623'),_0x4d621a('0x1fc1'));})['catch'](function(_0x1cb96f){var _0x4add14=_0x3d6ee8;_0x49257a[_0x4add14('0x8c8')]({'title':_0x1cb96f[_0x4add14('0x2833')]?'API:'+_0x1cb96f[_0x4add14('0x2833')]+_0x4add14('0x1b7c')+_0x1cb96f[_0x4add14('0x1fd7')]:_0x4add14('0x2489'),'msg':_0x1cb96f['data']?JSON[_0x4add14('0x3ad')](_0x1cb96f['data'][_0x4add14('0x27e8')]):_0x1cb96f[_0x4add14('0x94f')]()});});else _0x2f3986[_0x3d6ee8('0x1b79')][_0x3d6ee8('0x14be')]=_0x25544f(_0x468f9a,'id',_0x3d6ee8('0x2623'),_0x3d6ee8('0x1fc1'));}function _0x3eb1a1(){var _0x57902e=_0x490e10,_0x550395=Number(_0x32d445()['find'](_0x2f3986[_0x57902e('0x20fc')],{'name':'account_id'})['value']),_0x5a7d20=_0x32d445()[_0x57902e('0x201a')](_0xaebe55,{'id':_0x550395});if(!_0x5a7d20&&_0x550395>0x0)return _0x4432e4[_0x57902e('0x17f0')][_0x57902e('0x22d5')]({'id':_0x550395,'fields':_0x57902e('0x104')})[_0x57902e('0xe59')][_0x57902e('0xe19')](function(_0x138c22){var _0x28727d=_0x57902e,_0xfbefde=_0x138c22['toJSON']();_0xfbefde[_0x28727d('0x1e9d')]=![],_0xaebe55['push'](_0xfbefde),_0x2f3986[_0x28727d('0x1b79')][_0x28727d('0x14a1')]=_0x25544f(_0xaebe55,'id',_0x28727d('0x2623'));})[_0x57902e('0x223b')](function(_0x4afc91){var _0x3c5e13=_0x57902e;_0x49257a[_0x3c5e13('0x8c8')]({'title':_0x4afc91[_0x3c5e13('0x2833')]?_0x3c5e13('0x27f2')+_0x4afc91['status']+'\x20-\x20'+_0x4afc91[_0x3c5e13('0x1fd7')]:_0x3c5e13('0x5ef'),'msg':_0x4afc91[_0x3c5e13('0x11d0')]?JSON['stringify'](_0x4afc91[_0x3c5e13('0x11d0')]['message']):_0x4afc91['toString']()});});else _0x2f3986[_0x57902e('0x1b79')][_0x57902e('0x14a1')]=_0x25544f(_0xaebe55,'id',_0x57902e('0x2623'));}function _0x296a7f(){var _0x530c6f=_0x490e10,_0x456f5=Number(_0x32d445()['find'](_0x2f3986[_0x530c6f('0x20fc')],{'name':_0x530c6f('0xcd7')})[_0x530c6f('0x2')]),_0x29ae74=_0x32d445()[_0x530c6f('0x201a')](_0x4fecef,{'id':_0x456f5});if(!_0x29ae74&&_0x456f5>0x0)return _0x4432e4['smsAccount'][_0x530c6f('0x22d5')]({'id':_0x456f5,'fields':_0x530c6f('0x104')})[_0x530c6f('0xe59')][_0x530c6f('0xe19')](function(_0x481341){var _0x2ec76d=_0x530c6f,_0x291d52=_0x481341[_0x2ec76d('0x250e')]();_0x291d52[_0x2ec76d('0x1e9d')]=![],_0x4fecef[_0x2ec76d('0xb76')](_0x291d52),_0x2f3986[_0x2ec76d('0x1b79')][_0x2ec76d('0xcd7')]=_0x25544f(_0x4fecef,'id','name');})[_0x530c6f('0x223b')](function(_0x4e1493){var _0x21ccdd=_0x530c6f;_0x49257a[_0x21ccdd('0x8c8')]({'title':_0x4e1493['status']?_0x21ccdd('0x27f2')+_0x4e1493[_0x21ccdd('0x2833')]+_0x21ccdd('0x1b7c')+_0x4e1493['statusText']:_0x21ccdd('0xc3'),'msg':_0x4e1493['data']?JSON['stringify'](_0x4e1493[_0x21ccdd('0x11d0')][_0x21ccdd('0x27e8')]):_0x4e1493['toString']()});});else _0x2f3986['values']['sms_account_id']=_0x25544f(_0x4fecef,'id','name');}function _0x1d31ef(){var _0x1f74ca=_0x490e10,_0x472d55=Number(_0x32d445()[_0x1f74ca('0xf15')](_0x2f3986['attributes'],{'name':_0x1f74ca('0x217a')})[_0x1f74ca('0x2')]),_0x166104=_0x32d445()['some'](_0x4d453e,{'id':_0x472d55});if(!_0x166104&&_0x472d55>0x0)return _0x4432e4[_0x1f74ca('0x12e2')][_0x1f74ca('0x22d5')]({'id':_0x472d55,'fields':'id,name'})['$promise']['then'](function(_0x1e60ff){var _0x360f08=_0x1f74ca,_0x4153e9=_0x1e60ff['toJSON']();_0x4153e9[_0x360f08('0x1e9d')]=![],_0x4d453e[_0x360f08('0xb76')](_0x4153e9),_0x2f3986[_0x360f08('0x1b79')]['template_id']=_0x25544f(_0x4d453e,'id','name');})['catch'](function(_0x370897){var _0xa18b04=_0x1f74ca;_0x49257a[_0xa18b04('0x8c8')]({'title':_0x370897[_0xa18b04('0x2833')]?'API:'+_0x370897[_0xa18b04('0x2833')]+_0xa18b04('0x1b7c')+_0x370897[_0xa18b04('0x1fd7')]:_0xa18b04('0x1a43'),'msg':_0x370897[_0xa18b04('0x11d0')]?JSON['stringify'](_0x370897['data'][_0xa18b04('0x27e8')]):_0x370897[_0xa18b04('0x94f')]()});});else _0x2f3986[_0x1f74ca('0x1b79')][_0x1f74ca('0x217a')]=_0x25544f(_0x4d453e,'id',_0x1f74ca('0x2623'));}function _0x24cfbf(){var _0x4432df=_0x490e10,_0x1a5074=Number(_0x32d445()[_0x4432df('0xf15')](_0x2f3986['attributes'],{'name':_0x4432df('0xce6')})['value']),_0x3725b5=_0x32d445()[_0x4432df('0x201a')](_0x523e35,{'id':_0x1a5074});if(!_0x3725b5&&_0x1a5074>0x0)return _0x4432e4[_0x4432df('0x1c98')][_0x4432df('0x22d5')]({'id':_0x1a5074,'fields':_0x4432df('0x104')})['$promise'][_0x4432df('0xe19')](function(_0x1351f3){var _0xcdebe4=_0x4432df,_0x49d2a8=_0x1351f3[_0xcdebe4('0x250e')]();_0x49d2a8['canSelect']=![],_0x523e35[_0xcdebe4('0xb76')](_0x49d2a8),_0x2f3986[_0xcdebe4('0x1b79')][_0xcdebe4('0xce6')]=_0x25544f(_0x523e35,'id',_0xcdebe4('0x2623'));})[_0x4432df('0x223b')](function(_0x3f636b){var _0x11ef14=_0x4432df;_0x49257a[_0x11ef14('0x8c8')]({'title':_0x3f636b[_0x11ef14('0x2833')]?_0x11ef14('0x27f2')+_0x3f636b[_0x11ef14('0x2833')]+'\x20-\x20'+_0x3f636b[_0x11ef14('0x1fd7')]:_0x11ef14('0x1ee5'),'msg':_0x3f636b['data']?JSON['stringify'](_0x3f636b[_0x11ef14('0x11d0')][_0x11ef14('0x27e8')]):_0x3f636b[_0x11ef14('0x94f')]()});});else _0x2f3986[_0x4432df('0x1b79')]['pause_id']=_0x25544f(_0x523e35,'id',_0x4432df('0x2623'));}function _0x1a4e80(_0x125b3c){var _0x9fde54=_0x490e10;_0x125b3c&&_0x2988b7(_0x2f3986[_0x9fde54('0x20fc')]),_0x42ac1d[_0x9fde54('0x11ed')]();}}const _0xfefb31=_0x2f920b;function _0x19665d(){var _0x518d51=_0xb635d2;return{'require':_0x518d51('0x8de'),'link':function _0x9ea311(_0x31ea33,_0x44c07c,_0x33e23f,_0x2c42a6){var _0x5222cf=_0x518d51;_0x2c42a6['$parsers'][_0x5222cf('0xb76')](function(_0x1fc044){return''+_0x1fc044;}),_0x2c42a6[_0x5222cf('0x490')]['push'](function(_0x211a5a){return parseFloat(_0x211a5a);});}};}const _0x2ba32c=_0x19665d;function _0x2a0f46(){var _0x20f283=_0xb635d2;return[{'value':'da','option':_0x20f283('0x1298')},{'value':'en','option':_0x20f283('0x1a01')},{'value':'de','option':_0x20f283('0x1753')},{'value':'it','option':_0x20f283('0x24dd')},{'value':'es','option':_0x20f283('0x74e')},{'value':'fr','option':'French'},{'value':'id','option':_0x20f283('0x12bf')},{'value':'ja','option':_0x20f283('0x2888')},{'value':'ko','option':_0x20f283('0xa60')},{'value':'nl','option':_0x20f283('0xcba')},{'value':'no','option':'Norwegian'},{'value':'pt','option':_0x20f283('0x82f')},{'value':_0x20f283('0x15fc'),'option':_0x20f283('0xed9')},{'value':'ru','option':_0x20f283('0x1bd8')},{'value':'sv','option':'Swedish'},{'value':'th','option':_0x20f283('0x2e1')},{'value':'uk','option':'Ukrainian'},{'value':'zh-CN','option':_0x20f283('0x75c')},{'value':'zh-HK','option':_0x20f283('0x229f')},{'value':_0x20f283('0x2dd'),'option':_0x20f283('0x12ff')}];}function _0x117bea(){var _0x325ef1=_0xb635d2;return[{'value':_0x325ef1('0x18bf'),'option':_0x325ef1('0x1067')},{'value':'cs-CZ','option':_0x325ef1('0x284e')},{'value':_0x325ef1('0x148'),'option':_0x325ef1('0x173d')},{'value':_0x325ef1('0x1412'),'option':_0x325ef1('0xd1d')},{'value':'el-GR','option':'Greek\x20(Greece)'},{'value':'en-AU','option':_0x325ef1('0x20d2')},{'value':_0x325ef1('0xb3b'),'option':_0x325ef1('0x531')},{'value':_0x325ef1('0x26e9'),'option':_0x325ef1('0x1256')},{'value':_0x325ef1('0x8a7'),'option':_0x325ef1('0x152')},{'value':_0x325ef1('0x67'),'option':_0x325ef1('0x954')},{'value':_0x325ef1('0x404'),'option':_0x325ef1('0x745')},{'value':'fr-CA','option':_0x325ef1('0x1d3a')},{'value':'fr-FR','option':_0x325ef1('0x1ea3')},{'value':_0x325ef1('0xb1b'),'option':'Hindi\x20(India)'},{'value':_0x325ef1('0x2810'),'option':_0x325ef1('0x4e1')},{'value':_0x325ef1('0x287'),'option':_0x325ef1('0x184d')},{'value':_0x325ef1('0xc55'),'option':_0x325ef1('0x1a24')},{'value':'ja-JP','option':'Japanese\x20(Japan)'},{'value':'ko-KR','option':_0x325ef1('0xa60')},{'value':_0x325ef1('0x6cf'),'option':_0x325ef1('0xdad')},{'value':_0x325ef1('0xcc2'),'option':_0x325ef1('0x6dd')},{'value':_0x325ef1('0x3b2'),'option':_0x325ef1('0xb22')},{'value':_0x325ef1('0x15fe'),'option':'Portuguese\x20(Brazil)'},{'value':_0x325ef1('0x1984'),'option':_0x325ef1('0xe38')},{'value':_0x325ef1('0x2715'),'option':_0x325ef1('0x1095')},{'value':_0x325ef1('0x1009'),'option':'Slovak\x20(Slovakia)'},{'value':_0x325ef1('0x1855'),'option':'Spanish\x20(Spain)'},{'value':_0x325ef1('0x1608'),'option':_0x325ef1('0xae9')},{'value':'tr-TR','option':_0x325ef1('0x2518')},{'value':_0x325ef1('0x11ae'),'option':_0x325ef1('0x1601')},{'value':_0x325ef1('0x2438'),'option':'Vietnamese\x20(Vietnam)'}];}function _0x3afb4d(){var _0x301ea4=_0xb635d2;return[{'value':'af','option':'Afrikaans'},{'value':'sq','option':'Albanian'},{'value':'am','option':_0x301ea4('0xedf')},{'value':'ar','option':'Arabic'},{'value':'hy','option':_0x301ea4('0x2a8')},{'value':'az','option':_0x301ea4('0x23b6')},{'value':'eu','option':'Basque'},{'value':'be','option':_0x301ea4('0x17c')},{'value':'bn','option':_0x301ea4('0x1279')},{'value':'bh','option':_0x301ea4('0x19c0')},{'value':'bs','option':_0x301ea4('0x1c8d')},{'value':'br','option':_0x301ea4('0x1098')},{'value':'bg','option':_0x301ea4('0x1dda')},{'value':'km','option':'Cambodian'},{'value':'ca','option':_0x301ea4('0x1750')},{'value':_0x301ea4('0xfb1'),'option':'Chinese\x20(Simplified)'},{'value':_0x301ea4('0x2dd'),'option':'Chinese\x20(Traditional)'},{'value':'co','option':_0x301ea4('0x1809')},{'value':'hr','option':_0x301ea4('0xa56')},{'value':'cs','option':'Czech'},{'value':'da','option':_0x301ea4('0x1298')},{'value':'nl','option':_0x301ea4('0xcba')},{'value':'en','option':_0x301ea4('0x1a01')},{'value':'eo','option':_0x301ea4('0xa07')},{'value':'et','option':_0x301ea4('0x922')},{'value':'fo','option':_0x301ea4('0x7dd')},{'value':'tl','option':_0x301ea4('0x1173')},{'value':'fi','option':_0x301ea4('0x124c')},{'value':'fr','option':_0x301ea4('0x2274')},{'value':'fy','option':_0x301ea4('0x1fa4')},{'value':'gl','option':'Galician'},{'value':'ka','option':_0x301ea4('0x12f7')},{'value':'de','option':_0x301ea4('0x1753')},{'value':'el','option':'Greek'},{'value':'gn','option':_0x301ea4('0x1a36')},{'value':'gu','option':_0x301ea4('0x2665')},{'value':_0x301ea4('0x11d7'),'option':_0x301ea4('0x166c')},{'value':'ha','option':_0x301ea4('0x1463')},{'value':'iw','option':_0x301ea4('0x1604')},{'value':'hi','option':_0x301ea4('0xfa6')},{'value':'hu','option':'Hungarian'},{'value':'is','option':'Icelandic'},{'value':'id','option':'Indonesian'},{'value':'ia','option':_0x301ea4('0x23e5')},{'value':'ga','option':_0x301ea4('0x1d67')},{'value':'it','option':'Italian'},{'value':'jw','option':'Javanese'},{'value':'ja','option':_0x301ea4('0x2888')},{'value':'kn','option':'Kannada'},{'value':'kk','option':_0x301ea4('0x10ab')},{'value':'rw','option':_0x301ea4('0x112')},{'value':'rn','option':_0x301ea4('0x1cb9')},{'value':_0x301ea4('0x1123'),'option':_0x301ea4('0x486')},{'value':'ku','option':_0x301ea4('0x24a')},{'value':'ko','option':_0x301ea4('0x1109')},{'value':'ky','option':_0x301ea4('0x12a')},{'value':'lo','option':_0x301ea4('0x26de')},{'value':'la','option':_0x301ea4('0x1def')},{'value':'lv','option':'Latvian'},{'value':'ln','option':'Lingala'},{'value':'lt','option':_0x301ea4('0xc80')},{'value':'mk','option':'Macedonian'},{'value':'mg','option':'Malagasy'},{'value':'ml','option':_0x301ea4('0x138b')},{'value':'mt','option':_0x301ea4('0x1507')},{'value':'mi','option':'Maori'},{'value':'mr','option':_0x301ea4('0x1a7e')},{'value':'mo','option':_0x301ea4('0x1e06')},{'value':'mn','option':_0x301ea4('0x188d')},{'value':_0x301ea4('0xc8'),'option':_0x301ea4('0x19')},{'value':'ne','option':_0x301ea4('0x9d3')},{'value':'no','option':_0x301ea4('0x19b5')},{'value':'nn','option':_0x301ea4('0x2123')},{'value':'oc','option':_0x301ea4('0x1f7a')},{'value':'or','option':'Oriya'},{'value':'om','option':_0x301ea4('0x228c')},{'value':'ps','option':'Pashto'},{'value':'fa','option':_0x301ea4('0x22bf')},{'value':'xx-pirate','option':_0x301ea4('0x1667')},{'value':'pl','option':'Polish'},{'value':'pt-BR','option':_0x301ea4('0x1dd4')},{'value':_0x301ea4('0x1984'),'option':_0x301ea4('0xe38')},{'value':'pa','option':_0x301ea4('0x1257')},{'value':'qu','option':_0x301ea4('0x1327')},{'value':'ro','option':_0x301ea4('0x2367')},{'value':'rm','option':_0x301ea4('0x7fe')},{'value':'ru','option':_0x301ea4('0x1bd8')},{'value':'gd','option':'Scots\x20Gaelic'},{'value':'sr','option':_0x301ea4('0x7cd')},{'value':'sh','option':_0x301ea4('0x682')},{'value':'st','option':'Sesotho'},{'value':'sn','option':'Shona'},{'value':'sd','option':'Sindhi'},{'value':'si','option':_0x301ea4('0x23a4')},{'value':'sk','option':_0x301ea4('0x1675')},{'value':'sl','option':'Slovenian'},{'value':'so','option':'Somali'},{'value':'es','option':_0x301ea4('0x74e')},{'value':'su','option':'Sundanese'},{'value':'sw','option':_0x301ea4('0x203d')},{'value':'sv','option':_0x301ea4('0x1dc7')},{'value':'tg','option':_0x301ea4('0xf66')},{'value':'ta','option':_0x301ea4('0xfc4')},{'value':'tt','option':_0x301ea4('0x21de')},{'value':'te','option':_0x301ea4('0x1bb7')},{'value':'th','option':_0x301ea4('0x2e1')},{'value':'ti','option':'Tigrinya'},{'value':'to','option':_0x301ea4('0x234')},{'value':'tr','option':_0x301ea4('0x22e2')},{'value':'tk','option':_0x301ea4('0x2467')},{'value':'tw','option':'Twi'},{'value':'ug','option':_0x301ea4('0x140')},{'value':'uk','option':_0x301ea4('0x6d9')},{'value':'ur','option':_0x301ea4('0x2881')},{'value':'uz','option':_0x301ea4('0x1f55')},{'value':'vi','option':_0x301ea4('0xebf')},{'value':'cy','option':_0x301ea4('0x187')},{'value':'xh','option':'Xhosa'},{'value':'yi','option':_0x301ea4('0x17cb')},{'value':'yo','option':'Yoruba'},{'value':'zu','option':_0x301ea4('0x1ad1')}];}function _0x439a42(){var _0x154818=_0xb635d2;return[{'value':'af-ZA','option':_0x154818('0x102e')},{'value':'am-ET','option':'Amharic\x20(Ethiopia)'},{'value':_0x154818('0xe'),'option':_0x154818('0x1b92')},{'value':'az-AZ','option':'Azerbaijani\x20(Azerbaijan)'},{'value':'id-ID','option':_0x154818('0x184d')},{'value':_0x154818('0x1245'),'option':_0x154818('0xd6f')},{'value':'bn-BD','option':'Bengali\x20(Bangladesh)'},{'value':_0x154818('0x288'),'option':_0x154818('0x6ff')},{'value':_0x154818('0x1ad8'),'option':_0x154818('0xf96')},{'value':_0x154818('0x1a5f'),'option':'Czech\x20(Czech\x20Republic)'},{'value':_0x154818('0x148'),'option':'Danish\x20(Denmark)'},{'value':_0x154818('0x1412'),'option':'German\x20(Germany)'},{'value':'en-AU','option':'English\x20(Australia)'},{'value':_0x154818('0x54b'),'option':_0x154818('0x600')},{'value':_0x154818('0x219a'),'option':_0x154818('0x25cf')},{'value':_0x154818('0x26e9'),'option':'English\x20(United\x20Kingdom)'},{'value':_0x154818('0xb3b'),'option':'English\x20(India)'},{'value':_0x154818('0x16d9'),'option':_0x154818('0xd39')},{'value':_0x154818('0x88d'),'option':_0x154818('0x1ece')},{'value':_0x154818('0x754'),'option':_0x154818('0xe51')},{'value':_0x154818('0x1d88'),'option':_0x154818('0x1319')},{'value':_0x154818('0x26c3'),'option':_0x154818('0x1cfb')},{'value':_0x154818('0x309'),'option':_0x154818('0x1e57')},{'value':_0x154818('0x18f6'),'option':_0x154818('0x746')},{'value':_0x154818('0x8a7'),'option':'English\x20(United\x20States)'},{'value':'es-AR','option':'Spanish\x20(Argentina)'},{'value':_0x154818('0x2847'),'option':_0x154818('0x969')},{'value':_0x154818('0x213e'),'option':'Spanish\x20(Chile)'},{'value':_0x154818('0x203c'),'option':'Spanish\x20(Colombia)'},{'value':'es-CR','option':'Spanish\x20(Costa\x20Rica)'},{'value':'es-EC','option':_0x154818('0x1871')},{'value':_0x154818('0xa38'),'option':_0x154818('0x902')},{'value':_0x154818('0x1855'),'option':_0x154818('0xf16')},{'value':_0x154818('0x1134'),'option':_0x154818('0x84b')},{'value':_0x154818('0x1352'),'option':_0x154818('0xb13')},{'value':_0x154818('0x19bb'),'option':'Spanish\x20(Honduras)'},{'value':_0x154818('0x55'),'option':_0x154818('0x11c9')},{'value':'es-NI','option':_0x154818('0x164c')},{'value':_0x154818('0x47c'),'option':_0x154818('0x2df')},{'value':_0x154818('0x24f4'),'option':_0x154818('0x5e4')},{'value':_0x154818('0x17f'),'option':_0x154818('0x1759')},{'value':_0x154818('0x1b9d'),'option':'Spanish\x20(Puerto\x20Rico)'},{'value':_0x154818('0x293'),'option':_0x154818('0x596')},{'value':_0x154818('0x262f'),'option':_0x154818('0x65b')},{'value':_0x154818('0x22a0'),'option':_0x154818('0x13d2')},{'value':_0x154818('0x12c4'),'option':_0x154818('0x2782')},{'value':_0x154818('0x404'),'option':_0x154818('0x745')},{'value':_0x154818('0xcdd'),'option':_0x154818('0x1d3a')},{'value':_0x154818('0x2135'),'option':_0x154818('0x1ea3')},{'value':_0x154818('0x1e5'),'option':_0x154818('0x1a8e')},{'value':_0x154818('0x284'),'option':_0x154818('0x253e')},{'value':_0x154818('0x64c'),'option':_0x154818('0x1532')},{'value':_0x154818('0x2e8'),'option':_0x154818('0x21b6')},{'value':_0x154818('0x1b4f'),'option':'Zulu\x20(South\x20Africa)'},{'value':'is-IS','option':_0x154818('0x1278')},{'value':_0x154818('0xc55'),'option':_0x154818('0x1a24')},{'value':_0x154818('0x480'),'option':_0x154818('0x1536')},{'value':_0x154818('0xaa5'),'option':'Kannada\x20(India)'},{'value':_0x154818('0x1138'),'option':_0x154818('0x1766')},{'value':_0x154818('0x2722'),'option':_0x154818('0x54f')},{'value':_0x154818('0x1e25'),'option':_0x154818('0x110d')},{'value':_0x154818('0x21ca'),'option':'Lithuanian\x20(Lithuania)'},{'value':_0x154818('0x2810'),'option':'Hungarian\x20(Hungary)'},{'value':'ml-IN','option':_0x154818('0x27bd')},{'value':_0x154818('0x774'),'option':_0x154818('0xcea')},{'value':_0x154818('0x1115'),'option':_0x154818('0xd1d')},{'value':_0x154818('0x1973'),'option':_0x154818('0xa01')},{'value':'nb-NO','option':_0x154818('0x76')},{'value':'pl-PL','option':'Polish\x20(Poland)'},{'value':_0x154818('0x15fe'),'option':_0x154818('0x1dd4')},{'value':_0x154818('0x1984'),'option':_0x154818('0xe38')},{'value':_0x154818('0xba5'),'option':_0x154818('0x1ed2')},{'value':_0x154818('0x2023'),'option':'Sinhala\x20(Srilanka)'},{'value':_0x154818('0x1009'),'option':_0x154818('0x2357')},{'value':_0x154818('0x464'),'option':_0x154818('0x785')},{'value':_0x154818('0x131c'),'option':_0x154818('0xcef')},{'value':_0x154818('0xfa4'),'option':_0x154818('0x2131')},{'value':_0x154818('0x2442'),'option':_0x154818('0x1f86')},{'value':_0x154818('0x67'),'option':_0x154818('0x954')},{'value':'sv-SE','option':_0x154818('0xae9')},{'value':_0x154818('0xdf3'),'option':_0x154818('0x2857')},{'value':_0x154818('0x2685'),'option':_0x154818('0x1018')},{'value':_0x154818('0x18ea'),'option':_0x154818('0x48')},{'value':_0x154818('0x21b'),'option':_0x154818('0x135')},{'value':_0x154818('0x305'),'option':_0x154818('0x2763')},{'value':_0x154818('0x2438'),'option':_0x154818('0x1dbd')},{'value':_0x154818('0x6e7'),'option':_0x154818('0x2518')},{'value':_0x154818('0x1e3b'),'option':_0x154818('0x10c8')},{'value':_0x154818('0xcd1'),'option':'Urdu\x20(India)'},{'value':'el-GR','option':'Greek\x20(Greece)'},{'value':_0x154818('0x27fa'),'option':_0x154818('0x1461')},{'value':_0x154818('0x2715'),'option':_0x154818('0x1095')},{'value':_0x154818('0x289c'),'option':_0x154818('0x1e65')},{'value':_0x154818('0x11ae'),'option':_0x154818('0x1601')},{'value':_0x154818('0x146f'),'option':_0x154818('0x2e4')},{'value':_0x154818('0x716'),'option':_0x154818('0xae7')},{'value':_0x154818('0xc81'),'option':'Arabic\x20(Jordan)'},{'value':_0x154818('0x1c4'),'option':_0x154818('0x1b4e')},{'value':_0x154818('0x7fb'),'option':_0x154818('0x2245')},{'value':_0x154818('0x7d7'),'option':_0x154818('0x1d78')},{'value':_0x154818('0x402'),'option':_0x154818('0x20cc')},{'value':_0x154818('0xbeb'),'option':_0x154818('0x1f67')},{'value':_0x154818('0x62f'),'option':_0x154818('0x1a44')},{'value':_0x154818('0x1160'),'option':_0x154818('0x11d9')},{'value':_0x154818('0x221d'),'option':_0x154818('0x926')},{'value':_0x154818('0x289e'),'option':_0x154818('0x130b')},{'value':_0x154818('0x30'),'option':_0x154818('0x2520')},{'value':_0x154818('0xb35'),'option':'Arabic\x20(Qatar)'},{'value':_0x154818('0xbb9'),'option':_0x154818('0x1a17')},{'value':_0x154818('0xd1'),'option':_0x154818('0x1406')},{'value':_0x154818('0x9b1'),'option':_0x154818('0x1522')},{'value':_0x154818('0xb1b'),'option':'Hindi\x20(India)'},{'value':_0x154818('0x12a5'),'option':_0x154818('0xbc1')},{'value':_0x154818('0x20a0'),'option':_0x154818('0xa60')},{'value':_0x154818('0x664'),'option':_0x154818('0x144b')},{'value':_0x154818('0x25ea'),'option':'Chinese,\x20Cantonese\x20(Traditional,\x20Hong\x20Kong)'},{'value':_0x154818('0x27a7'),'option':_0x154818('0x27ff')},{'value':_0x154818('0x13e0'),'option':_0x154818('0x1b7')},{'value':'cmn-Hans-CN','option':'Chinese,\x20Mandarin\x20(Simplified,\x20China)'}];}function _0x4ade95(){var _0x535684=_0xb635d2;return[{'value':'usenglishfemale','option':'US\x20English\x20Female'},{'value':_0x535684('0x21b2'),'option':'US\x20English\x20Male'},{'value':_0x535684('0x1dbf'),'option':_0x535684('0x159f')},{'value':'ukenglishmale','option':_0x535684('0xebe')},{'value':_0x535684('0x2188'),'option':_0x535684('0x1fde')},{'value':_0x535684('0x10fe'),'option':_0x535684('0xa36')},{'value':_0x535684('0x163d'),'option':_0x535684('0xcbd')},{'value':_0x535684('0xdc9'),'option':_0x535684('0x265e')},{'value':_0x535684('0x220f'),'option':_0x535684('0x2475')},{'value':'hkchinesefemale','option':_0x535684('0x27cd')},{'value':_0x535684('0x66b'),'option':_0x535684('0x1cd1')},{'value':_0x535684('0x111d'),'option':_0x535684('0x130d')},{'value':_0x535684('0x1bc0'),'option':_0x535684('0x1cd')},{'value':_0x535684('0x1ffd'),'option':_0x535684('0x1418')},{'value':_0x535684('0x1249'),'option':_0x535684('0x472')},{'value':_0x535684('0x2742'),'option':_0x535684('0x9d8')},{'value':'huhungarianfemale','option':'Hungarian\x20Female'},{'value':'brportuguesefemale','option':_0x535684('0x1366')},{'value':'eurportuguesefemale','option':_0x535684('0x8b')},{'value':_0x535684('0x57c'),'option':_0x535684('0x1cb4')},{'value':_0x535684('0x146a'),'option':_0x535684('0x6a')},{'value':'eurspanishmale','option':_0x535684('0x7ed')},{'value':_0x535684('0x23a8'),'option':_0x535684('0x4ab')},{'value':_0x535684('0x1e3'),'option':_0x535684('0x9f5')},{'value':_0x535684('0xb2e'),'option':_0x535684('0x230')},{'value':_0x535684('0x213b'),'option':_0x535684('0x200')},{'value':_0x535684('0x280f'),'option':_0x535684('0xe7c')},{'value':_0x535684('0x1dba'),'option':_0x535684('0x919')},{'value':_0x535684('0x175'),'option':_0x535684('0x2491')},{'value':_0x535684('0x2803'),'option':_0x535684('0xc6')},{'value':'eurpolishfemale','option':_0x535684('0x74a')},{'value':'euritalianfemale','option':_0x535684('0x191')},{'value':_0x535684('0xf77'),'option':'European\x20Italian\x20Male'},{'value':_0x535684('0x2633'),'option':_0x535684('0x1696')},{'value':_0x535684('0x255c'),'option':'European\x20Turkish\x20Male'},{'value':'eurgermanfemale','option':_0x535684('0xd7a')},{'value':'eurgermanmale','option':_0x535684('0xe8')},{'value':_0x535684('0xd5d'),'option':_0x535684('0x1920')},{'value':'rurussianmale','option':_0x535684('0x255a')},{'value':_0x535684('0x177'),'option':_0x535684('0x2385')},{'value':_0x535684('0xe3'),'option':'Canadian\x20French\x20Female'},{'value':_0x535684('0x1e87'),'option':_0x535684('0xca4')}];}function _0x1827a3(){var _0x573f44=_0xb635d2;return[{'value':_0x573f44('0x8a7'),'option':_0x573f44('0x152')},{'value':'en-CA','option':_0x573f44('0x600')},{'value':_0x573f44('0x26e9'),'option':'English\x20(UK)'},{'value':_0x573f44('0x2d6'),'option':_0x573f44('0x1322')},{'value':'es-ES','option':_0x573f44('0xf16')},{'value':_0x573f44('0x55'),'option':_0x573f44('0x11c9')},{'value':'it-IT','option':'Italian\x20(Italy)\x20/\x20Finnish\x20(Finland)'},{'value':'fr-FR','option':_0x573f44('0xd15')},{'value':_0x573f44('0xcdd'),'option':'French\x20(Canada)'},{'value':_0x573f44('0x3b2'),'option':'Polish\x20(Poland)'},{'value':_0x573f44('0x1984'),'option':_0x573f44('0xe38')},{'value':_0x573f44('0x1ad8'),'option':_0x573f44('0x170e')},{'value':_0x573f44('0x2dd'),'option':_0x573f44('0xe08')},{'value':_0x573f44('0x148'),'option':_0x573f44('0x173d')},{'value':_0x573f44('0x27a7'),'option':_0x573f44('0x27ff')},{'value':_0x573f44('0x20a0'),'option':_0x573f44('0x1a9c')},{'value':_0x573f44('0x1115'),'option':_0x573f44('0xd1d')},{'value':_0x573f44('0xcc2'),'option':_0x573f44('0x6dd')},{'value':_0x573f44('0x15fe'),'option':_0x573f44('0x1dd4')},{'value':_0x573f44('0x2715'),'option':_0x573f44('0x1095')},{'value':_0x573f44('0x1608'),'option':_0x573f44('0xae9')},{'value':'zh-CN','option':_0x573f44('0x20d8')},{'value':_0x573f44('0x1434'),'option':_0x573f44('0x229f')}];}function _0x1c184a(){var _0x42a6f3=_0xb635d2;return[{'value':'0','option':_0x42a6f3('0x2ad')},{'value':_0x42a6f3('0xf6d'),'option':_0x42a6f3('0x8cc')},{'value':'usmoney','option':_0x42a6f3('0x270f')},{'value':'numbersto9','option':_0x42a6f3('0x1a78')},{'value':_0x42a6f3('0x1bdd'),'option':_0x42a6f3('0xed7')},{'value':_0x42a6f3('0x2401'),'option':_0x42a6f3('0xc88')},{'value':'time','option':_0x42a6f3('0x5e2')},{'value':_0x42a6f3('0xab4'),'option':_0x42a6f3('0x258b')},{'value':_0x42a6f3('0xe69'),'option':'Streets'},{'value':'citystate','option':_0x42a6f3('0x22f9')}];}function _0x19702d(){var _0x172dc7=_0xb635d2;return[{'value':_0x172dc7('0x1f89'),'option':'Amy\x20(English,\x20British,\x20Female)'},{'value':_0x172dc7('0x1991'),'option':_0x172dc7('0x2331')},{'value':'Brian','option':_0x172dc7('0x2211')},{'value':_0x172dc7('0x23f'),'option':'Carla\x20(Italian,\x20Female)'},{'value':_0x172dc7('0x2186'),'option':_0x172dc7('0xd9e')},{'value':_0x172dc7('0x103d'),'option':'Celine\x20(French,\x20Female)'},{'value':_0x172dc7('0x16cc'),'option':'Chantal\x20(French,\x20Canadian,\x20Female)'},{'value':_0x172dc7('0xb49'),'option':_0x172dc7('0x6f0')},{'value':'Cristiano','option':_0x172dc7('0x17c5')},{'value':_0x172dc7('0x1400'),'option':_0x172dc7('0x1516')},{'value':_0x172dc7('0x616'),'option':'Emma\x20(English,\x20British,\x20Female)'},{'value':_0x172dc7('0xeba'),'option':_0x172dc7('0xb8')},{'value':_0x172dc7('0x1177'),'option':_0x172dc7('0x1701')},{'value':'Filiz','option':_0x172dc7('0x24a3')},{'value':_0x172dc7('0x1909'),'option':_0x172dc7('0x238a')},{'value':_0x172dc7('0x11b9'),'option':_0x172dc7('0x733')},{'value':_0x172dc7('0x22f'),'option':_0x172dc7('0xf18')},{'value':_0x172dc7('0x1ed1'),'option':_0x172dc7('0x1b3e')},{'value':_0x172dc7('0xd7c'),'option':_0x172dc7('0x1b29')},{'value':_0x172dc7('0x1d56'),'option':_0x172dc7('0x932')},{'value':_0x172dc7('0x71b'),'option':_0x172dc7('0x2478')},{'value':_0x172dc7('0x1b45'),'option':_0x172dc7('0x1994')},{'value':_0x172dc7('0x20e5'),'option':_0x172dc7('0x49a')},{'value':'Joey','option':_0x172dc7('0x1e6f')},{'value':_0x172dc7('0x60e'),'option':_0x172dc7('0x1c86')},{'value':'Karl','option':'Karl\x20(Icelandic,\x20Male)'},{'value':'Kendra','option':_0x172dc7('0xdf5')},{'value':_0x172dc7('0x19f2'),'option':_0x172dc7('0x639')},{'value':_0x172dc7('0x245'),'option':_0x172dc7('0x1485')},{'value':_0x172dc7('0x27a6'),'option':_0x172dc7('0x277')},{'value':_0x172dc7('0x1e0c'),'option':_0x172dc7('0x2627')},{'value':_0x172dc7('0x1393'),'option':'Maja\x20(Polish,\x20Female)'},{'value':_0x172dc7('0x172d'),'option':'Marlene\x20(German,\x20Female)'},{'value':_0x172dc7('0xea0'),'option':_0x172dc7('0x6a1')},{'value':_0x172dc7('0x1f54'),'option':_0x172dc7('0x10a9')},{'value':_0x172dc7('0xf94'),'option':'Miguel\x20(Spanish,\x20US,\x20Male)'},{'value':_0x172dc7('0xe5d'),'option':'Mizuki\x20(Japanese,\x20Female)'},{'value':_0x172dc7('0x284d'),'option':'Naja\x20(Danish,\x20Female)'},{'value':'Nicole','option':_0x172dc7('0xae6')},{'value':_0x172dc7('0x37d'),'option':_0x172dc7('0x1527')},{'value':_0x172dc7('0x114b'),'option':'Raveena\x20(English,\x20Indian,\x20Female)'},{'value':_0x172dc7('0x1c80'),'option':'Ricardo\x20(Portuguese,\x20Brazilian,\x20Male)'},{'value':_0x172dc7('0xb65'),'option':_0x172dc7('0x1eb1')},{'value':_0x172dc7('0x650'),'option':_0x172dc7('0x20b1')},{'value':_0x172dc7('0x15e1'),'option':_0x172dc7('0x139c')},{'value':_0x172dc7('0x2178'),'option':'Tatyana\x20(Russian,\x20Female)'},{'value':_0x172dc7('0xfab'),'option':'Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)'}];}function _0x3c6d4a(){var _0x18be9e=_0xb635d2;return[{'value':_0x18be9e('0x1c8'),'option':_0x18be9e('0x26e')},{'value':_0x18be9e('0xb19'),'option':_0x18be9e('0x13db')},{'value':'us-west-1','option':'US\x20West\x20(N.\x20California)'},{'value':_0x18be9e('0x503'),'option':'US\x20West\x20(Oregon)'},{'value':_0x18be9e('0xf54'),'option':_0x18be9e('0x38a')},{'value':_0x18be9e('0x1e6'),'option':_0x18be9e('0x21dc')},{'value':_0x18be9e('0x186'),'option':_0x18be9e('0x1c54')},{'value':_0x18be9e('0x2cd'),'option':'EU\x20(London)'},{'value':_0x18be9e('0x48e'),'option':'EU\x20(Paris)'},{'value':_0x18be9e('0x8b5'),'option':'Asia\x20Pacific\x20(Singapore)'},{'value':_0x18be9e('0x1d3f'),'option':_0x18be9e('0xcd')},{'value':_0x18be9e('0x13c8'),'option':_0x18be9e('0x13dd')},{'value':_0x18be9e('0x1f9d'),'option':'Asia\x20Pacific\x20(Tokyo)'},{'value':_0x18be9e('0xcc'),'option':_0x18be9e('0x1b6e')},{'value':_0x18be9e('0x182b'),'option':_0x18be9e('0x2476')}];}function _0x5c96bb(){var _0x26947f=_0xb635d2;return[{'value':_0x26947f('0x1c8'),'option':_0x26947f('0x26e')},{'value':_0x26947f('0x503'),'option':_0x26947f('0x60c')},{'value':_0x26947f('0x1e6'),'option':_0x26947f('0x21dc')},{'value':'ap-southeast-2','option':_0x26947f('0xcd')}];}_0x21d59b[_0xb635d2('0xb0c')]=['$mdDialog',_0xb635d2('0xf65'),_0xb635d2('0x24c0'),_0xb635d2('0x1dae')];function _0x21d59b(_0xb527db,_0x3d56f0,_0x2445b8,_0x4e0ee9){var _0x255d31=_0xb635d2,_0x157f0c=this;_0x157f0c[_0x255d31('0x38b')]={'preproduction':_0x2445b8};function _0x5e69a2(_0x207de8){var _0x3c238b=_0x255d31;_0x207de8?(_0x4e0ee9(_0x157f0c[_0x3c238b('0x38b')][_0x3c238b('0x1498')]),_0xb527db[_0x3c238b('0x11ed')](_0x157f0c['project'][_0x3c238b('0x1498')])):_0xb527db[_0x3c238b('0x11ed')]();}_0x157f0c[_0x255d31('0x2584')]=_0x5e69a2;}const _0x20a4a5=_0x21d59b;_0x20b93c['$inject']=[_0xb635d2('0x1c9f'),_0xb635d2('0x1dae')];function _0x20b93c(_0x367db7,_0x4fe7e1){var _0x539207=_0xb635d2,_0x31361c=this,_0x437189=0x5,_0x3ce3e4=_0x437189*0x400*0x400;_0x31361c[_0x539207('0xcd2')]=[],_0x31361c[_0x539207('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3ce3e4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x31361c[_0x539207('0x1b57')]={'flow':{}},_0x31361c['dropping']=![],_0x31361c[_0x539207('0x2584')]=_0x124231,_0x31361c[_0x539207('0x1124')]=_0x1d16c6;function _0x1d16c6(_0x5e4ddc){var _0x4cf9c5=_0x539207;_0x31361c[_0x4cf9c5('0xcd2')]=[];var _0x531e0e=['xml'];!_0x32d445()[_0x4cf9c5('0x1c43')](_0x531e0e,_0x5e4ddc[_0x4cf9c5('0x23df')]())&&_0x31361c[_0x4cf9c5('0xcd2')][_0x4cf9c5('0xb76')]({'message':_0x4cf9c5('0x1547')+_0x5e4ddc[_0x4cf9c5('0x23df')]()+_0x4cf9c5('0x72d')});_0x5e4ddc['size']>_0x3ce3e4&&_0x31361c[_0x4cf9c5('0xcd2')]['push']({'message':'The\x20file\x20is\x20too\x20big.\x20The\x20max\x20allowed\x20size\x20is\x20'+_0x437189+'MB'});if(!_0x31361c[_0x4cf9c5('0xcd2')][_0x4cf9c5('0x25ae')]){var _0x3a2f53=new FileReader();_0x3a2f53[_0x4cf9c5('0x1d94')]=function(_0x100f28){var _0x50f406=_0x4cf9c5;_0x124231(_0x100f28['target'][_0x50f406('0x2048')]);},_0x3a2f53['readAsText'](_0x5e4ddc[_0x4cf9c5('0x2c0')]);}}function _0x124231(_0x4d2d69){var _0x325cd3=_0x539207;_0x4d2d69?(_0x4fe7e1(_0x4d2d69),_0x367db7[_0x325cd3('0x11ed')](_0x4d2d69)):_0x367db7[_0x325cd3('0x11ed')]();}}const _0x4d88ea=_0x20b93c;_0x392a4b['$inject']=[_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x38b'),_0xb635d2('0xffc')];function _0x392a4b(_0x2534b9,_0x581d32,_0x593c39,_0x1c4968){var _0x1fac9c=_0xb635d2,_0x120b81=this;_0x120b81['project']=_0x32d445()['clone'](_0x593c39);function _0x14dafc(){var _0x4bf392=a0_0x5325;_0x120b81['errors']=[],_0x1c4968[_0x4bf392('0x20c9')]['update']({'id':_0x120b81['project']['id']},{'notes':_0x120b81[_0x4bf392('0x38b')][_0x4bf392('0x1fe4')],'description':_0x120b81[_0x4bf392('0x38b')][_0x4bf392('0x897')]})[_0x4bf392('0xe59')][_0x4bf392('0xe19')](function(_0x3c35e6){var _0x40d021=_0x4bf392;_0x581d32[_0x40d021('0x425')]({'title':_0x40d021('0x194'),'msg':_0x120b81[_0x40d021('0x38b')][_0x40d021('0x2623')]?_0x120b81[_0x40d021('0x38b')][_0x40d021('0x2623')]+_0x40d021('0x283b'):''}),_0x2534b9[_0x40d021('0x11ed')](_0x3c35e6);})[_0x4bf392('0x223b')](function(_0x28d604){var _0x34854e=_0x4bf392;console[_0x34854e('0x8c8')](_0x28d604),_0x120b81[_0x34854e('0xcd2')]=_0x28d604[_0x34854e('0x11d0')][_0x34854e('0xcd2')]||[{'message':_0x28d604['toString'](),'type':'api.squareProject.update'}];});}function _0x37a232(){var _0x5ccad3=a0_0x5325;_0x2534b9[_0x5ccad3('0x11ed')]();}_0x120b81[_0x1fac9c('0x2584')]=_0x37a232,_0x120b81[_0x1fac9c('0xe5e')]=_0x14dafc;}const _0x552e78=_0x392a4b;_0x36f675[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),'projects','$window',_0xb635d2('0xeb6')];function _0x36f675(_0x216625,_0x437bbc,_0x22fc23,_0xf3fe9d,_0x4c3d2c){var _0x42bae5=_0xb635d2,_0x5b0c42=this;_0x5b0c42[_0x42bae5('0x1d39')]=_0x22fc23,_0x5b0c42['id']='',_0x5b0c42['newWindow']=!![];function _0x4d22a0(_0x432df8){var _0x436dc2=_0x42bae5;_0x5b0c42[_0x436dc2('0xcd2')]=[],_0x432df8?(_0x216625['hide'](),_0x5b0c42[_0x436dc2('0xe45')]?_0xf3fe9d[_0x436dc2('0x72a')](_0x436dc2('0x1af3')+_0x5b0c42['id'],_0x436dc2('0x571')):_0x4c3d2c['go'](_0x436dc2('0x26e8'),{'id':_0x5b0c42['id']})):_0x216625[_0x436dc2('0x11ed')]();}_0x5b0c42['closeDialog']=_0x4d22a0;}const _0x29d84=_0x36f675;_0x49f264[_0xb635d2('0xb0c')]=['$mdDialog','toasty',_0xb635d2('0xffc'),'project',_0xb635d2('0x1d39'),'$translate'];function _0x49f264(_0x1a2c43,_0x1249a0,_0x58f4a0,_0x3f8367,_0x4f558d,_0xbf8756){var _0x4a525a=_0xb635d2,_0x2b024c=this;_0x2b024c[_0x4a525a('0x38b')]=_0x3f8367,_0x2b024c[_0x4a525a('0x21e3')]=0x0,_0x2b024c[_0x4a525a('0xe4b')]=[],_0x2b024c[_0x4a525a('0x2273')]=[],_0x2b024c['closeDialog']=_0xc57404,_0x2b024c[_0x4a525a('0xc00')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4a525a('0x2623'),'line1':_0x4a525a('0xe11'),'line2':[_0x4a525a('0x2623'),_0x4a525a('0x1b66')],'line3':_0x4a525a('0x21e3'),'labelAll':_0xbf8756[_0x4a525a('0x2159')]('CALLYSQUARE.ALL_USERS'),'labelSelected':_0xbf8756[_0x4a525a('0x2159')](_0x4a525a('0x2167')),'transferCallback':function _0x14f8a6(_0x58120f,_0x43501e){var _0x43e3e1=_0x4a525a;_0x58f4a0['squareProject'][_0x43501e?_0x43e3e1('0x109b'):_0x43e3e1('0x598')]({'id':_0x2b024c['project']['id'],'ids':_0x32d445()[_0x43e3e1('0x65a')](_0x58120f,'id'),'penalty':_0x2b024c[_0x43e3e1('0x21e3')]||0x0})[_0x43e3e1('0xe59')][_0x43e3e1('0xe19')](function(){var _0x3dbbc9=_0x43e3e1;_0x1249a0[_0x3dbbc9('0x425')]({'title':_0x3dbbc9('0x1df8')+(_0x43501e?_0x3dbbc9('0xf63'):_0x3dbbc9('0x113e')),'msg':_0x3dbbc9('0x1454')+(_0x43501e?_0x3dbbc9('0xf63'):_0x3dbbc9('0x113e'))+'!'}),!_0x43501e&&_0x15d96c();})[_0x43e3e1('0x223b')](function(_0x46a186){var _0x5ac477=_0x43e3e1;_0x1249a0[_0x5ac477('0x8c8')]({'title':_0x46a186[_0x5ac477('0x2833')]?_0x5ac477('0x27f2')+_0x46a186[_0x5ac477('0x2833')]+'\x20-\x20'+_0x46a186[_0x5ac477('0x1fd7')]:_0x5ac477('0x813'),'msg':_0x46a186[_0x5ac477('0x2833')]?JSON[_0x5ac477('0x3ad')](_0x46a186[_0x5ac477('0x11d0')]):_0x46a186['toString']()});});}};function _0x15d96c(){var _0x5729e7=_0x4a525a;return _0x58f4a0[_0x5729e7('0x20c9')][_0x5729e7('0x3df')]({'id':_0x2b024c['project']['id'],'fields':_0x5729e7('0x1189'),'nolimit':!![],'role':_0x5729e7('0x10c6')})[_0x5729e7('0xe59')][_0x5729e7('0xe19')](function(_0x5638d7){var _0x6d92c6=_0x5729e7;return _0x2b024c['selectedItems']=_0x5638d7[_0x6d92c6('0x16a7')]?_0x32d445()[_0x6d92c6('0x65a')](_0x5638d7['rows'],function(_0x2bb479){return _0x2bb479;}):[],_0x2b024c[_0x6d92c6('0xc00')]['selectedItems']=_0x2b024c['selectedItems'],_0x58f4a0['user'][_0x6d92c6('0x22d5')]({'fields':_0x6d92c6('0x197b'),'role':_0x6d92c6('0x10c6'),'nolimit':!![]})[_0x6d92c6('0xe59')];})[_0x5729e7('0xe19')](function(_0x369192){var _0x117a15=_0x5729e7;_0x2b024c['items']=_0x369192[_0x117a15('0x16a7')]?_0x32d445()[_0x117a15('0x65a')](_0x369192['rows'],function(_0x2d23c8){return _0x2d23c8;}):[],_0x2b024c[_0x117a15('0xc00')]['items']=_0x32d445()[_0x117a15('0x501')](_0x2b024c[_0x117a15('0xe4b')],_0x2b024c['selectedItems'],'id');})[_0x5729e7('0x223b')](function(_0x4a1a16){var _0x124fd7=_0x5729e7;_0x1249a0[_0x124fd7('0x8c8')]({'title':_0x4a1a16[_0x124fd7('0x2833')]?'API:'+_0x4a1a16[_0x124fd7('0x2833')]+'\x20-\x20'+_0x4a1a16[_0x124fd7('0x1fd7')]:_0x124fd7('0x27d1'),'msg':_0x4a1a16['status']?JSON['stringify'](_0x4a1a16[_0x124fd7('0x11d0')]):_0x4a1a16[_0x124fd7('0x94f')]()});});}function _0xc57404(){_0x1a2c43['hide']();}_0x15d96c();}const _0x2f2c92=_0x49f264;_0x5d59c1[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x38b'),_0xb635d2('0x24c0'),_0xb635d2('0xffc'),'$window',_0xb635d2('0xeb6')];function _0x5d59c1(_0x2604a1,_0x2a7597,_0x1dc379,_0x17f06b,_0x2e9325,_0x18472c,_0x247b41){var _0x42c178=_0xb635d2,_0x5ea4f8=this;_0x5ea4f8['project']=angular[_0x42c178('0x89')](_0x1dc379),_0x5ea4f8['project'][_0x42c178('0x2623')]+='_new',_0x5ea4f8[_0x42c178('0x38b')][_0x42c178('0x1498')]=_0x17f06b,_0x5ea4f8[_0x42c178('0xe45')]=!![];function _0x2f8863(){var _0x9f811d=_0x42c178;delete _0x5ea4f8[_0x9f811d('0x38b')]['id'],_0x2e9325[_0x9f811d('0x20c9')][_0x9f811d('0xe5e')](_0x5ea4f8[_0x9f811d('0x38b')])[_0x9f811d('0xe59')][_0x9f811d('0xe19')](function(_0x9443e8){var _0x38f18e=_0x9f811d;_0x2a7597[_0x38f18e('0x425')]({'title':_0x38f18e('0xbf3'),'msg':_0x5ea4f8[_0x38f18e('0x38b')][_0x38f18e('0x2623')]?_0x5ea4f8[_0x38f18e('0x38b')][_0x38f18e('0x2623')]+'\x20has\x20been\x20created!':''}),_0x2604a1[_0x38f18e('0x11ed')](_0x9443e8),_0x5ea4f8[_0x38f18e('0xe45')]?_0x18472c[_0x38f18e('0x72a')](_0x38f18e('0x1af3')+_0x9443e8['id'],'_blank'):_0x247b41['go'](_0x38f18e('0x26e8'),{'id':_0x9443e8['id']});})[_0x9f811d('0x223b')](function(_0xb0dda9){var _0x47c722=_0x9f811d;console[_0x47c722('0x8c8')](_0xb0dda9),_0x5ea4f8[_0x47c722('0xcd2')]=_0xb0dda9['data'][_0x47c722('0xcd2')]||[{'message':_0xb0dda9[_0x47c722('0x94f')](),'type':_0x47c722('0x35d')}];});}function _0x4ec30c(){var _0x45785a=_0x42c178;_0x2604a1[_0x45785a('0x11ed')]();}_0x5ea4f8[_0x42c178('0x2584')]=_0x4ec30c,_0x5ea4f8['save']=_0x2f8863;}const _0x126f65=_0x5d59c1,_0x51219a=_0x59426a['p']+_0xb635d2('0x83f'),_0x4e02ef=_0x59426a['p']+_0xb635d2('0xd00'),_0x1bda55=_0x59426a['p']+_0xb635d2('0x78b'),_0x9dccf9=_0x59426a['p']+_0xb635d2('0x597'),_0x565281=_0x59426a['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info-[chunkhash].html',_0x4a77bd=_0x59426a['p']+_0xb635d2('0x70e'),_0x159390=_0x59426a['p']+_0xb635d2('0x1f9b');_0x43e9ec[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),'$document',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x38b'),'users','trunks',_0xb635d2('0x671'),_0xb635d2('0x219b'),_0xb635d2('0x1a9e'),'databases',_0xb635d2('0x3c1'),'projects',_0xb635d2('0x10e0'),_0xb635d2('0x248b'),'templates',_0xb635d2('0x9f8'),_0xb635d2('0x25db'),_0xb635d2('0x145e'),_0xb635d2('0xb59'),'Auth'];var _0x811085=window[_0xb635d2('0x740')],_0x3a2ae8=window[_0xb635d2('0x1842')];function _0x43e9ec(_0xb41730,_0x3fef52,_0x1eb1d7,_0x48e818,_0x4b1e99,_0x5ca15a,_0x3a8dfe,_0x46d781,_0x40a674,_0x399a84,_0xd30b47,_0x19ec5a,_0x2b14bb,_0x2972d1,_0x4705fc,_0x46a443,_0x1a2fc9,_0x3107cb,_0x43412b,_0x22dcb3,_0x528dda,_0x1ca593,_0x42bb05,_0x324c8e){var _0x540302=_0xb635d2,_0x3979bb=this;_0x3979bb[_0x540302('0x15a5')]=_0x324c8e[_0x540302('0x1ef8')](),_0x3979bb[_0x540302('0x38b')]=_0x46d781||{},_0x3979bb[_0x540302('0xb59')]=_0x42bb05&&_0x42bb05[_0x540302('0x148b')]==0x1?_0x42bb05['rows'][0x0]:null,_0x3979bb[_0x540302('0xb3d')]=_0x324c8e[_0x540302('0xd31')](_0x3979bb[_0x540302('0xb59')]?_0x3979bb['userProfileSection'][_0x540302('0xb3d')]:null),_0x3979bb[_0x540302('0x888')]=_0x58d604,_0x3979bb[_0x540302('0x87d')]=_0x49ad8a,_0x3979bb[_0x540302('0x15b')]=_0xdd74a1,_0x3979bb[_0x540302('0x81')]=_0x18167d,_0x3979bb[_0x540302('0x1765')]=_0xe0c8b8,_0x3979bb['saveProjectAs']=_0x52d9a6,_0x3979bb['newVariable']=_0x1a56ec,_0x3979bb['updateInfo']=_0x520686,_0x3979bb[_0x540302('0xfc3')]=_0x501690,_0x3979bb[_0x540302('0x242e')]=_0x113d79,_0x3979bb[_0x540302('0x1be9')]=_0x3398c0;function _0x58d604(){var _0x3eaf7c=_0x540302,_0x235c49=new _0x811085(_0x3979bb,new _0x3a2ae8(),document[_0x3eaf7c('0x232')](_0x3eaf7c('0x11aa')));_0x235c49[_0x3eaf7c('0x1d37')](_0x3979bb[_0x3eaf7c('0x38b')]['preproduction'],_0x3979bb[_0x3eaf7c('0x38b')][_0x3eaf7c('0x2623')],_0x3979bb[_0x3eaf7c('0x38b')]);}function _0xdd74a1(_0x3be758,_0x31c481){var _0x3c21cd=_0x540302;_0x1eb1d7[_0x3c21cd('0x26b2')]({'controller':'MxGraphDialogController','controllerAs':'vm','templateUrl':_0x51219a,'parent':angular[_0x3c21cd('0x24a1')](_0x3fef52[_0x3c21cd('0x19b2')]),'clickOutsideToClose':!![],'locals':{'users':_0x40a674['rows']||[],'trunks':_0x399a84['rows']||[],'queues':_0xd30b47[_0x3c21cd('0x16a7')]||[],'sounds':_0x19ec5a[_0x3c21cd('0x16a7')]||[],'variables':_0x2b14bb['rows']||[],'databases':_0x2972d1[_0x3c21cd('0x16a7')]||[],'contexts':_0x4705fc[_0x3c21cd('0x16a7')]||[],'projects':_0x46a443[_0x3c21cd('0x16a7')]||[],'intervals':_0x1a2fc9[_0x3c21cd('0x16a7')]||[],'mailAccounts':_0x3107cb['rows']||[],'smsAccounts':_0x528dda[_0x3c21cd('0x16a7')]||[],'pauses':_0x1ca593[_0x3c21cd('0x16a7')]||[],'templates':_0x43412b[_0x3c21cd('0x16a7')]||[],'lists':_0x22dcb3[_0x3c21cd('0x16a7')]||[],'cell':_0x3be758,'saveCallback':_0x31c481,'crudPermissions':_0x3979bb[_0x3c21cd('0xb3d')]}});}function _0x18167d(_0x484f4f){var _0x186b89=_0x540302;_0x1eb1d7[_0x186b89('0x26b2')]({'controller':_0x186b89('0x997'),'controllerAs':'vm','templateUrl':_0x4e02ef,'parent':angular[_0x186b89('0x24a1')](_0x3fef52[_0x186b89('0x19b2')]),'clickOutsideToClose':!![],'locals':{'project':_0x484f4f,'projects':_0x46a443['rows'],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x3979bb[_0x186b89('0xb3d')]}});}function _0xe0c8b8(){var _0x3b2795=_0x540302;_0x1eb1d7[_0x3b2795('0x26b2')]({'controller':'MxGraphOpenProjectController','controllerAs':'vm','templateUrl':_0x1bda55,'parent':angular[_0x3b2795('0x24a1')](_0x3fef52[_0x3b2795('0x19b2')]),'clickOutsideToClose':!![],'locals':{'projects':_0x46a443[_0x3b2795('0x16a7')]||[]}});}function _0x52d9a6(_0x3dce52){var _0x3e3122=_0x540302;_0x1eb1d7['show']({'controller':_0x3e3122('0x1f19'),'controllerAs':'vm','templateUrl':_0x9dccf9,'parent':angular[_0x3e3122('0x24a1')](_0x3fef52[_0x3e3122('0x19b2')]),'clickOutsideToClose':!![],'locals':{'project':_0x3979bb[_0x3e3122('0x38b')],'currentXML':_0x3dce52}})[_0x3e3122('0xe19')](function(_0x12126c){var _0x144b1e=_0x3e3122;_0x12126c&&_0x46a443['rows'][_0x144b1e('0xb76')](_0x12126c);});}function _0x2b0305(){return _0x48e818(function(_0x2653bc,_0x51e180){var _0x25ae27=a0_0x5325;return _0x3a8dfe[_0x25ae27('0xb59')][_0x25ae27('0x22d5')]({'userProfileId':_0x3979bb[_0x25ae27('0x15a5')]['userProfileId'],'sectionId':0x3f4})['$promise'][_0x25ae27('0xe19')](function(_0x48a6db){var _0x51f2e0=_0x25ae27,_0x1b17f5=_0x48a6db[_0x51f2e0('0x16a7')]?_0x48a6db['rows'][0x0]:null,_0x33af8b=_0x324c8e[_0x51f2e0('0xd31')](_0x1b17f5?_0x1b17f5['crudPermissions']:null);_0x2653bc(_0x33af8b);})['catch'](function(_0x3d954a){_0x51e180(_0x3d954a);});});}function _0x1a56ec(_0x5061ee){var _0x46ea85=_0x540302;return _0x2b0305()[_0x46ea85('0xe19')](function(_0x44af56){var _0xd4a6d9=_0x46ea85;_0x44af56[_0xd4a6d9('0x12bc')]?_0x1eb1d7['show']({'controller':'CreateOrEditVariableDialogController','controllerAs':'vm','templateUrl':_0x2b054d,'parent':angular['element'](_0x3fef52[_0xd4a6d9('0x19b2')]),'clickOutsideToClose':!![],'locals':{'variable':_0x5061ee,'variables':_0x2b14bb[_0xd4a6d9('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x44af56}}):_0x5ca15a['info']({'title':_0x4b1e99[_0xd4a6d9('0x2159')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x4b1e99['instant'](_0xd4a6d9('0x40e'))});})[_0x46ea85('0x223b')](function(_0x360fda){var _0x5cd25c=_0x46ea85;_0x5ca15a[_0x5cd25c('0x8c8')]({'title':_0x360fda[_0x5cd25c('0x2833')]?_0x5cd25c('0x27f2')+_0x360fda[_0x5cd25c('0x2833')]+_0x5cd25c('0x1b7c')+_0x360fda['statusText']:_0x5cd25c('0x4ee'),'msg':_0x360fda[_0x5cd25c('0x11d0')]?JSON[_0x5cd25c('0x3ad')](_0x360fda[_0x5cd25c('0x11d0')]):_0x360fda[_0x5cd25c('0x94f')]()});});}function _0x520686(_0x2df761){var _0x12c042=_0x540302;_0x1eb1d7[_0x12c042('0x26b2')]({'controller':_0x12c042('0x2677'),'controllerAs':'vm','templateUrl':_0x565281,'parent':angular[_0x12c042('0x24a1')](_0x3fef52['body']),'targetEvent':_0x2df761,'clickOutsideToClose':!![],'locals':{'project':_0x3979bb[_0x12c042('0x38b')]}})[_0x12c042('0xe19')](function(_0x1e4266){var _0xadf51f=_0x12c042;_0x1e4266&&_0x32d445()['merge'](_0x3979bb[_0xadf51f('0x38b')],_0x1e4266);});}function _0x501690(_0x2478d9,_0x595f60){var _0x2cf28c=_0x540302;_0x1eb1d7['show']({'controller':_0x2cf28c('0x1d4c'),'controllerAs':'vm','templateUrl':_0x4a77bd,'parent':angular[_0x2cf28c('0x24a1')](_0x3fef52[_0x2cf28c('0x19b2')]),'clickOutsideToClose':!![],'locals':{'currentXML':_0x2478d9,'saveCallback':_0x595f60}})['then'](function(_0x41991d){var _0x5c32b9=_0x2cf28c;_0x41991d&&(_0x3979bb['project'][_0x5c32b9('0x1498')]=_0x41991d);});}function _0x113d79(_0x554642){var _0x494824=_0x540302;_0x1eb1d7[_0x494824('0x26b2')]({'controller':_0x494824('0x2301'),'controllerAs':'vm','templateUrl':_0x159390,'parent':angular[_0x494824('0x24a1')](_0x3fef52['body']),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x554642}})[_0x494824('0xe19')](function(_0x1c3abb){var _0x579118=_0x494824;_0x1c3abb&&(_0x3979bb[_0x579118('0x38b')][_0x579118('0x1498')]=_0x1c3abb);});}function _0x49ad8a(_0x33320f,_0xd89d54){var _0x4cb456=_0x540302,_0x69feeb={'preproduction':_0x33320f};_0xd89d54&&(_0x69feeb[_0x4cb456('0x1bd7')]=_0x33320f),_0x3a8dfe[_0x4cb456('0x20c9')][_0x4cb456('0xa70')]({'id':_0x3979bb[_0x4cb456('0x38b')]['id']},_0x69feeb)[_0x4cb456('0xe59')][_0x4cb456('0xe19')](function(_0x57e7cc){var _0x5f3100=_0x4cb456;_0x5ca15a[_0x5f3100('0x425')]({'title':_0x5f3100('0x915')+(_0xd89d54?'published':_0x5f3100('0x15b9'))+'!','msg':_0x3979bb[_0x5f3100('0x38b')]['name']?_0x3979bb[_0x5f3100('0x38b')][_0x5f3100('0x2623')]+_0x5f3100('0x1d81')+(_0xd89d54?'published':'saved')+'!':''}),_0x3979bb[_0x5f3100('0x38b')][_0x5f3100('0x1498')]=_0x57e7cc[_0x5f3100('0x1498')];})[_0x4cb456('0x223b')](function(_0x8eb1cc){var _0x2220ef=_0x4cb456;_0x5ca15a[_0x2220ef('0x8c8')]({'title':_0x8eb1cc[_0x2220ef('0x2833')]?'API:'+_0x8eb1cc[_0x2220ef('0x2833')]+_0x2220ef('0x1b7c')+_0x8eb1cc[_0x2220ef('0x1fd7')]:'SYSTEM:GETsquareProject','msg':_0x8eb1cc[_0x2220ef('0x11d0')]?JSON[_0x2220ef('0x3ad')](_0x8eb1cc[_0x2220ef('0x11d0')]):_0x8eb1cc[_0x2220ef('0x94f')]()});});}function _0x3398c0(){var _0x2822da=_0x540302;_0xb41730['go'](_0x2822da('0xa1b'),{},{'reload':'app.callysquare.projects'});}}const _0x5aff73=_0x43e9ec;_0x13bd69['$inject']=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x1795'),_0xb635d2('0x1d39'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0xf65'),'Auth'];function _0x13bd69(_0x49cac7,_0x486f0e,_0x360856,_0x26e12f,_0x53f0f5,_0x45cd20,_0x6b4795,_0x18b344,_0x8452b1,_0x344c6f,_0x112ef7,_0x18b65d,_0x20bc70){var _0x351bc9=_0xb635d2,_0x3f2ad6=this;_0x3f2ad6[_0x351bc9('0x15a5')]=_0x20bc70['getCurrentUser'](),_0x3f2ad6[_0x351bc9('0x1d39')]=_0x26e12f||{'count':0x0,'rows':[]},_0x3f2ad6[_0x351bc9('0x154f')]=_0x53f0f5,_0x3f2ad6[_0x351bc9('0xb59')]=_0x45cd20&&_0x45cd20[_0x351bc9('0x148b')]==0x1?_0x45cd20[_0x351bc9('0x16a7')][0x0]:null,_0x3f2ad6[_0x351bc9('0xb3d')]=_0x20bc70['parseCrudPermissions'](_0x3f2ad6[_0x351bc9('0xb59')]?_0x3f2ad6[_0x351bc9('0xb59')][_0x351bc9('0xb3d')]:null),_0x3f2ad6[_0x351bc9('0x19b6')]=_0x351bc9('0x1d39'),_0x3f2ad6['listOrder']='',_0x3f2ad6[_0x351bc9('0x190c')]=null,_0x3f2ad6[_0x351bc9('0x1bed')]=[],_0x3f2ad6[_0x351bc9('0xa16')]={'fields':_0x351bc9('0x1b54'),'sort':_0x351bc9('0x7e8'),'limit':0xa,'page':0x1},_0x3f2ad6['editstate']=_0x21ec37,_0x3f2ad6[_0x351bc9('0x1d9e')]=_0x1eb0e2,_0x3f2ad6[_0x351bc9('0x425')]=_0x220f4b,_0x3f2ad6[_0x351bc9('0x1834')]=_0x37df3d,_0x3f2ad6[_0x351bc9('0x261')]=_0x1f39c2,_0x3f2ad6[_0x351bc9('0x6d2')]=_0x333d3b,_0x3f2ad6['exportSelectedProjects']=_0x1d7602,_0x3f2ad6['deleteSelectedProjects']=_0x3f7069,_0x3f2ad6[_0x351bc9('0x20bb')]=_0x304875,_0x3f2ad6[_0x351bc9('0x124b')]=_0x13c564;function _0x21ec37(_0xc8de99){var _0x3c75bc=_0x351bc9;_0x486f0e['go'](_0x3c75bc('0x26e8'),{'id':_0xc8de99['id'],'crudPermissions':_0x3f2ad6[_0x3c75bc('0xb3d')]});}function _0x1eb0e2(_0x3d828e,_0x2ca175){var _0x48295a=_0x351bc9,_0x1bf71d=_0x8452b1[_0x48295a('0xa5')]()['title'](_0x48295a('0x2676'))['htmlContent'](_0x48295a('0xab2')+_0x3d828e[_0x48295a('0x2623')]+_0x48295a('0x27bb')+_0x48295a('0x21bd'))[_0x48295a('0x4d1')](_0x48295a('0x2620'))['targetEvent'](_0x2ca175)['ok']('OK')[_0x48295a('0x2c1')](_0x48295a('0x17'));_0x8452b1['show'](_0x1bf71d)[_0x48295a('0xe19')](function(){_0x333d3b(_0x3d828e);},function(){var _0x2f8d87=_0x48295a;console['log'](_0x2f8d87('0x17'));});}var _0xfb09d7=!![],_0xadcef1=0x1;_0x49cac7['$watch'](_0x351bc9('0x20cb'),function(_0x17eb52,_0x686981){var _0x21701d=_0x351bc9;_0xfb09d7?_0x112ef7(function(){_0xfb09d7=![];}):(!_0x686981&&(_0xadcef1=_0x3f2ad6['query'][_0x21701d('0xc08')]),_0x17eb52!==_0x686981&&(_0x3f2ad6['query']['page']=0x1),!_0x17eb52&&(_0x3f2ad6['query'][_0x21701d('0xc08')]=_0xadcef1),_0x3f2ad6[_0x21701d('0x1834')]());});function _0x220f4b(_0x7cc435){var _0x29455a=_0x351bc9;_0x3f2ad6[_0x29455a('0x1d39')]=_0x7cc435||{'count':0x0,'rows':[]};}function _0x37df3d(){var _0x26de41=_0x351bc9;_0x3f2ad6[_0x26de41('0xa16')][_0x26de41('0xab0')]=(_0x3f2ad6[_0x26de41('0xa16')][_0x26de41('0xc08')]-0x1)*_0x3f2ad6[_0x26de41('0xa16')][_0x26de41('0x1b6d')],_0x20bc70[_0x26de41('0x179e')]('admin')?_0x3f2ad6[_0x26de41('0x9c8')]=_0x6b4795[_0x26de41('0x20c9')][_0x26de41('0x22d5')](_0x3f2ad6[_0x26de41('0xa16')],_0x220f4b)['$promise']:(_0x3f2ad6['query']['id']=_0x3f2ad6[_0x26de41('0x154f')]['id'],_0x3f2ad6[_0x26de41('0xa16')][_0x26de41('0x1e59')]=_0x26de41('0x1679'),_0x3f2ad6[_0x26de41('0x9c8')]=_0x6b4795[_0x26de41('0x154f')]['getResources'](_0x3f2ad6[_0x26de41('0xa16')],_0x220f4b)[_0x26de41('0xe59')]);}function _0x1f39c2(_0x1e66c9,_0xffb289){var _0x2563f4=_0x351bc9;_0x8452b1['show']({'controller':_0x2563f4('0x997'),'controllerAs':'vm','templateUrl':_0x4e02ef,'parent':angular[_0x2563f4('0x24a1')](_0x344c6f[_0x2563f4('0x19b2')]),'targetEvent':_0x1e66c9,'clickOutsideToClose':!![],'locals':{'project':_0xffb289,'projects':_0x3f2ad6[_0x2563f4('0x1d39')]['rows'],'openFromEditor':null,'setting':null,'crudPermissions':_0x3f2ad6[_0x2563f4('0xb3d')]}});}function _0x333d3b(_0x538424){var _0x1c9db0=_0x351bc9;_0x6b4795['squareProject'][_0x1c9db0('0x229e')]({'id':_0x538424['id']})[_0x1c9db0('0xe59')][_0x1c9db0('0xe19')](function(){var _0x25e19e=_0x1c9db0;_0x32d445()[_0x25e19e('0xa8b')](_0x3f2ad6[_0x25e19e('0x1d39')]['rows'],{'id':_0x538424['id']}),_0x3f2ad6[_0x25e19e('0x1d39')][_0x25e19e('0x148b')]-=0x1,!_0x3f2ad6[_0x25e19e('0x1d39')][_0x25e19e('0x16a7')][_0x25e19e('0x25ae')]&&_0x3f2ad6[_0x25e19e('0x1834')](),_0x18b65d[_0x25e19e('0x425')]({'title':'Project\x20deleted!','msg':_0x538424[_0x25e19e('0x2623')]?_0x538424[_0x25e19e('0x2623')]+_0x25e19e('0x2182'):''});})[_0x1c9db0('0x223b')](function(_0x33020d){var _0x173413=_0x1c9db0;if(_0x33020d[_0x173413('0x11d0')]&&_0x33020d[_0x173413('0x11d0')][_0x173413('0xcd2')]&&_0x33020d[_0x173413('0x11d0')][_0x173413('0xcd2')][_0x173413('0x25ae')]){_0x3f2ad6[_0x173413('0xcd2')]=_0x33020d[_0x173413('0x11d0')][_0x173413('0xcd2')]||[{'message':_0x33020d[_0x173413('0x94f')](),'type':'api.project.delete'}];for(var _0x3bfbf0=0x0;_0x3bfbf0<_0x33020d[_0x173413('0x11d0')]['errors'][_0x173413('0x25ae')];_0x3bfbf0++){_0x18b65d['error']({'title':_0x33020d[_0x173413('0x11d0')][_0x173413('0xcd2')][_0x3bfbf0][_0x173413('0x62e')],'msg':_0x33020d[_0x173413('0x11d0')]['errors'][_0x3bfbf0][_0x173413('0x27e8')]});}}else _0x18b65d['error']({'title':_0x33020d[_0x173413('0x2833')]?'API:'+_0x33020d[_0x173413('0x2833')]+'\x20-\x20'+_0x33020d[_0x173413('0x1fd7')]:_0x173413('0x1678'),'msg':_0x33020d[_0x173413('0x11d0')]?JSON[_0x173413('0x3ad')](_0x33020d[_0x173413('0x11d0')][_0x173413('0x27e8')]):_0x33020d[_0x173413('0x27e8')]||_0x33020d['toString']()});});}function _0x1d7602(){var _0x33f8f5=_0x351bc9,_0x1b7f5f=angular[_0x33f8f5('0x89')](_0x3f2ad6['selectedProjects']);return _0x3f2ad6['selectedProjects']=[],_0x1b7f5f;}function _0x3f7069(_0x4c769d){var _0xffbcd1=_0x351bc9,_0x2d7843=_0x8452b1[_0xffbcd1('0xa5')]()['title'](_0xffbcd1('0x32e'))[_0xffbcd1('0x221c')](_0xffbcd1('0xab2')+_0x3f2ad6[_0xffbcd1('0x1bed')][_0xffbcd1('0x25ae')]+_0xffbcd1('0x5bc')+_0xffbcd1('0x21bd'))['ariaLabel'](_0xffbcd1('0xf3'))[_0xffbcd1('0x1345')](_0x4c769d)['ok']('OK')[_0xffbcd1('0x2c1')](_0xffbcd1('0x17'));_0x8452b1[_0xffbcd1('0x26b2')](_0x2d7843)['then'](function(){var _0x17a1d7=_0xffbcd1;_0x3f2ad6['selectedProjects'][_0x17a1d7('0x1d7e')](function(_0xb4e9c2){_0x333d3b(_0xb4e9c2);}),_0x3f2ad6[_0x17a1d7('0x1bed')]=[];});}function _0x304875(){var _0x31a989=_0x351bc9;_0x3f2ad6[_0x31a989('0x1bed')]=[];}function _0x13c564(){var _0x3bf682=_0x351bc9;_0x3f2ad6[_0x3bf682('0x1bed')]=_0x3f2ad6[_0x3bf682('0x1d39')]['rows'];}}const _0x6495ad=_0x13bd69;_0x105169[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x105169(_0x274af5){var _0x2f44d8=_0xb635d2;_0x274af5[_0x2f44d8('0x1d72')](_0x2f44d8('0xa1b'),{'url':'/projects','views':{'content@app':{'templateUrl':_0x54f311,'controller':'ProjectsController\x20as\x20vm'}},'resolve':{'projects':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x176945(_0x591207,_0x216758){var _0x4f41c1=_0x2f44d8;return _0x216758['hasRole'](_0x4f41c1('0xd14'))?_0x591207[_0x4f41c1('0xcd6')]('squareProject@get',{'fields':'id,name,description,notes','sort':_0x4f41c1('0x2623'),'limit':0xa,'offset':0x0}):_0x591207[_0x4f41c1('0xcd6')](_0x4f41c1('0x197d'),{'id':_0x216758[_0x4f41c1('0x1ef8')]()[_0x4f41c1('0x1d04')],'section':_0x4f41c1('0x1679'),'fields':_0x4f41c1('0x1b54'),'sort':_0x4f41c1('0x2623'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0xfd7c36(_0x16c115,_0x341150){var _0x3c7393=_0x2f44d8;return _0x16c115[_0x3c7393('0xcd6')](_0x3c7393('0x455'),{'fields':_0x3c7393('0x1b71'),'id':_0x341150[_0x3c7393('0x1ef8')]()[_0x3c7393('0x1d04')]});}],'userProfileSection':[_0x2f44d8('0x292'),'Auth',function _0x138231(_0x38951a,_0x194c9f){var _0x5e67be=_0x2f44d8;return _0x38951a[_0x5e67be('0xcd6')](_0x5e67be('0x264e'),{'fields':_0x5e67be('0x12d6'),'userProfileId':_0x194c9f[_0x5e67be('0x1ef8')]()[_0x5e67be('0x1d04')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x2f44d8('0x2629')})[_0x2f44d8('0x1d72')]('app.callysquare.projects.edit',{'url':_0x2f44d8('0x1712'),'views':{'content@app':{'templateUrl':_0x355102,'controller':_0x2f44d8('0x1099')}},'params':{'crudPermissions':undefined},'resolve':{'project':[_0x2f44d8('0x292'),_0x2f44d8('0x34'),function _0x1c1f52(_0x494484,_0x1248e8){var _0x431e86=_0x2f44d8;return _0x494484[_0x431e86('0xcd6')]('squareProject@get',{'id':_0x1248e8['id']});}],'users':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x26c61a(_0x38cb67,_0x1e1440){var _0xd41b5a=_0x2f44d8;return _0x1e1440[_0xd41b5a('0x179e')](_0xd41b5a('0xd14'))?_0x38cb67['resolve'](_0xd41b5a('0x24a9'),{'fields':_0xd41b5a('0x21a7'),'sort':'name','nolimit':!![]}):_0x38cb67[_0xd41b5a('0xcd6')]('userProfile@getResources',{'id':_0x1e1440[_0xd41b5a('0x1ef8')]()['userProfileId'],'section':_0xd41b5a('0x970'),'mergeResources':!![],'fields':_0xd41b5a('0x21a7'),'sort':'name','nolimit':!![]});}],'trunks':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x49eb28(_0x3f456e,_0x214abb){var _0xe0cc0f=_0x2f44d8;return _0x214abb[_0xe0cc0f('0x179e')](_0xe0cc0f('0xd14'))?_0x3f456e['resolve'](_0xe0cc0f('0x27f7'),{'fields':_0xe0cc0f('0x104'),'sort':_0xe0cc0f('0x2623'),'nolimit':!![]}):_0x3f456e[_0xe0cc0f('0xcd6')](_0xe0cc0f('0x197d'),{'id':_0x214abb[_0xe0cc0f('0x1ef8')]()['userProfileId'],'section':'Trunks','fields':_0xe0cc0f('0x104'),'sort':_0xe0cc0f('0x2623'),'nolimit':!![]});}],'queues':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x3a64f3(_0x1430ee,_0x12d905){var _0x15b00b=_0x2f44d8;return _0x12d905[_0x15b00b('0x179e')]('admin')?_0x1430ee['resolve'](_0x15b00b('0x1382'),{'type':_0x15b00b('0x1a7a'),'fields':_0x15b00b('0x104'),'sort':_0x15b00b('0x2623'),'nolimit':!![]}):_0x1430ee[_0x15b00b('0xcd6')](_0x15b00b('0x197d'),{'id':_0x12d905[_0x15b00b('0x1ef8')]()['userProfileId'],'section':_0x15b00b('0x13e1'),'type':_0x15b00b('0x1a7a'),'fields':_0x15b00b('0x104'),'sort':_0x15b00b('0x2623'),'nolimit':!![]});}],'sounds':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x3c3e03(_0x1bbe78,_0x147c1e){var _0x136a94=_0x2f44d8;return _0x147c1e[_0x136a94('0x179e')]('admin')?_0x1bbe78[_0x136a94('0xcd6')](_0x136a94('0xee5'),{'fields':_0x136a94('0x104'),'sort':_0x136a94('0x2623'),'nolimit':!![]}):_0x1bbe78[_0x136a94('0xcd6')]('userProfile@getResources',{'id':_0x147c1e[_0x136a94('0x1ef8')]()['userProfileId'],'section':_0x136a94('0x156'),'fields':_0x136a94('0x104'),'sort':_0x136a94('0x2623'),'nolimit':!![]});}],'variables':['apiResolver',_0x2f44d8('0x2730'),function _0x592b1d(_0x3bbe10,_0xb7fd1){var _0x16f047=_0x2f44d8;return _0xb7fd1[_0x16f047('0x179e')](_0x16f047('0xd14'))?_0x3bbe10[_0x16f047('0xcd6')]('variable@get',{'fields':_0x16f047('0x104'),'sort':_0x16f047('0x2623'),'nolimit':!![]}):_0x3bbe10[_0x16f047('0xcd6')](_0x16f047('0x197d'),{'id':_0xb7fd1[_0x16f047('0x1ef8')]()[_0x16f047('0x1d04')],'section':_0x16f047('0xd64'),'fields':_0x16f047('0x104'),'sort':'name','nolimit':!![]});}],'databases':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x1ea1d4(_0x55ed67,_0x21efb1){var _0x22dda8=_0x2f44d8;return _0x21efb1[_0x22dda8('0x179e')](_0x22dda8('0xd14'))?_0x55ed67[_0x22dda8('0xcd6')](_0x22dda8('0x106c'),{'fields':_0x22dda8('0x104'),'sort':_0x22dda8('0x2623'),'nolimit':!![]}):_0x55ed67['resolve'](_0x22dda8('0x197d'),{'id':_0x21efb1[_0x22dda8('0x1ef8')]()['userProfileId'],'section':_0x22dda8('0x2764'),'fields':_0x22dda8('0x104'),'sort':'name','nolimit':!![]});}],'projects':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x419737(_0x47d5de,_0x38dc86){var _0x22d2de=_0x2f44d8;return _0x38dc86['hasRole'](_0x22d2de('0xd14'))?_0x47d5de[_0x22d2de('0xcd6')](_0x22d2de('0x1a2d'),{'fields':_0x22d2de('0x104'),'sort':'name','nolimit':!![]}):_0x47d5de[_0x22d2de('0xcd6')](_0x22d2de('0x197d'),{'id':_0x38dc86['getCurrentUser']()[_0x22d2de('0x1d04')],'section':_0x22d2de('0x1679'),'fields':'id,name','sort':_0x22d2de('0x2623'),'nolimit':!![]});}],'contexts':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x16caca(_0x1c9d54,_0x4d0107){var _0x25401a=_0x2f44d8;return _0x4d0107[_0x25401a('0x179e')](_0x25401a('0xd14'))?_0x1c9d54[_0x25401a('0xcd6')](_0x25401a('0xa68'),{'fields':_0x25401a('0x104'),'sort':'name','nolimit':!![]}):_0x1c9d54['resolve'](_0x25401a('0x197d'),{'id':_0x4d0107[_0x25401a('0x1ef8')]()['userProfileId'],'section':'Contexts','fields':_0x25401a('0x104'),'sort':_0x25401a('0x2623'),'nolimit':!![]});}],'intervals':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x327b6c(_0xbf8822,_0x240ede){var _0x3dab3f=_0x2f44d8;return _0x240ede[_0x3dab3f('0x179e')](_0x3dab3f('0xd14'))?_0xbf8822[_0x3dab3f('0xcd6')](_0x3dab3f('0x16e2'),{'fields':'id,name,IntervalId','sort':'name','nolimit':!![]}):_0xbf8822[_0x3dab3f('0xcd6')]('userProfile@getResources',{'id':_0x240ede[_0x3dab3f('0x1ef8')]()[_0x3dab3f('0x1d04')],'section':'Intervals','fields':'id,name,IntervalId','sort':_0x3dab3f('0x2623'),'nolimit':!![]});}],'mailAccounts':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x2bfa99(_0x1b6180,_0x46e02f){var _0x5bfdb8=_0x2f44d8;return _0x46e02f[_0x5bfdb8('0x179e')](_0x5bfdb8('0xd14'))?_0x1b6180[_0x5bfdb8('0xcd6')](_0x5bfdb8('0xff5'),{'fields':_0x5bfdb8('0x104'),'sort':_0x5bfdb8('0x2623'),'nolimit':!![]}):_0x1b6180[_0x5bfdb8('0xcd6')](_0x5bfdb8('0x197d'),{'id':_0x46e02f[_0x5bfdb8('0x1ef8')]()[_0x5bfdb8('0x1d04')],'section':_0x5bfdb8('0xa3e'),'fields':'id,name','sort':'name','nolimit':!![]});}],'templates':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x36c65b(_0x2de618,_0x405335){var _0x27901d=_0x2f44d8;return _0x405335[_0x27901d('0x179e')](_0x27901d('0xd14'))?_0x2de618[_0x27901d('0xcd6')](_0x27901d('0x2548'),{'fields':'id,name','sort':_0x27901d('0x2623'),'nolimit':!![]}):_0x2de618[_0x27901d('0xcd6')]('userProfile@getResources',{'id':_0x405335[_0x27901d('0x1ef8')]()[_0x27901d('0x1d04')],'section':_0x27901d('0x1985'),'fields':'id,name','sort':'name','nolimit':!![]});}],'lists':[_0x2f44d8('0x292'),'Auth',function _0x41fb34(_0x2ea0a3,_0x545d1d){var _0x53f4d4=_0x2f44d8;return _0x545d1d[_0x53f4d4('0x179e')]('admin')?_0x2ea0a3[_0x53f4d4('0xcd6')]('cmList@get',{'fields':_0x53f4d4('0x104'),'sort':_0x53f4d4('0x2623'),'nolimit':!![]}):_0x2ea0a3[_0x53f4d4('0xcd6')](_0x53f4d4('0x197d'),{'id':_0x545d1d[_0x53f4d4('0x1ef8')]()['userProfileId'],'section':'Lists','fields':'id,name','sort':_0x53f4d4('0x2623'),'nolimit':!![]});}],'smsAccounts':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x355150(_0x28ea28,_0x3699b2){var _0x16c585=_0x2f44d8;return _0x3699b2[_0x16c585('0x179e')]('admin')?_0x28ea28[_0x16c585('0xcd6')](_0x16c585('0x1739'),{'fields':_0x16c585('0x104'),'sort':_0x16c585('0x2623'),'nolimit':!![]}):_0x28ea28[_0x16c585('0xcd6')]('userProfile@getResources',{'id':_0x3699b2[_0x16c585('0x1ef8')]()['userProfileId'],'section':_0x16c585('0x20a4'),'fields':_0x16c585('0x104'),'sort':_0x16c585('0x2623'),'nolimit':!![]});}],'pauses':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x41bbb0(_0x46ddaa,_0x1e63ed){var _0x2f8d3b=_0x2f44d8;return _0x1e63ed[_0x2f8d3b('0x179e')](_0x2f8d3b('0xd14'))?_0x46ddaa[_0x2f8d3b('0xcd6')](_0x2f8d3b('0x2414'),{'fields':'id,name','sort':'name','nolimit':!![]}):_0x46ddaa[_0x2f8d3b('0xcd6')](_0x2f8d3b('0x197d'),{'id':_0x1e63ed[_0x2f8d3b('0x1ef8')]()[_0x2f8d3b('0x1d04')],'section':_0x2f8d3b('0x860'),'fields':'id,name','sort':_0x2f8d3b('0x2623'),'nolimit':!![]});}],'userProfileSection':[_0x2f44d8('0x292'),_0x2f44d8('0x2730'),function _0x254165(_0x212777,_0x224cab){var _0x1cfbca=_0x2f44d8;return _0x212777[_0x1cfbca('0xcd6')](_0x1cfbca('0x264e'),{'fields':_0x1cfbca('0x12d6'),'userProfileId':_0x224cab[_0x1cfbca('0x1ef8')]()['userProfileId'],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x2f44d8('0x2629')});}angular[_0xb635d2('0x153f')](_0xb635d2('0xa1b'),[])[_0xb635d2('0x1990')](_0x105169)[_0xb635d2('0x1a79')](_0xb635d2('0x997'),_0x4e4a95)[_0xb635d2('0x1a79')](_0xb635d2('0x27ee'),_0xfefb31)['directive'](_0xb635d2('0xf9d'),_0x2ba32c)[_0xb635d2('0x1324')](_0xb635d2('0x1cce'),_0x1c184a)[_0xb635d2('0x1324')](_0xb635d2('0x8a1'),_0x1827a3)[_0xb635d2('0x1324')](_0xb635d2('0x1933'),_0x4ade95)[_0xb635d2('0x1324')]('googleCloudTtslanguageCode',_0x117bea)[_0xb635d2('0x1324')](_0xb635d2('0x1575'),_0x3afb4d)[_0xb635d2('0x1324')](_0xb635d2('0x1229'),_0x439a42)[_0xb635d2('0x1324')](_0xb635d2('0x119c'),_0x19702d)[_0xb635d2('0x1324')](_0xb635d2('0x1175'),_0x3c6d4a)[_0xb635d2('0x1324')]('awsLexRegion',_0x5c96bb)[_0xb635d2('0x1324')](_0xb635d2('0x93b'),_0x2a0f46)[_0xb635d2('0x1a79')]('MxGraphEditXMLController',_0x20a4a5)['controller'](_0xb635d2('0x2301'),_0x4d88ea)[_0xb635d2('0x1a79')](_0xb635d2('0x2677'),_0x552e78)['controller'](_0xb635d2('0xfb8'),_0x29d84)[_0xb635d2('0x1a79')](_0xb635d2('0x69a'),_0x2f2c92)[_0xb635d2('0x1a79')](_0xb635d2('0x1f19'),_0x126f65)[_0xb635d2('0x1a79')]('ProjectController',_0x5aff73)[_0xb635d2('0x1a79')](_0xb635d2('0x13ab'),_0x6495ad);const _0x385589=_0x59426a['p']+_0xb635d2('0x532'),_0x5cb3c0=_0x59426a['p']+'src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings-[chunkhash].html';_0x2d8c48[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),'$location','$mdDialog','$q',_0xb635d2('0x2493'),'toasty','odbcs',_0xb635d2('0x275b'),_0xb635d2('0xffc'),'Auth','license','setting','crudPermissions'];function _0x2d8c48(_0x168dac,_0x4b1224,_0x564dca,_0x24f52a,_0x175a45,_0x5419c8,_0x1fb132,_0x24161a,_0x5594d3,_0x392167,_0x436a98,_0x3440d0,_0xddec67,_0x238a46){var _0x46c369=_0xb635d2,_0x2f8a5a=this;_0x2f8a5a[_0x46c369('0x15a5')]=_0x436a98['getCurrentUser'](),_0x2f8a5a['errors']=[],_0x2f8a5a[_0x46c369('0x22f1')]=_0xddec67,_0x2f8a5a[_0x46c369('0x5c1')]=_0x3440d0,_0x2f8a5a[_0x46c369('0xb3d')]=_0x238a46,_0x2f8a5a['hasModulePermissions']={},_0x2f8a5a[_0x46c369('0x25ac')]=_0x2f8a5a[_0x46c369('0x22f1')]&&_0x2f8a5a['setting'][_0x46c369('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2f8a5a[_0x46c369('0x13e4')]=_0x46c369('0x379'),_0x2f8a5a[_0x46c369('0x275b')]=angular[_0x46c369('0x89')](_0x5594d3),_0x2f8a5a[_0x46c369('0x848')]=_0x24161a,_0x2f8a5a[_0x46c369('0xb69')]=![];!_0x2f8a5a[_0x46c369('0x275b')]&&(_0x2f8a5a[_0x46c369('0x275b')]={},_0x2f8a5a['title']=_0x46c369('0x1fec'),_0x2f8a5a['newOdbc']=!![]);_0x2f8a5a[_0x46c369('0x2696')]=_0x508048,_0x2f8a5a['saveOdbc']=_0x247da6,_0x2f8a5a[_0x46c369('0x1755')]=_0xacf377,_0x2f8a5a[_0x46c369('0x2635')]=_0x1aa1a3,_0x2f8a5a['closeDialog']=_0x4ebf07;function _0x508048(){var _0x15317f=_0x46c369;_0x2f8a5a['errors']=[],_0x392167['squareOdbc'][_0x15317f('0xe5e')](_0x2f8a5a[_0x15317f('0x275b')])[_0x15317f('0xe59')]['then'](function(_0x375bec){var _0x4b2f39=_0x15317f;_0x2f8a5a['odbcs'][_0x4b2f39('0x14c9')](_0x375bec[_0x4b2f39('0x250e')]()),_0x1fb132['success']({'title':_0x4b2f39('0x1800'),'msg':_0x2f8a5a[_0x4b2f39('0x275b')][_0x4b2f39('0x2623')]?_0x2f8a5a['odbc'][_0x4b2f39('0x2623')]+_0x4b2f39('0x105f'):''}),_0x4ebf07(_0x375bec);})[_0x15317f('0x223b')](function(_0x2f033f){var _0xc3b25b=_0x15317f;if(_0x2f033f[_0xc3b25b('0x11d0')]&&_0x2f033f[_0xc3b25b('0x11d0')][_0xc3b25b('0xcd2')]&&_0x2f033f['data'][_0xc3b25b('0xcd2')]['length']){_0x2f8a5a[_0xc3b25b('0xcd2')]=_0x2f033f[_0xc3b25b('0x11d0')]['errors']||[{'message':_0x2f033f[_0xc3b25b('0x94f')](),'type':_0xc3b25b('0x1d34')}];for(var _0x45f6ec=0x0;_0x45f6ec<_0x2f033f['data']['errors'][_0xc3b25b('0x25ae')];_0x45f6ec+=0x1){_0x1fb132[_0xc3b25b('0x8c8')]({'title':_0x2f033f[_0xc3b25b('0x11d0')][_0xc3b25b('0xcd2')][_0x45f6ec]['type'],'msg':_0x2f033f[_0xc3b25b('0x11d0')]['errors'][_0x45f6ec][_0xc3b25b('0x27e8')]});}}else _0x1fb132[_0xc3b25b('0x8c8')]({'title':_0x2f033f[_0xc3b25b('0x2833')]?_0xc3b25b('0x27f2')+_0x2f033f[_0xc3b25b('0x2833')]+'\x20-\x20'+_0x2f033f['statusText']:'api.squareOdbc.save','msg':_0x2f033f[_0xc3b25b('0x11d0')]?JSON[_0xc3b25b('0x3ad')](_0x2f033f[_0xc3b25b('0x11d0')][_0xc3b25b('0x27e8')]):_0x2f033f[_0xc3b25b('0x94f')]()});});}function _0x247da6(){var _0x45a84e=_0x46c369;_0x2f8a5a['errors']=[],_0x392167[_0x45a84e('0x731')][_0x45a84e('0xa70')]({'id':_0x2f8a5a[_0x45a84e('0x275b')]['id']},_0x2f8a5a[_0x45a84e('0x275b')])[_0x45a84e('0xe59')]['then'](function(_0x1bf0c1){var _0x591384=_0x45a84e,_0x5c94a3=_0x32d445()[_0x591384('0xf15')](_0x2f8a5a['odbcs'],{'id':_0x1bf0c1['id']});_0x5c94a3&&_0x32d445()[_0x591384('0x1d8')](_0x5c94a3,_0x32d445()[_0x591384('0xed5')](_0x1bf0c1[_0x591384('0x250e')](),_0x32d445()[_0x591384('0x1234')](_0x5c94a3))),_0x1fb132[_0x591384('0x425')]({'title':_0x591384('0x3c7'),'msg':_0x2f8a5a['odbc'][_0x591384('0x2623')]?_0x2f8a5a['odbc'][_0x591384('0x2623')]+_0x591384('0x1c19'):''}),_0x4ebf07(_0x1bf0c1);})[_0x45a84e('0x223b')](function(_0x16bbfa){var _0x1ba891=_0x45a84e;if(_0x16bbfa[_0x1ba891('0x11d0')]&&_0x16bbfa[_0x1ba891('0x11d0')][_0x1ba891('0xcd2')]&&_0x16bbfa['data'][_0x1ba891('0xcd2')][_0x1ba891('0x25ae')]){_0x2f8a5a[_0x1ba891('0xcd2')]=_0x16bbfa['data']['errors']||[{'message':_0x16bbfa['toString'](),'type':_0x1ba891('0xa8c')}];for(var _0x694d3f=0x0;_0x694d3f<_0x16bbfa[_0x1ba891('0x11d0')]['errors'][_0x1ba891('0x25ae')];_0x694d3f++){_0x1fb132[_0x1ba891('0x8c8')]({'title':_0x16bbfa['data'][_0x1ba891('0xcd2')][_0x694d3f]['type'],'msg':_0x16bbfa['data'][_0x1ba891('0xcd2')][_0x694d3f][_0x1ba891('0x27e8')]});}}else _0x1fb132[_0x1ba891('0x8c8')]({'title':_0x16bbfa[_0x1ba891('0x2833')]?_0x1ba891('0x27f2')+_0x16bbfa[_0x1ba891('0x2833')]+_0x1ba891('0x1b7c')+_0x16bbfa[_0x1ba891('0x1fd7')]:_0x1ba891('0xa8c'),'msg':_0x16bbfa['data']?JSON['stringify'](_0x16bbfa[_0x1ba891('0x11d0')]['message']):_0x16bbfa[_0x1ba891('0x94f')]()});});}function _0xacf377(_0x36eb07){var _0x230d77=_0x46c369;_0x2f8a5a['errors']=[];var _0x9798f4=_0x24f52a[_0x230d77('0xa5')]()[_0x230d77('0x13e4')]('Are\x20you\x20sure?')['content'](_0x230d77('0xc6e'))[_0x230d77('0x4d1')](_0x230d77('0x18ba'))['ok'](_0x230d77('0x2198'))[_0x230d77('0x2c1')](_0x230d77('0x8a3'))[_0x230d77('0x1345')](_0x36eb07);_0x24f52a[_0x230d77('0x26b2')](_0x9798f4)[_0x230d77('0xe19')](function(){var _0x375431=_0x230d77;_0x392167[_0x375431('0x731')]['delete']({'id':_0x2f8a5a[_0x375431('0x275b')]['id']})[_0x375431('0xe59')][_0x375431('0xe19')](function(){var _0xaab702=_0x375431;_0x32d445()[_0xaab702('0xa8b')](_0x2f8a5a['odbcs'],{'id':_0x2f8a5a[_0xaab702('0x275b')]['id']}),_0x1fb132[_0xaab702('0x425')]({'title':'Odbc\x20properly\x20deleted!','msg':(_0x2f8a5a[_0xaab702('0x275b')]['name']||_0xaab702('0x275b'))+'\x20has\x20been\x20deleted!'}),_0x4ebf07(_0x2f8a5a[_0xaab702('0x275b')]);})[_0x375431('0x223b')](function(_0x3f7143){var _0x13cb81=_0x375431;if(_0x3f7143[_0x13cb81('0x11d0')]&&_0x3f7143['data'][_0x13cb81('0xcd2')]&&_0x3f7143[_0x13cb81('0x11d0')][_0x13cb81('0xcd2')][_0x13cb81('0x25ae')]){_0x2f8a5a[_0x13cb81('0xcd2')]=_0x3f7143[_0x13cb81('0x11d0')][_0x13cb81('0xcd2')]||[{'message':_0x3f7143['toString'](),'type':_0x13cb81('0xfcf')}];for(var _0x33000a=0x0;_0x33000a<_0x3f7143[_0x13cb81('0x11d0')]['errors']['length'];_0x33000a++){_0x1fb132[_0x13cb81('0x8c8')]({'title':_0x3f7143[_0x13cb81('0x11d0')][_0x13cb81('0xcd2')][_0x33000a]['type'],'msg':_0x3f7143[_0x13cb81('0x11d0')][_0x13cb81('0xcd2')][_0x33000a]['message']});}}else _0x1fb132[_0x13cb81('0x8c8')]({'title':_0x3f7143[_0x13cb81('0x2833')]?'API:'+_0x3f7143[_0x13cb81('0x2833')]+_0x13cb81('0x1b7c')+_0x3f7143[_0x13cb81('0x1fd7')]:'api.squareOdbc.delete','msg':_0x3f7143[_0x13cb81('0x11d0')]?JSON[_0x13cb81('0x3ad')](_0x3f7143[_0x13cb81('0x11d0')][_0x13cb81('0x27e8')]):_0x3f7143[_0x13cb81('0x27e8')]||_0x3f7143['toString']()});});},function(){});}function _0x1aa1a3(_0x117808){return _0x117808===null?undefined:new Date(_0x117808);}function _0x4ebf07(_0x59a7d9){var _0x15df35=_0x46c369;_0x24f52a[_0x15df35('0x11ed')](_0x59a7d9);}}const _0x51c8b6=_0x2d8c48,_0x29e20a=_0x59426a['p']+'src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html/dialog-[chunkhash].html';_0x59bdea[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x848'),'userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x59bdea(_0x1a1436,_0x1119f6,_0x132c61,_0x1daefb,_0x378248,_0x5afe63,_0x4d786b,_0x3c8194,_0x3eb766,_0x5f4b1c,_0x6318e0,_0x7081dc,_0xfe5d4c,_0x3fe49d,_0x4152bf,_0x139cbf,_0x12f028){var _0x29c95f=_0xb635d2,_0x55e7e7=this;_0x55e7e7[_0x29c95f('0x5c1')]=_0x139cbf,_0x55e7e7[_0x29c95f('0x22f1')]=_0x12f028,_0x55e7e7[_0x29c95f('0x15a5')]=_0x4152bf['getCurrentUser'](),_0x55e7e7[_0x29c95f('0x848')]=_0x3eb766||{'count':0x0,'rows':[]},_0x55e7e7[_0x29c95f('0x154f')]=_0x5f4b1c,_0x55e7e7[_0x29c95f('0xb59')]=_0x6318e0&&_0x6318e0[_0x29c95f('0x148b')]==0x1?_0x6318e0[_0x29c95f('0x16a7')][0x0]:null,_0x55e7e7[_0x29c95f('0xb3d')]=_0x4152bf['parseCrudPermissions'](_0x55e7e7[_0x29c95f('0xb59')]?_0x55e7e7['userProfileSection'][_0x29c95f('0xb3d')]:null),_0x55e7e7['table']='odbcs',_0x55e7e7['listOrder']='',_0x55e7e7[_0x29c95f('0x190c')]=null,_0x55e7e7[_0x29c95f('0x18e4')]=[],_0x55e7e7[_0x29c95f('0xa16')]={'fields':_0x29c95f('0xa96'),'sort':_0x29c95f('0x7e8'),'limit':0xa,'page':0x1},_0x55e7e7['editdialog']=_0x28c0db,_0x55e7e7['testtestOdbc']=_0x4e0f60,_0x55e7e7[_0x29c95f('0x1d9e')]=_0x9568cf,_0x55e7e7[_0x29c95f('0x425')]=_0x428b9f,_0x55e7e7['getODBC']=_0x137607,_0x55e7e7[_0x29c95f('0x36f')]=_0x1a6a9e,_0x55e7e7[_0x29c95f('0x1755')]=_0x74621,_0x55e7e7['exportSelectedODBC']=_0x55b763,_0x55e7e7[_0x29c95f('0x1648')]=_0x56a779,_0x55e7e7[_0x29c95f('0x1a66')]=_0x315d6f,_0x55e7e7[_0x29c95f('0x2504')]=_0x4a85fd;function _0x28c0db(_0x2bf437,_0x5c37d5){var _0xed7d5d=_0x29c95f;_0x378248[_0xed7d5d('0x26b2')]({'controller':_0xed7d5d('0xd53'),'controllerAs':'vm','templateUrl':_0x29e20a,'parent':angular[_0xed7d5d('0x24a1')](_0x5afe63[_0xed7d5d('0x19b2')]),'targetEvent':_0x5c37d5,'clickOutsideToClose':!![],'locals':{'odbc':_0x2bf437,'odbcs':_0x55e7e7[_0xed7d5d('0x848')][_0xed7d5d('0x16a7')],'license':_0x55e7e7['license'],'setting':null,'crudPermissions':_0x55e7e7[_0xed7d5d('0xb3d')]}});}function _0x4e0f60(_0x344bcf){var _0x3117e6=_0x29c95f;return _0x7081dc[_0x3117e6('0x731')][_0x3117e6('0x15cf')]({'id':_0x344bcf['id']})[_0x3117e6('0xe59')][_0x3117e6('0xe19')](function(){var _0x38e89e=_0x3117e6;_0x3fe49d[_0x38e89e('0x425')]({'title':_0x38e89e('0x1c87'),'msg':_0x38e89e('0xd96')});})[_0x3117e6('0x223b')](function(_0x30cfbe){var _0xd33a3d=_0x3117e6;_0x3fe49d[_0xd33a3d('0x8c8')]({'title':_0xd33a3d('0x1c87'),'msg':_0x30cfbe[_0xd33a3d('0x11d0')]?JSON['stringify'](_0x30cfbe['data']):_0x30cfbe[_0xd33a3d('0x94f')]()});});}function _0x9568cf(_0x9e7f79,_0x29d83f){var _0x38017d=_0x29c95f,_0x5c286b=_0x378248[_0x38017d('0xa5')]()[_0x38017d('0x13e4')](_0x38017d('0x346')+_0x32d445()['startCase'](_0x38017d('0x275b'))+'?')[_0x38017d('0x221c')](_0x38017d('0xab2')+(_0x9e7f79[_0x38017d('0x2623')]||_0x38017d('0x275b'))+_0x38017d('0x27bb')+'\x20will\x20be\x20deleted.')[_0x38017d('0x4d1')](_0x38017d('0x1896'))[_0x38017d('0x1345')](_0x29d83f)['ok']('OK')[_0x38017d('0x2c1')](_0x38017d('0x17'));_0x378248[_0x38017d('0x26b2')](_0x5c286b)['then'](function(){_0x74621(_0x9e7f79);},function(){var _0x2ad784=_0x38017d;console[_0x2ad784('0x1fe9')]('CANCEL');});}var _0x570d91=!![],_0x2908dc=0x1;_0x1a1436['$watch']('vm.query.filter',function(_0x53f5f5,_0x52446a){var _0x2f3d77=_0x29c95f;_0x570d91?_0x4d786b(function(){_0x570d91=![];}):(!_0x52446a&&(_0x2908dc=_0x55e7e7[_0x2f3d77('0xa16')][_0x2f3d77('0xc08')]),_0x53f5f5!==_0x52446a&&(_0x55e7e7[_0x2f3d77('0xa16')][_0x2f3d77('0xc08')]=0x1),!_0x53f5f5&&(_0x55e7e7[_0x2f3d77('0xa16')][_0x2f3d77('0xc08')]=_0x2908dc),_0x55e7e7['getODBC']());});function _0x428b9f(_0x5f0fc9){var _0x3b51e1=_0x29c95f;_0x55e7e7[_0x3b51e1('0x848')]=_0x5f0fc9||{'count':0x0,'rows':[]};}function _0x137607(){var _0x253c5e=_0x29c95f;_0x55e7e7[_0x253c5e('0xa16')]['offset']=(_0x55e7e7[_0x253c5e('0xa16')][_0x253c5e('0xc08')]-0x1)*_0x55e7e7[_0x253c5e('0xa16')][_0x253c5e('0x1b6d')],_0x4152bf[_0x253c5e('0x179e')](_0x253c5e('0xd14'))?_0x55e7e7[_0x253c5e('0x9c8')]=_0x7081dc[_0x253c5e('0x731')][_0x253c5e('0x22d5')](_0x55e7e7[_0x253c5e('0xa16')],_0x428b9f)[_0x253c5e('0xe59')]:(_0x55e7e7['query']['id']=_0x55e7e7['userProfile']['id'],_0x55e7e7[_0x253c5e('0xa16')][_0x253c5e('0x1e59')]='ODBC',_0x55e7e7[_0x253c5e('0x9c8')]=_0x7081dc[_0x253c5e('0x154f')][_0x253c5e('0x14e6')](_0x55e7e7[_0x253c5e('0xa16')],_0x428b9f)['$promise']);}function _0x1a6a9e(_0x5e293a,_0x50ee79){var _0x20e46b=_0x29c95f;_0x378248[_0x20e46b('0x26b2')]({'controller':'CreateOrEditOdbcDialogController','controllerAs':'vm','templateUrl':_0x29e20a,'parent':angular['element'](_0x5afe63[_0x20e46b('0x19b2')]),'targetEvent':_0x5e293a,'clickOutsideToClose':!![],'locals':{'odbc':_0x50ee79,'odbcs':_0x55e7e7[_0x20e46b('0x848')][_0x20e46b('0x16a7')],'license':_0x55e7e7['license'],'setting':_0x55e7e7[_0x20e46b('0x22f1')],'crudPermissions':_0x55e7e7[_0x20e46b('0xb3d')]}});}function _0x74621(_0x1f28ed){var _0x21b3e4=_0x29c95f;_0x7081dc[_0x21b3e4('0x731')]['delete']({'id':_0x1f28ed['id']})[_0x21b3e4('0xe59')][_0x21b3e4('0xe19')](function(){var _0x177851=_0x21b3e4;_0x32d445()[_0x177851('0xa8b')](_0x55e7e7[_0x177851('0x848')][_0x177851('0x16a7')],{'id':_0x1f28ed['id']}),_0x55e7e7[_0x177851('0x848')][_0x177851('0x148b')]-=0x1,!_0x55e7e7['odbcs'][_0x177851('0x16a7')][_0x177851('0x25ae')]&&_0x55e7e7[_0x177851('0x1c9')](),_0x3fe49d[_0x177851('0x425')]({'title':_0x32d445()['startCase'](_0x177851('0xc58'))+_0x177851('0x1219'),'msg':_0x1f28ed[_0x177851('0x2623')]?_0x1f28ed[_0x177851('0x2623')]+_0x177851('0x2182'):''});})[_0x21b3e4('0x223b')](function(_0x4f3b00){var _0x23b847=_0x21b3e4;if(_0x4f3b00[_0x23b847('0x11d0')]&&_0x4f3b00['data'][_0x23b847('0xcd2')]&&_0x4f3b00[_0x23b847('0x11d0')][_0x23b847('0xcd2')]['length']){_0x55e7e7['errors']=_0x4f3b00[_0x23b847('0x11d0')][_0x23b847('0xcd2')]||[{'message':_0x4f3b00[_0x23b847('0x94f')](),'type':_0x23b847('0xea')}];for(var _0x270651=0x0;_0x270651<_0x4f3b00[_0x23b847('0x11d0')][_0x23b847('0xcd2')][_0x23b847('0x25ae')];_0x270651++){_0x3fe49d[_0x23b847('0x8c8')]({'title':_0x4f3b00[_0x23b847('0x11d0')]['errors'][_0x270651][_0x23b847('0x62e')],'msg':_0x4f3b00[_0x23b847('0x11d0')]['errors'][_0x270651][_0x23b847('0x27e8')]});}}else _0x3fe49d[_0x23b847('0x8c8')]({'title':_0x4f3b00[_0x23b847('0x2833')]?_0x23b847('0x27f2')+_0x4f3b00[_0x23b847('0x2833')]+_0x23b847('0x1b7c')+_0x4f3b00[_0x23b847('0x1fd7')]:_0x23b847('0xea'),'msg':_0x4f3b00[_0x23b847('0x11d0')]?JSON[_0x23b847('0x3ad')](_0x4f3b00[_0x23b847('0x11d0')]['message']):_0x4f3b00[_0x23b847('0x27e8')]||_0x4f3b00[_0x23b847('0x94f')]()});});}function _0x55b763(){var _0x17e63f=_0x29c95f,_0x2474c0=angular[_0x17e63f('0x89')](_0x55e7e7[_0x17e63f('0x18e4')]);return _0x55e7e7[_0x17e63f('0x18e4')]=[],_0x2474c0;}function _0x56a779(_0x3c97ad){var _0x770c0c=_0x29c95f,_0x2ea6af=_0x378248[_0x770c0c('0xa5')]()[_0x770c0c('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?')[_0x770c0c('0x221c')](''+_0x55e7e7[_0x770c0c('0x18e4')]['length']+'\x20selected'+_0x770c0c('0x21bd'))[_0x770c0c('0x4d1')](_0x770c0c('0x1910'))[_0x770c0c('0x1345')](_0x3c97ad)['ok']('OK')[_0x770c0c('0x2c1')]('CANCEL');_0x378248['show'](_0x2ea6af)[_0x770c0c('0xe19')](function(){var _0x4b83ed=_0x770c0c;_0x55e7e7['selectedODBC'][_0x4b83ed('0x1d7e')](function(_0x4c3053){_0x74621(_0x4c3053);}),_0x55e7e7['selectedODBC']=[];});}function _0x315d6f(){_0x55e7e7['selectedODBC']=[];}function _0x4a85fd(){var _0x1c12e1=_0x29c95f;_0x55e7e7[_0x1c12e1('0x18e4')]=_0x55e7e7[_0x1c12e1('0x848')]['rows'];}}const _0x35e3e3=_0x59bdea;_0x3738cd[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x2606'),_0xb635d2('0x83'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x3738cd(_0x32e552,_0xb86bf3,_0x4d698c,_0x4d62df,_0x65a7f3,_0x5064c1,_0x17baf6,_0x4f755e,_0x5b81e2,_0x301382,_0x11b387,_0x4a0c83,_0x399d86,_0x44be12){var _0x9fc8c3=_0xb635d2,_0x3dfd13=this;_0x3dfd13[_0x9fc8c3('0x15a5')]=_0x11b387[_0x9fc8c3('0x1ef8')](),_0x3dfd13[_0x9fc8c3('0xcd2')]=[],_0x3dfd13['setting']=_0x399d86,_0x3dfd13['license']=_0x4a0c83,_0x3dfd13[_0x9fc8c3('0xb3d')]=_0x44be12,_0x3dfd13[_0x9fc8c3('0x1ccb')]={},_0x3dfd13[_0x9fc8c3('0x25ac')]=_0x3dfd13[_0x9fc8c3('0x22f1')]&&_0x3dfd13[_0x9fc8c3('0x22f1')][_0x9fc8c3('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3dfd13['title']=_0x9fc8c3('0x23e1'),_0x3dfd13[_0x9fc8c3('0x83')]=angular[_0x9fc8c3('0x89')](_0x5b81e2),_0x3dfd13['squareRecordings']=_0x4f755e,_0x3dfd13[_0x9fc8c3('0x1653')]=![];!_0x3dfd13[_0x9fc8c3('0x83')]&&(_0x3dfd13[_0x9fc8c3('0x83')]={},_0x3dfd13[_0x9fc8c3('0x13e4')]='CALLYSQUARE.NEW_SQUARERECORDING',_0x3dfd13[_0x9fc8c3('0x1653')]=!![]);_0x3dfd13[_0x9fc8c3('0x1dfa')]=_0x4406a1,_0x3dfd13['saveSquareRecording']=_0x19436b,_0x3dfd13[_0x9fc8c3('0x1a38')]=_0x8b64d2,_0x3dfd13[_0x9fc8c3('0x2635')]=_0x4cd20b,_0x3dfd13['closeDialog']=_0x42f449;function _0x4406a1(){var _0x5cc31c=_0x9fc8c3;_0x3dfd13[_0x5cc31c('0xcd2')]=[],_0x301382[_0x5cc31c('0x83')][_0x5cc31c('0xe5e')](_0x3dfd13[_0x5cc31c('0x83')])[_0x5cc31c('0xe59')]['then'](function(_0x592005){var _0x1a31e5=_0x5cc31c;_0x3dfd13[_0x1a31e5('0x2606')][_0x1a31e5('0x14c9')](_0x592005[_0x1a31e5('0x250e')]()),_0x17baf6['success']({'title':'SquareRecording\x20properly\x20created','msg':_0x3dfd13[_0x1a31e5('0x83')][_0x1a31e5('0x2623')]?_0x3dfd13[_0x1a31e5('0x83')][_0x1a31e5('0x2623')]+'\x20has\x20been\x20created!':''}),_0x42f449(_0x592005);})[_0x5cc31c('0x223b')](function(_0x215488){var _0x6aaa4f=_0x5cc31c;if(_0x215488[_0x6aaa4f('0x11d0')]&&_0x215488['data'][_0x6aaa4f('0xcd2')]&&_0x215488[_0x6aaa4f('0x11d0')]['errors'][_0x6aaa4f('0x25ae')]){_0x3dfd13[_0x6aaa4f('0xcd2')]=_0x215488[_0x6aaa4f('0x11d0')]['errors']||[{'message':_0x215488[_0x6aaa4f('0x94f')](),'type':_0x6aaa4f('0x1781')}];for(var _0x4abb3b=0x0;_0x4abb3b<_0x215488['data'][_0x6aaa4f('0xcd2')][_0x6aaa4f('0x25ae')];_0x4abb3b+=0x1){_0x17baf6['error']({'title':_0x215488[_0x6aaa4f('0x11d0')][_0x6aaa4f('0xcd2')][_0x4abb3b][_0x6aaa4f('0x62e')],'msg':_0x215488[_0x6aaa4f('0x11d0')][_0x6aaa4f('0xcd2')][_0x4abb3b][_0x6aaa4f('0x27e8')]});}}else _0x17baf6['error']({'title':_0x215488[_0x6aaa4f('0x2833')]?'API:'+_0x215488[_0x6aaa4f('0x2833')]+_0x6aaa4f('0x1b7c')+_0x215488[_0x6aaa4f('0x1fd7')]:_0x6aaa4f('0x1781'),'msg':_0x215488[_0x6aaa4f('0x11d0')]?JSON[_0x6aaa4f('0x3ad')](_0x215488['data'][_0x6aaa4f('0x27e8')]):_0x215488['toString']()});});}function _0x19436b(){var _0x22e9f5=_0x9fc8c3;_0x3dfd13['errors']=[],_0x301382[_0x22e9f5('0x83')][_0x22e9f5('0xa70')]({'id':_0x3dfd13[_0x22e9f5('0x83')]['id']},_0x3dfd13[_0x22e9f5('0x83')])['$promise']['then'](function(_0x42a3f8){var _0x17eacc=_0x22e9f5,_0x45889c=_0x32d445()[_0x17eacc('0xf15')](_0x3dfd13[_0x17eacc('0x2606')],{'id':_0x42a3f8['id']});_0x45889c&&_0x32d445()[_0x17eacc('0x1d8')](_0x45889c,_0x32d445()['pick'](_0x42a3f8['toJSON'](),_0x32d445()[_0x17eacc('0x1234')](_0x45889c))),_0x17baf6[_0x17eacc('0x425')]({'title':_0x17eacc('0x148e'),'msg':_0x3dfd13[_0x17eacc('0x83')][_0x17eacc('0x2623')]?_0x3dfd13[_0x17eacc('0x83')][_0x17eacc('0x2623')]+_0x17eacc('0x1c19'):''}),_0x42f449(_0x42a3f8);})[_0x22e9f5('0x223b')](function(_0x4e57af){var _0x2186e5=_0x22e9f5;if(_0x4e57af[_0x2186e5('0x11d0')]&&_0x4e57af[_0x2186e5('0x11d0')][_0x2186e5('0xcd2')]&&_0x4e57af[_0x2186e5('0x11d0')][_0x2186e5('0xcd2')][_0x2186e5('0x25ae')]){_0x3dfd13[_0x2186e5('0xcd2')]=_0x4e57af[_0x2186e5('0x11d0')][_0x2186e5('0xcd2')]||[{'message':_0x4e57af['toString'](),'type':_0x2186e5('0x2217')}];for(var _0x263310=0x0;_0x263310<_0x4e57af['data'][_0x2186e5('0xcd2')]['length'];_0x263310++){_0x17baf6['error']({'title':_0x4e57af[_0x2186e5('0x11d0')][_0x2186e5('0xcd2')][_0x263310]['type'],'msg':_0x4e57af['data']['errors'][_0x263310][_0x2186e5('0x27e8')]});}}else _0x17baf6[_0x2186e5('0x8c8')]({'title':_0x4e57af['status']?_0x2186e5('0x27f2')+_0x4e57af[_0x2186e5('0x2833')]+'\x20-\x20'+_0x4e57af[_0x2186e5('0x1fd7')]:_0x2186e5('0x2217'),'msg':_0x4e57af['data']?JSON[_0x2186e5('0x3ad')](_0x4e57af[_0x2186e5('0x11d0')]['message']):_0x4e57af[_0x2186e5('0x94f')]()});});}function _0x8b64d2(_0x187b20){var _0x4348ee=_0x9fc8c3;_0x3dfd13[_0x4348ee('0xcd2')]=[];var _0x2dbb2c=_0x4d62df['confirm']()[_0x4348ee('0x13e4')](_0x4348ee('0x24d0'))[_0x4348ee('0xd0')](_0x4348ee('0x119e'))[_0x4348ee('0x4d1')](_0x4348ee('0xf4b'))['ok'](_0x4348ee('0x2198'))['cancel'](_0x4348ee('0x8a3'))[_0x4348ee('0x1345')](_0x187b20);_0x4d62df[_0x4348ee('0x26b2')](_0x2dbb2c)[_0x4348ee('0xe19')](function(){var _0x1bba56=_0x4348ee;_0x301382[_0x1bba56('0x83')][_0x1bba56('0x229e')]({'id':_0x3dfd13[_0x1bba56('0x83')]['id']})[_0x1bba56('0xe59')][_0x1bba56('0xe19')](function(){var _0xeb1e7c=_0x1bba56;_0x32d445()['remove'](_0x3dfd13[_0xeb1e7c('0x2606')],{'id':_0x3dfd13[_0xeb1e7c('0x83')]['id']}),_0x17baf6[_0xeb1e7c('0x425')]({'title':_0xeb1e7c('0x1287'),'msg':(_0x3dfd13[_0xeb1e7c('0x83')][_0xeb1e7c('0x2623')]||_0xeb1e7c('0x83'))+'\x20has\x20been\x20deleted!'}),_0x42f449(_0x3dfd13[_0xeb1e7c('0x83')]);})[_0x1bba56('0x223b')](function(_0x560f69){var _0x75d22d=_0x1bba56;if(_0x560f69[_0x75d22d('0x11d0')]&&_0x560f69[_0x75d22d('0x11d0')][_0x75d22d('0xcd2')]&&_0x560f69[_0x75d22d('0x11d0')][_0x75d22d('0xcd2')]['length']){_0x3dfd13[_0x75d22d('0xcd2')]=_0x560f69[_0x75d22d('0x11d0')][_0x75d22d('0xcd2')]||[{'message':_0x560f69[_0x75d22d('0x94f')](),'type':_0x75d22d('0xc90')}];for(var _0x3fcd83=0x0;_0x3fcd83<_0x560f69[_0x75d22d('0x11d0')][_0x75d22d('0xcd2')][_0x75d22d('0x25ae')];_0x3fcd83++){_0x17baf6[_0x75d22d('0x8c8')]({'title':_0x560f69[_0x75d22d('0x11d0')]['errors'][_0x3fcd83][_0x75d22d('0x62e')],'msg':_0x560f69[_0x75d22d('0x11d0')][_0x75d22d('0xcd2')][_0x3fcd83][_0x75d22d('0x27e8')]});}}else _0x17baf6[_0x75d22d('0x8c8')]({'title':_0x560f69['status']?'API:'+_0x560f69[_0x75d22d('0x2833')]+'\x20-\x20'+_0x560f69['statusText']:_0x75d22d('0xc90'),'msg':_0x560f69[_0x75d22d('0x11d0')]?JSON[_0x75d22d('0x3ad')](_0x560f69[_0x75d22d('0x11d0')][_0x75d22d('0x27e8')]):_0x560f69[_0x75d22d('0x27e8')]||_0x560f69[_0x75d22d('0x94f')]()});});},function(){});}function _0x4cd20b(_0x3d4961){return _0x3d4961===null?undefined:new Date(_0x3d4961);}function _0x42f449(_0x18b3d0){var _0xada2cd=_0x9fc8c3;_0x4d62df[_0xada2cd('0x11ed')](_0x18b3d0);}}const _0x25eed9=_0x3738cd,_0xa37725=_0x59426a['p']+_0xb635d2('0x747');_0x1262cc['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state','$mdSidenav','$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),'squareRecordings','userProfile',_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x1262cc(_0x159967,_0x558720,_0x36a023,_0x4ba748,_0x4abb05,_0x59913b,_0x155f70,_0x34f88e,_0x3a789e,_0x23f227,_0x33d2ab,_0x1dc50f,_0x4c9bbe,_0x421d35,_0x3955fb,_0x220c54,_0x46636c){var _0x457915=_0xb635d2,_0x1529f7=this;_0x1529f7[_0x457915('0x5c1')]=_0x220c54,_0x1529f7['setting']=_0x46636c,_0x1529f7[_0x457915('0x15a5')]=_0x3955fb['getCurrentUser'](),_0x1529f7['squareRecordings']=_0x3a789e||{'count':0x0,'rows':[]},_0x1529f7['userProfile']=_0x23f227,_0x1529f7[_0x457915('0xb59')]=_0x33d2ab&&_0x33d2ab[_0x457915('0x148b')]==0x1?_0x33d2ab[_0x457915('0x16a7')][0x0]:null,_0x1529f7[_0x457915('0xb3d')]=_0x3955fb[_0x457915('0xd31')](_0x1529f7['userProfileSection']?_0x1529f7[_0x457915('0xb59')][_0x457915('0xb3d')]:null),_0x1529f7[_0x457915('0x19b6')]=_0x457915('0x2606'),_0x1529f7[_0x457915('0x14d6')]='',_0x1529f7[_0x457915('0x190c')]=null,_0x1529f7[_0x457915('0x1aac')]=[],_0x1529f7['query']={'fields':_0x457915('0xfb5'),'sort':_0x457915('0x7e8'),'limit':0xa,'page':0x1},_0x1529f7[_0x457915('0x42d')]=_0x4882f9,_0x1529f7['deleteconfirm']=_0x56c872,_0x1529f7['success']=_0x34f562,_0x1529f7[_0x457915('0x19d3')]=_0x383aee,_0x1529f7['createOrEditSquareRecording']=_0x548d4a,_0x1529f7[_0x457915('0x1a38')]=_0x10dbf8,_0x1529f7[_0x457915('0x1316')]=_0x2bc950,_0x1529f7[_0x457915('0x111e')]=_0x2c0652,_0x1529f7[_0x457915('0x2749')]=_0x2e925b,_0x1529f7[_0x457915('0x11c4')]=_0x157873;function _0x4882f9(_0x13ffc5){var _0x224c34=_0x457915;return _0x1dc50f[_0x224c34('0x83')][_0x224c34('0x1d1e')]({'id':_0x13ffc5['id']})[_0x224c34('0xe59')][_0x224c34('0xe19')](function(_0x53faaa){var _0xa21a31=_0x224c34,_0x3bef91=[_0x53faaa[_0xa21a31('0x17ab')]],_0x77d820='download',_0x4246f7=new Blob(_0x3bef91,{'type':_0x53faaa[_0xa21a31('0x62e')]});_0x77d820=_0x13ffc5[_0xa21a31('0x1a6c')]+_0x13ffc5['format'];var _0x51ab3c=window['document']['createElement']('a');_0x51ab3c[_0xa21a31('0xede')](_0xa21a31('0xcb7'),URL[_0xa21a31('0x1360')](_0x4246f7)),_0x51ab3c[_0xa21a31('0xede')](_0xa21a31('0x1d1e'),_0x77d820),document[_0xa21a31('0x19b2')][_0xa21a31('0x1d13')](_0x51ab3c),_0x51ab3c[_0xa21a31('0xfe7')]();})['catch'](function(_0x361a22){var _0x46676c=_0x224c34;if(_0x361a22[_0x46676c('0x11d0')]&&_0x361a22[_0x46676c('0x11d0')]['errors']&&_0x361a22['data']['errors'][_0x46676c('0x25ae')])for(var _0x547112=0x0;_0x547112<_0x361a22[_0x46676c('0x11d0')]['errors'][_0x46676c('0x25ae')];_0x547112++){_0x421d35[_0x46676c('0x8c8')]({'title':_0x361a22['data']['errors'][_0x547112][_0x46676c('0x62e')],'msg':_0x361a22[_0x46676c('0x11d0')][_0x46676c('0xcd2')][_0x547112]['message']});}else _0x421d35[_0x46676c('0x8c8')]({'title':_0x361a22[_0x46676c('0x2833')]?'API:'+_0x361a22[_0x46676c('0x2833')]+_0x46676c('0x1b7c')+_0x361a22['statusText']:_0x46676c('0x1781'),'msg':_0x361a22[_0x46676c('0x11d0')]?JSON['stringify'](_0x361a22['data'][_0x46676c('0x27e8')]):_0x361a22[_0x46676c('0x94f')]()});});}function _0x56c872(_0x40e571,_0x3818d6){var _0x56dd22=_0x457915,_0x4bd1fb=_0x4abb05[_0x56dd22('0xa5')]()['title'](_0x56dd22('0x346')+_0x32d445()['startCase']('squareRecording')+'?')[_0x56dd22('0x221c')](_0x56dd22('0xab2')+(_0x40e571[_0x56dd22('0x2623')]||_0x56dd22('0x83'))+_0x56dd22('0x27bb')+_0x56dd22('0x21bd'))[_0x56dd22('0x4d1')]('delete\x20squareRecording')[_0x56dd22('0x1345')](_0x3818d6)['ok']('OK')[_0x56dd22('0x2c1')]('CANCEL');_0x4abb05[_0x56dd22('0x26b2')](_0x4bd1fb)['then'](function(){_0x10dbf8(_0x40e571);},function(){var _0x35f258=_0x56dd22;console[_0x35f258('0x1fe9')](_0x35f258('0x17'));});}var _0x4f03c5=!![],_0x499b88=0x1;_0x159967[_0x457915('0x107')](_0x457915('0x20cb'),function(_0x530d85,_0x2d3c2e){var _0xc97f33=_0x457915;_0x4f03c5?_0x155f70(function(){_0x4f03c5=![];}):(!_0x2d3c2e&&(_0x499b88=_0x1529f7[_0xc97f33('0xa16')][_0xc97f33('0xc08')]),_0x530d85!==_0x2d3c2e&&(_0x1529f7[_0xc97f33('0xa16')][_0xc97f33('0xc08')]=0x1),!_0x530d85&&(_0x1529f7['query']['page']=_0x499b88),_0x1529f7[_0xc97f33('0x19d3')]());});function _0x34f562(_0x2ef764){_0x1529f7['squareRecordings']=_0x2ef764||{'count':0x0,'rows':[]};}function _0x383aee(){var _0x4af8c8=_0x457915;_0x1529f7[_0x4af8c8('0xa16')][_0x4af8c8('0xab0')]=(_0x1529f7['query'][_0x4af8c8('0xc08')]-0x1)*_0x1529f7[_0x4af8c8('0xa16')][_0x4af8c8('0x1b6d')],_0x3955fb[_0x4af8c8('0x179e')](_0x4af8c8('0xd14'))?_0x1529f7[_0x4af8c8('0x9c8')]=_0x1dc50f[_0x4af8c8('0x83')][_0x4af8c8('0x22d5')](_0x1529f7[_0x4af8c8('0xa16')],_0x34f562)[_0x4af8c8('0xe59')]:(_0x1529f7[_0x4af8c8('0xa16')]['id']=_0x1529f7['userProfile']['id'],_0x1529f7[_0x4af8c8('0xa16')]['section']=_0x4af8c8('0x3b6'),_0x1529f7['promise']=_0x1dc50f[_0x4af8c8('0x154f')][_0x4af8c8('0x14e6')](_0x1529f7[_0x4af8c8('0xa16')],_0x34f562)['$promise']);}function _0x548d4a(_0x4b4434,_0x5c7b68){var _0x9314ac=_0x457915;_0x4abb05[_0x9314ac('0x26b2')]({'controller':_0x9314ac('0x209d'),'controllerAs':'vm','templateUrl':_0xa37725,'parent':angular[_0x9314ac('0x24a1')](_0x59913b[_0x9314ac('0x19b2')]),'targetEvent':_0x4b4434,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x5c7b68,'squareRecordings':_0x1529f7[_0x9314ac('0x2606')]['rows'],'license':_0x1529f7[_0x9314ac('0x5c1')],'setting':_0x1529f7['setting'],'crudPermissions':_0x1529f7[_0x9314ac('0xb3d')]}});}function _0x10dbf8(_0x48c5d0){var _0x222c83=_0x457915;_0x1dc50f[_0x222c83('0x83')]['delete']({'id':_0x48c5d0['id']})['$promise']['then'](function(){var _0x7bb360=_0x222c83;_0x32d445()[_0x7bb360('0xa8b')](_0x1529f7[_0x7bb360('0x2606')]['rows'],{'id':_0x48c5d0['id']}),_0x1529f7[_0x7bb360('0x2606')][_0x7bb360('0x148b')]-=0x1,!_0x1529f7[_0x7bb360('0x2606')][_0x7bb360('0x16a7')]['length']&&_0x1529f7[_0x7bb360('0x19d3')](),_0x421d35['success']({'title':_0x32d445()['startCase']('SquareRecording')+_0x7bb360('0x1219'),'msg':_0x48c5d0[_0x7bb360('0x2623')]?_0x48c5d0[_0x7bb360('0x2623')]+_0x7bb360('0x2182'):''});})[_0x222c83('0x223b')](function(_0x10de22){var _0x2db21d=_0x222c83;if(_0x10de22[_0x2db21d('0x11d0')]&&_0x10de22[_0x2db21d('0x11d0')]['errors']&&_0x10de22[_0x2db21d('0x11d0')][_0x2db21d('0xcd2')]['length']){_0x1529f7[_0x2db21d('0xcd2')]=_0x10de22[_0x2db21d('0x11d0')][_0x2db21d('0xcd2')]||[{'message':_0x10de22[_0x2db21d('0x94f')](),'type':_0x2db21d('0x110')}];for(var _0x224865=0x0;_0x224865<_0x10de22[_0x2db21d('0x11d0')]['errors'][_0x2db21d('0x25ae')];_0x224865++){_0x421d35[_0x2db21d('0x8c8')]({'title':_0x10de22[_0x2db21d('0x11d0')][_0x2db21d('0xcd2')][_0x224865][_0x2db21d('0x62e')],'msg':_0x10de22[_0x2db21d('0x11d0')][_0x2db21d('0xcd2')][_0x224865][_0x2db21d('0x27e8')]});}}else _0x421d35[_0x2db21d('0x8c8')]({'title':_0x10de22['status']?_0x2db21d('0x27f2')+_0x10de22[_0x2db21d('0x2833')]+'\x20-\x20'+_0x10de22[_0x2db21d('0x1fd7')]:_0x2db21d('0x110'),'msg':_0x10de22[_0x2db21d('0x11d0')]?JSON[_0x2db21d('0x3ad')](_0x10de22[_0x2db21d('0x11d0')][_0x2db21d('0x27e8')]):_0x10de22[_0x2db21d('0x27e8')]||_0x10de22['toString']()});});}function _0x2bc950(){var _0x46ef21=_0x457915,_0x3877fc=angular[_0x46ef21('0x89')](_0x1529f7[_0x46ef21('0x1aac')]);return _0x1529f7[_0x46ef21('0x1aac')]=[],_0x3877fc;}function _0x2c0652(_0x56b3a0){var _0x3d2166=_0x457915,_0xaf4b8=_0x4abb05[_0x3d2166('0xa5')]()[_0x3d2166('0x13e4')](_0x3d2166('0x498'))[_0x3d2166('0x221c')](_0x3d2166('0xab2')+_0x1529f7[_0x3d2166('0x1aac')][_0x3d2166('0x25ae')]+_0x3d2166('0x5bc')+_0x3d2166('0x21bd'))[_0x3d2166('0x4d1')](_0x3d2166('0x270a'))[_0x3d2166('0x1345')](_0x56b3a0)['ok']('OK')[_0x3d2166('0x2c1')](_0x3d2166('0x17'));_0x4abb05['show'](_0xaf4b8)[_0x3d2166('0xe19')](function(){var _0x5863c2=_0x3d2166;_0x1529f7[_0x5863c2('0x1aac')][_0x5863c2('0x1d7e')](function(_0x10afba){_0x10dbf8(_0x10afba);}),_0x1529f7[_0x5863c2('0x1aac')]=[];});}function _0x2e925b(){_0x1529f7['selectedSquareRecordings']=[];}function _0x157873(){var _0x2c2261=_0x457915;_0x1529f7[_0x2c2261('0x1aac')]=_0x1529f7[_0x2c2261('0x2606')][_0x2c2261('0x16a7')];}}const _0x1d537b=_0x1262cc;_0x13ed81[_0xb635d2('0xb0c')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x13ed81(_0x259ba1,_0xd1a00d){var _0x49b708=_0xb635d2;_0x259ba1[_0x49b708('0x1d72')](_0x49b708('0xf0c'),{'abstract':!![],'url':_0x49b708('0xcc5')})[_0x49b708('0x1d72')](_0x49b708('0x1233'),{'url':_0x49b708('0x4fb'),'views':{'content@app':{'templateUrl':_0x385589,'controller':'OdbcsController\x20as\x20vm'}},'resolve':{'odbcs':[_0x49b708('0x292'),_0x49b708('0x2730'),function _0x2b7a5e(_0x5bf309,_0x4422d4){var _0x166ca7=_0x49b708;return _0x4422d4[_0x166ca7('0x179e')](_0x166ca7('0xd14'))?_0x5bf309[_0x166ca7('0xcd6')](_0x166ca7('0x106c'),{'fields':_0x166ca7('0xa96'),'sort':_0x166ca7('0x7e8'),'limit':0xa,'offset':0x0}):_0x5bf309[_0x166ca7('0xcd6')](_0x166ca7('0x197d'),{'id':_0x4422d4[_0x166ca7('0x1ef8')]()[_0x166ca7('0x1d04')],'section':_0x166ca7('0x2764'),'fields':'createdAt,updatedAt,id,name,dsn,description','sort':_0x166ca7('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x49b708('0x292'),_0x49b708('0x2730'),function _0x327762(_0x173775,_0xe535cf){var _0x1c4ef2=_0x49b708;return _0xe535cf['hasRole'](_0x1c4ef2('0xd14'))?null:_0x173775['resolve'](_0x1c4ef2('0x455'),{'fields':_0x1c4ef2('0x1b71'),'id':_0xe535cf[_0x1c4ef2('0x1ef8')]()[_0x1c4ef2('0x1d04')]});}],'userProfileSection':[_0x49b708('0x292'),'Auth',function _0x546427(_0x328016,_0x644995){var _0x337ae2=_0x49b708;return _0x644995[_0x337ae2('0x179e')](_0x337ae2('0xd14'))?null:_0x328016[_0x337ae2('0xcd6')](_0x337ae2('0x264e'),{'fields':_0x337ae2('0x12d6'),'userProfileId':_0x644995['getCurrentUser']()[_0x337ae2('0x1d04')],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':_0x49b708('0x2629')})[_0x49b708('0x1d72')](_0x49b708('0x7c6'),{'url':_0x49b708('0x2854'),'views':{'content@app':{'templateUrl':_0x5cb3c0,'controller':_0x49b708('0x6ca')}},'resolve':{'squareRecordings':[_0x49b708('0x292'),'Auth',function _0x3afea4(_0x5d2c41,_0x39d445){var _0x16ae33=_0x49b708;return _0x39d445[_0x16ae33('0x179e')](_0x16ae33('0xd14'))?_0x5d2c41[_0x16ae33('0xcd6')]('squareRecording@get',{'fields':_0x16ae33('0xfb5'),'sort':_0x16ae33('0x7e8'),'limit':0xa,'offset':0x0}):_0x5d2c41[_0x16ae33('0xcd6')](_0x16ae33('0x197d'),{'id':_0x39d445[_0x16ae33('0x1ef8')]()[_0x16ae33('0x1d04')],'section':_0x16ae33('0x3b6'),'fields':_0x16ae33('0xfb5'),'sort':_0x16ae33('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x49b708('0x292'),'Auth',function _0x8d3aa4(_0x42ab2c,_0x12435d){var _0x4a351b=_0x49b708;return _0x12435d[_0x4a351b('0x179e')]('admin')?null:_0x42ab2c['resolve'](_0x4a351b('0x455'),{'fields':_0x4a351b('0x1b71'),'id':_0x12435d[_0x4a351b('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x49b708('0x292'),'Auth',function _0x42b6b2(_0xb51870,_0x341f40){var _0x460a40=_0x49b708;return _0x341f40[_0x460a40('0x179e')]('admin')?null:_0xb51870[_0x460a40('0xcd6')](_0x460a40('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x341f40[_0x460a40('0x1ef8')]()[_0x460a40('0x1d04')],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':_0x49b708('0x2629')}),_0xd1a00d[_0x49b708('0xfe3')](_0x49b708('0x1a46'));}angular['module'](_0xb635d2('0xf0c'),['ngCsv','ngPassword','md.data.table','flow',_0xb635d2('0xd8b'),_0xb635d2('0x1727'),'ng-sortable',_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),'ngEmbed',_0xb635d2('0x17b0'),_0xb635d2('0x191c'),_0xb635d2('0xe93'),_0xb635d2('0x16a1'),'app.callysquare.projects'])[_0xb635d2('0x1990')](_0x13ed81)[_0xb635d2('0x1a79')](_0xb635d2('0xd53'),_0x51c8b6)[_0xb635d2('0x1a79')]('OdbcsController',_0x35e3e3)[_0xb635d2('0x1a79')]('CreateOrEditSquareRecordingDialogController',_0x25eed9)[_0xb635d2('0x1a79')](_0xb635d2('0x377'),_0x1d537b);const _0x4d08de=_0x59426a['p']+_0xb635d2('0x2407'),_0x55b384=_0x59426a['p']+'src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html/extractedReports-[chunkhash].html',_0x1efd7a=_0x59426a['p']+_0xb635d2('0xf14'),_0x32a355=_0x59426a['p']+_0xb635d2('0x1206');var _0x44ff6c=_0x59426a(0xd5a);_0x25df5a[_0xb635d2('0xb0c')]=[_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x372'),_0xb635d2('0xffc'),_0xb635d2('0x16a'),_0xb635d2('0xa17')];function _0x25df5a(_0x1abdb9,_0x485486,_0x5841e8,_0x4b5e92,_0x2ebccb,_0x548c99,_0x2073a6){var _0x59cc6d=_0xb635d2,_0x48bb2b=this;_0x48bb2b[_0x59cc6d('0xcd2')]=[],_0x48bb2b['report']=angular['copy'](_0x4b5e92),_0x48bb2b[_0x59cc6d('0x372')][_0x59cc6d('0x2623')]+=_0x59cc6d('0x14dd'),_0x48bb2b[_0x59cc6d('0xa17')]=_0x2073a6,_0x48bb2b[_0x59cc6d('0x517')]={'core':{'multiple':![],'animation':!![],'error':function _0x25a414(_0x677b7c){var _0x529d44=_0x59cc6d;console[_0x529d44('0x8c8')](_0x529d44('0x1f9e')+angular['toJson'](_0x677b7c));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x59cc6d('0x25c1')]},_0x48bb2b['treeCustomEvents']={'select_node':_0x3af2d6},_0x48bb2b[_0x59cc6d('0x17b5')]=_0x378f09,_0x48bb2b[_0x59cc6d('0x2584')]=_0x10c585;function _0x378f09(){var _0x3ac0e0=_0x59cc6d;_0x48bb2b[_0x3ac0e0('0xcd2')]=[];var _0x50bb8f;_0x2ebccb[_0x3ac0e0('0x247b')]['save']({'name':_0x48bb2b[_0x3ac0e0('0x372')][_0x3ac0e0('0x2623')],'description':_0x48bb2b[_0x3ac0e0('0x372')][_0x3ac0e0('0x897')],'table':_0x48bb2b[_0x3ac0e0('0x372')]['table'],'conditions':_0x48bb2b['report'][_0x3ac0e0('0x25d3')],'joins':_0x48bb2b[_0x3ac0e0('0x372')][_0x3ac0e0('0x105b')],'parent':_0x48bb2b[_0x3ac0e0('0x1367')]['id']})[_0x3ac0e0('0xe59')][_0x3ac0e0('0xe19')](function(_0x268167){var _0x44d869=_0x3ac0e0;_0x50bb8f=_0x268167,_0x5841e8[_0x44d869('0x425')]({'title':_0x44d869('0x20ff'),'msg':_0x48bb2b[_0x44d869('0x372')][_0x44d869('0x2623')]?_0x48bb2b[_0x44d869('0x372')][_0x44d869('0x2623')]+'\x20has\x20been\x20copied!':''});var _0x53f779={'fields':_0x44d869('0x15a3'),'nolimit':!![]};return _0x53f779[_0x548c99===_0x44d869('0x247b')?_0x44d869('0xecf'):_0x44d869('0x94')]=_0x48bb2b['report']['id'],_0x2ebccb[_0x44d869('0xe89')][_0x44d869('0x22d5')](_0x53f779)[_0x44d869('0xe59')];})['then'](function(_0x40aa74){var _0x4c7bda=_0x3ac0e0,_0x1e04d7=_0x32d445()[_0x4c7bda('0x65a')](_0x40aa74['rows'],function(_0x301ea3){var _0x11b7ac=_0x4c7bda;return _0x32d445()[_0x11b7ac('0x2bb')]({},_0x301ea3,{'CustomReportId':_0x50bb8f['id']});});return _0x2ebccb[_0x4c7bda('0xe89')][_0x4c7bda('0xdbf')](_0x1e04d7)[_0x4c7bda('0xe59')];})[_0x3ac0e0('0xe19')](function(){var _0x3fbc65=_0x3ac0e0;_0x5841e8[_0x3fbc65('0x425')]({'title':_0x3fbc65('0x2616'),'msg':_0x3fbc65('0x1a92')}),_0x10c585();})[_0x3ac0e0('0x223b')](function(_0x49fcb3){var _0x1d10cc=_0x3ac0e0;_0x5841e8[_0x1d10cc('0x8c8')]({'title':_0x49fcb3[_0x1d10cc('0x2833')]?_0x1d10cc('0x27f2')+_0x49fcb3['status']+_0x1d10cc('0x1b7c')+_0x49fcb3['statusText']:'SYSTEM:COPYREPORT','msg':_0x49fcb3[_0x1d10cc('0x11d0')]?JSON[_0x1d10cc('0x3ad')](_0x49fcb3['data'][_0x1d10cc('0x27e8')]):_0x49fcb3['toString']()});});}function _0x3af2d6(_0x27549f,_0x80b609){var _0x1e73f3=_0x59cc6d;_0x48bb2b['currentNode']=_0x80b609[_0x1e73f3('0x1a8f')];}function _0x10c585(){var _0xb1f34b=_0x59cc6d;_0x485486[_0xb1f34b('0x11ed')]();}}const _0x2a0ce3=_0x25df5a;_0x1768ab['$inject']=[_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'toasty',_0xb635d2('0x1b65'),_0xb635d2('0x372'),_0xb635d2('0xffc'),_0xb635d2('0x16a'),_0xb635d2('0x1367'),'describeTable','crudPermissions'];function _0x1768ab(_0x401774,_0x4b1570,_0x59ddce,_0x37661e,_0x2c126d,_0x37626f,_0x547c68,_0x3e484a,_0x2e0bdb,_0x2c32ab){var _0x3a17ea=_0xb635d2,_0x256fc4=this;_0x256fc4[_0x3a17ea('0xcd2')]=[],_0x256fc4[_0x3a17ea('0x1a0d')]=[],_0x256fc4[_0x3a17ea('0x13e4')]=_0x3a17ea('0x13b8'),_0x256fc4[_0x3a17ea('0xb3d')]=_0x2c32ab,_0x256fc4[_0x3a17ea('0x372')]=angular[_0x3a17ea('0x89')](_0x2c126d),_0x256fc4['reports']=_0x37661e,_0x256fc4['newReport']=![],_0x256fc4[_0x3a17ea('0x11e9')]=_0x2e0bdb[_0x3a17ea('0xdd7')](),_0x256fc4[_0x3a17ea('0x966')]=[{'key':'join','value':_0x3a17ea('0x1596')},{'key':_0x3a17ea('0x114d'),'value':_0x3a17ea('0x14d9')},{'key':_0x3a17ea('0xc60'),'value':_0x3a17ea('0xc7f')},{'key':_0x3a17ea('0xdaa'),'value':_0x3a17ea('0x61e')}];!_0x256fc4[_0x3a17ea('0x372')]&&(_0x256fc4[_0x3a17ea('0x372')]={'name':'','table':_0x3a17ea('0x1b60'),'description':'','parent':_0x3e484a['id']},_0x256fc4[_0x3a17ea('0x13e4')]='ANALYTICS.NEW_REPORT',_0x256fc4[_0x3a17ea('0x20b2')]=!![]);_0x256fc4[_0x3a17ea('0x189e')]=_0x14ceda,_0x256fc4[_0x3a17ea('0x12eb')]=_0x423013,_0x256fc4['deleteReport']=_0x33da86,_0x256fc4['closeDialog']=_0x4ad1ab,_0x256fc4[_0x3a17ea('0x1a4a')]=_0x2fea4e,_0x256fc4[_0x3a17ea('0x864')]=_0x147aaa,_0x256fc4[_0x3a17ea('0x23f8')]=_0x4f8d9e;function _0x147aaa(_0x48e1b0){var _0x33ebf9=_0x3a17ea;_0x256fc4[_0x33ebf9('0x1a0d')][_0x33ebf9('0x1c8e')](_0x48e1b0,0x1);}function _0x4f8d9e(_0x21a708,_0x306c54,_0x1f4d14){var _0x3b1702=_0x3a17ea,_0x214cfd=_0x32d445()[_0x3b1702('0xf15')](_0x256fc4['tables'],{'name':_0x1f4d14});_0x214cfd&&_0x214cfd[_0x3b1702('0xffc')]&&_0x37626f[_0x214cfd[_0x3b1702('0xffc')]]['describe']()[_0x3b1702('0xe59')]['then'](function(_0xaa4ab7){var _0x25137f=_0x3b1702;_0x21a708[_0x306c54]=_0x32d445()[_0x25137f('0x11d3')](_0x32d445()['keys'](_0xaa4ab7),['$promise',_0x25137f('0x113c')]);})[_0x3b1702('0x223b')](function(_0x6243c0){console['error'](_0x6243c0);});}function _0x2fea4e(_0x551f52){var _0x249f40=_0x3a17ea;_0x551f52&&(delete _0x256fc4[_0x249f40('0x694')],_0x256fc4[_0x249f40('0x1a0d')][_0x249f40('0xb76')](_0x551f52));}function _0x14ceda(){var _0x30322f=_0x3a17ea;_0x256fc4[_0x30322f('0xcd2')]=[],_0x256fc4[_0x30322f('0x372')][_0x30322f('0x105b')]=_0x32d445()['map'](_0x256fc4[_0x30322f('0x1a0d')]||[],function(_0xff589){var _0x40d084=_0x30322f;return{'parentKey':_0xff589['parentKey'],'foreignTable':_0xff589[_0x40d084('0x2623')],'foreignKey':_0xff589[_0x40d084('0x212f')],'type':_0xff589[_0x40d084('0x62e')][_0x40d084('0x20dd')]()};}),_0x256fc4['report'][_0x30322f('0x105b')]=JSON[_0x30322f('0x3ad')](_0x256fc4['report'][_0x30322f('0x105b')]),_0x37626f[_0x547c68]['save'](_0x256fc4['report'])[_0x30322f('0xe59')][_0x30322f('0xe19')](function(_0x1b3e5c){var _0x112b27=_0x30322f;_0x256fc4[_0x112b27('0x1b65')][_0x112b27('0x14c9')](_0x1b3e5c),_0x59ddce['success']({'title':_0x112b27('0x877'),'msg':_0x256fc4[_0x112b27('0x372')][_0x112b27('0x2623')]?_0x256fc4[_0x112b27('0x372')][_0x112b27('0x2623')]+'\x20has\x20been\x20created!':''}),_0x4ad1ab();})['catch'](function(_0x453656){var _0xc665ab=_0x30322f;if(_0x453656['data']&&_0x453656[_0xc665ab('0x11d0')][_0xc665ab('0xcd2')]&&_0x453656[_0xc665ab('0x11d0')][_0xc665ab('0xcd2')][_0xc665ab('0x25ae')]){_0x256fc4[_0xc665ab('0xcd2')]=_0x453656[_0xc665ab('0x11d0')][_0xc665ab('0xcd2')]||[{'message':_0x453656[_0xc665ab('0x94f')](),'type':_0xc665ab('0x9a2')}];for(var _0x382f3a=0x0;_0x382f3a<_0x453656[_0xc665ab('0x11d0')]['errors'][_0xc665ab('0x25ae')];_0x382f3a++){_0x59ddce[_0xc665ab('0x8c8')]({'title':_0x453656[_0xc665ab('0x11d0')][_0xc665ab('0xcd2')][_0x382f3a][_0xc665ab('0x62e')],'msg':_0x453656[_0xc665ab('0x11d0')][_0xc665ab('0xcd2')][_0x382f3a][_0xc665ab('0x27e8')]});}}else _0x59ddce[_0xc665ab('0x8c8')]({'title':_0x453656['status']?_0xc665ab('0x27f2')+_0x453656['status']+_0xc665ab('0x1b7c')+_0x453656[_0xc665ab('0x1fd7')]:_0xc665ab('0x9a2'),'msg':_0x453656[_0xc665ab('0x11d0')]?JSON[_0xc665ab('0x3ad')](_0x453656['data']['message']):_0x453656[_0xc665ab('0x94f')]()});});}function _0x423013(){var _0x67d095=_0x3a17ea;_0x256fc4[_0x67d095('0xcd2')]=[],_0x37626f[_0x547c68][_0x67d095('0xa70')]({'id':_0x256fc4[_0x67d095('0x372')]['id']},_0x256fc4[_0x67d095('0x372')])[_0x67d095('0xe59')]['then'](function(_0x3e4015){var _0x28ff55=_0x67d095,_0x131755=_0x32d445()['find'](_0x256fc4[_0x28ff55('0x1b65')],{'id':_0x3e4015['id']});_0x131755&&_0x32d445()[_0x28ff55('0x1d8')](_0x131755,_0x3e4015),_0x59ddce[_0x28ff55('0x425')]({'title':_0x28ff55('0x1a1a'),'msg':_0x256fc4['report']['name']?_0x256fc4['report']['name']+'\x20has\x20been\x20saved!':''}),_0x4ad1ab();})[_0x67d095('0x223b')](function(_0x152091){var _0x24757c=_0x67d095;if(_0x152091[_0x24757c('0x11d0')]&&_0x152091['data']['errors']&&_0x152091[_0x24757c('0x11d0')][_0x24757c('0xcd2')][_0x24757c('0x25ae')]){_0x256fc4[_0x24757c('0xcd2')]=_0x152091[_0x24757c('0x11d0')][_0x24757c('0xcd2')]||[{'message':_0x152091[_0x24757c('0x94f')](),'type':_0x24757c('0x1517')}];for(var _0x41f836=0x0;_0x41f836<_0x152091['data']['errors']['length'];_0x41f836++){_0x59ddce[_0x24757c('0x8c8')]({'title':_0x152091['data']['errors'][_0x41f836][_0x24757c('0x62e')],'msg':_0x152091[_0x24757c('0x11d0')]['errors'][_0x41f836]['message']});}}else _0x59ddce[_0x24757c('0x8c8')]({'title':_0x152091[_0x24757c('0x2833')]?'API:'+_0x152091[_0x24757c('0x2833')]+'\x20-\x20'+_0x152091['statusText']:'api.analyticReport.update','msg':_0x152091['data']?JSON[_0x24757c('0x3ad')](_0x152091[_0x24757c('0x11d0')][_0x24757c('0x27e8')]):_0x152091[_0x24757c('0x94f')]()});});}function _0x33da86(){var _0x18cc9b=_0x3a17ea;_0x256fc4[_0x18cc9b('0xcd2')]=[];var _0x518b19=_0x4b1570[_0x18cc9b('0xa5')]()[_0x18cc9b('0x13e4')](_0x18cc9b('0x24d0'))['content'](_0x18cc9b('0x1b96'))[_0x18cc9b('0x4d1')](_0x18cc9b('0x20d6'))['ok'](_0x18cc9b('0x2198'))['cancel'](_0x18cc9b('0x8a3'))[_0x18cc9b('0x1345')](event);_0x4b1570[_0x18cc9b('0x26b2')](_0x518b19)[_0x18cc9b('0xe19')](function(){var _0x3b26f3=_0x18cc9b;_0x37626f[_0x547c68][_0x3b26f3('0x229e')]({'id':_0x256fc4[_0x3b26f3('0x372')]['id']})['$promise'][_0x3b26f3('0xe19')](function(){var _0x1590be=_0x3b26f3;_0x32d445()[_0x1590be('0xa8b')](_0x256fc4['reports'],{'id':_0x256fc4[_0x1590be('0x372')]['id']}),_0x59ddce[_0x1590be('0x425')]({'title':_0x1590be('0x714'),'msg':_0x256fc4[_0x1590be('0x372')][_0x1590be('0x2623')]?_0x256fc4['report'][_0x1590be('0x2623')]+_0x1590be('0x2182'):''}),_0x4ad1ab();})['catch'](function(_0x4387f9){var _0x3aa177=_0x3b26f3;_0x256fc4[_0x3aa177('0xcd2')]=_0x4387f9['data']['errors']||[{'message':_0x4387f9[_0x3aa177('0x94f')](),'type':_0x3aa177('0x149f')}];});},function(){});}function _0x4ad1ab(){var _0x5af7c9=_0x3a17ea;_0x4b1570[_0x5af7c9('0x11ed')]();}}const _0x523706=_0x1768ab;_0x51544a[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x2639'),'toasty',_0xb635d2('0x605')];function _0x51544a(_0x3007bc,_0x42033f,_0x105bd1,_0xf0016){var _0x38f476=_0xb635d2,_0x148fd6=this;_0x148fd6[_0x38f476('0x372')]={},_0x148fd6['conditions']=_0xf0016[_0x38f476('0x152c')],_0x148fd6[_0x38f476('0x15f9')]=_0x4ed2c7,_0x148fd6[_0x38f476('0x27f3')]=_0x35fa28,_0x148fd6[_0x38f476('0x410')]=_0x3b9e02,_0x148fd6[_0x38f476('0x126c')]=_0x268450,_0x148fd6[_0x38f476('0x282f')]=_0x52f302;function _0x4ed2c7(_0x42a411,_0x148413){var _0x59ef0c=_0x38f476;_0x148fd6['report']=_0x42a411,_0x148fd6[_0x59ef0c('0x372')][_0x59ef0c('0x1c03')]=angular[_0x59ef0c('0x56')](_0x42a411[_0x59ef0c('0x25d3')])||{'group':{'operator':_0x59ef0c('0x21b4'),'rules':[]}},_0x148fd6[_0x59ef0c('0xb3d')]=typeof _0x148413!==_0x59ef0c('0x1143')?_0x148413:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(var _0x46f0a9=0x0;_0x46f0a9<_0x148fd6[_0x59ef0c('0x372')][_0x59ef0c('0x1c03')][_0x59ef0c('0x246c')][_0x59ef0c('0x182')]['length'];_0x46f0a9++){if(_0x148fd6['report'][_0x59ef0c('0x1c03')][_0x59ef0c('0x246c')][_0x59ef0c('0x182')][_0x46f0a9][_0x59ef0c('0x15d1')]){var _0x38e0c8=_0x148fd6[_0x59ef0c('0x372')][_0x59ef0c('0x1c03')][_0x59ef0c('0x246c')]['rules'][_0x46f0a9][_0x59ef0c('0x15d1')][_0x59ef0c('0x1745')]('.');_0x38e0c8['length']===0x1&&(_0x148fd6['report'][_0x59ef0c('0x1c03')][_0x59ef0c('0x246c')]['rules'][_0x46f0a9][_0x59ef0c('0x15d1')]=_0x148fd6[_0x59ef0c('0x372')][_0x59ef0c('0x19b6')]+'.'+_0x148fd6[_0x59ef0c('0x372')][_0x59ef0c('0x1c03')]['group'][_0x59ef0c('0x182')][_0x46f0a9][_0x59ef0c('0x15d1')]);}}_0x42033f['getColumns'](_0x148fd6[_0x59ef0c('0x372')][_0x59ef0c('0x19b6')])[_0x59ef0c('0xe19')](function(_0x14c22a){var _0x20041b=_0x59ef0c;_0x148fd6['columns']=_0x32d445()[_0x20041b('0x11d3')](_0x32d445()['keys'](_0x14c22a),['$promise',_0x20041b('0x113c'),_0x20041b('0x15c9'),_0x20041b('0x1ce9')]);})[_0x59ef0c('0x223b')](function(_0x5cd8ec){var _0x178786=_0x59ef0c;_0x105bd1['error']({'title':_0x5cd8ec[_0x178786('0x2833')]?'API:'+_0x5cd8ec['status']+_0x178786('0x1b7c')+_0x5cd8ec[_0x178786('0x1fd7')]:_0x178786('0xf3e'),'msg':_0x5cd8ec['data']?JSON[_0x178786('0x3ad')](_0x5cd8ec['data']):_0x5cd8ec[_0x178786('0x94f')]()});});}function _0x35fa28(_0x52349b){var _0x1ea90b=_0x38f476;_0x52349b[_0x1ea90b('0x14c9')]({'condition':'=','field':'','value':''});}function _0x3b9e02(_0x461124){var _0x456492=_0x38f476;_0x461124[_0x456492('0xb76')]({'group':{'operator':'AND','rules':[]}});}function _0x268450(_0x2221db,_0x2c6a2b,_0x59197d){var _0x123a2f=_0x38f476,_0x44b20e=_0x3007bc['confirm']()[_0x123a2f('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20item?')[_0x123a2f('0x221c')](_0x123a2f('0x1ab2'))[_0x123a2f('0x4d1')]('delete\x20item')[_0x123a2f('0x1345')](_0x59197d)['ok']('OK')[_0x123a2f('0x2c1')]('CANCEL');_0x3007bc[_0x123a2f('0x26b2')](_0x44b20e)[_0x123a2f('0xe19')](function(){var _0x2c0b56=_0x123a2f;_0x2221db[_0x2c0b56('0x1c8e')](_0x2c6a2b,0x1);},function(){var _0x2f912c=_0x123a2f;console[_0x2f912c('0x1fe9')](_0x2f912c('0x17'));});}function _0x52f302(_0x7cb63f){var _0x13035e=_0x38f476;return!_0x32d445()[_0x13035e('0x1c43')]([_0x13035e('0x1a00'),_0x13035e('0x18b0'),_0x13035e('0xf74'),'IS\x20NOT\x20EMPTY'],_0x7cb63f);}}const _0x51cd59=_0x51544a;_0x764643[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc')];function _0x764643(_0x5941b3){var _0x43f2ef=_0xb635d2,_0x34852f={'cm_companies':_0x43f2ef('0x24d1'),'cm_contacts':_0x43f2ef('0x1711'),'cm_hopper':'cmHopper','cm_hopper_final':'cmHopperFinal','cm_hopper_history':_0x43f2ef('0x1a61'),'cm_lists':'cmList','chat_websites':_0x43f2ef('0xcda'),'chat_queues':_0x43f2ef('0xfce'),'chat_interactions':_0x43f2ef('0x11a0'),'chat_messages':_0x43f2ef('0x2a2'),'chat_offline_messages':_0x43f2ef('0x10f'),'report_chat_queue':_0x43f2ef('0x494'),'report_chat_transfer':_0x43f2ef('0x1da0'),'mail_accounts':_0x43f2ef('0x17f0'),'mail_queues':_0x43f2ef('0x18d9'),'mail_interactions':_0x43f2ef('0x497'),'mail_messages':_0x43f2ef('0x1810'),'report_mail_queue':_0x43f2ef('0x92f'),'report_mail_transfer':_0x43f2ef('0x2514'),'openchannel_accounts':_0x43f2ef('0x1a7'),'openchannel_queues':'openchannelQueue','openchannel_interactions':_0x43f2ef('0x208b'),'openchannel_messages':_0x43f2ef('0x537'),'report_openchannel_queue':_0x43f2ef('0x51b'),'report_openchannel_transfer':_0x43f2ef('0x674'),'sms_accounts':'smsAccount','sms_queues':_0x43f2ef('0x19fb'),'sms_interactions':_0x43f2ef('0xc1'),'sms_messages':_0x43f2ef('0x1f40'),'report_sms_queue':_0x43f2ef('0x180c'),'report_sms_transfer':'smsTransferReport','fax_accounts':_0x43f2ef('0x688'),'fax_queues':_0x43f2ef('0x3f4'),'fax_interactions':_0x43f2ef('0x100b'),'fax_messages':_0x43f2ef('0xb10'),'report_fax_transfer':_0x43f2ef('0x1ea7'),'report_fax_queue':_0x43f2ef('0x1e78'),'report_call':'voiceCallReport','report_agent':_0x43f2ef('0x22cf'),'report_square':_0x43f2ef('0x11f6'),'report_member':'memberReport','report_queue':_0x43f2ef('0xba'),'report_square_details':_0x43f2ef('0x226a'),'report_dial':_0x43f2ef('0xa4e'),'report_jscripty_sessions':_0x43f2ef('0xc4e'),'report_jscripty_questions':_0x43f2ef('0x1aeb'),'report_jscripty_answers':'jscriptyAnswerReport','users':_0x43f2ef('0x10c6'),'voice_recordings':_0x43f2ef('0x1a1e'),'cdr':_0x43f2ef('0x1fc9'),'whatsapp_accounts':'whatsappAccount','whatsapp_queues':_0x43f2ef('0x17a7'),'whatsapp_interactions':'whatsappInteraction','whatsapp_messages':_0x43f2ef('0x2201'),'report_whatsapp_queue':_0x43f2ef('0x203b'),'report_whatsapp_transfer':'whatsappTransferReport'};return{'getMap':function _0x231561(){var _0x79d278=_0x43f2ef,_0x4934ed=[];return _0x32d445()[_0x79d278('0xd1e')](_0x34852f,function(_0x51d5e1,_0x57f17f){var _0x519b5d=_0x79d278;_0x4934ed[_0x519b5d('0xb76')]({'name':_0x57f17f,'api':_0x51d5e1});}),_0x4934ed;},'getColumns':function _0x2a635c(_0x5b14ab){var _0x515ccf=_0x34852f[_0x5b14ab];return _0x5941b3[_0x515ccf]['describe']()['$promise'];}};}const _0x3e55cb=_0x764643;_0x2abae5['$inject']=['$scope',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x372'),'reportFields',_0xb635d2('0x1ded'),_0xb635d2('0x2837'),_0xb635d2('0x192a'),_0xb635d2('0x605'),_0xb635d2('0xffc'),_0xb635d2('0xb3d')];function _0x2abae5(_0x2fbcad,_0xfee2b1,_0x26612e,_0x5cc348,_0x58477f,_0x560749,_0x4a873d,_0x546f67,_0x1097df,_0x75c084,_0x2e920c,_0x2d5f0f){var _0x1bab63=_0xb635d2,_0xb48649=this;_0xb48649[_0x1bab63('0xcd2')]=[],_0xb48649[_0x1bab63('0x13e4')]=_0x1bab63('0x60b'),_0xb48649[_0x1bab63('0x372')]=_0x58477f,_0xb48649['reportField']=angular[_0x1bab63('0x89')](_0x4a873d),_0xb48649[_0x1bab63('0xef')]=_0x560749,_0xb48649['metrics']=_0x546f67,_0xb48649[_0x1bab63('0x192a')]=_0x1097df,_0xb48649[_0x1bab63('0x605')]=_0x75c084,_0xb48649[_0x1bab63('0x2b1')]=![],_0xb48649[_0x1bab63('0xb3d')]=_0x2d5f0f;if(!_0xb48649[_0x1bab63('0x1ded')])_0xb48649[_0x1bab63('0x1ded')]={'type':_0x1bab63('0x1abc'),'function':null,'format':null,'groupBy':![],'orderBy':null},_0xb48649[_0x1bab63('0x13e4')]=_0x1bab63('0xbd9'),_0xb48649[_0x1bab63('0x2b1')]=!![];else{_0xb48649[_0x1bab63('0x1ded')][_0x1bab63('0x62e')]=_0xb48649['reportField']['custom']?_0x1bab63('0x261d'):_0xb48649['reportField'][_0x1bab63('0x18ed')]?_0x1bab63('0x152f'):_0x1bab63('0x1abc');if(_0xb48649[_0x1bab63('0x1ded')][_0x1bab63('0x15d1')]&&!_0xb48649[_0x1bab63('0x1ded')]['custom']&&_0x32d445()['isNil'](_0xb48649[_0x1bab63('0x1ded')]['MetricId'])){var _0x350055=_0xb48649['reportField'][_0x1bab63('0x15d1')][_0x1bab63('0x1745')]('.');_0x350055['length']===0x1&&(_0xb48649[_0x1bab63('0x1ded')][_0x1bab63('0x15d1')]=_0xb48649[_0x1bab63('0x372')][_0x1bab63('0x19b6')]+'.'+_0xb48649['reportField'][_0x1bab63('0x15d1')]);}}_0xb48649[_0x1bab63('0x1797')]=_0x1456e9,_0xb48649[_0x1bab63('0x5b5')]=_0x31bfaf,_0xb48649[_0x1bab63('0xef6')]=_0x5f1bb2,_0xb48649[_0x1bab63('0x2584')]=_0xfba3da;function _0x1456e9(){var _0x2c4f86=_0x1bab63;_0xb48649['errors']=[],_0xb48649['reportField'][_0x2c4f86('0x261d')]=_0xb48649['reportField'][_0x2c4f86('0x62e')]==='custom',_0xb48649[_0x2c4f86('0x1ded')][_0x2c4f86('0x18ed')]=_0xb48649['reportField'][_0x2c4f86('0x62e')]===_0x2c4f86('0x152f')?_0xb48649[_0x2c4f86('0x1ded')][_0x2c4f86('0x18ed')]:null,_0xb48649['reportField'][_0x2c4f86('0xecf')]=_0xb48649[_0x2c4f86('0x372')]['id'],_0x2e920c[_0x2c4f86('0xe89')][_0x2c4f86('0xe5e')](_0xb48649[_0x2c4f86('0x1ded')])[_0x2c4f86('0xe59')]['then'](function(_0x5457eb){var _0x4ecc75=_0x2c4f86;_0xb48649[_0x4ecc75('0xef')][_0x4ecc75('0xb76')](_0x5457eb),_0x5cc348['success']({'title':_0x4ecc75('0x207d'),'msg':_0xb48649['reportField'][_0x4ecc75('0x15d1')]?_0xb48649[_0x4ecc75('0x1ded')][_0x4ecc75('0x15d1')]+_0x4ecc75('0x105f'):_0xb48649[_0x4ecc75('0x1ded')]['type']+'\x20has\x20been\x20created!'}),_0xfba3da();})['catch'](function(_0x2fdacb){var _0x40d0ca=_0x2c4f86;_0xb48649[_0x40d0ca('0xcd2')]=_0x2fdacb[_0x40d0ca('0x11d0')][_0x40d0ca('0xcd2')]||[{'message':_0x2fdacb[_0x40d0ca('0x94f')](),'type':_0x40d0ca('0x1a53')}];});}function _0x31bfaf(){var _0x18df30=_0x1bab63;_0xb48649[_0x18df30('0xcd2')]=[],_0xb48649[_0x18df30('0x1ded')][_0x18df30('0x261d')]=_0xb48649['reportField'][_0x18df30('0x62e')]===_0x18df30('0x261d'),_0xb48649[_0x18df30('0x1ded')][_0x18df30('0x18ed')]=_0xb48649[_0x18df30('0x1ded')][_0x18df30('0x62e')]===_0x18df30('0x152f')?_0xb48649[_0x18df30('0x1ded')][_0x18df30('0x18ed')]:null,_0x2e920c[_0x18df30('0xe89')]['update']({'id':_0xb48649[_0x18df30('0x1ded')]['id']},_0xb48649[_0x18df30('0x1ded')])[_0x18df30('0xe59')][_0x18df30('0xe19')](function(_0x37426c){var _0x57b8ef=_0x18df30,_0x2954e1=_0x32d445()['find'](_0xb48649[_0x57b8ef('0xef')],{'id':_0x37426c['id']});_0x2954e1&&_0x32d445()[_0x57b8ef('0x1d8')](_0x2954e1,_0x37426c),_0x5cc348[_0x57b8ef('0x425')]({'title':_0x57b8ef('0x1514'),'msg':_0xb48649[_0x57b8ef('0x1ded')]['field']?_0xb48649['reportField'][_0x57b8ef('0x15d1')]+'\x20has\x20been\x20saved!':''}),_0xfba3da();})['catch'](function(_0x48c1ca){var _0x5df930=_0x18df30;_0xb48649[_0x5df930('0xcd2')]=_0x48c1ca['data'][_0x5df930('0xcd2')]||[{'message':_0x48c1ca[_0x5df930('0x94f')](),'type':_0x5df930('0x5f0')}];});}function _0x5f1bb2(_0x1ff9c3){var _0x1c7a82=_0x1bab63;_0xb48649[_0x1c7a82('0xcd2')]=[];var _0x27ee74=_0x26612e[_0x1c7a82('0xa5')]()[_0x1c7a82('0x13e4')](_0x1c7a82('0x24d0'))[_0x1c7a82('0xd0')](_0x1c7a82('0x26fc'))[_0x1c7a82('0x4d1')]('Delete\x20Report')['ok'](_0x1c7a82('0x2198'))[_0x1c7a82('0x2c1')](_0x1c7a82('0x8a3'))[_0x1c7a82('0x1345')](_0x1ff9c3);_0x26612e[_0x1c7a82('0x26b2')](_0x27ee74)[_0x1c7a82('0xe19')](function(){var _0x5176ba=_0x1c7a82;_0x2e920c[_0x5176ba('0xe89')][_0x5176ba('0x229e')]({'id':_0xb48649[_0x5176ba('0x1ded')]['id']})[_0x5176ba('0xe59')][_0x5176ba('0xe19')](function(){var _0x4f0e4e=_0x5176ba;_0x32d445()[_0x4f0e4e('0xa8b')](_0xb48649[_0x4f0e4e('0xef')],{'id':_0xb48649[_0x4f0e4e('0x1ded')]['id']}),_0x5cc348[_0x4f0e4e('0x425')]({'title':_0x4f0e4e('0xa3b'),'msg':_0xb48649['reportField'][_0x4f0e4e('0x15d1')]?_0xb48649[_0x4f0e4e('0x1ded')][_0x4f0e4e('0x15d1')]+'\x20has\x20been\x20deleted!':''}),_0xfba3da();})['catch'](function(_0x113472){var _0x221f90=_0x5176ba;_0xb48649[_0x221f90('0xcd2')]=_0x113472[_0x221f90('0x11d0')][_0x221f90('0xcd2')]||[{'message':_0x113472['toString'](),'type':_0x221f90('0x693')}];});},function(){});}function _0xfba3da(){var _0x5e33c0=_0x1bab63;_0x26612e[_0x5e33c0('0x11ed')]();}}const _0x400596=_0x2abae5,_0x447301=_0x59426a['p']+_0xb635d2('0x66f');_0x5d8d9b['$inject']=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2639'),_0xb635d2('0x605'),_0xb635d2('0x2493')];function _0x5d8d9b(_0x409831,_0x12fbe6,_0x3079bb,_0x57e690,_0x5d8d27,_0x19a9da,_0x1340e7,_0xf23f1,_0x553dfc,_0x18626f){var _0x125063=_0xb635d2,_0x2ce48d=this;_0x2ce48d['report']={},_0x2ce48d['reportFields']={'count':0x0,'rows':[]},_0x2ce48d[_0x125063('0x2441')]=_0x32d445()['keyBy'](_0x553dfc[_0x125063('0xf55')],_0x125063('0x2')),_0x2ce48d[_0x125063('0x13b9')]=_0x32d445()[_0x125063('0x226f')](_0x553dfc['getFormats'],_0x125063('0x2')),_0x2ce48d[_0x125063('0x17fc')]=_0x32d445()[_0x125063('0x226f')](_0x553dfc[_0x125063('0x17b9')],_0x125063('0x2')),_0x2ce48d['orderBy']=_0x32d445()[_0x125063('0x226f')](_0x553dfc[_0x125063('0xee9')],'value'),_0x2ce48d['selectedReportFields']=[],_0x2ce48d[_0x125063('0xa16')]={'fields':'createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]},_0x2ce48d[_0x125063('0x2067')]={'animation':0x64,'onSort':function _0x5d333a(_0x3357e9){var _0x560698=_0x125063;_0x1340e7['analyticFieldReport'][_0x560698('0x10b1')]({'id':_0x2ce48d[_0x560698('0x372')]['id']},_0x3357e9[_0x560698('0x34a')])[_0x560698('0xe59')]['then'](function(_0x31c1e8){var _0x49291d=_0x560698;_0x2ce48d[_0x49291d('0xef')][_0x49291d('0x16a7')]=_0x31c1e8;})['catch'](function(_0x4f553b){var _0x159d04=_0x560698;_0x19a9da['error']({'title':_0x4f553b[_0x159d04('0x2833')]?_0x159d04('0x27f2')+_0x4f553b[_0x159d04('0x2833')]+_0x159d04('0x1b7c')+_0x4f553b['statusText']:_0x159d04('0x75b')});});}},_0x2ce48d[_0x125063('0x15f9')]=_0x323929,_0x2ce48d['deleteConfirm']=_0x5f552d,_0x2ce48d[_0x125063('0x425')]=_0x1fe77f,_0x2ce48d[_0x125063('0x163')]=_0x397009,_0x2ce48d['createOrEditReportField']=_0x267997,_0x2ce48d[_0x125063('0xef6')]=_0x4fdb57,_0x2ce48d[_0x125063('0x6f6')]=_0x48b9c3,_0x2ce48d[_0x125063('0x4da')]=_0x309f6a,_0x2ce48d[_0x125063('0x142c')]=_0x3a61a4;function _0x323929(_0x3af2f8,_0x3cff17){var _0x2254ad=_0x125063;_0x2ce48d[_0x2254ad('0x372')]=_0x3af2f8,_0x2ce48d[_0x2254ad('0xa16')][_0x2254ad('0xecf')]=_0x2ce48d[_0x2254ad('0x372')]['id'],_0x2ce48d[_0x2254ad('0xb3d')]=typeof _0x3cff17!==_0x2254ad('0x1143')?_0x3cff17:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2ce48d[_0x2254ad('0x2067')][_0x2254ad('0x1ebc')]=!_0x2ce48d[_0x2254ad('0xb3d')][_0x2254ad('0x12bc')]?!![]:![],_0xf23f1[_0x2254ad('0x1140')](_0x2ce48d[_0x2254ad('0x372')][_0x2254ad('0x19b6')])[_0x2254ad('0xe19')](function(_0x360d0d){var _0x2f7d7c=_0x2254ad;return _0x2ce48d['columns']=_0x32d445()[_0x2f7d7c('0x11d3')](_0x32d445()[_0x2f7d7c('0x1234')](_0x360d0d),[_0x2f7d7c('0xe59'),_0x2f7d7c('0x113c')]),_0x1340e7['analyticMetric']['get']({'fields':_0x2f7d7c('0x2643'),'nolimit':!![]})[_0x2f7d7c('0xe59')];})[_0x2254ad('0xe19')](function(_0x5d0a8f){var _0x268f47=_0x2254ad;_0x2ce48d[_0x268f47('0x2837')]=_0x5d0a8f['rows'];})[_0x2254ad('0x223b')](function(_0x42ee09){var _0x151bd6=_0x2254ad;_0x19a9da[_0x151bd6('0x8c8')]({'title':_0x42ee09['status']?_0x151bd6('0x27f2')+_0x42ee09[_0x151bd6('0x2833')]+_0x151bd6('0x1b7c')+_0x42ee09[_0x151bd6('0x1fd7')]:_0x151bd6('0xf3e'),'msg':_0x42ee09[_0x151bd6('0x11d0')]?JSON[_0x151bd6('0x3ad')](_0x42ee09[_0x151bd6('0x11d0')]):_0x42ee09[_0x151bd6('0x94f')]()});}),_0x2ce48d['getReportFields']();}function _0x5f552d(_0x5dde8a,_0x19f853){var _0x10183b=_0x125063,_0x48d8df=_0x57e690[_0x10183b('0xa5')]()[_0x10183b('0x13e4')](_0x10183b('0x8b7'))['htmlContent'](''+_0x5dde8a[_0x10183b('0x15d1')]+''+_0x10183b('0x21bd'))[_0x10183b('0x4d1')]('delete\x20field')['targetEvent'](_0x19f853)['ok']('OK')[_0x10183b('0x2c1')](_0x10183b('0x17'));_0x57e690[_0x10183b('0x26b2')](_0x48d8df)[_0x10183b('0xe19')](function(){_0x4fdb57(_0x5dde8a);},function(){var _0x30fee3=_0x10183b;console[_0x30fee3('0x1fe9')](_0x30fee3('0x17'));});}var _0x58a85c=!![];_0x12fbe6[_0x125063('0x107')]('vm_rf.query.filter',function(){var _0x313f34=_0x125063;_0x58a85c?_0x3079bb(function(){_0x58a85c=![];}):_0x2ce48d[_0x313f34('0x163')]();});function _0x1fe77f(_0xbc3248){var _0x5d88ee=_0x125063;_0x2ce48d[_0x5d88ee('0xef')]=_0xbc3248||{'count':0x0,'rows':[]};}function _0x397009(){var _0x5319b9=_0x125063;_0x2ce48d['promise']=_0x1340e7['analyticFieldReport'][_0x5319b9('0x22d5')](_0x2ce48d[_0x5319b9('0xa16')],_0x1fe77f)[_0x5319b9('0xe59')];}function _0x267997(_0x3d3303,_0x11c7e4){var _0x39a4e9=_0x125063;_0x57e690['show']({'controller':_0x39a4e9('0xce3'),'controllerAs':'vm','templateUrl':_0x447301,'parent':angular[_0x39a4e9('0x24a1')](_0x5d8d27[_0x39a4e9('0x19b2')]),'targetEvent':_0x3d3303,'clickOutsideToClose':!![],'locals':{'report':_0x2ce48d[_0x39a4e9('0x372')],'reportField':_0x11c7e4,'reportFields':_0x2ce48d[_0x39a4e9('0xef')][_0x39a4e9('0x16a7')],'metrics':_0x2ce48d['metrics'],'columns':_0x2ce48d[_0x39a4e9('0x192a')],'setting':null,'crudPermissions':_0x2ce48d[_0x39a4e9('0xb3d')]}});}function _0x4fdb57(_0x21e64b){var _0x452030=_0x125063;_0x1340e7[_0x452030('0xe89')][_0x452030('0x229e')]({'id':_0x21e64b['id']})[_0x452030('0xe59')]['then'](function(){var _0x1fc63a=_0x452030;_0x2ce48d['selectedReportFields']=[],_0x32d445()[_0x1fc63a('0xa8b')](_0x2ce48d[_0x1fc63a('0xef')][_0x1fc63a('0x16a7')],{'id':_0x21e64b['id']}),_0x2ce48d[_0x1fc63a('0xef')][_0x1fc63a('0x148b')]-=0x1,!_0x2ce48d[_0x1fc63a('0xef')][_0x1fc63a('0x16a7')][_0x1fc63a('0x25ae')]&&_0x2ce48d[_0x1fc63a('0x163')](),_0x19a9da[_0x1fc63a('0x425')]({'title':_0x1fc63a('0x1e5d'),'msg':_0x21e64b[_0x1fc63a('0x15d1')]?_0x21e64b[_0x1fc63a('0x15d1')]+_0x1fc63a('0x2182'):''});})[_0x452030('0x223b')](function(_0x36d707){var _0xade499=_0x452030;_0x19a9da[_0xade499('0x8c8')]({'title':_0x36d707['status']?_0xade499('0x27f2')+_0x36d707['status']+_0xade499('0x1b7c')+_0x36d707[_0xade499('0x1fd7')]:_0xade499('0x1e17'),'msg':_0x36d707[_0xade499('0x11d0')]?JSON[_0xade499('0x3ad')](_0x36d707[_0xade499('0x11d0')]):_0x36d707[_0xade499('0x94f')]()});});}function _0x48b9c3(_0x53c30c){var _0x4f9a41=_0x125063,_0x1af588=_0x57e690[_0x4f9a41('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')['htmlContent'](_0x4f9a41('0xab2')+_0x2ce48d['selectedReportFields'][_0x4f9a41('0x25ae')]+_0x4f9a41('0x5bc')+_0x4f9a41('0x21bd'))[_0x4f9a41('0x4d1')]('delete\x20fields')[_0x4f9a41('0x1345')](_0x53c30c)['ok']('OK')[_0x4f9a41('0x2c1')](_0x4f9a41('0x17'));_0x57e690[_0x4f9a41('0x26b2')](_0x1af588)[_0x4f9a41('0xe19')](function(){var _0x8a9dae=_0x4f9a41;_0x2ce48d[_0x8a9dae('0xefb')][_0x8a9dae('0x1d7e')](function(_0x2750bb){_0x4fdb57(_0x2750bb);}),_0x2ce48d['selectedReportFields']=[];});}function _0x309f6a(_0x25eb27){var _0x26c3df=_0x125063,_0x22da4f=_0x32d445()['find'](_0x2ce48d[_0x26c3df('0x2837')],{'id':_0x25eb27});return _0x22da4f?_0x22da4f[_0x26c3df('0x2623')]:_0x18626f[_0x26c3df('0x2159')](_0x26c3df('0x1ea9'));}function _0x3a61a4(_0x5a8380){var _0x1b0809=_0x125063,_0x2d1c65=_0x32d445()[_0x1b0809('0xf15')](_0x2ce48d[_0x1b0809('0x2837')],{'id':_0x5a8380});return _0x2d1c65?_0x2d1c65['metric']:_0x18626f[_0x1b0809('0x2159')](_0x1b0809('0x1ea9'));}}const _0x5e4932=_0x5d8d9b;function _0x1f1cda(){var _0x18076b=_0xb635d2,_0x527cf0=[{'value':_0x18076b('0x1ef9'),'option':function _0x5b4e6a(_0x37e371){var _0x1fd47e=_0x18076b;return _0x1fd47e('0x1220')+_0x37e371+')';}},{'value':_0x18076b('0x17e6'),'option':function _0x5895ce(_0x5d9af7){var _0x383303=_0x18076b;return _0x383303('0x2bd')+_0x5d9af7+')';}},{'value':_0x18076b('0x1a7d'),'option':function _0x3bc03c(_0x330ba7){var _0x48a431=_0x18076b;return _0x48a431('0xf57')+_0x330ba7+')';}},{'value':_0x18076b('0x196e'),'option':function _0x3ea6d0(_0x416eb4){var _0x351257=_0x18076b;return _0x351257('0x1ec')+_0x416eb4+')';}},{'value':_0x18076b('0x231'),'option':function _0x45d762(_0x59719e){var _0x592610=_0x18076b;return _0x592610('0x1fda')+_0x59719e+')';}},{'value':'AVG','option':function _0x4fff73(_0x4a7557){var _0x4fa7df=_0x18076b;return _0x4fa7df('0x1ea0')+_0x4a7557+')';}},{'value':'GROUP_CONCAT','option':function _0x1a60ed(_0xc0320a){var _0x45c9be=_0x18076b;return _0x45c9be('0x1981')+_0xc0320a+')';}},{'value':'GROUP_CONCAT\x20ASC','option':function _0x3d0c75(_0x424704){var _0x4a9016=_0x18076b;return'GROUP_CONCAT\x20('+_0x424704+_0x4a9016('0x2120')+_0x424704+'\x20ASC)';}},{'value':_0x18076b('0x17da'),'option':function _0x56fe8f(_0x4c040b){var _0x490308=_0x18076b;return _0x490308('0x1981')+_0x4c040b+'\x20ORDER\x20BY\x20'+_0x4c040b+_0x490308('0x3e2');}}],_0xc86094=[{'value':_0x18076b('0x903'),'option':function _0x447418(_0x25792b){var _0x1e1fbc=_0x18076b;return _0x1e1fbc('0x10ec')+_0x25792b+')';}},{'value':'DATE','option':function _0x12bbda(_0x24d32a){return'DATE\x20('+_0x24d32a+')';}},{'value':_0x18076b('0x137f'),'option':function _0x568aa7(_0x35793a){var _0x6aa79d=_0x18076b;return _0x6aa79d('0x47e')+_0x35793a+')';}},{'value':_0x18076b('0x11b5'),'option':function _0x5e054e(_0x3c9bc1){var _0x1807c7=_0x18076b;return _0x1807c7('0x415')+_0x3c9bc1+')';}},{'value':_0x18076b('0x11b7'),'option':function _0x52e6de(_0xc71acb){var _0x57d9c4=_0x18076b;return _0x57d9c4('0xbbc')+_0xc71acb+')';}}],_0x2c961e=[{'value':![],'option':function _0x2d250f(){return'No';}},{'value':!![],'option':function _0x52c83e(_0x5a6b03){return'GROUP\x20BY\x20'+_0x5a6b03;}}],_0x5afbb8=[{'value':'ASC','option':function _0x4d01ee(_0x532324){var _0x26aa17=_0x18076b;return _0x26aa17('0x15c')+_0x532324+'\x20ASC';}},{'value':_0x18076b('0x2586'),'option':function _0x550dda(_0x22032f){var _0x436b16=_0x18076b;return _0x436b16('0x15c')+_0x22032f+_0x436b16('0x8da');}}],_0x56711e=['=','!=','<','<=','>','>=',_0x18076b('0x2785'),_0x18076b('0x65c'),_0x18076b('0x1a00'),_0x18076b('0x18b0'),_0x18076b('0xf74'),'IS\x20NOT\x20EMPTY'];return{'getFunctions':_0x527cf0,'getFormats':_0xc86094,'getGroupBy':_0x2c961e,'getOrderBy':_0x5afbb8,'getConditions':_0x56711e};}const _0x58ec09=_0x1f1cda;_0x322b42[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0xf65'),'api','report','Auth',_0xb635d2('0xb59')];function _0x322b42(_0x1262aa,_0x339dea,_0x3c40ec,_0x17f89c,_0x41f8c5,_0x279d5f){var _0x57cadc=_0xb635d2,_0xd00574=this;_0xd00574[_0x57cadc('0x372')]=_0x17f89c||{},_0xd00574[_0x57cadc('0xb59')]=_0x279d5f&&_0x279d5f[_0x57cadc('0x148b')]==0x1?_0x279d5f[_0x57cadc('0x16a7')][0x0]:null,_0xd00574[_0x57cadc('0xb3d')]=_0x41f8c5[_0x57cadc('0xd31')](_0xd00574[_0x57cadc('0xb59')]?_0xd00574['userProfileSection']['crudPermissions']:null),_0xd00574[_0x57cadc('0xc7b')]=_0x1262aa[_0x57cadc('0x2ef')][_0x57cadc('0x435')]||0x0,_0xd00574[_0x57cadc('0x2139')]=_0x1b929a,_0xd00574[_0x57cadc('0x12eb')]=_0x2722e6,_0xd00574[_0x57cadc('0xe6b')]=_0x420b27,_0xd00574[_0x57cadc('0x93a')]=_0xa72caf,_0xd00574[_0x57cadc('0x13f8')]=_0x107922,_0xd00574[_0x57cadc('0x113a')]=_0x16a18a,_0xd00574[_0x57cadc('0x2863')]=_0x38ab2f;function _0x1b929a(){_0x1262aa['go']('app.analytics.reports',{},{'reload':'app.analytics.reports'});}function _0x2722e6(){var _0x38b67d=_0x57cadc;_0xd00574[_0x38b67d('0x372')]['conditions']=angular[_0x38b67d('0x1a33')](_0xd00574['report'][_0x38b67d('0x1c03')]),_0x3c40ec[_0x38b67d('0x247b')][_0x38b67d('0xa70')]({'id':_0xd00574['report']['id']},_0x32d445()[_0x38b67d('0x23e3')](_0xd00574[_0x38b67d('0x372')],_0x38b67d('0x105b')))[_0x38b67d('0xe59')][_0x38b67d('0xe19')](function(){var _0x2c26b4=_0x38b67d;_0x339dea[_0x2c26b4('0x425')]({'title':_0x2c26b4('0x2605'),'msg':_0xd00574[_0x2c26b4('0x372')]['name']?_0xd00574[_0x2c26b4('0x372')][_0x2c26b4('0x2623')]+_0x2c26b4('0x283b'):''});})[_0x38b67d('0x223b')](function(_0x3471e9){var _0x505bae=_0x38b67d;_0x339dea[_0x505bae('0x8c8')]({'title':_0x3471e9[_0x505bae('0x2833')]?_0x505bae('0x27f2')+_0x3471e9[_0x505bae('0x2833')]+_0x505bae('0x1b7c')+_0x3471e9[_0x505bae('0x1fd7')]:'SYSTEM:GETreport','msg':_0x3471e9[_0x505bae('0x11d0')]?JSON[_0x505bae('0x3ad')](_0x3471e9[_0x505bae('0x11d0')]):_0x3471e9['toString']()});});}function _0x420b27(){var _0x4cbb5b=_0x57cadc;_0xd00574['columns']=[],_0xd00574[_0x4cbb5b('0x16a7')]=[],_0xd00574[_0x4cbb5b('0x8c8')]=![],_0x3c40ec[_0x4cbb5b('0xe89')]['get']({'fields':_0x4cbb5b('0xb80'),'nolimit':!![],'CustomReportId':_0xd00574[_0x4cbb5b('0x372')]['id']})[_0x4cbb5b('0xe59')][_0x4cbb5b('0xe19')](function(_0x569ef5){var _0x29b23f=_0x4cbb5b;return _0xd00574[_0x29b23f('0x192a')]=_0x569ef5?_0x569ef5[_0x29b23f('0x16a7')]:[],_0x3c40ec['analyticCustomReport'][_0x29b23f('0x936')]({'id':_0xd00574['report']['id']})['$promise'];})[_0x4cbb5b('0xe19')](function(_0x20bb2f){var _0x425bcf=_0x4cbb5b;_0xd00574[_0x425bcf('0x16a7')]=_0x20bb2f;})['catch'](function(_0x233b5f){var _0x5bd17e=_0x4cbb5b;console['log'](_0x233b5f),_0xd00574[_0x5bd17e('0x8c8')]={'title':_0x233b5f[_0x5bd17e('0x2833')]?_0x5bd17e('0x27f2')+_0x233b5f[_0x5bd17e('0x2833')]+'\x20-\x20'+_0x233b5f['statusText']:_0x5bd17e('0xf28'),'msg':_0x233b5f[_0x5bd17e('0x11d0')]?_0x233b5f[_0x5bd17e('0x11d0')]['message']:_0x233b5f[_0x5bd17e('0x94f')](),'sql':_0x233b5f[_0x5bd17e('0x11d0')]?_0x233b5f[_0x5bd17e('0x11d0')]['parent']?_0x233b5f[_0x5bd17e('0x11d0')][_0x5bd17e('0x4ec')]['sql']:_0x5bd17e('0xc20'):'NO\x20QUERY'},_0x339dea['error'](_0xd00574[_0x5bd17e('0x8c8')]);});}function _0x38ab2f(_0x226a7e,_0x79daed){var _0x5b880e=_0x57cadc;return _0x4ddcaa()(_0x79daed,'YYYY-MM-DDTHH:mm:ssZ',!![])[_0x5b880e('0x1768')]()&&(_0x79daed=_0x4ddcaa()(_0x79daed,'')[_0x5b880e('0x5e5')](_0x5b880e('0x1f90'))),_0x79daed;}function _0xa72caf(){var _0x4fb2a7=_0x57cadc;return _0xd00574['queryResult']=_0x4fb2a7('0x1fea'),_0x3c40ec[_0x4fb2a7('0x247b')][_0x4fb2a7('0xa16')]({'id':_0xd00574[_0x4fb2a7('0x372')]['id']})[_0x4fb2a7('0xe59')][_0x4fb2a7('0xe19')](function(_0x1c07db){var _0x15f861=_0x4fb2a7;_0xd00574[_0x15f861('0x1d')]=_0x1c07db[_0x15f861('0x19af')];})['catch'](function(_0x41cfe0){var _0x1c0cb8=_0x4fb2a7;_0xd00574[_0x1c0cb8('0x1d')]='',console[_0x1c0cb8('0x1fe9')](_0x41cfe0),_0xd00574[_0x1c0cb8('0x8c8')]={'title':_0x41cfe0[_0x1c0cb8('0x2833')]?_0x1c0cb8('0x27f2')+_0x41cfe0[_0x1c0cb8('0x2833')]+_0x1c0cb8('0x1b7c')+_0x41cfe0['statusText']:_0x1c0cb8('0xf28'),'msg':_0x41cfe0[_0x1c0cb8('0x11d0')]?_0x41cfe0['data'][_0x1c0cb8('0x27e8')]:_0x41cfe0[_0x1c0cb8('0x94f')](),'sql':_0x41cfe0['data']?_0x41cfe0[_0x1c0cb8('0x11d0')][_0x1c0cb8('0x4ec')]?_0x41cfe0[_0x1c0cb8('0x11d0')]['parent'][_0x1c0cb8('0x19af')]:_0x1c0cb8('0xc20'):_0x1c0cb8('0xc20')},_0x339dea[_0x1c0cb8('0x8c8')](_0xd00574[_0x1c0cb8('0x8c8')]);});}function _0x107922(_0x51e32d,_0x1be1ee){var _0x1d5329=_0x57cadc;if(_0x16a18a(_0x51e32d))return _0x32d445()[_0x1d5329('0x65a')](_0x51e32d,_0x1be1ee)[_0x1d5329('0x1537')](',');return'';}function _0x16a18a(_0x282e1b){return _0x32d445()['isArray'](_0x282e1b);}}const _0x13c6e2=_0x322b42;_0x2a323b[_0xb635d2('0xb0c')]=[_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),'report',_0xb635d2('0xffc'),'apiName'];function _0x2a323b(_0x442275,_0x595f72,_0x290c7f,_0x53ccbf,_0x5e2d45,_0x239f58){var _0x120061=_0xb635d2,_0x1aad2d=this;_0x1aad2d[_0x120061('0xcd2')]=[],_0x1aad2d[_0x120061('0x372')]=angular['copy'](_0x53ccbf),_0x1aad2d[_0x120061('0x2863')]=_0x206c16,_0x1aad2d[_0x120061('0x2584')]=_0x2770d7,_0x274db5();function _0x274db5(){var _0x5df2f9=_0x120061;_0x1aad2d[_0x5df2f9('0x192a')]=[],_0x1aad2d[_0x5df2f9('0x16a7')]=[],_0x1aad2d[_0x5df2f9('0x8c8')]=![];var _0x2ea8b3={'fields':'field,alias','nolimit':!![]};_0x2ea8b3[_0x239f58===_0x5df2f9('0x247b')?_0x5df2f9('0xecf'):_0x5df2f9('0x94')]=_0x1aad2d['report']['id'],_0x1aad2d[_0x5df2f9('0x9c8')]=_0x5e2d45['analyticFieldReport'][_0x5df2f9('0x22d5')](_0x2ea8b3)[_0x5df2f9('0xe59')][_0x5df2f9('0xe19')](function(_0x3474f1){var _0x1d7fec=_0x5df2f9;return _0x1aad2d[_0x1d7fec('0x192a')]=_0x3474f1?_0x3474f1[_0x1d7fec('0x16a7')]:[],_0x5e2d45[_0x239f58][_0x1d7fec('0x936')]({'id':_0x1aad2d['report']['id']})[_0x1d7fec('0xe59')];})[_0x5df2f9('0xe19')](function(_0x4ffafd){var _0x4985ee=_0x5df2f9;_0x1aad2d[_0x4985ee('0x16a7')]=_0x4ffafd;})[_0x5df2f9('0x223b')](function(_0x4ab6ac){var _0x267cf6=_0x5df2f9;console[_0x267cf6('0x1fe9')](_0x4ab6ac),_0x1aad2d[_0x267cf6('0x8c8')]={'title':_0x4ab6ac[_0x267cf6('0x2833')]?_0x267cf6('0x27f2')+_0x4ab6ac[_0x267cf6('0x2833')]+_0x267cf6('0x1b7c')+_0x4ab6ac[_0x267cf6('0x1fd7')]:_0x267cf6('0xf28'),'msg':_0x4ab6ac[_0x267cf6('0x11d0')]?_0x4ab6ac[_0x267cf6('0x11d0')][_0x267cf6('0x27e8')]:_0x4ab6ac[_0x267cf6('0x94f')](),'sql':_0x4ab6ac['data']?_0x4ab6ac['data'][_0x267cf6('0x4ec')]?_0x4ab6ac[_0x267cf6('0x11d0')][_0x267cf6('0x4ec')][_0x267cf6('0x19af')]:_0x267cf6('0xc20'):_0x267cf6('0xc20')},_0x290c7f['error'](_0x1aad2d[_0x267cf6('0x8c8')]);});}function _0x206c16(_0x2103a1,_0xbab10f){var _0x17862d=_0x120061;return _0x4ddcaa()(_0xbab10f,_0x17862d('0x266c'),!![])[_0x17862d('0x1768')]()&&(_0xbab10f=_0x4ddcaa()(_0xbab10f,'')[_0x17862d('0x5e5')](_0x17862d('0x1f90'))),_0xbab10f;}function _0x2770d7(){var _0x1989bc=_0x120061;_0x595f72[_0x1989bc('0x11ed')]();}}const _0x2d9ae0=_0x2a323b,_0x4d5368=_0x59426a['p']+_0xb635d2('0x55f'),_0x172032=_0x59426a['p']+'src/js/modules/main/apps/analytics/views/reports/preview/dialog.html/dialog-[chunkhash].html',_0x3e78d7=_0x59426a['p']+_0xb635d2('0xdc0'),_0x35f579=_0x59426a['p']+_0xb635d2('0x15ff');_0x2e67f6['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),'$document',_0xb635d2('0x1c9f'),_0xb635d2('0xeb6'),_0xb635d2('0x2400'),'$translate',_0xb635d2('0x154f'),_0xb635d2('0xb59'),'api',_0xb635d2('0xe9b'),'toasty',_0xb635d2('0x2730')];function _0x2e67f6(_0x1e3417,_0x4a1c18,_0x4536ec,_0x28eb8c,_0x266027,_0x1802c6,_0x22b036,_0xe7b780,_0x19e435,_0x40398a,_0x558714,_0x5406b5,_0x279688){var _0x420309=_0xb635d2,_0x465ec3=this;_0x465ec3['currentUser']=_0x279688[_0x420309('0x1ef8')](),_0x465ec3[_0x420309('0x1b65')]={'count':0x0,'rows':[]},_0x465ec3[_0x420309('0x154f')]=_0xe7b780,_0x465ec3[_0x420309('0xb59')]=_0x19e435&&_0x19e435[_0x420309('0x148b')]==0x1?_0x19e435[_0x420309('0x16a7')][0x0]:null,_0x465ec3[_0x420309('0xb3d')]=_0x279688[_0x420309('0xd31')](_0x465ec3[_0x420309('0xb59')]?_0x465ec3['userProfileSection']['crudPermissions']:null),_0x465ec3[_0x420309('0x261e')]=[],_0x465ec3[_0x420309('0xa16')]={'fields':'createdAt,updatedAt,id,name,description,table,parent,conditions,joins','limit':0xa,'page':0x1,'sort':'-updatedAt'},_0x465ec3['apiName']=null,_0x465ec3[_0x420309('0xc2c')]='',_0x465ec3[_0x420309('0x2735')]=!![],_0x465ec3['editstate']=_0x394552,_0x465ec3['copydialog']=_0x18a473,_0x465ec3[_0x420309('0x2142')]=_0x340de4,_0x465ec3[_0x420309('0x5fa')]=_0x32e3ac,_0x465ec3[_0x420309('0xeb4')]=_0x28b968,_0x465ec3[_0x420309('0x1d9e')]=_0xc1d4a5,_0x465ec3[_0x420309('0x425')]=_0x4ea4ae,_0x465ec3['getReports']=_0x38db7f,_0x465ec3[_0x420309('0x1c81')]=_0x1af4c5,_0x465ec3[_0x420309('0x1719')]=_0x373a71,_0x465ec3[_0x420309('0x2758')]=_0x511276,_0x465ec3[_0x420309('0xc38')]=_0x18321a,_0x465ec3[_0x420309('0xef7')]=_0x328248,_0x465ec3[_0x420309('0xe50')]=_0x1d9d91,_0x465ec3['selectAllReports']=_0x3cd3c6,_0x465ec3[_0x420309('0xed1')]=_0x558714[_0x420309('0x16a7')][0x0]?angular[_0x420309('0x56')](_0x558714[_0x420309('0x16a7')][0x0][_0x420309('0xd03')]):[],_0x465ec3[_0x420309('0xa17')]=_0x558714['rows'][0x1]?angular[_0x420309('0x56')](_0x558714['rows'][0x1][_0x420309('0xd03')]):[],_0x465ec3[_0x420309('0x1a28')]=_0x523fab(![]),_0x465ec3[_0x420309('0x517')]=_0x523fab(!![]),_0x465ec3[_0x420309('0x1d5')]=_0x1d0a26(![]),_0x465ec3['treeCustomEvents']=_0x1d0a26(!![]);function _0x394552(_0x59b30a){var _0x4e8eb6=_0x420309;_0x266027['go'](_0x4e8eb6('0x118c'),{'id':_0x59b30a['id'],'crudPermissions':_0x465ec3[_0x4e8eb6('0xb3d')]});}function _0x18a473(_0xfc6fcd,_0x4c8bfe){var _0x38f5df=_0x420309;_0x28eb8c[_0x38f5df('0x26b2')]({'controller':_0x38f5df('0x9b3'),'controllerAs':'vm','templateUrl':_0x4d5368,'parent':angular[_0x38f5df('0x24a1')](_0x4536ec[_0x38f5df('0x19b2')]),'targetEvent':_0x4c8bfe,'clickOutsideToClose':!![],'locals':{'report':_0xfc6fcd,'apiName':_0x465ec3[_0x38f5df('0x16a')],'treeCustomData':_0x465ec3[_0x38f5df('0x14b1')][_0x38f5df('0xfe')](!![])[_0x38f5df('0x1d4b')]('#')}})[_0x38f5df('0x23')](function(){});}function _0x340de4(_0xbba954,_0x46b49b){var _0x38f42f=_0x420309;_0x28eb8c[_0x38f42f('0x26b2')]({'controller':'PreviewReportDialogController','controllerAs':'vm','templateUrl':_0x172032,'parent':angular[_0x38f42f('0x24a1')](_0x4536ec[_0x38f42f('0x19b2')]),'targetEvent':_0x46b49b,'clickOutsideToClose':!![],'locals':{'report':_0xbba954,'apiName':_0x465ec3['apiName']}});}function _0x32e3ac(_0x2ce42a,_0x1b4b61){var _0x5e1816=_0x420309;_0x28eb8c['show']({'controller':_0x5e1816('0x25cb'),'controllerAs':'vm','templateUrl':_0x3e78d7,'parent':angular[_0x5e1816('0x24a1')](_0x4536ec['body']),'targetEvent':_0x1b4b61,'clickOutsideToClose':!![],'locals':{'report':_0x2ce42a,'apiName':_0x465ec3[_0x5e1816('0x16a')],'currentPath':_0x465ec3[_0x5e1816('0xc2c')]}});}function _0x28b968(_0x5864e8){var _0x30743c=_0x420309,_0x4f2bc3;_0x40398a['analyticMetric'][_0x30743c('0x22d5')]({'fields':_0x30743c('0x2643'),'nolimit':!![]})['$promise']['then'](function(_0x48d916){var _0x3753f6=_0x30743c;_0x4f2bc3=_0x32d445()['keyBy'](_0x48d916[_0x3753f6('0x16a7')],'id');var _0xa4ea4e={'fields':_0x3753f6('0x15a3'),'nolimit':!![]};return _0xa4ea4e[_0x465ec3['apiName']==='analyticCustomReport'?_0x3753f6('0xecf'):_0x3753f6('0x94')]=_0x5864e8['id'],_0x40398a['analyticFieldReport']['get'](_0xa4ea4e)[_0x3753f6('0xe59')];})['then'](function(_0x441df4){var _0x41e949=_0x30743c;for(var _0x5eb08e=0x0;_0x5eb08e<_0x441df4[_0x41e949('0x16a7')][_0x41e949('0x25ae')];_0x5eb08e+=0x1){_0x441df4[_0x41e949('0x16a7')][_0x5eb08e][_0x41e949('0x18ed')]&&(_0x441df4[_0x41e949('0x16a7')][_0x5eb08e]['field']=_0x4f2bc3[_0x441df4[_0x41e949('0x16a7')][_0x5eb08e][_0x41e949('0x18ed')]][_0x41e949('0x152f')],_0x441df4[_0x41e949('0x16a7')][_0x5eb08e][_0x41e949('0x261d')]=!![]),delete _0x441df4[_0x41e949('0x16a7')][_0x5eb08e][_0x41e949('0x18ed')];}var _0x3fc0a7=_0x1802c6['document']['createElement']('a');_0x3fc0a7[_0x41e949('0xcb7')]=_0x41e949('0x1ccf')+_0x1802c6[_0x41e949('0x168')](angular['toJson']({'name':_0x5864e8[_0x41e949('0x2623')],'description':_0x5864e8[_0x41e949('0x897')],'table':_0x5864e8[_0x41e949('0x19b6')],'conditions':_0x5864e8[_0x41e949('0x25d3')],'joins':_0x5864e8[_0x41e949('0x105b')],'fields':_0x441df4[_0x41e949('0x16a7')]})),_0x3fc0a7[_0x41e949('0x1d1e')]=_0x5864e8[_0x41e949('0x2623')]+_0x41e949('0x1081'),_0x3fc0a7[_0x41e949('0xe0b')]='_self',_0x3fc0a7[_0x41e949('0xfe7')](),_0x5406b5[_0x41e949('0x425')]({'title':_0x41e949('0x1adb'),'msg':_0x5864e8[_0x41e949('0x2623')]?_0x5864e8[_0x41e949('0x2623')]+_0x41e949('0x9e4'):''});})['catch'](function(_0x54a5de){var _0x45a177=_0x30743c;_0x5406b5['error']({'title':_0x54a5de[_0x45a177('0x2833')]?'API:'+_0x54a5de[_0x45a177('0x2833')]+'\x20-\x20'+_0x54a5de['statusText']:_0x45a177('0xa42'),'msg':_0x54a5de[_0x45a177('0x11d0')]?JSON[_0x45a177('0x3ad')](_0x54a5de[_0x45a177('0x11d0')]):_0x54a5de[_0x45a177('0x94f')]()});});}function _0xc1d4a5(_0x7123fa,_0x3d0431){var _0x37fe43=_0x420309,_0x35f8a3=_0x28eb8c[_0x37fe43('0xa5')]()[_0x37fe43('0x13e4')](_0x37fe43('0x30d'))[_0x37fe43('0x221c')](''+_0x7123fa['name']+_0x37fe43('0x27bb')+_0x37fe43('0x21bd'))[_0x37fe43('0x4d1')](_0x37fe43('0x1e97'))[_0x37fe43('0x1345')](_0x3d0431)['ok']('OK')[_0x37fe43('0x2c1')]('CANCEL');_0x28eb8c[_0x37fe43('0x26b2')](_0x35f8a3)[_0x37fe43('0xe19')](function(){_0x511276(_0x7123fa);},function(){var _0x5014e0=_0x37fe43;console[_0x5014e0('0x1fe9')]('CANCEL');});}var _0x560958=!![],_0xa744c4=0x1;_0x1e3417[_0x420309('0x107')]('vm.query.filter',function(_0x1df67f,_0x1c0907){var _0x2c9d06=_0x420309;_0x560958?_0x4a1c18(function(){_0x560958=![];}):(!_0x1c0907&&(_0xa744c4=_0x465ec3[_0x2c9d06('0xa16')]['page']),_0x1df67f!==_0x1c0907&&(_0x465ec3[_0x2c9d06('0xa16')][_0x2c9d06('0xc08')]=0x1),!_0x1df67f&&(_0x465ec3['query'][_0x2c9d06('0xc08')]=_0xa744c4),_0x465ec3['getReports']());}),_0x1e3417[_0x420309('0x107')](_0x420309('0x27db'),function(_0x31a1ff){var _0x1e04a2=_0x420309;_0x465ec3[_0x1e04a2('0x2686')]&&_0x465ec3['treeDefaultInstance']['jstree'](!![])[_0x1e04a2('0x1cc8')](_0x31a1ff),_0x465ec3[_0x1e04a2('0x14b1')]&&_0x465ec3['treeCustomInstance'][_0x1e04a2('0xfe')](!![])[_0x1e04a2('0x1cc8')](_0x31a1ff);});function _0x4ea4ae(_0x372cc0){var _0x2e9da8=_0x420309;_0x465ec3[_0x2e9da8('0x1b65')]=_0x372cc0||{'count':0x0,'rows':[]};}function _0x38db7f(){var _0x34b499=_0x420309;_0x465ec3[_0x34b499('0xa16')][_0x34b499('0xab0')]=(_0x465ec3['query'][_0x34b499('0xc08')]-0x1)*_0x465ec3[_0x34b499('0xa16')]['limit'];if(_0x465ec3[_0x34b499('0x16a')]){if(_0x465ec3[_0x34b499('0x15a5')][_0x34b499('0xcd9')]===_0x34b499('0xd14')||_0x465ec3['userProfileSection'][_0x34b499('0x11fd')])_0x465ec3[_0x34b499('0x9c8')]=_0x40398a[_0x465ec3[_0x34b499('0x16a')]]['get'](_0x465ec3[_0x34b499('0xa16')],_0x4ea4ae)['$promise'];else{var _0x34ea30=[];_0x465ec3[_0x34b499('0x9c8')]=_0x40398a[_0x465ec3['apiName']]['get'](_0x465ec3[_0x34b499('0xa16')])[_0x34b499('0xe59')]['then'](function(_0x5398c7){var _0x3c77c5=_0x34b499;return _0x34ea30=_0x5398c7&&_0x5398c7[_0x3c77c5('0x16a7')]?_0x5398c7[_0x3c77c5('0x16a7')]:[],_0x34ea30[_0x3c77c5('0x25ae')]>0x0?_0x40398a[_0x3c77c5('0xd49')]['get']({'sectionId':_0x465ec3['userProfileSection']['id'],'type':_0x465ec3[_0x3c77c5('0x16a')]===_0x3c77c5('0x1092')?'DefaultReports':_0x3c77c5('0x1617')})['$promise'][_0x3c77c5('0xe19')](function(_0x985681){var _0x45ddff=_0x3c77c5,_0x4d6fa8=_0x985681&&_0x985681[_0x45ddff('0x16a7')]?_0x985681[_0x45ddff('0x16a7')]:[];if(_0x4d6fa8['length']>0x0){var _0x28a08e=[];return _0x34ea30[_0x45ddff('0x1d7e')](function(_0x3d8806){var _0x5b1eca=_0x45ddff,_0x511f49=_0x32d445()[_0x5b1eca('0xf15')](_0x4d6fa8,[_0x5b1eca('0x1104'),_0x3d8806['id']]);if(_0x511f49)_0x28a08e[_0x5b1eca('0xb76')](_0x3d8806);}),_0x4ea4ae({'count':_0x28a08e[_0x45ddff('0x25ae')],'rows':_0x28a08e});}else return _0x4ea4ae(null);}):_0x4ea4ae(null);});}}}function _0x1af4c5(_0xb87a13,_0x10705b){var _0x2e96f4=_0x420309;_0x28eb8c[_0x2e96f4('0x26b2')]({'controller':_0x2e96f4('0xbbb'),'controllerAs':'vm','templateUrl':_0x35f579,'parent':angular['element'](_0x4536ec[_0x2e96f4('0x19b2')]),'targetEvent':_0xb87a13,'clickOutsideToClose':!![],'locals':{'report':_0x10705b,'reports':_0x465ec3[_0x2e96f4('0x1b65')][_0x2e96f4('0x16a7')],'apiName':_0x465ec3[_0x2e96f4('0x16a')],'currentNode':_0x465ec3[_0x2e96f4('0x1367')],'setting':null,'crudPermissions':_0x465ec3['crudPermissions']}});}function _0x373a71(_0x35c521){var _0x166407=_0x420309;if(_0x35c521[_0x166407('0x2c0')][_0x166407('0x62e')]===_0x166407('0x13c4')){var _0x3f60be=new FileReader();_0x3f60be[_0x166407('0x1d94')]=function(_0x4c5ae7){var _0x384e0e=_0x166407;console['log'](_0x4c5ae7[_0x384e0e('0xe0b')]['result']);try{var _0x5323d0=atob(_0x4c5ae7[_0x384e0e('0xe0b')][_0x384e0e('0x2048')]['split'](',')[0x1]);_0x5323d0=angular['fromJson'](_0x5323d0),_0x40398a[_0x384e0e('0x247b')][_0x384e0e('0xe5e')]({'name':_0x5323d0['name'],'description':_0x5323d0['description'],'table':_0x5323d0[_0x384e0e('0x19b6')],'conditions':_0x5323d0['conditions'],'joins':_0x5323d0[_0x384e0e('0x105b')],'parent':_0x465ec3[_0x384e0e('0x1367')]['id']})[_0x384e0e('0xe59')][_0x384e0e('0xe19')](function(_0x29b959){var _0x5dc2be=_0x384e0e;_0x465ec3[_0x5dc2be('0x1b65')][_0x5dc2be('0x16a7')][_0x5dc2be('0x14c9')](_0x29b959),_0x5406b5[_0x5dc2be('0x425')]({'title':'Report\x20saved!','msg':_0x29b959[_0x5dc2be('0x2623')]?_0x29b959[_0x5dc2be('0x2623')]+_0x5dc2be('0x1c19'):''});var _0x351be3=_0x32d445()['map'](_0x5323d0[_0x5dc2be('0x1d17')],function(_0x606156){return _0x32d445()['extend']({},_0x606156,{'CustomReportId':_0x29b959['id']});});return _0x40398a[_0x5dc2be('0xe89')][_0x5dc2be('0xdbf')](_0x351be3)[_0x5dc2be('0xe59')];})['then'](function(){var _0x3bf9a7=_0x384e0e;_0x5406b5[_0x3bf9a7('0x425')]({'title':_0x3bf9a7('0x1f6e'),'msg':'Fields\x20has\x20been\x20saved!'});})[_0x384e0e('0x223b')](function(_0xb3e409){var _0x24a77e=_0x384e0e;_0x5406b5['error']({'title':_0xb3e409[_0x24a77e('0x2833')]?_0x24a77e('0x27f2')+_0xb3e409[_0x24a77e('0x2833')]+_0x24a77e('0x1b7c')+_0xb3e409[_0x24a77e('0x1fd7')]:_0x24a77e('0x1c49'),'msg':_0xb3e409[_0x24a77e('0x11d0')]?JSON['stringify'](_0xb3e409['data']):_0xb3e409[_0x24a77e('0x94f')]()});});}catch(_0x441666){console[_0x384e0e('0x8c8')](_0x441666),_0x5406b5[_0x384e0e('0x8c8')]({'title':_0x384e0e('0x623'),'msg':_0x441666[_0x384e0e('0x94f')]()});}},_0x3f60be[_0x166407('0x845')](_0x35c521[_0x166407('0x2c0')]);}else _0x5406b5[_0x166407('0x8c8')]({'title':_0x166407('0x2819'),'msg':_0x166407('0x255d')});}function _0x511276(_0x28a3a1){var _0x419aca=_0x420309;_0x465ec3[_0x419aca('0x16a')]&&_0x40398a[_0x465ec3[_0x419aca('0x16a')]][_0x419aca('0x229e')]({'id':_0x28a3a1['id']})[_0x419aca('0xe59')][_0x419aca('0xe19')](function(){var _0x200a9c=_0x419aca;_0x32d445()[_0x200a9c('0xa8b')](_0x465ec3[_0x200a9c('0x1b65')]['rows'],{'id':_0x28a3a1['id']}),_0x465ec3['reports'][_0x200a9c('0x148b')]-=0x1,!_0x465ec3['reports'][_0x200a9c('0x16a7')][_0x200a9c('0x25ae')]&&_0x465ec3[_0x200a9c('0x1c55')](),_0x5406b5[_0x200a9c('0x425')]({'title':_0x200a9c('0x1111'),'msg':_0x28a3a1[_0x200a9c('0x2623')]?_0x28a3a1['name']+_0x200a9c('0x2182'):''});})[_0x419aca('0x223b')](function(_0x339c33){var _0x35c37c=_0x419aca;if(_0x339c33[_0x35c37c('0x11d0')]&&_0x339c33[_0x35c37c('0x11d0')]['errors']&&_0x339c33[_0x35c37c('0x11d0')]['errors']['length']){_0x465ec3[_0x35c37c('0xcd2')]=_0x339c33[_0x35c37c('0x11d0')]['errors']||[{'message':_0x339c33[_0x35c37c('0x94f')](),'type':'api.analyticreport.delete'}];for(var _0xfc3df2=0x0;_0xfc3df2<_0x339c33['data'][_0x35c37c('0xcd2')][_0x35c37c('0x25ae')];_0xfc3df2++){_0x5406b5[_0x35c37c('0x8c8')]({'title':_0x339c33[_0x35c37c('0x11d0')][_0x35c37c('0xcd2')][_0xfc3df2]['type'],'msg':_0x339c33[_0x35c37c('0x11d0')][_0x35c37c('0xcd2')][_0xfc3df2][_0x35c37c('0x27e8')]});}}else _0x5406b5[_0x35c37c('0x8c8')]({'title':_0x339c33['status']?_0x35c37c('0x27f2')+_0x339c33[_0x35c37c('0x2833')]+'\x20-\x20'+_0x339c33[_0x35c37c('0x1fd7')]:_0x35c37c('0xcd8'),'msg':_0x339c33[_0x35c37c('0x11d0')]?JSON[_0x35c37c('0x3ad')](_0x339c33[_0x35c37c('0x11d0')]['message']):_0x339c33[_0x35c37c('0x27e8')]||_0x339c33[_0x35c37c('0x94f')]()});});}function _0x18321a(){var _0x197a81=_0x420309,_0x2e48a8=angular[_0x197a81('0x89')](_0x465ec3[_0x197a81('0x261e')]);return _0x465ec3['selectedReports']=[],_0x2e48a8;}function _0x328248(_0x4c92b8){var _0x2c0c64=_0x420309,_0x44e7a0=_0x28eb8c['confirm']()[_0x2c0c64('0x13e4')](_0x2c0c64('0x1346'))[_0x2c0c64('0x221c')](_0x2c0c64('0xab2')+_0x465ec3[_0x2c0c64('0x261e')][_0x2c0c64('0x25ae')]+_0x2c0c64('0x5bc')+_0x2c0c64('0x21bd'))[_0x2c0c64('0x4d1')](_0x2c0c64('0x24bc'))[_0x2c0c64('0x1345')](_0x4c92b8)['ok']('OK')[_0x2c0c64('0x2c1')](_0x2c0c64('0x17'));_0x28eb8c[_0x2c0c64('0x26b2')](_0x44e7a0)['then'](function(){var _0x187d4f=_0x2c0c64;_0x465ec3['selectedReports'][_0x187d4f('0x1d7e')](function(_0x2ee2c0){_0x511276(_0x2ee2c0);}),_0x465ec3[_0x187d4f('0x261e')]=[];});}function _0x1d9d91(){var _0x25cbaf=_0x420309;_0x465ec3[_0x25cbaf('0x261e')]=[];}function _0x3cd3c6(){var _0x13d9b9=_0x420309;_0x465ec3[_0x13d9b9('0x261e')]=_0x465ec3[_0x13d9b9('0x1b65')]['rows'];}function _0x542141(_0x387465,_0x119ab2){var _0x315f13=_0x420309;_0x465ec3[_0x315f13('0x2686')][_0x315f13('0xfe')](!![])['deselect_all'](),_0x465ec3[_0x315f13('0x2686')][_0x315f13('0xfe')](!![])[_0x315f13('0x1577')](),_0x465ec3[_0x315f13('0x1367')]=_0x119ab2['node'],_0x465ec3[_0x315f13('0x1367')]['custom']=!![],_0x465ec3['currentPath']=_0x465ec3[_0x315f13('0x14b1')][_0x315f13('0xfe')](!![])['get_path'](_0x465ec3[_0x315f13('0x1367')])[_0x315f13('0x1537')]('/\x20'),_0x465ec3[_0x315f13('0x16a')]=_0x315f13('0x247b'),_0x465ec3[_0x315f13('0xa16')][_0x315f13('0x4ec')]=_0x119ab2[_0x315f13('0x1a8f')]['id'],_0x38db7f();}function _0x25fca8(_0x2c6aeb,_0x3ede5d){var _0x3d3c49=_0x420309;_0x465ec3[_0x3d3c49('0x14b1')][_0x3d3c49('0xfe')](!![])[_0x3d3c49('0x1633')](),_0x465ec3[_0x3d3c49('0x14b1')][_0x3d3c49('0xfe')](!![])['close_all'](),_0x465ec3[_0x3d3c49('0x1367')]=_0x3ede5d['node'],_0x465ec3['currentNode']['custom']=![],_0x465ec3[_0x3d3c49('0xc2c')]=_0x465ec3[_0x3d3c49('0x2686')]['jstree'](!![])[_0x3d3c49('0xa09')](_0x465ec3[_0x3d3c49('0x1367')])[_0x3d3c49('0x1537')]('/\x20'),_0x465ec3[_0x3d3c49('0x16a')]='analyticDefaultReport',_0x465ec3[_0x3d3c49('0xa16')][_0x3d3c49('0x4ec')]=_0x3ede5d[_0x3d3c49('0x1a8f')]['id'],_0x38db7f();}function _0xb5ef9b(_0x4e2f3f,_0x74c75b){var _0x26dca8=_0x420309,_0x59c04d=angular[_0x26dca8('0x1a33')](_0x465ec3[_0x26dca8('0x14b1')][_0x26dca8('0xfe')](!![])['get_json']('#'));_0x40398a[_0x26dca8('0x188a')]['update']({'id':0x2,'tree':_0x59c04d})[_0x26dca8('0xe59')][_0x26dca8('0xe19')](function(){var _0xe89875=_0x26dca8;_0x558714['rows'][0x1]&&(_0x558714[_0xe89875('0x16a7')][0x1]['tree']=_0x59c04d),_0x5406b5[_0xe89875('0x425')]({'title':_0xe89875('0x1137'),'msg':_0x74c75b[_0xe89875('0x1a8f')][_0xe89875('0x1bc6')]?_0x74c75b[_0xe89875('0x1a8f')][_0xe89875('0x1bc6')]+_0xe89875('0x283b'):_0xe89875('0x1d69')});})[_0x26dca8('0x223b')](function(_0x3bb01f){var _0x1e11f=_0x26dca8;_0x5406b5[_0x1e11f('0x8c8')]({'title':_0x3bb01f[_0x1e11f('0x2833')]?_0x1e11f('0x27f2')+_0x3bb01f[_0x1e11f('0x2833')]+'\x20-\x20'+_0x3bb01f[_0x1e11f('0x1fd7')]:_0x1e11f('0xdef'),'msg':_0x3bb01f[_0x1e11f('0x11d0')]?JSON['stringify'](_0x3bb01f[_0x1e11f('0x11d0')]):_0x3bb01f[_0x1e11f('0x94f')]()});});}function _0x523fab(_0x52a2bd){var _0x46c1d8=_0x420309;return{'core':{'multiple':![],'animation':!![],'error':function _0x3e6e4a(_0x4843b6){var _0x1edf56=a0_0x5325;console[_0x1edf56('0x8c8')](_0x1edf56('0x1f9e')+angular[_0x1edf56('0x1a33')](_0x4843b6));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x52a2bd?[_0x46c1d8('0xd26'),'dnd',_0x46c1d8('0x1cc8'),_0x46c1d8('0x1d72'),'wholerow']:[_0x46c1d8('0x1cc8'),_0x46c1d8('0x1d72'),'wholerow'],'contextmenu':{'items':function _0x995f06(_0x40529c){var _0x3e984e=_0x46c1d8,_0x5c571d={};return _0x465ec3[_0x3e984e('0xb3d')][_0x3e984e('0x12bc')]&&_0x32d445()[_0x3e984e('0x5c5')](_0x5c571d,{'create':{'label':_0x22b036['instant'](_0x3e984e('0xc65')),'action':function _0x54e444(){var _0x316cb1=_0x3e984e;_0x40529c=_0x465ec3[_0x316cb1('0x14b1')][_0x316cb1('0xfe')](!![])[_0x316cb1('0x14c8')](_0x40529c),_0x465ec3['treeCustomInstance']['jstree'](!![])[_0x316cb1('0x1c94')](_0x40529c);}},'rename':{'_disabled':_0x40529c[_0x3e984e('0x4ec')]==='#','label':_0x22b036['instant'](_0x3e984e('0x1a20')),'action':function _0x53c5de(){var _0x196123=_0x3e984e;_0x465ec3['treeCustomInstance'][_0x196123('0xfe')](!![])[_0x196123('0x1c94')](_0x40529c);}}}),_0x465ec3[_0x3e984e('0xb3d')][_0x3e984e('0x160f')]&&_0x32d445()[_0x3e984e('0x5c5')](_0x5c571d,{'remove':{'_disabled':_0x40529c[_0x3e984e('0x4ec')]==='#','label':_0x22b036[_0x3e984e('0x2159')](_0x3e984e('0xa44')),'action':function _0x18e773(){var _0x4f54f9=_0x3e984e,_0x45f5d9=_0x28eb8c['confirm']()[_0x4f54f9('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20node?')[_0x4f54f9('0x221c')](_0x4f54f9('0xab2')+(_0x40529c[_0x4f54f9('0x1bc6')]?_0x40529c[_0x4f54f9('0x1bc6')]:_0x4f54f9('0x1155'))+''+_0x4f54f9('0x5ad'))[_0x4f54f9('0x4d1')](_0x4f54f9('0x16d7'))['ok']('OK')[_0x4f54f9('0x2c1')](_0x4f54f9('0x17'));_0x28eb8c[_0x4f54f9('0x26b2')](_0x45f5d9)['then'](function(){var _0x302b7d=_0x4f54f9,_0x536522=_0x465ec3['treeCustomInstance']['jstree'](!![])['get_parent'](_0x40529c);_0x536522=_0x465ec3[_0x302b7d('0x14b1')][_0x302b7d('0xfe')](!![])[_0x302b7d('0x278')](_0x536522),_0x465ec3[_0x302b7d('0x14b1')][_0x302b7d('0xfe')](!![])[_0x302b7d('0x18d')](_0x40529c),_0x55eeda([_0x40529c['id']][_0x302b7d('0x1007')](_0x40529c[_0x302b7d('0xde8')]||[])),_0x465ec3[_0x302b7d('0x14b1')][_0x302b7d('0xfe')](!![])[_0x302b7d('0x268')](_0x536522);});}}}),_0x5c571d;}}};}function _0x55eeda(_0x1c899b){var _0x2dd5a5=_0x420309;return _0x40398a['analyticCustomReport'][_0x2dd5a5('0x22d5')]({'parent':_0x1c899b[_0x2dd5a5('0x1537')](','),'fields':_0x2dd5a5('0x104')})['$promise']['then'](function(_0x1ef120){var _0x1e4263=_0x2dd5a5;_0x1ef120&&_0x1ef120[_0x1e4263('0x16a7')]&&_0x1ef120[_0x1e4263('0x16a7')][_0x1e4263('0x1d7e')](function(_0x1a5c43){_0x511276(_0x1a5c43);});})[_0x2dd5a5('0x223b')](function(_0x205ee9){var _0x380b36=_0x2dd5a5;_0x5406b5[_0x380b36('0x8c8')]({'title':_0x205ee9['status']?_0x380b36('0x27f2')+_0x205ee9[_0x380b36('0x2833')]+_0x380b36('0x1b7c')+_0x205ee9['statusText']:_0x380b36('0x7d3'),'msg':_0x205ee9[_0x380b36('0x11d0')]?JSON['stringify'](_0x205ee9[_0x380b36('0x11d0')]):_0x205ee9[_0x380b36('0x94f')]()});});}function _0x1d0a26(_0x52bea4){return _0x52bea4?{'create_node':_0xb5ef9b,'rename_node':_0xb5ef9b,'move_node':_0xb5ef9b,'delete_node':_0xb5ef9b,'select_node':_0x542141}:{'select_node':_0x25fca8};}}const _0x1ac417=_0x2e67f6,_0x48c2e4=_0x59426a['p']+_0xb635d2('0x54');_0x593c81[_0xb635d2('0xb0c')]=[_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0xf65'),_0xb635d2('0x372'),_0xb635d2('0xffc'),_0xb635d2('0x16a'),_0xb635d2('0x1728'),_0xb635d2('0xc2c')];function _0x593c81(_0x5500a7,_0x4bc64c,_0xde918b,_0x452f5b,_0x16c87b,_0x5e57f4,_0xa332a8,_0x5f5dec){var _0x6043b5=_0xb635d2,_0xa8a223=this;_0xa8a223[_0x6043b5('0xcd2')]=[],_0xa8a223[_0x6043b5('0x372')]=angular[_0x6043b5('0x89')](_0x452f5b),_0xa8a223[_0x6043b5('0x1796')]={},_0xa8a223['runReport']=_0x1a2d18,_0xa8a223[_0x6043b5('0x2584')]=_0x19a13f,_0xa8a223[_0x6043b5('0x1354')]=_0x6d0a60,_0x6d0a60();function _0x6d0a60(){var _0x516931=_0x6043b5;_0xa8a223['export']={'id':_0xa8a223[_0x516931('0x372')]['id'],'name':_0xa8a223[_0x516931('0x372')][_0x516931('0x2623')],'startDate':new Date(_0x4ddcaa()()['startOf']('day')),'endDate':new Date(_0x4ddcaa()()[_0x516931('0x270')](_0x516931('0x2103'))),'output':_0x516931('0xdf7'),'fullPath':_0x5f5dec?_0x5f5dec+'/'+_0xa8a223[_0x516931('0x372')]['name']:_0xa8a223[_0x516931('0x372')]['name']};}function _0x1a2d18(_0x3508d4){var _0x5355a4=_0x6043b5;_0xa8a223[_0x5355a4('0xcd2')]=[],_0xa8a223[_0x5355a4('0x1848')]=_0x32d445()[_0x5355a4('0x5c5')]({},_0xa8a223[_0x5355a4('0x1796')],{'startDate':_0x4ddcaa()(_0xa8a223[_0x5355a4('0x1796')]['startDate'])[_0x5355a4('0x5e5')](_0x5355a4('0x1f90')),'endDate':_0x4ddcaa()(_0xa8a223[_0x5355a4('0x1796')]['endDate'])[_0x5355a4('0x5e5')](_0x5355a4('0x1f90'))}),_0x16c87b[_0x5e57f4][_0x5355a4('0x1813')](_0xa8a223[_0x5355a4('0x1848')])['$promise']['then'](function(_0x44471e){var _0x4e3193=_0x5355a4;_0xa8a223['export']['output']===_0x4e3193('0x334')?_0x4bc64c[_0x4e3193('0x26b2')]({'controller':_0x4e3193('0x24ad'),'controllerAs':'vm','templateUrl':_0x48c2e4,'parent':angular[_0x4e3193('0x24a1')](_0xa332a8[_0x4e3193('0x19b2')]),'targetEvent':_0x3508d4,'skipHide':!![],'locals':{'apiName':_0x5e57f4,'exportDate':_0xa8a223['exportDate'],'results':_0x44471e},'resolve':{'columns':['apiResolver',function _0x3b51fe(_0x4277f0){var _0x347f1e=_0x4e3193,_0x34d8eb={'fields':_0x347f1e('0xb80'),'nolimit':!![]};return _0x34d8eb[_0x5e57f4===_0x347f1e('0x247b')?'CustomReportId':_0x347f1e('0x94')]=_0xa8a223['report']['id'],_0x4277f0[_0x347f1e('0xcd6')]('analyticFieldReport@get',_0x34d8eb);}]}}):(_0xde918b['success']({'title':_0x4e3193('0xd19'),'msg':_0xa8a223[_0x4e3193('0x372')][_0x4e3193('0x2623')]?_0xa8a223[_0x4e3193('0x372')][_0x4e3193('0x2623')]+_0x4e3193('0x378'):''}),_0x19a13f());})['catch'](function(_0x14565f){var _0x43fb6e=_0x5355a4;_0xde918b[_0x43fb6e('0x8c8')]({'title':_0x14565f['status']?'API:'+_0x14565f[_0x43fb6e('0x2833')]+_0x43fb6e('0x1b7c')+_0x14565f[_0x43fb6e('0x1fd7')]:_0x43fb6e('0xf3e'),'msg':_0x14565f[_0x43fb6e('0x11d0')]?JSON[_0x43fb6e('0x3ad')](_0x14565f[_0x43fb6e('0x11d0')][_0x43fb6e('0x27e8')]):_0x14565f[_0x43fb6e('0x94f')]()});});}function _0x19a13f(){var _0x577b4a=_0x6043b5;_0x4bc64c[_0x577b4a('0x11ed')]();}}const _0x1a5a73=_0x593c81;_0x1a8b42['$inject']=['$mdDialog','toasty','api',_0xb635d2('0x192a'),_0xb635d2('0x2545'),'apiName','exportDate'];function _0x1a8b42(_0x387fff,_0x182678,_0x5bc680,_0x6f5e56,_0xa0ea78,_0x41b3e0,_0x464902){var _0x496767=_0xb635d2,_0x34309f=this;_0x34309f['errors']=[],_0x34309f[_0x496767('0x192a')]=_0x6f5e56?_0x6f5e56[_0x496767('0x16a7')]:[],_0x34309f[_0x496767('0x2545')]=_0xa0ea78||{'rows':[],'count':0x0},_0x34309f[_0x496767('0xa16')]={'limit':0xa,'page':0x1},_0x34309f[_0x496767('0x2584')]=_0x522164,_0x34309f[_0x496767('0x21d3')]=_0x3280ce,_0x34309f[_0x496767('0x2863')]=_0x2e135a;function _0x3280ce(){var _0x2b398c=_0x496767;_0x464902[_0x2b398c('0xab0')]=(_0x34309f[_0x2b398c('0xa16')][_0x2b398c('0xc08')]-0x1)*_0x34309f[_0x2b398c('0xa16')][_0x2b398c('0x1b6d')],_0x464902[_0x2b398c('0x1b6d')]=_0x34309f[_0x2b398c('0xa16')][_0x2b398c('0x1b6d')],_0x34309f[_0x2b398c('0x9c8')]=_0x5bc680[_0x41b3e0]['run'](_0x464902,_0x365d7c)[_0x2b398c('0xe59')];}function _0x2e135a(_0x530ee2,_0x1546f3){var _0xcfb335=_0x496767;return _0x4ddcaa()(_0x1546f3,_0xcfb335('0x266c'),!![])[_0xcfb335('0x1768')]()&&(_0x1546f3=_0x4ddcaa()(_0x1546f3,'')[_0xcfb335('0x5e5')](_0xcfb335('0x1f90'))),_0x1546f3;}function _0x365d7c(_0x3c2311){var _0x28a83f=_0x496767;_0x34309f[_0x28a83f('0x2545')]=_0x3c2311||{'count':0x0,'rows':[]};}function _0x522164(){_0x387fff['hide']();}}const _0x16644c=_0x1a8b42;_0x5e13ea[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x5e13ea(_0x3824a9){var _0x53e986=_0xb635d2;_0x3824a9[_0x53e986('0x1d72')](_0x53e986('0x898'),{'url':_0x53e986('0x24b9'),'views':{'content@app':{'templateUrl':_0x1efd7a,'controller':_0x53e986('0x9ac')}},'resolve':{'treeReports':['apiResolver',function _0x5d7ac9(_0x54fdba){var _0x59dd8e=_0x53e986;return _0x54fdba[_0x59dd8e('0xcd6')](_0x59dd8e('0x17ba'),{'fields':_0x59dd8e('0x1ea4'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x53e986('0x292'),_0x53e986('0x2730'),function _0x2b08f2(_0x4c7fcc,_0x4b7641){var _0x3f9501=_0x53e986;return _0x4c7fcc[_0x3f9501('0xcd6')](_0x3f9501('0x455'),{'fields':'id,name,crudPermissions','id':_0x4b7641[_0x3f9501('0x1ef8')]()[_0x3f9501('0x1d04')]});}],'userProfileSection':['apiResolver',_0x53e986('0x2730'),function _0x597752(_0x198d08,_0x30869f){var _0x5f3a80=_0x53e986;return _0x198d08[_0x5f3a80('0xcd6')](_0x5f3a80('0x264e'),{'fields':_0x5f3a80('0x12d6'),'userProfileId':_0x30869f[_0x5f3a80('0x1ef8')]()['userProfileId'],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x53e986('0xd12')})[_0x53e986('0x1d72')](_0x53e986('0x118c'),{'url':_0x53e986('0xb1d'),'views':{'content@app':{'templateUrl':_0x32a355,'controller':_0x53e986('0xf1a')}},'resolve':{'report':[_0x53e986('0x292'),_0x53e986('0x34'),'$q',_0x53e986('0x2639'),function _0x422994(_0x5b2abb,_0x2faac7,_0x3e6218,_0xc1d324){var _0x351009=_0x53e986,_0x36ccd8;return _0x5b2abb[_0x351009('0xcd6')](_0x351009('0x1344'),{'fields':'createdAt,updatedAt,id,name,description,table,conditions,joins','id':_0x2faac7['id']})[_0x351009('0xe19')](function(_0x257489){var _0x36b0e7=_0x351009,_0x1ad707=[];_0x36ccd8=_0x257489;if(_0x36ccd8['joins'])try{_0x36ccd8[_0x36b0e7('0x105b')]=JSON['parse'](_0x36ccd8[_0x36b0e7('0x105b')]);for(var _0x517270=0x0;_0x517270<_0x36ccd8['joins']['length'];_0x517270+=0x1){_0x1ad707[_0x36b0e7('0xb76')](_0xc1d324[_0x36b0e7('0x1140')](_0x36ccd8[_0x36b0e7('0x105b')][_0x517270][_0x36b0e7('0x2746')]));}}catch(_0x3f5926){console[_0x36b0e7('0x1fe9')](_0x3f5926);}return _0x3e6218['all'](_0x1ad707);})['then'](function(_0x13ddf1){var _0x38e37f=_0x351009;for(var _0x142f90=0x0;_0x142f90<_0x13ddf1[_0x38e37f('0x25ae')];_0x142f90+=0x1){_0x36ccd8[_0x38e37f('0x105b')][_0x142f90]['foreignTableFields']=_0x32d445()[_0x38e37f('0x11d3')](_0x32d445()[_0x38e37f('0x1234')](_0x13ddf1[_0x142f90]),['$promise',_0x38e37f('0x113c')]);}return _0x36ccd8;});}],'userProfileSection':[_0x53e986('0x292'),_0x53e986('0x2730'),function _0x165970(_0x244030,_0x63f4ef){var _0xf8e58=_0x53e986;return _0x244030[_0xf8e58('0xcd6')](_0xf8e58('0x264e'),{'fields':_0xf8e58('0x12d6'),'userProfileId':_0x63f4ef[_0xf8e58('0x1ef8')]()[_0xf8e58('0x1d04')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x53e986('0xd12')});}angular[_0xb635d2('0x153f')](_0xb635d2('0x898'),['ngJsTree'])[_0xb635d2('0x1990')](_0x5e13ea)[_0xb635d2('0x1a79')](_0xb635d2('0x9b3'),_0x2a0ce3)[_0xb635d2('0x1a79')]('CreateOrEditReportDialogController',_0x523706)['controller']('ReportConditionsController',_0x51cd59)[_0xb635d2('0x1324')](_0xb635d2('0x2639'),_0x3e55cb)[_0xb635d2('0x1a79')](_0xb635d2('0xce3'),_0x400596)['controller'](_0xb635d2('0x19cd'),_0x5e4932)[_0xb635d2('0x1324')](_0xb635d2('0x605'),_0x58ec09)[_0xb635d2('0x1a79')](_0xb635d2('0x976'),_0x13c6e2)[_0xb635d2('0x1a79')]('PreviewReportDialogController',_0x2d9ae0)[_0xb635d2('0x1a79')]('ReportsController',_0x1ac417)[_0xb635d2('0x1a79')](_0xb635d2('0x25cb'),_0x1a5a73)[_0xb635d2('0x1a79')](_0xb635d2('0x24ad'),_0x16644c),_0x52b6b9['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x27'),_0xb635d2('0x27ba'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x52b6b9(_0x327cf1,_0x411f2a,_0x19e581,_0x204750,_0x773a4d,_0x519182,_0x3db2b6,_0x5031ff,_0xd73116,_0x47d859,_0x51cc3a,_0x41d1a9,_0x3c2afa,_0x5ee809){var _0x3ffaf3=_0xb635d2,_0x4c0cc3=this;_0x4c0cc3['currentUser']=_0x51cc3a[_0x3ffaf3('0x1ef8')](),_0x4c0cc3[_0x3ffaf3('0xcd2')]=[],_0x4c0cc3[_0x3ffaf3('0x22f1')]=_0x3c2afa,_0x4c0cc3[_0x3ffaf3('0x5c1')]=_0x41d1a9,_0x4c0cc3[_0x3ffaf3('0xb3d')]=_0x5ee809,_0x4c0cc3[_0x3ffaf3('0x1ccb')]={},_0x4c0cc3[_0x3ffaf3('0x25ac')]=_0x4c0cc3[_0x3ffaf3('0x22f1')]&&_0x4c0cc3[_0x3ffaf3('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c0cc3['title']=_0x3ffaf3('0x1731'),_0x4c0cc3[_0x3ffaf3('0x27ba')]=angular[_0x3ffaf3('0x89')](_0xd73116),_0x4c0cc3[_0x3ffaf3('0x27')]=_0x5031ff,_0x4c0cc3['newExtractedReport']=![];!_0x4c0cc3['extractedReport']&&(_0x4c0cc3[_0x3ffaf3('0x27ba')]={},_0x4c0cc3[_0x3ffaf3('0x13e4')]='ANALYTICS.NEW_EXTRACTEDREPORT',_0x4c0cc3[_0x3ffaf3('0x256a')]=!![]);_0x4c0cc3[_0x3ffaf3('0x90d')]=_0x569814,_0x4c0cc3['saveExtractedReport']=_0x1b3d70,_0x4c0cc3[_0x3ffaf3('0x219e')]=_0x257a77,_0x4c0cc3[_0x3ffaf3('0x2635')]=_0x49a7d1,_0x4c0cc3[_0x3ffaf3('0x2584')]=_0x45bf7f;function _0x569814(){var _0x4f5b42=_0x3ffaf3;_0x4c0cc3['errors']=[],_0x47d859[_0x4f5b42('0x25c3')][_0x4f5b42('0xe5e')](_0x4c0cc3[_0x4f5b42('0x27ba')])[_0x4f5b42('0xe59')][_0x4f5b42('0xe19')](function(_0x5bd6e7){var _0x48d156=_0x4f5b42;_0x4c0cc3[_0x48d156('0x27')][_0x48d156('0x14c9')](_0x5bd6e7[_0x48d156('0x250e')]()),_0x3db2b6[_0x48d156('0x425')]({'title':_0x48d156('0xd5a'),'msg':_0x4c0cc3['extractedReport'][_0x48d156('0x2623')]?_0x4c0cc3[_0x48d156('0x27ba')]['name']+'\x20has\x20been\x20created!':''}),_0x45bf7f(_0x5bd6e7);})[_0x4f5b42('0x223b')](function(_0x203c27){var _0x4fb42d=_0x4f5b42;if(_0x203c27[_0x4fb42d('0x11d0')]&&_0x203c27[_0x4fb42d('0x11d0')][_0x4fb42d('0xcd2')]&&_0x203c27[_0x4fb42d('0x11d0')][_0x4fb42d('0xcd2')][_0x4fb42d('0x25ae')]){_0x4c0cc3[_0x4fb42d('0xcd2')]=_0x203c27[_0x4fb42d('0x11d0')][_0x4fb42d('0xcd2')]||[{'message':_0x203c27['toString'](),'type':_0x4fb42d('0x98e')}];for(var _0x2c7677=0x0;_0x2c7677<_0x203c27[_0x4fb42d('0x11d0')][_0x4fb42d('0xcd2')][_0x4fb42d('0x25ae')];_0x2c7677+=0x1){_0x3db2b6[_0x4fb42d('0x8c8')]({'title':_0x203c27[_0x4fb42d('0x11d0')][_0x4fb42d('0xcd2')][_0x2c7677][_0x4fb42d('0x62e')],'msg':_0x203c27[_0x4fb42d('0x11d0')][_0x4fb42d('0xcd2')][_0x2c7677][_0x4fb42d('0x27e8')]});}}else _0x3db2b6[_0x4fb42d('0x8c8')]({'title':_0x203c27[_0x4fb42d('0x2833')]?_0x4fb42d('0x27f2')+_0x203c27[_0x4fb42d('0x2833')]+_0x4fb42d('0x1b7c')+_0x203c27[_0x4fb42d('0x1fd7')]:_0x4fb42d('0x98e'),'msg':_0x203c27[_0x4fb42d('0x11d0')]?JSON[_0x4fb42d('0x3ad')](_0x203c27[_0x4fb42d('0x11d0')][_0x4fb42d('0x27e8')]):_0x203c27['toString']()});});}function _0x1b3d70(){var _0x198a1d=_0x3ffaf3;_0x4c0cc3['errors']=[],_0x47d859[_0x198a1d('0x25c3')][_0x198a1d('0xa70')]({'id':_0x4c0cc3[_0x198a1d('0x27ba')]['id']},_0x4c0cc3['extractedReport'])['$promise'][_0x198a1d('0xe19')](function(_0x158855){var _0x375980=_0x198a1d,_0x1bffbe=_0x32d445()['find'](_0x4c0cc3[_0x375980('0x27')],{'id':_0x158855['id']});_0x1bffbe&&_0x32d445()['merge'](_0x1bffbe,_0x32d445()[_0x375980('0xed5')](_0x158855[_0x375980('0x250e')](),_0x32d445()[_0x375980('0x1234')](_0x1bffbe))),_0x3db2b6['success']({'title':_0x375980('0x2872'),'msg':_0x4c0cc3[_0x375980('0x27ba')][_0x375980('0x2623')]?_0x4c0cc3[_0x375980('0x27ba')]['name']+_0x375980('0x1c19'):''}),_0x45bf7f(_0x158855);})[_0x198a1d('0x223b')](function(_0x1d984d){var _0x561a9d=_0x198a1d;if(_0x1d984d[_0x561a9d('0x11d0')]&&_0x1d984d[_0x561a9d('0x11d0')]['errors']&&_0x1d984d['data']['errors']['length']){_0x4c0cc3[_0x561a9d('0xcd2')]=_0x1d984d[_0x561a9d('0x11d0')][_0x561a9d('0xcd2')]||[{'message':_0x1d984d[_0x561a9d('0x94f')](),'type':'api.analyticExtractedReport.update'}];for(var _0x2a50d8=0x0;_0x2a50d8<_0x1d984d['data']['errors'][_0x561a9d('0x25ae')];_0x2a50d8++){_0x3db2b6[_0x561a9d('0x8c8')]({'title':_0x1d984d[_0x561a9d('0x11d0')][_0x561a9d('0xcd2')][_0x2a50d8][_0x561a9d('0x62e')],'msg':_0x1d984d[_0x561a9d('0x11d0')][_0x561a9d('0xcd2')][_0x2a50d8][_0x561a9d('0x27e8')]});}}else _0x3db2b6[_0x561a9d('0x8c8')]({'title':_0x1d984d[_0x561a9d('0x2833')]?_0x561a9d('0x27f2')+_0x1d984d[_0x561a9d('0x2833')]+_0x561a9d('0x1b7c')+_0x1d984d[_0x561a9d('0x1fd7')]:_0x561a9d('0x1ce1'),'msg':_0x1d984d[_0x561a9d('0x11d0')]?JSON[_0x561a9d('0x3ad')](_0x1d984d[_0x561a9d('0x11d0')][_0x561a9d('0x27e8')]):_0x1d984d[_0x561a9d('0x94f')]()});});}function _0x257a77(_0xa2f5e0){var _0x38577a=_0x3ffaf3;_0x4c0cc3[_0x38577a('0xcd2')]=[];var _0x306807=_0x204750[_0x38577a('0xa5')]()[_0x38577a('0x13e4')]('Are\x20you\x20sure?')[_0x38577a('0xd0')]('The\x20extractedReport\x20will\x20be\x20deleted.')[_0x38577a('0x4d1')](_0x38577a('0xd54'))['ok'](_0x38577a('0x2198'))[_0x38577a('0x2c1')](_0x38577a('0x8a3'))['targetEvent'](_0xa2f5e0);_0x204750[_0x38577a('0x26b2')](_0x306807)[_0x38577a('0xe19')](function(){var _0x179722=_0x38577a;_0x47d859[_0x179722('0x25c3')][_0x179722('0x229e')]({'id':_0x4c0cc3[_0x179722('0x27ba')]['id']})[_0x179722('0xe59')]['then'](function(){var _0x377605=_0x179722;_0x32d445()[_0x377605('0xa8b')](_0x4c0cc3[_0x377605('0x27')],{'id':_0x4c0cc3[_0x377605('0x27ba')]['id']}),_0x3db2b6[_0x377605('0x425')]({'title':_0x377605('0x27c7'),'msg':(_0x4c0cc3[_0x377605('0x27ba')][_0x377605('0x2623')]||_0x377605('0x27ba'))+_0x377605('0x2182')}),_0x45bf7f(_0x4c0cc3[_0x377605('0x27ba')]);})[_0x179722('0x223b')](function(_0x1325b8){var _0x21ff24=_0x179722;if(_0x1325b8[_0x21ff24('0x11d0')]&&_0x1325b8[_0x21ff24('0x11d0')]['errors']&&_0x1325b8['data'][_0x21ff24('0xcd2')][_0x21ff24('0x25ae')]){_0x4c0cc3[_0x21ff24('0xcd2')]=_0x1325b8[_0x21ff24('0x11d0')][_0x21ff24('0xcd2')]||[{'message':_0x1325b8[_0x21ff24('0x94f')](),'type':'api.analyticExtractedReport.delete'}];for(var _0x3d3e87=0x0;_0x3d3e87<_0x1325b8[_0x21ff24('0x11d0')][_0x21ff24('0xcd2')][_0x21ff24('0x25ae')];_0x3d3e87++){_0x3db2b6[_0x21ff24('0x8c8')]({'title':_0x1325b8['data']['errors'][_0x3d3e87][_0x21ff24('0x62e')],'msg':_0x1325b8['data'][_0x21ff24('0xcd2')][_0x3d3e87][_0x21ff24('0x27e8')]});}}else _0x3db2b6[_0x21ff24('0x8c8')]({'title':_0x1325b8[_0x21ff24('0x2833')]?'API:'+_0x1325b8[_0x21ff24('0x2833')]+_0x21ff24('0x1b7c')+_0x1325b8[_0x21ff24('0x1fd7')]:_0x21ff24('0x661'),'msg':_0x1325b8[_0x21ff24('0x11d0')]?JSON['stringify'](_0x1325b8[_0x21ff24('0x11d0')][_0x21ff24('0x27e8')]):_0x1325b8[_0x21ff24('0x27e8')]||_0x1325b8['toString']()});});},function(){});}function _0x49a7d1(_0x4558c6){return _0x4558c6===null?undefined:new Date(_0x4558c6);}function _0x45bf7f(_0x39160f){var _0x4f3f43=_0x3ffaf3;_0x204750[_0x4f3f43('0x11ed')](_0x39160f);}}const _0x298f00=_0x52b6b9,_0x3594fc=_0x59426a['p']+'src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog-[chunkhash].html';_0x524795[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0x27'),'userProfile','userProfileSection','api',_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x524795(_0x4706ad,_0x17c4d8,_0x16a5ac,_0x2d7142,_0x16cbfe,_0x38cdc5,_0x4c1deb,_0x28c356,_0x46a151,_0x2a39be,_0x4f9c18,_0x417331,_0xc01ab6,_0x392b73,_0x34d20d,_0x425e0a,_0x5d707d){var _0x5297d7=_0xb635d2,_0x757604=this;_0x757604['license']=_0x425e0a,_0x757604['setting']=_0x5d707d,_0x757604[_0x5297d7('0x15a5')]=_0x34d20d[_0x5297d7('0x1ef8')](),_0x757604['extractedReports']=_0x46a151||{'count':0x0,'rows':[]},_0x757604[_0x5297d7('0x154f')]=_0x2a39be,_0x757604[_0x5297d7('0xb59')]=_0x4f9c18&&_0x4f9c18['count']==0x1?_0x4f9c18[_0x5297d7('0x16a7')][0x0]:null,_0x757604[_0x5297d7('0xb3d')]=_0x34d20d[_0x5297d7('0xd31')](_0x757604[_0x5297d7('0xb59')]?_0x757604[_0x5297d7('0xb59')][_0x5297d7('0xb3d')]:null),_0x757604[_0x5297d7('0x19b6')]='extractedReports',_0x757604[_0x5297d7('0x14d6')]='',_0x757604[_0x5297d7('0x190c')]=null,_0x757604['selectedExtractedReports']=[],_0x757604[_0x5297d7('0xa16')]={'fields':'createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','sort':_0x5297d7('0x7e8'),'limit':0xa,'page':0x1},_0x757604['editdialog']=_0x1631c2,_0x757604[_0x5297d7('0x42d')]=_0x59cff1,_0x757604[_0x5297d7('0x1d9e')]=_0x111b87,_0x757604[_0x5297d7('0x425')]=_0x3ae8ea,_0x757604[_0x5297d7('0x21af')]=_0x22f1db,_0x757604['createOrEditExtractedReport']=_0x3e4635,_0x757604[_0x5297d7('0x219e')]=_0x4540bd,_0x757604[_0x5297d7('0x132')]=_0x14ad7f,_0x757604[_0x5297d7('0x8d9')]=_0x324698,_0x757604[_0x5297d7('0x148c')]=_0x292ede,_0x757604[_0x5297d7('0x5e7')]=_0x443d76;function _0x1631c2(_0x2751a4,_0x456ee0){var _0x5cc9ee=_0x5297d7;_0x16cbfe[_0x5cc9ee('0x26b2')]({'controller':'CreateOrEditExtractedReportDialogController','controllerAs':'vm','templateUrl':_0x3594fc,'parent':angular[_0x5cc9ee('0x24a1')](_0x38cdc5[_0x5cc9ee('0x19b2')]),'targetEvent':_0x456ee0,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x2751a4,'extractedReports':_0x757604['extractedReports'][_0x5cc9ee('0x16a7')],'license':_0x757604['license'],'setting':null,'crudPermissions':_0x757604['crudPermissions']}});}function _0x59cff1(_0x2a8482){var _0x1dc7ba=_0x5297d7;return _0x417331['analyticExtractedReport'][_0x1dc7ba('0x1d1e')]({'id':_0x2a8482['id']})[_0x1dc7ba('0xe59')][_0x1dc7ba('0xe19')](function(_0x1c2170){var _0x5e0600=_0x1dc7ba,_0x433f29=[_0x1c2170[_0x5e0600('0x17ab')]],_0x3a6773='download',_0x144d8b=new Blob(_0x433f29,{'type':_0x1c2170[_0x5e0600('0x62e')]});_0x3a6773=_0x2a8482[_0x5e0600('0x386')];var _0x4a11d0=window[_0x5e0600('0x18fa')][_0x5e0600('0x9a1')]('a');_0x4a11d0[_0x5e0600('0xede')](_0x5e0600('0xcb7'),URL[_0x5e0600('0x1360')](_0x144d8b)),_0x4a11d0[_0x5e0600('0xede')](_0x5e0600('0x1d1e'),_0x3a6773),document[_0x5e0600('0x19b2')][_0x5e0600('0x1d13')](_0x4a11d0),_0x4a11d0[_0x5e0600('0xfe7')]();})['catch'](function(_0x4fb124){var _0x28dc12=_0x1dc7ba;if(_0x4fb124[_0x28dc12('0x11d0')]&&_0x4fb124[_0x28dc12('0x11d0')][_0x28dc12('0xcd2')]&&_0x4fb124[_0x28dc12('0x11d0')][_0x28dc12('0xcd2')][_0x28dc12('0x25ae')])for(var _0x2088d7=0x0;_0x2088d7<_0x4fb124['data']['errors'][_0x28dc12('0x25ae')];_0x2088d7++){_0x392b73[_0x28dc12('0x8c8')]({'title':_0x4fb124[_0x28dc12('0x11d0')][_0x28dc12('0xcd2')][_0x2088d7][_0x28dc12('0x62e')],'msg':_0x4fb124['data'][_0x28dc12('0xcd2')][_0x2088d7]['message']});}else _0x392b73['error']({'title':_0x4fb124['status']?_0x28dc12('0x27f2')+_0x4fb124['status']+_0x28dc12('0x1b7c')+_0x4fb124[_0x28dc12('0x1fd7')]:_0x28dc12('0x98e'),'msg':_0x4fb124[_0x28dc12('0x11d0')]?JSON['stringify'](_0x4fb124[_0x28dc12('0x11d0')]['message']):_0x4fb124['toString']()});});}function _0x111b87(_0x3a578a,_0x38bc07){var _0x5318a7=_0x5297d7,_0x40ba73=_0x16cbfe[_0x5318a7('0xa5')]()[_0x5318a7('0x13e4')](_0x5318a7('0x346')+_0x32d445()[_0x5318a7('0x1df2')]('extractedReport')+'?')[_0x5318a7('0x221c')](''+(_0x3a578a[_0x5318a7('0x2623')]||_0x5318a7('0x27ba'))+_0x5318a7('0x27bb')+_0x5318a7('0x21bd'))[_0x5318a7('0x4d1')](_0x5318a7('0x24fd'))[_0x5318a7('0x1345')](_0x38bc07)['ok']('OK')[_0x5318a7('0x2c1')](_0x5318a7('0x17'));_0x16cbfe[_0x5318a7('0x26b2')](_0x40ba73)[_0x5318a7('0xe19')](function(){_0x4540bd(_0x3a578a);},function(){var _0x50a36a=_0x5318a7;console[_0x50a36a('0x1fe9')](_0x50a36a('0x17'));});}var _0x17bbe4=!![],_0x10c3af=0x1;_0x4706ad[_0x5297d7('0x107')]('vm.query.filter',function(_0x59241d,_0x13e90c){var _0x451b2b=_0x5297d7;_0x17bbe4?_0x4c1deb(function(){_0x17bbe4=![];}):(!_0x13e90c&&(_0x10c3af=_0x757604[_0x451b2b('0xa16')][_0x451b2b('0xc08')]),_0x59241d!==_0x13e90c&&(_0x757604[_0x451b2b('0xa16')]['page']=0x1),!_0x59241d&&(_0x757604[_0x451b2b('0xa16')]['page']=_0x10c3af),_0x757604[_0x451b2b('0x21af')]());});function _0x3ae8ea(_0x4b19e7){var _0x40e460=_0x5297d7;_0x757604[_0x40e460('0x27')]=_0x4b19e7||{'count':0x0,'rows':[]};}function _0x22f1db(){var _0x401b47=_0x5297d7;_0x757604[_0x401b47('0xa16')][_0x401b47('0xab0')]=(_0x757604[_0x401b47('0xa16')][_0x401b47('0xc08')]-0x1)*_0x757604[_0x401b47('0xa16')][_0x401b47('0x1b6d')],_0x34d20d[_0x401b47('0x179e')](_0x401b47('0xd14'))?_0x757604['promise']=_0x417331[_0x401b47('0x25c3')]['get'](_0x757604['query'],_0x3ae8ea)[_0x401b47('0xe59')]:(_0x757604[_0x401b47('0xa16')]['id']=_0x757604[_0x401b47('0x154f')]['id'],_0x757604['query'][_0x401b47('0x1e59')]='ExtractedReports',_0x757604[_0x401b47('0x9c8')]=_0x417331[_0x401b47('0x154f')][_0x401b47('0x14e6')](_0x757604[_0x401b47('0xa16')],_0x3ae8ea)[_0x401b47('0xe59')]);}function _0x3e4635(_0x31d1fb,_0x2e857c){var _0x52cb42=_0x5297d7;_0x16cbfe[_0x52cb42('0x26b2')]({'controller':_0x52cb42('0x1615'),'controllerAs':'vm','templateUrl':_0x3594fc,'parent':angular['element'](_0x38cdc5[_0x52cb42('0x19b2')]),'targetEvent':_0x31d1fb,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x2e857c,'extractedReports':_0x757604[_0x52cb42('0x27')]['rows'],'license':_0x757604[_0x52cb42('0x5c1')],'setting':_0x757604[_0x52cb42('0x22f1')],'crudPermissions':_0x757604['crudPermissions']}});}function _0x4540bd(_0x310e94){var _0x274e7a=_0x5297d7;_0x417331[_0x274e7a('0x25c3')][_0x274e7a('0x229e')]({'id':_0x310e94['id']})[_0x274e7a('0xe59')][_0x274e7a('0xe19')](function(){var _0x20299c=_0x274e7a;_0x32d445()[_0x20299c('0xa8b')](_0x757604['extractedReports']['rows'],{'id':_0x310e94['id']}),_0x757604[_0x20299c('0x27')][_0x20299c('0x148b')]-=0x1,!_0x757604['extractedReports']['rows'][_0x20299c('0x25ae')]&&_0x757604[_0x20299c('0x21af')](),_0x392b73['success']({'title':_0x32d445()[_0x20299c('0x1df2')](_0x20299c('0x1452'))+_0x20299c('0x1219'),'msg':_0x310e94[_0x20299c('0x2623')]?_0x310e94['name']+_0x20299c('0x2182'):''});})[_0x274e7a('0x223b')](function(_0x4fe3a6){var _0x1c8a84=_0x274e7a;if(_0x4fe3a6[_0x1c8a84('0x11d0')]&&_0x4fe3a6[_0x1c8a84('0x11d0')]['errors']&&_0x4fe3a6[_0x1c8a84('0x11d0')]['errors'][_0x1c8a84('0x25ae')]){_0x757604[_0x1c8a84('0xcd2')]=_0x4fe3a6[_0x1c8a84('0x11d0')][_0x1c8a84('0xcd2')]||[{'message':_0x4fe3a6[_0x1c8a84('0x94f')](),'type':'SYSTEM:DELETEanalyticExtractedReport'}];for(var _0x195d48=0x0;_0x195d48<_0x4fe3a6['data'][_0x1c8a84('0xcd2')][_0x1c8a84('0x25ae')];_0x195d48++){_0x392b73['error']({'title':_0x4fe3a6[_0x1c8a84('0x11d0')]['errors'][_0x195d48][_0x1c8a84('0x62e')],'msg':_0x4fe3a6[_0x1c8a84('0x11d0')][_0x1c8a84('0xcd2')][_0x195d48][_0x1c8a84('0x27e8')]});}}else _0x392b73[_0x1c8a84('0x8c8')]({'title':_0x4fe3a6[_0x1c8a84('0x2833')]?_0x1c8a84('0x27f2')+_0x4fe3a6[_0x1c8a84('0x2833')]+_0x1c8a84('0x1b7c')+_0x4fe3a6['statusText']:_0x1c8a84('0x6ea'),'msg':_0x4fe3a6[_0x1c8a84('0x11d0')]?JSON[_0x1c8a84('0x3ad')](_0x4fe3a6[_0x1c8a84('0x11d0')][_0x1c8a84('0x27e8')]):_0x4fe3a6['message']||_0x4fe3a6[_0x1c8a84('0x94f')]()});});}function _0x14ad7f(){var _0x3c365f=_0x5297d7,_0x559b22=angular[_0x3c365f('0x89')](_0x757604[_0x3c365f('0x100f')]);return _0x757604[_0x3c365f('0x100f')]=[],_0x559b22;}function _0x324698(_0x13497b){var _0x45bc24=_0x5297d7,_0x3351c5=_0x16cbfe['confirm']()[_0x45bc24('0x13e4')](_0x45bc24('0x2e5'))['htmlContent'](_0x45bc24('0xab2')+_0x757604['selectedExtractedReports']['length']+_0x45bc24('0x5bc')+_0x45bc24('0x21bd'))[_0x45bc24('0x4d1')](_0x45bc24('0x1d73'))[_0x45bc24('0x1345')](_0x13497b)['ok']('OK')[_0x45bc24('0x2c1')](_0x45bc24('0x17'));_0x16cbfe[_0x45bc24('0x26b2')](_0x3351c5)['then'](function(){var _0x66a6c=_0x45bc24;_0x757604[_0x66a6c('0x100f')][_0x66a6c('0x1d7e')](function(_0x27159a){_0x4540bd(_0x27159a);}),_0x757604['selectedExtractedReports']=[];});}function _0x292ede(){_0x757604['selectedExtractedReports']=[];}function _0x443d76(){var _0x4e881d=_0x5297d7;_0x757604[_0x4e881d('0x100f')]=_0x757604[_0x4e881d('0x27')]['rows'];}}const _0x9cef7=_0x524795;_0x3c7ac2[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x2837'),_0xb635d2('0x152f'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x3c7ac2(_0x23bc9f,_0x5522e6,_0x38c24b,_0x588977,_0x19502d,_0x535406,_0x4ad34b,_0x46be0f,_0x2e3545,_0x29c715,_0x1b2f9c,_0xc17e34,_0xf92661,_0x548067){var _0x24bfdf=_0xb635d2,_0x29c725=this;_0x29c725[_0x24bfdf('0x15a5')]=_0x1b2f9c[_0x24bfdf('0x1ef8')](),_0x29c725[_0x24bfdf('0xcd2')]=[],_0x29c725[_0x24bfdf('0x22f1')]=_0xf92661,_0x29c725[_0x24bfdf('0x5c1')]=_0xc17e34,_0x29c725[_0x24bfdf('0xb3d')]=_0x548067,_0x29c725['hasModulePermissions']={},_0x29c725[_0x24bfdf('0x25ac')]=_0x29c725[_0x24bfdf('0x22f1')]&&_0x29c725[_0x24bfdf('0x22f1')][_0x24bfdf('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x29c725[_0x24bfdf('0x13e4')]=_0x24bfdf('0x95d'),_0x29c725['metric']=angular['copy'](_0x2e3545),_0x29c725[_0x24bfdf('0x2837')]=_0x46be0f,_0x29c725[_0x24bfdf('0x166e')]=![];!_0x29c725['metric']&&(_0x29c725[_0x24bfdf('0x152f')]={'table':_0x24bfdf('0x1b60')},_0x29c725[_0x24bfdf('0x13e4')]=_0x24bfdf('0x1e81'),_0x29c725[_0x24bfdf('0x166e')]=!![]);_0x29c725[_0x24bfdf('0x1013')]=_0x4e2164,_0x29c725['saveMetric']=_0x41f337,_0x29c725['deleteMetric']=_0x380055,_0x29c725['getDateFromString']=_0x5f1b84,_0x29c725[_0x24bfdf('0x2584')]=_0x38d067;function _0x4e2164(){var _0x39eb01=_0x24bfdf;_0x29c725[_0x39eb01('0xcd2')]=[],_0x29c715[_0x39eb01('0x145a')][_0x39eb01('0xe5e')](_0x29c725['metric'])[_0x39eb01('0xe59')][_0x39eb01('0xe19')](function(_0x6a4558){var _0x5807cb=_0x39eb01;_0x29c725[_0x5807cb('0x2837')][_0x5807cb('0x14c9')](_0x6a4558[_0x5807cb('0x250e')]()),_0x4ad34b[_0x5807cb('0x425')]({'title':_0x5807cb('0x157a'),'msg':_0x29c725[_0x5807cb('0x152f')][_0x5807cb('0x2623')]?_0x29c725[_0x5807cb('0x152f')][_0x5807cb('0x2623')]+_0x5807cb('0x105f'):''}),_0x38d067(_0x6a4558);})[_0x39eb01('0x223b')](function(_0x17b7e8){var _0x3ec8fa=_0x39eb01;if(_0x17b7e8[_0x3ec8fa('0x11d0')]&&_0x17b7e8[_0x3ec8fa('0x11d0')]['errors']&&_0x17b7e8['data'][_0x3ec8fa('0xcd2')][_0x3ec8fa('0x25ae')]){_0x29c725[_0x3ec8fa('0xcd2')]=_0x17b7e8[_0x3ec8fa('0x11d0')]['errors']||[{'message':_0x17b7e8[_0x3ec8fa('0x94f')](),'type':_0x3ec8fa('0x1d86')}];for(var _0x4a2721=0x0;_0x4a2721<_0x17b7e8[_0x3ec8fa('0x11d0')][_0x3ec8fa('0xcd2')][_0x3ec8fa('0x25ae')];_0x4a2721+=0x1){_0x4ad34b[_0x3ec8fa('0x8c8')]({'title':_0x17b7e8[_0x3ec8fa('0x11d0')][_0x3ec8fa('0xcd2')][_0x4a2721][_0x3ec8fa('0x62e')],'msg':_0x17b7e8[_0x3ec8fa('0x11d0')][_0x3ec8fa('0xcd2')][_0x4a2721][_0x3ec8fa('0x27e8')]});}}else _0x4ad34b[_0x3ec8fa('0x8c8')]({'title':_0x17b7e8[_0x3ec8fa('0x2833')]?_0x3ec8fa('0x27f2')+_0x17b7e8['status']+_0x3ec8fa('0x1b7c')+_0x17b7e8['statusText']:_0x3ec8fa('0x1d86'),'msg':_0x17b7e8[_0x3ec8fa('0x11d0')]?JSON['stringify'](_0x17b7e8[_0x3ec8fa('0x11d0')][_0x3ec8fa('0x27e8')]):_0x17b7e8[_0x3ec8fa('0x94f')]()});});}function _0x41f337(){var _0x3dfec6=_0x24bfdf;_0x29c725[_0x3dfec6('0xcd2')]=[],_0x29c715['analyticMetric'][_0x3dfec6('0xa70')]({'id':_0x29c725[_0x3dfec6('0x152f')]['id']},_0x29c725[_0x3dfec6('0x152f')])[_0x3dfec6('0xe59')]['then'](function(_0x43cfcb){var _0x30aced=_0x3dfec6,_0x1529cc=_0x32d445()[_0x30aced('0xf15')](_0x29c725[_0x30aced('0x2837')],{'id':_0x43cfcb['id']});_0x1529cc&&_0x32d445()['merge'](_0x1529cc,_0x32d445()[_0x30aced('0xed5')](_0x43cfcb['toJSON'](),_0x32d445()[_0x30aced('0x1234')](_0x1529cc))),_0x4ad34b[_0x30aced('0x425')]({'title':_0x30aced('0x187b'),'msg':_0x29c725['metric'][_0x30aced('0x2623')]?_0x29c725[_0x30aced('0x152f')]['name']+'\x20has\x20been\x20saved!':''}),_0x38d067(_0x43cfcb);})[_0x3dfec6('0x223b')](function(_0x4e2081){var _0x1cddc0=_0x3dfec6;if(_0x4e2081[_0x1cddc0('0x11d0')]&&_0x4e2081['data'][_0x1cddc0('0xcd2')]&&_0x4e2081[_0x1cddc0('0x11d0')]['errors'][_0x1cddc0('0x25ae')]){_0x29c725['errors']=_0x4e2081['data']['errors']||[{'message':_0x4e2081['toString'](),'type':_0x1cddc0('0x1877')}];for(var _0x3fb7b9=0x0;_0x3fb7b9<_0x4e2081[_0x1cddc0('0x11d0')][_0x1cddc0('0xcd2')][_0x1cddc0('0x25ae')];_0x3fb7b9++){_0x4ad34b[_0x1cddc0('0x8c8')]({'title':_0x4e2081[_0x1cddc0('0x11d0')][_0x1cddc0('0xcd2')][_0x3fb7b9][_0x1cddc0('0x62e')],'msg':_0x4e2081[_0x1cddc0('0x11d0')][_0x1cddc0('0xcd2')][_0x3fb7b9][_0x1cddc0('0x27e8')]});}}else _0x4ad34b[_0x1cddc0('0x8c8')]({'title':_0x4e2081[_0x1cddc0('0x2833')]?'API:'+_0x4e2081['status']+_0x1cddc0('0x1b7c')+_0x4e2081[_0x1cddc0('0x1fd7')]:_0x1cddc0('0x1877'),'msg':_0x4e2081[_0x1cddc0('0x11d0')]?JSON[_0x1cddc0('0x3ad')](_0x4e2081[_0x1cddc0('0x11d0')]['message']):_0x4e2081[_0x1cddc0('0x94f')]()});});}function _0x380055(_0x22e558){var _0x64e0ee=_0x24bfdf;_0x29c725['errors']=[];var _0x5e1c3f=_0x588977['confirm']()[_0x64e0ee('0x13e4')](_0x64e0ee('0x24d0'))[_0x64e0ee('0xd0')]('The\x20metric\x20will\x20be\x20deleted.')['ariaLabel'](_0x64e0ee('0x16eb'))['ok']('Delete')[_0x64e0ee('0x2c1')]('Cancel')[_0x64e0ee('0x1345')](_0x22e558);_0x588977[_0x64e0ee('0x26b2')](_0x5e1c3f)[_0x64e0ee('0xe19')](function(){var _0x3fd009=_0x64e0ee;_0x29c715[_0x3fd009('0x145a')][_0x3fd009('0x229e')]({'id':_0x29c725[_0x3fd009('0x152f')]['id']})[_0x3fd009('0xe59')][_0x3fd009('0xe19')](function(){var _0x223f99=_0x3fd009;_0x32d445()['remove'](_0x29c725['metrics'],{'id':_0x29c725['metric']['id']}),_0x4ad34b[_0x223f99('0x425')]({'title':_0x223f99('0x216f'),'msg':(_0x29c725['metric'][_0x223f99('0x2623')]||_0x223f99('0x152f'))+'\x20has\x20been\x20deleted!'}),_0x38d067(_0x29c725[_0x223f99('0x152f')]);})[_0x3fd009('0x223b')](function(_0x5c2f17){var _0x3d8354=_0x3fd009;if(_0x5c2f17[_0x3d8354('0x11d0')]&&_0x5c2f17[_0x3d8354('0x11d0')][_0x3d8354('0xcd2')]&&_0x5c2f17['data'][_0x3d8354('0xcd2')][_0x3d8354('0x25ae')]){_0x29c725[_0x3d8354('0xcd2')]=_0x5c2f17[_0x3d8354('0x11d0')][_0x3d8354('0xcd2')]||[{'message':_0x5c2f17[_0x3d8354('0x94f')](),'type':_0x3d8354('0x1c8f')}];for(var _0x1fabfd=0x0;_0x1fabfd<_0x5c2f17[_0x3d8354('0x11d0')]['errors']['length'];_0x1fabfd++){_0x4ad34b[_0x3d8354('0x8c8')]({'title':_0x5c2f17[_0x3d8354('0x11d0')][_0x3d8354('0xcd2')][_0x1fabfd][_0x3d8354('0x62e')],'msg':_0x5c2f17['data'][_0x3d8354('0xcd2')][_0x1fabfd][_0x3d8354('0x27e8')]});}}else _0x4ad34b[_0x3d8354('0x8c8')]({'title':_0x5c2f17[_0x3d8354('0x2833')]?_0x3d8354('0x27f2')+_0x5c2f17[_0x3d8354('0x2833')]+_0x3d8354('0x1b7c')+_0x5c2f17[_0x3d8354('0x1fd7')]:_0x3d8354('0x1c8f'),'msg':_0x5c2f17[_0x3d8354('0x11d0')]?JSON[_0x3d8354('0x3ad')](_0x5c2f17[_0x3d8354('0x11d0')]['message']):_0x5c2f17[_0x3d8354('0x27e8')]||_0x5c2f17[_0x3d8354('0x94f')]()});});},function(){});}function _0x5f1b84(_0x46109e){return _0x46109e===null?undefined:new Date(_0x46109e);}function _0x38d067(_0xd6a911){var _0x510b6b=_0x24bfdf;_0x588977[_0x510b6b('0x11ed')](_0xd6a911);}}const _0x5cd453=_0x3c7ac2,_0x3296ff=_0x59426a['p']+_0xb635d2('0x1ede');_0x1f5681['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x2837'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x1f5681(_0x28ee3b,_0xd918b9,_0x336530,_0x465e37,_0x1e08ac,_0x43e803,_0x14d5fb,_0x51fc35,_0xae8414,_0x42587d,_0x192a7b,_0x414b26,_0x4c13d8,_0x784061,_0x24d945,_0x4d2891,_0x298755){var _0x546375=_0xb635d2,_0x2e5b49=this;_0x2e5b49['license']=_0x4d2891,_0x2e5b49[_0x546375('0x22f1')]=_0x298755,_0x2e5b49[_0x546375('0x15a5')]=_0x24d945[_0x546375('0x1ef8')](),_0x2e5b49[_0x546375('0x2837')]=_0xae8414||{'count':0x0,'rows':[]},_0x2e5b49[_0x546375('0x154f')]=_0x42587d,_0x2e5b49[_0x546375('0xb59')]=_0x192a7b&&_0x192a7b[_0x546375('0x148b')]==0x1?_0x192a7b['rows'][0x0]:null,_0x2e5b49[_0x546375('0xb3d')]=_0x24d945[_0x546375('0xd31')](_0x2e5b49[_0x546375('0xb59')]?_0x2e5b49['userProfileSection'][_0x546375('0xb3d')]:null),_0x2e5b49[_0x546375('0x19b6')]=_0x546375('0x2837'),_0x2e5b49[_0x546375('0x14d6')]='',_0x2e5b49[_0x546375('0x190c')]=null,_0x2e5b49[_0x546375('0xe57')]=[],_0x2e5b49[_0x546375('0xa16')]={'fields':_0x546375('0xf'),'sort':_0x546375('0x7e8'),'limit':0xa,'page':0x1},_0x2e5b49[_0x546375('0x1410')]=_0x32d445()[_0x546375('0x226f')]([{'option':_0x546375('0x1abf'),'value':_0x546375('0x154')},{'option':_0x546375('0x79a'),'value':'\x27report_call\x27'},{'option':'CDR','value':'\x27cdr\x27'},{'option':'Chat\x20Website','value':_0x546375('0x23c9')},{'option':_0x546375('0xa1a'),'value':_0x546375('0x13d4')},{'option':_0x546375('0x2509'),'value':_0x546375('0x579')},{'option':'Chat\x20Offline\x20Messages','value':'\x27chat_offline_messages\x27'},{'option':_0x546375('0x124'),'value':'\x27chat_queues\x27'},{'option':_0x546375('0x24aa'),'value':_0x546375('0x260e')},{'option':_0x546375('0x8bd'),'value':'\x27report_chat_transfer\x27'},{'option':_0x546375('0x25f3'),'value':'\x27cm_companies\x27'},{'option':_0x546375('0xd89'),'value':_0x546375('0x382')},{'option':_0x546375('0xf9b'),'value':'\x27report_square\x27'},{'option':'CSquare\x20Details\x20Report','value':'\x27report_square_details\x27'},{'option':'Dial\x20Report','value':_0x546375('0x1500')},{'option':_0x546375('0x67e'),'value':'\x27cm_hopper\x27'},{'option':_0x546375('0x24bf'),'value':_0x546375('0x168f')},{'option':'Dialer\x20Hopper\x20Final','value':_0x546375('0xc8e')},{'option':_0x546375('0x25e0'),'value':_0x546375('0x256f')},{'option':'Email\x20Interaction','value':_0x546375('0x24b7')},{'option':_0x546375('0x1f39'),'value':_0x546375('0xb6d')},{'option':_0x546375('0x1dc5'),'value':_0x546375('0x523')},{'option':'Email\x20Report\x20Queue','value':_0x546375('0x12f9')},{'option':'Email\x20Report\x20Transfer','value':_0x546375('0x264')},{'option':_0x546375('0x20db'),'value':_0x546375('0xcf7')},{'option':_0x546375('0xc87'),'value':_0x546375('0x10c3')},{'option':_0x546375('0x2081'),'value':_0x546375('0x1548')},{'option':'Fax\x20Queues','value':_0x546375('0x703')},{'option':'Fax\x20Report\x20Queue','value':_0x546375('0x89a')},{'option':_0x546375('0x1387'),'value':_0x546375('0x4ff')},{'option':_0x546375('0x140f'),'value':_0x546375('0xac1')},{'option':'Jscripty\x20Questions','value':_0x546375('0xcfa')},{'option':'Jscripty\x20Answers','value':_0x546375('0x2800')},{'option':_0x546375('0x2697'),'value':_0x546375('0x27b0')},{'option':_0x546375('0x7e0'),'value':_0x546375('0x1784')},{'option':'Openchannel\x20Account','value':_0x546375('0x1e38')},{'option':_0x546375('0x910'),'value':_0x546375('0x488')},{'option':_0x546375('0x115c'),'value':'\x27openchannel_messages\x27'},{'option':'Openchannel\x20Queues','value':_0x546375('0x13cb')},{'option':_0x546375('0x12b3'),'value':_0x546375('0xa5c')},{'option':_0x546375('0x15c7'),'value':_0x546375('0x218')},{'option':_0x546375('0x2097'),'value':'\x27report_queue\x27'},{'option':_0x546375('0x17f5'),'value':_0x546375('0x1c05')},{'option':_0x546375('0x10d8'),'value':'\x27sms_interactions\x27'},{'option':_0x546375('0x274b'),'value':'\x27sms_messages\x27'},{'option':_0x546375('0x921'),'value':_0x546375('0xd5e')},{'option':_0x546375('0x17a0'),'value':_0x546375('0x190')},{'option':_0x546375('0x13fb'),'value':'\x27report_sms_transfer\x27'},{'option':'Users','value':_0x546375('0x2207')},{'option':'Voice\x20Recordings','value':_0x546375('0x2280')},{'option':_0x546375('0x2008'),'value':_0x546375('0x1310')},{'option':_0x546375('0x20f2'),'value':'\x27whatsapp_interactions\x27'},{'option':'Whatsapp\x20Messages','value':_0x546375('0x25ab')},{'option':_0x546375('0x242a'),'value':_0x546375('0x285b')},{'option':_0x546375('0x25c9'),'value':'\x27report_whatsapp_queue\x27'},{'option':'Whatsapp\x20Report\x20Transfer','value':'\x27report_whatsapp_transfer\x27'}],function(_0x4ba7d2){var _0x5c83b2=_0x546375;return _0x32d445()['replace'](_0x4ba7d2[_0x5c83b2('0x2')],new RegExp('\x27','g'),'');}),_0x2e5b49[_0x546375('0x1752')]=_0x2ba30a,_0x2e5b49['deleteconfirm']=_0x18353c,_0x2e5b49[_0x546375('0x425')]=_0xb65511,_0x2e5b49[_0x546375('0x143f')]=_0x3f5cb0,_0x2e5b49[_0x546375('0x787')]=_0x15bcd6,_0x2e5b49[_0x546375('0x2513')]=_0x343255,_0x2e5b49['exportSelectedMetrics']=_0xea6b20,_0x2e5b49[_0x546375('0x247e')]=_0x26f6f8,_0x2e5b49[_0x546375('0x218d')]=_0x4664af,_0x2e5b49[_0x546375('0x1533')]=_0x5dee24;function _0x2ba30a(_0x5edefd,_0x1fe20a){var _0x323e6a=_0x546375;_0x1e08ac[_0x323e6a('0x26b2')]({'controller':'CreateOrEditMetricDialogController','controllerAs':'vm','templateUrl':_0x3296ff,'parent':angular[_0x323e6a('0x24a1')](_0x43e803[_0x323e6a('0x19b2')]),'targetEvent':_0x1fe20a,'clickOutsideToClose':!![],'locals':{'metric':_0x5edefd,'metrics':_0x2e5b49['metrics']['rows'],'license':_0x2e5b49['license'],'setting':null,'crudPermissions':_0x2e5b49[_0x323e6a('0xb3d')]}});}function _0x18353c(_0x3e9e27,_0x7ecb1b){var _0x26f0dd=_0x546375,_0x41be48=_0x1e08ac[_0x26f0dd('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()['startCase'](_0x26f0dd('0x152f'))+'?')[_0x26f0dd('0x221c')](_0x26f0dd('0xab2')+(_0x3e9e27[_0x26f0dd('0x2623')]||'metric')+''+_0x26f0dd('0x21bd'))[_0x26f0dd('0x4d1')](_0x26f0dd('0x1a65'))[_0x26f0dd('0x1345')](_0x7ecb1b)['ok']('OK')[_0x26f0dd('0x2c1')](_0x26f0dd('0x17'));_0x1e08ac[_0x26f0dd('0x26b2')](_0x41be48)[_0x26f0dd('0xe19')](function(){_0x343255(_0x3e9e27);},function(){var _0x429745=_0x26f0dd;console[_0x429745('0x1fe9')](_0x429745('0x17'));});}var _0x1c070e=!![],_0x4c0b94=0x1;_0x28ee3b[_0x546375('0x107')](_0x546375('0x20cb'),function(_0x3c0c53,_0x3d5c12){var _0x5cb8ae=_0x546375;_0x1c070e?_0x14d5fb(function(){_0x1c070e=![];}):(!_0x3d5c12&&(_0x4c0b94=_0x2e5b49[_0x5cb8ae('0xa16')][_0x5cb8ae('0xc08')]),_0x3c0c53!==_0x3d5c12&&(_0x2e5b49['query']['page']=0x1),!_0x3c0c53&&(_0x2e5b49[_0x5cb8ae('0xa16')]['page']=_0x4c0b94),_0x2e5b49[_0x5cb8ae('0x143f')]());});function _0xb65511(_0x108c00){var _0x1fbf6e=_0x546375;_0x2e5b49[_0x1fbf6e('0x2837')]=_0x108c00||{'count':0x0,'rows':[]};}function _0x3f5cb0(){var _0x208d52=_0x546375;_0x2e5b49[_0x208d52('0xa16')]['offset']=(_0x2e5b49['query'][_0x208d52('0xc08')]-0x1)*_0x2e5b49[_0x208d52('0xa16')][_0x208d52('0x1b6d')],_0x24d945['hasRole']('admin')?_0x2e5b49[_0x208d52('0x9c8')]=_0x414b26[_0x208d52('0x145a')][_0x208d52('0x22d5')](_0x2e5b49[_0x208d52('0xa16')],_0xb65511)[_0x208d52('0xe59')]:(_0x2e5b49[_0x208d52('0xa16')]['id']=_0x2e5b49['userProfile']['id'],_0x2e5b49[_0x208d52('0xa16')][_0x208d52('0x1e59')]=_0x208d52('0x1999'),_0x2e5b49['promise']=_0x414b26[_0x208d52('0x154f')][_0x208d52('0x14e6')](_0x2e5b49['query'],_0xb65511)[_0x208d52('0xe59')]);}function _0x15bcd6(_0xddefbd,_0x10e0ed){var _0x1e6fca=_0x546375;_0x1e08ac[_0x1e6fca('0x26b2')]({'controller':'CreateOrEditMetricDialogController','controllerAs':'vm','templateUrl':_0x3296ff,'parent':angular[_0x1e6fca('0x24a1')](_0x43e803[_0x1e6fca('0x19b2')]),'targetEvent':_0xddefbd,'clickOutsideToClose':!![],'locals':{'metric':_0x10e0ed,'metrics':_0x2e5b49['metrics'][_0x1e6fca('0x16a7')],'license':_0x2e5b49[_0x1e6fca('0x5c1')],'setting':_0x2e5b49[_0x1e6fca('0x22f1')],'crudPermissions':_0x2e5b49[_0x1e6fca('0xb3d')]}});}function _0x343255(_0x5cfdf6){var _0x1ace7b=_0x546375;_0x414b26[_0x1ace7b('0x145a')]['delete']({'id':_0x5cfdf6['id']})['$promise'][_0x1ace7b('0xe19')](function(){var _0x161a75=_0x1ace7b;_0x32d445()[_0x161a75('0xa8b')](_0x2e5b49[_0x161a75('0x2837')][_0x161a75('0x16a7')],{'id':_0x5cfdf6['id']}),_0x2e5b49['metrics'][_0x161a75('0x148b')]-=0x1,!_0x2e5b49[_0x161a75('0x2837')]['rows']['length']&&_0x2e5b49['getMetrics'](),_0x784061[_0x161a75('0x425')]({'title':_0x32d445()['startCase'](_0x161a75('0x78c'))+'\x20deleted!','msg':_0x5cfdf6['name']?_0x5cfdf6[_0x161a75('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x1ace7b('0x223b')](function(_0x1b3f09){var _0x1bd832=_0x1ace7b;if(_0x1b3f09[_0x1bd832('0x11d0')]&&_0x1b3f09['data'][_0x1bd832('0xcd2')]&&_0x1b3f09[_0x1bd832('0x11d0')][_0x1bd832('0xcd2')][_0x1bd832('0x25ae')]){_0x2e5b49[_0x1bd832('0xcd2')]=_0x1b3f09[_0x1bd832('0x11d0')]['errors']||[{'message':_0x1b3f09['toString'](),'type':_0x1bd832('0x26c1')}];for(var _0x654ce1=0x0;_0x654ce1<_0x1b3f09[_0x1bd832('0x11d0')]['errors'][_0x1bd832('0x25ae')];_0x654ce1++){_0x784061[_0x1bd832('0x8c8')]({'title':_0x1b3f09[_0x1bd832('0x11d0')]['errors'][_0x654ce1][_0x1bd832('0x62e')],'msg':_0x1b3f09[_0x1bd832('0x11d0')][_0x1bd832('0xcd2')][_0x654ce1][_0x1bd832('0x27e8')]});}}else _0x784061['error']({'title':_0x1b3f09[_0x1bd832('0x2833')]?_0x1bd832('0x27f2')+_0x1b3f09[_0x1bd832('0x2833')]+_0x1bd832('0x1b7c')+_0x1b3f09['statusText']:_0x1bd832('0x26c1'),'msg':_0x1b3f09[_0x1bd832('0x11d0')]?JSON[_0x1bd832('0x3ad')](_0x1b3f09[_0x1bd832('0x11d0')]['message']):_0x1b3f09['message']||_0x1b3f09[_0x1bd832('0x94f')]()});});}function _0xea6b20(){var _0x582a20=angular['copy'](_0x2e5b49['selectedMetrics']);return _0x2e5b49['selectedMetrics']=[],_0x582a20;}function _0x26f6f8(_0x4a7176){var _0x2e7232=_0x546375,_0x3f289b=_0x1e08ac['confirm']()[_0x2e7232('0x13e4')](_0x2e7232('0x1ff3'))['htmlContent'](_0x2e7232('0xab2')+_0x2e5b49[_0x2e7232('0xe57')][_0x2e7232('0x25ae')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x2e7232('0x16a3'))[_0x2e7232('0x1345')](_0x4a7176)['ok']('OK')[_0x2e7232('0x2c1')](_0x2e7232('0x17'));_0x1e08ac[_0x2e7232('0x26b2')](_0x3f289b)['then'](function(){var _0x18d43c=_0x2e7232;_0x2e5b49[_0x18d43c('0xe57')]['forEach'](function(_0x3e1722){_0x343255(_0x3e1722);}),_0x2e5b49[_0x18d43c('0xe57')]=[];});}function _0x4664af(){var _0x58bf7a=_0x546375;_0x2e5b49[_0x58bf7a('0xe57')]=[];}function _0x5dee24(){var _0xeaf571=_0x546375;_0x2e5b49[_0xeaf571('0xe57')]=_0x2e5b49[_0xeaf571('0x2837')][_0xeaf571('0x16a7')];}}const _0x5f24b1=_0x1f5681;_0x5cedbf[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x5cedbf(_0x358252,_0x5a9cab){var _0x2daaae=_0xb635d2;_0x358252[_0x2daaae('0x1d72')](_0x2daaae('0x226'),{'abstract':!![],'url':_0x2daaae('0x1c24')})[_0x2daaae('0x1d72')](_0x2daaae('0x26a4'),{'url':_0x2daaae('0x10fa'),'views':{'content@app':{'templateUrl':_0x4d08de,'controller':_0x2daaae('0x11fb')}},'resolve':{'metrics':[_0x2daaae('0x292'),_0x2daaae('0x2730'),function _0x1eae78(_0xc4cb8c,_0x352daa){var _0x158832=_0x2daaae;return _0x352daa[_0x158832('0x179e')](_0x158832('0xd14'))?_0xc4cb8c[_0x158832('0xcd6')](_0x158832('0x23a7'),{'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x158832('0x7e8'),'limit':0xa,'offset':0x0}):_0xc4cb8c['resolve'](_0x158832('0x197d'),{'id':_0x352daa['getCurrentUser']()[_0x158832('0x1d04')],'section':_0x158832('0x1999'),'fields':_0x158832('0xf'),'sort':_0x158832('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2daaae('0x292'),_0x2daaae('0x2730'),function _0x13bd88(_0x2b9828,_0x468b50){var _0x301c01=_0x2daaae;return _0x468b50[_0x301c01('0x179e')](_0x301c01('0xd14'))?null:_0x2b9828['resolve'](_0x301c01('0x455'),{'fields':_0x301c01('0x1b71'),'id':_0x468b50[_0x301c01('0x1ef8')]()[_0x301c01('0x1d04')]});}],'userProfileSection':[_0x2daaae('0x292'),_0x2daaae('0x2730'),function _0x519908(_0x3f5035,_0x5f4b91){var _0x3372f1=_0x2daaae;return _0x5f4b91[_0x3372f1('0x179e')](_0x3372f1('0xd14'))?null:_0x3f5035[_0x3372f1('0xcd6')](_0x3372f1('0x264e'),{'fields':_0x3372f1('0x12d6'),'userProfileId':_0x5f4b91[_0x3372f1('0x1ef8')]()[_0x3372f1('0x1d04')],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':_0x2daaae('0xd12')})[_0x2daaae('0x1d72')](_0x2daaae('0x4cb'),{'url':_0x2daaae('0x1cb'),'views':{'content@app':{'templateUrl':_0x55b384,'controller':_0x2daaae('0x16e4')}},'resolve':{'extractedReports':[_0x2daaae('0x292'),_0x2daaae('0x2730'),function _0x35461e(_0x149a21,_0x36ce8e){var _0x1e8c84=_0x2daaae;return _0x36ce8e['hasRole'](_0x1e8c84('0xd14'))?_0x149a21['resolve'](_0x1e8c84('0x737'),{'fields':'createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x149a21[_0x1e8c84('0xcd6')]('userProfile@getResources',{'id':_0x36ce8e[_0x1e8c84('0x1ef8')]()[_0x1e8c84('0x1d04')],'section':'ExtractedReports','fields':_0x1e8c84('0xfde'),'sort':_0x1e8c84('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2daaae('0x292'),_0x2daaae('0x2730'),function _0x3f4361(_0x33b56c,_0x11a30f){var _0x5c2f49=_0x2daaae;return _0x11a30f[_0x5c2f49('0x179e')](_0x5c2f49('0xd14'))?null:_0x33b56c[_0x5c2f49('0xcd6')](_0x5c2f49('0x455'),{'fields':_0x5c2f49('0x1b71'),'id':_0x11a30f[_0x5c2f49('0x1ef8')]()[_0x5c2f49('0x1d04')]});}],'userProfileSection':[_0x2daaae('0x292'),'Auth',function _0x4c3460(_0x4cd74b,_0x3d1560){var _0x4eb41a=_0x2daaae;return _0x3d1560[_0x4eb41a('0x179e')]('admin')?null:_0x4cd74b[_0x4eb41a('0xcd6')](_0x4eb41a('0x264e'),{'fields':_0x4eb41a('0x12d6'),'userProfileId':_0x3d1560[_0x4eb41a('0x1ef8')]()[_0x4eb41a('0x1d04')],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':'analytics'}),_0x5a9cab[_0x2daaae('0xfe3')](_0x2daaae('0x224a'));}angular[_0xb635d2('0x153f')]('app.analytics',['ngCsv',_0xb635d2('0x24b'),_0xb635d2('0x274e'),_0xb635d2('0x206b'),_0xb635d2('0xd8b'),_0xb635d2('0x1727'),_0xb635d2('0x1951'),_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),'mdPickers',_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),_0xb635d2('0x17b0'),'material.components.expansionPanels',_0xb635d2('0xe93'),_0xb635d2('0x16a1'),'app.analytics.reports'])[_0xb635d2('0x1990')](_0x5cedbf)[_0xb635d2('0x1a79')](_0xb635d2('0x1615'),_0x298f00)[_0xb635d2('0x1a79')](_0xb635d2('0x111'),_0x9cef7)[_0xb635d2('0x1a79')](_0xb635d2('0x25b8'),_0x5cd453)['controller'](_0xb635d2('0x10d6'),_0x5f24b1);const _0x406d4b=_0x59426a['p']+_0xb635d2('0xeaf'),_0x55fe4a=_0x59426a['p']+_0xb635d2('0x1c44'),_0x175f94=_0x59426a['p']+_0xb635d2('0xbec'),_0x234e1d=_0x59426a['p']+_0xb635d2('0xeb9'),_0x39acad=_0x59426a['p']+_0xb635d2('0x1aae'),_0x4beed9=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view-[chunkhash].html',_0x5a48c7=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts-[chunkhash].html',_0x4ca071=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view-[chunkhash].html',_0x374098=_0x59426a['p']+_0xb635d2('0x21a6'),_0x49b5b0=_0x59426a['p']+_0xb635d2('0x5a2'),_0x18e54d=_0x59426a['p']+_0xb635d2('0x333'),_0x5d8e95=_0x59426a['p']+_0xb635d2('0x1b6b'),_0x4ac8bd=_0x59426a['p']+_0xb635d2('0x1e6c'),_0x7f75a6=_0x59426a['p']+_0xb635d2('0x19b4'),_0x4073e4=_0x59426a['p']+_0xb635d2('0x277e'),_0x27eeb5=_0x59426a['p']+_0xb635d2('0x1'),_0xebf6df=_0x59426a['p']+_0xb635d2('0x2613'),_0x41d1b1=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html/view-[chunkhash].html',_0x2fa974=_0x59426a['p']+_0xb635d2('0x273e'),_0x723981=_0x59426a['p']+_0xb635d2('0x1b50');_0x489849['$inject']=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),'toasty','deskAccounts',_0xb635d2('0x2603'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x489849(_0x1728e3,_0x1642ad,_0x1fdf1c,_0x22ada6,_0x50a671,_0x5834e7,_0x1b3e61,_0x481383,_0x27052c,_0x36a29b,_0x377911,_0x142471,_0x58f6ea,_0x5b8b47){var _0x247516=_0xb635d2,_0x3022e6=this;_0x3022e6['currentUser']=_0x377911[_0x247516('0x1ef8')](),_0x3022e6['errors']=[],_0x3022e6[_0x247516('0x22f1')]=_0x58f6ea,_0x3022e6[_0x247516('0x5c1')]=_0x142471,_0x3022e6[_0x247516('0xb3d')]=_0x5b8b47,_0x3022e6[_0x247516('0x1ccb')]={},_0x3022e6[_0x247516('0x25ac')]=_0x3022e6[_0x247516('0x22f1')]&&_0x3022e6[_0x247516('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3022e6[_0x247516('0x13e4')]=_0x247516('0x1f9c'),_0x3022e6[_0x247516('0x2603')]=angular['copy'](_0x27052c),_0x3022e6['deskAccounts']=_0x481383,_0x3022e6['newDeskAccount']=![];!_0x3022e6[_0x247516('0x2603')]&&(_0x3022e6[_0x247516('0x2603')]={'type':_0x247516('0x1da'),'authType':_0x247516('0x12'),'serverUrl':_0x1fdf1c['protocol']()+_0x247516('0x21a8')+_0x1fdf1c[_0x247516('0x3b7')]()+(_0x1fdf1c['port']()?':'+_0x1fdf1c[_0x247516('0x11dc')]():'')},_0x3022e6[_0x247516('0x13e4')]=_0x247516('0x2146'),_0x3022e6[_0x247516('0x137c')]=!![]);_0x3022e6['addNewDeskAccount']=_0x243ae3,_0x3022e6[_0x247516('0x5bb')]=_0x4f8b0e,_0x3022e6[_0x247516('0x3cc')]=_0x2c0ca1,_0x3022e6[_0x247516('0x2635')]=_0xab519a,_0x3022e6[_0x247516('0x2584')]=_0x11075b;function _0x243ae3(){var _0x59a76b=_0x247516;_0x3022e6[_0x59a76b('0xcd2')]=[],_0x36a29b['intDeskAccount'][_0x59a76b('0xe5e')](_0x3022e6[_0x59a76b('0x2603')])[_0x59a76b('0xe59')][_0x59a76b('0xe19')](function(_0x1b6053){var _0x3c1725=_0x59a76b;_0x3022e6[_0x3c1725('0x2861')]['unshift'](_0x1b6053[_0x3c1725('0x250e')]()),_0x1b3e61[_0x3c1725('0x425')]({'title':_0x3c1725('0x2501'),'msg':_0x3022e6[_0x3c1725('0x2603')][_0x3c1725('0x2623')]?_0x3022e6[_0x3c1725('0x2603')]['name']+_0x3c1725('0x105f'):''}),_0x11075b(_0x1b6053);})['catch'](function(_0x377a09){var _0x56d22c=_0x59a76b;if(_0x377a09[_0x56d22c('0x11d0')]&&_0x377a09[_0x56d22c('0x11d0')][_0x56d22c('0xcd2')]&&_0x377a09[_0x56d22c('0x11d0')][_0x56d22c('0xcd2')][_0x56d22c('0x25ae')]){_0x3022e6[_0x56d22c('0xcd2')]=_0x377a09[_0x56d22c('0x11d0')][_0x56d22c('0xcd2')]||[{'message':_0x377a09[_0x56d22c('0x94f')](),'type':'api.intDeskAccount.save'}];for(var _0x5c2b4e=0x0;_0x5c2b4e<_0x377a09['data'][_0x56d22c('0xcd2')][_0x56d22c('0x25ae')];_0x5c2b4e+=0x1){_0x1b3e61[_0x56d22c('0x8c8')]({'title':_0x377a09[_0x56d22c('0x11d0')][_0x56d22c('0xcd2')][_0x5c2b4e][_0x56d22c('0x62e')],'msg':_0x377a09[_0x56d22c('0x11d0')][_0x56d22c('0xcd2')][_0x5c2b4e][_0x56d22c('0x27e8')]});}}else _0x1b3e61[_0x56d22c('0x8c8')]({'title':_0x377a09[_0x56d22c('0x2833')]?_0x56d22c('0x27f2')+_0x377a09[_0x56d22c('0x2833')]+'\x20-\x20'+_0x377a09[_0x56d22c('0x1fd7')]:_0x56d22c('0xe5c'),'msg':_0x377a09[_0x56d22c('0x11d0')]?JSON[_0x56d22c('0x3ad')](_0x377a09[_0x56d22c('0x11d0')]['message']):_0x377a09['toString']()});});}function _0x4f8b0e(){var _0x1f03e4=_0x247516;_0x3022e6[_0x1f03e4('0xcd2')]=[],_0x36a29b[_0x1f03e4('0x93d')][_0x1f03e4('0xa70')]({'id':_0x3022e6[_0x1f03e4('0x2603')]['id']},_0x3022e6[_0x1f03e4('0x2603')])['$promise'][_0x1f03e4('0xe19')](function(_0x5093cf){var _0x476504=_0x1f03e4,_0x5e156f=_0x32d445()[_0x476504('0xf15')](_0x3022e6[_0x476504('0x2861')],{'id':_0x5093cf['id']});_0x5e156f&&_0x32d445()[_0x476504('0x1d8')](_0x5e156f,_0x32d445()[_0x476504('0xed5')](_0x5093cf[_0x476504('0x250e')](),_0x32d445()[_0x476504('0x1234')](_0x5e156f))),_0x1b3e61['success']({'title':'DeskAccount\x20properly\x20saved!','msg':_0x3022e6[_0x476504('0x2603')]['name']?_0x3022e6['deskAccount'][_0x476504('0x2623')]+_0x476504('0x1c19'):''}),_0x11075b(_0x5093cf);})['catch'](function(_0x3b7ffa){var _0x2cd45a=_0x1f03e4;if(_0x3b7ffa[_0x2cd45a('0x11d0')]&&_0x3b7ffa[_0x2cd45a('0x11d0')][_0x2cd45a('0xcd2')]&&_0x3b7ffa[_0x2cd45a('0x11d0')][_0x2cd45a('0xcd2')][_0x2cd45a('0x25ae')]){_0x3022e6[_0x2cd45a('0xcd2')]=_0x3b7ffa[_0x2cd45a('0x11d0')][_0x2cd45a('0xcd2')]||[{'message':_0x3b7ffa[_0x2cd45a('0x94f')](),'type':_0x2cd45a('0x276e')}];for(var _0x11cccf=0x0;_0x11cccf<_0x3b7ffa[_0x2cd45a('0x11d0')][_0x2cd45a('0xcd2')][_0x2cd45a('0x25ae')];_0x11cccf++){_0x1b3e61[_0x2cd45a('0x8c8')]({'title':_0x3b7ffa[_0x2cd45a('0x11d0')][_0x2cd45a('0xcd2')][_0x11cccf]['type'],'msg':_0x3b7ffa[_0x2cd45a('0x11d0')]['errors'][_0x11cccf]['message']});}}else _0x1b3e61['error']({'title':_0x3b7ffa['status']?_0x2cd45a('0x27f2')+_0x3b7ffa[_0x2cd45a('0x2833')]+_0x2cd45a('0x1b7c')+_0x3b7ffa['statusText']:_0x2cd45a('0x276e'),'msg':_0x3b7ffa['data']?JSON['stringify'](_0x3b7ffa['data'][_0x2cd45a('0x27e8')]):_0x3b7ffa[_0x2cd45a('0x94f')]()});});}function _0x2c0ca1(_0x1d7929){var _0x470203=_0x247516;_0x3022e6[_0x470203('0xcd2')]=[];var _0x4b128f=_0x22ada6[_0x470203('0xa5')]()[_0x470203('0x13e4')]('Are\x20you\x20sure?')[_0x470203('0xd0')](_0x470203('0xd83'))[_0x470203('0x4d1')](_0x470203('0x12ee'))['ok'](_0x470203('0x2198'))[_0x470203('0x2c1')](_0x470203('0x8a3'))[_0x470203('0x1345')](_0x1d7929);_0x22ada6['show'](_0x4b128f)[_0x470203('0xe19')](function(){var _0x405524=_0x470203;_0x36a29b[_0x405524('0x93d')][_0x405524('0x229e')]({'id':_0x3022e6[_0x405524('0x2603')]['id']})['$promise']['then'](function(){var _0x4d6003=_0x405524;_0x32d445()[_0x4d6003('0xa8b')](_0x3022e6[_0x4d6003('0x2861')],{'id':_0x3022e6[_0x4d6003('0x2603')]['id']}),_0x1b3e61[_0x4d6003('0x425')]({'title':_0x4d6003('0x1d89'),'msg':(_0x3022e6[_0x4d6003('0x2603')][_0x4d6003('0x2623')]||_0x4d6003('0x2603'))+_0x4d6003('0x2182')}),_0x11075b(_0x3022e6[_0x4d6003('0x2603')]);})[_0x405524('0x223b')](function(_0x171f28){var _0x4d1716=_0x405524;if(_0x171f28['data']&&_0x171f28[_0x4d1716('0x11d0')][_0x4d1716('0xcd2')]&&_0x171f28[_0x4d1716('0x11d0')][_0x4d1716('0xcd2')][_0x4d1716('0x25ae')]){_0x3022e6[_0x4d1716('0xcd2')]=_0x171f28['data'][_0x4d1716('0xcd2')]||[{'message':_0x171f28[_0x4d1716('0x94f')](),'type':_0x4d1716('0x2799')}];for(var _0x408068=0x0;_0x408068<_0x171f28['data']['errors'][_0x4d1716('0x25ae')];_0x408068++){_0x1b3e61['error']({'title':_0x171f28[_0x4d1716('0x11d0')]['errors'][_0x408068][_0x4d1716('0x62e')],'msg':_0x171f28[_0x4d1716('0x11d0')]['errors'][_0x408068]['message']});}}else _0x1b3e61['error']({'title':_0x171f28[_0x4d1716('0x2833')]?_0x4d1716('0x27f2')+_0x171f28[_0x4d1716('0x2833')]+_0x4d1716('0x1b7c')+_0x171f28[_0x4d1716('0x1fd7')]:'api.intDeskAccount.delete','msg':_0x171f28[_0x4d1716('0x11d0')]?JSON[_0x4d1716('0x3ad')](_0x171f28[_0x4d1716('0x11d0')][_0x4d1716('0x27e8')]):_0x171f28['message']||_0x171f28[_0x4d1716('0x94f')]()});});},function(){});}function _0xab519a(_0x2f24de){return _0x2f24de===null?undefined:new Date(_0x2f24de);}function _0x11075b(_0x44fca5){_0x22ada6['hide'](_0x44fca5);}}const _0x443828=_0x489849,_0x4ce249=_0x59426a['p']+_0xb635d2('0x2356');_0x51584f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0x2861'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x51584f(_0x4218df,_0x2d916b,_0x221df6,_0x141eed,_0x3d3af8,_0x1b731c,_0x553ebc,_0x5bbae8,_0x2d9b20,_0x2b2b62,_0x132162,_0x4e9356,_0x2e2fcc,_0x462618,_0x97fd66,_0x54a6d6,_0x148389){var _0x2fc90e=_0xb635d2,_0xc3cf45=this;_0xc3cf45['license']=_0x54a6d6,_0xc3cf45['setting']=_0x148389,_0xc3cf45[_0x2fc90e('0x15a5')]=_0x97fd66[_0x2fc90e('0x1ef8')](),_0xc3cf45[_0x2fc90e('0x2861')]=_0x2d9b20||{'count':0x0,'rows':[]},_0xc3cf45[_0x2fc90e('0x154f')]=_0x2b2b62,_0xc3cf45[_0x2fc90e('0xb59')]=_0x132162&&_0x132162['count']==0x1?_0x132162[_0x2fc90e('0x16a7')][0x0]:null,_0xc3cf45[_0x2fc90e('0xb3d')]=_0x97fd66['parseCrudPermissions'](_0xc3cf45['userProfileSection']?_0xc3cf45['userProfileSection'][_0x2fc90e('0xb3d')]:null),_0xc3cf45[_0x2fc90e('0x19b6')]='deskAccounts',_0xc3cf45['listOrder']='',_0xc3cf45[_0x2fc90e('0x190c')]=null,_0xc3cf45[_0x2fc90e('0x1907')]=[],_0xc3cf45[_0x2fc90e('0xa16')]={'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'page':0x1},_0xc3cf45[_0x2fc90e('0x143e')]=_0x32d445()[_0x2fc90e('0x226f')]([{'option':_0x2fc90e('0x2b6'),'value':_0x2fc90e('0xbcd')},{'option':_0x2fc90e('0x23fe'),'value':_0x2fc90e('0x2752')}],function(_0x581903){var _0x4fed5e=_0x2fc90e;return _0x32d445()[_0x4fed5e('0x1b42')](_0x581903[_0x4fed5e('0x2')],new RegExp('\x27','g'),'');}),_0xc3cf45[_0x2fc90e('0xe0a')]=_0x32d445()[_0x2fc90e('0x226f')]([{'option':_0x2fc90e('0x25f6'),'value':_0x2fc90e('0x19d')}],function(_0x24b833){return _0x32d445()['replace'](_0x24b833['value'],new RegExp('\x27','g'),'');}),_0xc3cf45[_0x2fc90e('0x16a0')]=_0x2780c4,_0xc3cf45['testtestintegrationaccount']=_0x405e40,_0xc3cf45[_0x2fc90e('0x1d9e')]=_0xba5487,_0xc3cf45[_0x2fc90e('0x425')]=_0x44f5f0,_0xc3cf45[_0x2fc90e('0x1b43')]=_0xb3c563,_0xc3cf45[_0x2fc90e('0x2b7')]=_0x491724,_0xc3cf45[_0x2fc90e('0x3cc')]=_0x59f56e,_0xc3cf45[_0x2fc90e('0x8a')]=_0x20ceec,_0xc3cf45['deleteSelectedDeskAccounts']=_0x31f38e,_0xc3cf45[_0x2fc90e('0x119b')]=_0x2decbf,_0xc3cf45['selectAllDeskAccounts']=_0x31dd5b;function _0x2780c4(_0x567a24){var _0xc21398=_0x2fc90e;_0x221df6['go'](_0xc21398('0x1fa'),{'id':_0x567a24['id'],'deskAccount':_0x567a24,'crudPermissions':_0xc3cf45[_0xc21398('0xb3d')]});}function _0x405e40(_0x58a34a){var _0xa3edf5=_0x2fc90e;return _0x4e9356[_0xa3edf5('0x93d')][_0xa3edf5('0x23f8')]({'id':_0x58a34a['id'],'test':!![]})['$promise']['then'](function(){var _0x115b36=_0xa3edf5;_0x462618[_0x115b36('0x425')]({'title':'DeskAccount\x20properly\x20tested','msg':_0x115b36('0xd96')});})['catch'](function(_0x5ba3b1){var _0x2c17f4=_0xa3edf5;_0x462618[_0x2c17f4('0x8c8')]({'title':_0x2c17f4('0x188'),'msg':_0x5ba3b1[_0x2c17f4('0x11d0')]?_0x5ba3b1[_0x2c17f4('0x11d0')][_0x2c17f4('0x27e8')]?_0x5ba3b1[_0x2c17f4('0x11d0')][_0x2c17f4('0x27e8')]:JSON[_0x2c17f4('0x3ad')](_0x5ba3b1[_0x2c17f4('0x11d0')]):_0x5ba3b1['toString']()});});}function _0xba5487(_0x105920,_0xbd152e){var _0x2c70e6=_0x2fc90e,_0x17de03=_0x3d3af8[_0x2c70e6('0xa5')]()[_0x2c70e6('0x13e4')](_0x2c70e6('0x346')+_0x32d445()[_0x2c70e6('0x1df2')](_0x2c70e6('0x2603'))+'?')['htmlContent'](_0x2c70e6('0xab2')+(_0x105920[_0x2c70e6('0x2623')]||_0x2c70e6('0x2603'))+_0x2c70e6('0x27bb')+_0x2c70e6('0x21bd'))[_0x2c70e6('0x4d1')](_0x2c70e6('0x1059'))[_0x2c70e6('0x1345')](_0xbd152e)['ok']('OK')['cancel'](_0x2c70e6('0x17'));_0x3d3af8[_0x2c70e6('0x26b2')](_0x17de03)[_0x2c70e6('0xe19')](function(){_0x59f56e(_0x105920);},function(){var _0x5abcdc=_0x2c70e6;console[_0x5abcdc('0x1fe9')](_0x5abcdc('0x17'));});}var _0x4e421d=!![],_0x460f2f=0x1;_0x4218df[_0x2fc90e('0x107')]('vm.query.filter',function(_0x336fef,_0x1d0c34){var _0x373d17=_0x2fc90e;_0x4e421d?_0x553ebc(function(){_0x4e421d=![];}):(!_0x1d0c34&&(_0x460f2f=_0xc3cf45[_0x373d17('0xa16')][_0x373d17('0xc08')]),_0x336fef!==_0x1d0c34&&(_0xc3cf45['query']['page']=0x1),!_0x336fef&&(_0xc3cf45[_0x373d17('0xa16')][_0x373d17('0xc08')]=_0x460f2f),_0xc3cf45[_0x373d17('0x1b43')]());});function _0x44f5f0(_0x385d81){var _0x35380a=_0x2fc90e;_0xc3cf45[_0x35380a('0x2861')]=_0x385d81||{'count':0x0,'rows':[]};}function _0xb3c563(){var _0x31851a=_0x2fc90e;_0xc3cf45[_0x31851a('0xa16')][_0x31851a('0xab0')]=(_0xc3cf45[_0x31851a('0xa16')][_0x31851a('0xc08')]-0x1)*_0xc3cf45[_0x31851a('0xa16')]['limit'],_0x97fd66[_0x31851a('0x179e')](_0x31851a('0xd14'))?_0xc3cf45[_0x31851a('0x9c8')]=_0x4e9356['intDeskAccount'][_0x31851a('0x22d5')](_0xc3cf45[_0x31851a('0xa16')],_0x44f5f0)['$promise']:(_0xc3cf45['query']['id']=_0xc3cf45['userProfile']['id'],_0xc3cf45[_0x31851a('0xa16')][_0x31851a('0x1e59')]=_0x31851a('0x1d2d'),_0xc3cf45[_0x31851a('0x9c8')]=_0x4e9356[_0x31851a('0x154f')][_0x31851a('0x14e6')](_0xc3cf45[_0x31851a('0xa16')],_0x44f5f0)[_0x31851a('0xe59')]);}function _0x491724(_0x47d907,_0x4253fe){var _0x4c4413=_0x2fc90e;_0x3d3af8['show']({'controller':_0x4c4413('0x26d'),'controllerAs':'vm','templateUrl':_0x4ce249,'parent':angular[_0x4c4413('0x24a1')](_0x1b731c[_0x4c4413('0x19b2')]),'targetEvent':_0x47d907,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x4253fe,'deskAccounts':_0xc3cf45[_0x4c4413('0x2861')][_0x4c4413('0x16a7')],'license':_0xc3cf45[_0x4c4413('0x5c1')],'setting':_0xc3cf45['setting'],'crudPermissions':_0xc3cf45['crudPermissions']}});}function _0x59f56e(_0x49c39f){var _0x1e63d2=_0x2fc90e;_0x4e9356[_0x1e63d2('0x93d')]['delete']({'id':_0x49c39f['id']})['$promise'][_0x1e63d2('0xe19')](function(){var _0x172c62=_0x1e63d2;_0x32d445()['remove'](_0xc3cf45[_0x172c62('0x2861')][_0x172c62('0x16a7')],{'id':_0x49c39f['id']}),_0xc3cf45[_0x172c62('0x2861')][_0x172c62('0x148b')]-=0x1,!_0xc3cf45[_0x172c62('0x2861')][_0x172c62('0x16a7')][_0x172c62('0x25ae')]&&_0xc3cf45[_0x172c62('0x1b43')](),_0x462618[_0x172c62('0x425')]({'title':_0x32d445()[_0x172c62('0x1df2')](_0x172c62('0xa8a'))+'\x20deleted!','msg':_0x49c39f['name']?_0x49c39f[_0x172c62('0x2623')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x286167){var _0x3d0911=_0x1e63d2;if(_0x286167[_0x3d0911('0x11d0')]&&_0x286167[_0x3d0911('0x11d0')][_0x3d0911('0xcd2')]&&_0x286167[_0x3d0911('0x11d0')][_0x3d0911('0xcd2')][_0x3d0911('0x25ae')]){_0xc3cf45['errors']=_0x286167[_0x3d0911('0x11d0')][_0x3d0911('0xcd2')]||[{'message':_0x286167[_0x3d0911('0x94f')](),'type':_0x3d0911('0xff9')}];for(var _0x878675=0x0;_0x878675<_0x286167[_0x3d0911('0x11d0')][_0x3d0911('0xcd2')][_0x3d0911('0x25ae')];_0x878675++){_0x462618[_0x3d0911('0x8c8')]({'title':_0x286167['data'][_0x3d0911('0xcd2')][_0x878675][_0x3d0911('0x62e')],'msg':_0x286167['data'][_0x3d0911('0xcd2')][_0x878675]['message']});}}else _0x462618['error']({'title':_0x286167['status']?_0x3d0911('0x27f2')+_0x286167[_0x3d0911('0x2833')]+'\x20-\x20'+_0x286167[_0x3d0911('0x1fd7')]:_0x3d0911('0xff9'),'msg':_0x286167[_0x3d0911('0x11d0')]?JSON['stringify'](_0x286167['data']['message']):_0x286167['message']||_0x286167['toString']()});});}function _0x20ceec(){var _0x19beab=_0x2fc90e,_0x425c2f=angular[_0x19beab('0x89')](_0xc3cf45[_0x19beab('0x1907')]);return _0xc3cf45['selectedDeskAccounts']=[],_0x425c2f;}function _0x31f38e(_0xf1fb39){var _0x5761fb=_0x2fc90e,_0x3061e3=_0x3d3af8[_0x5761fb('0xa5')]()[_0x5761fb('0x13e4')](_0x5761fb('0x1508'))['htmlContent'](_0x5761fb('0xab2')+_0xc3cf45[_0x5761fb('0x1907')][_0x5761fb('0x25ae')]+_0x5761fb('0x5bc')+_0x5761fb('0x21bd'))['ariaLabel']('delete\x20DeskAccounts')[_0x5761fb('0x1345')](_0xf1fb39)['ok']('OK')['cancel'](_0x5761fb('0x17'));_0x3d3af8[_0x5761fb('0x26b2')](_0x3061e3)[_0x5761fb('0xe19')](function(){var _0x46c74c=_0x5761fb;_0xc3cf45['selectedDeskAccounts'][_0x46c74c('0x1d7e')](function(_0x25b6b9){_0x59f56e(_0x25b6b9);}),_0xc3cf45[_0x46c74c('0x1907')]=[];});}function _0x2decbf(){var _0x47108c=_0x2fc90e;_0xc3cf45[_0x47108c('0x1907')]=[];}function _0x31dd5b(){var _0x10069f=_0x2fc90e;_0xc3cf45[_0x10069f('0x1907')]=_0xc3cf45[_0x10069f('0x2861')]['rows'];}}const _0x4975b9=_0x51584f,_0xc98269=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html',_0x18b69d=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x3082aa[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth'];function _0x3082aa(_0x4984ac,_0x544df3,_0x353adb,_0x9479e7,_0x46a7f2){var _0x30f48c=_0xb635d2,_0x14a21b=this;_0x14a21b[_0x30f48c('0x15a5')]=_0x46a7f2[_0x30f48c('0x1ef8')](),_0x14a21b['deskAccount']={},_0x14a21b[_0x30f48c('0xf0d')]={},_0x14a21b[_0x30f48c('0x244e')]=[],_0x14a21b[_0x30f48c('0x1fa5')]=-0x1,_0x14a21b[_0x30f48c('0xb3d')],_0x14a21b[_0x30f48c('0x15f9')]=_0x52454d,_0x14a21b[_0x30f48c('0xd79')]=_0x21ab48,_0x14a21b[_0x30f48c('0x1381')]=_0x3374dd,_0x14a21b[_0x30f48c('0x2389')]=_0xf8e9f,_0x14a21b[_0x30f48c('0x244a')]=[],_0x14a21b[_0x30f48c('0x1a9f')]=_0x11d8ec,_0x353adb[_0x30f48c('0x2037')][_0x30f48c('0x22d5')]({'nolimit':!![],'sort':_0x30f48c('0x2623')})[_0x30f48c('0xe59')][_0x30f48c('0xe19')](function(_0x366c19){var _0x3c1981=_0x30f48c;_0x14a21b[_0x3c1981('0x1105')]=_0x366c19[_0x3c1981('0x16a7')]?_0x366c19['rows']:[];})[_0x30f48c('0x223b')](function(_0x2dd41f){var _0x299221=_0x30f48c;_0x9479e7[_0x299221('0x8c8')]({'title':_0x2dd41f[_0x299221('0x2833')]?_0x299221('0x27f2')+_0x2dd41f['status']+_0x299221('0x1b7c')+_0x2dd41f[_0x299221('0x1fd7')]:_0x299221('0x215c'),'msg':_0x2dd41f['data']?JSON[_0x299221('0x3ad')](_0x2dd41f[_0x299221('0x11d0')]):_0x2dd41f[_0x299221('0x94f')]()});});function _0x11d8ec(){var _0x2e8136=_0x30f48c;_0x353adb[_0x2e8136('0x13b7')][_0x2e8136('0x670')]({'id':_0x14a21b[_0x2e8136('0xf0d')]['id'],'ids':_0x14a21b[_0x2e8136('0x244a')]})[_0x2e8136('0xe59')][_0x2e8136('0xe19')](function(){var _0x39dc35=_0x2e8136;_0x9479e7[_0x39dc35('0x425')]({'title':_0x39dc35('0xe43'),'msg':_0x39dc35('0x1db0')});})[_0x2e8136('0x223b')](function(_0x478561){var _0x78dea=_0x2e8136;_0x9479e7['error']({'title':_0x478561[_0x78dea('0x2833')]?_0x78dea('0x27f2')+_0x478561[_0x78dea('0x2833')]+'\x20-\x20'+_0x478561[_0x78dea('0x1fd7')]:_0x78dea('0x1b5f'),'msg':_0x478561[_0x78dea('0x11d0')]?JSON['stringify'](_0x478561[_0x78dea('0x11d0')]):_0x478561['toString']()});});}function _0x52454d(_0xb0ef2c,_0x50d355){var _0x4235f8=_0x30f48c;_0x14a21b[_0x4235f8('0x2603')]=_0xb0ef2c,_0x14a21b[_0x4235f8('0xb3d')]=typeof _0x50d355!==_0x4235f8('0x1143')?_0x50d355:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x353adb[_0x4235f8('0x93d')]['getConfigurations']({'id':_0x14a21b['deskAccount']['id'],'sort':_0x4235f8('0x7e8')})[_0x4235f8('0xe59')]['then'](function(_0x3ed641){var _0x1e37ec=_0x4235f8;return _0x14a21b['configurations']=_0x3ed641[_0x1e37ec('0x16a7')]?_0x3ed641[_0x1e37ec('0x16a7')]:[],_0x14a21b[_0x1e37ec('0x244e')][_0x1e37ec('0x25ae')]&&_0x14a21b[_0x1e37ec('0xd79')](0x0),_0x353adb[_0x1e37ec('0x19a5')]['get']({'nolimit':!![],'sort':_0x1e37ec('0x2623')})[_0x1e37ec('0xe59')];})[_0x4235f8('0xe19')](function(_0x3835fb){var _0x4178ea=_0x4235f8;_0x14a21b['variables']=_0x3835fb[_0x4178ea('0x16a7')]?_0x3835fb[_0x4178ea('0x16a7')]:[],_0x14a21b[_0x4178ea('0x27b3')]=_0x32d445()[_0x4178ea('0x226f')](_0x14a21b[_0x4178ea('0x1a9e')],'id');})[_0x4235f8('0x223b')](function(_0x4414a1){var _0x4ebd2f=_0x4235f8;_0x9479e7['error']({'title':_0x4414a1[_0x4ebd2f('0x2833')]?_0x4ebd2f('0x27f2')+_0x4414a1['status']+'\x20-\x20'+_0x4414a1[_0x4ebd2f('0x1fd7')]:_0x4ebd2f('0xf5b'),'msg':_0x4414a1['data']?JSON['stringify'](_0x4414a1['data']):_0x4414a1[_0x4ebd2f('0x94f')]()});});}function _0x21ab48(_0xf74457){var _0x2bfd83=_0x30f48c;_0x14a21b[_0x2bfd83('0xf0d')]=_0x14a21b['configurations'][_0xf74457],_0x14a21b[_0x2bfd83('0x1fa5')]=_0xf74457,_0x353adb['intDeskConfiguration'][_0x2bfd83('0xe77')]({'id':_0x14a21b[_0x2bfd83('0xf0d')]['id']})['$promise'][_0x2bfd83('0xe19')](function(_0x1f27aa){var _0x1ac224=_0x2bfd83;return _0x14a21b[_0x1ac224('0x126e')]=_0x1f27aa[_0x1ac224('0x16a7')]?_0x1f27aa['rows']:[],_0x353adb[_0x1ac224('0x13b7')][_0x1ac224('0x280b')]({'id':_0x14a21b[_0x1ac224('0xf0d')]['id']})[_0x1ac224('0xe59')];})[_0x2bfd83('0xe19')](function(_0x534614){var _0x4fc73f=_0x2bfd83;return _0x14a21b[_0x4fc73f('0xb9c')]=_0x534614[_0x4fc73f('0x16a7')]?_0x534614[_0x4fc73f('0x16a7')]:[],_0x353adb[_0x4fc73f('0x13b7')]['getFields']({'id':_0x14a21b[_0x4fc73f('0xf0d')]['id']})['$promise'];})['then'](function(_0x596055){var _0x2ee5fb=_0x2bfd83;_0x14a21b[_0x2ee5fb('0x1d17')]=_0x596055[_0x2ee5fb('0x16a7')]?_0x596055['rows']:[];})[_0x2bfd83('0x223b')](function(_0x45d627){var _0x1dc207=_0x2bfd83;_0x9479e7[_0x1dc207('0x8c8')]({'title':_0x45d627[_0x1dc207('0x2833')]?'API:'+_0x45d627['status']+'\x20-\x20'+_0x45d627[_0x1dc207('0x1fd7')]:_0x1dc207('0x82a'),'msg':_0x45d627['data']?JSON[_0x1dc207('0x3ad')](_0x45d627[_0x1dc207('0x11d0')]):_0x45d627[_0x1dc207('0x94f')]()});}),_0x353adb['intDeskConfiguration'][_0x2bfd83('0x17b8')]({'id':_0x14a21b[_0x2bfd83('0xf0d')]['id']})[_0x2bfd83('0xe59')]['then'](function(_0x4ac7da){var _0x1f4772=_0x2bfd83;_0x14a21b[_0x1f4772('0x244a')]=_0x4ac7da['rows']?_0x32d445()['map'](_0x4ac7da['rows'],'id'):[];})[_0x2bfd83('0x223b')](function(_0x436a97){var _0x18b1c3=_0x2bfd83;_0x9479e7[_0x18b1c3('0x8c8')]({'title':_0x436a97['status']?_0x18b1c3('0x27f2')+_0x436a97[_0x18b1c3('0x2833')]+_0x18b1c3('0x1b7c')+_0x436a97[_0x18b1c3('0x1fd7')]:_0x18b1c3('0x215c'),'msg':_0x436a97[_0x18b1c3('0x11d0')]?JSON[_0x18b1c3('0x3ad')](_0x436a97[_0x18b1c3('0x11d0')]):_0x436a97[_0x18b1c3('0x94f')]()});});}function _0x3374dd(_0x532d55,_0x408c8f){var _0x4c66e9=_0x30f48c;_0x4984ac['show']({'controller':_0x4c66e9('0x178c'),'controllerAs':'vm','templateUrl':_0xc98269,'parent':angular[_0x4c66e9('0x24a1')](_0x544df3[_0x4c66e9('0x19b2')]),'targetEvent':_0x532d55,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x408c8f,'configurations':_0x14a21b['configurations'],'license':null,'setting':null,'crudPermissions':_0x14a21b[_0x4c66e9('0xb3d')]}})['finally'](function(){var _0x4dec79=_0x4c66e9;_0x14a21b[_0x4dec79('0xd79')](0x0);});}function _0xf8e9f(_0xb87c49,_0x288ac3){var _0x1330d6=_0x30f48c,_0x3f9de1=_0x4984ac[_0x1330d6('0xa5')]()[_0x1330d6('0x13e4')](_0x1330d6('0x1c4c'))[_0x1330d6('0x221c')](_0x1330d6('0xab2')+(_0x288ac3['name']||_0x1330d6('0xf0d'))+_0x1330d6('0x27bb')+_0x1330d6('0x21bd'))[_0x1330d6('0x4d1')](_0x1330d6('0xb7c'))['targetEvent'](_0xb87c49)['ok']('OK')[_0x1330d6('0x2c1')]('CANCEL');_0x4984ac[_0x1330d6('0x26b2')](_0x3f9de1)[_0x1330d6('0xe19')](function(){var _0x228b52=_0x1330d6;_0x353adb['intDeskConfiguration'][_0x228b52('0x229e')]({'id':_0x288ac3['id']})['$promise'][_0x228b52('0xe19')](function(){var _0x34395b=_0x228b52;_0x32d445()[_0x34395b('0xa8b')](_0x14a21b['configurations'],{'id':_0x288ac3['id']}),_0x9479e7[_0x34395b('0x425')]({'title':_0x34395b('0x2563'),'msg':_0x288ac3['name']?_0x288ac3[_0x34395b('0x2623')]+_0x34395b('0x2182'):''});})['catch'](function(_0x3b805d){var _0x137130=_0x228b52;_0x9479e7[_0x137130('0x8c8')]({'title':_0x3b805d[_0x137130('0x2833')]?'API:'+_0x3b805d[_0x137130('0x2833')]+'\x20-\x20'+_0x3b805d['statusText']:_0x137130('0x127'),'msg':_0x3b805d[_0x137130('0x11d0')]?JSON[_0x137130('0x3ad')](_0x3b805d[_0x137130('0x11d0')]):_0x3b805d[_0x137130('0x94f')]()});})[_0x228b52('0x23')](function(){var _0x565d8e=_0x228b52;_0x14a21b[_0x565d8e('0xd79')](0x0);});},function(){var _0x3a5265=_0x1330d6;console[_0x3a5265('0x1fe9')](_0x3a5265('0x17'));});}_0x14a21b[_0x30f48c('0x2508')]=[],_0x14a21b[_0x30f48c('0x16b2')]=_0x1aad75,_0x14a21b['deleteSubjectConfirm']=_0x32841b,_0x14a21b[_0x30f48c('0x1c53')]=_0x24fe13;function _0x1aad75(_0x2b500b,_0x17ce5f){var _0x5192cf=_0x30f48c;_0x4984ac[_0x5192cf('0x26b2')]({'controller':'CreateOrEditDeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x18b69d,'parent':angular[_0x5192cf('0x24a1')](_0x544df3[_0x5192cf('0x19b2')]),'targetEvent':_0x2b500b,'clickOutsideToClose':!![],'locals':{'type':_0x5192cf('0x9ec'),'item':_0x17ce5f,'items':_0x14a21b[_0x5192cf('0x126e')],'configuration':_0x14a21b[_0x5192cf('0xf0d')],'account':_0x14a21b['deskAccount'],'license':null,'setting':null,'crudPermissions':_0x14a21b['crudPermissions']}});}function _0x2811e3(_0x32ce30){var _0xb56e0b=_0x30f48c;_0x353adb['intDeskField'][_0xb56e0b('0x229e')]({'id':_0x32ce30['id']})[_0xb56e0b('0xe59')][_0xb56e0b('0xe19')](function(){var _0x36e2ff=_0xb56e0b;_0x32d445()[_0x36e2ff('0xa8b')](_0x14a21b['subjects'],{'id':_0x32ce30['id']}),_0x9479e7[_0x36e2ff('0x425')]({'title':'Subject\x20deleted!','msg':_0x36e2ff('0xae3')});})['catch'](function(_0x2928f8){var _0x5a28dc=_0xb56e0b;_0x9479e7['error']({'title':_0x2928f8[_0x5a28dc('0x2833')]?_0x5a28dc('0x27f2')+_0x2928f8[_0x5a28dc('0x2833')]+_0x5a28dc('0x1b7c')+_0x2928f8[_0x5a28dc('0x1fd7')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x2928f8[_0x5a28dc('0x11d0')]?JSON[_0x5a28dc('0x3ad')](_0x2928f8[_0x5a28dc('0x11d0')]):_0x2928f8[_0x5a28dc('0x94f')]()});});}function _0x32841b(_0xd48ab9,_0x1d0610){var _0x494803=_0x30f48c,_0x1bd17d=_0x4984ac[_0x494803('0xa5')]()['title'](_0x494803('0x158a'))[_0x494803('0x221c')]('Subject'+_0x494803('0x21bd'))[_0x494803('0x4d1')]('delete\x20subject')[_0x494803('0x1345')](_0xd48ab9)['ok']('OK')[_0x494803('0x2c1')]('CANCEL');_0x4984ac[_0x494803('0x26b2')](_0x1bd17d)[_0x494803('0xe19')](function(){_0x2811e3(_0x1d0610);},function(){console['log']('CANCEL');});}function _0x24fe13(_0x9c1ac1){var _0xd1ab35=_0x30f48c,_0x1ec55c=_0x4984ac[_0xd1ab35('0xa5')]()[_0xd1ab35('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0xd1ab35('0x221c')](_0xd1ab35('0xab2')+_0x14a21b[_0xd1ab35('0x2508')][_0xd1ab35('0x25ae')]+_0xd1ab35('0x5bc')+_0xd1ab35('0x21bd'))[_0xd1ab35('0x4d1')](_0xd1ab35('0xbc0'))[_0xd1ab35('0x1345')](_0x9c1ac1)['ok']('OK')[_0xd1ab35('0x2c1')](_0xd1ab35('0x17'));_0x4984ac[_0xd1ab35('0x26b2')](_0x1ec55c)['then'](function(){var _0x39b7f0=_0xd1ab35;_0x14a21b['selectedSubjects']['forEach'](function(_0x3e28e6){_0x2811e3(_0x3e28e6);}),_0x14a21b[_0x39b7f0('0x2508')]=[];});}_0x14a21b['selectedDescriptions']=[],_0x14a21b[_0x30f48c('0x2885')]=_0x55c400,_0x14a21b[_0x30f48c('0x95b')]=_0x13e998,_0x14a21b[_0x30f48c('0xd2c')]=_0xac85b5;function _0x55c400(_0xd8e88b,_0x2f4383){var _0x27b080=_0x30f48c;_0x4984ac[_0x27b080('0x26b2')]({'controller':_0x27b080('0x254a'),'controllerAs':'vm','templateUrl':_0x18b69d,'parent':angular['element'](_0x544df3[_0x27b080('0x19b2')]),'targetEvent':_0xd8e88b,'clickOutsideToClose':!![],'locals':{'type':_0x27b080('0x897'),'item':_0x2f4383,'items':_0x14a21b['descriptions'],'configuration':_0x14a21b[_0x27b080('0xf0d')],'account':_0x14a21b[_0x27b080('0x2603')],'license':null,'setting':null,'crudPermissions':_0x14a21b[_0x27b080('0xb3d')]}});}function _0x478e5e(_0x5d5d68){var _0x7758d9=_0x30f48c;_0x353adb[_0x7758d9('0x1028')][_0x7758d9('0x229e')]({'id':_0x5d5d68['id']})[_0x7758d9('0xe59')][_0x7758d9('0xe19')](function(){var _0x1d4a1e=_0x7758d9;_0x32d445()[_0x1d4a1e('0xa8b')](_0x14a21b[_0x1d4a1e('0xb9c')],{'id':_0x5d5d68['id']}),_0x9479e7[_0x1d4a1e('0x425')]({'title':_0x1d4a1e('0x1c52'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x7758d9('0x223b')](function(_0x1b18b9){var _0x178f2c=_0x7758d9;_0x9479e7[_0x178f2c('0x8c8')]({'title':_0x1b18b9['status']?'API:'+_0x1b18b9[_0x178f2c('0x2833')]+_0x178f2c('0x1b7c')+_0x1b18b9[_0x178f2c('0x1fd7')]:_0x178f2c('0x1dde'),'msg':_0x1b18b9['data']?JSON[_0x178f2c('0x3ad')](_0x1b18b9[_0x178f2c('0x11d0')]):_0x1b18b9['toString']()});});}function _0x13e998(_0x537ec7,_0x581454){var _0x24fbf3=_0x30f48c,_0x14d0c8=_0x4984ac[_0x24fbf3('0xa5')]()[_0x24fbf3('0x13e4')](_0x24fbf3('0x1c50'))[_0x24fbf3('0x221c')](_0x24fbf3('0x11e1')+_0x24fbf3('0x21bd'))[_0x24fbf3('0x4d1')](_0x24fbf3('0x1dc0'))[_0x24fbf3('0x1345')](_0x537ec7)['ok']('OK')[_0x24fbf3('0x2c1')](_0x24fbf3('0x17'));_0x4984ac[_0x24fbf3('0x26b2')](_0x14d0c8)['then'](function(){_0x478e5e(_0x581454);},function(){var _0x5f3de8=_0x24fbf3;console[_0x5f3de8('0x1fe9')](_0x5f3de8('0x17'));});}function _0xac85b5(_0x246125){var _0x1cdb48=_0x30f48c,_0x1985a2=_0x4984ac[_0x1cdb48('0xa5')]()[_0x1cdb48('0x13e4')](_0x1cdb48('0x23f4'))[_0x1cdb48('0x221c')](''+_0x14a21b[_0x1cdb48('0x858')][_0x1cdb48('0x25ae')]+'\x20selected'+_0x1cdb48('0x21bd'))['ariaLabel']('delete\x20descriptions')[_0x1cdb48('0x1345')](_0x246125)['ok']('OK')[_0x1cdb48('0x2c1')](_0x1cdb48('0x17'));_0x4984ac['show'](_0x1985a2)[_0x1cdb48('0xe19')](function(){var _0x277d26=_0x1cdb48;_0x14a21b['selectedDescriptions'][_0x277d26('0x1d7e')](function(_0x42bc28){_0x478e5e(_0x42bc28);}),_0x14a21b[_0x277d26('0x858')]=[];});}_0x14a21b[_0x30f48c('0xf97')]=[],_0x14a21b[_0x30f48c('0x131')]=_0x347fc0,_0x14a21b['deleteFieldConfirm']=_0x1686f0,_0x14a21b[_0x30f48c('0xdfd')]=_0x2886cd;function _0x347fc0(_0x3f433a,_0x147960){var _0x5add13=_0x30f48c;_0x4984ac[_0x5add13('0x26b2')]({'controller':_0x5add13('0x254a'),'controllerAs':'vm','templateUrl':_0x18b69d,'parent':angular[_0x5add13('0x24a1')](_0x544df3['body']),'targetEvent':_0x3f433a,'clickOutsideToClose':!![],'locals':{'type':_0x5add13('0x15d1'),'item':_0x147960,'items':_0x14a21b[_0x5add13('0x1d17')],'configuration':_0x14a21b[_0x5add13('0xf0d')],'account':_0x14a21b[_0x5add13('0x2603')],'license':null,'setting':null,'crudPermissions':_0x14a21b['crudPermissions']}});}function _0x42c2c4(_0x23b97c){var _0x1ad6f4=_0x30f48c;_0x353adb['intDeskField']['delete']({'id':_0x23b97c['id']})[_0x1ad6f4('0xe59')][_0x1ad6f4('0xe19')](function(){var _0x132436=_0x1ad6f4;_0x32d445()[_0x132436('0xa8b')](_0x14a21b[_0x132436('0x1d17')],{'id':_0x23b97c['id']}),_0x9479e7[_0x132436('0x425')]({'title':_0x132436('0x1e5d'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x1ad6f4('0x223b')](function(_0x2ce09e){var _0xc5c179=_0x1ad6f4;_0x9479e7[_0xc5c179('0x8c8')]({'title':_0x2ce09e['status']?_0xc5c179('0x27f2')+_0x2ce09e[_0xc5c179('0x2833')]+_0xc5c179('0x1b7c')+_0x2ce09e[_0xc5c179('0x1fd7')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x2ce09e[_0xc5c179('0x11d0')]?JSON[_0xc5c179('0x3ad')](_0x2ce09e[_0xc5c179('0x11d0')]):_0x2ce09e['toString']()});});}function _0x1686f0(_0x287810,_0xf82dbe){var _0x1ed49e=_0x30f48c,_0x5190b4=_0x4984ac['confirm']()[_0x1ed49e('0x13e4')](_0x1ed49e('0x8b7'))[_0x1ed49e('0x221c')](_0x1ed49e('0x13a7')+_0x1ed49e('0x21bd'))[_0x1ed49e('0x4d1')](_0x1ed49e('0x23f7'))[_0x1ed49e('0x1345')](_0x287810)['ok']('OK')[_0x1ed49e('0x2c1')](_0x1ed49e('0x17'));_0x4984ac[_0x1ed49e('0x26b2')](_0x5190b4)[_0x1ed49e('0xe19')](function(){_0x42c2c4(_0xf82dbe);},function(){var _0x919147=_0x1ed49e;console[_0x919147('0x1fe9')](_0x919147('0x17'));});}function _0x2886cd(_0x1df018){var _0x47746b=_0x30f48c,_0x51f54f=_0x4984ac[_0x47746b('0xa5')]()['title'](_0x47746b('0x128c'))[_0x47746b('0x221c')](_0x47746b('0xab2')+_0x14a21b[_0x47746b('0xf97')][_0x47746b('0x25ae')]+_0x47746b('0x5bc')+_0x47746b('0x21bd'))[_0x47746b('0x4d1')](_0x47746b('0x19c9'))[_0x47746b('0x1345')](_0x1df018)['ok']('OK')['cancel'](_0x47746b('0x17'));_0x4984ac[_0x47746b('0x26b2')](_0x51f54f)['then'](function(){var _0x1d173d=_0x47746b;_0x14a21b['selectedFields'][_0x1d173d('0x1d7e')](function(_0x549416){_0x42c2c4(_0x549416);}),_0x14a21b['selectedFields']=[];});}}const _0x27fd5e=_0x3082aa;_0x15cc61[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x244e'),_0xb635d2('0xf0d'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x15cc61(_0x172602,_0x206329,_0x509e9d,_0x10bf19,_0x104425,_0x4be517,_0x15cf22,_0x36e092,_0x4ddc97,_0x2a64de,_0x313a56,_0x28f411,_0x6d8c5b,_0x400471){var _0x46b28b=_0xb635d2,_0x139c15=this;_0x139c15[_0x46b28b('0x15a5')]=_0x313a56[_0x46b28b('0x1ef8')](),_0x139c15[_0x46b28b('0xcd2')]=[],_0x139c15[_0x46b28b('0x22f1')]=_0x6d8c5b,_0x139c15['license']=_0x28f411,_0x139c15[_0x46b28b('0xb3d')]=_0x400471,_0x139c15['hasModulePermissions']={},_0x139c15['passwordPattern']=_0x139c15[_0x46b28b('0x22f1')]&&_0x139c15[_0x46b28b('0x22f1')][_0x46b28b('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x139c15[_0x46b28b('0x13e4')]='INTEGRATIONS.EDIT_DESKCONFIGURATION',_0x139c15[_0x46b28b('0xf0d')]=angular[_0x46b28b('0x89')](_0x4ddc97),_0x139c15['configurations']=_0x36e092,_0x139c15['newDeskConfiguration']=![];!_0x139c15[_0x46b28b('0xf0d')]&&(_0x139c15[_0x46b28b('0xf0d')]={'channel':_0x46b28b('0xe74'),'type':'inbound'},_0x139c15['title']='INTEGRATIONS.NEW_DESKCONFIGURATION',_0x139c15['newDeskConfiguration']=!![]);_0x139c15[_0x46b28b('0x1e8d')]=_0x420940,_0x139c15[_0x46b28b('0xfaf')]=_0xc81957,_0x139c15[_0x46b28b('0x2389')]=_0x521384,_0x139c15[_0x46b28b('0x2635')]=_0xe5589e,_0x139c15[_0x46b28b('0x2584')]=_0x14facf;function _0x420940(){var _0x2b0598=_0x46b28b;_0x139c15['errors']=[],_0x2a64de[_0x2b0598('0x93d')]['addConfiguration']({'id':_0x206329[_0x2b0598('0x2ef')]['id']},_0x139c15['deskConfiguration'])['$promise'][_0x2b0598('0xe19')](function(_0x59f647){var _0x3f3ecd=_0x2b0598;_0x139c15[_0x3f3ecd('0x244e')][_0x3f3ecd('0x14c9')](_0x59f647[_0x3f3ecd('0x250e')]()),_0x15cf22[_0x3f3ecd('0x425')]({'title':'DeskConfiguration\x20properly\x20created','msg':_0x139c15[_0x3f3ecd('0xf0d')][_0x3f3ecd('0x2623')]?_0x139c15['deskConfiguration'][_0x3f3ecd('0x2623')]+_0x3f3ecd('0x105f'):''}),_0x14facf(_0x59f647);})[_0x2b0598('0x223b')](function(_0x1d4449){var _0x5de844=_0x2b0598;if(_0x1d4449['data']&&_0x1d4449[_0x5de844('0x11d0')][_0x5de844('0xcd2')]&&_0x1d4449[_0x5de844('0x11d0')][_0x5de844('0xcd2')]['length']){_0x139c15[_0x5de844('0xcd2')]=_0x1d4449[_0x5de844('0x11d0')]['errors']||[{'message':_0x1d4449[_0x5de844('0x94f')](),'type':_0x5de844('0x1988')}];for(var _0x5d9090=0x0;_0x5d9090<_0x1d4449[_0x5de844('0x11d0')][_0x5de844('0xcd2')][_0x5de844('0x25ae')];_0x5d9090+=0x1){_0x15cf22['error']({'title':_0x1d4449[_0x5de844('0x11d0')][_0x5de844('0xcd2')][_0x5d9090]['type'],'msg':_0x1d4449[_0x5de844('0x11d0')][_0x5de844('0xcd2')][_0x5d9090]['message']});}}else _0x15cf22[_0x5de844('0x8c8')]({'title':_0x1d4449['status']?_0x5de844('0x27f2')+_0x1d4449[_0x5de844('0x2833')]+'\x20-\x20'+_0x1d4449[_0x5de844('0x1fd7')]:_0x5de844('0x1988'),'msg':_0x1d4449['data']?JSON['stringify'](_0x1d4449[_0x5de844('0x11d0')]['message']):_0x1d4449['toString']()});});}function _0xc81957(){var _0x2d7f76=_0x46b28b;_0x139c15[_0x2d7f76('0xcd2')]=[],_0x2a64de[_0x2d7f76('0x13b7')]['update']({'id':_0x139c15[_0x2d7f76('0xf0d')]['id']},_0x139c15[_0x2d7f76('0xf0d')])[_0x2d7f76('0xe59')][_0x2d7f76('0xe19')](function(_0x58d40e){var _0x270ee2=_0x2d7f76,_0x38fbdf=_0x32d445()[_0x270ee2('0xf15')](_0x139c15[_0x270ee2('0x244e')],{'id':_0x58d40e['id']});_0x38fbdf&&_0x32d445()[_0x270ee2('0x1d8')](_0x38fbdf,_0x32d445()[_0x270ee2('0xed5')](_0x58d40e[_0x270ee2('0x250e')](),_0x32d445()[_0x270ee2('0x1234')](_0x38fbdf))),_0x15cf22['success']({'title':_0x270ee2('0x65d'),'msg':_0x139c15[_0x270ee2('0xf0d')][_0x270ee2('0x2623')]?_0x139c15['deskConfiguration']['name']+_0x270ee2('0x1c19'):''}),_0x14facf(_0x58d40e);})[_0x2d7f76('0x223b')](function(_0x5ad6f4){var _0x24834d=_0x2d7f76;if(_0x5ad6f4['data']&&_0x5ad6f4[_0x24834d('0x11d0')][_0x24834d('0xcd2')]&&_0x5ad6f4[_0x24834d('0x11d0')]['errors']['length']){_0x139c15[_0x24834d('0xcd2')]=_0x5ad6f4[_0x24834d('0x11d0')][_0x24834d('0xcd2')]||[{'message':_0x5ad6f4[_0x24834d('0x94f')](),'type':_0x24834d('0x9ba')}];for(var _0x337a3f=0x0;_0x337a3f<_0x5ad6f4[_0x24834d('0x11d0')][_0x24834d('0xcd2')][_0x24834d('0x25ae')];_0x337a3f++){_0x15cf22['error']({'title':_0x5ad6f4[_0x24834d('0x11d0')]['errors'][_0x337a3f][_0x24834d('0x62e')],'msg':_0x5ad6f4[_0x24834d('0x11d0')][_0x24834d('0xcd2')][_0x337a3f][_0x24834d('0x27e8')]});}}else _0x15cf22[_0x24834d('0x8c8')]({'title':_0x5ad6f4[_0x24834d('0x2833')]?_0x24834d('0x27f2')+_0x5ad6f4[_0x24834d('0x2833')]+_0x24834d('0x1b7c')+_0x5ad6f4[_0x24834d('0x1fd7')]:_0x24834d('0x9ba'),'msg':_0x5ad6f4[_0x24834d('0x11d0')]?JSON[_0x24834d('0x3ad')](_0x5ad6f4[_0x24834d('0x11d0')]['message']):_0x5ad6f4['toString']()});});}function _0x521384(_0x206258){var _0x5c2a42=_0x46b28b;_0x139c15['errors']=[];var _0x598934=_0x10bf19[_0x5c2a42('0xa5')]()[_0x5c2a42('0x13e4')](_0x5c2a42('0x24d0'))[_0x5c2a42('0xd0')](_0x5c2a42('0xf4'))[_0x5c2a42('0x4d1')](_0x5c2a42('0x24db'))['ok']('Delete')[_0x5c2a42('0x2c1')](_0x5c2a42('0x8a3'))['targetEvent'](_0x206258);_0x10bf19[_0x5c2a42('0x26b2')](_0x598934)[_0x5c2a42('0xe19')](function(){var _0x5127f7=_0x5c2a42;_0x2a64de[_0x5127f7('0x13b7')][_0x5127f7('0x229e')]({'id':_0x139c15['deskConfiguration']['id']})[_0x5127f7('0xe59')][_0x5127f7('0xe19')](function(){var _0x17285a=_0x5127f7;_0x32d445()['remove'](_0x139c15[_0x17285a('0x244e')],{'id':_0x139c15[_0x17285a('0xf0d')]['id']}),_0x15cf22['success']({'title':_0x17285a('0x204a'),'msg':(_0x139c15[_0x17285a('0xf0d')][_0x17285a('0x2623')]||_0x17285a('0xf0d'))+_0x17285a('0x2182')}),_0x14facf(_0x139c15[_0x17285a('0xf0d')]);})['catch'](function(_0x48c3f3){var _0x4343ee=_0x5127f7;if(_0x48c3f3[_0x4343ee('0x11d0')]&&_0x48c3f3[_0x4343ee('0x11d0')]['errors']&&_0x48c3f3[_0x4343ee('0x11d0')][_0x4343ee('0xcd2')][_0x4343ee('0x25ae')]){_0x139c15[_0x4343ee('0xcd2')]=_0x48c3f3[_0x4343ee('0x11d0')][_0x4343ee('0xcd2')]||[{'message':_0x48c3f3[_0x4343ee('0x94f')](),'type':_0x4343ee('0x1d93')}];for(var _0x1ebc44=0x0;_0x1ebc44<_0x48c3f3[_0x4343ee('0x11d0')][_0x4343ee('0xcd2')][_0x4343ee('0x25ae')];_0x1ebc44++){_0x15cf22[_0x4343ee('0x8c8')]({'title':_0x48c3f3[_0x4343ee('0x11d0')][_0x4343ee('0xcd2')][_0x1ebc44][_0x4343ee('0x62e')],'msg':_0x48c3f3[_0x4343ee('0x11d0')][_0x4343ee('0xcd2')][_0x1ebc44][_0x4343ee('0x27e8')]});}}else _0x15cf22[_0x4343ee('0x8c8')]({'title':_0x48c3f3[_0x4343ee('0x2833')]?'API:'+_0x48c3f3[_0x4343ee('0x2833')]+'\x20-\x20'+_0x48c3f3[_0x4343ee('0x1fd7')]:_0x4343ee('0x1d93'),'msg':_0x48c3f3[_0x4343ee('0x11d0')]?JSON[_0x4343ee('0x3ad')](_0x48c3f3[_0x4343ee('0x11d0')][_0x4343ee('0x27e8')]):_0x48c3f3['message']||_0x48c3f3['toString']()});});},function(){});}function _0xe5589e(_0x5a00a1){return _0x5a00a1===null?undefined:new Date(_0x5a00a1);}function _0x14facf(_0xaa9612){var _0x488eb=_0x46b28b;_0x10bf19[_0x488eb('0x11ed')](_0xaa9612);}}const _0x3fd2f1=_0x15cc61;_0x36a934[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x271e'),_0xb635d2('0xe4b'),_0xb635d2('0xdbb'),_0xb635d2('0xe8b'),_0xb635d2('0x62e'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x36a934(_0x30885b,_0x4c3ce5,_0x4b9c70,_0x47fc5d,_0xf34609,_0x1d50d3,_0x1503c9,_0x5a77e0,_0x5a8b9a,_0x14924d,_0x1f3c50,_0x80263e,_0x29f1c0){var _0x81c813=_0xb635d2,_0x37c1c7=this;_0x37c1c7['currentUser']=_0x80263e[_0x81c813('0x1ef8')](),_0x37c1c7['errors']=[],_0x37c1c7[_0x81c813('0x13e4')]=_0x81c813('0x53c')+_0x32d445()[_0x81c813('0xcbc')](_0x14924d),_0x37c1c7[_0x81c813('0xdbb')]=angular[_0x81c813('0x89')](_0x5a77e0),_0x37c1c7[_0x81c813('0xe4b')]=_0x1503c9,_0x37c1c7[_0x81c813('0x62e')]=_0x14924d,_0x37c1c7[_0x81c813('0xb3d')]=_0x29f1c0,_0x37c1c7[_0x81c813('0xa3')]=![];!_0x37c1c7[_0x81c813('0xdbb')]&&(_0x37c1c7[_0x81c813('0xdbb')]={'type':_0x81c813('0x19d1')},_0x37c1c7['item'][_0x32d445()['capitalize'](_0x14924d)+'Id']=_0x1d50d3['id'],_0x37c1c7['title']='INTEGRATIONS.NEW_'+_0x32d445()[_0x81c813('0xcbc')](_0x14924d),_0x37c1c7[_0x81c813('0xa3')]=!![]);_0x37c1c7[_0x81c813('0x9ca')]=_0xed04fb,_0x37c1c7[_0x81c813('0x1384')]=_0x571f91,_0x37c1c7[_0x81c813('0xc32')]=_0x6d3e1d,_0x37c1c7[_0x81c813('0x142b')]=_0x961b72,_0x37c1c7[_0x81c813('0x2584')]=_0x29487a,_0x1f3c50[_0x81c813('0x19a5')][_0x81c813('0x22d5')]({'nolimit':!![]})['$promise'][_0x81c813('0xe19')](function(_0x39ee93){var _0x16c887=_0x81c813;return _0x37c1c7[_0x16c887('0x1a9e')]=_0x39ee93[_0x16c887('0x16a7')]?_0x39ee93[_0x16c887('0x16a7')]:[],_0x1f3c50[_0x16c887('0x22cf')][_0x16c887('0x215e')]()[_0x16c887('0xe59')];})[_0x81c813('0xe19')](function(_0x5ccfbc){var _0x81e454=_0x81c813;return _0x37c1c7[_0x81e454('0x1230')]=_0x32d445()[_0x81e454('0x11d3')](_0x32d445()['keys'](_0x5ccfbc),['$promise',_0x81e454('0x113c'),_0x81e454('0x15c9'),'updatedAt','sourceid']),_0x37c1c7[_0x81e454('0x1230')][_0x81e454('0xb76')](_0x81e454('0xeaa')),_0x1f3c50[_0x81e454('0xa4e')][_0x81e454('0x215e')]()['$promise'];})[_0x81c813('0xe19')](function(_0x5cd4b2){var _0x4a3025=_0x81c813;_0x37c1c7[_0x4a3025('0x9f9')]=_0x32d445()[_0x4a3025('0x11d3')](_0x32d445()[_0x4a3025('0x1234')](_0x5cd4b2),[_0x4a3025('0xe59'),_0x4a3025('0x113c'),_0x4a3025('0x15c9'),_0x4a3025('0x1ce9'),_0x4a3025('0x1bea')]),_0x37c1c7['voiceDialReportColumns'][_0x4a3025('0xb76')](_0x4a3025('0xeaa'));})[_0x81c813('0x223b')](function(_0x52bf9d){var _0x1f0cca=_0x81c813;_0xf34609[_0x1f0cca('0x8c8')]({'title':_0x52bf9d[_0x1f0cca('0x2833')]?_0x1f0cca('0x27f2')+_0x52bf9d[_0x1f0cca('0x2833')]+_0x1f0cca('0x1b7c')+_0x52bf9d[_0x1f0cca('0x1fd7')]:_0x1f0cca('0x1c83'),'msg':_0x52bf9d[_0x1f0cca('0x11d0')]?JSON[_0x1f0cca('0x3ad')](_0x52bf9d['data']):_0x52bf9d[_0x1f0cca('0x94f')]()});}),_0x1f3c50[_0x81c813('0x93d')][_0x81c813('0x23f8')]({'id':_0x5a8b9a['id'],'ticketType':_0x1d50d3[_0x81c813('0x11d2')]?_0x1d50d3[_0x81c813('0x11d2')]:undefined})[_0x81c813('0xe59')][_0x81c813('0xe19')](function(_0x28fdb9){var _0x572cda=_0x81c813;_0x37c1c7['accountConnected']=!![],_0x37c1c7[_0x572cda('0x1d17')]=_0x28fdb9[_0x572cda('0x16a7')]?_0x28fdb9[_0x572cda('0x16a7')]:[],_0x37c1c7[_0x572cda('0xdbb')][_0x572cda('0x1c96')]&&(_0x37c1c7[_0x572cda('0x1129')]=_0x32d445()[_0x572cda('0xf15')](_0x37c1c7['fields'],{'id':_0x37c1c7[_0x572cda('0xdbb')][_0x572cda('0x1c96')]}));})['catch'](function(_0x2bf825){var _0x3dda67=_0x81c813;_0x37c1c7[_0x3dda67('0xbba')]=![],console[_0x3dda67('0x8c8')](_0x2bf825);});function _0xed04fb(){var _0x44f705=_0x81c813;_0x37c1c7[_0x44f705('0xcd2')]=[],_0x37c1c7['customField']&&(_0x37c1c7[_0x44f705('0xdbb')][_0x44f705('0x1c96')]=_0x37c1c7[_0x44f705('0x1129')]['id'],_0x37c1c7[_0x44f705('0xdbb')][_0x44f705('0x99e')]=_0x37c1c7[_0x44f705('0x1129')][_0x44f705('0x2623')],_0x37c1c7['item']['customField']=_0x37c1c7[_0x44f705('0x1129')][_0x44f705('0x261d')]),_0x1f3c50[_0x44f705('0x1028')][_0x44f705('0xe5e')](_0x37c1c7[_0x44f705('0xdbb')])[_0x44f705('0xe59')][_0x44f705('0xe19')](function(_0x1fa4cb){var _0xac7751=_0x44f705;_0x37c1c7[_0xac7751('0xe4b')][_0xac7751('0x14c9')](_0x1fa4cb),_0xf34609[_0xac7751('0x425')]({'title':_0x32d445()['capitalize'](_0x14924d)+_0xac7751('0xf04'),'msg':_0x32d445()[_0xac7751('0xbf6')](_0x14924d)+_0xac7751('0x105f')}),_0x29487a();})['catch'](function(_0x28fa50){var _0x29149b=_0x44f705;console['error'](_0x28fa50),_0x37c1c7[_0x29149b('0xcd2')]=_0x28fa50[_0x29149b('0x11d0')]['errors']||[{'message':_0x28fa50[_0x29149b('0x94f')](),'type':'api.item.save'}];});}function _0x571f91(){var _0x4b4689=_0x81c813;_0x37c1c7[_0x4b4689('0xcd2')]=[],_0x37c1c7['customField']&&(_0x37c1c7['item'][_0x4b4689('0x1c96')]=_0x37c1c7[_0x4b4689('0x1129')]['id'],_0x37c1c7[_0x4b4689('0xdbb')][_0x4b4689('0x99e')]=_0x37c1c7[_0x4b4689('0x1129')][_0x4b4689('0x2623')],_0x37c1c7[_0x4b4689('0xdbb')][_0x4b4689('0x1129')]=_0x37c1c7['customField'][_0x4b4689('0x261d')]),_0x1f3c50[_0x4b4689('0x1028')][_0x4b4689('0xa70')]({'id':_0x37c1c7[_0x4b4689('0xdbb')]['id']},_0x37c1c7['item'])[_0x4b4689('0xe59')][_0x4b4689('0xe19')](function(_0x2c4c69){var _0x47ea17=_0x4b4689,_0x5d3b88=_0x32d445()[_0x47ea17('0xf15')](_0x37c1c7['items'],{'id':_0x2c4c69['id']});_0x5d3b88&&_0x32d445()['merge'](_0x5d3b88,_0x2c4c69),_0xf34609[_0x47ea17('0x425')]({'title':_0x32d445()[_0x47ea17('0xbf6')](_0x14924d)+_0x47ea17('0xdaf'),'msg':_0x32d445()[_0x47ea17('0xbf6')](_0x14924d)+_0x47ea17('0x1c19')}),_0x29487a();})[_0x4b4689('0x223b')](function(_0x475463){var _0x300846=_0x4b4689;console[_0x300846('0x8c8')](_0x475463),_0x37c1c7[_0x300846('0xcd2')]=_0x475463[_0x300846('0x11d0')][_0x300846('0xcd2')]||[{'message':_0x475463['toString'](),'type':'api.intItem.update'}];});}function _0x6d3e1d(_0x466f9c){var _0x5f8253=_0x81c813;_0x37c1c7[_0x5f8253('0xcd2')]=[];var _0x3741e9=_0x47fc5d[_0x5f8253('0xa5')]()[_0x5f8253('0x13e4')](_0x5f8253('0x24d0'))[_0x5f8253('0xd0')](_0x5f8253('0x2784')+_0x14924d+_0x5f8253('0x21bd'))[_0x5f8253('0x4d1')](_0x5f8253('0x13de')+_0x32d445()['capitalize'](_0x14924d))['ok'](_0x5f8253('0x2198'))[_0x5f8253('0x2c1')]('Cancel')['targetEvent'](_0x466f9c);_0x47fc5d['show'](_0x3741e9)['then'](function(){var _0x2d8721=_0x5f8253;_0x1f3c50['intDeskField'][_0x2d8721('0x229e')]({'id':_0x37c1c7['item']['id']})[_0x2d8721('0xe59')][_0x2d8721('0xe19')](function(){var _0x3b9685=_0x2d8721;_0x32d445()['remove'](_0x37c1c7[_0x3b9685('0xe4b')],{'id':_0x37c1c7[_0x3b9685('0xdbb')]['id']}),_0xf34609[_0x3b9685('0x425')]({'title':_0x32d445()['capitalize'](_0x14924d)+_0x3b9685('0x1ddc'),'msg':_0x32d445()['capitalize'](_0x14924d)+_0x3b9685('0x2182')}),_0x29487a();})[_0x2d8721('0x223b')](function(_0x3e1a0a){var _0x1faddf=_0x2d8721;console[_0x1faddf('0x8c8')](_0x3e1a0a),_0x37c1c7[_0x1faddf('0xcd2')]=_0x3e1a0a['data'][_0x1faddf('0xcd2')]||[{'message':_0x3e1a0a[_0x1faddf('0x94f')](),'type':'api.item.delete'}];});},function(){});}function _0x961b72(){var _0x5375ee=_0x81c813;return _0x37c1c7['item']['variableName']!==undefined?_0x37c1c7[_0x5375ee('0xdbb')][_0x5375ee('0x17b')]:_0x5375ee('0xc');}function _0x29487a(){var _0x3ec2e8=_0x81c813;_0x47fc5d[_0x3ec2e8('0x11ed')]();}}const _0x512d57=_0x36a934;_0x37bbd2[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730'),'deskAccount','userProfileSection'];function _0x37bbd2(_0x3e6e9c,_0xa57f1e,_0x20f296,_0x13a691,_0x5cf6de,_0x54f596,_0x5eddce,_0x9ccc45,_0x9f2ecb,_0x56440c,_0x48629c,_0x175471){var _0x1ce924=_0xb635d2,_0x17692d=this;_0x17692d[_0x1ce924('0x15a5')]=_0x56440c['getCurrentUser'](),_0x17692d[_0x1ce924('0x5c1')]=_0x54f596,_0x17692d[_0x1ce924('0x22f1')]=_0x5eddce,_0x17692d['passwordPattern']=_0x17692d['setting'][_0x1ce924('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17692d[_0x1ce924('0x2170')]=_0xa57f1e['protocol']()+_0x1ce924('0x21a8')+_0xa57f1e[_0x1ce924('0x3b7')](),_0x17692d['deskAccount']=_0x48629c||_0x3e6e9c['params'][_0x1ce924('0x2603')]||{},_0x17692d[_0x1ce924('0xb59')]=_0x175471&&_0x175471[_0x1ce924('0x148b')]==0x1?_0x175471[_0x1ce924('0x16a7')][0x0]:null,_0x17692d[_0x1ce924('0xb3d')]=_0x56440c[_0x1ce924('0xd31')](_0x17692d[_0x1ce924('0xb59')]?_0x17692d[_0x1ce924('0xb59')][_0x1ce924('0xb3d')]:null),_0x17692d[_0x1ce924('0x1ccb')]={},_0x17692d[_0x1ce924('0xc7b')]=_0x3e6e9c['params'][_0x1ce924('0x435')]||0x0,_0x17692d[_0x1ce924('0xbdc')]=_0x9f2ecb['info'],_0x17692d[_0x1ce924('0x270e')]=_0x186462,_0x17692d[_0x1ce924('0x5bb')]=_0x466d8b;function _0x186462(){var _0x3ce8a3=_0x1ce924;_0x3e6e9c['go'](_0x3ce8a3('0x12e6'),{},{'reload':_0x3ce8a3('0x12e6')});}function _0x466d8b(){var _0x3770c3=_0x1ce924;_0x9ccc45[_0x3770c3('0x93d')][_0x3770c3('0xa70')]({'id':_0x17692d[_0x3770c3('0x2603')]['id']},_0x17692d[_0x3770c3('0x2603')])[_0x3770c3('0xe59')][_0x3770c3('0xe19')](function(){var _0x1ae700=_0x3770c3;_0x9f2ecb['success']({'title':_0x1ae700('0x1d79'),'msg':_0x17692d[_0x1ae700('0x2603')][_0x1ae700('0x2623')]?_0x17692d[_0x1ae700('0x2603')][_0x1ae700('0x2623')]+_0x1ae700('0x283b'):''});})[_0x3770c3('0x223b')](function(_0x5aec27){var _0x255be4=_0x3770c3;_0x9f2ecb['error']({'title':_0x5aec27[_0x255be4('0x2833')]?_0x255be4('0x27f2')+_0x5aec27[_0x255be4('0x2833')]+_0x255be4('0x1b7c')+_0x5aec27[_0x255be4('0x1fd7')]:_0x255be4('0x316'),'msg':_0x5aec27[_0x255be4('0x11d0')]?JSON[_0x255be4('0x3ad')](_0x5aec27[_0x255be4('0x11d0')]):_0x5aec27[_0x255be4('0x94f')]()});});}}const _0x31bed0=_0x37bbd2;_0x55f471[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'dynamics365Accounts','dynamics365Account',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x55f471(_0x394295,_0x5182cd,_0x3cf691,_0x1d3b21,_0x304223,_0x36155e,_0x18556b,_0x4343f1,_0x505964,_0x22a7ee,_0x8ed15e,_0x19c411,_0x371fd0,_0x553c60){var _0x4027cc=_0xb635d2,_0x4db797=this;_0x4db797[_0x4027cc('0x15a5')]=_0x8ed15e['getCurrentUser'](),_0x4db797['errors']=[],_0x4db797['setting']=_0x371fd0,_0x4db797['license']=_0x19c411,_0x4db797[_0x4027cc('0xb3d')]=_0x553c60,_0x4db797[_0x4027cc('0x1ccb')]={},_0x4db797[_0x4027cc('0x25ac')]=_0x4db797[_0x4027cc('0x22f1')]&&_0x4db797[_0x4027cc('0x22f1')][_0x4027cc('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4db797['title']=_0x4027cc('0x1b2f'),_0x4db797[_0x4027cc('0x675')]=angular['copy'](_0x505964),_0x4db797[_0x4027cc('0x796')]=_0x4343f1,_0x4db797[_0x4027cc('0x252e')]=![];!_0x4db797[_0x4027cc('0x675')]&&(_0x4db797['dynamics365Account']={'serverUrl':_0x3cf691['protocol']()+'://'+_0x3cf691['host']()+(_0x3cf691[_0x4027cc('0x11dc')]()?':'+_0x3cf691['port']():'')},_0x4db797[_0x4027cc('0x13e4')]=_0x4027cc('0x247c'),_0x4db797['newDynamics365Account']=!![]);_0x4db797[_0x4027cc('0x1228')]=_0x18a043,_0x4db797['saveDynamics365Account']=_0x1cf59a,_0x4db797[_0x4027cc('0x19f7')]=_0x3fa55f,_0x4db797['getDateFromString']=_0x3ababc,_0x4db797[_0x4027cc('0x2584')]=_0x4b775a;function _0x18a043(){var _0x4fbbb9=_0x4027cc;_0x4db797[_0x4fbbb9('0xcd2')]=[],_0x22a7ee['intDynamics365Account'][_0x4fbbb9('0xe5e')](_0x4db797['dynamics365Account'])['$promise'][_0x4fbbb9('0xe19')](function(_0xddd562){var _0x175553=_0x4fbbb9;_0x4db797[_0x175553('0x796')]['unshift'](_0xddd562[_0x175553('0x250e')]()),_0x18556b[_0x175553('0x425')]({'title':_0x175553('0x10e9'),'msg':_0x4db797[_0x175553('0x675')]['name']?_0x4db797[_0x175553('0x675')][_0x175553('0x2623')]+_0x175553('0x105f'):''}),_0x4b775a(_0xddd562);})[_0x4fbbb9('0x223b')](function(_0x1a0178){var _0x3b2a02=_0x4fbbb9;if(_0x1a0178['data']&&_0x1a0178[_0x3b2a02('0x11d0')][_0x3b2a02('0xcd2')]&&_0x1a0178[_0x3b2a02('0x11d0')][_0x3b2a02('0xcd2')][_0x3b2a02('0x25ae')]){_0x4db797['errors']=_0x1a0178[_0x3b2a02('0x11d0')][_0x3b2a02('0xcd2')]||[{'message':_0x1a0178[_0x3b2a02('0x94f')](),'type':_0x3b2a02('0x1897')}];for(var _0x34b5ae=0x0;_0x34b5ae<_0x1a0178[_0x3b2a02('0x11d0')][_0x3b2a02('0xcd2')][_0x3b2a02('0x25ae')];_0x34b5ae+=0x1){_0x18556b['error']({'title':_0x1a0178[_0x3b2a02('0x11d0')][_0x3b2a02('0xcd2')][_0x34b5ae]['type'],'msg':_0x1a0178[_0x3b2a02('0x11d0')][_0x3b2a02('0xcd2')][_0x34b5ae][_0x3b2a02('0x27e8')]});}}else _0x18556b[_0x3b2a02('0x8c8')]({'title':_0x1a0178[_0x3b2a02('0x2833')]?'API:'+_0x1a0178[_0x3b2a02('0x2833')]+_0x3b2a02('0x1b7c')+_0x1a0178[_0x3b2a02('0x1fd7')]:_0x3b2a02('0x1897'),'msg':_0x1a0178['data']?JSON[_0x3b2a02('0x3ad')](_0x1a0178[_0x3b2a02('0x11d0')]['message']):_0x1a0178['toString']()});});}function _0x1cf59a(){var _0x53bf83=_0x4027cc;_0x4db797[_0x53bf83('0xcd2')]=[],_0x22a7ee[_0x53bf83('0x24c2')][_0x53bf83('0xa70')]({'id':_0x4db797[_0x53bf83('0x675')]['id']},_0x4db797[_0x53bf83('0x675')])[_0x53bf83('0xe59')]['then'](function(_0x308c1e){var _0x4fc67a=_0x53bf83,_0x1a57c3=_0x32d445()[_0x4fc67a('0xf15')](_0x4db797[_0x4fc67a('0x796')],{'id':_0x308c1e['id']});_0x1a57c3&&_0x32d445()[_0x4fc67a('0x1d8')](_0x1a57c3,_0x32d445()['pick'](_0x308c1e[_0x4fc67a('0x250e')](),_0x32d445()[_0x4fc67a('0x1234')](_0x1a57c3))),_0x18556b[_0x4fc67a('0x425')]({'title':'Dynamics365Account\x20properly\x20saved!','msg':_0x4db797[_0x4fc67a('0x675')][_0x4fc67a('0x2623')]?_0x4db797[_0x4fc67a('0x675')][_0x4fc67a('0x2623')]+_0x4fc67a('0x1c19'):''}),_0x4b775a(_0x308c1e);})[_0x53bf83('0x223b')](function(_0x247852){var _0x21cae0=_0x53bf83;if(_0x247852[_0x21cae0('0x11d0')]&&_0x247852[_0x21cae0('0x11d0')][_0x21cae0('0xcd2')]&&_0x247852[_0x21cae0('0x11d0')][_0x21cae0('0xcd2')][_0x21cae0('0x25ae')]){_0x4db797[_0x21cae0('0xcd2')]=_0x247852['data'][_0x21cae0('0xcd2')]||[{'message':_0x247852['toString'](),'type':_0x21cae0('0x244c')}];for(var _0x417064=0x0;_0x417064<_0x247852[_0x21cae0('0x11d0')][_0x21cae0('0xcd2')]['length'];_0x417064++){_0x18556b[_0x21cae0('0x8c8')]({'title':_0x247852[_0x21cae0('0x11d0')][_0x21cae0('0xcd2')][_0x417064][_0x21cae0('0x62e')],'msg':_0x247852[_0x21cae0('0x11d0')][_0x21cae0('0xcd2')][_0x417064][_0x21cae0('0x27e8')]});}}else _0x18556b[_0x21cae0('0x8c8')]({'title':_0x247852[_0x21cae0('0x2833')]?_0x21cae0('0x27f2')+_0x247852[_0x21cae0('0x2833')]+_0x21cae0('0x1b7c')+_0x247852['statusText']:_0x21cae0('0x244c'),'msg':_0x247852[_0x21cae0('0x11d0')]?JSON[_0x21cae0('0x3ad')](_0x247852[_0x21cae0('0x11d0')][_0x21cae0('0x27e8')]):_0x247852[_0x21cae0('0x94f')]()});});}function _0x3fa55f(_0x2d615d){var _0x31633f=_0x4027cc;_0x4db797[_0x31633f('0xcd2')]=[];var _0x548e50=_0x1d3b21[_0x31633f('0xa5')]()[_0x31633f('0x13e4')](_0x31633f('0x24d0'))[_0x31633f('0xd0')](_0x31633f('0xffe'))[_0x31633f('0x4d1')](_0x31633f('0x2575'))['ok']('Delete')[_0x31633f('0x2c1')](_0x31633f('0x8a3'))[_0x31633f('0x1345')](_0x2d615d);_0x1d3b21['show'](_0x548e50)[_0x31633f('0xe19')](function(){var _0x70f1f2=_0x31633f;_0x22a7ee[_0x70f1f2('0x24c2')][_0x70f1f2('0x229e')]({'id':_0x4db797[_0x70f1f2('0x675')]['id']})[_0x70f1f2('0xe59')]['then'](function(){var _0x5bccf2=_0x70f1f2;_0x32d445()[_0x5bccf2('0xa8b')](_0x4db797[_0x5bccf2('0x796')],{'id':_0x4db797[_0x5bccf2('0x675')]['id']}),_0x18556b[_0x5bccf2('0x425')]({'title':_0x5bccf2('0x1520'),'msg':(_0x4db797[_0x5bccf2('0x675')]['name']||'dynamics365Account')+_0x5bccf2('0x2182')}),_0x4b775a(_0x4db797['dynamics365Account']);})[_0x70f1f2('0x223b')](function(_0x24d85c){var _0x283625=_0x70f1f2;if(_0x24d85c['data']&&_0x24d85c[_0x283625('0x11d0')][_0x283625('0xcd2')]&&_0x24d85c[_0x283625('0x11d0')][_0x283625('0xcd2')][_0x283625('0x25ae')]){_0x4db797[_0x283625('0xcd2')]=_0x24d85c[_0x283625('0x11d0')][_0x283625('0xcd2')]||[{'message':_0x24d85c[_0x283625('0x94f')](),'type':_0x283625('0xaa9')}];for(var _0x5c6f80=0x0;_0x5c6f80<_0x24d85c[_0x283625('0x11d0')][_0x283625('0xcd2')][_0x283625('0x25ae')];_0x5c6f80++){_0x18556b[_0x283625('0x8c8')]({'title':_0x24d85c['data'][_0x283625('0xcd2')][_0x5c6f80][_0x283625('0x62e')],'msg':_0x24d85c['data'][_0x283625('0xcd2')][_0x5c6f80][_0x283625('0x27e8')]});}}else _0x18556b[_0x283625('0x8c8')]({'title':_0x24d85c[_0x283625('0x2833')]?_0x283625('0x27f2')+_0x24d85c['status']+_0x283625('0x1b7c')+_0x24d85c[_0x283625('0x1fd7')]:_0x283625('0xaa9'),'msg':_0x24d85c[_0x283625('0x11d0')]?JSON[_0x283625('0x3ad')](_0x24d85c[_0x283625('0x11d0')][_0x283625('0x27e8')]):_0x24d85c[_0x283625('0x27e8')]||_0x24d85c['toString']()});});},function(){});}function _0x3ababc(_0x51e913){return _0x51e913===null?undefined:new Date(_0x51e913);}function _0x4b775a(_0x2a0f58){var _0x3826b7=_0x4027cc;_0x1d3b21[_0x3826b7('0x11ed')](_0x2a0f58);}}const _0x58d3a5=_0x55f471,_0x57a167=_0x59426a['p']+_0xb635d2('0x820');_0x42eb7a['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0x796'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x42eb7a(_0x1ff1f0,_0x3eb323,_0x1a0e9f,_0xdf26c9,_0x1da5a4,_0x4ba70a,_0x169b2f,_0x1677dc,_0x5a5b81,_0x57e347,_0x1328a3,_0x68063c,_0x59194f,_0x286db5,_0x5c33c3,_0x2cfc2c,_0x149942){var _0x5e9b5d=_0xb635d2,_0x189815=this;_0x189815['license']=_0x2cfc2c,_0x189815[_0x5e9b5d('0x22f1')]=_0x149942,_0x189815['currentUser']=_0x5c33c3[_0x5e9b5d('0x1ef8')](),_0x189815[_0x5e9b5d('0x796')]=_0x5a5b81||{'count':0x0,'rows':[]},_0x189815[_0x5e9b5d('0x154f')]=_0x57e347,_0x189815['userProfileSection']=_0x1328a3&&_0x1328a3['count']==0x1?_0x1328a3[_0x5e9b5d('0x16a7')][0x0]:null,_0x189815[_0x5e9b5d('0xb3d')]=_0x5c33c3[_0x5e9b5d('0xd31')](_0x189815['userProfileSection']?_0x189815[_0x5e9b5d('0xb59')][_0x5e9b5d('0xb3d')]:null),_0x189815['table']=_0x5e9b5d('0x796'),_0x189815[_0x5e9b5d('0x14d6')]='',_0x189815['listOrderAsc']=null,_0x189815[_0x5e9b5d('0xb8c')]=[],_0x189815['query']={'fields':_0x5e9b5d('0x1af7'),'limit':0xa,'page':0x1},_0x189815[_0x5e9b5d('0x16a0')]=_0x455e46,_0x189815[_0x5e9b5d('0x238c')]=_0x378601,_0x189815[_0x5e9b5d('0x1d9e')]=_0x43d0b9,_0x189815[_0x5e9b5d('0x425')]=_0x509f93,_0x189815[_0x5e9b5d('0xf34')]=_0x5da898,_0x189815[_0x5e9b5d('0x16fb')]=_0x49a5be,_0x189815[_0x5e9b5d('0x19f7')]=_0x20a698,_0x189815[_0x5e9b5d('0x324')]=_0x225b8a,_0x189815[_0x5e9b5d('0xfa0')]=_0x217183,_0x189815[_0x5e9b5d('0x2795')]=_0x365087,_0x189815['selectAllDynamics365Accounts']=_0x4bdad2;function _0x455e46(_0x2dd1ed){var _0x33b553=_0x5e9b5d;_0x1a0e9f['go'](_0x33b553('0x8b9'),{'id':_0x2dd1ed['id'],'dynamics365Account':_0x2dd1ed,'crudPermissions':_0x189815[_0x33b553('0xb3d')]});}function _0x378601(_0x3bc355){var _0x335933=_0x5e9b5d;return _0x68063c[_0x335933('0x24c2')][_0x335933('0x23f8')]({'id':_0x3bc355['id'],'test':!![]})[_0x335933('0xe59')]['then'](function(){var _0x1d0ded=_0x335933;_0x286db5[_0x1d0ded('0x425')]({'title':_0x1d0ded('0x16b3'),'msg':_0x1d0ded('0xd96')});})[_0x335933('0x223b')](function(_0x53ed2a){var _0x22a74e=_0x335933;_0x286db5[_0x22a74e('0x8c8')]({'title':_0x22a74e('0x16b3'),'msg':_0x53ed2a[_0x22a74e('0x11d0')]?_0x53ed2a[_0x22a74e('0x11d0')][_0x22a74e('0x27e8')]?_0x53ed2a['data'][_0x22a74e('0x27e8')]:JSON[_0x22a74e('0x3ad')](_0x53ed2a[_0x22a74e('0x11d0')]):_0x53ed2a[_0x22a74e('0x94f')]()});});}function _0x43d0b9(_0x480ac5,_0x68b302){var _0x1278ca=_0x5e9b5d,_0x43afab=_0x1da5a4[_0x1278ca('0xa5')]()[_0x1278ca('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()[_0x1278ca('0x1df2')]('dynamics365Account')+'?')[_0x1278ca('0x221c')](_0x1278ca('0xab2')+(_0x480ac5[_0x1278ca('0x2623')]||_0x1278ca('0x675'))+_0x1278ca('0x27bb')+_0x1278ca('0x21bd'))[_0x1278ca('0x4d1')](_0x1278ca('0x122e'))[_0x1278ca('0x1345')](_0x68b302)['ok']('OK')[_0x1278ca('0x2c1')]('CANCEL');_0x1da5a4[_0x1278ca('0x26b2')](_0x43afab)['then'](function(){_0x20a698(_0x480ac5);},function(){var _0x5d49aa=_0x1278ca;console[_0x5d49aa('0x1fe9')]('CANCEL');});}var _0x2048d4=!![],_0x2b4ff9=0x1;_0x1ff1f0[_0x5e9b5d('0x107')](_0x5e9b5d('0x20cb'),function(_0x33cb8b,_0x1952f3){var _0x5bdfc0=_0x5e9b5d;_0x2048d4?_0x169b2f(function(){_0x2048d4=![];}):(!_0x1952f3&&(_0x2b4ff9=_0x189815[_0x5bdfc0('0xa16')][_0x5bdfc0('0xc08')]),_0x33cb8b!==_0x1952f3&&(_0x189815[_0x5bdfc0('0xa16')][_0x5bdfc0('0xc08')]=0x1),!_0x33cb8b&&(_0x189815['query'][_0x5bdfc0('0xc08')]=_0x2b4ff9),_0x189815['getDynamics365Accounts']());});function _0x509f93(_0x164ade){var _0x4f6e81=_0x5e9b5d;_0x189815[_0x4f6e81('0x796')]=_0x164ade||{'count':0x0,'rows':[]};}function _0x5da898(){var _0x33024d=_0x5e9b5d;_0x189815['query'][_0x33024d('0xab0')]=(_0x189815[_0x33024d('0xa16')][_0x33024d('0xc08')]-0x1)*_0x189815[_0x33024d('0xa16')][_0x33024d('0x1b6d')],_0x5c33c3[_0x33024d('0x179e')](_0x33024d('0xd14'))?_0x189815[_0x33024d('0x9c8')]=_0x68063c['intDynamics365Account'][_0x33024d('0x22d5')](_0x189815[_0x33024d('0xa16')],_0x509f93)[_0x33024d('0xe59')]:(_0x189815[_0x33024d('0xa16')]['id']=_0x189815['userProfile']['id'],_0x189815['query'][_0x33024d('0x1e59')]=_0x33024d('0x142d'),_0x189815[_0x33024d('0x9c8')]=_0x68063c[_0x33024d('0x154f')][_0x33024d('0x14e6')](_0x189815[_0x33024d('0xa16')],_0x509f93)[_0x33024d('0xe59')]);}function _0x49a5be(_0x485662,_0xc2fbc3){var _0x511738=_0x5e9b5d;_0x1da5a4[_0x511738('0x26b2')]({'controller':_0x511738('0x68c'),'controllerAs':'vm','templateUrl':_0x57a167,'parent':angular[_0x511738('0x24a1')](_0x4ba70a['body']),'targetEvent':_0x485662,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0xc2fbc3,'dynamics365Accounts':_0x189815['dynamics365Accounts'][_0x511738('0x16a7')],'license':_0x189815[_0x511738('0x5c1')],'setting':_0x189815['setting'],'crudPermissions':_0x189815[_0x511738('0xb3d')]}});}function _0x20a698(_0x86abe){var _0x87bd34=_0x5e9b5d;_0x68063c[_0x87bd34('0x24c2')]['delete']({'id':_0x86abe['id']})['$promise'][_0x87bd34('0xe19')](function(){var _0x88b923=_0x87bd34;_0x32d445()['remove'](_0x189815['dynamics365Accounts']['rows'],{'id':_0x86abe['id']}),_0x189815[_0x88b923('0x796')]['count']-=0x1,!_0x189815[_0x88b923('0x796')][_0x88b923('0x16a7')][_0x88b923('0x25ae')]&&_0x189815['getDynamics365Accounts'](),_0x286db5[_0x88b923('0x425')]({'title':_0x32d445()[_0x88b923('0x1df2')](_0x88b923('0x20c3'))+'\x20deleted!','msg':_0x86abe[_0x88b923('0x2623')]?_0x86abe[_0x88b923('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x87bd34('0x223b')](function(_0xdae38e){var _0x892de8=_0x87bd34;if(_0xdae38e['data']&&_0xdae38e[_0x892de8('0x11d0')][_0x892de8('0xcd2')]&&_0xdae38e['data'][_0x892de8('0xcd2')]['length']){_0x189815['errors']=_0xdae38e[_0x892de8('0x11d0')][_0x892de8('0xcd2')]||[{'message':_0xdae38e['toString'](),'type':'SYSTEM:DELETEintDynamics365Account'}];for(var _0x5a950c=0x0;_0x5a950c<_0xdae38e[_0x892de8('0x11d0')][_0x892de8('0xcd2')]['length'];_0x5a950c++){_0x286db5[_0x892de8('0x8c8')]({'title':_0xdae38e['data'][_0x892de8('0xcd2')][_0x5a950c][_0x892de8('0x62e')],'msg':_0xdae38e['data'][_0x892de8('0xcd2')][_0x5a950c][_0x892de8('0x27e8')]});}}else _0x286db5[_0x892de8('0x8c8')]({'title':_0xdae38e[_0x892de8('0x2833')]?_0x892de8('0x27f2')+_0xdae38e[_0x892de8('0x2833')]+_0x892de8('0x1b7c')+_0xdae38e[_0x892de8('0x1fd7')]:_0x892de8('0xffb'),'msg':_0xdae38e[_0x892de8('0x11d0')]?JSON[_0x892de8('0x3ad')](_0xdae38e['data'][_0x892de8('0x27e8')]):_0xdae38e['message']||_0xdae38e[_0x892de8('0x94f')]()});});}function _0x225b8a(){var _0x3c1898=_0x5e9b5d,_0x298f36=angular['copy'](_0x189815[_0x3c1898('0xb8c')]);return _0x189815[_0x3c1898('0xb8c')]=[],_0x298f36;}function _0x217183(_0x4dd38d){var _0x53b77c=_0x5e9b5d,_0x4f9e40=_0x1da5a4['confirm']()[_0x53b77c('0x13e4')](_0x53b77c('0x22bc'))[_0x53b77c('0x221c')](''+_0x189815[_0x53b77c('0xb8c')][_0x53b77c('0x25ae')]+_0x53b77c('0x5bc')+_0x53b77c('0x21bd'))[_0x53b77c('0x4d1')](_0x53b77c('0x385'))[_0x53b77c('0x1345')](_0x4dd38d)['ok']('OK')[_0x53b77c('0x2c1')](_0x53b77c('0x17'));_0x1da5a4['show'](_0x4f9e40)[_0x53b77c('0xe19')](function(){var _0x3e543a=_0x53b77c;_0x189815['selectedDynamics365Accounts'][_0x3e543a('0x1d7e')](function(_0x170ed6){_0x20a698(_0x170ed6);}),_0x189815[_0x3e543a('0xb8c')]=[];});}function _0x365087(){_0x189815['selectedDynamics365Accounts']=[];}function _0x4bdad2(){var _0xfdde3c=_0x5e9b5d;_0x189815[_0xfdde3c('0xb8c')]=_0x189815[_0xfdde3c('0x796')][_0xfdde3c('0x16a7')];}}const _0x3a8164=_0x42eb7a,_0x5a7152=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html/dialog-[chunkhash].html',_0x28f370=_0x59426a['p']+_0xb635d2('0x1e04');_0xbac750[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$document',_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0xbac750(_0x4f58e2,_0x544d9b,_0x485b63,_0x2d3e5c,_0x21cd0d){var _0x552291=_0xb635d2,_0x34da7a=this;_0x34da7a[_0x552291('0x15a5')]=_0x21cd0d[_0x552291('0x1ef8')](),_0x34da7a[_0x552291('0x675')]={},_0x34da7a[_0x552291('0x552')]={},_0x34da7a[_0x552291('0x244e')]=[],_0x34da7a['selectedDynamics365Configuration']=-0x1,_0x34da7a['crudPermissions'],_0x34da7a['init']=_0x78d4b5,_0x34da7a[_0x552291('0x1e68')]=_0x549777,_0x34da7a['createOrEditDynamics365Configuration']=_0x575cfa,_0x34da7a[_0x552291('0x267c')]=_0x18c616;function _0x78d4b5(_0x21c7bc,_0x45a051){var _0x51a501=_0x552291;_0x34da7a['dynamics365Account']=_0x21c7bc,_0x34da7a[_0x51a501('0xb3d')]=typeof _0x45a051!==_0x51a501('0x1143')?_0x45a051:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x485b63[_0x51a501('0x24c2')][_0x51a501('0x1ac6')]({'id':_0x34da7a['dynamics365Account']['id'],'sort':'-updatedAt'})[_0x51a501('0xe59')]['then'](function(_0x164e1c){var _0x30aa70=_0x51a501;return _0x34da7a[_0x30aa70('0x244e')]=_0x164e1c[_0x30aa70('0x16a7')]?_0x164e1c[_0x30aa70('0x16a7')]:[],_0x34da7a[_0x30aa70('0x244e')][_0x30aa70('0x25ae')]&&_0x34da7a['getDynamics365Configuration'](0x0),_0x485b63[_0x30aa70('0x19a5')][_0x30aa70('0x22d5')]({'nolimit':!![],'sort':'name'})[_0x30aa70('0xe59')];})[_0x51a501('0xe19')](function(_0xfc2f05){var _0x564bf5=_0x51a501;_0x34da7a[_0x564bf5('0x1a9e')]=_0xfc2f05['rows']?_0xfc2f05[_0x564bf5('0x16a7')]:[],_0x34da7a[_0x564bf5('0x27b3')]=_0x32d445()[_0x564bf5('0x226f')](_0x34da7a['variables'],'id');})[_0x51a501('0x223b')](function(_0x1f0dad){var _0x9d9614=_0x51a501;_0x2d3e5c[_0x9d9614('0x8c8')]({'title':_0x1f0dad[_0x9d9614('0x2833')]?_0x9d9614('0x27f2')+_0x1f0dad[_0x9d9614('0x2833')]+_0x9d9614('0x1b7c')+_0x1f0dad[_0x9d9614('0x1fd7')]:_0x9d9614('0xf5b'),'msg':_0x1f0dad['data']?JSON['stringify'](_0x1f0dad[_0x9d9614('0x11d0')]):_0x1f0dad[_0x9d9614('0x94f')]()});});}function _0x549777(_0x3e31ce){var _0x296fbe=_0x552291;_0x34da7a[_0x296fbe('0x552')]=_0x34da7a[_0x296fbe('0x244e')][_0x3e31ce],_0x34da7a[_0x296fbe('0x1f3a')]=_0x3e31ce,_0x485b63[_0x296fbe('0x1dfb')][_0x296fbe('0xe77')]({'id':_0x34da7a[_0x296fbe('0x552')]['id']})[_0x296fbe('0xe59')]['then'](function(_0x16d78f){var _0x4252ed=_0x296fbe;return _0x34da7a[_0x4252ed('0x126e')]=_0x16d78f['rows']?_0x16d78f[_0x4252ed('0x16a7')]:[],_0x485b63[_0x4252ed('0x1dfb')]['getDescriptions']({'id':_0x34da7a[_0x4252ed('0x552')]['id']})[_0x4252ed('0xe59')];})[_0x296fbe('0xe19')](function(_0x3bc625){var _0x45b156=_0x296fbe;return _0x34da7a[_0x45b156('0xb9c')]=_0x3bc625[_0x45b156('0x16a7')]?_0x3bc625[_0x45b156('0x16a7')]:[],_0x485b63[_0x45b156('0x1dfb')][_0x45b156('0x23f8')]({'id':_0x34da7a[_0x45b156('0x552')]['id']})[_0x45b156('0xe59')];})[_0x296fbe('0xe19')](function(_0x12627b){var _0x332df7=_0x296fbe;_0x34da7a[_0x332df7('0x1d17')]=_0x12627b[_0x332df7('0x16a7')]?_0x12627b[_0x332df7('0x16a7')]:[];})[_0x296fbe('0x223b')](function(_0x56c049){var _0x2f4f9c=_0x296fbe;_0x2d3e5c[_0x2f4f9c('0x8c8')]({'title':_0x56c049['status']?'API:'+_0x56c049[_0x2f4f9c('0x2833')]+_0x2f4f9c('0x1b7c')+_0x56c049[_0x2f4f9c('0x1fd7')]:_0x2f4f9c('0x82a'),'msg':_0x56c049[_0x2f4f9c('0x11d0')]?JSON[_0x2f4f9c('0x3ad')](_0x56c049['data']):_0x56c049[_0x2f4f9c('0x94f')]()});});}function _0x575cfa(_0x9b1bb3,_0x7a59ce){var _0x442d56=_0x552291;_0x4f58e2['show']({'controller':_0x442d56('0x22a9'),'controllerAs':'vm','templateUrl':_0x5a7152,'parent':angular['element'](_0x544d9b[_0x442d56('0x19b2')]),'targetEvent':_0x9b1bb3,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0x7a59ce,'configurations':_0x34da7a[_0x442d56('0x244e')],'license':null,'setting':null,'crudPermissions':_0x34da7a[_0x442d56('0xb3d')]}})[_0x442d56('0x23')](function(){var _0x2e789d=_0x442d56;_0x34da7a[_0x2e789d('0x1e68')](0x0);});}function _0x18c616(_0x2351e2,_0x52e381){var _0x589d0c=_0x552291,_0x472b0e=_0x4f58e2[_0x589d0c('0xa5')]()['title'](_0x589d0c('0x134f'))['htmlContent'](_0x589d0c('0xab2')+(_0x52e381['name']||_0x589d0c('0x552'))+_0x589d0c('0x27bb')+_0x589d0c('0x21bd'))[_0x589d0c('0x4d1')](_0x589d0c('0x1942'))[_0x589d0c('0x1345')](_0x2351e2)['ok']('OK')[_0x589d0c('0x2c1')]('CANCEL');_0x4f58e2[_0x589d0c('0x26b2')](_0x472b0e)[_0x589d0c('0xe19')](function(){var _0x38c5fb=_0x589d0c;_0x485b63[_0x38c5fb('0x1dfb')]['delete']({'id':_0x52e381['id']})[_0x38c5fb('0xe59')][_0x38c5fb('0xe19')](function(){var _0x2f2939=_0x38c5fb;_0x32d445()[_0x2f2939('0xa8b')](_0x34da7a[_0x2f2939('0x244e')],{'id':_0x52e381['id']}),_0x2d3e5c[_0x2f2939('0x425')]({'title':_0x2f2939('0x13a4'),'msg':_0x52e381[_0x2f2939('0x2623')]?_0x52e381[_0x2f2939('0x2623')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x30c03d){var _0x564a5b=_0x38c5fb;_0x2d3e5c[_0x564a5b('0x8c8')]({'title':_0x30c03d[_0x564a5b('0x2833')]?_0x564a5b('0x27f2')+_0x30c03d[_0x564a5b('0x2833')]+_0x564a5b('0x1b7c')+_0x30c03d['statusText']:_0x564a5b('0x127'),'msg':_0x30c03d[_0x564a5b('0x11d0')]?JSON['stringify'](_0x30c03d[_0x564a5b('0x11d0')]):_0x30c03d[_0x564a5b('0x94f')]()});})[_0x38c5fb('0x23')](function(){var _0x2e0a99=_0x38c5fb;_0x34da7a[_0x2e0a99('0x1e68')](0x0);});},function(){var _0x397a59=_0x589d0c;console[_0x397a59('0x1fe9')](_0x397a59('0x17'));});}_0x34da7a[_0x552291('0x2508')]=[],_0x34da7a[_0x552291('0x16b2')]=_0x506672,_0x34da7a[_0x552291('0x10dc')]=_0x3edfba,_0x34da7a[_0x552291('0x1c53')]=_0x4dbe56;function _0x506672(_0x2e3fd7,_0x51a6cc){var _0x4796e8=_0x552291;_0x4f58e2[_0x4796e8('0x26b2')]({'controller':_0x4796e8('0xa9d'),'controllerAs':'vm','templateUrl':_0x28f370,'parent':angular[_0x4796e8('0x24a1')](_0x544d9b[_0x4796e8('0x19b2')]),'targetEvent':_0x2e3fd7,'clickOutsideToClose':!![],'locals':{'type':_0x4796e8('0x9ec'),'item':_0x51a6cc,'items':_0x34da7a['subjects'],'configuration':_0x34da7a['dynamics365Configuration'],'account':_0x34da7a['dynamics365Account'],'license':null,'setting':null,'crudPermissions':_0x34da7a['crudPermissions']}});}function _0x393ab7(_0x2ab032){var _0x525e1d=_0x552291;_0x485b63['intDynamics365Field'][_0x525e1d('0x229e')]({'id':_0x2ab032['id']})[_0x525e1d('0xe59')][_0x525e1d('0xe19')](function(){var _0x5eadb3=_0x525e1d;_0x32d445()['remove'](_0x34da7a[_0x5eadb3('0x126e')],{'id':_0x2ab032['id']}),_0x2d3e5c[_0x5eadb3('0x425')]({'title':_0x5eadb3('0x191f'),'msg':_0x5eadb3('0xae3')});})[_0x525e1d('0x223b')](function(_0x39258c){var _0x276421=_0x525e1d;_0x2d3e5c[_0x276421('0x8c8')]({'title':_0x39258c['status']?_0x276421('0x27f2')+_0x39258c['status']+_0x276421('0x1b7c')+_0x39258c['statusText']:_0x276421('0x1dde'),'msg':_0x39258c[_0x276421('0x11d0')]?JSON[_0x276421('0x3ad')](_0x39258c[_0x276421('0x11d0')]):_0x39258c[_0x276421('0x94f')]()});});}function _0x3edfba(_0x2afbc0,_0x419608){var _0x551304=_0x552291,_0x30089b=_0x4f58e2[_0x551304('0xa5')]()[_0x551304('0x13e4')](_0x551304('0x158a'))[_0x551304('0x221c')](_0x551304('0x5f9')+_0x551304('0x21bd'))['ariaLabel']('delete\x20subject')[_0x551304('0x1345')](_0x2afbc0)['ok']('OK')[_0x551304('0x2c1')](_0x551304('0x17'));_0x4f58e2[_0x551304('0x26b2')](_0x30089b)[_0x551304('0xe19')](function(){_0x393ab7(_0x419608);},function(){var _0x785b94=_0x551304;console[_0x785b94('0x1fe9')](_0x785b94('0x17'));});}function _0x4dbe56(_0x499588){var _0x31b18c=_0x552291,_0x274536=_0x4f58e2[_0x31b18c('0xa5')]()[_0x31b18c('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x31b18c('0x221c')](_0x31b18c('0xab2')+_0x34da7a[_0x31b18c('0x2508')][_0x31b18c('0x25ae')]+_0x31b18c('0x5bc')+_0x31b18c('0x21bd'))['ariaLabel'](_0x31b18c('0xbc0'))['targetEvent'](_0x499588)['ok']('OK')['cancel']('CANCEL');_0x4f58e2[_0x31b18c('0x26b2')](_0x274536)['then'](function(){var _0x4c8f56=_0x31b18c;_0x34da7a[_0x4c8f56('0x2508')]['forEach'](function(_0x48779d){_0x393ab7(_0x48779d);}),_0x34da7a['selectedSubjects']=[];});}_0x34da7a[_0x552291('0x858')]=[],_0x34da7a['createOrEditDescription']=_0x4463b3,_0x34da7a[_0x552291('0x95b')]=_0x2a3351,_0x34da7a['deleteSelectedDescriptions']=_0x342c7c;function _0x4463b3(_0x159be5,_0x64e926){var _0x20fbab=_0x552291;_0x4f58e2['show']({'controller':_0x20fbab('0xa9d'),'controllerAs':'vm','templateUrl':_0x28f370,'parent':angular[_0x20fbab('0x24a1')](_0x544d9b[_0x20fbab('0x19b2')]),'targetEvent':_0x159be5,'clickOutsideToClose':!![],'locals':{'type':_0x20fbab('0x897'),'item':_0x64e926,'items':_0x34da7a['descriptions'],'configuration':_0x34da7a[_0x20fbab('0x552')],'account':_0x34da7a[_0x20fbab('0x675')],'license':null,'setting':null,'crudPermissions':_0x34da7a[_0x20fbab('0xb3d')]}});}function _0x362b44(_0x456ce5){var _0x22caaf=_0x552291;_0x485b63['intDynamics365Field'][_0x22caaf('0x229e')]({'id':_0x456ce5['id']})[_0x22caaf('0xe59')][_0x22caaf('0xe19')](function(){var _0x5ccd01=_0x22caaf;_0x32d445()['remove'](_0x34da7a[_0x5ccd01('0xb9c')],{'id':_0x456ce5['id']}),_0x2d3e5c[_0x5ccd01('0x425')]({'title':_0x5ccd01('0x1c52'),'msg':_0x5ccd01('0x1139')});})[_0x22caaf('0x223b')](function(_0x37c141){var _0xcafa7b=_0x22caaf;_0x2d3e5c[_0xcafa7b('0x8c8')]({'title':_0x37c141[_0xcafa7b('0x2833')]?_0xcafa7b('0x27f2')+_0x37c141['status']+_0xcafa7b('0x1b7c')+_0x37c141[_0xcafa7b('0x1fd7')]:_0xcafa7b('0x1dde'),'msg':_0x37c141[_0xcafa7b('0x11d0')]?JSON['stringify'](_0x37c141[_0xcafa7b('0x11d0')]):_0x37c141['toString']()});});}function _0x2a3351(_0x55dfcd,_0x49a5ba){var _0x4b7722=_0x552291,_0x55891f=_0x4f58e2['confirm']()['title'](_0x4b7722('0x1c50'))[_0x4b7722('0x221c')]('Description'+'\x20will\x20be\x20deleted.')[_0x4b7722('0x4d1')](_0x4b7722('0x1dc0'))[_0x4b7722('0x1345')](_0x55dfcd)['ok']('OK')[_0x4b7722('0x2c1')](_0x4b7722('0x17'));_0x4f58e2[_0x4b7722('0x26b2')](_0x55891f)[_0x4b7722('0xe19')](function(){_0x362b44(_0x49a5ba);},function(){var _0x4657d7=_0x4b7722;console[_0x4657d7('0x1fe9')](_0x4657d7('0x17'));});}function _0x342c7c(_0x1d420c){var _0x38a02a=_0x552291,_0x467243=_0x4f58e2['confirm']()['title'](_0x38a02a('0x23f4'))[_0x38a02a('0x221c')](_0x38a02a('0xab2')+_0x34da7a[_0x38a02a('0x858')]['length']+_0x38a02a('0x5bc')+_0x38a02a('0x21bd'))['ariaLabel'](_0x38a02a('0x162'))['targetEvent'](_0x1d420c)['ok']('OK')[_0x38a02a('0x2c1')](_0x38a02a('0x17'));_0x4f58e2[_0x38a02a('0x26b2')](_0x467243)['then'](function(){var _0x1d0355=_0x38a02a;_0x34da7a['selectedDescriptions'][_0x1d0355('0x1d7e')](function(_0x402756){_0x362b44(_0x402756);}),_0x34da7a[_0x1d0355('0x858')]=[];});}_0x34da7a[_0x552291('0xf97')]=[],_0x34da7a['createOrEditField']=_0x32b080,_0x34da7a[_0x552291('0x2152')]=_0x42a7b1,_0x34da7a[_0x552291('0xdfd')]=_0x4ba95a;function _0x32b080(_0x1f9df0,_0xefcc1d){var _0x44eebf=_0x552291;_0x4f58e2[_0x44eebf('0x26b2')]({'controller':_0x44eebf('0xa9d'),'controllerAs':'vm','templateUrl':_0x28f370,'parent':angular[_0x44eebf('0x24a1')](_0x544d9b['body']),'targetEvent':_0x1f9df0,'clickOutsideToClose':!![],'locals':{'type':_0x44eebf('0x15d1'),'item':_0xefcc1d,'items':_0x34da7a[_0x44eebf('0x1d17')],'configuration':_0x34da7a[_0x44eebf('0x552')],'account':_0x34da7a[_0x44eebf('0x675')],'license':null,'setting':null,'crudPermissions':_0x34da7a[_0x44eebf('0xb3d')]}});}function _0x1b6c43(_0x2643f1){var _0x1b3cdf=_0x552291;_0x485b63[_0x1b3cdf('0x25ec')][_0x1b3cdf('0x229e')]({'id':_0x2643f1['id']})['$promise'][_0x1b3cdf('0xe19')](function(){var _0x55638a=_0x1b3cdf;_0x32d445()[_0x55638a('0xa8b')](_0x34da7a[_0x55638a('0x1d17')],{'id':_0x2643f1['id']}),_0x2d3e5c[_0x55638a('0x425')]({'title':_0x55638a('0x1e5d'),'msg':'Field\x20has\x20been\x20deleted!'});})['catch'](function(_0x2754e9){var _0x1fe0c0=_0x1b3cdf;_0x2d3e5c['error']({'title':_0x2754e9[_0x1fe0c0('0x2833')]?_0x1fe0c0('0x27f2')+_0x2754e9[_0x1fe0c0('0x2833')]+'\x20-\x20'+_0x2754e9['statusText']:_0x1fe0c0('0x1dde'),'msg':_0x2754e9['data']?JSON[_0x1fe0c0('0x3ad')](_0x2754e9[_0x1fe0c0('0x11d0')]):_0x2754e9['toString']()});});}function _0x42a7b1(_0x5b4eb1,_0x5ccca8){var _0xc37530=_0x552291,_0x202368=_0x4f58e2[_0xc37530('0xa5')]()['title'](_0xc37530('0x8b7'))[_0xc37530('0x221c')](_0xc37530('0x13a7')+_0xc37530('0x21bd'))[_0xc37530('0x4d1')](_0xc37530('0x23f7'))[_0xc37530('0x1345')](_0x5b4eb1)['ok']('OK')[_0xc37530('0x2c1')]('CANCEL');_0x4f58e2[_0xc37530('0x26b2')](_0x202368)[_0xc37530('0xe19')](function(){_0x1b6c43(_0x5ccca8);},function(){var _0x185b34=_0xc37530;console[_0x185b34('0x1fe9')]('CANCEL');});}function _0x4ba95a(_0x174fb7){var _0xee95a7=_0x552291,_0x3c5722=_0x4f58e2[_0xee95a7('0xa5')]()[_0xee95a7('0x13e4')](_0xee95a7('0x128c'))[_0xee95a7('0x221c')](_0xee95a7('0xab2')+_0x34da7a[_0xee95a7('0xf97')]['length']+_0xee95a7('0x5bc')+'\x20will\x20be\x20deleted.')[_0xee95a7('0x4d1')]('delete\x20fields')[_0xee95a7('0x1345')](_0x174fb7)['ok']('OK')[_0xee95a7('0x2c1')](_0xee95a7('0x17'));_0x4f58e2[_0xee95a7('0x26b2')](_0x3c5722)[_0xee95a7('0xe19')](function(){var _0x449173=_0xee95a7;_0x34da7a[_0x449173('0xf97')][_0x449173('0x1d7e')](function(_0x5ad3e2){_0x1b6c43(_0x5ad3e2);}),_0x34da7a[_0x449173('0xf97')]=[];});}}const _0x58662b=_0xbac750;_0x5528c9[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x244e'),_0xb635d2('0x552'),'api','Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x5528c9(_0x18d2f0,_0x333389,_0x2374d8,_0x1213cc,_0x16b817,_0x18aa14,_0x326ada,_0x152f7a,_0x3d39b9,_0x145780,_0xffb03c,_0x3887c8,_0x36819f,_0x14580a){var _0x43bb55=_0xb635d2,_0x3b8eae=this;_0x3b8eae[_0x43bb55('0x15a5')]=_0xffb03c[_0x43bb55('0x1ef8')](),_0x3b8eae[_0x43bb55('0xcd2')]=[],_0x3b8eae[_0x43bb55('0x22f1')]=_0x36819f,_0x3b8eae[_0x43bb55('0x5c1')]=_0x3887c8,_0x3b8eae[_0x43bb55('0xb3d')]=_0x14580a,_0x3b8eae[_0x43bb55('0x1ccb')]={},_0x3b8eae[_0x43bb55('0x25ac')]=_0x3b8eae[_0x43bb55('0x22f1')]&&_0x3b8eae[_0x43bb55('0x22f1')][_0x43bb55('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3b8eae['title']=_0x43bb55('0x113f'),_0x3b8eae[_0x43bb55('0x552')]=angular['copy'](_0x3d39b9),_0x3b8eae[_0x43bb55('0x244e')]=_0x152f7a,_0x3b8eae[_0x43bb55('0x1de4')]=![];!_0x3b8eae[_0x43bb55('0x552')]&&(_0x3b8eae[_0x43bb55('0x552')]={'channel':'voice','type':_0x43bb55('0x1a7a'),'ticketType':_0x43bb55('0x27a')},_0x3b8eae[_0x43bb55('0x13e4')]='INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION',_0x3b8eae[_0x43bb55('0x1de4')]=!![]);_0x3b8eae[_0x43bb55('0x1b2d')]=_0x29d40e,_0x3b8eae['saveDynamics365Configuration']=_0x22a5cd,_0x3b8eae[_0x43bb55('0x267c')]=_0x698f5e,_0x3b8eae[_0x43bb55('0x2635')]=_0x136296,_0x3b8eae[_0x43bb55('0x2584')]=_0x3b8183;function _0x29d40e(){var _0x40a199=_0x43bb55;_0x3b8eae[_0x40a199('0xcd2')]=[],_0x145780[_0x40a199('0x24c2')][_0x40a199('0x2402')]({'id':_0x333389[_0x40a199('0x2ef')]['id']},_0x3b8eae[_0x40a199('0x552')])[_0x40a199('0xe59')][_0x40a199('0xe19')](function(_0x1aa38c){var _0x586c87=_0x40a199;_0x3b8eae['configurations'][_0x586c87('0x14c9')](_0x1aa38c[_0x586c87('0x250e')]()),_0x326ada['success']({'title':_0x586c87('0x27b8'),'msg':_0x3b8eae[_0x586c87('0x552')]['name']?_0x3b8eae['dynamics365Configuration']['name']+'\x20has\x20been\x20created!':''}),_0x3b8183(_0x1aa38c);})['catch'](function(_0x34bc2c){var _0x458a25=_0x40a199;if(_0x34bc2c['data']&&_0x34bc2c[_0x458a25('0x11d0')][_0x458a25('0xcd2')]&&_0x34bc2c['data'][_0x458a25('0xcd2')]['length']){_0x3b8eae['errors']=_0x34bc2c[_0x458a25('0x11d0')][_0x458a25('0xcd2')]||[{'message':_0x34bc2c[_0x458a25('0x94f')](),'type':'api.intDynamics365Configuration.save'}];for(var _0x123fa5=0x0;_0x123fa5<_0x34bc2c['data']['errors'][_0x458a25('0x25ae')];_0x123fa5+=0x1){_0x326ada[_0x458a25('0x8c8')]({'title':_0x34bc2c[_0x458a25('0x11d0')][_0x458a25('0xcd2')][_0x123fa5][_0x458a25('0x62e')],'msg':_0x34bc2c['data'][_0x458a25('0xcd2')][_0x123fa5][_0x458a25('0x27e8')]});}}else _0x326ada['error']({'title':_0x34bc2c[_0x458a25('0x2833')]?'API:'+_0x34bc2c[_0x458a25('0x2833')]+'\x20-\x20'+_0x34bc2c[_0x458a25('0x1fd7')]:_0x458a25('0x1891'),'msg':_0x34bc2c[_0x458a25('0x11d0')]?JSON[_0x458a25('0x3ad')](_0x34bc2c[_0x458a25('0x11d0')][_0x458a25('0x27e8')]):_0x34bc2c[_0x458a25('0x94f')]()});});}function _0x22a5cd(){var _0x670936=_0x43bb55;_0x3b8eae[_0x670936('0xcd2')]=[],_0x145780['intDynamics365Configuration']['update']({'id':_0x3b8eae[_0x670936('0x552')]['id']},_0x3b8eae[_0x670936('0x552')])[_0x670936('0xe59')][_0x670936('0xe19')](function(_0x2247f0){var _0x312447=_0x670936,_0x361d61=_0x32d445()[_0x312447('0xf15')](_0x3b8eae[_0x312447('0x244e')],{'id':_0x2247f0['id']});_0x361d61&&_0x32d445()[_0x312447('0x1d8')](_0x361d61,_0x32d445()[_0x312447('0xed5')](_0x2247f0[_0x312447('0x250e')](),_0x32d445()[_0x312447('0x1234')](_0x361d61))),_0x326ada[_0x312447('0x425')]({'title':_0x312447('0x240e'),'msg':_0x3b8eae[_0x312447('0x552')][_0x312447('0x2623')]?_0x3b8eae[_0x312447('0x552')][_0x312447('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x3b8183(_0x2247f0);})[_0x670936('0x223b')](function(_0x47b878){var _0x38656a=_0x670936;if(_0x47b878[_0x38656a('0x11d0')]&&_0x47b878[_0x38656a('0x11d0')][_0x38656a('0xcd2')]&&_0x47b878['data'][_0x38656a('0xcd2')]['length']){_0x3b8eae[_0x38656a('0xcd2')]=_0x47b878[_0x38656a('0x11d0')][_0x38656a('0xcd2')]||[{'message':_0x47b878['toString'](),'type':_0x38656a('0xa22')}];for(var _0x2a9aff=0x0;_0x2a9aff<_0x47b878[_0x38656a('0x11d0')][_0x38656a('0xcd2')][_0x38656a('0x25ae')];_0x2a9aff++){_0x326ada['error']({'title':_0x47b878[_0x38656a('0x11d0')][_0x38656a('0xcd2')][_0x2a9aff][_0x38656a('0x62e')],'msg':_0x47b878[_0x38656a('0x11d0')][_0x38656a('0xcd2')][_0x2a9aff][_0x38656a('0x27e8')]});}}else _0x326ada[_0x38656a('0x8c8')]({'title':_0x47b878['status']?'API:'+_0x47b878['status']+_0x38656a('0x1b7c')+_0x47b878['statusText']:'api.intDynamics365Configuration.update','msg':_0x47b878[_0x38656a('0x11d0')]?JSON[_0x38656a('0x3ad')](_0x47b878[_0x38656a('0x11d0')]['message']):_0x47b878[_0x38656a('0x94f')]()});});}function _0x698f5e(_0x70dcd6){var _0xf48727=_0x43bb55;_0x3b8eae[_0xf48727('0xcd2')]=[];var _0x4b93ff=_0x1213cc[_0xf48727('0xa5')]()[_0xf48727('0x13e4')]('Are\x20you\x20sure?')['content']('The\x20dynamics365Configuration\x20will\x20be\x20deleted.')[_0xf48727('0x4d1')](_0xf48727('0xa84'))['ok'](_0xf48727('0x2198'))[_0xf48727('0x2c1')](_0xf48727('0x8a3'))[_0xf48727('0x1345')](_0x70dcd6);_0x1213cc[_0xf48727('0x26b2')](_0x4b93ff)['then'](function(){var _0x2f17e6=_0xf48727;_0x145780[_0x2f17e6('0x1dfb')][_0x2f17e6('0x229e')]({'id':_0x3b8eae[_0x2f17e6('0x552')]['id']})['$promise'][_0x2f17e6('0xe19')](function(){var _0x36c1d1=_0x2f17e6;_0x32d445()['remove'](_0x3b8eae[_0x36c1d1('0x244e')],{'id':_0x3b8eae[_0x36c1d1('0x552')]['id']}),_0x326ada[_0x36c1d1('0x425')]({'title':'Dynamics365Configuration\x20properly\x20deleted!','msg':(_0x3b8eae[_0x36c1d1('0x552')][_0x36c1d1('0x2623')]||_0x36c1d1('0x552'))+_0x36c1d1('0x2182')}),_0x3b8183(_0x3b8eae['dynamics365Configuration']);})[_0x2f17e6('0x223b')](function(_0x4f5acf){var _0xfadf22=_0x2f17e6;if(_0x4f5acf[_0xfadf22('0x11d0')]&&_0x4f5acf[_0xfadf22('0x11d0')][_0xfadf22('0xcd2')]&&_0x4f5acf[_0xfadf22('0x11d0')][_0xfadf22('0xcd2')][_0xfadf22('0x25ae')]){_0x3b8eae[_0xfadf22('0xcd2')]=_0x4f5acf[_0xfadf22('0x11d0')]['errors']||[{'message':_0x4f5acf[_0xfadf22('0x94f')](),'type':_0xfadf22('0x6f3')}];for(var _0x44e4d3=0x0;_0x44e4d3<_0x4f5acf['data'][_0xfadf22('0xcd2')][_0xfadf22('0x25ae')];_0x44e4d3++){_0x326ada['error']({'title':_0x4f5acf[_0xfadf22('0x11d0')][_0xfadf22('0xcd2')][_0x44e4d3][_0xfadf22('0x62e')],'msg':_0x4f5acf[_0xfadf22('0x11d0')]['errors'][_0x44e4d3]['message']});}}else _0x326ada['error']({'title':_0x4f5acf[_0xfadf22('0x2833')]?'API:'+_0x4f5acf[_0xfadf22('0x2833')]+_0xfadf22('0x1b7c')+_0x4f5acf[_0xfadf22('0x1fd7')]:_0xfadf22('0x6f3'),'msg':_0x4f5acf[_0xfadf22('0x11d0')]?JSON[_0xfadf22('0x3ad')](_0x4f5acf[_0xfadf22('0x11d0')][_0xfadf22('0x27e8')]):_0x4f5acf[_0xfadf22('0x27e8')]||_0x4f5acf[_0xfadf22('0x94f')]()});});},function(){});}function _0x136296(_0x448049){return _0x448049===null?undefined:new Date(_0x448049);}function _0x3b8183(_0x133175){var _0x4dcaf3=_0x43bb55;_0x1213cc[_0x4dcaf3('0x11ed')](_0x133175);}}const _0x368be6=_0x5528c9;_0x4d4d8a['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location','$mdDialog','toasty',_0xb635d2('0x271e'),'items',_0xb635d2('0xdbb'),_0xb635d2('0xe8b'),_0xb635d2('0x62e'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4d4d8a(_0xc14af,_0x30ab1c,_0x5c50ed,_0x5f12bd,_0x21f131,_0x5e1c3c,_0x1f74d7,_0x1351ac,_0x2ad16f,_0xfc1fac,_0x329a34,_0x15b6bd,_0x321b72){var _0x4b3cdf=_0xb635d2,_0x2c61ec=this;_0x2c61ec[_0x4b3cdf('0x15a5')]=_0x15b6bd[_0x4b3cdf('0x1ef8')](),_0x2c61ec[_0x4b3cdf('0xcd2')]=[],_0x2c61ec[_0x4b3cdf('0x13e4')]='INTEGRATIONS.EDIT_'+_0x32d445()[_0x4b3cdf('0xcbc')](_0xfc1fac),_0x2c61ec[_0x4b3cdf('0xdbb')]=angular[_0x4b3cdf('0x89')](_0x1351ac),_0x2c61ec[_0x4b3cdf('0xe4b')]=_0x1f74d7,_0x2c61ec['type']=_0xfc1fac,_0x2c61ec[_0x4b3cdf('0xb3d')]=_0x321b72,_0x2c61ec[_0x4b3cdf('0xa3')]=![];!_0x2c61ec[_0x4b3cdf('0xdbb')]&&(_0x2c61ec[_0x4b3cdf('0xdbb')]={'type':_0x4b3cdf('0x19d1')},_0x2c61ec[_0x4b3cdf('0xdbb')][_0x32d445()[_0x4b3cdf('0xbf6')](_0xfc1fac)+'Id']=_0x5e1c3c['id'],_0x2c61ec[_0x4b3cdf('0x13e4')]=_0x4b3cdf('0x7e2')+_0x32d445()[_0x4b3cdf('0xcbc')](_0xfc1fac),_0x2c61ec[_0x4b3cdf('0xa3')]=!![]);_0x2c61ec[_0x4b3cdf('0x9ca')]=_0x23498d,_0x2c61ec[_0x4b3cdf('0x1384')]=_0x3d8290,_0x2c61ec[_0x4b3cdf('0xc32')]=_0x265868,_0x2c61ec[_0x4b3cdf('0x142b')]=_0x4ee83e,_0x2c61ec[_0x4b3cdf('0x2584')]=_0x5afe8d,_0x329a34[_0x4b3cdf('0x19a5')][_0x4b3cdf('0x22d5')]({'nolimit':!![]})['$promise'][_0x4b3cdf('0xe19')](function(_0x5461e1){var _0x29bae6=_0x4b3cdf;return _0x2c61ec[_0x29bae6('0x1a9e')]=_0x5461e1[_0x29bae6('0x16a7')]?_0x5461e1[_0x29bae6('0x16a7')]:[],_0x329a34[_0x29bae6('0x22cf')][_0x29bae6('0x215e')]()[_0x29bae6('0xe59')];})[_0x4b3cdf('0xe19')](function(_0x5a6367){var _0x5ca913=_0x4b3cdf;return _0x2c61ec[_0x5ca913('0x1230')]=_0x32d445()[_0x5ca913('0x11d3')](_0x32d445()[_0x5ca913('0x1234')](_0x5a6367),[_0x5ca913('0xe59'),'$resolved',_0x5ca913('0x15c9'),_0x5ca913('0x1ce9'),_0x5ca913('0x1bea')]),_0x2c61ec[_0x5ca913('0x1230')][_0x5ca913('0xb76')](_0x5ca913('0xeaa')),_0x329a34[_0x5ca913('0xa4e')][_0x5ca913('0x215e')]()[_0x5ca913('0xe59')];})['then'](function(_0x57d3f7){var _0x47aa8b=_0x4b3cdf;_0x2c61ec[_0x47aa8b('0x9f9')]=_0x32d445()[_0x47aa8b('0x11d3')](_0x32d445()[_0x47aa8b('0x1234')](_0x57d3f7),['$promise',_0x47aa8b('0x113c'),'createdAt',_0x47aa8b('0x1ce9'),_0x47aa8b('0x1bea')]),_0x2c61ec[_0x47aa8b('0x9f9')][_0x47aa8b('0xb76')](_0x47aa8b('0xeaa'));})['catch'](function(_0x19c24f){var _0x997bee=_0x4b3cdf;_0x21f131[_0x997bee('0x8c8')]({'title':_0x19c24f[_0x997bee('0x2833')]?_0x997bee('0x27f2')+_0x19c24f['status']+_0x997bee('0x1b7c')+_0x19c24f[_0x997bee('0x1fd7')]:'SYSTEM:GETVARIABLES','msg':_0x19c24f['data']?JSON[_0x997bee('0x3ad')](_0x19c24f[_0x997bee('0x11d0')]):_0x19c24f[_0x997bee('0x94f')]()});}),_0x329a34[_0x4b3cdf('0x24c2')][_0x4b3cdf('0x23f8')]({'id':_0x2ad16f['id'],'ticketType':_0x5e1c3c[_0x4b3cdf('0x11d2')]?_0x5e1c3c['ticketType']:undefined})[_0x4b3cdf('0xe59')][_0x4b3cdf('0xe19')](function(_0x353553){var _0x46dca5=_0x4b3cdf;_0x2c61ec[_0x46dca5('0xbba')]=!![],_0x2c61ec[_0x46dca5('0x1d17')]=_0x353553[_0x46dca5('0x16a7')]?_0x353553[_0x46dca5('0x16a7')]:[],_0x2c61ec[_0x46dca5('0xdbb')][_0x46dca5('0x1c96')]&&(_0x2c61ec[_0x46dca5('0x1129')]=_0x32d445()[_0x46dca5('0xf15')](_0x2c61ec['fields'],{'id':_0x2c61ec[_0x46dca5('0xdbb')][_0x46dca5('0x1c96')]}));})[_0x4b3cdf('0x223b')](function(_0x53f055){var _0x43b2db=_0x4b3cdf;_0x2c61ec[_0x43b2db('0xbba')]=![],console['error'](_0x53f055);});function _0x23498d(){var _0x3b2f41=_0x4b3cdf;_0x2c61ec[_0x3b2f41('0xcd2')]=[],_0x2c61ec[_0x3b2f41('0x1129')]&&(_0x2c61ec[_0x3b2f41('0xdbb')]['idField']=_0x2c61ec[_0x3b2f41('0x1129')]['id'],_0x2c61ec[_0x3b2f41('0xdbb')][_0x3b2f41('0x99e')]=_0x2c61ec[_0x3b2f41('0x1129')]['name'],_0x2c61ec[_0x3b2f41('0xdbb')][_0x3b2f41('0x1129')]=_0x2c61ec[_0x3b2f41('0x1129')][_0x3b2f41('0x261d')]),_0x329a34[_0x3b2f41('0x25ec')][_0x3b2f41('0xe5e')](_0x2c61ec[_0x3b2f41('0xdbb')])[_0x3b2f41('0xe59')][_0x3b2f41('0xe19')](function(_0x272c71){var _0xa1adf1=_0x3b2f41;_0x2c61ec[_0xa1adf1('0xe4b')]['unshift'](_0x272c71),_0x21f131[_0xa1adf1('0x425')]({'title':_0x32d445()[_0xa1adf1('0xbf6')](_0xfc1fac)+_0xa1adf1('0xf04'),'msg':_0x32d445()[_0xa1adf1('0xbf6')](_0xfc1fac)+'\x20has\x20been\x20created!'}),_0x5afe8d();})[_0x3b2f41('0x223b')](function(_0x16a655){var _0x16029c=_0x3b2f41;console[_0x16029c('0x8c8')](_0x16a655),_0x2c61ec[_0x16029c('0xcd2')]=_0x16a655[_0x16029c('0x11d0')][_0x16029c('0xcd2')]||[{'message':_0x16a655[_0x16029c('0x94f')](),'type':_0x16029c('0xc4c')}];});}function _0x3d8290(){var _0x142bcf=_0x4b3cdf;_0x2c61ec[_0x142bcf('0xcd2')]=[],_0x2c61ec['customField']&&(_0x2c61ec[_0x142bcf('0xdbb')]['idField']=_0x2c61ec[_0x142bcf('0x1129')]['id'],_0x2c61ec[_0x142bcf('0xdbb')][_0x142bcf('0x99e')]=_0x2c61ec['customField'][_0x142bcf('0x2623')],_0x2c61ec[_0x142bcf('0xdbb')][_0x142bcf('0x1129')]=_0x2c61ec[_0x142bcf('0x1129')][_0x142bcf('0x261d')]),_0x329a34[_0x142bcf('0x25ec')][_0x142bcf('0xa70')]({'id':_0x2c61ec[_0x142bcf('0xdbb')]['id']},_0x2c61ec[_0x142bcf('0xdbb')])[_0x142bcf('0xe59')][_0x142bcf('0xe19')](function(_0x1ce8d1){var _0x16d702=_0x142bcf,_0x6e8f27=_0x32d445()[_0x16d702('0xf15')](_0x2c61ec['items'],{'id':_0x1ce8d1['id']});_0x6e8f27&&_0x32d445()[_0x16d702('0x1d8')](_0x6e8f27,_0x1ce8d1),_0x21f131[_0x16d702('0x425')]({'title':_0x32d445()['capitalize'](_0xfc1fac)+_0x16d702('0xdaf'),'msg':_0x32d445()[_0x16d702('0xbf6')](_0xfc1fac)+_0x16d702('0x1c19')}),_0x5afe8d();})[_0x142bcf('0x223b')](function(_0x3302f0){var _0x4b1fe5=_0x142bcf;console[_0x4b1fe5('0x8c8')](_0x3302f0),_0x2c61ec[_0x4b1fe5('0xcd2')]=_0x3302f0[_0x4b1fe5('0x11d0')][_0x4b1fe5('0xcd2')]||[{'message':_0x3302f0[_0x4b1fe5('0x94f')](),'type':_0x4b1fe5('0x2134')}];});}function _0x265868(_0x467345){var _0x4f6708=_0x4b3cdf;_0x2c61ec['errors']=[];var _0x575cd8=_0x5f12bd[_0x4f6708('0xa5')]()[_0x4f6708('0x13e4')]('Are\x20you\x20sure?')[_0x4f6708('0xd0')]('The\x20'+_0xfc1fac+_0x4f6708('0x21bd'))['ariaLabel'](_0x4f6708('0x13de')+_0x32d445()['capitalize'](_0xfc1fac))['ok'](_0x4f6708('0x2198'))[_0x4f6708('0x2c1')](_0x4f6708('0x8a3'))['targetEvent'](_0x467345);_0x5f12bd[_0x4f6708('0x26b2')](_0x575cd8)[_0x4f6708('0xe19')](function(){var _0x5da4b6=_0x4f6708;_0x329a34[_0x5da4b6('0x25ec')][_0x5da4b6('0x229e')]({'id':_0x2c61ec[_0x5da4b6('0xdbb')]['id']})[_0x5da4b6('0xe59')][_0x5da4b6('0xe19')](function(){var _0x46be73=_0x5da4b6;_0x32d445()[_0x46be73('0xa8b')](_0x2c61ec[_0x46be73('0xe4b')],{'id':_0x2c61ec['item']['id']}),_0x21f131[_0x46be73('0x425')]({'title':_0x32d445()[_0x46be73('0xbf6')](_0xfc1fac)+_0x46be73('0x1ddc'),'msg':_0x32d445()[_0x46be73('0xbf6')](_0xfc1fac)+_0x46be73('0x2182')}),_0x5afe8d();})[_0x5da4b6('0x223b')](function(_0x4666b9){var _0x1de6e0=_0x5da4b6;console['error'](_0x4666b9),_0x2c61ec[_0x1de6e0('0xcd2')]=_0x4666b9['data'][_0x1de6e0('0xcd2')]||[{'message':_0x4666b9[_0x1de6e0('0x94f')](),'type':_0x1de6e0('0x2272')}];});},function(){});}function _0x4ee83e(){var _0x57c592=_0x4b3cdf;return _0x2c61ec[_0x57c592('0xdbb')][_0x57c592('0x17b')]!==undefined?_0x2c61ec[_0x57c592('0xdbb')][_0x57c592('0x17b')]:'Please\x20select\x20a\x20variable';}function _0x5afe8d(){var _0x43c63b=_0x4b3cdf;_0x5f12bd[_0x43c63b('0x11ed')]();}}const _0xf4bd77=_0x4d4d8a;_0xe388c3['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x675'),_0xb635d2('0xb59')];function _0xe388c3(_0x5498c4,_0x4b71bd,_0xa22073,_0x2435d1,_0x4c3416,_0x7a47f5,_0x4ef272,_0x375c47,_0x24710d,_0x3470d6,_0x52f72c,_0x4de456){var _0x4da640=_0xb635d2,_0x31aeff=this;_0x31aeff[_0x4da640('0x15a5')]=_0x3470d6[_0x4da640('0x1ef8')](),_0x31aeff['license']=_0x7a47f5,_0x31aeff['setting']=_0x4ef272,_0x31aeff[_0x4da640('0x25ac')]=_0x31aeff[_0x4da640('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x31aeff[_0x4da640('0x2170')]=_0x4b71bd[_0x4da640('0xec0')]()+_0x4da640('0x21a8')+_0x4b71bd[_0x4da640('0x3b7')](),_0x31aeff[_0x4da640('0x675')]=_0x52f72c||_0x5498c4[_0x4da640('0x2ef')][_0x4da640('0x675')]||{},_0x31aeff[_0x4da640('0xb59')]=_0x4de456&&_0x4de456[_0x4da640('0x148b')]==0x1?_0x4de456[_0x4da640('0x16a7')][0x0]:null,_0x31aeff['crudPermissions']=_0x3470d6[_0x4da640('0xd31')](_0x31aeff[_0x4da640('0xb59')]?_0x31aeff[_0x4da640('0xb59')][_0x4da640('0xb3d')]:null),_0x31aeff[_0x4da640('0x1ccb')]={},_0x31aeff[_0x4da640('0xc7b')]=_0x5498c4['params']['tab']||0x0,_0x31aeff['alert']=_0x24710d[_0x4da640('0x1e67')],_0x31aeff[_0x4da640('0x2484')]=_0x572e63,_0x31aeff[_0x4da640('0x1052')]=_0x40e90c;function _0x572e63(){var _0x56efe1=_0x4da640;_0x5498c4['go'](_0x56efe1('0xc91'),{},{'reload':_0x56efe1('0xc91')});}function _0x40e90c(){var _0x21f671=_0x4da640;_0x375c47[_0x21f671('0x24c2')][_0x21f671('0xa70')]({'id':_0x31aeff[_0x21f671('0x675')]['id']},_0x31aeff['dynamics365Account'])[_0x21f671('0xe59')][_0x21f671('0xe19')](function(){var _0x511285=_0x21f671;_0x24710d[_0x511285('0x425')]({'title':_0x511285('0xb84'),'msg':_0x31aeff[_0x511285('0x675')][_0x511285('0x2623')]?_0x31aeff[_0x511285('0x675')][_0x511285('0x2623')]+'\x20has\x20been\x20updated!':''});})[_0x21f671('0x223b')](function(_0x4e3159){var _0x225b43=_0x21f671;_0x24710d[_0x225b43('0x8c8')]({'title':_0x4e3159[_0x225b43('0x2833')]?_0x225b43('0x27f2')+_0x4e3159[_0x225b43('0x2833')]+_0x225b43('0x1b7c')+_0x4e3159[_0x225b43('0x1fd7')]:_0x225b43('0x2028'),'msg':_0x4e3159[_0x225b43('0x11d0')]?JSON[_0x225b43('0x3ad')](_0x4e3159[_0x225b43('0x11d0')]):_0x4e3159[_0x225b43('0x94f')]()});});}}const _0x42b378=_0xe388c3;_0x4c3b06[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'freshdeskAccounts',_0xb635d2('0xdfb'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x4c3b06(_0x58f514,_0x406447,_0x20554c,_0x5a6049,_0x242cd9,_0x320e42,_0x3a19b9,_0x3be8ec,_0xea24a1,_0x7fe6b0,_0x3140ad,_0x5c4abb,_0x5166ad,_0x2cbc13){var _0x3b4fb9=_0xb635d2,_0x3ec727=this;_0x3ec727[_0x3b4fb9('0x15a5')]=_0x3140ad[_0x3b4fb9('0x1ef8')](),_0x3ec727[_0x3b4fb9('0xcd2')]=[],_0x3ec727[_0x3b4fb9('0x22f1')]=_0x5166ad,_0x3ec727[_0x3b4fb9('0x5c1')]=_0x5c4abb,_0x3ec727[_0x3b4fb9('0xb3d')]=_0x2cbc13,_0x3ec727['hasModulePermissions']={},_0x3ec727[_0x3b4fb9('0x25ac')]=_0x3ec727[_0x3b4fb9('0x22f1')]&&_0x3ec727[_0x3b4fb9('0x22f1')][_0x3b4fb9('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ec727[_0x3b4fb9('0x13e4')]=_0x3b4fb9('0x26aa'),_0x3ec727[_0x3b4fb9('0xdfb')]=angular[_0x3b4fb9('0x89')](_0xea24a1),_0x3ec727[_0x3b4fb9('0x12a1')]=_0x3be8ec,_0x3ec727[_0x3b4fb9('0x16')]=![];!_0x3ec727[_0x3b4fb9('0xdfb')]&&(_0x3ec727['freshdeskAccount']={'serverUrl':_0x20554c[_0x3b4fb9('0xec0')]()+_0x3b4fb9('0x21a8')+_0x20554c[_0x3b4fb9('0x3b7')]()+(_0x20554c['port']()?':'+_0x20554c[_0x3b4fb9('0x11dc')]():'')},_0x3ec727[_0x3b4fb9('0x13e4')]=_0x3b4fb9('0x13f3'),_0x3ec727[_0x3b4fb9('0x16')]=!![]);_0x3ec727[_0x3b4fb9('0x1725')]=_0xd69ec,_0x3ec727[_0x3b4fb9('0x166')]=_0x480f79,_0x3ec727['deleteFreshdeskAccount']=_0x551dbf,_0x3ec727['getDateFromString']=_0x1c9447,_0x3ec727['closeDialog']=_0x222e10;function _0xd69ec(){var _0x14e5e8=_0x3b4fb9;_0x3ec727[_0x14e5e8('0xcd2')]=[],_0x7fe6b0[_0x14e5e8('0x13d6')]['save'](_0x3ec727['freshdeskAccount'])[_0x14e5e8('0xe59')][_0x14e5e8('0xe19')](function(_0x4d6a1d){var _0x24ef42=_0x14e5e8;_0x3ec727[_0x24ef42('0x12a1')]['unshift'](_0x4d6a1d[_0x24ef42('0x250e')]()),_0x3a19b9[_0x24ef42('0x425')]({'title':_0x24ef42('0x258c'),'msg':_0x3ec727[_0x24ef42('0xdfb')][_0x24ef42('0x2623')]?_0x3ec727[_0x24ef42('0xdfb')][_0x24ef42('0x2623')]+_0x24ef42('0x105f'):''}),_0x222e10(_0x4d6a1d);})[_0x14e5e8('0x223b')](function(_0x19e079){var _0x231f8b=_0x14e5e8;if(_0x19e079[_0x231f8b('0x11d0')]&&_0x19e079[_0x231f8b('0x11d0')]['errors']&&_0x19e079[_0x231f8b('0x11d0')]['errors'][_0x231f8b('0x25ae')]){_0x3ec727[_0x231f8b('0xcd2')]=_0x19e079['data'][_0x231f8b('0xcd2')]||[{'message':_0x19e079[_0x231f8b('0x94f')](),'type':'api.intFreshdeskAccount.save'}];for(var _0x1be3db=0x0;_0x1be3db<_0x19e079[_0x231f8b('0x11d0')][_0x231f8b('0xcd2')][_0x231f8b('0x25ae')];_0x1be3db+=0x1){_0x3a19b9['error']({'title':_0x19e079[_0x231f8b('0x11d0')]['errors'][_0x1be3db][_0x231f8b('0x62e')],'msg':_0x19e079[_0x231f8b('0x11d0')][_0x231f8b('0xcd2')][_0x1be3db][_0x231f8b('0x27e8')]});}}else _0x3a19b9[_0x231f8b('0x8c8')]({'title':_0x19e079[_0x231f8b('0x2833')]?_0x231f8b('0x27f2')+_0x19e079[_0x231f8b('0x2833')]+'\x20-\x20'+_0x19e079['statusText']:_0x231f8b('0xf05'),'msg':_0x19e079['data']?JSON[_0x231f8b('0x3ad')](_0x19e079[_0x231f8b('0x11d0')][_0x231f8b('0x27e8')]):_0x19e079[_0x231f8b('0x94f')]()});});}function _0x480f79(){var _0x4a1253=_0x3b4fb9;_0x3ec727[_0x4a1253('0xcd2')]=[],_0x7fe6b0[_0x4a1253('0x13d6')][_0x4a1253('0xa70')]({'id':_0x3ec727[_0x4a1253('0xdfb')]['id']},_0x3ec727['freshdeskAccount'])['$promise'][_0x4a1253('0xe19')](function(_0x561c2e){var _0x53789c=_0x4a1253,_0x5cfc8e=_0x32d445()[_0x53789c('0xf15')](_0x3ec727['freshdeskAccounts'],{'id':_0x561c2e['id']});_0x5cfc8e&&_0x32d445()[_0x53789c('0x1d8')](_0x5cfc8e,_0x32d445()[_0x53789c('0xed5')](_0x561c2e[_0x53789c('0x250e')](),_0x32d445()[_0x53789c('0x1234')](_0x5cfc8e))),_0x3a19b9[_0x53789c('0x425')]({'title':'FreshdeskAccount\x20properly\x20saved!','msg':_0x3ec727[_0x53789c('0xdfb')][_0x53789c('0x2623')]?_0x3ec727[_0x53789c('0xdfb')][_0x53789c('0x2623')]+_0x53789c('0x1c19'):''}),_0x222e10(_0x561c2e);})[_0x4a1253('0x223b')](function(_0x60dc0e){var _0x808ff9=_0x4a1253;if(_0x60dc0e[_0x808ff9('0x11d0')]&&_0x60dc0e['data']['errors']&&_0x60dc0e['data'][_0x808ff9('0xcd2')][_0x808ff9('0x25ae')]){_0x3ec727[_0x808ff9('0xcd2')]=_0x60dc0e[_0x808ff9('0x11d0')][_0x808ff9('0xcd2')]||[{'message':_0x60dc0e[_0x808ff9('0x94f')](),'type':_0x808ff9('0x1b58')}];for(var _0x15ae37=0x0;_0x15ae37<_0x60dc0e['data'][_0x808ff9('0xcd2')][_0x808ff9('0x25ae')];_0x15ae37++){_0x3a19b9[_0x808ff9('0x8c8')]({'title':_0x60dc0e[_0x808ff9('0x11d0')][_0x808ff9('0xcd2')][_0x15ae37]['type'],'msg':_0x60dc0e[_0x808ff9('0x11d0')]['errors'][_0x15ae37][_0x808ff9('0x27e8')]});}}else _0x3a19b9[_0x808ff9('0x8c8')]({'title':_0x60dc0e['status']?'API:'+_0x60dc0e[_0x808ff9('0x2833')]+'\x20-\x20'+_0x60dc0e[_0x808ff9('0x1fd7')]:_0x808ff9('0x1b58'),'msg':_0x60dc0e[_0x808ff9('0x11d0')]?JSON[_0x808ff9('0x3ad')](_0x60dc0e[_0x808ff9('0x11d0')]['message']):_0x60dc0e[_0x808ff9('0x94f')]()});});}function _0x551dbf(_0x5756b3){var _0x422670=_0x3b4fb9;_0x3ec727[_0x422670('0xcd2')]=[];var _0x591764=_0x5a6049['confirm']()[_0x422670('0x13e4')](_0x422670('0x24d0'))['content'](_0x422670('0x2bc'))[_0x422670('0x4d1')](_0x422670('0x1184'))['ok'](_0x422670('0x2198'))['cancel']('Cancel')[_0x422670('0x1345')](_0x5756b3);_0x5a6049[_0x422670('0x26b2')](_0x591764)[_0x422670('0xe19')](function(){var _0x55ab2b=_0x422670;_0x7fe6b0['intFreshdeskAccount'][_0x55ab2b('0x229e')]({'id':_0x3ec727[_0x55ab2b('0xdfb')]['id']})['$promise'][_0x55ab2b('0xe19')](function(){var _0x1ebc9b=_0x55ab2b;_0x32d445()[_0x1ebc9b('0xa8b')](_0x3ec727[_0x1ebc9b('0x12a1')],{'id':_0x3ec727[_0x1ebc9b('0xdfb')]['id']}),_0x3a19b9['success']({'title':_0x1ebc9b('0x1cab'),'msg':(_0x3ec727[_0x1ebc9b('0xdfb')][_0x1ebc9b('0x2623')]||_0x1ebc9b('0xdfb'))+_0x1ebc9b('0x2182')}),_0x222e10(_0x3ec727['freshdeskAccount']);})[_0x55ab2b('0x223b')](function(_0x111d80){var _0x489e9e=_0x55ab2b;if(_0x111d80['data']&&_0x111d80[_0x489e9e('0x11d0')]['errors']&&_0x111d80[_0x489e9e('0x11d0')][_0x489e9e('0xcd2')][_0x489e9e('0x25ae')]){_0x3ec727[_0x489e9e('0xcd2')]=_0x111d80[_0x489e9e('0x11d0')][_0x489e9e('0xcd2')]||[{'message':_0x111d80['toString'](),'type':_0x489e9e('0x948')}];for(var _0x1e9e46=0x0;_0x1e9e46<_0x111d80[_0x489e9e('0x11d0')][_0x489e9e('0xcd2')]['length'];_0x1e9e46++){_0x3a19b9['error']({'title':_0x111d80['data'][_0x489e9e('0xcd2')][_0x1e9e46][_0x489e9e('0x62e')],'msg':_0x111d80[_0x489e9e('0x11d0')][_0x489e9e('0xcd2')][_0x1e9e46]['message']});}}else _0x3a19b9[_0x489e9e('0x8c8')]({'title':_0x111d80[_0x489e9e('0x2833')]?_0x489e9e('0x27f2')+_0x111d80[_0x489e9e('0x2833')]+_0x489e9e('0x1b7c')+_0x111d80['statusText']:_0x489e9e('0x948'),'msg':_0x111d80[_0x489e9e('0x11d0')]?JSON[_0x489e9e('0x3ad')](_0x111d80[_0x489e9e('0x11d0')][_0x489e9e('0x27e8')]):_0x111d80['message']||_0x111d80[_0x489e9e('0x94f')]()});});},function(){});}function _0x1c9447(_0x1a4a4e){return _0x1a4a4e===null?undefined:new Date(_0x1a4a4e);}function _0x222e10(_0x291d39){var _0x5011fd=_0x3b4fb9;_0x5a6049[_0x5011fd('0x11ed')](_0x291d39);}}const _0x3bfe37=_0x4c3b06,_0x375a2c=_0x59426a['p']+_0xb635d2('0x1975'),_0x3beb26=_0x59426a['p']+_0xb635d2('0x96e');_0x288fb8[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$document','api','toasty',_0xb635d2('0x2730')];function _0x288fb8(_0x977265,_0x1ec11b,_0x955e88,_0x174aba,_0x449b70){var _0x3373e3=_0xb635d2,_0x4b0003=this;_0x4b0003[_0x3373e3('0x15a5')]=_0x449b70['getCurrentUser'](),_0x4b0003[_0x3373e3('0xdfb')]={},_0x4b0003[_0x3373e3('0xcd5')]={},_0x4b0003['configurations']=[],_0x4b0003['selectedFreshdeskConfiguration']=-0x1,_0x4b0003[_0x3373e3('0xb3d')],_0x4b0003[_0x3373e3('0x15f9')]=_0x2c8a32,_0x4b0003[_0x3373e3('0xceb')]=_0x510429,_0x4b0003[_0x3373e3('0x47b')]=_0x515260,_0x4b0003[_0x3373e3('0x181')]=_0x439c00,_0x4b0003['selectedTags']=[],_0x4b0003[_0x3373e3('0x1a9f')]=_0x2d6620,_0x955e88['tag'][_0x3373e3('0x22d5')]({'nolimit':!![],'sort':_0x3373e3('0x2623')})[_0x3373e3('0xe59')][_0x3373e3('0xe19')](function(_0x2fa4d5){var _0x3165a1=_0x3373e3;_0x4b0003[_0x3165a1('0x1105')]=_0x2fa4d5['rows']?_0x2fa4d5['rows']:[];})[_0x3373e3('0x223b')](function(_0x30700f){var _0x1a2085=_0x3373e3;_0x174aba[_0x1a2085('0x8c8')]({'title':_0x30700f['status']?_0x1a2085('0x27f2')+_0x30700f[_0x1a2085('0x2833')]+_0x1a2085('0x1b7c')+_0x30700f['statusText']:_0x1a2085('0x215c'),'msg':_0x30700f[_0x1a2085('0x11d0')]?JSON[_0x1a2085('0x3ad')](_0x30700f['data']):_0x30700f['toString']()});});function _0x2d6620(){var _0x27b61b=_0x3373e3;_0x955e88[_0x27b61b('0x12da')][_0x27b61b('0x670')]({'id':_0x4b0003[_0x27b61b('0xcd5')]['id'],'ids':_0x4b0003[_0x27b61b('0x244a')]})[_0x27b61b('0xe59')][_0x27b61b('0xe19')](function(){var _0x1d545e=_0x27b61b;_0x174aba['success']({'title':'Tags\x20set!','msg':_0x1d545e('0x1db0')});})[_0x27b61b('0x223b')](function(_0x44a548){var _0x274277=_0x27b61b;_0x174aba[_0x274277('0x8c8')]({'title':_0x44a548['status']?'API:'+_0x44a548[_0x274277('0x2833')]+_0x274277('0x1b7c')+_0x44a548[_0x274277('0x1fd7')]:_0x274277('0x1b5f'),'msg':_0x44a548[_0x274277('0x11d0')]?JSON[_0x274277('0x3ad')](_0x44a548[_0x274277('0x11d0')]):_0x44a548[_0x274277('0x94f')]()});});}function _0x2c8a32(_0x556ca7,_0x5a2c67){var _0x5a2dc3=_0x3373e3;_0x4b0003['freshdeskAccount']=_0x556ca7,_0x4b0003['crudPermissions']=typeof _0x5a2c67!=='undefined'?_0x5a2c67:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x955e88[_0x5a2dc3('0x13d6')][_0x5a2dc3('0x1ac6')]({'id':_0x4b0003[_0x5a2dc3('0xdfb')]['id'],'sort':_0x5a2dc3('0x7e8')})[_0x5a2dc3('0xe59')][_0x5a2dc3('0xe19')](function(_0x44d0f7){var _0x81a4d7=_0x5a2dc3;return _0x4b0003[_0x81a4d7('0x244e')]=_0x44d0f7['rows']?_0x44d0f7[_0x81a4d7('0x16a7')]:[],_0x4b0003['configurations'][_0x81a4d7('0x25ae')]&&_0x4b0003[_0x81a4d7('0xceb')](0x0),_0x955e88[_0x81a4d7('0x19a5')][_0x81a4d7('0x22d5')]({'nolimit':!![],'sort':'name'})[_0x81a4d7('0xe59')];})['then'](function(_0x400436){var _0x3ac680=_0x5a2dc3;_0x4b0003[_0x3ac680('0x1a9e')]=_0x400436[_0x3ac680('0x16a7')]?_0x400436[_0x3ac680('0x16a7')]:[],_0x4b0003[_0x3ac680('0x27b3')]=_0x32d445()[_0x3ac680('0x226f')](_0x4b0003[_0x3ac680('0x1a9e')],'id');})[_0x5a2dc3('0x223b')](function(_0x2e0ccd){var _0x1bf7af=_0x5a2dc3;_0x174aba[_0x1bf7af('0x8c8')]({'title':_0x2e0ccd[_0x1bf7af('0x2833')]?'API:'+_0x2e0ccd[_0x1bf7af('0x2833')]+_0x1bf7af('0x1b7c')+_0x2e0ccd[_0x1bf7af('0x1fd7')]:_0x1bf7af('0xf5b'),'msg':_0x2e0ccd['data']?JSON['stringify'](_0x2e0ccd['data']):_0x2e0ccd[_0x1bf7af('0x94f')]()});});}function _0x510429(_0x3bde24){var _0x53271a=_0x3373e3;_0x4b0003[_0x53271a('0xcd5')]=_0x4b0003[_0x53271a('0x244e')][_0x3bde24],_0x4b0003['selectedFreshdeskConfiguration']=_0x3bde24,_0x955e88[_0x53271a('0x12da')][_0x53271a('0xe77')]({'id':_0x4b0003[_0x53271a('0xcd5')]['id']})[_0x53271a('0xe59')]['then'](function(_0x758950){var _0x128495=_0x53271a;return _0x4b0003['subjects']=_0x758950[_0x128495('0x16a7')]?_0x758950[_0x128495('0x16a7')]:[],_0x955e88[_0x128495('0x12da')][_0x128495('0x280b')]({'id':_0x4b0003[_0x128495('0xcd5')]['id']})[_0x128495('0xe59')];})[_0x53271a('0xe19')](function(_0x1bdce6){var _0x29cc7=_0x53271a;return _0x4b0003['descriptions']=_0x1bdce6['rows']?_0x1bdce6[_0x29cc7('0x16a7')]:[],_0x955e88['intFreshdeskConfiguration'][_0x29cc7('0x23f8')]({'id':_0x4b0003['freshdeskConfiguration']['id']})['$promise'];})['then'](function(_0x1b8cda){var _0x2eb7fa=_0x53271a;_0x4b0003[_0x2eb7fa('0x1d17')]=_0x1b8cda[_0x2eb7fa('0x16a7')]?_0x1b8cda[_0x2eb7fa('0x16a7')]:[];})[_0x53271a('0x223b')](function(_0x54b091){var _0x52b518=_0x53271a;_0x174aba[_0x52b518('0x8c8')]({'title':_0x54b091['status']?_0x52b518('0x27f2')+_0x54b091[_0x52b518('0x2833')]+_0x52b518('0x1b7c')+_0x54b091['statusText']:'SYSTEM:GETConfigurations','msg':_0x54b091[_0x52b518('0x11d0')]?JSON[_0x52b518('0x3ad')](_0x54b091[_0x52b518('0x11d0')]):_0x54b091[_0x52b518('0x94f')]()});}),_0x955e88[_0x53271a('0x12da')][_0x53271a('0x17b8')]({'id':_0x4b0003['freshdeskConfiguration']['id']})['$promise'][_0x53271a('0xe19')](function(_0x419c95){var _0x4a5f9b=_0x53271a;_0x4b0003['selectedTags']=_0x419c95[_0x4a5f9b('0x16a7')]?_0x32d445()[_0x4a5f9b('0x65a')](_0x419c95[_0x4a5f9b('0x16a7')],'id'):[];})[_0x53271a('0x223b')](function(_0x4eeeee){var _0x3e41d8=_0x53271a;_0x174aba[_0x3e41d8('0x8c8')]({'title':_0x4eeeee[_0x3e41d8('0x2833')]?'API:'+_0x4eeeee[_0x3e41d8('0x2833')]+_0x3e41d8('0x1b7c')+_0x4eeeee[_0x3e41d8('0x1fd7')]:_0x3e41d8('0x215c'),'msg':_0x4eeeee[_0x3e41d8('0x11d0')]?JSON[_0x3e41d8('0x3ad')](_0x4eeeee['data']):_0x4eeeee[_0x3e41d8('0x94f')]()});});}function _0x515260(_0x2492af,_0x1d64ae){var _0x542dc9=_0x3373e3;_0x977265[_0x542dc9('0x26b2')]({'controller':_0x542dc9('0x660'),'controllerAs':'vm','templateUrl':_0x375a2c,'parent':angular['element'](_0x1ec11b[_0x542dc9('0x19b2')]),'targetEvent':_0x2492af,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x1d64ae,'configurations':_0x4b0003['configurations'],'license':null,'setting':null,'crudPermissions':_0x4b0003[_0x542dc9('0xb3d')]}})['finally'](function(){var _0x479666=_0x542dc9;_0x4b0003[_0x479666('0xceb')](0x0);});}function _0x439c00(_0x1f974a,_0x3f9618){var _0x16b75c=_0x3373e3,_0x50ea44=_0x977265[_0x16b75c('0xa5')]()['title'](_0x16b75c('0x21ab'))['htmlContent'](_0x16b75c('0xab2')+(_0x3f9618[_0x16b75c('0x2623')]||_0x16b75c('0xcd5'))+_0x16b75c('0x27bb')+_0x16b75c('0x21bd'))[_0x16b75c('0x4d1')](_0x16b75c('0xd51'))[_0x16b75c('0x1345')](_0x1f974a)['ok']('OK')[_0x16b75c('0x2c1')](_0x16b75c('0x17'));_0x977265[_0x16b75c('0x26b2')](_0x50ea44)[_0x16b75c('0xe19')](function(){var _0x1ff398=_0x16b75c;_0x955e88[_0x1ff398('0x12da')][_0x1ff398('0x229e')]({'id':_0x3f9618['id']})[_0x1ff398('0xe59')][_0x1ff398('0xe19')](function(){var _0x9756b=_0x1ff398;_0x32d445()['remove'](_0x4b0003[_0x9756b('0x244e')],{'id':_0x3f9618['id']}),_0x174aba['success']({'title':'FreshdeskConfiguration\x20deleted!','msg':_0x3f9618[_0x9756b('0x2623')]?_0x3f9618[_0x9756b('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x1ff398('0x223b')](function(_0x5d2d30){var _0x18a389=_0x1ff398;_0x174aba[_0x18a389('0x8c8')]({'title':_0x5d2d30[_0x18a389('0x2833')]?_0x18a389('0x27f2')+_0x5d2d30[_0x18a389('0x2833')]+'\x20-\x20'+_0x5d2d30[_0x18a389('0x1fd7')]:_0x18a389('0x127'),'msg':_0x5d2d30['data']?JSON[_0x18a389('0x3ad')](_0x5d2d30[_0x18a389('0x11d0')]):_0x5d2d30['toString']()});})['finally'](function(){var _0x3c0631=_0x1ff398;_0x4b0003[_0x3c0631('0xceb')](0x0);});},function(){var _0x350afb=_0x16b75c;console[_0x350afb('0x1fe9')]('CANCEL');});}_0x4b0003[_0x3373e3('0x2508')]=[],_0x4b0003[_0x3373e3('0x16b2')]=_0x54d302,_0x4b0003[_0x3373e3('0x10dc')]=_0x14b7bd,_0x4b0003[_0x3373e3('0x1c53')]=_0xdad03c;function _0x54d302(_0x18aac6,_0x3d39cc){var _0x4c8e37=_0x3373e3;_0x977265[_0x4c8e37('0x26b2')]({'controller':_0x4c8e37('0xbb0'),'controllerAs':'vm','templateUrl':_0x3beb26,'parent':angular['element'](_0x1ec11b[_0x4c8e37('0x19b2')]),'targetEvent':_0x18aac6,'clickOutsideToClose':!![],'locals':{'type':_0x4c8e37('0x9ec'),'item':_0x3d39cc,'items':_0x4b0003[_0x4c8e37('0x126e')],'configuration':_0x4b0003[_0x4c8e37('0xcd5')],'account':_0x4b0003['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x4b0003[_0x4c8e37('0xb3d')]}});}function _0x45967e(_0x333d26){var _0x54da1a=_0x3373e3;_0x955e88[_0x54da1a('0xfc5')][_0x54da1a('0x229e')]({'id':_0x333d26['id']})[_0x54da1a('0xe59')]['then'](function(){var _0x10f2de=_0x54da1a;_0x32d445()[_0x10f2de('0xa8b')](_0x4b0003[_0x10f2de('0x126e')],{'id':_0x333d26['id']}),_0x174aba[_0x10f2de('0x425')]({'title':_0x10f2de('0x191f'),'msg':_0x10f2de('0xae3')});})['catch'](function(_0x4006c7){var _0x4e8264=_0x54da1a;_0x174aba['error']({'title':_0x4006c7[_0x4e8264('0x2833')]?_0x4e8264('0x27f2')+_0x4006c7[_0x4e8264('0x2833')]+_0x4e8264('0x1b7c')+_0x4006c7['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x4006c7['data']?JSON['stringify'](_0x4006c7[_0x4e8264('0x11d0')]):_0x4006c7[_0x4e8264('0x94f')]()});});}function _0x14b7bd(_0x2f47bc,_0xb04c42){var _0x43b868=_0x3373e3,_0x416c29=_0x977265[_0x43b868('0xa5')]()[_0x43b868('0x13e4')](_0x43b868('0x158a'))['htmlContent'](_0x43b868('0x5f9')+'\x20will\x20be\x20deleted.')[_0x43b868('0x4d1')]('delete\x20subject')[_0x43b868('0x1345')](_0x2f47bc)['ok']('OK')[_0x43b868('0x2c1')]('CANCEL');_0x977265['show'](_0x416c29)[_0x43b868('0xe19')](function(){_0x45967e(_0xb04c42);},function(){var _0x31428c=_0x43b868;console[_0x31428c('0x1fe9')]('CANCEL');});}function _0xdad03c(_0x3bb3c9){var _0x552b3c=_0x3373e3,_0x2f4b28=_0x977265[_0x552b3c('0xa5')]()[_0x552b3c('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x552b3c('0x221c')](_0x552b3c('0xab2')+_0x4b0003['selectedSubjects']['length']+_0x552b3c('0x5bc')+'\x20will\x20be\x20deleted.')[_0x552b3c('0x4d1')]('delete\x20subjects')[_0x552b3c('0x1345')](_0x3bb3c9)['ok']('OK')[_0x552b3c('0x2c1')]('CANCEL');_0x977265[_0x552b3c('0x26b2')](_0x2f4b28)[_0x552b3c('0xe19')](function(){var _0x209c06=_0x552b3c;_0x4b0003[_0x209c06('0x2508')][_0x209c06('0x1d7e')](function(_0x519763){_0x45967e(_0x519763);}),_0x4b0003[_0x209c06('0x2508')]=[];});}_0x4b0003[_0x3373e3('0x858')]=[],_0x4b0003['createOrEditDescription']=_0x396aa2,_0x4b0003['deleteDescriptionConfirm']=_0x23c0e1,_0x4b0003[_0x3373e3('0xd2c')]=_0x21ce62;function _0x396aa2(_0xe7702,_0x541226){var _0x16449f=_0x3373e3;_0x977265[_0x16449f('0x26b2')]({'controller':_0x16449f('0xbb0'),'controllerAs':'vm','templateUrl':_0x3beb26,'parent':angular['element'](_0x1ec11b[_0x16449f('0x19b2')]),'targetEvent':_0xe7702,'clickOutsideToClose':!![],'locals':{'type':_0x16449f('0x897'),'item':_0x541226,'items':_0x4b0003[_0x16449f('0xb9c')],'configuration':_0x4b0003['freshdeskConfiguration'],'account':_0x4b0003[_0x16449f('0xdfb')],'license':null,'setting':null,'crudPermissions':_0x4b0003[_0x16449f('0xb3d')]}});}function _0x476a84(_0x33438b){var _0x53f290=_0x3373e3;_0x955e88[_0x53f290('0xfc5')][_0x53f290('0x229e')]({'id':_0x33438b['id']})[_0x53f290('0xe59')][_0x53f290('0xe19')](function(){var _0x5914c0=_0x53f290;_0x32d445()[_0x5914c0('0xa8b')](_0x4b0003[_0x5914c0('0xb9c')],{'id':_0x33438b['id']}),_0x174aba[_0x5914c0('0x425')]({'title':_0x5914c0('0x1c52'),'msg':_0x5914c0('0x1139')});})[_0x53f290('0x223b')](function(_0x2fd078){var _0x26d002=_0x53f290;_0x174aba[_0x26d002('0x8c8')]({'title':_0x2fd078[_0x26d002('0x2833')]?'API:'+_0x2fd078[_0x26d002('0x2833')]+'\x20-\x20'+_0x2fd078[_0x26d002('0x1fd7')]:_0x26d002('0x1dde'),'msg':_0x2fd078[_0x26d002('0x11d0')]?JSON[_0x26d002('0x3ad')](_0x2fd078['data']):_0x2fd078['toString']()});});}function _0x23c0e1(_0x468678,_0x5dee73){var _0x27b75a=_0x3373e3,_0x44bdf6=_0x977265[_0x27b75a('0xa5')]()[_0x27b75a('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')['htmlContent'](_0x27b75a('0x11e1')+'\x20will\x20be\x20deleted.')[_0x27b75a('0x4d1')](_0x27b75a('0x1dc0'))[_0x27b75a('0x1345')](_0x468678)['ok']('OK')[_0x27b75a('0x2c1')]('CANCEL');_0x977265[_0x27b75a('0x26b2')](_0x44bdf6)[_0x27b75a('0xe19')](function(){_0x476a84(_0x5dee73);},function(){var _0x445a36=_0x27b75a;console[_0x445a36('0x1fe9')]('CANCEL');});}function _0x21ce62(_0x1ce9a8){var _0x496ba7=_0x3373e3,_0x58e301=_0x977265['confirm']()[_0x496ba7('0x13e4')](_0x496ba7('0x23f4'))[_0x496ba7('0x221c')](''+_0x4b0003[_0x496ba7('0x858')][_0x496ba7('0x25ae')]+_0x496ba7('0x5bc')+'\x20will\x20be\x20deleted.')[_0x496ba7('0x4d1')](_0x496ba7('0x162'))['targetEvent'](_0x1ce9a8)['ok']('OK')[_0x496ba7('0x2c1')](_0x496ba7('0x17'));_0x977265[_0x496ba7('0x26b2')](_0x58e301)[_0x496ba7('0xe19')](function(){var _0x48e2fb=_0x496ba7;_0x4b0003[_0x48e2fb('0x858')][_0x48e2fb('0x1d7e')](function(_0x20d632){_0x476a84(_0x20d632);}),_0x4b0003[_0x48e2fb('0x858')]=[];});}_0x4b0003[_0x3373e3('0xf97')]=[],_0x4b0003['createOrEditField']=_0xec9a04,_0x4b0003[_0x3373e3('0x2152')]=_0x46585f,_0x4b0003[_0x3373e3('0xdfd')]=_0x466f4f;function _0xec9a04(_0x1c7cdb,_0x2b562f){var _0x5e4449=_0x3373e3;_0x977265[_0x5e4449('0x26b2')]({'controller':'CreateOrEditFreshdeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x3beb26,'parent':angular[_0x5e4449('0x24a1')](_0x1ec11b[_0x5e4449('0x19b2')]),'targetEvent':_0x1c7cdb,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x2b562f,'items':_0x4b0003['fields'],'configuration':_0x4b0003[_0x5e4449('0xcd5')],'account':_0x4b0003[_0x5e4449('0xdfb')],'license':null,'setting':null,'crudPermissions':_0x4b0003[_0x5e4449('0xb3d')]}});}function _0x234701(_0x10c00e){var _0x324cc5=_0x3373e3;_0x955e88[_0x324cc5('0xfc5')][_0x324cc5('0x229e')]({'id':_0x10c00e['id']})['$promise'][_0x324cc5('0xe19')](function(){var _0x468a60=_0x324cc5;_0x32d445()[_0x468a60('0xa8b')](_0x4b0003[_0x468a60('0x1d17')],{'id':_0x10c00e['id']}),_0x174aba[_0x468a60('0x425')]({'title':'Field\x20deleted!','msg':_0x468a60('0x21f5')});})['catch'](function(_0x2cbacb){var _0x5e601d=_0x324cc5;_0x174aba[_0x5e601d('0x8c8')]({'title':_0x2cbacb[_0x5e601d('0x2833')]?'API:'+_0x2cbacb[_0x5e601d('0x2833')]+_0x5e601d('0x1b7c')+_0x2cbacb[_0x5e601d('0x1fd7')]:_0x5e601d('0x1dde'),'msg':_0x2cbacb[_0x5e601d('0x11d0')]?JSON[_0x5e601d('0x3ad')](_0x2cbacb[_0x5e601d('0x11d0')]):_0x2cbacb[_0x5e601d('0x94f')]()});});}function _0x46585f(_0x56c457,_0x1f01ec){var _0xafee92=_0x3373e3,_0x226ff0=_0x977265[_0xafee92('0xa5')]()[_0xafee92('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0xafee92('0x221c')](_0xafee92('0x13a7')+_0xafee92('0x21bd'))[_0xafee92('0x4d1')](_0xafee92('0x23f7'))[_0xafee92('0x1345')](_0x56c457)['ok']('OK')['cancel'](_0xafee92('0x17'));_0x977265[_0xafee92('0x26b2')](_0x226ff0)[_0xafee92('0xe19')](function(){_0x234701(_0x1f01ec);},function(){var _0x5b0bce=_0xafee92;console[_0x5b0bce('0x1fe9')]('CANCEL');});}function _0x466f4f(_0x2fbff9){var _0x5a3b6e=_0x3373e3,_0x5d67b5=_0x977265[_0x5a3b6e('0xa5')]()['title'](_0x5a3b6e('0x128c'))['htmlContent'](_0x5a3b6e('0xab2')+_0x4b0003[_0x5a3b6e('0xf97')][_0x5a3b6e('0x25ae')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x5a3b6e('0x4d1')]('delete\x20fields')[_0x5a3b6e('0x1345')](_0x2fbff9)['ok']('OK')[_0x5a3b6e('0x2c1')](_0x5a3b6e('0x17'));_0x977265[_0x5a3b6e('0x26b2')](_0x5d67b5)['then'](function(){var _0x48494a=_0x5a3b6e;_0x4b0003[_0x48494a('0xf97')][_0x48494a('0x1d7e')](function(_0x206040){_0x234701(_0x206040);}),_0x4b0003['selectedFields']=[];});}}const _0x3d2139=_0x288fb8;_0x5e610f[_0xb635d2('0xb0c')]=['$scope','$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x244e'),'freshdeskConfiguration','api',_0xb635d2('0x2730'),'license','setting',_0xb635d2('0xb3d')];function _0x5e610f(_0x59b12d,_0x350ab5,_0x39d1c2,_0x1eb669,_0x22ae05,_0x333f00,_0x53539a,_0x4e7212,_0x21b698,_0x58249e,_0x4b119a,_0x23e968,_0x4362b6,_0x39824c){var _0x1412ae=_0xb635d2,_0x153ecc=this;_0x153ecc[_0x1412ae('0x15a5')]=_0x4b119a['getCurrentUser'](),_0x153ecc[_0x1412ae('0xcd2')]=[],_0x153ecc[_0x1412ae('0x22f1')]=_0x4362b6,_0x153ecc['license']=_0x23e968,_0x153ecc[_0x1412ae('0xb3d')]=_0x39824c,_0x153ecc['hasModulePermissions']={},_0x153ecc['passwordPattern']=_0x153ecc[_0x1412ae('0x22f1')]&&_0x153ecc[_0x1412ae('0x22f1')][_0x1412ae('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x153ecc['title']=_0x1412ae('0x1040'),_0x153ecc[_0x1412ae('0xcd5')]=angular[_0x1412ae('0x89')](_0x21b698),_0x153ecc[_0x1412ae('0x244e')]=_0x4e7212,_0x153ecc[_0x1412ae('0xa99')]=![];!_0x153ecc[_0x1412ae('0xcd5')]&&(_0x153ecc[_0x1412ae('0xcd5')]={'channel':'voice','type':_0x1412ae('0x1a7a')},_0x153ecc[_0x1412ae('0x13e4')]=_0x1412ae('0x27aa'),_0x153ecc[_0x1412ae('0xa99')]=!![]);_0x153ecc[_0x1412ae('0x646')]=_0x4e837a,_0x153ecc['saveFreshdeskConfiguration']=_0x258cbd,_0x153ecc[_0x1412ae('0x181')]=_0x605254,_0x153ecc[_0x1412ae('0x2635')]=_0x1b4513,_0x153ecc[_0x1412ae('0x2584')]=_0x17c981;function _0x4e837a(){var _0x3d4186=_0x1412ae;_0x153ecc['errors']=[],_0x58249e[_0x3d4186('0x13d6')][_0x3d4186('0x2402')]({'id':_0x350ab5['params']['id']},_0x153ecc[_0x3d4186('0xcd5')])['$promise']['then'](function(_0x257368){var _0x2e3748=_0x3d4186;_0x153ecc[_0x2e3748('0x244e')][_0x2e3748('0x14c9')](_0x257368[_0x2e3748('0x250e')]()),_0x53539a['success']({'title':'FreshdeskConfiguration\x20properly\x20created','msg':_0x153ecc[_0x2e3748('0xcd5')]['name']?_0x153ecc['freshdeskConfiguration'][_0x2e3748('0x2623')]+_0x2e3748('0x105f'):''}),_0x17c981(_0x257368);})[_0x3d4186('0x223b')](function(_0x12fa0e){var _0x5affcb=_0x3d4186;if(_0x12fa0e[_0x5affcb('0x11d0')]&&_0x12fa0e['data'][_0x5affcb('0xcd2')]&&_0x12fa0e[_0x5affcb('0x11d0')][_0x5affcb('0xcd2')]['length']){_0x153ecc[_0x5affcb('0xcd2')]=_0x12fa0e[_0x5affcb('0x11d0')]['errors']||[{'message':_0x12fa0e[_0x5affcb('0x94f')](),'type':_0x5affcb('0x2111')}];for(var _0x1f5630=0x0;_0x1f5630<_0x12fa0e[_0x5affcb('0x11d0')][_0x5affcb('0xcd2')][_0x5affcb('0x25ae')];_0x1f5630+=0x1){_0x53539a[_0x5affcb('0x8c8')]({'title':_0x12fa0e['data'][_0x5affcb('0xcd2')][_0x1f5630][_0x5affcb('0x62e')],'msg':_0x12fa0e[_0x5affcb('0x11d0')][_0x5affcb('0xcd2')][_0x1f5630][_0x5affcb('0x27e8')]});}}else _0x53539a[_0x5affcb('0x8c8')]({'title':_0x12fa0e[_0x5affcb('0x2833')]?_0x5affcb('0x27f2')+_0x12fa0e[_0x5affcb('0x2833')]+_0x5affcb('0x1b7c')+_0x12fa0e['statusText']:'api.intFreshdeskConfiguration.save','msg':_0x12fa0e[_0x5affcb('0x11d0')]?JSON['stringify'](_0x12fa0e[_0x5affcb('0x11d0')][_0x5affcb('0x27e8')]):_0x12fa0e[_0x5affcb('0x94f')]()});});}function _0x258cbd(){var _0x5dcad8=_0x1412ae;_0x153ecc[_0x5dcad8('0xcd2')]=[],_0x58249e[_0x5dcad8('0x12da')][_0x5dcad8('0xa70')]({'id':_0x153ecc[_0x5dcad8('0xcd5')]['id']},_0x153ecc[_0x5dcad8('0xcd5')])['$promise'][_0x5dcad8('0xe19')](function(_0x44b79f){var _0xc63836=_0x5dcad8,_0x4d53da=_0x32d445()[_0xc63836('0xf15')](_0x153ecc[_0xc63836('0x244e')],{'id':_0x44b79f['id']});_0x4d53da&&_0x32d445()['merge'](_0x4d53da,_0x32d445()['pick'](_0x44b79f['toJSON'](),_0x32d445()[_0xc63836('0x1234')](_0x4d53da))),_0x53539a[_0xc63836('0x425')]({'title':_0xc63836('0x17e5'),'msg':_0x153ecc['freshdeskConfiguration'][_0xc63836('0x2623')]?_0x153ecc[_0xc63836('0xcd5')][_0xc63836('0x2623')]+_0xc63836('0x1c19'):''}),_0x17c981(_0x44b79f);})['catch'](function(_0x274c0c){var _0x2607ea=_0x5dcad8;if(_0x274c0c[_0x2607ea('0x11d0')]&&_0x274c0c[_0x2607ea('0x11d0')][_0x2607ea('0xcd2')]&&_0x274c0c[_0x2607ea('0x11d0')][_0x2607ea('0xcd2')][_0x2607ea('0x25ae')]){_0x153ecc[_0x2607ea('0xcd2')]=_0x274c0c[_0x2607ea('0x11d0')][_0x2607ea('0xcd2')]||[{'message':_0x274c0c['toString'](),'type':_0x2607ea('0x6bf')}];for(var _0x4e09c7=0x0;_0x4e09c7<_0x274c0c[_0x2607ea('0x11d0')][_0x2607ea('0xcd2')]['length'];_0x4e09c7++){_0x53539a[_0x2607ea('0x8c8')]({'title':_0x274c0c['data'][_0x2607ea('0xcd2')][_0x4e09c7][_0x2607ea('0x62e')],'msg':_0x274c0c[_0x2607ea('0x11d0')][_0x2607ea('0xcd2')][_0x4e09c7][_0x2607ea('0x27e8')]});}}else _0x53539a[_0x2607ea('0x8c8')]({'title':_0x274c0c[_0x2607ea('0x2833')]?_0x2607ea('0x27f2')+_0x274c0c[_0x2607ea('0x2833')]+_0x2607ea('0x1b7c')+_0x274c0c['statusText']:_0x2607ea('0x6bf'),'msg':_0x274c0c[_0x2607ea('0x11d0')]?JSON[_0x2607ea('0x3ad')](_0x274c0c[_0x2607ea('0x11d0')][_0x2607ea('0x27e8')]):_0x274c0c[_0x2607ea('0x94f')]()});});}function _0x605254(_0x162306){var _0x2e45c0=_0x1412ae;_0x153ecc['errors']=[];var _0x5d8250=_0x1eb669[_0x2e45c0('0xa5')]()[_0x2e45c0('0x13e4')]('Are\x20you\x20sure?')[_0x2e45c0('0xd0')](_0x2e45c0('0x2194'))[_0x2e45c0('0x4d1')](_0x2e45c0('0x1bd3'))['ok'](_0x2e45c0('0x2198'))[_0x2e45c0('0x2c1')](_0x2e45c0('0x8a3'))[_0x2e45c0('0x1345')](_0x162306);_0x1eb669[_0x2e45c0('0x26b2')](_0x5d8250)[_0x2e45c0('0xe19')](function(){var _0x585f02=_0x2e45c0;_0x58249e[_0x585f02('0x12da')]['delete']({'id':_0x153ecc[_0x585f02('0xcd5')]['id']})[_0x585f02('0xe59')][_0x585f02('0xe19')](function(){var _0x3dee87=_0x585f02;_0x32d445()[_0x3dee87('0xa8b')](_0x153ecc['configurations'],{'id':_0x153ecc['freshdeskConfiguration']['id']}),_0x53539a[_0x3dee87('0x425')]({'title':_0x3dee87('0x269f'),'msg':(_0x153ecc['freshdeskConfiguration'][_0x3dee87('0x2623')]||'freshdeskConfiguration')+_0x3dee87('0x2182')}),_0x17c981(_0x153ecc[_0x3dee87('0xcd5')]);})[_0x585f02('0x223b')](function(_0x40fa47){var _0x126582=_0x585f02;if(_0x40fa47[_0x126582('0x11d0')]&&_0x40fa47[_0x126582('0x11d0')][_0x126582('0xcd2')]&&_0x40fa47[_0x126582('0x11d0')][_0x126582('0xcd2')]['length']){_0x153ecc[_0x126582('0xcd2')]=_0x40fa47[_0x126582('0x11d0')][_0x126582('0xcd2')]||[{'message':_0x40fa47[_0x126582('0x94f')](),'type':'api.intFreshdeskConfiguration.delete'}];for(var _0x5359ad=0x0;_0x5359ad<_0x40fa47[_0x126582('0x11d0')][_0x126582('0xcd2')][_0x126582('0x25ae')];_0x5359ad++){_0x53539a[_0x126582('0x8c8')]({'title':_0x40fa47[_0x126582('0x11d0')][_0x126582('0xcd2')][_0x5359ad][_0x126582('0x62e')],'msg':_0x40fa47[_0x126582('0x11d0')]['errors'][_0x5359ad][_0x126582('0x27e8')]});}}else _0x53539a[_0x126582('0x8c8')]({'title':_0x40fa47[_0x126582('0x2833')]?_0x126582('0x27f2')+_0x40fa47[_0x126582('0x2833')]+_0x126582('0x1b7c')+_0x40fa47[_0x126582('0x1fd7')]:_0x126582('0x22a5'),'msg':_0x40fa47[_0x126582('0x11d0')]?JSON[_0x126582('0x3ad')](_0x40fa47[_0x126582('0x11d0')]['message']):_0x40fa47[_0x126582('0x27e8')]||_0x40fa47[_0x126582('0x94f')]()});});},function(){});}function _0x1b4513(_0x57bfde){return _0x57bfde===null?undefined:new Date(_0x57bfde);}function _0x17c981(_0x11a1b5){var _0x298321=_0x1412ae;_0x1eb669[_0x298321('0x11ed')](_0x11a1b5);}}const _0x38bdc2=_0x5e610f;_0x93f92a['$inject']=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'toasty',_0xb635d2('0x271e'),_0xb635d2('0xe4b'),_0xb635d2('0xdbb'),_0xb635d2('0xe8b'),_0xb635d2('0x62e'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x93f92a(_0x4892be,_0x311f06,_0x1402ba,_0x2f511d,_0x2d9a57,_0x3ab205,_0x207a2d,_0x34a25b,_0x2fbc79,_0x415c99,_0x15e240,_0x5ba1f4,_0x12592a){var _0xb3f075=_0xb635d2,_0x15a17d=this;_0x15a17d[_0xb3f075('0x15a5')]=_0x5ba1f4['getCurrentUser'](),_0x15a17d['errors']=[],_0x15a17d['title']=_0xb3f075('0x53c')+_0x32d445()[_0xb3f075('0xcbc')](_0x415c99),_0x15a17d['item']=angular[_0xb3f075('0x89')](_0x34a25b),_0x15a17d[_0xb3f075('0xe4b')]=_0x207a2d,_0x15a17d[_0xb3f075('0x62e')]=_0x415c99,_0x15a17d['crudPermissions']=_0x12592a,_0x15a17d[_0xb3f075('0xa3')]=![];!_0x15a17d[_0xb3f075('0xdbb')]&&(_0x15a17d['item']={'type':_0xb3f075('0x19d1')},_0x15a17d[_0xb3f075('0xdbb')][_0x32d445()['capitalize'](_0x415c99)+'Id']=_0x3ab205['id'],_0x15a17d[_0xb3f075('0x13e4')]=_0xb3f075('0x7e2')+_0x32d445()[_0xb3f075('0xcbc')](_0x415c99),_0x15a17d['newItem']=!![]);_0x15a17d[_0xb3f075('0x9ca')]=_0x27e945,_0x15a17d[_0xb3f075('0x1384')]=_0x3eb53d,_0x15a17d[_0xb3f075('0xc32')]=_0x32ddb6,_0x15a17d['getSelectedVariable']=_0xdc2bc5,_0x15a17d['closeDialog']=_0xfad2,_0x15e240[_0xb3f075('0x19a5')][_0xb3f075('0x22d5')]({'nolimit':!![]})[_0xb3f075('0xe59')][_0xb3f075('0xe19')](function(_0x5b147f){var _0x383a74=_0xb3f075;return _0x15a17d['variables']=_0x5b147f[_0x383a74('0x16a7')]?_0x5b147f[_0x383a74('0x16a7')]:[],_0x15e240[_0x383a74('0x22cf')][_0x383a74('0x215e')]()[_0x383a74('0xe59')];})[_0xb3f075('0xe19')](function(_0x28e163){var _0x3a621f=_0xb3f075;return _0x15a17d['voiceAgentReportColumns']=_0x32d445()[_0x3a621f('0x11d3')](_0x32d445()[_0x3a621f('0x1234')](_0x28e163),[_0x3a621f('0xe59'),_0x3a621f('0x113c'),'createdAt',_0x3a621f('0x1ce9'),_0x3a621f('0x1bea')]),_0x15a17d[_0x3a621f('0x1230')][_0x3a621f('0xb76')](_0x3a621f('0xeaa')),_0x15e240['voiceDialReport'][_0x3a621f('0x215e')]()[_0x3a621f('0xe59')];})[_0xb3f075('0xe19')](function(_0x267339){var _0x4db96b=_0xb3f075;_0x15a17d[_0x4db96b('0x9f9')]=_0x32d445()[_0x4db96b('0x11d3')](_0x32d445()[_0x4db96b('0x1234')](_0x267339),['$promise','$resolved','createdAt',_0x4db96b('0x1ce9'),_0x4db96b('0x1bea')]),_0x15a17d['voiceDialReportColumns'][_0x4db96b('0xb76')](_0x4db96b('0xeaa'));})[_0xb3f075('0x223b')](function(_0x47b27c){var _0x5dcc31=_0xb3f075;_0x2d9a57[_0x5dcc31('0x8c8')]({'title':_0x47b27c[_0x5dcc31('0x2833')]?_0x5dcc31('0x27f2')+_0x47b27c['status']+_0x5dcc31('0x1b7c')+_0x47b27c[_0x5dcc31('0x1fd7')]:'SYSTEM:GETVARIABLES','msg':_0x47b27c[_0x5dcc31('0x11d0')]?JSON[_0x5dcc31('0x3ad')](_0x47b27c[_0x5dcc31('0x11d0')]):_0x47b27c[_0x5dcc31('0x94f')]()});}),_0x15e240['intFreshdeskAccount'][_0xb3f075('0x23f8')]({'id':_0x2fbc79['id'],'ticketType':_0x3ab205[_0xb3f075('0x11d2')]?_0x3ab205['ticketType']:undefined})[_0xb3f075('0xe59')][_0xb3f075('0xe19')](function(_0x18d069){var _0x373a7a=_0xb3f075;_0x15a17d['accountConnected']=!![],_0x15a17d[_0x373a7a('0x1d17')]=_0x18d069[_0x373a7a('0x16a7')]?_0x18d069['rows']:[],_0x15a17d['item'][_0x373a7a('0x1c96')]&&(_0x15a17d[_0x373a7a('0x1129')]=_0x32d445()[_0x373a7a('0xf15')](_0x15a17d[_0x373a7a('0x1d17')],{'id':_0x15a17d['item']['idField']}));})[_0xb3f075('0x223b')](function(_0x48dfab){var _0x236b82=_0xb3f075;_0x15a17d[_0x236b82('0xbba')]=![],console['error'](_0x48dfab);});function _0x27e945(){var _0x3568a4=_0xb3f075;_0x15a17d[_0x3568a4('0xcd2')]=[],_0x15a17d[_0x3568a4('0x1129')]&&(_0x15a17d[_0x3568a4('0xdbb')][_0x3568a4('0x1c96')]=_0x15a17d[_0x3568a4('0x1129')]['id'],_0x15a17d[_0x3568a4('0xdbb')][_0x3568a4('0x99e')]=_0x15a17d['customField']['name'],_0x15a17d[_0x3568a4('0xdbb')][_0x3568a4('0x1129')]=_0x15a17d[_0x3568a4('0x1129')][_0x3568a4('0x261d')]),_0x15e240[_0x3568a4('0xfc5')]['save'](_0x15a17d[_0x3568a4('0xdbb')])['$promise'][_0x3568a4('0xe19')](function(_0x462190){var _0xa30959=_0x3568a4;_0x15a17d[_0xa30959('0xe4b')]['unshift'](_0x462190),_0x2d9a57[_0xa30959('0x425')]({'title':_0x32d445()[_0xa30959('0xbf6')](_0x415c99)+'\x20properly\x20created','msg':_0x32d445()['capitalize'](_0x415c99)+'\x20has\x20been\x20created!'}),_0xfad2();})['catch'](function(_0x50c76f){var _0xb5752f=_0x3568a4;console[_0xb5752f('0x8c8')](_0x50c76f),_0x15a17d[_0xb5752f('0xcd2')]=_0x50c76f[_0xb5752f('0x11d0')][_0xb5752f('0xcd2')]||[{'message':_0x50c76f[_0xb5752f('0x94f')](),'type':'api.item.save'}];});}function _0x3eb53d(){var _0x1b9d8d=_0xb3f075;_0x15a17d['errors']=[],_0x15a17d[_0x1b9d8d('0x1129')]&&(_0x15a17d['item'][_0x1b9d8d('0x1c96')]=_0x15a17d[_0x1b9d8d('0x1129')]['id'],_0x15a17d[_0x1b9d8d('0xdbb')][_0x1b9d8d('0x99e')]=_0x15a17d[_0x1b9d8d('0x1129')][_0x1b9d8d('0x2623')],_0x15a17d[_0x1b9d8d('0xdbb')]['customField']=_0x15a17d[_0x1b9d8d('0x1129')][_0x1b9d8d('0x261d')]),_0x15e240[_0x1b9d8d('0xfc5')]['update']({'id':_0x15a17d['item']['id']},_0x15a17d['item'])[_0x1b9d8d('0xe59')][_0x1b9d8d('0xe19')](function(_0x35893b){var _0x336a98=_0x1b9d8d,_0x54883c=_0x32d445()['find'](_0x15a17d['items'],{'id':_0x35893b['id']});_0x54883c&&_0x32d445()['merge'](_0x54883c,_0x35893b),_0x2d9a57[_0x336a98('0x425')]({'title':_0x32d445()['capitalize'](_0x415c99)+_0x336a98('0xdaf'),'msg':_0x32d445()['capitalize'](_0x415c99)+_0x336a98('0x1c19')}),_0xfad2();})['catch'](function(_0x5ebe87){var _0x42dc01=_0x1b9d8d;console[_0x42dc01('0x8c8')](_0x5ebe87),_0x15a17d[_0x42dc01('0xcd2')]=_0x5ebe87[_0x42dc01('0x11d0')][_0x42dc01('0xcd2')]||[{'message':_0x5ebe87[_0x42dc01('0x94f')](),'type':_0x42dc01('0x2134')}];});}function _0x32ddb6(_0x210d00){var _0x4dacfd=_0xb3f075;_0x15a17d[_0x4dacfd('0xcd2')]=[];var _0x2acc72=_0x2f511d['confirm']()[_0x4dacfd('0x13e4')](_0x4dacfd('0x24d0'))[_0x4dacfd('0xd0')](_0x4dacfd('0x2784')+_0x415c99+_0x4dacfd('0x21bd'))[_0x4dacfd('0x4d1')]('Delete\x20'+_0x32d445()['capitalize'](_0x415c99))['ok'](_0x4dacfd('0x2198'))[_0x4dacfd('0x2c1')]('Cancel')['targetEvent'](_0x210d00);_0x2f511d[_0x4dacfd('0x26b2')](_0x2acc72)[_0x4dacfd('0xe19')](function(){var _0x4e903f=_0x4dacfd;_0x15e240[_0x4e903f('0xfc5')][_0x4e903f('0x229e')]({'id':_0x15a17d[_0x4e903f('0xdbb')]['id']})[_0x4e903f('0xe59')][_0x4e903f('0xe19')](function(){var _0x4a4226=_0x4e903f;_0x32d445()[_0x4a4226('0xa8b')](_0x15a17d[_0x4a4226('0xe4b')],{'id':_0x15a17d[_0x4a4226('0xdbb')]['id']}),_0x2d9a57[_0x4a4226('0x425')]({'title':_0x32d445()[_0x4a4226('0xbf6')](_0x415c99)+'\x20properly\x20deleted!','msg':_0x32d445()[_0x4a4226('0xbf6')](_0x415c99)+_0x4a4226('0x2182')}),_0xfad2();})[_0x4e903f('0x223b')](function(_0x5f20a8){var _0x44786b=_0x4e903f;console['error'](_0x5f20a8),_0x15a17d['errors']=_0x5f20a8[_0x44786b('0x11d0')]['errors']||[{'message':_0x5f20a8[_0x44786b('0x94f')](),'type':_0x44786b('0x2272')}];});},function(){});}function _0xdc2bc5(){var _0x5c8475=_0xb3f075;return _0x15a17d[_0x5c8475('0xdbb')][_0x5c8475('0x17b')]!==undefined?_0x15a17d[_0x5c8475('0xdbb')][_0x5c8475('0x17b')]:_0x5c8475('0xc');}function _0xfad2(){var _0x1d0588=_0xb3f075;_0x2f511d[_0x1d0588('0x11ed')]();}}const _0x4dd8cf=_0x93f92a;_0x2b2f8c[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),'license','setting',_0xb635d2('0xffc'),'toasty','Auth',_0xb635d2('0xdfb'),_0xb635d2('0xb59')];function _0x2b2f8c(_0x5ed60a,_0x1fd5bf,_0x4088bd,_0x32c196,_0x257b0e,_0x49d1a7,_0x5bfdf0,_0x31c3bb,_0x1fbb64,_0x23e8d5,_0x2a002e,_0x317e50){var _0x13c889=_0xb635d2,_0x338166=this;_0x338166[_0x13c889('0x15a5')]=_0x23e8d5['getCurrentUser'](),_0x338166[_0x13c889('0x5c1')]=_0x49d1a7,_0x338166[_0x13c889('0x22f1')]=_0x5bfdf0,_0x338166[_0x13c889('0x25ac')]=_0x338166[_0x13c889('0x22f1')][_0x13c889('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x338166[_0x13c889('0x2170')]=_0x1fd5bf[_0x13c889('0xec0')]()+'://'+_0x1fd5bf[_0x13c889('0x3b7')](),_0x338166[_0x13c889('0xdfb')]=_0x2a002e||_0x5ed60a[_0x13c889('0x2ef')][_0x13c889('0xdfb')]||{},_0x338166[_0x13c889('0xb59')]=_0x317e50&&_0x317e50['count']==0x1?_0x317e50[_0x13c889('0x16a7')][0x0]:null,_0x338166[_0x13c889('0xb3d')]=_0x23e8d5[_0x13c889('0xd31')](_0x338166[_0x13c889('0xb59')]?_0x338166[_0x13c889('0xb59')][_0x13c889('0xb3d')]:null),_0x338166[_0x13c889('0x1ccb')]={},_0x338166[_0x13c889('0xc7b')]=_0x5ed60a['params'][_0x13c889('0x435')]||0x0,_0x338166[_0x13c889('0xbdc')]=_0x1fbb64[_0x13c889('0x1e67')],_0x338166[_0x13c889('0x181a')]=_0x2ec33c,_0x338166[_0x13c889('0x166')]=_0x322a50;function _0x2ec33c(){var _0x2e8800=_0x13c889;_0x5ed60a['go'](_0x2e8800('0xaca'),{},{'reload':_0x2e8800('0xaca')});}function _0x322a50(){var _0x31ff6e=_0x13c889;_0x31c3bb[_0x31ff6e('0x13d6')][_0x31ff6e('0xa70')]({'id':_0x338166[_0x31ff6e('0xdfb')]['id']},_0x338166['freshdeskAccount'])['$promise'][_0x31ff6e('0xe19')](function(){var _0x521eba=_0x31ff6e;_0x1fbb64[_0x521eba('0x425')]({'title':_0x521eba('0xcf6'),'msg':_0x338166[_0x521eba('0xdfb')][_0x521eba('0x2623')]?_0x338166[_0x521eba('0xdfb')]['name']+_0x521eba('0x283b'):''});})['catch'](function(_0x29a118){var _0x1edaae=_0x31ff6e;_0x1fbb64[_0x1edaae('0x8c8')]({'title':_0x29a118[_0x1edaae('0x2833')]?'API:'+_0x29a118[_0x1edaae('0x2833')]+'\x20-\x20'+_0x29a118[_0x1edaae('0x1fd7')]:_0x1edaae('0x258e'),'msg':_0x29a118[_0x1edaae('0x11d0')]?JSON[_0x1edaae('0x3ad')](_0x29a118[_0x1edaae('0x11d0')]):_0x29a118[_0x1edaae('0x94f')]()});});}}const _0x3d9ab3=_0x2b2f8c,_0x264ad4=_0x59426a['p']+_0xb635d2('0xa7');_0x5e1500[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x12a1'),_0xb635d2('0x154f'),'userProfileSection','api','msUtils',_0xb635d2('0xf65'),'Auth','license','setting'];function _0x5e1500(_0x4df52d,_0x1b90e4,_0x4a27c5,_0x39fb4a,_0xce72c9,_0x5d60df,_0x11fd04,_0x5a53e1,_0x57b153,_0x16f53d,_0x1bf0fc,_0x356c99,_0x5a124b,_0x243ddf,_0x4ca36c,_0x10a356,_0x2fa04f){var _0xa429b5=_0xb635d2,_0x229a48=this;_0x229a48['license']=_0x10a356,_0x229a48[_0xa429b5('0x22f1')]=_0x2fa04f,_0x229a48[_0xa429b5('0x15a5')]=_0x4ca36c[_0xa429b5('0x1ef8')](),_0x229a48['freshdeskAccounts']=_0x57b153||{'count':0x0,'rows':[]},_0x229a48[_0xa429b5('0x154f')]=_0x16f53d,_0x229a48[_0xa429b5('0xb59')]=_0x1bf0fc&&_0x1bf0fc[_0xa429b5('0x148b')]==0x1?_0x1bf0fc[_0xa429b5('0x16a7')][0x0]:null,_0x229a48[_0xa429b5('0xb3d')]=_0x4ca36c[_0xa429b5('0xd31')](_0x229a48[_0xa429b5('0xb59')]?_0x229a48[_0xa429b5('0xb59')][_0xa429b5('0xb3d')]:null),_0x229a48['table']=_0xa429b5('0x12a1'),_0x229a48['listOrder']='',_0x229a48[_0xa429b5('0x190c')]=null,_0x229a48[_0xa429b5('0x1dd5')]=[],_0x229a48['query']={'fields':_0xa429b5('0x1572'),'limit':0xa,'page':0x1},_0x229a48['editstate']=_0x1a5bf2,_0x229a48[_0xa429b5('0x238c')]=_0x6cd5e6,_0x229a48[_0xa429b5('0x1d9e')]=_0x6bc488,_0x229a48[_0xa429b5('0x425')]=_0x2806f8,_0x229a48[_0xa429b5('0x24cc')]=_0x4d2de,_0x229a48[_0xa429b5('0xdcf')]=_0x5b8351,_0x229a48[_0xa429b5('0x2745')]=_0x1eee11,_0x229a48[_0xa429b5('0x617')]=_0x14ad5d,_0x229a48[_0xa429b5('0x1395')]=_0xd73fda,_0x229a48[_0xa429b5('0x18e0')]=_0x54d621,_0x229a48[_0xa429b5('0x1bd5')]=_0x15ad00;function _0x1a5bf2(_0x2ca3e0){var _0x4f53ae=_0xa429b5;_0x4a27c5['go'](_0x4f53ae('0xd4d'),{'id':_0x2ca3e0['id'],'freshdeskAccount':_0x2ca3e0,'crudPermissions':_0x229a48[_0x4f53ae('0xb3d')]});}function _0x6cd5e6(_0x589188){var _0xac4905=_0xa429b5;return _0x356c99[_0xac4905('0x13d6')][_0xac4905('0x23f8')]({'id':_0x589188['id'],'test':!![]})[_0xac4905('0xe59')][_0xac4905('0xe19')](function(){_0x243ddf['success']({'title':'FreshdeskAccount\x20properly\x20tested','msg':'Connection\x20succeded!'});})[_0xac4905('0x223b')](function(_0x247586){var _0x54e66f=_0xac4905;_0x243ddf[_0x54e66f('0x8c8')]({'title':_0x54e66f('0x25e1'),'msg':_0x247586[_0x54e66f('0x11d0')]?_0x247586[_0x54e66f('0x11d0')][_0x54e66f('0x27e8')]?_0x247586['data'][_0x54e66f('0x27e8')]:JSON[_0x54e66f('0x3ad')](_0x247586[_0x54e66f('0x11d0')]):_0x247586[_0x54e66f('0x94f')]()});});}function _0x6bc488(_0x28bd05,_0x518b2a){var _0x3a7d74=_0xa429b5,_0x444c95=_0xce72c9[_0x3a7d74('0xa5')]()[_0x3a7d74('0x13e4')](_0x3a7d74('0x346')+_0x32d445()[_0x3a7d74('0x1df2')](_0x3a7d74('0xdfb'))+'?')['htmlContent'](''+(_0x28bd05[_0x3a7d74('0x2623')]||_0x3a7d74('0xdfb'))+_0x3a7d74('0x27bb')+_0x3a7d74('0x21bd'))[_0x3a7d74('0x4d1')](_0x3a7d74('0x115f'))[_0x3a7d74('0x1345')](_0x518b2a)['ok']('OK')[_0x3a7d74('0x2c1')](_0x3a7d74('0x17'));_0xce72c9['show'](_0x444c95)[_0x3a7d74('0xe19')](function(){_0x1eee11(_0x28bd05);},function(){var _0x3e14bd=_0x3a7d74;console[_0x3e14bd('0x1fe9')](_0x3e14bd('0x17'));});}var _0x411213=!![],_0x597e01=0x1;_0x4df52d[_0xa429b5('0x107')](_0xa429b5('0x20cb'),function(_0x52dd73,_0x238f1f){var _0x3a998f=_0xa429b5;_0x411213?_0x11fd04(function(){_0x411213=![];}):(!_0x238f1f&&(_0x597e01=_0x229a48[_0x3a998f('0xa16')]['page']),_0x52dd73!==_0x238f1f&&(_0x229a48[_0x3a998f('0xa16')][_0x3a998f('0xc08')]=0x1),!_0x52dd73&&(_0x229a48[_0x3a998f('0xa16')]['page']=_0x597e01),_0x229a48[_0x3a998f('0x24cc')]());});function _0x2806f8(_0x32cfff){var _0x405326=_0xa429b5;_0x229a48[_0x405326('0x12a1')]=_0x32cfff||{'count':0x0,'rows':[]};}function _0x4d2de(){var _0x2a1d5b=_0xa429b5;_0x229a48[_0x2a1d5b('0xa16')][_0x2a1d5b('0xab0')]=(_0x229a48[_0x2a1d5b('0xa16')]['page']-0x1)*_0x229a48['query'][_0x2a1d5b('0x1b6d')],_0x4ca36c[_0x2a1d5b('0x179e')](_0x2a1d5b('0xd14'))?_0x229a48[_0x2a1d5b('0x9c8')]=_0x356c99['intFreshdeskAccount'][_0x2a1d5b('0x22d5')](_0x229a48[_0x2a1d5b('0xa16')],_0x2806f8)[_0x2a1d5b('0xe59')]:(_0x229a48[_0x2a1d5b('0xa16')]['id']=_0x229a48[_0x2a1d5b('0x154f')]['id'],_0x229a48[_0x2a1d5b('0xa16')][_0x2a1d5b('0x1e59')]=_0x2a1d5b('0x183c'),_0x229a48[_0x2a1d5b('0x9c8')]=_0x356c99[_0x2a1d5b('0x154f')]['getResources'](_0x229a48[_0x2a1d5b('0xa16')],_0x2806f8)[_0x2a1d5b('0xe59')]);}function _0x5b8351(_0x50d5c6,_0x446e5d){var _0x5af2a1=_0xa429b5;_0xce72c9[_0x5af2a1('0x26b2')]({'controller':_0x5af2a1('0x131a'),'controllerAs':'vm','templateUrl':_0x264ad4,'parent':angular[_0x5af2a1('0x24a1')](_0x5d60df[_0x5af2a1('0x19b2')]),'targetEvent':_0x50d5c6,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x446e5d,'freshdeskAccounts':_0x229a48[_0x5af2a1('0x12a1')][_0x5af2a1('0x16a7')],'license':_0x229a48['license'],'setting':_0x229a48['setting'],'crudPermissions':_0x229a48['crudPermissions']}});}function _0x1eee11(_0x499602){var _0x475647=_0xa429b5;_0x356c99[_0x475647('0x13d6')][_0x475647('0x229e')]({'id':_0x499602['id']})[_0x475647('0xe59')][_0x475647('0xe19')](function(){var _0x1e9943=_0x475647;_0x32d445()[_0x1e9943('0xa8b')](_0x229a48['freshdeskAccounts'][_0x1e9943('0x16a7')],{'id':_0x499602['id']}),_0x229a48[_0x1e9943('0x12a1')]['count']-=0x1,!_0x229a48[_0x1e9943('0x12a1')]['rows']['length']&&_0x229a48[_0x1e9943('0x24cc')](),_0x243ddf[_0x1e9943('0x425')]({'title':_0x32d445()['startCase'](_0x1e9943('0x2175'))+_0x1e9943('0x1219'),'msg':_0x499602['name']?_0x499602[_0x1e9943('0x2623')]+_0x1e9943('0x2182'):''});})[_0x475647('0x223b')](function(_0x2e597c){var _0xa8b13e=_0x475647;if(_0x2e597c['data']&&_0x2e597c[_0xa8b13e('0x11d0')]['errors']&&_0x2e597c[_0xa8b13e('0x11d0')]['errors'][_0xa8b13e('0x25ae')]){_0x229a48['errors']=_0x2e597c[_0xa8b13e('0x11d0')][_0xa8b13e('0xcd2')]||[{'message':_0x2e597c[_0xa8b13e('0x94f')](),'type':_0xa8b13e('0xd10')}];for(var _0x1b6762=0x0;_0x1b6762<_0x2e597c['data']['errors'][_0xa8b13e('0x25ae')];_0x1b6762++){_0x243ddf[_0xa8b13e('0x8c8')]({'title':_0x2e597c['data'][_0xa8b13e('0xcd2')][_0x1b6762]['type'],'msg':_0x2e597c[_0xa8b13e('0x11d0')][_0xa8b13e('0xcd2')][_0x1b6762][_0xa8b13e('0x27e8')]});}}else _0x243ddf['error']({'title':_0x2e597c[_0xa8b13e('0x2833')]?'API:'+_0x2e597c[_0xa8b13e('0x2833')]+_0xa8b13e('0x1b7c')+_0x2e597c[_0xa8b13e('0x1fd7')]:'SYSTEM:DELETEintFreshdeskAccount','msg':_0x2e597c[_0xa8b13e('0x11d0')]?JSON[_0xa8b13e('0x3ad')](_0x2e597c[_0xa8b13e('0x11d0')]['message']):_0x2e597c[_0xa8b13e('0x27e8')]||_0x2e597c[_0xa8b13e('0x94f')]()});});}function _0x14ad5d(){var _0x5142ae=_0xa429b5,_0x2d2183=angular[_0x5142ae('0x89')](_0x229a48['selectedFreshdeskAccounts']);return _0x229a48[_0x5142ae('0x1dd5')]=[],_0x2d2183;}function _0xd73fda(_0x258beb){var _0x4f03fb=_0xa429b5,_0xeb9e4=_0xce72c9[_0x4f03fb('0xa5')]()[_0x4f03fb('0x13e4')](_0x4f03fb('0x2485'))['htmlContent'](_0x4f03fb('0xab2')+_0x229a48[_0x4f03fb('0x1dd5')][_0x4f03fb('0x25ae')]+_0x4f03fb('0x5bc')+_0x4f03fb('0x21bd'))[_0x4f03fb('0x4d1')](_0x4f03fb('0x249c'))[_0x4f03fb('0x1345')](_0x258beb)['ok']('OK')[_0x4f03fb('0x2c1')](_0x4f03fb('0x17'));_0xce72c9[_0x4f03fb('0x26b2')](_0xeb9e4)[_0x4f03fb('0xe19')](function(){var _0x5596b2=_0x4f03fb;_0x229a48[_0x5596b2('0x1dd5')][_0x5596b2('0x1d7e')](function(_0x4b4761){_0x1eee11(_0x4b4761);}),_0x229a48['selectedFreshdeskAccounts']=[];});}function _0x54d621(){_0x229a48['selectedFreshdeskAccounts']=[];}function _0x15ad00(){_0x229a48['selectedFreshdeskAccounts']=_0x229a48['freshdeskAccounts']['rows'];}}const _0x44a775=_0x5e1500;_0xe8c62f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'freshsalesAccounts',_0xb635d2('0xca5'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0xe8c62f(_0x1ec49e,_0xc0072e,_0x34ebd4,_0x35dff6,_0x11ef5a,_0x2c7cb8,_0x41df42,_0x39a3a5,_0x90212c,_0x470d7d,_0x282f52,_0x5ac432,_0xf1c671,_0xf4a7a3){var _0x19d6b5=_0xb635d2,_0x106b8f=this;_0x106b8f[_0x19d6b5('0x15a5')]=_0x282f52['getCurrentUser'](),_0x106b8f['errors']=[],_0x106b8f[_0x19d6b5('0x22f1')]=_0xf1c671,_0x106b8f[_0x19d6b5('0x5c1')]=_0x5ac432,_0x106b8f[_0x19d6b5('0xb3d')]=_0xf4a7a3,_0x106b8f['hasModulePermissions']={},_0x106b8f[_0x19d6b5('0x25ac')]=_0x106b8f[_0x19d6b5('0x22f1')]&&_0x106b8f[_0x19d6b5('0x22f1')][_0x19d6b5('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x106b8f[_0x19d6b5('0x13e4')]=_0x19d6b5('0x1039'),_0x106b8f['freshsalesAccount']=angular[_0x19d6b5('0x89')](_0x90212c),_0x106b8f[_0x19d6b5('0xb88')]=_0x39a3a5,_0x106b8f[_0x19d6b5('0x165c')]=![];!_0x106b8f[_0x19d6b5('0xca5')]&&(_0x106b8f[_0x19d6b5('0xca5')]={'serverUrl':_0x34ebd4[_0x19d6b5('0xec0')]()+_0x19d6b5('0x21a8')+_0x34ebd4['host']()+(_0x34ebd4[_0x19d6b5('0x11dc')]()?':'+_0x34ebd4[_0x19d6b5('0x11dc')]():'')},_0x106b8f[_0x19d6b5('0x13e4')]=_0x19d6b5('0x1232'),_0x106b8f[_0x19d6b5('0x165c')]=!![]);_0x106b8f[_0x19d6b5('0x24d8')]=_0x419113,_0x106b8f[_0x19d6b5('0x11a2')]=_0x5af68f,_0x106b8f['deleteFreshsalesAccount']=_0x24e4d2,_0x106b8f[_0x19d6b5('0x2635')]=_0x500527,_0x106b8f[_0x19d6b5('0x2584')]=_0x3cb372;function _0x419113(){var _0x400cce=_0x19d6b5;_0x106b8f[_0x400cce('0xcd2')]=[],_0x470d7d[_0x400cce('0x16a5')]['save'](_0x106b8f[_0x400cce('0xca5')])[_0x400cce('0xe59')][_0x400cce('0xe19')](function(_0xb42fa4){var _0x38fe4f=_0x400cce;_0x106b8f[_0x38fe4f('0xb88')]['unshift'](_0xb42fa4['toJSON']()),_0x41df42[_0x38fe4f('0x425')]({'title':_0x38fe4f('0xfbb'),'msg':_0x106b8f['freshsalesAccount'][_0x38fe4f('0x2623')]?_0x106b8f[_0x38fe4f('0xca5')][_0x38fe4f('0x2623')]+'\x20has\x20been\x20created!':''}),_0x3cb372(_0xb42fa4);})[_0x400cce('0x223b')](function(_0x3638d2){var _0x4f55df=_0x400cce;if(_0x3638d2[_0x4f55df('0x11d0')]&&_0x3638d2[_0x4f55df('0x11d0')][_0x4f55df('0xcd2')]&&_0x3638d2[_0x4f55df('0x11d0')][_0x4f55df('0xcd2')]['length']){_0x106b8f[_0x4f55df('0xcd2')]=_0x3638d2[_0x4f55df('0x11d0')][_0x4f55df('0xcd2')]||[{'message':_0x3638d2[_0x4f55df('0x94f')](),'type':_0x4f55df('0x41e')}];for(var _0x37dcb8=0x0;_0x37dcb8<_0x3638d2[_0x4f55df('0x11d0')][_0x4f55df('0xcd2')][_0x4f55df('0x25ae')];_0x37dcb8+=0x1){_0x41df42[_0x4f55df('0x8c8')]({'title':_0x3638d2[_0x4f55df('0x11d0')][_0x4f55df('0xcd2')][_0x37dcb8][_0x4f55df('0x62e')],'msg':_0x3638d2[_0x4f55df('0x11d0')][_0x4f55df('0xcd2')][_0x37dcb8][_0x4f55df('0x27e8')]});}}else _0x41df42[_0x4f55df('0x8c8')]({'title':_0x3638d2['status']?_0x4f55df('0x27f2')+_0x3638d2[_0x4f55df('0x2833')]+_0x4f55df('0x1b7c')+_0x3638d2[_0x4f55df('0x1fd7')]:_0x4f55df('0x41e'),'msg':_0x3638d2['data']?JSON['stringify'](_0x3638d2[_0x4f55df('0x11d0')][_0x4f55df('0x27e8')]):_0x3638d2[_0x4f55df('0x94f')]()});});}function _0x5af68f(){var _0x42193c=_0x19d6b5;_0x106b8f[_0x42193c('0xcd2')]=[],_0x470d7d[_0x42193c('0x16a5')][_0x42193c('0xa70')]({'id':_0x106b8f[_0x42193c('0xca5')]['id']},_0x106b8f[_0x42193c('0xca5')])[_0x42193c('0xe59')][_0x42193c('0xe19')](function(_0x308cda){var _0x536405=_0x42193c,_0x504821=_0x32d445()[_0x536405('0xf15')](_0x106b8f[_0x536405('0xb88')],{'id':_0x308cda['id']});_0x504821&&_0x32d445()[_0x536405('0x1d8')](_0x504821,_0x32d445()[_0x536405('0xed5')](_0x308cda[_0x536405('0x250e')](),_0x32d445()[_0x536405('0x1234')](_0x504821))),_0x41df42[_0x536405('0x425')]({'title':'FreshsalesAccount\x20properly\x20saved!','msg':_0x106b8f['freshsalesAccount'][_0x536405('0x2623')]?_0x106b8f[_0x536405('0xca5')]['name']+_0x536405('0x1c19'):''}),_0x3cb372(_0x308cda);})[_0x42193c('0x223b')](function(_0x291ff5){var _0x408048=_0x42193c;if(_0x291ff5[_0x408048('0x11d0')]&&_0x291ff5[_0x408048('0x11d0')]['errors']&&_0x291ff5[_0x408048('0x11d0')][_0x408048('0xcd2')]['length']){_0x106b8f[_0x408048('0xcd2')]=_0x291ff5['data'][_0x408048('0xcd2')]||[{'message':_0x291ff5[_0x408048('0x94f')](),'type':'api.intFreshsalesAccount.update'}];for(var _0x1e03f2=0x0;_0x1e03f2<_0x291ff5[_0x408048('0x11d0')][_0x408048('0xcd2')][_0x408048('0x25ae')];_0x1e03f2++){_0x41df42[_0x408048('0x8c8')]({'title':_0x291ff5['data'][_0x408048('0xcd2')][_0x1e03f2]['type'],'msg':_0x291ff5['data'][_0x408048('0xcd2')][_0x1e03f2][_0x408048('0x27e8')]});}}else _0x41df42[_0x408048('0x8c8')]({'title':_0x291ff5[_0x408048('0x2833')]?_0x408048('0x27f2')+_0x291ff5['status']+'\x20-\x20'+_0x291ff5[_0x408048('0x1fd7')]:_0x408048('0x130e'),'msg':_0x291ff5[_0x408048('0x11d0')]?JSON['stringify'](_0x291ff5[_0x408048('0x11d0')][_0x408048('0x27e8')]):_0x291ff5[_0x408048('0x94f')]()});});}function _0x24e4d2(_0x133dd8){var _0x56797b=_0x19d6b5;_0x106b8f[_0x56797b('0xcd2')]=[];var _0x2cb0b7=_0x35dff6[_0x56797b('0xa5')]()[_0x56797b('0x13e4')](_0x56797b('0x24d0'))[_0x56797b('0xd0')](_0x56797b('0x713'))[_0x56797b('0x4d1')](_0x56797b('0x1012'))['ok'](_0x56797b('0x2198'))[_0x56797b('0x2c1')](_0x56797b('0x8a3'))[_0x56797b('0x1345')](_0x133dd8);_0x35dff6[_0x56797b('0x26b2')](_0x2cb0b7)['then'](function(){var _0x65050e=_0x56797b;_0x470d7d['intFreshsalesAccount'][_0x65050e('0x229e')]({'id':_0x106b8f['freshsalesAccount']['id']})[_0x65050e('0xe59')][_0x65050e('0xe19')](function(){var _0x4ed2a2=_0x65050e;_0x32d445()[_0x4ed2a2('0xa8b')](_0x106b8f[_0x4ed2a2('0xb88')],{'id':_0x106b8f[_0x4ed2a2('0xca5')]['id']}),_0x41df42[_0x4ed2a2('0x425')]({'title':_0x4ed2a2('0x849'),'msg':(_0x106b8f[_0x4ed2a2('0xca5')][_0x4ed2a2('0x2623')]||_0x4ed2a2('0xca5'))+'\x20has\x20been\x20deleted!'}),_0x3cb372(_0x106b8f['freshsalesAccount']);})[_0x65050e('0x223b')](function(_0x77180d){var _0x40fd48=_0x65050e;if(_0x77180d[_0x40fd48('0x11d0')]&&_0x77180d[_0x40fd48('0x11d0')][_0x40fd48('0xcd2')]&&_0x77180d[_0x40fd48('0x11d0')][_0x40fd48('0xcd2')]['length']){_0x106b8f[_0x40fd48('0xcd2')]=_0x77180d['data'][_0x40fd48('0xcd2')]||[{'message':_0x77180d[_0x40fd48('0x94f')](),'type':'api.intFreshsalesAccount.delete'}];for(var _0x515320=0x0;_0x515320<_0x77180d[_0x40fd48('0x11d0')]['errors'][_0x40fd48('0x25ae')];_0x515320++){_0x41df42[_0x40fd48('0x8c8')]({'title':_0x77180d[_0x40fd48('0x11d0')][_0x40fd48('0xcd2')][_0x515320][_0x40fd48('0x62e')],'msg':_0x77180d['data'][_0x40fd48('0xcd2')][_0x515320][_0x40fd48('0x27e8')]});}}else _0x41df42['error']({'title':_0x77180d['status']?_0x40fd48('0x27f2')+_0x77180d[_0x40fd48('0x2833')]+_0x40fd48('0x1b7c')+_0x77180d[_0x40fd48('0x1fd7')]:_0x40fd48('0x83d'),'msg':_0x77180d[_0x40fd48('0x11d0')]?JSON[_0x40fd48('0x3ad')](_0x77180d[_0x40fd48('0x11d0')][_0x40fd48('0x27e8')]):_0x77180d[_0x40fd48('0x27e8')]||_0x77180d[_0x40fd48('0x94f')]()});});},function(){});}function _0x500527(_0x106a48){return _0x106a48===null?undefined:new Date(_0x106a48);}function _0x3cb372(_0x3bbb5d){var _0x30cc81=_0x19d6b5;_0x35dff6[_0x30cc81('0x11ed')](_0x3bbb5d);}}const _0x52e8cf=_0xe8c62f,_0x2d6d97=_0x59426a['p']+_0xb635d2('0x29f'),_0x416fe2=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x5bffc5[_0xb635d2('0xb0c')]=['$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x5bffc5(_0x261cbb,_0x2a2c16,_0x108e76,_0x49dd26,_0x3532a9){var _0x5733e3=_0xb635d2,_0xb36879=this;_0xb36879[_0x5733e3('0x15a5')]=_0x3532a9[_0x5733e3('0x1ef8')](),_0xb36879['freshsalesAccount']={},_0xb36879[_0x5733e3('0x2552')]={},_0xb36879[_0x5733e3('0x244e')]=[],_0xb36879[_0x5733e3('0x129e')]=-0x1,_0xb36879[_0x5733e3('0xb3d')],_0xb36879[_0x5733e3('0x15f9')]=_0x469f0d,_0xb36879[_0x5733e3('0x1239')]=_0x1d5ca3,_0xb36879[_0x5733e3('0x14a8')]=_0xe34130,_0xb36879['deleteFreshsalesConfiguration']=_0xfa22fb;function _0x469f0d(_0x176657,_0x47505e){var _0x211edc=_0x5733e3;_0xb36879['freshsalesAccount']=_0x176657,_0xb36879[_0x211edc('0xb3d')]=typeof _0x47505e!==_0x211edc('0x1143')?_0x47505e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x108e76[_0x211edc('0x16a5')][_0x211edc('0x1ac6')]({'id':_0xb36879[_0x211edc('0xca5')]['id'],'sort':_0x211edc('0x7e8')})[_0x211edc('0xe59')][_0x211edc('0xe19')](function(_0xcfb769){var _0x2eb2c5=_0x211edc;return _0xb36879['configurations']=_0xcfb769[_0x2eb2c5('0x16a7')]?_0xcfb769['rows']:[],_0xb36879['configurations'][_0x2eb2c5('0x25ae')]&&_0xb36879[_0x2eb2c5('0x1239')](0x0),_0x108e76[_0x2eb2c5('0x19a5')]['get']({'nolimit':!![],'sort':'name'})[_0x2eb2c5('0xe59')];})[_0x211edc('0xe19')](function(_0x7f3060){var _0x846692=_0x211edc;_0xb36879[_0x846692('0x1a9e')]=_0x7f3060['rows']?_0x7f3060[_0x846692('0x16a7')]:[],_0xb36879[_0x846692('0x27b3')]=_0x32d445()[_0x846692('0x226f')](_0xb36879[_0x846692('0x1a9e')],'id');})[_0x211edc('0x223b')](function(_0x177df4){var _0x5cbec0=_0x211edc;_0x49dd26[_0x5cbec0('0x8c8')]({'title':_0x177df4[_0x5cbec0('0x2833')]?_0x5cbec0('0x27f2')+_0x177df4[_0x5cbec0('0x2833')]+_0x5cbec0('0x1b7c')+_0x177df4[_0x5cbec0('0x1fd7')]:'SYSTEM:GETCONFIGURATION','msg':_0x177df4[_0x5cbec0('0x11d0')]?JSON[_0x5cbec0('0x3ad')](_0x177df4['data']):_0x177df4[_0x5cbec0('0x94f')]()});});}function _0x1d5ca3(_0x1195ba){var _0x44b255=_0x5733e3;_0xb36879[_0x44b255('0x2552')]=_0xb36879['configurations'][_0x1195ba],_0xb36879[_0x44b255('0x129e')]=_0x1195ba,_0x108e76[_0x44b255('0xf92')]['getSubjects']({'id':_0xb36879[_0x44b255('0x2552')]['id']})['$promise']['then'](function(_0x3ae2e3){var _0x4665ba=_0x44b255;return _0xb36879[_0x4665ba('0x126e')]=_0x3ae2e3[_0x4665ba('0x16a7')]?_0x3ae2e3[_0x4665ba('0x16a7')]:[],_0x108e76[_0x4665ba('0xf92')][_0x4665ba('0x280b')]({'id':_0xb36879[_0x4665ba('0x2552')]['id']})[_0x4665ba('0xe59')];})['then'](function(_0x577f40){var _0x102c11=_0x44b255;return _0xb36879[_0x102c11('0xb9c')]=_0x577f40[_0x102c11('0x16a7')]?_0x577f40[_0x102c11('0x16a7')]:[],_0x108e76[_0x102c11('0xf92')][_0x102c11('0x23f8')]({'id':_0xb36879[_0x102c11('0x2552')]['id']})[_0x102c11('0xe59')];})[_0x44b255('0xe19')](function(_0x4b7973){var _0x3d2a5c=_0x44b255;_0xb36879[_0x3d2a5c('0x1d17')]=_0x4b7973[_0x3d2a5c('0x16a7')]?_0x4b7973[_0x3d2a5c('0x16a7')]:[];})[_0x44b255('0x223b')](function(_0xf15ded){var _0x19e0d2=_0x44b255;_0x49dd26[_0x19e0d2('0x8c8')]({'title':_0xf15ded[_0x19e0d2('0x2833')]?'API:'+_0xf15ded[_0x19e0d2('0x2833')]+_0x19e0d2('0x1b7c')+_0xf15ded[_0x19e0d2('0x1fd7')]:_0x19e0d2('0x82a'),'msg':_0xf15ded[_0x19e0d2('0x11d0')]?JSON[_0x19e0d2('0x3ad')](_0xf15ded[_0x19e0d2('0x11d0')]):_0xf15ded[_0x19e0d2('0x94f')]()});});}function _0xe34130(_0x3c41b1,_0x4e9261){var _0x540d80=_0x5733e3;_0x261cbb[_0x540d80('0x26b2')]({'controller':_0x540d80('0x642'),'controllerAs':'vm','templateUrl':_0x2d6d97,'parent':angular[_0x540d80('0x24a1')](_0x2a2c16['body']),'targetEvent':_0x3c41b1,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x4e9261,'configurations':_0xb36879[_0x540d80('0x244e')],'license':null,'setting':null,'crudPermissions':_0xb36879[_0x540d80('0xb3d')]}})[_0x540d80('0x23')](function(){var _0x12d74b=_0x540d80;_0xb36879[_0x12d74b('0x1239')](0x0);});}function _0xfa22fb(_0x15d4cd,_0x36bc63){var _0x10b93f=_0x5733e3,_0x305584=_0x261cbb[_0x10b93f('0xa5')]()[_0x10b93f('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshsalesConfiguration?')[_0x10b93f('0x221c')](''+(_0x36bc63[_0x10b93f('0x2623')]||_0x10b93f('0x2552'))+_0x10b93f('0x27bb')+_0x10b93f('0x21bd'))[_0x10b93f('0x4d1')](_0x10b93f('0x1c0f'))[_0x10b93f('0x1345')](_0x15d4cd)['ok']('OK')[_0x10b93f('0x2c1')](_0x10b93f('0x17'));_0x261cbb[_0x10b93f('0x26b2')](_0x305584)['then'](function(){var _0x411daa=_0x10b93f;_0x108e76[_0x411daa('0xf92')][_0x411daa('0x229e')]({'id':_0x36bc63['id']})[_0x411daa('0xe59')]['then'](function(){var _0x23f576=_0x411daa;_0x32d445()[_0x23f576('0xa8b')](_0xb36879[_0x23f576('0x244e')],{'id':_0x36bc63['id']}),_0x49dd26[_0x23f576('0x425')]({'title':'FreshsalesConfiguration\x20deleted!','msg':_0x36bc63[_0x23f576('0x2623')]?_0x36bc63[_0x23f576('0x2623')]+_0x23f576('0x2182'):''});})[_0x411daa('0x223b')](function(_0x302fbe){var _0x4f47d0=_0x411daa;_0x49dd26['error']({'title':_0x302fbe[_0x4f47d0('0x2833')]?_0x4f47d0('0x27f2')+_0x302fbe[_0x4f47d0('0x2833')]+_0x4f47d0('0x1b7c')+_0x302fbe[_0x4f47d0('0x1fd7')]:'SYSTEM:DELETECONFIGURATION','msg':_0x302fbe[_0x4f47d0('0x11d0')]?JSON[_0x4f47d0('0x3ad')](_0x302fbe[_0x4f47d0('0x11d0')]):_0x302fbe['toString']()});})[_0x411daa('0x23')](function(){var _0x3ccfc5=_0x411daa;_0xb36879[_0x3ccfc5('0x1239')](0x0);});},function(){var _0x5ecce9=_0x10b93f;console[_0x5ecce9('0x1fe9')](_0x5ecce9('0x17'));});}_0xb36879[_0x5733e3('0x2508')]=[],_0xb36879['createOrEditSubject']=_0x11c9ff,_0xb36879['deleteSubjectConfirm']=_0xabc511,_0xb36879['deleteSelectedSubjects']=_0x379cab;function _0x11c9ff(_0x4c392e,_0x457091){var _0x2c0ead=_0x5733e3;_0x261cbb[_0x2c0ead('0x26b2')]({'controller':'CreateOrEditFreshsalesAccountItemDialogController','controllerAs':'vm','templateUrl':_0x416fe2,'parent':angular[_0x2c0ead('0x24a1')](_0x2a2c16[_0x2c0ead('0x19b2')]),'targetEvent':_0x4c392e,'clickOutsideToClose':!![],'locals':{'type':_0x2c0ead('0x9ec'),'item':_0x457091,'items':_0xb36879[_0x2c0ead('0x126e')],'configuration':_0xb36879['freshsalesConfiguration'],'account':_0xb36879[_0x2c0ead('0xca5')],'license':null,'setting':null,'crudPermissions':_0xb36879[_0x2c0ead('0xb3d')]}});}function _0x2058a4(_0x5345e8){var _0x54ddbb=_0x5733e3;_0x108e76[_0x54ddbb('0x17cf')][_0x54ddbb('0x229e')]({'id':_0x5345e8['id']})[_0x54ddbb('0xe59')]['then'](function(){var _0x52053f=_0x54ddbb;_0x32d445()[_0x52053f('0xa8b')](_0xb36879[_0x52053f('0x126e')],{'id':_0x5345e8['id']}),_0x49dd26['success']({'title':_0x52053f('0x191f'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x54ddbb('0x223b')](function(_0x35f853){var _0x5cc6ad=_0x54ddbb;_0x49dd26[_0x5cc6ad('0x8c8')]({'title':_0x35f853[_0x5cc6ad('0x2833')]?'API:'+_0x35f853[_0x5cc6ad('0x2833')]+_0x5cc6ad('0x1b7c')+_0x35f853[_0x5cc6ad('0x1fd7')]:_0x5cc6ad('0x1dde'),'msg':_0x35f853[_0x5cc6ad('0x11d0')]?JSON[_0x5cc6ad('0x3ad')](_0x35f853[_0x5cc6ad('0x11d0')]):_0x35f853[_0x5cc6ad('0x94f')]()});});}function _0xabc511(_0x1f1467,_0x4e15c4){var _0x5470eb=_0x5733e3,_0xb08694=_0x261cbb[_0x5470eb('0xa5')]()[_0x5470eb('0x13e4')](_0x5470eb('0x158a'))['htmlContent']('Subject'+_0x5470eb('0x21bd'))[_0x5470eb('0x4d1')]('delete\x20subject')['targetEvent'](_0x1f1467)['ok']('OK')[_0x5470eb('0x2c1')](_0x5470eb('0x17'));_0x261cbb['show'](_0xb08694)[_0x5470eb('0xe19')](function(){_0x2058a4(_0x4e15c4);},function(){var _0x443b06=_0x5470eb;console[_0x443b06('0x1fe9')](_0x443b06('0x17'));});}function _0x379cab(_0x480179){var _0xa2a43a=_0x5733e3,_0x5f191f=_0x261cbb[_0xa2a43a('0xa5')]()['title'](_0xa2a43a('0x232a'))[_0xa2a43a('0x221c')](_0xa2a43a('0xab2')+_0xb36879[_0xa2a43a('0x2508')][_0xa2a43a('0x25ae')]+_0xa2a43a('0x5bc')+_0xa2a43a('0x21bd'))[_0xa2a43a('0x4d1')](_0xa2a43a('0xbc0'))[_0xa2a43a('0x1345')](_0x480179)['ok']('OK')[_0xa2a43a('0x2c1')]('CANCEL');_0x261cbb[_0xa2a43a('0x26b2')](_0x5f191f)[_0xa2a43a('0xe19')](function(){var _0x34abd1=_0xa2a43a;_0xb36879[_0x34abd1('0x2508')][_0x34abd1('0x1d7e')](function(_0xca0523){_0x2058a4(_0xca0523);}),_0xb36879[_0x34abd1('0x2508')]=[];});}_0xb36879[_0x5733e3('0x858')]=[],_0xb36879['createOrEditDescription']=_0x12fb5b,_0xb36879['deleteDescriptionConfirm']=_0x2406d7,_0xb36879[_0x5733e3('0xd2c')]=_0x253f82;function _0x12fb5b(_0x279a08,_0x41fd93){var _0x1f048e=_0x5733e3;_0x261cbb[_0x1f048e('0x26b2')]({'controller':_0x1f048e('0x15f1'),'controllerAs':'vm','templateUrl':_0x416fe2,'parent':angular[_0x1f048e('0x24a1')](_0x2a2c16[_0x1f048e('0x19b2')]),'targetEvent':_0x279a08,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x41fd93,'items':_0xb36879[_0x1f048e('0xb9c')],'configuration':_0xb36879[_0x1f048e('0x2552')],'account':_0xb36879[_0x1f048e('0xca5')],'license':null,'setting':null,'crudPermissions':_0xb36879[_0x1f048e('0xb3d')]}});}function _0x42fc21(_0x18dd98){var _0x36c190=_0x5733e3;_0x108e76[_0x36c190('0x17cf')][_0x36c190('0x229e')]({'id':_0x18dd98['id']})[_0x36c190('0xe59')]['then'](function(){var _0x2cdb46=_0x36c190;_0x32d445()[_0x2cdb46('0xa8b')](_0xb36879[_0x2cdb46('0xb9c')],{'id':_0x18dd98['id']}),_0x49dd26[_0x2cdb46('0x425')]({'title':'Description\x20deleted!','msg':_0x2cdb46('0x1139')});})['catch'](function(_0x2d8dba){var _0x3c5499=_0x36c190;_0x49dd26[_0x3c5499('0x8c8')]({'title':_0x2d8dba[_0x3c5499('0x2833')]?'API:'+_0x2d8dba[_0x3c5499('0x2833')]+_0x3c5499('0x1b7c')+_0x2d8dba['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x2d8dba[_0x3c5499('0x11d0')]?JSON[_0x3c5499('0x3ad')](_0x2d8dba['data']):_0x2d8dba['toString']()});});}function _0x2406d7(_0x2f9d31,_0x5eb877){var _0x5989f5=_0x5733e3,_0x5b10db=_0x261cbb['confirm']()['title'](_0x5989f5('0x1c50'))[_0x5989f5('0x221c')](_0x5989f5('0x11e1')+_0x5989f5('0x21bd'))[_0x5989f5('0x4d1')](_0x5989f5('0x1dc0'))[_0x5989f5('0x1345')](_0x2f9d31)['ok']('OK')['cancel'](_0x5989f5('0x17'));_0x261cbb[_0x5989f5('0x26b2')](_0x5b10db)['then'](function(){_0x42fc21(_0x5eb877);},function(){var _0x168f81=_0x5989f5;console[_0x168f81('0x1fe9')](_0x168f81('0x17'));});}function _0x253f82(_0xc64536){var _0x5a12ae=_0x5733e3,_0x103ca9=_0x261cbb[_0x5a12ae('0xa5')]()['title'](_0x5a12ae('0x23f4'))['htmlContent'](_0x5a12ae('0xab2')+_0xb36879['selectedDescriptions']['length']+_0x5a12ae('0x5bc')+_0x5a12ae('0x21bd'))[_0x5a12ae('0x4d1')](_0x5a12ae('0x162'))['targetEvent'](_0xc64536)['ok']('OK')[_0x5a12ae('0x2c1')]('CANCEL');_0x261cbb[_0x5a12ae('0x26b2')](_0x103ca9)[_0x5a12ae('0xe19')](function(){var _0x5025c0=_0x5a12ae;_0xb36879[_0x5025c0('0x858')][_0x5025c0('0x1d7e')](function(_0x545736){_0x42fc21(_0x545736);}),_0xb36879[_0x5025c0('0x858')]=[];});}_0xb36879[_0x5733e3('0xf97')]=[],_0xb36879[_0x5733e3('0x131')]=_0x26403b,_0xb36879['deleteFieldConfirm']=_0xe35bb0,_0xb36879['deleteSelectedFields']=_0x571d16;function _0x26403b(_0x17e316,_0x345431){var _0x38561f=_0x5733e3;_0x261cbb['show']({'controller':_0x38561f('0x15f1'),'controllerAs':'vm','templateUrl':_0x416fe2,'parent':angular[_0x38561f('0x24a1')](_0x2a2c16[_0x38561f('0x19b2')]),'targetEvent':_0x17e316,'clickOutsideToClose':!![],'locals':{'type':_0x38561f('0x15d1'),'item':_0x345431,'items':_0xb36879[_0x38561f('0x1d17')],'configuration':_0xb36879['freshsalesConfiguration'],'account':_0xb36879[_0x38561f('0xca5')],'license':null,'setting':null,'crudPermissions':_0xb36879[_0x38561f('0xb3d')]}});}function _0x3b85e2(_0x30b76f){var _0xcba6d2=_0x5733e3;_0x108e76['intFreshsalesField'][_0xcba6d2('0x229e')]({'id':_0x30b76f['id']})[_0xcba6d2('0xe59')][_0xcba6d2('0xe19')](function(){var _0x587a11=_0xcba6d2;_0x32d445()['remove'](_0xb36879[_0x587a11('0x1d17')],{'id':_0x30b76f['id']}),_0x49dd26['success']({'title':_0x587a11('0x1e5d'),'msg':_0x587a11('0x21f5')});})[_0xcba6d2('0x223b')](function(_0x1db155){var _0x4702ad=_0xcba6d2;_0x49dd26[_0x4702ad('0x8c8')]({'title':_0x1db155[_0x4702ad('0x2833')]?_0x4702ad('0x27f2')+_0x1db155['status']+_0x4702ad('0x1b7c')+_0x1db155[_0x4702ad('0x1fd7')]:_0x4702ad('0x1dde'),'msg':_0x1db155[_0x4702ad('0x11d0')]?JSON[_0x4702ad('0x3ad')](_0x1db155['data']):_0x1db155[_0x4702ad('0x94f')]()});});}function _0xe35bb0(_0x18503a,_0x5bd3ea){var _0xc29684=_0x5733e3,_0x24fdda=_0x261cbb[_0xc29684('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')['htmlContent']('Field'+_0xc29684('0x21bd'))[_0xc29684('0x4d1')](_0xc29684('0x23f7'))[_0xc29684('0x1345')](_0x18503a)['ok']('OK')[_0xc29684('0x2c1')](_0xc29684('0x17'));_0x261cbb[_0xc29684('0x26b2')](_0x24fdda)[_0xc29684('0xe19')](function(){_0x3b85e2(_0x5bd3ea);},function(){var _0x57a11f=_0xc29684;console[_0x57a11f('0x1fe9')](_0x57a11f('0x17'));});}function _0x571d16(_0x2a3d76){var _0x4363f6=_0x5733e3,_0x5d07d9=_0x261cbb['confirm']()[_0x4363f6('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')['htmlContent'](_0x4363f6('0xab2')+_0xb36879[_0x4363f6('0xf97')]['length']+_0x4363f6('0x5bc')+_0x4363f6('0x21bd'))[_0x4363f6('0x4d1')](_0x4363f6('0x19c9'))[_0x4363f6('0x1345')](_0x2a3d76)['ok']('OK')[_0x4363f6('0x2c1')](_0x4363f6('0x17'));_0x261cbb['show'](_0x5d07d9)[_0x4363f6('0xe19')](function(){var _0x5981ad=_0x4363f6;_0xb36879['selectedFields'][_0x5981ad('0x1d7e')](function(_0x36b609){_0x3b85e2(_0x36b609);}),_0xb36879['selectedFields']=[];});}}const _0x325e80=_0x5bffc5;_0x5658e2[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x244e'),_0xb635d2('0x2552'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x5658e2(_0x57d5e9,_0x2e9027,_0x5358e5,_0x3ee397,_0x4ddc1b,_0x2b0629,_0x11d7c6,_0x18ac4b,_0x9306bc,_0x4e01d3,_0x497e3e,_0x576c5d,_0x418927,_0x1ea04c){var _0x23ac1e=_0xb635d2,_0x8e3d66=this;_0x8e3d66[_0x23ac1e('0x15a5')]=_0x497e3e[_0x23ac1e('0x1ef8')](),_0x8e3d66[_0x23ac1e('0xcd2')]=[],_0x8e3d66['setting']=_0x418927,_0x8e3d66['license']=_0x576c5d,_0x8e3d66['crudPermissions']=_0x1ea04c,_0x8e3d66['hasModulePermissions']={},_0x8e3d66[_0x23ac1e('0x25ac')]=_0x8e3d66[_0x23ac1e('0x22f1')]&&_0x8e3d66[_0x23ac1e('0x22f1')][_0x23ac1e('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8e3d66[_0x23ac1e('0x13e4')]=_0x23ac1e('0x21cf'),_0x8e3d66[_0x23ac1e('0x2552')]=angular[_0x23ac1e('0x89')](_0x9306bc),_0x8e3d66['configurations']=_0x18ac4b,_0x8e3d66[_0x23ac1e('0x1c7f')]=![];!_0x8e3d66[_0x23ac1e('0x2552')]&&(_0x8e3d66['freshsalesConfiguration']={'channel':'voice','type':'inbound'},_0x8e3d66['title']='INTEGRATIONS.NEW_FRESHSALESCONFIGURATION',_0x8e3d66['newFreshsalesConfiguration']=!![]);_0x8e3d66[_0x23ac1e('0x14c0')]=_0x538900,_0x8e3d66[_0x23ac1e('0x12cf')]=_0x2c3f3e,_0x8e3d66[_0x23ac1e('0x1e7a')]=_0x506cf9,_0x8e3d66['getDateFromString']=_0x438841,_0x8e3d66[_0x23ac1e('0x2584')]=_0x456812;function _0x538900(){var _0x348e98=_0x23ac1e;_0x8e3d66[_0x348e98('0xcd2')]=[],_0x4e01d3[_0x348e98('0x16a5')]['addConfiguration']({'id':_0x2e9027['params']['id']},_0x8e3d66['freshsalesConfiguration'])[_0x348e98('0xe59')][_0x348e98('0xe19')](function(_0x218449){var _0x2314f3=_0x348e98;_0x8e3d66[_0x2314f3('0x244e')]['unshift'](_0x218449[_0x2314f3('0x250e')]()),_0x11d7c6[_0x2314f3('0x425')]({'title':_0x2314f3('0x17f8'),'msg':_0x8e3d66[_0x2314f3('0x2552')]['name']?_0x8e3d66['freshsalesConfiguration']['name']+'\x20has\x20been\x20created!':''}),_0x456812(_0x218449);})[_0x348e98('0x223b')](function(_0x49c609){var _0xa3539=_0x348e98;if(_0x49c609[_0xa3539('0x11d0')]&&_0x49c609['data'][_0xa3539('0xcd2')]&&_0x49c609[_0xa3539('0x11d0')][_0xa3539('0xcd2')][_0xa3539('0x25ae')]){_0x8e3d66[_0xa3539('0xcd2')]=_0x49c609[_0xa3539('0x11d0')]['errors']||[{'message':_0x49c609[_0xa3539('0x94f')](),'type':_0xa3539('0x1b6a')}];for(var _0x32bfb5=0x0;_0x32bfb5<_0x49c609['data'][_0xa3539('0xcd2')]['length'];_0x32bfb5+=0x1){_0x11d7c6[_0xa3539('0x8c8')]({'title':_0x49c609[_0xa3539('0x11d0')][_0xa3539('0xcd2')][_0x32bfb5][_0xa3539('0x62e')],'msg':_0x49c609['data'][_0xa3539('0xcd2')][_0x32bfb5][_0xa3539('0x27e8')]});}}else _0x11d7c6[_0xa3539('0x8c8')]({'title':_0x49c609[_0xa3539('0x2833')]?_0xa3539('0x27f2')+_0x49c609['status']+_0xa3539('0x1b7c')+_0x49c609[_0xa3539('0x1fd7')]:_0xa3539('0x1b6a'),'msg':_0x49c609['data']?JSON['stringify'](_0x49c609[_0xa3539('0x11d0')][_0xa3539('0x27e8')]):_0x49c609['toString']()});});}function _0x2c3f3e(){var _0x473546=_0x23ac1e;_0x8e3d66['errors']=[],_0x4e01d3[_0x473546('0xf92')][_0x473546('0xa70')]({'id':_0x8e3d66[_0x473546('0x2552')]['id']},_0x8e3d66[_0x473546('0x2552')])[_0x473546('0xe59')][_0x473546('0xe19')](function(_0x5dfabd){var _0x41e47c=_0x473546,_0x55288f=_0x32d445()[_0x41e47c('0xf15')](_0x8e3d66['configurations'],{'id':_0x5dfabd['id']});_0x55288f&&_0x32d445()[_0x41e47c('0x1d8')](_0x55288f,_0x32d445()['pick'](_0x5dfabd['toJSON'](),_0x32d445()[_0x41e47c('0x1234')](_0x55288f))),_0x11d7c6[_0x41e47c('0x425')]({'title':'FreshsalesConfiguration\x20properly\x20saved!','msg':_0x8e3d66[_0x41e47c('0x2552')][_0x41e47c('0x2623')]?_0x8e3d66[_0x41e47c('0x2552')]['name']+_0x41e47c('0x1c19'):''}),_0x456812(_0x5dfabd);})[_0x473546('0x223b')](function(_0x14ce66){var _0x2773fb=_0x473546;if(_0x14ce66[_0x2773fb('0x11d0')]&&_0x14ce66['data'][_0x2773fb('0xcd2')]&&_0x14ce66[_0x2773fb('0x11d0')]['errors'][_0x2773fb('0x25ae')]){_0x8e3d66[_0x2773fb('0xcd2')]=_0x14ce66[_0x2773fb('0x11d0')][_0x2773fb('0xcd2')]||[{'message':_0x14ce66['toString'](),'type':_0x2773fb('0xe25')}];for(var _0x726148=0x0;_0x726148<_0x14ce66[_0x2773fb('0x11d0')]['errors'][_0x2773fb('0x25ae')];_0x726148++){_0x11d7c6['error']({'title':_0x14ce66[_0x2773fb('0x11d0')][_0x2773fb('0xcd2')][_0x726148][_0x2773fb('0x62e')],'msg':_0x14ce66[_0x2773fb('0x11d0')]['errors'][_0x726148][_0x2773fb('0x27e8')]});}}else _0x11d7c6[_0x2773fb('0x8c8')]({'title':_0x14ce66[_0x2773fb('0x2833')]?'API:'+_0x14ce66[_0x2773fb('0x2833')]+_0x2773fb('0x1b7c')+_0x14ce66[_0x2773fb('0x1fd7')]:_0x2773fb('0xe25'),'msg':_0x14ce66['data']?JSON['stringify'](_0x14ce66['data']['message']):_0x14ce66[_0x2773fb('0x94f')]()});});}function _0x506cf9(_0x3cc057){var _0x3f549e=_0x23ac1e;_0x8e3d66[_0x3f549e('0xcd2')]=[];var _0x2b2d8b=_0x3ee397[_0x3f549e('0xa5')]()[_0x3f549e('0x13e4')](_0x3f549e('0x24d0'))['content']('The\x20freshsalesConfiguration\x20will\x20be\x20deleted.')[_0x3f549e('0x4d1')]('Delete\x20FreshsalesConfiguration')['ok'](_0x3f549e('0x2198'))['cancel']('Cancel')['targetEvent'](_0x3cc057);_0x3ee397[_0x3f549e('0x26b2')](_0x2b2d8b)[_0x3f549e('0xe19')](function(){var _0x215bef=_0x3f549e;_0x4e01d3[_0x215bef('0xf92')][_0x215bef('0x229e')]({'id':_0x8e3d66[_0x215bef('0x2552')]['id']})[_0x215bef('0xe59')]['then'](function(){var _0x2723af=_0x215bef;_0x32d445()[_0x2723af('0xa8b')](_0x8e3d66[_0x2723af('0x244e')],{'id':_0x8e3d66['freshsalesConfiguration']['id']}),_0x11d7c6[_0x2723af('0x425')]({'title':_0x2723af('0x2016'),'msg':(_0x8e3d66['freshsalesConfiguration'][_0x2723af('0x2623')]||_0x2723af('0x2552'))+_0x2723af('0x2182')}),_0x456812(_0x8e3d66[_0x2723af('0x2552')]);})[_0x215bef('0x223b')](function(_0x54f0b1){var _0x2d5aa2=_0x215bef;if(_0x54f0b1[_0x2d5aa2('0x11d0')]&&_0x54f0b1[_0x2d5aa2('0x11d0')]['errors']&&_0x54f0b1[_0x2d5aa2('0x11d0')][_0x2d5aa2('0xcd2')]['length']){_0x8e3d66[_0x2d5aa2('0xcd2')]=_0x54f0b1[_0x2d5aa2('0x11d0')][_0x2d5aa2('0xcd2')]||[{'message':_0x54f0b1[_0x2d5aa2('0x94f')](),'type':'api.intFreshsalesConfiguration.delete'}];for(var _0x56a128=0x0;_0x56a128<_0x54f0b1[_0x2d5aa2('0x11d0')][_0x2d5aa2('0xcd2')][_0x2d5aa2('0x25ae')];_0x56a128++){_0x11d7c6[_0x2d5aa2('0x8c8')]({'title':_0x54f0b1[_0x2d5aa2('0x11d0')][_0x2d5aa2('0xcd2')][_0x56a128]['type'],'msg':_0x54f0b1[_0x2d5aa2('0x11d0')][_0x2d5aa2('0xcd2')][_0x56a128][_0x2d5aa2('0x27e8')]});}}else _0x11d7c6[_0x2d5aa2('0x8c8')]({'title':_0x54f0b1[_0x2d5aa2('0x2833')]?_0x2d5aa2('0x27f2')+_0x54f0b1[_0x2d5aa2('0x2833')]+'\x20-\x20'+_0x54f0b1[_0x2d5aa2('0x1fd7')]:_0x2d5aa2('0x23b8'),'msg':_0x54f0b1[_0x2d5aa2('0x11d0')]?JSON['stringify'](_0x54f0b1[_0x2d5aa2('0x11d0')]['message']):_0x54f0b1[_0x2d5aa2('0x27e8')]||_0x54f0b1[_0x2d5aa2('0x94f')]()});});},function(){});}function _0x438841(_0x5c93ec){return _0x5c93ec===null?undefined:new Date(_0x5c93ec);}function _0x456812(_0x2b5299){var _0x18e072=_0x23ac1e;_0x3ee397[_0x18e072('0x11ed')](_0x2b5299);}}const _0x22ad5a=_0x5658e2;_0x36b171[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),'configuration',_0xb635d2('0xe4b'),_0xb635d2('0xdbb'),'account','type','api',_0xb635d2('0x2730'),'crudPermissions'];function _0x36b171(_0x2a4d5b,_0x2718c0,_0x1e4fd3,_0x5f15b5,_0x3ad805,_0x2fb454,_0x45b22c,_0x343183,_0x2953a6,_0x1d2a5b,_0xa58944,_0x127621,_0x5dc5dc){var _0x5db252=_0xb635d2,_0x508fa2=this;_0x508fa2[_0x5db252('0x15a5')]=_0x127621['getCurrentUser'](),_0x508fa2['errors']=[],_0x508fa2[_0x5db252('0x13e4')]=_0x5db252('0x53c')+_0x32d445()['toUpper'](_0x1d2a5b),_0x508fa2[_0x5db252('0xdbb')]=angular[_0x5db252('0x89')](_0x343183),_0x508fa2[_0x5db252('0xe4b')]=_0x45b22c,_0x508fa2[_0x5db252('0x62e')]=_0x1d2a5b,_0x508fa2[_0x5db252('0xb3d')]=_0x5dc5dc,_0x508fa2[_0x5db252('0xa3')]=![];!_0x508fa2[_0x5db252('0xdbb')]&&(_0x508fa2['item']={'type':'string'},_0x508fa2['item'][_0x32d445()['capitalize'](_0x1d2a5b)+'Id']=_0x2fb454['id'],_0x508fa2[_0x5db252('0x13e4')]='INTEGRATIONS.NEW_'+_0x32d445()['toUpper'](_0x1d2a5b),_0x508fa2[_0x5db252('0xa3')]=!![]);_0x508fa2[_0x5db252('0x9ca')]=_0x129690,_0x508fa2['saveItem']=_0x7f587c,_0x508fa2[_0x5db252('0xc32')]=_0x25d452,_0x508fa2[_0x5db252('0x142b')]=_0x239789,_0x508fa2[_0x5db252('0x2584')]=_0x19abb4,_0xa58944['variable']['get']({'nolimit':!![]})[_0x5db252('0xe59')][_0x5db252('0xe19')](function(_0x1f9cc0){var _0x2b3dee=_0x5db252;return _0x508fa2[_0x2b3dee('0x1a9e')]=_0x1f9cc0[_0x2b3dee('0x16a7')]?_0x1f9cc0[_0x2b3dee('0x16a7')]:[],_0xa58944[_0x2b3dee('0x22cf')][_0x2b3dee('0x215e')]()[_0x2b3dee('0xe59')];})['then'](function(_0x2bb241){var _0x3ebae4=_0x5db252;return _0x508fa2[_0x3ebae4('0x1230')]=_0x32d445()[_0x3ebae4('0x11d3')](_0x32d445()[_0x3ebae4('0x1234')](_0x2bb241),[_0x3ebae4('0xe59'),_0x3ebae4('0x113c'),_0x3ebae4('0x15c9'),_0x3ebae4('0x1ce9'),_0x3ebae4('0x1bea')]),_0x508fa2[_0x3ebae4('0x1230')][_0x3ebae4('0xb76')](_0x3ebae4('0xeaa')),_0xa58944[_0x3ebae4('0xa4e')][_0x3ebae4('0x215e')]()[_0x3ebae4('0xe59')];})[_0x5db252('0xe19')](function(_0x5c47d3){var _0x238661=_0x5db252;_0x508fa2[_0x238661('0x9f9')]=_0x32d445()['difference'](_0x32d445()[_0x238661('0x1234')](_0x5c47d3),['$promise',_0x238661('0x113c'),_0x238661('0x15c9'),'updatedAt',_0x238661('0x1bea')]),_0x508fa2['voiceDialReportColumns']['push']('recordingURL');})[_0x5db252('0x223b')](function(_0x50c01e){var _0x235eef=_0x5db252;_0x3ad805[_0x235eef('0x8c8')]({'title':_0x50c01e[_0x235eef('0x2833')]?_0x235eef('0x27f2')+_0x50c01e[_0x235eef('0x2833')]+_0x235eef('0x1b7c')+_0x50c01e['statusText']:_0x235eef('0x1c83'),'msg':_0x50c01e[_0x235eef('0x11d0')]?JSON[_0x235eef('0x3ad')](_0x50c01e[_0x235eef('0x11d0')]):_0x50c01e[_0x235eef('0x94f')]()});}),_0xa58944[_0x5db252('0x16a5')][_0x5db252('0x23f8')]({'id':_0x2953a6['id'],'ticketType':_0x2fb454[_0x5db252('0x11d2')]?_0x2fb454[_0x5db252('0x11d2')]:undefined})[_0x5db252('0xe59')]['then'](function(_0x49e916){var _0x280880=_0x5db252;_0x508fa2[_0x280880('0xbba')]=!![],_0x508fa2[_0x280880('0x1d17')]=_0x49e916[_0x280880('0x16a7')]?_0x49e916[_0x280880('0x16a7')]:[],_0x508fa2[_0x280880('0xdbb')][_0x280880('0x1c96')]&&(_0x508fa2[_0x280880('0x1129')]=_0x32d445()[_0x280880('0xf15')](_0x508fa2[_0x280880('0x1d17')],{'id':_0x508fa2[_0x280880('0xdbb')][_0x280880('0x1c96')]}));})[_0x5db252('0x223b')](function(_0x5895d9){var _0x568a9f=_0x5db252;_0x508fa2[_0x568a9f('0xbba')]=![],console[_0x568a9f('0x8c8')](_0x5895d9);});function _0x129690(){var _0x5447f2=_0x5db252;_0x508fa2[_0x5447f2('0xcd2')]=[],_0x508fa2[_0x5447f2('0x1129')]&&(_0x508fa2[_0x5447f2('0xdbb')]['idField']=_0x508fa2[_0x5447f2('0x1129')]['id'],_0x508fa2[_0x5447f2('0xdbb')][_0x5447f2('0x99e')]=_0x508fa2[_0x5447f2('0x1129')][_0x5447f2('0x2623')],_0x508fa2['item'][_0x5447f2('0x1129')]=_0x508fa2[_0x5447f2('0x1129')][_0x5447f2('0x261d')]),_0xa58944[_0x5447f2('0x17cf')][_0x5447f2('0xe5e')](_0x508fa2['item'])[_0x5447f2('0xe59')][_0x5447f2('0xe19')](function(_0x5af11f){var _0x53bd33=_0x5447f2;_0x508fa2[_0x53bd33('0xe4b')][_0x53bd33('0x14c9')](_0x5af11f),_0x3ad805[_0x53bd33('0x425')]({'title':_0x32d445()['capitalize'](_0x1d2a5b)+_0x53bd33('0xf04'),'msg':_0x32d445()[_0x53bd33('0xbf6')](_0x1d2a5b)+'\x20has\x20been\x20created!'}),_0x19abb4();})[_0x5447f2('0x223b')](function(_0x103de6){var _0xd9110a=_0x5447f2;console[_0xd9110a('0x8c8')](_0x103de6),_0x508fa2[_0xd9110a('0xcd2')]=_0x103de6[_0xd9110a('0x11d0')][_0xd9110a('0xcd2')]||[{'message':_0x103de6['toString'](),'type':_0xd9110a('0xc4c')}];});}function _0x7f587c(){var _0x3e7a1d=_0x5db252;_0x508fa2[_0x3e7a1d('0xcd2')]=[],_0x508fa2[_0x3e7a1d('0x1129')]&&(_0x508fa2['item']['idField']=_0x508fa2['customField']['id'],_0x508fa2[_0x3e7a1d('0xdbb')]['nameField']=_0x508fa2[_0x3e7a1d('0x1129')]['name'],_0x508fa2[_0x3e7a1d('0xdbb')][_0x3e7a1d('0x1129')]=_0x508fa2[_0x3e7a1d('0x1129')][_0x3e7a1d('0x261d')]),_0xa58944[_0x3e7a1d('0x17cf')][_0x3e7a1d('0xa70')]({'id':_0x508fa2[_0x3e7a1d('0xdbb')]['id']},_0x508fa2['item'])[_0x3e7a1d('0xe59')][_0x3e7a1d('0xe19')](function(_0x18cfe2){var _0x3f864a=_0x3e7a1d,_0x283208=_0x32d445()[_0x3f864a('0xf15')](_0x508fa2[_0x3f864a('0xe4b')],{'id':_0x18cfe2['id']});_0x283208&&_0x32d445()[_0x3f864a('0x1d8')](_0x283208,_0x18cfe2),_0x3ad805[_0x3f864a('0x425')]({'title':_0x32d445()[_0x3f864a('0xbf6')](_0x1d2a5b)+_0x3f864a('0xdaf'),'msg':_0x32d445()[_0x3f864a('0xbf6')](_0x1d2a5b)+_0x3f864a('0x1c19')}),_0x19abb4();})[_0x3e7a1d('0x223b')](function(_0x3acdc0){var _0x480e31=_0x3e7a1d;console[_0x480e31('0x8c8')](_0x3acdc0),_0x508fa2[_0x480e31('0xcd2')]=_0x3acdc0['data'][_0x480e31('0xcd2')]||[{'message':_0x3acdc0['toString'](),'type':_0x480e31('0x2134')}];});}function _0x25d452(_0x346ba5){var _0x39cb80=_0x5db252;_0x508fa2[_0x39cb80('0xcd2')]=[];var _0x3a8433=_0x5f15b5[_0x39cb80('0xa5')]()[_0x39cb80('0x13e4')]('Are\x20you\x20sure?')[_0x39cb80('0xd0')](_0x39cb80('0x2784')+_0x1d2a5b+_0x39cb80('0x21bd'))[_0x39cb80('0x4d1')](_0x39cb80('0x13de')+_0x32d445()[_0x39cb80('0xbf6')](_0x1d2a5b))['ok'](_0x39cb80('0x2198'))[_0x39cb80('0x2c1')](_0x39cb80('0x8a3'))[_0x39cb80('0x1345')](_0x346ba5);_0x5f15b5['show'](_0x3a8433)['then'](function(){var _0x5a4edc=_0x39cb80;_0xa58944[_0x5a4edc('0x17cf')][_0x5a4edc('0x229e')]({'id':_0x508fa2['item']['id']})[_0x5a4edc('0xe59')][_0x5a4edc('0xe19')](function(){var _0x457b30=_0x5a4edc;_0x32d445()[_0x457b30('0xa8b')](_0x508fa2[_0x457b30('0xe4b')],{'id':_0x508fa2[_0x457b30('0xdbb')]['id']}),_0x3ad805[_0x457b30('0x425')]({'title':_0x32d445()[_0x457b30('0xbf6')](_0x1d2a5b)+_0x457b30('0x1ddc'),'msg':_0x32d445()[_0x457b30('0xbf6')](_0x1d2a5b)+_0x457b30('0x2182')}),_0x19abb4();})[_0x5a4edc('0x223b')](function(_0x31f5cf){var _0x301c00=_0x5a4edc;console['error'](_0x31f5cf),_0x508fa2[_0x301c00('0xcd2')]=_0x31f5cf[_0x301c00('0x11d0')][_0x301c00('0xcd2')]||[{'message':_0x31f5cf[_0x301c00('0x94f')](),'type':_0x301c00('0x2272')}];});},function(){});}function _0x239789(){var _0x28687c=_0x5db252;return _0x508fa2[_0x28687c('0xdbb')][_0x28687c('0x17b')]!==undefined?_0x508fa2[_0x28687c('0xdbb')]['variableName']:_0x28687c('0xc');}function _0x19abb4(){var _0x486915=_0x5db252;_0x5f15b5[_0x486915('0x11ed')]();}}const _0x36d558=_0x36b171;_0x30e969[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),'$translate',_0xb635d2('0x5c1'),'setting',_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730'),'freshsalesAccount',_0xb635d2('0xb59')];function _0x30e969(_0x5c6ef5,_0x4d95fb,_0x1c81b6,_0x52f502,_0x27ad5a,_0x2ad2fa,_0x3443e4,_0x2352b7,_0x2fde2d,_0x3bed7d,_0x235ef8,_0x260f27){var _0x364528=_0xb635d2,_0x2c2620=this;_0x2c2620[_0x364528('0x15a5')]=_0x3bed7d[_0x364528('0x1ef8')](),_0x2c2620['license']=_0x2ad2fa,_0x2c2620['setting']=_0x3443e4,_0x2c2620[_0x364528('0x25ac')]=_0x2c2620['setting'][_0x364528('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c2620[_0x364528('0x2170')]=_0x4d95fb['protocol']()+_0x364528('0x21a8')+_0x4d95fb[_0x364528('0x3b7')](),_0x2c2620[_0x364528('0xca5')]=_0x235ef8||_0x5c6ef5[_0x364528('0x2ef')][_0x364528('0xca5')]||{},_0x2c2620[_0x364528('0xb59')]=_0x260f27&&_0x260f27[_0x364528('0x148b')]==0x1?_0x260f27['rows'][0x0]:null,_0x2c2620['crudPermissions']=_0x3bed7d[_0x364528('0xd31')](_0x2c2620['userProfileSection']?_0x2c2620[_0x364528('0xb59')][_0x364528('0xb3d')]:null),_0x2c2620[_0x364528('0x1ccb')]={},_0x2c2620[_0x364528('0xc7b')]=_0x5c6ef5['params'][_0x364528('0x435')]||0x0,_0x2c2620[_0x364528('0xbdc')]=_0x2fde2d[_0x364528('0x1e67')],_0x2c2620[_0x364528('0x2319')]=_0x58a7a4,_0x2c2620[_0x364528('0x11a2')]=_0x57955e;function _0x58a7a4(){var _0x3fdc92=_0x364528;_0x5c6ef5['go'](_0x3fdc92('0x7c4'),{},{'reload':_0x3fdc92('0x7c4')});}function _0x57955e(){var _0x4520d3=_0x364528;_0x2352b7[_0x4520d3('0x16a5')][_0x4520d3('0xa70')]({'id':_0x2c2620[_0x4520d3('0xca5')]['id']},_0x2c2620[_0x4520d3('0xca5')])[_0x4520d3('0xe59')][_0x4520d3('0xe19')](function(){var _0x13757a=_0x4520d3;_0x2fde2d[_0x13757a('0x425')]({'title':_0x13757a('0x1908'),'msg':_0x2c2620[_0x13757a('0xca5')][_0x13757a('0x2623')]?_0x2c2620[_0x13757a('0xca5')]['name']+_0x13757a('0x283b'):''});})[_0x4520d3('0x223b')](function(_0x5e97da){var _0x24d4da=_0x4520d3;_0x2fde2d[_0x24d4da('0x8c8')]({'title':_0x5e97da[_0x24d4da('0x2833')]?_0x24d4da('0x27f2')+_0x5e97da['status']+_0x24d4da('0x1b7c')+_0x5e97da[_0x24d4da('0x1fd7')]:_0x24d4da('0xd85'),'msg':_0x5e97da[_0x24d4da('0x11d0')]?JSON[_0x24d4da('0x3ad')](_0x5e97da[_0x24d4da('0x11d0')]):_0x5e97da[_0x24d4da('0x94f')]()});});}}const _0x20ec5e=_0x30e969,_0x16c53b=_0x59426a['p']+_0xb635d2('0x1fa0');_0x13306e[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),'$mdDialog','$document','$timeout','$translate',_0xb635d2('0xb88'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1'),'setting'];function _0x13306e(_0x3c15a6,_0x232e97,_0x102ef5,_0x317d46,_0x5a6fa7,_0x32280f,_0x169d60,_0x183d9d,_0x2d07c6,_0x2a4687,_0x3358b3,_0x598290,_0x3f021e,_0x1f90df,_0x501f64,_0x4c18d1,_0x54ce26){var _0x237b0b=_0xb635d2,_0x339d5f=this;_0x339d5f['license']=_0x4c18d1,_0x339d5f['setting']=_0x54ce26,_0x339d5f[_0x237b0b('0x15a5')]=_0x501f64[_0x237b0b('0x1ef8')](),_0x339d5f['freshsalesAccounts']=_0x2d07c6||{'count':0x0,'rows':[]},_0x339d5f[_0x237b0b('0x154f')]=_0x2a4687,_0x339d5f[_0x237b0b('0xb59')]=_0x3358b3&&_0x3358b3['count']==0x1?_0x3358b3['rows'][0x0]:null,_0x339d5f['crudPermissions']=_0x501f64[_0x237b0b('0xd31')](_0x339d5f[_0x237b0b('0xb59')]?_0x339d5f[_0x237b0b('0xb59')][_0x237b0b('0xb3d')]:null),_0x339d5f[_0x237b0b('0x19b6')]=_0x237b0b('0xb88'),_0x339d5f['listOrder']='',_0x339d5f[_0x237b0b('0x190c')]=null,_0x339d5f[_0x237b0b('0x188b')]=[],_0x339d5f[_0x237b0b('0xa16')]={'fields':_0x237b0b('0x1572'),'limit':0xa,'page':0x1},_0x339d5f['editstate']=_0x2e506e,_0x339d5f['testtestintegrationaccount']=_0x3208fb,_0x339d5f[_0x237b0b('0x1d9e')]=_0x2b6f03,_0x339d5f['success']=_0x533695,_0x339d5f[_0x237b0b('0x11b2')]=_0x31bfb2,_0x339d5f[_0x237b0b('0xc0d')]=_0x476643,_0x339d5f[_0x237b0b('0xf70')]=_0x1fc096,_0x339d5f[_0x237b0b('0x1959')]=_0x1b20dd,_0x339d5f[_0x237b0b('0x24fa')]=_0x34cc56,_0x339d5f[_0x237b0b('0xd3c')]=_0xa30ff1,_0x339d5f[_0x237b0b('0x37')]=_0x5d1b2f;function _0x2e506e(_0x58c9d3){var _0x4f26bc=_0x237b0b;_0x102ef5['go'](_0x4f26bc('0xb23'),{'id':_0x58c9d3['id'],'freshsalesAccount':_0x58c9d3,'crudPermissions':_0x339d5f[_0x4f26bc('0xb3d')]});}function _0x3208fb(_0x18675e){var _0xf7f929=_0x237b0b;return _0x598290[_0xf7f929('0x16a5')]['getFields']({'id':_0x18675e['id'],'test':!![]})['$promise'][_0xf7f929('0xe19')](function(){var _0x339858=_0xf7f929;_0x1f90df[_0x339858('0x425')]({'title':_0x339858('0x61c'),'msg':_0x339858('0xd96')});})[_0xf7f929('0x223b')](function(_0x20f7a4){var _0x5d2f5c=_0xf7f929;_0x1f90df[_0x5d2f5c('0x8c8')]({'title':_0x5d2f5c('0x61c'),'msg':_0x20f7a4[_0x5d2f5c('0x11d0')]?_0x20f7a4[_0x5d2f5c('0x11d0')][_0x5d2f5c('0x27e8')]?_0x20f7a4[_0x5d2f5c('0x11d0')][_0x5d2f5c('0x27e8')]:JSON[_0x5d2f5c('0x3ad')](_0x20f7a4['data']):_0x20f7a4['toString']()});});}function _0x2b6f03(_0x5463b6,_0x5e0cda){var _0x464e51=_0x237b0b,_0xcabf9f=_0x5a6fa7[_0x464e51('0xa5')]()['title'](_0x464e51('0x346')+_0x32d445()[_0x464e51('0x1df2')]('freshsalesAccount')+'?')[_0x464e51('0x221c')](_0x464e51('0xab2')+(_0x5463b6[_0x464e51('0x2623')]||_0x464e51('0xca5'))+_0x464e51('0x27bb')+_0x464e51('0x21bd'))[_0x464e51('0x4d1')](_0x464e51('0x1b20'))[_0x464e51('0x1345')](_0x5e0cda)['ok']('OK')[_0x464e51('0x2c1')]('CANCEL');_0x5a6fa7[_0x464e51('0x26b2')](_0xcabf9f)[_0x464e51('0xe19')](function(){_0x1fc096(_0x5463b6);},function(){var _0x1a5819=_0x464e51;console['log'](_0x1a5819('0x17'));});}var _0x42fa06=!![],_0x2a3265=0x1;_0x3c15a6[_0x237b0b('0x107')](_0x237b0b('0x20cb'),function(_0x4d96b8,_0x4fa4c9){var _0x26682e=_0x237b0b;_0x42fa06?_0x169d60(function(){_0x42fa06=![];}):(!_0x4fa4c9&&(_0x2a3265=_0x339d5f[_0x26682e('0xa16')]['page']),_0x4d96b8!==_0x4fa4c9&&(_0x339d5f[_0x26682e('0xa16')][_0x26682e('0xc08')]=0x1),!_0x4d96b8&&(_0x339d5f['query'][_0x26682e('0xc08')]=_0x2a3265),_0x339d5f[_0x26682e('0x11b2')]());});function _0x533695(_0x24de3e){_0x339d5f['freshsalesAccounts']=_0x24de3e||{'count':0x0,'rows':[]};}function _0x31bfb2(){var _0x3a0ebe=_0x237b0b;_0x339d5f[_0x3a0ebe('0xa16')][_0x3a0ebe('0xab0')]=(_0x339d5f['query'][_0x3a0ebe('0xc08')]-0x1)*_0x339d5f['query'][_0x3a0ebe('0x1b6d')],_0x501f64[_0x3a0ebe('0x179e')](_0x3a0ebe('0xd14'))?_0x339d5f[_0x3a0ebe('0x9c8')]=_0x598290[_0x3a0ebe('0x16a5')][_0x3a0ebe('0x22d5')](_0x339d5f[_0x3a0ebe('0xa16')],_0x533695)[_0x3a0ebe('0xe59')]:(_0x339d5f[_0x3a0ebe('0xa16')]['id']=_0x339d5f['userProfile']['id'],_0x339d5f[_0x3a0ebe('0xa16')][_0x3a0ebe('0x1e59')]=_0x3a0ebe('0x2288'),_0x339d5f[_0x3a0ebe('0x9c8')]=_0x598290[_0x3a0ebe('0x154f')][_0x3a0ebe('0x14e6')](_0x339d5f[_0x3a0ebe('0xa16')],_0x533695)[_0x3a0ebe('0xe59')]);}function _0x476643(_0x21498d,_0x35358b){var _0x754e66=_0x237b0b;_0x5a6fa7['show']({'controller':_0x754e66('0xddf'),'controllerAs':'vm','templateUrl':_0x16c53b,'parent':angular['element'](_0x32280f[_0x754e66('0x19b2')]),'targetEvent':_0x21498d,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x35358b,'freshsalesAccounts':_0x339d5f['freshsalesAccounts'][_0x754e66('0x16a7')],'license':_0x339d5f[_0x754e66('0x5c1')],'setting':_0x339d5f[_0x754e66('0x22f1')],'crudPermissions':_0x339d5f[_0x754e66('0xb3d')]}});}function _0x1fc096(_0x118fdb){var _0x3f59b4=_0x237b0b;_0x598290['intFreshsalesAccount'][_0x3f59b4('0x229e')]({'id':_0x118fdb['id']})['$promise'][_0x3f59b4('0xe19')](function(){var _0x48ed83=_0x3f59b4;_0x32d445()['remove'](_0x339d5f['freshsalesAccounts'][_0x48ed83('0x16a7')],{'id':_0x118fdb['id']}),_0x339d5f[_0x48ed83('0xb88')][_0x48ed83('0x148b')]-=0x1,!_0x339d5f[_0x48ed83('0xb88')][_0x48ed83('0x16a7')][_0x48ed83('0x25ae')]&&_0x339d5f[_0x48ed83('0x11b2')](),_0x1f90df['success']({'title':_0x32d445()[_0x48ed83('0x1df2')](_0x48ed83('0x1bf6'))+'\x20deleted!','msg':_0x118fdb['name']?_0x118fdb[_0x48ed83('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x3f59b4('0x223b')](function(_0x1bcc85){var _0x260520=_0x3f59b4;if(_0x1bcc85[_0x260520('0x11d0')]&&_0x1bcc85[_0x260520('0x11d0')][_0x260520('0xcd2')]&&_0x1bcc85[_0x260520('0x11d0')]['errors'][_0x260520('0x25ae')]){_0x339d5f[_0x260520('0xcd2')]=_0x1bcc85['data'][_0x260520('0xcd2')]||[{'message':_0x1bcc85['toString'](),'type':_0x260520('0x19da')}];for(var _0x371f46=0x0;_0x371f46<_0x1bcc85[_0x260520('0x11d0')][_0x260520('0xcd2')][_0x260520('0x25ae')];_0x371f46++){_0x1f90df[_0x260520('0x8c8')]({'title':_0x1bcc85[_0x260520('0x11d0')][_0x260520('0xcd2')][_0x371f46]['type'],'msg':_0x1bcc85[_0x260520('0x11d0')][_0x260520('0xcd2')][_0x371f46]['message']});}}else _0x1f90df['error']({'title':_0x1bcc85[_0x260520('0x2833')]?_0x260520('0x27f2')+_0x1bcc85[_0x260520('0x2833')]+_0x260520('0x1b7c')+_0x1bcc85['statusText']:'SYSTEM:DELETEintFreshsalesAccount','msg':_0x1bcc85[_0x260520('0x11d0')]?JSON['stringify'](_0x1bcc85[_0x260520('0x11d0')]['message']):_0x1bcc85[_0x260520('0x27e8')]||_0x1bcc85['toString']()});});}function _0x1b20dd(){var _0xc1867c=_0x237b0b,_0x2e799f=angular[_0xc1867c('0x89')](_0x339d5f[_0xc1867c('0x188b')]);return _0x339d5f[_0xc1867c('0x188b')]=[],_0x2e799f;}function _0x34cc56(_0x68f61d){var _0x1a74c8=_0x237b0b,_0x4c7e8c=_0x5a6fa7[_0x1a74c8('0xa5')]()[_0x1a74c8('0x13e4')](_0x1a74c8('0x21c8'))['htmlContent'](_0x1a74c8('0xab2')+_0x339d5f[_0x1a74c8('0x188b')][_0x1a74c8('0x25ae')]+_0x1a74c8('0x5bc')+'\x20will\x20be\x20deleted.')[_0x1a74c8('0x4d1')](_0x1a74c8('0xec'))[_0x1a74c8('0x1345')](_0x68f61d)['ok']('OK')[_0x1a74c8('0x2c1')](_0x1a74c8('0x17'));_0x5a6fa7[_0x1a74c8('0x26b2')](_0x4c7e8c)[_0x1a74c8('0xe19')](function(){var _0x72acce=_0x1a74c8;_0x339d5f[_0x72acce('0x188b')][_0x72acce('0x1d7e')](function(_0x494173){_0x1fc096(_0x494173);}),_0x339d5f[_0x72acce('0x188b')]=[];});}function _0xa30ff1(){var _0x316eac=_0x237b0b;_0x339d5f[_0x316eac('0x188b')]=[];}function _0x5d1b2f(){var _0x124d48=_0x237b0b;_0x339d5f['selectedFreshsalesAccounts']=_0x339d5f[_0x124d48('0xb88')]['rows'];}}const _0x4532e0=_0x13306e;_0x32fede[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x427'),_0xb635d2('0x2582'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x32fede(_0x1f6da1,_0x17ae97,_0x30988b,_0x448b47,_0x5ade26,_0x2622a0,_0x2706f5,_0x240830,_0x5f2a5,_0x57efee,_0x413f8c,_0xb97e2,_0x4dcba3,_0x56f209){var _0x4c4d33=_0xb635d2,_0x519c1c=this;_0x519c1c['currentUser']=_0x413f8c[_0x4c4d33('0x1ef8')](),_0x519c1c['errors']=[],_0x519c1c['setting']=_0x4dcba3,_0x519c1c['license']=_0xb97e2,_0x519c1c[_0x4c4d33('0xb3d')]=_0x56f209,_0x519c1c[_0x4c4d33('0x1ccb')]={},_0x519c1c['passwordPattern']=_0x519c1c[_0x4c4d33('0x22f1')]&&_0x519c1c[_0x4c4d33('0x22f1')][_0x4c4d33('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x519c1c[_0x4c4d33('0x13e4')]=_0x4c4d33('0x912'),_0x519c1c['salesforceAccount']=angular['copy'](_0x5f2a5),_0x519c1c[_0x4c4d33('0x427')]=_0x240830,_0x519c1c[_0x4c4d33('0x265f')]=![];!_0x519c1c[_0x4c4d33('0x2582')]&&(_0x519c1c[_0x4c4d33('0x2582')]={'type':_0x4c4d33('0x1da'),'serverUrl':_0x30988b[_0x4c4d33('0xec0')]()+_0x4c4d33('0x21a8')+_0x30988b[_0x4c4d33('0x3b7')]()+(_0x30988b['port']()?':'+_0x30988b[_0x4c4d33('0x11dc')]():'')},_0x519c1c[_0x4c4d33('0x13e4')]=_0x4c4d33('0x516'),_0x519c1c[_0x4c4d33('0x265f')]=!![]);_0x519c1c[_0x4c4d33('0x2036')]=_0x46db3f,_0x519c1c[_0x4c4d33('0xfc')]=_0x3c3e90,_0x519c1c[_0x4c4d33('0x743')]=_0x47cc4d,_0x519c1c[_0x4c4d33('0x2635')]=_0x1f80ad,_0x519c1c[_0x4c4d33('0x2584')]=_0x1ea509;function _0x46db3f(){var _0x5cec00=_0x4c4d33;_0x519c1c[_0x5cec00('0xcd2')]=[],_0x57efee[_0x5cec00('0x24c1')][_0x5cec00('0xe5e')](_0x519c1c['salesforceAccount'])[_0x5cec00('0xe59')][_0x5cec00('0xe19')](function(_0x2e7b05){var _0x4d2fd5=_0x5cec00;_0x519c1c[_0x4d2fd5('0x427')]['unshift'](_0x2e7b05[_0x4d2fd5('0x250e')]()),_0x2706f5['success']({'title':'SalesforceAccount\x20properly\x20created','msg':_0x519c1c[_0x4d2fd5('0x2582')][_0x4d2fd5('0x2623')]?_0x519c1c[_0x4d2fd5('0x2582')]['name']+_0x4d2fd5('0x105f'):''}),_0x1ea509(_0x2e7b05);})['catch'](function(_0x17f266){var _0x2276c0=_0x5cec00;if(_0x17f266['data']&&_0x17f266[_0x2276c0('0x11d0')][_0x2276c0('0xcd2')]&&_0x17f266['data']['errors'][_0x2276c0('0x25ae')]){_0x519c1c['errors']=_0x17f266[_0x2276c0('0x11d0')][_0x2276c0('0xcd2')]||[{'message':_0x17f266[_0x2276c0('0x94f')](),'type':_0x2276c0('0x20b0')}];for(var _0x495b9e=0x0;_0x495b9e<_0x17f266[_0x2276c0('0x11d0')][_0x2276c0('0xcd2')][_0x2276c0('0x25ae')];_0x495b9e+=0x1){_0x2706f5['error']({'title':_0x17f266[_0x2276c0('0x11d0')][_0x2276c0('0xcd2')][_0x495b9e][_0x2276c0('0x62e')],'msg':_0x17f266[_0x2276c0('0x11d0')]['errors'][_0x495b9e][_0x2276c0('0x27e8')]});}}else _0x2706f5[_0x2276c0('0x8c8')]({'title':_0x17f266['status']?_0x2276c0('0x27f2')+_0x17f266[_0x2276c0('0x2833')]+_0x2276c0('0x1b7c')+_0x17f266[_0x2276c0('0x1fd7')]:_0x2276c0('0x20b0'),'msg':_0x17f266[_0x2276c0('0x11d0')]?JSON[_0x2276c0('0x3ad')](_0x17f266[_0x2276c0('0x11d0')][_0x2276c0('0x27e8')]):_0x17f266['toString']()});});}function _0x3c3e90(){var _0x33824a=_0x4c4d33;_0x519c1c['errors']=[],_0x57efee[_0x33824a('0x24c1')]['update']({'id':_0x519c1c[_0x33824a('0x2582')]['id']},_0x519c1c[_0x33824a('0x2582')])[_0x33824a('0xe59')][_0x33824a('0xe19')](function(_0x4659a7){var _0x1f748a=_0x33824a,_0x47cde0=_0x32d445()[_0x1f748a('0xf15')](_0x519c1c[_0x1f748a('0x427')],{'id':_0x4659a7['id']});_0x47cde0&&_0x32d445()[_0x1f748a('0x1d8')](_0x47cde0,_0x32d445()[_0x1f748a('0xed5')](_0x4659a7['toJSON'](),_0x32d445()['keys'](_0x47cde0))),_0x2706f5[_0x1f748a('0x425')]({'title':_0x1f748a('0x18bb'),'msg':_0x519c1c[_0x1f748a('0x2582')]['name']?_0x519c1c[_0x1f748a('0x2582')][_0x1f748a('0x2623')]+_0x1f748a('0x1c19'):''}),_0x1ea509(_0x4659a7);})['catch'](function(_0x4b0c5e){var _0x4bc9ae=_0x33824a;if(_0x4b0c5e['data']&&_0x4b0c5e[_0x4bc9ae('0x11d0')]['errors']&&_0x4b0c5e[_0x4bc9ae('0x11d0')][_0x4bc9ae('0xcd2')][_0x4bc9ae('0x25ae')]){_0x519c1c['errors']=_0x4b0c5e[_0x4bc9ae('0x11d0')]['errors']||[{'message':_0x4b0c5e[_0x4bc9ae('0x94f')](),'type':_0x4bc9ae('0xc75')}];for(var _0x415c7b=0x0;_0x415c7b<_0x4b0c5e[_0x4bc9ae('0x11d0')][_0x4bc9ae('0xcd2')][_0x4bc9ae('0x25ae')];_0x415c7b++){_0x2706f5[_0x4bc9ae('0x8c8')]({'title':_0x4b0c5e[_0x4bc9ae('0x11d0')][_0x4bc9ae('0xcd2')][_0x415c7b][_0x4bc9ae('0x62e')],'msg':_0x4b0c5e[_0x4bc9ae('0x11d0')]['errors'][_0x415c7b][_0x4bc9ae('0x27e8')]});}}else _0x2706f5[_0x4bc9ae('0x8c8')]({'title':_0x4b0c5e[_0x4bc9ae('0x2833')]?_0x4bc9ae('0x27f2')+_0x4b0c5e['status']+'\x20-\x20'+_0x4b0c5e[_0x4bc9ae('0x1fd7')]:_0x4bc9ae('0xc75'),'msg':_0x4b0c5e[_0x4bc9ae('0x11d0')]?JSON[_0x4bc9ae('0x3ad')](_0x4b0c5e[_0x4bc9ae('0x11d0')]['message']):_0x4b0c5e['toString']()});});}function _0x47cc4d(_0x5a31e3){var _0x5ca87=_0x4c4d33;_0x519c1c[_0x5ca87('0xcd2')]=[];var _0x2f2152=_0x448b47[_0x5ca87('0xa5')]()[_0x5ca87('0x13e4')](_0x5ca87('0x24d0'))['content']('The\x20salesforceAccount\x20will\x20be\x20deleted.')[_0x5ca87('0x4d1')]('Delete\x20SalesforceAccount')['ok'](_0x5ca87('0x2198'))['cancel'](_0x5ca87('0x8a3'))[_0x5ca87('0x1345')](_0x5a31e3);_0x448b47[_0x5ca87('0x26b2')](_0x2f2152)['then'](function(){var _0x33172c=_0x5ca87;_0x57efee[_0x33172c('0x24c1')][_0x33172c('0x229e')]({'id':_0x519c1c[_0x33172c('0x2582')]['id']})[_0x33172c('0xe59')][_0x33172c('0xe19')](function(){var _0x2a00cf=_0x33172c;_0x32d445()[_0x2a00cf('0xa8b')](_0x519c1c[_0x2a00cf('0x427')],{'id':_0x519c1c['salesforceAccount']['id']}),_0x2706f5[_0x2a00cf('0x425')]({'title':_0x2a00cf('0x14f3'),'msg':(_0x519c1c[_0x2a00cf('0x2582')][_0x2a00cf('0x2623')]||_0x2a00cf('0x2582'))+_0x2a00cf('0x2182')}),_0x1ea509(_0x519c1c['salesforceAccount']);})[_0x33172c('0x223b')](function(_0xb6caad){var _0x4f3f74=_0x33172c;if(_0xb6caad[_0x4f3f74('0x11d0')]&&_0xb6caad['data']['errors']&&_0xb6caad['data'][_0x4f3f74('0xcd2')][_0x4f3f74('0x25ae')]){_0x519c1c[_0x4f3f74('0xcd2')]=_0xb6caad['data']['errors']||[{'message':_0xb6caad[_0x4f3f74('0x94f')](),'type':_0x4f3f74('0x23ff')}];for(var _0x1ec401=0x0;_0x1ec401<_0xb6caad[_0x4f3f74('0x11d0')][_0x4f3f74('0xcd2')][_0x4f3f74('0x25ae')];_0x1ec401++){_0x2706f5['error']({'title':_0xb6caad[_0x4f3f74('0x11d0')]['errors'][_0x1ec401][_0x4f3f74('0x62e')],'msg':_0xb6caad[_0x4f3f74('0x11d0')]['errors'][_0x1ec401][_0x4f3f74('0x27e8')]});}}else _0x2706f5['error']({'title':_0xb6caad['status']?_0x4f3f74('0x27f2')+_0xb6caad[_0x4f3f74('0x2833')]+_0x4f3f74('0x1b7c')+_0xb6caad['statusText']:_0x4f3f74('0x23ff'),'msg':_0xb6caad['data']?JSON['stringify'](_0xb6caad['data'][_0x4f3f74('0x27e8')]):_0xb6caad[_0x4f3f74('0x27e8')]||_0xb6caad['toString']()});});},function(){});}function _0x1f80ad(_0x18849c){return _0x18849c===null?undefined:new Date(_0x18849c);}function _0x1ea509(_0x5b6cb3){_0x448b47['hide'](_0x5b6cb3);}}const _0x518f78=_0x32fede,_0x410beb=_0x59426a['p']+_0xb635d2('0x1748'),_0xeaf1df=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x1c2b55['$inject']=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth'];function _0x1c2b55(_0x366b29,_0x16c949,_0x3ecd59,_0x50ba26,_0x3c651e){var _0x2aa134=_0xb635d2,_0x471a60=this;_0x471a60[_0x2aa134('0x15a5')]=_0x3c651e[_0x2aa134('0x1ef8')](),_0x471a60[_0x2aa134('0x2582')]={},_0x471a60[_0x2aa134('0x14fa')]={},_0x471a60['configurations']=[],_0x471a60[_0x2aa134('0x1f70')]=-0x1,_0x471a60[_0x2aa134('0xb3d')],_0x471a60['init']=_0x304ae5,_0x471a60[_0x2aa134('0x1358')]=_0x3772f1,_0x471a60[_0x2aa134('0x439')]=_0x48c22d,_0x471a60[_0x2aa134('0x13ea')]=_0xafb669,_0x471a60[_0x2aa134('0x1dbb')]=_0x3244b6;function _0x3244b6(){var _0x377d62=_0x2aa134;return _0x3ecd59['intSalesforceConfiguration'][_0x377d62('0xa70')]({'id':_0x471a60['salesforceConfiguration']['id']},_0x471a60['salesforceConfiguration'])[_0x377d62('0xe59')][_0x377d62('0xe19')](function(){var _0x40546d=_0x377d62;_0x50ba26[_0x40546d('0x425')]({'title':'Module\x20updated!','msg':_0x40546d('0x8eb')});})[_0x377d62('0x223b')](function(_0x5ae43e){var _0x5c95a4=_0x377d62;_0x50ba26[_0x5c95a4('0x8c8')]({'title':_0x5ae43e[_0x5c95a4('0x2833')]?_0x5c95a4('0x27f2')+_0x5ae43e[_0x5c95a4('0x2833')]+_0x5c95a4('0x1b7c')+_0x5ae43e['statusText']:_0x5c95a4('0x2a'),'msg':_0x5ae43e[_0x5c95a4('0x11d0')]?JSON[_0x5c95a4('0x3ad')](_0x5ae43e[_0x5c95a4('0x11d0')]):_0x5ae43e[_0x5c95a4('0x94f')]()});});}function _0x304ae5(_0x1b2469,_0x86e784){var _0x5e52b4=_0x2aa134;_0x471a60[_0x5e52b4('0x2582')]=_0x1b2469,_0x471a60[_0x5e52b4('0xb3d')]=typeof _0x86e784!==_0x5e52b4('0x1143')?_0x86e784:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3ecd59[_0x5e52b4('0x24c1')][_0x5e52b4('0x1ac6')]({'id':_0x471a60['salesforceAccount']['id'],'sort':_0x5e52b4('0x7e8')})[_0x5e52b4('0xe59')][_0x5e52b4('0xe19')](function(_0x17b869){var _0x2f76ce=_0x5e52b4;return _0x471a60[_0x2f76ce('0x244e')]=_0x17b869[_0x2f76ce('0x16a7')]?_0x17b869['rows']:[],_0x471a60[_0x2f76ce('0x244e')][_0x2f76ce('0x25ae')]&&_0x471a60[_0x2f76ce('0x1358')](0x0),_0x3ecd59[_0x2f76ce('0x19a5')][_0x2f76ce('0x22d5')]({'nolimit':!![],'sort':_0x2f76ce('0x2623')})['$promise'];})['then'](function(_0x236b6d){var _0x5e75bc=_0x5e52b4;_0x471a60['variables']=_0x236b6d['rows']?_0x236b6d[_0x5e75bc('0x16a7')]:[],_0x471a60[_0x5e75bc('0x27b3')]=_0x32d445()[_0x5e75bc('0x226f')](_0x471a60[_0x5e75bc('0x1a9e')],'id');})[_0x5e52b4('0x223b')](function(_0x3810a1){var _0x121112=_0x5e52b4;_0x50ba26['error']({'title':_0x3810a1['status']?'API:'+_0x3810a1[_0x121112('0x2833')]+_0x121112('0x1b7c')+_0x3810a1[_0x121112('0x1fd7')]:_0x121112('0xf5b'),'msg':_0x3810a1['data']?JSON[_0x121112('0x3ad')](_0x3810a1[_0x121112('0x11d0')]):_0x3810a1[_0x121112('0x94f')]()});});}function _0x3772f1(_0x2936b2){var _0x787e3b=_0x2aa134;_0x471a60[_0x787e3b('0x14fa')]=_0x471a60[_0x787e3b('0x244e')][_0x2936b2],_0x471a60[_0x787e3b('0x1f70')]=_0x2936b2,_0x3ecd59[_0x787e3b('0x92c')][_0x787e3b('0xe77')]({'id':_0x471a60[_0x787e3b('0x14fa')]['id']})[_0x787e3b('0xe59')][_0x787e3b('0xe19')](function(_0x326d6a){var _0x25f213=_0x787e3b;return _0x471a60['subjects']=_0x326d6a[_0x25f213('0x16a7')]?_0x326d6a[_0x25f213('0x16a7')]:[],_0x3ecd59[_0x25f213('0x92c')][_0x25f213('0x280b')]({'id':_0x471a60[_0x25f213('0x14fa')]['id']})[_0x25f213('0xe59')];})[_0x787e3b('0xe19')](function(_0x486208){var _0x2aba2b=_0x787e3b;return _0x471a60[_0x2aba2b('0xb9c')]=_0x486208[_0x2aba2b('0x16a7')]?_0x486208[_0x2aba2b('0x16a7')]:[],_0x3ecd59[_0x2aba2b('0x92c')][_0x2aba2b('0x23f8')]({'id':_0x471a60[_0x2aba2b('0x14fa')]['id']})[_0x2aba2b('0xe59')];})[_0x787e3b('0xe19')](function(_0x244a48){var _0x2989c1=_0x787e3b;_0x471a60[_0x2989c1('0x1d17')]=_0x244a48[_0x2989c1('0x16a7')]?_0x244a48[_0x2989c1('0x16a7')]:[];})[_0x787e3b('0x223b')](function(_0x3b41e0){var _0x169ba1=_0x787e3b;_0x50ba26[_0x169ba1('0x8c8')]({'title':_0x3b41e0[_0x169ba1('0x2833')]?_0x169ba1('0x27f2')+_0x3b41e0[_0x169ba1('0x2833')]+_0x169ba1('0x1b7c')+_0x3b41e0[_0x169ba1('0x1fd7')]:_0x169ba1('0x82a'),'msg':_0x3b41e0['data']?JSON[_0x169ba1('0x3ad')](_0x3b41e0[_0x169ba1('0x11d0')]):_0x3b41e0[_0x169ba1('0x94f')]()});});}function _0x48c22d(_0x5ac354,_0x5dace3){var _0x4d54a1=_0x2aa134;_0x366b29[_0x4d54a1('0x26b2')]({'controller':_0x4d54a1('0x1204'),'controllerAs':'vm','templateUrl':_0x410beb,'parent':angular['element'](_0x16c949[_0x4d54a1('0x19b2')]),'targetEvent':_0x5ac354,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0x5dace3,'configurations':_0x471a60[_0x4d54a1('0x244e')],'license':null,'setting':null,'crudPermissions':_0x471a60[_0x4d54a1('0xb3d')]}})[_0x4d54a1('0x23')](function(){var _0x447bea=_0x4d54a1;_0x471a60[_0x447bea('0x1358')](0x0);});}function _0xafb669(_0x4a23b6,_0x346a38){var _0x5678f2=_0x2aa134,_0x1c84fa=_0x366b29[_0x5678f2('0xa5')]()[_0x5678f2('0x13e4')](_0x5678f2('0x225'))['htmlContent'](_0x5678f2('0xab2')+(_0x346a38[_0x5678f2('0x2623')]||_0x5678f2('0x14fa'))+_0x5678f2('0x27bb')+'\x20will\x20be\x20deleted.')[_0x5678f2('0x4d1')](_0x5678f2('0x105e'))[_0x5678f2('0x1345')](_0x4a23b6)['ok']('OK')[_0x5678f2('0x2c1')](_0x5678f2('0x17'));_0x366b29['show'](_0x1c84fa)['then'](function(){var _0x2c1a53=_0x5678f2;_0x3ecd59[_0x2c1a53('0x92c')]['delete']({'id':_0x346a38['id']})[_0x2c1a53('0xe59')][_0x2c1a53('0xe19')](function(){var _0x383b28=_0x2c1a53;_0x32d445()[_0x383b28('0xa8b')](_0x471a60[_0x383b28('0x244e')],{'id':_0x346a38['id']}),_0x50ba26[_0x383b28('0x425')]({'title':_0x383b28('0x1ce4'),'msg':_0x346a38[_0x383b28('0x2623')]?_0x346a38['name']+'\x20has\x20been\x20deleted!':''});})[_0x2c1a53('0x223b')](function(_0x3cd950){var _0x359caf=_0x2c1a53;_0x50ba26['error']({'title':_0x3cd950['status']?'API:'+_0x3cd950[_0x359caf('0x2833')]+_0x359caf('0x1b7c')+_0x3cd950[_0x359caf('0x1fd7')]:_0x359caf('0x127'),'msg':_0x3cd950['data']?JSON[_0x359caf('0x3ad')](_0x3cd950[_0x359caf('0x11d0')]):_0x3cd950[_0x359caf('0x94f')]()});})['finally'](function(){var _0x4348e1=_0x2c1a53;_0x471a60[_0x4348e1('0x1358')](0x0);});},function(){var _0x5c4bf0=_0x5678f2;console[_0x5c4bf0('0x1fe9')](_0x5c4bf0('0x17'));});}_0x471a60['selectedSubjects']=[],_0x471a60['createOrEditSubject']=_0x7df811,_0x471a60[_0x2aa134('0x10dc')]=_0x5cc402,_0x471a60[_0x2aa134('0x1c53')]=_0x3eeeb1;function _0x7df811(_0x28a93c,_0x5bfcf7){var _0x49ce45=_0x2aa134;_0x366b29[_0x49ce45('0x26b2')]({'controller':'CreateOrEditSalesforceAccountItemDialogController','controllerAs':'vm','templateUrl':_0xeaf1df,'parent':angular['element'](_0x16c949[_0x49ce45('0x19b2')]),'targetEvent':_0x28a93c,'clickOutsideToClose':!![],'locals':{'type':_0x49ce45('0x9ec'),'item':_0x5bfcf7,'items':_0x471a60[_0x49ce45('0x126e')],'configuration':_0x471a60[_0x49ce45('0x14fa')],'account':_0x471a60[_0x49ce45('0x2582')],'license':null,'setting':null,'crudPermissions':_0x471a60[_0x49ce45('0xb3d')]}});}function _0x10695c(_0x3b7758){var _0x21297f=_0x2aa134;_0x3ecd59[_0x21297f('0xde1')][_0x21297f('0x229e')]({'id':_0x3b7758['id']})[_0x21297f('0xe59')][_0x21297f('0xe19')](function(){var _0x4cfce9=_0x21297f;_0x32d445()[_0x4cfce9('0xa8b')](_0x471a60[_0x4cfce9('0x126e')],{'id':_0x3b7758['id']}),_0x50ba26[_0x4cfce9('0x425')]({'title':'Subject\x20deleted!','msg':_0x4cfce9('0xae3')});})[_0x21297f('0x223b')](function(_0x4337a8){var _0xc31391=_0x21297f;_0x50ba26[_0xc31391('0x8c8')]({'title':_0x4337a8[_0xc31391('0x2833')]?_0xc31391('0x27f2')+_0x4337a8[_0xc31391('0x2833')]+_0xc31391('0x1b7c')+_0x4337a8['statusText']:_0xc31391('0x1dde'),'msg':_0x4337a8[_0xc31391('0x11d0')]?JSON[_0xc31391('0x3ad')](_0x4337a8[_0xc31391('0x11d0')]):_0x4337a8[_0xc31391('0x94f')]()});});}function _0x5cc402(_0x118017,_0x8ae56){var _0x44792f=_0x2aa134,_0x498924=_0x366b29[_0x44792f('0xa5')]()[_0x44792f('0x13e4')](_0x44792f('0x158a'))['htmlContent'](_0x44792f('0x5f9')+_0x44792f('0x21bd'))[_0x44792f('0x4d1')](_0x44792f('0x974'))[_0x44792f('0x1345')](_0x118017)['ok']('OK')[_0x44792f('0x2c1')](_0x44792f('0x17'));_0x366b29[_0x44792f('0x26b2')](_0x498924)['then'](function(){_0x10695c(_0x8ae56);},function(){var _0x549f54=_0x44792f;console[_0x549f54('0x1fe9')]('CANCEL');});}function _0x3eeeb1(_0xdf6034){var _0x20a582=_0x2aa134,_0x3a7d6c=_0x366b29[_0x20a582('0xa5')]()[_0x20a582('0x13e4')](_0x20a582('0x232a'))['htmlContent'](''+_0x471a60[_0x20a582('0x2508')]['length']+'\x20selected'+_0x20a582('0x21bd'))[_0x20a582('0x4d1')]('delete\x20subjects')[_0x20a582('0x1345')](_0xdf6034)['ok']('OK')[_0x20a582('0x2c1')]('CANCEL');_0x366b29['show'](_0x3a7d6c)['then'](function(){var _0x32d61d=_0x20a582;_0x471a60[_0x32d61d('0x2508')][_0x32d61d('0x1d7e')](function(_0x4fbd66){_0x10695c(_0x4fbd66);}),_0x471a60[_0x32d61d('0x2508')]=[];});}_0x471a60[_0x2aa134('0x858')]=[],_0x471a60[_0x2aa134('0x2885')]=_0x2c75eb,_0x471a60[_0x2aa134('0x95b')]=_0x11ef22,_0x471a60[_0x2aa134('0xd2c')]=_0x5a006a;function _0x2c75eb(_0x514c07,_0x4a9b62){var _0x26894a=_0x2aa134;_0x366b29[_0x26894a('0x26b2')]({'controller':'CreateOrEditSalesforceAccountItemDialogController','controllerAs':'vm','templateUrl':_0xeaf1df,'parent':angular[_0x26894a('0x24a1')](_0x16c949[_0x26894a('0x19b2')]),'targetEvent':_0x514c07,'clickOutsideToClose':!![],'locals':{'type':_0x26894a('0x897'),'item':_0x4a9b62,'items':_0x471a60[_0x26894a('0xb9c')],'configuration':_0x471a60[_0x26894a('0x14fa')],'account':_0x471a60[_0x26894a('0x2582')],'license':null,'setting':null,'crudPermissions':_0x471a60[_0x26894a('0xb3d')]}});}function _0x38d261(_0xa0f14d){var _0xae6f=_0x2aa134;_0x3ecd59[_0xae6f('0xde1')][_0xae6f('0x229e')]({'id':_0xa0f14d['id']})[_0xae6f('0xe59')]['then'](function(){var _0x1fc9d9=_0xae6f;_0x32d445()['remove'](_0x471a60[_0x1fc9d9('0xb9c')],{'id':_0xa0f14d['id']}),_0x50ba26[_0x1fc9d9('0x425')]({'title':'Description\x20deleted!','msg':_0x1fc9d9('0x1139')});})[_0xae6f('0x223b')](function(_0x3af793){var _0x2f9691=_0xae6f;_0x50ba26[_0x2f9691('0x8c8')]({'title':_0x3af793[_0x2f9691('0x2833')]?_0x2f9691('0x27f2')+_0x3af793[_0x2f9691('0x2833')]+_0x2f9691('0x1b7c')+_0x3af793['statusText']:_0x2f9691('0x1dde'),'msg':_0x3af793[_0x2f9691('0x11d0')]?JSON[_0x2f9691('0x3ad')](_0x3af793[_0x2f9691('0x11d0')]):_0x3af793[_0x2f9691('0x94f')]()});});}function _0x11ef22(_0xa2a2dc,_0xe069e3){var _0x57f210=_0x2aa134,_0x33dc41=_0x366b29[_0x57f210('0xa5')]()[_0x57f210('0x13e4')](_0x57f210('0x1c50'))[_0x57f210('0x221c')]('Description'+_0x57f210('0x21bd'))['ariaLabel'](_0x57f210('0x1dc0'))[_0x57f210('0x1345')](_0xa2a2dc)['ok']('OK')[_0x57f210('0x2c1')]('CANCEL');_0x366b29[_0x57f210('0x26b2')](_0x33dc41)[_0x57f210('0xe19')](function(){_0x38d261(_0xe069e3);},function(){var _0x19b3ad=_0x57f210;console[_0x19b3ad('0x1fe9')](_0x19b3ad('0x17'));});}function _0x5a006a(_0x548ec4){var _0x20d33d=_0x2aa134,_0x431ce4=_0x366b29[_0x20d33d('0xa5')]()[_0x20d33d('0x13e4')](_0x20d33d('0x23f4'))[_0x20d33d('0x221c')](_0x20d33d('0xab2')+_0x471a60[_0x20d33d('0x858')]['length']+_0x20d33d('0x5bc')+_0x20d33d('0x21bd'))[_0x20d33d('0x4d1')]('delete\x20descriptions')[_0x20d33d('0x1345')](_0x548ec4)['ok']('OK')['cancel']('CANCEL');_0x366b29[_0x20d33d('0x26b2')](_0x431ce4)[_0x20d33d('0xe19')](function(){var _0x51b38e=_0x20d33d;_0x471a60['selectedDescriptions'][_0x51b38e('0x1d7e')](function(_0x2091ef){_0x38d261(_0x2091ef);}),_0x471a60[_0x51b38e('0x858')]=[];});}_0x471a60[_0x2aa134('0xf97')]=[],_0x471a60[_0x2aa134('0x131')]=_0x18c986,_0x471a60[_0x2aa134('0x2152')]=_0x51c2f0,_0x471a60[_0x2aa134('0xdfd')]=_0x1f87c0;function _0x18c986(_0x1af162,_0x61c5c0){var _0x41bd11=_0x2aa134;_0x366b29['show']({'controller':_0x41bd11('0xce8'),'controllerAs':'vm','templateUrl':_0xeaf1df,'parent':angular['element'](_0x16c949[_0x41bd11('0x19b2')]),'targetEvent':_0x1af162,'clickOutsideToClose':!![],'locals':{'type':_0x41bd11('0x15d1'),'item':_0x61c5c0,'items':_0x471a60[_0x41bd11('0x1d17')],'configuration':_0x471a60[_0x41bd11('0x14fa')],'account':_0x471a60['salesforceAccount'],'license':null,'setting':null,'crudPermissions':_0x471a60[_0x41bd11('0xb3d')]}});}function _0x112be5(_0x2efc06){var _0x58330f=_0x2aa134;_0x3ecd59[_0x58330f('0xde1')][_0x58330f('0x229e')]({'id':_0x2efc06['id']})['$promise'][_0x58330f('0xe19')](function(){var _0x2ed50a=_0x58330f;_0x32d445()[_0x2ed50a('0xa8b')](_0x471a60[_0x2ed50a('0x1d17')],{'id':_0x2efc06['id']}),_0x50ba26[_0x2ed50a('0x425')]({'title':_0x2ed50a('0x1e5d'),'msg':_0x2ed50a('0x21f5')});})['catch'](function(_0x491359){var _0x2ce73b=_0x58330f;_0x50ba26[_0x2ce73b('0x8c8')]({'title':_0x491359['status']?_0x2ce73b('0x27f2')+_0x491359[_0x2ce73b('0x2833')]+'\x20-\x20'+_0x491359[_0x2ce73b('0x1fd7')]:_0x2ce73b('0x1dde'),'msg':_0x491359[_0x2ce73b('0x11d0')]?JSON[_0x2ce73b('0x3ad')](_0x491359[_0x2ce73b('0x11d0')]):_0x491359['toString']()});});}function _0x51c2f0(_0x279215,_0x438229){var _0x1b8a30=_0x2aa134,_0x971887=_0x366b29['confirm']()[_0x1b8a30('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x1b8a30('0x221c')]('Field'+_0x1b8a30('0x21bd'))[_0x1b8a30('0x4d1')](_0x1b8a30('0x23f7'))[_0x1b8a30('0x1345')](_0x279215)['ok']('OK')[_0x1b8a30('0x2c1')](_0x1b8a30('0x17'));_0x366b29[_0x1b8a30('0x26b2')](_0x971887)['then'](function(){_0x112be5(_0x438229);},function(){var _0x312901=_0x1b8a30;console[_0x312901('0x1fe9')]('CANCEL');});}function _0x1f87c0(_0x27720b){var _0x303737=_0x2aa134,_0x54fe9a=_0x366b29['confirm']()[_0x303737('0x13e4')](_0x303737('0x128c'))['htmlContent'](''+_0x471a60[_0x303737('0xf97')][_0x303737('0x25ae')]+_0x303737('0x5bc')+'\x20will\x20be\x20deleted.')[_0x303737('0x4d1')]('delete\x20fields')[_0x303737('0x1345')](_0x27720b)['ok']('OK')[_0x303737('0x2c1')](_0x303737('0x17'));_0x366b29[_0x303737('0x26b2')](_0x54fe9a)[_0x303737('0xe19')](function(){var _0x5bbff2=_0x303737;_0x471a60[_0x5bbff2('0xf97')]['forEach'](function(_0x413630){_0x112be5(_0x413630);}),_0x471a60['selectedFields']=[];});}}const _0x2f4c14=_0x1c2b55;_0x1717e5[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),'configurations',_0xb635d2('0x14fa'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x1717e5(_0x13b4ad,_0x31adfb,_0x332e92,_0x1db8da,_0x4d75b8,_0x234b70,_0x57493b,_0x2f7ffd,_0x2e7e49,_0x3c2313,_0x2d27ea,_0x261808,_0x13b1b3,_0x1e4075){var _0x4eaed3=_0xb635d2,_0xb3bbeb=this;_0xb3bbeb[_0x4eaed3('0x15a5')]=_0x2d27ea['getCurrentUser'](),_0xb3bbeb[_0x4eaed3('0xcd2')]=[],_0xb3bbeb[_0x4eaed3('0x22f1')]=_0x13b1b3,_0xb3bbeb[_0x4eaed3('0x5c1')]=_0x261808,_0xb3bbeb[_0x4eaed3('0xb3d')]=_0x1e4075,_0xb3bbeb['hasModulePermissions']={},_0xb3bbeb[_0x4eaed3('0x25ac')]=_0xb3bbeb[_0x4eaed3('0x22f1')]&&_0xb3bbeb[_0x4eaed3('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xb3bbeb['title']=_0x4eaed3('0x240d'),_0xb3bbeb[_0x4eaed3('0x14fa')]=angular['copy'](_0x2e7e49),_0xb3bbeb[_0x4eaed3('0x244e')]=_0x2f7ffd,_0xb3bbeb[_0x4eaed3('0xf68')]=![];!_0xb3bbeb[_0x4eaed3('0x14fa')]&&(_0xb3bbeb[_0x4eaed3('0x14fa')]={'channel':_0x4eaed3('0xe74'),'type':_0x4eaed3('0x1a7a'),'ticketType':'Task'},_0xb3bbeb['title']=_0x4eaed3('0xa0'),_0xb3bbeb[_0x4eaed3('0xf68')]=!![]);_0xb3bbeb[_0x4eaed3('0x25d8')]=_0x259c69,_0xb3bbeb['saveSalesforceConfiguration']=_0xa363cf,_0xb3bbeb[_0x4eaed3('0x13ea')]=_0x39d655,_0xb3bbeb[_0x4eaed3('0x2635')]=_0x73ce6c,_0xb3bbeb[_0x4eaed3('0x2584')]=_0x79d33e;function _0x259c69(){var _0x382c76=_0x4eaed3;_0xb3bbeb[_0x382c76('0xcd2')]=[],_0x3c2313[_0x382c76('0x24c1')][_0x382c76('0x2402')]({'id':_0x31adfb['params']['id']},_0xb3bbeb['salesforceConfiguration'])[_0x382c76('0xe59')][_0x382c76('0xe19')](function(_0x32ce2f){var _0x376832=_0x382c76;_0xb3bbeb[_0x376832('0x244e')][_0x376832('0x14c9')](_0x32ce2f[_0x376832('0x250e')]()),_0x57493b[_0x376832('0x425')]({'title':_0x376832('0x8d1'),'msg':_0xb3bbeb[_0x376832('0x14fa')][_0x376832('0x2623')]?_0xb3bbeb[_0x376832('0x14fa')]['name']+'\x20has\x20been\x20created!':''}),_0x79d33e(_0x32ce2f);})[_0x382c76('0x223b')](function(_0x34724d){var _0x1ff756=_0x382c76;if(_0x34724d['data']&&_0x34724d[_0x1ff756('0x11d0')]['errors']&&_0x34724d[_0x1ff756('0x11d0')][_0x1ff756('0xcd2')][_0x1ff756('0x25ae')]){_0xb3bbeb[_0x1ff756('0xcd2')]=_0x34724d[_0x1ff756('0x11d0')]['errors']||[{'message':_0x34724d[_0x1ff756('0x94f')](),'type':_0x1ff756('0x1e32')}];for(var _0x2986fd=0x0;_0x2986fd<_0x34724d['data'][_0x1ff756('0xcd2')]['length'];_0x2986fd+=0x1){_0x57493b[_0x1ff756('0x8c8')]({'title':_0x34724d[_0x1ff756('0x11d0')][_0x1ff756('0xcd2')][_0x2986fd][_0x1ff756('0x62e')],'msg':_0x34724d[_0x1ff756('0x11d0')][_0x1ff756('0xcd2')][_0x2986fd][_0x1ff756('0x27e8')]});}}else _0x57493b['error']({'title':_0x34724d[_0x1ff756('0x2833')]?_0x1ff756('0x27f2')+_0x34724d[_0x1ff756('0x2833')]+_0x1ff756('0x1b7c')+_0x34724d['statusText']:'api.intSalesforceConfiguration.save','msg':_0x34724d[_0x1ff756('0x11d0')]?JSON[_0x1ff756('0x3ad')](_0x34724d[_0x1ff756('0x11d0')][_0x1ff756('0x27e8')]):_0x34724d[_0x1ff756('0x94f')]()});});}function _0xa363cf(){var _0x3bbd4b=_0x4eaed3;_0xb3bbeb[_0x3bbd4b('0xcd2')]=[],_0x3c2313[_0x3bbd4b('0x92c')][_0x3bbd4b('0xa70')]({'id':_0xb3bbeb[_0x3bbd4b('0x14fa')]['id']},_0xb3bbeb[_0x3bbd4b('0x14fa')])[_0x3bbd4b('0xe59')]['then'](function(_0x514460){var _0x57da4c=_0x3bbd4b,_0x4b7d3e=_0x32d445()[_0x57da4c('0xf15')](_0xb3bbeb[_0x57da4c('0x244e')],{'id':_0x514460['id']});_0x4b7d3e&&_0x32d445()[_0x57da4c('0x1d8')](_0x4b7d3e,_0x32d445()['pick'](_0x514460[_0x57da4c('0x250e')](),_0x32d445()[_0x57da4c('0x1234')](_0x4b7d3e))),_0x57493b[_0x57da4c('0x425')]({'title':_0x57da4c('0x57f'),'msg':_0xb3bbeb[_0x57da4c('0x14fa')][_0x57da4c('0x2623')]?_0xb3bbeb[_0x57da4c('0x14fa')][_0x57da4c('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x79d33e(_0x514460);})[_0x3bbd4b('0x223b')](function(_0x369b61){var _0x4212c7=_0x3bbd4b;if(_0x369b61[_0x4212c7('0x11d0')]&&_0x369b61[_0x4212c7('0x11d0')]['errors']&&_0x369b61[_0x4212c7('0x11d0')][_0x4212c7('0xcd2')][_0x4212c7('0x25ae')]){_0xb3bbeb[_0x4212c7('0xcd2')]=_0x369b61[_0x4212c7('0x11d0')][_0x4212c7('0xcd2')]||[{'message':_0x369b61[_0x4212c7('0x94f')](),'type':_0x4212c7('0x1585')}];for(var _0x30fc54=0x0;_0x30fc54<_0x369b61[_0x4212c7('0x11d0')][_0x4212c7('0xcd2')][_0x4212c7('0x25ae')];_0x30fc54++){_0x57493b[_0x4212c7('0x8c8')]({'title':_0x369b61[_0x4212c7('0x11d0')][_0x4212c7('0xcd2')][_0x30fc54]['type'],'msg':_0x369b61[_0x4212c7('0x11d0')]['errors'][_0x30fc54][_0x4212c7('0x27e8')]});}}else _0x57493b['error']({'title':_0x369b61[_0x4212c7('0x2833')]?_0x4212c7('0x27f2')+_0x369b61[_0x4212c7('0x2833')]+_0x4212c7('0x1b7c')+_0x369b61[_0x4212c7('0x1fd7')]:_0x4212c7('0x1585'),'msg':_0x369b61[_0x4212c7('0x11d0')]?JSON[_0x4212c7('0x3ad')](_0x369b61['data']['message']):_0x369b61[_0x4212c7('0x94f')]()});});}function _0x39d655(_0x128ffa){var _0x4f44cd=_0x4eaed3;_0xb3bbeb['errors']=[];var _0x26cf15=_0x1db8da[_0x4f44cd('0xa5')]()[_0x4f44cd('0x13e4')](_0x4f44cd('0x24d0'))[_0x4f44cd('0xd0')]('The\x20salesforceConfiguration\x20will\x20be\x20deleted.')['ariaLabel'](_0x4f44cd('0x1cd3'))['ok'](_0x4f44cd('0x2198'))['cancel'](_0x4f44cd('0x8a3'))[_0x4f44cd('0x1345')](_0x128ffa);_0x1db8da[_0x4f44cd('0x26b2')](_0x26cf15)[_0x4f44cd('0xe19')](function(){var _0x3e1e0d=_0x4f44cd;_0x3c2313[_0x3e1e0d('0x92c')]['delete']({'id':_0xb3bbeb[_0x3e1e0d('0x14fa')]['id']})['$promise'][_0x3e1e0d('0xe19')](function(){var _0x3b2820=_0x3e1e0d;_0x32d445()[_0x3b2820('0xa8b')](_0xb3bbeb[_0x3b2820('0x244e')],{'id':_0xb3bbeb[_0x3b2820('0x14fa')]['id']}),_0x57493b['success']({'title':'SalesforceConfiguration\x20properly\x20deleted!','msg':(_0xb3bbeb['salesforceConfiguration'][_0x3b2820('0x2623')]||'salesforceConfiguration')+'\x20has\x20been\x20deleted!'}),_0x79d33e(_0xb3bbeb[_0x3b2820('0x14fa')]);})['catch'](function(_0x34018f){var _0x67870=_0x3e1e0d;if(_0x34018f[_0x67870('0x11d0')]&&_0x34018f[_0x67870('0x11d0')]['errors']&&_0x34018f[_0x67870('0x11d0')][_0x67870('0xcd2')]['length']){_0xb3bbeb[_0x67870('0xcd2')]=_0x34018f[_0x67870('0x11d0')][_0x67870('0xcd2')]||[{'message':_0x34018f[_0x67870('0x94f')](),'type':_0x67870('0x15c0')}];for(var _0x251b2e=0x0;_0x251b2e<_0x34018f[_0x67870('0x11d0')][_0x67870('0xcd2')][_0x67870('0x25ae')];_0x251b2e++){_0x57493b[_0x67870('0x8c8')]({'title':_0x34018f[_0x67870('0x11d0')][_0x67870('0xcd2')][_0x251b2e][_0x67870('0x62e')],'msg':_0x34018f[_0x67870('0x11d0')][_0x67870('0xcd2')][_0x251b2e]['message']});}}else _0x57493b['error']({'title':_0x34018f[_0x67870('0x2833')]?_0x67870('0x27f2')+_0x34018f[_0x67870('0x2833')]+'\x20-\x20'+_0x34018f[_0x67870('0x1fd7')]:_0x67870('0x15c0'),'msg':_0x34018f['data']?JSON[_0x67870('0x3ad')](_0x34018f[_0x67870('0x11d0')][_0x67870('0x27e8')]):_0x34018f[_0x67870('0x27e8')]||_0x34018f['toString']()});});},function(){});}function _0x73ce6c(_0x5641a6){return _0x5641a6===null?undefined:new Date(_0x5641a6);}function _0x79d33e(_0x3aeb90){var _0x421d24=_0x4eaed3;_0x1db8da[_0x421d24('0x11ed')](_0x3aeb90);}}const _0x23944e=_0x1717e5;_0x5d2ff8['$inject']=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'toasty',_0xb635d2('0x271e'),'items',_0xb635d2('0xdbb'),'account',_0xb635d2('0x62e'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x5d2ff8(_0x36f3dc,_0x448fd5,_0x204bc1,_0x64a7fa,_0x552fd6,_0x434f7c,_0x187f2e,_0x14af4b,_0x326f9e,_0x56cb00,_0x52a96a,_0x4fe435,_0x2b050f){var _0x7f5acb=_0xb635d2,_0x1c2ea6=this;_0x1c2ea6['currentUser']=_0x4fe435['getCurrentUser'](),_0x1c2ea6[_0x7f5acb('0xcd2')]=[],_0x1c2ea6['title']=_0x7f5acb('0x53c')+_0x32d445()[_0x7f5acb('0xcbc')](_0x56cb00),_0x1c2ea6[_0x7f5acb('0xdbb')]=angular[_0x7f5acb('0x89')](_0x14af4b),_0x1c2ea6[_0x7f5acb('0xe4b')]=_0x187f2e,_0x1c2ea6[_0x7f5acb('0x62e')]=_0x56cb00,_0x1c2ea6[_0x7f5acb('0xb3d')]=_0x2b050f,_0x1c2ea6['newItem']=![];!_0x1c2ea6[_0x7f5acb('0xdbb')]&&(_0x1c2ea6[_0x7f5acb('0xdbb')]={'type':_0x7f5acb('0x19d1')},_0x1c2ea6[_0x7f5acb('0xdbb')][_0x32d445()[_0x7f5acb('0xbf6')](_0x56cb00)+'Id']=_0x434f7c['id'],_0x1c2ea6[_0x7f5acb('0x13e4')]=_0x7f5acb('0x7e2')+_0x32d445()[_0x7f5acb('0xcbc')](_0x56cb00),_0x1c2ea6[_0x7f5acb('0xa3')]=!![]);_0x1c2ea6[_0x7f5acb('0x9ca')]=_0x1832f0,_0x1c2ea6[_0x7f5acb('0x1384')]=_0x531bfc,_0x1c2ea6[_0x7f5acb('0xc32')]=_0x2fddfd,_0x1c2ea6[_0x7f5acb('0x142b')]=_0x1faf33,_0x1c2ea6['closeDialog']=_0x465c7f,_0x52a96a[_0x7f5acb('0x19a5')][_0x7f5acb('0x22d5')]({'nolimit':!![]})['$promise'][_0x7f5acb('0xe19')](function(_0x58238f){var _0x4ae8ff=_0x7f5acb;return _0x1c2ea6[_0x4ae8ff('0x1a9e')]=_0x58238f[_0x4ae8ff('0x16a7')]?_0x58238f['rows']:[],_0x52a96a['voiceAgentReport']['describe']()[_0x4ae8ff('0xe59')];})[_0x7f5acb('0xe19')](function(_0x3ab6ef){var _0x249708=_0x7f5acb;return _0x1c2ea6['voiceAgentReportColumns']=_0x32d445()['difference'](_0x32d445()[_0x249708('0x1234')](_0x3ab6ef),['$promise',_0x249708('0x113c'),_0x249708('0x15c9'),_0x249708('0x1ce9'),'sourceid']),_0x1c2ea6[_0x249708('0x1230')]['push']('recordingURL'),_0x52a96a[_0x249708('0xa4e')][_0x249708('0x215e')]()[_0x249708('0xe59')];})[_0x7f5acb('0xe19')](function(_0x323cf6){var _0x4dac47=_0x7f5acb;_0x1c2ea6[_0x4dac47('0x9f9')]=_0x32d445()[_0x4dac47('0x11d3')](_0x32d445()[_0x4dac47('0x1234')](_0x323cf6),[_0x4dac47('0xe59'),_0x4dac47('0x113c'),_0x4dac47('0x15c9'),_0x4dac47('0x1ce9'),_0x4dac47('0x1bea')]),_0x1c2ea6['voiceDialReportColumns'][_0x4dac47('0xb76')](_0x4dac47('0xeaa'));})[_0x7f5acb('0x223b')](function(_0x28d328){var _0x4b3e23=_0x7f5acb;_0x552fd6[_0x4b3e23('0x8c8')]({'title':_0x28d328[_0x4b3e23('0x2833')]?'API:'+_0x28d328['status']+'\x20-\x20'+_0x28d328[_0x4b3e23('0x1fd7')]:_0x4b3e23('0x1c83'),'msg':_0x28d328[_0x4b3e23('0x11d0')]?JSON['stringify'](_0x28d328['data']):_0x28d328[_0x4b3e23('0x94f')]()});}),_0x52a96a['intSalesforceAccount'][_0x7f5acb('0x23f8')]({'id':_0x326f9e['id'],'ticketType':_0x434f7c[_0x7f5acb('0x11d2')]?_0x434f7c[_0x7f5acb('0x11d2')]:undefined})[_0x7f5acb('0xe59')][_0x7f5acb('0xe19')](function(_0x4ef20c){var _0x1f1545=_0x7f5acb;_0x1c2ea6[_0x1f1545('0xbba')]=!![],_0x1c2ea6[_0x1f1545('0x1d17')]=_0x4ef20c[_0x1f1545('0x16a7')]?_0x4ef20c['rows']:[],_0x1c2ea6[_0x1f1545('0xdbb')]['idField']&&(_0x1c2ea6[_0x1f1545('0x1129')]=_0x32d445()['find'](_0x1c2ea6[_0x1f1545('0x1d17')],{'id':_0x1c2ea6[_0x1f1545('0xdbb')][_0x1f1545('0x1c96')]}));})[_0x7f5acb('0x223b')](function(_0x5e21d6){var _0x23bc85=_0x7f5acb;_0x1c2ea6[_0x23bc85('0xbba')]=![],console[_0x23bc85('0x8c8')](_0x5e21d6);});function _0x1832f0(){var _0x5c8db8=_0x7f5acb;_0x1c2ea6[_0x5c8db8('0xcd2')]=[],_0x1c2ea6[_0x5c8db8('0x1129')]&&(_0x1c2ea6[_0x5c8db8('0xdbb')][_0x5c8db8('0x1c96')]=_0x1c2ea6[_0x5c8db8('0x1129')]['id'],_0x1c2ea6[_0x5c8db8('0xdbb')][_0x5c8db8('0x99e')]=_0x1c2ea6['customField'][_0x5c8db8('0x2623')],_0x1c2ea6['item']['customField']=_0x1c2ea6[_0x5c8db8('0x1129')][_0x5c8db8('0x261d')]),_0x52a96a[_0x5c8db8('0xde1')][_0x5c8db8('0xe5e')](_0x1c2ea6[_0x5c8db8('0xdbb')])['$promise'][_0x5c8db8('0xe19')](function(_0x18e4db){var _0x16fd2e=_0x5c8db8;_0x1c2ea6[_0x16fd2e('0xe4b')][_0x16fd2e('0x14c9')](_0x18e4db),_0x552fd6['success']({'title':_0x32d445()[_0x16fd2e('0xbf6')](_0x56cb00)+_0x16fd2e('0xf04'),'msg':_0x32d445()[_0x16fd2e('0xbf6')](_0x56cb00)+_0x16fd2e('0x105f')}),_0x465c7f();})[_0x5c8db8('0x223b')](function(_0x34557e){var _0x32877c=_0x5c8db8;console[_0x32877c('0x8c8')](_0x34557e),_0x1c2ea6[_0x32877c('0xcd2')]=_0x34557e['data'][_0x32877c('0xcd2')]||[{'message':_0x34557e[_0x32877c('0x94f')](),'type':_0x32877c('0xc4c')}];});}function _0x531bfc(){var _0x3ff404=_0x7f5acb;_0x1c2ea6[_0x3ff404('0xcd2')]=[],_0x1c2ea6[_0x3ff404('0x1129')]&&(_0x1c2ea6['item'][_0x3ff404('0x1c96')]=_0x1c2ea6[_0x3ff404('0x1129')]['id'],_0x1c2ea6['item'][_0x3ff404('0x99e')]=_0x1c2ea6[_0x3ff404('0x1129')][_0x3ff404('0x2623')],_0x1c2ea6[_0x3ff404('0xdbb')][_0x3ff404('0x1129')]=_0x1c2ea6[_0x3ff404('0x1129')][_0x3ff404('0x261d')]),_0x52a96a[_0x3ff404('0xde1')]['update']({'id':_0x1c2ea6[_0x3ff404('0xdbb')]['id']},_0x1c2ea6[_0x3ff404('0xdbb')])['$promise'][_0x3ff404('0xe19')](function(_0x504272){var _0x5a8faa=_0x3ff404,_0x49a510=_0x32d445()[_0x5a8faa('0xf15')](_0x1c2ea6['items'],{'id':_0x504272['id']});_0x49a510&&_0x32d445()[_0x5a8faa('0x1d8')](_0x49a510,_0x504272),_0x552fd6[_0x5a8faa('0x425')]({'title':_0x32d445()['capitalize'](_0x56cb00)+_0x5a8faa('0xdaf'),'msg':_0x32d445()['capitalize'](_0x56cb00)+_0x5a8faa('0x1c19')}),_0x465c7f();})[_0x3ff404('0x223b')](function(_0x68fae9){var _0x1867db=_0x3ff404;console[_0x1867db('0x8c8')](_0x68fae9),_0x1c2ea6['errors']=_0x68fae9[_0x1867db('0x11d0')][_0x1867db('0xcd2')]||[{'message':_0x68fae9[_0x1867db('0x94f')](),'type':_0x1867db('0x2134')}];});}function _0x2fddfd(_0x558f88){var _0x498e44=_0x7f5acb;_0x1c2ea6[_0x498e44('0xcd2')]=[];var _0x1e800e=_0x64a7fa['confirm']()[_0x498e44('0x13e4')]('Are\x20you\x20sure?')[_0x498e44('0xd0')](_0x498e44('0x2784')+_0x56cb00+_0x498e44('0x21bd'))['ariaLabel'](_0x498e44('0x13de')+_0x32d445()['capitalize'](_0x56cb00))['ok'](_0x498e44('0x2198'))[_0x498e44('0x2c1')](_0x498e44('0x8a3'))['targetEvent'](_0x558f88);_0x64a7fa[_0x498e44('0x26b2')](_0x1e800e)[_0x498e44('0xe19')](function(){var _0x3ec28a=_0x498e44;_0x52a96a[_0x3ec28a('0xde1')][_0x3ec28a('0x229e')]({'id':_0x1c2ea6[_0x3ec28a('0xdbb')]['id']})['$promise']['then'](function(){var _0x410b9b=_0x3ec28a;_0x32d445()[_0x410b9b('0xa8b')](_0x1c2ea6[_0x410b9b('0xe4b')],{'id':_0x1c2ea6['item']['id']}),_0x552fd6[_0x410b9b('0x425')]({'title':_0x32d445()[_0x410b9b('0xbf6')](_0x56cb00)+_0x410b9b('0x1ddc'),'msg':_0x32d445()[_0x410b9b('0xbf6')](_0x56cb00)+_0x410b9b('0x2182')}),_0x465c7f();})['catch'](function(_0x1ae952){var _0x3fa8d3=_0x3ec28a;console[_0x3fa8d3('0x8c8')](_0x1ae952),_0x1c2ea6[_0x3fa8d3('0xcd2')]=_0x1ae952[_0x3fa8d3('0x11d0')][_0x3fa8d3('0xcd2')]||[{'message':_0x1ae952[_0x3fa8d3('0x94f')](),'type':_0x3fa8d3('0x2272')}];});},function(){});}function _0x1faf33(){var _0x49de99=_0x7f5acb;return _0x1c2ea6[_0x49de99('0xdbb')][_0x49de99('0x17b')]!==undefined?_0x1c2ea6[_0x49de99('0xdbb')][_0x49de99('0x17b')]:_0x49de99('0xc');}function _0x465c7f(){var _0x3d4eef=_0x7f5acb;_0x64a7fa[_0x3d4eef('0x11ed')]();}}const _0x24e0e0=_0x5d2ff8;_0x3149b2[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2493'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x2582'),_0xb635d2('0xb59')];function _0x3149b2(_0xec66bd,_0x38dea0,_0x13d296,_0x333673,_0x124c1c,_0x2ecada,_0x4126b5,_0x7f70,_0x37da20,_0x2fb2ba,_0x4937ac,_0x2935ca){var _0x10c3df=_0xb635d2,_0x40c519=this;_0x40c519[_0x10c3df('0x15a5')]=_0x2fb2ba['getCurrentUser'](),_0x40c519['license']=_0x2ecada,_0x40c519['setting']=_0x4126b5,_0x40c519[_0x10c3df('0x25ac')]=_0x40c519[_0x10c3df('0x22f1')][_0x10c3df('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40c519['location']=_0x38dea0['protocol']()+_0x10c3df('0x21a8')+_0x38dea0[_0x10c3df('0x3b7')](),_0x40c519[_0x10c3df('0x2582')]=_0x4937ac||_0xec66bd['params'][_0x10c3df('0x2582')]||{},_0x40c519['userProfileSection']=_0x2935ca&&_0x2935ca[_0x10c3df('0x148b')]==0x1?_0x2935ca['rows'][0x0]:null,_0x40c519[_0x10c3df('0xb3d')]=_0x2fb2ba[_0x10c3df('0xd31')](_0x40c519[_0x10c3df('0xb59')]?_0x40c519[_0x10c3df('0xb59')][_0x10c3df('0xb3d')]:null),_0x40c519[_0x10c3df('0x1ccb')]={},_0x40c519['selectedTab']=_0xec66bd[_0x10c3df('0x2ef')][_0x10c3df('0x435')]||0x0,_0x40c519['alert']=_0x37da20[_0x10c3df('0x1e67')],_0x40c519['gotoSalesforceAccounts']=_0x3a9a7b,_0x40c519[_0x10c3df('0xfc')]=_0x1d552b;function _0x3a9a7b(){var _0x4fc7b5=_0x10c3df;_0xec66bd['go'](_0x4fc7b5('0x12ab'),{},{'reload':'app.integrations.salesforceAccounts'});}function _0x1d552b(){var _0x52dc86=_0x10c3df;_0x7f70[_0x52dc86('0x24c1')][_0x52dc86('0xa70')]({'id':_0x40c519[_0x52dc86('0x2582')]['id']},_0x40c519[_0x52dc86('0x2582')])[_0x52dc86('0xe59')][_0x52dc86('0xe19')](function(){var _0xcfc3ef=_0x52dc86;_0x37da20['success']({'title':'SalesforceAccount\x20updated!','msg':_0x40c519[_0xcfc3ef('0x2582')][_0xcfc3ef('0x2623')]?_0x40c519[_0xcfc3ef('0x2582')][_0xcfc3ef('0x2623')]+_0xcfc3ef('0x283b'):''});})[_0x52dc86('0x223b')](function(_0x47d6c8){var _0x2b6345=_0x52dc86;_0x37da20[_0x2b6345('0x8c8')]({'title':_0x47d6c8[_0x2b6345('0x2833')]?_0x2b6345('0x27f2')+_0x47d6c8[_0x2b6345('0x2833')]+_0x2b6345('0x1b7c')+_0x47d6c8[_0x2b6345('0x1fd7')]:_0x2b6345('0x19aa'),'msg':_0x47d6c8[_0x2b6345('0x11d0')]?JSON[_0x2b6345('0x3ad')](_0x47d6c8['data']):_0x47d6c8[_0x2b6345('0x94f')]()});});}}const _0x3b02a8=_0x3149b2,_0x2c73b3=_0x59426a['p']+_0xb635d2('0x1460');_0x42878f['$inject']=['$scope',_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x427'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x42878f(_0x2d2e6a,_0x3fa58e,_0x5eccab,_0x5e0088,_0x2692ff,_0x49bf2c,_0x1f7206,_0x2ff58c,_0x59d0a5,_0x4f5101,_0x1bef8c,_0x3b79a1,_0x2eb483,_0x2a26aa,_0x3060bf,_0x4dd073,_0x1ecf9f){var _0x32525f=_0xb635d2,_0x228fc3=this;_0x228fc3[_0x32525f('0x5c1')]=_0x4dd073,_0x228fc3[_0x32525f('0x22f1')]=_0x1ecf9f,_0x228fc3[_0x32525f('0x15a5')]=_0x3060bf[_0x32525f('0x1ef8')](),_0x228fc3['salesforceAccounts']=_0x59d0a5||{'count':0x0,'rows':[]},_0x228fc3[_0x32525f('0x154f')]=_0x4f5101,_0x228fc3['userProfileSection']=_0x1bef8c&&_0x1bef8c['count']==0x1?_0x1bef8c['rows'][0x0]:null,_0x228fc3['crudPermissions']=_0x3060bf['parseCrudPermissions'](_0x228fc3[_0x32525f('0xb59')]?_0x228fc3['userProfileSection']['crudPermissions']:null),_0x228fc3[_0x32525f('0x19b6')]=_0x32525f('0x427'),_0x228fc3['listOrder']='',_0x228fc3['listOrderAsc']=null,_0x228fc3['selectedSalesforceAccounts']=[],_0x228fc3[_0x32525f('0xa16')]={'fields':_0x32525f('0x21d7'),'limit':0xa,'page':0x1},_0x228fc3['arraytype']=_0x32d445()[_0x32525f('0x226f')]([{'option':_0x32525f('0x2b6'),'value':'\x27integrationTab\x27'},{'option':_0x32525f('0x23fe'),'value':_0x32525f('0x2752')}],function(_0xf2ee3b){var _0x325318=_0x32525f;return _0x32d445()[_0x325318('0x1b42')](_0xf2ee3b['value'],new RegExp('\x27','g'),'');}),_0x228fc3[_0x32525f('0x16a0')]=_0x44cfcf,_0x228fc3[_0x32525f('0x238c')]=_0x5ed696,_0x228fc3[_0x32525f('0x1d9e')]=_0x58aed1,_0x228fc3[_0x32525f('0x425')]=_0x5501b4,_0x228fc3[_0x32525f('0xe85')]=_0x1d4a5e,_0x228fc3[_0x32525f('0x3bb')]=_0x127508,_0x228fc3[_0x32525f('0x743')]=_0x59b651,_0x228fc3['exportSelectedSalesforceAccounts']=_0x53041c,_0x228fc3[_0x32525f('0x1be1')]=_0x29d242,_0x228fc3[_0x32525f('0xee6')]=_0x13a5e0,_0x228fc3['selectAllSalesforceAccounts']=_0x57e9f5;function _0x44cfcf(_0x21a958){var _0x130748=_0x32525f;_0x5eccab['go'](_0x130748('0x1883'),{'id':_0x21a958['id'],'salesforceAccount':_0x21a958,'crudPermissions':_0x228fc3['crudPermissions']});}function _0x5ed696(_0x53c922){var _0x68e3cf=_0x32525f;return _0x3b79a1[_0x68e3cf('0x24c1')]['getFields']({'id':_0x53c922['id'],'test':!![]})[_0x68e3cf('0xe59')][_0x68e3cf('0xe19')](function(){var _0x31e73e=_0x68e3cf;_0x2a26aa['success']({'title':_0x31e73e('0x10cf'),'msg':_0x31e73e('0xd96')});})[_0x68e3cf('0x223b')](function(_0x451742){var _0x399c3e=_0x68e3cf;_0x2a26aa['error']({'title':_0x399c3e('0x10cf'),'msg':_0x451742[_0x399c3e('0x11d0')]?_0x451742[_0x399c3e('0x11d0')][_0x399c3e('0x27e8')]?_0x451742['data'][_0x399c3e('0x27e8')]:JSON[_0x399c3e('0x3ad')](_0x451742[_0x399c3e('0x11d0')]):_0x451742['toString']()});});}function _0x58aed1(_0x2602ed,_0x444965){var _0x5e0f02=_0x32525f,_0xac4bb3=_0x2692ff[_0x5e0f02('0xa5')]()['title'](_0x5e0f02('0x346')+_0x32d445()['startCase'](_0x5e0f02('0x2582'))+'?')[_0x5e0f02('0x221c')](_0x5e0f02('0xab2')+(_0x2602ed[_0x5e0f02('0x2623')]||'salesforceAccount')+_0x5e0f02('0x27bb')+'\x20will\x20be\x20deleted.')[_0x5e0f02('0x4d1')](_0x5e0f02('0xd16'))[_0x5e0f02('0x1345')](_0x444965)['ok']('OK')[_0x5e0f02('0x2c1')](_0x5e0f02('0x17'));_0x2692ff[_0x5e0f02('0x26b2')](_0xac4bb3)[_0x5e0f02('0xe19')](function(){_0x59b651(_0x2602ed);},function(){var _0x5a9efe=_0x5e0f02;console['log'](_0x5a9efe('0x17'));});}var _0x1f38d4=!![],_0x43a7d3=0x1;_0x2d2e6a[_0x32525f('0x107')]('vm.query.filter',function(_0x277dbb,_0x3750ff){var _0x2cae41=_0x32525f;_0x1f38d4?_0x1f7206(function(){_0x1f38d4=![];}):(!_0x3750ff&&(_0x43a7d3=_0x228fc3['query'][_0x2cae41('0xc08')]),_0x277dbb!==_0x3750ff&&(_0x228fc3['query'][_0x2cae41('0xc08')]=0x1),!_0x277dbb&&(_0x228fc3['query'][_0x2cae41('0xc08')]=_0x43a7d3),_0x228fc3[_0x2cae41('0xe85')]());});function _0x5501b4(_0x1a6491){var _0x5da444=_0x32525f;_0x228fc3[_0x5da444('0x427')]=_0x1a6491||{'count':0x0,'rows':[]};}function _0x1d4a5e(){var _0x14a69a=_0x32525f;_0x228fc3[_0x14a69a('0xa16')][_0x14a69a('0xab0')]=(_0x228fc3[_0x14a69a('0xa16')][_0x14a69a('0xc08')]-0x1)*_0x228fc3['query'][_0x14a69a('0x1b6d')],_0x3060bf['hasRole'](_0x14a69a('0xd14'))?_0x228fc3[_0x14a69a('0x9c8')]=_0x3b79a1[_0x14a69a('0x24c1')][_0x14a69a('0x22d5')](_0x228fc3['query'],_0x5501b4)[_0x14a69a('0xe59')]:(_0x228fc3[_0x14a69a('0xa16')]['id']=_0x228fc3[_0x14a69a('0x154f')]['id'],_0x228fc3['query']['section']='SalesforceAccounts',_0x228fc3[_0x14a69a('0x9c8')]=_0x3b79a1[_0x14a69a('0x154f')][_0x14a69a('0x14e6')](_0x228fc3['query'],_0x5501b4)[_0x14a69a('0xe59')]);}function _0x127508(_0x18bf38,_0x5ad191){var _0x330423=_0x32525f;_0x2692ff[_0x330423('0x26b2')]({'controller':'CreateOrEditSalesforceAccountDialogController','controllerAs':'vm','templateUrl':_0x2c73b3,'parent':angular[_0x330423('0x24a1')](_0x49bf2c[_0x330423('0x19b2')]),'targetEvent':_0x18bf38,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x5ad191,'salesforceAccounts':_0x228fc3[_0x330423('0x427')]['rows'],'license':_0x228fc3[_0x330423('0x5c1')],'setting':_0x228fc3['setting'],'crudPermissions':_0x228fc3['crudPermissions']}});}function _0x59b651(_0x851bff){var _0x8c5c30=_0x32525f;_0x3b79a1[_0x8c5c30('0x24c1')][_0x8c5c30('0x229e')]({'id':_0x851bff['id']})['$promise'][_0x8c5c30('0xe19')](function(){var _0x49943a=_0x8c5c30;_0x32d445()[_0x49943a('0xa8b')](_0x228fc3['salesforceAccounts'][_0x49943a('0x16a7')],{'id':_0x851bff['id']}),_0x228fc3[_0x49943a('0x427')][_0x49943a('0x148b')]-=0x1,!_0x228fc3[_0x49943a('0x427')][_0x49943a('0x16a7')][_0x49943a('0x25ae')]&&_0x228fc3[_0x49943a('0xe85')](),_0x2a26aa[_0x49943a('0x425')]({'title':_0x32d445()[_0x49943a('0x1df2')](_0x49943a('0x222c'))+'\x20deleted!','msg':_0x851bff[_0x49943a('0x2623')]?_0x851bff['name']+_0x49943a('0x2182'):''});})['catch'](function(_0x2ee8b7){var _0x45a604=_0x8c5c30;if(_0x2ee8b7[_0x45a604('0x11d0')]&&_0x2ee8b7[_0x45a604('0x11d0')][_0x45a604('0xcd2')]&&_0x2ee8b7[_0x45a604('0x11d0')][_0x45a604('0xcd2')]['length']){_0x228fc3['errors']=_0x2ee8b7['data']['errors']||[{'message':_0x2ee8b7[_0x45a604('0x94f')](),'type':_0x45a604('0x1ca2')}];for(var _0x41492e=0x0;_0x41492e<_0x2ee8b7[_0x45a604('0x11d0')][_0x45a604('0xcd2')][_0x45a604('0x25ae')];_0x41492e++){_0x2a26aa[_0x45a604('0x8c8')]({'title':_0x2ee8b7[_0x45a604('0x11d0')]['errors'][_0x41492e][_0x45a604('0x62e')],'msg':_0x2ee8b7[_0x45a604('0x11d0')][_0x45a604('0xcd2')][_0x41492e][_0x45a604('0x27e8')]});}}else _0x2a26aa['error']({'title':_0x2ee8b7[_0x45a604('0x2833')]?_0x45a604('0x27f2')+_0x2ee8b7[_0x45a604('0x2833')]+_0x45a604('0x1b7c')+_0x2ee8b7['statusText']:'SYSTEM:DELETEintSalesforceAccount','msg':_0x2ee8b7[_0x45a604('0x11d0')]?JSON[_0x45a604('0x3ad')](_0x2ee8b7[_0x45a604('0x11d0')][_0x45a604('0x27e8')]):_0x2ee8b7[_0x45a604('0x27e8')]||_0x2ee8b7[_0x45a604('0x94f')]()});});}function _0x53041c(){var _0x308fe1=_0x32525f,_0x39aa1a=angular[_0x308fe1('0x89')](_0x228fc3[_0x308fe1('0x1008')]);return _0x228fc3[_0x308fe1('0x1008')]=[],_0x39aa1a;}function _0x29d242(_0x22a912){var _0x451bad=_0x32525f,_0x85073=_0x2692ff['confirm']()[_0x451bad('0x13e4')](_0x451bad('0x7a6'))[_0x451bad('0x221c')](_0x451bad('0xab2')+_0x228fc3[_0x451bad('0x1008')]['length']+_0x451bad('0x5bc')+'\x20will\x20be\x20deleted.')[_0x451bad('0x4d1')](_0x451bad('0x1c15'))[_0x451bad('0x1345')](_0x22a912)['ok']('OK')[_0x451bad('0x2c1')](_0x451bad('0x17'));_0x2692ff['show'](_0x85073)[_0x451bad('0xe19')](function(){var _0x58cef1=_0x451bad;_0x228fc3[_0x58cef1('0x1008')][_0x58cef1('0x1d7e')](function(_0x3d8c1f){_0x59b651(_0x3d8c1f);}),_0x228fc3[_0x58cef1('0x1008')]=[];});}function _0x13a5e0(){var _0x49c59f=_0x32525f;_0x228fc3[_0x49c59f('0x1008')]=[];}function _0x57e9f5(){var _0x179a0c=_0x32525f;_0x228fc3['selectedSalesforceAccounts']=_0x228fc3[_0x179a0c('0x427')]['rows'];}}const _0x1e4bf3=_0x42878f;_0x3806e2[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location','$mdDialog','$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x878'),_0xb635d2('0x411'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x3806e2(_0x422a70,_0x43ecb5,_0x1d70a8,_0x5d441f,_0x12abd3,_0x43953e,_0x57f97f,_0x3a39f0,_0x4a8f71,_0x2f76cf,_0x49d66e,_0x36db09,_0x5053e3,_0x5a4cc5){var _0xb5507c=_0xb635d2,_0x55f128=this;_0x55f128[_0xb5507c('0x15a5')]=_0x49d66e[_0xb5507c('0x1ef8')](),_0x55f128[_0xb5507c('0xcd2')]=[],_0x55f128[_0xb5507c('0x22f1')]=_0x5053e3,_0x55f128[_0xb5507c('0x5c1')]=_0x36db09,_0x55f128[_0xb5507c('0xb3d')]=_0x5a4cc5,_0x55f128[_0xb5507c('0x1ccb')]={},_0x55f128['passwordPattern']=_0x55f128[_0xb5507c('0x22f1')]&&_0x55f128[_0xb5507c('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x55f128[_0xb5507c('0x13e4')]='INTEGRATIONS.EDIT_SERVICENOWACCOUNT',_0x55f128[_0xb5507c('0x411')]=angular[_0xb5507c('0x89')](_0x4a8f71),_0x55f128[_0xb5507c('0x878')]=_0x3a39f0,_0x55f128[_0xb5507c('0x1a52')]=![];!_0x55f128[_0xb5507c('0x411')]&&(_0x55f128[_0xb5507c('0x411')]={'serverUrl':_0x1d70a8[_0xb5507c('0xec0')]()+'://'+_0x1d70a8[_0xb5507c('0x3b7')]()+(_0x1d70a8[_0xb5507c('0x11dc')]()?':'+_0x1d70a8[_0xb5507c('0x11dc')]():'')},_0x55f128[_0xb5507c('0x13e4')]='INTEGRATIONS.NEW_SERVICENOWACCOUNT',_0x55f128[_0xb5507c('0x1a52')]=!![]);_0x55f128[_0xb5507c('0x1f17')]=_0x528a54,_0x55f128[_0xb5507c('0x2472')]=_0x4a0a7b,_0x55f128[_0xb5507c('0x2140')]=_0x16805c,_0x55f128[_0xb5507c('0x2635')]=_0x5e87eb,_0x55f128[_0xb5507c('0x2584')]=_0x44aba4;function _0x528a54(){var _0x10ce4c=_0xb5507c;_0x55f128[_0x10ce4c('0xcd2')]=[],_0x2f76cf[_0x10ce4c('0x162d')][_0x10ce4c('0xe5e')](_0x55f128[_0x10ce4c('0x411')])[_0x10ce4c('0xe59')]['then'](function(_0x43d6ad){var _0x1b9a23=_0x10ce4c;_0x55f128[_0x1b9a23('0x878')][_0x1b9a23('0x14c9')](_0x43d6ad[_0x1b9a23('0x250e')]()),_0x57f97f[_0x1b9a23('0x425')]({'title':_0x1b9a23('0x63e'),'msg':_0x55f128[_0x1b9a23('0x411')]['name']?_0x55f128[_0x1b9a23('0x411')][_0x1b9a23('0x2623')]+'\x20has\x20been\x20created!':''}),_0x44aba4(_0x43d6ad);})[_0x10ce4c('0x223b')](function(_0x1d8c61){var _0x2624fe=_0x10ce4c;if(_0x1d8c61[_0x2624fe('0x11d0')]&&_0x1d8c61['data']['errors']&&_0x1d8c61[_0x2624fe('0x11d0')]['errors'][_0x2624fe('0x25ae')]){_0x55f128[_0x2624fe('0xcd2')]=_0x1d8c61['data'][_0x2624fe('0xcd2')]||[{'message':_0x1d8c61[_0x2624fe('0x94f')](),'type':_0x2624fe('0x7c3')}];for(var _0x35fc59=0x0;_0x35fc59<_0x1d8c61[_0x2624fe('0x11d0')][_0x2624fe('0xcd2')][_0x2624fe('0x25ae')];_0x35fc59+=0x1){_0x57f97f[_0x2624fe('0x8c8')]({'title':_0x1d8c61[_0x2624fe('0x11d0')][_0x2624fe('0xcd2')][_0x35fc59][_0x2624fe('0x62e')],'msg':_0x1d8c61[_0x2624fe('0x11d0')]['errors'][_0x35fc59][_0x2624fe('0x27e8')]});}}else _0x57f97f[_0x2624fe('0x8c8')]({'title':_0x1d8c61[_0x2624fe('0x2833')]?_0x2624fe('0x27f2')+_0x1d8c61['status']+_0x2624fe('0x1b7c')+_0x1d8c61[_0x2624fe('0x1fd7')]:_0x2624fe('0x7c3'),'msg':_0x1d8c61[_0x2624fe('0x11d0')]?JSON[_0x2624fe('0x3ad')](_0x1d8c61[_0x2624fe('0x11d0')]['message']):_0x1d8c61[_0x2624fe('0x94f')]()});});}function _0x4a0a7b(){var _0x571c7b=_0xb5507c;_0x55f128[_0x571c7b('0xcd2')]=[],_0x2f76cf[_0x571c7b('0x162d')]['update']({'id':_0x55f128['servicenowAccount']['id']},_0x55f128[_0x571c7b('0x411')])[_0x571c7b('0xe59')][_0x571c7b('0xe19')](function(_0x196281){var _0x160809=_0x571c7b,_0x159538=_0x32d445()[_0x160809('0xf15')](_0x55f128[_0x160809('0x878')],{'id':_0x196281['id']});_0x159538&&_0x32d445()[_0x160809('0x1d8')](_0x159538,_0x32d445()[_0x160809('0xed5')](_0x196281[_0x160809('0x250e')](),_0x32d445()[_0x160809('0x1234')](_0x159538))),_0x57f97f[_0x160809('0x425')]({'title':'ServicenowAccount\x20properly\x20saved!','msg':_0x55f128[_0x160809('0x411')][_0x160809('0x2623')]?_0x55f128[_0x160809('0x411')][_0x160809('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x44aba4(_0x196281);})[_0x571c7b('0x223b')](function(_0x515a3e){var _0x1d5be9=_0x571c7b;if(_0x515a3e[_0x1d5be9('0x11d0')]&&_0x515a3e[_0x1d5be9('0x11d0')]['errors']&&_0x515a3e['data']['errors'][_0x1d5be9('0x25ae')]){_0x55f128[_0x1d5be9('0xcd2')]=_0x515a3e[_0x1d5be9('0x11d0')][_0x1d5be9('0xcd2')]||[{'message':_0x515a3e[_0x1d5be9('0x94f')](),'type':'api.intServicenowAccount.update'}];for(var _0x250dbb=0x0;_0x250dbb<_0x515a3e[_0x1d5be9('0x11d0')][_0x1d5be9('0xcd2')]['length'];_0x250dbb++){_0x57f97f[_0x1d5be9('0x8c8')]({'title':_0x515a3e[_0x1d5be9('0x11d0')][_0x1d5be9('0xcd2')][_0x250dbb][_0x1d5be9('0x62e')],'msg':_0x515a3e[_0x1d5be9('0x11d0')][_0x1d5be9('0xcd2')][_0x250dbb][_0x1d5be9('0x27e8')]});}}else _0x57f97f[_0x1d5be9('0x8c8')]({'title':_0x515a3e['status']?_0x1d5be9('0x27f2')+_0x515a3e[_0x1d5be9('0x2833')]+'\x20-\x20'+_0x515a3e[_0x1d5be9('0x1fd7')]:_0x1d5be9('0x862'),'msg':_0x515a3e[_0x1d5be9('0x11d0')]?JSON[_0x1d5be9('0x3ad')](_0x515a3e[_0x1d5be9('0x11d0')]['message']):_0x515a3e[_0x1d5be9('0x94f')]()});});}function _0x16805c(_0x1748d6){var _0x48ef2a=_0xb5507c;_0x55f128[_0x48ef2a('0xcd2')]=[];var _0x2cda53=_0x5d441f[_0x48ef2a('0xa5')]()[_0x48ef2a('0x13e4')](_0x48ef2a('0x24d0'))[_0x48ef2a('0xd0')](_0x48ef2a('0x1e0d'))[_0x48ef2a('0x4d1')](_0x48ef2a('0x2277'))['ok'](_0x48ef2a('0x2198'))[_0x48ef2a('0x2c1')](_0x48ef2a('0x8a3'))['targetEvent'](_0x1748d6);_0x5d441f[_0x48ef2a('0x26b2')](_0x2cda53)[_0x48ef2a('0xe19')](function(){var _0x1e3c3d=_0x48ef2a;_0x2f76cf[_0x1e3c3d('0x162d')]['delete']({'id':_0x55f128[_0x1e3c3d('0x411')]['id']})['$promise'][_0x1e3c3d('0xe19')](function(){var _0x10643a=_0x1e3c3d;_0x32d445()[_0x10643a('0xa8b')](_0x55f128[_0x10643a('0x878')],{'id':_0x55f128[_0x10643a('0x411')]['id']}),_0x57f97f[_0x10643a('0x425')]({'title':_0x10643a('0xf6f'),'msg':(_0x55f128[_0x10643a('0x411')]['name']||_0x10643a('0x411'))+_0x10643a('0x2182')}),_0x44aba4(_0x55f128[_0x10643a('0x411')]);})[_0x1e3c3d('0x223b')](function(_0x28d371){var _0x3f4ba1=_0x1e3c3d;if(_0x28d371[_0x3f4ba1('0x11d0')]&&_0x28d371[_0x3f4ba1('0x11d0')][_0x3f4ba1('0xcd2')]&&_0x28d371[_0x3f4ba1('0x11d0')][_0x3f4ba1('0xcd2')][_0x3f4ba1('0x25ae')]){_0x55f128[_0x3f4ba1('0xcd2')]=_0x28d371[_0x3f4ba1('0x11d0')][_0x3f4ba1('0xcd2')]||[{'message':_0x28d371[_0x3f4ba1('0x94f')](),'type':_0x3f4ba1('0xd9f')}];for(var _0x4d81a6=0x0;_0x4d81a6<_0x28d371['data'][_0x3f4ba1('0xcd2')][_0x3f4ba1('0x25ae')];_0x4d81a6++){_0x57f97f[_0x3f4ba1('0x8c8')]({'title':_0x28d371[_0x3f4ba1('0x11d0')]['errors'][_0x4d81a6][_0x3f4ba1('0x62e')],'msg':_0x28d371[_0x3f4ba1('0x11d0')][_0x3f4ba1('0xcd2')][_0x4d81a6][_0x3f4ba1('0x27e8')]});}}else _0x57f97f[_0x3f4ba1('0x8c8')]({'title':_0x28d371[_0x3f4ba1('0x2833')]?'API:'+_0x28d371[_0x3f4ba1('0x2833')]+_0x3f4ba1('0x1b7c')+_0x28d371[_0x3f4ba1('0x1fd7')]:_0x3f4ba1('0xd9f'),'msg':_0x28d371['data']?JSON[_0x3f4ba1('0x3ad')](_0x28d371['data'][_0x3f4ba1('0x27e8')]):_0x28d371['message']||_0x28d371['toString']()});});},function(){});}function _0x5e87eb(_0x5af95a){return _0x5af95a===null?undefined:new Date(_0x5af95a);}function _0x44aba4(_0x544674){var _0x35118d=_0xb5507c;_0x5d441f[_0x35118d('0x11ed')](_0x544674);}}const _0x2346d1=_0x3806e2,_0x8381d5=_0x59426a['p']+_0xb635d2('0x2260'),_0x137fb9=_0x59426a['p']+_0xb635d2('0xc24');_0x34cfa0['$inject']=['$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x34cfa0(_0x17ab0d,_0x2e8de5,_0x34fc44,_0x5a16b4,_0x379893){var _0x477802=_0xb635d2,_0x2863c8=this;_0x2863c8[_0x477802('0x15a5')]=_0x379893['getCurrentUser'](),_0x2863c8['servicenowAccount']={},_0x2863c8[_0x477802('0x187d')]={},_0x2863c8[_0x477802('0x244e')]=[],_0x2863c8[_0x477802('0x865')]=-0x1,_0x2863c8[_0x477802('0xb3d')],_0x2863c8[_0x477802('0x15f9')]=_0x466193,_0x2863c8[_0x477802('0x1c70')]=_0x1837d5,_0x2863c8[_0x477802('0x28a3')]=_0x34e21f,_0x2863c8[_0x477802('0x1e72')]=_0x2330c7;function _0x466193(_0x4e92db,_0x11e01f){var _0x23d9dc=_0x477802;_0x2863c8[_0x23d9dc('0x411')]=_0x4e92db,_0x2863c8[_0x23d9dc('0xb3d')]=typeof _0x11e01f!==_0x23d9dc('0x1143')?_0x11e01f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x34fc44[_0x23d9dc('0x162d')][_0x23d9dc('0x1ac6')]({'id':_0x2863c8[_0x23d9dc('0x411')]['id'],'sort':_0x23d9dc('0x7e8')})[_0x23d9dc('0xe59')][_0x23d9dc('0xe19')](function(_0x515971){var _0x47db61=_0x23d9dc;return _0x2863c8[_0x47db61('0x244e')]=_0x515971[_0x47db61('0x16a7')]?_0x515971[_0x47db61('0x16a7')]:[],_0x2863c8[_0x47db61('0x244e')]['length']&&_0x2863c8['getServicenowConfiguration'](0x0),_0x34fc44[_0x47db61('0x19a5')][_0x47db61('0x22d5')]({'nolimit':!![],'sort':_0x47db61('0x2623')})['$promise'];})[_0x23d9dc('0xe19')](function(_0xb433bf){var _0xa7edaf=_0x23d9dc;_0x2863c8[_0xa7edaf('0x1a9e')]=_0xb433bf[_0xa7edaf('0x16a7')]?_0xb433bf[_0xa7edaf('0x16a7')]:[],_0x2863c8['variablesById']=_0x32d445()['keyBy'](_0x2863c8[_0xa7edaf('0x1a9e')],'id');})[_0x23d9dc('0x223b')](function(_0xab539){var _0x34136a=_0x23d9dc;_0x5a16b4[_0x34136a('0x8c8')]({'title':_0xab539[_0x34136a('0x2833')]?'API:'+_0xab539[_0x34136a('0x2833')]+_0x34136a('0x1b7c')+_0xab539[_0x34136a('0x1fd7')]:'SYSTEM:GETCONFIGURATION','msg':_0xab539[_0x34136a('0x11d0')]?JSON[_0x34136a('0x3ad')](_0xab539[_0x34136a('0x11d0')]):_0xab539['toString']()});});}function _0x1837d5(_0x30eb73){var _0x4caf2b=_0x477802;_0x2863c8['servicenowConfiguration']=_0x2863c8[_0x4caf2b('0x244e')][_0x30eb73],_0x2863c8[_0x4caf2b('0x865')]=_0x30eb73,_0x34fc44[_0x4caf2b('0x369')]['getSubjects']({'id':_0x2863c8[_0x4caf2b('0x187d')]['id']})['$promise'][_0x4caf2b('0xe19')](function(_0x2ccd32){var _0x2f58c5=_0x4caf2b;return _0x2863c8[_0x2f58c5('0x126e')]=_0x2ccd32[_0x2f58c5('0x16a7')]?_0x2ccd32['rows']:[],_0x34fc44['intServicenowConfiguration'][_0x2f58c5('0x280b')]({'id':_0x2863c8[_0x2f58c5('0x187d')]['id']})[_0x2f58c5('0xe59')];})[_0x4caf2b('0xe19')](function(_0x2c525a){var _0x34ed2f=_0x4caf2b;return _0x2863c8[_0x34ed2f('0xb9c')]=_0x2c525a[_0x34ed2f('0x16a7')]?_0x2c525a[_0x34ed2f('0x16a7')]:[],_0x34fc44[_0x34ed2f('0x369')][_0x34ed2f('0x23f8')]({'id':_0x2863c8[_0x34ed2f('0x187d')]['id']})['$promise'];})[_0x4caf2b('0xe19')](function(_0xf2e8c9){var _0x4d78be=_0x4caf2b;_0x2863c8[_0x4d78be('0x1d17')]=_0xf2e8c9[_0x4d78be('0x16a7')]?_0xf2e8c9[_0x4d78be('0x16a7')]:[];})['catch'](function(_0x2f82c0){var _0x5394ba=_0x4caf2b;_0x5a16b4['error']({'title':_0x2f82c0[_0x5394ba('0x2833')]?_0x5394ba('0x27f2')+_0x2f82c0[_0x5394ba('0x2833')]+'\x20-\x20'+_0x2f82c0[_0x5394ba('0x1fd7')]:_0x5394ba('0x82a'),'msg':_0x2f82c0[_0x5394ba('0x11d0')]?JSON[_0x5394ba('0x3ad')](_0x2f82c0[_0x5394ba('0x11d0')]):_0x2f82c0[_0x5394ba('0x94f')]()});});}function _0x34e21f(_0x376aab,_0x3b0ef1){var _0x43ce94=_0x477802;_0x17ab0d[_0x43ce94('0x26b2')]({'controller':_0x43ce94('0x3a0'),'controllerAs':'vm','templateUrl':_0x8381d5,'parent':angular[_0x43ce94('0x24a1')](_0x2e8de5[_0x43ce94('0x19b2')]),'targetEvent':_0x376aab,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x3b0ef1,'configurations':_0x2863c8['configurations'],'license':null,'setting':null,'crudPermissions':_0x2863c8[_0x43ce94('0xb3d')]}})[_0x43ce94('0x23')](function(){var _0x5c31d4=_0x43ce94;_0x2863c8[_0x5c31d4('0x1c70')](0x0);});}function _0x2330c7(_0x68c522,_0x3fc44f){var _0x31ec39=_0x477802,_0x2ec519=_0x17ab0d['confirm']()[_0x31ec39('0x13e4')](_0x31ec39('0x13c1'))['htmlContent'](''+(_0x3fc44f['name']||_0x31ec39('0x187d'))+_0x31ec39('0x27bb')+_0x31ec39('0x21bd'))[_0x31ec39('0x4d1')](_0x31ec39('0x1858'))[_0x31ec39('0x1345')](_0x68c522)['ok']('OK')['cancel']('CANCEL');_0x17ab0d['show'](_0x2ec519)['then'](function(){var _0x222f5=_0x31ec39;_0x34fc44['intServicenowConfiguration'][_0x222f5('0x229e')]({'id':_0x3fc44f['id']})[_0x222f5('0xe59')]['then'](function(){var _0x2ff5ab=_0x222f5;_0x32d445()[_0x2ff5ab('0xa8b')](_0x2863c8[_0x2ff5ab('0x244e')],{'id':_0x3fc44f['id']}),_0x5a16b4[_0x2ff5ab('0x425')]({'title':'ServicenowConfiguration\x20deleted!','msg':_0x3fc44f[_0x2ff5ab('0x2623')]?_0x3fc44f[_0x2ff5ab('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x222f5('0x223b')](function(_0xba1b44){var _0x38b285=_0x222f5;_0x5a16b4[_0x38b285('0x8c8')]({'title':_0xba1b44['status']?_0x38b285('0x27f2')+_0xba1b44['status']+_0x38b285('0x1b7c')+_0xba1b44[_0x38b285('0x1fd7')]:_0x38b285('0x127'),'msg':_0xba1b44[_0x38b285('0x11d0')]?JSON[_0x38b285('0x3ad')](_0xba1b44[_0x38b285('0x11d0')]):_0xba1b44[_0x38b285('0x94f')]()});})['finally'](function(){_0x2863c8['getServicenowConfiguration'](0x0);});},function(){var _0x219c24=_0x31ec39;console[_0x219c24('0x1fe9')](_0x219c24('0x17'));});}_0x2863c8[_0x477802('0x2508')]=[],_0x2863c8[_0x477802('0x16b2')]=_0x34b00c,_0x2863c8['deleteSubjectConfirm']=_0x31c83a,_0x2863c8['deleteSelectedSubjects']=_0x45f8ef;function _0x34b00c(_0x113d20,_0x195d90){var _0x2e9852=_0x477802;_0x17ab0d[_0x2e9852('0x26b2')]({'controller':_0x2e9852('0x1ade'),'controllerAs':'vm','templateUrl':_0x137fb9,'parent':angular[_0x2e9852('0x24a1')](_0x2e8de5[_0x2e9852('0x19b2')]),'targetEvent':_0x113d20,'clickOutsideToClose':!![],'locals':{'type':_0x2e9852('0x9ec'),'item':_0x195d90,'items':_0x2863c8['subjects'],'configuration':_0x2863c8['servicenowConfiguration'],'account':_0x2863c8[_0x2e9852('0x411')],'license':null,'setting':null,'crudPermissions':_0x2863c8[_0x2e9852('0xb3d')]}});}function _0x44a2b9(_0x583da5){var _0x5b8c8b=_0x477802;_0x34fc44[_0x5b8c8b('0x11e2')]['delete']({'id':_0x583da5['id']})[_0x5b8c8b('0xe59')][_0x5b8c8b('0xe19')](function(){var _0xab3d1c=_0x5b8c8b;_0x32d445()[_0xab3d1c('0xa8b')](_0x2863c8[_0xab3d1c('0x126e')],{'id':_0x583da5['id']}),_0x5a16b4[_0xab3d1c('0x425')]({'title':_0xab3d1c('0x191f'),'msg':_0xab3d1c('0xae3')});})[_0x5b8c8b('0x223b')](function(_0x24ea7b){var _0x3eecd8=_0x5b8c8b;_0x5a16b4[_0x3eecd8('0x8c8')]({'title':_0x24ea7b[_0x3eecd8('0x2833')]?'API:'+_0x24ea7b[_0x3eecd8('0x2833')]+_0x3eecd8('0x1b7c')+_0x24ea7b[_0x3eecd8('0x1fd7')]:_0x3eecd8('0x1dde'),'msg':_0x24ea7b[_0x3eecd8('0x11d0')]?JSON['stringify'](_0x24ea7b[_0x3eecd8('0x11d0')]):_0x24ea7b[_0x3eecd8('0x94f')]()});});}function _0x31c83a(_0x5cf7b6,_0x132edc){var _0x287092=_0x477802,_0x265fdc=_0x17ab0d['confirm']()[_0x287092('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')['htmlContent']('Subject'+_0x287092('0x21bd'))[_0x287092('0x4d1')](_0x287092('0x974'))[_0x287092('0x1345')](_0x5cf7b6)['ok']('OK')[_0x287092('0x2c1')](_0x287092('0x17'));_0x17ab0d[_0x287092('0x26b2')](_0x265fdc)[_0x287092('0xe19')](function(){_0x44a2b9(_0x132edc);},function(){var _0x4b2d3f=_0x287092;console[_0x4b2d3f('0x1fe9')]('CANCEL');});}function _0x45f8ef(_0x5e4858){var _0x13a562=_0x477802,_0x721fe0=_0x17ab0d[_0x13a562('0xa5')]()[_0x13a562('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')['htmlContent'](_0x13a562('0xab2')+_0x2863c8['selectedSubjects'][_0x13a562('0x25ae')]+_0x13a562('0x5bc')+_0x13a562('0x21bd'))[_0x13a562('0x4d1')](_0x13a562('0xbc0'))[_0x13a562('0x1345')](_0x5e4858)['ok']('OK')[_0x13a562('0x2c1')](_0x13a562('0x17'));_0x17ab0d[_0x13a562('0x26b2')](_0x721fe0)[_0x13a562('0xe19')](function(){var _0x592e11=_0x13a562;_0x2863c8[_0x592e11('0x2508')][_0x592e11('0x1d7e')](function(_0x4843dd){_0x44a2b9(_0x4843dd);}),_0x2863c8[_0x592e11('0x2508')]=[];});}_0x2863c8[_0x477802('0x858')]=[],_0x2863c8[_0x477802('0x2885')]=_0x5ebf5c,_0x2863c8[_0x477802('0x95b')]=_0x469d08,_0x2863c8['deleteSelectedDescriptions']=_0x5b7c04;function _0x5ebf5c(_0x404ac0,_0x11f1bb){var _0x10c8db=_0x477802;_0x17ab0d['show']({'controller':'CreateOrEditServicenowAccountItemDialogController','controllerAs':'vm','templateUrl':_0x137fb9,'parent':angular[_0x10c8db('0x24a1')](_0x2e8de5[_0x10c8db('0x19b2')]),'targetEvent':_0x404ac0,'clickOutsideToClose':!![],'locals':{'type':_0x10c8db('0x897'),'item':_0x11f1bb,'items':_0x2863c8[_0x10c8db('0xb9c')],'configuration':_0x2863c8[_0x10c8db('0x187d')],'account':_0x2863c8[_0x10c8db('0x411')],'license':null,'setting':null,'crudPermissions':_0x2863c8[_0x10c8db('0xb3d')]}});}function _0x7d05bc(_0x2f22fb){var _0x39d6b4=_0x477802;_0x34fc44['intServicenowField'][_0x39d6b4('0x229e')]({'id':_0x2f22fb['id']})[_0x39d6b4('0xe59')][_0x39d6b4('0xe19')](function(){var _0x56a3a9=_0x39d6b4;_0x32d445()[_0x56a3a9('0xa8b')](_0x2863c8['descriptions'],{'id':_0x2f22fb['id']}),_0x5a16b4['success']({'title':'Description\x20deleted!','msg':_0x56a3a9('0x1139')});})[_0x39d6b4('0x223b')](function(_0x3ab996){var _0x368839=_0x39d6b4;_0x5a16b4[_0x368839('0x8c8')]({'title':_0x3ab996[_0x368839('0x2833')]?_0x368839('0x27f2')+_0x3ab996[_0x368839('0x2833')]+'\x20-\x20'+_0x3ab996[_0x368839('0x1fd7')]:_0x368839('0x1dde'),'msg':_0x3ab996['data']?JSON[_0x368839('0x3ad')](_0x3ab996[_0x368839('0x11d0')]):_0x3ab996['toString']()});});}function _0x469d08(_0x3b633c,_0x19130a){var _0x49ff48=_0x477802,_0x4f8a66=_0x17ab0d['confirm']()[_0x49ff48('0x13e4')](_0x49ff48('0x1c50'))[_0x49ff48('0x221c')](_0x49ff48('0x11e1')+'\x20will\x20be\x20deleted.')[_0x49ff48('0x4d1')](_0x49ff48('0x1dc0'))[_0x49ff48('0x1345')](_0x3b633c)['ok']('OK')[_0x49ff48('0x2c1')](_0x49ff48('0x17'));_0x17ab0d[_0x49ff48('0x26b2')](_0x4f8a66)[_0x49ff48('0xe19')](function(){_0x7d05bc(_0x19130a);},function(){var _0x1c68f9=_0x49ff48;console['log'](_0x1c68f9('0x17'));});}function _0x5b7c04(_0x59cee1){var _0xddfb9c=_0x477802,_0x4188c5=_0x17ab0d[_0xddfb9c('0xa5')]()[_0xddfb9c('0x13e4')](_0xddfb9c('0x23f4'))[_0xddfb9c('0x221c')](_0xddfb9c('0xab2')+_0x2863c8['selectedDescriptions'][_0xddfb9c('0x25ae')]+'\x20selected'+_0xddfb9c('0x21bd'))[_0xddfb9c('0x4d1')]('delete\x20descriptions')[_0xddfb9c('0x1345')](_0x59cee1)['ok']('OK')[_0xddfb9c('0x2c1')](_0xddfb9c('0x17'));_0x17ab0d['show'](_0x4188c5)['then'](function(){var _0x48baf0=_0xddfb9c;_0x2863c8[_0x48baf0('0x858')][_0x48baf0('0x1d7e')](function(_0x353e23){_0x7d05bc(_0x353e23);}),_0x2863c8[_0x48baf0('0x858')]=[];});}_0x2863c8[_0x477802('0xf97')]=[],_0x2863c8['createOrEditField']=_0x38b688,_0x2863c8['deleteFieldConfirm']=_0x45aab7,_0x2863c8[_0x477802('0xdfd')]=_0x3b6316;function _0x38b688(_0x597881,_0xe51f66){var _0x3e7c9e=_0x477802;_0x17ab0d[_0x3e7c9e('0x26b2')]({'controller':_0x3e7c9e('0x1ade'),'controllerAs':'vm','templateUrl':_0x137fb9,'parent':angular['element'](_0x2e8de5['body']),'targetEvent':_0x597881,'clickOutsideToClose':!![],'locals':{'type':_0x3e7c9e('0x15d1'),'item':_0xe51f66,'items':_0x2863c8[_0x3e7c9e('0x1d17')],'configuration':_0x2863c8[_0x3e7c9e('0x187d')],'account':_0x2863c8[_0x3e7c9e('0x411')],'license':null,'setting':null,'crudPermissions':_0x2863c8[_0x3e7c9e('0xb3d')]}});}function _0x5d76a3(_0x582e5a){var _0x366aa7=_0x477802;_0x34fc44[_0x366aa7('0x11e2')][_0x366aa7('0x229e')]({'id':_0x582e5a['id']})[_0x366aa7('0xe59')][_0x366aa7('0xe19')](function(){var _0x39aa6a=_0x366aa7;_0x32d445()[_0x39aa6a('0xa8b')](_0x2863c8['fields'],{'id':_0x582e5a['id']}),_0x5a16b4[_0x39aa6a('0x425')]({'title':'Field\x20deleted!','msg':_0x39aa6a('0x21f5')});})['catch'](function(_0x3c269a){var _0x326b58=_0x366aa7;_0x5a16b4['error']({'title':_0x3c269a[_0x326b58('0x2833')]?'API:'+_0x3c269a['status']+_0x326b58('0x1b7c')+_0x3c269a[_0x326b58('0x1fd7')]:_0x326b58('0x1dde'),'msg':_0x3c269a['data']?JSON[_0x326b58('0x3ad')](_0x3c269a[_0x326b58('0x11d0')]):_0x3c269a[_0x326b58('0x94f')]()});});}function _0x45aab7(_0x34ebc1,_0x1053c3){var _0x57e2b0=_0x477802,_0x1559f7=_0x17ab0d[_0x57e2b0('0xa5')]()['title'](_0x57e2b0('0x8b7'))[_0x57e2b0('0x221c')](_0x57e2b0('0x13a7')+_0x57e2b0('0x21bd'))[_0x57e2b0('0x4d1')]('delete\x20field')['targetEvent'](_0x34ebc1)['ok']('OK')[_0x57e2b0('0x2c1')]('CANCEL');_0x17ab0d['show'](_0x1559f7)[_0x57e2b0('0xe19')](function(){_0x5d76a3(_0x1053c3);},function(){var _0x39cf71=_0x57e2b0;console[_0x39cf71('0x1fe9')](_0x39cf71('0x17'));});}function _0x3b6316(_0x29cb7a){var _0x22870f=_0x477802,_0x3313a5=_0x17ab0d[_0x22870f('0xa5')]()[_0x22870f('0x13e4')](_0x22870f('0x128c'))[_0x22870f('0x221c')](''+_0x2863c8[_0x22870f('0xf97')]['length']+'\x20selected'+_0x22870f('0x21bd'))['ariaLabel'](_0x22870f('0x19c9'))['targetEvent'](_0x29cb7a)['ok']('OK')[_0x22870f('0x2c1')](_0x22870f('0x17'));_0x17ab0d[_0x22870f('0x26b2')](_0x3313a5)['then'](function(){var _0x34b0e0=_0x22870f;_0x2863c8[_0x34b0e0('0xf97')]['forEach'](function(_0xb3cc70){_0x5d76a3(_0xb3cc70);}),_0x2863c8[_0x34b0e0('0xf97')]=[];});}}const _0x57272b=_0x34cfa0;_0x40d64b[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x244e'),_0xb635d2('0x187d'),'api','Auth','license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x40d64b(_0x483f2d,_0x138092,_0x4976d9,_0x484389,_0x143215,_0x248871,_0x249c0e,_0x4acea0,_0xc9fedb,_0x15bd25,_0x50283a,_0x4df116,_0x1ff379,_0x1404e5){var _0xbe5c6f=_0xb635d2,_0x10e3f9=this;_0x10e3f9[_0xbe5c6f('0x15a5')]=_0x50283a[_0xbe5c6f('0x1ef8')](),_0x10e3f9[_0xbe5c6f('0xcd2')]=[],_0x10e3f9[_0xbe5c6f('0x22f1')]=_0x1ff379,_0x10e3f9[_0xbe5c6f('0x5c1')]=_0x4df116,_0x10e3f9[_0xbe5c6f('0xb3d')]=_0x1404e5,_0x10e3f9[_0xbe5c6f('0x1ccb')]={},_0x10e3f9[_0xbe5c6f('0x25ac')]=_0x10e3f9[_0xbe5c6f('0x22f1')]&&_0x10e3f9[_0xbe5c6f('0x22f1')][_0xbe5c6f('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10e3f9[_0xbe5c6f('0x13e4')]=_0xbe5c6f('0x2390'),_0x10e3f9[_0xbe5c6f('0x187d')]=angular[_0xbe5c6f('0x89')](_0xc9fedb),_0x10e3f9[_0xbe5c6f('0x244e')]=_0x4acea0,_0x10e3f9[_0xbe5c6f('0x130')]=![];!_0x10e3f9[_0xbe5c6f('0x187d')]&&(_0x10e3f9['servicenowConfiguration']={'channel':_0xbe5c6f('0xe74'),'type':_0xbe5c6f('0x1a7a')},_0x10e3f9[_0xbe5c6f('0x13e4')]=_0xbe5c6f('0x118f'),_0x10e3f9[_0xbe5c6f('0x130')]=!![]);_0x10e3f9['addNewServicenowConfiguration']=_0x289e7f,_0x10e3f9[_0xbe5c6f('0x10b5')]=_0x31e7d3,_0x10e3f9[_0xbe5c6f('0x1e72')]=_0x10b8d6,_0x10e3f9['getDateFromString']=_0xc1e384,_0x10e3f9[_0xbe5c6f('0x2584')]=_0x4f1d4d;function _0x289e7f(){var _0xfca896=_0xbe5c6f;_0x10e3f9[_0xfca896('0xcd2')]=[],_0x15bd25[_0xfca896('0x162d')][_0xfca896('0x2402')]({'id':_0x138092['params']['id']},_0x10e3f9[_0xfca896('0x187d')])[_0xfca896('0xe59')][_0xfca896('0xe19')](function(_0x527ef8){var _0x3be6b3=_0xfca896;_0x10e3f9[_0x3be6b3('0x244e')]['unshift'](_0x527ef8['toJSON']()),_0x249c0e[_0x3be6b3('0x425')]({'title':'ServicenowConfiguration\x20properly\x20created','msg':_0x10e3f9['servicenowConfiguration']['name']?_0x10e3f9[_0x3be6b3('0x187d')][_0x3be6b3('0x2623')]+_0x3be6b3('0x105f'):''}),_0x4f1d4d(_0x527ef8);})[_0xfca896('0x223b')](function(_0x220b5a){var _0x140597=_0xfca896;if(_0x220b5a[_0x140597('0x11d0')]&&_0x220b5a[_0x140597('0x11d0')][_0x140597('0xcd2')]&&_0x220b5a[_0x140597('0x11d0')][_0x140597('0xcd2')][_0x140597('0x25ae')]){_0x10e3f9[_0x140597('0xcd2')]=_0x220b5a[_0x140597('0x11d0')][_0x140597('0xcd2')]||[{'message':_0x220b5a[_0x140597('0x94f')](),'type':_0x140597('0x167e')}];for(var _0x36131b=0x0;_0x36131b<_0x220b5a[_0x140597('0x11d0')]['errors'][_0x140597('0x25ae')];_0x36131b+=0x1){_0x249c0e[_0x140597('0x8c8')]({'title':_0x220b5a[_0x140597('0x11d0')]['errors'][_0x36131b][_0x140597('0x62e')],'msg':_0x220b5a[_0x140597('0x11d0')][_0x140597('0xcd2')][_0x36131b]['message']});}}else _0x249c0e[_0x140597('0x8c8')]({'title':_0x220b5a[_0x140597('0x2833')]?_0x140597('0x27f2')+_0x220b5a[_0x140597('0x2833')]+'\x20-\x20'+_0x220b5a[_0x140597('0x1fd7')]:_0x140597('0x167e'),'msg':_0x220b5a[_0x140597('0x11d0')]?JSON['stringify'](_0x220b5a['data'][_0x140597('0x27e8')]):_0x220b5a[_0x140597('0x94f')]()});});}function _0x31e7d3(){var _0x2120f9=_0xbe5c6f;_0x10e3f9[_0x2120f9('0xcd2')]=[],_0x15bd25['intServicenowConfiguration'][_0x2120f9('0xa70')]({'id':_0x10e3f9[_0x2120f9('0x187d')]['id']},_0x10e3f9[_0x2120f9('0x187d')])['$promise'][_0x2120f9('0xe19')](function(_0x18adda){var _0x279b8c=_0x2120f9,_0x284fe1=_0x32d445()[_0x279b8c('0xf15')](_0x10e3f9[_0x279b8c('0x244e')],{'id':_0x18adda['id']});_0x284fe1&&_0x32d445()[_0x279b8c('0x1d8')](_0x284fe1,_0x32d445()[_0x279b8c('0xed5')](_0x18adda[_0x279b8c('0x250e')](),_0x32d445()[_0x279b8c('0x1234')](_0x284fe1))),_0x249c0e[_0x279b8c('0x425')]({'title':_0x279b8c('0x17f6'),'msg':_0x10e3f9[_0x279b8c('0x187d')]['name']?_0x10e3f9['servicenowConfiguration']['name']+_0x279b8c('0x1c19'):''}),_0x4f1d4d(_0x18adda);})[_0x2120f9('0x223b')](function(_0x3e9346){var _0x58bdbe=_0x2120f9;if(_0x3e9346[_0x58bdbe('0x11d0')]&&_0x3e9346['data'][_0x58bdbe('0xcd2')]&&_0x3e9346[_0x58bdbe('0x11d0')][_0x58bdbe('0xcd2')][_0x58bdbe('0x25ae')]){_0x10e3f9['errors']=_0x3e9346[_0x58bdbe('0x11d0')][_0x58bdbe('0xcd2')]||[{'message':_0x3e9346[_0x58bdbe('0x94f')](),'type':_0x58bdbe('0x2587')}];for(var _0x3efd42=0x0;_0x3efd42<_0x3e9346[_0x58bdbe('0x11d0')][_0x58bdbe('0xcd2')]['length'];_0x3efd42++){_0x249c0e['error']({'title':_0x3e9346[_0x58bdbe('0x11d0')]['errors'][_0x3efd42][_0x58bdbe('0x62e')],'msg':_0x3e9346[_0x58bdbe('0x11d0')][_0x58bdbe('0xcd2')][_0x3efd42][_0x58bdbe('0x27e8')]});}}else _0x249c0e[_0x58bdbe('0x8c8')]({'title':_0x3e9346[_0x58bdbe('0x2833')]?_0x58bdbe('0x27f2')+_0x3e9346[_0x58bdbe('0x2833')]+'\x20-\x20'+_0x3e9346['statusText']:'api.intServicenowConfiguration.update','msg':_0x3e9346[_0x58bdbe('0x11d0')]?JSON[_0x58bdbe('0x3ad')](_0x3e9346['data'][_0x58bdbe('0x27e8')]):_0x3e9346['toString']()});});}function _0x10b8d6(_0x1db5ab){var _0x369d2c=_0xbe5c6f;_0x10e3f9[_0x369d2c('0xcd2')]=[];var _0xc92578=_0x484389[_0x369d2c('0xa5')]()[_0x369d2c('0x13e4')](_0x369d2c('0x24d0'))[_0x369d2c('0xd0')](_0x369d2c('0x18c5'))[_0x369d2c('0x4d1')](_0x369d2c('0x230a'))['ok'](_0x369d2c('0x2198'))[_0x369d2c('0x2c1')]('Cancel')[_0x369d2c('0x1345')](_0x1db5ab);_0x484389[_0x369d2c('0x26b2')](_0xc92578)['then'](function(){var _0x2cc2cd=_0x369d2c;_0x15bd25[_0x2cc2cd('0x369')][_0x2cc2cd('0x229e')]({'id':_0x10e3f9[_0x2cc2cd('0x187d')]['id']})[_0x2cc2cd('0xe59')][_0x2cc2cd('0xe19')](function(){var _0x40d5bd=_0x2cc2cd;_0x32d445()[_0x40d5bd('0xa8b')](_0x10e3f9[_0x40d5bd('0x244e')],{'id':_0x10e3f9['servicenowConfiguration']['id']}),_0x249c0e[_0x40d5bd('0x425')]({'title':_0x40d5bd('0x2499'),'msg':(_0x10e3f9['servicenowConfiguration'][_0x40d5bd('0x2623')]||_0x40d5bd('0x187d'))+_0x40d5bd('0x2182')}),_0x4f1d4d(_0x10e3f9[_0x40d5bd('0x187d')]);})[_0x2cc2cd('0x223b')](function(_0x31ba0e){var _0x317caf=_0x2cc2cd;if(_0x31ba0e[_0x317caf('0x11d0')]&&_0x31ba0e[_0x317caf('0x11d0')][_0x317caf('0xcd2')]&&_0x31ba0e['data']['errors']['length']){_0x10e3f9[_0x317caf('0xcd2')]=_0x31ba0e[_0x317caf('0x11d0')][_0x317caf('0xcd2')]||[{'message':_0x31ba0e[_0x317caf('0x94f')](),'type':_0x317caf('0x2b5')}];for(var _0x1c5866=0x0;_0x1c5866<_0x31ba0e[_0x317caf('0x11d0')]['errors']['length'];_0x1c5866++){_0x249c0e[_0x317caf('0x8c8')]({'title':_0x31ba0e[_0x317caf('0x11d0')][_0x317caf('0xcd2')][_0x1c5866][_0x317caf('0x62e')],'msg':_0x31ba0e[_0x317caf('0x11d0')]['errors'][_0x1c5866]['message']});}}else _0x249c0e['error']({'title':_0x31ba0e[_0x317caf('0x2833')]?_0x317caf('0x27f2')+_0x31ba0e['status']+_0x317caf('0x1b7c')+_0x31ba0e[_0x317caf('0x1fd7')]:_0x317caf('0x2b5'),'msg':_0x31ba0e['data']?JSON[_0x317caf('0x3ad')](_0x31ba0e[_0x317caf('0x11d0')][_0x317caf('0x27e8')]):_0x31ba0e[_0x317caf('0x27e8')]||_0x31ba0e[_0x317caf('0x94f')]()});});},function(){});}function _0xc1e384(_0x4cb4e6){return _0x4cb4e6===null?undefined:new Date(_0x4cb4e6);}function _0x4f1d4d(_0x46b63b){var _0x1166db=_0xbe5c6f;_0x484389[_0x1166db('0x11ed')](_0x46b63b);}}const _0x49ebe2=_0x40d64b;_0x4990ed['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),'configuration',_0xb635d2('0xe4b'),_0xb635d2('0xdbb'),_0xb635d2('0xe8b'),'type',_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x4990ed(_0x35bdd3,_0x332faf,_0x3fb649,_0x5ba3b4,_0xffb343,_0x4c3f7f,_0x82320f,_0x5d2f79,_0x217b52,_0x20943,_0x4715a7,_0x55503d,_0xd0c547){var _0x1612e4=_0xb635d2,_0x665dd9=this;_0x665dd9['currentUser']=_0x55503d[_0x1612e4('0x1ef8')](),_0x665dd9[_0x1612e4('0xcd2')]=[],_0x665dd9[_0x1612e4('0x13e4')]=_0x1612e4('0x53c')+_0x32d445()[_0x1612e4('0xcbc')](_0x20943),_0x665dd9['item']=angular[_0x1612e4('0x89')](_0x5d2f79),_0x665dd9['items']=_0x82320f,_0x665dd9[_0x1612e4('0x62e')]=_0x20943,_0x665dd9['crudPermissions']=_0xd0c547,_0x665dd9[_0x1612e4('0xa3')]=![];!_0x665dd9[_0x1612e4('0xdbb')]&&(_0x665dd9[_0x1612e4('0xdbb')]={'type':_0x1612e4('0x19d1')},_0x665dd9['item'][_0x32d445()[_0x1612e4('0xbf6')](_0x20943)+'Id']=_0x4c3f7f['id'],_0x665dd9[_0x1612e4('0x13e4')]=_0x1612e4('0x7e2')+_0x32d445()[_0x1612e4('0xcbc')](_0x20943),_0x665dd9[_0x1612e4('0xa3')]=!![]);_0x665dd9[_0x1612e4('0x9ca')]=_0x2e70ee,_0x665dd9[_0x1612e4('0x1384')]=_0x913663,_0x665dd9['deleteItem']=_0x2c6d5e,_0x665dd9[_0x1612e4('0x142b')]=_0x52b684,_0x665dd9[_0x1612e4('0x2584')]=_0x3d8ade,_0x4715a7['variable']['get']({'nolimit':!![]})[_0x1612e4('0xe59')][_0x1612e4('0xe19')](function(_0x1627ab){var _0x5781b0=_0x1612e4;return _0x665dd9['variables']=_0x1627ab[_0x5781b0('0x16a7')]?_0x1627ab[_0x5781b0('0x16a7')]:[],_0x4715a7[_0x5781b0('0x22cf')][_0x5781b0('0x215e')]()['$promise'];})[_0x1612e4('0xe19')](function(_0x296eb6){var _0x36c499=_0x1612e4;return _0x665dd9[_0x36c499('0x1230')]=_0x32d445()[_0x36c499('0x11d3')](_0x32d445()[_0x36c499('0x1234')](_0x296eb6),[_0x36c499('0xe59'),'$resolved','createdAt',_0x36c499('0x1ce9'),'sourceid']),_0x665dd9['voiceAgentReportColumns'][_0x36c499('0xb76')]('recordingURL'),_0x4715a7[_0x36c499('0xa4e')][_0x36c499('0x215e')]()[_0x36c499('0xe59')];})['then'](function(_0x309e60){var _0x5e4ea3=_0x1612e4;_0x665dd9['voiceDialReportColumns']=_0x32d445()[_0x5e4ea3('0x11d3')](_0x32d445()[_0x5e4ea3('0x1234')](_0x309e60),[_0x5e4ea3('0xe59'),_0x5e4ea3('0x113c'),_0x5e4ea3('0x15c9'),_0x5e4ea3('0x1ce9'),_0x5e4ea3('0x1bea')]),_0x665dd9[_0x5e4ea3('0x9f9')]['push'](_0x5e4ea3('0xeaa'));})[_0x1612e4('0x223b')](function(_0x1b737d){var _0x1bdeb7=_0x1612e4;_0xffb343['error']({'title':_0x1b737d[_0x1bdeb7('0x2833')]?_0x1bdeb7('0x27f2')+_0x1b737d[_0x1bdeb7('0x2833')]+_0x1bdeb7('0x1b7c')+_0x1b737d[_0x1bdeb7('0x1fd7')]:_0x1bdeb7('0x1c83'),'msg':_0x1b737d[_0x1bdeb7('0x11d0')]?JSON[_0x1bdeb7('0x3ad')](_0x1b737d[_0x1bdeb7('0x11d0')]):_0x1b737d[_0x1bdeb7('0x94f')]()});}),_0x4715a7['intServicenowAccount'][_0x1612e4('0x23f8')]({'id':_0x217b52['id'],'ticketType':_0x4c3f7f[_0x1612e4('0x11d2')]?_0x4c3f7f[_0x1612e4('0x11d2')]:undefined})[_0x1612e4('0xe59')]['then'](function(_0x3f6eab){var _0x59998c=_0x1612e4;_0x665dd9[_0x59998c('0xbba')]=!![],_0x665dd9[_0x59998c('0x1d17')]=_0x3f6eab[_0x59998c('0x16a7')]?_0x3f6eab[_0x59998c('0x16a7')]:[],_0x665dd9[_0x59998c('0xdbb')]['idField']&&(_0x665dd9[_0x59998c('0x1129')]=_0x32d445()[_0x59998c('0xf15')](_0x665dd9[_0x59998c('0x1d17')],{'id':_0x665dd9[_0x59998c('0xdbb')][_0x59998c('0x1c96')]}));})[_0x1612e4('0x223b')](function(_0x3ca597){var _0x8521f7=_0x1612e4;_0x665dd9[_0x8521f7('0xbba')]=![],console['error'](_0x3ca597);});function _0x2e70ee(){var _0xe64567=_0x1612e4;_0x665dd9[_0xe64567('0xcd2')]=[],_0x665dd9[_0xe64567('0x1129')]&&(_0x665dd9[_0xe64567('0xdbb')][_0xe64567('0x1c96')]=_0x665dd9[_0xe64567('0x1129')]['id'],_0x665dd9[_0xe64567('0xdbb')][_0xe64567('0x99e')]=_0x665dd9[_0xe64567('0x1129')][_0xe64567('0x2623')],_0x665dd9[_0xe64567('0xdbb')]['customField']=_0x665dd9[_0xe64567('0x1129')][_0xe64567('0x261d')]),_0x4715a7[_0xe64567('0x11e2')][_0xe64567('0xe5e')](_0x665dd9[_0xe64567('0xdbb')])['$promise'][_0xe64567('0xe19')](function(_0x5df209){var _0xd7778d=_0xe64567;_0x665dd9[_0xd7778d('0xe4b')][_0xd7778d('0x14c9')](_0x5df209),_0xffb343[_0xd7778d('0x425')]({'title':_0x32d445()['capitalize'](_0x20943)+_0xd7778d('0xf04'),'msg':_0x32d445()[_0xd7778d('0xbf6')](_0x20943)+_0xd7778d('0x105f')}),_0x3d8ade();})['catch'](function(_0x5eaec4){var _0x54ba5d=_0xe64567;console[_0x54ba5d('0x8c8')](_0x5eaec4),_0x665dd9[_0x54ba5d('0xcd2')]=_0x5eaec4['data'][_0x54ba5d('0xcd2')]||[{'message':_0x5eaec4[_0x54ba5d('0x94f')](),'type':_0x54ba5d('0xc4c')}];});}function _0x913663(){var _0x16f6d1=_0x1612e4;_0x665dd9['errors']=[],_0x665dd9[_0x16f6d1('0x1129')]&&(_0x665dd9[_0x16f6d1('0xdbb')][_0x16f6d1('0x1c96')]=_0x665dd9[_0x16f6d1('0x1129')]['id'],_0x665dd9[_0x16f6d1('0xdbb')]['nameField']=_0x665dd9[_0x16f6d1('0x1129')][_0x16f6d1('0x2623')],_0x665dd9[_0x16f6d1('0xdbb')][_0x16f6d1('0x1129')]=_0x665dd9['customField'][_0x16f6d1('0x261d')]),_0x4715a7[_0x16f6d1('0x11e2')][_0x16f6d1('0xa70')]({'id':_0x665dd9[_0x16f6d1('0xdbb')]['id']},_0x665dd9[_0x16f6d1('0xdbb')])[_0x16f6d1('0xe59')][_0x16f6d1('0xe19')](function(_0x5af56e){var _0x364954=_0x16f6d1,_0x1dfdb0=_0x32d445()[_0x364954('0xf15')](_0x665dd9[_0x364954('0xe4b')],{'id':_0x5af56e['id']});_0x1dfdb0&&_0x32d445()[_0x364954('0x1d8')](_0x1dfdb0,_0x5af56e),_0xffb343['success']({'title':_0x32d445()[_0x364954('0xbf6')](_0x20943)+'\x20properly\x20saved!','msg':_0x32d445()[_0x364954('0xbf6')](_0x20943)+_0x364954('0x1c19')}),_0x3d8ade();})[_0x16f6d1('0x223b')](function(_0x4b26d2){var _0x5c8358=_0x16f6d1;console[_0x5c8358('0x8c8')](_0x4b26d2),_0x665dd9[_0x5c8358('0xcd2')]=_0x4b26d2[_0x5c8358('0x11d0')]['errors']||[{'message':_0x4b26d2[_0x5c8358('0x94f')](),'type':_0x5c8358('0x2134')}];});}function _0x2c6d5e(_0x591c9d){var _0x393e0f=_0x1612e4;_0x665dd9[_0x393e0f('0xcd2')]=[];var _0x22880a=_0x5ba3b4['confirm']()['title'](_0x393e0f('0x24d0'))[_0x393e0f('0xd0')]('The\x20'+_0x20943+_0x393e0f('0x21bd'))[_0x393e0f('0x4d1')](_0x393e0f('0x13de')+_0x32d445()[_0x393e0f('0xbf6')](_0x20943))['ok'](_0x393e0f('0x2198'))[_0x393e0f('0x2c1')](_0x393e0f('0x8a3'))[_0x393e0f('0x1345')](_0x591c9d);_0x5ba3b4['show'](_0x22880a)[_0x393e0f('0xe19')](function(){var _0x40a4a8=_0x393e0f;_0x4715a7[_0x40a4a8('0x11e2')][_0x40a4a8('0x229e')]({'id':_0x665dd9[_0x40a4a8('0xdbb')]['id']})[_0x40a4a8('0xe59')][_0x40a4a8('0xe19')](function(){var _0x552365=_0x40a4a8;_0x32d445()[_0x552365('0xa8b')](_0x665dd9[_0x552365('0xe4b')],{'id':_0x665dd9[_0x552365('0xdbb')]['id']}),_0xffb343['success']({'title':_0x32d445()[_0x552365('0xbf6')](_0x20943)+'\x20properly\x20deleted!','msg':_0x32d445()[_0x552365('0xbf6')](_0x20943)+'\x20has\x20been\x20deleted!'}),_0x3d8ade();})[_0x40a4a8('0x223b')](function(_0x28b5bc){var _0x3aa29a=_0x40a4a8;console[_0x3aa29a('0x8c8')](_0x28b5bc),_0x665dd9['errors']=_0x28b5bc['data']['errors']||[{'message':_0x28b5bc[_0x3aa29a('0x94f')](),'type':_0x3aa29a('0x2272')}];});},function(){});}function _0x52b684(){var _0x10ae9d=_0x1612e4;return _0x665dd9[_0x10ae9d('0xdbb')][_0x10ae9d('0x17b')]!==undefined?_0x665dd9[_0x10ae9d('0xdbb')]['variableName']:'Please\x20select\x20a\x20variable';}function _0x3d8ade(){var _0x37ebfc=_0x1612e4;_0x5ba3b4[_0x37ebfc('0x11ed')]();}}const _0x1ce9a9=_0x4990ed;_0x938c30['$inject']=[_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x411'),'userProfileSection'];function _0x938c30(_0x4a35d1,_0x704cf,_0x4efa3,_0x13289c,_0xb92d97,_0x17c074,_0x1023b1,_0x4e2175,_0xf949aa,_0x3b6535,_0x3782a4,_0x551905){var _0x14228e=_0xb635d2,_0x2ba3db=this;_0x2ba3db['currentUser']=_0x3b6535[_0x14228e('0x1ef8')](),_0x2ba3db['license']=_0x17c074,_0x2ba3db[_0x14228e('0x22f1')]=_0x1023b1,_0x2ba3db[_0x14228e('0x25ac')]=_0x2ba3db[_0x14228e('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ba3db[_0x14228e('0x2170')]=_0x704cf['protocol']()+'://'+_0x704cf[_0x14228e('0x3b7')](),_0x2ba3db[_0x14228e('0x411')]=_0x3782a4||_0x4a35d1[_0x14228e('0x2ef')]['servicenowAccount']||{},_0x2ba3db['userProfileSection']=_0x551905&&_0x551905['count']==0x1?_0x551905[_0x14228e('0x16a7')][0x0]:null,_0x2ba3db[_0x14228e('0xb3d')]=_0x3b6535[_0x14228e('0xd31')](_0x2ba3db[_0x14228e('0xb59')]?_0x2ba3db[_0x14228e('0xb59')][_0x14228e('0xb3d')]:null),_0x2ba3db[_0x14228e('0x1ccb')]={},_0x2ba3db[_0x14228e('0xc7b')]=_0x4a35d1[_0x14228e('0x2ef')][_0x14228e('0x435')]||0x0,_0x2ba3db[_0x14228e('0xbdc')]=_0xf949aa[_0x14228e('0x1e67')],_0x2ba3db['gotoServicenowAccounts']=_0x4b270d,_0x2ba3db[_0x14228e('0x2472')]=_0x4c77da;function _0x4b270d(){var _0x331a54=_0x14228e;_0x4a35d1['go'](_0x331a54('0x1061'),{},{'reload':'app.integrations.servicenowAccounts'});}function _0x4c77da(){var _0x367462=_0x14228e;_0x4e2175[_0x367462('0x162d')][_0x367462('0xa70')]({'id':_0x2ba3db[_0x367462('0x411')]['id']},_0x2ba3db[_0x367462('0x411')])['$promise']['then'](function(){var _0x492158=_0x367462;_0xf949aa['success']({'title':_0x492158('0x183'),'msg':_0x2ba3db[_0x492158('0x411')][_0x492158('0x2623')]?_0x2ba3db[_0x492158('0x411')]['name']+_0x492158('0x283b'):''});})[_0x367462('0x223b')](function(_0x4f5cf6){var _0xdf36f3=_0x367462;_0xf949aa['error']({'title':_0x4f5cf6[_0xdf36f3('0x2833')]?_0xdf36f3('0x27f2')+_0x4f5cf6[_0xdf36f3('0x2833')]+_0xdf36f3('0x1b7c')+_0x4f5cf6[_0xdf36f3('0x1fd7')]:_0xdf36f3('0x1f21'),'msg':_0x4f5cf6[_0xdf36f3('0x11d0')]?JSON[_0xdf36f3('0x3ad')](_0x4f5cf6[_0xdf36f3('0x11d0')]):_0x4f5cf6[_0xdf36f3('0x94f')]()});});}}const _0x171a67=_0x938c30,_0x971b32=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog-[chunkhash].html';_0x1cb3ad[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),'$translate',_0xb635d2('0x878'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1'),'setting'];function _0x1cb3ad(_0x36992f,_0x51e1c5,_0x4d6a45,_0x3359e6,_0x2c2e71,_0x4d0804,_0x171d6d,_0x364bc5,_0x2fe7eb,_0x1fbe65,_0x36be0b,_0x456f5b,_0x278fb0,_0x3b3ae5,_0x193634,_0x5aff21,_0x5b35e1){var _0x472f18=_0xb635d2,_0x1f2dae=this;_0x1f2dae[_0x472f18('0x5c1')]=_0x5aff21,_0x1f2dae[_0x472f18('0x22f1')]=_0x5b35e1,_0x1f2dae[_0x472f18('0x15a5')]=_0x193634[_0x472f18('0x1ef8')](),_0x1f2dae[_0x472f18('0x878')]=_0x2fe7eb||{'count':0x0,'rows':[]},_0x1f2dae[_0x472f18('0x154f')]=_0x1fbe65,_0x1f2dae['userProfileSection']=_0x36be0b&&_0x36be0b[_0x472f18('0x148b')]==0x1?_0x36be0b[_0x472f18('0x16a7')][0x0]:null,_0x1f2dae[_0x472f18('0xb3d')]=_0x193634['parseCrudPermissions'](_0x1f2dae[_0x472f18('0xb59')]?_0x1f2dae[_0x472f18('0xb59')][_0x472f18('0xb3d')]:null),_0x1f2dae[_0x472f18('0x19b6')]='servicenowAccounts',_0x1f2dae[_0x472f18('0x14d6')]='',_0x1f2dae[_0x472f18('0x190c')]=null,_0x1f2dae['selectedServicenowAccounts']=[],_0x1f2dae[_0x472f18('0xa16')]={'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'page':0x1},_0x1f2dae['editstate']=_0x14b553,_0x1f2dae['testtestintegrationaccount']=_0x5adc52,_0x1f2dae[_0x472f18('0x1d9e')]=_0x5eb8b0,_0x1f2dae[_0x472f18('0x425')]=_0xa5c50b,_0x1f2dae[_0x472f18('0x1ec5')]=_0x17c668,_0x1f2dae[_0x472f18('0x1be8')]=_0x439d2d,_0x1f2dae['deleteServicenowAccount']=_0x30a889,_0x1f2dae[_0x472f18('0x721')]=_0x7a3b8a,_0x1f2dae[_0x472f18('0x1be2')]=_0x3adab5,_0x1f2dae[_0x472f18('0x1cfc')]=_0x21b2aa,_0x1f2dae[_0x472f18('0x2709')]=_0x417be2;function _0x14b553(_0x1c4da3){var _0x5adac5=_0x472f18;_0x4d6a45['go'](_0x5adac5('0x20b9'),{'id':_0x1c4da3['id'],'servicenowAccount':_0x1c4da3,'crudPermissions':_0x1f2dae[_0x5adac5('0xb3d')]});}function _0x5adc52(_0x122d2d){var _0x3786de=_0x472f18;return _0x456f5b['intServicenowAccount'][_0x3786de('0x23f8')]({'id':_0x122d2d['id'],'test':!![]})[_0x3786de('0xe59')][_0x3786de('0xe19')](function(){var _0x1e7de3=_0x3786de;_0x3b3ae5[_0x1e7de3('0x425')]({'title':'ServicenowAccount\x20properly\x20tested','msg':_0x1e7de3('0xd96')});})['catch'](function(_0x4f6aa8){var _0x55896c=_0x3786de;_0x3b3ae5[_0x55896c('0x8c8')]({'title':_0x55896c('0x26'),'msg':_0x4f6aa8[_0x55896c('0x11d0')]?_0x4f6aa8[_0x55896c('0x11d0')][_0x55896c('0x27e8')]?_0x4f6aa8[_0x55896c('0x11d0')][_0x55896c('0x27e8')]:JSON[_0x55896c('0x3ad')](_0x4f6aa8['data']):_0x4f6aa8[_0x55896c('0x94f')]()});});}function _0x5eb8b0(_0x12059a,_0x37fe77){var _0x334f5b=_0x472f18,_0x411f10=_0x2c2e71[_0x334f5b('0xa5')]()[_0x334f5b('0x13e4')](_0x334f5b('0x346')+_0x32d445()[_0x334f5b('0x1df2')](_0x334f5b('0x411'))+'?')[_0x334f5b('0x221c')](''+(_0x12059a[_0x334f5b('0x2623')]||_0x334f5b('0x411'))+_0x334f5b('0x27bb')+'\x20will\x20be\x20deleted.')[_0x334f5b('0x4d1')]('delete\x20servicenowAccount')[_0x334f5b('0x1345')](_0x37fe77)['ok']('OK')['cancel'](_0x334f5b('0x17'));_0x2c2e71['show'](_0x411f10)[_0x334f5b('0xe19')](function(){_0x30a889(_0x12059a);},function(){console['log']('CANCEL');});}var _0x24b43a=!![],_0x49b22b=0x1;_0x36992f[_0x472f18('0x107')](_0x472f18('0x20cb'),function(_0x57c950,_0x20a8c1){var _0x2bb81b=_0x472f18;_0x24b43a?_0x171d6d(function(){_0x24b43a=![];}):(!_0x20a8c1&&(_0x49b22b=_0x1f2dae[_0x2bb81b('0xa16')][_0x2bb81b('0xc08')]),_0x57c950!==_0x20a8c1&&(_0x1f2dae[_0x2bb81b('0xa16')][_0x2bb81b('0xc08')]=0x1),!_0x57c950&&(_0x1f2dae[_0x2bb81b('0xa16')]['page']=_0x49b22b),_0x1f2dae[_0x2bb81b('0x1ec5')]());});function _0xa5c50b(_0x49c37b){var _0x2a5591=_0x472f18;_0x1f2dae[_0x2a5591('0x878')]=_0x49c37b||{'count':0x0,'rows':[]};}function _0x17c668(){var _0x2b9850=_0x472f18;_0x1f2dae[_0x2b9850('0xa16')]['offset']=(_0x1f2dae['query'][_0x2b9850('0xc08')]-0x1)*_0x1f2dae[_0x2b9850('0xa16')]['limit'],_0x193634[_0x2b9850('0x179e')](_0x2b9850('0xd14'))?_0x1f2dae['promise']=_0x456f5b['intServicenowAccount']['get'](_0x1f2dae[_0x2b9850('0xa16')],_0xa5c50b)[_0x2b9850('0xe59')]:(_0x1f2dae[_0x2b9850('0xa16')]['id']=_0x1f2dae[_0x2b9850('0x154f')]['id'],_0x1f2dae[_0x2b9850('0xa16')][_0x2b9850('0x1e59')]=_0x2b9850('0x2689'),_0x1f2dae[_0x2b9850('0x9c8')]=_0x456f5b[_0x2b9850('0x154f')][_0x2b9850('0x14e6')](_0x1f2dae[_0x2b9850('0xa16')],_0xa5c50b)[_0x2b9850('0xe59')]);}function _0x439d2d(_0x3dc6b7,_0x43f974){var _0x11e322=_0x472f18;_0x2c2e71[_0x11e322('0x26b2')]({'controller':_0x11e322('0xfad'),'controllerAs':'vm','templateUrl':_0x971b32,'parent':angular[_0x11e322('0x24a1')](_0x4d0804[_0x11e322('0x19b2')]),'targetEvent':_0x3dc6b7,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x43f974,'servicenowAccounts':_0x1f2dae['servicenowAccounts'][_0x11e322('0x16a7')],'license':_0x1f2dae['license'],'setting':_0x1f2dae['setting'],'crudPermissions':_0x1f2dae[_0x11e322('0xb3d')]}});}function _0x30a889(_0x104947){var _0x5864d5=_0x472f18;_0x456f5b['intServicenowAccount'][_0x5864d5('0x229e')]({'id':_0x104947['id']})['$promise'][_0x5864d5('0xe19')](function(){var _0x11374e=_0x5864d5;_0x32d445()['remove'](_0x1f2dae[_0x11374e('0x878')][_0x11374e('0x16a7')],{'id':_0x104947['id']}),_0x1f2dae[_0x11374e('0x878')][_0x11374e('0x148b')]-=0x1,!_0x1f2dae['servicenowAccounts']['rows'][_0x11374e('0x25ae')]&&_0x1f2dae[_0x11374e('0x1ec5')](),_0x3b3ae5[_0x11374e('0x425')]({'title':_0x32d445()[_0x11374e('0x1df2')](_0x11374e('0x1b7d'))+_0x11374e('0x1219'),'msg':_0x104947['name']?_0x104947['name']+_0x11374e('0x2182'):''});})['catch'](function(_0x345c41){var _0x340776=_0x5864d5;if(_0x345c41['data']&&_0x345c41[_0x340776('0x11d0')]['errors']&&_0x345c41[_0x340776('0x11d0')]['errors'][_0x340776('0x25ae')]){_0x1f2dae[_0x340776('0xcd2')]=_0x345c41['data']['errors']||[{'message':_0x345c41[_0x340776('0x94f')](),'type':'SYSTEM:DELETEintServicenowAccount'}];for(var _0x2ab36a=0x0;_0x2ab36a<_0x345c41[_0x340776('0x11d0')][_0x340776('0xcd2')][_0x340776('0x25ae')];_0x2ab36a++){_0x3b3ae5[_0x340776('0x8c8')]({'title':_0x345c41['data'][_0x340776('0xcd2')][_0x2ab36a][_0x340776('0x62e')],'msg':_0x345c41[_0x340776('0x11d0')][_0x340776('0xcd2')][_0x2ab36a][_0x340776('0x27e8')]});}}else _0x3b3ae5[_0x340776('0x8c8')]({'title':_0x345c41[_0x340776('0x2833')]?_0x340776('0x27f2')+_0x345c41[_0x340776('0x2833')]+_0x340776('0x1b7c')+_0x345c41[_0x340776('0x1fd7')]:'SYSTEM:DELETEintServicenowAccount','msg':_0x345c41['data']?JSON[_0x340776('0x3ad')](_0x345c41[_0x340776('0x11d0')][_0x340776('0x27e8')]):_0x345c41[_0x340776('0x27e8')]||_0x345c41['toString']()});});}function _0x7a3b8a(){var _0x13cdee=_0x472f18,_0xc6badd=angular[_0x13cdee('0x89')](_0x1f2dae[_0x13cdee('0x1c72')]);return _0x1f2dae[_0x13cdee('0x1c72')]=[],_0xc6badd;}function _0x3adab5(_0x1fb40d){var _0x2d5321=_0x472f18,_0x5d145f=_0x2c2e71['confirm']()[_0x2d5321('0x13e4')](_0x2d5321('0xcd0'))[_0x2d5321('0x221c')](_0x2d5321('0xab2')+_0x1f2dae[_0x2d5321('0x1c72')]['length']+_0x2d5321('0x5bc')+_0x2d5321('0x21bd'))[_0x2d5321('0x4d1')]('delete\x20ServicenowAccounts')['targetEvent'](_0x1fb40d)['ok']('OK')[_0x2d5321('0x2c1')]('CANCEL');_0x2c2e71['show'](_0x5d145f)[_0x2d5321('0xe19')](function(){var _0x4fa7de=_0x2d5321;_0x1f2dae[_0x4fa7de('0x1c72')][_0x4fa7de('0x1d7e')](function(_0x3d590d){_0x30a889(_0x3d590d);}),_0x1f2dae[_0x4fa7de('0x1c72')]=[];});}function _0x21b2aa(){var _0x334f6a=_0x472f18;_0x1f2dae[_0x334f6a('0x1c72')]=[];}function _0x417be2(){var _0x5bafd7=_0x472f18;_0x1f2dae[_0x5bafd7('0x1c72')]=_0x1f2dae[_0x5bafd7('0x878')][_0x5bafd7('0x16a7')];}}const _0x5081fe=_0x1cb3ad;_0x3cbf9c[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1d32'),_0xb635d2('0x5bf'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x3cbf9c(_0x490d97,_0x5c3769,_0x431e9b,_0x1c3b3d,_0x422c53,_0x3ec47c,_0x26ba31,_0x39d049,_0x292aa4,_0x1cc5c2,_0x2b7ae4,_0x35444e,_0xfcad18,_0x520f22){var _0x208fad=_0xb635d2,_0x1d67c9=this;_0x1d67c9[_0x208fad('0x15a5')]=_0x2b7ae4[_0x208fad('0x1ef8')](),_0x1d67c9[_0x208fad('0xcd2')]=[],_0x1d67c9[_0x208fad('0x22f1')]=_0xfcad18,_0x1d67c9[_0x208fad('0x5c1')]=_0x35444e,_0x1d67c9['crudPermissions']=_0x520f22,_0x1d67c9[_0x208fad('0x1ccb')]={},_0x1d67c9[_0x208fad('0x25ac')]=_0x1d67c9[_0x208fad('0x22f1')]&&_0x1d67c9[_0x208fad('0x22f1')][_0x208fad('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1d67c9[_0x208fad('0x13e4')]=_0x208fad('0x1acb'),_0x1d67c9[_0x208fad('0x5bf')]=angular[_0x208fad('0x89')](_0x292aa4),_0x1d67c9[_0x208fad('0x1d32')]=_0x39d049,_0x1d67c9[_0x208fad('0xd91')]=![];!_0x1d67c9[_0x208fad('0x5bf')]&&(_0x1d67c9[_0x208fad('0x5bf')]={'serverUrl':_0x431e9b[_0x208fad('0xec0')]()+'://'+_0x431e9b[_0x208fad('0x3b7')]()+(_0x431e9b[_0x208fad('0x11dc')]()?':'+_0x431e9b[_0x208fad('0x11dc')]():'')},_0x1d67c9[_0x208fad('0x13e4')]=_0x208fad('0x1fed'),_0x1d67c9[_0x208fad('0xd91')]=!![]);_0x1d67c9[_0x208fad('0x2056')]=_0xce96d4,_0x1d67c9['saveSugarcrmAccount']=_0x573634,_0x1d67c9[_0x208fad('0x267e')]=_0x85dbc7,_0x1d67c9[_0x208fad('0x2635')]=_0x1a9a0d,_0x1d67c9[_0x208fad('0x2584')]=_0x2a5be1;function _0xce96d4(){var _0x1b7d23=_0x208fad;_0x1d67c9[_0x1b7d23('0xcd2')]=[],_0x1cc5c2['intSugarcrmAccount'][_0x1b7d23('0xe5e')](_0x1d67c9['sugarcrmAccount'])[_0x1b7d23('0xe59')][_0x1b7d23('0xe19')](function(_0xf39890){var _0xfce9f9=_0x1b7d23;_0x1d67c9[_0xfce9f9('0x1d32')]['unshift'](_0xf39890[_0xfce9f9('0x250e')]()),_0x26ba31['success']({'title':_0xfce9f9('0x2604'),'msg':_0x1d67c9['sugarcrmAccount']['name']?_0x1d67c9[_0xfce9f9('0x5bf')][_0xfce9f9('0x2623')]+_0xfce9f9('0x105f'):''}),_0x2a5be1(_0xf39890);})['catch'](function(_0x4de565){var _0x5a3464=_0x1b7d23;if(_0x4de565[_0x5a3464('0x11d0')]&&_0x4de565['data'][_0x5a3464('0xcd2')]&&_0x4de565[_0x5a3464('0x11d0')][_0x5a3464('0xcd2')][_0x5a3464('0x25ae')]){_0x1d67c9['errors']=_0x4de565[_0x5a3464('0x11d0')][_0x5a3464('0xcd2')]||[{'message':_0x4de565[_0x5a3464('0x94f')](),'type':'api.intSugarcrmAccount.save'}];for(var _0x43ccda=0x0;_0x43ccda<_0x4de565[_0x5a3464('0x11d0')][_0x5a3464('0xcd2')][_0x5a3464('0x25ae')];_0x43ccda+=0x1){_0x26ba31['error']({'title':_0x4de565['data'][_0x5a3464('0xcd2')][_0x43ccda][_0x5a3464('0x62e')],'msg':_0x4de565[_0x5a3464('0x11d0')][_0x5a3464('0xcd2')][_0x43ccda][_0x5a3464('0x27e8')]});}}else _0x26ba31['error']({'title':_0x4de565['status']?_0x5a3464('0x27f2')+_0x4de565[_0x5a3464('0x2833')]+_0x5a3464('0x1b7c')+_0x4de565[_0x5a3464('0x1fd7')]:_0x5a3464('0x1030'),'msg':_0x4de565['data']?JSON[_0x5a3464('0x3ad')](_0x4de565[_0x5a3464('0x11d0')][_0x5a3464('0x27e8')]):_0x4de565['toString']()});});}function _0x573634(){var _0x966e53=_0x208fad;_0x1d67c9[_0x966e53('0xcd2')]=[],_0x1cc5c2[_0x966e53('0x1429')][_0x966e53('0xa70')]({'id':_0x1d67c9['sugarcrmAccount']['id']},_0x1d67c9[_0x966e53('0x5bf')])[_0x966e53('0xe59')][_0x966e53('0xe19')](function(_0xe7e0d1){var _0x406263=_0x966e53,_0x332bf7=_0x32d445()[_0x406263('0xf15')](_0x1d67c9['sugarcrmAccounts'],{'id':_0xe7e0d1['id']});_0x332bf7&&_0x32d445()['merge'](_0x332bf7,_0x32d445()[_0x406263('0xed5')](_0xe7e0d1[_0x406263('0x250e')](),_0x32d445()[_0x406263('0x1234')](_0x332bf7))),_0x26ba31[_0x406263('0x425')]({'title':_0x406263('0xdf2'),'msg':_0x1d67c9[_0x406263('0x5bf')][_0x406263('0x2623')]?_0x1d67c9[_0x406263('0x5bf')][_0x406263('0x2623')]+_0x406263('0x1c19'):''}),_0x2a5be1(_0xe7e0d1);})[_0x966e53('0x223b')](function(_0x53f885){var _0x3b5286=_0x966e53;if(_0x53f885[_0x3b5286('0x11d0')]&&_0x53f885[_0x3b5286('0x11d0')][_0x3b5286('0xcd2')]&&_0x53f885[_0x3b5286('0x11d0')][_0x3b5286('0xcd2')][_0x3b5286('0x25ae')]){_0x1d67c9['errors']=_0x53f885['data'][_0x3b5286('0xcd2')]||[{'message':_0x53f885[_0x3b5286('0x94f')](),'type':_0x3b5286('0xa9f')}];for(var _0x57e054=0x0;_0x57e054<_0x53f885['data']['errors'][_0x3b5286('0x25ae')];_0x57e054++){_0x26ba31[_0x3b5286('0x8c8')]({'title':_0x53f885[_0x3b5286('0x11d0')]['errors'][_0x57e054]['type'],'msg':_0x53f885[_0x3b5286('0x11d0')][_0x3b5286('0xcd2')][_0x57e054][_0x3b5286('0x27e8')]});}}else _0x26ba31[_0x3b5286('0x8c8')]({'title':_0x53f885[_0x3b5286('0x2833')]?_0x3b5286('0x27f2')+_0x53f885[_0x3b5286('0x2833')]+_0x3b5286('0x1b7c')+_0x53f885[_0x3b5286('0x1fd7')]:_0x3b5286('0xa9f'),'msg':_0x53f885[_0x3b5286('0x11d0')]?JSON[_0x3b5286('0x3ad')](_0x53f885[_0x3b5286('0x11d0')][_0x3b5286('0x27e8')]):_0x53f885[_0x3b5286('0x94f')]()});});}function _0x85dbc7(_0x444b47){var _0x1a6535=_0x208fad;_0x1d67c9[_0x1a6535('0xcd2')]=[];var _0x21c521=_0x1c3b3d[_0x1a6535('0xa5')]()[_0x1a6535('0x13e4')](_0x1a6535('0x24d0'))[_0x1a6535('0xd0')](_0x1a6535('0x6c5'))[_0x1a6535('0x4d1')](_0x1a6535('0xf25'))['ok'](_0x1a6535('0x2198'))['cancel'](_0x1a6535('0x8a3'))[_0x1a6535('0x1345')](_0x444b47);_0x1c3b3d['show'](_0x21c521)['then'](function(){var _0x2c4cc0=_0x1a6535;_0x1cc5c2[_0x2c4cc0('0x1429')][_0x2c4cc0('0x229e')]({'id':_0x1d67c9[_0x2c4cc0('0x5bf')]['id']})[_0x2c4cc0('0xe59')]['then'](function(){var _0x2fdb33=_0x2c4cc0;_0x32d445()['remove'](_0x1d67c9['sugarcrmAccounts'],{'id':_0x1d67c9[_0x2fdb33('0x5bf')]['id']}),_0x26ba31[_0x2fdb33('0x425')]({'title':'SugarcrmAccount\x20properly\x20deleted!','msg':(_0x1d67c9[_0x2fdb33('0x5bf')][_0x2fdb33('0x2623')]||_0x2fdb33('0x5bf'))+_0x2fdb33('0x2182')}),_0x2a5be1(_0x1d67c9['sugarcrmAccount']);})['catch'](function(_0x2cee56){var _0x419ac2=_0x2c4cc0;if(_0x2cee56[_0x419ac2('0x11d0')]&&_0x2cee56[_0x419ac2('0x11d0')][_0x419ac2('0xcd2')]&&_0x2cee56[_0x419ac2('0x11d0')][_0x419ac2('0xcd2')][_0x419ac2('0x25ae')]){_0x1d67c9['errors']=_0x2cee56[_0x419ac2('0x11d0')][_0x419ac2('0xcd2')]||[{'message':_0x2cee56[_0x419ac2('0x94f')](),'type':'api.intSugarcrmAccount.delete'}];for(var _0x376e17=0x0;_0x376e17<_0x2cee56[_0x419ac2('0x11d0')][_0x419ac2('0xcd2')]['length'];_0x376e17++){_0x26ba31[_0x419ac2('0x8c8')]({'title':_0x2cee56[_0x419ac2('0x11d0')][_0x419ac2('0xcd2')][_0x376e17][_0x419ac2('0x62e')],'msg':_0x2cee56[_0x419ac2('0x11d0')][_0x419ac2('0xcd2')][_0x376e17]['message']});}}else _0x26ba31[_0x419ac2('0x8c8')]({'title':_0x2cee56[_0x419ac2('0x2833')]?'API:'+_0x2cee56[_0x419ac2('0x2833')]+_0x419ac2('0x1b7c')+_0x2cee56[_0x419ac2('0x1fd7')]:'api.intSugarcrmAccount.delete','msg':_0x2cee56['data']?JSON[_0x419ac2('0x3ad')](_0x2cee56[_0x419ac2('0x11d0')][_0x419ac2('0x27e8')]):_0x2cee56['message']||_0x2cee56[_0x419ac2('0x94f')]()});});},function(){});}function _0x1a9a0d(_0x492626){return _0x492626===null?undefined:new Date(_0x492626);}function _0x2a5be1(_0x22b2a6){var _0x1e37ea=_0x208fad;_0x1c3b3d[_0x1e37ea('0x11ed')](_0x22b2a6);}}const _0x317cfe=_0x3cbf9c,_0xe6f723=_0x59426a['p']+_0xb635d2('0x1f18'),_0x19a04b=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x310c69[_0xb635d2('0xb0c')]=['$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x310c69(_0x271b83,_0xee56a0,_0x31166b,_0x210e70,_0x59bdf5){var _0x34437b=_0xb635d2,_0x3e816b=this;_0x3e816b[_0x34437b('0x15a5')]=_0x59bdf5[_0x34437b('0x1ef8')](),_0x3e816b[_0x34437b('0x5bf')]={},_0x3e816b[_0x34437b('0x1d07')]={},_0x3e816b[_0x34437b('0x244e')]=[],_0x3e816b[_0x34437b('0xae0')]=-0x1,_0x3e816b[_0x34437b('0xb3d')],_0x3e816b[_0x34437b('0x15f9')]=_0x55f470,_0x3e816b['getSugarcrmConfiguration']=_0x34738b,_0x3e816b[_0x34437b('0xb6')]=_0x36c188,_0x3e816b[_0x34437b('0x1c67')]=_0x22b867;function _0x55f470(_0x1fbd43,_0x30e3d2){var _0x594b34=_0x34437b;_0x3e816b[_0x594b34('0x5bf')]=_0x1fbd43,_0x3e816b[_0x594b34('0xb3d')]=typeof _0x30e3d2!=='undefined'?_0x30e3d2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x31166b['intSugarcrmAccount'][_0x594b34('0x1ac6')]({'id':_0x3e816b['sugarcrmAccount']['id'],'sort':_0x594b34('0x7e8')})[_0x594b34('0xe59')]['then'](function(_0x51004d){var _0x2c94f0=_0x594b34;return _0x3e816b[_0x2c94f0('0x244e')]=_0x51004d[_0x2c94f0('0x16a7')]?_0x51004d['rows']:[],_0x3e816b[_0x2c94f0('0x244e')]['length']&&_0x3e816b['getSugarcrmConfiguration'](0x0),_0x31166b[_0x2c94f0('0x19a5')][_0x2c94f0('0x22d5')]({'nolimit':!![],'sort':_0x2c94f0('0x2623')})[_0x2c94f0('0xe59')];})[_0x594b34('0xe19')](function(_0x45022d){var _0xb806a2=_0x594b34;_0x3e816b['variables']=_0x45022d['rows']?_0x45022d[_0xb806a2('0x16a7')]:[],_0x3e816b[_0xb806a2('0x27b3')]=_0x32d445()[_0xb806a2('0x226f')](_0x3e816b[_0xb806a2('0x1a9e')],'id');})['catch'](function(_0x4616b9){var _0x1af043=_0x594b34;_0x210e70['error']({'title':_0x4616b9[_0x1af043('0x2833')]?_0x1af043('0x27f2')+_0x4616b9[_0x1af043('0x2833')]+_0x1af043('0x1b7c')+_0x4616b9[_0x1af043('0x1fd7')]:_0x1af043('0xf5b'),'msg':_0x4616b9[_0x1af043('0x11d0')]?JSON[_0x1af043('0x3ad')](_0x4616b9['data']):_0x4616b9[_0x1af043('0x94f')]()});});}function _0x34738b(_0x317fe9){var _0x338d8a=_0x34437b;_0x3e816b[_0x338d8a('0x1d07')]=_0x3e816b[_0x338d8a('0x244e')][_0x317fe9],_0x3e816b[_0x338d8a('0xae0')]=_0x317fe9,_0x31166b[_0x338d8a('0x1284')][_0x338d8a('0xe77')]({'id':_0x3e816b[_0x338d8a('0x1d07')]['id']})[_0x338d8a('0xe59')][_0x338d8a('0xe19')](function(_0x18d783){var _0x1fcd27=_0x338d8a;return _0x3e816b[_0x1fcd27('0x126e')]=_0x18d783['rows']?_0x18d783['rows']:[],_0x31166b[_0x1fcd27('0x1284')]['getDescriptions']({'id':_0x3e816b[_0x1fcd27('0x1d07')]['id']})[_0x1fcd27('0xe59')];})[_0x338d8a('0xe19')](function(_0x556092){var _0x8533b4=_0x338d8a;return _0x3e816b[_0x8533b4('0xb9c')]=_0x556092[_0x8533b4('0x16a7')]?_0x556092[_0x8533b4('0x16a7')]:[],_0x31166b['intSugarcrmConfiguration']['getFields']({'id':_0x3e816b[_0x8533b4('0x1d07')]['id']})[_0x8533b4('0xe59')];})['then'](function(_0x341ceb){var _0x265ef8=_0x338d8a;_0x3e816b[_0x265ef8('0x1d17')]=_0x341ceb['rows']?_0x341ceb[_0x265ef8('0x16a7')]:[];})[_0x338d8a('0x223b')](function(_0x439f65){var _0x150890=_0x338d8a;_0x210e70[_0x150890('0x8c8')]({'title':_0x439f65[_0x150890('0x2833')]?_0x150890('0x27f2')+_0x439f65[_0x150890('0x2833')]+_0x150890('0x1b7c')+_0x439f65['statusText']:'SYSTEM:GETConfigurations','msg':_0x439f65[_0x150890('0x11d0')]?JSON[_0x150890('0x3ad')](_0x439f65['data']):_0x439f65[_0x150890('0x94f')]()});});}function _0x36c188(_0xe2016a,_0x216a1d){var _0x24a26b=_0x34437b;_0x271b83[_0x24a26b('0x26b2')]({'controller':_0x24a26b('0xa69'),'controllerAs':'vm','templateUrl':_0xe6f723,'parent':angular[_0x24a26b('0x24a1')](_0xee56a0['body']),'targetEvent':_0xe2016a,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x216a1d,'configurations':_0x3e816b[_0x24a26b('0x244e')],'license':null,'setting':null,'crudPermissions':_0x3e816b[_0x24a26b('0xb3d')]}})[_0x24a26b('0x23')](function(){_0x3e816b['getSugarcrmConfiguration'](0x0);});}function _0x22b867(_0xb75086,_0x166bfe){var _0x2acda4=_0x34437b,_0x11c6ea=_0x271b83[_0x2acda4('0xa5')]()[_0x2acda4('0x13e4')](_0x2acda4('0x550'))['htmlContent'](_0x2acda4('0xab2')+(_0x166bfe[_0x2acda4('0x2623')]||_0x2acda4('0x1d07'))+_0x2acda4('0x27bb')+_0x2acda4('0x21bd'))['ariaLabel'](_0x2acda4('0x1893'))['targetEvent'](_0xb75086)['ok']('OK')[_0x2acda4('0x2c1')](_0x2acda4('0x17'));_0x271b83[_0x2acda4('0x26b2')](_0x11c6ea)[_0x2acda4('0xe19')](function(){var _0x22ca7b=_0x2acda4;_0x31166b[_0x22ca7b('0x1284')][_0x22ca7b('0x229e')]({'id':_0x166bfe['id']})[_0x22ca7b('0xe59')][_0x22ca7b('0xe19')](function(){var _0x5dddf1=_0x22ca7b;_0x32d445()[_0x5dddf1('0xa8b')](_0x3e816b[_0x5dddf1('0x244e')],{'id':_0x166bfe['id']}),_0x210e70['success']({'title':_0x5dddf1('0xaf3'),'msg':_0x166bfe[_0x5dddf1('0x2623')]?_0x166bfe['name']+'\x20has\x20been\x20deleted!':''});})[_0x22ca7b('0x223b')](function(_0x219231){var _0x58f4a7=_0x22ca7b;_0x210e70[_0x58f4a7('0x8c8')]({'title':_0x219231[_0x58f4a7('0x2833')]?_0x58f4a7('0x27f2')+_0x219231[_0x58f4a7('0x2833')]+'\x20-\x20'+_0x219231[_0x58f4a7('0x1fd7')]:_0x58f4a7('0x127'),'msg':_0x219231[_0x58f4a7('0x11d0')]?JSON[_0x58f4a7('0x3ad')](_0x219231[_0x58f4a7('0x11d0')]):_0x219231[_0x58f4a7('0x94f')]()});})[_0x22ca7b('0x23')](function(){_0x3e816b['getSugarcrmConfiguration'](0x0);});},function(){var _0x50643f=_0x2acda4;console[_0x50643f('0x1fe9')](_0x50643f('0x17'));});}_0x3e816b['selectedSubjects']=[],_0x3e816b[_0x34437b('0x16b2')]=_0x3dd5c7,_0x3e816b['deleteSubjectConfirm']=_0x42b876,_0x3e816b['deleteSelectedSubjects']=_0x2f1a78;function _0x3dd5c7(_0x48ddeb,_0x2a957d){var _0x412c23=_0x34437b;_0x271b83[_0x412c23('0x26b2')]({'controller':_0x412c23('0x59b'),'controllerAs':'vm','templateUrl':_0x19a04b,'parent':angular[_0x412c23('0x24a1')](_0xee56a0[_0x412c23('0x19b2')]),'targetEvent':_0x48ddeb,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x2a957d,'items':_0x3e816b['subjects'],'configuration':_0x3e816b[_0x412c23('0x1d07')],'account':_0x3e816b[_0x412c23('0x5bf')],'license':null,'setting':null,'crudPermissions':_0x3e816b[_0x412c23('0xb3d')]}});}function _0x5dae95(_0x1adb39){var _0x50055b=_0x34437b;_0x31166b[_0x50055b('0x1096')][_0x50055b('0x229e')]({'id':_0x1adb39['id']})['$promise'][_0x50055b('0xe19')](function(){var _0x59e31b=_0x50055b;_0x32d445()['remove'](_0x3e816b['subjects'],{'id':_0x1adb39['id']}),_0x210e70[_0x59e31b('0x425')]({'title':_0x59e31b('0x191f'),'msg':_0x59e31b('0xae3')});})['catch'](function(_0x58cca7){var _0x3f4e03=_0x50055b;_0x210e70[_0x3f4e03('0x8c8')]({'title':_0x58cca7['status']?_0x3f4e03('0x27f2')+_0x58cca7[_0x3f4e03('0x2833')]+_0x3f4e03('0x1b7c')+_0x58cca7[_0x3f4e03('0x1fd7')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x58cca7[_0x3f4e03('0x11d0')]?JSON[_0x3f4e03('0x3ad')](_0x58cca7[_0x3f4e03('0x11d0')]):_0x58cca7['toString']()});});}function _0x42b876(_0x1c3d75,_0x40c3b2){var _0x14bcbc=_0x34437b,_0x2ce83d=_0x271b83[_0x14bcbc('0xa5')]()[_0x14bcbc('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x14bcbc('0x221c')](_0x14bcbc('0x5f9')+_0x14bcbc('0x21bd'))[_0x14bcbc('0x4d1')](_0x14bcbc('0x974'))[_0x14bcbc('0x1345')](_0x1c3d75)['ok']('OK')['cancel'](_0x14bcbc('0x17'));_0x271b83[_0x14bcbc('0x26b2')](_0x2ce83d)[_0x14bcbc('0xe19')](function(){_0x5dae95(_0x40c3b2);},function(){var _0x38bd0b=_0x14bcbc;console[_0x38bd0b('0x1fe9')](_0x38bd0b('0x17'));});}function _0x2f1a78(_0x198477){var _0x2993ca=_0x34437b,_0x3e5e43=_0x271b83[_0x2993ca('0xa5')]()[_0x2993ca('0x13e4')](_0x2993ca('0x232a'))['htmlContent'](_0x2993ca('0xab2')+_0x3e816b[_0x2993ca('0x2508')]['length']+_0x2993ca('0x5bc')+_0x2993ca('0x21bd'))['ariaLabel'](_0x2993ca('0xbc0'))[_0x2993ca('0x1345')](_0x198477)['ok']('OK')['cancel'](_0x2993ca('0x17'));_0x271b83[_0x2993ca('0x26b2')](_0x3e5e43)['then'](function(){var _0x4d2b1c=_0x2993ca;_0x3e816b[_0x4d2b1c('0x2508')][_0x4d2b1c('0x1d7e')](function(_0x308022){_0x5dae95(_0x308022);}),_0x3e816b[_0x4d2b1c('0x2508')]=[];});}_0x3e816b[_0x34437b('0x858')]=[],_0x3e816b[_0x34437b('0x2885')]=_0x138c24,_0x3e816b['deleteDescriptionConfirm']=_0x2b9fa0,_0x3e816b[_0x34437b('0xd2c')]=_0x2c98ad;function _0x138c24(_0xfb9a52,_0x41a6e3){var _0x12d241=_0x34437b;_0x271b83[_0x12d241('0x26b2')]({'controller':_0x12d241('0x59b'),'controllerAs':'vm','templateUrl':_0x19a04b,'parent':angular['element'](_0xee56a0['body']),'targetEvent':_0xfb9a52,'clickOutsideToClose':!![],'locals':{'type':_0x12d241('0x897'),'item':_0x41a6e3,'items':_0x3e816b[_0x12d241('0xb9c')],'configuration':_0x3e816b[_0x12d241('0x1d07')],'account':_0x3e816b[_0x12d241('0x5bf')],'license':null,'setting':null,'crudPermissions':_0x3e816b[_0x12d241('0xb3d')]}});}function _0x3f38b9(_0x427500){var _0x5962c9=_0x34437b;_0x31166b['intSugarcrmField'][_0x5962c9('0x229e')]({'id':_0x427500['id']})[_0x5962c9('0xe59')]['then'](function(){var _0x1e0cd0=_0x5962c9;_0x32d445()['remove'](_0x3e816b[_0x1e0cd0('0xb9c')],{'id':_0x427500['id']}),_0x210e70['success']({'title':_0x1e0cd0('0x1c52'),'msg':_0x1e0cd0('0x1139')});})['catch'](function(_0x5c7ada){var _0x3ab6f0=_0x5962c9;_0x210e70[_0x3ab6f0('0x8c8')]({'title':_0x5c7ada[_0x3ab6f0('0x2833')]?_0x3ab6f0('0x27f2')+_0x5c7ada[_0x3ab6f0('0x2833')]+_0x3ab6f0('0x1b7c')+_0x5c7ada[_0x3ab6f0('0x1fd7')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x5c7ada[_0x3ab6f0('0x11d0')]?JSON[_0x3ab6f0('0x3ad')](_0x5c7ada['data']):_0x5c7ada[_0x3ab6f0('0x94f')]()});});}function _0x2b9fa0(_0x1ab2bf,_0x5ce4d5){var _0x251aee=_0x34437b,_0x2fd13d=_0x271b83[_0x251aee('0xa5')]()[_0x251aee('0x13e4')](_0x251aee('0x1c50'))[_0x251aee('0x221c')](_0x251aee('0x11e1')+_0x251aee('0x21bd'))[_0x251aee('0x4d1')](_0x251aee('0x1dc0'))[_0x251aee('0x1345')](_0x1ab2bf)['ok']('OK')[_0x251aee('0x2c1')]('CANCEL');_0x271b83[_0x251aee('0x26b2')](_0x2fd13d)['then'](function(){_0x3f38b9(_0x5ce4d5);},function(){var _0x43a522=_0x251aee;console[_0x43a522('0x1fe9')](_0x43a522('0x17'));});}function _0x2c98ad(_0x19dbf1){var _0x4885bd=_0x34437b,_0x3c7085=_0x271b83[_0x4885bd('0xa5')]()[_0x4885bd('0x13e4')](_0x4885bd('0x23f4'))[_0x4885bd('0x221c')](''+_0x3e816b[_0x4885bd('0x858')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4885bd('0x162'))[_0x4885bd('0x1345')](_0x19dbf1)['ok']('OK')['cancel'](_0x4885bd('0x17'));_0x271b83[_0x4885bd('0x26b2')](_0x3c7085)['then'](function(){var _0x3e9b58=_0x4885bd;_0x3e816b[_0x3e9b58('0x858')]['forEach'](function(_0x191f51){_0x3f38b9(_0x191f51);}),_0x3e816b['selectedDescriptions']=[];});}_0x3e816b[_0x34437b('0xf97')]=[],_0x3e816b[_0x34437b('0x131')]=_0x152577,_0x3e816b[_0x34437b('0x2152')]=_0xdf64e5,_0x3e816b[_0x34437b('0xdfd')]=_0x1158ff;function _0x152577(_0x430a61,_0xfa0fb){var _0x261eb4=_0x34437b;_0x271b83[_0x261eb4('0x26b2')]({'controller':'CreateOrEditSugarcrmAccountItemDialogController','controllerAs':'vm','templateUrl':_0x19a04b,'parent':angular[_0x261eb4('0x24a1')](_0xee56a0[_0x261eb4('0x19b2')]),'targetEvent':_0x430a61,'clickOutsideToClose':!![],'locals':{'type':_0x261eb4('0x15d1'),'item':_0xfa0fb,'items':_0x3e816b['fields'],'configuration':_0x3e816b[_0x261eb4('0x1d07')],'account':_0x3e816b[_0x261eb4('0x5bf')],'license':null,'setting':null,'crudPermissions':_0x3e816b['crudPermissions']}});}function _0x227fea(_0x3a596d){var _0x2c7646=_0x34437b;_0x31166b[_0x2c7646('0x1096')][_0x2c7646('0x229e')]({'id':_0x3a596d['id']})['$promise'][_0x2c7646('0xe19')](function(){var _0xdf9eab=_0x2c7646;_0x32d445()[_0xdf9eab('0xa8b')](_0x3e816b[_0xdf9eab('0x1d17')],{'id':_0x3a596d['id']}),_0x210e70[_0xdf9eab('0x425')]({'title':_0xdf9eab('0x1e5d'),'msg':_0xdf9eab('0x21f5')});})[_0x2c7646('0x223b')](function(_0x1463b7){var _0xb9f328=_0x2c7646;_0x210e70[_0xb9f328('0x8c8')]({'title':_0x1463b7['status']?_0xb9f328('0x27f2')+_0x1463b7[_0xb9f328('0x2833')]+'\x20-\x20'+_0x1463b7['statusText']:_0xb9f328('0x1dde'),'msg':_0x1463b7[_0xb9f328('0x11d0')]?JSON[_0xb9f328('0x3ad')](_0x1463b7[_0xb9f328('0x11d0')]):_0x1463b7['toString']()});});}function _0xdf64e5(_0x5a0e0d,_0x33e78b){var _0x2afa5d=_0x34437b,_0x429647=_0x271b83[_0x2afa5d('0xa5')]()[_0x2afa5d('0x13e4')](_0x2afa5d('0x8b7'))[_0x2afa5d('0x221c')]('Field'+_0x2afa5d('0x21bd'))[_0x2afa5d('0x4d1')](_0x2afa5d('0x23f7'))[_0x2afa5d('0x1345')](_0x5a0e0d)['ok']('OK')[_0x2afa5d('0x2c1')]('CANCEL');_0x271b83[_0x2afa5d('0x26b2')](_0x429647)['then'](function(){_0x227fea(_0x33e78b);},function(){var _0x4d3e9f=_0x2afa5d;console[_0x4d3e9f('0x1fe9')](_0x4d3e9f('0x17'));});}function _0x1158ff(_0x39b713){var _0x5aecbe=_0x34437b,_0x2239b7=_0x271b83['confirm']()[_0x5aecbe('0x13e4')](_0x5aecbe('0x128c'))[_0x5aecbe('0x221c')](''+_0x3e816b['selectedFields'][_0x5aecbe('0x25ae')]+_0x5aecbe('0x5bc')+_0x5aecbe('0x21bd'))[_0x5aecbe('0x4d1')](_0x5aecbe('0x19c9'))['targetEvent'](_0x39b713)['ok']('OK')[_0x5aecbe('0x2c1')](_0x5aecbe('0x17'));_0x271b83[_0x5aecbe('0x26b2')](_0x2239b7)[_0x5aecbe('0xe19')](function(){var _0x3ea70f=_0x5aecbe;_0x3e816b[_0x3ea70f('0xf97')][_0x3ea70f('0x1d7e')](function(_0x1001c3){_0x227fea(_0x1001c3);}),_0x3e816b[_0x3ea70f('0xf97')]=[];});}}const _0x4a4e32=_0x310c69;_0x52c66e[_0xb635d2('0xb0c')]=['$scope','$state','$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'configurations',_0xb635d2('0x1d07'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x52c66e(_0x4c97db,_0xd20fd1,_0x21dcc7,_0x11c622,_0x34f100,_0x4050b8,_0x1e3d21,_0x5c9080,_0x16d2c5,_0x40ca72,_0xe984f5,_0x1dffd3,_0x104a5a,_0xeedffe){var _0x402a9b=_0xb635d2,_0x5c958b=this;_0x5c958b[_0x402a9b('0x15a5')]=_0xe984f5[_0x402a9b('0x1ef8')](),_0x5c958b[_0x402a9b('0xcd2')]=[],_0x5c958b[_0x402a9b('0x22f1')]=_0x104a5a,_0x5c958b['license']=_0x1dffd3,_0x5c958b[_0x402a9b('0xb3d')]=_0xeedffe,_0x5c958b[_0x402a9b('0x1ccb')]={},_0x5c958b[_0x402a9b('0x25ac')]=_0x5c958b[_0x402a9b('0x22f1')]&&_0x5c958b[_0x402a9b('0x22f1')][_0x402a9b('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c958b[_0x402a9b('0x13e4')]='INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION',_0x5c958b[_0x402a9b('0x1d07')]=angular[_0x402a9b('0x89')](_0x16d2c5),_0x5c958b['configurations']=_0x5c9080,_0x5c958b[_0x402a9b('0x25e4')]=![];!_0x5c958b['sugarcrmConfiguration']&&(_0x5c958b[_0x402a9b('0x1d07')]={'channel':_0x402a9b('0xe74'),'type':_0x402a9b('0x1a7a')},_0x5c958b['title']='INTEGRATIONS.NEW_SUGARCRMCONFIGURATION',_0x5c958b[_0x402a9b('0x25e4')]=!![]);_0x5c958b['addNewSugarcrmConfiguration']=_0x4c81ea,_0x5c958b[_0x402a9b('0x22ac')]=_0x1e89e3,_0x5c958b[_0x402a9b('0x1c67')]=_0x488112,_0x5c958b[_0x402a9b('0x2635')]=_0x262e2b,_0x5c958b['closeDialog']=_0x252849;function _0x4c81ea(){var _0x3be591=_0x402a9b;_0x5c958b[_0x3be591('0xcd2')]=[],_0x40ca72[_0x3be591('0x1429')][_0x3be591('0x2402')]({'id':_0xd20fd1[_0x3be591('0x2ef')]['id']},_0x5c958b[_0x3be591('0x1d07')])[_0x3be591('0xe59')][_0x3be591('0xe19')](function(_0xaa8656){var _0x18c403=_0x3be591;_0x5c958b[_0x18c403('0x244e')][_0x18c403('0x14c9')](_0xaa8656[_0x18c403('0x250e')]()),_0x1e3d21[_0x18c403('0x425')]({'title':_0x18c403('0x26f1'),'msg':_0x5c958b[_0x18c403('0x1d07')]['name']?_0x5c958b['sugarcrmConfiguration'][_0x18c403('0x2623')]+_0x18c403('0x105f'):''}),_0x252849(_0xaa8656);})[_0x3be591('0x223b')](function(_0x4b5cf7){var _0x3f0ff8=_0x3be591;if(_0x4b5cf7[_0x3f0ff8('0x11d0')]&&_0x4b5cf7[_0x3f0ff8('0x11d0')][_0x3f0ff8('0xcd2')]&&_0x4b5cf7[_0x3f0ff8('0x11d0')][_0x3f0ff8('0xcd2')][_0x3f0ff8('0x25ae')]){_0x5c958b[_0x3f0ff8('0xcd2')]=_0x4b5cf7[_0x3f0ff8('0x11d0')][_0x3f0ff8('0xcd2')]||[{'message':_0x4b5cf7['toString'](),'type':_0x3f0ff8('0x1f31')}];for(var _0x49ee15=0x0;_0x49ee15<_0x4b5cf7[_0x3f0ff8('0x11d0')][_0x3f0ff8('0xcd2')][_0x3f0ff8('0x25ae')];_0x49ee15+=0x1){_0x1e3d21[_0x3f0ff8('0x8c8')]({'title':_0x4b5cf7[_0x3f0ff8('0x11d0')][_0x3f0ff8('0xcd2')][_0x49ee15][_0x3f0ff8('0x62e')],'msg':_0x4b5cf7[_0x3f0ff8('0x11d0')][_0x3f0ff8('0xcd2')][_0x49ee15]['message']});}}else _0x1e3d21[_0x3f0ff8('0x8c8')]({'title':_0x4b5cf7['status']?_0x3f0ff8('0x27f2')+_0x4b5cf7[_0x3f0ff8('0x2833')]+_0x3f0ff8('0x1b7c')+_0x4b5cf7[_0x3f0ff8('0x1fd7')]:'api.intSugarcrmConfiguration.save','msg':_0x4b5cf7['data']?JSON[_0x3f0ff8('0x3ad')](_0x4b5cf7[_0x3f0ff8('0x11d0')][_0x3f0ff8('0x27e8')]):_0x4b5cf7[_0x3f0ff8('0x94f')]()});});}function _0x1e89e3(){var _0xe3d7d7=_0x402a9b;_0x5c958b['errors']=[],_0x40ca72[_0xe3d7d7('0x1284')][_0xe3d7d7('0xa70')]({'id':_0x5c958b['sugarcrmConfiguration']['id']},_0x5c958b['sugarcrmConfiguration'])[_0xe3d7d7('0xe59')][_0xe3d7d7('0xe19')](function(_0x4963a4){var _0xba6e5f=_0xe3d7d7,_0x1baf51=_0x32d445()[_0xba6e5f('0xf15')](_0x5c958b[_0xba6e5f('0x244e')],{'id':_0x4963a4['id']});_0x1baf51&&_0x32d445()[_0xba6e5f('0x1d8')](_0x1baf51,_0x32d445()[_0xba6e5f('0xed5')](_0x4963a4[_0xba6e5f('0x250e')](),_0x32d445()[_0xba6e5f('0x1234')](_0x1baf51))),_0x1e3d21[_0xba6e5f('0x425')]({'title':_0xba6e5f('0x1aa8'),'msg':_0x5c958b[_0xba6e5f('0x1d07')]['name']?_0x5c958b[_0xba6e5f('0x1d07')][_0xba6e5f('0x2623')]+_0xba6e5f('0x1c19'):''}),_0x252849(_0x4963a4);})[_0xe3d7d7('0x223b')](function(_0x458276){var _0x16745b=_0xe3d7d7;if(_0x458276[_0x16745b('0x11d0')]&&_0x458276[_0x16745b('0x11d0')]['errors']&&_0x458276['data'][_0x16745b('0xcd2')]['length']){_0x5c958b[_0x16745b('0xcd2')]=_0x458276['data'][_0x16745b('0xcd2')]||[{'message':_0x458276[_0x16745b('0x94f')](),'type':_0x16745b('0x1d3d')}];for(var _0x552c11=0x0;_0x552c11<_0x458276['data'][_0x16745b('0xcd2')][_0x16745b('0x25ae')];_0x552c11++){_0x1e3d21['error']({'title':_0x458276[_0x16745b('0x11d0')]['errors'][_0x552c11][_0x16745b('0x62e')],'msg':_0x458276[_0x16745b('0x11d0')][_0x16745b('0xcd2')][_0x552c11][_0x16745b('0x27e8')]});}}else _0x1e3d21['error']({'title':_0x458276['status']?_0x16745b('0x27f2')+_0x458276[_0x16745b('0x2833')]+'\x20-\x20'+_0x458276[_0x16745b('0x1fd7')]:_0x16745b('0x1d3d'),'msg':_0x458276[_0x16745b('0x11d0')]?JSON[_0x16745b('0x3ad')](_0x458276[_0x16745b('0x11d0')][_0x16745b('0x27e8')]):_0x458276[_0x16745b('0x94f')]()});});}function _0x488112(_0x37d70f){var _0x368b78=_0x402a9b;_0x5c958b[_0x368b78('0xcd2')]=[];var _0x3717b4=_0x11c622[_0x368b78('0xa5')]()['title']('Are\x20you\x20sure?')[_0x368b78('0xd0')](_0x368b78('0x1c58'))[_0x368b78('0x4d1')]('Delete\x20SugarcrmConfiguration')['ok'](_0x368b78('0x2198'))['cancel'](_0x368b78('0x8a3'))['targetEvent'](_0x37d70f);_0x11c622[_0x368b78('0x26b2')](_0x3717b4)[_0x368b78('0xe19')](function(){var _0x25d29b=_0x368b78;_0x40ca72['intSugarcrmConfiguration'][_0x25d29b('0x229e')]({'id':_0x5c958b['sugarcrmConfiguration']['id']})[_0x25d29b('0xe59')][_0x25d29b('0xe19')](function(){var _0x382e0f=_0x25d29b;_0x32d445()[_0x382e0f('0xa8b')](_0x5c958b[_0x382e0f('0x244e')],{'id':_0x5c958b[_0x382e0f('0x1d07')]['id']}),_0x1e3d21[_0x382e0f('0x425')]({'title':'SugarcrmConfiguration\x20properly\x20deleted!','msg':(_0x5c958b[_0x382e0f('0x1d07')][_0x382e0f('0x2623')]||'sugarcrmConfiguration')+'\x20has\x20been\x20deleted!'}),_0x252849(_0x5c958b[_0x382e0f('0x1d07')]);})[_0x25d29b('0x223b')](function(_0x191479){var _0x4c8e84=_0x25d29b;if(_0x191479[_0x4c8e84('0x11d0')]&&_0x191479[_0x4c8e84('0x11d0')]['errors']&&_0x191479[_0x4c8e84('0x11d0')][_0x4c8e84('0xcd2')][_0x4c8e84('0x25ae')]){_0x5c958b[_0x4c8e84('0xcd2')]=_0x191479[_0x4c8e84('0x11d0')]['errors']||[{'message':_0x191479[_0x4c8e84('0x94f')](),'type':_0x4c8e84('0x3f7')}];for(var _0x27d784=0x0;_0x27d784<_0x191479[_0x4c8e84('0x11d0')][_0x4c8e84('0xcd2')]['length'];_0x27d784++){_0x1e3d21[_0x4c8e84('0x8c8')]({'title':_0x191479[_0x4c8e84('0x11d0')][_0x4c8e84('0xcd2')][_0x27d784][_0x4c8e84('0x62e')],'msg':_0x191479[_0x4c8e84('0x11d0')][_0x4c8e84('0xcd2')][_0x27d784]['message']});}}else _0x1e3d21['error']({'title':_0x191479[_0x4c8e84('0x2833')]?_0x4c8e84('0x27f2')+_0x191479[_0x4c8e84('0x2833')]+_0x4c8e84('0x1b7c')+_0x191479[_0x4c8e84('0x1fd7')]:_0x4c8e84('0x3f7'),'msg':_0x191479['data']?JSON[_0x4c8e84('0x3ad')](_0x191479[_0x4c8e84('0x11d0')]['message']):_0x191479['message']||_0x191479[_0x4c8e84('0x94f')]()});});},function(){});}function _0x262e2b(_0x42286c){return _0x42286c===null?undefined:new Date(_0x42286c);}function _0x252849(_0x466b82){var _0x58a7c6=_0x402a9b;_0x11c622[_0x58a7c6('0x11ed')](_0x466b82);}}const _0x463eac=_0x52c66e;_0x451304[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'toasty',_0xb635d2('0x271e'),_0xb635d2('0xe4b'),_0xb635d2('0xdbb'),'account',_0xb635d2('0x62e'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0xb3d')];function _0x451304(_0x2957c6,_0xb20187,_0x280185,_0x7e7d59,_0x20909a,_0x339f05,_0x24ac4d,_0x571262,_0x209193,_0x873c14,_0x2cce8f,_0x334652,_0x301755){var _0x5f1e18=_0xb635d2,_0x21e8de=this;_0x21e8de[_0x5f1e18('0x15a5')]=_0x334652[_0x5f1e18('0x1ef8')](),_0x21e8de[_0x5f1e18('0xcd2')]=[],_0x21e8de['title']=_0x5f1e18('0x53c')+_0x32d445()['toUpper'](_0x873c14),_0x21e8de[_0x5f1e18('0xdbb')]=angular[_0x5f1e18('0x89')](_0x571262),_0x21e8de['items']=_0x24ac4d,_0x21e8de[_0x5f1e18('0x62e')]=_0x873c14,_0x21e8de[_0x5f1e18('0xb3d')]=_0x301755,_0x21e8de[_0x5f1e18('0xa3')]=![];!_0x21e8de[_0x5f1e18('0xdbb')]&&(_0x21e8de[_0x5f1e18('0xdbb')]={'type':'string'},_0x21e8de['item'][_0x32d445()['capitalize'](_0x873c14)+'Id']=_0x339f05['id'],_0x21e8de[_0x5f1e18('0x13e4')]=_0x5f1e18('0x7e2')+_0x32d445()[_0x5f1e18('0xcbc')](_0x873c14),_0x21e8de[_0x5f1e18('0xa3')]=!![]);_0x21e8de[_0x5f1e18('0x9ca')]=_0x52b270,_0x21e8de[_0x5f1e18('0x1384')]=_0x3734d0,_0x21e8de[_0x5f1e18('0xc32')]=_0x57709e,_0x21e8de['getSelectedVariable']=_0x412a4f,_0x21e8de[_0x5f1e18('0x2584')]=_0x1a9560,_0x2cce8f[_0x5f1e18('0x19a5')]['get']({'nolimit':!![]})['$promise'][_0x5f1e18('0xe19')](function(_0x55cbc8){var _0x5a4965=_0x5f1e18;return _0x21e8de[_0x5a4965('0x1a9e')]=_0x55cbc8['rows']?_0x55cbc8[_0x5a4965('0x16a7')]:[],_0x2cce8f['voiceAgentReport'][_0x5a4965('0x215e')]()[_0x5a4965('0xe59')];})[_0x5f1e18('0xe19')](function(_0x555be3){var _0x331ae5=_0x5f1e18;return _0x21e8de[_0x331ae5('0x1230')]=_0x32d445()[_0x331ae5('0x11d3')](_0x32d445()['keys'](_0x555be3),[_0x331ae5('0xe59'),'$resolved',_0x331ae5('0x15c9'),_0x331ae5('0x1ce9'),_0x331ae5('0x1bea')]),_0x21e8de[_0x331ae5('0x1230')][_0x331ae5('0xb76')](_0x331ae5('0xeaa')),_0x2cce8f[_0x331ae5('0xa4e')]['describe']()[_0x331ae5('0xe59')];})[_0x5f1e18('0xe19')](function(_0xe2ca76){var _0xa9a3f6=_0x5f1e18;_0x21e8de['voiceDialReportColumns']=_0x32d445()[_0xa9a3f6('0x11d3')](_0x32d445()[_0xa9a3f6('0x1234')](_0xe2ca76),[_0xa9a3f6('0xe59'),_0xa9a3f6('0x113c'),'createdAt',_0xa9a3f6('0x1ce9'),_0xa9a3f6('0x1bea')]),_0x21e8de[_0xa9a3f6('0x9f9')]['push'](_0xa9a3f6('0xeaa'));})[_0x5f1e18('0x223b')](function(_0x1b108c){var _0x3c7b00=_0x5f1e18;_0x20909a[_0x3c7b00('0x8c8')]({'title':_0x1b108c[_0x3c7b00('0x2833')]?_0x3c7b00('0x27f2')+_0x1b108c[_0x3c7b00('0x2833')]+_0x3c7b00('0x1b7c')+_0x1b108c[_0x3c7b00('0x1fd7')]:'SYSTEM:GETVARIABLES','msg':_0x1b108c[_0x3c7b00('0x11d0')]?JSON['stringify'](_0x1b108c[_0x3c7b00('0x11d0')]):_0x1b108c[_0x3c7b00('0x94f')]()});}),_0x2cce8f['intSugarcrmAccount'][_0x5f1e18('0x23f8')]({'id':_0x209193['id'],'ticketType':_0x339f05[_0x5f1e18('0x11d2')]?_0x339f05[_0x5f1e18('0x11d2')]:undefined})[_0x5f1e18('0xe59')]['then'](function(_0x44cfc5){var _0xbe44d5=_0x5f1e18;_0x21e8de[_0xbe44d5('0xbba')]=!![],_0x21e8de['fields']=_0x44cfc5[_0xbe44d5('0x16a7')]?_0x44cfc5['rows']:[],_0x21e8de['item'][_0xbe44d5('0x1c96')]&&(_0x21e8de[_0xbe44d5('0x1129')]=_0x32d445()[_0xbe44d5('0xf15')](_0x21e8de[_0xbe44d5('0x1d17')],{'id':_0x21e8de['item'][_0xbe44d5('0x1c96')]}));})['catch'](function(_0x3d2f80){var _0x3a108b=_0x5f1e18;_0x21e8de[_0x3a108b('0xbba')]=![],console[_0x3a108b('0x8c8')](_0x3d2f80);});function _0x52b270(){var _0x245af8=_0x5f1e18;_0x21e8de[_0x245af8('0xcd2')]=[],_0x21e8de[_0x245af8('0x1129')]&&(_0x21e8de['item'][_0x245af8('0x1c96')]=_0x21e8de[_0x245af8('0x1129')]['id'],_0x21e8de['item']['nameField']=_0x21e8de[_0x245af8('0x1129')][_0x245af8('0x2623')],_0x21e8de[_0x245af8('0xdbb')][_0x245af8('0x1129')]=_0x21e8de[_0x245af8('0x1129')][_0x245af8('0x261d')]),_0x2cce8f[_0x245af8('0x1096')]['save'](_0x21e8de[_0x245af8('0xdbb')])[_0x245af8('0xe59')][_0x245af8('0xe19')](function(_0x5278f2){var _0x1eb5ff=_0x245af8;_0x21e8de[_0x1eb5ff('0xe4b')][_0x1eb5ff('0x14c9')](_0x5278f2),_0x20909a[_0x1eb5ff('0x425')]({'title':_0x32d445()['capitalize'](_0x873c14)+_0x1eb5ff('0xf04'),'msg':_0x32d445()[_0x1eb5ff('0xbf6')](_0x873c14)+'\x20has\x20been\x20created!'}),_0x1a9560();})[_0x245af8('0x223b')](function(_0x2f36e2){var _0x3240d0=_0x245af8;console[_0x3240d0('0x8c8')](_0x2f36e2),_0x21e8de[_0x3240d0('0xcd2')]=_0x2f36e2[_0x3240d0('0x11d0')][_0x3240d0('0xcd2')]||[{'message':_0x2f36e2[_0x3240d0('0x94f')](),'type':'api.item.save'}];});}function _0x3734d0(){var _0x3a18f1=_0x5f1e18;_0x21e8de['errors']=[],_0x21e8de[_0x3a18f1('0x1129')]&&(_0x21e8de['item'][_0x3a18f1('0x1c96')]=_0x21e8de[_0x3a18f1('0x1129')]['id'],_0x21e8de[_0x3a18f1('0xdbb')][_0x3a18f1('0x99e')]=_0x21e8de['customField'][_0x3a18f1('0x2623')],_0x21e8de[_0x3a18f1('0xdbb')][_0x3a18f1('0x1129')]=_0x21e8de['customField'][_0x3a18f1('0x261d')]),_0x2cce8f[_0x3a18f1('0x1096')][_0x3a18f1('0xa70')]({'id':_0x21e8de[_0x3a18f1('0xdbb')]['id']},_0x21e8de[_0x3a18f1('0xdbb')])[_0x3a18f1('0xe59')][_0x3a18f1('0xe19')](function(_0x1cb722){var _0x465bc6=_0x3a18f1,_0x11ff1c=_0x32d445()[_0x465bc6('0xf15')](_0x21e8de[_0x465bc6('0xe4b')],{'id':_0x1cb722['id']});_0x11ff1c&&_0x32d445()[_0x465bc6('0x1d8')](_0x11ff1c,_0x1cb722),_0x20909a[_0x465bc6('0x425')]({'title':_0x32d445()['capitalize'](_0x873c14)+_0x465bc6('0xdaf'),'msg':_0x32d445()[_0x465bc6('0xbf6')](_0x873c14)+_0x465bc6('0x1c19')}),_0x1a9560();})[_0x3a18f1('0x223b')](function(_0x1f78b9){var _0x5e0d36=_0x3a18f1;console[_0x5e0d36('0x8c8')](_0x1f78b9),_0x21e8de['errors']=_0x1f78b9[_0x5e0d36('0x11d0')][_0x5e0d36('0xcd2')]||[{'message':_0x1f78b9[_0x5e0d36('0x94f')](),'type':_0x5e0d36('0x2134')}];});}function _0x57709e(_0x4b18db){var _0x5f04c3=_0x5f1e18;_0x21e8de[_0x5f04c3('0xcd2')]=[];var _0x512a94=_0x7e7d59[_0x5f04c3('0xa5')]()[_0x5f04c3('0x13e4')]('Are\x20you\x20sure?')[_0x5f04c3('0xd0')]('The\x20'+_0x873c14+_0x5f04c3('0x21bd'))[_0x5f04c3('0x4d1')](_0x5f04c3('0x13de')+_0x32d445()[_0x5f04c3('0xbf6')](_0x873c14))['ok'](_0x5f04c3('0x2198'))[_0x5f04c3('0x2c1')]('Cancel')['targetEvent'](_0x4b18db);_0x7e7d59[_0x5f04c3('0x26b2')](_0x512a94)[_0x5f04c3('0xe19')](function(){var _0x37f0ad=_0x5f04c3;_0x2cce8f[_0x37f0ad('0x1096')][_0x37f0ad('0x229e')]({'id':_0x21e8de[_0x37f0ad('0xdbb')]['id']})['$promise'][_0x37f0ad('0xe19')](function(){var _0x322f05=_0x37f0ad;_0x32d445()[_0x322f05('0xa8b')](_0x21e8de[_0x322f05('0xe4b')],{'id':_0x21e8de[_0x322f05('0xdbb')]['id']}),_0x20909a[_0x322f05('0x425')]({'title':_0x32d445()[_0x322f05('0xbf6')](_0x873c14)+_0x322f05('0x1ddc'),'msg':_0x32d445()[_0x322f05('0xbf6')](_0x873c14)+'\x20has\x20been\x20deleted!'}),_0x1a9560();})[_0x37f0ad('0x223b')](function(_0x335989){var _0x458182=_0x37f0ad;console[_0x458182('0x8c8')](_0x335989),_0x21e8de['errors']=_0x335989[_0x458182('0x11d0')][_0x458182('0xcd2')]||[{'message':_0x335989[_0x458182('0x94f')](),'type':_0x458182('0x2272')}];});},function(){});}function _0x412a4f(){var _0x80ab0b=_0x5f1e18;return _0x21e8de['item'][_0x80ab0b('0x17b')]!==undefined?_0x21e8de[_0x80ab0b('0xdbb')]['variableName']:_0x80ab0b('0xc');}function _0x1a9560(){var _0x32954e=_0x5f1e18;_0x7e7d59[_0x32954e('0x11ed')]();}}const _0x2c078e=_0x451304;_0x536028[_0xb635d2('0xb0c')]=['$state','$location',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$translate',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'api',_0xb635d2('0xf65'),'Auth','sugarcrmAccount','userProfileSection'];function _0x536028(_0x34cc0a,_0xf36b85,_0x465976,_0x538598,_0x11bc80,_0x32f8f0,_0x2ae3b8,_0x3a7af8,_0x241fbb,_0x40091f,_0x126c17,_0x359750){var _0xcd0c22=_0xb635d2,_0x361e8a=this;_0x361e8a[_0xcd0c22('0x15a5')]=_0x40091f[_0xcd0c22('0x1ef8')](),_0x361e8a[_0xcd0c22('0x5c1')]=_0x32f8f0,_0x361e8a[_0xcd0c22('0x22f1')]=_0x2ae3b8,_0x361e8a[_0xcd0c22('0x25ac')]=_0x361e8a[_0xcd0c22('0x22f1')][_0xcd0c22('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x361e8a[_0xcd0c22('0x2170')]=_0xf36b85[_0xcd0c22('0xec0')]()+'://'+_0xf36b85[_0xcd0c22('0x3b7')](),_0x361e8a['sugarcrmAccount']=_0x126c17||_0x34cc0a[_0xcd0c22('0x2ef')][_0xcd0c22('0x5bf')]||{},_0x361e8a[_0xcd0c22('0xb59')]=_0x359750&&_0x359750[_0xcd0c22('0x148b')]==0x1?_0x359750[_0xcd0c22('0x16a7')][0x0]:null,_0x361e8a[_0xcd0c22('0xb3d')]=_0x40091f[_0xcd0c22('0xd31')](_0x361e8a[_0xcd0c22('0xb59')]?_0x361e8a['userProfileSection'][_0xcd0c22('0xb3d')]:null),_0x361e8a[_0xcd0c22('0x1ccb')]={},_0x361e8a[_0xcd0c22('0xc7b')]=_0x34cc0a[_0xcd0c22('0x2ef')][_0xcd0c22('0x435')]||0x0,_0x361e8a[_0xcd0c22('0xbdc')]=_0x241fbb[_0xcd0c22('0x1e67')],_0x361e8a[_0xcd0c22('0xd9')]=_0x2d2f11,_0x361e8a[_0xcd0c22('0x1664')]=_0x2f2b1c;function _0x2d2f11(){var _0x1eb5f5=_0xcd0c22;_0x34cc0a['go']('app.integrations.sugarcrmAccounts',{},{'reload':_0x1eb5f5('0xbca')});}function _0x2f2b1c(){var _0x46358e=_0xcd0c22;_0x3a7af8['intSugarcrmAccount']['update']({'id':_0x361e8a[_0x46358e('0x5bf')]['id']},_0x361e8a[_0x46358e('0x5bf')])[_0x46358e('0xe59')]['then'](function(){var _0x598d87=_0x46358e;_0x241fbb['success']({'title':_0x598d87('0x1521'),'msg':_0x361e8a[_0x598d87('0x5bf')][_0x598d87('0x2623')]?_0x361e8a[_0x598d87('0x5bf')][_0x598d87('0x2623')]+_0x598d87('0x283b'):''});})['catch'](function(_0x3eea55){var _0x3c0e49=_0x46358e;_0x241fbb['error']({'title':_0x3eea55[_0x3c0e49('0x2833')]?_0x3c0e49('0x27f2')+_0x3eea55[_0x3c0e49('0x2833')]+'\x20-\x20'+_0x3eea55[_0x3c0e49('0x1fd7')]:_0x3c0e49('0x11b1'),'msg':_0x3eea55[_0x3c0e49('0x11d0')]?JSON[_0x3c0e49('0x3ad')](_0x3eea55[_0x3c0e49('0x11d0')]):_0x3eea55[_0x3c0e49('0x94f')]()});});}}const _0x2f2756=_0x536028,_0x1a924c=_0x59426a['p']+_0xb635d2('0x1aa');_0xfd44be[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),'$mdDialog','$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x1d32'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0xfd44be(_0x2008f4,_0x284795,_0x40879c,_0x325610,_0x505d9f,_0x1d78f6,_0x59b87e,_0x34ff6f,_0x4f0579,_0x29e56e,_0x569abe,_0x643b31,_0x123706,_0x1df41f,_0x2b5d33,_0x3debcd,_0x452f47){var _0x2a2c2a=_0xb635d2,_0x5e2e67=this;_0x5e2e67['license']=_0x3debcd,_0x5e2e67[_0x2a2c2a('0x22f1')]=_0x452f47,_0x5e2e67[_0x2a2c2a('0x15a5')]=_0x2b5d33['getCurrentUser'](),_0x5e2e67[_0x2a2c2a('0x1d32')]=_0x4f0579||{'count':0x0,'rows':[]},_0x5e2e67[_0x2a2c2a('0x154f')]=_0x29e56e,_0x5e2e67[_0x2a2c2a('0xb59')]=_0x569abe&&_0x569abe[_0x2a2c2a('0x148b')]==0x1?_0x569abe['rows'][0x0]:null,_0x5e2e67[_0x2a2c2a('0xb3d')]=_0x2b5d33['parseCrudPermissions'](_0x5e2e67[_0x2a2c2a('0xb59')]?_0x5e2e67['userProfileSection'][_0x2a2c2a('0xb3d')]:null),_0x5e2e67['table']=_0x2a2c2a('0x1d32'),_0x5e2e67['listOrder']='',_0x5e2e67[_0x2a2c2a('0x190c')]=null,_0x5e2e67[_0x2a2c2a('0xc42')]=[],_0x5e2e67['query']={'fields':_0x2a2c2a('0x1447'),'limit':0xa,'page':0x1},_0x5e2e67[_0x2a2c2a('0x16a0')]=_0x1fe1bc,_0x5e2e67['testtestintegrationaccount']=_0x4b30d3,_0x5e2e67[_0x2a2c2a('0x1d9e')]=_0x7674ae,_0x5e2e67[_0x2a2c2a('0x425')]=_0x36fccc,_0x5e2e67[_0x2a2c2a('0xb73')]=_0x1b7613,_0x5e2e67[_0x2a2c2a('0x2169')]=_0x5062f6,_0x5e2e67[_0x2a2c2a('0x267e')]=_0x34d336,_0x5e2e67['exportSelectedSugarcrmAccounts']=_0x1878ee,_0x5e2e67[_0x2a2c2a('0x26ca')]=_0x5b9241,_0x5e2e67[_0x2a2c2a('0xd0e')]=_0x177ac5,_0x5e2e67[_0x2a2c2a('0xfcb')]=_0x339c40;function _0x1fe1bc(_0x4299f0){var _0x1e0edb=_0x2a2c2a;_0x40879c['go']('app.integrations.sugarcrmAccounts.edit',{'id':_0x4299f0['id'],'sugarcrmAccount':_0x4299f0,'crudPermissions':_0x5e2e67[_0x1e0edb('0xb3d')]});}function _0x4b30d3(_0x1773bf){var _0x3d43cf=_0x2a2c2a;return _0x643b31[_0x3d43cf('0x1429')][_0x3d43cf('0x23f8')]({'id':_0x1773bf['id'],'test':!![]})[_0x3d43cf('0xe59')][_0x3d43cf('0xe19')](function(){var _0xe3a31d=_0x3d43cf;_0x1df41f[_0xe3a31d('0x425')]({'title':_0xe3a31d('0x212c'),'msg':_0xe3a31d('0xd96')});})['catch'](function(_0x575a5c){var _0x3f0f22=_0x3d43cf;_0x1df41f[_0x3f0f22('0x8c8')]({'title':_0x3f0f22('0x212c'),'msg':_0x575a5c[_0x3f0f22('0x11d0')]?_0x575a5c[_0x3f0f22('0x11d0')]['message']?_0x575a5c[_0x3f0f22('0x11d0')][_0x3f0f22('0x27e8')]:JSON['stringify'](_0x575a5c[_0x3f0f22('0x11d0')]):_0x575a5c[_0x3f0f22('0x94f')]()});});}function _0x7674ae(_0x49788f,_0x3944ed){var _0x3b7dd4=_0x2a2c2a,_0x1890c0=_0x505d9f[_0x3b7dd4('0xa5')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x32d445()['startCase']('sugarcrmAccount')+'?')[_0x3b7dd4('0x221c')](_0x3b7dd4('0xab2')+(_0x49788f['name']||'sugarcrmAccount')+_0x3b7dd4('0x27bb')+_0x3b7dd4('0x21bd'))[_0x3b7dd4('0x4d1')]('delete\x20sugarcrmAccount')[_0x3b7dd4('0x1345')](_0x3944ed)['ok']('OK')[_0x3b7dd4('0x2c1')](_0x3b7dd4('0x17'));_0x505d9f['show'](_0x1890c0)[_0x3b7dd4('0xe19')](function(){_0x34d336(_0x49788f);},function(){var _0x3dd0ed=_0x3b7dd4;console[_0x3dd0ed('0x1fe9')]('CANCEL');});}var _0x18613b=!![],_0x36cdbf=0x1;_0x2008f4[_0x2a2c2a('0x107')]('vm.query.filter',function(_0x397524,_0x442c99){var _0x1a7626=_0x2a2c2a;_0x18613b?_0x59b87e(function(){_0x18613b=![];}):(!_0x442c99&&(_0x36cdbf=_0x5e2e67[_0x1a7626('0xa16')]['page']),_0x397524!==_0x442c99&&(_0x5e2e67[_0x1a7626('0xa16')]['page']=0x1),!_0x397524&&(_0x5e2e67[_0x1a7626('0xa16')][_0x1a7626('0xc08')]=_0x36cdbf),_0x5e2e67[_0x1a7626('0xb73')]());});function _0x36fccc(_0x4e7090){var _0x36d671=_0x2a2c2a;_0x5e2e67[_0x36d671('0x1d32')]=_0x4e7090||{'count':0x0,'rows':[]};}function _0x1b7613(){var _0x160374=_0x2a2c2a;_0x5e2e67[_0x160374('0xa16')]['offset']=(_0x5e2e67[_0x160374('0xa16')][_0x160374('0xc08')]-0x1)*_0x5e2e67['query'][_0x160374('0x1b6d')],_0x2b5d33[_0x160374('0x179e')]('admin')?_0x5e2e67[_0x160374('0x9c8')]=_0x643b31[_0x160374('0x1429')]['get'](_0x5e2e67[_0x160374('0xa16')],_0x36fccc)['$promise']:(_0x5e2e67[_0x160374('0xa16')]['id']=_0x5e2e67[_0x160374('0x154f')]['id'],_0x5e2e67['query'][_0x160374('0x1e59')]=_0x160374('0x19ac'),_0x5e2e67[_0x160374('0x9c8')]=_0x643b31[_0x160374('0x154f')][_0x160374('0x14e6')](_0x5e2e67[_0x160374('0xa16')],_0x36fccc)[_0x160374('0xe59')]);}function _0x5062f6(_0x29e3c3,_0x22f6f3){var _0x546e0e=_0x2a2c2a;_0x505d9f[_0x546e0e('0x26b2')]({'controller':_0x546e0e('0x1fb7'),'controllerAs':'vm','templateUrl':_0x1a924c,'parent':angular[_0x546e0e('0x24a1')](_0x1d78f6[_0x546e0e('0x19b2')]),'targetEvent':_0x29e3c3,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0x22f6f3,'sugarcrmAccounts':_0x5e2e67[_0x546e0e('0x1d32')][_0x546e0e('0x16a7')],'license':_0x5e2e67[_0x546e0e('0x5c1')],'setting':_0x5e2e67[_0x546e0e('0x22f1')],'crudPermissions':_0x5e2e67[_0x546e0e('0xb3d')]}});}function _0x34d336(_0x4c3c44){var _0x2e2112=_0x2a2c2a;_0x643b31[_0x2e2112('0x1429')][_0x2e2112('0x229e')]({'id':_0x4c3c44['id']})['$promise'][_0x2e2112('0xe19')](function(){var _0x14fc41=_0x2e2112;_0x32d445()['remove'](_0x5e2e67['sugarcrmAccounts'][_0x14fc41('0x16a7')],{'id':_0x4c3c44['id']}),_0x5e2e67[_0x14fc41('0x1d32')]['count']-=0x1,!_0x5e2e67[_0x14fc41('0x1d32')]['rows'][_0x14fc41('0x25ae')]&&_0x5e2e67[_0x14fc41('0xb73')](),_0x1df41f[_0x14fc41('0x425')]({'title':_0x32d445()[_0x14fc41('0x1df2')](_0x14fc41('0x15cc'))+_0x14fc41('0x1219'),'msg':_0x4c3c44[_0x14fc41('0x2623')]?_0x4c3c44[_0x14fc41('0x2623')]+_0x14fc41('0x2182'):''});})[_0x2e2112('0x223b')](function(_0x11ed41){var _0xafbd51=_0x2e2112;if(_0x11ed41[_0xafbd51('0x11d0')]&&_0x11ed41[_0xafbd51('0x11d0')][_0xafbd51('0xcd2')]&&_0x11ed41[_0xafbd51('0x11d0')]['errors'][_0xafbd51('0x25ae')]){_0x5e2e67['errors']=_0x11ed41[_0xafbd51('0x11d0')][_0xafbd51('0xcd2')]||[{'message':_0x11ed41['toString'](),'type':_0xafbd51('0xb09')}];for(var _0x2952dc=0x0;_0x2952dc<_0x11ed41[_0xafbd51('0x11d0')]['errors']['length'];_0x2952dc++){_0x1df41f[_0xafbd51('0x8c8')]({'title':_0x11ed41[_0xafbd51('0x11d0')][_0xafbd51('0xcd2')][_0x2952dc]['type'],'msg':_0x11ed41[_0xafbd51('0x11d0')][_0xafbd51('0xcd2')][_0x2952dc][_0xafbd51('0x27e8')]});}}else _0x1df41f[_0xafbd51('0x8c8')]({'title':_0x11ed41[_0xafbd51('0x2833')]?'API:'+_0x11ed41[_0xafbd51('0x2833')]+_0xafbd51('0x1b7c')+_0x11ed41[_0xafbd51('0x1fd7')]:'SYSTEM:DELETEintSugarcrmAccount','msg':_0x11ed41[_0xafbd51('0x11d0')]?JSON[_0xafbd51('0x3ad')](_0x11ed41[_0xafbd51('0x11d0')][_0xafbd51('0x27e8')]):_0x11ed41[_0xafbd51('0x27e8')]||_0x11ed41[_0xafbd51('0x94f')]()});});}function _0x1878ee(){var _0x16eda3=_0x2a2c2a,_0x2521cb=angular['copy'](_0x5e2e67[_0x16eda3('0xc42')]);return _0x5e2e67['selectedSugarcrmAccounts']=[],_0x2521cb;}function _0x5b9241(_0x4568f2){var _0x4878da=_0x2a2c2a,_0x45a9ca=_0x505d9f[_0x4878da('0xa5')]()['title'](_0x4878da('0x1299'))['htmlContent'](''+_0x5e2e67[_0x4878da('0xc42')][_0x4878da('0x25ae')]+_0x4878da('0x5bc')+_0x4878da('0x21bd'))[_0x4878da('0x4d1')](_0x4878da('0xf02'))['targetEvent'](_0x4568f2)['ok']('OK')['cancel'](_0x4878da('0x17'));_0x505d9f[_0x4878da('0x26b2')](_0x45a9ca)[_0x4878da('0xe19')](function(){var _0x13cb21=_0x4878da;_0x5e2e67[_0x13cb21('0xc42')][_0x13cb21('0x1d7e')](function(_0x49d07d){_0x34d336(_0x49d07d);}),_0x5e2e67[_0x13cb21('0xc42')]=[];});}function _0x177ac5(){var _0x5aca92=_0x2a2c2a;_0x5e2e67[_0x5aca92('0xc42')]=[];}function _0x339c40(){var _0xe96cdd=_0x2a2c2a;_0x5e2e67[_0xe96cdd('0xc42')]=_0x5e2e67[_0xe96cdd('0x1d32')][_0xe96cdd('0x16a7')];}}const _0x5d7a4c=_0xfd44be;_0x3891fa['$inject']=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x2302'),'vtigerAccount','api','Auth',_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x3891fa(_0x119ca1,_0xa86d85,_0x5a66aa,_0x1a3c8a,_0x303450,_0x253cd1,_0x1b2a7c,_0x1f3d2d,_0x4a1545,_0x1b7edc,_0x508ba1,_0x622501,_0x34d0a5,_0x5579a3){var _0x21ae2a=_0xb635d2,_0x585f29=this;_0x585f29[_0x21ae2a('0x15a5')]=_0x508ba1[_0x21ae2a('0x1ef8')](),_0x585f29[_0x21ae2a('0xcd2')]=[],_0x585f29[_0x21ae2a('0x22f1')]=_0x34d0a5,_0x585f29['license']=_0x622501,_0x585f29['crudPermissions']=_0x5579a3,_0x585f29[_0x21ae2a('0x1ccb')]={},_0x585f29[_0x21ae2a('0x25ac')]=_0x585f29['setting']&&_0x585f29[_0x21ae2a('0x22f1')][_0x21ae2a('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x585f29[_0x21ae2a('0x13e4')]='INTEGRATIONS.EDIT_VTIGERACCOUNT',_0x585f29[_0x21ae2a('0x3a7')]=angular['copy'](_0x4a1545),_0x585f29[_0x21ae2a('0x2302')]=_0x1f3d2d,_0x585f29[_0x21ae2a('0x18b2')]=![];!_0x585f29[_0x21ae2a('0x3a7')]&&(_0x585f29[_0x21ae2a('0x3a7')]={'serverUrl':_0x5a66aa[_0x21ae2a('0xec0')]()+_0x21ae2a('0x21a8')+_0x5a66aa[_0x21ae2a('0x3b7')]()+(_0x5a66aa['port']()?':'+_0x5a66aa[_0x21ae2a('0x11dc')]():'')},_0x585f29[_0x21ae2a('0x13e4')]='INTEGRATIONS.NEW_VTIGERACCOUNT',_0x585f29[_0x21ae2a('0x18b2')]=!![]);_0x585f29[_0x21ae2a('0x22cd')]=_0x12400e,_0x585f29['saveVtigerAccount']=_0x5812e4,_0x585f29['deleteVtigerAccount']=_0x3004e2,_0x585f29[_0x21ae2a('0x2635')]=_0x4d0300,_0x585f29[_0x21ae2a('0x2584')]=_0x3bf1a4;function _0x12400e(){var _0x2e15a6=_0x21ae2a;_0x585f29['errors']=[],_0x1b7edc['intVtigerAccount'][_0x2e15a6('0xe5e')](_0x585f29[_0x2e15a6('0x3a7')])[_0x2e15a6('0xe59')]['then'](function(_0x14f487){var _0x15c2d4=_0x2e15a6;_0x585f29[_0x15c2d4('0x2302')]['unshift'](_0x14f487[_0x15c2d4('0x250e')]()),_0x1b2a7c[_0x15c2d4('0x425')]({'title':'VtigerAccount\x20properly\x20created','msg':_0x585f29[_0x15c2d4('0x3a7')][_0x15c2d4('0x2623')]?_0x585f29[_0x15c2d4('0x3a7')]['name']+_0x15c2d4('0x105f'):''}),_0x3bf1a4(_0x14f487);})[_0x2e15a6('0x223b')](function(_0x13b79c){var _0x386317=_0x2e15a6;if(_0x13b79c[_0x386317('0x11d0')]&&_0x13b79c['data'][_0x386317('0xcd2')]&&_0x13b79c[_0x386317('0x11d0')][_0x386317('0xcd2')][_0x386317('0x25ae')]){_0x585f29[_0x386317('0xcd2')]=_0x13b79c[_0x386317('0x11d0')][_0x386317('0xcd2')]||[{'message':_0x13b79c[_0x386317('0x94f')](),'type':_0x386317('0x4cf')}];for(var _0x55a3ec=0x0;_0x55a3ec<_0x13b79c[_0x386317('0x11d0')][_0x386317('0xcd2')][_0x386317('0x25ae')];_0x55a3ec+=0x1){_0x1b2a7c[_0x386317('0x8c8')]({'title':_0x13b79c[_0x386317('0x11d0')]['errors'][_0x55a3ec]['type'],'msg':_0x13b79c['data']['errors'][_0x55a3ec][_0x386317('0x27e8')]});}}else _0x1b2a7c[_0x386317('0x8c8')]({'title':_0x13b79c['status']?'API:'+_0x13b79c['status']+_0x386317('0x1b7c')+_0x13b79c[_0x386317('0x1fd7')]:_0x386317('0x4cf'),'msg':_0x13b79c['data']?JSON[_0x386317('0x3ad')](_0x13b79c['data']['message']):_0x13b79c[_0x386317('0x94f')]()});});}function _0x5812e4(){var _0x5cec09=_0x21ae2a;_0x585f29[_0x5cec09('0xcd2')]=[],_0x1b7edc[_0x5cec09('0xa80')][_0x5cec09('0xa70')]({'id':_0x585f29['vtigerAccount']['id']},_0x585f29[_0x5cec09('0x3a7')])[_0x5cec09('0xe59')][_0x5cec09('0xe19')](function(_0x4fb026){var _0x2bc356=_0x5cec09,_0x26ed66=_0x32d445()[_0x2bc356('0xf15')](_0x585f29[_0x2bc356('0x2302')],{'id':_0x4fb026['id']});_0x26ed66&&_0x32d445()[_0x2bc356('0x1d8')](_0x26ed66,_0x32d445()[_0x2bc356('0xed5')](_0x4fb026['toJSON'](),_0x32d445()['keys'](_0x26ed66))),_0x1b2a7c['success']({'title':_0x2bc356('0xeb7'),'msg':_0x585f29[_0x2bc356('0x3a7')][_0x2bc356('0x2623')]?_0x585f29[_0x2bc356('0x3a7')][_0x2bc356('0x2623')]+_0x2bc356('0x1c19'):''}),_0x3bf1a4(_0x4fb026);})[_0x5cec09('0x223b')](function(_0x5dd003){var _0x837eed=_0x5cec09;if(_0x5dd003[_0x837eed('0x11d0')]&&_0x5dd003[_0x837eed('0x11d0')]['errors']&&_0x5dd003[_0x837eed('0x11d0')]['errors'][_0x837eed('0x25ae')]){_0x585f29[_0x837eed('0xcd2')]=_0x5dd003['data']['errors']||[{'message':_0x5dd003[_0x837eed('0x94f')](),'type':_0x837eed('0x1072')}];for(var _0x3e9afa=0x0;_0x3e9afa<_0x5dd003[_0x837eed('0x11d0')][_0x837eed('0xcd2')]['length'];_0x3e9afa++){_0x1b2a7c['error']({'title':_0x5dd003[_0x837eed('0x11d0')][_0x837eed('0xcd2')][_0x3e9afa][_0x837eed('0x62e')],'msg':_0x5dd003['data'][_0x837eed('0xcd2')][_0x3e9afa][_0x837eed('0x27e8')]});}}else _0x1b2a7c['error']({'title':_0x5dd003[_0x837eed('0x2833')]?_0x837eed('0x27f2')+_0x5dd003[_0x837eed('0x2833')]+_0x837eed('0x1b7c')+_0x5dd003['statusText']:_0x837eed('0x1072'),'msg':_0x5dd003[_0x837eed('0x11d0')]?JSON[_0x837eed('0x3ad')](_0x5dd003[_0x837eed('0x11d0')][_0x837eed('0x27e8')]):_0x5dd003[_0x837eed('0x94f')]()});});}function _0x3004e2(_0x7cce8f){var _0xc4bc9f=_0x21ae2a;_0x585f29['errors']=[];var _0x5e0570=_0x1a3c8a[_0xc4bc9f('0xa5')]()[_0xc4bc9f('0x13e4')](_0xc4bc9f('0x24d0'))['content'](_0xc4bc9f('0x1db2'))[_0xc4bc9f('0x4d1')]('Delete\x20VtigerAccount')['ok']('Delete')[_0xc4bc9f('0x2c1')]('Cancel')['targetEvent'](_0x7cce8f);_0x1a3c8a[_0xc4bc9f('0x26b2')](_0x5e0570)[_0xc4bc9f('0xe19')](function(){var _0x564a63=_0xc4bc9f;_0x1b7edc[_0x564a63('0xa80')]['delete']({'id':_0x585f29[_0x564a63('0x3a7')]['id']})[_0x564a63('0xe59')][_0x564a63('0xe19')](function(){var _0x59eb94=_0x564a63;_0x32d445()[_0x59eb94('0xa8b')](_0x585f29[_0x59eb94('0x2302')],{'id':_0x585f29[_0x59eb94('0x3a7')]['id']}),_0x1b2a7c['success']({'title':_0x59eb94('0x1271'),'msg':(_0x585f29[_0x59eb94('0x3a7')]['name']||_0x59eb94('0x3a7'))+'\x20has\x20been\x20deleted!'}),_0x3bf1a4(_0x585f29[_0x59eb94('0x3a7')]);})[_0x564a63('0x223b')](function(_0x235afa){var _0x1a1721=_0x564a63;if(_0x235afa[_0x1a1721('0x11d0')]&&_0x235afa[_0x1a1721('0x11d0')]['errors']&&_0x235afa[_0x1a1721('0x11d0')][_0x1a1721('0xcd2')][_0x1a1721('0x25ae')]){_0x585f29[_0x1a1721('0xcd2')]=_0x235afa[_0x1a1721('0x11d0')]['errors']||[{'message':_0x235afa['toString'](),'type':_0x1a1721('0x18da')}];for(var _0x4f70ae=0x0;_0x4f70ae<_0x235afa[_0x1a1721('0x11d0')][_0x1a1721('0xcd2')][_0x1a1721('0x25ae')];_0x4f70ae++){_0x1b2a7c['error']({'title':_0x235afa[_0x1a1721('0x11d0')]['errors'][_0x4f70ae][_0x1a1721('0x62e')],'msg':_0x235afa[_0x1a1721('0x11d0')][_0x1a1721('0xcd2')][_0x4f70ae][_0x1a1721('0x27e8')]});}}else _0x1b2a7c['error']({'title':_0x235afa[_0x1a1721('0x2833')]?_0x1a1721('0x27f2')+_0x235afa[_0x1a1721('0x2833')]+_0x1a1721('0x1b7c')+_0x235afa[_0x1a1721('0x1fd7')]:'api.intVtigerAccount.delete','msg':_0x235afa[_0x1a1721('0x11d0')]?JSON[_0x1a1721('0x3ad')](_0x235afa[_0x1a1721('0x11d0')][_0x1a1721('0x27e8')]):_0x235afa['message']||_0x235afa[_0x1a1721('0x94f')]()});});},function(){});}function _0x4d0300(_0x3b63d9){return _0x3b63d9===null?undefined:new Date(_0x3b63d9);}function _0x3bf1a4(_0x27725a){var _0x5f3d00=_0x21ae2a;_0x1a3c8a[_0x5f3d00('0x11ed')](_0x27725a);}}const _0x2bebcc=_0x3891fa,_0x5d54e3=_0x59426a['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html',_0x12b45a=_0x59426a['p']+_0xb635d2('0x8e1');_0x2d5ad8[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730')];function _0x2d5ad8(_0x4c6a15,_0x2aff5d,_0x25d84f,_0x133d47,_0x4f4630){var _0x30fbd9=_0xb635d2,_0x46e4c6=this;_0x46e4c6['currentUser']=_0x4f4630[_0x30fbd9('0x1ef8')](),_0x46e4c6[_0x30fbd9('0x3a7')]={},_0x46e4c6[_0x30fbd9('0x217b')]={},_0x46e4c6['configurations']=[],_0x46e4c6['selectedVtigerConfiguration']=-0x1,_0x46e4c6['crudPermissions'],_0x46e4c6[_0x30fbd9('0x15f9')]=_0x50ddd8,_0x46e4c6['getVtigerConfiguration']=_0x462896,_0x46e4c6[_0x30fbd9('0x1328')]=_0x23d298,_0x46e4c6['deleteVtigerConfiguration']=_0x243e90;function _0x50ddd8(_0x22b8ce,_0x3af21b){var _0x9b38df=_0x30fbd9;_0x46e4c6[_0x9b38df('0x3a7')]=_0x22b8ce,_0x46e4c6[_0x9b38df('0xb3d')]=typeof _0x3af21b!==_0x9b38df('0x1143')?_0x3af21b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x25d84f['intVtigerAccount'][_0x9b38df('0x1ac6')]({'id':_0x46e4c6[_0x9b38df('0x3a7')]['id'],'sort':_0x9b38df('0x7e8')})['$promise']['then'](function(_0x4e13ab){var _0x33d28e=_0x9b38df;return _0x46e4c6[_0x33d28e('0x244e')]=_0x4e13ab[_0x33d28e('0x16a7')]?_0x4e13ab[_0x33d28e('0x16a7')]:[],_0x46e4c6['configurations'][_0x33d28e('0x25ae')]&&_0x46e4c6['getVtigerConfiguration'](0x0),_0x25d84f['variable'][_0x33d28e('0x22d5')]({'nolimit':!![],'sort':_0x33d28e('0x2623')})[_0x33d28e('0xe59')];})[_0x9b38df('0xe19')](function(_0x36761d){var _0x480e66=_0x9b38df;_0x46e4c6['variables']=_0x36761d[_0x480e66('0x16a7')]?_0x36761d['rows']:[],_0x46e4c6['variablesById']=_0x32d445()[_0x480e66('0x226f')](_0x46e4c6[_0x480e66('0x1a9e')],'id');})[_0x9b38df('0x223b')](function(_0x14f305){var _0x164436=_0x9b38df;_0x133d47[_0x164436('0x8c8')]({'title':_0x14f305[_0x164436('0x2833')]?_0x164436('0x27f2')+_0x14f305[_0x164436('0x2833')]+'\x20-\x20'+_0x14f305[_0x164436('0x1fd7')]:'SYSTEM:GETCONFIGURATION','msg':_0x14f305['data']?JSON[_0x164436('0x3ad')](_0x14f305[_0x164436('0x11d0')]):_0x14f305[_0x164436('0x94f')]()});});}function _0x462896(_0x4b97d4){var _0x50b1a4=_0x30fbd9;_0x46e4c6[_0x50b1a4('0x217b')]=_0x46e4c6[_0x50b1a4('0x244e')][_0x4b97d4],_0x46e4c6[_0x50b1a4('0x254f')]=_0x4b97d4,_0x25d84f[_0x50b1a4('0x261b')][_0x50b1a4('0xe77')]({'id':_0x46e4c6['vtigerConfiguration']['id']})[_0x50b1a4('0xe59')][_0x50b1a4('0xe19')](function(_0x2d0caa){var _0x57fce8=_0x50b1a4;return _0x46e4c6['subjects']=_0x2d0caa[_0x57fce8('0x16a7')]?_0x2d0caa[_0x57fce8('0x16a7')]:[],_0x25d84f[_0x57fce8('0x261b')][_0x57fce8('0x280b')]({'id':_0x46e4c6[_0x57fce8('0x217b')]['id']})['$promise'];})[_0x50b1a4('0xe19')](function(_0x3c9bd1){var _0x329ffe=_0x50b1a4;return _0x46e4c6['descriptions']=_0x3c9bd1['rows']?_0x3c9bd1[_0x329ffe('0x16a7')]:[],_0x25d84f[_0x329ffe('0x261b')]['getFields']({'id':_0x46e4c6[_0x329ffe('0x217b')]['id']})[_0x329ffe('0xe59')];})[_0x50b1a4('0xe19')](function(_0x53b07c){var _0x410c48=_0x50b1a4;_0x46e4c6[_0x410c48('0x1d17')]=_0x53b07c[_0x410c48('0x16a7')]?_0x53b07c[_0x410c48('0x16a7')]:[];})[_0x50b1a4('0x223b')](function(_0xb244ef){var _0xea50c9=_0x50b1a4;_0x133d47['error']({'title':_0xb244ef[_0xea50c9('0x2833')]?_0xea50c9('0x27f2')+_0xb244ef[_0xea50c9('0x2833')]+_0xea50c9('0x1b7c')+_0xb244ef['statusText']:_0xea50c9('0x82a'),'msg':_0xb244ef[_0xea50c9('0x11d0')]?JSON[_0xea50c9('0x3ad')](_0xb244ef[_0xea50c9('0x11d0')]):_0xb244ef[_0xea50c9('0x94f')]()});});}function _0x23d298(_0x4e4db0,_0x5f562f){var _0xcb0bd2=_0x30fbd9;_0x4c6a15[_0xcb0bd2('0x26b2')]({'controller':_0xcb0bd2('0x635'),'controllerAs':'vm','templateUrl':_0x5d54e3,'parent':angular[_0xcb0bd2('0x24a1')](_0x2aff5d['body']),'targetEvent':_0x4e4db0,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x5f562f,'configurations':_0x46e4c6[_0xcb0bd2('0x244e')],'license':null,'setting':null,'crudPermissions':_0x46e4c6[_0xcb0bd2('0xb3d')]}})[_0xcb0bd2('0x23')](function(){var _0x34b1c2=_0xcb0bd2;_0x46e4c6[_0x34b1c2('0x4c6')](0x0);});}function _0x243e90(_0x10ffb0,_0x10840e){var _0x178b30=_0x30fbd9,_0x4cf5a9=_0x4c6a15[_0x178b30('0xa5')]()[_0x178b30('0x13e4')](_0x178b30('0x206d'))[_0x178b30('0x221c')](_0x178b30('0xab2')+(_0x10840e['name']||_0x178b30('0x217b'))+_0x178b30('0x27bb')+_0x178b30('0x21bd'))[_0x178b30('0x4d1')](_0x178b30('0xa41'))[_0x178b30('0x1345')](_0x10ffb0)['ok']('OK')[_0x178b30('0x2c1')](_0x178b30('0x17'));_0x4c6a15[_0x178b30('0x26b2')](_0x4cf5a9)['then'](function(){var _0x51dc43=_0x178b30;_0x25d84f[_0x51dc43('0x261b')][_0x51dc43('0x229e')]({'id':_0x10840e['id']})[_0x51dc43('0xe59')]['then'](function(){var _0x56fd3c=_0x51dc43;_0x32d445()[_0x56fd3c('0xa8b')](_0x46e4c6[_0x56fd3c('0x244e')],{'id':_0x10840e['id']}),_0x133d47['success']({'title':'VtigerConfiguration\x20deleted!','msg':_0x10840e[_0x56fd3c('0x2623')]?_0x10840e[_0x56fd3c('0x2623')]+_0x56fd3c('0x2182'):''});})[_0x51dc43('0x223b')](function(_0x531113){var _0x4d0fad=_0x51dc43;_0x133d47['error']({'title':_0x531113[_0x4d0fad('0x2833')]?'API:'+_0x531113['status']+_0x4d0fad('0x1b7c')+_0x531113[_0x4d0fad('0x1fd7')]:_0x4d0fad('0x127'),'msg':_0x531113[_0x4d0fad('0x11d0')]?JSON[_0x4d0fad('0x3ad')](_0x531113[_0x4d0fad('0x11d0')]):_0x531113['toString']()});})[_0x51dc43('0x23')](function(){var _0x3f5c6f=_0x51dc43;_0x46e4c6[_0x3f5c6f('0x4c6')](0x0);});},function(){var _0x4f487f=_0x178b30;console['log'](_0x4f487f('0x17'));});}_0x46e4c6['selectedSubjects']=[],_0x46e4c6[_0x30fbd9('0x16b2')]=_0x2c82ca,_0x46e4c6[_0x30fbd9('0x10dc')]=_0x25f64b,_0x46e4c6[_0x30fbd9('0x1c53')]=_0x1e1beb;function _0x2c82ca(_0x4d8581,_0x18e7fd){var _0x3719f6=_0x30fbd9;_0x4c6a15['show']({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0x12b45a,'parent':angular['element'](_0x2aff5d['body']),'targetEvent':_0x4d8581,'clickOutsideToClose':!![],'locals':{'type':_0x3719f6('0x9ec'),'item':_0x18e7fd,'items':_0x46e4c6[_0x3719f6('0x126e')],'configuration':_0x46e4c6[_0x3719f6('0x217b')],'account':_0x46e4c6[_0x3719f6('0x3a7')],'license':null,'setting':null,'crudPermissions':_0x46e4c6[_0x3719f6('0xb3d')]}});}function _0xd944b0(_0x4bf7eb){var _0x5a6fe9=_0x30fbd9;_0x25d84f[_0x5a6fe9('0x1d3e')]['delete']({'id':_0x4bf7eb['id']})['$promise']['then'](function(){var _0x5af141=_0x5a6fe9;_0x32d445()['remove'](_0x46e4c6[_0x5af141('0x126e')],{'id':_0x4bf7eb['id']}),_0x133d47['success']({'title':_0x5af141('0x191f'),'msg':_0x5af141('0xae3')});})[_0x5a6fe9('0x223b')](function(_0x325059){var _0x51c4b0=_0x5a6fe9;_0x133d47[_0x51c4b0('0x8c8')]({'title':_0x325059[_0x51c4b0('0x2833')]?_0x51c4b0('0x27f2')+_0x325059[_0x51c4b0('0x2833')]+_0x51c4b0('0x1b7c')+_0x325059['statusText']:_0x51c4b0('0x1dde'),'msg':_0x325059[_0x51c4b0('0x11d0')]?JSON[_0x51c4b0('0x3ad')](_0x325059[_0x51c4b0('0x11d0')]):_0x325059[_0x51c4b0('0x94f')]()});});}function _0x25f64b(_0x385809,_0x3fef7d){var _0x3e4de0=_0x30fbd9,_0x1aafb9=_0x4c6a15[_0x3e4de0('0xa5')]()[_0x3e4de0('0x13e4')](_0x3e4de0('0x158a'))['htmlContent']('Subject'+'\x20will\x20be\x20deleted.')[_0x3e4de0('0x4d1')]('delete\x20subject')['targetEvent'](_0x385809)['ok']('OK')[_0x3e4de0('0x2c1')](_0x3e4de0('0x17'));_0x4c6a15[_0x3e4de0('0x26b2')](_0x1aafb9)['then'](function(){_0xd944b0(_0x3fef7d);},function(){var _0x2c69d3=_0x3e4de0;console[_0x2c69d3('0x1fe9')](_0x2c69d3('0x17'));});}function _0x1e1beb(_0xd352da){var _0xf9193b=_0x30fbd9,_0x25153d=_0x4c6a15['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0xf9193b('0x221c')](_0xf9193b('0xab2')+_0x46e4c6[_0xf9193b('0x2508')][_0xf9193b('0x25ae')]+_0xf9193b('0x5bc')+_0xf9193b('0x21bd'))[_0xf9193b('0x4d1')](_0xf9193b('0xbc0'))[_0xf9193b('0x1345')](_0xd352da)['ok']('OK')['cancel']('CANCEL');_0x4c6a15[_0xf9193b('0x26b2')](_0x25153d)[_0xf9193b('0xe19')](function(){var _0x266b61=_0xf9193b;_0x46e4c6[_0x266b61('0x2508')]['forEach'](function(_0x51f188){_0xd944b0(_0x51f188);}),_0x46e4c6[_0x266b61('0x2508')]=[];});}_0x46e4c6[_0x30fbd9('0x858')]=[],_0x46e4c6[_0x30fbd9('0x2885')]=_0x5259e4,_0x46e4c6[_0x30fbd9('0x95b')]=_0x1f0910,_0x46e4c6['deleteSelectedDescriptions']=_0x14ddf4;function _0x5259e4(_0x582f55,_0x45f2a3){var _0x1fe4b3=_0x30fbd9;_0x4c6a15['show']({'controller':_0x1fe4b3('0x24de'),'controllerAs':'vm','templateUrl':_0x12b45a,'parent':angular['element'](_0x2aff5d[_0x1fe4b3('0x19b2')]),'targetEvent':_0x582f55,'clickOutsideToClose':!![],'locals':{'type':_0x1fe4b3('0x897'),'item':_0x45f2a3,'items':_0x46e4c6[_0x1fe4b3('0xb9c')],'configuration':_0x46e4c6[_0x1fe4b3('0x217b')],'account':_0x46e4c6[_0x1fe4b3('0x3a7')],'license':null,'setting':null,'crudPermissions':_0x46e4c6[_0x1fe4b3('0xb3d')]}});}function _0x2f5d7a(_0x209234){var _0xc8497f=_0x30fbd9;_0x25d84f[_0xc8497f('0x1d3e')]['delete']({'id':_0x209234['id']})[_0xc8497f('0xe59')][_0xc8497f('0xe19')](function(){var _0x4a74c3=_0xc8497f;_0x32d445()[_0x4a74c3('0xa8b')](_0x46e4c6[_0x4a74c3('0xb9c')],{'id':_0x209234['id']}),_0x133d47[_0x4a74c3('0x425')]({'title':'Description\x20deleted!','msg':_0x4a74c3('0x1139')});})[_0xc8497f('0x223b')](function(_0x34c7f2){var _0x270c10=_0xc8497f;_0x133d47[_0x270c10('0x8c8')]({'title':_0x34c7f2[_0x270c10('0x2833')]?_0x270c10('0x27f2')+_0x34c7f2[_0x270c10('0x2833')]+_0x270c10('0x1b7c')+_0x34c7f2[_0x270c10('0x1fd7')]:_0x270c10('0x1dde'),'msg':_0x34c7f2[_0x270c10('0x11d0')]?JSON['stringify'](_0x34c7f2[_0x270c10('0x11d0')]):_0x34c7f2[_0x270c10('0x94f')]()});});}function _0x1f0910(_0x8a5681,_0x1e7338){var _0x571d11=_0x30fbd9,_0x1e84b8=_0x4c6a15[_0x571d11('0xa5')]()[_0x571d11('0x13e4')](_0x571d11('0x1c50'))[_0x571d11('0x221c')](_0x571d11('0x11e1')+_0x571d11('0x21bd'))[_0x571d11('0x4d1')](_0x571d11('0x1dc0'))['targetEvent'](_0x8a5681)['ok']('OK')[_0x571d11('0x2c1')](_0x571d11('0x17'));_0x4c6a15['show'](_0x1e84b8)['then'](function(){_0x2f5d7a(_0x1e7338);},function(){var _0x25832a=_0x571d11;console[_0x25832a('0x1fe9')]('CANCEL');});}function _0x14ddf4(_0x5f0e4c){var _0x446023=_0x30fbd9,_0x51b241=_0x4c6a15[_0x446023('0xa5')]()[_0x446023('0x13e4')](_0x446023('0x23f4'))['htmlContent'](_0x446023('0xab2')+_0x46e4c6[_0x446023('0x858')][_0x446023('0x25ae')]+'\x20selected'+_0x446023('0x21bd'))[_0x446023('0x4d1')](_0x446023('0x162'))['targetEvent'](_0x5f0e4c)['ok']('OK')[_0x446023('0x2c1')](_0x446023('0x17'));_0x4c6a15[_0x446023('0x26b2')](_0x51b241)[_0x446023('0xe19')](function(){var _0x39175e=_0x446023;_0x46e4c6[_0x39175e('0x858')][_0x39175e('0x1d7e')](function(_0x1b331a){_0x2f5d7a(_0x1b331a);}),_0x46e4c6[_0x39175e('0x858')]=[];});}_0x46e4c6[_0x30fbd9('0xf97')]=[],_0x46e4c6[_0x30fbd9('0x131')]=_0x5a7586,_0x46e4c6[_0x30fbd9('0x2152')]=_0x4fedae,_0x46e4c6['deleteSelectedFields']=_0xb2d853;function _0x5a7586(_0x333ea6,_0x3b9012){var _0x4445f1=_0x30fbd9;_0x4c6a15['show']({'controller':_0x4445f1('0x24de'),'controllerAs':'vm','templateUrl':_0x12b45a,'parent':angular[_0x4445f1('0x24a1')](_0x2aff5d['body']),'targetEvent':_0x333ea6,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x3b9012,'items':_0x46e4c6[_0x4445f1('0x1d17')],'configuration':_0x46e4c6['vtigerConfiguration'],'account':_0x46e4c6[_0x4445f1('0x3a7')],'license':null,'setting':null,'crudPermissions':_0x46e4c6[_0x4445f1('0xb3d')]}});}function _0x2487df(_0x32ddd4){var _0x420c8e=_0x30fbd9;_0x25d84f[_0x420c8e('0x1d3e')][_0x420c8e('0x229e')]({'id':_0x32ddd4['id']})[_0x420c8e('0xe59')][_0x420c8e('0xe19')](function(){var _0x3f582e=_0x420c8e;_0x32d445()[_0x3f582e('0xa8b')](_0x46e4c6[_0x3f582e('0x1d17')],{'id':_0x32ddd4['id']}),_0x133d47[_0x3f582e('0x425')]({'title':_0x3f582e('0x1e5d'),'msg':_0x3f582e('0x21f5')});})[_0x420c8e('0x223b')](function(_0x392c7f){var _0x570b4a=_0x420c8e;_0x133d47[_0x570b4a('0x8c8')]({'title':_0x392c7f['status']?'API:'+_0x392c7f[_0x570b4a('0x2833')]+'\x20-\x20'+_0x392c7f[_0x570b4a('0x1fd7')]:_0x570b4a('0x1dde'),'msg':_0x392c7f[_0x570b4a('0x11d0')]?JSON['stringify'](_0x392c7f[_0x570b4a('0x11d0')]):_0x392c7f[_0x570b4a('0x94f')]()});});}function _0x4fedae(_0x124215,_0x15f253){var _0x2d563c=_0x30fbd9,_0xc5c7f5=_0x4c6a15['confirm']()[_0x2d563c('0x13e4')](_0x2d563c('0x8b7'))[_0x2d563c('0x221c')]('Field'+_0x2d563c('0x21bd'))['ariaLabel']('delete\x20field')[_0x2d563c('0x1345')](_0x124215)['ok']('OK')['cancel'](_0x2d563c('0x17'));_0x4c6a15['show'](_0xc5c7f5)[_0x2d563c('0xe19')](function(){_0x2487df(_0x15f253);},function(){var _0xb62a2f=_0x2d563c;console[_0xb62a2f('0x1fe9')]('CANCEL');});}function _0xb2d853(_0x31c165){var _0x2719ad=_0x30fbd9,_0x54e037=_0x4c6a15['confirm']()[_0x2719ad('0x13e4')](_0x2719ad('0x128c'))[_0x2719ad('0x221c')](_0x2719ad('0xab2')+_0x46e4c6[_0x2719ad('0xf97')][_0x2719ad('0x25ae')]+_0x2719ad('0x5bc')+'\x20will\x20be\x20deleted.')[_0x2719ad('0x4d1')](_0x2719ad('0x19c9'))[_0x2719ad('0x1345')](_0x31c165)['ok']('OK')[_0x2719ad('0x2c1')](_0x2719ad('0x17'));_0x4c6a15[_0x2719ad('0x26b2')](_0x54e037)['then'](function(){_0x46e4c6['selectedFields']['forEach'](function(_0x4eafbd){_0x2487df(_0x4eafbd);}),_0x46e4c6['selectedFields']=[];});}}const _0x2968ee=_0x2d5ad8;_0x4b56ad[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'configurations',_0xb635d2('0x217b'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x4b56ad(_0x1b4bce,_0x5f5cd3,_0x4f2da5,_0x330951,_0x5d61f9,_0x40dfa5,_0x2d22c5,_0x2b31eb,_0x45bef1,_0x2e1bef,_0x2e6471,_0x469610,_0x3acb1a,_0x48a48c){var _0x3f5429=_0xb635d2,_0x284433=this;_0x284433[_0x3f5429('0x15a5')]=_0x2e6471[_0x3f5429('0x1ef8')](),_0x284433[_0x3f5429('0xcd2')]=[],_0x284433[_0x3f5429('0x22f1')]=_0x3acb1a,_0x284433['license']=_0x469610,_0x284433[_0x3f5429('0xb3d')]=_0x48a48c,_0x284433['hasModulePermissions']={},_0x284433[_0x3f5429('0x25ac')]=_0x284433[_0x3f5429('0x22f1')]&&_0x284433[_0x3f5429('0x22f1')][_0x3f5429('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x284433[_0x3f5429('0x13e4')]=_0x3f5429('0x21cb'),_0x284433[_0x3f5429('0x217b')]=angular['copy'](_0x45bef1),_0x284433['configurations']=_0x2b31eb,_0x284433[_0x3f5429('0x1017')]=![];!_0x284433[_0x3f5429('0x217b')]&&(_0x284433['vtigerConfiguration']={'channel':_0x3f5429('0xe74'),'type':_0x3f5429('0x1a7a')},_0x284433[_0x3f5429('0x13e4')]=_0x3f5429('0x395'),_0x284433['newVtigerConfiguration']=!![]);_0x284433[_0x3f5429('0x272c')]=_0x1db8ca,_0x284433[_0x3f5429('0x2731')]=_0x2fda41,_0x284433[_0x3f5429('0xf93')]=_0x5a7b25,_0x284433[_0x3f5429('0x2635')]=_0x1ca620,_0x284433['closeDialog']=_0x300e74;function _0x1db8ca(){var _0x5ec6f9=_0x3f5429;_0x284433[_0x5ec6f9('0xcd2')]=[],_0x2e1bef['intVtigerAccount'][_0x5ec6f9('0x2402')]({'id':_0x5f5cd3[_0x5ec6f9('0x2ef')]['id']},_0x284433[_0x5ec6f9('0x217b')])['$promise']['then'](function(_0x21ab70){var _0x3f4317=_0x5ec6f9;_0x284433[_0x3f4317('0x244e')][_0x3f4317('0x14c9')](_0x21ab70['toJSON']()),_0x2d22c5[_0x3f4317('0x425')]({'title':_0x3f4317('0x19c5'),'msg':_0x284433[_0x3f4317('0x217b')][_0x3f4317('0x2623')]?_0x284433[_0x3f4317('0x217b')][_0x3f4317('0x2623')]+_0x3f4317('0x105f'):''}),_0x300e74(_0x21ab70);})[_0x5ec6f9('0x223b')](function(_0x3f9f29){var _0x52bd44=_0x5ec6f9;if(_0x3f9f29[_0x52bd44('0x11d0')]&&_0x3f9f29[_0x52bd44('0x11d0')][_0x52bd44('0xcd2')]&&_0x3f9f29[_0x52bd44('0x11d0')][_0x52bd44('0xcd2')][_0x52bd44('0x25ae')]){_0x284433[_0x52bd44('0xcd2')]=_0x3f9f29[_0x52bd44('0x11d0')][_0x52bd44('0xcd2')]||[{'message':_0x3f9f29[_0x52bd44('0x94f')](),'type':'api.intVtigerConfiguration.save'}];for(var _0x4d8ead=0x0;_0x4d8ead<_0x3f9f29['data'][_0x52bd44('0xcd2')][_0x52bd44('0x25ae')];_0x4d8ead+=0x1){_0x2d22c5[_0x52bd44('0x8c8')]({'title':_0x3f9f29[_0x52bd44('0x11d0')][_0x52bd44('0xcd2')][_0x4d8ead][_0x52bd44('0x62e')],'msg':_0x3f9f29[_0x52bd44('0x11d0')]['errors'][_0x4d8ead][_0x52bd44('0x27e8')]});}}else _0x2d22c5['error']({'title':_0x3f9f29[_0x52bd44('0x2833')]?_0x52bd44('0x27f2')+_0x3f9f29[_0x52bd44('0x2833')]+_0x52bd44('0x1b7c')+_0x3f9f29[_0x52bd44('0x1fd7')]:_0x52bd44('0x1b36'),'msg':_0x3f9f29[_0x52bd44('0x11d0')]?JSON[_0x52bd44('0x3ad')](_0x3f9f29['data'][_0x52bd44('0x27e8')]):_0x3f9f29['toString']()});});}function _0x2fda41(){var _0x55e2ce=_0x3f5429;_0x284433[_0x55e2ce('0xcd2')]=[],_0x2e1bef[_0x55e2ce('0x261b')][_0x55e2ce('0xa70')]({'id':_0x284433['vtigerConfiguration']['id']},_0x284433[_0x55e2ce('0x217b')])[_0x55e2ce('0xe59')][_0x55e2ce('0xe19')](function(_0x5ec001){var _0x4182e8=_0x55e2ce,_0x14b737=_0x32d445()[_0x4182e8('0xf15')](_0x284433[_0x4182e8('0x244e')],{'id':_0x5ec001['id']});_0x14b737&&_0x32d445()[_0x4182e8('0x1d8')](_0x14b737,_0x32d445()[_0x4182e8('0xed5')](_0x5ec001['toJSON'](),_0x32d445()[_0x4182e8('0x1234')](_0x14b737))),_0x2d22c5[_0x4182e8('0x425')]({'title':_0x4182e8('0x175b'),'msg':_0x284433[_0x4182e8('0x217b')]['name']?_0x284433['vtigerConfiguration'][_0x4182e8('0x2623')]+_0x4182e8('0x1c19'):''}),_0x300e74(_0x5ec001);})[_0x55e2ce('0x223b')](function(_0x3f5c9b){var _0x5449da=_0x55e2ce;if(_0x3f5c9b['data']&&_0x3f5c9b[_0x5449da('0x11d0')][_0x5449da('0xcd2')]&&_0x3f5c9b[_0x5449da('0x11d0')][_0x5449da('0xcd2')]['length']){_0x284433['errors']=_0x3f5c9b[_0x5449da('0x11d0')]['errors']||[{'message':_0x3f5c9b[_0x5449da('0x94f')](),'type':_0x5449da('0x112b')}];for(var _0x357df1=0x0;_0x357df1<_0x3f5c9b[_0x5449da('0x11d0')][_0x5449da('0xcd2')][_0x5449da('0x25ae')];_0x357df1++){_0x2d22c5[_0x5449da('0x8c8')]({'title':_0x3f5c9b[_0x5449da('0x11d0')][_0x5449da('0xcd2')][_0x357df1][_0x5449da('0x62e')],'msg':_0x3f5c9b[_0x5449da('0x11d0')][_0x5449da('0xcd2')][_0x357df1]['message']});}}else _0x2d22c5[_0x5449da('0x8c8')]({'title':_0x3f5c9b['status']?_0x5449da('0x27f2')+_0x3f5c9b[_0x5449da('0x2833')]+'\x20-\x20'+_0x3f5c9b[_0x5449da('0x1fd7')]:'api.intVtigerConfiguration.update','msg':_0x3f5c9b[_0x5449da('0x11d0')]?JSON['stringify'](_0x3f5c9b['data'][_0x5449da('0x27e8')]):_0x3f5c9b[_0x5449da('0x94f')]()});});}function _0x5a7b25(_0x18e08c){var _0x3a5c9d=_0x3f5429;_0x284433['errors']=[];var _0x14efac=_0x330951[_0x3a5c9d('0xa5')]()[_0x3a5c9d('0x13e4')](_0x3a5c9d('0x24d0'))[_0x3a5c9d('0xd0')](_0x3a5c9d('0x1272'))[_0x3a5c9d('0x4d1')]('Delete\x20VtigerConfiguration')['ok']('Delete')[_0x3a5c9d('0x2c1')](_0x3a5c9d('0x8a3'))[_0x3a5c9d('0x1345')](_0x18e08c);_0x330951[_0x3a5c9d('0x26b2')](_0x14efac)[_0x3a5c9d('0xe19')](function(){var _0x2a006c=_0x3a5c9d;_0x2e1bef[_0x2a006c('0x261b')][_0x2a006c('0x229e')]({'id':_0x284433[_0x2a006c('0x217b')]['id']})[_0x2a006c('0xe59')][_0x2a006c('0xe19')](function(){var _0x269848=_0x2a006c;_0x32d445()[_0x269848('0xa8b')](_0x284433[_0x269848('0x244e')],{'id':_0x284433[_0x269848('0x217b')]['id']}),_0x2d22c5[_0x269848('0x425')]({'title':_0x269848('0x1ca8'),'msg':(_0x284433[_0x269848('0x217b')][_0x269848('0x2623')]||_0x269848('0x217b'))+_0x269848('0x2182')}),_0x300e74(_0x284433[_0x269848('0x217b')]);})[_0x2a006c('0x223b')](function(_0x115cfa){var _0x23e952=_0x2a006c;if(_0x115cfa['data']&&_0x115cfa['data']['errors']&&_0x115cfa[_0x23e952('0x11d0')][_0x23e952('0xcd2')]['length']){_0x284433[_0x23e952('0xcd2')]=_0x115cfa[_0x23e952('0x11d0')]['errors']||[{'message':_0x115cfa[_0x23e952('0x94f')](),'type':'api.intVtigerConfiguration.delete'}];for(var _0x5d3daa=0x0;_0x5d3daa<_0x115cfa[_0x23e952('0x11d0')][_0x23e952('0xcd2')][_0x23e952('0x25ae')];_0x5d3daa++){_0x2d22c5[_0x23e952('0x8c8')]({'title':_0x115cfa['data'][_0x23e952('0xcd2')][_0x5d3daa][_0x23e952('0x62e')],'msg':_0x115cfa[_0x23e952('0x11d0')]['errors'][_0x5d3daa][_0x23e952('0x27e8')]});}}else _0x2d22c5[_0x23e952('0x8c8')]({'title':_0x115cfa[_0x23e952('0x2833')]?'API:'+_0x115cfa[_0x23e952('0x2833')]+_0x23e952('0x1b7c')+_0x115cfa[_0x23e952('0x1fd7')]:_0x23e952('0xd6a'),'msg':_0x115cfa['data']?JSON['stringify'](_0x115cfa['data'][_0x23e952('0x27e8')]):_0x115cfa[_0x23e952('0x27e8')]||_0x115cfa[_0x23e952('0x94f')]()});});},function(){});}function _0x1ca620(_0x57958d){return _0x57958d===null?undefined:new Date(_0x57958d);}function _0x300e74(_0x687be4){_0x330951['hide'](_0x687be4);}}const _0x1aa751=_0x4b56ad;_0x571b93[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x271e'),_0xb635d2('0xe4b'),'item',_0xb635d2('0xe8b'),'type',_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x571b93(_0x3da794,_0x143640,_0x5138b6,_0x234349,_0x2e1626,_0x2835a6,_0x4bfcd2,_0x232ae3,_0xdfae2d,_0x3b48b7,_0x18085b,_0x4e23ca,_0x2fa318){var _0x2bb205=_0xb635d2,_0x57c067=this;_0x57c067['currentUser']=_0x4e23ca[_0x2bb205('0x1ef8')](),_0x57c067['errors']=[],_0x57c067[_0x2bb205('0x13e4')]=_0x2bb205('0x53c')+_0x32d445()['toUpper'](_0x3b48b7),_0x57c067[_0x2bb205('0xdbb')]=angular['copy'](_0x232ae3),_0x57c067[_0x2bb205('0xe4b')]=_0x4bfcd2,_0x57c067[_0x2bb205('0x62e')]=_0x3b48b7,_0x57c067[_0x2bb205('0xb3d')]=_0x2fa318,_0x57c067['newItem']=![];!_0x57c067['item']&&(_0x57c067[_0x2bb205('0xdbb')]={'type':_0x2bb205('0x19d1')},_0x57c067[_0x2bb205('0xdbb')][_0x32d445()[_0x2bb205('0xbf6')](_0x3b48b7)+'Id']=_0x2835a6['id'],_0x57c067['title']=_0x2bb205('0x7e2')+_0x32d445()[_0x2bb205('0xcbc')](_0x3b48b7),_0x57c067[_0x2bb205('0xa3')]=!![]);_0x57c067['addNewItem']=_0x2aa6b1,_0x57c067[_0x2bb205('0x1384')]=_0x5d1e41,_0x57c067[_0x2bb205('0xc32')]=_0x5ca9cf,_0x57c067[_0x2bb205('0x142b')]=_0x2f2ec9,_0x57c067[_0x2bb205('0x2584')]=_0x5af17,_0x18085b[_0x2bb205('0x19a5')]['get']({'nolimit':!![]})[_0x2bb205('0xe59')][_0x2bb205('0xe19')](function(_0x38e077){var _0x33dd52=_0x2bb205;return _0x57c067['variables']=_0x38e077[_0x33dd52('0x16a7')]?_0x38e077['rows']:[],_0x18085b['voiceAgentReport']['describe']()['$promise'];})[_0x2bb205('0xe19')](function(_0x3c69a2){var _0x3ff254=_0x2bb205;return _0x57c067['voiceAgentReportColumns']=_0x32d445()[_0x3ff254('0x11d3')](_0x32d445()[_0x3ff254('0x1234')](_0x3c69a2),[_0x3ff254('0xe59'),_0x3ff254('0x113c'),_0x3ff254('0x15c9'),'updatedAt','sourceid']),_0x57c067[_0x3ff254('0x1230')][_0x3ff254('0xb76')](_0x3ff254('0xeaa')),_0x18085b[_0x3ff254('0xa4e')][_0x3ff254('0x215e')]()[_0x3ff254('0xe59')];})[_0x2bb205('0xe19')](function(_0x10e177){var _0xb44be8=_0x2bb205;_0x57c067[_0xb44be8('0x9f9')]=_0x32d445()[_0xb44be8('0x11d3')](_0x32d445()[_0xb44be8('0x1234')](_0x10e177),[_0xb44be8('0xe59'),_0xb44be8('0x113c'),_0xb44be8('0x15c9'),_0xb44be8('0x1ce9'),_0xb44be8('0x1bea')]),_0x57c067[_0xb44be8('0x9f9')][_0xb44be8('0xb76')](_0xb44be8('0xeaa'));})[_0x2bb205('0x223b')](function(_0x5879e4){var _0x311840=_0x2bb205;_0x2e1626[_0x311840('0x8c8')]({'title':_0x5879e4[_0x311840('0x2833')]?_0x311840('0x27f2')+_0x5879e4[_0x311840('0x2833')]+_0x311840('0x1b7c')+_0x5879e4['statusText']:_0x311840('0x1c83'),'msg':_0x5879e4[_0x311840('0x11d0')]?JSON['stringify'](_0x5879e4[_0x311840('0x11d0')]):_0x5879e4['toString']()});}),_0x18085b[_0x2bb205('0xa80')][_0x2bb205('0x23f8')]({'id':_0xdfae2d['id'],'ticketType':_0x2835a6[_0x2bb205('0x11d2')]?_0x2835a6[_0x2bb205('0x11d2')]:undefined})[_0x2bb205('0xe59')][_0x2bb205('0xe19')](function(_0x28a242){var _0xbb079a=_0x2bb205;_0x57c067[_0xbb079a('0xbba')]=!![],_0x57c067[_0xbb079a('0x1d17')]=_0x28a242['rows']?_0x28a242[_0xbb079a('0x16a7')]:[],_0x57c067[_0xbb079a('0xdbb')]['idField']&&(_0x57c067['customField']=_0x32d445()[_0xbb079a('0xf15')](_0x57c067[_0xbb079a('0x1d17')],{'id':_0x57c067[_0xbb079a('0xdbb')][_0xbb079a('0x1c96')]}));})[_0x2bb205('0x223b')](function(_0x32bff2){var _0x3eb4f6=_0x2bb205;_0x57c067[_0x3eb4f6('0xbba')]=![],console['error'](_0x32bff2);});function _0x2aa6b1(){var _0x3c178e=_0x2bb205;_0x57c067[_0x3c178e('0xcd2')]=[],_0x57c067[_0x3c178e('0x1129')]&&(_0x57c067['item'][_0x3c178e('0x1c96')]=_0x57c067['customField']['id'],_0x57c067[_0x3c178e('0xdbb')][_0x3c178e('0x99e')]=_0x57c067[_0x3c178e('0x1129')][_0x3c178e('0x2623')],_0x57c067[_0x3c178e('0xdbb')][_0x3c178e('0x1129')]=_0x57c067['customField'][_0x3c178e('0x261d')]),_0x18085b[_0x3c178e('0x1d3e')][_0x3c178e('0xe5e')](_0x57c067[_0x3c178e('0xdbb')])[_0x3c178e('0xe59')][_0x3c178e('0xe19')](function(_0x348fa7){var _0x31c125=_0x3c178e;_0x57c067[_0x31c125('0xe4b')][_0x31c125('0x14c9')](_0x348fa7),_0x2e1626[_0x31c125('0x425')]({'title':_0x32d445()[_0x31c125('0xbf6')](_0x3b48b7)+_0x31c125('0xf04'),'msg':_0x32d445()['capitalize'](_0x3b48b7)+_0x31c125('0x105f')}),_0x5af17();})['catch'](function(_0x58466b){var _0x575a1b=_0x3c178e;console['error'](_0x58466b),_0x57c067[_0x575a1b('0xcd2')]=_0x58466b[_0x575a1b('0x11d0')][_0x575a1b('0xcd2')]||[{'message':_0x58466b[_0x575a1b('0x94f')](),'type':'api.item.save'}];});}function _0x5d1e41(){var _0x266091=_0x2bb205;_0x57c067['errors']=[],_0x57c067[_0x266091('0x1129')]&&(_0x57c067[_0x266091('0xdbb')][_0x266091('0x1c96')]=_0x57c067['customField']['id'],_0x57c067['item'][_0x266091('0x99e')]=_0x57c067[_0x266091('0x1129')][_0x266091('0x2623')],_0x57c067[_0x266091('0xdbb')][_0x266091('0x1129')]=_0x57c067[_0x266091('0x1129')][_0x266091('0x261d')]),_0x18085b[_0x266091('0x1d3e')]['update']({'id':_0x57c067[_0x266091('0xdbb')]['id']},_0x57c067[_0x266091('0xdbb')])[_0x266091('0xe59')][_0x266091('0xe19')](function(_0x2063d0){var _0x39fee1=_0x266091,_0x2f0837=_0x32d445()[_0x39fee1('0xf15')](_0x57c067[_0x39fee1('0xe4b')],{'id':_0x2063d0['id']});_0x2f0837&&_0x32d445()[_0x39fee1('0x1d8')](_0x2f0837,_0x2063d0),_0x2e1626['success']({'title':_0x32d445()[_0x39fee1('0xbf6')](_0x3b48b7)+_0x39fee1('0xdaf'),'msg':_0x32d445()['capitalize'](_0x3b48b7)+_0x39fee1('0x1c19')}),_0x5af17();})['catch'](function(_0x2db145){var _0x328470=_0x266091;console[_0x328470('0x8c8')](_0x2db145),_0x57c067[_0x328470('0xcd2')]=_0x2db145[_0x328470('0x11d0')][_0x328470('0xcd2')]||[{'message':_0x2db145[_0x328470('0x94f')](),'type':_0x328470('0x2134')}];});}function _0x5ca9cf(_0xa60c0d){var _0x5981d1=_0x2bb205;_0x57c067[_0x5981d1('0xcd2')]=[];var _0x3a617c=_0x234349[_0x5981d1('0xa5')]()['title'](_0x5981d1('0x24d0'))[_0x5981d1('0xd0')](_0x5981d1('0x2784')+_0x3b48b7+_0x5981d1('0x21bd'))[_0x5981d1('0x4d1')]('Delete\x20'+_0x32d445()[_0x5981d1('0xbf6')](_0x3b48b7))['ok'](_0x5981d1('0x2198'))[_0x5981d1('0x2c1')](_0x5981d1('0x8a3'))['targetEvent'](_0xa60c0d);_0x234349[_0x5981d1('0x26b2')](_0x3a617c)[_0x5981d1('0xe19')](function(){var _0x5bfab9=_0x5981d1;_0x18085b[_0x5bfab9('0x1d3e')][_0x5bfab9('0x229e')]({'id':_0x57c067[_0x5bfab9('0xdbb')]['id']})['$promise'][_0x5bfab9('0xe19')](function(){var _0x48b806=_0x5bfab9;_0x32d445()[_0x48b806('0xa8b')](_0x57c067[_0x48b806('0xe4b')],{'id':_0x57c067['item']['id']}),_0x2e1626[_0x48b806('0x425')]({'title':_0x32d445()[_0x48b806('0xbf6')](_0x3b48b7)+_0x48b806('0x1ddc'),'msg':_0x32d445()[_0x48b806('0xbf6')](_0x3b48b7)+'\x20has\x20been\x20deleted!'}),_0x5af17();})[_0x5bfab9('0x223b')](function(_0x53bd14){var _0x1c3f17=_0x5bfab9;console[_0x1c3f17('0x8c8')](_0x53bd14),_0x57c067[_0x1c3f17('0xcd2')]=_0x53bd14[_0x1c3f17('0x11d0')][_0x1c3f17('0xcd2')]||[{'message':_0x53bd14['toString'](),'type':'api.item.delete'}];});},function(){});}function _0x2f2ec9(){var _0x3dcc26=_0x2bb205;return _0x57c067['item'][_0x3dcc26('0x17b')]!==undefined?_0x57c067[_0x3dcc26('0xdbb')]['variableName']:_0x3dcc26('0xc');}function _0x5af17(){_0x234349['hide']();}}const _0x55fd70=_0x571b93;_0x4f6ee6[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x3a7'),_0xb635d2('0xb59')];function _0x4f6ee6(_0x3f1c70,_0x3ea784,_0x494236,_0x5dc1b0,_0x2c2aa4,_0x154e22,_0xb362cf,_0x2a02fe,_0x20c51d,_0x1f2df2,_0x505317,_0x178fd5){var _0x4e0416=_0xb635d2,_0x224ac2=this;_0x224ac2[_0x4e0416('0x15a5')]=_0x1f2df2['getCurrentUser'](),_0x224ac2[_0x4e0416('0x5c1')]=_0x154e22,_0x224ac2[_0x4e0416('0x22f1')]=_0xb362cf,_0x224ac2[_0x4e0416('0x25ac')]=_0x224ac2['setting'][_0x4e0416('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x224ac2[_0x4e0416('0x2170')]=_0x3ea784[_0x4e0416('0xec0')]()+_0x4e0416('0x21a8')+_0x3ea784[_0x4e0416('0x3b7')](),_0x224ac2['vtigerAccount']=_0x505317||_0x3f1c70['params'][_0x4e0416('0x3a7')]||{},_0x224ac2[_0x4e0416('0xb59')]=_0x178fd5&&_0x178fd5[_0x4e0416('0x148b')]==0x1?_0x178fd5[_0x4e0416('0x16a7')][0x0]:null,_0x224ac2[_0x4e0416('0xb3d')]=_0x1f2df2['parseCrudPermissions'](_0x224ac2['userProfileSection']?_0x224ac2['userProfileSection']['crudPermissions']:null),_0x224ac2[_0x4e0416('0x1ccb')]={},_0x224ac2[_0x4e0416('0xc7b')]=_0x3f1c70[_0x4e0416('0x2ef')]['tab']||0x0,_0x224ac2[_0x4e0416('0xbdc')]=_0x20c51d[_0x4e0416('0x1e67')],_0x224ac2['gotoVtigerAccounts']=_0x1d4a67,_0x224ac2['saveVtigerAccount']=_0x52c207;function _0x1d4a67(){var _0x1fca61=_0x4e0416;_0x3f1c70['go']('app.integrations.vtigerAccounts',{},{'reload':_0x1fca61('0xff4')});}function _0x52c207(){var _0x450424=_0x4e0416;_0x2a02fe['intVtigerAccount'][_0x450424('0xa70')]({'id':_0x224ac2[_0x450424('0x3a7')]['id']},_0x224ac2[_0x450424('0x3a7')])['$promise'][_0x450424('0xe19')](function(){var _0x39eebd=_0x450424;_0x20c51d['success']({'title':_0x39eebd('0x466'),'msg':_0x224ac2[_0x39eebd('0x3a7')][_0x39eebd('0x2623')]?_0x224ac2[_0x39eebd('0x3a7')][_0x39eebd('0x2623')]+_0x39eebd('0x283b'):''});})['catch'](function(_0x2227fa){var _0x255983=_0x450424;_0x20c51d[_0x255983('0x8c8')]({'title':_0x2227fa[_0x255983('0x2833')]?_0x255983('0x27f2')+_0x2227fa['status']+_0x255983('0x1b7c')+_0x2227fa[_0x255983('0x1fd7')]:_0x255983('0x1961'),'msg':_0x2227fa[_0x255983('0x11d0')]?JSON[_0x255983('0x3ad')](_0x2227fa['data']):_0x2227fa['toString']()});});}}const _0x51b02c=_0x4f6ee6,_0x2e92b2=_0x59426a['p']+_0xb635d2('0x6a3');_0x5163f6[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window','$state','$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),'vtigerAccounts',_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x5163f6(_0x493439,_0x174bf6,_0x1fff9c,_0x5188c8,_0x73aad,_0x28190d,_0x46f561,_0x52a2c0,_0x1c1a54,_0x2f68e3,_0x4fe5c4,_0x3b2523,_0x1694cb,_0x162117,_0x482843,_0x286a38,_0x91967){var _0x3f83a0=_0xb635d2,_0x2d0251=this;_0x2d0251[_0x3f83a0('0x5c1')]=_0x286a38,_0x2d0251[_0x3f83a0('0x22f1')]=_0x91967,_0x2d0251[_0x3f83a0('0x15a5')]=_0x482843[_0x3f83a0('0x1ef8')](),_0x2d0251[_0x3f83a0('0x2302')]=_0x1c1a54||{'count':0x0,'rows':[]},_0x2d0251[_0x3f83a0('0x154f')]=_0x2f68e3,_0x2d0251[_0x3f83a0('0xb59')]=_0x4fe5c4&&_0x4fe5c4[_0x3f83a0('0x148b')]==0x1?_0x4fe5c4['rows'][0x0]:null,_0x2d0251[_0x3f83a0('0xb3d')]=_0x482843[_0x3f83a0('0xd31')](_0x2d0251[_0x3f83a0('0xb59')]?_0x2d0251['userProfileSection'][_0x3f83a0('0xb3d')]:null),_0x2d0251[_0x3f83a0('0x19b6')]=_0x3f83a0('0x2302'),_0x2d0251['listOrder']='',_0x2d0251['listOrderAsc']=null,_0x2d0251[_0x3f83a0('0x128e')]=[],_0x2d0251['query']={'fields':_0x3f83a0('0x1033'),'limit':0xa,'page':0x1},_0x2d0251['editstate']=_0x36e8b6,_0x2d0251['testtestintegrationaccount']=_0x6963c4,_0x2d0251[_0x3f83a0('0x1d9e')]=_0x1c990a,_0x2d0251[_0x3f83a0('0x425')]=_0x4d4849,_0x2d0251[_0x3f83a0('0x87e')]=_0x53a54b,_0x2d0251[_0x3f83a0('0x26cc')]=_0x1a24fe,_0x2d0251[_0x3f83a0('0x559')]=_0x406c62,_0x2d0251[_0x3f83a0('0x23ea')]=_0x6a8fb2,_0x2d0251[_0x3f83a0('0x12f3')]=_0xfcb883,_0x2d0251[_0x3f83a0('0x920')]=_0x4ee213,_0x2d0251[_0x3f83a0('0x27e5')]=_0x2bc345;function _0x36e8b6(_0x2cfcfa){var _0x460a78=_0x3f83a0;_0x1fff9c['go'](_0x460a78('0x2569'),{'id':_0x2cfcfa['id'],'vtigerAccount':_0x2cfcfa,'crudPermissions':_0x2d0251[_0x460a78('0xb3d')]});}function _0x6963c4(_0x3fa61b){var _0x37192f=_0x3f83a0;return _0x3b2523[_0x37192f('0xa80')][_0x37192f('0x23f8')]({'id':_0x3fa61b['id'],'test':!![]})[_0x37192f('0xe59')]['then'](function(){_0x162117['success']({'title':'VtigerAccount\x20properly\x20tested','msg':'Connection\x20succeded!'});})[_0x37192f('0x223b')](function(_0x23eca2){var _0x16177e=_0x37192f;_0x162117[_0x16177e('0x8c8')]({'title':_0x16177e('0x222b'),'msg':_0x23eca2[_0x16177e('0x11d0')]?_0x23eca2[_0x16177e('0x11d0')][_0x16177e('0x27e8')]?_0x23eca2[_0x16177e('0x11d0')]['message']:JSON[_0x16177e('0x3ad')](_0x23eca2[_0x16177e('0x11d0')]):_0x23eca2['toString']()});});}function _0x1c990a(_0x2406c2,_0x83cb35){var _0x1c14da=_0x3f83a0,_0x2d6703=_0x73aad[_0x1c14da('0xa5')]()[_0x1c14da('0x13e4')](_0x1c14da('0x346')+_0x32d445()['startCase']('vtigerAccount')+'?')[_0x1c14da('0x221c')](_0x1c14da('0xab2')+(_0x2406c2[_0x1c14da('0x2623')]||'vtigerAccount')+_0x1c14da('0x27bb')+_0x1c14da('0x21bd'))[_0x1c14da('0x4d1')](_0x1c14da('0xd46'))['targetEvent'](_0x83cb35)['ok']('OK')[_0x1c14da('0x2c1')](_0x1c14da('0x17'));_0x73aad['show'](_0x2d6703)[_0x1c14da('0xe19')](function(){_0x406c62(_0x2406c2);},function(){var _0x42dac9=_0x1c14da;console['log'](_0x42dac9('0x17'));});}var _0x51a6d4=!![],_0x1ac89e=0x1;_0x493439['$watch'](_0x3f83a0('0x20cb'),function(_0x17a63d,_0x112f01){var _0x5d34c1=_0x3f83a0;_0x51a6d4?_0x46f561(function(){_0x51a6d4=![];}):(!_0x112f01&&(_0x1ac89e=_0x2d0251[_0x5d34c1('0xa16')]['page']),_0x17a63d!==_0x112f01&&(_0x2d0251['query'][_0x5d34c1('0xc08')]=0x1),!_0x17a63d&&(_0x2d0251[_0x5d34c1('0xa16')][_0x5d34c1('0xc08')]=_0x1ac89e),_0x2d0251['getVtigerAccounts']());});function _0x4d4849(_0x199c46){var _0x39e9f2=_0x3f83a0;_0x2d0251[_0x39e9f2('0x2302')]=_0x199c46||{'count':0x0,'rows':[]};}function _0x53a54b(){var _0x1e589b=_0x3f83a0;_0x2d0251[_0x1e589b('0xa16')][_0x1e589b('0xab0')]=(_0x2d0251[_0x1e589b('0xa16')][_0x1e589b('0xc08')]-0x1)*_0x2d0251[_0x1e589b('0xa16')][_0x1e589b('0x1b6d')],_0x482843[_0x1e589b('0x179e')](_0x1e589b('0xd14'))?_0x2d0251[_0x1e589b('0x9c8')]=_0x3b2523[_0x1e589b('0xa80')][_0x1e589b('0x22d5')](_0x2d0251[_0x1e589b('0xa16')],_0x4d4849)[_0x1e589b('0xe59')]:(_0x2d0251['query']['id']=_0x2d0251[_0x1e589b('0x154f')]['id'],_0x2d0251['query'][_0x1e589b('0x1e59')]=_0x1e589b('0x1afc'),_0x2d0251['promise']=_0x3b2523[_0x1e589b('0x154f')][_0x1e589b('0x14e6')](_0x2d0251[_0x1e589b('0xa16')],_0x4d4849)[_0x1e589b('0xe59')]);}function _0x1a24fe(_0x4592aa,_0x11e681){var _0x1f3aff=_0x3f83a0;_0x73aad['show']({'controller':'CreateOrEditVtigerAccountDialogController','controllerAs':'vm','templateUrl':_0x2e92b2,'parent':angular[_0x1f3aff('0x24a1')](_0x28190d['body']),'targetEvent':_0x4592aa,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x11e681,'vtigerAccounts':_0x2d0251[_0x1f3aff('0x2302')][_0x1f3aff('0x16a7')],'license':_0x2d0251[_0x1f3aff('0x5c1')],'setting':_0x2d0251['setting'],'crudPermissions':_0x2d0251['crudPermissions']}});}function _0x406c62(_0x252144){var _0x2cba3e=_0x3f83a0;_0x3b2523[_0x2cba3e('0xa80')][_0x2cba3e('0x229e')]({'id':_0x252144['id']})['$promise'][_0x2cba3e('0xe19')](function(){var _0x1020bb=_0x2cba3e;_0x32d445()[_0x1020bb('0xa8b')](_0x2d0251[_0x1020bb('0x2302')][_0x1020bb('0x16a7')],{'id':_0x252144['id']}),_0x2d0251[_0x1020bb('0x2302')]['count']-=0x1,!_0x2d0251['vtigerAccounts'][_0x1020bb('0x16a7')][_0x1020bb('0x25ae')]&&_0x2d0251[_0x1020bb('0x87e')](),_0x162117[_0x1020bb('0x425')]({'title':_0x32d445()['startCase']('VtigerAccount')+_0x1020bb('0x1219'),'msg':_0x252144[_0x1020bb('0x2623')]?_0x252144[_0x1020bb('0x2623')]+_0x1020bb('0x2182'):''});})[_0x2cba3e('0x223b')](function(_0x13a84b){var _0x54dac1=_0x2cba3e;if(_0x13a84b['data']&&_0x13a84b['data']['errors']&&_0x13a84b[_0x54dac1('0x11d0')][_0x54dac1('0xcd2')][_0x54dac1('0x25ae')]){_0x2d0251[_0x54dac1('0xcd2')]=_0x13a84b[_0x54dac1('0x11d0')][_0x54dac1('0xcd2')]||[{'message':_0x13a84b[_0x54dac1('0x94f')](),'type':'SYSTEM:DELETEintVtigerAccount'}];for(var _0x478510=0x0;_0x478510<_0x13a84b[_0x54dac1('0x11d0')][_0x54dac1('0xcd2')][_0x54dac1('0x25ae')];_0x478510++){_0x162117['error']({'title':_0x13a84b[_0x54dac1('0x11d0')][_0x54dac1('0xcd2')][_0x478510]['type'],'msg':_0x13a84b[_0x54dac1('0x11d0')]['errors'][_0x478510][_0x54dac1('0x27e8')]});}}else _0x162117[_0x54dac1('0x8c8')]({'title':_0x13a84b[_0x54dac1('0x2833')]?'API:'+_0x13a84b[_0x54dac1('0x2833')]+'\x20-\x20'+_0x13a84b[_0x54dac1('0x1fd7')]:_0x54dac1('0x19e3'),'msg':_0x13a84b[_0x54dac1('0x11d0')]?JSON[_0x54dac1('0x3ad')](_0x13a84b[_0x54dac1('0x11d0')][_0x54dac1('0x27e8')]):_0x13a84b[_0x54dac1('0x27e8')]||_0x13a84b[_0x54dac1('0x94f')]()});});}function _0x6a8fb2(){var _0x4c816d=_0x3f83a0,_0x3eea1c=angular[_0x4c816d('0x89')](_0x2d0251[_0x4c816d('0x128e')]);return _0x2d0251['selectedVtigerAccounts']=[],_0x3eea1c;}function _0xfcb883(_0x452027){var _0x23201c=_0x3f83a0,_0xd93ef9=_0x73aad['confirm']()['title'](_0x23201c('0xda2'))['htmlContent'](_0x23201c('0xab2')+_0x2d0251[_0x23201c('0x128e')][_0x23201c('0x25ae')]+'\x20selected'+_0x23201c('0x21bd'))[_0x23201c('0x4d1')](_0x23201c('0x287c'))[_0x23201c('0x1345')](_0x452027)['ok']('OK')[_0x23201c('0x2c1')](_0x23201c('0x17'));_0x73aad[_0x23201c('0x26b2')](_0xd93ef9)[_0x23201c('0xe19')](function(){var _0x1b1e21=_0x23201c;_0x2d0251[_0x1b1e21('0x128e')][_0x1b1e21('0x1d7e')](function(_0x13ce9a){_0x406c62(_0x13ce9a);}),_0x2d0251[_0x1b1e21('0x128e')]=[];});}function _0x4ee213(){var _0x3d8f95=_0x3f83a0;_0x2d0251[_0x3d8f95('0x128e')]=[];}function _0x2bc345(){var _0x13e046=_0x3f83a0;_0x2d0251[_0x13e046('0x128e')]=_0x2d0251[_0x13e046('0x2302')]['rows'];}}const _0x135bc0=_0x5163f6;_0x30f4d0['$inject']=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0xd7b'),_0xb635d2('0x195b'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x30f4d0(_0xe6caca,_0xed7d88,_0x201133,_0x3e4a6d,_0x136463,_0x5953ce,_0x1ae8be,_0x1e0187,_0x206531,_0x2a0a95,_0x22f5d6,_0x35a5b5,_0x4b3888,_0x3129f6){var _0x3a0a41=_0xb635d2,_0x22f73a=this;_0x22f73a[_0x3a0a41('0x15a5')]=_0x22f5d6[_0x3a0a41('0x1ef8')](),_0x22f73a['errors']=[],_0x22f73a['setting']=_0x4b3888,_0x22f73a['license']=_0x35a5b5,_0x22f73a[_0x3a0a41('0xb3d')]=_0x3129f6,_0x22f73a[_0x3a0a41('0x1ccb')]={},_0x22f73a[_0x3a0a41('0x25ac')]=_0x22f73a[_0x3a0a41('0x22f1')]&&_0x22f73a[_0x3a0a41('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x22f73a[_0x3a0a41('0x13e4')]=_0x3a0a41('0x1906'),_0x22f73a['zendeskAccount']=angular[_0x3a0a41('0x89')](_0x206531),_0x22f73a[_0x3a0a41('0xd7b')]=_0x1e0187,_0x22f73a['newZendeskAccount']=![];!_0x22f73a['zendeskAccount']&&(_0x22f73a['zendeskAccount']={'type':_0x3a0a41('0x1da'),'authType':_0x3a0a41('0x1f6d'),'serverUrl':_0x201133[_0x3a0a41('0xec0')]()+_0x3a0a41('0x21a8')+_0x201133[_0x3a0a41('0x3b7')]()+(_0x201133[_0x3a0a41('0x11dc')]()?':'+_0x201133[_0x3a0a41('0x11dc')]():'')},_0x22f73a['title']=_0x3a0a41('0x1ffc'),_0x22f73a['newZendeskAccount']=!![]);_0x22f73a[_0x3a0a41('0x19bd')]=_0x57c6b1,_0x22f73a['saveZendeskAccount']=_0x3e39a8,_0x22f73a[_0x3a0a41('0x13ac')]=_0xe960b6,_0x22f73a[_0x3a0a41('0x2635')]=_0x288057,_0x22f73a[_0x3a0a41('0x2584')]=_0x16c872;function _0x57c6b1(){var _0x147bfd=_0x3a0a41;_0x22f73a[_0x147bfd('0xcd2')]=[],_0x2a0a95[_0x147bfd('0x9f0')][_0x147bfd('0xe5e')](_0x22f73a[_0x147bfd('0x195b')])[_0x147bfd('0xe59')][_0x147bfd('0xe19')](function(_0x1161c1){var _0x346551=_0x147bfd;_0x22f73a[_0x346551('0xd7b')][_0x346551('0x14c9')](_0x1161c1['toJSON']()),_0x1ae8be[_0x346551('0x425')]({'title':_0x346551('0x269b'),'msg':_0x22f73a['zendeskAccount']['name']?_0x22f73a[_0x346551('0x195b')][_0x346551('0x2623')]+_0x346551('0x105f'):''}),_0x16c872(_0x1161c1);})[_0x147bfd('0x223b')](function(_0x53c1be){var _0x4214be=_0x147bfd;if(_0x53c1be['data']&&_0x53c1be[_0x4214be('0x11d0')]['errors']&&_0x53c1be[_0x4214be('0x11d0')][_0x4214be('0xcd2')][_0x4214be('0x25ae')]){_0x22f73a[_0x4214be('0xcd2')]=_0x53c1be[_0x4214be('0x11d0')][_0x4214be('0xcd2')]||[{'message':_0x53c1be[_0x4214be('0x94f')](),'type':_0x4214be('0x508')}];for(var _0x467861=0x0;_0x467861<_0x53c1be[_0x4214be('0x11d0')][_0x4214be('0xcd2')]['length'];_0x467861+=0x1){_0x1ae8be['error']({'title':_0x53c1be[_0x4214be('0x11d0')]['errors'][_0x467861][_0x4214be('0x62e')],'msg':_0x53c1be[_0x4214be('0x11d0')][_0x4214be('0xcd2')][_0x467861]['message']});}}else _0x1ae8be['error']({'title':_0x53c1be[_0x4214be('0x2833')]?_0x4214be('0x27f2')+_0x53c1be['status']+_0x4214be('0x1b7c')+_0x53c1be[_0x4214be('0x1fd7')]:_0x4214be('0x508'),'msg':_0x53c1be['data']?JSON[_0x4214be('0x3ad')](_0x53c1be[_0x4214be('0x11d0')]['message']):_0x53c1be[_0x4214be('0x94f')]()});});}function _0x3e39a8(){var _0x3d0412=_0x3a0a41;_0x22f73a[_0x3d0412('0xcd2')]=[],_0x2a0a95['intZendeskAccount'][_0x3d0412('0xa70')]({'id':_0x22f73a['zendeskAccount']['id']},_0x22f73a['zendeskAccount'])[_0x3d0412('0xe59')][_0x3d0412('0xe19')](function(_0x35a647){var _0x58573b=_0x3d0412,_0x3365ed=_0x32d445()[_0x58573b('0xf15')](_0x22f73a[_0x58573b('0xd7b')],{'id':_0x35a647['id']});_0x3365ed&&_0x32d445()[_0x58573b('0x1d8')](_0x3365ed,_0x32d445()['pick'](_0x35a647[_0x58573b('0x250e')](),_0x32d445()['keys'](_0x3365ed))),_0x1ae8be['success']({'title':'ZendeskAccount\x20properly\x20saved!','msg':_0x22f73a[_0x58573b('0x195b')][_0x58573b('0x2623')]?_0x22f73a['zendeskAccount']['name']+_0x58573b('0x1c19'):''}),_0x16c872(_0x35a647);})['catch'](function(_0x5a1c5d){var _0x46ea32=_0x3d0412;if(_0x5a1c5d[_0x46ea32('0x11d0')]&&_0x5a1c5d[_0x46ea32('0x11d0')][_0x46ea32('0xcd2')]&&_0x5a1c5d[_0x46ea32('0x11d0')][_0x46ea32('0xcd2')][_0x46ea32('0x25ae')]){_0x22f73a[_0x46ea32('0xcd2')]=_0x5a1c5d[_0x46ea32('0x11d0')][_0x46ea32('0xcd2')]||[{'message':_0x5a1c5d[_0x46ea32('0x94f')](),'type':_0x46ea32('0x254b')}];for(var _0x8d9eb9=0x0;_0x8d9eb9<_0x5a1c5d[_0x46ea32('0x11d0')]['errors']['length'];_0x8d9eb9++){_0x1ae8be[_0x46ea32('0x8c8')]({'title':_0x5a1c5d[_0x46ea32('0x11d0')]['errors'][_0x8d9eb9][_0x46ea32('0x62e')],'msg':_0x5a1c5d[_0x46ea32('0x11d0')][_0x46ea32('0xcd2')][_0x8d9eb9][_0x46ea32('0x27e8')]});}}else _0x1ae8be[_0x46ea32('0x8c8')]({'title':_0x5a1c5d[_0x46ea32('0x2833')]?_0x46ea32('0x27f2')+_0x5a1c5d[_0x46ea32('0x2833')]+_0x46ea32('0x1b7c')+_0x5a1c5d[_0x46ea32('0x1fd7')]:_0x46ea32('0x254b'),'msg':_0x5a1c5d[_0x46ea32('0x11d0')]?JSON[_0x46ea32('0x3ad')](_0x5a1c5d[_0x46ea32('0x11d0')]['message']):_0x5a1c5d['toString']()});});}function _0xe960b6(_0x4ec041){var _0xa7d0b3=_0x3a0a41;_0x22f73a[_0xa7d0b3('0xcd2')]=[];var _0x36a0a1=_0x3e4a6d[_0xa7d0b3('0xa5')]()[_0xa7d0b3('0x13e4')](_0xa7d0b3('0x24d0'))[_0xa7d0b3('0xd0')]('The\x20zendeskAccount\x20will\x20be\x20deleted.')[_0xa7d0b3('0x4d1')](_0xa7d0b3('0x138d'))['ok'](_0xa7d0b3('0x2198'))[_0xa7d0b3('0x2c1')]('Cancel')[_0xa7d0b3('0x1345')](_0x4ec041);_0x3e4a6d['show'](_0x36a0a1)['then'](function(){var _0x1a7fe1=_0xa7d0b3;_0x2a0a95['intZendeskAccount'][_0x1a7fe1('0x229e')]({'id':_0x22f73a[_0x1a7fe1('0x195b')]['id']})[_0x1a7fe1('0xe59')][_0x1a7fe1('0xe19')](function(){var _0x110731=_0x1a7fe1;_0x32d445()[_0x110731('0xa8b')](_0x22f73a[_0x110731('0xd7b')],{'id':_0x22f73a[_0x110731('0x195b')]['id']}),_0x1ae8be[_0x110731('0x425')]({'title':_0x110731('0x43a'),'msg':(_0x22f73a[_0x110731('0x195b')][_0x110731('0x2623')]||_0x110731('0x195b'))+'\x20has\x20been\x20deleted!'}),_0x16c872(_0x22f73a[_0x110731('0x195b')]);})[_0x1a7fe1('0x223b')](function(_0x58ddbf){var _0xad741b=_0x1a7fe1;if(_0x58ddbf[_0xad741b('0x11d0')]&&_0x58ddbf[_0xad741b('0x11d0')]['errors']&&_0x58ddbf[_0xad741b('0x11d0')][_0xad741b('0xcd2')]['length']){_0x22f73a[_0xad741b('0xcd2')]=_0x58ddbf[_0xad741b('0x11d0')]['errors']||[{'message':_0x58ddbf['toString'](),'type':'api.intZendeskAccount.delete'}];for(var _0x52aa99=0x0;_0x52aa99<_0x58ddbf[_0xad741b('0x11d0')][_0xad741b('0xcd2')]['length'];_0x52aa99++){_0x1ae8be[_0xad741b('0x8c8')]({'title':_0x58ddbf['data'][_0xad741b('0xcd2')][_0x52aa99][_0xad741b('0x62e')],'msg':_0x58ddbf['data'][_0xad741b('0xcd2')][_0x52aa99]['message']});}}else _0x1ae8be['error']({'title':_0x58ddbf[_0xad741b('0x2833')]?_0xad741b('0x27f2')+_0x58ddbf[_0xad741b('0x2833')]+_0xad741b('0x1b7c')+_0x58ddbf[_0xad741b('0x1fd7')]:_0xad741b('0x2849'),'msg':_0x58ddbf[_0xad741b('0x11d0')]?JSON[_0xad741b('0x3ad')](_0x58ddbf[_0xad741b('0x11d0')][_0xad741b('0x27e8')]):_0x58ddbf[_0xad741b('0x27e8')]||_0x58ddbf[_0xad741b('0x94f')]()});});},function(){});}function _0x288057(_0x2db48f){return _0x2db48f===null?undefined:new Date(_0x2db48f);}function _0x16c872(_0x3354b0){var _0x40af84=_0x3a0a41;_0x3e4a6d[_0x40af84('0x11ed')](_0x3354b0);}}const _0x38bbe9=_0x30f4d0;_0x2c941b[_0xb635d2('0xb0c')]=['$scope','$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x271e'),_0xb635d2('0xe4b'),_0xb635d2('0xdbb'),_0xb635d2('0xe8b'),_0xb635d2('0x62e'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x2c941b(_0x3d17d0,_0x207ccd,_0x1d90bb,_0x3b003c,_0x189bc4,_0x8de210,_0x3471ea,_0x1aebee,_0x30ed4d,_0x4a97c4,_0x2c68c7,_0x2fca5,_0x3cd656){var _0x16e5ec=_0xb635d2,_0x569d3a=this;_0x569d3a[_0x16e5ec('0x15a5')]=_0x2fca5['getCurrentUser'](),_0x569d3a[_0x16e5ec('0xcd2')]=[],_0x569d3a[_0x16e5ec('0x13e4')]=_0x16e5ec('0x53c')+_0x32d445()[_0x16e5ec('0xcbc')](_0x4a97c4),_0x569d3a[_0x16e5ec('0xdbb')]=angular[_0x16e5ec('0x89')](_0x1aebee),_0x569d3a[_0x16e5ec('0xe4b')]=_0x3471ea,_0x569d3a[_0x16e5ec('0x62e')]=_0x4a97c4,_0x569d3a[_0x16e5ec('0xb3d')]=_0x3cd656,_0x569d3a['newItem']=![];!_0x569d3a[_0x16e5ec('0xdbb')]&&(_0x569d3a['item']={'type':_0x16e5ec('0x19d1')},_0x569d3a[_0x16e5ec('0xdbb')][_0x32d445()[_0x16e5ec('0xbf6')](_0x4a97c4)+'Id']=_0x8de210['id'],_0x569d3a[_0x16e5ec('0x13e4')]=_0x16e5ec('0x7e2')+_0x32d445()[_0x16e5ec('0xcbc')](_0x4a97c4),_0x569d3a[_0x16e5ec('0xa3')]=!![]);_0x569d3a[_0x16e5ec('0x9ca')]=_0x2c1c1e,_0x569d3a[_0x16e5ec('0x1384')]=_0x4692b4,_0x569d3a[_0x16e5ec('0xc32')]=_0x14ea79,_0x569d3a[_0x16e5ec('0x142b')]=_0x1f5354,_0x569d3a['closeDialog']=_0xd7ef70,_0x2c68c7[_0x16e5ec('0x19a5')][_0x16e5ec('0x22d5')]({'nolimit':!![]})['$promise'][_0x16e5ec('0xe19')](function(_0x30c602){var _0x1f384d=_0x16e5ec;return _0x569d3a[_0x1f384d('0x1a9e')]=_0x30c602[_0x1f384d('0x16a7')]?_0x30c602[_0x1f384d('0x16a7')]:[],_0x2c68c7[_0x1f384d('0x22cf')][_0x1f384d('0x215e')]()[_0x1f384d('0xe59')];})['then'](function(_0x4f2de1){var _0x377f43=_0x16e5ec;return _0x569d3a[_0x377f43('0x1230')]=_0x32d445()[_0x377f43('0x11d3')](_0x32d445()[_0x377f43('0x1234')](_0x4f2de1),[_0x377f43('0xe59'),_0x377f43('0x113c'),_0x377f43('0x15c9'),_0x377f43('0x1ce9'),_0x377f43('0x1bea')]),_0x569d3a[_0x377f43('0x1230')][_0x377f43('0xb76')](_0x377f43('0xeaa')),_0x2c68c7[_0x377f43('0xa4e')]['describe']()[_0x377f43('0xe59')];})[_0x16e5ec('0xe19')](function(_0x3fe71d){var _0x45401c=_0x16e5ec;_0x569d3a[_0x45401c('0x9f9')]=_0x32d445()[_0x45401c('0x11d3')](_0x32d445()[_0x45401c('0x1234')](_0x3fe71d),['$promise',_0x45401c('0x113c'),_0x45401c('0x15c9'),_0x45401c('0x1ce9'),'sourceid']),_0x569d3a[_0x45401c('0x9f9')][_0x45401c('0xb76')](_0x45401c('0xeaa'));})[_0x16e5ec('0x223b')](function(_0x5decee){var _0xaaa1b9=_0x16e5ec;_0x189bc4[_0xaaa1b9('0x8c8')]({'title':_0x5decee[_0xaaa1b9('0x2833')]?_0xaaa1b9('0x27f2')+_0x5decee[_0xaaa1b9('0x2833')]+'\x20-\x20'+_0x5decee[_0xaaa1b9('0x1fd7')]:'SYSTEM:GETVARIABLES','msg':_0x5decee[_0xaaa1b9('0x11d0')]?JSON['stringify'](_0x5decee[_0xaaa1b9('0x11d0')]):_0x5decee[_0xaaa1b9('0x94f')]()});}),_0x2c68c7[_0x16e5ec('0x9f0')][_0x16e5ec('0x23f8')]({'id':_0x30ed4d['id'],'ticketType':_0x8de210[_0x16e5ec('0x11d2')]?_0x8de210[_0x16e5ec('0x11d2')]:undefined})[_0x16e5ec('0xe59')][_0x16e5ec('0xe19')](function(_0x27661e){var _0x5424b9=_0x16e5ec;_0x569d3a['accountConnected']=!![],_0x569d3a['fields']=_0x27661e[_0x5424b9('0x16a7')]?_0x27661e[_0x5424b9('0x16a7')]:[],_0x569d3a[_0x5424b9('0xdbb')][_0x5424b9('0x1c96')]&&(_0x569d3a[_0x5424b9('0x1129')]=_0x32d445()['find'](_0x569d3a['fields'],{'id':_0x569d3a['item'][_0x5424b9('0x1c96')]}));})['catch'](function(_0x883769){var _0x58df3b=_0x16e5ec;_0x569d3a[_0x58df3b('0xbba')]=![],console[_0x58df3b('0x8c8')](_0x883769);});function _0x2c1c1e(){var _0x2599d6=_0x16e5ec;_0x569d3a[_0x2599d6('0xcd2')]=[],_0x569d3a[_0x2599d6('0x1129')]&&(_0x569d3a[_0x2599d6('0xdbb')]['idField']=_0x569d3a[_0x2599d6('0x1129')]['id'],_0x569d3a[_0x2599d6('0xdbb')][_0x2599d6('0x99e')]=_0x569d3a[_0x2599d6('0x1129')][_0x2599d6('0x2623')],_0x569d3a[_0x2599d6('0xdbb')]['customField']=_0x569d3a['customField'][_0x2599d6('0x261d')]),_0x2c68c7[_0x2599d6('0x94b')][_0x2599d6('0xe5e')](_0x569d3a[_0x2599d6('0xdbb')])[_0x2599d6('0xe59')]['then'](function(_0x5f22d4){var _0x1014ca=_0x2599d6;_0x569d3a['items'][_0x1014ca('0x14c9')](_0x5f22d4),_0x189bc4[_0x1014ca('0x425')]({'title':_0x32d445()['capitalize'](_0x4a97c4)+'\x20properly\x20created','msg':_0x32d445()[_0x1014ca('0xbf6')](_0x4a97c4)+_0x1014ca('0x105f')}),_0xd7ef70();})[_0x2599d6('0x223b')](function(_0x4cf985){var _0x972e96=_0x2599d6;console[_0x972e96('0x8c8')](_0x4cf985),_0x569d3a[_0x972e96('0xcd2')]=_0x4cf985[_0x972e96('0x11d0')][_0x972e96('0xcd2')]||[{'message':_0x4cf985[_0x972e96('0x94f')](),'type':_0x972e96('0xc4c')}];});}function _0x4692b4(){var _0x23be32=_0x16e5ec;_0x569d3a['errors']=[],_0x569d3a[_0x23be32('0x1129')]&&(_0x569d3a[_0x23be32('0xdbb')][_0x23be32('0x1c96')]=_0x569d3a[_0x23be32('0x1129')]['id'],_0x569d3a[_0x23be32('0xdbb')][_0x23be32('0x99e')]=_0x569d3a[_0x23be32('0x1129')][_0x23be32('0x2623')],_0x569d3a[_0x23be32('0xdbb')]['customField']=_0x569d3a[_0x23be32('0x1129')][_0x23be32('0x261d')]),_0x2c68c7[_0x23be32('0x94b')]['update']({'id':_0x569d3a['item']['id']},_0x569d3a[_0x23be32('0xdbb')])['$promise'][_0x23be32('0xe19')](function(_0x34e02e){var _0x1032a4=_0x23be32,_0x22701b=_0x32d445()['find'](_0x569d3a[_0x1032a4('0xe4b')],{'id':_0x34e02e['id']});_0x22701b&&_0x32d445()[_0x1032a4('0x1d8')](_0x22701b,_0x34e02e),_0x189bc4[_0x1032a4('0x425')]({'title':_0x32d445()['capitalize'](_0x4a97c4)+_0x1032a4('0xdaf'),'msg':_0x32d445()[_0x1032a4('0xbf6')](_0x4a97c4)+_0x1032a4('0x1c19')}),_0xd7ef70();})['catch'](function(_0x22cfc7){var _0x30fb4=_0x23be32;console[_0x30fb4('0x8c8')](_0x22cfc7),_0x569d3a[_0x30fb4('0xcd2')]=_0x22cfc7[_0x30fb4('0x11d0')][_0x30fb4('0xcd2')]||[{'message':_0x22cfc7[_0x30fb4('0x94f')](),'type':_0x30fb4('0x2134')}];});}function _0x14ea79(_0x500b0e){var _0x7406=_0x16e5ec;_0x569d3a[_0x7406('0xcd2')]=[];var _0x16a52e=_0x3b003c[_0x7406('0xa5')]()[_0x7406('0x13e4')](_0x7406('0x24d0'))['content'](_0x7406('0x2784')+_0x4a97c4+_0x7406('0x21bd'))[_0x7406('0x4d1')](_0x7406('0x13de')+_0x32d445()[_0x7406('0xbf6')](_0x4a97c4))['ok'](_0x7406('0x2198'))['cancel'](_0x7406('0x8a3'))['targetEvent'](_0x500b0e);_0x3b003c[_0x7406('0x26b2')](_0x16a52e)[_0x7406('0xe19')](function(){var _0xce247a=_0x7406;_0x2c68c7[_0xce247a('0x94b')]['delete']({'id':_0x569d3a['item']['id']})[_0xce247a('0xe59')]['then'](function(){var _0x332eff=_0xce247a;_0x32d445()[_0x332eff('0xa8b')](_0x569d3a[_0x332eff('0xe4b')],{'id':_0x569d3a[_0x332eff('0xdbb')]['id']}),_0x189bc4[_0x332eff('0x425')]({'title':_0x32d445()[_0x332eff('0xbf6')](_0x4a97c4)+_0x332eff('0x1ddc'),'msg':_0x32d445()[_0x332eff('0xbf6')](_0x4a97c4)+'\x20has\x20been\x20deleted!'}),_0xd7ef70();})[_0xce247a('0x223b')](function(_0x38869a){var _0x364086=_0xce247a;console['error'](_0x38869a),_0x569d3a[_0x364086('0xcd2')]=_0x38869a[_0x364086('0x11d0')][_0x364086('0xcd2')]||[{'message':_0x38869a[_0x364086('0x94f')](),'type':'api.item.delete'}];});},function(){});}function _0x1f5354(){var _0x5f2285=_0x16e5ec;return _0x569d3a[_0x5f2285('0xdbb')][_0x5f2285('0x17b')]!==undefined?_0x569d3a['item'][_0x5f2285('0x17b')]:_0x5f2285('0xc');}function _0xd7ef70(){var _0x23b185=_0x16e5ec;_0x3b003c[_0x23b185('0x11ed')]();}}const _0x38696c=_0x2c941b;_0x4e3e3e[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x195b'),'userProfileSection'];function _0x4e3e3e(_0x4dfc23,_0x158d82,_0x289054,_0x2091c8,_0x33ef4b,_0x4fcdd0,_0x10952c,_0x279c8f,_0x30d46f,_0x5a4a6c,_0xfe234d,_0x1be908){var _0x220704=_0xb635d2,_0x21df70=this;_0x21df70[_0x220704('0x15a5')]=_0x5a4a6c[_0x220704('0x1ef8')](),_0x21df70[_0x220704('0x5c1')]=_0x4fcdd0,_0x21df70[_0x220704('0x22f1')]=_0x10952c,_0x21df70[_0x220704('0x25ac')]=_0x21df70[_0x220704('0x22f1')][_0x220704('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x21df70[_0x220704('0x2170')]=_0x158d82['protocol']()+_0x220704('0x21a8')+_0x158d82[_0x220704('0x3b7')](),_0x21df70[_0x220704('0x195b')]=_0xfe234d||_0x4dfc23[_0x220704('0x2ef')][_0x220704('0x195b')]||{},_0x21df70[_0x220704('0xb59')]=_0x1be908&&_0x1be908['count']==0x1?_0x1be908[_0x220704('0x16a7')][0x0]:null,_0x21df70['crudPermissions']=_0x5a4a6c['parseCrudPermissions'](_0x21df70['userProfileSection']?_0x21df70['userProfileSection'][_0x220704('0xb3d')]:null),_0x21df70['hasModulePermissions']={},_0x21df70['selectedTab']=_0x4dfc23[_0x220704('0x2ef')]['tab']||0x0,_0x21df70[_0x220704('0xbdc')]=_0x30d46f['info'],_0x21df70[_0x220704('0x7c8')]=_0x39fca0,_0x21df70[_0x220704('0x54d')]=_0x58c3ff;function _0x39fca0(){var _0x2037e2=_0x220704;_0x4dfc23['go'](_0x2037e2('0x489'),{},{'reload':_0x2037e2('0x489')});}function _0x58c3ff(){var _0x1e2c18=_0x220704;_0x279c8f[_0x1e2c18('0x9f0')][_0x1e2c18('0xa70')]({'id':_0x21df70['zendeskAccount']['id']},_0x21df70['zendeskAccount'])[_0x1e2c18('0xe59')][_0x1e2c18('0xe19')](function(){var _0x445745=_0x1e2c18;_0x30d46f[_0x445745('0x425')]({'title':_0x445745('0x1cf2'),'msg':_0x21df70[_0x445745('0x195b')][_0x445745('0x2623')]?_0x21df70[_0x445745('0x195b')][_0x445745('0x2623')]+_0x445745('0x283b'):''});})['catch'](function(_0x1aaaad){var _0x2fcc50=_0x1e2c18;_0x30d46f[_0x2fcc50('0x8c8')]({'title':_0x1aaaad[_0x2fcc50('0x2833')]?'API:'+_0x1aaaad[_0x2fcc50('0x2833')]+_0x2fcc50('0x1b7c')+_0x1aaaad[_0x2fcc50('0x1fd7')]:'SYSTEM:GETintZendeskAccount','msg':_0x1aaaad['data']?JSON['stringify'](_0x1aaaad[_0x2fcc50('0x11d0')]):_0x1aaaad[_0x2fcc50('0x94f')]()});});}}const _0x426564=_0x4e3e3e,_0x13c986=_0x59426a['p']+_0xb635d2('0x1d2'),_0x904a9f=_0x59426a['p']+_0xb635d2('0x2695');_0x379a90[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$document','api',_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x379a90(_0x5c4dc0,_0x55bf74,_0x77ae1a,_0x138407,_0x38449f){var _0x116d9a=_0xb635d2,_0x10d4bf=this;_0x10d4bf['currentUser']=_0x38449f['getCurrentUser'](),_0x10d4bf[_0x116d9a('0x195b')]={},_0x10d4bf[_0x116d9a('0x158')]={},_0x10d4bf[_0x116d9a('0x1a76')]=[],_0x10d4bf[_0x116d9a('0x73')]=-0x1,_0x10d4bf[_0x116d9a('0xb3d')],_0x10d4bf['init']=_0x1a94df,_0x10d4bf[_0x116d9a('0xdd')]=_0x3424ae,_0x10d4bf[_0x116d9a('0xa91')]=_0x8d4cff,_0x10d4bf[_0x116d9a('0x1c09')]=_0x5ac24d,_0x10d4bf[_0x116d9a('0x244a')]=[],_0x10d4bf[_0x116d9a('0x1a9f')]=_0x3c1c12,_0x77ae1a['tag'][_0x116d9a('0x22d5')]({'nolimit':!![],'sort':'name'})[_0x116d9a('0xe59')][_0x116d9a('0xe19')](function(_0x3fd63b){var _0x191b99=_0x116d9a;_0x10d4bf[_0x191b99('0x1105')]=_0x3fd63b[_0x191b99('0x16a7')]?_0x3fd63b[_0x191b99('0x16a7')]:[];})['catch'](function(_0x2e4bf7){var _0x12e694=_0x116d9a;_0x138407[_0x12e694('0x8c8')]({'title':_0x2e4bf7[_0x12e694('0x2833')]?_0x12e694('0x27f2')+_0x2e4bf7[_0x12e694('0x2833')]+'\x20-\x20'+_0x2e4bf7[_0x12e694('0x1fd7')]:'SYSTEM:GETTAGS','msg':_0x2e4bf7[_0x12e694('0x11d0')]?JSON[_0x12e694('0x3ad')](_0x2e4bf7[_0x12e694('0x11d0')]):_0x2e4bf7[_0x12e694('0x94f')]()});});function _0x3c1c12(){var _0x4000f2=_0x116d9a;_0x77ae1a[_0x4000f2('0x1ab1')][_0x4000f2('0x670')]({'id':_0x10d4bf['zendeskConfiguration']['id'],'ids':_0x10d4bf[_0x4000f2('0x244a')]})[_0x4000f2('0xe59')]['then'](function(){var _0x4ff600=_0x4000f2;_0x138407[_0x4ff600('0x425')]({'title':_0x4ff600('0xe43'),'msg':_0x4ff600('0x1db0')});})[_0x4000f2('0x223b')](function(_0x345b78){var _0xa89276=_0x4000f2;_0x138407['error']({'title':_0x345b78['status']?'API:'+_0x345b78['status']+'\x20-\x20'+_0x345b78[_0xa89276('0x1fd7')]:'SYSTEM:ADDTAGS','msg':_0x345b78['data']?JSON['stringify'](_0x345b78[_0xa89276('0x11d0')]):_0x345b78['toString']()});});}function _0x1a94df(_0x95a426,_0x5dfc5c){var _0x34ffdf=_0x116d9a;_0x10d4bf[_0x34ffdf('0x195b')]=_0x95a426,_0x10d4bf[_0x34ffdf('0xb3d')]=typeof _0x5dfc5c!==_0x34ffdf('0x1143')?_0x5dfc5c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x77ae1a['intZendeskAccount'][_0x34ffdf('0x1ac6')]({'id':_0x10d4bf[_0x34ffdf('0x195b')]['id'],'sort':_0x34ffdf('0x7e8')})[_0x34ffdf('0xe59')][_0x34ffdf('0xe19')](function(_0x3adcb0){var _0x249e30=_0x34ffdf;return _0x10d4bf[_0x249e30('0x1a76')]=_0x3adcb0[_0x249e30('0x16a7')]?_0x3adcb0[_0x249e30('0x16a7')]:[],_0x10d4bf['zendeskConfigurations'][_0x249e30('0x25ae')]&&_0x10d4bf[_0x249e30('0xdd')](0x0),_0x77ae1a[_0x249e30('0x19a5')]['get']({'nolimit':!![],'sort':_0x249e30('0x2623')})[_0x249e30('0xe59')];})[_0x34ffdf('0xe19')](function(_0x382c22){var _0x16a0f7=_0x34ffdf;_0x10d4bf[_0x16a0f7('0x1a9e')]=_0x382c22[_0x16a0f7('0x16a7')]?_0x382c22[_0x16a0f7('0x16a7')]:[],_0x10d4bf[_0x16a0f7('0x27b3')]=_0x32d445()[_0x16a0f7('0x226f')](_0x10d4bf[_0x16a0f7('0x1a9e')],'id');})[_0x34ffdf('0x223b')](function(_0x1be941){var _0x55a3d3=_0x34ffdf;_0x138407[_0x55a3d3('0x8c8')]({'title':_0x1be941[_0x55a3d3('0x2833')]?_0x55a3d3('0x27f2')+_0x1be941[_0x55a3d3('0x2833')]+'\x20-\x20'+_0x1be941[_0x55a3d3('0x1fd7')]:_0x55a3d3('0xf5b'),'msg':_0x1be941[_0x55a3d3('0x11d0')]?JSON['stringify'](_0x1be941[_0x55a3d3('0x11d0')]):_0x1be941[_0x55a3d3('0x94f')]()});});}function _0x3424ae(_0x3e3339){var _0x5b1041=_0x116d9a;_0x10d4bf[_0x5b1041('0x158')]=_0x10d4bf['zendeskConfigurations'][_0x3e3339],_0x10d4bf[_0x5b1041('0x73')]=_0x3e3339,_0x77ae1a['intZendeskConfiguration'][_0x5b1041('0xe77')]({'id':_0x10d4bf[_0x5b1041('0x158')]['id']})[_0x5b1041('0xe59')][_0x5b1041('0xe19')](function(_0xd103ff){var _0x4fc31d=_0x5b1041;return _0x10d4bf[_0x4fc31d('0x126e')]=_0xd103ff[_0x4fc31d('0x16a7')]?_0xd103ff[_0x4fc31d('0x16a7')]:[],_0x77ae1a[_0x4fc31d('0x1ab1')][_0x4fc31d('0x280b')]({'id':_0x10d4bf[_0x4fc31d('0x158')]['id']})[_0x4fc31d('0xe59')];})[_0x5b1041('0xe19')](function(_0x4e84ff){var _0x1ec791=_0x5b1041;return _0x10d4bf[_0x1ec791('0xb9c')]=_0x4e84ff[_0x1ec791('0x16a7')]?_0x4e84ff[_0x1ec791('0x16a7')]:[],_0x77ae1a[_0x1ec791('0x1ab1')]['getFields']({'id':_0x10d4bf[_0x1ec791('0x158')]['id']})[_0x1ec791('0xe59')];})[_0x5b1041('0xe19')](function(_0x1f0e05){var _0x48e798=_0x5b1041;_0x10d4bf['fields']=_0x1f0e05['rows']?_0x1f0e05[_0x48e798('0x16a7')]:[];})[_0x5b1041('0x223b')](function(_0x5d97e3){var _0x418c62=_0x5b1041;_0x138407[_0x418c62('0x8c8')]({'title':_0x5d97e3[_0x418c62('0x2833')]?_0x418c62('0x27f2')+_0x5d97e3[_0x418c62('0x2833')]+_0x418c62('0x1b7c')+_0x5d97e3[_0x418c62('0x1fd7')]:'SYSTEM:GETConfigurations','msg':_0x5d97e3[_0x418c62('0x11d0')]?JSON[_0x418c62('0x3ad')](_0x5d97e3[_0x418c62('0x11d0')]):_0x5d97e3[_0x418c62('0x94f')]()});}),_0x77ae1a['intZendeskConfiguration'][_0x5b1041('0x17b8')]({'id':_0x10d4bf[_0x5b1041('0x158')]['id']})['$promise']['then'](function(_0x6b17ee){var _0x4f764d=_0x5b1041;_0x10d4bf['selectedTags']=_0x6b17ee[_0x4f764d('0x16a7')]?_0x32d445()[_0x4f764d('0x65a')](_0x6b17ee['rows'],'id'):[];})['catch'](function(_0x5665f9){var _0xe66a3c=_0x5b1041;_0x138407['error']({'title':_0x5665f9[_0xe66a3c('0x2833')]?_0xe66a3c('0x27f2')+_0x5665f9['status']+'\x20-\x20'+_0x5665f9[_0xe66a3c('0x1fd7')]:_0xe66a3c('0x215c'),'msg':_0x5665f9['data']?JSON[_0xe66a3c('0x3ad')](_0x5665f9['data']):_0x5665f9['toString']()});});}function _0x8d4cff(_0x39f803,_0x147a3c){var _0x1f6197=_0x116d9a;_0x5c4dc0[_0x1f6197('0x26b2')]({'controller':'CreateOrEditZendeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x13c986,'parent':angular[_0x1f6197('0x24a1')](_0x55bf74[_0x1f6197('0x19b2')]),'targetEvent':_0x39f803,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x147a3c,'zendeskConfigurations':_0x10d4bf[_0x1f6197('0x1a76')],'license':null,'setting':null,'crudPermissions':_0x10d4bf[_0x1f6197('0xb3d')]}})[_0x1f6197('0x23')](function(){var _0x1a40ea=_0x1f6197;_0x10d4bf[_0x1a40ea('0xdd')](0x0);});}function _0x5ac24d(_0x2055d4,_0x9214a4){var _0x484cd3=_0x116d9a,_0xead36e=_0x5c4dc0['confirm']()['title'](_0x484cd3('0x85d'))['htmlContent'](_0x484cd3('0xab2')+(_0x9214a4[_0x484cd3('0x2623')]||_0x484cd3('0x158'))+_0x484cd3('0x27bb')+_0x484cd3('0x21bd'))['ariaLabel']('delete\x20zendeskConfiguration')[_0x484cd3('0x1345')](_0x2055d4)['ok']('OK')[_0x484cd3('0x2c1')](_0x484cd3('0x17'));_0x5c4dc0[_0x484cd3('0x26b2')](_0xead36e)[_0x484cd3('0xe19')](function(){var _0x61c8d0=_0x484cd3;_0x77ae1a[_0x61c8d0('0x1ab1')]['delete']({'id':_0x9214a4['id']})[_0x61c8d0('0xe59')][_0x61c8d0('0xe19')](function(){var _0x3b4474=_0x61c8d0;_0x32d445()[_0x3b4474('0xa8b')](_0x10d4bf[_0x3b4474('0x1a76')],{'id':_0x9214a4['id']}),_0x138407['success']({'title':_0x3b4474('0x36d'),'msg':_0x9214a4[_0x3b4474('0x2623')]?_0x9214a4[_0x3b4474('0x2623')]+_0x3b4474('0x2182'):''});})[_0x61c8d0('0x223b')](function(_0x4643eb){var _0x1bd322=_0x61c8d0;_0x138407[_0x1bd322('0x8c8')]({'title':_0x4643eb[_0x1bd322('0x2833')]?_0x1bd322('0x27f2')+_0x4643eb[_0x1bd322('0x2833')]+_0x1bd322('0x1b7c')+_0x4643eb[_0x1bd322('0x1fd7')]:_0x1bd322('0x127'),'msg':_0x4643eb['data']?JSON[_0x1bd322('0x3ad')](_0x4643eb[_0x1bd322('0x11d0')]):_0x4643eb[_0x1bd322('0x94f')]()});})['finally'](function(){_0x10d4bf['getZendeskConfiguration'](0x0);});},function(){var _0x51a23f=_0x484cd3;console[_0x51a23f('0x1fe9')](_0x51a23f('0x17'));});}_0x10d4bf[_0x116d9a('0x2508')]=[],_0x10d4bf[_0x116d9a('0x16b2')]=_0x2ccd00,_0x10d4bf['deleteSubjectConfirm']=_0xd65157,_0x10d4bf[_0x116d9a('0x1c53')]=_0x29a62f;function _0x2ccd00(_0x503732,_0x25b035){var _0x37e75b=_0x116d9a;_0x5c4dc0[_0x37e75b('0x26b2')]({'controller':_0x37e75b('0x1c6f'),'controllerAs':'vm','templateUrl':_0x904a9f,'parent':angular[_0x37e75b('0x24a1')](_0x55bf74[_0x37e75b('0x19b2')]),'targetEvent':_0x503732,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x25b035,'items':_0x10d4bf[_0x37e75b('0x126e')],'configuration':_0x10d4bf[_0x37e75b('0x158')],'account':_0x10d4bf[_0x37e75b('0x195b')],'license':null,'setting':null,'crudPermissions':_0x10d4bf['crudPermissions']}});}function _0x4d4778(_0x27b2b6){var _0x72c27=_0x116d9a;_0x77ae1a[_0x72c27('0x94b')]['delete']({'id':_0x27b2b6['id']})[_0x72c27('0xe59')][_0x72c27('0xe19')](function(){var _0x197df8=_0x72c27;_0x32d445()[_0x197df8('0xa8b')](_0x10d4bf[_0x197df8('0x126e')],{'id':_0x27b2b6['id']}),_0x138407['success']({'title':'Subject\x20deleted!','msg':_0x197df8('0xae3')});})[_0x72c27('0x223b')](function(_0x49ec8d){var _0x2bedcc=_0x72c27;_0x138407['error']({'title':_0x49ec8d['status']?_0x2bedcc('0x27f2')+_0x49ec8d[_0x2bedcc('0x2833')]+'\x20-\x20'+_0x49ec8d['statusText']:_0x2bedcc('0x1dde'),'msg':_0x49ec8d[_0x2bedcc('0x11d0')]?JSON[_0x2bedcc('0x3ad')](_0x49ec8d['data']):_0x49ec8d[_0x2bedcc('0x94f')]()});});}function _0xd65157(_0x1f8e22,_0x588843){var _0xd82ca4=_0x116d9a,_0x2c1b00=_0x5c4dc0[_0xd82ca4('0xa5')]()[_0xd82ca4('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')['htmlContent'](_0xd82ca4('0x5f9')+_0xd82ca4('0x21bd'))[_0xd82ca4('0x4d1')](_0xd82ca4('0x974'))['targetEvent'](_0x1f8e22)['ok']('OK')[_0xd82ca4('0x2c1')]('CANCEL');_0x5c4dc0[_0xd82ca4('0x26b2')](_0x2c1b00)[_0xd82ca4('0xe19')](function(){_0x4d4778(_0x588843);},function(){var _0x2b1a7c=_0xd82ca4;console[_0x2b1a7c('0x1fe9')]('CANCEL');});}function _0x29a62f(_0x3b3a6d){var _0x43f60b=_0x116d9a,_0x23322f=_0x5c4dc0[_0x43f60b('0xa5')]()[_0x43f60b('0x13e4')](_0x43f60b('0x232a'))[_0x43f60b('0x221c')](_0x43f60b('0xab2')+_0x10d4bf['selectedSubjects'][_0x43f60b('0x25ae')]+_0x43f60b('0x5bc')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x43f60b('0xbc0'))[_0x43f60b('0x1345')](_0x3b3a6d)['ok']('OK')['cancel'](_0x43f60b('0x17'));_0x5c4dc0[_0x43f60b('0x26b2')](_0x23322f)['then'](function(){var _0x49027c=_0x43f60b;_0x10d4bf[_0x49027c('0x2508')]['forEach'](function(_0x14a91b){_0x4d4778(_0x14a91b);}),_0x10d4bf[_0x49027c('0x2508')]=[];});}_0x10d4bf['selectedDescriptions']=[],_0x10d4bf['createOrEditDescription']=_0x431d71,_0x10d4bf[_0x116d9a('0x95b')]=_0x36ed02,_0x10d4bf[_0x116d9a('0xd2c')]=_0x55fa06;function _0x431d71(_0x547f0b,_0x2c559d){var _0x38f604=_0x116d9a;_0x5c4dc0[_0x38f604('0x26b2')]({'controller':_0x38f604('0x1c6f'),'controllerAs':'vm','templateUrl':_0x904a9f,'parent':angular[_0x38f604('0x24a1')](_0x55bf74[_0x38f604('0x19b2')]),'targetEvent':_0x547f0b,'clickOutsideToClose':!![],'locals':{'type':_0x38f604('0x897'),'item':_0x2c559d,'items':_0x10d4bf[_0x38f604('0xb9c')],'configuration':_0x10d4bf[_0x38f604('0x158')],'account':_0x10d4bf[_0x38f604('0x195b')],'license':null,'setting':null,'crudPermissions':_0x10d4bf[_0x38f604('0xb3d')]}});}function _0x57e188(_0x1b08c7){var _0x334496=_0x116d9a;_0x77ae1a[_0x334496('0x94b')][_0x334496('0x229e')]({'id':_0x1b08c7['id']})['$promise']['then'](function(){var _0x4814e1=_0x334496;_0x32d445()[_0x4814e1('0xa8b')](_0x10d4bf[_0x4814e1('0xb9c')],{'id':_0x1b08c7['id']}),_0x138407[_0x4814e1('0x425')]({'title':_0x4814e1('0x1c52'),'msg':_0x4814e1('0x1139')});})[_0x334496('0x223b')](function(_0x4f0701){var _0x22a9b4=_0x334496;_0x138407['error']({'title':_0x4f0701[_0x22a9b4('0x2833')]?_0x22a9b4('0x27f2')+_0x4f0701[_0x22a9b4('0x2833')]+_0x22a9b4('0x1b7c')+_0x4f0701[_0x22a9b4('0x1fd7')]:_0x22a9b4('0x1dde'),'msg':_0x4f0701[_0x22a9b4('0x11d0')]?JSON[_0x22a9b4('0x3ad')](_0x4f0701[_0x22a9b4('0x11d0')]):_0x4f0701[_0x22a9b4('0x94f')]()});});}function _0x36ed02(_0x228420,_0x120f37){var _0x3c1ae=_0x116d9a,_0x3a76b2=_0x5c4dc0[_0x3c1ae('0xa5')]()['title'](_0x3c1ae('0x1c50'))[_0x3c1ae('0x221c')](_0x3c1ae('0x11e1')+_0x3c1ae('0x21bd'))['ariaLabel'](_0x3c1ae('0x1dc0'))['targetEvent'](_0x228420)['ok']('OK')[_0x3c1ae('0x2c1')](_0x3c1ae('0x17'));_0x5c4dc0[_0x3c1ae('0x26b2')](_0x3a76b2)[_0x3c1ae('0xe19')](function(){_0x57e188(_0x120f37);},function(){var _0x38d485=_0x3c1ae;console[_0x38d485('0x1fe9')](_0x38d485('0x17'));});}function _0x55fa06(_0x13dba7){var _0x28c4d1=_0x116d9a,_0x5e532c=_0x5c4dc0['confirm']()[_0x28c4d1('0x13e4')](_0x28c4d1('0x23f4'))[_0x28c4d1('0x221c')](_0x28c4d1('0xab2')+_0x10d4bf[_0x28c4d1('0x858')][_0x28c4d1('0x25ae')]+'\x20selected'+_0x28c4d1('0x21bd'))[_0x28c4d1('0x4d1')](_0x28c4d1('0x162'))[_0x28c4d1('0x1345')](_0x13dba7)['ok']('OK')['cancel'](_0x28c4d1('0x17'));_0x5c4dc0[_0x28c4d1('0x26b2')](_0x5e532c)[_0x28c4d1('0xe19')](function(){var _0x187931=_0x28c4d1;_0x10d4bf['selectedDescriptions'][_0x187931('0x1d7e')](function(_0x4e309a){_0x57e188(_0x4e309a);}),_0x10d4bf[_0x187931('0x858')]=[];});}_0x10d4bf[_0x116d9a('0xf97')]=[],_0x10d4bf[_0x116d9a('0x131')]=_0x167e7e,_0x10d4bf['deleteFieldConfirm']=_0x312c3a,_0x10d4bf[_0x116d9a('0xdfd')]=_0x194741;function _0x167e7e(_0x487499,_0x2d8107){var _0x4cea6f=_0x116d9a;_0x5c4dc0[_0x4cea6f('0x26b2')]({'controller':_0x4cea6f('0x1c6f'),'controllerAs':'vm','templateUrl':_0x904a9f,'parent':angular[_0x4cea6f('0x24a1')](_0x55bf74['body']),'targetEvent':_0x487499,'clickOutsideToClose':!![],'locals':{'type':_0x4cea6f('0x15d1'),'item':_0x2d8107,'items':_0x10d4bf[_0x4cea6f('0x1d17')],'configuration':_0x10d4bf[_0x4cea6f('0x158')],'account':_0x10d4bf['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x10d4bf[_0x4cea6f('0xb3d')]}});}function _0x5207ab(_0x3e53c3){var _0x2469f2=_0x116d9a;_0x77ae1a[_0x2469f2('0x94b')][_0x2469f2('0x229e')]({'id':_0x3e53c3['id']})[_0x2469f2('0xe59')][_0x2469f2('0xe19')](function(){var _0xcb8d73=_0x2469f2;_0x32d445()[_0xcb8d73('0xa8b')](_0x10d4bf[_0xcb8d73('0x1d17')],{'id':_0x3e53c3['id']}),_0x138407[_0xcb8d73('0x425')]({'title':_0xcb8d73('0x1e5d'),'msg':'Field\x20has\x20been\x20deleted!'});})['catch'](function(_0xbda1a3){var _0x14d9d8=_0x2469f2;_0x138407['error']({'title':_0xbda1a3[_0x14d9d8('0x2833')]?_0x14d9d8('0x27f2')+_0xbda1a3[_0x14d9d8('0x2833')]+_0x14d9d8('0x1b7c')+_0xbda1a3[_0x14d9d8('0x1fd7')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0xbda1a3[_0x14d9d8('0x11d0')]?JSON['stringify'](_0xbda1a3['data']):_0xbda1a3['toString']()});});}function _0x312c3a(_0x1b7964,_0x2d4707){var _0x529c81=_0x116d9a,_0x5ddcb1=_0x5c4dc0[_0x529c81('0xa5')]()[_0x529c81('0x13e4')](_0x529c81('0x8b7'))[_0x529c81('0x221c')](_0x529c81('0x13a7')+_0x529c81('0x21bd'))['ariaLabel'](_0x529c81('0x23f7'))[_0x529c81('0x1345')](_0x1b7964)['ok']('OK')[_0x529c81('0x2c1')](_0x529c81('0x17'));_0x5c4dc0[_0x529c81('0x26b2')](_0x5ddcb1)[_0x529c81('0xe19')](function(){_0x5207ab(_0x2d4707);},function(){var _0x530b23=_0x529c81;console[_0x530b23('0x1fe9')](_0x530b23('0x17'));});}function _0x194741(_0x5dc275){var _0x516f26=_0x116d9a,_0x5b55f2=_0x5c4dc0['confirm']()[_0x516f26('0x13e4')](_0x516f26('0x128c'))[_0x516f26('0x221c')](_0x516f26('0xab2')+_0x10d4bf['selectedFields'][_0x516f26('0x25ae')]+_0x516f26('0x5bc')+_0x516f26('0x21bd'))[_0x516f26('0x4d1')]('delete\x20fields')['targetEvent'](_0x5dc275)['ok']('OK')[_0x516f26('0x2c1')](_0x516f26('0x17'));_0x5c4dc0[_0x516f26('0x26b2')](_0x5b55f2)['then'](function(){var _0xa4f691=_0x516f26;_0x10d4bf[_0xa4f691('0xf97')][_0xa4f691('0x1d7e')](function(_0xb65623){_0x5207ab(_0xb65623);}),_0x10d4bf[_0xa4f691('0xf97')]=[];});}}const _0xacf075=_0x379a90;_0x775732[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1a76'),_0xb635d2('0x158'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x775732(_0x1de2b0,_0x347cf4,_0x1b25d0,_0x4071a1,_0x3c9159,_0x5eaeb6,_0x5e967f,_0x2ed75d,_0x5756c0,_0x45de5e,_0x201e5d,_0x1017aa,_0x357494,_0x56e3e1){var _0x13009b=_0xb635d2,_0x544625=this;_0x544625[_0x13009b('0x15a5')]=_0x201e5d[_0x13009b('0x1ef8')](),_0x544625[_0x13009b('0xcd2')]=[],_0x544625[_0x13009b('0x22f1')]=_0x357494,_0x544625[_0x13009b('0x5c1')]=_0x1017aa,_0x544625[_0x13009b('0xb3d')]=_0x56e3e1,_0x544625['hasModulePermissions']={},_0x544625[_0x13009b('0x25ac')]=_0x544625[_0x13009b('0x22f1')]&&_0x544625[_0x13009b('0x22f1')][_0x13009b('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x544625[_0x13009b('0x13e4')]=_0x13009b('0x798'),_0x544625['zendeskConfiguration']=angular[_0x13009b('0x89')](_0x5756c0),_0x544625[_0x13009b('0x1a76')]=_0x2ed75d,_0x544625[_0x13009b('0x1844')]=![];!_0x544625[_0x13009b('0x158')]&&(_0x544625[_0x13009b('0x158')]={'channel':_0x13009b('0xe74'),'type':_0x13009b('0x1a7a')},_0x544625[_0x13009b('0x13e4')]=_0x13009b('0x3b8'),_0x544625[_0x13009b('0x1844')]=!![]);_0x544625[_0x13009b('0xeb3')]=_0x3502f7,_0x544625['saveZendeskConfiguration']=_0x50a2fb,_0x544625[_0x13009b('0x1c09')]=_0x472e01,_0x544625[_0x13009b('0x2635')]=_0xcd0930,_0x544625[_0x13009b('0x2584')]=_0x2b3c64;function _0x3502f7(){var _0x2863fe=_0x13009b;_0x544625[_0x2863fe('0xcd2')]=[],_0x45de5e['intZendeskAccount'][_0x2863fe('0x2402')]({'id':_0x347cf4[_0x2863fe('0x2ef')]['id']},_0x544625[_0x2863fe('0x158')])[_0x2863fe('0xe59')][_0x2863fe('0xe19')](function(_0x4e5b05){var _0x128d2d=_0x2863fe;_0x544625[_0x128d2d('0x1a76')][_0x128d2d('0x14c9')](_0x4e5b05[_0x128d2d('0x250e')]()),_0x5e967f['success']({'title':_0x128d2d('0x131d'),'msg':_0x544625[_0x128d2d('0x158')][_0x128d2d('0x2623')]?_0x544625[_0x128d2d('0x158')][_0x128d2d('0x2623')]+_0x128d2d('0x105f'):''}),_0x2b3c64(_0x4e5b05);})[_0x2863fe('0x223b')](function(_0x57351c){var _0x305cc3=_0x2863fe;if(_0x57351c[_0x305cc3('0x11d0')]&&_0x57351c['data'][_0x305cc3('0xcd2')]&&_0x57351c[_0x305cc3('0x11d0')][_0x305cc3('0xcd2')]['length']){_0x544625[_0x305cc3('0xcd2')]=_0x57351c[_0x305cc3('0x11d0')][_0x305cc3('0xcd2')]||[{'message':_0x57351c[_0x305cc3('0x94f')](),'type':_0x305cc3('0x24b3')}];for(var _0xf029d4=0x0;_0xf029d4<_0x57351c['data']['errors'][_0x305cc3('0x25ae')];_0xf029d4+=0x1){_0x5e967f[_0x305cc3('0x8c8')]({'title':_0x57351c[_0x305cc3('0x11d0')][_0x305cc3('0xcd2')][_0xf029d4][_0x305cc3('0x62e')],'msg':_0x57351c[_0x305cc3('0x11d0')][_0x305cc3('0xcd2')][_0xf029d4][_0x305cc3('0x27e8')]});}}else _0x5e967f['error']({'title':_0x57351c[_0x305cc3('0x2833')]?_0x305cc3('0x27f2')+_0x57351c[_0x305cc3('0x2833')]+_0x305cc3('0x1b7c')+_0x57351c[_0x305cc3('0x1fd7')]:_0x305cc3('0x24b3'),'msg':_0x57351c[_0x305cc3('0x11d0')]?JSON['stringify'](_0x57351c[_0x305cc3('0x11d0')][_0x305cc3('0x27e8')]):_0x57351c[_0x305cc3('0x94f')]()});});}function _0x50a2fb(){var _0x48d3ee=_0x13009b;_0x544625[_0x48d3ee('0xcd2')]=[],_0x45de5e[_0x48d3ee('0x1ab1')][_0x48d3ee('0xa70')]({'id':_0x544625[_0x48d3ee('0x158')]['id']},_0x544625[_0x48d3ee('0x158')])[_0x48d3ee('0xe59')][_0x48d3ee('0xe19')](function(_0x54135a){var _0x17d5ba=_0x48d3ee,_0x3493b3=_0x32d445()[_0x17d5ba('0xf15')](_0x544625[_0x17d5ba('0x1a76')],{'id':_0x54135a['id']});_0x3493b3&&_0x32d445()['merge'](_0x3493b3,_0x32d445()[_0x17d5ba('0xed5')](_0x54135a[_0x17d5ba('0x250e')](),_0x32d445()['keys'](_0x3493b3))),_0x5e967f[_0x17d5ba('0x425')]({'title':'ZendeskConfiguration\x20properly\x20saved!','msg':_0x544625[_0x17d5ba('0x158')][_0x17d5ba('0x2623')]?_0x544625['zendeskConfiguration']['name']+_0x17d5ba('0x1c19'):''}),_0x2b3c64(_0x54135a);})[_0x48d3ee('0x223b')](function(_0x31d1a7){var _0x5df6f7=_0x48d3ee;if(_0x31d1a7[_0x5df6f7('0x11d0')]&&_0x31d1a7['data'][_0x5df6f7('0xcd2')]&&_0x31d1a7[_0x5df6f7('0x11d0')]['errors'][_0x5df6f7('0x25ae')]){_0x544625[_0x5df6f7('0xcd2')]=_0x31d1a7[_0x5df6f7('0x11d0')][_0x5df6f7('0xcd2')]||[{'message':_0x31d1a7['toString'](),'type':_0x5df6f7('0x143c')}];for(var _0x449ca1=0x0;_0x449ca1<_0x31d1a7['data'][_0x5df6f7('0xcd2')][_0x5df6f7('0x25ae')];_0x449ca1++){_0x5e967f['error']({'title':_0x31d1a7[_0x5df6f7('0x11d0')][_0x5df6f7('0xcd2')][_0x449ca1][_0x5df6f7('0x62e')],'msg':_0x31d1a7[_0x5df6f7('0x11d0')][_0x5df6f7('0xcd2')][_0x449ca1][_0x5df6f7('0x27e8')]});}}else _0x5e967f[_0x5df6f7('0x8c8')]({'title':_0x31d1a7[_0x5df6f7('0x2833')]?_0x5df6f7('0x27f2')+_0x31d1a7['status']+_0x5df6f7('0x1b7c')+_0x31d1a7[_0x5df6f7('0x1fd7')]:_0x5df6f7('0x143c'),'msg':_0x31d1a7['data']?JSON['stringify'](_0x31d1a7[_0x5df6f7('0x11d0')][_0x5df6f7('0x27e8')]):_0x31d1a7[_0x5df6f7('0x94f')]()});});}function _0x472e01(_0x1954d6){var _0x20affb=_0x13009b;_0x544625['errors']=[];var _0xa8b16d=_0x4071a1[_0x20affb('0xa5')]()[_0x20affb('0x13e4')](_0x20affb('0x24d0'))[_0x20affb('0xd0')](_0x20affb('0xa0c'))[_0x20affb('0x4d1')](_0x20affb('0xc50'))['ok'](_0x20affb('0x2198'))[_0x20affb('0x2c1')](_0x20affb('0x8a3'))[_0x20affb('0x1345')](_0x1954d6);_0x4071a1[_0x20affb('0x26b2')](_0xa8b16d)['then'](function(){var _0x2c9e5a=_0x20affb;_0x45de5e[_0x2c9e5a('0x1ab1')][_0x2c9e5a('0x229e')]({'id':_0x544625[_0x2c9e5a('0x158')]['id']})[_0x2c9e5a('0xe59')]['then'](function(){var _0x606d99=_0x2c9e5a;_0x32d445()[_0x606d99('0xa8b')](_0x544625['zendeskConfigurations'],{'id':_0x544625[_0x606d99('0x158')]['id']}),_0x5e967f['success']({'title':_0x606d99('0x169c'),'msg':(_0x544625['zendeskConfiguration'][_0x606d99('0x2623')]||_0x606d99('0x158'))+_0x606d99('0x2182')}),_0x2b3c64(_0x544625['zendeskConfiguration']);})[_0x2c9e5a('0x223b')](function(_0x59cec6){var _0x2698b3=_0x2c9e5a;if(_0x59cec6[_0x2698b3('0x11d0')]&&_0x59cec6[_0x2698b3('0x11d0')][_0x2698b3('0xcd2')]&&_0x59cec6[_0x2698b3('0x11d0')][_0x2698b3('0xcd2')][_0x2698b3('0x25ae')]){_0x544625['errors']=_0x59cec6[_0x2698b3('0x11d0')][_0x2698b3('0xcd2')]||[{'message':_0x59cec6[_0x2698b3('0x94f')](),'type':_0x2698b3('0xf6e')}];for(var _0x27e204=0x0;_0x27e204<_0x59cec6[_0x2698b3('0x11d0')][_0x2698b3('0xcd2')][_0x2698b3('0x25ae')];_0x27e204++){_0x5e967f[_0x2698b3('0x8c8')]({'title':_0x59cec6['data'][_0x2698b3('0xcd2')][_0x27e204][_0x2698b3('0x62e')],'msg':_0x59cec6[_0x2698b3('0x11d0')][_0x2698b3('0xcd2')][_0x27e204][_0x2698b3('0x27e8')]});}}else _0x5e967f[_0x2698b3('0x8c8')]({'title':_0x59cec6[_0x2698b3('0x2833')]?_0x2698b3('0x27f2')+_0x59cec6[_0x2698b3('0x2833')]+'\x20-\x20'+_0x59cec6[_0x2698b3('0x1fd7')]:_0x2698b3('0xf6e'),'msg':_0x59cec6[_0x2698b3('0x11d0')]?JSON[_0x2698b3('0x3ad')](_0x59cec6[_0x2698b3('0x11d0')][_0x2698b3('0x27e8')]):_0x59cec6['message']||_0x59cec6[_0x2698b3('0x94f')]()});});},function(){});}function _0xcd0930(_0x378398){return _0x378398===null?undefined:new Date(_0x378398);}function _0x2b3c64(_0x131a78){var _0x2fabc2=_0x13009b;_0x4071a1[_0x2fabc2('0x11ed')](_0x131a78);}}const _0x1960a9=_0x775732,_0x16bbad=_0x59426a['p']+_0xb635d2('0x1faa');_0x3fe37b[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window','$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),'zendeskAccounts',_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),'msUtils',_0xb635d2('0xf65'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x3fe37b(_0x581e7d,_0x5444ed,_0x2b8d6a,_0x15837b,_0x435cbe,_0x6d7460,_0x43eeee,_0x7cdece,_0xf81a5f,_0xdb0963,_0x18a73c,_0x45410a,_0x1960cd,_0x35534c,_0x50dc52,_0x44886b,_0x6bd9eb){var _0x18d5a2=_0xb635d2,_0x329d94=this;_0x329d94[_0x18d5a2('0x5c1')]=_0x44886b,_0x329d94[_0x18d5a2('0x22f1')]=_0x6bd9eb,_0x329d94[_0x18d5a2('0x15a5')]=_0x50dc52[_0x18d5a2('0x1ef8')](),_0x329d94[_0x18d5a2('0xd7b')]=_0xf81a5f||{'count':0x0,'rows':[]},_0x329d94['userProfile']=_0xdb0963,_0x329d94[_0x18d5a2('0xb59')]=_0x18a73c&&_0x18a73c['count']==0x1?_0x18a73c[_0x18d5a2('0x16a7')][0x0]:null,_0x329d94[_0x18d5a2('0xb3d')]=_0x50dc52[_0x18d5a2('0xd31')](_0x329d94['userProfileSection']?_0x329d94[_0x18d5a2('0xb59')][_0x18d5a2('0xb3d')]:null),_0x329d94['table']=_0x18d5a2('0xd7b'),_0x329d94['listOrder']='',_0x329d94['listOrderAsc']=null,_0x329d94[_0x18d5a2('0x943')]=[],_0x329d94['query']={'fields':_0x18d5a2('0x1ff1'),'limit':0xa,'page':0x1},_0x329d94[_0x18d5a2('0x143e')]=_0x32d445()[_0x18d5a2('0x226f')]([{'option':_0x18d5a2('0x2b6'),'value':_0x18d5a2('0xbcd')},{'option':'New_Tab','value':_0x18d5a2('0x2752')}],function(_0x223982){var _0x4aa91e=_0x18d5a2;return _0x32d445()[_0x4aa91e('0x1b42')](_0x223982[_0x4aa91e('0x2')],new RegExp('\x27','g'),'');}),_0x329d94[_0x18d5a2('0xe0a')]=_0x32d445()['keyBy']([{'option':'Password','value':'\x27password\x27'},{'option':'Token','value':_0x18d5a2('0x1fd4')}],function(_0x2b5115){var _0x298897=_0x18d5a2;return _0x32d445()[_0x298897('0x1b42')](_0x2b5115[_0x298897('0x2')],new RegExp('\x27','g'),'');}),_0x329d94['editstate']=_0x317b80,_0x329d94[_0x18d5a2('0x238c')]=_0x1e39ad,_0x329d94[_0x18d5a2('0x1d9e')]=_0x22d25a,_0x329d94[_0x18d5a2('0x425')]=_0x21d27e,_0x329d94[_0x18d5a2('0x15a2')]=_0xd05865,_0x329d94[_0x18d5a2('0x170b')]=_0x51750e,_0x329d94['deleteZendeskAccount']=_0x569a12,_0x329d94[_0x18d5a2('0xc77')]=_0x2a25fe,_0x329d94[_0x18d5a2('0x4eb')]=_0x20b7db,_0x329d94[_0x18d5a2('0xaa0')]=_0x371e09,_0x329d94[_0x18d5a2('0x3f3')]=_0x511d67;function _0x317b80(_0x3dff55){var _0x1b1739=_0x18d5a2;_0x2b8d6a['go'](_0x1b1739('0x578'),{'id':_0x3dff55['id'],'zendeskAccount':_0x3dff55,'crudPermissions':_0x329d94[_0x1b1739('0xb3d')]});}function _0x1e39ad(_0x47cb1d){var _0x4eff53=_0x18d5a2;return _0x45410a['intZendeskAccount'][_0x4eff53('0x23f8')]({'id':_0x47cb1d['id'],'test':!![]})[_0x4eff53('0xe59')][_0x4eff53('0xe19')](function(){var _0xa92d76=_0x4eff53;_0x35534c[_0xa92d76('0x425')]({'title':'ZendeskAccount\x20properly\x20tested','msg':_0xa92d76('0xd96')});})['catch'](function(_0x4673a3){var _0x504bd5=_0x4eff53;_0x35534c[_0x504bd5('0x8c8')]({'title':_0x504bd5('0x27ae'),'msg':_0x4673a3[_0x504bd5('0x11d0')]?_0x4673a3[_0x504bd5('0x11d0')]['message']?_0x4673a3[_0x504bd5('0x11d0')][_0x504bd5('0x27e8')]:JSON[_0x504bd5('0x3ad')](_0x4673a3[_0x504bd5('0x11d0')]):_0x4673a3['toString']()});});}function _0x22d25a(_0x139076,_0x45044e){var _0x9a09ac=_0x18d5a2,_0x48aad0=_0x435cbe[_0x9a09ac('0xa5')]()[_0x9a09ac('0x13e4')](_0x9a09ac('0x346')+_0x32d445()[_0x9a09ac('0x1df2')](_0x9a09ac('0x195b'))+'?')['htmlContent'](_0x9a09ac('0xab2')+(_0x139076[_0x9a09ac('0x2623')]||_0x9a09ac('0x195b'))+_0x9a09ac('0x27bb')+_0x9a09ac('0x21bd'))[_0x9a09ac('0x4d1')](_0x9a09ac('0x22bb'))['targetEvent'](_0x45044e)['ok']('OK')[_0x9a09ac('0x2c1')](_0x9a09ac('0x17'));_0x435cbe[_0x9a09ac('0x26b2')](_0x48aad0)[_0x9a09ac('0xe19')](function(){_0x569a12(_0x139076);},function(){var _0x2185b3=_0x9a09ac;console[_0x2185b3('0x1fe9')]('CANCEL');});}var _0x56ace4=!![],_0xaf3d5e=0x1;_0x581e7d[_0x18d5a2('0x107')](_0x18d5a2('0x20cb'),function(_0x38d1bc,_0x160267){var _0x2efb01=_0x18d5a2;_0x56ace4?_0x43eeee(function(){_0x56ace4=![];}):(!_0x160267&&(_0xaf3d5e=_0x329d94['query'][_0x2efb01('0xc08')]),_0x38d1bc!==_0x160267&&(_0x329d94[_0x2efb01('0xa16')][_0x2efb01('0xc08')]=0x1),!_0x38d1bc&&(_0x329d94[_0x2efb01('0xa16')][_0x2efb01('0xc08')]=_0xaf3d5e),_0x329d94[_0x2efb01('0x15a2')]());});function _0x21d27e(_0x1d56fc){_0x329d94['zendeskAccounts']=_0x1d56fc||{'count':0x0,'rows':[]};}function _0xd05865(){var _0x5c1366=_0x18d5a2;_0x329d94[_0x5c1366('0xa16')][_0x5c1366('0xab0')]=(_0x329d94['query'][_0x5c1366('0xc08')]-0x1)*_0x329d94[_0x5c1366('0xa16')][_0x5c1366('0x1b6d')],_0x50dc52[_0x5c1366('0x179e')](_0x5c1366('0xd14'))?_0x329d94[_0x5c1366('0x9c8')]=_0x45410a[_0x5c1366('0x9f0')][_0x5c1366('0x22d5')](_0x329d94[_0x5c1366('0xa16')],_0x21d27e)[_0x5c1366('0xe59')]:(_0x329d94[_0x5c1366('0xa16')]['id']=_0x329d94['userProfile']['id'],_0x329d94['query'][_0x5c1366('0x1e59')]=_0x5c1366('0x1f0'),_0x329d94[_0x5c1366('0x9c8')]=_0x45410a[_0x5c1366('0x154f')][_0x5c1366('0x14e6')](_0x329d94[_0x5c1366('0xa16')],_0x21d27e)['$promise']);}function _0x51750e(_0x5bc7b7,_0x254ccc){var _0x1dae0d=_0x18d5a2;_0x435cbe[_0x1dae0d('0x26b2')]({'controller':_0x1dae0d('0xb34'),'controllerAs':'vm','templateUrl':_0x16bbad,'parent':angular[_0x1dae0d('0x24a1')](_0x6d7460[_0x1dae0d('0x19b2')]),'targetEvent':_0x5bc7b7,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x254ccc,'zendeskAccounts':_0x329d94[_0x1dae0d('0xd7b')][_0x1dae0d('0x16a7')],'license':_0x329d94['license'],'setting':_0x329d94['setting'],'crudPermissions':_0x329d94[_0x1dae0d('0xb3d')]}});}function _0x569a12(_0x5dba99){var _0x5e0d3b=_0x18d5a2;_0x45410a[_0x5e0d3b('0x9f0')][_0x5e0d3b('0x229e')]({'id':_0x5dba99['id']})[_0x5e0d3b('0xe59')][_0x5e0d3b('0xe19')](function(){var _0x12dd00=_0x5e0d3b;_0x32d445()[_0x12dd00('0xa8b')](_0x329d94[_0x12dd00('0xd7b')][_0x12dd00('0x16a7')],{'id':_0x5dba99['id']}),_0x329d94[_0x12dd00('0xd7b')][_0x12dd00('0x148b')]-=0x1,!_0x329d94['zendeskAccounts'][_0x12dd00('0x16a7')][_0x12dd00('0x25ae')]&&_0x329d94[_0x12dd00('0x15a2')](),_0x35534c[_0x12dd00('0x425')]({'title':_0x32d445()[_0x12dd00('0x1df2')](_0x12dd00('0x1980'))+_0x12dd00('0x1219'),'msg':_0x5dba99[_0x12dd00('0x2623')]?_0x5dba99['name']+_0x12dd00('0x2182'):''});})['catch'](function(_0x4b089f){var _0x3c5f82=_0x5e0d3b;if(_0x4b089f['data']&&_0x4b089f['data'][_0x3c5f82('0xcd2')]&&_0x4b089f[_0x3c5f82('0x11d0')][_0x3c5f82('0xcd2')][_0x3c5f82('0x25ae')]){_0x329d94[_0x3c5f82('0xcd2')]=_0x4b089f[_0x3c5f82('0x11d0')][_0x3c5f82('0xcd2')]||[{'message':_0x4b089f['toString'](),'type':'SYSTEM:DELETEintZendeskAccount'}];for(var _0xd09873=0x0;_0xd09873<_0x4b089f['data'][_0x3c5f82('0xcd2')][_0x3c5f82('0x25ae')];_0xd09873++){_0x35534c[_0x3c5f82('0x8c8')]({'title':_0x4b089f[_0x3c5f82('0x11d0')][_0x3c5f82('0xcd2')][_0xd09873]['type'],'msg':_0x4b089f[_0x3c5f82('0x11d0')]['errors'][_0xd09873][_0x3c5f82('0x27e8')]});}}else _0x35534c['error']({'title':_0x4b089f[_0x3c5f82('0x2833')]?'API:'+_0x4b089f[_0x3c5f82('0x2833')]+_0x3c5f82('0x1b7c')+_0x4b089f[_0x3c5f82('0x1fd7')]:_0x3c5f82('0x14ae'),'msg':_0x4b089f[_0x3c5f82('0x11d0')]?JSON[_0x3c5f82('0x3ad')](_0x4b089f[_0x3c5f82('0x11d0')][_0x3c5f82('0x27e8')]):_0x4b089f['message']||_0x4b089f[_0x3c5f82('0x94f')]()});});}function _0x2a25fe(){var _0xfd8b35=_0x18d5a2,_0xd5c4da=angular['copy'](_0x329d94['selectedZendeskAccounts']);return _0x329d94[_0xfd8b35('0x943')]=[],_0xd5c4da;}function _0x20b7db(_0x10144d){var _0x3a28b9=_0x18d5a2,_0x2cf4b2=_0x435cbe[_0x3a28b9('0xa5')]()[_0x3a28b9('0x13e4')](_0x3a28b9('0x447'))[_0x3a28b9('0x221c')](_0x3a28b9('0xab2')+_0x329d94[_0x3a28b9('0x943')][_0x3a28b9('0x25ae')]+_0x3a28b9('0x5bc')+'\x20will\x20be\x20deleted.')[_0x3a28b9('0x4d1')](_0x3a28b9('0x2022'))[_0x3a28b9('0x1345')](_0x10144d)['ok']('OK')[_0x3a28b9('0x2c1')](_0x3a28b9('0x17'));_0x435cbe[_0x3a28b9('0x26b2')](_0x2cf4b2)[_0x3a28b9('0xe19')](function(){var _0x4e9a5f=_0x3a28b9;_0x329d94[_0x4e9a5f('0x943')][_0x4e9a5f('0x1d7e')](function(_0xf26d38){_0x569a12(_0xf26d38);}),_0x329d94[_0x4e9a5f('0x943')]=[];});}function _0x371e09(){_0x329d94['selectedZendeskAccounts']=[];}function _0x511d67(){var _0x4112c5=_0x18d5a2;_0x329d94['selectedZendeskAccounts']=_0x329d94[_0x4112c5('0xd7b')][_0x4112c5('0x16a7')];}}const _0x388d7b=_0x3fe37b;_0x4efeac[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1ac3'),_0xb635d2('0x2874'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x4efeac(_0x522e81,_0x37bbf8,_0x12245e,_0x5a873b,_0x404252,_0x1f72e5,_0x566be5,_0x2ada8d,_0x3f3f0b,_0x89bb54,_0x525b28,_0x437bbe,_0x541bd6,_0x1af6e3){var _0x4af77f=_0xb635d2,_0x165628=this;_0x165628[_0x4af77f('0x15a5')]=_0x525b28['getCurrentUser'](),_0x165628[_0x4af77f('0xcd2')]=[],_0x165628[_0x4af77f('0x22f1')]=_0x541bd6,_0x165628['license']=_0x437bbe,_0x165628[_0x4af77f('0xb3d')]=_0x1af6e3,_0x165628[_0x4af77f('0x1ccb')]={},_0x165628['passwordPattern']=_0x165628['setting']&&_0x165628['setting'][_0x4af77f('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x165628[_0x4af77f('0x13e4')]='INTEGRATIONS.EDIT_ZOHOACCOUNT',_0x165628['zohoAccount']=angular['copy'](_0x3f3f0b),_0x165628[_0x4af77f('0x1ac3')]=_0x2ada8d,_0x165628[_0x4af77f('0x17d5')]=![];!_0x165628[_0x4af77f('0x2874')]&&(_0x165628[_0x4af77f('0x2874')]={'host':_0x4af77f('0x15da'),'zone':'EU','serverUrl':_0x12245e[_0x4af77f('0xec0')]()+'://'+_0x12245e[_0x4af77f('0x3b7')]()+(_0x12245e[_0x4af77f('0x11dc')]()?':'+_0x12245e[_0x4af77f('0x11dc')]():'')},_0x165628['title']='INTEGRATIONS.NEW_ZOHOACCOUNT',_0x165628[_0x4af77f('0x17d5')]=!![]);_0x165628[_0x4af77f('0x2814')]=_0x4c1eb4,_0x165628['saveZohoAccount']=_0x49a931,_0x165628[_0x4af77f('0x7a5')]=_0x1828a1,_0x165628[_0x4af77f('0x2635')]=_0x37cbe0,_0x165628[_0x4af77f('0x2584')]=_0x35ed02;function _0x4c1eb4(){var _0x3a71b6=_0x4af77f;_0x165628[_0x3a71b6('0xcd2')]=[],_0x89bb54['intZohoAccount']['save'](_0x165628[_0x3a71b6('0x2874')])[_0x3a71b6('0xe59')][_0x3a71b6('0xe19')](function(_0x287181){var _0xb25a0a=_0x3a71b6;_0x165628[_0xb25a0a('0x1ac3')][_0xb25a0a('0x14c9')](_0x287181[_0xb25a0a('0x250e')]()),_0x566be5[_0xb25a0a('0x425')]({'title':_0xb25a0a('0x239e'),'msg':_0x165628[_0xb25a0a('0x2874')][_0xb25a0a('0x2623')]?_0x165628[_0xb25a0a('0x2874')]['name']+_0xb25a0a('0x105f'):''}),_0x35ed02(_0x287181);})[_0x3a71b6('0x223b')](function(_0x3b7070){var _0x4de92a=_0x3a71b6;if(_0x3b7070[_0x4de92a('0x11d0')]&&_0x3b7070[_0x4de92a('0x11d0')][_0x4de92a('0xcd2')]&&_0x3b7070[_0x4de92a('0x11d0')][_0x4de92a('0xcd2')]['length']){_0x165628[_0x4de92a('0xcd2')]=_0x3b7070[_0x4de92a('0x11d0')]['errors']||[{'message':_0x3b7070[_0x4de92a('0x94f')](),'type':_0x4de92a('0xf33')}];for(var _0x226a16=0x0;_0x226a16<_0x3b7070[_0x4de92a('0x11d0')]['errors'][_0x4de92a('0x25ae')];_0x226a16+=0x1){_0x566be5[_0x4de92a('0x8c8')]({'title':_0x3b7070[_0x4de92a('0x11d0')][_0x4de92a('0xcd2')][_0x226a16][_0x4de92a('0x62e')],'msg':_0x3b7070[_0x4de92a('0x11d0')][_0x4de92a('0xcd2')][_0x226a16][_0x4de92a('0x27e8')]});}}else _0x566be5['error']({'title':_0x3b7070[_0x4de92a('0x2833')]?_0x4de92a('0x27f2')+_0x3b7070[_0x4de92a('0x2833')]+'\x20-\x20'+_0x3b7070[_0x4de92a('0x1fd7')]:_0x4de92a('0xf33'),'msg':_0x3b7070[_0x4de92a('0x11d0')]?JSON[_0x4de92a('0x3ad')](_0x3b7070[_0x4de92a('0x11d0')]['message']):_0x3b7070['toString']()});});}function _0x49a931(){var _0x2a11fb=_0x4af77f;_0x165628[_0x2a11fb('0xcd2')]=[],_0x89bb54[_0x2a11fb('0x23dd')][_0x2a11fb('0xa70')]({'id':_0x165628[_0x2a11fb('0x2874')]['id']},_0x165628[_0x2a11fb('0x2874')])['$promise'][_0x2a11fb('0xe19')](function(_0x56c391){var _0x21df32=_0x2a11fb,_0x585d19=_0x32d445()[_0x21df32('0xf15')](_0x165628['zohoAccounts'],{'id':_0x56c391['id']});_0x585d19&&_0x32d445()[_0x21df32('0x1d8')](_0x585d19,_0x32d445()[_0x21df32('0xed5')](_0x56c391[_0x21df32('0x250e')](),_0x32d445()[_0x21df32('0x1234')](_0x585d19))),_0x566be5[_0x21df32('0x425')]({'title':_0x21df32('0x18c0'),'msg':_0x165628[_0x21df32('0x2874')][_0x21df32('0x2623')]?_0x165628[_0x21df32('0x2874')][_0x21df32('0x2623')]+_0x21df32('0x1c19'):''}),_0x35ed02(_0x56c391);})[_0x2a11fb('0x223b')](function(_0x557721){var _0x298835=_0x2a11fb;if(_0x557721[_0x298835('0x11d0')]&&_0x557721[_0x298835('0x11d0')][_0x298835('0xcd2')]&&_0x557721[_0x298835('0x11d0')][_0x298835('0xcd2')][_0x298835('0x25ae')]){_0x165628[_0x298835('0xcd2')]=_0x557721[_0x298835('0x11d0')][_0x298835('0xcd2')]||[{'message':_0x557721[_0x298835('0x94f')](),'type':'api.intZohoAccount.update'}];for(var _0x20ba2f=0x0;_0x20ba2f<_0x557721[_0x298835('0x11d0')][_0x298835('0xcd2')][_0x298835('0x25ae')];_0x20ba2f++){_0x566be5['error']({'title':_0x557721[_0x298835('0x11d0')][_0x298835('0xcd2')][_0x20ba2f][_0x298835('0x62e')],'msg':_0x557721[_0x298835('0x11d0')][_0x298835('0xcd2')][_0x20ba2f][_0x298835('0x27e8')]});}}else _0x566be5[_0x298835('0x8c8')]({'title':_0x557721[_0x298835('0x2833')]?'API:'+_0x557721[_0x298835('0x2833')]+_0x298835('0x1b7c')+_0x557721[_0x298835('0x1fd7')]:'api.intZohoAccount.update','msg':_0x557721[_0x298835('0x11d0')]?JSON[_0x298835('0x3ad')](_0x557721[_0x298835('0x11d0')][_0x298835('0x27e8')]):_0x557721[_0x298835('0x94f')]()});});}function _0x1828a1(_0x299c8a){var _0x3fef92=_0x4af77f;_0x165628[_0x3fef92('0xcd2')]=[];var _0x1b8193=_0x5a873b['confirm']()['title'](_0x3fef92('0x24d0'))[_0x3fef92('0xd0')](_0x3fef92('0xf78'))[_0x3fef92('0x4d1')](_0x3fef92('0x1f04'))['ok'](_0x3fef92('0x2198'))[_0x3fef92('0x2c1')](_0x3fef92('0x8a3'))[_0x3fef92('0x1345')](_0x299c8a);_0x5a873b[_0x3fef92('0x26b2')](_0x1b8193)['then'](function(){var _0x394241=_0x3fef92;_0x89bb54[_0x394241('0x23dd')][_0x394241('0x229e')]({'id':_0x165628[_0x394241('0x2874')]['id']})[_0x394241('0xe59')]['then'](function(){var _0xea2b97=_0x394241;_0x32d445()[_0xea2b97('0xa8b')](_0x165628['zohoAccounts'],{'id':_0x165628[_0xea2b97('0x2874')]['id']}),_0x566be5['success']({'title':_0xea2b97('0x618'),'msg':(_0x165628[_0xea2b97('0x2874')][_0xea2b97('0x2623')]||'zohoAccount')+_0xea2b97('0x2182')}),_0x35ed02(_0x165628[_0xea2b97('0x2874')]);})[_0x394241('0x223b')](function(_0x14d854){var _0x4a2048=_0x394241;if(_0x14d854['data']&&_0x14d854['data'][_0x4a2048('0xcd2')]&&_0x14d854[_0x4a2048('0x11d0')][_0x4a2048('0xcd2')][_0x4a2048('0x25ae')]){_0x165628[_0x4a2048('0xcd2')]=_0x14d854[_0x4a2048('0x11d0')][_0x4a2048('0xcd2')]||[{'message':_0x14d854[_0x4a2048('0x94f')](),'type':_0x4a2048('0x273c')}];for(var _0xf85bce=0x0;_0xf85bce<_0x14d854[_0x4a2048('0x11d0')][_0x4a2048('0xcd2')]['length'];_0xf85bce++){_0x566be5['error']({'title':_0x14d854['data'][_0x4a2048('0xcd2')][_0xf85bce][_0x4a2048('0x62e')],'msg':_0x14d854[_0x4a2048('0x11d0')][_0x4a2048('0xcd2')][_0xf85bce][_0x4a2048('0x27e8')]});}}else _0x566be5['error']({'title':_0x14d854[_0x4a2048('0x2833')]?_0x4a2048('0x27f2')+_0x14d854[_0x4a2048('0x2833')]+_0x4a2048('0x1b7c')+_0x14d854[_0x4a2048('0x1fd7')]:_0x4a2048('0x273c'),'msg':_0x14d854[_0x4a2048('0x11d0')]?JSON[_0x4a2048('0x3ad')](_0x14d854['data']['message']):_0x14d854[_0x4a2048('0x27e8')]||_0x14d854[_0x4a2048('0x94f')]()});});},function(){});}function _0x37cbe0(_0x27dcdf){return _0x27dcdf===null?undefined:new Date(_0x27dcdf);}function _0x35ed02(_0xc97e55){var _0x236ff8=_0x4af77f;_0x5a873b[_0x236ff8('0x11ed')](_0xc97e55);}}const _0x139f13=_0x4efeac,_0x59b6d2=_0x59426a['p']+_0xb635d2('0x648'),_0x4c4632=_0x59426a['p']+_0xb635d2('0x4d7');_0x3fb22e[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730')];function _0x3fb22e(_0x352519,_0x5b7205,_0x3dab88,_0x19e940,_0x448736){var _0x9cbe40=_0xb635d2,_0x7451e=this;_0x7451e['currentUser']=_0x448736[_0x9cbe40('0x1ef8')](),_0x7451e[_0x9cbe40('0x2874')]={},_0x7451e[_0x9cbe40('0x2020')]={},_0x7451e[_0x9cbe40('0x244e')]=[],_0x7451e[_0x9cbe40('0x6e1')]=-0x1,_0x7451e[_0x9cbe40('0xb3d')],_0x7451e[_0x9cbe40('0x15f9')]=_0x4cc88c,_0x7451e[_0x9cbe40('0xad4')]=_0x69e2c8,_0x7451e[_0x9cbe40('0x1569')]=_0x410450,_0x7451e[_0x9cbe40('0x2596')]=_0x3fc5c9,_0x7451e[_0x9cbe40('0x1dbb')]=_0x22ad0e;function _0x22ad0e(){var _0x7560de=_0x9cbe40;return _0x3dab88[_0x7560de('0xd98')]['update']({'id':_0x7451e[_0x7560de('0x2020')]['id']},_0x7451e[_0x7560de('0x2020')])[_0x7560de('0xe59')][_0x7560de('0xe19')](function(){var _0x4ac44b=_0x7560de;_0x19e940['success']({'title':_0x4ac44b('0x1b4'),'msg':'Module\x20has\x20been\x20updated!'});})[_0x7560de('0x223b')](function(_0xe35df8){var _0x6b59b3=_0x7560de;_0x19e940[_0x6b59b3('0x8c8')]({'title':_0xe35df8['status']?'API:'+_0xe35df8['status']+_0x6b59b3('0x1b7c')+_0xe35df8['statusText']:_0x6b59b3('0x2a'),'msg':_0xe35df8[_0x6b59b3('0x11d0')]?JSON[_0x6b59b3('0x3ad')](_0xe35df8[_0x6b59b3('0x11d0')]):_0xe35df8[_0x6b59b3('0x94f')]()});});}function _0x4cc88c(_0x33f31a,_0x5e51b9){var _0xaf8868=_0x9cbe40;_0x7451e['zohoAccount']=_0x33f31a,_0x7451e['crudPermissions']=typeof _0x5e51b9!==_0xaf8868('0x1143')?_0x5e51b9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3dab88[_0xaf8868('0x23dd')]['getConfigurations']({'id':_0x7451e[_0xaf8868('0x2874')]['id'],'sort':_0xaf8868('0x7e8')})[_0xaf8868('0xe59')][_0xaf8868('0xe19')](function(_0x51fd48){var _0x5e3221=_0xaf8868;return _0x7451e[_0x5e3221('0x244e')]=_0x51fd48[_0x5e3221('0x16a7')]?_0x51fd48[_0x5e3221('0x16a7')]:[],_0x7451e[_0x5e3221('0x244e')][_0x5e3221('0x25ae')]&&_0x7451e[_0x5e3221('0xad4')](0x0),_0x3dab88['variable'][_0x5e3221('0x22d5')]({'nolimit':!![],'sort':_0x5e3221('0x2623')})[_0x5e3221('0xe59')];})[_0xaf8868('0xe19')](function(_0x2fb26b){var _0x4f7cdd=_0xaf8868;_0x7451e[_0x4f7cdd('0x1a9e')]=_0x2fb26b[_0x4f7cdd('0x16a7')]?_0x2fb26b['rows']:[],_0x7451e[_0x4f7cdd('0x27b3')]=_0x32d445()[_0x4f7cdd('0x226f')](_0x7451e[_0x4f7cdd('0x1a9e')],'id');})[_0xaf8868('0x223b')](function(_0x386262){var _0x45cfe3=_0xaf8868;_0x19e940[_0x45cfe3('0x8c8')]({'title':_0x386262[_0x45cfe3('0x2833')]?_0x45cfe3('0x27f2')+_0x386262[_0x45cfe3('0x2833')]+'\x20-\x20'+_0x386262[_0x45cfe3('0x1fd7')]:'SYSTEM:GETCONFIGURATION','msg':_0x386262[_0x45cfe3('0x11d0')]?JSON[_0x45cfe3('0x3ad')](_0x386262['data']):_0x386262['toString']()});});}function _0x69e2c8(_0x551f70){var _0x52f66d=_0x9cbe40;_0x7451e['zohoConfiguration']=_0x7451e[_0x52f66d('0x244e')][_0x551f70],_0x7451e[_0x52f66d('0x6e1')]=_0x551f70,_0x3dab88[_0x52f66d('0xd98')][_0x52f66d('0xe77')]({'id':_0x7451e[_0x52f66d('0x2020')]['id']})[_0x52f66d('0xe59')][_0x52f66d('0xe19')](function(_0x37c104){var _0x2fd4ae=_0x52f66d;return _0x7451e[_0x2fd4ae('0x126e')]=_0x37c104[_0x2fd4ae('0x16a7')]?_0x37c104[_0x2fd4ae('0x16a7')]:[],_0x3dab88['intZohoConfiguration'][_0x2fd4ae('0x280b')]({'id':_0x7451e[_0x2fd4ae('0x2020')]['id']})[_0x2fd4ae('0xe59')];})['then'](function(_0x549df7){var _0x170844=_0x52f66d;return _0x7451e[_0x170844('0xb9c')]=_0x549df7[_0x170844('0x16a7')]?_0x549df7['rows']:[],_0x3dab88[_0x170844('0xd98')][_0x170844('0x23f8')]({'id':_0x7451e[_0x170844('0x2020')]['id']})[_0x170844('0xe59')];})[_0x52f66d('0xe19')](function(_0x3372fc){var _0x545461=_0x52f66d;_0x7451e[_0x545461('0x1d17')]=_0x3372fc[_0x545461('0x16a7')]?_0x3372fc[_0x545461('0x16a7')]:[];})[_0x52f66d('0x223b')](function(_0x416413){var _0x5b9a82=_0x52f66d;_0x19e940[_0x5b9a82('0x8c8')]({'title':_0x416413['status']?_0x5b9a82('0x27f2')+_0x416413[_0x5b9a82('0x2833')]+_0x5b9a82('0x1b7c')+_0x416413[_0x5b9a82('0x1fd7')]:_0x5b9a82('0x82a'),'msg':_0x416413[_0x5b9a82('0x11d0')]?JSON[_0x5b9a82('0x3ad')](_0x416413[_0x5b9a82('0x11d0')]):_0x416413[_0x5b9a82('0x94f')]()});});}function _0x410450(_0x1534dd,_0xe629a6){var _0x1d91e5=_0x9cbe40;_0x352519[_0x1d91e5('0x26b2')]({'controller':'CreateOrEditZohoConfigurationDialogController','controllerAs':'vm','templateUrl':_0x59b6d2,'parent':angular[_0x1d91e5('0x24a1')](_0x5b7205[_0x1d91e5('0x19b2')]),'targetEvent':_0x1534dd,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0xe629a6,'configurations':_0x7451e[_0x1d91e5('0x244e')],'license':null,'setting':null,'crudPermissions':_0x7451e[_0x1d91e5('0xb3d')]}})[_0x1d91e5('0x23')](function(){var _0x3e8760=_0x1d91e5;_0x7451e[_0x3e8760('0xad4')](0x0);});}function _0x3fc5c9(_0x3553c0,_0x62f6b){var _0x51691e=_0x9cbe40,_0x1762d8=_0x352519['confirm']()[_0x51691e('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zohoConfiguration?')[_0x51691e('0x221c')](_0x51691e('0xab2')+(_0x62f6b['name']||_0x51691e('0x2020'))+_0x51691e('0x27bb')+_0x51691e('0x21bd'))[_0x51691e('0x4d1')](_0x51691e('0x20a'))[_0x51691e('0x1345')](_0x3553c0)['ok']('OK')[_0x51691e('0x2c1')](_0x51691e('0x17'));_0x352519['show'](_0x1762d8)[_0x51691e('0xe19')](function(){var _0xeff5a5=_0x51691e;_0x3dab88['intZohoConfiguration']['delete']({'id':_0x62f6b['id']})[_0xeff5a5('0xe59')][_0xeff5a5('0xe19')](function(){var _0xcfcae=_0xeff5a5;_0x32d445()[_0xcfcae('0xa8b')](_0x7451e[_0xcfcae('0x244e')],{'id':_0x62f6b['id']}),_0x19e940['success']({'title':_0xcfcae('0x185c'),'msg':_0x62f6b[_0xcfcae('0x2623')]?_0x62f6b[_0xcfcae('0x2623')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x49eb60){var _0x4d7e30=_0xeff5a5;_0x19e940[_0x4d7e30('0x8c8')]({'title':_0x49eb60[_0x4d7e30('0x2833')]?_0x4d7e30('0x27f2')+_0x49eb60[_0x4d7e30('0x2833')]+_0x4d7e30('0x1b7c')+_0x49eb60[_0x4d7e30('0x1fd7')]:_0x4d7e30('0x127'),'msg':_0x49eb60[_0x4d7e30('0x11d0')]?JSON[_0x4d7e30('0x3ad')](_0x49eb60[_0x4d7e30('0x11d0')]):_0x49eb60['toString']()});})[_0xeff5a5('0x23')](function(){_0x7451e['getZohoConfiguration'](0x0);});},function(){var _0x360e5a=_0x51691e;console[_0x360e5a('0x1fe9')](_0x360e5a('0x17'));});}_0x7451e[_0x9cbe40('0x2508')]=[],_0x7451e[_0x9cbe40('0x16b2')]=_0xfbcda9,_0x7451e[_0x9cbe40('0x10dc')]=_0x18c46d,_0x7451e[_0x9cbe40('0x1c53')]=_0x479da5;function _0xfbcda9(_0x4dc36c,_0xabd6b9){var _0x25697d=_0x9cbe40;_0x352519[_0x25697d('0x26b2')]({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0x4c4632,'parent':angular[_0x25697d('0x24a1')](_0x5b7205[_0x25697d('0x19b2')]),'targetEvent':_0x4dc36c,'clickOutsideToClose':!![],'locals':{'type':_0x25697d('0x9ec'),'item':_0xabd6b9,'items':_0x7451e[_0x25697d('0x126e')],'configuration':_0x7451e['zohoConfiguration'],'account':_0x7451e[_0x25697d('0x2874')],'license':null,'setting':null,'crudPermissions':_0x7451e[_0x25697d('0xb3d')]}});}function _0x2dc804(_0x1fb04e){var _0x3af6a2=_0x9cbe40;_0x3dab88[_0x3af6a2('0x11cb')][_0x3af6a2('0x229e')]({'id':_0x1fb04e['id']})['$promise'][_0x3af6a2('0xe19')](function(){var _0x52df4b=_0x3af6a2;_0x32d445()['remove'](_0x7451e['subjects'],{'id':_0x1fb04e['id']}),_0x19e940[_0x52df4b('0x425')]({'title':_0x52df4b('0x191f'),'msg':_0x52df4b('0xae3')});})[_0x3af6a2('0x223b')](function(_0x13dab4){var _0x4fa42b=_0x3af6a2;_0x19e940[_0x4fa42b('0x8c8')]({'title':_0x13dab4[_0x4fa42b('0x2833')]?'API:'+_0x13dab4[_0x4fa42b('0x2833')]+_0x4fa42b('0x1b7c')+_0x13dab4[_0x4fa42b('0x1fd7')]:_0x4fa42b('0x1dde'),'msg':_0x13dab4[_0x4fa42b('0x11d0')]?JSON['stringify'](_0x13dab4[_0x4fa42b('0x11d0')]):_0x13dab4[_0x4fa42b('0x94f')]()});});}function _0x18c46d(_0x3381f8,_0x49fbfd){var _0x559615=_0x9cbe40,_0x27e208=_0x352519[_0x559615('0xa5')]()[_0x559615('0x13e4')](_0x559615('0x158a'))['htmlContent'](_0x559615('0x5f9')+'\x20will\x20be\x20deleted.')[_0x559615('0x4d1')]('delete\x20subject')[_0x559615('0x1345')](_0x3381f8)['ok']('OK')[_0x559615('0x2c1')]('CANCEL');_0x352519[_0x559615('0x26b2')](_0x27e208)['then'](function(){_0x2dc804(_0x49fbfd);},function(){var _0x371db0=_0x559615;console['log'](_0x371db0('0x17'));});}function _0x479da5(_0x5927d8){var _0x4ca02e=_0x9cbe40,_0x5bed14=_0x352519[_0x4ca02e('0xa5')]()[_0x4ca02e('0x13e4')](_0x4ca02e('0x232a'))['htmlContent'](_0x4ca02e('0xab2')+_0x7451e['selectedSubjects'][_0x4ca02e('0x25ae')]+_0x4ca02e('0x5bc')+_0x4ca02e('0x21bd'))[_0x4ca02e('0x4d1')]('delete\x20subjects')[_0x4ca02e('0x1345')](_0x5927d8)['ok']('OK')['cancel'](_0x4ca02e('0x17'));_0x352519[_0x4ca02e('0x26b2')](_0x5bed14)[_0x4ca02e('0xe19')](function(){var _0x858d48=_0x4ca02e;_0x7451e[_0x858d48('0x2508')][_0x858d48('0x1d7e')](function(_0x410e4e){_0x2dc804(_0x410e4e);}),_0x7451e[_0x858d48('0x2508')]=[];});}_0x7451e[_0x9cbe40('0x858')]=[],_0x7451e[_0x9cbe40('0x2885')]=_0x4b1b00,_0x7451e[_0x9cbe40('0x95b')]=_0x2a37c2,_0x7451e['deleteSelectedDescriptions']=_0x17af54;function _0x4b1b00(_0x1a99d2,_0x13b0bb){var _0x20475e=_0x9cbe40;_0x352519[_0x20475e('0x26b2')]({'controller':_0x20475e('0xc52'),'controllerAs':'vm','templateUrl':_0x4c4632,'parent':angular[_0x20475e('0x24a1')](_0x5b7205['body']),'targetEvent':_0x1a99d2,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x13b0bb,'items':_0x7451e[_0x20475e('0xb9c')],'configuration':_0x7451e[_0x20475e('0x2020')],'account':_0x7451e['zohoAccount'],'license':null,'setting':null,'crudPermissions':_0x7451e[_0x20475e('0xb3d')]}});}function _0x4a5a99(_0x99f2b3){var _0x1e49d4=_0x9cbe40;_0x3dab88[_0x1e49d4('0x11cb')]['delete']({'id':_0x99f2b3['id']})['$promise']['then'](function(){var _0x1622a0=_0x1e49d4;_0x32d445()['remove'](_0x7451e['descriptions'],{'id':_0x99f2b3['id']}),_0x19e940[_0x1622a0('0x425')]({'title':_0x1622a0('0x1c52'),'msg':'Description\x20has\x20been\x20deleted!'});})['catch'](function(_0x574d66){var _0x27c878=_0x1e49d4;_0x19e940[_0x27c878('0x8c8')]({'title':_0x574d66['status']?_0x27c878('0x27f2')+_0x574d66[_0x27c878('0x2833')]+_0x27c878('0x1b7c')+_0x574d66['statusText']:_0x27c878('0x1dde'),'msg':_0x574d66[_0x27c878('0x11d0')]?JSON[_0x27c878('0x3ad')](_0x574d66['data']):_0x574d66['toString']()});});}function _0x2a37c2(_0x290dbe,_0x3985de){var _0x3c883b=_0x9cbe40,_0x4c5488=_0x352519[_0x3c883b('0xa5')]()[_0x3c883b('0x13e4')](_0x3c883b('0x1c50'))[_0x3c883b('0x221c')](_0x3c883b('0x11e1')+'\x20will\x20be\x20deleted.')[_0x3c883b('0x4d1')](_0x3c883b('0x1dc0'))[_0x3c883b('0x1345')](_0x290dbe)['ok']('OK')[_0x3c883b('0x2c1')]('CANCEL');_0x352519[_0x3c883b('0x26b2')](_0x4c5488)[_0x3c883b('0xe19')](function(){_0x4a5a99(_0x3985de);},function(){console['log']('CANCEL');});}function _0x17af54(_0x5eb0cf){var _0x3f4f7b=_0x9cbe40,_0x5336e8=_0x352519[_0x3f4f7b('0xa5')]()[_0x3f4f7b('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x3f4f7b('0x221c')](_0x3f4f7b('0xab2')+_0x7451e['selectedDescriptions']['length']+_0x3f4f7b('0x5bc')+_0x3f4f7b('0x21bd'))[_0x3f4f7b('0x4d1')]('delete\x20descriptions')[_0x3f4f7b('0x1345')](_0x5eb0cf)['ok']('OK')[_0x3f4f7b('0x2c1')]('CANCEL');_0x352519[_0x3f4f7b('0x26b2')](_0x5336e8)[_0x3f4f7b('0xe19')](function(){var _0x57f15b=_0x3f4f7b;_0x7451e[_0x57f15b('0x858')][_0x57f15b('0x1d7e')](function(_0x14e617){_0x4a5a99(_0x14e617);}),_0x7451e[_0x57f15b('0x858')]=[];});}_0x7451e['selectedFields']=[],_0x7451e[_0x9cbe40('0x131')]=_0x3b4a10,_0x7451e[_0x9cbe40('0x2152')]=_0x3a3c33,_0x7451e[_0x9cbe40('0xdfd')]=_0x36c197;function _0x3b4a10(_0x14723d,_0x1bc015){var _0x13707c=_0x9cbe40;_0x352519['show']({'controller':_0x13707c('0xc52'),'controllerAs':'vm','templateUrl':_0x4c4632,'parent':angular['element'](_0x5b7205[_0x13707c('0x19b2')]),'targetEvent':_0x14723d,'clickOutsideToClose':!![],'locals':{'type':_0x13707c('0x15d1'),'item':_0x1bc015,'items':_0x7451e['fields'],'configuration':_0x7451e['zohoConfiguration'],'account':_0x7451e[_0x13707c('0x2874')],'license':null,'setting':null,'crudPermissions':_0x7451e[_0x13707c('0xb3d')]}});}function _0xdf35de(_0x47f556){var _0x3a8d99=_0x9cbe40;_0x3dab88[_0x3a8d99('0x11cb')]['delete']({'id':_0x47f556['id']})[_0x3a8d99('0xe59')]['then'](function(){var _0x1932a9=_0x3a8d99;_0x32d445()['remove'](_0x7451e[_0x1932a9('0x1d17')],{'id':_0x47f556['id']}),_0x19e940[_0x1932a9('0x425')]({'title':_0x1932a9('0x1e5d'),'msg':_0x1932a9('0x21f5')});})[_0x3a8d99('0x223b')](function(_0x45db35){var _0x616e20=_0x3a8d99;_0x19e940['error']({'title':_0x45db35[_0x616e20('0x2833')]?'API:'+_0x45db35[_0x616e20('0x2833')]+_0x616e20('0x1b7c')+_0x45db35[_0x616e20('0x1fd7')]:_0x616e20('0x1dde'),'msg':_0x45db35[_0x616e20('0x11d0')]?JSON[_0x616e20('0x3ad')](_0x45db35[_0x616e20('0x11d0')]):_0x45db35['toString']()});});}function _0x3a3c33(_0x5693d6,_0x366dd4){var _0x1572ee=_0x9cbe40,_0x254fee=_0x352519[_0x1572ee('0xa5')]()[_0x1572ee('0x13e4')](_0x1572ee('0x8b7'))[_0x1572ee('0x221c')](_0x1572ee('0x13a7')+_0x1572ee('0x21bd'))[_0x1572ee('0x4d1')](_0x1572ee('0x23f7'))[_0x1572ee('0x1345')](_0x5693d6)['ok']('OK')[_0x1572ee('0x2c1')]('CANCEL');_0x352519[_0x1572ee('0x26b2')](_0x254fee)['then'](function(){_0xdf35de(_0x366dd4);},function(){var _0x527025=_0x1572ee;console[_0x527025('0x1fe9')](_0x527025('0x17'));});}function _0x36c197(_0x1725e){var _0x18a2c8=_0x9cbe40,_0x376317=_0x352519['confirm']()[_0x18a2c8('0x13e4')](_0x18a2c8('0x128c'))[_0x18a2c8('0x221c')](_0x18a2c8('0xab2')+_0x7451e[_0x18a2c8('0xf97')]['length']+_0x18a2c8('0x5bc')+_0x18a2c8('0x21bd'))[_0x18a2c8('0x4d1')](_0x18a2c8('0x19c9'))['targetEvent'](_0x1725e)['ok']('OK')[_0x18a2c8('0x2c1')]('CANCEL');_0x352519[_0x18a2c8('0x26b2')](_0x376317)[_0x18a2c8('0xe19')](function(){var _0x1b4c44=_0x18a2c8;_0x7451e['selectedFields'][_0x1b4c44('0x1d7e')](function(_0x48c5e0){_0xdf35de(_0x48c5e0);}),_0x7451e[_0x1b4c44('0xf97')]=[];});}}const _0x21c9ed=_0x3fb22e;_0x10ea47[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x244e'),_0xb635d2('0x2020'),'api',_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x10ea47(_0x37a567,_0x2063fe,_0x11c537,_0x17abb7,_0xf68d0b,_0x1ce3b6,_0x3eb6f6,_0x206885,_0x226c16,_0x508dfe,_0x64e54b,_0xd35d90,_0x26d175,_0x45fc5e){var _0x39ec06=_0xb635d2,_0x2d0367=this;_0x2d0367[_0x39ec06('0x15a5')]=_0x64e54b[_0x39ec06('0x1ef8')](),_0x2d0367[_0x39ec06('0xcd2')]=[],_0x2d0367[_0x39ec06('0x22f1')]=_0x26d175,_0x2d0367[_0x39ec06('0x5c1')]=_0xd35d90,_0x2d0367['crudPermissions']=_0x45fc5e,_0x2d0367['hasModulePermissions']={},_0x2d0367[_0x39ec06('0x25ac')]=_0x2d0367[_0x39ec06('0x22f1')]&&_0x2d0367[_0x39ec06('0x22f1')][_0x39ec06('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d0367[_0x39ec06('0x13e4')]=_0x39ec06('0x1146'),_0x2d0367[_0x39ec06('0x2020')]=angular[_0x39ec06('0x89')](_0x226c16),_0x2d0367[_0x39ec06('0x244e')]=_0x206885,_0x2d0367['newZohoConfiguration']=![];!_0x2d0367[_0x39ec06('0x2020')]&&(_0x2d0367[_0x39ec06('0x2020')]={'channel':_0x39ec06('0xe74'),'type':_0x39ec06('0x1a7a')},_0x2d0367[_0x39ec06('0x13e4')]=_0x39ec06('0x53d'),_0x2d0367[_0x39ec06('0x179c')]=!![]);_0x2d0367['addNewZohoConfiguration']=_0x3a6ad9,_0x2d0367[_0x39ec06('0xe9d')]=_0x522dd2,_0x2d0367[_0x39ec06('0x2596')]=_0x870314,_0x2d0367['getDateFromString']=_0x31bb86,_0x2d0367['closeDialog']=_0x924606;function _0x3a6ad9(){var _0x149a0a=_0x39ec06;_0x2d0367[_0x149a0a('0xcd2')]=[],_0x508dfe[_0x149a0a('0x23dd')]['addConfiguration']({'id':_0x2063fe[_0x149a0a('0x2ef')]['id']},_0x2d0367[_0x149a0a('0x2020')])[_0x149a0a('0xe59')][_0x149a0a('0xe19')](function(_0x2527d6){var _0x63a21c=_0x149a0a;_0x2d0367[_0x63a21c('0x244e')][_0x63a21c('0x14c9')](_0x2527d6[_0x63a21c('0x250e')]()),_0x3eb6f6[_0x63a21c('0x425')]({'title':_0x63a21c('0xd08'),'msg':_0x2d0367[_0x63a21c('0x2020')]['name']?_0x2d0367[_0x63a21c('0x2020')][_0x63a21c('0x2623')]+_0x63a21c('0x105f'):''}),_0x924606(_0x2527d6);})[_0x149a0a('0x223b')](function(_0x57e5b0){var _0x385455=_0x149a0a;if(_0x57e5b0[_0x385455('0x11d0')]&&_0x57e5b0[_0x385455('0x11d0')][_0x385455('0xcd2')]&&_0x57e5b0[_0x385455('0x11d0')][_0x385455('0xcd2')][_0x385455('0x25ae')]){_0x2d0367[_0x385455('0xcd2')]=_0x57e5b0[_0x385455('0x11d0')][_0x385455('0xcd2')]||[{'message':_0x57e5b0[_0x385455('0x94f')](),'type':_0x385455('0x8dd')}];for(var _0x104cb9=0x0;_0x104cb9<_0x57e5b0[_0x385455('0x11d0')]['errors']['length'];_0x104cb9+=0x1){_0x3eb6f6[_0x385455('0x8c8')]({'title':_0x57e5b0[_0x385455('0x11d0')][_0x385455('0xcd2')][_0x104cb9]['type'],'msg':_0x57e5b0['data'][_0x385455('0xcd2')][_0x104cb9][_0x385455('0x27e8')]});}}else _0x3eb6f6[_0x385455('0x8c8')]({'title':_0x57e5b0[_0x385455('0x2833')]?_0x385455('0x27f2')+_0x57e5b0[_0x385455('0x2833')]+_0x385455('0x1b7c')+_0x57e5b0[_0x385455('0x1fd7')]:_0x385455('0x8dd'),'msg':_0x57e5b0['data']?JSON[_0x385455('0x3ad')](_0x57e5b0['data'][_0x385455('0x27e8')]):_0x57e5b0[_0x385455('0x94f')]()});});}function _0x522dd2(){var _0x3e15c6=_0x39ec06;_0x2d0367[_0x3e15c6('0xcd2')]=[],_0x508dfe['intZohoConfiguration'][_0x3e15c6('0xa70')]({'id':_0x2d0367['zohoConfiguration']['id']},_0x2d0367[_0x3e15c6('0x2020')])[_0x3e15c6('0xe59')]['then'](function(_0x4f06a5){var _0x77305d=_0x3e15c6,_0x3c35c5=_0x32d445()[_0x77305d('0xf15')](_0x2d0367[_0x77305d('0x244e')],{'id':_0x4f06a5['id']});_0x3c35c5&&_0x32d445()[_0x77305d('0x1d8')](_0x3c35c5,_0x32d445()[_0x77305d('0xed5')](_0x4f06a5[_0x77305d('0x250e')](),_0x32d445()['keys'](_0x3c35c5))),_0x3eb6f6[_0x77305d('0x425')]({'title':_0x77305d('0x1f'),'msg':_0x2d0367[_0x77305d('0x2020')]['name']?_0x2d0367[_0x77305d('0x2020')][_0x77305d('0x2623')]+_0x77305d('0x1c19'):''}),_0x924606(_0x4f06a5);})[_0x3e15c6('0x223b')](function(_0x47b2fe){var _0x52f269=_0x3e15c6;if(_0x47b2fe[_0x52f269('0x11d0')]&&_0x47b2fe[_0x52f269('0x11d0')][_0x52f269('0xcd2')]&&_0x47b2fe[_0x52f269('0x11d0')][_0x52f269('0xcd2')][_0x52f269('0x25ae')]){_0x2d0367['errors']=_0x47b2fe[_0x52f269('0x11d0')][_0x52f269('0xcd2')]||[{'message':_0x47b2fe[_0x52f269('0x94f')](),'type':_0x52f269('0x20b3')}];for(var _0x4e0c77=0x0;_0x4e0c77<_0x47b2fe[_0x52f269('0x11d0')][_0x52f269('0xcd2')][_0x52f269('0x25ae')];_0x4e0c77++){_0x3eb6f6[_0x52f269('0x8c8')]({'title':_0x47b2fe[_0x52f269('0x11d0')][_0x52f269('0xcd2')][_0x4e0c77][_0x52f269('0x62e')],'msg':_0x47b2fe['data'][_0x52f269('0xcd2')][_0x4e0c77][_0x52f269('0x27e8')]});}}else _0x3eb6f6[_0x52f269('0x8c8')]({'title':_0x47b2fe[_0x52f269('0x2833')]?_0x52f269('0x27f2')+_0x47b2fe[_0x52f269('0x2833')]+_0x52f269('0x1b7c')+_0x47b2fe[_0x52f269('0x1fd7')]:'api.intZohoConfiguration.update','msg':_0x47b2fe[_0x52f269('0x11d0')]?JSON[_0x52f269('0x3ad')](_0x47b2fe[_0x52f269('0x11d0')][_0x52f269('0x27e8')]):_0x47b2fe[_0x52f269('0x94f')]()});});}function _0x870314(_0x5a5f7e){var _0x170272=_0x39ec06;_0x2d0367['errors']=[];var _0x5b604f=_0x17abb7['confirm']()[_0x170272('0x13e4')](_0x170272('0x24d0'))[_0x170272('0xd0')](_0x170272('0xaae'))[_0x170272('0x4d1')](_0x170272('0x14f8'))['ok'](_0x170272('0x2198'))[_0x170272('0x2c1')](_0x170272('0x8a3'))[_0x170272('0x1345')](_0x5a5f7e);_0x17abb7[_0x170272('0x26b2')](_0x5b604f)['then'](function(){var _0x2d3887=_0x170272;_0x508dfe[_0x2d3887('0xd98')][_0x2d3887('0x229e')]({'id':_0x2d0367[_0x2d3887('0x2020')]['id']})['$promise'][_0x2d3887('0xe19')](function(){var _0x16660e=_0x2d3887;_0x32d445()['remove'](_0x2d0367[_0x16660e('0x244e')],{'id':_0x2d0367['zohoConfiguration']['id']}),_0x3eb6f6[_0x16660e('0x425')]({'title':_0x16660e('0x1dcb'),'msg':(_0x2d0367[_0x16660e('0x2020')]['name']||_0x16660e('0x2020'))+'\x20has\x20been\x20deleted!'}),_0x924606(_0x2d0367['zohoConfiguration']);})['catch'](function(_0x5d3cfb){var _0x2ca657=_0x2d3887;if(_0x5d3cfb[_0x2ca657('0x11d0')]&&_0x5d3cfb['data'][_0x2ca657('0xcd2')]&&_0x5d3cfb[_0x2ca657('0x11d0')][_0x2ca657('0xcd2')][_0x2ca657('0x25ae')]){_0x2d0367[_0x2ca657('0xcd2')]=_0x5d3cfb[_0x2ca657('0x11d0')]['errors']||[{'message':_0x5d3cfb[_0x2ca657('0x94f')](),'type':_0x2ca657('0x223d')}];for(var _0x359884=0x0;_0x359884<_0x5d3cfb[_0x2ca657('0x11d0')][_0x2ca657('0xcd2')]['length'];_0x359884++){_0x3eb6f6['error']({'title':_0x5d3cfb['data'][_0x2ca657('0xcd2')][_0x359884][_0x2ca657('0x62e')],'msg':_0x5d3cfb[_0x2ca657('0x11d0')]['errors'][_0x359884][_0x2ca657('0x27e8')]});}}else _0x3eb6f6['error']({'title':_0x5d3cfb[_0x2ca657('0x2833')]?'API:'+_0x5d3cfb['status']+'\x20-\x20'+_0x5d3cfb[_0x2ca657('0x1fd7')]:_0x2ca657('0x223d'),'msg':_0x5d3cfb[_0x2ca657('0x11d0')]?JSON[_0x2ca657('0x3ad')](_0x5d3cfb[_0x2ca657('0x11d0')]['message']):_0x5d3cfb[_0x2ca657('0x27e8')]||_0x5d3cfb[_0x2ca657('0x94f')]()});});},function(){});}function _0x31bb86(_0x13433d){return _0x13433d===null?undefined:new Date(_0x13433d);}function _0x924606(_0x323195){var _0x493421=_0x39ec06;_0x17abb7[_0x493421('0x11ed')](_0x323195);}}const _0x2b1183=_0x10ea47;_0xc7f661[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','toasty','configuration',_0xb635d2('0xe4b'),_0xb635d2('0xdbb'),_0xb635d2('0xe8b'),_0xb635d2('0x62e'),'api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0xc7f661(_0x474f98,_0x4eace0,_0x57ca0d,_0x23d775,_0xa3f3fe,_0x5aa0d7,_0x341c4f,_0x47acf4,_0xe4c387,_0x4d8578,_0x3c9810,_0x173247,_0xc2b2e5){var _0x3a14b2=_0xb635d2,_0x503e59=this;_0x503e59['currentUser']=_0x173247[_0x3a14b2('0x1ef8')](),_0x503e59[_0x3a14b2('0xcd2')]=[],_0x503e59[_0x3a14b2('0x13e4')]=_0x3a14b2('0x53c')+_0x32d445()['toUpper'](_0x4d8578),_0x503e59['item']=angular[_0x3a14b2('0x89')](_0x47acf4),_0x503e59['items']=_0x341c4f,_0x503e59[_0x3a14b2('0x62e')]=_0x4d8578,_0x503e59[_0x3a14b2('0xb3d')]=_0xc2b2e5,_0x503e59['newItem']=![];!_0x503e59['item']&&(_0x503e59['item']={'type':_0x3a14b2('0x19d1')},_0x503e59['item'][_0x32d445()[_0x3a14b2('0xbf6')](_0x4d8578)+'Id']=_0x5aa0d7['id'],_0x503e59[_0x3a14b2('0x13e4')]=_0x3a14b2('0x7e2')+_0x32d445()[_0x3a14b2('0xcbc')](_0x4d8578),_0x503e59[_0x3a14b2('0xa3')]=!![]);_0x503e59[_0x3a14b2('0x9ca')]=_0x5a8af5,_0x503e59[_0x3a14b2('0x1384')]=_0x2068bc,_0x503e59[_0x3a14b2('0xc32')]=_0x12f12c,_0x503e59[_0x3a14b2('0x142b')]=_0x385c53,_0x503e59[_0x3a14b2('0x2584')]=_0x4469f0,_0x3c9810[_0x3a14b2('0x19a5')][_0x3a14b2('0x22d5')]({'nolimit':!![]})['$promise'][_0x3a14b2('0xe19')](function(_0x4b8c56){var _0xbb795c=_0x3a14b2;return _0x503e59['variables']=_0x4b8c56[_0xbb795c('0x16a7')]?_0x4b8c56[_0xbb795c('0x16a7')]:[],_0x3c9810[_0xbb795c('0x22cf')][_0xbb795c('0x215e')]()[_0xbb795c('0xe59')];})[_0x3a14b2('0xe19')](function(_0x6348af){var _0x5c6bc1=_0x3a14b2;return _0x503e59['voiceAgentReportColumns']=_0x32d445()[_0x5c6bc1('0x11d3')](_0x32d445()[_0x5c6bc1('0x1234')](_0x6348af),[_0x5c6bc1('0xe59'),_0x5c6bc1('0x113c'),_0x5c6bc1('0x15c9'),_0x5c6bc1('0x1ce9'),_0x5c6bc1('0x1bea')]),_0x503e59[_0x5c6bc1('0x1230')][_0x5c6bc1('0xb76')](_0x5c6bc1('0xeaa')),_0x3c9810[_0x5c6bc1('0xa4e')][_0x5c6bc1('0x215e')]()[_0x5c6bc1('0xe59')];})[_0x3a14b2('0xe19')](function(_0x7d3a47){var _0x5147d1=_0x3a14b2;_0x503e59[_0x5147d1('0x9f9')]=_0x32d445()['difference'](_0x32d445()['keys'](_0x7d3a47),[_0x5147d1('0xe59'),'$resolved',_0x5147d1('0x15c9'),_0x5147d1('0x1ce9'),'sourceid']),_0x503e59[_0x5147d1('0x9f9')][_0x5147d1('0xb76')](_0x5147d1('0xeaa'));})['catch'](function(_0x1d932f){var _0x4190b6=_0x3a14b2;_0xa3f3fe[_0x4190b6('0x8c8')]({'title':_0x1d932f[_0x4190b6('0x2833')]?_0x4190b6('0x27f2')+_0x1d932f['status']+_0x4190b6('0x1b7c')+_0x1d932f[_0x4190b6('0x1fd7')]:'SYSTEM:GETVARIABLES','msg':_0x1d932f[_0x4190b6('0x11d0')]?JSON[_0x4190b6('0x3ad')](_0x1d932f['data']):_0x1d932f[_0x4190b6('0x94f')]()});}),_0x3c9810['intZohoAccount']['getFields']({'id':_0xe4c387['id'],'ticketType':_0x5aa0d7[_0x3a14b2('0x11d2')]?_0x5aa0d7['ticketType']:undefined})['$promise']['then'](function(_0x4ad177){var _0x3c2591=_0x3a14b2;_0x503e59[_0x3c2591('0xbba')]=!![],_0x503e59[_0x3c2591('0x1d17')]=_0x4ad177[_0x3c2591('0x16a7')]?_0x4ad177[_0x3c2591('0x16a7')]:[],_0x503e59['item']['idField']&&(_0x503e59[_0x3c2591('0x1129')]=_0x32d445()['find'](_0x503e59[_0x3c2591('0x1d17')],{'id':_0x503e59[_0x3c2591('0xdbb')]['idField']}));})[_0x3a14b2('0x223b')](function(_0x1b0cbd){_0x503e59['accountConnected']=![],console['error'](_0x1b0cbd);});function _0x5a8af5(){var _0x25fa98=_0x3a14b2;_0x503e59['errors']=[],_0x503e59[_0x25fa98('0x1129')]&&(_0x503e59[_0x25fa98('0xdbb')]['idField']=_0x503e59[_0x25fa98('0x1129')]['id'],_0x503e59[_0x25fa98('0xdbb')][_0x25fa98('0x99e')]=_0x503e59[_0x25fa98('0x1129')][_0x25fa98('0x2623')],_0x503e59[_0x25fa98('0xdbb')][_0x25fa98('0x1129')]=_0x503e59[_0x25fa98('0x1129')][_0x25fa98('0x261d')]),_0x3c9810[_0x25fa98('0x11cb')][_0x25fa98('0xe5e')](_0x503e59[_0x25fa98('0xdbb')])[_0x25fa98('0xe59')]['then'](function(_0x30d87d){var _0x1e5be7=_0x25fa98;_0x503e59[_0x1e5be7('0xe4b')]['unshift'](_0x30d87d),_0xa3f3fe[_0x1e5be7('0x425')]({'title':_0x32d445()[_0x1e5be7('0xbf6')](_0x4d8578)+'\x20properly\x20created','msg':_0x32d445()[_0x1e5be7('0xbf6')](_0x4d8578)+_0x1e5be7('0x105f')}),_0x4469f0();})[_0x25fa98('0x223b')](function(_0x1996f3){var _0x1b0d46=_0x25fa98;console[_0x1b0d46('0x8c8')](_0x1996f3),_0x503e59['errors']=_0x1996f3[_0x1b0d46('0x11d0')]['errors']||[{'message':_0x1996f3[_0x1b0d46('0x94f')](),'type':_0x1b0d46('0xc4c')}];});}function _0x2068bc(){var _0x4bd557=_0x3a14b2;_0x503e59[_0x4bd557('0xcd2')]=[],_0x503e59['customField']&&(_0x503e59['item'][_0x4bd557('0x1c96')]=_0x503e59[_0x4bd557('0x1129')]['id'],_0x503e59[_0x4bd557('0xdbb')][_0x4bd557('0x99e')]=_0x503e59['customField'][_0x4bd557('0x2623')],_0x503e59['item'][_0x4bd557('0x1129')]=_0x503e59[_0x4bd557('0x1129')][_0x4bd557('0x261d')]),_0x3c9810[_0x4bd557('0x11cb')][_0x4bd557('0xa70')]({'id':_0x503e59[_0x4bd557('0xdbb')]['id']},_0x503e59['item'])['$promise']['then'](function(_0x126a4a){var _0x5a056d=_0x4bd557,_0x1a0407=_0x32d445()[_0x5a056d('0xf15')](_0x503e59[_0x5a056d('0xe4b')],{'id':_0x126a4a['id']});_0x1a0407&&_0x32d445()[_0x5a056d('0x1d8')](_0x1a0407,_0x126a4a),_0xa3f3fe[_0x5a056d('0x425')]({'title':_0x32d445()[_0x5a056d('0xbf6')](_0x4d8578)+_0x5a056d('0xdaf'),'msg':_0x32d445()[_0x5a056d('0xbf6')](_0x4d8578)+'\x20has\x20been\x20saved!'}),_0x4469f0();})[_0x4bd557('0x223b')](function(_0x110dad){var _0x9a3259=_0x4bd557;console[_0x9a3259('0x8c8')](_0x110dad),_0x503e59['errors']=_0x110dad[_0x9a3259('0x11d0')][_0x9a3259('0xcd2')]||[{'message':_0x110dad[_0x9a3259('0x94f')](),'type':_0x9a3259('0x2134')}];});}function _0x12f12c(_0x4020b7){var _0x17cd81=_0x3a14b2;_0x503e59['errors']=[];var _0xd48dd6=_0x23d775[_0x17cd81('0xa5')]()[_0x17cd81('0x13e4')](_0x17cd81('0x24d0'))[_0x17cd81('0xd0')](_0x17cd81('0x2784')+_0x4d8578+'\x20will\x20be\x20deleted.')[_0x17cd81('0x4d1')](_0x17cd81('0x13de')+_0x32d445()[_0x17cd81('0xbf6')](_0x4d8578))['ok'](_0x17cd81('0x2198'))['cancel'](_0x17cd81('0x8a3'))[_0x17cd81('0x1345')](_0x4020b7);_0x23d775[_0x17cd81('0x26b2')](_0xd48dd6)[_0x17cd81('0xe19')](function(){var _0x46bc62=_0x17cd81;_0x3c9810[_0x46bc62('0x11cb')]['delete']({'id':_0x503e59[_0x46bc62('0xdbb')]['id']})['$promise'][_0x46bc62('0xe19')](function(){var _0x5919b6=_0x46bc62;_0x32d445()[_0x5919b6('0xa8b')](_0x503e59[_0x5919b6('0xe4b')],{'id':_0x503e59['item']['id']}),_0xa3f3fe[_0x5919b6('0x425')]({'title':_0x32d445()[_0x5919b6('0xbf6')](_0x4d8578)+_0x5919b6('0x1ddc'),'msg':_0x32d445()['capitalize'](_0x4d8578)+_0x5919b6('0x2182')}),_0x4469f0();})[_0x46bc62('0x223b')](function(_0x494f04){var _0x4b525b=_0x46bc62;console[_0x4b525b('0x8c8')](_0x494f04),_0x503e59['errors']=_0x494f04['data'][_0x4b525b('0xcd2')]||[{'message':_0x494f04[_0x4b525b('0x94f')](),'type':_0x4b525b('0x2272')}];});},function(){});}function _0x385c53(){var _0x5eae16=_0x3a14b2;return _0x503e59[_0x5eae16('0xdbb')][_0x5eae16('0x17b')]!==undefined?_0x503e59[_0x5eae16('0xdbb')]['variableName']:_0x5eae16('0xc');}function _0x4469f0(){var _0x82ab34=_0x3a14b2;_0x23d775[_0x82ab34('0x11ed')]();}}const _0x392c17=_0xc7f661;_0xa04b73['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'zohoAccount','userProfileSection'];function _0xa04b73(_0xb7d77f,_0x50c586,_0x2fcee7,_0x6e06d3,_0x40ba3e,_0x3945a9,_0x30994f,_0x462b6b,_0x2c9a04,_0x291988,_0x4d7cb8,_0x34a0f9){var _0xd746cb=_0xb635d2,_0x50b9a7=this;_0x50b9a7[_0xd746cb('0x15a5')]=_0x291988['getCurrentUser'](),_0x50b9a7[_0xd746cb('0x5c1')]=_0x3945a9,_0x50b9a7[_0xd746cb('0x22f1')]=_0x30994f,_0x50b9a7[_0xd746cb('0x25ac')]=_0x50b9a7[_0xd746cb('0x22f1')][_0xd746cb('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50b9a7[_0xd746cb('0x2170')]=_0x50c586[_0xd746cb('0xec0')]()+_0xd746cb('0x21a8')+_0x50c586[_0xd746cb('0x3b7')](),_0x50b9a7[_0xd746cb('0x2874')]=_0x4d7cb8||_0xb7d77f[_0xd746cb('0x2ef')][_0xd746cb('0x2874')]||{},_0x50b9a7[_0xd746cb('0xb59')]=_0x34a0f9&&_0x34a0f9['count']==0x1?_0x34a0f9[_0xd746cb('0x16a7')][0x0]:null,_0x50b9a7[_0xd746cb('0xb3d')]=_0x291988['parseCrudPermissions'](_0x50b9a7[_0xd746cb('0xb59')]?_0x50b9a7['userProfileSection'][_0xd746cb('0xb3d')]:null),_0x50b9a7[_0xd746cb('0x1ccb')]={},_0x50b9a7[_0xd746cb('0xc7b')]=_0xb7d77f[_0xd746cb('0x2ef')][_0xd746cb('0x435')]||0x0,_0x50b9a7['alert']=_0x2c9a04['info'],_0x50b9a7[_0xd746cb('0x2632')]=_0x162cc7,_0x50b9a7[_0xd746cb('0x18a8')]=_0x83cfbd;function _0x162cc7(){var _0x4df725=_0xd746cb;_0xb7d77f['go'](_0x4df725('0xb'),{},{'reload':_0x4df725('0xb')});}function _0x83cfbd(){var _0x12dc42=_0xd746cb;_0x462b6b[_0x12dc42('0x23dd')]['update']({'id':_0x50b9a7['zohoAccount']['id']},_0x50b9a7[_0x12dc42('0x2874')])[_0x12dc42('0xe59')][_0x12dc42('0xe19')](function(){var _0x4f4232=_0x12dc42;_0x2c9a04[_0x4f4232('0x425')]({'title':_0x4f4232('0x13a'),'msg':_0x50b9a7[_0x4f4232('0x2874')][_0x4f4232('0x2623')]?_0x50b9a7[_0x4f4232('0x2874')]['name']+_0x4f4232('0x283b'):''});})[_0x12dc42('0x223b')](function(_0x34ec51){var _0x13fa38=_0x12dc42;_0x2c9a04['error']({'title':_0x34ec51['status']?'API:'+_0x34ec51[_0x13fa38('0x2833')]+'\x20-\x20'+_0x34ec51[_0x13fa38('0x1fd7')]:_0x13fa38('0x192e'),'msg':_0x34ec51[_0x13fa38('0x11d0')]?JSON['stringify'](_0x34ec51[_0x13fa38('0x11d0')]):_0x34ec51[_0x13fa38('0x94f')]()});});}}const _0x151c67=_0xa04b73,_0x5b6a0d=_0x59426a['p']+_0xb635d2('0x17d1');_0x1b234f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x1ac3'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x1b234f(_0xfdd328,_0x28df99,_0x240365,_0xd247b6,_0x58584c,_0x5a6080,_0xbd8345,_0x1a66e2,_0x1c48cd,_0x479ca8,_0x2ead42,_0x1619ae,_0x1e38a7,_0x5241fe,_0x5a5d76,_0x1172d7,_0x312b18){var _0x53c7ff=_0xb635d2,_0x14ab2f=this;_0x14ab2f[_0x53c7ff('0x5c1')]=_0x1172d7,_0x14ab2f[_0x53c7ff('0x22f1')]=_0x312b18,_0x14ab2f[_0x53c7ff('0x15a5')]=_0x5a5d76[_0x53c7ff('0x1ef8')](),_0x14ab2f[_0x53c7ff('0x1ac3')]=_0x1c48cd||{'count':0x0,'rows':[]},_0x14ab2f[_0x53c7ff('0x154f')]=_0x479ca8,_0x14ab2f[_0x53c7ff('0xb59')]=_0x2ead42&&_0x2ead42[_0x53c7ff('0x148b')]==0x1?_0x2ead42[_0x53c7ff('0x16a7')][0x0]:null,_0x14ab2f[_0x53c7ff('0xb3d')]=_0x5a5d76[_0x53c7ff('0xd31')](_0x14ab2f[_0x53c7ff('0xb59')]?_0x14ab2f[_0x53c7ff('0xb59')][_0x53c7ff('0xb3d')]:null),_0x14ab2f['table']='zohoAccounts',_0x14ab2f[_0x53c7ff('0x14d6')]='',_0x14ab2f['listOrderAsc']=null,_0x14ab2f[_0x53c7ff('0x1d68')]=[],_0x14ab2f['query']={'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'page':0x1},_0x14ab2f[_0x53c7ff('0x1c3d')]=_0x32d445()[_0x53c7ff('0x226f')]([{'option':'zoho.com','value':_0x53c7ff('0x2397')},{'option':_0x53c7ff('0x6a9'),'value':_0x53c7ff('0x16e9')}],function(_0x1797dd){var _0x5a9a2f=_0x53c7ff;return _0x32d445()[_0x5a9a2f('0x1b42')](_0x1797dd['value'],new RegExp('\x27','g'),'');}),_0x14ab2f['arrayzone']=_0x32d445()[_0x53c7ff('0x226f')]([{'option':'US','value':_0x53c7ff('0x2755')},{'option':'AU','value':_0x53c7ff('0x947')},{'option':'EU','value':'\x27EU\x27'},{'option':'IN','value':_0x53c7ff('0x251a')},{'option':'CN','value':'\x27CN\x27'}],function(_0x418220){var _0x319764=_0x53c7ff;return _0x32d445()[_0x319764('0x1b42')](_0x418220[_0x319764('0x2')],new RegExp('\x27','g'),'');}),_0x14ab2f[_0x53c7ff('0x16a0')]=_0x4f0177,_0x14ab2f[_0x53c7ff('0x238c')]=_0xec8fe9,_0x14ab2f['deleteconfirm']=_0x5cae47,_0x14ab2f[_0x53c7ff('0x425')]=_0x1b0950,_0x14ab2f[_0x53c7ff('0x652')]=_0x772843,_0x14ab2f[_0x53c7ff('0x161')]=_0x4af11b,_0x14ab2f[_0x53c7ff('0x7a5')]=_0x97700f,_0x14ab2f[_0x53c7ff('0x3a9')]=_0x336fb9,_0x14ab2f[_0x53c7ff('0x911')]=_0x4fb523,_0x14ab2f['deselectZohoAccounts']=_0x20ec27,_0x14ab2f[_0x53c7ff('0x10d9')]=_0x4810f9;function _0x4f0177(_0x539f27){var _0x1a3f0f=_0x53c7ff;_0x240365['go'](_0x1a3f0f('0x1bef'),{'id':_0x539f27['id'],'zohoAccount':_0x539f27,'crudPermissions':_0x14ab2f[_0x1a3f0f('0xb3d')]});}function _0xec8fe9(_0x4dc19a){var _0x508d83=_0x53c7ff;return _0x1619ae[_0x508d83('0x23dd')][_0x508d83('0x23f8')]({'id':_0x4dc19a['id'],'test':!![]})[_0x508d83('0xe59')]['then'](function(){var _0x3fef49=_0x508d83;_0x5241fe[_0x3fef49('0x425')]({'title':_0x3fef49('0x827'),'msg':_0x3fef49('0xd96')});})[_0x508d83('0x223b')](function(_0x466828){var _0x1d93c7=_0x508d83;_0x5241fe[_0x1d93c7('0x8c8')]({'title':_0x1d93c7('0x827'),'msg':_0x466828[_0x1d93c7('0x11d0')]?_0x466828[_0x1d93c7('0x11d0')][_0x1d93c7('0x27e8')]?_0x466828[_0x1d93c7('0x11d0')][_0x1d93c7('0x27e8')]:JSON[_0x1d93c7('0x3ad')](_0x466828[_0x1d93c7('0x11d0')]):_0x466828[_0x1d93c7('0x94f')]()});});}function _0x5cae47(_0x5dea8f,_0x3b870c){var _0x1c7723=_0x53c7ff,_0x3f1bd2=_0x58584c[_0x1c7723('0xa5')]()[_0x1c7723('0x13e4')](_0x1c7723('0x346')+_0x32d445()[_0x1c7723('0x1df2')](_0x1c7723('0x2874'))+'?')[_0x1c7723('0x221c')](_0x1c7723('0xab2')+(_0x5dea8f['name']||'zohoAccount')+_0x1c7723('0x27bb')+_0x1c7723('0x21bd'))[_0x1c7723('0x4d1')](_0x1c7723('0x2543'))['targetEvent'](_0x3b870c)['ok']('OK')[_0x1c7723('0x2c1')](_0x1c7723('0x17'));_0x58584c[_0x1c7723('0x26b2')](_0x3f1bd2)[_0x1c7723('0xe19')](function(){_0x97700f(_0x5dea8f);},function(){var _0x4c054b=_0x1c7723;console[_0x4c054b('0x1fe9')](_0x4c054b('0x17'));});}var _0x38b47c=!![],_0xe1c638=0x1;_0xfdd328[_0x53c7ff('0x107')](_0x53c7ff('0x20cb'),function(_0x192780,_0x507ea1){var _0x4c0817=_0x53c7ff;_0x38b47c?_0xbd8345(function(){_0x38b47c=![];}):(!_0x507ea1&&(_0xe1c638=_0x14ab2f[_0x4c0817('0xa16')][_0x4c0817('0xc08')]),_0x192780!==_0x507ea1&&(_0x14ab2f['query'][_0x4c0817('0xc08')]=0x1),!_0x192780&&(_0x14ab2f['query'][_0x4c0817('0xc08')]=_0xe1c638),_0x14ab2f[_0x4c0817('0x652')]());});function _0x1b0950(_0x32b2f0){_0x14ab2f['zohoAccounts']=_0x32b2f0||{'count':0x0,'rows':[]};}function _0x772843(){var _0x4b6f91=_0x53c7ff;_0x14ab2f[_0x4b6f91('0xa16')][_0x4b6f91('0xab0')]=(_0x14ab2f[_0x4b6f91('0xa16')][_0x4b6f91('0xc08')]-0x1)*_0x14ab2f[_0x4b6f91('0xa16')][_0x4b6f91('0x1b6d')],_0x5a5d76[_0x4b6f91('0x179e')](_0x4b6f91('0xd14'))?_0x14ab2f['promise']=_0x1619ae[_0x4b6f91('0x23dd')][_0x4b6f91('0x22d5')](_0x14ab2f[_0x4b6f91('0xa16')],_0x1b0950)['$promise']:(_0x14ab2f[_0x4b6f91('0xa16')]['id']=_0x14ab2f[_0x4b6f91('0x154f')]['id'],_0x14ab2f[_0x4b6f91('0xa16')][_0x4b6f91('0x1e59')]=_0x4b6f91('0x5a7'),_0x14ab2f[_0x4b6f91('0x9c8')]=_0x1619ae[_0x4b6f91('0x154f')][_0x4b6f91('0x14e6')](_0x14ab2f['query'],_0x1b0950)[_0x4b6f91('0xe59')]);}function _0x4af11b(_0x3b9c8d,_0x3c0852){var _0x4d1e6e=_0x53c7ff;_0x58584c[_0x4d1e6e('0x26b2')]({'controller':_0x4d1e6e('0xab'),'controllerAs':'vm','templateUrl':_0x5b6a0d,'parent':angular['element'](_0x5a6080[_0x4d1e6e('0x19b2')]),'targetEvent':_0x3b9c8d,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0x3c0852,'zohoAccounts':_0x14ab2f[_0x4d1e6e('0x1ac3')]['rows'],'license':_0x14ab2f['license'],'setting':_0x14ab2f[_0x4d1e6e('0x22f1')],'crudPermissions':_0x14ab2f[_0x4d1e6e('0xb3d')]}});}function _0x97700f(_0x364257){var _0x936755=_0x53c7ff;_0x1619ae[_0x936755('0x23dd')][_0x936755('0x229e')]({'id':_0x364257['id']})[_0x936755('0xe59')][_0x936755('0xe19')](function(){var _0x2497dd=_0x936755;_0x32d445()[_0x2497dd('0xa8b')](_0x14ab2f[_0x2497dd('0x1ac3')][_0x2497dd('0x16a7')],{'id':_0x364257['id']}),_0x14ab2f[_0x2497dd('0x1ac3')][_0x2497dd('0x148b')]-=0x1,!_0x14ab2f[_0x2497dd('0x1ac3')][_0x2497dd('0x16a7')][_0x2497dd('0x25ae')]&&_0x14ab2f[_0x2497dd('0x652')](),_0x5241fe[_0x2497dd('0x425')]({'title':_0x32d445()[_0x2497dd('0x1df2')]('ZohoAccount')+_0x2497dd('0x1219'),'msg':_0x364257[_0x2497dd('0x2623')]?_0x364257['name']+_0x2497dd('0x2182'):''});})[_0x936755('0x223b')](function(_0x260458){var _0x3139a6=_0x936755;if(_0x260458[_0x3139a6('0x11d0')]&&_0x260458[_0x3139a6('0x11d0')][_0x3139a6('0xcd2')]&&_0x260458[_0x3139a6('0x11d0')][_0x3139a6('0xcd2')][_0x3139a6('0x25ae')]){_0x14ab2f[_0x3139a6('0xcd2')]=_0x260458[_0x3139a6('0x11d0')]['errors']||[{'message':_0x260458['toString'](),'type':_0x3139a6('0x81b')}];for(var _0x55f57d=0x0;_0x55f57d<_0x260458[_0x3139a6('0x11d0')][_0x3139a6('0xcd2')][_0x3139a6('0x25ae')];_0x55f57d++){_0x5241fe[_0x3139a6('0x8c8')]({'title':_0x260458[_0x3139a6('0x11d0')][_0x3139a6('0xcd2')][_0x55f57d][_0x3139a6('0x62e')],'msg':_0x260458[_0x3139a6('0x11d0')][_0x3139a6('0xcd2')][_0x55f57d]['message']});}}else _0x5241fe[_0x3139a6('0x8c8')]({'title':_0x260458[_0x3139a6('0x2833')]?_0x3139a6('0x27f2')+_0x260458[_0x3139a6('0x2833')]+_0x3139a6('0x1b7c')+_0x260458['statusText']:_0x3139a6('0x81b'),'msg':_0x260458[_0x3139a6('0x11d0')]?JSON[_0x3139a6('0x3ad')](_0x260458[_0x3139a6('0x11d0')]['message']):_0x260458['message']||_0x260458['toString']()});});}function _0x336fb9(){var _0xa32982=_0x53c7ff,_0x3e633f=angular['copy'](_0x14ab2f[_0xa32982('0x1d68')]);return _0x14ab2f[_0xa32982('0x1d68')]=[],_0x3e633f;}function _0x4fb523(_0x4ac447){var _0x2069b1=_0x53c7ff,_0x33a62f=_0x58584c[_0x2069b1('0xa5')]()[_0x2069b1('0x13e4')](_0x2069b1('0x545'))[_0x2069b1('0x221c')](_0x2069b1('0xab2')+_0x14ab2f[_0x2069b1('0x1d68')]['length']+_0x2069b1('0x5bc')+'\x20will\x20be\x20deleted.')[_0x2069b1('0x4d1')]('delete\x20ZohoAccounts')[_0x2069b1('0x1345')](_0x4ac447)['ok']('OK')[_0x2069b1('0x2c1')](_0x2069b1('0x17'));_0x58584c[_0x2069b1('0x26b2')](_0x33a62f)['then'](function(){var _0x39d472=_0x2069b1;_0x14ab2f['selectedZohoAccounts'][_0x39d472('0x1d7e')](function(_0x2dd74d){_0x97700f(_0x2dd74d);}),_0x14ab2f['selectedZohoAccounts']=[];});}function _0x20ec27(){var _0x284843=_0x53c7ff;_0x14ab2f[_0x284843('0x1d68')]=[];}function _0x4810f9(){var _0x1d7c2f=_0x53c7ff;_0x14ab2f[_0x1d7c2f('0x1d68')]=_0x14ab2f[_0x1d7c2f('0x1ac3')]['rows'];}}const _0x245433=_0x1b234f;_0x32a138[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x32a138(_0x3f37d8,_0x1441ef){var _0x36c21e=_0xb635d2;_0x3f37d8[_0x36c21e('0x1d72')](_0x36c21e('0x1038'),{'abstract':!![],'url':'/integrations'})[_0x36c21e('0x1d72')](_0x36c21e('0x489'),{'url':_0x36c21e('0x39c'),'views':{'content@app':{'templateUrl':_0x406d4b,'controller':_0x36c21e('0x2191')}},'resolve':{'zendeskAccounts':[_0x36c21e('0x292'),'Auth',function _0x431c7f(_0xc05224,_0xd39050){var _0x4a13b9=_0x36c21e;return _0xd39050[_0x4a13b9('0x179e')]('admin')?_0xc05224['resolve'](_0x4a13b9('0x1fb5'),{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'offset':0x0}):_0xc05224[_0x4a13b9('0xcd6')](_0x4a13b9('0x197d'),{'id':_0xd39050[_0x4a13b9('0x1ef8')]()['userProfileId'],'section':'ZendeskAccounts','fields':_0x4a13b9('0x1ff1'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x36f47f(_0xbde0b6,_0x19b1f0){var _0x26c1cc=_0x36c21e;return _0x19b1f0[_0x26c1cc('0x179e')](_0x26c1cc('0xd14'))?null:_0xbde0b6[_0x26c1cc('0xcd6')](_0x26c1cc('0x455'),{'fields':_0x26c1cc('0x1b71'),'id':_0x19b1f0['getCurrentUser']()[_0x26c1cc('0x1d04')]});}],'userProfileSection':['apiResolver',_0x36c21e('0x2730'),function _0x3ee661(_0x3a4c57,_0x52521a){var _0x206835=_0x36c21e;return _0x52521a[_0x206835('0x179e')](_0x206835('0xd14'))?null:_0x3a4c57[_0x206835('0xcd6')](_0x206835('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x52521a[_0x206835('0x1ef8')]()[_0x206835('0x1d04')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x36c21e('0xa7c')})['state'](_0x36c21e('0x578'),{'url':_0x36c21e('0xb1d'),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x55fe4a,'controller':_0x36c21e('0x17dd')}},'resolve':{'zendeskAccount':['apiResolver',_0x36c21e('0x34'),function _0x337f4f(_0x59bde4,_0x30133a){var _0x3cf375=_0x36c21e;return _0x59bde4[_0x3cf375('0xcd6')]('intZendeskAccount@get',{'fields':_0x3cf375('0x1ff1'),'id':_0x30133a['id']});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x46cfd2(_0x5cf5ea,_0x543d54){var _0x2efafd=_0x36c21e;return _0x5cf5ea[_0x2efafd('0xcd6')]('userProfileSection@get',{'fields':_0x2efafd('0x12d6'),'userProfileId':_0x543d54[_0x2efafd('0x1ef8')]()[_0x2efafd('0x1d04')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':'integrations'})['state']('app.integrations.salesforceAccounts',{'url':_0x36c21e('0x15f6'),'views':{'content@app':{'templateUrl':_0x175f94,'controller':_0x36c21e('0x2032')}},'resolve':{'salesforceAccounts':[_0x36c21e('0x292'),'Auth',function _0x3d560d(_0x5b4e42,_0x44c6b6){var _0x3f22ca=_0x36c21e;return _0x44c6b6[_0x3f22ca('0x179e')](_0x3f22ca('0xd14'))?_0x5b4e42['resolve'](_0x3f22ca('0x2661'),{'fields':_0x3f22ca('0x21d7'),'limit':0xa,'offset':0x0}):_0x5b4e42[_0x3f22ca('0xcd6')](_0x3f22ca('0x197d'),{'id':_0x44c6b6['getCurrentUser']()['userProfileId'],'section':_0x3f22ca('0xec5'),'fields':_0x3f22ca('0x21d7'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x4882fd(_0x5b482a,_0x2f5d3d){var _0x340f92=_0x36c21e;return _0x2f5d3d[_0x340f92('0x179e')]('admin')?null:_0x5b482a['resolve']('userProfile@get',{'fields':_0x340f92('0x1b71'),'id':_0x2f5d3d[_0x340f92('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x28b6a1(_0x1734bc,_0x562de9){var _0x24fa00=_0x36c21e;return _0x562de9[_0x24fa00('0x179e')]('admin')?null:_0x1734bc[_0x24fa00('0xcd6')](_0x24fa00('0x264e'),{'fields':_0x24fa00('0x12d6'),'userProfileId':_0x562de9[_0x24fa00('0x1ef8')]()[_0x24fa00('0x1d04')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')]('app.integrations.salesforceAccounts.edit',{'url':_0x36c21e('0xb1d'),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x234e1d,'controller':_0x36c21e('0x2035')}},'resolve':{'salesforceAccount':[_0x36c21e('0x292'),_0x36c21e('0x34'),function _0x483796(_0x36b7ba,_0x4a5393){var _0x43899c=_0x36c21e;return _0x36b7ba[_0x43899c('0xcd6')](_0x43899c('0x2661'),{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','id':_0x4a5393['id']});}],'userProfileSection':[_0x36c21e('0x292'),'Auth',function _0x412c4e(_0x420acf,_0x1dd823){var _0x50a444=_0x36c21e;return _0x420acf[_0x50a444('0xcd6')](_0x50a444('0x264e'),{'fields':_0x50a444('0x12d6'),'userProfileId':_0x1dd823[_0x50a444('0x1ef8')]()[_0x50a444('0x1d04')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0xaca'),{'url':_0x36c21e('0x176'),'views':{'content@app':{'templateUrl':_0x39acad,'controller':_0x36c21e('0x181b')}},'resolve':{'freshdeskAccounts':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x51cd57(_0x2128f6,_0x4e6d95){var _0x319ded=_0x36c21e;return _0x4e6d95[_0x319ded('0x179e')](_0x319ded('0xd14'))?_0x2128f6[_0x319ded('0xcd6')](_0x319ded('0x1509'),{'fields':_0x319ded('0x1572'),'limit':0xa,'offset':0x0}):_0x2128f6[_0x319ded('0xcd6')](_0x319ded('0x197d'),{'id':_0x4e6d95[_0x319ded('0x1ef8')]()[_0x319ded('0x1d04')],'section':_0x319ded('0x183c'),'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x4d22f5(_0x5d335f,_0x25977d){var _0x2a3897=_0x36c21e;return _0x25977d[_0x2a3897('0x179e')](_0x2a3897('0xd14'))?null:_0x5d335f[_0x2a3897('0xcd6')](_0x2a3897('0x455'),{'fields':'id,name,crudPermissions','id':_0x25977d[_0x2a3897('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x4f5a1b(_0x38cd51,_0x2ddc3c){var _0x21f5a9=_0x36c21e;return _0x2ddc3c[_0x21f5a9('0x179e')](_0x21f5a9('0xd14'))?null:_0x38cd51[_0x21f5a9('0xcd6')](_0x21f5a9('0x264e'),{'fields':_0x21f5a9('0x12d6'),'userProfileId':_0x2ddc3c[_0x21f5a9('0x1ef8')]()[_0x21f5a9('0x1d04')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':'integrations'})[_0x36c21e('0x1d72')](_0x36c21e('0xd4d'),{'url':_0x36c21e('0xb1d'),'params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4beed9,'controller':_0x36c21e('0x1915')}},'resolve':{'freshdeskAccount':[_0x36c21e('0x292'),_0x36c21e('0x34'),function _0x38d552(_0x41a2a8,_0x25ed30){var _0x4ac0f0=_0x36c21e;return _0x41a2a8[_0x4ac0f0('0xcd6')]('intFreshdeskAccount@get',{'fields':_0x4ac0f0('0x1572'),'id':_0x25ed30['id']});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x2dbd41(_0x2ec7b1,_0x35574f){var _0xf7d7d6=_0x36c21e;return _0x2ec7b1[_0xf7d7d6('0xcd6')](_0xf7d7d6('0x264e'),{'fields':_0xf7d7d6('0x12d6'),'userProfileId':_0x35574f['getCurrentUser']()['userProfileId'],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0xbca'),{'url':_0x36c21e('0x5a8'),'views':{'content@app':{'templateUrl':_0x5a48c7,'controller':'SugarcrmAccountsController\x20as\x20vm'}},'resolve':{'sugarcrmAccounts':[_0x36c21e('0x292'),'Auth',function _0x43fd2e(_0x568546,_0x3ac20e){var _0x1fd310=_0x36c21e;return _0x3ac20e[_0x1fd310('0x179e')](_0x1fd310('0xd14'))?_0x568546['resolve'](_0x1fd310('0x10a2'),{'fields':_0x1fd310('0x1447'),'limit':0xa,'offset':0x0}):_0x568546[_0x1fd310('0xcd6')](_0x1fd310('0x197d'),{'id':_0x3ac20e[_0x1fd310('0x1ef8')]()[_0x1fd310('0x1d04')],'section':'SugarcrmAccounts','fields':_0x1fd310('0x1447'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x36c21e('0x2730'),function _0x53d0ea(_0x22aad8,_0x346bd8){var _0x45d144=_0x36c21e;return _0x346bd8['hasRole']('admin')?null:_0x22aad8['resolve'](_0x45d144('0x455'),{'fields':_0x45d144('0x1b71'),'id':_0x346bd8[_0x45d144('0x1ef8')]()[_0x45d144('0x1d04')]});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x128d20(_0x105c75,_0x12379c){var _0x4e6bbf=_0x36c21e;return _0x12379c[_0x4e6bbf('0x179e')](_0x4e6bbf('0xd14'))?null:_0x105c75[_0x4e6bbf('0xcd6')]('userProfileSection@get',{'fields':_0x4e6bbf('0x12d6'),'userProfileId':_0x12379c[_0x4e6bbf('0x1ef8')]()[_0x4e6bbf('0x1d04')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':'integrations'})[_0x36c21e('0x1d72')](_0x36c21e('0x1359'),{'url':_0x36c21e('0xb1d'),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4ca071,'controller':'SugarcrmAccountController\x20as\x20vm'}},'resolve':{'sugarcrmAccount':[_0x36c21e('0x292'),_0x36c21e('0x34'),function _0x5ada52(_0x38d602,_0x21d6a8){var _0x18f557=_0x36c21e;return _0x38d602['resolve'](_0x18f557('0x10a2'),{'fields':_0x18f557('0x1447'),'id':_0x21d6a8['id']});}],'userProfileSection':['apiResolver',_0x36c21e('0x2730'),function _0x1529da(_0xc14a88,_0x5788f7){var _0x3ebbcc=_0x36c21e;return _0xc14a88[_0x3ebbcc('0xcd6')](_0x3ebbcc('0x264e'),{'fields':_0x3ebbcc('0x12d6'),'userProfileId':_0x5788f7[_0x3ebbcc('0x1ef8')]()[_0x3ebbcc('0x1d04')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0x12e6'),{'url':_0x36c21e('0xb79'),'views':{'content@app':{'templateUrl':_0x374098,'controller':'DeskAccountsController\x20as\x20vm'}},'resolve':{'deskAccounts':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x3378df(_0x44e300,_0x382481){var _0x27c3bb=_0x36c21e;return _0x382481['hasRole']('admin')?_0x44e300[_0x27c3bb('0xcd6')](_0x27c3bb('0x43c'),{'fields':_0x27c3bb('0x1c20'),'limit':0xa,'offset':0x0}):_0x44e300[_0x27c3bb('0xcd6')](_0x27c3bb('0x197d'),{'id':_0x382481[_0x27c3bb('0x1ef8')]()[_0x27c3bb('0x1d04')],'section':_0x27c3bb('0x1d2d'),'fields':_0x27c3bb('0x1c20'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x36c21e('0x2730'),function _0x5bae03(_0x3893a2,_0x3d832e){var _0x1ac9f4=_0x36c21e;return _0x3d832e[_0x1ac9f4('0x179e')](_0x1ac9f4('0xd14'))?null:_0x3893a2[_0x1ac9f4('0xcd6')](_0x1ac9f4('0x455'),{'fields':_0x1ac9f4('0x1b71'),'id':_0x3d832e[_0x1ac9f4('0x1ef8')]()[_0x1ac9f4('0x1d04')]});}],'userProfileSection':['apiResolver',_0x36c21e('0x2730'),function _0x3eab65(_0x330f52,_0x37d56d){var _0x5ba1da=_0x36c21e;return _0x37d56d[_0x5ba1da('0x179e')](_0x5ba1da('0xd14'))?null:_0x330f52['resolve'](_0x5ba1da('0x264e'),{'fields':_0x5ba1da('0x12d6'),'userProfileId':_0x37d56d[_0x5ba1da('0x1ef8')]()[_0x5ba1da('0x1d04')],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0x1fa'),{'url':_0x36c21e('0xb1d'),'params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x49b5b0,'controller':'DeskAccountController\x20as\x20vm'}},'resolve':{'deskAccount':[_0x36c21e('0x292'),'$stateParams',function _0x45c749(_0x49abf3,_0xdb82b8){var _0x24a6cb=_0x36c21e;return _0x49abf3[_0x24a6cb('0xcd6')](_0x24a6cb('0x43c'),{'fields':_0x24a6cb('0x1c20'),'id':_0xdb82b8['id']});}],'userProfileSection':[_0x36c21e('0x292'),'Auth',function _0x5a65bc(_0x1bdf8c,_0x4a31e0){var _0x27ace1=_0x36c21e;return _0x1bdf8c[_0x27ace1('0xcd6')]('userProfileSection@get',{'fields':_0x27ace1('0x12d6'),'userProfileId':_0x4a31e0[_0x27ace1('0x1ef8')]()['userProfileId'],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0xb'),{'url':_0x36c21e('0x1b72'),'views':{'content@app':{'templateUrl':_0x18e54d,'controller':_0x36c21e('0x1e0f')}},'resolve':{'zohoAccounts':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x1c28e1(_0x51e816,_0xbd9948){var _0x2adf43=_0x36c21e;return _0xbd9948[_0x2adf43('0x179e')](_0x2adf43('0xd14'))?_0x51e816[_0x2adf43('0xcd6')]('intZohoAccount@get',{'fields':_0x2adf43('0x3a4'),'limit':0xa,'offset':0x0}):_0x51e816['resolve'](_0x2adf43('0x197d'),{'id':_0xbd9948['getCurrentUser']()[_0x2adf43('0x1d04')],'section':_0x2adf43('0x5a7'),'fields':_0x2adf43('0x3a4'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x49dc70(_0x516679,_0x2716ba){var _0x55becd=_0x36c21e;return _0x2716ba[_0x55becd('0x179e')](_0x55becd('0xd14'))?null:_0x516679[_0x55becd('0xcd6')](_0x55becd('0x455'),{'fields':_0x55becd('0x1b71'),'id':_0x2716ba[_0x55becd('0x1ef8')]()[_0x55becd('0x1d04')]});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x4308fb(_0x3fe945,_0x26f4ee){var _0xca51d4=_0x36c21e;return _0x26f4ee[_0xca51d4('0x179e')](_0xca51d4('0xd14'))?null:_0x3fe945[_0xca51d4('0xcd6')](_0xca51d4('0x264e'),{'fields':_0xca51d4('0x12d6'),'userProfileId':_0x26f4ee[_0xca51d4('0x1ef8')]()[_0xca51d4('0x1d04')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0x1bef'),{'url':_0x36c21e('0xb1d'),'params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5d8e95,'controller':'ZohoAccountController\x20as\x20vm'}},'resolve':{'zohoAccount':[_0x36c21e('0x292'),_0x36c21e('0x34'),function _0x5bb32c(_0x29940f,_0x19e179){var _0x41f069=_0x36c21e;return _0x29940f[_0x41f069('0xcd6')](_0x41f069('0xbb3'),{'fields':_0x41f069('0x3a4'),'id':_0x19e179['id']});}],'userProfileSection':['apiResolver',_0x36c21e('0x2730'),function _0x48e7f6(_0x527397,_0x383ccd){var _0x3e49d9=_0x36c21e;return _0x527397[_0x3e49d9('0xcd6')](_0x3e49d9('0x264e'),{'fields':_0x3e49d9('0x12d6'),'userProfileId':_0x383ccd[_0x3e49d9('0x1ef8')]()['userProfileId'],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')]('app.integrations.vtigerAccounts',{'url':_0x36c21e('0x396'),'views':{'content@app':{'templateUrl':_0x4ac8bd,'controller':'VtigerAccountsController\x20as\x20vm'}},'resolve':{'vtigerAccounts':['apiResolver',_0x36c21e('0x2730'),function _0x29280d(_0x446cc4,_0x310add){var _0x56300c=_0x36c21e;return _0x310add[_0x56300c('0x179e')]('admin')?_0x446cc4['resolve'](_0x56300c('0x10'),{'fields':_0x56300c('0x1033'),'limit':0xa,'offset':0x0}):_0x446cc4[_0x56300c('0xcd6')](_0x56300c('0x197d'),{'id':_0x310add['getCurrentUser']()[_0x56300c('0x1d04')],'section':_0x56300c('0x1afc'),'fields':_0x56300c('0x1033'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x2a04d7(_0x5b24ce,_0xeda7ec){var _0x4bbbf1=_0x36c21e;return _0xeda7ec['hasRole'](_0x4bbbf1('0xd14'))?null:_0x5b24ce[_0x4bbbf1('0xcd6')](_0x4bbbf1('0x455'),{'fields':_0x4bbbf1('0x1b71'),'id':_0xeda7ec[_0x4bbbf1('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x199bc2(_0x1bb0cd,_0x5432b9){var _0x36aa9a=_0x36c21e;return _0x5432b9['hasRole'](_0x36aa9a('0xd14'))?null:_0x1bb0cd[_0x36aa9a('0xcd6')](_0x36aa9a('0x264e'),{'fields':_0x36aa9a('0x12d6'),'userProfileId':_0x5432b9[_0x36aa9a('0x1ef8')]()[_0x36aa9a('0x1d04')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0x2569'),{'url':_0x36c21e('0xb1d'),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x7f75a6,'controller':_0x36c21e('0x4bd')}},'resolve':{'vtigerAccount':['apiResolver',_0x36c21e('0x34'),function _0x4fdb77(_0x263813,_0x151257){var _0x16495c=_0x36c21e;return _0x263813[_0x16495c('0xcd6')](_0x16495c('0x10'),{'fields':_0x16495c('0x1033'),'id':_0x151257['id']});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x1142f7(_0x5910c2,_0x20a022){var _0x495fe4=_0x36c21e;return _0x5910c2[_0x495fe4('0xcd6')]('userProfileSection@get',{'fields':_0x495fe4('0x12d6'),'userProfileId':_0x20a022[_0x495fe4('0x1ef8')]()[_0x495fe4('0x1d04')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0xc91'),{'url':'/dynamics365Accounts','views':{'content@app':{'templateUrl':_0x4073e4,'controller':_0x36c21e('0x1623')}},'resolve':{'dynamics365Accounts':['apiResolver','Auth',function _0xea4ecd(_0x252afa,_0x3fba9a){var _0x2a62b1=_0x36c21e;return _0x3fba9a[_0x2a62b1('0x179e')](_0x2a62b1('0xd14'))?_0x252afa[_0x2a62b1('0xcd6')]('intDynamics365Account@get',{'fields':_0x2a62b1('0x1af7'),'limit':0xa,'offset':0x0}):_0x252afa['resolve'](_0x2a62b1('0x197d'),{'id':_0x3fba9a['getCurrentUser']()[_0x2a62b1('0x1d04')],'section':'Dynamics365Accounts','fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x36c21e('0x2730'),function _0x5b23b8(_0x527766,_0x30afa7){var _0x4b05af=_0x36c21e;return _0x30afa7['hasRole'](_0x4b05af('0xd14'))?null:_0x527766['resolve'](_0x4b05af('0x455'),{'fields':_0x4b05af('0x1b71'),'id':_0x30afa7['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x36c21e('0x292'),'Auth',function _0x52866c(_0x169ed0,_0x201136){var _0x5edee2=_0x36c21e;return _0x201136[_0x5edee2('0x179e')](_0x5edee2('0xd14'))?null:_0x169ed0['resolve'](_0x5edee2('0x264e'),{'fields':_0x5edee2('0x12d6'),'userProfileId':_0x201136[_0x5edee2('0x1ef8')]()['userProfileId'],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')]('app.integrations.dynamics365Accounts.edit',{'url':_0x36c21e('0xb1d'),'params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x27eeb5,'controller':_0x36c21e('0x11d4')}},'resolve':{'dynamics365Account':['apiResolver',_0x36c21e('0x34'),function _0x56b8a(_0x32fed0,_0x448aa3){var _0x5dc56b=_0x36c21e;return _0x32fed0[_0x5dc56b('0xcd6')](_0x5dc56b('0x1e5a'),{'fields':_0x5dc56b('0x1af7'),'id':_0x448aa3['id']});}],'userProfileSection':[_0x36c21e('0x292'),'Auth',function _0x2c9e39(_0x51a56b,_0x5b8907){var _0x104b7c=_0x36c21e;return _0x51a56b['resolve'](_0x104b7c('0x264e'),{'fields':_0x104b7c('0x12d6'),'userProfileId':_0x5b8907[_0x104b7c('0x1ef8')]()[_0x104b7c('0x1d04')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')]('app.integrations.servicenowAccounts',{'url':'/servicenowAccounts','views':{'content@app':{'templateUrl':_0xebf6df,'controller':'ServicenowAccountsController\x20as\x20vm'}},'resolve':{'servicenowAccounts':['apiResolver',_0x36c21e('0x2730'),function _0x235a71(_0x3d2e05,_0xe2b9f){var _0x5aa6a4=_0x36c21e;return _0xe2b9f[_0x5aa6a4('0x179e')](_0x5aa6a4('0xd14'))?_0x3d2e05[_0x5aa6a4('0xcd6')](_0x5aa6a4('0x25f4'),{'fields':_0x5aa6a4('0x1273'),'limit':0xa,'offset':0x0}):_0x3d2e05[_0x5aa6a4('0xcd6')]('userProfile@getResources',{'id':_0xe2b9f[_0x5aa6a4('0x1ef8')]()[_0x5aa6a4('0x1d04')],'section':_0x5aa6a4('0x2689'),'fields':_0x5aa6a4('0x1273'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x5b3728(_0x4678dd,_0xcda54c){var _0x3391c9=_0x36c21e;return _0xcda54c[_0x3391c9('0x179e')](_0x3391c9('0xd14'))?null:_0x4678dd[_0x3391c9('0xcd6')]('userProfile@get',{'fields':_0x3391c9('0x1b71'),'id':_0xcda54c['getCurrentUser']()[_0x3391c9('0x1d04')]});}],'userProfileSection':['apiResolver','Auth',function _0x5f4561(_0x1b57cd,_0x41ce1f){var _0x2e42f4=_0x36c21e;return _0x41ce1f[_0x2e42f4('0x179e')]('admin')?null:_0x1b57cd[_0x2e42f4('0xcd6')](_0x2e42f4('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x41ce1f[_0x2e42f4('0x1ef8')]()[_0x2e42f4('0x1d04')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':'integrations'})['state'](_0x36c21e('0x20b9'),{'url':_0x36c21e('0xb1d'),'params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x41d1b1,'controller':_0x36c21e('0x12f')}},'resolve':{'servicenowAccount':['apiResolver','$stateParams',function _0x6c1b96(_0x37881e,_0x12d11a){var _0x3766aa=_0x36c21e;return _0x37881e[_0x3766aa('0xcd6')]('intServicenowAccount@get',{'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','id':_0x12d11a['id']});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x416087(_0x3939a6,_0xd90e53){var _0x4c7b77=_0x36c21e;return _0x3939a6[_0x4c7b77('0xcd6')](_0x4c7b77('0x264e'),{'fields':_0x4c7b77('0x12d6'),'userProfileId':_0xd90e53[_0x4c7b77('0x1ef8')]()['userProfileId'],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x36c21e('0xa7c')})[_0x36c21e('0x1d72')](_0x36c21e('0x7c4'),{'url':_0x36c21e('0x22a3'),'views':{'content@app':{'templateUrl':_0x2fa974,'controller':'FreshsalesAccountsController\x20as\x20vm'}},'resolve':{'freshsalesAccounts':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0xde5767(_0x192f40,_0x59afe2){var _0x20bd8b=_0x36c21e;return _0x59afe2[_0x20bd8b('0x179e')](_0x20bd8b('0xd14'))?_0x192f40[_0x20bd8b('0xcd6')](_0x20bd8b('0x355'),{'fields':_0x20bd8b('0x1572'),'limit':0xa,'offset':0x0}):_0x192f40[_0x20bd8b('0xcd6')](_0x20bd8b('0x197d'),{'id':_0x59afe2['getCurrentUser']()[_0x20bd8b('0x1d04')],'section':_0x20bd8b('0x2288'),'fields':_0x20bd8b('0x1572'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x57ff36(_0x1470c1,_0x5d9c67){var _0x56a2ec=_0x36c21e;return _0x5d9c67[_0x56a2ec('0x179e')]('admin')?null:_0x1470c1[_0x56a2ec('0xcd6')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x5d9c67[_0x56a2ec('0x1ef8')]()[_0x56a2ec('0x1d04')]});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x1eaaf5(_0x3564ff,_0x3df117){var _0x214705=_0x36c21e;return _0x3df117[_0x214705('0x179e')]('admin')?null:_0x3564ff[_0x214705('0xcd6')]('userProfileSection@get',{'fields':_0x214705('0x12d6'),'userProfileId':_0x3df117[_0x214705('0x1ef8')]()['userProfileId'],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':'integrations'})[_0x36c21e('0x1d72')](_0x36c21e('0xb23'),{'url':'/:id?tab','params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x723981,'controller':_0x36c21e('0x2224')}},'resolve':{'freshsalesAccount':['apiResolver',_0x36c21e('0x34'),function _0x194730(_0x268a98,_0x31992a){var _0x326fa=_0x36c21e;return _0x268a98[_0x326fa('0xcd6')](_0x326fa('0x355'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x31992a['id']});}],'userProfileSection':[_0x36c21e('0x292'),_0x36c21e('0x2730'),function _0x821155(_0x516549,_0x31fd71){var _0x4d6a7f=_0x36c21e;return _0x516549['resolve'](_0x4d6a7f('0x264e'),{'fields':_0x4d6a7f('0x12d6'),'userProfileId':_0x31fd71[_0x4d6a7f('0x1ef8')]()[_0x4d6a7f('0x1d04')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x36c21e('0xa7c')}),_0x1441ef[_0x36c21e('0xfe3')]('app/main/apps/integrations');}angular[_0xb635d2('0x153f')](_0xb635d2('0x1038'),[_0xb635d2('0x569'),_0xb635d2('0x24b'),_0xb635d2('0x274e'),_0xb635d2('0x206b'),_0xb635d2('0xd8b'),'ckeditor',_0xb635d2('0x1951'),_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),'mdPickers',_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),'mwFormUtils','ngclipboard',_0xb635d2('0x127e'),'ngEmbed',_0xb635d2('0x17b0'),'material.components.expansionPanels',_0xb635d2('0xe93'),'angular.filter'])[_0xb635d2('0x1990')](_0x32a138)[_0xb635d2('0x1a79')](_0xb635d2('0x26d'),_0x443828)[_0xb635d2('0x1a79')](_0xb635d2('0x1881'),_0x4975b9)['controller'](_0xb635d2('0x1101'),_0x27fd5e)[_0xb635d2('0x1a79')]('CreateOrEditDeskConfigurationDialogController',_0x3fd2f1)[_0xb635d2('0x1a79')](_0xb635d2('0x254a'),_0x512d57)[_0xb635d2('0x1a79')](_0xb635d2('0x22d6'),_0x31bed0)[_0xb635d2('0x1a79')](_0xb635d2('0x68c'),_0x58d3a5)[_0xb635d2('0x1a79')](_0xb635d2('0x2619'),_0x3a8164)[_0xb635d2('0x1a79')]('Dynamics365AccountConfigurationsController',_0x58662b)[_0xb635d2('0x1a79')]('CreateOrEditDynamics365ConfigurationDialogController',_0x368be6)[_0xb635d2('0x1a79')]('CreateOrEditDynamics365AccountItemDialogController',_0xf4bd77)[_0xb635d2('0x1a79')]('Dynamics365AccountController',_0x42b378)[_0xb635d2('0x1a79')](_0xb635d2('0x131a'),_0x3bfe37)[_0xb635d2('0x1a79')](_0xb635d2('0x7c5'),_0x3d2139)[_0xb635d2('0x1a79')](_0xb635d2('0x660'),_0x38bdc2)['controller'](_0xb635d2('0xbb0'),_0x4dd8cf)[_0xb635d2('0x1a79')](_0xb635d2('0x4be'),_0x3d9ab3)[_0xb635d2('0x1a79')](_0xb635d2('0x1699'),_0x44a775)[_0xb635d2('0x1a79')]('CreateOrEditFreshsalesAccountDialogController',_0x52e8cf)['controller'](_0xb635d2('0xa4f'),_0x325e80)[_0xb635d2('0x1a79')]('CreateOrEditFreshsalesConfigurationDialogController',_0x22ad5a)['controller'](_0xb635d2('0x15f1'),_0x36d558)[_0xb635d2('0x1a79')]('FreshsalesAccountController',_0x20ec5e)[_0xb635d2('0x1a79')]('FreshsalesAccountsController',_0x4532e0)[_0xb635d2('0x1a79')](_0xb635d2('0x1efa'),_0x518f78)[_0xb635d2('0x1a79')](_0xb635d2('0x16bf'),_0x2f4c14)[_0xb635d2('0x1a79')](_0xb635d2('0x1204'),_0x23944e)[_0xb635d2('0x1a79')](_0xb635d2('0xce8'),_0x24e0e0)['controller']('SalesforceAccountController',_0x3b02a8)['controller'](_0xb635d2('0x515'),_0x1e4bf3)[_0xb635d2('0x1a79')](_0xb635d2('0xfad'),_0x2346d1)[_0xb635d2('0x1a79')](_0xb635d2('0x1006'),_0x57272b)[_0xb635d2('0x1a79')](_0xb635d2('0x3a0'),_0x49ebe2)['controller']('CreateOrEditServicenowAccountItemDialogController',_0x1ce9a9)[_0xb635d2('0x1a79')]('ServicenowAccountController',_0x171a67)['controller'](_0xb635d2('0x12e0'),_0x5081fe)[_0xb635d2('0x1a79')]('CreateOrEditSugarcrmAccountDialogController',_0x317cfe)[_0xb635d2('0x1a79')]('SugarcrmAccountConfigurationsController',_0x4a4e32)['controller'](_0xb635d2('0xa69'),_0x463eac)['controller']('CreateOrEditSugarcrmAccountItemDialogController',_0x2c078e)[_0xb635d2('0x1a79')](_0xb635d2('0x6ee'),_0x2f2756)[_0xb635d2('0x1a79')](_0xb635d2('0x23d6'),_0x5d7a4c)[_0xb635d2('0x1a79')](_0xb635d2('0xa63'),_0x2bebcc)[_0xb635d2('0x1a79')](_0xb635d2('0x1001'),_0x2968ee)[_0xb635d2('0x1a79')](_0xb635d2('0x635'),_0x1aa751)[_0xb635d2('0x1a79')](_0xb635d2('0x24de'),_0x55fd70)['controller'](_0xb635d2('0x2006'),_0x51b02c)[_0xb635d2('0x1a79')](_0xb635d2('0x1aa6'),_0x135bc0)['controller']('CreateOrEditZendeskAccountDialogController',_0x38bbe9)[_0xb635d2('0x1a79')](_0xb635d2('0x1c6f'),_0x38696c)[_0xb635d2('0x1a79')](_0xb635d2('0x263b'),_0x426564)[_0xb635d2('0x1a79')](_0xb635d2('0xe5f'),_0xacf075)[_0xb635d2('0x1a79')](_0xb635d2('0x1199'),_0x1960a9)[_0xb635d2('0x1a79')](_0xb635d2('0x1e47'),_0x388d7b)[_0xb635d2('0x1a79')]('CreateOrEditZohoAccountDialogController',_0x139f13)['controller'](_0xb635d2('0xbf4'),_0x21c9ed)[_0xb635d2('0x1a79')](_0xb635d2('0xa78'),_0x2b1183)['controller'](_0xb635d2('0xc52'),_0x392c17)[_0xb635d2('0x1a79')](_0xb635d2('0x1764'),_0x151c67)[_0xb635d2('0x1a79')](_0xb635d2('0xe33'),_0x245433);const _0x3b5ab5=_0x59426a['p']+_0xb635d2('0x20ac'),_0x3c5695=_0x59426a['p']+_0xb635d2('0x1783'),_0x1d7c4c=_0x59426a['p']+_0xb635d2('0x1c2b');_0x43ce0f[_0xb635d2('0xb0c')]=['$document','$mdDialog',_0xb635d2('0xeb6'),_0xb635d2('0x5c1'),_0xb635d2('0xf65'),_0xb635d2('0xffc')];function _0x43ce0f(_0x41b251,_0x42e549,_0x28765d,_0x38fbec,_0x4080f9,_0x3a103c){var _0x5ec6cb=_0xb635d2,_0x49397c=this;_0x49397c['license']=_0x38fbec||{},_0x49397c['agents']=0x0,_0x49397c[_0x5ec6cb('0x2526')]=0x0,_0x49397c[_0x5ec6cb('0x2059')]=0x0,_0x49397c[_0x5ec6cb('0xb04')]=[{'name':_0x5ec6cb('0xe74'),'icon':_0x5ec6cb('0x816')},{'name':_0x5ec6cb('0x17cc'),'icon':_0x5ec6cb('0x212')},{'name':_0x5ec6cb('0x26bf'),'icon':_0x5ec6cb('0x8e3')},{'name':_0x5ec6cb('0x210e'),'icon':_0x5ec6cb('0x470')},{'name':'fax','icon':'icon-deskphone'},{'name':_0x5ec6cb('0xaf2'),'icon':_0x5ec6cb('0x213f')},{'name':_0x5ec6cb('0x4b7'),'icon':_0x5ec6cb('0x12b6')}],_0x49397c[_0x5ec6cb('0x1be3')]=[{'name':'cm','icon':_0x5ec6cb('0x133c')},{'name':'dialer','icon':_0x5ec6cb('0x834')},{'name':'jscripty','icon':_0x5ec6cb('0x23e6')}],_0x49397c[_0x5ec6cb('0xbdd')]=[{'name':'webrtc','icon':'icon-server-plus'},{'name':_0x5ec6cb('0x9e9'),'icon':_0x5ec6cb('0xe62')},{'name':_0x5ec6cb('0x261d'),'icon':_0x5ec6cb('0x17df')},{'name':_0x5ec6cb('0x783'),'icon':_0x5ec6cb('0x1bd4')},{'name':'ai','icon':_0x5ec6cb('0x2177')}],_0x49397c[_0x5ec6cb('0x1bfb')]=[{'name':'callysquare','icon':_0x5ec6cb('0x1166'),'restart':!![],'label':_0x5ec6cb('0xb04'),'enabled':_0x5ec6cb('0xe74')},{'name':_0x5ec6cb('0x1e28'),'icon':_0x5ec6cb('0x9e2'),'restart':![],'label':'sessions','enabled':_0x5ec6cb('0x17cc')}],_0x49397c[_0x5ec6cb('0x1f30')]=[{'name':_0x5ec6cb('0xa70'),'icon':_0x5ec6cb('0x1d53')}],_0x3a103c['user'][_0x5ec6cb('0x22d5')]({'fields':'id','role':_0x5ec6cb('0x108'),'online':!![]})[_0x5ec6cb('0xe59')]['then'](function(_0x2799c6){var _0x46f108=_0x5ec6cb;return _0x49397c[_0x46f108('0x29b')]=_0x2799c6&&_0x2799c6[_0x46f108('0x148b')]?_0x2799c6['count']:0x0,_0x3a103c[_0x46f108('0x10c6')][_0x46f108('0x22d5')]({'fields':'id','role':_0x46f108('0x13f0')})['$promise'];})['then'](function(_0x1b53ef){var _0x24dd9a=_0x5ec6cb;return _0x49397c[_0x24dd9a('0x2526')]=_0x1b53ef&&_0x1b53ef[_0x24dd9a('0x148b')]?_0x1b53ef[_0x24dd9a('0x148b')]:0x0,_0x3a103c[_0x24dd9a('0x10c6')][_0x24dd9a('0x22d5')]({'fields':'id','role':_0x24dd9a('0x1e7c')})[_0x24dd9a('0xe59')];})[_0x5ec6cb('0xe19')](function(_0x564b51){var _0x4188d0=_0x5ec6cb;_0x49397c['telephones']=_0x564b51&&_0x564b51[_0x4188d0('0x148b')]?_0x564b51[_0x4188d0('0x148b')]:0x0;})[_0x5ec6cb('0x223b')](function(_0x4c7557){console['log'](_0x4c7557);});function _0x1884fd(_0x1b554b){var _0x227dc5=_0x5ec6cb;_0x42e549['show']({'controller':_0x227dc5('0x24ac'),'controllerAs':'vm','templateUrl':_0x3c5695,'parent':angular['element'](_0x41b251[_0x227dc5('0x19b2')]),'targetEvent':_0x1b554b,'clickOutsideToClose':!![],'locals':{'license':_0x38fbec}});}function _0x152101(_0x6cffbe){var _0x427005=_0x5ec6cb;_0x42e549[_0x427005('0x26b2')]({'controller':'RequestLicenseDialogController','controllerAs':'vm','templateUrl':_0x1d7c4c,'parent':angular['element'](_0x41b251[_0x427005('0x19b2')]),'targetEvent':_0x6cffbe,'clickOutsideToClose':!![],'locals':{'license':_0x38fbec,'channels':_0x49397c['channels'],'modules':_0x49397c[_0x427005('0x1be3')],'addons':_0x49397c['addons'],'sessions':_0x49397c[_0x427005('0x1bfb')],'others':_0x49397c[_0x427005('0x1f30')]}});}function _0x2d09c3(){var _0x36ed85=_0x5ec6cb;_0x28765d['go'](_0x36ed85('0x138f'),{'tab':0x1});}_0x49397c[_0x5ec6cb('0x237a')]=_0x152101,_0x49397c[_0x5ec6cb('0x1506')]=_0x1884fd,_0x49397c[_0x5ec6cb('0x268c')]=_0x2d09c3;}const _0x424525=_0x43ce0f;_0x19aab1[_0xb635d2('0xb0c')]=['$mdDialog',_0xb635d2('0xf65'),_0xb635d2('0x5c1'),_0xb635d2('0xb04'),_0xb635d2('0x1be3'),_0xb635d2('0xbdd'),_0xb635d2('0x1bfb'),'others','api','Auth',_0xb635d2('0x2493')];function _0x19aab1(_0x57c3aa,_0x4a67b9,_0x9dbf2d,_0x494997,_0x23bd68,_0x503596,_0x4146ab,_0x43dcd1,_0x1f2d74,_0x32afb4,_0x154af0){var _0x6b8088=_0xb635d2,_0x2e352a=this;_0x2e352a['errors']=[],_0x2e352a[_0x6b8088('0x10c6')]=_0x32afb4[_0x6b8088('0x1ef8')](),_0x2e352a[_0x6b8088('0x5c1')]=angular[_0x6b8088('0x89')](_0x9dbf2d),_0x2e352a[_0x6b8088('0xb04')]=_0x494997,_0x2e352a[_0x6b8088('0x1be3')]=_0x23bd68,_0x2e352a['addons']=_0x503596,_0x2e352a[_0x6b8088('0x1bfb')]=_0x4146ab,_0x2e352a[_0x6b8088('0x1f30')]=_0x43dcd1,_0x2e352a[_0x6b8088('0x5c1')]['name']=_0x2e352a[_0x6b8088('0x10c6')]['fullname'],_0x2e352a[_0x6b8088('0x5c1')][_0x6b8088('0x1211')]=_0x2e352a[_0x6b8088('0x10c6')][_0x6b8088('0x1211')],_0x2e352a['sendRequest']=_0x19d33b,_0x2e352a[_0x6b8088('0x2584')]=_0x1e16e5;function _0x19d33b(){var _0x4a6c96=_0x6b8088;_0x2e352a[_0x4a6c96('0xcd2')]=[],_0x2e352a[_0x4a6c96('0x19b6')]=_0x4a6c96('0x2679');for(var _0x3b4d61 in _0x2e352a[_0x4a6c96('0x5c1')]){typeof _0x2e352a['license'][_0x3b4d61]!==_0x4a6c96('0x1143')&&!_0x32d445()['includes']([_0x4a6c96('0xe59'),_0x4a6c96('0x113c')],_0x3b4d61)&&(_0x9dbf2d[_0x3b4d61]===_0x2e352a[_0x4a6c96('0x5c1')][_0x3b4d61]?_0x2e352a[_0x4a6c96('0x19b6')]+='|'+_0x3b4d61+'|'+(_0x9dbf2d[_0x3b4d61]!==undefined?_0x9dbf2d[_0x3b4d61]:'')+'|'+_0x2e352a[_0x4a6c96('0x5c1')][_0x3b4d61]+'|\x0a':_0x2e352a[_0x4a6c96('0x19b6')]+='|'+_0x3b4d61+_0x4a6c96('0x1cc5')+(_0x9dbf2d[_0x3b4d61]!==undefined?_0x9dbf2d[_0x3b4d61]:'')+_0x4a6c96('0x243a')+_0x2e352a['license'][_0x3b4d61]+_0x4a6c96('0x1b98'));}_0x1f2d74[_0x4a6c96('0x7c2')][_0x4a6c96('0xe5e')]({'key':_0x4a6c96('0x37c'),'summary':'Motion\x20License\x20Request','description':_0x2e352a[_0x4a6c96('0x19b6')],'issuetype':_0x4a6c96('0x8dc')})[_0x4a6c96('0xe59')][_0x4a6c96('0xe19')](function(){var _0x30e697=_0x4a6c96;_0x4a67b9['success']({'title':_0x30e697('0xcf2'),'msg':_0x154af0['instant']('SETTINGS.LICENSE_REQUEST_SENT'),'timeout':0x3a98}),_0x1e16e5();})[_0x4a6c96('0x223b')](function(_0x3f65b7){var _0x337e3d=_0x4a6c96;console[_0x337e3d('0x8c8')](_0x3f65b7),_0x2e352a[_0x337e3d('0xcd2')]=[{'message':_0x154af0[_0x337e3d('0x2159')]('SETTINGS.JIRA_ERROR_MESSAGE'),'type':_0x337e3d('0x1657')}];});}function _0x1e16e5(){var _0x38dcb4=_0x6b8088;_0x57c3aa[_0x38dcb4('0x11ed')]();}}const _0x4c9e7c=_0x19aab1;_0x3e22b0[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0x5c1'),_0xb635d2('0xffc')];function _0x3e22b0(_0x116603,_0x1a6f41,_0x107b3d,_0x22fb63){var _0x23172b=_0xb635d2,_0x3efa71=this;_0x3efa71[_0x23172b('0xcd2')]=[],_0x3efa71[_0x23172b('0x5c1')]=angular[_0x23172b('0x89')](_0x107b3d),_0x3efa71[_0x23172b('0x1709')],_0x3efa71[_0x23172b('0x1506')]=_0x5362c0,_0x3efa71['closeDialog']=_0x47f520;function _0x5362c0(){var _0x17e168=_0x23172b;return _0x22fb63[_0x17e168('0x5c1')][_0x17e168('0xa70')]({'id':0x1,'key':_0x3efa71[_0x17e168('0x1709')]})['$promise'][_0x17e168('0xe19')](function(_0x14a41c){var _0x2cc2a6=_0x17e168;_0x14a41c&&(_0x14a41c[_0x2cc2a6('0x857')]?_0x1a6f41['error']({'title':_0x2cc2a6('0x581'),'msg':_0x2cc2a6('0x40c')}):_0x1a6f41[_0x2cc2a6('0x425')]({'title':_0x2cc2a6('0xb16'),'msg':_0x2cc2a6('0x21c9')}));})[_0x17e168('0x223b')](function(_0x16fc7b){var _0x2b27f6=_0x17e168;_0x1a6f41['error']({'title':_0x16fc7b[_0x2b27f6('0x2833')]?'API:'+_0x16fc7b[_0x2b27f6('0x2833')]+'\x20-\x20'+_0x16fc7b[_0x2b27f6('0x1fd7')]:_0x2b27f6('0x1411'),'msg':_0x16fc7b['data']?JSON[_0x2b27f6('0x3ad')](_0x16fc7b['data']):_0x16fc7b[_0x2b27f6('0x94f')]()});});}function _0x47f520(){var _0x2e1fbd=_0x23172b;_0x116603[_0x2e1fbd('0x11ed')]();}}const _0x46608a=_0x3e22b0;_0x1ecfe4[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x1ecfe4(_0x5661da){var _0x5028f1=_0xb635d2;_0x5661da[_0x5028f1('0x1d72')](_0x5028f1('0x92d'),{'url':_0x5028f1('0x240a'),'views':{'content@app':{'templateUrl':_0x3b5ab5,'controller':_0x5028f1('0x13fe')}},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x5028f1('0x33f')});}angular[_0xb635d2('0x153f')](_0xb635d2('0x92d'),[])[_0xb635d2('0x1990')](_0x1ecfe4)['controller'](_0xb635d2('0x21c4'),_0x424525)[_0xb635d2('0x1a79')](_0xb635d2('0x1a9'),_0x4c9e7c)[_0xb635d2('0x1a79')](_0xb635d2('0x24ac'),_0x46608a);const _0x269085=_0x59426a['p']+_0xb635d2('0x15e2');_0x470fb6[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$interval',_0xb635d2('0x1c9f'),'$state',_0xb635d2('0x1917'),_0xb635d2('0x1ec3'),_0xb635d2('0xf65'),_0xb635d2('0xffc')];function _0x470fb6(_0x14fc86,_0x598273,_0x16ac27,_0x555b36,_0x232c9d,_0x59e02d,_0x3ef86c,_0x5d2e06){var _0x112ec5=_0xb635d2,_0x9873ee=this,_0x1aaf14=null;_0x9873ee[_0x112ec5('0x1917')]=_0x232c9d||{},_0x9873ee[_0x112ec5('0x1ec3')]=_0x59e02d?_0x59e02d[_0x112ec5('0x16a7')]:[],_0x9873ee['processLimit']=0x7,_0x9873ee[_0x112ec5('0xc7b')]=_0x555b36[_0x112ec5('0x2ef')][_0x112ec5('0x435')]||0x0,_0x9873ee[_0x112ec5('0x2246')]=_0x2183a8,_0x9873ee[_0x112ec5('0x125c')]=_0x156d83,_0x9873ee['cancelInterval']=_0x1f7de3,_0x9873ee[_0x112ec5('0xd76')]=_0x1f2ea2;function _0x1f7de3(){_0x598273['cancel'](_0x1aaf14),_0x1aaf14=null;}function _0x1f2ea2(_0x49aad7,_0x32d9e9,_0x1cc01e){var _0x2e4477=_0x112ec5,_0x3b2044=_0x16ac27[_0x2e4477('0xa5')]()['title'](_0x2e4477('0x16bc')+_0x32d9e9+'?')[_0x2e4477('0x2719')](_0x2e4477('0x2772')+_0x1cc01e[_0x2e4477('0x25f7')]())['ariaLabel'](_0x2e4477('0x1375'))[_0x2e4477('0x1345')](_0x49aad7)['ok']('Ok')['cancel'](_0x2e4477('0x8a3'));_0x16ac27[_0x2e4477('0x26b2')](_0x3b2044)[_0x2e4477('0xe19')](function(){var _0x5e24cf=_0x2e4477;return _0x5d2e06[_0x5e24cf('0x132e')][_0x5e24cf('0xa70')]({'id':_0x32d9e9,'status':_0x1cc01e});})[_0x2e4477('0xe19')](function(){_0x598273(_0x9873ee['getProcesses'],0x3e8,0x1);})['then'](function(){var _0x2400cc=_0x2e4477;_0x3ef86c[_0x2400cc('0x425')]({'title':_0x2400cc('0x144f'),'msg':'Status\x20properly\x20changed\x20to:\x20'+_0x1cc01e});});}function _0x2183a8(){var _0x249dc4=_0x112ec5;return _0x5d2e06[_0x249dc4('0x1917')][_0x249dc4('0x22d5')]()[_0x249dc4('0xe59')][_0x249dc4('0xe19')](function(_0x585af4){var _0x186ffb=_0x249dc4;_0x32d445()['merge'](_0x9873ee[_0x186ffb('0x1917')],_0x585af4);})[_0x249dc4('0x223b')](_0x9873ee[_0x249dc4('0x3d')]);}function _0x156d83(){var _0x209287=_0x112ec5;return _0x5d2e06[_0x209287('0x132e')][_0x209287('0x22d5')]()[_0x209287('0xe59')]['then'](function(_0x443e8){var _0x126318=_0x209287;_0x32d445()[_0x126318('0x1d8')](_0x9873ee[_0x126318('0x1ec3')],_0x443e8?_0x443e8[_0x126318('0x16a7')]:[]);})[_0x209287('0x223b')](_0x9873ee['cancelInterval']);}_0x1aaf14=_0x598273(_0x9873ee[_0x112ec5('0x2246')],0x1388),_0x14fc86[_0x112ec5('0xb2b')](_0x112ec5('0x5cd'),function(){var _0x52c318=_0x112ec5;_0x9873ee[_0x52c318('0x3d')]();});}const _0x22a694=_0x470fb6;_0x32a071[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x32a071(_0xd1f495){var _0x3e8329=_0xb635d2;_0xd1f495[_0x3e8329('0x1d72')](_0x3e8329('0x138f'),{'url':'/system?tab','views':{'content@app':{'templateUrl':_0x269085,'controller':'SystemController\x20as\x20vm'}},'resolve':{'system':[_0x3e8329('0x292'),function _0x4fcb9c(_0xab6a4b){var _0x5cac43=_0x3e8329;return _0xab6a4b[_0x5cac43('0xcd6')]('system@get');}],'processes':['apiResolver',function _0x1151b5(_0x343a7a){var _0x1981db=_0x3e8329;return _0x343a7a['resolve'](_0x1981db('0x22cc'));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3e8329('0x33f')});}angular[_0xb635d2('0x153f')]('app.settings.system',[])['config'](_0x32a071)[_0xb635d2('0x1a79')](_0xb635d2('0x1142'),_0x22a694);const _0x16ec9c=_0x59426a['p']+_0xb635d2('0xa37');_0x1d608f[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0x1c1a'),_0xb635d2('0x2400'),'$timeout','api'];function _0x1d608f(_0x21a694,_0x1e7900,_0x4ff346,_0x799fbd,_0x309bef){var _0x40c8de=_0xb635d2,_0x47ee02=this;_0x47ee02['title']='SETTINGS.UPDATE',_0x47ee02[_0x40c8de('0x831')]=0x0,_0x47ee02[_0x40c8de('0x804')]=!![],_0x47ee02['output']=_0x40c8de('0x1b81'),_0x47ee02[_0x40c8de('0x425')]=!![],_0x47ee02[_0x40c8de('0x134c')]=_0x1e7900(function(){var _0x38cfd3=_0x40c8de;_0x47ee02[_0x38cfd3('0x831')]<0x5a&&(_0x47ee02[_0x38cfd3('0x831')]+=0x1);},0x3e8),_0x309bef[_0x40c8de('0xfec')][_0x40c8de('0x14f1')]()['$promise'][_0x40c8de('0xe19')](function(_0x353a9c){var _0x1c5133=_0x40c8de;return _0x47ee02[_0x1c5133('0x16ea')]=_0x353a9c[_0x1c5133('0x16ea')]+_0x1c5133('0x1453'),_0x309bef['version'][_0x1c5133('0x1590')]()['$promise'];})[_0x40c8de('0xe19')](function(_0x1df8b2){var _0x4178ef=_0x40c8de;return _0x47ee02['output']=_0x1df8b2[_0x4178ef('0x16ea')]+_0x4178ef('0x1453'),_0x309bef[_0x4178ef('0xfec')][_0x4178ef('0x75d')]()['$promise'];})[_0x40c8de('0xe19')](function(_0x22eed0){var _0x4daedb=_0x40c8de;return _0x47ee02[_0x4daedb('0x16ea')]=_0x22eed0[_0x4daedb('0x16ea')]+_0x4daedb('0x1453'),_0x309bef[_0x4daedb('0xfec')]['migrations']()[_0x4daedb('0xe59')];})[_0x40c8de('0xe19')](function(_0xffece){var _0x4f0548=_0x40c8de;return _0x47ee02[_0x4f0548('0x16ea')]=_0xffece[_0x4f0548('0x16ea')]+_0x4f0548('0x1453'),_0x309bef[_0x4f0548('0xfec')]['restart']()['$promise'];})['then'](function(){var _0x2602fc=_0x40c8de;_0x47ee02[_0x2602fc('0x16ea')]=_0x2602fc('0x6cd'),_0x799fbd(function(){var _0x5506fa=_0x2602fc;_0x47ee02[_0x5506fa('0xd11')]();},0x7530);})[_0x40c8de('0x223b')](function(_0x376910){var _0x28f568=_0x40c8de;_0x47ee02['success']=![],_0x47ee02[_0x28f568('0xd11')](),_0x47ee02[_0x28f568('0x16ea')]=JSON[_0x28f568('0x3ad')](_0x376910);});function _0x3b4e15(){var _0x1bbaa1=_0x40c8de;angular[_0x1bbaa1('0x1d95')](_0x47ee02[_0x1bbaa1('0x134c')])&&(_0x1e7900[_0x1bbaa1('0x2c1')](_0x47ee02[_0x1bbaa1('0x134c')]),_0x47ee02[_0x1bbaa1('0x134c')]=undefined),_0x47ee02[_0x1bbaa1('0x831')]=0x64,_0x47ee02['updating']=![];}function _0x23a51d(){var _0x281643=_0x40c8de;_0x4ff346[_0x281643('0x2170')][_0x281643('0x1e24')]();}function _0x28fda0(){var _0x4abd1e=_0x40c8de;_0x21a694[_0x4abd1e('0x11ed')]();}_0x47ee02[_0x40c8de('0x2584')]=_0x28fda0,_0x47ee02[_0x40c8de('0x1e24')]=_0x23a51d,_0x47ee02[_0x40c8de('0xd11')]=_0x3b4e15;}const _0xba8edb=_0x1d608f,_0x2d7789=_0x59426a['p']+_0xb635d2('0x17c8');_0x14690b[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$interval',_0xb635d2('0x1728'),_0xb635d2('0xfec')];function _0x14690b(_0x536471,_0xc70186,_0x4a1a64,_0x334382){var _0x13a719=_0xb635d2,_0x309fca=this;_0x309fca[_0x13a719('0xfec')]=_0x334382||{};function _0x5837a8(_0x41080b){var _0x5c6b69=_0x13a719,_0x57dded=_0x536471[_0x5c6b69('0xa5')]()[_0x5c6b69('0x13e4')](_0x5c6b69('0x144e'))[_0x5c6b69('0x221c')]('The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement?')['ariaLabel']('')[_0x5c6b69('0x1345')](_0x41080b)[_0x5c6b69('0x26d6')](!![])['parent'](angular['element'](_0x4a1a64[_0x5c6b69('0x19b2')]))['ok'](_0x5c6b69('0x1581'))[_0x5c6b69('0x2c1')](_0x5c6b69('0x1d22'));_0x536471[_0x5c6b69('0x26b2')](_0x57dded)[_0x5c6b69('0xe19')](function(){var _0x2b44b4=_0x5c6b69;_0x536471[_0x2b44b4('0x26b2')]({'controller':'UpdateDialogController','controllerAs':'vm','templateUrl':_0x2d7789,'parent':angular[_0x2b44b4('0x24a1')](_0x4a1a64['body']),'targetEvent':_0x41080b,'clickOutsideToClose':![]});});}_0x309fca[_0x13a719('0x1159')]=_0x5837a8;}const _0xeac003=_0x14690b;_0x8875b8[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x8875b8(_0x57985c){var _0x523ba4=_0xb635d2;_0x57985c[_0x523ba4('0x1d72')](_0x523ba4('0xfdd'),{'url':_0x523ba4('0x1b2'),'views':{'content@app':{'templateUrl':_0x16ec9c,'controller':_0x523ba4('0x13cf')}},'resolve':{'version':[_0x523ba4('0x292'),function _0x5030dd(_0x417630){return _0x417630['resolve']('version@get',{'latest':!![]});}],'userProfile':[_0x523ba4('0x292'),_0x523ba4('0x2730'),function _0x5428f3(_0x36093d,_0x26a861){var _0x3adddf=_0x523ba4;return _0x36093d[_0x3adddf('0xcd6')]('userProfile@get',{'fields':_0x3adddf('0x1b71'),'id':_0x26a861[_0x3adddf('0x1ef8')]()[_0x3adddf('0x1d04')]});}],'userProfileSection':[_0x523ba4('0x292'),_0x523ba4('0x2730'),function _0x533839(_0x47e4ed,_0x23c30f){var _0x5b038d=_0x523ba4;return _0x47e4ed[_0x5b038d('0xcd6')]('userProfileSection@get',{'fields':_0x5b038d('0x12d6'),'userProfileId':_0x23c30f['getCurrentUser']()[_0x5b038d('0x1d04')],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x523ba4('0x33f')});}angular[_0xb635d2('0x153f')]('app.settings.updates',[])['config'](_0x8875b8)['controller'](_0xb635d2('0x2507'),_0xba8edb)[_0xb635d2('0x1a79')](_0xb635d2('0x1466'),_0xeac003);const _0x521383=_0x59426a['p']+'src/js/modules/main/apps/settings/views/generals/generals.html/generals-[chunkhash].html',_0x33e2ce=_0x59426a['p']+_0xb635d2('0x1b27'),_0x55e6c1=_0x59426a['p']+_0xb635d2('0x2030'),_0x59c652=_0x59426a['p']+_0xb635d2('0x297'),_0xd0889d=_0x59426a['p']+_0xb635d2('0x18dc'),_0x1919e8=_0x59426a['p']+_0xb635d2('0x1e0');_0x1f104b['$inject']=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav','$mdDialog','$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x97e'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1'),'setting'];function _0x1f104b(_0xd8a68d,_0x555170,_0x4ae673,_0x21032d,_0x39bd52,_0x2279c4,_0x5bd88b,_0x2fe499,_0x2b151a,_0x333582,_0x2d6a5c,_0x213d0e,_0x18fbb3,_0xa2082e,_0x51ee7b){var _0x4be716=_0xb635d2,_0x554180=this;_0x554180[_0x4be716('0x5c1')]=_0xa2082e,_0x554180[_0x4be716('0x22f1')]=_0x51ee7b,_0x554180[_0x4be716('0x15a5')]=_0x18fbb3[_0x4be716('0x1ef8')](),_0x554180[_0x4be716('0x97e')]=_0x2b151a||{'count':0x0,'rows':[]},_0x554180[_0x4be716('0x19b6')]=_0x4be716('0x97e'),_0x554180[_0x4be716('0x14d6')]='',_0x554180[_0x4be716('0x190c')]=null,_0x554180[_0x4be716('0x2fc')]=[],_0x554180[_0x4be716('0xa16')]={'fields':_0x4be716('0x24'),'sort':_0x4be716('0x7e8'),'limit':0xa,'page':0x1},_0x554180[_0x4be716('0x1f1b')]=_0x32d445()[_0x4be716('0x226f')]([{'option':_0x4be716('0xe56'),'value':_0x4be716('0x10c9')}],function(_0x513f2d){var _0xee94e0=_0x4be716;return _0x32d445()[_0xee94e0('0x1b42')](_0x513f2d[_0xee94e0('0x2')],new RegExp('\x27','g'),'');}),_0x554180['editdialog']=_0x216988,_0x554180['deleteconfirm']=_0x14271b,_0x554180[_0x4be716('0x425')]=_0x479551,_0x554180[_0x4be716('0x21e6')]=_0x48664e,_0x554180[_0x4be716('0x2734')]=_0x36a0fb,_0x554180['deleteCloudProvider']=_0x4013ab,_0x554180[_0x4be716('0x8f8')]=_0x2485d3,_0x554180[_0x4be716('0x709')]=_0x38b9a5,_0x554180[_0x4be716('0x25fa')]=_0xc5c110,_0x554180[_0x4be716('0xeae')]=_0x40f592;function _0x216988(_0xf38d26,_0x122223){var _0x2057ba=_0x4be716;_0x39bd52[_0x2057ba('0x26b2')]({'controller':_0x2057ba('0x98b'),'controllerAs':'vm','templateUrl':_0x1919e8,'parent':angular[_0x2057ba('0x24a1')](_0x2279c4[_0x2057ba('0x19b2')]),'targetEvent':_0x122223,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0xf38d26,'cloudProviders':_0x554180[_0x2057ba('0x97e')]['rows'],'license':_0x554180[_0x2057ba('0x5c1')],'setting':null,'crudPermissions':_0x554180[_0x2057ba('0xb3d')]}});}function _0x14271b(_0x39f696,_0x1c42f9){var _0xbc1a6c=_0x4be716,_0xe947=_0x39bd52[_0xbc1a6c('0xa5')]()[_0xbc1a6c('0x13e4')](_0xbc1a6c('0x346')+_0x32d445()[_0xbc1a6c('0x1df2')](_0xbc1a6c('0x67d'))+'?')[_0xbc1a6c('0x221c')](''+(_0x39f696[_0xbc1a6c('0x2623')]||_0xbc1a6c('0x67d'))+_0xbc1a6c('0x27bb')+_0xbc1a6c('0x21bd'))[_0xbc1a6c('0x4d1')](_0xbc1a6c('0x16bb'))[_0xbc1a6c('0x1345')](_0x1c42f9)['ok']('OK')[_0xbc1a6c('0x2c1')](_0xbc1a6c('0x17'));_0x39bd52['show'](_0xe947)[_0xbc1a6c('0xe19')](function(){_0x4013ab(_0x39f696);},function(){var _0x45514e=_0xbc1a6c;console['log'](_0x45514e('0x17'));});}var _0x5796b0=!![],_0x2a7633=0x1;_0xd8a68d[_0x4be716('0x107')](_0x4be716('0x20cb'),function(_0x28a0e8,_0x50caa4){var _0x49af2d=_0x4be716;_0x5796b0?_0x5bd88b(function(){_0x5796b0=![];}):(!_0x50caa4&&(_0x2a7633=_0x554180['query'][_0x49af2d('0xc08')]),_0x28a0e8!==_0x50caa4&&(_0x554180[_0x49af2d('0xa16')]['page']=0x1),!_0x28a0e8&&(_0x554180[_0x49af2d('0xa16')]['page']=_0x2a7633),_0x554180[_0x49af2d('0x21e6')]());});function _0x479551(_0x59e949){var _0x194f93=_0x4be716;_0x554180[_0x194f93('0x97e')]=_0x59e949||{'count':0x0,'rows':[]};}function _0x48664e(){var _0x467790=_0x4be716;_0x554180[_0x467790('0xa16')][_0x467790('0xab0')]=(_0x554180[_0x467790('0xa16')][_0x467790('0xc08')]-0x1)*_0x554180[_0x467790('0xa16')][_0x467790('0x1b6d')],_0x18fbb3['hasRole'](_0x467790('0xd14'))?_0x554180[_0x467790('0x9c8')]=_0x333582['cloudProvider'][_0x467790('0x22d5')](_0x554180['query'],_0x479551)[_0x467790('0xe59')]:(_0x554180['query']['id']=_0x554180['userProfile']['id'],_0x554180[_0x467790('0xa16')]['section']='AiTools',_0x554180[_0x467790('0x9c8')]=_0x333582[_0x467790('0x154f')][_0x467790('0x14e6')](_0x554180['query'],_0x479551)[_0x467790('0xe59')]);}function _0x36a0fb(_0x599aee,_0x4abbb6){var _0x17ee56=_0x4be716;_0x39bd52[_0x17ee56('0x26b2')]({'controller':_0x17ee56('0x98b'),'controllerAs':'vm','templateUrl':_0x1919e8,'parent':angular[_0x17ee56('0x24a1')](_0x2279c4['body']),'targetEvent':_0x599aee,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x4abbb6,'cloudProviders':_0x554180[_0x17ee56('0x97e')][_0x17ee56('0x16a7')],'license':_0x554180['license'],'setting':_0x554180[_0x17ee56('0x22f1')],'crudPermissions':_0x554180['crudPermissions']}});}function _0x4013ab(_0x1d7b2b){var _0x5b51ac=_0x4be716;_0x333582[_0x5b51ac('0x67d')][_0x5b51ac('0x229e')]({'id':_0x1d7b2b['id']})[_0x5b51ac('0xe59')][_0x5b51ac('0xe19')](function(){var _0x372f64=_0x5b51ac;_0x32d445()[_0x372f64('0xa8b')](_0x554180[_0x372f64('0x97e')][_0x372f64('0x16a7')],{'id':_0x1d7b2b['id']}),_0x554180[_0x372f64('0x97e')][_0x372f64('0x148b')]-=0x1,!_0x554180[_0x372f64('0x97e')][_0x372f64('0x16a7')]['length']&&_0x554180['getAiTools'](),_0x213d0e[_0x372f64('0x425')]({'title':_0x32d445()[_0x372f64('0x1df2')]('CloudProvider')+'\x20deleted!','msg':_0x1d7b2b[_0x372f64('0x2623')]?_0x1d7b2b[_0x372f64('0x2623')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x557468){var _0xf86384=_0x5b51ac;if(_0x557468[_0xf86384('0x11d0')]&&_0x557468['data'][_0xf86384('0xcd2')]&&_0x557468['data'][_0xf86384('0xcd2')][_0xf86384('0x25ae')]){_0x554180[_0xf86384('0xcd2')]=_0x557468[_0xf86384('0x11d0')][_0xf86384('0xcd2')]||[{'message':_0x557468[_0xf86384('0x94f')](),'type':_0xf86384('0x61')}];for(var _0x391f32=0x0;_0x391f32<_0x557468['data'][_0xf86384('0xcd2')][_0xf86384('0x25ae')];_0x391f32++){_0x213d0e[_0xf86384('0x8c8')]({'title':_0x557468['data'][_0xf86384('0xcd2')][_0x391f32]['type'],'msg':_0x557468[_0xf86384('0x11d0')][_0xf86384('0xcd2')][_0x391f32][_0xf86384('0x27e8')]});}}else _0x213d0e[_0xf86384('0x8c8')]({'title':_0x557468['status']?'API:'+_0x557468[_0xf86384('0x2833')]+_0xf86384('0x1b7c')+_0x557468[_0xf86384('0x1fd7')]:_0xf86384('0x61'),'msg':_0x557468[_0xf86384('0x11d0')]?JSON[_0xf86384('0x3ad')](_0x557468[_0xf86384('0x11d0')]['message']):_0x557468[_0xf86384('0x27e8')]||_0x557468[_0xf86384('0x94f')]()});});}function _0x2485d3(){var _0x4a1be9=_0x4be716,_0x4b3fe6=angular[_0x4a1be9('0x89')](_0x554180[_0x4a1be9('0x2fc')]);return _0x554180[_0x4a1be9('0x2fc')]=[],_0x4b3fe6;}function _0x38b9a5(_0x1eeef5){var _0x4cd98f=_0x4be716,_0x2a1320=_0x39bd52[_0x4cd98f('0xa5')]()[_0x4cd98f('0x13e4')](_0x4cd98f('0x1e98'))[_0x4cd98f('0x221c')](_0x4cd98f('0xab2')+_0x554180['selectedAiTools'][_0x4cd98f('0x25ae')]+_0x4cd98f('0x5bc')+_0x4cd98f('0x21bd'))[_0x4cd98f('0x4d1')](_0x4cd98f('0x1eb2'))[_0x4cd98f('0x1345')](_0x1eeef5)['ok']('OK')[_0x4cd98f('0x2c1')](_0x4cd98f('0x17'));_0x39bd52[_0x4cd98f('0x26b2')](_0x2a1320)['then'](function(){var _0x49d005=_0x4cd98f;_0x554180['selectedAiTools'][_0x49d005('0x1d7e')](function(_0x49c5b0){_0x4013ab(_0x49c5b0);}),_0x554180[_0x49d005('0x2fc')]=[];});}function _0xc5c110(){var _0x33ace5=_0x4be716;_0x554180[_0x33ace5('0x2fc')]=[];}function _0x40f592(){var _0x347992=_0x4be716;_0x554180['selectedAiTools']=_0x554180[_0x347992('0x97e')]['rows'];}}const _0x41d76f=_0x1f104b;_0x18a481['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location','$mdDialog','$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'cloudProviders',_0xb635d2('0x67d'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x18a481(_0x5cb555,_0x15c0e7,_0x528db0,_0x3dba33,_0x10a3ce,_0x20105f,_0x3df28a,_0x386a72,_0xc5c60f,_0x163b17,_0x33f694,_0x39c4a1,_0x38cac1){var _0x35ec73=_0xb635d2,_0x4c5f0e=this;_0x4c5f0e[_0x35ec73('0x15a5')]=_0x33f694[_0x35ec73('0x1ef8')](),_0x4c5f0e[_0x35ec73('0xcd2')]=[],_0x4c5f0e[_0x35ec73('0x22f1')]=_0x38cac1,_0x4c5f0e[_0x35ec73('0x5c1')]=_0x39c4a1,_0x4c5f0e['hasModulePermissions']={},_0x4c5f0e[_0x35ec73('0x25ac')]=_0x4c5f0e[_0x35ec73('0x22f1')]&&_0x4c5f0e[_0x35ec73('0x22f1')][_0x35ec73('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c5f0e[_0x35ec73('0x13e4')]=_0x35ec73('0x27ad'),_0x4c5f0e[_0x35ec73('0x67d')]=angular['copy'](_0xc5c60f),_0x4c5f0e[_0x35ec73('0x97e')]=_0x386a72,_0x4c5f0e[_0x35ec73('0x6c')]=![];!_0x4c5f0e[_0x35ec73('0x67d')]&&(_0x4c5f0e[_0x35ec73('0x67d')]={},_0x4c5f0e[_0x35ec73('0x13e4')]=_0x35ec73('0xc40'),_0x4c5f0e[_0x35ec73('0x6c')]=!![]);_0x4c5f0e['addNewCloudProvider']=_0x2ce63b,_0x4c5f0e[_0x35ec73('0x2836')]=_0x1c0f76,_0x4c5f0e[_0x35ec73('0xe94')]=_0x5e39a2,_0x4c5f0e['getDateFromString']=_0x1ddb77,_0x4c5f0e[_0x35ec73('0x2584')]=_0x5c77c5;function _0x2ce63b(){var _0x2553d7=_0x35ec73;_0x4c5f0e[_0x2553d7('0xcd2')]=[],_0x163b17['cloudProvider'][_0x2553d7('0xe5e')](_0x4c5f0e[_0x2553d7('0x67d')])[_0x2553d7('0xe59')][_0x2553d7('0xe19')](function(_0x413b90){var _0x304222=_0x2553d7;_0x4c5f0e[_0x304222('0x97e')]['unshift'](_0x413b90[_0x304222('0x250e')]()),_0x3df28a['success']({'title':'CloudProvider\x20properly\x20created','msg':_0x4c5f0e['cloudProvider'][_0x304222('0x2623')]?_0x4c5f0e['cloudProvider'][_0x304222('0x2623')]+_0x304222('0x105f'):''}),_0x5c77c5(_0x413b90);})[_0x2553d7('0x223b')](function(_0x5a9546){var _0x56a02f=_0x2553d7;if(_0x5a9546['data']&&_0x5a9546['data'][_0x56a02f('0xcd2')]&&_0x5a9546[_0x56a02f('0x11d0')][_0x56a02f('0xcd2')][_0x56a02f('0x25ae')]){_0x4c5f0e[_0x56a02f('0xcd2')]=_0x5a9546[_0x56a02f('0x11d0')][_0x56a02f('0xcd2')]||[{'message':_0x5a9546['toString'](),'type':'api.cloudProvider.save'}];for(var _0x511ac8=0x0;_0x511ac8<_0x5a9546[_0x56a02f('0x11d0')]['errors'][_0x56a02f('0x25ae')];_0x511ac8+=0x1){_0x3df28a['error']({'title':_0x5a9546[_0x56a02f('0x11d0')]['errors'][_0x511ac8][_0x56a02f('0x62e')],'msg':_0x5a9546['data'][_0x56a02f('0xcd2')][_0x511ac8][_0x56a02f('0x27e8')]});}}else _0x3df28a[_0x56a02f('0x8c8')]({'title':_0x5a9546[_0x56a02f('0x2833')]?_0x56a02f('0x27f2')+_0x5a9546[_0x56a02f('0x2833')]+_0x56a02f('0x1b7c')+_0x5a9546[_0x56a02f('0x1fd7')]:_0x56a02f('0x83b'),'msg':_0x5a9546['data']?JSON[_0x56a02f('0x3ad')](_0x5a9546[_0x56a02f('0x11d0')][_0x56a02f('0x27e8')]):_0x5a9546[_0x56a02f('0x94f')]()});});}function _0x1c0f76(){var _0x1c380f=_0x35ec73;_0x4c5f0e[_0x1c380f('0xcd2')]=[],_0x163b17[_0x1c380f('0x67d')][_0x1c380f('0xa70')]({'id':_0x4c5f0e[_0x1c380f('0x67d')]['id']},_0x4c5f0e[_0x1c380f('0x67d')])[_0x1c380f('0xe59')][_0x1c380f('0xe19')](function(_0x487bd3){var _0x53916b=_0x1c380f,_0x3662a4=_0x32d445()[_0x53916b('0xf15')](_0x4c5f0e[_0x53916b('0x97e')],{'id':_0x487bd3['id']});_0x3662a4&&_0x32d445()[_0x53916b('0x1d8')](_0x3662a4,_0x32d445()[_0x53916b('0xed5')](_0x487bd3[_0x53916b('0x250e')](),_0x32d445()[_0x53916b('0x1234')](_0x3662a4))),_0x3df28a[_0x53916b('0x425')]({'title':'CloudProvider\x20properly\x20saved!','msg':_0x4c5f0e['cloudProvider'][_0x53916b('0x2623')]?_0x4c5f0e[_0x53916b('0x67d')][_0x53916b('0x2623')]+_0x53916b('0x1c19'):''}),_0x5c77c5(_0x487bd3);})[_0x1c380f('0x223b')](function(_0x49c904){var _0x189899=_0x1c380f;if(_0x49c904['data']&&_0x49c904[_0x189899('0x11d0')]['errors']&&_0x49c904[_0x189899('0x11d0')]['errors']['length']){_0x4c5f0e[_0x189899('0xcd2')]=_0x49c904[_0x189899('0x11d0')][_0x189899('0xcd2')]||[{'message':_0x49c904[_0x189899('0x94f')](),'type':_0x189899('0x1e96')}];for(var _0x1ad4be=0x0;_0x1ad4be<_0x49c904[_0x189899('0x11d0')]['errors'][_0x189899('0x25ae')];_0x1ad4be++){_0x3df28a[_0x189899('0x8c8')]({'title':_0x49c904[_0x189899('0x11d0')][_0x189899('0xcd2')][_0x1ad4be][_0x189899('0x62e')],'msg':_0x49c904[_0x189899('0x11d0')][_0x189899('0xcd2')][_0x1ad4be][_0x189899('0x27e8')]});}}else _0x3df28a['error']({'title':_0x49c904[_0x189899('0x2833')]?_0x189899('0x27f2')+_0x49c904[_0x189899('0x2833')]+'\x20-\x20'+_0x49c904['statusText']:_0x189899('0x1e96'),'msg':_0x49c904[_0x189899('0x11d0')]?JSON['stringify'](_0x49c904[_0x189899('0x11d0')]['message']):_0x49c904[_0x189899('0x94f')]()});});}function _0x5e39a2(_0x30d405){var _0x16b459=_0x35ec73;_0x4c5f0e['errors']=[];var _0x11a672=_0x3dba33[_0x16b459('0xa5')]()[_0x16b459('0x13e4')](_0x16b459('0x24d0'))['content'](_0x16b459('0x880'))[_0x16b459('0x4d1')](_0x16b459('0x1243'))['ok']('Delete')[_0x16b459('0x2c1')](_0x16b459('0x8a3'))[_0x16b459('0x1345')](_0x30d405);_0x3dba33[_0x16b459('0x26b2')](_0x11a672)[_0x16b459('0xe19')](function(){var _0x1be516=_0x16b459;_0x163b17[_0x1be516('0x67d')][_0x1be516('0x229e')]({'id':_0x4c5f0e[_0x1be516('0x67d')]['id']})[_0x1be516('0xe59')][_0x1be516('0xe19')](function(){var _0x5b1fca=_0x1be516;_0x32d445()['remove'](_0x4c5f0e[_0x5b1fca('0x97e')],{'id':_0x4c5f0e[_0x5b1fca('0x67d')]['id']}),_0x3df28a[_0x5b1fca('0x425')]({'title':_0x5b1fca('0x2005'),'msg':(_0x4c5f0e[_0x5b1fca('0x67d')][_0x5b1fca('0x2623')]||_0x5b1fca('0x67d'))+_0x5b1fca('0x2182')}),_0x5c77c5(_0x4c5f0e['cloudProvider']);})[_0x1be516('0x223b')](function(_0x507f53){var _0x101202=_0x1be516;if(_0x507f53[_0x101202('0x11d0')]&&_0x507f53[_0x101202('0x11d0')][_0x101202('0xcd2')]&&_0x507f53[_0x101202('0x11d0')][_0x101202('0xcd2')][_0x101202('0x25ae')]){_0x4c5f0e[_0x101202('0xcd2')]=_0x507f53[_0x101202('0x11d0')][_0x101202('0xcd2')]||[{'message':_0x507f53[_0x101202('0x94f')](),'type':_0x101202('0x1bdb')}];for(var _0x348469=0x0;_0x348469<_0x507f53[_0x101202('0x11d0')][_0x101202('0xcd2')][_0x101202('0x25ae')];_0x348469++){_0x3df28a[_0x101202('0x8c8')]({'title':_0x507f53['data'][_0x101202('0xcd2')][_0x348469][_0x101202('0x62e')],'msg':_0x507f53[_0x101202('0x11d0')][_0x101202('0xcd2')][_0x348469][_0x101202('0x27e8')]});}}else _0x3df28a[_0x101202('0x8c8')]({'title':_0x507f53['status']?_0x101202('0x27f2')+_0x507f53[_0x101202('0x2833')]+_0x101202('0x1b7c')+_0x507f53['statusText']:_0x101202('0x1bdb'),'msg':_0x507f53[_0x101202('0x11d0')]?JSON[_0x101202('0x3ad')](_0x507f53['data'][_0x101202('0x27e8')]):_0x507f53['message']||_0x507f53[_0x101202('0x94f')]()});});},function(){});}function _0x1ddb77(_0x2411a0){return _0x2411a0===null?undefined:new Date(_0x2411a0);}function _0x5c77c5(_0x2d6eac){var _0x26d3e0=_0x35ec73;_0x3dba33[_0x26d3e0('0x11ed')](_0x2d6eac);}}const _0x267837=_0x18a481;_0x44bd57['$inject']=['$scope','$state',_0xb635d2('0x2276'),'$mdDialog','$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x4c9'),_0xb635d2('0x1f0b'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x44bd57(_0x1a8dca,_0x3f904e,_0x9d9983,_0x2da72e,_0x16d6e3,_0x1d0d13,_0x2156f7,_0x1dcf80,_0x101551,_0x2c6066,_0x14df4e,_0x389f54,_0x1258b1,_0x467d29){var _0x653bab=_0xb635d2,_0x58f6cf=this;_0x58f6cf['currentUser']=_0x14df4e[_0x653bab('0x1ef8')](),_0x58f6cf[_0x653bab('0xcd2')]=[],_0x58f6cf['setting']=_0x1258b1,_0x58f6cf[_0x653bab('0x5c1')]=_0x389f54,_0x58f6cf['crudPermissions']=_0x467d29,_0x58f6cf[_0x653bab('0x1ccb')]={},_0x58f6cf[_0x653bab('0x25ac')]=_0x58f6cf[_0x653bab('0x22f1')]&&_0x58f6cf[_0x653bab('0x22f1')][_0x653bab('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x58f6cf[_0x653bab('0x13e4')]=_0x653bab('0x19a6'),_0x58f6cf[_0x653bab('0x1f0b')]=angular['copy'](_0x101551),_0x58f6cf[_0x653bab('0x4c9')]=_0x1dcf80,_0x58f6cf[_0x653bab('0x20a3')]=![];!_0x58f6cf[_0x653bab('0x1f0b')]&&(_0x58f6cf[_0x653bab('0x1f0b')]={},_0x58f6cf[_0x653bab('0x13e4')]='SETTINGS.NEW_CUSTOMIZATION',_0x58f6cf['newCustomization']=!![]);_0x58f6cf[_0x653bab('0x180b')]=_0x256014,_0x58f6cf[_0x653bab('0x467')]=_0x3c165e,_0x58f6cf[_0x653bab('0x10a1')]=_0x4b1edc,_0x58f6cf[_0x653bab('0x2635')]=_0x56798f,_0x58f6cf['closeDialog']=_0x4cc004;function _0x256014(){var _0x5eb617=_0x653bab;_0x58f6cf['errors']=[],_0x2c6066[_0x5eb617('0x22f1')]['save'](_0x58f6cf[_0x5eb617('0x1f0b')])[_0x5eb617('0xe59')]['then'](function(_0x58f973){var _0x53eb6f=_0x5eb617;_0x58f6cf[_0x53eb6f('0x4c9')][_0x53eb6f('0x14c9')](_0x58f973[_0x53eb6f('0x250e')]()),_0x2156f7['success']({'title':'Customization\x20properly\x20created','msg':_0x58f6cf[_0x53eb6f('0x1f0b')]['name']?_0x58f6cf[_0x53eb6f('0x1f0b')]['name']+'\x20has\x20been\x20created!':''}),_0x4cc004(_0x58f973);})[_0x5eb617('0x223b')](function(_0x2b5423){var _0x4f1e0b=_0x5eb617;if(_0x2b5423['data']&&_0x2b5423[_0x4f1e0b('0x11d0')]['errors']&&_0x2b5423[_0x4f1e0b('0x11d0')][_0x4f1e0b('0xcd2')][_0x4f1e0b('0x25ae')]){_0x58f6cf[_0x4f1e0b('0xcd2')]=_0x2b5423[_0x4f1e0b('0x11d0')][_0x4f1e0b('0xcd2')]||[{'message':_0x2b5423['toString'](),'type':_0x4f1e0b('0x1023')}];for(var _0x424f60=0x0;_0x424f60<_0x2b5423[_0x4f1e0b('0x11d0')][_0x4f1e0b('0xcd2')][_0x4f1e0b('0x25ae')];_0x424f60+=0x1){_0x2156f7[_0x4f1e0b('0x8c8')]({'title':_0x2b5423[_0x4f1e0b('0x11d0')][_0x4f1e0b('0xcd2')][_0x424f60]['type'],'msg':_0x2b5423[_0x4f1e0b('0x11d0')][_0x4f1e0b('0xcd2')][_0x424f60][_0x4f1e0b('0x27e8')]});}}else _0x2156f7[_0x4f1e0b('0x8c8')]({'title':_0x2b5423[_0x4f1e0b('0x2833')]?'API:'+_0x2b5423[_0x4f1e0b('0x2833')]+_0x4f1e0b('0x1b7c')+_0x2b5423[_0x4f1e0b('0x1fd7')]:_0x4f1e0b('0x1023'),'msg':_0x2b5423[_0x4f1e0b('0x11d0')]?JSON[_0x4f1e0b('0x3ad')](_0x2b5423[_0x4f1e0b('0x11d0')][_0x4f1e0b('0x27e8')]):_0x2b5423[_0x4f1e0b('0x94f')]()});});}function _0x3c165e(){var _0x3342bc=_0x653bab;_0x58f6cf[_0x3342bc('0xcd2')]=[],_0x2c6066[_0x3342bc('0x22f1')][_0x3342bc('0xa70')]({'id':_0x58f6cf[_0x3342bc('0x1f0b')]['id']},_0x58f6cf[_0x3342bc('0x1f0b')])[_0x3342bc('0xe59')][_0x3342bc('0xe19')](function(_0x66150f){var _0x41fdb1=_0x3342bc,_0x4ebd28=_0x32d445()['find'](_0x58f6cf['customizations'],{'id':_0x66150f['id']});_0x4ebd28&&_0x32d445()[_0x41fdb1('0x1d8')](_0x4ebd28,_0x32d445()[_0x41fdb1('0xed5')](_0x66150f[_0x41fdb1('0x250e')](),_0x32d445()[_0x41fdb1('0x1234')](_0x4ebd28))),_0x2156f7[_0x41fdb1('0x425')]({'title':_0x41fdb1('0x213'),'msg':_0x58f6cf[_0x41fdb1('0x1f0b')]['name']?_0x58f6cf[_0x41fdb1('0x1f0b')][_0x41fdb1('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x4cc004(_0x66150f);})[_0x3342bc('0x223b')](function(_0x53a675){var _0x3ad186=_0x3342bc;if(_0x53a675[_0x3ad186('0x11d0')]&&_0x53a675[_0x3ad186('0x11d0')][_0x3ad186('0xcd2')]&&_0x53a675[_0x3ad186('0x11d0')][_0x3ad186('0xcd2')]['length']){_0x58f6cf['errors']=_0x53a675[_0x3ad186('0x11d0')]['errors']||[{'message':_0x53a675[_0x3ad186('0x94f')](),'type':_0x3ad186('0x885')}];for(var _0x43706f=0x0;_0x43706f<_0x53a675['data'][_0x3ad186('0xcd2')][_0x3ad186('0x25ae')];_0x43706f++){_0x2156f7[_0x3ad186('0x8c8')]({'title':_0x53a675[_0x3ad186('0x11d0')]['errors'][_0x43706f][_0x3ad186('0x62e')],'msg':_0x53a675[_0x3ad186('0x11d0')][_0x3ad186('0xcd2')][_0x43706f][_0x3ad186('0x27e8')]});}}else _0x2156f7[_0x3ad186('0x8c8')]({'title':_0x53a675[_0x3ad186('0x2833')]?_0x3ad186('0x27f2')+_0x53a675[_0x3ad186('0x2833')]+'\x20-\x20'+_0x53a675[_0x3ad186('0x1fd7')]:_0x3ad186('0x885'),'msg':_0x53a675[_0x3ad186('0x11d0')]?JSON['stringify'](_0x53a675[_0x3ad186('0x11d0')][_0x3ad186('0x27e8')]):_0x53a675['toString']()});});}function _0x4b1edc(_0x529893){var _0x5d4c8f=_0x653bab;_0x58f6cf['errors']=[];var _0x247fb7=_0x2da72e[_0x5d4c8f('0xa5')]()[_0x5d4c8f('0x13e4')](_0x5d4c8f('0x24d0'))['content'](_0x5d4c8f('0x2349'))[_0x5d4c8f('0x4d1')](_0x5d4c8f('0x12d4'))['ok'](_0x5d4c8f('0x2198'))['cancel'](_0x5d4c8f('0x8a3'))[_0x5d4c8f('0x1345')](_0x529893);_0x2da72e[_0x5d4c8f('0x26b2')](_0x247fb7)[_0x5d4c8f('0xe19')](function(){var _0x5ad640=_0x5d4c8f;_0x2c6066[_0x5ad640('0x22f1')][_0x5ad640('0x229e')]({'id':_0x58f6cf['customization']['id']})['$promise'][_0x5ad640('0xe19')](function(){var _0x216375=_0x5ad640;_0x32d445()['remove'](_0x58f6cf[_0x216375('0x4c9')],{'id':_0x58f6cf['customization']['id']}),_0x2156f7['success']({'title':'Customization\x20properly\x20deleted!','msg':(_0x58f6cf[_0x216375('0x1f0b')][_0x216375('0x2623')]||_0x216375('0x1f0b'))+_0x216375('0x2182')}),_0x4cc004(_0x58f6cf[_0x216375('0x1f0b')]);})['catch'](function(_0x1b1711){var _0x27527=_0x5ad640;if(_0x1b1711[_0x27527('0x11d0')]&&_0x1b1711['data']['errors']&&_0x1b1711[_0x27527('0x11d0')]['errors'][_0x27527('0x25ae')]){_0x58f6cf['errors']=_0x1b1711[_0x27527('0x11d0')][_0x27527('0xcd2')]||[{'message':_0x1b1711[_0x27527('0x94f')](),'type':_0x27527('0x151d')}];for(var _0x89f213=0x0;_0x89f213<_0x1b1711['data'][_0x27527('0xcd2')][_0x27527('0x25ae')];_0x89f213++){_0x2156f7[_0x27527('0x8c8')]({'title':_0x1b1711[_0x27527('0x11d0')][_0x27527('0xcd2')][_0x89f213]['type'],'msg':_0x1b1711[_0x27527('0x11d0')][_0x27527('0xcd2')][_0x89f213][_0x27527('0x27e8')]});}}else _0x2156f7[_0x27527('0x8c8')]({'title':_0x1b1711[_0x27527('0x2833')]?_0x27527('0x27f2')+_0x1b1711[_0x27527('0x2833')]+_0x27527('0x1b7c')+_0x1b1711['statusText']:'api.setting.delete','msg':_0x1b1711[_0x27527('0x11d0')]?JSON['stringify'](_0x1b1711['data'][_0x27527('0x27e8')]):_0x1b1711['message']||_0x1b1711[_0x27527('0x94f')]()});});},function(){});}function _0x56798f(_0xe0ba56){return _0xe0ba56===null?undefined:new Date(_0xe0ba56);}function _0x4cc004(_0x670882){_0x2da72e['hide'](_0x670882);}}const _0x42e7aa=_0x44bd57;_0x525f3c['$inject']=[_0xb635d2('0x4c9'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x5c1'),_0xb635d2('0x2730')];function _0x525f3c(_0x172e73,_0x32e669,_0x42bd10,_0x30f413,_0x56a427){var _0x13e0d3=_0xb635d2,_0x225667=this;_0x225667['currentUser']=_0x56a427[_0x13e0d3('0x1ef8')](),_0x225667['license']=_0x30f413,_0x225667[_0x13e0d3('0x4c9')]=_0x172e73,_0x225667[_0x13e0d3('0x1f0b')]={};_0x225667[_0x13e0d3('0x4c9')]&&_0x225667[_0x13e0d3('0x4c9')][_0x13e0d3('0x16a7')]&&_0x225667[_0x13e0d3('0x4c9')]['rows'][_0x13e0d3('0x25ae')]&&(_0x225667['customization']=_0x225667[_0x13e0d3('0x4c9')][_0x13e0d3('0x16a7')][0x0]);_0x225667[_0x13e0d3('0x467')]=_0x41ea1b;function _0x41ea1b(){var _0x5b4871=_0x13e0d3;_0x225667[_0x5b4871('0x1f0b')]['id']?_0x32e669[_0x5b4871('0x22f1')]['update']({'id':_0x225667['customization']['id']},_0x225667[_0x5b4871('0x1f0b')])[_0x5b4871('0xe59')][_0x5b4871('0xe19')](function(){var _0x5df47b=_0x5b4871;_0x42bd10['success']({'title':_0x5df47b('0x26f0'),'msg':_0x225667[_0x5df47b('0x1f0b')][_0x5df47b('0x2623')]?_0x225667[_0x5df47b('0x1f0b')][_0x5df47b('0x2623')]+_0x5df47b('0x283b'):''});})[_0x5b4871('0x223b')](function(_0x264331){var _0x1d3f5d=_0x5b4871;_0x42bd10[_0x1d3f5d('0x8c8')]({'title':_0x264331[_0x1d3f5d('0x2833')]?_0x1d3f5d('0x27f2')+_0x264331[_0x1d3f5d('0x2833')]+_0x1d3f5d('0x1b7c')+_0x264331[_0x1d3f5d('0x1fd7')]:_0x1d3f5d('0x135e'),'msg':_0x264331[_0x1d3f5d('0x11d0')]?JSON[_0x1d3f5d('0x3ad')](_0x264331[_0x1d3f5d('0x11d0')]):_0x264331[_0x1d3f5d('0x94f')]()});}):_0x32e669[_0x5b4871('0x22f1')][_0x5b4871('0xe5e')](_0x225667[_0x5b4871('0x1f0b')])[_0x5b4871('0xe59')][_0x5b4871('0xe19')](function(_0x5f51b4){var _0x534465=_0x5b4871;_0x32d445()[_0x534465('0x1d8')](_0x225667[_0x534465('0x1f0b')],_0x5f51b4),_0x42bd10[_0x534465('0x425')]({'title':_0x534465('0x26f0'),'msg':_0x225667[_0x534465('0x1f0b')]['name']?_0x225667[_0x534465('0x1f0b')]['name']+_0x534465('0x283b'):''});})[_0x5b4871('0x223b')](function(_0x43a5fb){var _0xeb3c88=_0x5b4871;_0x42bd10[_0xeb3c88('0x8c8')]({'title':_0x43a5fb[_0xeb3c88('0x2833')]?_0xeb3c88('0x27f2')+_0x43a5fb[_0xeb3c88('0x2833')]+_0xeb3c88('0x1b7c')+_0x43a5fb[_0xeb3c88('0x1fd7')]:'SYSTEM:GETsetting','msg':_0x43a5fb['data']?JSON['stringify'](_0x43a5fb[_0xeb3c88('0x11d0')]):_0x43a5fb['toString']()});});}}const _0x122581=_0x525f3c;_0x2f1712[_0xb635d2('0xb0c')]=['$cookies','toasty'];function _0x2f1712(_0x49ebae,_0x443dc0){var _0x47e768=_0xb635d2,_0x588eea=this,_0x4abb83=0x8,_0xd38a4d=_0x4abb83*0x400*0x400;_0x588eea[_0x47e768('0x1f0b')]={},_0x588eea[_0x47e768('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0xd38a4d,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x588eea['ngFlow']={'flow':{}},_0x588eea['dropping']=![],_0x588eea[_0x47e768('0x1124')]=_0x4c9a4c,_0x588eea[_0x47e768('0x20')]=_0x45b894,_0x588eea[_0x47e768('0x24e8')]=_0x1814e1,_0x588eea[_0x47e768('0x15f9')]=_0x48c8b0;function _0x48c8b0(_0x41e0e5){var _0x44fdb2=_0x47e768;_0x588eea[_0x44fdb2('0x1f0b')]=angular[_0x44fdb2('0x89')](_0x41e0e5),_0x588eea[_0x44fdb2('0x186a')][_0x44fdb2('0xe0b')]='/api/settings/1/favicon'['replace'](':id',_0x588eea[_0x44fdb2('0x1f0b')]['id']),_0x588eea['customization'][_0x44fdb2('0x22b8')]=[];}function _0x4c9a4c(_0x48edc6){var _0x45c71c=_0x47e768,_0x46b1f9=[_0x45c71c('0xb48'),_0x45c71c('0x1c0a'),'ico'];if(!_0x32d445()[_0x45c71c('0x1c43')](_0x46b1f9,_0x48edc6[_0x45c71c('0x23df')]()))return _0x443dc0[_0x45c71c('0x8c8')]({'title':'Invalid\x20extension:\x20'+_0x48edc6[_0x45c71c('0x23df')](),'msg':_0x45c71c('0x1450')+_0x46b1f9[_0x45c71c('0x1537')]()}),![];if(_0x48edc6['size']>_0xd38a4d)return _0x443dc0[_0x45c71c('0x8c8')]({'title':_0x45c71c('0x16c9'),'msg':_0x45c71c('0x275f')+_0x4abb83+'MB'}),![];var _0x12a943={'id':_0x48edc6[_0x45c71c('0x164e')],'file':_0x48edc6,'type':'uploading'};return _0x588eea[_0x45c71c('0x1f0b')]['images'][_0x45c71c('0x14c9')](_0x12a943),!![];}function _0x45b894(){var _0x5c983c=_0x47e768;_0x588eea[_0x5c983c('0x1b57')][_0x5c983c('0x206b')]['opts'][_0x5c983c('0x2234')]={'X-Requested-With':_0x5c983c('0xdf4'),'Authorization':_0x5c983c('0x17b7')+_0x49ebae[_0x5c983c('0x22d5')](_0x5c983c('0x511'))},_0x588eea[_0x5c983c('0x1b57')][_0x5c983c('0x206b')]['upload']();}function _0x1814e1(_0x394bdd){var _0x1d6469=_0x47e768;angular['forEach'](_0x588eea[_0x1d6469('0x1f0b')][_0x1d6469('0x22b8')],function(_0x3d51d7){var _0x2e0b21=_0x1d6469;if(_0x3d51d7['id']===_0x394bdd['uniqueIdentifier']){var _0x1c6036=new FileReader();_0x1c6036[_0x2e0b21('0x845')](_0x3d51d7[_0x2e0b21('0x2c0')][_0x2e0b21('0x2c0')]),_0x1c6036[_0x2e0b21('0x1d94')]=function(_0x123e1d){var _0x14c0cf=_0x2e0b21;_0x3d51d7[_0x14c0cf('0x2647')]=_0x123e1d[_0x14c0cf('0xe0b')][_0x14c0cf('0x2048')];},_0x3d51d7[_0x2e0b21('0x62e')]=_0x2e0b21('0x16af');}});}}const _0x5564a8=_0x2f1712;_0x11604d[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0xf65')];function _0x11604d(_0x2d2ec4,_0x38b473){var _0x4abe3c=_0xb635d2,_0x3a10b5=this,_0x2d6e57=0x8,_0x72eda6=_0x2d6e57*0x400*0x400;_0x3a10b5[_0x4abe3c('0x1f0b')]={},_0x3a10b5[_0x4abe3c('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x72eda6,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3a10b5[_0x4abe3c('0x1b57')]={'flow':{}},_0x3a10b5[_0x4abe3c('0x1403')]=![],_0x3a10b5[_0x4abe3c('0x1124')]=_0x47ca9c,_0x3a10b5[_0x4abe3c('0x20')]=_0x41ad0b,_0x3a10b5[_0x4abe3c('0x24e8')]=_0x1da952,_0x3a10b5[_0x4abe3c('0x15f9')]=_0x1c9418;function _0x1c9418(_0x503c19){var _0x3005bc=_0x4abe3c;_0x3a10b5[_0x3005bc('0x1f0b')]=angular[_0x3005bc('0x89')](_0x503c19),_0x3a10b5[_0x3005bc('0x186a')][_0x3005bc('0xe0b')]=_0x3005bc('0x19e0')[_0x3005bc('0x1b42')](':id',_0x3a10b5[_0x3005bc('0x1f0b')]['id']),_0x3a10b5[_0x3005bc('0x1f0b')][_0x3005bc('0x22b8')]=[];}function _0x47ca9c(_0x216852){var _0x2b8e30=_0x4abe3c,_0x2d4d00=['png',_0x2b8e30('0x1c0a')];if(!_0x32d445()[_0x2b8e30('0x1c43')](_0x2d4d00,_0x216852[_0x2b8e30('0x23df')]()))return _0x38b473[_0x2b8e30('0x8c8')]({'title':_0x2b8e30('0x11b6')+_0x216852[_0x2b8e30('0x23df')](),'msg':_0x2b8e30('0x1450')+_0x2d4d00[_0x2b8e30('0x1537')]()}),![];if(_0x216852[_0x2b8e30('0x1aea')]>_0x72eda6)return _0x38b473['error']({'title':_0x2b8e30('0x16c9'),'msg':_0x2b8e30('0x275f')+_0x2d6e57+'MB'}),![];var _0x4d4f1d={'id':_0x216852[_0x2b8e30('0x164e')],'file':_0x216852,'type':_0x2b8e30('0x1363')};return _0x3a10b5['customization'][_0x2b8e30('0x22b8')][_0x2b8e30('0x14c9')](_0x4d4f1d),!![];}function _0x41ad0b(){var _0x286134=_0x4abe3c;_0x3a10b5['ngFlow'][_0x286134('0x206b')]['opts']['headers']={'X-Requested-With':'XMLHttpRequest','Authorization':_0x286134('0x17b7')+_0x2d2ec4[_0x286134('0x22d5')](_0x286134('0x511'))},_0x3a10b5[_0x286134('0x1b57')][_0x286134('0x206b')][_0x286134('0x20')]();}function _0x1da952(_0x47dd06){var _0x300e5a=_0x4abe3c;angular[_0x300e5a('0x1d7e')](_0x3a10b5['customization'][_0x300e5a('0x22b8')],function(_0x66cde9){var _0x5651d1=_0x300e5a;if(_0x66cde9['id']===_0x47dd06[_0x5651d1('0x164e')]){var _0x6d61=new FileReader();_0x6d61['readAsDataURL'](_0x66cde9[_0x5651d1('0x2c0')][_0x5651d1('0x2c0')]),_0x6d61[_0x5651d1('0x1d94')]=function(_0x1461bd){var _0x557d25=_0x5651d1;_0x66cde9[_0x557d25('0x2647')]=_0x1461bd['target']['result'];},_0x66cde9[_0x5651d1('0x62e')]=_0x5651d1('0x16af');}});}}const _0x37be73=_0x11604d;_0x5a9381[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0xf65')];function _0x5a9381(_0x1e4184,_0x5c1368){var _0x4147e4=_0xb635d2,_0x333b41=this,_0x177642=0x8,_0x13d358=_0x177642*0x400*0x400;_0x333b41['customization']={},_0x333b41[_0x4147e4('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x13d358,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x333b41[_0x4147e4('0x1b57')]={'flow':{}},_0x333b41[_0x4147e4('0x1403')]=![],_0x333b41[_0x4147e4('0x1124')]=_0x1f2e81,_0x333b41['upload']=_0x23d3be,_0x333b41[_0x4147e4('0x24e8')]=_0x19bc78,_0x333b41[_0x4147e4('0x15f9')]=_0xe5c045;function _0xe5c045(_0x4ba510){var _0x4c719d=_0x4147e4;_0x333b41[_0x4c719d('0x1f0b')]=angular[_0x4c719d('0x89')](_0x4ba510),_0x333b41[_0x4c719d('0x186a')][_0x4c719d('0xe0b')]=_0x4c719d('0x2651')[_0x4c719d('0x1b42')](_0x4c719d('0x16f0'),_0x333b41[_0x4c719d('0x1f0b')]['id']),_0x333b41['customization'][_0x4c719d('0x22b8')]=[];}function _0x1f2e81(_0xe234b1){var _0x54bbab=_0x4147e4,_0x4c607e=[_0x54bbab('0xb48'),_0x54bbab('0x1c0a')];if(!_0x32d445()[_0x54bbab('0x1c43')](_0x4c607e,_0xe234b1[_0x54bbab('0x23df')]()))return _0x5c1368[_0x54bbab('0x8c8')]({'title':_0x54bbab('0x11b6')+_0xe234b1[_0x54bbab('0x23df')](),'msg':_0x54bbab('0x1450')+_0x4c607e[_0x54bbab('0x1537')]()}),![];if(_0xe234b1[_0x54bbab('0x1aea')]>_0x13d358)return _0x5c1368[_0x54bbab('0x8c8')]({'title':_0x54bbab('0x16c9'),'msg':_0x54bbab('0x275f')+_0x177642+'MB'}),![];var _0x40948c={'id':_0xe234b1[_0x54bbab('0x164e')],'file':_0xe234b1,'type':_0x54bbab('0x1363')};return _0x333b41[_0x54bbab('0x1f0b')][_0x54bbab('0x22b8')][_0x54bbab('0x14c9')](_0x40948c),!![];}function _0x23d3be(){var _0x2041ff=_0x4147e4;_0x333b41[_0x2041ff('0x1b57')]['flow']['opts'][_0x2041ff('0x2234')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x2041ff('0x17b7')+_0x1e4184[_0x2041ff('0x22d5')]('motion.token')},_0x333b41[_0x2041ff('0x1b57')][_0x2041ff('0x206b')]['upload']();}function _0x19bc78(_0x5acb76){var _0x27ca6e=_0x4147e4;angular[_0x27ca6e('0x1d7e')](_0x333b41[_0x27ca6e('0x1f0b')][_0x27ca6e('0x22b8')],function(_0x1dac66){var _0x23d38b=_0x27ca6e;if(_0x1dac66['id']===_0x5acb76[_0x23d38b('0x164e')]){var _0x530f7c=new FileReader();_0x530f7c[_0x23d38b('0x845')](_0x1dac66[_0x23d38b('0x2c0')][_0x23d38b('0x2c0')]),_0x530f7c[_0x23d38b('0x1d94')]=function(_0x321e70){var _0x5931ca=_0x23d38b;_0x1dac66['url']=_0x321e70[_0x5931ca('0xe0b')][_0x5931ca('0x2048')];},_0x1dac66[_0x23d38b('0x62e')]=_0x23d38b('0x16af');}});}}const _0x110f3d=_0x5a9381;_0x1c7f90['$inject']=[_0xb635d2('0x1c1d'),_0xb635d2('0xf65')];function _0x1c7f90(_0x5bd10f,_0x58d776){var _0x9b64da=_0xb635d2,_0x3ef947=this,_0x469071=0x8,_0x4b7ccb=_0x469071*0x400*0x400;_0x3ef947[_0x9b64da('0x1f0b')]={},_0x3ef947[_0x9b64da('0x186a')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4b7ccb,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3ef947[_0x9b64da('0x1b57')]={'flow':{}},_0x3ef947[_0x9b64da('0x1403')]=![],_0x3ef947['fileAdded']=_0x494413,_0x3ef947[_0x9b64da('0x20')]=_0x473a60,_0x3ef947[_0x9b64da('0x24e8')]=_0xd33c30,_0x3ef947[_0x9b64da('0x15f9')]=_0x4d2ba8;function _0x4d2ba8(_0x5db393){var _0x1cb170=_0x9b64da;_0x3ef947[_0x1cb170('0x1f0b')]=angular[_0x1cb170('0x89')](_0x5db393),_0x3ef947[_0x1cb170('0x186a')][_0x1cb170('0xe0b')]=_0x1cb170('0x24f')[_0x1cb170('0x1b42')](_0x1cb170('0x16f0'),_0x3ef947[_0x1cb170('0x1f0b')]['id']),_0x3ef947[_0x1cb170('0x1f0b')][_0x1cb170('0x22b8')]=[];}function _0x494413(_0xcdc4e2){var _0x3773eb=_0x9b64da,_0xd2166e=[_0x3773eb('0xb48'),_0x3773eb('0x1c0a')];if(!_0x32d445()[_0x3773eb('0x1c43')](_0xd2166e,_0xcdc4e2[_0x3773eb('0x23df')]()))return _0x58d776['error']({'title':'Invalid\x20extension:\x20'+_0xcdc4e2[_0x3773eb('0x23df')](),'msg':_0x3773eb('0x1450')+_0xd2166e[_0x3773eb('0x1537')]()}),![];if(_0xcdc4e2[_0x3773eb('0x1aea')]>_0x4b7ccb)return _0x58d776[_0x3773eb('0x8c8')]({'title':_0x3773eb('0x16c9'),'msg':_0x3773eb('0x275f')+_0x469071+'MB'}),![];var _0x5b6aa7={'id':_0xcdc4e2[_0x3773eb('0x164e')],'file':_0xcdc4e2,'type':_0x3773eb('0x1363')};return _0x3ef947[_0x3773eb('0x1f0b')]['images'][_0x3773eb('0x14c9')](_0x5b6aa7),!![];}function _0x473a60(){var _0x31db21=_0x9b64da;_0x3ef947['ngFlow'][_0x31db21('0x206b')]['opts'][_0x31db21('0x2234')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x31db21('0x17b7')+_0x5bd10f[_0x31db21('0x22d5')](_0x31db21('0x511'))},_0x3ef947[_0x31db21('0x1b57')][_0x31db21('0x206b')][_0x31db21('0x20')]();}function _0xd33c30(_0x8e9881){var _0x1be088=_0x9b64da;angular[_0x1be088('0x1d7e')](_0x3ef947[_0x1be088('0x1f0b')][_0x1be088('0x22b8')],function(_0x1105b5){var _0x4be105=_0x1be088;if(_0x1105b5['id']===_0x8e9881['uniqueIdentifier']){var _0x54f1f1=new FileReader();_0x54f1f1[_0x4be105('0x845')](_0x1105b5[_0x4be105('0x2c0')][_0x4be105('0x2c0')]),_0x54f1f1['onload']=function(_0x2163a3){var _0xd92d8d=_0x4be105;_0x1105b5['url']=_0x2163a3[_0xd92d8d('0xe0b')][_0xd92d8d('0x2048')];},_0x1105b5[_0x4be105('0x62e')]=_0x4be105('0x16af');}});}}const _0x3f7ba7=_0x1c7f90;_0x5c059e['$inject']=[_0xb635d2('0x63c'),'$state','$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1194'),_0xb635d2('0xc37'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x5c059e(_0x1b4ba4,_0x25ea6d,_0xb4f164,_0x23fa7c,_0x593248,_0x1e6d82,_0xb413c4,_0xd72da3,_0x34ec68,_0x59d0c0,_0x4d3a66,_0xf0de53,_0x418614,_0xe7f00b){var _0x341d70=_0xb635d2,_0x20ac04=this;_0x20ac04[_0x341d70('0x15a5')]=_0x4d3a66[_0x341d70('0x1ef8')](),_0x20ac04[_0x341d70('0xcd2')]=[],_0x20ac04[_0x341d70('0x22f1')]=_0x418614,_0x20ac04['license']=_0xf0de53,_0x20ac04['crudPermissions']=_0xe7f00b,_0x20ac04[_0x341d70('0x1ccb')]={},_0x20ac04['passwordPattern']=_0x20ac04[_0x341d70('0x22f1')]&&_0x20ac04['setting'][_0x341d70('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20ac04[_0x341d70('0x13e4')]='SETTINGS.EDIT_GENERAL',_0x20ac04[_0x341d70('0xc37')]=angular[_0x341d70('0x89')](_0x34ec68),_0x20ac04[_0x341d70('0x1194')]=_0xd72da3,_0x20ac04[_0x341d70('0x185f')]=![];!_0x20ac04['general']&&(_0x20ac04[_0x341d70('0xc37')]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':'https://www.xcally.com/bar/phonebar/autoupdater.xml','splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x341d70('0x676'),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x20ac04[_0x341d70('0x13e4')]='SETTINGS.NEW_GENERAL',_0x20ac04[_0x341d70('0x185f')]=!![]);_0x20ac04[_0x341d70('0x1c77')]=_0x552362,_0x20ac04[_0x341d70('0xa5d')]=_0x1f3692,_0x20ac04['deleteGeneral']=_0x565731,_0x20ac04[_0x341d70('0x2635')]=_0x1309fa,_0x20ac04['closeDialog']=_0x1ec96a,_0x59d0c0['cloudProvider'][_0x341d70('0x22d5')]({'fields':_0x341d70('0x104'),'sort':_0x341d70('0x2623'),'nolimit':_0x341d70('0x2206')})[_0x341d70('0xe59')][_0x341d70('0xe19')](function(_0x57ac16){var _0x3d531d=_0x341d70;_0x20ac04[_0x3d531d('0x97e')]=_0x57ac16[_0x3d531d('0x16a7')]||[];})[_0x341d70('0x223b')](function(_0x582920){var _0x62fc0a=_0x341d70;_0xb413c4[_0x62fc0a('0x8c8')]({'title':_0x582920[_0x62fc0a('0x2833')]?_0x62fc0a('0x27f2')+_0x582920[_0x62fc0a('0x2833')]+_0x62fc0a('0x1b7c')+_0x582920[_0x62fc0a('0x1fd7')]:_0x62fc0a('0x223c'),'msg':_0x582920['data']?JSON[_0x62fc0a('0x3ad')](_0x582920[_0x62fc0a('0x11d0')]):_0x582920[_0x62fc0a('0x94f')]()});});function _0x552362(){var _0x2b4aab=_0x341d70;_0x20ac04[_0x2b4aab('0xcd2')]=[],_0x59d0c0[_0x2b4aab('0x22f1')][_0x2b4aab('0xe5e')](_0x20ac04[_0x2b4aab('0xc37')])[_0x2b4aab('0xe59')][_0x2b4aab('0xe19')](function(_0x5657e6){var _0x4f3fae=_0x2b4aab;_0x20ac04[_0x4f3fae('0x1194')][_0x4f3fae('0x14c9')](_0x5657e6['toJSON']()),_0xb413c4[_0x4f3fae('0x425')]({'title':_0x4f3fae('0x248e'),'msg':_0x20ac04[_0x4f3fae('0xc37')][_0x4f3fae('0x2623')]?_0x20ac04[_0x4f3fae('0xc37')][_0x4f3fae('0x2623')]+'\x20has\x20been\x20created!':''}),_0x1ec96a(_0x5657e6);})[_0x2b4aab('0x223b')](function(_0x8d8553){var _0x1c75e9=_0x2b4aab;if(_0x8d8553[_0x1c75e9('0x11d0')]&&_0x8d8553[_0x1c75e9('0x11d0')][_0x1c75e9('0xcd2')]&&_0x8d8553[_0x1c75e9('0x11d0')][_0x1c75e9('0xcd2')][_0x1c75e9('0x25ae')]){_0x20ac04[_0x1c75e9('0xcd2')]=_0x8d8553[_0x1c75e9('0x11d0')][_0x1c75e9('0xcd2')]||[{'message':_0x8d8553[_0x1c75e9('0x94f')](),'type':_0x1c75e9('0x1023')}];for(var _0x4ad409=0x0;_0x4ad409<_0x8d8553['data'][_0x1c75e9('0xcd2')][_0x1c75e9('0x25ae')];_0x4ad409+=0x1){_0xb413c4[_0x1c75e9('0x8c8')]({'title':_0x8d8553[_0x1c75e9('0x11d0')][_0x1c75e9('0xcd2')][_0x4ad409][_0x1c75e9('0x62e')],'msg':_0x8d8553[_0x1c75e9('0x11d0')][_0x1c75e9('0xcd2')][_0x4ad409][_0x1c75e9('0x27e8')]});}}else _0xb413c4[_0x1c75e9('0x8c8')]({'title':_0x8d8553[_0x1c75e9('0x2833')]?'API:'+_0x8d8553['status']+_0x1c75e9('0x1b7c')+_0x8d8553[_0x1c75e9('0x1fd7')]:_0x1c75e9('0x1023'),'msg':_0x8d8553[_0x1c75e9('0x11d0')]?JSON[_0x1c75e9('0x3ad')](_0x8d8553['data'][_0x1c75e9('0x27e8')]):_0x8d8553['toString']()});});}function _0x1f3692(){var _0x3d817b=_0x341d70;_0x20ac04['errors']=[],_0x59d0c0['setting'][_0x3d817b('0xa70')]({'id':_0x20ac04[_0x3d817b('0xc37')]['id']},_0x20ac04[_0x3d817b('0xc37')])[_0x3d817b('0xe59')][_0x3d817b('0xe19')](function(_0x50da33){var _0x371ed3=_0x3d817b,_0x2d43ef=_0x32d445()[_0x371ed3('0xf15')](_0x20ac04['generals'],{'id':_0x50da33['id']});_0x2d43ef&&_0x32d445()['merge'](_0x2d43ef,_0x32d445()[_0x371ed3('0xed5')](_0x50da33['toJSON'](),_0x32d445()[_0x371ed3('0x1234')](_0x2d43ef))),_0xb413c4['success']({'title':'General\x20properly\x20saved!','msg':_0x20ac04[_0x371ed3('0xc37')]['name']?_0x20ac04[_0x371ed3('0xc37')][_0x371ed3('0x2623')]+_0x371ed3('0x1c19'):''}),_0x1ec96a(_0x50da33);})[_0x3d817b('0x223b')](function(_0x1bc099){var _0x20d66e=_0x3d817b;if(_0x1bc099[_0x20d66e('0x11d0')]&&_0x1bc099[_0x20d66e('0x11d0')][_0x20d66e('0xcd2')]&&_0x1bc099[_0x20d66e('0x11d0')][_0x20d66e('0xcd2')][_0x20d66e('0x25ae')]){_0x20ac04['errors']=_0x1bc099['data'][_0x20d66e('0xcd2')]||[{'message':_0x1bc099[_0x20d66e('0x94f')](),'type':_0x20d66e('0x885')}];for(var _0x1f0ba2=0x0;_0x1f0ba2<_0x1bc099[_0x20d66e('0x11d0')][_0x20d66e('0xcd2')]['length'];_0x1f0ba2++){_0xb413c4[_0x20d66e('0x8c8')]({'title':_0x1bc099[_0x20d66e('0x11d0')][_0x20d66e('0xcd2')][_0x1f0ba2][_0x20d66e('0x62e')],'msg':_0x1bc099[_0x20d66e('0x11d0')][_0x20d66e('0xcd2')][_0x1f0ba2]['message']});}}else _0xb413c4[_0x20d66e('0x8c8')]({'title':_0x1bc099[_0x20d66e('0x2833')]?_0x20d66e('0x27f2')+_0x1bc099[_0x20d66e('0x2833')]+_0x20d66e('0x1b7c')+_0x1bc099['statusText']:'api.setting.update','msg':_0x1bc099[_0x20d66e('0x11d0')]?JSON[_0x20d66e('0x3ad')](_0x1bc099[_0x20d66e('0x11d0')]['message']):_0x1bc099[_0x20d66e('0x94f')]()});});}function _0x565731(_0x2b6007){var _0xc439cf=_0x341d70;_0x20ac04[_0xc439cf('0xcd2')]=[];var _0x438add=_0x23fa7c[_0xc439cf('0xa5')]()[_0xc439cf('0x13e4')]('Are\x20you\x20sure?')['content'](_0xc439cf('0x1496'))[_0xc439cf('0x4d1')](_0xc439cf('0x1ba'))['ok']('Delete')[_0xc439cf('0x2c1')]('Cancel')[_0xc439cf('0x1345')](_0x2b6007);_0x23fa7c[_0xc439cf('0x26b2')](_0x438add)['then'](function(){var _0x57e84b=_0xc439cf;_0x59d0c0['setting'][_0x57e84b('0x229e')]({'id':_0x20ac04[_0x57e84b('0xc37')]['id']})[_0x57e84b('0xe59')][_0x57e84b('0xe19')](function(){var _0x3d0bc8=_0x57e84b;_0x32d445()[_0x3d0bc8('0xa8b')](_0x20ac04[_0x3d0bc8('0x1194')],{'id':_0x20ac04['general']['id']}),_0xb413c4[_0x3d0bc8('0x425')]({'title':'General\x20properly\x20deleted!','msg':(_0x20ac04['general']['name']||_0x3d0bc8('0xc37'))+_0x3d0bc8('0x2182')}),_0x1ec96a(_0x20ac04[_0x3d0bc8('0xc37')]);})[_0x57e84b('0x223b')](function(_0x4bca48){var _0x3456dd=_0x57e84b;if(_0x4bca48['data']&&_0x4bca48['data']['errors']&&_0x4bca48['data'][_0x3456dd('0xcd2')][_0x3456dd('0x25ae')]){_0x20ac04[_0x3456dd('0xcd2')]=_0x4bca48[_0x3456dd('0x11d0')][_0x3456dd('0xcd2')]||[{'message':_0x4bca48[_0x3456dd('0x94f')](),'type':_0x3456dd('0x151d')}];for(var _0x4ff209=0x0;_0x4ff209<_0x4bca48[_0x3456dd('0x11d0')][_0x3456dd('0xcd2')][_0x3456dd('0x25ae')];_0x4ff209++){_0xb413c4[_0x3456dd('0x8c8')]({'title':_0x4bca48[_0x3456dd('0x11d0')][_0x3456dd('0xcd2')][_0x4ff209][_0x3456dd('0x62e')],'msg':_0x4bca48['data'][_0x3456dd('0xcd2')][_0x4ff209][_0x3456dd('0x27e8')]});}}else _0xb413c4[_0x3456dd('0x8c8')]({'title':_0x4bca48[_0x3456dd('0x2833')]?_0x3456dd('0x27f2')+_0x4bca48[_0x3456dd('0x2833')]+'\x20-\x20'+_0x4bca48[_0x3456dd('0x1fd7')]:'api.setting.delete','msg':_0x4bca48[_0x3456dd('0x11d0')]?JSON[_0x3456dd('0x3ad')](_0x4bca48[_0x3456dd('0x11d0')][_0x3456dd('0x27e8')]):_0x4bca48[_0x3456dd('0x27e8')]||_0x4bca48[_0x3456dd('0x94f')]()});});},function(){});}function _0x1309fa(_0xa707ea){return _0xa707ea===null?undefined:new Date(_0xa707ea);}function _0x1ec96a(_0x14430b){var _0x436107=_0x341d70;_0x23fa7c[_0x436107('0x11ed')](_0x14430b);}}const _0x52ba14=_0x5c059e;_0x5976fa[_0xb635d2('0xb0c')]=[_0xb635d2('0x1194'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x5c1'),_0xb635d2('0x2730')];function _0x5976fa(_0x3df781,_0x160929,_0x933e8e,_0x14fd2e,_0x5bb34e){var _0x26c96e=_0xb635d2,_0x16cf91=this;_0x16cf91['currentUser']=_0x5bb34e[_0x26c96e('0x1ef8')](),_0x16cf91[_0x26c96e('0x5c1')]=_0x14fd2e,_0x16cf91[_0x26c96e('0x1194')]=_0x3df781,_0x16cf91['general']={};_0x16cf91[_0x26c96e('0x1194')]&&_0x16cf91[_0x26c96e('0x1194')][_0x26c96e('0x16a7')]&&_0x16cf91[_0x26c96e('0x1194')]['rows'][_0x26c96e('0x25ae')]&&(_0x16cf91[_0x26c96e('0xc37')]=_0x16cf91[_0x26c96e('0x1194')]['rows'][0x0]);_0x160929[_0x26c96e('0x67d')]['get']({'fields':'id,name','sort':_0x26c96e('0x2623'),'nolimit':_0x26c96e('0x2206')})[_0x26c96e('0xe59')][_0x26c96e('0xe19')](function(_0x3df398){var _0x390b65=_0x26c96e;_0x16cf91[_0x390b65('0x97e')]=_0x3df398[_0x390b65('0x16a7')]||[];})[_0x26c96e('0x223b')](function(_0x3e89af){var _0x298eea=_0x26c96e;_0x933e8e[_0x298eea('0x8c8')]({'title':_0x3e89af[_0x298eea('0x2833')]?'API:'+_0x3e89af['status']+_0x298eea('0x1b7c')+_0x3e89af['statusText']:_0x298eea('0x223c'),'msg':_0x3e89af[_0x298eea('0x11d0')]?JSON['stringify'](_0x3e89af[_0x298eea('0x11d0')]):_0x3e89af[_0x298eea('0x94f')]()});}),_0x16cf91['saveGeneral']=_0x4cbc43;function _0x4cbc43(){var _0x302c4e=_0x26c96e;_0x16cf91[_0x302c4e('0xc37')]['id']?_0x160929[_0x302c4e('0x22f1')][_0x302c4e('0xa70')]({'id':_0x16cf91[_0x302c4e('0xc37')]['id']},_0x16cf91[_0x302c4e('0xc37')])[_0x302c4e('0xe59')][_0x302c4e('0xe19')](function(){var _0x2ad5d6=_0x302c4e;_0x933e8e[_0x2ad5d6('0x425')]({'title':_0x2ad5d6('0x1d35'),'msg':_0x16cf91[_0x2ad5d6('0xc37')]['name']?_0x16cf91['general'][_0x2ad5d6('0x2623')]+_0x2ad5d6('0x283b'):''});})['catch'](function(_0x127554){var _0x268ff8=_0x302c4e;_0x933e8e[_0x268ff8('0x8c8')]({'title':_0x127554[_0x268ff8('0x2833')]?_0x268ff8('0x27f2')+_0x127554[_0x268ff8('0x2833')]+'\x20-\x20'+_0x127554[_0x268ff8('0x1fd7')]:_0x268ff8('0x135e'),'msg':_0x127554[_0x268ff8('0x11d0')]?JSON[_0x268ff8('0x3ad')](_0x127554[_0x268ff8('0x11d0')]):_0x127554[_0x268ff8('0x94f')]()});}):_0x160929[_0x302c4e('0x22f1')][_0x302c4e('0xe5e')](_0x16cf91[_0x302c4e('0xc37')])['$promise'][_0x302c4e('0xe19')](function(_0x20fe17){var _0x4e4e00=_0x302c4e;_0x32d445()[_0x4e4e00('0x1d8')](_0x16cf91['general'],_0x20fe17),_0x933e8e[_0x4e4e00('0x425')]({'title':_0x4e4e00('0x1d35'),'msg':_0x16cf91[_0x4e4e00('0xc37')][_0x4e4e00('0x2623')]?_0x16cf91[_0x4e4e00('0xc37')][_0x4e4e00('0x2623')]+_0x4e4e00('0x283b'):''});})[_0x302c4e('0x223b')](function(_0x211051){var _0x43dc90=_0x302c4e;_0x933e8e[_0x43dc90('0x8c8')]({'title':_0x211051[_0x43dc90('0x2833')]?'API:'+_0x211051[_0x43dc90('0x2833')]+_0x43dc90('0x1b7c')+_0x211051[_0x43dc90('0x1fd7')]:'SYSTEM:GETsetting','msg':_0x211051['data']?JSON[_0x43dc90('0x3ad')](_0x211051[_0x43dc90('0x11d0')]):_0x211051[_0x43dc90('0x94f')]()});});}}const _0x44465c=_0x5976fa;_0x46efec[_0xb635d2('0xb0c')]=['$scope','$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0xeb0'),'network',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x46efec(_0x380107,_0x583df9,_0x39c0a9,_0x2f370c,_0x109c79,_0x3d99fd,_0x51aab7,_0x3141e5,_0x103689,_0x36c8a5,_0x20b8ce,_0x191c6e,_0x44b041){var _0x498de8=_0xb635d2,_0x32bf36=this;_0x32bf36[_0x498de8('0x15a5')]=_0x20b8ce[_0x498de8('0x1ef8')](),_0x32bf36[_0x498de8('0xcd2')]=[],_0x32bf36[_0x498de8('0x22f1')]=_0x44b041,_0x32bf36['license']=_0x191c6e,_0x32bf36[_0x498de8('0x1ccb')]={},_0x32bf36[_0x498de8('0x25ac')]=_0x32bf36['setting']&&_0x32bf36['setting'][_0x498de8('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32bf36[_0x498de8('0x13e4')]=_0x498de8('0xb07'),_0x32bf36[_0x498de8('0xfb0')]=angular['copy'](_0x103689),_0x32bf36[_0x498de8('0xeb0')]=_0x3141e5,_0x32bf36['newNetwork']=![];!_0x32bf36[_0x498de8('0xfb0')]&&(_0x32bf36['network']={'type':'localnet'},_0x32bf36[_0x498de8('0x13e4')]=_0x498de8('0x1dc9'),_0x32bf36[_0x498de8('0x177d')]=!![]);_0x32bf36['addNewNetwork']=_0x48f6d8,_0x32bf36[_0x498de8('0xc4a')]=_0x47401d,_0x32bf36[_0x498de8('0x1da9')]=_0x2c7e00,_0x32bf36[_0x498de8('0x2635')]=_0xb40306,_0x32bf36[_0x498de8('0x2584')]=_0xc3fba7;function _0x48f6d8(){var _0x101a35=_0x498de8;_0x32bf36[_0x101a35('0xcd2')]=[],_0x36c8a5[_0x101a35('0xfb0')][_0x101a35('0xe5e')](_0x32bf36[_0x101a35('0xfb0')])[_0x101a35('0xe59')][_0x101a35('0xe19')](function(_0x29ea77){var _0x1c1091=_0x101a35;_0x32bf36[_0x1c1091('0xeb0')][_0x1c1091('0x14c9')](_0x29ea77[_0x1c1091('0x250e')]()),_0x51aab7[_0x1c1091('0x425')]({'title':_0x1c1091('0x17dc'),'msg':_0x32bf36[_0x1c1091('0xfb0')]['name']?_0x32bf36[_0x1c1091('0xfb0')]['name']+'\x20has\x20been\x20created!':''}),_0xc3fba7(_0x29ea77);})[_0x101a35('0x223b')](function(_0x55e5e2){var _0x3cb70a=_0x101a35;if(_0x55e5e2['data']&&_0x55e5e2[_0x3cb70a('0x11d0')][_0x3cb70a('0xcd2')]&&_0x55e5e2[_0x3cb70a('0x11d0')][_0x3cb70a('0xcd2')]['length']){_0x32bf36[_0x3cb70a('0xcd2')]=_0x55e5e2[_0x3cb70a('0x11d0')][_0x3cb70a('0xcd2')]||[{'message':_0x55e5e2[_0x3cb70a('0x94f')](),'type':_0x3cb70a('0x211a')}];for(var _0x58a873=0x0;_0x58a873<_0x55e5e2['data'][_0x3cb70a('0xcd2')][_0x3cb70a('0x25ae')];_0x58a873+=0x1){_0x51aab7[_0x3cb70a('0x8c8')]({'title':_0x55e5e2[_0x3cb70a('0x11d0')]['errors'][_0x58a873][_0x3cb70a('0x62e')],'msg':_0x55e5e2['data']['errors'][_0x58a873][_0x3cb70a('0x27e8')]});}}else _0x51aab7[_0x3cb70a('0x8c8')]({'title':_0x55e5e2[_0x3cb70a('0x2833')]?_0x3cb70a('0x27f2')+_0x55e5e2['status']+_0x3cb70a('0x1b7c')+_0x55e5e2[_0x3cb70a('0x1fd7')]:_0x3cb70a('0x211a'),'msg':_0x55e5e2['data']?JSON[_0x3cb70a('0x3ad')](_0x55e5e2[_0x3cb70a('0x11d0')][_0x3cb70a('0x27e8')]):_0x55e5e2['toString']()});});}function _0x47401d(){var _0x19be21=_0x498de8;_0x32bf36[_0x19be21('0xcd2')]=[],_0x36c8a5[_0x19be21('0xfb0')][_0x19be21('0xa70')]({'id':_0x32bf36['network']['id']},_0x32bf36[_0x19be21('0xfb0')])[_0x19be21('0xe59')][_0x19be21('0xe19')](function(_0x3dc12b){var _0x315ba3=_0x19be21,_0x1e6540=_0x32d445()[_0x315ba3('0xf15')](_0x32bf36[_0x315ba3('0xeb0')],{'id':_0x3dc12b['id']});_0x1e6540&&_0x32d445()[_0x315ba3('0x1d8')](_0x1e6540,_0x32d445()[_0x315ba3('0xed5')](_0x3dc12b['toJSON'](),_0x32d445()[_0x315ba3('0x1234')](_0x1e6540))),_0x51aab7[_0x315ba3('0x425')]({'title':_0x315ba3('0x1f2c'),'msg':_0x32bf36[_0x315ba3('0xfb0')][_0x315ba3('0x2623')]?_0x32bf36[_0x315ba3('0xfb0')]['name']+_0x315ba3('0x1c19'):''}),_0xc3fba7(_0x3dc12b);})[_0x19be21('0x223b')](function(_0x44fee1){var _0x2118e8=_0x19be21;if(_0x44fee1['data']&&_0x44fee1[_0x2118e8('0x11d0')][_0x2118e8('0xcd2')]&&_0x44fee1[_0x2118e8('0x11d0')]['errors'][_0x2118e8('0x25ae')]){_0x32bf36[_0x2118e8('0xcd2')]=_0x44fee1[_0x2118e8('0x11d0')]['errors']||[{'message':_0x44fee1[_0x2118e8('0x94f')](),'type':_0x2118e8('0x2239')}];for(var _0x59c303=0x0;_0x59c303<_0x44fee1[_0x2118e8('0x11d0')][_0x2118e8('0xcd2')]['length'];_0x59c303++){_0x51aab7[_0x2118e8('0x8c8')]({'title':_0x44fee1['data'][_0x2118e8('0xcd2')][_0x59c303]['type'],'msg':_0x44fee1[_0x2118e8('0x11d0')][_0x2118e8('0xcd2')][_0x59c303][_0x2118e8('0x27e8')]});}}else _0x51aab7[_0x2118e8('0x8c8')]({'title':_0x44fee1[_0x2118e8('0x2833')]?_0x2118e8('0x27f2')+_0x44fee1[_0x2118e8('0x2833')]+'\x20-\x20'+_0x44fee1[_0x2118e8('0x1fd7')]:_0x2118e8('0x2239'),'msg':_0x44fee1[_0x2118e8('0x11d0')]?JSON[_0x2118e8('0x3ad')](_0x44fee1['data'][_0x2118e8('0x27e8')]):_0x44fee1[_0x2118e8('0x94f')]()});});}function _0x2c7e00(_0x24b486){var _0x2aebfd=_0x498de8;_0x32bf36[_0x2aebfd('0xcd2')]=[];var _0x20d62f=_0x2f370c[_0x2aebfd('0xa5')]()[_0x2aebfd('0x13e4')](_0x2aebfd('0x24d0'))[_0x2aebfd('0xd0')](_0x2aebfd('0x1252'))['ariaLabel'](_0x2aebfd('0x199'))['ok']('Delete')['cancel'](_0x2aebfd('0x8a3'))[_0x2aebfd('0x1345')](_0x24b486);_0x2f370c[_0x2aebfd('0x26b2')](_0x20d62f)[_0x2aebfd('0xe19')](function(){var _0x1eea84=_0x2aebfd;_0x36c8a5[_0x1eea84('0xfb0')][_0x1eea84('0x229e')]({'id':_0x32bf36[_0x1eea84('0xfb0')]['id']})['$promise']['then'](function(){var _0x32a183=_0x1eea84;_0x32d445()['remove'](_0x32bf36[_0x32a183('0xeb0')],{'id':_0x32bf36['network']['id']}),_0x51aab7['success']({'title':'Network\x20properly\x20deleted!','msg':(_0x32bf36[_0x32a183('0xfb0')]['name']||_0x32a183('0xfb0'))+_0x32a183('0x2182')}),_0xc3fba7(_0x32bf36[_0x32a183('0xfb0')]);})['catch'](function(_0x4e6471){var _0x136e57=_0x1eea84;if(_0x4e6471[_0x136e57('0x11d0')]&&_0x4e6471[_0x136e57('0x11d0')][_0x136e57('0xcd2')]&&_0x4e6471['data'][_0x136e57('0xcd2')][_0x136e57('0x25ae')]){_0x32bf36[_0x136e57('0xcd2')]=_0x4e6471['data']['errors']||[{'message':_0x4e6471[_0x136e57('0x94f')](),'type':_0x136e57('0x13e3')}];for(var _0x2114df=0x0;_0x2114df<_0x4e6471[_0x136e57('0x11d0')][_0x136e57('0xcd2')]['length'];_0x2114df++){_0x51aab7[_0x136e57('0x8c8')]({'title':_0x4e6471[_0x136e57('0x11d0')]['errors'][_0x2114df][_0x136e57('0x62e')],'msg':_0x4e6471[_0x136e57('0x11d0')][_0x136e57('0xcd2')][_0x2114df][_0x136e57('0x27e8')]});}}else _0x51aab7[_0x136e57('0x8c8')]({'title':_0x4e6471[_0x136e57('0x2833')]?_0x136e57('0x27f2')+_0x4e6471[_0x136e57('0x2833')]+'\x20-\x20'+_0x4e6471[_0x136e57('0x1fd7')]:_0x136e57('0x13e3'),'msg':_0x4e6471[_0x136e57('0x11d0')]?JSON[_0x136e57('0x3ad')](_0x4e6471['data'][_0x136e57('0x27e8')]):_0x4e6471[_0x136e57('0x27e8')]||_0x4e6471[_0x136e57('0x94f')]()});});},function(){});}function _0xb40306(_0x3124fa){return _0x3124fa===null?undefined:new Date(_0x3124fa);}function _0xc3fba7(_0xa093b5){var _0x52997c=_0x498de8;_0x2f370c[_0x52997c('0x11ed')](_0xa093b5);}}const _0x1e745b=_0x46efec,_0x3c40d5=_0x59426a['p']+_0xb635d2('0x9f4');_0x147bcb[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0xeb0'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x147bcb(_0x11d20d,_0xccb6cb,_0x4853dc,_0x3bc76c,_0x281ff1,_0x467279,_0x3d2898,_0x358ec2,_0x424a91,_0x551b90,_0x33b2b6,_0x31dfc2,_0x496f4a,_0x4c5092,_0x10bd2b){var _0x51df58=_0xb635d2,_0x15e993=this;_0x15e993[_0x51df58('0x5c1')]=_0x4c5092,_0x15e993['setting']=_0x10bd2b,_0x15e993[_0x51df58('0x15a5')]=_0x496f4a['getCurrentUser'](),_0x15e993[_0x51df58('0xeb0')]=_0x424a91||{'count':0x0,'rows':[]},_0x15e993[_0x51df58('0x19b6')]='networks',_0x15e993[_0x51df58('0x14d6')]='',_0x15e993['listOrderAsc']=null,_0x15e993[_0x51df58('0x1e91')]=[],_0x15e993['query']={'fields':_0x51df58('0x1683'),'sort':_0x51df58('0x7e8'),'limit':0xa,'page':0x1},_0x15e993[_0x51df58('0x143e')]=_0x32d445()['keyBy']([{'option':_0x51df58('0x16f6'),'value':_0x51df58('0xdb0')},{'option':'ExternIP','value':_0x51df58('0x12b2')},{'option':'Turn','value':_0x51df58('0x235a')},{'option':'Stun','value':_0x51df58('0x36')}],function(_0x2010cd){var _0x4074d2=_0x51df58;return _0x32d445()[_0x4074d2('0x1b42')](_0x2010cd[_0x4074d2('0x2')],new RegExp('\x27','g'),'');}),_0x15e993[_0x51df58('0x1752')]=_0x383894,_0x15e993['deleteconfirm']=_0x11fada,_0x15e993[_0x51df58('0x425')]=_0x2e7949,_0x15e993['getNetworks']=_0x17da4f,_0x15e993[_0x51df58('0x16fc')]=_0x3a7e81,_0x15e993['deleteNetwork']=_0x5a2f00,_0x15e993[_0x51df58('0x2601')]=_0x2465d2,_0x15e993['deleteSelectedNetworks']=_0xd99121,_0x15e993[_0x51df58('0x16da')]=_0x1c97e3,_0x15e993[_0x51df58('0x22fa')]=_0x1d3f6f;function _0x383894(_0x2bdc2c,_0x3b5f57){var _0x42b9d1=_0x51df58;_0x281ff1[_0x42b9d1('0x26b2')]({'controller':_0x42b9d1('0x11d'),'controllerAs':'vm','templateUrl':_0x3c40d5,'parent':angular[_0x42b9d1('0x24a1')](_0x467279['body']),'targetEvent':_0x3b5f57,'clickOutsideToClose':!![],'locals':{'network':_0x2bdc2c,'networks':_0x15e993[_0x42b9d1('0xeb0')][_0x42b9d1('0x16a7')],'license':_0x15e993[_0x42b9d1('0x5c1')],'setting':null,'crudPermissions':_0x15e993['crudPermissions']}});}function _0x11fada(_0x46b7f5,_0x1753b3){var _0x45067d=_0x51df58,_0x4967ad=_0x281ff1[_0x45067d('0xa5')]()['title'](_0x45067d('0x346')+_0x32d445()[_0x45067d('0x1df2')]('network')+'?')[_0x45067d('0x221c')](_0x45067d('0xab2')+(_0x46b7f5[_0x45067d('0x2623')]||_0x45067d('0xfb0'))+_0x45067d('0x27bb')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20network')[_0x45067d('0x1345')](_0x1753b3)['ok']('OK')[_0x45067d('0x2c1')](_0x45067d('0x17'));_0x281ff1['show'](_0x4967ad)['then'](function(){_0x5a2f00(_0x46b7f5);},function(){var _0x1d11fd=_0x45067d;console['log'](_0x1d11fd('0x17'));});}var _0x4726a9=!![],_0x116182=0x1;_0x11d20d[_0x51df58('0x107')](_0x51df58('0x20cb'),function(_0x9970a5,_0x57a098){var _0x1c0dfd=_0x51df58;_0x4726a9?_0x3d2898(function(){_0x4726a9=![];}):(!_0x57a098&&(_0x116182=_0x15e993[_0x1c0dfd('0xa16')][_0x1c0dfd('0xc08')]),_0x9970a5!==_0x57a098&&(_0x15e993[_0x1c0dfd('0xa16')][_0x1c0dfd('0xc08')]=0x1),!_0x9970a5&&(_0x15e993[_0x1c0dfd('0xa16')]['page']=_0x116182),_0x15e993[_0x1c0dfd('0x1ab8')]());});function _0x2e7949(_0x34a621){var _0x417eb4=_0x51df58;_0x15e993[_0x417eb4('0xeb0')]=_0x34a621||{'count':0x0,'rows':[]};}function _0x17da4f(){var _0x5325ee=_0x51df58;_0x15e993[_0x5325ee('0xa16')]['offset']=(_0x15e993['query'][_0x5325ee('0xc08')]-0x1)*_0x15e993['query'][_0x5325ee('0x1b6d')],_0x496f4a['hasRole']('admin')?_0x15e993[_0x5325ee('0x9c8')]=_0x551b90[_0x5325ee('0xfb0')][_0x5325ee('0x22d5')](_0x15e993[_0x5325ee('0xa16')],_0x2e7949)[_0x5325ee('0xe59')]:(_0x15e993[_0x5325ee('0xa16')]['id']=_0x15e993[_0x5325ee('0x154f')]['id'],_0x15e993[_0x5325ee('0xa16')][_0x5325ee('0x1e59')]=_0x5325ee('0x221b'),_0x15e993['promise']=_0x551b90[_0x5325ee('0x154f')][_0x5325ee('0x14e6')](_0x15e993[_0x5325ee('0xa16')],_0x2e7949)[_0x5325ee('0xe59')]);}function _0x3a7e81(_0xf2c9b1,_0x1234a9){var _0x23b391=_0x51df58;_0x281ff1[_0x23b391('0x26b2')]({'controller':_0x23b391('0x11d'),'controllerAs':'vm','templateUrl':_0x3c40d5,'parent':angular['element'](_0x467279[_0x23b391('0x19b2')]),'targetEvent':_0xf2c9b1,'clickOutsideToClose':!![],'locals':{'network':_0x1234a9,'networks':_0x15e993[_0x23b391('0xeb0')][_0x23b391('0x16a7')],'license':_0x15e993[_0x23b391('0x5c1')],'setting':_0x15e993['setting'],'crudPermissions':_0x15e993['crudPermissions']}});}function _0x5a2f00(_0x4e9247){var _0x40b289=_0x51df58;_0x551b90['network'][_0x40b289('0x229e')]({'id':_0x4e9247['id']})[_0x40b289('0xe59')][_0x40b289('0xe19')](function(){var _0x2c8aef=_0x40b289;_0x32d445()['remove'](_0x15e993['networks']['rows'],{'id':_0x4e9247['id']}),_0x15e993[_0x2c8aef('0xeb0')][_0x2c8aef('0x148b')]-=0x1,!_0x15e993[_0x2c8aef('0xeb0')][_0x2c8aef('0x16a7')][_0x2c8aef('0x25ae')]&&_0x15e993[_0x2c8aef('0x1ab8')](),_0x31dfc2[_0x2c8aef('0x425')]({'title':_0x32d445()['startCase']('Network')+_0x2c8aef('0x1219'),'msg':_0x4e9247[_0x2c8aef('0x2623')]?_0x4e9247[_0x2c8aef('0x2623')]+_0x2c8aef('0x2182'):''});})[_0x40b289('0x223b')](function(_0x13efb1){var _0x8d256e=_0x40b289;if(_0x13efb1[_0x8d256e('0x11d0')]&&_0x13efb1['data']['errors']&&_0x13efb1['data'][_0x8d256e('0xcd2')]['length']){_0x15e993[_0x8d256e('0xcd2')]=_0x13efb1['data']['errors']||[{'message':_0x13efb1[_0x8d256e('0x94f')](),'type':_0x8d256e('0x1a2')}];for(var _0x2ed325=0x0;_0x2ed325<_0x13efb1[_0x8d256e('0x11d0')][_0x8d256e('0xcd2')]['length'];_0x2ed325++){_0x31dfc2[_0x8d256e('0x8c8')]({'title':_0x13efb1[_0x8d256e('0x11d0')][_0x8d256e('0xcd2')][_0x2ed325][_0x8d256e('0x62e')],'msg':_0x13efb1['data'][_0x8d256e('0xcd2')][_0x2ed325][_0x8d256e('0x27e8')]});}}else _0x31dfc2[_0x8d256e('0x8c8')]({'title':_0x13efb1['status']?_0x8d256e('0x27f2')+_0x13efb1['status']+_0x8d256e('0x1b7c')+_0x13efb1[_0x8d256e('0x1fd7')]:_0x8d256e('0x1a2'),'msg':_0x13efb1[_0x8d256e('0x11d0')]?JSON[_0x8d256e('0x3ad')](_0x13efb1[_0x8d256e('0x11d0')]['message']):_0x13efb1[_0x8d256e('0x27e8')]||_0x13efb1[_0x8d256e('0x94f')]()});});}function _0x2465d2(){var _0x1ca6cb=_0x51df58,_0xe33fe1=angular[_0x1ca6cb('0x89')](_0x15e993[_0x1ca6cb('0x1e91')]);return _0x15e993['selectedNetworks']=[],_0xe33fe1;}function _0xd99121(_0x2f652b){var _0x3e0975=_0x51df58,_0x4a5bb5=_0x281ff1[_0x3e0975('0xa5')]()[_0x3e0975('0x13e4')](_0x3e0975('0x2c8'))[_0x3e0975('0x221c')](_0x3e0975('0xab2')+_0x15e993[_0x3e0975('0x1e91')]['length']+_0x3e0975('0x5bc')+_0x3e0975('0x21bd'))[_0x3e0975('0x4d1')](_0x3e0975('0xa58'))[_0x3e0975('0x1345')](_0x2f652b)['ok']('OK')['cancel'](_0x3e0975('0x17'));_0x281ff1[_0x3e0975('0x26b2')](_0x4a5bb5)['then'](function(){var _0x33a378=_0x3e0975;_0x15e993['selectedNetworks'][_0x33a378('0x1d7e')](function(_0x2fd546){_0x5a2f00(_0x2fd546);}),_0x15e993[_0x33a378('0x1e91')]=[];});}function _0x1c97e3(){var _0x41a52b=_0x51df58;_0x15e993[_0x41a52b('0x1e91')]=[];}function _0x1d3f6f(){var _0x507189=_0x51df58;_0x15e993[_0x507189('0x1e91')]=_0x15e993[_0x507189('0xeb0')]['rows'];}}const _0x1d5c8a=_0x147bcb;_0xaf4504[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),'$location','$mdDialog','$q','$translate',_0xb635d2('0xf65'),'smtps',_0xb635d2('0x456'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0xaf4504(_0x510e5d,_0x5e1d1d,_0x551125,_0x2cdcb5,_0x4759fb,_0x11fe50,_0x262621,_0x6f52bb,_0x4ceca1,_0x533390,_0x34eeae,_0x5707b9,_0x573484,_0xf29b){var _0x36a89b=_0xb635d2,_0x474861=this;_0x474861[_0x36a89b('0x15a5')]=_0x34eeae[_0x36a89b('0x1ef8')](),_0x474861[_0x36a89b('0xcd2')]=[],_0x474861[_0x36a89b('0x22f1')]=_0x573484,_0x474861[_0x36a89b('0x5c1')]=_0x5707b9,_0x474861['crudPermissions']=_0xf29b,_0x474861[_0x36a89b('0x1ccb')]={},_0x474861[_0x36a89b('0x25ac')]=_0x474861['setting']&&_0x474861[_0x36a89b('0x22f1')][_0x36a89b('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x474861[_0x36a89b('0x13e4')]='SETTINGS.EDIT_SMTP',_0x474861[_0x36a89b('0x456')]=angular['copy'](_0x4ceca1),_0x474861['smtps']=_0x6f52bb,_0x474861[_0x36a89b('0x424')]=![];!_0x474861['smtp']&&(_0x474861['smtp']={'service':!![]},_0x474861[_0x36a89b('0x13e4')]=_0x36a89b('0x1613'),_0x474861['newSmtp']=!![]);_0x474861['addNewSmtp']=_0x394e9d,_0x474861[_0x36a89b('0x1e6a')]=_0x354e53,_0x474861['deleteSmtp']=_0x1f4a1e,_0x474861[_0x36a89b('0x2635')]=_0xc88d5a,_0x474861['closeDialog']=_0x3692eb;function _0x394e9d(){var _0x7dc9e8=_0x36a89b;_0x474861[_0x7dc9e8('0xcd2')]=[],_0x533390[_0x7dc9e8('0x17f0')]['save'](_0x474861[_0x7dc9e8('0x456')])[_0x7dc9e8('0xe59')][_0x7dc9e8('0xe19')](function(_0x55cff6){var _0x5eddfc=_0x7dc9e8;_0x474861['smtps'][_0x5eddfc('0x14c9')](_0x55cff6[_0x5eddfc('0x250e')]()),_0x262621[_0x5eddfc('0x425')]({'title':'Smtp\x20properly\x20created','msg':_0x474861[_0x5eddfc('0x456')][_0x5eddfc('0x2623')]?_0x474861[_0x5eddfc('0x456')][_0x5eddfc('0x2623')]+_0x5eddfc('0x105f'):''}),_0x3692eb(_0x55cff6);})[_0x7dc9e8('0x223b')](function(_0x588f46){var _0x1e260e=_0x7dc9e8;if(_0x588f46[_0x1e260e('0x11d0')]&&_0x588f46[_0x1e260e('0x11d0')]['errors']&&_0x588f46[_0x1e260e('0x11d0')]['errors'][_0x1e260e('0x25ae')]){_0x474861[_0x1e260e('0xcd2')]=_0x588f46[_0x1e260e('0x11d0')]['errors']||[{'message':_0x588f46['toString'](),'type':'api.mailAccount.save'}];for(var _0x33d843=0x0;_0x33d843<_0x588f46[_0x1e260e('0x11d0')][_0x1e260e('0xcd2')][_0x1e260e('0x25ae')];_0x33d843+=0x1){_0x262621['error']({'title':_0x588f46[_0x1e260e('0x11d0')][_0x1e260e('0xcd2')][_0x33d843][_0x1e260e('0x62e')],'msg':_0x588f46['data']['errors'][_0x33d843][_0x1e260e('0x27e8')]});}}else _0x262621[_0x1e260e('0x8c8')]({'title':_0x588f46[_0x1e260e('0x2833')]?_0x1e260e('0x27f2')+_0x588f46[_0x1e260e('0x2833')]+'\x20-\x20'+_0x588f46['statusText']:_0x1e260e('0x116c'),'msg':_0x588f46['data']?JSON['stringify'](_0x588f46['data']['message']):_0x588f46['toString']()});});}function _0x354e53(){var _0x5e86d5=_0x36a89b;_0x474861[_0x5e86d5('0xcd2')]=[],_0x533390[_0x5e86d5('0x17f0')][_0x5e86d5('0xa70')]({'id':_0x474861[_0x5e86d5('0x456')]['id']},_0x474861[_0x5e86d5('0x456')])[_0x5e86d5('0xe59')][_0x5e86d5('0xe19')](function(_0x5adbde){var _0x45866a=_0x5e86d5,_0x4d98ea=_0x32d445()['find'](_0x474861[_0x45866a('0xaf9')],{'id':_0x5adbde['id']});_0x4d98ea&&_0x32d445()['merge'](_0x4d98ea,_0x32d445()[_0x45866a('0xed5')](_0x5adbde[_0x45866a('0x250e')](),_0x32d445()[_0x45866a('0x1234')](_0x4d98ea))),_0x262621[_0x45866a('0x425')]({'title':_0x45866a('0x287a'),'msg':_0x474861[_0x45866a('0x456')][_0x45866a('0x2623')]?_0x474861[_0x45866a('0x456')]['name']+_0x45866a('0x1c19'):''}),_0x3692eb(_0x5adbde);})['catch'](function(_0x5ec127){var _0x26690f=_0x5e86d5;if(_0x5ec127[_0x26690f('0x11d0')]&&_0x5ec127[_0x26690f('0x11d0')][_0x26690f('0xcd2')]&&_0x5ec127[_0x26690f('0x11d0')]['errors'][_0x26690f('0x25ae')]){_0x474861[_0x26690f('0xcd2')]=_0x5ec127[_0x26690f('0x11d0')][_0x26690f('0xcd2')]||[{'message':_0x5ec127[_0x26690f('0x94f')](),'type':_0x26690f('0x22c1')}];for(var _0x5290f4=0x0;_0x5290f4<_0x5ec127['data'][_0x26690f('0xcd2')][_0x26690f('0x25ae')];_0x5290f4++){_0x262621[_0x26690f('0x8c8')]({'title':_0x5ec127['data'][_0x26690f('0xcd2')][_0x5290f4][_0x26690f('0x62e')],'msg':_0x5ec127[_0x26690f('0x11d0')][_0x26690f('0xcd2')][_0x5290f4][_0x26690f('0x27e8')]});}}else _0x262621['error']({'title':_0x5ec127[_0x26690f('0x2833')]?_0x26690f('0x27f2')+_0x5ec127[_0x26690f('0x2833')]+'\x20-\x20'+_0x5ec127['statusText']:_0x26690f('0x22c1'),'msg':_0x5ec127[_0x26690f('0x11d0')]?JSON[_0x26690f('0x3ad')](_0x5ec127['data'][_0x26690f('0x27e8')]):_0x5ec127['toString']()});});}function _0x1f4a1e(_0xd9d88c){var _0x55977e=_0x36a89b;_0x474861['errors']=[];var _0x379dc3=_0x2cdcb5[_0x55977e('0xa5')]()[_0x55977e('0x13e4')](_0x55977e('0x24d0'))[_0x55977e('0xd0')](_0x55977e('0x1d2a'))[_0x55977e('0x4d1')]('Delete\x20Smtp')['ok'](_0x55977e('0x2198'))[_0x55977e('0x2c1')](_0x55977e('0x8a3'))[_0x55977e('0x1345')](_0xd9d88c);_0x2cdcb5['show'](_0x379dc3)['then'](function(){var _0x1821a4=_0x55977e;_0x533390[_0x1821a4('0x17f0')][_0x1821a4('0x229e')]({'id':_0x474861[_0x1821a4('0x456')]['id']})['$promise']['then'](function(){var _0x2e7719=_0x1821a4;_0x32d445()[_0x2e7719('0xa8b')](_0x474861['smtps'],{'id':_0x474861[_0x2e7719('0x456')]['id']}),_0x262621[_0x2e7719('0x425')]({'title':'Smtp\x20properly\x20deleted!','msg':(_0x474861['smtp'][_0x2e7719('0x2623')]||_0x2e7719('0x456'))+'\x20has\x20been\x20deleted!'}),_0x3692eb(_0x474861[_0x2e7719('0x456')]);})['catch'](function(_0x53b44a){var _0x463b61=_0x1821a4;if(_0x53b44a['data']&&_0x53b44a['data'][_0x463b61('0xcd2')]&&_0x53b44a['data'][_0x463b61('0xcd2')][_0x463b61('0x25ae')]){_0x474861[_0x463b61('0xcd2')]=_0x53b44a[_0x463b61('0x11d0')][_0x463b61('0xcd2')]||[{'message':_0x53b44a[_0x463b61('0x94f')](),'type':_0x463b61('0x1cf0')}];for(var _0x3ffe91=0x0;_0x3ffe91<_0x53b44a['data'][_0x463b61('0xcd2')]['length'];_0x3ffe91++){_0x262621[_0x463b61('0x8c8')]({'title':_0x53b44a[_0x463b61('0x11d0')][_0x463b61('0xcd2')][_0x3ffe91]['type'],'msg':_0x53b44a[_0x463b61('0x11d0')][_0x463b61('0xcd2')][_0x3ffe91]['message']});}}else _0x262621[_0x463b61('0x8c8')]({'title':_0x53b44a[_0x463b61('0x2833')]?_0x463b61('0x27f2')+_0x53b44a[_0x463b61('0x2833')]+_0x463b61('0x1b7c')+_0x53b44a[_0x463b61('0x1fd7')]:'api.mailAccount.delete','msg':_0x53b44a[_0x463b61('0x11d0')]?JSON[_0x463b61('0x3ad')](_0x53b44a['data'][_0x463b61('0x27e8')]):_0x53b44a['message']||_0x53b44a[_0x463b61('0x94f')]()});});},function(){});}function _0xc88d5a(_0x534d37){return _0x534d37===null?undefined:new Date(_0x534d37);}function _0x3692eb(_0x168f2b){var _0x22e053=_0x36a89b;_0x2cdcb5[_0x22e053('0x11ed')](_0x168f2b);}}const _0x18d1b9=_0xaf4504;_0x41fa82[_0xb635d2('0xb0c')]=[_0xb635d2('0xaf9'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x5c1'),_0xb635d2('0x2730')];function _0x41fa82(_0x369335,_0x4771b2,_0x20fae4,_0x2480a2,_0x4a1cc0){var _0x91afb=_0xb635d2,_0x80cc72=this;_0x80cc72[_0x91afb('0x15a5')]=_0x4a1cc0['getCurrentUser'](),_0x80cc72[_0x91afb('0x5c1')]=_0x2480a2,_0x80cc72[_0x91afb('0xaf9')]=_0x369335,_0x80cc72[_0x91afb('0x456')]={};_0x80cc72['smtps']&&_0x80cc72[_0x91afb('0xaf9')][_0x91afb('0x16a7')]&&_0x80cc72['smtps'][_0x91afb('0x16a7')][_0x91afb('0x25ae')]?_0x80cc72[_0x91afb('0x456')]=_0x80cc72[_0x91afb('0xaf9')][_0x91afb('0x16a7')][0x0]:_0x80cc72['smtp']={'service':!![],'Smtp':{'service':null}};_0x80cc72[_0x91afb('0x1e6a')]=_0xaf63d5,_0x80cc72['verifySmtp']=_0x395f82;function _0x395f82(){var _0x152e03=_0x91afb;_0x80cc72[_0x152e03('0x456')]['id']&&_0x4771b2[_0x152e03('0x17f0')][_0x152e03('0x1cb1')]({'id':_0x80cc72[_0x152e03('0x456')]['id']})[_0x152e03('0xe59')]['then'](function(){var _0x21f914=_0x152e03;_0x20fae4[_0x21f914('0x425')]({'title':_0x21f914('0x2642'),'msg':_0x80cc72[_0x21f914('0x456')][_0x21f914('0x2623')]?_0x80cc72['smtp'][_0x21f914('0x2623')]+'\x20has\x20been\x20verified!':''});})['catch'](function(_0x342af2){var _0x3e4921=_0x152e03;_0x20fae4[_0x3e4921('0x8c8')]({'title':_0x3e4921('0x230f'),'msg':_0x342af2[_0x3e4921('0x11d0')]?JSON[_0x3e4921('0x3ad')](_0x342af2[_0x3e4921('0x11d0')]):_0x342af2[_0x3e4921('0x94f')](),'timeout':0x2710});});}function _0xaf63d5(){var _0x4e1218=_0x91afb;_0x80cc72['smtp']['id']?_0x4771b2[_0x4e1218('0x17f0')]['update']({'id':_0x80cc72['smtp']['id']},_0x80cc72['smtp'])[_0x4e1218('0xe59')][_0x4e1218('0xe19')](function(){var _0x2a61d5=_0x4e1218;_0x20fae4[_0x2a61d5('0x425')]({'title':'Smtp\x20updated!','msg':_0x80cc72['smtp']['name']?_0x80cc72['smtp'][_0x2a61d5('0x2623')]+_0x2a61d5('0x283b'):''});})[_0x4e1218('0x223b')](function(_0x15482f){var _0x23aff5=_0x4e1218;_0x20fae4[_0x23aff5('0x8c8')]({'title':_0x15482f[_0x23aff5('0x2833')]?_0x23aff5('0x27f2')+_0x15482f[_0x23aff5('0x2833')]+_0x23aff5('0x1b7c')+_0x15482f[_0x23aff5('0x1fd7')]:_0x23aff5('0x20e9'),'msg':_0x15482f[_0x23aff5('0x11d0')]?JSON['stringify'](_0x15482f[_0x23aff5('0x11d0')]):_0x15482f[_0x23aff5('0x94f')]()});}):_0x4771b2['mailAccount']['save'](_0x80cc72[_0x4e1218('0x456')])['$promise'][_0x4e1218('0xe19')](function(_0x1d9c86){var _0x17da3d=_0x4e1218;_0x32d445()['merge'](_0x80cc72[_0x17da3d('0x456')],_0x1d9c86),_0x20fae4['success']({'title':'Smtp\x20updated!','msg':_0x80cc72[_0x17da3d('0x456')][_0x17da3d('0x2623')]?_0x80cc72[_0x17da3d('0x456')][_0x17da3d('0x2623')]+'\x20has\x20been\x20updated!':''});})[_0x4e1218('0x223b')](function(_0xbbef8){var _0x4c1beb=_0x4e1218;_0x20fae4[_0x4c1beb('0x8c8')]({'title':_0xbbef8['status']?'API:'+_0xbbef8[_0x4c1beb('0x2833')]+_0x4c1beb('0x1b7c')+_0xbbef8[_0x4c1beb('0x1fd7')]:_0x4c1beb('0x20e9'),'msg':_0xbbef8['data']?JSON['stringify'](_0xbbef8['data']):_0xbbef8['toString']()});});}}const _0x59d3c6=_0x41fa82;_0x52bf28[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x52bf28(_0xe502c5,_0x25276d){var _0x3a5027=_0xb635d2;_0xe502c5[_0x3a5027('0x1d72')](_0x3a5027('0xcc8'),{'abstract':!![],'url':_0x3a5027('0x1e8a')})[_0x3a5027('0x1d72')](_0x3a5027('0x35e'),{'url':_0x3a5027('0x1c4a'),'views':{'content@app':{'templateUrl':_0x521383,'controller':_0x3a5027('0x227')}},'resolve':{'generals':[_0x3a5027('0x292'),function _0x49bafa(_0x504eb1){var _0x4b5e5b=_0x3a5027;return _0x504eb1[_0x4b5e5b('0xcd6')]('setting@get',{'fields':_0x4b5e5b('0x1705'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'})[_0x3a5027('0x1d72')](_0x3a5027('0x14ee'),{'url':'/smtps','views':{'content@app':{'templateUrl':_0x33e2ce,'controller':_0x3a5027('0x1c22')}},'resolve':{'smtps':[_0x3a5027('0x292'),function _0x3eade6(_0x2bde21){var _0x135547=_0x3a5027;return _0x2bde21[_0x135547('0xcd6')]('mailAccount@get',{'fields':'createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description','service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3a5027('0x33f')})[_0x3a5027('0x1d72')]('app.settings.networks',{'url':_0x3a5027('0x279d'),'views':{'content@app':{'templateUrl':_0x55e6c1,'controller':'NetworksController\x20as\x20vm'}},'resolve':{'networks':['apiResolver',function _0x38b162(_0x57008f){var _0x5d011f=_0x3a5027;return _0x57008f[_0x5d011f('0xcd6')](_0x5d011f('0x121'),{'fields':_0x5d011f('0x1683'),'sort':_0x5d011f('0x7e8'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3a5027('0x33f')})[_0x3a5027('0x1d72')]('app.settings.customizations',{'url':'/customizations','views':{'content@app':{'templateUrl':_0x59c652,'controller':_0x3a5027('0x21be')}},'resolve':{'customizations':['apiResolver',function _0x5d0771(_0x397e80){var _0x91aed2=_0x3a5027;return _0x397e80[_0x91aed2('0xcd6')](_0x91aed2('0x29c'),{'fields':'createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3a5027('0x33f')})[_0x3a5027('0x1d72')](_0x3a5027('0x1c4f'),{'url':'/cloudProviders','views':{'content@app':{'templateUrl':_0xd0889d,'controller':_0x3a5027('0x1ae1')}},'resolve':{'cloudProviders':[_0x3a5027('0x292'),function _0x5e8ec0(_0x3d9222){var _0x1c04e=_0x3a5027;return _0x3d9222[_0x1c04e('0xcd6')](_0x1c04e('0x140c'),{'fields':_0x1c04e('0x24'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3a5027('0x33f')}),_0x25276d[_0x3a5027('0xfe3')]('app/main/apps/settings');}angular[_0xb635d2('0x153f')]('app.settings',['ngCsv',_0xb635d2('0x24b'),'md.data.table','flow',_0xb635d2('0xd8b'),_0xb635d2('0x1727'),_0xb635d2('0x1951'),'ngAria',_0xb635d2('0x1c2a'),_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),'mwFormViewer','mwFormUtils',_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),'angularMaterialFormBuilder','material.components.expansionPanels','chart.js','angular.filter','app.settings.updates',_0xb635d2('0x92d'),_0xb635d2('0x138f')])[_0xb635d2('0x1990')](_0x52bf28)[_0xb635d2('0x1a79')](_0xb635d2('0x2372'),_0x41d76f)['controller'](_0xb635d2('0x98b'),_0x267837)[_0xb635d2('0x1a79')]('CreateOrEditCustomizationDialogController',_0x42e7aa)[_0xb635d2('0x1a79')](_0xb635d2('0xbd'),_0x122581)[_0xb635d2('0x1a79')](_0xb635d2('0x19fa'),_0x5564a8)[_0xb635d2('0x1a79')](_0xb635d2('0x1a08'),_0x37be73)[_0xb635d2('0x1a79')](_0xb635d2('0x2ff'),_0x110f3d)[_0xb635d2('0x1a79')]('CustomizationpreferredController',_0x3f7ba7)[_0xb635d2('0x1a79')](_0xb635d2('0x2143'),_0x52ba14)['controller']('GeneralsController',_0x44465c)[_0xb635d2('0x1a79')](_0xb635d2('0x11d'),_0x1e745b)[_0xb635d2('0x1a79')](_0xb635d2('0x1313'),_0x1d5c8a)[_0xb635d2('0x1a79')](_0xb635d2('0x2332'),_0x18d1b9)['controller'](_0xb635d2('0x289'),_0x59d3c6);const _0x44ddd6=_0x59426a['p']+_0xb635d2('0x11de'),_0x387be9=_0x59426a['p']+_0xb635d2('0x18c'),_0x2a3aaf=_0x59426a['p']+'src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html/view-[chunkhash].html',_0x5d65b4=_0x59426a['p']+_0xb635d2('0x150d'),_0x365b5c=_0x59426a['p']+_0xb635d2('0x55c'),_0x5e6bc2=_0x59426a['p']+_0xb635d2('0xed4'),_0x2e2f58=_0x59426a['p']+_0xb635d2('0x1824'),_0x3427ee=_0x59426a['p']+_0xb635d2('0x1db5');_0x2de5da[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$timeout','$mdDialog',_0xb635d2('0x1728'),'$window','$translate',_0xb635d2('0xffc'),_0xb635d2('0x154f'),'userProfileSection','Auth',_0xb635d2('0x46d'),_0xb635d2('0xf65'),'agents','dispositions'];function _0x2de5da(_0xe6e142,_0x12d973,_0x43fff4,_0x3b0443,_0x5035f5,_0x1445fb,_0x1dd004,_0x574317,_0x47f565,_0x1530e8,_0x5e17af,_0x39a25b,_0x301710,_0x5cbbc2){var _0x2922a0=_0xb635d2,_0x499000=this;_0x499000[_0x2922a0('0x15a5')]=_0x1530e8['getCurrentUser'](),_0x499000[_0x2922a0('0x29b')]=_0x301710?_0x301710:[],_0x499000['dispositions']=_0x5cbbc2,_0x499000[_0x2922a0('0x1b69')]={'count':0x0,'rows':[]},_0x499000[_0x2922a0('0x231f')]=![],_0x499000[_0x2922a0('0x23bd')]=!![],_0x499000['userProfile']=_0x574317,_0x499000[_0x2922a0('0xb59')]=_0x47f565&&_0x47f565[_0x2922a0('0x148b')]==0x1?_0x47f565['rows'][0x0]:null,_0x499000['crudPermissions']=_0x1530e8[_0x2922a0('0xd31')](_0x499000[_0x2922a0('0xb59')]?_0x499000[_0x2922a0('0xb59')][_0x2922a0('0xb3d')]:null),_0x499000['query']={'fields':'id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','type':'outbound','queuecallerexitreason':'TIMEOUT'+','+'ABANDONED','sort':'-updatedAt','limit':0xa,'page':0x1},_0x499000[_0x2922a0('0x26f5')]=_0x166f43,_0x499000['refreshAbandonedCalls']=_0x224457,_0x499000['assignTo']=_0x3db847,_0x499000[_0x2922a0('0xd1b')]=_0x3fa7a2,_0x499000[_0x2922a0('0x235')]=_0x386bfd,_0x499000[_0x2922a0('0x18b4')]=_0x2c0450,_0x5e17af[_0x2922a0('0x4df')](_0x2922a0('0x24e2'),_0x499000[_0x2922a0('0x235')]),_0x5e17af['on'](_0x2922a0('0x18ad'),_0x499000[_0x2922a0('0x18b4')]),_0x43c0fd();function _0x43c0fd(){var _0x36365d=_0x2922a0,_0x2b77e1=_0x5035f5[_0x36365d('0x4f9')]['getItem'](_0x36365d('0x2843')+_0x499000['currentUser']['id']);if(_0x2b77e1)_0x2b77e1=JSON[_0x36365d('0x118e')](_0x2b77e1),_0x2b77e1&&_0x2b77e1[_0x36365d('0xa16')]&&(_0x499000[_0x36365d('0xa16')]=_0x32d445()[_0x36365d('0x1d8')](_0x2b77e1[_0x36365d('0xa16')],_0x32d445()['omit'](_0x499000[_0x36365d('0xa16')],[_0x36365d('0x9f6'),_0x36365d('0x1b6d'),'page'])),_0x499000[_0x36365d('0xa16')]=_0x32d445()[_0x36365d('0x23e3')](_0x499000[_0x36365d('0xa16')],_0x36365d('0x2891')));else{var _0x52ecb8={'$gte':_0x4ddcaa()()[_0x36365d('0x21b1')](_0x36365d('0x211c'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x4ddcaa()()['endOf']('month')[_0x36365d('0x1e9e')](0x0,!![])[_0x36365d('0x5e5')]()};_0x499000[_0x36365d('0xa16')][_0x36365d('0x15c9')]=_0x52ecb8;}_0x1530e8['hasRole']('admin')?_0x1dd004[_0x36365d('0x10c6')][_0x36365d('0x23cf')]({'id':_0x1530e8[_0x36365d('0x1ef8')]()['id'],'fields':_0x36365d('0x104'),'channel':'voice','type':_0x36365d('0x1fdf'),'nolimit':!![]})[_0x36365d('0xe59')][_0x36365d('0xe19')](function(_0x42ec45){var _0x27f41d=_0x36365d;_0x499000[_0x27f41d('0x671')]=_0x42ec45||{'count':0x0,'rows':[]},_0x499000[_0x27f41d('0x46b')]=_0x32d445()['mapValues'](_0x32d445()[_0x27f41d('0x226f')](_0x499000[_0x27f41d('0x671')][_0x27f41d('0x16a7')],_0x27f41d('0x2623')),_0x27f41d('0x2623'));})[_0x36365d('0x223b')](function(_0x3cdc14){var _0x149f29=_0x36365d;console[_0x149f29('0x8c8')](_0x3cdc14);})['finally'](function(){var _0x1b8877=_0x36365d;_0x499000[_0x1b8877('0x1fd3')]=_0x26de22(),_0x499000[_0x1b8877('0x26f5')]();}):_0x1dd004['userProfile'][_0x36365d('0x14e6')]({'id':_0x499000[_0x36365d('0x15a5')]['userProfileId'],'section':_0x36365d('0x1a2a'),'channel':'voice','type':_0x36365d('0x1fdf'),'sort':_0x36365d('0x7e8'),'nolimit':!![]})[_0x36365d('0xe59')][_0x36365d('0xe19')](function(_0x53b23c){var _0x4c0fa2=_0x36365d;_0x499000['queues']=_0x53b23c||{'count':0x0,'rows':[]},_0x499000[_0x4c0fa2('0x46b')]=_0x32d445()[_0x4c0fa2('0x2483')](_0x32d445()[_0x4c0fa2('0x226f')](_0x499000[_0x4c0fa2('0x671')][_0x4c0fa2('0x16a7')],_0x4c0fa2('0x2623')),'name');})['catch'](function(_0x4b6b07){var _0x1f25ce=_0x36365d;console[_0x1f25ce('0x8c8')](_0x4b6b07);})[_0x36365d('0x23')](function(){var _0x4bc5cb=_0x36365d;_0x499000['quickFilters']=_0x26de22(),_0x499000[_0x4bc5cb('0x26f5')]();});}function _0x26de22(){var _0x16475c=_0x2922a0;return[{'name':_0x16475c('0x141d'),'key':_0x16475c('0x15c9'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x16475c('0x142e'),'key':_0x16475c('0x278c'),'type':'select','label':_0x16475c('0x120c'),'options':_0x499000[_0x16475c('0x29b')][_0x16475c('0x16a7')],'customOptions':[{'value':_0x16475c('0x31a'),'translate':_0x16475c('0x2094')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x16475c('0x26f9'),'key':_0x16475c('0x26a8'),'type':'multiselect','label':_0x16475c('0x2541'),'options':_0x499000[_0x16475c('0x671')][_0x16475c('0x16a7')]}];}function _0x166f43(){var _0x493d9e=_0x2922a0;_0x499000[_0x493d9e('0x23bd')]=![],_0x499000[_0x493d9e('0x671')]['count']>0x0?(_0x499000[_0x493d9e('0xa16')][_0x493d9e('0x26a8')]=_0x499000['queues'][_0x493d9e('0x148b')]===0x1?_0x499000[_0x493d9e('0x671')]['rows'][0x0]['name']:_0x499000[_0x493d9e('0xa16')][_0x493d9e('0x26a8')],_0x499000[_0x493d9e('0xa16')]['offset']=(_0x499000[_0x493d9e('0xa16')][_0x493d9e('0xc08')]-0x1)*_0x499000[_0x493d9e('0xa16')][_0x493d9e('0x1b6d')],_0x5035f5[_0x493d9e('0x4f9')][_0x493d9e('0x95e')](_0x493d9e('0x2843')+_0x499000['currentUser']['id'],JSON[_0x493d9e('0x3ad')]({'query':_0x32d445()['omit'](_0x499000[_0x493d9e('0xa16')],'queue')})),_0x499000[_0x493d9e('0x9c8')]=_0x1dd004[_0x493d9e('0xba')][_0x493d9e('0x3d0')](_0x499000[_0x493d9e('0xa16')],_0x48fe05)[_0x493d9e('0xe59')]):_0x48fe05(null);}function _0x48fe05(_0x388866){var _0x2cde34=_0x2922a0;_0x499000[_0x2cde34('0x1b69')]=_0x388866||{'count':0x0,'rows':[]},_0x499000[_0x2cde34('0x23bd')]=!![];}function _0x224457(){var _0x2e06b0=_0x2922a0;_0x499000['showTooltip']=![],_0x499000[_0x2e06b0('0x26f5')]();}function _0x386bfd(_0x35dea6){var _0x4dc05c=_0x2922a0,_0x290cb5=_0x4dc05c('0x1fdf');_0x35dea6&&_0x499000['queuesMap']&&_0x35dea6[_0x4dc05c('0x26a8')][_0x4dc05c('0x62e')]===_0x290cb5&&_0x499000['queuesMap'][_0x35dea6[_0x4dc05c('0x26a8')]]&&(_0x499000[_0x4dc05c('0x231f')]=!![]);}function _0x2c0450(_0x56609d){var _0x5c3c0f=_0x2922a0;if(_0x56609d){var _0x4248f9=_0x32d445()[_0x5c3c0f('0x8d3')](_0x499000['abandonedCalls'][_0x5c3c0f('0x16a7')],['id',_0x56609d['id']]);_0x4248f9>=0x0&&_0x32d445()['merge'](_0x499000[_0x5c3c0f('0x1b69')][_0x5c3c0f('0x16a7')][_0x4248f9],_0x56609d);}}function _0x3db847(_0x23ed4c,_0x2ca876){var _0x241d79=_0x2922a0;_0x23ed4c&&_0x1dd004[_0x241d79('0xba')][_0x241d79('0xa70')]({'id':_0x23ed4c['id'],'lastAssignedTo':_0x2ca876?_0x2ca876['name']:null,'assigned':_0x2ca876?!![]:![]})[_0x241d79('0xe59')]['catch'](function(_0xa93c45){var _0x24de9a=_0x241d79;console[_0x24de9a('0x1fe9')](_0xa93c45);});}function _0x3fa7a2(_0x5a38b0){var _0x3aa7b7=_0x2922a0;_0x43fff4[_0x3aa7b7('0x26b2')]({'controller':_0x3aa7b7('0x26da'),'controllerAs':'vm','templateUrl':_0x3427ee,'parent':angular['element'](_0x3b0443[_0x3aa7b7('0x19b2')]),'targetEvent':_0x5a38b0,'resolve':{'globalDispositions':[_0x3aa7b7('0x292'),function _0xc61b6e(_0xd6a2ea){var _0x128381=_0x3aa7b7;return _0xd6a2ea[_0x128381('0xcd6')](_0x128381('0xb91'),{'MailAccountId':_0x128381('0x1046'),'FaxAccountId':_0x128381('0x1046'),'SmsAccountId':_0x128381('0x1046'),'WhatsappAccountId':_0x128381('0x1046'),'OpenchannelAccountId':_0x128381('0x1046'),'ChatWebsiteId':_0x128381('0x1046'),'ListId':_0x128381('0x1046')});}]},'locals':{'dispositions':_0x499000[_0x3aa7b7('0x24eb')],'call':_0x5a38b0}})['then'](function(_0x3fca53){var _0x2afccf=_0x3aa7b7;if(_0x3fca53){var _0x2678f4={'id':_0x5a38b0['id'],'disposition':_0x3fca53[_0x2afccf('0x11f')]||null,'secondDisposition':_0x3fca53[_0x2afccf('0x14a6')]||null,'thirdDisposition':_0x3fca53[_0x2afccf('0x1066')]||null};_0x1dd004[_0x2afccf('0xba')][_0x2afccf('0xa70')](_0x2678f4)[_0x2afccf('0xe59')][_0x2afccf('0x223b')](function(_0x5c109c){var _0x4a5900=_0x2afccf;console[_0x4a5900('0x1fe9')](_0x5c109c);});}});}var _0x1fa8c4=!![],_0x2827c7=0x1;_0xe6e142[_0x2922a0('0x107')](_0x2922a0('0x20cb'),function(_0x9426c2,_0xb8389e){var _0x46e63a=_0x2922a0;_0x1fa8c4?_0x12d973(function(){_0x1fa8c4=![];}):(!_0xb8389e&&(_0x2827c7=_0x499000['query'][_0x46e63a('0xc08')]),_0x9426c2!==_0xb8389e&&(_0x499000[_0x46e63a('0xa16')][_0x46e63a('0xc08')]=0x1),!_0x9426c2&&(_0x499000['query'][_0x46e63a('0xc08')]=_0x2827c7),_0x499000[_0x46e63a('0x26f5')]());}),_0xe6e142[_0x2922a0('0xb2b')](_0x2922a0('0x5cd'),function(){var _0x69277e=_0x2922a0;_0x5e17af[_0x69277e('0x2121')](_0x69277e('0x24e2')),_0x5e17af[_0x69277e('0x2121')](_0x69277e('0x18ad'));});}const _0x745b3c=_0x2de5da;_0xe1c34a[_0xb635d2('0xb0c')]=['$scope','$q','$timeout',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xfe0'),_0xb635d2('0x145e'),_0xb635d2('0x29b'),'rpcAgents',_0xb635d2('0xffc'),_0xb635d2('0x46d'),'toasty',_0xb635d2('0x20d'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730'),'license',_0xb635d2('0x1c1a')];function _0xe1c34a(_0x5c9b32,_0x3aef64,_0x285fd9,_0x1c8ece,_0x2aa959,_0x27f35f,_0x42f1b0,_0x59658b,_0x219a10,_0x3e1c1f,_0x37233d,_0x556f0d,_0x2c7fe1,_0x41230f,_0x2ffd4d,_0x1dcd17,_0x184327,_0x570946){var _0x4ecc5b=_0xb635d2,_0x868aea=this,_0x371ef6=[_0x4ecc5b('0x8b3'),_0x4ecc5b('0xb46'),'lastLoginAt',_0x4ecc5b('0x823'),_0x4ecc5b('0x103'),_0x4ecc5b('0x823'),_0x4ecc5b('0x1b66'),_0x4ecc5b('0xe1f'),_0x4ecc5b('0x1b15'),_0x4ecc5b('0xf2a'),_0x4ecc5b('0x2531'),_0x4ecc5b('0x24f1'),_0x4ecc5b('0x14fb'),_0x4ecc5b('0x2299'),_0x4ecc5b('0x1b8d'),_0x4ecc5b('0x201b'),'openchannelCapacity',_0x4ecc5b('0xc97'),_0x4ecc5b('0x1288'),_0x4ecc5b('0x15f0'),_0x4ecc5b('0x15ee'),_0x4ecc5b('0x1fa2'),'openchannelCurrentCapacity','mailCurrentCapacity',_0x4ecc5b('0x1f27'),'whatsappCurrentCapacity',_0x4ecc5b('0x1c17'),_0x4ecc5b('0x21f1'),_0x4ecc5b('0x1ec9'),_0x4ecc5b('0x44e'),_0x4ecc5b('0x1d59'),'whatsappStatus',_0x4ecc5b('0x1c30'),'voiceStatus',_0x4ecc5b('0x583'),'openchannelStatusTime','mailStatusTime',_0x4ecc5b('0x1c51'),_0x4ecc5b('0xda4'),_0x4ecc5b('0xaa3'),_0x4ecc5b('0x2469'),_0x4ecc5b('0x26a8'),_0x4ecc5b('0x149e'),'screenrecording',_0x4ecc5b('0x1df6'),_0x4ecc5b('0x12d')],_0x75955b=['chatPause',_0x4ecc5b('0xf2a'),_0x4ecc5b('0x2531'),_0x4ecc5b('0x24f1'),_0x4ecc5b('0x14fb'),_0x4ecc5b('0x2299'),_0x4ecc5b('0x1b8d'),_0x4ecc5b('0xb46')];_0x868aea[_0x4ecc5b('0x15a5')]=_0x1dcd17[_0x4ecc5b('0x1ef8')](),_0x868aea[_0x4ecc5b('0x2254')]=['ringing',_0x4ecc5b('0x788'),_0x4ecc5b('0x1934'),_0x4ecc5b('0x289d'),'not_inuse'],_0x868aea[_0x4ecc5b('0x145e')]=_0x42f1b0||{'count':0x0,'rows':[]},_0x868aea['license']=_0x184327,_0x868aea[_0x4ecc5b('0x154f')]=_0x41230f,_0x868aea[_0x4ecc5b('0xb59')]=_0x2ffd4d&&_0x2ffd4d[_0x4ecc5b('0x148b')]==0x1?_0x2ffd4d[_0x4ecc5b('0x16a7')][0x0]:null,_0x868aea['crudPermissions']=_0x1dcd17['parseCrudPermissions'](_0x868aea[_0x4ecc5b('0xb59')]?_0x868aea[_0x4ecc5b('0xb59')][_0x4ecc5b('0xb3d')]:null),_0x868aea['agents']=_0x59658b?_0x32d445()[_0x4ecc5b('0x226f')](_0x59658b[_0x4ecc5b('0x16a7')]?_0x59658b[_0x4ecc5b('0x16a7')]:[],'id'):{},_0x868aea[_0x4ecc5b('0x7')]=_0x219a10?_0x32d445()[_0x4ecc5b('0x226f')](_0x219a10['rows']?_0x219a10['rows']:[],'id'):{},_0x868aea[_0x4ecc5b('0xc68')]={},_0x868aea[_0x4ecc5b('0xcfe')]=![],_0x868aea['order']=[],_0x868aea['agentInternal']={};for(var _0x37b6c8 in _0x868aea[_0x4ecc5b('0x29b')]){typeof _0x868aea[_0x4ecc5b('0x29b')][_0x37b6c8]!==_0x4ecc5b('0x1143')&&(_0x868aea[_0x4ecc5b('0x29b')][_0x37b6c8][_0x4ecc5b('0x15f9')]=!![]);}_0x868aea['query']={'limit':0xa,'page':0x1,'order':_0x4ecc5b('0xe11'),'globalStatusFilter':'','pauseTypeFilter':''},_0x868aea[_0x4ecc5b('0xe4e')]=_0x23c247,_0x868aea[_0x4ecc5b('0x16d4')]=_0x235459,_0x868aea[_0x4ecc5b('0x1c98')]=_0x253fc3,_0x868aea[_0x4ecc5b('0x560')]=_0x588223,_0x868aea[_0x4ecc5b('0x80b')]=_0x107e37,_0x868aea[_0x4ecc5b('0xca0')]=_0x2e12c6,_0x868aea['getAgentGlobalStatus']=_0x2434e1,_0x868aea[_0x4ecc5b('0x361')]=_0x563edd,_0x868aea[_0x4ecc5b('0x1803')]=_0x581436,_0x868aea[_0x4ecc5b('0x2052')]=_0x6fd513,_0x868aea[_0x4ecc5b('0x284a')]=_0x4af684,_0x868aea['onUpdate']=_0x4e4dfa,_0x868aea[_0x4ecc5b('0x888')]=_0x38e682,_0x868aea[_0x4ecc5b('0x266f')]=_0x194fb8,_0x868aea[_0x4ecc5b('0x1831')]=_0x12d7fa,_0x868aea[_0x4ecc5b('0x166f')]=_0x5d58f5,_0x37233d['on']('user:save',_0x868aea[_0x4ecc5b('0x284a')]),_0x37233d['on']('user:update',_0x868aea['onUpdate']),_0x37233d['on'](_0x4ecc5b('0x1002'),_0x868aea[_0x4ecc5b('0x266f')]),_0x37233d['on']('user:agentcomplete',_0x868aea['onComplete']),_0x38e682();var _0x2d3f5a=_0x570946(function(){var _0x4f7388=_0x4ecc5b;_0x868aea[_0x4f7388('0xcfe')]&&(_0x868aea[_0x4f7388('0xcfe')]=![],_0x38e682());},0x3e7);function _0x38e682(){var _0x2ab05d=_0x4ecc5b;_0x868aea[_0x2ab05d('0xcfe')]=![];var _0x2cfa8c=_0x3aef64[_0x2ab05d('0x178')]();_0x868aea[_0x2ab05d('0x9c8')]=_0x2cfa8c[_0x2ab05d('0x9c8')],_0x868aea['filteredAgents']=[],_0x868aea[_0x2ab05d('0x1b03')]=[],_0x32d445()[_0x2ab05d('0xd1e')](_0x868aea[_0x2ab05d('0x29b')],function(_0x3d156e,_0x47eedf){var _0x14e0f0=_0x2ab05d;_0x868aea[_0x14e0f0('0x7')][_0x47eedf]&&_0x32d445()[_0x14e0f0('0x1d8')](_0x3d156e,_0x32d445()[_0x14e0f0('0xed5')](_0x32d445()[_0x14e0f0('0x23e3')](_0x868aea['rpcAgents'][_0x47eedf],_0x75955b),_0x371ef6)),_0x2434e1(_0x3d156e),_0x3d156e[_0x14e0f0('0xb46')]?(_0x868aea['filteredAgents'][_0x14e0f0('0xb76')](_0x3d156e),_0x868aea[_0x14e0f0('0x7ff')][_0x3d156e[_0x14e0f0('0x1b66')]]=_0x47eedf):_0x3d156e[_0x14e0f0('0x16ed')]=_0x32d445()[_0x14e0f0('0xcd3')](_0x4ddcaa()()['format']('x'));});_0x868aea[_0x2ab05d('0xa16')][_0x2ab05d('0xb02')]&&_0x32d445()[_0x2ab05d('0xa8b')](_0x868aea[_0x2ab05d('0x16a4')],function(_0x28da18){var _0x148517=_0x2ab05d;return _0x28da18[_0x148517('0x25b1')]!==_0x868aea[_0x148517('0xa16')][_0x148517('0xb02')];});_0x868aea[_0x2ab05d('0xa16')][_0x2ab05d('0x24fc')]&&_0x32d445()[_0x2ab05d('0xa8b')](_0x868aea['filteredAgents'],function(_0x4e7ff1){var _0x31b153=_0x2ab05d;return _0x4e7ff1[_0x31b153('0x103')]!==_0x868aea[_0x31b153('0xa16')]['pauseTypeFilter'];});_0x868aea[_0x2ab05d('0xa16')][_0x2ab05d('0x2891')]&&_0x32d445()[_0x2ab05d('0xa8b')](_0x868aea[_0x2ab05d('0x16a4')],function(_0x5375c8){var _0x802463=_0x2ab05d;return _0x5375c8['fullname'][_0x802463('0x20dd')]()[_0x802463('0x281c')](_0x868aea[_0x802463('0xa16')]['filter'][_0x802463('0x20dd')]())<0x0;});_0x868aea[_0x2ab05d('0x16a4')]=_0x3a9eea(_0x868aea[_0x2ab05d('0x16a4')]);var _0x455582=(_0x868aea['query'][_0x2ab05d('0xc08')]-0x1)*_0x868aea[_0x2ab05d('0xa16')]['limit'];_0x868aea[_0x2ab05d('0xc68')]=_0x32d445()[_0x2ab05d('0x4a0')](_0x868aea['filteredAgents'],_0x455582)[_0x2ab05d('0xa19')](0x0,_0x868aea[_0x2ab05d('0xa16')][_0x2ab05d('0x1b6d')]);for(var _0x1b0b49=0x0;_0x1b0b49<_0x868aea[_0x2ab05d('0xc68')]['length'];_0x1b0b49+=0x1){_0x868aea['order'][_0x2ab05d('0xb76')](_0x868aea['paginatedAgents'][_0x1b0b49]['id']);}_0x2cfa8c[_0x2ab05d('0xcd6')](),_0x868aea[_0x2ab05d('0xcfe')]=!![];}function _0x4af684(_0x3ca536){var _0x36be97=_0x4ecc5b;_0x868aea[_0x36be97('0x29b')][_0x3ca536['id']]&&(_0x32d445()[_0x36be97('0x1d8')](_0x868aea['agents'][_0x3ca536['id']],_0x32d445()[_0x36be97('0xed5')](_0x32d445()[_0x36be97('0x23e3')](_0x3ca536,_0x75955b),_0x371ef6)),_0x32d445()['merge'](_0x868aea['rpcAgents'][_0x3ca536['id']],_0x32d445()[_0x36be97('0xed5')](_0x32d445()[_0x36be97('0x23e3')](_0x3ca536,_0x75955b),_0x371ef6)),_0x2434e1(_0x868aea[_0x36be97('0x29b')][_0x3ca536['id']]));}function _0x4e4dfa(_0x46a634){var _0x570f83=_0x4ecc5b;_0x868aea[_0x570f83('0x29b')][_0x46a634['id']]&&(_0x32d445()['merge'](_0x868aea[_0x570f83('0x29b')][_0x46a634['id']],_0x32d445()[_0x570f83('0xed5')](_0x46a634,_0x371ef6)),_0x32d445()[_0x570f83('0x1d8')](_0x868aea[_0x570f83('0x7')][_0x46a634['id']],_0x32d445()[_0x570f83('0xed5')](_0x46a634,_0x371ef6)),_0x46a634['lastPauseAt']&&(_0x868aea[_0x570f83('0x29b')][_0x46a634['id']]['globalStatusTime']=_0x46a634[_0x570f83('0x823')],_0x868aea[_0x570f83('0x7')][_0x46a634['id']][_0x570f83('0x16ed')]=_0x46a634[_0x570f83('0x823')]),_0x2434e1(_0x868aea[_0x570f83('0x29b')][_0x46a634['id']]));}function _0x194fb8(_0x13945f){var _0x1ec063=_0x4ecc5b;_0x868aea['agents'][_0x868aea[_0x1ec063('0x7ff')][_0x13945f[_0x1ec063('0x1c29')]]]&&(_0x32d445()[_0x1ec063('0x1d8')](_0x868aea[_0x1ec063('0x29b')][_0x868aea[_0x1ec063('0x7ff')][_0x13945f[_0x1ec063('0x1c29')]]],_0x32d445()[_0x1ec063('0xed5')](_0x13945f,[_0x1ec063('0x26a8'),_0x1ec063('0x149e')])),_0x32d445()[_0x1ec063('0x1d8')](_0x868aea['rpcAgents'][_0x868aea[_0x1ec063('0x7ff')][_0x13945f['destaccountcode']]],_0x32d445()[_0x1ec063('0xed5')](_0x13945f,[_0x1ec063('0x26a8'),_0x1ec063('0x149e')])));}function _0x12d7fa(_0x114db5){var _0x3971c4=_0x4ecc5b;_0x868aea['agents'][_0x868aea[_0x3971c4('0x7ff')][_0x114db5[_0x3971c4('0x1c29')]]]&&(_0x868aea[_0x3971c4('0x29b')][_0x868aea[_0x3971c4('0x7ff')][_0x114db5[_0x3971c4('0x1c29')]]]=_0x32d445()[_0x3971c4('0x23e3')](_0x868aea['agents'][_0x868aea[_0x3971c4('0x7ff')][_0x114db5['destaccountcode']]],['queue','destconnectedlinenum']),_0x868aea[_0x3971c4('0x7')][_0x868aea['agentInternal'][_0x114db5[_0x3971c4('0x1c29')]]]=_0x32d445()[_0x3971c4('0x23e3')](_0x868aea['rpcAgents'][_0x868aea[_0x3971c4('0x7ff')][_0x114db5[_0x3971c4('0x1c29')]]],['queue',_0x3971c4('0x149e')]));}function _0x23c247(_0x351cdc){var _0x257225=_0x4ecc5b;return _0x3e1c1f[_0x257225('0x10c6')][_0x257225('0xe4e')]({'id':_0x351cdc['id'],'device':_0x257225('0x24e1'),'agent_id':_0x351cdc['id'],'agent_name':_0x351cdc['name']})[_0x257225('0xe59')][_0x257225('0xe19')](function(){var _0x352b47=_0x257225;_0x556f0d[_0x352b47('0x425')]({'title':'Agent\x20logout','msg':_0x351cdc[_0x352b47('0xe11')]+'\x20\x20properly\x20logout'}),_0x868aea[_0x352b47('0x29b')][_0x351cdc['id']]&&(_0x868aea[_0x352b47('0x29b')][_0x351cdc['id']]['online']=![]),_0x868aea[_0x352b47('0x7')][_0x351cdc['id']]&&(_0x868aea[_0x352b47('0x7')][_0x351cdc['id']][_0x352b47('0xb46')]=![]),_0x38e682();})[_0x257225('0x223b')](function(_0x55a47a){var _0x366008=_0x257225;_0x556f0d[_0x366008('0x8c8')]({'title':_0x55a47a[_0x366008('0x2833')]?_0x366008('0x27f2')+_0x55a47a[_0x366008('0x2833')]+'\x20-\x20'+_0x55a47a[_0x366008('0x1fd7')]:'api.staff.save','msg':_0x55a47a['data']?JSON[_0x366008('0x3ad')](_0x55a47a['data']['message']):_0x55a47a[_0x366008('0x94f')]()});});}function _0x253fc3(_0x58a3c2,_0x453815){var _0x3832c9=_0x4ecc5b;return _0x3e1c1f[_0x3832c9('0x10c6')][_0x3832c9('0x1c98')]({'id':_0x58a3c2['id'],'type':_0x453815})['$promise'][_0x3832c9('0xe19')](function(_0x10b794){var _0x231bac=_0x3832c9;_0x868aea[_0x231bac('0x29b')][_0x58a3c2['id']]&&_0x32d445()['merge'](_0x868aea[_0x231bac('0x29b')][_0x58a3c2['id']],_0x32d445()[_0x231bac('0xed5')](_0x10b794,_0x371ef6)),_0x868aea[_0x231bac('0x7')][_0x58a3c2['id']]&&_0x32d445()['merge'](_0x868aea[_0x231bac('0x7')][_0x58a3c2['id']],_0x32d445()['pick'](_0x10b794,_0x371ef6)),_0x2434e1(_0x868aea[_0x231bac('0x29b')][_0x58a3c2['id']]);})[_0x3832c9('0x223b')](function(_0x19fe3b){var _0x1fb160=_0x3832c9;_0x556f0d[_0x1fb160('0x8c8')]({'title':_0x19fe3b['status']?'API:'+_0x19fe3b[_0x1fb160('0x2833')]+_0x1fb160('0x1b7c')+_0x19fe3b[_0x1fb160('0x1fd7')]:_0x1fb160('0x1c95'),'msg':_0x19fe3b[_0x1fb160('0x11d0')]?JSON[_0x1fb160('0x3ad')](_0x19fe3b[_0x1fb160('0x11d0')]['message']):_0x19fe3b[_0x1fb160('0x94f')]()});});}function _0x588223(_0x19d579){var _0x50bb14=_0x4ecc5b;return _0x3e1c1f['user'][_0x50bb14('0x2471')]({'id':_0x19d579['id']})[_0x50bb14('0xe59')][_0x50bb14('0xe19')](function(_0x51a30e){var _0x3ff476=_0x50bb14;_0x868aea[_0x3ff476('0x29b')][_0x19d579['id']]&&_0x32d445()['merge'](_0x868aea[_0x3ff476('0x29b')][_0x19d579['id']],_0x32d445()['pick'](_0x51a30e,_0x371ef6)),_0x868aea[_0x3ff476('0x7')][_0x19d579['id']]&&_0x32d445()[_0x3ff476('0x1d8')](_0x868aea[_0x3ff476('0x7')][_0x19d579['id']],_0x32d445()[_0x3ff476('0xed5')](_0x51a30e,_0x371ef6)),_0x2434e1(_0x868aea['agents'][_0x19d579['id']]);})[_0x50bb14('0x223b')](function(_0x5028e0){var _0x5d9da4=_0x50bb14;_0x556f0d[_0x5d9da4('0x8c8')]({'title':_0x5028e0[_0x5d9da4('0x2833')]?_0x5d9da4('0x27f2')+_0x5028e0[_0x5d9da4('0x2833')]+_0x5d9da4('0x1b7c')+_0x5028e0[_0x5d9da4('0x1fd7')]:_0x5d9da4('0x1c95'),'msg':_0x5028e0[_0x5d9da4('0x11d0')]?JSON['stringify'](_0x5028e0[_0x5d9da4('0x11d0')][_0x5d9da4('0x27e8')]):_0x5028e0[_0x5d9da4('0x94f')]()});});}function _0x107e37(_0x1a9651){var _0x4335d6=_0x4ecc5b;_0x1c8ece['show'](_0x1c8ece[_0x4335d6('0xbdc')]()[_0x4335d6('0x26d6')](!![])[_0x4335d6('0x13e4')](_0x4335d6('0x7c0'))[_0x4335d6('0x221c')](_0x4335d6('0x1abb'))['ok']('Ok')[_0x4335d6('0x1345')](_0x1a9651));}function _0x235459(_0x5932cb,_0x4eb248){var _0x354f85=_0x4ecc5b;_0x1c8ece['show']({'controller':_0x354f85('0x28ab'),'controllerAs':'vm','templateUrl':_0x3bf6bc,'parent':angular[_0x354f85('0x24a1')](_0x2aa959[_0x354f85('0x19b2')]),'targetEvent':_0x4eb248,'clickOutsideToClose':!![],'locals':{'agent':_0x5932cb,'agents':[],'channel':'voice','direction':_0x354f85('0x1fdf'),'crudPermissions':_0x868aea[_0x354f85('0xb3d')]}});}function _0x563edd(_0x19fb97){var _0x2fdada=_0x4ecc5b;return _0x19fb97===_0x2fdada('0x1c98')||_0x19fb97===_0x2fdada('0x2f3');}function _0x581436(_0x447a3d){var _0xd944ab=_0x4ecc5b;return _0x447a3d===_0xd944ab('0x1c98');}function _0x6fd513(_0xed0984){var _0x36d55a=_0x4ecc5b;return _0xed0984===_0x36d55a('0x2f3');}function _0x5506b2(_0x5bc004){var _0x1c8d44=_0x4ecc5b;return _0x5bc004===_0x1c8d44('0x751')||_0x5bc004===_0x1c8d44('0x10df')||_0x5bc004===_0x1c8d44('0x20a1')||_0x5bc004===_0x1c8d44('0xb4')||_0x32d445()['isNil'](_0x5bc004);}function _0x2e12c6(_0x265946,_0x4362c9){var _0x2e75e2=_0x4ecc5b;if(_0x4362c9===_0x2e75e2('0xe74')){if(_0x265946[_0x4362c9+_0x2e75e2('0x20e')]!=='idle')return _0x265946[_0x4362c9+_0x2e75e2('0x20e')];if(_0x265946[_0x4362c9+_0x2e75e2('0x27b9')])return _0x265946[_0x4362c9+_0x2e75e2('0x20e')]=_0x2e75e2('0x1c98'),'pause';return _0x2e75e2('0x751');}else{if(_0x265946[_0x4362c9+_0x2e75e2('0x27b9')])return _0x265946[_0x4362c9+_0x2e75e2('0x20e')]='pause','pause';return _0x265946[_0x4362c9+_0x2e75e2('0x20e')];}}function _0x2434e1(_0x4bc70a){var _0x5bab5c=_0x4ecc5b,_0x1a31c7='unknown';if(_0x32d445()[_0x5bab5c('0x1ff')]([_0x2e12c6(_0x4bc70a,_0x5bab5c('0xe74')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x17cc')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x26bf')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0xaf2')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x2801')),_0x2e12c6(_0x4bc70a,'whatsapp'),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x625'))],_0x563edd))_0x1a31c7=_0x5bab5c('0x1c98');else{if(_0x32d445()[_0x5bab5c('0x201a')]([_0x2e12c6(_0x4bc70a,_0x5bab5c('0xe74')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x17cc')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x26bf')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0xaf2')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x2801')),_0x2e12c6(_0x4bc70a,'whatsapp'),_0x2e12c6(_0x4bc70a,'fax')],_0x563edd))_0x1a31c7=_0x5bab5c('0x2f3');else _0x32d445()[_0x5bab5c('0x1ff')]([_0x2e12c6(_0x4bc70a,_0x5bab5c('0xe74')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x17cc')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x26bf')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0xaf2')),_0x2e12c6(_0x4bc70a,'sms'),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x4b7')),_0x2e12c6(_0x4bc70a,_0x5bab5c('0x625'))],_0x5506b2)?_0x1a31c7='idle':_0x1a31c7=_0x5bab5c('0x1934');}_0x4bc70a[_0x5bab5c('0x25b1')]!==_0x1a31c7&&(_0x4bc70a['globalStatus']=_0x1a31c7,_0x4bc70a[_0x5bab5c('0x15f9')]?(_0x4bc70a[_0x5bab5c('0x15f9')]=![],_0x4bc70a[_0x5bab5c('0x16ed')]=_0x563edd(_0x1a31c7)?_0x32d445()[_0x5bab5c('0xcd3')](_0x4ddcaa()(_0x4bc70a[_0x5bab5c('0x823')])[_0x5bab5c('0x5e5')]('x')):_0x32d445()[_0x5bab5c('0x1735')]([_0x4bc70a[_0x5bab5c('0x2469')],_0x4bc70a['chatStatusTime'],_0x4bc70a[_0x5bab5c('0x1426')],_0x4bc70a[_0x5bab5c('0x1c51')],_0x4bc70a['whatsappStatusTime'],_0x4bc70a[_0x5bab5c('0x1ca7')],_0x4bc70a[_0x5bab5c('0xaa3')]])):_0x4bc70a[_0x5bab5c('0x16ed')]=_0x32d445()['toNumber'](_0x4ddcaa()()[_0x5bab5c('0x5e5')]('x')));}function _0x3a9eea(_0x39aabc){var _0x8236a4=_0x4ecc5b,_0x1c97bb=_0x32d445()[_0x8236a4('0x20b6')](_0x868aea[_0x8236a4('0xa16')][_0x8236a4('0x1b03')],'-')?_0x8236a4('0x1ee9'):_0x8236a4('0x1564');return _0x32d445()[_0x8236a4('0x10e')](_0x39aabc,[_0x868aea[_0x8236a4('0xa16')]['order']['replace']('-','')],[_0x1c97bb]);}function _0x284681(){var _0x2b922e=_0x4ecc5b;_0x2d3f5a&&(_0x570946[_0x2b922e('0x2c1')](_0x2d3f5a),_0x2d3f5a=null);}function _0x5d58f5(_0x364a29,_0x2c9585){var _0x5959e8=_0x4ecc5b;return _0x3e1c1f[_0x5959e8('0x10c6')][_0x5959e8('0xa70')]({'id':_0x364a29['id']},{'screenrecording':_0x2c9585})[_0x5959e8('0xe59')][_0x5959e8('0x223b')](function(_0x36dbd7){var _0x5ace0c=_0x5959e8;_0x556f0d['error']({'title':_0x36dbd7[_0x5ace0c('0x2833')]?_0x5ace0c('0x27f2')+_0x36dbd7[_0x5ace0c('0x2833')]+_0x5ace0c('0x1b7c')+_0x36dbd7[_0x5ace0c('0x1fd7')]:'api.user.update','msg':_0x36dbd7[_0x5ace0c('0x11d0')]?JSON['stringify'](_0x36dbd7[_0x5ace0c('0x11d0')][_0x5ace0c('0x27e8')]):_0x36dbd7['toString']()});});}_0x5c9b32[_0x4ecc5b('0xb2b')](_0x4ecc5b('0x5cd'),function(){var _0x226de1=_0x4ecc5b;_0x37233d['removeAllListeners'](_0x226de1('0xb9f')),_0x37233d[_0x226de1('0x2121')](_0x226de1('0x1ce3')),_0x37233d['removeAllListeners'](_0x226de1('0x1002')),_0x37233d[_0x226de1('0x2121')](_0x226de1('0xa8e')),_0x284681();});}const _0x1ba86d=_0xe1c34a,_0x3aa9f2=_0x59426a['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog-[chunkhash].html';_0x597bcd['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1c1a'),_0xb635d2('0x13e2'),_0xb635d2('0x36c'),'api',_0xb635d2('0x46d'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'Auth'];function _0x597bcd(_0xbcdca4,_0x95511d,_0x4b1650,_0x2429fe,_0x56e240,_0x505f14,_0x1ceeff,_0x171055,_0x2d2fac,_0x4c7798,_0x3340d3,_0x593e07){var _0x3b4d78=_0xb635d2,_0x73d03e=this,_0xe5c7ea=[_0x3b4d78('0x2623'),_0x3b4d78('0x1a'),_0x3b4d78('0x48d'),_0x3b4d78('0x27e8'),_0x3b4d78('0x194a'),_0x3b4d78('0x1fc1'),_0x3b4d78('0x1785'),_0x3b4d78('0x1317'),_0x3b4d78('0x186d'),_0x3b4d78('0x2788'),_0x3b4d78('0x1f82'),_0x3b4d78('0x243f'),_0x3b4d78('0x897')];_0x73d03e[_0x3b4d78('0x15a5')]=_0x593e07[_0x3b4d78('0x1ef8')](),_0x73d03e[_0x3b4d78('0x148b')]=_0x1ceeff[_0x3b4d78('0x148b')],_0x73d03e['campaigns']=_0x1ceeff?_0x32d445()[_0x3b4d78('0x226f')](_0x1ceeff[_0x3b4d78('0x16a7')]?_0x1ceeff[_0x3b4d78('0x16a7')]:[],'id'):{},_0x73d03e[_0x3b4d78('0x13e2')]=_0x505f14?_0x32d445()[_0x3b4d78('0x226f')](_0x505f14['rows']?_0x505f14['rows']:[],'id'):{},_0x73d03e[_0x3b4d78('0x154f')]=_0x4c7798,_0x73d03e['userProfileSection']=_0x3340d3&&_0x3340d3[_0x3b4d78('0x148b')]==0x1?_0x3340d3[_0x3b4d78('0x16a7')][0x0]:null,_0x73d03e[_0x3b4d78('0xb3d')]=_0x593e07[_0x3b4d78('0xd31')](_0x73d03e['userProfileSection']?_0x73d03e[_0x3b4d78('0xb59')][_0x3b4d78('0xb3d')]:null),_0x73d03e[_0x3b4d78('0xa16')]={'sort':_0x3b4d78('0x7e8'),'limit':0xa,'page':0x1},_0x73d03e[_0x3b4d78('0x425')]=_0x3a3da4,_0x73d03e['getCampaigns']=_0x4f0ff2,_0x73d03e[_0x3b4d78('0x284a')]=_0x1d3c00,_0x73d03e[_0x3b4d78('0x696')]=_0x54c0e2,_0x73d03e[_0x3b4d78('0x10d4')]=_0x532a7c,_0x2d2fac[_0x3b4d78('0x4df')](_0x3b4d78('0x1b48'),_0x73d03e[_0x3b4d78('0x284a')]),_0x73d03e[_0x3b4d78('0x134c')]=_0x56e240(function(){},0x3e7);function _0x54c0e2(){var _0x5a85f1=_0x3b4d78;_0x32d445()[_0x5a85f1('0xd1e')](_0x73d03e['campaigns'],function(_0x2431ac,_0x52af10){var _0x4bed03=_0x5a85f1;_0x73d03e[_0x4bed03('0x13e2')][_0x52af10]&&_0x32d445()[_0x4bed03('0x1d8')](_0x2431ac,_0x32d445()[_0x4bed03('0xed5')](_0x73d03e['rpcCampaigns'][_0x52af10],_0xe5c7ea));});}function _0x1d3c00(_0x20299b){var _0x14dd59=_0x3b4d78;_0x73d03e[_0x14dd59('0x36c')][_0x20299b['id']]&&(_0x32d445()[_0x14dd59('0x1d8')](_0x73d03e[_0x14dd59('0x36c')][_0x20299b['id']],_0x32d445()['pick'](_0x20299b,_0xe5c7ea)),_0x32d445()[_0x14dd59('0x1d8')](_0x73d03e[_0x14dd59('0x13e2')][_0x20299b['id']],_0x32d445()[_0x14dd59('0xed5')](_0x20299b,_0xe5c7ea)));}var _0x4a1554=!![],_0x5df7f9=0x1;_0xbcdca4[_0x3b4d78('0x107')](_0x3b4d78('0x20cb'),function(_0x326fc0,_0x5ed57c){var _0x30efcd=_0x3b4d78;_0x4a1554?_0x95511d(function(){_0x4a1554=![];}):(!_0x5ed57c&&(_0x5df7f9=_0x73d03e[_0x30efcd('0xa16')]['page']),_0x326fc0!==_0x5ed57c&&(_0x73d03e[_0x30efcd('0xa16')][_0x30efcd('0xc08')]=0x1),!_0x326fc0&&(_0x73d03e[_0x30efcd('0xa16')]['page']=_0x5df7f9),_0x73d03e[_0x30efcd('0x1ff7')]());});function _0x3a3da4(_0x2f89c3){var _0x20f038=_0x3b4d78;_0x73d03e[_0x20f038('0x148b')]=_0x2f89c3['count'],_0x73d03e['campaigns']=_0x2f89c3?_0x32d445()[_0x20f038('0x226f')](_0x2f89c3[_0x20f038('0x16a7')]?_0x2f89c3[_0x20f038('0x16a7')]:[],'id'):{},_0x54c0e2();}function _0x4f0ff2(){var _0x347707=_0x3b4d78;_0x73d03e[_0x347707('0xa16')][_0x347707('0xab0')]=(_0x73d03e[_0x347707('0xa16')][_0x347707('0xc08')]-0x1)*_0x73d03e[_0x347707('0xa16')][_0x347707('0x1b6d')],_0x593e07[_0x347707('0x179e')]('admin')?_0x73d03e['promise']=_0x171055[_0x347707('0xcc1')][_0x347707('0x22d5')](_0x73d03e[_0x347707('0xa16')],_0x3a3da4)[_0x347707('0xe59')]:(_0x73d03e[_0x347707('0xa16')]['id']=_0x73d03e[_0x347707('0x154f')]['id'],_0x73d03e['query'][_0x347707('0x1e59')]='IvrCampaigns',_0x73d03e[_0x347707('0x9c8')]=_0x171055['userProfile']['getResources'](_0x73d03e['query'],_0x3a3da4)['$promise']);}function _0x532a7c(_0xd5b201,_0x8b0c93){var _0x16d4a7=_0x3b4d78;_0x4b1650[_0x16d4a7('0x26b2')]({'controller':_0x16d4a7('0x1005'),'controllerAs':'vm','templateUrl':_0x3aa9f2,'parent':angular['element'](_0x2429fe['body']),'targetEvent':_0xd5b201,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x8b0c93,'ivrCampaigns':_0x32d445()[_0x16d4a7('0x1b79')](_0x73d03e[_0x16d4a7('0x36c')]),'license':null,'setting':null,'crudPermissions':_0x73d03e['crudPermissions']}});}_0xbcdca4['$on'](_0x3b4d78('0x5cd'),function(){var _0x3e299e=_0x3b4d78;_0x2d2fac[_0x3e299e('0x2121')](_0x3e299e('0x1b48')),_0x73d03e[_0x3e299e('0x134c')]&&_0x56e240['cancel'](_0x73d03e[_0x3e299e('0x134c')]);});}const _0x3c2a3d=_0x597bcd;_0x3faca8[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'agents',_0xb635d2('0x671'),_0xb635d2('0xf64'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0x20d'),_0xb635d2('0xf65'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),'Auth'];function _0x3faca8(_0x530e9c,_0xc588bc,_0x1fd208,_0x1b0130,_0x251562,_0x1562e9,_0x377b32,_0x2c5047,_0x1aacaa,_0x2088b8,_0x5dd327,_0x1658a9,_0x75cd8c){var _0x1e6e24=_0xb635d2,_0x1951a=this;_0x1951a['currentUser']=_0x75cd8c['getCurrentUser'](),_0x1951a[_0x1e6e24('0x29b')]=_0x1b0130||{'count':0x0,'rows':[]},_0x1951a['queues']=_0x251562?_0x32d445()[_0x1e6e24('0x226f')](_0x251562[_0x1e6e24('0x16a7')]?_0x251562[_0x1e6e24('0x16a7')]:[],_0x1e6e24('0x2623')):{},_0x1951a[_0x1e6e24('0x15e5')]=_0x1562e9?_0x32d445()['keyBy'](_0x1562e9[_0x1e6e24('0x16a7')]?_0x32d445()[_0x1e6e24('0x2891')](_0x1562e9['rows'],{'type':_0x1e6e24('0x1fdf')}):[],_0x1e6e24('0x1a6c')):{},_0x1951a[_0x1e6e24('0xf64')]={},_0x1951a[_0x1e6e24('0x154f')]=_0x5dd327,_0x1951a[_0x1e6e24('0xb59')]=_0x1658a9&&_0x1658a9[_0x1e6e24('0x148b')]==0x1?_0x1658a9[_0x1e6e24('0x16a7')][0x0]:null,_0x1951a['crudPermissions']=_0x75cd8c[_0x1e6e24('0xd31')](_0x1951a[_0x1e6e24('0xb59')]?_0x1951a[_0x1e6e24('0xb59')][_0x1e6e24('0xb3d')]:null),_0x1951a['queryChannels']={'limit':0xa,'page':0x1},_0x1951a[_0x1e6e24('0x1c9c')]=_0x67034b,_0x1951a[_0x1e6e24('0x696')]=_0x4a0b1b,_0x1951a['onSave']=_0x532f13,_0x1951a[_0x1e6e24('0x27cf')]=_0x40f068,_0x1951a[_0x1e6e24('0x1e92')]=_0x2782c9,_0x1951a['redirectToAgent']=_0xeb5889,_0x1951a[_0x1e6e24('0x43')]=_0x2d65b6,_0x2c5047['on'](_0x1e6e24('0x592'),_0x1951a['onSave']),_0x2c5047['on'](_0x1e6e24('0x2189'),_0x1951a[_0x1e6e24('0x27cf')]);function _0x67034b(_0x1ad8b0){var _0x3af29f=_0x1e6e24;return _0x32d445()[_0x3af29f('0x1aea')](_0x1ad8b0);}function _0x4a0b1b(){var _0x5d442e=_0x1e6e24;_0x32d445()['forIn'](_0x1951a[_0x5d442e('0x15e5')],function(_0x46ee87,_0x15ccc9){_0x32d445()['find'](_0x1951a['queues'],{'name':_0x46ee87['name']})&&(_0x1951a['rpcVoiceQueuesChannels'][_0x15ccc9]=_0x46ee87);});}function _0x532f13(_0x8d61fc){var _0x68eb14=_0x1e6e24;_0x8d61fc[_0x68eb14('0x62e')]===_0x68eb14('0x1fdf')&&(_0x32d445()[_0x68eb14('0xf15')](_0x1951a[_0x68eb14('0x671')],{'name':_0x8d61fc[_0x68eb14('0x2623')]})&&(_0x1951a['rpcVoiceQueuesChannels'][_0x8d61fc[_0x68eb14('0x1a6c')]]=_0x8d61fc));}function _0x40f068(_0x555741){var _0x328fe2=_0x1e6e24;_0x1951a[_0x328fe2('0xf64')][_0x555741[_0x328fe2('0x1a6c')]]&&delete _0x1951a[_0x328fe2('0xf64')][_0x555741[_0x328fe2('0x1a6c')]];}function _0x2782c9(_0x566d77){var _0x331f59=_0x1e6e24;return _0x377b32['rpc'][_0x331f59('0x8ab')]({'uniqueid':_0x566d77})['$promise'][_0x331f59('0xe19')](function(_0xaca67d){var _0xc0e273=_0x331f59;_0x2088b8[_0xc0e273('0x425')]({'title':_0xc0e273('0xaaa')+_0x566d77+_0xc0e273('0x360'),'msg':_0xaca67d['message']||''});})[_0x331f59('0x223b')](function(_0x233297){var _0x41005f=_0x331f59;_0x2088b8['error']({'title':_0x233297['status']+_0x41005f('0x1b7c')+_0x233297['statusText'],'msg':JSON[_0x41005f('0x3ad')](_0x233297[_0x41005f('0x11d0')])||_0x233297[_0x41005f('0x27e8')][_0x41005f('0x1537')]('\x20')});});}function _0xeb5889(_0x2cccbd,_0x121206,_0x70c41a){var _0x5e48af=_0x1e6e24;return _0x377b32[_0x5e48af('0x21e1')][_0x5e48af('0x7c7')]({'uniqueid':_0x2cccbd,'exten':_0x121206,'context':_0x70c41a})[_0x5e48af('0xe59')]['then'](function(_0x547209){var _0x41869c=_0x5e48af;_0x2088b8[_0x41869c('0x425')]({'title':_0x41869c('0xaaa')+_0x2cccbd+_0x41869c('0xf75'),'msg':_0x547209[_0x41869c('0x27e8')]||''});})[_0x5e48af('0x223b')](function(_0x34e3fa){var _0x1b2274=_0x5e48af;_0x2088b8[_0x1b2274('0x8c8')]({'title':_0x34e3fa[_0x1b2274('0x2833')]+_0x1b2274('0x1b7c')+_0x34e3fa[_0x1b2274('0x1fd7')],'msg':JSON[_0x1b2274('0x3ad')](_0x34e3fa[_0x1b2274('0x11d0')])||_0x34e3fa[_0x1b2274('0x27e8')][_0x1b2274('0x1537')]('\x20')});});}function _0x2d65b6(_0x4c03a0,_0x27ddff){var _0x57c78b=_0x1e6e24,_0x2abd5e=_0x1fd208['prompt']()[_0x57c78b('0x13e4')]('Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?')[_0x57c78b('0x53e')](_0x57c78b('0x59c'))[_0x57c78b('0x1345')](_0x4c03a0)['ok']('Ok')[_0x57c78b('0x2c1')]('Cancel');return _0x1fd208[_0x57c78b('0x26b2')](_0x2abd5e)[_0x57c78b('0xe19')](function(_0x59155e){var _0x9b7eb0=_0x57c78b;return _0x377b32[_0x9b7eb0('0x21e1')][_0x9b7eb0('0x7c7')]({'uniqueid':_0x27ddff,'exten':_0x59155e})[_0x9b7eb0('0xe59')];})['then'](function(_0x58d08c){var _0x2b2a0a=_0x57c78b;_0x2088b8['success']({'title':_0x2b2a0a('0xaaa')+_0x27ddff+_0x2b2a0a('0xf75'),'msg':_0x58d08c[_0x2b2a0a('0x27e8')]||''});})[_0x57c78b('0x223b')](function(_0x2581b7){var _0x5e44e8=_0x57c78b;_0x2088b8[_0x5e44e8('0x8c8')]({'title':_0x2581b7[_0x5e44e8('0x2833')]+'\x20-\x20'+_0x2581b7[_0x5e44e8('0x1fd7')],'msg':JSON[_0x5e44e8('0x3ad')](_0x2581b7[_0x5e44e8('0x11d0')])||_0x2581b7['message']['join']('\x20')});});}_0x530e9c[_0x1e6e24('0xb2b')](_0x1e6e24('0x5cd'),function(){var _0x428449=_0x1e6e24;_0x2c5047[_0x428449('0x2121')](_0x428449('0x592')),_0x2c5047[_0x428449('0x2121')]('voice_queue_channel:remove');});}const _0x2288d5=_0x3faca8;_0x3f3617[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c1a'),_0xb635d2('0x671'),_0xb635d2('0x146c'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x3f3617(_0x265921,_0x4d0e1d,_0x4508ad,_0x23f14e,_0x57fb1d,_0x4b56c4,_0x554967,_0x2a922f,_0xf3cc3d,_0x2472e9){var _0x4eb2a6=_0xb635d2,_0x4ce3e4=this,_0x4af7cc=['total',_0x4eb2a6('0x18e1'),_0x4eb2a6('0x25a3'),'sumDuration',_0x4eb2a6('0x1e88'),'outboundNoAnswerCallsDay',_0x4eb2a6('0x904'),_0x4eb2a6('0x12b1'),_0x4eb2a6('0xaaf'),'outboundUnknownCallsDay','outboundDropCallsDayTimeout',_0x4eb2a6('0x1e16'),_0x4eb2a6('0x4ca'),_0x4eb2a6('0x1cf6'),'outboundAnswerAgiCallsDay',_0x4eb2a6('0x147d'),'outboundRejectCallsDay'];_0x4ce3e4[_0x4eb2a6('0x148b')]=_0x23f14e['count'],_0x4ce3e4[_0x4eb2a6('0x671')]=_0x23f14e?_0x32d445()['keyBy'](_0x23f14e[_0x4eb2a6('0x16a7')]?_0x23f14e[_0x4eb2a6('0x16a7')]:[],'id'):{},_0x4ce3e4[_0x4eb2a6('0x146c')]=_0x57fb1d?_0x32d445()[_0x4eb2a6('0x226f')](_0x57fb1d['rows']?_0x57fb1d[_0x4eb2a6('0x16a7')]:[],'id'):{},_0x4ce3e4[_0x4eb2a6('0x154f')]=_0x2a922f,_0x4ce3e4[_0x4eb2a6('0xb59')]=_0xf3cc3d&&_0xf3cc3d[_0x4eb2a6('0x148b')]==0x1?_0xf3cc3d[_0x4eb2a6('0x16a7')][0x0]:null,_0x4ce3e4[_0x4eb2a6('0xb3d')]=_0x2472e9[_0x4eb2a6('0xd31')](_0x4ce3e4[_0x4eb2a6('0xb59')]?_0x4ce3e4[_0x4eb2a6('0xb59')]['crudPermissions']:null);_0x2472e9[_0x4eb2a6('0x179e')](_0x4eb2a6('0xd14'))?_0x4ce3e4[_0x4eb2a6('0xa16')]={'type':_0x4eb2a6('0x1fdf'),'fields':_0x4eb2a6('0x104'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x4ce3e4[_0x4eb2a6('0xa16')]={'id':_0x2472e9[_0x4eb2a6('0x1ef8')]()['id'],'channel':_0x4eb2a6('0xe74'),'type':'outbound','fields':_0x4eb2a6('0x104'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x4ce3e4['success']=_0x2d9cd2,_0x4ce3e4[_0x4eb2a6('0x23cf')]=_0x327969,_0x4ce3e4[_0x4eb2a6('0x284a')]=_0x1a1ea2,_0x4ce3e4[_0x4eb2a6('0x696')]=_0x504670,_0x554967['onWithoutApply'](_0x4eb2a6('0x149c'),_0x4ce3e4[_0x4eb2a6('0x284a')]),_0x4ce3e4[_0x4eb2a6('0x134c')]=_0x4508ad(function(){},0x3e7);function _0x504670(){var _0x497f53=_0x4eb2a6;_0x32d445()[_0x497f53('0xd1e')](_0x4ce3e4[_0x497f53('0x671')],function(_0x219f50,_0x5239d3){var _0x59f178=_0x497f53;_0x4ce3e4[_0x59f178('0x146c')][_0x5239d3]&&_0x32d445()[_0x59f178('0x1d8')](_0x219f50,_0x32d445()[_0x59f178('0xed5')](_0x4ce3e4[_0x59f178('0x146c')][_0x5239d3],_0x4af7cc));});}function _0x1a1ea2(_0x5609fa){var _0x5539c1=_0x4eb2a6;_0x4ce3e4[_0x5539c1('0x671')][_0x5609fa['id']]&&_0x32d445()['merge'](_0x4ce3e4[_0x5539c1('0x671')][_0x5609fa['id']],_0x32d445()['pick'](_0x5609fa,_0x4af7cc));}var _0x3e6c19=!![],_0x3abbb5=0x1;_0x265921[_0x4eb2a6('0x107')](_0x4eb2a6('0x20cb'),function(_0x4b1f25,_0x580ba4){var _0x5f169d=_0x4eb2a6;_0x3e6c19?_0x4d0e1d(function(){_0x3e6c19=![];}):(!_0x580ba4&&(_0x3abbb5=_0x4ce3e4[_0x5f169d('0xa16')][_0x5f169d('0xc08')]),_0x4b1f25!==_0x580ba4&&(_0x4ce3e4[_0x5f169d('0xa16')]['page']=0x1),!_0x4b1f25&&(_0x4ce3e4[_0x5f169d('0xa16')][_0x5f169d('0xc08')]=_0x3abbb5),_0x4ce3e4[_0x5f169d('0x23cf')]());});function _0x2d9cd2(_0x13713d){var _0x441583=_0x4eb2a6;_0x4ce3e4[_0x441583('0x148b')]=_0x13713d[_0x441583('0x148b')],_0x4ce3e4[_0x441583('0x671')]=_0x13713d?_0x32d445()[_0x441583('0x226f')](_0x13713d[_0x441583('0x16a7')]?_0x13713d['rows']:[],'id'):{},_0x504670();}function _0x327969(){var _0x3d685a=_0x4eb2a6;_0x4ce3e4[_0x3d685a('0xa16')]['offset']=(_0x4ce3e4[_0x3d685a('0xa16')][_0x3d685a('0xc08')]-0x1)*_0x4ce3e4[_0x3d685a('0xa16')][_0x3d685a('0x1b6d')],_0x2472e9[_0x3d685a('0x179e')](_0x3d685a('0xd14'))?_0x4ce3e4[_0x3d685a('0x9c8')]=_0x4b56c4['voiceQueue'][_0x3d685a('0x22d5')](_0x4ce3e4['query'],_0x2d9cd2)[_0x3d685a('0xe59')]:(_0x4ce3e4['query']['id']=_0x4ce3e4[_0x3d685a('0x154f')]['id'],_0x4ce3e4[_0x3d685a('0xa16')][_0x3d685a('0x1e59')]='QueueCampaigns',_0x4ce3e4[_0x3d685a('0x9c8')]=_0x4b56c4[_0x3d685a('0x154f')][_0x3d685a('0x14e6')](_0x4ce3e4[_0x3d685a('0xa16')],_0x2d9cd2)[_0x3d685a('0xe59')]);}_0x265921[_0x4eb2a6('0xb2b')](_0x4eb2a6('0x5cd'),function(){var _0xaf7609=_0x4eb2a6;_0x554967[_0xaf7609('0x2121')]('voice_queue:save'),_0x4ce3e4[_0xaf7609('0x134c')]&&_0x4508ad[_0xaf7609('0x2c1')](_0x4ce3e4[_0xaf7609('0x134c')]);});}const _0x470e93=_0x3f3617,_0x1ce097=_0x59426a['p']+_0xb635d2('0x27dd'),_0x2b280d=_0x59426a['p']+_0xb635d2('0x66d'),_0x3118b4=_0x59426a['p']+_0xb635d2('0x756');_0x3ec96f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x1728'),_0xb635d2('0x1c1a'),_0xb635d2('0x671'),'rpcQueues',_0xb635d2('0xffc'),'socket',_0xb635d2('0xf65'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0x2730')];function _0x3ec96f(_0x3dfcea,_0x53b5b3,_0x4189de,_0x6a33f7,_0x1b6da3,_0x538c4d,_0x2ef7df,_0x3f6c01,_0x3085c8,_0x1f7f15,_0x2b0ef1,_0x190a1d,_0x2dbcd7,_0x4cd80b){var _0x34eed5=_0xb635d2,_0x360a4a=this,_0x34d621=[_0x34eed5('0x462'),_0x34eed5('0x2398'),'waiting',_0x34eed5('0xe75'),_0x34eed5('0x1700'),_0x34eed5('0x194a'),_0x34eed5('0x27e8'),_0x34eed5('0x8c9'),'dialMethod','Trunk',_0x34eed5('0x1cf8'),_0x34eed5('0xe4'),_0x34eed5('0xe27'),'erlangCalls',_0x34eed5('0x9f2'),_0x34eed5('0x1bda'),'erlangBusyFactor',_0x34eed5('0x2855'),_0x34eed5('0x22b0'),_0x34eed5('0x58d'),'predictiveIntervalAvailable',_0x34eed5('0x874'),_0x34eed5('0xa5f'),_0x34eed5('0xfd8'),_0x34eed5('0x1c7b'),_0x34eed5('0x977'),_0x34eed5('0xa3a')];_0x360a4a[_0x34eed5('0x15a5')]=_0x4cd80b[_0x34eed5('0x1ef8')](),_0x360a4a[_0x34eed5('0x148b')]=_0x2ef7df[_0x34eed5('0x148b')]?_0x2ef7df[_0x34eed5('0x148b')]:0x0,_0x360a4a[_0x34eed5('0x671')]=_0x2ef7df?_0x32d445()['keyBy'](_0x2ef7df[_0x34eed5('0x16a7')]?_0x2ef7df[_0x34eed5('0x16a7')]:[],'id'):{},_0x360a4a[_0x34eed5('0x146c')]=_0x3f6c01?_0x32d445()[_0x34eed5('0x226f')](_0x3f6c01[_0x34eed5('0x16a7')]?_0x3f6c01[_0x34eed5('0x16a7')]:[],'id'):{},_0x360a4a[_0x34eed5('0x154f')]=_0x190a1d,_0x360a4a[_0x34eed5('0xb59')]=_0x2dbcd7&&_0x2dbcd7[_0x34eed5('0x148b')]==0x1?_0x2dbcd7[_0x34eed5('0x16a7')][0x0]:null,_0x360a4a['crudPermissions']=_0x4cd80b[_0x34eed5('0xd31')](_0x360a4a[_0x34eed5('0xb59')]?_0x360a4a[_0x34eed5('0xb59')][_0x34eed5('0xb3d')]:null);_0x4cd80b[_0x34eed5('0x179e')](_0x34eed5('0xd14'))?_0x360a4a[_0x34eed5('0xa16')]={'type':_0x34eed5('0x1fdf'),'sort':_0x34eed5('0x7e8'),'limit':0xa,'page':0x1}:_0x360a4a['query']={'id':_0x360a4a['currentUser']['id'],'channel':_0x34eed5('0xe74'),'type':_0x34eed5('0x1fdf'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x360a4a[_0x34eed5('0x425')]=_0xaaf33a,_0x360a4a[_0x34eed5('0x23cf')]=_0x502f3f,_0x360a4a[_0x34eed5('0x891')]=_0x2a93f3,_0x360a4a[_0x34eed5('0x20e8')]=_0x3e406c,_0x360a4a[_0x34eed5('0x45a')]=_0x13a403,_0x360a4a[_0x34eed5('0xabf')]=_0x5a1416,_0x360a4a['onSave']=_0x40e04d,_0x360a4a[_0x34eed5('0xc76')]=_0x4f8672,_0x360a4a[_0x34eed5('0x69e')]=_0x42e82e,_0x360a4a[_0x34eed5('0x1707')]=_0x2df51f,_0x360a4a[_0x34eed5('0x1baf')]=_0x36ad6b,_0x360a4a[_0x34eed5('0x696')]=_0xf0853,_0x360a4a[_0x34eed5('0x1b03')]=[],_0x32d445()[_0x34eed5('0xd1e')](_0x360a4a[_0x34eed5('0x671')],function(_0x5f0da9){var _0xbe2784=_0x34eed5;_0x360a4a['order'][_0xbe2784('0xb76')](_0x5f0da9['id']);}),_0x1f7f15['onWithoutApply'](_0x34eed5('0x149c'),_0x360a4a['onSave']),_0x360a4a[_0x34eed5('0x134c')]=_0x538c4d(function(){},0x3e7),_0x1f7f15['on']('userVoiceQueueRt:save',_0x360a4a[_0x34eed5('0xc76')]),_0x1f7f15['on'](_0x34eed5('0x1ce3'),_0x360a4a[_0x34eed5('0x69e')]),_0x1f7f15['on'](_0x34eed5('0x1583'),_0x360a4a[_0x34eed5('0x1baf')]),_0x1f7f15['on'](_0x34eed5('0x2161'),_0x360a4a[_0x34eed5('0x1707')]);function _0xf0853(){var _0x4c45db=_0x34eed5,_0xebb00a=[];return _0x32d445()[_0x4c45db('0xd1e')](_0x360a4a[_0x4c45db('0x671')],function(_0x4901b7,_0x3c51c0){var _0x2f4498=_0x4c45db;_0x4901b7['paused']=0x0,_0x4901b7['loggedInDb']=0x0,_0x360a4a[_0x2f4498('0x671')][_0x3c51c0][_0x2f4498('0x29b')]={},_0xebb00a[_0x2f4498('0xb76')](_0x3085c8[_0x2f4498('0x25d5')][_0x2f4498('0xb5d')]({'id':_0x3c51c0})['$promise']),_0x360a4a[_0x2f4498('0x146c')][_0x3c51c0]&&_0x32d445()['merge'](_0x4901b7,_0x32d445()[_0x2f4498('0xed5')](_0x360a4a['rpcQueues'][_0x3c51c0],_0x34d621));}),_0x6a33f7[_0x4c45db('0xf0e')](_0xebb00a)[_0x4c45db('0xe19')](function(_0x4a5a84){var _0xba7d1f=_0x4c45db;for(var _0xfd4a3e=0x0;_0xfd4a3e<_0x4a5a84[_0xba7d1f('0x25ae')];_0xfd4a3e+=0x1){for(var _0x3ccbab=0x0;_0x3ccbab<_0x4a5a84[_0xfd4a3e][_0xba7d1f('0x16a7')][_0xba7d1f('0x25ae')];_0x3ccbab++){_0x4a5a84[_0xfd4a3e][_0xba7d1f('0x16a7')][_0x3ccbab][_0xba7d1f('0x1cf8')]&&_0x360a4a[_0xba7d1f('0x671')][_0x4a5a84[_0xfd4a3e][_0xba7d1f('0x16a7')][_0x3ccbab]['VoiceQueueId']][_0xba7d1f('0x1cf8')]++,_0x360a4a['queues'][_0x4a5a84[_0xfd4a3e][_0xba7d1f('0x16a7')][_0x3ccbab][_0xba7d1f('0x1967')]][_0xba7d1f('0x120f')]++,_0x360a4a[_0xba7d1f('0x671')][_0x4a5a84[_0xfd4a3e][_0xba7d1f('0x16a7')][_0x3ccbab][_0xba7d1f('0x1967')]]['agents'][_0x4a5a84[_0xfd4a3e][_0xba7d1f('0x16a7')][_0x3ccbab][_0xba7d1f('0x43d')]]=_0x4a5a84[_0xfd4a3e][_0xba7d1f('0x16a7')][_0x3ccbab][_0xba7d1f('0x1967')];}}})[_0x4c45db('0x223b')](function(_0x42abd1){var _0x2f5ffc=_0x4c45db;console[_0x2f5ffc('0x8c8')](_0x42abd1);});}function _0x40e04d(_0xe061b2){var _0x181a23=_0x34eed5;_0x360a4a[_0x181a23('0x671')][_0xe061b2['id']]&&(_0x32d445()[_0x181a23('0x1d8')](_0x360a4a[_0x181a23('0x671')][_0xe061b2['id']],_0x32d445()[_0x181a23('0xed5')](_0xe061b2,_0x34d621)),_0x32d445()[_0x181a23('0xe44')](_0xe061b2[_0x181a23('0xe4')])&&(_0x360a4a[_0x181a23('0x671')][_0xe061b2['id']][_0x181a23('0xe4')]=undefined));}function _0x4f8672(_0x478cfd){var _0x195429=_0x34eed5;_0x360a4a[_0x195429('0x671')][_0x478cfd[_0x195429('0xb62')]]&&_0x360a4a[_0x195429('0x671')][_0x478cfd[_0x195429('0xb62')]][_0x195429('0x120f')]++;}function _0x42e82e(_0x4d22e1){var _0x51aef7=_0x34eed5;console[_0x51aef7('0x1fe9')](_0x51aef7('0x69e'),_0x4d22e1);if(_0x4d22e1[_0x51aef7('0x1b8d')])_0x32d445()['forIn'](_0x360a4a[_0x51aef7('0x671')],function(_0xfc8556){var _0x5e47b6=_0x51aef7;_0xfc8556[_0x5e47b6('0x29b')][_0x4d22e1['id']]&&(_0xfc8556['paused']+=0x1,console['log']('pause'));});else!_0x4d22e1[_0x51aef7('0x1b8d')]&&_0x32d445()[_0x51aef7('0xd1e')](_0x360a4a[_0x51aef7('0x671')],function(_0xa6f2a0){var _0x1d6ab5=_0x51aef7;_0xa6f2a0['agents'][_0x4d22e1['id']]&&(_0xa6f2a0[_0x1d6ab5('0x1cf8')]>0x0&&(_0xa6f2a0['paused']-=0x1,console['log']('unpause')));});}function _0x2df51f(_0x1f65aa){var _0x494b2b=_0x34eed5;console[_0x494b2b('0x1fe9')]('onLogged',_0x1f65aa),_0x360a4a['queues'][_0x1f65aa[_0x494b2b('0x1967')]]&&(_0x360a4a[_0x494b2b('0x671')][_0x1f65aa[_0x494b2b('0x1967')]][_0x494b2b('0x120f')]+=0x1,_0x360a4a[_0x494b2b('0x671')][_0x1f65aa[_0x494b2b('0x1967')]]['agents'][_0x1f65aa['UserId']]=_0x1f65aa[_0x494b2b('0x1967')]);}function _0x36ad6b(_0x936b1b){var _0x515a0f=_0x34eed5;console[_0x515a0f('0x1fe9')](_0x515a0f('0x1baf'),_0x936b1b),_0x360a4a[_0x515a0f('0x671')][_0x936b1b['VoiceQueueId']]&&_0x360a4a[_0x515a0f('0x671')][_0x936b1b[_0x515a0f('0x1967')]]['loggedInDb']>0x0&&(_0x360a4a['queues'][_0x936b1b[_0x515a0f('0x1967')]]['loggedInDb']-=0x1,delete _0x360a4a['queues'][_0x936b1b[_0x515a0f('0x1967')]]['agents'][_0x936b1b[_0x515a0f('0x43d')]]);}var _0x15028f=!![],_0x58db42=0x1;_0x3dfcea[_0x34eed5('0x107')](_0x34eed5('0x20cb'),function(_0x3f2dc0,_0x1d86fc){var _0x385b0e=_0x34eed5;_0x15028f?_0x53b5b3(function(){_0x15028f=![];}):(!_0x1d86fc&&(_0x58db42=_0x360a4a[_0x385b0e('0xa16')]['page']),_0x3f2dc0!==_0x1d86fc&&(_0x360a4a[_0x385b0e('0xa16')][_0x385b0e('0xc08')]=0x1),!_0x3f2dc0&&(_0x360a4a[_0x385b0e('0xa16')][_0x385b0e('0xc08')]=_0x58db42),_0x360a4a[_0x385b0e('0x23cf')]());});function _0xaaf33a(_0x2db1aa){var _0x54e119=_0x34eed5;_0x360a4a[_0x54e119('0x148b')]=_0x2db1aa[_0x54e119('0x148b')],_0x360a4a[_0x54e119('0x671')]=_0x2db1aa?_0x32d445()[_0x54e119('0x226f')](_0x2db1aa[_0x54e119('0x16a7')]?_0x2db1aa[_0x54e119('0x16a7')]:[],'id'):{};if(_0x2db1aa[_0x54e119('0x16a7')]){_0x360a4a[_0x54e119('0x1b03')]=[];for(var _0x14dd21=0x0;_0x14dd21<_0x2db1aa['rows'][_0x54e119('0x25ae')];_0x14dd21++){_0x360a4a[_0x54e119('0x1b03')][_0x54e119('0xb76')](_0x2db1aa[_0x54e119('0x16a7')][_0x14dd21]['id']);}}_0xf0853();}function _0x502f3f(){var _0x591693=_0x34eed5;_0x360a4a[_0x591693('0xa16')]['offset']=(_0x360a4a[_0x591693('0xa16')][_0x591693('0xc08')]-0x1)*_0x360a4a[_0x591693('0xa16')][_0x591693('0x1b6d')],_0x4cd80b[_0x591693('0x179e')](_0x591693('0xd14'))?_0x360a4a[_0x591693('0x9c8')]=_0x3085c8[_0x591693('0x25d5')][_0x591693('0x22d5')](_0x360a4a[_0x591693('0xa16')],_0xaaf33a)[_0x591693('0xe59')]:(_0x360a4a[_0x591693('0xa16')]['id']=_0x360a4a[_0x591693('0x154f')]['id'],_0x360a4a['query']['section']='QueueCampaigns',_0x360a4a[_0x591693('0x9c8')]=_0x3085c8[_0x591693('0x154f')][_0x591693('0x14e6')](_0x360a4a[_0x591693('0xa16')],_0xaaf33a)[_0x591693('0xe59')]);}function _0x2a93f3(_0x2c0533,_0x17ef63){var _0x160e45=_0x34eed5;_0x4189de[_0x160e45('0x26b2')]({'controller':_0x160e45('0x1119'),'controllerAs':'vm','templateUrl':_0x1ce097,'parent':angular[_0x160e45('0x24a1')](_0x1b6da3[_0x160e45('0x19b2')]),'targetEvent':_0x2c0533,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x17ef63,'queueCampaigns':_0x32d445()['values'](_0x360a4a['queues']),'license':null,'setting':null,'crudPermissions':_0x360a4a[_0x160e45('0xb3d')]}});}function _0x3e406c(_0x285d02,_0x15bd02){var _0x4345ff=_0x34eed5;_0x4189de[_0x4345ff('0x26b2')]({'controller':_0x4345ff('0x68e'),'controllerAs':'vm','templateUrl':_0x2b280d,'parent':angular[_0x4345ff('0x24a1')](_0x1b6da3[_0x4345ff('0x19b2')]),'targetEvent':_0x285d02,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x15bd02}});}function _0x13a403(_0x1a0560,_0xa0d3a9){var _0x5eb6e1=_0x34eed5;_0x4189de['show']({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x3118b4,'parent':angular[_0x5eb6e1('0x24a1')](_0x1b6da3[_0x5eb6e1('0x19b2')]),'targetEvent':_0x1a0560,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xa0d3a9,'queueCampaigns':_0x360a4a[_0x5eb6e1('0x671')]?_0x360a4a[_0x5eb6e1('0x671')][_0x5eb6e1('0x16a7')]:[],'realtime':!![],'crudPermissions':_0x360a4a[_0x5eb6e1('0xb3d')]}});}function _0x5a1416(_0x3955e3){var _0x27e5e2=_0x34eed5;return _0x3085c8[_0x27e5e2('0x25d5')][_0x27e5e2('0xa70')](_0x3955e3)[_0x27e5e2('0xe59')][_0x27e5e2('0xe19')](function(){var _0x2c11d1=_0x27e5e2;_0x2b0ef1['success']({'title':_0x2c11d1('0x56a'),'msg':_0x3955e3[_0x2c11d1('0x2623')]?_0x3955e3['name']+_0x2c11d1('0x283b'):''});})[_0x27e5e2('0x223b')](function(_0x10cd37){var _0x4dbd44=_0x27e5e2;_0x2b0ef1[_0x4dbd44('0x8c8')]({'title':_0x4dbd44('0x2780'),'msg':_0x10cd37[_0x4dbd44('0x27e8')]});});}_0x3dfcea[_0x34eed5('0xb2b')]('$destroy',function(){var _0x48427f=_0x34eed5;_0x1f7f15[_0x48427f('0x2121')]('voice_queue:save'),_0x360a4a[_0x48427f('0x134c')]&&_0x538c4d['cancel'](_0x360a4a[_0x48427f('0x134c')]),_0x1f7f15[_0x48427f('0x2121')](_0x48427f('0x14d2')),_0x1f7f15['removeAllListeners']('user:update'),_0x1f7f15[_0x48427f('0x2121')](_0x48427f('0x1583')),_0x1f7f15[_0x48427f('0x2121')](_0x48427f('0x2161'));});}const _0x272704=_0x3ec96f;_0x27cc66[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$interval',_0xb635d2('0x2658')];function _0x27cc66(_0x1dcc7f,_0x3b691b,_0xb6d395){var _0x1e14bb=_0xb635d2,_0x3a221c=this;_0x3a221c['queueCampaign']=_0xb6d395,_0x3a221c[_0x1e14bb('0x242')]=_0x3e52a5,_0x3a221c['setFormatTime']=_0x5761ea,_0x3a221c[_0x1e14bb('0x2584')]=_0x8fba10;function _0x3e52a5(_0x56f784,_0x5ba4b0){var _0x5ef439=_0x1e14bb;return _0x4ddcaa()(_0x56f784)[_0x5ef439('0xaf8')]('m',_0x5ba4b0)['format']('HH:mm:ss');}function _0x5761ea(_0x45776e){var _0x5ac2f8=_0x1e14bb;return _0x4ddcaa()(_0x45776e)[_0x5ac2f8('0x5e5')](_0x5ac2f8('0x124e'));}function _0x8fba10(){var _0x5a7ec2=_0x1e14bb;_0x1dcc7f[_0x5a7ec2('0x11ed')]();}}const _0x58be6f=_0x27cc66;function _0x1d7fd2(){var _0x108ed5=_0xb635d2;return{'status':{'registered':_0x108ed5('0xcf5'),'unregistered':_0x108ed5('0x10ea'),'lagged':_0x108ed5('0x10ea'),'reachable':_0x108ed5('0xcf5'),'unreachable':_0x108ed5('0x10ea'),'unknown':_0x108ed5('0x1fe7')},'state':{'unknown':_0x108ed5('0x2740'),'not_inuse':_0x108ed5('0x11dd'),'inuse':_0x108ed5('0x15af'),'busy':_0x108ed5('0x441'),'invalid':_0x108ed5('0x2740'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x108ed5('0x84d'),'ringinuse':_0x108ed5('0x84d'),'onhold':_0x108ed5('0x90f')},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x108ed5('0x2432')},'channelStatusOut':{'ring':_0x108ed5('0x24dc'),'up':_0x108ed5('0x2778'),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x197270=_0x1d7fd2;_0x2e6c90[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x46d')];function _0x2e6c90(_0x221c43,_0x211d1e,_0xe0715a){var _0x2b9851=_0xb635d2,_0x160d4f=this;_0xe0715a['disconnect'](),_0xe0715a[_0x2b9851('0x19d9')](),_0x160d4f[_0x2b9851('0xc7b')]=0x0;switch(_0x211d1e[_0x2b9851('0x1a60')][_0x2b9851('0x2623')]){case _0x2b9851('0x342'):_0x160d4f[_0x2b9851('0xc7b')]=0x0;break;case'app.motiondialer.realtime.queues':_0x160d4f[_0x2b9851('0xc7b')]=0x1;break;case _0x2b9851('0x1c36'):_0x160d4f['selectedTab']=0x2;break;case _0x2b9851('0x1a30'):_0x160d4f[_0x2b9851('0xc7b')]=0x3;break;case _0x2b9851('0x26b5'):_0x160d4f[_0x2b9851('0xc7b')]=0x4;break;case'app.motiondialer.realtime.ivr_campaigns':_0x160d4f[_0x2b9851('0xc7b')]=0x5;break;default:_0x160d4f['selectedTab']=0x0,_0x211d1e['go'](_0x2b9851('0x342'));}_0x221c43[_0x2b9851('0x107')](_0x2b9851('0xa10'),function(_0x1aeb2d,_0x23a533){var _0x44b05f=_0x2b9851;if(_0x1aeb2d!==_0x23a533)switch(_0x1aeb2d){case 0x0:_0x211d1e['go'](_0x44b05f('0x342'));break;case 0x1:_0x211d1e['go'](_0x44b05f('0x10af'));break;case 0x2:_0x211d1e['go']('app.motiondialer.realtime.queue_calls');break;case 0x3:_0x211d1e['go'](_0x44b05f('0x1a30'));break;case 0x4:_0x211d1e['go'](_0x44b05f('0x26b5'));break;case 0x5:_0x211d1e['go'](_0x44b05f('0x87'));break;default:_0x211d1e['go']('app.motiondialer.realtime.agents');}});}const _0x419f9a=_0x2e6c90;_0x4ec88f[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x4ec88f(_0x3eb06e){var _0x72f017=_0xb635d2;_0x3eb06e['state'](_0x72f017('0xa5a'),{'url':_0x72f017('0x18ff'),'views':{'content@app':{'templateUrl':_0x44ddd6,'controller':_0x72f017('0xd0b')}},'resolve':{'userProfile':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x41f668(_0x465750,_0x2c47c1){var _0x33577c=_0x72f017;return _0x2c47c1[_0x33577c('0x179e')](_0x33577c('0xd14'))?null:_0x465750['resolve'](_0x33577c('0x455'),{'fields':_0x33577c('0x1b71'),'id':_0x2c47c1[_0x33577c('0x1ef8')]()[_0x33577c('0x1d04')]});}],'userProfileSection':['apiResolver',_0x72f017('0x2730'),function _0x23fb3a(_0x318acb,_0x21190e){var _0xf2750=_0x72f017;return _0x21190e[_0xf2750('0x179e')]('admin')?null:_0x318acb[_0xf2750('0xcd6')](_0xf2750('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x21190e[_0xf2750('0x1ef8')]()[_0xf2750('0x1d04')],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x72f017('0x1d72')]('app.motiondialer.realtime.agents',{'url':_0x72f017('0x11db'),'controller':'AgentsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x387be9,'resolve':{'pauses':['apiResolver',function _0x3c1add(_0x44eb22){var _0x3fc94e=_0x72f017;return _0x44eb22[_0x3fc94e('0xcd6')](_0x3fc94e('0x2414'),{'nolimit':!![]});}],'agents':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0xfdf720(_0x17ac1a,_0x39d7ac){var _0x4c3cd7=_0x72f017;return _0x39d7ac['hasRole']('admin')?_0x17ac1a['resolve'](_0x4c3cd7('0x24a9'),{'fields':_0x4c3cd7('0x11bb'),'role':_0x4c3cd7('0x108'),'sort':_0x4c3cd7('0xe11'),'nolimit':!![]}):_0x17ac1a[_0x4c3cd7('0xcd6')](_0x4c3cd7('0x197d'),{'id':_0x39d7ac[_0x4c3cd7('0x1ef8')]()['userProfileId'],'section':'Agents','fields':_0x4c3cd7('0x11bb'),'role':_0x4c3cd7('0x108'),'sort':_0x4c3cd7('0xe11'),'nolimit':!![]});}],'userProfile':[_0x72f017('0x292'),'Auth',function _0x944ae2(_0x11139d,_0x585e3f){var _0x176204=_0x72f017;return _0x585e3f['hasRole'](_0x176204('0xd14'))?null:_0x11139d[_0x176204('0xcd6')](_0x176204('0x455'),{'fields':'id,name,crudPermissions','id':_0x585e3f[_0x176204('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x15a856(_0x180713,_0x6241cd){var _0x96318a=_0x72f017;return _0x6241cd[_0x96318a('0x179e')](_0x96318a('0xd14'))?null:_0x180713['resolve'](_0x96318a('0x264e'),{'fields':_0x96318a('0x12d6'),'userProfileId':_0x6241cd['getCurrentUser']()[_0x96318a('0x1d04')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function _0x43f116(_0x6a1023){var _0x154cf3=_0x72f017;return _0x6a1023[_0x154cf3('0xcd6')](_0x154cf3('0x1fdb'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x72f017('0x1d72')](_0x72f017('0x10af'),{'url':'/queues','controller':_0x72f017('0x1060'),'templateUrl':_0x2a3aaf,'resolve':{'queues':['apiResolver',_0x72f017('0x2730'),function _0x1bdef4(_0xf0da9c,_0x102ae1){var _0x4be707=_0x72f017;return _0x102ae1['hasRole'](_0x4be707('0xd14'))?_0xf0da9c[_0x4be707('0xcd6')](_0x4be707('0x1382'),{'type':_0x4be707('0x1fdf'),'sort':_0x4be707('0x7e8'),'limit':0xa,'offset':0x0}):_0xf0da9c[_0x4be707('0xcd6')](_0x4be707('0x197d'),{'id':_0x102ae1[_0x4be707('0x1ef8')]()[_0x4be707('0x1d04')],'section':_0x4be707('0x1a2a'),'channel':_0x4be707('0xe74'),'type':_0x4be707('0x1fdf'),'sort':_0x4be707('0x7e8'),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver','Auth',function _0x513ded(_0x49e7f2,_0x4eea48){var _0x445dcc=_0x72f017;return _0x4eea48[_0x445dcc('0x179e')](_0x445dcc('0xd14'))?null:_0x49e7f2[_0x445dcc('0xcd6')](_0x445dcc('0x455'),{'fields':_0x445dcc('0x1b71'),'id':_0x4eea48[_0x445dcc('0x1ef8')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x72f017('0x2730'),function _0x5d5e9b(_0x1117d8,_0x518be1){var _0xf6300a=_0x72f017;return _0x518be1[_0xf6300a('0x179e')](_0xf6300a('0xd14'))?null:_0x1117d8[_0xf6300a('0xcd6')](_0xf6300a('0x264e'),{'fields':_0xf6300a('0x12d6'),'userProfileId':_0x518be1[_0xf6300a('0x1ef8')]()[_0xf6300a('0x1d04')],'sectionId':0x5dd});}],'rpcQueues':['apiResolver',function _0x107b7b(_0x52c5fc){var _0x3e5d4a=_0x72f017;return _0x52c5fc[_0x3e5d4a('0xcd6')](_0x3e5d4a('0x1946'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x72f017('0x1d72')](_0x72f017('0x1c36'),{'url':_0x72f017('0x45d'),'controller':_0x72f017('0x331'),'templateUrl':_0x5d65b4,'resolve':{'agents':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x7c650c(_0x2f12e0,_0x1f23cb){var _0x36917a=_0x72f017;return _0x1f23cb[_0x36917a('0x179e')](_0x36917a('0xd14'))?_0x2f12e0['resolve'](_0x36917a('0x24a9'),{'fields':_0x36917a('0x26c5'),'role':_0x36917a('0x108'),'nolimit':!![]}):_0x2f12e0[_0x36917a('0xcd6')](_0x36917a('0x197d'),{'id':_0x1f23cb[_0x36917a('0x1ef8')]()[_0x36917a('0x1d04')],'section':_0x36917a('0xd61'),'fields':'id,name,role,context','role':_0x36917a('0x108'),'nolimit':!![]});}],'queues':[_0x72f017('0x292'),'Auth',function _0x4f2353(_0x61d370,_0x550891){var _0x3d187e=_0x72f017;return _0x550891[_0x3d187e('0x179e')]('admin')?_0x61d370[_0x3d187e('0xcd6')](_0x3d187e('0x1382'),{'type':_0x3d187e('0x1fdf'),'sort':_0x3d187e('0x7e8'),'nolimit':!![]}):_0x61d370['resolve'](_0x3d187e('0x197d'),{'id':_0x550891[_0x3d187e('0x1ef8')]()['userProfileId'],'section':'QueueCampaigns','channel':_0x3d187e('0xe74'),'type':_0x3d187e('0x1fdf'),'sort':'-updatedAt','nolimit':!![]});}],'userProfile':['apiResolver',_0x72f017('0x2730'),function _0xb93edf(_0x17cd68,_0x4556c2){var _0x168b70=_0x72f017;return _0x4556c2[_0x168b70('0x179e')](_0x168b70('0xd14'))?null:_0x17cd68[_0x168b70('0xcd6')](_0x168b70('0x455'),{'fields':_0x168b70('0x1b71'),'id':_0x4556c2[_0x168b70('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x16807e(_0xad4488,_0xe95c66){var _0x5141ea=_0x72f017;return _0xe95c66[_0x5141ea('0x179e')](_0x5141ea('0xd14'))?null:_0xad4488[_0x5141ea('0xcd6')](_0x5141ea('0x264e'),{'fields':_0x5141ea('0x12d6'),'userProfileId':_0xe95c66['getCurrentUser']()[_0x5141ea('0x1d04')],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':[_0x72f017('0x292'),function _0x1febc3(_0x308e8a){var _0x4d6cfd=_0x72f017;return _0x308e8a[_0x4d6cfd('0xcd6')](_0x4d6cfd('0x9a4'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x72f017('0x1d72')]('app.motiondialer.realtime.abandonedcalls',{'url':_0x72f017('0x1bd2'),'controller':_0x72f017('0x940'),'templateUrl':_0x365b5c,'resolve':{'agents':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x560633(_0x456d70,_0x3d35b5){var _0x5e9c04=_0x72f017;return _0x3d35b5['hasRole'](_0x5e9c04('0xd14'))?_0x456d70[_0x5e9c04('0xcd6')](_0x5e9c04('0x24a9'),{'fields':_0x5e9c04('0x26c5'),'role':'agent','nolimit':!![]}):_0x456d70[_0x5e9c04('0xcd6')](_0x5e9c04('0x197d'),{'id':_0x3d35b5[_0x5e9c04('0x1ef8')]()[_0x5e9c04('0x1d04')],'section':_0x5e9c04('0xd61'),'fields':_0x5e9c04('0x26c5'),'role':'agent','nolimit':!![]});}],'queues':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0xdb115(_0x245431,_0x17d7e2){var _0x415cb4=_0x72f017;return _0x17d7e2['hasRole'](_0x415cb4('0xd14'))?_0x245431[_0x415cb4('0xcd6')](_0x415cb4('0x1382'),{'type':_0x415cb4('0x1fdf'),'sort':_0x415cb4('0x7e8'),'nolimit':!![]}):_0x245431['resolve']('userProfile@getResources',{'id':_0x17d7e2['getCurrentUser']()[_0x415cb4('0x1d04')],'section':'QueueCampaigns','channel':_0x415cb4('0xe74'),'type':_0x415cb4('0x1fdf'),'sort':_0x415cb4('0x7e8'),'nolimit':!![]});}],'dispositions':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x59449d(_0x48c63e,_0x356fde){var _0x1240ae=_0x72f017;return _0x356fde['hasRole'](_0x1240ae('0xd14'))?_0x48c63e[_0x1240ae('0xcd6')](_0x1240ae('0xb91'),{'fields':_0x1240ae('0x196d'),'sort':_0x1240ae('0x7e8'),'MailAccountId':'null','FaxAccountId':_0x1240ae('0x1046'),'SmsAccountId':_0x1240ae('0x1046'),'WhatsappAccountId':_0x1240ae('0x1046'),'OpenchannelAccountId':_0x1240ae('0x1046'),'ChatWebsiteId':_0x1240ae('0x1046'),'ListId':_0x1240ae('0x1046'),'nolimit':!![]}):_0x48c63e[_0x1240ae('0xcd6')]('userProfile@getResources',{'id':_0x356fde[_0x1240ae('0x1ef8')]()['userProfileId'],'section':_0x1240ae('0x23f6'),'fields':_0x1240ae('0xce2'),'sort':'-updatedAt','MailAccountId':'null','FaxAccountId':_0x1240ae('0x1046'),'SmsAccountId':_0x1240ae('0x1046'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x1240ae('0x1046'),'ChatWebsiteId':_0x1240ae('0x1046'),'ListId':_0x1240ae('0x1046'),'nolimit':!![]});}],'userProfile':['apiResolver','Auth',function _0x47cb7c(_0x6d01f6,_0x5a76ba){var _0x4410bd=_0x72f017;return _0x5a76ba[_0x4410bd('0x179e')](_0x4410bd('0xd14'))?null:_0x6d01f6[_0x4410bd('0xcd6')](_0x4410bd('0x455'),{'fields':_0x4410bd('0x1b71'),'id':_0x5a76ba[_0x4410bd('0x1ef8')]()[_0x4410bd('0x1d04')]});}],'userProfileSection':[_0x72f017('0x292'),'Auth',function _0x3222d2(_0x41d602,_0x58bd9b){var _0x1ef58b=_0x72f017;return _0x58bd9b[_0x1ef58b('0x179e')](_0x1ef58b('0xd14'))?null:_0x41d602[_0x1ef58b('0xcd6')]('userProfileSection@get',{'fields':_0x1ef58b('0x12d6'),'userProfileId':_0x58bd9b[_0x1ef58b('0x1ef8')]()[_0x1ef58b('0x1d04')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x72f017('0x26b5'),{'url':_0x72f017('0x2369'),'controller':_0x72f017('0x27a0'),'templateUrl':_0x5e6bc2,'resolve':{'queues':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x31f712(_0x340574,_0x3f20ed){var _0x3ab121=_0x72f017;return _0x3f20ed[_0x3ab121('0x179e')](_0x3ab121('0xd14'))?_0x340574[_0x3ab121('0xcd6')](_0x3ab121('0x1382'),{'type':_0x3ab121('0x1fdf'),'fields':'id,name','sort':_0x3ab121('0x7e8'),'limit':0xa,'offset':0x0}):_0x340574[_0x3ab121('0xcd6')](_0x3ab121('0x197d'),{'id':_0x3f20ed[_0x3ab121('0x1ef8')]()['userProfileId'],'section':_0x3ab121('0x1a2a'),'channel':_0x3ab121('0xe74'),'type':'outbound','sort':_0x3ab121('0x7e8'),'nolimit':!![]});}],'userProfile':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x5b637f(_0x5cec9d,_0x19c2c8){var _0x2ffc2a=_0x72f017;return _0x19c2c8[_0x2ffc2a('0x179e')](_0x2ffc2a('0xd14'))?null:_0x5cec9d['resolve'](_0x2ffc2a('0x455'),{'fields':_0x2ffc2a('0x1b71'),'id':_0x19c2c8[_0x2ffc2a('0x1ef8')]()[_0x2ffc2a('0x1d04')]});}],'userProfileSection':['apiResolver',_0x72f017('0x2730'),function _0x442410(_0x229c36,_0xbf1e72){var _0x35aa14=_0x72f017;return _0xbf1e72[_0x35aa14('0x179e')](_0x35aa14('0xd14'))?null:_0x229c36[_0x35aa14('0xcd6')](_0x35aa14('0x264e'),{'fields':_0x35aa14('0x12d6'),'userProfileId':_0xbf1e72[_0x35aa14('0x1ef8')]()[_0x35aa14('0x1d04')],'sectionId':0x5dd});}],'rpcQueues':['apiResolver',function _0x22161a(_0xbee3a9){var _0x51bb52=_0x72f017;return _0xbee3a9[_0x51bb52('0xcd6')]('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x5e6})[_0x72f017('0x1d72')](_0x72f017('0x87'),{'url':'/ivr_campaigns','controller':_0x72f017('0x156f'),'templateUrl':_0x2e2f58,'resolve':{'campaigns':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x96af1b(_0x379a2b,_0x340dcd){var _0x269a82=_0x72f017;return _0x340dcd[_0x269a82('0x179e')](_0x269a82('0xd14'))?_0x379a2b[_0x269a82('0xcd6')](_0x269a82('0x2220'),{'sort':_0x269a82('0x7e8'),'limit':0xa,'offset':0x0}):_0x379a2b[_0x269a82('0xcd6')]('userProfile@getResources',{'id':_0x340dcd[_0x269a82('0x1ef8')]()['userProfileId'],'section':_0x269a82('0x1963'),'sort':_0x269a82('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x72f017('0x292'),'Auth',function _0x6e7882(_0x98eb08,_0xf02e26){var _0x39731d=_0x72f017;return _0xf02e26[_0x39731d('0x179e')]('admin')?null:_0x98eb08[_0x39731d('0xcd6')](_0x39731d('0x455'),{'fields':'id,name,crudPermissions','id':_0xf02e26['getCurrentUser']()[_0x39731d('0x1d04')]});}],'userProfileSection':[_0x72f017('0x292'),_0x72f017('0x2730'),function _0x494418(_0x21751d,_0x1d6ce3){var _0xa8bd0a=_0x72f017;return _0x1d6ce3['hasRole'](_0xa8bd0a('0xd14'))?null:_0x21751d['resolve'](_0xa8bd0a('0x264e'),{'fields':_0xa8bd0a('0x12d6'),'userProfileId':_0x1d6ce3[_0xa8bd0a('0x1ef8')]()[_0xa8bd0a('0x1d04')],'sectionId':0x5de});}],'rpcCampaigns':[_0x72f017('0x292'),function _0x3cc238(_0x4fdb2b){var _0xbd4d78=_0x72f017;return _0x4fdb2b[_0xbd4d78('0xcd6')](_0xbd4d78('0xa8f'));}]},'authenticate':!![],'permissionId':0x5e6});}angular['module'](_0xb635d2('0xa5a'),[])[_0xb635d2('0x1990')](_0x4ec88f)[_0xb635d2('0x1a79')](_0xb635d2('0xad1'),_0x745b3c)[_0xb635d2('0x1a79')]('AgentsMotionDialerRealtimeController',_0x1ba86d)[_0xb635d2('0x1a79')](_0xb635d2('0xa4a'),_0x3c2a3d)[_0xb635d2('0x1a79')]('QueueCallsMotionDialerRealtimeController',_0x2288d5)[_0xb635d2('0x1a79')](_0xb635d2('0x2263'),_0x470e93)['controller'](_0xb635d2('0x1551'),_0x272704)['controller'](_0xb635d2('0x68e'),_0x58be6f)[_0xb635d2('0x1324')](_0xb635d2('0x20d'),_0x197270)['controller'](_0xb635d2('0x13c'),_0x419f9a);const _0x2125f8=_0x59426a['p']+_0xb635d2('0xf7d'),_0x41b220=_0x59426a['p']+_0xb635d2('0x23da'),_0x172a1b=_0x59426a['p']+_0xb635d2('0x644'),_0x4acf10=_0x59426a['p']+_0xb635d2('0xe84');_0x3a4daf[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state','$location','$mdDialog','$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x10e8'),_0xb635d2('0xf87'),_0xb635d2('0xffc'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x3a4daf(_0x2eb2da,_0x151951,_0x280ebb,_0x3cda06,_0x496696,_0x2023a9,_0x12f369,_0x3690e2,_0x101301,_0x4e2e93,_0x320e4b,_0x58a942,_0x2b089a,_0x42dfd8){var _0x5b4006=_0xb635d2,_0x57507f=this;_0x57507f[_0x5b4006('0x15a5')]=_0x320e4b[_0x5b4006('0x1ef8')](),_0x57507f[_0x5b4006('0xcd2')]=[],_0x57507f[_0x5b4006('0x22f1')]=_0x2b089a,_0x57507f['license']=_0x58a942,_0x57507f[_0x5b4006('0xb3d')]=_0x42dfd8,_0x57507f[_0x5b4006('0x1ccb')]={},_0x57507f[_0x5b4006('0x25ac')]=_0x57507f[_0x5b4006('0x22f1')]&&_0x57507f['setting'][_0x5b4006('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x57507f[_0x5b4006('0x13e4')]=_0x5b4006('0xec6'),_0x57507f['ivrCampaign']=angular[_0x5b4006('0x89')](_0x101301),_0x57507f[_0x5b4006('0x10e8')]=_0x3690e2,_0x57507f[_0x5b4006('0x241e')]=![];!_0x57507f[_0x5b4006('0xf87')]&&(_0x57507f[_0x5b4006('0xf87')]={'active':!![],'type':_0x5b4006('0x989'),'dialCheckDuplicateType':_0x5b4006('0x2210'),'dialCutDigit':0x0,'limitCalls':0x1e,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialGlobalMaxRetry':0x4,'dialCongestionMaxRetry':0x3,'dialCongestionRetryFrequency':0x96,'dialBusyMaxRetry':0x3,'dialBusyRetryFrequency':0x96,'dialNoAnswerMaxRetry':0x3,'dialNoAnswerRetryFrequency':0x96,'dialNoSuchNumberMaxRetry':0x3,'dialNoSuchNumberRetryFrequency':0x96,'dialDropMaxRetry':0x3,'dialDropRetryFrequency':0x96,'dialAbandonedMaxRetry':0x3,'dialAbandonedRetryFrequency':0x96,'dialMachineMaxRetry':0x3,'dialMachineRetryFrequency':0x96,'dialAgentRejectMaxRetry':0x3,'dialAgentRejectRetryFrequency':0x96,'dialOrderByScheduledAt':_0x5b4006('0x1e44'),'dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x57507f[_0x5b4006('0x13e4')]=_0x5b4006('0x1717'),_0x57507f['newIvrCampaign']=!![]);_0x57507f[_0x5b4006('0xc0f')]=_0x5627f1,_0x57507f[_0x5b4006('0xb0d')]=_0x400d07,_0x57507f[_0x5b4006('0x12db')]=_0xadecb2,_0x57507f[_0x5b4006('0x2635')]=_0x1be233,_0x57507f[_0x5b4006('0x2584')]=_0x37270e,_0x320e4b[_0x5b4006('0x179e')](_0x5b4006('0xd14'))?_0x4e2e93[_0x5b4006('0x1397')][_0x5b4006('0x22d5')]({'fields':_0x5b4006('0x104'),'sort':_0x5b4006('0x2623'),'table':_0x5b4006('0x2206')})[_0x5b4006('0xe59')][_0x5b4006('0xe19')](function(_0x5801e3){var _0x19e4ab=_0x5b4006;_0x57507f[_0x19e4ab('0x155e')]=_0x5801e3[_0x19e4ab('0x16a7')]||[];})['catch'](function(_0x16cc71){var _0x33a854=_0x5b4006;_0x12f369[_0x33a854('0x8c8')]({'title':_0x16cc71[_0x33a854('0x2833')]?_0x33a854('0x27f2')+_0x16cc71[_0x33a854('0x2833')]+_0x33a854('0x1b7c')+_0x16cc71[_0x33a854('0x1fd7')]:_0x33a854('0x1e6d'),'msg':_0x16cc71[_0x33a854('0x11d0')]?JSON[_0x33a854('0x3ad')](_0x16cc71[_0x33a854('0x11d0')]):_0x16cc71[_0x33a854('0x94f')]()});}):_0x4e2e93[_0x5b4006('0x1397')][_0x5b4006('0x22d5')]({'fields':_0x5b4006('0x104'),'sort':_0x5b4006('0x2623'),'table':'true'})['$promise']['then'](function(_0x9d2242){var _0x4ccf1d=_0x5b4006;_0x57507f[_0x4ccf1d('0x155e')]=_0x9d2242[_0x4ccf1d('0x16a7')]||[];})[_0x5b4006('0xe19')](function(){var _0x44b35c=_0x5b4006;return _0x4e2e93[_0x44b35c('0xb59')][_0x44b35c('0x22d5')]({'userProfileId':_0x57507f['currentUser'][_0x44b35c('0x1d04')],'sectionId':0x3f3})[_0x44b35c('0xe59')];})[_0x5b4006('0xe19')](function(_0x494711){var _0x79f0b=_0x5b4006,_0x388aa1=_0x494711&&_0x494711[_0x79f0b('0x16a7')]?_0x494711[_0x79f0b('0x16a7')][0x0]:null;if(!_0x388aa1)_0x57507f[_0x79f0b('0x155e')]=[];else{if(!_0x388aa1[_0x79f0b('0x11fd')])return _0x4e2e93[_0x79f0b('0xd49')][_0x79f0b('0x22d5')]({'sectionId':_0x388aa1['id']})['$promise'][_0x79f0b('0xe19')](function(_0x29f7a2){var _0x34ed53=_0x79f0b,_0x2e3d3d=_0x32d445()[_0x34ed53('0x65a')](_0x29f7a2['rows'],function(_0x43960d){var _0x3d583b=_0x34ed53;return _0x32d445()[_0x3d583b('0xf15')](_0x57507f[_0x3d583b('0x155e')],{'id':_0x43960d[_0x3d583b('0x1104')]});});_0x57507f[_0x34ed53('0x155e')]['forEach'](function(_0x505991){var _0x553700=_0x34ed53;!_0x32d445()[_0x553700('0x201a')](_0x2e3d3d,['id',_0x505991['id']])&&(_0x505991['canSelect']=![]),_0x2e3d3d[_0x553700('0xb76')](_0x505991);}),_0x57507f[_0x34ed53('0x155e')]=_0x2e3d3d;});}})[_0x5b4006('0x223b')](function(_0x2ed3d9){var _0x4e7d75=_0x5b4006;_0x12f369[_0x4e7d75('0x8c8')]({'title':_0x2ed3d9['status']?_0x4e7d75('0x27f2')+_0x2ed3d9['status']+'\x20-\x20'+_0x2ed3d9[_0x4e7d75('0x1fd7')]:'SYSTEM:GETtrunks','msg':_0x2ed3d9['data']?JSON[_0x4e7d75('0x3ad')](_0x2ed3d9[_0x4e7d75('0x11d0')]):_0x2ed3d9[_0x4e7d75('0x94f')]()});}),_0x320e4b[_0x5b4006('0x179e')](_0x5b4006('0xd14'))?_0x4e2e93[_0x5b4006('0x20c9')][_0x5b4006('0x22d5')]({'fields':_0x5b4006('0x104'),'sort':_0x5b4006('0x2623')})['$promise'][_0x5b4006('0xe19')](function(_0x185888){var _0x2d43c5=_0x5b4006;_0x57507f[_0x2d43c5('0x1d39')]=_0x185888[_0x2d43c5('0x16a7')]||[];})[_0x5b4006('0x223b')](function(_0x33e0fb){var _0x186f62=_0x5b4006;_0x12f369['error']({'title':_0x33e0fb[_0x186f62('0x2833')]?_0x186f62('0x27f2')+_0x33e0fb['status']+'\x20-\x20'+_0x33e0fb[_0x186f62('0x1fd7')]:'SYSTEM:GET_PROJECTS','msg':_0x33e0fb[_0x186f62('0x11d0')]?JSON[_0x186f62('0x3ad')](_0x33e0fb[_0x186f62('0x11d0')]):_0x33e0fb['toString']()});}):_0x4e2e93[_0x5b4006('0x20c9')][_0x5b4006('0x22d5')]({'fields':_0x5b4006('0x104'),'sort':_0x5b4006('0x2623')})['$promise'][_0x5b4006('0xe19')](function(_0x3e375f){var _0x2aa86b=_0x5b4006;_0x57507f[_0x2aa86b('0x1d39')]=_0x3e375f[_0x2aa86b('0x16a7')]||[];})['then'](function(){var _0xe74de2=_0x5b4006;return _0x4e2e93[_0xe74de2('0xb59')][_0xe74de2('0x22d5')]({'userProfileId':_0x57507f[_0xe74de2('0x15a5')][_0xe74de2('0x1d04')],'sectionId':0x44f})[_0xe74de2('0xe59')];})[_0x5b4006('0xe19')](function(_0x46e13b){var _0x222c5b=_0x5b4006,_0x249c06=_0x46e13b&&_0x46e13b[_0x222c5b('0x16a7')]?_0x46e13b[_0x222c5b('0x16a7')][0x0]:null;if(!_0x249c06){var _0x490d7e=[],_0x1dab2d=null;_0x57507f[_0x222c5b('0xf87')]&&(_0x1dab2d=_0x32d445()[_0x222c5b('0xf15')](_0x57507f[_0x222c5b('0x1d39')],{'id':Number(_0x57507f['ivrCampaign'][_0x222c5b('0x1785')])}));for(var _0x424695=0x0;_0x424695<_0x57507f[_0x222c5b('0x1d39')][_0x222c5b('0x25ae')];_0x424695++){_0x1dab2d&&_0x57507f[_0x222c5b('0x1d39')][_0x424695]['id']===_0x1dab2d['id']&&(_0x57507f[_0x222c5b('0x1d39')][_0x424695][_0x222c5b('0x1e9d')]=![],_0x490d7e[_0x222c5b('0xb76')](_0x57507f['projects'][_0x424695]));}_0x57507f['projects']=_0x490d7e;}else{if(!_0x249c06[_0x222c5b('0x11fd')])return _0x4e2e93['userProfileResource']['get']({'sectionId':_0x249c06['id']})[_0x222c5b('0xe59')][_0x222c5b('0xe19')](function(_0x1d1297){var _0xaf856=_0x222c5b,_0x231bc1=_0x32d445()[_0xaf856('0x65a')](_0x1d1297[_0xaf856('0x16a7')],function(_0xbe096e){var _0x4db14a=_0xaf856;return _0x32d445()[_0x4db14a('0xf15')](_0x57507f[_0x4db14a('0x1d39')],{'id':_0xbe096e[_0x4db14a('0x1104')]});}),_0x346f19=null;_0x57507f[_0xaf856('0xf87')]&&(_0x346f19=_0x32d445()['find'](_0x57507f[_0xaf856('0x1d39')],{'id':Number(_0x57507f['ivrCampaign']['SquareProjectId'])}));if(_0x346f19&&!_0x32d445()['some'](_0x231bc1,['id',_0x346f19['id']])){var _0x1dc38e=_0x32d445()[_0xaf856('0xf15')](_0x57507f[_0xaf856('0x1d39')],{'id':_0x346f19['id']});_0x1dc38e[_0xaf856('0x1e9d')]=![],_0x231bc1[_0xaf856('0xb76')](_0x1dc38e);}_0x57507f[_0xaf856('0x1d39')]=_0x231bc1;});}})['catch'](function(_0x434461){var _0x3a6fbd=_0x5b4006;_0x12f369['error']({'title':_0x434461[_0x3a6fbd('0x2833')]?'API:'+_0x434461[_0x3a6fbd('0x2833')]+_0x3a6fbd('0x1b7c')+_0x434461[_0x3a6fbd('0x1fd7')]:_0x3a6fbd('0xa18'),'msg':_0x434461[_0x3a6fbd('0x11d0')]?JSON['stringify'](_0x434461[_0x3a6fbd('0x11d0')]):_0x434461['toString']()});}),_0x320e4b['hasRole'](_0x5b4006('0xd14'))?_0x4e2e93['interval'][_0x5b4006('0x22d5')]({'fields':_0x5b4006('0x104'),'sort':'name','IntervalId':_0x5b4006('0x1046')})[_0x5b4006('0xe59')][_0x5b4006('0xe19')](function(_0x23fe19){var _0x3ba5a7=_0x5b4006;_0x57507f[_0x3ba5a7('0x134c')]=_0x23fe19['rows']||[];})['catch'](function(_0x831a7f){var _0x335814=_0x5b4006;_0x12f369[_0x335814('0x8c8')]({'title':_0x831a7f[_0x335814('0x2833')]?_0x335814('0x27f2')+_0x831a7f['status']+_0x335814('0x1b7c')+_0x831a7f['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x831a7f[_0x335814('0x11d0')]?JSON[_0x335814('0x3ad')](_0x831a7f[_0x335814('0x11d0')]):_0x831a7f['toString']()});}):_0x4e2e93[_0x5b4006('0x134c')][_0x5b4006('0x22d5')]({'fields':_0x5b4006('0x104'),'sort':_0x5b4006('0x2623'),'IntervalId':'null'})[_0x5b4006('0xe59')][_0x5b4006('0xe19')](function(_0x2c6988){var _0x434230=_0x5b4006;_0x57507f[_0x434230('0x134c')]=_0x2c6988[_0x434230('0x16a7')]||[];})[_0x5b4006('0xe19')](function(){var _0x123e6b=_0x5b4006;return _0x4e2e93['userProfileSection'][_0x123e6b('0x22d5')]({'userProfileId':_0x57507f[_0x123e6b('0x15a5')][_0x123e6b('0x1d04')],'sectionId':0x3ec})['$promise'];})[_0x5b4006('0xe19')](function(_0x3a3704){var _0x422dbe=_0x5b4006,_0x1f5b61=_0x3a3704&&_0x3a3704[_0x422dbe('0x16a7')]?_0x3a3704['rows'][0x0]:null;if(!_0x1f5b61){var _0x8b3318=[],_0x4f6f01=null;_0x57507f[_0x422dbe('0xf87')]&&(_0x4f6f01=_0x32d445()[_0x422dbe('0xf15')](_0x57507f[_0x422dbe('0x134c')],{'id':Number(_0x57507f[_0x422dbe('0xf87')][_0x422dbe('0x1fc1')])}));for(var _0x219c4d=0x0;_0x219c4d<_0x57507f[_0x422dbe('0x134c')][_0x422dbe('0x25ae')];_0x219c4d++){_0x4f6f01&&_0x57507f['interval'][_0x219c4d]['id']===_0x4f6f01['id']&&(_0x57507f[_0x422dbe('0x134c')][_0x219c4d][_0x422dbe('0x1e9d')]=![],_0x8b3318[_0x422dbe('0xb76')](_0x57507f['interval'][_0x219c4d]));}_0x57507f[_0x422dbe('0x134c')]=_0x8b3318;}else{if(!_0x1f5b61[_0x422dbe('0x11fd')])return _0x4e2e93[_0x422dbe('0xd49')]['get']({'sectionId':_0x1f5b61['id']})[_0x422dbe('0xe59')][_0x422dbe('0xe19')](function(_0x47629b){var _0x6a62cb=_0x422dbe,_0x1de08b=_0x32d445()[_0x6a62cb('0x65a')](_0x47629b[_0x6a62cb('0x16a7')],function(_0x320f8e){var _0x29d233=_0x6a62cb;return _0x32d445()[_0x29d233('0xf15')](_0x57507f[_0x29d233('0x134c')],{'id':_0x320f8e[_0x29d233('0x1104')]});}),_0x31c09f=null;_0x57507f[_0x6a62cb('0xf87')]&&(_0x31c09f=_0x32d445()[_0x6a62cb('0xf15')](_0x57507f['interval'],{'id':Number(_0x57507f['ivrCampaign'][_0x6a62cb('0x1fc1')])}));if(_0x31c09f&&!_0x32d445()[_0x6a62cb('0x201a')](_0x1de08b,['id',_0x31c09f['id']])){var _0x19404c=_0x32d445()['find'](_0x57507f['interval'],{'id':_0x31c09f['id']});_0x19404c[_0x6a62cb('0x1e9d')]=![],_0x1de08b['push'](_0x19404c);}_0x57507f[_0x6a62cb('0x134c')]=_0x1de08b;});}})[_0x5b4006('0x223b')](function(_0x52276c){var _0x319543=_0x5b4006;_0x12f369[_0x319543('0x8c8')]({'title':_0x52276c[_0x319543('0x2833')]?'API:'+_0x52276c['status']+_0x319543('0x1b7c')+_0x52276c[_0x319543('0x1fd7')]:_0x319543('0x2051'),'msg':_0x52276c[_0x319543('0x11d0')]?JSON[_0x319543('0x3ad')](_0x52276c['data']):_0x52276c['toString']()});});function _0x5627f1(){var _0x1a1764=_0x5b4006;_0x57507f[_0x1a1764('0xcd2')]=[],_0x4e2e93['campaign']['save'](_0x57507f[_0x1a1764('0xf87')])[_0x1a1764('0xe59')][_0x1a1764('0xe19')](function(_0x963aa0){var _0x4a6d16=_0x1a1764;_0x57507f[_0x4a6d16('0x10e8')]['unshift'](_0x963aa0[_0x4a6d16('0x250e')]()),_0x12f369[_0x4a6d16('0x425')]({'title':'IvrCampaign\x20properly\x20created','msg':_0x57507f[_0x4a6d16('0xf87')][_0x4a6d16('0x2623')]?_0x57507f[_0x4a6d16('0xf87')][_0x4a6d16('0x2623')]+_0x4a6d16('0x105f'):''}),_0x37270e(_0x963aa0);})[_0x1a1764('0x223b')](function(_0x9084c0){var _0x53688b=_0x1a1764;if(_0x9084c0[_0x53688b('0x11d0')]&&_0x9084c0[_0x53688b('0x11d0')][_0x53688b('0xcd2')]&&_0x9084c0[_0x53688b('0x11d0')][_0x53688b('0xcd2')]['length']){_0x57507f['errors']=_0x9084c0[_0x53688b('0x11d0')][_0x53688b('0xcd2')]||[{'message':_0x9084c0[_0x53688b('0x94f')](),'type':'api.campaign.save'}];for(var _0x2a004c=0x0;_0x2a004c<_0x9084c0[_0x53688b('0x11d0')][_0x53688b('0xcd2')]['length'];_0x2a004c+=0x1){_0x12f369[_0x53688b('0x8c8')]({'title':_0x9084c0[_0x53688b('0x11d0')]['errors'][_0x2a004c][_0x53688b('0x62e')],'msg':_0x9084c0[_0x53688b('0x11d0')][_0x53688b('0xcd2')][_0x2a004c]['message']});}}else _0x12f369[_0x53688b('0x8c8')]({'title':_0x9084c0[_0x53688b('0x2833')]?_0x53688b('0x27f2')+_0x9084c0[_0x53688b('0x2833')]+_0x53688b('0x1b7c')+_0x9084c0[_0x53688b('0x1fd7')]:'api.campaign.save','msg':_0x9084c0[_0x53688b('0x11d0')]?JSON[_0x53688b('0x3ad')](_0x9084c0[_0x53688b('0x11d0')][_0x53688b('0x27e8')]):_0x9084c0['toString']()});});}function _0x400d07(){var _0x2b4c61=_0x5b4006;_0x57507f[_0x2b4c61('0xcd2')]=[],_0x4e2e93['campaign']['update']({'id':_0x57507f[_0x2b4c61('0xf87')]['id']},_0x57507f[_0x2b4c61('0xf87')])[_0x2b4c61('0xe59')][_0x2b4c61('0xe19')](function(_0x463722){var _0x1469cf=_0x2b4c61,_0x1815b0=_0x32d445()[_0x1469cf('0xf15')](_0x57507f[_0x1469cf('0x10e8')],{'id':_0x463722['id']});_0x1815b0&&_0x32d445()[_0x1469cf('0x1d8')](_0x1815b0,_0x32d445()['pick'](_0x463722[_0x1469cf('0x250e')](),_0x32d445()[_0x1469cf('0x1234')](_0x1815b0))),_0x12f369[_0x1469cf('0x425')]({'title':'IvrCampaign\x20properly\x20saved!','msg':_0x57507f['ivrCampaign'][_0x1469cf('0x2623')]?_0x57507f[_0x1469cf('0xf87')][_0x1469cf('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x37270e(_0x463722);})[_0x2b4c61('0x223b')](function(_0x174e22){var _0x2bac06=_0x2b4c61;if(_0x174e22[_0x2bac06('0x11d0')]&&_0x174e22[_0x2bac06('0x11d0')][_0x2bac06('0xcd2')]&&_0x174e22['data'][_0x2bac06('0xcd2')][_0x2bac06('0x25ae')]){_0x57507f[_0x2bac06('0xcd2')]=_0x174e22[_0x2bac06('0x11d0')][_0x2bac06('0xcd2')]||[{'message':_0x174e22[_0x2bac06('0x94f')](),'type':_0x2bac06('0x2295')}];for(var _0x1660e9=0x0;_0x1660e9<_0x174e22[_0x2bac06('0x11d0')][_0x2bac06('0xcd2')]['length'];_0x1660e9++){_0x12f369[_0x2bac06('0x8c8')]({'title':_0x174e22[_0x2bac06('0x11d0')]['errors'][_0x1660e9][_0x2bac06('0x62e')],'msg':_0x174e22[_0x2bac06('0x11d0')]['errors'][_0x1660e9][_0x2bac06('0x27e8')]});}}else _0x12f369[_0x2bac06('0x8c8')]({'title':_0x174e22[_0x2bac06('0x2833')]?_0x2bac06('0x27f2')+_0x174e22[_0x2bac06('0x2833')]+_0x2bac06('0x1b7c')+_0x174e22[_0x2bac06('0x1fd7')]:'api.campaign.update','msg':_0x174e22[_0x2bac06('0x11d0')]?JSON[_0x2bac06('0x3ad')](_0x174e22['data']['message']):_0x174e22[_0x2bac06('0x94f')]()});});}function _0xadecb2(_0x1e0442){var _0x13a484=_0x5b4006;_0x57507f['errors']=[];var _0x3cd27f=_0x3cda06['confirm']()[_0x13a484('0x13e4')](_0x13a484('0x24d0'))[_0x13a484('0xd0')](_0x13a484('0x201d'))[_0x13a484('0x4d1')]('Delete\x20IvrCampaign')['ok']('Delete')[_0x13a484('0x2c1')](_0x13a484('0x8a3'))[_0x13a484('0x1345')](_0x1e0442);_0x3cda06['show'](_0x3cd27f)[_0x13a484('0xe19')](function(){var _0x1a7e95=_0x13a484;_0x4e2e93[_0x1a7e95('0xcc1')][_0x1a7e95('0x229e')]({'id':_0x57507f[_0x1a7e95('0xf87')]['id']})['$promise'][_0x1a7e95('0xe19')](function(){var _0x7a3b6=_0x1a7e95;_0x32d445()[_0x7a3b6('0xa8b')](_0x57507f[_0x7a3b6('0x10e8')],{'id':_0x57507f['ivrCampaign']['id']}),_0x12f369[_0x7a3b6('0x425')]({'title':_0x7a3b6('0xa34'),'msg':(_0x57507f[_0x7a3b6('0xf87')][_0x7a3b6('0x2623')]||_0x7a3b6('0xf87'))+_0x7a3b6('0x2182')}),_0x37270e(_0x57507f[_0x7a3b6('0xf87')]);})[_0x1a7e95('0x223b')](function(_0x5a0439){var _0x3fc4bb=_0x1a7e95;if(_0x5a0439['data']&&_0x5a0439[_0x3fc4bb('0x11d0')]['errors']&&_0x5a0439[_0x3fc4bb('0x11d0')][_0x3fc4bb('0xcd2')]['length']){_0x57507f[_0x3fc4bb('0xcd2')]=_0x5a0439[_0x3fc4bb('0x11d0')][_0x3fc4bb('0xcd2')]||[{'message':_0x5a0439[_0x3fc4bb('0x94f')](),'type':'api.campaign.delete'}];for(var _0x5b3c6e=0x0;_0x5b3c6e<_0x5a0439[_0x3fc4bb('0x11d0')][_0x3fc4bb('0xcd2')]['length'];_0x5b3c6e++){_0x12f369['error']({'title':_0x5a0439['data'][_0x3fc4bb('0xcd2')][_0x5b3c6e][_0x3fc4bb('0x62e')],'msg':_0x5a0439[_0x3fc4bb('0x11d0')]['errors'][_0x5b3c6e]['message']});}}else _0x12f369['error']({'title':_0x5a0439[_0x3fc4bb('0x2833')]?'API:'+_0x5a0439[_0x3fc4bb('0x2833')]+_0x3fc4bb('0x1b7c')+_0x5a0439['statusText']:_0x3fc4bb('0x1369'),'msg':_0x5a0439[_0x3fc4bb('0x11d0')]?JSON[_0x3fc4bb('0x3ad')](_0x5a0439['data'][_0x3fc4bb('0x27e8')]):_0x5a0439[_0x3fc4bb('0x27e8')]||_0x5a0439['toString']()});});},function(){});}function _0x1be233(_0x277db4){return _0x277db4===null?undefined:new Date(_0x277db4);}function _0x37270e(_0x3788ba){var _0x855742=_0x5b4006;_0x3cda06[_0x855742('0x11ed')](_0x3788ba);}}const _0x3d5416=_0x3a4daf;_0x3f84b1[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),'ivrCampaign',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x3f84b1(_0x35f470,_0x1816c5,_0x137e0a,_0x13b2a6,_0x2a3e32,_0x35c58f,_0x1e9d2f,_0x3efc29,_0x482842){var _0x381fe4=_0xb635d2,_0x5efff7=this;_0x5efff7[_0x381fe4('0x15a5')]=_0x3efc29[_0x381fe4('0x1ef8')](),_0x5efff7[_0x381fe4('0xf87')]=_0x2a3e32,_0x5efff7['crudPermissions']=_0x482842,_0x5efff7['apiRoute']='voiceQueue',_0x5efff7[_0x381fe4('0x530')]=_0x381fe4('0x1992'),_0x5efff7[_0x381fe4('0x4b4')]='addBlackLists',_0x5efff7[_0x381fe4('0x20ec')]=_0x381fe4('0xc86'),_0x5efff7[_0x381fe4('0xe4b')]=[],_0x5efff7[_0x381fe4('0x1884')]=[],_0x5efff7[_0x381fe4('0x2273')]=[],_0x5efff7[_0x381fe4('0x286c')]=[],_0x5efff7['startingSelectedItems']=[],_0x5efff7[_0x381fe4('0x16e7')]=![],_0x5efff7[_0x381fe4('0x234a')]=![],_0x5efff7[_0x381fe4('0xc00')]={'readOnly':!_0x5efff7['crudPermissions']['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x381fe4('0x2623'),'line1':_0x381fe4('0x2623'),'line2':'','line3':'','labelAll':_0x35c58f[_0x381fe4('0x2159')](_0x381fe4('0x1bba')),'labelSelected':_0x35c58f['instant'](_0x381fe4('0x21c7')),'transferCallback':function _0x3d642c(){var _0x41f912=_0x381fe4,_0xb3034=_0x32d445()[_0x41f912('0x118')](_0x5efff7[_0x41f912('0xf79')],_0x5efff7[_0x41f912('0x2273')],'id');_0x5efff7[_0x41f912('0x16e7')]=_0x32d445()[_0x41f912('0x14b4')](_0xb3034)?![]:!![];}},_0x5efff7[_0x381fe4('0x888')]=_0x277762,_0x5efff7[_0x381fe4('0x27f8')]=_0x4ea856,_0x5efff7[_0x381fe4('0x2584')]=_0x418087;function _0x277762(){var _0x3e6811=_0x381fe4;return _0x3efc29[_0x3e6811('0x179e')](_0x3e6811('0xd14'))?_0x342852()[_0x3e6811('0x223b')](function(_0x320733){var _0x4f169f=_0x3e6811;_0x137e0a[_0x4f169f('0x8c8')]({'title':_0x320733['status']?'API:'+_0x320733[_0x4f169f('0x2833')]+_0x4f169f('0x1b7c')+_0x320733[_0x4f169f('0x1fd7')]:_0x4f169f('0x25ce'),'msg':_0x320733[_0x4f169f('0x2833')]?JSON[_0x4f169f('0x3ad')](_0x320733[_0x4f169f('0x11d0')]):_0x320733['toString']()});}):_0x1cd23c()[_0x3e6811('0xe19')](function(_0xcd956d){var _0x4eafb6=_0x3e6811;return _0x5efff7[_0x4eafb6('0x1e59')]=_0xcd956d,_0x342852();})['catch'](function(_0x5214ae){var _0x4019ae=_0x3e6811;_0x137e0a[_0x4019ae('0x8c8')]({'title':_0x5214ae[_0x4019ae('0x2833')]?_0x4019ae('0x27f2')+_0x5214ae[_0x4019ae('0x2833')]+'\x20-\x20'+_0x5214ae[_0x4019ae('0x1fd7')]:_0x4019ae('0x25ce'),'msg':_0x5214ae[_0x4019ae('0x2833')]?JSON[_0x4019ae('0x3ad')](_0x5214ae[_0x4019ae('0x11d0')]):_0x5214ae['toString']()});});}function _0x1cd23c(){return _0x1816c5(function(_0xab8080,_0x4e4118){var _0x161b1f=a0_0x5325;_0x13b2a6[_0x161b1f('0xb59')][_0x161b1f('0x22d5')]({'userProfileId':_0x5efff7[_0x161b1f('0x15a5')][_0x161b1f('0x1d04')],'name':_0x161b1f('0x2697')})[_0x161b1f('0xe59')][_0x161b1f('0xe19')](function(_0x57ddd7){var _0x5f4ccc=_0x57ddd7&&_0x57ddd7['rows']?_0x57ddd7['rows'][0x0]:null;_0xab8080(_0x5f4ccc);})[_0x161b1f('0x223b')](function(_0x53cf24){_0x4e4118(_0x53cf24);});});}function _0x342852(){return _0x1816c5(function(_0x9cdfbd,_0x32a3a9){var _0x599b62=a0_0x5325;return _0x3cb90f()[_0x599b62('0xe19')](function(_0x127dff){var _0x267e6f=_0x599b62;return _0x5efff7[_0x267e6f('0xe4b')]=_0x127dff[_0x267e6f('0x16a7')]?_0x127dff['rows']:[],_0x3efc29['hasRole']('admin')?_0x127dff:_0x5efff7['section']?_0x5efff7[_0x267e6f('0x1e59')][_0x267e6f('0x11fd')]?_0x127dff:_0x5b1a03():null;})['then'](function(_0x868d2f){var _0x4b4d93=_0x599b62,_0x13b9f=_0x868d2f&&_0x868d2f[_0x4b4d93('0x16a7')]?_0x868d2f[_0x4b4d93('0x16a7')]:[];return _0x5efff7[_0x4b4d93('0x1884')]=_0x32d445()[_0x4b4d93('0x65a')](_0x13b9f,function(_0x2f673c){var _0xb58732=_0x4b4d93;return _0x32d445()[_0xb58732('0xf15')](_0x5efff7['items'],{'id':_0x3efc29[_0xb58732('0x179e')](_0xb58732('0xd14'))||_0x5efff7['section'][_0xb58732('0x11fd')]?_0x2f673c['id']:_0x2f673c['resourceId']});}),_0x5efff7[_0x4b4d93('0x286c')]=angular['copy'](_0x5efff7[_0x4b4d93('0x1884')]),_0x5efff7[_0x4b4d93('0xe4b')][_0x4b4d93('0x1d7e')](function(_0x12cd90){var _0xa8d6d0=_0x4b4d93,_0x5df64d=_0x32d445()[_0xa8d6d0('0xf15')](_0x5efff7[_0xa8d6d0('0x1884')],{'id':_0x12cd90['id']});_0x5efff7[_0xa8d6d0('0x15a5')]['role']===_0xa8d6d0('0xd14')?_0x12cd90[_0xa8d6d0('0x1768')]=!![]:_0x12cd90[_0xa8d6d0('0x1768')]=typeof _0x5df64d!==_0xa8d6d0('0x1143')?!![]:![];}),_0x347a5a();})[_0x599b62('0xe19')](function(_0x9715a4){var _0x57ac75=_0x599b62,_0x57444e=_0x9715a4&&_0x9715a4[_0x57ac75('0x16a7')]?_0x9715a4['rows']:[];_0x5efff7[_0x57ac75('0x2273')]=_0x32d445()[_0x57ac75('0x65a')](_0x57444e,function(_0x4a06f2){var _0x28cd25=_0x57ac75;return _0x32d445()[_0x28cd25('0xf15')](_0x5efff7[_0x28cd25('0xe4b')],{'id':_0x4a06f2['id']});}),_0x5efff7[_0x57ac75('0xf79')]=angular[_0x57ac75('0x89')](_0x5efff7[_0x57ac75('0x2273')]),_0x5efff7[_0x57ac75('0xc00')][_0x57ac75('0x2273')]=_0x5efff7['selectedItems'],_0x5efff7['dualMultiselectOptions']['items']=_0x32d445()['differenceBy'](_0x5efff7[_0x57ac75('0x1884')],_0x5efff7[_0x57ac75('0xc00')][_0x57ac75('0x2273')],'id'),_0x9cdfbd();})[_0x599b62('0x223b')](function(_0x5273c9){_0x32a3a9(_0x5273c9);});});}function _0x5b1a03(){return _0x1816c5(function(_0x1024cd,_0x1b6152){var _0x25c11b=a0_0x5325;return _0x13b2a6['userProfileResource']['get']({'sectionId':_0x5efff7[_0x25c11b('0x1e59')]['id'],'nolimit':!![]})[_0x25c11b('0xe59')]['then'](function(_0x545fec){_0x1024cd(_0x545fec);})['catch'](function(_0x494b0f){_0x1b6152(_0x494b0f);});});}function _0x347a5a(){return _0x1816c5(function(_0x2367bb,_0x59a5c1){var _0x168433=a0_0x5325,_0x592c20=_0x13b2a6[_0x5efff7[_0x168433('0xbe1')]];return _0x592c20[_0x5efff7[_0x168433('0x530')]]({'id':_0x5efff7['ivrCampaign']['id'],'fields':_0x168433('0x104'),'nolimit':!![]})['$promise']['then'](function(_0x3cc7ff){_0x2367bb(_0x3cc7ff);})[_0x168433('0x223b')](function(_0x1ba8e9){_0x59a5c1(_0x1ba8e9);});});}function _0x3cb90f(){return _0x1816c5(function(_0x4c99f1,_0x5c85a7){var _0x37aa37=a0_0x5325;return _0x13b2a6[_0x37aa37('0x1bbd')]['get']({'fields':_0x37aa37('0x104'),'nolimit':!![]})[_0x37aa37('0xe59')][_0x37aa37('0xe19')](function(_0x912abe){_0x4c99f1(_0x912abe);})['catch'](function(_0x197647){_0x5c85a7(_0x197647);});});}function _0x40c1f2(_0x450f8e){return _0x1816c5(function(_0x63bd22,_0x527273){var _0x42511b=a0_0x5325;if(_0x32d445()[_0x42511b('0x14b4')](_0x450f8e))_0x63bd22();else{var _0x3418b7=_0x13b2a6[_0x5efff7['apiRoute']];_0x3418b7[_0x5efff7[_0x42511b('0x4b4')]]({'id':_0x5efff7[_0x42511b('0xf87')]['id'],'ids':_0x32d445()['map'](_0x450f8e,'id')})[_0x42511b('0xe59')][_0x42511b('0xe19')](function(){_0x63bd22();})['catch'](function(_0x4e5df7){_0x527273(_0x4e5df7);});}});}function _0x55e144(_0x5ec975){return _0x1816c5(function(_0x48e2f9,_0x1476f9){var _0x4620c0=a0_0x5325;if(_0x32d445()[_0x4620c0('0x14b4')](_0x5ec975))_0x48e2f9();else{var _0xa9fd7=_0x13b2a6[_0x5efff7[_0x4620c0('0xbe1')]];_0xa9fd7[_0x5efff7[_0x4620c0('0x20ec')]]({'id':_0x5efff7['ivrCampaign']['id'],'ids':_0x32d445()['map'](_0x5ec975,'id')})[_0x4620c0('0xe59')][_0x4620c0('0xe19')](function(){_0x48e2f9();})[_0x4620c0('0x223b')](function(_0x20fbdb){_0x1476f9(_0x20fbdb);});}});}function _0x4ea856(){var _0x7fead6=_0x381fe4;_0x5efff7[_0x7fead6('0x234a')]=!![];var _0xddc5e6=_0x32d445()[_0x7fead6('0x501')](_0x5efff7[_0x7fead6('0xf79')],_0x5efff7[_0x7fead6('0x2273')],'id'),_0x1467bf=_0x32d445()[_0x7fead6('0x501')](_0x5efff7['selectedItems'],_0x5efff7[_0x7fead6('0xf79')],'id');return _0x55e144(_0xddc5e6)['then'](function(){return _0x40c1f2(_0x1467bf);})[_0x7fead6('0xe19')](function(){var _0x475cab=_0x7fead6;_0x5efff7['pendingChanges']=![],_0x5efff7[_0x475cab('0x286c')]=angular[_0x475cab('0x89')](_0x5efff7[_0x475cab('0x1884')]),_0x5efff7[_0x475cab('0xf79')]=angular['copy'](_0x5efff7[_0x475cab('0x2273')]),_0x137e0a[_0x475cab('0x425')]({'title':'SUCCESS','msg':_0x475cab('0x59d')});})[_0x7fead6('0x223b')](function(_0x19a26){var _0x24574a=_0x7fead6;_0x137e0a['error']({'title':_0x19a26[_0x24574a('0x2833')]?_0x24574a('0x27f2')+_0x19a26[_0x24574a('0x2833')]+_0x24574a('0x1b7c')+_0x19a26[_0x24574a('0x1fd7')]:_0x24574a('0x2168'),'msg':_0x19a26[_0x24574a('0x2833')]?JSON[_0x24574a('0x3ad')](_0x19a26['data']):_0x19a26[_0x24574a('0x94f')]()});})[_0x7fead6('0x23')](function(){var _0x5d4c4d=_0x7fead6;_0x5efff7[_0x5d4c4d('0x234a')]=![];});}function _0x418087(){var _0x570ba9=_0x381fe4;_0x35f470[_0x570ba9('0x11ed')]();}}const _0x58c6a9=_0x3f84b1;_0xd9b5e7[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),_0xb635d2('0xeb6'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0xf87'),_0xb635d2('0x10e8'),_0xb635d2('0x2493')];function _0xd9b5e7(_0x3bdc76,_0x51c5d6,_0x31f5d4,_0x4607b7,_0x3572ec,_0x28313e,_0x3ac96f){var _0x53586c=_0xb635d2,_0x45157b=this;_0x45157b['newIvrCampaign']=!![],_0x45157b['ivrCampaign']=angular[_0x53586c('0x89')](_0x3572ec),_0x45157b[_0x53586c('0x10e8')]=_0x28313e,_0x45157b[_0x53586c('0x13e4')]=_0x3ac96f[_0x53586c('0x2159')](_0x53586c('0x15b5'));_0x3572ec&&_0x3572ec['name']&&(_0x45157b['title']+=':\x20'+_0x3572ec[_0x53586c('0x2623')]);_0x45157b[_0x53586c('0xe7e')]=_0x3b3331,_0x45157b[_0x53586c('0x2584')]=_0x503954;function _0x3b3331(){var _0x5f577e=_0x53586c;return _0x4607b7[_0x5f577e('0xcc1')][_0x5f577e('0x2384')]({'id':_0x3572ec['id']},_0x45157b[_0x5f577e('0xf87')])['$promise']['then'](function(_0x51bca1){var _0x1aff64=_0x5f577e;_0x45157b[_0x1aff64('0x10e8')][_0x1aff64('0x14c9')](_0x51bca1[_0x1aff64('0x250e')]()),_0x31f5d4['success']({'title':_0x1aff64('0x7bc'),'msg':_0x45157b[_0x1aff64('0xf87')][_0x1aff64('0x2623')]?_0x45157b['ivrCampaign'][_0x1aff64('0x2623')]+'\x20has\x20been\x20cloned!':''}),_0x51c5d6['go'](_0x1aff64('0x98c'),{'id':_0x51bca1['id']}),_0x503954(_0x51bca1);})[_0x5f577e('0x223b')](function(_0x144127){var _0x44c579=_0x5f577e;if(_0x144127[_0x44c579('0x11d0')]&&_0x144127[_0x44c579('0x11d0')][_0x44c579('0xcd2')]&&_0x144127[_0x44c579('0x11d0')]['errors'][_0x44c579('0x25ae')]){_0x45157b[_0x44c579('0xcd2')]=_0x144127[_0x44c579('0x11d0')]['errors']||[{'message':_0x144127[_0x44c579('0x94f')](),'type':_0x44c579('0x640')}];for(var _0x3ff075=0x0;_0x3ff075<_0x144127['data'][_0x44c579('0xcd2')][_0x44c579('0x25ae')];_0x3ff075+=0x1){_0x31f5d4[_0x44c579('0x8c8')]({'title':_0x144127[_0x44c579('0x11d0')][_0x44c579('0xcd2')][_0x3ff075]['type'],'msg':_0x144127[_0x44c579('0x11d0')]['errors'][_0x3ff075]['message']});}}else _0x31f5d4['error']({'title':_0x144127[_0x44c579('0x2833')]?_0x44c579('0x27f2')+_0x144127[_0x44c579('0x2833')]+_0x44c579('0x1b7c')+_0x144127[_0x44c579('0x1fd7')]:'api.campaign.clone','msg':_0x144127[_0x44c579('0x11d0')]?JSON[_0x44c579('0x3ad')](_0x144127[_0x44c579('0x11d0')]['message']):_0x144127[_0x44c579('0x94f')]()});});}function _0x503954(_0x298ae3){var _0x20796f=_0x53586c;_0x3bdc76[_0x20796f('0x11ed')](_0x298ae3);}}const _0x2b9ae6=_0xd9b5e7;_0x216b88['$inject']=['$cookies',_0xb635d2('0x63c'),'$state','$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$document','toasty',_0xb635d2('0xffc'),'Auth'];function _0x216b88(_0x622c3f,_0x561730,_0x133b67,_0xed3a26,_0x1b3776,_0x37fae9,_0x32ceaf,_0x544392,_0x335108,_0x1deecc,_0x3317f0){var _0x62e04a=_0xb635d2,_0x70c0=this;_0x70c0['currentUser']=_0x3317f0[_0x62e04a('0x1ef8')](),_0x70c0[_0x62e04a('0xf87')]={},_0x70c0[_0x62e04a('0x2533')]={'count':0x0,'rows':[]},_0x70c0[_0x62e04a('0x2542')]=[],_0x70c0[_0x62e04a('0xb3d')],_0x70c0[_0x62e04a('0xa16')]={'fields':_0x62e04a('0x1d16'),'sort':'-id','limit':0xa,'page':0x1},_0x70c0['init']=_0x17e73f,_0x70c0[_0x62e04a('0x126c')]=_0x33e80a,_0x70c0[_0x62e04a('0x425')]=_0xff8db3,_0x70c0[_0x62e04a('0x34f')]=_0x13fcf2,_0x70c0[_0x62e04a('0x7dc')]=_0xc6ec30,_0x70c0[_0x62e04a('0x205')]=_0x38fc92,_0x70c0[_0x62e04a('0xab8')]=_0x102c7b;function _0x17e73f(_0x8eb35e,_0x55fef8){var _0x156973=_0x62e04a;_0x70c0[_0x156973('0xf87')]=_0x8eb35e,_0x70c0[_0x156973('0xb3d')]=typeof _0x55fef8!==_0x156973('0x1143')?_0x55fef8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x70c0[_0x156973('0xa16')][_0x156973('0x196b')]=_0x70c0[_0x156973('0xf87')]['id'],_0x70c0[_0x156973('0xa16')]['id']=_0x70c0['ivrCampaign']['id'],_0x13fcf2();}function _0x33e80a(_0x1325d3,_0x124884){var _0x2297e3=_0x62e04a,_0x1f8f1b=_0x32ceaf[_0x2297e3('0xa5')]()[_0x2297e3('0x13e4')](_0x2297e3('0x11eb'))['htmlContent'](_0x2297e3('0xab2')+(_0x1325d3[_0x2297e3('0x2623')]||_0x1325d3['id']&&_0x32d445()[_0x2297e3('0x2077')](_0x2297e3('0x84a'))+_0x1325d3['id']||_0x2297e3('0x1e4c'))+_0x2297e3('0x27bb')+_0x2297e3('0x21bd'))[_0x2297e3('0x4d1')](_0x2297e3('0xdca'))[_0x2297e3('0x1345')](_0x124884)['ok']('OK')[_0x2297e3('0x2c1')](_0x2297e3('0x17'));_0x32ceaf[_0x2297e3('0x26b2')](_0x1f8f1b)['then'](function(){_0x38fc92(_0x1325d3);},function(){var _0x808762=_0x2297e3;console[_0x808762('0x1fe9')](_0x808762('0x17'));});}function _0xff8db3(_0x2d24ea){var _0x18c435=_0x62e04a;_0x70c0[_0x18c435('0x2533')]=_0x2d24ea||{'count':0x0,'rows':[]};}function _0x13fcf2(){var _0x3b7fbc=_0x62e04a;_0x70c0[_0x3b7fbc('0xa16')][_0x3b7fbc('0xab0')]=(_0x70c0['query'][_0x3b7fbc('0xc08')]-0x1)*_0x70c0[_0x3b7fbc('0xa16')][_0x3b7fbc('0x1b6d')],_0x70c0[_0x3b7fbc('0x9c8')]=_0x1deecc[_0x3b7fbc('0xcc1')]['getHopperBlacks'](_0x70c0['query'],_0xff8db3)['$promise'];}function _0x38fc92(_0x14d6cc){var _0x532fc3=_0x62e04a;_0x1deecc['hopperBlack'][_0x532fc3('0x229e')]({'id':_0x14d6cc['id']})[_0x532fc3('0xe59')][_0x532fc3('0xe19')](function(){var _0x21f4f9=_0x532fc3;_0x32d445()['remove'](_0x70c0['ivrCampaignHopperBlacks'][_0x21f4f9('0x16a7')],{'id':_0x14d6cc['id']}),_0x70c0[_0x21f4f9('0x2533')][_0x21f4f9('0x148b')]-=0x1,!_0x70c0['ivrCampaignHopperBlacks']['rows'][_0x21f4f9('0x25ae')]&&_0x13fcf2(),_0x335108['success']({'title':_0x21f4f9('0x1ee8'),'msg':_0x14d6cc[_0x21f4f9('0x2623')]?_0x14d6cc[_0x21f4f9('0x2623')]+_0x21f4f9('0x2182'):''});})[_0x532fc3('0x223b')](function(_0x29ae19){var _0x37e834=_0x532fc3;if(_0x29ae19['data']&&_0x29ae19['data']['errors']&&_0x29ae19[_0x37e834('0x11d0')][_0x37e834('0xcd2')]['length']){_0x70c0[_0x37e834('0xcd2')]=_0x29ae19[_0x37e834('0x11d0')][_0x37e834('0xcd2')]||[{'message':_0x29ae19[_0x37e834('0x94f')](),'type':_0x37e834('0x723')}];for(var _0x20a525=0x0;_0x20a525<_0x29ae19[_0x37e834('0x11d0')]['errors'][_0x37e834('0x25ae')];_0x20a525++){_0x335108[_0x37e834('0x8c8')]({'title':_0x29ae19[_0x37e834('0x11d0')][_0x37e834('0xcd2')][_0x20a525]['type'],'msg':_0x29ae19['data'][_0x37e834('0xcd2')][_0x20a525][_0x37e834('0x27e8')]});}}else _0x335108[_0x37e834('0x8c8')]({'title':_0x29ae19['status']?_0x37e834('0x27f2')+_0x29ae19[_0x37e834('0x2833')]+'\x20-\x20'+_0x29ae19['statusText']:'SYSTEM:GETcampaign','msg':_0x29ae19['data']?JSON[_0x37e834('0x3ad')](_0x29ae19[_0x37e834('0x11d0')][_0x37e834('0x27e8')]):_0x29ae19[_0x37e834('0x27e8')]||_0x29ae19['toString']()});});}function _0xc6ec30(){var _0x347fae=_0x62e04a,_0x307382=angular[_0x347fae('0x89')](_0x70c0[_0x347fae('0x2542')]);return _0x70c0[_0x347fae('0x2542')]=[],_0x307382;}function _0x102c7b(_0x57925a){var _0x574475=_0x62e04a,_0x2e5b61=_0x32ceaf[_0x574475('0xa5')]()['title'](_0x574475('0x27f4'))[_0x574475('0x221c')](_0x574475('0xab2')+_0x70c0['selectedIvrCampaignHopperBlacks']['length']+_0x574475('0x5bc')+_0x574475('0x21bd'))[_0x574475('0x4d1')]('delete\x20hopperBlacks')[_0x574475('0x1345')](_0x57925a)['ok']('OK')[_0x574475('0x2c1')](_0x574475('0x17'));_0x32ceaf[_0x574475('0x26b2')](_0x2e5b61)[_0x574475('0xe19')](function(){var _0x52f589=_0x574475;_0x70c0[_0x52f589('0x2542')][_0x52f589('0x1d7e')](function(_0x49dd86){_0x38fc92(_0x49dd86);}),_0x70c0['selectedIvrCampaignHopperBlacks']=[];});}var _0x3aa76f=!![],_0x3f6560=0x1;_0x561730['$watch'](_0x62e04a('0x1607'),function(_0x273949,_0x44b5db){var _0x588ca3=_0x62e04a;_0x3aa76f?_0x37fae9(function(){_0x3aa76f=![];}):(!_0x44b5db&&(_0x3f6560=_0x70c0[_0x588ca3('0xa16')][_0x588ca3('0xc08')]),_0x273949!==_0x44b5db&&(_0x70c0['query']['page']=0x1),!_0x273949&&(_0x70c0[_0x588ca3('0xa16')][_0x588ca3('0xc08')]=_0x3f6560),_0x13fcf2());});}const _0x168f61=_0x216b88;_0x2816bc[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),'$scope',_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'Auth'];function _0x2816bc(_0x3dd9e8,_0x4a1c6c,_0x2033e3,_0x42488d,_0x9278d8,_0x27fb03,_0x4d7ef4,_0x18928d,_0x7e699a,_0x3406ba,_0x15443b){var _0x61b811=_0xb635d2,_0x320643=this;_0x320643[_0x61b811('0x15a5')]=_0x15443b[_0x61b811('0x1ef8')](),_0x320643[_0x61b811('0x4b1')]={},_0x320643[_0x61b811('0xf87')]={},_0x320643[_0x61b811('0x1fa7')]={'count':0x0,'rows':[]},_0x320643[_0x61b811('0x2323')]=[],_0x320643['crudPermissions'],_0x320643[_0x61b811('0xa16')]={'fields':_0x61b811('0xf9'),'sort':'-id','limit':0xa,'page':0x1},_0x320643[_0x61b811('0x15f9')]=_0x39e4a3,_0x320643[_0x61b811('0x126c')]=_0x3c21d4,_0x320643[_0x61b811('0x425')]=_0x1b7bf3,_0x320643[_0x61b811('0xc0')]=_0x17c9d9,_0x320643['exportSelectedIvrCampaignHopperFinals']=_0x383399,_0x320643[_0x61b811('0x1860')]=_0x2eed0b,_0x320643[_0x61b811('0x12dd')]=_0x363a45,_0x320643[_0x61b811('0x1890')]=_0x4fc3ac,_0x320643[_0x61b811('0x22d0')]=_0x2f1693,_0x320643['countContactsIvrCampaignHopperFinal']=_0xaaaa7e,_0x320643[_0x61b811('0x1dab')]=_0x58df57,_0x320643[_0x61b811('0x123e')]=_0x2f53c1;function _0x39e4a3(_0x3950fe,_0x42e873){var _0x3779b4=_0x61b811;_0x320643[_0x3779b4('0xf87')]=_0x3950fe,_0x320643['crudPermissions']=typeof _0x42e873!=='undefined'?_0x42e873:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x320643[_0x3779b4('0xa16')][_0x3779b4('0x196b')]=_0x320643[_0x3779b4('0xf87')]['id'],_0x320643[_0x3779b4('0xa16')]['id']=_0x320643[_0x3779b4('0xf87')]['id'],_0x17c9d9();}function _0x3c21d4(_0x228d2e,_0x3360c6){var _0x277178=_0x61b811,_0x387297=_0x4d7ef4[_0x277178('0xa5')]()[_0x277178('0x13e4')](_0x277178('0x1b82'))[_0x277178('0x221c')](_0x277178('0xab2')+(_0x228d2e[_0x277178('0x2623')]||_0x228d2e['id']&&_0x32d445()[_0x277178('0x2077')](_0x277178('0xde5'))+_0x228d2e['id']||_0x277178('0x267a'))+_0x277178('0x27bb')+_0x277178('0x21bd'))[_0x277178('0x4d1')](_0x277178('0x1b3b'))[_0x277178('0x1345')](_0x3360c6)['ok']('OK')[_0x277178('0x2c1')](_0x277178('0x17'));_0x4d7ef4['show'](_0x387297)['then'](function(){_0x2eed0b(_0x228d2e);},function(){var _0x93749a=_0x277178;console['log'](_0x93749a('0x17'));});}function _0x1b7bf3(_0x7841c7){var _0x18f406=_0x61b811;_0x320643[_0x18f406('0x1fa7')]=_0x7841c7||{'count':0x0,'rows':[]};}function _0x17c9d9(){var _0xf22ad0=_0x61b811;_0x320643['query'][_0xf22ad0('0xab0')]=(_0x320643[_0xf22ad0('0xa16')][_0xf22ad0('0xc08')]-0x1)*_0x320643[_0xf22ad0('0xa16')][_0xf22ad0('0x1b6d')],_0x320643[_0xf22ad0('0x9c8')]=_0x3406ba[_0xf22ad0('0xcc1')][_0xf22ad0('0xe86')](_0x320643[_0xf22ad0('0xa16')],_0x1b7bf3)[_0xf22ad0('0xe59')];}function _0x2eed0b(_0x3127cf){var _0x5f2895=_0x61b811;_0x3406ba[_0x5f2895('0x267a')]['delete']({'id':_0x3127cf['id']})[_0x5f2895('0xe59')][_0x5f2895('0xe19')](function(){var _0x251a98=_0x5f2895;_0x32d445()[_0x251a98('0xa8b')](_0x320643[_0x251a98('0x1fa7')][_0x251a98('0x16a7')],{'id':_0x3127cf['id']}),_0x320643['ivrCampaignHopperFinals'][_0x251a98('0x148b')]-=0x1,!_0x320643[_0x251a98('0x1fa7')][_0x251a98('0x16a7')][_0x251a98('0x25ae')]&&_0x17c9d9(),_0x7e699a[_0x251a98('0x425')]({'title':_0x251a98('0x235d'),'msg':_0x3127cf[_0x251a98('0x2623')]?_0x3127cf['name']+_0x251a98('0x2182'):''});})[_0x5f2895('0x223b')](function(_0x46dff5){var _0x3ac04d=_0x5f2895;if(_0x46dff5['data']&&_0x46dff5['data'][_0x3ac04d('0xcd2')]&&_0x46dff5['data'][_0x3ac04d('0xcd2')][_0x3ac04d('0x25ae')]){_0x320643[_0x3ac04d('0xcd2')]=_0x46dff5['data'][_0x3ac04d('0xcd2')]||[{'message':_0x46dff5['toString'](),'type':_0x3ac04d('0x723')}];for(var _0xc61ae2=0x0;_0xc61ae2<_0x46dff5['data'][_0x3ac04d('0xcd2')][_0x3ac04d('0x25ae')];_0xc61ae2++){_0x7e699a[_0x3ac04d('0x8c8')]({'title':_0x46dff5[_0x3ac04d('0x11d0')][_0x3ac04d('0xcd2')][_0xc61ae2][_0x3ac04d('0x62e')],'msg':_0x46dff5['data'][_0x3ac04d('0xcd2')][_0xc61ae2][_0x3ac04d('0x27e8')]});}}else _0x7e699a['error']({'title':_0x46dff5[_0x3ac04d('0x2833')]?'API:'+_0x46dff5[_0x3ac04d('0x2833')]+_0x3ac04d('0x1b7c')+_0x46dff5[_0x3ac04d('0x1fd7')]:_0x3ac04d('0x723'),'msg':_0x46dff5[_0x3ac04d('0x11d0')]?JSON[_0x3ac04d('0x3ad')](_0x46dff5[_0x3ac04d('0x11d0')][_0x3ac04d('0x27e8')]):_0x46dff5['message']||_0x46dff5['toString']()});});}function _0x383399(){var _0x1c8003=_0x61b811,_0x30a793=angular[_0x1c8003('0x89')](_0x320643[_0x1c8003('0x2323')]);return _0x320643[_0x1c8003('0x2323')]=[],_0x30a793;}function _0x363a45(_0x11f3af){var _0x73ecd5=_0x61b811,_0xee4281=_0x4d7ef4['confirm']()[_0x73ecd5('0x13e4')](_0x73ecd5('0x1056'))[_0x73ecd5('0x221c')](_0x73ecd5('0xab2')+_0x320643[_0x73ecd5('0x2323')]['length']+_0x73ecd5('0x5bc')+_0x73ecd5('0x21bd'))[_0x73ecd5('0x4d1')](_0x73ecd5('0x1035'))[_0x73ecd5('0x1345')](_0x11f3af)['ok']('OK')[_0x73ecd5('0x2c1')](_0x73ecd5('0x17'));_0x4d7ef4[_0x73ecd5('0x26b2')](_0xee4281)['then'](function(){var _0x5c7c0c=_0x73ecd5;_0x320643[_0x5c7c0c('0x2323')]['forEach'](function(_0x3d730d){_0x2eed0b(_0x3d730d);}),_0x320643[_0x5c7c0c('0x2323')]=[];});}function _0x2f1693(_0x56cda8){var _0x425e35=_0x61b811;_0x3406ba[_0x425e35('0x1afa')]['moveContactsIvrCampaignHopperFinal']({'id':_0x320643['query']['id'],'state':_0x56cda8})['$promise'][_0x425e35('0xe19')](function(_0x4a0665){var _0x368fc6=_0x425e35;_0x32d445()[_0x368fc6('0xe44')](_0x4a0665)&&_0x32d445()[_0x368fc6('0xe44')](_0x4a0665[0x0])?_0x7e699a[_0x368fc6('0x1e67')]({'title':_0x368fc6('0x13e6'),'msg':'0'}):_0x7e699a[_0x368fc6('0x1e67')]({'title':_0x368fc6('0x13e6'),'msg':JSON[_0x368fc6('0x3ad')](_0x4a0665[0x0][_0x368fc6('0x1652')])});})[_0x425e35('0x223b')](function(_0x320ab){var _0x2d8c0d=_0x425e35;_0x7e699a[_0x2d8c0d('0x8c8')]({'title':_0x320ab[_0x2d8c0d('0x2833')]?_0x2d8c0d('0x27f2')+_0x320ab['status']+_0x2d8c0d('0x1b7c')+_0x320ab[_0x2d8c0d('0x1fd7')]:_0x2d8c0d('0x1ac'),'msg':_0x320ab[_0x2d8c0d('0x11d0')]?JSON['stringify'](_0x320ab[_0x2d8c0d('0x11d0')]['message']):_0x320ab[_0x2d8c0d('0x27e8')]||_0x320ab['toString']()});});}function _0xaaaa7e(_0x21795f){var _0x4537a3=_0x61b811;_0x3406ba['cmHopperFinal']['countContactsIvrCampaignHopperFinal']({'id':_0x21795f})[_0x4537a3('0xe59')]['then'](function(_0x52a1a3){var _0x384c7f=_0x4537a3;_0x32d445()[_0x384c7f('0x1d8')](_0x320643[_0x384c7f('0x4b1')],_0x52a1a3[0x0]);})[_0x4537a3('0x223b')](function(_0x2d648b){var _0x5d3f24=_0x4537a3;_0x7e699a['error']({'title':_0x2d648b[_0x5d3f24('0x2833')]?_0x5d3f24('0x27f2')+_0x2d648b[_0x5d3f24('0x2833')]+_0x5d3f24('0x1b7c')+_0x2d648b[_0x5d3f24('0x1fd7')]:'SYSTEM:GETcampaign','msg':_0x2d648b[_0x5d3f24('0x11d0')]?JSON[_0x5d3f24('0x3ad')](_0x2d648b[_0x5d3f24('0x11d0')][_0x5d3f24('0x27e8')]):_0x2d648b[_0x5d3f24('0x27e8')]||_0x2d648b[_0x5d3f24('0x94f')]()});});}function _0x2f53c1(_0x1b95aa){var _0x2f73a9=_0x61b811,_0x46694d=_0x4d7ef4[_0x2f73a9('0xa5')]()['title'](_0x2f73a9('0x165d'))['htmlContent'](_0x2f73a9('0x194e')+_0x2f73a9('0x4b6'))[_0x2f73a9('0x4d1')](_0x2f73a9('0x1c14'))[_0x2f73a9('0x1345')](_0x1b95aa)['ok']('OK')[_0x2f73a9('0x2c1')](_0x2f73a9('0x17'));_0x4d7ef4[_0x2f73a9('0x26b2')](_0x46694d)['then'](function(){var _0xadec15=_0x2f73a9;_0x320643[_0xadec15('0x2323')][_0xadec15('0x1d7e')](function(_0x63dce7){_0x4fc3ac(_0x63dce7);}),_0x320643['selectedIvrCampaignHopperFinals']=[];});}function _0x58df57(_0x254ba9,_0x230478){var _0x4d0965=_0x61b811,_0x1ddb05=_0x4d7ef4[_0x4d0965('0xa5')]()[_0x4d0965('0x13e4')](_0x4d0965('0x6ab'))[_0x4d0965('0x221c')](_0x4d0965('0xab2')+'Contact'+_0x4d0965('0x27bb')+'\x20will\x20be\x20restored.')[_0x4d0965('0x4d1')](_0x4d0965('0x25a9'))['targetEvent'](_0x230478)['ok']('OK')[_0x4d0965('0x2c1')]('CANCEL');_0x4d7ef4[_0x4d0965('0x26b2')](_0x1ddb05)[_0x4d0965('0xe19')](function(){_0x4fc3ac(_0x254ba9);},function(){var _0x60e548=_0x4d0965;console[_0x60e548('0x1fe9')](_0x60e548('0x17'));});}function _0x14942d(_0x4cef55){var _0x49f545=_0x61b811,_0x511154={};return _0x511154['phone']=_0x4cef55[_0x49f545('0xb2d')],_0x511154[_0x49f545('0x50e')]=_0x4ddcaa()()[_0x49f545('0x5e5')](_0x49f545('0x1f90')),_0x511154[_0x49f545('0x27fb')]=0x0,_0x511154['countcongestionretry']=0x0,_0x511154[_0x49f545('0x2031')]=0x0,_0x511154[_0x49f545('0x209c')]=0x0,_0x511154[_0x49f545('0x23c1')]=_0x4cef55[_0x49f545('0x23c1')],_0x511154[_0x49f545('0x2463')]=_0x4cef55['ListId'],_0x511154[_0x49f545('0x43d')]=_0x4cef55[_0x49f545('0x20a7')]?null:_0x4cef55[_0x49f545('0x43d')],_0x511154['VoiceQueueId']=_0x4cef55['VoiceQueueId'],_0x511154['CampaignId']=_0x4cef55['CampaignId'],_0x511154[_0x49f545('0xb33')]=_0x4cef55[_0x49f545('0x9ee')]?0x3:0x2,_0x511154['recallme']=_0x4cef55[_0x49f545('0x9ee')]?!![]:![],_0x511154;}function _0x579e97(_0x46a711){var _0x2cbc23=_0x61b811,_0x14906a={};return _0x14906a[_0x2cbc23('0xb2d')]=_0x46a711[_0x2cbc23('0xb2d')],_0x14906a['calleridname']=_0x46a711[_0x2cbc23('0x173a')],_0x14906a[_0x2cbc23('0x50e')]=_0x4ddcaa()()[_0x2cbc23('0x5e5')](_0x2cbc23('0x1f90')),_0x14906a[_0x2cbc23('0x27fb')]=_0x46a711[_0x2cbc23('0x27fb')],_0x14906a[_0x2cbc23('0x1fb2')]=_0x46a711[_0x2cbc23('0x1fb2')],_0x14906a[_0x2cbc23('0x2031')]=_0x46a711[_0x2cbc23('0x2031')],_0x14906a[_0x2cbc23('0x209c')]=_0x46a711[_0x2cbc23('0x209c')],_0x14906a[_0x2cbc23('0x23c1')]=_0x46a711['ContactId'],_0x14906a[_0x2cbc23('0x2463')]=_0x46a711[_0x2cbc23('0x2463')],_0x14906a['UserId']=_0x15443b[_0x2cbc23('0x1ef8')]()['id'],_0x14906a['VoiceQueueId']=_0x46a711['VoiceQueueId'],_0x14906a[_0x2cbc23('0x196b')]=_0x46a711['CampaignId'],_0x14906a[_0x2cbc23('0x2523')]=_0x4ddcaa()()[_0x2cbc23('0x5e5')](_0x2cbc23('0x1f90')),_0x14906a[_0x2cbc23('0x6a0')]=!![],_0x14906a[_0x2cbc23('0x1d72')]=0x19,_0x14906a['statedesc']=_0x2cbc23('0xb1e'),_0x14906a[_0x2cbc23('0xcc1')]=_0x46a711[_0x2cbc23('0xcc1')],_0x14906a[_0x2cbc23('0xabe')]=_0x46a711[_0x2cbc23('0x1967')]?_0x2cbc23('0x26a8'):'ivr',_0x14906a;}function _0x4fc3ac(_0x270e5e){var _0x4b3505=_0x61b811;_0x3406ba[_0x4b3505('0x1afa')][_0x4b3505('0x144c')](_0x270e5e)[_0x4b3505('0xe59')][_0x4b3505('0xe19')](function(_0x44a905){var _0x2d6ffe=_0x4b3505;_0x7e699a[_0x2d6ffe('0x1e67')]({'title':_0x2d6ffe('0xfed'),'msg':_0x2d6ffe('0x1a75')+_0x44a905[_0x2d6ffe('0x23c1')]});})['catch'](function(_0x4b59cf){var _0x72f512=_0x4b3505;_0x4b59cf[_0x72f512('0x11d0')]===_0x72f512('0x225d')?_0x3406ba[_0x72f512('0x2408')][_0x72f512('0xe5e')](_0x14942d(_0x270e5e))['$promise'][_0x72f512('0xe19')](function(_0x519f8b){var _0x10a122=_0x72f512;_0x7e699a[_0x10a122('0x1e67')]({'title':'Restored\x20Contact','msg':_0x10a122('0x1a75')+_0x519f8b['ContactId']}),_0x519f8b[_0x10a122('0x23c1')]&&_0x3406ba[_0x10a122('0x1a61')][_0x10a122('0xe5e')](_0x579e97(_0x270e5e));})[_0x72f512('0x223b')](function(_0x265d5a){var _0x1c4738=_0x72f512;!_0x32d445()[_0x1c4738('0xe44')](_0x265d5a['data'])&&_0x265d5a[_0x1c4738('0x11d0')]['message']==='Validation\x20error'?_0x7e699a[_0x1c4738('0x1e67')]({'title':_0x1c4738('0xfed'),'msg':_0x1c4738('0x1a75')+_0x270e5e[_0x1c4738('0x23c1')]}):_0x7e699a[_0x1c4738('0x8c8')]({'title':_0x265d5a[_0x1c4738('0x2833')]?_0x1c4738('0x27f2')+_0x265d5a[_0x1c4738('0x2833')]+'\x20-\x20'+_0x265d5a['statusText']:'SYSTEM:GETvoiceQueue','msg':_0x265d5a[_0x1c4738('0x11d0')]?JSON[_0x1c4738('0x3ad')](_0x265d5a['data'][_0x1c4738('0x27e8')]):_0x265d5a[_0x1c4738('0x27e8')]||_0x265d5a['toString']()});}):_0x7e699a[_0x72f512('0x8c8')]({'title':_0x4b59cf['status']?'API:'+_0x4b59cf[_0x72f512('0x2833')]+_0x72f512('0x1b7c')+_0x4b59cf[_0x72f512('0x1fd7')]:'SYSTEM:GETvoiceQueue','msg':_0x4b59cf['data']?JSON['stringify'](_0x4b59cf['data'][_0x72f512('0x27e8')]):_0x4b59cf[_0x72f512('0x27e8')]||_0x4b59cf[_0x72f512('0x94f')]()});});}var _0x2195c6=!![],_0x398fdc=0x1;_0x4a1c6c[_0x61b811('0x107')](_0x61b811('0x1607'),function(_0x3bd315,_0x142a3c){var _0x692fde=_0x61b811;_0x2195c6?_0x27fb03(function(){_0x2195c6=![];}):(!_0x142a3c&&(_0x398fdc=_0x320643[_0x692fde('0xa16')][_0x692fde('0xc08')]),_0x3bd315!==_0x142a3c&&(_0x320643[_0x692fde('0xa16')]['page']=0x1),!_0x3bd315&&(_0x320643[_0x692fde('0xa16')][_0x692fde('0xc08')]=_0x398fdc),_0x17c9d9());});}const _0x239f1d=_0x2816bc;_0x15373d[_0xb635d2('0xb0c')]=['$cookies','$scope','$state','$q','$translate',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x15373d(_0x295227,_0x3c35f5,_0x521099,_0x4c7f55,_0x35427a,_0x280fc5,_0xa84140,_0x108a52,_0x251a9f,_0x3ecc16,_0x570db9){var _0x4e0495=_0xb635d2,_0x64ac55=this;_0x64ac55['currentUser']=_0x570db9[_0x4e0495('0x1ef8')](),_0x64ac55[_0x4e0495('0xf87')]={},_0x64ac55['ivrCampaignHopperHistories']={'count':0x0,'rows':[]},_0x64ac55[_0x4e0495('0x1913')]=[],_0x64ac55[_0x4e0495('0xb3d')],_0x64ac55[_0x4e0495('0xa16')]={'fields':'createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','sort':_0x4e0495('0x2289'),'limit':0xa,'page':0x1},_0x64ac55[_0x4e0495('0x15f9')]=_0xe22875,_0x64ac55[_0x4e0495('0x126c')]=_0x244468,_0x64ac55[_0x4e0495('0x425')]=_0x175c79,_0x64ac55[_0x4e0495('0x6d5')]=_0x2fc4dc,_0x64ac55[_0x4e0495('0x1687')]=_0x4ee72b,_0x64ac55[_0x4e0495('0x10d1')]=_0x307094,_0x64ac55[_0x4e0495('0x1379')]=_0x231399;function _0xe22875(_0x5e15b9,_0x203152){var _0x2dd157=_0x4e0495;_0x64ac55[_0x2dd157('0xf87')]=_0x5e15b9,_0x64ac55[_0x2dd157('0xb3d')]=typeof _0x203152!==_0x2dd157('0x1143')?_0x203152:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x64ac55['query'][_0x2dd157('0x196b')]=_0x64ac55[_0x2dd157('0xf87')]['id'],_0x64ac55[_0x2dd157('0xa16')]['id']=_0x64ac55[_0x2dd157('0xf87')]['id'],_0x2fc4dc();}function _0x244468(_0x381e06,_0x59420f){var _0x304148=_0x4e0495,_0x1bf15e=_0xa84140[_0x304148('0xa5')]()[_0x304148('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?')['htmlContent'](''+(_0x381e06[_0x304148('0x2623')]||_0x381e06['id']&&_0x32d445()[_0x304148('0x2077')](_0x304148('0x21f7'))+_0x381e06['id']||'hopperHistory')+_0x304148('0x27bb')+_0x304148('0x21bd'))['ariaLabel']('delete\x20hopperHistory')[_0x304148('0x1345')](_0x59420f)['ok']('OK')[_0x304148('0x2c1')](_0x304148('0x17'));_0xa84140[_0x304148('0x26b2')](_0x1bf15e)[_0x304148('0xe19')](function(){_0x307094(_0x381e06);},function(){var _0x510cb6=_0x304148;console[_0x510cb6('0x1fe9')](_0x510cb6('0x17'));});}function _0x175c79(_0xc51d84){var _0x4ed4fc=_0x4e0495;_0x64ac55[_0x4ed4fc('0x17f9')]=_0xc51d84||{'count':0x0,'rows':[]};}function _0x2fc4dc(){var _0x32edc5=_0x4e0495;_0x64ac55[_0x32edc5('0xa16')][_0x32edc5('0xab0')]=(_0x64ac55['query']['page']-0x1)*_0x64ac55['query'][_0x32edc5('0x1b6d')],_0x64ac55[_0x32edc5('0x9c8')]=_0x3ecc16['campaign'][_0x32edc5('0xbf7')](_0x64ac55['query'],_0x175c79)[_0x32edc5('0xe59')];}function _0x307094(_0x1fb97a){var _0x4f3b2c=_0x4e0495;_0x3ecc16[_0x4f3b2c('0x249f')][_0x4f3b2c('0x229e')]({'id':_0x1fb97a['id']})['$promise'][_0x4f3b2c('0xe19')](function(){var _0x13d278=_0x4f3b2c;_0x32d445()[_0x13d278('0xa8b')](_0x64ac55['ivrCampaignHopperHistories'][_0x13d278('0x16a7')],{'id':_0x1fb97a['id']}),_0x64ac55[_0x13d278('0x17f9')][_0x13d278('0x148b')]-=0x1,!_0x64ac55['ivrCampaignHopperHistories'][_0x13d278('0x16a7')][_0x13d278('0x25ae')]&&_0x2fc4dc(),_0x251a9f[_0x13d278('0x425')]({'title':'HopperHistory\x20deleted!','msg':_0x1fb97a[_0x13d278('0x2623')]?_0x1fb97a[_0x13d278('0x2623')]+_0x13d278('0x2182'):''});})[_0x4f3b2c('0x223b')](function(_0x3be519){var _0x1cef69=_0x4f3b2c;if(_0x3be519[_0x1cef69('0x11d0')]&&_0x3be519[_0x1cef69('0x11d0')][_0x1cef69('0xcd2')]&&_0x3be519[_0x1cef69('0x11d0')][_0x1cef69('0xcd2')]['length']){_0x64ac55[_0x1cef69('0xcd2')]=_0x3be519[_0x1cef69('0x11d0')][_0x1cef69('0xcd2')]||[{'message':_0x3be519['toString'](),'type':_0x1cef69('0x723')}];for(var _0x1695e0=0x0;_0x1695e0<_0x3be519[_0x1cef69('0x11d0')][_0x1cef69('0xcd2')][_0x1cef69('0x25ae')];_0x1695e0++){_0x251a9f[_0x1cef69('0x8c8')]({'title':_0x3be519[_0x1cef69('0x11d0')][_0x1cef69('0xcd2')][_0x1695e0][_0x1cef69('0x62e')],'msg':_0x3be519[_0x1cef69('0x11d0')][_0x1cef69('0xcd2')][_0x1695e0][_0x1cef69('0x27e8')]});}}else _0x251a9f[_0x1cef69('0x8c8')]({'title':_0x3be519[_0x1cef69('0x2833')]?_0x1cef69('0x27f2')+_0x3be519['status']+_0x1cef69('0x1b7c')+_0x3be519[_0x1cef69('0x1fd7')]:_0x1cef69('0x723'),'msg':_0x3be519[_0x1cef69('0x11d0')]?JSON[_0x1cef69('0x3ad')](_0x3be519[_0x1cef69('0x11d0')][_0x1cef69('0x27e8')]):_0x3be519[_0x1cef69('0x27e8')]||_0x3be519[_0x1cef69('0x94f')]()});});}function _0x4ee72b(){var _0x45d9f7=_0x4e0495,_0x5ef8b0=angular[_0x45d9f7('0x89')](_0x64ac55[_0x45d9f7('0x1913')]);return _0x64ac55[_0x45d9f7('0x1913')]=[],_0x5ef8b0;}function _0x231399(_0x23ee14){var _0x522b7a=_0x4e0495,_0x4545fe=_0xa84140[_0x522b7a('0xa5')]()[_0x522b7a('0x13e4')](_0x522b7a('0x238f'))[_0x522b7a('0x221c')](_0x522b7a('0xab2')+_0x64ac55[_0x522b7a('0x1913')][_0x522b7a('0x25ae')]+_0x522b7a('0x5bc')+_0x522b7a('0x21bd'))[_0x522b7a('0x4d1')](_0x522b7a('0x119'))[_0x522b7a('0x1345')](_0x23ee14)['ok']('OK')['cancel'](_0x522b7a('0x17'));_0xa84140[_0x522b7a('0x26b2')](_0x4545fe)['then'](function(){var _0x139196=_0x522b7a;_0x64ac55[_0x139196('0x1913')][_0x139196('0x1d7e')](function(_0x8cc6fa){_0x307094(_0x8cc6fa);}),_0x64ac55[_0x139196('0x1913')]=[];});}var _0x180b15=!![],_0x5663cb=0x1;_0x3c35f5['$watch'](_0x4e0495('0x1607'),function(_0x2f26a5,_0x7b6f33){var _0xbbd041=_0x4e0495;_0x180b15?_0x280fc5(function(){_0x180b15=![];}):(!_0x7b6f33&&(_0x5663cb=_0x64ac55[_0xbbd041('0xa16')]['page']),_0x2f26a5!==_0x7b6f33&&(_0x64ac55['query'][_0xbbd041('0xc08')]=0x1),!_0x2f26a5&&(_0x64ac55['query'][_0xbbd041('0xc08')]=_0x5663cb),_0x2fc4dc());});}const _0x37f71d=_0x15373d;_0x11e0b7[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q','$translate','$timeout',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x11e0b7(_0xbaf9b0,_0x2aa592,_0x3a0c88,_0x367309,_0x56d65f,_0x59ffa7,_0x51e503,_0x5632a9,_0x3f062f,_0x54053b,_0x475458){var _0x4eefaf=_0xb635d2,_0x553bde=this;_0x553bde[_0x4eefaf('0x15a5')]=_0x475458[_0x4eefaf('0x1ef8')](),_0x553bde[_0x4eefaf('0xf87')]={},_0x553bde[_0x4eefaf('0x179b')]={'count':0x0,'rows':[]},_0x553bde[_0x4eefaf('0x33c')]=[],_0x553bde[_0x4eefaf('0xb3d')],_0x553bde[_0x4eefaf('0xa16')]={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority','sort':_0x4eefaf('0x7e8'),'limit':0xa,'page':0x1},_0x553bde[_0x4eefaf('0x9dc')]=_0x32d445()[_0x4eefaf('0x226f')]([{'option':_0x4eefaf('0x18fc'),'value':_0x4eefaf('0x414')},{'option':_0x4eefaf('0x239c'),'value':_0x4eefaf('0x14ef')},{'option':_0x4eefaf('0x231d'),'value':_0x4eefaf('0x18fd')},{'option':_0x4eefaf('0x1d23'),'value':_0x4eefaf('0xfd4')},{'option':_0x4eefaf('0x1618'),'value':_0x4eefaf('0x275e')}],function(_0x4ae9c2){var _0x497d4c=_0x4eefaf;return _0x32d445()[_0x497d4c('0x1b42')](_0x4ae9c2[_0x497d4c('0x2')],new RegExp('\x27','g'),'');}),_0x553bde['init']=_0xfad08c,_0x553bde[_0x4eefaf('0x126c')]=_0x15cba6,_0x553bde[_0x4eefaf('0x425')]=_0x5157e1,_0x553bde[_0x4eefaf('0x109e')]=_0x36f25b,_0x553bde['createOrEditIvrCampaignHopper']=_0x2b2d7b,_0x553bde[_0x4eefaf('0x13a3')]=_0x113455,_0x553bde['deleteIvrCampaignHopper']=_0x16edc8,_0x553bde[_0x4eefaf('0x238b')]=_0x4ed848,_0x475458[_0x4eefaf('0x179e')](_0x4eefaf('0xd14'))?_0x54053b[_0x4eefaf('0x10c6')][_0x4eefaf('0x22d5')]({'fields':_0x4eefaf('0x104'),'role':_0x4eefaf('0x108'),'sort':_0x4eefaf('0x2623'),'nolimit':'true'})['$promise'][_0x4eefaf('0xe19')](function(_0x3be851){var _0x34094e=_0x4eefaf;_0x553bde[_0x34094e('0x29b')]=_0x3be851[_0x34094e('0x16a7')]||[];})['catch'](function(_0x453cd7){var _0x33f9f8=_0x4eefaf;_0x3f062f['error']({'title':_0x453cd7[_0x33f9f8('0x2833')]?_0x33f9f8('0x27f2')+_0x453cd7['status']+'\x20-\x20'+_0x453cd7[_0x33f9f8('0x1fd7')]:_0x33f9f8('0x1e86'),'msg':_0x453cd7[_0x33f9f8('0x11d0')]?JSON[_0x33f9f8('0x3ad')](_0x453cd7[_0x33f9f8('0x11d0')]):_0x453cd7[_0x33f9f8('0x94f')]()});}):_0x54053b[_0x4eefaf('0x10c6')][_0x4eefaf('0x22d5')]({'fields':_0x4eefaf('0x104'),'role':_0x4eefaf('0x108'),'sort':_0x4eefaf('0x2623'),'nolimit':_0x4eefaf('0x2206')})['$promise'][_0x4eefaf('0xe19')](function(_0x36b624){var _0x1d5fad=_0x4eefaf;_0x553bde[_0x1d5fad('0x29b')]=_0x36b624[_0x1d5fad('0x16a7')]||[];})[_0x4eefaf('0xe19')](function(){var _0x4183bd=_0x4eefaf;return _0x54053b[_0x4183bd('0xb59')][_0x4183bd('0x22d5')]({'userProfileId':_0x553bde[_0x4183bd('0x15a5')][_0x4183bd('0x1d04')],'sectionId':0xca})[_0x4183bd('0xe59')];})[_0x4eefaf('0xe19')](function(_0x407821){var _0x75e090=_0x4eefaf,_0x2c6af7=_0x407821&&_0x407821[_0x75e090('0x16a7')]?_0x407821['rows'][0x0]:null;if(!_0x2c6af7)_0x553bde[_0x75e090('0x29b')]=[];else{if(!_0x2c6af7[_0x75e090('0x11fd')])return _0x54053b[_0x75e090('0xd49')]['get']({'sectionId':_0x2c6af7['id']})[_0x75e090('0xe59')][_0x75e090('0xe19')](function(_0x2d436f){var _0x542d2c=_0x75e090,_0x12cdf6=_0x32d445()[_0x542d2c('0x65a')](_0x2d436f[_0x542d2c('0x16a7')],function(_0x23867d){var _0x4e4d8b=_0x542d2c;return _0x32d445()[_0x4e4d8b('0xf15')](_0x553bde[_0x4e4d8b('0x29b')],{'id':_0x23867d[_0x4e4d8b('0x1104')]});});_0x553bde['agents'][_0x542d2c('0x1d7e')](function(_0x2a84b2){var _0x938950=_0x542d2c;!_0x32d445()[_0x938950('0x201a')](_0x12cdf6,['id',_0x2a84b2['id']])&&(_0x2a84b2['canSelect']=![]),_0x12cdf6['push'](_0x2a84b2);}),_0x553bde[_0x542d2c('0x29b')]=_0x12cdf6;});}})['catch'](function(_0x461b3a){var _0x5aac06=_0x4eefaf;_0x3f062f[_0x5aac06('0x8c8')]({'title':_0x461b3a[_0x5aac06('0x2833')]?_0x5aac06('0x27f2')+_0x461b3a[_0x5aac06('0x2833')]+_0x5aac06('0x1b7c')+_0x461b3a['statusText']:_0x5aac06('0xfe4'),'msg':_0x461b3a['data']?JSON[_0x5aac06('0x3ad')](_0x461b3a[_0x5aac06('0x11d0')]):_0x461b3a[_0x5aac06('0x94f')]()});});function _0xfad08c(_0x5c6229,_0x3123b4){var _0x532df9=_0x4eefaf;_0x553bde[_0x532df9('0xf87')]=_0x5c6229,_0x553bde[_0x532df9('0xb3d')]=typeof _0x3123b4!==_0x532df9('0x1143')?_0x3123b4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x553bde[_0x532df9('0xa16')][_0x532df9('0x196b')]=_0x553bde[_0x532df9('0xf87')]['id'],_0x553bde[_0x532df9('0xa16')]['id']=_0x553bde[_0x532df9('0xf87')]['id'],_0x36f25b();}function _0x15cba6(_0x27fb2a,_0x3d5da3){var _0x7b6b00=_0x4eefaf,_0x4087ed=_0x51e503[_0x7b6b00('0xa5')]()[_0x7b6b00('0x13e4')](_0x7b6b00('0x1d70'))[_0x7b6b00('0x221c')](''+(_0x27fb2a[_0x7b6b00('0x2623')]||_0x27fb2a['id']&&_0x32d445()[_0x7b6b00('0x2077')]('hopper\x20#')+_0x27fb2a['id']||'hopper')+_0x7b6b00('0x27bb')+_0x7b6b00('0x21bd'))[_0x7b6b00('0x4d1')](_0x7b6b00('0xdcd'))[_0x7b6b00('0x1345')](_0x3d5da3)['ok']('OK')[_0x7b6b00('0x2c1')](_0x7b6b00('0x17'));_0x51e503['show'](_0x4087ed)[_0x7b6b00('0xe19')](function(){_0x16edc8(_0x27fb2a);},function(){var _0x1479a3=_0x7b6b00;console[_0x1479a3('0x1fe9')]('CANCEL');});}function _0x5157e1(_0x3db9b7){var _0x2be0bc=_0x4eefaf;_0x553bde[_0x2be0bc('0x179b')]=_0x3db9b7||{'count':0x0,'rows':[]};}function _0x36f25b(){var _0x5af757=_0x4eefaf;_0x553bde[_0x5af757('0xa16')][_0x5af757('0xab0')]=(_0x553bde['query'][_0x5af757('0xc08')]-0x1)*_0x553bde[_0x5af757('0xa16')][_0x5af757('0x1b6d')],_0x553bde[_0x5af757('0x9c8')]=_0x54053b['campaign'][_0x5af757('0x2018')](_0x553bde[_0x5af757('0xa16')],_0x5157e1)[_0x5af757('0xe59')];}function _0x2b2d7b(_0x52dd30,_0x2c2758){var _0x1927a0=_0x4eefaf;_0x51e503[_0x1927a0('0x26b2')]({'controller':'CreateOrEditHopperCampaignIdDialogController','controllerAs':'vm','templateUrl':_0x27ecd0,'parent':angular['element'](_0x5632a9[_0x1927a0('0x19b2')]),'targetEvent':_0x52dd30,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x553bde['ivrCampaign'],'hopper':_0x2c2758,'hoppers':_0x553bde[_0x1927a0('0x179b')][_0x1927a0('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x553bde[_0x1927a0('0xb3d')]}});}function _0x16edc8(_0x485bff){var _0x18572a=_0x4eefaf;_0x54053b[_0x18572a('0x2408')]['delete']({'id':_0x485bff['id']})[_0x18572a('0xe59')][_0x18572a('0xe19')](function(){var _0x5b309d=_0x18572a;_0x32d445()[_0x5b309d('0xa8b')](_0x553bde[_0x5b309d('0x179b')][_0x5b309d('0x16a7')],{'id':_0x485bff['id']}),_0x553bde[_0x5b309d('0x179b')][_0x5b309d('0x148b')]-=0x1,!_0x553bde[_0x5b309d('0x179b')][_0x5b309d('0x16a7')][_0x5b309d('0x25ae')]&&_0x36f25b(),_0x3f062f[_0x5b309d('0x425')]({'title':_0x5b309d('0x1e7f'),'msg':_0x485bff[_0x5b309d('0x2623')]?_0x485bff[_0x5b309d('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x18572a('0x223b')](function(_0x2b8f4e){var _0xb321f0=_0x18572a;if(_0x2b8f4e['data']&&_0x2b8f4e[_0xb321f0('0x11d0')][_0xb321f0('0xcd2')]&&_0x2b8f4e['data']['errors'][_0xb321f0('0x25ae')]){_0x553bde[_0xb321f0('0xcd2')]=_0x2b8f4e[_0xb321f0('0x11d0')]['errors']||[{'message':_0x2b8f4e[_0xb321f0('0x94f')](),'type':_0xb321f0('0x723')}];for(var _0x40b05c=0x0;_0x40b05c<_0x2b8f4e[_0xb321f0('0x11d0')][_0xb321f0('0xcd2')][_0xb321f0('0x25ae')];_0x40b05c++){_0x3f062f[_0xb321f0('0x8c8')]({'title':_0x2b8f4e[_0xb321f0('0x11d0')]['errors'][_0x40b05c][_0xb321f0('0x62e')],'msg':_0x2b8f4e[_0xb321f0('0x11d0')][_0xb321f0('0xcd2')][_0x40b05c][_0xb321f0('0x27e8')]});}}else _0x3f062f[_0xb321f0('0x8c8')]({'title':_0x2b8f4e[_0xb321f0('0x2833')]?'API:'+_0x2b8f4e[_0xb321f0('0x2833')]+'\x20-\x20'+_0x2b8f4e[_0xb321f0('0x1fd7')]:'SYSTEM:GETcampaign','msg':_0x2b8f4e[_0xb321f0('0x11d0')]?JSON[_0xb321f0('0x3ad')](_0x2b8f4e[_0xb321f0('0x11d0')][_0xb321f0('0x27e8')]):_0x2b8f4e['message']||_0x2b8f4e[_0xb321f0('0x94f')]()});});}function _0x113455(){var _0x3250e5=_0x4eefaf,_0x341e09=angular['copy'](_0x553bde[_0x3250e5('0x33c')]);return _0x553bde['selectedIvrCampaignHoppers']=[],_0x341e09;}function _0x4ed848(_0x363f17){var _0x23ee20=_0x4eefaf,_0x308206=_0x51e503[_0x23ee20('0xa5')]()[_0x23ee20('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?')['htmlContent'](''+_0x553bde[_0x23ee20('0x33c')]['length']+_0x23ee20('0x5bc')+_0x23ee20('0x21bd'))[_0x23ee20('0x4d1')]('delete\x20hoppers')[_0x23ee20('0x1345')](_0x363f17)['ok']('OK')['cancel']('CANCEL');_0x51e503['show'](_0x308206)[_0x23ee20('0xe19')](function(){var _0x1cfcbd=_0x23ee20;_0x553bde[_0x1cfcbd('0x33c')]['forEach'](function(_0x1b2e92){_0x16edc8(_0x1b2e92);}),_0x553bde['selectedIvrCampaignHoppers']=[];});}var _0x53079b=!![],_0x22200e=0x1;_0x2aa592[_0x4eefaf('0x107')](_0x4eefaf('0x1607'),function(_0x19ba81,_0x4a38aa){var _0x5d6e9b=_0x4eefaf;_0x53079b?_0x59ffa7(function(){_0x53079b=![];}):(!_0x4a38aa&&(_0x22200e=_0x553bde[_0x5d6e9b('0xa16')][_0x5d6e9b('0xc08')]),_0x19ba81!==_0x4a38aa&&(_0x553bde[_0x5d6e9b('0xa16')][_0x5d6e9b('0xc08')]=0x1),!_0x19ba81&&(_0x553bde[_0x5d6e9b('0xa16')][_0x5d6e9b('0xc08')]=_0x22200e),_0x36f25b());});}const _0x39d66a=_0x11e0b7;_0x481e5f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x26d1'),_0xb635d2('0x11f0'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x481e5f(_0xba2424,_0xee01be,_0x8c9c18,_0x1afa3e,_0x4824be,_0x3f3347,_0xc13db5,_0x33f7b3,_0x4fd116,_0x39aa60,_0x4710de,_0x3e6084,_0x2c9ff4,_0x28eae2){var _0x97c5eb=_0xb635d2,_0x1c0a34=this;_0x1c0a34[_0x97c5eb('0x15a5')]=_0x4710de[_0x97c5eb('0x1ef8')](),_0x1c0a34['errors']=[],_0x1c0a34[_0x97c5eb('0x22f1')]=_0x2c9ff4,_0x1c0a34[_0x97c5eb('0x5c1')]=_0x3e6084,_0x1c0a34[_0x97c5eb('0xb3d')]=_0x28eae2,_0x1c0a34[_0x97c5eb('0x1ccb')]={},_0x1c0a34[_0x97c5eb('0x25ac')]=_0x1c0a34[_0x97c5eb('0x22f1')]&&_0x1c0a34[_0x97c5eb('0x22f1')][_0x97c5eb('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c0a34[_0x97c5eb('0x13e4')]=_0x97c5eb('0x1fe5'),_0x1c0a34[_0x97c5eb('0x11f0')]=angular[_0x97c5eb('0x89')](_0x4fd116),_0x1c0a34[_0x97c5eb('0x26d1')]=_0x33f7b3,_0x1c0a34[_0x97c5eb('0x210c')]=![];!_0x1c0a34[_0x97c5eb('0x11f0')]&&(_0x1c0a34[_0x97c5eb('0x11f0')]={},_0x1c0a34[_0x97c5eb('0x13e4')]=_0x97c5eb('0x17ee'),_0x1c0a34['newHopper']=!![]);_0xee01be[_0x97c5eb('0x2ef')]['id']&&(_0x1c0a34['hopper'][_0x97c5eb('0x196b')]=_0xee01be[_0x97c5eb('0x2ef')]['id']);_0x1c0a34[_0x97c5eb('0x216b')]=_0x599002,_0x1c0a34[_0x97c5eb('0x23c2')]=_0x3d3ae7,_0x1c0a34[_0x97c5eb('0x2773')]=_0x18865c,_0x1c0a34[_0x97c5eb('0x2635')]=_0x7e9914,_0x1c0a34[_0x97c5eb('0x2584')]=_0x1cc4fd,_0x4710de[_0x97c5eb('0x179e')](_0x97c5eb('0xd14'))?_0x39aa60['user']['get']({'fields':_0x97c5eb('0x104'),'role':'agent','sort':_0x97c5eb('0x2623'),'nolimit':_0x97c5eb('0x2206')})['$promise'][_0x97c5eb('0xe19')](function(_0x26e796){var _0x2b3641=_0x97c5eb;_0x1c0a34[_0x2b3641('0x29b')]=_0x26e796[_0x2b3641('0x16a7')]||[];})[_0x97c5eb('0x223b')](function(_0x503de1){var _0x5cba74=_0x97c5eb;_0xc13db5[_0x5cba74('0x8c8')]({'title':_0x503de1[_0x5cba74('0x2833')]?_0x5cba74('0x27f2')+_0x503de1[_0x5cba74('0x2833')]+'\x20-\x20'+_0x503de1[_0x5cba74('0x1fd7')]:_0x5cba74('0x1e86'),'msg':_0x503de1[_0x5cba74('0x11d0')]?JSON['stringify'](_0x503de1[_0x5cba74('0x11d0')]):_0x503de1[_0x5cba74('0x94f')]()});}):_0x39aa60[_0x97c5eb('0x10c6')]['get']({'fields':_0x97c5eb('0x104'),'role':_0x97c5eb('0x108'),'sort':_0x97c5eb('0x2623'),'nolimit':_0x97c5eb('0x2206')})[_0x97c5eb('0xe59')][_0x97c5eb('0xe19')](function(_0x56e20e){var _0x411da=_0x97c5eb;_0x1c0a34[_0x411da('0x29b')]=_0x56e20e['rows']||[];})[_0x97c5eb('0xe19')](function(){var _0x519dad=_0x97c5eb;return _0x39aa60[_0x519dad('0xb59')][_0x519dad('0x22d5')]({'userProfileId':_0x1c0a34[_0x519dad('0x15a5')][_0x519dad('0x1d04')],'sectionId':0xca})[_0x519dad('0xe59')];})[_0x97c5eb('0xe19')](function(_0x30dec4){var _0x452885=_0x97c5eb,_0xf2952e=_0x30dec4&&_0x30dec4['rows']?_0x30dec4['rows'][0x0]:null;if(!_0xf2952e)_0x1c0a34[_0x452885('0x29b')]=[];else{if(!_0xf2952e[_0x452885('0x11fd')])return _0x39aa60[_0x452885('0xd49')][_0x452885('0x22d5')]({'sectionId':_0xf2952e['id']})[_0x452885('0xe59')]['then'](function(_0x4bd654){var _0x3797de=_0x452885,_0x2c33d4=_0x32d445()[_0x3797de('0x65a')](_0x4bd654[_0x3797de('0x16a7')],function(_0x1adcaa){var _0x46fb1b=_0x3797de;return _0x32d445()[_0x46fb1b('0xf15')](_0x1c0a34[_0x46fb1b('0x29b')],{'id':_0x1adcaa[_0x46fb1b('0x1104')]});});_0x1c0a34['agents']['forEach'](function(_0x539d1a){var _0x4844f2=_0x3797de;!_0x32d445()[_0x4844f2('0x201a')](_0x2c33d4,['id',_0x539d1a['id']])&&(_0x539d1a[_0x4844f2('0x1e9d')]=![]),_0x2c33d4[_0x4844f2('0xb76')](_0x539d1a);}),_0x1c0a34[_0x3797de('0x29b')]=_0x2c33d4;});}})[_0x97c5eb('0x223b')](function(_0x4da6d3){var _0x287304=_0x97c5eb;_0xc13db5[_0x287304('0x8c8')]({'title':_0x4da6d3[_0x287304('0x2833')]?_0x287304('0x27f2')+_0x4da6d3[_0x287304('0x2833')]+_0x287304('0x1b7c')+_0x4da6d3[_0x287304('0x1fd7')]:_0x287304('0xfe4'),'msg':_0x4da6d3[_0x287304('0x11d0')]?JSON[_0x287304('0x3ad')](_0x4da6d3['data']):_0x4da6d3[_0x287304('0x94f')]()});});function _0x599002(){var _0x256b90=_0x97c5eb;_0x1c0a34[_0x256b90('0xcd2')]=[],_0x39aa60[_0x256b90('0x2408')]['save'](_0x1c0a34['hopper'])[_0x256b90('0xe59')]['then'](function(_0x5b4e31){var _0x4ef1fb=_0x256b90;_0x1c0a34[_0x4ef1fb('0x26d1')][_0x4ef1fb('0x14c9')](_0x5b4e31[_0x4ef1fb('0x250e')]()),_0xc13db5['success']({'title':_0x4ef1fb('0x1f01'),'msg':_0x1c0a34['hopper'][_0x4ef1fb('0x2623')]?_0x1c0a34[_0x4ef1fb('0x11f0')]['name']+'\x20has\x20been\x20created!':''}),_0x1cc4fd(_0x5b4e31);})[_0x256b90('0x223b')](function(_0xf469cd){var _0x5dd34a=_0x256b90;if(_0xf469cd['data']&&_0xf469cd['data'][_0x5dd34a('0xcd2')]&&_0xf469cd[_0x5dd34a('0x11d0')][_0x5dd34a('0xcd2')][_0x5dd34a('0x25ae')]){_0x1c0a34[_0x5dd34a('0xcd2')]=_0xf469cd[_0x5dd34a('0x11d0')][_0x5dd34a('0xcd2')]||[{'message':_0xf469cd['toString'](),'type':'api.cmHopper.save'}];for(var _0xdadc4d=0x0;_0xdadc4d<_0xf469cd[_0x5dd34a('0x11d0')][_0x5dd34a('0xcd2')]['length'];_0xdadc4d+=0x1){_0xc13db5[_0x5dd34a('0x8c8')]({'title':_0xf469cd['data'][_0x5dd34a('0xcd2')][_0xdadc4d][_0x5dd34a('0x62e')],'msg':_0xf469cd['data'][_0x5dd34a('0xcd2')][_0xdadc4d][_0x5dd34a('0x27e8')]});}}else _0xc13db5['error']({'title':_0xf469cd[_0x5dd34a('0x2833')]?_0x5dd34a('0x27f2')+_0xf469cd[_0x5dd34a('0x2833')]+_0x5dd34a('0x1b7c')+_0xf469cd[_0x5dd34a('0x1fd7')]:'api.cmHopper.save','msg':_0xf469cd['data']?JSON[_0x5dd34a('0x3ad')](_0xf469cd[_0x5dd34a('0x11d0')][_0x5dd34a('0x27e8')]):_0xf469cd[_0x5dd34a('0x94f')]()});});}function _0x3d3ae7(){var _0x423393=_0x97c5eb;_0x1c0a34[_0x423393('0xcd2')]=[];var _0x362f62,_0x9af755,_0x512ae2,_0x426cf5;_0x1c0a34[_0x423393('0x11f0')][_0x423393('0x43d')]=_0x1c0a34['hopper']['recallme']?_0x1c0a34[_0x423393('0x11f0')][_0x423393('0x43d')]:null,_0x1c0a34['hopper'][_0x423393('0xa5e')]=_0x4710de[_0x423393('0x1ef8')]()['id'],_0x39aa60['cmHopper']['get']({'id':_0x1c0a34[_0x423393('0x11f0')]['id'],'attributes':[_0x423393('0x50e')]})['$promise'][_0x423393('0xe19')](function(_0x5061cd){var _0x334c7a=_0x423393;_0x32d445()[_0x334c7a('0xe44')](_0x5061cd)||_0x32d445()[_0x334c7a('0x14b4')](_0x5061cd)?_0x362f62=_0x4ddcaa()()[_0x334c7a('0x5e5')](_0x334c7a('0x1f90')):_0x362f62=_0x5061cd[_0x334c7a('0x50e')];})[_0x423393('0x23')](function(){var _0x265b05=_0x423393;_0x39aa60['cmHopper']['update']({'id':_0x1c0a34[_0x265b05('0x11f0')]['id']},_0x32d445()['omit'](_0x1c0a34[_0x265b05('0x11f0')],[_0x265b05('0x1967'),'CampaignId',_0x265b05('0x23c1'),_0x265b05('0x2463')]))[_0x265b05('0xe59')][_0x265b05('0xe19')](function(_0x490402){var _0x3f44c6=_0x265b05;_0x9af755=_0x490402,_0x39aa60[_0x3f44c6('0x1711')][_0x3f44c6('0x22d5')]({'id':_0x9af755[_0x3f44c6('0x23c1')],'attributes':[_0x3f44c6('0x2566'),_0x3f44c6('0x151f')]})[_0x3f44c6('0xe59')][_0x3f44c6('0xe19')](function(_0x4fa250){var _0x4a63b5=_0x3f44c6;!_0x32d445()[_0x4a63b5('0xe44')](_0x4fa250)&&!_0x32d445()[_0x4a63b5('0xe44')](_0x4fa250['firstName'])&&(_0x512ae2=_0x4fa250[_0x4a63b5('0x2566')],!_0x32d445()[_0x4a63b5('0xe44')](_0x4fa250['lastName'])&&(_0x512ae2+='\x20'+_0x4fa250[_0x4a63b5('0x151f')]));})[_0x3f44c6('0x223b')](function(){_0x512ae2=undefined;})[_0x3f44c6('0x23')](function(){var _0xa9a17=_0x3f44c6;_0x39aa60[_0xa9a17('0xcc1')][_0xa9a17('0x22d5')]({'raw':![],'id':_0x9af755[_0xa9a17('0x196b')],'attributes':[_0xa9a17('0x2623')]})[_0xa9a17('0xe59')][_0xa9a17('0xe19')](function(_0x5832dc){var _0x529712=_0xa9a17;_0x426cf5=_0x5832dc[_0x529712('0x2623')];})[_0xa9a17('0x223b')](function(){_0x426cf5=undefined;})['finally'](function(){var _0x27d16b=_0xa9a17;_0x39aa60['cmHopperHistory'][_0x27d16b('0xe5e')]({'state':0x18,'statedesc':_0x27d16b('0x3a'),'scheduledat':_0x362f62,'calleridnum':_0x9af755[_0x27d16b('0x1ef5')],'calleridname':_0x512ae2,'campaigntype':_0x9af755[_0x27d16b('0x1967')]?_0x27d16b('0x26a8'):'ivr','campaign':_0x426cf5,'editedat':_0x4ddcaa()()[_0x27d16b('0x5e5')]('YYYY-MM-DD\x20HH:mm:ss'),'edited':!![],'ListId':_0x9af755[_0x27d16b('0x2463')],'UserId':_0x4710de[_0x27d16b('0x1ef8')]()['id'],'VoiceQueueId':_0x9af755[_0x27d16b('0x1967')],'CampaignId':_0x9af755['CampaignId'],'ContactId':_0x9af755['ContactId'],'callback':_0x9af755['callback'],'callbackuniqueid':_0x9af755[_0x27d16b('0xec2')],'countbusyretry':_0x9af755[_0x27d16b('0x27fb')],'countcongestionretry':_0x9af755['countcongestionretry'],'countglobal':_0x9af755[_0x27d16b('0x209c')],'countnoanswerretry':_0x9af755[_0x27d16b('0x2031')],'followuptime':_0x9af755[_0x27d16b('0xbae')],'recallme':_0x9af755[_0x27d16b('0x9ee')]});});});var _0x364800=_0x32d445()[_0x3f44c6('0xf15')](_0x1c0a34[_0x3f44c6('0x26d1')],{'id':_0x490402['id']});_0x364800&&_0x32d445()[_0x3f44c6('0x1d8')](_0x364800,_0x32d445()[_0x3f44c6('0xed5')](_0x490402[_0x3f44c6('0x250e')](),_0x32d445()[_0x3f44c6('0x1234')](_0x364800))),_0xc13db5[_0x3f44c6('0x425')]({'title':_0x3f44c6('0x1ab6'),'msg':_0x1c0a34[_0x3f44c6('0x11f0')][_0x3f44c6('0x2623')]?_0x1c0a34[_0x3f44c6('0x11f0')][_0x3f44c6('0x2623')]+_0x3f44c6('0x1c19'):''}),_0x1cc4fd(_0x490402);})['catch'](function(_0xa6f220){var _0x79f347=_0x265b05;if(_0xa6f220[_0x79f347('0x11d0')]&&_0xa6f220['data'][_0x79f347('0xcd2')]&&_0xa6f220[_0x79f347('0x11d0')]['errors'][_0x79f347('0x25ae')]){_0x1c0a34[_0x79f347('0xcd2')]=_0xa6f220['data']['errors']||[{'message':_0xa6f220[_0x79f347('0x94f')](),'type':_0x79f347('0x19ab')}];for(var _0xd3b02f=0x0;_0xd3b02f<_0xa6f220[_0x79f347('0x11d0')][_0x79f347('0xcd2')][_0x79f347('0x25ae')];_0xd3b02f++){_0xc13db5[_0x79f347('0x8c8')]({'title':_0xa6f220[_0x79f347('0x11d0')][_0x79f347('0xcd2')][_0xd3b02f]['type'],'msg':_0xa6f220['data'][_0x79f347('0xcd2')][_0xd3b02f][_0x79f347('0x27e8')]});}}else _0xc13db5[_0x79f347('0x8c8')]({'title':_0xa6f220[_0x79f347('0x2833')]?_0x79f347('0x27f2')+_0xa6f220[_0x79f347('0x2833')]+_0x79f347('0x1b7c')+_0xa6f220[_0x79f347('0x1fd7')]:'api.cmHopper.update','msg':_0xa6f220['data']?JSON[_0x79f347('0x3ad')](_0xa6f220[_0x79f347('0x11d0')][_0x79f347('0x27e8')]):_0xa6f220['toString']()});});});}function _0x18865c(_0x68cf29){var _0x51643e=_0x97c5eb;_0x1c0a34[_0x51643e('0xcd2')]=[];var _0x59f609=_0x1afa3e['confirm']()[_0x51643e('0x13e4')](_0x51643e('0x24d0'))[_0x51643e('0xd0')]('The\x20hopper\x20will\x20be\x20deleted.')[_0x51643e('0x4d1')]('Delete\x20Hopper')['ok']('Delete')[_0x51643e('0x2c1')](_0x51643e('0x8a3'))['targetEvent'](_0x68cf29);_0x1afa3e[_0x51643e('0x26b2')](_0x59f609)[_0x51643e('0xe19')](function(){var _0xe109f=_0x51643e;_0x39aa60[_0xe109f('0x2408')][_0xe109f('0x229e')]({'id':_0x1c0a34['hopper']['id']})[_0xe109f('0xe59')][_0xe109f('0xe19')](function(){var _0x5f59a8=_0xe109f;_0x32d445()[_0x5f59a8('0xa8b')](_0x1c0a34['hoppers'],{'id':_0x1c0a34[_0x5f59a8('0x11f0')]['id']}),_0xc13db5[_0x5f59a8('0x425')]({'title':_0x5f59a8('0x41d'),'msg':(_0x1c0a34[_0x5f59a8('0x11f0')][_0x5f59a8('0x2623')]||_0x5f59a8('0x11f0'))+_0x5f59a8('0x2182')}),_0x1cc4fd(_0x1c0a34[_0x5f59a8('0x11f0')]);})[_0xe109f('0x223b')](function(_0x11c264){var _0x49a447=_0xe109f;if(_0x11c264[_0x49a447('0x11d0')]&&_0x11c264[_0x49a447('0x11d0')][_0x49a447('0xcd2')]&&_0x11c264[_0x49a447('0x11d0')][_0x49a447('0xcd2')][_0x49a447('0x25ae')]){_0x1c0a34['errors']=_0x11c264[_0x49a447('0x11d0')][_0x49a447('0xcd2')]||[{'message':_0x11c264[_0x49a447('0x94f')](),'type':_0x49a447('0x28a2')}];for(var _0x24d256=0x0;_0x24d256<_0x11c264[_0x49a447('0x11d0')][_0x49a447('0xcd2')][_0x49a447('0x25ae')];_0x24d256++){_0xc13db5[_0x49a447('0x8c8')]({'title':_0x11c264[_0x49a447('0x11d0')][_0x49a447('0xcd2')][_0x24d256][_0x49a447('0x62e')],'msg':_0x11c264[_0x49a447('0x11d0')][_0x49a447('0xcd2')][_0x24d256][_0x49a447('0x27e8')]});}}else _0xc13db5[_0x49a447('0x8c8')]({'title':_0x11c264[_0x49a447('0x2833')]?_0x49a447('0x27f2')+_0x11c264[_0x49a447('0x2833')]+_0x49a447('0x1b7c')+_0x11c264['statusText']:_0x49a447('0x28a2'),'msg':_0x11c264[_0x49a447('0x11d0')]?JSON[_0x49a447('0x3ad')](_0x11c264['data'][_0x49a447('0x27e8')]):_0x11c264[_0x49a447('0x27e8')]||_0x11c264[_0x49a447('0x94f')]()});});},function(){});}function _0x7e9914(_0x538ece){return _0x538ece===null?undefined:new Date(_0x538ece);}function _0x1cc4fd(_0x40c720){_0x1afa3e['hide'](_0x40c720);}}const _0x374b2f=_0x481e5f;_0x13c3a3[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc'),_0xb635d2('0xf65')];function _0x13c3a3(_0x4f274,_0x580ad9){var _0x12e41a=_0xb635d2,_0x2258bb=this;_0x2258bb[_0x12e41a('0xf87')]={},_0x2258bb['init']=_0x415441;function _0x415441(_0x70bd67){var _0x30ad68=_0x12e41a;_0x2258bb[_0x30ad68('0xf87')]=_0x70bd67,_0x4f274[_0x30ad68('0x2408')][_0x30ad68('0x22d5')]({'limit':0x0,'CampaignId':_0x70bd67['id']})[_0x30ad68('0xe59')]['then'](function(_0x46a18e){var _0x242432=_0x30ad68;return _0x2258bb[_0x242432('0x1e14')]=_0x46a18e[_0x242432('0x148b')]||0x0,_0x4f274['cmHopper']['get']({'limit':0x0,'CampaignId':_0x70bd67['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x242432('0xe59')];})[_0x30ad68('0xe19')](function(_0x7dc4ae){var _0x2b6692=_0x30ad68;return _0x2258bb[_0x2b6692('0x2558')]=_0x7dc4ae[_0x2b6692('0x148b')]||0x0,_0x4f274[_0x2b6692('0x1afa')][_0x2b6692('0x22d5')]({'limit':0x0,'CampaignId':_0x70bd67['id']})['$promise'];})[_0x30ad68('0xe19')](function(_0x5b5a9c){_0x2258bb['closed']=_0x5b5a9c['count']||0x0;})[_0x30ad68('0x223b')](function(_0x1d43ed){var _0x4f32f7=_0x30ad68;_0x580ad9[_0x4f32f7('0x8c8')]({'title':_0x1d43ed[_0x4f32f7('0x2833')]?_0x4f32f7('0x27f2')+_0x1d43ed['status']+_0x4f32f7('0x1b7c')+_0x1d43ed[_0x4f32f7('0x1fd7')]:_0x4f32f7('0x215c'),'msg':_0x1d43ed[_0x4f32f7('0x11d0')]?JSON[_0x4f32f7('0x3ad')](_0x1d43ed[_0x4f32f7('0x11d0')]):_0x1d43ed[_0x4f32f7('0x94f')]()});});}}const _0x17283a=_0x13c3a3;_0x461d92[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0xf87'),_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x2730'),'crudPermissions'];function _0x461d92(_0x54794f,_0x5c5dc3,_0x5aced6,_0x2acde5,_0x14d668,_0x15adea,_0x3c5e6c,_0x3ec79b,_0x52e4bf){var _0x3e9f6f=_0xb635d2,_0x351d41=this;_0x351d41[_0x3e9f6f('0x15a5')]=_0x3ec79b[_0x3e9f6f('0x1ef8')](),_0x351d41[_0x3e9f6f('0xf87')]=_0x14d668,_0x351d41[_0x3e9f6f('0xb3d')]=_0x52e4bf,_0x351d41['apiRoute']=_0x3e9f6f('0xcc1'),_0x351d41[_0x3e9f6f('0x530')]=_0x3e9f6f('0x1feb'),_0x351d41['addApi']='addLists',_0x351d41[_0x3e9f6f('0x20ec')]=_0x3e9f6f('0x5e1'),_0x351d41['items']=[],_0x351d41[_0x3e9f6f('0x1884')]=[],_0x351d41[_0x3e9f6f('0x2273')]=[],_0x351d41[_0x3e9f6f('0x286c')]=[],_0x351d41[_0x3e9f6f('0xf79')]=[],_0x351d41[_0x3e9f6f('0x16e7')]=![],_0x351d41['loading']=![],_0x351d41[_0x3e9f6f('0xc00')]={'readOnly':!_0x351d41[_0x3e9f6f('0xb3d')][_0x3e9f6f('0x12bc')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x3e9f6f('0x2623'),'line1':_0x3e9f6f('0x2623'),'line2':'','line3':'','labelAll':_0x15adea[_0x3e9f6f('0x2159')](_0x3e9f6f('0x1bba')),'labelSelected':_0x15adea['instant']('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function _0x2f0fcf(){var _0x21a1d1=_0x3e9f6f,_0x4619d6=_0x32d445()[_0x21a1d1('0x118')](_0x351d41['startingSelectedItems'],_0x351d41['selectedItems'],'id');_0x351d41[_0x21a1d1('0x16e7')]=_0x32d445()[_0x21a1d1('0x14b4')](_0x4619d6)?![]:!![];}},_0x351d41[_0x3e9f6f('0x888')]=_0x39db99,_0x351d41['saveLists']=_0x553b55,_0x351d41[_0x3e9f6f('0x2584')]=_0x4856f7;function _0x39db99(){var _0x57e319=_0x3e9f6f;return _0x3ec79b[_0x57e319('0x179e')](_0x57e319('0xd14'))?_0x2b974a()[_0x57e319('0x223b')](function(_0x295443){var _0x2c0e6a=_0x57e319;_0x5aced6[_0x2c0e6a('0x8c8')]({'title':_0x295443[_0x2c0e6a('0x2833')]?_0x2c0e6a('0x27f2')+_0x295443[_0x2c0e6a('0x2833')]+_0x2c0e6a('0x1b7c')+_0x295443['statusText']:'SYSTEM:GETLISTS','msg':_0x295443[_0x2c0e6a('0x2833')]?JSON[_0x2c0e6a('0x3ad')](_0x295443[_0x2c0e6a('0x11d0')]):_0x295443[_0x2c0e6a('0x94f')]()});}):_0x3df713()[_0x57e319('0xe19')](function(_0x149494){var _0x1b31fd=_0x57e319;return _0x351d41[_0x1b31fd('0x1e59')]=_0x149494,_0x2b974a();})['catch'](function(_0x4510c4){var _0x3c52c1=_0x57e319;_0x5aced6[_0x3c52c1('0x8c8')]({'title':_0x4510c4['status']?_0x3c52c1('0x27f2')+_0x4510c4['status']+'\x20-\x20'+_0x4510c4[_0x3c52c1('0x1fd7')]:_0x3c52c1('0x25ce'),'msg':_0x4510c4[_0x3c52c1('0x2833')]?JSON['stringify'](_0x4510c4[_0x3c52c1('0x11d0')]):_0x4510c4[_0x3c52c1('0x94f')]()});});}function _0x3df713(){return _0x5c5dc3(function(_0x10cbbb,_0x4f5a0b){var _0x3feca5=a0_0x5325;_0x2acde5[_0x3feca5('0xb59')][_0x3feca5('0x22d5')]({'userProfileId':_0x351d41[_0x3feca5('0x15a5')]['userProfileId'],'name':'Lists'})[_0x3feca5('0xe59')]['then'](function(_0x68b0d8){var _0x54d1f9=_0x3feca5,_0x4a7d7e=_0x68b0d8&&_0x68b0d8[_0x54d1f9('0x16a7')]?_0x68b0d8[_0x54d1f9('0x16a7')][0x0]:null;_0x10cbbb(_0x4a7d7e);})[_0x3feca5('0x223b')](function(_0x4ac377){_0x4f5a0b(_0x4ac377);});});}function _0x2b974a(){return _0x5c5dc3(function(_0x3981bd,_0x66a1d3){var _0x596e4e=a0_0x5325;return _0x285a62()[_0x596e4e('0xe19')](function(_0xaea88f){var _0x2496d5=_0x596e4e;return _0x351d41[_0x2496d5('0xe4b')]=_0xaea88f[_0x2496d5('0x16a7')]?_0xaea88f[_0x2496d5('0x16a7')]:[],_0x3ec79b[_0x2496d5('0x179e')](_0x2496d5('0xd14'))?_0xaea88f:_0x351d41['section']?_0x351d41['section'][_0x2496d5('0x11fd')]?_0xaea88f:_0x116e63():null;})[_0x596e4e('0xe19')](function(_0x154509){var _0x538639=_0x596e4e,_0x3037fb=_0x154509&&_0x154509[_0x538639('0x16a7')]?_0x154509[_0x538639('0x16a7')]:[];return _0x351d41[_0x538639('0x1884')]=_0x32d445()[_0x538639('0x65a')](_0x3037fb,function(_0x583107){var _0x4c26d6=_0x538639;return _0x32d445()[_0x4c26d6('0xf15')](_0x351d41[_0x4c26d6('0xe4b')],{'id':_0x3ec79b[_0x4c26d6('0x179e')]('admin')||_0x351d41[_0x4c26d6('0x1e59')][_0x4c26d6('0x11fd')]?_0x583107['id']:_0x583107['resourceId']});}),_0x351d41[_0x538639('0x286c')]=angular[_0x538639('0x89')](_0x351d41[_0x538639('0x1884')]),_0x351d41['items'][_0x538639('0x1d7e')](function(_0x50a5a4){var _0x8228e8=_0x538639,_0x4c2309=_0x32d445()['find'](_0x351d41[_0x8228e8('0x1884')],{'id':_0x50a5a4['id']});_0x351d41[_0x8228e8('0x15a5')][_0x8228e8('0xcd9')]===_0x8228e8('0xd14')?_0x50a5a4[_0x8228e8('0x1768')]=!![]:_0x50a5a4[_0x8228e8('0x1768')]=typeof _0x4c2309!==_0x8228e8('0x1143')?!![]:![];}),_0x1d2e6d();})['then'](function(_0x2c9d36){var _0x5668e5=_0x596e4e,_0x17525a=_0x2c9d36&&_0x2c9d36[_0x5668e5('0x16a7')]?_0x2c9d36[_0x5668e5('0x16a7')]:[];_0x351d41[_0x5668e5('0x2273')]=_0x32d445()[_0x5668e5('0x65a')](_0x17525a,function(_0x103900){var _0x35dfb7=_0x5668e5;return _0x32d445()[_0x35dfb7('0xf15')](_0x351d41[_0x35dfb7('0xe4b')],{'id':_0x103900['id']});}),_0x351d41[_0x5668e5('0xf79')]=angular['copy'](_0x351d41[_0x5668e5('0x2273')]),_0x351d41['dualMultiselectOptions'][_0x5668e5('0x2273')]=_0x351d41['selectedItems'],_0x351d41['dualMultiselectOptions'][_0x5668e5('0xe4b')]=_0x32d445()[_0x5668e5('0x501')](_0x351d41['allowedItems'],_0x351d41['dualMultiselectOptions'][_0x5668e5('0x2273')],'id'),_0x3981bd();})['catch'](function(_0x1b7db3){_0x66a1d3(_0x1b7db3);});});}function _0x116e63(){return _0x5c5dc3(function(_0x417a8f,_0x5756d){var _0x3f9157=a0_0x5325;return _0x2acde5[_0x3f9157('0xd49')]['get']({'sectionId':_0x351d41[_0x3f9157('0x1e59')]['id'],'nolimit':!![]})[_0x3f9157('0xe59')][_0x3f9157('0xe19')](function(_0x10c603){_0x417a8f(_0x10c603);})[_0x3f9157('0x223b')](function(_0x588ef7){_0x5756d(_0x588ef7);});});}function _0x1d2e6d(){return _0x5c5dc3(function(_0x363cab,_0x3a65fc){var _0xb900=a0_0x5325,_0x2aea0e=_0x2acde5[_0x351d41[_0xb900('0xbe1')]];return _0x2aea0e[_0x351d41[_0xb900('0x530')]]({'id':_0x351d41[_0xb900('0xf87')]['id'],'fields':_0xb900('0x104'),'nolimit':!![]})['$promise'][_0xb900('0xe19')](function(_0x1d639b){_0x363cab(_0x1d639b);})[_0xb900('0x223b')](function(_0x5337f0){_0x3a65fc(_0x5337f0);});});}function _0x285a62(){return _0x5c5dc3(function(_0x10c4a8,_0x492b99){var _0x48b52a=a0_0x5325;return _0x2acde5[_0x48b52a('0x1bbd')][_0x48b52a('0x22d5')]({'fields':_0x48b52a('0x104'),'nolimit':!![]})[_0x48b52a('0xe59')][_0x48b52a('0xe19')](function(_0x18bba8){_0x10c4a8(_0x18bba8);})[_0x48b52a('0x223b')](function(_0x2f8075){_0x492b99(_0x2f8075);});});}function _0x299c88(_0x1bc327){return _0x5c5dc3(function(_0x518a99,_0x441586){var _0x3da8b2=a0_0x5325;if(_0x32d445()[_0x3da8b2('0x14b4')](_0x1bc327))_0x518a99();else{var _0x526efe=_0x2acde5[_0x351d41[_0x3da8b2('0xbe1')]];_0x526efe[_0x351d41[_0x3da8b2('0x4b4')]]({'id':_0x351d41[_0x3da8b2('0xf87')]['id'],'ids':_0x32d445()['map'](_0x1bc327,'id')})[_0x3da8b2('0xe59')]['then'](function(){_0x518a99();})['catch'](function(_0x289dfb){_0x441586(_0x289dfb);});}});}function _0x45539e(_0x40f669){return _0x5c5dc3(function(_0x4f50a3,_0xcb025){var _0x3a5913=a0_0x5325;if(_0x32d445()[_0x3a5913('0x14b4')](_0x40f669))_0x4f50a3();else{var _0x23a7df=_0x2acde5[_0x351d41[_0x3a5913('0xbe1')]];_0x23a7df[_0x351d41[_0x3a5913('0x20ec')]]({'id':_0x351d41[_0x3a5913('0xf87')]['id'],'ids':_0x32d445()['map'](_0x40f669,'id')})[_0x3a5913('0xe59')][_0x3a5913('0xe19')](function(){_0x4f50a3();})[_0x3a5913('0x223b')](function(_0xa3ca52){_0xcb025(_0xa3ca52);});}});}function _0x553b55(){var _0x4cd3d1=_0x3e9f6f;_0x351d41[_0x4cd3d1('0x234a')]=!![];var _0x478325=_0x32d445()['differenceBy'](_0x351d41[_0x4cd3d1('0xf79')],_0x351d41[_0x4cd3d1('0x2273')],'id'),_0x24e470=_0x32d445()[_0x4cd3d1('0x501')](_0x351d41[_0x4cd3d1('0x2273')],_0x351d41['startingSelectedItems'],'id');return _0x45539e(_0x478325)[_0x4cd3d1('0xe19')](function(){return _0x299c88(_0x24e470);})[_0x4cd3d1('0xe19')](function(){var _0x554c23=_0x4cd3d1;_0x351d41[_0x554c23('0x16e7')]=![],_0x351d41['startingAllowedItems']=angular[_0x554c23('0x89')](_0x351d41[_0x554c23('0x1884')]),_0x351d41[_0x554c23('0xf79')]=angular['copy'](_0x351d41[_0x554c23('0x2273')]),_0x5aced6[_0x554c23('0x425')]({'title':_0x554c23('0x1dca'),'msg':'Lists\x20association\x20has\x20been\x20updated!'});})[_0x4cd3d1('0x223b')](function(_0x32a804){var _0x56eb34=_0x4cd3d1;_0x5aced6[_0x56eb34('0x8c8')]({'title':_0x32a804[_0x56eb34('0x2833')]?_0x56eb34('0x27f2')+_0x32a804[_0x56eb34('0x2833')]+_0x56eb34('0x1b7c')+_0x32a804[_0x56eb34('0x1fd7')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x32a804['status']?JSON[_0x56eb34('0x3ad')](_0x32a804['data']):_0x32a804[_0x56eb34('0x94f')]()});})[_0x4cd3d1('0x23')](function(){var _0x52618b=_0x4cd3d1;_0x351d41[_0x52618b('0x234a')]=![];});}function _0x4856f7(){var _0x520c60=_0x3e9f6f;_0x54794f[_0x520c60('0x11ed')]();}}const _0x57f6a8=_0x461d92;_0x189364[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0xf87'),'listsCampaign','Sequence','$q'];function _0x189364(_0x2c7d8d,_0x597cb8,_0x624cb8,_0x1b8754,_0x53769e,_0x1ace57,_0x51ca84,_0x105ab9){var _0x51c717=_0xb635d2,_0xe3ad11=this;_0xe3ad11[_0x51c717('0x21e4')]=[],_0xe3ad11['items']=_0x1ace57?_0x1ace57:[],_0xe3ad11[_0x51c717('0x234a')]=![],_0xe3ad11[_0x51c717('0x2584')]=_0x3280d2,_0xe3ad11[_0x51c717('0x1d61')]=_0x5484ee,_0xe3ad11[_0x51c717('0x2416')]=_0x6fd85b,_0xe3ad11[_0x51c717('0x2250')]=_0x142f96,_0xe3ad11[_0x51c717('0xa90')]=_0x1a9813,_0xe3ad11['toggleAll']=_0x1ff878,_0xe3ad11[_0x51c717('0x626')]=_0x4342cd;function _0x6fd85b(_0x10cf22,_0x4134){var _0x2df879=_0x51c717,_0x5099da=_0x4134[_0x2df879('0x281c')](_0x10cf22);_0x5099da>-0x1?_0x4134[_0x2df879('0x1c8e')](_0x5099da,0x1):_0x4134['push'](_0x10cf22);}function _0x5484ee(_0x3ad35f,_0x579fdb){var _0x46c852=_0x51c717;return _0x579fdb[_0x46c852('0x281c')](_0x3ad35f)>-0x1;}function _0x142f96(){var _0x2366fe=_0x51c717;return _0xe3ad11[_0x2366fe('0x21e4')][_0x2366fe('0x25ae')]!==0x0&&_0xe3ad11['selected'][_0x2366fe('0x25ae')]!==_0xe3ad11[_0x2366fe('0xe4b')][_0x2366fe('0x25ae')];}function _0x1a9813(){var _0x202925=_0x51c717;return _0xe3ad11[_0x202925('0x21e4')][_0x202925('0x25ae')]===_0xe3ad11[_0x202925('0xe4b')][_0x202925('0x25ae')];}function _0x1ff878(){var _0x134ea0=_0x51c717;if(_0xe3ad11[_0x134ea0('0x21e4')][_0x134ea0('0x25ae')]===_0xe3ad11[_0x134ea0('0xe4b')]['length'])_0xe3ad11['selected']=[];else(_0xe3ad11[_0x134ea0('0x21e4')][_0x134ea0('0x25ae')]===0x0||_0xe3ad11['selected'][_0x134ea0('0x25ae')]>0x0)&&(_0xe3ad11[_0x134ea0('0x21e4')]=_0xe3ad11['items'][_0x134ea0('0xa19')](0x0));}function _0x3280d2(){var _0x521269=_0x51c717;_0x597cb8[_0x521269('0x11ed')]();}function _0x4342cd(){var _0x25d9b3=_0x51c717;_0xe3ad11[_0x25d9b3('0x234a')]=!![];var _0x421693=_0x1167d1();_0x421693['finally'](function(){var _0x55c73c=_0x25d9b3;_0xe3ad11[_0x55c73c('0x234a')]=![],_0x3280d2();});}function _0x1167d1(){return _0x105ab9(function(_0x315f0c){var _0xed3232=a0_0x5325;for(var _0xb37155=0x0;_0xb37155<_0xe3ad11[_0xed3232('0x21e4')][_0xed3232('0x25ae')];_0xb37155+=0x1){_0x205208(_0x53769e['id'],_0xe3ad11[_0xed3232('0x21e4')][_0xb37155]);}_0x37d559(_0x315f0c);});}function _0x205208(_0x3b3da0,_0xc1ab04){var _0x122505=_0x51c717,_0x33b29c=_0xc1ab04['id'];_0x51ca84[_0x122505('0x224')](function(){var _0x35d3b1=_0x122505;return _0x1b8754[_0x35d3b1('0xcc1')][_0x35d3b1('0x5e1')]({'id':_0x3b3da0,'ids':_0x33b29c})['$promise'][_0x35d3b1('0xe19')](function(){var _0x4cb74f=_0x35d3b1;return _0x1b8754[_0x4cb74f('0xcc1')][_0x4cb74f('0x73b')]({'id':_0x3b3da0,'ids':_0x33b29c,'dialCheckDuplicateType':'never'})[_0x4cb74f('0xe59')];})[_0x35d3b1('0xe19')](function(){var _0x44ff15=_0x35d3b1;_0x624cb8[_0x44ff15('0x425')]({'title':_0x44ff15('0x2546'),'msg':_0x44ff15('0x1dfc')+_0xc1ab04['name']+'\x20has\x20been\x20reset'});})['catch'](function(_0x174248){var _0x30e9f4=_0x35d3b1;_0x624cb8[_0x30e9f4('0x8c8')]({'title':_0x174248['status']?_0x30e9f4('0x27f2')+_0x174248[_0x30e9f4('0x2833')]+'\x20-\x20'+_0x174248[_0x30e9f4('0x1fd7')]:_0x30e9f4('0x246f'),'msg':_0x174248[_0x30e9f4('0x2833')]?JSON[_0x30e9f4('0x3ad')](_0x174248['data']):_0x174248[_0x30e9f4('0x94f')]()});});});}function _0x37d559(_0x33a19f){_0x51ca84['enqueue'](function(){return _0x33a19f();});}}const _0x5e5eae=_0x189364,_0x3ef636=_0x59426a['p']+_0xb635d2('0x1cc7'),_0x4f52bf=_0x59426a['p']+_0xb635d2('0xbe9'),_0x5173ce=_0x59426a['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd-[chunkhash].html',_0xbe4429=_0x59426a['p']+_0xb635d2('0x18eb');_0x5677bc[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x2493'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0xf87'),_0xb635d2('0xb59')];function _0x5677bc(_0x40172c,_0xe9e7a3,_0x322b7e,_0x1fa656,_0x37e771,_0x5bc1b2,_0x20d64a,_0x3a2516,_0x43712f,_0x3bcc0f,_0x4fe761,_0x3eda04){var _0x1ce194=_0xb635d2,_0x47c165=this;_0x47c165[_0x1ce194('0x15a5')]=_0x3bcc0f[_0x1ce194('0x1ef8')](),_0x47c165['license']=_0x5bc1b2,_0x47c165[_0x1ce194('0x22f1')]=_0x20d64a,_0x47c165[_0x1ce194('0x25ac')]=_0x47c165['setting'][_0x1ce194('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x47c165['location']=_0xe9e7a3[_0x1ce194('0xec0')]()+_0x1ce194('0x21a8')+_0xe9e7a3['host'](),_0x47c165['ivrCampaign']=_0x4fe761||_0x40172c[_0x1ce194('0x2ef')][_0x1ce194('0xf87')]||{},_0x47c165[_0x1ce194('0xb59')]=_0x3eda04&&_0x3eda04['count']==0x1?_0x3eda04[_0x1ce194('0x16a7')][0x0]:null,_0x47c165[_0x1ce194('0xb3d')]=_0x3bcc0f[_0x1ce194('0xd31')](_0x47c165[_0x1ce194('0xb59')]?_0x47c165[_0x1ce194('0xb59')][_0x1ce194('0xb3d')]:null),_0x47c165[_0x1ce194('0x1ccb')]={},_0x47c165[_0x1ce194('0xc7b')]=_0x40172c[_0x1ce194('0x2ef')][_0x1ce194('0x435')]||0x0,_0x47c165[_0x1ce194('0x26b7')]=_0x283544,_0x47c165[_0x1ce194('0x2a6')]=_0x19f25b,_0x47c165[_0x1ce194('0x1350')]=_0x5527f2,_0x47c165[_0x1ce194('0x1b7e')]=_0x79fec7,_0x47c165[_0x1ce194('0x7ef')]=_0x1ac6ef,_0x47c165[_0x1ce194('0xbdc')]=_0x43712f[_0x1ce194('0x1e67')],_0x47c165['gotoIvrCampaigns']=_0x28f198,_0x47c165[_0x1ce194('0xb0d')]=_0x4d3a5a,_0x3bcc0f['hasRole']('admin')?_0x3a2516[_0x1ce194('0x1397')][_0x1ce194('0x22d5')]({'fields':_0x1ce194('0x104'),'sort':'name'})[_0x1ce194('0xe59')]['then'](function(_0x873d89){_0x47c165['trunks']=_0x873d89['rows']||[];})['catch'](function(_0x356399){var _0x5609bf=_0x1ce194;_0x43712f[_0x5609bf('0x8c8')]({'title':_0x356399[_0x5609bf('0x2833')]?_0x5609bf('0x27f2')+_0x356399[_0x5609bf('0x2833')]+_0x5609bf('0x1b7c')+_0x356399[_0x5609bf('0x1fd7')]:_0x5609bf('0x1e6d'),'msg':_0x356399[_0x5609bf('0x11d0')]?JSON['stringify'](_0x356399[_0x5609bf('0x11d0')]):_0x356399['toString']()});}):_0x3a2516[_0x1ce194('0x1397')][_0x1ce194('0x22d5')]({'fields':_0x1ce194('0x104'),'sort':_0x1ce194('0x2623')})[_0x1ce194('0xe59')]['then'](function(_0x2d14f8){var _0x1daa91=_0x1ce194;_0x47c165[_0x1daa91('0x155e')]=_0x2d14f8['rows']||[];})[_0x1ce194('0xe19')](function(){var _0x1c2ad2=_0x1ce194;return _0x3a2516['userProfileSection'][_0x1c2ad2('0x22d5')]({'userProfileId':_0x47c165['currentUser'][_0x1c2ad2('0x1d04')],'sectionId':0x3f3})['$promise'];})['then'](function(_0x47111a){var _0xf6bf44=_0x1ce194,_0x32b54e=_0x47111a&&_0x47111a[_0xf6bf44('0x16a7')]?_0x47111a[_0xf6bf44('0x16a7')][0x0]:null;if(!_0x32b54e)_0x47c165[_0xf6bf44('0x155e')]=[];else{if(!_0x32b54e[_0xf6bf44('0x11fd')])return _0x3a2516[_0xf6bf44('0xd49')]['get']({'sectionId':_0x32b54e['id']})[_0xf6bf44('0xe59')][_0xf6bf44('0xe19')](function(_0x364a54){var _0x3001a4=_0xf6bf44,_0x5c9117=_0x32d445()[_0x3001a4('0x65a')](_0x364a54['rows'],function(_0x414d63){var _0x2a3176=_0x3001a4;return _0x32d445()[_0x2a3176('0xf15')](_0x47c165[_0x2a3176('0x155e')],{'id':_0x414d63['resourceId']});});_0x47c165['trunks'][_0x3001a4('0x1d7e')](function(_0x182573){var _0x3a0c19=_0x3001a4;!_0x32d445()['some'](_0x5c9117,['id',_0x182573['id']])&&(_0x182573[_0x3a0c19('0x1e9d')]=![]),_0x5c9117[_0x3a0c19('0xb76')](_0x182573);}),_0x47c165[_0x3001a4('0x155e')]=_0x5c9117;});}})[_0x1ce194('0x223b')](function(_0x57432c){var _0x1c7b31=_0x1ce194;_0x43712f[_0x1c7b31('0x8c8')]({'title':_0x57432c[_0x1c7b31('0x2833')]?_0x1c7b31('0x27f2')+_0x57432c['status']+'\x20-\x20'+_0x57432c[_0x1c7b31('0x1fd7')]:_0x1c7b31('0x14b5'),'msg':_0x57432c[_0x1c7b31('0x11d0')]?JSON[_0x1c7b31('0x3ad')](_0x57432c[_0x1c7b31('0x11d0')]):_0x57432c[_0x1c7b31('0x94f')]()});}),_0x3bcc0f['hasRole'](_0x1ce194('0xd14'))?_0x3a2516['squareProject'][_0x1ce194('0x22d5')]({'fields':_0x1ce194('0x104'),'sort':_0x1ce194('0x2623')})[_0x1ce194('0xe59')][_0x1ce194('0xe19')](function(_0x210c80){var _0x53102b=_0x1ce194;_0x47c165[_0x53102b('0x1d39')]=_0x210c80[_0x53102b('0x16a7')]||[];})['catch'](function(_0x54efea){var _0x20341d=_0x1ce194;_0x43712f[_0x20341d('0x8c8')]({'title':_0x54efea[_0x20341d('0x2833')]?_0x20341d('0x27f2')+_0x54efea[_0x20341d('0x2833')]+_0x20341d('0x1b7c')+_0x54efea[_0x20341d('0x1fd7')]:_0x20341d('0x1cde'),'msg':_0x54efea[_0x20341d('0x11d0')]?JSON['stringify'](_0x54efea[_0x20341d('0x11d0')]):_0x54efea[_0x20341d('0x94f')]()});}):_0x3a2516['squareProject'][_0x1ce194('0x22d5')]({'fields':_0x1ce194('0x104'),'sort':_0x1ce194('0x2623')})[_0x1ce194('0xe59')][_0x1ce194('0xe19')](function(_0x41dab8){var _0x3f60c2=_0x1ce194;_0x47c165[_0x3f60c2('0x1d39')]=_0x41dab8[_0x3f60c2('0x16a7')]||[];})[_0x1ce194('0xe19')](function(){var _0x4f556b=_0x1ce194;return _0x3a2516[_0x4f556b('0xb59')]['get']({'userProfileId':_0x47c165[_0x4f556b('0x15a5')][_0x4f556b('0x1d04')],'sectionId':0x44f})[_0x4f556b('0xe59')];})[_0x1ce194('0xe19')](function(_0x348076){var _0x53bb43=_0x1ce194,_0xa2a921=_0x348076&&_0x348076[_0x53bb43('0x16a7')]?_0x348076[_0x53bb43('0x16a7')][0x0]:null;if(!_0xa2a921){var _0x1bd284=[],_0x8d4376=null;_0x47c165['ivrCampaign']&&(_0x8d4376=_0x32d445()[_0x53bb43('0xf15')](_0x47c165['projects'],{'id':Number(_0x47c165[_0x53bb43('0xf87')][_0x53bb43('0x1785')])}));for(var _0x5ba6c6=0x0;_0x5ba6c6<_0x47c165[_0x53bb43('0x1d39')][_0x53bb43('0x25ae')];_0x5ba6c6++){_0x8d4376&&_0x47c165[_0x53bb43('0x1d39')][_0x5ba6c6]['id']===_0x8d4376['id']&&(_0x47c165[_0x53bb43('0x1d39')][_0x5ba6c6][_0x53bb43('0x1e9d')]=![],_0x1bd284[_0x53bb43('0xb76')](_0x47c165[_0x53bb43('0x1d39')][_0x5ba6c6]));}_0x47c165[_0x53bb43('0x1d39')]=_0x1bd284;}else{if(!_0xa2a921[_0x53bb43('0x11fd')])return _0x3a2516[_0x53bb43('0xd49')][_0x53bb43('0x22d5')]({'sectionId':_0xa2a921['id']})[_0x53bb43('0xe59')][_0x53bb43('0xe19')](function(_0x277dbf){var _0x43009d=_0x53bb43,_0x1fed2a=_0x32d445()[_0x43009d('0x65a')](_0x277dbf['rows'],function(_0x7c714c){var _0x30860b=_0x43009d;return _0x32d445()[_0x30860b('0xf15')](_0x47c165['projects'],{'id':_0x7c714c[_0x30860b('0x1104')]});}),_0x1484a4=null;_0x47c165[_0x43009d('0xf87')]&&(_0x1484a4=_0x32d445()[_0x43009d('0xf15')](_0x47c165[_0x43009d('0x1d39')],{'id':Number(_0x47c165['ivrCampaign'][_0x43009d('0x1785')])}));if(_0x1484a4&&!_0x32d445()['some'](_0x1fed2a,['id',_0x1484a4['id']])){var _0x4a6594=_0x32d445()[_0x43009d('0xf15')](_0x47c165[_0x43009d('0x1d39')],{'id':_0x1484a4['id']});_0x4a6594[_0x43009d('0x1e9d')]=![],_0x1fed2a[_0x43009d('0xb76')](_0x4a6594);}_0x47c165['projects']=_0x1fed2a;});}})['catch'](function(_0x34a6b4){var _0x30bdb7=_0x1ce194;_0x43712f[_0x30bdb7('0x8c8')]({'title':_0x34a6b4[_0x30bdb7('0x2833')]?_0x30bdb7('0x27f2')+_0x34a6b4[_0x30bdb7('0x2833')]+_0x30bdb7('0x1b7c')+_0x34a6b4[_0x30bdb7('0x1fd7')]:_0x30bdb7('0xa18'),'msg':_0x34a6b4[_0x30bdb7('0x11d0')]?JSON[_0x30bdb7('0x3ad')](_0x34a6b4[_0x30bdb7('0x11d0')]):_0x34a6b4['toString']()});}),_0x3bcc0f[_0x1ce194('0x179e')](_0x1ce194('0xd14'))?_0x3a2516[_0x1ce194('0x134c')]['get']({'fields':_0x1ce194('0x104'),'sort':_0x1ce194('0x2623'),'IntervalId':'null'})['$promise']['then'](function(_0x461abc){var _0x2e9467=_0x1ce194;_0x47c165[_0x2e9467('0x134c')]=_0x461abc['rows']||[];})[_0x1ce194('0x223b')](function(_0x3cef63){var _0x3cb63c=_0x1ce194;_0x43712f[_0x3cb63c('0x8c8')]({'title':_0x3cef63[_0x3cb63c('0x2833')]?'API:'+_0x3cef63[_0x3cb63c('0x2833')]+_0x3cb63c('0x1b7c')+_0x3cef63[_0x3cb63c('0x1fd7')]:'SYSTEM:GET_INTERVAL','msg':_0x3cef63[_0x3cb63c('0x11d0')]?JSON[_0x3cb63c('0x3ad')](_0x3cef63[_0x3cb63c('0x11d0')]):_0x3cef63[_0x3cb63c('0x94f')]()});}):_0x3a2516['interval'][_0x1ce194('0x22d5')]({'fields':_0x1ce194('0x104'),'sort':_0x1ce194('0x2623'),'IntervalId':_0x1ce194('0x1046')})[_0x1ce194('0xe59')][_0x1ce194('0xe19')](function(_0x5bcca0){var _0x1e5945=_0x1ce194;_0x47c165['interval']=_0x5bcca0[_0x1e5945('0x16a7')]||[];})[_0x1ce194('0xe19')](function(){var _0x265dd2=_0x1ce194;return _0x3a2516[_0x265dd2('0xb59')]['get']({'userProfileId':_0x47c165[_0x265dd2('0x15a5')][_0x265dd2('0x1d04')],'sectionId':0x3ec})[_0x265dd2('0xe59')];})[_0x1ce194('0xe19')](function(_0x3588b9){var _0x4b5a0c=_0x1ce194,_0x811823=_0x3588b9&&_0x3588b9[_0x4b5a0c('0x16a7')]?_0x3588b9[_0x4b5a0c('0x16a7')][0x0]:null;if(!_0x811823){var _0x2f4bcc=[],_0x3c717b=null;_0x47c165['ivrCampaign']&&(_0x3c717b=_0x32d445()[_0x4b5a0c('0xf15')](_0x47c165['interval'],{'id':Number(_0x47c165['ivrCampaign'][_0x4b5a0c('0x1fc1')])}));for(var _0x11187d=0x0;_0x11187d<_0x47c165[_0x4b5a0c('0x134c')][_0x4b5a0c('0x25ae')];_0x11187d++){_0x3c717b&&_0x47c165[_0x4b5a0c('0x134c')][_0x11187d]['id']===_0x3c717b['id']&&(_0x47c165[_0x4b5a0c('0x134c')][_0x11187d][_0x4b5a0c('0x1e9d')]=![],_0x2f4bcc['push'](_0x47c165['interval'][_0x11187d]));}_0x47c165[_0x4b5a0c('0x134c')]=_0x2f4bcc;}else{if(!_0x811823[_0x4b5a0c('0x11fd')])return _0x3a2516[_0x4b5a0c('0xd49')][_0x4b5a0c('0x22d5')]({'sectionId':_0x811823['id']})['$promise']['then'](function(_0x569bb7){var _0x31efcc=_0x4b5a0c,_0x4f9358=_0x32d445()['map'](_0x569bb7[_0x31efcc('0x16a7')],function(_0x33c293){var _0x31fb3e=_0x31efcc;return _0x32d445()[_0x31fb3e('0xf15')](_0x47c165[_0x31fb3e('0x134c')],{'id':_0x33c293['resourceId']});}),_0x21def4=null;_0x47c165[_0x31efcc('0xf87')]&&(_0x21def4=_0x32d445()['find'](_0x47c165[_0x31efcc('0x134c')],{'id':Number(_0x47c165[_0x31efcc('0xf87')][_0x31efcc('0x1fc1')])}));if(_0x21def4&&!_0x32d445()['some'](_0x4f9358,['id',_0x21def4['id']])){var _0x545ff0=_0x32d445()[_0x31efcc('0xf15')](_0x47c165[_0x31efcc('0x134c')],{'id':_0x21def4['id']});_0x545ff0[_0x31efcc('0x1e9d')]=![],_0x4f9358[_0x31efcc('0xb76')](_0x545ff0);}_0x47c165['interval']=_0x4f9358;});}})['catch'](function(_0x4978bf){var _0x21d045=_0x1ce194;_0x43712f['error']({'title':_0x4978bf[_0x21d045('0x2833')]?_0x21d045('0x27f2')+_0x4978bf[_0x21d045('0x2833')]+_0x21d045('0x1b7c')+_0x4978bf[_0x21d045('0x1fd7')]:_0x21d045('0x2051'),'msg':_0x4978bf[_0x21d045('0x11d0')]?JSON[_0x21d045('0x3ad')](_0x4978bf[_0x21d045('0x11d0')]):_0x4978bf[_0x21d045('0x94f')]()});});function _0x283544(_0x327fd2,_0x5662e0){var _0x11afd4=_0x1ce194;_0x322b7e['show']({'controller':_0x11afd4('0x2614'),'controllerAs':'vm','templateUrl':_0x3ef636,'parent':angular[_0x11afd4('0x24a1')](_0x1fa656[_0x11afd4('0x19b2')]),'targetEvent':_0x5662e0,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x327fd2,'ivrCampaigns':_0x47c165[_0x11afd4('0x10e8')]?_0x47c165['ivrCampaigns'][_0x11afd4('0x16a7')]:[],'crudPermissions':_0x47c165[_0x11afd4('0xb3d')]}});}function _0x19f25b(_0x5ad7de,_0x9c1f01){var _0xce5e=_0x1ce194;_0x322b7e[_0xce5e('0x26b2')]({'controller':_0xce5e('0x3a6'),'controllerAs':'vm','templateUrl':_0x4f52bf,'parent':angular[_0xce5e('0x24a1')](_0x1fa656[_0xce5e('0x19b2')]),'targetEvent':_0x9c1f01,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x5ad7de,'ivrCampaigns':_0x47c165[_0xce5e('0x10e8')]?_0x47c165[_0xce5e('0x10e8')][_0xce5e('0x16a7')]:[],'crudPermissions':_0x47c165[_0xce5e('0xb3d')]}});}function _0x5527f2(_0x14533d,_0xdada86){var _0xc16532=_0x1ce194;_0x322b7e['show']({'controller':_0xc16532('0xfba'),'controllerAs':'vm','templateUrl':_0x5173ce,'parent':angular[_0xc16532('0x24a1')](_0x1fa656[_0xc16532('0x19b2')]),'targetEvent':_0xdada86,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x14533d,'ivrCampaigns':_0x47c165[_0xc16532('0x10e8')]?_0x47c165[_0xc16532('0x10e8')]['rows']:[],'crudPermissions':_0x47c165[_0xc16532('0xb3d')]}});}function _0x3646d0(_0x345d42,_0x58f619){var _0x539782=_0x1ce194,_0x388e16=_0x58f619['id'];_0x3a2516[_0x539782('0xcc1')][_0x539782('0x5e1')]({'id':_0x345d42,'ids':_0x388e16})[_0x539782('0xe59')][_0x539782('0xe19')](function(){var _0x2e753c=_0x539782;return _0x3a2516[_0x2e753c('0xcc1')][_0x2e753c('0x73b')]({'id':_0x345d42,'ids':_0x388e16,'dialCheckDuplicateType':_0x2e753c('0x1045')})[_0x2e753c('0xe59')];})[_0x539782('0xe19')](function(){var _0x32912a=_0x539782;_0x43712f[_0x32912a('0x425')]({'title':_0x32912a('0x2546'),'msg':_0x32912a('0x1dfc')+_0x58f619[_0x32912a('0x2623')]+_0x32912a('0x38c')});})[_0x539782('0x223b')](function(_0x56df4b){var _0x3ed176=_0x539782;_0x43712f['error']({'title':_0x56df4b[_0x3ed176('0x2833')]?_0x3ed176('0x27f2')+_0x56df4b[_0x3ed176('0x2833')]+_0x3ed176('0x1b7c')+_0x56df4b[_0x3ed176('0x1fd7')]:_0x3ed176('0x1291'),'msg':_0x56df4b[_0x3ed176('0x2833')]?JSON[_0x3ed176('0x3ad')](_0x56df4b[_0x3ed176('0x11d0')]):_0x56df4b[_0x3ed176('0x94f')]()});});}function _0x79fec7(_0x4ac886,_0x20a07a){var _0x4bc3d0=_0x1ce194;_0x3a2516[_0x4bc3d0('0xcc1')][_0x4bc3d0('0x1feb')]({'id':_0x4ac886['id'],'fields':_0x4bc3d0('0x104'),'nolimit':!![]})[_0x4bc3d0('0xe59')][_0x4bc3d0('0xe19')](function(_0x54a5bb){var _0x18b529=_0x4bc3d0;if(_0x32d445()['isNil'](_0x54a5bb[_0x18b529('0x16a7')])||_0x32d445()['isEmpty'](_0x54a5bb['rows']))_0x43712f['info']({'title':_0x18b529('0x86a')});else{if(_0x54a5bb['rows']['length']===0x1){var _0x5e28f8=_0x322b7e[_0x18b529('0xa5')]()[_0x18b529('0x13e4')](_0x18b529('0x391')+_0x54a5bb['rows'][0x0][_0x18b529('0x2623')]+'\x20?')[_0x18b529('0x221c')](_0x18b529('0xab2')+_0x54a5bb[_0x18b529('0x16a7')][0x0][_0x18b529('0x2623')]+''+'\x20will\x20be\x20reset.')['ariaLabel'](_0x18b529('0x1788'))[_0x18b529('0x1345')](_0x20a07a)['ok']('OK')[_0x18b529('0x2c1')](_0x18b529('0x17'));_0x322b7e[_0x18b529('0x26b2')](_0x5e28f8)['then'](function(){var _0x257ad0=_0x18b529;_0x3646d0(_0x47c165[_0x257ad0('0xf87')]['id'],_0x54a5bb['rows'][0x0]);});}else _0x322b7e[_0x18b529('0x26b2')]({'controller':_0x18b529('0x2418'),'controllerAs':'vm','templateUrl':_0xbe4429,'parent':angular[_0x18b529('0x24a1')](_0x1fa656[_0x18b529('0x19b2')]),'targetEvent':_0x20a07a,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x4ac886,'listsCampaign':_0x54a5bb?_0x54a5bb['rows']:[]}});}})[_0x4bc3d0('0x223b')](function(_0x209014){var _0x9fe2bd=_0x4bc3d0;_0x43712f['error']({'title':_0x209014['status']?_0x9fe2bd('0x27f2')+_0x209014[_0x9fe2bd('0x2833')]+_0x9fe2bd('0x1b7c')+_0x209014[_0x9fe2bd('0x1fd7')]:_0x9fe2bd('0x6f'),'msg':_0x209014['status']?JSON[_0x9fe2bd('0x3ad')](_0x209014[_0x9fe2bd('0x11d0')]):_0x209014[_0x9fe2bd('0x94f')]()});});}function _0x1ac6ef(){var _0xf8699d=_0x1ce194;if(_0x3bcc0f[_0xf8699d('0x179e')](_0xf8699d('0xd14')))_0x40172c['go'](_0xf8699d('0x87'),{});else return _0x3a2516['userProfileSection']['get']({'userProfileId':_0x3bcc0f[_0xf8699d('0x1ef8')]()[_0xf8699d('0x1d04')],'sectionId':0x5e6})[_0xf8699d('0xe59')][_0xf8699d('0xe19')](function(_0x3c1432){var _0x445ed9=_0xf8699d,_0x77ff7=_0x3c1432&&_0x3c1432[_0x445ed9('0x16a7')]?_0x3c1432[_0x445ed9('0x16a7')][0x0]:null;_0x77ff7&&_0x77ff7[_0x445ed9('0x4ef')]?_0x40172c['go']('app.motiondialer.realtime.ivr_campaigns',{}):_0x43712f[_0x445ed9('0x1e67')]({'title':_0x37e771[_0x445ed9('0x2159')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x37e771[_0x445ed9('0x2159')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0xf8699d('0x223b')](function(_0x3d4bcc){var _0x2645ca=_0xf8699d;_0x43712f[_0x2645ca('0x8c8')]({'title':_0x3d4bcc[_0x2645ca('0x2833')]?_0x2645ca('0x27f2')+_0x3d4bcc[_0x2645ca('0x2833')]+'\x20-\x20'+_0x3d4bcc[_0x2645ca('0x1fd7')]:_0x2645ca('0x343'),'msg':_0x3d4bcc[_0x2645ca('0x2833')]?JSON[_0x2645ca('0x3ad')](_0x3d4bcc[_0x2645ca('0x11d0')]):_0x3d4bcc[_0x2645ca('0x94f')]()});});}function _0x28f198(){var _0x4be494=_0x1ce194;_0x40172c['go'](_0x4be494('0x4c1'),{},{'reload':_0x4be494('0x4c1')});}function _0x4d3a5a(){var _0x5d8f97=_0x1ce194;_0x3a2516[_0x5d8f97('0xcc1')]['update']({'id':_0x47c165['ivrCampaign']['id']},_0x47c165[_0x5d8f97('0xf87')])[_0x5d8f97('0xe59')][_0x5d8f97('0xe19')](function(){var _0x2881c3=_0x5d8f97;_0x43712f[_0x2881c3('0x425')]({'title':_0x2881c3('0x2754'),'msg':_0x47c165[_0x2881c3('0xf87')][_0x2881c3('0x2623')]?_0x47c165['ivrCampaign']['name']+_0x2881c3('0x283b'):''});})[_0x5d8f97('0x223b')](function(_0x5d26b2){var _0x39b906=_0x5d8f97;_0x43712f[_0x39b906('0x8c8')]({'title':_0x5d26b2[_0x39b906('0x2833')]?_0x39b906('0x27f2')+_0x5d26b2[_0x39b906('0x2833')]+_0x39b906('0x1b7c')+_0x5d26b2['statusText']:_0x39b906('0x723'),'msg':_0x5d26b2[_0x39b906('0x11d0')]?JSON['stringify'](_0x5d26b2[_0x39b906('0x11d0')]):_0x5d26b2[_0x39b906('0x94f')]()});});}}const _0x5972a6=_0x5677bc;_0x803efc['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x10e8'),'userProfile',_0xb635d2('0xb59'),'api','msUtils',_0xb635d2('0xf65'),'Auth','license',_0xb635d2('0x22f1')];function _0x803efc(_0x5f17ad,_0x36df8e,_0x2e115e,_0x28f33f,_0x16347e,_0x3daf82,_0x311f87,_0x4dac88,_0x485a8e,_0x5ef7f5,_0x2f52cb,_0x69a0ad,_0x51d773,_0x17b51a,_0x3fe826,_0x53cc1c,_0x5ef5b7){var _0x3c71d5=_0xb635d2,_0x17b58c=this;_0x17b58c[_0x3c71d5('0x5c1')]=_0x53cc1c,_0x17b58c['setting']=_0x5ef5b7,_0x17b58c[_0x3c71d5('0x15a5')]=_0x3fe826[_0x3c71d5('0x1ef8')](),_0x17b58c[_0x3c71d5('0x10e8')]=_0x485a8e||{'count':0x0,'rows':[]},_0x17b58c['userProfile']=_0x5ef7f5,_0x17b58c[_0x3c71d5('0xb59')]=_0x2f52cb&&_0x2f52cb[_0x3c71d5('0x148b')]==0x1?_0x2f52cb[_0x3c71d5('0x16a7')][0x0]:null,_0x17b58c['crudPermissions']=_0x3fe826[_0x3c71d5('0xd31')](_0x17b58c[_0x3c71d5('0xb59')]?_0x17b58c[_0x3c71d5('0xb59')][_0x3c71d5('0xb3d')]:null),_0x17b58c[_0x3c71d5('0x19b6')]=_0x3c71d5('0x10e8'),_0x17b58c['listOrder']='',_0x17b58c[_0x3c71d5('0x190c')]=null,_0x17b58c[_0x3c71d5('0x14df')]=[],_0x17b58c['query']={'fields':_0x3c71d5('0x1b21'),'type':'ivr','sort':_0x3c71d5('0x7e8'),'limit':0xa,'page':0x1},_0x17b58c[_0x3c71d5('0x6b3')]=_0x32d445()['keyBy']([{'option':_0x3c71d5('0x9bc'),'value':_0x3c71d5('0x23a1')},{'option':_0x3c71d5('0x1912'),'value':_0x3c71d5('0x23f5')},{'option':'ONLY_IF_OPEN','value':'\x27onlyIfOpen\x27'}],function(_0x1a7c1d){var _0x3f2722=_0x3c71d5;return _0x32d445()[_0x3f2722('0x1b42')](_0x1a7c1d[_0x3f2722('0x2')],new RegExp('\x27','g'),'');}),_0x17b58c['arraydialOrderByScheduledAt']=_0x32d445()[_0x3c71d5('0x226f')]([{'option':_0x3c71d5('0x2586'),'value':_0x3c71d5('0x1894')},{'option':'ASC','value':_0x3c71d5('0x2229')}],function(_0x82ecd7){var _0x5465b9=_0x3c71d5;return _0x32d445()['replace'](_0x82ecd7[_0x5465b9('0x2')],new RegExp('\x27','g'),'');}),_0x17b58c['editstate']=_0x197d88,_0x17b58c[_0x3c71d5('0x26b7')]=_0x59d56b,_0x17b58c[_0x3c71d5('0x2a6')]=_0xd9d9c0,_0x17b58c[_0x3c71d5('0x1350')]=_0x7468bb,_0x17b58c['deleteconfirm']=_0x410201,_0x17b58c[_0x3c71d5('0x20e3')]=_0x1ddd40,_0x17b58c[_0x3c71d5('0x425')]=_0x5a53d8,_0x17b58c[_0x3c71d5('0x1941')]=_0x15a48c,_0x17b58c[_0x3c71d5('0x10d4')]=_0xdade04,_0x17b58c[_0x3c71d5('0x12db')]=_0x5133ea,_0x17b58c['exportSelectedIvrCampaigns']=_0x32d190,_0x17b58c[_0x3c71d5('0xaee')]=_0x3cf7cc,_0x17b58c[_0x3c71d5('0x2716')]=_0x1f4090,_0x17b58c[_0x3c71d5('0x22df')]=_0x26b207,_0x3fe826[_0x3c71d5('0x179e')](_0x3c71d5('0xd14'))?_0x69a0ad[_0x3c71d5('0x1397')]['get']({'fields':'id,name','sort':'name','table':_0x3c71d5('0x2206')})[_0x3c71d5('0xe59')][_0x3c71d5('0xe19')](function(_0x5d23b5){var _0x546ac7=_0x3c71d5;_0x17b58c[_0x546ac7('0x155e')]=_0x5d23b5[_0x546ac7('0x16a7')]||[];})['catch'](function(_0x40c034){var _0xeabbb9=_0x3c71d5;_0x17b51a[_0xeabbb9('0x8c8')]({'title':_0x40c034[_0xeabbb9('0x2833')]?_0xeabbb9('0x27f2')+_0x40c034[_0xeabbb9('0x2833')]+_0xeabbb9('0x1b7c')+_0x40c034[_0xeabbb9('0x1fd7')]:_0xeabbb9('0x1e6d'),'msg':_0x40c034['data']?JSON[_0xeabbb9('0x3ad')](_0x40c034['data']):_0x40c034[_0xeabbb9('0x94f')]()});}):_0x69a0ad['trunk'][_0x3c71d5('0x22d5')]({'fields':'id,name','sort':_0x3c71d5('0x2623'),'table':_0x3c71d5('0x2206')})[_0x3c71d5('0xe59')]['then'](function(_0x38d61d){var _0xd497b0=_0x3c71d5;_0x17b58c[_0xd497b0('0x155e')]=_0x38d61d[_0xd497b0('0x16a7')]||[];})[_0x3c71d5('0xe19')](function(){var _0x3370d7=_0x3c71d5;return _0x69a0ad[_0x3370d7('0xb59')][_0x3370d7('0x22d5')]({'userProfileId':_0x17b58c[_0x3370d7('0x15a5')][_0x3370d7('0x1d04')],'sectionId':0x3f3})[_0x3370d7('0xe59')];})[_0x3c71d5('0xe19')](function(_0x48d046){var _0x48946b=_0x3c71d5,_0x41fc76=_0x48d046&&_0x48d046['rows']?_0x48d046['rows'][0x0]:null;if(!_0x41fc76)_0x17b58c[_0x48946b('0x155e')]=[];else{if(!_0x41fc76[_0x48946b('0x11fd')])return _0x69a0ad[_0x48946b('0xd49')][_0x48946b('0x22d5')]({'sectionId':_0x41fc76['id']})[_0x48946b('0xe59')][_0x48946b('0xe19')](function(_0x438c2d){var _0x33c523=_0x48946b,_0x2e699f=_0x32d445()[_0x33c523('0x65a')](_0x438c2d[_0x33c523('0x16a7')],function(_0x36002e){var _0x54af06=_0x33c523;return _0x32d445()[_0x54af06('0xf15')](_0x17b58c[_0x54af06('0x155e')],{'id':_0x36002e[_0x54af06('0x1104')]});});_0x17b58c[_0x33c523('0x155e')][_0x33c523('0x1d7e')](function(_0x244057){var _0x430989=_0x33c523;!_0x32d445()[_0x430989('0x201a')](_0x2e699f,['id',_0x244057['id']])&&(_0x244057['canSelect']=![]),_0x2e699f[_0x430989('0xb76')](_0x244057);}),_0x17b58c[_0x33c523('0x155e')]=_0x2e699f;});}})[_0x3c71d5('0x223b')](function(_0x2d9e9e){var _0x5b1b68=_0x3c71d5;_0x17b51a[_0x5b1b68('0x8c8')]({'title':_0x2d9e9e['status']?'API:'+_0x2d9e9e['status']+_0x5b1b68('0x1b7c')+_0x2d9e9e[_0x5b1b68('0x1fd7')]:_0x5b1b68('0x14b5'),'msg':_0x2d9e9e['data']?JSON[_0x5b1b68('0x3ad')](_0x2d9e9e['data']):_0x2d9e9e[_0x5b1b68('0x94f')]()});}),_0x3fe826['hasRole'](_0x3c71d5('0xd14'))?_0x69a0ad[_0x3c71d5('0x20c9')]['get']({'fields':'id,name','sort':'name'})[_0x3c71d5('0xe59')]['then'](function(_0x3602d7){var _0xdfcb59=_0x3c71d5;_0x17b58c[_0xdfcb59('0x1d39')]=_0x3602d7['rows']||[];})[_0x3c71d5('0x223b')](function(_0x5c650f){var _0x59d1e8=_0x3c71d5;_0x17b51a['error']({'title':_0x5c650f[_0x59d1e8('0x2833')]?_0x59d1e8('0x27f2')+_0x5c650f[_0x59d1e8('0x2833')]+_0x59d1e8('0x1b7c')+_0x5c650f[_0x59d1e8('0x1fd7')]:'SYSTEM:GET_PROJECTS','msg':_0x5c650f[_0x59d1e8('0x11d0')]?JSON['stringify'](_0x5c650f[_0x59d1e8('0x11d0')]):_0x5c650f['toString']()});}):_0x69a0ad[_0x3c71d5('0x20c9')][_0x3c71d5('0x22d5')]({'fields':'id,name','sort':_0x3c71d5('0x2623')})['$promise'][_0x3c71d5('0xe19')](function(_0xff99ce){var _0x5b06e2=_0x3c71d5;_0x17b58c[_0x5b06e2('0x1d39')]=_0xff99ce[_0x5b06e2('0x16a7')]||[];})[_0x3c71d5('0xe19')](function(){var _0x55979e=_0x3c71d5;return _0x69a0ad[_0x55979e('0xb59')][_0x55979e('0x22d5')]({'userProfileId':_0x17b58c[_0x55979e('0x15a5')]['userProfileId'],'sectionId':0x44f})[_0x55979e('0xe59')];})[_0x3c71d5('0xe19')](function(_0x56d2e4){var _0x180cba=_0x3c71d5,_0x2918f3=_0x56d2e4&&_0x56d2e4[_0x180cba('0x16a7')]?_0x56d2e4[_0x180cba('0x16a7')][0x0]:null;if(!_0x2918f3){var _0x4dd2ec=[],_0x162b82=[];_0x17b58c[_0x180cba('0x10e8')][_0x180cba('0x16a7')]['forEach'](function(_0x59eceb){var _0x2e1e54=_0x180cba,_0x127275=_0x32d445()['find'](_0x17b58c[_0x2e1e54('0x1d39')],{'id':Number(_0x59eceb['SquareProjectId'])});_0x162b82[_0x2e1e54('0xb76')](_0x127275);});for(var _0x3779f0=0x0;_0x3779f0<_0x17b58c[_0x180cba('0x1d39')][_0x180cba('0x25ae')];_0x3779f0++){var _0x282bf2=_0x32d445()['some'](_0x162b82,{'id':_0x17b58c[_0x180cba('0x1d39')][_0x3779f0]['id']});_0x282bf2&&(_0x17b58c[_0x180cba('0x1d39')][_0x3779f0][_0x180cba('0x1e9d')]=![],_0x4dd2ec[_0x180cba('0xb76')](_0x17b58c[_0x180cba('0x1d39')][_0x3779f0]));}_0x17b58c[_0x180cba('0x1d39')]=_0x4dd2ec;}else{if(!_0x2918f3['autoAssociation'])return _0x69a0ad['userProfileResource'][_0x180cba('0x22d5')]({'sectionId':_0x2918f3['id']})['$promise']['then'](function(_0x214492){var _0x5b23fd=_0x180cba,_0x8d9774=_0x32d445()[_0x5b23fd('0x65a')](_0x214492['rows'],function(_0x503e07){var _0xcaf829=_0x5b23fd;return _0x32d445()[_0xcaf829('0xf15')](_0x17b58c['projects'],{'id':_0x503e07[_0xcaf829('0x1104')]});}),_0x2886e2=null;_0x2886e2=[],_0x17b58c[_0x5b23fd('0x10e8')]['rows'][_0x5b23fd('0x1d7e')](function(_0x5ef6f0){var _0x3a74de=_0x5b23fd,_0x14160e=_0x32d445()[_0x3a74de('0xf15')](_0x17b58c[_0x3a74de('0x1d39')],{'id':Number(_0x5ef6f0[_0x3a74de('0x1785')])});_0x2886e2[_0x3a74de('0xb76')](_0x14160e);}),!_0x32d445()[_0x5b23fd('0x14b4')](_0x2886e2)&&_0x2886e2[_0x5b23fd('0x1d7e')](function(_0x9e9de){var _0x2ce101=_0x5b23fd;if(!_0x32d445()[_0x2ce101('0x201a')](_0x8d9774,['id',_0x9e9de['id']])){var _0x5e058d=_0x32d445()[_0x2ce101('0xf15')](_0x17b58c[_0x2ce101('0x1d39')],{'id':_0x9e9de['id']});_0x5e058d['canSelect']=![],_0x8d9774['push'](_0x5e058d);}}),_0x17b58c[_0x5b23fd('0x1d39')]=_0x8d9774;});}})[_0x3c71d5('0x223b')](function(_0x359498){var _0xa19375=_0x3c71d5;_0x17b51a['error']({'title':_0x359498[_0xa19375('0x2833')]?_0xa19375('0x27f2')+_0x359498[_0xa19375('0x2833')]+_0xa19375('0x1b7c')+_0x359498['statusText']:'SYSTEM:GETprojects','msg':_0x359498[_0xa19375('0x11d0')]?JSON[_0xa19375('0x3ad')](_0x359498[_0xa19375('0x11d0')]):_0x359498[_0xa19375('0x94f')]()});}),_0x3fe826[_0x3c71d5('0x179e')](_0x3c71d5('0xd14'))?_0x69a0ad[_0x3c71d5('0x134c')][_0x3c71d5('0x22d5')]({'fields':_0x3c71d5('0x104'),'sort':_0x3c71d5('0x2623'),'IntervalId':'null'})['$promise'][_0x3c71d5('0xe19')](function(_0x3f52c3){var _0x535dca=_0x3c71d5;_0x17b58c[_0x535dca('0x134c')]=_0x3f52c3['rows']||[];})['catch'](function(_0x213a1e){var _0x3a7b12=_0x3c71d5;_0x17b51a[_0x3a7b12('0x8c8')]({'title':_0x213a1e[_0x3a7b12('0x2833')]?_0x3a7b12('0x27f2')+_0x213a1e[_0x3a7b12('0x2833')]+_0x3a7b12('0x1b7c')+_0x213a1e['statusText']:_0x3a7b12('0xb51'),'msg':_0x213a1e[_0x3a7b12('0x11d0')]?JSON[_0x3a7b12('0x3ad')](_0x213a1e[_0x3a7b12('0x11d0')]):_0x213a1e[_0x3a7b12('0x94f')]()});}):_0x69a0ad[_0x3c71d5('0x134c')][_0x3c71d5('0x22d5')]({'fields':'id,name','sort':_0x3c71d5('0x2623'),'IntervalId':_0x3c71d5('0x1046')})[_0x3c71d5('0xe59')]['then'](function(_0x206e47){var _0x4aef89=_0x3c71d5;_0x17b58c[_0x4aef89('0x134c')]=_0x206e47[_0x4aef89('0x16a7')]||[];})[_0x3c71d5('0xe19')](function(){var _0x62982f=_0x3c71d5;return _0x69a0ad[_0x62982f('0xb59')][_0x62982f('0x22d5')]({'userProfileId':_0x17b58c[_0x62982f('0x15a5')][_0x62982f('0x1d04')],'sectionId':0x3ec})['$promise'];})[_0x3c71d5('0xe19')](function(_0x3420eb){var _0x111157=_0x3c71d5,_0x174be1=_0x3420eb&&_0x3420eb['rows']?_0x3420eb[_0x111157('0x16a7')][0x0]:null;if(!_0x174be1){var _0x51d93e=[],_0x34ffcd=null;_0x17b58c[_0x111157('0xf87')]&&(_0x34ffcd=_0x32d445()[_0x111157('0xf15')](_0x17b58c['interval'],{'id':Number(_0x17b58c['ivrCampaign'][_0x111157('0x1fc1')])}));for(var _0x45b8ac=0x0;_0x45b8ac<_0x17b58c[_0x111157('0x134c')][_0x111157('0x25ae')];_0x45b8ac++){_0x34ffcd&&_0x17b58c[_0x111157('0x134c')][_0x45b8ac]['id']===_0x34ffcd['id']&&(_0x17b58c[_0x111157('0x134c')][_0x45b8ac][_0x111157('0x1e9d')]=![],_0x51d93e['push'](_0x17b58c[_0x111157('0x134c')][_0x45b8ac]));}_0x17b58c[_0x111157('0x134c')]=_0x51d93e;}else{if(!_0x174be1[_0x111157('0x11fd')])return _0x69a0ad[_0x111157('0xd49')]['get']({'sectionId':_0x174be1['id']})[_0x111157('0xe59')]['then'](function(_0x33e1a6){var _0x372b99=_0x111157,_0x86ecde=_0x32d445()['map'](_0x33e1a6[_0x372b99('0x16a7')],function(_0x3d52bf){var _0x4f0ec0=_0x372b99;return _0x32d445()[_0x4f0ec0('0xf15')](_0x17b58c[_0x4f0ec0('0x134c')],{'id':_0x3d52bf[_0x4f0ec0('0x1104')]});}),_0x58756b=null;_0x17b58c[_0x372b99('0xf87')]&&(_0x58756b=_0x32d445()[_0x372b99('0xf15')](_0x17b58c['interval'],{'id':Number(_0x17b58c[_0x372b99('0xf87')]['IntervalId'])}));if(_0x58756b&&!_0x32d445()[_0x372b99('0x201a')](_0x86ecde,['id',_0x58756b['id']])){var _0x54d1dd=_0x32d445()[_0x372b99('0xf15')](_0x17b58c['interval'],{'id':_0x58756b['id']});_0x54d1dd['canSelect']=![],_0x86ecde[_0x372b99('0xb76')](_0x54d1dd);}_0x17b58c[_0x372b99('0x134c')]=_0x86ecde;});}})[_0x3c71d5('0x223b')](function(_0x2c1f97){var _0x4637cf=_0x3c71d5;_0x17b51a[_0x4637cf('0x8c8')]({'title':_0x2c1f97['status']?_0x4637cf('0x27f2')+_0x2c1f97[_0x4637cf('0x2833')]+'\x20-\x20'+_0x2c1f97[_0x4637cf('0x1fd7')]:_0x4637cf('0x2051'),'msg':_0x2c1f97[_0x4637cf('0x11d0')]?JSON['stringify'](_0x2c1f97[_0x4637cf('0x11d0')]):_0x2c1f97[_0x4637cf('0x94f')]()});});function _0x197d88(_0x2e82ad){var _0x24c460=_0x3c71d5;_0x2e115e['go'](_0x24c460('0x98c'),{'id':_0x2e82ad['id'],'ivrCampaign':_0x2e82ad,'crudPermissions':_0x17b58c['crudPermissions']});}function _0x59d56b(_0x2f0977,_0xe9211c){var _0x17e6c5=_0x3c71d5;_0x16347e[_0x17e6c5('0x26b2')]({'controller':_0x17e6c5('0x2614'),'controllerAs':'vm','templateUrl':_0x3ef636,'parent':angular[_0x17e6c5('0x24a1')](_0x3daf82[_0x17e6c5('0x19b2')]),'targetEvent':_0xe9211c,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2f0977,'ivrCampaigns':_0x17b58c[_0x17e6c5('0x10e8')]?_0x17b58c[_0x17e6c5('0x10e8')]['rows']:[],'crudPermissions':_0x17b58c[_0x17e6c5('0xb3d')]}});}function _0xd9d9c0(_0x394659,_0x1ba829){var _0x3c15d7=_0x3c71d5;_0x16347e[_0x3c15d7('0x26b2')]({'controller':_0x3c15d7('0x3a6'),'controllerAs':'vm','templateUrl':_0x4f52bf,'parent':angular['element'](_0x3daf82[_0x3c15d7('0x19b2')]),'targetEvent':_0x1ba829,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x394659,'ivrCampaigns':_0x17b58c['ivrCampaigns']?_0x17b58c[_0x3c15d7('0x10e8')]['rows']:[],'crudPermissions':_0x17b58c['crudPermissions']}});}function _0x7468bb(_0x1dcafb,_0x18b21b){var _0x2a190f=_0x3c71d5;_0x16347e['show']({'controller':_0x2a190f('0xfba'),'controllerAs':'vm','templateUrl':_0x5173ce,'parent':angular[_0x2a190f('0x24a1')](_0x3daf82[_0x2a190f('0x19b2')]),'targetEvent':_0x18b21b,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x1dcafb,'ivrCampaigns':_0x17b58c[_0x2a190f('0x10e8')]?_0x17b58c[_0x2a190f('0x10e8')]['rows']:[],'crudPermissions':_0x17b58c[_0x2a190f('0xb3d')]}});}function _0x410201(_0xf89371,_0x9dace5){var _0x4a96ac=_0x3c71d5,_0x3c9863=_0x16347e[_0x4a96ac('0xa5')]()[_0x4a96ac('0x13e4')](_0x4a96ac('0x346')+_0x32d445()[_0x4a96ac('0x1df2')](_0x4a96ac('0xf87'))+'?')[_0x4a96ac('0x221c')](_0x4a96ac('0xab2')+(_0xf89371[_0x4a96ac('0x2623')]||_0x4a96ac('0xf87'))+_0x4a96ac('0x27bb')+'\x20will\x20be\x20deleted.')[_0x4a96ac('0x4d1')](_0x4a96ac('0x19ca'))[_0x4a96ac('0x1345')](_0x9dace5)['ok']('OK')[_0x4a96ac('0x2c1')]('CANCEL');_0x16347e[_0x4a96ac('0x26b2')](_0x3c9863)[_0x4a96ac('0xe19')](function(){_0x5133ea(_0xf89371);},function(){console['log']('CANCEL');});}function _0x1ddd40(){var _0x720bca=_0x3c71d5;if(_0x3fe826[_0x720bca('0x179e')]('admin'))_0x2e115e['go'](_0x720bca('0x87'),{});else return _0x69a0ad[_0x720bca('0xb59')]['get']({'userProfileId':_0x3fe826[_0x720bca('0x1ef8')]()[_0x720bca('0x1d04')],'sectionId':0x5e6})['$promise']['then'](function(_0x2cf3c2){var _0x472f8f=_0x720bca,_0xfb118b=_0x2cf3c2&&_0x2cf3c2[_0x472f8f('0x16a7')]?_0x2cf3c2[_0x472f8f('0x16a7')][0x0]:null;_0xfb118b&&_0xfb118b[_0x472f8f('0x4ef')]?_0x2e115e['go']('app.motiondialer.realtime.ivr_campaigns',{}):_0x17b51a[_0x472f8f('0x1e67')]({'title':_0x4dac88['instant'](_0x472f8f('0x2786')),'msg':_0x4dac88[_0x472f8f('0x2159')](_0x472f8f('0x4bb'))});})['catch'](function(_0x14a27a){var _0x141a44=_0x720bca;_0x17b51a[_0x141a44('0x8c8')]({'title':_0x14a27a[_0x141a44('0x2833')]?'API:'+_0x14a27a[_0x141a44('0x2833')]+_0x141a44('0x1b7c')+_0x14a27a[_0x141a44('0x1fd7')]:_0x141a44('0x343'),'msg':_0x14a27a['status']?JSON['stringify'](_0x14a27a[_0x141a44('0x11d0')]):_0x14a27a[_0x141a44('0x94f')]()});});}var _0x37c3ac=!![],_0x4ff1ea=0x1;_0x5f17ad[_0x3c71d5('0x107')](_0x3c71d5('0x20cb'),function(_0x36b375,_0x2cdb07){var _0x52851f=_0x3c71d5;_0x37c3ac?_0x311f87(function(){_0x37c3ac=![];}):(!_0x2cdb07&&(_0x4ff1ea=_0x17b58c[_0x52851f('0xa16')][_0x52851f('0xc08')]),_0x36b375!==_0x2cdb07&&(_0x17b58c[_0x52851f('0xa16')][_0x52851f('0xc08')]=0x1),!_0x36b375&&(_0x17b58c['query']['page']=_0x4ff1ea),_0x17b58c[_0x52851f('0x1941')]());});function _0x5a53d8(_0x25458e){_0x17b58c['ivrCampaigns']=_0x25458e||{'count':0x0,'rows':[]};}function _0x15a48c(){var _0x490bf3=_0x3c71d5;_0x17b58c[_0x490bf3('0xa16')][_0x490bf3('0xab0')]=(_0x17b58c[_0x490bf3('0xa16')]['page']-0x1)*_0x17b58c[_0x490bf3('0xa16')]['limit'],_0x3fe826[_0x490bf3('0x179e')]('admin')?_0x17b58c[_0x490bf3('0x9c8')]=_0x69a0ad['campaign'][_0x490bf3('0x22d5')](_0x17b58c['query'],_0x5a53d8)[_0x490bf3('0xe59')]:(_0x17b58c[_0x490bf3('0xa16')]['id']=_0x17b58c[_0x490bf3('0x154f')]['id'],_0x17b58c[_0x490bf3('0xa16')][_0x490bf3('0x1e59')]=_0x490bf3('0x1963'),_0x17b58c[_0x490bf3('0x9c8')]=_0x69a0ad[_0x490bf3('0x154f')][_0x490bf3('0x14e6')](_0x17b58c[_0x490bf3('0xa16')],_0x5a53d8)[_0x490bf3('0xe59')]);}function _0xdade04(_0x4fc170,_0x76bb02){var _0x21bbc8=_0x3c71d5;_0x16347e[_0x21bbc8('0x26b2')]({'controller':'CreateOrEditIvrCampaignDialogController','controllerAs':'vm','templateUrl':_0x3aa9f2,'parent':angular['element'](_0x3daf82[_0x21bbc8('0x19b2')]),'targetEvent':_0x4fc170,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x76bb02,'ivrCampaigns':_0x17b58c[_0x21bbc8('0x10e8')]['rows'],'license':_0x17b58c[_0x21bbc8('0x5c1')],'setting':_0x17b58c['setting'],'crudPermissions':_0x17b58c[_0x21bbc8('0xb3d')]}});}function _0x5133ea(_0x43cd11){var _0x30c9da=_0x3c71d5;_0x69a0ad[_0x30c9da('0xcc1')][_0x30c9da('0x229e')]({'id':_0x43cd11['id']})[_0x30c9da('0xe59')][_0x30c9da('0xe19')](function(){var _0x3e5e3b=_0x30c9da;_0x32d445()[_0x3e5e3b('0xa8b')](_0x17b58c[_0x3e5e3b('0x10e8')]['rows'],{'id':_0x43cd11['id']}),_0x17b58c['ivrCampaigns'][_0x3e5e3b('0x148b')]-=0x1,!_0x17b58c[_0x3e5e3b('0x10e8')][_0x3e5e3b('0x16a7')][_0x3e5e3b('0x25ae')]&&_0x17b58c[_0x3e5e3b('0x1941')](),_0x17b51a[_0x3e5e3b('0x425')]({'title':_0x32d445()['startCase'](_0x3e5e3b('0x6e2'))+_0x3e5e3b('0x1219'),'msg':_0x43cd11[_0x3e5e3b('0x2623')]?_0x43cd11[_0x3e5e3b('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x30c9da('0x223b')](function(_0x3f58b0){var _0x3430aa=_0x30c9da;if(_0x3f58b0[_0x3430aa('0x11d0')]&&_0x3f58b0['data'][_0x3430aa('0xcd2')]&&_0x3f58b0[_0x3430aa('0x11d0')][_0x3430aa('0xcd2')][_0x3430aa('0x25ae')]){_0x17b58c[_0x3430aa('0xcd2')]=_0x3f58b0['data'][_0x3430aa('0xcd2')]||[{'message':_0x3f58b0[_0x3430aa('0x94f')](),'type':'SYSTEM:DELETEcampaign'}];for(var _0x19fc5d=0x0;_0x19fc5d<_0x3f58b0[_0x3430aa('0x11d0')][_0x3430aa('0xcd2')]['length'];_0x19fc5d++){_0x17b51a[_0x3430aa('0x8c8')]({'title':_0x3f58b0[_0x3430aa('0x11d0')][_0x3430aa('0xcd2')][_0x19fc5d][_0x3430aa('0x62e')],'msg':_0x3f58b0[_0x3430aa('0x11d0')][_0x3430aa('0xcd2')][_0x19fc5d][_0x3430aa('0x27e8')]});}}else _0x17b51a[_0x3430aa('0x8c8')]({'title':_0x3f58b0['status']?_0x3430aa('0x27f2')+_0x3f58b0['status']+_0x3430aa('0x1b7c')+_0x3f58b0['statusText']:_0x3430aa('0x2451'),'msg':_0x3f58b0[_0x3430aa('0x11d0')]?JSON[_0x3430aa('0x3ad')](_0x3f58b0[_0x3430aa('0x11d0')][_0x3430aa('0x27e8')]):_0x3f58b0[_0x3430aa('0x27e8')]||_0x3f58b0[_0x3430aa('0x94f')]()});});}function _0x32d190(){var _0x13f8d5=_0x3c71d5,_0x3dc30f=angular['copy'](_0x17b58c['selectedIvrCampaigns']);return _0x17b58c[_0x13f8d5('0x14df')]=[],_0x3dc30f;}function _0x3cf7cc(_0x19dcc2){var _0x9341d=_0x3c71d5,_0x1fcf63=_0x16347e[_0x9341d('0xa5')]()[_0x9341d('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20ivrCampaigns?')['htmlContent'](_0x9341d('0xab2')+_0x17b58c[_0x9341d('0x14df')][_0x9341d('0x25ae')]+_0x9341d('0x5bc')+_0x9341d('0x21bd'))[_0x9341d('0x4d1')]('delete\x20IvrCampaigns')[_0x9341d('0x1345')](_0x19dcc2)['ok']('OK')[_0x9341d('0x2c1')](_0x9341d('0x17'));_0x16347e[_0x9341d('0x26b2')](_0x1fcf63)['then'](function(){var _0x3c06ec=_0x9341d;_0x17b58c['selectedIvrCampaigns'][_0x3c06ec('0x1d7e')](function(_0x5549b9){_0x5133ea(_0x5549b9);}),_0x17b58c[_0x3c06ec('0x14df')]=[];});}function _0x1f4090(){var _0x1c8601=_0x3c71d5;_0x17b58c[_0x1c8601('0x14df')]=[];}function _0x26b207(){var _0x17fa80=_0x3c71d5;_0x17b58c['selectedIvrCampaigns']=_0x17b58c[_0x17fa80('0x10e8')][_0x17fa80('0x16a7')];}}const _0x5d5742=_0x803efc;_0x30169d[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x1fac'),_0xb635d2('0x2658'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),'crudPermissions'];function _0x30169d(_0x1eeea7,_0x48bfd8,_0xab047c,_0x3f4edc,_0x5d6212,_0x183f8f,_0xcfd7cd,_0x15762d,_0xb3f17c,_0x5715de,_0x5aba9c,_0x35a0c0,_0x270bf5,_0x58fa84){var _0x5ac75d=_0xb635d2,_0x130c39=this;_0x130c39['currentUser']=_0x5aba9c[_0x5ac75d('0x1ef8')](),_0x130c39[_0x5ac75d('0xcd2')]=[],_0x130c39[_0x5ac75d('0x22f1')]=_0x270bf5,_0x130c39[_0x5ac75d('0x5c1')]=_0x35a0c0,_0x130c39[_0x5ac75d('0xb3d')]=_0x58fa84,_0x130c39[_0x5ac75d('0x1ccb')]={},_0x130c39[_0x5ac75d('0x25ac')]=_0x130c39[_0x5ac75d('0x22f1')]&&_0x130c39[_0x5ac75d('0x22f1')][_0x5ac75d('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x130c39[_0x5ac75d('0x13e4')]=_0x5ac75d('0x232d'),_0x130c39['queueCampaign']=angular[_0x5ac75d('0x89')](_0xb3f17c),_0x130c39['queueCampaigns']=_0x15762d,_0x130c39['newQueueCampaign']=![];!_0x130c39['queueCampaign']&&(_0x130c39[_0x5ac75d('0x2658')]={'dialActive':!![],'type':'outbound','dialCheckDuplicateType':_0x5ac75d('0x2210'),'dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':'ASC','dialGlobalInterval':_0x5ac75d('0xd5f'),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':_0x5ac75d('0xdc6'),'dialPowerLevel':0x1,'dialPredictiveOptimization':_0x5ac75d('0x1276'),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x5ac75d('0x22d4'),'dialQueueTimeout':0x3,'strategy':'rrmemory','timeout':0x3,'retry':0x3,'weight':0x1,'dialGlobalMaxRetry':0x4,'dialCongestionMaxRetry':0x3,'dialCongestionRetryFrequency':0x96,'dialBusyMaxRetry':0x3,'dialBusyRetryFrequency':0x96,'dialNoAnswerMaxRetry':0x3,'dialNoAnswerRetryFrequency':0x96,'dialNoSuchNumberMaxRetry':0x3,'dialNoSuchNumberRetryFrequency':0x96,'dialDropMaxRetry':0x3,'dialDropRetryFrequency':0x96,'dialAbandonedMaxRetry':0x3,'dialAbandonedRetryFrequency':0x96,'dialMachineMaxRetry':0x3,'dialMachineRetryFrequency':0x96,'dialAgentRejectMaxRetry':0x3,'dialAgentRejectRetryFrequency':0x96,'dialPredictiveIntervalMaxThreshold':0x14,'dialPredictiveIntervalMinThreshold':0xa},_0x130c39[_0x5ac75d('0x13e4')]=_0x5ac75d('0x995'),_0x130c39[_0x5ac75d('0x1158')]=!![]);_0x130c39[_0x5ac75d('0x2848')]=_0xa025f0,_0x130c39['saveQueueCampaign']=_0x1ea319,_0x130c39['deleteQueueCampaign']=_0xf77af9,_0x130c39[_0x5ac75d('0x2635')]=_0x4ca571,_0x130c39['closeDialog']=_0x103a03,_0x5aba9c[_0x5ac75d('0x179e')]('admin')?_0x5715de[_0x5ac75d('0x1397')]['get']({'fields':'id,name','sort':_0x5ac75d('0x2623')})[_0x5ac75d('0xe59')][_0x5ac75d('0xe19')](function(_0x230657){var _0x18e066=_0x5ac75d;_0x130c39[_0x18e066('0x155e')]=_0x230657[_0x18e066('0x16a7')]||[];})[_0x5ac75d('0x223b')](function(_0x180004){var _0x4fb209=_0x5ac75d;_0xcfd7cd['error']({'title':_0x180004['status']?'API:'+_0x180004['status']+'\x20-\x20'+_0x180004['statusText']:_0x4fb209('0x1e6d'),'msg':_0x180004[_0x4fb209('0x11d0')]?JSON[_0x4fb209('0x3ad')](_0x180004[_0x4fb209('0x11d0')]):_0x180004['toString']()});}):_0x5715de['trunk'][_0x5ac75d('0x22d5')]({'fields':_0x5ac75d('0x104'),'sort':'name'})[_0x5ac75d('0xe59')][_0x5ac75d('0xe19')](function(_0x5acc3a){var _0x4f628c=_0x5ac75d;_0x130c39[_0x4f628c('0x155e')]=_0x5acc3a[_0x4f628c('0x16a7')]||[];})[_0x5ac75d('0xe19')](function(){var _0x440ad6=_0x5ac75d;return _0x5715de[_0x440ad6('0xb59')]['get']({'userProfileId':_0x130c39[_0x440ad6('0x15a5')][_0x440ad6('0x1d04')],'sectionId':0x3f3})[_0x440ad6('0xe59')];})['then'](function(_0x5d3942){var _0x1b2426=_0x5ac75d,_0x7bd702=_0x5d3942&&_0x5d3942[_0x1b2426('0x16a7')]?_0x5d3942['rows'][0x0]:null;if(!_0x7bd702){var _0x5dde3d=[],_0xaac803=null;_0x130c39['queueCampaign']&&(_0xaac803=_0x32d445()[_0x1b2426('0xf15')](_0x130c39[_0x1b2426('0x155e')],{'id':Number(_0x130c39['queueCampaign'][_0x1b2426('0x186d')])}));for(var _0x5d29c4=0x0;_0x5d29c4<_0x130c39[_0x1b2426('0x155e')][_0x1b2426('0x25ae')];_0x5d29c4++){_0xaac803&&_0x130c39[_0x1b2426('0x155e')][_0x5d29c4]['id']===_0xaac803['id']&&(_0x130c39[_0x1b2426('0x155e')][_0x5d29c4][_0x1b2426('0x1e9d')]=![],_0x5dde3d[_0x1b2426('0xb76')](_0x130c39[_0x1b2426('0x155e')][_0x5d29c4]));}_0x130c39['trunks']=_0x5dde3d;}else{if(!_0x7bd702[_0x1b2426('0x11fd')])return _0x5715de[_0x1b2426('0xd49')][_0x1b2426('0x22d5')]({'sectionId':_0x7bd702['id']})['$promise'][_0x1b2426('0xe19')](function(_0x5658f5){var _0x3bce9f=_0x1b2426,_0x32b2ab=_0x32d445()['map'](_0x5658f5[_0x3bce9f('0x16a7')],function(_0x100f96){var _0xe8931c=_0x3bce9f;return _0x32d445()[_0xe8931c('0xf15')](_0x130c39[_0xe8931c('0x155e')],{'id':_0x100f96['resourceId']});}),_0x30285a=null;_0x130c39[_0x3bce9f('0x2658')]&&(_0x30285a=_0x32d445()[_0x3bce9f('0xf15')](_0x130c39[_0x3bce9f('0x155e')],{'id':Number(_0x130c39[_0x3bce9f('0x2658')][_0x3bce9f('0x186d')])}));if(_0x30285a&&!_0x32d445()['some'](_0x32b2ab,['id',_0x30285a['id']])){var _0x48a051=_0x32d445()[_0x3bce9f('0xf15')](_0x130c39[_0x3bce9f('0x155e')],{'id':_0x30285a['id']});_0x48a051[_0x3bce9f('0x1e9d')]=![],_0x32b2ab[_0x3bce9f('0xb76')](_0x48a051);}_0x130c39[_0x3bce9f('0x155e')]=_0x32b2ab;});}})[_0x5ac75d('0x223b')](function(_0x59117d){var _0x22d9e4=_0x5ac75d;_0xcfd7cd['error']({'title':_0x59117d['status']?_0x22d9e4('0x27f2')+_0x59117d[_0x22d9e4('0x2833')]+'\x20-\x20'+_0x59117d[_0x22d9e4('0x1fd7')]:_0x22d9e4('0x14b5'),'msg':_0x59117d[_0x22d9e4('0x11d0')]?JSON[_0x22d9e4('0x3ad')](_0x59117d['data']):_0x59117d['toString']()});}),_0x5aba9c[_0x5ac75d('0x179e')]('admin')?_0x5715de[_0x5ac75d('0x134c')]['get']({'fields':'id,name','sort':'name','IntervalId':_0x5ac75d('0x1046')})[_0x5ac75d('0xe59')]['then'](function(_0x15c2a5){var _0x123985=_0x5ac75d;_0x130c39[_0x123985('0x134c')]=_0x15c2a5['rows']||[];})[_0x5ac75d('0x223b')](function(_0xe1220a){var _0x4c607a=_0x5ac75d;_0xcfd7cd[_0x4c607a('0x8c8')]({'title':_0xe1220a['status']?_0x4c607a('0x27f2')+_0xe1220a[_0x4c607a('0x2833')]+_0x4c607a('0x1b7c')+_0xe1220a[_0x4c607a('0x1fd7')]:_0x4c607a('0xb51'),'msg':_0xe1220a[_0x4c607a('0x11d0')]?JSON[_0x4c607a('0x3ad')](_0xe1220a['data']):_0xe1220a[_0x4c607a('0x94f')]()});}):_0x5715de[_0x5ac75d('0x134c')][_0x5ac75d('0x22d5')]({'fields':_0x5ac75d('0x104'),'sort':'name','IntervalId':_0x5ac75d('0x1046')})[_0x5ac75d('0xe59')]['then'](function(_0x567489){var _0x2f0c5b=_0x5ac75d;_0x130c39[_0x2f0c5b('0x134c')]=_0x567489['rows']||[];})[_0x5ac75d('0xe19')](function(){var _0x3bd2c5=_0x5ac75d;return _0x5715de['userProfileSection'][_0x3bd2c5('0x22d5')]({'userProfileId':_0x130c39[_0x3bd2c5('0x15a5')][_0x3bd2c5('0x1d04')],'sectionId':0x3ec})[_0x3bd2c5('0xe59')];})[_0x5ac75d('0xe19')](function(_0x4063d8){var _0x6554a3=_0x5ac75d,_0x21f53a=_0x4063d8&&_0x4063d8[_0x6554a3('0x16a7')]?_0x4063d8['rows'][0x0]:null;if(!_0x21f53a){var _0x3608d7=[],_0x3a9d35=null;_0x130c39['queueCampaign']&&(_0x3a9d35=_0x32d445()['find'](_0x130c39['interval'],{'id':Number(_0x130c39[_0x6554a3('0x2658')]['IntervalId'])}));for(var _0x2713e5=0x0;_0x2713e5<_0x130c39[_0x6554a3('0x134c')][_0x6554a3('0x25ae')];_0x2713e5++){_0x3a9d35&&_0x130c39[_0x6554a3('0x134c')][_0x2713e5]['id']===_0x3a9d35['id']&&(_0x130c39[_0x6554a3('0x134c')][_0x2713e5][_0x6554a3('0x1e9d')]=![],_0x3608d7[_0x6554a3('0xb76')](_0x130c39[_0x6554a3('0x134c')][_0x2713e5]));}_0x130c39[_0x6554a3('0x134c')]=_0x3608d7;}else{if(!_0x21f53a[_0x6554a3('0x11fd')])return _0x5715de['userProfileResource']['get']({'sectionId':_0x21f53a['id']})[_0x6554a3('0xe59')][_0x6554a3('0xe19')](function(_0x16e690){var _0x1c0ffd=_0x6554a3,_0x2ce19f=_0x32d445()['map'](_0x16e690[_0x1c0ffd('0x16a7')],function(_0x78c315){var _0x1f2ebe=_0x1c0ffd;return _0x32d445()[_0x1f2ebe('0xf15')](_0x130c39['interval'],{'id':_0x78c315['resourceId']});}),_0x10efa7=null;_0x130c39['queueCampaign']&&(_0x10efa7=_0x32d445()[_0x1c0ffd('0xf15')](_0x130c39['interval'],{'id':Number(_0x130c39[_0x1c0ffd('0x2658')][_0x1c0ffd('0x1fc1')])}));if(_0x10efa7&&!_0x32d445()[_0x1c0ffd('0x201a')](_0x2ce19f,['id',_0x10efa7['id']])){var _0x3bcd75=_0x32d445()['find'](_0x130c39[_0x1c0ffd('0x134c')],{'id':_0x10efa7['id']});_0x3bcd75[_0x1c0ffd('0x1e9d')]=![],_0x2ce19f[_0x1c0ffd('0xb76')](_0x3bcd75);}_0x130c39[_0x1c0ffd('0x134c')]=_0x2ce19f;});}})['catch'](function(_0x15e303){var _0x12d338=_0x5ac75d;_0xcfd7cd[_0x12d338('0x8c8')]({'title':_0x15e303[_0x12d338('0x2833')]?_0x12d338('0x27f2')+_0x15e303[_0x12d338('0x2833')]+'\x20-\x20'+_0x15e303[_0x12d338('0x1fd7')]:_0x12d338('0x2051'),'msg':_0x15e303[_0x12d338('0x11d0')]?JSON['stringify'](_0x15e303[_0x12d338('0x11d0')]):_0x15e303[_0x12d338('0x94f')]()});});function _0xa025f0(){var _0x5adce9=_0x5ac75d;_0x130c39[_0x5adce9('0xcd2')]=[],_0x5715de[_0x5adce9('0x25d5')][_0x5adce9('0xe5e')](_0x130c39[_0x5adce9('0x2658')])[_0x5adce9('0xe59')][_0x5adce9('0xe19')](function(_0xb12e9c){var _0x4a7888=_0x5adce9;_0x130c39[_0x4a7888('0x1fac')][_0x4a7888('0x14c9')](_0xb12e9c['toJSON']()),_0xcfd7cd[_0x4a7888('0x425')]({'title':_0x4a7888('0x2867'),'msg':_0x130c39[_0x4a7888('0x2658')]['name']?_0x130c39[_0x4a7888('0x2658')][_0x4a7888('0x2623')]+_0x4a7888('0x105f'):''}),_0x103a03(_0xb12e9c);})[_0x5adce9('0x223b')](function(_0x337adc){var _0x425edc=_0x5adce9;if(_0x337adc[_0x425edc('0x11d0')]&&_0x337adc['data'][_0x425edc('0xcd2')]&&_0x337adc[_0x425edc('0x11d0')][_0x425edc('0xcd2')]['length']){_0x130c39['errors']=_0x337adc['data'][_0x425edc('0xcd2')]||[{'message':_0x337adc['toString'](),'type':_0x425edc('0x27a9')}];for(var _0x3bc2d5=0x0;_0x3bc2d5<_0x337adc[_0x425edc('0x11d0')][_0x425edc('0xcd2')][_0x425edc('0x25ae')];_0x3bc2d5+=0x1){_0xcfd7cd[_0x425edc('0x8c8')]({'title':_0x337adc[_0x425edc('0x11d0')][_0x425edc('0xcd2')][_0x3bc2d5][_0x425edc('0x62e')],'msg':_0x337adc[_0x425edc('0x11d0')][_0x425edc('0xcd2')][_0x3bc2d5]['message']});}}else _0xcfd7cd['error']({'title':_0x337adc['status']?_0x425edc('0x27f2')+_0x337adc[_0x425edc('0x2833')]+_0x425edc('0x1b7c')+_0x337adc[_0x425edc('0x1fd7')]:_0x425edc('0x27a9'),'msg':_0x337adc['data']?JSON[_0x425edc('0x3ad')](_0x337adc['data'][_0x425edc('0x27e8')]):_0x337adc['toString']()});});}function _0x1ea319(){var _0x32996f=_0x5ac75d;_0x130c39[_0x32996f('0xcd2')]=[],_0x5715de[_0x32996f('0x25d5')][_0x32996f('0xa70')]({'id':_0x130c39[_0x32996f('0x2658')]['id']},_0x130c39[_0x32996f('0x2658')])[_0x32996f('0xe59')][_0x32996f('0xe19')](function(_0x413005){var _0x54a8de=_0x32996f,_0x2084dd=_0x32d445()[_0x54a8de('0xf15')](_0x130c39[_0x54a8de('0x1fac')],{'id':_0x413005['id']});_0x2084dd&&_0x32d445()[_0x54a8de('0x1d8')](_0x2084dd,_0x32d445()[_0x54a8de('0xed5')](_0x413005[_0x54a8de('0x250e')](),_0x32d445()[_0x54a8de('0x1234')](_0x2084dd))),_0xcfd7cd[_0x54a8de('0x425')]({'title':_0x54a8de('0x1ec6'),'msg':_0x130c39[_0x54a8de('0x2658')][_0x54a8de('0x2623')]?_0x130c39['queueCampaign'][_0x54a8de('0x2623')]+_0x54a8de('0x1c19'):''}),_0x103a03(_0x413005);})[_0x32996f('0x223b')](function(_0x5cb76a){var _0x3e4e72=_0x32996f;if(_0x5cb76a['data']&&_0x5cb76a['data'][_0x3e4e72('0xcd2')]&&_0x5cb76a[_0x3e4e72('0x11d0')]['errors']['length']){_0x130c39[_0x3e4e72('0xcd2')]=_0x5cb76a[_0x3e4e72('0x11d0')][_0x3e4e72('0xcd2')]||[{'message':_0x5cb76a[_0x3e4e72('0x94f')](),'type':_0x3e4e72('0x139b')}];for(var _0x419e57=0x0;_0x419e57<_0x5cb76a[_0x3e4e72('0x11d0')][_0x3e4e72('0xcd2')]['length'];_0x419e57++){_0xcfd7cd[_0x3e4e72('0x8c8')]({'title':_0x5cb76a[_0x3e4e72('0x11d0')][_0x3e4e72('0xcd2')][_0x419e57]['type'],'msg':_0x5cb76a['data'][_0x3e4e72('0xcd2')][_0x419e57]['message']});}}else _0xcfd7cd[_0x3e4e72('0x8c8')]({'title':_0x5cb76a[_0x3e4e72('0x2833')]?_0x3e4e72('0x27f2')+_0x5cb76a['status']+_0x3e4e72('0x1b7c')+_0x5cb76a[_0x3e4e72('0x1fd7')]:_0x3e4e72('0x139b'),'msg':_0x5cb76a[_0x3e4e72('0x11d0')]?JSON[_0x3e4e72('0x3ad')](_0x5cb76a['data'][_0x3e4e72('0x27e8')]):_0x5cb76a['toString']()});});}function _0xf77af9(_0x17e0e2){var _0x51fb4a=_0x5ac75d;_0x130c39['errors']=[];var _0x2d0768=_0x3f4edc[_0x51fb4a('0xa5')]()[_0x51fb4a('0x13e4')](_0x51fb4a('0x24d0'))[_0x51fb4a('0xd0')](_0x51fb4a('0x14d4'))['ariaLabel'](_0x51fb4a('0x2826'))['ok'](_0x51fb4a('0x2198'))['cancel'](_0x51fb4a('0x8a3'))[_0x51fb4a('0x1345')](_0x17e0e2);_0x3f4edc[_0x51fb4a('0x26b2')](_0x2d0768)[_0x51fb4a('0xe19')](function(){var _0x26329f=_0x51fb4a;_0x5715de[_0x26329f('0x25d5')][_0x26329f('0x229e')]({'id':_0x130c39['queueCampaign']['id']})[_0x26329f('0xe59')][_0x26329f('0xe19')](function(){var _0x111e4f=_0x26329f;_0x32d445()[_0x111e4f('0xa8b')](_0x130c39[_0x111e4f('0x1fac')],{'id':_0x130c39['queueCampaign']['id']}),_0xcfd7cd[_0x111e4f('0x425')]({'title':_0x111e4f('0x142a'),'msg':(_0x130c39[_0x111e4f('0x2658')]['name']||_0x111e4f('0x2658'))+_0x111e4f('0x2182')}),_0x103a03(_0x130c39['queueCampaign']);})[_0x26329f('0x223b')](function(_0x4ad85d){var _0x3b105a=_0x26329f;if(_0x4ad85d[_0x3b105a('0x11d0')]&&_0x4ad85d[_0x3b105a('0x11d0')][_0x3b105a('0xcd2')]&&_0x4ad85d[_0x3b105a('0x11d0')][_0x3b105a('0xcd2')]['length']){_0x130c39[_0x3b105a('0xcd2')]=_0x4ad85d['data']['errors']||[{'message':_0x4ad85d[_0x3b105a('0x94f')](),'type':_0x3b105a('0x6b5')}];for(var _0x5b0d1f=0x0;_0x5b0d1f<_0x4ad85d['data'][_0x3b105a('0xcd2')][_0x3b105a('0x25ae')];_0x5b0d1f++){_0xcfd7cd[_0x3b105a('0x8c8')]({'title':_0x4ad85d['data']['errors'][_0x5b0d1f][_0x3b105a('0x62e')],'msg':_0x4ad85d[_0x3b105a('0x11d0')]['errors'][_0x5b0d1f][_0x3b105a('0x27e8')]});}}else _0xcfd7cd[_0x3b105a('0x8c8')]({'title':_0x4ad85d[_0x3b105a('0x2833')]?_0x3b105a('0x27f2')+_0x4ad85d['status']+'\x20-\x20'+_0x4ad85d['statusText']:_0x3b105a('0x6b5'),'msg':_0x4ad85d[_0x3b105a('0x11d0')]?JSON['stringify'](_0x4ad85d[_0x3b105a('0x11d0')]['message']):_0x4ad85d['message']||_0x4ad85d[_0x3b105a('0x94f')]()});});},function(){});}function _0x4ca571(_0x44810a){return _0x44810a===null?undefined:new Date(_0x44810a);}function _0x103a03(_0x54b5e6){var _0x5b0de7=_0x5ac75d;_0x3f4edc[_0x5b0de7('0x11ed')](_0x54b5e6);}}const _0x14aee9=_0x30169d;_0x3d242c[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0xffc'),_0xb635d2('0x2658'),_0xb635d2('0x1fac'),_0xb635d2('0x24e1'),_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x3d242c(_0x47a2a0,_0x385862,_0x6047f0,_0x18a6bc,_0x569d09,_0x233a35,_0x10ca08,_0x1b19ef,_0x4ca683,_0x2af802){var _0x18452c=_0xb635d2,_0xa741da=this;_0xa741da['currentUser']=_0x4ca683[_0x18452c('0x1ef8')](),_0xa741da['queueCampaign']=_0x569d09,_0xa741da[_0x18452c('0xb3d')]=_0x2af802,_0xa741da['penalty']=0x0,_0xa741da['realtime']=_0x10ca08,_0xa741da[_0x18452c('0xe4b')]=[],_0xa741da[_0x18452c('0x1884')]=[],_0xa741da['selectedItems']=[],_0xa741da[_0x18452c('0x286c')]=[],_0xa741da[_0x18452c('0xf79')]=[],_0xa741da[_0x18452c('0x16e7')]=![],_0xa741da[_0x18452c('0x888')]=_0x4f08c3,_0xa741da[_0x18452c('0x4b8')]=_0x293b05,_0xa741da[_0x18452c('0x2584')]=_0x28e105,_0xa741da[_0x18452c('0xc00')]={'readOnly':!_0xa741da['crudPermissions'][_0x18452c('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x18452c('0x2623'),'line1':'fullname','line2':['name','internal'],'line3':_0x18452c('0x21e3'),'labelAll':_0x1b19ef['instant'](_0x18452c('0x250f')),'labelSelected':_0x1b19ef['instant'](_0x18452c('0x556')),'transferCallback':function _0x4289ec(_0x399d6b,_0x8fd3eb){var _0x226be0=_0x18452c;_0x8fd3eb?_0x399d6b[_0x226be0('0x1d7e')](function(_0x518bd2){var _0x5f23c9=_0x226be0;_0x518bd2[_0x5f23c9('0x21e3')]=undefined;}):_0x399d6b[_0x226be0('0x1d7e')](function(_0xf2cb43){var _0x3fed60=_0x226be0;_0xf2cb43[_0x3fed60('0x21e3')]=_0x3fed60('0x815')+_0xa741da[_0x3fed60('0x21e3')];});var _0x5ba939=_0x32d445()['xorWith'](_0xa741da['startingSelectedItems'],_0xa741da[_0x226be0('0x2273')],function(_0xb4473b,_0x195392){var _0x116c3f=_0x226be0;return _0xb4473b['id']===_0x195392['id']&&_0xb4473b[_0x116c3f('0x21e3')]===_0x195392['penalty'];});_0xa741da[_0x226be0('0x16e7')]=_0x32d445()[_0x226be0('0x14b4')](_0x5ba939)?![]:!![];}};function _0x4f08c3(){var _0x4b8fc9=_0x18452c;return _0x4ca683['hasRole'](_0x4b8fc9('0xd14'))?_0x41123c()['catch'](function(_0x38741c){var _0x342acd=_0x4b8fc9;_0x6047f0['error']({'title':_0x38741c['status']?_0x342acd('0x27f2')+_0x38741c[_0x342acd('0x2833')]+_0x342acd('0x1b7c')+_0x38741c['statusText']:_0x342acd('0x1e86'),'msg':_0x38741c['status']?JSON[_0x342acd('0x3ad')](_0x38741c['data']):_0x38741c['toString']()});}):_0x478464()[_0x4b8fc9('0xe19')](function(_0x234aac){var _0x26a2ec=_0x4b8fc9;return _0xa741da[_0x26a2ec('0x1e59')]=_0x234aac,_0x41123c();})[_0x4b8fc9('0x223b')](function(_0x216984){var _0x3e3314=_0x4b8fc9;_0x6047f0[_0x3e3314('0x8c8')]({'title':_0x216984['status']?_0x3e3314('0x27f2')+_0x216984[_0x3e3314('0x2833')]+_0x3e3314('0x1b7c')+_0x216984['statusText']:'SYSTEM:GET_AGENTS','msg':_0x216984[_0x3e3314('0x2833')]?JSON['stringify'](_0x216984[_0x3e3314('0x11d0')]):_0x216984[_0x3e3314('0x94f')]()});});}function _0x478464(){return _0x385862(function(_0x5a69b7,_0x2ba8dc){var _0x160e73=a0_0x5325;_0x18a6bc[_0x160e73('0xb59')]['get']({'userProfileId':_0xa741da['currentUser'][_0x160e73('0x1d04')],'name':_0x160e73('0xd61')})[_0x160e73('0xe59')][_0x160e73('0xe19')](function(_0x272403){var _0x4a7c3b=_0x160e73,_0x216f76=_0x272403&&_0x272403['rows']?_0x272403[_0x4a7c3b('0x16a7')][0x0]:null;_0x5a69b7(_0x216f76);})['catch'](function(_0x1c3c39){_0x2ba8dc(_0x1c3c39);});});}function _0x41123c(){return _0x385862(function(_0x492a23,_0x5be04a){var _0x38c432=a0_0x5325;return _0x12c107()[_0x38c432('0xe19')](function(_0x96beeb){var _0x1c52d3=_0x38c432;return _0xa741da[_0x1c52d3('0xe4b')]=_0x96beeb[_0x1c52d3('0x16a7')]?_0x96beeb['rows']:[],_0x4ca683[_0x1c52d3('0x179e')](_0x1c52d3('0xd14'))?_0x96beeb:_0xa741da[_0x1c52d3('0x1e59')]?_0xa741da[_0x1c52d3('0x1e59')][_0x1c52d3('0x11fd')]?_0x96beeb:_0x16b7b7():null;})[_0x38c432('0xe19')](function(_0x526923){var _0x3271eb=_0x38c432,_0x5df8d3=_0x526923&&_0x526923[_0x3271eb('0x16a7')]?_0x526923[_0x3271eb('0x16a7')]:[];return _0xa741da['allowedItems']=_0x32d445()[_0x3271eb('0x65a')](_0x5df8d3,function(_0x2d94dd){var _0x1fe716=_0x3271eb;return _0x32d445()[_0x1fe716('0xf15')](_0xa741da[_0x1fe716('0xe4b')],{'id':_0x4ca683[_0x1fe716('0x179e')]('admin')||_0xa741da['section'][_0x1fe716('0x11fd')]?_0x2d94dd['id']:_0x2d94dd[_0x1fe716('0x1104')]});}),_0xa741da['startingAllowedItems']=angular[_0x3271eb('0x89')](_0xa741da[_0x3271eb('0x1884')]),_0xa741da[_0x3271eb('0xe4b')][_0x3271eb('0x1d7e')](function(_0x59e5df){var _0xe1e0a9=_0x3271eb,_0x377c10=_0x32d445()['find'](_0xa741da['allowedItems'],{'id':_0x59e5df['id']});_0x4ca683[_0xe1e0a9('0x179e')](_0xe1e0a9('0xd14'))?_0x59e5df[_0xe1e0a9('0x1768')]=!![]:_0x59e5df['isValid']=typeof _0x377c10!==_0xe1e0a9('0x1143')?!![]:![];}),_0xb19f9d();})[_0x38c432('0xe19')](function(_0x5c5c18){var _0x36b0cf=_0x38c432,_0x3e258f=_0x5c5c18&&_0x5c5c18[_0x36b0cf('0x16a7')]?_0x5c5c18[_0x36b0cf('0x16a7')]:[];_0xa741da[_0x36b0cf('0x2273')]=_0x32d445()[_0x36b0cf('0x65a')](_0x3e258f,function(_0x5b243d){var _0x15bdf0=_0x36b0cf,_0x2496b1=_0x32d445()[_0x15bdf0('0xf15')](_0xa741da[_0x15bdf0('0xe4b')],{'id':_0x5b243d['id']});return _0x2496b1[_0x15bdf0('0x21e3')]=_0x5b243d[_0x15bdf0('0xdde')]?_0x15bdf0('0x815')+_0x5b243d[_0x15bdf0('0xdde')][_0x15bdf0('0x21e3')]:'',_0x2496b1[_0x15bdf0('0x1b66')]=typeof _0x5b243d['internal']!==_0x15bdf0('0x1143')?'<'+_0x5b243d[_0x15bdf0('0x1b66')]+'>':'',_0x2496b1;}),_0xa741da['startingSelectedItems']=angular[_0x36b0cf('0x89')](_0xa741da[_0x36b0cf('0x2273')]),_0xa741da[_0x36b0cf('0xc00')][_0x36b0cf('0x2273')]=_0xa741da[_0x36b0cf('0x2273')],_0xa741da['dualMultiselectOptions'][_0x36b0cf('0xe4b')]=_0x32d445()[_0x36b0cf('0x501')](_0xa741da[_0x36b0cf('0x1884')],_0xa741da[_0x36b0cf('0xc00')][_0x36b0cf('0x2273')],'id'),_0x492a23();})['catch'](function(_0x5e3154){_0x5be04a(_0x5e3154);});});}function _0x16b7b7(){return _0x385862(function(_0x4d4d54,_0x43a460){var _0xd646b3=a0_0x5325;return _0x18a6bc[_0xd646b3('0xd49')][_0xd646b3('0x22d5')]({'sectionId':_0xa741da[_0xd646b3('0x1e59')]['id'],'nolimit':!![]})['$promise'][_0xd646b3('0xe19')](function(_0x52a6ac){_0x4d4d54(_0x52a6ac);})['catch'](function(_0x6b2618){_0x43a460(_0x6b2618);});});}function _0xb19f9d(){return _0x385862(function(_0x547ef3,_0x2762b0){var _0x34bfba=a0_0x5325;return _0x18a6bc[_0x34bfba('0x25d5')][_0x34bfba('0x14fd')]({'id':_0xa741da['queueCampaign']['id'],'fields':_0x34bfba('0x244f'),'nolimit':!![],'role':_0x34bfba('0x108')})[_0x34bfba('0xe59')][_0x34bfba('0xe19')](function(_0x567bae){_0x547ef3(_0x567bae);})[_0x34bfba('0x223b')](function(_0x5aaf84){_0x2762b0(_0x5aaf84);});});}function _0x12c107(){return _0x385862(function(_0x539796,_0x2794e3){var _0x384728=a0_0x5325;return _0x18a6bc[_0x384728('0x10c6')][_0x384728('0x22d5')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x384728('0x108')})[_0x384728('0xe59')][_0x384728('0xe19')](function(_0x43d1ad){_0x539796(_0x43d1ad);})[_0x384728('0x223b')](function(_0x25e7bd){_0x2794e3(_0x25e7bd);});});}function _0x4bc60f(_0x3f63ac){return _0x385862(function(_0x252133,_0x5b71ed){var _0x2db8c1=a0_0x5325;if(_0x32d445()[_0x2db8c1('0x14b4')](_0x3f63ac))_0x252133();else{var _0x498e45=[],_0x48393b=_0x32d445()[_0x2db8c1('0x17fc')](_0x3f63ac,_0x2db8c1('0x21e3'));for(var _0x2f30f4=0x0;_0x2f30f4'+(_0x505d78[_0x319c81('0x2623')]||_0x505d78['id']&&_0x32d445()[_0x319c81('0x2077')](_0x319c81('0x84a'))+_0x505d78['id']||_0x319c81('0x1e4c'))+''+_0x319c81('0x21bd'))['ariaLabel'](_0x319c81('0xdca'))[_0x319c81('0x1345')](_0x274ce9)['ok']('OK')[_0x319c81('0x2c1')](_0x319c81('0x17'));_0xd75efc[_0x319c81('0x26b2')](_0x2fb2b0)[_0x319c81('0xe19')](function(){_0x17e77a(_0x505d78);},function(){var _0x239e21=_0x319c81;console[_0x239e21('0x1fe9')](_0x239e21('0x17'));});}function _0x31bb62(_0x1f2df6){var _0x51e8ab=_0x8bfdaa;_0x414bef[_0x51e8ab('0x22aa')]=_0x1f2df6||{'count':0x0,'rows':[]};}function _0x1fa0de(){var _0x37afa3=_0x8bfdaa;_0x414bef['query'][_0x37afa3('0xab0')]=(_0x414bef[_0x37afa3('0xa16')][_0x37afa3('0xc08')]-0x1)*_0x414bef[_0x37afa3('0xa16')][_0x37afa3('0x1b6d')],_0x414bef[_0x37afa3('0x9c8')]=_0x352e92[_0x37afa3('0x25d5')][_0x37afa3('0x1385')](_0x414bef[_0x37afa3('0xa16')],_0x31bb62)[_0x37afa3('0xe59')];}function _0x17e77a(_0x204a5c){var _0x24ac92=_0x8bfdaa;_0x352e92[_0x24ac92('0x1e4c')][_0x24ac92('0x229e')]({'id':_0x204a5c['id']})[_0x24ac92('0xe59')][_0x24ac92('0xe19')](function(){var _0x20215b=_0x24ac92;_0x32d445()[_0x20215b('0xa8b')](_0x414bef['queueCampaignHopperBlacks'][_0x20215b('0x16a7')],{'id':_0x204a5c['id']}),_0x414bef[_0x20215b('0x22aa')][_0x20215b('0x148b')]-=0x1,!_0x414bef[_0x20215b('0x22aa')][_0x20215b('0x16a7')]['length']&&_0x1fa0de(),_0x38d268[_0x20215b('0x425')]({'title':'HopperBlack\x20deleted!','msg':_0x204a5c['name']?_0x204a5c[_0x20215b('0x2623')]+_0x20215b('0x2182'):''});})[_0x24ac92('0x223b')](function(_0x2c9753){var _0x29e589=_0x24ac92;if(_0x2c9753['data']&&_0x2c9753[_0x29e589('0x11d0')][_0x29e589('0xcd2')]&&_0x2c9753[_0x29e589('0x11d0')][_0x29e589('0xcd2')][_0x29e589('0x25ae')]){_0x414bef['errors']=_0x2c9753[_0x29e589('0x11d0')]['errors']||[{'message':_0x2c9753[_0x29e589('0x94f')](),'type':_0x29e589('0x1ac')}];for(var _0x156174=0x0;_0x156174<_0x2c9753['data'][_0x29e589('0xcd2')]['length'];_0x156174++){_0x38d268['error']({'title':_0x2c9753[_0x29e589('0x11d0')][_0x29e589('0xcd2')][_0x156174][_0x29e589('0x62e')],'msg':_0x2c9753[_0x29e589('0x11d0')]['errors'][_0x156174][_0x29e589('0x27e8')]});}}else _0x38d268['error']({'title':_0x2c9753['status']?_0x29e589('0x27f2')+_0x2c9753[_0x29e589('0x2833')]+_0x29e589('0x1b7c')+_0x2c9753['statusText']:_0x29e589('0x1ac'),'msg':_0x2c9753['data']?JSON[_0x29e589('0x3ad')](_0x2c9753[_0x29e589('0x11d0')][_0x29e589('0x27e8')]):_0x2c9753[_0x29e589('0x27e8')]||_0x2c9753[_0x29e589('0x94f')]()});});}function _0x593b45(){var _0x3178b2=_0x8bfdaa,_0x22afde=angular[_0x3178b2('0x89')](_0x414bef[_0x3178b2('0x20ae')]);return _0x414bef[_0x3178b2('0x20ae')]=[],_0x22afde;}function _0x588956(_0x3e44e4){var _0x300bdf=_0x8bfdaa,_0x1edd8b=_0xd75efc[_0x300bdf('0xa5')]()['title'](_0x300bdf('0x27f4'))[_0x300bdf('0x221c')](''+_0x414bef['selectedQueueCampaignHopperBlacks'][_0x300bdf('0x25ae')]+_0x300bdf('0x5bc')+_0x300bdf('0x21bd'))[_0x300bdf('0x4d1')](_0x300bdf('0x1388'))[_0x300bdf('0x1345')](_0x3e44e4)['ok']('OK')[_0x300bdf('0x2c1')]('CANCEL');_0xd75efc[_0x300bdf('0x26b2')](_0x1edd8b)[_0x300bdf('0xe19')](function(){var _0x4d02e3=_0x300bdf;_0x414bef[_0x4d02e3('0x20ae')]['forEach'](function(_0xf5335){_0x17e77a(_0xf5335);}),_0x414bef[_0x4d02e3('0x20ae')]=[];});}var _0xb10b00=!![],_0x389c5e=0x1;_0xf72bd9[_0x8bfdaa('0x107')]('vm_dc.query.filter',function(_0x3571bd,_0x52243a){var _0xf1e7e5=_0x8bfdaa;_0xb10b00?_0x314b30(function(){_0xb10b00=![];}):(!_0x52243a&&(_0x389c5e=_0x414bef['query']['page']),_0x3571bd!==_0x52243a&&(_0x414bef[_0xf1e7e5('0xa16')][_0xf1e7e5('0xc08')]=0x1),!_0x3571bd&&(_0x414bef[_0xf1e7e5('0xa16')]['page']=_0x389c5e),_0x1fa0de());});}const _0x4aadd0=_0x610f5f;_0x27e05[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x27e05(_0x3759fb,_0x3f35ee,_0x380a2a,_0x388493,_0x2b10bc,_0x47ebbd,_0x1f63ec,_0xc086ba,_0x501c45,_0x306094,_0x2d4321){var _0x2df07c=_0xb635d2,_0x59f085=this;_0x59f085[_0x2df07c('0x15a5')]=_0x2d4321['getCurrentUser'](),_0x59f085[_0x2df07c('0x4b1')]={},_0x59f085[_0x2df07c('0x2658')]={},_0x59f085['queueCampaignHopperFinals']={'count':0x0,'rows':[]},_0x59f085[_0x2df07c('0xa12')]=[],_0x59f085[_0x2df07c('0xb3d')],_0x59f085[_0x2df07c('0xa16')]={'fields':_0x2df07c('0x318'),'sort':'-id','limit':0xa,'page':0x1},_0x59f085['init']=_0x1351f2,_0x59f085[_0x2df07c('0x126c')]=_0x5da56b,_0x59f085[_0x2df07c('0x425')]=_0x3253e2,_0x59f085[_0x2df07c('0x149d')]=_0x4f24fe,_0x59f085['exportSelectedQueueCampaignHopperFinals']=_0x4949a2,_0x59f085[_0x2df07c('0x27c6')]=_0x27f1c3,_0x59f085[_0x2df07c('0x1080')]=_0xa84ed0,_0x59f085[_0x2df07c('0x108d')]=_0x222b53,_0x59f085[_0x2df07c('0x657')]=_0x3f3692,_0x59f085['countContactsQueueCampaignHopperFinal']=_0x3cab9b,_0x59f085[_0x2df07c('0x1dab')]=_0x27079e,_0x59f085[_0x2df07c('0x15f3')]=_0x236925;function _0x1351f2(_0x1e9a8b,_0x1faf26){var _0x54deda=_0x2df07c;_0x59f085[_0x54deda('0x2658')]=_0x1e9a8b,_0x59f085[_0x54deda('0xb3d')]=typeof _0x1faf26!==_0x54deda('0x1143')?_0x1faf26:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x59f085[_0x54deda('0xa16')][_0x54deda('0x1967')]=_0x59f085[_0x54deda('0x2658')]['id'],_0x59f085['query']['id']=_0x59f085[_0x54deda('0x2658')]['id'],_0x4f24fe();}function _0x5da56b(_0x56b602,_0x39be07){var _0x57fb53=_0x2df07c,_0xdb33ff=_0x1f63ec['confirm']()['title'](_0x57fb53('0x1b82'))[_0x57fb53('0x221c')](_0x57fb53('0xab2')+(_0x56b602['name']||_0x56b602['id']&&_0x32d445()[_0x57fb53('0x2077')](_0x57fb53('0xde5'))+_0x56b602['id']||_0x57fb53('0x267a'))+_0x57fb53('0x27bb')+'\x20will\x20be\x20deleted.')[_0x57fb53('0x4d1')](_0x57fb53('0x1b3b'))[_0x57fb53('0x1345')](_0x39be07)['ok']('OK')[_0x57fb53('0x2c1')](_0x57fb53('0x17'));_0x1f63ec[_0x57fb53('0x26b2')](_0xdb33ff)[_0x57fb53('0xe19')](function(){_0x27f1c3(_0x56b602);},function(){var _0x7602e=_0x57fb53;console[_0x7602e('0x1fe9')]('CANCEL');});}function _0x3253e2(_0x5091a8){var _0x34f895=_0x2df07c;_0x59f085[_0x34f895('0x19fd')]=_0x5091a8||{'count':0x0,'rows':[]};}function _0x4f24fe(){var _0xfb3b30=_0x2df07c;_0x59f085[_0xfb3b30('0xa16')]['offset']=(_0x59f085[_0xfb3b30('0xa16')][_0xfb3b30('0xc08')]-0x1)*_0x59f085[_0xfb3b30('0xa16')][_0xfb3b30('0x1b6d')],_0x59f085[_0xfb3b30('0x9c8')]=_0x306094[_0xfb3b30('0x25d5')][_0xfb3b30('0xe86')](_0x59f085[_0xfb3b30('0xa16')],_0x3253e2)['$promise'];}function _0x27f1c3(_0x4e8e51){var _0x2bb69f=_0x2df07c;_0x306094['hopperFinal']['delete']({'id':_0x4e8e51['id']})[_0x2bb69f('0xe59')][_0x2bb69f('0xe19')](function(){var _0x4ce37a=_0x2bb69f;_0x32d445()['remove'](_0x59f085[_0x4ce37a('0x19fd')][_0x4ce37a('0x16a7')],{'id':_0x4e8e51['id']}),_0x59f085[_0x4ce37a('0x19fd')][_0x4ce37a('0x148b')]-=0x1,!_0x59f085[_0x4ce37a('0x19fd')][_0x4ce37a('0x16a7')][_0x4ce37a('0x25ae')]&&_0x4f24fe(),_0x501c45[_0x4ce37a('0x425')]({'title':_0x4ce37a('0x235d'),'msg':_0x4e8e51['name']?_0x4e8e51['name']+_0x4ce37a('0x2182'):''});})[_0x2bb69f('0x223b')](function(_0xcd1884){var _0xb38f50=_0x2bb69f;if(_0xcd1884[_0xb38f50('0x11d0')]&&_0xcd1884[_0xb38f50('0x11d0')]['errors']&&_0xcd1884[_0xb38f50('0x11d0')]['errors'][_0xb38f50('0x25ae')]){_0x59f085[_0xb38f50('0xcd2')]=_0xcd1884[_0xb38f50('0x11d0')][_0xb38f50('0xcd2')]||[{'message':_0xcd1884['toString'](),'type':_0xb38f50('0x1ac')}];for(var _0x23fb17=0x0;_0x23fb17<_0xcd1884['data'][_0xb38f50('0xcd2')][_0xb38f50('0x25ae')];_0x23fb17++){_0x501c45[_0xb38f50('0x8c8')]({'title':_0xcd1884[_0xb38f50('0x11d0')][_0xb38f50('0xcd2')][_0x23fb17][_0xb38f50('0x62e')],'msg':_0xcd1884[_0xb38f50('0x11d0')][_0xb38f50('0xcd2')][_0x23fb17][_0xb38f50('0x27e8')]});}}else _0x501c45[_0xb38f50('0x8c8')]({'title':_0xcd1884[_0xb38f50('0x2833')]?_0xb38f50('0x27f2')+_0xcd1884[_0xb38f50('0x2833')]+'\x20-\x20'+_0xcd1884['statusText']:_0xb38f50('0x1ac'),'msg':_0xcd1884['data']?JSON[_0xb38f50('0x3ad')](_0xcd1884[_0xb38f50('0x11d0')]['message']):_0xcd1884[_0xb38f50('0x27e8')]||_0xcd1884[_0xb38f50('0x94f')]()});});}function _0x4949a2(){var _0x4dc389=_0x2df07c,_0x23324d=angular[_0x4dc389('0x89')](_0x59f085[_0x4dc389('0xa12')]);return _0x59f085['selectedQueueCampaignHopperFinals']=[],_0x23324d;}function _0xa84ed0(_0x5640c7){var _0xe1a459=_0x2df07c,_0x23c998=_0x1f63ec[_0xe1a459('0xa5')]()[_0xe1a459('0x13e4')](_0xe1a459('0x1056'))[_0xe1a459('0x221c')](_0xe1a459('0xab2')+_0x59f085[_0xe1a459('0xa12')][_0xe1a459('0x25ae')]+_0xe1a459('0x5bc')+_0xe1a459('0x21bd'))[_0xe1a459('0x4d1')](_0xe1a459('0x1035'))[_0xe1a459('0x1345')](_0x5640c7)['ok']('OK')[_0xe1a459('0x2c1')](_0xe1a459('0x17'));_0x1f63ec[_0xe1a459('0x26b2')](_0x23c998)[_0xe1a459('0xe19')](function(){var _0x4b25af=_0xe1a459;_0x59f085['selectedQueueCampaignHopperFinals'][_0x4b25af('0x1d7e')](function(_0x392270){_0x27f1c3(_0x392270);}),_0x59f085[_0x4b25af('0xa12')]=[];});}function _0x3f3692(_0x3c1e5a){var _0x41350e=_0x2df07c;_0x306094[_0x41350e('0x1afa')]['moveContactsQueueCampaignHopperFinal']({'id':_0x59f085[_0x41350e('0xa16')]['id'],'state':_0x3c1e5a})[_0x41350e('0xe59')]['then'](function(_0x304f2b){var _0x29fd85=_0x41350e;_0x32d445()['isNil'](_0x304f2b)&&_0x32d445()['isNil'](_0x304f2b[0x0])?_0x501c45['info']({'title':_0x29fd85('0x13e6'),'msg':'0'}):_0x501c45['info']({'title':_0x29fd85('0x13e6'),'msg':JSON[_0x29fd85('0x3ad')](_0x304f2b[0x0]['affectedRows'])});})[_0x41350e('0x223b')](function(_0x4dd036){var _0x49be6f=_0x41350e;_0x501c45[_0x49be6f('0x8c8')]({'title':_0x4dd036[_0x49be6f('0x2833')]?_0x49be6f('0x27f2')+_0x4dd036[_0x49be6f('0x2833')]+_0x49be6f('0x1b7c')+_0x4dd036[_0x49be6f('0x1fd7')]:_0x49be6f('0x1ac'),'msg':_0x4dd036[_0x49be6f('0x11d0')]?JSON[_0x49be6f('0x3ad')](_0x4dd036[_0x49be6f('0x11d0')]['message']):_0x4dd036[_0x49be6f('0x27e8')]||_0x4dd036[_0x49be6f('0x94f')]()});});}function _0x3cab9b(_0x551923){var _0x287569=_0x2df07c;_0x306094[_0x287569('0x1afa')]['countContactsQueueCampaignHopperFinal']({'id':_0x551923})[_0x287569('0xe59')]['then'](function(_0x522461){var _0x3ebe8a=_0x287569;_0x32d445()[_0x3ebe8a('0x1d8')](_0x59f085[_0x3ebe8a('0x4b1')],_0x522461[0x0]);})[_0x287569('0x223b')](function(_0x4af192){var _0x12dcd7=_0x287569;_0x501c45[_0x12dcd7('0x8c8')]({'title':_0x4af192[_0x12dcd7('0x2833')]?_0x12dcd7('0x27f2')+_0x4af192['status']+_0x12dcd7('0x1b7c')+_0x4af192[_0x12dcd7('0x1fd7')]:_0x12dcd7('0x1ac'),'msg':_0x4af192['data']?JSON[_0x12dcd7('0x3ad')](_0x4af192[_0x12dcd7('0x11d0')]['message']):_0x4af192[_0x12dcd7('0x27e8')]||_0x4af192['toString']()});});}function _0x236925(_0x28a7fa){var _0x3e429a=_0x2df07c,_0x7ed847=_0x1f63ec['confirm']()[_0x3e429a('0x13e4')](_0x3e429a('0x165d'))[_0x3e429a('0x221c')](_0x3e429a('0x194e')+_0x3e429a('0x4b6'))[_0x3e429a('0x4d1')](_0x3e429a('0x1c14'))['targetEvent'](_0x28a7fa)['ok']('OK')[_0x3e429a('0x2c1')](_0x3e429a('0x17'));_0x1f63ec['show'](_0x7ed847)[_0x3e429a('0xe19')](function(){var _0x5f50f2=_0x3e429a;_0x59f085[_0x5f50f2('0xa12')][_0x5f50f2('0x1d7e')](function(_0x25c698){_0x222b53(_0x25c698);}),_0x59f085[_0x5f50f2('0xa12')]=[];});}function _0x27079e(_0x37c410,_0x356107){var _0x5c8067=_0x2df07c,_0x3137c5=_0x1f63ec[_0x5c8067('0xa5')]()[_0x5c8067('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?')['htmlContent'](''+_0x5c8067('0x1286')+_0x5c8067('0x27bb')+_0x5c8067('0x4b6'))[_0x5c8067('0x4d1')](_0x5c8067('0x25a9'))[_0x5c8067('0x1345')](_0x356107)['ok']('OK')[_0x5c8067('0x2c1')]('CANCEL');_0x1f63ec['show'](_0x3137c5)[_0x5c8067('0xe19')](function(){_0x222b53(_0x37c410);},function(){var _0x250f6a=_0x5c8067;console['log'](_0x250f6a('0x17'));});}function _0x255baa(_0x591d94){var _0x1a33b7=_0x2df07c,_0x29277e={};return _0x29277e['phone']=_0x591d94[_0x1a33b7('0xb2d')],_0x29277e[_0x1a33b7('0x50e')]=_0x4ddcaa()()['format'](_0x1a33b7('0x1f90')),_0x29277e[_0x1a33b7('0x27fb')]=0x0,_0x29277e['countcongestionretry']=0x0,_0x29277e[_0x1a33b7('0x2031')]=0x0,_0x29277e[_0x1a33b7('0x209c')]=0x0,_0x29277e[_0x1a33b7('0x23c1')]=_0x591d94[_0x1a33b7('0x23c1')],_0x29277e[_0x1a33b7('0x2463')]=_0x591d94[_0x1a33b7('0x2463')],_0x29277e[_0x1a33b7('0x43d')]=_0x591d94[_0x1a33b7('0x20a7')]?null:_0x591d94[_0x1a33b7('0x43d')],_0x29277e[_0x1a33b7('0x1967')]=_0x591d94[_0x1a33b7('0x1967')],_0x29277e[_0x1a33b7('0x196b')]=_0x591d94['CampaignId'],_0x29277e[_0x1a33b7('0xb33')]=_0x591d94[_0x1a33b7('0x9ee')]?0x3:0x2,_0x29277e[_0x1a33b7('0x9ee')]=_0x591d94['recallme']?!![]:![],_0x29277e;}function _0x1ae2f0(_0x18ba44){var _0x3f6b70=_0x2df07c,_0x298eba={};return _0x298eba[_0x3f6b70('0xb2d')]=_0x18ba44[_0x3f6b70('0xb2d')],_0x298eba['calleridname']=_0x18ba44[_0x3f6b70('0x173a')],_0x298eba[_0x3f6b70('0x50e')]=_0x4ddcaa()()[_0x3f6b70('0x5e5')](_0x3f6b70('0x1f90')),_0x298eba[_0x3f6b70('0x27fb')]=_0x18ba44[_0x3f6b70('0x27fb')],_0x298eba[_0x3f6b70('0x1fb2')]=_0x18ba44[_0x3f6b70('0x1fb2')],_0x298eba[_0x3f6b70('0x2031')]=_0x18ba44[_0x3f6b70('0x2031')],_0x298eba[_0x3f6b70('0x209c')]=_0x18ba44[_0x3f6b70('0x209c')],_0x298eba['ContactId']=_0x18ba44[_0x3f6b70('0x23c1')],_0x298eba[_0x3f6b70('0x2463')]=_0x18ba44[_0x3f6b70('0x2463')],_0x298eba[_0x3f6b70('0x43d')]=_0x2d4321[_0x3f6b70('0x1ef8')]()['id'],_0x298eba[_0x3f6b70('0x1967')]=_0x18ba44[_0x3f6b70('0x1967')],_0x298eba['CampaignId']=_0x18ba44[_0x3f6b70('0x196b')],_0x298eba[_0x3f6b70('0x2523')]=_0x4ddcaa()()['format'](_0x3f6b70('0x1f90')),_0x298eba[_0x3f6b70('0x6a0')]=!![],_0x298eba[_0x3f6b70('0x1d72')]=0x19,_0x298eba[_0x3f6b70('0xa8d')]='Restored',_0x298eba[_0x3f6b70('0xcc1')]=_0x18ba44[_0x3f6b70('0xcc1')],_0x298eba[_0x3f6b70('0xabe')]=_0x18ba44[_0x3f6b70('0x1967')]?_0x3f6b70('0x26a8'):'ivr',_0x298eba;}function _0x222b53(_0x54f41){var _0x3d704d=_0x2df07c;_0x306094[_0x3d704d('0x1afa')][_0x3d704d('0x144c')](_0x54f41)['$promise'][_0x3d704d('0xe19')](function(_0x307e39){var _0x4899a5=_0x3d704d;_0x501c45['info']({'title':_0x4899a5('0xfed'),'msg':'Contact\x20ID\x20'+_0x307e39['ContactId']});})[_0x3d704d('0x223b')](function(_0x1b0bed){var _0x10415d=_0x3d704d;_0x1b0bed[_0x10415d('0x11d0')]===_0x10415d('0x225d')?_0x306094[_0x10415d('0x2408')][_0x10415d('0xe5e')](_0x255baa(_0x54f41))[_0x10415d('0xe59')][_0x10415d('0xe19')](function(_0x97973c){var _0x186c4f=_0x10415d;_0x501c45['info']({'title':_0x186c4f('0x1a45'),'msg':_0x186c4f('0x1a75')+_0x97973c[_0x186c4f('0x23c1')]}),_0x97973c[_0x186c4f('0x23c1')]&&_0x306094[_0x186c4f('0x1a61')][_0x186c4f('0xe5e')](_0x1ae2f0(_0x54f41));})['catch'](function(_0x374c5d){var _0x1187c2=_0x10415d;!_0x32d445()[_0x1187c2('0xe44')](_0x374c5d[_0x1187c2('0x11d0')])&&_0x374c5d[_0x1187c2('0x11d0')][_0x1187c2('0x27e8')]===_0x1187c2('0x22cb')?_0x501c45[_0x1187c2('0x1e67')]({'title':_0x1187c2('0xfed'),'msg':'Contact\x20ID\x20'+_0x54f41[_0x1187c2('0x23c1')]}):_0x501c45[_0x1187c2('0x8c8')]({'title':_0x374c5d[_0x1187c2('0x2833')]?'API:'+_0x374c5d['status']+_0x1187c2('0x1b7c')+_0x374c5d[_0x1187c2('0x1fd7')]:_0x1187c2('0x1ac'),'msg':_0x374c5d[_0x1187c2('0x11d0')]?JSON[_0x1187c2('0x3ad')](_0x374c5d[_0x1187c2('0x11d0')]['message']):_0x374c5d[_0x1187c2('0x27e8')]||_0x374c5d[_0x1187c2('0x94f')]()});}):_0x501c45['error']({'title':_0x1b0bed[_0x10415d('0x2833')]?_0x10415d('0x27f2')+_0x1b0bed[_0x10415d('0x2833')]+_0x10415d('0x1b7c')+_0x1b0bed[_0x10415d('0x1fd7')]:_0x10415d('0x1ac'),'msg':_0x1b0bed['data']?JSON[_0x10415d('0x3ad')](_0x1b0bed[_0x10415d('0x11d0')]['message']):_0x1b0bed[_0x10415d('0x27e8')]||_0x1b0bed[_0x10415d('0x94f')]()});});}var _0x348ba0=!![],_0xbbca0f=0x1;_0x3f35ee['$watch'](_0x2df07c('0x1607'),function(_0x3ff9ea,_0x516c6a){var _0x20c622=_0x2df07c;_0x348ba0?_0x47ebbd(function(){_0x348ba0=![];}):(!_0x516c6a&&(_0xbbca0f=_0x59f085['query'][_0x20c622('0xc08')]),_0x3ff9ea!==_0x516c6a&&(_0x59f085[_0x20c622('0xa16')][_0x20c622('0xc08')]=0x1),!_0x3ff9ea&&(_0x59f085[_0x20c622('0xa16')][_0x20c622('0xc08')]=_0xbbca0f),_0x4f24fe());});}const _0x577a0a=_0x27e05;_0x23c477[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),'$scope',_0xb635d2('0xeb6'),'$q','$translate',_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),'api',_0xb635d2('0x2730')];function _0x23c477(_0x4c59b7,_0x38d385,_0x4cdf1d,_0x377090,_0x18dd00,_0xdfdfb1,_0x2371de,_0x1f9c9c,_0x5b5b24,_0x2fe25e,_0x15441e){var _0x33092d=_0xb635d2,_0x1d7355=this;_0x1d7355[_0x33092d('0x15a5')]=_0x15441e[_0x33092d('0x1ef8')](),_0x1d7355[_0x33092d('0x2658')]={},_0x1d7355['queueCampaignHopperHistories']={'count':0x0,'rows':[]},_0x1d7355['selectedQueueCampaignHopperHistories']=[],_0x1d7355[_0x33092d('0xb3d')],_0x1d7355[_0x33092d('0xa16')]={'fields':'createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','sort':_0x33092d('0x2289'),'limit':0xa,'page':0x1},_0x1d7355[_0x33092d('0x15f9')]=_0x71ecff,_0x1d7355[_0x33092d('0x126c')]=_0x54367c,_0x1d7355[_0x33092d('0x425')]=_0x4434e0,_0x1d7355[_0x33092d('0x2117')]=_0x44d0e5,_0x1d7355['exportSelectedQueueCampaignHopperHistories']=_0x5ad7e9,_0x1d7355[_0x33092d('0xa94')]=_0x19346c,_0x1d7355[_0x33092d('0x1047')]=_0x5a6df3;function _0x71ecff(_0x539ef8,_0x2acb6a){var _0x4f4c40=_0x33092d;_0x1d7355['queueCampaign']=_0x539ef8,_0x1d7355[_0x4f4c40('0xb3d')]=typeof _0x2acb6a!=='undefined'?_0x2acb6a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1d7355['query'][_0x4f4c40('0x1967')]=_0x1d7355['queueCampaign']['id'],_0x1d7355[_0x4f4c40('0xa16')]['id']=_0x1d7355['queueCampaign']['id'],_0x44d0e5();}function _0x54367c(_0x4d806b,_0x3d0073){var _0x270deb=_0x33092d,_0x28330a=_0x2371de['confirm']()[_0x270deb('0x13e4')](_0x270deb('0x16c8'))[_0x270deb('0x221c')](_0x270deb('0xab2')+(_0x4d806b['name']||_0x4d806b['id']&&_0x32d445()[_0x270deb('0x2077')](_0x270deb('0x21f7'))+_0x4d806b['id']||_0x270deb('0x249f'))+_0x270deb('0x27bb')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x270deb('0x821'))[_0x270deb('0x1345')](_0x3d0073)['ok']('OK')[_0x270deb('0x2c1')]('CANCEL');_0x2371de[_0x270deb('0x26b2')](_0x28330a)['then'](function(){_0x19346c(_0x4d806b);},function(){var _0x4e0186=_0x270deb;console[_0x4e0186('0x1fe9')](_0x4e0186('0x17'));});}function _0x4434e0(_0x36a963){var _0x229065=_0x33092d;_0x1d7355[_0x229065('0x959')]=_0x36a963||{'count':0x0,'rows':[]};}function _0x44d0e5(){var _0x54158b=_0x33092d;_0x1d7355[_0x54158b('0xa16')][_0x54158b('0xab0')]=(_0x1d7355[_0x54158b('0xa16')]['page']-0x1)*_0x1d7355['query'][_0x54158b('0x1b6d')],_0x1d7355[_0x54158b('0x9c8')]=_0x2fe25e['voiceQueue'][_0x54158b('0xbf7')](_0x1d7355[_0x54158b('0xa16')],_0x4434e0)[_0x54158b('0xe59')];}function _0x19346c(_0x8e6f8e){var _0x11f8c8=_0x33092d;_0x2fe25e[_0x11f8c8('0x249f')][_0x11f8c8('0x229e')]({'id':_0x8e6f8e['id']})[_0x11f8c8('0xe59')][_0x11f8c8('0xe19')](function(){var _0x5b88b1=_0x11f8c8;_0x32d445()[_0x5b88b1('0xa8b')](_0x1d7355['queueCampaignHopperHistories']['rows'],{'id':_0x8e6f8e['id']}),_0x1d7355[_0x5b88b1('0x959')][_0x5b88b1('0x148b')]-=0x1,!_0x1d7355['queueCampaignHopperHistories'][_0x5b88b1('0x16a7')][_0x5b88b1('0x25ae')]&&_0x44d0e5(),_0x5b5b24[_0x5b88b1('0x425')]({'title':_0x5b88b1('0x26c'),'msg':_0x8e6f8e[_0x5b88b1('0x2623')]?_0x8e6f8e['name']+'\x20has\x20been\x20deleted!':''});})[_0x11f8c8('0x223b')](function(_0x2b91a6){var _0x1c8593=_0x11f8c8;if(_0x2b91a6[_0x1c8593('0x11d0')]&&_0x2b91a6[_0x1c8593('0x11d0')][_0x1c8593('0xcd2')]&&_0x2b91a6[_0x1c8593('0x11d0')][_0x1c8593('0xcd2')][_0x1c8593('0x25ae')]){_0x1d7355[_0x1c8593('0xcd2')]=_0x2b91a6[_0x1c8593('0x11d0')][_0x1c8593('0xcd2')]||[{'message':_0x2b91a6[_0x1c8593('0x94f')](),'type':_0x1c8593('0x1ac')}];for(var _0x28f628=0x0;_0x28f628<_0x2b91a6['data']['errors'][_0x1c8593('0x25ae')];_0x28f628++){_0x5b5b24[_0x1c8593('0x8c8')]({'title':_0x2b91a6['data'][_0x1c8593('0xcd2')][_0x28f628][_0x1c8593('0x62e')],'msg':_0x2b91a6[_0x1c8593('0x11d0')][_0x1c8593('0xcd2')][_0x28f628][_0x1c8593('0x27e8')]});}}else _0x5b5b24['error']({'title':_0x2b91a6['status']?_0x1c8593('0x27f2')+_0x2b91a6[_0x1c8593('0x2833')]+_0x1c8593('0x1b7c')+_0x2b91a6[_0x1c8593('0x1fd7')]:'SYSTEM:GETvoiceQueue','msg':_0x2b91a6[_0x1c8593('0x11d0')]?JSON[_0x1c8593('0x3ad')](_0x2b91a6['data'][_0x1c8593('0x27e8')]):_0x2b91a6[_0x1c8593('0x27e8')]||_0x2b91a6['toString']()});});}function _0x5ad7e9(){var _0x1ee6d6=_0x33092d,_0x553e29=angular['copy'](_0x1d7355[_0x1ee6d6('0x34c')]);return _0x1d7355[_0x1ee6d6('0x34c')]=[],_0x553e29;}function _0x5a6df3(_0x2f6aeb){var _0x19419e=_0x33092d,_0x4af021=_0x2371de[_0x19419e('0xa5')]()[_0x19419e('0x13e4')](_0x19419e('0x238f'))[_0x19419e('0x221c')](''+_0x1d7355['selectedQueueCampaignHopperHistories'][_0x19419e('0x25ae')]+'\x20selected'+_0x19419e('0x21bd'))[_0x19419e('0x4d1')](_0x19419e('0x119'))[_0x19419e('0x1345')](_0x2f6aeb)['ok']('OK')[_0x19419e('0x2c1')](_0x19419e('0x17'));_0x2371de[_0x19419e('0x26b2')](_0x4af021)[_0x19419e('0xe19')](function(){var _0x1bca70=_0x19419e;_0x1d7355[_0x1bca70('0x34c')]['forEach'](function(_0x32b875){_0x19346c(_0x32b875);}),_0x1d7355[_0x1bca70('0x34c')]=[];});}var _0x991965=!![],_0x30507b=0x1;_0x38d385[_0x33092d('0x107')]('vm_dc.query.filter',function(_0x5c7bd2,_0x120dea){var _0xe31f63=_0x33092d;_0x991965?_0xdfdfb1(function(){_0x991965=![];}):(!_0x120dea&&(_0x30507b=_0x1d7355[_0xe31f63('0xa16')][_0xe31f63('0xc08')]),_0x5c7bd2!==_0x120dea&&(_0x1d7355['query'][_0xe31f63('0xc08')]=0x1),!_0x5c7bd2&&(_0x1d7355['query'][_0xe31f63('0xc08')]=_0x30507b),_0x44d0e5());});}const _0x1a72c2=_0x23c477;_0x48a4f2[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),'$scope',_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'Auth'];function _0x48a4f2(_0x23fcc0,_0x48e047,_0x477a82,_0x66d339,_0x567fdb,_0x8c0c09,_0x3a038b,_0x71382b,_0x59f711,_0x345587,_0x41ce24){var _0x3bb24c=_0xb635d2,_0xc10800=this;_0xc10800[_0x3bb24c('0x15a5')]=_0x41ce24[_0x3bb24c('0x1ef8')](),_0xc10800[_0x3bb24c('0x2658')]={},_0xc10800[_0x3bb24c('0xed3')]={'count':0x0,'rows':[]},_0xc10800[_0x3bb24c('0xad9')]=[],_0xc10800[_0x3bb24c('0xb3d')],_0xc10800['query']={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId','sort':_0x3bb24c('0x7e8'),'limit':0xa,'page':0x1},_0xc10800[_0x3bb24c('0x9dc')]=_0x32d445()[_0x3bb24c('0x226f')]([{'option':'Highest','value':_0x3bb24c('0x414')},{'option':_0x3bb24c('0x239c'),'value':_0x3bb24c('0x14ef')},{'option':_0x3bb24c('0x231d'),'value':'\x272\x27'},{'option':'Low','value':_0x3bb24c('0xfd4')},{'option':_0x3bb24c('0x1618'),'value':_0x3bb24c('0x275e')}],function(_0x2de992){var _0x55d87c=_0x3bb24c;return _0x32d445()[_0x55d87c('0x1b42')](_0x2de992[_0x55d87c('0x2')],new RegExp('\x27','g'),'');}),_0xc10800[_0x3bb24c('0x15f9')]=_0x48c47d,_0xc10800[_0x3bb24c('0x126c')]=_0x160e58,_0xc10800[_0x3bb24c('0x425')]=_0x5ae693,_0xc10800[_0x3bb24c('0x791')]=_0x4fde18,_0xc10800[_0x3bb24c('0x2073')]=_0x294436,_0xc10800[_0x3bb24c('0x60a')]=_0x162ba8,_0xc10800['deleteQueueCampaignHopper']=_0x5b4d8c,_0xc10800['deleteSelectedQueueCampaignHoppers']=_0x41f7e7,_0x41ce24[_0x3bb24c('0x179e')]('admin')?_0x345587[_0x3bb24c('0x10c6')][_0x3bb24c('0x22d5')]({'fields':_0x3bb24c('0x104'),'role':_0x3bb24c('0x108'),'sort':_0x3bb24c('0x2623'),'nolimit':_0x3bb24c('0x2206')})[_0x3bb24c('0xe59')][_0x3bb24c('0xe19')](function(_0x1f52b1){var _0x382a05=_0x3bb24c;_0xc10800['agents']=_0x1f52b1[_0x382a05('0x16a7')]||[];})['catch'](function(_0x921c78){var _0x474ec2=_0x3bb24c;_0x59f711[_0x474ec2('0x8c8')]({'title':_0x921c78[_0x474ec2('0x2833')]?'API:'+_0x921c78[_0x474ec2('0x2833')]+'\x20-\x20'+_0x921c78['statusText']:'SYSTEM:GET_AGENTS','msg':_0x921c78['data']?JSON['stringify'](_0x921c78[_0x474ec2('0x11d0')]):_0x921c78[_0x474ec2('0x94f')]()});}):_0x345587[_0x3bb24c('0x10c6')][_0x3bb24c('0x22d5')]({'fields':_0x3bb24c('0x104'),'role':_0x3bb24c('0x108'),'sort':_0x3bb24c('0x2623'),'nolimit':_0x3bb24c('0x2206')})[_0x3bb24c('0xe59')][_0x3bb24c('0xe19')](function(_0x2a1f2c){var _0x4498f8=_0x3bb24c;_0xc10800['agents']=_0x2a1f2c[_0x4498f8('0x16a7')]||[];})[_0x3bb24c('0xe19')](function(){var _0x10df8c=_0x3bb24c;return _0x345587['userProfileSection'][_0x10df8c('0x22d5')]({'userProfileId':_0xc10800[_0x10df8c('0x15a5')][_0x10df8c('0x1d04')],'sectionId':0xca})[_0x10df8c('0xe59')];})[_0x3bb24c('0xe19')](function(_0x59e7f7){var _0x2e39f8=_0x3bb24c,_0x32aaa5=_0x59e7f7&&_0x59e7f7[_0x2e39f8('0x16a7')]?_0x59e7f7['rows'][0x0]:null;if(!_0x32aaa5){var _0x2f22b5=[],_0x100dae=null;_0xc10800[_0x2e39f8('0x2658')]&&(_0x100dae=_0x32d445()[_0x2e39f8('0xf15')](_0xc10800[_0x2e39f8('0x29b')],{'id':Number(_0xc10800['queueCampaign'][_0x2e39f8('0x43d')])}));for(var _0x38d489=0x0;_0x38d489<_0xc10800['agents'][_0x2e39f8('0x25ae')];_0x38d489++){_0x100dae&&_0xc10800['agents'][_0x38d489]['id']===_0x100dae['id']&&(_0xc10800[_0x2e39f8('0x29b')][_0x38d489][_0x2e39f8('0x1e9d')]=![],_0x2f22b5[_0x2e39f8('0xb76')](_0xc10800[_0x2e39f8('0x29b')][_0x38d489]));}_0xc10800[_0x2e39f8('0x29b')]=_0x2f22b5;}else{if(!_0x32aaa5[_0x2e39f8('0x11fd')])return _0x345587['userProfileResource']['get']({'sectionId':_0x32aaa5['id']})[_0x2e39f8('0xe59')][_0x2e39f8('0xe19')](function(_0x107bb8){var _0x449c2b=_0x2e39f8,_0x3e73f8=_0x32d445()[_0x449c2b('0x65a')](_0x107bb8[_0x449c2b('0x16a7')],function(_0x26f2c1){var _0x2fb5a3=_0x449c2b;return _0x32d445()[_0x2fb5a3('0xf15')](_0xc10800[_0x2fb5a3('0x29b')],{'id':_0x26f2c1[_0x2fb5a3('0x1104')]});}),_0x2f7d96=null;_0xc10800[_0x449c2b('0x2658')]&&(_0x2f7d96=_0x32d445()['find'](_0xc10800[_0x449c2b('0x29b')],{'id':Number(_0xc10800[_0x449c2b('0x2658')]['UserId'])}));if(_0x2f7d96&&!_0x32d445()[_0x449c2b('0x201a')](_0x3e73f8,['id',_0x2f7d96['id']])){var _0x543acb=_0x32d445()[_0x449c2b('0xf15')](_0xc10800[_0x449c2b('0x29b')],{'id':_0x2f7d96['id']});_0x543acb['canSelect']=![],_0x3e73f8[_0x449c2b('0xb76')](_0x543acb);}_0xc10800[_0x449c2b('0x29b')]=_0x3e73f8;});}})['catch'](function(_0x12db33){var _0x5e08c7=_0x3bb24c;_0x59f711[_0x5e08c7('0x8c8')]({'title':_0x12db33[_0x5e08c7('0x2833')]?'API:'+_0x12db33[_0x5e08c7('0x2833')]+_0x5e08c7('0x1b7c')+_0x12db33[_0x5e08c7('0x1fd7')]:'SYSTEM:GETagents','msg':_0x12db33[_0x5e08c7('0x11d0')]?JSON[_0x5e08c7('0x3ad')](_0x12db33['data']):_0x12db33[_0x5e08c7('0x94f')]()});});function _0x48c47d(_0x4e9bf3,_0x8b88c6){var _0xd09468=_0x3bb24c;_0xc10800[_0xd09468('0x2658')]=_0x4e9bf3,_0xc10800[_0xd09468('0xb3d')]=typeof _0x8b88c6!==_0xd09468('0x1143')?_0x8b88c6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xc10800[_0xd09468('0xa16')]['VoiceQueueId']=_0xc10800[_0xd09468('0x2658')]['id'],_0xc10800[_0xd09468('0xa16')]['id']=_0xc10800[_0xd09468('0x2658')]['id'],_0x4fde18();}function _0x160e58(_0x4c06ff,_0x4476b2){var _0x1da095=_0x3bb24c,_0x543da0=_0x3a038b['confirm']()[_0x1da095('0x13e4')](_0x1da095('0x1d70'))['htmlContent'](_0x1da095('0xab2')+(_0x4c06ff[_0x1da095('0x2623')]||_0x4c06ff['id']&&_0x32d445()[_0x1da095('0x2077')](_0x1da095('0x2681'))+_0x4c06ff['id']||_0x1da095('0x11f0'))+_0x1da095('0x27bb')+_0x1da095('0x21bd'))[_0x1da095('0x4d1')](_0x1da095('0xdcd'))[_0x1da095('0x1345')](_0x4476b2)['ok']('OK')[_0x1da095('0x2c1')](_0x1da095('0x17'));_0x3a038b[_0x1da095('0x26b2')](_0x543da0)[_0x1da095('0xe19')](function(){_0x5b4d8c(_0x4c06ff);},function(){var _0x1981a4=_0x1da095;console[_0x1981a4('0x1fe9')](_0x1981a4('0x17'));});}function _0x5ae693(_0x2a768b){var _0x1a30e8=_0x3bb24c;_0xc10800[_0x1a30e8('0xed3')]=_0x2a768b||{'count':0x0,'rows':[]};}function _0x4fde18(){var _0x5cca30=_0x3bb24c;_0xc10800['query'][_0x5cca30('0xab0')]=(_0xc10800[_0x5cca30('0xa16')][_0x5cca30('0xc08')]-0x1)*_0xc10800['query'][_0x5cca30('0x1b6d')],_0xc10800[_0x5cca30('0x9c8')]=_0x345587['voiceQueue'][_0x5cca30('0x2018')](_0xc10800[_0x5cca30('0xa16')],_0x5ae693)[_0x5cca30('0xe59')];}function _0x294436(_0x2bfb67,_0x14bdbd){var _0x3fcacd=_0x3bb24c;_0x3a038b[_0x3fcacd('0x26b2')]({'controller':_0x3fcacd('0x726'),'controllerAs':'vm','templateUrl':_0xd9ffbb,'parent':angular[_0x3fcacd('0x24a1')](_0x71382b[_0x3fcacd('0x19b2')]),'targetEvent':_0x2bfb67,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xc10800['queueCampaign'],'hopper':_0x14bdbd,'hoppers':_0xc10800[_0x3fcacd('0xed3')][_0x3fcacd('0x16a7')],'license':null,'setting':null,'crudPermissions':_0xc10800[_0x3fcacd('0xb3d')]}});}function _0x5b4d8c(_0x568cde){var _0x3e120f=_0x3bb24c;_0x345587[_0x3e120f('0x2408')][_0x3e120f('0x229e')]({'id':_0x568cde['id']})[_0x3e120f('0xe59')]['then'](function(){var _0x438587=_0x3e120f;_0x32d445()[_0x438587('0xa8b')](_0xc10800[_0x438587('0xed3')][_0x438587('0x16a7')],{'id':_0x568cde['id']}),_0xc10800[_0x438587('0xed3')][_0x438587('0x148b')]-=0x1,!_0xc10800[_0x438587('0xed3')][_0x438587('0x16a7')][_0x438587('0x25ae')]&&_0x4fde18(),_0x59f711[_0x438587('0x425')]({'title':_0x438587('0x1e7f'),'msg':_0x568cde['name']?_0x568cde[_0x438587('0x2623')]+_0x438587('0x2182'):''});})[_0x3e120f('0x223b')](function(_0x463977){var _0x592463=_0x3e120f;if(_0x463977[_0x592463('0x11d0')]&&_0x463977[_0x592463('0x11d0')]['errors']&&_0x463977['data']['errors'][_0x592463('0x25ae')]){_0xc10800[_0x592463('0xcd2')]=_0x463977[_0x592463('0x11d0')][_0x592463('0xcd2')]||[{'message':_0x463977[_0x592463('0x94f')](),'type':_0x592463('0x1ac')}];for(var _0x3eaad7=0x0;_0x3eaad7<_0x463977[_0x592463('0x11d0')][_0x592463('0xcd2')][_0x592463('0x25ae')];_0x3eaad7++){_0x59f711[_0x592463('0x8c8')]({'title':_0x463977[_0x592463('0x11d0')][_0x592463('0xcd2')][_0x3eaad7][_0x592463('0x62e')],'msg':_0x463977[_0x592463('0x11d0')][_0x592463('0xcd2')][_0x3eaad7][_0x592463('0x27e8')]});}}else _0x59f711[_0x592463('0x8c8')]({'title':_0x463977['status']?_0x592463('0x27f2')+_0x463977[_0x592463('0x2833')]+_0x592463('0x1b7c')+_0x463977[_0x592463('0x1fd7')]:'SYSTEM:GETvoiceQueue','msg':_0x463977[_0x592463('0x11d0')]?JSON['stringify'](_0x463977['data'][_0x592463('0x27e8')]):_0x463977[_0x592463('0x27e8')]||_0x463977[_0x592463('0x94f')]()});});}function _0x162ba8(){var _0x4aa196=_0x3bb24c,_0x230843=angular[_0x4aa196('0x89')](_0xc10800[_0x4aa196('0xad9')]);return _0xc10800['selectedQueueCampaignHoppers']=[],_0x230843;}function _0x41f7e7(_0x343a4b){var _0x324f9d=_0x3bb24c,_0x3fbfde=_0x3a038b['confirm']()[_0x324f9d('0x13e4')](_0x324f9d('0x22'))['htmlContent'](''+_0xc10800[_0x324f9d('0xad9')]['length']+_0x324f9d('0x5bc')+_0x324f9d('0x21bd'))[_0x324f9d('0x4d1')](_0x324f9d('0x279c'))[_0x324f9d('0x1345')](_0x343a4b)['ok']('OK')[_0x324f9d('0x2c1')]('CANCEL');_0x3a038b['show'](_0x3fbfde)[_0x324f9d('0xe19')](function(){var _0xe7ea9c=_0x324f9d;_0xc10800['selectedQueueCampaignHoppers'][_0xe7ea9c('0x1d7e')](function(_0x32ac58){_0x5b4d8c(_0x32ac58);}),_0xc10800[_0xe7ea9c('0xad9')]=[];});}var _0x549d9f=!![],_0x3ed0b7=0x1;_0x48e047['$watch']('vm_dc.query.filter',function(_0x19bd93,_0x5d2574){var _0x434fcb=_0x3bb24c;_0x549d9f?_0x8c0c09(function(){_0x549d9f=![];}):(!_0x5d2574&&(_0x3ed0b7=_0xc10800['query']['page']),_0x19bd93!==_0x5d2574&&(_0xc10800[_0x434fcb('0xa16')][_0x434fcb('0xc08')]=0x1),!_0x19bd93&&(_0xc10800[_0x434fcb('0xa16')][_0x434fcb('0xc08')]=_0x3ed0b7),_0x4fde18());});}const _0x47db33=_0x48a4f2;_0x4e159f[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x26d1'),'hopper',_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license','setting',_0xb635d2('0xb3d')];function _0x4e159f(_0x444718,_0x2672c8,_0x2cc1b1,_0x4ea14e,_0x425d01,_0x516958,_0x1ee3e1,_0x36405e,_0x3469cc,_0x5041cb,_0x45a220,_0x3270d4,_0x1b72bb,_0x2cccce){var _0x2f301c=_0xb635d2,_0x343e58=this;_0x343e58['currentUser']=_0x45a220['getCurrentUser'](),_0x343e58['errors']=[],_0x343e58['setting']=_0x1b72bb,_0x343e58[_0x2f301c('0x5c1')]=_0x3270d4,_0x343e58[_0x2f301c('0xb3d')]=_0x2cccce,_0x343e58[_0x2f301c('0x1ccb')]={},_0x343e58['passwordPattern']=_0x343e58[_0x2f301c('0x22f1')]&&_0x343e58['setting'][_0x2f301c('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x343e58[_0x2f301c('0x13e4')]='MOTIONDIALER.EDIT_HOPPER',_0x343e58[_0x2f301c('0x11f0')]=angular[_0x2f301c('0x89')](_0x3469cc),_0x343e58['hoppers']=_0x36405e,_0x343e58[_0x2f301c('0x210c')]=![];!_0x343e58[_0x2f301c('0x11f0')]&&(_0x343e58[_0x2f301c('0x11f0')]={},_0x343e58[_0x2f301c('0x13e4')]=_0x2f301c('0x17ee'),_0x343e58['newHopper']=!![]);_0x2672c8[_0x2f301c('0x2ef')]['id']&&(_0x343e58[_0x2f301c('0x11f0')]['VoiceQueueId']=_0x2672c8[_0x2f301c('0x2ef')]['id']);_0x343e58[_0x2f301c('0x216b')]=_0x53168a,_0x343e58['saveHopper']=_0x2e5b9a,_0x343e58[_0x2f301c('0x2773')]=_0x3e61ec,_0x343e58[_0x2f301c('0x2635')]=_0x241758,_0x343e58[_0x2f301c('0x2584')]=_0x5de26c,_0x45a220[_0x2f301c('0x179e')](_0x2f301c('0xd14'))?_0x5041cb['user'][_0x2f301c('0x22d5')]({'fields':'id,name','role':'agent','sort':_0x2f301c('0x2623'),'nolimit':_0x2f301c('0x2206')})[_0x2f301c('0xe59')][_0x2f301c('0xe19')](function(_0x1f833f){var _0x152a78=_0x2f301c;_0x343e58['agents']=_0x1f833f[_0x152a78('0x16a7')]||[];})[_0x2f301c('0x223b')](function(_0x9fae81){var _0x3ec0f9=_0x2f301c;_0x1ee3e1['error']({'title':_0x9fae81[_0x3ec0f9('0x2833')]?'API:'+_0x9fae81[_0x3ec0f9('0x2833')]+_0x3ec0f9('0x1b7c')+_0x9fae81[_0x3ec0f9('0x1fd7')]:_0x3ec0f9('0x1e86'),'msg':_0x9fae81[_0x3ec0f9('0x11d0')]?JSON['stringify'](_0x9fae81['data']):_0x9fae81['toString']()});}):_0x5041cb[_0x2f301c('0x10c6')]['get']({'fields':_0x2f301c('0x104'),'role':_0x2f301c('0x108'),'sort':_0x2f301c('0x2623'),'nolimit':_0x2f301c('0x2206')})[_0x2f301c('0xe59')][_0x2f301c('0xe19')](function(_0x37ced7){var _0x4bd1d4=_0x2f301c;_0x343e58[_0x4bd1d4('0x29b')]=_0x37ced7[_0x4bd1d4('0x16a7')]||[];})[_0x2f301c('0xe19')](function(){var _0x1feade=_0x2f301c;return _0x5041cb['userProfileSection']['get']({'userProfileId':_0x343e58[_0x1feade('0x15a5')][_0x1feade('0x1d04')],'sectionId':0xca})[_0x1feade('0xe59')];})[_0x2f301c('0xe19')](function(_0x23f8f0){var _0x13a50b=_0x2f301c,_0x33b0bd=_0x23f8f0&&_0x23f8f0[_0x13a50b('0x16a7')]?_0x23f8f0[_0x13a50b('0x16a7')][0x0]:null;if(!_0x33b0bd){var _0x343417=[],_0xc46e18=null;_0x343e58[_0x13a50b('0x11f0')]&&(_0xc46e18=_0x32d445()[_0x13a50b('0xf15')](_0x343e58['agents'],{'id':Number(_0x343e58[_0x13a50b('0x11f0')]['UserId'])}));for(var _0x1544e3=0x0;_0x1544e3<_0x343e58['agents'][_0x13a50b('0x25ae')];_0x1544e3++){_0xc46e18&&_0x343e58['agents'][_0x1544e3]['id']===_0xc46e18['id']&&(_0x343e58['agents'][_0x1544e3][_0x13a50b('0x1e9d')]=![],_0x343417['push'](_0x343e58[_0x13a50b('0x29b')][_0x1544e3]));}_0x343e58[_0x13a50b('0x29b')]=_0x343417;}else{if(!_0x33b0bd[_0x13a50b('0x11fd')])return _0x5041cb[_0x13a50b('0xd49')][_0x13a50b('0x22d5')]({'sectionId':_0x33b0bd['id']})['$promise']['then'](function(_0x521754){var _0x566c66=_0x13a50b,_0x25a50c=_0x32d445()['map'](_0x521754[_0x566c66('0x16a7')],function(_0x40d16){var _0x1df23a=_0x566c66;return _0x32d445()[_0x1df23a('0xf15')](_0x343e58['agents'],{'id':_0x40d16[_0x1df23a('0x1104')]});}),_0x10f764=null;_0x343e58[_0x566c66('0x11f0')]&&(_0x10f764=_0x32d445()[_0x566c66('0xf15')](_0x343e58[_0x566c66('0x29b')],{'id':Number(_0x343e58[_0x566c66('0x11f0')][_0x566c66('0x43d')])}));if(_0x10f764&&!_0x32d445()['some'](_0x25a50c,['id',_0x10f764['id']])){var _0x3f59ff=_0x32d445()[_0x566c66('0xf15')](_0x343e58['agents'],{'id':_0x10f764['id']});_0x3f59ff['canSelect']=![],_0x25a50c['push'](_0x3f59ff);}_0x343e58[_0x566c66('0x29b')]=_0x25a50c;});}})[_0x2f301c('0x223b')](function(_0x3b175b){var _0x54dd80=_0x2f301c;_0x1ee3e1[_0x54dd80('0x8c8')]({'title':_0x3b175b[_0x54dd80('0x2833')]?_0x54dd80('0x27f2')+_0x3b175b['status']+_0x54dd80('0x1b7c')+_0x3b175b['statusText']:'SYSTEM:GETagents','msg':_0x3b175b[_0x54dd80('0x11d0')]?JSON['stringify'](_0x3b175b['data']):_0x3b175b[_0x54dd80('0x94f')]()});});function _0x53168a(){var _0x2dd047=_0x2f301c;_0x343e58[_0x2dd047('0xcd2')]=[],_0x5041cb[_0x2dd047('0x2408')][_0x2dd047('0xe5e')](_0x343e58[_0x2dd047('0x11f0')])[_0x2dd047('0xe59')][_0x2dd047('0xe19')](function(_0x88a046){var _0x18c75a=_0x2dd047;_0x343e58[_0x18c75a('0x26d1')]['unshift'](_0x88a046['toJSON']()),_0x1ee3e1['success']({'title':_0x18c75a('0x1f01'),'msg':_0x343e58[_0x18c75a('0x11f0')][_0x18c75a('0x2623')]?_0x343e58[_0x18c75a('0x11f0')][_0x18c75a('0x2623')]+_0x18c75a('0x105f'):''}),_0x5de26c(_0x88a046);})['catch'](function(_0x556eca){var _0x425fec=_0x2dd047;if(_0x556eca[_0x425fec('0x11d0')]&&_0x556eca[_0x425fec('0x11d0')][_0x425fec('0xcd2')]&&_0x556eca[_0x425fec('0x11d0')][_0x425fec('0xcd2')]['length']){_0x343e58[_0x425fec('0xcd2')]=_0x556eca[_0x425fec('0x11d0')]['errors']||[{'message':_0x556eca[_0x425fec('0x94f')](),'type':'api.cmHopper.save'}];for(var _0x4f8cbe=0x0;_0x4f8cbe<_0x556eca['data'][_0x425fec('0xcd2')][_0x425fec('0x25ae')];_0x4f8cbe+=0x1){_0x1ee3e1[_0x425fec('0x8c8')]({'title':_0x556eca[_0x425fec('0x11d0')][_0x425fec('0xcd2')][_0x4f8cbe][_0x425fec('0x62e')],'msg':_0x556eca[_0x425fec('0x11d0')][_0x425fec('0xcd2')][_0x4f8cbe]['message']});}}else _0x1ee3e1[_0x425fec('0x8c8')]({'title':_0x556eca[_0x425fec('0x2833')]?_0x425fec('0x27f2')+_0x556eca[_0x425fec('0x2833')]+'\x20-\x20'+_0x556eca[_0x425fec('0x1fd7')]:_0x425fec('0x1a99'),'msg':_0x556eca['data']?JSON[_0x425fec('0x3ad')](_0x556eca[_0x425fec('0x11d0')][_0x425fec('0x27e8')]):_0x556eca[_0x425fec('0x94f')]()});});}function _0x2e5b9a(){var _0x41fdca=_0x2f301c;_0x343e58[_0x41fdca('0xcd2')]=[];var _0x215a62,_0x358452,_0x6ec37a,_0x2eba6d;_0x343e58[_0x41fdca('0x11f0')][_0x41fdca('0x43d')]=_0x343e58[_0x41fdca('0x11f0')][_0x41fdca('0x9ee')]?_0x343e58[_0x41fdca('0x11f0')][_0x41fdca('0x43d')]:null,_0x343e58[_0x41fdca('0x11f0')]['OwnerId']=_0x45a220[_0x41fdca('0x1ef8')]()['id'],_0x5041cb['cmHopper'][_0x41fdca('0x22d5')]({'id':_0x343e58[_0x41fdca('0x11f0')]['id'],'attributes':[_0x41fdca('0x50e')]})['$promise'][_0x41fdca('0xe19')](function(_0x2980a3){var _0x1397e0=_0x41fdca;_0x32d445()['isNil'](_0x2980a3)||_0x32d445()[_0x1397e0('0x14b4')](_0x2980a3)?_0x215a62=_0x4ddcaa()()['format'](_0x1397e0('0x1f90')):_0x215a62=_0x2980a3['scheduledat'];})[_0x41fdca('0x23')](function(){var _0x336e7f=_0x41fdca;_0x5041cb[_0x336e7f('0x2408')][_0x336e7f('0xa70')]({'id':_0x343e58[_0x336e7f('0x11f0')]['id']},_0x32d445()[_0x336e7f('0x23e3')](_0x343e58[_0x336e7f('0x11f0')],[_0x336e7f('0x1967'),_0x336e7f('0x196b'),_0x336e7f('0x23c1'),_0x336e7f('0x2463')]))[_0x336e7f('0xe59')]['then'](function(_0x327aa5){var _0x3aa7f1=_0x336e7f;_0x358452=_0x327aa5,_0x5041cb[_0x3aa7f1('0x1711')][_0x3aa7f1('0x22d5')]({'id':_0x358452[_0x3aa7f1('0x23c1')],'attributes':[_0x3aa7f1('0x2566'),'lastName']})[_0x3aa7f1('0xe59')][_0x3aa7f1('0xe19')](function(_0x1e3aab){var _0x461cfd=_0x3aa7f1;!_0x32d445()['isNil'](_0x1e3aab)&&!_0x32d445()[_0x461cfd('0xe44')](_0x1e3aab[_0x461cfd('0x2566')])&&(_0x6ec37a=_0x1e3aab[_0x461cfd('0x2566')],!_0x32d445()['isNil'](_0x1e3aab[_0x461cfd('0x151f')])&&(_0x6ec37a+='\x20'+_0x1e3aab[_0x461cfd('0x151f')]));})[_0x3aa7f1('0x223b')](function(){_0x6ec37a=undefined;})[_0x3aa7f1('0x23')](function(){var _0x559164=_0x3aa7f1;_0x5041cb[_0x559164('0x25d5')][_0x559164('0x22d5')]({'raw':![],'id':_0x358452['VoiceQueueId'],'attributes':[_0x559164('0x2623')]})[_0x559164('0xe59')][_0x559164('0xe19')](function(_0x1d2a86){var _0x4f4d49=_0x559164;_0x2eba6d=_0x1d2a86[_0x4f4d49('0x2623')];})[_0x559164('0x223b')](function(){_0x2eba6d=undefined;})[_0x559164('0x23')](function(){var _0x56a504=_0x559164;_0x5041cb[_0x56a504('0x1a61')][_0x56a504('0xe5e')]({'state':0x18,'statedesc':_0x56a504('0x3a'),'scheduledat':_0x215a62,'calleridnum':_0x358452['phone'],'calleridname':_0x6ec37a,'campaigntype':_0x358452[_0x56a504('0x1967')]?_0x56a504('0x26a8'):_0x56a504('0x989'),'campaign':_0x2eba6d,'editedat':_0x4ddcaa()()['format']('YYYY-MM-DD\x20HH:mm:ss'),'edited':!![],'ListId':_0x358452[_0x56a504('0x2463')],'UserId':_0x45a220[_0x56a504('0x1ef8')]()['id'],'VoiceQueueId':_0x358452[_0x56a504('0x1967')],'CampaignId':_0x358452[_0x56a504('0x196b')],'ContactId':_0x358452[_0x56a504('0x23c1')],'callback':_0x358452[_0x56a504('0x23ab')],'callbackuniqueid':_0x358452[_0x56a504('0xec2')],'countbusyretry':_0x358452[_0x56a504('0x27fb')],'countcongestionretry':_0x358452[_0x56a504('0x1fb2')],'countglobal':_0x358452[_0x56a504('0x209c')],'countnoanswerretry':_0x358452[_0x56a504('0x2031')],'followuptime':_0x358452[_0x56a504('0xbae')],'recallme':_0x358452[_0x56a504('0x9ee')]});});});var _0x304d41=_0x32d445()[_0x3aa7f1('0xf15')](_0x343e58[_0x3aa7f1('0x26d1')],{'id':_0x327aa5['id']});_0x304d41&&_0x32d445()[_0x3aa7f1('0x1d8')](_0x304d41,_0x32d445()[_0x3aa7f1('0xed5')](_0x327aa5[_0x3aa7f1('0x250e')](),_0x32d445()[_0x3aa7f1('0x1234')](_0x304d41))),_0x1ee3e1[_0x3aa7f1('0x425')]({'title':'Hopper\x20properly\x20saved!','msg':_0x343e58[_0x3aa7f1('0x11f0')][_0x3aa7f1('0x2623')]?_0x343e58['hopper'][_0x3aa7f1('0x2623')]+'\x20has\x20been\x20saved!':''}),_0x5de26c(_0x327aa5);})['catch'](function(_0x4a05d9){var _0x47841a=_0x336e7f;if(_0x4a05d9['data']&&_0x4a05d9[_0x47841a('0x11d0')][_0x47841a('0xcd2')]&&_0x4a05d9[_0x47841a('0x11d0')]['errors']['length']){_0x343e58[_0x47841a('0xcd2')]=_0x4a05d9['data'][_0x47841a('0xcd2')]||[{'message':_0x4a05d9[_0x47841a('0x94f')](),'type':_0x47841a('0x19ab')}];for(var _0x2a4abd=0x0;_0x2a4abd<_0x4a05d9[_0x47841a('0x11d0')]['errors'][_0x47841a('0x25ae')];_0x2a4abd++){_0x1ee3e1[_0x47841a('0x8c8')]({'title':_0x4a05d9['data']['errors'][_0x2a4abd]['type'],'msg':_0x4a05d9['data'][_0x47841a('0xcd2')][_0x2a4abd]['message']});}}else _0x1ee3e1[_0x47841a('0x8c8')]({'title':_0x4a05d9[_0x47841a('0x2833')]?_0x47841a('0x27f2')+_0x4a05d9[_0x47841a('0x2833')]+_0x47841a('0x1b7c')+_0x4a05d9[_0x47841a('0x1fd7')]:_0x47841a('0x19ab'),'msg':_0x4a05d9[_0x47841a('0x11d0')]?JSON[_0x47841a('0x3ad')](_0x4a05d9['data'][_0x47841a('0x27e8')]):_0x4a05d9[_0x47841a('0x94f')]()});});});}function _0x3e61ec(_0xdb4cfa){var _0x451a01=_0x2f301c;_0x343e58[_0x451a01('0xcd2')]=[];var _0x215de1=_0x4ea14e['confirm']()[_0x451a01('0x13e4')](_0x451a01('0x24d0'))['content'](_0x451a01('0x2004'))[_0x451a01('0x4d1')]('Delete\x20Hopper')['ok']('Delete')[_0x451a01('0x2c1')](_0x451a01('0x8a3'))[_0x451a01('0x1345')](_0xdb4cfa);_0x4ea14e['show'](_0x215de1)[_0x451a01('0xe19')](function(){var _0x26cad4=_0x451a01;_0x5041cb[_0x26cad4('0x2408')][_0x26cad4('0x229e')]({'id':_0x343e58[_0x26cad4('0x11f0')]['id']})['$promise']['then'](function(){var _0x440c88=_0x26cad4;_0x32d445()[_0x440c88('0xa8b')](_0x343e58[_0x440c88('0x26d1')],{'id':_0x343e58[_0x440c88('0x11f0')]['id']}),_0x1ee3e1[_0x440c88('0x425')]({'title':_0x440c88('0x41d'),'msg':(_0x343e58[_0x440c88('0x11f0')][_0x440c88('0x2623')]||_0x440c88('0x11f0'))+'\x20has\x20been\x20deleted!'}),_0x5de26c(_0x343e58[_0x440c88('0x11f0')]);})[_0x26cad4('0x223b')](function(_0xa3eec7){var _0x208464=_0x26cad4;if(_0xa3eec7['data']&&_0xa3eec7[_0x208464('0x11d0')]['errors']&&_0xa3eec7[_0x208464('0x11d0')]['errors'][_0x208464('0x25ae')]){_0x343e58[_0x208464('0xcd2')]=_0xa3eec7['data'][_0x208464('0xcd2')]||[{'message':_0xa3eec7[_0x208464('0x94f')](),'type':_0x208464('0x28a2')}];for(var _0x5845a5=0x0;_0x5845a5<_0xa3eec7['data']['errors'][_0x208464('0x25ae')];_0x5845a5++){_0x1ee3e1[_0x208464('0x8c8')]({'title':_0xa3eec7[_0x208464('0x11d0')][_0x208464('0xcd2')][_0x5845a5][_0x208464('0x62e')],'msg':_0xa3eec7[_0x208464('0x11d0')][_0x208464('0xcd2')][_0x5845a5]['message']});}}else _0x1ee3e1[_0x208464('0x8c8')]({'title':_0xa3eec7['status']?'API:'+_0xa3eec7[_0x208464('0x2833')]+_0x208464('0x1b7c')+_0xa3eec7[_0x208464('0x1fd7')]:_0x208464('0x28a2'),'msg':_0xa3eec7[_0x208464('0x11d0')]?JSON[_0x208464('0x3ad')](_0xa3eec7[_0x208464('0x11d0')][_0x208464('0x27e8')]):_0xa3eec7[_0x208464('0x27e8')]||_0xa3eec7[_0x208464('0x94f')]()});});},function(){});}function _0x241758(_0x48352b){return _0x48352b===null?undefined:new Date(_0x48352b);}function _0x5de26c(_0x5171dd){var _0x3017bf=_0x2f301c;_0x4ea14e[_0x3017bf('0x11ed')](_0x5171dd);}}const _0x4b9790=_0x4e159f;_0x3a5422[_0xb635d2('0xb0c')]=[_0xb635d2('0xffc'),_0xb635d2('0xf65')];function _0x3a5422(_0x3ffa1a,_0x2b44c3){var _0x1bb9d1=_0xb635d2,_0xc77de0=this;_0xc77de0[_0x1bb9d1('0x2658')]={},_0xc77de0[_0x1bb9d1('0x15f9')]=_0x4858d8;function _0x4858d8(_0x50c4a0){var _0x135da0=_0x1bb9d1;_0xc77de0[_0x135da0('0x2658')]=_0x50c4a0,_0x3ffa1a[_0x135da0('0x2408')][_0x135da0('0x22d5')]({'limit':0x0,'VoiceQueueId':_0x50c4a0['id']})[_0x135da0('0xe59')][_0x135da0('0xe19')](function(_0x1d1f09){var _0x1792fd=_0x135da0;return _0xc77de0[_0x1792fd('0x1e14')]=_0x1d1f09['count']||0x0,_0x3ffa1a[_0x1792fd('0x2408')][_0x1792fd('0x22d5')]({'limit':0x0,'VoiceQueueId':_0x50c4a0['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x1792fd('0xe59')];})['then'](function(_0x16bbb1){var _0x709dad=_0x135da0;return _0xc77de0[_0x709dad('0x2558')]=_0x16bbb1['count']||0x0,_0x3ffa1a[_0x709dad('0x1afa')][_0x709dad('0x22d5')]({'limit':0x0,'VoiceQueueId':_0x50c4a0['id']})[_0x709dad('0xe59')];})[_0x135da0('0xe19')](function(_0x38a130){var _0x300360=_0x135da0;_0xc77de0[_0x300360('0x1835')]=_0x38a130[_0x300360('0x148b')]||0x0;})[_0x135da0('0x223b')](function(_0x665f0d){var _0x54319b=_0x135da0;_0x2b44c3['error']({'title':_0x665f0d['status']?'API:'+_0x665f0d['status']+_0x54319b('0x1b7c')+_0x665f0d[_0x54319b('0x1fd7')]:_0x54319b('0x215c'),'msg':_0x665f0d[_0x54319b('0x11d0')]?JSON[_0x54319b('0x3ad')](_0x665f0d[_0x54319b('0x11d0')]):_0x665f0d[_0x54319b('0x94f')]()});});}}const _0x4d6fde=_0x3a5422;_0x38a931[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2658'),_0xb635d2('0x2493'),'$timeout',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x38a931(_0xd3f9ee,_0x1bcb20,_0x52de4e,_0x15d35b,_0x29b428,_0x397a66,_0x5ee08d,_0x4d6b7c,_0x27d2ed){var _0x3ce2a8=_0xb635d2,_0x2b116b=this;_0x2b116b[_0x3ce2a8('0x15a5')]=_0x4d6b7c[_0x3ce2a8('0x1ef8')](),_0x2b116b['queueCampaign']=_0x29b428,_0x2b116b['crudPermissions']=_0x27d2ed,_0x2b116b[_0x3ce2a8('0xbe1')]=_0x3ce2a8('0x25d5'),_0x2b116b[_0x3ce2a8('0x530')]=_0x3ce2a8('0x1feb'),_0x2b116b[_0x3ce2a8('0x4b4')]='addLists',_0x2b116b[_0x3ce2a8('0x20ec')]=_0x3ce2a8('0x5e1'),_0x2b116b[_0x3ce2a8('0xe4b')]=[],_0x2b116b[_0x3ce2a8('0x1884')]=[],_0x2b116b['selectedItems']=[],_0x2b116b[_0x3ce2a8('0x286c')]=[],_0x2b116b[_0x3ce2a8('0xf79')]=[],_0x2b116b['pendingChanges']=![],_0x2b116b['loading']=![],_0x2b116b[_0x3ce2a8('0xc00')]={'readOnly':!_0x2b116b['crudPermissions'][_0x3ce2a8('0x12bc')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x3ce2a8('0x2623'),'line1':_0x3ce2a8('0x2623'),'line2':'','line3':'','labelAll':_0x397a66[_0x3ce2a8('0x2159')](_0x3ce2a8('0x1bba')),'labelSelected':_0x397a66[_0x3ce2a8('0x2159')]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function _0x2827ad(){var _0xd63426=_0x3ce2a8,_0x27fe9e=_0x32d445()[_0xd63426('0x118')](_0x2b116b['startingSelectedItems'],_0x2b116b['selectedItems'],'id');_0x2b116b[_0xd63426('0x16e7')]=_0x32d445()[_0xd63426('0x14b4')](_0x27fe9e)?![]:!![];}},_0x2b116b[_0x3ce2a8('0x888')]=_0x283fb4,_0x2b116b[_0x3ce2a8('0x27f8')]=_0x13197a,_0x2b116b[_0x3ce2a8('0x2584')]=_0x3d6f73;function _0x283fb4(){var _0x23181d=_0x3ce2a8;return _0x4d6b7c[_0x23181d('0x179e')](_0x23181d('0xd14'))?_0x48d84c()['catch'](function(_0x367884){var _0x440269=_0x23181d;_0x52de4e['error']({'title':_0x367884[_0x440269('0x2833')]?_0x440269('0x27f2')+_0x367884[_0x440269('0x2833')]+_0x440269('0x1b7c')+_0x367884['statusText']:_0x440269('0x25ce'),'msg':_0x367884[_0x440269('0x2833')]?JSON[_0x440269('0x3ad')](_0x367884[_0x440269('0x11d0')]):_0x367884[_0x440269('0x94f')]()});}):_0x76b7a1()['then'](function(_0x3ef0e6){var _0x2afec4=_0x23181d;return _0x2b116b[_0x2afec4('0x1e59')]=_0x3ef0e6,_0x48d84c();})[_0x23181d('0x223b')](function(_0x15f4a7){var _0x258795=_0x23181d;_0x52de4e[_0x258795('0x8c8')]({'title':_0x15f4a7[_0x258795('0x2833')]?_0x258795('0x27f2')+_0x15f4a7[_0x258795('0x2833')]+_0x258795('0x1b7c')+_0x15f4a7[_0x258795('0x1fd7')]:_0x258795('0x25ce'),'msg':_0x15f4a7[_0x258795('0x2833')]?JSON[_0x258795('0x3ad')](_0x15f4a7[_0x258795('0x11d0')]):_0x15f4a7[_0x258795('0x94f')]()});});}function _0x76b7a1(){return _0x1bcb20(function(_0x5e5e20,_0x40aa0f){var _0x5d288d=a0_0x5325;_0x15d35b[_0x5d288d('0xb59')][_0x5d288d('0x22d5')]({'userProfileId':_0x2b116b['currentUser'][_0x5d288d('0x1d04')],'name':_0x5d288d('0x2697')})[_0x5d288d('0xe59')]['then'](function(_0x1c0608){var _0x51eea9=_0x5d288d,_0x81e9a2=_0x1c0608&&_0x1c0608[_0x51eea9('0x16a7')]?_0x1c0608[_0x51eea9('0x16a7')][0x0]:null;_0x5e5e20(_0x81e9a2);})[_0x5d288d('0x223b')](function(_0xa34f40){_0x40aa0f(_0xa34f40);});});}function _0x48d84c(){return _0x1bcb20(function(_0x54fbb0,_0x2a3f11){var _0x10c2e4=a0_0x5325;return _0x458eab()['then'](function(_0xb704a0){var _0x1a3090=a0_0x5325;return _0x2b116b[_0x1a3090('0xe4b')]=_0xb704a0['rows']?_0xb704a0[_0x1a3090('0x16a7')]:[],_0x4d6b7c[_0x1a3090('0x179e')]('admin')?_0xb704a0:_0x2b116b['section']?_0x2b116b[_0x1a3090('0x1e59')]['autoAssociation']?_0xb704a0:_0x590467():null;})[_0x10c2e4('0xe19')](function(_0x206b28){var _0x42f1e1=_0x10c2e4,_0x1299fc=_0x206b28&&_0x206b28[_0x42f1e1('0x16a7')]?_0x206b28[_0x42f1e1('0x16a7')]:[];return _0x2b116b[_0x42f1e1('0x1884')]=_0x32d445()[_0x42f1e1('0x65a')](_0x1299fc,function(_0x4d97ee){var _0x58f271=_0x42f1e1;return _0x32d445()[_0x58f271('0xf15')](_0x2b116b['items'],{'id':_0x4d6b7c[_0x58f271('0x179e')]('admin')||_0x2b116b['section']['autoAssociation']?_0x4d97ee['id']:_0x4d97ee['resourceId']});}),_0x2b116b[_0x42f1e1('0x286c')]=angular['copy'](_0x2b116b[_0x42f1e1('0x1884')]),_0x2b116b[_0x42f1e1('0xe4b')][_0x42f1e1('0x1d7e')](function(_0x2ff1b7){var _0xbe61aa=_0x42f1e1,_0x236d5b=_0x32d445()['find'](_0x2b116b['allowedItems'],{'id':_0x2ff1b7['id']});_0x2b116b['currentUser'][_0xbe61aa('0xcd9')]===_0xbe61aa('0xd14')?_0x2ff1b7[_0xbe61aa('0x1768')]=!![]:_0x2ff1b7['isValid']=typeof _0x236d5b!==_0xbe61aa('0x1143')?!![]:![];}),_0x266491();})[_0x10c2e4('0xe19')](function(_0x5f546b){var _0x141476=_0x10c2e4,_0x5d48e9=_0x5f546b&&_0x5f546b[_0x141476('0x16a7')]?_0x5f546b[_0x141476('0x16a7')]:[];_0x2b116b[_0x141476('0x2273')]=_0x32d445()[_0x141476('0x65a')](_0x5d48e9,function(_0x2761d8){var _0xfaee98=_0x141476;return _0x32d445()['find'](_0x2b116b[_0xfaee98('0xe4b')],{'id':_0x2761d8['id']});}),_0x2b116b[_0x141476('0xf79')]=angular['copy'](_0x2b116b[_0x141476('0x2273')]),_0x2b116b[_0x141476('0xc00')][_0x141476('0x2273')]=_0x2b116b[_0x141476('0x2273')],_0x2b116b[_0x141476('0xc00')]['items']=_0x32d445()[_0x141476('0x501')](_0x2b116b[_0x141476('0x1884')],_0x2b116b[_0x141476('0xc00')][_0x141476('0x2273')],'id'),_0x54fbb0();})[_0x10c2e4('0x223b')](function(_0x3cb651){_0x2a3f11(_0x3cb651);});});}function _0x590467(){return _0x1bcb20(function(_0x5d483d,_0x43d5a3){var _0xbf9cb5=a0_0x5325;return _0x15d35b[_0xbf9cb5('0xd49')][_0xbf9cb5('0x22d5')]({'sectionId':_0x2b116b[_0xbf9cb5('0x1e59')]['id'],'nolimit':!![]})[_0xbf9cb5('0xe59')]['then'](function(_0x249ae8){_0x5d483d(_0x249ae8);})[_0xbf9cb5('0x223b')](function(_0x4b7733){_0x43d5a3(_0x4b7733);});});}function _0x266491(){return _0x1bcb20(function(_0x276b5f,_0x974ef4){var _0x3facb2=a0_0x5325,_0x3fea55=_0x15d35b[_0x2b116b['apiRoute']];return _0x3fea55[_0x2b116b['getApi']]({'id':_0x2b116b[_0x3facb2('0x2658')]['id'],'fields':_0x3facb2('0x104'),'nolimit':!![]})['$promise'][_0x3facb2('0xe19')](function(_0x33d530){_0x276b5f(_0x33d530);})[_0x3facb2('0x223b')](function(_0x45ec76){_0x974ef4(_0x45ec76);});});}function _0x458eab(){return _0x1bcb20(function(_0x9d4f92,_0x9c769){var _0x511865=a0_0x5325;return _0x15d35b[_0x511865('0x1bbd')][_0x511865('0x22d5')]({'fields':_0x511865('0x104'),'nolimit':!![]})[_0x511865('0xe59')][_0x511865('0xe19')](function(_0x31490c){_0x9d4f92(_0x31490c);})[_0x511865('0x223b')](function(_0x40bef8){_0x9c769(_0x40bef8);});});}function _0x50e477(_0x1374af){return _0x1bcb20(function(_0x3521bb,_0x305d6f){var _0xf7654b=a0_0x5325;if(_0x32d445()[_0xf7654b('0x14b4')](_0x1374af))_0x3521bb();else{var _0x4379ad=_0x15d35b[_0x2b116b[_0xf7654b('0xbe1')]];_0x4379ad[_0x2b116b['addApi']]({'id':_0x2b116b[_0xf7654b('0x2658')]['id'],'ids':_0x32d445()[_0xf7654b('0x65a')](_0x1374af,'id')})['$promise']['then'](function(){_0x3521bb();})['catch'](function(_0x3a5d3b){_0x305d6f(_0x3a5d3b);});}});}function _0x48643a(_0x3476ff){return _0x1bcb20(function(_0x4e08d7,_0x22bd6d){var _0x50463a=a0_0x5325;if(_0x32d445()[_0x50463a('0x14b4')](_0x3476ff))_0x4e08d7();else{var _0x37e132=_0x15d35b[_0x2b116b[_0x50463a('0xbe1')]];_0x37e132[_0x2b116b[_0x50463a('0x20ec')]]({'id':_0x2b116b['queueCampaign']['id'],'ids':_0x32d445()[_0x50463a('0x65a')](_0x3476ff,'id')})[_0x50463a('0xe59')][_0x50463a('0xe19')](function(){_0x4e08d7();})['catch'](function(_0x83673){_0x22bd6d(_0x83673);});}});}function _0x13197a(){var _0x158c2f=_0x3ce2a8;_0x2b116b[_0x158c2f('0x234a')]=!![];var _0xce561f=_0x32d445()[_0x158c2f('0x501')](_0x2b116b[_0x158c2f('0xf79')],_0x2b116b['selectedItems'],'id'),_0x59c0ad=_0x32d445()['differenceBy'](_0x2b116b['selectedItems'],_0x2b116b[_0x158c2f('0xf79')],'id');return _0x48643a(_0xce561f)['then'](function(){return _0x50e477(_0x59c0ad);})[_0x158c2f('0xe19')](function(){var _0x308071=_0x158c2f;_0x2b116b[_0x308071('0x16e7')]=![],_0x2b116b['startingAllowedItems']=angular[_0x308071('0x89')](_0x2b116b['allowedItems']),_0x2b116b[_0x308071('0xf79')]=angular['copy'](_0x2b116b[_0x308071('0x2273')]),_0x52de4e['success']({'title':_0x308071('0x1dca'),'msg':'Lists\x20association\x20has\x20been\x20updated!'});})[_0x158c2f('0x223b')](function(_0x521924){var _0x25007e=_0x158c2f;_0x52de4e[_0x25007e('0x8c8')]({'title':_0x521924[_0x25007e('0x2833')]?_0x25007e('0x27f2')+_0x521924['status']+_0x25007e('0x1b7c')+_0x521924[_0x25007e('0x1fd7')]:_0x25007e('0x2168'),'msg':_0x521924['status']?JSON[_0x25007e('0x3ad')](_0x521924[_0x25007e('0x11d0')]):_0x521924[_0x25007e('0x94f')]()});})[_0x158c2f('0x23')](function(){var _0x44d239=_0x158c2f;_0x2b116b[_0x44d239('0x234a')]=![];});}function _0x3d6f73(){var _0x1505cf=_0x3ce2a8;_0xd3f9ee[_0x1505cf('0x11ed')]();}}const _0x4491ba=_0x38a931;_0x323e89[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2658'),'listsCampaign','Sequence','$q'];function _0x323e89(_0x5a3b47,_0x4cbf6e,_0xb3ab96,_0xcc6a9a,_0x57e93a,_0x294ab2,_0x12fdf4,_0x13b860){var _0x442a19=_0xb635d2,_0x2386b0=this;_0x2386b0[_0x442a19('0x21e4')]=[],_0x2386b0[_0x442a19('0xe4b')]=_0x294ab2?_0x294ab2:[],_0x2386b0[_0x442a19('0x234a')]=![],_0x2386b0[_0x442a19('0x2584')]=_0x5a3aef,_0x2386b0[_0x442a19('0x1d61')]=_0x19a452,_0x2386b0[_0x442a19('0x2416')]=_0x40315b,_0x2386b0[_0x442a19('0x2250')]=_0x8049a,_0x2386b0['isChecked']=_0x3eef40,_0x2386b0[_0x442a19('0x2820')]=_0x42ae4d,_0x2386b0[_0x442a19('0x626')]=_0xa9beb7;function _0x40315b(_0x37c936,_0x66105e){var _0x517899=_0x442a19,_0x59b67b=_0x66105e[_0x517899('0x281c')](_0x37c936);_0x59b67b>-0x1?_0x66105e[_0x517899('0x1c8e')](_0x59b67b,0x1):_0x66105e[_0x517899('0xb76')](_0x37c936);}function _0x19a452(_0x1ffa18,_0x4f02c6){var _0x24dd1b=_0x442a19;return _0x4f02c6[_0x24dd1b('0x281c')](_0x1ffa18)>-0x1;}function _0x8049a(){var _0x20681d=_0x442a19;return _0x2386b0['selected']['length']!==0x0&&_0x2386b0[_0x20681d('0x21e4')][_0x20681d('0x25ae')]!==_0x2386b0['items'][_0x20681d('0x25ae')];}function _0x3eef40(){var _0x200b19=_0x442a19;return _0x2386b0[_0x200b19('0x21e4')][_0x200b19('0x25ae')]===_0x2386b0[_0x200b19('0xe4b')][_0x200b19('0x25ae')];}function _0x42ae4d(){var _0x4826d8=_0x442a19;if(_0x2386b0[_0x4826d8('0x21e4')][_0x4826d8('0x25ae')]===_0x2386b0[_0x4826d8('0xe4b')][_0x4826d8('0x25ae')])_0x2386b0[_0x4826d8('0x21e4')]=[];else(_0x2386b0[_0x4826d8('0x21e4')]['length']===0x0||_0x2386b0[_0x4826d8('0x21e4')][_0x4826d8('0x25ae')]>0x0)&&(_0x2386b0[_0x4826d8('0x21e4')]=_0x2386b0[_0x4826d8('0xe4b')][_0x4826d8('0xa19')](0x0));}function _0x5a3aef(){var _0x596ea9=_0x442a19;_0x4cbf6e[_0x596ea9('0x11ed')]();}function _0xa9beb7(){var _0x4cbfd7=_0x442a19;_0x2386b0[_0x4cbfd7('0x234a')]=!![];var _0x1d76ad=_0x487b67();_0x1d76ad[_0x4cbfd7('0x23')](function(){var _0x1f3956=_0x4cbfd7;_0x2386b0[_0x1f3956('0x234a')]=![],_0x5a3aef();});}function _0x487b67(){return _0x13b860(function(_0x37a809){var _0x18b317=a0_0x5325;for(var _0x427a28=0x0;_0x427a28<_0x2386b0['selected'][_0x18b317('0x25ae')];_0x427a28+=0x1){_0x8e595d(_0x57e93a['id'],_0x2386b0[_0x18b317('0x21e4')][_0x427a28]);}_0x31f70c(_0x37a809);});}function _0x8e595d(_0x3ef73d,_0x1a7ed5){var _0x189f9b=_0x442a19,_0x3f966e=_0x1a7ed5['id'];_0x12fdf4[_0x189f9b('0x224')](function(){var _0x38975b=_0x189f9b;return _0xcc6a9a['voiceQueue'][_0x38975b('0x5e1')]({'id':_0x3ef73d,'ids':_0x3f966e})['$promise']['then'](function(){var _0x48fdc4=_0x38975b;return _0xcc6a9a['voiceQueue'][_0x48fdc4('0x73b')]({'id':_0x3ef73d,'ids':_0x3f966e,'dialCheckDuplicateType':_0x48fdc4('0x1045')})[_0x48fdc4('0xe59')];})['then'](function(){var _0xf8f31=_0x38975b;_0xb3ab96[_0xf8f31('0x425')]({'title':_0xf8f31('0x2546'),'msg':_0xf8f31('0x1dfc')+_0x1a7ed5['name']+_0xf8f31('0x38c')});})[_0x38975b('0x223b')](function(_0x5d817b){var _0x31c0cb=_0x38975b;_0xb3ab96[_0x31c0cb('0x8c8')]({'title':_0x5d817b[_0x31c0cb('0x2833')]?_0x31c0cb('0x27f2')+_0x5d817b[_0x31c0cb('0x2833')]+_0x31c0cb('0x1b7c')+_0x5d817b[_0x31c0cb('0x1fd7')]:'SYSTEM:queueCampaign.RESETLIST','msg':_0x5d817b[_0x31c0cb('0x2833')]?JSON['stringify'](_0x5d817b[_0x31c0cb('0x11d0')]):_0x5d817b[_0x31c0cb('0x94f')]()});});});}function _0x31f70c(_0x1cf320){var _0x3af887=_0x442a19;_0x12fdf4[_0x3af887('0x224')](function(){return _0x1cf320();});}}const _0x1e35d9=_0x323e89;_0x269516[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2658'),'$translate',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x269516(_0x3d952a,_0x411ad5,_0x31635c,_0x403a25,_0x1fb1b0,_0xc155f0,_0x4f7f7e,_0x185a09){var _0x370408=_0xb635d2,_0x94bed2=this;_0x94bed2[_0x370408('0x15a5')]=_0x4f7f7e['getCurrentUser'](),_0x94bed2[_0x370408('0x2658')]=_0x1fb1b0,_0x94bed2[_0x370408('0xb3d')]=_0x185a09,_0x94bed2[_0x370408('0x21e3')]=0x0,_0x94bed2[_0x370408('0xe4b')]=[],_0x94bed2['allowedItems']=[],_0x94bed2[_0x370408('0x2273')]=[],_0x94bed2[_0x370408('0x286c')]=[],_0x94bed2[_0x370408('0xf79')]=[],_0x94bed2['pendingChanges']=![],_0x94bed2[_0x370408('0xc00')]={'readOnly':!_0x94bed2[_0x370408('0xb3d')][_0x370408('0x12bc')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x370408('0x2623'),'line1':_0x370408('0x2623'),'line2':'','line3':'','labelAll':_0xc155f0[_0x370408('0x2159')](_0x370408('0x109f')),'labelSelected':_0xc155f0[_0x370408('0x2159')](_0x370408('0x35a')),'transferCallback':function _0xc9243d(_0x43670b,_0x5c1cc0){var _0x23a511=_0x370408;_0x5c1cc0?_0x43670b[_0x23a511('0x1d7e')](function(_0x18c7ed){_0x18c7ed['penalty']=undefined;}):_0x43670b[_0x23a511('0x1d7e')](function(_0x2dc52a){var _0x24d22a=_0x23a511;_0x2dc52a[_0x24d22a('0x21e3')]=_0x24d22a('0x815')+_0x94bed2[_0x24d22a('0x21e3')];});var _0x287c69=_0x32d445()[_0x23a511('0x118')](_0x94bed2[_0x23a511('0xf79')],_0x94bed2[_0x23a511('0x2273')],'id');_0x94bed2['pendingChanges']=_0x32d445()[_0x23a511('0x14b4')](_0x287c69)?![]:!![];}},_0x94bed2['onInit']=_0x1ecda8,_0x94bed2[_0x370408('0xc30')]=_0x14daf7,_0x94bed2[_0x370408('0x2584')]=_0x121014;function _0x1ecda8(){var _0x201394=_0x370408;return _0x4f7f7e[_0x201394('0x179e')](_0x201394('0xd14'))?_0xbccc43()[_0x201394('0x223b')](function(_0x8a040e){var _0x4c3d27=_0x201394;_0x31635c[_0x4c3d27('0x8c8')]({'title':_0x8a040e[_0x4c3d27('0x2833')]?_0x4c3d27('0x27f2')+_0x8a040e[_0x4c3d27('0x2833')]+_0x4c3d27('0x1b7c')+_0x8a040e[_0x4c3d27('0x1fd7')]:_0x4c3d27('0x4a4'),'msg':_0x8a040e[_0x4c3d27('0x2833')]?JSON[_0x4c3d27('0x3ad')](_0x8a040e[_0x4c3d27('0x11d0')]):_0x8a040e[_0x4c3d27('0x94f')]()});}):_0x386c00()[_0x201394('0xe19')](function(_0x1418f0){var _0x627325=_0x201394;return _0x94bed2[_0x627325('0x1e59')]=_0x1418f0,_0xbccc43();})[_0x201394('0x223b')](function(_0x284d29){var _0x47192e=_0x201394;_0x31635c['error']({'title':_0x284d29[_0x47192e('0x2833')]?_0x47192e('0x27f2')+_0x284d29['status']+'\x20-\x20'+_0x284d29['statusText']:'SYSTEM:GET_TEAMS','msg':_0x284d29[_0x47192e('0x2833')]?JSON['stringify'](_0x284d29[_0x47192e('0x11d0')]):_0x284d29['toString']()});});}function _0x386c00(){return _0x411ad5(function(_0xa36a9e,_0xfaa1aa){var _0x40bcd1=a0_0x5325;_0x403a25[_0x40bcd1('0xb59')][_0x40bcd1('0x22d5')]({'userProfileId':_0x94bed2[_0x40bcd1('0x15a5')][_0x40bcd1('0x1d04')],'name':_0x40bcd1('0x1d54')})[_0x40bcd1('0xe59')]['then'](function(_0x4f3a9e){var _0x253eed=_0x40bcd1,_0x109e7e=_0x4f3a9e&&_0x4f3a9e[_0x253eed('0x16a7')]?_0x4f3a9e[_0x253eed('0x16a7')][0x0]:null;_0xa36a9e(_0x109e7e);})['catch'](function(_0x193d96){_0xfaa1aa(_0x193d96);});});}function _0xbccc43(){return _0x411ad5(function(_0x31d9a2,_0x100a19){var _0x311fe1=a0_0x5325;return _0x1edf4b()[_0x311fe1('0xe19')](function(_0xb1773c){var _0x306999=_0x311fe1;return _0x94bed2[_0x306999('0xe4b')]=_0xb1773c['rows']?_0xb1773c['rows']:[],_0x4f7f7e[_0x306999('0x179e')](_0x306999('0xd14'))?_0xb1773c:_0x94bed2[_0x306999('0x1e59')]?_0x94bed2[_0x306999('0x1e59')]['autoAssociation']?_0xb1773c:_0xafaff9():null;})['then'](function(_0x39369d){var _0xedfc54=_0x311fe1,_0x41747e=_0x39369d&&_0x39369d[_0xedfc54('0x16a7')]?_0x39369d[_0xedfc54('0x16a7')]:[];return _0x94bed2['allowedItems']=_0x32d445()[_0xedfc54('0x65a')](_0x41747e,function(_0x31e3ce){var _0x45cd9c=_0xedfc54;return _0x32d445()['find'](_0x94bed2[_0x45cd9c('0xe4b')],{'id':_0x4f7f7e[_0x45cd9c('0x179e')](_0x45cd9c('0xd14'))||_0x94bed2[_0x45cd9c('0x1e59')][_0x45cd9c('0x11fd')]?_0x31e3ce['id']:_0x31e3ce[_0x45cd9c('0x1104')]});}),_0x94bed2[_0xedfc54('0xe4b')][_0xedfc54('0x1d7e')](function(_0x30ab7b){var _0x418da3=_0xedfc54,_0x4d9b7c=_0x32d445()[_0x418da3('0xf15')](_0x94bed2[_0x418da3('0x1884')],{'id':_0x30ab7b['id']});_0x4f7f7e[_0x418da3('0x179e')](_0x418da3('0xd14'))?_0x30ab7b[_0x418da3('0x1768')]=!![]:_0x30ab7b['isValid']=typeof _0x4d9b7c!==_0x418da3('0x1143')?!![]:![];}),_0x2c5e5b();})[_0x311fe1('0xe19')](function(_0x45bd0c){var _0x4f6d5b=_0x311fe1,_0x438c30=_0x45bd0c&&_0x45bd0c[_0x4f6d5b('0x16a7')]?_0x45bd0c[_0x4f6d5b('0x16a7')]:[];_0x94bed2[_0x4f6d5b('0x2273')]=_0x32d445()[_0x4f6d5b('0x65a')](_0x438c30,function(_0x32f6e7){var _0x25714f=_0x4f6d5b;return _0x32d445()[_0x25714f('0xf15')](_0x94bed2[_0x25714f('0xe4b')],{'id':_0x32f6e7['id']});}),_0x94bed2[_0x4f6d5b('0xf79')]=angular[_0x4f6d5b('0x89')](_0x94bed2[_0x4f6d5b('0x2273')]),_0x94bed2[_0x4f6d5b('0xc00')]['selectedItems']=_0x94bed2[_0x4f6d5b('0x2273')],_0x94bed2[_0x4f6d5b('0xc00')]['items']=_0x32d445()[_0x4f6d5b('0x501')](_0x94bed2[_0x4f6d5b('0x1884')],_0x94bed2['dualMultiselectOptions'][_0x4f6d5b('0x2273')],'id'),_0x31d9a2();})[_0x311fe1('0x223b')](function(_0x37aa2c){_0x100a19(_0x37aa2c);});});}function _0xafaff9(){return _0x411ad5(function(_0x10d63c,_0x3d94e0){var _0x1412c7=a0_0x5325;return _0x403a25[_0x1412c7('0xd49')][_0x1412c7('0x22d5')]({'sectionId':_0x94bed2[_0x1412c7('0x1e59')]['id'],'nolimit':!![]})['$promise'][_0x1412c7('0xe19')](function(_0x393249){_0x10d63c(_0x393249);})['catch'](function(_0x257959){_0x3d94e0(_0x257959);});});}function _0x2c5e5b(){return _0x411ad5(function(_0x135cbf,_0x22cccd){var _0x40c769=a0_0x5325;return _0x403a25[_0x40c769('0x25d5')][_0x40c769('0x106a')]({'id':_0x94bed2[_0x40c769('0x2658')]['id'],'fields':_0x40c769('0x104'),'nolimit':!![]})[_0x40c769('0xe59')][_0x40c769('0xe19')](function(_0x3e9303){_0x135cbf(_0x3e9303);})['catch'](function(_0x32438b){_0x22cccd(_0x32438b);});});}function _0x1edf4b(){return _0x411ad5(function(_0x28a942,_0x2a4490){var _0x1be36f=a0_0x5325;return _0x403a25[_0x1be36f('0x25af')]['get']({'fields':'id,name','nolimit':!![]})['$promise']['then'](function(_0x4e7241){_0x28a942(_0x4e7241);})[_0x1be36f('0x223b')](function(_0x332e03){_0x2a4490(_0x332e03);});});}function _0x1ca313(_0x2aa4b0){return _0x411ad5(function(_0x43736b,_0x4747ae){var _0x60e5a1=a0_0x5325;if(_0x32d445()['isEmpty'](_0x2aa4b0))_0x43736b();else{var _0x1e2f5b=_0x32d445()[_0x60e5a1('0x65a')](_0x2aa4b0,function(_0x15b307){var _0x4cce01=_0x60e5a1;return{'id':_0x15b307['id'],'penalty':_0x32d445()[_0x4cce01('0x26b4')](_0x15b307[_0x4cce01('0x21e3')],'penalty\x20')};});return _0x403a25[_0x60e5a1('0x25d5')][_0x60e5a1('0x37f')]({'id':_0x94bed2['queueCampaign']['id'],'teams':_0x1e2f5b})[_0x60e5a1('0xe59')]['then'](function(){_0x43736b();})[_0x60e5a1('0x223b')](function(_0x1ba839){_0x4747ae(_0x1ba839);});}});}function _0x457c4e(_0x1701e0){return _0x411ad5(function(_0xf4c0e6,_0x53096f){var _0x327286=a0_0x5325;_0x32d445()[_0x327286('0x14b4')](_0x1701e0)?_0xf4c0e6():_0x403a25[_0x327286('0x25d5')]['removeTeams']({'id':_0x94bed2[_0x327286('0x2658')]['id'],'ids':_0x32d445()['map'](_0x1701e0,'id')})[_0x327286('0xe59')]['then'](function(){_0xf4c0e6();})[_0x327286('0x223b')](function(_0x130f3c){_0x53096f(_0x130f3c);});});}function _0x14daf7(){var _0x2ec322=_0x370408,_0x5b94e8=_0x32d445()['differenceBy'](_0x94bed2[_0x2ec322('0xf79')],_0x94bed2[_0x2ec322('0x2273')],'id'),_0xb1cf3=_0x32d445()['differenceBy'](_0x94bed2[_0x2ec322('0x2273')],_0x94bed2[_0x2ec322('0xf79')],'id');return _0x457c4e(_0x5b94e8)[_0x2ec322('0xe19')](function(){return _0x1ca313(_0xb1cf3);})['then'](function(){var _0x49047d=_0x2ec322;_0x94bed2['pendingChanges']=![],_0x94bed2[_0x49047d('0x286c')]=angular[_0x49047d('0x89')](_0x94bed2[_0x49047d('0x1884')]),_0x94bed2[_0x49047d('0xf79')]=angular[_0x49047d('0x89')](_0x94bed2[_0x49047d('0x2273')]),_0x31635c[_0x49047d('0x425')]({'title':_0x49047d('0x1dca'),'msg':_0x49047d('0x22e1')});})[_0x2ec322('0x223b')](function(_0x5acb08){var _0x556ab7=_0x2ec322;_0x31635c['error']({'title':_0x5acb08[_0x556ab7('0x2833')]?_0x556ab7('0x27f2')+_0x5acb08[_0x556ab7('0x2833')]+'\x20-\x20'+_0x5acb08[_0x556ab7('0x1fd7')]:_0x556ab7('0x2168'),'msg':_0x5acb08['status']?JSON['stringify'](_0x5acb08[_0x556ab7('0x11d0')]):_0x5acb08['toString']()});});}function _0x121014(){var _0x748476=_0x370408;_0x3d952a[_0x748476('0x11ed')]();}}const _0x4ce397=_0x269516,_0x56c922=_0x59426a['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html/clone-[chunkhash].html',_0x56d358=_0x59426a['p']+_0xb635d2('0x181f'),_0x516314=_0x59426a['p']+_0xb635d2('0x22ea'),_0x3e92de=_0x59426a['p']+_0xb635d2('0x1523'),_0x2048e7=_0x59426a['p']+_0xb635d2('0x14cb');_0x32b38d[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$translate',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730'),'queueCampaign',_0xb635d2('0xb59')];function _0x32b38d(_0x3bc310,_0x117d2a,_0x3261a8,_0x46c929,_0x3ff246,_0x7114b8,_0x416e52,_0x1e852f,_0x3ff814,_0x2b08ec,_0xfa40e7,_0x28e9fb){var _0x5a027e=_0xb635d2,_0xc2df19=this;_0xc2df19[_0x5a027e('0x15a5')]=_0x2b08ec[_0x5a027e('0x1ef8')](),_0xc2df19[_0x5a027e('0x5c1')]=_0x7114b8,_0xc2df19[_0x5a027e('0x22f1')]=_0x416e52,_0xc2df19['passwordPattern']=_0xc2df19['setting'][_0x5a027e('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xc2df19[_0x5a027e('0x2170')]=_0x117d2a[_0x5a027e('0xec0')]()+_0x5a027e('0x21a8')+_0x117d2a[_0x5a027e('0x3b7')](),_0xc2df19[_0x5a027e('0x2658')]=_0xfa40e7||_0x3bc310[_0x5a027e('0x2ef')]['queueCampaign']||{},_0xc2df19[_0x5a027e('0xb59')]=_0x28e9fb&&_0x28e9fb[_0x5a027e('0x148b')]==0x1?_0x28e9fb['rows'][0x0]:null,_0xc2df19[_0x5a027e('0xb3d')]=_0x2b08ec[_0x5a027e('0xd31')](_0xc2df19[_0x5a027e('0xb59')]?_0xc2df19[_0x5a027e('0xb59')][_0x5a027e('0xb3d')]:null),_0xc2df19[_0x5a027e('0x1ccb')]={},_0xc2df19[_0x5a027e('0xc7b')]=_0x3bc310[_0x5a027e('0x2ef')]['tab']||0x0,_0xc2df19[_0x5a027e('0x26b7')]=_0x949deb,_0xc2df19['listadddialog']=_0x30aab4,_0xc2df19[_0x5a027e('0x1350')]=_0x2ee7b9,_0xc2df19[_0x5a027e('0x23f1')]=_0x5e2775,_0xc2df19[_0x5a027e('0x1407')]=_0x37a8e6,_0xc2df19[_0x5a027e('0x1b7e')]=_0x5d92ec,_0xc2df19['gotogoto']=_0x2cacaf,_0xc2df19[_0x5a027e('0xbdc')]=_0x3ff814['info'],_0xc2df19[_0x5a027e('0x2790')]=_0x492dd2,_0xc2df19[_0x5a027e('0x1267')]=_0x5b47e7,_0x2b08ec['hasRole'](_0x5a027e('0xd14'))?_0x1e852f[_0x5a027e('0x1f4a')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x104'),'nolimit':_0x5a027e('0x2206')})[_0x5a027e('0xe59')][_0x5a027e('0xe19')](function(_0xdc000a){var _0x437f2a=_0x5a027e;_0xc2df19[_0x437f2a('0x19a9')]=_0xdc000a[_0x437f2a('0x16a7')]||[];})['catch'](function(_0x1134d5){var _0x5660c1=_0x5a027e;_0x3ff814[_0x5660c1('0x8c8')]({'title':_0x1134d5[_0x5660c1('0x2833')]?_0x5660c1('0x27f2')+_0x1134d5[_0x5660c1('0x2833')]+_0x5660c1('0x1b7c')+_0x1134d5[_0x5660c1('0x1fd7')]:_0x5660c1('0x17ec'),'msg':_0x1134d5['data']?JSON[_0x5660c1('0x3ad')](_0x1134d5[_0x5660c1('0x11d0')]):_0x1134d5[_0x5660c1('0x94f')]()});}):_0x1e852f[_0x5a027e('0x1f4a')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x104'),'nolimit':'true'})[_0x5a027e('0xe59')]['then'](function(_0x40977e){var _0x2d03d6=_0x5a027e;_0xc2df19[_0x2d03d6('0x19a9')]=_0x40977e[_0x2d03d6('0x16a7')]||[];})[_0x5a027e('0xe19')](function(){var _0x391cba=_0x5a027e;return _0x1e852f[_0x391cba('0xb59')][_0x391cba('0x22d5')]({'userProfileId':_0xc2df19[_0x391cba('0x15a5')][_0x391cba('0x1d04')],'sectionId':0x197})[_0x391cba('0xe59')];})[_0x5a027e('0xe19')](function(_0x15ac3c){var _0x40c847=_0x5a027e,_0x4b842e=_0x15ac3c&&_0x15ac3c[_0x40c847('0x16a7')]?_0x15ac3c['rows'][0x0]:null;if(!_0x4b842e)return _0x1e852f[_0x40c847('0x1f4a')]['get']({'fields':'id,name','nolimit':'true','defaultEntry':0x1})[_0x40c847('0xe59')][_0x40c847('0xe19')](function(_0x105cf5){var _0x1c2428=_0x40c847;_0xc2df19[_0x1c2428('0x19a9')]=_0x105cf5[_0x1c2428('0x16a7')]||[];});else{if(!_0x4b842e[_0x40c847('0x11fd')])return _0x1e852f[_0x40c847('0xd49')][_0x40c847('0x22d5')]({'sectionId':_0x4b842e['id']})[_0x40c847('0xe59')][_0x40c847('0xe19')](function(_0xd54c35){var _0x49011c=_0x40c847,_0x125674=_0x32d445()[_0x49011c('0x65a')](_0xd54c35[_0x49011c('0x16a7')],function(_0x21d937){var _0x52b562=_0x49011c;return _0x32d445()[_0x52b562('0xf15')](_0xc2df19['musiconholds'],{'id':_0x21d937[_0x52b562('0x1104')]});}),_0x2c1134=null;_0xc2df19['queueCampaign']&&(_0x2c1134=_0x32d445()[_0x49011c('0xf15')](_0xc2df19['musiconholds'],{'name':_0xc2df19[_0x49011c('0x2658')][_0x49011c('0x2fe')]}));if(_0x2c1134&&!_0x32d445()[_0x49011c('0x201a')](_0x125674,['id',_0x2c1134['id']])){var _0x145e81=_0x32d445()[_0x49011c('0xf15')](_0xc2df19['musiconholds'],{'id':_0x2c1134['id']});_0x145e81[_0x49011c('0x1e9d')]=![],_0x125674[_0x49011c('0xb76')](_0x145e81);}_0xc2df19[_0x49011c('0x19a9')]=_0x125674;});}})['catch'](function(_0x4b5abe){var _0x1fb469=_0x5a027e;_0x3ff814[_0x1fb469('0x8c8')]({'title':_0x4b5abe['status']?_0x1fb469('0x27f2')+_0x4b5abe[_0x1fb469('0x2833')]+_0x1fb469('0x1b7c')+_0x4b5abe[_0x1fb469('0x1fd7')]:_0x1fb469('0x728'),'msg':_0x4b5abe['data']?JSON[_0x1fb469('0x3ad')](_0x4b5abe[_0x1fb469('0x11d0')]):_0x4b5abe['toString']()});}),_0x2b08ec[_0x5a027e('0x179e')](_0x5a027e('0xd14'))?_0x1e852f[_0x5a027e('0x1397')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x104'),'sort':'name'})[_0x5a027e('0xe59')][_0x5a027e('0xe19')](function(_0x16683e){var _0x1b93ba=_0x5a027e;_0xc2df19[_0x1b93ba('0x155e')]=_0x16683e[_0x1b93ba('0x16a7')]||[];})[_0x5a027e('0x223b')](function(_0x9cb97b){var _0x49d016=_0x5a027e;_0x3ff814[_0x49d016('0x8c8')]({'title':_0x9cb97b[_0x49d016('0x2833')]?'API:'+_0x9cb97b[_0x49d016('0x2833')]+_0x49d016('0x1b7c')+_0x9cb97b[_0x49d016('0x1fd7')]:'SYSTEM:GET_TRUNKS','msg':_0x9cb97b[_0x49d016('0x11d0')]?JSON['stringify'](_0x9cb97b[_0x49d016('0x11d0')]):_0x9cb97b['toString']()});}):_0x1e852f[_0x5a027e('0x1397')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x104'),'sort':_0x5a027e('0x2623')})[_0x5a027e('0xe59')][_0x5a027e('0xe19')](function(_0x29e9b3){var _0x5c1f03=_0x5a027e;_0xc2df19['trunks']=_0x29e9b3[_0x5c1f03('0x16a7')]||[];})['then'](function(){var _0x1fb52b=_0x5a027e;return _0x1e852f[_0x1fb52b('0xb59')][_0x1fb52b('0x22d5')]({'userProfileId':_0xc2df19[_0x1fb52b('0x15a5')][_0x1fb52b('0x1d04')],'sectionId':0x3f3})[_0x1fb52b('0xe59')];})['then'](function(_0x24dc8f){var _0x3ca89e=_0x5a027e,_0x22d27a=_0x24dc8f&&_0x24dc8f['rows']?_0x24dc8f[_0x3ca89e('0x16a7')][0x0]:null;if(!_0x22d27a){var _0x577e38=[],_0x1e5798=null;_0xc2df19[_0x3ca89e('0x2658')]&&(_0x1e5798=_0x32d445()[_0x3ca89e('0xf15')](_0xc2df19[_0x3ca89e('0x155e')],{'id':Number(_0xc2df19[_0x3ca89e('0x2658')][_0x3ca89e('0x186d')])}));for(var _0x7002ea=0x0;_0x7002ea<_0xc2df19[_0x3ca89e('0x155e')]['length'];_0x7002ea++){_0x1e5798&&_0xc2df19['trunks'][_0x7002ea]['id']===_0x1e5798['id']&&(_0xc2df19[_0x3ca89e('0x155e')][_0x7002ea][_0x3ca89e('0x1e9d')]=![],_0x577e38[_0x3ca89e('0xb76')](_0xc2df19[_0x3ca89e('0x155e')][_0x7002ea]));}_0xc2df19[_0x3ca89e('0x155e')]=_0x577e38;}else{if(!_0x22d27a[_0x3ca89e('0x11fd')])return _0x1e852f[_0x3ca89e('0xd49')][_0x3ca89e('0x22d5')]({'sectionId':_0x22d27a['id']})['$promise']['then'](function(_0xc38409){var _0x14f60a=_0x3ca89e,_0x5f1e71=_0x32d445()['map'](_0xc38409['rows'],function(_0x2806d7){var _0x2ff6e0=a0_0x5325;return _0x32d445()[_0x2ff6e0('0xf15')](_0xc2df19['trunks'],{'id':_0x2806d7[_0x2ff6e0('0x1104')]});}),_0xd70f8d=null;_0xc2df19['queueCampaign']&&(_0xd70f8d=_0x32d445()[_0x14f60a('0xf15')](_0xc2df19[_0x14f60a('0x155e')],{'id':Number(_0xc2df19['queueCampaign'][_0x14f60a('0x186d')])}));if(_0xd70f8d&&!_0x32d445()[_0x14f60a('0x201a')](_0x5f1e71,['id',_0xd70f8d['id']])){var _0x2a92d8=_0x32d445()['find'](_0xc2df19[_0x14f60a('0x155e')],{'id':_0xd70f8d['id']});_0x2a92d8['canSelect']=![],_0x5f1e71[_0x14f60a('0xb76')](_0x2a92d8);}_0xc2df19[_0x14f60a('0x155e')]=_0x5f1e71;});}})[_0x5a027e('0x223b')](function(_0x294957){var _0x4516a8=_0x5a027e;_0x3ff814[_0x4516a8('0x8c8')]({'title':_0x294957['status']?'API:'+_0x294957[_0x4516a8('0x2833')]+'\x20-\x20'+_0x294957['statusText']:_0x4516a8('0x14b5'),'msg':_0x294957[_0x4516a8('0x11d0')]?JSON[_0x4516a8('0x3ad')](_0x294957[_0x4516a8('0x11d0')]):_0x294957[_0x4516a8('0x94f')]()});}),_0x2b08ec[_0x5a027e('0x179e')](_0x5a027e('0xd14'))?_0x1e852f[_0x5a027e('0x20c9')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x104'),'sort':'name'})['$promise'][_0x5a027e('0xe19')](function(_0x37d53f){_0xc2df19['projects']=_0x37d53f['rows']||[];})[_0x5a027e('0x223b')](function(_0x7ebc6f){var _0x4086c2=_0x5a027e;_0x3ff814[_0x4086c2('0x8c8')]({'title':_0x7ebc6f[_0x4086c2('0x2833')]?_0x4086c2('0x27f2')+_0x7ebc6f[_0x4086c2('0x2833')]+_0x4086c2('0x1b7c')+_0x7ebc6f[_0x4086c2('0x1fd7')]:_0x4086c2('0x1cde'),'msg':_0x7ebc6f[_0x4086c2('0x11d0')]?JSON['stringify'](_0x7ebc6f[_0x4086c2('0x11d0')]):_0x7ebc6f[_0x4086c2('0x94f')]()});}):_0x1e852f[_0x5a027e('0x20c9')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x104'),'sort':'name'})[_0x5a027e('0xe59')]['then'](function(_0x265c74){var _0x5e0e5a=_0x5a027e;_0xc2df19[_0x5e0e5a('0x1d39')]=_0x265c74[_0x5e0e5a('0x16a7')]||[];})['then'](function(){var _0x2797c0=_0x5a027e;return _0x1e852f[_0x2797c0('0xb59')][_0x2797c0('0x22d5')]({'userProfileId':_0xc2df19[_0x2797c0('0x15a5')]['userProfileId'],'sectionId':0x44f})[_0x2797c0('0xe59')];})[_0x5a027e('0xe19')](function(_0x401cc5){var _0x3b5405=_0x5a027e,_0x4ad8cd=_0x401cc5&&_0x401cc5[_0x3b5405('0x16a7')]?_0x401cc5['rows'][0x0]:null;if(!_0x4ad8cd){var _0x5387ce=[],_0x59eb9d=null;_0xc2df19[_0x3b5405('0x2658')]&&(_0x59eb9d=_0x32d445()['find'](_0xc2df19[_0x3b5405('0x1d39')],{'name':_0xc2df19[_0x3b5405('0x2658')][_0x3b5405('0x1f82')]}));for(var _0x5ba655=0x0;_0x5ba655<_0xc2df19['projects']['length'];_0x5ba655++){_0x59eb9d&&_0xc2df19[_0x3b5405('0x1d39')][_0x5ba655]['id']===_0x59eb9d['id']&&(_0xc2df19[_0x3b5405('0x1d39')][_0x5ba655][_0x3b5405('0x1e9d')]=![],_0x5387ce[_0x3b5405('0xb76')](_0xc2df19[_0x3b5405('0x1d39')][_0x5ba655]));}_0xc2df19[_0x3b5405('0x1d39')]=_0x5387ce;}else{if(!_0x4ad8cd['autoAssociation'])return _0x1e852f[_0x3b5405('0xd49')]['get']({'sectionId':_0x4ad8cd['id']})[_0x3b5405('0xe59')][_0x3b5405('0xe19')](function(_0x1b8d6b){var _0x4c4f18=_0x3b5405,_0x54cc6d=_0x32d445()['map'](_0x1b8d6b[_0x4c4f18('0x16a7')],function(_0x6f9aed){var _0x4d14dd=_0x4c4f18;return _0x32d445()[_0x4d14dd('0xf15')](_0xc2df19[_0x4d14dd('0x1d39')],{'id':_0x6f9aed[_0x4d14dd('0x1104')]});}),_0x265bf8=null;_0xc2df19[_0x4c4f18('0x2658')]&&(_0x265bf8=_0x32d445()[_0x4c4f18('0xf15')](_0xc2df19[_0x4c4f18('0x1d39')],{'name':_0xc2df19[_0x4c4f18('0x2658')][_0x4c4f18('0x1f82')]}));if(_0x265bf8&&!_0x32d445()[_0x4c4f18('0x201a')](_0x54cc6d,['id',_0x265bf8['id']])){var _0x3169e0=_0x32d445()[_0x4c4f18('0xf15')](_0xc2df19['projects'],{'id':_0x265bf8['id']});_0x3169e0[_0x4c4f18('0x1e9d')]=![],_0x54cc6d[_0x4c4f18('0xb76')](_0x3169e0);}_0xc2df19['projects']=_0x54cc6d;});}})[_0x5a027e('0x223b')](function(_0x9186a3){var _0x3fa9c6=_0x5a027e;_0x3ff814[_0x3fa9c6('0x8c8')]({'title':_0x9186a3['status']?_0x3fa9c6('0x27f2')+_0x9186a3[_0x3fa9c6('0x2833')]+_0x3fa9c6('0x1b7c')+_0x9186a3[_0x3fa9c6('0x1fd7')]:'SYSTEM:GETprojects','msg':_0x9186a3[_0x3fa9c6('0x11d0')]?JSON['stringify'](_0x9186a3['data']):_0x9186a3[_0x3fa9c6('0x94f')]()});}),_0x2b08ec['hasRole'](_0x5a027e('0xd14'))?_0x1e852f['interval']['get']({'fields':_0x5a027e('0x104'),'sort':_0x5a027e('0x2623'),'IntervalId':_0x5a027e('0x1046')})['$promise'][_0x5a027e('0xe19')](function(_0x51b838){var _0x17cba1=_0x5a027e;_0xc2df19[_0x17cba1('0x134c')]=_0x51b838['rows']||[];})[_0x5a027e('0x223b')](function(_0x9f4f52){var _0x5f1c9b=_0x5a027e;_0x3ff814['error']({'title':_0x9f4f52[_0x5f1c9b('0x2833')]?'API:'+_0x9f4f52['status']+_0x5f1c9b('0x1b7c')+_0x9f4f52[_0x5f1c9b('0x1fd7')]:_0x5f1c9b('0xb51'),'msg':_0x9f4f52[_0x5f1c9b('0x11d0')]?JSON[_0x5f1c9b('0x3ad')](_0x9f4f52['data']):_0x9f4f52[_0x5f1c9b('0x94f')]()});}):_0x1e852f[_0x5a027e('0x134c')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x104'),'sort':_0x5a027e('0x2623'),'IntervalId':'null'})[_0x5a027e('0xe59')][_0x5a027e('0xe19')](function(_0x3d13b1){var _0x5ab244=_0x5a027e;_0xc2df19[_0x5ab244('0x134c')]=_0x3d13b1[_0x5ab244('0x16a7')]||[];})['then'](function(){var _0x82855e=_0x5a027e;return _0x1e852f[_0x82855e('0xb59')][_0x82855e('0x22d5')]({'userProfileId':_0xc2df19[_0x82855e('0x15a5')]['userProfileId'],'sectionId':0x3ec})[_0x82855e('0xe59')];})[_0x5a027e('0xe19')](function(_0x451822){var _0x520643=_0x5a027e,_0x395a60=_0x451822&&_0x451822[_0x520643('0x16a7')]?_0x451822['rows'][0x0]:null;if(!_0x395a60){var _0x15fa3f=[],_0x9f6f98=null;_0xc2df19[_0x520643('0x2658')]&&(_0x9f6f98=_0x32d445()[_0x520643('0xf15')](_0xc2df19[_0x520643('0x134c')],{'id':Number(_0xc2df19[_0x520643('0x2658')][_0x520643('0x1fc1')])}));for(var _0x545d96=0x0;_0x545d96<_0xc2df19[_0x520643('0x134c')][_0x520643('0x25ae')];_0x545d96++){_0x9f6f98&&_0xc2df19[_0x520643('0x134c')][_0x545d96]['id']===_0x9f6f98['id']&&(_0xc2df19['interval'][_0x545d96][_0x520643('0x1e9d')]=![],_0x15fa3f[_0x520643('0xb76')](_0xc2df19[_0x520643('0x134c')][_0x545d96]));}_0xc2df19[_0x520643('0x134c')]=_0x15fa3f;}else{if(!_0x395a60[_0x520643('0x11fd')])return _0x1e852f[_0x520643('0xd49')][_0x520643('0x22d5')]({'sectionId':_0x395a60['id']})[_0x520643('0xe59')][_0x520643('0xe19')](function(_0x380047){var _0x19d2c6=_0x520643,_0x510f4f=_0x32d445()[_0x19d2c6('0x65a')](_0x380047[_0x19d2c6('0x16a7')],function(_0x4b87f6){var _0xbafbd8=_0x19d2c6;return _0x32d445()['find'](_0xc2df19[_0xbafbd8('0x134c')],{'id':_0x4b87f6[_0xbafbd8('0x1104')]});}),_0x8bcd92=null;_0xc2df19[_0x19d2c6('0x2658')]&&(_0x8bcd92=_0x32d445()['find'](_0xc2df19['interval'],{'id':Number(_0xc2df19['queueCampaign'][_0x19d2c6('0x1fc1')])}));if(_0x8bcd92&&!_0x32d445()['some'](_0x510f4f,['id',_0x8bcd92['id']])){var _0x400ef7=_0x32d445()[_0x19d2c6('0xf15')](_0xc2df19[_0x19d2c6('0x134c')],{'id':_0x8bcd92['id']});_0x400ef7['canSelect']=![],_0x510f4f['push'](_0x400ef7);}_0xc2df19['interval']=_0x510f4f;});}})[_0x5a027e('0x223b')](function(_0x501983){var _0x3e58e8=_0x5a027e;_0x3ff814[_0x3e58e8('0x8c8')]({'title':_0x501983[_0x3e58e8('0x2833')]?_0x3e58e8('0x27f2')+_0x501983[_0x3e58e8('0x2833')]+_0x3e58e8('0x1b7c')+_0x501983[_0x3e58e8('0x1fd7')]:'SYSTEM:GETinterval','msg':_0x501983[_0x3e58e8('0x11d0')]?JSON['stringify'](_0x501983[_0x3e58e8('0x11d0')]):_0x501983[_0x3e58e8('0x94f')]()});}),_0x2b08ec[_0x5a027e('0x179e')]('admin')?_0x1e852f[_0x5a027e('0x1c98')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x1b75'),'sort':_0x5a027e('0x2623'),'nolimit':_0x5a027e('0x2206')})[_0x5a027e('0xe59')][_0x5a027e('0xe19')](function(_0x3c6cfc){var _0x50a5f2=_0x5a027e;_0xc2df19['pauses']=_0x3c6cfc[_0x50a5f2('0x16a7')]||[];})[_0x5a027e('0x223b')](function(_0x11f8fe){var _0x3e7aa5=_0x5a027e;_0x3ff814[_0x3e7aa5('0x8c8')]({'title':_0x11f8fe['status']?_0x3e7aa5('0x27f2')+_0x11f8fe[_0x3e7aa5('0x2833')]+_0x3e7aa5('0x1b7c')+_0x11f8fe[_0x3e7aa5('0x1fd7')]:_0x3e7aa5('0x20ea'),'msg':_0x11f8fe[_0x3e7aa5('0x11d0')]?JSON[_0x3e7aa5('0x3ad')](_0x11f8fe[_0x3e7aa5('0x11d0')]):_0x11f8fe[_0x3e7aa5('0x94f')]()});}):_0x1e852f[_0x5a027e('0x1c98')][_0x5a027e('0x22d5')]({'fields':_0x5a027e('0x1b75'),'sort':_0x5a027e('0x2623'),'nolimit':_0x5a027e('0x2206')})[_0x5a027e('0xe59')][_0x5a027e('0xe19')](function(_0x3a8cbf){var _0x3c9d9b=_0x5a027e;_0xc2df19[_0x3c9d9b('0x145e')]=_0x3a8cbf[_0x3c9d9b('0x16a7')]||[];})[_0x5a027e('0xe19')](function(){var _0x4eb297=_0x5a027e;return _0x1e852f['userProfileSection']['get']({'userProfileId':_0xc2df19[_0x4eb297('0x15a5')][_0x4eb297('0x1d04')],'sectionId':0x3ed})[_0x4eb297('0xe59')];})[_0x5a027e('0xe19')](function(_0x50f2ea){var _0x3010db=_0x5a027e,_0x3f19b3=_0x50f2ea&&_0x50f2ea[_0x3010db('0x16a7')]?_0x50f2ea[_0x3010db('0x16a7')][0x0]:null;if(!_0x3f19b3)_0xc2df19['pauses']=[];else{if(!_0x3f19b3['autoAssociation'])return _0x1e852f[_0x3010db('0xd49')][_0x3010db('0x22d5')]({'sectionId':_0x3f19b3['id']})[_0x3010db('0xe59')][_0x3010db('0xe19')](function(_0x16e92e){var _0x150a34=_0x3010db,_0x3dad9d=_0x32d445()[_0x150a34('0x65a')](_0x16e92e[_0x150a34('0x16a7')],function(_0xc8da4e){var _0x59e9ce=_0x150a34;return _0x32d445()['find'](_0xc2df19[_0x59e9ce('0x145e')],{'id':_0xc8da4e[_0x59e9ce('0x1104')]});});_0xc2df19[_0x150a34('0x145e')][_0x150a34('0x1d7e')](function(_0x7c0fad){var _0x32a373=_0x150a34;!_0x32d445()[_0x32a373('0x201a')](_0x3dad9d,['id',_0x7c0fad['id']])&&(_0x7c0fad[_0x32a373('0x1e9d')]=![]),_0x3dad9d[_0x32a373('0xb76')](_0x7c0fad);}),_0xc2df19['pauses']=_0x3dad9d;});}})[_0x5a027e('0x223b')](function(_0x31b6c8){var _0x2a5a30=_0x5a027e;_0x3ff814['error']({'title':_0x31b6c8[_0x2a5a30('0x2833')]?_0x2a5a30('0x27f2')+_0x31b6c8[_0x2a5a30('0x2833')]+_0x2a5a30('0x1b7c')+_0x31b6c8[_0x2a5a30('0x1fd7')]:_0x2a5a30('0x1da6'),'msg':_0x31b6c8['data']?JSON[_0x2a5a30('0x3ad')](_0x31b6c8[_0x2a5a30('0x11d0')]):_0x31b6c8[_0x2a5a30('0x94f')]()});});function _0x949deb(_0x5698e1,_0x1fa03f){var _0x2daddf=_0x5a027e;_0x3261a8[_0x2daddf('0x26b2')]({'controller':_0x2daddf('0xd6b'),'controllerAs':'vm','templateUrl':_0x56c922,'parent':angular[_0x2daddf('0x24a1')](_0x46c929[_0x2daddf('0x19b2')]),'targetEvent':_0x1fa03f,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5698e1,'queueCampaigns':_0xc2df19[_0x2daddf('0x1fac')]?_0xc2df19[_0x2daddf('0x1fac')][_0x2daddf('0x16a7')]:[],'crudPermissions':_0xc2df19[_0x2daddf('0xb3d')]}});}function _0x30aab4(_0x5e4918,_0x3c0159){var _0x50f6e8=_0x5a027e;_0x3261a8[_0x50f6e8('0x26b2')]({'controller':_0x50f6e8('0x19fc'),'controllerAs':'vm','templateUrl':_0x56d358,'parent':angular['element'](_0x46c929[_0x50f6e8('0x19b2')]),'targetEvent':_0x3c0159,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5e4918,'queueCampaigns':_0xc2df19[_0x50f6e8('0x1fac')]?_0xc2df19[_0x50f6e8('0x1fac')][_0x50f6e8('0x16a7')]:[],'crudPermissions':_0xc2df19[_0x50f6e8('0xb3d')]}});}function _0x2ee7b9(_0x5b7967,_0x1e2f2e){var _0x5d81b9=_0x5a027e;_0x3261a8['show']({'controller':_0x5d81b9('0xc51'),'controllerAs':'vm','templateUrl':_0x516314,'parent':angular[_0x5d81b9('0x24a1')](_0x46c929['body']),'targetEvent':_0x1e2f2e,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5b7967,'queueCampaigns':_0xc2df19[_0x5d81b9('0x1fac')]?_0xc2df19[_0x5d81b9('0x1fac')][_0x5d81b9('0x16a7')]:[],'crudPermissions':_0xc2df19[_0x5d81b9('0xb3d')]}});}function _0x5e2775(_0x6ea600,_0x5dcd70){var _0x57f4ce=_0x5a027e;_0x3261a8['show']({'controller':_0x57f4ce('0x236f'),'controllerAs':'vm','templateUrl':_0x3e92de,'parent':angular[_0x57f4ce('0x24a1')](_0x46c929[_0x57f4ce('0x19b2')]),'targetEvent':_0x5dcd70,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x6ea600,'queueCampaigns':_0xc2df19[_0x57f4ce('0x1fac')]?_0xc2df19[_0x57f4ce('0x1fac')][_0x57f4ce('0x16a7')]:[],'crudPermissions':_0xc2df19['crudPermissions']}});}function _0x37a8e6(_0x12d34c,_0x2a7076){var _0x351a52=_0x5a027e;_0x3261a8['show']({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x3118b4,'parent':angular[_0x351a52('0x24a1')](_0x46c929[_0x351a52('0x19b2')]),'targetEvent':_0x2a7076,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x12d34c,'queueCampaigns':_0xc2df19['queueCampaigns']?_0xc2df19[_0x351a52('0x1fac')]['rows']:[],'crudPermissions':_0xc2df19['crudPermissions'],'realtime':![]}});}function _0x21fdf1(_0x7ee631,_0x364656){var _0x33edbe=_0x5a027e,_0x5bbc05=_0x364656['id'];_0x1e852f[_0x33edbe('0x25d5')][_0x33edbe('0x5e1')]({'id':_0x7ee631,'ids':_0x5bbc05})[_0x33edbe('0xe59')][_0x33edbe('0xe19')](function(){var _0x3dd510=_0x33edbe;return _0x1e852f[_0x3dd510('0x25d5')]['addLists']({'id':_0x7ee631,'ids':_0x5bbc05,'dialCheckDuplicateType':'never'})[_0x3dd510('0xe59')];})[_0x33edbe('0xe19')](function(){var _0x55135f=_0x33edbe;_0x3ff814['success']({'title':_0x55135f('0x2546'),'msg':_0x55135f('0x1dfc')+_0x364656[_0x55135f('0x2623')]+_0x55135f('0x38c')});})[_0x33edbe('0x223b')](function(_0x4603ec){var _0x3b21c9=_0x33edbe;_0x3ff814['error']({'title':_0x4603ec[_0x3b21c9('0x2833')]?_0x3b21c9('0x27f2')+_0x4603ec[_0x3b21c9('0x2833')]+'\x20-\x20'+_0x4603ec[_0x3b21c9('0x1fd7')]:_0x3b21c9('0x31e'),'msg':_0x4603ec['status']?JSON[_0x3b21c9('0x3ad')](_0x4603ec['data']):_0x4603ec['toString']()});});}function _0x5d92ec(_0x503f7b,_0x166ad0){var _0x32ebc2=_0x5a027e;_0x1e852f[_0x32ebc2('0x25d5')][_0x32ebc2('0x1feb')]({'id':_0x503f7b['id'],'fields':'id,name','nolimit':!![]})['$promise']['then'](function(_0x169bd4){var _0x22fc5a=_0x32ebc2;if(_0x32d445()[_0x22fc5a('0xe44')](_0x169bd4[_0x22fc5a('0x16a7')])||_0x32d445()[_0x22fc5a('0x14b4')](_0x169bd4['rows']))_0x3ff814['info']({'title':_0x22fc5a('0x86a')});else{if(_0x169bd4[_0x22fc5a('0x16a7')][_0x22fc5a('0x25ae')]===0x1){var _0x24350e=_0x3261a8[_0x22fc5a('0xa5')]()[_0x22fc5a('0x13e4')](_0x22fc5a('0x391')+_0x169bd4[_0x22fc5a('0x16a7')][0x0][_0x22fc5a('0x2623')]+'\x20?')['htmlContent'](''+_0x169bd4[_0x22fc5a('0x16a7')][0x0][_0x22fc5a('0x2623')]+_0x22fc5a('0x27bb')+_0x22fc5a('0x5b3'))['ariaLabel'](_0x22fc5a('0x1788'))[_0x22fc5a('0x1345')](_0x166ad0)['ok']('OK')[_0x22fc5a('0x2c1')]('CANCEL');_0x3261a8[_0x22fc5a('0x26b2')](_0x24350e)[_0x22fc5a('0xe19')](function(){_0x21fdf1(_0xc2df19['queueCampaign']['id'],_0x169bd4['rows'][0x0]);});}else _0x3261a8[_0x22fc5a('0x26b2')]({'controller':_0x22fc5a('0x2be'),'controllerAs':'vm','templateUrl':_0x2048e7,'parent':angular[_0x22fc5a('0x24a1')](_0x46c929['body']),'targetEvent':_0x166ad0,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x503f7b,'listsCampaign':_0x169bd4?_0x169bd4['rows']:[]}});}})[_0x32ebc2('0x223b')](function(_0x10068f){var _0x2247da=_0x32ebc2;_0x3ff814[_0x2247da('0x8c8')]({'title':_0x10068f[_0x2247da('0x2833')]?_0x2247da('0x27f2')+_0x10068f[_0x2247da('0x2833')]+_0x2247da('0x1b7c')+_0x10068f[_0x2247da('0x1fd7')]:_0x2247da('0x6f'),'msg':_0x10068f[_0x2247da('0x2833')]?JSON[_0x2247da('0x3ad')](_0x10068f[_0x2247da('0x11d0')]):_0x10068f[_0x2247da('0x94f')]()});});}function _0x2cacaf(){var _0x4e4ee4=_0x5a027e;if(_0x2b08ec[_0x4e4ee4('0x179e')](_0x4e4ee4('0xd14')))_0x3bc310['go'](_0x4e4ee4('0x10af'),{});else return _0x1e852f[_0x4e4ee4('0xb59')]['get']({'userProfileId':_0x2b08ec[_0x4e4ee4('0x1ef8')]()[_0x4e4ee4('0x1d04')],'sectionId':0x5e6})[_0x4e4ee4('0xe59')][_0x4e4ee4('0xe19')](function(_0x4a9834){var _0x58335a=_0x4e4ee4,_0x5c5042=_0x4a9834&&_0x4a9834[_0x58335a('0x16a7')]?_0x4a9834[_0x58335a('0x16a7')][0x0]:null;_0x5c5042&&_0x5c5042[_0x58335a('0x4ef')]?_0x3bc310['go']('app.motiondialer.realtime.queues',{}):_0x3ff814[_0x58335a('0x1e67')]({'title':_0x3ff246[_0x58335a('0x2159')](_0x58335a('0x2786')),'msg':_0x3ff246['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x4e4ee4('0x223b')](function(_0x2401af){var _0x1a62d6=_0x4e4ee4;_0x3ff814[_0x1a62d6('0x8c8')]({'title':_0x2401af[_0x1a62d6('0x2833')]?_0x1a62d6('0x27f2')+_0x2401af[_0x1a62d6('0x2833')]+_0x1a62d6('0x1b7c')+_0x2401af[_0x1a62d6('0x1fd7')]:'USERPROFILE:GET_SECTION','msg':_0x2401af[_0x1a62d6('0x2833')]?JSON[_0x1a62d6('0x3ad')](_0x2401af[_0x1a62d6('0x11d0')]):_0x2401af[_0x1a62d6('0x94f')]()});});}function _0x492dd2(){var _0x1229d4=_0x5a027e;_0x3bc310['go']('app.motiondialer.queueCampaigns',{},{'reload':_0x1229d4('0x22af')});}function _0x5b47e7(){var _0x434e2a=_0x5a027e;_0x1e852f[_0x434e2a('0x25d5')][_0x434e2a('0xa70')]({'id':_0xc2df19[_0x434e2a('0x2658')]['id']},_0xc2df19['queueCampaign'])[_0x434e2a('0xe59')][_0x434e2a('0xe19')](function(){var _0x5704ed=_0x434e2a;_0x3ff814[_0x5704ed('0x425')]({'title':'QueueCampaign\x20updated!','msg':_0xc2df19['queueCampaign'][_0x5704ed('0x2623')]?_0xc2df19[_0x5704ed('0x2658')][_0x5704ed('0x2623')]+_0x5704ed('0x283b'):''});})['catch'](function(_0x3871fa){var _0x2aa40e=_0x434e2a;_0x3ff814[_0x2aa40e('0x8c8')]({'title':_0x3871fa['status']?'API:'+_0x3871fa['status']+_0x2aa40e('0x1b7c')+_0x3871fa['statusText']:_0x2aa40e('0x1ac'),'msg':_0x3871fa[_0x2aa40e('0x11d0')]?JSON[_0x2aa40e('0x3ad')](_0x3871fa[_0x2aa40e('0x11d0')]):_0x3871fa[_0x2aa40e('0x94f')]()});});}}const _0x435252=_0x32b38d;_0x228ce8[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$window',_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x1fac'),_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x228ce8(_0x2b1648,_0x4022df,_0x2bb251,_0x4b161d,_0x400fde,_0x21535d,_0x24fe2f,_0x662633,_0x3e890b,_0x154cfb,_0x211f24,_0x127053,_0x235797,_0x212406,_0x432ee9,_0x21cbec,_0x1f5523){var _0x49aa9d=_0xb635d2,_0x53e94c=this;_0x53e94c[_0x49aa9d('0x5c1')]=_0x21cbec,_0x53e94c[_0x49aa9d('0x22f1')]=_0x1f5523,_0x53e94c[_0x49aa9d('0x15a5')]=_0x432ee9[_0x49aa9d('0x1ef8')](),_0x53e94c[_0x49aa9d('0x1fac')]=_0x3e890b||{'count':0x0,'rows':[]},_0x53e94c[_0x49aa9d('0x154f')]=_0x154cfb,_0x53e94c[_0x49aa9d('0xb59')]=_0x211f24&&_0x211f24[_0x49aa9d('0x148b')]==0x1?_0x211f24[_0x49aa9d('0x16a7')][0x0]:null,_0x53e94c['crudPermissions']=_0x432ee9['parseCrudPermissions'](_0x53e94c[_0x49aa9d('0xb59')]?_0x53e94c[_0x49aa9d('0xb59')]['crudPermissions']:null),_0x53e94c[_0x49aa9d('0x19b6')]=_0x49aa9d('0x1fac'),_0x53e94c[_0x49aa9d('0x14d6')]='',_0x53e94c[_0x49aa9d('0x190c')]=null,_0x53e94c[_0x49aa9d('0x1e4a')]=[],_0x53e94c[_0x49aa9d('0xa16')]={'fields':_0x49aa9d('0xa85'),'type':_0x49aa9d('0x1fdf'),'sort':_0x49aa9d('0x7e8'),'channel':'voice','limit':0xa,'page':0x1},_0x53e94c[_0x49aa9d('0x6b3')]=_0x32d445()[_0x49aa9d('0x226f')]([{'option':'ALWAYS','value':_0x49aa9d('0x23a1')},{'option':_0x49aa9d('0x1912'),'value':_0x49aa9d('0x23f5')},{'option':_0x49aa9d('0xc31'),'value':_0x49aa9d('0xd80')}],function(_0x3f31ad){var _0x506e9d=_0x49aa9d;return _0x32d445()[_0x506e9d('0x1b42')](_0x3f31ad[_0x506e9d('0x2')],new RegExp('\x27','g'),'');}),_0x53e94c[_0x49aa9d('0x1749')]=_0x32d445()[_0x49aa9d('0x226f')]([{'option':_0x49aa9d('0x358'),'value':_0x49aa9d('0x17b6')},{'option':'No','value':_0x49aa9d('0x16f2')}],function(_0x24b09c){var _0x29d4e6=_0x49aa9d;return _0x32d445()[_0x29d4e6('0x1b42')](_0x24b09c[_0x29d4e6('0x2')],new RegExp('\x27','g'),'');}),_0x53e94c[_0x49aa9d('0x1a2c')]=_0x32d445()['keyBy']([{'option':'Yes','value':_0x49aa9d('0x11bd')},{'option':'No','value':_0x49aa9d('0x16f2')}],function(_0x5def09){var _0x19862a=_0x49aa9d;return _0x32d445()['replace'](_0x5def09[_0x19862a('0x2')],new RegExp('\x27','g'),'');}),_0x53e94c['arraytimeoutrestart']=_0x32d445()['keyBy']([{'option':_0x49aa9d('0x358'),'value':'\x27yes\x27'},{'option':'No','value':_0x49aa9d('0x16f2')}],function(_0x40b12b){var _0x494dab=_0x49aa9d;return _0x32d445()[_0x494dab('0x1b42')](_0x40b12b[_0x494dab('0x2')],new RegExp('\x27','g'),'');}),_0x53e94c[_0x49aa9d('0x366')]=_0x32d445()[_0x49aa9d('0x226f')]([{'option':'Inactive','value':'\x27\x27'},{'option':_0x49aa9d('0x14d7'),'value':_0x49aa9d('0x8c5')},{'option':_0x49aa9d('0x12c9'),'value':_0x49aa9d('0x2231')},{'option':_0x49aa9d('0x2844'),'value':_0x49aa9d('0x4db')}],function(_0x1dfd28){return _0x32d445()['replace'](_0x1dfd28['value'],new RegExp('\x27','g'),'');}),_0x53e94c['arraysetinterfacevar']=_0x32d445()['keyBy']([{'option':_0x49aa9d('0x358'),'value':_0x49aa9d('0x11bd')},{'option':'No','value':'\x27no\x27'}],function(_0x3ef597){var _0x4433d1=_0x49aa9d;return _0x32d445()['replace'](_0x3ef597[_0x4433d1('0x2')],new RegExp('\x27','g'),'');}),_0x53e94c[_0x49aa9d('0x1b1f')]=_0x32d445()[_0x49aa9d('0x226f')]([{'option':_0x49aa9d('0x358'),'value':_0x49aa9d('0x11bd')},{'option':'No','value':_0x49aa9d('0x16f2')}],function(_0x145e6e){var _0x2799b3=_0x49aa9d;return _0x32d445()[_0x2799b3('0x1b42')](_0x145e6e['value'],new RegExp('\x27','g'),'');}),_0x53e94c[_0x49aa9d('0xacc')]=_0x32d445()[_0x49aa9d('0x226f')]([{'option':_0x49aa9d('0x358'),'value':'\x27yes\x27'},{'option':'No','value':_0x49aa9d('0x16f2')}],function(_0x1d55c5){var _0x363132=_0x49aa9d;return _0x32d445()[_0x363132('0x1b42')](_0x1d55c5['value'],new RegExp('\x27','g'),'');}),_0x53e94c[_0x49aa9d('0x906')]=_0x32d445()[_0x49aa9d('0x226f')]([{'option':_0x49aa9d('0x2586'),'value':_0x49aa9d('0x1894')},{'option':_0x49aa9d('0x1e44'),'value':'\x27ASC\x27'}],function(_0x178899){var _0x57f982=_0x49aa9d;return _0x32d445()[_0x57f982('0x1b42')](_0x178899[_0x57f982('0x2')],new RegExp('\x27','g'),'');}),_0x53e94c['arraydialMethod']=_0x32d445()['keyBy']([{'option':_0x49aa9d('0xcf0'),'value':_0x49aa9d('0x182a')},{'option':_0x49aa9d('0x115a'),'value':'\x27power\x27'},{'option':_0x49aa9d('0xdb'),'value':_0x49aa9d('0x1efd')},{'option':'Preview','value':_0x49aa9d('0x20a5')},{'option':_0x49aa9d('0x465'),'value':_0x49aa9d('0x315')}],function(_0x11b3fa){var _0x4aa68e=_0x49aa9d;return _0x32d445()[_0x4aa68e('0x1b42')](_0x11b3fa[_0x4aa68e('0x2')],new RegExp('\x27','g'),'');}),_0x53e94c[_0x49aa9d('0x3d8')]=_0x32d445()[_0x49aa9d('0x226f')]([{'option':'AgentBusyFactor','value':_0x49aa9d('0x1dac')},{'option':_0x49aa9d('0x265d'),'value':_0x49aa9d('0x1270')}],function(_0x2a73da){var _0x41aeaa=_0x49aa9d;return _0x32d445()[_0x41aeaa('0x1b42')](_0x2a73da['value'],new RegExp('\x27','g'),'');}),_0x53e94c['arraystrategy']=_0x32d445()[_0x49aa9d('0x226f')]([{'option':_0x49aa9d('0xb5b'),'value':'\x27rrmemory\x27'},{'option':_0x49aa9d('0x2424'),'value':_0x49aa9d('0xba9'),'ngIf':_0x49aa9d('0x28a4')},{'option':'Least\x20Recent','value':_0x49aa9d('0x10a0'),'ngIf':_0x49aa9d('0x62a')},{'option':_0x49aa9d('0x8ca'),'value':'\x27fewestcalls\x27','ngIf':_0x49aa9d('0x62a')},{'option':_0x49aa9d('0x1a59'),'value':_0x49aa9d('0x2842'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':_0x49aa9d('0xf9f'),'value':'\x27linear\x27','ngIf':_0x49aa9d('0x62a')},{'option':_0x49aa9d('0x259e'),'value':_0x49aa9d('0x18c4'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'}],function(_0x37ae0c){var _0x440b38=_0x49aa9d;return _0x32d445()['replace'](_0x37ae0c[_0x440b38('0x2')],new RegExp('\x27','g'),'');}),_0x53e94c['editstate']=_0x190d68,_0x53e94c[_0x49aa9d('0x26b7')]=_0x2fd7a6,_0x53e94c['listadddialog']=_0x46a744,_0x53e94c[_0x49aa9d('0x1350')]=_0x3d04ef,_0x53e94c[_0x49aa9d('0x23f1')]=_0x12e19c,_0x53e94c[_0x49aa9d('0x1407')]=_0x4821a3,_0x53e94c[_0x49aa9d('0x1d9e')]=_0x385be2,_0x53e94c[_0x49aa9d('0x20e3')]=_0x4eb019,_0x53e94c[_0x49aa9d('0x425')]=_0x595f59,_0x53e94c[_0x49aa9d('0xa66')]=_0x303b98,_0x53e94c[_0x49aa9d('0x105')]=_0x21af97,_0x53e94c['deleteQueueCampaign']=_0x59e055,_0x53e94c[_0x49aa9d('0x23b3')]=_0x3a1f78,_0x53e94c[_0x49aa9d('0xd73')]=_0x53a42e,_0x53e94c['deselectQueueCampaigns']=_0x218c50,_0x53e94c[_0x49aa9d('0x6a6')]=_0x1bc1ce,_0x432ee9[_0x49aa9d('0x179e')](_0x49aa9d('0xd14'))?_0x127053[_0x49aa9d('0x1397')][_0x49aa9d('0x22d5')]({'fields':_0x49aa9d('0x104'),'sort':_0x49aa9d('0x2623')})['$promise'][_0x49aa9d('0xe19')](function(_0x14f68c){var _0x34996d=_0x49aa9d;_0x53e94c[_0x34996d('0x155e')]=_0x14f68c[_0x34996d('0x16a7')]||[];})[_0x49aa9d('0x223b')](function(_0x56981d){var _0x39a6e8=_0x49aa9d;_0x212406[_0x39a6e8('0x8c8')]({'title':_0x56981d[_0x39a6e8('0x2833')]?_0x39a6e8('0x27f2')+_0x56981d[_0x39a6e8('0x2833')]+'\x20-\x20'+_0x56981d[_0x39a6e8('0x1fd7')]:_0x39a6e8('0x1e6d'),'msg':_0x56981d[_0x39a6e8('0x11d0')]?JSON[_0x39a6e8('0x3ad')](_0x56981d[_0x39a6e8('0x11d0')]):_0x56981d[_0x39a6e8('0x94f')]()});}):_0x127053[_0x49aa9d('0x1397')][_0x49aa9d('0x22d5')]({'fields':'id,name','sort':_0x49aa9d('0x2623')})[_0x49aa9d('0xe59')][_0x49aa9d('0xe19')](function(_0x192af5){_0x53e94c['trunks']=_0x192af5['rows']||[];})['then'](function(){var _0x273860=_0x49aa9d;return _0x127053['userProfileSection'][_0x273860('0x22d5')]({'userProfileId':_0x53e94c[_0x273860('0x15a5')]['userProfileId'],'sectionId':0x3f3})[_0x273860('0xe59')];})[_0x49aa9d('0xe19')](function(_0x4177f2){var _0x4595e5=_0x49aa9d,_0x1722a0=_0x4177f2&&_0x4177f2[_0x4595e5('0x16a7')]?_0x4177f2['rows'][0x0]:null;if(!_0x1722a0){var _0x18ddf7=[],_0x41d806=[];_0x53e94c['queueCampaigns']['rows'][_0x4595e5('0x1d7e')](function(_0x157e23){var _0x531987=_0x4595e5,_0x154970=_0x32d445()['find'](_0x53e94c[_0x531987('0x155e')],{'id':Number(_0x157e23[_0x531987('0x186d')])});_0x41d806[_0x531987('0xb76')](_0x154970);});for(var _0x365cf6=0x0;_0x365cf6<_0x53e94c['trunks'][_0x4595e5('0x25ae')];_0x365cf6++){var _0x208a35=_0x32d445()[_0x4595e5('0x201a')](_0x41d806,{'id':_0x53e94c['trunks'][_0x365cf6]['id']});_0x208a35&&(_0x53e94c['trunks'][_0x365cf6]['canSelect']=![],_0x18ddf7['push'](_0x53e94c['trunks'][_0x365cf6]));}_0x53e94c['trunks']=_0x18ddf7;}else{if(!_0x1722a0[_0x4595e5('0x11fd')])return _0x127053[_0x4595e5('0xd49')][_0x4595e5('0x22d5')]({'sectionId':_0x1722a0['id']})[_0x4595e5('0xe59')][_0x4595e5('0xe19')](function(_0x100190){var _0x4453bf=_0x4595e5,_0x4b0610=_0x32d445()[_0x4453bf('0x65a')](_0x100190['rows'],function(_0x282d6d){var _0x57f346=_0x4453bf;return _0x32d445()[_0x57f346('0xf15')](_0x53e94c[_0x57f346('0x155e')],{'id':_0x282d6d[_0x57f346('0x1104')]});}),_0x2bc8c1=null;_0x2bc8c1=[],_0x53e94c[_0x4453bf('0x1fac')]['rows'][_0x4453bf('0x1d7e')](function(_0x237366){var _0x265142=_0x4453bf,_0x55b520=_0x32d445()['find'](_0x53e94c[_0x265142('0x155e')],{'id':Number(_0x237366[_0x265142('0x186d')])});_0x2bc8c1['push'](_0x55b520);}),!_0x32d445()[_0x4453bf('0x14b4')](_0x2bc8c1)&&_0x2bc8c1[_0x4453bf('0x1d7e')](function(_0x390cca){var _0x599227=_0x4453bf;if(!_0x32d445()[_0x599227('0x201a')](_0x4b0610,['id',_0x390cca['id']])){var _0x22688a=_0x32d445()[_0x599227('0xf15')](_0x53e94c['trunks'],{'id':_0x390cca['id']});_0x22688a['canSelect']=![],_0x4b0610[_0x599227('0xb76')](_0x22688a);}}),_0x53e94c['trunks']=_0x4b0610;});}})[_0x49aa9d('0x223b')](function(_0x58fc93){var _0x5ade74=_0x49aa9d;_0x212406[_0x5ade74('0x8c8')]({'title':_0x58fc93[_0x5ade74('0x2833')]?_0x5ade74('0x27f2')+_0x58fc93['status']+_0x5ade74('0x1b7c')+_0x58fc93[_0x5ade74('0x1fd7')]:_0x5ade74('0x14b5'),'msg':_0x58fc93[_0x5ade74('0x11d0')]?JSON['stringify'](_0x58fc93['data']):_0x58fc93[_0x5ade74('0x94f')]()});}),_0x432ee9[_0x49aa9d('0x179e')](_0x49aa9d('0xd14'))?_0x127053[_0x49aa9d('0x134c')]['get']({'fields':_0x49aa9d('0x104'),'sort':_0x49aa9d('0x2623'),'IntervalId':_0x49aa9d('0x1046')})[_0x49aa9d('0xe59')][_0x49aa9d('0xe19')](function(_0x576b29){var _0x25bc6d=_0x49aa9d;_0x53e94c['interval']=_0x576b29[_0x25bc6d('0x16a7')]||[];})[_0x49aa9d('0x223b')](function(_0x2895d6){var _0x630d17=_0x49aa9d;_0x212406['error']({'title':_0x2895d6[_0x630d17('0x2833')]?_0x630d17('0x27f2')+_0x2895d6[_0x630d17('0x2833')]+_0x630d17('0x1b7c')+_0x2895d6['statusText']:_0x630d17('0xb51'),'msg':_0x2895d6[_0x630d17('0x11d0')]?JSON[_0x630d17('0x3ad')](_0x2895d6[_0x630d17('0x11d0')]):_0x2895d6['toString']()});}):_0x127053[_0x49aa9d('0x134c')][_0x49aa9d('0x22d5')]({'fields':_0x49aa9d('0x104'),'sort':_0x49aa9d('0x2623'),'IntervalId':_0x49aa9d('0x1046')})['$promise']['then'](function(_0x10af54){var _0x29ab92=_0x49aa9d;_0x53e94c[_0x29ab92('0x134c')]=_0x10af54[_0x29ab92('0x16a7')]||[];})[_0x49aa9d('0xe19')](function(){var _0x568fc8=_0x49aa9d;return _0x127053[_0x568fc8('0xb59')]['get']({'userProfileId':_0x53e94c['currentUser'][_0x568fc8('0x1d04')],'sectionId':0x3ec})[_0x568fc8('0xe59')];})[_0x49aa9d('0xe19')](function(_0x347adc){var _0x14e68e=_0x49aa9d,_0x3c7def=_0x347adc&&_0x347adc[_0x14e68e('0x16a7')]?_0x347adc['rows'][0x0]:null;if(!_0x3c7def){var _0x2964d2=[],_0x71612a=null;_0x53e94c[_0x14e68e('0x2658')]&&(_0x71612a=_0x32d445()[_0x14e68e('0xf15')](_0x53e94c[_0x14e68e('0x134c')],{'id':Number(_0x53e94c['queueCampaign']['IntervalId'])}));for(var _0xfbdf01=0x0;_0xfbdf01<_0x53e94c[_0x14e68e('0x134c')]['length'];_0xfbdf01++){_0x71612a&&_0x53e94c[_0x14e68e('0x134c')][_0xfbdf01]['id']===_0x71612a['id']&&(_0x53e94c[_0x14e68e('0x134c')][_0xfbdf01][_0x14e68e('0x1e9d')]=![],_0x2964d2[_0x14e68e('0xb76')](_0x53e94c[_0x14e68e('0x134c')][_0xfbdf01]));}_0x53e94c[_0x14e68e('0x134c')]=_0x2964d2;}else{if(!_0x3c7def['autoAssociation'])return _0x127053['userProfileResource']['get']({'sectionId':_0x3c7def['id']})[_0x14e68e('0xe59')][_0x14e68e('0xe19')](function(_0x32158c){var _0x2aeb53=_0x14e68e,_0xe0608d=_0x32d445()[_0x2aeb53('0x65a')](_0x32158c[_0x2aeb53('0x16a7')],function(_0x4fd1ac){var _0x521ece=_0x2aeb53;return _0x32d445()['find'](_0x53e94c['interval'],{'id':_0x4fd1ac[_0x521ece('0x1104')]});}),_0x263273=null;_0x53e94c['queueCampaign']&&(_0x263273=_0x32d445()[_0x2aeb53('0xf15')](_0x53e94c[_0x2aeb53('0x134c')],{'id':Number(_0x53e94c[_0x2aeb53('0x2658')][_0x2aeb53('0x1fc1')])}));if(_0x263273&&!_0x32d445()[_0x2aeb53('0x201a')](_0xe0608d,['id',_0x263273['id']])){var _0x156b4b=_0x32d445()[_0x2aeb53('0xf15')](_0x53e94c[_0x2aeb53('0x134c')],{'id':_0x263273['id']});_0x156b4b[_0x2aeb53('0x1e9d')]=![],_0xe0608d[_0x2aeb53('0xb76')](_0x156b4b);}_0x53e94c['interval']=_0xe0608d;});}})[_0x49aa9d('0x223b')](function(_0x29f896){var _0x5f2dc1=_0x49aa9d;_0x212406[_0x5f2dc1('0x8c8')]({'title':_0x29f896[_0x5f2dc1('0x2833')]?_0x5f2dc1('0x27f2')+_0x29f896[_0x5f2dc1('0x2833')]+_0x5f2dc1('0x1b7c')+_0x29f896[_0x5f2dc1('0x1fd7')]:_0x5f2dc1('0x2051'),'msg':_0x29f896[_0x5f2dc1('0x11d0')]?JSON[_0x5f2dc1('0x3ad')](_0x29f896['data']):_0x29f896['toString']()});});function _0x190d68(_0x377500){var _0x333a03=_0x49aa9d;_0x2bb251['go'](_0x333a03('0x182c'),{'id':_0x377500['id'],'queueCampaign':_0x377500,'crudPermissions':_0x53e94c[_0x333a03('0xb3d')]});}function _0x2fd7a6(_0x2a6a32,_0x9e7fa6){var _0x26c26e=_0x49aa9d;_0x400fde[_0x26c26e('0x26b2')]({'controller':_0x26c26e('0xd6b'),'controllerAs':'vm','templateUrl':_0x56c922,'parent':angular[_0x26c26e('0x24a1')](_0x21535d['body']),'targetEvent':_0x9e7fa6,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2a6a32,'queueCampaigns':_0x53e94c[_0x26c26e('0x1fac')]?_0x53e94c[_0x26c26e('0x1fac')][_0x26c26e('0x16a7')]:[],'crudPermissions':_0x53e94c['crudPermissions']}});}function _0x46a744(_0x5f4cc3,_0x2a493e){var _0x383266=_0x49aa9d;_0x400fde[_0x383266('0x26b2')]({'controller':_0x383266('0x19fc'),'controllerAs':'vm','templateUrl':_0x56d358,'parent':angular[_0x383266('0x24a1')](_0x21535d[_0x383266('0x19b2')]),'targetEvent':_0x2a493e,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5f4cc3,'queueCampaigns':_0x53e94c[_0x383266('0x1fac')]?_0x53e94c[_0x383266('0x1fac')][_0x383266('0x16a7')]:[],'crudPermissions':_0x53e94c[_0x383266('0xb3d')]}});}function _0x3d04ef(_0xe6c2fc,_0x4d0b3c){var _0x3e0f84=_0x49aa9d;_0x400fde[_0x3e0f84('0x26b2')]({'controller':'QueueCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x516314,'parent':angular[_0x3e0f84('0x24a1')](_0x21535d[_0x3e0f84('0x19b2')]),'targetEvent':_0x4d0b3c,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xe6c2fc,'queueCampaigns':_0x53e94c[_0x3e0f84('0x1fac')]?_0x53e94c[_0x3e0f84('0x1fac')][_0x3e0f84('0x16a7')]:[],'crudPermissions':_0x53e94c['crudPermissions']}});}function _0x12e19c(_0x160325,_0x34d2b1){var _0x1cdb57=_0x49aa9d;_0x400fde['show']({'controller':_0x1cdb57('0x236f'),'controllerAs':'vm','templateUrl':_0x3e92de,'parent':angular['element'](_0x21535d[_0x1cdb57('0x19b2')]),'targetEvent':_0x34d2b1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x160325,'queueCampaigns':_0x53e94c['queueCampaigns']?_0x53e94c[_0x1cdb57('0x1fac')]['rows']:[],'crudPermissions':_0x53e94c[_0x1cdb57('0xb3d')]}});}function _0x4821a3(_0xf13550,_0xd58104){var _0x323316=_0x49aa9d;_0x400fde[_0x323316('0x26b2')]({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x3118b4,'parent':angular[_0x323316('0x24a1')](_0x21535d[_0x323316('0x19b2')]),'targetEvent':_0xd58104,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xf13550,'queueCampaigns':_0x53e94c[_0x323316('0x1fac')]?_0x53e94c[_0x323316('0x1fac')][_0x323316('0x16a7')]:[],'crudPermissions':_0x53e94c[_0x323316('0xb3d')],'realtime':![]}});}function _0x385be2(_0x2e769d,_0x25c93f){var _0x5602b9=_0x49aa9d,_0x1dcfb2=_0x400fde[_0x5602b9('0xa5')]()[_0x5602b9('0x13e4')](_0x5602b9('0x346')+_0x32d445()[_0x5602b9('0x1df2')](_0x5602b9('0x2658'))+'?')['htmlContent'](_0x5602b9('0xab2')+(_0x2e769d[_0x5602b9('0x2623')]||_0x5602b9('0x2658'))+_0x5602b9('0x27bb')+_0x5602b9('0x21bd'))['ariaLabel'](_0x5602b9('0xa3d'))['targetEvent'](_0x25c93f)['ok']('OK')['cancel'](_0x5602b9('0x17'));_0x400fde[_0x5602b9('0x26b2')](_0x1dcfb2)[_0x5602b9('0xe19')](function(){_0x59e055(_0x2e769d);},function(){var _0xb9399d=_0x5602b9;console[_0xb9399d('0x1fe9')](_0xb9399d('0x17'));});}function _0x4eb019(){var _0x5f18ae=_0x49aa9d;if(_0x432ee9[_0x5f18ae('0x179e')]('admin'))_0x2bb251['go']('app.motiondialer.realtime.queues',{});else return _0x127053[_0x5f18ae('0xb59')]['get']({'userProfileId':_0x432ee9[_0x5f18ae('0x1ef8')]()[_0x5f18ae('0x1d04')],'sectionId':0x5e6})[_0x5f18ae('0xe59')][_0x5f18ae('0xe19')](function(_0x3c4f66){var _0x44be2f=_0x5f18ae,_0x58555e=_0x3c4f66&&_0x3c4f66['rows']?_0x3c4f66[_0x44be2f('0x16a7')][0x0]:null;_0x58555e&&_0x58555e[_0x44be2f('0x4ef')]?_0x2bb251['go']('app.motiondialer.realtime.queues',{}):_0x212406[_0x44be2f('0x1e67')]({'title':_0x662633[_0x44be2f('0x2159')](_0x44be2f('0x2786')),'msg':_0x662633[_0x44be2f('0x2159')](_0x44be2f('0x4bb'))});})[_0x5f18ae('0x223b')](function(_0x4870d2){var _0x3ddd5f=_0x5f18ae;_0x212406['error']({'title':_0x4870d2['status']?_0x3ddd5f('0x27f2')+_0x4870d2['status']+'\x20-\x20'+_0x4870d2[_0x3ddd5f('0x1fd7')]:_0x3ddd5f('0x343'),'msg':_0x4870d2[_0x3ddd5f('0x2833')]?JSON[_0x3ddd5f('0x3ad')](_0x4870d2[_0x3ddd5f('0x11d0')]):_0x4870d2[_0x3ddd5f('0x94f')]()});});}var _0x584213=!![],_0x589510=0x1;_0x2b1648[_0x49aa9d('0x107')](_0x49aa9d('0x20cb'),function(_0x4fec4a,_0x3e3221){var _0x59874c=_0x49aa9d;_0x584213?_0x24fe2f(function(){_0x584213=![];}):(!_0x3e3221&&(_0x589510=_0x53e94c[_0x59874c('0xa16')]['page']),_0x4fec4a!==_0x3e3221&&(_0x53e94c[_0x59874c('0xa16')]['page']=0x1),!_0x4fec4a&&(_0x53e94c[_0x59874c('0xa16')]['page']=_0x589510),_0x53e94c[_0x59874c('0xa66')]());});function _0x595f59(_0xceab20){_0x53e94c['queueCampaigns']=_0xceab20||{'count':0x0,'rows':[]};}function _0x303b98(){var _0x207db8=_0x49aa9d;_0x53e94c[_0x207db8('0xa16')][_0x207db8('0xab0')]=(_0x53e94c[_0x207db8('0xa16')][_0x207db8('0xc08')]-0x1)*_0x53e94c['query'][_0x207db8('0x1b6d')],_0x432ee9[_0x207db8('0x179e')](_0x207db8('0xd14'))?_0x53e94c['promise']=_0x127053[_0x207db8('0x25d5')][_0x207db8('0x22d5')](_0x53e94c['query'],_0x595f59)[_0x207db8('0xe59')]:(_0x53e94c[_0x207db8('0xa16')]['id']=_0x53e94c[_0x207db8('0x154f')]['id'],_0x53e94c[_0x207db8('0xa16')][_0x207db8('0x1e59')]=_0x207db8('0x1a2a'),_0x53e94c[_0x207db8('0x9c8')]=_0x127053[_0x207db8('0x154f')][_0x207db8('0x14e6')](_0x53e94c['query'],_0x595f59)[_0x207db8('0xe59')]);}function _0x21af97(_0x369d13,_0x3eb7db){var _0x268270=_0x49aa9d;_0x400fde[_0x268270('0x26b2')]({'controller':_0x268270('0x1119'),'controllerAs':'vm','templateUrl':_0x1ce097,'parent':angular[_0x268270('0x24a1')](_0x21535d[_0x268270('0x19b2')]),'targetEvent':_0x369d13,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x3eb7db,'queueCampaigns':_0x53e94c['queueCampaigns'][_0x268270('0x16a7')],'license':_0x53e94c[_0x268270('0x5c1')],'setting':_0x53e94c[_0x268270('0x22f1')],'crudPermissions':_0x53e94c[_0x268270('0xb3d')]}});}function _0x59e055(_0xf24515){var _0x16ced9=_0x49aa9d;_0x127053[_0x16ced9('0x25d5')]['delete']({'id':_0xf24515['id']})[_0x16ced9('0xe59')][_0x16ced9('0xe19')](function(){var _0x69dce6=_0x16ced9;_0x32d445()[_0x69dce6('0xa8b')](_0x53e94c[_0x69dce6('0x1fac')][_0x69dce6('0x16a7')],{'id':_0xf24515['id']}),_0x53e94c[_0x69dce6('0x1fac')][_0x69dce6('0x148b')]-=0x1,!_0x53e94c[_0x69dce6('0x1fac')][_0x69dce6('0x16a7')][_0x69dce6('0x25ae')]&&_0x53e94c[_0x69dce6('0xa66')](),_0x212406['success']({'title':_0x32d445()[_0x69dce6('0x1df2')](_0x69dce6('0x27f'))+_0x69dce6('0x1219'),'msg':_0xf24515[_0x69dce6('0x2623')]?_0xf24515[_0x69dce6('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x16ced9('0x223b')](function(_0x5240fd){var _0x3457c0=_0x16ced9;if(_0x5240fd[_0x3457c0('0x11d0')]&&_0x5240fd['data'][_0x3457c0('0xcd2')]&&_0x5240fd[_0x3457c0('0x11d0')]['errors']['length']){_0x53e94c['errors']=_0x5240fd[_0x3457c0('0x11d0')][_0x3457c0('0xcd2')]||[{'message':_0x5240fd[_0x3457c0('0x94f')](),'type':_0x3457c0('0x1945')}];for(var _0x4756e8=0x0;_0x4756e8<_0x5240fd[_0x3457c0('0x11d0')][_0x3457c0('0xcd2')]['length'];_0x4756e8++){_0x212406[_0x3457c0('0x8c8')]({'title':_0x5240fd['data'][_0x3457c0('0xcd2')][_0x4756e8]['type'],'msg':_0x5240fd[_0x3457c0('0x11d0')][_0x3457c0('0xcd2')][_0x4756e8][_0x3457c0('0x27e8')]});}}else _0x212406['error']({'title':_0x5240fd[_0x3457c0('0x2833')]?'API:'+_0x5240fd['status']+_0x3457c0('0x1b7c')+_0x5240fd[_0x3457c0('0x1fd7')]:'SYSTEM:DELETEvoiceQueue','msg':_0x5240fd[_0x3457c0('0x11d0')]?JSON['stringify'](_0x5240fd[_0x3457c0('0x11d0')][_0x3457c0('0x27e8')]):_0x5240fd['message']||_0x5240fd[_0x3457c0('0x94f')]()});});}function _0x3a1f78(){var _0x500cef=_0x49aa9d,_0x4402e2=angular['copy'](_0x53e94c['selectedQueueCampaigns']);return _0x53e94c[_0x500cef('0x1e4a')]=[],_0x4402e2;}function _0x53a42e(_0x5a83d1){var _0x37824f=_0x49aa9d,_0x3b5c76=_0x400fde[_0x37824f('0xa5')]()[_0x37824f('0x13e4')](_0x37824f('0x19db'))[_0x37824f('0x221c')](''+_0x53e94c[_0x37824f('0x1e4a')][_0x37824f('0x25ae')]+_0x37824f('0x5bc')+_0x37824f('0x21bd'))[_0x37824f('0x4d1')](_0x37824f('0xf6b'))[_0x37824f('0x1345')](_0x5a83d1)['ok']('OK')[_0x37824f('0x2c1')]('CANCEL');_0x400fde[_0x37824f('0x26b2')](_0x3b5c76)[_0x37824f('0xe19')](function(){var _0x544a66=_0x37824f;_0x53e94c['selectedQueueCampaigns'][_0x544a66('0x1d7e')](function(_0x1afe31){_0x59e055(_0x1afe31);}),_0x53e94c[_0x544a66('0x1e4a')]=[];});}function _0x218c50(){var _0x41b2bc=_0x49aa9d;_0x53e94c[_0x41b2bc('0x1e4a')]=[];}function _0x1bc1ce(){var _0x42b85f=_0x49aa9d;_0x53e94c['selectedQueueCampaigns']=_0x53e94c[_0x42b85f('0x1fac')][_0x42b85f('0x16a7')];}}const _0x3d0af3=_0x228ce8;_0x5eca9d[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),'$translatePartialLoaderProvider'];function _0x5eca9d(_0xc23645,_0x30907){var _0x520844=_0xb635d2;_0xc23645[_0x520844('0x1d72')]('app.motiondialer',{'abstract':!![],'url':_0x520844('0x1cbd')})[_0x520844('0x1d72')]('app.motiondialer.queueCampaigns',{'url':_0x520844('0x1671'),'views':{'content@app':{'templateUrl':_0x2125f8,'controller':'QueueCampaignsController\x20as\x20vm'}},'resolve':{'queueCampaigns':[_0x520844('0x292'),_0x520844('0x2730'),function _0x5c2b71(_0x50f310,_0x2fcbef){var _0x4cc002=_0x520844;return _0x2fcbef['hasRole']('admin')?_0x50f310[_0x4cc002('0xcd6')](_0x4cc002('0x1382'),{'fields':_0x4cc002('0xa85'),'type':_0x4cc002('0x1fdf'),'sort':_0x4cc002('0x7e8'),'channel':_0x4cc002('0xe74'),'limit':0xa,'offset':0x0}):_0x50f310[_0x4cc002('0xcd6')]('userProfile@getResources',{'id':_0x2fcbef[_0x4cc002('0x1ef8')]()[_0x4cc002('0x1d04')],'section':'QueueCampaigns','fields':'createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold','type':_0x4cc002('0x1fdf'),'sort':_0x4cc002('0x7e8'),'channel':_0x4cc002('0xe74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x520844('0x2730'),function _0x41f4a2(_0x291eb7,_0x561fa0){var _0x5b69f8=_0x520844;return _0x561fa0[_0x5b69f8('0x179e')](_0x5b69f8('0xd14'))?null:_0x291eb7[_0x5b69f8('0xcd6')](_0x5b69f8('0x455'),{'fields':_0x5b69f8('0x1b71'),'id':_0x561fa0['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x520844('0x292'),_0x520844('0x2730'),function _0x3b4fd0(_0x40a6f5,_0x517a3c){var _0x549a81=_0x520844;return _0x517a3c['hasRole'](_0x549a81('0xd14'))?null:_0x40a6f5[_0x549a81('0xcd6')](_0x549a81('0x264e'),{'fields':_0x549a81('0x12d6'),'userProfileId':_0x517a3c['getCurrentUser']()[_0x549a81('0x1d04')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x520844('0xb29')})[_0x520844('0x1d72')](_0x520844('0x182c'),{'url':'/:id?tab','params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x41b220,'controller':_0x520844('0x115')}},'resolve':{'queueCampaign':[_0x520844('0x292'),_0x520844('0x34'),function _0x5cf859(_0x260d2f,_0x3ab5c4){var _0x304fdb=_0x520844;return _0x260d2f[_0x304fdb('0xcd6')](_0x304fdb('0x1382'),{'fields':_0x304fdb('0xa85'),'id':_0x3ab5c4['id']});}],'userProfileSection':['apiResolver',_0x520844('0x2730'),function _0x42d7a5(_0x32f21f,_0x385505){var _0x5a8cb7=_0x520844;return _0x32f21f[_0x5a8cb7('0xcd6')](_0x5a8cb7('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x385505[_0x5a8cb7('0x1ef8')]()[_0x5a8cb7('0x1d04')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x520844('0xb29')})[_0x520844('0x1d72')](_0x520844('0x4c1'),{'url':_0x520844('0x3ec'),'views':{'content@app':{'templateUrl':_0x172a1b,'controller':'IvrCampaignsController\x20as\x20vm'}},'resolve':{'ivrCampaigns':[_0x520844('0x292'),'Auth',function _0x3328af(_0x29d705,_0xb8a0ad){var _0x2c263c=_0x520844;return _0xb8a0ad['hasRole'](_0x2c263c('0xd14'))?_0x29d705[_0x2c263c('0xcd6')](_0x2c263c('0x2220'),{'fields':_0x2c263c('0x1b21'),'type':_0x2c263c('0x989'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x29d705[_0x2c263c('0xcd6')]('userProfile@getResources',{'id':_0xb8a0ad[_0x2c263c('0x1ef8')]()[_0x2c263c('0x1d04')],'section':_0x2c263c('0x1963'),'fields':_0x2c263c('0x1b21'),'type':_0x2c263c('0x989'),'sort':_0x2c263c('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x520844('0x292'),_0x520844('0x2730'),function _0x512d7c(_0xaa61d0,_0x5a799f){var _0x30d095=_0x520844;return _0x5a799f[_0x30d095('0x179e')]('admin')?null:_0xaa61d0[_0x30d095('0xcd6')]('userProfile@get',{'fields':_0x30d095('0x1b71'),'id':_0x5a799f[_0x30d095('0x1ef8')]()[_0x30d095('0x1d04')]});}],'userProfileSection':[_0x520844('0x292'),_0x520844('0x2730'),function _0x555d3e(_0x356e28,_0x1cef44){var _0x3ab76a=_0x520844;return _0x1cef44[_0x3ab76a('0x179e')](_0x3ab76a('0xd14'))?null:_0x356e28[_0x3ab76a('0xcd6')](_0x3ab76a('0x264e'),{'fields':_0x3ab76a('0x12d6'),'userProfileId':_0x1cef44[_0x3ab76a('0x1ef8')]()[_0x3ab76a('0x1d04')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':'motiondialer'})[_0x520844('0x1d72')](_0x520844('0x98c'),{'url':_0x520844('0xb1d'),'params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4acf10,'controller':_0x520844('0x11ec')}},'resolve':{'ivrCampaign':[_0x520844('0x292'),'$stateParams',function _0x3d0f30(_0x3ef3b0,_0x1bcf18){var _0x157663=_0x520844;return _0x3ef3b0[_0x157663('0xcd6')](_0x157663('0x2220'),{'fields':_0x157663('0x1b21'),'id':_0x1bcf18['id']});}],'userProfileSection':[_0x520844('0x292'),_0x520844('0x2730'),function _0xd956a2(_0x46575c,_0x5aba87){var _0x5e1425=_0x520844;return _0x46575c['resolve'](_0x5e1425('0x264e'),{'fields':_0x5e1425('0x12d6'),'userProfileId':_0x5aba87['getCurrentUser']()['userProfileId'],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x520844('0xb29')}),_0x30907['addPart']('app/main/apps/motiondialer');}angular[_0xb635d2('0x153f')](_0xb635d2('0x789'),[_0xb635d2('0x569'),_0xb635d2('0x24b'),_0xb635d2('0x274e'),_0xb635d2('0x206b'),_0xb635d2('0xd8b'),'ckeditor',_0xb635d2('0x1951'),_0xb635d2('0x1703'),'ngAnimate',_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),_0xb635d2('0x17b0'),_0xb635d2('0x191c'),'chart.js',_0xb635d2('0x16a1'),'app.motiondialer.realtime'])[_0xb635d2('0x1990')](_0x5eca9d)[_0xb635d2('0x1a79')](_0xb635d2('0x1005'),_0x3d5416)[_0xb635d2('0x1a79')](_0xb635d2('0xfba'),_0x58c6a9)['controller'](_0xb635d2('0x2614'),_0x2b9ae6)['controller']('IvrCampaignHopperBlacksController',_0x168f61)['controller'](_0xb635d2('0xc34'),_0x239f1d)['controller'](_0xb635d2('0x21b5'),_0x37f71d)[_0xb635d2('0x1a79')](_0xb635d2('0x7bf'),_0x39d66a)['controller'](_0xb635d2('0x13e7'),_0x374b2f)['controller'](_0xb635d2('0x1b4d'),_0x17283a)[_0xb635d2('0x1a79')]('IvrCampaignlistaddController',_0x57f6a8)[_0xb635d2('0x1a79')](_0xb635d2('0x2418'),_0x5e5eae)['controller'](_0xb635d2('0x8f3'),_0x5972a6)['controller']('IvrCampaignsController',_0x5d5742)[_0xb635d2('0x1a79')](_0xb635d2('0x1119'),_0x14aee9)[_0xb635d2('0x1a79')]('QueueCampaignagentaddController',_0x25986a)['controller']('QueueCampaignblacklistaddController',_0x403240)[_0xb635d2('0x1a79')](_0xb635d2('0xd6b'),_0x1cfdc5)[_0xb635d2('0x1a79')](_0xb635d2('0x6d8'),_0x4aadd0)[_0xb635d2('0x1a79')](_0xb635d2('0x2062'),_0x577a0a)['controller'](_0xb635d2('0x88c'),_0x1a72c2)[_0xb635d2('0x1a79')](_0xb635d2('0x266a'),_0x47db33)['controller'](_0xb635d2('0x726'),_0x4b9790)['controller']('QueueCampaignHopperStatisticsController',_0x4d6fde)['controller']('QueueCampaignlistaddController',_0x4491ba)[_0xb635d2('0x1a79')](_0xb635d2('0x2be'),_0x1e35d9)[_0xb635d2('0x1a79')](_0xb635d2('0x236f'),_0x4ce397)[_0xb635d2('0x1a79')](_0xb635d2('0x23d5'),_0x435252)[_0xb635d2('0x1a79')](_0xb635d2('0x4b2'),_0x3d0af3);const _0x36563a=_0x59426a['p']+'src/js/modules/main/apps/help/views/about/about.html/about-[chunkhash].html';_0x4a0e61[_0xb635d2('0xb0c')]=[_0xb635d2('0x1e67'),_0xb635d2('0x5c1'),_0xb635d2('0xffc')];function _0x4a0e61(_0x731098,_0x46c5d3,_0x5848e5){var _0x506941=_0xb635d2,_0x2945f2=this;_0x2945f2[_0x506941('0x2496')]=_0x5848e5[_0x506941('0x2496')],_0x2945f2[_0x506941('0x1e67')]=_0x731098,_0x2945f2[_0x506941('0x5c1')]=_0x46c5d3;}const _0xdaf5a5=_0x4a0e61;_0x3fe1fe[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d')];function _0x3fe1fe(_0x4f7d23){var _0x58fb18=_0xb635d2;_0x4f7d23[_0x58fb18('0x1d72')](_0x58fb18('0x338'),{'url':_0x58fb18('0x23cd'),'views':{'content@app':{'templateUrl':_0x36563a,'controller':'AboutController\x20as\x20vm'}},'resolve':{'info':[_0x58fb18('0x292'),function _0xfd0024(_0xf2b54c){var _0x3ff028=_0x58fb18;return _0xf2b54c[_0x3ff028('0xcd6')](_0x3ff028('0x2151'));}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0x58fb18('0x19df')});}angular['module'](_0xb635d2('0x338'),[])[_0xb635d2('0x1990')](_0x3fe1fe)[_0xb635d2('0x1a79')]('AboutController',_0xdaf5a5),_0x53dd85[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x53dd85(_0x390072,_0x4dd9a5){var _0x1452cf=_0xb635d2;_0x390072[_0x1452cf('0x1d72')](_0x1452cf('0x25e'),{'abstract':!![],'url':'/help'}),_0x4dd9a5['addPart'](_0x1452cf('0xe5a'));}angular['module'](_0xb635d2('0x25e'),[_0xb635d2('0x569'),_0xb635d2('0x24b'),_0xb635d2('0x274e'),_0xb635d2('0x206b'),'mdColorPicker',_0xb635d2('0x1727'),'ng-sortable',_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),'ngEmbed',_0xb635d2('0x17b0'),_0xb635d2('0x191c'),_0xb635d2('0xe93'),'angular.filter','app.help.about'])[_0xb635d2('0x1990')](_0x53dd85);const _0x23b514=_0x59426a['p']+'src/js/modules/main/apps/jscripty/views/projects/projects.html/projects-[chunkhash].html',_0x57183b=_0x59426a['p']+_0xb635d2('0x149a');_0x9ac9fd[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x1d39'),_0xb635d2('0x38b'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license','setting',_0xb635d2('0xb3d')];function _0x9ac9fd(_0x2b3a89,_0x27695a,_0x3454fc,_0x5b9e55,_0x4eee5d,_0x1a8487,_0x2d57ea,_0x22c156,_0x553957,_0x15cce2,_0x148c0a,_0x3429b8,_0x2bd5ce,_0x4483e0){var _0x43d04b=_0xb635d2,_0x3a3aa8=this;_0x3a3aa8[_0x43d04b('0x15a5')]=_0x148c0a[_0x43d04b('0x1ef8')](),_0x3a3aa8[_0x43d04b('0xcd2')]=[],_0x3a3aa8[_0x43d04b('0x22f1')]=_0x2bd5ce,_0x3a3aa8[_0x43d04b('0x5c1')]=_0x3429b8,_0x3a3aa8['crudPermissions']=_0x4483e0,_0x3a3aa8[_0x43d04b('0x1ccb')]={},_0x3a3aa8[_0x43d04b('0x25ac')]=_0x3a3aa8[_0x43d04b('0x22f1')]&&_0x3a3aa8[_0x43d04b('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a3aa8['title']=_0x43d04b('0x9d6'),_0x3a3aa8[_0x43d04b('0x38b')]=angular['copy'](_0x553957),_0x3a3aa8[_0x43d04b('0x1d39')]=_0x22c156,_0x3a3aa8['newProject']=![];!_0x3a3aa8[_0x43d04b('0x38b')]&&(_0x3a3aa8[_0x43d04b('0x38b')]={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x3a3aa8[_0x43d04b('0x13e4')]='JSCRIPTY.NEW_PROJECT',_0x3a3aa8[_0x43d04b('0x81')]=!![]);_0x3a3aa8[_0x43d04b('0x1efc')]=_0xea6d94,_0x3a3aa8[_0x43d04b('0x2124')]=_0x22f2d0,_0x3a3aa8[_0x43d04b('0x6d2')]=_0x2355f0,_0x3a3aa8['getDateFromString']=_0x404fcc,_0x3a3aa8['closeDialog']=_0x3ee217;function _0xea6d94(){var _0x5e742c=_0x43d04b;_0x3a3aa8[_0x5e742c('0xcd2')]=[],_0x15cce2[_0x5e742c('0x6c7')][_0x5e742c('0xe5e')](_0x3a3aa8[_0x5e742c('0x38b')])[_0x5e742c('0xe59')][_0x5e742c('0xe19')](function(_0x3564c1){var _0x504181=_0x5e742c;_0x3a3aa8[_0x504181('0x1d39')][_0x504181('0x14c9')](_0x3564c1[_0x504181('0x250e')]()),_0x2d57ea[_0x504181('0x425')]({'title':_0x504181('0xbf3'),'msg':_0x3a3aa8['project'][_0x504181('0x2623')]?_0x3a3aa8['project']['name']+_0x504181('0x105f'):''}),_0x3ee217(_0x3564c1);})[_0x5e742c('0x223b')](function(_0x403c39){var _0x5a964e=_0x5e742c;if(_0x403c39[_0x5a964e('0x11d0')]&&_0x403c39['data']['errors']&&_0x403c39[_0x5a964e('0x11d0')]['errors'][_0x5a964e('0x25ae')]){_0x3a3aa8['errors']=_0x403c39[_0x5a964e('0x11d0')][_0x5a964e('0xcd2')]||[{'message':_0x403c39[_0x5a964e('0x94f')](),'type':_0x5a964e('0xac7')}];for(var _0xe692ec=0x0;_0xe692ec<_0x403c39[_0x5a964e('0x11d0')][_0x5a964e('0xcd2')][_0x5a964e('0x25ae')];_0xe692ec+=0x1){_0x2d57ea[_0x5a964e('0x8c8')]({'title':_0x403c39[_0x5a964e('0x11d0')][_0x5a964e('0xcd2')][_0xe692ec]['type'],'msg':_0x403c39[_0x5a964e('0x11d0')][_0x5a964e('0xcd2')][_0xe692ec][_0x5a964e('0x27e8')]});}}else _0x2d57ea['error']({'title':_0x403c39[_0x5a964e('0x2833')]?_0x5a964e('0x27f2')+_0x403c39[_0x5a964e('0x2833')]+_0x5a964e('0x1b7c')+_0x403c39[_0x5a964e('0x1fd7')]:_0x5a964e('0xac7'),'msg':_0x403c39[_0x5a964e('0x11d0')]?JSON['stringify'](_0x403c39[_0x5a964e('0x11d0')]['message']):_0x403c39[_0x5a964e('0x94f')]()});});}function _0x22f2d0(){var _0x841525=_0x43d04b;_0x3a3aa8[_0x841525('0xcd2')]=[],_0x15cce2[_0x841525('0x6c7')][_0x841525('0xa70')]({'id':_0x3a3aa8[_0x841525('0x38b')]['id']},_0x3a3aa8['project'])[_0x841525('0xe59')][_0x841525('0xe19')](function(_0x41bbb7){var _0x25fa83=_0x841525,_0xff301b=_0x32d445()[_0x25fa83('0xf15')](_0x3a3aa8[_0x25fa83('0x1d39')],{'id':_0x41bbb7['id']});_0xff301b&&_0x32d445()['merge'](_0xff301b,_0x32d445()['pick'](_0x41bbb7[_0x25fa83('0x250e')](),_0x32d445()[_0x25fa83('0x1234')](_0xff301b))),_0x2d57ea['success']({'title':'Project\x20properly\x20saved!','msg':_0x3a3aa8['project'][_0x25fa83('0x2623')]?_0x3a3aa8[_0x25fa83('0x38b')][_0x25fa83('0x2623')]+_0x25fa83('0x1c19'):''}),_0x3ee217(_0x41bbb7);})[_0x841525('0x223b')](function(_0x24ec30){var _0x4f0445=_0x841525;if(_0x24ec30[_0x4f0445('0x11d0')]&&_0x24ec30[_0x4f0445('0x11d0')][_0x4f0445('0xcd2')]&&_0x24ec30[_0x4f0445('0x11d0')]['errors'][_0x4f0445('0x25ae')]){_0x3a3aa8[_0x4f0445('0xcd2')]=_0x24ec30[_0x4f0445('0x11d0')]['errors']||[{'message':_0x24ec30[_0x4f0445('0x94f')](),'type':_0x4f0445('0x1fab')}];for(var _0x3fb5f1=0x0;_0x3fb5f1<_0x24ec30['data'][_0x4f0445('0xcd2')][_0x4f0445('0x25ae')];_0x3fb5f1++){_0x2d57ea['error']({'title':_0x24ec30[_0x4f0445('0x11d0')][_0x4f0445('0xcd2')][_0x3fb5f1]['type'],'msg':_0x24ec30['data'][_0x4f0445('0xcd2')][_0x3fb5f1][_0x4f0445('0x27e8')]});}}else _0x2d57ea[_0x4f0445('0x8c8')]({'title':_0x24ec30[_0x4f0445('0x2833')]?'API:'+_0x24ec30[_0x4f0445('0x2833')]+_0x4f0445('0x1b7c')+_0x24ec30[_0x4f0445('0x1fd7')]:_0x4f0445('0x1fab'),'msg':_0x24ec30[_0x4f0445('0x11d0')]?JSON[_0x4f0445('0x3ad')](_0x24ec30[_0x4f0445('0x11d0')]['message']):_0x24ec30[_0x4f0445('0x94f')]()});});}function _0x2355f0(_0x4d438d){var _0x4ed763=_0x43d04b;_0x3a3aa8[_0x4ed763('0xcd2')]=[];var _0x1c76c6=_0x5b9e55[_0x4ed763('0xa5')]()[_0x4ed763('0x13e4')]('Are\x20you\x20sure?')['content'](_0x4ed763('0x76d'))[_0x4ed763('0x4d1')](_0x4ed763('0x23ad'))['ok']('Delete')['cancel'](_0x4ed763('0x8a3'))[_0x4ed763('0x1345')](_0x4d438d);_0x5b9e55[_0x4ed763('0x26b2')](_0x1c76c6)[_0x4ed763('0xe19')](function(){var _0x100632=_0x4ed763;_0x15cce2[_0x100632('0x6c7')][_0x100632('0x229e')]({'id':_0x3a3aa8[_0x100632('0x38b')]['id']})[_0x100632('0xe59')][_0x100632('0xe19')](function(){var _0x3b3548=_0x100632;_0x32d445()[_0x3b3548('0xa8b')](_0x3a3aa8[_0x3b3548('0x1d39')],{'id':_0x3a3aa8[_0x3b3548('0x38b')]['id']}),_0x2d57ea[_0x3b3548('0x425')]({'title':_0x3b3548('0x15ba'),'msg':(_0x3a3aa8['project'][_0x3b3548('0x2623')]||_0x3b3548('0x38b'))+_0x3b3548('0x2182')}),_0x3ee217(_0x3a3aa8[_0x3b3548('0x38b')]);})['catch'](function(_0x5d3ea9){var _0x517434=_0x100632;if(_0x5d3ea9['data']&&_0x5d3ea9[_0x517434('0x11d0')][_0x517434('0xcd2')]&&_0x5d3ea9[_0x517434('0x11d0')][_0x517434('0xcd2')][_0x517434('0x25ae')]){_0x3a3aa8[_0x517434('0xcd2')]=_0x5d3ea9[_0x517434('0x11d0')]['errors']||[{'message':_0x5d3ea9[_0x517434('0x94f')](),'type':_0x517434('0x1a15')}];for(var _0x2aa6bf=0x0;_0x2aa6bf<_0x5d3ea9[_0x517434('0x11d0')][_0x517434('0xcd2')][_0x517434('0x25ae')];_0x2aa6bf++){_0x2d57ea[_0x517434('0x8c8')]({'title':_0x5d3ea9[_0x517434('0x11d0')]['errors'][_0x2aa6bf][_0x517434('0x62e')],'msg':_0x5d3ea9[_0x517434('0x11d0')][_0x517434('0xcd2')][_0x2aa6bf][_0x517434('0x27e8')]});}}else _0x2d57ea[_0x517434('0x8c8')]({'title':_0x5d3ea9[_0x517434('0x2833')]?_0x517434('0x27f2')+_0x5d3ea9['status']+'\x20-\x20'+_0x5d3ea9[_0x517434('0x1fd7')]:_0x517434('0x1a15'),'msg':_0x5d3ea9[_0x517434('0x11d0')]?JSON[_0x517434('0x3ad')](_0x5d3ea9['data'][_0x517434('0x27e8')]):_0x5d3ea9[_0x517434('0x27e8')]||_0x5d3ea9[_0x517434('0x94f')]()});});},function(){});}function _0x404fcc(_0x40f4c6){return _0x40f4c6===null?undefined:new Date(_0x40f4c6);}function _0x3ee217(_0x3de339){_0x5b9e55['hide'](_0x3de339);}}const _0xe82d60=_0x9ac9fd;_0x3f4a8e['$inject']=[_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2400'),_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x1e21')];function _0x3f4a8e(_0xa53b1c,_0x36267f,_0x2628bb,_0x3620ee,_0x4881c0,_0x133f39){var _0x534fb7=_0xb635d2,_0x3fc2b9=this;_0x3fc2b9[_0x534fb7('0x38b')]={},_0x3fc2b9['localizationMap']=_0x133f39;var _0x443bdc=new Date();_0x443bdc[_0x534fb7('0x19f6')](0x0,0x0,0x0,0x0),_0x3fc2b9['pickerModel']={'dateStart':new Date(_0x443bdc[_0x534fb7('0x763')](),_0x443bdc[_0x534fb7('0x1960')](),0x1),'dateEnd':new Date(_0x443bdc[_0x534fb7('0x763')](),_0x443bdc[_0x534fb7('0x1960')]()+0x1,0x0),'selectedTemplate':'TM'},_0x3fc2b9[_0x534fb7('0x15f9')]=_0x177a92,_0x3fc2b9[_0x534fb7('0x19c1')]=_0x331ec0,_0x3fc2b9['getAnswers']=_0x1adff0;function _0x1adff0(){var _0x256624=_0x534fb7;return _0x3fc2b9[_0x256624('0x1570')]=![],_0x3620ee[_0x256624('0x6c7')][_0x256624('0x152a')]({'id':_0x3fc2b9['project']['id'],'sort':_0x256624('0x1a39'),'createdAt':{'$gte':_0x4ddcaa()(_0x3fc2b9[_0x256624('0x406')][_0x256624('0x114e')])[_0x256624('0xaf8')](0x0,_0x256624('0x1c59'))[_0x256624('0xaf8')](0x0,'minutes')[_0x256624('0xaf8')](0x0,'seconds')['utcOffset'](0x0,!![])[_0x256624('0x5e5')](),'$lte':_0x4ddcaa()(_0x3fc2b9[_0x256624('0x406')]['dateEnd'])[_0x256624('0xaf8')](0x17,_0x256624('0x1c59'))[_0x256624('0xaf8')](0x3b,_0x256624('0x25eb'))[_0x256624('0xaf8')](0x3b,_0x256624('0x8ec'))[_0x256624('0x1e9e')](0x0,!![])[_0x256624('0x5e5')]()},'nolimit':!![]})[_0x256624('0xe59')][_0x256624('0xe19')](function(_0x1d9cf5){var _0x2940b1=_0x256624;if(_0x1d9cf5&&_0x1d9cf5[_0x2940b1('0x16a7')]&&typeof _0x1d9cf5[_0x2940b1('0x148b')]!==_0x2940b1('0x1143')){_0x3fc2b9[_0x2940b1('0xb18')]={};for(var _0x57d97c=0x0,_0x547f56=_0x1d9cf5[_0x2940b1('0x148b')];_0x57d97c<_0x547f56;_0x57d97c++){_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x1f95')]&&(_0x3fc2b9['hasIdAnswers']=!![],typeof _0x3fc2b9[_0x2940b1('0xb18')][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x1f95')]]===_0x2940b1('0x1143')&&(_0x3fc2b9['answers'][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x1f95')]]={'question':_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c]['question'],'answers':{},'sum':0x0}),_0x1d9cf5['rows'][_0x57d97c]['answer']===''&&(_0x1d9cf5['rows'][_0x57d97c][_0x2940b1('0x62d')]=_0x2940b1('0xaa1')),_0x3fc2b9[_0x2940b1('0xb18')][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x1f95')]][_0x2940b1('0xb18')][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c]['answer']]?_0x3fc2b9[_0x2940b1('0xb18')][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x1f95')]][_0x2940b1('0xb18')][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x62d')]]+=0x1:_0x3fc2b9[_0x2940b1('0xb18')][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x1f95')]]['answers'][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x62d')]]=0x1,_0x3fc2b9[_0x2940b1('0xb18')][_0x1d9cf5[_0x2940b1('0x16a7')][_0x57d97c][_0x2940b1('0x1f95')]][_0x2940b1('0x1cba')]+=0x1);}}})[_0x256624('0x223b')](function(_0x16e881){var _0x5548b3=_0x256624;_0x4881c0['error']({'title':_0x16e881[_0x5548b3('0x2833')]?_0x5548b3('0x27f2')+_0x16e881['status']+'\x20-\x20'+_0x16e881[_0x5548b3('0x1fd7')]:_0x5548b3('0x1ac1'),'msg':_0x16e881[_0x5548b3('0x11d0')]?JSON[_0x5548b3('0x3ad')](_0x16e881['data']):_0x16e881[_0x5548b3('0x94f')]()});});}function _0x177a92(_0xc2279f){var _0x76234c=_0x534fb7;_0x3fc2b9[_0x76234c('0x38b')]=_0xc2279f,_0x3fc2b9[_0x76234c('0x152a')]();}function _0x331ec0(){var _0x49897b=_0x534fb7;return _0x3620ee[_0x49897b('0x6c7')][_0x49897b('0x19c1')]({'id':_0x3fc2b9[_0x49897b('0x38b')]['id'],'startTime':{'$gte':_0x3fc2b9['pickerModel'][_0x49897b('0x114e')],'$lte':_0x4ddcaa()(_0x3fc2b9['pickerModel'][_0x49897b('0x36a')])[_0x49897b('0xaf8')](0x17,_0x49897b('0x1c59'))[_0x49897b('0xaf8')](0x3b,'minutes')['add'](0x3b,_0x49897b('0x8ec'))[_0x49897b('0x5e5')]()},'nolimit':!![]})[_0x49897b('0xe59')][_0x49897b('0xe19')](function(_0x5be9df){var _0x4a7fe7=_0x49897b;if(typeof _0x5be9df[_0x4a7fe7('0x25ae')]!==_0x4a7fe7('0x1143')){var _0x1abf88=[_0x5be9df[_0x4a7fe7('0x17ab')]],_0x1be4cb=new Blob(_0x1abf88,{'type':_0x5be9df['type']}),_0x5ab312=window['document']['createElement']('a');_0x5ab312[_0x4a7fe7('0xede')](_0x4a7fe7('0xcb7'),URL[_0x4a7fe7('0x1360')](_0x1be4cb)),_0x5ab312['setAttribute']('download',_0x4a7fe7('0x2698')+_0x3fc2b9[_0x4a7fe7('0x38b')]['id']+_0x4a7fe7('0x10de')),_0x5ab312[_0x4a7fe7('0xfe7')]();}else _0x4881c0['info']({'title':_0x4a7fe7('0x1b88'),'msg':_0x4a7fe7('0x8fd')});})['catch'](function(_0x5e8ac4){var _0xf01fb4=_0x49897b;_0x4881c0[_0xf01fb4('0x8c8')]({'title':_0x5e8ac4[_0xf01fb4('0x2833')]?_0xf01fb4('0x27f2')+_0x5e8ac4['status']+_0xf01fb4('0x1b7c')+_0x5e8ac4[_0xf01fb4('0x1fd7')]:'api.jscriptyProject.getSummary','msg':_0x5e8ac4['data']?JSON[_0xf01fb4('0x3ad')](_0x5e8ac4[_0xf01fb4('0x11d0')]):_0x5e8ac4[_0xf01fb4('0x94f')]()});});}}const _0x27e81e=_0x3f4a8e;;function _0x198a88(){var _0x1b6f98=_0xb635d2,_0x46fd09=this;_0x46fd09['project']={},_0x46fd09[_0x1b6f98('0x1150')]={'questionTypes':['text',_0x1b6f98('0x777'),_0x1b6f98('0xe92'),_0x1b6f98('0x192f'),'select',_0x1b6f98('0x1c60'),_0x1b6f98('0xf6d'),_0x1b6f98('0x1297'),_0x1b6f98('0x1211'),_0x1b6f98('0xb83'),_0x1b6f98('0x2647')],'elementTypes':[_0x1b6f98('0x1805'),_0x1b6f98('0xaba')]},_0x46fd09[_0x1b6f98('0x15f9')]=_0x5345f7,_0x46fd09[_0x1b6f98('0x3fd')]=_0x4e6606;function _0x4e6606(_0x4eb8de){var _0x2aa54d=_0x1b6f98;if(_0x32d445()[_0x2aa54d('0xe44')](_0x4eb8de))return![];try{JSON['parse'](_0x4eb8de);}catch(_0x496e39){return![];}return!![];}function _0x5345f7(_0xfb6d1f){var _0x417435=_0x1b6f98;_0x46fd09[_0x417435('0x38b')]=_0xfb6d1f;if(_0x32d445()['isObjectLike'](_0xfb6d1f['formData']))_0x46fd09[_0x417435('0x38b')][_0x417435('0x2470')]=_0xfb6d1f[_0x417435('0x2470')];else _0x46fd09[_0x417435('0x3fd')](_0xfb6d1f[_0x417435('0x2470')])?_0x46fd09[_0x417435('0x38b')]['formData']=JSON[_0x417435('0x118e')](_0xfb6d1f['formData']):_0x46fd09['project'][_0x417435('0x2470')]={};}}const _0x463b09=_0x198a88;_0x197cae[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$state','toasty',_0xb635d2('0xffc'),_0xb635d2('0x38b'),_0xb635d2('0x1d39'),_0xb635d2('0x2493')];function _0x197cae(_0x468717,_0x160320,_0x40ce72,_0x281fb2,_0x1da498,_0x144356,_0xe72602){var _0x50b935=_0xb635d2,_0x5c721d=this;_0x5c721d[_0x50b935('0x81')]=!![],_0x5c721d[_0x50b935('0x38b')]=angular[_0x50b935('0x89')](_0x1da498),_0x5c721d['projects']=_0x144356,_0x5c721d['title']=_0xe72602['instant'](_0x50b935('0x1f44'));_0x1da498&&_0x1da498[_0x50b935('0x2623')]&&(_0x5c721d[_0x50b935('0x13e4')]+=':\x20'+_0x1da498[_0x50b935('0x2623')]);_0x5c721d['cloneProject']=_0x584a80,_0x5c721d[_0x50b935('0x2584')]=_0x1c926a;function _0x584a80(){var _0x4a0b5e=_0x50b935;return _0x281fb2['jscriptyProject'][_0x4a0b5e('0x2384')]({'id':_0x1da498['id']},_0x5c721d[_0x4a0b5e('0x38b')])[_0x4a0b5e('0xe59')][_0x4a0b5e('0xe19')](function(_0x5ee77e){var _0x15b0c5=_0x4a0b5e;_0x5c721d[_0x15b0c5('0x1d39')][_0x15b0c5('0x14c9')](_0x5ee77e[_0x15b0c5('0x250e')]()),_0x40ce72[_0x15b0c5('0x425')]({'title':_0x15b0c5('0xd8e'),'msg':_0x5c721d[_0x15b0c5('0x38b')][_0x15b0c5('0x2623')]?_0x5c721d[_0x15b0c5('0x38b')]['name']+'\x20has\x20been\x20cloned!':''}),_0x160320['go'](_0x15b0c5('0x171e'),{'id':_0x5ee77e['id']}),_0x1c926a(_0x5ee77e);})[_0x4a0b5e('0x223b')](function(_0x5db669){var _0x3f7429=_0x4a0b5e;if(_0x5db669[_0x3f7429('0x11d0')]&&_0x5db669['data'][_0x3f7429('0xcd2')]&&_0x5db669['data'][_0x3f7429('0xcd2')][_0x3f7429('0x25ae')]){_0x5c721d[_0x3f7429('0xcd2')]=_0x5db669['data'][_0x3f7429('0xcd2')]||[{'message':_0x5db669[_0x3f7429('0x94f')](),'type':'api.jscriptyProject.clone'}];for(var _0x156815=0x0;_0x156815<_0x5db669['data'][_0x3f7429('0xcd2')][_0x3f7429('0x25ae')];_0x156815+=0x1){_0x40ce72['error']({'title':_0x5db669[_0x3f7429('0x11d0')][_0x3f7429('0xcd2')][_0x156815][_0x3f7429('0x62e')],'msg':_0x5db669['data'][_0x3f7429('0xcd2')][_0x156815][_0x3f7429('0x27e8')]});}}else _0x40ce72[_0x3f7429('0x8c8')]({'title':_0x5db669[_0x3f7429('0x2833')]?_0x3f7429('0x27f2')+_0x5db669[_0x3f7429('0x2833')]+_0x3f7429('0x1b7c')+_0x5db669[_0x3f7429('0x1fd7')]:'api.jscriptyProject.clone','msg':_0x5db669[_0x3f7429('0x11d0')]?JSON[_0x3f7429('0x3ad')](_0x5db669[_0x3f7429('0x11d0')][_0x3f7429('0x27e8')]):_0x5db669[_0x3f7429('0x94f')]()});});}function _0x1c926a(_0x1da2cb){var _0x208c8b=_0x50b935;_0x468717[_0x208c8b('0x11ed')](_0x1da2cb);}}const _0x122f65=_0x197cae;_0x1d9b9b[_0xb635d2('0xb0c')]=['$q',_0xb635d2('0x1c9f'),_0xb635d2('0x63c')];function _0x1d9b9b(_0x1c41ad,_0x3a785e,_0x14816f){var _0x3598bb=_0xb635d2,_0x5cf713=this;_0x5cf713[_0x3598bb('0x38b')]={},_0x5cf713[_0x3598bb('0x1708')]={},_0x5cf713[_0x3598bb('0x6f8')]={},_0x5cf713[_0x3598bb('0x15f9')]=_0x58c588,_0x5cf713[_0x3598bb('0x4a3')]=_0x4b1223,_0x5cf713[_0x3598bb('0x2050')]=_0x2e9a78;function _0x58c588(_0x381a4d){var _0x1316be=_0x3598bb;_0x5cf713[_0x1316be('0x38b')]=_0x381a4d,_0x14816f[_0x1316be('0xb2b')](_0x1316be('0x244b'),function(_0x5761e7,_0x3df57c){var _0x4c0e29=_0x1316be;if(_0x3df57c[_0x4c0e29('0x505')]&&_0x5cf713['project'][_0x4c0e29('0x2470')]&&_0x5cf713['project'][_0x4c0e29('0x2470')]['pages'])for(var _0x484036=0x0,_0x1c36fb=_0x5cf713[_0x4c0e29('0x38b')]['formData'][_0x4c0e29('0x1b1d')]['length'];_0x484036<_0x1c36fb;_0x484036++){if(_0x3df57c['currentPage'][_0x4c0e29('0x1c60')]<_0x484036+0x1&&_0x5cf713[_0x4c0e29('0x38b')][_0x4c0e29('0x2470')]['pages'][_0x484036][_0x4c0e29('0x188f')])for(var _0x52212e=0x0,_0x38da2f=_0x5cf713[_0x4c0e29('0x38b')][_0x4c0e29('0x2470')][_0x4c0e29('0x1b1d')][_0x484036][_0x4c0e29('0x188f')][_0x4c0e29('0x25ae')];_0x52212e<_0x38da2f;_0x52212e++){_0x5cf713['project'][_0x4c0e29('0x2470')]['pages'][_0x484036][_0x4c0e29('0x188f')][_0x52212e][_0x4c0e29('0x62e')]===_0x4c0e29('0x1805')&&_0x5cf713[_0x4c0e29('0x38b')]['formData'][_0x4c0e29('0x1b1d')][_0x484036]['elements'][_0x52212e]['question']&&delete _0x5cf713[_0x4c0e29('0x1708')][_0x5cf713[_0x4c0e29('0x38b')]['formData'][_0x4c0e29('0x1b1d')][_0x484036]['elements'][_0x52212e][_0x4c0e29('0x1805')]['id']];}}});}function _0x4b1223(_0x5975ab){var _0x12dec9=_0x3598bb,_0x1cdb42=_0x1c41ad[_0x12dec9('0x178')](),_0x4fdb01=_0x3a785e[_0x12dec9('0xa5')]()[_0x12dec9('0x13e4')](_0x12dec9('0x97f'))[_0x12dec9('0x2719')]('')[_0x12dec9('0x4d1')](_0x12dec9('0x266'))['targetEvent'](_0x5975ab)['ok'](_0x12dec9('0x7d9'))[_0x12dec9('0x2c1')]('CANCEL');return _0x3a785e['show'](_0x4fdb01)[_0x12dec9('0xe19')](function(){var _0x32b596=_0x12dec9;_0x1cdb42[_0x32b596('0xcd6')](!![]);},function(){var _0x42b979=_0x12dec9;_0x1cdb42[_0x42b979('0x1337')]();}),_0x1cdb42[_0x12dec9('0x9c8')];}function _0x2e9a78(){var _0x2e8d4f=_0x3598bb;_0x5cf713[_0x2e8d4f('0x6f8')][_0x2e8d4f('0x1590')]&&_0x5cf713[_0x2e8d4f('0x6f8')][_0x2e8d4f('0x1590')]();}}const _0x506cb9=_0x1d9b9b,_0x5623eb=_0x59426a['p']+'src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html/dialog-[chunkhash].html';_0x10548f[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),'$state','$q','$translate',_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'Auth'];function _0x10548f(_0x11a4a8,_0x4528bf,_0x31cb9f,_0x1feb6d,_0x1295aa,_0x7275bc,_0x37aedd,_0x3ee998,_0x426497,_0x3a8df0,_0x562b6f){var _0x4a72d7=_0xb635d2,_0x222fa1=this;_0x222fa1[_0x4a72d7('0x15a5')]=_0x562b6f[_0x4a72d7('0x1ef8')](),_0x222fa1[_0x4a72d7('0x38b')]={},_0x222fa1[_0x4a72d7('0x17e0')]={'count':0x0,'rows':[]},_0x222fa1[_0x4a72d7('0x1d4')]=[],_0x222fa1[_0x4a72d7('0xb3d')],_0x222fa1['query']={'fields':_0x4a72d7('0x174f'),'sort':_0x4a72d7('0xdb3'),'limit':0xa,'page':0x1},_0x222fa1[_0x4a72d7('0x15f9')]=_0x53baed,_0x222fa1['deleteConfirm']=_0x1e538c,_0x222fa1[_0x4a72d7('0x425')]=_0x58a263,_0x222fa1[_0x4a72d7('0x27af')]=_0x48d163,_0x222fa1[_0x4a72d7('0xc56')]=_0x4c61c1,_0x222fa1[_0x4a72d7('0x21fb')]=_0xdfeffc,_0x222fa1[_0x4a72d7('0x7c9')]=_0x571c52,_0x222fa1[_0x4a72d7('0x8f1')]=_0x1fd710,_0x222fa1['deleteSelectedProjectSessions']=_0x52b344;function _0x53baed(_0x21f66e,_0x5143c5){var _0x4ae09d=_0x4a72d7;_0x222fa1[_0x4ae09d('0x38b')]=_0x21f66e,_0x222fa1[_0x4ae09d('0xb3d')]=typeof _0x5143c5!==_0x4ae09d('0x1143')?_0x5143c5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x222fa1[_0x4ae09d('0xa16')]['id']=_0x222fa1[_0x4ae09d('0x38b')]['id'],_0x48d163();}function _0x1e538c(_0x4634fc,_0xbfe9a2){var _0x93314d=_0x4a72d7,_0x423620=_0x37aedd[_0x93314d('0xa5')]()[_0x93314d('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?')[_0x93314d('0x221c')](''+(_0x4634fc[_0x93314d('0x2623')]||_0x4634fc['id']&&_0x32d445()['upperFirst'](_0x93314d('0x1ad2'))+_0x4634fc['id']||_0x93314d('0x2330'))+_0x93314d('0x27bb')+_0x93314d('0x21bd'))[_0x93314d('0x4d1')]('delete\x20session')[_0x93314d('0x1345')](_0xbfe9a2)['ok']('OK')['cancel'](_0x93314d('0x17'));_0x37aedd[_0x93314d('0x26b2')](_0x423620)['then'](function(){_0x1fd710(_0x4634fc);},function(){var _0x54f893=_0x93314d;console[_0x54f893('0x1fe9')](_0x54f893('0x17'));});}function _0x58a263(_0x2e26e8){var _0x17fccb=_0x4a72d7;_0x222fa1[_0x17fccb('0x17e0')]=_0x2e26e8||{'count':0x0,'rows':[]};}function _0x48d163(){var _0x19837d=_0x4a72d7;_0x222fa1['query'][_0x19837d('0xab0')]=(_0x222fa1[_0x19837d('0xa16')]['page']-0x1)*_0x222fa1['query']['limit'],_0x222fa1[_0x19837d('0x9c8')]=_0x3a8df0[_0x19837d('0x6c7')]['getSessions'](_0x222fa1[_0x19837d('0xa16')],_0x58a263)['$promise'];}function _0x4c61c1(_0x32d312,_0x2dd752){var _0x58a764=_0x4a72d7;_0x37aedd[_0x58a764('0x26b2')]({'controller':_0x58a764('0x1f8f'),'controllerAs':'vm','templateUrl':_0x5623eb,'parent':angular[_0x58a764('0x24a1')](_0x3ee998['body']),'targetEvent':_0x32d312,'clickOutsideToClose':!![],'locals':{'project':_0x222fa1['project'],'session':_0x2dd752,'sessions':_0x222fa1['projectSessions'][_0x58a764('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x222fa1[_0x58a764('0xb3d')]}});}function _0xdfeffc(_0x1b0658,_0x8e857d){var _0xf2f386=_0x4a72d7;_0x37aedd['show']({'controller':_0xf2f386('0x3a8'),'controllerAs':'vm','templateUrl':_0x5623eb,'parent':angular['element'](_0x3ee998['body']),'targetEvent':_0x1b0658,'clickOutsideToClose':!![],'resolve':{'questions':[_0xf2f386('0x292'),function _0x2b4b1a(_0x4c1599){var _0x545e62=_0xf2f386;return _0x4c1599[_0x545e62('0xcd6')]('jscriptySessionReport@getQuestions',{'fields':_0x545e62('0x1480'),'sort':'id','id':_0x8e857d['id']});}]},'locals':{'project':_0x222fa1[_0xf2f386('0x38b')],'session':_0x8e857d}});}function _0x1fd710(_0x15b8d2){var _0x2e98b2=_0x4a72d7;_0x3a8df0[_0x2e98b2('0xc4e')]['delete']({'id':_0x15b8d2['id']})[_0x2e98b2('0xe59')]['then'](function(){var _0x5ea72e=_0x2e98b2;_0x32d445()['remove'](_0x222fa1[_0x5ea72e('0x17e0')]['rows'],{'id':_0x15b8d2['id']}),_0x222fa1['projectSessions'][_0x5ea72e('0x148b')]-=0x1,!_0x222fa1[_0x5ea72e('0x17e0')][_0x5ea72e('0x16a7')]['length']&&_0x48d163(),_0x426497[_0x5ea72e('0x425')]({'title':_0x5ea72e('0x1b91'),'msg':_0x15b8d2[_0x5ea72e('0x2623')]?_0x15b8d2['name']+_0x5ea72e('0x2182'):''});})[_0x2e98b2('0x223b')](function(_0x413378){var _0x1baf95=_0x2e98b2;if(_0x413378[_0x1baf95('0x11d0')]&&_0x413378[_0x1baf95('0x11d0')][_0x1baf95('0xcd2')]&&_0x413378['data'][_0x1baf95('0xcd2')][_0x1baf95('0x25ae')]){_0x222fa1[_0x1baf95('0xcd2')]=_0x413378['data'][_0x1baf95('0xcd2')]||[{'message':_0x413378[_0x1baf95('0x94f')](),'type':'SYSTEM:GETjscriptyProject'}];for(var _0x4ef604=0x0;_0x4ef604<_0x413378[_0x1baf95('0x11d0')]['errors'][_0x1baf95('0x25ae')];_0x4ef604++){_0x426497[_0x1baf95('0x8c8')]({'title':_0x413378['data'][_0x1baf95('0xcd2')][_0x4ef604][_0x1baf95('0x62e')],'msg':_0x413378[_0x1baf95('0x11d0')][_0x1baf95('0xcd2')][_0x4ef604][_0x1baf95('0x27e8')]});}}else _0x426497[_0x1baf95('0x8c8')]({'title':_0x413378[_0x1baf95('0x2833')]?_0x1baf95('0x27f2')+_0x413378[_0x1baf95('0x2833')]+'\x20-\x20'+_0x413378[_0x1baf95('0x1fd7')]:_0x1baf95('0x1510'),'msg':_0x413378[_0x1baf95('0x11d0')]?JSON[_0x1baf95('0x3ad')](_0x413378[_0x1baf95('0x11d0')][_0x1baf95('0x27e8')]):_0x413378['message']||_0x413378[_0x1baf95('0x94f')]()});});}function _0x571c52(){var _0x1200b6=_0x4a72d7,_0x364d12=angular['copy'](_0x222fa1['selectedProjectSessions']);return _0x222fa1[_0x1200b6('0x1d4')]=[],_0x364d12;}function _0x52b344(_0x39a984){var _0x169806=_0x4a72d7,_0x93dccb=_0x37aedd[_0x169806('0xa5')]()['title'](_0x169806('0x1cbf'))[_0x169806('0x221c')](_0x169806('0xab2')+_0x222fa1[_0x169806('0x1d4')][_0x169806('0x25ae')]+_0x169806('0x5bc')+_0x169806('0x21bd'))[_0x169806('0x4d1')]('delete\x20sessions')[_0x169806('0x1345')](_0x39a984)['ok']('OK')[_0x169806('0x2c1')](_0x169806('0x17'));_0x37aedd['show'](_0x93dccb)[_0x169806('0xe19')](function(){var _0x4e5833=_0x169806;_0x222fa1[_0x4e5833('0x1d4')][_0x4e5833('0x1d7e')](function(_0x1c5575){_0x1fd710(_0x1c5575);}),_0x222fa1[_0x4e5833('0x1d4')]=[];});}var _0x395211=!![],_0x2c72e0=0x1;_0x4528bf[_0x4a72d7('0x107')]('vm_dc.query.filter',function(_0x4ba8c2,_0x2d5bcd){var _0x4b00d7=_0x4a72d7;_0x395211?_0x7275bc(function(){_0x395211=![];}):(!_0x2d5bcd&&(_0x2c72e0=_0x222fa1[_0x4b00d7('0xa16')][_0x4b00d7('0xc08')]),_0x4ba8c2!==_0x2d5bcd&&(_0x222fa1['query'][_0x4b00d7('0xc08')]=0x1),!_0x4ba8c2&&(_0x222fa1[_0x4b00d7('0xa16')][_0x4b00d7('0xc08')]=_0x2c72e0),_0x48d163());});}const _0x2b334d=_0x10548f;_0x205515[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'toasty',_0xb635d2('0x2330'),_0xb635d2('0x14cd'),_0xb635d2('0x38b')];function _0x205515(_0x4371df,_0x59c004,_0x13393d,_0x4d63de,_0x2911a7,_0xcf064c,_0x42be67,_0x4649f6){var _0x34db35=_0xb635d2,_0x4a251a=this;_0x4a251a[_0x34db35('0x13e4')]=_0x34db35('0x1f3f'),_0x4a251a[_0x34db35('0x2330')]=_0xcf064c,_0x4a251a['questions']=_0x42be67,_0x4a251a['project']=_0x4649f6;function _0x1c4f57(_0x435b05){var _0x46c425=_0x34db35;_0x4d63de[_0x46c425('0x11ed')](_0x435b05);}_0x4a251a['closeDialog']=_0x1c4f57;}const _0x31d387=_0x205515,_0x1e3694=_0x59426a['p']+'src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html/clone-[chunkhash].html';_0x5b39ce[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),'$mdDialog','$document','$translate',_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730'),'project',_0xb635d2('0xb59')];function _0x5b39ce(_0x1817a7,_0x5e0980,_0x296960,_0x87375b,_0x26f0f4,_0x4ac84f,_0x4368e8,_0x51abe9,_0x4f702f,_0x54a0dd,_0x461f65,_0x5cfa44){var _0x57f6a=_0xb635d2,_0x1380cb=this;_0x1380cb['currentUser']=_0x54a0dd[_0x57f6a('0x1ef8')](),_0x1380cb[_0x57f6a('0x5c1')]=_0x4ac84f,_0x1380cb['setting']=_0x4368e8,_0x1380cb['passwordPattern']=_0x1380cb[_0x57f6a('0x22f1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1380cb[_0x57f6a('0x2170')]=_0x5e0980[_0x57f6a('0xec0')]()+_0x57f6a('0x21a8')+_0x5e0980[_0x57f6a('0x3b7')](),_0x1380cb['project']=_0x461f65||_0x1817a7['params'][_0x57f6a('0x38b')]||{},_0x1380cb['userProfileSection']=_0x5cfa44&&_0x5cfa44['count']==0x1?_0x5cfa44[_0x57f6a('0x16a7')][0x0]:null,_0x1380cb['crudPermissions']=_0x54a0dd[_0x57f6a('0xd31')](_0x1380cb[_0x57f6a('0xb59')]?_0x1380cb[_0x57f6a('0xb59')][_0x57f6a('0xb3d')]:null),_0x1380cb[_0x57f6a('0x1ccb')]={},_0x1380cb[_0x57f6a('0xc7b')]=_0x1817a7['params']['tab']||0x0,_0x1380cb[_0x57f6a('0x26b7')]=_0x36015e,_0x1380cb[_0x57f6a('0xbdc')]=_0x4f702f['info'],_0x1380cb[_0x57f6a('0x1be9')]=_0x1b687e,_0x1380cb['saveProject']=_0x278a58;function _0x36015e(_0x3412b6,_0x35fba8){var _0x55bcfe=_0x57f6a;_0x296960[_0x55bcfe('0x26b2')]({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0x1e3694,'parent':angular['element'](_0x87375b[_0x55bcfe('0x19b2')]),'targetEvent':_0x35fba8,'clickOutsideToClose':!![],'locals':{'project':_0x3412b6,'projects':_0x1380cb[_0x55bcfe('0x1d39')]?_0x1380cb[_0x55bcfe('0x1d39')][_0x55bcfe('0x16a7')]:[],'crudPermissions':_0x1380cb[_0x55bcfe('0xb3d')]}});}function _0x1b687e(){var _0x5419fd=_0x57f6a;_0x1817a7['go'](_0x5419fd('0x574'),{},{'reload':'app.jscripty.projects'});}function _0x278a58(){var _0x40ae40=_0x57f6a;_0x51abe9[_0x40ae40('0x6c7')][_0x40ae40('0xa70')]({'id':_0x1380cb['project']['id']},_0x1380cb['project'])[_0x40ae40('0xe59')]['then'](function(){var _0x7c0bf0=_0x40ae40;_0x4f702f[_0x7c0bf0('0x425')]({'title':'Project\x20updated!','msg':_0x1380cb['project']['name']?_0x1380cb[_0x7c0bf0('0x38b')]['name']+'\x20has\x20been\x20updated!':''});})[_0x40ae40('0x223b')](function(_0x49d237){var _0x510766=_0x40ae40;_0x4f702f[_0x510766('0x8c8')]({'title':_0x49d237[_0x510766('0x2833')]?_0x510766('0x27f2')+_0x49d237[_0x510766('0x2833')]+_0x510766('0x1b7c')+_0x49d237[_0x510766('0x1fd7')]:_0x510766('0x1510'),'msg':_0x49d237['data']?JSON[_0x510766('0x3ad')](_0x49d237['data']):_0x49d237['toString']()});});}}const _0x1078cb=_0x5b39ce,_0x2a7f3f=_0x59426a['p']+_0xb635d2('0x2092');_0x5f2857[_0xb635d2('0xb0c')]=['$scope','$window','$state','$mdSidenav',_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$timeout',_0xb635d2('0x2493'),_0xb635d2('0x1d39'),_0xb635d2('0x154f'),'userProfileSection','api','msUtils','toasty',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting'];function _0x5f2857(_0x1afef7,_0x31be96,_0x1164c8,_0x59ac71,_0x44a1b0,_0x584f2b,_0x2da71f,_0x2ea583,_0xbe0e6e,_0x4eb3e4,_0x393122,_0x4d485b,_0x5cd8bd,_0x5c5eff,_0x1a7550,_0x1d5afb,_0x561208){var _0xdf7861=_0xb635d2,_0x983d86=this;_0x983d86[_0xdf7861('0x5c1')]=_0x1d5afb,_0x983d86[_0xdf7861('0x22f1')]=_0x561208,_0x983d86[_0xdf7861('0x15a5')]=_0x1a7550[_0xdf7861('0x1ef8')](),_0x983d86[_0xdf7861('0x1d39')]=_0xbe0e6e||{'count':0x0,'rows':[]},_0x983d86['userProfile']=_0x4eb3e4,_0x983d86[_0xdf7861('0xb59')]=_0x393122&&_0x393122[_0xdf7861('0x148b')]==0x1?_0x393122['rows'][0x0]:null,_0x983d86[_0xdf7861('0xb3d')]=_0x1a7550['parseCrudPermissions'](_0x983d86['userProfileSection']?_0x983d86[_0xdf7861('0xb59')][_0xdf7861('0xb3d')]:null),_0x983d86[_0xdf7861('0x19b6')]='projects',_0x983d86[_0xdf7861('0x14d6')]='',_0x983d86['listOrderAsc']=null,_0x983d86[_0xdf7861('0x1bed')]=[],_0x983d86[_0xdf7861('0xa16')]={'fields':_0xdf7861('0x1ae5'),'sort':_0xdf7861('0x7e8'),'limit':0xa,'page':0x1},_0x983d86[_0xdf7861('0x16a0')]=_0x413215,_0x983d86[_0xdf7861('0x26b7')]=_0x1b985b,_0x983d86[_0xdf7861('0x1845')]=_0x3fa81b,_0x983d86[_0xdf7861('0x1d9e')]=_0x251af3,_0x983d86[_0xdf7861('0x425')]=_0x1a0a0b,_0x983d86[_0xdf7861('0x1834')]=_0x340e75,_0x983d86[_0xdf7861('0x261')]=_0x4843f8,_0x983d86['deleteProject']=_0x2d48c4,_0x983d86[_0xdf7861('0x51')]=_0x29c51e,_0x983d86[_0xdf7861('0x15f5')]=_0x1caf97,_0x983d86['deselectProjects']=_0x12163e,_0x983d86['selectAllProjects']=_0x16a6b2;function _0x413215(_0x5606ef){var _0x2346a5=_0xdf7861;_0x1164c8['go'](_0x2346a5('0x171e'),{'id':_0x5606ef['id'],'project':_0x5606ef,'crudPermissions':_0x983d86[_0x2346a5('0xb3d')]});}function _0x1b985b(_0x13f28e,_0x18c77b){var _0x4cdca7=_0xdf7861;_0x44a1b0[_0x4cdca7('0x26b2')]({'controller':_0x4cdca7('0x2524'),'controllerAs':'vm','templateUrl':_0x1e3694,'parent':angular[_0x4cdca7('0x24a1')](_0x584f2b[_0x4cdca7('0x19b2')]),'targetEvent':_0x18c77b,'clickOutsideToClose':!![],'locals':{'project':_0x13f28e,'projects':_0x983d86[_0x4cdca7('0x1d39')]?_0x983d86['projects']['rows']:[],'crudPermissions':_0x983d86[_0x4cdca7('0xb3d')]}});}function _0x3fa81b(_0x4de675){var _0xec3ad7=_0xdf7861;_0x1164c8['go'](_0xec3ad7('0x171e'),{'id':_0x4de675['id'],'tab':0x3});}function _0x251af3(_0x4f93f7,_0x190669){var _0xa128f3=_0xdf7861,_0x5ac503=_0x44a1b0[_0xa128f3('0xa5')]()['title'](_0xa128f3('0x346')+_0x32d445()[_0xa128f3('0x1df2')](_0xa128f3('0x38b'))+'?')[_0xa128f3('0x221c')](''+(_0x4f93f7[_0xa128f3('0x2623')]||_0xa128f3('0x38b'))+_0xa128f3('0x27bb')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0xa128f3('0x2620'))[_0xa128f3('0x1345')](_0x190669)['ok']('OK')[_0xa128f3('0x2c1')]('CANCEL');_0x44a1b0[_0xa128f3('0x26b2')](_0x5ac503)[_0xa128f3('0xe19')](function(){_0x2d48c4(_0x4f93f7);},function(){var _0xccf07a=_0xa128f3;console[_0xccf07a('0x1fe9')](_0xccf07a('0x17'));});}var _0x483158=!![],_0x561ebf=0x1;_0x1afef7[_0xdf7861('0x107')](_0xdf7861('0x20cb'),function(_0x5bd2ac,_0x7967d5){var _0x3ee701=_0xdf7861;_0x483158?_0x2da71f(function(){_0x483158=![];}):(!_0x7967d5&&(_0x561ebf=_0x983d86[_0x3ee701('0xa16')]['page']),_0x5bd2ac!==_0x7967d5&&(_0x983d86[_0x3ee701('0xa16')][_0x3ee701('0xc08')]=0x1),!_0x5bd2ac&&(_0x983d86['query']['page']=_0x561ebf),_0x983d86[_0x3ee701('0x1834')]());});function _0x1a0a0b(_0x416000){var _0x569fd2=_0xdf7861;_0x983d86[_0x569fd2('0x1d39')]=_0x416000||{'count':0x0,'rows':[]};}function _0x340e75(){var _0x18ac54=_0xdf7861;_0x983d86[_0x18ac54('0xa16')][_0x18ac54('0xab0')]=(_0x983d86[_0x18ac54('0xa16')]['page']-0x1)*_0x983d86[_0x18ac54('0xa16')][_0x18ac54('0x1b6d')],_0x1a7550[_0x18ac54('0x179e')](_0x18ac54('0xd14'))?_0x983d86[_0x18ac54('0x9c8')]=_0x4d485b[_0x18ac54('0x6c7')][_0x18ac54('0x22d5')](_0x983d86[_0x18ac54('0xa16')],_0x1a0a0b)[_0x18ac54('0xe59')]:(_0x983d86[_0x18ac54('0xa16')]['id']=_0x983d86[_0x18ac54('0x154f')]['id'],_0x983d86[_0x18ac54('0xa16')][_0x18ac54('0x1e59')]=_0x18ac54('0x9af'),_0x983d86[_0x18ac54('0x9c8')]=_0x4d485b[_0x18ac54('0x154f')][_0x18ac54('0x14e6')](_0x983d86[_0x18ac54('0xa16')],_0x1a0a0b)[_0x18ac54('0xe59')]);}function _0x4843f8(_0xdfbbd3,_0x1c3750){var _0x1c8bc9=_0xdf7861;_0x44a1b0[_0x1c8bc9('0x26b2')]({'controller':_0x1c8bc9('0xcaf'),'controllerAs':'vm','templateUrl':_0x2a7f3f,'parent':angular[_0x1c8bc9('0x24a1')](_0x584f2b[_0x1c8bc9('0x19b2')]),'targetEvent':_0xdfbbd3,'clickOutsideToClose':!![],'locals':{'project':_0x1c3750,'projects':_0x983d86[_0x1c8bc9('0x1d39')][_0x1c8bc9('0x16a7')],'license':_0x983d86[_0x1c8bc9('0x5c1')],'setting':_0x983d86[_0x1c8bc9('0x22f1')],'crudPermissions':_0x983d86[_0x1c8bc9('0xb3d')]}});}function _0x2d48c4(_0x10a46c){var _0x29d567=_0xdf7861;_0x4d485b['jscriptyProject'][_0x29d567('0x229e')]({'id':_0x10a46c['id']})[_0x29d567('0xe59')][_0x29d567('0xe19')](function(){var _0x395e58=_0x29d567;_0x32d445()['remove'](_0x983d86['projects'][_0x395e58('0x16a7')],{'id':_0x10a46c['id']}),_0x983d86[_0x395e58('0x1d39')][_0x395e58('0x148b')]-=0x1,!_0x983d86[_0x395e58('0x1d39')][_0x395e58('0x16a7')][_0x395e58('0x25ae')]&&_0x983d86['getProjects'](),_0x5c5eff[_0x395e58('0x425')]({'title':_0x32d445()[_0x395e58('0x1df2')](_0x395e58('0x27c9'))+_0x395e58('0x1219'),'msg':_0x10a46c[_0x395e58('0x2623')]?_0x10a46c[_0x395e58('0x2623')]+_0x395e58('0x2182'):''});})[_0x29d567('0x223b')](function(_0x3b5e60){var _0x255c54=_0x29d567;if(_0x3b5e60[_0x255c54('0x11d0')]&&_0x3b5e60['data'][_0x255c54('0xcd2')]&&_0x3b5e60['data'][_0x255c54('0xcd2')][_0x255c54('0x25ae')]){_0x983d86[_0x255c54('0xcd2')]=_0x3b5e60[_0x255c54('0x11d0')][_0x255c54('0xcd2')]||[{'message':_0x3b5e60[_0x255c54('0x94f')](),'type':'SYSTEM:DELETEjscriptyProject'}];for(var _0x249d0d=0x0;_0x249d0d<_0x3b5e60[_0x255c54('0x11d0')]['errors']['length'];_0x249d0d++){_0x5c5eff[_0x255c54('0x8c8')]({'title':_0x3b5e60['data'][_0x255c54('0xcd2')][_0x249d0d]['type'],'msg':_0x3b5e60['data'][_0x255c54('0xcd2')][_0x249d0d]['message']});}}else _0x5c5eff[_0x255c54('0x8c8')]({'title':_0x3b5e60[_0x255c54('0x2833')]?_0x255c54('0x27f2')+_0x3b5e60[_0x255c54('0x2833')]+_0x255c54('0x1b7c')+_0x3b5e60[_0x255c54('0x1fd7')]:_0x255c54('0xe6d'),'msg':_0x3b5e60[_0x255c54('0x11d0')]?JSON['stringify'](_0x3b5e60['data'][_0x255c54('0x27e8')]):_0x3b5e60[_0x255c54('0x27e8')]||_0x3b5e60['toString']()});});}function _0x29c51e(){var _0x4bb8ee=_0xdf7861,_0x260438=angular[_0x4bb8ee('0x89')](_0x983d86[_0x4bb8ee('0x1bed')]);return _0x983d86['selectedProjects']=[],_0x260438;}function _0x1caf97(_0xdb2c9){var _0x7f3c17=_0xdf7861,_0x581127=_0x44a1b0[_0x7f3c17('0xa5')]()['title'](_0x7f3c17('0x32e'))[_0x7f3c17('0x221c')](_0x7f3c17('0xab2')+_0x983d86[_0x7f3c17('0x1bed')][_0x7f3c17('0x25ae')]+_0x7f3c17('0x5bc')+_0x7f3c17('0x21bd'))[_0x7f3c17('0x4d1')]('delete\x20Projects')[_0x7f3c17('0x1345')](_0xdb2c9)['ok']('OK')[_0x7f3c17('0x2c1')](_0x7f3c17('0x17'));_0x44a1b0[_0x7f3c17('0x26b2')](_0x581127)[_0x7f3c17('0xe19')](function(){var _0x27d06b=_0x7f3c17;_0x983d86[_0x27d06b('0x1bed')][_0x27d06b('0x1d7e')](function(_0x2f7c2a){_0x2d48c4(_0x2f7c2a);}),_0x983d86['selectedProjects']=[];});}function _0x12163e(){var _0x14b034=_0xdf7861;_0x983d86[_0x14b034('0x1bed')]=[];}function _0x16a6b2(){var _0x4e6e54=_0xdf7861;_0x983d86[_0x4e6e54('0x1bed')]=_0x983d86['projects']['rows'];}}const _0x26de88=_0x5f2857;_0x28890b['$inject']=['$stateProvider',_0xb635d2('0x2104')];function _0x28890b(_0x34921d,_0x46df3d){var _0x5090d8=_0xb635d2;_0x34921d[_0x5090d8('0x1d72')](_0x5090d8('0x689'),{'abstract':!![],'url':_0x5090d8('0x1330')})[_0x5090d8('0x1d72')]('app.jscripty.projects',{'url':_0x5090d8('0x13ff'),'views':{'content@app':{'templateUrl':_0x23b514,'controller':_0x5090d8('0x1193')}},'resolve':{'projects':[_0x5090d8('0x292'),'Auth',function _0x6b92a1(_0x2b1011,_0x9cc318){var _0x339c10=_0x5090d8;return _0x9cc318[_0x339c10('0x179e')]('admin')?_0x2b1011[_0x339c10('0xcd6')](_0x339c10('0x710'),{'fields':_0x339c10('0x1ae5'),'sort':_0x339c10('0x7e8'),'limit':0xa,'offset':0x0}):_0x2b1011[_0x339c10('0xcd6')]('userProfile@getResources',{'id':_0x9cc318[_0x339c10('0x1ef8')]()[_0x339c10('0x1d04')],'section':_0x339c10('0x9af'),'fields':_0x339c10('0x1ae5'),'sort':_0x339c10('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5090d8('0x2730'),function _0xcb2d80(_0x1c4496,_0x31c983){var _0x45bbe0=_0x5090d8;return _0x31c983[_0x45bbe0('0x179e')]('admin')?null:_0x1c4496[_0x45bbe0('0xcd6')](_0x45bbe0('0x455'),{'fields':_0x45bbe0('0x1b71'),'id':_0x31c983[_0x45bbe0('0x1ef8')]()[_0x45bbe0('0x1d04')]});}],'userProfileSection':['apiResolver',_0x5090d8('0x2730'),function _0x577594(_0x688791,_0x478173){var _0x121c5d=_0x5090d8;return _0x478173['hasRole']('admin')?null:_0x688791[_0x121c5d('0xcd6')](_0x121c5d('0x264e'),{'fields':_0x121c5d('0x12d6'),'userProfileId':_0x478173[_0x121c5d('0x1ef8')]()[_0x121c5d('0x1d04')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':'jscripty'})['state'](_0x5090d8('0x171e'),{'url':_0x5090d8('0xb1d'),'params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x57183b,'controller':_0x5090d8('0x2495')}},'resolve':{'project':['apiResolver',_0x5090d8('0x34'),function _0x536a80(_0x2d9e96,_0x430065){var _0x45a548=_0x5090d8;return _0x2d9e96[_0x45a548('0xcd6')](_0x45a548('0x710'),{'fields':'createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','id':_0x430065['id']});}],'userProfileSection':['apiResolver',_0x5090d8('0x2730'),function _0x4e226c(_0x1a4fcb,_0x4e0a42){var _0x51f093=_0x5090d8;return _0x1a4fcb[_0x51f093('0xcd6')](_0x51f093('0x264e'),{'fields':_0x51f093('0x12d6'),'userProfileId':_0x4e0a42[_0x51f093('0x1ef8')]()[_0x51f093('0x1d04')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x5090d8('0x1c47')}),_0x46df3d['addPart'](_0x5090d8('0x280e'));}angular[_0xb635d2('0x153f')]('app.jscripty',[_0xb635d2('0x569'),'ngPassword',_0xb635d2('0x274e'),_0xb635d2('0x206b'),_0xb635d2('0xd8b'),_0xb635d2('0x1727'),_0xb635d2('0x1951'),'ngAria',_0xb635d2('0x1c2a'),'mdPickers','mwFormBuilder',_0xb635d2('0xce0'),_0xb635d2('0x282d'),'ngclipboard','angular-cron-jobs','ngEmbed',_0xb635d2('0x17b0'),_0xb635d2('0x191c'),_0xb635d2('0xe93'),_0xb635d2('0x16a1')])[_0xb635d2('0x1990')](_0x28890b)[_0xb635d2('0x1a79')]('CreateOrEditProjectDialogController',_0xe82d60)['controller'](_0xb635d2('0xcce'),_0x27e81e)['controller']('ProjectBuilderController',_0x463b09)['controller']('ProjectcloneController',_0x122f65)[_0xb635d2('0x1a79')](_0xb635d2('0x137b'),_0x506cb9)[_0xb635d2('0x1a79')](_0xb635d2('0x11ea'),_0x2b334d)[_0xb635d2('0x1a79')]('ShowQuestionsSessionDialogController',_0x31d387)[_0xb635d2('0x1a79')](_0xb635d2('0x18ef'),_0x1078cb)['controller']('JscriptyProjectsController',_0x26de88);const _0x2d5be4=_0x59426a['p']+_0xb635d2('0x3c4'),_0x5771cc=_0x59426a['p']+'src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view-[chunkhash].html';_0x426762[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$location',_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),'plugins',_0xb635d2('0x17f2'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x426762(_0xaea811,_0x3cba4c,_0x36fd5f,_0x4cecf1,_0x328e43,_0x20b5c2,_0x5c9f80,_0x42b3d9,_0x626e60,_0x5e33e0,_0x338922,_0x1e0717,_0x46879d,_0x2d92c8){var _0x4a23bb=_0xb635d2,_0x495067=this;_0x495067[_0x4a23bb('0x15a5')]=_0x338922[_0x4a23bb('0x1ef8')](),_0x495067[_0x4a23bb('0xcd2')]=[],_0x495067[_0x4a23bb('0x22f1')]=_0x46879d,_0x495067[_0x4a23bb('0x5c1')]=_0x1e0717,_0x495067[_0x4a23bb('0xb3d')]=_0x2d92c8,_0x495067[_0x4a23bb('0x1ccb')]={},_0x495067[_0x4a23bb('0x25ac')]=_0x495067['setting']&&_0x495067['setting'][_0x4a23bb('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x495067[_0x4a23bb('0x13e4')]='MARKETPLACE.EDIT_PLUGIN',_0x495067[_0x4a23bb('0x17f2')]=angular[_0x4a23bb('0x89')](_0x626e60),_0x495067[_0x4a23bb('0x226d')]=_0x42b3d9,_0x495067[_0x4a23bb('0x1832')]=![];!_0x495067[_0x4a23bb('0x17f2')]&&(_0x495067['plugin']={},_0x495067[_0x4a23bb('0x13e4')]=_0x4a23bb('0x23b4'),_0x495067[_0x4a23bb('0x1832')]=!![]);_0x495067[_0x4a23bb('0x11c3')]=_0x34513d,_0x495067[_0x4a23bb('0x27ce')]=_0x3f4bc8,_0x495067['deletePlugin']=_0x54394f,_0x495067['getDateFromString']=_0x13ec4a,_0x495067['closeDialog']=_0x5743d5;function _0x34513d(){var _0x3d2bed=_0x4a23bb;_0x495067['errors']=[],_0x5e33e0[_0x3d2bed('0x17f2')][_0x3d2bed('0xe5e')](_0x495067['plugin'])['$promise'][_0x3d2bed('0xe19')](function(_0x16a472){var _0x3d1a59=_0x3d2bed;_0x495067['plugins'][_0x3d1a59('0x14c9')](_0x16a472[_0x3d1a59('0x250e')]()),_0x5c9f80[_0x3d1a59('0x425')]({'title':'Plugin\x20properly\x20created','msg':_0x495067[_0x3d1a59('0x17f2')][_0x3d1a59('0x2623')]?_0x495067[_0x3d1a59('0x17f2')][_0x3d1a59('0x2623')]+_0x3d1a59('0x105f'):''}),_0x5743d5(_0x16a472);})[_0x3d2bed('0x223b')](function(_0x5b5e65){var _0x31b840=_0x3d2bed;if(_0x5b5e65[_0x31b840('0x11d0')]&&_0x5b5e65['data'][_0x31b840('0xcd2')]&&_0x5b5e65[_0x31b840('0x11d0')][_0x31b840('0xcd2')]['length']){_0x495067[_0x31b840('0xcd2')]=_0x5b5e65[_0x31b840('0x11d0')][_0x31b840('0xcd2')]||[{'message':_0x5b5e65['toString'](),'type':_0x31b840('0x41f')}];for(var _0x20bcb5=0x0;_0x20bcb5<_0x5b5e65[_0x31b840('0x11d0')][_0x31b840('0xcd2')]['length'];_0x20bcb5+=0x1){_0x5c9f80[_0x31b840('0x8c8')]({'title':_0x5b5e65['data'][_0x31b840('0xcd2')][_0x20bcb5][_0x31b840('0x62e')],'msg':_0x5b5e65[_0x31b840('0x11d0')]['errors'][_0x20bcb5][_0x31b840('0x27e8')]});}}else _0x5c9f80[_0x31b840('0x8c8')]({'title':_0x5b5e65[_0x31b840('0x2833')]?'API:'+_0x5b5e65[_0x31b840('0x2833')]+'\x20-\x20'+_0x5b5e65[_0x31b840('0x1fd7')]:'api.plugin.save','msg':_0x5b5e65[_0x31b840('0x11d0')]?JSON[_0x31b840('0x3ad')](_0x5b5e65['data'][_0x31b840('0x27e8')]):_0x5b5e65['toString']()});});}function _0x3f4bc8(){var _0x42b34d=_0x4a23bb;_0x495067['errors']=[],_0x5e33e0[_0x42b34d('0x17f2')]['update']({'id':_0x495067['plugin']['id']},_0x495067[_0x42b34d('0x17f2')])[_0x42b34d('0xe59')][_0x42b34d('0xe19')](function(_0x8c4ce3){var _0x511199=_0x42b34d,_0x238348=_0x32d445()[_0x511199('0xf15')](_0x495067[_0x511199('0x226d')],{'id':_0x8c4ce3['id']});_0x238348&&_0x32d445()[_0x511199('0x1d8')](_0x238348,_0x32d445()[_0x511199('0xed5')](_0x8c4ce3[_0x511199('0x250e')](),_0x32d445()['keys'](_0x238348))),_0x5c9f80[_0x511199('0x425')]({'title':_0x511199('0x2086'),'msg':_0x495067['plugin'][_0x511199('0x2623')]?_0x495067[_0x511199('0x17f2')]['name']+_0x511199('0x1c19'):''}),_0x5743d5(_0x8c4ce3);})[_0x42b34d('0x223b')](function(_0x1bf5da){var _0x50190c=_0x42b34d;if(_0x1bf5da[_0x50190c('0x11d0')]&&_0x1bf5da[_0x50190c('0x11d0')][_0x50190c('0xcd2')]&&_0x1bf5da['data'][_0x50190c('0xcd2')][_0x50190c('0x25ae')]){_0x495067['errors']=_0x1bf5da[_0x50190c('0x11d0')][_0x50190c('0xcd2')]||[{'message':_0x1bf5da['toString'](),'type':_0x50190c('0x1d26')}];for(var _0x672abf=0x0;_0x672abf<_0x1bf5da[_0x50190c('0x11d0')][_0x50190c('0xcd2')][_0x50190c('0x25ae')];_0x672abf++){_0x5c9f80[_0x50190c('0x8c8')]({'title':_0x1bf5da[_0x50190c('0x11d0')][_0x50190c('0xcd2')][_0x672abf][_0x50190c('0x62e')],'msg':_0x1bf5da[_0x50190c('0x11d0')][_0x50190c('0xcd2')][_0x672abf][_0x50190c('0x27e8')]});}}else _0x5c9f80['error']({'title':_0x1bf5da[_0x50190c('0x2833')]?_0x50190c('0x27f2')+_0x1bf5da[_0x50190c('0x2833')]+_0x50190c('0x1b7c')+_0x1bf5da[_0x50190c('0x1fd7')]:_0x50190c('0x1d26'),'msg':_0x1bf5da['data']?JSON['stringify'](_0x1bf5da[_0x50190c('0x11d0')][_0x50190c('0x27e8')]):_0x1bf5da[_0x50190c('0x94f')]()});});}function _0x54394f(_0x43b63d){var _0x3e1d91=_0x4a23bb;_0x495067['errors']=[];var _0x173f59=_0x4cecf1[_0x3e1d91('0xa5')]()['title'](_0x3e1d91('0x24d0'))[_0x3e1d91('0xd0')]('The\x20plugin\x20will\x20be\x20deleted.')[_0x3e1d91('0x4d1')](_0x3e1d91('0x20e2'))['ok'](_0x3e1d91('0x2198'))['cancel'](_0x3e1d91('0x8a3'))[_0x3e1d91('0x1345')](_0x43b63d);_0x4cecf1[_0x3e1d91('0x26b2')](_0x173f59)[_0x3e1d91('0xe19')](function(){var _0x461720=_0x3e1d91;_0x5e33e0[_0x461720('0x17f2')][_0x461720('0x229e')]({'id':_0x495067[_0x461720('0x17f2')]['id']})[_0x461720('0xe59')][_0x461720('0xe19')](function(){var _0x6bb5d6=_0x461720;_0x32d445()['remove'](_0x495067[_0x6bb5d6('0x226d')],{'id':_0x495067['plugin']['id']}),_0x5c9f80[_0x6bb5d6('0x425')]({'title':'Plugin\x20properly\x20deleted!','msg':(_0x495067[_0x6bb5d6('0x17f2')][_0x6bb5d6('0x2623')]||_0x6bb5d6('0x17f2'))+_0x6bb5d6('0x2182')}),_0x5743d5(_0x495067[_0x6bb5d6('0x17f2')]);})[_0x461720('0x223b')](function(_0x3a7b8f){var _0x1f4f2f=_0x461720;if(_0x3a7b8f[_0x1f4f2f('0x11d0')]&&_0x3a7b8f[_0x1f4f2f('0x11d0')][_0x1f4f2f('0xcd2')]&&_0x3a7b8f[_0x1f4f2f('0x11d0')]['errors'][_0x1f4f2f('0x25ae')]){_0x495067[_0x1f4f2f('0xcd2')]=_0x3a7b8f[_0x1f4f2f('0x11d0')][_0x1f4f2f('0xcd2')]||[{'message':_0x3a7b8f[_0x1f4f2f('0x94f')](),'type':_0x1f4f2f('0x5e9')}];for(var _0x2f51a3=0x0;_0x2f51a3<_0x3a7b8f[_0x1f4f2f('0x11d0')][_0x1f4f2f('0xcd2')][_0x1f4f2f('0x25ae')];_0x2f51a3++){_0x5c9f80[_0x1f4f2f('0x8c8')]({'title':_0x3a7b8f[_0x1f4f2f('0x11d0')][_0x1f4f2f('0xcd2')][_0x2f51a3][_0x1f4f2f('0x62e')],'msg':_0x3a7b8f[_0x1f4f2f('0x11d0')][_0x1f4f2f('0xcd2')][_0x2f51a3][_0x1f4f2f('0x27e8')]});}}else _0x5c9f80['error']({'title':_0x3a7b8f[_0x1f4f2f('0x2833')]?_0x1f4f2f('0x27f2')+_0x3a7b8f['status']+_0x1f4f2f('0x1b7c')+_0x3a7b8f[_0x1f4f2f('0x1fd7')]:_0x1f4f2f('0x5e9'),'msg':_0x3a7b8f[_0x1f4f2f('0x11d0')]?JSON[_0x1f4f2f('0x3ad')](_0x3a7b8f[_0x1f4f2f('0x11d0')]['message']):_0x3a7b8f[_0x1f4f2f('0x27e8')]||_0x3a7b8f[_0x1f4f2f('0x94f')]()});});},function(){});}function _0x13ec4a(_0x5ba0a1){return _0x5ba0a1===null?undefined:new Date(_0x5ba0a1);}function _0x5743d5(_0x1a0b43){_0x4cecf1['hide'](_0x1a0b43);}}const _0xb623b3=_0x426762;_0x4722c0[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),'$translate',_0xb635d2('0x5c1'),'setting',_0xb635d2('0xffc'),'toasty',_0xb635d2('0x2730'),'plugin','userProfileSection'];function _0x4722c0(_0x5adbaf,_0x402a04,_0x4c65e4,_0x5b4570,_0x39ba47,_0x52fa55,_0x1e813f,_0x2c3f7b,_0x246ab9,_0x173373,_0x59e036,_0x5d2681){var _0x488742=_0xb635d2,_0x4ee299=this;_0x4ee299[_0x488742('0x15a5')]=_0x173373['getCurrentUser'](),_0x4ee299[_0x488742('0x5c1')]=_0x52fa55,_0x4ee299[_0x488742('0x22f1')]=_0x1e813f,_0x4ee299[_0x488742('0x25ac')]=_0x4ee299['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4ee299[_0x488742('0x2170')]=_0x402a04[_0x488742('0xec0')]()+'://'+_0x402a04[_0x488742('0x3b7')](),_0x4ee299[_0x488742('0x17f2')]=_0x59e036||_0x5adbaf['params'][_0x488742('0x17f2')]||{},_0x4ee299[_0x488742('0xb59')]=_0x5d2681&&_0x5d2681[_0x488742('0x148b')]==0x1?_0x5d2681[_0x488742('0x16a7')][0x0]:null,_0x4ee299[_0x488742('0xb3d')]=_0x173373[_0x488742('0xd31')](_0x4ee299[_0x488742('0xb59')]?_0x4ee299['userProfileSection']['crudPermissions']:null),_0x4ee299[_0x488742('0x1ccb')]={},_0x4ee299['selectedTab']=_0x5adbaf['params'][_0x488742('0x435')]||0x0,_0x4ee299[_0x488742('0xbdc')]=_0x246ab9[_0x488742('0x1e67')],_0x4ee299[_0x488742('0xb36')]=_0x2d6892,_0x4ee299[_0x488742('0x27ce')]=_0x2dc7bb;function _0x2d6892(){var _0x1ab38b=_0x488742;_0x5adbaf['go']('app.marketplace.plugins',{},{'reload':_0x1ab38b('0x2700')});}function _0x2dc7bb(){var _0x52a638=_0x488742;_0x2c3f7b['plugin'][_0x52a638('0xa70')]({'id':_0x4ee299['plugin']['id']},_0x4ee299['plugin'])[_0x52a638('0xe59')]['then'](function(){var _0x538136=_0x52a638;_0x246ab9[_0x538136('0x425')]({'title':_0x538136('0x39b'),'msg':_0x4ee299[_0x538136('0x17f2')][_0x538136('0x2623')]?_0x4ee299[_0x538136('0x17f2')][_0x538136('0x2623')]+_0x538136('0x283b'):''});})[_0x52a638('0x223b')](function(_0x515088){var _0x43c19c=_0x52a638;_0x246ab9['error']({'title':_0x515088[_0x43c19c('0x2833')]?'API:'+_0x515088[_0x43c19c('0x2833')]+_0x43c19c('0x1b7c')+_0x515088['statusText']:_0x43c19c('0x1494'),'msg':_0x515088['data']?JSON[_0x43c19c('0x3ad')](_0x515088[_0x43c19c('0x11d0')]):_0x515088[_0x43c19c('0x94f')]()});});}}const _0x31a3d5=_0x4722c0,_0x1d6b82=_0x59426a['p']+_0xb635d2('0x718'),_0xc4b46a=_0x59426a['p']+_0xb635d2('0x22b6');_0x40f03a[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),'$state',_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),'plugins',_0xb635d2('0x154f'),'userProfileSection',_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x40f03a(_0x36872c,_0x2620f6,_0x557bb6,_0x5e7930,_0x35901c,_0x57100d,_0x35f529,_0x41467a,_0x2c5684,_0x43837b,_0x335520,_0x3afdd8,_0x1b9100,_0x568c7c,_0x19ae53,_0x510ace,_0xa72f12){var _0x5ae9fb=_0xb635d2,_0x1fadba=this;_0x1fadba[_0x5ae9fb('0x5c1')]=_0x510ace,_0x1fadba[_0x5ae9fb('0x22f1')]=_0xa72f12,_0x1fadba['currentUser']=_0x19ae53['getCurrentUser'](),_0x1fadba['plugins']=_0x2c5684||{'count':0x0,'rows':[]},_0x1fadba['userProfile']=_0x43837b,_0x1fadba[_0x5ae9fb('0xb59')]=_0x335520&&_0x335520[_0x5ae9fb('0x148b')]==0x1?_0x335520['rows'][0x0]:null,_0x1fadba[_0x5ae9fb('0xb3d')]=_0x19ae53['parseCrudPermissions'](_0x1fadba[_0x5ae9fb('0xb59')]?_0x1fadba['userProfileSection'][_0x5ae9fb('0xb3d')]:null),_0x1fadba[_0x5ae9fb('0x19b6')]=_0x5ae9fb('0x226d'),_0x1fadba['listOrder']='',_0x1fadba[_0x5ae9fb('0x190c')]=null,_0x1fadba['selectedPlugins']=[],_0x1fadba['query']={'fields':_0x5ae9fb('0xdd5'),'sort':'name','limit':0xa,'page':0x1},_0x1fadba[_0x5ae9fb('0x2063')]=![],_0x1fadba['arraysidebar']=_0x32d445()[_0x5ae9fb('0x226f')]([{'option':'Always','value':_0x5ae9fb('0x23a1')},{'option':'Admin\x20Only','value':_0x5ae9fb('0x6e')},{'option':'Agent\x20Only','value':_0x5ae9fb('0x11c6')},{'option':_0x5ae9fb('0x25b6'),'value':'\x27never\x27'}],function(_0x3efc5e){var _0x5ce445=_0x5ae9fb;return _0x32d445()['replace'](_0x3efc5e[_0x5ce445('0x2')],new RegExp('\x27','g'),'');}),_0x1fadba[_0x5ae9fb('0x20c0')]=_0x583db6,_0x1fadba[_0x5ae9fb('0x16a0')]=_0x4bb6df,_0x1fadba['stopplugin']=_0x3e5e4a,_0x1fadba[_0x5ae9fb('0x1c34')]=_0x50dc14,_0x1fadba['downloadfile2']=_0x9b2429,_0x1fadba[_0x5ae9fb('0x14d1')]=_0x3c18c1,_0x1fadba['deleteconfirm']=_0x16b890,_0x1fadba[_0x5ae9fb('0x425')]=_0x503d3d,_0x1fadba['getPlugins']=_0x20008d,_0x1fadba[_0x5ae9fb('0x10eb')]=_0x29f2b8,_0x1fadba[_0x5ae9fb('0x14d')]=_0xce27c7,_0x1fadba[_0x5ae9fb('0x24fb')]=_0xb864ea,_0x1fadba[_0x5ae9fb('0x202a')]=_0x173b9a,_0x1fadba[_0x5ae9fb('0x1329')]=_0x373b04,_0x1fadba['selectAllPlugins']=_0x348bfc,_0x1fadba[_0x5ae9fb('0x24b4')]=_0x10c29e;function _0x583db6(_0x329058){var _0x3e2df9=_0x5ae9fb;if(_0x329058[_0x3e2df9('0x62e')]===_0x3e2df9('0x1244'))_0x1fadba[_0x3e2df9('0x2063')]=!![],_0x3afdd8[_0x3e2df9('0x132e')][_0x3e2df9('0xe5e')]({'name':_0x329058[_0x3e2df9('0x1283')],'script':_0x329058[_0x3e2df9('0xf2e')]+'/'+_0x329058[_0x3e2df9('0x370')]})[_0x3e2df9('0xe59')]['then'](function(){var _0x438d6f=_0x3e2df9;return _0x329058[_0x438d6f('0x1a')]=!![],_0x3afdd8[_0x438d6f('0x17f2')][_0x438d6f('0xa70')]({'id':_0x329058['id']},_0x329058)['$promise'];})[_0x3e2df9('0xe19')](function(){var _0x4a7c2f=_0x3e2df9;_0x1fadba[_0x4a7c2f('0x2063')]=![],_0x568c7c[_0x4a7c2f('0x425')]({'title':_0x4a7c2f('0x1cd7'),'msg':_0x329058[_0x4a7c2f('0x2623')]?_0x329058[_0x4a7c2f('0x2623')]+_0x4a7c2f('0x268d'):''});})[_0x3e2df9('0x223b')](function(_0x2b3ba9){var _0x1ad5a2=_0x3e2df9;if(_0x2b3ba9[_0x1ad5a2('0x11d0')]&&_0x2b3ba9[_0x1ad5a2('0x11d0')][_0x1ad5a2('0xcd2')]&&_0x2b3ba9['data'][_0x1ad5a2('0xcd2')][_0x1ad5a2('0x25ae')]){_0x1fadba[_0x1ad5a2('0xcd2')]=_0x2b3ba9[_0x1ad5a2('0x11d0')][_0x1ad5a2('0xcd2')]||[{'message':_0x2b3ba9[_0x1ad5a2('0x94f')](),'type':'api.pm2.save'}];for(var _0x5f59bc=0x0;_0x5f59bc<_0x2b3ba9['data'][_0x1ad5a2('0xcd2')]['length'];_0x5f59bc++){_0x568c7c['error']({'title':_0x2b3ba9[_0x1ad5a2('0x11d0')][_0x1ad5a2('0xcd2')][_0x5f59bc][_0x1ad5a2('0x62e')],'msg':_0x2b3ba9[_0x1ad5a2('0x11d0')][_0x1ad5a2('0xcd2')][_0x5f59bc][_0x1ad5a2('0x27e8')]});}}else _0x568c7c['error']({'title':_0x2b3ba9['status']?_0x1ad5a2('0x27f2')+_0x2b3ba9[_0x1ad5a2('0x2833')]+_0x1ad5a2('0x1b7c')+_0x2b3ba9[_0x1ad5a2('0x1fd7')]:_0x1ad5a2('0x11a6'),'msg':_0x2b3ba9[_0x1ad5a2('0x11d0')]?JSON[_0x1ad5a2('0x3ad')](_0x2b3ba9[_0x1ad5a2('0x11d0')][_0x1ad5a2('0x27e8')]):_0x2b3ba9['message']||_0x2b3ba9[_0x1ad5a2('0x94f')]()});});else return _0x329058[_0x3e2df9('0x1a')]=!![],_0x3afdd8[_0x3e2df9('0x17f2')][_0x3e2df9('0xa70')]({'id':_0x329058['id']},_0x329058)[_0x3e2df9('0xe59')][_0x3e2df9('0xe19')](function(){var _0x5223c3=_0x3e2df9;_0x568c7c[_0x5223c3('0x425')]({'title':_0x5223c3('0x1cd7'),'msg':_0x329058[_0x5223c3('0x2623')]?_0x329058[_0x5223c3('0x2623')]+_0x5223c3('0x268d'):''});})[_0x3e2df9('0x223b')](function(_0x326cd8){var _0x5c6eb0=_0x3e2df9;if(_0x326cd8[_0x5c6eb0('0x11d0')]&&_0x326cd8[_0x5c6eb0('0x11d0')][_0x5c6eb0('0xcd2')]&&_0x326cd8[_0x5c6eb0('0x11d0')][_0x5c6eb0('0xcd2')][_0x5c6eb0('0x25ae')]){_0x1fadba[_0x5c6eb0('0xcd2')]=_0x326cd8[_0x5c6eb0('0x11d0')][_0x5c6eb0('0xcd2')]||[{'message':_0x326cd8['toString'](),'type':_0x5c6eb0('0x1d26')}];for(var _0x31fdf5=0x0;_0x31fdf5<_0x326cd8[_0x5c6eb0('0x11d0')][_0x5c6eb0('0xcd2')][_0x5c6eb0('0x25ae')];_0x31fdf5++){_0x568c7c[_0x5c6eb0('0x8c8')]({'title':_0x326cd8[_0x5c6eb0('0x11d0')][_0x5c6eb0('0xcd2')][_0x31fdf5]['type'],'msg':_0x326cd8[_0x5c6eb0('0x11d0')]['errors'][_0x31fdf5]['message']});}}else _0x568c7c[_0x5c6eb0('0x8c8')]({'title':_0x326cd8[_0x5c6eb0('0x2833')]?'API:'+_0x326cd8[_0x5c6eb0('0x2833')]+_0x5c6eb0('0x1b7c')+_0x326cd8[_0x5c6eb0('0x1fd7')]:_0x5c6eb0('0x1d26'),'msg':_0x326cd8[_0x5c6eb0('0x11d0')]?JSON[_0x5c6eb0('0x3ad')](_0x326cd8[_0x5c6eb0('0x11d0')][_0x5c6eb0('0x27e8')]):_0x326cd8[_0x5c6eb0('0x27e8')]||_0x326cd8['toString']()});});}function _0x4bb6df(_0x515c30){var _0x104d37=_0x5ae9fb;_0x557bb6['go'](_0x104d37('0x196a'),{'id':_0x515c30['id'],'plugin':_0x515c30,'crudPermissions':_0x1fadba[_0x104d37('0xb3d')]});}function _0x3e5e4a(_0x1b4b6c,_0x54ddeb){var _0x5e0c91=_0x5ae9fb,_0x117a03=_0x35901c[_0x5e0c91('0xa5')]()[_0x5e0c91('0x13e4')](_0x5e0c91('0xa7e'))[_0x5e0c91('0x221c')](_0x5e0c91('0xab2')+(_0x1b4b6c[_0x5e0c91('0x2623')]||'plugin')+_0x5e0c91('0x27bb')+_0x5e0c91('0x1cf3'))[_0x5e0c91('0x4d1')](_0x5e0c91('0x1cfe'))['targetEvent'](_0x54ddeb)['ok']('OK')[_0x5e0c91('0x2c1')](_0x5e0c91('0x17'));_0x35901c[_0x5e0c91('0x26b2')](_0x117a03)[_0x5e0c91('0xe19')](function(){_0x360770(_0x1b4b6c);},function(){var _0x4095ae=_0x5e0c91;console[_0x4095ae('0x1fe9')](_0x4095ae('0x17'));});}function _0x360770(_0xf5bc8f){var _0x41d73c=_0x5ae9fb;_0x3afdd8[_0x41d73c('0x132e')][_0x41d73c('0x22d5')]()[_0x41d73c('0xe59')][_0x41d73c('0xe19')](function(_0x2c9227){var _0x3dc4c0=_0x41d73c;if(!_0x2c9227||!_0x2c9227[_0x3dc4c0('0x16a7')])throw new Error(_0x3dc4c0('0x20d0'));var _0x5c5bef=_0x32d445()[_0x3dc4c0('0xf15')](_0x2c9227[_0x3dc4c0('0x16a7')],{'name':_0xf5bc8f[_0x3dc4c0('0x1283')]});if(!_0x5c5bef)throw new Error(_0x3dc4c0('0x2fb'));_0x3afdd8[_0x3dc4c0('0x132e')]['update']({'id':_0x5c5bef[_0x3dc4c0('0x1b86')],'status':'stopped'})[_0x3dc4c0('0xe59')][_0x3dc4c0('0xe19')](function(){var _0x11ea11=_0x3dc4c0;_0x568c7c['success']({'title':_0x11ea11('0x1e7d'),'msg':_0x11ea11('0x1799')});});})[_0x41d73c('0x223b')](function(_0x13ed7e){var _0x5a39b7=_0x41d73c;if(_0x13ed7e['data']&&_0x13ed7e[_0x5a39b7('0x11d0')]['errors']&&_0x13ed7e['data'][_0x5a39b7('0xcd2')][_0x5a39b7('0x25ae')]){_0x1fadba[_0x5a39b7('0xcd2')]=_0x13ed7e['data'][_0x5a39b7('0xcd2')]||[{'message':_0x13ed7e[_0x5a39b7('0x94f')](),'type':_0x5a39b7('0x9f3')}];for(var _0x5b6b13=0x0;_0x5b6b13<_0x13ed7e[_0x5a39b7('0x11d0')]['errors'][_0x5a39b7('0x25ae')];_0x5b6b13++){_0x568c7c['error']({'title':_0x13ed7e[_0x5a39b7('0x11d0')][_0x5a39b7('0xcd2')][_0x5b6b13]['type'],'msg':_0x13ed7e[_0x5a39b7('0x11d0')][_0x5a39b7('0xcd2')][_0x5b6b13]['message']});}}else _0x568c7c[_0x5a39b7('0x8c8')]({'title':_0x13ed7e['status']?'API:'+_0x13ed7e[_0x5a39b7('0x2833')]+_0x5a39b7('0x1b7c')+_0x13ed7e[_0x5a39b7('0x1fd7')]:_0x5a39b7('0x9f3'),'msg':_0x13ed7e[_0x5a39b7('0x11d0')]?JSON[_0x5a39b7('0x3ad')](_0x13ed7e[_0x5a39b7('0x11d0')]['message']):_0x13ed7e['message']||_0x13ed7e['toString']()});});}function _0x50dc14(_0x591fec,_0x593886){var _0x300b30=_0x5ae9fb,_0x1feff5=_0x35901c[_0x300b30('0xa5')]()[_0x300b30('0x13e4')](_0x300b30('0x23ef'))['htmlContent'](_0x300b30('0xab2')+(_0x591fec['name']||_0x300b30('0x17f2'))+_0x300b30('0x27bb')+_0x300b30('0x1a1b'))['ariaLabel'](_0x300b30('0x1428'))[_0x300b30('0x1345')](_0x593886)['ok']('OK')['cancel'](_0x300b30('0x17'));_0x35901c[_0x300b30('0x26b2')](_0x1feff5)['then'](function(){_0x324e6b(_0x591fec);},function(){var _0x19c1cd=_0x300b30;console[_0x19c1cd('0x1fe9')](_0x19c1cd('0x17'));});}function _0x324e6b(_0x723206){var _0x220b8d=_0x5ae9fb;_0x3afdd8[_0x220b8d('0x132e')][_0x220b8d('0x22d5')]()[_0x220b8d('0xe59')]['then'](function(_0x5f513c){var _0x17284c=_0x220b8d;if(!_0x5f513c||!_0x5f513c[_0x17284c('0x16a7')])throw new Error('Failed\x20to\x20retrieve\x20pm2\x20processes');var _0x4fe211=_0x32d445()[_0x17284c('0xf15')](_0x5f513c[_0x17284c('0x16a7')],{'name':_0x723206[_0x17284c('0x1283')]});if(!_0x4fe211)throw new Error('No\x20corresponding\x20process\x20found');_0x3afdd8['pm2'][_0x17284c('0xa70')]({'id':_0x4fe211[_0x17284c('0x1b86')],'status':'online'})['$promise'][_0x17284c('0xe19')](function(){var _0x1c2966=_0x17284c;_0x568c7c[_0x1c2966('0x425')]({'title':_0x1c2966('0x1dc'),'msg':_0x1c2966('0x159d')});});})['catch'](function(_0x6b571f){var _0x2e608d=_0x220b8d;if(_0x6b571f[_0x2e608d('0x11d0')]&&_0x6b571f[_0x2e608d('0x11d0')][_0x2e608d('0xcd2')]&&_0x6b571f[_0x2e608d('0x11d0')]['errors'][_0x2e608d('0x25ae')]){_0x1fadba[_0x2e608d('0xcd2')]=_0x6b571f['data']['errors']||[{'message':_0x6b571f[_0x2e608d('0x94f')](),'type':_0x2e608d('0x9f3')}];for(var _0x27695e=0x0;_0x27695e<_0x6b571f['data'][_0x2e608d('0xcd2')]['length'];_0x27695e++){_0x568c7c[_0x2e608d('0x8c8')]({'title':_0x6b571f[_0x2e608d('0x11d0')][_0x2e608d('0xcd2')][_0x27695e][_0x2e608d('0x62e')],'msg':_0x6b571f[_0x2e608d('0x11d0')]['errors'][_0x27695e][_0x2e608d('0x27e8')]});}}else _0x568c7c['error']({'title':_0x6b571f[_0x2e608d('0x2833')]?_0x2e608d('0x27f2')+_0x6b571f[_0x2e608d('0x2833')]+'\x20-\x20'+_0x6b571f[_0x2e608d('0x1fd7')]:'api.pm2.update','msg':_0x6b571f[_0x2e608d('0x11d0')]?JSON[_0x2e608d('0x3ad')](_0x6b571f[_0x2e608d('0x11d0')][_0x2e608d('0x27e8')]):_0x6b571f['message']||_0x6b571f[_0x2e608d('0x94f')]()});});}function _0x9b2429(_0x490d57){var _0x11c793=_0x5ae9fb;return _0x3afdd8['plugin'][_0x11c793('0x1d1e')]({'id':_0x490d57['id']})[_0x11c793('0xe59')][_0x11c793('0xe19')](function(_0x4ced92){var _0x4e6f5b=_0x11c793,_0x2948bf=[_0x4ced92[_0x4e6f5b('0x17ab')]],_0x1df88d=_0x4e6f5b('0x1d1e'),_0x40b391=new Blob(_0x2948bf,{'type':_0x4ced92[_0x4e6f5b('0x62e')]});_0x1df88d=_0x490d57[_0x4e6f5b('0x2623')][_0x4e6f5b('0x1b42')]('\x20','_')['toLowerCase']()+_0x4e6f5b('0x985');var _0x1306ba=window[_0x4e6f5b('0x18fa')][_0x4e6f5b('0x9a1')]('a');_0x1306ba[_0x4e6f5b('0xede')]('href',URL[_0x4e6f5b('0x1360')](_0x40b391)),_0x1306ba[_0x4e6f5b('0xede')](_0x4e6f5b('0x1d1e'),_0x1df88d),document['body'][_0x4e6f5b('0x1d13')](_0x1306ba),_0x1306ba[_0x4e6f5b('0xfe7')]();})[_0x11c793('0x223b')](function(_0x41afea){var _0x35133a=_0x11c793;if(_0x41afea[_0x35133a('0x11d0')]&&_0x41afea['data']['errors']&&_0x41afea['data'][_0x35133a('0xcd2')][_0x35133a('0x25ae')])for(var _0x591032=0x0;_0x591032<_0x41afea['data'][_0x35133a('0xcd2')]['length'];_0x591032++){_0x568c7c[_0x35133a('0x8c8')]({'title':_0x41afea[_0x35133a('0x11d0')][_0x35133a('0xcd2')][_0x591032][_0x35133a('0x62e')],'msg':_0x41afea[_0x35133a('0x11d0')][_0x35133a('0xcd2')][_0x591032][_0x35133a('0x27e8')]});}else _0x568c7c[_0x35133a('0x8c8')]({'title':_0x41afea[_0x35133a('0x2833')]?_0x35133a('0x27f2')+_0x41afea[_0x35133a('0x2833')]+'\x20-\x20'+_0x41afea[_0x35133a('0x1fd7')]:_0x35133a('0x41f'),'msg':_0x41afea[_0x35133a('0x11d0')]?JSON[_0x35133a('0x3ad')](_0x41afea[_0x35133a('0x11d0')]['message']):_0x41afea[_0x35133a('0x94f')]()});});}function _0x3c18c1(_0x39b258,_0x1a92c0){var _0x22b08c=_0x5ae9fb,_0x1794c0=_0x35901c[_0x22b08c('0xa5')]()['title'](_0x22b08c('0xd7d'))[_0x22b08c('0x221c')](_0x22b08c('0xab2')+(_0x39b258[_0x22b08c('0x2623')]||_0x22b08c('0x17f2'))+_0x22b08c('0x27bb')+_0x22b08c('0x7aa'))[_0x22b08c('0x4d1')]('uninstall\x20plugin')[_0x22b08c('0x1345')](_0x1a92c0)['ok']('OK')['cancel'](_0x22b08c('0x17'));_0x35901c[_0x22b08c('0x26b2')](_0x1794c0)[_0x22b08c('0xe19')](function(){_0x45d052(_0x39b258);},function(){var _0x22978c=_0x22b08c;console['log'](_0x22978c('0x17'));});}function _0x45d052(_0x573d05){var _0x18fb81=_0x5ae9fb;return _0x573d05['type']==='script'&&_0x3afdd8['pm2'][_0x18fb81('0x22d5')]()[_0x18fb81('0xe59')][_0x18fb81('0xe19')](function(_0x3714d7){var _0x189197=_0x18fb81;if(!_0x3714d7||!_0x3714d7[_0x189197('0x16a7')])throw new Error(_0x189197('0x20d0'));var _0x306bb7=_0x32d445()[_0x189197('0xf15')](_0x3714d7[_0x189197('0x16a7')],{'name':_0x573d05[_0x189197('0x1283')]});if(!_0x306bb7)throw new Error('No\x20corresponding\x20process\x20found');_0x3afdd8[_0x189197('0x132e')][_0x189197('0x229e')]({'id':_0x306bb7[_0x189197('0x1b86')],'name':_0x573d05['scriptName']})[_0x189197('0xe59')];})[_0x18fb81('0x223b')](function(_0x53d96a){var _0x5c2e16=_0x18fb81;_0x568c7c[_0x5c2e16('0x8c8')]({'title':_0x53d96a[_0x5c2e16('0x2833')]?_0x5c2e16('0x27f2')+_0x53d96a[_0x5c2e16('0x2833')]+'\x20-\x20'+_0x53d96a[_0x5c2e16('0x1fd7')]:_0x5c2e16('0xd8f'),'msg':_0x53d96a['data']?JSON['stringify'](_0x53d96a[_0x5c2e16('0x11d0')]['message']):_0x53d96a['message']||_0x53d96a['toString']()});}),_0x573d05['active']=![],_0x3afdd8[_0x18fb81('0x17f2')][_0x18fb81('0xa70')]({'id':_0x573d05['id']},_0x573d05)['$promise'][_0x18fb81('0xe19')](function(){var _0x4a5c25=_0x18fb81;_0x568c7c[_0x4a5c25('0x425')]({'title':_0x4a5c25('0x10a3'),'msg':_0x573d05[_0x4a5c25('0x2623')]?_0x573d05[_0x4a5c25('0x2623')]+_0x4a5c25('0xb4e'):''});})[_0x18fb81('0x223b')](function(_0x1b3cfc){var _0x1537da=_0x18fb81;if(_0x1b3cfc['data']&&_0x1b3cfc[_0x1537da('0x11d0')][_0x1537da('0xcd2')]&&_0x1b3cfc[_0x1537da('0x11d0')][_0x1537da('0xcd2')][_0x1537da('0x25ae')]){_0x1fadba[_0x1537da('0xcd2')]=_0x1b3cfc['data'][_0x1537da('0xcd2')]||[{'message':_0x1b3cfc[_0x1537da('0x94f')](),'type':_0x1537da('0x1d26')}];for(var _0x52f599=0x0;_0x52f599<_0x1b3cfc[_0x1537da('0x11d0')][_0x1537da('0xcd2')][_0x1537da('0x25ae')];_0x52f599++){_0x568c7c[_0x1537da('0x8c8')]({'title':_0x1b3cfc['data'][_0x1537da('0xcd2')][_0x52f599][_0x1537da('0x62e')],'msg':_0x1b3cfc[_0x1537da('0x11d0')][_0x1537da('0xcd2')][_0x52f599][_0x1537da('0x27e8')]});}}else _0x568c7c[_0x1537da('0x8c8')]({'title':_0x1b3cfc[_0x1537da('0x2833')]?_0x1537da('0x27f2')+_0x1b3cfc[_0x1537da('0x2833')]+_0x1537da('0x1b7c')+_0x1b3cfc[_0x1537da('0x1fd7')]:_0x1537da('0x1d26'),'msg':_0x1b3cfc[_0x1537da('0x11d0')]?JSON['stringify'](_0x1b3cfc[_0x1537da('0x11d0')][_0x1537da('0x27e8')]):_0x1b3cfc[_0x1537da('0x27e8')]||_0x1b3cfc[_0x1537da('0x94f')]()});});}function _0x16b890(_0x3cd922,_0x1239bd){var _0x3c24a8=_0x5ae9fb,_0x51a728=_0x35901c[_0x3c24a8('0xa5')]()[_0x3c24a8('0x13e4')](_0x3c24a8('0x346')+_0x32d445()[_0x3c24a8('0x1df2')]('plugin')+'?')['htmlContent'](_0x3c24a8('0xab2')+(_0x3cd922[_0x3c24a8('0x2623')]||_0x3c24a8('0x17f2'))+_0x3c24a8('0x27bb')+_0x3c24a8('0x21bd'))[_0x3c24a8('0x4d1')](_0x3c24a8('0x10e3'))['targetEvent'](_0x1239bd)['ok']('OK')[_0x3c24a8('0x2c1')]('CANCEL');_0x35901c['show'](_0x51a728)[_0x3c24a8('0xe19')](function(){_0xce27c7(_0x3cd922);},function(){var _0x12e62d=_0x3c24a8;console[_0x12e62d('0x1fe9')]('CANCEL');});}var _0x3a2697=!![],_0x2b7ddf=0x1;_0x36872c[_0x5ae9fb('0x107')]('vm.query.filter',function(_0x50e62a,_0x1abf02){var _0x1c8d6d=_0x5ae9fb;_0x3a2697?_0x35f529(function(){_0x3a2697=![];}):(!_0x1abf02&&(_0x2b7ddf=_0x1fadba['query'][_0x1c8d6d('0xc08')]),_0x50e62a!==_0x1abf02&&(_0x1fadba[_0x1c8d6d('0xa16')]['page']=0x1),!_0x50e62a&&(_0x1fadba[_0x1c8d6d('0xa16')][_0x1c8d6d('0xc08')]=_0x2b7ddf),_0x1fadba[_0x1c8d6d('0x373')]());});function _0x503d3d(_0x492532){var _0x3d4a30=_0x5ae9fb;_0x1fadba[_0x3d4a30('0x226d')]=_0x492532||{'count':0x0,'rows':[]};}function _0x20008d(){var _0x45839f=_0x5ae9fb;_0x1fadba[_0x45839f('0xa16')]['offset']=(_0x1fadba[_0x45839f('0xa16')]['page']-0x1)*_0x1fadba[_0x45839f('0xa16')]['limit'],_0x19ae53['hasRole'](_0x45839f('0xd14'))?_0x1fadba['promise']=_0x3afdd8[_0x45839f('0x17f2')]['get'](_0x1fadba[_0x45839f('0xa16')],_0x503d3d)[_0x45839f('0xe59')]:(_0x1fadba[_0x45839f('0xa16')]['id']=_0x1fadba['userProfile']['id'],_0x1fadba[_0x45839f('0xa16')][_0x45839f('0x1e59')]=_0x45839f('0x1334'),_0x1fadba[_0x45839f('0x9c8')]=_0x3afdd8[_0x45839f('0x154f')][_0x45839f('0x14e6')](_0x1fadba[_0x45839f('0xa16')],_0x503d3d)[_0x45839f('0xe59')]);}function _0x29f2b8(_0x5dce24,_0x250af0){var _0xd8325=_0x5ae9fb;_0x35901c[_0xd8325('0x26b2')]({'controller':'CreateOrEditPluginDialogController','controllerAs':'vm','templateUrl':_0x1d6b82,'parent':angular[_0xd8325('0x24a1')](_0x57100d['body']),'targetEvent':_0x5dce24,'clickOutsideToClose':!![],'locals':{'plugin':_0x250af0,'plugins':_0x1fadba['plugins']['rows'],'license':_0x1fadba['license'],'setting':_0x1fadba[_0xd8325('0x22f1')],'crudPermissions':_0x1fadba['crudPermissions']}});}function _0xce27c7(_0x272787){var _0x2933e9=_0x5ae9fb;_0x272787[_0x2933e9('0x1a')]&&_0x272787['type']==_0x2933e9('0x1244')&&_0x3afdd8['pm2'][_0x2933e9('0x22d5')]()[_0x2933e9('0xe59')][_0x2933e9('0xe19')](function(_0x3a35b7){var _0xcfc8c1=_0x2933e9;if(!_0x3a35b7||!_0x3a35b7['rows'])return _0x568c7c[_0xcfc8c1('0x8c8')]({'title':'Plugin\x20not\x20deleted!','msg':_0xcfc8c1('0x20d0')});var _0x49dbaf=_0x32d445()['find'](_0x3a35b7['rows'],{'name':_0x272787['scriptName']});if(!_0x49dbaf){console[_0xcfc8c1('0x1fe9')](_0xcfc8c1('0x1b39'),_0x272787['scriptName']);return;}_0x3afdd8[_0xcfc8c1('0x132e')]['delete']({'id':_0x49dbaf[_0xcfc8c1('0x1b86')],'name':_0x272787[_0xcfc8c1('0x1283')]})[_0xcfc8c1('0xe59')];})[_0x2933e9('0x223b')](function(){var _0x2bb6d5=_0x2933e9;return _0x568c7c[_0x2bb6d5('0x8c8')]({'title':_0x2bb6d5('0x19ae'),'msg':'Failed\x20to\x20delete\x20the\x20attached\x20pm2\x20process'});}),_0x3afdd8[_0x2933e9('0x17f2')][_0x2933e9('0x229e')]({'id':_0x272787['id']})[_0x2933e9('0xe59')][_0x2933e9('0xe19')](function(){var _0x5ba3c8=_0x2933e9;_0x32d445()['remove'](_0x1fadba[_0x5ba3c8('0x226d')][_0x5ba3c8('0x16a7')],{'id':_0x272787['id']}),_0x1fadba['plugins'][_0x5ba3c8('0x148b')]-=0x1,!_0x1fadba[_0x5ba3c8('0x226d')][_0x5ba3c8('0x16a7')][_0x5ba3c8('0x25ae')]&&_0x1fadba[_0x5ba3c8('0x373')](),_0x568c7c[_0x5ba3c8('0x425')]({'title':_0x32d445()['startCase'](_0x5ba3c8('0x2137'))+'\x20deleted!','msg':_0x272787[_0x5ba3c8('0x2623')]?_0x272787['name']+_0x5ba3c8('0x2182'):''});})[_0x2933e9('0x223b')](function(_0x42f749){var _0x440d03=_0x2933e9;if(_0x42f749[_0x440d03('0x11d0')]&&_0x42f749['data'][_0x440d03('0xcd2')]&&_0x42f749[_0x440d03('0x11d0')]['errors'][_0x440d03('0x25ae')]){_0x1fadba[_0x440d03('0xcd2')]=_0x42f749[_0x440d03('0x11d0')][_0x440d03('0xcd2')]||[{'message':_0x42f749[_0x440d03('0x94f')](),'type':_0x440d03('0x1225')}];for(var _0x364653=0x0;_0x364653<_0x42f749[_0x440d03('0x11d0')][_0x440d03('0xcd2')][_0x440d03('0x25ae')];_0x364653++){_0x568c7c['error']({'title':_0x42f749[_0x440d03('0x11d0')][_0x440d03('0xcd2')][_0x364653][_0x440d03('0x62e')],'msg':_0x42f749[_0x440d03('0x11d0')]['errors'][_0x364653]['message']});}}else _0x568c7c[_0x440d03('0x8c8')]({'title':_0x42f749[_0x440d03('0x2833')]?_0x440d03('0x27f2')+_0x42f749[_0x440d03('0x2833')]+'\x20-\x20'+_0x42f749[_0x440d03('0x1fd7')]:_0x440d03('0x1225'),'msg':_0x42f749[_0x440d03('0x11d0')]?JSON[_0x440d03('0x3ad')](_0x42f749[_0x440d03('0x11d0')][_0x440d03('0x27e8')]):_0x42f749[_0x440d03('0x27e8')]||_0x42f749['toString']()});});}function _0xb864ea(){var _0xb1ef2d=_0x5ae9fb,_0x97a18b=angular[_0xb1ef2d('0x89')](_0x1fadba[_0xb1ef2d('0x1b13')]);return _0x1fadba[_0xb1ef2d('0x1b13')]=[],_0x97a18b;}function _0x173b9a(_0x1ec58f){var _0x281689=_0x5ae9fb,_0x36a0ba=_0x35901c[_0x281689('0xa5')]()[_0x281689('0x13e4')](_0x281689('0x9a6'))[_0x281689('0x221c')](_0x281689('0xab2')+_0x1fadba[_0x281689('0x1b13')][_0x281689('0x25ae')]+_0x281689('0x5bc')+_0x281689('0x21bd'))[_0x281689('0x4d1')](_0x281689('0x1b52'))[_0x281689('0x1345')](_0x1ec58f)['ok']('OK')['cancel'](_0x281689('0x17'));_0x35901c[_0x281689('0x26b2')](_0x36a0ba)[_0x281689('0xe19')](function(){var _0x263cc4=_0x281689;_0x1fadba[_0x263cc4('0x1b13')][_0x263cc4('0x1d7e')](function(_0x5137f2){_0xce27c7(_0x5137f2);}),_0x1fadba[_0x263cc4('0x1b13')]=[];});}function _0x373b04(){var _0x3fc431=_0x5ae9fb;_0x1fadba[_0x3fc431('0x1b13')]=[];}function _0x348bfc(){var _0x1bebd1=_0x5ae9fb;_0x1fadba[_0x1bebd1('0x1b13')]=_0x1fadba['plugins'][_0x1bebd1('0x16a7')];}function _0x10c29e(_0x2d2c5e){var _0x39e364=_0x5ae9fb;_0x35901c[_0x39e364('0x26b2')]({'controller':_0x39e364('0x116b'),'controllerAs':'vm','templateUrl':_0xc4b46a,'parent':angular[_0x39e364('0x24a1')](_0x57100d[_0x39e364('0x19b2')]),'targetEvent':_0x2d2c5e,'clickOutsideToClose':!![],'locals':{'plugins':_0x1fadba[_0x39e364('0x226d')][_0x39e364('0x16a7')]}});}}const _0x3bc493=_0x40f03a;_0x45c8e0[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),'plugins',_0xb635d2('0xffc'),'Auth'];function _0x45c8e0(_0xc10d61,_0x49ddd5,_0xffcb92,_0x5b7986,_0x4f5a55,_0x524f35){var _0xc1623e=_0xb635d2,_0x15cbf1=this,_0x547e6f=0x2,_0x5f331b=_0x547e6f*0x400*0x400;_0x15cbf1[_0xc1623e('0x15a5')]=_0x524f35[_0xc1623e('0x1ef8')](),_0x15cbf1['errors']=[],_0x15cbf1[_0xc1623e('0x13e4')]=_0xc1623e('0x19d5'),_0x15cbf1['plugins']=_0x5b7986,_0x15cbf1[_0xc1623e('0x12d7')]=[],_0x15cbf1[_0xc1623e('0x18c9')]=_0xc1623e('0x23ca'),_0x15cbf1['plugin']={},_0x15cbf1[_0xc1623e('0x186a')]={'maxChunkRetries':0x1,'chunkSize':_0x5f331b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':'api/plugins'},_0x15cbf1[_0xc1623e('0x1b57')]={'flow':{}},_0x15cbf1[_0xc1623e('0x1403')]=![],_0x15cbf1[_0xc1623e('0x1124')]=_0x35ece3,_0x15cbf1[_0xc1623e('0x20')]=_0x4db810,_0x15cbf1['fileSuccess']=_0x15104a,_0x15cbf1[_0xc1623e('0x2791')]=_0x5e62f0,_0x15cbf1['uploadComplete']=_0x312021,_0x15cbf1['closeDialog']=_0x15cb4c;function _0x35ece3(_0x72f15f){var _0x339baf=_0xc1623e,_0x2c6390=[_0x339baf('0x25bb')];if(!_0x32d445()[_0x339baf('0x1c43')](_0x2c6390,_0x72f15f[_0x339baf('0x23df')]()))return _0xffcb92['error']({'title':_0x339baf('0x11b6')+_0x72f15f[_0x339baf('0x23df')](),'msg':_0x339baf('0x1450')+_0x2c6390[_0x339baf('0x1537')]()}),![];if(_0x72f15f[_0x339baf('0x1aea')]>_0x5f331b)return _0xffcb92[_0x339baf('0x8c8')]({'title':_0x339baf('0x16c9'),'msg':_0x339baf('0x275f')+_0x547e6f+'MB'}),![];return _0x15cbf1[_0x339baf('0x17f2')]={'id':_0x72f15f['uniqueIdentifier'],'file':_0x72f15f},_0x15cbf1['uploadPlugins'][_0x339baf('0x14c9')](_0x15cbf1[_0x339baf('0x17f2')]),!![];}function _0x4db810(){var _0x28d36d=_0xc1623e;_0x15cbf1[_0x28d36d('0x18c9')]=_0x28d36d('0x1363'),_0x15cbf1[_0x28d36d('0x1b57')][_0x28d36d('0x206b')]['opts']['headers']={'X-Requested-With':_0x28d36d('0xdf4'),'Authorization':_0x28d36d('0x17b7')+_0xc10d61[_0x28d36d('0x22d5')]('motion.token')},_0x15cbf1[_0x28d36d('0x1b57')][_0x28d36d('0x206b')][_0x28d36d('0x5ec')]['query']={'role':_0x15cbf1[_0x28d36d('0x15a5')]['role'],'userProfileId':_0x15cbf1[_0x28d36d('0x15a5')][_0x28d36d('0x1d04')]},_0x15cbf1['ngFlow']['flow'][_0x28d36d('0x20')]();}function _0x15104a(_0x580cd1,_0x308010){var _0x2aad92=_0xc1623e;_0x15cbf1[_0x2aad92('0x226d')][_0x2aad92('0x14c9')](JSON[_0x2aad92('0x118e')](_0x308010)),angular[_0x2aad92('0x1d7e')](_0x15cbf1[_0x2aad92('0x12d7')],function(_0xb4d2b8){var _0xe3f2e4=_0x2aad92;if(_0xb4d2b8['id']===_0x580cd1[_0xe3f2e4('0x164e')]){var _0x5f00ed=new FileReader();_0x5f00ed[_0xe3f2e4('0x845')](_0xb4d2b8[_0xe3f2e4('0x2c0')][_0xe3f2e4('0x2c0')]),_0x5f00ed[_0xe3f2e4('0x1d94')]=function(_0x2790fd){var _0x22d171=_0xe3f2e4;_0xb4d2b8[_0x22d171('0x2647')]=_0x2790fd['target'][_0x22d171('0x2048')];};}});}function _0x5e62f0(){var _0x553ae6=_0xc1623e;_0x15cbf1[_0x553ae6('0x1b57')]['flow'][_0x553ae6('0x2c1')](),_0xffcb92['error']({'title':_0x553ae6('0x237c'),'msg':_0x553ae6('0x412')}),_0x15cbf1[_0x553ae6('0x18c9')]='failed';}function _0x312021(){var _0x88b99c=_0xc1623e;_0x15cbf1[_0x88b99c('0x18c9')]!==_0x88b99c('0x17ad')&&(_0x15cbf1[_0x88b99c('0x18c9')]=_0x88b99c('0x20c5'),_0xffcb92[_0x88b99c('0x425')]({'title':_0x88b99c('0x21b3'),'msg':_0x15cbf1[_0x88b99c('0x17f2')][_0x88b99c('0x2c0')]['name']+_0x88b99c('0x5a5')}));}function _0x15cb4c(){var _0x221926=_0xc1623e;_0x49ddd5[_0x221926('0x11ed')]();}}const _0x1e442e=_0x45c8e0;_0x2ec6fe[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),'$translatePartialLoaderProvider'];function _0x2ec6fe(_0x5307a3,_0x4ed116){var _0x44aca6=_0xb635d2;_0x5307a3[_0x44aca6('0x1d72')]('app.marketplace',{'abstract':!![],'url':'/marketplace'})['state'](_0x44aca6('0x2700'),{'url':_0x44aca6('0x2282'),'views':{'content@app':{'templateUrl':_0x2d5be4,'controller':'MarketplacePluginsController\x20as\x20vm'}},'resolve':{'plugins':[_0x44aca6('0x292'),_0x44aca6('0x2730'),function _0x38ffcf(_0x3bfa30,_0x1b3555){var _0x269d9a=_0x44aca6;return _0x1b3555['hasRole'](_0x269d9a('0xd14'))?_0x3bfa30['resolve']('plugin@get',{'fields':_0x269d9a('0xdd5'),'sort':_0x269d9a('0x2623'),'limit':0xa,'offset':0x0}):_0x3bfa30[_0x269d9a('0xcd6')](_0x269d9a('0x197d'),{'id':_0x1b3555[_0x269d9a('0x1ef8')]()['userProfileId'],'section':'Plugins','fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','sort':_0x269d9a('0x2623'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x44aca6('0x292'),_0x44aca6('0x2730'),function _0x8e3df4(_0x490573,_0x228f10){var _0x4ef758=_0x44aca6;return _0x228f10[_0x4ef758('0x179e')](_0x4ef758('0xd14'))?null:_0x490573[_0x4ef758('0xcd6')](_0x4ef758('0x455'),{'fields':_0x4ef758('0x1b71'),'id':_0x228f10[_0x4ef758('0x1ef8')]()[_0x4ef758('0x1d04')]});}],'userProfileSection':[_0x44aca6('0x292'),_0x44aca6('0x2730'),function _0x2798d2(_0x2cfa2d,_0x1a5b30){var _0x5c482a=_0x44aca6;return _0x1a5b30[_0x5c482a('0x179e')](_0x5c482a('0xd14'))?null:_0x2cfa2d['resolve'](_0x5c482a('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1a5b30[_0x5c482a('0x1ef8')]()['userProfileId'],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':'marketplace'})[_0x44aca6('0x1d72')](_0x44aca6('0x196a'),{'url':'/:id?tab','params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5771cc,'controller':_0x44aca6('0x160a')}},'resolve':{'plugin':['apiResolver','$stateParams',function _0x2d9d60(_0xb664b5,_0xff2211){var _0x5e36a1=_0x44aca6;return _0xb664b5[_0x5e36a1('0xcd6')]('plugin@get',{'fields':_0x5e36a1('0xdd5'),'id':_0xff2211['id']});}],'userProfileSection':[_0x44aca6('0x292'),_0x44aca6('0x2730'),function _0x2c4f28(_0x843465,_0x262d8e){var _0x3a59e6=_0x44aca6;return _0x843465['resolve'](_0x3a59e6('0x264e'),{'fields':_0x3a59e6('0x12d6'),'userProfileId':_0x262d8e[_0x3a59e6('0x1ef8')]()[_0x3a59e6('0x1d04')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x44aca6('0x276b')}),_0x4ed116[_0x44aca6('0xfe3')](_0x44aca6('0x124a'));}angular['module'](_0xb635d2('0x2cc'),[_0xb635d2('0x569'),'ngPassword','md.data.table','flow','mdColorPicker',_0xb635d2('0x1727'),_0xb635d2('0x1951'),'ngAria',_0xb635d2('0x1c2a'),_0xb635d2('0x153a'),'mwFormBuilder','mwFormViewer','mwFormUtils',_0xb635d2('0x19de'),'angular-cron-jobs','ngEmbed',_0xb635d2('0x17b0'),'material.components.expansionPanels',_0xb635d2('0xe93'),_0xb635d2('0x16a1')])[_0xb635d2('0x1990')](_0x2ec6fe)[_0xb635d2('0x1a79')]('CreateOrEditPluginDialogController',_0xb623b3)[_0xb635d2('0x1a79')]('MarketplacePluginController',_0x31a3d5)['controller'](_0xb635d2('0xdc8'),_0x3bc493)[_0xb635d2('0x1a79')](_0xb635d2('0x116b'),_0x1e442e);const _0x80662f=_0x59426a['p']+'src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin-[chunkhash].html';_0x5c805b['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x63c'),_0xb635d2('0x2858'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0x2730')];function _0x5c805b(_0x1e7ac4,_0x51e91a,_0x5ec01c,_0x456954,_0xd192df,_0x5dbb14){var _0x14c714=_0xb635d2,_0x2c7ccf=this;_0x2c7ccf[_0x14c714('0x15a5')]=_0x5dbb14[_0x14c714('0x1ef8')](),_0x2c7ccf['plugin']={},_0x2c7ccf[_0x14c714('0x88b')]=_0xaa3346,_0x456954['plugin']['get']({'id':_0x1e7ac4[_0x14c714('0x2ef')]['id']})[_0x14c714('0xe59')][_0x14c714('0xe19')](function(_0xec7853){var _0x3f23bd=_0x14c714;if(_0xec7853)return _0x2c7ccf[_0x3f23bd('0x17f2')]=_0xec7853,_0x456954[_0x3f23bd('0x17f2')]['get']({'id':_0x2c7ccf['plugin']['id']})[_0x3f23bd('0xe59')];})['catch'](function(){var _0x4b4c75=_0x14c714;_0x2c7ccf[_0x4b4c75('0x17f2')]=undefined;});function _0xaa3346(){var _0x130561=_0x14c714;return _0x5ec01c[_0x130561('0x405')](_0x2c7ccf[_0x130561('0x17f2')][_0x130561('0x15d4')]);}}const _0x22af7f=_0x5c805b;_0x133220[_0xb635d2('0xb0c')]=['$stateProvider'];function _0x133220(_0x5146e2){var _0x197f4d=_0xb635d2;_0x5146e2[_0x197f4d('0x1d72')]('app.plugins.plugin',{'url':_0x197f4d('0x39d'),'views':{'content@app':{'templateUrl':_0x80662f,'controller':_0x197f4d('0x141e')}},'resolve':{},'authenticate':!![],'bodyClass':_0x197f4d('0x226d')});}angular[_0xb635d2('0x153f')](_0xb635d2('0x16dc'),[])[_0xb635d2('0x1990')](_0x133220)[_0xb635d2('0x1a79')]('PluginController',_0x22af7f),_0x5b71e5[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x5b71e5(_0x30572d,_0xcd2e81){var _0x1581fe=_0xb635d2;_0x30572d[_0x1581fe('0x1d72')](_0x1581fe('0x2184'),{'abstract':!![],'url':'/plugins'}),_0xcd2e81[_0x1581fe('0xfe3')](_0x1581fe('0x753'));}angular['module'](_0xb635d2('0x2184'),[_0xb635d2('0x569'),_0xb635d2('0x24b'),'md.data.table','flow',_0xb635d2('0xd8b'),_0xb635d2('0x1727'),_0xb635d2('0x1951'),_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),'mdPickers',_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),_0xb635d2('0x19de'),_0xb635d2('0x127e'),'ngEmbed',_0xb635d2('0x17b0'),_0xb635d2('0x191c'),_0xb635d2('0xe93'),'angular.filter',_0xb635d2('0x16dc')])[_0xb635d2('0x1990')](_0x5b71e5);const _0x44be18=_0x59426a['p']+_0xb635d2('0x18a7');_0xeb2f5c['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q','$translate',_0xb635d2('0xf65'),_0xb635d2('0x1681'),_0xb635d2('0x166f'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0xeb2f5c(_0x578ed8,_0x335f37,_0x3a9994,_0x5c99f0,_0x1b18fd,_0x5a4c45,_0x1b598f,_0x356ee6,_0xae567,_0x2ab66d,_0x38bc2a,_0x2fa846,_0x5a54d5,_0x243dad){var _0x465fea=_0xb635d2,_0x438425=this;_0x438425[_0x465fea('0x15a5')]=_0x38bc2a['getCurrentUser'](),_0x438425['errors']=[],_0x438425[_0x465fea('0x22f1')]=_0x5a54d5,_0x438425[_0x465fea('0x5c1')]=_0x2fa846,_0x438425['crudPermissions']=_0x243dad,_0x438425[_0x465fea('0x1ccb')]={},_0x438425[_0x465fea('0x25ac')]=_0x438425[_0x465fea('0x22f1')]&&_0x438425[_0x465fea('0x22f1')][_0x465fea('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x438425[_0x465fea('0x13e4')]=_0x465fea('0x1741'),_0x438425['screenRecording']=angular['copy'](_0xae567),_0x438425[_0x465fea('0x1681')]=_0x356ee6,_0x438425[_0x465fea('0x1d40')]=![];!_0x438425[_0x465fea('0x166f')]&&(_0x438425[_0x465fea('0x166f')]={},_0x438425[_0x465fea('0x13e4')]=_0x465fea('0x1f8e'),_0x438425[_0x465fea('0x1d40')]=!![]);_0x438425['addNewscreenRecording']=_0x5829cd,_0x438425[_0x465fea('0x5c4')]=_0x3299cb,_0x438425[_0x465fea('0x1737')]=_0x40260f,_0x438425[_0x465fea('0x2635')]=_0x383d77,_0x438425[_0x465fea('0x2584')]=_0xbaddb6,_0x2ab66d[_0x465fea('0x10c6')][_0x465fea('0x22d5')]({'fields':_0x465fea('0x194c'),'sort':_0x465fea('0x2623'),'nolimit':_0x465fea('0x2206')})['$promise'][_0x465fea('0xe19')](function(_0xcf9256){var _0x5a253b=_0x465fea;_0x438425[_0x5a253b('0x2526')]=_0xcf9256[_0x5a253b('0x16a7')]||[];})[_0x465fea('0x223b')](function(_0x2a5f6b){var _0xdb6afb=_0x465fea;_0x1b598f[_0xdb6afb('0x8c8')]({'title':_0x2a5f6b[_0xdb6afb('0x2833')]?_0xdb6afb('0x27f2')+_0x2a5f6b[_0xdb6afb('0x2833')]+_0xdb6afb('0x1b7c')+_0x2a5f6b[_0xdb6afb('0x1fd7')]:'SYSTEM:GET_USERS','msg':_0x2a5f6b[_0xdb6afb('0x11d0')]?JSON[_0xdb6afb('0x3ad')](_0x2a5f6b['data']):_0x2a5f6b[_0xdb6afb('0x94f')]()});});function _0x5829cd(){var _0x2ee2ef=_0x465fea;_0x438425[_0x2ee2ef('0xcd2')]=[],_0x2ab66d[_0x2ee2ef('0x166f')][_0x2ee2ef('0xe5e')](_0x438425[_0x2ee2ef('0x166f')])[_0x2ee2ef('0xe59')][_0x2ee2ef('0xe19')](function(_0x4517f9){var _0x5c4b9c=_0x2ee2ef;_0x438425[_0x5c4b9c('0x1681')][_0x5c4b9c('0x14c9')](_0x4517f9[_0x5c4b9c('0x250e')]()),_0x1b598f['success']({'title':_0x5c4b9c('0x1598'),'msg':_0x438425[_0x5c4b9c('0x166f')][_0x5c4b9c('0x2623')]?_0x438425['screenRecording']['name']+'\x20has\x20been\x20created!':''}),_0xbaddb6(_0x4517f9);})[_0x2ee2ef('0x223b')](function(_0x5cb006){var _0x2a64d4=_0x2ee2ef;if(_0x5cb006[_0x2a64d4('0x11d0')]&&_0x5cb006[_0x2a64d4('0x11d0')]['errors']&&_0x5cb006['data'][_0x2a64d4('0xcd2')][_0x2a64d4('0x25ae')]){_0x438425['errors']=_0x5cb006[_0x2a64d4('0x11d0')][_0x2a64d4('0xcd2')]||[{'message':_0x5cb006[_0x2a64d4('0x94f')](),'type':'api.screenRecording.save'}];for(var _0x39a0cf=0x0;_0x39a0cf<_0x5cb006[_0x2a64d4('0x11d0')]['errors'][_0x2a64d4('0x25ae')];_0x39a0cf+=0x1){_0x1b598f[_0x2a64d4('0x8c8')]({'title':_0x5cb006[_0x2a64d4('0x11d0')][_0x2a64d4('0xcd2')][_0x39a0cf][_0x2a64d4('0x62e')],'msg':_0x5cb006['data']['errors'][_0x39a0cf][_0x2a64d4('0x27e8')]});}}else _0x1b598f[_0x2a64d4('0x8c8')]({'title':_0x5cb006[_0x2a64d4('0x2833')]?_0x2a64d4('0x27f2')+_0x5cb006['status']+'\x20-\x20'+_0x5cb006[_0x2a64d4('0x1fd7')]:_0x2a64d4('0xe0'),'msg':_0x5cb006['data']?JSON[_0x2a64d4('0x3ad')](_0x5cb006[_0x2a64d4('0x11d0')][_0x2a64d4('0x27e8')]):_0x5cb006[_0x2a64d4('0x94f')]()});});}function _0x3299cb(){var _0x2c89f6=_0x465fea;_0x438425[_0x2c89f6('0xcd2')]=[],_0x2ab66d[_0x2c89f6('0x166f')][_0x2c89f6('0xa70')]({'id':_0x438425[_0x2c89f6('0x166f')]['id']},_0x438425[_0x2c89f6('0x166f')])[_0x2c89f6('0xe59')][_0x2c89f6('0xe19')](function(_0x536cf1){var _0x34cbfd=_0x2c89f6,_0x51af21=_0x32d445()['find'](_0x438425[_0x34cbfd('0x1681')],{'id':_0x536cf1['id']});_0x51af21&&_0x32d445()[_0x34cbfd('0x1d8')](_0x51af21,_0x32d445()[_0x34cbfd('0xed5')](_0x536cf1[_0x34cbfd('0x250e')](),_0x32d445()[_0x34cbfd('0x1234')](_0x51af21))),_0x1b598f[_0x34cbfd('0x425')]({'title':_0x34cbfd('0x825'),'msg':_0x438425[_0x34cbfd('0x166f')][_0x34cbfd('0x2623')]?_0x438425['screenRecording'][_0x34cbfd('0x2623')]+'\x20has\x20been\x20saved!':''}),_0xbaddb6(_0x536cf1);})[_0x2c89f6('0x223b')](function(_0x56469e){var _0x5a178f=_0x2c89f6;if(_0x56469e[_0x5a178f('0x11d0')]&&_0x56469e[_0x5a178f('0x11d0')][_0x5a178f('0xcd2')]&&_0x56469e[_0x5a178f('0x11d0')]['errors'][_0x5a178f('0x25ae')]){_0x438425[_0x5a178f('0xcd2')]=_0x56469e[_0x5a178f('0x11d0')][_0x5a178f('0xcd2')]||[{'message':_0x56469e[_0x5a178f('0x94f')](),'type':_0x5a178f('0x2d7')}];for(var _0xfb55ff=0x0;_0xfb55ff<_0x56469e['data'][_0x5a178f('0xcd2')][_0x5a178f('0x25ae')];_0xfb55ff++){_0x1b598f[_0x5a178f('0x8c8')]({'title':_0x56469e[_0x5a178f('0x11d0')][_0x5a178f('0xcd2')][_0xfb55ff][_0x5a178f('0x62e')],'msg':_0x56469e[_0x5a178f('0x11d0')][_0x5a178f('0xcd2')][_0xfb55ff][_0x5a178f('0x27e8')]});}}else _0x1b598f[_0x5a178f('0x8c8')]({'title':_0x56469e['status']?_0x5a178f('0x27f2')+_0x56469e['status']+_0x5a178f('0x1b7c')+_0x56469e[_0x5a178f('0x1fd7')]:_0x5a178f('0x2d7'),'msg':_0x56469e[_0x5a178f('0x11d0')]?JSON[_0x5a178f('0x3ad')](_0x56469e['data'][_0x5a178f('0x27e8')]):_0x56469e[_0x5a178f('0x94f')]()});});}function _0x40260f(_0x4796cf){var _0x495958=_0x465fea;_0x438425[_0x495958('0xcd2')]=[];var _0x4468e6=_0x5c99f0['confirm']()[_0x495958('0x13e4')](_0x495958('0x24d0'))[_0x495958('0xd0')](_0x495958('0x1c18'))[_0x495958('0x4d1')](_0x495958('0x1692'))['ok'](_0x495958('0x2198'))[_0x495958('0x2c1')](_0x495958('0x8a3'))[_0x495958('0x1345')](_0x4796cf);_0x5c99f0[_0x495958('0x26b2')](_0x4468e6)['then'](function(){var _0x115077=_0x495958;_0x2ab66d['screenRecording'][_0x115077('0x229e')]({'id':_0x438425[_0x115077('0x166f')]['id']})[_0x115077('0xe59')][_0x115077('0xe19')](function(){var _0x283019=_0x115077;_0x32d445()[_0x283019('0xa8b')](_0x438425[_0x283019('0x1681')],{'id':_0x438425[_0x283019('0x166f')]['id']}),_0x1b598f[_0x283019('0x425')]({'title':_0x283019('0x8d7'),'msg':(_0x438425['screenRecording']['name']||_0x283019('0x166f'))+_0x283019('0x2182')}),_0xbaddb6(_0x438425[_0x283019('0x166f')]);})[_0x115077('0x223b')](function(_0x29a8f4){var _0x8bccde=_0x115077;if(_0x29a8f4[_0x8bccde('0x11d0')]&&_0x29a8f4['data'][_0x8bccde('0xcd2')]&&_0x29a8f4[_0x8bccde('0x11d0')][_0x8bccde('0xcd2')][_0x8bccde('0x25ae')]){_0x438425['errors']=_0x29a8f4[_0x8bccde('0x11d0')][_0x8bccde('0xcd2')]||[{'message':_0x29a8f4[_0x8bccde('0x94f')](),'type':_0x8bccde('0xb3f')}];for(var _0x42e8f2=0x0;_0x42e8f2<_0x29a8f4[_0x8bccde('0x11d0')]['errors'][_0x8bccde('0x25ae')];_0x42e8f2++){_0x1b598f['error']({'title':_0x29a8f4[_0x8bccde('0x11d0')][_0x8bccde('0xcd2')][_0x42e8f2][_0x8bccde('0x62e')],'msg':_0x29a8f4[_0x8bccde('0x11d0')][_0x8bccde('0xcd2')][_0x42e8f2]['message']});}}else _0x1b598f[_0x8bccde('0x8c8')]({'title':_0x29a8f4[_0x8bccde('0x2833')]?_0x8bccde('0x27f2')+_0x29a8f4[_0x8bccde('0x2833')]+_0x8bccde('0x1b7c')+_0x29a8f4[_0x8bccde('0x1fd7')]:_0x8bccde('0xb3f'),'msg':_0x29a8f4[_0x8bccde('0x11d0')]?JSON[_0x8bccde('0x3ad')](_0x29a8f4[_0x8bccde('0x11d0')][_0x8bccde('0x27e8')]):_0x29a8f4['message']||_0x29a8f4[_0x8bccde('0x94f')]()});});},function(){});}function _0x383d77(_0x2851af){return _0x2851af===null?undefined:new Date(_0x2851af);}function _0xbaddb6(_0x7b957f){var _0x410731=_0x465fea;_0x5c99f0[_0x410731('0x11ed')](_0x7b957f);}}const _0x301e7b=_0xeb2f5c;_0x24a5e9[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x1c9f'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x15d0'),_0xb635d2('0x21d6'),_0xb635d2('0x10f6'),_0xb635d2('0x1ac4'),_0xb635d2('0x20f8'),'$q'];function _0x24a5e9(_0x201029,_0x2b2b0a,_0x19173f,_0xe51bc,_0x440914,_0x46077a,_0x2fc72e,_0x4b12b7,_0x57da23,_0x31e776){var _0x28d5fa=_0xb635d2,_0x46aca9=this;_0x46aca9[_0x28d5fa('0x234a')]=![],_0x46aca9[_0x28d5fa('0x15d0')]=Object[_0x28d5fa('0x5c5')]({},_0x440914),_0x46aca9[_0x28d5fa('0x622')]=_0x28d5fa('0x166f'),_0x46aca9[_0x28d5fa('0x24a1')]=_0x57da23,_0x46aca9[_0x28d5fa('0x21d6')]=Object[_0x28d5fa('0x5c5')]({},_0x46077a),_0x46aca9[_0x28d5fa('0xf2e')]=_0x4b12b7,_0x46aca9[_0x28d5fa('0x10f6')]=_0x2fc72e,_0x46aca9['app']=_0x28d5fa('0xfdc'),_0x46aca9['model']='screenRecording',console[_0x28d5fa('0x1fe9')](_0x28d5fa('0x42f'),_0x46aca9['path']),console[_0x28d5fa('0x1fe9')](_0x28d5fa('0x1939'),_0x46aca9[_0x28d5fa('0x15d0')][_0x46aca9[_0x28d5fa('0xf2e')]]),_0x46aca9[_0x28d5fa('0x248')]=_0x46aca9['recording'][_0x46aca9[_0x28d5fa('0xf2e')]][_0x28d5fa('0x281c')]('/')>-0x1?_0x46aca9[_0x28d5fa('0x15d0')][_0x46aca9[_0x28d5fa('0xf2e')]][_0x28d5fa('0x126d')](_0x46aca9[_0x28d5fa('0x15d0')][_0x46aca9[_0x28d5fa('0xf2e')]][_0x28d5fa('0x11cc')]('/')+0x1):_0x46aca9['recording'][_0x46aca9['path']][_0x28d5fa('0x281c')]('\x5c')>-0x1?_0x46aca9[_0x28d5fa('0x15d0')][_0x46aca9[_0x28d5fa('0xf2e')]]['substring'](_0x46aca9[_0x28d5fa('0x15d0')][_0x46aca9[_0x28d5fa('0xf2e')]][_0x28d5fa('0x11cc')]('\x5c')+0x1):_0x46aca9['recording'][_0x46aca9[_0x28d5fa('0xf2e')]],_0x46aca9[_0x28d5fa('0x5e5')]=![];_0x32d445()[_0x28d5fa('0xe44')](_0x46aca9[_0x28d5fa('0x15d0')][_0x28d5fa('0x5e5')])&&(_0x46aca9[_0x28d5fa('0x15d0')][_0x28d5fa('0x5e5')]=_0x46aca9[_0x28d5fa('0x248')]['slice'](_0x46aca9[_0x28d5fa('0x248')]['lastIndexOf']('.')));(_0x46aca9[_0x28d5fa('0x15d0')][_0x28d5fa('0x5e5')]===_0x28d5fa('0x14e9')&&_0x46aca9[_0x28d5fa('0x24a1')]===_0x28d5fa('0xea7')||_0x46aca9['recording'][_0x28d5fa('0x5e5')]===_0x28d5fa('0x357')&&_0x46aca9[_0x28d5fa('0x24a1')]==='video')&&(_0x46aca9['format']=!![]);_0x46aca9[_0x28d5fa('0x145c')]=!![];_0x46aca9[_0x28d5fa('0x5e5')]&&_0x52e29d();function _0x52e29d(){var _0x34650f=_0x28d5fa,_0x1d56ff=_0x31e776['defer']();return _0xe51bc[_0x34650f('0x166f')][_0x34650f('0x1d1e')]({'id':_0x46aca9['recording']['id'],'path':String(_0x46aca9['path'])})[_0x34650f('0xe59')][_0x34650f('0xe19')](function(){var _0x20c4b5=_0x34650f;_0x46aca9[_0x20c4b5('0x5e5')]=!![],_0x46aca9['found']=!![],_0x1d56ff[_0x20c4b5('0xcd6')]();})[_0x34650f('0x223b')](function(){var _0x51b309=_0x34650f;console['log']('err'),_0x46aca9[_0x51b309('0x5e5')]=![],_0x46aca9[_0x51b309('0x145c')]=![],_0x1d56ff[_0x51b309('0xcd6')]();}),_0x1d56ff[_0x34650f('0x9c8')];}if(!_0x32d445()[_0x28d5fa('0xe44')](_0x46077a['properties'])&&_0x46077a[_0x28d5fa('0x1538')]){_0x46aca9['properties']=Object['assign']({},_0x440914);var _0x1b476d=Object['keys'](_0x440914);_0x1b476d['forEach'](function(_0x2dbc80){var _0x1d7853=_0x28d5fa;String(_0x2dbc80[0x0][_0x1d7853('0x25f7')]())===String(_0x2dbc80[0x0])&&delete _0x46aca9[_0x1d7853('0x1538')][_0x2dbc80];}),_0x46aca9[_0x28d5fa('0x1261')]={};if(!_0x32d445()[_0x28d5fa('0xe44')](_0x46077a['propertiesList'])&&_0x46077a[_0x28d5fa('0xaa7')][_0x28d5fa('0x25ae')]>0x0){_0x46aca9[_0x28d5fa('0x1261')]=Object[_0x28d5fa('0x5c5')]({},_0x440914);var _0x47b820=_0x46077a[_0x28d5fa('0xaa7')],_0x3de98a=Object['keys'](_0x440914),_0x2c9e9f=!![];_0x3de98a[_0x28d5fa('0x1d7e')](function(_0x5de8ad){var _0x2953b2=_0x28d5fa;_0x2c9e9f=!![],_0x47b820['forEach'](function(_0x289b7d){String(_0x5de8ad)===String(_0x289b7d)&&(_0x2c9e9f=![]);}),_0x2c9e9f&&delete _0x46aca9[_0x2953b2('0x1261')][_0x5de8ad];}),_0x46aca9['properties']=_0x46aca9[_0x28d5fa('0x1261')];}if(!_0x32d445()[_0x28d5fa('0xe44')](_0x46077a[_0x28d5fa('0x1610')])&&_0x46077a[_0x28d5fa('0x1610')][_0x28d5fa('0x25ae')]>0x0){_0x46aca9[_0x28d5fa('0x2747')]={};var _0x41fbc4=_0x46077a[_0x28d5fa('0x1610')];for(var _0x4bbea1=0x0;_0x4bbea1<_0x41fbc4[_0x28d5fa('0x25ae')];_0x4bbea1++){var _0x42079c=_0x41fbc4[_0x4bbea1]['values'],_0x1198fa=_0x41fbc4[_0x4bbea1]['model'];for(var _0x39dbf4=0x0;_0x39dbf4<_0x42079c[_0x28d5fa('0x25ae')];_0x39dbf4++){_0x46aca9[_0x28d5fa('0x2747')][_0x42079c[_0x39dbf4]['text']]=_0x440914[_0x1198fa][_0x42079c[_0x39dbf4][_0x28d5fa('0x6e4')]];}}_0x46aca9['properties']=Object[_0x28d5fa('0x5c5')]({},_0x46aca9[_0x28d5fa('0x1261')],_0x46aca9['propertiesExtra']);}}_0x46aca9[_0x28d5fa('0x2584')]=_0x15da7b;function _0x15da7b(){var _0x4d2c9e=_0x28d5fa;_0x2b2b0a[_0x4d2c9e('0x11ed')]();}}const _0x15aeb3=_0x24a5e9,_0xc0f10f=_0x59426a['p']+_0xb635d2('0x1791'),_0x5e2768=_0x59426a['p']+'src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html/play-[chunkhash].html';_0x2b04a4[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x1681'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1')];function _0x2b04a4(_0x107a6a,_0x440d26,_0x1d32fc,_0x55a759,_0x49f9f5,_0x935ef6,_0x502305,_0x49d220,_0x36e764,_0x32e604,_0x4f4af7,_0x2073e4,_0xfcffd6,_0xa2af08,_0x543f3f,_0x25e333,_0x28d6ae){var _0x384564=_0xb635d2,_0x350ba9=this;_0x350ba9['license']=_0x25e333,_0x350ba9['setting']=_0x28d6ae,_0x350ba9['currentUser']=_0x543f3f[_0x384564('0x1ef8')](),_0x350ba9[_0x384564('0x1681')]=_0x36e764||{'count':0x0,'rows':[]},_0x350ba9['userProfile']=_0x32e604,_0x350ba9[_0x384564('0xb59')]=_0x4f4af7&&_0x4f4af7['count']==0x1?_0x4f4af7['rows'][0x0]:null,_0x350ba9[_0x384564('0xb3d')]=_0x543f3f['parseCrudPermissions'](_0x350ba9[_0x384564('0xb59')]?_0x350ba9[_0x384564('0xb59')][_0x384564('0xb3d')]:null),_0x350ba9[_0x384564('0x19b6')]=_0x384564('0x1681'),_0x350ba9['listOrder']='',_0x350ba9[_0x384564('0x190c')]=null,_0x350ba9[_0x384564('0x8bf')]=[],_0x350ba9['query']={'fields':_0x384564('0x1f1d'),'createdAt':_0x384564('0xb67'),'includeAll':_0x384564('0x2206'),'sort':_0x384564('0x7e8'),'limit':0xa,'page':0x1},_0x350ba9[_0x384564('0xa16')][_0x384564('0x15c9')]=_0xfcffd6[_0x384564('0x2ca')](),_0x350ba9['quickFilters']=_0x1e66b4();function _0x1e66b4(){var _0x59ee4f=_0x384564;return[{'name':'Start\x20Date','key':_0x59ee4f('0x15c9'),'type':_0x59ee4f('0xf6d'),'label':_0x59ee4f('0x61b')}];}_0x350ba9[_0x384564('0x1b9b')]=_0x2e6604,_0x350ba9[_0x384564('0x42d')]=_0xe44d29,_0x350ba9[_0x384564('0x1d9e')]=_0x4c08e9,_0x350ba9[_0x384564('0x425')]=_0x364b56,_0x350ba9['getScreenRecordings']=_0x378429,_0x350ba9[_0x384564('0xa93')]=_0x8a4b40,_0x350ba9[_0x384564('0x1737')]=_0x251d65,_0x350ba9[_0x384564('0xe18')]=_0x1a6a33,_0x350ba9[_0x384564('0x1b61')]=_0x1e5dcf,_0x350ba9[_0x384564('0x23e')]=_0x8bae27,_0x350ba9['selectAllScreenRecordings']=_0x3d9bc9,_0x350ba9['convertDuration']=_0x3aa87f,_0x2073e4[_0x384564('0x10c6')]['get']({'fields':'id,name,fullname','sort':_0x384564('0x2623'),'nolimit':_0x384564('0x2206')})[_0x384564('0xe59')][_0x384564('0xe19')](function(_0x24bde9){var _0x18910d=_0x384564;_0x350ba9['users']=_0x24bde9[_0x18910d('0x16a7')]||[];})[_0x384564('0x223b')](function(_0x358918){var _0x1b882d=_0x384564;_0xa2af08[_0x1b882d('0x8c8')]({'title':_0x358918[_0x1b882d('0x2833')]?'API:'+_0x358918['status']+_0x1b882d('0x1b7c')+_0x358918['statusText']:_0x1b882d('0x4f3'),'msg':_0x358918['data']?JSON[_0x1b882d('0x3ad')](_0x358918['data']):_0x358918[_0x1b882d('0x94f')]()});});function _0x2e6604(_0x37a6f1,_0x51e2a6,_0x45f6ce,_0x4cf0dc,_0x19e419){var _0x37251a=_0x384564,_0x4272e5={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':'icon-video','propertiesList':[_0x37251a('0x5e5'),_0x37251a('0x137d'),_0x37251a('0xf6a'),'startedAt',_0x37251a('0xbd0'),_0x37251a('0x15c9')],'extraData':[{'model':_0x37251a('0x2630'),'values':[{'key':_0x37251a('0x2623'),'text':_0x37251a('0x136f')}]}]},_0x12671a={};_0x12671a['route']=_0x37251a('0x166f'),_0x12671a[_0x37251a('0x2623')]=_0x37251a('0x1681'),_0x12671a[_0x37251a('0x179f')]=_0x37251a('0x166f'),_0x12671a[_0x37251a('0x2394')]=_0x37251a('0x166f'),_0x4cf0dc=String(_0x4cf0dc);var _0xa0caa7=String(_0x45f6ce);console[_0x37251a('0x1fe9')](_0x37251a('0x57d'),String(_0x45f6ce)),_0x49f9f5[_0x37251a('0x26b2')]({'controller':'ScreenRecordingplayController','controllerAs':'vm','templateUrl':_0x5e2768,'parent':angular[_0x37251a('0x24a1')](_0x935ef6['body']),'targetEvent':_0x51e2a6,'clickOutsideToClose':!![],'locals':{'recording':_0x37a6f1,'recordings':_0x350ba9[_0x37251a('0x1681')][_0x37251a('0x16a7')],'license':_0x350ba9['license'],'setting':null,'item':_0x12671a,'actionOptions':_0x4272e5,'label':_0x4cf0dc,'varPath':_0xa0caa7,'elementTag':String(_0x19e419)}});}function _0xe44d29(_0x390d66){var _0x72e8fa=_0x384564,_0x156953=![],_0x242a6b=!_0x32d445()[_0x72e8fa('0xe44')](_0x390d66[_0x72e8fa('0x5e5')])?_0x390d66[_0x72e8fa('0x5e5')]:_0x390d66[_0x72e8fa('0x2')][_0x72e8fa('0x126d')](_0x390d66[_0x72e8fa('0x2')][_0x72e8fa('0x11cc')]('.'));_0x156953=_0x242a6b===_0x72e8fa('0x357')?!![]:![];var _0x481d4c=_0x390d66['value'][_0x72e8fa('0x11cc')]('/')>-0x1?_0x390d66['value']['substring'](_0x390d66[_0x72e8fa('0x2')][_0x72e8fa('0x11cc')]('/')+0x1):_0x390d66['value'][_0x72e8fa('0x11cc')]('\x5c')>-0x1?_0x390d66['value']['substring'](_0x390d66[_0x72e8fa('0x2')][_0x72e8fa('0x11cc')]('\x5c')+0x1):_0x390d66['value'];return _0x2073e4['screenRecording'][_0x72e8fa('0x1d1e')]({'id':_0x390d66['id']})[_0x72e8fa('0xe59')][_0x72e8fa('0xe19')](function(_0x41a0f7){var _0x59084b=_0x72e8fa,_0x5b8c64=[_0x41a0f7[_0x59084b('0x17ab')]],_0x5aa07e=_0x59084b('0x1d1e'),_0x10f1ea=new Blob(_0x5b8c64,{'type':_0x41a0f7[_0x59084b('0x62e')]});_0x5aa07e=_0x481d4c;var _0x4e44f3=window['document'][_0x59084b('0x9a1')]('a');_0x4e44f3[_0x59084b('0xede')](_0x59084b('0xcb7'),URL['createObjectURL'](_0x10f1ea)),_0x4e44f3[_0x59084b('0xede')](_0x59084b('0x1d1e'),_0x5aa07e),document[_0x59084b('0x19b2')]['appendChild'](_0x4e44f3),_0x4e44f3[_0x59084b('0xfe7')]();})[_0x72e8fa('0x223b')](function(_0x19e569){var _0x291133=_0x72e8fa;if(_0x19e569[_0x291133('0x11d0')]&&_0x19e569[_0x291133('0x11d0')][_0x291133('0xcd2')]&&_0x19e569['data'][_0x291133('0xcd2')][_0x291133('0x25ae')])for(var _0x37bdba=0x0;_0x37bdba<_0x19e569['data']['errors']['length'];_0x37bdba++){_0xa2af08[_0x291133('0x8c8')]({'title':_0x19e569['data']['errors'][_0x37bdba]['type'],'msg':_0x19e569[_0x291133('0x11d0')][_0x291133('0xcd2')][_0x37bdba][_0x291133('0x27e8')]});}else{if(String(_0x19e569[_0x291133('0x2833')])===_0x291133('0x27c5')&&_0x156953===![])_0xa2af08[_0x291133('0x1e67')]({'title':_0x49d220[_0x291133('0x2159')]('VIDEO.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x49d220['instant'](_0x291133('0x241b'))});else String(_0x19e569[_0x291133('0x2833')])===_0x291133('0x27c5')?_0xa2af08[_0x291133('0x1e67')]({'title':_0x49d220[_0x291133('0x2159')](_0x291133('0x25fd')),'msg':_0x49d220[_0x291133('0x2159')]('VIDEO.FILE_NOT_FOUND')}):_0xa2af08[_0x291133('0x8c8')]({'title':_0x19e569[_0x291133('0x2833')]?_0x291133('0x27f2')+_0x19e569[_0x291133('0x2833')]+_0x291133('0x1b7c')+_0x19e569[_0x291133('0x1fd7')]:_0x291133('0xe0'),'msg':_0x19e569[_0x291133('0x11d0')]?JSON[_0x291133('0x3ad')](_0x19e569[_0x291133('0x11d0')]['message']):_0x19e569[_0x291133('0x94f')]()});}});}function _0x4c08e9(_0x1f8c36,_0x1d031f){var _0x1169e9=_0x384564,_0x31b36c=_0x49f9f5['confirm']()[_0x1169e9('0x13e4')](_0x1169e9('0x346')+_0x32d445()['startCase'](_0x1169e9('0x166f'))+'?')['htmlContent'](''+(_0x1f8c36[_0x1169e9('0x2623')]||'screenRecording')+_0x1169e9('0x27bb')+_0x1169e9('0x21bd'))[_0x1169e9('0x4d1')](_0x1169e9('0x58c'))[_0x1169e9('0x1345')](_0x1d031f)['ok']('OK')['cancel'](_0x1169e9('0x17'));_0x49f9f5['show'](_0x31b36c)['then'](function(){_0x251d65(_0x1f8c36);},function(){var _0x4e6c1c=_0x1169e9;console[_0x4e6c1c('0x1fe9')](_0x4e6c1c('0x17'));});}var _0xa3dd02=!![],_0xc249b0=0x1;_0x107a6a[_0x384564('0x107')]('vm.query.filter',function(_0x5d3ea3,_0x8254e2){var _0x566318=_0x384564;_0xa3dd02?_0x502305(function(){_0xa3dd02=![];}):(!_0x8254e2&&(_0xc249b0=_0x350ba9['query']['page']),_0x5d3ea3!==_0x8254e2&&(_0x350ba9['query'][_0x566318('0xc08')]=0x1),!_0x5d3ea3&&(_0x350ba9[_0x566318('0xa16')][_0x566318('0xc08')]=_0xc249b0),_0x350ba9[_0x566318('0x1f58')]());});function _0x3aa87f(_0x42f60e){var _0x15d099=_0x384564,_0x2a1f7b=Math['floor'](_0x42f60e/0x3e8%0x3c),_0x14465b=Math[_0x15d099('0x6ac')](_0x42f60e/(0x3e8*0x3c)%0x3c),_0x77fd49=Math['floor'](_0x42f60e/(0x3e8*0x3c*0x3c)%0x18),_0x5dc577=_0x77fd49<0xa?'0'+String(_0x77fd49):String(_0x77fd49),_0xcf62f2=_0x14465b<0xa?'0'+String(_0x14465b):String(_0x14465b),_0x501013=_0x2a1f7b<0xa?'0'+String(_0x2a1f7b):String(_0x2a1f7b);return _0x5dc577+':'+_0xcf62f2+':'+_0x501013;}function _0x364b56(_0x363938){var _0x34f093=_0x384564;_0x350ba9[_0x34f093('0x1681')]=_0x363938||{'count':0x0,'rows':[]};}function _0x378429(){var _0x162668=_0x384564;_0x350ba9[_0x162668('0xa16')][_0x162668('0xab0')]=(_0x350ba9['query'][_0x162668('0xc08')]-0x1)*_0x350ba9['query'][_0x162668('0x1b6d')],_0x543f3f[_0x162668('0x179e')](_0x162668('0xd14'))?_0x350ba9[_0x162668('0x9c8')]=_0x2073e4[_0x162668('0x166f')]['get'](_0x350ba9[_0x162668('0xa16')],_0x364b56)[_0x162668('0xe59')]:(_0x350ba9['query']['id']=_0x350ba9[_0x162668('0x154f')]['id'],_0x350ba9['query'][_0x162668('0x1e59')]=_0x162668('0x59e'),_0x350ba9[_0x162668('0x9c8')]=_0x2073e4[_0x162668('0x154f')][_0x162668('0x14e6')](_0x350ba9[_0x162668('0xa16')],_0x364b56)[_0x162668('0xe59')]);}function _0x8a4b40(_0x5f1c03,_0x54f812){var _0x1524ed=_0x384564;_0x49f9f5[_0x1524ed('0x26b2')]({'controller':'CreateOrEditscreenRecordingDialogController','controllerAs':'vm','templateUrl':_0xc0f10f,'parent':angular['element'](_0x935ef6['body']),'targetEvent':_0x5f1c03,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x54f812,'screenRecordings':_0x350ba9['screenRecordings'][_0x1524ed('0x16a7')],'license':_0x350ba9['license'],'setting':_0x350ba9[_0x1524ed('0x22f1')],'crudPermissions':_0x350ba9[_0x1524ed('0xb3d')]}});}function _0x251d65(_0x30a75c){var _0x5b1a30=_0x384564;_0x2073e4['screenRecording']['delete']({'id':_0x30a75c['id']})[_0x5b1a30('0xe59')][_0x5b1a30('0xe19')](function(){var _0x4dd021=_0x5b1a30;_0x32d445()[_0x4dd021('0xa8b')](_0x350ba9[_0x4dd021('0x1681')][_0x4dd021('0x16a7')],{'id':_0x30a75c['id']}),_0x350ba9[_0x4dd021('0x1681')][_0x4dd021('0x148b')]-=0x1,!_0x350ba9[_0x4dd021('0x1681')][_0x4dd021('0x16a7')][_0x4dd021('0x25ae')]&&_0x350ba9[_0x4dd021('0x1f58')](),_0xa2af08['success']({'title':_0x32d445()[_0x4dd021('0x1df2')](_0x4dd021('0x166f'))+'\x20deleted!','msg':_0x30a75c[_0x4dd021('0x2623')]?_0x30a75c[_0x4dd021('0x2623')]+_0x4dd021('0x2182'):''});})[_0x5b1a30('0x223b')](function(_0x243ea4){var _0xb259a=_0x5b1a30;if(_0x243ea4['data']&&_0x243ea4[_0xb259a('0x11d0')][_0xb259a('0xcd2')]&&_0x243ea4[_0xb259a('0x11d0')][_0xb259a('0xcd2')][_0xb259a('0x25ae')]){_0x350ba9[_0xb259a('0xcd2')]=_0x243ea4['data'][_0xb259a('0xcd2')]||[{'message':_0x243ea4['toString'](),'type':_0xb259a('0x1b63')}];for(var _0x296773=0x0;_0x296773<_0x243ea4[_0xb259a('0x11d0')]['errors'][_0xb259a('0x25ae')];_0x296773++){_0xa2af08[_0xb259a('0x8c8')]({'title':_0x243ea4[_0xb259a('0x11d0')][_0xb259a('0xcd2')][_0x296773][_0xb259a('0x62e')],'msg':_0x243ea4['data']['errors'][_0x296773]['message']});}}else _0xa2af08[_0xb259a('0x8c8')]({'title':_0x243ea4[_0xb259a('0x2833')]?_0xb259a('0x27f2')+_0x243ea4[_0xb259a('0x2833')]+_0xb259a('0x1b7c')+_0x243ea4['statusText']:_0xb259a('0x1b63'),'msg':_0x243ea4[_0xb259a('0x11d0')]?JSON[_0xb259a('0x3ad')](_0x243ea4[_0xb259a('0x11d0')][_0xb259a('0x27e8')]):_0x243ea4[_0xb259a('0x27e8')]||_0x243ea4['toString']()});});}function _0x1a6a33(){var _0x6e5d34=_0x384564,_0x48250d=angular[_0x6e5d34('0x89')](_0x350ba9['selectedScreenRecordings']);return _0x350ba9['selectedScreenRecordings']=[],_0x48250d;}function _0x1e5dcf(_0xc13380){var _0x5311d5=_0x384564,_0x1561f2=_0x49f9f5[_0x5311d5('0xa5')]()[_0x5311d5('0x13e4')](_0x5311d5('0x270b'))['htmlContent'](_0x5311d5('0xab2')+_0x350ba9[_0x5311d5('0x8bf')][_0x5311d5('0x25ae')]+_0x5311d5('0x5bc')+'\x20will\x20be\x20deleted.')[_0x5311d5('0x4d1')](_0x5311d5('0xe53'))[_0x5311d5('0x1345')](_0xc13380)['ok']('OK')[_0x5311d5('0x2c1')](_0x5311d5('0x17'));_0x49f9f5['show'](_0x1561f2)[_0x5311d5('0xe19')](function(){var _0x521ec0=_0x5311d5;_0x350ba9[_0x521ec0('0x8bf')][_0x521ec0('0x1d7e')](function(_0x683829){_0x251d65(_0x683829);}),_0x350ba9['selectedScreenRecordings']=[];});}function _0x8bae27(){var _0x1b2ba3=_0x384564;_0x350ba9[_0x1b2ba3('0x8bf')]=[];}function _0x3d9bc9(){var _0x585059=_0x384564;_0x350ba9[_0x585059('0x8bf')]=_0x350ba9[_0x585059('0x1681')]['rows'];}}const _0x27671c=_0x2b04a4;_0x3fe540[_0xb635d2('0xb0c')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x3fe540(_0x424cf0,_0x4d1de9){var _0x9a6584=_0xb635d2;_0x424cf0['state']('app.video',{'abstract':!![],'url':_0x9a6584('0x1640')})[_0x9a6584('0x1d72')](_0x9a6584('0x1050'),{'url':'/screenRecordings','views':{'content@app':{'templateUrl':_0x44be18,'controller':_0x9a6584('0x801')}},'resolve':{'screenRecordings':[_0x9a6584('0x292'),_0x9a6584('0x2730'),'msUtils',function _0x152ebb(_0x48e7e1,_0x538576,_0x28cfd3){var _0xf62b8d=_0x9a6584;return _0x538576[_0xf62b8d('0x179e')](_0xf62b8d('0xd14'))?_0x48e7e1[_0xf62b8d('0xcd6')](_0xf62b8d('0x132c'),{'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x28cfd3[_0xf62b8d('0x2ca')](),'includeAll':_0xf62b8d('0x2206'),'sort':_0xf62b8d('0x7e8'),'limit':0xa,'offset':0x0}):_0x48e7e1[_0xf62b8d('0xcd6')](_0xf62b8d('0x197d'),{'id':_0x538576['getCurrentUser']()[_0xf62b8d('0x1d04')],'section':_0xf62b8d('0x59e'),'fields':_0xf62b8d('0x1f1d'),'createdAt':_0x28cfd3[_0xf62b8d('0x2ca')](),'includeAll':_0xf62b8d('0x2206'),'sort':_0xf62b8d('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x9a6584('0x292'),_0x9a6584('0x2730'),function _0x4c21e4(_0x4946f9,_0x519624){var _0xc2437a=_0x9a6584;return _0x519624[_0xc2437a('0x179e')](_0xc2437a('0xd14'))?null:_0x4946f9[_0xc2437a('0xcd6')]('userProfile@get',{'fields':_0xc2437a('0x1b71'),'id':_0x519624[_0xc2437a('0x1ef8')]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function _0x5d1571(_0x4d7571,_0xb7197a){var _0x3ce099=_0x9a6584;return _0xb7197a[_0x3ce099('0x179e')](_0x3ce099('0xd14'))?null:_0x4d7571[_0x3ce099('0xcd6')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xb7197a[_0x3ce099('0x1ef8')]()[_0x3ce099('0x1d04')],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':'video'}),_0x4d1de9[_0x9a6584('0xfe3')]('app/main/apps/video');}angular[_0xb635d2('0x153f')]('app.video',[_0xb635d2('0x569'),_0xb635d2('0x24b'),_0xb635d2('0x274e'),'flow','mdColorPicker','ckeditor','ng-sortable',_0xb635d2('0x1703'),'ngAnimate',_0xb635d2('0x153a'),_0xb635d2('0x1ebb'),'mwFormViewer','mwFormUtils',_0xb635d2('0x19de'),_0xb635d2('0x127e'),_0xb635d2('0x16a8'),_0xb635d2('0x17b0'),_0xb635d2('0x191c'),_0xb635d2('0xe93'),_0xb635d2('0x16a1')])[_0xb635d2('0x1990')](_0x3fe540)[_0xb635d2('0x1a79')](_0xb635d2('0x4f7'),_0x301e7b)[_0xb635d2('0x1a79')](_0xb635d2('0x9c0'),_0x15aeb3)['controller']('ScreenRecordingsController',_0x27671c);const _0x3648b5=_0x59426a['p']+'src/js/modules/main/apps/whatsapp/views/realtime/realtime.html/realtime-[chunkhash].html',_0x478a86=_0x59426a['p']+_0xb635d2('0x1e00'),_0x5ac482=_0x59426a['p']+_0xb635d2('0x2725');_0x3a7e3c[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),'$q','$timeout','$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xfe0'),'pauses',_0xb635d2('0x29b'),_0xb635d2('0x7'),_0xb635d2('0xffc'),'socket',_0xb635d2('0xf65'),'helperClasses',_0xb635d2('0x154f'),_0xb635d2('0xb59'),'Auth',_0xb635d2('0x5c1'),_0xb635d2('0x1c1a')];function _0x3a7e3c(_0x2c9a7a,_0x50426d,_0x5e083b,_0x2e7c02,_0x2ab215,_0x3dbaef,_0x7af7b5,_0x401c5d,_0x708a1e,_0x2652fe,_0x503db3,_0x14dd28,_0x582ab2,_0x563e65,_0x4aecae,_0x50df53,_0x5d98e1,_0x23dc23){var _0x1e0302=_0xb635d2,_0x142f14=this,_0x2e0f47=['userpic','online','lastLoginAt',_0x1e0302('0x823'),'pauseType',_0x1e0302('0x823'),_0x1e0302('0x1b66'),_0x1e0302('0xe1f'),'chatPause',_0x1e0302('0xf2a'),'mailPause',_0x1e0302('0x24f1'),_0x1e0302('0x14fb'),_0x1e0302('0x2299'),_0x1e0302('0x1b8d'),_0x1e0302('0x201b'),_0x1e0302('0x195a'),'mailCapacity',_0x1e0302('0x1288'),_0x1e0302('0x15f0'),_0x1e0302('0x15ee'),_0x1e0302('0x1fa2'),'openchannelCurrentCapacity',_0x1e0302('0x1d8a'),'smsCurrentCapacity',_0x1e0302('0xa2a'),_0x1e0302('0x1c17'),'chatStatus',_0x1e0302('0x1ec9'),_0x1e0302('0x44e'),'smsStatus',_0x1e0302('0x1d57'),_0x1e0302('0x1c30'),_0x1e0302('0xff0'),_0x1e0302('0x583'),'openchannelStatusTime',_0x1e0302('0x1426'),_0x1e0302('0x1c51'),_0x1e0302('0xda4'),_0x1e0302('0xaa3'),'voiceStatusTime',_0x1e0302('0x26a8'),_0x1e0302('0x149e'),_0x1e0302('0x783'),_0x1e0302('0x1df6'),_0x1e0302('0x12d')],_0x50edbf=[_0x1e0302('0x1b15'),_0x1e0302('0xf2a'),_0x1e0302('0x2531'),_0x1e0302('0x24f1'),_0x1e0302('0x14fb'),_0x1e0302('0x2299'),_0x1e0302('0x1b8d'),_0x1e0302('0xb46')];_0x142f14[_0x1e0302('0x15a5')]=_0x50df53[_0x1e0302('0x1ef8')](),_0x142f14['availableStates']=[_0x1e0302('0xb4'),_0x1e0302('0x788'),_0x1e0302('0x1934'),_0x1e0302('0x289d'),_0x1e0302('0x3ef')],_0x142f14[_0x1e0302('0x145e')]=_0x7af7b5||{'count':0x0,'rows':[]},_0x142f14[_0x1e0302('0x5c1')]=_0x5d98e1,_0x142f14['userProfile']=_0x563e65,_0x142f14['userProfileSection']=_0x4aecae&&_0x4aecae[_0x1e0302('0x148b')]==0x1?_0x4aecae['rows'][0x0]:null,_0x142f14[_0x1e0302('0xb3d')]=_0x50df53[_0x1e0302('0xd31')](_0x142f14[_0x1e0302('0xb59')]?_0x142f14['userProfileSection'][_0x1e0302('0xb3d')]:null),_0x142f14[_0x1e0302('0x29b')]=_0x401c5d?_0x32d445()[_0x1e0302('0x226f')](_0x401c5d[_0x1e0302('0x16a7')]?_0x401c5d[_0x1e0302('0x16a7')]:[],'id'):{},_0x142f14[_0x1e0302('0x7')]=_0x708a1e?_0x32d445()[_0x1e0302('0x226f')](_0x708a1e[_0x1e0302('0x16a7')]?_0x708a1e['rows']:[],'id'):{},_0x142f14[_0x1e0302('0xc68')]={},_0x142f14[_0x1e0302('0xcfe')]=![],_0x142f14[_0x1e0302('0x1b03')]=[],_0x142f14['agentInternal']={};for(var _0x1d9a77 in _0x142f14[_0x1e0302('0x29b')]){typeof _0x142f14[_0x1e0302('0x29b')][_0x1d9a77]!==_0x1e0302('0x1143')&&(_0x142f14[_0x1e0302('0x29b')][_0x1d9a77][_0x1e0302('0x15f9')]=!![]);}_0x142f14[_0x1e0302('0xa16')]={'limit':0xa,'page':0x1,'order':_0x1e0302('0xe11'),'globalStatusFilter':'','pauseTypeFilter':''},_0x142f14[_0x1e0302('0xe4e')]=_0x24c9f2,_0x142f14[_0x1e0302('0x16d4')]=_0x1ec8ca,_0x142f14['pause']=_0x366387,_0x142f14[_0x1e0302('0x560')]=_0x4ebff7,_0x142f14['showInfo']=_0x2c08f4,_0x142f14[_0x1e0302('0xca0')]=_0x4b3033,_0x142f14[_0x1e0302('0xe1d')]=_0x3380e6,_0x142f14[_0x1e0302('0x361')]=_0x3fd781,_0x142f14['checkPause']=_0x369325,_0x142f14[_0x1e0302('0x2052')]=_0x50275e,_0x142f14[_0x1e0302('0x284a')]=_0x4b804,_0x142f14[_0x1e0302('0x18ee')]=_0x1c1608,_0x142f14['onInit']=_0x166a83,_0x142f14['onConnect']=_0x3ec86d,_0x142f14[_0x1e0302('0x1831')]=_0x5d81b5,_0x142f14[_0x1e0302('0x166f')]=_0x582494,_0x503db3['on'](_0x1e0302('0xb9f'),_0x142f14[_0x1e0302('0x284a')]),_0x503db3['on'](_0x1e0302('0x1ce3'),_0x142f14['onUpdate']),_0x503db3['on']('user:agentconnect',_0x142f14['onConnect']),_0x503db3['on'](_0x1e0302('0xa8e'),_0x142f14[_0x1e0302('0x1831')]),_0x166a83();var _0x2e0d63=_0x23dc23(function(){var _0x5bd620=_0x1e0302;_0x142f14['load']&&(_0x142f14[_0x5bd620('0xcfe')]=![],_0x166a83());},0x3e7);function _0x166a83(){var _0x2202c6=_0x1e0302;_0x142f14['load']=![];var _0x3c39ef=_0x50426d['defer']();_0x142f14[_0x2202c6('0x9c8')]=_0x3c39ef['promise'],_0x142f14[_0x2202c6('0x16a4')]=[],_0x142f14[_0x2202c6('0x1b03')]=[],_0x32d445()[_0x2202c6('0xd1e')](_0x142f14['agents'],function(_0x31796c,_0x1b2fc1){var _0x1261b0=_0x2202c6;_0x142f14[_0x1261b0('0x7')][_0x1b2fc1]&&_0x32d445()[_0x1261b0('0x1d8')](_0x31796c,_0x32d445()[_0x1261b0('0xed5')](_0x32d445()[_0x1261b0('0x23e3')](_0x142f14[_0x1261b0('0x7')][_0x1b2fc1],_0x50edbf),_0x2e0f47)),_0x3380e6(_0x31796c),_0x31796c['online']?(_0x142f14[_0x1261b0('0x16a4')]['push'](_0x31796c),_0x142f14[_0x1261b0('0x7ff')][_0x31796c[_0x1261b0('0x1b66')]]=_0x1b2fc1):_0x31796c['globalStatusTime']=_0x32d445()['toNumber'](_0x4ddcaa()()['format']('x'));});_0x142f14[_0x2202c6('0xa16')]['globalStatusFilter']&&_0x32d445()['remove'](_0x142f14[_0x2202c6('0x16a4')],function(_0xa470bc){var _0x5efa9d=_0x2202c6;return _0xa470bc['globalStatus']!==_0x142f14[_0x5efa9d('0xa16')]['globalStatusFilter'];});_0x142f14[_0x2202c6('0xa16')][_0x2202c6('0x24fc')]&&_0x32d445()[_0x2202c6('0xa8b')](_0x142f14[_0x2202c6('0x16a4')],function(_0x57c81c){var _0x16a5e3=_0x2202c6;return _0x57c81c[_0x16a5e3('0x103')]!==_0x142f14[_0x16a5e3('0xa16')]['pauseTypeFilter'];});_0x142f14[_0x2202c6('0xa16')][_0x2202c6('0x2891')]&&_0x32d445()[_0x2202c6('0xa8b')](_0x142f14[_0x2202c6('0x16a4')],function(_0xc9589f){var _0x507c23=_0x2202c6;return _0xc9589f[_0x507c23('0xe11')]['toLowerCase']()[_0x507c23('0x281c')](_0x142f14['query'][_0x507c23('0x2891')][_0x507c23('0x20dd')]())<0x0;});_0x142f14[_0x2202c6('0x16a4')]=_0x403bc2(_0x142f14['filteredAgents']);var _0x34c62a=(_0x142f14[_0x2202c6('0xa16')][_0x2202c6('0xc08')]-0x1)*_0x142f14[_0x2202c6('0xa16')][_0x2202c6('0x1b6d')];_0x142f14[_0x2202c6('0xc68')]=_0x32d445()[_0x2202c6('0x4a0')](_0x142f14['filteredAgents'],_0x34c62a)['slice'](0x0,_0x142f14[_0x2202c6('0xa16')]['limit']);for(var _0x29db5e=0x0;_0x29db5e<_0x142f14[_0x2202c6('0xc68')]['length'];_0x29db5e+=0x1){_0x142f14[_0x2202c6('0x1b03')][_0x2202c6('0xb76')](_0x142f14[_0x2202c6('0xc68')][_0x29db5e]['id']);}_0x3c39ef[_0x2202c6('0xcd6')](),_0x142f14[_0x2202c6('0xcfe')]=!![];}function _0x4b804(_0x24b5b9){var _0x19032f=_0x1e0302;_0x142f14[_0x19032f('0x29b')][_0x24b5b9['id']]&&(_0x32d445()[_0x19032f('0x1d8')](_0x142f14[_0x19032f('0x29b')][_0x24b5b9['id']],_0x32d445()[_0x19032f('0xed5')](_0x32d445()[_0x19032f('0x23e3')](_0x24b5b9,_0x50edbf),_0x2e0f47)),_0x32d445()[_0x19032f('0x1d8')](_0x142f14[_0x19032f('0x7')][_0x24b5b9['id']],_0x32d445()[_0x19032f('0xed5')](_0x32d445()[_0x19032f('0x23e3')](_0x24b5b9,_0x50edbf),_0x2e0f47)),_0x3380e6(_0x142f14[_0x19032f('0x29b')][_0x24b5b9['id']]));}function _0x1c1608(_0x1265a2){var _0x46cf20=_0x1e0302;_0x142f14['agents'][_0x1265a2['id']]&&(_0x32d445()[_0x46cf20('0x1d8')](_0x142f14[_0x46cf20('0x29b')][_0x1265a2['id']],_0x32d445()['pick'](_0x1265a2,_0x2e0f47)),_0x32d445()[_0x46cf20('0x1d8')](_0x142f14[_0x46cf20('0x7')][_0x1265a2['id']],_0x32d445()['pick'](_0x1265a2,_0x2e0f47)),_0x1265a2[_0x46cf20('0x823')]&&(_0x142f14[_0x46cf20('0x29b')][_0x1265a2['id']][_0x46cf20('0x16ed')]=_0x1265a2[_0x46cf20('0x823')],_0x142f14['rpcAgents'][_0x1265a2['id']]['globalStatusTime']=_0x1265a2['lastPauseAt']),_0x3380e6(_0x142f14[_0x46cf20('0x29b')][_0x1265a2['id']]));}function _0x3ec86d(_0x257099){var _0x23c531=_0x1e0302;_0x142f14[_0x23c531('0x29b')][_0x142f14['agentInternal'][_0x257099[_0x23c531('0x1c29')]]]&&(_0x32d445()[_0x23c531('0x1d8')](_0x142f14[_0x23c531('0x29b')][_0x142f14['agentInternal'][_0x257099['destaccountcode']]],_0x32d445()[_0x23c531('0xed5')](_0x257099,['queue','destconnectedlinenum'])),_0x32d445()[_0x23c531('0x1d8')](_0x142f14['rpcAgents'][_0x142f14['agentInternal'][_0x257099[_0x23c531('0x1c29')]]],_0x32d445()[_0x23c531('0xed5')](_0x257099,[_0x23c531('0x26a8'),'destconnectedlinenum'])));}function _0x5d81b5(_0x3fefee){var _0x101c98=_0x1e0302;_0x142f14[_0x101c98('0x29b')][_0x142f14[_0x101c98('0x7ff')][_0x3fefee[_0x101c98('0x1c29')]]]&&(_0x142f14[_0x101c98('0x29b')][_0x142f14[_0x101c98('0x7ff')][_0x3fefee[_0x101c98('0x1c29')]]]=_0x32d445()['omit'](_0x142f14[_0x101c98('0x29b')][_0x142f14[_0x101c98('0x7ff')][_0x3fefee[_0x101c98('0x1c29')]]],[_0x101c98('0x26a8'),_0x101c98('0x149e')]),_0x142f14[_0x101c98('0x7')][_0x142f14[_0x101c98('0x7ff')][_0x3fefee['destaccountcode']]]=_0x32d445()['omit'](_0x142f14[_0x101c98('0x7')][_0x142f14[_0x101c98('0x7ff')][_0x3fefee['destaccountcode']]],[_0x101c98('0x26a8'),_0x101c98('0x149e')]));}function _0x24c9f2(_0x488876){var _0x49aa81=_0x1e0302;return _0x2652fe[_0x49aa81('0x10c6')][_0x49aa81('0xe4e')]({'id':_0x488876['id'],'device':_0x49aa81('0x24e1'),'agent_id':_0x488876['id'],'agent_name':_0x488876[_0x49aa81('0x2623')]})[_0x49aa81('0xe59')][_0x49aa81('0xe19')](function(){var _0x419bcc=_0x49aa81;_0x14dd28[_0x419bcc('0x425')]({'title':_0x419bcc('0x25b9'),'msg':_0x488876[_0x419bcc('0xe11')]+_0x419bcc('0x1a35')}),_0x142f14[_0x419bcc('0x29b')][_0x488876['id']]&&(_0x142f14[_0x419bcc('0x29b')][_0x488876['id']]['online']=![]),_0x142f14[_0x419bcc('0x7')][_0x488876['id']]&&(_0x142f14[_0x419bcc('0x7')][_0x488876['id']][_0x419bcc('0xb46')]=![]),_0x166a83();})[_0x49aa81('0x223b')](function(_0x204dd3){var _0x230649=_0x49aa81;_0x14dd28['error']({'title':_0x204dd3['status']?_0x230649('0x27f2')+_0x204dd3[_0x230649('0x2833')]+_0x230649('0x1b7c')+_0x204dd3[_0x230649('0x1fd7')]:'api.staff.save','msg':_0x204dd3[_0x230649('0x11d0')]?JSON['stringify'](_0x204dd3[_0x230649('0x11d0')][_0x230649('0x27e8')]):_0x204dd3['toString']()});});}function _0x366387(_0x489085,_0x3022d6){var _0x58dd50=_0x1e0302;return _0x2652fe[_0x58dd50('0x10c6')][_0x58dd50('0x1c98')]({'id':_0x489085['id'],'type':_0x3022d6})['$promise'][_0x58dd50('0xe19')](function(_0x30d318){var _0x4e62f5=_0x58dd50;_0x142f14[_0x4e62f5('0x29b')][_0x489085['id']]&&_0x32d445()[_0x4e62f5('0x1d8')](_0x142f14[_0x4e62f5('0x29b')][_0x489085['id']],_0x32d445()[_0x4e62f5('0xed5')](_0x30d318,_0x2e0f47)),_0x142f14[_0x4e62f5('0x7')][_0x489085['id']]&&_0x32d445()[_0x4e62f5('0x1d8')](_0x142f14[_0x4e62f5('0x7')][_0x489085['id']],_0x32d445()[_0x4e62f5('0xed5')](_0x30d318,_0x2e0f47)),_0x3380e6(_0x142f14[_0x4e62f5('0x29b')][_0x489085['id']]);})['catch'](function(_0x47998c){var _0x159c8f=_0x58dd50;_0x14dd28[_0x159c8f('0x8c8')]({'title':_0x47998c['status']?_0x159c8f('0x27f2')+_0x47998c[_0x159c8f('0x2833')]+_0x159c8f('0x1b7c')+_0x47998c[_0x159c8f('0x1fd7')]:'api.staff.save','msg':_0x47998c[_0x159c8f('0x11d0')]?JSON[_0x159c8f('0x3ad')](_0x47998c[_0x159c8f('0x11d0')][_0x159c8f('0x27e8')]):_0x47998c['toString']()});});}function _0x4ebff7(_0x3a848d){var _0x4d38c8=_0x1e0302;return _0x2652fe['user'][_0x4d38c8('0x2471')]({'id':_0x3a848d['id']})[_0x4d38c8('0xe59')][_0x4d38c8('0xe19')](function(_0x24bd41){var _0x1f1c0d=_0x4d38c8;_0x142f14[_0x1f1c0d('0x29b')][_0x3a848d['id']]&&_0x32d445()[_0x1f1c0d('0x1d8')](_0x142f14['agents'][_0x3a848d['id']],_0x32d445()[_0x1f1c0d('0xed5')](_0x24bd41,_0x2e0f47)),_0x142f14[_0x1f1c0d('0x7')][_0x3a848d['id']]&&_0x32d445()['merge'](_0x142f14['rpcAgents'][_0x3a848d['id']],_0x32d445()['pick'](_0x24bd41,_0x2e0f47)),_0x3380e6(_0x142f14['agents'][_0x3a848d['id']]);})[_0x4d38c8('0x223b')](function(_0x41f1a0){var _0x4b50cd=_0x4d38c8;_0x14dd28[_0x4b50cd('0x8c8')]({'title':_0x41f1a0['status']?_0x4b50cd('0x27f2')+_0x41f1a0[_0x4b50cd('0x2833')]+'\x20-\x20'+_0x41f1a0[_0x4b50cd('0x1fd7')]:_0x4b50cd('0x1c95'),'msg':_0x41f1a0['data']?JSON[_0x4b50cd('0x3ad')](_0x41f1a0[_0x4b50cd('0x11d0')][_0x4b50cd('0x27e8')]):_0x41f1a0['toString']()});});}function _0x2c08f4(_0x21fb01){var _0x1effad=_0x1e0302;_0x2e7c02['show'](_0x2e7c02[_0x1effad('0xbdc')]()[_0x1effad('0x26d6')](!![])[_0x1effad('0x13e4')](_0x1effad('0x7c0'))[_0x1effad('0x221c')](_0x1effad('0x1abb'))['ok']('Ok')['targetEvent'](_0x21fb01));}function _0x1ec8ca(_0x27eacf,_0x329087){var _0xe57a6d=_0x1e0302;_0x2e7c02[_0xe57a6d('0x26b2')]({'controller':_0xe57a6d('0x28ab'),'controllerAs':'vm','templateUrl':_0x3bf6bc,'parent':angular['element'](_0x2ab215[_0xe57a6d('0x19b2')]),'targetEvent':_0x329087,'clickOutsideToClose':!![],'locals':{'agent':_0x27eacf,'agents':[],'channel':'whatsapp','direction':'inbound','crudPermissions':_0x142f14[_0xe57a6d('0xb3d')]}});}function _0x3fd781(_0x1e939c){var _0x569392=_0x1e0302;return _0x1e939c==='pause'||_0x1e939c===_0x569392('0x2f3');}function _0x369325(_0xaca4e0){var _0x3b9fee=_0x1e0302;return _0xaca4e0===_0x3b9fee('0x1c98');}function _0x50275e(_0x25da89){var _0xcdbd29=_0x1e0302;return _0x25da89===_0xcdbd29('0x2f3');}function _0x28c5f4(_0x377398){var _0x45a260=_0x1e0302;return _0x377398===_0x45a260('0x751')||_0x377398===_0x45a260('0x10df')||_0x377398===_0x45a260('0x20a1')||_0x377398===_0x45a260('0xb4')||_0x32d445()[_0x45a260('0xe44')](_0x377398);}function _0x4b3033(_0x2d8b5a,_0x46a576){var _0x2699bf=_0x1e0302;if(_0x46a576===_0x2699bf('0xe74')){if(_0x2d8b5a[_0x46a576+_0x2699bf('0x20e')]!=='idle')return _0x2d8b5a[_0x46a576+'Status'];if(_0x2d8b5a[_0x46a576+_0x2699bf('0x27b9')])return _0x2d8b5a[_0x46a576+_0x2699bf('0x20e')]=_0x2699bf('0x1c98'),_0x2699bf('0x1c98');return'idle';}else{if(_0x2d8b5a[_0x46a576+_0x2699bf('0x27b9')])return _0x2d8b5a[_0x46a576+_0x2699bf('0x20e')]=_0x2699bf('0x1c98'),_0x2699bf('0x1c98');return _0x2d8b5a[_0x46a576+_0x2699bf('0x20e')];}}function _0x3380e6(_0x59c78a){var _0xd874ea=_0x1e0302,_0x162d9b='unknown';if(_0x32d445()[_0xd874ea('0x1ff')]([_0x4b3033(_0x59c78a,_0xd874ea('0xe74')),_0x4b3033(_0x59c78a,_0xd874ea('0x17cc')),_0x4b3033(_0x59c78a,'mail'),_0x4b3033(_0x59c78a,_0xd874ea('0xaf2')),_0x4b3033(_0x59c78a,_0xd874ea('0x2801')),_0x4b3033(_0x59c78a,'whatsapp'),_0x4b3033(_0x59c78a,'fax')],_0x3fd781))_0x162d9b='pause';else{if(_0x32d445()[_0xd874ea('0x201a')]([_0x4b3033(_0x59c78a,_0xd874ea('0xe74')),_0x4b3033(_0x59c78a,'chat'),_0x4b3033(_0x59c78a,_0xd874ea('0x26bf')),_0x4b3033(_0x59c78a,_0xd874ea('0xaf2')),_0x4b3033(_0x59c78a,_0xd874ea('0x2801')),_0x4b3033(_0x59c78a,'whatsapp'),_0x4b3033(_0x59c78a,'fax')],_0x3fd781))_0x162d9b='*pause';else _0x32d445()[_0xd874ea('0x1ff')]([_0x4b3033(_0x59c78a,'voice'),_0x4b3033(_0x59c78a,'chat'),_0x4b3033(_0x59c78a,'mail'),_0x4b3033(_0x59c78a,_0xd874ea('0xaf2')),_0x4b3033(_0x59c78a,_0xd874ea('0x2801')),_0x4b3033(_0x59c78a,'whatsapp'),_0x4b3033(_0x59c78a,_0xd874ea('0x625'))],_0x28c5f4)?_0x162d9b=_0xd874ea('0x751'):_0x162d9b=_0xd874ea('0x1934');}_0x59c78a[_0xd874ea('0x25b1')]!==_0x162d9b&&(_0x59c78a[_0xd874ea('0x25b1')]=_0x162d9b,_0x59c78a[_0xd874ea('0x15f9')]?(_0x59c78a[_0xd874ea('0x15f9')]=![],_0x59c78a[_0xd874ea('0x16ed')]=_0x3fd781(_0x162d9b)?_0x32d445()[_0xd874ea('0xcd3')](_0x4ddcaa()(_0x59c78a['lastPauseAt'])[_0xd874ea('0x5e5')]('x')):_0x32d445()['max']([_0x59c78a['voiceStatusTime'],_0x59c78a[_0xd874ea('0x583')],_0x59c78a[_0xd874ea('0x1426')],_0x59c78a[_0xd874ea('0x1c51')],_0x59c78a['whatsappStatusTime'],_0x59c78a[_0xd874ea('0x1ca7')],_0x59c78a['faxStatusTime']])):_0x59c78a['globalStatusTime']=_0x32d445()['toNumber'](_0x4ddcaa()()[_0xd874ea('0x5e5')]('x')));}function _0x403bc2(_0x44af6e){var _0x2a2e2a=_0x1e0302,_0x1ba82b=_0x32d445()['startsWith'](_0x142f14[_0x2a2e2a('0xa16')][_0x2a2e2a('0x1b03')],'-')?_0x2a2e2a('0x1ee9'):_0x2a2e2a('0x1564');return _0x32d445()[_0x2a2e2a('0x10e')](_0x44af6e,[_0x142f14[_0x2a2e2a('0xa16')][_0x2a2e2a('0x1b03')]['replace']('-','')],[_0x1ba82b]);}function _0x2d83da(){var _0x51beb7=_0x1e0302;_0x2e0d63&&(_0x23dc23[_0x51beb7('0x2c1')](_0x2e0d63),_0x2e0d63=null);}function _0x582494(_0x3ea9de,_0xf00e11){var _0x4ec2df=_0x1e0302;return _0x2652fe[_0x4ec2df('0x10c6')]['update']({'id':_0x3ea9de['id']},{'screenrecording':_0xf00e11})[_0x4ec2df('0xe59')]['catch'](function(_0x5b1f80){var _0x27139a=_0x4ec2df;_0x14dd28['error']({'title':_0x5b1f80[_0x27139a('0x2833')]?'API:'+_0x5b1f80[_0x27139a('0x2833')]+_0x27139a('0x1b7c')+_0x5b1f80['statusText']:'api.user.update','msg':_0x5b1f80['data']?JSON['stringify'](_0x5b1f80[_0x27139a('0x11d0')][_0x27139a('0x27e8')]):_0x5b1f80[_0x27139a('0x94f')]()});});}_0x2c9a7a[_0x1e0302('0xb2b')]('$destroy',function(){var _0x31b4dd=_0x1e0302;_0x503db3['removeAllListeners'](_0x31b4dd('0xb9f')),_0x503db3[_0x31b4dd('0x2121')]('user:update'),_0x503db3[_0x31b4dd('0x2121')](_0x31b4dd('0x1002')),_0x503db3[_0x31b4dd('0x2121')](_0x31b4dd('0xa8e')),_0x2d83da();});}const _0x504037=_0x3a7e3c,_0x8c908c=_0x59426a['p']+_0xb635d2('0x2089'),_0x1a35b6=_0x59426a['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0x1e4f90['$inject']=[_0xb635d2('0x63c'),_0xb635d2('0x1a0b'),_0xb635d2('0x1c9f'),'$q','$document',_0xb635d2('0x1c1a'),_0xb635d2('0x671'),_0xb635d2('0x146c'),_0xb635d2('0xffc'),_0xb635d2('0x46d'),_0xb635d2('0xf65'),'userProfile','userProfileSection',_0xb635d2('0x2730')];function _0x1e4f90(_0x17e7a4,_0xf69a24,_0x342827,_0x209464,_0x4079e5,_0x1c6b15,_0x105a0d,_0x349981,_0xe6ed64,_0x22c93b,_0x564933,_0xdeb966,_0x9d6897,_0x35ddbd){var _0x40f081=_0xb635d2,_0x304dd9=this,_0x32094e=[_0x40f081('0x462'),_0x40f081('0x2398'),_0x40f081('0x183a'),_0x40f081('0xe75'),_0x40f081('0x1700'),_0x40f081('0x194a'),_0x40f081('0x27e8'),_0x40f081('0x8c9'),_0x40f081('0x1a23'),_0x40f081('0x1317'),'paused'];_0x304dd9[_0x40f081('0x15a5')]=_0x35ddbd['getCurrentUser'](),_0x304dd9['count']=_0x105a0d[_0x40f081('0x148b')]?_0x105a0d[_0x40f081('0x148b')]:0x0,_0x304dd9[_0x40f081('0x671')]=_0x105a0d?_0x32d445()['keyBy'](_0x105a0d[_0x40f081('0x16a7')]?_0x105a0d[_0x40f081('0x16a7')]:[],'id'):{},_0x304dd9[_0x40f081('0x146c')]=_0x349981?_0x32d445()['keyBy'](_0x349981[_0x40f081('0x16a7')]?_0x349981[_0x40f081('0x16a7')]:[],'id'):{},_0x304dd9[_0x40f081('0x154f')]=_0xdeb966,_0x304dd9[_0x40f081('0xb59')]=_0x9d6897&&_0x9d6897[_0x40f081('0x148b')]==0x1?_0x9d6897[_0x40f081('0x16a7')][0x0]:null,_0x304dd9[_0x40f081('0xb3d')]=_0x35ddbd[_0x40f081('0xd31')](_0x304dd9[_0x40f081('0xb59')]?_0x304dd9[_0x40f081('0xb59')][_0x40f081('0xb3d')]:null);_0x35ddbd[_0x40f081('0x179e')](_0x40f081('0xd14'))?_0x304dd9[_0x40f081('0xa16')]={'type':_0x40f081('0x1a7a'),'sort':_0x40f081('0x7e8'),'limit':0xa,'page':0x1}:_0x304dd9['query']={'id':_0x304dd9[_0x40f081('0x15a5')]['id'],'channel':_0x40f081('0x4b7'),'type':'inbound','sort':_0x40f081('0x7e8'),'limit':0xa,'page':0x1};_0x304dd9[_0x40f081('0x425')]=_0x384de4,_0x304dd9['getQueues']=_0x312621,_0x304dd9[_0x40f081('0x1928')]=_0x37fcd7,_0x304dd9[_0x40f081('0x45a')]=_0x47aaaa,_0x304dd9['updateQueue']=_0x4d2176,_0x304dd9[_0x40f081('0x284a')]=_0xbbb33b,_0x304dd9[_0x40f081('0xc76')]=_0x33bc76,_0x304dd9[_0x40f081('0x895')]=_0x3c7cf2,_0x304dd9[_0x40f081('0x69e')]=_0x5d088a,_0x304dd9[_0x40f081('0x1707')]=_0x5cbfca,_0x304dd9['onLogout']=_0x205c8b,_0x304dd9[_0x40f081('0x696')]=_0x2c4c4c,_0x304dd9['order']=[],_0x32d445()[_0x40f081('0xd1e')](_0x304dd9[_0x40f081('0x671')],function(_0x5165f3){var _0x3cf9e4=_0x40f081;_0x304dd9[_0x3cf9e4('0x1b03')][_0x3cf9e4('0xb76')](_0x5165f3['id']);}),_0x22c93b['on']('whatsapp_queue:save',_0x304dd9[_0x40f081('0x284a')]),_0x22c93b['on'](_0x40f081('0x2392'),_0x304dd9[_0x40f081('0xc76')]),_0x22c93b['on'](_0x40f081('0x17c1'),_0x304dd9[_0x40f081('0x895')]),_0x22c93b['on']('user:update',_0x304dd9[_0x40f081('0x69e')]),_0x22c93b['on'](_0x40f081('0x1583'),_0x304dd9[_0x40f081('0x1baf')]),_0x22c93b['on']('userVoiceQueue:save',_0x304dd9[_0x40f081('0x1707')]);function _0x2c4c4c(){var _0x729443=_0x40f081,_0x3724c1=[];return _0x32d445()[_0x729443('0xd1e')](_0x304dd9[_0x729443('0x671')],function(_0x5d3f67,_0x361167){var _0xeaa5c7=_0x729443;_0x5d3f67['paused']=0x0,_0x5d3f67[_0xeaa5c7('0x120f')]=0x0,_0x304dd9[_0xeaa5c7('0x671')][_0x361167][_0xeaa5c7('0x29b')]={},_0x3724c1[_0xeaa5c7('0xb76')](_0xe6ed64['whatsappQueue'][_0xeaa5c7('0xb5d')]({'id':_0x361167})[_0xeaa5c7('0xe59')]),_0x304dd9[_0xeaa5c7('0x146c')][_0x361167]&&_0x32d445()[_0xeaa5c7('0x1d8')](_0x5d3f67,_0x32d445()['pick'](_0x304dd9[_0xeaa5c7('0x146c')][_0x361167],_0x32094e));}),_0x209464[_0x729443('0xf0e')](_0x3724c1)[_0x729443('0xe19')](function(_0x21e5ed){var _0x5856cd=_0x729443;for(var _0x8aeed0=0x0;_0x8aeed0<_0x21e5ed[_0x5856cd('0x25ae')];_0x8aeed0+=0x1){for(var _0x58bb93=0x0;_0x58bb93<_0x21e5ed[_0x8aeed0][_0x5856cd('0x16a7')][_0x5856cd('0x25ae')];_0x58bb93++){_0x21e5ed[_0x8aeed0][_0x5856cd('0x16a7')][_0x58bb93]['paused']&&_0x304dd9[_0x5856cd('0x671')][_0x21e5ed[_0x8aeed0][_0x5856cd('0x16a7')][_0x58bb93][_0x5856cd('0x383')]][_0x5856cd('0x1cf8')]++,_0x304dd9['queues'][_0x21e5ed[_0x8aeed0]['rows'][_0x58bb93][_0x5856cd('0x383')]][_0x5856cd('0x120f')]++,_0x304dd9[_0x5856cd('0x671')][_0x21e5ed[_0x8aeed0]['rows'][_0x58bb93][_0x5856cd('0x383')]][_0x5856cd('0x29b')][_0x21e5ed[_0x8aeed0][_0x5856cd('0x16a7')][_0x58bb93]['UserId']]=_0x21e5ed[_0x8aeed0][_0x5856cd('0x16a7')][_0x58bb93][_0x5856cd('0x383')];}}})[_0x729443('0x223b')](function(_0x58dd98){console['error'](_0x58dd98);});}function _0xbbb33b(_0xf6ff23){var _0x566346=_0x40f081;_0x304dd9[_0x566346('0x671')][_0xf6ff23['id']]&&_0x32d445()['merge'](_0x304dd9['queues'][_0xf6ff23['id']],_0x32d445()['pick'](_0xf6ff23,_0x32094e));}function _0x33bc76(_0x50fa8c){var _0x15085b=_0x40f081;_0x304dd9[_0x15085b('0x671')][_0x50fa8c['WhatsappQueueId']]&&_0x304dd9['queues'][_0x50fa8c[_0x15085b('0x383')]][_0x15085b('0x120f')]++;}function _0x3c7cf2(_0x56be54){var _0x576597=_0x40f081;_0x304dd9[_0x576597('0x671')][_0x56be54[_0x576597('0x383')]]&&_0x304dd9[_0x576597('0x671')][_0x56be54['WhatsappQueueId']][_0x576597('0x120f')]--;}function _0x5d088a(_0x9f8d3e){var _0x4d35c4=_0x40f081;console[_0x4d35c4('0x1fe9')](_0x4d35c4('0x69e'),_0x9f8d3e);if(_0x9f8d3e[_0x4d35c4('0x1b8d')])_0x32d445()[_0x4d35c4('0xd1e')](_0x304dd9[_0x4d35c4('0x671')],function(_0x4de3ad){var _0x281b11=_0x4d35c4;_0x4de3ad[_0x281b11('0x29b')][_0x9f8d3e['id']]&&(_0x4de3ad['paused']+=0x1,console[_0x281b11('0x1fe9')](_0x281b11('0x1c98')));});else!_0x9f8d3e['voicePause']&&_0x32d445()[_0x4d35c4('0xd1e')](_0x304dd9[_0x4d35c4('0x671')],function(_0x55eb1e){var _0xa47f9b=_0x4d35c4;_0x55eb1e[_0xa47f9b('0x29b')][_0x9f8d3e['id']]&&(_0x55eb1e[_0xa47f9b('0x1cf8')]>0x0&&(_0x55eb1e[_0xa47f9b('0x1cf8')]-=0x1,console[_0xa47f9b('0x1fe9')]('unpause')));});}function _0x5cbfca(_0x133fde){var _0x2f2d1c=_0x40f081;console[_0x2f2d1c('0x1fe9')](_0x2f2d1c('0xb90'),_0x133fde),_0x304dd9['queues'][_0x133fde[_0x2f2d1c('0x383')]]&&(_0x304dd9[_0x2f2d1c('0x671')][_0x133fde['WhatsappQueueId']]['loggedInDb']+=0x1,_0x304dd9[_0x2f2d1c('0x671')][_0x133fde[_0x2f2d1c('0x383')]]['agents'][_0x133fde[_0x2f2d1c('0x43d')]]=_0x133fde['WhatsappQueueId']);}function _0x205c8b(_0x2a5052){var _0x29cf89=_0x40f081;console[_0x29cf89('0x1fe9')](_0x29cf89('0x1baf'),_0x2a5052),_0x304dd9[_0x29cf89('0x671')][_0x2a5052[_0x29cf89('0x383')]]&&_0x304dd9[_0x29cf89('0x671')][_0x2a5052['WhatsappQueueId']][_0x29cf89('0x120f')]>0x0&&(_0x304dd9['queues'][_0x2a5052[_0x29cf89('0x383')]]['loggedInDb']-=0x1,delete _0x304dd9[_0x29cf89('0x671')][_0x2a5052[_0x29cf89('0x383')]][_0x29cf89('0x29b')][_0x2a5052[_0x29cf89('0x43d')]]);}var _0x1eae06=!![],_0x58abaf=0x1;_0x17e7a4[_0x40f081('0x107')](_0x40f081('0x20cb'),function(_0x26243d,_0x4dacb2){var _0x1ba40c=_0x40f081;_0x1eae06?_0xf69a24(function(){_0x1eae06=![];}):(!_0x4dacb2&&(_0x58abaf=_0x304dd9[_0x1ba40c('0xa16')]['page']),_0x26243d!==_0x4dacb2&&(_0x304dd9['query'][_0x1ba40c('0xc08')]=0x1),!_0x26243d&&(_0x304dd9[_0x1ba40c('0xa16')][_0x1ba40c('0xc08')]=_0x58abaf),_0x304dd9[_0x1ba40c('0x23cf')]());});function _0x384de4(_0x210249){var _0x4c333e=_0x40f081;_0x304dd9[_0x4c333e('0x148b')]=_0x210249['count'],_0x304dd9['queues']=_0x210249?_0x32d445()[_0x4c333e('0x226f')](_0x210249[_0x4c333e('0x16a7')]?_0x210249[_0x4c333e('0x16a7')]:[],'id'):{};if(_0x210249[_0x4c333e('0x16a7')]){_0x304dd9[_0x4c333e('0x1b03')]=[];for(var _0x1d628f=0x0;_0x1d628f<_0x210249['rows']['length'];_0x1d628f++){_0x304dd9['order']['push'](_0x210249[_0x4c333e('0x16a7')][_0x1d628f]['id']);}}_0x2c4c4c();}function _0x312621(){var _0x53d442=_0x40f081;_0x304dd9[_0x53d442('0xa16')][_0x53d442('0xab0')]=(_0x304dd9['query'][_0x53d442('0xc08')]-0x1)*_0x304dd9[_0x53d442('0xa16')][_0x53d442('0x1b6d')],_0x35ddbd[_0x53d442('0x179e')](_0x53d442('0xd14'))?_0x304dd9[_0x53d442('0x9c8')]=_0xe6ed64['whatsappQueue'][_0x53d442('0x22d5')](_0x304dd9[_0x53d442('0xa16')],_0x384de4)['$promise']:(_0x304dd9[_0x53d442('0xa16')]['id']=_0x304dd9[_0x53d442('0x154f')]['id'],_0x304dd9['query'][_0x53d442('0x1e59')]='WhatsappQueues',_0x304dd9[_0x53d442('0x9c8')]=_0xe6ed64[_0x53d442('0x154f')][_0x53d442('0x14e6')](_0x304dd9['query'],_0x384de4)[_0x53d442('0xe59')]);}function _0x37fcd7(_0x2ec1fc,_0x417e4d){var _0x2db199=_0x40f081;_0x342827[_0x2db199('0x26b2')]({'controller':_0x2db199('0x1b08'),'controllerAs':'vm','templateUrl':_0x8c908c,'parent':angular[_0x2db199('0x24a1')](_0x4079e5[_0x2db199('0x19b2')]),'targetEvent':_0x2ec1fc,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x417e4d,'whatsappQueues':_0x32d445()[_0x2db199('0x1b79')](_0x304dd9['queues']),'license':null,'setting':null,'crudPermissions':_0x304dd9[_0x2db199('0xb3d')]}});}function _0x47aaaa(_0x33d149,_0x591616){var _0x420be1=_0x40f081;_0x342827[_0x420be1('0x26b2')]({'controller':_0x420be1('0x3ca'),'controllerAs':'vm','templateUrl':_0x1a35b6,'parent':angular[_0x420be1('0x24a1')](_0x4079e5['body']),'targetEvent':_0x33d149,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x591616,'whatsappQueues':_0x304dd9[_0x420be1('0x671')]?_0x304dd9[_0x420be1('0x671')]['rows']:[],'realtime':![],'crudPermissions':_0x304dd9[_0x420be1('0xb3d')]}});}function _0x4d2176(_0x2529b6){var _0x4ad397=_0x40f081;return _0xe6ed64[_0x4ad397('0x17a7')][_0x4ad397('0xa70')](_0x2529b6)['$promise'][_0x4ad397('0xe19')](function(){var _0x133ed9=_0x4ad397;_0x564933[_0x133ed9('0x425')]({'title':'Queue\x20properly\x20updated!','msg':_0x2529b6[_0x133ed9('0x2623')]?_0x2529b6['name']+_0x133ed9('0x283b'):''});})['catch'](function(_0x2c2dba){var _0x2ffe2f=_0x4ad397;_0x564933[_0x2ffe2f('0x8c8')]({'title':_0x2ffe2f('0x2780'),'msg':_0x2c2dba[_0x2ffe2f('0x27e8')]});});}_0x17e7a4[_0x40f081('0xb2b')](_0x40f081('0x5cd'),function(){var _0x55c6c4=_0x40f081;_0x22c93b[_0x55c6c4('0x2121')]('whatsapp_queue:save'),_0x22c93b['removeAllListeners'](_0x55c6c4('0x17c1')),_0x22c93b['removeAllListeners'](_0x55c6c4('0x2392')),_0x22c93b[_0x55c6c4('0x2121')]('user:update'),_0x22c93b[_0x55c6c4('0x2121')](_0x55c6c4('0x1583')),_0x22c93b[_0x55c6c4('0x2121')](_0x55c6c4('0x2161'));});}const _0x2720b1=_0x1e4f90;function _0x295864(){var _0x4cf5b1=_0xb635d2;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x4cf5b1('0x10ea'),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0x4cf5b1('0xcf5'),'unreachable':_0x4cf5b1('0x10ea'),'unknown':_0x4cf5b1('0x1fe7')},'state':{'unknown':_0x4cf5b1('0x2740'),'not_inuse':_0x4cf5b1('0x11dd'),'inuse':_0x4cf5b1('0x15af'),'busy':_0x4cf5b1('0x441'),'invalid':_0x4cf5b1('0x2740'),'unavailable':_0x4cf5b1('0x2740'),'ringing':_0x4cf5b1('0x84d'),'ringinuse':_0x4cf5b1('0x84d'),'onhold':_0x4cf5b1('0x90f')},'channelStatus':{'ring':_0x4cf5b1('0x84d'),'up':_0x4cf5b1('0x2778'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x4cf5b1('0x24dc'),'up':_0x4cf5b1('0x2778'),'hangup':_0x4cf5b1('0x2432')}};}const _0x5a126a=_0x295864;_0x5af09e['$inject']=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x46d')];function _0x5af09e(_0x59fa06,_0x13fa3d,_0x2c663b){var _0x33f720=_0xb635d2,_0x5d0368=this;_0x2c663b['disconnect'](),_0x2c663b[_0x33f720('0x19d9')](),_0x5d0368[_0x33f720('0xc7b')]=0x0;switch(_0x13fa3d[_0x33f720('0x1a60')][_0x33f720('0x2623')]){case _0x33f720('0x214c'):_0x5d0368[_0x33f720('0xc7b')]=0x0;break;case'app.whatsapp.realtime.queues':_0x5d0368[_0x33f720('0xc7b')]=0x1;break;default:_0x5d0368[_0x33f720('0xc7b')]=0x0,_0x13fa3d['go'](_0x33f720('0x214c'));}_0x59fa06['$watch']('vm.selectedTab',function(_0xbd3800,_0x2eca66){var _0x3e0b9d=_0x33f720;if(_0xbd3800!==_0x2eca66)switch(_0xbd3800){case 0x0:_0x13fa3d['go'](_0x3e0b9d('0x214c'));break;case 0x1:_0x13fa3d['go'](_0x3e0b9d('0xd47'));break;default:_0x13fa3d['go']('app.whatsapp.realtime.agents');break;}});}const _0x42ac29=_0x5af09e;_0xf27952['$inject']=['$stateProvider'];function _0xf27952(_0x50bf5e){var _0x1c16e0=_0xb635d2;_0x50bf5e[_0x1c16e0('0x1d72')](_0x1c16e0('0x1bbc'),{'url':_0x1c16e0('0x18ff'),'views':{'content@app':{'templateUrl':_0x3648b5,'controller':_0x1c16e0('0x13cc')}},'resolve':{'userProfile':[_0x1c16e0('0x292'),_0x1c16e0('0x2730'),function _0x45554e(_0x4b926a,_0x30b175){var _0x5c5a28=_0x1c16e0;return _0x30b175['hasRole'](_0x5c5a28('0xd14'))?null:_0x4b926a[_0x5c5a28('0xcd6')](_0x5c5a28('0x455'),{'fields':_0x5c5a28('0x1b71'),'id':_0x30b175[_0x5c5a28('0x1ef8')]()[_0x5c5a28('0x1d04')]});}],'userProfileSection':[_0x1c16e0('0x292'),'Auth',function _0x20ffa7(_0xc4bd74,_0x531db4){var _0x54491b=_0x1c16e0;return _0x531db4[_0x54491b('0x179e')](_0x54491b('0xd14'))?null:_0xc4bd74['resolve'](_0x54491b('0x264e'),{'fields':_0x54491b('0x12d6'),'userProfileId':_0x531db4['getCurrentUser']()[_0x54491b('0x1d04')],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0x1c16e0('0x1d72')](_0x1c16e0('0x214c'),{'url':_0x1c16e0('0x11db'),'controller':_0x1c16e0('0x17bb'),'templateUrl':_0x478a86,'resolve':{'pauses':['apiResolver',function _0x529866(_0xa52b49){var _0x5eaec1=_0x1c16e0;return _0xa52b49[_0x5eaec1('0xcd6')](_0x5eaec1('0x2414'),{'nolimit':!![]});}],'agents':[_0x1c16e0('0x292'),_0x1c16e0('0x2730'),function _0x37ad97(_0x5e929e,_0x843273){var _0x25454e=_0x1c16e0;return _0x843273['hasRole'](_0x25454e('0xd14'))?_0x5e929e[_0x25454e('0xcd6')](_0x25454e('0x24a9'),{'fields':_0x25454e('0x11bb'),'role':_0x25454e('0x108'),'sort':'fullname','nolimit':!![]}):_0x5e929e[_0x25454e('0xcd6')](_0x25454e('0x197d'),{'id':_0x843273[_0x25454e('0x1ef8')]()[_0x25454e('0x1d04')],'section':_0x25454e('0xd61'),'fields':_0x25454e('0x11bb'),'role':_0x25454e('0x108'),'sort':_0x25454e('0xe11'),'nolimit':!![]});}],'userProfile':[_0x1c16e0('0x292'),_0x1c16e0('0x2730'),function _0x3d25c6(_0x5aad75,_0x30965a){var _0x4e7078=_0x1c16e0;return _0x30965a[_0x4e7078('0x179e')](_0x4e7078('0xd14'))?null:_0x5aad75[_0x4e7078('0xcd6')](_0x4e7078('0x455'),{'fields':_0x4e7078('0x1b71'),'id':_0x30965a[_0x4e7078('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x1c16e0('0x292'),_0x1c16e0('0x2730'),function _0x197fa0(_0x3e21ae,_0x26f222){var _0x22af1b=_0x1c16e0;return _0x26f222[_0x22af1b('0x179e')](_0x22af1b('0xd14'))?null:_0x3e21ae[_0x22af1b('0xcd6')](_0x22af1b('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x26f222[_0x22af1b('0x1ef8')]()[_0x22af1b('0x1d04')],'sectionId':0xca});}],'rpcAgents':[_0x1c16e0('0x292'),function _0x538ccb(_0x210874){var _0x4c5d52=_0x1c16e0;return _0x210874[_0x4c5d52('0xcd6')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x83e})['state']('app.whatsapp.realtime.queues',{'url':_0x1c16e0('0x17e4'),'controller':_0x1c16e0('0x2014'),'templateUrl':_0x5ac482,'resolve':{'queues':['apiResolver',_0x1c16e0('0x2730'),function _0x47e094(_0x4c8230,_0x19d804){var _0x320c8b=_0x1c16e0;return _0x19d804[_0x320c8b('0x179e')](_0x320c8b('0xd14'))?_0x4c8230[_0x320c8b('0xcd6')](_0x320c8b('0x2890'),{'type':_0x320c8b('0x1a7a'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x4c8230['resolve'](_0x320c8b('0x197d'),{'id':_0x19d804[_0x320c8b('0x1ef8')]()['userProfileId'],'section':_0x320c8b('0x587'),'channel':_0x320c8b('0x4b7'),'type':_0x320c8b('0x1a7a'),'sort':_0x320c8b('0x7e8'),'limit':0xa,'page':0x1});}],'userProfile':[_0x1c16e0('0x292'),_0x1c16e0('0x2730'),function _0x31edd7(_0x11cd17,_0x41060c){var _0x2f9681=_0x1c16e0;return _0x41060c[_0x2f9681('0x179e')](_0x2f9681('0xd14'))?null:_0x11cd17[_0x2f9681('0xcd6')](_0x2f9681('0x455'),{'fields':'id,name,crudPermissions','id':_0x41060c[_0x2f9681('0x1ef8')]()[_0x2f9681('0x1d04')]});}],'userProfileSection':[_0x1c16e0('0x292'),_0x1c16e0('0x2730'),function _0x5cf59f(_0x41556c,_0x55575a){var _0x45181a=_0x1c16e0;return _0x55575a[_0x45181a('0x179e')](_0x45181a('0xd14'))?null:_0x41556c[_0x45181a('0xcd6')](_0x45181a('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x55575a['getCurrentUser']()[_0x45181a('0x1d04')],'sectionId':0x835});}],'rpcQueues':[_0x1c16e0('0x292'),function _0x43e0f2(_0x2631ae){var _0x300b43=_0x1c16e0;return _0x2631ae['resolve'](_0x300b43('0x123f'));}]},'authenticate':!![],'permissionId':0x83e});}angular[_0xb635d2('0x153f')](_0xb635d2('0x1bbc'),[])['config'](_0xf27952)['controller'](_0xb635d2('0x1108'),_0x504037)['controller'](_0xb635d2('0x1b37'),_0x2720b1)['factory']('helperClasses',_0x5a126a)[_0xb635d2('0x1a79')](_0xb635d2('0x25ee'),_0x42ac29);const _0x3f256b=_0x59426a['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html/whatsappQueues-[chunkhash].html',_0x3988fc=_0x59426a['p']+_0xb635d2('0x193c'),_0x93e3d2=_0x59426a['p']+_0xb635d2('0x133d'),_0x16af49=_0x59426a['p']+_0xb635d2('0x8d6');_0x260214[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0x14cf'),_0xb635d2('0x223'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),'setting',_0xb635d2('0xb3d')];function _0x260214(_0x1c2b11,_0x3ec263,_0x477b04,_0x4a3b9a,_0x19815d,_0x170356,_0x126607,_0x406e5e,_0x3ea442,_0x21afc1,_0x933e35,_0x18eb8b,_0x25604c,_0x2cf99b){var _0x7221d=_0xb635d2,_0x566144=this;_0x566144[_0x7221d('0x15a5')]=_0x933e35[_0x7221d('0x1ef8')](),_0x566144['errors']=[],_0x566144[_0x7221d('0x22f1')]=_0x25604c,_0x566144['license']=_0x18eb8b,_0x566144['crudPermissions']=_0x2cf99b,_0x566144['hasModulePermissions']={},_0x566144[_0x7221d('0x25ac')]=_0x566144['setting']&&_0x566144[_0x7221d('0x22f1')][_0x7221d('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x566144[_0x7221d('0x13e4')]='WHATSAPP.EDIT_WHATSAPPACCOUNT',_0x566144['whatsappAccount']=angular['copy'](_0x3ea442),_0x566144['whatsappAccounts']=_0x406e5e,_0x566144[_0x7221d('0x9c5')]=![];!_0x566144[_0x7221d('0x223')]&&(_0x566144[_0x7221d('0x223')]={'remote':_0x477b04[_0x7221d('0xec0')]()+'://'+_0x477b04[_0x7221d('0x3b7')]()+(_0x477b04[_0x7221d('0x11dc')]()?':'+_0x477b04[_0x7221d('0x11dc')]():''),'type':_0x7221d('0x15ac'),'notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x566144['title']=_0x7221d('0x284c'),_0x566144['newWhatsappAccount']=!![]);_0x3ec263['params']['id']&&(_0x566144['whatsappAccount']['WhatsappAccountId']=_0x3ec263['params']['id']);_0x566144[_0x7221d('0xbc8')]=_0x12aa3a,_0x566144['saveWhatsappAccount']=_0x2b8395,_0x566144[_0x7221d('0x66a')]=_0x454830,_0x566144[_0x7221d('0x2635')]=_0xb0bf59,_0x566144[_0x7221d('0x2584')]=_0x43633e,_0x933e35['hasRole']('admin')?_0x21afc1[_0x7221d('0x1bbd')]['get']({'fields':'id,name','sort':_0x7221d('0x2623')})[_0x7221d('0xe59')][_0x7221d('0xe19')](function(_0x2a21d4){var _0x44532a=_0x7221d;_0x566144[_0x44532a('0x9f8')]=_0x2a21d4[_0x44532a('0x16a7')]||[];})['catch'](function(_0x29b8b1){var _0xe465ec=_0x7221d;_0x126607[_0xe465ec('0x8c8')]({'title':_0x29b8b1['status']?'API:'+_0x29b8b1[_0xe465ec('0x2833')]+'\x20-\x20'+_0x29b8b1['statusText']:_0xe465ec('0x2012'),'msg':_0x29b8b1[_0xe465ec('0x11d0')]?JSON['stringify'](_0x29b8b1['data']):_0x29b8b1[_0xe465ec('0x94f')]()});}):_0x21afc1[_0x7221d('0x1bbd')]['get']({'fields':'id,name','sort':_0x7221d('0x2623')})[_0x7221d('0xe59')][_0x7221d('0xe19')](function(_0x403f30){var _0x4de775=_0x7221d;_0x566144[_0x4de775('0x9f8')]=_0x403f30['rows']||[];})[_0x7221d('0xe19')](function(){var _0x86b8c7=_0x7221d;return _0x21afc1[_0x86b8c7('0xb59')][_0x86b8c7('0x22d5')]({'userProfileId':_0x566144[_0x86b8c7('0x15a5')][_0x86b8c7('0x1d04')],'sectionId':0x12d})['$promise'];})[_0x7221d('0xe19')](function(_0x342a03){var _0x1f29d1=_0x7221d,_0x1c1ab4=_0x342a03&&_0x342a03[_0x1f29d1('0x16a7')]?_0x342a03[_0x1f29d1('0x16a7')][0x0]:null;if(!_0x1c1ab4){var _0x17aff5=[],_0x5b83e9=null;_0x566144[_0x1f29d1('0x223')]&&(_0x5b83e9=_0x32d445()[_0x1f29d1('0xf15')](_0x566144[_0x1f29d1('0x9f8')],{'id':Number(_0x566144['whatsappAccount'][_0x1f29d1('0x2463')])}));for(var _0xd078ea=0x0;_0xd078ea<_0x566144[_0x1f29d1('0x9f8')]['length'];_0xd078ea++){_0x5b83e9&&_0x566144[_0x1f29d1('0x9f8')][_0xd078ea]['id']===_0x5b83e9['id']&&(_0x566144['lists'][_0xd078ea]['canSelect']=![],_0x17aff5[_0x1f29d1('0xb76')](_0x566144[_0x1f29d1('0x9f8')][_0xd078ea]));}_0x566144[_0x1f29d1('0x9f8')]=_0x17aff5;}else{if(!_0x1c1ab4[_0x1f29d1('0x11fd')])return _0x21afc1[_0x1f29d1('0xd49')][_0x1f29d1('0x22d5')]({'sectionId':_0x1c1ab4['id']})['$promise'][_0x1f29d1('0xe19')](function(_0x51583e){var _0x369c88=_0x1f29d1,_0x1af7a6=_0x32d445()[_0x369c88('0x65a')](_0x51583e[_0x369c88('0x16a7')],function(_0x995096){var _0xec70f2=_0x369c88;return _0x32d445()['find'](_0x566144[_0xec70f2('0x9f8')],{'id':_0x995096[_0xec70f2('0x1104')]});}),_0x5d3da2=null;_0x566144[_0x369c88('0x223')]&&(_0x5d3da2=_0x32d445()[_0x369c88('0xf15')](_0x566144[_0x369c88('0x9f8')],{'id':Number(_0x566144[_0x369c88('0x223')]['ListId'])}));if(_0x5d3da2&&!_0x32d445()[_0x369c88('0x201a')](_0x1af7a6,['id',_0x5d3da2['id']])){var _0x31c29d=_0x32d445()['find'](_0x566144[_0x369c88('0x9f8')],{'id':_0x5d3da2['id']});_0x31c29d[_0x369c88('0x1e9d')]=![],_0x1af7a6[_0x369c88('0xb76')](_0x31c29d);}_0x566144[_0x369c88('0x9f8')]=_0x1af7a6;});}})[_0x7221d('0x223b')](function(_0xe9b5ed){var _0x126f0c=_0x7221d;_0x126607[_0x126f0c('0x8c8')]({'title':_0xe9b5ed[_0x126f0c('0x2833')]?_0x126f0c('0x27f2')+_0xe9b5ed[_0x126f0c('0x2833')]+'\x20-\x20'+_0xe9b5ed[_0x126f0c('0x1fd7')]:_0x126f0c('0xd65'),'msg':_0xe9b5ed[_0x126f0c('0x11d0')]?JSON[_0x126f0c('0x3ad')](_0xe9b5ed[_0x126f0c('0x11d0')]):_0xe9b5ed[_0x126f0c('0x94f')]()});}),_0x933e35[_0x7221d('0x179e')]('admin')?_0x21afc1['pause'][_0x7221d('0x22d5')]({'fields':_0x7221d('0x1b75'),'sort':_0x7221d('0x2623'),'nolimit':_0x7221d('0x2206')})['$promise'][_0x7221d('0xe19')](function(_0x84af52){var _0x4254d5=_0x7221d;_0x566144[_0x4254d5('0x145e')]=_0x84af52[_0x4254d5('0x16a7')]||[];})[_0x7221d('0x223b')](function(_0x47d2b4){var _0x4815dd=_0x7221d;_0x126607[_0x4815dd('0x8c8')]({'title':_0x47d2b4[_0x4815dd('0x2833')]?_0x4815dd('0x27f2')+_0x47d2b4[_0x4815dd('0x2833')]+_0x4815dd('0x1b7c')+_0x47d2b4[_0x4815dd('0x1fd7')]:_0x4815dd('0x20ea'),'msg':_0x47d2b4[_0x4815dd('0x11d0')]?JSON['stringify'](_0x47d2b4[_0x4815dd('0x11d0')]):_0x47d2b4[_0x4815dd('0x94f')]()});}):_0x21afc1[_0x7221d('0x1c98')][_0x7221d('0x22d5')]({'fields':_0x7221d('0x1b75'),'sort':_0x7221d('0x2623'),'nolimit':'true'})[_0x7221d('0xe59')][_0x7221d('0xe19')](function(_0xa0e61b){var _0x220ebe=_0x7221d;_0x566144[_0x220ebe('0x145e')]=_0xa0e61b[_0x220ebe('0x16a7')]||[];})[_0x7221d('0xe19')](function(){var _0x2d0c46=_0x7221d;return _0x21afc1[_0x2d0c46('0xb59')]['get']({'userProfileId':_0x566144[_0x2d0c46('0x15a5')][_0x2d0c46('0x1d04')],'sectionId':0x3ed})[_0x2d0c46('0xe59')];})['then'](function(_0x5d9419){var _0x24caa3=_0x7221d,_0x2204bb=_0x5d9419&&_0x5d9419[_0x24caa3('0x16a7')]?_0x5d9419[_0x24caa3('0x16a7')][0x0]:null;if(!_0x2204bb)_0x566144[_0x24caa3('0x145e')]=[];else{if(!_0x2204bb['autoAssociation'])return _0x21afc1[_0x24caa3('0xd49')]['get']({'sectionId':_0x2204bb['id']})[_0x24caa3('0xe59')][_0x24caa3('0xe19')](function(_0x2d7206){var _0x826d42=_0x24caa3,_0x5023c8=_0x32d445()[_0x826d42('0x65a')](_0x2d7206[_0x826d42('0x16a7')],function(_0x41bf3c){var _0x190044=_0x826d42;return _0x32d445()[_0x190044('0xf15')](_0x566144[_0x190044('0x145e')],{'id':_0x41bf3c['resourceId']});});_0x566144['pauses']['forEach'](function(_0x396ed9){var _0x5a1d77=_0x826d42;!_0x32d445()[_0x5a1d77('0x201a')](_0x5023c8,['id',_0x396ed9['id']])&&(_0x396ed9[_0x5a1d77('0x1e9d')]=![]),_0x5023c8['push'](_0x396ed9);}),_0x566144[_0x826d42('0x145e')]=_0x5023c8;});}})['catch'](function(_0x282946){var _0x1e7cff=_0x7221d;_0x126607[_0x1e7cff('0x8c8')]({'title':_0x282946[_0x1e7cff('0x2833')]?'API:'+_0x282946[_0x1e7cff('0x2833')]+_0x1e7cff('0x1b7c')+_0x282946[_0x1e7cff('0x1fd7')]:_0x1e7cff('0x1da6'),'msg':_0x282946['data']?JSON[_0x1e7cff('0x3ad')](_0x282946[_0x1e7cff('0x11d0')]):_0x282946['toString']()});});function _0x12aa3a(){var _0x3110e3=_0x7221d;_0x566144[_0x3110e3('0xcd2')]=[],_0x21afc1[_0x3110e3('0x223')][_0x3110e3('0xe5e')](_0x566144[_0x3110e3('0x223')])[_0x3110e3('0xe59')][_0x3110e3('0xe19')](function(_0x330945){var _0x23e9f2=_0x3110e3;_0x566144['whatsappAccounts'][_0x23e9f2('0x14c9')](_0x330945[_0x23e9f2('0x250e')]()),_0x126607[_0x23e9f2('0x425')]({'title':_0x23e9f2('0x102d'),'msg':_0x566144[_0x23e9f2('0x223')]['name']?_0x566144[_0x23e9f2('0x223')][_0x23e9f2('0x2623')]+_0x23e9f2('0x105f'):''}),_0x43633e(_0x330945);})[_0x3110e3('0x223b')](function(_0x4efe23){var _0x232b3c=_0x3110e3;if(_0x4efe23[_0x232b3c('0x11d0')]&&_0x4efe23[_0x232b3c('0x11d0')][_0x232b3c('0xcd2')]&&_0x4efe23[_0x232b3c('0x11d0')][_0x232b3c('0xcd2')][_0x232b3c('0x25ae')]){_0x566144[_0x232b3c('0xcd2')]=_0x4efe23[_0x232b3c('0x11d0')]['errors']||[{'message':_0x4efe23['toString'](),'type':_0x232b3c('0x4dd')}];for(var _0x526474=0x0;_0x526474<_0x4efe23[_0x232b3c('0x11d0')][_0x232b3c('0xcd2')]['length'];_0x526474+=0x1){_0x126607[_0x232b3c('0x8c8')]({'title':_0x4efe23[_0x232b3c('0x11d0')]['errors'][_0x526474][_0x232b3c('0x62e')],'msg':_0x4efe23[_0x232b3c('0x11d0')][_0x232b3c('0xcd2')][_0x526474][_0x232b3c('0x27e8')]});}}else _0x126607[_0x232b3c('0x8c8')]({'title':_0x4efe23[_0x232b3c('0x2833')]?_0x232b3c('0x27f2')+_0x4efe23[_0x232b3c('0x2833')]+_0x232b3c('0x1b7c')+_0x4efe23[_0x232b3c('0x1fd7')]:_0x232b3c('0x4dd'),'msg':_0x4efe23[_0x232b3c('0x11d0')]?JSON[_0x232b3c('0x3ad')](_0x4efe23[_0x232b3c('0x11d0')]['message']):_0x4efe23[_0x232b3c('0x94f')]()});});}function _0x2b8395(){var _0x2bb343=_0x7221d;_0x566144[_0x2bb343('0xcd2')]=[],_0x21afc1[_0x2bb343('0x223')]['update']({'id':_0x566144['whatsappAccount']['id']},_0x566144[_0x2bb343('0x223')])[_0x2bb343('0xe59')][_0x2bb343('0xe19')](function(_0x466c37){var _0x1e45d2=_0x2bb343,_0x2d5a6a=_0x32d445()[_0x1e45d2('0xf15')](_0x566144[_0x1e45d2('0x14cf')],{'id':_0x466c37['id']});_0x2d5a6a&&_0x32d445()['merge'](_0x2d5a6a,_0x32d445()['pick'](_0x466c37[_0x1e45d2('0x250e')](),_0x32d445()['keys'](_0x2d5a6a))),_0x126607[_0x1e45d2('0x425')]({'title':_0x1e45d2('0x1da5'),'msg':_0x566144[_0x1e45d2('0x223')][_0x1e45d2('0x2623')]?_0x566144[_0x1e45d2('0x223')][_0x1e45d2('0x2623')]+_0x1e45d2('0x1c19'):''}),_0x43633e(_0x466c37);})['catch'](function(_0x366d3f){var _0x33c86c=_0x2bb343;if(_0x366d3f['data']&&_0x366d3f[_0x33c86c('0x11d0')]['errors']&&_0x366d3f[_0x33c86c('0x11d0')][_0x33c86c('0xcd2')]['length']){_0x566144[_0x33c86c('0xcd2')]=_0x366d3f[_0x33c86c('0x11d0')]['errors']||[{'message':_0x366d3f[_0x33c86c('0x94f')](),'type':_0x33c86c('0x211e')}];for(var _0x212b61=0x0;_0x212b61<_0x366d3f[_0x33c86c('0x11d0')][_0x33c86c('0xcd2')]['length'];_0x212b61++){_0x126607[_0x33c86c('0x8c8')]({'title':_0x366d3f[_0x33c86c('0x11d0')][_0x33c86c('0xcd2')][_0x212b61][_0x33c86c('0x62e')],'msg':_0x366d3f['data'][_0x33c86c('0xcd2')][_0x212b61][_0x33c86c('0x27e8')]});}}else _0x126607[_0x33c86c('0x8c8')]({'title':_0x366d3f[_0x33c86c('0x2833')]?'API:'+_0x366d3f['status']+_0x33c86c('0x1b7c')+_0x366d3f[_0x33c86c('0x1fd7')]:'api.whatsappAccount.update','msg':_0x366d3f[_0x33c86c('0x11d0')]?JSON['stringify'](_0x366d3f[_0x33c86c('0x11d0')]['message']):_0x366d3f['toString']()});});}function _0x454830(_0x45d978){var _0x20b24e=_0x7221d;_0x566144[_0x20b24e('0xcd2')]=[];var _0x1f5aec=_0x4a3b9a[_0x20b24e('0xa5')]()[_0x20b24e('0x13e4')](_0x20b24e('0x24d0'))[_0x20b24e('0xd0')](_0x20b24e('0x182d'))['ariaLabel'](_0x20b24e('0x25'))['ok'](_0x20b24e('0x2198'))['cancel'](_0x20b24e('0x8a3'))[_0x20b24e('0x1345')](_0x45d978);_0x4a3b9a['show'](_0x1f5aec)[_0x20b24e('0xe19')](function(){var _0x52912d=_0x20b24e;_0x21afc1[_0x52912d('0x223')][_0x52912d('0x229e')]({'id':_0x566144[_0x52912d('0x223')]['id']})[_0x52912d('0xe59')]['then'](function(){var _0x205b34=_0x52912d;_0x32d445()[_0x205b34('0xa8b')](_0x566144['whatsappAccounts'],{'id':_0x566144[_0x205b34('0x223')]['id']}),_0x126607['success']({'title':'WhatsappAccount\x20properly\x20deleted!','msg':(_0x566144[_0x205b34('0x223')][_0x205b34('0x2623')]||_0x205b34('0x223'))+_0x205b34('0x2182')}),_0x43633e(_0x566144[_0x205b34('0x223')]);})['catch'](function(_0x14cb28){var _0x187354=_0x52912d;if(_0x14cb28[_0x187354('0x11d0')]&&_0x14cb28[_0x187354('0x11d0')][_0x187354('0xcd2')]&&_0x14cb28[_0x187354('0x11d0')][_0x187354('0xcd2')][_0x187354('0x25ae')]){_0x566144['errors']=_0x14cb28[_0x187354('0x11d0')][_0x187354('0xcd2')]||[{'message':_0x14cb28['toString'](),'type':_0x187354('0x222f')}];for(var _0x5a6ced=0x0;_0x5a6ced<_0x14cb28[_0x187354('0x11d0')][_0x187354('0xcd2')][_0x187354('0x25ae')];_0x5a6ced++){_0x126607[_0x187354('0x8c8')]({'title':_0x14cb28[_0x187354('0x11d0')][_0x187354('0xcd2')][_0x5a6ced]['type'],'msg':_0x14cb28[_0x187354('0x11d0')]['errors'][_0x5a6ced][_0x187354('0x27e8')]});}}else _0x126607['error']({'title':_0x14cb28[_0x187354('0x2833')]?_0x187354('0x27f2')+_0x14cb28[_0x187354('0x2833')]+_0x187354('0x1b7c')+_0x14cb28['statusText']:_0x187354('0x222f'),'msg':_0x14cb28['data']?JSON[_0x187354('0x3ad')](_0x14cb28[_0x187354('0x11d0')]['message']):_0x14cb28[_0x187354('0x27e8')]||_0x14cb28[_0x187354('0x94f')]()});});},function(){});}function _0xb0bf59(_0x4158ea){return _0x4158ea===null?undefined:new Date(_0x4158ea);}function _0x43633e(_0xcd08c9){var _0xcca296=_0x7221d;_0x4a3b9a[_0xcca296('0x11ed')](_0xcd08c9);}}const _0x3b45f2=_0x260214,_0x370d59=_0x59426a['p']+_0xb635d2('0x591'),_0x443ff5=_0x59426a['p']+_0xb635d2('0x1be4'),_0x1918c1=_0x59426a['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html',_0x2a149f=_0x59426a['p']+_0xb635d2('0x16c2'),_0xc4bd77=_0x59426a['p']+_0xb635d2('0x2353'),_0x38e773=_0x59426a['p']+_0xb635d2('0x1ed6'),_0x5a6518=_0x59426a['p']+_0xb635d2('0x2b8'),_0x1a10e8=_0x59426a['p']+_0xb635d2('0x1af8'),_0xb63174=_0x59426a['p']+_0xb635d2('0x171c'),_0x3029b7=_0x59426a['p']+_0xb635d2('0x2a7'),_0x14a76d=_0x59426a['p']+_0xb635d2('0x15be'),_0x10f3ff=_0x59426a['p']+_0xb635d2('0x8fc');_0x34cf03['$inject']=['api','$mdDialog',_0xb635d2('0x1728'),'toasty',_0xb635d2('0x2730')];var _0x3062aa={'agent':_0x370d59,'amazonlex':_0x443ff5,'autoreply':_0x1918c1,'close':_0x2a149f,'dialogflow':_0xc4bd77,'gotoif':_0x38e773,'gotop':_0x5a6518,'interval':_0x1a10e8,'noop':_0xb63174,'queue':_0x3029b7,'system':_0x14a76d,'tag':_0x10f3ff};function _0x34cf03(_0x15b95a,_0x4014f0,_0xe404ee,_0x2ec232,_0x5a9bb9){var _0x5e69e2=_0xb635d2,_0x421106=this;_0x421106[_0x5e69e2('0x15a5')]=_0x5a9bb9[_0x5e69e2('0x1ef8')](),_0x421106['whatsappAccount']={},_0x421106[_0x5e69e2('0x25b5')]={'count':0x0,'rows':[]},_0x421106[_0x5e69e2('0x215d')]=[],_0x421106[_0x5e69e2('0xb3d')],_0x421106[_0x5e69e2('0xa16')]={'sort':_0x5e69e2('0xb33')},_0x421106[_0x5e69e2('0x23bb')]=_0x32d445()[_0x5e69e2('0x1337')](_0x32d445()[_0x5e69e2('0x14c')]([{'app':'Interval','appType':_0x5e69e2('0x134c'),'types':['always','custom','list'],'fields':[],'isApp':![]},{'app':_0x5e69e2('0xc09'),'appType':'noop','type':_0x5e69e2('0xc09'),'icon':_0x5e69e2('0x27be'),'interval':_0x5e69e2('0x2292'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':'value','type':_0x5e69e2('0x1bc6'),'param':0x0}]},{'app':_0x5e69e2('0x1917'),'appType':_0x5e69e2('0x1917'),'type':'system','icon':_0x5e69e2('0x27be'),'interval':_0x5e69e2('0x2292'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x5e69e2('0x19a5'),'key':_0x5e69e2('0x2623')},'route':'variable','filters':{'fields':_0x5e69e2('0x104'),'sort':_0x5e69e2('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x5e69e2('0x19b8'),'name':_0x5e69e2('0x19a'),'type':_0x5e69e2('0x1bc6'),'required':!![],'param':0x0},{'title':_0x5e69e2('0x1a9d'),'name':_0x5e69e2('0x19a5'),'type':'apiselect','values':_0x5e69e2('0x1a9e'),'value':_0x5e69e2('0x2328'),'option':_0x5e69e2('0x2328'),'defaultValues':[{'value':'\x27\x27','option':_0x5e69e2('0x1b16')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x5e69e2('0x16fe'),'appType':_0x5e69e2('0x16fe'),'type':_0x5e69e2('0x1fa1'),'icon':'icon-apps','interval':_0x5e69e2('0x2292'),'isApp':!![],'fields':[{'title':'Priority','name':'priority','type':_0x5e69e2('0x1c60'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x5e69e2('0x22c3'),'appType':_0x5e69e2('0x22c3'),'type':'gotoif','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x5e69e2('0x48c'),'name':_0x5e69e2('0x1c03'),'type':'text','required':!![],'param':0x0},{'title':_0x5e69e2('0x50'),'name':_0x5e69e2('0x50'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x5e69e2('0x347'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x5e69e2('0x26a8'),'appType':'queue','foreignKey':'WhatsappQueueId','type':_0x5e69e2('0x26a8'),'icon':'icon-apps','interval':_0x5e69e2('0x2292'),'isApp':!![],'extraApi':[{'name':_0x5e69e2('0x671'),'field':{'name':_0x5e69e2('0x26a8'),'key':_0x5e69e2('0x2623')},'route':_0x5e69e2('0x17a7'),'filters':{'fields':'id,name,type','sort':_0x5e69e2('0x2623'),'nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':_0x5e69e2('0x9'),'name':_0x5e69e2('0x26a8'),'type':_0x5e69e2('0x14b8'),'values':_0x5e69e2('0x671'),'value':_0x5e69e2('0x15df'),'option':_0x5e69e2('0x15df'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x5e69e2('0x784'),'name':'timeout','type':_0x5e69e2('0x1c60'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x5e69e2('0x108'),'appType':'agent','type':_0x5e69e2('0x108'),'foreignKey':_0x5e69e2('0x43d'),'icon':_0x5e69e2('0x27be'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x5e69e2('0x29b'),'field':{'name':_0x5e69e2('0x108'),'key':_0x5e69e2('0x2623')},'route':_0x5e69e2('0x10c6'),'filters':{'fields':_0x5e69e2('0x104'),'sort':_0x5e69e2('0x2623'),'nolimit':!![],'role':_0x5e69e2('0x108')},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x5e69e2('0x108'),'type':_0x5e69e2('0x14b8'),'values':_0x5e69e2('0x29b'),'value':_0x5e69e2('0xec8'),'option':_0x5e69e2('0xec8'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x5e69e2('0x2058'),'type':_0x5e69e2('0x1c60'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x5e69e2('0x400'),'appType':'autoreply','type':'autoreply','icon':_0x5e69e2('0x27be'),'interval':_0x5e69e2('0x2292'),'isApp':!![],'fields':[{'title':_0x5e69e2('0x1ec4'),'name':'times','type':'select','defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':_0x5e69e2('0x2d2'),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0x5e69e2('0x1bc6'),'type':_0x5e69e2('0x777'),'required':!![],'param':0x1}]},{'app':_0x5e69e2('0x1886'),'appType':'close','type':_0x5e69e2('0x1886'),'icon':_0x5e69e2('0x27be'),'interval':_0x5e69e2('0x2292'),'isApp':!![],'fields':[{'title':_0x5e69e2('0x1892'),'name':_0x5e69e2('0x2506'),'type':_0x5e69e2('0x1bc6'),'required':!![],'param':0x0}]},{'app':_0x5e69e2('0x2037'),'appType':'tag','type':_0x5e69e2('0x2037'),'foreignKey':_0x5e69e2('0x30a'),'icon':_0x5e69e2('0x27be'),'interval':_0x5e69e2('0x2292'),'isApp':!![],'extraApi':[{'name':_0x5e69e2('0x1105'),'field':{'name':_0x5e69e2('0x2037'),'key':_0x5e69e2('0x2623')},'route':_0x5e69e2('0x2037'),'filters':{'fields':_0x5e69e2('0x104'),'sort':_0x5e69e2('0x2623'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x5e69e2('0x1172'),'name':_0x5e69e2('0x2037'),'type':_0x5e69e2('0x14b8'),'values':_0x5e69e2('0x1105'),'value':'tag.name','option':_0x5e69e2('0x460'),'required':!![],'param':0x0}]},{'app':_0x5e69e2('0xc11'),'appType':_0x5e69e2('0xc11'),'type':_0x5e69e2('0xc11'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Key','name':_0x5e69e2('0x6e4'),'type':_0x5e69e2('0x1bc6'),'required':!![],'param':0x0},{'title':_0x5e69e2('0x174b'),'name':_0x5e69e2('0x174b'),'type':_0x5e69e2('0x2e6'),'defaultValue':_0x5e69e2('0xc5a'),'values':[{'option':_0x5e69e2('0x1298'),'value':_0x5e69e2('0x1d90')},{'option':_0x5e69e2('0x1a01'),'value':_0x5e69e2('0xc5a')},{'option':_0x5e69e2('0x1753'),'value':_0x5e69e2('0x594')},{'option':_0x5e69e2('0x24dd'),'value':_0x5e69e2('0x1d9b')},{'option':_0x5e69e2('0x74e'),'value':_0x5e69e2('0x105c')},{'option':_0x5e69e2('0x2274'),'value':_0x5e69e2('0x23ec')},{'option':'Indonesian','value':_0x5e69e2('0xf32')},{'option':'Japanese','value':_0x5e69e2('0x172')},{'option':_0x5e69e2('0xa60'),'value':_0x5e69e2('0x1c56')},{'option':_0x5e69e2('0xcba'),'value':_0x5e69e2('0x683')},{'option':'Norwegian','value':_0x5e69e2('0x16f2')},{'option':_0x5e69e2('0x82f'),'value':_0x5e69e2('0x1d6a')},{'option':_0x5e69e2('0xed9'),'value':_0x5e69e2('0x2593')},{'option':_0x5e69e2('0x1bd8'),'value':_0x5e69e2('0x1070')},{'option':_0x5e69e2('0x1dc7'),'value':_0x5e69e2('0x249d')},{'option':_0x5e69e2('0x2e1'),'value':_0x5e69e2('0x3c9')},{'option':_0x5e69e2('0x6d9'),'value':'\x27uk\x27'},{'option':_0x5e69e2('0x75c'),'value':_0x5e69e2('0xaf5')},{'option':'Chinese\x20(Hong\x20Kong)','value':'\x27zh-HK\x27'},{'option':_0x5e69e2('0x12ff'),'value':_0x5e69e2('0xafb')}],'required':!![],'param':0x1},{'title':'welcomemessage','name':'welcomemessage','type':_0x5e69e2('0x777'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x5e69e2('0x1321'),'appType':_0x5e69e2('0x1321'),'type':'amazonlex','icon':_0x5e69e2('0x27be'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x5e69e2('0x22be'),'name':_0x5e69e2('0x22be'),'type':_0x5e69e2('0x1bc6'),'required':!![],'param':0x0},{'title':'secretaccesskey','name':_0x5e69e2('0x700'),'type':'text','required':!![],'param':0x1},{'title':_0x5e69e2('0x206a'),'name':_0x5e69e2('0x206a'),'type':_0x5e69e2('0x2e6'),'defaultValue':_0x5e69e2('0x135a'),'values':[{'option':_0x5e69e2('0x26e'),'value':_0x5e69e2('0x135a')},{'option':_0x5e69e2('0x60c'),'value':_0x5e69e2('0x1875')},{'option':_0x5e69e2('0x21dc'),'value':_0x5e69e2('0x1117')},{'option':_0x5e69e2('0xcd'),'value':_0x5e69e2('0x170f')}],'required':!![],'param':0x2},{'title':_0x5e69e2('0x191a'),'name':_0x5e69e2('0x191a'),'type':_0x5e69e2('0x1bc6'),'required':!![],'param':0x3},{'title':_0x5e69e2('0xfcc'),'name':_0x5e69e2('0xfcc'),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x5e69e2('0xf2b')]),{'isApp':![]}),_0x421106[_0x5e69e2('0x15a8')]={'group':{'name':_0x5e69e2('0x866'),'pull':'clone'},'animation':0x64,'sort':![]},_0x421106[_0x5e69e2('0x2358')]={'group':{'name':_0x5e69e2('0x328'),'put':_0x5e69e2('0x866')},'animation':0x64,'onAdd':function _0x35ccb3(_0x402f65){var _0x4de032=_0x5e69e2;_0x1e99aa(_0x402f65,_0x402f65[_0x4de032('0x11ad')]);},'onSort':function _0x1fd4b7(){_0x5b20fe();}},_0x421106[_0x5e69e2('0x15f9')]=_0x3356f3,_0x421106[_0x5e69e2('0x126c')]=_0x4b6f97,_0x421106[_0x5e69e2('0x195e')]=_0x1f120a,_0x421106['editWhatsappAccountApp']=_0x1e99aa,_0x421106[_0x5e69e2('0xf50')]=_0x159753,_0x421106[_0x5e69e2('0x438')]=_0xbe324a,_0x421106[_0x5e69e2('0x1f6f')]=_0xfd744d,_0x421106[_0x5e69e2('0x20b4')]=_0x5b20fe,_0x421106[_0x5e69e2('0x157')]=_0x12a1ad;function _0x3356f3(_0x1b536a,_0x46fc91){var _0x5cdd9b=_0x5e69e2;_0x421106['whatsappAccount']=_0x1b536a,_0x421106['crudPermissions']=typeof _0x46fc91!=='undefined'?_0x46fc91:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x421106[_0x5cdd9b('0x2358')][_0x5cdd9b('0x1ebc')]=!_0x421106[_0x5cdd9b('0xb3d')][_0x5cdd9b('0x12bc')]?!![]:![],_0x421106[_0x5cdd9b('0xa16')]['id']=_0x1b536a['id'],_0x421106[_0x5cdd9b('0xa16')][_0x5cdd9b('0x1144')]=!![],_0x421106[_0x5cdd9b('0xa16')]['nolimit']=!![],_0x421106['getWhatsappAccountApps'](),_0x421106['getIntervals']();}function _0x4b6f97(_0x14b58a,_0x49a1b,_0x290e80){var _0x17efd7=_0x5e69e2,_0x2be733=_0x4014f0[_0x17efd7('0xa5')]()[_0x17efd7('0x13e4')](_0x17efd7('0x21ed'))[_0x17efd7('0x221c')](''+_0x14b58a[_0x17efd7('0xf2b')]+''+_0x17efd7('0x21bd'))[_0x17efd7('0x4d1')](_0x17efd7('0x21d1'))[_0x17efd7('0x1345')](_0x290e80)['ok']('OK')[_0x17efd7('0x2c1')](_0x17efd7('0x17'));_0x4014f0[_0x17efd7('0x26b2')](_0x2be733)['then'](function(){var _0x11e8ad=_0x17efd7;_0x421106[_0x11e8ad('0x25b5')]['rows']['splice'](_0x49a1b,0x1),_0x5b20fe();},function(){var _0x3dae87=_0x17efd7;console[_0x3dae87('0x1fe9')](_0x3dae87('0x17'));});}function _0x1e99aa(_0x20603c,_0x5e0089){var _0x392f72=_0x5e69e2;if(_0x421106[_0x392f72('0x25b5')][_0x392f72('0x16a7')][_0x392f72('0x25ae')]){var _0x4ba7d1=_0x421106[_0x392f72('0x25b5')][_0x392f72('0x16a7')][_0x5e0089]?_0x421106[_0x392f72('0x25b5')][_0x392f72('0x16a7')][_0x5e0089]:_0x421106[_0x392f72('0x25b5')][_0x392f72('0x16a7')][0x0],_0x3615dd=(_0x4ba7d1[_0x392f72('0xf44')]||_0x4ba7d1[_0x392f72('0xf2b')])[_0x392f72('0x20dd')]();_0x4014f0[_0x392f72('0x26b2')]({'controller':_0x392f72('0x1edf')['concat'](_0x3615dd,_0x392f72('0x2893')),'controllerAs':'vm','templateUrl':_0x3062aa[_0x3615dd],'parent':angular[_0x392f72('0x24a1')](_0xe404ee[_0x392f72('0x19b2')]),'targetEvent':_0x20603c,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x4ba7d1,'whatsappAccount':_0x421106[_0x392f72('0x223')],'crudPermissions':_0x421106['crudPermissions']}})[_0x392f72('0xe19')](function(_0x2c55e5){var _0x33877c=_0x392f72;_0x2c55e5&&(_0x2c55e5['id']?_0x421106['whatsappAccountApps']['rows'][_0x5e0089]=_0x2c55e5:_0x421106[_0x33877c('0x25b5')][_0x33877c('0x16a7')][_0x33877c('0x1c8e')](_0x5e0089,0x0,_0x2c55e5),_0x5b20fe());})[_0x392f72('0x223b')](function(_0x214073){var _0x35e930=_0x392f72;_0x214073&&_0x2ec232[_0x35e930('0x8c8')]({'title':_0x214073[_0x35e930('0x2833')]?_0x35e930('0x27f2')+_0x214073[_0x35e930('0x2833')]+_0x35e930('0x1b7c')+_0x214073[_0x35e930('0x1fd7')]:_0x35e930('0x1c4b'),'msg':_0x214073[_0x35e930('0x11d0')]?JSON[_0x35e930('0x3ad')](_0x214073[_0x35e930('0x11d0')]):_0x214073[_0x35e930('0x94f')]()});});}}function _0x159753(_0xbc660,_0x3e90f8){var _0x1f7a9c=_0x5e69e2;if(_0x421106['whatsappAccountApps'][_0x1f7a9c('0x16a7')]['length']){var _0x32fcfb=_0x421106[_0x1f7a9c('0x25b5')][_0x1f7a9c('0x16a7')][_0x3e90f8]?_0x421106[_0x1f7a9c('0x25b5')][_0x1f7a9c('0x16a7')][_0x3e90f8]:_0x421106[_0x1f7a9c('0x25b5')][_0x1f7a9c('0x16a7')][0x0];_0x4014f0[_0x1f7a9c('0x26b2')]({'controller':_0x1f7a9c('0x543'),'controllerAs':'vm','templateUrl':_0x1a10e8,'parent':angular[_0x1f7a9c('0x24a1')](_0xe404ee[_0x1f7a9c('0x19b2')]),'targetEvent':_0xbc660,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x32fcfb[_0x1f7a9c('0x134c')],'IntervalId':_0x32fcfb[_0x1f7a9c('0x1fc1')],'application':!![]},'intervals':[],'crudPermissions':_0x421106[_0x1f7a9c('0xb3d')]}})[_0x1f7a9c('0xe19')](function(_0xcb786a){var _0x53dc1e=_0x1f7a9c;_0xcb786a&&(_0x32fcfb[_0x53dc1e('0x134c')]=_0xcb786a['interval']||_0x53dc1e('0x2292'),_0x32fcfb[_0x53dc1e('0x1fc1')]=_0xcb786a[_0x53dc1e('0x1fc1')]||null,_0x5b20fe());});}}function _0x5b20fe(){var _0x2f308f=_0x5e69e2,_0x3f6ffa=0x1,_0x1e435d=[];for(var _0xdbbe95=0x0;_0xdbbe95<_0x421106[_0x2f308f('0x25b5')]['rows']['length'];_0xdbbe95++){var _0x207f00=_0x421106[_0x2f308f('0x25b5')][_0x2f308f('0x16a7')][_0xdbbe95],_0x254b8b=[],_0x281ce2=[];_0x207f00['intervals']=_0x207f00[_0x2f308f('0x134c')]!==_0x2f308f('0x2292')?[_0x207f00[_0x2f308f('0x134c')]]:_0x207f00['IntervalId']?_0x32d445()[_0x2f308f('0x65a')](_0x32d445()[_0x2f308f('0x2891')](_0x421106[_0x2f308f('0x10e0')][_0x2f308f('0x16a7')],{'IntervalId':_0x207f00[_0x2f308f('0x1fc1')]}),_0x2f308f('0x134c')):[],_0x207f00[_0x2f308f('0x1318')]=_0x421106[_0x2f308f('0x223')][_0x2f308f('0x1318')],_0x207f00[_0x2f308f('0x632')]=_0x421106[_0x2f308f('0x223')]['exten'],_0x207f00['type']&&(_0x207f00[_0x2f308f('0x62e')]=_0x207f00[_0x2f308f('0x62e')][_0x2f308f('0x20dd')]()),_0x207f00['priority']=_0x254b8b['length']?_0x32d445()[_0x2f308f('0x27ed')](_0x254b8b)[_0x2f308f('0xb33')]+0x1:_0x3f6ffa,_0x3f6ffa=(_0x281ce2[_0x2f308f('0x25ae')]?_0x32d445()[_0x2f308f('0x27ed')](_0x281ce2)[_0x2f308f('0xb33')]:_0x207f00[_0x2f308f('0xb33')])+0x1,_0x1e435d=_0x32d445()[_0x2f308f('0x1007')](_0x1e435d,_0x254b8b,[_0x207f00],_0x281ce2);}_0x15b95a[_0x2f308f('0x223')][_0x2f308f('0x25d9')]({'id':_0x421106[_0x2f308f('0x223')]['id']},_0x32d445()[_0x2f308f('0x14c')](_0x1e435d,_0x2f308f('0xb33')))['$promise']['then'](function(_0x27ea74){var _0x412ad7=_0x2f308f;_0x421106[_0x412ad7('0x25b5')]['rows']=_0x27ea74[_0x412ad7('0x16a7')];})[_0x2f308f('0x223b')](function(_0xcda93d){console['error'](_0xcda93d);});}function _0x271173(_0x5ea730){_0x421106['whatsappAccountApps']=_0x5ea730||{'count':0x0,'rows':[]};}function _0x12a1ad(){var _0x5b62ac=_0x5e69e2;return _0x15b95a[_0x5b62ac('0x134c')]['get']({'fields':_0x5b62ac('0x1a19')})[_0x5b62ac('0xe59')][_0x5b62ac('0xe19')](function(_0xe98f29){var _0x53d883=_0x5b62ac;_0x421106[_0x53d883('0x10e0')]=_0xe98f29;})[_0x5b62ac('0x223b')](function(_0x4cafb4){var _0x54c011=_0x5b62ac;console[_0x54c011('0x8c8')](_0x4cafb4);});}function _0x1f120a(){var _0x1951dd=_0x5e69e2;_0x421106[_0x1951dd('0x9c8')]=_0x15b95a[_0x1951dd('0x223')][_0x1951dd('0x1654')](_0x421106[_0x1951dd('0xa16')],_0x271173)['$promise'];}function _0xbe324a(_0xfa9263){var _0xe63caf=_0x5e69e2;_0x32d445()['remove'](_0x421106['whatsappAccountApps'][_0xe63caf('0x16a7')],{'id':_0xfa9263['id']}),_0x5b20fe(),_0x2ec232[_0xe63caf('0x425')]({'title':_0xe63caf('0x13bf'),'msg':_0xfa9263[_0xe63caf('0xf2b')]?_0xfa9263[_0xe63caf('0xf2b')]+'\x20has\x20been\x20deleted!':''});}function _0xfd744d(_0xe881d7){var _0x5adbcc=_0x5e69e2,_0x25e330=_0x4014f0['confirm']()[_0x5adbcc('0x13e4')](_0x5adbcc('0x6de'))[_0x5adbcc('0x221c')](_0x5adbcc('0xab2')+_0x421106[_0x5adbcc('0x215d')][_0x5adbcc('0x25ae')]+_0x5adbcc('0x5bc')+_0x5adbcc('0x21bd'))[_0x5adbcc('0x4d1')](_0x5adbcc('0x17bf'))['targetEvent'](_0xe881d7)['ok']('OK')[_0x5adbcc('0x2c1')](_0x5adbcc('0x17'));_0x4014f0[_0x5adbcc('0x26b2')](_0x25e330)[_0x5adbcc('0xe19')](function(){var _0x4b8a77=_0x5adbcc;_0x421106['selectedWhatsappAccountApps'][_0x4b8a77('0x1d7e')](function(_0x57d3a8){var _0x5bd5a2=_0x4b8a77;_0x32d445()[_0x5bd5a2('0xa8b')](_0x421106['whatsappAccountApps'][_0x5bd5a2('0x16a7')],{'id':_0x57d3a8['id']});}),_0x421106[_0x4b8a77('0x215d')]=[],_0x5b20fe();});}}const _0x5df281=_0x34cf03;_0x401221[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x223'),_0xb635d2('0x14cf'),_0xb635d2('0x24e1'),_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x401221(_0x482c46,_0x5b21c6,_0x30f89f,_0x1d6ca9,_0x3c1eb1,_0x154e81,_0x1c2df8,_0x1a2c24,_0x1e0678,_0x4f0451){var _0x5d976f=_0xb635d2,_0x4a6d20=this;_0x4a6d20[_0x5d976f('0x15a5')]=_0x1e0678[_0x5d976f('0x1ef8')](),_0x4a6d20[_0x5d976f('0x223')]=_0x3c1eb1,_0x4a6d20[_0x5d976f('0xb3d')]=_0x4f0451,_0x4a6d20['realtime']=_0x1c2df8,_0x4a6d20[_0x5d976f('0xe4b')]=[],_0x4a6d20[_0x5d976f('0x1884')]=[],_0x4a6d20[_0x5d976f('0x2273')]=[],_0x4a6d20[_0x5d976f('0x286c')]=[],_0x4a6d20['startingSelectedItems']=[],_0x4a6d20['pendingChanges']=![],_0x4a6d20[_0x5d976f('0x888')]=_0x564989,_0x4a6d20[_0x5d976f('0x4b8')]=_0x224eca,_0x4a6d20[_0x5d976f('0x2584')]=_0x414f20,_0x4a6d20[_0x5d976f('0xc00')]={'readOnly':!_0x4a6d20['crudPermissions'][_0x5d976f('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5d976f('0x2623'),'line1':_0x5d976f('0xe11'),'line2':[_0x5d976f('0x2623'),_0x5d976f('0x1b66')],'line3':'','labelAll':_0x1a2c24[_0x5d976f('0x2159')]('WHATSAPP.ALL_AGENTS'),'labelSelected':_0x1a2c24[_0x5d976f('0x2159')]('WHATSAPP.SELECTED_AGENTS'),'transferCallback':function _0x157743(){var _0x2325b3=_0x5d976f,_0x2102c3=_0x32d445()[_0x2325b3('0x118')](_0x4a6d20['startingSelectedItems'],_0x4a6d20[_0x2325b3('0x2273')],'id');_0x4a6d20[_0x2325b3('0x16e7')]=_0x32d445()[_0x2325b3('0x14b4')](_0x2102c3)?![]:!![];}};function _0x564989(){var _0x5a4a96=_0x5d976f;return _0x1e0678[_0x5a4a96('0x179e')]('admin')?_0x2d7011()['catch'](function(_0x93ddb1){var _0x34814c=_0x5a4a96;_0x30f89f['error']({'title':_0x93ddb1[_0x34814c('0x2833')]?_0x34814c('0x27f2')+_0x93ddb1['status']+_0x34814c('0x1b7c')+_0x93ddb1[_0x34814c('0x1fd7')]:'SYSTEM:GET_AGENTS','msg':_0x93ddb1[_0x34814c('0x2833')]?JSON[_0x34814c('0x3ad')](_0x93ddb1[_0x34814c('0x11d0')]):_0x93ddb1[_0x34814c('0x94f')]()});}):_0x112ec7()[_0x5a4a96('0xe19')](function(_0x467bd6){var _0xd8d1fa=_0x5a4a96;return _0x4a6d20[_0xd8d1fa('0x1e59')]=_0x467bd6,_0x2d7011();})[_0x5a4a96('0x223b')](function(_0x46d891){var _0x3552db=_0x5a4a96;_0x30f89f[_0x3552db('0x8c8')]({'title':_0x46d891[_0x3552db('0x2833')]?_0x3552db('0x27f2')+_0x46d891['status']+_0x3552db('0x1b7c')+_0x46d891[_0x3552db('0x1fd7')]:_0x3552db('0x1e86'),'msg':_0x46d891['status']?JSON[_0x3552db('0x3ad')](_0x46d891[_0x3552db('0x11d0')]):_0x46d891[_0x3552db('0x94f')]()});});}function _0x112ec7(){return _0x5b21c6(function(_0x4fa486,_0x4d0295){var _0x2bc0b9=a0_0x5325;_0x1d6ca9[_0x2bc0b9('0xb59')][_0x2bc0b9('0x22d5')]({'userProfileId':_0x4a6d20['currentUser'][_0x2bc0b9('0x1d04')],'name':_0x2bc0b9('0xd61')})[_0x2bc0b9('0xe59')][_0x2bc0b9('0xe19')](function(_0x60464d){var _0x353768=_0x2bc0b9,_0x2c29e6=_0x60464d&&_0x60464d[_0x353768('0x16a7')]?_0x60464d[_0x353768('0x16a7')][0x0]:null;_0x4fa486(_0x2c29e6);})['catch'](function(_0x3938af){_0x4d0295(_0x3938af);});});}function _0x2d7011(){return _0x5b21c6(function(_0x5ed4b1,_0xc41d59){var _0x363544=a0_0x5325;return _0x43646b()[_0x363544('0xe19')](function(_0x1ecaf4){var _0x5a5ab9=_0x363544;return _0x4a6d20[_0x5a5ab9('0xe4b')]=_0x1ecaf4[_0x5a5ab9('0x16a7')]?_0x1ecaf4[_0x5a5ab9('0x16a7')]:[],_0x1e0678[_0x5a5ab9('0x179e')]('admin')?_0x1ecaf4:_0x4a6d20[_0x5a5ab9('0x1e59')]?_0x4a6d20[_0x5a5ab9('0x1e59')][_0x5a5ab9('0x11fd')]?_0x1ecaf4:_0x3d2076():null;})['then'](function(_0x244f7b){var _0x2d1652=_0x363544,_0x226d5c=_0x244f7b&&_0x244f7b[_0x2d1652('0x16a7')]?_0x244f7b['rows']:[];return _0x4a6d20[_0x2d1652('0x1884')]=_0x32d445()[_0x2d1652('0x65a')](_0x226d5c,function(_0x1dc535){var _0x296418=_0x2d1652;return _0x32d445()[_0x296418('0xf15')](_0x4a6d20[_0x296418('0xe4b')],{'id':_0x1e0678['hasRole'](_0x296418('0xd14'))||_0x4a6d20[_0x296418('0x1e59')][_0x296418('0x11fd')]?_0x1dc535['id']:_0x1dc535[_0x296418('0x1104')]});}),_0x4a6d20[_0x2d1652('0x286c')]=angular['copy'](_0x4a6d20['allowedItems']),_0x4a6d20['items'][_0x2d1652('0x1d7e')](function(_0x1b0dab){var _0x22f31a=_0x2d1652,_0xb45164=_0x32d445()['find'](_0x4a6d20[_0x22f31a('0x1884')],{'id':_0x1b0dab['id']});_0x1e0678['hasRole'](_0x22f31a('0xd14'))?_0x1b0dab[_0x22f31a('0x1768')]=!![]:_0x1b0dab['isValid']=typeof _0xb45164!=='undefined'?!![]:![];}),_0x4d2254();})[_0x363544('0xe19')](function(_0x55b5df){var _0x73cf38=_0x363544,_0x38ea38=_0x55b5df&&_0x55b5df[_0x73cf38('0x16a7')]?_0x55b5df[_0x73cf38('0x16a7')]:[];_0x4a6d20[_0x73cf38('0x2273')]=_0x32d445()['map'](_0x38ea38,function(_0xcca453){var _0x4a749f=_0x73cf38,_0x26b229=_0x32d445()[_0x4a749f('0xf15')](_0x4a6d20[_0x4a749f('0xe4b')],{'id':_0xcca453['id']});return _0x26b229[_0x4a749f('0x21e3')]=_0xcca453[_0x4a749f('0xf71')]?_0x4a749f('0x815')+_0xcca453[_0x4a749f('0xf71')][_0x4a749f('0x21e3')]:'',_0x26b229[_0x4a749f('0x1b66')]=typeof _0xcca453[_0x4a749f('0x1b66')]!=='undefined'?'<'+_0xcca453[_0x4a749f('0x1b66')]+'>':'',_0x26b229;}),_0x4a6d20[_0x73cf38('0xf79')]=angular[_0x73cf38('0x89')](_0x4a6d20[_0x73cf38('0x2273')]),_0x4a6d20[_0x73cf38('0xc00')][_0x73cf38('0x2273')]=_0x4a6d20[_0x73cf38('0x2273')],_0x4a6d20[_0x73cf38('0xc00')][_0x73cf38('0xe4b')]=_0x32d445()['differenceBy'](_0x4a6d20[_0x73cf38('0x1884')],_0x4a6d20[_0x73cf38('0xc00')]['selectedItems'],'id'),_0x5ed4b1();})[_0x363544('0x223b')](function(_0x5229fc){_0xc41d59(_0x5229fc);});});}function _0x3d2076(){return _0x5b21c6(function(_0x416f1f,_0x2dccfb){var _0x6aabaf=a0_0x5325;return _0x1d6ca9[_0x6aabaf('0xd49')][_0x6aabaf('0x22d5')]({'sectionId':_0x4a6d20[_0x6aabaf('0x1e59')]['id'],'nolimit':!![]})['$promise'][_0x6aabaf('0xe19')](function(_0x43a95a){_0x416f1f(_0x43a95a);})[_0x6aabaf('0x223b')](function(_0x295803){_0x2dccfb(_0x295803);});});}function _0x4d2254(){return _0x5b21c6(function(_0x5e06d2,_0x51a14e){var _0x14559a=a0_0x5325;return _0x1d6ca9['whatsappAccount']['getAgents']({'id':_0x4a6d20[_0x14559a('0x223')]['id'],'fields':_0x14559a('0x244f'),'nolimit':!![],'role':'agent'})[_0x14559a('0xe59')][_0x14559a('0xe19')](function(_0x325ea6){_0x5e06d2(_0x325ea6);})[_0x14559a('0x223b')](function(_0x4c2c8b){_0x51a14e(_0x4c2c8b);});});}function _0x43646b(){return _0x5b21c6(function(_0x277dc3,_0x22fa38){var _0x5ac4b1=a0_0x5325;return _0x1d6ca9[_0x5ac4b1('0x10c6')][_0x5ac4b1('0x22d5')]({'fields':_0x5ac4b1('0x244f'),'nolimit':!![],'role':'agent'})['$promise'][_0x5ac4b1('0xe19')](function(_0x2b6dbe){_0x277dc3(_0x2b6dbe);})[_0x5ac4b1('0x223b')](function(_0x1e1c9f){_0x22fa38(_0x1e1c9f);});});}function _0x616439(_0x51c74d){return _0x5b21c6(function(_0x35a385,_0x4fe861){var _0x2ea706=a0_0x5325;_0x32d445()['isEmpty'](_0x51c74d)?_0x35a385():_0x1d6ca9[_0x2ea706('0x223')][_0x2ea706('0x2271')]({'id':_0x4a6d20['whatsappAccount']['id'],'ids':_0x32d445()['map'](_0x51c74d,'id')})[_0x2ea706('0xe59')][_0x2ea706('0xe19')](function(){_0x35a385();})[_0x2ea706('0x223b')](function(_0x1fccad){_0x4fe861(_0x1fccad);});});}function _0x4c38f(_0x2dec8e){return _0x5b21c6(function(_0x2f23b6,_0x50a212){var _0xce1da1=a0_0x5325;_0x32d445()[_0xce1da1('0x14b4')](_0x2dec8e)?_0x2f23b6():_0x1d6ca9['whatsappAccount'][_0xce1da1('0x6aa')]({'id':_0x4a6d20[_0xce1da1('0x223')]['id'],'ids':_0x32d445()[_0xce1da1('0x65a')](_0x2dec8e,'id')})[_0xce1da1('0xe59')][_0xce1da1('0xe19')](function(){_0x2f23b6();})['catch'](function(_0x3b7657){_0x50a212(_0x3b7657);});});}function _0x224eca(){var _0x5501d6=_0x5d976f,_0x46c667=_0x32d445()['differenceBy'](_0x4a6d20[_0x5501d6('0xf79')],_0x4a6d20[_0x5501d6('0x2273')],'id'),_0x5bae5a=_0x32d445()[_0x5501d6('0x501')](_0x4a6d20[_0x5501d6('0x2273')],_0x4a6d20[_0x5501d6('0xf79')],'id');return _0x4c38f(_0x46c667)['then'](function(){return _0x616439(_0x5bae5a);})['then'](function(){var _0x2e9893=_0x5501d6;_0x4a6d20[_0x2e9893('0x16e7')]=![],_0x4a6d20[_0x2e9893('0x286c')]=angular[_0x2e9893('0x89')](_0x4a6d20[_0x2e9893('0x1884')]),_0x4a6d20[_0x2e9893('0xf79')]=angular[_0x2e9893('0x89')](_0x4a6d20[_0x2e9893('0x2273')]),_0x30f89f['success']({'title':_0x2e9893('0x1dca'),'msg':_0x2e9893('0x25d')});})[_0x5501d6('0x223b')](function(_0x9520a5){var _0x47d1f7=_0x5501d6;_0x30f89f[_0x47d1f7('0x8c8')]({'title':_0x9520a5[_0x47d1f7('0x2833')]?_0x47d1f7('0x27f2')+_0x9520a5[_0x47d1f7('0x2833')]+'\x20-\x20'+_0x9520a5[_0x47d1f7('0x1fd7')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x9520a5['status']?JSON[_0x47d1f7('0x3ad')](_0x9520a5['data']):_0x9520a5['toString']()});});}function _0x414f20(){_0x482c46['hide']();}}const _0x507300=_0x401221;_0x55dfe5[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xd2'),_0xb635d2('0x223'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x55dfe5(_0x41f6f5,_0x4343a4,_0x44fc92,_0x10afce,_0x380c0b,_0x36d3d2,_0x4447a7,_0x60f936){var _0xa4d9d5=_0xb635d2,_0xe4c94a=this;_0xe4c94a[_0xa4d9d5('0x15a5')]=_0x4447a7[_0xa4d9d5('0x1ef8')](),_0xe4c94a[_0xa4d9d5('0xcd2')]=[],_0xe4c94a[_0xa4d9d5('0x13e4')]=_0xa4d9d5('0x236b')+(_0x10afce[_0xa4d9d5('0xf44')]||_0x10afce[_0xa4d9d5('0xf2b')])[_0xa4d9d5('0x25f7')](),_0xe4c94a[_0xa4d9d5('0x108')]=angular[_0xa4d9d5('0x89')](_0x10afce),_0xe4c94a[_0xa4d9d5('0xb3d')]=_0x60f936,_0xe4c94a[_0xa4d9d5('0x1ccb')]={};if(_0xe4c94a['agent'][_0xa4d9d5('0x26d2')])switch(_0xe4c94a[_0xa4d9d5('0x108')]['appType']?_0xe4c94a[_0xa4d9d5('0x108')]['appType'][_0xa4d9d5('0x20dd')]():_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0xf2b')][_0xa4d9d5('0x20dd')]()){case _0xa4d9d5('0x261d'):break;case _0xa4d9d5('0xc11'):{var _0x6e4616=_0xe4c94a['agent'][_0xa4d9d5('0x26d2')][_0xa4d9d5('0x1745')](',');_0xe4c94a[_0xa4d9d5('0x108')]['key']=_0x6e4616[0x0],_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x174b')]=_0x6e4616[0x1],_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0xfcc')]=_0x6e4616[_0xa4d9d5('0xa19')](0x2,_0x6e4616[_0xa4d9d5('0x25ae')])[_0xa4d9d5('0x1537')](',');}break;case _0xa4d9d5('0x1321'):{var _0x4d6c56=_0xe4c94a['agent'][_0xa4d9d5('0x26d2')]['split'](',');_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x22be')]=_0x4d6c56[0x0],_0xe4c94a['agent'][_0xa4d9d5('0x700')]=_0x4d6c56[0x1],_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x206a')]=_0x4d6c56[0x2],_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x191a')]=_0x4d6c56[0x3],_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0xfcc')]=_0x4d6c56[_0xa4d9d5('0xa19')](0x4,_0x4d6c56['length'])[_0xa4d9d5('0x1537')](',');}break;case _0xa4d9d5('0x400'):{var _0x567792=_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x26d2')]['split'](',');_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x1ec4')]=isNaN(_0x567792[0x0])?_0x567792[0x0]:parseInt(_0x567792[0x0],0xa),_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x1bc6')]=_0x567792[_0xa4d9d5('0xa19')](0x1,_0x567792['length'])['join'](',');}break;case _0xa4d9d5('0x27e8'):_0xe4c94a['agent'][_0xa4d9d5('0x1bc6')]=_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x26d2')];break;case'set':_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x2623')]=_0xe4c94a['agent'][_0xa4d9d5('0x26d2')][_0xa4d9d5('0x1745')]('=')[0x0],_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x2')]=_0xe4c94a[_0xa4d9d5('0x108')]['appdata'][_0xa4d9d5('0x1745')]('=')[0x1];break;case _0xa4d9d5('0x401'):_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x38b')]=_0xe4c94a[_0xa4d9d5('0x108')]['appdata'];break;default:{var _0x55d5ac=_0xe4c94a[_0xa4d9d5('0x108')]['appdata'][_0xa4d9d5('0x1745')](',');_0xe4c94a['agent'][_0xa4d9d5('0x108')]=_0x32d445()[_0xa4d9d5('0x14b4')](_0x55d5ac[0x0])?_0x55d5ac[0x0]:isNaN(_0x55d5ac[0x0])?_0x55d5ac[0x0]:parseInt(_0x55d5ac[0x0],0xa),_0xe4c94a['agent'][_0xa4d9d5('0x2058')]=_0x32d445()['isEmpty'](_0x55d5ac[0x1])?_0x55d5ac[0x1]:isNaN(_0x55d5ac[0x1])?_0x55d5ac[0x1]:parseInt(_0x55d5ac[0x1],0xa);}break;}else _0xe4c94a[_0xa4d9d5('0x108')]['timeout']=0x1e;_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x62e')]&&_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x62e')]['toLowerCase']()===_0xa4d9d5('0x1fdf')&&_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0xf44')][_0xa4d9d5('0x20dd')]()===_0xa4d9d5('0x1d1b')&&(_0xe4c94a['agent']['prefix']=_0xe4c94a[_0xa4d9d5('0x108')]['phone']?_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0x1ef5')][_0xa4d9d5('0x1745')]('$')[0x0]:undefined,_0xe4c94a[_0xa4d9d5('0x108')]['callerId']=_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0xfca')]?_0xa4d9d5('0xd41')+_0xe4c94a[_0xa4d9d5('0x108')][_0xa4d9d5('0xfca')]:undefined);_0xe4c94a['saveWhatsappAccountApp']=_0x25867b,_0xe4c94a[_0xa4d9d5('0x2584')]=_0x27ee07,_0x4447a7[_0xa4d9d5('0x179e')]('admin')?_0x36d3d2[_0xa4d9d5('0x10c6')][_0xa4d9d5('0x22d5')]({'fields':'id,name','sort':'name','nolimit':_0xa4d9d5('0x2206'),'role':_0xa4d9d5('0x108')})[_0xa4d9d5('0xe59')]['then'](function(_0x4d9c27){var _0x1dcece=_0xa4d9d5;_0xe4c94a[_0x1dcece('0x29b')]=_0x4d9c27[_0x1dcece('0x16a7')]||[];})[_0xa4d9d5('0x223b')](function(_0x4ed9fb){var _0x50f951=_0xa4d9d5;_0x44fc92[_0x50f951('0x8c8')]({'title':_0x4ed9fb[_0x50f951('0x2833')]?_0x50f951('0x27f2')+_0x4ed9fb[_0x50f951('0x2833')]+_0x50f951('0x1b7c')+_0x4ed9fb[_0x50f951('0x1fd7')]:_0x50f951('0x1e86'),'msg':_0x4ed9fb[_0x50f951('0x11d0')]?JSON[_0x50f951('0x3ad')](_0x4ed9fb[_0x50f951('0x11d0')]):_0x4ed9fb[_0x50f951('0x94f')]()});}):_0x36d3d2[_0xa4d9d5('0x10c6')][_0xa4d9d5('0x22d5')]({'fields':'id,name','sort':_0xa4d9d5('0x2623'),'nolimit':_0xa4d9d5('0x2206'),'role':_0xa4d9d5('0x108')})[_0xa4d9d5('0xe59')]['then'](function(_0x199a65){var _0x5a6cd1=_0xa4d9d5;_0xe4c94a[_0x5a6cd1('0x29b')]=_0x199a65[_0x5a6cd1('0x16a7')]||[];})[_0xa4d9d5('0xe19')](function(){var _0x3f812a=_0xa4d9d5;return _0x36d3d2[_0x3f812a('0xb59')][_0x3f812a('0x22d5')]({'userProfileId':_0xe4c94a[_0x3f812a('0x15a5')][_0x3f812a('0x1d04')],'sectionId':0xca})[_0x3f812a('0xe59')];})[_0xa4d9d5('0xe19')](function(_0x3d1a50){var _0x1c94fe=_0xa4d9d5,_0x3915aa=_0x3d1a50&&_0x3d1a50[_0x1c94fe('0x16a7')]?_0x3d1a50[_0x1c94fe('0x16a7')][0x0]:null;if(!_0x3915aa){var _0x9114d=[],_0x224362=null;_0xe4c94a[_0x1c94fe('0x108')]&&(_0x224362=_0x32d445()[_0x1c94fe('0xf15')](_0xe4c94a[_0x1c94fe('0x29b')],{'name':_0xe4c94a[_0x1c94fe('0x108')][_0x1c94fe('0x108')]}));for(var _0x3dd414=0x0;_0x3dd414<_0xe4c94a[_0x1c94fe('0x29b')][_0x1c94fe('0x25ae')];_0x3dd414++){_0x224362&&_0xe4c94a['agents'][_0x3dd414]['id']===_0x224362['id']&&(_0xe4c94a[_0x1c94fe('0x29b')][_0x3dd414][_0x1c94fe('0x1e9d')]=![],_0x9114d[_0x1c94fe('0xb76')](_0xe4c94a[_0x1c94fe('0x29b')][_0x3dd414]));}_0xe4c94a['agents']=_0x9114d;}else{if(!_0x3915aa[_0x1c94fe('0x11fd')])return _0x36d3d2['userProfileResource'][_0x1c94fe('0x22d5')]({'sectionId':_0x3915aa['id']})[_0x1c94fe('0xe59')]['then'](function(_0x116902){var _0xf7508=_0x1c94fe,_0x3483ec=_0x32d445()[_0xf7508('0x65a')](_0x116902['rows'],function(_0x586bca){var _0x1f4eba=_0xf7508;return _0x32d445()[_0x1f4eba('0xf15')](_0xe4c94a[_0x1f4eba('0x29b')],{'id':_0x586bca[_0x1f4eba('0x1104')]});}),_0x5d6daa=null;_0xe4c94a[_0xf7508('0x108')]&&(_0x5d6daa=_0x32d445()[_0xf7508('0xf15')](_0xe4c94a[_0xf7508('0x29b')],{'name':_0xe4c94a[_0xf7508('0x108')][_0xf7508('0x108')]}));if(_0x5d6daa&&!_0x32d445()[_0xf7508('0x201a')](_0x3483ec,['id',_0x5d6daa['id']])){var _0xbf51a2=_0x32d445()[_0xf7508('0xf15')](_0xe4c94a['agents'],{'id':_0x5d6daa['id']});_0xbf51a2[_0xf7508('0x1e9d')]=![],_0x3483ec[_0xf7508('0xb76')](_0xbf51a2);}_0xe4c94a[_0xf7508('0x29b')]=_0x3483ec;});}})[_0xa4d9d5('0x223b')](function(_0x2fb28d){var _0x2a8bb4=_0xa4d9d5;_0x44fc92[_0x2a8bb4('0x8c8')]({'title':_0x2fb28d[_0x2a8bb4('0x2833')]?_0x2a8bb4('0x27f2')+_0x2fb28d[_0x2a8bb4('0x2833')]+'\x20-\x20'+_0x2fb28d[_0x2a8bb4('0x1fd7')]:_0x2a8bb4('0xfe4'),'msg':_0x2fb28d[_0x2a8bb4('0x11d0')]?JSON[_0x2a8bb4('0x3ad')](_0x2fb28d[_0x2a8bb4('0x11d0')]):_0x2fb28d[_0x2a8bb4('0x94f')]()});});function _0x25867b(){var _0x1fd72b=_0xa4d9d5;_0xe4c94a[_0x1fd72b('0xcd2')]=[];var _0x460626=[];_0xe4c94a['agent'][_0x1fd72b('0x62e')]&&_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x62e')]['toLowerCase']()===_0x1fd72b('0x1fdf')&&_0xe4c94a['agent'][_0x1fd72b('0xf44')]==='outboundDial'&&(_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x1ef5')]=_0x380c0b[_0x1fd72b('0x27f6')]?(_0xe4c94a[_0x1fd72b('0x108')]['prefix']||'')+_0x1fd72b('0x5d8')+_0x380c0b['cutdigits']+'}':(_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x2580')]||'')+_0x1fd72b('0x16b5'),_0x380c0b[_0x1fd72b('0x150c')]!==_0x1fd72b('0x23ca')?_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x2116')][_0x1fd72b('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0xe4c94a['agent']['options']+='U(xcally-mixmonitor-context)'):_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x2116')]=_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x2116')]['replace'](_0x1fd72b('0x767'),''));var _0x478dd7=_0x32d445()[_0x1fd72b('0xf15')](_0xe4c94a[_0x1fd72b('0x29b')],{'name':_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x108')]});_0x478dd7&&(_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x43d')]=_0x478dd7['id']);if(_0xe4c94a[_0x1fd72b('0x108')]['appType']&&_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0xf44')]===_0x1fd72b('0x261d')){}else switch((_0xe4c94a['agent']['app']||_0xe4c94a[_0x1fd72b('0x108')]['appType'])[_0x1fd72b('0x20dd')]()){case'set':_0xe4c94a['agent'][_0x1fd72b('0x26d2')]=_0xe4c94a[_0x1fd72b('0x108')]['name']+'='+_0xe4c94a[_0x1fd72b('0x108')]['value'];break;case _0x1fd72b('0x261d'):break;default:_0x460626[0x0]=_0xe4c94a[_0x1fd72b('0x108')][_0x1fd72b('0x108')],_0x460626[0x1]=_0xe4c94a['agent']['timeout'],_0xe4c94a[_0x1fd72b('0x108')]['appdata']=_0x460626[_0x1fd72b('0x1537')](',');}_0x27ee07(_0xe4c94a['agent']);}function _0x27ee07(_0x4fbcc4){var _0x32c52b=_0xa4d9d5;_0x41f6f5[_0x32c52b('0x11ed')](_0x4fbcc4);}}const _0x5f189e=_0x55dfe5;_0x3583d8[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty','whatsappAccountApp',_0xb635d2('0x223'),'api','Auth','crudPermissions'];function _0x3583d8(_0x4eea3a,_0x1e146c,_0x430d14,_0x5b4a37,_0x3dc8f7,_0x13ab03,_0x4bd8f9,_0x47889e){var _0x2ee01d=_0xb635d2,_0x42a0d2=this;_0x42a0d2['currentUser']=_0x4bd8f9['getCurrentUser'](),_0x42a0d2[_0x2ee01d('0xcd2')]=[],_0x42a0d2[_0x2ee01d('0x13e4')]='WHATSAPP.EDIT_'+(_0x5b4a37[_0x2ee01d('0xf44')]||_0x5b4a37[_0x2ee01d('0xf2b')])[_0x2ee01d('0x25f7')](),_0x42a0d2[_0x2ee01d('0x1321')]=angular[_0x2ee01d('0x89')](_0x5b4a37),_0x42a0d2[_0x2ee01d('0xb3d')]=_0x47889e,_0x42a0d2[_0x2ee01d('0x1ccb')]={};if(_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x26d2')])switch(_0x42a0d2[_0x2ee01d('0x1321')]['appType']?_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0xf44')][_0x2ee01d('0x20dd')]():_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0xf2b')][_0x2ee01d('0x20dd')]()){case'custom':break;case'dialogflow':{var _0x4bfa69=_0x42a0d2[_0x2ee01d('0x1321')]['appdata'][_0x2ee01d('0x1745')](',');_0x42a0d2['amazonlex'][_0x2ee01d('0x6e4')]=_0x4bfa69[0x0],_0x42a0d2[_0x2ee01d('0x1321')]['language']=_0x4bfa69[0x1],_0x42a0d2['amazonlex']['welcomemessage']=_0x4bfa69['slice'](0x2,_0x4bfa69[_0x2ee01d('0x25ae')])[_0x2ee01d('0x1537')](',');}break;case _0x2ee01d('0x1321'):{var _0x550f92=_0x42a0d2['amazonlex'][_0x2ee01d('0x26d2')][_0x2ee01d('0x1745')](',');_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x22be')]=_0x550f92[0x0],_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x700')]=_0x550f92[0x1],_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x206a')]=_0x550f92[0x2],_0x42a0d2['amazonlex'][_0x2ee01d('0x191a')]=_0x550f92[0x3],_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0xfcc')]=_0x550f92[_0x2ee01d('0xa19')](0x4,_0x550f92[_0x2ee01d('0x25ae')])[_0x2ee01d('0x1537')](',');}break;case'autoreply':{var _0x470803=_0x42a0d2['amazonlex']['appdata']['split'](',');_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x1ec4')]=isNaN(_0x470803[0x0])?_0x470803[0x0]:parseInt(_0x470803[0x0],0xa),_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x1bc6')]=_0x470803[_0x2ee01d('0xa19')](0x1,_0x470803[_0x2ee01d('0x25ae')])[_0x2ee01d('0x1537')](',');}break;case _0x2ee01d('0x27e8'):_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x1bc6')]=_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x26d2')];break;case'set':_0x42a0d2[_0x2ee01d('0x1321')]['name']=_0x42a0d2['amazonlex'][_0x2ee01d('0x26d2')]['split']('=')[0x0],_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x2')]=_0x42a0d2['amazonlex'][_0x2ee01d('0x26d2')][_0x2ee01d('0x1745')]('=')[0x1];break;case _0x2ee01d('0x401'):_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x38b')]=_0x42a0d2[_0x2ee01d('0x1321')]['appdata'];break;default:{var _0x44eeed=_0x42a0d2['amazonlex'][_0x2ee01d('0x26d2')][_0x2ee01d('0x1745')](',');_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x22be')]=_0x32d445()[_0x2ee01d('0x14b4')](_0x44eeed[0x0])?_0x44eeed[0x0]:isNaN(_0x44eeed[0x0])?_0x44eeed[0x0]:parseInt(_0x44eeed[0x0],0xa),_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x700')]=_0x32d445()['isEmpty'](_0x44eeed[0x1])?_0x44eeed[0x1]:isNaN(_0x44eeed[0x1])?_0x44eeed[0x1]:parseInt(_0x44eeed[0x1],0xa),_0x42a0d2['amazonlex'][_0x2ee01d('0x206a')]=_0x32d445()['isEmpty'](_0x44eeed[0x2])?_0x44eeed[0x2]:isNaN(_0x44eeed[0x2])?_0x44eeed[0x2]:parseInt(_0x44eeed[0x2],0xa),_0x42a0d2[_0x2ee01d('0x1321')]['botname']=_0x32d445()[_0x2ee01d('0x14b4')](_0x44eeed[0x3])?_0x44eeed[0x3]:isNaN(_0x44eeed[0x3])?_0x44eeed[0x3]:parseInt(_0x44eeed[0x3],0xa),_0x42a0d2[_0x2ee01d('0x1321')]['welcomemessage']=_0x32d445()[_0x2ee01d('0x14b4')](_0x44eeed[0x4])?_0x44eeed[0x4]:isNaN(_0x44eeed[0x4])?_0x44eeed[0x4]:parseInt(_0x44eeed[0x4],0xa);}break;}else _0x42a0d2[_0x2ee01d('0x1321')]['lexregion']='us-east-1';_0x42a0d2['amazonlex'][_0x2ee01d('0x62e')]&&_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0x62e')][_0x2ee01d('0x20dd')]()===_0x2ee01d('0x1fdf')&&_0x42a0d2['amazonlex'][_0x2ee01d('0xf44')]['toLowerCase']()===_0x2ee01d('0x1d1b')&&(_0x42a0d2['amazonlex']['prefix']=_0x42a0d2[_0x2ee01d('0x1321')]['phone']?_0x42a0d2['amazonlex']['phone'][_0x2ee01d('0x1745')]('$')[0x0]:undefined,_0x42a0d2[_0x2ee01d('0x1321')]['callerId']=_0x42a0d2[_0x2ee01d('0x1321')][_0x2ee01d('0xfca')]?_0x2ee01d('0xd41')+_0x42a0d2[_0x2ee01d('0x1321')]['callerID']:undefined);_0x42a0d2['saveWhatsappAccountApp']=_0x5fc508,_0x42a0d2['closeDialog']=_0x384450;function _0x5fc508(){var _0x47c7e8=_0x2ee01d;_0x42a0d2[_0x47c7e8('0xcd2')]=[];var _0x583f97=[];_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x62e')]&&_0x42a0d2['amazonlex']['type'][_0x47c7e8('0x20dd')]()===_0x47c7e8('0x1fdf')&&_0x42a0d2['amazonlex'][_0x47c7e8('0xf44')]==='outboundDial'&&(_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x1ef5')]=_0x3dc8f7[_0x47c7e8('0x27f6')]?(_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x2580')]||'')+_0x47c7e8('0x5d8')+_0x3dc8f7['cutdigits']+'}':(_0x42a0d2[_0x47c7e8('0x1321')]['prefix']||'')+_0x47c7e8('0x16b5'),_0x3dc8f7[_0x47c7e8('0x150c')]!=='none'?_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x2116')][_0x47c7e8('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x42a0d2['amazonlex'][_0x47c7e8('0x2116')]+='U(xcally-mixmonitor-context)'):_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x2116')]=_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x2116')][_0x47c7e8('0x1b42')](_0x47c7e8('0x767'),''));if(_0x42a0d2[_0x47c7e8('0x1321')]['appType']&&_0x42a0d2['amazonlex']['appType']==='custom'){}else switch((_0x42a0d2[_0x47c7e8('0x1321')]['app']||_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0xf44')])['toLowerCase']()){case'set':_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x26d2')]=_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x2623')]+'='+_0x42a0d2[_0x47c7e8('0x1321')]['value'];break;case _0x47c7e8('0x261d'):break;default:_0x583f97[0x0]=_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x22be')],_0x583f97[0x1]=_0x42a0d2[_0x47c7e8('0x1321')]['secretaccesskey'],_0x583f97[0x2]=_0x42a0d2['amazonlex'][_0x47c7e8('0x206a')],_0x583f97[0x3]=_0x42a0d2[_0x47c7e8('0x1321')][_0x47c7e8('0x191a')],_0x583f97[0x4]=_0x42a0d2[_0x47c7e8('0x1321')]['welcomemessage'],_0x42a0d2['amazonlex'][_0x47c7e8('0x26d2')]=_0x583f97[_0x47c7e8('0x1537')](',');}_0x384450(_0x42a0d2[_0x47c7e8('0x1321')]);}function _0x384450(_0x22f3ae){var _0x5d5abd=_0x2ee01d;_0x4eea3a[_0x5d5abd('0x11ed')](_0x22f3ae);}}const _0xf5b119=_0x3583d8;_0x3e1d47['$inject']=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xd2'),'whatsappAccount','api',_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x3e1d47(_0x1df05a,_0x4e940d,_0x2ad447,_0xecfe82,_0x4bf85e,_0x4b790f,_0x20c9be,_0x45770a){var _0x208913=_0xb635d2,_0x30dd5b=this;_0x30dd5b[_0x208913('0x15a5')]=_0x20c9be[_0x208913('0x1ef8')](),_0x30dd5b[_0x208913('0xcd2')]=[],_0x30dd5b['title']=_0x208913('0x236b')+(_0xecfe82[_0x208913('0xf44')]||_0xecfe82['app'])[_0x208913('0x25f7')](),_0x30dd5b[_0x208913('0x400')]=angular[_0x208913('0x89')](_0xecfe82),_0x30dd5b[_0x208913('0xb3d')]=_0x45770a,_0x30dd5b['hasModulePermissions']={};if(_0x30dd5b[_0x208913('0x400')][_0x208913('0x26d2')])switch(_0x30dd5b[_0x208913('0x400')][_0x208913('0xf44')]?_0x30dd5b['autoreply'][_0x208913('0xf44')][_0x208913('0x20dd')]():_0x30dd5b[_0x208913('0x400')][_0x208913('0xf2b')][_0x208913('0x20dd')]()){case _0x208913('0x261d'):break;case _0x208913('0xc11'):{var _0x524baf=_0x30dd5b[_0x208913('0x400')][_0x208913('0x26d2')][_0x208913('0x1745')](',');_0x30dd5b['autoreply'][_0x208913('0x6e4')]=_0x524baf[0x0],_0x30dd5b['autoreply'][_0x208913('0x174b')]=_0x524baf[0x1],_0x30dd5b[_0x208913('0x400')][_0x208913('0xfcc')]=_0x524baf[_0x208913('0xa19')](0x2,_0x524baf[_0x208913('0x25ae')])[_0x208913('0x1537')](',');}break;case'amazonlex':{var _0x2e29fe=_0x30dd5b['autoreply'][_0x208913('0x26d2')][_0x208913('0x1745')](',');_0x30dd5b['autoreply'][_0x208913('0x22be')]=_0x2e29fe[0x0],_0x30dd5b['autoreply']['secretaccesskey']=_0x2e29fe[0x1],_0x30dd5b[_0x208913('0x400')][_0x208913('0x206a')]=_0x2e29fe[0x2],_0x30dd5b[_0x208913('0x400')][_0x208913('0x191a')]=_0x2e29fe[0x3],_0x30dd5b[_0x208913('0x400')][_0x208913('0xfcc')]=_0x2e29fe[_0x208913('0xa19')](0x4,_0x2e29fe[_0x208913('0x25ae')])[_0x208913('0x1537')](',');}break;case _0x208913('0x400'):{var _0x25a789=_0x30dd5b[_0x208913('0x400')][_0x208913('0x26d2')][_0x208913('0x1745')](',');_0x30dd5b[_0x208913('0x400')]['times']=isNaN(_0x25a789[0x0])?_0x25a789[0x0]:parseInt(_0x25a789[0x0],0xa),_0x30dd5b['autoreply'][_0x208913('0x1bc6')]=_0x25a789[_0x208913('0xa19')](0x1,_0x25a789[_0x208913('0x25ae')])[_0x208913('0x1537')](',');}break;case _0x208913('0x27e8'):_0x30dd5b[_0x208913('0x400')][_0x208913('0x1bc6')]=_0x30dd5b[_0x208913('0x400')][_0x208913('0x26d2')];break;case _0x208913('0x2aa'):_0x30dd5b[_0x208913('0x400')][_0x208913('0x2623')]=_0x30dd5b[_0x208913('0x400')]['appdata'][_0x208913('0x1745')]('=')[0x0],_0x30dd5b[_0x208913('0x400')][_0x208913('0x2')]=_0x30dd5b[_0x208913('0x400')][_0x208913('0x26d2')][_0x208913('0x1745')]('=')[0x1];break;case _0x208913('0x401'):_0x30dd5b[_0x208913('0x400')][_0x208913('0x38b')]=_0x30dd5b['autoreply']['appdata'];break;default:{var _0x149868=_0x30dd5b[_0x208913('0x400')][_0x208913('0x26d2')][_0x208913('0x1745')](',');_0x30dd5b[_0x208913('0x400')][_0x208913('0x1ec4')]=_0x32d445()['isEmpty'](_0x149868[0x0])?_0x149868[0x0]:isNaN(_0x149868[0x0])?_0x149868[0x0]:parseInt(_0x149868[0x0],0xa),_0x30dd5b['autoreply'][_0x208913('0x1bc6')]=_0x32d445()[_0x208913('0x14b4')](_0x149868[0x1])?_0x149868[0x1]:isNaN(_0x149868[0x1])?_0x149868[0x1]:parseInt(_0x149868[0x1],0xa);}break;}else _0x30dd5b[_0x208913('0x400')]['times']=0x1;_0x30dd5b[_0x208913('0x400')][_0x208913('0x62e')]&&_0x30dd5b[_0x208913('0x400')]['type'][_0x208913('0x20dd')]()===_0x208913('0x1fdf')&&_0x30dd5b[_0x208913('0x400')][_0x208913('0xf44')][_0x208913('0x20dd')]()===_0x208913('0x1d1b')&&(_0x30dd5b[_0x208913('0x400')][_0x208913('0x2580')]=_0x30dd5b[_0x208913('0x400')]['phone']?_0x30dd5b['autoreply']['phone'][_0x208913('0x1745')]('$')[0x0]:undefined,_0x30dd5b[_0x208913('0x400')][_0x208913('0x1b6f')]=_0x30dd5b[_0x208913('0x400')]['callerID']?_0x208913('0xd41')+_0x30dd5b[_0x208913('0x400')][_0x208913('0xfca')]:undefined);_0x30dd5b[_0x208913('0x8ac')]=_0x39f323,_0x30dd5b[_0x208913('0x2584')]=_0x309ff6;function _0x39f323(){var _0x54e7bf=_0x208913;_0x30dd5b['errors']=[];var _0x1ee02e=[];_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x62e')]&&_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x62e')]['toLowerCase']()===_0x54e7bf('0x1fdf')&&_0x30dd5b[_0x54e7bf('0x400')]['appType']===_0x54e7bf('0x3d2')&&(_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x1ef5')]=_0x4bf85e[_0x54e7bf('0x27f6')]?(_0x30dd5b[_0x54e7bf('0x400')]['prefix']||'')+'${EXTEN:'+_0x4bf85e['cutdigits']+'}':(_0x30dd5b[_0x54e7bf('0x400')]['prefix']||'')+_0x54e7bf('0x16b5'),_0x4bf85e['recordingFormat']!==_0x54e7bf('0x23ca')?_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x2116')][_0x54e7bf('0x281c')](_0x54e7bf('0x767'))<0x0&&(_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x2116')]+='U(xcally-mixmonitor-context)'):_0x30dd5b[_0x54e7bf('0x400')]['options']=_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x2116')][_0x54e7bf('0x1b42')](_0x54e7bf('0x767'),''));if(_0x30dd5b['autoreply'][_0x54e7bf('0xf44')]&&_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0xf44')]==='custom'){}else switch((_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0xf2b')]||_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0xf44')])[_0x54e7bf('0x20dd')]()){case _0x54e7bf('0x2aa'):_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x26d2')]=_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x2623')]+'='+_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x2')];break;case _0x54e7bf('0x261d'):break;default:_0x1ee02e[0x0]=_0x30dd5b[_0x54e7bf('0x400')]['times'],_0x1ee02e[0x1]=_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x1bc6')],_0x30dd5b[_0x54e7bf('0x400')][_0x54e7bf('0x26d2')]=_0x1ee02e[_0x54e7bf('0x1537')](',');}_0x309ff6(_0x30dd5b[_0x54e7bf('0x400')]);}function _0x309ff6(_0x40a532){var _0x30a41d=_0x208913;_0x1df05a[_0x30a41d('0x11ed')](_0x40a532);}}const _0x4cbc14=_0x3e1d47;_0x2de6f4[_0xb635d2('0xb0c')]=['$mdDialog','$q','toasty',_0xb635d2('0xd2'),'whatsappAccount',_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x2de6f4(_0xc9041e,_0x4eb108,_0x54c6b2,_0x474633,_0xf4cda1,_0xc33082,_0x28254b,_0x824e52){var _0x37a9de=_0xb635d2,_0x4bc20d=this;_0x4bc20d[_0x37a9de('0x15a5')]=_0x28254b[_0x37a9de('0x1ef8')](),_0x4bc20d[_0x37a9de('0xcd2')]=[],_0x4bc20d[_0x37a9de('0x13e4')]=_0x37a9de('0x236b')+(_0x474633['appType']||_0x474633[_0x37a9de('0xf2b')])[_0x37a9de('0x25f7')](),_0x4bc20d[_0x37a9de('0x1886')]=angular[_0x37a9de('0x89')](_0x474633),_0x4bc20d[_0x37a9de('0xb3d')]=_0x824e52,_0x4bc20d[_0x37a9de('0x1ccb')]={};if(_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x26d2')])switch(_0x4bc20d[_0x37a9de('0x1886')]['appType']?_0x4bc20d[_0x37a9de('0x1886')]['appType'][_0x37a9de('0x20dd')]():_0x4bc20d['close'][_0x37a9de('0xf2b')]['toLowerCase']()){case _0x37a9de('0x261d'):break;case _0x37a9de('0xc11'):{var _0x35a40d=_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x26d2')][_0x37a9de('0x1745')](',');_0x4bc20d[_0x37a9de('0x1886')]['key']=_0x35a40d[0x0],_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x174b')]=_0x35a40d[0x1],_0x4bc20d['close'][_0x37a9de('0xfcc')]=_0x35a40d['slice'](0x2,_0x35a40d[_0x37a9de('0x25ae')])[_0x37a9de('0x1537')](',');}break;case _0x37a9de('0x1321'):{var _0x2081b3=_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x26d2')][_0x37a9de('0x1745')](',');_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x22be')]=_0x2081b3[0x0],_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x700')]=_0x2081b3[0x1],_0x4bc20d[_0x37a9de('0x1886')]['lexregion']=_0x2081b3[0x2],_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x191a')]=_0x2081b3[0x3],_0x4bc20d[_0x37a9de('0x1886')]['welcomemessage']=_0x2081b3['slice'](0x4,_0x2081b3[_0x37a9de('0x25ae')])['join'](',');}break;case _0x37a9de('0x400'):{var _0x51e6c3=_0x4bc20d[_0x37a9de('0x1886')]['appdata'][_0x37a9de('0x1745')](',');_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x1ec4')]=isNaN(_0x51e6c3[0x0])?_0x51e6c3[0x0]:parseInt(_0x51e6c3[0x0],0xa),_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x1bc6')]=_0x51e6c3[_0x37a9de('0xa19')](0x1,_0x51e6c3[_0x37a9de('0x25ae')])[_0x37a9de('0x1537')](',');}break;case _0x37a9de('0x27e8'):_0x4bc20d[_0x37a9de('0x1886')]['text']=_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x26d2')];break;case _0x37a9de('0x2aa'):_0x4bc20d[_0x37a9de('0x1886')]['name']=_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x26d2')][_0x37a9de('0x1745')]('=')[0x0],_0x4bc20d['close']['value']=_0x4bc20d['close'][_0x37a9de('0x26d2')][_0x37a9de('0x1745')]('=')[0x1];break;case _0x37a9de('0x401'):_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x38b')]=_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x26d2')];break;default:{var _0x37693e=_0x4bc20d[_0x37a9de('0x1886')]['appdata'][_0x37a9de('0x1745')](',');_0x4bc20d['close']['disposition']=_0x32d445()[_0x37a9de('0x14b4')](_0x37693e[0x0])?_0x37693e[0x0]:isNaN(_0x37693e[0x0])?_0x37693e[0x0]:parseInt(_0x37693e[0x0],0xa);}break;}else{}_0x4bc20d['close'][_0x37a9de('0x62e')]&&_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x62e')]['toLowerCase']()===_0x37a9de('0x1fdf')&&_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0xf44')][_0x37a9de('0x20dd')]()==='outbounddial'&&(_0x4bc20d['close'][_0x37a9de('0x2580')]=_0x4bc20d['close'][_0x37a9de('0x1ef5')]?_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0x1ef5')][_0x37a9de('0x1745')]('$')[0x0]:undefined,_0x4bc20d[_0x37a9de('0x1886')]['callerId']=_0x4bc20d[_0x37a9de('0x1886')][_0x37a9de('0xfca')]?'CALLERID(all)='+_0x4bc20d[_0x37a9de('0x1886')]['callerID']:undefined);_0x4bc20d[_0x37a9de('0x8ac')]=_0x15b3f1,_0x4bc20d[_0x37a9de('0x2584')]=_0x556503;function _0x15b3f1(){var _0x31d4cb=_0x37a9de;_0x4bc20d['errors']=[];var _0x1076d2=[];_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x62e')]&&_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x62e')][_0x31d4cb('0x20dd')]()==='outbound'&&_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0xf44')]==='outboundDial'&&(_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x1ef5')]=_0xf4cda1[_0x31d4cb('0x27f6')]?(_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x2580')]||'')+_0x31d4cb('0x5d8')+_0xf4cda1['cutdigits']+'}':(_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x2580')]||'')+'${EXTEN}',_0xf4cda1[_0x31d4cb('0x150c')]!==_0x31d4cb('0x23ca')?_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x2116')]['indexOf'](_0x31d4cb('0x767'))<0x0&&(_0x4bc20d[_0x31d4cb('0x1886')]['options']+=_0x31d4cb('0x767')):_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x2116')]=_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x2116')][_0x31d4cb('0x1b42')](_0x31d4cb('0x767'),''));if(_0x4bc20d[_0x31d4cb('0x1886')]['appType']&&_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0xf44')]===_0x31d4cb('0x261d')){}else switch((_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0xf2b')]||_0x4bc20d['close'][_0x31d4cb('0xf44')])[_0x31d4cb('0x20dd')]()){case _0x31d4cb('0x2aa'):_0x4bc20d['close'][_0x31d4cb('0x26d2')]=_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x2623')]+'='+_0x4bc20d[_0x31d4cb('0x1886')]['value'];break;case _0x31d4cb('0x261d'):break;default:_0x1076d2[0x0]=_0x4bc20d[_0x31d4cb('0x1886')][_0x31d4cb('0x2506')],_0x4bc20d['close']['appdata']=_0x1076d2[_0x31d4cb('0x1537')](',');}_0x556503(_0x4bc20d['close']);}function _0x556503(_0x562ddb){var _0xc664ca=_0x37a9de;_0xc9041e[_0xc664ca('0x11ed')](_0x562ddb);}}const _0x22ca14=_0x2de6f4;_0x5b2471[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xd2'),_0xb635d2('0x223'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x5b2471(_0x2e7eed,_0x6bf6d0,_0x54abc7,_0x2cf1e1,_0x27891e,_0x31973e,_0x489402,_0x2359f7){var _0x5bd150=_0xb635d2,_0xdd1a3f=this;_0xdd1a3f[_0x5bd150('0x15a5')]=_0x489402['getCurrentUser'](),_0xdd1a3f['errors']=[],_0xdd1a3f[_0x5bd150('0x13e4')]=_0x5bd150('0x236b')+(_0x2cf1e1[_0x5bd150('0xf44')]||_0x2cf1e1[_0x5bd150('0xf2b')])[_0x5bd150('0x25f7')](),_0xdd1a3f[_0x5bd150('0xc11')]=angular[_0x5bd150('0x89')](_0x2cf1e1),_0xdd1a3f[_0x5bd150('0xb3d')]=_0x2359f7,_0xdd1a3f[_0x5bd150('0x1ccb')]={};if(_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x26d2')])switch(_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0xf44')]?_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0xf44')][_0x5bd150('0x20dd')]():_0xdd1a3f['dialogflow']['app']['toLowerCase']()){case _0x5bd150('0x261d'):break;case _0x5bd150('0xc11'):{var _0x3a71d8=_0xdd1a3f[_0x5bd150('0xc11')]['appdata']['split'](',');_0xdd1a3f[_0x5bd150('0xc11')]['key']=_0x3a71d8[0x0],_0xdd1a3f['dialogflow']['language']=_0x3a71d8[0x1],_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0xfcc')]=_0x3a71d8[_0x5bd150('0xa19')](0x2,_0x3a71d8['length'])['join'](',');}break;case'amazonlex':{var _0x45098b=_0xdd1a3f[_0x5bd150('0xc11')]['appdata'][_0x5bd150('0x1745')](',');_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x22be')]=_0x45098b[0x0],_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x700')]=_0x45098b[0x1],_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x206a')]=_0x45098b[0x2],_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x191a')]=_0x45098b[0x3],_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0xfcc')]=_0x45098b[_0x5bd150('0xa19')](0x4,_0x45098b[_0x5bd150('0x25ae')])[_0x5bd150('0x1537')](',');}break;case _0x5bd150('0x400'):{var _0x5270c2=_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x26d2')]['split'](',');_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x1ec4')]=isNaN(_0x5270c2[0x0])?_0x5270c2[0x0]:parseInt(_0x5270c2[0x0],0xa),_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x1bc6')]=_0x5270c2[_0x5bd150('0xa19')](0x1,_0x5270c2[_0x5bd150('0x25ae')])[_0x5bd150('0x1537')](',');}break;case'message':_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x1bc6')]=_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x26d2')];break;case _0x5bd150('0x2aa'):_0xdd1a3f[_0x5bd150('0xc11')]['name']=_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x26d2')]['split']('=')[0x0],_0xdd1a3f[_0x5bd150('0xc11')]['value']=_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x26d2')][_0x5bd150('0x1745')]('=')[0x1];break;case _0x5bd150('0x401'):_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x38b')]=_0xdd1a3f['dialogflow']['appdata'];break;default:{var _0xf04d10=_0xdd1a3f[_0x5bd150('0xc11')]['appdata'][_0x5bd150('0x1745')](',');_0xdd1a3f['dialogflow'][_0x5bd150('0x6e4')]=_0x32d445()[_0x5bd150('0x14b4')](_0xf04d10[0x0])?_0xf04d10[0x0]:isNaN(_0xf04d10[0x0])?_0xf04d10[0x0]:parseInt(_0xf04d10[0x0],0xa),_0xdd1a3f['dialogflow'][_0x5bd150('0x174b')]=_0x32d445()['isEmpty'](_0xf04d10[0x1])?_0xf04d10[0x1]:isNaN(_0xf04d10[0x1])?_0xf04d10[0x1]:parseInt(_0xf04d10[0x1],0xa),_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0xfcc')]=_0x32d445()[_0x5bd150('0x14b4')](_0xf04d10[0x2])?_0xf04d10[0x2]:isNaN(_0xf04d10[0x2])?_0xf04d10[0x2]:parseInt(_0xf04d10[0x2],0xa);}break;}else _0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x174b')]='en';_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x62e')]&&_0xdd1a3f['dialogflow'][_0x5bd150('0x62e')][_0x5bd150('0x20dd')]()==='outbound'&&_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0xf44')][_0x5bd150('0x20dd')]()==='outbounddial'&&(_0xdd1a3f['dialogflow']['prefix']=_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x1ef5')]?_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x1ef5')][_0x5bd150('0x1745')]('$')[0x0]:undefined,_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0x1b6f')]=_0xdd1a3f[_0x5bd150('0xc11')][_0x5bd150('0xfca')]?_0x5bd150('0xd41')+_0xdd1a3f[_0x5bd150('0xc11')]['callerID']:undefined);_0xdd1a3f['saveWhatsappAccountApp']=_0x5d561,_0xdd1a3f[_0x5bd150('0x2584')]=_0x39e694;function _0x5d561(){var _0x2cd5ec=_0x5bd150;_0xdd1a3f['errors']=[];var _0x29112e=[];_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x62e')]&&_0xdd1a3f[_0x2cd5ec('0xc11')]['type'][_0x2cd5ec('0x20dd')]()===_0x2cd5ec('0x1fdf')&&_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0xf44')]===_0x2cd5ec('0x3d2')&&(_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x1ef5')]=_0x27891e['cutdigits']?(_0xdd1a3f[_0x2cd5ec('0xc11')]['prefix']||'')+'${EXTEN:'+_0x27891e['cutdigits']+'}':(_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x2580')]||'')+'${EXTEN}',_0x27891e[_0x2cd5ec('0x150c')]!=='none'?_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x2116')]['indexOf'](_0x2cd5ec('0x767'))<0x0&&(_0xdd1a3f['dialogflow'][_0x2cd5ec('0x2116')]+=_0x2cd5ec('0x767')):_0xdd1a3f['dialogflow'][_0x2cd5ec('0x2116')]=_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x2116')][_0x2cd5ec('0x1b42')](_0x2cd5ec('0x767'),''));if(_0xdd1a3f['dialogflow']['appType']&&_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0xf44')]===_0x2cd5ec('0x261d')){}else switch((_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0xf2b')]||_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0xf44')])[_0x2cd5ec('0x20dd')]()){case _0x2cd5ec('0x2aa'):_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x26d2')]=_0xdd1a3f[_0x2cd5ec('0xc11')]['name']+'='+_0xdd1a3f[_0x2cd5ec('0xc11')]['value'];break;case'custom':break;default:_0x29112e[0x0]=_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x6e4')],_0x29112e[0x1]=_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x174b')],_0x29112e[0x2]=_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0xfcc')],_0xdd1a3f[_0x2cd5ec('0xc11')][_0x2cd5ec('0x26d2')]=_0x29112e[_0x2cd5ec('0x1537')](',');}_0x39e694(_0xdd1a3f[_0x2cd5ec('0xc11')]);}function _0x39e694(_0x3da5f2){var _0x487d83=_0x5bd150;_0x2e7eed[_0x487d83('0x11ed')](_0x3da5f2);}}const _0x4dc69b=_0x5b2471;_0x4ce93f[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty',_0xb635d2('0xd2'),_0xb635d2('0x223'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),'crudPermissions'];function _0x4ce93f(_0x5fff0b,_0x1eccb0,_0x20db3b,_0x2f3538,_0x1475a9,_0x3b88ef,_0xb5ab,_0x3a9294){var _0x370bed=_0xb635d2,_0x3fca3d=this;_0x3fca3d[_0x370bed('0x15a5')]=_0xb5ab[_0x370bed('0x1ef8')](),_0x3fca3d[_0x370bed('0xcd2')]=[],_0x3fca3d[_0x370bed('0x13e4')]=_0x370bed('0x236b')+(_0x2f3538[_0x370bed('0xf44')]||_0x2f3538[_0x370bed('0xf2b')])['toUpperCase'](),_0x3fca3d[_0x370bed('0x22c3')]=angular[_0x370bed('0x89')](_0x2f3538),_0x3fca3d[_0x370bed('0xb3d')]=_0x3a9294,_0x3fca3d[_0x370bed('0x1ccb')]={};if(_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x26d2')])switch(_0x3fca3d[_0x370bed('0x22c3')]['appType']?_0x3fca3d[_0x370bed('0x22c3')]['appType'][_0x370bed('0x20dd')]():_0x3fca3d[_0x370bed('0x22c3')]['app'][_0x370bed('0x20dd')]()){case _0x370bed('0x261d'):break;case _0x370bed('0xc11'):{var _0x3f37c0=_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x26d2')][_0x370bed('0x1745')](',');_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x6e4')]=_0x3f37c0[0x0],_0x3fca3d['gotoif'][_0x370bed('0x174b')]=_0x3f37c0[0x1],_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0xfcc')]=_0x3f37c0[_0x370bed('0xa19')](0x2,_0x3f37c0[_0x370bed('0x25ae')])[_0x370bed('0x1537')](',');}break;case _0x370bed('0x1321'):{var _0xa51b81=_0x3fca3d[_0x370bed('0x22c3')]['appdata'][_0x370bed('0x1745')](',');_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x22be')]=_0xa51b81[0x0],_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x700')]=_0xa51b81[0x1],_0x3fca3d[_0x370bed('0x22c3')]['lexregion']=_0xa51b81[0x2],_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x191a')]=_0xa51b81[0x3],_0x3fca3d[_0x370bed('0x22c3')]['welcomemessage']=_0xa51b81['slice'](0x4,_0xa51b81[_0x370bed('0x25ae')])[_0x370bed('0x1537')](',');}break;case _0x370bed('0x400'):{var _0x46542e=_0x3fca3d[_0x370bed('0x22c3')]['appdata'][_0x370bed('0x1745')](',');_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x1ec4')]=isNaN(_0x46542e[0x0])?_0x46542e[0x0]:parseInt(_0x46542e[0x0],0xa),_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x1bc6')]=_0x46542e['slice'](0x1,_0x46542e[_0x370bed('0x25ae')])[_0x370bed('0x1537')](',');}break;case _0x370bed('0x27e8'):_0x3fca3d[_0x370bed('0x22c3')]['text']=_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x26d2')];break;case _0x370bed('0x2aa'):_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x2623')]=_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x26d2')][_0x370bed('0x1745')]('=')[0x0],_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x2')]=_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x26d2')][_0x370bed('0x1745')]('=')[0x1];break;case _0x370bed('0x401'):_0x3fca3d['gotoif'][_0x370bed('0x38b')]=_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x26d2')];break;default:{var _0x5f1e4e=_0x3fca3d['gotoif'][_0x370bed('0x26d2')][_0x370bed('0x1745')](',');_0x3fca3d['gotoif'][_0x370bed('0x1c03')]=_0x32d445()[_0x370bed('0x14b4')](_0x5f1e4e[0x0])?_0x5f1e4e[0x0]:isNaN(_0x5f1e4e[0x0])?_0x5f1e4e[0x0]:parseInt(_0x5f1e4e[0x0],0xa),_0x3fca3d['gotoif'][_0x370bed('0x50')]=_0x32d445()['isEmpty'](_0x5f1e4e[0x1])?_0x5f1e4e[0x1]:isNaN(_0x5f1e4e[0x1])?_0x5f1e4e[0x1]:parseInt(_0x5f1e4e[0x1],0xa),_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x347')]=_0x32d445()['isEmpty'](_0x5f1e4e[0x2])?_0x5f1e4e[0x2]:isNaN(_0x5f1e4e[0x2])?_0x5f1e4e[0x2]:parseInt(_0x5f1e4e[0x2],0xa);}break;}else{}_0x3fca3d[_0x370bed('0x22c3')]['type']&&_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x62e')]['toLowerCase']()==='outbound'&&_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0xf44')][_0x370bed('0x20dd')]()==='outbounddial'&&(_0x3fca3d['gotoif'][_0x370bed('0x2580')]=_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x1ef5')]?_0x3fca3d['gotoif'][_0x370bed('0x1ef5')][_0x370bed('0x1745')]('$')[0x0]:undefined,_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0x1b6f')]=_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0xfca')]?_0x370bed('0xd41')+_0x3fca3d[_0x370bed('0x22c3')][_0x370bed('0xfca')]:undefined);_0x3fca3d['saveWhatsappAccountApp']=_0x1d44d2,_0x3fca3d[_0x370bed('0x2584')]=_0x2f910a;function _0x1d44d2(){var _0xaa9570=_0x370bed;_0x3fca3d[_0xaa9570('0xcd2')]=[];var _0x396ef8=[];_0x3fca3d[_0xaa9570('0x22c3')][_0xaa9570('0x62e')]&&_0x3fca3d[_0xaa9570('0x22c3')][_0xaa9570('0x62e')][_0xaa9570('0x20dd')]()===_0xaa9570('0x1fdf')&&_0x3fca3d['gotoif'][_0xaa9570('0xf44')]===_0xaa9570('0x3d2')&&(_0x3fca3d[_0xaa9570('0x22c3')]['phone']=_0x1475a9[_0xaa9570('0x27f6')]?(_0x3fca3d[_0xaa9570('0x22c3')][_0xaa9570('0x2580')]||'')+_0xaa9570('0x5d8')+_0x1475a9[_0xaa9570('0x27f6')]+'}':(_0x3fca3d[_0xaa9570('0x22c3')][_0xaa9570('0x2580')]||'')+_0xaa9570('0x16b5'),_0x1475a9[_0xaa9570('0x150c')]!==_0xaa9570('0x23ca')?_0x3fca3d[_0xaa9570('0x22c3')]['options'][_0xaa9570('0x281c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3fca3d['gotoif'][_0xaa9570('0x2116')]+='U(xcally-mixmonitor-context)'):_0x3fca3d[_0xaa9570('0x22c3')][_0xaa9570('0x2116')]=_0x3fca3d[_0xaa9570('0x22c3')]['options'][_0xaa9570('0x1b42')](_0xaa9570('0x767'),''));if(_0x3fca3d[_0xaa9570('0x22c3')][_0xaa9570('0xf44')]&&_0x3fca3d[_0xaa9570('0x22c3')]['appType']===_0xaa9570('0x261d')){}else switch((_0x3fca3d[_0xaa9570('0x22c3')]['app']||_0x3fca3d['gotoif'][_0xaa9570('0xf44')])[_0xaa9570('0x20dd')]()){case _0xaa9570('0x2aa'):_0x3fca3d[_0xaa9570('0x22c3')][_0xaa9570('0x26d2')]=_0x3fca3d['gotoif'][_0xaa9570('0x2623')]+'='+_0x3fca3d['gotoif']['value'];break;case _0xaa9570('0x261d'):break;default:_0x396ef8[0x0]=_0x3fca3d['gotoif'][_0xaa9570('0x1c03')],_0x396ef8[0x1]=_0x3fca3d[_0xaa9570('0x22c3')][_0xaa9570('0x50')],_0x396ef8[0x2]=_0x3fca3d['gotoif']['falsepriority'],_0x3fca3d[_0xaa9570('0x22c3')]['appdata']=_0x396ef8['join'](',');}_0x2f910a(_0x3fca3d[_0xaa9570('0x22c3')]);}function _0x2f910a(_0x5e78df){_0x5fff0b['hide'](_0x5e78df);}}const _0x1a23c3=_0x4ce93f;_0x3d64b5['$inject']=['$mdDialog','$q',_0xb635d2('0xf65'),_0xb635d2('0xd2'),_0xb635d2('0x223'),'api',_0xb635d2('0x2730'),'crudPermissions'];function _0x3d64b5(_0x4c5f2b,_0x5d670a,_0x1c0eac,_0x46f319,_0x3b557c,_0x156fe7,_0x5918b6,_0x12dd2c){var _0x892527=_0xb635d2,_0x3fc216=this;_0x3fc216[_0x892527('0x15a5')]=_0x5918b6[_0x892527('0x1ef8')](),_0x3fc216[_0x892527('0xcd2')]=[],_0x3fc216[_0x892527('0x13e4')]=_0x892527('0x236b')+(_0x46f319[_0x892527('0xf44')]||_0x46f319[_0x892527('0xf2b')])[_0x892527('0x25f7')](),_0x3fc216[_0x892527('0x16fe')]=angular['copy'](_0x46f319),_0x3fc216[_0x892527('0xb3d')]=_0x12dd2c,_0x3fc216[_0x892527('0x1ccb')]={};if(_0x3fc216[_0x892527('0x16fe')][_0x892527('0x26d2')])switch(_0x3fc216['gotop'][_0x892527('0xf44')]?_0x3fc216[_0x892527('0x16fe')][_0x892527('0xf44')][_0x892527('0x20dd')]():_0x3fc216[_0x892527('0x16fe')][_0x892527('0xf2b')][_0x892527('0x20dd')]()){case'custom':break;case _0x892527('0xc11'):{var _0x213baf=_0x3fc216['gotop'][_0x892527('0x26d2')]['split'](',');_0x3fc216[_0x892527('0x16fe')][_0x892527('0x6e4')]=_0x213baf[0x0],_0x3fc216[_0x892527('0x16fe')]['language']=_0x213baf[0x1],_0x3fc216['gotop'][_0x892527('0xfcc')]=_0x213baf[_0x892527('0xa19')](0x2,_0x213baf[_0x892527('0x25ae')])[_0x892527('0x1537')](',');}break;case _0x892527('0x1321'):{var _0x2004c5=_0x3fc216[_0x892527('0x16fe')][_0x892527('0x26d2')]['split'](',');_0x3fc216['gotop'][_0x892527('0x22be')]=_0x2004c5[0x0],_0x3fc216['gotop'][_0x892527('0x700')]=_0x2004c5[0x1],_0x3fc216[_0x892527('0x16fe')][_0x892527('0x206a')]=_0x2004c5[0x2],_0x3fc216[_0x892527('0x16fe')][_0x892527('0x191a')]=_0x2004c5[0x3],_0x3fc216[_0x892527('0x16fe')]['welcomemessage']=_0x2004c5[_0x892527('0xa19')](0x4,_0x2004c5[_0x892527('0x25ae')])[_0x892527('0x1537')](',');}break;case _0x892527('0x400'):{var _0x194b13=_0x3fc216[_0x892527('0x16fe')][_0x892527('0x26d2')][_0x892527('0x1745')](',');_0x3fc216[_0x892527('0x16fe')][_0x892527('0x1ec4')]=isNaN(_0x194b13[0x0])?_0x194b13[0x0]:parseInt(_0x194b13[0x0],0xa),_0x3fc216[_0x892527('0x16fe')][_0x892527('0x1bc6')]=_0x194b13['slice'](0x1,_0x194b13[_0x892527('0x25ae')])[_0x892527('0x1537')](',');}break;case _0x892527('0x27e8'):_0x3fc216[_0x892527('0x16fe')][_0x892527('0x1bc6')]=_0x3fc216['gotop'][_0x892527('0x26d2')];break;case _0x892527('0x2aa'):_0x3fc216[_0x892527('0x16fe')][_0x892527('0x2623')]=_0x3fc216['gotop']['appdata']['split']('=')[0x0],_0x3fc216[_0x892527('0x16fe')][_0x892527('0x2')]=_0x3fc216[_0x892527('0x16fe')][_0x892527('0x26d2')][_0x892527('0x1745')]('=')[0x1];break;case'agi':_0x3fc216[_0x892527('0x16fe')][_0x892527('0x38b')]=_0x3fc216[_0x892527('0x16fe')][_0x892527('0x26d2')];break;default:{var _0x3cdb0f=_0x3fc216[_0x892527('0x16fe')][_0x892527('0x26d2')][_0x892527('0x1745')](',');_0x3fc216['gotop'][_0x892527('0xb33')]=_0x32d445()[_0x892527('0x14b4')](_0x3cdb0f[0x0])?_0x3cdb0f[0x0]:isNaN(_0x3cdb0f[0x0])?_0x3cdb0f[0x0]:parseInt(_0x3cdb0f[0x0],0xa);}break;}else{}_0x3fc216['gotop'][_0x892527('0x62e')]&&_0x3fc216[_0x892527('0x16fe')]['type'][_0x892527('0x20dd')]()===_0x892527('0x1fdf')&&_0x3fc216[_0x892527('0x16fe')]['appType'][_0x892527('0x20dd')]()==='outbounddial'&&(_0x3fc216[_0x892527('0x16fe')][_0x892527('0x2580')]=_0x3fc216[_0x892527('0x16fe')][_0x892527('0x1ef5')]?_0x3fc216[_0x892527('0x16fe')]['phone'][_0x892527('0x1745')]('$')[0x0]:undefined,_0x3fc216[_0x892527('0x16fe')][_0x892527('0x1b6f')]=_0x3fc216[_0x892527('0x16fe')][_0x892527('0xfca')]?_0x892527('0xd41')+_0x3fc216[_0x892527('0x16fe')][_0x892527('0xfca')]:undefined);_0x3fc216[_0x892527('0x8ac')]=_0x515743,_0x3fc216['closeDialog']=_0x18d09a;function _0x515743(){var _0x23304d=_0x892527;_0x3fc216[_0x23304d('0xcd2')]=[];var _0x4cd165=[];_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0x62e')]&&_0x3fc216[_0x23304d('0x16fe')]['type'][_0x23304d('0x20dd')]()===_0x23304d('0x1fdf')&&_0x3fc216['gotop'][_0x23304d('0xf44')]===_0x23304d('0x3d2')&&(_0x3fc216[_0x23304d('0x16fe')]['phone']=_0x3b557c['cutdigits']?(_0x3fc216[_0x23304d('0x16fe')]['prefix']||'')+_0x23304d('0x5d8')+_0x3b557c[_0x23304d('0x27f6')]+'}':(_0x3fc216['gotop'][_0x23304d('0x2580')]||'')+_0x23304d('0x16b5'),_0x3b557c[_0x23304d('0x150c')]!=='none'?_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0x2116')][_0x23304d('0x281c')](_0x23304d('0x767'))<0x0&&(_0x3fc216[_0x23304d('0x16fe')]['options']+='U(xcally-mixmonitor-context)'):_0x3fc216['gotop']['options']=_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0x2116')]['replace'](_0x23304d('0x767'),''));if(_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0xf44')]&&_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0xf44')]==='custom'){}else switch((_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0xf2b')]||_0x3fc216['gotop']['appType'])[_0x23304d('0x20dd')]()){case _0x23304d('0x2aa'):_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0x26d2')]=_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0x2623')]+'='+_0x3fc216[_0x23304d('0x16fe')][_0x23304d('0x2')];break;case _0x23304d('0x261d'):break;default:_0x4cd165[0x0]=_0x3fc216['gotop'][_0x23304d('0xb33')],_0x3fc216['gotop'][_0x23304d('0x26d2')]=_0x4cd165[_0x23304d('0x1537')](',');}_0x18d09a(_0x3fc216[_0x23304d('0x16fe')]);}function _0x18d09a(_0x20f11d){var _0x496eab=_0x892527;_0x4c5f2b[_0x496eab('0x11ed')](_0x20f11d);}}const _0x7261ee=_0x3d64b5;_0x1fea22[_0xb635d2('0xb0c')]=[_0xb635d2('0xeb6'),_0xb635d2('0x1c9f'),_0xb635d2('0x1e23'),_0xb635d2('0x9ab'),_0xb635d2('0x134c'),_0xb635d2('0x10e0'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),'Auth','crudPermissions'];function _0x1fea22(_0x131025,_0xe6022a,_0x5c8ab7,_0x11210c,_0x4fcd72,_0x52677c,_0x54debd,_0x29c54a,_0x5ed49d,_0x1a8bb8){var _0x21c94a=_0xb635d2,_0x1e7d67=this;_0x1e7d67['currentUser']=_0x5ed49d[_0x21c94a('0x1ef8')](),_0x1e7d67[_0x21c94a('0xcd2')]=[],_0x1e7d67[_0x21c94a('0x13e4')]=_0x21c94a('0xf42'),_0x1e7d67[_0x21c94a('0x134c')]=angular[_0x21c94a('0x89')](_0x4fcd72),_0x1e7d67[_0x21c94a('0x10e0')]=_0x52677c,_0x1e7d67[_0x21c94a('0x1a83')]=![],_0x1e7d67[_0x21c94a('0x1ea6')]=['always',_0x21c94a('0x261d'),_0x21c94a('0x15a8')],_0x1e7d67[_0x21c94a('0xb3d')]=_0x1a8bb8,_0x1e7d67[_0x21c94a('0x1af')]=_0x11210c['getDaysOfWeek'](),_0x1e7d67[_0x21c94a('0x253d')]=_0x11210c[_0x21c94a('0x1015')](),_0x1e7d67[_0x21c94a('0x631')]=_0x11210c['getMonthName'](),_0x1e7d67[_0x21c94a('0x2347')]=_0x11210c[_0x21c94a('0xdee')]();if(!_0x1e7d67[_0x21c94a('0x134c')])_0x1e7d67[_0x21c94a('0x134c')]={'interval':_0x21c94a('0x2292')},_0x1e7d67[_0x21c94a('0x62e')]='always',_0x1e7d67[_0x21c94a('0x13e4')]=_0x21c94a('0x1947'),_0x1e7d67['newInterval']=!![];else{if(_0x1e7d67[_0x21c94a('0x134c')]['interval']!==_0x21c94a('0x2292')){_0x1e7d67['type']=_0x21c94a('0x261d');var _0x303bb4=_0x1e7d67[_0x21c94a('0x134c')][_0x21c94a('0x134c')][_0x21c94a('0x1745')](','),_0x2c3149=_0x303bb4[0x0],_0x5e986b=_0x303bb4[0x1],_0x1d4310=_0x303bb4[0x2],_0x3c2c1e=_0x303bb4[0x3];if(_0x2c3149!=='*'){var _0x54ef6b=_0x2c3149['split']('-')[0x0],_0x1b4990=_0x2c3149[_0x21c94a('0x1745')]('-')[0x1],_0x2cb8ef;_0x2cb8ef=new Date(),_0x2cb8ef['setHours'](Number(_0x54ef6b[_0x21c94a('0x1745')](':')[0x0])),_0x2cb8ef['setMinutes'](Number(_0x54ef6b[_0x21c94a('0x1745')](':')[0x1])),_0x1e7d67[_0x21c94a('0xde9')]=_0x2cb8ef,_0x2cb8ef=new Date(),_0x2cb8ef[_0x21c94a('0x19f6')](Number(_0x1b4990['split'](':')[0x0])),_0x2cb8ef[_0x21c94a('0x6b6')](Number(_0x1b4990[_0x21c94a('0x1745')](':')[0x1])),_0x1e7d67[_0x21c94a('0x12ef')]=_0x2cb8ef;}_0x5e986b!=='*'&&(_0x1e7d67[_0x21c94a('0x2359')]=_0x5e986b[_0x21c94a('0x1745')]('-')[0x0],_0x1e7d67[_0x21c94a('0xa40')]=_0x5e986b[_0x21c94a('0x1745')]('-')[0x1]),_0x1d4310!=='*'&&(_0x1e7d67[_0x21c94a('0x146b')]=_0x1d4310[_0x21c94a('0x1745')]('-')[0x0],_0x1e7d67[_0x21c94a('0x3d6')]=_0x1d4310[_0x21c94a('0x1745')]('-')[0x1]),_0x3c2c1e!=='*'&&(_0x1e7d67['monthFrom']=_0x3c2c1e[_0x21c94a('0x1745')]('-')[0x0],_0x1e7d67[_0x21c94a('0xac6')]=_0x3c2c1e['split']('-')[0x1]);}else _0x1e7d67['type']=_0x21c94a('0x2210');}_0x131025[_0x21c94a('0x2ef')]['id']&&!_0x1e7d67['interval']['application']&&(_0x1e7d67['interval'][_0x21c94a('0x1fc1')]=_0x131025[_0x21c94a('0x2ef')]['id']);_0x1e7d67[_0x21c94a('0x134c')][_0x21c94a('0x1fc1')]&&_0x1e7d67[_0x21c94a('0x134c')][_0x21c94a('0x1491')]&&(_0x1e7d67['type']=_0x21c94a('0x15a8'));_0x1e7d67['addNewInterval']=_0x5172cc,_0x1e7d67['saveInterval']=_0x1cb1c0,_0x1e7d67[_0x21c94a('0x2584')]=_0xb558a5;_0x1e7d67[_0x21c94a('0x134c')][_0x21c94a('0x1491')]&&(_0x5ed49d['hasRole'](_0x21c94a('0xd14'))?_0x29c54a[_0x21c94a('0x134c')]['get']({'fields':_0x21c94a('0x13df'),'IntervalId':_0x21c94a('0x1046'),'nolimit':!![]})[_0x21c94a('0xe59')]['then'](function(_0x31b423){var _0x3503e9=_0x21c94a;_0x1e7d67[_0x3503e9('0x10e0')]=_0x31b423[_0x3503e9('0x16a7')]||[];})[_0x21c94a('0x223b')](function(_0x4e3bfe){var _0x23275f=_0x21c94a;_0x54debd[_0x23275f('0x8c8')]({'title':_0x4e3bfe['status']?_0x23275f('0x27f2')+_0x4e3bfe[_0x23275f('0x2833')]+_0x23275f('0x1b7c')+_0x4e3bfe[_0x23275f('0x1fd7')]:_0x23275f('0x1c1c'),'msg':_0x4e3bfe[_0x23275f('0x11d0')]?JSON[_0x23275f('0x3ad')](_0x4e3bfe[_0x23275f('0x11d0')]):_0x4e3bfe[_0x23275f('0x94f')]()});}):_0x29c54a[_0x21c94a('0x134c')][_0x21c94a('0x22d5')]({'fields':_0x21c94a('0x13df'),'IntervalId':_0x21c94a('0x1046'),'nolimit':!![]})[_0x21c94a('0xe59')][_0x21c94a('0xe19')](function(_0x2c3f49){var _0x371657=_0x21c94a;_0x1e7d67['intervals']=_0x2c3f49[_0x371657('0x16a7')]||[];})[_0x21c94a('0xe19')](function(){var _0x2281df=_0x21c94a;return _0x29c54a[_0x2281df('0xb59')][_0x2281df('0x22d5')]({'userProfileId':_0x1e7d67['currentUser']['userProfileId'],'sectionId':0x3ec})[_0x2281df('0xe59')];})[_0x21c94a('0xe19')](function(_0x3929eb){var _0x2d9344=_0x21c94a,_0x43a156=_0x3929eb&&_0x3929eb[_0x2d9344('0x16a7')]?_0x3929eb[_0x2d9344('0x16a7')][0x0]:null;if(!_0x43a156)_0x1e7d67[_0x2d9344('0x10e0')]=[];else{if(!_0x43a156[_0x2d9344('0x11fd')])return _0x29c54a[_0x2d9344('0xd49')][_0x2d9344('0x22d5')]({'sectionId':_0x43a156['id']})[_0x2d9344('0xe59')]['then'](function(_0x237a4f){var _0x3f78c0=_0x2d9344,_0x228d69=_0x237a4f&&_0x237a4f[_0x3f78c0('0x16a7')]?_0x237a4f[_0x3f78c0('0x16a7')]:[],_0xb47988=[],_0x57841c=null;_0x1e7d67[_0x3f78c0('0x134c')]&&(_0x57841c=_0x32d445()['find'](_0x1e7d67[_0x3f78c0('0x10e0')],{'name':_0x1e7d67[_0x3f78c0('0x134c')][_0x3f78c0('0x1fc1')]})),_0x57841c&&!_0x32d445()[_0x3f78c0('0x201a')](_0x228d69,[_0x3f78c0('0x1104'),_0x57841c['id']])&&_0x1e7d67['intervals'][_0x3f78c0('0x1d7e')](function(_0x5364b7){var _0x126887=_0x3f78c0;_0x5364b7['id']===_0x57841c['id']&&(_0x5364b7[_0x126887('0x1e9d')]=![],_0xb47988['push'](_0x5364b7));}),_0x1e7d67[_0x3f78c0('0x10e0')]=_0xb47988;});}})['catch'](function(_0x8deb4b){var _0x5a0364=_0x21c94a;_0x54debd[_0x5a0364('0x8c8')]({'title':_0x8deb4b[_0x5a0364('0x2833')]?_0x5a0364('0x27f2')+_0x8deb4b[_0x5a0364('0x2833')]+_0x5a0364('0x1b7c')+_0x8deb4b[_0x5a0364('0x1fd7')]:_0x5a0364('0x1c1c'),'msg':_0x8deb4b[_0x5a0364('0x11d0')]?JSON[_0x5a0364('0x3ad')](_0x8deb4b['data']):_0x8deb4b[_0x5a0364('0x94f')]()});}));function _0x48964d(){var _0x3f7a4e=_0x21c94a;switch(_0x1e7d67['type']){case _0x3f7a4e('0x2210'):case'list':return'*,*,*,*';case'custom':{var _0x943ee5=[];if(_0x1e7d67['timeRangeFrom']!=='*'&&_0x1e7d67['timeRangeFrom']&&_0x1e7d67[_0x3f7a4e('0x12ef')]){var _0x36d6b8=(_0x1e7d67[_0x3f7a4e('0xde9')][_0x3f7a4e('0x757')]()<0xa?'0':'')+_0x1e7d67[_0x3f7a4e('0xde9')][_0x3f7a4e('0x757')]()+':'+((_0x1e7d67[_0x3f7a4e('0xde9')][_0x3f7a4e('0x961')]()<0xa?'0':'')+_0x1e7d67[_0x3f7a4e('0xde9')]['getMinutes']()),_0x2608d0=(_0x1e7d67[_0x3f7a4e('0x12ef')][_0x3f7a4e('0x757')]()<0xa?'0':'')+_0x1e7d67[_0x3f7a4e('0x12ef')][_0x3f7a4e('0x757')]()+':'+((_0x1e7d67['timeRangeTo'][_0x3f7a4e('0x961')]()<0xa?'0':'')+_0x1e7d67[_0x3f7a4e('0x12ef')][_0x3f7a4e('0x961')]());_0x943ee5[_0x3f7a4e('0xb76')](_0x36d6b8+'-'+_0x2608d0);}else _0x943ee5['push']('*');return _0x1e7d67[_0x3f7a4e('0x2359')]?_0x1e7d67[_0x3f7a4e('0xa40')]?_0x943ee5[_0x3f7a4e('0xb76')](_0x1e7d67['dayOfWeekFrom']+'-'+_0x1e7d67['dayOfWeekTo']):_0x943ee5[_0x3f7a4e('0xb76')](_0x1e7d67[_0x3f7a4e('0x2359')]):_0x943ee5[_0x3f7a4e('0xb76')]('*'),_0x1e7d67['monthDayFrom']?_0x1e7d67[_0x3f7a4e('0x3d6')]?_0x943ee5[_0x3f7a4e('0xb76')](_0x1e7d67[_0x3f7a4e('0x146b')]+'-'+_0x1e7d67[_0x3f7a4e('0x3d6')]):_0x943ee5[_0x3f7a4e('0xb76')](_0x1e7d67[_0x3f7a4e('0x146b')]):_0x943ee5['push']('*'),_0x1e7d67[_0x3f7a4e('0x1b2a')]?_0x1e7d67[_0x3f7a4e('0xac6')]?_0x943ee5[_0x3f7a4e('0xb76')](_0x1e7d67[_0x3f7a4e('0x1b2a')]+'-'+_0x1e7d67[_0x3f7a4e('0xac6')]):_0x943ee5[_0x3f7a4e('0xb76')](_0x1e7d67[_0x3f7a4e('0x1b2a')]):_0x943ee5[_0x3f7a4e('0xb76')]('*'),_0x943ee5[_0x3f7a4e('0x1537')]();}}}function _0x5172cc(){var _0x437a6a=_0x21c94a;_0x1e7d67['errors']=[],_0x1e7d67[_0x437a6a('0x134c')][_0x437a6a('0x134c')]=_0x48964d(),_0x29c54a['interval'][_0x437a6a('0xe5e')](_0x1e7d67['interval'])[_0x437a6a('0xe59')][_0x437a6a('0xe19')](function(_0x5acb52){var _0x4209e0=_0x437a6a;_0x1e7d67['intervals'][_0x4209e0('0xb76')](_0x5acb52),_0x54debd['success']({'title':'Interval\x20properly\x20created','msg':_0x1e7d67['interval'][_0x4209e0('0x2623')]?_0x1e7d67[_0x4209e0('0x134c')][_0x4209e0('0x2623')]+_0x4209e0('0x105f'):''}),_0xb558a5();})['catch'](function(_0x31bc37){var _0x37a114=_0x437a6a;console['error'](_0x31bc37),_0x1e7d67['errors']=_0x31bc37[_0x37a114('0x11d0')][_0x37a114('0xcd2')]||[{'message':_0x31bc37['toString'](),'type':_0x37a114('0x176b')}];});}function _0x1cb1c0(){var _0x58f6e3=_0x21c94a;_0x1e7d67[_0x58f6e3('0xcd2')]=[],_0x1e7d67[_0x58f6e3('0x134c')]['interval']=_0x48964d(),_0x1e7d67[_0x58f6e3('0x134c')][_0x58f6e3('0x1491')]?(_0x1e7d67[_0x58f6e3('0x62e')]!==_0x58f6e3('0x15a8')&&(_0x1e7d67['interval']['IntervalId']=null),_0xb558a5(_0x1e7d67[_0x58f6e3('0x134c')])):_0x29c54a['interval']['update']({'id':_0x1e7d67[_0x58f6e3('0x134c')]['id']},_0x1e7d67[_0x58f6e3('0x134c')])[_0x58f6e3('0xe59')][_0x58f6e3('0xe19')](function(_0x3401cd){var _0xc522e1=_0x58f6e3,_0x1846cb=_0x32d445()[_0xc522e1('0xf15')](_0x1e7d67[_0xc522e1('0x10e0')],{'id':_0x3401cd['id']});_0x1846cb&&_0x32d445()[_0xc522e1('0x1d8')](_0x1846cb,_0x3401cd),_0x54debd[_0xc522e1('0x425')]({'title':_0xc522e1('0x228'),'msg':'Interval\x20has\x20been\x20saved!'}),_0xb558a5();})['catch'](function(_0x3dde40){var _0xf0ab95=_0x58f6e3;console[_0xf0ab95('0x8c8')](_0x3dde40),_0x1e7d67[_0xf0ab95('0xcd2')]=_0x3dde40[_0xf0ab95('0x11d0')][_0xf0ab95('0xcd2')]||[{'message':_0x3dde40[_0xf0ab95('0x94f')](),'type':_0xf0ab95('0x1ff2')}];});}function _0xb558a5(_0x606434){var _0x3ee102=_0x21c94a;_0xe6022a[_0x3ee102('0x11ed')](_0x606434);}}const _0x3e47f0=_0x1fea22;_0x4bae65[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xd2'),_0xb635d2('0x223'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x4bae65(_0x225e7,_0x21ead1,_0x4202fb,_0x1e2e18,_0x3a0e2f,_0x3f8416,_0x34c041,_0x17f4cc){var _0x4e65bf=_0xb635d2,_0x3c3f04=this;_0x3c3f04[_0x4e65bf('0x15a5')]=_0x34c041[_0x4e65bf('0x1ef8')](),_0x3c3f04['errors']=[],_0x3c3f04['title']=_0x4e65bf('0x236b')+(_0x1e2e18[_0x4e65bf('0xf44')]||_0x1e2e18[_0x4e65bf('0xf2b')])[_0x4e65bf('0x25f7')](),_0x3c3f04['noop']=angular[_0x4e65bf('0x89')](_0x1e2e18),_0x3c3f04[_0x4e65bf('0xb3d')]=_0x17f4cc,_0x3c3f04[_0x4e65bf('0x1ccb')]={};if(_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x26d2')])switch(_0x3c3f04[_0x4e65bf('0xc09')]['appType']?_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0xf44')][_0x4e65bf('0x20dd')]():_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0xf2b')][_0x4e65bf('0x20dd')]()){case _0x4e65bf('0x261d'):break;case _0x4e65bf('0xc11'):{var _0x523c04=_0x3c3f04['noop']['appdata'][_0x4e65bf('0x1745')](',');_0x3c3f04[_0x4e65bf('0xc09')]['key']=_0x523c04[0x0],_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x174b')]=_0x523c04[0x1],_0x3c3f04['noop'][_0x4e65bf('0xfcc')]=_0x523c04[_0x4e65bf('0xa19')](0x2,_0x523c04[_0x4e65bf('0x25ae')])[_0x4e65bf('0x1537')](',');}break;case _0x4e65bf('0x1321'):{var _0x4087fb=_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x26d2')][_0x4e65bf('0x1745')](',');_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x22be')]=_0x4087fb[0x0],_0x3c3f04['noop']['secretaccesskey']=_0x4087fb[0x1],_0x3c3f04['noop'][_0x4e65bf('0x206a')]=_0x4087fb[0x2],_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x191a')]=_0x4087fb[0x3],_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0xfcc')]=_0x4087fb[_0x4e65bf('0xa19')](0x4,_0x4087fb['length'])[_0x4e65bf('0x1537')](',');}break;case'autoreply':{var _0x2dfaa8=_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x26d2')][_0x4e65bf('0x1745')](',');_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x1ec4')]=isNaN(_0x2dfaa8[0x0])?_0x2dfaa8[0x0]:parseInt(_0x2dfaa8[0x0],0xa),_0x3c3f04['noop'][_0x4e65bf('0x1bc6')]=_0x2dfaa8[_0x4e65bf('0xa19')](0x1,_0x2dfaa8[_0x4e65bf('0x25ae')])['join'](',');}break;case _0x4e65bf('0x27e8'):_0x3c3f04['noop']['text']=_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x26d2')];break;case _0x4e65bf('0x2aa'):_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x2623')]=_0x3c3f04['noop'][_0x4e65bf('0x26d2')][_0x4e65bf('0x1745')]('=')[0x0],_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x2')]=_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x26d2')][_0x4e65bf('0x1745')]('=')[0x1];break;case _0x4e65bf('0x401'):_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x38b')]=_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x26d2')];break;default:{var _0x4da862=_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x26d2')]['split'](',');_0x3c3f04['noop'][_0x4e65bf('0x2')]=_0x32d445()['isEmpty'](_0x4da862[0x0])?_0x4da862[0x0]:isNaN(_0x4da862[0x0])?_0x4da862[0x0]:parseInt(_0x4da862[0x0],0xa);}break;}else{}_0x3c3f04['noop']['type']&&_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x62e')][_0x4e65bf('0x20dd')]()==='outbound'&&_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0xf44')][_0x4e65bf('0x20dd')]()==='outbounddial'&&(_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x2580')]=_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x1ef5')]?_0x3c3f04[_0x4e65bf('0xc09')]['phone'][_0x4e65bf('0x1745')]('$')[0x0]:undefined,_0x3c3f04[_0x4e65bf('0xc09')][_0x4e65bf('0x1b6f')]=_0x3c3f04['noop']['callerID']?_0x4e65bf('0xd41')+_0x3c3f04[_0x4e65bf('0xc09')]['callerID']:undefined);_0x3c3f04[_0x4e65bf('0x8ac')]=_0x2d87ef,_0x3c3f04[_0x4e65bf('0x2584')]=_0x4b8542;function _0x2d87ef(){var _0x27cb17=_0x4e65bf;_0x3c3f04[_0x27cb17('0xcd2')]=[];var _0x5ac961=[];_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x62e')]&&_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x62e')][_0x27cb17('0x20dd')]()===_0x27cb17('0x1fdf')&&_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0xf44')]===_0x27cb17('0x3d2')&&(_0x3c3f04['noop']['phone']=_0x3a0e2f[_0x27cb17('0x27f6')]?(_0x3c3f04['noop']['prefix']||'')+'${EXTEN:'+_0x3a0e2f['cutdigits']+'}':(_0x3c3f04['noop'][_0x27cb17('0x2580')]||'')+'${EXTEN}',_0x3a0e2f[_0x27cb17('0x150c')]!==_0x27cb17('0x23ca')?_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x2116')][_0x27cb17('0x281c')](_0x27cb17('0x767'))<0x0&&(_0x3c3f04[_0x27cb17('0xc09')]['options']+=_0x27cb17('0x767')):_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x2116')]=_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x2116')]['replace'](_0x27cb17('0x767'),''));if(_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0xf44')]&&_0x3c3f04['noop'][_0x27cb17('0xf44')]===_0x27cb17('0x261d')){}else switch((_0x3c3f04['noop'][_0x27cb17('0xf2b')]||_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0xf44')])[_0x27cb17('0x20dd')]()){case _0x27cb17('0x2aa'):_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x26d2')]=_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x2623')]+'='+_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x2')];break;case'custom':break;default:_0x5ac961[0x0]=_0x3c3f04[_0x27cb17('0xc09')]['value'],_0x3c3f04[_0x27cb17('0xc09')][_0x27cb17('0x26d2')]=_0x5ac961[_0x27cb17('0x1537')](',');}_0x4b8542(_0x3c3f04['noop']);}function _0x4b8542(_0x5dcc1e){_0x225e7['hide'](_0x5dcc1e);}}const _0x203bce=_0x4bae65;_0x2ad18e[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q','toasty','whatsappAccountApp',_0xb635d2('0x223'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x2ad18e(_0x2489fe,_0x583401,_0xd2582c,_0x59e925,_0xc87b51,_0x3d2399,_0x455904,_0x438c9b){var _0x10e85c=_0xb635d2,_0x3ee07d=this;_0x3ee07d['currentUser']=_0x455904[_0x10e85c('0x1ef8')](),_0x3ee07d['errors']=[],_0x3ee07d['title']=_0x10e85c('0x236b')+(_0x59e925['appType']||_0x59e925[_0x10e85c('0xf2b')])['toUpperCase'](),_0x3ee07d['queue']=angular['copy'](_0x59e925),_0x3ee07d[_0x10e85c('0xb3d')]=_0x438c9b,_0x3ee07d[_0x10e85c('0x1ccb')]={};if(_0x3ee07d['queue'][_0x10e85c('0x26d2')])switch(_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0xf44')]?_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0xf44')][_0x10e85c('0x20dd')]():_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0xf2b')]['toLowerCase']()){case'custom':break;case _0x10e85c('0xc11'):{var _0x4ab951=_0x3ee07d[_0x10e85c('0x26a8')]['appdata'][_0x10e85c('0x1745')](',');_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x6e4')]=_0x4ab951[0x0],_0x3ee07d['queue'][_0x10e85c('0x174b')]=_0x4ab951[0x1],_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0xfcc')]=_0x4ab951['slice'](0x2,_0x4ab951['length'])[_0x10e85c('0x1537')](',');}break;case'amazonlex':{var _0x37d93e=_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x26d2')][_0x10e85c('0x1745')](',');_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x22be')]=_0x37d93e[0x0],_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x700')]=_0x37d93e[0x1],_0x3ee07d['queue']['lexregion']=_0x37d93e[0x2],_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x191a')]=_0x37d93e[0x3],_0x3ee07d['queue']['welcomemessage']=_0x37d93e[_0x10e85c('0xa19')](0x4,_0x37d93e[_0x10e85c('0x25ae')])[_0x10e85c('0x1537')](',');}break;case _0x10e85c('0x400'):{var _0x49e40f=_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x26d2')]['split'](',');_0x3ee07d['queue']['times']=isNaN(_0x49e40f[0x0])?_0x49e40f[0x0]:parseInt(_0x49e40f[0x0],0xa),_0x3ee07d[_0x10e85c('0x26a8')]['text']=_0x49e40f['slice'](0x1,_0x49e40f[_0x10e85c('0x25ae')])['join'](',');}break;case _0x10e85c('0x27e8'):_0x3ee07d[_0x10e85c('0x26a8')]['text']=_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x26d2')];break;case _0x10e85c('0x2aa'):_0x3ee07d['queue'][_0x10e85c('0x2623')]=_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x26d2')]['split']('=')[0x0],_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x2')]=_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x26d2')][_0x10e85c('0x1745')]('=')[0x1];break;case _0x10e85c('0x401'):_0x3ee07d[_0x10e85c('0x26a8')]['project']=_0x3ee07d['queue'][_0x10e85c('0x26d2')];break;default:{var _0x2b021b=_0x3ee07d['queue'][_0x10e85c('0x26d2')]['split'](',');_0x3ee07d[_0x10e85c('0x26a8')]['queue']=_0x32d445()[_0x10e85c('0x14b4')](_0x2b021b[0x0])?_0x2b021b[0x0]:isNaN(_0x2b021b[0x0])?_0x2b021b[0x0]:parseInt(_0x2b021b[0x0],0xa),_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x2058')]=_0x32d445()[_0x10e85c('0x14b4')](_0x2b021b[0x1])?_0x2b021b[0x1]:isNaN(_0x2b021b[0x1])?_0x2b021b[0x1]:parseInt(_0x2b021b[0x1],0xa);}break;}else _0x3ee07d[_0x10e85c('0x26a8')]['queue']=0x12c,_0x3ee07d[_0x10e85c('0x26a8')]['timeout']=0x12c;_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x62e')]&&_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x62e')][_0x10e85c('0x20dd')]()==='outbound'&&_0x3ee07d[_0x10e85c('0x26a8')]['appType'][_0x10e85c('0x20dd')]()===_0x10e85c('0x1d1b')&&(_0x3ee07d['queue'][_0x10e85c('0x2580')]=_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x1ef5')]?_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x1ef5')][_0x10e85c('0x1745')]('$')[0x0]:undefined,_0x3ee07d[_0x10e85c('0x26a8')][_0x10e85c('0x1b6f')]=_0x3ee07d['queue']['callerID']?_0x10e85c('0xd41')+_0x3ee07d[_0x10e85c('0x26a8')]['callerID']:undefined);_0x3ee07d[_0x10e85c('0x8ac')]=_0x4c13fd,_0x3ee07d[_0x10e85c('0x2584')]=_0x24b7b1,_0x455904['hasRole'](_0x10e85c('0xd14'))?_0x3d2399[_0x10e85c('0x17a7')]['get']({'fields':_0x10e85c('0x1555'),'sort':_0x10e85c('0x2623'),'nolimit':_0x10e85c('0x2206')})[_0x10e85c('0xe59')][_0x10e85c('0xe19')](function(_0x571f09){var _0x516964=_0x10e85c;_0x3ee07d['queues']=_0x571f09[_0x516964('0x16a7')]||[];})[_0x10e85c('0x223b')](function(_0x4bd85e){var _0x4dacf4=_0x10e85c;_0xd2582c[_0x4dacf4('0x8c8')]({'title':_0x4bd85e[_0x4dacf4('0x2833')]?_0x4dacf4('0x27f2')+_0x4bd85e[_0x4dacf4('0x2833')]+_0x4dacf4('0x1b7c')+_0x4bd85e[_0x4dacf4('0x1fd7')]:_0x4dacf4('0x19e6'),'msg':_0x4bd85e[_0x4dacf4('0x11d0')]?JSON[_0x4dacf4('0x3ad')](_0x4bd85e[_0x4dacf4('0x11d0')]):_0x4bd85e[_0x4dacf4('0x94f')]()});}):_0x3d2399[_0x10e85c('0x17a7')][_0x10e85c('0x22d5')]({'fields':_0x10e85c('0x1555'),'sort':'name','nolimit':_0x10e85c('0x2206')})[_0x10e85c('0xe59')][_0x10e85c('0xe19')](function(_0x5cdc34){var _0x14237e=_0x10e85c;_0x3ee07d[_0x14237e('0x671')]=_0x5cdc34[_0x14237e('0x16a7')]||[];})[_0x10e85c('0xe19')](function(){var _0x47a498=_0x10e85c;return _0x3d2399['userProfileSection'][_0x47a498('0x22d5')]({'userProfileId':_0x3ee07d[_0x47a498('0x15a5')][_0x47a498('0x1d04')],'sectionId':0x836})['$promise'];})[_0x10e85c('0xe19')](function(_0x1edc4a){var _0x4bb2f3=_0x10e85c,_0x4c1961=_0x1edc4a&&_0x1edc4a[_0x4bb2f3('0x16a7')]?_0x1edc4a[_0x4bb2f3('0x16a7')][0x0]:null;if(!_0x4c1961){var _0x58f016=[],_0x8b9b33=null;_0x3ee07d[_0x4bb2f3('0x26a8')]&&(_0x8b9b33=_0x32d445()[_0x4bb2f3('0xf15')](_0x3ee07d[_0x4bb2f3('0x671')],{'name':_0x3ee07d[_0x4bb2f3('0x26a8')][_0x4bb2f3('0x26a8')]}));for(var _0x28467f=0x0;_0x28467f<_0x3ee07d[_0x4bb2f3('0x671')][_0x4bb2f3('0x25ae')];_0x28467f++){_0x8b9b33&&_0x3ee07d[_0x4bb2f3('0x671')][_0x28467f]['id']===_0x8b9b33['id']&&(_0x3ee07d['queues'][_0x28467f]['canSelect']=![],_0x58f016[_0x4bb2f3('0xb76')](_0x3ee07d[_0x4bb2f3('0x671')][_0x28467f]));}_0x3ee07d['queues']=_0x58f016;}else{if(!_0x4c1961[_0x4bb2f3('0x11fd')])return _0x3d2399['userProfileResource'][_0x4bb2f3('0x22d5')]({'sectionId':_0x4c1961['id']})[_0x4bb2f3('0xe59')][_0x4bb2f3('0xe19')](function(_0x5ad370){var _0x5e7524=_0x4bb2f3,_0xbde746=_0x32d445()[_0x5e7524('0x65a')](_0x5ad370[_0x5e7524('0x16a7')],function(_0x5459a0){var _0x5f3ec3=_0x5e7524;return _0x32d445()['find'](_0x3ee07d[_0x5f3ec3('0x671')],{'id':_0x5459a0[_0x5f3ec3('0x1104')]});}),_0x552ee7=null;_0x3ee07d['queue']&&(_0x552ee7=_0x32d445()[_0x5e7524('0xf15')](_0x3ee07d[_0x5e7524('0x671')],{'name':_0x3ee07d['queue'][_0x5e7524('0x26a8')]}));if(_0x552ee7&&!_0x32d445()[_0x5e7524('0x201a')](_0xbde746,['id',_0x552ee7['id']])){var _0x46c25a=_0x32d445()[_0x5e7524('0xf15')](_0x3ee07d['queues'],{'id':_0x552ee7['id']});_0x46c25a[_0x5e7524('0x1e9d')]=![],_0xbde746[_0x5e7524('0xb76')](_0x46c25a);}_0x3ee07d['queues']=_0xbde746;});}})[_0x10e85c('0x223b')](function(_0x10b6d5){var _0x54c6ff=_0x10e85c;_0xd2582c['error']({'title':_0x10b6d5[_0x54c6ff('0x2833')]?_0x54c6ff('0x27f2')+_0x10b6d5[_0x54c6ff('0x2833')]+'\x20-\x20'+_0x10b6d5['statusText']:'SYSTEM:GETqueues','msg':_0x10b6d5[_0x54c6ff('0x11d0')]?JSON[_0x54c6ff('0x3ad')](_0x10b6d5[_0x54c6ff('0x11d0')]):_0x10b6d5[_0x54c6ff('0x94f')]()});});function _0x4c13fd(){var _0x2dee33=_0x10e85c;_0x3ee07d['errors']=[];var _0x38059e=[];_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0x62e')]&&_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0x62e')][_0x2dee33('0x20dd')]()===_0x2dee33('0x1fdf')&&_0x3ee07d[_0x2dee33('0x26a8')]['appType']===_0x2dee33('0x3d2')&&(_0x3ee07d['queue'][_0x2dee33('0x1ef5')]=_0xc87b51['cutdigits']?(_0x3ee07d['queue']['prefix']||'')+_0x2dee33('0x5d8')+_0xc87b51[_0x2dee33('0x27f6')]+'}':(_0x3ee07d[_0x2dee33('0x26a8')]['prefix']||'')+_0x2dee33('0x16b5'),_0xc87b51[_0x2dee33('0x150c')]!=='none'?_0x3ee07d[_0x2dee33('0x26a8')]['options'][_0x2dee33('0x281c')](_0x2dee33('0x767'))<0x0&&(_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0x2116')]+=_0x2dee33('0x767')):_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0x2116')]=_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0x2116')][_0x2dee33('0x1b42')](_0x2dee33('0x767'),''));var _0x24b9ca=_0x32d445()[_0x2dee33('0xf15')](_0x3ee07d[_0x2dee33('0x671')],{'name':_0x3ee07d['queue'][_0x2dee33('0x26a8')]});_0x24b9ca&&(_0x3ee07d[_0x2dee33('0x26a8')][_0x32d445()[_0x2dee33('0xbf6')](_0x2dee33('0x4b7'))+_0x2dee33('0x27a3')]=_0x24b9ca['id']);if(_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0xf44')]&&_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0xf44')]===_0x2dee33('0x261d')){}else switch((_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0xf2b')]||_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0xf44')])[_0x2dee33('0x20dd')]()){case _0x2dee33('0x2aa'):_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0x26d2')]=_0x3ee07d['queue'][_0x2dee33('0x2623')]+'='+_0x3ee07d[_0x2dee33('0x26a8')]['value'];break;case _0x2dee33('0x261d'):break;default:_0x38059e[0x0]=_0x3ee07d[_0x2dee33('0x26a8')]['queue'],_0x38059e[0x1]=_0x3ee07d[_0x2dee33('0x26a8')][_0x2dee33('0x2058')],_0x3ee07d[_0x2dee33('0x26a8')]['appdata']=_0x38059e[_0x2dee33('0x1537')](',');}_0x24b7b1(_0x3ee07d[_0x2dee33('0x26a8')]);}function _0x24b7b1(_0x10465f){var _0x29f2a6=_0x10e85c;_0x2489fe[_0x29f2a6('0x11ed')](_0x10465f);}}const _0x1e38dd=_0x2ad18e;_0x9585d7[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xd2'),_0xb635d2('0x223'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x9585d7(_0x27b915,_0x3a4cbb,_0xdaa90e,_0x241277,_0x570820,_0x87de11,_0x38e17a,_0x2ca909){var _0xe3f84f=_0xb635d2,_0x5c50ef=this;_0x5c50ef[_0xe3f84f('0x15a5')]=_0x38e17a['getCurrentUser'](),_0x5c50ef[_0xe3f84f('0xcd2')]=[],_0x5c50ef[_0xe3f84f('0x13e4')]=_0xe3f84f('0x236b')+(_0x241277['appType']||_0x241277[_0xe3f84f('0xf2b')])[_0xe3f84f('0x25f7')](),_0x5c50ef[_0xe3f84f('0x1917')]=angular['copy'](_0x241277),_0x5c50ef[_0xe3f84f('0xb3d')]=_0x2ca909,_0x5c50ef[_0xe3f84f('0x1ccb')]={};if(_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x26d2')])switch(_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0xf44')]?_0x5c50ef['system'][_0xe3f84f('0xf44')][_0xe3f84f('0x20dd')]():_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0xf2b')][_0xe3f84f('0x20dd')]()){case _0xe3f84f('0x261d'):break;case _0xe3f84f('0xc11'):{var _0x4b48fd=_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x26d2')][_0xe3f84f('0x1745')](',');_0x5c50ef[_0xe3f84f('0x1917')]['key']=_0x4b48fd[0x0],_0x5c50ef['system'][_0xe3f84f('0x174b')]=_0x4b48fd[0x1],_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0xfcc')]=_0x4b48fd[_0xe3f84f('0xa19')](0x2,_0x4b48fd[_0xe3f84f('0x25ae')])[_0xe3f84f('0x1537')](',');}break;case _0xe3f84f('0x1321'):{var _0x5a5e57=_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x26d2')][_0xe3f84f('0x1745')](',');_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x22be')]=_0x5a5e57[0x0],_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x700')]=_0x5a5e57[0x1],_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x206a')]=_0x5a5e57[0x2],_0x5c50ef[_0xe3f84f('0x1917')]['botname']=_0x5a5e57[0x3],_0x5c50ef['system'][_0xe3f84f('0xfcc')]=_0x5a5e57['slice'](0x4,_0x5a5e57[_0xe3f84f('0x25ae')])['join'](',');}break;case _0xe3f84f('0x400'):{var _0x5a5af4=_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x26d2')][_0xe3f84f('0x1745')](',');_0x5c50ef[_0xe3f84f('0x1917')]['times']=isNaN(_0x5a5af4[0x0])?_0x5a5af4[0x0]:parseInt(_0x5a5af4[0x0],0xa),_0x5c50ef['system']['text']=_0x5a5af4[_0xe3f84f('0xa19')](0x1,_0x5a5af4['length'])[_0xe3f84f('0x1537')](',');}break;case'message':_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x1bc6')]=_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x26d2')];break;case'set':_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x2623')]=_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x26d2')][_0xe3f84f('0x1745')]('=')[0x0],_0x5c50ef['system'][_0xe3f84f('0x2')]=_0x5c50ef[_0xe3f84f('0x1917')]['appdata'][_0xe3f84f('0x1745')]('=')[0x1];break;case _0xe3f84f('0x401'):_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x38b')]=_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x26d2')];break;default:{var _0x3c304a=_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x26d2')]['split'](',');_0x5c50ef['system'][_0xe3f84f('0x19a')]=_0x32d445()[_0xe3f84f('0x14b4')](_0x3c304a[0x0])?_0x3c304a[0x0]:isNaN(_0x3c304a[0x0])?_0x3c304a[0x0]:parseInt(_0x3c304a[0x0],0xa),_0x5c50ef['system'][_0xe3f84f('0x19a5')]=_0x32d445()[_0xe3f84f('0x14b4')](_0x3c304a[0x1])?_0x3c304a[0x1]:isNaN(_0x3c304a[0x1])?_0x3c304a[0x1]:parseInt(_0x3c304a[0x1],0xa);}break;}else _0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x19a5')]='';_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x62e')]&&_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x62e')]['toLowerCase']()===_0xe3f84f('0x1fdf')&&_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0xf44')][_0xe3f84f('0x20dd')]()===_0xe3f84f('0x1d1b')&&(_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x2580')]=_0x5c50ef[_0xe3f84f('0x1917')]['phone']?_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x1ef5')][_0xe3f84f('0x1745')]('$')[0x0]:undefined,_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0x1b6f')]=_0x5c50ef[_0xe3f84f('0x1917')]['callerID']?_0xe3f84f('0xd41')+_0x5c50ef[_0xe3f84f('0x1917')][_0xe3f84f('0xfca')]:undefined);_0x5c50ef['saveWhatsappAccountApp']=_0x4fb448,_0x5c50ef['closeDialog']=_0x2bc1ba,_0x38e17a[_0xe3f84f('0x179e')](_0xe3f84f('0xd14'))?_0x87de11[_0xe3f84f('0x19a5')][_0xe3f84f('0x22d5')]({'fields':_0xe3f84f('0x104'),'sort':_0xe3f84f('0x2623'),'nolimit':_0xe3f84f('0x2206')})[_0xe3f84f('0xe59')][_0xe3f84f('0xe19')](function(_0x4c6b2b){var _0x5691d8=_0xe3f84f;_0x5c50ef['variables']=_0x4c6b2b[_0x5691d8('0x16a7')]||[];})['catch'](function(_0x2faa94){var _0x566395=_0xe3f84f;_0xdaa90e[_0x566395('0x8c8')]({'title':_0x2faa94[_0x566395('0x2833')]?_0x566395('0x27f2')+_0x2faa94[_0x566395('0x2833')]+'\x20-\x20'+_0x2faa94['statusText']:_0x566395('0x282'),'msg':_0x2faa94[_0x566395('0x11d0')]?JSON[_0x566395('0x3ad')](_0x2faa94[_0x566395('0x11d0')]):_0x2faa94[_0x566395('0x94f')]()});}):_0x87de11[_0xe3f84f('0x19a5')][_0xe3f84f('0x22d5')]({'fields':_0xe3f84f('0x104'),'sort':_0xe3f84f('0x2623'),'nolimit':_0xe3f84f('0x2206')})['$promise'][_0xe3f84f('0xe19')](function(_0xddba55){var _0x26ac01=_0xe3f84f;_0x5c50ef['variables']=_0xddba55[_0x26ac01('0x16a7')]||[];})[_0xe3f84f('0xe19')](function(){var _0x3dbb24=_0xe3f84f;return _0x87de11[_0x3dbb24('0xb59')][_0x3dbb24('0x22d5')]({'userProfileId':_0x5c50ef['currentUser'][_0x3dbb24('0x1d04')],'sectionId':0x3f4})[_0x3dbb24('0xe59')];})[_0xe3f84f('0xe19')](function(_0x582355){var _0xc81d65=_0xe3f84f,_0x4b42c7=_0x582355&&_0x582355['rows']?_0x582355['rows'][0x0]:null;if(!_0x4b42c7){var _0x13f370=[],_0x19b08e=null;_0x5c50ef[_0xc81d65('0x1917')]&&(_0x19b08e=_0x32d445()['find'](_0x5c50ef[_0xc81d65('0x1a9e')],{'name':_0x5c50ef[_0xc81d65('0x1917')][_0xc81d65('0x19a5')]}));for(var _0x2e59bb=0x0;_0x2e59bb<_0x5c50ef['variables']['length'];_0x2e59bb++){_0x19b08e&&_0x5c50ef[_0xc81d65('0x1a9e')][_0x2e59bb]['id']===_0x19b08e['id']&&(_0x5c50ef[_0xc81d65('0x1a9e')][_0x2e59bb][_0xc81d65('0x1e9d')]=![],_0x13f370[_0xc81d65('0xb76')](_0x5c50ef[_0xc81d65('0x1a9e')][_0x2e59bb]));}_0x5c50ef[_0xc81d65('0x1a9e')]=_0x13f370;}else{if(!_0x4b42c7[_0xc81d65('0x11fd')])return _0x87de11[_0xc81d65('0xd49')][_0xc81d65('0x22d5')]({'sectionId':_0x4b42c7['id']})['$promise'][_0xc81d65('0xe19')](function(_0x42adae){var _0x111676=_0xc81d65,_0x45bd8c=_0x32d445()[_0x111676('0x65a')](_0x42adae[_0x111676('0x16a7')],function(_0x62c229){var _0x5f4d74=_0x111676;return _0x32d445()[_0x5f4d74('0xf15')](_0x5c50ef[_0x5f4d74('0x1a9e')],{'id':_0x62c229[_0x5f4d74('0x1104')]});}),_0x135628=null;_0x5c50ef[_0x111676('0x1917')]&&(_0x135628=_0x32d445()['find'](_0x5c50ef[_0x111676('0x1a9e')],{'name':_0x5c50ef['system'][_0x111676('0x19a5')]}));if(_0x135628&&!_0x32d445()[_0x111676('0x201a')](_0x45bd8c,['id',_0x135628['id']])){var _0x409dcf=_0x32d445()[_0x111676('0xf15')](_0x5c50ef[_0x111676('0x1a9e')],{'id':_0x135628['id']});_0x409dcf[_0x111676('0x1e9d')]=![],_0x45bd8c[_0x111676('0xb76')](_0x409dcf);}_0x5c50ef['variables']=_0x45bd8c;});}})[_0xe3f84f('0x223b')](function(_0x5ce884){var _0x166063=_0xe3f84f;_0xdaa90e[_0x166063('0x8c8')]({'title':_0x5ce884[_0x166063('0x2833')]?'API:'+_0x5ce884[_0x166063('0x2833')]+_0x166063('0x1b7c')+_0x5ce884[_0x166063('0x1fd7')]:_0x166063('0x287e'),'msg':_0x5ce884[_0x166063('0x11d0')]?JSON[_0x166063('0x3ad')](_0x5ce884['data']):_0x5ce884[_0x166063('0x94f')]()});});function _0x4fb448(){var _0x34366c=_0xe3f84f;_0x5c50ef[_0x34366c('0xcd2')]=[];var _0x3a14a7=[];_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0x62e')]&&_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0x62e')][_0x34366c('0x20dd')]()===_0x34366c('0x1fdf')&&_0x5c50ef['system']['appType']==='outboundDial'&&(_0x5c50ef['system'][_0x34366c('0x1ef5')]=_0x570820[_0x34366c('0x27f6')]?(_0x5c50ef[_0x34366c('0x1917')]['prefix']||'')+_0x34366c('0x5d8')+_0x570820[_0x34366c('0x27f6')]+'}':(_0x5c50ef['system'][_0x34366c('0x2580')]||'')+_0x34366c('0x16b5'),_0x570820['recordingFormat']!=='none'?_0x5c50ef['system'][_0x34366c('0x2116')][_0x34366c('0x281c')](_0x34366c('0x767'))<0x0&&(_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0x2116')]+=_0x34366c('0x767')):_0x5c50ef[_0x34366c('0x1917')]['options']=_0x5c50ef['system']['options']['replace'](_0x34366c('0x767'),''));if(_0x5c50ef['system'][_0x34366c('0xf44')]&&_0x5c50ef[_0x34366c('0x1917')]['appType']===_0x34366c('0x261d')){}else switch((_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0xf2b')]||_0x5c50ef['system'][_0x34366c('0xf44')])[_0x34366c('0x20dd')]()){case'set':_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0x26d2')]=_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0x2623')]+'='+_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0x2')];break;case _0x34366c('0x261d'):break;default:_0x3a14a7[0x0]=_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0x19a')],_0x3a14a7[0x1]=_0x5c50ef[_0x34366c('0x1917')]['variable'],_0x5c50ef[_0x34366c('0x1917')][_0x34366c('0x26d2')]=_0x3a14a7[_0x34366c('0x1537')](',');}_0x2bc1ba(_0x5c50ef[_0x34366c('0x1917')]);}function _0x2bc1ba(_0x35fd02){var _0x3b084d=_0xe3f84f;_0x27b915[_0x3b084d('0x11ed')](_0x35fd02);}}const _0x17d47d=_0x9585d7;_0x51c9f8[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xd2'),_0xb635d2('0x223'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x51c9f8(_0x3e47d7,_0x34ed81,_0x509c26,_0x22a8f9,_0x49c6e6,_0x10aaba,_0x7b878c,_0x5df7e1){var _0x1b3b07=_0xb635d2,_0x5d12ae=this;_0x5d12ae[_0x1b3b07('0x15a5')]=_0x7b878c[_0x1b3b07('0x1ef8')](),_0x5d12ae[_0x1b3b07('0xcd2')]=[],_0x5d12ae['title']=_0x1b3b07('0x236b')+(_0x22a8f9['appType']||_0x22a8f9['app'])[_0x1b3b07('0x25f7')](),_0x5d12ae[_0x1b3b07('0x2037')]=angular[_0x1b3b07('0x89')](_0x22a8f9),_0x5d12ae[_0x1b3b07('0xb3d')]=_0x5df7e1,_0x5d12ae[_0x1b3b07('0x1ccb')]={};if(_0x5d12ae['tag']['appdata'])switch(_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0xf44')]?_0x5d12ae['tag'][_0x1b3b07('0xf44')][_0x1b3b07('0x20dd')]():_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0xf2b')][_0x1b3b07('0x20dd')]()){case _0x1b3b07('0x261d'):break;case'dialogflow':{var _0x165da3=_0x5d12ae['tag']['appdata'][_0x1b3b07('0x1745')](',');_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x6e4')]=_0x165da3[0x0],_0x5d12ae[_0x1b3b07('0x2037')]['language']=_0x165da3[0x1],_0x5d12ae[_0x1b3b07('0x2037')]['welcomemessage']=_0x165da3[_0x1b3b07('0xa19')](0x2,_0x165da3[_0x1b3b07('0x25ae')])[_0x1b3b07('0x1537')](',');}break;case'amazonlex':{var _0x4e6063=_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x26d2')][_0x1b3b07('0x1745')](',');_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x22be')]=_0x4e6063[0x0],_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x700')]=_0x4e6063[0x1],_0x5d12ae['tag'][_0x1b3b07('0x206a')]=_0x4e6063[0x2],_0x5d12ae['tag'][_0x1b3b07('0x191a')]=_0x4e6063[0x3],_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0xfcc')]=_0x4e6063[_0x1b3b07('0xa19')](0x4,_0x4e6063[_0x1b3b07('0x25ae')])[_0x1b3b07('0x1537')](',');}break;case _0x1b3b07('0x400'):{var _0x5baee1=_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x26d2')]['split'](',');_0x5d12ae[_0x1b3b07('0x2037')]['times']=isNaN(_0x5baee1[0x0])?_0x5baee1[0x0]:parseInt(_0x5baee1[0x0],0xa),_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x1bc6')]=_0x5baee1[_0x1b3b07('0xa19')](0x1,_0x5baee1['length'])[_0x1b3b07('0x1537')](',');}break;case _0x1b3b07('0x27e8'):_0x5d12ae['tag'][_0x1b3b07('0x1bc6')]=_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x26d2')];break;case _0x1b3b07('0x2aa'):_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x2623')]=_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x26d2')]['split']('=')[0x0],_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x2')]=_0x5d12ae[_0x1b3b07('0x2037')]['appdata'][_0x1b3b07('0x1745')]('=')[0x1];break;case _0x1b3b07('0x401'):_0x5d12ae[_0x1b3b07('0x2037')]['project']=_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x26d2')];break;default:{var _0x1bd2a9=_0x5d12ae[_0x1b3b07('0x2037')]['appdata'][_0x1b3b07('0x1745')](',');_0x5d12ae[_0x1b3b07('0x2037')]['tag']=_0x32d445()[_0x1b3b07('0x14b4')](_0x1bd2a9[0x0])?_0x1bd2a9[0x0]:isNaN(_0x1bd2a9[0x0])?_0x1bd2a9[0x0]:parseInt(_0x1bd2a9[0x0],0xa);}break;}else{}_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x62e')]&&_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x62e')]['toLowerCase']()===_0x1b3b07('0x1fdf')&&_0x5d12ae['tag']['appType']['toLowerCase']()===_0x1b3b07('0x1d1b')&&(_0x5d12ae['tag']['prefix']=_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x1ef5')]?_0x5d12ae['tag'][_0x1b3b07('0x1ef5')][_0x1b3b07('0x1745')]('$')[0x0]:undefined,_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0x1b6f')]=_0x5d12ae['tag'][_0x1b3b07('0xfca')]?'CALLERID(all)='+_0x5d12ae[_0x1b3b07('0x2037')][_0x1b3b07('0xfca')]:undefined);_0x5d12ae[_0x1b3b07('0x8ac')]=_0x5472d5,_0x5d12ae[_0x1b3b07('0x2584')]=_0x3235bd,_0x7b878c[_0x1b3b07('0x179e')]('admin')?_0x10aaba['tag'][_0x1b3b07('0x22d5')]({'fields':_0x1b3b07('0x104'),'sort':'name','nolimit':_0x1b3b07('0x2206')})['$promise'][_0x1b3b07('0xe19')](function(_0x4bf446){var _0x317497=_0x1b3b07;_0x5d12ae['tags']=_0x4bf446[_0x317497('0x16a7')]||[];})[_0x1b3b07('0x223b')](function(_0x3c1253){var _0x1a9500=_0x1b3b07;_0x509c26['error']({'title':_0x3c1253[_0x1a9500('0x2833')]?'API:'+_0x3c1253[_0x1a9500('0x2833')]+_0x1a9500('0x1b7c')+_0x3c1253['statusText']:_0x1a9500('0x2557'),'msg':_0x3c1253[_0x1a9500('0x11d0')]?JSON[_0x1a9500('0x3ad')](_0x3c1253['data']):_0x3c1253[_0x1a9500('0x94f')]()});}):_0x10aaba[_0x1b3b07('0x2037')][_0x1b3b07('0x22d5')]({'fields':_0x1b3b07('0x104'),'sort':'name','nolimit':_0x1b3b07('0x2206')})[_0x1b3b07('0xe59')]['then'](function(_0x2faf9b){var _0x24c2c3=_0x1b3b07;_0x5d12ae['tags']=_0x2faf9b[_0x24c2c3('0x16a7')]||[];})[_0x1b3b07('0xe19')](function(){var _0x1fb1dd=_0x1b3b07;return _0x10aaba[_0x1fb1dd('0xb59')][_0x1fb1dd('0x22d5')]({'userProfileId':_0x5d12ae[_0x1fb1dd('0x15a5')][_0x1fb1dd('0x1d04')],'sectionId':0x3f0})[_0x1fb1dd('0xe59')];})[_0x1b3b07('0xe19')](function(_0x2eca84){var _0xf9d022=_0x1b3b07,_0x1722a1=_0x2eca84&&_0x2eca84[_0xf9d022('0x16a7')]?_0x2eca84[_0xf9d022('0x16a7')][0x0]:null;if(!_0x1722a1){var _0x47d8db=[],_0x3faed2=null;_0x5d12ae[_0xf9d022('0x2037')]&&(_0x3faed2=_0x32d445()[_0xf9d022('0xf15')](_0x5d12ae[_0xf9d022('0x1105')],{'name':_0x5d12ae[_0xf9d022('0x2037')][_0xf9d022('0x2037')]}));for(var _0x52e5be=0x0;_0x52e5be<_0x5d12ae[_0xf9d022('0x1105')][_0xf9d022('0x25ae')];_0x52e5be++){_0x3faed2&&_0x5d12ae['tags'][_0x52e5be]['id']===_0x3faed2['id']&&(_0x5d12ae[_0xf9d022('0x1105')][_0x52e5be][_0xf9d022('0x1e9d')]=![],_0x47d8db[_0xf9d022('0xb76')](_0x5d12ae[_0xf9d022('0x1105')][_0x52e5be]));}_0x5d12ae[_0xf9d022('0x1105')]=_0x47d8db;}else{if(!_0x1722a1[_0xf9d022('0x11fd')])return _0x10aaba[_0xf9d022('0xd49')][_0xf9d022('0x22d5')]({'sectionId':_0x1722a1['id']})[_0xf9d022('0xe59')][_0xf9d022('0xe19')](function(_0x26e77a){var _0x3613d5=_0xf9d022,_0x47445=_0x32d445()['map'](_0x26e77a[_0x3613d5('0x16a7')],function(_0x3633af){var _0xd9cef3=_0x3613d5;return _0x32d445()[_0xd9cef3('0xf15')](_0x5d12ae[_0xd9cef3('0x1105')],{'id':_0x3633af[_0xd9cef3('0x1104')]});}),_0x34e2c2=null;_0x5d12ae[_0x3613d5('0x2037')]&&(_0x34e2c2=_0x32d445()[_0x3613d5('0xf15')](_0x5d12ae[_0x3613d5('0x1105')],{'name':_0x5d12ae[_0x3613d5('0x2037')]['tag']}));if(_0x34e2c2&&!_0x32d445()['some'](_0x47445,['id',_0x34e2c2['id']])){var _0x3fa549=_0x32d445()[_0x3613d5('0xf15')](_0x5d12ae[_0x3613d5('0x1105')],{'id':_0x34e2c2['id']});_0x3fa549[_0x3613d5('0x1e9d')]=![],_0x47445[_0x3613d5('0xb76')](_0x3fa549);}_0x5d12ae[_0x3613d5('0x1105')]=_0x47445;});}})[_0x1b3b07('0x223b')](function(_0x5472dc){var _0x181154=_0x1b3b07;_0x509c26[_0x181154('0x8c8')]({'title':_0x5472dc[_0x181154('0x2833')]?_0x181154('0x27f2')+_0x5472dc[_0x181154('0x2833')]+_0x181154('0x1b7c')+_0x5472dc['statusText']:_0x181154('0x25d1'),'msg':_0x5472dc['data']?JSON[_0x181154('0x3ad')](_0x5472dc[_0x181154('0x11d0')]):_0x5472dc['toString']()});});function _0x5472d5(){var _0x308199=_0x1b3b07;_0x5d12ae[_0x308199('0xcd2')]=[];var _0x315b75=[];_0x5d12ae[_0x308199('0x2037')]['type']&&_0x5d12ae['tag'][_0x308199('0x62e')][_0x308199('0x20dd')]()===_0x308199('0x1fdf')&&_0x5d12ae[_0x308199('0x2037')][_0x308199('0xf44')]===_0x308199('0x3d2')&&(_0x5d12ae[_0x308199('0x2037')]['phone']=_0x49c6e6[_0x308199('0x27f6')]?(_0x5d12ae[_0x308199('0x2037')]['prefix']||'')+_0x308199('0x5d8')+_0x49c6e6[_0x308199('0x27f6')]+'}':(_0x5d12ae['tag']['prefix']||'')+_0x308199('0x16b5'),_0x49c6e6['recordingFormat']!==_0x308199('0x23ca')?_0x5d12ae[_0x308199('0x2037')][_0x308199('0x2116')][_0x308199('0x281c')](_0x308199('0x767'))<0x0&&(_0x5d12ae['tag'][_0x308199('0x2116')]+='U(xcally-mixmonitor-context)'):_0x5d12ae['tag'][_0x308199('0x2116')]=_0x5d12ae['tag'][_0x308199('0x2116')][_0x308199('0x1b42')]('U(xcally-mixmonitor-context)',''));var _0x1eacd0=_0x32d445()[_0x308199('0xf15')](_0x5d12ae[_0x308199('0x1105')],{'name':_0x5d12ae[_0x308199('0x2037')][_0x308199('0x2037')]});_0x1eacd0&&(_0x5d12ae[_0x308199('0x2037')][_0x308199('0x30a')]=_0x1eacd0['id']);if(_0x5d12ae['tag'][_0x308199('0xf44')]&&_0x5d12ae['tag'][_0x308199('0xf44')]===_0x308199('0x261d')){}else switch((_0x5d12ae[_0x308199('0x2037')][_0x308199('0xf2b')]||_0x5d12ae['tag'][_0x308199('0xf44')])[_0x308199('0x20dd')]()){case _0x308199('0x2aa'):_0x5d12ae['tag'][_0x308199('0x26d2')]=_0x5d12ae[_0x308199('0x2037')]['name']+'='+_0x5d12ae[_0x308199('0x2037')]['value'];break;case'custom':break;default:_0x315b75[0x0]=_0x5d12ae[_0x308199('0x2037')][_0x308199('0x2037')],_0x5d12ae['tag'][_0x308199('0x26d2')]=_0x315b75['join'](',');}_0x3235bd(_0x5d12ae[_0x308199('0x2037')]);}function _0x3235bd(_0x40453f){_0x3e47d7['hide'](_0x40453f);}}const _0x1790d9=_0x51c9f8;_0x1d7f21[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c1d'),_0xb635d2('0x63c'),_0xb635d2('0xeb6'),'$q',_0xb635d2('0x2493'),_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),_0xb635d2('0xffc'),_0xb635d2('0x2730')];function _0x1d7f21(_0x211e1a,_0x5130dc,_0x5169e5,_0x59183c,_0x35c4d0,_0x2dbe6e,_0x13b541,_0x2b3e75,_0x4aa1c7,_0x53725f,_0xaddcd3){var _0x3740e0=_0xb635d2,_0x2e11ae=this;_0x2e11ae[_0x3740e0('0x15a5')]=_0xaddcd3[_0x3740e0('0x1ef8')](),_0x2e11ae[_0x3740e0('0x223')]={},_0x2e11ae[_0x3740e0('0x647')]={'count':0x0,'rows':[]},_0x2e11ae[_0x3740e0('0x2477')]=[],_0x2e11ae['crudPermissions'],_0x2e11ae[_0x3740e0('0xa16')]={'read':'null','closed':_0x3740e0('0x1046'),'sort':_0x3740e0('0x962'),'includeAll':_0x3740e0('0x2206'),'limit':0xa,'page':0x1},_0x2e11ae[_0x3740e0('0x15f9')]=_0x2aa8b2,_0x2e11ae[_0x3740e0('0x126c')]=_0x30d77a,_0x2e11ae['whatsappInteractionDownload']=_0x5aecd0,_0x2e11ae[_0x3740e0('0x425')]=_0x22cd24,_0x2e11ae[_0x3740e0('0xcb1')]=_0xa90402,_0x2e11ae[_0x3740e0('0x1faf')]=_0x1906c6,_0x2e11ae[_0x3740e0('0x1f45')]=_0x2ad49f,_0x2e11ae[_0x3740e0('0x1f41')]=_0x5a7eeb,_0x2e11ae[_0x3740e0('0x18f3')]=_0x415825,_0x2e11ae['deleteSelectedWhatsappAccountInteractions']=_0x5ef684;function _0x2aa8b2(_0x36a7ab,_0x45dca1){var _0x22e68f=_0x3740e0;_0x2e11ae[_0x22e68f('0x223')]=_0x36a7ab,_0x2e11ae['crudPermissions']=typeof _0x45dca1!==_0x22e68f('0x1143')?_0x45dca1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2e11ae[_0x22e68f('0xa16')][_0x22e68f('0x220b')]=_0x2e11ae[_0x22e68f('0x223')]['id'],_0x2e11ae['advancedSearch']={'fields':_0x39ff97()},_0x35285e();}function _0x35285e(){var _0x132efe=_0x3740e0;return _0x53725f[_0x132efe('0x2037')][_0x132efe('0x22d5')]()[_0x132efe('0xe59')][_0x132efe('0xe19')](function(_0x173311){var _0x505152=_0x132efe;_0x2e11ae[_0x505152('0x1105')]=_0x173311||{'count':0x0,'rows':[]};})[_0x132efe('0xe19')](function(){var _0x47606f=_0x132efe;_0x2e11ae[_0x47606f('0x1fd3')]=_0x367d51();});}function _0x367d51(){var _0xba2c0f=_0x3740e0;return[{'name':'Start\x20Date','key':'createdAt','type':_0xba2c0f('0xf6d'),'label':_0xba2c0f('0x19b7')},{'name':_0xba2c0f('0x1e63'),'key':'read','type':_0xba2c0f('0x2e6'),'label':_0xba2c0f('0x2738'),'customOptions':[{'value':0x0,'translate':_0xba2c0f('0x10db')},{'value':0x1,'translate':_0xba2c0f('0x3b4')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0xba2c0f('0x20e'),'key':_0xba2c0f('0x1835'),'type':'select','label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0xba2c0f('0x1c37')},{'value':0x1,'translate':_0xba2c0f('0x1bbb')},{'value':null,'translate':_0xba2c0f('0x296')}]},{'name':'Agent','key':'UserId','type':_0xba2c0f('0x2e6'),'label':_0xba2c0f('0x120c'),'customOptions':[{'value':'null','translate':_0xba2c0f('0x2094')},{'value':undefined,'translate':_0xba2c0f('0x296')}]},{'name':_0xba2c0f('0x1172'),'key':_0xba2c0f('0x2037'),'type':_0xba2c0f('0x19a0'),'label':_0xba2c0f('0x23c7'),'options':_0x2e11ae[_0xba2c0f('0x1105')][_0xba2c0f('0x16a7')],'placeholder':_0xba2c0f('0x14ec')}];}function _0x39ff97(){var _0xcbdf0f=_0x3740e0;return[{'name':'Id','column':'id','type':'number'},{'name':_0xcbdf0f('0x1286'),'column':'Contact','type':_0xcbdf0f('0x5c0'),'options':{'searchFields':[_0xcbdf0f('0x2566'),_0xcbdf0f('0x151f'),_0xcbdf0f('0x1211')],'route':{'model':'cmContact','action':_0xcbdf0f('0x22d5'),'params':{'fields':_0xcbdf0f('0x75'),'Contact':_0xcbdf0f('0x217d'),'nolimit':!![]}},'extraOperators':[_0xcbdf0f('0x1247')],'excludedOperators':[_0xcbdf0f('0x1f51')]}},{'name':_0xcbdf0f('0x375'),'column':_0xcbdf0f('0x9ec'),'type':_0xcbdf0f('0x1bc6'),'options':{'excludedOperators':[_0xcbdf0f('0x1d15'),_0xcbdf0f('0x1f51')]}},{'name':'Body','column':'plainBody','type':_0xcbdf0f('0x1bc6'),'options':{'excludedOperators':[_0xcbdf0f('0x1d15'),_0xcbdf0f('0x1f51')]}},{'name':_0xcbdf0f('0x20e'),'column':_0xcbdf0f('0x1835'),'type':'select','values':[{'id':0x0,'translate':_0xcbdf0f('0x1c37')},{'id':0x1,'translate':_0xcbdf0f('0x1bbb')}],'options':{'excludedOperators':[_0xcbdf0f('0x1f51')]}},{'name':_0xcbdf0f('0x142e'),'column':_0xcbdf0f('0x2630'),'type':'autocomplete','options':{'table':'i','route':{'model':_0xcbdf0f('0x10c6'),'action':_0xcbdf0f('0x22d5'),'params':{'role':_0xcbdf0f('0x108'),'fields':_0xcbdf0f('0x194c'),'nolimit':!![]}},'searchFields':[_0xcbdf0f('0xe11'),_0xcbdf0f('0x2623')],'extraOperators':[_0xcbdf0f('0x1247')],'excludedOperators':[_0xcbdf0f('0x1f51')]}},{'name':_0xcbdf0f('0x1e7b'),'column':_0xcbdf0f('0x1172'),'type':'multiselect','options':{'route':{'model':_0xcbdf0f('0x2037'),'action':_0xcbdf0f('0x22d5'),'params':{'nolimit':!![]}},'excludedOperators':[_0xcbdf0f('0x19a3')]}},{'name':_0xcbdf0f('0x141d'),'column':_0xcbdf0f('0x15c9'),'type':'date','options':{'excludedOperators':['$ne']}},{'name':_0xcbdf0f('0x2233'),'column':_0xcbdf0f('0x98d'),'type':_0xcbdf0f('0x2e6'),'values':[{'id':0x1,'translate':_0xcbdf0f('0x3b4')},{'id':0x0,'translate':_0xcbdf0f('0x10db')}],'options':{'excludedOperators':[_0xcbdf0f('0x1f51')]}}];}function _0x2ad49f(){var _0x2c6aa8=_0x3740e0;_0x13b541[_0x2c6aa8('0x26b2')]({'controller':_0x2c6aa8('0x822'),'controllerAs':'vm','templateUrl':_0x5c468d,'parent':angular[_0x2c6aa8('0x24a1')](_0x2b3e75['body']),'clickOutsideToClose':![],'locals':{'fields':_0x2e11ae[_0x2c6aa8('0x164')]['fields'],'color':undefined,'storagePath':_0x2c6aa8('0xe1e')},'fullscreen':!![]})[_0x2c6aa8('0xe19')](function(_0x21db69){var _0x3da818=_0x2c6aa8;_0x2e11ae[_0x3da818('0xa16')][_0x3da818('0x1cc8')]=_0x21db69===![]?undefined:_0x21db69;if(_0x2e11ae[_0x3da818('0xa16')][_0x3da818('0x1cc8')])_0xa90402();else _0x21db69===![]&&_0xa90402();})['catch'](function(_0x5ef728){var _0x29ef14=_0x2c6aa8;_0x4aa1c7[_0x29ef14('0x8c8')]({'title':_0x29ef14('0x71e'),'msg':_0x5ef728[_0x29ef14('0x11d0')]?JSON[_0x29ef14('0x3ad')](_0x5ef728['data']['message']):_0x5ef728['toString']()});});}function _0x5aecd0(_0x2173b8,_0x5511b4,_0x4f1512){var _0x7c6ae1=_0x3740e0;return _0x53725f['whatsappInteraction'][_0x7c6ae1('0x1d1e')]({'id':_0x2173b8['id'],'exists':!![],'attachments':_0x4f1512})[_0x7c6ae1('0xe59')]['then'](function(_0x4a913f){var _0x577046=_0x7c6ae1,_0x19820e=[_0x4a913f[_0x577046('0x17ab')]],_0x1e26bb='interaction'+_0x2173b8['id'],_0x3cc2fd=new Blob(_0x19820e,{'type':_0x4a913f['type']});_0x1e26bb='whatsapp-interaction'+_0x2173b8['id']+_0x577046('0x985');var _0x3015ea=window[_0x577046('0x18fa')][_0x577046('0x9a1')]('a');_0x3015ea[_0x577046('0xede')](_0x577046('0xcb7'),URL[_0x577046('0x1360')](_0x3cc2fd)),_0x3015ea[_0x577046('0xede')](_0x577046('0x1d1e'),_0x1e26bb),document[_0x577046('0x19b2')]['appendChild'](_0x3015ea),_0x3015ea[_0x577046('0xfe7')]();})[_0x7c6ae1('0x223b')](function(_0xc1266b){var _0xdb4df0=_0x7c6ae1;if(_0xc1266b[_0xdb4df0('0x11d0')]&&_0xc1266b[_0xdb4df0('0x11d0')][_0xdb4df0('0xcd2')]&&_0xc1266b[_0xdb4df0('0x11d0')][_0xdb4df0('0xcd2')][_0xdb4df0('0x25ae')])for(var _0x4c1340=0x0;_0x4c1340<_0xc1266b[_0xdb4df0('0x11d0')][_0xdb4df0('0xcd2')]['length'];_0x4c1340+=0x1){_0x4aa1c7[_0xdb4df0('0x8c8')]({'title':_0xc1266b[_0xdb4df0('0x11d0')][_0xdb4df0('0xcd2')][_0x4c1340]['type'],'msg':_0xc1266b[_0xdb4df0('0x11d0')]['errors'][_0x4c1340]['message']});}else _0x4aa1c7[_0xdb4df0('0x8c8')]({'title':_0xc1266b[_0xdb4df0('0x2833')]?_0xdb4df0('0x27f2')+_0xc1266b[_0xdb4df0('0x2833')]+_0xdb4df0('0x1b7c')+_0xc1266b[_0xdb4df0('0x1fd7')]:_0xdb4df0('0x4dd'),'msg':_0xc1266b[_0xdb4df0('0x11d0')]?JSON[_0xdb4df0('0x3ad')](_0xc1266b[_0xdb4df0('0x11d0')][_0xdb4df0('0x27e8')]):_0xc1266b[_0xdb4df0('0x94f')]()});});}function _0x30d77a(_0x10b411,_0x3cb056){var _0x285bef=_0x3740e0,_0x51ef7b=_0x13b541[_0x285bef('0xa5')]()['title'](_0x285bef('0x1f13'))[_0x285bef('0x221c')](_0x285bef('0xab2')+(_0x10b411[_0x285bef('0x2623')]||_0x10b411['id']&&_0x32d445()['upperFirst'](_0x285bef('0x1fcc'))+_0x10b411['id']||_0x285bef('0xf6'))+_0x285bef('0x27bb')+_0x285bef('0x21bd'))[_0x285bef('0x4d1')](_0x285bef('0x1a82'))[_0x285bef('0x1345')](_0x3cb056)['ok']('OK')[_0x285bef('0x2c1')](_0x285bef('0x17'));_0x13b541[_0x285bef('0x26b2')](_0x51ef7b)[_0x285bef('0xe19')](function(){_0x415825(_0x10b411);},function(){var _0x2d5860=_0x285bef;console['log'](_0x2d5860('0x17'));});}function _0x22cd24(_0x2cf71a){var _0x36d3ee=_0x3740e0;_0x2e11ae[_0x36d3ee('0x647')]=_0x2cf71a||{'count':0x0,'rows':[]};for(var _0x4dbb5c=0x0;_0x4dbb5c<_0x2e11ae[_0x36d3ee('0x647')][_0x36d3ee('0x16a7')]['length'];_0x4dbb5c+=0x1){var _0x1363a0=_0x2e11ae[_0x36d3ee('0x647')][_0x36d3ee('0x16a7')][_0x4dbb5c];_0x499689(_0x1363a0),_0x1363a0[_0x36d3ee('0x2237')][_0x36d3ee('0x2623')]=_0x242bee(_0x1363a0);}}function _0xa90402(){var _0x35614b=_0x3740e0;_0x2e11ae['query'][_0x35614b('0xab0')]=(_0x2e11ae['query'][_0x35614b('0xc08')]-0x1)*_0x2e11ae['query'][_0x35614b('0x1b6d')],_0x2e11ae[_0x35614b('0x9c8')]=_0x53725f[_0x35614b('0x1888')][_0x35614b('0x22d5')](_0x2e11ae[_0x35614b('0xa16')],_0x22cd24)[_0x35614b('0xe59')];}function _0x1906c6(_0x1d83c2,_0x3d9f06){var _0x253eb0=_0x3740e0;_0x13b541[_0x253eb0('0x26b2')]({'controller':_0x253eb0('0x1b1'),'controllerAs':'vm','templateUrl':_0x43d9d1,'parent':angular[_0x253eb0('0x24a1')](_0x2b3e75[_0x253eb0('0x19b2')]),'targetEvent':_0x1d83c2,'clickOutsideToClose':!![],'onShowing':function _0x44b1f4(_0x3e7aa6){var _0x16283d=_0x253eb0;_0x3e7aa6['vm'][_0x16283d('0x15f9')]({'id':0x1,'channel':_0x16283d('0x4b7'),'interaction':_0x3d9f06,'spy':!![]},_0x5130dc['$parent']['vm'][_0x16283d('0x22f1')]);}});}function _0x415825(_0x43a9e8){var _0x12f468=_0x3740e0;_0x53725f[_0x12f468('0x1888')][_0x12f468('0x229e')]({'id':_0x43a9e8['id']})[_0x12f468('0xe59')]['then'](function(){var _0x108483=_0x12f468;_0x32d445()[_0x108483('0xa8b')](_0x2e11ae[_0x108483('0x647')]['rows'],{'id':_0x43a9e8['id']}),_0x2e11ae[_0x108483('0x647')][_0x108483('0x148b')]-=0x1,!_0x2e11ae['whatsappAccountInteractions'][_0x108483('0x16a7')][_0x108483('0x25ae')]&&_0xa90402(),_0x4aa1c7['success']({'title':_0x108483('0x5c'),'msg':_0x43a9e8[_0x108483('0x2623')]?_0x43a9e8[_0x108483('0x2623')]+'\x20has\x20been\x20deleted!':''});})[_0x12f468('0x223b')](function(_0x33816f){var _0x8ecfa8=_0x12f468;if(_0x33816f['data']&&_0x33816f[_0x8ecfa8('0x11d0')]['errors']&&_0x33816f['data'][_0x8ecfa8('0xcd2')][_0x8ecfa8('0x25ae')]){_0x2e11ae[_0x8ecfa8('0xcd2')]=_0x33816f['data'][_0x8ecfa8('0xcd2')]||[{'message':_0x33816f[_0x8ecfa8('0x94f')](),'type':_0x8ecfa8('0x1ef7')}];for(var _0xb8ee5a=0x0;_0xb8ee5a<_0x33816f['data']['errors'][_0x8ecfa8('0x25ae')];_0xb8ee5a++){_0x4aa1c7['error']({'title':_0x33816f[_0x8ecfa8('0x11d0')][_0x8ecfa8('0xcd2')][_0xb8ee5a][_0x8ecfa8('0x62e')],'msg':_0x33816f[_0x8ecfa8('0x11d0')]['errors'][_0xb8ee5a][_0x8ecfa8('0x27e8')]});}}else _0x4aa1c7[_0x8ecfa8('0x8c8')]({'title':_0x33816f['status']?_0x8ecfa8('0x27f2')+_0x33816f[_0x8ecfa8('0x2833')]+_0x8ecfa8('0x1b7c')+_0x33816f[_0x8ecfa8('0x1fd7')]:_0x8ecfa8('0x1ef7'),'msg':_0x33816f[_0x8ecfa8('0x11d0')]?JSON['stringify'](_0x33816f[_0x8ecfa8('0x11d0')][_0x8ecfa8('0x27e8')]):_0x33816f[_0x8ecfa8('0x27e8')]||_0x33816f['toString']()});});}function _0x5a7eeb(){var _0x43cc18=_0x3740e0,_0xd86a7e=angular[_0x43cc18('0x89')](_0x2e11ae['selectedWhatsappAccountInteractions']);return _0x2e11ae['selectedWhatsappAccountInteractions']=[],_0xd86a7e;}function _0x5ef684(_0x444233){var _0x2e6889=_0x3740e0,_0x58c5fd=_0x13b541[_0x2e6889('0xa5')]()['title'](_0x2e6889('0x275c'))[_0x2e6889('0x221c')](''+_0x2e11ae['selectedWhatsappAccountInteractions'][_0x2e6889('0x25ae')]+_0x2e6889('0x5bc')+'\x20will\x20be\x20deleted.')[_0x2e6889('0x4d1')]('delete\x20interactions')[_0x2e6889('0x1345')](_0x444233)['ok']('OK')[_0x2e6889('0x2c1')]('CANCEL');_0x13b541[_0x2e6889('0x26b2')](_0x58c5fd)[_0x2e6889('0xe19')](function(){var _0x4dc424=_0x2e6889;_0x2e11ae['selectedWhatsappAccountInteractions'][_0x4dc424('0x1d7e')](function(_0x29e474){_0x415825(_0x29e474);}),_0x2e11ae[_0x4dc424('0x2477')]=[];});}function _0x499689(_0x121f0c){var _0xe8544b=_0x3740e0;_0x121f0c[_0xe8544b('0x1286')]?_0x121f0c['contactName']=(_0x121f0c[_0xe8544b('0x1286')][_0xe8544b('0x2566')]||'')+'\x20'+(_0x121f0c['Contact'][_0xe8544b('0x151f')]||''):_0x121f0c[_0xe8544b('0x130c')]=_0x35c4d0[_0xe8544b('0x2159')](_0xe8544b('0x27df'));}function _0x242bee(_0x77bf0f){var _0x566863=_0x3740e0;if(_0x77bf0f[_0x566863('0x43d')])return _0x77bf0f[_0x566863('0x43d')]===_0x2e11ae['currentUser']['id']?_0x35c4d0['instant'](_0x566863('0x132d')):_0x77bf0f[_0x566863('0x2237')]['fullname']+'\x20<'+_0x77bf0f[_0x566863('0x2237')]['internal']+'>';return _0x35c4d0[_0x566863('0x2159')](_0x566863('0x2094'));}var _0xb27ef9=!![],_0x1a1378=0x1;_0x5130dc[_0x3740e0('0x107')](_0x3740e0('0x1607'),function(_0x486edc,_0x22a24d){var _0x5e14d7=_0x3740e0;_0xb27ef9?_0x2dbe6e(function(){_0xb27ef9=![];}):(!_0x22a24d&&(_0x1a1378=_0x2e11ae[_0x5e14d7('0xa16')][_0x5e14d7('0xc08')]),_0x486edc!==_0x22a24d&&(_0x2e11ae[_0x5e14d7('0xa16')]['page']=0x1),!_0x486edc&&(_0x2e11ae[_0x5e14d7('0xa16')]['page']=_0x1a1378),_0xa90402());});}const _0x1e4ed5=_0x1d7f21,_0xee6200=_0x59426a['p']+_0xb635d2('0x99d');_0x1eb514[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x2493'),'license','setting',_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x223'),'userProfileSection'];function _0x1eb514(_0x23522e,_0x19d52a,_0x339d3b,_0x4f50c2,_0x3cdc4e,_0x171a26,_0x133451,_0x37f899,_0x4a9bd0,_0x590bd3,_0x4a08bd,_0x10d6bc){var _0x40fee0=_0xb635d2,_0x37585b=this;_0x37585b[_0x40fee0('0x15a5')]=_0x590bd3[_0x40fee0('0x1ef8')](),_0x37585b[_0x40fee0('0x5c1')]=_0x171a26,_0x37585b[_0x40fee0('0x22f1')]=_0x133451,_0x37585b[_0x40fee0('0x25ac')]=_0x37585b[_0x40fee0('0x22f1')][_0x40fee0('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x37585b[_0x40fee0('0x2170')]=_0x19d52a['protocol']()+'://'+_0x19d52a[_0x40fee0('0x3b7')](),_0x37585b[_0x40fee0('0x223')]=_0x4a08bd||_0x23522e[_0x40fee0('0x2ef')][_0x40fee0('0x223')]||{},_0x37585b[_0x40fee0('0xb59')]=_0x10d6bc&&_0x10d6bc[_0x40fee0('0x148b')]==0x1?_0x10d6bc[_0x40fee0('0x16a7')][0x0]:null,_0x37585b[_0x40fee0('0xb3d')]=_0x590bd3[_0x40fee0('0xd31')](_0x37585b['userProfileSection']?_0x37585b[_0x40fee0('0xb59')][_0x40fee0('0xb3d')]:null),_0x37585b[_0x40fee0('0x1ccb')]={},_0x37585b['selectedTab']=_0x23522e[_0x40fee0('0x2ef')][_0x40fee0('0x435')]||0x0,_0x37585b[_0x40fee0('0x1407')]=_0x4ec708,_0x37585b['alert']=_0x4a9bd0[_0x40fee0('0x1e67')],_0x37585b[_0x40fee0('0x9fe')]=_0x100a9b,_0x37585b['saveWhatsappAccount']=_0x5b57a9,_0x590bd3[_0x40fee0('0x179e')](_0x40fee0('0xd14'))?_0x37f899['cmList']['get']({'fields':_0x40fee0('0x104'),'sort':_0x40fee0('0x2623')})['$promise'][_0x40fee0('0xe19')](function(_0x40200c){var _0x160085=_0x40fee0;_0x37585b[_0x160085('0x9f8')]=_0x40200c[_0x160085('0x16a7')]||[];})[_0x40fee0('0x223b')](function(_0x2591ac){var _0x136420=_0x40fee0;_0x4a9bd0[_0x136420('0x8c8')]({'title':_0x2591ac['status']?'API:'+_0x2591ac['status']+_0x136420('0x1b7c')+_0x2591ac[_0x136420('0x1fd7')]:_0x136420('0x2012'),'msg':_0x2591ac[_0x136420('0x11d0')]?JSON[_0x136420('0x3ad')](_0x2591ac[_0x136420('0x11d0')]):_0x2591ac[_0x136420('0x94f')]()});}):_0x37f899[_0x40fee0('0x1bbd')][_0x40fee0('0x22d5')]({'fields':_0x40fee0('0x104'),'sort':_0x40fee0('0x2623')})[_0x40fee0('0xe59')]['then'](function(_0x386cca){var _0x560daf=_0x40fee0;_0x37585b[_0x560daf('0x9f8')]=_0x386cca[_0x560daf('0x16a7')]||[];})[_0x40fee0('0xe19')](function(){var _0x540ada=_0x40fee0;return _0x37f899[_0x540ada('0xb59')][_0x540ada('0x22d5')]({'userProfileId':_0x37585b['currentUser'][_0x540ada('0x1d04')],'sectionId':0x12d})[_0x540ada('0xe59')];})[_0x40fee0('0xe19')](function(_0x153f39){var _0x215f9b=_0x40fee0,_0x4c7d68=_0x153f39&&_0x153f39[_0x215f9b('0x16a7')]?_0x153f39[_0x215f9b('0x16a7')][0x0]:null;if(!_0x4c7d68){var _0xf371f3=[],_0x1a471b=null;_0x37585b[_0x215f9b('0x223')]&&(_0x1a471b=_0x32d445()[_0x215f9b('0xf15')](_0x37585b['lists'],{'id':Number(_0x37585b[_0x215f9b('0x223')][_0x215f9b('0x2463')])}));for(var _0x2ee178=0x0;_0x2ee178<_0x37585b[_0x215f9b('0x9f8')][_0x215f9b('0x25ae')];_0x2ee178++){_0x1a471b&&_0x37585b[_0x215f9b('0x9f8')][_0x2ee178]['id']===_0x1a471b['id']&&(_0x37585b[_0x215f9b('0x9f8')][_0x2ee178]['canSelect']=![],_0xf371f3[_0x215f9b('0xb76')](_0x37585b[_0x215f9b('0x9f8')][_0x2ee178]));}_0x37585b[_0x215f9b('0x9f8')]=_0xf371f3;}else{if(!_0x4c7d68[_0x215f9b('0x11fd')])return _0x37f899['userProfileResource'][_0x215f9b('0x22d5')]({'sectionId':_0x4c7d68['id']})[_0x215f9b('0xe59')][_0x215f9b('0xe19')](function(_0x46657c){var _0x3f4baa=_0x215f9b,_0x276ec2=_0x32d445()['map'](_0x46657c[_0x3f4baa('0x16a7')],function(_0x2ac15a){var _0x3e4479=_0x3f4baa;return _0x32d445()[_0x3e4479('0xf15')](_0x37585b['lists'],{'id':_0x2ac15a[_0x3e4479('0x1104')]});}),_0x166c44=null;_0x37585b[_0x3f4baa('0x223')]&&(_0x166c44=_0x32d445()['find'](_0x37585b[_0x3f4baa('0x9f8')],{'id':Number(_0x37585b[_0x3f4baa('0x223')][_0x3f4baa('0x2463')])}));if(_0x166c44&&!_0x32d445()[_0x3f4baa('0x201a')](_0x276ec2,['id',_0x166c44['id']])){var _0xf88d62=_0x32d445()[_0x3f4baa('0xf15')](_0x37585b[_0x3f4baa('0x9f8')],{'id':_0x166c44['id']});_0xf88d62[_0x3f4baa('0x1e9d')]=![],_0x276ec2['push'](_0xf88d62);}_0x37585b[_0x3f4baa('0x9f8')]=_0x276ec2;});}})['catch'](function(_0x47f37c){var _0x51e032=_0x40fee0;_0x4a9bd0[_0x51e032('0x8c8')]({'title':_0x47f37c[_0x51e032('0x2833')]?'API:'+_0x47f37c[_0x51e032('0x2833')]+_0x51e032('0x1b7c')+_0x47f37c['statusText']:_0x51e032('0xd65'),'msg':_0x47f37c['data']?JSON[_0x51e032('0x3ad')](_0x47f37c[_0x51e032('0x11d0')]):_0x47f37c[_0x51e032('0x94f')]()});}),_0x590bd3[_0x40fee0('0x179e')](_0x40fee0('0xd14'))?_0x37f899[_0x40fee0('0x1c98')][_0x40fee0('0x22d5')]({'fields':_0x40fee0('0x1b75'),'sort':_0x40fee0('0x2623'),'nolimit':_0x40fee0('0x2206')})[_0x40fee0('0xe59')][_0x40fee0('0xe19')](function(_0x5e3788){var _0x900d4a=_0x40fee0;_0x37585b[_0x900d4a('0x145e')]=_0x5e3788[_0x900d4a('0x16a7')]||[];})[_0x40fee0('0x223b')](function(_0x2b7d72){var _0xd8360b=_0x40fee0;_0x4a9bd0['error']({'title':_0x2b7d72[_0xd8360b('0x2833')]?_0xd8360b('0x27f2')+_0x2b7d72[_0xd8360b('0x2833')]+'\x20-\x20'+_0x2b7d72[_0xd8360b('0x1fd7')]:'SYSTEM:GET_PAUSES','msg':_0x2b7d72[_0xd8360b('0x11d0')]?JSON[_0xd8360b('0x3ad')](_0x2b7d72[_0xd8360b('0x11d0')]):_0x2b7d72[_0xd8360b('0x94f')]()});}):_0x37f899['pause'][_0x40fee0('0x22d5')]({'fields':_0x40fee0('0x1b75'),'sort':_0x40fee0('0x2623'),'nolimit':_0x40fee0('0x2206')})[_0x40fee0('0xe59')][_0x40fee0('0xe19')](function(_0x1d331f){var _0x3c1de9=_0x40fee0;_0x37585b['pauses']=_0x1d331f[_0x3c1de9('0x16a7')]||[];})[_0x40fee0('0xe19')](function(){var _0x40ace9=_0x40fee0;return _0x37f899['userProfileSection']['get']({'userProfileId':_0x37585b['currentUser'][_0x40ace9('0x1d04')],'sectionId':0x3ed})[_0x40ace9('0xe59')];})['then'](function(_0x242d13){var _0x25a79e=_0x40fee0,_0x91c187=_0x242d13&&_0x242d13[_0x25a79e('0x16a7')]?_0x242d13['rows'][0x0]:null;if(!_0x91c187)_0x37585b[_0x25a79e('0x145e')]=[];else{if(!_0x91c187['autoAssociation'])return _0x37f899[_0x25a79e('0xd49')][_0x25a79e('0x22d5')]({'sectionId':_0x91c187['id']})[_0x25a79e('0xe59')][_0x25a79e('0xe19')](function(_0x35809a){var _0x54be51=_0x25a79e,_0x29d5bd=_0x32d445()[_0x54be51('0x65a')](_0x35809a[_0x54be51('0x16a7')],function(_0x362d6a){var _0x30d5f7=_0x54be51;return _0x32d445()['find'](_0x37585b[_0x30d5f7('0x145e')],{'id':_0x362d6a[_0x30d5f7('0x1104')]});});_0x37585b[_0x54be51('0x145e')][_0x54be51('0x1d7e')](function(_0x48f155){var _0x6cb7d7=_0x54be51;!_0x32d445()[_0x6cb7d7('0x201a')](_0x29d5bd,['id',_0x48f155['id']])&&(_0x48f155[_0x6cb7d7('0x1e9d')]=![]),_0x29d5bd['push'](_0x48f155);}),_0x37585b[_0x54be51('0x145e')]=_0x29d5bd;});}})[_0x40fee0('0x223b')](function(_0x4282d2){var _0x1939e9=_0x40fee0;_0x4a9bd0[_0x1939e9('0x8c8')]({'title':_0x4282d2['status']?_0x1939e9('0x27f2')+_0x4282d2[_0x1939e9('0x2833')]+_0x1939e9('0x1b7c')+_0x4282d2[_0x1939e9('0x1fd7')]:_0x1939e9('0x1da6'),'msg':_0x4282d2['data']?JSON[_0x1939e9('0x3ad')](_0x4282d2[_0x1939e9('0x11d0')]):_0x4282d2[_0x1939e9('0x94f')]()});});function _0x4ec708(_0x1d7f00,_0x268fa3){var _0x100712=_0x40fee0;_0x339d3b[_0x100712('0x26b2')]({'controller':_0x100712('0x18f5'),'controllerAs':'vm','templateUrl':_0xee6200,'parent':angular[_0x100712('0x24a1')](_0x4f50c2[_0x100712('0x19b2')]),'targetEvent':_0x268fa3,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x1d7f00,'whatsappAccounts':_0x37585b[_0x100712('0x14cf')]?_0x37585b[_0x100712('0x14cf')][_0x100712('0x16a7')]:[],'crudPermissions':_0x37585b[_0x100712('0xb3d')],'realtime':![]}});}function _0x100a9b(){var _0x44966b=_0x40fee0;_0x23522e['go'](_0x44966b('0x2892'),{},{'reload':'app.whatsapp.whatsappAccounts'});}function _0x5b57a9(){var _0x247f55=_0x40fee0;_0x37f899[_0x247f55('0x223')][_0x247f55('0xa70')]({'id':_0x37585b[_0x247f55('0x223')]['id']},_0x37585b[_0x247f55('0x223')])[_0x247f55('0xe59')][_0x247f55('0xe19')](function(){var _0x1b376a=_0x247f55;_0x4a9bd0['success']({'title':_0x1b376a('0x1d76'),'msg':_0x37585b[_0x1b376a('0x223')]['name']?_0x37585b[_0x1b376a('0x223')][_0x1b376a('0x2623')]+'\x20has\x20been\x20updated!':''});})[_0x247f55('0x223b')](function(_0x316949){var _0x18fe93=_0x247f55;_0x4a9bd0[_0x18fe93('0x8c8')]({'title':_0x316949[_0x18fe93('0x2833')]?_0x18fe93('0x27f2')+_0x316949[_0x18fe93('0x2833')]+_0x18fe93('0x1b7c')+_0x316949[_0x18fe93('0x1fd7')]:'SYSTEM:GETwhatsappAccount','msg':_0x316949[_0x18fe93('0x11d0')]?JSON[_0x18fe93('0x3ad')](_0x316949[_0x18fe93('0x11d0')]):_0x316949[_0x18fe93('0x94f')]()});});}}const _0x379eb6=_0x1eb514,_0x1ec96e=_0x59426a['p']+_0xb635d2('0xfaa');_0x23315d['$inject']=[_0xb635d2('0x1c1d'),'$scope',_0xb635d2('0xeb6'),'$q','$translate',_0xb635d2('0x1a0b'),'$mdDialog',_0xb635d2('0x1728'),_0xb635d2('0xf65'),'api','Auth'];function _0x23315d(_0x47a2f1,_0x7c903f,_0x4dc847,_0x1d691b,_0xf65d6e,_0x56744c,_0x29fa48,_0x44895a,_0x57e2f1,_0xced18d,_0x1f9bd5){var _0x543257=_0xb635d2,_0x2629ad=this;_0x2629ad[_0x543257('0x15a5')]=_0x1f9bd5['getCurrentUser'](),_0x2629ad[_0x543257('0x223')]={},_0x2629ad[_0x543257('0x24d9')]={'count':0x0,'rows':[]},_0x2629ad[_0x543257('0xfee')]=[],_0x2629ad[_0x543257('0xb3d')],_0x2629ad[_0x543257('0xa16')]={'fields':_0x543257('0x1ef0'),'limit':0xa,'page':0x1},_0x2629ad[_0x543257('0x15f9')]=_0x19efc8,_0x2629ad[_0x543257('0x126c')]=_0x5b5b48,_0x2629ad[_0x543257('0x425')]=_0x584725,_0x2629ad[_0x543257('0x2024')]=_0x41f722,_0x2629ad['createOrEditWhatsappAccountWhatsappCannedAnswer']=_0x38edc8,_0x2629ad[_0x543257('0x13a0')]=_0x1f6deb,_0x2629ad[_0x543257('0x1254')]=_0x34ffd7,_0x2629ad[_0x543257('0x1b53')]=_0x151f9a;function _0x19efc8(_0x53f335,_0x38f723){var _0x3e281b=_0x543257;_0x2629ad['whatsappAccount']=_0x53f335,_0x2629ad[_0x3e281b('0xb3d')]=typeof _0x38f723!==_0x3e281b('0x1143')?_0x38f723:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2629ad['query'][_0x3e281b('0x220b')]=_0x2629ad[_0x3e281b('0x223')]['id'],_0x2629ad[_0x3e281b('0xa16')]['id']=_0x2629ad[_0x3e281b('0x223')]['id'],_0x41f722();}function _0x5b5b48(_0x52c529,_0x20971e){var _0x49a7b4=_0x543257,_0x155340=_0x29fa48[_0x49a7b4('0xa5')]()[_0x49a7b4('0x13e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20whatsappCannedAnswer?')[_0x49a7b4('0x221c')](_0x49a7b4('0xab2')+(_0x52c529['name']||_0x52c529['id']&&_0x32d445()[_0x49a7b4('0x2077')](_0x49a7b4('0x958'))+_0x52c529['id']||_0x49a7b4('0x1a04'))+_0x49a7b4('0x27bb')+'\x20will\x20be\x20deleted.')[_0x49a7b4('0x4d1')](_0x49a7b4('0x1eb7'))['targetEvent'](_0x20971e)['ok']('OK')[_0x49a7b4('0x2c1')](_0x49a7b4('0x17'));_0x29fa48[_0x49a7b4('0x26b2')](_0x155340)[_0x49a7b4('0xe19')](function(){_0x34ffd7(_0x52c529);},function(){var _0x34ec1c=_0x49a7b4;console[_0x34ec1c('0x1fe9')](_0x34ec1c('0x17'));});}function _0x584725(_0x161dc2){var _0x4a1ffd=_0x543257;_0x2629ad[_0x4a1ffd('0x24d9')]=_0x161dc2||{'count':0x0,'rows':[]};}function _0x41f722(){var _0x2b9473=_0x543257;_0x2629ad['query'][_0x2b9473('0xab0')]=(_0x2629ad[_0x2b9473('0xa16')][_0x2b9473('0xc08')]-0x1)*_0x2629ad[_0x2b9473('0xa16')][_0x2b9473('0x1b6d')],_0x2629ad[_0x2b9473('0x9c8')]=_0xced18d[_0x2b9473('0x223')][_0x2b9473('0x152a')](_0x2629ad[_0x2b9473('0xa16')],_0x584725)['$promise'];}function _0x38edc8(_0x1c8de7,_0xed22a8){var _0x3b35c5=_0x543257;_0x29fa48[_0x3b35c5('0x26b2')]({'controller':_0x3b35c5('0x60'),'controllerAs':'vm','templateUrl':_0x1ec96e,'parent':angular[_0x3b35c5('0x24a1')](_0x44895a['body']),'targetEvent':_0x1c8de7,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x2629ad['whatsappAccount'],'whatsappCannedAnswer':_0xed22a8,'whatsappCannedAnswers':_0x2629ad[_0x3b35c5('0x24d9')][_0x3b35c5('0x16a7')],'license':null,'setting':null,'crudPermissions':_0x2629ad['crudPermissions']}});}function _0x34ffd7(_0x11a703){var _0xff9b55=_0x543257;_0xced18d[_0xff9b55('0x250b')][_0xff9b55('0x229e')]({'id':_0x11a703['id']})[_0xff9b55('0xe59')][_0xff9b55('0xe19')](function(){var _0x39a306=_0xff9b55;_0x32d445()['remove'](_0x2629ad[_0x39a306('0x24d9')]['rows'],{'id':_0x11a703['id']}),_0x2629ad[_0x39a306('0x24d9')][_0x39a306('0x148b')]-=0x1,!_0x2629ad[_0x39a306('0x24d9')]['rows'][_0x39a306('0x25ae')]&&_0x41f722(),_0x57e2f1[_0x39a306('0x425')]({'title':_0x39a306('0x1db7'),'msg':_0x11a703[_0x39a306('0x2623')]?_0x11a703[_0x39a306('0x2623')]+_0x39a306('0x2182'):''});})[_0xff9b55('0x223b')](function(_0x5f551e){var _0x5b26ee=_0xff9b55;if(_0x5f551e[_0x5b26ee('0x11d0')]&&_0x5f551e[_0x5b26ee('0x11d0')][_0x5b26ee('0xcd2')]&&_0x5f551e[_0x5b26ee('0x11d0')][_0x5b26ee('0xcd2')][_0x5b26ee('0x25ae')]){_0x2629ad[_0x5b26ee('0xcd2')]=_0x5f551e[_0x5b26ee('0x11d0')][_0x5b26ee('0xcd2')]||[{'message':_0x5f551e[_0x5b26ee('0x94f')](),'type':'SYSTEM:GETwhatsappAccount'}];for(var _0x45b666=0x0;_0x45b666<_0x5f551e[_0x5b26ee('0x11d0')][_0x5b26ee('0xcd2')][_0x5b26ee('0x25ae')];_0x45b666++){_0x57e2f1[_0x5b26ee('0x8c8')]({'title':_0x5f551e['data'][_0x5b26ee('0xcd2')][_0x45b666][_0x5b26ee('0x62e')],'msg':_0x5f551e[_0x5b26ee('0x11d0')][_0x5b26ee('0xcd2')][_0x45b666][_0x5b26ee('0x27e8')]});}}else _0x57e2f1['error']({'title':_0x5f551e[_0x5b26ee('0x2833')]?_0x5b26ee('0x27f2')+_0x5f551e[_0x5b26ee('0x2833')]+_0x5b26ee('0x1b7c')+_0x5f551e['statusText']:'SYSTEM:GETwhatsappAccount','msg':_0x5f551e['data']?JSON[_0x5b26ee('0x3ad')](_0x5f551e[_0x5b26ee('0x11d0')][_0x5b26ee('0x27e8')]):_0x5f551e[_0x5b26ee('0x27e8')]||_0x5f551e[_0x5b26ee('0x94f')]()});});}function _0x1f6deb(){var _0x5ae648=_0x543257,_0x342754=angular[_0x5ae648('0x89')](_0x2629ad[_0x5ae648('0xfee')]);return _0x2629ad[_0x5ae648('0xfee')]=[],_0x342754;}function _0x151f9a(_0x5f508a){var _0x91ab24=_0x543257,_0x245cfd=_0x29fa48[_0x91ab24('0xa5')]()[_0x91ab24('0x13e4')](_0x91ab24('0x58e'))[_0x91ab24('0x221c')](''+_0x2629ad[_0x91ab24('0xfee')]['length']+_0x91ab24('0x5bc')+_0x91ab24('0x21bd'))[_0x91ab24('0x4d1')](_0x91ab24('0x9c3'))[_0x91ab24('0x1345')](_0x5f508a)['ok']('OK')[_0x91ab24('0x2c1')](_0x91ab24('0x17'));_0x29fa48[_0x91ab24('0x26b2')](_0x245cfd)['then'](function(){var _0x3ecd33=_0x91ab24;_0x2629ad['selectedWhatsappAccountWhatsappCannedAnswers'][_0x3ecd33('0x1d7e')](function(_0x2cec4d){_0x34ffd7(_0x2cec4d);}),_0x2629ad[_0x3ecd33('0xfee')]=[];});}var _0x2f15f4=!![],_0x389516=0x1;_0x7c903f[_0x543257('0x107')]('vm_dc.query.filter',function(_0x154d9a,_0x57d054){var _0x38f131=_0x543257;_0x2f15f4?_0x56744c(function(){_0x2f15f4=![];}):(!_0x57d054&&(_0x389516=_0x2629ad[_0x38f131('0xa16')][_0x38f131('0xc08')]),_0x154d9a!==_0x57d054&&(_0x2629ad['query'][_0x38f131('0xc08')]=0x1),!_0x154d9a&&(_0x2629ad[_0x38f131('0xa16')]['page']=_0x389516),_0x41f722());});}const _0x6a9614=_0x23315d;_0x55e402[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),_0xb635d2('0xf65'),_0xb635d2('0x2718'),_0xb635d2('0x1a04'),_0xb635d2('0xffc'),_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x55e402(_0x50bf14,_0x4316a9,_0x461b9f,_0x3d61cd,_0x1145de,_0x1d60ef,_0x3b9d49,_0x448bce,_0x25af0c,_0x403b9f,_0x4b7623,_0x472509,_0x567d6e,_0xebfd0f){var _0x4b6cbd=_0xb635d2,_0x5aee8c=this;_0x5aee8c[_0x4b6cbd('0x15a5')]=_0x4b7623[_0x4b6cbd('0x1ef8')](),_0x5aee8c[_0x4b6cbd('0xcd2')]=[],_0x5aee8c[_0x4b6cbd('0x22f1')]=_0x567d6e,_0x5aee8c['license']=_0x472509,_0x5aee8c[_0x4b6cbd('0xb3d')]=_0xebfd0f,_0x5aee8c[_0x4b6cbd('0x1ccb')]={},_0x5aee8c[_0x4b6cbd('0x25ac')]=_0x5aee8c['setting']&&_0x5aee8c['setting'][_0x4b6cbd('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5aee8c[_0x4b6cbd('0x13e4')]=_0x4b6cbd('0x15ec'),_0x5aee8c['whatsappCannedAnswer']=angular[_0x4b6cbd('0x89')](_0x25af0c),_0x5aee8c['whatsappCannedAnswers']=_0x448bce,_0x5aee8c[_0x4b6cbd('0x22da')]=![];!_0x5aee8c[_0x4b6cbd('0x1a04')]&&(_0x5aee8c[_0x4b6cbd('0x1a04')]={},_0x5aee8c[_0x4b6cbd('0x13e4')]=_0x4b6cbd('0xf89'),_0x5aee8c['newWhatsappCannedAnswer']=!![]);_0x4316a9[_0x4b6cbd('0x2ef')]['id']&&(_0x5aee8c[_0x4b6cbd('0x1a04')]['WhatsappAccountId']=_0x4316a9[_0x4b6cbd('0x2ef')]['id']);_0x5aee8c['addNewWhatsappCannedAnswer']=_0x5bd3c6,_0x5aee8c['saveWhatsappCannedAnswer']=_0x50bf9d,_0x5aee8c['deleteWhatsappCannedAnswer']=_0x148333,_0x5aee8c[_0x4b6cbd('0x2635')]=_0x4d7f11,_0x5aee8c['closeDialog']=_0x4b33c3;function _0x5bd3c6(){var _0x307171=_0x4b6cbd;_0x5aee8c['errors']=[],_0x403b9f[_0x307171('0x250b')][_0x307171('0xe5e')](_0x5aee8c['whatsappCannedAnswer'])[_0x307171('0xe59')][_0x307171('0xe19')](function(_0x9b0ffc){var _0x30d40c=_0x307171;_0x5aee8c['whatsappCannedAnswers'][_0x30d40c('0x14c9')](_0x9b0ffc[_0x30d40c('0x250e')]()),_0x3b9d49[_0x30d40c('0x425')]({'title':'WhatsappCannedAnswer\x20properly\x20created','msg':_0x5aee8c[_0x30d40c('0x1a04')][_0x30d40c('0x2623')]?_0x5aee8c[_0x30d40c('0x1a04')][_0x30d40c('0x2623')]+_0x30d40c('0x105f'):''}),_0x4b33c3(_0x9b0ffc);})[_0x307171('0x223b')](function(_0xeb087f){var _0x32764e=_0x307171;if(_0xeb087f[_0x32764e('0x11d0')]&&_0xeb087f['data']['errors']&&_0xeb087f[_0x32764e('0x11d0')][_0x32764e('0xcd2')][_0x32764e('0x25ae')]){_0x5aee8c['errors']=_0xeb087f[_0x32764e('0x11d0')]['errors']||[{'message':_0xeb087f[_0x32764e('0x94f')](),'type':_0x32764e('0x80d')}];for(var _0x525182=0x0;_0x525182<_0xeb087f[_0x32764e('0x11d0')][_0x32764e('0xcd2')]['length'];_0x525182+=0x1){_0x3b9d49[_0x32764e('0x8c8')]({'title':_0xeb087f['data']['errors'][_0x525182][_0x32764e('0x62e')],'msg':_0xeb087f[_0x32764e('0x11d0')][_0x32764e('0xcd2')][_0x525182][_0x32764e('0x27e8')]});}}else _0x3b9d49[_0x32764e('0x8c8')]({'title':_0xeb087f['status']?'API:'+_0xeb087f[_0x32764e('0x2833')]+'\x20-\x20'+_0xeb087f[_0x32764e('0x1fd7')]:_0x32764e('0x80d'),'msg':_0xeb087f[_0x32764e('0x11d0')]?JSON['stringify'](_0xeb087f[_0x32764e('0x11d0')]['message']):_0xeb087f[_0x32764e('0x94f')]()});});}function _0x50bf9d(){var _0x54fa72=_0x4b6cbd;_0x5aee8c['errors']=[],_0x403b9f[_0x54fa72('0x250b')]['update']({'id':_0x5aee8c[_0x54fa72('0x1a04')]['id']},_0x5aee8c[_0x54fa72('0x1a04')])['$promise'][_0x54fa72('0xe19')](function(_0x1a4aa){var _0x11e75b=_0x54fa72,_0x509cc2=_0x32d445()[_0x11e75b('0xf15')](_0x5aee8c[_0x11e75b('0x2718')],{'id':_0x1a4aa['id']});_0x509cc2&&_0x32d445()[_0x11e75b('0x1d8')](_0x509cc2,_0x32d445()[_0x11e75b('0xed5')](_0x1a4aa[_0x11e75b('0x250e')](),_0x32d445()[_0x11e75b('0x1234')](_0x509cc2))),_0x3b9d49['success']({'title':_0x11e75b('0xa28'),'msg':_0x5aee8c[_0x11e75b('0x1a04')]['name']?_0x5aee8c['whatsappCannedAnswer'][_0x11e75b('0x2623')]+_0x11e75b('0x1c19'):''}),_0x4b33c3(_0x1a4aa);})[_0x54fa72('0x223b')](function(_0x2fa693){var _0x392b37=_0x54fa72;if(_0x2fa693['data']&&_0x2fa693[_0x392b37('0x11d0')][_0x392b37('0xcd2')]&&_0x2fa693[_0x392b37('0x11d0')][_0x392b37('0xcd2')][_0x392b37('0x25ae')]){_0x5aee8c[_0x392b37('0xcd2')]=_0x2fa693[_0x392b37('0x11d0')][_0x392b37('0xcd2')]||[{'message':_0x2fa693[_0x392b37('0x94f')](),'type':_0x392b37('0x5a0')}];for(var _0x510c3a=0x0;_0x510c3a<_0x2fa693[_0x392b37('0x11d0')][_0x392b37('0xcd2')][_0x392b37('0x25ae')];_0x510c3a++){_0x3b9d49[_0x392b37('0x8c8')]({'title':_0x2fa693[_0x392b37('0x11d0')]['errors'][_0x510c3a][_0x392b37('0x62e')],'msg':_0x2fa693[_0x392b37('0x11d0')][_0x392b37('0xcd2')][_0x510c3a][_0x392b37('0x27e8')]});}}else _0x3b9d49['error']({'title':_0x2fa693[_0x392b37('0x2833')]?_0x392b37('0x27f2')+_0x2fa693[_0x392b37('0x2833')]+_0x392b37('0x1b7c')+_0x2fa693[_0x392b37('0x1fd7')]:_0x392b37('0x5a0'),'msg':_0x2fa693[_0x392b37('0x11d0')]?JSON[_0x392b37('0x3ad')](_0x2fa693[_0x392b37('0x11d0')][_0x392b37('0x27e8')]):_0x2fa693[_0x392b37('0x94f')]()});});}function _0x148333(_0x552ccf){var _0x84b3cf=_0x4b6cbd;_0x5aee8c[_0x84b3cf('0xcd2')]=[];var _0x4a4175=_0x3d61cd['confirm']()['title'](_0x84b3cf('0x24d0'))[_0x84b3cf('0xd0')]('The\x20whatsappCannedAnswer\x20will\x20be\x20deleted.')['ariaLabel'](_0x84b3cf('0x1207'))['ok']('Delete')[_0x84b3cf('0x2c1')](_0x84b3cf('0x8a3'))[_0x84b3cf('0x1345')](_0x552ccf);_0x3d61cd['show'](_0x4a4175)[_0x84b3cf('0xe19')](function(){var _0x234f70=_0x84b3cf;_0x403b9f[_0x234f70('0x250b')][_0x234f70('0x229e')]({'id':_0x5aee8c[_0x234f70('0x1a04')]['id']})[_0x234f70('0xe59')][_0x234f70('0xe19')](function(){var _0x373837=_0x234f70;_0x32d445()[_0x373837('0xa8b')](_0x5aee8c[_0x373837('0x2718')],{'id':_0x5aee8c[_0x373837('0x1a04')]['id']}),_0x3b9d49[_0x373837('0x425')]({'title':_0x373837('0x4b5'),'msg':(_0x5aee8c[_0x373837('0x1a04')]['name']||_0x373837('0x1a04'))+_0x373837('0x2182')}),_0x4b33c3(_0x5aee8c[_0x373837('0x1a04')]);})[_0x234f70('0x223b')](function(_0x1805fa){var _0x58c531=_0x234f70;if(_0x1805fa[_0x58c531('0x11d0')]&&_0x1805fa[_0x58c531('0x11d0')][_0x58c531('0xcd2')]&&_0x1805fa[_0x58c531('0x11d0')]['errors'][_0x58c531('0x25ae')]){_0x5aee8c[_0x58c531('0xcd2')]=_0x1805fa[_0x58c531('0x11d0')][_0x58c531('0xcd2')]||[{'message':_0x1805fa[_0x58c531('0x94f')](),'type':'api.cannedAnswer.delete'}];for(var _0x5479d7=0x0;_0x5479d7<_0x1805fa[_0x58c531('0x11d0')][_0x58c531('0xcd2')][_0x58c531('0x25ae')];_0x5479d7++){_0x3b9d49['error']({'title':_0x1805fa[_0x58c531('0x11d0')][_0x58c531('0xcd2')][_0x5479d7][_0x58c531('0x62e')],'msg':_0x1805fa[_0x58c531('0x11d0')][_0x58c531('0xcd2')][_0x5479d7][_0x58c531('0x27e8')]});}}else _0x3b9d49[_0x58c531('0x8c8')]({'title':_0x1805fa[_0x58c531('0x2833')]?'API:'+_0x1805fa['status']+_0x58c531('0x1b7c')+_0x1805fa[_0x58c531('0x1fd7')]:_0x58c531('0x1b46'),'msg':_0x1805fa[_0x58c531('0x11d0')]?JSON['stringify'](_0x1805fa['data'][_0x58c531('0x27e8')]):_0x1805fa[_0x58c531('0x27e8')]||_0x1805fa['toString']()});});},function(){});}function _0x4d7f11(_0x5e13ec){return _0x5e13ec===null?undefined:new Date(_0x5e13ec);}function _0x4b33c3(_0x4ee3c3){var _0x34a340=_0x4b6cbd;_0x3d61cd[_0x34a340('0x11ed')](_0x4ee3c3);}}const _0x307de0=_0x55e402;_0x5ddf32[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),'api',_0xb635d2('0xf65'),_0xb635d2('0x2730')];function _0x5ddf32(_0x3b5477,_0xe486df,_0x14e909,_0x297eb9,_0x3c3168,_0x454d63,_0x5fd7a1,_0x3a7206,_0x33bf3b,_0x5f3de6,_0x3eb69b){var _0x686da9=_0xb635d2,_0x47573c=this;_0x47573c[_0x686da9('0x15a5')]=_0x3eb69b[_0x686da9('0x1ef8')](),_0x47573c[_0x686da9('0x24eb')]={'count':0x0,'rows':[]},_0x47573c[_0x686da9('0x17e9')]=[],_0x47573c['crudPermissions'],_0x47573c['levels']={'first':_0x686da9('0x24ab'),'second':'2nd','third':_0x686da9('0x13ee')},_0x47573c[_0x686da9('0xa16')]={'fields':_0x686da9('0x561'),'sort':_0x686da9('0x7e8'),'limit':0xa,'page':0x1},_0x47573c['init']=_0x22a4f5,_0x47573c[_0x686da9('0x126c')]=_0x9bdfbe,_0x47573c[_0x686da9('0x425')]=_0x53d6a8,_0x47573c[_0x686da9('0x1312')]=_0x2bf7b0,_0x47573c[_0x686da9('0x2374')]=_0x1e56e3,_0x47573c[_0x686da9('0x1db')]=_0x39b940,_0x47573c[_0x686da9('0x1f38')]=_0x5a2b22,_0x47573c[_0x686da9('0xda0')]=_0x5f4e5f,_0x47573c['deselectDispositions']=_0x52f757,_0x47573c[_0x686da9('0x56f')]=_0xa7c0a7;function _0x22a4f5(_0x4b8c17,_0x3ae8ff){var _0x4d14a6=_0x686da9;_0x47573c['whatsappAccount']=_0x4b8c17||{},_0x47573c[_0x4d14a6('0xb3d')]=typeof _0x3ae8ff!==_0x4d14a6('0x1143')?_0x3ae8ff:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x47573c[_0x4d14a6('0xa16')][_0x4d14a6('0x220b')]=_0x47573c[_0x4d14a6('0x223')]['id'],_0x47573c[_0x4d14a6('0xa16')]['id']=_0x47573c[_0x4d14a6('0x223')]['id'],_0x2bf7b0();}function _0x1e56e3(_0x55ff1d,_0x4e928b){var _0x19d0e9=_0x686da9;_0x3c3168[_0x19d0e9('0x26b2')]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x599d02,'parent':angular['element'](_0x454d63[_0x19d0e9('0x19b2')]),'targetEvent':_0x55ff1d,'clickOutsideToClose':!![],'locals':{'disposition':_0x4e928b,'dispositions':_0x47573c['dispositions'][_0x19d0e9('0x16a7')],'model':{'id':_0x47573c[_0x19d0e9('0x223')]['id'],'field':_0x19d0e9('0x220b')},'license':null,'setting':null,'crudPermissions':_0x47573c[_0x19d0e9('0xb3d')]}})[_0x19d0e9('0xe19')](function(_0x1d4bc7){if(_0x1d4bc7)_0x2bf7b0();});}function _0x9bdfbe(_0x3eea3c,_0x49eb02){var _0x4f481c=_0x686da9,_0x11952f=_0x32d445()[_0x4f481c('0x201a')](_0x47573c[_0x4f481c('0x24eb')][_0x4f481c('0x16a7')],['ParentId',_0x3eea3c['id']]),_0x5cc920=_0x3c3168[_0x4f481c('0xa5')]()[_0x4f481c('0x13e4')](_0x3a7206[_0x4f481c('0x2159')](_0x4f481c('0x5d9')))[_0x4f481c('0xd0')](_0x3a7206[_0x4f481c('0x2159')](_0x4f481c('0xd37')+(_0x11952f?_0x4f481c('0x930'):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x3eea3c['name']}))['ariaLabel'](_0x4f481c('0x1c26'))[_0x4f481c('0x1345')](_0x49eb02)['ok']('OK')[_0x4f481c('0x2c1')](_0x3a7206[_0x4f481c('0x2159')](_0x4f481c('0x717')));_0x3c3168['show'](_0x5cc920)[_0x4f481c('0xe19')](function(){_0x39b940(_0x3eea3c);});}function _0x53d6a8(_0x50ac47){_0x47573c['dispositions']=_0x50ac47||{'count':0x0,'rows':[]};}function _0x2bf7b0(){var _0x490081=_0x686da9;_0x47573c[_0x490081('0xa16')][_0x490081('0xab0')]=(_0x47573c[_0x490081('0xa16')][_0x490081('0xc08')]-0x1)*_0x47573c[_0x490081('0xa16')][_0x490081('0x1b6d')],_0x47573c[_0x490081('0x9c8')]=_0x33bf3b[_0x490081('0x223')][_0x490081('0x1312')](_0x47573c[_0x490081('0xa16')],_0x53d6a8)[_0x490081('0xe59')];}function _0x39b940(_0x1ae544){var _0x2d461c=_0x686da9;_0x33bf3b[_0x2d461c('0x2506')][_0x2d461c('0x229e')]({'id':_0x1ae544['id']})['$promise']['then'](function(){var _0x4d1032=_0x2d461c;_0x2bf7b0(),_0x5f3de6[_0x4d1032('0x425')]({'title':_0x3a7206[_0x4d1032('0x2159')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x2d461c('0x223b')](function(_0x33409a){var _0xdde37a=_0x2d461c;if(_0x33409a[_0xdde37a('0x11d0')]&&_0x33409a[_0xdde37a('0x11d0')][_0xdde37a('0xcd2')]&&_0x33409a[_0xdde37a('0x11d0')][_0xdde37a('0xcd2')][_0xdde37a('0x25ae')]){_0x47573c['errors']=_0x33409a['data'][_0xdde37a('0xcd2')]||[{'message':_0x33409a[_0xdde37a('0x94f')](),'type':_0xdde37a('0x45')}];for(var _0x2a8219=0x0;_0x2a8219<_0x33409a[_0xdde37a('0x11d0')]['errors'][_0xdde37a('0x25ae')];_0x2a8219++){_0x5f3de6[_0xdde37a('0x8c8')]({'title':_0x33409a['data'][_0xdde37a('0xcd2')][_0x2a8219][_0xdde37a('0x62e')],'msg':_0x33409a[_0xdde37a('0x11d0')]['errors'][_0x2a8219][_0xdde37a('0x27e8')]});}}else _0x5f3de6[_0xdde37a('0x8c8')]({'title':_0x33409a[_0xdde37a('0x2833')]?_0xdde37a('0x27f2')+_0x33409a['status']+'\x20-\x20'+_0x33409a['statusText']:_0xdde37a('0x45'),'msg':_0x33409a[_0xdde37a('0x11d0')]?JSON[_0xdde37a('0x3ad')](_0x33409a[_0xdde37a('0x11d0')][_0xdde37a('0x27e8')]):_0x33409a['message']||_0x33409a[_0xdde37a('0x94f')]()});});}function _0x5a2b22(){var _0x54622d=_0x686da9,_0x2e3165=angular['copy'](_0x47573c[_0x54622d('0x17e9')]);return _0x47573c[_0x54622d('0x17e9')]=[],_0x2e3165;}function _0x5f4e5f(_0x1cef52){var _0x339368=_0x686da9,_0x3ff563=_0x3c3168[_0x339368('0xa5')]()[_0x339368('0x13e4')](_0x3a7206[_0x339368('0x2159')](_0x339368('0xf00')))[_0x339368('0xd0')](_0x3a7206[_0x339368('0x2159')](_0x339368('0x2750'),{'total':_0x47573c[_0x339368('0x17e9')][_0x339368('0x25ae')]}))['ariaLabel']('Delete\x20dispositions')[_0x339368('0x1345')](_0x1cef52)['ok']('OK')[_0x339368('0x2c1')](_0x3a7206[_0x339368('0x2159')](_0x339368('0x717')));_0x3c3168[_0x339368('0x26b2')](_0x3ff563)[_0x339368('0xe19')](function(){var _0x143150=_0x339368;_0x47573c[_0x143150('0x17e9')][_0x143150('0x1d7e')](function(_0x2e339e){_0x39b940(_0x2e339e);}),_0x47573c[_0x143150('0x17e9')]=[];});}function _0x52f757(){var _0xed1075=_0x686da9;_0x47573c[_0xed1075('0x17e9')]=[];}function _0xa7c0a7(){var _0x4a0652=_0x686da9;_0x47573c[_0x4a0652('0x17e9')]=_0x47573c[_0x4a0652('0x24eb')][_0x4a0652('0x16a7')];}var _0x324458=!![],_0x163e6e=0x1;_0x3b5477[_0x686da9('0x107')](_0x686da9('0x1607'),function(_0x56a9a6,_0x363749){var _0x769a92=_0x686da9;_0x324458?_0x5fd7a1(function(){_0x324458=![];}):(!_0x363749&&(_0x163e6e=_0x47573c[_0x769a92('0xa16')][_0x769a92('0xc08')]),_0x56a9a6!==_0x363749&&(_0x47573c[_0x769a92('0xa16')][_0x769a92('0xc08')]=0x1),!_0x56a9a6&&(_0x47573c[_0x769a92('0xa16')][_0x769a92('0xc08')]=_0x163e6e),_0x2bf7b0());});}const _0x1bf486=_0x5ddf32,_0xcacd69=_0x59426a['p']+_0xb635d2('0xd22');_0x2a2ec7[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x2400'),_0xb635d2('0xeb6'),_0xb635d2('0x1795'),_0xb635d2('0x1c9f'),_0xb635d2('0x1728'),_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),_0xb635d2('0x14cf'),_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),_0xb635d2('0xf65'),'Auth',_0xb635d2('0x5c1'),'setting'];function _0x2a2ec7(_0x57302c,_0x370677,_0x5156a2,_0x13877e,_0x4056e7,_0x2f496c,_0x40f69b,_0x345470,_0xbae336,_0x222de7,_0x436418,_0x3e50ea,_0x23ab7d,_0x1f2169,_0xf4bac3,_0xd5369f,_0x2182fd){var _0xe1d6b6=_0xb635d2,_0x59748d=this;_0x59748d[_0xe1d6b6('0x5c1')]=_0xd5369f,_0x59748d['setting']=_0x2182fd,_0x59748d[_0xe1d6b6('0x15a5')]=_0xf4bac3['getCurrentUser'](),_0x59748d[_0xe1d6b6('0x14cf')]=_0xbae336||{'count':0x0,'rows':[]},_0x59748d[_0xe1d6b6('0x154f')]=_0x222de7,_0x59748d[_0xe1d6b6('0xb59')]=_0x436418&&_0x436418[_0xe1d6b6('0x148b')]==0x1?_0x436418['rows'][0x0]:null,_0x59748d[_0xe1d6b6('0xb3d')]=_0xf4bac3[_0xe1d6b6('0xd31')](_0x59748d[_0xe1d6b6('0xb59')]?_0x59748d[_0xe1d6b6('0xb59')]['crudPermissions']:null),_0x59748d[_0xe1d6b6('0x19b6')]=_0xe1d6b6('0x14cf'),_0x59748d[_0xe1d6b6('0x14d6')]='',_0x59748d['listOrderAsc']=null,_0x59748d[_0xe1d6b6('0x12a7')]=[],_0x59748d[_0xe1d6b6('0xa16')]={'fields':_0xe1d6b6('0x117d'),'sort':_0xe1d6b6('0x7e8'),'limit':0xa,'page':0x1},_0x59748d['arraytype']=_0x32d445()[_0xe1d6b6('0x226f')]([{'option':_0xe1d6b6('0x18cd'),'value':_0xe1d6b6('0x1332')}],function(_0x2d783b){return _0x32d445()['replace'](_0x2d783b['value'],new RegExp('\x27','g'),'');}),_0x59748d[_0xe1d6b6('0x16a0')]=_0xb6eb66,_0x59748d[_0xe1d6b6('0x1d08')]=_0x1810c0,_0x59748d[_0xe1d6b6('0x1407')]=_0x1a4542,_0x59748d[_0xe1d6b6('0x1d9e')]=_0x3029e8,_0x59748d[_0xe1d6b6('0x425')]=_0x4faa5c,_0x59748d['getWhatsappAccounts']=_0x372c41,_0x59748d['createOrEditWhatsappAccount']=_0x6a8c96,_0x59748d['deleteWhatsappAccount']=_0x5cb3d4,_0x59748d[_0xe1d6b6('0x20c2')]=_0x572eb9,_0x59748d[_0xe1d6b6('0x93c')]=_0x24ae35,_0x59748d[_0xe1d6b6('0x13bb')]=_0x4bd4ba,_0x59748d[_0xe1d6b6('0x14ff')]=_0x5b69aa,_0xf4bac3['hasRole']('admin')?_0x3e50ea[_0xe1d6b6('0x1bbd')][_0xe1d6b6('0x22d5')]({'fields':_0xe1d6b6('0x104'),'sort':_0xe1d6b6('0x2623')})[_0xe1d6b6('0xe59')][_0xe1d6b6('0xe19')](function(_0x4ac2ed){var _0x4f24cb=_0xe1d6b6;_0x59748d[_0x4f24cb('0x9f8')]=_0x4ac2ed['rows']||[];})[_0xe1d6b6('0x223b')](function(_0x5b4258){var _0x446400=_0xe1d6b6;_0x1f2169[_0x446400('0x8c8')]({'title':_0x5b4258['status']?_0x446400('0x27f2')+_0x5b4258[_0x446400('0x2833')]+_0x446400('0x1b7c')+_0x5b4258['statusText']:_0x446400('0x2012'),'msg':_0x5b4258[_0x446400('0x11d0')]?JSON[_0x446400('0x3ad')](_0x5b4258[_0x446400('0x11d0')]):_0x5b4258['toString']()});}):_0x3e50ea[_0xe1d6b6('0x1bbd')][_0xe1d6b6('0x22d5')]({'fields':'id,name','sort':_0xe1d6b6('0x2623')})['$promise'][_0xe1d6b6('0xe19')](function(_0x38910a){var _0x841065=_0xe1d6b6;_0x59748d[_0x841065('0x9f8')]=_0x38910a[_0x841065('0x16a7')]||[];})['then'](function(){var _0x30ab14=_0xe1d6b6;return _0x3e50ea[_0x30ab14('0xb59')][_0x30ab14('0x22d5')]({'userProfileId':_0x59748d[_0x30ab14('0x15a5')][_0x30ab14('0x1d04')],'sectionId':0x12d})[_0x30ab14('0xe59')];})['then'](function(_0xac665c){var _0x20d7f1=_0xe1d6b6,_0x99ebd2=_0xac665c&&_0xac665c[_0x20d7f1('0x16a7')]?_0xac665c['rows'][0x0]:null;if(!_0x99ebd2){var _0x4c0ef5=[],_0x67622c=null;_0x59748d[_0x20d7f1('0x223')]&&(_0x67622c=_0x32d445()[_0x20d7f1('0xf15')](_0x59748d['lists'],{'id':Number(_0x59748d[_0x20d7f1('0x223')]['ListId'])}));for(var _0x216f7a=0x0;_0x216f7a<_0x59748d[_0x20d7f1('0x9f8')][_0x20d7f1('0x25ae')];_0x216f7a++){_0x67622c&&_0x59748d[_0x20d7f1('0x9f8')][_0x216f7a]['id']===_0x67622c['id']&&(_0x59748d[_0x20d7f1('0x9f8')][_0x216f7a][_0x20d7f1('0x1e9d')]=![],_0x4c0ef5['push'](_0x59748d[_0x20d7f1('0x9f8')][_0x216f7a]));}_0x59748d[_0x20d7f1('0x9f8')]=_0x4c0ef5;}else{if(!_0x99ebd2['autoAssociation'])return _0x3e50ea[_0x20d7f1('0xd49')][_0x20d7f1('0x22d5')]({'sectionId':_0x99ebd2['id']})[_0x20d7f1('0xe59')]['then'](function(_0x3091fd){var _0x5efd5e=_0x20d7f1,_0x5c0136=_0x32d445()[_0x5efd5e('0x65a')](_0x3091fd[_0x5efd5e('0x16a7')],function(_0x28160b){var _0x18226b=_0x5efd5e;return _0x32d445()[_0x18226b('0xf15')](_0x59748d[_0x18226b('0x9f8')],{'id':_0x28160b['resourceId']});}),_0x408b80=null;_0x59748d['whatsappAccount']&&(_0x408b80=_0x32d445()[_0x5efd5e('0xf15')](_0x59748d[_0x5efd5e('0x9f8')],{'id':Number(_0x59748d[_0x5efd5e('0x223')][_0x5efd5e('0x2463')])}));if(_0x408b80&&!_0x32d445()[_0x5efd5e('0x201a')](_0x5c0136,['id',_0x408b80['id']])){var _0x1db0da=_0x32d445()[_0x5efd5e('0xf15')](_0x59748d[_0x5efd5e('0x9f8')],{'id':_0x408b80['id']});_0x1db0da[_0x5efd5e('0x1e9d')]=![],_0x5c0136[_0x5efd5e('0xb76')](_0x1db0da);}_0x59748d[_0x5efd5e('0x9f8')]=_0x5c0136;});}})[_0xe1d6b6('0x223b')](function(_0x25a44d){var _0x527717=_0xe1d6b6;_0x1f2169[_0x527717('0x8c8')]({'title':_0x25a44d[_0x527717('0x2833')]?_0x527717('0x27f2')+_0x25a44d[_0x527717('0x2833')]+_0x527717('0x1b7c')+_0x25a44d[_0x527717('0x1fd7')]:_0x527717('0xd65'),'msg':_0x25a44d[_0x527717('0x11d0')]?JSON['stringify'](_0x25a44d[_0x527717('0x11d0')]):_0x25a44d['toString']()});}),_0xf4bac3[_0xe1d6b6('0x179e')](_0xe1d6b6('0xd14'))?_0x3e50ea[_0xe1d6b6('0x1c98')][_0xe1d6b6('0x22d5')]({'fields':'name,id','sort':'name','nolimit':_0xe1d6b6('0x2206')})['$promise']['then'](function(_0x204af1){var _0x44113e=_0xe1d6b6;_0x59748d[_0x44113e('0x145e')]=_0x204af1['rows']||[];})[_0xe1d6b6('0x223b')](function(_0xbaa8a8){var _0xa6adb0=_0xe1d6b6;_0x1f2169[_0xa6adb0('0x8c8')]({'title':_0xbaa8a8[_0xa6adb0('0x2833')]?_0xa6adb0('0x27f2')+_0xbaa8a8['status']+'\x20-\x20'+_0xbaa8a8[_0xa6adb0('0x1fd7')]:_0xa6adb0('0x20ea'),'msg':_0xbaa8a8[_0xa6adb0('0x11d0')]?JSON[_0xa6adb0('0x3ad')](_0xbaa8a8[_0xa6adb0('0x11d0')]):_0xbaa8a8[_0xa6adb0('0x94f')]()});}):_0x3e50ea[_0xe1d6b6('0x1c98')]['get']({'fields':'name,id','sort':_0xe1d6b6('0x2623'),'nolimit':_0xe1d6b6('0x2206')})[_0xe1d6b6('0xe59')][_0xe1d6b6('0xe19')](function(_0x12c792){var _0xdde531=_0xe1d6b6;_0x59748d[_0xdde531('0x145e')]=_0x12c792[_0xdde531('0x16a7')]||[];})[_0xe1d6b6('0xe19')](function(){var _0x47f99a=_0xe1d6b6;return _0x3e50ea[_0x47f99a('0xb59')][_0x47f99a('0x22d5')]({'userProfileId':_0x59748d[_0x47f99a('0x15a5')]['userProfileId'],'sectionId':0x3ed})[_0x47f99a('0xe59')];})['then'](function(_0x10457e){var _0x1068f4=_0xe1d6b6,_0x39a157=_0x10457e&&_0x10457e[_0x1068f4('0x16a7')]?_0x10457e['rows'][0x0]:null;if(!_0x39a157)_0x59748d['pauses']=[];else{if(!_0x39a157[_0x1068f4('0x11fd')])return _0x3e50ea[_0x1068f4('0xd49')]['get']({'sectionId':_0x39a157['id']})['$promise'][_0x1068f4('0xe19')](function(_0x466920){var _0x227efa=_0x1068f4,_0x157568=_0x32d445()[_0x227efa('0x65a')](_0x466920[_0x227efa('0x16a7')],function(_0x59f008){var _0xab68a2=_0x227efa;return _0x32d445()[_0xab68a2('0xf15')](_0x59748d[_0xab68a2('0x145e')],{'id':_0x59f008['resourceId']});});_0x59748d[_0x227efa('0x145e')][_0x227efa('0x1d7e')](function(_0x12e63a){var _0xf618dd=_0x227efa;!_0x32d445()[_0xf618dd('0x201a')](_0x157568,['id',_0x12e63a['id']])&&(_0x12e63a['canSelect']=![]),_0x157568[_0xf618dd('0xb76')](_0x12e63a);}),_0x59748d[_0x227efa('0x145e')]=_0x157568;});}})['catch'](function(_0xb804a3){var _0x36df50=_0xe1d6b6;_0x1f2169[_0x36df50('0x8c8')]({'title':_0xb804a3[_0x36df50('0x2833')]?_0x36df50('0x27f2')+_0xb804a3[_0x36df50('0x2833')]+_0x36df50('0x1b7c')+_0xb804a3[_0x36df50('0x1fd7')]:_0x36df50('0x1da6'),'msg':_0xb804a3['data']?JSON[_0x36df50('0x3ad')](_0xb804a3[_0x36df50('0x11d0')]):_0xb804a3['toString']()});});function _0xb6eb66(_0x34d275){_0x5156a2['go']('app.whatsapp.whatsappAccounts.edit',{'id':_0x34d275['id'],'whatsappAccount':_0x34d275,'crudPermissions':_0x59748d['crudPermissions']});}function _0x1810c0(_0x36cb67){var _0x4f3085=_0xe1d6b6;_0x5156a2['go'](_0x4f3085('0x234d'),{'id':_0x36cb67['id'],'tab':0x5});}function _0x1a4542(_0xf13255,_0x555838){var _0x4d0ace=_0xe1d6b6;_0x4056e7[_0x4d0ace('0x26b2')]({'controller':'WhatsappAccountagentaddController','controllerAs':'vm','templateUrl':_0xee6200,'parent':angular['element'](_0x2f496c[_0x4d0ace('0x19b2')]),'targetEvent':_0x555838,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0xf13255,'whatsappAccounts':_0x59748d['whatsappAccounts']?_0x59748d[_0x4d0ace('0x14cf')]['rows']:[],'crudPermissions':_0x59748d[_0x4d0ace('0xb3d')],'realtime':![]}});}function _0x3029e8(_0x212c62,_0x2cb511){var _0x26ab2e=_0xe1d6b6,_0x48d862=_0x4056e7[_0x26ab2e('0xa5')]()[_0x26ab2e('0x13e4')](_0x26ab2e('0x346')+_0x32d445()[_0x26ab2e('0x1df2')](_0x26ab2e('0x223'))+'?')[_0x26ab2e('0x221c')](_0x26ab2e('0xab2')+(_0x212c62['name']||'whatsappAccount')+_0x26ab2e('0x27bb')+'\x20will\x20be\x20deleted.')[_0x26ab2e('0x4d1')](_0x26ab2e('0x25c'))[_0x26ab2e('0x1345')](_0x2cb511)['ok']('OK')['cancel'](_0x26ab2e('0x17'));_0x4056e7['show'](_0x48d862)['then'](function(){_0x5cb3d4(_0x212c62);},function(){var _0x164787=_0x26ab2e;console[_0x164787('0x1fe9')](_0x164787('0x17'));});}var _0x3176ca=!![],_0x4fb394=0x1;_0x57302c[_0xe1d6b6('0x107')](_0xe1d6b6('0x20cb'),function(_0x9d41ea,_0x5b4966){var _0x2b1e77=_0xe1d6b6;_0x3176ca?_0x40f69b(function(){_0x3176ca=![];}):(!_0x5b4966&&(_0x4fb394=_0x59748d[_0x2b1e77('0xa16')][_0x2b1e77('0xc08')]),_0x9d41ea!==_0x5b4966&&(_0x59748d[_0x2b1e77('0xa16')][_0x2b1e77('0xc08')]=0x1),!_0x9d41ea&&(_0x59748d[_0x2b1e77('0xa16')][_0x2b1e77('0xc08')]=_0x4fb394),_0x59748d[_0x2b1e77('0x1db3')]());});function _0x4faa5c(_0x4338f2){_0x59748d['whatsappAccounts']=_0x4338f2||{'count':0x0,'rows':[]};}function _0x372c41(){var _0x3aa619=_0xe1d6b6;_0x59748d['query'][_0x3aa619('0xab0')]=(_0x59748d[_0x3aa619('0xa16')][_0x3aa619('0xc08')]-0x1)*_0x59748d['query'][_0x3aa619('0x1b6d')],_0xf4bac3[_0x3aa619('0x179e')](_0x3aa619('0xd14'))?_0x59748d[_0x3aa619('0x9c8')]=_0x3e50ea['whatsappAccount']['get'](_0x59748d[_0x3aa619('0xa16')],_0x4faa5c)['$promise']:(_0x59748d[_0x3aa619('0xa16')]['id']=_0x59748d[_0x3aa619('0x154f')]['id'],_0x59748d[_0x3aa619('0xa16')][_0x3aa619('0x1e59')]='WhatsappAccounts',_0x59748d[_0x3aa619('0x9c8')]=_0x3e50ea[_0x3aa619('0x154f')][_0x3aa619('0x14e6')](_0x59748d[_0x3aa619('0xa16')],_0x4faa5c)[_0x3aa619('0xe59')]);}function _0x6a8c96(_0x1ce520,_0x13151a){var _0x52a36b=_0xe1d6b6;_0x4056e7[_0x52a36b('0x26b2')]({'controller':_0x52a36b('0x1b3c'),'controllerAs':'vm','templateUrl':_0xcacd69,'parent':angular[_0x52a36b('0x24a1')](_0x2f496c['body']),'targetEvent':_0x1ce520,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x13151a,'whatsappAccounts':_0x59748d[_0x52a36b('0x14cf')][_0x52a36b('0x16a7')],'license':_0x59748d[_0x52a36b('0x5c1')],'setting':_0x59748d[_0x52a36b('0x22f1')],'crudPermissions':_0x59748d[_0x52a36b('0xb3d')]}});}function _0x5cb3d4(_0x5eff9d){var _0x43f3e4=_0xe1d6b6;_0x3e50ea[_0x43f3e4('0x223')][_0x43f3e4('0x229e')]({'id':_0x5eff9d['id']})['$promise']['then'](function(){var _0x570151=_0x43f3e4;_0x32d445()['remove'](_0x59748d['whatsappAccounts'][_0x570151('0x16a7')],{'id':_0x5eff9d['id']}),_0x59748d[_0x570151('0x14cf')][_0x570151('0x148b')]-=0x1,!_0x59748d['whatsappAccounts']['rows'][_0x570151('0x25ae')]&&_0x59748d['getWhatsappAccounts'](),_0x1f2169['success']({'title':_0x32d445()[_0x570151('0x1df2')](_0x570151('0x1f5b'))+_0x570151('0x1219'),'msg':_0x5eff9d[_0x570151('0x2623')]?_0x5eff9d[_0x570151('0x2623')]+_0x570151('0x2182'):''});})[_0x43f3e4('0x223b')](function(_0x4ad558){var _0x163267=_0x43f3e4;if(_0x4ad558[_0x163267('0x11d0')]&&_0x4ad558[_0x163267('0x11d0')][_0x163267('0xcd2')]&&_0x4ad558[_0x163267('0x11d0')][_0x163267('0xcd2')][_0x163267('0x25ae')]){_0x59748d[_0x163267('0xcd2')]=_0x4ad558[_0x163267('0x11d0')]['errors']||[{'message':_0x4ad558['toString'](),'type':_0x163267('0x1e2e')}];for(var _0x577b6f=0x0;_0x577b6f<_0x4ad558[_0x163267('0x11d0')]['errors'][_0x163267('0x25ae')];_0x577b6f++){_0x1f2169[_0x163267('0x8c8')]({'title':_0x4ad558[_0x163267('0x11d0')][_0x163267('0xcd2')][_0x577b6f][_0x163267('0x62e')],'msg':_0x4ad558[_0x163267('0x11d0')][_0x163267('0xcd2')][_0x577b6f][_0x163267('0x27e8')]});}}else _0x1f2169['error']({'title':_0x4ad558[_0x163267('0x2833')]?'API:'+_0x4ad558[_0x163267('0x2833')]+_0x163267('0x1b7c')+_0x4ad558[_0x163267('0x1fd7')]:'SYSTEM:DELETEwhatsappAccount','msg':_0x4ad558[_0x163267('0x11d0')]?JSON['stringify'](_0x4ad558[_0x163267('0x11d0')][_0x163267('0x27e8')]):_0x4ad558[_0x163267('0x27e8')]||_0x4ad558[_0x163267('0x94f')]()});});}function _0x572eb9(){var _0x1eb490=_0xe1d6b6,_0x3cde77=angular[_0x1eb490('0x89')](_0x59748d['selectedWhatsappAccounts']);return _0x59748d[_0x1eb490('0x12a7')]=[],_0x3cde77;}function _0x24ae35(_0x451a31){var _0x3ec6cc=_0xe1d6b6,_0x521a0f=_0x4056e7['confirm']()[_0x3ec6cc('0x13e4')](_0x3ec6cc('0x114'))[_0x3ec6cc('0x221c')](''+_0x59748d[_0x3ec6cc('0x12a7')]['length']+_0x3ec6cc('0x5bc')+_0x3ec6cc('0x21bd'))['ariaLabel'](_0x3ec6cc('0xfbc'))[_0x3ec6cc('0x1345')](_0x451a31)['ok']('OK')[_0x3ec6cc('0x2c1')](_0x3ec6cc('0x17'));_0x4056e7['show'](_0x521a0f)[_0x3ec6cc('0xe19')](function(){var _0x2c6313=_0x3ec6cc;_0x59748d[_0x2c6313('0x12a7')][_0x2c6313('0x1d7e')](function(_0x15da5a){_0x5cb3d4(_0x15da5a);}),_0x59748d[_0x2c6313('0x12a7')]=[];});}function _0x4bd4ba(){_0x59748d['selectedWhatsappAccounts']=[];}function _0x5b69aa(){var _0xa48be6=_0xe1d6b6;_0x59748d[_0xa48be6('0x12a7')]=_0x59748d['whatsappAccounts'][_0xa48be6('0x16a7')];}}const _0x22f43b=_0x2a2ec7;_0x4fd4c9[_0xb635d2('0xb0c')]=['$scope',_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$q',_0xb635d2('0x2493'),'toasty',_0xb635d2('0xcf3'),_0xb635d2('0x17a7'),'api',_0xb635d2('0x2730'),_0xb635d2('0x5c1'),_0xb635d2('0x22f1'),_0xb635d2('0xb3d')];function _0x4fd4c9(_0x45bded,_0x5529f0,_0x54c21b,_0x1752dd,_0x3d176a,_0x46c578,_0x15eadb,_0x5d1705,_0x4ccc86,_0x2aa128,_0x3ec175,_0x179101,_0x57e908,_0x42747d){var _0xe2347=_0xb635d2,_0x15caec=this;_0x15caec[_0xe2347('0x15a5')]=_0x3ec175['getCurrentUser'](),_0x15caec[_0xe2347('0xcd2')]=[],_0x15caec['setting']=_0x57e908,_0x15caec[_0xe2347('0x5c1')]=_0x179101,_0x15caec[_0xe2347('0xb3d')]=_0x42747d,_0x15caec[_0xe2347('0x1ccb')]={},_0x15caec['passwordPattern']=_0x15caec[_0xe2347('0x22f1')]&&_0x15caec[_0xe2347('0x22f1')][_0xe2347('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x15caec[_0xe2347('0x13e4')]='WHATSAPP.EDIT_WHATSAPPQUEUE',_0x15caec['whatsappQueue']=angular[_0xe2347('0x89')](_0x4ccc86),_0x15caec[_0xe2347('0xcf3')]=_0x5d1705,_0x15caec[_0xe2347('0x678')]=![];!_0x15caec[_0xe2347('0x17a7')]&&(_0x15caec[_0xe2347('0x17a7')]={'strategy':_0xe2347('0x1442'),'timeout':0xa},_0x15caec[_0xe2347('0x13e4')]=_0xe2347('0x1301'),_0x15caec[_0xe2347('0x678')]=!![]);_0x15caec[_0xe2347('0x1e4b')]=_0x36dca9,_0x15caec[_0xe2347('0x134e')]=_0x3311b3,_0x15caec[_0xe2347('0x685')]=_0x2b3a19,_0x15caec[_0xe2347('0x2635')]=_0x11c1a9,_0x15caec[_0xe2347('0x2584')]=_0x6549f2;function _0x36dca9(){var _0x41c304=_0xe2347;_0x15caec['errors']=[],_0x2aa128[_0x41c304('0x17a7')]['save'](_0x15caec[_0x41c304('0x17a7')])[_0x41c304('0xe59')][_0x41c304('0xe19')](function(_0x6207b3){var _0x2499c8=_0x41c304;_0x15caec[_0x2499c8('0xcf3')]['unshift'](_0x6207b3[_0x2499c8('0x250e')]()),_0x15eadb[_0x2499c8('0x425')]({'title':_0x2499c8('0x1ef4'),'msg':_0x15caec['whatsappQueue'][_0x2499c8('0x2623')]?_0x15caec['whatsappQueue'][_0x2499c8('0x2623')]+_0x2499c8('0x105f'):''}),_0x6549f2(_0x6207b3);})[_0x41c304('0x223b')](function(_0x4c32cd){var _0x2eedac=_0x41c304;if(_0x4c32cd[_0x2eedac('0x11d0')]&&_0x4c32cd[_0x2eedac('0x11d0')][_0x2eedac('0xcd2')]&&_0x4c32cd[_0x2eedac('0x11d0')][_0x2eedac('0xcd2')][_0x2eedac('0x25ae')]){_0x15caec['errors']=_0x4c32cd[_0x2eedac('0x11d0')][_0x2eedac('0xcd2')]||[{'message':_0x4c32cd[_0x2eedac('0x94f')](),'type':_0x2eedac('0x10c1')}];for(var _0x1200d3=0x0;_0x1200d3<_0x4c32cd[_0x2eedac('0x11d0')][_0x2eedac('0xcd2')][_0x2eedac('0x25ae')];_0x1200d3+=0x1){_0x15eadb[_0x2eedac('0x8c8')]({'title':_0x4c32cd['data'][_0x2eedac('0xcd2')][_0x1200d3][_0x2eedac('0x62e')],'msg':_0x4c32cd[_0x2eedac('0x11d0')]['errors'][_0x1200d3][_0x2eedac('0x27e8')]});}}else _0x15eadb[_0x2eedac('0x8c8')]({'title':_0x4c32cd[_0x2eedac('0x2833')]?_0x2eedac('0x27f2')+_0x4c32cd[_0x2eedac('0x2833')]+_0x2eedac('0x1b7c')+_0x4c32cd[_0x2eedac('0x1fd7')]:_0x2eedac('0x10c1'),'msg':_0x4c32cd['data']?JSON[_0x2eedac('0x3ad')](_0x4c32cd[_0x2eedac('0x11d0')][_0x2eedac('0x27e8')]):_0x4c32cd['toString']()});});}function _0x3311b3(){var _0x21342c=_0xe2347;_0x15caec[_0x21342c('0xcd2')]=[],_0x2aa128[_0x21342c('0x17a7')]['update']({'id':_0x15caec[_0x21342c('0x17a7')]['id']},_0x15caec[_0x21342c('0x17a7')])[_0x21342c('0xe59')][_0x21342c('0xe19')](function(_0x480e75){var _0x32b449=_0x21342c,_0x4fe0ce=_0x32d445()[_0x32b449('0xf15')](_0x15caec[_0x32b449('0xcf3')],{'id':_0x480e75['id']});_0x4fe0ce&&_0x32d445()[_0x32b449('0x1d8')](_0x4fe0ce,_0x32d445()['pick'](_0x480e75[_0x32b449('0x250e')](),_0x32d445()[_0x32b449('0x1234')](_0x4fe0ce))),_0x15eadb[_0x32b449('0x425')]({'title':_0x32b449('0x1982'),'msg':_0x15caec['whatsappQueue'][_0x32b449('0x2623')]?_0x15caec['whatsappQueue']['name']+'\x20has\x20been\x20saved!':''}),_0x6549f2(_0x480e75);})[_0x21342c('0x223b')](function(_0x5b7974){var _0x3a2e60=_0x21342c;if(_0x5b7974[_0x3a2e60('0x11d0')]&&_0x5b7974['data'][_0x3a2e60('0xcd2')]&&_0x5b7974[_0x3a2e60('0x11d0')][_0x3a2e60('0xcd2')]['length']){_0x15caec[_0x3a2e60('0xcd2')]=_0x5b7974[_0x3a2e60('0x11d0')]['errors']||[{'message':_0x5b7974[_0x3a2e60('0x94f')](),'type':_0x3a2e60('0x139f')}];for(var _0x2f0e9d=0x0;_0x2f0e9d<_0x5b7974[_0x3a2e60('0x11d0')]['errors'][_0x3a2e60('0x25ae')];_0x2f0e9d++){_0x15eadb[_0x3a2e60('0x8c8')]({'title':_0x5b7974[_0x3a2e60('0x11d0')][_0x3a2e60('0xcd2')][_0x2f0e9d][_0x3a2e60('0x62e')],'msg':_0x5b7974['data'][_0x3a2e60('0xcd2')][_0x2f0e9d][_0x3a2e60('0x27e8')]});}}else _0x15eadb[_0x3a2e60('0x8c8')]({'title':_0x5b7974[_0x3a2e60('0x2833')]?'API:'+_0x5b7974[_0x3a2e60('0x2833')]+_0x3a2e60('0x1b7c')+_0x5b7974[_0x3a2e60('0x1fd7')]:_0x3a2e60('0x139f'),'msg':_0x5b7974['data']?JSON[_0x3a2e60('0x3ad')](_0x5b7974[_0x3a2e60('0x11d0')][_0x3a2e60('0x27e8')]):_0x5b7974[_0x3a2e60('0x94f')]()});});}function _0x2b3a19(_0x2e10c0){var _0x3e5f0f=_0xe2347;_0x15caec[_0x3e5f0f('0xcd2')]=[];var _0x17ea05=_0x1752dd[_0x3e5f0f('0xa5')]()['title'](_0x3e5f0f('0x24d0'))[_0x3e5f0f('0xd0')](_0x3e5f0f('0x208e'))[_0x3e5f0f('0x4d1')](_0x3e5f0f('0xe28'))['ok'](_0x3e5f0f('0x2198'))[_0x3e5f0f('0x2c1')]('Cancel')[_0x3e5f0f('0x1345')](_0x2e10c0);_0x1752dd[_0x3e5f0f('0x26b2')](_0x17ea05)[_0x3e5f0f('0xe19')](function(){var _0x45fea7=_0x3e5f0f;_0x2aa128[_0x45fea7('0x17a7')][_0x45fea7('0x229e')]({'id':_0x15caec[_0x45fea7('0x17a7')]['id']})['$promise']['then'](function(){var _0x1af78e=_0x45fea7;_0x32d445()['remove'](_0x15caec['whatsappQueues'],{'id':_0x15caec[_0x1af78e('0x17a7')]['id']}),_0x15eadb[_0x1af78e('0x425')]({'title':_0x1af78e('0x50f'),'msg':(_0x15caec['whatsappQueue'][_0x1af78e('0x2623')]||_0x1af78e('0x17a7'))+_0x1af78e('0x2182')}),_0x6549f2(_0x15caec[_0x1af78e('0x17a7')]);})['catch'](function(_0x3f24a2){var _0x3513e6=_0x45fea7;if(_0x3f24a2['data']&&_0x3f24a2[_0x3513e6('0x11d0')][_0x3513e6('0xcd2')]&&_0x3f24a2[_0x3513e6('0x11d0')][_0x3513e6('0xcd2')]['length']){_0x15caec['errors']=_0x3f24a2['data'][_0x3513e6('0xcd2')]||[{'message':_0x3f24a2[_0x3513e6('0x94f')](),'type':_0x3513e6('0xd25')}];for(var _0x48e521=0x0;_0x48e521<_0x3f24a2[_0x3513e6('0x11d0')][_0x3513e6('0xcd2')][_0x3513e6('0x25ae')];_0x48e521++){_0x15eadb[_0x3513e6('0x8c8')]({'title':_0x3f24a2[_0x3513e6('0x11d0')][_0x3513e6('0xcd2')][_0x48e521][_0x3513e6('0x62e')],'msg':_0x3f24a2[_0x3513e6('0x11d0')][_0x3513e6('0xcd2')][_0x48e521]['message']});}}else _0x15eadb[_0x3513e6('0x8c8')]({'title':_0x3f24a2[_0x3513e6('0x2833')]?_0x3513e6('0x27f2')+_0x3f24a2[_0x3513e6('0x2833')]+_0x3513e6('0x1b7c')+_0x3f24a2[_0x3513e6('0x1fd7')]:'api.whatsappQueue.delete','msg':_0x3f24a2[_0x3513e6('0x11d0')]?JSON[_0x3513e6('0x3ad')](_0x3f24a2[_0x3513e6('0x11d0')][_0x3513e6('0x27e8')]):_0x3f24a2['message']||_0x3f24a2['toString']()});});},function(){});}function _0x11c1a9(_0x150be1){return _0x150be1===null?undefined:new Date(_0x150be1);}function _0x6549f2(_0x35b91c){_0x1752dd['hide'](_0x35b91c);}}const _0x556097=_0x4fd4c9;_0x215c82[_0xb635d2('0xb0c')]=['$mdDialog','$q',_0xb635d2('0xf65'),'api',_0xb635d2('0x17a7'),_0xb635d2('0xcf3'),'realtime',_0xb635d2('0x2493'),_0xb635d2('0x2730'),'crudPermissions'];function _0x215c82(_0x249559,_0x2d5025,_0x4b0f02,_0x1a846a,_0x5bce3b,_0x24fa98,_0x478333,_0x2da342,_0x4063c2,_0x3f5898){var _0x378a48=_0xb635d2,_0x1c0914=this;_0x1c0914[_0x378a48('0x15a5')]=_0x4063c2[_0x378a48('0x1ef8')](),_0x1c0914[_0x378a48('0x17a7')]=_0x5bce3b,_0x1c0914[_0x378a48('0xb3d')]=_0x3f5898,_0x1c0914[_0x378a48('0x24e1')]=_0x478333,_0x1c0914[_0x378a48('0xe4b')]=[],_0x1c0914[_0x378a48('0x1884')]=[],_0x1c0914[_0x378a48('0x2273')]=[],_0x1c0914[_0x378a48('0x286c')]=[],_0x1c0914[_0x378a48('0xf79')]=[],_0x1c0914[_0x378a48('0x16e7')]=![],_0x1c0914[_0x378a48('0x888')]=_0x4c73c8,_0x1c0914['saveAgents']=_0x2c6175,_0x1c0914['closeDialog']=_0x1ed870,_0x1c0914['dualMultiselectOptions']={'readOnly':!_0x1c0914[_0x378a48('0xb3d')][_0x378a48('0x12bc')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x378a48('0x2623'),'line1':'fullname','line2':['name',_0x378a48('0x1b66')],'line3':'','labelAll':_0x2da342[_0x378a48('0x2159')]('WHATSAPP.ALL_AGENTS'),'labelSelected':_0x2da342[_0x378a48('0x2159')](_0x378a48('0x2850')),'transferCallback':function _0x311332(){var _0x27c32e=_0x378a48,_0x579484=_0x32d445()[_0x27c32e('0x118')](_0x1c0914[_0x27c32e('0xf79')],_0x1c0914['selectedItems'],'id');_0x1c0914['pendingChanges']=_0x32d445()[_0x27c32e('0x14b4')](_0x579484)?![]:!![];}};function _0x4c73c8(){return _0x4063c2['hasRole']('admin')?_0x1f5464()['catch'](function(_0x430f5f){var _0x50fdfa=a0_0x5325;_0x4b0f02[_0x50fdfa('0x8c8')]({'title':_0x430f5f[_0x50fdfa('0x2833')]?'API:'+_0x430f5f[_0x50fdfa('0x2833')]+_0x50fdfa('0x1b7c')+_0x430f5f[_0x50fdfa('0x1fd7')]:_0x50fdfa('0x1e86'),'msg':_0x430f5f[_0x50fdfa('0x2833')]?JSON[_0x50fdfa('0x3ad')](_0x430f5f['data']):_0x430f5f['toString']()});}):_0x25c599()['then'](function(_0x39f826){return _0x1c0914['section']=_0x39f826,_0x1f5464();})['catch'](function(_0x5aea54){var _0x225ce3=a0_0x5325;_0x4b0f02[_0x225ce3('0x8c8')]({'title':_0x5aea54['status']?_0x225ce3('0x27f2')+_0x5aea54[_0x225ce3('0x2833')]+_0x225ce3('0x1b7c')+_0x5aea54['statusText']:_0x225ce3('0x1e86'),'msg':_0x5aea54[_0x225ce3('0x2833')]?JSON[_0x225ce3('0x3ad')](_0x5aea54['data']):_0x5aea54[_0x225ce3('0x94f')]()});});}function _0x25c599(){return _0x2d5025(function(_0x1da1de,_0x2f2847){var _0x176ce2=a0_0x5325;_0x1a846a[_0x176ce2('0xb59')][_0x176ce2('0x22d5')]({'userProfileId':_0x1c0914[_0x176ce2('0x15a5')][_0x176ce2('0x1d04')],'name':_0x176ce2('0xd61')})[_0x176ce2('0xe59')][_0x176ce2('0xe19')](function(_0x200edd){var _0xa57b31=_0x176ce2,_0xdd9e8a=_0x200edd&&_0x200edd['rows']?_0x200edd[_0xa57b31('0x16a7')][0x0]:null;_0x1da1de(_0xdd9e8a);})[_0x176ce2('0x223b')](function(_0x346dbc){_0x2f2847(_0x346dbc);});});}function _0x1f5464(){return _0x2d5025(function(_0x1803bf,_0x3bba8b){var _0x1172cf=a0_0x5325;return _0x57e49a()[_0x1172cf('0xe19')](function(_0x1f927d){var _0x116429=_0x1172cf;return _0x1c0914[_0x116429('0xe4b')]=_0x1f927d[_0x116429('0x16a7')]?_0x1f927d[_0x116429('0x16a7')]:[],_0x4063c2[_0x116429('0x179e')]('admin')?_0x1f927d:_0x1c0914['section']?_0x1c0914[_0x116429('0x1e59')][_0x116429('0x11fd')]?_0x1f927d:_0x3aa45():null;})[_0x1172cf('0xe19')](function(_0x371169){var _0x26a893=_0x1172cf,_0x535186=_0x371169&&_0x371169[_0x26a893('0x16a7')]?_0x371169['rows']:[];return _0x1c0914[_0x26a893('0x1884')]=_0x32d445()[_0x26a893('0x65a')](_0x535186,function(_0x492ead){var _0x2006e0=_0x26a893;return _0x32d445()[_0x2006e0('0xf15')](_0x1c0914[_0x2006e0('0xe4b')],{'id':_0x4063c2[_0x2006e0('0x179e')]('admin')||_0x1c0914[_0x2006e0('0x1e59')][_0x2006e0('0x11fd')]?_0x492ead['id']:_0x492ead[_0x2006e0('0x1104')]});}),_0x1c0914['startingAllowedItems']=angular[_0x26a893('0x89')](_0x1c0914[_0x26a893('0x1884')]),_0x1c0914['items'][_0x26a893('0x1d7e')](function(_0x1da61f){var _0x38a60d=_0x26a893,_0x123fea=_0x32d445()[_0x38a60d('0xf15')](_0x1c0914[_0x38a60d('0x1884')],{'id':_0x1da61f['id']});_0x4063c2['hasRole']('admin')?_0x1da61f[_0x38a60d('0x1768')]=!![]:_0x1da61f[_0x38a60d('0x1768')]=typeof _0x123fea!==_0x38a60d('0x1143')?!![]:![];}),_0x1b6535();})[_0x1172cf('0xe19')](function(_0x257bf4){var _0x385577=_0x1172cf,_0x4c727d=_0x257bf4&&_0x257bf4['rows']?_0x257bf4[_0x385577('0x16a7')]:[];_0x1c0914['selectedItems']=_0x32d445()['map'](_0x4c727d,function(_0x3132fe){var _0x1a8d6f=_0x385577,_0x266167=_0x32d445()['find'](_0x1c0914['items'],{'id':_0x3132fe['id']});return _0x266167[_0x1a8d6f('0x21e3')]=_0x3132fe[_0x1a8d6f('0x1f4c')]?_0x1a8d6f('0x815')+_0x3132fe[_0x1a8d6f('0x1f4c')][_0x1a8d6f('0x21e3')]:'',_0x266167[_0x1a8d6f('0x1b66')]=typeof _0x3132fe['internal']!==_0x1a8d6f('0x1143')?'<'+_0x3132fe[_0x1a8d6f('0x1b66')]+'>':'',_0x266167;}),_0x1c0914[_0x385577('0xf79')]=angular[_0x385577('0x89')](_0x1c0914['selectedItems']),_0x1c0914[_0x385577('0xc00')]['selectedItems']=_0x1c0914[_0x385577('0x2273')],_0x1c0914[_0x385577('0xc00')][_0x385577('0xe4b')]=_0x32d445()[_0x385577('0x501')](_0x1c0914[_0x385577('0x1884')],_0x1c0914[_0x385577('0xc00')][_0x385577('0x2273')],'id'),_0x1803bf();})['catch'](function(_0x55480a){_0x3bba8b(_0x55480a);});});}function _0x3aa45(){return _0x2d5025(function(_0x90fa1a,_0x308073){var _0x41eee7=a0_0x5325;return _0x1a846a[_0x41eee7('0xd49')][_0x41eee7('0x22d5')]({'sectionId':_0x1c0914['section']['id'],'nolimit':!![]})[_0x41eee7('0xe59')][_0x41eee7('0xe19')](function(_0x775b32){_0x90fa1a(_0x775b32);})[_0x41eee7('0x223b')](function(_0x5a1796){_0x308073(_0x5a1796);});});}function _0x1b6535(){return _0x2d5025(function(_0x3a45a5,_0x2a33f5){var _0x18a907=a0_0x5325;return _0x1a846a['whatsappQueue'][_0x18a907('0x14fd')]({'id':_0x1c0914[_0x18a907('0x17a7')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x18a907('0x108')})[_0x18a907('0xe59')][_0x18a907('0xe19')](function(_0xa94dfb){_0x3a45a5(_0xa94dfb);})[_0x18a907('0x223b')](function(_0x28384d){_0x2a33f5(_0x28384d);});});}function _0x57e49a(){return _0x2d5025(function(_0x437e1f,_0x55aa39){var _0x2b4f50=a0_0x5325;return _0x1a846a[_0x2b4f50('0x10c6')][_0x2b4f50('0x22d5')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x2b4f50('0x108')})[_0x2b4f50('0xe59')][_0x2b4f50('0xe19')](function(_0x185e4a){_0x437e1f(_0x185e4a);})[_0x2b4f50('0x223b')](function(_0x1ab525){_0x55aa39(_0x1ab525);});});}function _0x22d2d5(_0x1cbbe4){return _0x2d5025(function(_0x2844ec,_0x1c5ceb){var _0x380a42=a0_0x5325;_0x32d445()[_0x380a42('0x14b4')](_0x1cbbe4)?_0x2844ec():_0x1a846a['whatsappQueue'][_0x380a42('0x2271')]({'id':_0x1c0914[_0x380a42('0x17a7')]['id'],'ids':_0x32d445()['map'](_0x1cbbe4,'id')})[_0x380a42('0xe59')][_0x380a42('0xe19')](function(){_0x2844ec();})[_0x380a42('0x223b')](function(_0x2dc529){_0x1c5ceb(_0x2dc529);});});}function _0x3cf31a(_0x1470a1){return _0x2d5025(function(_0x4f1893,_0x2d501a){var _0x3aaf8e=a0_0x5325;_0x32d445()[_0x3aaf8e('0x14b4')](_0x1470a1)?_0x4f1893():_0x1a846a[_0x3aaf8e('0x17a7')][_0x3aaf8e('0x6aa')]({'id':_0x1c0914['whatsappQueue']['id'],'ids':_0x32d445()[_0x3aaf8e('0x65a')](_0x1470a1,'id')})[_0x3aaf8e('0xe59')][_0x3aaf8e('0xe19')](function(){_0x4f1893();})[_0x3aaf8e('0x223b')](function(_0x41cafb){_0x2d501a(_0x41cafb);});});}function _0x2c6175(){var _0x314903=_0x378a48,_0x3f47a6=_0x32d445()[_0x314903('0x501')](_0x1c0914[_0x314903('0xf79')],_0x1c0914[_0x314903('0x2273')],'id'),_0x2d2425=_0x32d445()['differenceBy'](_0x1c0914[_0x314903('0x2273')],_0x1c0914[_0x314903('0xf79')],'id');return _0x3cf31a(_0x3f47a6)[_0x314903('0xe19')](function(){return _0x22d2d5(_0x2d2425);})[_0x314903('0xe19')](function(){var _0x52e1db=_0x314903;_0x1c0914[_0x52e1db('0x16e7')]=![],_0x1c0914[_0x52e1db('0x286c')]=angular['copy'](_0x1c0914['allowedItems']),_0x1c0914[_0x52e1db('0xf79')]=angular[_0x52e1db('0x89')](_0x1c0914[_0x52e1db('0x2273')]),_0x4b0f02['success']({'title':_0x52e1db('0x1dca'),'msg':_0x52e1db('0x25d')});})[_0x314903('0x223b')](function(_0x152cf6){var _0xea0233=_0x314903;_0x4b0f02[_0xea0233('0x8c8')]({'title':_0x152cf6[_0xea0233('0x2833')]?_0xea0233('0x27f2')+_0x152cf6[_0xea0233('0x2833')]+_0xea0233('0x1b7c')+_0x152cf6[_0xea0233('0x1fd7')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x152cf6[_0xea0233('0x2833')]?JSON[_0xea0233('0x3ad')](_0x152cf6[_0xea0233('0x11d0')]):_0x152cf6[_0xea0233('0x94f')]()});});}function _0x1ed870(){var _0x14104c=_0x378a48;_0x249559[_0x14104c('0x11ed')]();}}const _0x5af8e3=_0x215c82;_0x1eeb64[_0xb635d2('0xb0c')]=[_0xb635d2('0x1c9f'),'$q',_0xb635d2('0xf65'),_0xb635d2('0xffc'),'whatsappQueue',_0xb635d2('0x2493'),_0xb635d2('0x2730'),_0xb635d2('0xb3d')];function _0x1eeb64(_0x333526,_0x54ddfd,_0x10304d,_0x44897d,_0x2eacc6,_0x2f2657,_0x12fe66,_0x62add5){var _0x3ae815=_0xb635d2,_0x28c513=this;_0x28c513[_0x3ae815('0x15a5')]=_0x12fe66[_0x3ae815('0x1ef8')](),_0x28c513[_0x3ae815('0x17a7')]=_0x2eacc6,_0x28c513[_0x3ae815('0xb3d')]=_0x62add5,_0x28c513[_0x3ae815('0xe4b')]=[],_0x28c513[_0x3ae815('0x1884')]=[],_0x28c513['selectedItems']=[],_0x28c513[_0x3ae815('0x286c')]=[],_0x28c513[_0x3ae815('0xf79')]=[],_0x28c513[_0x3ae815('0x16e7')]=![],_0x28c513[_0x3ae815('0xc00')]={'readOnly':!_0x28c513[_0x3ae815('0xb3d')][_0x3ae815('0x12bc')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3ae815('0x2623'),'line1':_0x3ae815('0x2623'),'line2':'','line3':'','labelAll':_0x2f2657['instant'](_0x3ae815('0x12be')),'labelSelected':_0x2f2657[_0x3ae815('0x2159')](_0x3ae815('0x440')),'transferCallback':function _0x400ff1(){var _0x53f359=_0x3ae815,_0xd0ef51=_0x32d445()[_0x53f359('0x118')](_0x28c513[_0x53f359('0xf79')],_0x28c513[_0x53f359('0x2273')],'id');_0x28c513[_0x53f359('0x16e7')]=_0x32d445()['isEmpty'](_0xd0ef51)?![]:!![];}},_0x28c513[_0x3ae815('0x888')]=_0x1e54d6,_0x28c513[_0x3ae815('0xc30')]=_0x1413ee,_0x28c513[_0x3ae815('0x2584')]=_0xf0fdb4;function _0x1e54d6(){var _0x20ae14=_0x3ae815;return _0x12fe66[_0x20ae14('0x179e')](_0x20ae14('0xd14'))?_0x4712cf()[_0x20ae14('0x223b')](function(_0x12b33c){var _0x4b38d9=_0x20ae14;_0x10304d[_0x4b38d9('0x8c8')]({'title':_0x12b33c[_0x4b38d9('0x2833')]?_0x4b38d9('0x27f2')+_0x12b33c[_0x4b38d9('0x2833')]+'\x20-\x20'+_0x12b33c[_0x4b38d9('0x1fd7')]:_0x4b38d9('0x4a4'),'msg':_0x12b33c['status']?JSON[_0x4b38d9('0x3ad')](_0x12b33c[_0x4b38d9('0x11d0')]):_0x12b33c[_0x4b38d9('0x94f')]()});}):_0x5c8a3f()['then'](function(_0x1e22e8){var _0x160749=_0x20ae14;return _0x28c513[_0x160749('0x1e59')]=_0x1e22e8,_0x4712cf();})[_0x20ae14('0x223b')](function(_0x1c39ba){var _0x5d42ba=_0x20ae14;_0x10304d['error']({'title':_0x1c39ba[_0x5d42ba('0x2833')]?_0x5d42ba('0x27f2')+_0x1c39ba['status']+_0x5d42ba('0x1b7c')+_0x1c39ba[_0x5d42ba('0x1fd7')]:_0x5d42ba('0x4a4'),'msg':_0x1c39ba['status']?JSON[_0x5d42ba('0x3ad')](_0x1c39ba['data']):_0x1c39ba[_0x5d42ba('0x94f')]()});});}function _0x5c8a3f(){return _0x54ddfd(function(_0x33a4e1,_0x1b56d9){var _0x3eb904=a0_0x5325;_0x44897d[_0x3eb904('0xb59')][_0x3eb904('0x22d5')]({'userProfileId':_0x28c513[_0x3eb904('0x15a5')][_0x3eb904('0x1d04')],'name':_0x3eb904('0x1d54')})[_0x3eb904('0xe59')][_0x3eb904('0xe19')](function(_0x5b8e3a){var _0x7ddf49=_0x5b8e3a&&_0x5b8e3a['rows']?_0x5b8e3a['rows'][0x0]:null;_0x33a4e1(_0x7ddf49);})['catch'](function(_0x252e40){_0x1b56d9(_0x252e40);});});}function _0x4712cf(){return _0x54ddfd(function(_0x224c8d,_0x45d6f5){var _0x49d1bd=a0_0x5325;return _0x29d0db()[_0x49d1bd('0xe19')](function(_0x2fefe3){var _0x2ea50a=_0x49d1bd;return _0x28c513[_0x2ea50a('0xe4b')]=_0x2fefe3[_0x2ea50a('0x16a7')]?_0x2fefe3['rows']:[],_0x12fe66['hasRole']('admin')?_0x2fefe3:_0x28c513[_0x2ea50a('0x1e59')]?_0x28c513['section'][_0x2ea50a('0x11fd')]?_0x2fefe3:_0x5a9164():null;})[_0x49d1bd('0xe19')](function(_0x573bdd){var _0x55d262=_0x49d1bd,_0x159858=_0x573bdd&&_0x573bdd[_0x55d262('0x16a7')]?_0x573bdd['rows']:[];return _0x28c513[_0x55d262('0x1884')]=_0x32d445()[_0x55d262('0x65a')](_0x159858,function(_0x141c99){var _0x4a511d=_0x55d262;return _0x32d445()[_0x4a511d('0xf15')](_0x28c513[_0x4a511d('0xe4b')],{'id':_0x12fe66[_0x4a511d('0x179e')]('admin')||_0x28c513[_0x4a511d('0x1e59')]['autoAssociation']?_0x141c99['id']:_0x141c99['resourceId']});}),_0x28c513['items'][_0x55d262('0x1d7e')](function(_0x1af950){var _0x4a55fc=_0x55d262,_0x55980e=_0x32d445()[_0x4a55fc('0xf15')](_0x28c513['allowedItems'],{'id':_0x1af950['id']});_0x12fe66[_0x4a55fc('0x179e')](_0x4a55fc('0xd14'))?_0x1af950['isValid']=!![]:_0x1af950[_0x4a55fc('0x1768')]=typeof _0x55980e!=='undefined'?!![]:![];}),_0xab0607();})[_0x49d1bd('0xe19')](function(_0xb5f320){var _0xf527a=_0x49d1bd,_0x5dd197=_0xb5f320&&_0xb5f320[_0xf527a('0x16a7')]?_0xb5f320['rows']:[];_0x28c513[_0xf527a('0x2273')]=_0x32d445()[_0xf527a('0x65a')](_0x5dd197,function(_0x50fe8f){var _0x3cb5f9=_0xf527a;return _0x32d445()[_0x3cb5f9('0xf15')](_0x28c513[_0x3cb5f9('0xe4b')],{'id':_0x50fe8f['id']});}),_0x28c513[_0xf527a('0xf79')]=angular['copy'](_0x28c513[_0xf527a('0x2273')]),_0x28c513[_0xf527a('0xc00')][_0xf527a('0x2273')]=_0x28c513['selectedItems'],_0x28c513[_0xf527a('0xc00')]['items']=_0x32d445()[_0xf527a('0x501')](_0x28c513[_0xf527a('0x1884')],_0x28c513['dualMultiselectOptions']['selectedItems'],'id'),_0x224c8d();})[_0x49d1bd('0x223b')](function(_0x4ee8b4){_0x45d6f5(_0x4ee8b4);});});}function _0x5a9164(){return _0x54ddfd(function(_0x545c08,_0x44edc6){var _0x527d52=a0_0x5325;return _0x44897d[_0x527d52('0xd49')][_0x527d52('0x22d5')]({'sectionId':_0x28c513['section']['id'],'nolimit':!![]})[_0x527d52('0xe59')][_0x527d52('0xe19')](function(_0x23a284){_0x545c08(_0x23a284);})[_0x527d52('0x223b')](function(_0xa481c7){_0x44edc6(_0xa481c7);});});}function _0xab0607(){return _0x54ddfd(function(_0xb980f,_0x31487a){var _0x13b71d=a0_0x5325;return _0x44897d[_0x13b71d('0x17a7')][_0x13b71d('0x106a')]({'id':_0x28c513[_0x13b71d('0x17a7')]['id'],'fields':_0x13b71d('0x104'),'nolimit':!![]})[_0x13b71d('0xe59')][_0x13b71d('0xe19')](function(_0x598a78){_0xb980f(_0x598a78);})[_0x13b71d('0x223b')](function(_0x2c90b3){_0x31487a(_0x2c90b3);});});}function _0x29d0db(){return _0x54ddfd(function(_0x25e123,_0xcb18fb){var _0x4b6b04=a0_0x5325;return _0x44897d[_0x4b6b04('0x25af')][_0x4b6b04('0x22d5')]({'fields':_0x4b6b04('0x104'),'nolimit':!![]})[_0x4b6b04('0xe59')][_0x4b6b04('0xe19')](function(_0x73af3c){_0x25e123(_0x73af3c);})[_0x4b6b04('0x223b')](function(_0x13bcc0){_0xcb18fb(_0x13bcc0);});});}function _0xbf18dd(_0x4345d9){return _0x54ddfd(function(_0x3879ac,_0x3eefa7){var _0x2c2cf1=a0_0x5325;_0x32d445()[_0x2c2cf1('0x14b4')](_0x4345d9)?_0x3879ac():_0x44897d[_0x2c2cf1('0x17a7')]['addTeams']({'id':_0x28c513[_0x2c2cf1('0x17a7')]['id'],'ids':_0x32d445()['map'](_0x4345d9,'id')})[_0x2c2cf1('0xe59')]['then'](function(){_0x3879ac();})[_0x2c2cf1('0x223b')](function(_0x7300c9){_0x3eefa7(_0x7300c9);});});}function _0x2af0f1(_0xcba744){return _0x54ddfd(function(_0x447702,_0x16fc99){var _0x588e98=a0_0x5325;_0x32d445()[_0x588e98('0x14b4')](_0xcba744)?_0x447702():_0x44897d[_0x588e98('0x17a7')]['removeTeams']({'id':_0x28c513[_0x588e98('0x17a7')]['id'],'ids':_0x32d445()[_0x588e98('0x65a')](_0xcba744,'id')})[_0x588e98('0xe59')][_0x588e98('0xe19')](function(){_0x447702();})['catch'](function(_0x333222){_0x16fc99(_0x333222);});});}function _0x1413ee(){var _0x5f54d2=_0x3ae815,_0xf233e1=_0x32d445()[_0x5f54d2('0x501')](_0x28c513[_0x5f54d2('0xf79')],_0x28c513['selectedItems'],'id'),_0x19be2d=_0x32d445()[_0x5f54d2('0x501')](_0x28c513[_0x5f54d2('0x2273')],_0x28c513[_0x5f54d2('0xf79')],'id');return _0x2af0f1(_0xf233e1)[_0x5f54d2('0xe19')](function(){return _0xbf18dd(_0x19be2d);})[_0x5f54d2('0xe19')](function(){var _0xfd6290=_0x5f54d2;_0x28c513[_0xfd6290('0x16e7')]=![],_0x28c513[_0xfd6290('0x286c')]=angular[_0xfd6290('0x89')](_0x28c513[_0xfd6290('0x1884')]),_0x28c513[_0xfd6290('0xf79')]=angular['copy'](_0x28c513[_0xfd6290('0x2273')]),_0x10304d['success']({'title':_0xfd6290('0x1dca'),'msg':_0xfd6290('0x22e1')});})['catch'](function(_0x2f17c4){var _0x33054e=_0x5f54d2;_0x10304d[_0x33054e('0x8c8')]({'title':_0x2f17c4['status']?'API:'+_0x2f17c4[_0x33054e('0x2833')]+_0x33054e('0x1b7c')+_0x2f17c4[_0x33054e('0x1fd7')]:_0x33054e('0x2168'),'msg':_0x2f17c4[_0x33054e('0x2833')]?JSON['stringify'](_0x2f17c4[_0x33054e('0x11d0')]):_0x2f17c4[_0x33054e('0x94f')]()});});}function _0xf0fdb4(){_0x333526['hide']();}}const _0x8f4aeb=_0x1eeb64,_0x248ff6=_0x59426a['p']+_0xb635d2('0x185');_0x4e6046['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x2276'),_0xb635d2('0x1c9f'),'$document','$translate',_0xb635d2('0x5c1'),'setting',_0xb635d2('0xffc'),_0xb635d2('0xf65'),_0xb635d2('0x2730'),_0xb635d2('0x17a7'),_0xb635d2('0xb59')];function _0x4e6046(_0x4f0e85,_0x774765,_0x2080ed,_0xb20458,_0x3bf9c3,_0x2ae9b1,_0x2cbd29,_0x5c85ed,_0x4b1e97,_0x34d6db,_0x5dad4a,_0x47ea69){var _0x1e4698=_0xb635d2,_0x3a4408=this;_0x3a4408[_0x1e4698('0x15a5')]=_0x34d6db['getCurrentUser'](),_0x3a4408[_0x1e4698('0x5c1')]=_0x2ae9b1,_0x3a4408[_0x1e4698('0x22f1')]=_0x2cbd29,_0x3a4408[_0x1e4698('0x25ac')]=_0x3a4408[_0x1e4698('0x22f1')][_0x1e4698('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a4408[_0x1e4698('0x2170')]=_0x774765[_0x1e4698('0xec0')]()+_0x1e4698('0x21a8')+_0x774765['host'](),_0x3a4408['whatsappQueue']=_0x5dad4a||_0x4f0e85[_0x1e4698('0x2ef')][_0x1e4698('0x17a7')]||{},_0x3a4408[_0x1e4698('0xb59')]=_0x47ea69&&_0x47ea69[_0x1e4698('0x148b')]==0x1?_0x47ea69[_0x1e4698('0x16a7')][0x0]:null,_0x3a4408[_0x1e4698('0xb3d')]=_0x34d6db[_0x1e4698('0xd31')](_0x3a4408[_0x1e4698('0xb59')]?_0x3a4408[_0x1e4698('0xb59')][_0x1e4698('0xb3d')]:null),_0x3a4408[_0x1e4698('0x1ccb')]={},_0x3a4408[_0x1e4698('0xc7b')]=_0x4f0e85[_0x1e4698('0x2ef')][_0x1e4698('0x435')]||0x0,_0x3a4408[_0x1e4698('0x23f1')]=_0x474c24,_0x3a4408[_0x1e4698('0x1407')]=_0x594081,_0x3a4408[_0x1e4698('0xbdc')]=_0x4b1e97[_0x1e4698('0x1e67')],_0x3a4408['gotoWhatsappQueues']=_0x3613c5,_0x3a4408[_0x1e4698('0x134e')]=_0x778693;function _0x474c24(_0x48ec08,_0x4a12b7){var _0xdd8b9b=_0x1e4698;_0x2080ed[_0xdd8b9b('0x26b2')]({'controller':'WhatsappQueueteamaddController','controllerAs':'vm','templateUrl':_0x248ff6,'parent':angular[_0xdd8b9b('0x24a1')](_0xb20458['body']),'targetEvent':_0x4a12b7,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x48ec08,'whatsappQueues':_0x3a4408[_0xdd8b9b('0xcf3')]?_0x3a4408[_0xdd8b9b('0xcf3')]['rows']:[],'crudPermissions':_0x3a4408[_0xdd8b9b('0xb3d')]}});}function _0x594081(_0x169063,_0x2cf695){var _0x540aca=_0x1e4698;_0x2080ed[_0x540aca('0x26b2')]({'controller':'WhatsappQueueagentaddController','controllerAs':'vm','templateUrl':_0x1a35b6,'parent':angular[_0x540aca('0x24a1')](_0xb20458[_0x540aca('0x19b2')]),'targetEvent':_0x2cf695,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x169063,'whatsappQueues':_0x3a4408[_0x540aca('0xcf3')]?_0x3a4408[_0x540aca('0xcf3')][_0x540aca('0x16a7')]:[],'crudPermissions':_0x3a4408[_0x540aca('0xb3d')],'realtime':![]}});}function _0x3613c5(){var _0x1a1765=_0x1e4698;_0x4f0e85['go'](_0x1a1765('0x2180'),{},{'reload':_0x1a1765('0x2180')});}function _0x778693(){var _0x2a5f53=_0x1e4698;_0x5c85ed['whatsappQueue'][_0x2a5f53('0xa70')]({'id':_0x3a4408['whatsappQueue']['id']},_0x3a4408[_0x2a5f53('0x17a7')])[_0x2a5f53('0xe59')][_0x2a5f53('0xe19')](function(){var _0x51cf1e=_0x2a5f53;_0x4b1e97[_0x51cf1e('0x425')]({'title':_0x51cf1e('0x2107'),'msg':_0x3a4408['whatsappQueue']['name']?_0x3a4408[_0x51cf1e('0x17a7')]['name']+_0x51cf1e('0x283b'):''});})[_0x2a5f53('0x223b')](function(_0x3cde13){var _0x1188e1=_0x2a5f53;_0x4b1e97['error']({'title':_0x3cde13['status']?_0x1188e1('0x27f2')+_0x3cde13[_0x1188e1('0x2833')]+_0x1188e1('0x1b7c')+_0x3cde13['statusText']:_0x1188e1('0x1c68'),'msg':_0x3cde13[_0x1188e1('0x11d0')]?JSON[_0x1188e1('0x3ad')](_0x3cde13[_0x1188e1('0x11d0')]):_0x3cde13[_0x1188e1('0x94f')]()});});}}const _0x5df340=_0x4e6046;_0x41f2a3['$inject']=['$scope',_0xb635d2('0x2400'),_0xb635d2('0xeb6'),'$mdSidenav',_0xb635d2('0x1c9f'),'$document',_0xb635d2('0x1a0b'),_0xb635d2('0x2493'),'whatsappQueues',_0xb635d2('0x154f'),_0xb635d2('0xb59'),_0xb635d2('0xffc'),_0xb635d2('0x1563'),'toasty',_0xb635d2('0x2730'),'license',_0xb635d2('0x22f1')];function _0x41f2a3(_0x2eb21,_0xd6f84d,_0x237593,_0x5c2ad7,_0x5efaee,_0x324cb9,_0x566bc1,_0x544d98,_0x9ada6a,_0xa92f91,_0x5116e7,_0xaa1ccd,_0x158d2d,_0x237cc8,_0x4d3b9a,_0x228b62,_0x271391){var _0x33b1d9=_0xb635d2,_0x156c11=this;_0x156c11['license']=_0x228b62,_0x156c11[_0x33b1d9('0x22f1')]=_0x271391,_0x156c11[_0x33b1d9('0x15a5')]=_0x4d3b9a[_0x33b1d9('0x1ef8')](),_0x156c11[_0x33b1d9('0xcf3')]=_0x9ada6a||{'count':0x0,'rows':[]},_0x156c11[_0x33b1d9('0x154f')]=_0xa92f91,_0x156c11[_0x33b1d9('0xb59')]=_0x5116e7&&_0x5116e7['count']==0x1?_0x5116e7[_0x33b1d9('0x16a7')][0x0]:null,_0x156c11[_0x33b1d9('0xb3d')]=_0x4d3b9a[_0x33b1d9('0xd31')](_0x156c11[_0x33b1d9('0xb59')]?_0x156c11[_0x33b1d9('0xb59')][_0x33b1d9('0xb3d')]:null),_0x156c11[_0x33b1d9('0x19b6')]=_0x33b1d9('0xcf3'),_0x156c11[_0x33b1d9('0x14d6')]='',_0x156c11[_0x33b1d9('0x190c')]=null,_0x156c11[_0x33b1d9('0xe2e')]=[],_0x156c11[_0x33b1d9('0xa16')]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x33b1d9('0x7e8'),'channel':_0x33b1d9('0x4b7'),'limit':0xa,'page':0x1},_0x156c11[_0x33b1d9('0xa67')]=_0x32d445()[_0x33b1d9('0x226f')]([{'option':_0x33b1d9('0x26e4'),'value':'\x27beepall\x27'},{'option':'RR\x20Memory','value':_0x33b1d9('0x236a')}],function(_0x5b621b){var _0x17842e=_0x33b1d9;return _0x32d445()['replace'](_0x5b621b[_0x17842e('0x2')],new RegExp('\x27','g'),'');}),_0x156c11[_0x33b1d9('0x16a0')]=_0x3470ba,_0x156c11[_0x33b1d9('0x23f1')]=_0x7dc8e1,_0x156c11[_0x33b1d9('0x1407')]=_0x49b4c0,_0x156c11[_0x33b1d9('0x1d9e')]=_0x32fece,_0x156c11[_0x33b1d9('0x20e3')]=_0x40889f,_0x156c11[_0x33b1d9('0x425')]=_0x2c32cc,_0x156c11[_0x33b1d9('0x1742')]=_0x20f02b,_0x156c11['createOrEditWhatsappQueue']=_0xb3be45,_0x156c11[_0x33b1d9('0x685')]=_0x11d125,_0x156c11[_0x33b1d9('0xc3e')]=_0xbbfc9e,_0x156c11[_0x33b1d9('0xea5')]=_0x464370,_0x156c11[_0x33b1d9('0x307')]=_0x31d548,_0x156c11[_0x33b1d9('0x2f6')]=_0x166767;function _0x3470ba(_0x27cc0e){var _0x5505e4=_0x33b1d9;_0x237593['go'](_0x5505e4('0x24af'),{'id':_0x27cc0e['id'],'whatsappQueue':_0x27cc0e,'crudPermissions':_0x156c11[_0x5505e4('0xb3d')]});}function _0x7dc8e1(_0x28eeb9,_0x174969){var _0x134165=_0x33b1d9;_0x5efaee[_0x134165('0x26b2')]({'controller':_0x134165('0x461'),'controllerAs':'vm','templateUrl':_0x248ff6,'parent':angular[_0x134165('0x24a1')](_0x324cb9['body']),'targetEvent':_0x174969,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x28eeb9,'whatsappQueues':_0x156c11[_0x134165('0xcf3')]?_0x156c11[_0x134165('0xcf3')][_0x134165('0x16a7')]:[],'crudPermissions':_0x156c11[_0x134165('0xb3d')]}});}function _0x49b4c0(_0x17e8a9,_0x3317c0){var _0x190aa6=_0x33b1d9;_0x5efaee[_0x190aa6('0x26b2')]({'controller':_0x190aa6('0x3ca'),'controllerAs':'vm','templateUrl':_0x1a35b6,'parent':angular[_0x190aa6('0x24a1')](_0x324cb9[_0x190aa6('0x19b2')]),'targetEvent':_0x3317c0,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x17e8a9,'whatsappQueues':_0x156c11[_0x190aa6('0xcf3')]?_0x156c11[_0x190aa6('0xcf3')][_0x190aa6('0x16a7')]:[],'crudPermissions':_0x156c11[_0x190aa6('0xb3d')],'realtime':![]}});}function _0x32fece(_0x38b8ce,_0x58673f){var _0x5b65e2=_0x33b1d9,_0x47505f=_0x5efaee[_0x5b65e2('0xa5')]()[_0x5b65e2('0x13e4')](_0x5b65e2('0x346')+_0x32d445()['startCase']('whatsappQueue')+'?')[_0x5b65e2('0x221c')](_0x5b65e2('0xab2')+(_0x38b8ce[_0x5b65e2('0x2623')]||_0x5b65e2('0x17a7'))+_0x5b65e2('0x27bb')+_0x5b65e2('0x21bd'))[_0x5b65e2('0x4d1')]('delete\x20whatsappQueue')[_0x5b65e2('0x1345')](_0x58673f)['ok']('OK')[_0x5b65e2('0x2c1')](_0x5b65e2('0x17'));_0x5efaee[_0x5b65e2('0x26b2')](_0x47505f)[_0x5b65e2('0xe19')](function(){_0x11d125(_0x38b8ce);},function(){var _0x1d1590=_0x5b65e2;console[_0x1d1590('0x1fe9')]('CANCEL');});}function _0x40889f(){var _0x1bff5c=_0x33b1d9;if(_0x4d3b9a['hasRole'](_0x1bff5c('0xd14')))_0x237593['go'](_0x1bff5c('0xd47'),{});else return _0xaa1ccd['userProfileSection'][_0x1bff5c('0x22d5')]({'userProfileId':_0x4d3b9a[_0x1bff5c('0x1ef8')]()[_0x1bff5c('0x1d04')],'sectionId':0x83e})['$promise'][_0x1bff5c('0xe19')](function(_0x543814){var _0x45e7e7=_0x1bff5c,_0x538017=_0x543814&&_0x543814[_0x45e7e7('0x16a7')]?_0x543814[_0x45e7e7('0x16a7')][0x0]:null;_0x538017&&_0x538017[_0x45e7e7('0x4ef')]?_0x237593['go']('app.whatsapp.realtime.queues',{}):_0x237cc8[_0x45e7e7('0x1e67')]({'title':_0x544d98['instant'](_0x45e7e7('0x2786')),'msg':_0x544d98[_0x45e7e7('0x2159')](_0x45e7e7('0x4bb'))});})['catch'](function(_0x2ba3d3){var _0x2c66f3=_0x1bff5c;_0x237cc8[_0x2c66f3('0x8c8')]({'title':_0x2ba3d3['status']?_0x2c66f3('0x27f2')+_0x2ba3d3[_0x2c66f3('0x2833')]+'\x20-\x20'+_0x2ba3d3[_0x2c66f3('0x1fd7')]:_0x2c66f3('0x343'),'msg':_0x2ba3d3['status']?JSON[_0x2c66f3('0x3ad')](_0x2ba3d3[_0x2c66f3('0x11d0')]):_0x2ba3d3[_0x2c66f3('0x94f')]()});});}var _0x55c937=!![],_0x379d50=0x1;_0x2eb21[_0x33b1d9('0x107')](_0x33b1d9('0x20cb'),function(_0x1e23b8,_0x511520){var _0x59589a=_0x33b1d9;_0x55c937?_0x566bc1(function(){_0x55c937=![];}):(!_0x511520&&(_0x379d50=_0x156c11['query'][_0x59589a('0xc08')]),_0x1e23b8!==_0x511520&&(_0x156c11[_0x59589a('0xa16')][_0x59589a('0xc08')]=0x1),!_0x1e23b8&&(_0x156c11['query'][_0x59589a('0xc08')]=_0x379d50),_0x156c11['getWhatsappQueues']());});function _0x2c32cc(_0x1ce0ab){var _0x3cdc6a=_0x33b1d9;_0x156c11[_0x3cdc6a('0xcf3')]=_0x1ce0ab||{'count':0x0,'rows':[]};}function _0x20f02b(){var _0x1582f9=_0x33b1d9;_0x156c11[_0x1582f9('0xa16')][_0x1582f9('0xab0')]=(_0x156c11['query'][_0x1582f9('0xc08')]-0x1)*_0x156c11[_0x1582f9('0xa16')]['limit'],_0x4d3b9a[_0x1582f9('0x179e')](_0x1582f9('0xd14'))?_0x156c11[_0x1582f9('0x9c8')]=_0xaa1ccd[_0x1582f9('0x17a7')]['get'](_0x156c11[_0x1582f9('0xa16')],_0x2c32cc)[_0x1582f9('0xe59')]:(_0x156c11['query']['id']=_0x156c11['userProfile']['id'],_0x156c11['query'][_0x1582f9('0x1e59')]='WhatsappQueues',_0x156c11['promise']=_0xaa1ccd[_0x1582f9('0x154f')][_0x1582f9('0x14e6')](_0x156c11[_0x1582f9('0xa16')],_0x2c32cc)[_0x1582f9('0xe59')]);}function _0xb3be45(_0x3a4a7c,_0x12568b){var _0x41bb43=_0x33b1d9;_0x5efaee['show']({'controller':_0x41bb43('0x1b08'),'controllerAs':'vm','templateUrl':_0x8c908c,'parent':angular['element'](_0x324cb9[_0x41bb43('0x19b2')]),'targetEvent':_0x3a4a7c,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x12568b,'whatsappQueues':_0x156c11[_0x41bb43('0xcf3')][_0x41bb43('0x16a7')],'license':_0x156c11[_0x41bb43('0x5c1')],'setting':_0x156c11[_0x41bb43('0x22f1')],'crudPermissions':_0x156c11[_0x41bb43('0xb3d')]}});}function _0x11d125(_0x3af527){var _0x303585=_0x33b1d9;_0xaa1ccd[_0x303585('0x17a7')][_0x303585('0x229e')]({'id':_0x3af527['id']})[_0x303585('0xe59')]['then'](function(){var _0x34b138=_0x303585;_0x32d445()[_0x34b138('0xa8b')](_0x156c11['whatsappQueues'][_0x34b138('0x16a7')],{'id':_0x3af527['id']}),_0x156c11[_0x34b138('0xcf3')]['count']-=0x1,!_0x156c11[_0x34b138('0xcf3')][_0x34b138('0x16a7')][_0x34b138('0x25ae')]&&_0x156c11[_0x34b138('0x1742')](),_0x237cc8[_0x34b138('0x425')]({'title':_0x32d445()['startCase'](_0x34b138('0xbbe'))+_0x34b138('0x1219'),'msg':_0x3af527[_0x34b138('0x2623')]?_0x3af527[_0x34b138('0x2623')]+_0x34b138('0x2182'):''});})[_0x303585('0x223b')](function(_0x56cd49){var _0x44d80b=_0x303585;if(_0x56cd49['data']&&_0x56cd49[_0x44d80b('0x11d0')][_0x44d80b('0xcd2')]&&_0x56cd49['data'][_0x44d80b('0xcd2')][_0x44d80b('0x25ae')]){_0x156c11[_0x44d80b('0xcd2')]=_0x56cd49[_0x44d80b('0x11d0')][_0x44d80b('0xcd2')]||[{'message':_0x56cd49[_0x44d80b('0x94f')](),'type':_0x44d80b('0x223f')}];for(var _0xee896e=0x0;_0xee896e<_0x56cd49[_0x44d80b('0x11d0')][_0x44d80b('0xcd2')][_0x44d80b('0x25ae')];_0xee896e++){_0x237cc8[_0x44d80b('0x8c8')]({'title':_0x56cd49[_0x44d80b('0x11d0')][_0x44d80b('0xcd2')][_0xee896e][_0x44d80b('0x62e')],'msg':_0x56cd49[_0x44d80b('0x11d0')][_0x44d80b('0xcd2')][_0xee896e][_0x44d80b('0x27e8')]});}}else _0x237cc8['error']({'title':_0x56cd49[_0x44d80b('0x2833')]?_0x44d80b('0x27f2')+_0x56cd49[_0x44d80b('0x2833')]+'\x20-\x20'+_0x56cd49[_0x44d80b('0x1fd7')]:_0x44d80b('0x223f'),'msg':_0x56cd49[_0x44d80b('0x11d0')]?JSON[_0x44d80b('0x3ad')](_0x56cd49[_0x44d80b('0x11d0')][_0x44d80b('0x27e8')]):_0x56cd49[_0x44d80b('0x27e8')]||_0x56cd49[_0x44d80b('0x94f')]()});});}function _0xbbfc9e(){var _0x3362d9=_0x33b1d9,_0x383879=angular[_0x3362d9('0x89')](_0x156c11[_0x3362d9('0xe2e')]);return _0x156c11[_0x3362d9('0xe2e')]=[],_0x383879;}function _0x464370(_0x4d4a80){var _0x4aec12=_0x33b1d9,_0x268d09=_0x5efaee[_0x4aec12('0xa5')]()[_0x4aec12('0x13e4')](_0x4aec12('0x14a3'))['htmlContent'](''+_0x156c11[_0x4aec12('0xe2e')][_0x4aec12('0x25ae')]+_0x4aec12('0x5bc')+_0x4aec12('0x21bd'))[_0x4aec12('0x4d1')](_0x4aec12('0x108a'))[_0x4aec12('0x1345')](_0x4d4a80)['ok']('OK')[_0x4aec12('0x2c1')]('CANCEL');_0x5efaee[_0x4aec12('0x26b2')](_0x268d09)[_0x4aec12('0xe19')](function(){var _0xd8d8f6=_0x4aec12;_0x156c11[_0xd8d8f6('0xe2e')][_0xd8d8f6('0x1d7e')](function(_0x2a5935){_0x11d125(_0x2a5935);}),_0x156c11['selectedWhatsappQueues']=[];});}function _0x31d548(){var _0x1c0712=_0x33b1d9;_0x156c11[_0x1c0712('0xe2e')]=[];}function _0x166767(){var _0x1e1622=_0x33b1d9;_0x156c11['selectedWhatsappQueues']=_0x156c11[_0x1e1622('0xcf3')][_0x1e1622('0x16a7')];}}const _0x4f52df=_0x41f2a3;_0xa2802a[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),'$translatePartialLoaderProvider'];function _0xa2802a(_0x86ee63,_0x50bf95){var _0x34144e=_0xb635d2;_0x86ee63[_0x34144e('0x1d72')](_0x34144e('0x1db8'),{'abstract':!![],'url':_0x34144e('0x1fc4')})['state']('app.whatsapp.whatsappQueues',{'url':'/whatsappQueues','views':{'content@app':{'templateUrl':_0x3f256b,'controller':_0x34144e('0x25e8')}},'resolve':{'whatsappQueues':[_0x34144e('0x292'),_0x34144e('0x2730'),function _0x19dfc0(_0x334a77,_0x22349d){var _0x117f71=_0x34144e;return _0x22349d[_0x117f71('0x179e')]('admin')?_0x334a77['resolve'](_0x117f71('0x2890'),{'fields':_0x117f71('0x1bd'),'sort':_0x117f71('0x7e8'),'channel':_0x117f71('0x4b7'),'limit':0xa,'offset':0x0}):_0x334a77['resolve'](_0x117f71('0x197d'),{'id':_0x22349d['getCurrentUser']()[_0x117f71('0x1d04')],'section':'WhatsappQueues','fields':_0x117f71('0x1bd'),'sort':_0x117f71('0x7e8'),'channel':_0x117f71('0x4b7'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x34144e('0x292'),_0x34144e('0x2730'),function _0x2f6a8b(_0x5bf070,_0x30d0ba){var _0x477762=_0x34144e;return _0x30d0ba[_0x477762('0x179e')](_0x477762('0xd14'))?null:_0x5bf070[_0x477762('0xcd6')](_0x477762('0x455'),{'fields':'id,name,crudPermissions','id':_0x30d0ba[_0x477762('0x1ef8')]()['userProfileId']});}],'userProfileSection':[_0x34144e('0x292'),'Auth',function _0x5d0670(_0x4c45d8,_0x3760da){var _0x57ffcc=_0x34144e;return _0x3760da[_0x57ffcc('0x179e')](_0x57ffcc('0xd14'))?null:_0x4c45d8[_0x57ffcc('0xcd6')](_0x57ffcc('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3760da[_0x57ffcc('0x1ef8')]()[_0x57ffcc('0x1d04')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x34144e('0x4b7')})[_0x34144e('0x1d72')]('app.whatsapp.whatsappQueues.edit',{'url':'/:id?tab','params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3988fc,'controller':_0x34144e('0x18c1')}},'resolve':{'whatsappQueue':['apiResolver','$stateParams',function _0x37fa58(_0x4317aa,_0x1f684d){var _0x1efed1=_0x34144e;return _0x4317aa[_0x1efed1('0xcd6')](_0x1efed1('0x2890'),{'fields':_0x1efed1('0x1bd'),'id':_0x1f684d['id']});}],'userProfileSection':['apiResolver',_0x34144e('0x2730'),function _0x227a54(_0x16f42d,_0x32dc8f){var _0x15b5dc=_0x34144e;return _0x16f42d[_0x15b5dc('0xcd6')](_0x15b5dc('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x32dc8f[_0x15b5dc('0x1ef8')]()[_0x15b5dc('0x1d04')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x34144e('0x4b7')})['state'](_0x34144e('0x2892'),{'url':_0x34144e('0x2512'),'views':{'content@app':{'templateUrl':_0x93e3d2,'controller':'WhatsappAccountsController\x20as\x20vm'}},'resolve':{'whatsappAccounts':[_0x34144e('0x292'),'Auth',function _0xa3c75d(_0x4acdf6,_0x707db3){var _0x178dc2=_0x34144e;return _0x707db3['hasRole'](_0x178dc2('0xd14'))?_0x4acdf6['resolve'](_0x178dc2('0xe91'),{'fields':'createdAt,updatedAt,id,name,key,ListId,remote,token,type,accountSid,authToken,phone,receiveUrl,deliveryReportUrl,notificationShake,notificationSound,notificationTemplate,queueTransfer,queueTransferTimeout,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,agentTransfer,agentTransferTimeout,description','sort':_0x178dc2('0x7e8'),'limit':0xa,'offset':0x0}):_0x4acdf6[_0x178dc2('0xcd6')](_0x178dc2('0x197d'),{'id':_0x707db3[_0x178dc2('0x1ef8')]()[_0x178dc2('0x1d04')],'section':_0x178dc2('0x1d20'),'fields':'createdAt,updatedAt,id,name,key,ListId,remote,token,type,accountSid,authToken,phone,receiveUrl,deliveryReportUrl,notificationShake,notificationSound,notificationTemplate,queueTransfer,queueTransferTimeout,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,agentTransfer,agentTransferTimeout,description','sort':_0x178dc2('0x7e8'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x34144e('0x2730'),function _0x1c1336(_0x44381a,_0x590bdb){var _0x49183f=_0x34144e;return _0x590bdb[_0x49183f('0x179e')](_0x49183f('0xd14'))?null:_0x44381a[_0x49183f('0xcd6')](_0x49183f('0x455'),{'fields':_0x49183f('0x1b71'),'id':_0x590bdb[_0x49183f('0x1ef8')]()[_0x49183f('0x1d04')]});}],'userProfileSection':['apiResolver',_0x34144e('0x2730'),function _0xb7b9ce(_0x470f2f,_0x37196f){var _0x5c77bd=_0x34144e;return _0x37196f[_0x5c77bd('0x179e')](_0x5c77bd('0xd14'))?null:_0x470f2f[_0x5c77bd('0xcd6')](_0x5c77bd('0x264e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x37196f[_0x5c77bd('0x1ef8')]()[_0x5c77bd('0x1d04')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x34144e('0x4b7')})[_0x34144e('0x1d72')](_0x34144e('0x234d'),{'url':_0x34144e('0xb1d'),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x16af49,'controller':_0x34144e('0x121a')}},'resolve':{'whatsappAccount':[_0x34144e('0x292'),_0x34144e('0x34'),function _0x36452c(_0x56d9ee,_0x9fac0){var _0x391289=_0x34144e;return _0x56d9ee[_0x391289('0xcd6')]('whatsappAccount@get',{'fields':_0x391289('0x117d'),'id':_0x9fac0['id']});}],'userProfileSection':['apiResolver','Auth',function _0x47f9e1(_0x253d37,_0x2afb70){var _0x167867=_0x34144e;return _0x253d37['resolve']('userProfileSection@get',{'fields':_0x167867('0x12d6'),'userProfileId':_0x2afb70[_0x167867('0x1ef8')]()[_0x167867('0x1d04')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x34144e('0x4b7')}),_0x50bf95[_0x34144e('0xfe3')]('app/main/apps/whatsapp');}angular['module'](_0xb635d2('0x1db8'),['ngCsv',_0xb635d2('0x24b'),_0xb635d2('0x274e'),_0xb635d2('0x206b'),_0xb635d2('0xd8b'),_0xb635d2('0x1727'),'ng-sortable',_0xb635d2('0x1703'),_0xb635d2('0x1c2a'),'mdPickers',_0xb635d2('0x1ebb'),_0xb635d2('0xce0'),_0xb635d2('0x282d'),'ngclipboard',_0xb635d2('0x127e'),_0xb635d2('0x16a8'),_0xb635d2('0x17b0'),'material.components.expansionPanels',_0xb635d2('0xe93'),_0xb635d2('0x16a1'),'app.whatsapp.realtime'])[_0xb635d2('0x1990')](_0xa2802a)[_0xb635d2('0x1a79')](_0xb635d2('0x1b3c'),_0x3b45f2)[_0xb635d2('0x1a79')](_0xb635d2('0x16f5'),_0x5df281)[_0xb635d2('0x1a79')]('WhatsappAccountagentaddController',_0x507300)[_0xb635d2('0x1a79')](_0xb635d2('0x13ed'),_0x5f189e)[_0xb635d2('0x1a79')](_0xb635d2('0x26ff'),_0xf5b119)[_0xb635d2('0x1a79')](_0xb635d2('0x1e5f'),_0x4cbc14)[_0xb635d2('0x1a79')](_0xb635d2('0x1de7'),_0x22ca14)[_0xb635d2('0x1a79')]('EditWhatsappAccountAppdialogflowDialogController',_0x4dc69b)[_0xb635d2('0x1a79')](_0xb635d2('0x1ff6'),_0x1a23c3)['controller'](_0xb635d2('0xe10'),_0x7261ee)[_0xb635d2('0x1a79')]('EditWhatsappAccountAppintervalDialogController',_0x3e47f0)[_0xb635d2('0x1a79')](_0xb635d2('0x16ec'),_0x203bce)['controller'](_0xb635d2('0x999'),_0x1e38dd)[_0xb635d2('0x1a79')]('EditWhatsappAccountAppsystemDialogController',_0x17d47d)[_0xb635d2('0x1a79')](_0xb635d2('0x10e2'),_0x1790d9)[_0xb635d2('0x1a79')](_0xb635d2('0x9cf'),_0x1e4ed5)[_0xb635d2('0x1a79')](_0xb635d2('0x941'),_0x379eb6)[_0xb635d2('0x1a79')](_0xb635d2('0xf2f'),_0x6a9614)['controller'](_0xb635d2('0x60'),_0x307de0)[_0xb635d2('0x1a79')](_0xb635d2('0x1729'),_0x1bf486)[_0xb635d2('0x1a79')](_0xb635d2('0x1b25'),_0x22f43b)[_0xb635d2('0x1a79')](_0xb635d2('0x1b08'),_0x556097)['controller'](_0xb635d2('0x3ca'),_0x5af8e3)[_0xb635d2('0x1a79')](_0xb635d2('0x461'),_0x8f4aeb)[_0xb635d2('0x1a79')]('WhatsappQueueController',_0x5df340)[_0xb635d2('0x1a79')](_0xb635d2('0x8db'),_0x4f52df);const _0x1d0f26=_0x59426a['p']+'src/js/modules/login/login.html/login-[chunkhash].html',_0x43b399=_0x59426a['p']+_0xb635d2('0x4fe'),_0x5cb5d4=_0x59426a['p']+'src/js/modules/core/layouts/content-with-toolbar.html/content-with-toolbar-[chunkhash].html',_0x4243bf=_0x59426a['p']+_0xb635d2('0xe03'),_0x189367=_0x59426a['p']+_0xb635d2('0x1611'),_0x35d37a=_0x59426a['p']+'src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar-[chunkhash].html',_0x2a2136=_0x59426a['p']+'src/js/modules/core/layouts/vertical-navigation.html/vertical-navigation-[chunkhash].html';_0x329be1['$inject']=[_0xb635d2('0xeb6'),_0xb635d2('0x2400'),_0xb635d2('0x1c1d'),_0xb635d2('0x1a0b'),'api',_0xb635d2('0x2730'),_0xb635d2('0x22f1')];function _0x329be1(_0x4a417a,_0x1fcbba,_0x105998,_0x48b75d,_0x1bc244,_0x4741a9,_0x217caa){var _0x5b4610=_0xb635d2,_0x3830d4=this;_0x3830d4[_0x5b4610('0x2474')]=![],_0x3830d4[_0x5b4610('0x1a5')]=![],_0x3830d4[_0x5b4610('0x2496')]=_0x1bc244[_0x5b4610('0x2496')];function _0x353fe3(){var _0x3f8ea1=_0x5b4610;if(_0x4a417a[_0x3f8ea1('0x2ef')][_0x3f8ea1('0x1fbd')]&&_0x4a417a[_0x3f8ea1('0x2ef')]['userId'])return _0x4741a9['removeCookies'](),_0x3830d4['progresslogin']=!![],_0x105998[_0x3f8ea1('0x153c')]('motion.token',_0x4a417a[_0x3f8ea1('0x2ef')][_0x3f8ea1('0x1fbd')]),_0x1bc244[_0x3f8ea1('0x10c6')][_0x3f8ea1('0x22d5')]({'id':_0x4a417a[_0x3f8ea1('0x2ef')][_0x3f8ea1('0xe31')]})[_0x3f8ea1('0xe59')]['then'](function(_0x5deb2e){var _0x4f7f74=_0x3f8ea1;_0x5deb2e&&(_0x4741a9[_0x4f7f74('0x22ad')](_0x5deb2e),_0x4a417a['go'](_0x4f7f74('0xb1a')));})[_0x3f8ea1('0x23')](function(){var _0x533c57=_0x3f8ea1;_0x3830d4[_0x533c57('0x2474')]=![];});else _0x4741a9[_0x3f8ea1('0x299')]()&&_0x4a417a['go'](_0x3f8ea1('0xb1a'));_0x3830d4[_0x3f8ea1('0x1a5')]=_0x217caa['googleSsoEnabled'];}function _0x5f0b14(){var _0x1a8f65=_0x5b4610;return _0x3830d4[_0x1a8f65('0x2474')]=!![],_0x3830d4[_0x1a8f65('0x27e8')]='',_0x4741a9['login'](_0x3830d4[_0x1a8f65('0x5f2')])['then'](function(){var _0x27c487=_0x1a8f65;return _0x4a417a['go'](_0x27c487('0xb1a'));})[_0x1a8f65('0x223b')](function(_0x5b7a54){var _0x5d3272=_0x1a8f65;_0x3830d4['message']=_0x5b7a54[_0x5d3272('0x11d0')]?_0x5b7a54[_0x5d3272('0x11d0')][_0x5d3272('0x27e8')]:_0x5b7a54[_0x5d3272('0x27e8')];})['finally'](function(){_0x3830d4['progresslogin']=![];});}function _0x278c8c(_0x4d1f06){var _0xcac2e1=_0x5b4610;_0x3830d4['message']='',_0x1fcbba[_0xcac2e1('0x2170')]['href']=_0x4741a9[_0xcac2e1('0x2247')](_0x4d1f06);}_0x3830d4[_0x5b4610('0x96d')]=_0x5f0b14,_0x3830d4[_0x5b4610('0xc3d')]=_0x278c8c,_0x3830d4[_0x5b4610('0x888')]=_0x353fe3,_0x3830d4[_0x5b4610('0x888')]();}const _0x178f14=_0x329be1;_0x4e276a[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x4e276a(_0x3205ac,_0xda8a67){var _0x552d27=_0xb635d2;_0x3205ac[_0x552d27('0x1d72')](_0x552d27('0x2322'),{'url':_0x552d27('0x1b0f'),'views':{'main@':{'templateUrl':_0x43b399,'controller':'MainController\x20as\x20vm'},'content@app.login':{'templateUrl':_0x1d0f26,'controller':'LoginController\x20as\x20vm'}},'bodyClass':'login'}),_0xda8a67[_0x552d27('0xfe3')](_0x552d27('0x17a3'));}angular[_0xb635d2('0x153f')]('app.login',[])[_0xb635d2('0x1990')](_0x4e276a)['controller'](_0xb635d2('0x274'),_0x178f14);const _0x4af615=_0x59426a['p']+_0xb635d2('0x1f29');_0x3c1f6b[_0xb635d2('0xb0c')]=[_0xb635d2('0x2730'),'toasty',_0xb635d2('0x2493'),_0xb635d2('0xeb6'),_0xb635d2('0xffc')];function _0x3c1f6b(_0x4ae5a3,_0x4dc4e3,_0x3cff19,_0x5df9bd,_0x10317d){var _0x1778ea=_0xb635d2,_0x2d879b=this;_0x2d879b[_0x1778ea('0x5f2')]={},_0x2d879b[_0x1778ea('0x2496')]=_0x10317d[_0x1778ea('0x2496')];function _0x5aadf1(){var _0x338bcd=_0x1778ea;_0x4ae5a3[_0x338bcd('0x299')]()&&_0x5df9bd['go']('app.dashboards.general');}function _0x1b9d69(){var _0x121862=_0x1778ea;return _0x10317d[_0x121862('0x5cb')][_0x121862('0x2341')](_0x2d879b[_0x121862('0x5f2')])[_0x121862('0xe59')]['then'](function(){var _0x54f08b=_0x121862;_0x4dc4e3[_0x54f08b('0x425')]({'title':_0x3cff19[_0x54f08b('0x2159')](_0x54f08b('0x230b')),'msg':_0x3cff19[_0x54f08b('0x2159')](_0x54f08b('0x2884'))});})['catch'](function(_0x586683){var _0x41be76=_0x121862;_0x586683&&_0x4dc4e3[_0x41be76('0x8c8')]({'title':_0x3cff19[_0x41be76('0x2159')]('FORGOTPASSWORD.PASSWORD_RESET_ERROR'),'msg':_0x586683[_0x41be76('0x11d0')]?_0x586683[_0x41be76('0x11d0')][_0x41be76('0x27e8')]||_0x586683[_0x41be76('0x27e8')]||_0x586683:_0x586683['message']||_0x586683});});}_0x2d879b[_0x1778ea('0x15cd')]=_0x1b9d69,_0x2d879b[_0x1778ea('0x888')]=_0x5aadf1;}const _0xe5794e=_0x3c1f6b;_0x2d2032[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x2d2032(_0x4a6d57,_0x159612){var _0x55f7fb=_0xb635d2;_0x4a6d57[_0x55f7fb('0x1d72')](_0x55f7fb('0x23a6'),{'url':_0x55f7fb('0x137'),'views':{'main@':{'templateUrl':_0x43b399,'controller':'MainController\x20as\x20vm'},'content@app.forgot':{'templateUrl':_0x4af615,'controller':_0x55f7fb('0x172b')}},'bodyClass':'forgot'}),_0x159612[_0x55f7fb('0xfe3')](_0x55f7fb('0x21e9'));}angular[_0xb635d2('0x153f')]('app.forgot',[])['config'](_0x2d2032)[_0xb635d2('0x1a79')](_0xb635d2('0x907'),_0xe5794e);const _0x19224f=_0x59426a['p']+_0xb635d2('0x1b8');_0x2f2c71[_0xb635d2('0xb0c')]=['Auth',_0xb635d2('0xf65'),_0xb635d2('0x2493'),_0xb635d2('0xeb6'),_0xb635d2('0xffc'),'$stateParams'];function _0x2f2c71(_0x5b79d0,_0x3682a3,_0x3637c2,_0x167b08,_0xba9c91,_0x24f76b){var _0x2b1d8e=_0xb635d2,_0x356e8b=this;_0x356e8b[_0x2b1d8e('0x5f2')]={'token':_0x24f76b[_0x2b1d8e('0x1fbd')]},_0x356e8b[_0x2b1d8e('0x22f1')]={},_0x356e8b[_0x2b1d8e('0x2496')]=_0xba9c91[_0x2b1d8e('0x2496')];function _0x5fd1a3(){var _0x9d17a1=_0x2b1d8e;return _0x5b79d0[_0x9d17a1('0x299')]()&&_0x167b08['go'](_0x9d17a1('0xb1a')),_0xba9c91['setting'][_0x9d17a1('0x2156')]({'id':0x1})[_0x9d17a1('0xe59')][_0x9d17a1('0xe19')](function(_0x27398f){var _0x44607b=_0x9d17a1;_0x356e8b[_0x44607b('0x22f1')]=_0x27398f,_0x356e8b[_0x44607b('0x25ac')]=_0x356e8b[_0x44607b('0x22f1')][_0x44607b('0x153d')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x9d17a1('0x223b')](function(_0x52a135){var _0x5f2f5e=_0x9d17a1;_0x52a135&&_0x3682a3[_0x5f2f5e('0x8c8')]({'title':_0x5f2f5e('0x1d80'),'msg':_0x52a135[_0x5f2f5e('0x11d0')]?_0x52a135[_0x5f2f5e('0x11d0')][_0x5f2f5e('0x27e8')]||_0x52a135[_0x5f2f5e('0x27e8')]||_0x52a135:_0x52a135[_0x5f2f5e('0x27e8')]||_0x52a135});});}function _0x2ac3c0(){var _0x523a13=_0x2b1d8e;return _0xba9c91[_0x523a13('0x5cb')][_0x523a13('0x1590')](_0x356e8b[_0x523a13('0x5f2')])[_0x523a13('0xe59')]['then'](function(){var _0x103557=_0x523a13;_0x3682a3[_0x103557('0x425')]({'title':_0x3637c2[_0x103557('0x2159')](_0x103557('0x1e37')),'msg':_0x3637c2[_0x103557('0x2159')](_0x103557('0x44'))}),_0x167b08['go'](_0x103557('0x2322'));})[_0x523a13('0x223b')](function(_0x5361ce){var _0x2809a0=_0x523a13;_0x5361ce&&_0x3682a3['error']({'title':_0x3637c2[_0x2809a0('0x2159')]('RESETPASSWORD.PASSWORD_RESET_ERROR'),'msg':_0x5361ce['data']?_0x5361ce['data'][_0x2809a0('0x27e8')]||_0x5361ce['message']||_0x5361ce:_0x5361ce[_0x2809a0('0x27e8')]||_0x5361ce});});}_0x356e8b['resetPassword']=_0x2ac3c0,_0x356e8b[_0x2b1d8e('0x888')]=_0x5fd1a3;}const _0x30e42f=_0x2f2c71;_0x4e3f97[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),'$translatePartialLoaderProvider'];function _0x4e3f97(_0x20832d,_0xa626f3){var _0x17b89d=_0xb635d2;_0x20832d['state'](_0x17b89d('0x325'),{'url':_0x17b89d('0xd06'),'views':{'main@':{'templateUrl':_0x43b399,'controller':_0x17b89d('0x844')},'content@app.reset':{'templateUrl':_0x19224f,'controller':_0x17b89d('0x68b')}},'bodyClass':_0x17b89d('0x1590')}),_0xa626f3[_0x17b89d('0xfe3')](_0x17b89d('0x23ce'));}angular['module'](_0xb635d2('0x325'),[])[_0xb635d2('0x1990')](_0x4e3f97)[_0xb635d2('0x1a79')]('ResetPasswordController',_0x30e42f);const _0x1a4eca=_0x59426a['p']+'src/js/modules/errors/404/error-404.html/error-404-[chunkhash].html';_0x55de55[_0xb635d2('0xb0c')]=['$state','$timeout','$q',_0xb635d2('0x1631')];function _0x55de55(_0x2642fe,_0x3c9ceb,_0x3a9730,_0x2fcdae){var _0x540fbb=_0xb635d2,_0x5a6603=this;function _0x2a1d26(_0x6bdda5){var _0x3b7a04=a0_0x5325,_0x53a3b4=[],_0xa6b69a=_0x2fcdae[_0x3b7a04('0xcff')](),_0x57b2b4=_0x3a9730['defer']();for(var _0x17807b=0x0;_0x17807b<_0xa6b69a[_0x3b7a04('0x25ae')];_0x17807b+=0x1){_0xa6b69a[_0x17807b]['uisref']&&_0x53a3b4[_0x3b7a04('0xb76')](_0xa6b69a[_0x17807b]);}return _0x6bdda5&&(_0x53a3b4=_0x53a3b4[_0x3b7a04('0x2891')](function(_0x1b7b25){var _0x1364ab=_0x3b7a04;if(_0x1b7b25['title'][_0x1364ab('0x20dd')]()[_0x1364ab('0x1c43')](_0x6bdda5[_0x1364ab('0x20dd')]()))return!![];})),_0x3c9ceb(function(){var _0x5329d2=_0x3b7a04;_0x57b2b4[_0x5329d2('0xcd6')](_0x53a3b4);},0x3e8),_0x57b2b4[_0x3b7a04('0x9c8')];}function _0x5ef60f(_0x2aa20e){var _0x454ed8=a0_0x5325;_0x2aa20e[_0x454ed8('0x1da1')]&&(_0x2aa20e['stateParams']?_0x2642fe['go'](_0x2aa20e[_0x454ed8('0x1d72')],_0x2aa20e[_0x454ed8('0x1c6d')]):_0x2642fe['go'](_0x2aa20e[_0x454ed8('0x1d72')]));}_0x5a6603[_0x540fbb('0x1cc8')]=_0x2a1d26,_0x5a6603['searchResultClick']=_0x5ef60f;}const _0x38e8f3=_0x55de55;_0x58c53e[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x58c53e(_0x118b00,_0x44ef02){var _0x1407ea=_0xb635d2;_0x118b00[_0x1407ea('0x1d72')](_0x1407ea('0x1a07'),{'url':_0x1407ea('0xe3e'),'views':{'main@':{'templateUrl':_0x43b399,'controller':_0x1407ea('0x844')},'content@app.errors_error-404':{'templateUrl':_0x1a4eca,'controller':'Error404Controller\x20as\x20vm'}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':'error-404'}),_0x44ef02[_0x1407ea('0xfe3')](_0x1407ea('0x1b10'));}angular[_0xb635d2('0x153f')](_0xb635d2('0x1010'),[])[_0xb635d2('0x1990')](_0x58c53e)[_0xb635d2('0x1a79')](_0xb635d2('0xd3f'),_0x38e8f3);const _0xfb8e77=_0x59426a['p']+_0xb635d2('0x1409');_0x161a55[_0xb635d2('0xb0c')]=['$state',_0xb635d2('0xc6a')];function _0x161a55(_0x1a42e5,_0x5d5193){var _0x486ac1=_0xb635d2,_0x1407d2=this;function _0x131134(){var _0x542bd1=a0_0x5325;_0x5d5193['post'](_0x542bd1('0x2b0'),_0x1407d2[_0x542bd1('0x8c8')])[_0x542bd1('0xe19')](function(_0x26b678){var _0x3bfed7=_0x542bd1;_0x1407d2[_0x3bfed7('0x1ee')]=!![],_0x26b678[_0x3bfed7('0x11d0')]&&(_0x1407d2[_0x3bfed7('0x393')]=_0x26b678['data']['id']);},function(){var _0x3cb3f5=_0x542bd1;_0x1407d2[_0x3cb3f5('0x1ee')]=![];});}_0x1407d2['code']='',_0x1407d2[_0x486ac1('0x1ee')]=![],_0x1407d2[_0x486ac1('0x8c8')]=_0x1a42e5['params'],_0x1407d2['sendReport']=_0x131134;}const _0x39e659=_0x161a55;_0x3c4ecc[_0xb635d2('0xb0c')]=[_0xb635d2('0x1a6d'),_0xb635d2('0x2104')];function _0x3c4ecc(_0x478bca,_0x421b71){var _0x20b9db=_0xb635d2;_0x478bca[_0x20b9db('0x1d72')]('app.errors_error-500',{'url':_0x20b9db('0xb17'),'views':{'main@':{'templateUrl':_0x43b399,'controller':_0x20b9db('0x844')},'content@app.errors_error-500':{'templateUrl':_0xfb8e77,'controller':_0x20b9db('0x7d4')}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':_0x20b9db('0x1eff')}),_0x421b71[_0x20b9db('0xfe3')](_0x20b9db('0xa0a'));}angular[_0xb635d2('0x153f')](_0xb635d2('0x1cdf'),[])['config'](_0x3c4ecc)[_0xb635d2('0x1a79')](_0xb635d2('0x69d'),_0x39e659);;angular[_0xb635d2('0x153f')](_0xb635d2('0x5f3'),[_0xb635d2('0x1010'),_0xb635d2('0x1cdf')]),_0x104204[_0xb635d2('0xb0c')]=[_0xb635d2('0x952')];function _0x104204(_0x5a4a49){var _0x47306f=_0xb635d2,_0x4ccd10={};return _0x4ccd10['baseUrl']=!![]?_0x47306f('0x2d3'):0x0,_0x4ccd10[_0x47306f('0x5cb')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xad2'),{},{'local':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xad2')},'forgot':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb5a')},'reset':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2817'),'params':{'token':_0x47306f('0x364')}},'user':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'auth/local/user/:token','params':{'token':_0x47306f('0x364')}},'google':{'method':'post','url':_0x4ccd10['baseUrl']+'auth/google'}}),_0x4ccd10[_0x47306f('0x7c2')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x7c2')),_0x4ccd10[_0x47306f('0x21e1')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x21e1'),{},{'startMonitor':{'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x262c'),'params':{'uniqueid':'@uniqueid'}},'stopMonitor':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'rpc/voice/channels/:uniqueid/stopmixmonitor','params':{'uniqueid':_0x47306f('0x1b68')}},'getVoiceChannels':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1fd0')},'getVoiceQueues':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf1f')},'getChatQueues':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xdcb')},'getMailQueues':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'rpc/mail/queues'},'getSmsQueues':{'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x1240')},'getWhatsappQueues':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1240')},'getOpenchannelQueues':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x133e')},'getFaxQueues':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1956')},'getVoiceQueuesPreview':{'method':'get','url':_0x4ccd10['baseUrl']+'rpc/voice/queues/preview/:id'},'getVoiceQueuesChannels':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1371')},'getVoiceQueuesChannel':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xadc')},'getVoiceQueuesChannelHangup':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x362')},'getVoiceQueuesChannelRedirect':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'rpc/voice/queues/channels/:uniqueid/redirect/:exten'},'getOutbound':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x8f4')},'getOutboundChannels':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1673')},'getAgents':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x567')},'setAgentCapacity':{'method':_0x47306f('0x153c'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x129'),'params':{'id':_0x47306f('0x245a')}},'getTelephones':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xf35')},'getTrunks':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf29')},'getCampaigns':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb96')},'getMailAccounts':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'rpc/mail/accounts'},'getFaxAccounts':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'rpc/fax/accounts'},'getChatQueuesWaitingInteractions':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1df')},'getMailQueuesWaitingInteractions':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x21ad')},'getOpenchannelQueuesWaitingInteractions':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e5e')},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1777')},'getSmsQueuesWaitingInteractions':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x7a7')},'getFaxQueuesWaitingInteractions':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'rpc/fax/queues/waitinginteractions'},'getWhatsappQueuesWaitingInteractions':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'rpc/whatsapp/queues/waitinginteractions'},'mailQueueNotify':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x7e4'),'params':{'id':_0x47306f('0x245a')}},'chatQueueNotify':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x19e1'),'params':{'id':'@id'}},'faxQueueNotify':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x249'),'params':{'id':_0x47306f('0x245a')}},'smsQueueNotify':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f2d'),'params':{'id':'@id'}},'openchannelQueueNotify':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x71c'),'params':{'id':_0x47306f('0x245a')}},'agentNotify':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e61'),'params':{'id':_0x47306f('0x245a')}}}),_0x4ccd10['version']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xfec'),{},{'fetch':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'version/fetch'},'reset':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1dd9')},'pull':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'version/pull'},'restart':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2576')},'migrations':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'version/migrations'}}),_0x4ccd10['system']=_0x5a4a49(_0x4ccd10['baseUrl']+'system',{},{'killProcess':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x16d6'),'params':{'pid':_0x47306f('0x1ddd')}}}),_0x4ccd10['pm2']=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x4a7'),{'id':'@id'},{'update':{'method':'put','isArray':!![]}}),_0x4ccd10[_0x47306f('0x10c6')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x243d'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'users/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'bulkCreate':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe9'),'isArray':!![]},'addContacts':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1744')},'changePassword':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x317')},'addQueues':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc7')},'removeQueues':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc7')},'addAvatar':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb6e')},'getAvatar':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xb6e')},'getContacts':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1744')},'getQueues':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc7')},'getVoiceQueuesRt':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x25c4')},'getGroups':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/groups'},'getRecordings':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x901')},'getScreenRecordings':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'users/:id/screen_recordings'},'getChatInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1176')},'getOpenchannelInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/openchannel/interactions'},'getMailInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/mail/interactions'},'getSmsInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2671')},'getFaxInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b')},'getWhatsappInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x6a5')},'login':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x18a')},'logout':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1c2d')},'pause':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x276')},'unpause':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xdae')},'getTeams':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'users/:id/teams'},'addTeams':{'isArray':!![],'method':'post','url':_0x4ccd10['baseUrl']+'users/:id/teams'},'removeTeams':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/teams'},'getLists':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x82d')},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/agents'},'addChatInteractions':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/chat_interactions'},'removeChatInteractions':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xab6')},'addMailInteractions':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x78e')},'removeMailInteractions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x78e')},'addFaxInteractions':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x192b')},'removeFaxInteractions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x192b')},'addSmsInteractions':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1d9a')},'removeSmsInteractions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1d9a')},'addOpenchannelInteractions':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1479')},'removeOpenchannelInteractions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/openchannel_interactions'},'addWhatsappInteractions':{'isArray':!![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x187a')},'removeWhatsappInteractions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/whatsapp_interactions'},'getVoicePrefixes':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x5b8')},'getFaxAccounts':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe8f')},'addFaxAccounts':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'users/:id/fax_accounts'},'removeFaxAccounts':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe8f')},'getMailAccounts':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'users/:id/mail_accounts'},'addMailAccounts':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2075')},'removeMailAccounts':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2075')},'getOpenchannelAccounts':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x141f')},'addOpenchannelAccounts':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'users/:id/openchannel_accounts'},'removeOpenchannelAccounts':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x141f')},'getSmsAccounts':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2021')},'addSmsAccounts':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2021')},'removeSmsAccounts':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+'users/:id/sms_accounts'},'getChatWebsites':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1d2e')},'addChatWebsites':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'users/:id/chat_websites'},'removeChatWebsites':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1d2e')},'getWhatsappAccounts':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x217e')},'addWhatsappAccounts':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x217e')},'removeWhatsappAccounts':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x217e')},'getSquareProjects':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+'users/:id/square_projects'},'addSquareProjects':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa4d')},'removeSquareProjects':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa4d')},'getScheduledCalls':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x26e5')},'getApiKey':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1649')},'createApiKey':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1649')},'removeApiKey':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1649')},'whoami':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'users/whoami'}}),_0x4ccd10[_0x47306f('0x239b')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0xd97'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'voice/chanspy/describe'},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1927'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x2768')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x3e4'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa7a')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x16e3'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x1979')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e02'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1a40')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x779'),'params':{'includeAll':_0x47306f('0x127a')}},'addApplications':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x21ea')}}),_0x4ccd10['voiceMusicOnHold']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'voice/mohs/:id',{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf72')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa76'),'params':{'includeAll':'@includeAll'}},'addSound':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xfa')},'removeSound':{'isArray':![],'method':'delete','url':_0x4ccd10['baseUrl']+'voice/mohs/:id/sounds/:id2'},'getSounds':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'voice/mohs/:id/sounds'}}),_0x4ccd10[_0x47306f('0x25d5')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x173'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x701')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1512'),'params':{'includeAll':'@includeAll'}},'getHoppers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2431')},'getHopperHistories':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x1d4e')},'getHopperFinals':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e7')},'getHopperBlacks':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1fd')},'getTeams':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x36b')},'addTeams':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x36b')},'removeTeams':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x36b')},'addAgents':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x27fd')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x27fd')},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x27fd')},'getMembers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x267f')},'getLists':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'voice/queues/:id/lists'},'addLists':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x100c')},'removeLists':{'isArray':!![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'voice/queues/:id/lists'},'getBlackLists':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'voice/queues/:id/blacklists'},'addBlackLists':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'voice/queues/:id/blacklists'},'removeBlackLists':{'isArray':!![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb0')}}),_0x4ccd10[_0x47306f('0x1a1e')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x4fd'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xcf')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x25a1'),'params':{'includeAll':_0x47306f('0x127a')}},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x14a'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x1980eb(_0x49d16e,_0x40b737){var _0x471264=_0x47306f,_0x208850=_0x40b737();return{'type':_0x208850['content-type'],'length':_0x208850[_0x471264('0xac5')],'buffer':_0x49d16e};}},'downloads':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'voice/recordings/:id/downloads'},'runTranscribe':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x22f0')},'downloadTranscribe':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x22f0'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x511cb2(_0xa94673,_0x9df230){var _0x2e251d=_0x47306f,_0x377581=_0x9df230();return{'type':_0x377581[_0x2e251d('0x1589')],'length':_0x377581[_0x2e251d('0xac5')],'buffer':_0xa94673};}}}),_0x4ccd10[_0x47306f('0x166f')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x6a2'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xfb4')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1490'),'params':{'includeAll':_0x47306f('0x127a')}},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1736'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x414c82(_0x389abc,_0x56ae27){var _0x1f0296=_0x47306f,_0x1e560b=_0x56ae27();return{'type':_0x1e560b['content-type'],'length':_0x1e560b[_0x1f0296('0xac5')],'buffer':_0x389abc};}}}),_0x4ccd10[_0x47306f('0x27bf')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x35b'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b64')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x263'),'params':{'includeAll':'@includeAll'}},'getMessages':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'voice/mails/:id/messages'}}),_0x4ccd10[_0x47306f('0x1e9c')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x27a5'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc07')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x2656'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xc6b'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x2b2cff(_0x4ba6d6,_0x48d3db){var _0x203dea=_0x47306f,_0x11881e=_0x48d3db();return{'type':_0x11881e[_0x203dea('0x1589')],'length':_0x11881e[_0x203dea('0xac5')],'buffer':_0x4ba6d6};}}}),_0x4ccd10[_0x47306f('0x496')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1eac'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x19ce')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x26bd'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xa4e')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1ba6'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'voice/dials/reports/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'voice/dials/reports/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x22cf')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xfdf'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0xb50')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1b47'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xba')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x210'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x5d5')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x6e9'),'params':{'includeAll':_0x47306f('0x127a')}},'getVoiceQueuesReport':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xe4a')}}),_0x4ccd10[_0x47306f('0x1043')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x240c'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x151')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x18f1'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['trunk']=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x1277'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1df7')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x12ea'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1a48')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0xc17'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'voice/transfers/reports/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'voice/transfers/reports/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['mailServerOut']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'mail/out_servers/:id',{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf1')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2540'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x17f0')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id',{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'addDisposition':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x11f4')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x11f4')},'addAnswer':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'mail/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x257')},'removeAnswers':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/canned_answers'},'getImap':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/in_servers'},'addImap':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/in_servers'},'removeImap':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x651')},'getSmtp':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1576')},'addSmtp':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1576')},'removeSmtp':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1576')},'addInteraction':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1de5')},'getInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1de5')},'addApplications':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x26b1')},'getMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x925')},'send':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2080')},'verifySmtp':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/verify'},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x26e6')},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/accounts/:id/users'}}),_0x4ccd10[_0x47306f('0x18d9')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'mail/queues/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/queues/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b62'),'params':{'includeAll':_0x47306f('0x127a')}},'getMembers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2796')},'getTeams':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1634')},'addTeams':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1634')},'removeTeams':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1634')},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b0e')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b0e')},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/queues/:id/users'}}),_0x4ccd10[_0x47306f('0x158e')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xd3e'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe66')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/substatuses/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['mailInteraction']=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0xa59'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1639')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x738'),'params':{'includeAll':_0x47306f('0x127a')}},'addMessage':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1bdc')},'getMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e2c')},'removeTags':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e2c')},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x176d'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x2ed6c1(_0x36b1c6,_0x25071e){var _0x37657c=_0x47306f,_0x53098b=_0x25071e();return{'type':_0x53098b[_0x37657c('0x1589')],'length':_0x53098b[_0x37657c('0xac5')],'buffer':_0x36b1c6};}}}),_0x4ccd10[_0x47306f('0x1810')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x1864'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1887')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x175f'),'params':{'includeAll':_0x47306f('0x127a')}},'accept':{'isArray':![],'method':'put','url':_0x4ccd10['baseUrl']+_0x47306f('0xe7f')},'reject':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10['baseUrl']+'mail/messages/:id/reject'},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/messages/:id/download','responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x586c2e(_0x176556,_0x3ae669){var _0x9bc9b4=_0x47306f,_0x529f7e=_0x3ae669();return{'type':_0x529f7e['content-type'],'length':_0x529f7e[_0x9bc9b4('0xac5')],'buffer':_0x176556};}}}),_0x4ccd10[_0x47306f('0xf8d')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x18e7'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x34e')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'mail/applications/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['mailQueueReport']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1c'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1770')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x241a'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xe6c')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x1567'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b8e')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x766'),'params':{'includeAll':_0x47306f('0x127a')}},'addItem':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'dashboards/:id/items'},'getItems':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x200e')}}),_0x4ccd10[_0x47306f('0x16b6')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x202b'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'dashboards/items/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'dashboards/items/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x688')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2337'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1559')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2572'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x15b6')},'getDispositions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x15b6')},'removeDispositions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x15b6')},'addAnswer':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+'fax/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x5b6')},'removeAnswers':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x5b6')},'addInteraction':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x2480')},'getInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2480')},'addApplications':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1b5a')},'addAccountApplications':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x3ff')},'updateAccountApplications':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/accounts/updateaccountapplications'},'getMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/accounts/:id/messages'},'send':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'fax/accounts/:id/send'},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/accounts/:id/users'}}),_0x4ccd10[_0x47306f('0x1a3c')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1591'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x1757')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x20f3'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x100b')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b59'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1818')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x15ed'),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'fax/interactions/:id/messages'},'getMessages':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1ab7')},'addTags':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1372')},'removeTags':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/interactions/:id/tags'},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'fax/interactions/:id/download','responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x464d29(_0x376595,_0x53f36a){var _0x15fd88=_0x47306f,_0x2af77e=_0x53f36a();return{'type':_0x2af77e[_0x15fd88('0x1589')],'length':_0x2af77e[_0x15fd88('0xac5')],'buffer':_0x376595};}}}),_0x4ccd10[_0x47306f('0xb10')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x37b'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/messages/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1a64'),'params':{'includeAll':_0x47306f('0x127a')}},'accept':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x250')},'reject':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x7f5')},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1868'),'responseType':'arraybuffer','cache':![],'transformResponse':function _0xe956e(_0x3a85b9,_0x382277){var _0x126a23=_0x47306f,_0x2f84e7=_0x382277();return{'type':_0x2f84e7[_0x126a23('0x1589')],'length':_0x2f84e7[_0x126a23('0xac5')],'buffer':_0x3a85b9};}}}),_0x4ccd10[_0x47306f('0x3f4')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x14c5'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x420')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x24a4'),'params':{'includeAll':_0x47306f('0x127a')}},'getMembers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2055')},'getTeams':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x132b')},'addTeams':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x132b')},'removeTeams':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x132b')},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x853')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x853')},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/queues/:id/users'}}),_0x4ccd10[_0x47306f('0x1e78')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x10ae'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x22c2')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/reports/queue/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x1437')]=_0x5a4a49(_0x4ccd10['baseUrl']+'sms/accounts/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xca3')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sms/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x44a')},'getDispositions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x44a')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x4ccd10['baseUrl']+'sms/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x960')},'getAnswers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x960')},'removeAnswers':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x960')},'notify':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1bec')},'addApplications':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x184')},'getApplications':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x184')},'getInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2555')},'send':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'sms/accounts/:id/send'},'status':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xfc6')},'statusGet':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sms/accounts/:id/status'},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1da8')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10['baseUrl']+'sms/accounts/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1da8')}}),_0x4ccd10['smsApplication']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x23b7'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x155d')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0xc57'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xc1')]=_0x5a4a49(_0x4ccd10['baseUrl']+'sms/interactions/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x283f')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1817'),'params':{'includeAll':_0x47306f('0x127a')}},'addMessage':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sms/interactions/:id/messages'},'getMessages':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f23')},'addTags':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xeff')},'removeTags':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xeff')},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'sms/interactions/:id/download','responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x15db9f(_0xfcc385,_0x531f84){var _0x5b2620=_0x47306f,_0x4e5040=_0x531f84();return{'type':_0x4e5040[_0x5b2620('0x1589')],'length':_0x4e5040[_0x5b2620('0xac5')],'buffer':_0xfcc385};}}}),_0x4ccd10[_0x47306f('0x1f40')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x1bc5'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sms/messages/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2860'),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sms/messages/:id/accept'},'reject':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x3e8')},'status':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1cd4')}}),_0x4ccd10['smsQueue']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x12ac'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1905')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x44b'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1588')},'getTeams':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x21a0')},'addTeams':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x21a0')},'removeTeams':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x21a0')},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x106d')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sms/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x106d')}}),_0x4ccd10['openchannelAccount']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe20'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x160c')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xeb'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa13')},'getDispositions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa13')},'removeDispositions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xa13')},'addAnswer':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x805')},'getAnswers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x805')},'removeAnswers':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'openchannel/accounts/:id/canned_answers'},'notify':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x668')},'addApplications':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa88')},'getApplications':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa88')},'getInteractions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x8e')},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x18d1')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x18d1')},'getAgents':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+'openchannel/accounts/:id/users'},'send':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x13f7')}}),_0x4ccd10['openchannelApplication']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x26b0'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x22ce')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1ddf'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x208b')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1136'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1a26')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'openchannel/interactions/:id/clone','params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc8a')},'getMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc8a')},'addTags':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x62b')},'removeTags':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'openchannel/interactions/:id/tags'},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2360'),'responseType':'arraybuffer','cache':![],'transformResponse':function _0x2b9ae8(_0x314aca,_0x2452e8){var _0x14b250=_0x47306f,_0x5d78b2=_0x2452e8();return{'type':_0x5d78b2[_0x14b250('0x1589')],'length':_0x5d78b2[_0x14b250('0xac5')],'buffer':_0x314aca};}}}),_0x4ccd10['openchannelMessage']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x22e9'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2889')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x152b'),'params':{'includeAll':_0x47306f('0x127a')}},'accept':{'isArray':![],'method':'put','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x168d')},'reject':{'isArray':![],'method':'put','url':_0x4ccd10[_0x47306f('0x2496')]+'openchannel/messages/:id/reject'}}),_0x4ccd10[_0x47306f('0x22b1')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x23fc'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1de2')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1d1d'),'params':{'includeAll':_0x47306f('0x127a')}},'getMembers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xa2f')},'getTeams':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'openchannel/queues/:id/teams'},'addTeams':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xc85')},'removeTeams':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc85')},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x90a')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'openchannel/queues/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x90a')}}),_0x4ccd10[_0x47306f('0xcda')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x584'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x10e4')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x1974'),'params':{'includeAll':_0x47306f('0x127a')}},'addDisposition':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/websites/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x84e')},'removeDispositions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x84e')},'addAnswer':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2439')},'getAnswers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2439')},'removeAnswers':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2439')},'addLogo':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2f7')},'addAvatar':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x19e5')},'addCustomerAvatar':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x2171')},'addSystemAvatar':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/websites/:id/system_avatar'},'getLogo':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'chat/websites/:id/logo'},'getAvatar':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x19e5')},'getCustomerAvatar':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2171')},'getSystemAvatar':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf80')},'notify':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/websites/:id/notify'},'offline':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/websites/:id/offline'},'addInteraction':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x13a9')},'getInteractions':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x13a9')},'getSnippet':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1d50')},'addApplications':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'chat/websites/:id/applications'},'getApplications':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+'chat/websites/:id/applications'},'addProactiveActions':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1862')},'getProactiveActions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1862')},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x13c0')},'getOfflineMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x184b')},'addAgents':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'chat/websites/:id/users'},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2a4')},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2a4')}}),_0x4ccd10[_0x47306f('0x51b')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x3b1'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1789')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x113'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1ae7')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x22a7'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x4e3')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1511'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10['chatInteraction']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb01'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x182e')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x2371'),'params':{'includeAll':_0x47306f('0x127a')}},'createVidaooSession':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x24c4')},'customUpdate':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1a03')},'abandon':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/interactions/:id/abandon'},'attachmentUpload':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x335')},'attachmentDownload':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/interactions/:id/attachment_download'},'close':{'isArray':![],'method':'put','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xcf9')},'addMessage':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x215')},'getMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x215')},'getMyMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/interactions/:id/my_messages'},'addTags':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x49f')},'removeTags':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x49f')},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2db'),'responseType':'arraybuffer','cache':![],'transformResponse':function _0x3123eb(_0x3771db,_0x57993b){var _0x280260=_0x47306f,_0x4ff38b=_0x57993b();return{'type':_0x4ff38b[_0x280260('0x1589')],'length':_0x4ff38b[_0x280260('0xac5')],'buffer':_0x3771db};}}}),_0x4ccd10[_0x47306f('0x2a2')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'chat/messages/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/messages/describe'},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'chat/messages/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'accept':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/messages/:id/accept'},'reject':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10['baseUrl']+'chat/messages/:id/reject'}}),_0x4ccd10[_0x47306f('0x10f')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x27d'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x25b')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x15dc'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xfce')]=_0x5a4a49(_0x4ccd10['baseUrl']+'chat/queues/:id',{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x18ab')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x21ff'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/queues/:id/teams'},'addTeams':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x216')},'removeTeams':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+'chat/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2559')},'removeAgents':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2559')},'getAgents':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x2559')}}),_0x4ccd10[_0x47306f('0x125f')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x26a5'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x191b')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'chat/groups/:id/clone','params':{'includeAll':'@includeAll'}},'getUnread':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb56')},'addMembers':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1fdd')},'getMembers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1fdd')},'removeMembers':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10['baseUrl']+'chat/groups/:id/members'},'addMessage':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2663')},'getMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2663')}}),_0x4ccd10[_0x47306f('0xb40')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x50d'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xdba')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1a6a'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x24d1')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2498'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x20d4')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xd'),'params':{'includeAll':_0x47306f('0x127a')}},'addContacts':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x73e')},'getContacts':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x73e')}}),_0x4ccd10[_0x47306f('0x1711')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x21ac'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10['baseUrl']+'cm/contacts/describe'},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x3c'),'params':{'includeAll':'@includeAll'}},'merge':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2324')},'bulkCreate':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'cm/contacts/create_many'},'getTags':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1a87')},'setTags':{'isArray':!![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x1a87')},'getHoppers':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc01')},'getHopperHistories':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2f2')},'getHopperFinals':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x168e')},'getJscriptySessions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1cee')},'uploadCsv':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x5ce')},'upload':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x107a')},'import':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cm/contacts/upload/:id'}}),_0x4ccd10[_0x47306f('0x2408')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f62'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x679')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cm/hopper/:id/clone','params':{'includeAll':'@includeAll'}},'getPreview':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2445')},'getOpenContacts':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e90')}}),_0x4ccd10['cmHopperBlack']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x11c0'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x22a8')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1cc0'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x1afa')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x13bc'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cm/hopper_final/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1ed'),'params':{'includeAll':_0x47306f('0x127a')}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x272f')},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cm/hopper_final/campaign/countAttributes/:id'},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2840')},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x26fa')},'checkContactHopper':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xa79')}}),_0x4ccd10[_0x47306f('0x1a61')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x1446'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cm/hopper_history/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x55b'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1a2b')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x356'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x14b3')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa6a'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10['action']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'actions/:id',{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'actions/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x5a9'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x79f')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x16cd'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x949')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x4e2'),'params':{'includeAll':'@includeAll'}},'addConditions':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf24')},'getConditions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xf24')},'addActions':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'automations/:id/actions'},'getActions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e18')}}),_0x4ccd10[_0x47306f('0x250b')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x227d'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x64e')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x11ee'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['disposition']=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x549'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'dispositions/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x156a'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1c03')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x29a'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1dd6')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'conditions/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x134c')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x15bb'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2882')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'intervals/:id/clone','params':{'includeAll':'@includeAll'}},'addInterval':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'intervals/:id/sub_intervals'},'getIntervals':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x11e8')},'addIntervals':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x252')}}),_0x4ccd10[_0x47306f('0x1c98')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f3b'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x699')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1088'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1fc9')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x14b7'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'cdr/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cdr/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x19e')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x9fb'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2538')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x18e9'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x20bc')]=_0x5a4a49(_0x4ccd10['baseUrl']+'schedules/:id',{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x24cd')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x13f5'),'params':{'includeAll':_0x47306f('0x127a')}},'run':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x169')}}),_0x4ccd10[_0x47306f('0x392')]=_0x5a4a49(_0x4ccd10['baseUrl']+'sounds/:id',{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sounds/describe'},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb3e'),'params':{'includeAll':_0x47306f('0x127a')}},'download':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x5c8'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x4c9e1a(_0x2c3028,_0x35aef2){var _0x9acf85=_0x47306f,_0x39fa4a=_0x35aef2();return{'type':_0x39fa4a[_0x9acf85('0x1589')],'length':_0x39fa4a[_0x9acf85('0xac5')],'buffer':_0x2c3028};}},'delete':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sounds/:id'}}),_0x4ccd10[_0x47306f('0x2037')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x1f8c'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x25b7')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1952'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x12e2')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1ab9'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x7be')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f1'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['trigger']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2426'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2294')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa92'),'params':{'includeAll':'@includeAll'}},'addAllCondition':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1dee')},'addAnyCondition':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'triggers/:id/any_conditions'},'getAllConditions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1dee')},'getAnyConditions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x14ea')},'addAction':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2310')},'getActions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'triggers/:id/actions'}}),_0x4ccd10[_0x47306f('0x19a5')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x655'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xfc0')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'variables/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x2223')]=_0x5a4a49(_0x4ccd10['baseUrl']+'integrations/:id',{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x6db')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x534'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1643')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2590'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x854')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/reports/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['analyticCustomReport']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x259'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'analytics/custom_reports/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x25df'),'params':{'includeAll':_0x47306f('0x127a')}},'preview':{'isArray':!![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'analytics/custom_reports/:id/preview'},'run':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1fbe')},'query':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1873')}}),_0x4ccd10['analyticDefaultReport']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x459'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xec9')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x4f4'),'params':{'includeAll':_0x47306f('0x127a')}},'preview':{'isArray':!![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x855')},'run':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'analytics/default_reports/:id/run'},'query':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'analytics/default_reports/:id/query'}}),_0x4ccd10[_0x47306f('0x25c3')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x196c'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'analytics/extracted_reports/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1eb8'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1ad0'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x57bc44(_0x119eb5,_0x3c98c8){var _0x366155=_0x47306f,_0x4a4c09=_0x3c98c8();return{'type':_0x4a4c09['content-type'],'length':_0x4a4c09[_0x366155('0xac5')],'buffer':_0x119eb5};}}}),_0x4ccd10['analyticMetric']=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x1a22'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x5aa')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1821'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xe89')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x3db'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x22f8')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'analytics/field_reports/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'bulkCreate':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x8c6'),'isArray':!![]},'bulkDestroy':{'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1d30'),'isArray':!![]},'addFields':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa30')}}),_0x4ccd10['analyticTreeReport']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1149'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'analytics/tree_reports/describe'},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1fc7'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x24c1')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xde7'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb52')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x12f2'),'params':{'includeAll':_0x47306f('0x127a')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc8c')},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/salesforce/accounts/:id/configurations'},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0xca9')}}),_0x4ccd10[_0x47306f('0x92c')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x867'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x3a2')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b4a'),'params':{'includeAll':_0x47306f('0x127a')}},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/salesforce/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1cfd')},'getDescriptions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1320')}}),_0x4ccd10[_0x47306f('0xde1')]=_0x5a4a49(_0x4ccd10['baseUrl']+'integrations/salesforce/fields/:id',{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/salesforce/fields/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xd48'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1429')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa2'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'integrations/sugarcrm/accounts/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2455'),'params':{'includeAll':_0x47306f('0x127a')}},'getConfigurations':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1196')},'addConfiguration':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1196')},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x123')}}),_0x4ccd10[_0x47306f('0x1284')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'integrations/sugarcrm/configurations/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1cda')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x321'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x1882')},'getSubjects':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1cc4')},'getDescriptions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x19ec')}}),_0x4ccd10[_0x47306f('0x1096')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x27b7'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x268a')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1d6d'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x93d')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x2085'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x97b')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x19f8'),'params':{'includeAll':_0x47306f('0x127a')}},'getConfigurations':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x11c5')},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x11c5')},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x656')}}),_0x4ccd10[_0x47306f('0x13b7')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x615'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x6ba')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+'integrations/desk/configurations/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/desk/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x1340')},'getDescriptions':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2ab')},'getTags':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xb4f')},'setTags':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb4f')}}),_0x4ccd10['intDeskField']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'integrations/desk/fields/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1e42')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e35'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x23dd')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf98'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x52a')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x453'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1085')},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x1085')},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x39')}}),_0x4ccd10[_0x47306f('0xd98')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1505'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1a51')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x705'),'params':{'includeAll':_0x47306f('0x127a')}},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x162a')},'getSubjects':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xc22')},'getDescriptions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x148f')}}),_0x4ccd10[_0x47306f('0x11cb')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x23ba'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f68')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x22fe'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['intZendeskAccount']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2375'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x1573')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x27ea'),'params':{'includeAll':_0x47306f('0x127a')}},'getConfigurations':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f50')},'addConfiguration':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/zendesk/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b04')}}),_0x4ccd10[_0x47306f('0x1ab1')]=_0x5a4a49(_0x4ccd10['baseUrl']+'integrations/zendesk/configurations/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2243')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/zendesk/configurations/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x27b4')},'getSubjects':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x13ce')},'getDescriptions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1bde')},'getTags':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc9e')},'setTags':{'isArray':!![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0xc9e')}}),_0x4ccd10[_0x47306f('0x94b')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1eab'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x22ec')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2100'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x13d6')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf07'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x233d')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x3d3'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf37')},'addConfiguration':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xf37')},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'integrations/freshdesk/accounts/:id/fields'}}),_0x4ccd10['intFreshdeskConfiguration']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1147'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/freshdesk/configurations/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x84f'),'params':{'includeAll':_0x47306f('0x127a')}},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/freshdesk/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'integrations/freshdesk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1b90')},'getTags':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1f81')},'setTags':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f81')}}),_0x4ccd10['intFreshdeskField']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1ba7'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1fb1')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/freshdesk/fields/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xa80')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1ffe'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x10ee')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x1e01'),'params':{'includeAll':_0x47306f('0x127a')}},'getConfigurations':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x20bd')},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x20bd')},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xd92')}}),_0x4ccd10[_0x47306f('0x261b')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x394'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/vtiger/configurations/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x233c'),'params':{'includeAll':_0x47306f('0x127a')}},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/vtiger/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x66c')},'getDescriptions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/vtiger/configurations/:id/descriptions'}}),_0x4ccd10['intVtigerField']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'integrations/vtiger/fields/:id',{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x75e')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/vtiger/fields/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x162d')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x22ee'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/servicenow/accounts/describe'},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x141'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/servicenow/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x12a6')},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2313')}}),_0x4ccd10[_0x47306f('0x369')]=_0x5a4a49(_0x4ccd10['baseUrl']+'integrations/servicenow/configurations/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1d71')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x610'),'params':{'includeAll':_0x47306f('0x127a')}},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/servicenow/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x6be')},'getDescriptions':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x54e')}}),_0x4ccd10['intServicenowField']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x19c6'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xa83')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xce7'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x24c2')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2876'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/dynamics365/accounts/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x287d'),'params':{'includeAll':_0x47306f('0x127a')}},'getConfigurations':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/dynamics365/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x24f8')},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf51')}}),_0x4ccd10[_0x47306f('0x1dfb')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'integrations/dynamics365/configurations/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1459')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/dynamics365/configurations/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0xea2')},'getSubjects':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x283e')},'getDescriptions':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2293')}}),_0x4ccd10[_0x47306f('0x25ec')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2765'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1145')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e8f'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x16a5')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x247d'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'integrations/freshsales/accounts/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2e3'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x23d2')},'addConfiguration':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x23d2')},'getFields':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x10b6')}}),_0x4ccd10[_0x47306f('0xf92')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x137e'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1661')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/freshsales/configurations/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'getSubjects':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2382')},'getDescriptions':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2693')},'getFields':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x259c')}}),_0x4ccd10[_0x47306f('0x17cf')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'integrations/freshsales/fields/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'integrations/freshsales/fields/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1b3a'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xfb0')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x203e'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'networks/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x90b'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x494')]=_0x5a4a49(_0x4ccd10['baseUrl']+'chat/reports/queue/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x16ac')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x19a2'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1275')]=_0x5a4a49(_0x4ccd10['baseUrl']+'chat/internal/messages/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x166d')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x8e9'),'params':{'includeAll':_0x47306f('0x127a')}},'getUsers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb9')}}),_0x4ccd10[_0x47306f('0xd4a')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1c1'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xc21')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x264a'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1aeb')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xeec'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xbda')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x590'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['jscriptySessionReport']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x21d9'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'jscripty/sessions/reports/describe'},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x1ecf'),'params':{'includeAll':'@includeAll'}},'getQuestions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xaf7')}}),_0x4ccd10[_0x47306f('0x180c')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe35'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x5de')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x6da'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x11f6')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x739'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2d')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1215'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x226a')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xbc7'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'square/details/reports/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'square/details/reports/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x6c7')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0xc67'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xd75')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'jscripty/projects/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'getSessions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x191e')},'getAnswers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1121')},'getSummary':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x285a'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x13ebe8(_0x114238,_0x3f15a3){var _0x535e0e=_0x47306f,_0x5046c5=_0x3f15a3();return{'type':_0x5046c5['content-type'],'length':_0x5046c5[_0x535e0e('0xac5')],'buffer':_0x114238};}}}),_0x4ccd10[_0x47306f('0x22f1')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1fae'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x12b8')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'settings/:id/clone','params':{'includeAll':'@includeAll'}},'addLogo':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'settings/:id/logo'},'addLogoLogin':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x197f')},'getLogo':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1fb8')},'getLogoLogin':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x197f')},'gdpr':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'settings/:id/gdpr'},'addPreferred':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x577')},'getPreferred':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x577')},'addFavicon':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xaeb')},'getFavicon':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xaeb')}}),_0x4ccd10[_0x47306f('0x731')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1a3a'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe67')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+'square/odbc/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'test':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1dc6')}}),_0x4ccd10['squareProject']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x9d7'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1022')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'square/projects/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'addUsers':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e6b')},'removeUsers':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1e6b')},'getUsers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e6b')}}),_0x4ccd10[_0x47306f('0x83')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1c3c'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e84')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1bf7'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'square/recordings/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function _0x36f16a(_0x32bb6c,_0xbcffc0){var _0x33e49c=_0x47306f,_0x2d01f9=_0xbcffc0();return{'type':_0x2d01f9[_0x33e49c('0x1589')],'length':_0x2d01f9['content-length'],'buffer':_0x32bb6c};}}}),_0x4ccd10[_0x47306f('0x1f78')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x19c'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2212')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'square/messages/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x25af')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xdf'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1fcf')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x18db'),'params':{'includeAll':'@includeAll'}},'getQueues':{'isArray':!![],'method':'get','url':_0x4ccd10['baseUrl']+'teams/:id/queues'},'addQueues':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1236')},'removeQueues':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1236')},'addAgents':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x27a4')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'teams/:id/users'},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'teams/:id/users'}}),_0x4ccd10[_0x47306f('0x5c1')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'license/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'license/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x21a5'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xcc1')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x82c'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'campaigns/describe'},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+'campaigns/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'getHoppers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'campaigns/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2386')},'getHopperFinals':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'campaigns/:id/hopper_finals'},'getHopperBlacks':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x18ae')},'getLists':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x15bc')},'addLists':{'isArray':!![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x15bc')},'removeLists':{'isArray':!![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x15bc')},'getBlackLists':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1acf')},'addBlackLists':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1acf')},'removeBlackLists':{'isArray':!![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+'campaigns/:id/blacklists'}}),_0x4ccd10[_0x47306f('0x216e')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1440'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x176f')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x729'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x1a47')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x1f85'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'attachments/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe82'),'params':{'includeAll':_0x47306f('0x127a')}},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'attachments/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function _0x260521(_0x1d279b,_0x5cd505){var _0x2b43af=_0x47306f,_0x1b37a5=_0x5cd505();return{'type':_0x1b37a5[_0x2b43af('0x1589')],'length':_0x1b37a5[_0x2b43af('0xac5')],'buffer':_0x1d279b};}}}),_0x4ccd10[_0x47306f('0x17f2')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1c39'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1065')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1838'),'params':{'includeAll':_0x47306f('0x127a')}},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x100e'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x5006ed(_0xb46ac3,_0xabe4fe){var _0x29506c=_0x47306f,_0x930914=_0xabe4fe();return{'type':_0x930914[_0x29506c('0x1589')],'length':_0x930914[_0x29506c('0xac5')],'buffer':_0xb46ac3};}},'upload':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'plugins/'},'delete':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1c39')},'webhookGet':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1042')},'webhookPost':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1042')}}),_0x4ccd10[_0x47306f('0x2514')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'mail/reports/transfer/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1e74')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2255'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['chatTransferReport']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x23c6'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x1307')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x946'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x1ea7')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xd3b'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1d00')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'fax/reports/transfer/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10['openchannelTransferReport']=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0xf84'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x6a8')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x595'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10[_0x47306f('0x163c')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xbcf'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x163e')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'sms/reports/transfer/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1bbd')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2d1'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x204c')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x11cf'),'params':{'includeAll':_0x47306f('0x127a')}},'addDisposition':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x122f')},'getDispositions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cm/lists/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x122f')},'addContacts':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x215b')},'getContacts':{'isArray':!![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cm/lists/:id/contacts'},'getContactsCsv':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x214f'),'responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x1c8299(_0x554ea2,_0x3888f8){var _0x4e815d=_0x47306f,_0x39b72e=_0x3888f8();return{'type':_0x39b72e[_0x4e815d('0x1589')],'length':_0x39b72e[_0x4e815d('0xac5')],'buffer':_0x554ea2};}},'addCustomField':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x96a')},'getCustomFields':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+'cm/lists/:id/fields'},'addAgents':{'isArray':!![],'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x1cdc')},'removeAgents':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+'cm/lists/:id/users'},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1cdc')}}),_0x4ccd10[_0x47306f('0x21df')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x7c'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x15e9')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xebb'),'params':{'includeAll':'@includeAll'}},'addAgents':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1fb0')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1fb0')},'getAgents':{'isArray':![],'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1fb0')}}),_0x4ccd10['userProfile']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'userProfiles/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2011')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xfda'),'params':{'includeAll':'@includeAll'}},'addSections':{'isArray':!![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'userProfiles/:id/sections'},'removeSections':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x72f')},'getSections':{'isArray':!![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x72f')},'addResources':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2fa')},'removeResources':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2fa')},'getResources':{'isArray':![],'method':'get','url':_0x4ccd10['baseUrl']+_0x47306f('0x2fa')}}),_0x4ccd10[_0x47306f('0xb59')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x4c7'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2510')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x144a'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0xd49')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x19fe'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xe14')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x246a'),'params':{'includeAll':'@includeAll'}}}),_0x4ccd10['notification']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+'notifications/:id',{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x212d')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xbe7'),'params':{'includeAll':_0x47306f('0x127a')}},'sendNotification':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+'notifications/'}}),_0x4ccd10['whatsappAccount']=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2887'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1014')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/accounts/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'addDisposition':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x16ff')},'getDispositions':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/accounts/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x16ff')},'addAnswer':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x2488')},'getAnswers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':'delete','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2488')},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x2162')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/accounts/:id/users'},'addApplications':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x772')},'getApplications':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/accounts/:id/applications'},'notify':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/accounts/:id/notify'},'send':{'isArray':![],'method':'post','url':_0x4ccd10['baseUrl']+'whatsapp/accounts/:id/send'}}),_0x4ccd10[_0x47306f('0x2717')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xb03'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x6b')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x14f2'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x1888')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x663'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'whatsapp/interactions/describe'},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+_0x47306f('0x63d'),'params':{'includeAll':_0x47306f('0x127a')}},'addMessage':{'isArray':![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1026')},'getMessages':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/interactions/:id/messages'},'addTags':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x25dc')},'removeTags':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x25dc')},'download':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+'whatsapp/interactions/:id/download','responseType':_0x47306f('0x17f7'),'cache':![],'transformResponse':function _0x33a68e(_0x408eee,_0x2587d7){var _0x1d16ca=_0x47306f,_0x560678=_0x2587d7();return{'type':_0x560678[_0x1d16ca('0x1589')],'length':_0x560678['content-length'],'buffer':_0x408eee};}}}),_0x4ccd10[_0x47306f('0x2201')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x56c'),{'id':_0x47306f('0x245a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x275')},'clone':{'method':'post','url':_0x4ccd10['baseUrl']+'whatsapp/messages/:id/clone','params':{'includeAll':_0x47306f('0x127a')}},'accept':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x510')},'reject':{'isArray':![],'method':_0x47306f('0x153c'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xf21')},'status':{'isArray':![],'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x817')}}),_0x4ccd10[_0x47306f('0x203b')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x16d3'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0xc10')},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x264f'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x3c5')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x177e'),{'id':'@id'},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x16c0')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x26c7'),'params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10[_0x47306f('0x17a7')]=_0x5a4a49(_0x4ccd10['baseUrl']+_0x47306f('0x2204'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':'get','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x134')},'clone':{'method':'post','url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0xd3'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x7f7')},'addTeams':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x7f7')},'removeTeams':{'isArray':![],'method':'delete','url':_0x4ccd10['baseUrl']+'whatsapp/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1720')},'removeAgents':{'isArray':![],'method':_0x47306f('0x229e'),'url':_0x4ccd10[_0x47306f('0x2496')]+'whatsapp/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x47306f('0x22d5'),'url':_0x4ccd10['baseUrl']+_0x47306f('0x1720')}}),_0x4ccd10[_0x47306f('0x67d')]=_0x5a4a49(_0x4ccd10[_0x47306f('0x2496')]+_0x47306f('0x1f9a'),{'id':_0x47306f('0x245a')},{'update':{'method':_0x47306f('0x153c')},'describe':{'method':_0x47306f('0x22d5'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cloudProviders/describe'},'clone':{'method':_0x47306f('0x1f9f'),'url':_0x4ccd10[_0x47306f('0x2496')]+'cloudProviders/:id/clone','params':{'includeAll':_0x47306f('0x127a')}}}),_0x4ccd10;}const _0x2dca94=_0x104204;_0xdf40e2[_0xb635d2('0xb0c')]=[_0xb635d2('0xfa1'),'toastyConfigProvider'];function _0xdf40e2(_0x307f7a,_0x1a048c){var _0xcd52f6=_0xb635d2;_0x1a048c[_0xcd52f6('0x190e')]({'position':_0xcd52f6('0x96'),'sound':![],'html':!![],'theme':_0xcd52f6('0x278b')}),_0x307f7a[_0xcd52f6('0x2564')](_0xcd52f6('0xef0'),{'urlTemplate':_0xcd52f6('0x101c')}),_0x307f7a[_0xcd52f6('0x73d')]('en'),_0x307f7a[_0xcd52f6('0x3c8')](null);}const _0x1a225e=_0xdf40e2;_0x13908a[_0xb635d2('0xb0c')]=['motionTheming',_0xb635d2('0x2493'),_0xb635d2('0x1c1d'),_0xb635d2('0xffc'),_0xb635d2('0xf65')];function _0x13908a(_0x73bbb,_0x2d49e6,_0x544887,_0x2216c7,_0x2e20e9){var _0x319556=_0xb635d2,_0x41d3ac=this;_0x41d3ac[_0x319556('0x2539')]=_0x73bbb[_0x319556('0x2539')],_0x41d3ac[_0x319556('0x1338')]='ltr';var _0x386054=['ar','fa','he'],_0x1f4ac7=_0x544887[_0x319556('0x22d5')](_0x319556('0x153e'));_0x1f4ac7&&(_0x2d49e6[_0x319556('0x279b')](_0x1f4ac7),_0x386054[_0x319556('0x281c')](_0x1f4ac7)>=0x0&&_0x2216c7[_0x319556('0x22f1')][_0x319556('0x22d5')]({'id':0x1})['$promise']['then'](function(_0x7cb7bd){var _0x1bcf5b=_0x319556;_0x7cb7bd&&_0x7cb7bd[_0x1bcf5b('0x8a4')]&&(_0x41d3ac[_0x1bcf5b('0x1338')]=_0x1bcf5b('0x231b'));})[_0x319556('0x223b')](function(_0x3dcdb8){var _0x36827d=_0x319556;_0x3dcdb8&&_0x2e20e9[_0x36827d('0x8c8')]({'title':_0x36827d('0x1d80'),'msg':_0x3dcdb8[_0x36827d('0x11d0')]?_0x3dcdb8['data'][_0x36827d('0x27e8')]||_0x3dcdb8[_0x36827d('0x27e8')]||_0x3dcdb8:_0x3dcdb8[_0x36827d('0x27e8')]||_0x3dcdb8});}));}const _0x52c9f5=_0x13908a;_0xb7ba10[_0xb635d2('0xb0c')]=[_0xb635d2('0x2493')],_0x1991ce[_0xb635d2('0xb0c')]=['$filter',_0xb635d2('0x2493')];function _0x1991ce(_0x1b8578,_0x5a6d38){return function(_0x4a0e95){var _0x2d58ca=a0_0x5325,_0x4d4e58=new Date(),_0x1b43e6=new Date(_0x4a0e95);if(_0x1b43e6[_0x2d58ca('0x15d3')]()===_0x4d4e58['getDate']()&&_0x1b43e6[_0x2d58ca('0x1960')]()===_0x4d4e58[_0x2d58ca('0x1960')]()&&_0x1b43e6[_0x2d58ca('0x763')]()===_0x4d4e58[_0x2d58ca('0x763')]())return _0x1b8578(_0x2d58ca('0xf6d'))(_0x1b43e6[_0x2d58ca('0xc54')](),_0x2d58ca('0x24c5'));if(_0x1b43e6['getDate']()===_0x4d4e58[_0x2d58ca('0x15d3')]()-0x1&&_0x1b43e6['getMonth']()===_0x4d4e58['getMonth']()&&_0x1b43e6[_0x2d58ca('0x763')]()===_0x4d4e58[_0x2d58ca('0x763')]())return _0x5a6d38['instant'](_0x2d58ca('0x2727'))+'\x20'+_0x1b8578(_0x2d58ca('0xf6d'))(_0x1b43e6[_0x2d58ca('0xc54')](),_0x2d58ca('0x24c5'));return _0x1b8578(_0x2d58ca('0xf6d'))(_0x1b43e6[_0x2d58ca('0xc54')](),_0x2d58ca('0x258a'));};}function _0x141638(){return function(_0x2db368,_0x576b66,_0x513f7f){var _0x2ff5c1={},_0x1386a7=0x0,_0x4320f9;for(_0x4320f9 in _0x2db368){_0x1386a7>=_0x513f7f&&(_0x2ff5c1[_0x4320f9]=_0x2db368[_0x4320f9]);if(++_0x1386a7===_0x513f7f+_0x576b66)break;}return _0x2ff5c1;};}function _0x25fdde(){var _0x1c5a13=_0xb635d2,_0x2710fc=[{'value':_0x1c5a13('0xf9a')},{'value':_0x1c5a13('0x16bd')},{'value':_0x1c5a13('0x3a5')},{'value':_0x1c5a13('0x1756')},{'value':_0x1c5a13('0x99a')},{'value':'jun'},{'value':_0x1c5a13('0x51d')},{'value':'aug'},{'value':_0x1c5a13('0x9c7')},{'value':_0x1c5a13('0x1f02')},{'value':_0x1c5a13('0x1cf4')},{'value':_0x1c5a13('0x24ec')}],_0x2f3b25=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x55cf98=[{'value':_0x1c5a13('0xe65')},{'value':_0x1c5a13('0x3c6')},{'value':_0x1c5a13('0x2760')},{'value':'thu'},{'value':_0x1c5a13('0x49e')},{'value':_0x1c5a13('0x11d1')},{'value':_0x1c5a13('0xd4c')}],_0x242d1b=[0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f];return{'getMonthName':function _0x445c65(){return _0x2710fc;},'getMonthNumber':function _0x349699(){return _0x2f3b25;},'getDaysOfWeek':function _0x175964(){return _0x55cf98;},'getDaysOfMonth':function _0x1fde97(){return _0x242d1b;}};}function _0xb7ba10(_0x2ff968){var _0x155cfb=_0xb635d2;return{'Today':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0xe60')),'Yesterday':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x2727')),'This\x20Week':_0x2ff968[_0x155cfb('0x2159')]('DASHBOARDS.THIS_WEEK'),'Last\x20Week':_0x2ff968['instant'](_0x155cfb('0x139d')),'This\x20Month':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x1c61')),'Last\x20Month':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x9ef')),'This\x20Year':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x852')),'Last\x20Year':_0x2ff968['instant'](_0x155cfb('0x15bd')),'January':_0x2ff968[_0x155cfb('0x2159')]('DASHBOARDS.JANUARY'),'February':_0x2ff968[_0x155cfb('0x2159')]('DASHBOARDS.FEBRUARY'),'March':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x10f5')),'April':_0x2ff968['instant'](_0x155cfb('0x1a41')),'May':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0xeed')),'June':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x1dbc')),'July':_0x2ff968[_0x155cfb('0x2159')]('DASHBOARDS.JULY'),'August':_0x2ff968[_0x155cfb('0x2159')]('DASHBOARDS.AUGUST'),'September':_0x2ff968['instant'](_0x155cfb('0xa86')),'October':_0x2ff968['instant'](_0x155cfb('0x10ed')),'November':_0x2ff968[_0x155cfb('0x2159')]('DASHBOARDS.NOVEMBER'),'December':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x8c3')),'Mon':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x1d1a')),'Tue':_0x2ff968[_0x155cfb('0x2159')]('DASHBOARDS.TUE'),'Wed':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x1e82')),'Thu':_0x2ff968[_0x155cfb('0x2159')]('DASHBOARDS.THU'),'Fri':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x2667')),'Sat':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x96b')),'Sun':_0x2ff968[_0x155cfb('0x2159')](_0x155cfb('0x1e73'))};}function _0x2949e0(){return{'enqueue':function _0x194f56(_0x36aa95){var _0x9f8d3=a0_0x5325;this[_0x9f8d3('0x5be')]=this['tail']?this['tail'][_0x9f8d3('0x23')](_0x36aa95):_0x36aa95();}};}const _0x3ac013=_0x59426a['p']+_0xb635d2('0x18b7'),_0x9da2f6=_0x59426a['p']+_0xb635d2('0x18c3'),_0x300d49=_0x59426a['p']+_0xb635d2('0x1eeb'),_0x15086e=_0x59426a['p']+_0xb635d2('0xdd1'),_0x57b9c2=_0x59426a['p']+_0xb635d2('0x2769'),_0xfaa01f=_0x59426a['p']+_0xb635d2('0x19cf'),_0xc6da0f=_0x59426a['p']+_0xb635d2('0x9aa');_0x53bc89['$inject']=[_0xb635d2('0x1a6d'),_0xb635d2('0x11e5'),_0xb635d2('0x2110')];function _0x53bc89(_0x417ccb,_0x516f90,_0x451aa1){var _0xe19f90=_0xb635d2;_0x451aa1[_0xe19f90('0xbab')](!![]),_0x516f90[_0xe19f90('0x285d')](_0xe19f90('0xe26'));var _0x20ad01;angular['injector'](['ngCookies'])['invoke'](['$cookies',function(_0xb8ab3c){_0x20ad01=_0xb8ab3c;}]);var _0x362edc=_0x20ad01['get'](_0xe19f90('0x1fe6'))||_0xe19f90('0x1670'),_0x13935f={'verticalNavigation':{'main':_0x2a2136,'toolbar':_0x3ac013,'navigation':_0x300d49,'header':_0x57b9c2,'footer':_0xfaa01f},'verticalNavigationFullwidthToolbar':{'main':_0x35d37a,'toolbar':'','navigation':_0x300d49},'verticalNavigationFullwidthToolbar2':{'main':_0x189367,'toolbar':'','navigation':_0x15086e},'horizontalNavigation':{'main':_0x4243bf,'toolbar':'','navigation':_0x9da2f6},'contentOnly':{'main':_0x43b399,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x5cb5d4,'toolbar':'','navigation':''}};_0x417ccb[_0xe19f90('0x1d72')](_0xe19f90('0xf2b'),{'abstract':!![],'views':{'main@':{'templateUrl':_0x13935f[_0x362edc][_0xe19f90('0x39f')],'controller':'MainController\x20as\x20vm'},'toolbar@app':{'templateUrl':_0x13935f[_0x362edc][_0xe19f90('0xbd7')],'controller':_0xe19f90('0xabb')},'navigation@app':{'templateUrl':_0x13935f[_0x362edc][_0xe19f90('0x155b')],'controller':_0xe19f90('0x397')},'quickPanel@app':{'templateUrl':_0xc6da0f,'controller':'QuickPanelController\x20as\x20vm'},'header@app':{'templateUrl':_0x13935f[_0x362edc][_0xe19f90('0xc92')],'controller':'HeaderController\x20as\x20vm'},'footer@app':{'templateUrl':_0x13935f[_0x362edc]['footer'],'controller':_0xe19f90('0xe06')}},'resolve':{'license':[_0xe19f90('0x292'),function _0x5c1c69(_0x4f29f2){var _0xd8105a=_0xe19f90;return _0x4f29f2[_0xd8105a('0xcd6')]('license@get');}],'setting':[_0xe19f90('0x292'),function _0x35c2be(_0x4918d9){var _0x237a84=_0xe19f90;return _0x4918d9[_0x237a84('0xcd6')](_0x237a84('0x29c'),{'id':0x1});}]}});}const _0xb8a1f5=_0x53bc89;_0x1fd065[_0xb635d2('0xb0c')]=[_0xb635d2('0x908'),_0xb635d2('0x934')];function _0x1fd065(_0x4493b0,_0x2f17b8){var _0x3943b0=_0xb635d2;_0x4493b0[_0x3943b0('0xee0')]({},_0x2f17b8[_0x3943b0('0xfc8')]),_0x4493b0[_0x3943b0('0x1425')]({},_0x2f17b8[_0x3943b0('0x2158')]);}const _0x576602=_0x1fd065;var _0x26c835=_0x59426a(0x1a99);_0x40e851['$inject']=[_0xb635d2('0x917'),_0xb635d2('0x2730')];function _0x40e851(_0x270cc7,_0x205d6c){var _0x40be5d;function _0x34a670(){var _0x32ea47=a0_0x5325,_0x4b2f40=!![]?window['io']:0x0,_0x593421={'query':_0x32ea47('0xd24')+_0x205d6c['getCurrentUser']()['id'],'transports':[_0x32ea47('0x1f6a'),_0x32ea47('0x1948')]};_0x40be5d=!![]?_0x4b2f40(_0x593421):0x0;}return{'connect':_0x34a670,'on':function _0xa8f801(_0x157e16,_0x433789){var _0x5e753c=a0_0x5325;_0x433789=_0x433789||angular[_0x5e753c('0xc09')],!_0x40be5d&&_0x34a670(),_0x40be5d['on'](_0x157e16,function(){var _0x16a19a=_0x5e753c,_0x57b07a=arguments;_0x270cc7[_0x16a19a('0x1993')](function(){var _0x5bf217=_0x16a19a;_0x433789[_0x5bf217('0x2087')](_0x40be5d,_0x57b07a);});});},'onWithoutApply':function _0x48817d(_0x6ef0b6,_0x3e9b61){var _0x44ee69=a0_0x5325;_0x3e9b61=_0x3e9b61||angular[_0x44ee69('0xc09')],!_0x40be5d&&_0x34a670(),_0x40be5d['on'](_0x6ef0b6,function(){var _0x375b15=_0x44ee69;_0x3e9b61[_0x375b15('0x2087')](_0x40be5d,arguments);});},'emit':function _0x28f1a4(_0x55f159,_0x4829ea,_0x34c14e){var _0x5db595=a0_0x5325;_0x34c14e=_0x34c14e||angular[_0x5db595('0xc09')],!_0x40be5d&&_0x34a670(),_0x40be5d[_0x5db595('0x13ec')](_0x55f159,_0x4829ea,function(){var _0x1bee5e=_0x5db595,_0x5cf367=arguments;_0x270cc7[_0x1bee5e('0x1993')](function(){var _0x58edc1=_0x1bee5e;_0x34c14e[_0x58edc1('0x2087')](_0x40be5d,_0x5cf367);});});},'removeAllListeners':function _0x30ab27(_0x319052){var _0x545ac8=a0_0x5325;!_0x40be5d&&_0x34a670(),_0x40be5d[_0x545ac8('0x2121')](_0x319052);},'removeListener':function _0x4655a5(_0x544da4,_0xc30367){var _0x4285a5=a0_0x5325;!_0x40be5d&&_0x34a670(),_0x40be5d[_0x4285a5('0x19dc')](_0x544da4,_0xc30367);},'disconnect':function _0xbd81f7(){var _0x503d0e=a0_0x5325;!_0x40be5d&&_0x34a670(),_0x40be5d[_0x503d0e('0x83c')]();}};}const _0x50043d=_0x40e851;_0x925dee[_0xb635d2('0xb0c')]=[_0xb635d2('0x63c'),_0xb635d2('0x917'),_0xb635d2('0x2493'),_0xb635d2('0x1631'),_0xb635d2('0x2644'),_0xb635d2('0x2730'),'toasty',_0xb635d2('0x5c1'),_0xb635d2('0xffc'),'setting'];function _0x925dee(_0x3b5edf,_0x1b76e9,_0x4a2195,_0x3ff93b,_0x45596b,_0x26fecf,_0x239f9d,_0x1e0fea,_0x4c5749,_0x536f49){var _0x41081f=_0xb635d2,_0x342c14=this;_0x239f9d['clear']();function _0x24d707(){var _0x20dcda=a0_0x5325;return _0x26fecf[_0x20dcda('0x1ef8')]()&&_0x26fecf[_0x20dcda('0x179e')](_0x20dcda('0x108'));}_0x342c14[_0x41081f('0x608')]=_0x24d707;function _0xb6a4b2(_0x2b6ede,_0x23bf26){var _0x5a7412=_0x41081f;return{'id':_0x2b6ede,'title':_0x23bf26[_0x5a7412('0x2623')]||'NONAME','state':_0x5a7412('0x21f8'),'stateParams':_0x23bf26,'weight':0x2,'hidden':function _0x2ffd0a(){var _0x23c1a6=_0x5a7412;return _0x26fecf[_0x23c1a6('0x179e')]('agent')||!_0x26fecf[_0x23c1a6('0xe87')](_0x2b6ede)&&!_0x26fecf[_0x23c1a6('0x179e')]('admin');}};}function _0x592c64(_0x97afa4,_0xb5d3d3){var _0x1828de=_0x41081f;return{'id':_0x97afa4,'title':_0xb5d3d3[_0x1828de('0x2623')]||_0x1828de('0x1d11'),'state':_0x1828de('0x16dc'),'stateParams':_0xb5d3d3,'weight':0x2,'hidden':function _0x317df0(){var _0x3242e7=_0x1828de;return _0x26fecf[_0x3242e7('0x179e')](_0x3242e7('0x108'))||!_0x26fecf['hasPermission'](_0x97afa4)&&!_0x26fecf[_0x3242e7('0x179e')](_0x3242e7('0xd14'));}};}function _0x13df5a(_0x3a9e2b,_0x3e6aa9){var _0x41db5e=_0x41081f,_0x373dad={'user':_0x32d445()['pick'](_0x26fecf[_0x41db5e('0x1ef8')](),['id',_0x41db5e('0x2623'),'fullname',_0x41db5e('0x1211'),_0x41db5e('0xcd9'),_0x41db5e('0x1b66'),'interface'])};_0x3e6aa9[_0x41db5e('0x776')]=_0x1be88e()['render'](_0x3e6aa9[_0x41db5e('0x776')],_0x373dad),_0x45596b['saveItem']('apps.home.plugin_'+_0x3a9e2b,{'id':_0x3a9e2b,'title':_0x3e6aa9['name'],'translate':_0x3e6aa9['name'],'state':_0x41db5e('0xe42')+_0x3e6aa9['id'],'stateParams':_0x3e6aa9,'view':_0x41db5e('0x17f2'),'icon':_0x3e6aa9['icon'],'weight':0xc,'hidden':function _0x3a0e98(){var _0x498126=_0x41db5e;return!_0x26fecf[_0x498126('0xe87')](_0x3a9e2b);}});}_0x3ff93b['saveItem'](_0x41081f('0x23bb'),{'title':_0x41081f('0x1aaf'),'group':!![],'weight':0x1,'hidden':function _0x459d10(){var _0x2fe7c9=_0x41081f;return _0x26fecf[_0x2fe7c9('0x179e')](_0x2fe7c9('0x108'));}}),_0x4c5749['version'][_0x41081f('0x22d5')]()['$promise'][_0x41081f('0xe19')](function(_0x348ff3){var _0x18293f=_0x41081f;_0x342c14['version']=_0x348ff3&&_0x348ff3[_0x18293f('0x1a60')]?_0x348ff3['current']:'UNKNOWN';})[_0x41081f('0x223b')](function(){var _0x1997d1=_0x41081f;_0x342c14[_0x1997d1('0xfec')]=_0x1997d1('0x1965');})[_0x41081f('0x23')](function(){var _0xc46174=_0x41081f;_0x3ff93b[_0xc46174('0x1384')](_0xc46174('0xfec'),{'title':_0xc46174('0x1264')+_0x342c14['version'],'group':!![],'weight':0x2,'hidden':function _0x34ad16(){return _0x26fecf['hasRole']('agent');}});});function _0x371d20(_0x417c47){var _0x372a6c=_0x41081f;return _0x32d445()[_0x372a6c('0x65a')](_0x417c47[_0x372a6c('0x1977')],function(_0x254415){return _0x254415['id'];});}_0x26fecf[_0x41081f('0x299')]()&&(_0x1e0fea['gray']&&_0x239f9d['warning']({'msg':_0x4a2195['instant']('DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS'),'showClose':!![],'timeout':![]}),_0x4c5749[_0x41081f('0xe6c')]['get']()['$promise'][_0x41081f('0xe19')](function(_0x3170b3){var _0x5d7bac=_0x41081f,_0xd42b6a=0x0;for(var _0x953e8e=0x0;_0x953e8e<_0x3170b3['rows'][_0x5d7bac('0x25ae')];_0x953e8e+=0x1){_0xd42b6a=0x1869f+_0x3170b3['rows'][_0x953e8e]['id'],_0x3ff93b['saveItem'](_0x5d7bac('0x1ba4')+_0xd42b6a,_0xb6a4b2(_0xd42b6a,_0x3170b3[_0x5d7bac('0x16a7')][_0x953e8e]));}}),_0x4c5749[_0x41081f('0x17f2')][_0x41081f('0x22d5')]({'active':!![]})[_0x41081f('0xe59')][_0x41081f('0xe19')](function(_0x3b5c0d){var _0x5bac59=_0x41081f,_0x39b0ab=0x0;if(_0x3b5c0d[_0x5bac59('0x148b')]){var _0xfec030=_0x32d445()[_0x5bac59('0x2891')](_0x3b5c0d['rows'],function(_0x3de5b9){var _0x3344b4=_0x5bac59;return _0x3de5b9[_0x3344b4('0x758')]!=_0x3344b4('0x1045')&&_0x3de5b9['sidebar']!=_0x3344b4('0xf73');});if(_0xfec030[_0x5bac59('0x25ae')]>0x0){_0x3ff93b[_0x5bac59('0x1384')](_0x5bac59('0x1ee0'),{'id':0x76c,'title':_0x5bac59('0x1334'),'translate':_0x5bac59('0x1dd7'),'icon':_0x5bac59('0x27be'),'permissions':{'hidden':!![]},'weight':0x11,'hidden':function _0x327904(){var _0x255de5=_0x5bac59;return _0x26fecf[_0x255de5('0x179e')](_0x255de5('0x108'))||!_0x26fecf['hasChildrenPermissions'](_0x371d20(this))&&!_0x26fecf[_0x255de5('0x179e')](_0x255de5('0xd14'));}});for(var _0x548b54=0x0;_0x548b54<_0xfec030[_0x5bac59('0x25ae')];_0x548b54+=0x1){_0x39b0ab=0x15b38+_0xfec030[_0x548b54]['id'],_0x3ff93b[_0x5bac59('0x1384')](_0x5bac59('0x707')+_0x39b0ab,_0x592c64(_0x39b0ab,_0xfec030[_0x548b54]));}_0x3ff93b['sort']();}var _0x593e46=_0x32d445()['filter'](_0x3b5c0d[_0x5bac59('0x16a7')],function(_0x49b9ae){var _0x47824a=_0x5bac59;return _0x49b9ae['sidebar']!='never'&&_0x49b9ae['sidebar']!=_0x47824a('0x387');});if(_0x593e46[_0x5bac59('0x25ae')]>0x0)for(var _0x492625=0x0;_0x492625<_0x593e46[_0x5bac59('0x25ae')];_0x492625+=0x1){_0x39b0ab=0x15b38+_0x593e46[_0x492625]['id'],_0x13df5a(_0x39b0ab,_0x593e46[_0x492625]);}}})),_0x1e0fea['custom']&&!_0x536f49[_0x41081f('0x204f')]&&_0x536f49[_0x41081f('0x255')]&&angular[_0x41081f('0x24a1')](_0x41081f('0x542'))[_0x41081f('0x158f')](_0x536f49['pageTitle']),_0x3ff93b[_0x41081f('0x1384')]('apps.dashboards',{'id':0x64,'title':_0x41081f('0x15c2'),'translate':_0x41081f('0x21'),'icon':_0x41081f('0x9b0'),'weight':0x2,'hidden':function _0x39a225(){var _0x549aef=_0x41081f;return _0x26fecf[_0x549aef('0x179e')](_0x549aef('0x108'))||!_0x26fecf[_0x549aef('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x549aef('0x179e')](_0x549aef('0xd14'));}}),_0x3ff93b['saveItem']('apps.dashboards.general',{'id':0x65,'title':_0x41081f('0x1f61'),'route':'','translate':_0x41081f('0x572'),'state':_0x41081f('0xb1a'),'weight':0x1,'hidden':function _0x10a62f(){var _0x159e24=_0x41081f;return _0x26fecf[_0x159e24('0x179e')](_0x159e24('0x108'))||!_0x26fecf[_0x159e24('0xe87')](0x65)&&!_0x26fecf[_0x159e24('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')]('apps.staff',{'id':0xc8,'title':'Staff','translate':'STAFF.STAFF','icon':_0x41081f('0x53a'),'weight':0x3,'hidden':function _0x5aae4c(){var _0x4f8a01=_0x41081f;return _0x26fecf[_0x4f8a01('0x179e')](_0x4f8a01('0x108'))||!_0x26fecf[_0x4f8a01('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x4f8a01('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x179d'),{'id':0xc9,'title':_0x41081f('0x970'),'route':_0x41081f('0x10c6'),'translate':_0x41081f('0x21c1'),'state':_0x41081f('0x30b'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function _0x5e1771(){var _0x4307d3=_0x41081f;return _0x26fecf[_0x4307d3('0x179e')](_0x4307d3('0x108'))||_0x26fecf['hasRole'](_0x4307d3('0x10c6'))||!_0x26fecf[_0x4307d3('0xe87')](0xc9)&&!_0x26fecf['hasRole'](_0x4307d3('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x19a7'),{'id':0xca,'title':_0x41081f('0xd61'),'route':_0x41081f('0x10c6'),'translate':_0x41081f('0x1595'),'state':_0x41081f('0xea3'),'weight':0x1,'hidden':function _0x495758(){var _0x48ecf3=_0x41081f;return _0x26fecf[_0x48ecf3('0x179e')](_0x48ecf3('0x108'))||!_0x26fecf['hasPermission'](0xca)&&!_0x26fecf[_0x48ecf3('0x179e')](_0x48ecf3('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1aa3'),{'id':0xcb,'title':_0x41081f('0x1f63'),'route':'user','translate':_0x41081f('0x1438'),'state':_0x41081f('0x1201'),'weight':0x1,'hidden':function _0x50ee24(){var _0x4eb559=_0x41081f;return _0x26fecf[_0x4eb559('0x179e')](_0x4eb559('0x108'))||!_0x26fecf[_0x4eb559('0xe87')](0xcb)&&!_0x26fecf[_0x4eb559('0x179e')](_0x4eb559('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x217'),{'id':0xcc,'title':_0x41081f('0x1d54'),'route':_0x41081f('0x25af'),'translate':_0x41081f('0x2835'),'state':_0x41081f('0x200d'),'weight':0x1,'hidden':function _0x32c7f6(){var _0x2ad912=_0x41081f;return _0x26fecf[_0x2ad912('0x179e')](_0x2ad912('0x108'))||!_0x26fecf[_0x2ad912('0xe87')](0xcc)&&!_0x26fecf[_0x2ad912('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')]('apps.staff.userProfiles',{'id':0xcd,'title':_0x41081f('0x164a'),'route':'userProfile','translate':_0x41081f('0x1fad'),'state':'app.staff.userProfiles','weight':0x1,'permissions':{'hidden':!![]},'hidden':function _0x20fa0e(){var _0xc4c3c8=_0x41081f;return _0x26fecf['hasRole'](_0xc4c3c8('0x108'))||!_0x26fecf[_0xc4c3c8('0xe87')](0xcd)&&!_0x26fecf[_0xc4c3c8('0x179e')](_0xc4c3c8('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.contactmanager',{'id':0x12c,'title':'ContactManager','translate':'CONTACTMANAGER.CONTACTMANAGER','icon':_0x41081f('0x133c'),'weight':0x4,'license':'cm','hidden':function _0x56f91e(){var _0x1c877f=_0x41081f;return!_0x1e0fea['cm']||_0x26fecf[_0x1c877f('0x179e')](_0x1c877f('0x108'))||!_0x26fecf[_0x1c877f('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x1c877f('0x179e')](_0x1c877f('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x82b'),{'id':0x12d,'title':_0x41081f('0x2697'),'route':_0x41081f('0x1bbd'),'translate':_0x41081f('0x1cb7'),'state':_0x41081f('0x85f'),'weight':0x2,'hidden':function _0x2b9f31(){var _0x3d8d05=_0x41081f;return _0x26fecf[_0x3d8d05('0x179e')](_0x3d8d05('0x108'))||!_0x26fecf['hasPermission'](0x12d)&&!_0x26fecf[_0x3d8d05('0x179e')](_0x3d8d05('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2691'),{'id':0x12e,'title':_0x41081f('0x25f3'),'route':_0x41081f('0x24d1'),'translate':_0x41081f('0x1b1b'),'state':_0x41081f('0x1170'),'weight':0x3,'hidden':function _0x2329ed(){var _0xa51ebd=_0x41081f;return _0x26fecf[_0xa51ebd('0x179e')](_0xa51ebd('0x108'))||!_0x26fecf[_0xa51ebd('0xe87')](0x12e)&&!_0x26fecf[_0xa51ebd('0x179e')](_0xa51ebd('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x39a'),{'id':0x130,'title':_0x41081f('0xbc6'),'route':_0x41081f('0x1a2b'),'translate':_0x41081f('0x141b'),'state':_0x41081f('0x1f20'),'weight':0x4,'permissions':{'association':![]},'hidden':function _0x41fdf0(){var _0x5827d8=_0x41081f;return _0x26fecf[_0x5827d8('0x179e')](_0x5827d8('0x108'))||!_0x26fecf['hasPermission'](0x130)&&!_0x26fecf[_0x5827d8('0x179e')](_0x5827d8('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.contactmanager.contacts',{'id':0x12f,'title':'Contacts','route':'','translate':_0x41081f('0x1aca'),'state':_0x41081f('0x6'),'weight':0x1,'permissions':{'association':![]},'hidden':function _0x2092f3(){var _0x1b6259=_0x41081f;return _0x26fecf[_0x1b6259('0x179e')](_0x1b6259('0x108'))||!_0x26fecf[_0x1b6259('0xe87')](0x12f)&&!_0x26fecf[_0x1b6259('0x179e')]('admin');}}),_0x3ff93b['saveItem'](_0x41081f('0x110c'),{'id':0x190,'title':'Voice','translate':'VOICE.VOICE','icon':_0x41081f('0x816'),'weight':0x5,'license':_0x41081f('0xe74'),'hidden':function _0x2f6767(){var _0x4301be=_0x41081f;return!_0x1e0fea[_0x4301be('0xe74')]||_0x26fecf[_0x4301be('0x179e')](_0x4301be('0x108'))||!_0x26fecf['hasChildrenPermissions'](_0x371d20(this))&&!_0x26fecf[_0x4301be('0x179e')](_0x4301be('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1f09'),{'id':0x191,'title':'VoiceQueues','route':_0x41081f('0x25d5'),'translate':_0x41081f('0x1f84'),'state':_0x41081f('0x2308'),'weight':0x1,'channel':_0x41081f('0xe74'),'hidden':function _0x12416d(){var _0x64ccd5=_0x41081f;return _0x26fecf['hasRole'](_0x64ccd5('0x108'))||!_0x26fecf[_0x64ccd5('0xe87')](0x191)&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2381'),{'id':0x192,'title':_0x41081f('0x2305'),'route':_0x41081f('0x1979'),'translate':'VOICE.INBOUNDROUTES','state':_0x41081f('0x2219'),'weight':0x1,'hidden':function _0x5efe3e(){var _0x192b5e=_0x41081f;return _0x26fecf['hasRole'](_0x192b5e('0x108'))||!_0x26fecf[_0x192b5e('0xe87')](0x192)&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x6ef'),{'id':0x193,'title':_0x41081f('0x18af'),'route':'voiceExtension','translate':_0x41081f('0x187e'),'state':'app.voice.outboundroutes','weight':0x1,'hidden':function _0x4569db(){var _0x307eef=_0x41081f;return _0x26fecf[_0x307eef('0x179e')]('agent')||!_0x26fecf['hasPermission'](0x193)&&!_0x26fecf[_0x307eef('0x179e')](_0x307eef('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0x9cc'),{'id':0x194,'title':'InternalRoutes','route':_0x41081f('0x1979'),'translate':_0x41081f('0x18a2'),'state':_0x41081f('0x21d5'),'weight':0x1,'hidden':function _0x12d8ea(){var _0x49f377=_0x41081f;return _0x26fecf[_0x49f377('0x179e')](_0x49f377('0x108'))||!_0x26fecf[_0x49f377('0xe87')](0x194)&&!_0x26fecf[_0x49f377('0x179e')](_0x49f377('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x12d2'),{'id':0x195,'title':'Contexts','route':_0x41081f('0x2768'),'translate':_0x41081f('0x26bc'),'state':_0x41081f('0x1eb'),'weight':0x1,'hidden':function _0x1f2179(){var _0x1b589f=_0x41081f;return _0x26fecf[_0x1b589f('0x179e')]('agent')||!_0x26fecf[_0x1b589f('0xe87')](0x195)&&!_0x26fecf[_0x1b589f('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')]('apps.voice.voicemails',{'id':0x196,'title':'Voicemails','route':_0x41081f('0x27bf'),'translate':_0x41081f('0x15e3'),'state':_0x41081f('0x468'),'weight':0x1,'hidden':function _0x5ea8d6(){var _0x5ccc42=_0x41081f;return _0x26fecf[_0x5ccc42('0x179e')](_0x5ccc42('0x108'))||!_0x26fecf['hasPermission'](0x196)&&!_0x26fecf[_0x5ccc42('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x3ab'),{'id':0x197,'title':_0x41081f('0x1eb6'),'route':_0x41081f('0x1f4a'),'translate':_0x41081f('0xa75'),'state':_0x41081f('0x1950'),'weight':0x1,'hidden':function _0x1f69f9(){var _0x264d59=_0x41081f;return _0x26fecf['hasRole'](_0x264d59('0x108'))||!_0x26fecf[_0x264d59('0xe87')](0x197)&&!_0x26fecf[_0x264d59('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')]('apps.voice.voiceRecordings',{'id':0x198,'title':_0x41081f('0xcc6'),'route':_0x41081f('0x1a1e'),'translate':_0x41081f('0x734'),'state':_0x41081f('0x1162'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x1bb3d3(){var _0x1c52e6=_0x41081f;return _0x26fecf[_0x1c52e6('0x179e')]('agent')||!_0x26fecf[_0x1c52e6('0xe87')](0x198)&&!_0x26fecf[_0x1c52e6('0x179e')](_0x1c52e6('0xd14'));}}),_0x3ff93b['saveItem']('apps.voice.chanSpies',{'id':0x199,'title':_0x41081f('0x1f1f'),'route':'voiceChanSpy','translate':_0x41081f('0x1b51'),'state':_0x41081f('0x1e12'),'weight':0x1,'hidden':function _0x299978(){var _0x4ad671=_0x41081f;return _0x26fecf[_0x4ad671('0x179e')](_0x4ad671('0x108'))||!_0x26fecf[_0x4ad671('0xe87')](0x199)&&!_0x26fecf[_0x4ad671('0x179e')](_0x4ad671('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1b87'),{'id':0x19a,'title':_0x41081f('0x499'),'route':_0x41081f('0x21df'),'translate':'VOICE.VOICEPREFIXES','state':_0x41081f('0x1b97'),'weight':0x1,'hidden':function _0x12ea40(){var _0x3783d0=_0x41081f;return _0x26fecf[_0x3783d0('0x179e')](_0x3783d0('0x108'))||!_0x26fecf[_0x3783d0('0xe87')](0x19a)&&!_0x26fecf[_0x3783d0('0x179e')](_0x3783d0('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2556'),{'id':0x19b,'title':'Realtime','route':'','translate':'VOICE.REALTIME','state':_0x41081f('0x23d8'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x1cb50e(){var _0x45d4ba=_0x41081f;return _0x26fecf[_0x45d4ba('0x179e')]('agent')||!_0x26fecf[_0x45d4ba('0xe87')](0x19b)&&!_0x26fecf[_0x45d4ba('0x179e')](_0x45d4ba('0xd14'));}}),_0x3ff93b['saveItem']('apps.chat',{'id':0x1f4,'title':_0x41081f('0xe7'),'translate':_0x41081f('0x1037'),'icon':_0x41081f('0x212'),'weight':0x6,'license':_0x41081f('0x17cc'),'hidden':function _0x2b81dc(){var _0x57a784=_0x41081f;return!_0x1e0fea[_0x57a784('0x17cc')]||_0x26fecf[_0x57a784('0x179e')](_0x57a784('0x108'))||!_0x26fecf[_0x57a784('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x57a784('0x179e')](_0x57a784('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x996'),{'id':0x1f5,'title':_0x41081f('0x17c2'),'route':_0x41081f('0xfce'),'translate':_0x41081f('0x17ea'),'state':_0x41081f('0x1949'),'weight':0x1,'channel':_0x41081f('0x17cc'),'hidden':function _0x2c2062(){var _0xf0e8b0=_0x41081f;return _0x26fecf['hasRole'](_0xf0e8b0('0x108'))||!_0x26fecf[_0xf0e8b0('0xe87')](0x1f5)&&!_0x26fecf[_0xf0e8b0('0x179e')](_0xf0e8b0('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0xfea'),{'id':0x1f6,'title':_0x41081f('0x1331'),'route':_0x41081f('0xcda'),'translate':'CHAT.CHATWEBSITES','state':_0x41081f('0x1c0e'),'weight':0x1,'channel':'chat','hidden':function _0x17d1d8(){var _0x2e8a89=_0x41081f;return _0x26fecf[_0x2e8a89('0x179e')](_0x2e8a89('0x108'))||!_0x26fecf[_0x2e8a89('0xe87')](0x1f6)&&!_0x26fecf[_0x2e8a89('0x179e')](_0x2e8a89('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.chat.realtime',{'id':0x1fe,'title':_0x41081f('0x2215'),'route':'','translate':_0x41081f('0xe54'),'state':_0x41081f('0x5e8'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x167a54(){var _0x3d7057=_0x41081f;return _0x26fecf[_0x3d7057('0x179e')]('agent')||!_0x26fecf[_0x3d7057('0xe87')](0x1fe)&&!_0x26fecf['hasRole'](_0x3d7057('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x20be'),{'id':0x258,'title':_0x41081f('0xc4b'),'translate':'MAIL.MAIL','icon':_0x41081f('0x8e3'),'weight':0x7,'license':_0x41081f('0x26bf'),'hidden':function _0x5413ad(){var _0x5a538a=_0x41081f;return!_0x1e0fea[_0x5a538a('0x26bf')]||_0x26fecf['hasRole'](_0x5a538a('0x108'))||!_0x26fecf['hasChildrenPermissions'](_0x371d20(this))&&!_0x26fecf['hasRole'](_0x5a538a('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x992'),{'id':0x259,'title':_0x41081f('0x12e8'),'route':_0x41081f('0x18d9'),'translate':'MAIL.MAILQUEUES','state':_0x41081f('0x1202'),'weight':0x1,'channel':_0x41081f('0x26bf'),'hidden':function _0x15f1f1(){var _0x580104=_0x41081f;return _0x26fecf[_0x580104('0x179e')](_0x580104('0x108'))||!_0x26fecf[_0x580104('0xe87')](0x259)&&!_0x26fecf[_0x580104('0x179e')](_0x580104('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x42'),{'id':0x25a,'title':'MailAccounts','route':_0x41081f('0x17f0'),'translate':_0x41081f('0x19a4'),'state':_0x41081f('0x1978'),'weight':0x1,'channel':_0x41081f('0x26bf'),'hidden':function _0x4f9a7f(){var _0xaccb5=_0x41081f;return _0x26fecf[_0xaccb5('0x179e')](_0xaccb5('0x108'))||!_0x26fecf[_0xaccb5('0xe87')](0x25a)&&!_0x26fecf[_0xaccb5('0x179e')](_0xaccb5('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0xe41'),{'id':0x25b,'title':'MailSubstatuses','route':_0x41081f('0x158e'),'translate':_0x41081f('0x178a'),'state':'app.mail.mailSubtatuses','weight':0x1,'channel':_0x41081f('0x26bf'),'permissions':{'association':![]},'hidden':function _0x55a8f4(){var _0x2bb154=_0x41081f;return _0x26fecf[_0x2bb154('0x179e')]('agent')||!_0x26fecf[_0x2bb154('0xe87')](0x25b)&&!_0x26fecf['hasRole'](_0x2bb154('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0xd8a'),{'id':0x262,'title':_0x41081f('0x2215'),'route':'','translate':_0x41081f('0x2192'),'state':_0x41081f('0x1c07'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x58b6e8(){var _0x1050ce=_0x41081f;return _0x26fecf[_0x1050ce('0x179e')](_0x1050ce('0x108'))||!_0x26fecf[_0x1050ce('0xe87')](0x262)&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b['saveItem'](_0x41081f('0x1390'),{'id':0x2bc,'title':_0x41081f('0xcaa'),'translate':'SMS.SMS','icon':_0x41081f('0x470'),'weight':0x8,'license':'messaging','hidden':function _0x5a0486(){var _0x4ec4fb=_0x41081f;return!_0x1e0fea['messaging']||_0x26fecf['hasRole'](_0x4ec4fb('0x108'))||!_0x26fecf[_0x4ec4fb('0x12a4')](_0x371d20(this))&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b[_0x41081f('0x1384')]('apps.sms.smsQueues',{'id':0x2bd,'title':_0x41081f('0x1f11'),'route':'smsQueue','translate':_0x41081f('0x16f4'),'state':_0x41081f('0x17e8'),'weight':0x1,'channel':_0x41081f('0x2801'),'hidden':function _0x5b4be0(){var _0x127c30=_0x41081f;return _0x26fecf[_0x127c30('0x179e')](_0x127c30('0x108'))||!_0x26fecf['hasPermission'](0x2bd)&&!_0x26fecf[_0x127c30('0x179e')](_0x127c30('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1edb'),{'id':0x2be,'title':'SmsAccounts','route':_0x41081f('0x1437'),'translate':_0x41081f('0xe8c'),'state':_0x41081f('0x1dea'),'weight':0x1,'channel':'sms','hidden':function _0x14340c(){var _0x417194=_0x41081f;return _0x26fecf[_0x417194('0x179e')]('agent')||!_0x26fecf[_0x417194('0xe87')](0x2be)&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x18f8'),{'id':0x2c6,'title':_0x41081f('0x2215'),'route':'','translate':'SMS.REALTIME','state':'app.sms.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x395944(){var _0x2f1d31=_0x41081f;return _0x26fecf[_0x2f1d31('0x179e')](_0x2f1d31('0x108'))||!_0x26fecf[_0x2f1d31('0xe87')](0x2c6)&&!_0x26fecf[_0x2f1d31('0x179e')](_0x2f1d31('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0x1294'),{'id':0x320,'title':_0x41081f('0x26a7'),'translate':_0x41081f('0x12fb'),'icon':_0x41081f('0x213f'),'weight':0x9,'license':_0x41081f('0xaf2'),'hidden':function _0x4c6965(){var _0x1ea3d6=_0x41081f;return!_0x1e0fea[_0x1ea3d6('0xaf2')]||_0x26fecf[_0x1ea3d6('0x179e')](_0x1ea3d6('0x108'))||!_0x26fecf[_0x1ea3d6('0x12a4')](_0x371d20(this))&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b['saveItem'](_0x41081f('0x16a9'),{'id':0x321,'title':_0x41081f('0x744'),'route':_0x41081f('0x22b1'),'translate':_0x41081f('0xcdf'),'state':'app.openchannel.openchannelQueues','weight':0x1,'channel':_0x41081f('0x1b44'),'hidden':function _0x4488af(){var _0x4d1d33=_0x41081f;return _0x26fecf[_0x4d1d33('0x179e')]('agent')||!_0x26fecf[_0x4d1d33('0xe87')](0x321)&&!_0x26fecf[_0x4d1d33('0x179e')]('admin');}}),_0x3ff93b['saveItem'](_0x41081f('0x169b'),{'id':0x322,'title':'OpenchannelAccounts','route':'openchannelAccount','translate':'OPENCHANNEL.OPENCHANNELACCOUNTS','state':_0x41081f('0x69b'),'weight':0x1,'channel':_0x41081f('0x1b44'),'hidden':function _0x2c4cf1(){var _0x1042db=_0x41081f;return _0x26fecf[_0x1042db('0x179e')]('agent')||!_0x26fecf[_0x1042db('0xe87')](0x322)&&!_0x26fecf[_0x1042db('0x179e')]('admin');}}),_0x3ff93b['saveItem']('apps.openchannel.realtime',{'id':0x32a,'title':_0x41081f('0x2215'),'route':'','translate':_0x41081f('0x16d1'),'state':_0x41081f('0x1c5'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x40ceea(){var _0x27fff8=_0x41081f;return _0x26fecf[_0x27fff8('0x179e')](_0x27fff8('0x108'))||!_0x26fecf[_0x27fff8('0xe87')](0x32a)&&!_0x26fecf[_0x27fff8('0x179e')](_0x27fff8('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.fax',{'id':0x384,'title':_0x41081f('0x2060'),'translate':'FAX.FAX','icon':_0x41081f('0x1582'),'weight':0xa,'license':_0x41081f('0x625'),'hidden':function _0x22b49e(){var _0x32706b=_0x41081f;return!_0x1e0fea[_0x32706b('0x625')]||_0x26fecf[_0x32706b('0x179e')](_0x32706b('0x108'))||!_0x26fecf['hasChildrenPermissions'](_0x371d20(this))&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b['saveItem'](_0x41081f('0xc6f'),{'id':0x385,'title':_0x41081f('0x1473'),'route':_0x41081f('0x3f4'),'translate':_0x41081f('0x1c8c'),'state':_0x41081f('0x26b6'),'weight':0x1,'channel':_0x41081f('0x625'),'hidden':function _0xc26ee(){var _0xb24245=_0x41081f;return _0x26fecf[_0xb24245('0x179e')](_0xb24245('0x108'))||!_0x26fecf[_0xb24245('0xe87')](0x385)&&!_0x26fecf[_0xb24245('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0xfe1'),{'id':0x386,'title':_0x41081f('0x19b0'),'route':_0x41081f('0x688'),'translate':_0x41081f('0x228b'),'state':'app.fax.faxAccounts','weight':0x1,'channel':_0x41081f('0x625'),'hidden':function _0x334b74(){var _0x2af3b8=_0x41081f;return _0x26fecf[_0x2af3b8('0x179e')](_0x2af3b8('0x108'))||!_0x26fecf[_0x2af3b8('0xe87')](0x386)&&!_0x26fecf[_0x2af3b8('0x179e')](_0x2af3b8('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2a5'),{'id':0x38e,'title':'Realtime','route':'','translate':_0x41081f('0x2218'),'state':'app.fax.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x14ec57(){var _0x41a373=_0x41081f;return _0x26fecf[_0x41a373('0x179e')]('agent')||!_0x26fecf[_0x41a373('0xe87')](0x38e)&&!_0x26fecf[_0x41a373('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1f25'),{'id':0x3e8,'title':_0x41081f('0x1829'),'translate':'TOOLS.TOOLS','icon':_0x41081f('0x11ca'),'weight':0xf,'hidden':function _0x1fbeea(){var _0x5877c7=_0x41081f;return _0x26fecf[_0x5877c7('0x179e')](_0x5877c7('0x108'))||!_0x26fecf['hasChildrenPermissions'](_0x371d20(this))&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x3dc'),{'id':0x3e9,'title':_0x41081f('0xaa2'),'route':'cannedAnswer','translate':_0x41081f('0x63b'),'state':_0x41081f('0x227c'),'weight':0x1,'hidden':function _0x51c8dd(){var _0x5d18a2=_0x41081f;return _0x26fecf[_0x5d18a2('0x179e')](_0x5d18a2('0x108'))||!_0x26fecf[_0x5d18a2('0xe87')](0x3e9)&&!_0x26fecf[_0x5d18a2('0x179e')](_0x5d18a2('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1064'),{'id':0x3eb,'title':_0x41081f('0x1398'),'route':_0x41081f('0xe6c'),'translate':_0x41081f('0xb5e'),'state':_0x41081f('0x1e54'),'weight':0x3,'hidden':function _0x45febf(){var _0x5c70df=_0x41081f;return _0x26fecf[_0x5c70df('0x179e')](_0x5c70df('0x108'))||!_0x26fecf['hasPermission'](0x3eb)&&!_0x26fecf[_0x5c70df('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')]('apps.tools.intervals',{'id':0x3ec,'title':_0x41081f('0x1916'),'route':_0x41081f('0x134c'),'translate':_0x41081f('0x1292'),'state':'app.tools.intervals','weight':0x4,'hidden':function _0x20548b(){var _0x2ced89=_0x41081f;return _0x26fecf[_0x2ced89('0x179e')](_0x2ced89('0x108'))||!_0x26fecf[_0x2ced89('0xe87')](0x3ec)&&!_0x26fecf[_0x2ced89('0x179e')](_0x2ced89('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.tools.pauses',{'id':0x3ed,'title':_0x41081f('0x860'),'route':_0x41081f('0x1c98'),'translate':_0x41081f('0x2456'),'state':'app.tools.pauses','weight':0x5,'hidden':function _0x1d99ba(){var _0x4145dc=_0x41081f;return _0x26fecf[_0x4145dc('0x179e')](_0x4145dc('0x108'))||!_0x26fecf['hasPermission'](0x3ed)&&!_0x26fecf[_0x4145dc('0x179e')](_0x4145dc('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x14e0'),{'id':0x3ee,'title':_0x41081f('0x1c7c'),'route':_0x41081f('0x20bc'),'translate':_0x41081f('0xfa8'),'state':'app.tools.schedules','weight':0x6,'hidden':function _0x33db65(){var _0x18a9a6=_0x41081f;return _0x26fecf[_0x18a9a6('0x179e')]('agent')||!_0x26fecf[_0x18a9a6('0xe87')](0x3ee)&&!_0x26fecf[_0x18a9a6('0x179e')](_0x18a9a6('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x86c'),{'id':0x3ef,'title':_0x41081f('0x156'),'route':_0x41081f('0x392'),'translate':_0x41081f('0x277f'),'state':'app.tools.sounds','weight':0x7,'hidden':function _0x338464(){var _0x1eebd9=_0x41081f;return _0x26fecf[_0x1eebd9('0x179e')](_0x1eebd9('0x108'))||!_0x26fecf[_0x1eebd9('0xe87')](0x3ef)&&!_0x26fecf[_0x1eebd9('0x179e')](_0x1eebd9('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x15aa'),{'id':0x3f0,'title':_0x41081f('0x1e7b'),'route':_0x41081f('0x2037'),'translate':_0x41081f('0x77c'),'state':_0x41081f('0x1a4'),'weight':0x8,'hidden':function _0x22cd40(){var _0x169c9a=_0x41081f;return _0x26fecf[_0x169c9a('0x179e')](_0x169c9a('0x108'))||!_0x26fecf[_0x169c9a('0xe87')](0x3f0)&&!_0x26fecf[_0x169c9a('0x179e')](_0x169c9a('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.tools.templates',{'id':0x3f1,'title':_0x41081f('0x1985'),'route':_0x41081f('0x12e2'),'translate':_0x41081f('0x22dd'),'state':_0x41081f('0x1a93'),'weight':0x9,'hidden':function _0x75cc1f(){var _0xc4420=_0x41081f;return _0x26fecf['hasRole'](_0xc4420('0x108'))||!_0x26fecf['hasPermission'](0x3f1)&&!_0x26fecf[_0xc4420('0x179e')](_0xc4420('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1c32'),{'id':0x3f3,'title':_0x41081f('0xb30'),'route':_0x41081f('0x1397'),'translate':'TOOLS.TRUNKS','state':'app.tools.trunks','weight':0xb,'hidden':function _0x28bb46(){var _0x5b7eb0=_0x41081f;return _0x26fecf['hasRole'](_0x5b7eb0('0x108'))||!_0x26fecf[_0x5b7eb0('0xe87')](0x3f3)&&!_0x26fecf[_0x5b7eb0('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2479'),{'id':0x3f4,'title':_0x41081f('0xd64'),'route':_0x41081f('0x19a5'),'translate':_0x41081f('0x225c'),'state':'app.tools.variables','weight':0xc,'hidden':function _0x589863(){var _0x181cc4=_0x41081f;return _0x26fecf[_0x181cc4('0x179e')]('agent')||!_0x26fecf[_0x181cc4('0xe87')](0x3f4)&&!_0x26fecf[_0x181cc4('0x179e')](_0x181cc4('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1e3c'),{'id':0x3ea,'title':'Dispositions','route':_0x41081f('0x2506'),'translate':_0x41081f('0x1ee4'),'state':_0x41081f('0x289f'),'weight':0x2,'hidden':function _0x3677ea(){var _0x2ab233=_0x41081f;return _0x26fecf[_0x2ab233('0x179e')](_0x2ab233('0x108'))||!_0x26fecf[_0x2ab233('0xe87')](0x3ea)&&!_0x26fecf[_0x2ab233('0x179e')](_0x2ab233('0xd14'));}}),_0x3ff93b['saveItem']('apps.tools.triggers',{'id':0x3f2,'title':_0x41081f('0xb8f'),'route':'','translate':_0x41081f('0x2553'),'state':_0x41081f('0x1641'),'weight':0xa,'hidden':function _0x972e55(){var _0x47a5b6=_0x41081f;return _0x26fecf[_0x47a5b6('0x179e')](_0x47a5b6('0x108'))||!_0x26fecf[_0x47a5b6('0xe87')](0x3f2)&&!_0x26fecf[_0x47a5b6('0x179e')](_0x47a5b6('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x3fe'),{'id':0x44c,'title':_0x41081f('0x1ae3'),'translate':_0x41081f('0x2841'),'icon':_0x41081f('0x1166'),'weight':0xd,'license':_0x41081f('0xe74'),'hidden':function _0x31d727(){var _0x330024=_0x41081f;return!_0x1e0fea['voice']||_0x26fecf[_0x330024('0x179e')](_0x330024('0x108'))||!_0x26fecf[_0x330024('0x12a4')](_0x371d20(this))&&!_0x26fecf['hasRole'](_0x330024('0xd14'));}}),_0x3ff93b['saveItem']('apps.callysquare.odbcs',{'id':0x44d,'title':'ODBC','route':_0x41081f('0x731'),'translate':_0x41081f('0x1e08'),'state':_0x41081f('0x1233'),'weight':0x2,'hidden':function _0x10f7bf(){var _0x475ed5=_0x41081f;return _0x26fecf[_0x475ed5('0x179e')](_0x475ed5('0x108'))||!_0x26fecf[_0x475ed5('0xe87')](0x44d)&&!_0x26fecf[_0x475ed5('0x179e')](_0x475ed5('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2cb'),{'id':0x44e,'title':_0x41081f('0x3b6'),'route':_0x41081f('0x83'),'translate':_0x41081f('0x10a4'),'state':_0x41081f('0x7c6'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function _0x40eaf9(){var _0x3b06b5=_0x41081f;return _0x26fecf['hasRole'](_0x3b06b5('0x108'))||!_0x26fecf[_0x3b06b5('0xe87')](0x44e)&&!_0x26fecf[_0x3b06b5('0x179e')](_0x3b06b5('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0x95f'),{'id':0x44f,'title':'Projects','route':'squareProject','translate':_0x41081f('0x1b31'),'state':_0x41081f('0xa1b'),'weight':0x1,'hidden':function _0x4f6dd1(){var _0x4d6686=_0x41081f;return _0x26fecf[_0x4d6686('0x179e')](_0x4d6686('0x108'))||!_0x26fecf['hasPermission'](0x44f)&&!_0x26fecf[_0x4d6686('0x179e')]('admin');}}),_0x3ff93b['saveItem'](_0x41081f('0x1998'),{'id':0x4b0,'title':_0x41081f('0xdfc'),'translate':'ANALYTICS.ANALYTICS','icon':_0x41081f('0x1840'),'weight':0x10,'hidden':function _0x3084e3(){var _0x1783db=_0x41081f;return _0x26fecf[_0x1783db('0x179e')](_0x1783db('0x108'))||!_0x26fecf[_0x1783db('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x1783db('0x179e')]('admin');}}),_0x3ff93b['saveItem']('apps.analytics.metrics',{'id':0x4b1,'title':_0x41081f('0x1999'),'route':_0x41081f('0x145a'),'translate':_0x41081f('0x33'),'state':_0x41081f('0x26a4'),'weight':0x3,'hidden':function _0x136893(){var _0xb8da45=_0x41081f;return _0x26fecf[_0xb8da45('0x179e')](_0xb8da45('0x108'))||!_0x26fecf[_0xb8da45('0xe87')](0x4b1)&&!_0x26fecf[_0xb8da45('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1c11'),{'id':0x4b2,'title':_0x41081f('0x17c7'),'route':_0x41081f('0x25c3'),'translate':_0x41081f('0xb68'),'state':_0x41081f('0x4cb'),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function _0xbcd13(){var _0x1d84f9=_0x41081f;return _0x26fecf[_0x1d84f9('0x179e')](_0x1d84f9('0x108'))||!_0x26fecf[_0x1d84f9('0xe87')](0x4b2)&&!_0x26fecf[_0x1d84f9('0x179e')](_0x1d84f9('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1093'),{'id':0x4b3,'title':'Reports','route':'','translate':'ANALYTICS.REPORTS','state':_0x41081f('0x898'),'weight':0x1,'hidden':function _0x230b1e(){var _0x4632eb=_0x41081f;return _0x26fecf[_0x4632eb('0x179e')](_0x4632eb('0x108'))||!_0x26fecf[_0x4632eb('0xe87')](0x4b3)&&!_0x26fecf[_0x4632eb('0x179e')](_0x4632eb('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x22ba'),{'id':0x514,'title':'Integrations','translate':'INTEGRATIONS.INTEGRATIONS','icon':_0x41081f('0x15eb'),'weight':0x11,'hidden':function _0x392898(){var _0x1dab0e=_0x41081f;return _0x26fecf[_0x1dab0e('0x179e')]('agent')||!_0x26fecf[_0x1dab0e('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x1dab0e('0x179e')](_0x1dab0e('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.integrations.zendeskAccounts',{'id':0x515,'title':'ZendeskAccounts','route':_0x41081f('0x9f0'),'translate':'INTEGRATIONS.ZENDESKACCOUNTS','state':_0x41081f('0x489'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x12cf5b(){var _0x4f4d23=_0x41081f;return _0x26fecf[_0x4f4d23('0x179e')](_0x4f4d23('0x108'))||!_0x26fecf[_0x4f4d23('0xe87')](0x515)&&!_0x26fecf['hasRole'](_0x4f4d23('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.integrations.salesforceAccounts',{'id':0x516,'title':_0x41081f('0xec5'),'route':'intSalesforceAccount','translate':'INTEGRATIONS.SALESFORCEACCOUNTS','state':'app.integrations.salesforceAccounts','weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function _0xf8aafe(){var _0x1eab62=_0x41081f;return _0x26fecf[_0x1eab62('0x179e')](_0x1eab62('0x108'))||!_0x26fecf[_0x1eab62('0xe87')](0x516)&&!_0x26fecf[_0x1eab62('0x179e')]('admin');}}),_0x3ff93b['saveItem'](_0x41081f('0x18b'),{'id':0x517,'title':_0x41081f('0x183c'),'route':_0x41081f('0x13d6'),'translate':_0x41081f('0x19d8'),'state':_0x41081f('0xaca'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function _0x17ab20(){var _0x2f9e6c=_0x41081f;return _0x26fecf[_0x2f9e6c('0x179e')](_0x2f9e6c('0x108'))||!_0x26fecf['hasPermission'](0x517)&&!_0x26fecf[_0x2f9e6c('0x179e')](_0x2f9e6c('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x13fa'),{'id':0x519,'title':_0x41081f('0x19ac'),'route':_0x41081f('0x1429'),'translate':_0x41081f('0x23e2'),'state':'app.integrations.sugarcrmAccounts','weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function _0x52abce(){var _0x45c724=_0x41081f;return _0x26fecf[_0x45c724('0x179e')](_0x45c724('0x108'))||!_0x26fecf['hasPermission'](0x519)&&!_0x26fecf[_0x45c724('0x179e')](_0x45c724('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.integrations.deskAccounts',{'id':0x51a,'title':_0x41081f('0x1d2d'),'route':'intDeskAccount','translate':_0x41081f('0x76b'),'state':_0x41081f('0x12e6'),'weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function _0x38f066(){var _0x3a904d=_0x41081f;return _0x26fecf[_0x3a904d('0x179e')](_0x3a904d('0x108'))||!_0x26fecf['hasPermission'](0x51a)&&!_0x26fecf[_0x3a904d('0x179e')](_0x3a904d('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.integrations.zohoAccounts',{'id':0x51b,'title':_0x41081f('0x5a7'),'route':_0x41081f('0x23dd'),'translate':_0x41081f('0x2259'),'state':_0x41081f('0xb'),'weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function _0x39de2f(){var _0x3071c3=_0x41081f;return _0x26fecf['hasRole']('agent')||!_0x26fecf['hasPermission'](0x51b)&&!_0x26fecf[_0x3071c3('0x179e')](_0x3071c3('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.integrations.vtigerAccounts',{'id':0x51c,'title':_0x41081f('0x1afc'),'route':_0x41081f('0xa80'),'translate':_0x41081f('0xd2e'),'state':'app.integrations.vtigerAccounts','weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function _0x37c67f(){var _0x292298=_0x41081f;return _0x26fecf[_0x292298('0x179e')](_0x292298('0x108'))||!_0x26fecf[_0x292298('0xe87')](0x51c)&&!_0x26fecf[_0x292298('0x179e')](_0x292298('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2027'),{'id':0x51d,'title':_0x41081f('0x142d'),'route':_0x41081f('0x24c2'),'translate':_0x41081f('0x609'),'state':_0x41081f('0xc91'),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function _0x1fff79(){var _0x3c0b2f=_0x41081f;return _0x26fecf[_0x3c0b2f('0x179e')]('agent')||!_0x26fecf[_0x3c0b2f('0xe87')](0x51d)&&!_0x26fecf[_0x3c0b2f('0x179e')]('admin');}}),_0x3ff93b['saveItem']('apps.integrations.servicenowAccounts',{'id':0x51e,'title':'ServicenowAccounts','route':_0x41081f('0x162d'),'translate':'INTEGRATIONS.SERVICENOWACCOUNTS','state':_0x41081f('0x1061'),'weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function _0x2f929e(){var _0x393135=_0x41081f;return _0x26fecf[_0x393135('0x179e')](_0x393135('0x108'))||!_0x26fecf['hasPermission'](0x51e)&&!_0x26fecf['hasRole'](_0x393135('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0x6c1'),{'id':0x518,'title':'FreshsalesAccounts','route':_0x41081f('0x16a5'),'translate':_0x41081f('0xd56'),'state':'app.integrations.freshsalesAccounts','weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function _0x5ee757(){var _0x16e913=_0x41081f;return _0x26fecf[_0x16e913('0x179e')](_0x16e913('0x108'))||!_0x26fecf[_0x16e913('0xe87')](0x518)&&!_0x26fecf[_0x16e913('0x179e')](_0x16e913('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1d5d'),{'id':0x578,'title':_0x41081f('0x1497'),'translate':_0x41081f('0x122b'),'icon':_0x41081f('0xd70'),'weight':0x14,'permissions':{'hidden':!![]},'hidden':function _0x252306(){var _0x19e29d=_0x41081f;return _0x26fecf[_0x19e29d('0x179e')](_0x19e29d('0x108'))||!_0x26fecf[_0x19e29d('0xe87')](0x578)&&!_0x26fecf[_0x19e29d('0x179e')](_0x19e29d('0xd14'))||_0x26fecf['hasRole'](_0x19e29d('0xd14'))&&!_0x26fecf[_0x19e29d('0x1ef8')]()[_0x19e29d('0xdfa')];}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x6eb'),{'id':0x579,'title':_0x41081f('0x1f61'),'route':_0x41081f('0x22f1'),'translate':_0x41081f('0x812'),'state':'app.settings.generals','weight':0x1,'hidden':function _0x106a56(){var _0xd6bb86=_0x41081f;return _0x26fecf[_0xd6bb86('0x179e')](_0xd6bb86('0x108'))||!_0x26fecf[_0xd6bb86('0xe87')](0x578)&&!_0x26fecf[_0xd6bb86('0x179e')](_0xd6bb86('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0xd9b'),{'id':0x57a,'title':'Smtp','route':'mailAccount','translate':_0x41081f('0x24df'),'state':_0x41081f('0x14ee'),'weight':0x1,'hidden':function _0x5a48ab(){var _0x3d130e=_0x41081f;return _0x26fecf[_0x3d130e('0x179e')](_0x3d130e('0x108'))||!_0x26fecf[_0x3d130e('0xe87')](0x578)&&!_0x26fecf[_0x3d130e('0x179e')](_0x3d130e('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0x1d24'),{'id':0x57b,'title':_0x41081f('0x221b'),'route':_0x41081f('0xfb0'),'translate':_0x41081f('0x127f'),'state':'app.settings.networks','weight':0x1,'hidden':function _0xb3fb13(){var _0x4768fd=_0x41081f;return _0x26fecf['hasRole'](_0x4768fd('0x108'))||!_0x26fecf[_0x4768fd('0xe87')](0x578)&&!_0x26fecf['hasRole']('admin');}}),_0x3ff93b['saveItem']('apps.settings.customizations',{'id':0x57f,'title':_0x41081f('0x253f'),'route':_0x41081f('0x22f1'),'translate':'SETTINGS.CUSTOMIZATIONS','state':_0x41081f('0x50c'),'weight':0x1,'hidden':function _0x110538(){var _0x315b77=_0x41081f;return!_0x1e0fea[_0x315b77('0x261d')]||_0x26fecf[_0x315b77('0x179e')](_0x315b77('0x108'))||!_0x26fecf['hasPermission'](0x578)&&!_0x26fecf['hasRole'](_0x315b77('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0x25ff'),{'id':0x580,'title':_0x41081f('0xbe4'),'route':_0x41081f('0x67d'),'translate':_0x41081f('0x1ce5'),'state':_0x41081f('0x1c4f'),'weight':0x1,'hidden':function _0x58d714(){var _0xfbbda6=_0x41081f;return!_0x1e0fea['ai']||_0x26fecf[_0xfbbda6('0x179e')](_0xfbbda6('0x108'))||!_0x26fecf[_0xfbbda6('0xe87')](0x578)&&!_0x26fecf[_0xfbbda6('0x179e')](_0xfbbda6('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')]('apps.settings.updates',{'id':0x57c,'title':'Updates','route':'','translate':_0x41081f('0xca1'),'state':'app.settings.updates','weight':0x1,'hidden':function _0x4278f8(){var _0x306fcf=_0x41081f;return!_0x1e0fea[_0x306fcf('0xa70')]||_0x26fecf[_0x306fcf('0x179e')](_0x306fcf('0x108'))||!_0x26fecf[_0x306fcf('0xe87')](0x578)&&!_0x26fecf[_0x306fcf('0x179e')](_0x306fcf('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x194b'),{'id':0x57d,'title':'License','route':'','translate':_0x41081f('0x4d0'),'state':'app.settings.license','weight':0x1,'hidden':function _0x18da94(){var _0x45ea14=_0x41081f;return _0x26fecf[_0x45ea14('0x179e')](_0x45ea14('0x108'))||!_0x26fecf[_0x45ea14('0xe87')](0x578)&&!_0x26fecf[_0x45ea14('0x179e')](_0x45ea14('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x68'),{'id':0x57e,'title':'System','route':'','translate':_0x41081f('0x3f8'),'state':_0x41081f('0x138f'),'weight':0x1,'hidden':function _0x118fd0(){var _0x951f4d=_0x41081f;return _0x26fecf[_0x951f4d('0x179e')](_0x951f4d('0x108'))||!_0x26fecf[_0x951f4d('0xe87')](0x578)&&!_0x26fecf['hasRole'](_0x951f4d('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1483'),{'id':0x5dc,'title':_0x41081f('0x53f'),'translate':_0x41081f('0x1779'),'icon':_0x41081f('0x909'),'weight':0x5,'license':'dialer','hidden':function _0x2ae5b1(){var _0x42f6f2=_0x41081f;return!_0x1e0fea['dialer']||_0x26fecf[_0x42f6f2('0x179e')](_0x42f6f2('0x108'))||!_0x26fecf[_0x42f6f2('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x42f6f2('0x179e')]('admin');}}),_0x3ff93b['saveItem'](_0x41081f('0xa11'),{'id':0x5dd,'title':'QueueCampaigns','route':_0x41081f('0x25d5'),'translate':'MOTIONDIALER.QUEUECAMPAIGNS','state':'app.motiondialer.queueCampaigns','weight':0x1,'channel':'bull','hidden':function _0x48a3c3(){var _0x1a6f60=_0x41081f;return _0x26fecf[_0x1a6f60('0x179e')](_0x1a6f60('0x108'))||!_0x26fecf['hasPermission'](0x5dd)&&!_0x26fecf[_0x1a6f60('0x179e')](_0x1a6f60('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1082'),{'id':0x5de,'title':_0x41081f('0x1963'),'route':'campaign','translate':'MOTIONDIALER.IVRCAMPAIGNS','state':_0x41081f('0x4c1'),'weight':0x1,'hidden':function _0x1dbaad(){var _0x44fe7f=_0x41081f;return _0x26fecf[_0x44fe7f('0x179e')](_0x44fe7f('0x108'))||!_0x26fecf[_0x44fe7f('0xe87')](0x5de)&&!_0x26fecf[_0x44fe7f('0x179e')](_0x44fe7f('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x146'),{'id':0x5e6,'title':'Realtime','route':'','translate':'MOTIONDIALER.REALTIME','state':'app.motiondialer.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x27de20(){var _0x49628e=_0x41081f;return _0x26fecf[_0x49628e('0x179e')](_0x49628e('0x108'))||!_0x26fecf[_0x49628e('0xe87')](0x5e6)&&!_0x26fecf[_0x49628e('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1a73'),{'id':0x640,'title':'Help','translate':'HELP.HELP','icon':_0x41081f('0x27e'),'weight':0x15,'permissions':{'association':![]},'hidden':function _0x56f97d(){var _0x4b8653=_0x41081f;return _0x26fecf[_0x4b8653('0x179e')]('agent')||!_0x26fecf[_0x4b8653('0xe87')](0x640)&&!_0x26fecf[_0x4b8653('0x179e')](_0x4b8653('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0x2365'),{'id':0x641,'title':_0x41081f('0x1fee'),'route':'','translate':'HELP.ABOUT','state':'app.help.about','weight':0x1,'hidden':function _0x3be52d(){var _0x5125ed=_0x41081f;return _0x26fecf[_0x5125ed('0x179e')]('agent')||!_0x26fecf['hasPermission'](0x640)&&!_0x26fecf[_0x5125ed('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2154'),{'id':0x6a4,'title':'jscripty','translate':_0x41081f('0x16c1'),'icon':_0x41081f('0x1a7c'),'weight':0xe,'license':_0x41081f('0x1c47'),'hidden':function _0x45a5bc(){var _0x3edd6c=_0x41081f;return!_0x1e0fea[_0x3edd6c('0x1c47')]||_0x26fecf[_0x3edd6c('0x179e')](_0x3edd6c('0x108'))||!_0x26fecf[_0x3edd6c('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x3edd6c('0x179e')](_0x3edd6c('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x9da'),{'id':0x6a5,'title':_0x41081f('0x9af'),'route':_0x41081f('0x6c7'),'translate':_0x41081f('0x1f69'),'state':_0x41081f('0x574'),'weight':0x1,'hidden':function _0x396959(){var _0x166fad=_0x41081f;return _0x26fecf[_0x166fad('0x179e')](_0x166fad('0x108'))||!_0x26fecf['hasPermission'](0x6a5)&&!_0x26fecf[_0x166fad('0x179e')](_0x166fad('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0xce5'),{'id':0x708,'title':_0x41081f('0x92a'),'translate':_0x41081f('0x163f'),'icon':_0x41081f('0x171a'),'weight':0x12,'hidden':function _0x2bf7c5(){var _0x5cb338=_0x41081f;return _0x26fecf['hasRole'](_0x5cb338('0x108'))||!_0x26fecf['hasChildrenPermissions'](_0x371d20(this))&&!_0x26fecf[_0x5cb338('0x179e')](_0x5cb338('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x16fa'),{'id':0x709,'title':_0x41081f('0x1334'),'route':_0x41081f('0x17f2'),'translate':_0x41081f('0x23b5'),'state':_0x41081f('0x2700'),'weight':0x1,'hidden':function _0x599f7e(){var _0x283b13=_0x41081f;return _0x26fecf[_0x283b13('0x179e')]('agent')||!_0x26fecf[_0x283b13('0xe87')](0x709)&&!_0x26fecf[_0x283b13('0x179e')](_0x283b13('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x790'),{'id':0x7d0,'title':_0x41081f('0x11bf'),'translate':_0x41081f('0x1801'),'icon':_0x41081f('0x1bd4'),'weight':0xc,'license':_0x41081f('0x783'),'hidden':function _0x2dfc84(){var _0x5e426c=_0x41081f;return!_0x1e0fea[_0x5e426c('0x783')]||_0x26fecf[_0x5e426c('0x179e')](_0x5e426c('0x108'))||!_0x26fecf['hasChildrenPermissions'](_0x371d20(this))&&!_0x26fecf['hasRole'](_0x5e426c('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0xa03'),{'id':0x7d1,'title':'ScreenRecordings','route':_0x41081f('0x166f'),'translate':_0x41081f('0x2ce'),'state':_0x41081f('0x1050'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x29cf65(){var _0x4a9a76=_0x41081f;return _0x26fecf['hasRole'](_0x4a9a76('0x108'))||!_0x26fecf[_0x4a9a76('0xe87')](0x7d1)&&!_0x26fecf[_0x4a9a76('0x179e')](_0x4a9a76('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x762'),{'id':0x834,'title':_0x41081f('0x105a'),'translate':'WHATSAPP.WHATSAPP','icon':_0x41081f('0x12b6'),'weight':0xb,'license':_0x41081f('0x4b7'),'hidden':function _0x3ed8be(){var _0x4e6144=_0x41081f;return!_0x1e0fea[_0x4e6144('0x4b7')]||_0x26fecf[_0x4e6144('0x179e')](_0x4e6144('0x108'))||!_0x26fecf[_0x4e6144('0x12a4')](_0x371d20(this))&&!_0x26fecf[_0x4e6144('0x179e')](_0x4e6144('0xd14'));}}),_0x3ff93b['saveItem'](_0x41081f('0x27d5'),{'id':0x835,'title':_0x41081f('0x587'),'route':'whatsappQueue','translate':_0x41081f('0x1852'),'state':'app.whatsapp.whatsappQueues','weight':0x1,'channel':_0x41081f('0x4b7'),'hidden':function _0x351aa1(){var _0x288c1c=_0x41081f;return _0x26fecf[_0x288c1c('0x179e')]('agent')||!_0x26fecf[_0x288c1c('0xe87')](0x835)&&!_0x26fecf[_0x288c1c('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x1677'),{'id':0x836,'title':_0x41081f('0x1d20'),'route':_0x41081f('0x223'),'translate':_0x41081f('0x9ce'),'state':_0x41081f('0x2892'),'weight':0x1,'channel':'whatsapp','hidden':function _0x11c356(){var _0x24468f=_0x41081f;return _0x26fecf[_0x24468f('0x179e')](_0x24468f('0x108'))||!_0x26fecf[_0x24468f('0xe87')](0x836)&&!_0x26fecf[_0x24468f('0x179e')](_0x24468f('0xd14'));}}),_0x3ff93b[_0x41081f('0x1384')](_0x41081f('0x2046'),{'id':0x83e,'title':'Realtime','route':'','translate':'WHATSAPP.REALTIME','state':_0x41081f('0x1bbc'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x30cd27(){var _0x6b8cd2=_0x41081f;return _0x26fecf['hasRole']('agent')||!_0x26fecf[_0x6b8cd2('0xe87')](0x83e)&&!_0x26fecf[_0x6b8cd2('0x179e')]('admin');}}),_0x3ff93b[_0x41081f('0x9f6')](),_0x45596b[_0x41081f('0x1384')]('apps',{'title':_0x41081f('0x1aaf'),'group':!![],'weight':0x1}),_0x45596b[_0x41081f('0x1384')](_0x41081f('0x409'),{'id':0x64,'title':_0x41081f('0x1200'),'translate':'DASHBOARDS.HOME','icon':_0x41081f('0x14e8'),'weight':0x1}),_0x45596b['saveItem'](_0x41081f('0x837'),{'id':0x65,'title':_0x41081f('0x189f'),'translate':'DASHBOARDS.DASHBOARD','state':_0x41081f('0xe6c'),'view':_0x41081f('0xe6c'),'icon':_0x41081f('0x9b0'),'iconClass':_0x41081f('0x19a1'),'weight':0x1,'hidden':function _0x268539(){var _0x332cac=_0x41081f;return!_0x26fecf[_0x332cac('0xe87')](0x65);}}),_0x45596b[_0x41081f('0x1384')](_0x41081f('0x1486'),{'id':0x66,'title':_0x41081f('0xd89'),'translate':'DASHBOARDS.CONTACTS','state':_0x41081f('0x4b1'),'view':'contacts','icon':_0x41081f('0x133c'),'iconClass':_0x41081f('0x19e8'),'weight':0x2,'hidden':function _0x557aab(){var _0x54bbcd=_0x41081f;return!_0x1e0fea['cm']||!_0x26fecf[_0x54bbcd('0xe87')](0x66);}}),_0x45596b['saveItem']('apps.home.mycontacts',{'id':0x67,'title':_0x41081f('0xd89'),'translate':_0x41081f('0x225f'),'state':_0x41081f('0x189d'),'view':'mycontacts','icon':_0x41081f('0x53a'),'iconClass':_0x41081f('0x19e8'),'weight':0x3,'hidden':function _0x1083b0(){var _0x2072be=_0x41081f;return!_0x1e0fea['cm']||!_0x26fecf[_0x2072be('0xe87')](0x67);}}),_0x45596b['saveItem'](_0x41081f('0xd43'),{'id':0x71,'title':_0x41081f('0x1c0'),'translate':'DASHBOARDS.SCHEDULED_CALLS','state':_0x41081f('0x1226'),'view':_0x41081f('0x1226'),'icon':_0x41081f('0xde0'),'iconClass':_0x41081f('0x2502'),'weight':0x3,'hidden':function _0x2669e6(){var _0x2aea38=_0x41081f;return!_0x1e0fea[_0x2aea38('0x5d')]||!_0x26fecf[_0x2aea38('0xe87')](0x71);}}),_0x45596b[_0x41081f('0x1384')]('apps.home.voice',{'id':0x6e,'title':_0x41081f('0x19ff'),'translate':_0x41081f('0x1e62'),'state':_0x41081f('0xe74'),'view':_0x41081f('0xe74'),'icon':_0x41081f('0x816'),'iconClass':_0x41081f('0xa6e'),'weight':0x4,'hidden':function _0x2be301(){var _0x5944ba=_0x41081f;return!_0x1e0fea[_0x5944ba('0xe74')]||!_0x26fecf['hasPermission'](0x6e);}}),_0x45596b['saveItem'](_0x41081f('0x15f7'),{'id':0x6f,'title':_0x41081f('0x211f'),'translate':_0x41081f('0x233e'),'state':_0x41081f('0x3ac'),'view':_0x41081f('0x3ac'),'icon':_0x41081f('0x17a8'),'iconClass':'blue-fg','weight':0x5,'hidden':function _0x45e9aa(){var _0x547ba8=_0x41081f;return!_0x1e0fea[_0x547ba8('0xe74')]||!_0x26fecf[_0x547ba8('0xe87')](0x6f);}}),_0x45596b['saveItem'](_0x41081f('0xa77'),{'id':0x68,'title':_0x41081f('0xde'),'translate':_0x41081f('0x1c63'),'state':_0x41081f('0x11b3'),'view':'recordings','icon':_0x41081f('0x1c04'),'iconClass':_0x41081f('0x9e5'),'weight':0x6,'hidden':function _0x113024(){var _0x4f044e=_0x41081f;return!_0x1e0fea[_0x4f044e('0xe74')]||!_0x26fecf[_0x4f044e('0xe87')](0x68);}}),_0x45596b[_0x41081f('0x1384')]('apps.home.chat',{'id':0x69,'title':'Chat','translate':_0x41081f('0x899'),'state':_0x41081f('0x17cc'),'view':'chat','icon':_0x41081f('0x212'),'iconClass':_0x41081f('0x345'),'weight':0x7,'hidden':function _0x2ea3b3(){var _0x272552=_0x41081f;return!_0x1e0fea[_0x272552('0x17cc')]||!_0x26fecf[_0x272552('0xe87')](0x69);}}),_0x45596b[_0x41081f('0x1384')](_0x41081f('0x64d'),{'id':0x6a,'title':_0x41081f('0xc4b'),'translate':'DASHBOARDS.MAIL','state':_0x41081f('0x26bf'),'view':_0x41081f('0x26bf'),'icon':_0x41081f('0x8e3'),'iconClass':'teal-fg','weight':0x8,'hidden':function _0x441624(){var _0x464669=_0x41081f;return!_0x1e0fea[_0x464669('0x26bf')]||!_0x26fecf['hasPermission'](0x6a);}}),_0x45596b[_0x41081f('0x1384')](_0x41081f('0xc94'),{'id':0x6b,'title':'Sms','translate':_0x41081f('0x9cd'),'state':_0x41081f('0x2801'),'view':_0x41081f('0x2801'),'icon':_0x41081f('0x470'),'iconClass':_0x41081f('0x208f'),'weight':0x9,'hidden':function _0x25a968(){var _0x224fb4=_0x41081f;return!_0x1e0fea['messaging']||!_0x26fecf[_0x224fb4('0xe87')](0x6b);}}),_0x45596b[_0x41081f('0x1384')]('apps.home.openchannel',{'id':0x6c,'title':'Openchannel','translate':'DASHBOARDS.OPENCHANNEL','state':_0x41081f('0xaf2'),'view':_0x41081f('0xaf2'),'icon':'icon-google-earth','iconClass':_0x41081f('0xdb9'),'weight':0xa,'hidden':function _0xb621e(){var _0x133516=_0x41081f;return!_0x1e0fea[_0x133516('0xaf2')]||!_0x26fecf[_0x133516('0xe87')](0x6c);}}),_0x45596b[_0x41081f('0x1384')](_0x41081f('0xf06'),{'id':0x6d,'title':_0x41081f('0x2060'),'translate':_0x41081f('0x1a12'),'state':_0x41081f('0x625'),'view':_0x41081f('0x625'),'icon':_0x41081f('0x1582'),'iconClass':_0x41081f('0x59'),'weight':0xb,'hidden':function _0x9edd42(){var _0x3f7c4c=_0x41081f;return!_0x1e0fea['fax']||!_0x26fecf[_0x3f7c4c('0xe87')](0x6d);}}),_0x45596b[_0x41081f('0x1384')](_0x41081f('0xf0b'),{'id':0x72,'title':_0x41081f('0x105a'),'translate':'DASHBOARDS.WHATSAPP','state':_0x41081f('0x4b7'),'view':_0x41081f('0x4b7'),'icon':_0x41081f('0x12b6'),'iconClass':'lime-A700-fg','weight':0xc,'hidden':function _0x36ff5e(){var _0x1ab50a=_0x41081f;return!_0x1e0fea[_0x1ab50a('0x4b7')]||!_0x26fecf[_0x1ab50a('0xe87')](0x72);}}),_0x3b5edf['$on'](_0x41081f('0x13d3'),function(_0xe02b64){var _0x2c4fd0=_0x41081f;_0xe02b64[_0x2c4fd0('0x14e4')][_0x2c4fd0('0x1000')]===_0x3b5edf['$id']&&_0x1b76e9['$broadcast'](_0x2c4fd0('0x2132'));});}const _0x3a3794=_0x925dee;;var _0x46df86=[_0xb635d2('0x186b'),_0xb635d2('0x24a5'),_0xb635d2('0x3d7'),_0xb635d2('0x2380'),_0xb635d2('0x12ba'),_0xb635d2('0x13a2'),_0xb635d2('0x6ed'),_0xb635d2('0x1df3'),_0xb635d2('0x16e8'),'app.staff','app.contactmanager',_0xb635d2('0x2138'),_0xb635d2('0x1651'),_0xb635d2('0x104b'),'app.sms',_0xb635d2('0xe52'),_0xb635d2('0x5f6'),_0xb635d2('0x2268'),'app.callysquare','app.analytics',_0xb635d2('0x1038'),'app.settings',_0xb635d2('0x789'),'app.help','app.jscripty','app.marketplace',_0xb635d2('0x2184'),'app.video',_0xb635d2('0x1db8'),_0xb635d2('0x2322'),_0xb635d2('0x23a6'),_0xb635d2('0x325'),_0xb635d2('0x5f3')];angular[_0xb635d2('0x153f')](_0xb635d2('0x138e'),_0x46df86)[_0xb635d2('0x1324')](_0xb635d2('0xffc'),_0x2dca94)['config'](_0x1a225e)[_0xb635d2('0x1a79')](_0xb635d2('0x1b5c'),_0x52c9f5)['filter'](_0xb635d2('0xd5'),_0x141638)[_0xb635d2('0x2891')](_0xb635d2('0x17a9'),_0x1991ce)[_0xb635d2('0x1324')](_0xb635d2('0x9ab'),_0x25fdde)[_0xb635d2('0x1324')](_0xb635d2('0x1e21'),_0xb7ba10)[_0xb635d2('0x1324')](_0xb635d2('0x1abe'),_0x2949e0)[_0xb635d2('0x1990')](_0xb8a1f5)[_0xb635d2('0x1813')](_0x576602)[_0xb635d2('0x1324')](_0xb635d2('0x46d'),_0x50043d)[_0xb635d2('0x1a79')]('MainController',_0x3a3794);},0x1a2c:(_0x26ee6d,_0x351706,_0x3e2bfd)=>{var _0x4e29f6=_0x5d9f5e,_0xc326df={'./af':0xae2,'./af.js':0xae2,'./ar':0x363,'./ar-dz':0x1022,'./ar-dz.js':0x1022,'./ar-kw':0x17f7,'./ar-kw.js':0x17f7,'./ar-ly':0x1928,'./ar-ly.js':0x1928,'./ar-ma':0x1e16,'./ar-ma.js':0x1e16,'./ar-sa':0x1798,'./ar-sa.js':0x1798,'./ar-tn':0x1bbc,'./ar-tn.js':0x1bbc,'./ar.js':0x363,'./az':0x43b,'./az.js':0x43b,'./be':0x2650,'./be.js':0x2650,'./bg':0x2092,'./bg.js':0x2092,'./bm':0x1d0e,'./bm.js':0x1d0e,'./bn':0x22c9,'./bn-bd':0x1851,'./bn-bd.js':0x1851,'./bn.js':0x22c9,'./bo':0x618,'./bo.js':0x618,'./br':0x4fe,'./br.js':0x4fe,'./bs':0x26e,'./bs.js':0x26e,'./ca':0x9a4,'./ca.js':0x9a4,'./cs':0x16be,'./cs.js':0x16be,'./cv':0x36d,'./cv.js':0x36d,'./cy':0x1ccd,'./cy.js':0x1ccd,'./da':0x12ac,'./da.js':0x12ac,'./de':0x260c,'./de-at':0xd9,'./de-at.js':0xd9,'./de-ch':0x37e,'./de-ch.js':0x37e,'./de.js':0x260c,'./dv':0x14b4,'./dv.js':0x14b4,'./el':0x345,'./el.js':0x345,'./en-au':0x209c,'./en-au.js':0x209c,'./en-ca':0x1ef5,'./en-ca.js':0x1ef5,'./en-gb':0x8c3,'./en-gb.js':0x8c3,'./en-ie':0x1924,'./en-ie.js':0x1924,'./en-il':0x1c27,'./en-il.js':0x1c27,'./en-in':0x104f,'./en-in.js':0x104f,'./en-nz':0x18af,'./en-nz.js':0x18af,'./en-sg':0x67e,'./en-sg.js':0x67e,'./eo':0xb63,'./eo.js':0xb63,'./es':0x1617,'./es-do':0x1483,'./es-do.js':0x1483,'./es-mx':0x17e0,'./es-mx.js':0x17e0,'./es-us':0x47a,'./es-us.js':0x47a,'./es.js':0x1617,'./et':0x15e3,'./et.js':0x15e3,'./eu':0x1e53,'./eu.js':0x1e53,'./fa':0x1b2f,'./fa.js':0x1b2f,'./fi':0x769,'./fi.js':0x769,'./fil':0x9f5,'./fil.js':0x9f5,'./fo':0x1256,'./fo.js':0x1256,'./fr':0x1176,'./fr-ca':0xbe9,'./fr-ca.js':0xbe9,'./fr-ch':0x91a,'./fr-ch.js':0x91a,'./fr.js':0x1176,'./fy':0x13b4,'./fy.js':0x13b4,'./ga':0x244f,'./ga.js':0x244f,'./gd':0x835,'./gd.js':0x835,'./gl':0x225a,'./gl.js':0x225a,'./gom-deva':0x1ecc,'./gom-deva.js':0x1ecc,'./gom-latn':0xc60,'./gom-latn.js':0xc60,'./gu':0x14e5,'./gu.js':0x14e5,'./he':0x106e,'./he.js':0x106e,'./hi':0x5e,'./hi.js':0x5e,'./hr':0x13c,'./hr.js':0x13c,'./hu':0x85a,'./hu.js':0x85a,'./hy-am':0x58f,'./hy-am.js':0x58f,'./id':0x2402,'./id.js':0x2402,'./is':0x87,'./is.js':0x87,'./it':0x272,'./it-ch':0x96,'./it-ch.js':0x96,'./it.js':0x272,'./ja':0x23df,'./ja.js':0x23df,'./jv':0x10be,'./jv.js':0x10be,'./ka':0x839,'./ka.js':0x839,'./kk':0x1e5c,'./kk.js':0x1e5c,'./km':0x2236,'./km.js':0x2236,'./kn':0x2442,'./kn.js':0x2442,'./ko':0xe92,'./ko.js':0xe92,'./ku':0x580,'./ku.js':0x580,'./ky':0xcdb,'./ky.js':0xcdb,'./lb':0x1ab9,'./lb.js':0x1ab9,'./lo':0x155a,'./lo.js':0x155a,'./lt':0x1b62,'./lt.js':0x1b62,'./lv':0x1dab,'./lv.js':0x1dab,'./me':0x2685,'./me.js':0x2685,'./mi':0x1575,'./mi.js':0x1575,'./mk':0x174e,'./mk.js':0x174e,'./ml':0x1cad,'./ml.js':0x1cad,'./mn':0x13fb,'./mn.js':0x13fb,'./mr':0x172,'./mr.js':0x172,'./ms':0x2677,'./ms-my':0x4d5,'./ms-my.js':0x4d5,'./ms.js':0x2677,'./mt':0x84e,'./mt.js':0x84e,'./my':0x1815,'./my.js':0x1815,'./nb':0x133c,'./nb.js':0x133c,'./ne':0x1a58,'./ne.js':0x1a58,'./nl':0xf3d,'./nl-be':0x2656,'./nl-be.js':0x2656,'./nl.js':0xf3d,'./nn':0xf25,'./nn.js':0xf25,'./oc-lnc':0x857,'./oc-lnc.js':0x857,'./pa-in':0x16e2,'./pa-in.js':0x16e2,'./pl':0x118f,'./pl.js':0x118f,'./pt':0x2530,'./pt-br':0x1f23,'./pt-br.js':0x1f23,'./pt.js':0x2530,'./ro':0x193b,'./ro.js':0x193b,'./ru':0x701,'./ru.js':0x701,'./sd':0x3b6,'./sd.js':0x3b6,'./se':0x1ea,'./se.js':0x1ea,'./si':0x7c,'./si.js':0x7c,'./sk':0x1099,'./sk.js':0x1099,'./sl':0x1379,'./sl.js':0x1379,'./sq':0x450,'./sq.js':0x450,'./sr':0x23ab,'./sr-cyrl':0x26bb,'./sr-cyrl.js':0x26bb,'./sr.js':0x23ab,'./ss':0x1705,'./ss.js':0x1705,'./sv':0x2238,'./sv.js':0x2238,'./sw':0x494,'./sw.js':0x494,'./ta':0x1ca5,'./ta.js':0x1ca5,'./te':0xc26,'./te.js':0xc26,'./tet':0x82f,'./tet.js':0x82f,'./tg':0x1c99,'./tg.js':0x1c99,'./th':0x2351,'./th.js':0x2351,'./tk':0x232d,'./tk.js':0x232d,'./tl-ph':0x1688,'./tl-ph.js':0x1688,'./tlh':0x24e4,'./tlh.js':0x24e4,'./tr':0x95d,'./tr.js':0x95d,'./tzl':0x203e,'./tzl.js':0x203e,'./tzm':0x452,'./tzm-latn':0x2bb,'./tzm-latn.js':0x2bb,'./tzm.js':0x452,'./ug-cn':0x2448,'./ug-cn.js':0x2448,'./uk':0x1e0b,'./uk.js':0x1e0b,'./ur':0xed3,'./ur.js':0xed3,'./uz':0x1a87,'./uz-latn':0x24c,'./uz-latn.js':0x24c,'./uz.js':0x1a87,'./vi':0x1622,'./vi.js':0x1622,'./x-pseudo':0x111a,'./x-pseudo.js':0x111a,'./yo':0x16ad,'./yo.js':0x16ad,'./zh-cn':0xeff,'./zh-cn.js':0xeff,'./zh-hk':0x165e,'./zh-hk.js':0x165e,'./zh-mo':0x264f,'./zh-mo.js':0x264f,'./zh-tw':0x1038,'./zh-tw.js':0x1038};function _0x4b8355(_0x7143db){var _0x27d8d1=_0x5df25d(_0x7143db);return _0x3e2bfd(_0x27d8d1);}function _0x5df25d(_0x432e58){var _0x9747e1=a0_0x5325;if(!_0x3e2bfd['o'](_0xc326df,_0x432e58)){var _0x1e7f4b=new Error('Cannot\x20find\x20module\x20\x27'+_0x432e58+'\x27');_0x1e7f4b[_0x9747e1('0x393')]='MODULE_NOT_FOUND';throw _0x1e7f4b;}return _0xc326df[_0x432e58];}_0x4b8355[_0x4e29f6('0x1234')]=function _0x30179f(){var _0x282ecd=_0x4e29f6;return Object[_0x282ecd('0x1234')](_0xc326df);},_0x4b8355[_0x4e29f6('0xcd6')]=_0x5df25d,_0x26ee6d['exports']=_0x4b8355,_0x4b8355['id']=0x1a2c;},0x1666:_0xd3115d=>{'use strict';_0xd3115d['exports']=angular;},0x1a2:()=>{}},0x0,[[0x1efd,0x29a,0x12]]]); \ No newline at end of file diff --git a/public/app-726fd36768994ef7fd4e.js.map b/public/app-1731a3bc1dfe79c6084e.js.map similarity index 99% rename from public/app-726fd36768994ef7fd4e.js.map rename to public/app-1731a3bc1dfe79c6084e.js.map index 0ea0c7f..5519a95 100644 --- a/public/app-726fd36768994ef7fd4e.js.map +++ b/public/app-1731a3bc1dfe79c6084e.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://motion-frontend/./src/js/modules/auth/auth.config.js","webpack://motion-frontend/./src/js/modules/auth/auth.run.js","webpack://motion-frontend/./src/js/modules/auth/services/hotdesk/dialog.html","webpack://motion-frontend/./src/js/modules/auth/services/auth.service.js","webpack://motion-frontend/./src/js/modules/auth/services/hotdesk/dialog.controller.js","webpack://motion-frontend/./src/js/modules/auth/services/interceptor.service.js","webpack://motion-frontend/./src/js/modules/auth/services/util.service.js","webpack://motion-frontend/./src/js/modules/auth/auth.module.js","webpack://motion-frontend/./src/js/modules/core/config/motion-config.provider.js","webpack://motion-frontend/./src/js/modules/core/core.config.js","webpack://motion-frontend/./src/js/modules/core/core.run.js","webpack://motion-frontend/./src/js/modules/core/dialogs/advanced-search/dialog.js","webpack://motion-frontend/./src/js/modules/core/directives/focus.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/highlight.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-card/ms-card.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-chip-color/ms-chip-color.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/prefix/dialog.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-datepicker-fix/ms-datepicker-fix.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-dialog-recording/ms-dialog-recording.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-emoji-area/ms-emoji-area.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-font-family/ms-font-family.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-font-family/ms-font-family.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-form-wizard/ms-form-wizard.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-info-bar/ms-info-bar.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-info-bar/ms-info-bar.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-masonry/ms-masonry.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-nav/ms-nav.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-navigation/templates/horizontal.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-navigation/templates/vertical.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-navigation/ms-navigation.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/record/dialog.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/settings/settings.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/ms-phonebar.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/ms-phonebar.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/prefix/dialog.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/record/dialog.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/referAttended/dialog.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/settings/settings.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-random-class/ms-random-class.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-recording/ms-recording.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-responsive-table/ms-responsive-table.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-scroll/ms-scroll.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-search-bar/ms-search-bar.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-search-bar/ms-search-bar.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-sidenav-helper/ms-sidenav-helper.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-splash-screen/ms-splash-screen.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-stepper/templates/vertical/step/vertical-step.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-stepper/ms-stepper.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-timeline/ms-timeline.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-timer/ms-timer.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-timezone/ms-timezone.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-timezone/ms-timezone.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine-counter/ms-widget-engine.counter.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine-multibar-chart/ms-widget-engine.multibar-chart.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine-pie-chart/ms-widget-engine.pie-chart.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine-web-report/ms-widget-engine.web-report.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget/ms-widget.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/index.js","webpack://motion-frontend/./src/js/modules/core/factories/quickFilterManager.factory.js","webpack://motion-frontend/./src/js/modules/core/filters/altDate.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/basic.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/capitalize.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/filterByIds.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/filterByPropIds.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/snakecase.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/startcase.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/tag.filter.js","webpack://motion-frontend/./src/js/modules/core/providers/motNotification.js","webpack://motion-frontend/./src/js/modules/core/services/api-resolver.service.js","webpack://motion-frontend/./src/js/modules/core/services/loadingIndicator.service.js","webpack://motion-frontend/./src/js/modules/core/services/ms-api.provider.js","webpack://motion-frontend/./src/js/modules/core/services/ms-utils.service.js","webpack://motion-frontend/./src/js/modules/core/theme-options/theme-options.html","webpack://motion-frontend/./src/js/modules/core/theme-options/theme-options.directive.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-generator.service.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-palettes.constant.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-themes.constant.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-theming.config.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-theming.service.js","webpack://motion-frontend/./src/js/modules/core/core.module.js","webpack://motion-frontend/./src/js/modules/navigation/navigation.controller.js","webpack://motion-frontend/./src/js/modules/navigation/navigation.module.js","webpack://motion-frontend/./src/js/modules/toolbar/changepassword/changepassword.controller.js","webpack://motion-frontend/./src/js/modules/toolbar/preview/dialog.controller.js","webpack://motion-frontend/./src/js/modules/toolbar/preview/dialog.html","webpack://motion-frontend/./src/js/modules/toolbar/changepassword/changepassword.html","webpack://motion-frontend/./src/js/modules/toolbar/toolbar.controller.js","webpack://motion-frontend/./src/js/modules/toolbar/toolbar.module.js","webpack://motion-frontend/./src/js/modules/quick-panel/quick-panel.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/chat/chat-tab.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/create/dialog.html","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/info/dialog.html","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/group-tab.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/info/dialog.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/quick-panel.module.js","webpack://motion-frontend/./src/js/modules/header/header.controller.js","webpack://motion-frontend/./src/js/modules/header/header.module.js","webpack://motion-frontend/./src/js/modules/footer/footer.controller.js","webpack://motion-frontend/./src/js/modules/footer/footer.module.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/user.general.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/user.general.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/voice/user.general.voice.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/user.general.module.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/agent.general.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/agent.general.provider.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/bot/agent.general.bot.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/agent.general.contact.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/reschedule/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/agent.general.abandoned.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/bull/agent.general.abandoned.bull.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/voice/agent.general.abandoned.voice.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/agent.general.home.controller.js","webpack://motion-frontend/./src/js/modules/core/dialogs/advanced-search/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/chat/agent.general.chat.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/contacts/agent.general.contacts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/agent.general.dashboard.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/bull/agent.general.dashboard.bull.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/chat/agent.general.dashboard.chat.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/fax/agent.general.dashboard.fax.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/mail/agent.general.dashboard.mail.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/openchannel/agent.general.dashboard.openchannel.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/sms/agent.general.dashboard.sms.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/voice/agent.general.dashboard.voice.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/whatsapp/agent.general.dashboard.whatsapp.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/fax/agent.general.fax.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/mail/agent.general.mail.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/mycontacts/agent.general.mycontacts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/openchannel/agent.general.openchannel.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/plugins/agent.general.plugins.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/recordings/agent.general.recordings.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/scheduled/agent.general.scheduled.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/sms/agent.general.sms.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/voice/agent.general.voice.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/whatsapp/agent.general.whatsapp.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/iframe/agent.general.iframe.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/jscripty/agent.general.jscripty.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/notification/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/popup/agent.general.popup.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/general.module.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/custom/custom.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/custom/custom.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/custom/custom.module.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/dashboards.module.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/agents.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/change_avatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/permissions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/queueadd/queueadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/queueadd/queueadd.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/teams.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/telephones.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/modules.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/userProfiles.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/change_avatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/users.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/users.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/agents.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/telephones.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/teams.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/staff.module.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/import/import.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/contacts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/edit/hoppers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/import/import.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/contacts.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/contacts.module.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/companies.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/customFields.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/voiceDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/lists.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/lists.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/companies.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/contactmanager.module.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/abandonedcalls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/outbound_calls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queue_calls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queue_params/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/telephones/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/trunks/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/telephones/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/trunks/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queue_params/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/outbound_calls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/chanSpies/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/chanSpies/chanSpies.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/chanSpies/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/contexts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/contexts/contexts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/contexts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/internalroutes.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/musiconholds.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/edit/messages.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/voicemails.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/edit/sentimentAnalysis.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/contexts/contexts.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/voicemails.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/voice.module.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/chatQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/agentAvatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatFormOffline.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatFormOnline.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/customerAvatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/logo.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/script.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/systemAvatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/chat.module.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/accounts/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/mailDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/mailQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/mail.module.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/smsDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/smsQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/sms.module.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/amazonlex/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/dialogflow/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/openchannel.module.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/trunks/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/accounts/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/accounts/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/trunks/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/faxDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/faxQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/fax.module.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/dispositions.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/dispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/dispositions.module.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/triggers.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/actions/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/allconditions/allconditions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/anyconditions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/triggers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/triggers.module.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/customDashboards.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/intervals.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/pauses/pauses.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/schedules.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/sounds.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/tags/tags.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/templates/templates.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/trunks.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/variables/variables.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/customDashboards.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/intervals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/intervals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/pauses/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/pauses/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/pauses/pauses.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/partialViews/reports/treeReports.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/schedules.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/upload/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/sounds.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/upload/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/tags/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/tags/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/tags/tags.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/templates/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/templates/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/templates/templates.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/trunks.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/variables/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/variables/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/variables/variables.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/tools.module.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/projects.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.directives.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.services.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/import/import.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/info/info.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/open/open.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/permissionadd/permissionadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/open/open.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/projects.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/projects.module.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/odbcs/odbcs.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/callysquare.module.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/metrics/metrics.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/reports.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/copy/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/conditions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/describeTable.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/fields.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/sqlUtil.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/preview/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/copy/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/preview/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/run/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/reports.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/run/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/run/web/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/reports.module.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/metrics/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/metrics/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/metrics/metrics.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/analytics.module.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/integrations.module.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/license.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/update/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/request/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/license.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/request/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/update/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/license.module.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/system/system.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/system/system.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/system/system.module.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/updates.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/update/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/update/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/updates.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/updates.module.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/generals/generals.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/smtps/smtps.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/networks/networks.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/customizations.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/customizations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/favicon.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/logo.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/logologin.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/preferred.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/generals/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/generals/generals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/networks/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/networks/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/networks/networks.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/smtps/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/smtps/smtps.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/settings.module.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queue_params/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queue_params/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hopperBlacks.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hopperFinals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hopperHistories.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hopperStatistics.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hopperBlacks.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hopperFinals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hopperHistories.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hopperStatistics.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/motiondialer.module.js","webpack://motion-frontend/./src/js/modules/main/apps/help/views/about/about.html","webpack://motion-frontend/./src/js/modules/main/apps/help/views/about/about.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/help/views/about/about.module.js","webpack://motion-frontend/./src/js/modules/main/apps/help/help.module.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/projects.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/answers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/builder.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/preview.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/sessions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/projects.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/jscripty.module.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/plugins.html","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/plugins.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/marketplace.module.js","webpack://motion-frontend/./src/js/modules/main/apps/plugins/views/plugin/plugin.html","webpack://motion-frontend/./src/js/modules/main/apps/plugins/views/plugin/plugin.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/plugins/views/plugin/plugin.module.js","webpack://motion-frontend/./src/js/modules/main/apps/plugins/plugins.module.js","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/video/video.module.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/whatsapp.module.js","webpack://motion-frontend/./src/js/modules/login/login.html","webpack://motion-frontend/./src/js/modules/core/layouts/content-only.html","webpack://motion-frontend/./src/js/modules/core/layouts/content-with-toolbar.html","webpack://motion-frontend/./src/js/modules/core/layouts/horizontal-navigation.html","webpack://motion-frontend/./src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html","webpack://motion-frontend/./src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html","webpack://motion-frontend/./src/js/modules/core/layouts/vertical-navigation.html","webpack://motion-frontend/./src/js/modules/core/layouts/index.js","webpack://motion-frontend/./src/js/modules/login/login.controller.js","webpack://motion-frontend/./src/js/modules/login/login.module.js","webpack://motion-frontend/./src/js/modules/forgot/forgot.html","webpack://motion-frontend/./src/js/modules/forgot/forgot.controller.js","webpack://motion-frontend/./src/js/modules/forgot/forgot.module.js","webpack://motion-frontend/./src/js/modules/reset/reset.html","webpack://motion-frontend/./src/js/modules/reset/reset.controller.js","webpack://motion-frontend/./src/js/modules/reset/reset.module.js","webpack://motion-frontend/./src/js/modules/errors/404/error-404.html","webpack://motion-frontend/./src/js/modules/errors/404/error-404.controller.js","webpack://motion-frontend/./src/js/modules/errors/404/error-404.module.js","webpack://motion-frontend/./src/js/modules/errors/500/error-500.html","webpack://motion-frontend/./src/js/modules/errors/500/error-500.controller.js","webpack://motion-frontend/./src/js/modules/errors/500/error-500.module.js","webpack://motion-frontend/./src/js/modules/errors/errors.module.js","webpack://motion-frontend/./src/js/index.api.js","webpack://motion-frontend/./src/js/index.config.js","webpack://motion-frontend/./src/js/index.controller.js","webpack://motion-frontend/./src/js/index.factory.js","webpack://motion-frontend/./src/js/modules/toolbar/layouts/vertical-navigation/toolbar.html","webpack://motion-frontend/./src/js/modules/navigation/layouts/horizontal-navigation/navigation.html","webpack://motion-frontend/./src/js/modules/navigation/layouts/vertical-navigation/navigation.html","webpack://motion-frontend/./src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html","webpack://motion-frontend/./src/js/modules/navigation/layouts/index.js","webpack://motion-frontend/./src/js/modules/header/layouts/vertical-navigation/header.html","webpack://motion-frontend/./src/js/modules/header/layouts/index.js","webpack://motion-frontend/./src/js/modules/footer/layouts/vertical-navigation/footer.html","webpack://motion-frontend/./src/js/modules/quick-panel/quick-panel.html","webpack://motion-frontend/./src/js/index.route.js","webpack://motion-frontend/./src/js/index.run.js","webpack://motion-frontend/./src/js/index.socket.js","webpack://motion-frontend/./src/js/modules/main/main.controller.js","webpack://motion-frontend/./src/js/index.module.js","webpack://motion-frontend//home/vito/Development/MOTION_V3/motion-server/motion-client/node_modules/moment/locale|sync|/^\\.\\/.*$/","webpack://motion-frontend/external \"angular\"","webpack://motion-frontend/ignored|ws"],"names":["addInterceptor","$httpProvider","interceptors","push","decorator","$transitions","requiresAuthCriteria","to","state","authenticate","isNotLoginState","name","requiresPermissionCriteria","permissionId","isGeneralDashboardSubstate","parent","redirectToLogin","transition","AuthService","injector","get","$state","router","stateService","isLoggedIn","target","undefined","reload","retrieveUser","catch","redirectToAgentDashboard","$to","hasRole","redirect","redirectToWelcomePage","hasPermission","id","params","Number","hasResourcePermission","redirectToGeneralDashboard","onBefore","onStart","onFinish","$mdDialog","$cookies","$q","api","$window","$document","motionCurrentUser","service","getToken","getCurrentUser","getPermissions","hasChildrenPermissions","hasModulePermissions","hasModulesPermissions","hasSectionPermissions","hasSectionsPermissions","isAgent","isAdmin","isTelephone","isUser","login","logout","parseCrudPermissions","queueLogin","reloadPermissions","removeCookies","setCurrentUser","getAuthenticationType","loginSSO","user","_","intrf","resolve","reject","device","$promise","then","err","queueLogout","setOnlineStatus","status","data","online","lastLoginAt","moment","format","update","auth","local","res","put","token","setAuthenticationType","showWebBar","hotdesk","show","controller","controllerAs","templateUrl","authHotDeskServiceDialogTemplate","angular","element","body","clickOutsideToClose","telephones","apiResolver","fields","role","nolimit","updatedUser","remove","localStorage","removeItem","logoutBySomeoneElse","whoami","userProfileId","permissions","userProfile","getSections","sections","i","length","item","sectionId","subsections","ids","crudPermissions","readOnly","canEdit","canDelete","resourceId","userProfileSection","entities","section","rows","autoAssociation","userProfileResource","resources","forEach","key","category","enabledSections","enabled","categories","enabledCategories","filter","uniqBy","map","value","authenticationType","provider","HotDeskDialogController","vm","closeDialog","close","hide","count","authInterceptor","$rootScope","$injector","Util","request","config","headers","PRODUCTION","isSameOrigin","url","Authorization","responseError","response","go","UtilService","safeCb","cb","isFunction","noop","urlParse","a","document","createElement","href","host","origins","concat","location","o","hostnameCheck","hostname","protocolCheck","protocol","portCheck","port","module","run","factory","motionConfigProvider","motionConfiguration","disableCustomScrollbars","disableMdInkRippleOnMobile","disableCustomScrollbarsOnMobile","configuration","extend","getConfig","configName","isUndefined","setConfig","configValue","$get","$ariaProvider","$logProvider","msScrollConfigProvider","debugEnabled","tabindex","wheelPropagation","runBlock","msUtils","motionGenerator","motionConfig","generate","isMobile","bodyEl","attr","addClass","browserInfo","detectBrowser","htmlClass","browser","version","os","AdvancedSearchController","Auth","color","storagePath","currentUser","searchOptions","matchType","conditions","toolbarColor","onInit","applyFilter","clearConditions","minimize","storage","getLocalStorage","advancedSearch","activeConditions","search","parameter","groupBy","items","condition","hasMultipleConditions","column","query","operators","g","operator","mapValues","v","flattenDeep","parameters","values","param","join","updateLocalStorage","clearLocalStorage","getItem","JSON","parse","setLocalStorage","setItem","stringify","focusOn","$timeout","restrict","link","$scope","$element","$attr","$watch","focus","blur","hljsDirective","$interpolate","compile","code","html","empty","scope","$eval","shouldInterpolate","when","contentParent","append","render","contents","codeElement","find","lines","split","line","trim","firstLineWhitespace","match","startingWhitespaceRegex","RegExp","replace","highlightedCode","hljs","language","lang","msAdvancedSearch","options","clearFilter","MsAdvancedSearchController","bindToController","MSAdvancedSearchDirectiveTemplate","$translate","toasty","availableOperators","type","symbol","translate","excludeFrom","applyTo","addCondition","editCondition","updateCondition","cancelUpdateCondition","setConditionStatus","removeCondition","getValues","onFieldChange","onOperatorChange","onValueChange","checkRange","handleKeyboardAction","endRangeValue","searchText","isValidCondition","filterOperators","autoSelectOperator","selectedOperator","oldValue","isValidRange","selectedField","extraOperators","isExtra","checkConditionValidity","minDateRange","add","hasExtraOperators","hasFewerOperators","excludedOperators","isDefault","isExcluded","route","copy","Object","keys","apiRoute","model","action","results","displayValue","searchFields","field","fieldValue","toLowerCase","error","title","statusText","toUpperCase","msg","message","toString","instant","maxDateRange","subtract","buildCondition","clearValues","pendingCondition","style","Date","endValue","index","splice","disabled","getDisplayValue","displayEndValue","parseValue","parsedValue","selectedDate","utcOffset","endingDate","msCardDirective","templatePath","card","template","tElement","postLink","iElement","cardTemplateLoaded","$emit","msChipColor","attrs","$observe","mdChip","hasClass","classes","className","indexOf","msClickToCall","prefix","license","$http","showMenu","internal","phoneBarRemoteControl","webrtc","choosePrefix","getVoicePrefixes","prefixes","CoreDirectiveMSPhonebarPrefixDialogTemplate","locals","required","phoneBarPrefixRequired","chooseDevice","phoneBarApi","phoneBarRemoteControlPort","purifyNumber","$broadcast","call","transfer","success","MSClickToCallTemplate","msDatepickerFixConfigProvider","defaultConfig","formatter","val","parser","toDate","msDatepickerFix","msDatepickerFixConfig","require","priority","elem","ngModel","$formatters","$parsers","msDialogRecording","path","loaded","objectDownload","setAttribute","onplay","e","preventDefault","download","arrayBuffer","buffer","blob","Blob","URL","createObjectURL","play","console","msDualMultiselect","canTransfer","removed","isValid","selectedItems","from","transferCallback","getLine","string","MSDualMultiselectTemplate","msEmojiArea","onReply","ctrlMethods","pickerPosition","recentEmojis","placeholder","el","emojioneArea","attributes","spellcheck","events","keypress","editor","$event","getText","event","emojibtn_click","setText","internalControl","newValue","msFontFamily","fonts","option","MSFontFamilyTemplate","MsFormWizardController","forms","selectedIndex","registerForm","previousStep","nextStep","firstStep","lastStep","totalSteps","isFirstStep","isLastStep","currentStepInvalid","previousStepInvalid","formsIncomplete","resetForm","form","isDefined","$invalid","x","$setPristine","$setUntouched","msFormWizardDirective","msFormWizardFormDirective","iAttrs","ctrls","formCtrl","MsFormWizardCtrl","msInfoBarDirective","onClose","transclude","MSInfoBarTemplate","bodyClass","removeInfoBar","removeClass","$destroy","msMasonryController","$mdMedia","defaultOpts","columnCount","respectItemOrder","reLayoutDebounce","responsive","md","sm","xs","reLayoutTimeout","container","containerPos","columnWidth","reLayout","initialize","waitImagesLoaded","watchContainerResize","$on","callback","imagesLoaded","imgLoad","on","width","cancel","start","getBoundingClientRect","updateColumnOptions","referenceArr","Array","apply","refTop","css","Math","min","height","xPos","round","yPos","transform","msMasonry","pre","preLink","fromJson","post","msMasonryItem","newVal","oldVal","msMaterialColorPickerController","$mdColorPalette","$mdMenu","palettes","selectedPalette","selectedHues","$selectedColor","activateHueSelection","selectColor","removeColor","setSelectedColor","palette","hues","hue","updateSelectedColor","updateModel","selectedColor","class","modelCtrl","$viewValue","msModelType","bgColorValue","rgba","fgColorValue","contrast","equals","$setViewValue","msMaterialColorPicker","MSMaterialColorPickerTemplate","controllers","ctrl","clone","nodeType","replaceWith","msNavFoldService","foldable","setFoldable","isNavFoldedOpen","toggleFold","openFolded","closeFolded","msNavIsFoldedDirective","isFolded","msNavIsFolded","isFoldedOpen","openOverlay","closeOverlay","sidenavEl","fold","unfold","scrollTop","off","MsNavController","toggleItems","lockedItems","isDisabled","enable","disable","setToggleItem","getLockedItems","setLockedItem","clearLockedItems","msNavDirective","$mdComponentRegistry","stateChangeSuccessEvent","navigation","msNavTitleDirective","msNavButtonDirective","msNavToggleDirective","$animate","tAttrs","collapsed","MsNavCtrl","expanded","expandAnimation","collapseAnimation","links","states","regExp","children","toggle","isCollapsed","expand","locked","lockedItem","collapse","currentState","current","shouldExpand","isExpanded","deferred","defer","promise","elementToExpand","position","visibility","display","offsetHeight","$evalAsync","animate","elementToCollapse","msNavigationServiceProvider","$log","saveItem","deleteItem","sortByWeight","isString","parts","_findOrCreateParent","updateItem","_id","uisref","_getUiSref","weight","isNumber","_path","p","sort","_byWeight","pop","createParent","y","parseInt","stateParams","isObject","toJson","activeItem","navigationScope","folded","foldedOpen","clearNavigation","setActiveItem","getActiveItem","getNavigation","getFlatNavigation","setNavigationScope","setFolded","getFolded","setFoldedOpen","getFoldedOpen","toggleFolded","node","root","_flattenNavigation","flatNav","navToPush","MsNavigationController","msNavigationService","toggleHorizontalMobileMenu","init","toggleClass","msNavigationDirective","$mdSidenav","MSNavigationVerticalTemplate","foldExpanderEl","foldCollapserEl","sidenav","setFoldExpander","isLockedOpen","old","removeFoldCollapser","onFoldExpanderHover","setFoldCollapser","onFoldCollapserHover","MsNavigationNodeController","hasChildren","collapsable","group","animateHeightClass","toggleCollapsed","getClass","isHidden","includes","givenPathParts","activePathParts","collapseEl","expandEl","hidden","msNavigationNodeDirective","MsNavigationNodeCtrl","msNavigationItemDirective","msNavigationHorizontalDirective","MSNavigationHorizontalTemplate","MsNavigationHorizontalNodeController","isActive","msNavigationHorizontalNodeDirective","MsNavigationHorizontalNodeCtrl","msNavigationHorizontalItemDirective","onClick","MsPhonebarController","$interval","$mdToast","motNotification","socket","vm_pb","jabra","window","baseUrl","conf","$parent","attributesToSave","ringingVolume","speakerVolume","microphoneVolume","ringingMute","speakerMute","microphoneMute","direction","selectedMode","showDialpad","soundPlayer","remotePlayer","getElementById","remotePlayerId","volume","sessionConf","mediaConstraints","audio","video","pcConfig","iceServers","sessions","calls","callbackQueue","canGoInConference","isInConference","currentConferenceSessions","ua","JsSIP","sockets","uri","authorization_user","ha1","realm","user_agent","session_timers_refresh_method","register_expires","phoneBarExpires","register","initDeviceInProgress","isJabraEnabled","isJabraInitialized","jabraSession","jabraClicked","buttonClicked","originateInProgress","initMediaDevices","navigator","mediaDevices","ondevicechange","shutdown","turnStunGetConfigPromise","network","Promise","all","turnConfig","stunConfig","iceServerUrls","stunUrls","urls","server","username","password","credential","onRegistered","bind","onUnregistered","onNewRTCSession","originateHook","hangupHook","answerHook","holdHook","unholdHook","transferHook","forceDefault","activeRingDevice","activeOutDevice","activeInDevice","getUserMedia","dummyStream","getTracks","track","stop","enumerateDevices","devices","inputDevices","kind","deviceId","defaultInputDevice","groupId","microphoneId","ifound","warning","clickToClose","showClose","shake","timeout","initDevice","outputDevices","defaultOutputDevice","speakerId","ofound","ringingId","rfound","getInstallInfo","getUserDeviceMediaExt","deviceInfo","browserGroupId","log","onHook","addEventListener","onAcceptCall","onMute","onUnmute","onFlash","onEndCall","warn","finally","updateStorage","DetectRTC","onLoad","session","isInProgress","answer","localHold","unhold","hold","getActiveSession","terminate","registered","hasMicrophone","hasSpeakers","isWebRTCSupported","osName","osVersion","browserName","browserVersion","isOk","isCompatibleBrowser","debug","canAnswer","xAnswerMode","xAnswerAfterSec","callbackurl","originator","outgoing","ruri","addCall","headername","getExtraHeaderValue","extraHeaders","resume","offHook","voicePause","phoneBarDnd","incoming","display_name","getHeader","getNotification","ring","autoAnswer","autoAnswerDelay","timeoutMs","call_id","callCallback","connection","onaddstream","onAddstream","iceCandidateTimeout","onProgress","onConfirmed","onHold","onUnhold","onEnded","onFailed","onIcecandidate","$apply","inbound","fullname","unshift","time","create","notification","statusCode","status_code","isEstablished","otherSession","putOtherCallsOnHold","loop","getVoiceChannels","uniqueid","number_called","rpc","r","sipcalllinkedid","sipcalluniqueid","monitor","monitors","box","substr","$","confirmed","getRemoteStreams","srcObject","pause","stream","endConference","currentconferenceSessions","clearTimeout","setTimeout","ready","closeDialpad","n","dialpad","oggFile","enableDtmfTone","isOnHold","sendDTMF","forceSave","muted","setSinkId","info","mute","unmute","targetChanged","resetInput","test","targetSelected","originalObject","showPrefixes","MSPhoneBarPrefixDialogTemplate","typeWrapper","evt","toggleDialpad","keyCode","start3WayConf","s0","getSenders","r0","getReceivers","patchConference","s1","r1","useUpdate","allReceivedMediaStreams","MediaStream","context","AudioContext","mixedOutput","createMediaStreamDestination","sourceStream","createMediaStreamSource","connect","replaceTrack","addTrack","remoteAudio","promiseRemote","selectSession","record","MSPhonebarRecordDialogTemplate","refer","confirm","prompt","textContent","ariaLabel","ok","eventHandlers","requestSucceeded","onReferCallback","requestFailed","delay","simple","hideDelay","referAttended","MSPhonebarReferAttendDialogTemplate","remote","onSettings","MSPhonebarSettingsTemplate","targetEvent","onLogout","onRemoteCall","onRemoteTransfer","payload","callNumber","callerId","callbackUrl","sessionId","findSessionBySessionId","sessionToHangup","sessionListToAnswer","getSessionToAnswer","sessionToAnswer","itemsFound","sessionItem","sessionToHold","sessionToUnhold","transferNumber","sessionToTransfer","method","suffix","extraHeader","$onInit","removeAllListeners","msPhonebarDirective","MSPhonebarTemplate","PrefixDialogController","msBlinkDirective","showElement","hideElement","RecordDialogController","addRecording","guid","s4","floor","random","substring","filename","startMonitor","mixmonitorid","stopMonitor","skipHide","initialValue","ReferAttendedDialogController","sessionTarget","b","s","replaces","onTransferCallback","agent","SettingsController","getDeviceId","saveSettings","mediaDeviceInfo","msQuickFilter","filters","MsQuickFilterController","MSQuickFilterTemplate","dateRangeManager","quickFilterManager","pickerModels","placeholders","localizationMap","onMultiselectInit","onDateRangeInit","onMultiselectSelection","onDateRangeSelection","clearDate","clearSelection","selectAll","setPlaceholder","setSelectedDate","dateStart","$gte","$lte","dateEnd","ngValue","clearAll","DateRangeManager","$filter","dateFilterLocalizationFactory","manager","ds","de","getFullYear","getMonth","getDate","selectedTemplateName","getPlaceholder","isSame","isToday","isYesterday","isThisWeek","isLastWeek","isThisMonth","isLastMonth","isThisYear","isLastYear","startOf","endOf","msRandomClassDirective","msRandomClass","randomClass","msRecording","msResponsiveTableDirective","wrapper","after","defaultConfiguration","wheelSpeed","swipePropagation","minScrollbarLength","maxScrollbarLength","useBothWheelAxes","useKeyboard","suppressScrollX","suppressScrollY","scrollXMarginOffset","scrollYMarginOffset","stopPropagationOnClick","msScrollDirective","msScrollConfig","msScroll","PerfectScrollbar","updateScrollbar","prop","MsSearchBarController","queryOptions","debounce","collapseOnBlur","resultsLoading","selectedResultIndex","ignoreMouseEvents","populateResults","blurCollapse","absorbEvent","handleKeydown","handleMouseenter","temporarilyIgnoreMouseEvents","handleResultClick","ensureSelectedResultIsVisible","onSearchEvaluated","onSearch","isArray","isPromise","isNull","onExpand","onCollapse","mouseEventIgnoreTimeout","onResultClick","resultsEl","selectedItemEl","top","bottom","outerHeight","msSearchBarDirective","iconColor","MSSearchBarTemplate","closest","MsShortcutsController","mobileBarActive","shortcuts","sortableOptions","ghostClass","forceFallback","fallbackClass","onSort","saveShortcuts","loadShortcuts","flatNavigation","hasShortcut","icon","addShortcut","removeShortcut","toggleMobileBar","msShortcutsDirective","MSShortcutsTemplate","msSidenavHelperDirective","MdSidenavCtrl","isOpen","msSplashScreenDirective","splashScreenRemoveEvent","leave","MsStepperController","mainForm","orientation","steps","currentStep","currentStepNumber","isStepNumberValid","stepNumber","setOrientation","registerMainForm","gotoFirstStep","setCurrentStep","isStepHidden","hideStep","registerStep","step","stepTitle","stepTitleTranslate","setupSteps","j","gotoStep","gotoPreviousStep","gotoNextStep","gotoLastStep","isStepCurrent","isStepOptional","optionalStep","isStepValid","$valid","isStepDisabled","filterHiddenStep","isFormValid","msHorizontalStepperDirective","MSStepperHorizontalTemplate","FormCtrl","MsStepperCtrl","msHorizontalStepperStepDirective","msVerticalStepperDirective","MSStepperVerticalTemplate","msVerticalStepperStepDirective","MSStepperVerticalStepperTemplate","stepInfo","MsStepper","MsTabScrollController","onTabScroll","canScroll","scrollLeft","determineOverflow","content","scrollWidth","msTabScrollDirective","MSTabScrollTemplate","MsTimelineController","scrollEl","setScrollEl","getScrollEl","msTimelineDirective","msTimeline","loadMore","MsTimelineCtrl","loadMoreEl","threshold","registerOnScroll","onScroll","unregisterOnScroll","msTimelineItemDirective","itemLoaded","itemInViewport","args","cardEl","testForImage","testForVisibility","itemReadyWatcher","imgEl","MsTimerController","$attrs","$compile","String","prototype","autoStart","autostart","interval","intervalAttr","startTime","endTime","timeoutId","countdown","countdownAttr","isRunning","clear","resetTimeout","now","startTimeAttr","endTimeAttr","countdownattr","tick","diff","stoppedTime","millis","seconds","minutes","hours","days","calculateTimeUnits","maxTimeUnit","months","years","secondsS","minutesS","hoursS","daysS","monthsS","yearsS","sseconds","mminutes","hhours","ddays","mmonths","yyears","adjustment","finishCallback","$digest","msTimerDirective","msTimezone","timezone","offsetStr","countries","MSTimezoneTemplate","MsWidgetEngineCounterController","filtered","fontSize","getCount","widget","sum","voiceQueuesSelected","voiceQueues","MsWidgetEngineMultibarChartController","properties","multiBarChart","labels","series","legend","fontColor","scales","xAxes","gridLines","ticks","stepSize","beginAtZero","yAxes","updateAttributes","differenceSeries","differenceLabels","k","updateColor","foreground","getMultiBarChart","MsWidgetEnginePieChartController","pieChart","getPieChart","MsWidgetEngineWebReportController","countDown","refresh","columns","limit","page","startDate","endDate","output","getResults","valueReplacer","analyticFieldReport","DefaultReportId","CustomReportId","reportRoute","report","offset","MsWidgetEngineController","$sce","getTrustedURL","trustAsResourceUrl","msWidgetEngineDirective","onEdit","onDelete","MSWidgetEngineTemplate","MsWidgetController","flipped","isFlippable","flippable","flip","msWidgetDirective","MsWidgetCtrl","transcludeFn","msWidgetFrontDirective","flipWidget","msWidgetBackDirective","CORE_DIRECTIVES","QuickFilterManager","altDate","fromNow","calendar","toTrustedFilter","trustAsHtml","htmlToPlainTextFilter","text","nospaceFilter","humanizeDocFilter","doc","$1","label","capitalize","filterByIds","filterByPropIds","snakeCase","startCase","filterByTags","tags","every","tag","tagExists","itemTag","filterSingleByTags","itemTags","Notification","accept","isPageVisible","mozHidden","webkitHidden","isChrome","userAgent","vendor","self","serviceWorker","registration","getNotifications","notifications","swRegistration","sw","swReg","installing","waiting","active","source","rej","requestPermission","result","showNotification","requireInteraction","actions","Error","apiResolverService","actionParts","resource","apiObject","getApiObject","resourceParts","l","LoadingIndicatorService","showLoadingIndicator","loadingProgress","hideLoadingIndicator","msApiProvider","setBaseUrl","getBaseUrl","paramDefaults","$resource","resourceObject","mobileDetect","MobileDetect","exists","guidGenerator","toggleInArray","firstLastDayMonth","list","browserData","subString","versionSearch","identity","opera","osData","platform","versionSearchString","searchString","dataString","dataProp","searchVersion","appVersion","S4","mobile","array","MsThemeOptionsController","motionTheming","themes","layoutModes","layoutStyles","figure","layoutMode","layoutStyle","setActiveTheme","getActiveTheme","updateLayoutMode","updateLayoutStyle","themeName","msThemeOptions","ThemeOptionsTemplate","toggleOptionsSidenav","motionGeneratorService","registeredThemes","getRegisteredThemes","registeredPalettes","getRegisteredPalettes","registeredTheme","colors","colorType","colorTypeName","levels","default","contrast1","contrast2","contrast3","contrast4","hue1","hue2","hue3","processAndStoreThemes","styleVars","theme","colorTypes","colorLevelName","colorName","ucfirst","_themes","setThemesList","selectedTheme","cssTemplate","regex","matched","headEl","styleEl","_contrastLevel","contrastLevel","applyContrast","contrastLevels","white","black","charAt","slice","motionPalettes","A100","A200","A400","A700","contrastDefaultColor","contrastDarkColors","contrastStrongLightColors","motionThemes","primary","accent","background","pinkTheme","tealTheme","themingConfig","$mdThemingProvider","invoke","_$cookies","customTheme","getObject","alwaysWatchTheme","definePalette","primaryPalette","accentPalette","warnPalette","backgroundPalette","motionThemingService","$mdTheming","PALETTES","THEMES","themeList","coreModule","Component","directive","constant","NavigationController","setting","msScrollOptions","toggleMsNavigationFolded","getLogo","onSaveDashboard","onRemoveDashboard","onSavePlugin","onRemovePlugin","defaultHeaderWhiteLabel","headerWhiteLabel","dashboard","plugin","sidebar","childExists","parentId","childId","ChangePasswordController","reset","errors","passwordPattern","securePassword","savePassword","oldPassword","changePasswordForm","$setValidity","changePassword","newPassword","PreviewDialogController","$location","preview","customFields","customFieldsMap","hopperIds","originated","disableGetContact","originatePreview","nextContact","previousContact","getFirstAvailableContact","isCustomField","isHiddenField","isNil","getVoiceQueuesPreview","cmHopper","UserId","getPreview","Queue","dialActive","discardedIds","ToolbarController","polling","stopTime","global","pauses","unreadTotalMessages","unreadTotalGroupMessages","contcts","channel","userStatusOptions","languages","ar","translation","flag","da","en","es","fa","fi","fr","he","hi","it","ja","ko","lv","nl","no","pl","ru","sv","tr","rtlLanguages","toggleSidenav","changeLanguage","setUserStatus","searchResultClick","openSettings","onUserUpdate","onUserCalled","unpause","userIsNotPhonebar","onInternalMessageSave","onInternalMessageUpdate","onUserVoiceQueue","onVoiceQueue","getVoiceQueues","connectSocket","md5secret","recording","phoneBarEnableRecording","phoneBarAutoAnswer","enableSettings","phoneBarEnableSettings","phoneBarEnableDtmfTone","phoneBarAutoAnswerDelay","userStatus","languageCookie","selectedLanguage","preferredLanguage","passwordResetAt","expiration","passwordExpiresDays","isAfter","ceil","onForceLogout","onNewNotification","disconnectSocket","disconnect","getQueues","ev","PreviewDialogTemplate","sidenavId","chatInternalMessage","ToId","read","ChatGroupId","FromId","use","ChangePasswordTemplate","escapeToClose","membername","calleridnum","queue","variables","extravar","dialMethod","dialer","getOpenContacts","contacts","resetTimer","alert","ip","recipient","sender","recipientTitle","description","wait","sound","beep","$translatePartialLoaderProvider","addPart","QuickPanelController","desktopNotification","date","onMessageSave","onMessageUpdate","getGroups","promises","groups","chatGroup","getUnread","showDesktopNotification","autoClose","duration","showOnPageHidden","focusOnclick","closeOnClick","checkDesktopNotification","isSupported","ChatInternalController","vm_ct","users","standardDate","unreadMessage","replyMessage","toggleChat","reply","webcall","getUsers","messages","scrollToBottomOfChat","found","lastMessageAt","createdAt","lastMessage","allowmessenger","save","speed","chatDialog","scrollHeight","number","CreateOrEditChatGroupDialogController","members","newChatGroup","write","saveChatGroup","querySearch","createFilterFor","lowercaseQuery","filterFn","contact","criteria","_group","addMembers","chatQueue","ChatGroupController","vm_cg","unreadGroupMessages","participants","back","addGroup","deleteGroup","groupsToArray","showMessageInfo","onGroupRemove","pushMessage","InfoDialogTemplate","_data","ChatInternalMessageId","addMessage","getMembers","membersByKeys","getMessages","htmlContent","delete","CreateDialogTemplate","me","getResources","ShowMessageInfoDialogController","HeaderController","newsAlertOnClose","newsAlertHide","FooterController","cookieAlertOnClose","cookieAlertHide","UserChatDashboardGeneralController","chatInteractions","chatWebsites","unit","talking","answered","abandoned","unmanaged","sumHoldTime","sumBillable","total","avgHoldTime","avgTalkTime","answerRate","abandonRate","onSaveChatInteraction","onUpdateChatInteraction","updateStats","chatInteraction","closed","disposition","closedAt","read1stAt","updateRates","hasPermissions","interaction","ChatWebsiteId","isInRange","startDay","endDay","isBetween","UserVoiceDashboardDialerController","outboundQueues","rpcQueues","initializeRealtimeQueue","initializeRealtimeCampaign","rpcCampaigns","ivr","limitCalls","pTalking","outboundDropCallsDayCallersExit","outboundDropCallsDayTimeout","onSaveQueue","onSaveCampaign","onWithoutApply","onIvrInit","queues","campaign","UserFaxDashboardGeneralController","faxInteractions","faxAccounts","onSaveFaxInteraction","onUpdateFaxInteraction","faxInteraction","FaxAccountId","UserMailDashboardGeneralController","mailInteractions","mailAccounts","onSaveMailInteraction","onUpdateMailInteraction","mailInteraction","MailAccountId","UserOpenchannelDashboardGeneralController","openchannelInteractions","openchannelAccounts","onSaveOpenchannelInteraction","onUpdateOpenchannelInteraction","openchannelInteraction","OpenchannelAccountId","UserSmsDashboardGeneralController","smsInteractions","smsAccounts","onSaveSmsInteraction","onUpdateSmsInteraction","smsInteraction","SmsAccountId","execNext","task","toISOString","pow","outboundDropRate","outboundAbandonRate","outboundanswerRate","shift","d","secToTime","UserDashboardGeneralController","hasDashboardPermissions","getFirstAvailableSubstate","selectedTab","voice","chat","mail","messaging","openchannel","fax","whatsapp","UserVoiceDashboardGeneralController","inboundQueues","outbound","sumDuration","onSaveOutbound","UserWhatsappDashboardGeneralController","whatsappInteractions","whatsappAccounts","onSaveWhatsappInteraction","onUpdateWhatsappInteraction","whatsappInteraction","WhatsappAccountId","$stateProvider","views","UserGeneralTemplate","UserGeneralDialerTemplate","UserGeneralChatTemplate","UserGeneralMailTemplate","sms","UserGeneralSmsTemplate","UserGeneralOpenchannelTemplate","UserGeneralFaxTemplate","UserGeneralWhatsappTemplate","AgentDashboardGeneralController","globalUserLists","globalLists","globalCompanies","globalTags","currentTab","tabs","agentCapacity","onClickTab","isActiveTab","alreadyExistsTab","addContactTab","addInteractionTab","addTab","removeTab","closeTab","onContactManager","onJscripty","onBot","onBrowserUrl","onBrowserPopup","onNotificationSave","onNotificationRemove","onVoiceChannelRemove","initTabs","motionUser","updateAgentCapacity","tab","currentLS","obj","capacity","setAgentCapacity","mandatoryDisposition","saved","_options","wasUserInPause","chatPause","mailPause","openchannelPause","faxPause","Account","DisposeDialogTemplate","onRemoving","removeAgentFromTab","openedAt","badges","interactionId","getTitle","firstName","lastName","phone","getIconByChannel","getColorByChannel","autoCreate","answeredAt","agentcalledAt","timestamp","agentcompleteAt","endtime","allowCallDisposition","voiceCallReport","disposedAt","foundCall","ListId","dispositions","cmList","getCustomFields","handleError","isDraft","onAdd","onAccept","manual","onReject","ContactSelectionDialogTemplate","routeId","destcalleridnum","jscriptyProject","ProjectId","project","formData","Mustache","cmContact","uriLocation","open","windowWidth","windowHeight","src","calleridname","squareMessage","updateVoiceCallReport","contactId","ContactId","DraftManager","drafts","getDrafts","getByInteraction","draft","removeByInteraction","email","subject","account","userHome","currentSidebarTab","settings","PERMISSIONS","mozNotification","webkitNotification","currentPermission","DEFAULT","granted","GRANTED","denied","DENIED","permission","_isArgsValid","_isPageVisible","onclick","_autoCloseAfter","isTitleString","isOnClickFunction","durationInMs","msNavigationAgentService","AgentGeneralBotController","showInteraction","getMessagesAlignment","messagesAlignment","TEMPLATES","Compose_FaxDialogTemplate","Compose_MailDialogTemplate","Compose_OpenchannelDialogTemplate","Compose_SmsDialogTemplate","Compose_WhatsappDialogTemplate","AgentGeneralContactController","journey","queryHopper","queryFinal","queryHistory","hoppers","finals","histories","firstDayMonth","lastDayMonth","addNewContact","saveContact","disposeCall","duplicateContact","mergeContact","getDateFromString","addJscriptyTab","getHoppers","getFinals","getHistories","getJscriptyProjects","getMailAccounts","getFaxAccounts","getSmsAccounts","getWhatsappAccounts","getOpenchannelAccounts","getChatWebsites","getLists","composeInteraction","openInteraction","getColorByItem","isMyAccount","chatAccounts","amaflags","parseDispositionsValues","secondDisposition","thirdDisposition","concatJourney","entity","dispositionsValues","initCustomerJourney","omniChannels","includeAll","$watchGroup","newValues","newContact","usersMap","addContacts","userLists","lists","companies","getTags","Tags","Contact","fullscreen","send","Messages","attachments","attachment","MailMessageId","closeDispo","InteractionDisposeDialogTemplate","detailForm","$pristine","customFieldsForm","setTags","initializing","bookmark","cmHopperFinal","cmHopperHistory","projects","jscriptyProjects","accounts","ContactsDuplicateDialogTemplate","MergeDuplicateDialogTemplate","new","globalDispositions","choice","str","DisposeCallDialogController","isReschedule","recallme","queueCampaign","queueCampaigns","note","dialerCall","hasBlackLists","hopper","minDate","dateTime","voiceQueue","getBlackLists","onDispositionChange","clearDispositionSelection","saveDisposition","saveReschedule","level","selectedDisposition","firstLevelDisposition","anySecondLevelDisposition","secondLevelDisposition","thirdLevelDisposition","anyThirdLevelDisposition","buildObjectHopper","dispositionat","amd","blacklist","OwnerId","userDisposition","userSecondDisposition","userThirdDisposition","updateVoiceRecording","voiceRecording","updateCmHopperFinal","updateCmHopperHistory","updateBlackList","voiceQueueId","VoiceQueueId","scheduledat","rescheduled","rescheduledat","RescheduleCallDialogController","saveDialog","ContactSelectionController","keyBy","cmCustomField","startsWith","matchingField","alias","paginatedContacts","selectContact","selectedContact","AgentHomeAbandonedController","AgentHomeAbandonedBullController","vm_bull","showTooltip","abandonedCalls","queuecallerexitreason","getAbandonedCalls","refreshAbandonedCalls","reserved","dispose","webtransfer","onSearchBarCollapse","onSearchBarExpand","onSavevoiceQueueReport","onUpdatevoiceQueueReport","queuesMap","defaultQueues","quickFilters","buildQuickFilters","defaultCreatedAt","isSearchBarVisible","customOptions","voiceQueueReport","getVoiceQueuesReport","queueReport","lastAssignedTo","assigned","firstLevel","secondLevel","thirdLevel","abandonedCall","DisposeAbandonedCallDialogController","dispositionData","AgentHomeAbandonedVoiceController","vm_voice","AgentGeneralHomeController","draftManager","vm_home","changeSidebarTab","home","view","pluginId","AgentHomeChatController","table","sectionColor","getChatInteractions","showChatInteraction","downloadChatInteraction","disposeInteraction","getContactLabel","getAgentLabel","getChatWebsiteLabel","openAdvancedSearch","take","onChatInteractionSave","onChatInteractionTagsSave","onChatMessageSave","onChatInteractionOpen","onChatInteractionClose","searchInProgress","appendChild","click","contactName","Owner","u","ChatInteractionId","Users","chatFound","unreadMessages","sortOrder","secret","chatMessageFound","AdvancedSearchDialogTemplate","AgentHomeContactsController","getContacts","refreshContacts","openContact","listsMap","getFields","DuplicateDialogTemplate","MergeDialogTemplate","describe","toJSON","omit","buildField","tagField","tagIndex","f","displayName","columnName","custom","AgentHomeDashboardController","AgentHomeDashboardBullController","voiceQueuesTotal","rpcVoiceQueues","rpcVoiceQueuesChannels","addVoiceQueuesChannels","deleteVoiceQueuesChannels","load","queryChannels","getSize","onSaveChannel","onSaveVoiceQueue","onUpdateVoiceQueue","onRemoveVoiceQueue","getVoiceQueuesChannels","queuecallerleaveAt","AgentHomeDashboardMultiChannelChatController","loading","chatQueues","chatQueuesTotal","rpcChatQueues","paginatedInteractions","deleteChatQueuesWaitingInteractions","rpcChatQueuesWaitingInteractions","getChatQueues","paginate","onSaveChatQueue","onUpdateChatQueue","onRemoveChatQueue","onSaveUserChatQueue","onRemoveUserChatQueue","onSaveChatQueueChannel","onRemoveChatQueueChannel","myQueues","getChatQueuesWaitingInteractions","row","queue_id","interactions","AgentHomeDashboardMultiChannelFaxController","faxQueues","faxQueuesTotal","rpcFaxQueues","deleteFaxQueuesWaitingInteractions","rpcFaxQueuesWaitingInteractions","getFaxQueues","onSaveFaxQueue","onUpdateFaxQueue","onRemoveFaxQueue","onSaveUserFaxQueue","onRemoveUserFaxQueue","onSaveFaxQueueChannel","onRemoveFaxQueueChannel","getFaxQueuesWaitingInteractions","AgentHomeDashboardMultiChannelMailController","mailQueues","mailQueuesTotal","rpcMailQueues","deleteMailQueuesWaitingInteractions","rpcMailQueuesWaitingInteractions","getMailQueues","onSaveMailQueue","onUpdateMailQueue","onRemoveMailQueue","onSaveUserMailQueue","onRemoveUserMailQueue","onSaveMailQueueChannel","onRemoveMailQueueChannel","getMailQueuesWaitingInteractions","AgentHomeDashboardMultiChannelOpenchannelController","openchannelQueues","openchannelQueuesTotal","rpcOpenchannelQueues","deleteOpenchannelQueuesWaitingInteractions","rpcOpenchannelQueuesWaitingInteractions","getOpenchannelQueues","onSaveOpenchannelQueue","onUpdateOpenchannelQueue","onRemoveOpenchannelQueue","onSaveUserOpenchannelQueue","onRemoveUserOpenchannelQueue","onSaveOpenchannelQueueChannel","onRemoveOpenchannelQueueChannel","getOpenchannelQueuesWaitingInteractions","AgentHomeDashboardMultiChannelSmsController","smsQueues","smsQueuesTotal","rpcSmsQueues","deleteSmsQueuesWaitingInteractions","rpcSmsQueuesWaitingInteractions","getSmsQueues","onSaveSmsQueue","onUpdateSmsQueue","onRemoveSmsQueue","onSaveUserSmsQueue","onRemoveUserSmsQueue","onSaveSmsQueueChannel","onRemoveSmsQueueChannel","getSmsQueuesWaitingInteractions","AgentHomeDashboardVoiceController","allQueues","allQueuesById","myQueue","AgentHomeDashboardMultiChannelWhatsappController","whatsappQueues","whatsappQueuesTotal","rpcWhatsappQueues","deleteWhatsappQueuesWaitingInteractions","rpcWhatsappQueuesWaitingInteractions","getWhatsappQueues","onSaveWhatsappQueue","onUpdateWhatsappQueue","onRemoveWhatsappQueue","onSaveUserWhatsappQueue","onRemoveUserWhatsappQueue","onSaveWhatsappQueueChannel","onRemoveWhatsappQueueChannel","getWhatsappQueuesWaitingInteractions","AgentHomeFaxController","getFaxInteractions","showFaxInteraction","downloadFaxInteraction","getFaxAccountLabel","composeFaxInteraction","onFaxInteractionSave","onFaxInteractionTagsSave","onFaxMessageSave","onFaxInteractionOpen","onFaxInteractionClose","contactInfo","ComposeFaxTemplate","savedAsDraft","faxAccount","FaxInteractionId","faxFound","faxMessageFound","AgentHomeMailController","getMailInteractions","showMailInteraction","downloadMailInteraction","getMailAccountLabel","composeMailInteraction","openDraft","mailSubstatus","subStatuses","onMailInteractionSave","onMailInteractionTagsSave","onMailMessageSave","onMailInteractionOpen","onMailInteractionClose","ngIf","ComposeMailDialogTemplate","mailAccount","MailInteractionId","mailFound","mailMessageFound","AgentHomeMyContactsController","mycontacts","advancedQuery","AgentHomeOpenchannelController","getOpenchannelInteractions","showOpenchannelInteraction","downloadOpenchannelInteraction","getOpenchannelAccountLabel","composeOpenchannelInteraction","onOpenchannelInteractionSave","onOpenchannelInteractionTagsSave","onOpenchannelMessageSave","onOpenchannelInteractionOpen","onOpenchannelInteractionClose","ComposeOpenchannelDialogTemplate","openchannelAccount","OpenchannelInteractionId","openchannelFound","openchannelMessageFound","AgentHomePluginsController","$stateParams","agentUrl","AgentHomeRecordingsController","voiceRecordings","downloadfile","downloadtranscribe","getVoiceRecordings","recordings","downloadTranscribe","AgentHomeScheduledCallsController","priorities","scheduledCalls","getScheduledCalls","isDateBeforeToday","createOrEditQueueCampaignHopper","deleteConfirm","scheduled","scheduledCall","HoppersDialogTemplate","deleteQueueCampaignHopper","isBefore","AgentHomeSmsController","getSmsInteractions","showSmsInteraction","downloadSmsInteraction","getSmsAccountLabel","composeSmsInteraction","onSmsInteractionSave","onSmsInteractionTagsSave","onSmsMessageSave","onSmsInteractionOpen","onSmsInteractionClose","ComposeSmsDialogTemplate","smsAccount","SmsInteractionId","smsFound","smsMessageFound","AgentHomeVoiceController","voiceCalls","getVoiceCalls","showDetails","DetailsDialogTemplate","AgentHomeVoiceDetailsController","AgentHomeWhatsappController","getWhatsappInteractions","showWhatsappInteraction","downloadWhatsappInteraction","getWhatsappAccountLabel","composeWhatsappInteraction","onWhatsappInteractionSave","onWhatsappInteractionTagsSave","onWhatsappMessageSave","onWhatsappInteractionOpen","onWhatsappInteractionClose","ComposeWhatsappTemplate","whatsappAccount","WhatsappInteractionId","whatsappFound","whatsappMessageFound","AgentGeneralIframeController","AgentGeneralInteractionController","maxFileSizeMb","maxFileSize","showFooter","acceptedMessages","ngFlowOptions","singleFile","maxChunkRetries","chunkSize","simultaneousUploads","testChunks","progressCallbacksInterval","allowDuplicateUploads","ngFlow","flow","selectedMailShowDetails","selectedMailShowSystemMessage","embedOptions","fontSmiley","sanitizeHtml","emoji","linkTarget","getLabelByMessage","tagInteraction","transferLastMessage","downloadMessage","downloadInteraction","createVidaooSession","upload","fileAdded","fileSuccess","onInteractionSave","searchTextChange","selectedItemChange","displayCannedAnswerInput","changeDisplayCannedAnswerInputValue","setAs","markAsUnread","getAttachments","getAttachment","htmlToPlaintext","onInteractionOpen","onInteractionClose","loadNextPage","timelineOptions","voiceAccounts","queryMessage","updateUnreadMessages","scrollToBottom","areaText","compiled","selectedItem","cannedAnswer","spy","TagDialogTemplate","Boolean","showComposeMailDialog","sendMessage","Interaction","substatus","inReplyTo","messageId","mailMessage","ComposeFaxDialogTemplate","ComposeWhatsappDialogTemplate","TransferDialogTemplate","getMessageObject","keyAccount","file","size","AttachmentId","opts","shiftKey","interactionContent","currentAttachment","basename","removeChild","revokeObjectURL","idMsg","originalMessage","interactionData","ngBindHtmlUnsafe","getButtonSeeMore","updateView","trustedHtml","getChannelByItem","Emojis","watchEmbedData","pdf","embed","image","basicVideo","gdevAuth","ytTheme","details","thumbnailQuality","autoPlay","twitchtvEmbed","dailymotionEmbed","tedEmbed","dotsubEmbed","liveleakEmbed","ustreamEmbed","soundCloudEmbed","soundCloudOptions","themeColor","hideRelated","showComments","showUser","showReposts","visual","spotifyEmbed","tweetEmbed","tweetOptions","maxWidth","hideMedia","hideThread","align","highlight","lineNumbers","codepenEmbed","codepenHeight","jsfiddleEmbed","jsfiddleHeight","jsbinEmbed","jsbinHeight","plunkerEmbed","githubgistEmbed","ideoneEmbed","ideoneHeight","ComposeFaxInteractionDialogController","$mdConstant","separatorKeys","KEY_CODE","ENTER","COMMA","TAB","localstationid","getContact","contactSearch","transformContact","sendFax","attach","allowed","getExtension","c","chip","isFax","re","ComposeMailInteractionDialogController","hiddenCC","hiddenBCC","verifySmtp","onReadyEditor","fromTemplate","replyTemplate","forwardTemplate","Smtp","cc","bcc","getBody","showLastMessage","ckeditor","skin","startupFocus","allowedContent","extraPlugins","toolbarGroups","autoGrow_onStartup","autoGrow_minHeight","autoGrow_maxHeight","innerHeight","autocorrect_enabled","disableNativeSpellChecker","enterMode","CKEDITOR","ENTER_BR","font_defaultLabel","fontFamily","fontSize_defaultLabel","removePlugins","sizes","fontSize_sizes","newMail","forward","editDraft","addNote","removeAttachment","saveDraft","loadLastMessage","verify","Attachments","sendMail","getLastMessage","lastMsgDirection","lastMsgBody","ckEditorInstance","insertHtml","instances","isEmail","clearBody","reg","getTemplate","ComposeOpenchannelInteractionDialogController","sendOpenchannel","mapKey","ComposeSmsInteractionDialogController","sendSms","ComposeWhatsappInteractionDialogController","sendWhatsapp","DisposeInteractionDialogController","apiAccountRoute","accountProperty","mandatoryDispositionPause","MDPause","closeReason","TagInteractionDialogController","autocompleteRequireMatch","saveTag","addTags","TransferMessageDialogController","agents","queueMethod","queueNotifyMethod","onTransfer","AgentGeneralJscriptyController","mwFormResponseUtils","formViewer","showResetButton","showIncompleteSubmitButton","onSubmit","isJsonString","getResponseSheet","getResponseSheetRow","getResponseSheetHeaders","getQuestionWithResponseList","resetViewer","currentPage","starttime","responseData","enableUncompleteSave","pages","plength","elements","qlength","question","unpauseAgentOnSubmit","sendUnpauseOnSubmit","submitForm","completed","promisesQuestionReport","promisesAnswerReport","jscriptySessionReport","projectname","questions","jscriptyQuestionReport","questionId","SessionId","answers","jscriptyAnswerReport","incomplete","NotificationController","AgentGeneralPopupController","templateProvider","$templateFactory","fromUrl","AgentGeneralTemplate","controllerProvider","DashboardCustomController","customDashboard","onChangeVoiceQueues","goToEdit","widgets","draggable","resizable","getItems","CustomTemplate","_voiceQueues","mergeResources","abstract","AgentsController","listOrder","listOrderAsc","selectedAgents","editstate","teamadddialog","deleteconfirm","getAgents","createOrEditAgent","deleteAgent","exportSelectedAgents","deleteSelectedAgents","deselectAgents","selectAllAgents","TeamaddTemplate","CreateOrEditAgentDialogController","newAgent","autointernal","addNewAgent","saveAgent","agentFound","AgentChangeAvatarController","vm_ca","dropping","images","uploadingFile","uniqueIdentifier","media","fileReader","FileReader","readAsDataURL","onload","AgentchangepasswordController","agentForm","AgentPermissionsController","vm_pc","onChange","father","child","elm","AgentqueueaddController","penalty","apiName","allowedItems","startingAllowedItems","startingSelectedItems","pendingChanges","dualMultiselectOptions","showSelectAndDeselectAll","orderBy","line1","line2","line3","labelAll","labelSelected","itemsDifference","saveQueues","getSection","sectionName","getAllQueues","getAllowedResources","allowedResources","getAssociatedQueues","associatedQueues","currentItem","UserVoiceQueue","addQueues","removeQueues","removedItems","addedItems","AgentteamaddController","saveTeams","getTeams","getAllTeams","getAssociatedTeams","teams","associatedTeams","team","addTeams","removeTeams","AgentController","queueaddchannel","changepassworddialog","onEnableScreenRecordingByAgentSelection","onEnableAutomaticScreenRecordingSelection","gotoAgents","voiceContext","contexts","defaultEntry","associatedResources","currentSelection","canSelect","QueueaddTemplate","ChangepasswordTemplate","_arraySwitch","_valueSwitch","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording","CreateOrEditTeamDialogController","newTeam","addNewTeam","saveTeam","deleteTeam","teamFound","TeamagentaddController","realtime","saveAgents","getAllAgents","getAssociatedAgents","associatedAgents","UserTeam","addAgents","removeAgents","TeamsController","selectedTeams","editdialog","agentadddialog","createOrEditTeam","exportSelectedTeams","deleteSelectedTeams","deselectTeams","selectAllTeams","AgentaddTemplate","CreateOrEditTelephoneDialogController","telephone","newTelephone","addNewTelephone","saveTelephone","deleteTelephone","telephoneFound","TelephonechangepasswordController","telephoneForm","TelephoneController","gotoTelephones","TelephonesController","selectedTelephones","getTelephones","createOrEditTelephone","exportSelectedTelephones","deleteSelectedTelephones","deselectTelephones","selectAllTelephones","CreateOrEditUserProfileDialogController","userProfiles","newUserProfile","addNewUserProfile","saveUserProfile","deleteUserProfile","parsePermissions","userProfileFound","translatedCrudPermissions","selectedcrudPermissions","UserProfilecloneController","cloneUserProfile","UserProfilePermissionsController","modules","statusList","dashboardSections","onChangeEnableAllResources","manageResources","checkSectionResources","isItemDisabled","association","categoryName","skipSection","addSections","setSectionStatus","userProfileName","idsToRemove","removeSections","dialog","PermissionmanageTemplate","allResourcesEnabled","areAllResourcesEnabled","getAllResources","isChannel","extensionType","isInterval","isDisposition","reportType","analyticDefaultReport","defaults","analyticCustomReport","customs","reports","VoiceExtensionId","IntervalId","compareResources","associated","validSections","currentSection","generalDashboard","filteredSections","UserProfilepermissionsmanageController","dashboardItems","selectedSection","loadedSection","allReportsSelected","onChangeSection","onChangeVisibility","onChangeAutoAssociation","onChangeReportType","setPermission","saveSection","line4","labelSearch","setPendingState","updateReportsList","pending","setCrudPermissions","getAssociatedResources","loadSectionPermissions","associatedReports","filterReportResources","fullPath","getReportPath","deleted","previouslySelectedReports","filterSelectedReports","removeReportsByType","getReportTreeStructure","allowEdit","allowDelete","updateCrudPermissions","crud","treeStructure","getTreeStructure","subsection","Resources","getResourceTitle","hasPendingChanges","userProfileForm","tree","treeReports","analyticTreeReport","getPath","folder","alreadyExists","UserProfileController","permissionsmanagedialog","clonedialog","gotoUserProfiles","PermissionsmanageTemplate","CloneDialogTemplate","UserProfilesController","selectedUserProfiles","translatedcrudPermissions","getUserProfiles","createOrEditUserProfile","exportSelectedUserProfiles","deleteSelectedUserProfiles","deselectUserProfiles","selectAllUserProfiles","CreateOrEditUserDialogController","newUser","addNewUser","saveUser","deleteUser","userFound","UserapikeymanagerController","generateApiKey","removeApiKey","createApiKey","apiKey","api_key","UserChangeAvatarController","UserchangepasswordController","userForm","UserController","apikeymanagerdialog","gotoUsers","getApiKey","ApikeymanagerTemplate","UsersController","selectedUsers","createOrEditUser","exportSelectedUsers","deleteSelectedUsers","deselectUsers","selectAllUsers","UsersTemplate","UsersEditViewTemplate","AgentsTemplate","AgentsEditViewTemplate","TelephonesTemplate","TelephonesEditViewTemplate","TeamsTemplate","UserProfilesTemplate","UserProfilesEditViewTemplate","ContactsController","companiesMap","hover","selectedContacts","selectedTags","selectedList","selectedCompany","getAssignedCompanies","createOrEditContact","deleteContact","exportSelectedContacts","deleteSelectedContacts","deselectContacts","selectAllContacts","createTag","createList","createCompany","importContacts","CompanyId","tooltipVisible","assignedCompanies","pullAllBy","company","cmCompany","ImportTemplate","dateOfBirth","CreateOrEditContactDialogController","List","contactFound","queryFields","cf","raw","DuplicateContactDialogController","EditHopperDialogController","newHopper","saveHopper","hopperFound","ContactController","jscriptySessions","arraypriority","queryJscriptySession","gotoContacts","editCompany","onSelectList","onSelectListSuccess","getJscriptySessions","editHopper","createOrEditIvrCampaignHopper","getAssignedCompany","getAssignedTags","isCompanyAssociated","assignedTags","QueueCampaignsEditHoppersDialogTemplate","ivrCampaignHopper","IvrCampaignsEditHoppersDialogTemplate","deleteHopper","getHopperFinals","getHopperHistories","getCompanySectionPermissions","notify","ImportContactsDialogController","processing","stopping","pid","finish","affectedRows","failedRows","duplicatedRows","contactFields","motionBullFields","binding","duplicate","onChangeList","uploadCsv","getHeaderErrors","getArrayErrors","stopUpload","unix","updateResult","import","duplicates","socket_timestamp","elapsed","system","killProcess","MergeContactDialogController","change","searchTerm","showConfirm","merge","ContactsTemplate","EditViewTemplate","CompaniesController","selectedCompanies","gotocontactsgoto","getCompanies","createOrEditCompany","deleteCompany","exportSelectedCompanies","deleteSelectedCompanies","deselectCompanies","selectAllCompanies","CreateOrEditCompanyDialogController","newCompany","addNewCompany","saveCompany","companyFound","CompanyController","gotogoto","gotoCompanies","CreateOrEditGlobalCustomFieldDialogController","globalCustomFields","globalCustomField","sortable","animation","globalCustomFieldForm","newGlobalCustomField","actionType","addNewGlobalCustomField","saveGlobalCustomField","deleteGlobalCustomField","addItem","removeItems","globalCustomFieldFound","GlobalCustomFieldsController","selectedGlobalCustomFields","getGlobalCustomFields","createOrEditGlobalCustomField","exportSelectedGlobalCustomFields","deleteSelectedGlobalCustomFields","deselectGlobalCustomFields","selectAllGlobalCustomFields","CreateOrEditListDialogController","newList","addNewList","saveList","deleteList","listFound","ListagentaddController","UserList","ListCustomFieldsController","vm_dc","listCustomFields","selectedListCustomFields","getListCustomFields","createOrEditListCustomField","exportSelectedListCustomFields","deleteListCustomField","deleteSelectedListCustomFields","listCustomField","customField","CreateOrEditCustomFieldDialogController","customFieldForm","newCustomField","addNewCustomField","saveCustomField","deleteCustomField","addCustomField","customFieldFound","ListController","gotoLists","ListDispositionsController","selectedDispositions","first","second","third","getDispositions","createOrEditDisposition","deleteDisposition","exportSelectedDispositions","deleteSelectedDispositions","deselectDispositions","selectAllDispositions","CreateOrEditDispositionDialogTemplate","hasAnySubDispositions","ListsController","selectedLists","exportcsvcontactsexport","createOrEditList","exportSelectedLists","deleteSelectedLists","deselectLists","selectAllLists","getContactsCsv","ListsTemplate","CompaniesTemplate","CompaniesEditView","GlobalCustomFieldsTemplate","AbandonedCallsVoiceRealtimeController","assignTo","onSaveVoiceQueueReport","onUpdateVoiceQueueReport","queueType","AgentsVoiceRealtimeController","rpcAgents","helperClasses","rejectAtributes","availableStates","paginatedAgents","order","agentInternal","globalStatusFilter","pauseTypeFilter","queueAdd","unPause","showInfo","getAgentStatus","getAgentGlobalStatus","isPause","checkPause","isPartialPause","onSave","onUpdate","onConnect","onComplete","screenRecording","filteredAgents","globalStatusTime","globalStatus","pauseType","orderObj","lastPauseAt","destaccountcode","agent_id","agent_name","isIdle","voiceStatusTime","chatStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","openchannelStatusTime","faxStatusTime","screenrecording","OutboundCallsVoiceRealtimeController","rpcCalls","channelStatus","channelStatusOut","onRemove","channelstatedesc","dialstatus","callIndex","QueueCallsVoiceRealtimeController","rpcVoiceQueuesChannelsTmp","hangup","redirectToAgent","redirectToNumber","rpcVoiceQueuesChannel","getVoiceQueuesChannelHangup","exten","getVoiceQueuesChannelRedirect","QueueParamsVoiceRealtimeController","QueuesVoiceRealtimeController","createOrEditVoiceQueue","agentAdd","updateQueue","onPause","onLogin","paused","loggedInDb","HelperClasses","unregistered","lagged","reachable","unreachable","unknown","not_inuse","inuse","busy","invalid","unavailable","ringing","ringinuse","onhold","up","VoiceRealtimeController","TelephonesVoiceRealtimeController","rpcTelephones","statusClass","stateClass","TrunksVoiceRealtimeController","trunks","rpcTrunks","getTrunks","goToTrunk","indexRpc","indexTrunk","trunk","RealtimeTemplate","AgentsViewTemplate","TrunksViewTemplate","QueuesViewTemplate","QueueCallsViewTemplate","AbandonedcallsViewTemplate","QueueParamsViewTemplate","OutboundCallsViewTemplate","ChanSpiesController","chanSpies","selectedChanSpies","getChanSpies","createOrEditchanSpy","deletechanSpy","exportSelectedChanSpies","deleteSelectedChanSpies","deselectChanSpies","selectAllChanSpies","chanSpy","voiceChanSpy","CreateOrEditchanSpyDialogController","newchanSpy","recordingFormat","addNewchanSpy","savechanSpy","chanSpyFound","ContextsController","selectedContexts","getContexts","createOrEditContext","deleteContext","exportSelectedContexts","deleteSelectedContexts","deselectContexts","selectAllContexts","CreateOrEditContextDialogController","newContext","addNewContext","saveContext","contextFound","CreateOrEditInboundRouteDialogController","inboundroutes","inboundroute","newInboundRoute","appdata","addNewInboundRoute","saveInboundRoute","deleteInboundRoute","voiceExtension","inboundrouteFound","agi","Apps_agiDialogTemplate","Apps_customDialogTemplate","dial","Apps_dialDialogTemplate","externaldial","Apps_externaldialDialogTemplate","goto","Apps_gotoDialogTemplate","Apps_hangupDialogTemplate","internaldial","Apps_internaldialDialogTemplate","Apps_intervalDialogTemplate","playback","Apps_playbackDialogTemplate","Apps_queueDialogTemplate","ringgroup","Apps_ringgroupDialogTemplate","set","Apps_setDialogTemplate","voicemail","Apps_voicemailDialogTemplate","InboundRouteActionsController","vm_ac","inboundrouteApps","selectedInboundRouteApps","apps","app","appType","types","isApp","extraApi","defaultValues","general","multiple","separator","pull","applications","editInboundRouteApp","newIndex","rewriteRouting","getInboundRouteApps","editInterval","deleteInboundRouteApp","deleteSelectedInboundRouteApps","getIntervals","inboundrouteApp","appName","application","intervals","answerApps","extensions","before","nextIfTrue","nextIfFalse","addApplications","EditInboundAppagiDialogController","splitted","welcomemessage","accesskeyid","secretaccesskey","lexregion","botname","times","isNaN","callerID","saveInboundRouteApp","squareProject","cutdigits","agiDialog","EditInboundAppcustomDialogController","customDialog","EditInboundAppdialDialogController","tech","dialDialog","EditInboundAppexternaldialDialogController","externaldialDialog","EditInboundAppgotoDialogController","extension","gotoDialog","EditInboundApphangupDialogController","hangupDialog","EditInboundAppinternaldialDialogController","requiredSections","_users","sectionResources","internaldialDialog","EditInboundAppintervalDialogController","IndexFactory","newInterval","daysOfWeek","getDaysOfWeek","monthNumber","getMonthNumber","monthName","getMonthName","daysOfMonth","getDaysOfMonth","customInterval","timeRange","month","timeRangeFrom","timeRangeTo","setHours","setMinutes","dayOfWeekFrom","dayOfWeekTo","monthDayFrom","monthDayTo","monthFrom","monthTo","addNewInterval","saveInterval","getInterval","getHours","getMinutes","intervalFound","EditInboundAppplaybackDialogController","sounds","save_name","playbackDialog","EditInboundAppqueueDialogController","macro","gosub","rule","queueDialog","EditInboundAppringgroupDialogController","multipleUsers","ringgroupDialog","EditInboundAppsetDialogController","variable","setDialog","EditInboundAppvoicemailDialogController","voiceMail","voiceMails","mailbox","voicemailDialog","InboundRouteController","gotoInboundRoutes","InboundRoutesController","selectedInboundRoutes","getInboundRoutes","createOrEditInboundRoute","exportSelectedInboundRoutes","deleteSelectedInboundRoutes","deselectInboundRoutes","selectAllInboundRoutes","CreateOrEditInternalRouteDialogController","internalroutes","internalroute","newInternalRoute","addNewInternalRoute","saveInternalRoute","deleteInternalRoute","internalrouteFound","InternalRouteActionsController","internalrouteApps","selectedInternalRouteApps","editInternalRouteApp","getInternalRouteApps","deleteInternalRouteApp","deleteSelectedInternalRouteApps","internalrouteApp","EditInternalAppagiDialogController","saveInternalRouteApp","EditInternalAppcustomDialogController","EditInternalAppdialDialogController","EditInternalAppexternaldialDialogController","EditInternalAppgotoDialogController","EditInternalApphangupDialogController","EditInternalAppinternaldialDialogController","EditInternalAppintervalDialogController","EditInternalAppplaybackDialogController","EditInternalAppqueueDialogController","EditInternalAppringgroupDialogController","EditInternalAppsetDialogController","EditInternalAppvoicemailDialogController","InternalRouteController","gotoInternalRoutes","InternalRoutesController","selectedInternalRoutes","getInternalRoutes","createOrEditInternalRoute","exportSelectedInternalRoutes","deleteSelectedInternalRoutes","deselectInternalRoutes","selectAllInternalRoutes","CreateOrEditMusicOnHoldDialogController","musiconholds","musiconhold","newMusicOnHold","mode","addNewMusicOnHold","saveMusicOnHold","deleteMusicOnHold","voiceMusicOnHold","musiconholdFound","MusicOnHoldMohSoundsController","musiconholdMohSounds","selectedMusicOnHoldMohSounds","voiceMusicOnHoldDownload","getMusicOnHoldMohSounds","createOrEditMusicOnHoldMohSound","exportSelectedMusicOnHoldMohSounds","deleteMusicOnHoldMohSound","deleteSelectedMusicOnHoldMohSounds","VoiceMusicOnHoldId","mohSound","converted_format","musiconholdMohSound","getSounds","MohSoundsDialogTemplate","mohSounds","removeSound","id2","CreateOrEditMohSoundDialogController","newMohSound","addNewMohSound","saveMohSound","deleteMohSound","addSound","mohSoundFound","MusicOnHoldController","gotoMusicOnHolds","MusicOnHoldsController","selectedMusicOnHolds","getMusicOnHolds","createOrEditMusicOnHold","exportSelectedMusicOnHolds","deleteSelectedMusicOnHolds","deselectMusicOnHolds","selectAllMusicOnHolds","CreateOrEditOutboundRouteDialogController","outboundroutes","outboundroute","newOutboundRoute","outboundrouteApps","ngPattern","help","addNewOutboundRoute","saveOutboundRoute","deleteOutboundRoute","outboundrouteFound","voicePrefix","outboundApp","oldApp","oldParams","newParams","m","mlength","outbounddial","Apps_outbounddialDialogTemplate","OutboundRouteActionsController","selectedOutboundRouteApps","editOutboundRouteApp","getOutboundRouteApps","deleteOutboundRouteApp","deleteSelectedOutboundRouteApps","onVoiceExtensionUpdate","outboundrouteApp","rewriteOutboundDial","currPriority","EditoutboundAppcustomDialogController","saveOutboundRouteApp","EditoutboundAppintervalDialogController","EditoutboundAppoutbounddialDialogController","outbounddialDialog","OutboundRouteController","gotoOutboundRoutes","OutboundRoutesController","selectedOutboundRoutes","getOutboundRoutes","createOrEditOutboundRoute","exportSelectedOutboundRoutes","deleteSelectedOutboundRoutes","deselectOutboundRoutes","selectAllOutboundRoutes","CreateOrEditVoicemailDialogController","voicemails","newVoicemail","addNewVoicemail","saveVoicemail","deleteVoicemail","voicemailFound","VoicemailMessagesController","voicemailMessages","selectedVoicemailMessages","voiceMailMessageDownload","getVoicemailMessages","exportSelectedVoicemailMessages","deleteVoicemailMessage","deleteSelectedVoicemailMessages","voiceMailMessage","msg_id","voicemailMessage","VoicemailController","gotoVoicemails","VoicemailsController","selectedVoicemails","getVoicemails","createOrEditVoicemail","exportSelectedVoicemails","deleteSelectedVoicemails","deselectVoicemails","selectAllVoicemails","CreateOrEditvoicePrefixDialogController","voicePrefixes","newvoicePrefix","addNewvoicePrefix","savevoicePrefix","deletevoicePrefix","outboundRoutes","voicePrefixFound","voicePrefixagentaddController","UservoicePrefix","VoicePrefixesController","selectedVoicePrefixes","createOrEditvoicePrefix","exportSelectedVoicePrefixes","deleteSelectedVoicePrefixes","deselectVoicePrefixes","selectAllVoicePrefixes","CreateOrEditVoiceQueueDialogController","newVoiceQueue","strategy","retry","random_periodic_announce","announce_holdtime","announce_position","reportholdtime","autopause","timeoutrestart","setinterfacevar","setqueuevar","setqueueentryvar","addNewVoiceQueue","saveVoiceQueue","deleteVoiceQueue","voiceQueueFound","VoiceQueueagentaddController","VoiceQueueteamaddController","VoiceQueueController","gotoVoiceQueues","VoiceQueuesController","selectedVoiceQueues","gotorealtimegoto","exportSelectedVoiceQueues","deleteSelectedVoiceQueues","deselectVoiceQueues","selectAllVoiceQueues","CreateOrEditVoiceRecordingDialogController","newVoiceRecording","addNewVoiceRecording","saveVoiceRecording","deleteVoiceRecording","voiceRecordingFound","VoiceRecordingSentimentStatisticsController","vm_ss","VoiceRecordingController","gotoVoiceRecordings","VoiceRecordingsController","selectedVoiceRecordings","runtranscriberuntranscribesentiment","runtranscribesentimentruntranscribesentiment","runsentimentruntranscribesentiment","downloadtranscribefile2","downloadfile2","createOrEditVoiceRecording","exportSelectedVoiceRecordings","deleteSelectedVoiceRecordings","deselectVoiceRecordings","selectAllVoiceRecordings","runtranscribeSelectedVoiceRecordings","runTranscribe","runSentiment","transcribeStatus","runtranscribesentimentSelectedVoiceRecordings","runsentimentSelectedVoiceRecordings","checkFormat","lastIndexOf","_nameNoExtension","VoiceQueuesTemplate","VoiceQueuesEditViewTemplate","InboundRoutesTemplate","InboundRoutesEditViewTemplate","OutboundRoutesTemplate","OutboundRoutesEditViewTemplate","InternalRoutesTemplate","InternalRoutesEditViewTemplate","ContextsTemplate","VoicemailTemplate","VoicemailEditViewTemplate","MusicOnHoldTemplate","MusicOnHoldEditViewTemplate","VoiceRecordingsTemplate","VoiceRecordingsEditViewTemplate","ChanSpiesTemplate","VoicePrefixesOnHoldTemplate","AgentsChatRealtimeController","StaffQueueAddTemplate","QueuesChatRealtimeController","createOrEditChatQueue","onSaveMember","onRemoveMember","ChatQueueId","AgentAddTemplate","ChatRealtimeController","QueuesTemplate","ChatQueuesController","selectedChatQueues","deleteChatQueue","exportSelectedChatQueues","deleteSelectedChatQueues","deselectChatQueues","selectAllChatQueues","TeamAddTemplate","CreateOrEditChatQueueDialogController","newChatQueue","addNewChatQueue","saveChatQueue","chatQueueFound","ChatQueueagentaddController","UserChatQueue","ChatQueueteamaddController","ChatQueueController","gotoChatQueues","ChatWebsitesController","selectedChatWebsites","interactionsgoto","offlinemessagesgoto","createOrEditChatWebsite","deleteChatWebsite","exportSelectedChatWebsites","deleteSelectedChatWebsites","deselectChatWebsites","selectAllChatWebsites","chatWebsite","CreateOrEditChatWebsiteDialogController","newChatWebsite","header_shape","alignment","verticalAlignment","waitForTheAssignedAgent","notificationSound","queueTransferTimeout","agentTransferTimeout","addNewChatWebsite","saveChatWebsite","chatWebsiteFound","Apps_agentDialogTemplate","amazonlex","Apps_amazonlexDialogTemplate","autoreply","Apps_autoreplyDialogTemplate","Apps_closeDialogTemplate","dialogflow","Apps_dialogflowDialogTemplate","gotoif","Apps_gotoifDialogTemplate","gotop","Apps_gotopDialogTemplate","Apps_noopDialogTemplate","Apps_systemDialogTemplate","Apps_tagDialogTemplate","ChatWebsiteActionsController","chatWebsiteApps","selectedChatWebsiteApps","defaultValue","foreignKey","max","maxlength","editChatWebsiteApp","getChatWebsiteApps","deleteChatWebsiteApp","deleteSelectedChatWebsiteApps","chatWebsiteApp","getApplications","ChatWebsiteagentaddController","UserChatWebsite","ChatWebsiteChangeAvatarController","EditChatWebsiteAppagentDialogController","saveChatWebsiteApp","agentDialog","EditChatWebsiteAppamazonlexDialogController","amazonlexDialog","EditChatWebsiteAppautoreplyDialogController","autoreplyDialog","EditChatWebsiteAppcloseDialogController","EditChatWebsiteAppdialogflowDialogController","dialogflowDialog","EditChatWebsiteAppgotoifDialogController","truepriority","falsepriority","gotoifDialog","EditChatWebsiteAppgotopDialogController","gotopDialog","EditChatWebsiteAppintervalDialogController","EditChatWebsiteAppnoopDialogController","noopDialog","EditChatWebsiteAppqueueDialogController","EditChatWebsiteAppsystemDialogController","command","systemDialog","EditChatWebsiteApptagDialogController","TagId","tagDialog","ChatWebsiteChatCannedAnswersController","chatWebsiteChatCannedAnswers","selectedChatWebsiteChatCannedAnswers","getChatWebsiteChatCannedAnswers","createOrEditChatWebsiteChatCannedAnswer","exportSelectedChatWebsiteChatCannedAnswers","deleteChatWebsiteChatCannedAnswer","deleteSelectedChatWebsiteChatCannedAnswers","chatWebsiteChatCannedAnswer","getAnswers","CannedAnswerDialogTemplate","chatCannedAnswer","chatCannedAnswers","CreateOrEditChatCannedAnswerDialogController","newChatCannedAnswer","addNewChatCannedAnswer","saveChatCannedAnswer","deleteChatCannedAnswer","chatCannedAnswerFound","ChatWebsiteDispositionsController","DispositionsDialogTemplate","ChatWebsiteofflineFormController","vm_fonc","offlineForm","buttons","down","uselessFields","fromKey","$index","prevItem","nextItem","cmField","ChatWebsiteonlineFormController","onlineForm","ChatWebsitecustomerAvatarController","ChatWebsiteInteractionsController","chatWebsiteInteractions","selectedChatWebsiteInteractions","chatInteractionDownload","getChatWebsiteInteractions","spychatInteraction","exportSelectedChatWebsiteInteractions","deleteChatWebsiteInteraction","deleteSelectedChatWebsiteInteractions","buildAdvancedFilterFields","getQuickFilterResources","chatWebsiteInteraction","AgentInteractionAgentGeneralInteractionDialogTemplate","onShowing","ChatWebsitelogoController","ChatWebsiteOfflineMessagesController","chatWebsiteOfflineMessages","selectedChatWebsiteOfflineMessages","getChatWebsiteOfflineMessages","createOrEditChatWebsiteOfflineMessage","showOfflineMessageChatWebsiteOfflineMessage","exportSelectedChatWebsiteOfflineMessages","deleteChatWebsiteOfflineMessage","deleteSelectedChatWebsiteOfflineMessages","chatWebsiteOfflineMessage","getOfflineMessages","OfflineMessagesDialogTemplate","offlineMessage","offlineMessages","chatOfflineMessage","ShowOfflineMessageOfflineMessageDialogController","ChatWebsiteProactiveActionsController","chatWebsiteProactiveActions","selectedChatWebsiteProactiveActions","getChatWebsiteProactiveActions","createOrEditChatWebsiteChatProactiveAction","exportSelectedChatWebsiteProactiveActions","deleteChatWebsiteChatProactiveAction","deleteSelectedChatWebsiteProactiveActions","chatWebsiteChatProactiveAction","getProactiveActions","ProactiveDialogTemplate","chatProactiveAction","proactive","CreateOrEditChatProactiveActionDialogController","newChatProactiveAction","addNewChatProactiveAction","saveChatProactiveAction","deleteChatProactiveAction","chatProactiveActionFound","ChatWebsiteScriptController","script","end","ChatWebsitesystemAvatarController","ChatWebsiteController","gotoChatWebsites","ChatQueuesTemplate","ChatWebsitesTemplate","ChatWebsitesEditViewTemplate","ChatWebsiteChatDispositionsController","AgentsMailRealtimeController","StaffViewsAgentsEditQueueaddTemplate","QueuesMailRealtimeController","createOrEditMailQueue","mailQueue","MailQueueId","MailQueuesCreateDialogTemplate","MailQueuesEditAgentAddTemplate","MailRealtimeController","RealtimeAgentsViewTemplate","RealtimeQueuesViewTemplate","RealtimeAccountsView","rpcMailAccounts","CreateOrEditMailAccountDialogController","newMailAccount","cservice","cauthentication","addNewMailAccount","saveMailAccount","deleteMailAccount","mailAccountFound","MailAccountActionsController","mailAccountApps","selectedMailAccountApps","editMailAccountApp","getMailAccountApps","deleteMailAccountApp","deleteSelectedMailAccountApps","mailAccountApp","MailAccountagentaddController","UserMailAccount","EditMailAccountAppagentDialogController","saveMailAccountApp","EditMailAccountAppautoreplyDialogController","EditMailAccountAppcloseDialogController","EditMailAccountAppgotoifDialogController","EditMailAccountAppgotopDialogController","EditMailAccountAppintervalDialogController","EditMailAccountAppnoopDialogController","EditMailAccountAppqueueDialogController","EditMailAccountAppsystemDialogController","EditMailAccountApptagDialogController","MailAccountInteractionsController","mailAccountInteractions","selectedMailAccountInteractions","mailInteractionDownload","getMailAccountInteractions","spymailInteraction","exportSelectedMailAccountInteractions","deleteMailAccountInteraction","deleteSelectedMailAccountInteractions","mailAccountInteraction","MailAccountMailCannedAnswersController","mailAccountMailCannedAnswers","selectedMailAccountMailCannedAnswers","getMailAccountMailCannedAnswers","createOrEditMailAccountMailCannedAnswer","exportSelectedMailAccountMailCannedAnswers","deleteMailAccountMailCannedAnswer","deleteSelectedMailAccountMailCannedAnswers","mailAccountMailCannedAnswer","EditMailCannedAnswersDialogTemplate","mailCannedAnswer","mailCannedAnswers","CreateOrEditMailCannedAnswerDialogController","newMailCannedAnswer","addNewMailCannedAnswer","saveMailCannedAnswer","deleteMailCannedAnswer","mailCannedAnswerFound","MailAccountDispositionsController","MailAccountController","gotoMailAccounts","MailAccountEditAgentAddTemplate","MailAccountsController","selectedMailAccounts","verifysmtpverifysmtp","createOrEditMailAccount","exportSelectedMailAccounts","deleteSelectedMailAccounts","deselectMailAccounts","selectAllMailAccounts","EditAgentAddTemplate","CreateOrEditMailQueueDialogController","newMailQueue","addNewMailQueue","saveMailQueue","deleteMailQueue","mailQueueFound","MailQueueagentaddController","UserMailQueue","MailQueueteamaddController","MailQueueController","gotoMailQueues","MailQueuesEditTeamaddTemplate","MailQueuesEditAgentaddTemplate","MailQueuesController","selectedMailQueues","exportSelectedMailQueues","deleteSelectedMailQueues","deselectMailQueues","selectAllMailQueues","EditTeamAddTemplate","CreateOrEditMailSubstatusDialogController","mailSubtatuses","newMailSubstatus","addNewMailSubstatus","saveMailSubstatus","deleteMailSubstatus","mailSubstatusFound","MailSubstatusesController","selectedMailSubstatuses","getMailSubstatuses","createOrEditMailSubstatus","exportSelectedMailSubstatuses","deleteSelectedMailSubstatuses","deselectMailSubstatuses","selectAllMailSubstatuses","MailQueuestTemplate","MailQueuesEditViewTemplate","MailAccountsTemplate","MailAccountsEditViewTemplate","MailSubtatusesTemplate","AgentsSmsRealtimeController","EditQueueaddTemplate","QueuesSmsRealtimeController","createOrEditSmsQueue","smsQueue","SmsQueueId","SmsQueuesCreateDialogTemplate","SmsQueuesEditAgentaddTemplate","SmsRealtimeController","CreateOrEditSmsAccountDialogController","newSmsAccount","addNewSmsAccount","saveSmsAccount","deleteSmsAccount","smsAccountFound","SmsAccountActionsController","smsAccountApps","selectedSmsAccountApps","editSmsAccountApp","getSmsAccountApps","deleteSmsAccountApp","deleteSelectedSmsAccountApps","smsAccountApp","SmsAccountagentaddController","UserSmsAccount","EditSmsAccountAppagentDialogController","saveSmsAccountApp","EditSmsAccountAppamazonlexDialogController","EditSmsAccountAppautoreplyDialogController","EditSmsAccountAppcloseDialogController","EditSmsAccountAppdialogflowDialogController","EditSmsAccountAppgotoifDialogController","EditSmsAccountAppgotopDialogController","EditSmsAccountAppintervalDialogController","EditSmsAccountAppnoopDialogController","EditSmsAccountAppqueueDialogController","EditSmsAccountAppsystemDialogController","EditSmsAccountApptagDialogController","SmsAccountInteractionsController","smsAccountInteractions","selectedSmsAccountInteractions","smsInteractionDownload","getSmsAccountInteractions","spysmsInteraction","exportSelectedSmsAccountInteractions","deleteSmsAccountInteraction","deleteSelectedSmsAccountInteractions","smsAccountInteraction","SmsAccountSmsCannedAnswersController","smsAccountSmsCannedAnswers","selectedSmsAccountSmsCannedAnswers","getSmsAccountSmsCannedAnswers","createOrEditSmsAccountSmsCannedAnswer","exportSelectedSmsAccountSmsCannedAnswers","deleteSmsAccountSmsCannedAnswer","deleteSelectedSmsAccountSmsCannedAnswers","smsAccountSmsCannedAnswer","SmsCannedAnswerDialogTemplate","smsCannedAnswer","smsCannedAnswers","CreateOrEditSmsCannedAnswerDialogController","newSmsCannedAnswer","addNewSmsCannedAnswer","saveSmsCannedAnswer","deleteSmsCannedAnswer","smsCannedAnswerFound","SmsAccountDispositionsController","SmsAccountController","gotoSmsAccounts","SmsAccountsController","selectedSmsAccounts","createOrEditSmsAccount","exportSelectedSmsAccounts","deleteSelectedSmsAccounts","deselectSmsAccounts","selectAllSmsAccounts","CreateOrEditSmsQueueDialogController","newSmsQueue","addNewSmsQueue","saveSmsQueue","deleteSmsQueue","smsQueueFound","SmsQueueagentaddController","UserSmsQueue","SmsQueueteamaddController","SmsQueueController","gotoSmsQueues","SmsQueuesController","selectedSmsQueues","exportSelectedSmsQueues","deleteSelectedSmsQueues","deselectSmsQueues","selectAllSmsQueues","SmsQueuestTemplate","SmsQueuesEditViewTemplate","SmsAccountsTemplate","SmsAccountsEditViewTemplate","AgentsOpenchannelRealtimeController","QueuesOpenchannelRealtimeController","createOrEditOpenchannelQueue","openchannelQueue","OpenchannelQueueId","OpenchannelQueuesCreateDialogTemplate","OpenchannelQueuesEditAgentAddTemplate","OpenchannelRealtimeController","CreateOrEditOpenchannelAccountDialogController","newOpenchannelAccount","addNewOpenchannelAccount","saveOpenchannelAccount","deleteOpenchannelAccount","openchannelAccountFound","OpenchannelAccountActionsController","openchannelAccountApps","selectedOpenchannelAccountApps","editOpenchannelAccountApp","getOpenchannelAccountApps","deleteOpenchannelAccountApp","deleteSelectedOpenchannelAccountApps","openchannelAccountApp","OpenchannelAccountagentaddController","UserOpenchannelAccount","EditOpenchannelAccountAppagentDialogController","saveOpenchannelAccountApp","EditOpenchannelAccountAppamazonlexDialogController","EditOpenchannelAccountAppautoreplyDialogController","EditOpenchannelAccountAppcloseDialogController","EditOpenchannelAccountAppdialogflowDialogController","EditOpenchannelAccountAppgotoifDialogController","EditOpenchannelAccountAppgotopDialogController","EditOpenchannelAccountAppintervalDialogController","EditOpenchannelAccountAppnoopDialogController","EditOpenchannelAccountAppqueueDialogController","EditOpenchannelAccountAppsystemDialogController","EditOpenchannelAccountApptagDialogController","OpenchannelAccountInteractionsController","openchannelAccountInteractions","selectedOpenchannelAccountInteractions","openchannelInteractionDownload","getOpenchannelAccountInteractions","spyopenchannelInteraction","exportSelectedOpenchannelAccountInteractions","deleteOpenchannelAccountInteraction","deleteSelectedOpenchannelAccountInteractions","openchannelAccountInteraction","OpenchannelAccountOpenchannelCannedAnswersController","openchannelAccountOpenchannelCannedAnswers","selectedOpenchannelAccountOpenchannelCannedAnswers","getOpenchannelAccountOpenchannelCannedAnswers","createOrEditOpenchannelAccountOpenchannelCannedAnswer","exportSelectedOpenchannelAccountOpenchannelCannedAnswers","deleteOpenchannelAccountOpenchannelCannedAnswer","deleteSelectedOpenchannelAccountOpenchannelCannedAnswers","openchannelAccountOpenchannelCannedAnswer","EditOpenchannelCannedAnswersDialogTemplate","openchannelCannedAnswer","openchannelCannedAnswers","CreateOrEditOpenchannelCannedAnswerDialogController","newOpenchannelCannedAnswer","addNewOpenchannelCannedAnswer","saveOpenchannelCannedAnswer","deleteOpenchannelCannedAnswer","openchannelCannedAnswerFound","OpenchannelAccountDispositionsController","OpenchannelAccountController","gotoOpenchannelAccounts","excludedFields","OpenChannelAccountEditAgentAddTemplate","OpenchannelAccountsController","selectedOpenchannelAccounts","createOrEditOpenchannelAccount","exportSelectedOpenchannelAccounts","deleteSelectedOpenchannelAccounts","deselectOpenchannelAccounts","selectAllOpenchannelAccounts","CreateOrEditOpenchannelQueueDialogController","newOpenchannelQueue","addNewOpenchannelQueue","saveOpenchannelQueue","deleteOpenchannelQueue","openchannelQueueFound","OpenchannelQueueagentaddController","UserOpenchannelQueue","OpenchannelQueueteamaddController","OpenchannelQueueController","gotoOpenchannelQueues","OpenchannelQueuesEditTeamaddTemplate","OpenchannelQueuesEditAgentaddTemplate","OpenchannelQueuesController","selectedOpenchannelQueues","exportSelectedOpenchannelQueues","deleteSelectedOpenchannelQueues","deselectOpenchannelQueues","selectAllOpenchannelQueues","OpenchannelQueuestTemplate","OpenchannelQueuesEditViewTemplate","OpenchannelAccountsTemplate","OpenchannelAccountsEditViewTemplate","FaxAccountsRealtimeController","rpcFaxAccounts","goToFaxAccount","in","lastIn","out","lastOut","AgentsFaxRealtimeController","QueuesFaxRealtimeController","createOrEditFaxQueue","faxQueue","FaxQueueId","FaxRealtimeController","TrunksFaxRealtimeController","RealtimeAgentsTemplate","RealtimeTrunksTemplate","RealtimeQueuesTemplate","RealtimeAccountsTemplate","CreateOrEditFaxAccountDialogController","newFaxAccount","addNewFaxAccount","saveFaxAccount","deleteFaxAccount","TrunkId","addAccountApplications","updateAccountApplications","faxAccountFound","FaxAccountActionsController","faxAccountApps","selectedFaxAccountApps","editFaxAccountApp","getFaxAccountApps","deleteFaxAccountApp","deleteSelectedFaxAccountApps","faxAccountApp","FaxAccountagentaddController","UserFaxAccount","EditFaxAccountAppagentDialogController","saveFaxAccountApp","EditFaxAccountAppcloseDialogController","EditFaxAccountAppgotoifDialogController","EditFaxAccountAppgotopDialogController","EditFaxAccountAppintervalDialogController","EditFaxAccountAppnoopDialogController","EditFaxAccountAppqueueDialogController","EditFaxAccountAppsystemDialogController","EditFaxAccountApptagDialogController","FaxAccountDispositionsController","FaxAccountInteractionsController","faxAccountInteractions","selectedFaxAccountInteractions","faxInteractionDownload","getFaxAccountInteractions","spyfaxInteraction","exportSelectedFaxAccountInteractions","deleteFaxAccountInteraction","deleteSelectedFaxAccountInteractions","faxAccountInteraction","FaxAccountController","gotoFaxAccounts","FaxAccountsController","selectedFaxAccounts","createOrEditFaxAccount","exportSelectedFaxAccounts","deleteSelectedFaxAccounts","deselectFaxAccounts","selectAllFaxAccounts","selectionExists","selection","CreateOrEditFaxQueueDialogController","newFaxQueue","addNewFaxQueue","saveFaxQueue","deleteFaxQueue","faxQueueFound","FaxQueueagentaddController","UserFaxQueue","FaxQueueteamaddController","FaxQueueController","gotoFaxQueues","TeamTemplate","FaxQueuesController","selectedFaxQueues","exportSelectedFaxQueues","deleteSelectedFaxQueues","deselectFaxQueues","selectAllFaxQueues","Template","ATemplate","BTemplate","FaxQueuesTemplate","FaxQueuesEditViewTemplate","FaxAccountsTemplate","FaxAccountsEditViewTemplate","CreateOrEditDispositionDialogController","newDisposition","initializeParentDispositions","onFirstLevelSelection","addNewDisposition","parentDisposition","ParentId","getAllDispositions","allDispositions","setParentDisposition","dispositionFound","DispositionsController","DispositionsTemplate","CreateOrEditTriggerDialogController","triggers","trigger","newTrigger","addNewTrigger","saveTrigger","deleteTrigger","t","TriggerActionsController","triggerActions","selectedTriggerActions","integrationTypes","zendesk","salesforce","sugarcrm","freshdesk","desk","zoho","vtiger","dynamics365","servicenow","freshsales","motionBarOptions","getTriggerActions","createOrEditTriggerAction","exportSelectedTriggerActions","deleteSelectedTriggerActions","ActionId","data1","getIntegrationsAccounts","compact","uniq","attribute","getTemplates","templates","data2","getExternalResources","getActions","triggerAction","deleteTriggerAction","CreateOrEditActionDialogController","newAction","allowedStandardFields","addNewAction","saveAction","deleteAction","onActionInit","onIntegrationInit","onSearchFieldsInit","onActionSelection","onIntegrationSelection","onListSelection","onTypeSelection","onAutocreateSelection","onIntegrationAccountSelection","hasIntegrationsPermissions","getContactFields","listFields","clearActionDataValues","data3","data4","data5","isIntegrationDisabled","configurations","parseSearchFields","_action","addAction","TriggerAllConditionsController","triggerAllConditions","selectedTriggerAllConditions","lastevent","callStatuses","complete","rejected","called","nosuchnumber","noanswer","congestion","agentreject","messageStatuses","getTriggerAllConditions","createOrEditTriggerAllCondition","exportSelectedTriggerAllConditions","deleteSelectedTriggerAllConditions","TriggerAllId","getAccounts","_queues","getAllConditions","triggerAllCondition","allCondition","allConditions","deleteTriggerAllCondition","CreateOrEditAllConditionDialogController","allconditions","newAllCondition","addNewAllCondition","saveAllCondition","deleteAllCondition","addAllCondition","allConditionFound","TriggerAnyConditionsController","triggerAnyConditions","selectedTriggerAnyConditions","getTriggerAnyConditions","createOrEditTriggerAnyCondition","exportSelectedTriggerAnyConditions","deleteTriggerAnyCondition","deleteSelectedTriggerAnyConditions","TriggerAnyId","getAnyConditions","triggerAnyCondition","anyCondition","anyConditions","onFieldSelection","triggerallConditions","TriggerController","gotoTriggers","TriggersController","selectedTriggers","goToEditState","createOrEditTrigger","getTriggers","exportSelectedTriggers","deleteSelectedTriggers","deselectTriggers","selectAllTriggers","TriggersTemplate","CreateOrEditAnyConditionDialogController","CannedAnswersController","cannedAnswers","selectedCannedAnswers","getCannedAnswers","createOrEditCannedAnswer","deleteCannedAnswer","exportSelectedCannedAnswers","deleteSelectedCannedAnswers","deselectCannedAnswers","selectAllCannedAnswers","CreateOrEditCannedAnswerDialogController","newCannedAnswer","addNewCannedAnswer","saveCannedAnswer","cannedAnswerFound","CreateOrEditCustomDashboardDialogController","customDashboards","newCustomDashboard","addNewCustomDashboard","saveCustomDashboard","deleteCustomDashboard","customDashboardFound","CustomDashboardsController","selectedCustomDashboards","gotodashboardgoto","getCustomDashboards","createOrEditCustomDashboard","exportSelectedCustomDashboards","deleteSelectedCustomDashboards","deselectCustomDashboards","selectAllCustomDashboards","CustomDashboardcloneController","cloneCustomDashboard","CustomDashboardItemsController","vm_cd","createOrEditWidget","deleteWidget","handle","handleUpdateWidget","dashboardItem","DashboardDialogTemplate","dashboarditem","CreateOrEditDashboardItemDialogController","newDashboardItem","selectedReport","attrUrl","attrHourFormat","attrTimezone","attrMetric","attrSerie1","attrSerie2","attrSerie3","attrRefresh","attrFontSize","currentReport","attrReport","addNewDashboardItem","saveDashboardItem","deleteDashboardItem","getReports","selectReport","closeReportDialog","searchReport","attrVoiceQueues","dashboarditemFound","getConfiguration","core","check_callback","worker","plugins","getEvents","customTreeLoaded","select_node","selectCustomNode","defaultTreeLoaded","selectDefaultNode","treeDefaultInstance","jstree","deselect_all","close_all","currentNode","currentPath","treeCustomInstance","get_path","get_node","selected","allowedReports","treeDefaultData","treeCustomData","treeConfig","treeDefaultEvents","treeCustomEvents","TreereportsTemplate","autoWrap","dashboarditemForm","$setDirty","CustomDashboardController","gotoCustomDashboards","CreateOrEditIntervalDialogController","deleteInterval","EditAppintervalDialogController","IntervalIntervalsController","intervalIntervals","selectedIntervalIntervals","sortableTable","addIntervals","models","getIntervalIntervals","createOrEditIntervalInterval","exportSelectedIntervalIntervals","deleteIntervalInterval","deleteSelectedIntervalIntervals","intervalInterval","AppsIntervalTemplate","IntervalController","gotoIntervals","IntervalsController","selectedIntervals","createOrEditInterval","exportSelectedIntervals","deleteSelectedIntervals","deselectIntervals","selectAllIntervals","CreateOrEditPauseDialogController","newPause","addNewPause","savePause","deletePause","pauseFound","PausesController","selectedPauses","getPauses","createOrEditPause","exportSelectedPauses","deleteSelectedPauses","deselectPauses","selectAllPauses","CreateOrEditScheduleDialogController","schedules","schedule","newSchedule","startAt","endAt","cron","subtractNumber","subtractUnit","sendIfEmpty","reportId","addNewSchedule","saveSchedule","deleteSchedule","scheduleFound","TreeReportsTemplate","scheduleForm","SchedulesController","selectedScheduler","runconfirm","getScheduler","createOrEditSchedule","exportSelectedScheduler","deleteSelectedScheduler","deselectScheduler","selectAllScheduler","CreateOrEditSoundDialogController","newSound","addNewSound","saveSound","deleteSound","soundFound","SoundsController","selectedSounds","createOrEditSound","exportSelectedSounds","deleteSelectedSounds","deselectSounds","selectAllSounds","uploadSound","UploadDialogTemplate","UploadSoundDialogController","uploadSounds","uploadState","uploadError","uploadComplete","uploadedFile","CreateOrEditTagDialogController","newTag","addNewTag","deleteTag","tagFound","TagsController","createOrEditTag","exportSelectedTags","deleteSelectedTags","deselectTags","selectAllTags","CreateOrEditTemplateDialogController","newTemplate","addNewTemplate","saveTemplate","deleteTemplate","templateFound","TemplatesController","selectedTemplates","createOrEditTemplate","exportSelectedTemplates","deleteSelectedTemplates","deselectTemplates","selectAllTemplates","CreateOrEditTrunkDialogController","newTrunk","dtmfmode","qualify","t38pt_udptl","addNewTrunk","saveTrunk","deleteTrunk","trunkFound","TrunkcloneController","cloneTrunk","TrunkController","gotoTrunks","CloneTemplate","TrunksController","selectedTrunks","createOrEditTrunk","exportSelectedTrunks","deleteSelectedTrunks","deselectTrunks","selectAllTrunks","CreateOrEditVariableDialogController","newVariable","addNewVariable","saveVariable","deleteVariable","variableFound","VariablesController","selectedVariables","getVariables","createOrEditVariable","exportSelectedVariables","deleteSelectedVariables","deselectVariables","selectAllVariables","CannedAnswersTemplate","CustomDashboardsTemplate","CustomDashboardsEditViewTemplate","IntervalsTemplate","IntervalsEditViewTemplate","PausesTemplate","ScheduleTemplate","SoundsTemplate","TagsTemplate","TemplatesTemplate","TrunksTemplate","TrunksEditViewTemplate","VariablesTemplate","CreateOrEditSquareProjectDialogController","openFromEditor","newWindow","newProject","addNewProject","saveProject","deleteProject","addSquareProjects","projectFound","removeSquareProjects","MxGraphDialogController","ispeechAsrModel","ispeechAsrLanguage","googleAsrLanguage","ispeechTtsLanguage","googleCloudTtslanguageCode","googleTtsLanguage","databases","cell","saveCallback","awsPollyVoice","awsPollyRegion","dialogFlowLanguage","awsLexRegion","requiredFields","menu","getdigits","getsecretdigits","vswitch","database","ext_dial","math","gotoc","saydigits","saynumber","sayphonetic","goal","gotoiftime","subproject","sendSMS","google_cloud_tts","tts","ispeechtts","ispeechasr","custom_app","googleasr","awspolly","lumenvoxtts","sestektts","lumenvoxasr","sestekasr","tildeasr","awslex","sesteknda","restapi","mrcpsynth","mrcprecog","defaultValueFields","helpFields","cellName","tagName","authMethod","ndagenerate_audio","ndaactivity_type","hiddendigitspos","intkey","ispeech_asr_language","ispeech_tts_language","languageCode","ssmlGender","google_tts_language","google_asr_language","google_cloud_tts_text_type","aws_polly_region","aws_polly_voice","aws_text_type","callback_priority","findBy","dialogflow_language","aws_lex_region","getMap","getAssignedValues","getGroupedMap","groupKey","parents","son","mappedValues","sip_id","trunk_name","trunk_id","file_id","variable_id","odbc_id","project_id","interval_id","account_id","template_id","list_id","sms_account_id","pause_id","mergedValues","getAssignedUser","getAssignedTrunkByName","getAssignedTrunkById","getAssignedQueue","getAssignedSound","getAssignedVariable","getAssignedOdbc","getAssignedProject","getAssignedContext","getAssignedInterval","getAssignedMailAccount","getAssignedTemplate","getAssignedList","getAssignedSmsAccount","getAssignedPause","currentValue","isUserAssociated","isListAssociated","isTrunkAssociated","isQueueAssociated","isSoundAssociated","isVariableAssociated","isOdbcAssociated","squareOdbc","odbc","isProjectAssociated","isContextAssociated","isIntervalAssociated","isMailAccountAssociated","isSmsAccountAssociated","isTemplateAssociated","isPauseAssociated","stringToNumber","parseFloat","MxGraphEditXMLController","currentXML","preproduction","MxGraphImportXMLController","readAsText","xml","MxGraphUpdateInfoController","notes","MxGraphOpenProjectController","ProjectspermissionaddController","buildStructure","MxGraphSaveProjectAsController","EditorUi","Editor","ProjectController","saveOrPublishProject","openDialog","openProject","saveProjectAs","updateInfo","editXML","importXML","gotoProjects","ui","openString","EditDialogTemplate","OpenTemplate","SaveAsTemplate","getVariableSectionPermissions","VariablesCreateDialogTemplate","InfoTemplate","EditTemplate","production","ProjectsController","selectedProjects","getProjects","createOrEditProject","exportSelectedProjects","deleteSelectedProjects","deselectProjects","selectAllProjects","ProjectsTemplate","ProjectsEditViewTemplate","CreateOrEditOdbcDialogController","odbcs","newOdbc","addNewOdbc","saveOdbc","deleteOdbc","odbcFound","OdbcsController","selectedODBC","testtestOdbc","getODBC","createOrEditOdbc","exportSelectedODBC","deleteSelectedODBC","deselectODBC","selectAllODBC","ODBCSCreateDialogTemplate","CreateOrEditSquareRecordingDialogController","squareRecordings","squareRecording","newSquareRecording","addNewSquareRecording","saveSquareRecording","deleteSquareRecording","squareRecordingFound","SquareRecordingsController","selectedSquareRecordings","getSquareRecordings","createOrEditSquareRecording","exportSelectedSquareRecordings","deleteSelectedSquareRecordings","deselectSquareRecordings","selectAllSquareRecordings","ODBCSTemplate","SquareRecordingsTemplate","CopyReportDialogController","treeCustomConfig","copyReport","_newReport","joins","_fields","bulkCreate","CreateOrEditReportDialogController","describeTable","joinTables","newReport","tables","joinTypes","addNewReport","saveReport","deleteReport","selectedTableChange","removeJoin","endpoint","parentKey","foreignTable","reportFound","ReportConditionsController","sqlUtil","vm_rc","getConditions","isValueByCondition","rules","getColumns","DescribeTable","mapTableApi","cm_companies","cm_contacts","cm_hopper","cm_hopper_final","cm_hopper_history","cm_lists","chat_websites","chat_queues","chat_interactions","chat_messages","chat_offline_messages","report_chat_queue","report_chat_transfer","mail_accounts","mail_queues","mail_interactions","mail_messages","report_mail_queue","report_mail_transfer","openchannel_accounts","openchannel_queues","openchannel_interactions","openchannel_messages","report_openchannel_queue","report_openchannel_transfer","sms_accounts","sms_queues","sms_interactions","sms_messages","report_sms_queue","report_sms_transfer","fax_accounts","fax_queues","fax_interactions","fax_messages","report_fax_transfer","report_fax_queue","report_call","report_agent","report_square","report_member","report_queue","report_square_details","report_dial","report_jscripty_sessions","report_jscripty_questions","report_jscripty_answers","voice_recordings","cdr","whatsapp_accounts","whatsapp_queues","whatsapp_interactions","whatsapp_messages","report_whatsapp_queue","report_whatsapp_transfer","CreateOrEditReportFieldDialogController","reportFields","reportField","metrics","newReportField","function","MetricId","addNewReportField","saveReportField","deleteReportField","reportFieldFound","ReportFieldsController","vm_rf","functions","getFunctions","formats","getFormats","getGroupBy","getOrderBy","selectedReportFields","addFields","getReportFields","createOrEditReportField","deleteSelectedReportFields","getMetricName","getMetricValue","analyticMetric","EditFieldDialogTemplate","metric","ReportController","gotoReports","previewReport","queryReport","mapArray","sql","queryResult","PreviewReportDialogController","ReportsController","selectedReports","customTree","copydialog","previewdialog","rundialog","createOrEditReport","importReport","exportSelectedReports","deleteSelectedReports","deselectReports","selectAllReports","treeDefaultConfig","MetricsCopyDialogTemplate","get_json","MetricsPreviewDialogTemplate","MetricsRunDialogTemplate","_metrics","encodeURIComponent","MetricsCreateDialogTemplate","flowFile","decodedJSONString","atob","updateTree","contextmenu","contextActions","create_node","edit","rename","_disabled","get_parent","delete_node","deleteReportsByParents","children_d","rename_node","move_node","RunReportDialogController","export","runReport","refreshDate","exportDate","RunWebDialogTemplate","WebReportDialogController","ReportsTemplate","queries","foreignTableFields","CreateOrEditExtractedReportDialogController","extractedReports","extractedReport","newExtractedReport","addNewExtractedReport","saveExtractedReport","deleteExtractedReport","analyticExtractedReport","extractedReportFound","ExtractedReportsController","selectedExtractedReports","getExtractedReports","createOrEditExtractedReport","exportSelectedExtractedReports","deleteSelectedExtractedReports","deselectExtractedReports","selectAllExtractedReports","savename","CreateOrEditMetricDialogController","newMetric","addNewMetric","saveMetric","deleteMetric","metricFound","MetricsController","selectedMetrics","getMetrics","createOrEditMetric","exportSelectedMetrics","deleteSelectedMetrics","deselectMetrics","selectAllMetrics","MetricsTemplate","ExtractedReportsTemplate","CreateOrEditDeskAccountDialogController","deskAccounts","deskAccount","newDeskAccount","authType","serverUrl","addNewDeskAccount","saveDeskAccount","deleteDeskAccount","intDeskAccount","deskAccountFound","DeskAccountsController","selectedDeskAccounts","testtestintegrationaccount","getDeskAccounts","createOrEditDeskAccount","exportSelectedDeskAccounts","deleteSelectedDeskAccounts","deselectDeskAccounts","selectAllDeskAccounts","DeskAccountConfigurationsController","vm_cc","deskConfiguration","selectedDeskConfiguration","getDeskConfiguration","createOrEditDeskConfiguration","deleteDeskConfiguration","selectTagsChanged","intDeskConfiguration","getConfigurations","variablesById","getSubjects","subjects","getDescriptions","descriptions","ConfigurationsDialogTemplate","selectedSubjects","createOrEditSubject","deleteSubjectConfirm","deleteSelectedSubjects","ItemsDialogTemplate","deleteSubject","intDeskField","selectedDescriptions","createOrEditDescription","deleteDescriptionConfirm","deleteSelectedDescriptions","deleteDescription","selectedFields","createOrEditField","deleteFieldConfirm","deleteSelectedFields","deleteField","CreateOrEditDeskConfigurationDialogController","newDeskConfiguration","addNewDeskConfiguration","saveDeskConfiguration","addConfiguration","deskConfigurationFound","CreateOrEditDeskAccountItemDialogController","newItem","addNewItem","getSelectedVariable","voiceAgentReport","voiceAgentReporDescribe","voiceAgentReportColumns","voiceDialReport","voiceDialReportDescribe","voiceDialReportColumns","ticketType","accountConnected","idField","nameField","itemFound","variableName","DeskAccountController","gotoDeskAccounts","CreateOrEditDynamics365AccountDialogController","dynamics365Accounts","dynamics365Account","newDynamics365Account","addNewDynamics365Account","saveDynamics365Account","deleteDynamics365Account","intDynamics365Account","dynamics365AccountFound","Dynamics365AccountsController","selectedDynamics365Accounts","getDynamics365Accounts","createOrEditDynamics365Account","exportSelectedDynamics365Accounts","deleteSelectedDynamics365Accounts","deselectDynamics365Accounts","selectAllDynamics365Accounts","Dynamics365AccountConfigurationsController","dynamics365Configuration","selectedDynamics365Configuration","getDynamics365Configuration","createOrEditDynamics365Configuration","deleteDynamics365Configuration","intDynamics365Configuration","ConfigurationDialogTemplate","ItemDialogTemplate","intDynamics365Field","CreateOrEditDynamics365ConfigurationDialogController","newDynamics365Configuration","addNewDynamics365Configuration","saveDynamics365Configuration","dynamics365ConfigurationFound","CreateOrEditDynamics365AccountItemDialogController","Dynamics365AccountController","gotoDynamics365Accounts","CreateOrEditFreshdeskAccountDialogController","freshdeskAccounts","freshdeskAccount","newFreshdeskAccount","addNewFreshdeskAccount","saveFreshdeskAccount","deleteFreshdeskAccount","intFreshdeskAccount","freshdeskAccountFound","FreshdeskAccountConfigurationsController","freshdeskConfiguration","selectedFreshdeskConfiguration","getFreshdeskConfiguration","createOrEditFreshdeskConfiguration","deleteFreshdeskConfiguration","intFreshdeskConfiguration","intFreshdeskField","CreateOrEditFreshdeskConfigurationDialogController","newFreshdeskConfiguration","addNewFreshdeskConfiguration","saveFreshdeskConfiguration","freshdeskConfigurationFound","CreateOrEditFreshdeskAccountItemDialogController","FreshdeskAccountController","gotoFreshdeskAccounts","FreshdeskAccountsController","selectedFreshdeskAccounts","getFreshdeskAccounts","createOrEditFreshdeskAccount","exportSelectedFreshdeskAccounts","deleteSelectedFreshdeskAccounts","deselectFreshdeskAccounts","selectAllFreshdeskAccounts","CreateOrEditFreshsalesAccountDialogController","freshsalesAccounts","freshsalesAccount","newFreshsalesAccount","addNewFreshsalesAccount","saveFreshsalesAccount","deleteFreshsalesAccount","intFreshsalesAccount","freshsalesAccountFound","FreshsalesAccountConfigurationsController","freshsalesConfiguration","selectedFreshsalesConfiguration","getFreshsalesConfiguration","createOrEditFreshsalesConfiguration","deleteFreshsalesConfiguration","intFreshsalesConfiguration","intFreshsalesField","CreateOrEditFreshsalesConfigurationDialogController","newFreshsalesConfiguration","addNewFreshsalesConfiguration","saveFreshsalesConfiguration","freshsalesConfigurationFound","CreateOrEditFreshsalesAccountItemDialogController","FreshsalesAccountController","gotoFreshsalesAccounts","FreshsalesAccountsController","selectedFreshsalesAccounts","getFreshsalesAccounts","createOrEditFreshsalesAccount","exportSelectedFreshsalesAccounts","deleteSelectedFreshsalesAccounts","deselectFreshsalesAccounts","selectAllFreshsalesAccounts","CreateOrEditSalesforceAccountDialogController","salesforceAccounts","salesforceAccount","newSalesforceAccount","addNewSalesforceAccount","saveSalesforceAccount","deleteSalesforceAccount","intSalesforceAccount","salesforceAccountFound","SalesforceAccountConfigurationsController","salesforceConfiguration","selectedSalesforceConfiguration","getSalesforceConfiguration","createOrEditSalesforceConfiguration","deleteSalesforceConfiguration","selectChangedAdvanced","intSalesforceConfiguration","intSalesforceField","CreateOrEditSalesforceConfigurationDialogController","newSalesforceConfiguration","addNewSalesforceConfiguration","saveSalesforceConfiguration","salesforceConfigurationFound","CreateOrEditSalesforceAccountItemDialogController","SalesforceAccountController","gotoSalesforceAccounts","SalesforceAccountsController","selectedSalesforceAccounts","getSalesforceAccounts","createOrEditSalesforceAccount","exportSelectedSalesforceAccounts","deleteSelectedSalesforceAccounts","deselectSalesforceAccounts","selectAllSalesforceAccounts","CreateOrEditServicenowAccountDialogController","servicenowAccounts","servicenowAccount","newServicenowAccount","addNewServicenowAccount","saveServicenowAccount","deleteServicenowAccount","intServicenowAccount","servicenowAccountFound","ServicenowAccountConfigurationsController","servicenowConfiguration","selectedServicenowConfiguration","getServicenowConfiguration","createOrEditServicenowConfiguration","deleteServicenowConfiguration","intServicenowConfiguration","intServicenowField","CreateOrEditServicenowConfigurationDialogController","newServicenowConfiguration","addNewServicenowConfiguration","saveServicenowConfiguration","servicenowConfigurationFound","CreateOrEditServicenowAccountItemDialogController","ServicenowAccountController","gotoServicenowAccounts","ServicenowAccountsController","selectedServicenowAccounts","getServicenowAccounts","createOrEditServicenowAccount","exportSelectedServicenowAccounts","deleteSelectedServicenowAccounts","deselectServicenowAccounts","selectAllServicenowAccounts","CreateOrEditSugarcrmAccountDialogController","sugarcrmAccounts","sugarcrmAccount","newSugarcrmAccount","addNewSugarcrmAccount","saveSugarcrmAccount","deleteSugarcrmAccount","intSugarcrmAccount","sugarcrmAccountFound","SugarcrmAccountConfigurationsController","sugarcrmConfiguration","selectedSugarcrmConfiguration","getSugarcrmConfiguration","createOrEditSugarcrmConfiguration","deleteSugarcrmConfiguration","intSugarcrmConfiguration","intSugarcrmField","CreateOrEditSugarcrmConfigurationDialogController","newSugarcrmConfiguration","addNewSugarcrmConfiguration","saveSugarcrmConfiguration","sugarcrmConfigurationFound","CreateOrEditSugarcrmAccountItemDialogController","SugarcrmAccountController","gotoSugarcrmAccounts","SugarcrmAccountsController","selectedSugarcrmAccounts","getSugarcrmAccounts","createOrEditSugarcrmAccount","exportSelectedSugarcrmAccounts","deleteSelectedSugarcrmAccounts","deselectSugarcrmAccounts","selectAllSugarcrmAccounts","CreateOrEditVtigerAccountDialogController","vtigerAccounts","vtigerAccount","newVtigerAccount","addNewVtigerAccount","saveVtigerAccount","deleteVtigerAccount","intVtigerAccount","vtigerAccountFound","VtigerAccountConfigurationsController","vtigerConfiguration","selectedVtigerConfiguration","getVtigerConfiguration","createOrEditVtigerConfiguration","deleteVtigerConfiguration","intVtigerConfiguration","intVtigerField","CreateOrEditVtigerConfigurationDialogController","newVtigerConfiguration","addNewVtigerConfiguration","saveVtigerConfiguration","vtigerConfigurationFound","CreateOrEditVtigerAccountItemDialogController","VtigerAccountController","gotoVtigerAccounts","VtigerAccountsController","selectedVtigerAccounts","getVtigerAccounts","createOrEditVtigerAccount","exportSelectedVtigerAccounts","deleteSelectedVtigerAccounts","deselectVtigerAccounts","selectAllVtigerAccounts","CreateOrEditZendeskAccountDialogController","zendeskAccounts","zendeskAccount","newZendeskAccount","addNewZendeskAccount","saveZendeskAccount","deleteZendeskAccount","intZendeskAccount","zendeskAccountFound","CreateOrEditZendeskAccountItemDialogController","intZendeskField","ZendeskAccountController","gotoZendeskAccounts","ZendeskAccountConfigurationsController","zendeskConfiguration","zendeskConfigurations","selectedZendeskConfiguration","getZendeskConfiguration","createOrEditZendeskConfiguration","deleteZendeskConfiguration","intZendeskConfiguration","CreateOrEditZendeskConfigurationDialogController","newZendeskConfiguration","addNewZendeskConfiguration","saveZendeskConfiguration","zendeskConfigurationFound","ZendeskAccountsController","selectedZendeskAccounts","getZendeskAccounts","createOrEditZendeskAccount","exportSelectedZendeskAccounts","deleteSelectedZendeskAccounts","deselectZendeskAccounts","selectAllZendeskAccounts","CreateOrEditZohoAccountDialogController","zohoAccounts","zohoAccount","newZohoAccount","zone","addNewZohoAccount","saveZohoAccount","deleteZohoAccount","intZohoAccount","zohoAccountFound","ZohoAccountConfigurationsController","zohoConfiguration","selectedZohoConfiguration","getZohoConfiguration","createOrEditZohoConfiguration","deleteZohoConfiguration","intZohoConfiguration","intZohoField","CreateOrEditZohoConfigurationDialogController","newZohoConfiguration","addNewZohoConfiguration","saveZohoConfiguration","zohoConfigurationFound","CreateOrEditZohoAccountItemDialogController","ZohoAccountController","gotoZohoAccounts","ZohoAccountsController","selectedZohoAccounts","getZohoAccounts","createOrEditZohoAccount","exportSelectedZohoAccounts","deleteSelectedZohoAccounts","deselectZohoAccounts","selectAllZohoAccounts","ZendeskTemplate","ZendeskEditViewTemplate","SalesforceTemplate","SalesforceEditViewTemplate","FreshdeskTemplate","FreshdeskEditViewTemplate","SugarcrmTemplate","SugarcrmEditViewTemplate","DeskAccountsTemplate","DeskAccountsEditViewTemplate","ZohoAccountsTemplate","ZohoAccountsEditViewTemplate","VtigerTemplate","VtigerEditViewTemplate","Dynamics365Template","Dynamics365EditViewTemplate","ServicenowTemplate","ServicenowEditViewTemplate","FreshsalesTemplate","FreshsalesEditViewTemplate","LicenseController","channels","addons","restart","others","updateLicense","UpdateDialogTemplate","requestLicense","RequestDialogTemplate","gotoProcess","RequestLicenseDialogController","sendRequest","jira","summary","issuetype","UpdateLicenseDialogController","licenseKey","demo","SystemController","processes","processLimit","getInfo","getProcesses","cancelInterval","updateProcess","pm2","UpdateDialogController","progress","updating","fetch","migrations","stopInterval","UpdatesController","updateConfirm","DialogTemplate","latest","CloudProvidersController","cloudProviders","selectedAiTools","getAiTools","createOrEditCloudProvider","deleteCloudProvider","exportSelectedAiTools","deleteSelectedAiTools","deselectAiTools","selectAllAiTools","cloudProvider","CreateTemplate","CreateOrEditCloudProviderDialogController","newCloudProvider","addNewCloudProvider","saveCloudProvider","cloudProviderFound","CreateOrEditCustomizationDialogController","customizations","customization","newCustomization","addNewCustomization","saveCustomization","deleteCustomization","customizationFound","CustomizationsController","CustomizationfaviconController","vm_cf","CustomizationlogoController","vm_cl","CustomizationlogologinController","vm_cll","CustomizationpreferredController","vm_cp","CreateOrEditGeneralDialogController","generals","newGeneral","min_internal","chatTimeout","phoneBarAutoUpdater","phoneBarAutoUpdaterUrl","splitSizeCsv","splitSizePdf","splitSizeXlsx","phoneBarRememberMeEnabled","allowedLoginAttempts","blockDuration","loginMailFrequency","enforcePasswordHistory","passwordHistoryLimit","addNewGeneral","saveGeneral","deleteGeneral","generalFound","GeneralsController","CreateOrEditNetworkDialogController","networks","newNetwork","addNewNetwork","saveNetwork","deleteNetwork","networkFound","NetworksController","selectedNetworks","getNetworks","createOrEditNetwork","exportSelectedNetworks","deleteSelectedNetworks","deselectNetworks","selectAllNetworks","CreateOrEditSmtpDialogController","smtps","smtp","newSmtp","addNewSmtp","saveSmtp","deleteSmtp","smtpFound","SmtpController","GeneralsTemplate","SmtpsTemplate","NetworksTemplate","CustomizationsTemplate","CloudProvidersTemplate","AbandonedCallsMotionDialerRealtimeController","DisposeAbandonedCallDialogTemplate","AgentsMotionDialerRealtimeController","IvrCampaignsMotionDialerRealtimeController","campaigns","getCampaigns","createOrEditIvrCampaign","ivrCampaign","ivrCampaigns","QueueCallsMotionDialerRealtimeController","QueueParamsMotionDialerRealtimeController","QueuesMotionDialerRealtimeController","createOrEditMotionDialerQueue","showPredictiveQueueCampaignInfo","startPredictive","MotionDialerQueueId","PredictiveDialogTemplate","motiondialerQueue","PredictiveQueueCampaignDialogController","addMinutes","setFormatTime","MotionDialerRealtimeController","AbandonedCallsViewTemplate","IvrParamsViewTemplate","CreateOrEditIvrCampaignDialogController","newIvrCampaign","dialCheckDuplicateType","dialCutDigit","dialRandomLastDigitCallerIdNumber","dialOriginateTimeout","dialGlobalMaxRetry","dialCongestionMaxRetry","dialCongestionRetryFrequency","dialBusyMaxRetry","dialBusyRetryFrequency","dialNoAnswerMaxRetry","dialNoAnswerRetryFrequency","dialNoSuchNumberMaxRetry","dialNoSuchNumberRetryFrequency","dialDropMaxRetry","dialDropRetryFrequency","dialAbandonedMaxRetry","dialAbandonedRetryFrequency","dialMachineMaxRetry","dialMachineRetryFrequency","dialAgentRejectMaxRetry","dialAgentRejectRetryFrequency","dialOrderByScheduledAt","dialGlobalInterval","dialAMDInitialSilence","dialAMDGreeting","dialAMDAfterGreetingSilence","dialAMDTotalAnalysisTime","dialAMDMinWordLength","dialAMDBetweenWordsSilence","dialAMDMaximumNumberOfWords","dialAMDSilenceThreshold","dialAMDMaximumWordLength","addNewIvrCampaign","saveIvrCampaign","deleteIvrCampaign","SquareProjectId","ivrCampaignFound","IvrCampaignblacklistaddController","getApi","addApi","removeApi","saveLists","getAllLists","getAssociatedLists","associatedLists","addLists","removeLists","IvrCampaigncloneController","cloneIvrCampaign","IvrCampaignHopperBlacksController","ivrCampaignHopperBlacks","selectedIvrCampaignHopperBlacks","getIvrCampaignHopperBlacks","exportSelectedIvrCampaignHopperBlacks","deleteIvrCampaignHopperBlack","deleteSelectedIvrCampaignHopperBlacks","CampaignId","ivrCampaignHopperBlack","getHopperBlacks","hopperBlack","IvrCampaignHopperFinalsController","ivrCampaignHopperFinals","selectedIvrCampaignHopperFinals","getIvrCampaignHopperFinals","exportSelectedIvrCampaignHopperFinals","deleteIvrCampaignHopperFinal","deleteSelectedIvrCampaignHopperFinals","moveIvrCampaignHopperFinal","moveContactsIvrCampaignHopperFinal","countContactsIvrCampaignHopperFinal","moveConfirm","moveSelectedIvrCampaignHopperFinals","ivrCampaignHopperFinal","hopperFinal","createContact","countbusyretry","countcongestionretry","countnoanswerretry","countglobal","createHistory","editedat","edited","statedesc","campaigntype","checkContactHopper","IvrCampaignHopperHistoriesController","ivrCampaignHopperHistories","selectedIvrCampaignHopperHistories","getIvrCampaignHopperHistories","exportSelectedIvrCampaignHopperHistories","deleteIvrCampaignHopperHistory","deleteSelectedIvrCampaignHopperHistories","ivrCampaignHopperHistory","hopperHistory","IvrCampaignHoppersController","ivrCampaignHoppers","selectedIvrCampaignHoppers","getIvrCampaignHoppers","exportSelectedIvrCampaignHoppers","deleteIvrCampaignHopper","deleteSelectedIvrCampaignHoppers","CreateOrEditHopperCampaignIdDialogController","addNewHopper","oldScheduledat","copyHopper","nameCampaign","callbackuniqueid","followuptime","IvrCampaignHopperStatisticsController","vm_hs","fresh","IvrCampaignlistaddController","IvrCampaignresetlistController","listsCampaign","Sequence","isIndeterminate","isChecked","toggleAll","listSelected","idx","resetList","final","enqueue","IvrCampaignController","listadddialog","blacklistadddialog","resetlistdialog","gotoIvrCampaigns","ListaddTemplate","BlacklistaddTemplate","ResetlistTemplate","IvrCampaignsController","selectedIvrCampaigns","getIvrCampaigns","exportSelectedIvrCampaigns","deleteSelectedIvrCampaigns","deselectIvrCampaigns","selectAllIvrCampaigns","CreateOrEditQueueCampaignDialogController","newQueueCampaign","dialPowerLevel","dialPredictiveOptimization","dialPredictiveOptimizationPercentage","dialPredictiveInterval","dialLimitQueue","dialQueueOptions","dialQueueTimeout","dialPredictiveIntervalMaxThreshold","dialPredictiveIntervalMinThreshold","addNewQueueCampaign","saveQueueCampaign","deleteQueueCampaign","queueCampaignFound","QueueCampaignagentaddController","QueueCampaignblacklistaddController","QueueCampaigncloneController","cloneQueueCampaign","QueueCampaignHopperBlacksController","queueCampaignHopperBlacks","selectedQueueCampaignHopperBlacks","getQueueCampaignHopperBlacks","exportSelectedQueueCampaignHopperBlacks","deleteQueueCampaignHopperBlack","deleteSelectedQueueCampaignHopperBlacks","queueCampaignHopperBlack","QueueCampaignHopperFinalsController","queueCampaignHopperFinals","selectedQueueCampaignHopperFinals","getQueueCampaignHopperFinals","exportSelectedQueueCampaignHopperFinals","deleteQueueCampaignHopperFinal","deleteSelectedQueueCampaignHopperFinals","moveQueueCampaignHopperFinal","moveContactsQueueCampaignHopperFinal","countContactsQueueCampaignHopperFinal","moveSelectedQueueCampaignHopperFinals","queueCampaignHopperFinal","QueueCampaignHopperHistoriesController","queueCampaignHopperHistories","selectedQueueCampaignHopperHistories","getQueueCampaignHopperHistories","exportSelectedQueueCampaignHopperHistories","deleteQueueCampaignHopperHistory","deleteSelectedQueueCampaignHopperHistories","queueCampaignHopperHistory","QueueCampaignHoppersController","queueCampaignHoppers","selectedQueueCampaignHoppers","getQueueCampaignHoppers","exportSelectedQueueCampaignHoppers","deleteSelectedQueueCampaignHoppers","queueCampaignHopper","CreateOrEditHopperVoiceQueueIdDialogController","QueueCampaignHopperStatisticsController","QueueCampaignlistaddController","QueueCampaignresetlistController","QueueCampaignteamaddController","QueueCampaignController","gotoQueueCampaigns","dialQueueProject","QueueCampaignsController","selectedQueueCampaigns","getQueueCampaigns","createOrEditQueueCampaign","exportSelectedQueueCampaigns","deleteSelectedQueueCampaigns","deselectQueueCampaigns","selectAllQueueCampaigns","QueueCampaignsTemplate","QueueCampaignsTemplateEditView","IvrCampaignsTemplate","IvrCampaignsTemplateEditView","AboutController","AboutTemplate","CreateOrEditProjectDialogController","ProjectAnswersController","vm_an","pickerModel","selectedTemplate","getSummary","hasIdAnswers","ProjectBuilderController","vm_bc","optionsBuilder","questionTypes","elementTypes","ProjectcloneController","cloneProject","ProjectViewerController","vm_vc","ProjectSessionsController","projectSessions","selectedProjectSessions","getProjectSessions","createOrEditProjectSession","showQuestionsProjectSession","exportSelectedProjectSessions","deleteProjectSession","deleteSelectedProjectSessions","projectSession","getSessions","SessionsDialogTemplate","ShowQuestionsSessionDialogController","JscriptyProjectController","JscriptyProjectsController","sessionsgoto","CreateOrEditPluginDialogController","newPlugin","addNewPlugin","savePlugin","deletePlugin","pluginFound","MarketplacePluginController","gotoPlugins","MarketplacePluginsController","selectedPlugins","installplugin","stopplugin","restartplugin","uninstallplugin","getPlugins","createOrEditPlugin","exportSelectedPlugins","deleteSelectedPlugins","deselectPlugins","selectAllPlugins","uploadPlugin","scriptName","scriptPath","stopPluginProcess","process","pm_id","restartPluginProcess","uninstallPlugin","UploadPluginDialogController","uploadPlugins","PluginsTemplate","PluginsEditViewTemplate","PluginController","adminUrl","PluginTemplate","CreateOrEditscreenRecordingDialogController","screenRecordings","newscreenRecording","addNewscreenRecording","savescreenRecording","deletescreenRecording","screenRecordingFound","ScreenRecordingplayController","actionOptions","varPath","elementTag","assign","searchFile","arrayKeys1","propertiesDefault","propertiesList","_whitelist","arrayKeys2","check","extraData","propertiesExtra","extraDataArray","dataValuesArray","ScreenRecordingsController","selectedScreenRecordings","playrecording","getScreenRecordings","createOrEditscreenRecording","exportSelectedScreenRecordings","deleteSelectedScreenRecordings","deselectScreenRecordings","selectAllScreenRecordings","convertDuration","upperTitle","lowerTitle","propertiesIcon","singular","PartialViewsPlayTemplate","_namefile","_hours","_minutes","_seconds","ScreenRecordingsTemplate","AgentsWhatsappRealtimeController","QueuesWhatsappRealtimeController","createOrEditWhatsappQueue","whatsappQueue","WhatsappQueueId","WhatsappRealtimeController","CreateOrEditWhatsappAccountDialogController","newWhatsappAccount","addNewWhatsappAccount","saveWhatsappAccount","deleteWhatsappAccount","whatsappAccountFound","WhatsappAccountActionsController","whatsappAccountApps","selectedWhatsappAccountApps","editWhatsappAccountApp","getWhatsappAccountApps","deleteWhatsappAccountApp","deleteSelectedWhatsappAccountApps","whatsappAccountApp","WhatsappAccountagentaddController","UserWhatsappAccount","EditWhatsappAccountAppagentDialogController","saveWhatsappAccountApp","EditWhatsappAccountAppamazonlexDialogController","EditWhatsappAccountAppautoreplyDialogController","EditWhatsappAccountAppcloseDialogController","EditWhatsappAccountAppdialogflowDialogController","EditWhatsappAccountAppgotoifDialogController","EditWhatsappAccountAppgotopDialogController","EditWhatsappAccountAppintervalDialogController","EditWhatsappAccountAppnoopDialogController","EditWhatsappAccountAppqueueDialogController","EditWhatsappAccountAppsystemDialogController","EditWhatsappAccountApptagDialogController","WhatsappAccountInteractionsController","whatsappAccountInteractions","selectedWhatsappAccountInteractions","whatsappInteractionDownload","getWhatsappAccountInteractions","spywhatsappInteraction","exportSelectedWhatsappAccountInteractions","deleteWhatsappAccountInteraction","deleteSelectedWhatsappAccountInteractions","whatsappAccountInteraction","WhatsappAccountController","gotoWhatsappAccounts","WhatsappAccountWhatsappCannedAnswersController","whatsappAccountWhatsappCannedAnswers","selectedWhatsappAccountWhatsappCannedAnswers","getWhatsappAccountWhatsappCannedAnswers","createOrEditWhatsappAccountWhatsappCannedAnswer","exportSelectedWhatsappAccountWhatsappCannedAnswers","deleteWhatsappAccountWhatsappCannedAnswer","deleteSelectedWhatsappAccountWhatsappCannedAnswers","whatsappAccountWhatsappCannedAnswer","WhatsappCannedAnswersDialogTemplate","whatsappCannedAnswer","whatsappCannedAnswers","CreateOrEditWhatsappCannedAnswerDialogController","newWhatsappCannedAnswer","addNewWhatsappCannedAnswer","saveWhatsappCannedAnswer","deleteWhatsappCannedAnswer","whatsappCannedAnswerFound","WhatsappAccountDispositionsController","WhatsappAccountsController","selectedWhatsappAccounts","createOrEditWhatsappAccount","exportSelectedWhatsappAccounts","deleteSelectedWhatsappAccounts","deselectWhatsappAccounts","selectAllWhatsappAccounts","CreateOrEditWhatsappQueueDialogController","newWhatsappQueue","addNewWhatsappQueue","saveWhatsappQueue","deleteWhatsappQueue","whatsappQueueFound","WhatsappQueueagentaddController","UserWhatsappQueue","WhatsappQueueteamaddController","WhatsappQueueController","gotoWhatsappQueues","TeamaddDialogTemplate","AgentaddDialogTemplate","WhatsappQueuesController","selectedWhatsappQueues","exportSelectedWhatsappQueues","deleteSelectedWhatsappQueues","deselectWhatsappQueues","selectAllWhatsappQueues","QueuesEditViewTemplate","AccountsTemplate","AccountsEditViewTemplate","LoginController","progresslogin","googleSsoEnabled","userId","loginOauth","CoreContentOnlyTemplate","LoginTemplate","ForgotPasswordController","forgotPassword","forgot","ForgotTemplate","ResetPasswordController","gdpr","resetPassword","ResetTemplate","Error404Controller","Error404Template","Error500Controller","sendReport","Error500Template","apiService","API_SERVER_ADDRESS","google","getVoiceQueuesChannel","getOutbound","getOutboundChannels","getOpenchannelQueuesIdWaitingInteractions","mailQueueNotify","chatQueueNotify","faxQueueNotify","smsQueueNotify","openchannelQueueNotify","agentNotify","addAvatar","getAvatar","getVoiceQueuesRt","getRecordings","addChatInteractions","removeChatInteractions","addMailInteractions","removeMailInteractions","addFaxInteractions","removeFaxInteractions","addSmsInteractions","removeSmsInteractions","addOpenchannelInteractions","removeOpenchannelInteractions","addWhatsappInteractions","removeWhatsappInteractions","addFaxAccounts","removeFaxAccounts","addMailAccounts","removeMailAccounts","addOpenchannelAccounts","removeOpenchannelAccounts","addSmsAccounts","removeSmsAccounts","addChatWebsites","removeChatWebsites","addWhatsappAccounts","removeWhatsappAccounts","getSquareProjects","addBlackLists","removeBlackLists","responseType","cache","transformResponse","h","downloads","memberReport","voiceTransferReport","mailServerOut","addDisposition","removeDispositions","addAnswer","removeAnswers","getImap","addImap","removeImap","getSmtp","addSmtp","removeSmtp","addInteraction","getInteractions","removeTags","mailApplication","mailQueueReport","faxApplication","faxMessage","faxQueueReport","statusGet","smsApplication","smsMessage","openchannelApplication","openchannelMessage","addLogo","addCustomerAvatar","addSystemAvatar","getCustomerAvatar","getSystemAvatar","offline","getSnippet","addProactiveActions","openchannelQueueReport","chatApplication","customUpdate","abandon","attachmentUpload","attachmentDownload","getMyMessages","chatMessage","removeMembers","cmHopperBlack","automation","addConditions","addActions","addInterval","voiceQueuesLog","addAnyCondition","integration","integrationReport","bulkDestroy","chatQueueReport","getQuestions","smsQueueReport","squareReport","squareReportDetail","addLogoLogin","getLogoLogin","addPreferred","getPreferred","addFavicon","getFavicon","addUsers","removeUsers","migration","webhookGet","webhookPost","mailTransferReport","chatTransferReport","faxTransferReport","openchannelTransferReport","smsTransferReport","addResources","removeResources","sendNotification","whatsappApplication","whatsappMessage","whatsappQueueReport","whatsappTransferReport","$translateProvider","toastyConfigProvider","useLoader","urlTemplate","useSanitizeValueStrategy","IndexController","savedLanguage","rtlSupport","formatDate","currentDate","toFormat","getTime","limitObjectFromTo","begin","newObj","Today","Yesterday","January","February","March","April","May","June","July","August","September","October","November","December","Mon","Tue","Wed","Thu","Fri","Sat","Sun","fn","tail","routeConfig","$urlRouterProvider","$locationProvider","html5Mode","otherwise","layouts","verticalNavigation","main","CoreVerticalNavigationLayoutTemplate","toolbar","ToolbarLayoutTemplate","NavigationVerticalNavigationLayoutTemplate","header","HeaderVerticalNavigationLayoutTemplate","footer","FooterVerticalNavigationLayoutTemplate","verticalNavigationFullwidthToolbar","CoreVerticalNavigationFullWidthToolbarLayoutTemplate","verticalNavigationFullwidthToolbar2","CoreVerticalNavigationFullWidthToolbar2LayoutTemplate","NavigationVerticalNavigationFullWidthToolbar2LayoutTemplate","horizontalNavigation","CoreHorizontalNavigationLayoutTemplate","NavigationHorizontalNavigationLayoutTemplate","contentOnly","contentWithToolbar","CoreContentWithToolbarLayoutTemplate","QuickPanelLayoutTemplate","Socket","SOCKET","io","OPTS","transports","eventName","arguments","emit","removeListener","MainController","getItemDashboard","getItemPlugin","addAgentPlugin","getChildrenIds","gray","adminPlugins","agentPlugins","defaultPageTitle","pageTitle","cm","settingsEnabled","ai","jscripty","iconClass","targetScope","$id","DEPS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA,SAASA,cAAT,CAAwBC,aAAxB,EAAuC;AACrCA,eAAa,CAACC,YAAd,CAA2BC,IAA3B,CAAgC,iBAAhC;AACD;;AAED,kDAAeH,cAAf,E;;;;ACLA;AACA,SAASI,SAAT,CAAmBC,YAAnB,EAAiC;AAC/B;AACA,MAAMC,oBAAoB,GAAG;AAC3BC,MAAE,EAAE,YAAUC,KAAV,EAAiB;AACnB,aAAOA,KAAK,CAACC,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,GAAW0L,IAAI,CAACI,SAAL,CAAelM,GAAG,CAACI,IAAJ,CAASqS,OAAxB,CAAX,GAA8CzS,GAAG,CAAC0S,QAAJ;AAJxC,OAAb;AAMD,KA/BI,CAAP;AAgCD,GAxFD,CA0FA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACF;AACA;;;AACE,WAAS9N,WAAT,CAAqB+oD,SAArB,EAAgC;AAC9BhwD,aAAS,CAACmH,IAAV,CAAe6oD,SAAf;AACD;AACF;AAED;AACA;AACA;AACA;AACA;AACA;;;AACA,+DAAeb,qCAAf,E;;AClMA,oDAAe,qBAAuB,sFAAsF,E;;ACA5H,kDAAe,qBAAuB,oFAAoF,E;;;;ACA1H;AACA;AACA;AACA;AACA;CAEA;;CAEA;;AACA;AAEA;;AACA,SAASc,mBAAT,CACErhD,MADF,EAEEvO,SAFF,EAGEoO,QAHF,EAIEzO,SAJF,EAKEwrB,UALF,EAMEtrB,EANF,EAOE4L,IAPF,EAQE3L,GARF,EASE8tB,MATF,EAUE3c,MAVF,EAWE;AACA,MAAM4+C,KAAK,GAAG,IAAd,CADA,CAGA;;AACAA,OAAK,CAACjkD,WAAN,GAAoBH,IAAI,CAACrL,cAAL,EAApB;AACAyvD,OAAK,CAACC,mBAAN,GAA4B,EAA5B;AACAD,OAAK,CAAChD,MAAN,GAAe,EAAf;AACAgD,OAAK,CAACE,YAAN;AACAF,OAAK,CAAC3jC,KAAN,CARA,CAUA;;AACA2jC,OAAK,CAAC7kC,IAAN,GAAaA,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D6qD,2BAAmB,CAAC7qD,aAAD,CAAnB;AACD,OAFD;AAGAxxE,QAAE,CAACw8H,uBAAH,GAA6B,EAA7B;AACD,KALD;AAMD;AAED;AACF;AACA;;;AACE,WAASK,uBAAT,GAAmC;AACjC78H,MAAE,CAACw8H,uBAAH,GAA6B,EAA7B;AACD;AAED;AACF;AACA;;;AACE,WAASM,wBAAT,GAAoC;AAClC98H,MAAE,CAACw8H,uBAAH,GAA6Bx8H,EAAE,CAACi8H,cAAH,CAAkBn9H,IAA/C;AACD;AACF;AAED;AACA;AACA;AACA;;;AACA,gEAAey9H,yBAAf,E;;;ACxTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;CAGA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AACA,SAAS77H,kBAAT,CAAgBkxD,cAAhB,EAAgCnM,+BAAhC,EAAiE;AAC/D;AACAmM,gBAAc,CACXh7D,KADH,CACS,UADT,EACqB;AACjBgyF,YAAQ,EAAE,IADO;AAEjB9nF,OAAG,EAAE;AAFY,GADrB,EAKGlK,KALH,CAKS,qBALT,EAKgC;AAC5BkK,OAAG,EAAE,aADuB;AAE5B+wD,SAAK,EAAE;AACL,qBAAe;AACbn1D,mBAAW,EAAEqgI,UADA;AACqB;AAClCvgI,kBAAU,EAAE;AAFC;AADV,KAFqB;AAQ5BxB,WAAO,EAAE;AACPgxE,gBAAU,0BAAE,oBAAU/uE,WAAV,EAAuB6H,IAAvB,EAA6B;AACvC,eAAOA,IAAI,CAAC1M,OAAL,CAAa,OAAb,IACH6E,WAAW,CAACjC,OAAZ,CAAoB,eAApB,EAAqC;AACnCkC,gBAAM,EACJ,0DAFiC;AAInCmlB,cA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ASb+5B,SATa,CASH,qBATG,EAUbc,WAVa,CAUD6qB,EAVC,EAWb1rB,EAXa,CAWV,IAXU,EAYbze,MAZa,CAYN,QAZM,CAAhB;AAcAxgB,aAAS,CAACuD,IAAV,CAAes7B,OAAf,EAAwBz8B,IAAxB,CAA6B,YAAY;AACvC4E,QAAE,CAACw5K,oBAAH,CAAwBt6K,OAAxB,CAAgC,UAAU64K,WAAV,EAAuB;AACrDK,yBAAiB,CAACL,WAAD,CAAjB;AACD,OAFD;AAGA/3K,QAAE,CAACw5K,oBAAH,GAA0B,EAA1B;AACD,KALD;AAMD;AAED;AACF;AACA;;;AACE,WAASK,oBAAT,GAAgC;AAC9B75K,MAAE,CAACw5K,oBAAH,GAA0B,EAA1B;AACD;AAED;AACF;AACA;;;AACE,WAASM,qBAAT,GAAiC;AAC/B95K,MAAE,CAACw5K,oBAAH,GAA0Bx5K,EAAE,CAAC83K,YAAH,CAAgBh5K,IAA1C;AACD;AACF;AAED;AACA;AACA;AACA;;;AAEA,8DAAey6K,sBAAf,E;;;ACjWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AACA,SAAS74K,0BAAT,CAAgBkxD,cAAhB,EAAgCnM,+BAAhC,EAAiE;AAC/D;AACAm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V,EAK+BipM,iBAL/B,EAMGjpM,MANH,CAMU,YANV,EAMwB6oM,UANxB,EAOG5lM,OAPH,CAOW,cAPX,EAO2B8yG,YAP3B,EAQG9yG,OARH,CAQW,+BARX,EAQ4Cq7B,6BAR5C,EASGr7B,OATH,CASW,UATX,EASuB6oL,QATvB,EAUG7qL,MAVH,CAUU0pM,WAVV,EAWG3nM,GAXH,CAWOqB,SAXP,EAYGpB,OAZH,CAYW,QAZX,EAYqBspM,YAZrB,EAaGxvM,UAbH,CAac,gBAbd,EAagCiwM,eAbhC,E;;;;;;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yB;;;;;;;;ACnSA,yB;;;;;;;ACAA,e","file":"app-726fd36768994ef7fd4e.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://motion-frontend/./src/js/modules/auth/auth.config.js","webpack://motion-frontend/./src/js/modules/auth/auth.run.js","webpack://motion-frontend/./src/js/modules/auth/services/hotdesk/dialog.html","webpack://motion-frontend/./src/js/modules/auth/services/auth.service.js","webpack://motion-frontend/./src/js/modules/auth/services/hotdesk/dialog.controller.js","webpack://motion-frontend/./src/js/modules/auth/services/interceptor.service.js","webpack://motion-frontend/./src/js/modules/auth/services/util.service.js","webpack://motion-frontend/./src/js/modules/auth/auth.module.js","webpack://motion-frontend/./src/js/modules/core/config/motion-config.provider.js","webpack://motion-frontend/./src/js/modules/core/core.config.js","webpack://motion-frontend/./src/js/modules/core/core.run.js","webpack://motion-frontend/./src/js/modules/core/dialogs/advanced-search/dialog.js","webpack://motion-frontend/./src/js/modules/core/directives/focus.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/highlight.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-card/ms-card.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-chip-color/ms-chip-color.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/prefix/dialog.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-datepicker-fix/ms-datepicker-fix.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-dialog-recording/ms-dialog-recording.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-emoji-area/ms-emoji-area.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-font-family/ms-font-family.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-font-family/ms-font-family.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-form-wizard/ms-form-wizard.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-info-bar/ms-info-bar.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-info-bar/ms-info-bar.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-masonry/ms-masonry.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-nav/ms-nav.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-navigation/templates/horizontal.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-navigation/templates/vertical.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-navigation/ms-navigation.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/record/dialog.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/settings/settings.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/ms-phonebar.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/ms-phonebar.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/prefix/dialog.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/record/dialog.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/referAttended/dialog.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-phonebar/settings/settings.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-random-class/ms-random-class.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-recording/ms-recording.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-responsive-table/ms-responsive-table.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-scroll/ms-scroll.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-search-bar/ms-search-bar.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-search-bar/ms-search-bar.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-sidenav-helper/ms-sidenav-helper.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-splash-screen/ms-splash-screen.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-stepper/templates/vertical/step/vertical-step.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-stepper/ms-stepper.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-timeline/ms-timeline.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-timer/ms-timer.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-timezone/ms-timezone.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-timezone/ms-timezone.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine-counter/ms-widget-engine.counter.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine-multibar-chart/ms-widget-engine.multibar-chart.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine-pie-chart/ms-widget-engine.pie-chart.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine-web-report/ms-widget-engine.web-report.controller.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/ms-widget/ms-widget.directive.js","webpack://motion-frontend/./src/js/modules/core/directives/index.js","webpack://motion-frontend/./src/js/modules/core/factories/quickFilterManager.factory.js","webpack://motion-frontend/./src/js/modules/core/filters/altDate.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/basic.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/capitalize.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/filterByIds.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/filterByPropIds.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/snakecase.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/startcase.filter.js","webpack://motion-frontend/./src/js/modules/core/filters/tag.filter.js","webpack://motion-frontend/./src/js/modules/core/providers/motNotification.js","webpack://motion-frontend/./src/js/modules/core/services/api-resolver.service.js","webpack://motion-frontend/./src/js/modules/core/services/loadingIndicator.service.js","webpack://motion-frontend/./src/js/modules/core/services/ms-api.provider.js","webpack://motion-frontend/./src/js/modules/core/services/ms-utils.service.js","webpack://motion-frontend/./src/js/modules/core/theme-options/theme-options.html","webpack://motion-frontend/./src/js/modules/core/theme-options/theme-options.directive.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-generator.service.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-palettes.constant.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-themes.constant.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-theming.config.js","webpack://motion-frontend/./src/js/modules/core/theming/motion-theming.service.js","webpack://motion-frontend/./src/js/modules/core/core.module.js","webpack://motion-frontend/./src/js/modules/navigation/navigation.controller.js","webpack://motion-frontend/./src/js/modules/navigation/navigation.module.js","webpack://motion-frontend/./src/js/modules/toolbar/changepassword/changepassword.controller.js","webpack://motion-frontend/./src/js/modules/toolbar/preview/dialog.controller.js","webpack://motion-frontend/./src/js/modules/toolbar/preview/dialog.html","webpack://motion-frontend/./src/js/modules/toolbar/changepassword/changepassword.html","webpack://motion-frontend/./src/js/modules/toolbar/toolbar.controller.js","webpack://motion-frontend/./src/js/modules/toolbar/toolbar.module.js","webpack://motion-frontend/./src/js/modules/quick-panel/quick-panel.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/chat/chat-tab.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/create/dialog.html","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/info/dialog.html","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/group-tab.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/tabs/groups/info/dialog.controller.js","webpack://motion-frontend/./src/js/modules/quick-panel/quick-panel.module.js","webpack://motion-frontend/./src/js/modules/header/header.controller.js","webpack://motion-frontend/./src/js/modules/header/header.module.js","webpack://motion-frontend/./src/js/modules/footer/footer.controller.js","webpack://motion-frontend/./src/js/modules/footer/footer.module.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/user.general.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/user.general.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/voice/user.general.voice.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/user/user.general.module.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/agent.general.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/agent.general.provider.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/bot/agent.general.bot.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/agent.general.contact.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/reschedule/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/agent.general.abandoned.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/bull/agent.general.abandoned.bull.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/voice/agent.general.abandoned.voice.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/agent.general.home.controller.js","webpack://motion-frontend/./src/js/modules/core/dialogs/advanced-search/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/chat/agent.general.chat.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/contacts/agent.general.contacts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/agent.general.dashboard.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/bull/agent.general.dashboard.bull.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/chat/agent.general.dashboard.chat.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/fax/agent.general.dashboard.fax.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/mail/agent.general.dashboard.mail.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/openchannel/agent.general.dashboard.openchannel.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/sms/agent.general.dashboard.sms.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/voice/agent.general.dashboard.voice.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/dashboard/whatsapp/agent.general.dashboard.whatsapp.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/fax/agent.general.fax.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/mail/agent.general.mail.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/mycontacts/agent.general.mycontacts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/openchannel/agent.general.openchannel.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/plugins/agent.general.plugins.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/recordings/agent.general.recordings.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/scheduled/agent.general.scheduled.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/sms/agent.general.sms.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/voice/agent.general.voice.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/whatsapp/agent.general.whatsapp.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/iframe/agent.general.iframe.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/jscripty/agent.general.jscripty.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/notification/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/popup/agent.general.popup.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/general.module.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/custom/custom.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/custom/custom.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/custom/custom.module.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/dashboards.module.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/agents.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/change_avatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/permissions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/queueadd/queueadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/queueadd/queueadd.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/teams.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/telephones.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/modules.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/userProfiles.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/change_avatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/users.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/users.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/users/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/agents.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/agents/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/telephones.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/telephones/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/teams/teams.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/views/userProfiles/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/staff/staff.module.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/import/import.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/contacts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/edit/hoppers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/import/import.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/contacts.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/contacts/contacts.module.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/companies.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/customFields.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/voiceDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/lists.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/lists.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/lists/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/companies.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/companies/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html","webpack://motion-frontend/./src/js/modules/main/apps/contactmanager/contactmanager.module.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/abandonedcalls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/outbound_calls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queue_calls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queue_params/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/telephones/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/trunks/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/telephones/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/trunks/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/queue_params/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/outbound_calls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/chanSpies/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/chanSpies/chanSpies.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/chanSpies/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/contexts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/contexts/contexts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/contexts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/internalroutes.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/musiconholds.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/edit/messages.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/voicemails.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/edit/sentimentAnalysis.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/inboundroutes/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/outboundroutes/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/internalroutes/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/contexts/contexts.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/voicemails.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicemails/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/musiconholds/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html","webpack://motion-frontend/./src/js/modules/main/apps/voice/voice.module.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/chatQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/agentAvatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatFormOffline.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/chatFormOnline.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/customerAvatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/logo.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/script.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/systemAvatar.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/views/chatWebsites/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/chat/chat.module.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/accounts/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/mailDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailQueues/mailQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/mail/mail.module.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/smsDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/views/smsQueues/smsQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/sms/sms.module.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/amazonlex/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/dialogflow/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/openchannel/openchannel.module.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/trunks/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/accounts/view.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/accounts/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/trunks/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/faxDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/views/faxQueues/faxQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/fax/fax.module.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/dispositions.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/dispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/dispositions/dispositions.module.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/triggers.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/actions/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/allconditions/allconditions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/anyconditions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/triggers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/triggers/triggers.module.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/customDashboards.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/intervals.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/pauses/pauses.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/schedules.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/sounds.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/tags/tags.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/templates/templates.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/trunks.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/variables/variables.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/customDashboards.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/customDashboards/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/intervals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/intervals/intervals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/pauses/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/pauses/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/pauses/pauses.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/partialViews/reports/treeReports.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/schedules/schedules.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/upload/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/sounds.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/sounds/upload/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/tags/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/tags/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/tags/tags.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/templates/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/templates/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/templates/templates.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/trunks/trunks.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/variables/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/variables/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/tools/views/variables/variables.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/tools/tools.module.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/projects.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.directives.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.services.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/import/import.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/info/info.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/open/open.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/permissionadd/permissionadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/open/open.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/projects.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/projects/projects.module.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/odbcs/odbcs.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/callysquare/callysquare.module.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/metrics/metrics.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/reports.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/copy/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/conditions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/describeTable.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/fields.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/sqlUtil.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/preview/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/copy/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/preview/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/run/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/reports.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/run/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/run/web/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/reports/reports.module.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/metrics/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/metrics/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/analytics/views/metrics/metrics.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/analytics/analytics.module.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/integrations/integrations.module.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/license.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/update/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/request/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/license.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/request/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/update/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/license/license.module.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/system/system.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/system/system.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/system/system.module.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/updates.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/update/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/update/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/updates.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/updates/updates.module.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/generals/generals.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/smtps/smtps.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/networks/networks.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/customizations.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/customizations.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/favicon.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/logo.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/logologin.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/customizations/preferred.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/generals/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/generals/generals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/networks/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/networks/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/networks/networks.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/smtps/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/views/smtps/smtps.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/settings/settings.module.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queue_params/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html","webpack://motion-frontend/./src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queue_params/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hopperBlacks.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hopperFinals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hopperHistories.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hopperStatistics.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hopperBlacks.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hopperFinals.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hopperHistories.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hopperStatistics.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/motiondialer/motiondialer.module.js","webpack://motion-frontend/./src/js/modules/main/apps/help/views/about/about.html","webpack://motion-frontend/./src/js/modules/main/apps/help/views/about/about.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/help/views/about/about.module.js","webpack://motion-frontend/./src/js/modules/main/apps/help/help.module.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/projects.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/answers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/builder.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/preview.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/sessions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/views/projects/projects.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/jscripty/jscripty.module.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/plugins.html","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/plugins.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/marketplace/marketplace.module.js","webpack://motion-frontend/./src/js/modules/main/apps/plugins/views/plugin/plugin.html","webpack://motion-frontend/./src/js/modules/main/apps/plugins/views/plugin/plugin.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/plugins/views/plugin/plugin.module.js","webpack://motion-frontend/./src/js/modules/main/apps/plugins/plugins.module.js","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html","webpack://motion-frontend/./src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/video/video.module.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/realtime.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/agents/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/queues/controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/realtime.factory.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/realtime.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/realtime/realtime.module.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/actions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/interactions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappDispositions.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.controller.js","webpack://motion-frontend/./src/js/modules/main/apps/whatsapp/whatsapp.module.js","webpack://motion-frontend/./src/js/modules/login/login.html","webpack://motion-frontend/./src/js/modules/core/layouts/content-only.html","webpack://motion-frontend/./src/js/modules/core/layouts/content-with-toolbar.html","webpack://motion-frontend/./src/js/modules/core/layouts/horizontal-navigation.html","webpack://motion-frontend/./src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html","webpack://motion-frontend/./src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html","webpack://motion-frontend/./src/js/modules/core/layouts/vertical-navigation.html","webpack://motion-frontend/./src/js/modules/core/layouts/index.js","webpack://motion-frontend/./src/js/modules/login/login.controller.js","webpack://motion-frontend/./src/js/modules/login/login.module.js","webpack://motion-frontend/./src/js/modules/forgot/forgot.html","webpack://motion-frontend/./src/js/modules/forgot/forgot.controller.js","webpack://motion-frontend/./src/js/modules/forgot/forgot.module.js","webpack://motion-frontend/./src/js/modules/reset/reset.html","webpack://motion-frontend/./src/js/modules/reset/reset.controller.js","webpack://motion-frontend/./src/js/modules/reset/reset.module.js","webpack://motion-frontend/./src/js/modules/errors/404/error-404.html","webpack://motion-frontend/./src/js/modules/errors/404/error-404.controller.js","webpack://motion-frontend/./src/js/modules/errors/404/error-404.module.js","webpack://motion-frontend/./src/js/modules/errors/500/error-500.html","webpack://motion-frontend/./src/js/modules/errors/500/error-500.controller.js","webpack://motion-frontend/./src/js/modules/errors/500/error-500.module.js","webpack://motion-frontend/./src/js/modules/errors/errors.module.js","webpack://motion-frontend/./src/js/index.api.js","webpack://motion-frontend/./src/js/index.config.js","webpack://motion-frontend/./src/js/index.controller.js","webpack://motion-frontend/./src/js/index.factory.js","webpack://motion-frontend/./src/js/modules/toolbar/layouts/vertical-navigation/toolbar.html","webpack://motion-frontend/./src/js/modules/navigation/layouts/horizontal-navigation/navigation.html","webpack://motion-frontend/./src/js/modules/navigation/layouts/vertical-navigation/navigation.html","webpack://motion-frontend/./src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html","webpack://motion-frontend/./src/js/modules/navigation/layouts/index.js","webpack://motion-frontend/./src/js/modules/header/layouts/vertical-navigation/header.html","webpack://motion-frontend/./src/js/modules/header/layouts/index.js","webpack://motion-frontend/./src/js/modules/footer/layouts/vertical-navigation/footer.html","webpack://motion-frontend/./src/js/modules/quick-panel/quick-panel.html","webpack://motion-frontend/./src/js/index.route.js","webpack://motion-frontend/./src/js/index.run.js","webpack://motion-frontend/./src/js/index.socket.js","webpack://motion-frontend/./src/js/modules/main/main.controller.js","webpack://motion-frontend/./src/js/index.module.js","webpack://motion-frontend//home/vito/Development/MOTION_V3/motion-server/motion-client/node_modules/moment/locale|sync|/^\\.\\/.*$/","webpack://motion-frontend/external \"angular\"","webpack://motion-frontend/ignored|ws"],"names":["addInterceptor","$httpProvider","interceptors","push","decorator","$transitions","requiresAuthCriteria","to","state","authenticate","isNotLoginState","name","requiresPermissionCriteria","permissionId","isGeneralDashboardSubstate","parent","redirectToLogin","transition","AuthService","injector","get","$state","router","stateService","isLoggedIn","target","undefined","reload","retrieveUser","catch","redirectToAgentDashboard","$to","hasRole","redirect","redirectToWelcomePage","hasPermission","id","params","Number","hasResourcePermission","redirectToGeneralDashboard","onBefore","onStart","onFinish","$mdDialog","$cookies","$q","api","$window","$document","motionCurrentUser","service","getToken","getCurrentUser","getPermissions","hasChildrenPermissions","hasModulePermissions","hasModulesPermissions","hasSectionPermissions","hasSectionsPermissions","isAgent","isAdmin","isTelephone","isUser","login","logout","parseCrudPermissions","queueLogin","reloadPermissions","removeCookies","setCurrentUser","getAuthenticationType","loginSSO","user","_","intrf","resolve","reject","device","$promise","then","err","queueLogout","setOnlineStatus","status","data","online","lastLoginAt","moment","format","update","auth","local","res","put","token","setAuthenticationType","showWebBar","hotdesk","show","controller","controllerAs","templateUrl","authHotDeskServiceDialogTemplate","angular","element","body","clickOutsideToClose","telephones","apiResolver","fields","role","nolimit","updatedUser","remove","localStorage","removeItem","logoutBySomeoneElse","whoami","userProfileId","permissions","userProfile","getSections","sections","i","length","item","sectionId","subsections","ids","crudPermissions","readOnly","canEdit","canDelete","resourceId","userProfileSection","entities","section","rows","autoAssociation","userProfileResource","resources","forEach","key","category","enabledSections","enabled","categories","enabledCategories","filter","uniqBy","map","value","authenticationType","provider","HotDeskDialogController","vm","closeDialog","close","hide","count","authInterceptor","$rootScope","$injector","Util","request","config","headers","PRODUCTION","isSameOrigin","url","Authorization","responseError","response","go","UtilService","safeCb","cb","isFunction","noop","urlParse","a","document","createElement","href","host","origins","concat","location","o","hostnameCheck","hostname","protocolCheck","protocol","portCheck","port","module","run","factory","motionConfigProvider","motionConfiguration","disableCustomScrollbars","disableMdInkRippleOnMobile","disableCustomScrollbarsOnMobile","configuration","extend","getConfig","configName","isUndefined","setConfig","configValue","$get","$ariaProvider","$logProvider","msScrollConfigProvider","debugEnabled","tabindex","wheelPropagation","runBlock","msUtils","motionGenerator","motionConfig","generate","isMobile","bodyEl","attr","addClass","browserInfo","detectBrowser","htmlClass","browser","version","os","AdvancedSearchController","Auth","color","storagePath","currentUser","searchOptions","matchType","conditions","toolbarColor","onInit","applyFilter","clearConditions","minimize","storage","getLocalStorage","advancedSearch","activeConditions","search","parameter","groupBy","items","condition","hasMultipleConditions","column","query","operators","g","operator","mapValues","v","flattenDeep","parameters","values","param","join","updateLocalStorage","clearLocalStorage","getItem","JSON","parse","setLocalStorage","setItem","stringify","focusOn","$timeout","restrict","link","$scope","$element","$attr","$watch","focus","blur","hljsDirective","$interpolate","compile","code","html","empty","scope","$eval","shouldInterpolate","when","contentParent","append","render","contents","codeElement","find","lines","split","line","trim","firstLineWhitespace","match","startingWhitespaceRegex","RegExp","replace","highlightedCode","hljs","language","lang","msAdvancedSearch","options","clearFilter","MsAdvancedSearchController","bindToController","MSAdvancedSearchDirectiveTemplate","$translate","toasty","availableOperators","type","symbol","translate","excludeFrom","applyTo","addCondition","editCondition","updateCondition","cancelUpdateCondition","setConditionStatus","removeCondition","getValues","onFieldChange","onOperatorChange","onValueChange","checkRange","handleKeyboardAction","endRangeValue","searchText","isValidCondition","filterOperators","autoSelectOperator","selectedOperator","oldValue","isValidRange","selectedField","extraOperators","isExtra","checkConditionValidity","minDateRange","add","hasExtraOperators","hasFewerOperators","excludedOperators","isDefault","isExcluded","route","copy","Object","keys","apiRoute","model","action","results","displayValue","searchFields","field","fieldValue","toLowerCase","error","title","statusText","toUpperCase","msg","message","toString","instant","maxDateRange","subtract","buildCondition","clearValues","pendingCondition","style","Date","endValue","index","splice","disabled","getDisplayValue","displayEndValue","parseValue","parsedValue","selectedDate","utcOffset","endingDate","msCardDirective","templatePath","card","template","tElement","postLink","iElement","cardTemplateLoaded","$emit","msChipColor","attrs","$observe","mdChip","hasClass","classes","className","indexOf","msClickToCall","prefix","license","$http","showMenu","internal","phoneBarRemoteControl","webrtc","choosePrefix","getVoicePrefixes","prefixes","CoreDirectiveMSPhonebarPrefixDialogTemplate","locals","required","phoneBarPrefixRequired","chooseDevice","phoneBarApi","phoneBarRemoteControlPort","purifyNumber","$broadcast","call","transfer","success","MSClickToCallTemplate","msDatepickerFixConfigProvider","defaultConfig","formatter","val","parser","toDate","msDatepickerFix","msDatepickerFixConfig","require","priority","elem","ngModel","$formatters","$parsers","msDialogRecording","path","loaded","objectDownload","setAttribute","onplay","e","preventDefault","download","arrayBuffer","buffer","blob","Blob","URL","createObjectURL","play","console","msDualMultiselect","canTransfer","removed","isValid","selectedItems","from","transferCallback","getLine","string","MSDualMultiselectTemplate","msEmojiArea","onReply","ctrlMethods","pickerPosition","recentEmojis","placeholder","el","emojioneArea","attributes","spellcheck","events","keypress","editor","$event","getText","event","emojibtn_click","setText","internalControl","newValue","msFontFamily","fonts","option","MSFontFamilyTemplate","MsFormWizardController","forms","selectedIndex","registerForm","previousStep","nextStep","firstStep","lastStep","totalSteps","isFirstStep","isLastStep","currentStepInvalid","previousStepInvalid","formsIncomplete","resetForm","form","isDefined","$invalid","x","$setPristine","$setUntouched","msFormWizardDirective","msFormWizardFormDirective","iAttrs","ctrls","formCtrl","MsFormWizardCtrl","msInfoBarDirective","onClose","transclude","MSInfoBarTemplate","bodyClass","removeInfoBar","removeClass","$destroy","msMasonryController","$mdMedia","defaultOpts","columnCount","respectItemOrder","reLayoutDebounce","responsive","md","sm","xs","reLayoutTimeout","container","containerPos","columnWidth","reLayout","initialize","waitImagesLoaded","watchContainerResize","$on","callback","imagesLoaded","imgLoad","on","width","cancel","start","getBoundingClientRect","updateColumnOptions","referenceArr","Array","apply","refTop","css","Math","min","height","xPos","round","yPos","transform","msMasonry","pre","preLink","fromJson","post","msMasonryItem","newVal","oldVal","msMaterialColorPickerController","$mdColorPalette","$mdMenu","palettes","selectedPalette","selectedHues","$selectedColor","activateHueSelection","selectColor","removeColor","setSelectedColor","palette","hues","hue","updateSelectedColor","updateModel","selectedColor","class","modelCtrl","$viewValue","msModelType","bgColorValue","rgba","fgColorValue","contrast","equals","$setViewValue","msMaterialColorPicker","MSMaterialColorPickerTemplate","controllers","ctrl","clone","nodeType","replaceWith","msNavFoldService","foldable","setFoldable","isNavFoldedOpen","toggleFold","openFolded","closeFolded","msNavIsFoldedDirective","isFolded","msNavIsFolded","isFoldedOpen","openOverlay","closeOverlay","sidenavEl","fold","unfold","scrollTop","off","MsNavController","toggleItems","lockedItems","isDisabled","enable","disable","setToggleItem","getLockedItems","setLockedItem","clearLockedItems","msNavDirective","$mdComponentRegistry","stateChangeSuccessEvent","navigation","msNavTitleDirective","msNavButtonDirective","msNavToggleDirective","$animate","tAttrs","collapsed","MsNavCtrl","expanded","expandAnimation","collapseAnimation","links","states","regExp","children","toggle","isCollapsed","expand","locked","lockedItem","collapse","currentState","current","shouldExpand","isExpanded","deferred","defer","promise","elementToExpand","position","visibility","display","offsetHeight","$evalAsync","animate","elementToCollapse","msNavigationServiceProvider","$log","saveItem","deleteItem","sortByWeight","isString","parts","_findOrCreateParent","updateItem","_id","uisref","_getUiSref","weight","isNumber","_path","p","sort","_byWeight","pop","createParent","y","parseInt","stateParams","isObject","toJson","activeItem","navigationScope","folded","foldedOpen","clearNavigation","setActiveItem","getActiveItem","getNavigation","getFlatNavigation","setNavigationScope","setFolded","getFolded","setFoldedOpen","getFoldedOpen","toggleFolded","node","root","_flattenNavigation","flatNav","navToPush","MsNavigationController","msNavigationService","toggleHorizontalMobileMenu","init","toggleClass","msNavigationDirective","$mdSidenav","MSNavigationVerticalTemplate","foldExpanderEl","foldCollapserEl","sidenav","setFoldExpander","isLockedOpen","old","removeFoldCollapser","onFoldExpanderHover","setFoldCollapser","onFoldCollapserHover","MsNavigationNodeController","hasChildren","collapsable","group","animateHeightClass","toggleCollapsed","getClass","isHidden","includes","givenPathParts","activePathParts","collapseEl","expandEl","hidden","msNavigationNodeDirective","MsNavigationNodeCtrl","msNavigationItemDirective","msNavigationHorizontalDirective","MSNavigationHorizontalTemplate","MsNavigationHorizontalNodeController","isActive","msNavigationHorizontalNodeDirective","MsNavigationHorizontalNodeCtrl","msNavigationHorizontalItemDirective","onClick","MsPhonebarController","$interval","$mdToast","motNotification","socket","vm_pb","jabra","window","baseUrl","conf","$parent","attributesToSave","ringingVolume","speakerVolume","microphoneVolume","ringingMute","speakerMute","microphoneMute","direction","selectedMode","showDialpad","soundPlayer","remotePlayer","getElementById","remotePlayerId","volume","sessionConf","mediaConstraints","audio","video","pcConfig","iceServers","sessions","calls","callbackQueue","canGoInConference","isInConference","currentConferenceSessions","ua","JsSIP","sockets","uri","authorization_user","ha1","realm","user_agent","session_timers_refresh_method","register_expires","phoneBarExpires","register","initDeviceInProgress","isJabraEnabled","isJabraInitialized","jabraSession","jabraClicked","buttonClicked","originateInProgress","initMediaDevices","navigator","mediaDevices","ondevicechange","shutdown","turnStunGetConfigPromise","network","Promise","all","turnConfig","stunConfig","iceServerUrls","stunUrls","urls","server","username","password","credential","onRegistered","bind","onUnregistered","onNewRTCSession","originateHook","hangupHook","answerHook","holdHook","unholdHook","transferHook","forceDefault","activeRingDevice","activeOutDevice","activeInDevice","getUserMedia","dummyStream","getTracks","track","stop","enumerateDevices","devices","inputDevices","kind","deviceId","defaultInputDevice","groupId","microphoneId","ifound","warning","clickToClose","showClose","shake","timeout","initDevice","outputDevices","defaultOutputDevice","speakerId","ofound","ringingId","rfound","getInstallInfo","getUserDeviceMediaExt","deviceInfo","browserGroupId","log","onHook","addEventListener","onAcceptCall","onMute","onUnmute","onFlash","onEndCall","warn","finally","updateStorage","DetectRTC","onLoad","session","isInProgress","answer","localHold","unhold","hold","getActiveSession","terminate","registered","hasMicrophone","hasSpeakers","isWebRTCSupported","osName","osVersion","browserName","browserVersion","isOk","isCompatibleBrowser","debug","canAnswer","xAnswerMode","xAnswerAfterSec","callbackurl","originator","outgoing","ruri","addCall","headername","getExtraHeaderValue","extraHeaders","resume","offHook","voicePause","phoneBarDnd","incoming","display_name","getHeader","getNotification","ring","autoAnswer","autoAnswerDelay","timeoutMs","call_id","callCallback","connection","onaddstream","onAddstream","iceCandidateTimeout","onProgress","onConfirmed","onHold","onUnhold","onEnded","onFailed","onIcecandidate","$apply","inbound","fullname","unshift","time","create","notification","statusCode","status_code","isEstablished","otherSession","putOtherCallsOnHold","loop","getVoiceChannels","uniqueid","number_called","rpc","r","sipcalllinkedid","sipcalluniqueid","monitor","monitors","box","substr","$","confirmed","getRemoteStreams","srcObject","pause","stream","endConference","currentconferenceSessions","clearTimeout","setTimeout","ready","closeDialpad","n","dialpad","oggFile","enableDtmfTone","isOnHold","sendDTMF","forceSave","muted","setSinkId","info","mute","unmute","targetChanged","resetInput","test","targetSelected","originalObject","showPrefixes","MSPhoneBarPrefixDialogTemplate","typeWrapper","evt","toggleDialpad","keyCode","start3WayConf","s0","getSenders","r0","getReceivers","patchConference","s1","r1","useUpdate","allReceivedMediaStreams","MediaStream","context","AudioContext","mixedOutput","createMediaStreamDestination","sourceStream","createMediaStreamSource","connect","replaceTrack","addTrack","remoteAudio","promiseRemote","selectSession","record","MSPhonebarRecordDialogTemplate","refer","confirm","prompt","textContent","ariaLabel","ok","eventHandlers","requestSucceeded","onReferCallback","requestFailed","delay","simple","hideDelay","referAttended","MSPhonebarReferAttendDialogTemplate","remote","onSettings","MSPhonebarSettingsTemplate","targetEvent","onLogout","onRemoteCall","onRemoteTransfer","payload","callNumber","callerId","callbackUrl","sessionId","findSessionBySessionId","sessionToHangup","sessionListToAnswer","getSessionToAnswer","sessionToAnswer","itemsFound","sessionItem","sessionToHold","sessionToUnhold","transferNumber","sessionToTransfer","method","suffix","extraHeader","$onInit","removeAllListeners","msPhonebarDirective","MSPhonebarTemplate","PrefixDialogController","msBlinkDirective","showElement","hideElement","RecordDialogController","addRecording","guid","s4","floor","random","substring","filename","startMonitor","mixmonitorid","stopMonitor","skipHide","initialValue","ReferAttendedDialogController","sessionTarget","b","s","replaces","onTransferCallback","agent","SettingsController","getDeviceId","saveSettings","mediaDeviceInfo","msQuickFilter","filters","MsQuickFilterController","MSQuickFilterTemplate","dateRangeManager","quickFilterManager","pickerModels","placeholders","localizationMap","onMultiselectInit","onDateRangeInit","onMultiselectSelection","onDateRangeSelection","clearDate","clearSelection","selectAll","setPlaceholder","setSelectedDate","dateStart","$gte","$lte","dateEnd","ngValue","clearAll","DateRangeManager","$filter","dateFilterLocalizationFactory","manager","ds","de","getFullYear","getMonth","getDate","selectedTemplateName","getPlaceholder","isSame","isToday","isYesterday","isThisWeek","isLastWeek","isThisMonth","isLastMonth","isThisYear","isLastYear","startOf","endOf","msRandomClassDirective","msRandomClass","randomClass","msRecording","msResponsiveTableDirective","wrapper","after","defaultConfiguration","wheelSpeed","swipePropagation","minScrollbarLength","maxScrollbarLength","useBothWheelAxes","useKeyboard","suppressScrollX","suppressScrollY","scrollXMarginOffset","scrollYMarginOffset","stopPropagationOnClick","msScrollDirective","msScrollConfig","msScroll","PerfectScrollbar","updateScrollbar","prop","MsSearchBarController","queryOptions","debounce","collapseOnBlur","resultsLoading","selectedResultIndex","ignoreMouseEvents","populateResults","blurCollapse","absorbEvent","handleKeydown","handleMouseenter","temporarilyIgnoreMouseEvents","handleResultClick","ensureSelectedResultIsVisible","onSearchEvaluated","onSearch","isArray","isPromise","isNull","onExpand","onCollapse","mouseEventIgnoreTimeout","onResultClick","resultsEl","selectedItemEl","top","bottom","outerHeight","msSearchBarDirective","iconColor","MSSearchBarTemplate","closest","MsShortcutsController","mobileBarActive","shortcuts","sortableOptions","ghostClass","forceFallback","fallbackClass","onSort","saveShortcuts","loadShortcuts","flatNavigation","hasShortcut","icon","addShortcut","removeShortcut","toggleMobileBar","msShortcutsDirective","MSShortcutsTemplate","msSidenavHelperDirective","MdSidenavCtrl","isOpen","msSplashScreenDirective","splashScreenRemoveEvent","leave","MsStepperController","mainForm","orientation","steps","currentStep","currentStepNumber","isStepNumberValid","stepNumber","setOrientation","registerMainForm","gotoFirstStep","setCurrentStep","isStepHidden","hideStep","registerStep","step","stepTitle","stepTitleTranslate","setupSteps","j","gotoStep","gotoPreviousStep","gotoNextStep","gotoLastStep","isStepCurrent","isStepOptional","optionalStep","isStepValid","$valid","isStepDisabled","filterHiddenStep","isFormValid","msHorizontalStepperDirective","MSStepperHorizontalTemplate","FormCtrl","MsStepperCtrl","msHorizontalStepperStepDirective","msVerticalStepperDirective","MSStepperVerticalTemplate","msVerticalStepperStepDirective","MSStepperVerticalStepperTemplate","stepInfo","MsStepper","MsTabScrollController","onTabScroll","canScroll","scrollLeft","determineOverflow","content","scrollWidth","msTabScrollDirective","MSTabScrollTemplate","MsTimelineController","scrollEl","setScrollEl","getScrollEl","msTimelineDirective","msTimeline","loadMore","MsTimelineCtrl","loadMoreEl","threshold","registerOnScroll","onScroll","unregisterOnScroll","msTimelineItemDirective","itemLoaded","itemInViewport","args","cardEl","testForImage","testForVisibility","itemReadyWatcher","imgEl","MsTimerController","$attrs","$compile","String","prototype","autoStart","autostart","interval","intervalAttr","startTime","endTime","timeoutId","countdown","countdownAttr","isRunning","clear","resetTimeout","now","startTimeAttr","endTimeAttr","countdownattr","tick","diff","stoppedTime","millis","seconds","minutes","hours","days","calculateTimeUnits","maxTimeUnit","months","years","secondsS","minutesS","hoursS","daysS","monthsS","yearsS","sseconds","mminutes","hhours","ddays","mmonths","yyears","adjustment","finishCallback","$digest","msTimerDirective","msTimezone","timezone","offsetStr","countries","MSTimezoneTemplate","MsWidgetEngineCounterController","filtered","fontSize","getCount","widget","sum","voiceQueuesSelected","voiceQueues","MsWidgetEngineMultibarChartController","properties","multiBarChart","labels","series","legend","fontColor","scales","xAxes","gridLines","ticks","stepSize","beginAtZero","yAxes","updateAttributes","differenceSeries","differenceLabels","k","updateColor","foreground","getMultiBarChart","MsWidgetEnginePieChartController","pieChart","getPieChart","MsWidgetEngineWebReportController","countDown","refresh","columns","limit","page","startDate","endDate","output","getResults","valueReplacer","analyticFieldReport","DefaultReportId","CustomReportId","reportRoute","report","offset","MsWidgetEngineController","$sce","getTrustedURL","trustAsResourceUrl","msWidgetEngineDirective","onEdit","onDelete","MSWidgetEngineTemplate","MsWidgetController","flipped","isFlippable","flippable","flip","msWidgetDirective","MsWidgetCtrl","transcludeFn","msWidgetFrontDirective","flipWidget","msWidgetBackDirective","CORE_DIRECTIVES","QuickFilterManager","altDate","fromNow","calendar","toTrustedFilter","trustAsHtml","htmlToPlainTextFilter","text","nospaceFilter","humanizeDocFilter","doc","$1","label","capitalize","filterByIds","filterByPropIds","snakeCase","startCase","filterByTags","tags","every","tag","tagExists","itemTag","filterSingleByTags","itemTags","Notification","accept","isPageVisible","mozHidden","webkitHidden","isChrome","userAgent","vendor","self","serviceWorker","registration","getNotifications","notifications","swRegistration","sw","swReg","installing","waiting","active","source","rej","requestPermission","result","showNotification","requireInteraction","actions","Error","apiResolverService","actionParts","resource","apiObject","getApiObject","resourceParts","l","LoadingIndicatorService","showLoadingIndicator","loadingProgress","hideLoadingIndicator","msApiProvider","setBaseUrl","getBaseUrl","paramDefaults","$resource","resourceObject","mobileDetect","MobileDetect","exists","guidGenerator","toggleInArray","firstLastDayMonth","list","browserData","subString","versionSearch","identity","opera","osData","platform","versionSearchString","searchString","dataString","dataProp","searchVersion","appVersion","S4","mobile","array","MsThemeOptionsController","motionTheming","themes","layoutModes","layoutStyles","figure","layoutMode","layoutStyle","setActiveTheme","getActiveTheme","updateLayoutMode","updateLayoutStyle","themeName","msThemeOptions","ThemeOptionsTemplate","toggleOptionsSidenav","motionGeneratorService","registeredThemes","getRegisteredThemes","registeredPalettes","getRegisteredPalettes","registeredTheme","colors","colorType","colorTypeName","levels","default","contrast1","contrast2","contrast3","contrast4","hue1","hue2","hue3","processAndStoreThemes","styleVars","theme","colorTypes","colorLevelName","colorName","ucfirst","_themes","setThemesList","selectedTheme","cssTemplate","regex","matched","headEl","styleEl","_contrastLevel","contrastLevel","applyContrast","contrastLevels","white","black","charAt","slice","motionPalettes","A100","A200","A400","A700","contrastDefaultColor","contrastDarkColors","contrastStrongLightColors","motionThemes","primary","accent","background","pinkTheme","tealTheme","themingConfig","$mdThemingProvider","invoke","_$cookies","customTheme","getObject","alwaysWatchTheme","definePalette","primaryPalette","accentPalette","warnPalette","backgroundPalette","motionThemingService","$mdTheming","PALETTES","THEMES","themeList","coreModule","Component","directive","constant","NavigationController","setting","msScrollOptions","toggleMsNavigationFolded","getLogo","onSaveDashboard","onRemoveDashboard","onSavePlugin","onRemovePlugin","defaultHeaderWhiteLabel","headerWhiteLabel","dashboard","plugin","sidebar","childExists","parentId","childId","ChangePasswordController","reset","errors","passwordPattern","securePassword","savePassword","oldPassword","changePasswordForm","$setValidity","changePassword","newPassword","PreviewDialogController","$location","preview","customFields","customFieldsMap","hopperIds","originated","disableGetContact","originatePreview","nextContact","previousContact","getFirstAvailableContact","isCustomField","isHiddenField","isNil","getVoiceQueuesPreview","cmHopper","UserId","getPreview","Queue","dialActive","discardedIds","ToolbarController","polling","stopTime","global","pauses","unreadTotalMessages","unreadTotalGroupMessages","contcts","channel","userStatusOptions","languages","ar","translation","flag","da","en","es","fa","fi","fr","he","hi","it","ja","ko","lv","nl","no","pl","ru","sv","tr","rtlLanguages","toggleSidenav","changeLanguage","setUserStatus","searchResultClick","openSettings","onUserUpdate","onUserCalled","unpause","userIsNotPhonebar","onInternalMessageSave","onInternalMessageUpdate","onUserVoiceQueue","onVoiceQueue","getVoiceQueues","connectSocket","md5secret","recording","phoneBarEnableRecording","phoneBarAutoAnswer","enableSettings","phoneBarEnableSettings","phoneBarEnableDtmfTone","phoneBarAutoAnswerDelay","userStatus","languageCookie","selectedLanguage","preferredLanguage","passwordResetAt","expiration","passwordExpiresDays","isAfter","ceil","onForceLogout","onNewNotification","disconnectSocket","disconnect","getQueues","ev","PreviewDialogTemplate","sidenavId","chatInternalMessage","ToId","read","ChatGroupId","FromId","use","ChangePasswordTemplate","escapeToClose","membername","calleridnum","queue","variables","extravar","dialMethod","dialer","getOpenContacts","contacts","resetTimer","alert","ip","recipient","sender","recipientTitle","description","wait","sound","beep","$translatePartialLoaderProvider","addPart","QuickPanelController","desktopNotification","date","onMessageSave","onMessageUpdate","getGroups","promises","groups","chatGroup","getUnread","showDesktopNotification","autoClose","duration","showOnPageHidden","focusOnclick","closeOnClick","checkDesktopNotification","isSupported","ChatInternalController","vm_ct","users","standardDate","unreadMessage","replyMessage","toggleChat","reply","webcall","getUsers","messages","scrollToBottomOfChat","found","lastMessageAt","createdAt","lastMessage","allowmessenger","save","speed","chatDialog","scrollHeight","number","CreateOrEditChatGroupDialogController","members","newChatGroup","write","saveChatGroup","querySearch","createFilterFor","lowercaseQuery","filterFn","contact","criteria","_group","addMembers","chatQueue","ChatGroupController","vm_cg","unreadGroupMessages","participants","back","addGroup","deleteGroup","groupsToArray","showMessageInfo","onGroupRemove","pushMessage","InfoDialogTemplate","_data","ChatInternalMessageId","addMessage","getMembers","membersByKeys","getMessages","htmlContent","delete","CreateDialogTemplate","me","getResources","ShowMessageInfoDialogController","HeaderController","newsAlertOnClose","newsAlertHide","FooterController","cookieAlertOnClose","cookieAlertHide","UserChatDashboardGeneralController","chatInteractions","chatWebsites","unit","talking","answered","abandoned","unmanaged","sumHoldTime","sumBillable","total","avgHoldTime","avgTalkTime","answerRate","abandonRate","onSaveChatInteraction","onUpdateChatInteraction","updateStats","chatInteraction","closed","disposition","closedAt","read1stAt","updateRates","hasPermissions","interaction","ChatWebsiteId","isInRange","startDay","endDay","isBetween","UserVoiceDashboardDialerController","outboundQueues","rpcQueues","initializeRealtimeQueue","initializeRealtimeCampaign","rpcCampaigns","ivr","limitCalls","pTalking","outboundDropCallsDayCallersExit","outboundDropCallsDayTimeout","onSaveQueue","onSaveCampaign","onWithoutApply","onIvrInit","queues","campaign","UserFaxDashboardGeneralController","faxInteractions","faxAccounts","onSaveFaxInteraction","onUpdateFaxInteraction","faxInteraction","FaxAccountId","UserMailDashboardGeneralController","mailInteractions","mailAccounts","onSaveMailInteraction","onUpdateMailInteraction","mailInteraction","MailAccountId","UserOpenchannelDashboardGeneralController","openchannelInteractions","openchannelAccounts","onSaveOpenchannelInteraction","onUpdateOpenchannelInteraction","openchannelInteraction","OpenchannelAccountId","UserSmsDashboardGeneralController","smsInteractions","smsAccounts","onSaveSmsInteraction","onUpdateSmsInteraction","smsInteraction","SmsAccountId","execNext","task","toISOString","pow","outboundDropRate","outboundAbandonRate","outboundanswerRate","shift","d","secToTime","UserDashboardGeneralController","hasDashboardPermissions","getFirstAvailableSubstate","selectedTab","voice","chat","mail","messaging","openchannel","fax","whatsapp","UserVoiceDashboardGeneralController","inboundQueues","outbound","sumDuration","onSaveOutbound","UserWhatsappDashboardGeneralController","whatsappInteractions","whatsappAccounts","onSaveWhatsappInteraction","onUpdateWhatsappInteraction","whatsappInteraction","WhatsappAccountId","$stateProvider","views","UserGeneralTemplate","UserGeneralDialerTemplate","UserGeneralChatTemplate","UserGeneralMailTemplate","sms","UserGeneralSmsTemplate","UserGeneralOpenchannelTemplate","UserGeneralFaxTemplate","UserGeneralWhatsappTemplate","AgentDashboardGeneralController","globalUserLists","globalLists","globalCompanies","globalTags","currentTab","tabs","agentCapacity","onClickTab","isActiveTab","alreadyExistsTab","addContactTab","addInteractionTab","addTab","removeTab","closeTab","onContactManager","onJscripty","onBot","onBrowserUrl","onBrowserPopup","onNotificationSave","onNotificationRemove","onVoiceChannelRemove","initTabs","motionUser","updateAgentCapacity","tab","currentLS","obj","capacity","setAgentCapacity","mandatoryDisposition","saved","_options","wasUserInPause","chatPause","mailPause","openchannelPause","faxPause","Account","DisposeDialogTemplate","onRemoving","removeAgentFromTab","openedAt","badges","interactionId","getTitle","firstName","lastName","phone","getIconByChannel","getColorByChannel","autoCreate","answeredAt","agentcalledAt","timestamp","agentcompleteAt","endtime","allowCallDisposition","voiceCallReport","disposedAt","foundCall","ListId","dispositions","cmList","getCustomFields","handleError","isDraft","onAdd","onAccept","manual","onReject","ContactSelectionDialogTemplate","routeId","destcalleridnum","jscriptyProject","ProjectId","project","formData","Mustache","cmContact","uriLocation","open","windowWidth","windowHeight","src","calleridname","squareMessage","updateVoiceCallReport","contactId","ContactId","DraftManager","drafts","getDrafts","getByInteraction","draft","removeByInteraction","email","subject","account","userHome","currentSidebarTab","settings","PERMISSIONS","mozNotification","webkitNotification","currentPermission","DEFAULT","granted","GRANTED","denied","DENIED","permission","_isArgsValid","_isPageVisible","onclick","_autoCloseAfter","isTitleString","isOnClickFunction","durationInMs","msNavigationAgentService","AgentGeneralBotController","showInteraction","getMessagesAlignment","messagesAlignment","TEMPLATES","Compose_FaxDialogTemplate","Compose_MailDialogTemplate","Compose_OpenchannelDialogTemplate","Compose_SmsDialogTemplate","Compose_WhatsappDialogTemplate","AgentGeneralContactController","journey","queryHopper","queryFinal","queryHistory","hoppers","finals","histories","firstDayMonth","lastDayMonth","addNewContact","saveContact","disposeCall","duplicateContact","mergeContact","getDateFromString","addJscriptyTab","getHoppers","getFinals","getHistories","getJscriptyProjects","getMailAccounts","getFaxAccounts","getSmsAccounts","getWhatsappAccounts","getOpenchannelAccounts","getChatWebsites","getLists","composeInteraction","openInteraction","getColorByItem","isMyAccount","chatAccounts","amaflags","parseDispositionsValues","secondDisposition","thirdDisposition","concatJourney","entity","dispositionsValues","initCustomerJourney","omniChannels","includeAll","$watchGroup","newValues","newContact","usersMap","addContacts","userLists","lists","companies","getTags","Tags","Contact","fullscreen","send","Messages","attachments","attachment","MailMessageId","closeDispo","InteractionDisposeDialogTemplate","detailForm","$pristine","customFieldsForm","setTags","initializing","bookmark","cmHopperFinal","cmHopperHistory","projects","jscriptyProjects","accounts","ContactsDuplicateDialogTemplate","MergeDuplicateDialogTemplate","new","globalDispositions","choice","str","DisposeCallDialogController","isReschedule","recallme","queueCampaign","queueCampaigns","note","dialerCall","hasBlackLists","hopper","minDate","dateTime","voiceQueue","getBlackLists","onDispositionChange","clearDispositionSelection","saveDisposition","saveReschedule","level","selectedDisposition","firstLevelDisposition","anySecondLevelDisposition","secondLevelDisposition","thirdLevelDisposition","anyThirdLevelDisposition","buildObjectHopper","dispositionat","amd","blacklist","OwnerId","userDisposition","userSecondDisposition","userThirdDisposition","updateVoiceRecording","voiceRecording","updateCmHopperFinal","updateCmHopperHistory","updateBlackList","voiceQueueId","VoiceQueueId","scheduledat","rescheduled","rescheduledat","RescheduleCallDialogController","saveDialog","ContactSelectionController","keyBy","cmCustomField","startsWith","matchingField","alias","paginatedContacts","selectContact","selectedContact","AgentHomeAbandonedController","AgentHomeAbandonedBullController","vm_bull","showTooltip","abandonedCalls","queuecallerexitreason","getAbandonedCalls","refreshAbandonedCalls","reserved","dispose","webtransfer","onSearchBarCollapse","onSearchBarExpand","onSavevoiceQueueReport","onUpdatevoiceQueueReport","queuesMap","defaultQueues","quickFilters","buildQuickFilters","defaultCreatedAt","isSearchBarVisible","customOptions","voiceQueueReport","getVoiceQueuesReport","queueReport","lastAssignedTo","assigned","firstLevel","secondLevel","thirdLevel","abandonedCall","DisposeAbandonedCallDialogController","dispositionData","AgentHomeAbandonedVoiceController","vm_voice","AgentGeneralHomeController","draftManager","vm_home","changeSidebarTab","home","view","pluginId","AgentHomeChatController","table","sectionColor","getChatInteractions","showChatInteraction","downloadChatInteraction","disposeInteraction","getContactLabel","getAgentLabel","getChatWebsiteLabel","openAdvancedSearch","take","onChatInteractionSave","onChatInteractionTagsSave","onChatMessageSave","onChatInteractionOpen","onChatInteractionClose","searchInProgress","appendChild","click","contactName","Owner","u","ChatInteractionId","Users","chatFound","unreadMessages","sortOrder","secret","chatMessageFound","AdvancedSearchDialogTemplate","AgentHomeContactsController","getContacts","refreshContacts","openContact","listsMap","getFields","DuplicateDialogTemplate","MergeDialogTemplate","describe","toJSON","omit","buildField","tagField","tagIndex","f","displayName","columnName","custom","AgentHomeDashboardController","AgentHomeDashboardBullController","voiceQueuesTotal","rpcVoiceQueues","rpcVoiceQueuesChannels","addVoiceQueuesChannels","deleteVoiceQueuesChannels","load","queryChannels","getSize","onSaveChannel","onSaveVoiceQueue","onUpdateVoiceQueue","onRemoveVoiceQueue","getVoiceQueuesChannels","queuecallerleaveAt","AgentHomeDashboardMultiChannelChatController","loading","chatQueues","chatQueuesTotal","rpcChatQueues","paginatedInteractions","deleteChatQueuesWaitingInteractions","rpcChatQueuesWaitingInteractions","getChatQueues","paginate","onSaveChatQueue","onUpdateChatQueue","onRemoveChatQueue","onSaveUserChatQueue","onRemoveUserChatQueue","onSaveChatQueueChannel","onRemoveChatQueueChannel","myQueues","getChatQueuesWaitingInteractions","row","queue_id","interactions","AgentHomeDashboardMultiChannelFaxController","faxQueues","faxQueuesTotal","rpcFaxQueues","deleteFaxQueuesWaitingInteractions","rpcFaxQueuesWaitingInteractions","getFaxQueues","onSaveFaxQueue","onUpdateFaxQueue","onRemoveFaxQueue","onSaveUserFaxQueue","onRemoveUserFaxQueue","onSaveFaxQueueChannel","onRemoveFaxQueueChannel","getFaxQueuesWaitingInteractions","AgentHomeDashboardMultiChannelMailController","mailQueues","mailQueuesTotal","rpcMailQueues","deleteMailQueuesWaitingInteractions","rpcMailQueuesWaitingInteractions","getMailQueues","onSaveMailQueue","onUpdateMailQueue","onRemoveMailQueue","onSaveUserMailQueue","onRemoveUserMailQueue","onSaveMailQueueChannel","onRemoveMailQueueChannel","getMailQueuesWaitingInteractions","AgentHomeDashboardMultiChannelOpenchannelController","openchannelQueues","openchannelQueuesTotal","rpcOpenchannelQueues","deleteOpenchannelQueuesWaitingInteractions","rpcOpenchannelQueuesWaitingInteractions","getOpenchannelQueues","onSaveOpenchannelQueue","onUpdateOpenchannelQueue","onRemoveOpenchannelQueue","onSaveUserOpenchannelQueue","onRemoveUserOpenchannelQueue","onSaveOpenchannelQueueChannel","onRemoveOpenchannelQueueChannel","getOpenchannelQueuesWaitingInteractions","AgentHomeDashboardMultiChannelSmsController","smsQueues","smsQueuesTotal","rpcSmsQueues","deleteSmsQueuesWaitingInteractions","rpcSmsQueuesWaitingInteractions","getSmsQueues","onSaveSmsQueue","onUpdateSmsQueue","onRemoveSmsQueue","onSaveUserSmsQueue","onRemoveUserSmsQueue","onSaveSmsQueueChannel","onRemoveSmsQueueChannel","getSmsQueuesWaitingInteractions","AgentHomeDashboardVoiceController","allQueues","allQueuesById","myQueue","AgentHomeDashboardMultiChannelWhatsappController","whatsappQueues","whatsappQueuesTotal","rpcWhatsappQueues","deleteWhatsappQueuesWaitingInteractions","rpcWhatsappQueuesWaitingInteractions","getWhatsappQueues","onSaveWhatsappQueue","onUpdateWhatsappQueue","onRemoveWhatsappQueue","onSaveUserWhatsappQueue","onRemoveUserWhatsappQueue","onSaveWhatsappQueueChannel","onRemoveWhatsappQueueChannel","getWhatsappQueuesWaitingInteractions","AgentHomeFaxController","getFaxInteractions","showFaxInteraction","downloadFaxInteraction","getFaxAccountLabel","composeFaxInteraction","onFaxInteractionSave","onFaxInteractionTagsSave","onFaxMessageSave","onFaxInteractionOpen","onFaxInteractionClose","contactInfo","ComposeFaxTemplate","savedAsDraft","faxAccount","FaxInteractionId","faxFound","faxMessageFound","AgentHomeMailController","getMailInteractions","showMailInteraction","downloadMailInteraction","getMailAccountLabel","composeMailInteraction","openDraft","mailSubstatus","subStatuses","onMailInteractionSave","onMailInteractionTagsSave","onMailMessageSave","onMailInteractionOpen","onMailInteractionClose","ngIf","ComposeMailDialogTemplate","mailAccount","MailInteractionId","mailFound","mailMessageFound","AgentHomeMyContactsController","mycontacts","advancedQuery","AgentHomeOpenchannelController","getOpenchannelInteractions","showOpenchannelInteraction","downloadOpenchannelInteraction","getOpenchannelAccountLabel","composeOpenchannelInteraction","onOpenchannelInteractionSave","onOpenchannelInteractionTagsSave","onOpenchannelMessageSave","onOpenchannelInteractionOpen","onOpenchannelInteractionClose","ComposeOpenchannelDialogTemplate","openchannelAccount","OpenchannelInteractionId","openchannelFound","openchannelMessageFound","AgentHomePluginsController","$stateParams","agentUrl","AgentHomeRecordingsController","voiceRecordings","downloadfile","downloadtranscribe","getVoiceRecordings","recordings","downloadTranscribe","AgentHomeScheduledCallsController","priorities","scheduledCalls","getScheduledCalls","isDateBeforeToday","createOrEditQueueCampaignHopper","deleteConfirm","scheduled","scheduledCall","HoppersDialogTemplate","deleteQueueCampaignHopper","isBefore","AgentHomeSmsController","getSmsInteractions","showSmsInteraction","downloadSmsInteraction","getSmsAccountLabel","composeSmsInteraction","onSmsInteractionSave","onSmsInteractionTagsSave","onSmsMessageSave","onSmsInteractionOpen","onSmsInteractionClose","ComposeSmsDialogTemplate","smsAccount","SmsInteractionId","smsFound","smsMessageFound","AgentHomeVoiceController","voiceCalls","getVoiceCalls","showDetails","DetailsDialogTemplate","AgentHomeVoiceDetailsController","AgentHomeWhatsappController","getWhatsappInteractions","showWhatsappInteraction","downloadWhatsappInteraction","getWhatsappAccountLabel","composeWhatsappInteraction","onWhatsappInteractionSave","onWhatsappInteractionTagsSave","onWhatsappMessageSave","onWhatsappInteractionOpen","onWhatsappInteractionClose","ComposeWhatsappTemplate","whatsappAccount","WhatsappInteractionId","whatsappFound","whatsappMessageFound","AgentGeneralIframeController","AgentGeneralInteractionController","maxFileSizeMb","maxFileSize","showFooter","acceptedMessages","ngFlowOptions","singleFile","maxChunkRetries","chunkSize","simultaneousUploads","testChunks","progressCallbacksInterval","allowDuplicateUploads","ngFlow","flow","selectedMailShowDetails","selectedMailShowSystemMessage","embedOptions","fontSmiley","sanitizeHtml","emoji","linkTarget","getLabelByMessage","tagInteraction","transferLastMessage","downloadMessage","downloadInteraction","createVidaooSession","upload","fileAdded","fileSuccess","onInteractionSave","searchTextChange","selectedItemChange","displayCannedAnswerInput","changeDisplayCannedAnswerInputValue","setAs","markAsUnread","getAttachments","getAttachment","htmlToPlaintext","onInteractionOpen","onInteractionClose","loadNextPage","timelineOptions","voiceAccounts","queryMessage","updateUnreadMessages","scrollToBottom","areaText","compiled","selectedItem","cannedAnswer","spy","TagDialogTemplate","Boolean","showComposeMailDialog","sendMessage","Interaction","substatus","inReplyTo","messageId","mailMessage","ComposeFaxDialogTemplate","ComposeWhatsappDialogTemplate","TransferDialogTemplate","getMessageObject","keyAccount","file","size","AttachmentId","opts","shiftKey","interactionContent","currentAttachment","basename","removeChild","revokeObjectURL","idMsg","originalMessage","interactionData","ngBindHtmlUnsafe","getButtonSeeMore","updateView","trustedHtml","getChannelByItem","Emojis","watchEmbedData","pdf","embed","image","basicVideo","gdevAuth","ytTheme","details","thumbnailQuality","autoPlay","twitchtvEmbed","dailymotionEmbed","tedEmbed","dotsubEmbed","liveleakEmbed","ustreamEmbed","soundCloudEmbed","soundCloudOptions","themeColor","hideRelated","showComments","showUser","showReposts","visual","spotifyEmbed","tweetEmbed","tweetOptions","maxWidth","hideMedia","hideThread","align","highlight","lineNumbers","codepenEmbed","codepenHeight","jsfiddleEmbed","jsfiddleHeight","jsbinEmbed","jsbinHeight","plunkerEmbed","githubgistEmbed","ideoneEmbed","ideoneHeight","ComposeFaxInteractionDialogController","$mdConstant","separatorKeys","KEY_CODE","ENTER","COMMA","TAB","localstationid","getContact","contactSearch","transformContact","sendFax","attach","allowed","getExtension","c","chip","isFax","re","ComposeMailInteractionDialogController","hiddenCC","hiddenBCC","verifySmtp","onReadyEditor","fromTemplate","replyTemplate","forwardTemplate","Smtp","cc","bcc","getBody","showLastMessage","ckeditor","skin","startupFocus","allowedContent","extraPlugins","toolbarGroups","autoGrow_onStartup","autoGrow_minHeight","autoGrow_maxHeight","innerHeight","autocorrect_enabled","disableNativeSpellChecker","enterMode","CKEDITOR","ENTER_BR","font_defaultLabel","fontFamily","fontSize_defaultLabel","removePlugins","sizes","fontSize_sizes","newMail","forward","editDraft","addNote","removeAttachment","saveDraft","loadLastMessage","verify","Attachments","sendMail","getLastMessage","lastMsgDirection","lastMsgBody","ckEditorInstance","insertHtml","instances","isEmail","clearBody","reg","getTemplate","ComposeOpenchannelInteractionDialogController","sendOpenchannel","mapKey","ComposeSmsInteractionDialogController","sendSms","ComposeWhatsappInteractionDialogController","sendWhatsapp","DisposeInteractionDialogController","apiAccountRoute","accountProperty","mandatoryDispositionPause","MDPause","closeReason","TagInteractionDialogController","autocompleteRequireMatch","saveTag","addTags","TransferMessageDialogController","agents","queueMethod","queueNotifyMethod","onTransfer","AgentGeneralJscriptyController","mwFormResponseUtils","formViewer","showResetButton","showIncompleteSubmitButton","onSubmit","isJsonString","getResponseSheet","getResponseSheetRow","getResponseSheetHeaders","getQuestionWithResponseList","resetViewer","currentPage","starttime","responseData","enableUncompleteSave","pages","plength","elements","qlength","question","unpauseAgentOnSubmit","sendUnpauseOnSubmit","submitForm","completed","promisesQuestionReport","promisesAnswerReport","jscriptySessionReport","projectname","questions","jscriptyQuestionReport","questionId","SessionId","answers","jscriptyAnswerReport","incomplete","NotificationController","AgentGeneralPopupController","templateProvider","$templateFactory","fromUrl","AgentGeneralTemplate","controllerProvider","DashboardCustomController","customDashboard","onChangeVoiceQueues","goToEdit","widgets","draggable","resizable","getItems","CustomTemplate","_voiceQueues","mergeResources","abstract","AgentsController","listOrder","listOrderAsc","selectedAgents","editstate","teamadddialog","deleteconfirm","getAgents","createOrEditAgent","deleteAgent","exportSelectedAgents","deleteSelectedAgents","deselectAgents","selectAllAgents","TeamaddTemplate","CreateOrEditAgentDialogController","newAgent","autointernal","addNewAgent","saveAgent","agentFound","AgentChangeAvatarController","vm_ca","dropping","images","uploadingFile","uniqueIdentifier","media","fileReader","FileReader","readAsDataURL","onload","AgentchangepasswordController","agentForm","AgentPermissionsController","vm_pc","onChange","father","child","elm","AgentqueueaddController","penalty","apiName","allowedItems","startingAllowedItems","startingSelectedItems","pendingChanges","dualMultiselectOptions","showSelectAndDeselectAll","orderBy","line1","line2","line3","labelAll","labelSelected","itemsDifference","saveQueues","getSection","sectionName","getAllQueues","getAllowedResources","allowedResources","getAssociatedQueues","associatedQueues","currentItem","UserVoiceQueue","addQueues","removeQueues","removedItems","addedItems","AgentteamaddController","saveTeams","getTeams","getAllTeams","getAssociatedTeams","teams","associatedTeams","team","addTeams","removeTeams","AgentController","queueaddchannel","changepassworddialog","onEnableScreenRecordingByAgentSelection","onEnableAutomaticScreenRecordingSelection","gotoAgents","voiceContext","contexts","defaultEntry","associatedResources","currentSelection","canSelect","QueueaddTemplate","ChangepasswordTemplate","_arraySwitch","_valueSwitch","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording","CreateOrEditTeamDialogController","newTeam","addNewTeam","saveTeam","deleteTeam","teamFound","TeamagentaddController","realtime","saveAgents","getAllAgents","getAssociatedAgents","associatedAgents","UserTeam","addAgents","removeAgents","TeamsController","selectedTeams","editdialog","agentadddialog","createOrEditTeam","exportSelectedTeams","deleteSelectedTeams","deselectTeams","selectAllTeams","AgentaddTemplate","CreateOrEditTelephoneDialogController","telephone","newTelephone","addNewTelephone","saveTelephone","deleteTelephone","telephoneFound","TelephonechangepasswordController","telephoneForm","TelephoneController","gotoTelephones","TelephonesController","selectedTelephones","getTelephones","createOrEditTelephone","exportSelectedTelephones","deleteSelectedTelephones","deselectTelephones","selectAllTelephones","CreateOrEditUserProfileDialogController","userProfiles","newUserProfile","addNewUserProfile","saveUserProfile","deleteUserProfile","parsePermissions","userProfileFound","translatedCrudPermissions","selectedcrudPermissions","UserProfilecloneController","cloneUserProfile","UserProfilePermissionsController","modules","statusList","dashboardSections","onChangeEnableAllResources","manageResources","checkSectionResources","isItemDisabled","association","categoryName","skipSection","addSections","setSectionStatus","userProfileName","idsToRemove","removeSections","dialog","PermissionmanageTemplate","allResourcesEnabled","areAllResourcesEnabled","getAllResources","isChannel","extensionType","isInterval","isDisposition","reportType","analyticDefaultReport","defaults","analyticCustomReport","customs","reports","VoiceExtensionId","IntervalId","compareResources","associated","validSections","currentSection","generalDashboard","filteredSections","UserProfilepermissionsmanageController","dashboardItems","selectedSection","loadedSection","allReportsSelected","onChangeSection","onChangeVisibility","onChangeAutoAssociation","onChangeReportType","setPermission","saveSection","line4","labelSearch","setPendingState","updateReportsList","pending","setCrudPermissions","getAssociatedResources","loadSectionPermissions","associatedReports","filterReportResources","fullPath","getReportPath","deleted","previouslySelectedReports","filterSelectedReports","removeReportsByType","getReportTreeStructure","allowEdit","allowDelete","updateCrudPermissions","crud","treeStructure","getTreeStructure","subsection","Resources","getResourceTitle","hasPendingChanges","userProfileForm","tree","treeReports","analyticTreeReport","getPath","folder","alreadyExists","UserProfileController","permissionsmanagedialog","clonedialog","gotoUserProfiles","PermissionsmanageTemplate","CloneDialogTemplate","UserProfilesController","selectedUserProfiles","translatedcrudPermissions","getUserProfiles","createOrEditUserProfile","exportSelectedUserProfiles","deleteSelectedUserProfiles","deselectUserProfiles","selectAllUserProfiles","CreateOrEditUserDialogController","newUser","addNewUser","saveUser","deleteUser","userFound","UserapikeymanagerController","generateApiKey","removeApiKey","createApiKey","apiKey","api_key","UserChangeAvatarController","UserchangepasswordController","userForm","UserController","apikeymanagerdialog","gotoUsers","getApiKey","ApikeymanagerTemplate","UsersController","selectedUsers","createOrEditUser","exportSelectedUsers","deleteSelectedUsers","deselectUsers","selectAllUsers","UsersTemplate","UsersEditViewTemplate","AgentsTemplate","AgentsEditViewTemplate","TelephonesTemplate","TelephonesEditViewTemplate","TeamsTemplate","UserProfilesTemplate","UserProfilesEditViewTemplate","ContactsController","companiesMap","hover","selectedContacts","selectedTags","selectedList","selectedCompany","getAssignedCompanies","createOrEditContact","deleteContact","exportSelectedContacts","deleteSelectedContacts","deselectContacts","selectAllContacts","createTag","createList","createCompany","importContacts","CompanyId","tooltipVisible","assignedCompanies","pullAllBy","company","cmCompany","ImportTemplate","dateOfBirth","CreateOrEditContactDialogController","List","contactFound","queryFields","cf","raw","DuplicateContactDialogController","EditHopperDialogController","newHopper","saveHopper","hopperFound","ContactController","jscriptySessions","arraypriority","queryJscriptySession","gotoContacts","editCompany","onSelectList","onSelectListSuccess","getJscriptySessions","editHopper","createOrEditIvrCampaignHopper","getAssignedCompany","getAssignedTags","isCompanyAssociated","assignedTags","QueueCampaignsEditHoppersDialogTemplate","ivrCampaignHopper","IvrCampaignsEditHoppersDialogTemplate","deleteHopper","getHopperFinals","getHopperHistories","getCompanySectionPermissions","notify","ImportContactsDialogController","processing","stopping","pid","finish","affectedRows","failedRows","duplicatedRows","contactFields","motionBullFields","binding","duplicate","onChangeList","uploadCsv","getHeaderErrors","getArrayErrors","stopUpload","unix","updateResult","import","duplicates","socket_timestamp","elapsed","system","killProcess","MergeContactDialogController","change","searchTerm","showConfirm","merge","ContactsTemplate","EditViewTemplate","CompaniesController","selectedCompanies","gotocontactsgoto","getCompanies","createOrEditCompany","deleteCompany","exportSelectedCompanies","deleteSelectedCompanies","deselectCompanies","selectAllCompanies","CreateOrEditCompanyDialogController","newCompany","addNewCompany","saveCompany","companyFound","CompanyController","gotogoto","gotoCompanies","CreateOrEditGlobalCustomFieldDialogController","globalCustomFields","globalCustomField","sortable","animation","globalCustomFieldForm","newGlobalCustomField","actionType","addNewGlobalCustomField","saveGlobalCustomField","deleteGlobalCustomField","addItem","removeItems","globalCustomFieldFound","GlobalCustomFieldsController","selectedGlobalCustomFields","getGlobalCustomFields","createOrEditGlobalCustomField","exportSelectedGlobalCustomFields","deleteSelectedGlobalCustomFields","deselectGlobalCustomFields","selectAllGlobalCustomFields","CreateOrEditListDialogController","newList","addNewList","saveList","deleteList","listFound","ListagentaddController","UserList","ListCustomFieldsController","vm_dc","listCustomFields","selectedListCustomFields","getListCustomFields","createOrEditListCustomField","exportSelectedListCustomFields","deleteListCustomField","deleteSelectedListCustomFields","listCustomField","customField","CreateOrEditCustomFieldDialogController","customFieldForm","newCustomField","addNewCustomField","saveCustomField","deleteCustomField","addCustomField","customFieldFound","ListController","gotoLists","ListDispositionsController","selectedDispositions","first","second","third","getDispositions","createOrEditDisposition","deleteDisposition","exportSelectedDispositions","deleteSelectedDispositions","deselectDispositions","selectAllDispositions","CreateOrEditDispositionDialogTemplate","hasAnySubDispositions","ListsController","selectedLists","exportcsvcontactsexport","createOrEditList","exportSelectedLists","deleteSelectedLists","deselectLists","selectAllLists","getContactsCsv","ListsTemplate","CompaniesTemplate","CompaniesEditView","GlobalCustomFieldsTemplate","AbandonedCallsVoiceRealtimeController","assignTo","onSaveVoiceQueueReport","onUpdateVoiceQueueReport","queueType","AgentsVoiceRealtimeController","rpcAgents","helperClasses","rejectAtributes","availableStates","paginatedAgents","order","agentInternal","globalStatusFilter","pauseTypeFilter","queueAdd","unPause","showInfo","getAgentStatus","getAgentGlobalStatus","isPause","checkPause","isPartialPause","onSave","onUpdate","onConnect","onComplete","screenRecording","filteredAgents","globalStatusTime","globalStatus","pauseType","orderObj","lastPauseAt","destaccountcode","agent_id","agent_name","isIdle","voiceStatusTime","chatStatusTime","mailStatusTime","smsStatusTime","whatsappStatusTime","openchannelStatusTime","faxStatusTime","screenrecording","OutboundCallsVoiceRealtimeController","rpcCalls","channelStatus","channelStatusOut","onRemove","channelstatedesc","dialstatus","callIndex","QueueCallsVoiceRealtimeController","rpcVoiceQueuesChannelsTmp","hangup","redirectToAgent","redirectToNumber","rpcVoiceQueuesChannel","getVoiceQueuesChannelHangup","exten","getVoiceQueuesChannelRedirect","QueueParamsVoiceRealtimeController","QueuesVoiceRealtimeController","createOrEditVoiceQueue","agentAdd","updateQueue","onPause","onLogin","paused","loggedInDb","HelperClasses","unregistered","lagged","reachable","unreachable","unknown","not_inuse","inuse","busy","invalid","unavailable","ringing","ringinuse","onhold","up","VoiceRealtimeController","TelephonesVoiceRealtimeController","rpcTelephones","statusClass","stateClass","TrunksVoiceRealtimeController","trunks","rpcTrunks","getTrunks","goToTrunk","indexRpc","indexTrunk","trunk","RealtimeTemplate","AgentsViewTemplate","TrunksViewTemplate","QueuesViewTemplate","QueueCallsViewTemplate","AbandonedcallsViewTemplate","QueueParamsViewTemplate","OutboundCallsViewTemplate","ChanSpiesController","chanSpies","selectedChanSpies","getChanSpies","createOrEditchanSpy","deletechanSpy","exportSelectedChanSpies","deleteSelectedChanSpies","deselectChanSpies","selectAllChanSpies","chanSpy","voiceChanSpy","CreateOrEditchanSpyDialogController","newchanSpy","recordingFormat","addNewchanSpy","savechanSpy","chanSpyFound","ContextsController","selectedContexts","getContexts","createOrEditContext","deleteContext","exportSelectedContexts","deleteSelectedContexts","deselectContexts","selectAllContexts","CreateOrEditContextDialogController","newContext","addNewContext","saveContext","contextFound","CreateOrEditInboundRouteDialogController","inboundroutes","inboundroute","newInboundRoute","appdata","addNewInboundRoute","saveInboundRoute","deleteInboundRoute","voiceExtension","inboundrouteFound","agi","Apps_agiDialogTemplate","Apps_customDialogTemplate","dial","Apps_dialDialogTemplate","externaldial","Apps_externaldialDialogTemplate","goto","Apps_gotoDialogTemplate","Apps_hangupDialogTemplate","internaldial","Apps_internaldialDialogTemplate","Apps_intervalDialogTemplate","playback","Apps_playbackDialogTemplate","Apps_queueDialogTemplate","ringgroup","Apps_ringgroupDialogTemplate","set","Apps_setDialogTemplate","voicemail","Apps_voicemailDialogTemplate","InboundRouteActionsController","vm_ac","inboundrouteApps","selectedInboundRouteApps","apps","app","appType","types","isApp","extraApi","defaultValues","general","multiple","separator","pull","applications","editInboundRouteApp","newIndex","rewriteRouting","getInboundRouteApps","editInterval","deleteInboundRouteApp","deleteSelectedInboundRouteApps","getIntervals","inboundrouteApp","appName","application","intervals","answerApps","extensions","before","nextIfTrue","nextIfFalse","addApplications","EditInboundAppagiDialogController","splitted","welcomemessage","accesskeyid","secretaccesskey","lexregion","botname","times","isNaN","callerID","saveInboundRouteApp","squareProject","cutdigits","agiDialog","EditInboundAppcustomDialogController","customDialog","EditInboundAppdialDialogController","tech","dialDialog","EditInboundAppexternaldialDialogController","externaldialDialog","EditInboundAppgotoDialogController","extension","gotoDialog","EditInboundApphangupDialogController","hangupDialog","EditInboundAppinternaldialDialogController","requiredSections","_users","sectionResources","internaldialDialog","EditInboundAppintervalDialogController","IndexFactory","newInterval","daysOfWeek","getDaysOfWeek","monthNumber","getMonthNumber","monthName","getMonthName","daysOfMonth","getDaysOfMonth","customInterval","timeRange","month","timeRangeFrom","timeRangeTo","setHours","setMinutes","dayOfWeekFrom","dayOfWeekTo","monthDayFrom","monthDayTo","monthFrom","monthTo","addNewInterval","saveInterval","getInterval","getHours","getMinutes","intervalFound","EditInboundAppplaybackDialogController","sounds","save_name","playbackDialog","EditInboundAppqueueDialogController","macro","gosub","rule","queueDialog","EditInboundAppringgroupDialogController","multipleUsers","ringgroupDialog","EditInboundAppsetDialogController","variable","setDialog","EditInboundAppvoicemailDialogController","voiceMail","voiceMails","mailbox","voicemailDialog","InboundRouteController","gotoInboundRoutes","InboundRoutesController","selectedInboundRoutes","getInboundRoutes","createOrEditInboundRoute","exportSelectedInboundRoutes","deleteSelectedInboundRoutes","deselectInboundRoutes","selectAllInboundRoutes","CreateOrEditInternalRouteDialogController","internalroutes","internalroute","newInternalRoute","addNewInternalRoute","saveInternalRoute","deleteInternalRoute","internalrouteFound","InternalRouteActionsController","internalrouteApps","selectedInternalRouteApps","editInternalRouteApp","getInternalRouteApps","deleteInternalRouteApp","deleteSelectedInternalRouteApps","internalrouteApp","EditInternalAppagiDialogController","saveInternalRouteApp","EditInternalAppcustomDialogController","EditInternalAppdialDialogController","EditInternalAppexternaldialDialogController","EditInternalAppgotoDialogController","EditInternalApphangupDialogController","EditInternalAppinternaldialDialogController","EditInternalAppintervalDialogController","EditInternalAppplaybackDialogController","EditInternalAppqueueDialogController","EditInternalAppringgroupDialogController","EditInternalAppsetDialogController","EditInternalAppvoicemailDialogController","InternalRouteController","gotoInternalRoutes","InternalRoutesController","selectedInternalRoutes","getInternalRoutes","createOrEditInternalRoute","exportSelectedInternalRoutes","deleteSelectedInternalRoutes","deselectInternalRoutes","selectAllInternalRoutes","CreateOrEditMusicOnHoldDialogController","musiconholds","musiconhold","newMusicOnHold","mode","addNewMusicOnHold","saveMusicOnHold","deleteMusicOnHold","voiceMusicOnHold","musiconholdFound","MusicOnHoldMohSoundsController","musiconholdMohSounds","selectedMusicOnHoldMohSounds","voiceMusicOnHoldDownload","getMusicOnHoldMohSounds","createOrEditMusicOnHoldMohSound","exportSelectedMusicOnHoldMohSounds","deleteMusicOnHoldMohSound","deleteSelectedMusicOnHoldMohSounds","VoiceMusicOnHoldId","mohSound","converted_format","musiconholdMohSound","getSounds","MohSoundsDialogTemplate","mohSounds","removeSound","id2","CreateOrEditMohSoundDialogController","newMohSound","addNewMohSound","saveMohSound","deleteMohSound","addSound","mohSoundFound","MusicOnHoldController","gotoMusicOnHolds","MusicOnHoldsController","selectedMusicOnHolds","getMusicOnHolds","createOrEditMusicOnHold","exportSelectedMusicOnHolds","deleteSelectedMusicOnHolds","deselectMusicOnHolds","selectAllMusicOnHolds","CreateOrEditOutboundRouteDialogController","outboundroutes","outboundroute","newOutboundRoute","outboundrouteApps","ngPattern","help","addNewOutboundRoute","saveOutboundRoute","deleteOutboundRoute","outboundrouteFound","voicePrefix","outboundApp","oldApp","oldParams","newParams","m","mlength","outbounddial","Apps_outbounddialDialogTemplate","OutboundRouteActionsController","selectedOutboundRouteApps","editOutboundRouteApp","getOutboundRouteApps","deleteOutboundRouteApp","deleteSelectedOutboundRouteApps","onVoiceExtensionUpdate","outboundrouteApp","rewriteOutboundDial","currPriority","EditoutboundAppcustomDialogController","saveOutboundRouteApp","EditoutboundAppintervalDialogController","EditoutboundAppoutbounddialDialogController","outbounddialDialog","OutboundRouteController","gotoOutboundRoutes","OutboundRoutesController","selectedOutboundRoutes","getOutboundRoutes","createOrEditOutboundRoute","exportSelectedOutboundRoutes","deleteSelectedOutboundRoutes","deselectOutboundRoutes","selectAllOutboundRoutes","CreateOrEditVoicemailDialogController","voicemails","newVoicemail","addNewVoicemail","saveVoicemail","deleteVoicemail","voicemailFound","VoicemailMessagesController","voicemailMessages","selectedVoicemailMessages","voiceMailMessageDownload","getVoicemailMessages","exportSelectedVoicemailMessages","deleteVoicemailMessage","deleteSelectedVoicemailMessages","voiceMailMessage","msg_id","voicemailMessage","VoicemailController","gotoVoicemails","VoicemailsController","selectedVoicemails","getVoicemails","createOrEditVoicemail","exportSelectedVoicemails","deleteSelectedVoicemails","deselectVoicemails","selectAllVoicemails","CreateOrEditvoicePrefixDialogController","voicePrefixes","newvoicePrefix","addNewvoicePrefix","savevoicePrefix","deletevoicePrefix","outboundRoutes","voicePrefixFound","voicePrefixagentaddController","UservoicePrefix","VoicePrefixesController","selectedVoicePrefixes","createOrEditvoicePrefix","exportSelectedVoicePrefixes","deleteSelectedVoicePrefixes","deselectVoicePrefixes","selectAllVoicePrefixes","CreateOrEditVoiceQueueDialogController","newVoiceQueue","strategy","retry","random_periodic_announce","announce_holdtime","announce_position","reportholdtime","autopause","timeoutrestart","setinterfacevar","setqueuevar","setqueueentryvar","addNewVoiceQueue","saveVoiceQueue","deleteVoiceQueue","voiceQueueFound","VoiceQueueagentaddController","VoiceQueueteamaddController","VoiceQueueController","gotoVoiceQueues","VoiceQueuesController","selectedVoiceQueues","gotorealtimegoto","exportSelectedVoiceQueues","deleteSelectedVoiceQueues","deselectVoiceQueues","selectAllVoiceQueues","CreateOrEditVoiceRecordingDialogController","newVoiceRecording","addNewVoiceRecording","saveVoiceRecording","deleteVoiceRecording","voiceRecordingFound","VoiceRecordingSentimentStatisticsController","vm_ss","VoiceRecordingController","gotoVoiceRecordings","VoiceRecordingsController","selectedVoiceRecordings","runtranscriberuntranscribesentiment","runtranscribesentimentruntranscribesentiment","runsentimentruntranscribesentiment","downloadtranscribefile2","downloadfile2","createOrEditVoiceRecording","exportSelectedVoiceRecordings","deleteSelectedVoiceRecordings","deselectVoiceRecordings","selectAllVoiceRecordings","runtranscribeSelectedVoiceRecordings","runTranscribe","runSentiment","transcribeStatus","runtranscribesentimentSelectedVoiceRecordings","runsentimentSelectedVoiceRecordings","checkFormat","lastIndexOf","_nameNoExtension","VoiceQueuesTemplate","VoiceQueuesEditViewTemplate","InboundRoutesTemplate","InboundRoutesEditViewTemplate","OutboundRoutesTemplate","OutboundRoutesEditViewTemplate","InternalRoutesTemplate","InternalRoutesEditViewTemplate","ContextsTemplate","VoicemailTemplate","VoicemailEditViewTemplate","MusicOnHoldTemplate","MusicOnHoldEditViewTemplate","VoiceRecordingsTemplate","VoiceRecordingsEditViewTemplate","ChanSpiesTemplate","VoicePrefixesOnHoldTemplate","AgentsChatRealtimeController","StaffQueueAddTemplate","QueuesChatRealtimeController","createOrEditChatQueue","onSaveMember","onRemoveMember","ChatQueueId","AgentAddTemplate","ChatRealtimeController","QueuesTemplate","ChatQueuesController","selectedChatQueues","deleteChatQueue","exportSelectedChatQueues","deleteSelectedChatQueues","deselectChatQueues","selectAllChatQueues","TeamAddTemplate","CreateOrEditChatQueueDialogController","newChatQueue","addNewChatQueue","saveChatQueue","chatQueueFound","ChatQueueagentaddController","UserChatQueue","ChatQueueteamaddController","ChatQueueController","gotoChatQueues","ChatWebsitesController","selectedChatWebsites","interactionsgoto","offlinemessagesgoto","createOrEditChatWebsite","deleteChatWebsite","exportSelectedChatWebsites","deleteSelectedChatWebsites","deselectChatWebsites","selectAllChatWebsites","chatWebsite","CreateOrEditChatWebsiteDialogController","newChatWebsite","header_shape","alignment","verticalAlignment","waitForTheAssignedAgent","notificationSound","queueTransferTimeout","agentTransferTimeout","addNewChatWebsite","saveChatWebsite","chatWebsiteFound","Apps_agentDialogTemplate","amazonlex","Apps_amazonlexDialogTemplate","autoreply","Apps_autoreplyDialogTemplate","Apps_closeDialogTemplate","dialogflow","Apps_dialogflowDialogTemplate","gotoif","Apps_gotoifDialogTemplate","gotop","Apps_gotopDialogTemplate","Apps_noopDialogTemplate","Apps_systemDialogTemplate","Apps_tagDialogTemplate","ChatWebsiteActionsController","chatWebsiteApps","selectedChatWebsiteApps","defaultValue","foreignKey","max","maxlength","editChatWebsiteApp","getChatWebsiteApps","deleteChatWebsiteApp","deleteSelectedChatWebsiteApps","chatWebsiteApp","getApplications","ChatWebsiteagentaddController","UserChatWebsite","ChatWebsiteChangeAvatarController","EditChatWebsiteAppagentDialogController","saveChatWebsiteApp","agentDialog","EditChatWebsiteAppamazonlexDialogController","amazonlexDialog","EditChatWebsiteAppautoreplyDialogController","autoreplyDialog","EditChatWebsiteAppcloseDialogController","EditChatWebsiteAppdialogflowDialogController","dialogflowDialog","EditChatWebsiteAppgotoifDialogController","truepriority","falsepriority","gotoifDialog","EditChatWebsiteAppgotopDialogController","gotopDialog","EditChatWebsiteAppintervalDialogController","EditChatWebsiteAppnoopDialogController","noopDialog","EditChatWebsiteAppqueueDialogController","EditChatWebsiteAppsystemDialogController","command","systemDialog","EditChatWebsiteApptagDialogController","TagId","tagDialog","ChatWebsiteChatCannedAnswersController","chatWebsiteChatCannedAnswers","selectedChatWebsiteChatCannedAnswers","getChatWebsiteChatCannedAnswers","createOrEditChatWebsiteChatCannedAnswer","exportSelectedChatWebsiteChatCannedAnswers","deleteChatWebsiteChatCannedAnswer","deleteSelectedChatWebsiteChatCannedAnswers","chatWebsiteChatCannedAnswer","getAnswers","CannedAnswerDialogTemplate","chatCannedAnswer","chatCannedAnswers","CreateOrEditChatCannedAnswerDialogController","newChatCannedAnswer","addNewChatCannedAnswer","saveChatCannedAnswer","deleteChatCannedAnswer","chatCannedAnswerFound","ChatWebsiteDispositionsController","DispositionsDialogTemplate","ChatWebsiteofflineFormController","vm_fonc","offlineForm","buttons","down","uselessFields","fromKey","$index","prevItem","nextItem","cmField","ChatWebsiteonlineFormController","onlineForm","ChatWebsitecustomerAvatarController","ChatWebsiteInteractionsController","chatWebsiteInteractions","selectedChatWebsiteInteractions","chatInteractionDownload","getChatWebsiteInteractions","spychatInteraction","exportSelectedChatWebsiteInteractions","deleteChatWebsiteInteraction","deleteSelectedChatWebsiteInteractions","buildAdvancedFilterFields","getQuickFilterResources","chatWebsiteInteraction","AgentInteractionAgentGeneralInteractionDialogTemplate","onShowing","ChatWebsitelogoController","ChatWebsiteOfflineMessagesController","chatWebsiteOfflineMessages","selectedChatWebsiteOfflineMessages","getChatWebsiteOfflineMessages","createOrEditChatWebsiteOfflineMessage","showOfflineMessageChatWebsiteOfflineMessage","exportSelectedChatWebsiteOfflineMessages","deleteChatWebsiteOfflineMessage","deleteSelectedChatWebsiteOfflineMessages","chatWebsiteOfflineMessage","getOfflineMessages","OfflineMessagesDialogTemplate","offlineMessage","offlineMessages","chatOfflineMessage","ShowOfflineMessageOfflineMessageDialogController","ChatWebsiteProactiveActionsController","chatWebsiteProactiveActions","selectedChatWebsiteProactiveActions","getChatWebsiteProactiveActions","createOrEditChatWebsiteChatProactiveAction","exportSelectedChatWebsiteProactiveActions","deleteChatWebsiteChatProactiveAction","deleteSelectedChatWebsiteProactiveActions","chatWebsiteChatProactiveAction","getProactiveActions","ProactiveDialogTemplate","chatProactiveAction","proactive","CreateOrEditChatProactiveActionDialogController","newChatProactiveAction","addNewChatProactiveAction","saveChatProactiveAction","deleteChatProactiveAction","chatProactiveActionFound","ChatWebsiteScriptController","script","end","ChatWebsitesystemAvatarController","ChatWebsiteController","gotoChatWebsites","ChatQueuesTemplate","ChatWebsitesTemplate","ChatWebsitesEditViewTemplate","ChatWebsiteChatDispositionsController","AgentsMailRealtimeController","StaffViewsAgentsEditQueueaddTemplate","QueuesMailRealtimeController","createOrEditMailQueue","mailQueue","MailQueueId","MailQueuesCreateDialogTemplate","MailQueuesEditAgentAddTemplate","MailRealtimeController","RealtimeAgentsViewTemplate","RealtimeQueuesViewTemplate","RealtimeAccountsView","rpcMailAccounts","CreateOrEditMailAccountDialogController","newMailAccount","cservice","cauthentication","addNewMailAccount","saveMailAccount","deleteMailAccount","mailAccountFound","MailAccountActionsController","mailAccountApps","selectedMailAccountApps","editMailAccountApp","getMailAccountApps","deleteMailAccountApp","deleteSelectedMailAccountApps","mailAccountApp","MailAccountagentaddController","UserMailAccount","EditMailAccountAppagentDialogController","saveMailAccountApp","EditMailAccountAppautoreplyDialogController","EditMailAccountAppcloseDialogController","EditMailAccountAppgotoifDialogController","EditMailAccountAppgotopDialogController","EditMailAccountAppintervalDialogController","EditMailAccountAppnoopDialogController","EditMailAccountAppqueueDialogController","EditMailAccountAppsystemDialogController","EditMailAccountApptagDialogController","MailAccountInteractionsController","mailAccountInteractions","selectedMailAccountInteractions","mailInteractionDownload","getMailAccountInteractions","spymailInteraction","exportSelectedMailAccountInteractions","deleteMailAccountInteraction","deleteSelectedMailAccountInteractions","mailAccountInteraction","MailAccountMailCannedAnswersController","mailAccountMailCannedAnswers","selectedMailAccountMailCannedAnswers","getMailAccountMailCannedAnswers","createOrEditMailAccountMailCannedAnswer","exportSelectedMailAccountMailCannedAnswers","deleteMailAccountMailCannedAnswer","deleteSelectedMailAccountMailCannedAnswers","mailAccountMailCannedAnswer","EditMailCannedAnswersDialogTemplate","mailCannedAnswer","mailCannedAnswers","CreateOrEditMailCannedAnswerDialogController","newMailCannedAnswer","addNewMailCannedAnswer","saveMailCannedAnswer","deleteMailCannedAnswer","mailCannedAnswerFound","MailAccountDispositionsController","MailAccountController","gotoMailAccounts","MailAccountEditAgentAddTemplate","MailAccountsController","selectedMailAccounts","verifysmtpverifysmtp","createOrEditMailAccount","exportSelectedMailAccounts","deleteSelectedMailAccounts","deselectMailAccounts","selectAllMailAccounts","EditAgentAddTemplate","CreateOrEditMailQueueDialogController","newMailQueue","addNewMailQueue","saveMailQueue","deleteMailQueue","mailQueueFound","MailQueueagentaddController","UserMailQueue","MailQueueteamaddController","MailQueueController","gotoMailQueues","MailQueuesEditTeamaddTemplate","MailQueuesEditAgentaddTemplate","MailQueuesController","selectedMailQueues","exportSelectedMailQueues","deleteSelectedMailQueues","deselectMailQueues","selectAllMailQueues","EditTeamAddTemplate","CreateOrEditMailSubstatusDialogController","mailSubtatuses","newMailSubstatus","addNewMailSubstatus","saveMailSubstatus","deleteMailSubstatus","mailSubstatusFound","MailSubstatusesController","selectedMailSubstatuses","getMailSubstatuses","createOrEditMailSubstatus","exportSelectedMailSubstatuses","deleteSelectedMailSubstatuses","deselectMailSubstatuses","selectAllMailSubstatuses","MailQueuestTemplate","MailQueuesEditViewTemplate","MailAccountsTemplate","MailAccountsEditViewTemplate","MailSubtatusesTemplate","AgentsSmsRealtimeController","EditQueueaddTemplate","QueuesSmsRealtimeController","createOrEditSmsQueue","smsQueue","SmsQueueId","SmsQueuesCreateDialogTemplate","SmsQueuesEditAgentaddTemplate","SmsRealtimeController","CreateOrEditSmsAccountDialogController","newSmsAccount","addNewSmsAccount","saveSmsAccount","deleteSmsAccount","smsAccountFound","SmsAccountActionsController","smsAccountApps","selectedSmsAccountApps","editSmsAccountApp","getSmsAccountApps","deleteSmsAccountApp","deleteSelectedSmsAccountApps","smsAccountApp","SmsAccountagentaddController","UserSmsAccount","EditSmsAccountAppagentDialogController","saveSmsAccountApp","EditSmsAccountAppamazonlexDialogController","EditSmsAccountAppautoreplyDialogController","EditSmsAccountAppcloseDialogController","EditSmsAccountAppdialogflowDialogController","EditSmsAccountAppgotoifDialogController","EditSmsAccountAppgotopDialogController","EditSmsAccountAppintervalDialogController","EditSmsAccountAppnoopDialogController","EditSmsAccountAppqueueDialogController","EditSmsAccountAppsystemDialogController","EditSmsAccountApptagDialogController","SmsAccountInteractionsController","smsAccountInteractions","selectedSmsAccountInteractions","smsInteractionDownload","getSmsAccountInteractions","spysmsInteraction","exportSelectedSmsAccountInteractions","deleteSmsAccountInteraction","deleteSelectedSmsAccountInteractions","smsAccountInteraction","SmsAccountSmsCannedAnswersController","smsAccountSmsCannedAnswers","selectedSmsAccountSmsCannedAnswers","getSmsAccountSmsCannedAnswers","createOrEditSmsAccountSmsCannedAnswer","exportSelectedSmsAccountSmsCannedAnswers","deleteSmsAccountSmsCannedAnswer","deleteSelectedSmsAccountSmsCannedAnswers","smsAccountSmsCannedAnswer","SmsCannedAnswerDialogTemplate","smsCannedAnswer","smsCannedAnswers","CreateOrEditSmsCannedAnswerDialogController","newSmsCannedAnswer","addNewSmsCannedAnswer","saveSmsCannedAnswer","deleteSmsCannedAnswer","smsCannedAnswerFound","SmsAccountDispositionsController","SmsAccountController","gotoSmsAccounts","SmsAccountsController","selectedSmsAccounts","createOrEditSmsAccount","exportSelectedSmsAccounts","deleteSelectedSmsAccounts","deselectSmsAccounts","selectAllSmsAccounts","CreateOrEditSmsQueueDialogController","newSmsQueue","addNewSmsQueue","saveSmsQueue","deleteSmsQueue","smsQueueFound","SmsQueueagentaddController","UserSmsQueue","SmsQueueteamaddController","SmsQueueController","gotoSmsQueues","SmsQueuesController","selectedSmsQueues","exportSelectedSmsQueues","deleteSelectedSmsQueues","deselectSmsQueues","selectAllSmsQueues","SmsQueuestTemplate","SmsQueuesEditViewTemplate","SmsAccountsTemplate","SmsAccountsEditViewTemplate","AgentsOpenchannelRealtimeController","QueuesOpenchannelRealtimeController","createOrEditOpenchannelQueue","openchannelQueue","OpenchannelQueueId","OpenchannelQueuesCreateDialogTemplate","OpenchannelQueuesEditAgentAddTemplate","OpenchannelRealtimeController","CreateOrEditOpenchannelAccountDialogController","newOpenchannelAccount","addNewOpenchannelAccount","saveOpenchannelAccount","deleteOpenchannelAccount","openchannelAccountFound","OpenchannelAccountActionsController","openchannelAccountApps","selectedOpenchannelAccountApps","editOpenchannelAccountApp","getOpenchannelAccountApps","deleteOpenchannelAccountApp","deleteSelectedOpenchannelAccountApps","openchannelAccountApp","OpenchannelAccountagentaddController","UserOpenchannelAccount","EditOpenchannelAccountAppagentDialogController","saveOpenchannelAccountApp","EditOpenchannelAccountAppamazonlexDialogController","EditOpenchannelAccountAppautoreplyDialogController","EditOpenchannelAccountAppcloseDialogController","EditOpenchannelAccountAppdialogflowDialogController","EditOpenchannelAccountAppgotoifDialogController","EditOpenchannelAccountAppgotopDialogController","EditOpenchannelAccountAppintervalDialogController","EditOpenchannelAccountAppnoopDialogController","EditOpenchannelAccountAppqueueDialogController","EditOpenchannelAccountAppsystemDialogController","EditOpenchannelAccountApptagDialogController","OpenchannelAccountInteractionsController","openchannelAccountInteractions","selectedOpenchannelAccountInteractions","openchannelInteractionDownload","getOpenchannelAccountInteractions","spyopenchannelInteraction","exportSelectedOpenchannelAccountInteractions","deleteOpenchannelAccountInteraction","deleteSelectedOpenchannelAccountInteractions","openchannelAccountInteraction","OpenchannelAccountOpenchannelCannedAnswersController","openchannelAccountOpenchannelCannedAnswers","selectedOpenchannelAccountOpenchannelCannedAnswers","getOpenchannelAccountOpenchannelCannedAnswers","createOrEditOpenchannelAccountOpenchannelCannedAnswer","exportSelectedOpenchannelAccountOpenchannelCannedAnswers","deleteOpenchannelAccountOpenchannelCannedAnswer","deleteSelectedOpenchannelAccountOpenchannelCannedAnswers","openchannelAccountOpenchannelCannedAnswer","EditOpenchannelCannedAnswersDialogTemplate","openchannelCannedAnswer","openchannelCannedAnswers","CreateOrEditOpenchannelCannedAnswerDialogController","newOpenchannelCannedAnswer","addNewOpenchannelCannedAnswer","saveOpenchannelCannedAnswer","deleteOpenchannelCannedAnswer","openchannelCannedAnswerFound","OpenchannelAccountDispositionsController","OpenchannelAccountController","gotoOpenchannelAccounts","excludedFields","OpenChannelAccountEditAgentAddTemplate","OpenchannelAccountsController","selectedOpenchannelAccounts","createOrEditOpenchannelAccount","exportSelectedOpenchannelAccounts","deleteSelectedOpenchannelAccounts","deselectOpenchannelAccounts","selectAllOpenchannelAccounts","CreateOrEditOpenchannelQueueDialogController","newOpenchannelQueue","addNewOpenchannelQueue","saveOpenchannelQueue","deleteOpenchannelQueue","openchannelQueueFound","OpenchannelQueueagentaddController","UserOpenchannelQueue","OpenchannelQueueteamaddController","OpenchannelQueueController","gotoOpenchannelQueues","OpenchannelQueuesEditTeamaddTemplate","OpenchannelQueuesEditAgentaddTemplate","OpenchannelQueuesController","selectedOpenchannelQueues","exportSelectedOpenchannelQueues","deleteSelectedOpenchannelQueues","deselectOpenchannelQueues","selectAllOpenchannelQueues","OpenchannelQueuestTemplate","OpenchannelQueuesEditViewTemplate","OpenchannelAccountsTemplate","OpenchannelAccountsEditViewTemplate","FaxAccountsRealtimeController","rpcFaxAccounts","goToFaxAccount","in","lastIn","out","lastOut","AgentsFaxRealtimeController","QueuesFaxRealtimeController","createOrEditFaxQueue","faxQueue","FaxQueueId","FaxRealtimeController","TrunksFaxRealtimeController","RealtimeAgentsTemplate","RealtimeTrunksTemplate","RealtimeQueuesTemplate","RealtimeAccountsTemplate","CreateOrEditFaxAccountDialogController","newFaxAccount","addNewFaxAccount","saveFaxAccount","deleteFaxAccount","TrunkId","addAccountApplications","updateAccountApplications","faxAccountFound","FaxAccountActionsController","faxAccountApps","selectedFaxAccountApps","editFaxAccountApp","getFaxAccountApps","deleteFaxAccountApp","deleteSelectedFaxAccountApps","faxAccountApp","FaxAccountagentaddController","UserFaxAccount","EditFaxAccountAppagentDialogController","saveFaxAccountApp","EditFaxAccountAppcloseDialogController","EditFaxAccountAppgotoifDialogController","EditFaxAccountAppgotopDialogController","EditFaxAccountAppintervalDialogController","EditFaxAccountAppnoopDialogController","EditFaxAccountAppqueueDialogController","EditFaxAccountAppsystemDialogController","EditFaxAccountApptagDialogController","FaxAccountDispositionsController","FaxAccountInteractionsController","faxAccountInteractions","selectedFaxAccountInteractions","faxInteractionDownload","getFaxAccountInteractions","spyfaxInteraction","exportSelectedFaxAccountInteractions","deleteFaxAccountInteraction","deleteSelectedFaxAccountInteractions","faxAccountInteraction","FaxAccountController","gotoFaxAccounts","FaxAccountsController","selectedFaxAccounts","createOrEditFaxAccount","exportSelectedFaxAccounts","deleteSelectedFaxAccounts","deselectFaxAccounts","selectAllFaxAccounts","selectionExists","selection","CreateOrEditFaxQueueDialogController","newFaxQueue","addNewFaxQueue","saveFaxQueue","deleteFaxQueue","faxQueueFound","FaxQueueagentaddController","UserFaxQueue","FaxQueueteamaddController","FaxQueueController","gotoFaxQueues","TeamTemplate","FaxQueuesController","selectedFaxQueues","exportSelectedFaxQueues","deleteSelectedFaxQueues","deselectFaxQueues","selectAllFaxQueues","Template","ATemplate","BTemplate","FaxQueuesTemplate","FaxQueuesEditViewTemplate","FaxAccountsTemplate","FaxAccountsEditViewTemplate","CreateOrEditDispositionDialogController","newDisposition","initializeParentDispositions","onFirstLevelSelection","addNewDisposition","parentDisposition","ParentId","getAllDispositions","allDispositions","setParentDisposition","dispositionFound","DispositionsController","DispositionsTemplate","CreateOrEditTriggerDialogController","triggers","trigger","newTrigger","addNewTrigger","saveTrigger","deleteTrigger","t","TriggerActionsController","triggerActions","selectedTriggerActions","integrationTypes","zendesk","salesforce","sugarcrm","freshdesk","desk","zoho","vtiger","dynamics365","servicenow","freshsales","motionBarOptions","getTriggerActions","createOrEditTriggerAction","exportSelectedTriggerActions","deleteSelectedTriggerActions","ActionId","data1","getIntegrationsAccounts","compact","uniq","attribute","getTemplates","templates","data2","getExternalResources","getActions","triggerAction","deleteTriggerAction","CreateOrEditActionDialogController","newAction","allowedStandardFields","addNewAction","saveAction","deleteAction","onActionInit","onIntegrationInit","onSearchFieldsInit","onActionSelection","onIntegrationSelection","onListSelection","onTypeSelection","onAutocreateSelection","onIntegrationAccountSelection","hasIntegrationsPermissions","getContactFields","listFields","clearActionDataValues","data3","data4","data5","isIntegrationDisabled","configurations","parseSearchFields","_action","addAction","TriggerAllConditionsController","triggerAllConditions","selectedTriggerAllConditions","lastevent","callStatuses","complete","rejected","called","nosuchnumber","noanswer","congestion","agentreject","messageStatuses","getTriggerAllConditions","createOrEditTriggerAllCondition","exportSelectedTriggerAllConditions","deleteSelectedTriggerAllConditions","TriggerAllId","getAccounts","_queues","getAllConditions","triggerAllCondition","allCondition","allConditions","deleteTriggerAllCondition","CreateOrEditAllConditionDialogController","allconditions","newAllCondition","addNewAllCondition","saveAllCondition","deleteAllCondition","addAllCondition","allConditionFound","TriggerAnyConditionsController","triggerAnyConditions","selectedTriggerAnyConditions","getTriggerAnyConditions","createOrEditTriggerAnyCondition","exportSelectedTriggerAnyConditions","deleteTriggerAnyCondition","deleteSelectedTriggerAnyConditions","TriggerAnyId","getAnyConditions","triggerAnyCondition","anyCondition","anyConditions","onFieldSelection","triggerallConditions","TriggerController","gotoTriggers","TriggersController","selectedTriggers","goToEditState","createOrEditTrigger","getTriggers","exportSelectedTriggers","deleteSelectedTriggers","deselectTriggers","selectAllTriggers","TriggersTemplate","CreateOrEditAnyConditionDialogController","CannedAnswersController","cannedAnswers","selectedCannedAnswers","getCannedAnswers","createOrEditCannedAnswer","deleteCannedAnswer","exportSelectedCannedAnswers","deleteSelectedCannedAnswers","deselectCannedAnswers","selectAllCannedAnswers","CreateOrEditCannedAnswerDialogController","newCannedAnswer","addNewCannedAnswer","saveCannedAnswer","cannedAnswerFound","CreateOrEditCustomDashboardDialogController","customDashboards","newCustomDashboard","addNewCustomDashboard","saveCustomDashboard","deleteCustomDashboard","customDashboardFound","CustomDashboardsController","selectedCustomDashboards","gotodashboardgoto","getCustomDashboards","createOrEditCustomDashboard","exportSelectedCustomDashboards","deleteSelectedCustomDashboards","deselectCustomDashboards","selectAllCustomDashboards","CustomDashboardcloneController","cloneCustomDashboard","CustomDashboardItemsController","vm_cd","createOrEditWidget","deleteWidget","handle","handleUpdateWidget","dashboardItem","DashboardDialogTemplate","dashboarditem","CreateOrEditDashboardItemDialogController","newDashboardItem","selectedReport","attrUrl","attrHourFormat","attrTimezone","attrMetric","attrSerie1","attrSerie2","attrSerie3","attrRefresh","attrFontSize","currentReport","attrReport","addNewDashboardItem","saveDashboardItem","deleteDashboardItem","getReports","selectReport","closeReportDialog","searchReport","attrVoiceQueues","dashboarditemFound","getConfiguration","core","check_callback","worker","plugins","getEvents","customTreeLoaded","select_node","selectCustomNode","defaultTreeLoaded","selectDefaultNode","treeDefaultInstance","jstree","deselect_all","close_all","currentNode","currentPath","treeCustomInstance","get_path","get_node","selected","allowedReports","treeDefaultData","treeCustomData","treeConfig","treeDefaultEvents","treeCustomEvents","TreereportsTemplate","autoWrap","dashboarditemForm","$setDirty","CustomDashboardController","gotoCustomDashboards","CreateOrEditIntervalDialogController","deleteInterval","EditAppintervalDialogController","IntervalIntervalsController","intervalIntervals","selectedIntervalIntervals","sortableTable","addIntervals","models","getIntervalIntervals","createOrEditIntervalInterval","exportSelectedIntervalIntervals","deleteIntervalInterval","deleteSelectedIntervalIntervals","intervalInterval","AppsIntervalTemplate","IntervalController","gotoIntervals","IntervalsController","selectedIntervals","createOrEditInterval","exportSelectedIntervals","deleteSelectedIntervals","deselectIntervals","selectAllIntervals","CreateOrEditPauseDialogController","newPause","addNewPause","savePause","deletePause","pauseFound","PausesController","selectedPauses","getPauses","createOrEditPause","exportSelectedPauses","deleteSelectedPauses","deselectPauses","selectAllPauses","CreateOrEditScheduleDialogController","schedules","schedule","newSchedule","startAt","endAt","cron","subtractNumber","subtractUnit","sendIfEmpty","reportId","addNewSchedule","saveSchedule","deleteSchedule","scheduleFound","TreeReportsTemplate","scheduleForm","SchedulesController","selectedScheduler","runconfirm","getScheduler","createOrEditSchedule","exportSelectedScheduler","deleteSelectedScheduler","deselectScheduler","selectAllScheduler","CreateOrEditSoundDialogController","newSound","addNewSound","saveSound","deleteSound","soundFound","SoundsController","selectedSounds","createOrEditSound","exportSelectedSounds","deleteSelectedSounds","deselectSounds","selectAllSounds","uploadSound","UploadDialogTemplate","UploadSoundDialogController","uploadSounds","uploadState","uploadError","uploadComplete","uploadedFile","CreateOrEditTagDialogController","newTag","addNewTag","deleteTag","tagFound","TagsController","createOrEditTag","exportSelectedTags","deleteSelectedTags","deselectTags","selectAllTags","CreateOrEditTemplateDialogController","newTemplate","addNewTemplate","saveTemplate","deleteTemplate","templateFound","TemplatesController","selectedTemplates","createOrEditTemplate","exportSelectedTemplates","deleteSelectedTemplates","deselectTemplates","selectAllTemplates","CreateOrEditTrunkDialogController","newTrunk","dtmfmode","qualify","t38pt_udptl","addNewTrunk","saveTrunk","deleteTrunk","trunkFound","TrunkcloneController","cloneTrunk","TrunkController","gotoTrunks","CloneTemplate","TrunksController","selectedTrunks","createOrEditTrunk","exportSelectedTrunks","deleteSelectedTrunks","deselectTrunks","selectAllTrunks","CreateOrEditVariableDialogController","newVariable","addNewVariable","saveVariable","deleteVariable","variableFound","VariablesController","selectedVariables","getVariables","createOrEditVariable","exportSelectedVariables","deleteSelectedVariables","deselectVariables","selectAllVariables","CannedAnswersTemplate","CustomDashboardsTemplate","CustomDashboardsEditViewTemplate","IntervalsTemplate","IntervalsEditViewTemplate","PausesTemplate","ScheduleTemplate","SoundsTemplate","TagsTemplate","TemplatesTemplate","TrunksTemplate","TrunksEditViewTemplate","VariablesTemplate","CreateOrEditSquareProjectDialogController","openFromEditor","newWindow","newProject","addNewProject","saveProject","deleteProject","addSquareProjects","projectFound","removeSquareProjects","MxGraphDialogController","ispeechAsrModel","ispeechAsrLanguage","googleAsrLanguage","ispeechTtsLanguage","googleCloudTtslanguageCode","googleTtsLanguage","databases","cell","saveCallback","awsPollyVoice","awsPollyRegion","dialogFlowLanguage","awsLexRegion","requiredFields","menu","getdigits","getsecretdigits","vswitch","database","ext_dial","math","gotoc","saydigits","saynumber","sayphonetic","goal","gotoiftime","subproject","sendSMS","google_cloud_tts","tts","ispeechtts","ispeechasr","custom_app","googleasr","awspolly","lumenvoxtts","sestektts","lumenvoxasr","sestekasr","tildeasr","awslex","sesteknda","restapi","mrcpsynth","mrcprecog","defaultValueFields","helpFields","cellName","tagName","authMethod","ndagenerate_audio","ndaactivity_type","hiddendigitspos","intkey","ispeech_asr_language","ispeech_tts_language","languageCode","ssmlGender","google_tts_language","google_asr_language","google_cloud_tts_text_type","aws_polly_region","aws_polly_voice","aws_text_type","callback_priority","findBy","dialogflow_language","aws_lex_region","getMap","getAssignedValues","getGroupedMap","groupKey","parents","son","mappedValues","sip_id","trunk_name","trunk_id","file_id","variable_id","odbc_id","project_id","interval_id","account_id","template_id","list_id","sms_account_id","pause_id","mergedValues","getAssignedUser","getAssignedTrunkByName","getAssignedTrunkById","getAssignedQueue","getAssignedSound","getAssignedVariable","getAssignedOdbc","getAssignedProject","getAssignedContext","getAssignedInterval","getAssignedMailAccount","getAssignedTemplate","getAssignedList","getAssignedSmsAccount","getAssignedPause","currentValue","isUserAssociated","isListAssociated","isTrunkAssociated","isQueueAssociated","isSoundAssociated","isVariableAssociated","isOdbcAssociated","squareOdbc","odbc","isProjectAssociated","isContextAssociated","isIntervalAssociated","isMailAccountAssociated","isSmsAccountAssociated","isTemplateAssociated","isPauseAssociated","stringToNumber","parseFloat","MxGraphEditXMLController","currentXML","preproduction","MxGraphImportXMLController","readAsText","xml","MxGraphUpdateInfoController","notes","MxGraphOpenProjectController","ProjectspermissionaddController","buildStructure","MxGraphSaveProjectAsController","EditorUi","Editor","ProjectController","saveOrPublishProject","openDialog","openProject","saveProjectAs","updateInfo","editXML","importXML","gotoProjects","ui","openString","EditDialogTemplate","OpenTemplate","SaveAsTemplate","getVariableSectionPermissions","VariablesCreateDialogTemplate","InfoTemplate","EditTemplate","production","ProjectsController","selectedProjects","getProjects","createOrEditProject","exportSelectedProjects","deleteSelectedProjects","deselectProjects","selectAllProjects","ProjectsTemplate","ProjectsEditViewTemplate","CreateOrEditOdbcDialogController","odbcs","newOdbc","addNewOdbc","saveOdbc","deleteOdbc","odbcFound","OdbcsController","selectedODBC","testtestOdbc","getODBC","createOrEditOdbc","exportSelectedODBC","deleteSelectedODBC","deselectODBC","selectAllODBC","ODBCSCreateDialogTemplate","CreateOrEditSquareRecordingDialogController","squareRecordings","squareRecording","newSquareRecording","addNewSquareRecording","saveSquareRecording","deleteSquareRecording","squareRecordingFound","SquareRecordingsController","selectedSquareRecordings","getSquareRecordings","createOrEditSquareRecording","exportSelectedSquareRecordings","deleteSelectedSquareRecordings","deselectSquareRecordings","selectAllSquareRecordings","ODBCSTemplate","SquareRecordingsTemplate","CopyReportDialogController","treeCustomConfig","copyReport","_newReport","joins","_fields","bulkCreate","CreateOrEditReportDialogController","describeTable","joinTables","newReport","tables","joinTypes","addNewReport","saveReport","deleteReport","selectedTableChange","removeJoin","endpoint","parentKey","foreignTable","reportFound","ReportConditionsController","sqlUtil","vm_rc","getConditions","isValueByCondition","rules","getColumns","DescribeTable","mapTableApi","cm_companies","cm_contacts","cm_hopper","cm_hopper_final","cm_hopper_history","cm_lists","chat_websites","chat_queues","chat_interactions","chat_messages","chat_offline_messages","report_chat_queue","report_chat_transfer","mail_accounts","mail_queues","mail_interactions","mail_messages","report_mail_queue","report_mail_transfer","openchannel_accounts","openchannel_queues","openchannel_interactions","openchannel_messages","report_openchannel_queue","report_openchannel_transfer","sms_accounts","sms_queues","sms_interactions","sms_messages","report_sms_queue","report_sms_transfer","fax_accounts","fax_queues","fax_interactions","fax_messages","report_fax_transfer","report_fax_queue","report_call","report_agent","report_square","report_member","report_queue","report_square_details","report_dial","report_jscripty_sessions","report_jscripty_questions","report_jscripty_answers","voice_recordings","cdr","whatsapp_accounts","whatsapp_queues","whatsapp_interactions","whatsapp_messages","report_whatsapp_queue","report_whatsapp_transfer","CreateOrEditReportFieldDialogController","reportFields","reportField","metrics","newReportField","function","MetricId","addNewReportField","saveReportField","deleteReportField","reportFieldFound","ReportFieldsController","vm_rf","functions","getFunctions","formats","getFormats","getGroupBy","getOrderBy","selectedReportFields","addFields","getReportFields","createOrEditReportField","deleteSelectedReportFields","getMetricName","getMetricValue","analyticMetric","EditFieldDialogTemplate","metric","ReportController","gotoReports","previewReport","queryReport","mapArray","sql","queryResult","PreviewReportDialogController","ReportsController","selectedReports","customTree","copydialog","previewdialog","rundialog","createOrEditReport","importReport","exportSelectedReports","deleteSelectedReports","deselectReports","selectAllReports","treeDefaultConfig","MetricsCopyDialogTemplate","get_json","MetricsPreviewDialogTemplate","MetricsRunDialogTemplate","_metrics","encodeURIComponent","MetricsCreateDialogTemplate","flowFile","decodedJSONString","atob","updateTree","contextmenu","contextActions","create_node","edit","rename","_disabled","get_parent","delete_node","deleteReportsByParents","children_d","rename_node","move_node","RunReportDialogController","export","runReport","refreshDate","exportDate","RunWebDialogTemplate","WebReportDialogController","ReportsTemplate","queries","foreignTableFields","CreateOrEditExtractedReportDialogController","extractedReports","extractedReport","newExtractedReport","addNewExtractedReport","saveExtractedReport","deleteExtractedReport","analyticExtractedReport","extractedReportFound","ExtractedReportsController","selectedExtractedReports","getExtractedReports","createOrEditExtractedReport","exportSelectedExtractedReports","deleteSelectedExtractedReports","deselectExtractedReports","selectAllExtractedReports","savename","CreateOrEditMetricDialogController","newMetric","addNewMetric","saveMetric","deleteMetric","metricFound","MetricsController","selectedMetrics","getMetrics","createOrEditMetric","exportSelectedMetrics","deleteSelectedMetrics","deselectMetrics","selectAllMetrics","MetricsTemplate","ExtractedReportsTemplate","CreateOrEditDeskAccountDialogController","deskAccounts","deskAccount","newDeskAccount","authType","serverUrl","addNewDeskAccount","saveDeskAccount","deleteDeskAccount","intDeskAccount","deskAccountFound","DeskAccountsController","selectedDeskAccounts","testtestintegrationaccount","getDeskAccounts","createOrEditDeskAccount","exportSelectedDeskAccounts","deleteSelectedDeskAccounts","deselectDeskAccounts","selectAllDeskAccounts","DeskAccountConfigurationsController","vm_cc","deskConfiguration","selectedDeskConfiguration","getDeskConfiguration","createOrEditDeskConfiguration","deleteDeskConfiguration","selectTagsChanged","intDeskConfiguration","getConfigurations","variablesById","getSubjects","subjects","getDescriptions","descriptions","ConfigurationsDialogTemplate","selectedSubjects","createOrEditSubject","deleteSubjectConfirm","deleteSelectedSubjects","ItemsDialogTemplate","deleteSubject","intDeskField","selectedDescriptions","createOrEditDescription","deleteDescriptionConfirm","deleteSelectedDescriptions","deleteDescription","selectedFields","createOrEditField","deleteFieldConfirm","deleteSelectedFields","deleteField","CreateOrEditDeskConfigurationDialogController","newDeskConfiguration","addNewDeskConfiguration","saveDeskConfiguration","addConfiguration","deskConfigurationFound","CreateOrEditDeskAccountItemDialogController","newItem","addNewItem","getSelectedVariable","voiceAgentReport","voiceAgentReporDescribe","voiceAgentReportColumns","voiceDialReport","voiceDialReportDescribe","voiceDialReportColumns","ticketType","accountConnected","idField","nameField","itemFound","variableName","DeskAccountController","gotoDeskAccounts","CreateOrEditDynamics365AccountDialogController","dynamics365Accounts","dynamics365Account","newDynamics365Account","addNewDynamics365Account","saveDynamics365Account","deleteDynamics365Account","intDynamics365Account","dynamics365AccountFound","Dynamics365AccountsController","selectedDynamics365Accounts","getDynamics365Accounts","createOrEditDynamics365Account","exportSelectedDynamics365Accounts","deleteSelectedDynamics365Accounts","deselectDynamics365Accounts","selectAllDynamics365Accounts","Dynamics365AccountConfigurationsController","dynamics365Configuration","selectedDynamics365Configuration","getDynamics365Configuration","createOrEditDynamics365Configuration","deleteDynamics365Configuration","intDynamics365Configuration","ConfigurationDialogTemplate","ItemDialogTemplate","intDynamics365Field","CreateOrEditDynamics365ConfigurationDialogController","newDynamics365Configuration","addNewDynamics365Configuration","saveDynamics365Configuration","dynamics365ConfigurationFound","CreateOrEditDynamics365AccountItemDialogController","Dynamics365AccountController","gotoDynamics365Accounts","CreateOrEditFreshdeskAccountDialogController","freshdeskAccounts","freshdeskAccount","newFreshdeskAccount","addNewFreshdeskAccount","saveFreshdeskAccount","deleteFreshdeskAccount","intFreshdeskAccount","freshdeskAccountFound","FreshdeskAccountConfigurationsController","freshdeskConfiguration","selectedFreshdeskConfiguration","getFreshdeskConfiguration","createOrEditFreshdeskConfiguration","deleteFreshdeskConfiguration","intFreshdeskConfiguration","intFreshdeskField","CreateOrEditFreshdeskConfigurationDialogController","newFreshdeskConfiguration","addNewFreshdeskConfiguration","saveFreshdeskConfiguration","freshdeskConfigurationFound","CreateOrEditFreshdeskAccountItemDialogController","FreshdeskAccountController","gotoFreshdeskAccounts","FreshdeskAccountsController","selectedFreshdeskAccounts","getFreshdeskAccounts","createOrEditFreshdeskAccount","exportSelectedFreshdeskAccounts","deleteSelectedFreshdeskAccounts","deselectFreshdeskAccounts","selectAllFreshdeskAccounts","CreateOrEditFreshsalesAccountDialogController","freshsalesAccounts","freshsalesAccount","newFreshsalesAccount","addNewFreshsalesAccount","saveFreshsalesAccount","deleteFreshsalesAccount","intFreshsalesAccount","freshsalesAccountFound","FreshsalesAccountConfigurationsController","freshsalesConfiguration","selectedFreshsalesConfiguration","getFreshsalesConfiguration","createOrEditFreshsalesConfiguration","deleteFreshsalesConfiguration","intFreshsalesConfiguration","intFreshsalesField","CreateOrEditFreshsalesConfigurationDialogController","newFreshsalesConfiguration","addNewFreshsalesConfiguration","saveFreshsalesConfiguration","freshsalesConfigurationFound","CreateOrEditFreshsalesAccountItemDialogController","FreshsalesAccountController","gotoFreshsalesAccounts","FreshsalesAccountsController","selectedFreshsalesAccounts","getFreshsalesAccounts","createOrEditFreshsalesAccount","exportSelectedFreshsalesAccounts","deleteSelectedFreshsalesAccounts","deselectFreshsalesAccounts","selectAllFreshsalesAccounts","CreateOrEditSalesforceAccountDialogController","salesforceAccounts","salesforceAccount","newSalesforceAccount","addNewSalesforceAccount","saveSalesforceAccount","deleteSalesforceAccount","intSalesforceAccount","salesforceAccountFound","SalesforceAccountConfigurationsController","salesforceConfiguration","selectedSalesforceConfiguration","getSalesforceConfiguration","createOrEditSalesforceConfiguration","deleteSalesforceConfiguration","selectChangedAdvanced","intSalesforceConfiguration","intSalesforceField","CreateOrEditSalesforceConfigurationDialogController","newSalesforceConfiguration","addNewSalesforceConfiguration","saveSalesforceConfiguration","salesforceConfigurationFound","CreateOrEditSalesforceAccountItemDialogController","SalesforceAccountController","gotoSalesforceAccounts","SalesforceAccountsController","selectedSalesforceAccounts","getSalesforceAccounts","createOrEditSalesforceAccount","exportSelectedSalesforceAccounts","deleteSelectedSalesforceAccounts","deselectSalesforceAccounts","selectAllSalesforceAccounts","CreateOrEditServicenowAccountDialogController","servicenowAccounts","servicenowAccount","newServicenowAccount","addNewServicenowAccount","saveServicenowAccount","deleteServicenowAccount","intServicenowAccount","servicenowAccountFound","ServicenowAccountConfigurationsController","servicenowConfiguration","selectedServicenowConfiguration","getServicenowConfiguration","createOrEditServicenowConfiguration","deleteServicenowConfiguration","intServicenowConfiguration","intServicenowField","CreateOrEditServicenowConfigurationDialogController","newServicenowConfiguration","addNewServicenowConfiguration","saveServicenowConfiguration","servicenowConfigurationFound","CreateOrEditServicenowAccountItemDialogController","ServicenowAccountController","gotoServicenowAccounts","ServicenowAccountsController","selectedServicenowAccounts","getServicenowAccounts","createOrEditServicenowAccount","exportSelectedServicenowAccounts","deleteSelectedServicenowAccounts","deselectServicenowAccounts","selectAllServicenowAccounts","CreateOrEditSugarcrmAccountDialogController","sugarcrmAccounts","sugarcrmAccount","newSugarcrmAccount","addNewSugarcrmAccount","saveSugarcrmAccount","deleteSugarcrmAccount","intSugarcrmAccount","sugarcrmAccountFound","SugarcrmAccountConfigurationsController","sugarcrmConfiguration","selectedSugarcrmConfiguration","getSugarcrmConfiguration","createOrEditSugarcrmConfiguration","deleteSugarcrmConfiguration","intSugarcrmConfiguration","intSugarcrmField","CreateOrEditSugarcrmConfigurationDialogController","newSugarcrmConfiguration","addNewSugarcrmConfiguration","saveSugarcrmConfiguration","sugarcrmConfigurationFound","CreateOrEditSugarcrmAccountItemDialogController","SugarcrmAccountController","gotoSugarcrmAccounts","SugarcrmAccountsController","selectedSugarcrmAccounts","getSugarcrmAccounts","createOrEditSugarcrmAccount","exportSelectedSugarcrmAccounts","deleteSelectedSugarcrmAccounts","deselectSugarcrmAccounts","selectAllSugarcrmAccounts","CreateOrEditVtigerAccountDialogController","vtigerAccounts","vtigerAccount","newVtigerAccount","addNewVtigerAccount","saveVtigerAccount","deleteVtigerAccount","intVtigerAccount","vtigerAccountFound","VtigerAccountConfigurationsController","vtigerConfiguration","selectedVtigerConfiguration","getVtigerConfiguration","createOrEditVtigerConfiguration","deleteVtigerConfiguration","intVtigerConfiguration","intVtigerField","CreateOrEditVtigerConfigurationDialogController","newVtigerConfiguration","addNewVtigerConfiguration","saveVtigerConfiguration","vtigerConfigurationFound","CreateOrEditVtigerAccountItemDialogController","VtigerAccountController","gotoVtigerAccounts","VtigerAccountsController","selectedVtigerAccounts","getVtigerAccounts","createOrEditVtigerAccount","exportSelectedVtigerAccounts","deleteSelectedVtigerAccounts","deselectVtigerAccounts","selectAllVtigerAccounts","CreateOrEditZendeskAccountDialogController","zendeskAccounts","zendeskAccount","newZendeskAccount","addNewZendeskAccount","saveZendeskAccount","deleteZendeskAccount","intZendeskAccount","zendeskAccountFound","CreateOrEditZendeskAccountItemDialogController","intZendeskField","ZendeskAccountController","gotoZendeskAccounts","ZendeskAccountConfigurationsController","zendeskConfiguration","zendeskConfigurations","selectedZendeskConfiguration","getZendeskConfiguration","createOrEditZendeskConfiguration","deleteZendeskConfiguration","intZendeskConfiguration","CreateOrEditZendeskConfigurationDialogController","newZendeskConfiguration","addNewZendeskConfiguration","saveZendeskConfiguration","zendeskConfigurationFound","ZendeskAccountsController","selectedZendeskAccounts","getZendeskAccounts","createOrEditZendeskAccount","exportSelectedZendeskAccounts","deleteSelectedZendeskAccounts","deselectZendeskAccounts","selectAllZendeskAccounts","CreateOrEditZohoAccountDialogController","zohoAccounts","zohoAccount","newZohoAccount","zone","addNewZohoAccount","saveZohoAccount","deleteZohoAccount","intZohoAccount","zohoAccountFound","ZohoAccountConfigurationsController","zohoConfiguration","selectedZohoConfiguration","getZohoConfiguration","createOrEditZohoConfiguration","deleteZohoConfiguration","intZohoConfiguration","intZohoField","CreateOrEditZohoConfigurationDialogController","newZohoConfiguration","addNewZohoConfiguration","saveZohoConfiguration","zohoConfigurationFound","CreateOrEditZohoAccountItemDialogController","ZohoAccountController","gotoZohoAccounts","ZohoAccountsController","selectedZohoAccounts","getZohoAccounts","createOrEditZohoAccount","exportSelectedZohoAccounts","deleteSelectedZohoAccounts","deselectZohoAccounts","selectAllZohoAccounts","ZendeskTemplate","ZendeskEditViewTemplate","SalesforceTemplate","SalesforceEditViewTemplate","FreshdeskTemplate","FreshdeskEditViewTemplate","SugarcrmTemplate","SugarcrmEditViewTemplate","DeskAccountsTemplate","DeskAccountsEditViewTemplate","ZohoAccountsTemplate","ZohoAccountsEditViewTemplate","VtigerTemplate","VtigerEditViewTemplate","Dynamics365Template","Dynamics365EditViewTemplate","ServicenowTemplate","ServicenowEditViewTemplate","FreshsalesTemplate","FreshsalesEditViewTemplate","LicenseController","channels","addons","restart","others","updateLicense","UpdateDialogTemplate","requestLicense","RequestDialogTemplate","gotoProcess","RequestLicenseDialogController","sendRequest","jira","summary","issuetype","UpdateLicenseDialogController","licenseKey","demo","SystemController","processes","processLimit","getInfo","getProcesses","cancelInterval","updateProcess","pm2","UpdateDialogController","progress","updating","fetch","migrations","stopInterval","UpdatesController","updateConfirm","DialogTemplate","latest","CloudProvidersController","cloudProviders","selectedAiTools","getAiTools","createOrEditCloudProvider","deleteCloudProvider","exportSelectedAiTools","deleteSelectedAiTools","deselectAiTools","selectAllAiTools","cloudProvider","CreateTemplate","CreateOrEditCloudProviderDialogController","newCloudProvider","addNewCloudProvider","saveCloudProvider","cloudProviderFound","CreateOrEditCustomizationDialogController","customizations","customization","newCustomization","addNewCustomization","saveCustomization","deleteCustomization","customizationFound","CustomizationsController","CustomizationfaviconController","vm_cf","CustomizationlogoController","vm_cl","CustomizationlogologinController","vm_cll","CustomizationpreferredController","vm_cp","CreateOrEditGeneralDialogController","generals","newGeneral","min_internal","chatTimeout","phoneBarAutoUpdater","phoneBarAutoUpdaterUrl","splitSizeCsv","splitSizePdf","splitSizeXlsx","phoneBarRememberMeEnabled","allowedLoginAttempts","blockDuration","loginMailFrequency","enforcePasswordHistory","passwordHistoryLimit","addNewGeneral","saveGeneral","deleteGeneral","generalFound","GeneralsController","CreateOrEditNetworkDialogController","networks","newNetwork","addNewNetwork","saveNetwork","deleteNetwork","networkFound","NetworksController","selectedNetworks","getNetworks","createOrEditNetwork","exportSelectedNetworks","deleteSelectedNetworks","deselectNetworks","selectAllNetworks","CreateOrEditSmtpDialogController","smtps","smtp","newSmtp","addNewSmtp","saveSmtp","deleteSmtp","smtpFound","SmtpController","GeneralsTemplate","SmtpsTemplate","NetworksTemplate","CustomizationsTemplate","CloudProvidersTemplate","AbandonedCallsMotionDialerRealtimeController","DisposeAbandonedCallDialogTemplate","AgentsMotionDialerRealtimeController","IvrCampaignsMotionDialerRealtimeController","campaigns","getCampaigns","createOrEditIvrCampaign","ivrCampaign","ivrCampaigns","QueueCallsMotionDialerRealtimeController","QueueParamsMotionDialerRealtimeController","QueuesMotionDialerRealtimeController","createOrEditMotionDialerQueue","showPredictiveQueueCampaignInfo","startPredictive","MotionDialerQueueId","PredictiveDialogTemplate","motiondialerQueue","PredictiveQueueCampaignDialogController","addMinutes","setFormatTime","MotionDialerRealtimeController","AbandonedCallsViewTemplate","IvrParamsViewTemplate","CreateOrEditIvrCampaignDialogController","newIvrCampaign","dialCheckDuplicateType","dialCutDigit","dialRandomLastDigitCallerIdNumber","dialOriginateTimeout","dialGlobalMaxRetry","dialCongestionMaxRetry","dialCongestionRetryFrequency","dialBusyMaxRetry","dialBusyRetryFrequency","dialNoAnswerMaxRetry","dialNoAnswerRetryFrequency","dialNoSuchNumberMaxRetry","dialNoSuchNumberRetryFrequency","dialDropMaxRetry","dialDropRetryFrequency","dialAbandonedMaxRetry","dialAbandonedRetryFrequency","dialMachineMaxRetry","dialMachineRetryFrequency","dialAgentRejectMaxRetry","dialAgentRejectRetryFrequency","dialOrderByScheduledAt","dialGlobalInterval","dialAMDInitialSilence","dialAMDGreeting","dialAMDAfterGreetingSilence","dialAMDTotalAnalysisTime","dialAMDMinWordLength","dialAMDBetweenWordsSilence","dialAMDMaximumNumberOfWords","dialAMDSilenceThreshold","dialAMDMaximumWordLength","addNewIvrCampaign","saveIvrCampaign","deleteIvrCampaign","SquareProjectId","ivrCampaignFound","IvrCampaignblacklistaddController","getApi","addApi","removeApi","saveLists","getAllLists","getAssociatedLists","associatedLists","addLists","removeLists","IvrCampaigncloneController","cloneIvrCampaign","IvrCampaignHopperBlacksController","ivrCampaignHopperBlacks","selectedIvrCampaignHopperBlacks","getIvrCampaignHopperBlacks","exportSelectedIvrCampaignHopperBlacks","deleteIvrCampaignHopperBlack","deleteSelectedIvrCampaignHopperBlacks","CampaignId","ivrCampaignHopperBlack","getHopperBlacks","hopperBlack","IvrCampaignHopperFinalsController","ivrCampaignHopperFinals","selectedIvrCampaignHopperFinals","getIvrCampaignHopperFinals","exportSelectedIvrCampaignHopperFinals","deleteIvrCampaignHopperFinal","deleteSelectedIvrCampaignHopperFinals","moveIvrCampaignHopperFinal","moveContactsIvrCampaignHopperFinal","countContactsIvrCampaignHopperFinal","moveConfirm","moveSelectedIvrCampaignHopperFinals","ivrCampaignHopperFinal","hopperFinal","createContact","countbusyretry","countcongestionretry","countnoanswerretry","countglobal","createHistory","editedat","edited","statedesc","campaigntype","checkContactHopper","IvrCampaignHopperHistoriesController","ivrCampaignHopperHistories","selectedIvrCampaignHopperHistories","getIvrCampaignHopperHistories","exportSelectedIvrCampaignHopperHistories","deleteIvrCampaignHopperHistory","deleteSelectedIvrCampaignHopperHistories","ivrCampaignHopperHistory","hopperHistory","IvrCampaignHoppersController","ivrCampaignHoppers","selectedIvrCampaignHoppers","getIvrCampaignHoppers","exportSelectedIvrCampaignHoppers","deleteIvrCampaignHopper","deleteSelectedIvrCampaignHoppers","CreateOrEditHopperCampaignIdDialogController","addNewHopper","oldScheduledat","copyHopper","nameCampaign","callbackuniqueid","followuptime","IvrCampaignHopperStatisticsController","vm_hs","fresh","IvrCampaignlistaddController","IvrCampaignresetlistController","listsCampaign","Sequence","isIndeterminate","isChecked","toggleAll","listSelected","idx","resetList","final","enqueue","IvrCampaignController","listadddialog","blacklistadddialog","resetlistdialog","gotoIvrCampaigns","ListaddTemplate","BlacklistaddTemplate","ResetlistTemplate","IvrCampaignsController","selectedIvrCampaigns","getIvrCampaigns","exportSelectedIvrCampaigns","deleteSelectedIvrCampaigns","deselectIvrCampaigns","selectAllIvrCampaigns","CreateOrEditQueueCampaignDialogController","newQueueCampaign","dialPowerLevel","dialPredictiveOptimization","dialPredictiveOptimizationPercentage","dialPredictiveInterval","dialLimitQueue","dialQueueOptions","dialQueueTimeout","dialPredictiveIntervalMaxThreshold","dialPredictiveIntervalMinThreshold","addNewQueueCampaign","saveQueueCampaign","deleteQueueCampaign","queueCampaignFound","QueueCampaignagentaddController","QueueCampaignblacklistaddController","QueueCampaigncloneController","cloneQueueCampaign","QueueCampaignHopperBlacksController","queueCampaignHopperBlacks","selectedQueueCampaignHopperBlacks","getQueueCampaignHopperBlacks","exportSelectedQueueCampaignHopperBlacks","deleteQueueCampaignHopperBlack","deleteSelectedQueueCampaignHopperBlacks","queueCampaignHopperBlack","QueueCampaignHopperFinalsController","queueCampaignHopperFinals","selectedQueueCampaignHopperFinals","getQueueCampaignHopperFinals","exportSelectedQueueCampaignHopperFinals","deleteQueueCampaignHopperFinal","deleteSelectedQueueCampaignHopperFinals","moveQueueCampaignHopperFinal","moveContactsQueueCampaignHopperFinal","countContactsQueueCampaignHopperFinal","moveSelectedQueueCampaignHopperFinals","queueCampaignHopperFinal","QueueCampaignHopperHistoriesController","queueCampaignHopperHistories","selectedQueueCampaignHopperHistories","getQueueCampaignHopperHistories","exportSelectedQueueCampaignHopperHistories","deleteQueueCampaignHopperHistory","deleteSelectedQueueCampaignHopperHistories","queueCampaignHopperHistory","QueueCampaignHoppersController","queueCampaignHoppers","selectedQueueCampaignHoppers","getQueueCampaignHoppers","exportSelectedQueueCampaignHoppers","deleteSelectedQueueCampaignHoppers","queueCampaignHopper","CreateOrEditHopperVoiceQueueIdDialogController","QueueCampaignHopperStatisticsController","QueueCampaignlistaddController","QueueCampaignresetlistController","QueueCampaignteamaddController","QueueCampaignController","gotoQueueCampaigns","dialQueueProject","QueueCampaignsController","selectedQueueCampaigns","getQueueCampaigns","createOrEditQueueCampaign","exportSelectedQueueCampaigns","deleteSelectedQueueCampaigns","deselectQueueCampaigns","selectAllQueueCampaigns","QueueCampaignsTemplate","QueueCampaignsTemplateEditView","IvrCampaignsTemplate","IvrCampaignsTemplateEditView","AboutController","AboutTemplate","CreateOrEditProjectDialogController","ProjectAnswersController","vm_an","pickerModel","selectedTemplate","getSummary","hasIdAnswers","ProjectBuilderController","vm_bc","optionsBuilder","questionTypes","elementTypes","ProjectcloneController","cloneProject","ProjectViewerController","vm_vc","ProjectSessionsController","projectSessions","selectedProjectSessions","getProjectSessions","createOrEditProjectSession","showQuestionsProjectSession","exportSelectedProjectSessions","deleteProjectSession","deleteSelectedProjectSessions","projectSession","getSessions","SessionsDialogTemplate","ShowQuestionsSessionDialogController","JscriptyProjectController","JscriptyProjectsController","sessionsgoto","CreateOrEditPluginDialogController","newPlugin","addNewPlugin","savePlugin","deletePlugin","pluginFound","MarketplacePluginController","gotoPlugins","MarketplacePluginsController","selectedPlugins","installplugin","stopplugin","restartplugin","uninstallplugin","getPlugins","createOrEditPlugin","exportSelectedPlugins","deleteSelectedPlugins","deselectPlugins","selectAllPlugins","uploadPlugin","scriptName","scriptPath","stopPluginProcess","process","pm_id","restartPluginProcess","uninstallPlugin","UploadPluginDialogController","uploadPlugins","PluginsTemplate","PluginsEditViewTemplate","PluginController","adminUrl","PluginTemplate","CreateOrEditscreenRecordingDialogController","screenRecordings","newscreenRecording","addNewscreenRecording","savescreenRecording","deletescreenRecording","screenRecordingFound","ScreenRecordingplayController","actionOptions","varPath","elementTag","assign","searchFile","arrayKeys1","propertiesDefault","propertiesList","_whitelist","arrayKeys2","check","extraData","propertiesExtra","extraDataArray","dataValuesArray","ScreenRecordingsController","selectedScreenRecordings","playrecording","getScreenRecordings","createOrEditscreenRecording","exportSelectedScreenRecordings","deleteSelectedScreenRecordings","deselectScreenRecordings","selectAllScreenRecordings","convertDuration","upperTitle","lowerTitle","propertiesIcon","singular","PartialViewsPlayTemplate","_namefile","_hours","_minutes","_seconds","ScreenRecordingsTemplate","AgentsWhatsappRealtimeController","QueuesWhatsappRealtimeController","createOrEditWhatsappQueue","whatsappQueue","WhatsappQueueId","WhatsappRealtimeController","CreateOrEditWhatsappAccountDialogController","newWhatsappAccount","addNewWhatsappAccount","saveWhatsappAccount","deleteWhatsappAccount","whatsappAccountFound","WhatsappAccountActionsController","whatsappAccountApps","selectedWhatsappAccountApps","editWhatsappAccountApp","getWhatsappAccountApps","deleteWhatsappAccountApp","deleteSelectedWhatsappAccountApps","whatsappAccountApp","WhatsappAccountagentaddController","UserWhatsappAccount","EditWhatsappAccountAppagentDialogController","saveWhatsappAccountApp","EditWhatsappAccountAppamazonlexDialogController","EditWhatsappAccountAppautoreplyDialogController","EditWhatsappAccountAppcloseDialogController","EditWhatsappAccountAppdialogflowDialogController","EditWhatsappAccountAppgotoifDialogController","EditWhatsappAccountAppgotopDialogController","EditWhatsappAccountAppintervalDialogController","EditWhatsappAccountAppnoopDialogController","EditWhatsappAccountAppqueueDialogController","EditWhatsappAccountAppsystemDialogController","EditWhatsappAccountApptagDialogController","WhatsappAccountInteractionsController","whatsappAccountInteractions","selectedWhatsappAccountInteractions","whatsappInteractionDownload","getWhatsappAccountInteractions","spywhatsappInteraction","exportSelectedWhatsappAccountInteractions","deleteWhatsappAccountInteraction","deleteSelectedWhatsappAccountInteractions","whatsappAccountInteraction","WhatsappAccountController","gotoWhatsappAccounts","WhatsappAccountWhatsappCannedAnswersController","whatsappAccountWhatsappCannedAnswers","selectedWhatsappAccountWhatsappCannedAnswers","getWhatsappAccountWhatsappCannedAnswers","createOrEditWhatsappAccountWhatsappCannedAnswer","exportSelectedWhatsappAccountWhatsappCannedAnswers","deleteWhatsappAccountWhatsappCannedAnswer","deleteSelectedWhatsappAccountWhatsappCannedAnswers","whatsappAccountWhatsappCannedAnswer","WhatsappCannedAnswersDialogTemplate","whatsappCannedAnswer","whatsappCannedAnswers","CreateOrEditWhatsappCannedAnswerDialogController","newWhatsappCannedAnswer","addNewWhatsappCannedAnswer","saveWhatsappCannedAnswer","deleteWhatsappCannedAnswer","whatsappCannedAnswerFound","WhatsappAccountDispositionsController","WhatsappAccountsController","selectedWhatsappAccounts","createOrEditWhatsappAccount","exportSelectedWhatsappAccounts","deleteSelectedWhatsappAccounts","deselectWhatsappAccounts","selectAllWhatsappAccounts","CreateOrEditWhatsappQueueDialogController","newWhatsappQueue","addNewWhatsappQueue","saveWhatsappQueue","deleteWhatsappQueue","whatsappQueueFound","WhatsappQueueagentaddController","UserWhatsappQueue","WhatsappQueueteamaddController","WhatsappQueueController","gotoWhatsappQueues","TeamaddDialogTemplate","AgentaddDialogTemplate","WhatsappQueuesController","selectedWhatsappQueues","exportSelectedWhatsappQueues","deleteSelectedWhatsappQueues","deselectWhatsappQueues","selectAllWhatsappQueues","QueuesEditViewTemplate","AccountsTemplate","AccountsEditViewTemplate","LoginController","progresslogin","googleSsoEnabled","userId","loginOauth","CoreContentOnlyTemplate","LoginTemplate","ForgotPasswordController","forgotPassword","forgot","ForgotTemplate","ResetPasswordController","gdpr","resetPassword","ResetTemplate","Error404Controller","Error404Template","Error500Controller","sendReport","Error500Template","apiService","API_SERVER_ADDRESS","google","getVoiceQueuesChannel","getOutbound","getOutboundChannels","getOpenchannelQueuesIdWaitingInteractions","mailQueueNotify","chatQueueNotify","faxQueueNotify","smsQueueNotify","openchannelQueueNotify","agentNotify","addAvatar","getAvatar","getVoiceQueuesRt","getRecordings","addChatInteractions","removeChatInteractions","addMailInteractions","removeMailInteractions","addFaxInteractions","removeFaxInteractions","addSmsInteractions","removeSmsInteractions","addOpenchannelInteractions","removeOpenchannelInteractions","addWhatsappInteractions","removeWhatsappInteractions","addFaxAccounts","removeFaxAccounts","addMailAccounts","removeMailAccounts","addOpenchannelAccounts","removeOpenchannelAccounts","addSmsAccounts","removeSmsAccounts","addChatWebsites","removeChatWebsites","addWhatsappAccounts","removeWhatsappAccounts","getSquareProjects","addBlackLists","removeBlackLists","responseType","cache","transformResponse","h","downloads","memberReport","voiceTransferReport","mailServerOut","addDisposition","removeDispositions","addAnswer","removeAnswers","getImap","addImap","removeImap","getSmtp","addSmtp","removeSmtp","addInteraction","getInteractions","removeTags","mailApplication","mailQueueReport","faxApplication","faxMessage","faxQueueReport","statusGet","smsApplication","smsMessage","openchannelApplication","openchannelMessage","addLogo","addCustomerAvatar","addSystemAvatar","getCustomerAvatar","getSystemAvatar","offline","getSnippet","addProactiveActions","openchannelQueueReport","chatApplication","customUpdate","abandon","attachmentUpload","attachmentDownload","getMyMessages","chatMessage","removeMembers","cmHopperBlack","automation","addConditions","addActions","addInterval","voiceQueuesLog","addAnyCondition","integration","integrationReport","bulkDestroy","chatQueueReport","getQuestions","smsQueueReport","squareReport","squareReportDetail","addLogoLogin","getLogoLogin","addPreferred","getPreferred","addFavicon","getFavicon","addUsers","removeUsers","migration","webhookGet","webhookPost","mailTransferReport","chatTransferReport","faxTransferReport","openchannelTransferReport","smsTransferReport","addResources","removeResources","sendNotification","whatsappApplication","whatsappMessage","whatsappQueueReport","whatsappTransferReport","$translateProvider","toastyConfigProvider","useLoader","urlTemplate","useSanitizeValueStrategy","IndexController","savedLanguage","rtlSupport","formatDate","currentDate","toFormat","getTime","limitObjectFromTo","begin","newObj","Today","Yesterday","January","February","March","April","May","June","July","August","September","October","November","December","Mon","Tue","Wed","Thu","Fri","Sat","Sun","fn","tail","routeConfig","$urlRouterProvider","$locationProvider","html5Mode","otherwise","layouts","verticalNavigation","main","CoreVerticalNavigationLayoutTemplate","toolbar","ToolbarLayoutTemplate","NavigationVerticalNavigationLayoutTemplate","header","HeaderVerticalNavigationLayoutTemplate","footer","FooterVerticalNavigationLayoutTemplate","verticalNavigationFullwidthToolbar","CoreVerticalNavigationFullWidthToolbarLayoutTemplate","verticalNavigationFullwidthToolbar2","CoreVerticalNavigationFullWidthToolbar2LayoutTemplate","NavigationVerticalNavigationFullWidthToolbar2LayoutTemplate","horizontalNavigation","CoreHorizontalNavigationLayoutTemplate","NavigationHorizontalNavigationLayoutTemplate","contentOnly","contentWithToolbar","CoreContentWithToolbarLayoutTemplate","QuickPanelLayoutTemplate","Socket","SOCKET","io","OPTS","transports","eventName","arguments","emit","removeListener","MainController","getItemDashboard","getItemPlugin","addAgentPlugin","getChildrenIds","gray","adminPlugins","agentPlugins","defaultPageTitle","pageTitle","cm","settingsEnabled","ai","jscripty","iconClass","targetScope","$id","DEPS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA,SAASA,cAAT,CAAwBC,aAAxB,EAAuC;AACrCA,eAAa,CAACC,YAAd,CAA2BC,IAA3B,CAAgC,iBAAhC;AACD;;AAED,kDAAeH,cAAf,E;;;;ACLA;AACA,SAASI,SAAT,CAAmBC,YAAnB,EAAiC;AAC/B;AACA,MAAMC,oBAAoB,GAAG;AAC3BC,MAAE,EAAE,YAAUC,KAAV,EAAiB;AACnB,aAAOA,KAAK,CAACC,YAAN,KAAuB,IAA9B;AACD;AAH0B,GAA7B,CAF+B,CAQ/B;;AACA,MAAMC,eAAe,GAAG;AACtBH,MAAE,EAAE,YAAUC,KAAV,EAAiB;AACnB,aAAOA,KAAK,CAACG,IAAN,KAAe,WAAtB;AACD;AAHqB,GAAxB,CAT+B,CAe/B;;AACA,MAAMC,0BA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ACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACF;AACA;;;AACE,WAAS9N,WAAT,CAAqB+oD,SAArB,EAAgC;AAC9BhwD,aAAS,CAACmH,IAAV,CAAe6oD,SAAf;AACD;AACF;AAED;AACA;AACA;AACA;AACA;AACA;;;AACA,+DAAeb,qCAAf,E;;AClMA,oDAAe,qBAAuB,sFAAsF,E;;ACA5H,kDAAe,qBAAuB,oFAAoF,E;;;;ACA1H;AACA;AACA;AACA;AACA;CAEA;;CAEA;;AACA;AAEA;;AACA,SAASc,mBAAT,CACErhD,MADF,EAEEvO,SAFF,EAGEoO,QAHF,EAIEzO,SAJF,EAKEwrB,UALF,EAMEtrB,EANF,EAOE4L,IAPF,EAQE3L,GARF,EASE8tB,MATF,EAUE3c,MAVF,EAWE;AACA,MAAM4+C,KAAK,GAAG,IAAd,CADA,CAGA;;AACAA,OAAK,CAACjkD,WAAN,GAAoBH,IAAI,CAACrL,cAAL,EAApB;AACAyvD,OAAK,CAACC,mBAAN,GAA4B,EAA5B;AACAD,OAAK,CAAChD,MAAN,GAAe,EAAf;AACAgD,OAAK,CAACE,YAAN;AACAF,OAAK,CAAC3jC,KAAN,CARA,CAUA;;AACA2jC,OAAK,CAAC7kC,IAAN,GAAaA,IAAb;AACA6kC,OAAK,CAACG,IAAN,GAAaA,IAAb;AACAH,OAAK,CAACI,QAAN,GAAiBA,QAAjB;AACAJ,OAAK,CAACK,WAAN,GAAoBA,WAApB;AACAL,OAAK,CAACM,aAAN,GAAsBA,aAAtB;AACAN,OAAK,CAACO,eAAN,GAAwBA,eAAxB;AACAP,OAAK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e,qBAAuB,yGAAyG,E;;;ACA/I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AACA,SAAS9lH,mBAAT,CACEkxD,cADF,EAEEnM;AAAgC;AAFlC,EAGE;AACA;AACAmM,gBAAc,CACXh7D,KADH,CACS,WADT,EACsB;AAClBgyF,YAAQ,EAAE,IADQ;AAElB9nF,OAAG,EAAE;AAFa,GADtB,EAKGlK,KALH,CAKS,uBALT,EAKkC;AAC9BkK,OAAG,EAAE,cADyB;AAE9B+wD,SAAK,EAAE;AACL,qBAAe;AACbn1D,mBAAW,EAAEmrH,WAAmBA;AAAC;AADpB;AAEbrrH,kBAAU,EAAE;AAFC;AADV,KAFuB;AAQ9BxB,WAAO,EAAE;AACP4xC,iBAAW,0BAAE,qBAAU3vC,WAAV,EAAuB6H,IAAvB,EAA6B;AACxC,eAAOA,IAAI,CAAC1M,OAAL,CAAa,OAAb,IACH6E,WAAW,CAACjC,OAAZ,CAAoB,gBAApB,EAAsC;AACpCkC,gBAAM,EACJ,mpBAFkC;AAIpCsN,cAAI,EAAE,SAJ8B;AAMpC6X,cAAI,EAAE,YAN8B;AAQpCw9B,iBAAO,EAAE,OAR2B;AAUpCpR,eAAK,EAA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,WAAH,CAAer0H,IAAf,GACDiJ,EAAE,CAACorH,WAAH,CAAer0H,IAAf,GAAsB,oBADrB,GAED;AAJS,OAAf;AAMD,KAdH,EAeGkB,KAfH,CAeS,UAAUoD,GAAV,EAAe;AACpBiP,YAAM,CAACmD,KAAP,CAAa;AACXC,aAAK,EAAErS,GAAG,CAACG,MAAJ,GACH,SAASH,GAAG,CAACG,MAAb,GAAsB,KAAtB,GAA8BH,GAAG,CAACsS,UAD/B,GAEH,uBAHO;AAIXE,WAAG,EAAExS,GAAG,CAACI,IAAJ,GAAW0L,IAAI,CAACI,SAAL,CAAelM,GAAG,CAACI,IAAnB,CAAX,GAAsCJ,GAAG,CAAC0S,QAAJ;AAJhC,OAAb;AAMD,KAtBH;AAuBD;AACF;AAED;AACA;AACA;AACA;AACA;;;AACA,wEAAeonH,qBAAf,E;;;ACzXA;AACA;AACA;CAGA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AACA,SAASz0H,kBAAT,CAAgBkxD,cAAhB,EAAgCnM,+BAAhC,EAAiE;AAC/D;AACAmM,gBAAc,CACXh7D,KADH,CACS,UADT,EACqB;AACjBgyF,YAAQ,EAAE,IADO;AAEjB9nF,OAAG,EAAE;AAFY,GADrB,EAKGlK,KALH,CAKS,qBALT,EAKgC;AAC5BkK,OAAG,EAAE,aADuB;AAE5B+wD,SAAK,EAAE;AACL,qBAAe;AACbn1D,mBAAW,EAAE24H,UADA;AACoB;AACjC74H,kBAAU,EAAE;AAFC;AADV,KAFqB;AAQ5BxB,WAAO,EAAE;AACP4uE,gBAAU,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Ad;AACD,OAFD;AAGAl4G,QAAE,CAACgnJ,iBAAH,GAAuB,EAAvB;AACD,KALD;AAMD;AAED;AACF;AACA;;;AACE,WAASK,iBAAT,GAA6B;AAC3BrnJ,MAAE,CAACgnJ,iBAAH,GAAuB,EAAvB;AACD;AAED;AACF;AACA;;;AACE,WAASM,kBAAT,GAA8B;AAC5BtnJ,MAAE,CAACgnJ,iBAAH,GAAuBhnJ,EAAE,CAACykD,SAAH,CAAa3lD,IAApC;AACD;AACF;AAED;AACA;AACA;AACA;;;AAEA,2DAAeioJ,mBAAf,E;;;ACjTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AACA,SAASrmJ,mBAAT,CACEkxD,cADF,EAEEnM;AACA;AACF;AAJA,EAKE;AACA;AACAmM,gBAAc,CACXh7D,KADH,CACS,WADT,EACsB;AAClBgyF,YAAQ,EAAE,IADQ;AAElB9nF,OAAG,EAAE;AAFa,GADtB,EAKGlK,KALH,CAKS,yBALT,EAKoC;AAChCkK,OAAG,EAAE,gBAD2B;AAEhC+wD,SAAK,EAAE;AACL,qBAAe;AACbn1D,mBAAW,EAAE6qJ,aAAqBA;AAAC;AAC7C;AAFuB;AAGb/qJ,kBAAU,EAAE;AAHC;AADV,KAFyB;AAShCxB,WAAO,EAAE;AACPq9I,mBAAa,0BAAE,uBAAUp7I,WAAV,EAAuB6H,IAAvB,EAA6B;AAC1C,eAAOA,IAAI,CAAC1M,OAAL,CAAa,OAAb,IACH6E,WAAW,CAACjC,OAAZ,CA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mBAPU,EASb+5B,SATa,CASH,uBATG,EAUbc,WAVa,CAUD6qB,EAVC,EAWb1rB,EAXa,CAWV,IAXU,EAYbze,MAZa,CAYN,QAZM,CAAhB;AAcAxgB,aAAS,CAACuD,IAAV,CAAes7B,OAAf,EAAwBz8B,IAAxB,CAA6B,YAAY;AACvC4E,QAAE,CAACg+L,sBAAH,CAA0B9+L,OAA1B,CAAkC,UAAU05L,aAAV,EAAyB;AACzD0E,2BAAmB,CAAC1E,aAAD,CAAnB;AACD,OAFD;AAGA54L,QAAE,CAACg+L,sBAAH,GAA4B,EAA5B;AACD,KALD;AAMD;AAED;AACF;AACA;;;AACE,WAASG,sBAAT,GAAkC;AAChCn+L,MAAE,CAACg+L,sBAAH,GAA4B,EAA5B;AACD;AAED;AACF;AACA;;;AACE,WAASI,uBAAT,GAAmC;AACjCp+L,MAAE,CAACg+L,sBAAH,GAA4Bh+L,EAAE,CAACivE,cAAH,CAAkBnwE,IAA9C;AACD;AACF;AAED;AACA;AACA;AACA;;;AAEA,gEAAei/L,wBAAf,E;;;ACjZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;CAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AACA,SAASr9L,sBAAT,CACEkxD,cADF,EAEEnM;AAAgC;AAFlC,EAGE;AACA;AACAmM,gBAAc,CACXh7D,KADH,CACS,cADT,EACyB;AACrBgyF,YAAQ,EAAE,IADW;AAErB9nF,OAAG,EAAE;AAFgB,GADzB,EAKGlK,KALH,CAKS,6BALT,EAKwC;AACpCkK,OAAG,EAAE,iBAD+B;AAEpC+wD,SAAK,EAAE;AACL,qBAAe;AACbn1D,mBAAW,EAAE6sH,cAAcA;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yB;;;;;;;;ACnSA,yB;;;;;;;ACAA,e","file":"app-1731a3bc1dfe79c6084e.js","sourceRoot":""} \ No newline at end of file diff --git a/public/app-726fd36768994ef7fd4e.js b/public/app-726fd36768994ef7fd4e.js deleted file mode 100644 index 12cc3ae..0000000 --- a/public/app-726fd36768994ef7fd4e.js +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * @license - * ************************************************************************* - * * * - * * xCALLY Motion - The Omnichannel Contact Center * - * * Copyright (c) Xenialab s.r.l. All Rights Reserved * - * * * - * ************************************************************************* - * * * - * * Email: info@xcally.com * - * * Website: https://www.xcally.com * - * * * - * ************************************************************************* - * * * - * * The SOFTWARE PRODUCT is protected by copyright laws and international * - * * copyright treaties, as well as other intellectual property laws and * - * * treaties. The SOFTWARE PRODUCT is licensed, not sold. * - * * * - * ************************************************************************* - */ -var a0_0x128a=['getSmsAccounts','src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues-[chunkhash].html','saveQueueCampaign','Contact\x20properly\x20saved!','apps.chat.chatQueues','ProjectId','createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId','createOrEditReport','cdr','app.openchannel.openchannelQueues','Radio\x20Buttons','MOTIONDIALER.NEW_IVRCAMPAIGN','/trunks','Notification','rgb(','app.voice.outboundroutes.edit','Comic\x20Sans\x20MS','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshsalesConfiguration?','foreignKey','IS_LESS_THAN_OR_EQUAL_TO','predictiveIntervalAnsweredCalls','SmsAccount\x20properly\x20deleted!','Metrics','Queue\x20properly\x20updated!','cm/lists/:id/dispositions','openchannelCurrentCapacity','EditInternalAppintervalDialogController','deleteSelectedDynamics365Accounts','ms-MY','voice/mails/messages/:id','Delete\x20AllCondition','Company\x20updated!','api.campaign.update','deviceId','$ariaProvider','delete\x20project','putOtherCallsOnHold\x20->\x20session','src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.html/zohoAccounts-[chunkhash].html','addMembers','whatsapp/reports/queue/describe','delete\x20Odbcs','propertiesDefault','jpjapanesemale','agentForm','mouseOver','isValueByCondition','Delete\x20Contact','CreateOrEditOdbcDialogController','onUpdateSmsInteraction','$startsWith','$apply','hue-1','Galician','\x27cm_hopper\x27','getMailQueues','Marathi\x20(India)','TelephonesVoiceRealtimeController\x20as\x20vm','createOrEditFaxQueue','$viewContentAnimationEnded','rpc/openchannel/queues','DashboardItem\x20properly\x20created','mail_queue_waiting_interaction:save','refreshContacts','Smtp\x20updated!','goto','Delete\x20ServicenowConfiguration','stepTitleTranslate','Europe/Amsterdam','warnPalette','TelephoneController','src/js/modules/main/apps/staff/views/users/users.html/users-[chunkhash].html','apps.tools.intervals','calleridname','EditoutboundApp','members/reports/:id','Lotte\x20(Dutch,\x20Female)','Delete\x20SalesforceAccount','SYSTEM:GETqueues','integrations/zendesk/configurations/:id/clone','whatsappAccountApps','verticalNavigation','pm2@get','Excel','INTEGRATIONS.NEW_FRESHDESKCONFIGURATION','List\x20properly\x20saved!','src/js/modules/main/apps/voice/views/internalroutes/edit/view.html/view-[chunkhash].html','ZendeskAccountController','Spanish\x20(El\x20Salvador)','api.contact.delete','icon-email','attachments/:id','ms-stepper-step','SYSTEM:GETPAUSES','integrations/dynamics365/accounts/:id/clone','newChatProactiveAction','Asia/Urumqi','FreshsalesAccount\x20properly\x20created','SETTINGS.EDIT_NETWORK','Linear','Report\x20properly\x20copied!','delete\x20chatCannedAnswers','openchannelInteraction:save','$setUntouched','api.mailAccount.save','voiceAgentReportColumns','Custom','SugarcrmAccount\x20properly\x20created','city','ChineseSimplified','integrations/sugarcrm/configurations/:id/subjects','Japanese\x20(Japan)','apps','The\x20network\x20will\x20be\x20deleted.','apps.settings.system','ZohoConfiguration\x20properly\x20saved!','deselectSalesforceAccounts','DASHBOARDS.AUGUST','\x270\x27','CompaniesController\x20as\x20vm','memberReport','descriptions','phoneBarEnableRecording','CreateOrEditReportFieldDialogController','TOOLS.NEW_CANNEDANSWER','deleteQueueCampaignHopperBlack','CONTACTMANAGER.MERGE_CONTACT','$window','src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns-[chunkhash].html','SYSTEM:UPDATEBLACKLIST','SalesforceAccount','stun','ispeechAsrModel','openchannel/applications/describe','api.user.delete','Bulgarian','deleteProjectSession','deleteSelectedProjects','noop','SYSTEM:UPDATEcontact','Ewa\x20(Polish,\x20Female)','ngFlow','CreateOrEditscreenRecordingDialogController','msBlink','integrations/zendesk/configurations/:id/tags','User\x20properly\x20deleted!','id,fullname,role','\x27ringing\x27','https','America/Atikokan','createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','yAxes','delete\x20Pauses','newPlugin','apps.chat.chatWebsites','timer-tick','ListsController','delete\x20template','webbar:transfer','delete\x20zohoConfiguration','sms/accounts/:id/dispositions','UserProfilesController','WhatsappQueueteamaddController','DASHBOARDS.VOICE','delete\x20GlobalCustomFields','Galician\x20(Spain)','Condition','app.sms.smsAccounts','src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal-[chunkhash].html','#ececee','getRemoteStreams','SMSACCOUNT:SEND','Azerbaijani','openchannel/reports/transfer/describe','Europe/Dublin','arraymonitor_format','\x27fr\x27','\x27inband\x27','Variable\x20properly\x20deleted!','xAxes','WhatsappQueue\x20properly\x20saved!','lastIn','AgentHomeChatController','src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html/saveAs-[chunkhash].html','$evalAsync','externalDial','app.mail.mailQueues.edit','deleteSelectedWhatsappAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?','desktopNotification','Tamil','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html','AgentsChatRealtimeController\x20as\x20vm','showFaxInteraction','Upload\x20completed','Delete\x20dispositions','isValidCondition','multipleChoices','GoSub','Mozilla','toggleFold','$sce','src/js/modules/main/apps/jscripty/views/projects/edit/view.html/view-[chunkhash].html','INTEGRATIONS.EDIT_FRESHSALESACCOUNT','app.settings','toggleAll','urlForward','src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search-[chunkhash].html','api.intSalesforceConfiguration.save','intZohoAccount@get','addNewSugarcrmAccount','newChatQueue','users/:id/fax/interactions','Enrique\x20(Spanish,\x20Castilian,\x20Male)','countglobal','updateInfo','jabraSession','America/Kentucky/Louisville','delete\x20SugarcrmAccounts','rpc/voice/queues/channels','MailCannedAnswer\x20properly\x20created','=template','confirm','getConfigurations','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts-[chunkhash].html','MailSubstatuses','Hindi','deleteMailAccountApp','Sms','US\x20West\x20(N.\x20California)','registerMainForm','UserProfilepermissionsmanageController','getContactsCsv','$stateChangeSuccess','EditMailAccountAppcloseDialogController','300','set','user_has_whatsapp_interactions:remove','chat/interactions/:id/abandon','getUsers','material.components.expansionPanels','\x27sms_interactions\x27','get_parent','integrations/sugarcrm/accounts/describe','webrtc','saveTeam','create','chatQueue','scrollWidth','The\x20field\x20will\x20be\x20deleted.','blue-fg','selectedSmsAccountSmsCannedAnswers','merge','/openchannelAccounts','ms-navigation-item','id,name,internal,fullname','America/Merida','sipcalluniqueid','openchannel/interactions/:id/tags','Tigrinya','integrations/sugarcrm/configurations/:id/descriptions','delete\x20applications','deleteSmsCannedAnswer','#c5c6cb','Delete\x20Telephone','Asia/Tbilisi','createOrEditMetric','deleteSelectedWhatsappQueues','deleteVoiceRecording','app.motiondialer.realtime.ivr_campaigns','src/js/modules/reset/reset.html/reset-[chunkhash].html','QueuesOpenchannelRealtimeController\x20as\x20vm','exportSelectedWhatsappAccountWhatsappCannedAnswers','\x27very\x27','webbar:hangup','newAction','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20queueCampaigns?','zendeskConfiguration','src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.html/dialog-[chunkhash].html','Chinese,\x20Mandarin\x20(Simplified,\x20Hong\x20Kong)','collapsing','isStepDisabled','src/js/modules/main/apps/voice/views/realtime/queues/view.html/view-[chunkhash].html','countdown','jscriptyProject','apps.integrations.sugarcrmAccounts','Asia/Jerusalem','salesforceAccount','onReferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','ringingVolume','createOrEditSalesforceConfiguration','OutboundRoute','CustomDashboard','subtract','selectedIvrCampaigns','green-300-fg\x20icon-checkbox-marked-circle','customFields','icon-google-earth','SmsRealtimeController','Skebby','sms/reports/transfer/:id/clone','Jan','api.trunk.update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatWebsites?','selectedSalesforceConfiguration','ms-nav-folded-open','\x27force_rport\x27','List\x20properly\x20created!','VoiceRecording','ltr','duplicateContact','Interaction','chat/internal/messages/describe','hasChildren','off','rpc/mail/queues','HH:mm','grey-fg\x20icon-minus-circle','intervals/:id/sub_intervals','MailCannedAnswer\x20properly\x20saved!','icon-script','getAgentGlobalStatus','Delete\x20ChatQueue','','\x20ASC)','createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','production','selectAllPlugins','whatsapp/accounts/:id/users','ukenglishfemale','SmsQueuesController','Delete\x20Dynamics365Account','app.integrations.vtigerAccounts.edit','Portuguese\x20(Portugal)','registered','src/js/modules/core/directives/ms-phonebar/prefix/dialog.html/dialog-[chunkhash].html','ngCookies','chatOfflineMessage@get','vm.voiceQueue.joinempty.length\x20===\x201\x20\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27no\x27','onMultiselectSelection','init','EditMailAccountAppintervalDialogController','isAgent','ChatCannedAnswer\x20properly\x20saved!','INTEGRATIONS.EDIT_VTIGERCONFIGURATION','voice/transfers/reports/:id','YYYY-MM-DDTHH:mm:ssZ','app.whatsapp.realtime.agents','Romanian\x20(Romania)','deleteSalesforceConfiguration','exportSelectedSmsAccountInteractions','deleteInboundRoute','warning','delete\x20hopperFinals','src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','smsQueueReport','Months','/mail','Owner','page','selectAllIntervals','getRegisteredPalettes','triggers','generals','voice_queue:save','newDeskAccount','OpenchannelAccountInteractionsController','ANALYTICS.METRICS','onMultiselectInit','local','selectedContexts','users/create_many','America/Adak','isArray','deleteSelectedTriggerAllConditions','$scope','servicenowAccounts','callStatuses','deleteMailAccountMailCannedAnswer','dashboard','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','ListCustomFieldsController','Salli','reply','The\x20company\x20will\x20be\x20deleted.','account','symbol','getIntervalIntervals','MsSearchBarController\x20as\x20vm','projectSessions','selectAllTags','/customizations','createOrEditMusicOnHold','angucomplete-alt:clearInput','TOOLS.NOTIFICATIONS.TRIGGER_CREATED_SUCCESS_TITLE','hopperIds','CreateOrEditSquareProjectDialogController','CustomDashboardcloneController','subStatuses','+04:00','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog-[chunkhash].html','selectedQueueCampaigns','column','Default','api.intServicenowAccount.save','QueueParamsMotionDialerRealtimeController','deleteReportField','spy','configuration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mohSound?','SYSTEM:GETopenchannelAccounts','Japanese','WHATSAPP.WHATSAPP','delete\x20FreshsalesAccounts','addAllCondition','Shona','deleteSelectedIvrCampaignHoppers','vm_rf.query.filter','Minutes','MohSound\x20deleted!','Dialer\x20Hopper\x20Logs','arraysendrpid','Agent\x20Report','The\x20mailAccount\x20will\x20be\x20deleted.','-04:00','createdAt,updatedAt,role,userProfileId,id,fullname,name,email,phone,mobile,userpic,password,description,autointernal,internal,transport,nat,allow,context,callgroup,pickupgroup,passwordResetAt,apiKey,videosupport,disabled,blocked','squareReportDetail','integrations/servicenow/configurations/describe','License\x20Request','eu-west-1','max-width:\x20500px;','AgentHomeDashboardBullController','reportRoute','userChatQueue:remove','matchType','sound.name','LoginController\x20as\x20vm','EditMailAccountAppagentDialogController','Would\x20you\x20like\x20to\x20save\x20your\x20survey?','propertiesList','fax/accounts/:id/dispositions','ddays','app.integrations.dynamics365Accounts','id,uniqueid,calleridnum,statedesc,starttime,disposition','getDynamics365Accounts','network','gotoMusicOnHolds','clearLockedItems','First','templateUrl','gotoOpenchannelQueues','exportSelectedUsers','onInternalMessageUpdate','plugins/:id','America/Argentina/Ushuaia','FaxAccountsController','triggers/:id/actions','reschedule','api.plugin.save','#ebf1fa','MailAccountagentaddController','users/:id/chat/interactions','saveInternalRouteApp','dispositions','TrunkcloneController','OdbcsController','Macro','/:id?tab','America/Kentucky/Monticello','blue-A700-fg','reportType','src/js/modules/main/apps/sms/views/realtime/queues/view.html/view-[chunkhash].html','red-300-fg\x20icon-phone-locked','Kimberly','open','sms_account_id','reset','app.help.about','src/js/modules/main/apps/chat/views/realtime/agents/view.html/view-[chunkhash].html','api.squareProject.save','src/js/modules/main/apps/mail/views/realtime/agents/view.html/view-[chunkhash].html','License','onSaveOutbound','CreateOrEditFreshsalesConfigurationDialogController','VtigerConfiguration\x20deleted!','Hopper\x20deleted!','getTemplates','AgentFullname','plainBody','\x20properly\x20redirect!','CustomField\x20properly\x20created','whatsapp/reports/queue/:id/clone','faxQueues','selectedInternalRouteApps','SYSTEM:GET_PAUSES','Bengali\x20(Bangladesh)','api.voiceRecording.delete','api.voiceRecording.save','sip','api.faxQueue.save','whatsappCapacity','Are\x20you\x20sure\x20want\x20to\x20run\x20the\x20schedule?','api.analyticMetric.delete','$broadcast','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20lists?','createMediaStreamSource','SYSTEM:GETdashboard','FaxAccounts','OpenchannelQueuesController\x20as\x20vm','Subject','downloadInteraction','app.mail.mailAccounts.edit','dashboards/:id/items','out','country','\x27s\x27','ms-theme-options','/schedules','import','select_node','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html','onSaveWhatsappQueue','faxTransferReport','api.squareOdbc.delete','selectedVariables','motion.cookieAlertHide:','emojioneArea','Asia/Irkutsk','screenRecording\x20properly\x20created','$httpProvider','isUndefined','api.intFreshdeskConfiguration.update','sessionsgoto','deleteSquareRecording','CreateOrEditChatWebsiteDialogController','selectAllProjects','integrations/zendesk/fields/:id/clone','CreateOrEditVtigerAccountItemDialogController','/updates','SYSTEM:GETvoiceMails','delete\x20VoiceRecordings','SETTINGS.NEW_NETWORK','Atlantic/Canary','app.integrations.zohoAccounts','Openchannel\x20Queues','SMS.EDIT_SMSACCOUNT','users/:id/whatsapp_accounts','createdAt,updatedAt,id,type,value,username,password','NoSuchNumber','Delete\x20Hopper','EditSmsAccountApptagDialogController','days','/cannedAnswers','US\x20Spanish\x20Male','SugarcrmAccount\x20updated!','Netscape','newChatWebsite','globalStatusFilter','mon','showIncompleteSubmitButton','EditChatWebsiteAppgotopDialogController','Content\x20Only','\x27thumb\x27','uploading','startDate','Europe/Gibraltar','ngAnimate','TeamsController','ngclipboard','setSinkId','Session\x20properly\x20created.','D\x20MMM\x20YYYY','hopperFinal','none','selectAllNetworks','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sugarcrmAccounts?','Voice\x20Recordings','isPause','Atlantic/Faroe','whatsappQueue@get','api.schedule.delete','demo','agentNotify','MsWidgetEngineMultibarChartController','motion2.home:','icon-video','paginatedContacts','FreshdeskAccount\x20properly\x20tested','jscriptySessions','Twi','alaw','cm/companies/describe','dashboardItems','filename','SETTINGS.SMTP','addApplications','sms/interactions/:id','ar-LB','call\x20with\x20session\x20Id\x20','../../../../../../../assets/images/avatars/customer.png','whatsapp/applications/describe','api.telephone.save','system/process/:pid/kill','\x20has\x20been\x20cloned!','src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','The\x20outboundroute\x20will\x20be\x20deleted.','between','fields','api.cmCompany.save','saveOutboundRouteApp','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_MESSAGE','selectedFreshsalesAccounts','OutboundRoute\x20properly\x20created','createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','$onInit','servicenowConfiguration','integrations/zoho/accounts/:id','#9ab8e5','smsQueues','getDate','GlobalCustomField','Filipino\x20(Philippines)','$get','/whatsapp','deleteVoiceQueue','angularMaterialFormBuilder','app.tools.intervals','motion.selectedTheme','\x27report_square_details\x27','onAutocreateSelection','Openchannel\x20Account','CreateOrEditVtigerConfigurationDialogController','arraytech','delete\x20sessions','editCompany','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','api','speakerVolume','data:text/json;charset=utf-8,','integration','app.tools.trunks.edit','users/:id/mail/interactions','delete\x20chatQueue','handleKeydown','label','src/js/modules/main/apps/contactmanager/views/companies/edit/view.html/view-[chunkhash].html','main','app.sms','Version','listOrder','scope','createdAt,updatedAt,id,name,service,data2,data1','DASHBOARDS.DECEMBER','getTracks','api.condition.save','delete\x20report','selectedWhatsappQueues','screen/recordings/:id/download','ContactsController\x20as\x20vm','getMessagesAlignment','ZohoAccount\x20properly\x20deleted!','openchannel','pendingCondition','Rounded','Phonebar','\x20and\x20its\x20subnode\x20will\x20be\x20deleted.','online','api.userProfile.clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?','delete\x20QueueCampaigns','Mongolian','exportSelectedIvrCampaignHopperFinals','src/js/modules/main/apps/callysquare/views/projects/create/dialog.html/dialog-[chunkhash].html','selectColor','api.squareRecording.delete','Legend','selectedHues','interface','\x27strict\x27','saveFreshdeskAccount','SugarcrmAccount','newVoicemail','delete\x20smsCannedAnswers','getVoiceQueuesPreview','\x20evt,\x20data','deletechanSpy','arraymaxrate','urlParse','Dynamics365AccountController\x20as\x20vm','EditOpenchannelAccountAppcloseDialogController','EditInboundAppplaybackDialogController','canDelete','voiceMails','openInteraction','DASHBOARDS.SAT','\x272\x27','showWebBar','trigger:jscripty','Left\x20Join','openchannelQueue:update','video','SYSTEM:DELETEdisposition','Antarctica/Palmer','createOrEditInterval','saveVtigerConfiguration','\x27report_member\x27','createOrEditSchedule','xmd-cdrtype','api/attachments','apps.whatsapp.whatsappAccounts','openchannelStatus','CALLYSQUARE.EDIT_ODBC','Montenegrin','editWhatsappAccountApp','unpause','SYSTEM:GET_TRUNKS','deleteVariable','Vertical\x20Navigation','users/:id/queues_rt','SYSTEM:DESCRIBE_CM_CONTACT','msMasonryItem','FreshdeskAccount\x20properly\x20deleted!','deselectTeams','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE','saveZohoConfiguration','MODULE_NOT_FOUND','\x27de\x27','toasty','Spanish\x20(Guatemala)','very','MOTIONDIALER.ALL_TEAMS','queryHistory','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html/dialog-[chunkhash].html','uninstallplugin','api.intServicenowConfiguration.update','analytics/extracted_reports/:id/clone','Metric','selectAll','deselectProjects','delete\x20salesforceAccount','cm/contacts/upload/:id','Maja\x20(Polish,\x20Female)','VOICE.EDIT_OUTBOUNDROUTE','cm/contacts/:id','ListDispositionsController','InboundRoutes','users/:id/mail_accounts','createOrEditTrunk','toggleMsNavigationFolded','Never','YYYY-MM-DD','\x27w\x27','Antarctica/Syowa','enqueue','$valid','ServicenowConfiguration\x20properly\x20saved!','dateFilterLocalizationFactory','some','monthDayTo','analytics/default_reports/:id/preview','saveWhatsappAccountApp','smsQueue:remove','+03:00','voice/calls/reports/:id','CreateOrEditSugarcrmAccountItemDialogController','app.dashboards.general.voice','draggable','Mail','api.intZendeskAccount.save','$stateProvider','GET_SMS_ACCOUNT','ZendeskAccount\x20properly\x20deleted!','spywhatsappInteraction','Brazilian','restart','Context\x20properly\x20saved!','VoicePrefixesController','useSanitizeValueStrategy','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27invalid\x27','createMediaStreamDestination','GlobalCustomFieldsController\x20as\x20vm','api.cmList.save','arraysetqueuevar','src/js/modules/main/apps/analytics/views/reports/run/dialog.html/dialog-[chunkhash].html','Turkish\x20(Turkey)','QueuesChatRealtimeController\x20as\x20vm','BookedProgressive','selectAllMailAccounts','getResponseSheetHeaders','deleteSelectedIntervals','deleteMohSound','NO\x20AUTH','firstLevel','Templates','Atlantic/Madeira','\x27more\x27','Asia\x20Pacific\x20(Singapore)','arrayrandom_periodic_announce','SUCCESS','backgroundPalette','every','saveLists','app.integrations','CreateOrEditDeskAccountDialogController','Options','createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','Delete\x20InboundRoute','America/Guayaquil','mail/messages/:id/clone','\x27outlook365\x27','SYSTEM:GETcontexts','America/Indiana/Vincennes','addSound','status','addNewChatCannedAnswer','SugarcrmAccountController\x20as\x20vm','\x27mail_interactions\x27','downloadChatInteraction','SYSTEM:GET_TREE_REPORT_STRUCTURE','scheduledat','originated','openchannelMessage:update','STAFF.','exportSelectedTrunks','interval_id','width:\x20265px;','app.dashboards.general.openchannel','VoiceQueuesController','Spanish\x20(Chile)','EditFaxAccountAppcloseDialogController','integrations/salesforce/configurations/:id/subjects','deleteUserProfile','Your\x20survey\x20session\x20has\x20been\x20properly\x20saved!','Tags\x20set!','jscripty/questions/reports/describe','Delete\x20FreshdeskConfiguration','integrations/dynamics365/configurations/:id/fields','SYSTEM:DELETEvoiceMail','removeCondition','SYSTEM:DELETEvoiceContext','PREVIEW','Africa/Nairobi','smsInteraction:update','The\x20','integrations/dynamics365/fields/:id','newInternalRoute','msQuickFilter','currentNode','ComposeWhatsappInteractionDialogController','zendeskAccounts','America/Indiana/Knox','DASHBOARDS.UNREAD','user_has_sms_interactions:save','cardTemplateLoaded','The\x20queueCampaign\x20will\x20be\x20deleted.','onInternalMessageSave','saveDeskAccount','SYSTEM:GETjscriptyProject','saveFreshsalesAccount','isSameOrigin','checkRange','predictiveIntervalAvgTalktime','SYSTEM:GETintFreshsalesAccount','zoho','.result','omniChannels','CreateOrEditMohSoundDialogController','whatsapp/accounts/:id/notify','HANGUPCAUSE_16','/freshdeskAccounts','OmniWeb','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshsalesAccounts?','tTxX','src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call-[chunkhash].html','delete\x20offlineMessage','Pacific/Tahiti','getCompanies','integrations/zendesk/configurations/:id/descriptions','msMaterialColorPicker','CreateOrEditZohoAccountItemDialogController','delete\x20voicePrefixs','timer-stop','DASHBOARDS.CONTACTS','intDeskAccount','chat/groups/:id/unread','DASHBOARDS.THIS_MONTH','hasSpeakers','vm.globalCustomField.type','UpdatesController','cannedAnswers','TelephonesController','api.chatWebsite.update','Europe/Tallinn','partial','JscriptyProjectController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?','Process\x20stopped!','extravar','account_id','\x27SIP/{{multipleUsers.name}}\x27','lastName','api.sound.update','deleteFieldConfirm','globalTags','showResetButton','://','Marlene\x20(German,\x20Female)','vm.password','delete\x20Templates','saveAction','UserFaxQueue','CustomizationlogoController','+10:30','CreateOrEditAllConditionDialogController','RequestLicenseDialogController','onaddstream','app.integrations.dynamics365Accounts.edit','AgentchangepasswordController','Spanish\x20(Nicaragua)','UserSmsDashboardGeneralController\x20as\x20vm','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27inuse\x27','America/Guatemala','apps.integrations.zendeskAccounts','admin,user','class','Refer\x20Attended','app.openchannel.realtime','intServicenowField','openedAt','api.intVtigerAccount.save','NONE','view','getMetricName','saveSound','app.voice.realtime.outbound_calls','/settings','api.project.delete','blacklistadddialog','The\x20openchannelCannedAnswer\x20will\x20be\x20deleted.','Spanish\x20(Puerto\x20Rico)','Metric\x20properly\x20created','mail/accounts/:id/in_servers','squareProject','SYSTEM:GET_TAGS','api.item.delete','0.54','analyticTreeReport','Asia/Yekaterinburg','fax/accounts/updateaccountapplications','\x27onlyIfOpen\x27','app.mail.realtime.accounts','delete\x20ivrCampaign','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html/dialog-[chunkhash].html','whatsapp-interaction','SugarcrmAccounts','faxQueue:update','','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20deskAccounts?','availableStates','\x27report_jscripty_questions\x27','Dispositions','localStorage','tag','api_key','EditWhatsappAccountAppcloseDialogController','Delete\x20Interval','EditOpenchannelAccountApptagDialogController','CreateOrEditExtractedReportDialogController','telephones','getHopperHistories','contrast4','msNavigation::collapse','checkbox','newUser','$document','MsNavController','xmd-contactid','FaxAccount\x20properly\x20created','TemplatesController\x20as\x20vm','arrayecm','info','openchannel/accounts/:id/dispositions','showConfirm','CreateOrEditInboundRouteDialogController','newVoiceQueue','\x20DESC','FORGOTPASSWORD.LINK_SENT','smsAccountSmsCannedAnswers','toggleCollapsed','English\x20(United\x20Kingdom)','saveMailSubstatus','ruri','api.whatsapp.account','deleteSelectedOpenchannelAccountApps','CreateOrEditChatGroupDialogController','SYSTEM:GET_INTERVALS','HOUR','ChatQueuesController\x20as\x20vm','SYSTEM:GETfaxAccounts','onUpdateWhatsappInteraction','selectedDispositions','DASHBOARDS.SMS','ar-XA','OpenchannelAccountController\x20as\x20vm','chat/applications/describe','API:NEW_VARIABLE','delete\x20Schedules','SYSTEM:DELETEhopper','deleteTriggerAnyCondition','faxQueueReport','QueueCampaigns','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html','mail/interactions/:id/messages','IAX','TOOLBAR.NOTIFICATION_TITLE','CONTACTMANAGER.EDIT_COMPANY','values','contact','apps.contactmanager.companies','newFreshdeskAccount','getFaxAccountLabel','European\x20Italian\x20Female','gotoif','\x27gsm\x27','Arabic\x20(State\x20of\x20Palestine)','gotoFreshdeskAccounts','South\x20America\x20(São\x20Paulo)','app.staff','notification:send','userMailQueue:save','getByInteraction','selectedQueueCampaignHopperHistories','openchannelQueueReport','delete\x20customDashboard','deleteSelectedMailAccountMailCannedAnswers','IntervalController\x20as\x20vm','resume','tags/:id/clone','#5c616f','/analytics','setActiveTheme','ssml','Tags\x20has\x20been\x20set!','mail/queues/:id/users','CreateOrEditMailAccountDialogController','VoiceQueueteamaddController','sql','disposedAt','DashboardCustomController\x20as\x20vm','src/js/modules/core/directives/ms-navigation/templates/vertical.html/vertical-[chunkhash].html','describe','CreateOrEditHopperCampaignIdDialogController','\x27cm_hopper_history\x27','Freshdesk','intervalIntervals','mail/queues/:id/teams','MAIL.EDIT_MAILQUEUE','removeJoin','ChatQueueteamaddController','NoAnswer','addFields','getSmsAccountLabel','cm/hopper_history/:id','QueueCampaignHopperHistoriesController','amazonlex','Node\x20has\x20been\x20updated!','src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog-[chunkhash].html','SYSTEM:ADDTAGS','uniqueid,calleridnum,statedesc,starttime,disposition,secondDisposition,thirdDisposition','getFunctions','Fax\x20Report\x20Queue','mailSubtatuses','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html','ZohoAccount\x20updated!','runsentimentSelectedVoiceRecordings','api.cloudProvider.update','TOOLS.EDIT_CANNEDANSWER','webbar:hold','onActionInit','INTEGRATIONS.EDIT_SERVICENOWACCOUNT','apps.motiondialer.queueCampaigns','zu-ZA','squareOdbc','api.intVtigerConfiguration.delete','TOOLS.NEW_PAUSE','deleteCustomDashboard','voiceMail@get','failed','TrunksController','src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','changeSidebarTab','holdHook\x20->\x20payload','CALLYSQUARE.SQUARERECORDINGS','Europe/Lisbon','DELETE','intFreshsalesField','OpenchannelAccount','deleteSelectedDescriptions','refer\x20->\x20session','password','icon-account-multiple','hangupHook\x20->\x20sessionToHangup','dialPredictiveInterval','integrations/sugarcrm/configurations/describe','Sundanese\x20(Indonesia)','INTEGRATIONS.INTEGRATIONS','customizations','addNewCompany','campaigns/:id/hoppers','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','addNewCannedAnswer','onclick','confirmed','use','addEventListener','newSquareRecording','CreateOrEditCustomizationDialogController','callNumber','isCustomField','Somali','test','getOpenchannelAccountLabel','Call_Status','No\x20corresponding\x20process\x20found','auth/local/reset/:token','rpcMailQueues','msMasonry','QueueCallsVoiceRealtimeController','innerHeight','whatsapp/interactions/describe','integrations/vtiger/configurations/:id/descriptions','US\x20West\x20(Oregon)','hoursS','moveConfirm','onReply','selectedFreshdeskAccounts','saveOpenchannelAccount','chat/interactions/:id/attachment_download','Websites','SalesforceConfiguration\x20properly\x20created','prop','dashboard:remove','gotoUsers','agent\x20updated!','/api/transfer?number=','getOpenchannelQueues','textContent','\x20and\x20','default','ap-northeast-2','\x27localnet\x27','api.chatProactiveAction.save','deleteSmsAccount','exportSelectedChatWebsiteChatCannedAnswers','Chinese\x20(Traditional)','uisref','saveServicenowAccount','ChatWebsiteofflineFormController','ms-target-wrap','SmsQueuesController\x20as\x20vm','Field','apps.integrations.zohoAccounts','Email\x20','User\x20properly\x20saved!','global','Filiz\x20(Turkish,\x20Female)','\x20has\x20been\x20installed!','next','America/Creston','src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html/dialog-[chunkhash].html','ANALYTICS.REMOVE','\x27wav\x27','Classic+','smsPause','plugin:remove','ispeechTtsLanguage','jscripty/answers/reports/describe','cmList@get','click','Edited','phoneBarRemoteControl','integrations/freshdesk/fields/:id/clone','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html/view-[chunkhash].html','isAfter','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27invalid\x27','CSV','app/main/apps/staff','attrs','chat/interactions/:id/vidaoo','src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html/dialog-[chunkhash].html','HANGUPCAUSE_18','icon-chart-line','contactFields','delete\x20voicePrefix','multiBarChart','-06:00','app.chat.chatQueues','joinTables','getJscriptySessions','searchFields','Format\x20Error','vm.queryFinal.filter','CreateOrEditQueueCampaignDialogController','saveWhatsappQueue','whatsappMessage:save','es-GT','SYSTEM:DELETEintZohoAccount','VOICE.EDIT_','drop','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html','QueueParamsVoiceRealtimeController','Basque\x20(Spain)','Url','EditSmsAccountApp','toggleDialpad','STAFF.PERMISSIONS_SELECTED_RESOURCES','Asia/Karachi','addNote','whatsappQueue','selectedFields','enableUncompleteSave','Nicole','cloneUserProfile','app.tools.customDashboards.edit','getFullYear','gdpr','src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation-[chunkhash].html','MailAccountsRealtimeController\x20as\x20vm','MarketplacePluginsController','userProfile@getResources','WhatsappQueueController\x20as\x20vm','deleteSelectedReports','setConditionStatus','whatsapp/interactions/:id','createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey','CHAT.EDIT_','#5688d3','id,name,strategy,type','Please\x20use\x20only\x20json\x20files','STAFF.SELECTED_QUEUES_','centered','Trunk','whatsapp/applications/:id/clone','WHATSAPP.NEW_WHATSAPPACCOUNT','api.variable.delete','integrations/servicenow/accounts/:id','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zohoConfiguration?','@pid','createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','HANGUPCAUSE_21','SYSTEM:DELETEvariable','render','Chinese\x20Female','showNotification','SYSTEM:GET_TEAMS','setNavigationScope','#interaction-content','openchannelApplication','\x27report_jscripty_answers\x27','inbound','color','ServicenowConfiguration\x20properly\x20deleted!','chanSpies','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceQueues?','voiceQueuesLog/:id/clone','users/:id/openchannel_accounts','voiceAccounts','SMS.SMSQUEUES','0\x200\x20*\x20*\x20*','max','mailStatus','ChatRealtimeController\x20as\x20vm','PowerDialing','errors','api.intZendeskConfiguration.update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20musiconholds?','deleteChatWebsite','List\x20name','current','deleteSelectedMailQueues','selectedOpenchannelQueues','integrations/zendesk/accounts/:id/clone','GET_SOUND','api.mail.account','Afrikaans','FaxQueueController','voice_queue_channel:remove','voiceCallReport','addNewDeskAccount','Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?','queues','Message','MsWidgetController','SquareProjectId','Variables','Africa/Cairo','America/Costa_Rica','ComposeMailInteractionDialogController','=msNavigationHorizontalNode','contactName','api.fax.account','SmsCannedAnswer\x20properly\x20created','Integration_Tab','api.chatQueue.update','Error\x20creating\x20list!','microphoneMute','Tag','src/js/modules/main/apps/analytics/views/reports/edit/view.html/view-[chunkhash].html','prefixes','#275498','smsMessage:save','SalesforceConfiguration\x20deleted!','targetScope','MailQueueagentaddController','CreateOrEditTelephoneDialogController','ckEditorInstance','onUpdate','The\x20whatsappAccount\x20will\x20be\x20deleted.','realtime','pl-PL','app.callysquare.odbcs','angucomplete-alt:changeInput','TOOLBAR.CHINESETRADITIONAL','EditInternalAppexternaldialDialogController','CreateOrEditWhatsappQueueDialogController','outboundroutes','MailAccountActionsController','app/main/apps/whatsapp','SYSTEM:GET','createOrEditMotionDialerQueue','createOrEditMusicOnHoldMohSound','FreshsalesAccountController','LocalNET','mail/messages/describe','setConfig','teams','deselectTags','api.faxAccount.save','integrations/zoho/accounts/:id/configurations','content-length','IvrCampaignsController','src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html/clone-[chunkhash].html','vendor','The\x20context\x20will\x20be\x20deleted.','fetch','time','Infobip','onRemoveOpenchannelQueue','Substatus','vm.agent.showWebBar\x20==\x201','Macedonian','callerID','id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','On\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}},\x20{{\x20from\x20}}\x20wrote:','fax/applications/describe','createOrEditListCustomField','cmn-CN','router','VoiceQueue\x20properly\x20deleted!','GlobalCustomField\x20properly\x20saved!','Audio_Files','chat/websites/:id/system_avatar','ta-LK','createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','Agent','macro','tags','api.intVtigerConfiguration.update','reduce','license/:id','Connectel','Tamil\x20(India)','blue-grey-A200-bg','msDatepickerFixConfig','api.intZendeskAccount.update','apps.home.plugin_','selectedOutboundRouteApps','HANGUPCAUSE_38','TIMEOUT','America/Indiana/Tell_City','createElement','app/main/apps/jscripty','currentStepNumber','onSaveUserChatQueue','green-A700-fg','CreateOrEditUserProfileDialogController','Failed\x20to\x20delete\x20the\x20attached\x20pm2\x20process','icon-whatsapp','\x27no\x27','English\x20(Ireland)','selectedOpenchannelAccountInteractions','The\x20mohSound\x20will\x20be\x20deleted.','firstName,lastName,mobile','app.voice.musiconholds','ComposeSmsInteractionDialogController','api.squareProject.delete','userForm','COMMA','You\x20are\x20selecting\x20the\x20list\x20number:\x20','delete\x20chatProactiveAction','chat/reports/queue/:id','SYSTEM:GET_SOUNDS','integrations/freshdesk/configurations/:id/descriptions','mwForm.pageEvents.pageCurrentChanged','deleteInboundRouteApp','EditChatWebsiteAppcloseDialogController','listadddialog','body','agentOnly','id,fullname,userpic,internal','The\x20list\x20will\x20be\x20deleted.','createdAt,updatedAt,id,appdata,type,exten,context,description','B:\x20Instead\x20of\x20whispering\x20on\x20a\x20single\x20channel\x20barge\x20in\x20on\x20both\x20channels\x20involved\x20in\x20the\x20call.','sms/queues/:id/users','apiName','userLists','configurations','createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','proactive','targetChanged','voice_outbound_channel:save','/dashboards','$emit','Asia/Pyongyang','deleteFreshdeskConfiguration','sortableOptions','requestFailed','removeListener','onUserCalled','api.voiceMusicOnHold.save','cm/lists/:id/contacts','OpenchannelQueueId','SYSTEM:DESCRIBE','CALLYSQUARE.ALL_USERS','userProfile@get','+05:00','NOBEEP','.ms-nav-button','pause@get','cm/hopper_final/voice/campaign/moveContacts/:id','limitObjectFromTo','exportSelectedCannedAnswers','UserProfiles','Fields\x20saved!','loadLastMessage','campaigntype','stoppedTime','MailQueuesController','newFaxAccount','msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)','This\x20Week','api.analyticFieldReport.update','ChatQueue\x20properly\x20deleted!','joinAt','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html','controls','currentPage','DEFAULT\x20PAUSE','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html/dialog-[chunkhash].html','rows','delete\x20deskConfiguration','query','api.cannedAnswer.update','msNav::forceCollapse','MAIL.MAIL','squareRecordings','DeskAccount\x20updated!','FreshdeskAccountController\x20as\x20vm','CreateOrEditFreshsalesAccountItemDialogController','Pacific/Pitcairn','wait','app.voice.contexts','mail/reports/transfer/:id','unreadGroupMessages','Camino','added','apps.dashboards.general','savescreenRecording','OpenchannelAccount\x20properly\x20deleted!','You\x20can\x27t\x20reply\x20or\x20send\x20an\x20email.\x20Please\x20contact\x20the\x20administrator!','Customizations','\x27report_fax_queue\x27','saveFaxQueue','teams/:id','dashboarditemForm','Mac','saveChatWebsite','SmsQueue','replaceTrack','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','integrations/freshdesk/configurations/describe','deleteCloudProvider','voiceQueueReport:update','Customer\x20Ip','addVoiceQueuesChannels','createOrEditTemplate','deselectContexts','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html/dialog-[chunkhash].html','DASHBOARDS.ENABLED','app.staff.userProfiles.edit','\x27number\x27','wrapup','app.chat.realtime','DASHBOARDS.JUNE','put','street','Jan\x20(Polish,\x20Male)','msVerticalStepper','FreshsalesConfiguration\x20deleted!','MailAccounts','apps.plugins.plugin_','helperClasses','ariaLabel','EditChatWebsiteAppgotoifDialogController','ServicenowAccount\x20properly\x20tested','Marketplace','CreateOrEditFreshdeskAccountDialogController','src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html/internalroutes-[chunkhash].html','delete\x20vtigerConfiguration','red-A700-bg','extraHeaders','$between','selectedInternalRoutes','HANGUPCAUSE_27','IS_BETWEEN','/snippet?token=','VOICE.INTERNALROUTES','whatsapp.whatsappAccounts','extend','endTimeAttr','Voicemails','huhungarianfemale','zendeskConfigurations','America/Goose_Bay','InternalRouteActionsController','saveAllCondition','dashboards/items/describe','GlobalCustomFields','deleteSelectedCompanies','getVoiceQueuesChannelRedirect','translate','pcConfig','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE','chanSpy\x20properly\x20deleted!','accept','QuickPanelController\x20as\x20vm','isFormValid','+02:00','prev','system','duplicates','Europe/Uzhgorod','GET_ODBC','hangupHook\x20->\x20payload','UserWhatsappAccount','abandonedCalls','SmsAccount\x20updated!','TriggersController\x20as\x20vm','nodownload','/screenRecordings','src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll-[chunkhash].html','deselectMailQueues','src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.html/dialog-[chunkhash].html','Finnish','resultsLoading','deleteFaxAccountInteraction','SYSTEM:GET_FIELDS','gotoFirstStep','operator','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27strict\x27','Smtp\x20properly\x20created','mailAccountApps','verticalNavigationFullwidthToolbar2','field','blue-A700','integrations/salesforce/accounts/:id/fields','CreateOrEditMailSubstatusDialogController','SYSTEM:DELETEintZendeskAccount','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelCannedAnswers?','apps.callysquare','mail/queues/:id/members','es-EC','whatsappAccount@get','mwFormResponseUtils','Delete\x20chanSpy','EditInboundApp','fonts','exportSelectedIvrCampaignHopperBlacks','chatInteraction@get','apps.tools.dispositions','getContactLabel','eurportuguesefemale','QueueCampaign\x20properly\x20deleted!','CannedAnswersController\x20as\x20vm','chatCurrentCapacity','screen/recordings/describe','addNewGlobalCustomField','EditSmsAccountAppgotopDialogController','cloudProvider','campaign@get','getMusicOnHoldMohSounds','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20schedules?','.results','whatsapp/messages/:id/accept','saveVariable','deselectSquareRecordings','series','\x27ru\x27','FaxQueues','\x27report_queue\x27','DASHBOARDS.SELECT_STATUS','html-area','The\x20smsCannedAnswer\x20will\x20be\x20deleted.','#2d323e','MAX\x20(','fromUrl','previewReport','\x20succeded!','API:ERROR','\x27unavailable\x27','isMyAccount','listFields','force_rport','g723','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?','app/main/apps/chat','SugarcrmAccount\x20properly\x20tested','whatsappInteraction:update','Content\x20with\x20Toolbar','src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html/mailSubtatuses-[chunkhash].html','colors','OpenchannelAccountId','htmlToPlaintext','MailAccount\x20properly\x20created','Contact\x20updated!','createOrEditTag','Atlantic/Cape_Verde','SYSTEM:GETsounds','closeTab','checkboxes','app/core/directives/ms-phonebar/sounds/dialpad/','SquareRecordingsController','CreateOrEditVoiceQueueDialogController','MsNavigationHorizontalNodeController','uri','UserchangepasswordController','TOOLS.TEMPLATES','MAIL.SELECTED_AGENTS','createOrEditChatQueue','AVG\x20(','settings/:id/logo_login','CreateOrEditchanSpyDialogController','absorbEvent','Pacific/Bougainville','setThemesList','\x0a','ChangePasswordController','network@get','FaxRealtimeController\x20as\x20vm','rpc@getFaxQueues','SYSTEM:GETintDynamics365Account','onRemoveUserOpenchannelQueue','SYSTEM:GETmailAccount','ico','OpenchannelQueuesController','ForgotPasswordController','reserved','tables','QueueCampaignController','\x27sv\x27','survey','+08:00','apiKey','app.fax.realtime.trunks','^msWidget','markAsUnread','gotoWhatsappQueues','Invalid\x20transfer','getQueueCampaignHopperFinals','newFreshsalesConfiguration','deselectQueueCampaigns','\x27openchannel_accounts\x27','hmac','deleteVtigerConfiguration','vtigerAccount','SYSTEM:GETvoiceMusicOnHold','api.dashboardItem.update','whatsapp/accounts/:id/dispositions','Calibri,\x20Verdana,\x20Geneva,\x20sans-serif','openProject','mail/messages/:id/download','Europe/Vilnius','app.plugins','Guarani','INTEGRATIONS.EDIT_','whatsappAccountApp','loop','thirdDisposition','VoicemailMessagesController','MailInteractionId','/sounds','monthName','twilio','placeholder','deleteDynamics365Configuration','userProfile/sections/:id','ar-DZ','changeDisplayCannedAnswerInputValue','getOutboundRouteApps','MOTIONDIALER.SELECTED_LISTS','api.setting.update','dialogflow','14400','osVersion','Tags','\x27TI\x27','Dynamics365Configuration\x20properly\x20created','/attachment_download?attachId=','openchannel/reports/queue/:id/clone','toString','deleteQueueCampaign','analytics/tree_reports/:id','Pacific/Auckland','whatsapp_queue:save','setSelectedDate','aws_bot_name','Interval\x20properly\x20saved!','voiceContext','FaxInteractionId','unreadTotalGroupMessages','newDashboardItem','api.voiceQueue.delete','app.staff.users','delete\x20WhatsappAccounts','getUnread','ProjectSessionsController','Delete\x20Context','createdAt,updatedAt,id,name','','createdAt,updatedAt,id,name,strategy,timeout,description','userFaxQueue:save','QueueCampaign\x20properly\x20cloned','scriptPath','Maori','microphoneId','hasPermission','row','Hangup_Cause','Nepali','getHours','api.squareOdbc.update','$rootScope','lastMessage','DASHBOARDS.SELECT_TAG','selectAllTelephones','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20messages?','onRemoveFaxQueueChannel','CreateOrEditReportDialogController','German','app.openchannel','

','analytics/custom_reports/:id/run','invite','TOOLS.CLONE_CUSTOMDASHBOARD','openchannel/accounts/:id/send','INTEGRATIONS.NEW_SALESFORCECONFIGURATION','SmsInteractionId','newDynamics365Account','FaxQueueId','right_join','gotoTrunks','TOOLS.NEW_SCHEDULE','Horizontal\x20Navigation','msApi::resolveStart','vtigerAccounts','getAiTools','CreateOrEditMailCannedAnswerDialogController','serviceWorker','AgentController\x20as\x20vm','MAIL.NEW_MAILCANNEDANSWER','gotoIvrCampaigns','uninstall\x20plugin','delay','\x27right\x27','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27inuse\x27','blue-grey','selectedTelephones','type','motion.customTheme','Mizuki','Serbian\x20(Serbia)','refresh','addNewZendeskAccount','Updates','Dialer\x20Hopper\x20Processing','googleTtsLanguage','XCALLY-MOTION-ANSWER=1','openchannel/applications/:id','saveOpenchannelQueue','onRemoveMember','krkoreanmale','deleteSelectedChanSpies','deselectInternalRoutes','Are\x20you\x20sure\x20want\x20to\x20uninstall\x20the\x20plugin?','America/Cayman','smsInteraction','msPhonebar','voice/chanspy/describe','app.contactmanager.lists','$mdColorPalette','UserController\x20as\x20vm','openchannel/accounts/:id/canned_answers','Pause\x20properly\x20deleted!','CHAT.CHATQUEUES','app.motiondialer.ivrCampaigns.edit','Asia\x20Pacific\x20(Tokyo)','saveReportField','EditInternalApp','api.analyticReportField.delete','startsWith','weight','saveSalesforceAccount','SYSTEM:GET_USERS','\x274800\x27','faxCapacity','unshift','TOOLBAR.WARNING','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?','app.mail.mailAccounts','denied','TelephonechangepasswordController','msNavigationNode','DASHBOARDS.MARCH','isRunning','newWhatsappCannedAnswer','VoicePrefixes','MetricId','ngBindHtmlUnsafe','apps.settings.generals','customField','_XCALLY_MIXMONITOR_FORMAT=','\x27zh-TW\x27','ATTACHMENTS:GET','-11:00','French','app.fax.faxAccounts','$stateParams','EditInboundAppagiDialogController','horizontalNavigation','api.intFreshsalesAccount.save','createOrEditDisposition','createOrEditContact','MAIL.MAILSUBSTATUSES','api.voiceMail.update','Analytics','addMinutes','contrast1','getOpenchannelAccountOpenchannelCannedAnswers','contactManager','fontSize','\x27alternate\x27','dateTime','IvrCampaigncloneController','/api/chat/websites/:id/system_avatar','src/js/modules/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html/treeReports-[chunkhash].html','Subject','square/reports/:id/clone','Position','OpenchannelCannedAnswer\x20deleted!','newMail','timer-stopped','desc','Europe/Bucharest','Europe/Belgrade','src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html/changepassword-[chunkhash].html','List\x20properly\x20created','phoneBarPrefixRequired','accountConnected','Salli\x20(English,\x20US,\x20Female)','onFaxMessageSave','deleteTemplate','&token=','delete\x20MailQueues','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html/view-[chunkhash].html','getApiObject','icon-help','toISOString','diff','uniqBy','goTo','\x27invite\x27','PausesController','#chat-group-dialog','arrayzone','CopyReportDialogController','\x27DADHI\x27','createdAt,updatedAt,id,name,description,table,parent,conditions,joins','project_id','CHAT.OFFLINE_MESSAGE','+07:00','currentXML','DeskConfiguration\x20properly\x20created','DASHBOARDS.CLOSED','vm.queryHistory.filter','SmsAccountController','staff','ChatQueue','newInterval','src/js/modules/login/login.html/login-[chunkhash].html','api.jscriptyProject.clone','End\x20of\x20Conversation','OpenchannelAccount\x20updated!','SystemController','','Europe/Malta','chatStatusTime','xlsx','getDaysOfMonth','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog-[chunkhash].html','vm_dc.query.filter','OpenchannelAccountActionsController','substatus','app.auth','createOrEditGlobalCustomField','QueueCampaignHopperFinalsController','English\x20(Tanzania)','animateHeightClass','intDynamics365Account','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27paused\x27','operators','DASHBOARDS.LAST_YEAR','IvrCampaignsMotionDialerRealtimeController\x20as\x20vm','openchannel/interactions/:id','Account','Cristiano\x20(Portuguese,\x20Male)','InteractionDialogController','InternalRouteController\x20as\x20vm','\x27sms_messages\x27','app.integrations.zendeskAccounts','Invalid\x20company\x20name.','union','Europe/Madrid','id,tree','uniq','selectedOpenchannelAccounts','mail/reports/queue/:id','selectedDisposition','AgentHomeWhatsappController','newDynamics365Configuration','removeTab','saveTrunk','selectedReport','deleteFreshsalesConfiguration','Norwegian\x20(Norway)','AgentHomeVoiceDetailsController','MAIL.EDIT_','icon-deskphone','.resizable','SYSTEM:GET_QUEUES','MetricsController','angular.filter','SSML','Error\x20creating\x20queue!','chat/reports/transfer/describe','dateStart','
','id,phone,scheduledat,recallme,priority,UserId,OwnerId','editInternalRouteApp','cm/lists/:id','DeskAccount\x20properly\x20created','apps.motiondialer.ivrCampaigns','selectedContact','inuse','CreateOrEditFaxQueueDialogController','cm/contacts/:id/hopper_finals','DASHBOARDS.RECALLME','Edge','MAIL.NEW_MAILACCOUNT','htmlContent','src/js/modules/core/layouts/vertical-navigation.html/vertical-navigation-[chunkhash].html','app.integrations.salesforceAccounts','flipWidget','Interaction:save','app.motiondialer.queueCampaigns','deleteTeam','Customization\x20properly\x20deleted!','QueueCallsMotionDialerRealtimeController','UserId','getInternalRouteApps','AboutController','mail/messages/:id','id-ID','saveQueues','whatsapp/interactions/:id/tags','delete\x20InternalRoutes','addNewTelephone','List\x20','Interval\x20properly\x20created','Agent\x20properly\x20created','field,alias,function,format,groupBy,orderBy,custom,MetricId','onLogged','chatInteractionDownload','\x27agent_alias\x27','saveChatProactiveAction','ERROR\x20OPEN\x20INTERACTION','jscripty/projects/describe','\x27SIP\x27','msApi::resolveError','ceil','icon-cog','pick','countcongestionretry','GET','src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html/cloudProviders-[chunkhash].html','mail/applications/describe','id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','app.mail.realtime.queues','list_id','\x27skebby\x27','\x27WAV\x27','rpcTrunks','showPredictiveQueueCampaignInfo','arrayrecordingFormat','CHAT.EDIT_CHATPROACTIVEACTION','Delete\x20OpenchannelAccount','mail/substatuses/:id/clone','SYSTEM:DELETEuserProfile','fax/queues/:id','createOrEditSquareRecording','src/js/modules/main/apps/tools/views/sounds/upload/dialog.html/dialog-[chunkhash].html','new','DisposeAbandonedCallDialogController','moveSelectedQueueCampaignHopperFinals','URI','MailQueue\x20properly\x20deleted!','getTeams','The\x20array\x20must\x20have\x203\x20or\x204\x20colors.','app.quick-panel','autoStart','VoicemailsController\x20as\x20vm','OutboundRoutesController\x20as\x20vm','ATTENTION','disposition','resetForm','intervals/:id/clone','src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html/dialog-[chunkhash].html','saved','mailQueues','deleteSelectedOpenchannelQueues','savevoicePrefix','createVidaooSession','Justin\x20(English,\x20US,\x20Male)','mail-interaction','selectedPlugins','api.trigger.save','setAttribute','respectItemOrder','pm2/:id','apps.voice.voiceQueues','black','Europe/Oslo','trunk_name','jscriptyQuestionReport','faxMessage','Unable\x20to\x20create\x20session!','jpg','Contact\x20properly\x20deleted!','addTags','intFreshdeskConfiguration','Unknown','app.voice.voiceQueues.edit','src/js/modules/main/apps/fax/views/realtime/queues/view.html/view-[chunkhash].html','America/Moncton','VOICE.EDIT_VOICERECORDING','getMailAccountMailCannedAnswers','deleteSelectedChatWebsiteInteractions','src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.html/cannedAnswers-[chunkhash].html','hasResourcePermission','speaker','Variable','src/js/modules/main/apps/voice/views/inboundroutes/edit/view.html/view-[chunkhash].html','aug','src/js/modules/core/directives/ms-timezone/ms-timezone.html/ms-timezone-[chunkhash].html','deleteSelectedMailAccounts','STAFF.PERMISSIONS_PLACEHOLDER_SEARCH','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html','motion2.home.','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html','Delete\x20VtigerAccount','/reset/:token','msTimeline','selectedVoiceRecordings','userWhatsappQueue:remove','GlobalCustomFieldsController','chat/interactions/:id/download','Decode\x20File\x20Error','mailQueuesTotal','UserProfilesController\x20as\x20vm','selectedIvrCampaignHopperHistories','removeClass','arraydtmfmode','FreshsalesAccounts','MsPhonebarController','PERMISSIONS','userVoiceQueue:remove','addNewChatQueue','createOrEditFaxAccount','deleteSelectedSalesforceAccounts','\x20properly\x20hangup!','app.analytics.reports','DashboardItem\x20properly\x20saved!','INTEGRATIONS.NEW_SALESFORCEACCOUNT','Delete\x20Plugin','onInteractionClose','All\x20unfilled\x20values\x20of\x20the\x20contact\x20#','api/sounds','sectionId','eurgermanfemale','voiceChanSpy','InboundRoutesController','api.variable.save','newTeam','pages','','isCompatibleBrowser','America/North_Dakota/Beulah','saveTelephone','\x20has\x20been\x20done!','ANALYTICS.ANALYTICS','\x27rfc2833\x27','onLogout','AgentsSmsRealtimeController\x20as\x20vm','German\x20(Germany)','createdAt,updatedAt,id,name,description,dialPrefix','','cloudProviders/describe','selectedListCustomFields','addSections','delete\x20whatsappCannedAnswers','setFormatTime','EditFaxAccountAppagentDialogController','createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd-[chunkhash].html','enable','Arabic\x20(Algeria)','deleteSelectedTags','isObjectLike','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html/dialog-[chunkhash].html','deleteIvrCampaignHopperHistory','transcribeStatus','Hotmail','fax/interactions/:id/messages','Teams','$compile','Arabic\x20(Kuwait)','chatWebsite','$pristine','UserProfileController','totalSteps','MAIL.SELECTED_TEAMS','elements','selectedLists','motion.token','Astrid','app.settings.updates','voice/queues/:id/hoppers','src/js/modules/main/apps/tools/views/intervals/edit/view.html/view-[chunkhash].html','data','#ms-shortcut-add-menu','Asia/Ulaanbaatar','rpc/sms/queues/waitinginteractions','\x27csv\x27','rpcSmsQueuesWaitingInteractions','msDualMultiselect','onSearchBarExpand','addNewTeam','/tags','Delete\x20VoiceQueue','direction','networks','title','Zendesk','INTEGRATIONS.NEW_ZENDESKCONFIGURATION','VOICE.VOICERECORDINGS','INTEGRATIONS.EDIT_SUGARCRMACCOUNT','America/Martinique','Kimberly\x20(English,\x20US,\x20Female)','deleteServicenowConfiguration','\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!','CHAT.SELECTED_AGENTS','addUsers','minutesS','TOOLS.NEW_CUSTOMDASHBOARD','mailInteraction','$interpolate','sms/accounts/:id/applications','Offline','gotoDeskAccounts','api/users/','g726','tools','rpc/mail/accounts','hide','outgoing','arraydirectmedia','MOTIONDIALER.NEW_HOPPER','foreground','mobile','lists','horizontal','English\x20(Kenya)','vm.customField.type','definePalette','+03:30','Tamil\x20(Singapore)','plugins/','schedules/:id/run','America/Thunder_Bay','selectedGlobalCustomFields','\x27wrandom\x27','/callysquare/projects/','beep','selectedDynamics365Accounts','Lists','CompaniesController','countContactsIvrCampaignHopperFinal','createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','Plugin\x20installed!','saveProject','custom','app.sms.smsQueues','TrunkController','QueuesVoiceRealtimeController','createOrEditWidget','selectAllCannedAnswers','gotop','selectedIntervals','MOTIONDIALER.NEW_QUEUECAMPAIGN','Contacts','Ines','ticketType','TOOLS.VARIABLES','CustomDashboards','\x27limit\x27','pow','onRemoveMailQueue','deleteSelectedSounds','uriLocation','Scheduled\x20call\x20deleted!','zendesk','lime-A700-bg','\x20uploaded\x20successfully','\x27report_jscripty_sessions\x27','.wav','SalesforceConfiguration\x20properly\x20saved!','getDeskConfiguration','\x27stun\x27','X-Answer-Mode','Reports','voice/calls/reports/describe','src/js/modules/main/apps/openchannel/views/realtime/agents/view.html/view-[chunkhash].html','European\x20Spanish\x20Female','sumDuration','delete\x20offlineMessages','hr-HR','QueueCampaignHopperBlacksController','getJscriptyProjects','DASHBOARDS.TAGS','ngMessages','triggers/:id/clone','src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts-[chunkhash].html','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','Report\x20properly\x20deleted!','selectTagsChanged','addIntervals','UploadSoundDialogController','app.whatsapp.whatsappAccounts','isEmpty','seconds','targetEvent','intVtigerAccount','apps.home.whatsapp','analytics/custom_reports/:id/clone','companies','folded','removeSections','selectedSection','voiceQueuesLog','apps.tools.customDashboards','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailQueues?','src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.html/clone-[chunkhash].html','selectedQueueCampaignHopperFinals','SYSTEM:GETtrunks','CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD','src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists-[chunkhash].html','rpc/campaigns','${EXTEN:','googleAsrLanguage','Status\x20properly\x20changed\x20to:\x20','ivrCampaign','FreshdeskAccount\x20properly\x20created','updateProcess','zh-HK','\x27shortinfo\x27','start','endtime','ar-BH','isObject','analyticCustomReport@get','TeamagentaddController','UserProfile\x20properly\x20cloned','Attached\x20pm2\x20process\x20successfully\x20restarted','g729','addConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?','US\x20English\x20Male','green-A700','ChanSpies','FreshdeskAccounts','chat/websites/:id/dispositions','millis','apps.dashboards.custom_','optionsBuilder','api.intSugarcrmConfiguration.update','selectedTriggerAllConditions','api.jscriptyProject.save','trunk_id','Asia/Kolkata','channel','api.cmCustomField.delete','General\x20properly\x20deleted!','selectAllDispositions','ACCOUNT:SEND','900','interaction\x20#','Rejected','America/Pangnirtung','isInProgress','SYSTEM:GET_INTERVAL','id,level,name,description,ParentId,createdAt,updatedAt','Delete\x20FreshsalesConfiguration','WhatsappRealtimeController','integrations/zoho/accounts/:id/clone','vtiger','AgentReject','auto\x20answer\x20enabled\x20after:','getMailAccountInteractions','mandatoryDispositionPause','chat/interactions/:id/my_messages','Voice','-03:00','musiconholds','times','user_has_','addCall\x20->\x20target,\x20inbound,\x20fullname','allowedItems','.draggable','MailAccountInteractionsController','api.pm2.delete','createdAt,updatedAt,id,name,interval','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog-[chunkhash].html','runtranscribeSelectedVoiceRecordings','icon-label','agreement','whatsapp/applications/:id','unit','msMaterialColorPickerController\x20as\x20vm','\x27pt\x27','animate','userProfile/resources/:id','onHook','/cloudProviders','isJabraInitialized','mailbox','motionBullFields','delete\x20ZendeskAccounts','vi-VN','agent.name','getFreshdeskAccounts','getGroups','ZohoAccount\x20properly\x20tested','motion2.home.openchannel:','TOOLS.EDIT_PAUSE','TOOLS.NEW_INTERVAL','src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html/dialog-[chunkhash].html','api.mailAccount.delete','IvrCampaignController\x20as\x20vm','Pacific/Easter','getODBC','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zendeskAccounts?','rpc/voice/queues/channels/:uniqueid','indigo-A100-fg','MusicOnHoldMohSoundsController','Asia/Srednekolymsk','MailQueue\x20properly\x20saved!','CreateOrEditIvrCampaignDialogController','CustomField\x20properly\x20deleted!','gotoMailAccounts','MailSubstatus\x20properly\x20saved!','hideDelay','api.user.update','clear','UsersController\x20as\x20vm','types','src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html/dialog-[chunkhash].html','data4','api.voiceMail.delete','api.cmCompany.update','file_id','Schedule','constant','\x27IAX\x27','getPauses','RecordDialogController','integrations/dynamics365/configurations/describe','container','template','hopperHistory','FreshdeskConfiguration\x20properly\x20saved!','TOOLBAR.SPANISH','\x27users\x27','Invalid\x20number\x20of\x20arguments\x20supplied\x20in\x20the\x20color\x20array:\x20','app.tools.intervals.edit','InboundRoute\x20properly\x20deleted!','$urlRouterProvider','app/main/apps/marketplace','AgentqueueaddController','setCurrentStep','license','setAs','selectedTemplates','api.intFreshsalesConfiguration.delete','searchInProgress','MohSound\x20properly\x20saved!','get_json','\x22\x20err:','friend','Read','basename','motionConfigProvider','isNavFoldedOpen','ms-navigation','cm/lists/:id/contacts/csv','ContactSelectionController','MyTitle','fresh','plugin@get','0px','goToTrunk','Pacific/Wallis','attributes','secondLevelDisposition','delete\x20SquareRecordings','src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html/view-[chunkhash].html','GotoIfTime','whatsapp/accounts/describe','Chat\x20Website','cellName','Hungarian\x20(Hungary)','exportSelectedMailAccountMailCannedAnswers','Delete\x20Project','Whatsapp','MusicOnHoldController','newSchedule','addNewPlugin','eurczechfemale','app.voice.realtime.queues','SYSTEM:queueCampaign.RESETLIST','XCALLY-MOTION-ANSWER=0','varPath','endOfConversation','openchannel/queues/:id','Delete\x20DeskAccount','AgentHomeAbandonedController','createOrEditIvrCampaignHopper','src/js/modules/main/apps/sms/views/smsQueues/edit/view.html/view-[chunkhash].html','HANGUPCAUSE_17','saveZendeskAccount','Oriya','DeskConfiguration\x20deleted!','deleteSelectedFreshsalesAccounts','selectedMusicOnHoldMohSounds','createOrEditList','src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html/user.general.dialer-[chunkhash].html','MONITOR_OPTIONS=ab','api.intSalesforceAccount.update','Object','/errors/error-404','Scots\x20Gaelic','exportSelectedSmsAccountSmsCannedAnswers','Hebrew\x20(Israel)','ZohoAccountConfigurationsController','voicemails','CONTACTMANAGER.NEW_COMPANY','\x27once\x27','*|\x0a','map','STAFF.CANCEL','createOrEditVoiceQueue','$attrs','terminate','appdata','joinTypes','gotoVoiceRecordings','deleteSelectedQueueCampaignHopperFinals','contactmanager','fax-interaction','Spanish\x20(Colombia)','UploadPluginDialogController','phoneBarEnableAutomaticScreenRecording','Win','STAFF.EDIT_USER','intVtigerField','finishCallback','internalrouteApp','zoho.com','ReportsController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?','Today','WhatsappAccountController','voiceQueue:remove','monthTo','chatMessage:update','$mdSidenav','stringToNumber','api.cmCustomField.save','Delete\x20SugarcrmConfiguration','rounded','Save\x20draft','cross_join','\x20yyyy','ar-SA','Delete\x20SquareRecording','SYSTEM:DELETEcmCustomField','Antarctica/Troll','MusicOnHoldsController','INTEGRATIONS.EDIT_FRESHDESKACCOUNT','exportSelectedOpenchannelAccounts','America/Asuncion','delete\x20Intervals','TOOLS.','voice/extensions/:id/applications','Delete\x20VtigerConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailCannedAnswers?','integrations/desk/configurations/:id/subjects','exportSelectedIvrCampaigns','api.analyticExtractedReport.delete','Hebrew','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27loose\x27','AgentDashboardGeneralController','Estonian','@includeAll','\x27ws\x27','msMasonry:relayout','splice','Pacific/Enderbury','-name','AEC','secondLevel','integrations/vtiger/accounts/describe','delete\x20field','arrayactionType','getQueueCampaignHopperBlacks','sender','/inboundroutes','newscreenRecording',':id','jscripty/sessions/reports/:id/clone','jun','us-west-2','\x27none\x27','intServicenowAccount','getQueueCampaignHoppers','MAIL.NEW_MAILQUEUE','src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html/dialog-[chunkhash].html','grey-A400-bg','selectedCompany','STAFF.STAFF','deleteSelectedAgents','voiceRecording@get','sourceid','SYSTEM:GETvoiceMail','osName','pai','searchTerm','apps.dashboards','Australia/Currie','app/main/apps/fax','Dashboard','Are\x20you\x20sure?','The\x20deskConfiguration\x20will\x20be\x20deleted.','telephone:save','registerForm','square/recordings/describe','ReportFieldsController','Error\x20retrieving\x20user\x20profile\x20permissions','document','motion2.home.abandoned.bull.calls:','Irish','children','icon-auto-fix','deleteDescriptionConfirm','addNewOutboundRoute','motion2.user:','voice/queues/:id/users','QueuesChatRealtimeController','src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html/dialog-[chunkhash].html','getMonth','table','api.voiceExtension.delete','firstName,lastName,fax','$lt','reports','showMenu','src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view-[chunkhash].html','TriggerAllConditionsController','fax/reports/queue/:id/clone','onUpdateWhatsappQueue','toDate','deep-orange','members','deleteOpenchannelQueuesWaitingInteractions','Gmail','onRemoveSmsQueueChannel','tab-container','smsCannedAnswers','SYSTEM:GETwhatsappQueue','hu-HU','updateCondition','icon-keyboard','newCompany','src/js/modules/main/apps/marketplace/views/plugins/create/dialog.html/dialog-[chunkhash].html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?','DASHBOARDS.RECORDINGS','$destroy','src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html/dialog-[chunkhash].html','deselectVoicePrefixes','URL','addMessage','#4CAF50','app.settings.cloudProviders','getReceivers','selectedChatWebsites','UserProfile','delete\x20ZohoAccounts','EditAppintervalDialogController','QueueCampaign\x20updated!','ContextsController\x20as\x20vm','cm/companies/:id/contacts','allConditions','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html/dialog-[chunkhash].html','OpenchannelQueue\x20properly\x20deleted!','integrations/vtiger/configurations/:id/fields','app.integrations.servicenowAccounts.edit','addNewSalesforceAccount','SYSTEM:ADDFIELDS','deleteSugarcrmAccount','VoiceQueuesController\x20as\x20vm','delete\x20customFields','deleteSelectedAiTools','\x27beepall\x27','canSelect','apps.integrations.freshdeskAccounts','Dynamics365Configuration\x20properly\x20saved!','addBlackLists','eurdutchfemale','QueueCampaigncloneController','Start\x20Date','/zohoAccounts','chat/queues/describe','value','deleteExtractedReport','src/js/modules/header/layouts/vertical-navigation/header.html/header-[chunkhash].html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20agents?','createOrEditTriggerAllCondition','icon-heart','Conversation\x20Update','paginatedInteractions','voiceMailMessage','Transfer\x20','getVoiceCalls','The\x20allCondition\x20will\x20be\x20deleted.','matchingField','users/:id/chat_websites','UserWhatsappDashboardGeneralController\x20as\x20vm','contentWithToolbar','voiceExtension@get','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20','ExtractedReports','CreateOrEditDynamics365AccountDialogController','ngCsv','Delete\x20ZohoConfiguration','selectedQueueCampaignHopperBlacks','isOnHold','channelStatus','The\x20telephone\x20will\x20be\x20deleted.','Hopper\x20properly\x20saved!','tech','en-IE','plugins/describe','\x27externip\x27','fileSuccess','anySecondLevelDisposition','appendChild','year','hopper\x20#','saveTemplate','trigger:browser:popup','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog-[chunkhash].html','removeUsers','European\x20German\x20Female','^msNavigationHorizontalNode','EditoutboundAppintervalDialogController','deselectVoiceRecordings','chart.js','ml-IN','Chantal\x20(French,\x20Canadian,\x20Female)','getConfig','af-ZA','The\x20smsAccount\x20will\x20be\x20deleted.','voicePrefix\x20properly\x20saved!','changePassword','api.intSugarcrmAccount.save','msDatepickerFix','Arabic\x20(Oman)','Europe/Riga','orientation','userOpenchannelQueue:save','Dialer\x20Hopper\x20Final','chat/interactions/:id/clone','arraySmtp.service','uploadError','icon-checkbox-marked-outline','debugEnabled','deselectSugarcrmAccounts','app.openchannel.realtime.queues','Linux','rpc@getCampaigns','OfflineMessage\x20deleted!','Asia\x20Pacific\x20(Sydney)','-id','deleteSelectedWhatsappAccountApps','MusicOnHold\x20properly\x20saved!','Widget\x20has\x20been\x20deleted!','chanSpy\x20properly\x20saved!','sessionTarget','integrations/freshsales/accounts/:id','delete\x20context','\x27timeout\x27','followuptime','ScreenRecordings','deleteSelectedUserProfiles','saveChatQueue','app.integrations.deskAccounts','EditoutboundAppoutbounddialDialogController','Australia/Hobart','jscriptySessionReport','XCALLY-MOTION-PROGRESS=0','trimStart','motion2.home.abandoned.voice.calls:','apps.contactmanager.contacts','app.integrations.freshdeskAccounts.edit','src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.html/changepassword-[chunkhash].html','America/Detroit','Voicemail\x20properly\x20deleted!','SmsAccount\x20properly\x20saved!','input','false','displayValue','Plugin\x20uninstalled!','originateInProgress','ProjectViewerController','US\x20Spanish\x20Female','faxPause','ChatProactiveAction\x20deleted!','treeCustomInstance','idle','api.chatWebsite.delete','getQueueCampaignHopperHistories','voiceExtension','chatCannedAnswer','createdAt,updatedAt,ContactId,phone','Pacific/Nauru','src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','/fax','getReports','transfer','EditChatWebsiteAppagentDialogController','Right\x20Join','/pauses','getActions','motion.language','DASHBOARDS.SELECT_ACCOUNT','VOICE.WRONG_EXTENSION','CloudProvidersController\x20as\x20vm','plugin:save','isLastStep','selectedTags','src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax-[chunkhash].html','','/api/settings/1/preferred','ClickSend','md-content[name*=\x27interaction-content-','api.dashboard.clone','deleteSelectedVoicemails','/forgot','position','jscriptyProject@get','dynamics365Accounts','expandAnimation','smsCannedAnswer\x20#','Finnish\x20(Finland)','smsCurrentCapacity','Pacific/Niue','IvrCampaignlistaddController','ProjectBuilderController','chat/offline_messages/:id/clone','hkchinesefemale','JSCRIPTY.JSCRIPTY','NetworksController\x20as\x20vm','mailCannedAnswers','delete\x20screenRecordings','\x27ASC\x27','analyticFieldReport','TOOLBAR.KOREAN','The\x20chatQueue\x20will\x20be\x20deleted.','getScrollEl','selectedZendeskConfiguration','downloadOpenchannelInteraction','SYSTEM:GET_CONTEXTS','localizationMap','FaxAccountController','eurturkishfemale','deleteQueueCampaignHopper','4800','src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog-[chunkhash].html','arraypriority','Gujarati\x20(India)','globalCustomFields','motion2.home.mail:','\x27weeks\x27','$location','Persian\x20(Iran)','Schedule\x20properly\x20deleted!','getResults','Amy\x20(English,\x20British,\x20Female)','formatdate','getMinutes','gotoAgents','America/Argentina/Jujuy','integrations/zendesk/configurations/describe','whatsapp/queues/:id/teams','campaigns/:id/lists','Context\x20properly\x20deleted!','sms/reports/queue/:id','integrations/dynamics365/configurations/:id/clone','transferCallback','deselectPlugins','mailSubstatus','Report\x20saved!','selectAllFreshdeskAccounts','cmContact@getHopperFinals','inboundroute','onUpdateChatInteraction','intFreshsalesConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20pauses?','AgentHomeDashboardVoiceController','truepriority','alreadyExistsTab','blurCollapse','Spanish','api.campaign.clone','deleteChatWebsiteChatProactiveAction','Canadian\x20French\x20Female','isHiddenField','Limit','triggers/:id','exportSelectedOpenchannelAccountInteractions','dashboard:save','SYSTEM:DELETEcloudProvider','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27penalty\x27','onUpdateChatQueue','Start\x20new\x20recording','|{color:red}','trustAsResourceUrl','TOOLS.CUSTOMDASHBOARDS','importContacts','voice/recordings/:id','Delete\x20Metric','fontColor','digit','selectedScreenRecordings','VtigerConfiguration\x20properly\x20saved!','delete\x20sugarcrmAccount','onUpdateOpenchannelInteraction','includes','src/js/modules/main/apps/tools/views/triggers/triggers.html/triggers-[chunkhash].html','palettes','selectChangedAdvanced','Sounds','\x27).style.display=\x27block\x27;\x20this.parentNode.removeChild(this)\x22>See\x20More
','-createdAt,questionId','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatCannedAnswers?','App\x20deleted!','cm/hopper/:id','America/Cancun','msMaterialColorPickerController','apps.home.mycontacts','UpdateDialogController','SYSTEM:DELETEvoiceRecording','getVoiceRecordings','pageTitle','onRemoveMailQueueChannel','getFields','en-PH','formData','OpenchannelRealtimeController\x20as\x20vm','onVoiceChannelRemove\x20->\x20evt','schedules/:id','Croatian','src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','amaflags','CannedAnswers','exportSelectedExtractedReports','$state','Queue','isValid','Outgoing','mailApplication','SYSTEM:PAUSEUSER','SYSTEM:GET_MUSICONHOLDS','TelephonesController\x20as\x20vm','YYYY-MM-DD\x20HH:mm:ss','VOICE.VOICEPREFIXES','CreateOrEditOutboundRouteDialogController','deselectSmsQueues','localnet','smsMessage:update','daysOfMonth','navigation','motion2.home.voice:','I\x20agree','newServicenowConfiguration','strict','getWhatsappAccountApps','isMobile','image','ngPassword','deleteGeneral','templates/describe','unmute','integrations/desk/configurations/:id','EditSmsAccountAppcloseDialogController','deleteSelectedVtigerAccounts','addNewOpenchannelQueue','Croatian\x20(Croatia)','whatsappQueue:save','deleteFaxAccount','internalroutes','variables','whatsappCannedAnswer\x20#','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20item?','createdAt,updatedAt,id,name,table,metric,description','MusicOnHold\x20properly\x20deleted!','getAgents','sessionId','difference','predictiveIntervalAvgHoldtime','id,interval,IntervalId','us-east-2','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_TITLE','/outboundroutes','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','Disagree','Image\x20is\x20loaded','deleteSelectedSmsAccountSmsCannedAnswers','Justin','\x27chat_queues\x27','$formatters','queuesMap','Delete\x20disposition','MailAccount\x20updated!','CustomDashboard\x20properly\x20deleted!','Basic','zohoAccounts','getScheduledCalls','outboundrouteApp','saveReschedule','mailInteractions','api.intFreshsalesConfiguration.save','\x27report_openchannel_transfer\x27','getAgentLabel','resolve','MOTIONDIALER.EDIT_IVRCAMPAIGN','openchannel/accounts/:id/clone','instances','50\x20100\x20200\x20A100','outboundroute','QUICKPANEL.WARNING','smsQueue','\x27ilbc\x27','msHorizontalStepper','onVoiceExtensionUpdate','intSalesforceAccount','VoiceRecordingController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?','selectAllSmsQueues','focus','Asia/Krasnoyarsk','TOOLS.EDIT_INTERVAL','Lao\x20(Laos)','The\x20template\x20will\x20be\x20deleted.','iterator','$to','deleteMusicOnHold','SYSTEM:DELETEjscriptyProject','api.intDeskAccount.save','\x27id\x27','asc','id,firstName,lastName,email','Online','param','onRemoveUserWhatsappQueue','Waiting\x20to\x20restart\x20motion...','voice/transfers/reports/describe','ExtractedReport\x20properly\x20saved!','DASHBOARDS.LAST_MONTH','\x2716\x27','screenrecording','Fax\x20Interaction','mail','SYSTEM:GET_AGENTS','\x27days\x27','VOICE.INBOUND','Context','settings/:id','deleteSelectedQueueCampaigns','settings/:id/preferred','JSCRIPTY.ALL_SURVEY_DATA_WILL_BE_LOST','voicePrefix\x20properly\x20deleted!','\x27yes\x27','es-CO','getSummary','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog-[chunkhash].html','destconnectedlinenum','PreviewReportDialogController','SYSTEM:GETsmsAccount','Team\x20properly\x20deleted!','integrationTypes','deleteSelectedSugarcrmAccounts','selectedCompanies','Korean','VtigerAccount\x20properly\x20tested','squareMessage','api.intSugarcrmConfiguration.delete','arraynat','newExtractedReport','musiconholdMohSounds','membersByKeys','app.tools.tags','deleteOutboundRoute','deselectVariables','apps.voice.voiceRecordings','cloudProviders/:id','variable','user,admin','api.voiceExtension.save','app.fax.realtime.agents','Queues\x20association\x20has\x20been\x20updated!','dashboards/items/:id','America/Metlakatla','Vitoria','CreateOrEditMetricDialogController','app.integrations.sugarcrmAccounts.edit','/errors/error-500','saveExtractedReport','3rd','api.dashboard.delete','escape','saveFaxAccountApp','clearDispositionSelection','EditMailAccountApp','whatsappTransferReport','pdf','The\x20musiconhold\x20will\x20be\x20deleted.','CHAT.SELECTED_TEAMS','app.mail.mailQueues','post','app.staff.users.edit','Android','rpc/telephones','INTEGRATIONS.NEW_','EU\x20(Paris)','SYSTEM:GET_WHATSAPPACCOUNTS','question','addCustomField','integrations/salesforce/accounts/:id/clone','top','dnd','cloneIvrCampaign','zoho.eu','dashboarditem','getOpenchannelInteractions','The\x20dynamics365Account\x20will\x20be\x20deleted.','ngAria','setLockedItem','KHOMP','EU\x20(London)','app.video.screenRecordings','America/Panama','Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar\x202','OpenchannelAccountsController','msSplashScreen::remove','Gsm','chat/websites/:id/logo','columnCount','\x27report_whatsapp_transfer\x27','globalStatus','deleteSelectedContexts','VOICE.NEW_CONTEXT','voice/mails/messages/:id/download','angular-toasty','UserProfile\x20properly\x20deleted!','apps.staff','Answer','chatCannedAnswer\x20#','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20node?','rpcWhatsappQueuesWaitingInteractions','integrations/vtiger/accounts/:id/fields','DISPOSITION_DELETE_MESSAGE_CHILDREN','getDaysOfWeek','addNewInterval','EditOpenchannelAccountAppgotopDialogController','viber','DeskAccounts','integrations/salesforce/configurations/:id/clone','getChatQueues','ExtractedReportsController\x20as\x20vm','ui.router','Malay\x20(Malaysia)','width','src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html/dialog-[chunkhash].html','style','order','America/Paramaribo','Asia/Dubai','onMessageSave','voice_outbound_channel:remove','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog-[chunkhash].html','QueueCallsMotionDialerRealtimeController\x20as\x20vm','api.openchannelQueue.update','src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.html/dialog-[chunkhash].html','API:GET_COMPANY_SECTION','groupId','addNewServicenowAccount','api.intZohoConfiguration.update','mohSound','RESETPASSWORD.PASSWORD_RESET_ERROR','GET_COMPANY','QueuesWhatsappRealtimeController','America/Argentina/San_Juan','full','\x20ms','analytics/default_reports/:id/query','src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html/view-[chunkhash].html','src/js/modules/main/apps/tools/views/pauses/create/dialog.html/dialog-[chunkhash].html','api.chatQueue.save','app.tools.customDashboards','listsCampaign','TOOLBAR.DANISH','unreadMessages','EditWhatsappAccountAppnoopDialogController','QueuesMailRealtimeController','getChatWebsites','ms-navigation-folded-open','VoiceRecording\x20properly\x20saved!','getText','deselectTrunks','voice/transfers/reports/:id/clone','createOrEditZendeskConfiguration','UserOpenchannelQueue','isActiveTab','runtranscribesentimentruntranscribesentiment','getClass','DELETE_PERMISSION','exportSelectedIntervalIntervals','smsStatusTime','General\x20properly\x20created','plugin:update','STAFF.TELEPHONES','currentSidebarTab','round','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_TITLE','FaxQueueteamaddController','createdAt,updatedAt,id,name,channel,status,description','delete\x20node','app.callysquare.projects','+=400','MailRealtimeController','$endsWith','exportSelectedNetworks','saveInterval','chat/websites/:id/interactions','createOrEditField','\x27linear\x27','undefined','\x27AU\x27','getFinals','SYSTEM:DELETEanalyticExtractedReport','timer','whatsappStatus','deleteMailQueuesWaitingInteractions','Arabic\x20(Iraq)','The\x20contact\x20will\x20be\x20deleted.','chatGroup','Miguel','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','dashboardSections','HOUR\x20(','arrayservice','Georgia,serif','app.callysquare.projects.edit','removeBlackLists','rpc@getChatQueues','TOOLS.EDIT_CUSTOMDASHBOARD','voiceQueue','api.dashboard.save','mouseenter\x20touchstart','upload','stepInfo','never','downloadWhatsappInteraction','teamadddialog','ZendeskAccountConfigurationsController','newOpenchannelAccount','isPartialPause','smtps','DASHBOARDS.SELECT_CAMPAIGN','motion2.home.recordings:','ZohoConfiguration\x20properly\x20deleted!','play','es-BO','push','promise','newReport','Xhosa','America/North_Dakota/New_Salem','wholerow','IvrCampaignsController\x20as\x20vm','ms-widget','red-300-fg\x20icon-phone-in-talk','MotionDialerQueueId','EditChatWebsiteAppsystemDialogController','Network\x20properly\x20deleted!','ondevicechange','MusicOnHoldController\x20as\x20vm','delete\x20SmsQueues','European\x20Portuguese\x20Male','migrations','exportSelectedAgents','TOOLBAR.PERSIAN','erlangCallToSecond','\x27chat_interactions\x27','/contactmanager','content','createOrEditChatWebsiteOfflineMessage','Africa/Bissau','layoutStyles','EditFaxAccountAppgotopDialogController','registry','forEach','Astrid\x20(Swedish,\x20Female)','onEnded\x20->\x20session,\x20data','CreateOrEditCustomFieldDialogController','motion2.realtime.abandoned.bull.abandonedCalls:','ms-navigation-node','Lists\x20association\x20has\x20been\x20updated!','MsNavigationController\x20as\x20vm','integrations/desk/accounts/describe','800','\x27null\x27','integrations/zoho/fields/:id','vm_home.sidebar','euritalianmale','transferNumber\x20required','DASHBOARDS.OPENCHANNEL','Interval\x20updated!','delete\x20freshsalesAccount','setActiveItem','Once','deleteFreshdeskAccount','createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','red-300-fg\x20icon-close-circle','app.voice.realtime.trunks','Record','\x27wrapup\x27','Ruben','EditInternalApphangupDialogController','isoWeek','Session\x20deleted!','$stateChangeStart','src/js/modules/main/apps/contactmanager/views/companies/create/dialog.html/dialog-[chunkhash].html','Chinese\x20(Taiwan)','\x27voice_recordings\x27','newInboundRoute','integrations/desk/configurations/:id/tags','blue-300-fg\x20icon-phone-outgoing','getZendeskAccounts','utcOffset','EditFaxAccountAppqueueDialogController','The\x20max\x20allowed\x20size\x20is\x20','_id','SUM','addInteractionTab','Dutch\x20(Netherlands)','/queue_params','api.analyticMetric.save','TOOLS.NEW_SOUND','getHopperBlacks','tagName','OutboundRoutes','unPause','chat/groups/:id/clone','\x27dropRate\x27','screenRecording','Agreement','America/Juneau','EditChatWebsiteAppintervalDialogController','deleteSelectedLists','QueueParamsVoiceRealtimeController\x20as\x20vm','gotoOpenchannelAccounts','wss','createOrEditProject','motion2.home.sms:','deselectCustomDashboards','\x27penalty\x27','UserProfilePermissionsController','apps.home.voice','secretaccesskey','deleteMailSubstatus','user:update','en-IN','unknown','delete\x20pause','VariablesController','fromKey','DeskAccountsController','mp3','opt2','ChatWebsiteOfflineMessagesController','gotoVoiceQueues','intVtigerAccount@get','apps.mail.mailAccounts','$in','chat/websites/:id/notify','createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,notificationSound,notificationShake,notificationTemplate','api.voicePrefix.delete','host','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contexts?','user_has_mail_interactions:remove','QueuesMotionDialerRealtimeController','attrSerie','deselectFaxQueues','/assets/images/theme-options/content-with-toolbar.jpg','openchannel/messages/:id','addNewFreshsalesConfiguration','IS\x20NOT\x20NULL','mailServerOut','\x27twilio\x27','ChatCannedAnswer\x20properly\x20deleted!','intSugarcrmAccount','AgentsFaxRealtimeController','Sound\x20properly\x20saved!','src/js/modules/main/apps/fax/views/realtime/realtime.html/realtime-[chunkhash].html','addLists','licenseKey','src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog-[chunkhash].html','api.action.update','hopper','America/Sao_Paulo','onResultClick','abandonRate','\x27mail_accounts\x27','uploadComplete','src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html/view-[chunkhash].html','whatsapp/interactions/:id/messages','InboundRoutesController\x20as\x20vm','toggle','attr','hasSectionsPermissions','Australia/Lord_Howe','Join','DASHBOARDS.SELECT_AGENT','SYSTEM:DELETEdashboard','deleteOpenchannelQueue','Dora\x20(Icelandic,\x20Female)','src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.html/salesforceAccounts-[chunkhash].html','Error\x20while\x20removing\x20tab','getMailQueuesWaitingInteractions','newOpenchannelQueue','turn:','availableOperators','EditSmsAccountAppsystemDialogController','VOICE.CANT_DOWNLOAD_THIS_FILE','apps.home','variable@get','reportField','SugarcrmAccountController','src/js/modules/core/directives/ms-phonebar/ms-phonebar.html/ms-phonebar-[chunkhash].html','monthsS','en-CA','src/js/modules/main/apps/analytics/views/metrics/create/dialog.html/dialog-[chunkhash].html','integrations/dynamics365/accounts/:id','delete\x20mohSound','smsInteractionTags:save','SYSTEM:GETvoiceQueue','=interval','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailAccounts?','el-GR','OutboundCallsVoiceRealtimeController','app.contactmanager.lists.edit','voiceQueueReport:save','SYSTEM:DELETEintSalesforceAccount','delete\x20interval','Africa/Tunis','deselectIvrCampaigns','trunk','src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime-[chunkhash].html','deviceInfo','/api/chat/interactions/','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?','app.integrations.sugarcrmAccounts','Please\x20retry\x20with\x20a\x20new\x20file','smsAccount','user_has_sms_interactions:remove','\x27hotmail\x27','addAction','users/:id/recordings','chatQueue:save','integrationTab','SYSTEM:GETtrigger','src/js/modules/main/apps/settings/views/license/license.html/license-[chunkhash].html','clearConditions','nameField','groupBy','integrations/salesforce/accounts/:id','CreateOrEditContextDialogController','Set','UpdateLicenseDialogController','es-CL','addApi','saveVoicemail','whatsappStatusTime','\x27cdr\x27','startedAt','DASHBOARDS.OPENED','TOOLBAR.ARABIC','green-300-fg\x20icon-phone-hangup','OutboundRoutesController','awsPollyRegion','path','wav49','app.tools.schedules','rule','disableMdInkRippleOnMobile','devices','draft','\x27fax_interactions\x27','CDR(prefix)=${EXTEN:0:','pause','dashboards/describe','Mizuki\x20(Japanese,\x20Female)','ServicenowAccountController','gotoProjects','ChatWebsites','America/Halifax','exportSelectedServicenowAccounts','Africa/Ceuta','DeskAccount\x20properly\x20saved!','#7d818c','selectedSounds','rpc/voice/channels/:uniqueid/stopmixmonitor','Fax\x20Queues','src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','getHeaderErrors','quickFilters','ChanSpiesController\x20as\x20vm','smsApplication','getIvrCampaignHoppers','allowDelete','whatsapp/interactions/:id/clone','ngResource','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','/chat','CreateOrEditDynamics365AccountItemDialogController','delete\x20openchannelQueue','CHAT.ALL_TEAMS','treeDefaultInstance','exportSelectedProjectSessions','apps.home.chat','America/Araguaina','JSCRIPTY.NO','openchannel/accounts/:id/interactions','\x20-\x20','delete\x20sugarcrmConfiguration','getMultiBarChart','EU\x20(Ireland)','arrayannounce_holdtime','intZohoField','vtigerConfiguration','agentadddialog','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.html/view-[chunkhash].html','getBlackLists','FaxAccountId','selectedAiTools','removeByInteraction','SYSTEM:DELETEtrunk','selectAllSmsAccounts','gotoFreshsalesAccounts','mail/applications/:id','getSalesforceConfiguration','mouseenter\x20mouseleave','onClick','ms-search-bar','\x27mail_messages\x27','Users','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?','msCard','src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html/vertical-[chunkhash].html','app.motiondialer.realtime.queue_params','jscriptyProjects','SmsQueue\x20updated!','globalCustomField','analyticCustomReport','TrunksFaxRealtimeController','FAX.EDIT_FAXACCOUNT','src/js/modules/main/apps/tools/views/schedules/partialViews/reports/treeReports.html/treeReports-[chunkhash].html','isStepHidden','clonedialog','API:','contact:import:','fax','selectAllVtigerAccounts','hasIntegrationsPermissions','Asia/Ashgabat','faxInteraction@get','downloadMailInteraction','Wide','Russian','Miguel\x20(Spanish,\x20US,\x20Male)','microphone','paused','getFlatNavigation','SETTINGS.GENERAL','src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general-[chunkhash].html','sms/interactions/:id/tags','newProject','IvrCampaignblacklistaddController','response','queryResult','stopInterval','newOutboundRoute','api.intFreshdeskAccount.save','DASHBOARDS.WED','src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog-[chunkhash].html','connect','Tonga','deleteUser','Busy','src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html/view-[chunkhash].html','sms/messages/:id','lime-A700-fg','PM2\x20process\x20not\x20found!','has','$gt','The\x20mailQueue\x20will\x20be\x20deleted.','amber','fax/accounts/:id/messages','Arabic\x20(Qatar)','system@get','FaxAccountsController\x20as\x20vm','newContext','saveDialog','delete\x20metric','firstStep','isEstablished','api.condition.delete','America/Rio_Branco','getServicenowConfiguration','America/Glace_Bay','\x20has\x20been\x20reset','mozNotification','The\x20interval\x20will\x20be\x20deleted.','VtigerAccount','api.setting.save','nov','createOrEditServicenowConfiguration','sessions','src/js/modules/toolbar/preview/dialog.html/dialog-[chunkhash].html','deleteZohoConfiguration','getFormats','getSquareRecordings','SETTINGS.EDIT_GENERAL','searchResultClick','ms-timeline-item','SYSTEM:SORTABLETABLE','EditInternalAppplaybackDialogController','Delete\x20ZendeskConfiguration','Anonymous','currentStepInvalid','src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog-[chunkhash].html','odbc_id','getSugarcrmConfiguration','EditChatWebsiteAppqueueDialogController','replace','WEBSITES','cm/contacts/:id/tags','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html','api.intVtigerConfiguration.save','addNewIvrCampaign','MOTIONDIALER.ALL_LISTS','toggleClass','getColorByItem','trunks/:id/clone','agents','isChecked','invoke','smsAccount@get','selectedIndex','OpenchannelQueues','vm.query','Delete\x20MailSubstatus','isFunction','getAnswers','getIvrCampaignHopperFinals','app.analytics.metrics','$setViewValue','ANALYTICS.REPORTS','TOOLS.PAUSES','deleteSelectedTemplates','EditInboundAppgotoDialogController','Tamil\x20(Sri\x20Lanka)','facebook','apps.integrations.vtigerAccounts','Ukrainian','Korean\x20Male','mailAccounts','KEY_CODE','fax/accounts/:id/canned_answers','users/:id/api_key','voice_outbound:save','Subject\x20has\x20been\x20deleted!','ui.router.state.events','\x20has\x20been\x20updated!','webbar:originate','api.intDeskAccount.update','saveInboundRoute','VOICE.ALL_AGENTS','api.whatsappAccount.save','endOf','openchannelInteractionDownload','src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view-[chunkhash].html','nodeType','+00:00','getItem','createdAt,updatedAt,id,name,description,crudPermissions','ar-EG','Russell\x20(English,\x20Austrialian,\x20Male)','openchannel/interactions/:id/messages','AbandonedCallsMotionDialerRealtimeController','Tamil\x20(Malaysia)','voiceQueuesLog/describe','downloadMessage','The\x20customization\x20will\x20be\x20deleted.','columnWidth','delete\x20hopper','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog-[chunkhash].html','openFromEditor','CampaignId','Customization\x20properly\x20created','Indian/Reunion','phonenumber','src/js/modules/main/apps/tools/views/schedules/schedules.html/schedules-[chunkhash].html','api.squareOdbc.save','selectedChatWebsiteProactiveActions','KDE','integrations/salesforce/configurations/:id','UserVoiceDashboardDialerController','selectedPalette','EditInternalAppqueueDialogController','QueueCampaign\x20properly\x20saved!','md-scale','multipleUsers.name','fax/interactions/:id/tags','feb','||MailAccountId:=$eq[','Outlook365','Inbound','src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html/dialog-[chunkhash].html','notification:save','INTEGRATIONS.DESKACCOUNTS','getFolded','VtigerAccount\x20properly\x20deleted!','queue.name','DefaultReports','APPS','deleteSmtp','isJsonString','openchannelTransferReport','WhatsappAccount\x20properly\x20created','en-NZ','IS_NOT_AMONG','api.whatsappAccount.update','ms-info-bar-active','ChatWebsitesystemAvatarController','eurfinnishfemale','editFaxAccountApp','One\x20Time','app.dashboards.custom','ms-nav-folded','GET_VARIABLE','api.voiceQueue.clone','src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html/clone-[chunkhash].html','getExtension','id,type,uniqueid,tag,starttime,endtime,source,destination,userDisposition,userSecondDisposition,userThirdDisposition,note,duration,billableseconds,answertime','Alphabetical','opts','Accounts','SYSTEM:GETlists','rpc@getMailAccounts','\x27never\x27','apps.home.scheduled','messages','\x27left\x27','search','Brian','European\x20Turkish\x20Female','vm.query.filter','America/Bahia_Banderas','nb-NO','admin','\x27quarters\x27','createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','\x20ASC','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','inboundrouteApp','upperFirst','SYSTEM:DELETEintServicenowAccount','addNewInternalRoute','rtl','ar-IL','Editor','integrations/servicenow/fields/:id','createdAt,updatedAt,id,name,description','request','VoiceRealtimeController','analyticTreeReport@get','SYSTEM:DELETE_HOPPER','FAX.REALTIME','mail/accounts/:id/verify','About','onSaveChatInteraction','mixmonitorid','delete\x20VoiceQueues','users/:id/prefixes','onProgress\x20->\x20session,\x20data','whatsappMessage:update','saveGeneral','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20telephones?','app.mail.realtime.agents','path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','CreateOrEditVariableDialogController','SquareRecording\x20properly\x20deleted!','includeAll','saveMohSound','openString','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html/dialog-[chunkhash].html','penalty\x20','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zendeskConfiguration?','quick-panel','highlight','+06:00','endValue','SYSTEM:DELETEscreenRecording','\x271\x27','aws_secret_access_key','apps.staff.userProfiles','SYSTEM:DELETEFIELD','saveAgents','editXML','icon-phone','unknown-browser','CreateOrEditScheduleDialogController','apps.callysquare.odbcs','Incoming','No\x20images','newGlobalCustomField','muted','VoiceQueue','targetSelected','OpenchannelQueue\x20updated!','Tag\x20properly\x20saved!','api.voiceChanSpy.delete','pt-BR','selectedCustomDashboards','api.campaign.delete','$mdMedia','Indian/Christmas','TCL:\x20vm.recording[vm.path]','/squareRecordings','Jscripty\x20can\x27t\x20open\x20the\x20contact','windowWidth','lv-LV','mail/accounts/:id/users','onRemoveUserMailQueue','th-TH','msInfoBar','','intServicenowAccount@get','OPENCHANNEL.ALL_TEAMS','material','AGI','CONTACTMANAGER.SELECT_LIST','/api/auth/','tag.name','MohSound\x20properly\x20created','TOOLBAR.CHANGE_LANGUAGE_MESSAGE','attachments/describe','sl-SI','WhatsappInteractionId','Invalid\x20list\x20name.','api.team.update','FAX.ALL_TEAMS','#c2d4ef','arraytimeoutrestart','authenticate','initDeviceInProgress','src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html/view-[chunkhash].html','eu-central-1','setPlaceholder','trunk@get','sv-SE','getSounds','TOOLBAR.ITALIAN','selectAllChatQueues','Delete\x20CustomDashboard','login','allowmessenger','The\x20userProfile\x20will\x20be\x20deleted.','api.analyticReport.delete','Gwineth','InteractionId','ar-AE','users/describe','DASHBOARDS.','id,name','addNewSmsCannedAnswer','app.dashboards.general.fax','WHATSAPP.REALTIME','Europe/Kaliningrad','sugarcrmAccount','calleridnum','versionSearch','api.template.update','autoAnswerDelay','createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','rpc@getAgents','deleteSelectedMetrics','campaigns','anyThirdLevelDisposition','trigger@get','openchannelCannedAnswer\x20#','timer-start','integrations/freshdesk/configurations/:id','msMasonry:relayoutStarted','The\x20sound\x20will\x20be\x20deleted.','getVoiceChannels','exportcsvcontactsexport','deleteZohoAccount','rpc@getOutbound','gotoLists','toUpper','MsStepper','getAttachments','delete\x20FreshdeskAccounts','ReferAttendedDialogController','Arial,Helvetica,sans-serif','speed','sortBy','mediaDevices','xx-klingon','headerWhiteLabel','/voicemails','cm/contacts/merge','fax/applications/:id/clone','$injector','api.tag.delete','jscripty/projects/:id/sessions','scheduledCalls','red-300-fg\x20icon-phone-hangup','queueMethod','migration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatProactiveAction?','en-GB','ctrlMethods','selectedTeams','Phone','src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html/dialog-[chunkhash].html','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE','newGeneral','VOICE.SELECTED_AGENTS','userStatus','src/js/modules/main/apps/tools/views/tags/create/dialog.html/dialog-[chunkhash].html','changePasswordForm','nosuchnumber','\x27website_alias\x27','api.chatWebsite.save','^msFormWizard','src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions-[chunkhash].html','md-amber-200-bg','Carla','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?','analytics/default_reports/:id','gotoSugarcrmAccounts','Tahoma,Geneva,sans-serif','mandatoryDisposition','\x2712000\x27','scheduleForm','hasIdAnswers','AdvancedSearchController','speakerId','keyBy','IvrCampaignHopperBlacksController','DASHBOARDS.TODAY','users/:id/lists','getGlobalCustomFields','MouseOver','STAFF.NEW_TEAM','\x20has\x20been\x20uninstalled!','src/js/modules/main/apps/tools/views/intervals/intervals.html/intervals-[chunkhash].html','UserMailAccount','NotificationController','DASHBOARDS.ME','fromTemplate','Arabic','delete\x20MusicOnHolds','getInternalRoutes','Admin\x20Only','getHopperFinals','getApplications','app.fax.faxQueues','onDateRangeSelection','WhatsappCannedAnswer\x20deleted!','isNaN','now','Unknown\x20status','/deskAccounts','api.faxQueue.delete','chatProactiveAction','VOICE.SELECT_TYPE','Smtp','TOOLS.EDIT_VARIABLE','html','Invalid\x20license\x20key','$timeout','storagePath','aws_text_type','delete\x20dynamics365Configuration','triggerAnyConditions','createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,whatsappMethod,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate','\x27switch\x27','ListController\x20as\x20vm','analytics/extracted_reports/:id/download','EditInboundAppcustomDialogController','timelineOptions','','callCallback\x20->\x20url,\x20params','Delete\x20Variable','delete\x20cannedAnswer','ended','SYSTEM:DELETEanalyticMetric','triggers/:id/any_conditions','WHATSAPP.NEW_WHATSAPPCANNEDANSWER','gl-ES','error','createOrEditTriggerAnyCondition','globalDispositions','TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE','ngSanitize','Delete\x20IvrCampaign','analyticDefaultReport','jscripty','\x27peer\x27','XMLHttpRequest','finally','deselectFreshdeskAccounts','integrations/sugarcrm/accounts/:id','id,name,save_name','sendDTMF','voiceAgentReport','ANALYTICS.CREATE','parentDisposition','newItem','icon-apps','openchannelInteractions','VtigerAccounts','openchannel-interaction','VOICE.NEW_MOHSOUND','motionConfig','getMailAccountApps','Read_permission','voice/mails/:id','ProjectspermissionaddController','uploadPlugin','ToolbarController\x20as\x20vm','File\x20name','refer','ANSWERED','smsAccounts','onChangeList','api.disposition.save','pascalprecht.translate','NONAME','Freshsales','installing','selectedServicenowConfiguration','deleteFreshsalesAccount','SMS.NEW_SMSCANNEDANSWER','Canadian\x20French\x20Male','\x27yahoo\x27','Transfer','href','INTEGRATIONS.FRESHSALESACCOUNTS','E:\x20Exit\x20when\x20the\x20spied-on\x20channel\x20hangs\x20up.','DuplicateContactDialogController','\x273\x27','The\x20sugarcrmConfiguration\x20will\x20be\x20deleted.','addTrack','analytics/custom_reports/:id/query','arrayencryption','createOrEditCannedAnswer','+12:00','foreignTableFields','showInfo','src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html/view-[chunkhash].html','newWhatsappAccount','onSaveOpenchannelQueue','00:00:00','id,name,dialPrefix','output','CreateOrEditTriggerDialogController','HH:mm:ss','createList','Unable\x20to\x20retrieve\x20voice\x20channels','Dutch','VOICE.REALTIME','DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS','ZendeskAccount\x20properly\x20created','$setValidity','voice/mails/:id/messages','PhoneBar\x20API\x20Error','location','src/js/modules/main/apps/chat/views/chatQueues/edit/view.html/view-[chunkhash].html','chatQueuesTotal','field,alias','contactSearch','disconnect','getScheduler','/callysquare','ms-navigation-folded','log','mailCapacity','VtigerConfiguration\x20properly\x20deleted!','getDynamics365Configuration','FAX.EDIT_','sms','Russian\x20Female','userOpenchannelQueue:remove','pullAllBy','DashboardCustomController','','SYSTEM:GET_VARIABLES','questions','app/main/apps/sms','ZohoAccount\x20properly\x20saved!','Chinese\x20(China)','fullname','Round\x20Robin\x20Memory','app.dashboards.general.mail','Africa/Khartoum','arrayoptions','STAFF.ALL_AGENTS','getMap','autoAnswer','newMohSound','botname','Abandon','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE','project.name','sugarcrm','FaxQueue\x20properly\x20deleted!','Fields\x20copied!','chat/messages/:id/reject','mail/accounts/:id/send','selectedWhatsappAccountApps','createCompany','Validation\x20error','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html','addNewWhatsappQueue','api.cmHopper.update','app.openchannel.realtime.agents','selectedZohoConfiguration','src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','voice/agents/reports/describe','openchannelQueues','gotoDynamics365Accounts','voice/agents/reports/:id/clone','deleteSelectedWhatsappAccountInteractions','deleteNetwork','OPENCHANNEL.EDIT_','sr-RS','ngValue','Opera','Network\x20properly\x20saved!','America/Cayenne','Sindhi','version/restart','openchannelAccount@get','AgentsWhatsappRealtimeController\x20as\x20vm','automations/:id/clone','from','src/js/modules/main/apps/tools/views/variables/create/dialog.html/dialog-[chunkhash].html','arraydialCheckDuplicateType','composeInteraction','reLayout','Asia\x20Pacific\x20(Seoul)','chatInteraction','showInteraction','exportSelectedFreshdeskAccounts','OutboundRoute\x20properly\x20saved!','TCL:\x20\x20path','light-blue','America/Mexico_City','display_name','participants','gotoCustomDashboards','\x27en\x27','offlineMessage','append','ANALYTICS.EXTRACTEDREPORTS','DeskConfiguration\x20properly\x20saved!','stateParams','editstate','Pacific/Palau','assets/images/business/queueCampaigns.jpg','saveMetric','\x27text\x27','fax_queue_waiting_interaction:remove','@msUtils.firstLastDayMonth()','STAFF.SELECTED_TEAMS','root','app/main/apps/voice','queueAdd','delete\x20MailSubstatuss','SYSTEM:UPDATEVOICECALLREPORT','endTime','Message:save','api.userProfile.delete','src/js/modules/main/apps/settings/views/license/request/dialog.html/dialog-[chunkhash].html','language','deskConfiguration','MainController\x20as\x20vm','FAX.ALL_AGENTS','auth/local/forgot','permissions','UserFaxDashboardGeneralController','createOrEditWhatsappAccountWhatsappCannedAnswer','queryHistory.filter','icon-message-text','src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds-[chunkhash].html','src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts-[chunkhash].html','motion.folded','file','selectedContacts','userMailQueue:remove','selectedVoiceQueues','/extractedReports','addNewReport','api.jscriptyProject.delete','exportSelectedCustomDashboards','src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html/dialog-[chunkhash].html','CreateOrEditFreshdeskAccountItemDialogController','app.tools.dispositions','Medium','DASHBOARDS.SELECT_QUEUE','SYSTEM:GETchatWebsite','template_id','FaxQueueagentaddController','{{millis}}','Europe/Stockholm','European\x20Czech\x20Female','getOpenContacts','voiceMusicOnHold','English','getTags','firstName,lastName,email','api.intSugarcrmConfiguration.save','iframe','Last\x20Year','editdialog','displayName','putOtherCallsOnHold','customization','es-CR','cloudProviders','CONTACTMANAGER.NEW_HOPPER','saveShortcuts','Emojis','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view-[chunkhash].html','startCase','MxGraphSaveProjectAsController','DASHBOARDS.NOTAVAILABLE','VOICE.CHANSPIES','Service\x20Worker\x20is\x20not\x20supported','msNavigation::stateMatched','VtigerAccount\x20properly\x20created','Message\x20properly\x20accepted!','EditInternalAppinternaldialDialogController','alwaysWatchTheme','exportSelectedChatWebsiteProactiveActions','integrations/sugarcrm/fields/describe','apps.staff.telephones','-02:00','rpc@getTelephones','\x27CN\x27','\x27W\x27','IndexFactory','customTree','FaxAccountController\x20as\x20vm','dateEnd','addNewFaxQueue','outboundAnswerAgiCallsDay','questionId','user@getLists','selectedChatWebsiteOfflineMessages','api.attachment.delete','ENTER','home.fax','enableDtmfTone','mailAccountMailCannedAnswers','refreshAbandonedCalls','delete\x20plugin','EDIT_PERMISSION','European\x20French\x20Female','inband','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html/dialog-[chunkhash].html','exten','WhatsappQueues','CHAT.NEW_CHATQUEUE','SYSTEM:GETintDeskAccount','deleteItem','src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation-[chunkhash].html','chat_queue_waiting_interaction:save','sms/accounts/describe','deselectGlobalCustomFields','/marketplace','MyBody','The\x20squareRecording\x20will\x20be\x20deleted.','goToEditState','onSaveOpenchannelQueueChannel','Cannot\x20upload\x20the\x20sound','Project\x20','onVoiceQueue','app.voice.realtime','callbackurl:\x22','src/js/modules/core/theme-options/theme-options.html/theme-options-[chunkhash].html','plugin','OPENCHANNEL.EDIT_OPENCHANNELACCOUNT','sms/queues/:id/clone','AgentHomeDashboardMultiChannelFaxController','SYSTEM:DELETEsmsQueue','Interaction\x20properly\x20tagged!','slice','/chatQueues','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20templates?','users/:id/sms_interactions','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html','GeneralsController','stepNumber','spysmsInteraction','SYSTEM:USERPROFILE.ADDSECTIONS','updateQueue','Delete\x20QueueCampaign','0.7','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?','exportSelectedZendeskAccounts','prompt','\x27invalid\x27','SugarcrmAccountsController\x20as\x20vm','unreadMessage','read1stAt','\x27US\x27','src/js/modules/main/apps/motiondialer/views/realtime/realtime.html/realtime-[chunkhash].html','src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html/view-[chunkhash].html','display','deleteTrigger','apps.sms.realtime','msNavigation','join','Smtp\x20not\x20verified!\x20Remember\x20to\x20save\x20before\x20to\x20verify!','SquareRecording\x20properly\x20created','Number','fromJson','app/main/apps/contactmanager','ringingMute','internaldial','ar-MA','context','UserChatWebsite','chat/groups/describe','monthDayFrom','outbound','faxStatus','READ_PERMISSION','Filipino','getZendeskConfiguration','...','SYSTEM:GETprojects','MxGraphEditXMLController','alias','head','createOrEditDescription','faxQueuesTotal','Europe/Berlin','expanding','ChatWebsitelogoController','msNavTitle','FreshdeskConfiguration\x20properly\x20created','Arabic\x20(Jordan)','disableGetContact','SETTINGS.LICENSE','src/js/modules/main/apps/settings/views/generals/generals.html/generals-[chunkhash].html','exportSelectedWhatsappAccountInteractions','SmsAccountInteractionsController','registerStep','ServicenowConfiguration\x20deleted!','SmsCannedAnswer\x20properly\x20saved!','Campaigns','SEC_TO_TIME\x20(','Dynamics365AccountController','VtigerAccount\x20updated!','selectedDeskAccounts','America/Bahia','integrations/describe','api.squareRecording.save','updatedAt','/mailSubtatuses','VOICE.NEW_INTERNALROUTE','deleteSelectedContacts','selectedProjectSessions','stopUpload','data2','Russian\x20Male','IvrCampaignHopperHistoriesController','api\x20preview','TriggerAnyId','Voicemail','onSaveMailQueue','Salesforce','showDetails','browserGroupId','delete\x20Tags','arraydialMethod','Australia/Brisbane','Serbo-Croatian','Dynamics365Account\x20properly\x20saved!','onUpdateSmsQueue','outboundrouteApps','Interaction\x20has\x20been\x20closed!','deleteSelectedOpenchannelAccountInteractions','getPreview','cm/hopper_history/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20salesforceAccounts?','typeWrapper','languages','setUserStatus','offsetHeight','Preview','setBaseUrl','api.voiceQueue.getBlackLists','SYSTEM:GET_LIST_CUSTOM_FIELDS','saveCompany','Scheduler','red','SYSTEM:COPYREPORT','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','DASHBOARDS.NOT_ASSIGNED','ulaw','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20networks?','Integrations','stopping','erlangAbandonmentRate','setupSteps','newContact','home.contacts','deleteSelectedGlobalCustomFields','msWidgetEngine','@babel/helpers\x20-\x20typeof','queryReport','snakecase','removeApi','networks/:id','allconditions','deletescreenRecording','SYSTEM:DELETEvoiceMusicOnHold','FromId','items','src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts-[chunkhash].html','integrations/freshdesk/accounts/:id/configurations','id,name,interval,IntervalId','fax/interactions/describe','getFaxQueues','inboundrouteApps','api.intFreshdeskAccount.delete','item','split','\x27ko\x27','SYSTEM:GETagents','voicePrefixagentaddController','Asia/Ust-Nera','FooterController','integrations/freshdesk/accounts/:id/clone','\x20Contacts\x20selected','blue-grey-A200','populateResults','sms/messages/describe','addNewVoiceRecording','selectedMusicOnHolds','phone','chooseFromList','SIP','app.settings.license','JSCRIPTY.EDIT_PROJECT','onSave','deleteSelectedCannedAnswers','note','openchannel/queues/:id/clone','selectAllCustomDashboards','userProfileSection','Help','sms_queue_waiting_interaction:remove','cannedAnswer','Smtp\x20properly\x20verified','app/errors/404','pTalking','newDisposition','apr','New_Tab','CloudProvider\x20properly\x20created','msWidgetBack','toastyConfigProvider','MailSubstatus\x20properly\x20created','salesforceConfiguration','savechanSpy','Outbound\x20route\x20not\x20deleted!','containerPos','getScreenRecordings','f50000','icon-console','sounds/:id/download','cmCompany@get','id,mailbox','Module\x20not\x20included\x20in\x20the\x20license','speakerMute','src/js/modules/main/apps/analytics/views/reports/create/dialog.html/dialog-[chunkhash].html','companiesMap','MsThemeOptionsController','isOpen','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20globalCustomFields?',':8089/ws','VoiceExtensionId','+08:30','ms-navigation-horizontal-mobile-menu-active','paragraph','msCard::cardTemplateLoaded','SmsQueueteamaddController','src/js/modules/main/apps/dashboards/views/general/user/user.general.html/user.general-[chunkhash].html','CDR','setText','/customDashboards','legend','delete\x20Projects','SYSTEM:DELETEcmCompany','h264','ms-nav-folded\x20ms-nav-folded-open','Contact\x20Relation\x20Update','Contact\x20properly\x20updated!','Queue\x20Report','exportSelectedPlugins','selectedMode','onReadyEditor','allReportsSelected','integrations/freshdesk/configurations/:id/fields','Gujarati','debounce','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicemails?','/teams','users/whoami','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','SYSTEM:DELETEcmList','GROUP_CONCAT\x20(','Popup','SYSTEM:queueCampaign.REMOVELIST','register','allResourcesEnabled','IvrCampaigns','RunReportDialogController','Admin','api.sound.delete','getOpenchannelAccounts','treeDefaultEvents','mailMessage','onForceLogout\x20->\x20data','getFaxAccounts','vm.selectedCompany','\x27report_whatsapp_queue\x27','UserProfile\x20updated!','createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields','deleteContext','delete\x20Lists','loadShortcuts','Key','chat/messages/:id/clone','mycontacts','Delete\x20Template','Start\x20Video\x20Call','element','Laothian','loading','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE','avgTalkTime','hasBlackLists','hostname','+10:00','square/projects/:id/users','fax/reports/transfer/describe','intFreshdeskAccount','ChatWebsitesController\x20as\x20vm','mail/interactions/:id/tags','WhatsappAccountId','collapseAnimation','Textarea','app.navigation','The\x20plugin\x20will\x20be\x20deleted.','chatApplication','exportSelectedWhatsappQueues','Delete\x20triggers','Konqueror','Import\x20process\x20failed!','interactions','sumHoldTime','take','chatInteraction:save','createOrEditSmsAccount','triggerActions','\x20will\x20be\x20run.','*,*,*,*','canned_answers/describe','Not\x20defined','','chat/websites/:id/offline','authInterceptor','addNewSmsAccount','zendeskAccount','IvrCampaign\x20properly\x20deleted!','user:save','api.mailAccount.update','getItems','hidden','orange','AgentPermissionsController','conditions','Europe/Minsk','spyopenchannelInteraction','getInfo','app.whatsapp.realtime.queues','100','newCustomDashboard','processes','deleteSmsAccountApp','available','SYSTEM:GET_LISTS','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html/view-[chunkhash].html','saveMusicOnHold','Atlantic/Azores','integrations/vtiger/configurations/:id/subjects','api.template.delete','clone','French\x20(Canada)','selectAllMailSubstatuses','Send\x20Anyway','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog-[chunkhash].html','queryFinal.filter','secToTime','toggleSidenav','The\x20customDashboard\x20will\x20be\x20deleted.','createOrEditOpenchannelAccountOpenchannelCannedAnswer','showLoadingIndicator','VoiceRecordingsController\x20as\x20vm','mail_queue:save','\x20will\x20be\x20uninstalled.','userpic','English\x20(UK)','newSugarcrmConfiguration','ha1','api.mailSubstatus.delete','selectedSmsQueues','api.cloudProvider.save','SYSTEM:UPDATECMHOPPERHISTORY','NO\x20QUERY','auto','apps.motiondialer','src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog-[chunkhash].html','ExecIf','whatsapp/accounts/:id/applications','Notification\x20API\x20not\x20supported','deselectDeskAccounts','templates/:id','simple','autoreply','ALWAYS','MxGraphDialogController','api.jira','originalMessage','\x27star\x27','Inactive','getVoicePrefixes','internal','sugarcrmConfiguration','getSelectedVariable','getApi','krkoreanfemale','createOrEditVoicemail','CreateOrEditListDialogController','config','api.screenRecording.save','queueCampaignHoppers','onRemoveVoiceQueue','placed','selectedQueueCampaignHoppers','TriggersController','POST','openchannelCapacity','selectSession\x20->\x20session','mail/accounts/:id/canned_answers','setScrollEl','blacklist','Africa/Maputo','addNewZohoConfiguration','uk-UA','delete\x20screenRecording','SYSTEM:GETvoiceQueues','canned_answers/:id','delete\x20salesforceConfiguration','','faxQueue:save','EditOpenchannelAccountAppqueueDialogController','progresslogin','AgentsOpenchannelRealtimeController\x20as\x20vm','images','MOTIONDIALER.MOTIONDIALER','phoneBarRemoteControlPort','numbersto9','showSmsInteraction','chrome','/queue_calls','America/Mazatlan','Agent\x20Only','options','app.jscripty.projects','TOOLS.NEW_TEMPLATE','team@get','charAt','SquareRecordingsController\x20as\x20vm','Message\x20has\x20been\x20accepted!','newIndex','arraycallcounter','autoCreate','telegram','CONTACTMANAGER.COMPANIES','internalDial','always','openDialog','integrations/zoho/configurations/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20whatsappCannedAnswer?','Companies','api.chatProactiveAction.update','Numbers\x20to\x209','api.action.save','selectAllChanSpies','ko-KR','Malagasy','SETTINGS.LICENSE_REQUEST_SENT','saveChatGroup','Report\x20deleted!','selectedDescriptions','addNewscreenRecording','ZendeskAccountsController\x20as\x20vm','\x27nonat\x27','retry','capitalize','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperBlack?','WhatsappCannedAnswer\x20properly\x20deleted!','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view-[chunkhash].html','The\x20project\x20will\x20be\x20deleted.','SugarcrmConfiguration\x20deleted!','cloudProvider@get','EditInboundAppqueueDialogController','src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html/dialog-[chunkhash].html','Boxed','VoicemailsController','user_has_fax_interactions:save','Pacific/Apia','WHATSAPP.SELECTED_AGENTS','Successful\x20call','onRemoveOpenchannelQueueChannel','transferNumber','America/Vancouver','\x27voice\x27','src/js/modules/main/apps/staff/views/teams/teams.html/teams-[chunkhash].html','OutboundRouteController\x20as\x20vm','\x27ap-southeast-2\x27','onUpdateFaxInteraction','analytics/default_reports/describe','CreateOrEditSalesforceAccountItemDialogController','\x27it\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappQueues?','dialActive','phoneBarEnableScreenRecordingByAgent','DASHBOARDS.ATTENTION','queryChannels','chat/reports/transfer/:id/clone','newMailSubstatus','CreateOrEditWhatsappAccountDialogController','The\x20general\x20will\x20be\x20deleted.','DASHBOARDS.GENERAL','sessionConf','msNavigationAgentService','selectedSmsAccountApps','deletevoicePrefix','Asia/Taipei','+14:00','VIDEO.EDIT_SCREENRECORDING','app.fax.realtime','rpc/outbound/channels','CreateOrEditOfflineMessageDialogController','Yes','ACCOUNTS','$logProvider','Thai','textarea','app.sms.realtime.agents','src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog-[chunkhash].html','excludeFrom','defaultHeaderWhiteLabel','clearAll','report','prefix','kind','schedules/describe','voicePrefix@get','accounts','MOTIONDIALER.EDIT_HOPPER','apikeymanagerdialog','Delete\x20Schedule','addClass','FreshsalesConfiguration\x20properly\x20saved!','fi-FI','apps.staff.teams','getProjectSessions','selectAllExtractedReports','selectedODBC','mailCannedAnswer','finals','cm/lists/:id/fields','dialMethod','answer','app.integrations.freshdeskAccounts','IvrCampaign','Lingala','forgot','Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20','getNetworks','addNewMailCannedAnswer','saveDynamics365Account','en-AU','exportSelectedReports','getServicenowAccounts','deleteSound','InboundRouteController\x20as\x20vm','id,name,crudPermissions','DEFAULT','metric','TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE','editChatWebsiteApp','US\x20English\x20Female','dispositions/:id','vm.search','dialerCall','app.chat.chatWebsites','app.login','export','SMS\x20Report\x20Queue','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.html/listadd-[chunkhash].html','Pauses','api.analyticExtractedReport.save','Would\x20you\x20like\x20to\x20change\x20the\x20status\x20of\x20the\x20process\x20#','America/Cambridge_Bay','trunks','createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','\x27EU\x27','CreateOrEditvoicePrefixDialogController','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html','@from-voicemail','selectedMailAccountMailCannedAnswers','logout','\x27{{voiceMail.mailbox}}@from-voicemail\x27','INTEGRATIONS.SERVICENOWACCOUNTS','deleteCompany','Pause','Greek','delete\x20Teams','selectAllScreenRecordings','deleteCannedAnswer','Scheduled\x20call','setPermission','googleSsoEnabled','ONLY_IF_OPEN','newCustomField','InternalRoute\x20updated!','externaldial','api.team.save','faxInteractionDownload','limitCalls','tls','src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html/extractedReports-[chunkhash].html','VIDEO.CANT_DOWNLOAD_THIS_FILE','cm/lists/describe','deleteWhatsappCannedAnswer','jv-ID','showChatInteraction','insertHtml','connection','msNav::pushToLockedList','Lowest','Urdu','onSearchFieldsInit','factory','userStatusOptions','variables/:id/clone','deleteAllCondition','playback','arraytype','deleteChatQueue','sms_queue_waiting_interaction:save','buffer','SMS\x20Messages','templateSettings','DASHBOARDS.NONE','app.whatsapp.whatsappAccounts.edit','EditInternalAppdialDialogController','app.voice.voicemails','binding','filterByTags','removeShortcut','@autocomplete','/companies','pauseTypeFilter','api.cm.lists','DASHBOARDS.SELECT_DATE_RANGE','Telephones','users/:id/groups','TriggerAnyConditionsController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20users?','timeoutId','onSaveFaxQueueChannel','PredictiveQueueCampaignDialogController','Contact\x20properly\x20merged!','messagesAlignment','Fwd:\x20','thirdLevel','\x27csc\x27','sortableTable','whatsapp/accounts/:id/clone','mailInteraction@get','app.fax.realtime.queues','CreateOrEditSalesforceAccountDialogController','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20variables?','mediaConstraints','AgentsMailRealtimeController','IS_GREATER_THAN_OR_EQUAL_TO','exportSelectedScreenRecordings','Antarctica/DumontDUrville','TemplatesController','FreshdeskConfiguration\x20properly\x20deleted!','localHold','selectedVoicemailMessages','app.voice.inboundroutes','canEdit','THEMES','UserOpenchannelDashboardGeneralController','AgentHomeVoiceController','interval','-bg','dualMultiselectOptions','Fewest\x20Calls','onRemoveWhatsappQueueChannel','Arabic\x20(Tunisia)','mailQueue:save','src/js/modules/main/apps/settings/views/system/system.html/system-[chunkhash].html','\x27update\x27','FAX.SELECTED_AGENTS','$digest','\x27turn\x27','ms-search-bar-expanded','fr-FR','CALLYSQUARE.NEW_PROJECT','levels','User\x20password\x20properly\x20updated!','fax/messages/:id/reject','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxAccounts?','AgentHomeContactsController','ExternIP','TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE','CreateOrEditGeneralDialogController','app.settings.generals','\x27report_chat_transfer\x27','CALLYSQUARE.ODBC','OpenchannelQueueController\x20as\x20vm','deleteSelectedDispositions','Spanish\x20(Venezuela)','voicemailMessages','Email\x20Messages','onSearch','ca-central-1','Italian','The\x20license\x20has\x20been\x20updated!','\x20properly\x20saved!','delete\x20Contexts','endRangeValue','convertDuration','UserOpenchannelDashboardGeneralController\x20as\x20vm','userWhatsappQueue:save','dialogFlowLanguage','Kyrgyz','ForgotPasswordController\x20as\x20vm','selectAllContexts','saveDraft','Contact\x20deleted!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customFields?','app/forgot','auth/local','api.intZohoAccount.save','motion.user:','whatsappCannedAnswers','chat/proactive_actions/describe','intZohoAccount','EditOpenchannelAccountApp','getTriggerActions','onSaveMailQueueChannel','zohoAccount','true','chatWebsite@get','vm.queueCampaign.dialMethod\x20===\x20\x27booked\x27','getVoiceQueues','paginate','-09:30','exportSelectedChanSpies','\x27booked\x27','users/:id/sms/interactions','openMailDraft','analytics/extracted_reports/:id','realm','MailAccount\x20properly\x20deleted!','app.chat','callbackUrl','#F44336','motiondialer','src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html/userProfiles-[chunkhash].html','EditWhatsappAccountAppintervalDialogController','Openchannel\x20Report\x20Transfer','editOutboundRouteApp','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html/dialog-[chunkhash].html','America/Blanc-Sablon','SYSTEM:QUEUES_ASSOCIATION','callysquare','square/projects/:id','apps.home.fax','QueueNotify','exportSelectedInternalRoutes','SugarcrmAccountConfigurationsController','<%3B','whatsappInteraction:save','hours','deleteSelectedUsers','api.chatAccounts.account','EditOpenchannelAccountAppautoreplyDialogController','dialPredictiveIntervalMinThreshold','users/:id/teams','SYSTEM:GETANSWERS','src/js/modules/main/apps/voice/views/voiceQueues/edit/view.html/view-[chunkhash].html','getSmsQueuesWaitingInteractions','CustomDashboard\x20properly\x20created','MsTimerController','Agent\x20properly\x20deleted!','ngFlowOptions','saveFaxAccount','createOrEditChatWebsiteChatCannedAnswer','closest','attachments','#2196f3','fax/accounts/:id/clone','newTrunk','selectedMailAccounts','src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html/horizontal-[chunkhash].html','Yesterday','DASHBOARDS.LAST_WEEK','SYSTEM:GETwhatsappAccount','ChatQueueController','exportSelectedOutboundRoutes','msChipColor','onClickTab','clearDate','Africa/Monrovia','SmsRealtimeController\x20as\x20vm','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.html/view-[chunkhash].html','America/Argentina/Cordoba','compact','deselectZohoAccounts','voiceQueueReport','{{\x20name\x20}}\x20<{{\x20email\x20}}>','ignoreMouseEvents','app.whatsapp','voice/queues/reports/index','notifications/','getZohoAccounts','createOrEditchanSpy','/metrics','WhatsappCannedAnswer\x20properly\x20saved!','Project\x20properly\x20saved!','gotoReports','VtigerAccountController','newOdbc','app/main/apps/video','duplicatedRows','createOrEditOpenchannelAccount','MsFormWizardController','dynamics365Account','INTEGRATIONS.EDIT_SERVICENOWCONFIGURATION','createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','Pashto','PreviewDialogController','chatInteraction:update','/chanSpies',';font-size:','getFaxAccountInteractions','msApi::resolveSuccess','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html','closed','Czech','ru-RU','CreateOrEditSmsAccountDialogController','bar-container','protocol','The\x20salesforceConfiguration\x20will\x20be\x20deleted.','src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html/whatsappQueues-[chunkhash].html','TOOLBAR.HINDI','isDisabled','currentconferenceSessions','Pacific/Gambier','faxMessage:save','rpcFaxQueuesWaitingInteractions','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html','deselectUserProfiles','scales','onSaveUserMailQueue','$watch','saveAgent','TOOLS.NEW_TRUNK','Messages','users/:id/unpause','savePassword','Message\x20not\x20found!','src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view-[chunkhash].html','saveDynamics365Configuration','gotoLastStep','deleteSelectedVoicemailMessages','OpenchannelAccountDispositionsController','Agent\x20logout','extractedReport','Asia/Sakhalin','createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','America/La_Paz','lastPauseAt','getFreshsalesAccounts','id,name,level,ParentId','deleteSelectedFaxAccountInteractions','newChatCannedAnswer','chatQueue:update','FreshdeskAccountController','loginOauth','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20inboundroutes?','createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description','sms/messages/:id/status','id,exten','rpcWhatsappQueues','Template','Turkish','\x20is\x20not\x20valid','The\x20servicenowAccount\x20will\x20be\x20deleted.','getResources','triggers/:id/all_conditions','getTrustedURL','Georgian','DASHBOARDS.CANCEL','DASHBOARDS.INFO','/api/settings/1/logo','newFaxQueue','download','delete\x20Users','contacts','ERROR\x20OPENING\x20JSCRIPTY\x20PROJECT','MailMessageId','Friend','embedOptions','Arabic\x20(Saudi\x20Arabia)','The\x20zendeskConfiguration\x20will\x20be\x20deleted.','sms/accounts/:id/status','openchannel/accounts/describe','mailQueue:remove','SYSTEM:GETwhatsappAccounts','WhatsappQueueId','Africa/Johannesburg','toUpperCase','\x2718\x27','boolean','getCannedAnswers','Pacific/Kiritimati','Arabic\x20(Israel)','showTooltip','src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.html/dialog-[chunkhash].html','CALLYSQUARE.NEW_ODBC','ivr','SMS.EDIT_SMSCANNEDANSWER','CreateOrEditZendeskAccountItemDialogController','savename','addNewTemplate','apiResolver','/queues','fontFamily','whatsappAccountWhatsappCannedAnswers','userSmsQueue:remove','smsAccountApp','Announce_Overrides','selectAllMetrics','freshsalesAccounts','EditWhatsappAccountAppagentDialogController','msApi::requestSuccess','getOpenchannelQueuesWaitingInteractions','VOICE.VOICEMAILS','Russell','MailSubstatus\x20properly\x20deleted!','AgentHomeSmsController','Gwineth\x20(Welsh,\x20Female)','VtigerAccountController\x20as\x20vm','openchannel/queues/:id/teams','saveChatCannedAnswer','mailCannedAnswer\x20#','gotoSmsAccounts','Project\x20properly\x20deleted!','app/errors/500','myQueues','List\x20properly\x20deleted!','createOrEditFreshsalesConfiguration','Pacific/Guadalcanal','Khmer\x20(Cambodia)','apps.marketplace','msWidget','Description\x20deleted!','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog-[chunkhash].html','SYSTEM:GETcmCompany','src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view-[chunkhash].html','openchannelQueuesTotal','TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE','isWebRTCSupported','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20ivrCampaigns?','Europe/Chisinau','histories','/telephones','getContact','AgentHomeDashboardMultiChannelMailController','ServicenowAccountController\x20as\x20vm','/assets/images/theme-options/horizontal-nav.jpg','The\x20openchannelAccount\x20will\x20be\x20deleted.','app.integrations.freshsalesAccounts','mute','isSearchBarVisible','/globalCustomFields','telephoneForm','selectedMailSubstatuses','CreateOrEditZohoConfigurationDialogController','Streets','ds.clock','America/Ojinaga','icon-minus-circle','Windows\x20App','app.marketplace','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20companies?','passwordPattern','Hindi\x20(India)','exportDate','getCampaigns','iPod','MIN','createdAt,updatedAt,id,save_name,converted_format,audio','home.whatsapp','onSaveCampaign','getMailInteractions','tooltipVisible','inboundQueues','Delete\x20WhatsappAccount','Openchannel\x20Report\x20Queue','Report\x20properly\x20saved!','src/js/modules/main/apps/voice/views/realtime/queue_params/view.html/view-[chunkhash].html','api.smsQueue.update','intDynamics365Field','getExtractedReports','createOrEditUser','downloadFaxInteraction','','\x27alaw\x27','Safari','sip_id','TOOLS.CANCEL','ar-TN','getOutboundRoutes','ContactsController','voiceStatusTime','queueNotifyMethod','CreateOrEditServicenowAccountItemDialogController','+04:30','deleteSelectedODBC','saveContact','deleteReport','session\x20#','selectedDynamics365Configuration','addPart','getChatWebsiteInteractions','height','Chrome','Africa/Ndjamena','isString','recording','app.settings.customizations','Europe/Vienna','addNewSmtp','sms/queues/:id/members','leave','apps.analytics.reports','soundPlayer','$http','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unavailable\x27','CreateOrEditZohoAccountDialogController','arraymessagesAlignment','Module\x20has\x20been\x20updated!','passwordResetAt','starttime','America/Hermosillo','api.disposition.delete','idField','Auth','voiceCalls','describeTable','onIntegrationInit','\x27newTab\x27','newZendeskAccount','fax_queue:save','msMasonryItem:finishReLayout','deselectExtractedReports','arraybuffer','searchText','forwardTemplate','\x20is\x20not\x20supported!','MetricsController\x20as\x20vm','TagsController\x20as\x20vm','permission','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','removeColor','recordingFormat','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','Delete\x20SmsCannedAnswer','deleteSalesforceAccount','app.errors.error-404','&?msTimelineLoadMore','createOrEditIvrCampaign','integrations/freshsales/accounts/:id/configurations','SYSTEM:GETsmsAccounts','id,field,operator,value,createdAt,updatedAt','userFaxQueue:remove','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html','VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING','unknown\x20device','deleteSubjectConfirm','Teams\x20association\x20has\x20been\x20updated!','LicenseController\x20as\x20vm','AgentsVoiceRealtimeController\x20as\x20vm','/projects','/motiondialer','OpenchannelQueue\x20properly\x20saved!','Pacific/Norfolk','General','AgentsSmsRealtimeController','Armenian','variableName','freshsalesConfiguration','saveSugarcrmConfiguration','America/Resolute','QueueParamsMotionDialerRealtimeController\x20as\x20vm','INTEGRATIONS.SUGARCRMACCOUNTS','EQUALS','hideStep','app.settings.networks','ms-nav-toggle','$inject','intersection','gotoInternalRoutes','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html','Urdu\x20(Pakistan)','Select','squareProject@get','openchannel/accounts/:id/applications','bulkCreate','de-DE','SYSTEM:GET_VOICEQUEUES','\x27alpha\x27','Spanish\x20(Peru)','Belarusian','actions','\x20properly\x20deleted!','DASHBOARDS.ABANDONED','QueueCallsVoiceRealtimeController\x20as\x20vm','MusicOnHolds','\x22>','clearFilter','rpcFaxQueues','SYSTEM:GETLISTS','STAFF.EDIT_TELEPHONE','ZendeskConfiguration\x20deleted!','src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html/dialog-[chunkhash].html','loadMore','cancelInterval','msApi::requestError','wed','Chinese\x20(Simplified)','CreateOrEditMailQueueDialogController','selectAllWhatsappQueues','Type','addNewExtractedReport','createObjectURL','Spanish\x20(Uruguay)','InternalRoutesController','FaxQueue\x20updated!','setOrientation','wechat','rpc@getOutboundChannels','app.voice.realtime.abandonedcalls','readOnly','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?','license/describe','return','user_has_openchannel_interactions:remove','selectedPauses','DASHBOARDS.DRAFT_SAVE_WARNING_MESSAGE','rpc/sms/queues','AgentsChatRealtimeController','deleteSelectedMusicOnHoldMohSounds','ChatProactiveAction\x20properly\x20saved!','ChatQueueController\x20as\x20vm','CSCTelecom','openchannelInteraction:update','/plugins','show','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html/view-[chunkhash].html','Delete\x20ChatCannedAnswer','\x27admin\x27','saveFreshsalesConfiguration','closeFolded','Group\x20properly\x20deleted!','The\x20component\x20will\x20be\x20deleted.','Delete','recordings','chatTransferReport','delete\x20ServicenowAccounts','src/js/modules/main/apps/settings/views/updates/update/dialog.html/dialog-[chunkhash].html','selectedMailQueues','VoiceQueueController\x20as\x20vm','exportSelectedAiTools','variable_id','outbounddial','send','MusicOnHold\x20updated!','jscripty/sessions/reports/:id/questions','users/:id/contacts','Trunks','chatQueue:remove','apps.mail.mailQueues','getQueues','TelephonesVoiceRealtimeController','EditWhatsappAccountApptagDialogController','Reset\x20List','deleteVoicemailMessage','api.sms.account','/intervals','delete\x20zendeskAccount','addNewCustomization','automation','addNewVoiceQueue','Kannada\x20(India)','getOpenchannelAccountApps','contextmenu','adminOnly','mail/messages/:id/reject','userProfile','api.voiceContext.delete','Delete\x20SugarcrmAccount','weeks','granted','onDispositionChange','dashboards/:id/clone','mergeContact','chat-interaction','getWhatsappAccountWhatsappCannedAnswers','sound@get','en-US','TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE','Compose','EditMailAccountAppgotoifDialogController','others','gotoUserProfiles','Switch','apps.voice.voicePrefixes','CAMPAIGN\x20NOT\x20ACTIVE','SYSTEM:DELETEfaxAccount','selectedOperator','chat/reports/queue/:id/clone','moveQueueCampaignHopperFinal','integrations/zendesk/accounts/:id/fields','layoutMode','api.telephone.changePassword','src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog-[chunkhash].html','fax.faxAccounts','src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager-[chunkhash].html','/salesforceAccounts','communications','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?','user_has_openchannel_interactions:save','userVoiceQueueRt:save','TelephoneController\x20as\x20vm','differenceBy','apps.analytics','Delete\x20voicePrefix','EditInboundAppdialDialogController','Moldavian','substr','ring','mwFormViewer','voice/mohs/describe','/login?token&userId','apps.integrations.deskAccounts','delete\x20VtigerAccounts','rpc/chat/queues/:id/notify','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27unknown\x27','api.intFreshsalesAccount.delete','ContactController','Jscripty\x20Answers','onSaveVoiceQueueReport','src/js/modules/main/apps/contactmanager/views/contacts/import/import.html/import-[chunkhash].html','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html/view-[chunkhash].html','/avatar','SYSTEM:DELETEmailAccount','Contact\x20properly\x20created','ServicenowAccount','Cannot\x20find\x20module\x20\x27','_self','modelCtrl','Resource\x20\x22','ms-navigation-horizontal-node','Project\x20properly\x20created','null','arrayextensionMonitor','Pacific/Efate','onAddstream\x20->\x20data','fax/interactions/:id/download','userProfile/sections/:id/clone','selectedIntervalIntervals','src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html/dialog-[chunkhash].html','selectedReportFields','isStepValid','unix','api.sound.save','Swedish\x20(Sweden)','\x22\x20called\x20successfully','timeRangeFrom','motion.newsAlertHide:','ivrCampaigns','plugins','To\x20is\x20mandatory','freshdeskAccount','src/js/modules/main/apps/settings/views/networks/networks.html/networks-[chunkhash].html','QueueCampaignteamaddController','Failed\x20to\x20retrieve\x20pm2\x20processes','webrtc::logout','\x27sms_queues\x27','MarketplacePluginController\x20as\x20vm','Incoming\x20call\x20from:\x20','Error500Controller','OutboundRoute\x20properly\x20deleted!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappAccounts?','api.voicePrefix.update','app.openchannel.openchannelAccounts.edit','ivrTotalCallsDays','ANALYTICS.EDIT_EXTRACTEDREPORT','cm/lists/:id/users','outboundBlacklistCallsDay','ChatWebsiteController\x20as\x20vm','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27wrapup\x27','whatsapp/queues/:id','SMS.ALL_AGENTS','InboundRoute','apps.tools.schedules','src/js/modules/main/apps/motiondialer/views/realtime/queue_params/view.html/view-[chunkhash].html','Smtp\x20properly\x20deleted!','\x27intelepeer\x27','\x27e\x27','onUserUpdate','sessionId\x20required','A100','squareOdbc@get','callbackQueue','delete\x20deskAccount','addAccountApplications','s:\x20Skip\x20the\x20playback\x20of\x20the\x20channel\x20type\x20(i.e.\x20SIP,\x20IAX,\x20etc)\x20when\x20speaking\x20the\x20selected\x20channel\x20name.','app/main/apps/plugins','acceptedMessages','Mobile\x20','accountProperty','importReport','msNavButton','px,','America/Eirunepe','SMS.SMS','OpenchannelAccountController','src/js/modules/main/apps/fax/views/faxQueues/edit/view.html/view-[chunkhash].html','SYSTEM:GETvoiceExtension','Pacific/Fiji','createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','rpcAgents','America/Regina','chatWebsiteChatCannedAnswers','IvrCampaignHopperFinalsController','$element','deleteWhatsappQueue','createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','exportSelectedQueueCampaigns','SYSTEM:GET_OUTBOUNDROUTES','@uniqueid','format','dateRangeManager','Round\x20Robin','app.openchannel.openchannelAccounts','amber-fg','twitter','Tag\x20properly\x20deleted!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mohSounds?','rpcQueues','isStepNumberValid','rewriteRouting','searchTextChange','The\x20globalCustomField\x20will\x20be\x20deleted.','tr-TR','createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','chatPause','SYSTEM:SENDMESSAGE','indexOf','Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)','Text','CreateOrEditSugarcrmAccountDialogController','ENDS_WITH','The\x20openchannelQueue\x20will\x20be\x20deleted.','Odbc','CustomDashboardController','delete\x20zendeskConfiguration','Asia/Yerevan','id,name,fullname,internal','imagesLoaded','scrollTop','analytics/default_reports/:id/run','bind','onUserVoiceQueue','integrations/freshsales/accounts/:id/clone','api.voiceRecording.update','GRANTED','msNavigationService','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20servicenowConfiguration?','SYSTEM:GETusers','Amharic\x20(Ethiopia)','vm.selectedTags','brportuguesefemale','voiceDialReport','SYSTEM:squareProjects.ADDUSERS','gotoVoicemails','Europe/Volgograd','getIntervals','WHATSAPP.WHATSAPPACCOUNTS','faxQueue@get','api.intZendeskConfiguration.save','voice/queues/:id','isEqual','FreshsalesConfiguration\x20properly\x20created','exportSelectedChatWebsites','id,name,role','Message\x20has\x20been\x20rejected!','Kirundi','abandoned','white-bg','AgentGeneralHomeController','createOrEditChatWebsite','onSaveSmsInteraction','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20customField?','integrations','preferredLanguage','lastIndexOf','email','faxAccount','api/cm/contacts/upload','api.plugin.delete','exportSelectedVoiceRecordings','smsInteraction:save','getFirstAvailableContact','treeStructure','Campaign\x20Without\x20Lists','CreateOrEditTagDialogController','deleteMailQueue','OPENCHANNEL.REALTIME','license/:id/clone','DialogController','\x27tls\x27','integrations/vtiger/accounts/:id','userAgent','square/odbc/describe','openchannel/messages/:id/clone','routeId','motion.shortcuts','Error\x20updating\x20locally\x20stored\x20tabs','es-PA','selectedReports','INTEGRATIONS.DYNAMICS365ACCOUNTS','getApiKey','voiceContext@get','ChatInternalController','smsAccountApps','deletePause','${EXTEN}','app.header','motion.layoutStyle','analyticExtractedReport@get','customDashboards','IntervalId','module','SETTINGS.EDIT_CLOUDPROVIDER','America/Argentina/Rio_Gallegos','styles','Kannada','createOrEditPlugin','startTimeAttr','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27paused\x27','/*\x20Content\x20hack\x20because\x20they\x20wont\x20fix\x20*/\x0a/*\x20https://github.com/angular/material/pull/8067\x20*/\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-1,\x0amd-content.md-@themeName-theme.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue1Color;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-2,\x0amd-content.md-@themeName-theme.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue2Color;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-3,\x0a\x20md-content.md-@themeName-theme.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue3Color;\x0a}\x0a\x0a/*\x20Text\x20Colors\x20*/\x0a[md-theme=\x22@themeName\x22]\x20a\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultColor;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast4;\x0a}\x0a\x0a/*\x20Primary\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryDefaultColor;\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue1Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue2Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue3Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast4;\x0a}\x0a\x0a/*\x20Primary\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentDefaultColor;\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue1Color;\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue2Color;\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue3Color;\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast4;\x0a}\x0a\x0a/*\x20Accent\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnDefaultColor;\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue1Color;\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue2Color;\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue3Color;\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast4;\x0a}\x0a\x0a/*\x20Warn\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundDefaultColor;\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue1Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue2Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue3Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast4;\x0a}\x0a\x0a/*\x20Background\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Color\x20!important;\x0a}','Asia/Chita','queryMessage','SYSTEM:DELETEschedule','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27unavailable\x27','api.openchannelMessage.accept','saveUser','MxGraphImportXMLController','HELP.HELP','getMusicOnHolds','MotionDialerRealtimeController\x20as\x20vm','Unable\x20to\x20convert\x20answer','voiceMail.mailbox','api.contact.save','dayOfWeekFrom','European\x20Portuguese\x20Female','\x20will\x20be\x20overwritten\x20by\x20the\x20fields\x20of\x20the\x20contact\x20#','model','SYSTEM:GET_APIKEY','terminate\x20->\x20session','apps.tools','createOrEditMailAccount','ui-sref','dispositionsValues','^msNavigationNode','blue-grey-A200-fg','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20openchannelCannedAnswer?','The\x20smsQueue\x20will\x20be\x20deleted.','English\x20(Canada)','getMailAccounts','WhatsappQueue\x20updated!','selectedMailAccountInteractions','getAbandonedCalls','DASHBOARDS.SELECT_SUBSTATUS','America/Grand_Turk','intFreshsalesAccount@get','newSmsQueue','app.dashboards','EditChatWebsiteApptagDialogController','deselectOutboundRoutes','saveMailAccount','createOrEditscreenRecording','selectedTriggers','selectedTriggerAnyConditions','\x27S\x27','Tatyana\x20(Russian,\x20Female)','deleteSmsAccountInteraction','sa-east-1','gotoSalesforceAccounts','QueuesOpenchannelRealtimeController','UserMailQueue','api.intDynamics365Configuration.save','msSidenavHelper','isActive','AboutController\x20as\x20vm','am-ET','chatWebsiteApp','autoClose','\x22path\x22\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','unhold','id,name,type,dialMethod,dialActive','addNewTrigger','Pacific/Chatham','ActionId','Pirate','apps.voice.chanSpies','cmContact@getHopperHistories','CreateOrEditDynamics365ConfigurationDialogController','navigator','QueuesWhatsappRealtimeController\x20as\x20vm','VOICE.NEW_CHANSPY','Projects','secondDisposition','hopperHistory\x20#','AgentGeneralInteractionController','constructor','\x27us-west-2\x27','api.campaign.save','zh-TW','src/js/modules/forgot/forgot.html/forgot-[chunkhash].html','openchannel/messages/describe','voice/mohs/:id','delete\x20schedule','integrationReport','api.mailSubstatus.save','deleteOpenchannelAccount','FreshdeskAccountsController\x20as\x20vm','bottom-right','SquareProjects','networks/describe','hangup','api.setting.delete','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view-[chunkhash].html','SYSTEM:GETmailAccounts','apps.voice','onSubmit','CreateOrEditSmtpDialogController','\x22\x20does\x20not\x20exist!\x20Falling\x20back\x20to\x20the\x20\x22default\x22\x20theme.','Fax','What\x20would\x20you\x20name\x20your\x20company?','saveInternalRoute','acceptcall','treeCustomData','onSaveSmsQueue','voicemail','delete\x20team','Would\x20you\x20like\x20to\x20update\x20your\x20system?','session','CreateOrEditMusicOnHoldDialogController','ms-card','selectAllODBC','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?','Norwegian','detectBrowser','JscriptyProjectController\x20as\x20vm','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html','MALE','chatMessage','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html','windowHeight','settings/:id/favicon','OpenchannelQueueteamaddController','Disposition','EditSmsAccountAppagentDialogController','newSmsAccount','America/Argentina/La_Rioja','Zulu\x20(South\x20Africa)','cm/hopper_final/voice/queue/moveContacts/:id','createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','mail/interactions/:id','/ms-widget-engine.','cm/hopper_final/:id','ExtractedReport','delete\x20odbc','sms.smsAccounts','newSmtp','\x27uk\x27','SMS.REALTIME','google_cloud_tts_text_type','src/js/modules/core/layouts/content-only.html/content-only-[chunkhash].html','QueueCampaignlistaddController','closeDialog','createOrEditWhatsappAccount','SoundsController\x20as\x20vm','/about','createOrEditMailQueue','TagId','deleteDashboardItem','html5Mode','Networks','add','MOTLICENSE','CreateOrEditContactDialogController','Europe/Prague','cancel','verticalNavigationFullwidthToolbar','variablesById','ABANDONED','delete\x20Sounds','delete\x20smsAccount','src/js/modules/main/apps/staff/views/agents/agents.html/agents-[chunkhash].html','CONTACTMANAGER.EDIT_CONTACT','Campaign','\x20\x20properly\x20logout','secret','Swahili\x20(Tanzania)','Europe/Helsinki','openchannel/interactions/:id/download','apiAccountRoute','Sinhala\x20(Srilanka)','TOOLBAR.BRAZILIAN','OpenchannelAccountagentaddController','\x27squared\x27','flipped','INTEGRATIONS.EDIT_FRESHDESKCONFIGURATION','QueueCampaignagentaddController','selectAllVoicePrefixes','webcall','Spanish\x20(Costa\x20Rica)','countdownAttr','$invalid','UserOpenchannelAccount','-message','voiceRecordings','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsAccounts?','The\x20agent\x20will\x20be\x20deleted.','oldPassword','Fwd:','Technology/Resource','/odbcs','WHATSAPP.SELECTED_TEAMS','passwordExpiresDays','className','notes','template@get','QueuesVoiceRealtimeController\x20as\x20vm','fax/reports/transfer/:id/clone','api.intSugarcrmAccount.delete','src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html/dialog-[chunkhash].html','customFieldsForm','src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.html/voiceRecordings-[chunkhash].html','There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.','app/core/directives/ms-phonebar/sounds/outgoing-call.ogg','web','intDeskConfiguration','api.screenRecording.delete','intSugarcrmConfiguration','isNumber','level','agi','inboundroutes','HANGUPCAUSE_1','Yiddish','newSalesforceConfiguration','openchannel_queue:save','startOf','WhatsappAccountInteractionsController','DASHBOARDS.MAIL','Bearer\x20','DeskConfiguration\x20properly\x20deleted!','\x27zh-CN\x27','ZendeskAccount\x20properly\x20saved!','onRemoteCall\x20->\x20evt,\x20data','FaxQueuesController','TOOLS.DELETE','rec','databases','STAFF.TEAMS','setCurrentUser','globalLists','SMS.EDIT_','\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','firstLevelDisposition','Contact\x20not\x20available','buttons','InternalRoutes','$substring','stopMonitor','pt\x22>

','ServiceNow','onChangeEnableAllResources','chatInternalMessage','loginSSO','selectedAgents','The\x20variable\x20will\x20be\x20deleted.','ERROR','app.callysquare','ca-ES','icon-tile-four','$translatePartialLoaderProvider','oct','apps.marketplace.plugins','Asia/Thimphu','chat/websites/:id/avatar','User\x20not\x20deleted!','ExtractedReport\x20properly\x20created','fax/accounts/addaccountapplications','QueueId','schedule','sms_queue:save','The\x20project\x20cannot\x20be\x20started','applications','newsAlertOnClose','getVoiceQueuesChannelHangup','openFolded','gotocontactsgoto','WhatsappAccountController\x20as\x20vm','deselectSounds','parent','red-fg','EditMailAccountAppnoopDialogController','whatsappQueue:remove','deleteOdbc','plugin_','Turkmen','SYSTEM:DELETEinterval','assigned','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html','\x2727\x27','updateView','$locationProvider','Australian\x20English','themes','dashboards/:id','Asia/Kuching','ar-PS','mwFormUtils','Chat','src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html/view-[chunkhash].html','Interactions','AgentteamaddController','endcall','jscriptyAnswerReport','whatsappInteractionDownload','\x2741\x27','AccountId','mail/accounts/describe','\x20has\x20been\x20saved!','cm/hopper_black/:id','src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog-[chunkhash].html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20scheduled\x20call?','DASHBOARDS.ALL','chatQueue@get','app.contactmanager.globalCustomFields','rtlSupport','DISPOSITION_DELETE_MESSAGE','findSessionBySessionId\x20->\x20sessionId,\x20vm_pb.sessions','selectReport','floor','singular','src/js/modules/errors/500/error-500.html/error-500-[chunkhash].html','ServicenowAccountsController','integrations/salesforce/accounts/:id/configurations','icon-server-plus','fileAdded','dragging','otherwise','app.dashboards.general.dialer','External','SMS\x20Interaction','Fields\x20has\x20been\x20copied!','app.integrations.zendeskAccounts.edit','cm/contacts/upload','getFreshsalesConfiguration','cell','selectedcrudPermissions','CreateOrEditZendeskAccountDialogController','newTemplate','Context\x20properly\x20created','ServicenowAccountsController\x20as\x20vm','progress','2nd','phoneBarAutoAnswerDelay','Amharic','Trunk\x20updated!','AND','forward','List','automations/:id/conditions','app.sms.smsAccounts.edit','dd\x20MMM\x20yyyy','Delete\x20Odbc','createOrEditTriggerAction','ERROR\x20OPEN\x20CONTACT','Would\x20you\x20like\x20to\x20merge\x20your\x20contacs?','rpcVoiceQueuesChannelsTmp','pending','\x27sms_accounts\x27','rpcOpenchannelQueues','getFreshdeskConfiguration','\x27random\x27','The\x20freshsalesConfiguration\x20will\x20be\x20deleted.','What\x20would\x20you\x20name\x20your\x20tag?','api.cmHopper.delete','chat','TOOLS.NEW_VARIABLE','fax/accounts/:id/users','Call\x20properly\x20handled!','Geraint\x20(English,\x20Welsh,\x20Male)','voiceQueuesTotal','Asia/Colombo','interpolate','subject','SYSTEM:DELETEteam','getDescriptions','querySearch','conversationUpdate','\x2722\x27','SYSTEM:GETfaxQueue','cm/hopper_black/describe','calls','queryJscriptySession','CreateOrEditGlobalCustomFieldDialogController','rpc/chat/queues/waitinginteractions','\x20will\x20be\x20deleted.','\x20DESC)','defaultPageTitle','exportSelectedZohoAccounts','GROUP\x20BY\x20','newTag','answerRate','intDeskAccount@get','Delete\x20Trunk','DASHBOARDS.THIS_YEAR','api.intZohoConfiguration.delete','es-UY','selectAllUsers','rpc/fax/accounts','mail/accounts/:id/out_servers','EditSmsAccountAppgotoifDialogController','auth/local/user/:token','Australia/Eucla','contact_import_error','SYSTEM:DELETEcannedAnswer','\x2717\x27','get','voicePrefix','ChatWebsiteonlineFormController','getUserDeviceMediaExt','ringgroup','Request\x20sent!','EditFaxAccountApptagDialogController','INTEGRATIONS.VTIGERACCOUNTS','deleteSelectedPauses','$setPristine','cmCustomField@get','Fax\x20','selectAllQueueCampaigns','internalroute','getWhatsappAccountLabel','\x27SI\x27','Africa/Tripoli','openchannel/queues/describe',',${EXTEN},','\x200]?Goto(','icon-calendar-clock','rpc@getVoiceQueuesChannels','TeamsController\x20as\x20vm','flip','SYSTEM:GET_CLOUDPROVIDERS','#3c4252','affectedRows','-09:00','EditMailAccountAppqueueDialogController','saveWhatsappAccount','Delete\x20ServicenowAccount','src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','\x27g729\x27','TOOLS.CLONE_TRUNK','startingAllowedItems','STAFF.EDIT_AGENT','newMusicOnHold','user:called','voiceQueue:save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cannedAnswers?','api.analyticReport.save','aws_lex_region','The\x20freshdeskAccount\x20will\x20be\x20deleted.','ms-nav-toggle-items','Telephone\x20properly\x20deleted!','TOOLS.CANNEDANSWERS','STAFF.PERMISSIONS_WARNING_ENABLE_ALL','userProfileId','600','openchannel/queues/:id/members','/dispositions','SYSTEM:GET_TREEREPORTS','CompanyController','apiResolver.resolve\x20requires\x20correct\x20action\x20parameter\x20(ResourceName@methodName)','arraydelete','newZohoAccount','app.fax.realtime.accounts','gsm','isBoolean','saveTrigger','src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','apps.plugins','userIsNotPhonebar','FaxAccountActionsController','savePause','msApi::requestStart','resources','ChatQueues','Asia/Singapore','ms-form-wizard','Slovak\x20(Slovakia)','vm.detailForm.$pristine','isJabraEnabled','VOICE.SELECTED_TEAMS','sms/accounts/:id/canned_answers','onSaveVoiceQueue','preventDefault','createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,countglobal,scheduledat,starttime,responsetime,endtime,disposition,ListId,UserId,VoiceQueueId,CampaignId,recallme,deleted,campaign','smsQueue:update','unregistered','plugins/webhook','\x27clickatell\x27','app.marketplace.plugins.edit','motionGenerator','voiceMusicOnHoldDownload','createOrEditSugarcrmConfiguration','Intelepeer','app.forgot','deselectVoiceQueues','src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.html/dialog-[chunkhash].html','European\x20Finnish\x20Female','cdr/:id','AppZone','/vtigerAccounts','app.sms.smsQueues.edit','motion2.realtime.abandoned.voice.abandonedCalls:','CONTACT\x20NOT\x20AVAILABLE','number','kn-IN','widgets','en-TZ','showFooter','\x27bottom_right\x27','downloadtranscribefile2','outboundrouteid=','es-NI','delete\x20application','empty','id,name,color','VOICE.ALL_TEAMS','createApiKey','AgentHomeDashboardMultiChannelOpenchannelController','monthNumber','attachment_path','EditSmsAccountAppintervalDialogController','shortcuts','src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html','CreateOrEditTrunkDialogController','credential','Input','openchannelQueue','$interval','removeInfoBar','src/js/modules/main/apps/contactmanager/views/companies/companies.html/companies-[chunkhash].html','white','moveIvrCampaignHopperFinal','INTEGRATIONS.EDIT_SALESFORCEACCOUNT','User','api.network.save','Marlene','SYSTEM:DELETEchatWebsite','api/plugins','published','err','All\x20resources\x20enabled','delete\x20network','messaging','square/reports/describe','shift','createOrEditSubject','mailQueue','app.video','es-PE','mdColorPicker','SYSTEM:GETuserProfile','CreateOrEditCloudProviderDialogController','extraOperators','SYSTEM:DELETEfaxQueue','apps.whatsapp','selectedOpenchannelAccountOpenchannelCannedAnswers','close','teal','secondsS','):Goto(','intFreshdeskField','USERPROFILE:GET_SECTION','customFieldForm','VoiceQueue\x20properly\x20created','cm/contacts/create_many','actions/:id','WHATSAPP.ALL_TEAMS','CreateOrEditProjectDialogController','isDefined','app.voice.voicePrefixes','selectedWhatsappAccounts','voice/recordings/:id/downloads','absolute','America/Nome','id,name,type','HopperBlack\x20deleted!','voiceQueue:update','QueueCampaignblacklistaddController','EditMailAccountAppgotopDialogController','EditSmsAccountAppqueueDialogController','deleteGroup','createOrEditOutboundRoute','Atlantic/Bermuda','src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html/view-[chunkhash].html','hiddendigitsnum','globalCustomFieldForm','src/js/modules/main/apps/chat/views/realtime/realtime.html/realtime-[chunkhash].html','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html/dialog-[chunkhash].html','nospace','agentInternal','hasMicrophone','integrations/zendesk/accounts/:id','Breton','required','schedules','app/main/apps/settings','responsive','Message\x20deleted!','replyMessage','months','us-east-1','getAssignedCompanies','usspanishfemale','clearSelection','TOOLS.EDIT_DASHBOARDITEM','getObject','Atlantic/South_Georgia','users','English\x20(United\x20States)','apps.video','icon-account-circle','outerHeight','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customDashboards?','api.template.save','voice/prefixes/:id/users','uploadPlugins','whatsapp','\x27o\x27','app/main/apps/dashboards','voice/queues/reports/:id','\x20will\x20be\x20reset.','ChatQueue\x20properly\x20saved!','campaigns/describe','ChatWebsiteActionsController','Naja','TOOLBAR.TURKISH','deleteQueueCampaignHopperFinal','VOICE.NEW_INBOUNDROUTE','src/js/modules/main/apps/fax/views/realtime/trunks/view.html/view-[chunkhash].html','Latvian','/abandonedcalls','id,alias','$eq','destroy','Asia/Baku','automations/:id','/triggers','Variable\x20properly\x20created','motion2.home.mycontacts:','EditSmsAccountAppamazonlexDialogController','getMonthName','loggedIn','TOOLBAR.FINNISH','api.user.save','Yahoo','composeWhatsappInteraction','falsepriority','app/login','deleteSelectedMailSubstatuses','iPhone','Weeks','createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','delete\x20WhatsappQueues','si-LK','obj','penalty','createdAt,updatedAt,id,name,description,table,conditions,joins','Report\x20Field\x20properly\x20deleted!','newSalesforceAccount','Africa/Abidjan','createOrEditQueueCampaignHopper','VoiceRecordings','app.help','createOrEditWhatsappQueue','unknown-version','toggleChat','chatInternalMessage:update','voice/extensions/:id','integrations/freshsales/configurations/:id/descriptions','url','PUT','originator','hold','src/js/modules/toolbar/layouts/vertical-navigation/toolbar.html/toolbar-[chunkhash].html','hopperFinal\x20#','CreateOrEditDeskAccountItemDialogController','icon-audiobook','\x20not\x20found','Interaction\x20properly\x20closed!','editMailAccountApp','section','onload','apps.voice.internalroutes','deleteSelectedMailAccountInteractions','SYSTEM:GETintZohoAccount','initializeRealtimeQueue','Kendra\x20(English,\x20US,\x20Female)','src/js/modules/main/apps/settings/views/customizations/customizations.html/customizations-[chunkhash].html','isLockedOpen','SYSTEM:GETfaxAccount','deleteFaxQueuesWaitingInteractions','apps.help','cloneProject','app.tools.sounds','TriggerAllId','Tahoma','RESCHEDULE','initialValue','thirdLevelDisposition','id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','New\x20Item','/voicePrefixes','scroll','voiceMail','addNewHopper','CreateOrEditOpenchannelQueueDialogController','$selectedColor','America/Los_Angeles','mail/reports/queue/:id/clone','CannedAnswer\x20properly\x20saved!','api.analyticExtractedReport.update','delete\x20mailCannedAnswer','Delete\x20CustomField','openAdvancedSearch','AgentHomeAbandonedVoiceController','EditWhatsappAccountAppdialogflowDialogController','Plugins','webbar:unhold','separatorKeys','SalesforceAccount\x20properly\x20deleted!','TOOLBAR.NORWEGIAN','#pageTitle','rpcTelephones','openchannel/accounts/:id/notify','unreadTotalMessages','Polish','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed','minutes','gotoPreviousStep','selectedVtigerConfiguration','delete\x20globalCustomField','integrations/servicenow/accounts/:id/configurations','SYSTEM:LISTS_ASSOCIATION','screen/recordings/:id/clone','congestion','sms/reports/transfer/describe','excludedOperators','STAFF.SELECTED_AGENTS','integrations/reports/:id','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html','$id','/"(.*)"\x5cs<(.*?)>$/','Asia/Yakutsk','\x27auto\x27','app.staff.agents.edit','toNumber','/tools','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone-[chunkhash].html','src/js/modules/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar-[chunkhash].html','The\x20mailSubstatus\x20will\x20be\x20deleted.','AgentHomeDashboardMultiChannelSmsController','-=400','api.intServicenowAccount.update','unavailable','ProjectsController','European\x20Dutch\x20Female','addNewList','MARKETPLACE.NEW_PLUGIN','api.whatsappAccount.delete','teams/:id/queues','JSCRIPTY.NEW_PROJECT','/musiconholds','src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog-[chunkhash].html','/license','Chat\x20Queues','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE','app.errors.error-500','savedAsDraft','onSaveMember','Reject','Partially\x20Enabled','delete\x20hopperHistory','EditSmsAccountAppdialogflowDialogController','selectedField','selectedChatWebsiteChatCannedAnswers','deleteVoicemail','addTab','delete\x20interaction','onSaveUserOpenchannelQueue','integrations/freshdesk/configurations/:id/subjects','Pacific/Port_Moresby','DashboardItem\x20properly\x20deleted!','SalesforceAccounts','Message\x20has\x20been\x20sent!','ar-IQ','IntervalsController','deleteSmsQueue','fax_queue_waiting_interaction:save','clickOutsideToClose','sendUnpauseOnSubmit','Dynamics365Account\x20properly\x20created','getFaxQueuesWaitingInteractions','deleteSelectedNetworks','equals','iceCandidateTimeout','smsInteractionDownload','get_node','Europe/Zaporozhye','MusicOnHold\x20properly\x20created','api.intFreshdeskConfiguration.save','createOrEditNetwork','app.core','squareRecording@get','src/js/modules/main/apps/mail/views/mailQueues/edit/view.html/view-[chunkhash].html','smsCannedAnswer','DATE\x20(','src/js/modules/main/apps/dashboards/views/custom/custom.html/custom-[chunkhash].html','Delete\x20WhatsappQueue','queueCampaignHopperHistories','general','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chanSpies?','updateLocalStorage','sms/applications/describe','app.toolbar','stun:','/realtime','CTI\x20URL','treeCustomConfig','mail/accounts/:id/clone','outboundQueues','chat/groups/:id','onSaveChannel','hasShortcut','saveZohoAccount','integrations/desk/fields/:id/clone','msModelType','minDateRange','chatWebsiteProactiveActions','hopperBlack\x20#','SYSTEM:DELETEsmsAccount','createOrEditDynamics365Configuration','/openchannel','onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','HotDeskDialogController','createdAt,updatedAt,id,key,value,description','Unable\x20to\x20answer\x20the\x20call','px,0px)','onRemoveSmsQueue','onChangeAutoAssociation','createTag','getActiveTheme','app.contactmanager.contacts.edit','Application_Name','offHook','Uighur','addNewMailQueue','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_TITLE','unmanaged','flash','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE','DASHBOARDS.UNKNOWN','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html','b:\x20Only\x20spy\x20on\x20channels\x20involved\x20in\x20a\x20bridged\x20call.','deleteSelectedScheduler','newZendeskConfiguration','INTEGRATIONS.NEW_DESKCONFIGURATION','OdbcsController\x20as\x20vm','The\x20chatProactiveAction\x20will\x20be\x20deleted.','FORGOTPASSWORD.LINNK_SENT_MESSAGE','app.motiondialer.ivrCampaigns','apps.tools.cannedAnswers','TAB','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html/dialog-[chunkhash].html','api.voiceChanSpy.save','||User:=$eq[','Whatsapp\x20Account','MailAccountId','addItem','src/js/modules/main/apps/tools/views/trunks/trunks.html/trunks-[chunkhash].html','tag@get','fax/queues/:id/teams','#21467e','getMailAccountLabel','src/js/modules/main/apps/tools/views/sounds/create/dialog.html/dialog-[chunkhash].html','onSaveUserFaxQueue','onRemoveUserSmsQueue','DASHBOARDS.RESCHEDULE','sms/accounts/:id/send','SYSTEM:GETinterval','saveGlobalCustomField','addQueues','cm/hopper_final/checkContactHopper','src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html/deskAccounts-[chunkhash].html','onInit','MxGraphOpenProjectController','whatsappPause','Twilio','app/main/apps/openchannel','square/details/reports/:id/clone','disableCustomScrollbarsOnMobile','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog-[chunkhash].html','apps.tools.templates','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','\x27udp\x27','voice/queues/describe','Delete\x20OpenchannelQueue','awsLexRegion','mailInteractionTags:save','Asia/Damascus','delete\x20freshdeskConfiguration','fax/reports/transfer/:id','RR\x20Memory','onIcecandidate\x20->\x20session,\x20data','SYSTEM:GETUSERS','dynamics365Configuration','DispositionsController\x20as\x20vm','RECALLME','deselectWhatsappQueues','Interval\x20properly\x20deleted!','chatInteractionTags:save','selectAllSquareRecordings','list','fr-CA','extractedReports','outboundDropCallsDayCallersExit','src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html/view-[chunkhash].html','INTEGRATIONS.EDIT_ZOHOCONFIGURATION','CreateOrEditAnyConditionDialogController','DASHBOARDS.MAY','rpc/agents','rpc/outbound','GET_PAUSE','css','lastLoginAt','newIvrCampaign','createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','cmList@getCustomFields','\x27agi://127.0.0.1/square,{{project.name}}\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20internalroutes?','postalCode','getIvrCampaigns','bn-BD','addNewAction','multipleUsers','selectedServicenowAccounts','SYSTEM:GEToutboundRoutes','US\x20East\x20(N.\x20Virginia)','selectAllAgents','newTrigger','#262933','Mads\x20(Danish,\x20Male)','msNavIsFolded','Europe/Tirane','Report\x20field\x20properly\x20created','The\x20servicenowConfiguration\x20will\x20be\x20deleted.','intFreshdeskAccount@get','integrations/freshsales/fields/:id','delete\x20cloudProvider','hues','id,name,mapAgentsId,waiting','chat/websites/:id/users','getInboundRouteApps','UserFaxAccount','VOICE.VOICEQUEUES','exportSelectedSmsAccounts','addNewServicenowConfiguration','verifySmtp','delete\x20SalesforceAccounts','DASHBOARDS.DISABLED','swswedishfemale','Sound\x20properly\x20deleted!','voiceRecording','integrations/servicenow/accounts/:id/clone','exportSelectedSalesforceAccounts','src/js/modules/main/apps/mail/views/realtime/realtime.html/realtime-[chunkhash].html','openchannel/messages/:id/reject','SYSTEM:DELETEintDynamics365Account','Dashboards','getZohoConfiguration','openchannelQueue@get','SYSTEM:GETchatQueue','apps.sms','cloneCustomDashboard','pm_id','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?','mainForm','app.voice.voiceRecordings','webpackChunkmotion_frontend','\x27report_agent\x27','$mdDialog','\x27g726\x27','EditChatWebsiteAppamazonlexDialogController','HopperHistory\x20deleted!','saveChatWebsiteApp','ListagentaddController','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view-[chunkhash].html','getProjects','Africa/El_Aaiun','deleteTrunk','angucomplete-alt','GET_LIST','DASHBOARDS.THIS_WEEK','ANALYTICS.NEW_REPORT','/video','src/js/modules/main/apps/chat/views/realtime/queues/view.html/view-[chunkhash].html','Dynamics365','gotorealtimegoto','addContacts','closeDialpad','chat/queues/:id/members','square/projects/:id/clone','eurspanishfemale','reportFields','createOrEditSmsQueue','api.intDynamics365Account.update','setTags','saveDashboardItem','restartplugin','delete\x20list','onSearchBarCollapse','src/js/modules/toolbar/changepassword/changepassword.html/changepassword-[chunkhash].html','HeaderController\x20as\x20vm','integrations/zoho/fields/:id/clone','exportSelectedQueueCampaignHopperHistories','Channel\x20','\x27openchannel_interactions\x27','Bulgarian\x20(Bulgaria)','queueCampaign','remotePlayer','Command','selectedWhatsappAccountWhatsappCannedAnswers','Recordings','Europe/Brussels','MailQueue\x20properly\x20created','apps.tools.tags','user_has_whatsapp_interactions:save','EU\x20(Frankfurt)','src/js/modules/main/apps/marketplace/views/plugins/plugins.html/plugins-[chunkhash].html','deleteOpenchannelAccountOpenchannelCannedAnswer','apps.integrations.dynamics365Accounts','EditSmsAccountAppautoreplyDialogController','statusList','api.contacts.save','gotoFaxQueues','queueCampaigns','/contexts','rpc/voice/queues/channels/:uniqueid/hangup','grey','-10:00','MarketplacePluginController','Template\x20properly\x20created','You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix','deleteSelectedChatWebsites','src/js/modules/main/apps/voice/views/contexts/contexts.html/contexts-[chunkhash].html','msApi','generateApiKey','mail/reports/queue/describe','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html','\x20has\x20been\x20modified.\x20Closing\x20will\x20lose\x20all\x20changes!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?','src/js/modules/main/apps/settings/views/networks/create/dialog.html/dialog-[chunkhash].html','timeout','integrations/desk/accounts/:id/configurations','/integrations','fax/messages/:id/download','Low','createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','fax/accounts/:id/interactions','Voicemail\x20updated!','integrations/dynamics365/configurations/:id/subjects','Outbound','deleteSelectedOpenchannelAccountOpenchannelCannedAnswers','TOOLBAR.USER_FORCE_LOGOUT','voice/prefixes/describe','The\x20odbc\x20will\x20be\x20deleted.','deleteTelephone','gotoCompanies','description','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html/dialog-[chunkhash].html','integrations/zendesk/accounts/:id/configurations','api.intDynamics365Account.delete','variable.name','smsAccountInteractions','top-right','9888','CALLERID(all)=','icon-checkbox-multiple-marked-outline','Asia/Shanghai','Begin\x20forwarded\x20message:

From:\x20{{\x20from\x20}}
Subject:\x20{{\x20subject\x20}}
Date:\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}}
To:\x20{{\x20to\x20}}','America/Chicago','icon-checkbox-blank-circle-outline','deleteMusicOnHoldMohSound','_interactions:save','Dynamics365Account\x20updated!','SmsAccountsController\x20as\x20vm','removeAttachment','cmCustomField','TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE','intZendeskField','TOOLBAR.HEBREW','Chat\x20Report\x20Queue','SYSTEM:ivrCampaign.REMOVELIST','User\x20API\x20key\x20removed!','group','src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog-[chunkhash].html','api.trigger.delete','+09:30','ckeditor','OPENCHANNEL.NEW_OPENCHANNELACCOUNT','openchannelAccounts','createOrEditFreshdeskConfiguration','handleResultClick','','last','Bengali\x20(India)','=startTime','home.mycontacts','$and','\x27integrationTab\x27','getMonthNumber','faxInteraction:update','chatInteractions','app.contactmanager.contacts','toInteger','apps.voice.contexts','The\x20voiceQueue\x20will\x20be\x20deleted.','updateLayoutStyle','\x27port\x27','ChatProactiveAction\x20properly\x20deleted!','ap-south-1','src/js/modules/main/apps/voice/views/realtime/agents/view.html/view-[chunkhash].html','userId','gosub','-04:30','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html/dialog-[chunkhash].html','ANALYTICS.NO_METRIC_FOUND','Asia/Dhaka','filterByPropIds','src/js/modules/main/apps/voice/views/realtime/telephones/view.html/view-[chunkhash].html','api.contact.update','SYSTEM:GET_FAXACCOUNTS','CANCEL','Portuguese\x20(Brazil)','addJscriptyTab','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_TITLE','Arguments','actionOptions','tabs','OPENCHANNEL.ALL_AGENTS','mailAccount@get','app.tools.templates','America/Havana','openchannel/reports/transfer/:id','iPad','chat/messages/describe','Joanna','$mdConstant','mozHidden','api.intSugarcrmAccount.update','Korean\x20Female','api.intFreshsalesConfiguration.update','app.integrations.vtigerAccounts','InternalRoutesController\x20as\x20vm','chat/messages/:id','selectedCannedAnswers','startMonitor','tcp','stateClass','save','fax/queues/:id/users','msFormWizard','integrations/freshsales/configurations/:id/subjects','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog-[chunkhash].html','conditions/describe','altDate','bcc','jstree','/users','=endTime','STAFF.NEW_TELEPHONE','api.userProfile.update','VoiceQueueId','America/Campo_Grande','src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html/dialog-[chunkhash].html','TOOLS.INTERVALS','ScreenRecordingsController\x20as\x20vm','apps.whatsapp.whatsappQueues','ZendeskAccount','MAIL.UNKNOWN','Loading...','\x27token\x27','integrations/desk/configurations/describe','\x2721\x27','Please\x20select\x20a\x20variable','deleteDeskConfiguration','GET_PROJECT','DASHBOARDS.ACCEPT_ELSEWHERE','pickerModels','\x27wav49\x27','removeQueues','canTransfer','app.voice.realtime.agents','originateHook\x20->\x20payload','deleteAgent','ORDER\x20BY\x20','WhatsappAccountActionsController','currentPath','voice/queues/:id/teams','addGroup','SYSTEM:DELETEchatQueue','America/Dawson','arrayagentIdentifier','pauses','selectAllVoiceQueues','newNetwork','gotoInboundRoutes','MAIL.REALTIME','delete\x20zohoAccount','SalesforceAccount\x20updated!','filtered','asterisk','api.intItem.update','sw-KE','gotoProcess','mail.mailAccounts','api.voiceChanSpy.update','createOrEditSound','gridster','mouseEventIgnoreTimeout','multiselect','Asia/Nicosia','Customization\x20updated!','offlineMessage\x20#','runReport','src/js/modules/main/apps/voice/views/chanSpies/create/dialog.html/dialog-[chunkhash].html','AgentsFaxRealtimeController\x20as\x20vm','SYSTEM:DELETEtag','SYSTEM:GET_MAILACCOUNTS','Asia\x20Pacific\x20(Mumbai)','areaText','Japanese\x20Female','api.intFreshdeskAccount.update','America/Belize','variables/describe','.eml','WHATSAPP.ALL_AGENTS','addTeams','app.footer','GROUP_CONCAT','exportSelectedTriggers','api.tag.save','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog-[chunkhash].html','Motion\x20WebRTC\x20Bar\x200.2.0','integrations/dynamics365/configurations/:id/descriptions','CALLYSQUARE.EDIT_SQUARERECORDING','Congestion','createOrEditZendeskAccount','sqlUtil','TagInteractionDialogController','SmsQueueId','orange-bg','msEmojiArea','interval@get','offlineForm','analytics/field_reports/describe','mobileBarActive','delete\x20squareRecording','AgentGeneralPopupController','VoiceQueueController','\x27select\x27','OpenchannelCannedAnswer\x20properly\x20created','AgentGeneralIframeController','api.openchannelAccount.delete','Hungarian','square/recordings/:id/download','license@get','trim','TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE','GlobalCustomField\x20properly\x20created','userProfileResource','SalesforceAccount\x20properly\x20saved!','changepassworddialog','deskAccounts','DESCRIBE_CM_CONTACTS','#main','exportSelectedIvrCampaignHopperHistories','createdAt','smtp','$parent','down','Phone\x20number','eurfrenchfemale','getListCustomFields','Asia/Kathmandu','src/js/modules/core/directives/ms-stepper/templates/vertical/step/vertical-step.html/vertical-step-[chunkhash].html','triggerAllConditions','chatOfflineMessage','VOICE.ALL','deleteSelectedIvrCampaigns','cloneQueueCampaign','right','removeTeams','hasSectionPermissions','ShowQuestionsSessionDialogController','phoneBarDnd','showDialpad','onNewRTCSession\x20->\x20data','UNKNOWN','getDispositions','uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','project','The\x20whatsappCannedAnswer\x20will\x20be\x20deleted.','ready','delete\x20inboundroute','INTEGRATIONS.NEW_SERVICENOWCONFIGURATION','fax/messages/describe','SYSTEM:GET_USERPROFILES','gotoPlugins','firstName','SYSTEM:DELETEintDeskAccount','nl-NL','Delete\x20FaxQueue','getLogo','OutboundCallsVoiceRealtimeController\x20as\x20vm','saveItem','dialer','SYSTEM:GETCONFIGURATION','user_has_chat_interactions:save','VoiceQueues','api.trunk.delete','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20dynamics365Configuration?','Warning','alternate','Sundanese','smsStatus','onLogin','collapse','id,starttime,endtime,membername,projectname','amber-A200-bg','integrations/servicenow/configurations/:id/fields','createdAt,updatedAt,id,name,key,ListId,remote,token,type,accountSid,authToken,phone,receiveUrl,deliveryReportUrl,notificationShake,notificationSound,notificationTemplate,queueTransfer,queueTransferTimeout,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,agentTransfer,agentTransferTimeout,description','rpc/mail/queues/waitinginteractions','src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html/view-[chunkhash].html','addNewInboundRoute','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html','exportSelectedProjects','LOCAL_LOGIN','api.smsQueue.save','statusText','createOrEditChatWebsiteChatProactiveAction','createOrEditCompany','selected','integrations/servicenow/configurations/:id/descriptions','listCustomFields','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20deskConfiguration?','userProfileForm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?','Token','SYSTEM:DELETE.customDashboard','$filter','deleteSelectedSmsQueues','key','width=','conditions/:id/clone','queueCampaignHopperFinals','freshdeskConfiguration','redirectToAgent','Arial','VOICE.EDIT_INBOUNDROUTE','intSugarcrmAccount@get','ExtractedReportsController','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unknown\x27','\x27ulaw\x27','TOOLS.NOTIFICATIONS.DISPOSITION_CREATED_SUCCESS_TITLE','Delete\x20MohSound','Customization\x20properly\x20saved!','mailCurrentCapacity','deleteSelectedOpenchannelAccounts','Hungarian\x20Female','trigger:contactmanager','','interactionsgoto','arraystrategy','isValidRange','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?','user.name','selectedSugarcrmConfiguration','maxDateRange','saveTeams','Australia/Adelaide','not_inuse','Geraint','rpc/fax/queues/:id/notify','gotoZendeskAccounts','deleteSelectedChatWebsiteChatCannedAnswers','deleteMailCannedAnswer','gotoMailQueues','disable','onPause','chat/reports/queue/describe','whatsapp/accounts/:id','saveVtigerAccount','chat/interactions/:id/tags','European\x20Polish\x20Female','api.mailQueue.update','agentUrl','voicePause','FreshsalesAccountController\x20as\x20vm','\x27progressive\x27','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE','European\x20French\x20Male','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20project?','America/Montevideo','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','sms/accounts/:id/notify','VOICE.EDIT_INTERNALROUTE','src/js/modules/main/apps/tools/views/trunks/create/dialog.html/dialog-[chunkhash].html','getFaxAccountApps','destaccountcode','\x27pt-br\x27','savePlugin','PluginController\x20as\x20vm','European\x20Italian\x20Male','updateLicense','Afrikaans\x20(South\x20Africa)','getDeskAccounts','CSV\x20import\x20process\x20stopped!','newZohoConfiguration','api.voiceContext.save','api.voiceQueue.save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interval?','app.tools.variables','ChatWebsiteInteractionsController','Description','users/:id/openchannel_interactions','\x27opus\x27','SYSTEM:GET_MODULE_PERMISSIONS','salesforce','Playback','deleteInterval','$translateProvider','icon-playlist-plus','catch','CustomDashboard\x20properly\x20saved!','getMetrics','HANGUPCAUSE_22','integrations/freshsales/fields/describe','+11:00','Asia/Ho_Chi_Minh','arrayautopause','servicenowAccount','DASHBOARDS.DASHBOARDS','columnName','pauses/:id','SYSTEM:DELETECONFIGURATION','Asia/Qatar','saveDisposition','AgentsController\x20as\x20vm','Filiz','selectedTableChange','Pacific/Majuro','Calibri','sat','cdr/:id/clone','Ricardo','fax/interactions/:id/clone','delete\x20openchannelCannedAnswers','ZendeskAccount\x20properly\x20tested','transferLastMessage','CreateOrEditPauseDialogController','saveInboundRouteApp','usmoney','contrast3','globalUserLists','webbar:answer','userProfile/resources/describe','voice/contexts/:id','SmsAccount\x20properly\x20created','^mdSidenav','groups','ms-widget-front','installplugin','intSalesforceAccount@get','openchannelAccount','integrations/vtiger/configurations/describe','intervals','Mathieu','toJSON','createOrEditQueueCampaign','America/Indiana/Vevay','getSmsQueues','switch','MAIL.MAILACCOUNTS','Pacific/Funafuti','selectAllVoiceRecordings','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27ringing\x27','getGroupBy','WebSocketInterface','fax/accounts/:id/applications','\x27rrmemory\x27','TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxQueues?','angular-cron-jobs','selectedVoicePrefixes','FAX:SEND','team','Interval\x20has\x20been\x20saved!','Reset\x20Succesfull','assignTo','icon-format-text','What\x20would\x20you\x20name\x20your\x20list?','\x27th\x27','newSugarcrmAccount','\x27agentBusyFactor\x27','intDeskField','ZohoAccounts','length','removeChild','exportSelectedTags','apps.help.about','Asia/Tashkent','content-type','collapse-animation','removeAgents','dropping','Europe/Samara','destcalleridnum','MsNavigationNodeController','createdAt,updatedAt,id,name,level,ParentId','updating','EditMailAccountAppsystemDialogController','delete\x20mailQueue','selectedTriggerActions','src/js/modules/main/apps/jscripty/views/projects/projects.html/projects-[chunkhash].html','VOICE.OUTBOUND','_path','','load','\x27g722\x27','arraysmsMethod','delete\x20DeskAccounts','Giorgio','openchannel/interactions/describe','newReportField','mail/out_servers/:id/clone','app.voice.musiconholds.edit','dialQueueProject','\x27basic\x27','deleteHopper','expanded','vertical','predictiveIntervalAvailable','ensureSelectedResultIsVisible','Europe/Moscow','api.trigger.update','company','src/js/modules/main/apps/tools/views/schedules/create/dialog.html/dialog-[chunkhash].html','userProfiles','sms/accounts/:id/users','lastAssignedTo','CreateOrEditHopperVoiceQueueIdDialogController','toggleMobileBar','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd-[chunkhash].html','spyfaxInteraction','deleteCustomField','addNewSquareRecording','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27strict\x27','N/A','gu-IN','functions','labels','src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','updateAccountApplications','/dashboards/general','getBoundingClientRect','tab','arrayshowWebBar','InternalRoute\x20properly\x20deleted!','.ogg','app.chat.chatQueues.edit','onlineForm','addNewDeskConfiguration','deleteSelectedIntervalIntervals','getSugarcrmAccounts','/assets/images/theme-options/vertical-nav.jpg','BEEP','newCloudProvider','newVtigerAccount','params','version@get','You\x20must\x20have\x20at\x20least\x20one\x20theme\x20named\x20\x22default\x22','\x27inuse\x27','SYSTEM:GETtrunk','app.errors_error-404','delete\x20subject','name','src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html/play-[chunkhash].html','voice/queues/:id/blacklists','fromNow','ResetPasswordController','deselectUsers','CustomizationfaviconController','','GET_CONTEXT','SMS\x20Report\x20Transfer','LoadingIndicatorService','Field\x20deleted!','getConditions','user_has_chat_interactions:remove','The\x20voicePrefix\x20will\x20be\x20deleted.','mail/out_servers/:id','src/js/modules/main/apps/staff/views/teams/create/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/tools/views/pauses/pauses.html/pauses-[chunkhash].html','id,name,description,notes','arrayannounce_position','user:agentconnect','mapKey','Icelandic','rurussianfemale','\x27unknown\x27','WhatsappAccountagentaddController','pauseType','Pacific/Pago_Pago','OpenchannelQueueagentaddController','saveSalesforceConfiguration','api.cmList.update','Init\x20error','400','addNewchanSpy','Wav','ChineseTraditional','lo-LA','JSCRIPTY.CLONE_PROJECT','Schedule\x20properly\x20saved!','onTypeSelection','TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE','id,name,fullname','createOrEditAgent','users/:id/avatar','deleteSelectedIvrCampaignHopperBlacks','STAFF.PERMISSIONS_WARNING_CLOSE','TransferMessageDialogController','migrations/:id','saveList','No\x20answers\x20available','checkPause','apply','api.pause.update','#9ea1a9','exportSelectedChatQueues','Korean\x20(South\x20Korea)','eurdanishfemale','Interval','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html/dialog-[chunkhash].html','Session\x20save\x20error','Urdu\x20(India)','whatsappAccounts','Indian/Mahe','DASHBOARDS.NO_DISPOSITION_SET','ZendeskAccountController\x20as\x20vm','queryOptions','Openchannel\x20Messages','EditOpenchannelAccountAppnoopDialogController','deleteSelectedFields','America/Phoenix','Delete\x20FaxAccount','createdAt,updatedAt,id,name,description,color','exportSelectedQueueCampaignHopperFinals','Amy','agi://127.0.0.1/square,','selectedNetworks','ServicenowAccounts','deleteVoiceQueuesChannels','trigger','Plugin\x20properly\x20saved!','saveWhatsappCannedAnswer','SalesforceAccountController\x20as\x20vm','showMailInteraction','removeAllListeners','ChatWebsite\x20updated!','api.cannedAnswer.save','rpcOpenchannelQueuesWaitingInteractions','getFaxInteractions','settings/:id/logo','contrast','editDraft','ChatQueueId','America/Lima','Connection\x20succeded!','Your\x20password\x20properly\x20updated','customDashboard','getChannelByItem','campaign:save','EditOpenchannelAccountAppdialogflowDialogController','sounds/:id/clone','ZohoAccountController','Beepall','ServicenowAccount\x20properly\x20created','\x27es\x27','\x27fewestcalls\x27','sep','selectAllMailQueues','eu-west-3','whatsapp/reports/queue/:id','Motion\x20supports\x20multiple\x20translations\x20through\x20angular-translate\x20module,\x20but\x20currently\x20we\x20do\x20not\x20support\x20the\x20selected\x20language.\x20If\x20you\x20want\x20to\x20help\x20us,\x20send\x20us\x20a\x20message.','License\x20update\x20failed!','app.staff.userProfiles','edited','tree','selectAllDynamics365Accounts','id,name,dialActive','chatQueueReport','saveCallback','/custom/:id','addNewSmsQueue','update','Dynamics365Accounts','createdAt,updatedAt,id,name,mode,directory,application,format,sort','$lte','SYSTEM:GETVARIABLES','INTEGRATIONS.NEW_FRESHSALESCONFIGURATION','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','MailQueueController','getOpenchannelAccountInteractions','WhatsappAccountsController\x20as\x20vm','$mdToast','background','rpc@getFaxAccounts','OutboundRouteActionsController','SmsAccountSmsCannedAnswersController','app.contactmanager.companies','deleteWhatsappAccountWhatsappCannedAnswer','getSections','gotoFaxAccounts','rejected','trigger:browser:url','\x27friend\x27','requestLicense','musiconhold','EditSmsAccountAppnoopDialogController','msSearchBar','deleteChatWebsiteOfflineMessage','JSCRIPTY.SESSION_RESULTS','U(xcally-mixmonitor-context)','Description\x20has\x20been\x20deleted!','timer-set-countdown','Bosnian','api.intSalesforceConfiguration.update','deselectMetrics','There\x20has\x20been\x20an\x20error\x20while\x20trying\x20to\x20save\x20your\x20survey\x20session!','.mp4','onUnhold\x20->\x20session,\x20data','app.settings.system','onDateRangeInit','permissionsmanagedialog','/internalroutes','msNav','version','Maltese','Chat\x20Interaction','UservoicePrefix','openContact','Chinese,\x20Mandarin\x20(Simplified,\x20China)','QUICKPANEL.MESSENGER_DISABLED','voiceQueuesSelected','Delete\x20DeskConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?','onSaveWhatsappInteraction','apps.home.contacts','rpc/openchannel/queues/:id/waitinginteractions','DeskAccountConfigurationsController','disabled','allowEdit','motionPalettes','da-DK','MsStepperController\x20as\x20MsStepper','deleteSelectedInternalRoutes','Antarctica/Davis','vm.customFieldsForm.$pristine','userProfile/resources/:id/clone','WhatsappAccount\x20updated!','Schedule\x20properly\x20created','arraysetqueueentryvar','/smsAccounts','VOICE.RUNSENTIMENT_VOICERECORDING','filterHiddenStep','analytics/metrics/describe','en-GH','queue_id','addNewChatWebsite','mail/queues/:id','Delete\x20GlobalCustomField','smsTransferReport','src/js/modules/main/apps/analytics/views/metrics/metrics.html/metrics-[chunkhash].html','America/Indiana/Indianapolis','ivrCampaignHopperHistories','chatCannedAnswers','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20offlineMessage?','isApp','openchannelCannedAnswers','mail/queues/describe','Type\x20a\x20message','TrunksVoiceRealtimeController\x20as\x20vm','api.dashboardItem.save','/api/originate/','selectAllZendeskAccounts','Hans','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatQueues?','createOrEditProjectSession','whatsappAccount','getVoicemailMessages','Status','$eval','Staff','addAgents','/variables','faxAccount:update','cmList','WHATSAPP.EDIT_WHATSAPPQUEUE','SYSTEM:EDITMODALSHOW','propertiesExtra','src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html/dialog-[chunkhash].html','yearsS','users/:id/fax_accounts','$log','newRTCSession','googleCloudTtslanguageCode','Unable\x20to\x20find\x20a\x20valid\x20call\x20to\x20answer','INTEGRATIONS.EDIT_DYNAMICS365CONFIGURATION','onFirstLevelSelection','home.chat','SYSTEM:DELETEopenchannelAccount','ngModel','isIndeterminate','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?','Lotte','id,name,AccountId','whatsappCurrentCapacity','report_agent','createOrEditTrigger','smsCapacity','autoAssociation','en-KE','onFieldChange','spychatInteraction','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog-[chunkhash].html','Settings','cm/hopper/opencontacts','/help','id,fullname,internal','selectAllSugarcrmAccounts','CreateOrEditFreshsalesAccountDialogController','/servicenowAccounts','outboundOriginateFailureCallsDay','motionBarOptions','escapeToClose','onSaveOpenchannelInteraction','placeholders','TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE','Asia/Magadan','selectAllFreshsalesAccounts','rgba','The\x20chanSpy\x20will\x20be\x20deleted.','apps.integrations.salesforceAccounts','VOICE.EDIT_MUSICONHOLD','CALLYSQUARE.EDIT_PROJECT','openchannelStatusTime','SYSTEM:GET_SMSACCOUNTS','intServicenowConfiguration','hasRole','CONFIGURATIONS','CreateOrEditSmsCannedAnswerDialogController','removeItems','Slovak','closedAt','assign','SmsQueue\x20properly\x20saved!','Sinhalese','SYSTEM:GET_TEMPLATES','subString','selectAllReports','chat/queues/:id/clone','newMailCannedAnswer','getHistories','VIDEO.VIDEO','integrations/vtiger/accounts/:id/clone','runtranscriberuntranscribesentiment','CreateOrEditTemplateDialogController','cm/hopper_black/:id/clone','deleteContact','FAX.NEW_FAXACCOUNT','Portuguese\x20(European)','delete\x20company','left_join','SEC_TO_TIME','app.chat.chatWebsites.edit','selectAllGlobalCustomFields','700','rpcVoiceQueuesChannels','Europe/Athens','MailAccountController\x20as\x20vm','conf','trunks/:id','username','SETTINGS.NETWORKS','TOOLBAR.GERMAN','scrollHeight','STAFF.ALL_TEAMS','Asia/Novosibirsk','delete\x20FaxQueues','jan','getChanSpies','app.dashboards.general.chat','CONTACTMANAGER.ERRORS.PHONEBAR_API','wav','The\x20whatsappQueue\x20will\x20be\x20deleted.','answered','TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE','Delete\x20ExtractedReport','es-AR','OpenchannelAccounts','arraytransport','orderBy','md-toolbar','QueueCampaignHopperStatisticsController','newQueueCampaign','EXPORT','Priority','udp','jabra','Trunk\x20properly\x20cloned','function','openchannel/accounts/:id','user:agentcomplete','bot','Restored','user','mailMessage:save','SMS\x20Account','MOTIONDIALER.SELECTED_TEAMS','app.whatsapp.whatsappQueues','whatsappQueue:update','MarketplacePluginsController\x20as\x20vm','whatsappInteraction','ParentId','OpenchannelCannedAnswer\x20properly\x20deleted!','es-ES','SYSTEM:GETreport','api.intSalesforceAccount.save','deselectScreenRecordings','delete\x20musiconhold','Userchange_avatarController','INTEGRATIONS.NEW_SUGARCRMACCOUNT','The\x20deskAccount\x20will\x20be\x20deleted.','apps.fax.realtime','selectedIvrCampaignHopperFinals','.html','voiceChanSpy@get'];(function(_0x4e2366,_0x128a4f){var _0x114965=function(_0x262d3d){while(--_0x262d3d){_0x4e2366['push'](_0x4e2366['shift']());}};_0x114965(++_0x128a4f);}(a0_0x128a,0x125));var a0_0x1149=function(_0x4e2366,_0x128a4f){_0x4e2366=_0x4e2366-0x0;var _0x114965=a0_0x128a[_0x4e2366];return _0x114965;};var _0x53303c=a0_0x1149;(self[_0x53303c('0x2376')]=self[_0x53303c('0x2376')]||[])['push']([[0x8f],{0x1efd:(_0x262d3d,_0x45912f,_0x4fb511)=>{var _0x1a8446=_0x53303c;'use strict';var _0x5b021e=_0x4fb511(0x304);_0x16cc3c['$inject']=[_0x1a8446('0xeb')];function _0x16cc3c(_0x5b5b40){var _0x29a480=_0x1a8446;_0x5b5b40['interceptors'][_0x29a480('0x1599')](_0x29a480('0x1acb'));}const _0x573867=_0x16cc3c;_0x51a27a[_0x1a8446('0x1e33')]=['$transitions'];function _0x51a27a(_0x59087c){var _0x9b6a23=_0x1a8446,_0x4c9d58={'to':function _0x409637(_0x49fff4){var _0x266617=a0_0x1149;return _0x49fff4[_0x266617('0x17ea')]===!![];}},_0x4798f8={'to':function _0x1f8527(_0x4639db){var _0x4efd83=a0_0x1149;return _0x4639db[_0x4efd83('0x25d6')]!==_0x4efd83('0x1bba');}},_0x35c4e7={'to':function _0x4bb8c3(_0x9f8df7){var _0x3ba345=a0_0x1149;return _0x9f8df7[_0x3ba345('0x1dcf')];}},_0x42e56e={'to':function _0x21dd4b(_0x852f5e){var _0x1d62bf=a0_0x1149;return _0x852f5e[_0x1d62bf('0x20a2')][_0x1d62bf('0x25d6')]===_0x1d62bf('0xd98');}},_0x3ac8c7=function _0x3616df(_0x3eb202){var _0x85f47f=a0_0x1149,_0x379247=_0x3eb202['injector']()['get']('Auth'),_0x457c14=_0x3eb202['router'][_0x85f47f('0x2146')];return!_0x379247['isLoggedIn']()?_0x457c14[_0x85f47f('0xe2e')]('app.login',undefined,{'reload':!![]}):_0x379247['retrieveUser']()[_0x85f47f('0x253d')](function(){var _0x1cf720=_0x85f47f;return _0x457c14[_0x1cf720('0xe2e')]('app.login',undefined,{'reload':!![]});});},_0x3ebe4f=function _0x60d2(_0xd27ce7){var _0x5bc070=a0_0x1149,_0x8080ec=_0xd27ce7['injector']()[_0x5bc070('0x2122')](_0x5bc070('0x1dfd')),_0x28e093=_0xd27ce7['router']['stateService'],_0x436e75=_0xd27ce7[_0x5bc070('0x14b4')]();if(_0x8080ec[_0x5bc070('0x26e8')](_0x5bc070('0xeff'))&&_0x436e75['name']!=_0x5bc070('0xd98'))return _0x28e093[_0x5bc070('0xe2e')](_0x5bc070('0xd98'),{'redirect':![]},{'reload':!![]});},_0x30f690=function _0xfd218d(_0x2dfae5){var _0x2c72a9=a0_0x1149,_0x38c3c5=_0x2dfae5[_0x2c72a9('0x952')]()[_0x2c72a9('0x2122')](_0x2c72a9('0x1dfd')),_0x2d2d34=_0x2dfae5[_0x2c72a9('0x51a')][_0x2c72a9('0x2146')],_0x35687a=_0x2dfae5[_0x2c72a9('0x14b4')]();if(_0x38c3c5['hasRole'](_0x2c72a9('0x272b'))){if(!_0x38c3c5['hasPermission'](_0x35687a[_0x2c72a9('0x1dcf')]))return _0x2d2d34[_0x2c72a9('0xe2e')](_0x2c72a9('0xd98'),{'redirect':![]},{'reload':!![]});else{var _0x3096b9=_0x2dfae5[_0x2c72a9('0x25cf')]()['id']?Number(_0x2dfae5[_0x2c72a9('0x25cf')]()['id']):undefined;if(_0x3096b9)return _0x38c3c5[_0x2c72a9('0x1091')](_0x35687a[_0x2c72a9('0x1dcf')],_0x3096b9)[_0x2c72a9('0x253d')](function(){var _0xc4adbe=_0x2c72a9;return _0x2d2d34[_0xc4adbe('0xe2e')](_0x35687a['parent'][_0xc4adbe('0x25d6')],{'redirect':![]},{'reload':!![]});});}}},_0x41ae51=function _0x14a766(_0x678121){var _0x4e141d=a0_0x1149,_0x1f5b95=_0x678121[_0x4e141d('0x952')]()[_0x4e141d('0x2122')](_0x4e141d('0x1dfd')),_0x46b999=_0x678121[_0x4e141d('0x51a')][_0x4e141d('0x2146')];if(_0x1f5b95['hasRole'](_0x4e141d('0x272b'))&&!_0x1f5b95['hasPermission'](0x64))return _0x46b999[_0x4e141d('0xe2e')](_0x4e141d('0xd98'),{'redirect':![]},{'reload':!![]});};_0x59087c[_0x9b6a23('0xfcf')](_0x4c9d58,_0x3ac8c7),_0x59087c['onStart'](_0x4798f8,_0x3ebe4f),_0x59087c[_0x9b6a23('0xdb0')](_0x35c4e7,_0x30f690),_0x59087c['onFinish'](_0x42e56e,_0x41ae51);}const _0x23f5f2=_0x51a27a;var _0x3fa5c7=_0x4fb511(0x1956),_0x51538b=_0x4fb511['n'](_0x3fa5c7),_0x32100b=_0x4fb511(0x17d),_0x420d43=_0x4fb511['n'](_0x32100b);const _0x48c0be=_0x4fb511['p']+_0x1a8446('0xce9');_0x4c8491[_0x1a8446('0x1e33')]=['$mdDialog',_0x1a8446('0x95f'),'$q',_0x1a8446('0x157'),_0x1a8446('0x27bf'),'$document'];function _0x4c8491(_0x23a71a,_0x59ec3b,_0x299b9e,_0x29438d,_0x118725,_0x83e2be){var _0x2e6f25,_0x543e38={'getToken':_0x399ccc,'getCurrentUser':_0x4caa84,'getPermissions':_0x200970,'hasChildrenPermissions':_0x4c76e3,'hasModulePermissions':_0x512c0b,'hasModulesPermissions':_0x24dde0,'hasRole':_0x3ae051,'hasPermission':_0x23f306,'hasResourcePermission':_0x316e44,'hasSectionPermissions':_0x1b9da2,'hasSectionsPermissions':_0x561e2c,'isAgent':_0x2aafeb,'isAdmin':_0x2c6ab4,'isLoggedIn':_0x54c5c7,'isTelephone':_0x15dd78,'isUser':_0xa12556,'login':_0x3e0a68,'logout':_0x4dae07,'parseCrudPermissions':_0x3171ea,'queueLogin':_0x1f255b,'reloadPermissions':_0x561e75,'removeCookies':_0x23bddb,'retrieveUser':_0x3fabef,'setCurrentUser':_0x452fdb,'getAuthenticationType':_0x3d1473,'loginSSO':_0x5690c7};return _0x543e38;function _0x399ccc(){var _0x225b28=a0_0x1149;return _0x59ec3b[_0x225b28('0x2122')]('motion.token');}function _0x4caa84(){return _0x2e6f25;}function _0x452fdb(_0x387b61){_0x2e6f25=_0x51538b()['merge'](_0x2e6f25,_0x387b61);}function _0x1f255b(_0x387d51){return _0x299b9e(function(_0x1647b3,_0x170c35){var _0x3ec1b1=a0_0x1149;_0x29438d[_0x3ec1b1('0x272b')]['login']({'id':_0x2e6f25['id'],'device':_0x3ec1b1('0x2061'),'intrf':_0x387d51})[_0x3ec1b1('0x1dc2')][_0x3ec1b1('0xaa5')](function(_0x4801fb){_0x1647b3(_0x4801fb);})['catch'](function(_0x4dfa70){_0x170c35(_0x4dfa70);});});}function _0x2e15eb(){return _0x299b9e(function(_0x54998f,_0x4b8a0f){var _0x522fe2=a0_0x1149;_0x29438d['user'][_0x522fe2('0x1bc9')]({'id':_0x2e6f25['id'],'device':_0x522fe2('0x2061')})[_0x522fe2('0x1dc2')][_0x522fe2('0xaa5')](function(){_0x54998f();})['catch'](function(_0x10d5e0){_0x4b8a0f(_0x10d5e0);});});}function _0x2c43f0(_0x593f36){return _0x299b9e(function(_0x3fa8d9,_0x34d526){var _0xf07616=a0_0x1149,_0x44f803={'online':_0x593f36,'lastLoginAt':_0x593f36?_0x420d43()()['format'](_0xf07616('0x1463')):undefined};_0x29438d[_0xf07616('0x272b')][_0xf07616('0x264e')]({'id':_0x2e6f25['id']},_0x44f803)['$promise']['then'](function(_0x4a4194){_0x3fa8d9(_0x4a4194);})[_0xf07616('0x253d')](function(_0x4185d4){_0x34d526(_0x4185d4);});});}function _0x3e0a68(_0x46e020){return _0x299b9e(function(_0x47ed16,_0x1cbdf1){var _0x2711e1=a0_0x1149;_0x29438d['auth'][_0x2711e1('0x4b')](_0x46e020)[_0x2711e1('0x1dc2')]['then'](function(_0x30c410){var _0xaa53c3=_0x2711e1;return _0x59ec3b['put']('motion.token',_0x30c410[_0xaa53c3('0xbe2')]),_0x29438d[_0xaa53c3('0x272b')]['get']({'id':_0x30c410['id']})[_0xaa53c3('0x1dc2')];})[_0x2711e1('0xaa5')](function(_0x2f43c0){var _0x55161c=_0x2711e1;_0x2e6f25=_0x2f43c0,_0x2e6f25[_0x55161c('0x2340')]=_0x420d43()()[_0x55161c('0x1f27')](_0x55161c('0x1463')),_0x587d95(_0x55161c('0x24dd'));})[_0x2711e1('0xaa5')](function(){var _0x2ab65b=_0x2711e1;if(_0x2aafeb()&&_0x2e6f25['showWebBar']===0x1&&_0x2e6f25['hotdesk'])return _0x23a71a['show']({'controller':_0x2ab65b('0x22e6'),'controllerAs':'vm','templateUrl':_0x48c0be,'parent':angular[_0x2ab65b('0x1aa8')](_0x83e2be['body']),'clickOutsideToClose':![],'resolve':{'telephones':['apiResolver',function _0xbfc206(_0x2a12e7){var _0x185b7c=_0x2ab65b;return _0x2a12e7['resolve'](_0x185b7c('0xde4'),{'fields':'id,fullname,name,internal','role':_0x185b7c('0xb5b'),'nolimit':!![]});}]}});})[_0x2711e1('0xaa5')](function(_0x8cfd61){var _0x279622=_0x2711e1;if(_0x2aafeb()&&_0x2e6f25[_0x279622('0x285')]!==0x0)return _0x1f255b(_0x8cfd61);else{if(_0x2c6ab4()||_0xa12556())return _0x2c43f0(!![]);else return;}})[_0x2711e1('0xaa5')](function(_0x4abc56){_0x2e6f25=_0x51538b()['assign'](_0x2e6f25,_0x4abc56),_0x47ed16();})[_0x2711e1('0x253d')](function(_0x370e8c){_0x1cbdf1(_0x370e8c);});});}function _0x23bddb(){var _0x353b64=a0_0x1149;_0x59ec3b['remove']('motion.token'),_0x2e6f25&&(_0x118725[_0x353b64('0x38e')][_0x353b64('0x21e')](_0x353b64('0x1c54')+_0x2e6f25['id']),_0x118725[_0x353b64('0x38e')][_0x353b64('0x21e')](_0x353b64('0xeef')),_0x2e6f25=null);}function _0x4dae07(_0x1c01aa){return _0x299b9e(function(_0x4c636e,_0x36ff00){var _0x35e291=a0_0x1149;_0x1c01aa?(_0x23bddb(),_0x4c636e()):_0x299b9e[_0x35e291('0x149f')]()[_0x35e291('0xaa5')](function(){var _0x3c2188=_0x35e291;if(_0x2aafeb()&&_0x2e6f25[_0x3c2188('0x285')]!==0x0)return _0x2e15eb();else{if(_0x2c6ab4()||_0xa12556())return _0x2c43f0(![]);else return;}})['then'](function(){_0x23bddb(),_0x4c636e();})[_0x35e291('0x253d')](function(_0x3ac3e6){_0x36ff00(_0x3ac3e6);});});}function _0x54c5c7(){return _0x399ccc()?!![]:![];}function _0x2aafeb(){var _0x3d96d6=a0_0x1149;return _0x2e6f25[_0x3d96d6('0x924')]==='agent';}function _0x2c6ab4(){var _0x562d72=a0_0x1149;return _0x2e6f25[_0x562d72('0x924')]===_0x562d72('0x178b');}function _0xa12556(){var _0xa6f8b8=a0_0x1149;return _0x2e6f25[_0xa6f8b8('0x924')]===_0xa6f8b8('0x272b');}function _0x15dd78(){var _0x1b6ce4=a0_0x1149;return _0x2e6f25['role']===_0x1b6ce4('0xb5b');}function _0x3fabef(){return _0x299b9e(function(_0x5d6c1a,_0x3263d5){var _0x4163e9=a0_0x1149;_0x29438d[_0x4163e9('0x272b')][_0x4163e9('0xcec')]()['$promise'][_0x4163e9('0xaa5')](function(_0x3aebea){var _0x57b0ea=_0x4163e9;return _0x3aebea[_0x57b0ea('0x924')]==='user'?_0x200970(_0x3aebea['userProfileId'])['then'](function(_0xf36efa){var _0x40e6a0=_0x57b0ea;return _0x3aebea[_0x40e6a0('0x193d')]=_0xf36efa,_0x3aebea;}):_0x3aebea;})['then'](function(_0x3dab38){_0x2e6f25=_0x3dab38,_0x5d6c1a(_0x2e6f25);})[_0x4163e9('0x253d')](function(_0x391acc){_0x3263d5(_0x391acc);});});}function _0x3ae051(_0x56e5e8){var _0x44470c=a0_0x1149;return _0x2e6f25?_0x2e6f25[_0x44470c('0x924')]===_0x56e5e8:![];}function _0x23f306(_0x5a0f55){var _0x172533=a0_0x1149;return _0x2e6f25?_0x51538b()['includes'](_0x2e6f25[_0x172533('0x193d')],_0x5a0f55):![];}function _0x200970(_0x3019a7){var _0xe660a5=[];return _0x299b9e(function(_0x24b035,_0x2157c3){var _0x10f373=a0_0x1149;return!_0x3019a7&&_0x24b035(_0xe660a5),_0x29438d[_0x10f373('0x1e97')][_0x10f373('0x265f')]({'id':_0x3019a7})[_0x10f373('0x1dc2')][_0x10f373('0xaa5')](function(_0x48abed){var _0x16a1df=_0x10f373;for(var _0x47a730=0x0;_0x47a730<_0x48abed['length'];_0x47a730++){var _0x33b829=_0x48abed[_0x47a730];_0xe660a5['push'](_0x33b829[_0x16a1df('0x10b8')]),_0x33b829['subsections']&&(_0xe660a5=_0x51538b()['concat'](_0xe660a5,_0x33b829['subsections']));}return _0xe660a5;})[_0x10f373('0xaa5')](function(_0xe39f85){_0x24b035(_0xe39f85);})[_0x10f373('0x253d')](function(_0x3e565b){var _0x3956bb=_0x10f373;_0x2157c3(_0x3956bb('0x12a9'),_0x3e565b);});});}function _0x4c76e3(_0x5797e0){var _0x5b9493=a0_0x1149;if(!_0x5797e0)return![];return _0x51538b()[_0x5b9493('0x2c2')](_0x5797e0,function(_0x1d8834){return _0x23f306(_0x1d8834);});}function _0x561e75(){return _0x299b9e(function(_0xf4df11,_0x4ab544){var _0x561676=a0_0x1149;_0x200970(_0x2e6f25[_0x561676('0x2168')])[_0x561676('0xaa5')](function(_0x59c23a){var _0x41061e=_0x561676;_0x2e6f25[_0x41061e('0x193d')]=_0x59c23a,_0xf4df11();})[_0x561676('0x253d')](function(_0x9b524d){_0x4ab544(_0x9b524d);});});}function _0x3171ea(_0x179f6d){var _0x3b0dd3=a0_0x1149;return _0x2c6ab4()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x179f6d?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x51538b()['includes'](_0x179f6d,'r')&&_0x179f6d[_0x3b0dd3('0x2587')]===0x1?!![]:![],'canEdit':_0x51538b()['includes'](_0x179f6d,'e')?!![]:![],'canDelete':_0x51538b()[_0x3b0dd3('0x13d6')](_0x179f6d,'d')?!![]:![]};}function _0x316e44(_0xe7b2d2,_0x1faa4a){return _0x299b9e(function(_0xaf7260,_0x3504a4){var _0x2394ed=a0_0x1149;return _0x29438d['userProfileSection'][_0x2394ed('0x2122')]({'userProfileId':_0x2e6f25[_0x2394ed('0x2168')],'sectionId':_0xe7b2d2})[_0x2394ed('0x1dc2')][_0x2394ed('0xaa5')](function(_0x306bda){var _0x58c3fb=_0x2394ed,_0x25124f=_0x306bda['rows'][0x0];if(_0x25124f['autoAssociation'])_0xaf7260();else return _0x29438d[_0x58c3fb('0x249a')]['get']({'sectionId':_0x25124f['id'],'nolimit':!![]})[_0x58c3fb('0x1dc2')][_0x58c3fb('0xaa5')](function(_0x50a2fa){var _0x11e697=_0x58c3fb,_0x39a33a=_0x50a2fa[_0x11e697('0x580')];_0x51538b()[_0x11e697('0x2c2')](_0x39a33a,[_0x11e697('0xbcd'),_0x1faa4a])?_0xaf7260():_0x3504a4();});})['catch'](function(_0x17ab7b){var _0x3a4970=_0x2394ed;_0x3504a4(_0x3a4970('0x12a9'),_0x17ab7b);});});}function _0x1b9da2(_0x1c6eac){return _0x299b9e(function(_0x5964eb,_0x3ca04b){var _0x28751a=a0_0x1149,_0x437591={};return _0x561e75()['then'](function(){var _0x2cff04=a0_0x1149;_0x51538b()[_0x2cff04('0x13d6')](_0x2e6f25['permissions'],_0x1c6eac)&&(_0x437591[_0x1c6eac]=!![]),_0x5964eb(_0x437591);})[_0x28751a('0x253d')](function(_0xb0101e){_0x3ca04b(_0xb0101e);});});}function _0x561e2c(_0x1cf485){return _0x299b9e(function(_0xa61492,_0x1075ee){var _0x1a9cc5=a0_0x1149,_0x49cf65={};if(_0x2c6ab4())_0x1cf485[_0x1a9cc5('0x15b5')](function(_0x5a8076){_0x49cf65[_0x5a8076]=!![];}),_0xa61492(_0x49cf65);else return _0x561e75()[_0x1a9cc5('0xaa5')](function(){var _0x1806e8=_0x1a9cc5;_0x1cf485[_0x1806e8('0x15b5')](function(_0x181be9){var _0x16d3d6=_0x1806e8;_0x51538b()[_0x16d3d6('0x13d6')](_0x2e6f25[_0x16d3d6('0x193d')],_0x181be9)&&(_0x49cf65[_0x181be9]=!![]);}),_0xa61492(_0x49cf65);})[_0x1a9cc5('0x253d')](function(_0x2caa64){_0x1075ee(_0x2caa64);});});}function _0x512c0b(_0x34cede){return _0x299b9e(function(_0xa4f2a3,_0x4841c0){var _0x5e4ac0=a0_0x1149;_0x2c6ab4()?_0xa4f2a3(!![]):_0x29438d[_0x5e4ac0('0x1a50')][_0x5e4ac0('0x2122')]({'userProfileId':_0x2e6f25[_0x5e4ac0('0x2168')]})[_0x5e4ac0('0x1dc2')][_0x5e4ac0('0xaa5')](function(_0x53eb95){var _0x8fe285=_0x5e4ac0,_0x64c8dc=_0x53eb95&&_0x53eb95[_0x8fe285('0x580')]?_0x53eb95[_0x8fe285('0x580')]:[];if(!_0x51538b()[_0x8fe285('0x116b')](_0x64c8dc)){var _0x1d19c3=_0x51538b()[_0x8fe285('0xdb7')](_0x64c8dc,function(_0x563b0c){var _0x5e412c=_0x8fe285;return _0x563b0c[_0x5e412c('0xbd3')];});_0xa4f2a3(_0x51538b()['some'](_0x1d19c3,['category',_0x34cede]));}else _0xa4f2a3(![]);})[_0x5e4ac0('0x253d')](function(_0x4c63dd){_0x4841c0(_0x4c63dd);});});}function _0x24dde0(_0x2e4fa2){return _0x299b9e(function(_0x452fd2,_0x2e43a4){var _0x2895ba=a0_0x1149,_0x421c58={};_0x2c6ab4()?(_0x2e4fa2[_0x2895ba('0x15b5')](function(_0x3467bb){_0x421c58[_0x3467bb]=!![];}),_0x452fd2(_0x421c58)):_0x29438d[_0x2895ba('0x1a50')]['get']({'userProfileId':_0x2e6f25[_0x2895ba('0x2168')]})[_0x2895ba('0x1dc2')][_0x2895ba('0xaa5')](function(_0x46e755){var _0x39a58e=_0x2895ba,_0x3fbb60=_0x46e755&&_0x46e755[_0x39a58e('0x580')]?_0x46e755[_0x39a58e('0x580')]:[];if(!_0x51538b()[_0x39a58e('0x116b')](_0x3fbb60)){var _0x2d157a=_0x51538b()(_0x3fbb60)[_0x39a58e('0xdb7')](function(_0x1b15fc){var _0x5a793d=_0x39a58e;return _0x1b15fc[_0x5a793d('0xbd3')]&&_0x51538b()['includes'](_0x2e4fa2,_0x1b15fc['category']);})[_0x39a58e('0x72d')](function(_0x405faa){var _0x4dfc68=_0x39a58e;return _0x405faa[_0x4dfc68('0xf0e')];})['map'](function(_0x441b62){var _0x2b85e4=_0x39a58e;return _0x441b62[_0x2b85e4('0xf0e')];})[_0x39a58e('0x12f4')]();_0x2d157a[_0x39a58e('0x15b5')](function(_0x5edaf8){_0x421c58[_0x5edaf8]=!![];}),_0x452fd2(_0x421c58);}else _0x452fd2({});})[_0x2895ba('0x253d')](function(_0x1d5ce3){_0x2e43a4(_0x1d5ce3);});});}function _0x3d1473(){var _0x4904d4=a0_0x1149;return _0x118725[_0x4904d4('0x38e')][_0x4904d4('0xeef')]||_0x4904d4('0x36f');}function _0x587d95(_0x48b884){var _0x3165e1=a0_0x1149;_0x118725[_0x3165e1('0x38e')][_0x3165e1('0xeef')]=_0x48b884;}function _0x5690c7(_0x46a7c9){var _0x3e4db8=a0_0x1149;return _0x587d95('SSO_LOGIN'),_0x3e4db8('0x17de')+_0x46a7c9;}}const _0x5e585c=_0x4c8491;_0x5b5f74[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x395')];function _0x5b5f74(_0x12e32c,_0x401fb6){var _0x1c26a2=_0x1a8446,_0x118019=this;function _0x2aff4a(_0x4c78d1){_0x12e32c['hide'](_0x4c78d1);}_0x118019[_0x1c26a2('0x395')]=_0x401fb6,_0x118019['closeDialog']=_0x2aff4a,_0x401fb6[_0x1c26a2('0xd15')]&&(_0x118019[_0x1c26a2('0x25d6')]=_0x401fb6['rows'][0x0][_0x1c26a2('0x25d6')]);}const _0x2ff213=_0x5b5f74;_0x34d3af[_0x1a8446('0x1e33')]=['$rootScope','$q',_0x1a8446('0x95f'),_0x1a8446('0x1826'),_0x1a8446('0xd6e')];function _0x34d3af(_0x44185a,_0x339530,_0x59b645,_0x2a19b4,_0x331ba5){var _0x56b57e;return{'request':function _0x1524a3(_0x1fd699){var _0x13063b=a0_0x1149,_0x4f0744=_0x59b645[_0x13063b('0x2122')](_0x13063b('0x10f8'));return _0x1fd699['headers']=_0x1fd699['headers']||{},(![]||_0x331ba5[_0x13063b('0x328')](_0x1fd699[_0x13063b('0x2242')]))&&_0x4f0744&&(_0x1fd699[_0x13063b('0xc71')]['Authorization']='Bearer\x20'+_0x4f0744),_0x1fd699;},'responseError':function _0x2cc136(_0x2130aa){var _0x37bf6f=a0_0x1149;switch(_0x2130aa[_0x37bf6f('0x2fa')]){case 0x191:_0x59b645[_0x37bf6f('0xf6d')](_0x37bf6f('0x10f8')),(_0x56b57e||(_0x56b57e=_0x2a19b4[_0x37bf6f('0x2122')](_0x37bf6f('0x145b'))))['go'](_0x37bf6f('0x1bba'));break;case 0x194:break;default:break;}return _0x339530[_0x37bf6f('0xaee')](_0x2130aa);}};}const _0x2c4010=_0x34d3af;_0x1c413b[_0x1a8446('0x1e33')]=[_0x1a8446('0x27bf')];function _0x1c413b(_0x159ee6){var _0x46806a={'safeCb':function _0x3744d9(_0x34bb63){var _0x48491d=a0_0x1149;return angular[_0x48491d('0x171f')](_0x34bb63)?_0x34bb63:angular['noop'];},'urlParse':function _0x4f5cc6(_0xaea35){var _0x192580=a0_0x1149,_0x537343=document['createElement']('a');return _0x537343[_0x192580('0x18ae')]=_0xaea35,_0x537343['host']===''&&(_0x537343[_0x192580('0x18ae')]=_0x537343[_0x192580('0x18ae')]),_0x537343;},'isSameOrigin':function _0x2ce039(_0x54f002,_0x1385b5){var _0x55a597=a0_0x1149;return _0x54f002=_0x46806a[_0x55a597('0x27c')](_0x54f002),_0x1385b5=_0x1385b5&&[][_0x55a597('0x9e4')](_0x1385b5)||[],_0x1385b5=_0x1385b5[_0x55a597('0x1246')](_0x46806a[_0x55a597('0x27c')]),_0x1385b5[_0x55a597('0x1599')](_0x159ee6[_0x55a597('0x18cc')]),_0x1385b5=_0x1385b5[_0x55a597('0xdb7')](function(_0x39fbc3){var _0x2bec03=_0x55a597,_0x222c6b=_0x54f002[_0x2bec03('0x1aae')]===_0x39fbc3[_0x2bec03('0x1aae')],_0x44c3c8=_0x54f002['protocol']===_0x39fbc3[_0x2bec03('0x1cc2')],_0x18f9da=_0x54f002[_0x2bec03('0x191')]===_0x39fbc3['port']||_0x39fbc3[_0x2bec03('0x191')]===''&&(_0x54f002['port']==='80'||_0x54f002[_0x2bec03('0x191')]===_0x2bec03('0x1009'));return _0x222c6b&&_0x44c3c8&&_0x18f9da;}),_0x1385b5['length']>=0x1;}};return _0x46806a;}const _0x500014=_0x1c413b;;angular['module'](_0x1a8446('0x74f'),[])['config'](_0x573867)[_0x1a8446('0xd9f')](_0x23f5f2)[_0x1a8446('0x1be9')](_0x1a8446('0x1dfd'),_0x5e585c)[_0x1a8446('0x780')](_0x1a8446('0x22e6'),_0x2ff213)[_0x1a8446('0x1be9')](_0x1a8446('0x1acb'),_0x2c4010)[_0x1a8446('0x1be9')](_0x1a8446('0xd6e'),_0x500014);var _0x56eeb8=_0x4fb511(0xca2),_0x54c5a1=_0x4fb511(0x1e94),_0x206b9e=_0x4fb511(0x1e80),_0x59f710=_0x4fb511(0x11ee),_0x1bfc94=_0x4fb511(0x36e),_0x31ee04=_0x4fb511(0x1bdb),_0x4cffae=_0x4fb511(0x1c17),_0xc09ead=_0x4fb511(0x813),_0x2daa8d=_0x4fb511(0xdff),_0x35ecf7=_0x4fb511(0x251),_0x28b947=_0x4fb511(0xdf),_0xbdae41=_0x4fb511(0x1299),_0x22d08d=_0x4fb511(0x177),_0x1ba928=_0x4fb511(0x573);function _0x205dd8(){var _0x282e86=_0x1a8446,_0x44df0b={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x477b10(_0x38a0ac){var _0x1d1f62=a0_0x1149;_0x44df0b=angular[_0x1d1f62('0x5c5')]({},_0x44df0b,_0x38a0ac);}function _0x598b1f(_0x434a77){var _0x5a717a=a0_0x1149;if(angular[_0x5a717a('0xec')](_0x44df0b[_0x434a77]))return![];return _0x44df0b[_0x434a77];}function _0xb5af46(_0x2ae1d0,_0x3e170c){_0x44df0b[_0x2ae1d0]=_0x3e170c;}this[_0x282e86('0x149')]=function(){var _0x1d8035={'getConfig':_0x598b1f,'setConfig':_0xb5af46};return _0x1d8035;},this[_0x282e86('0x1b14')]=_0x477b10;}const _0x50ef58=_0x205dd8;_0xb922f9['$inject']=[_0x1a8446('0x2763'),_0x1a8446('0x1b86'),_0x1a8446('0x225'),_0x1a8446('0x120d')];function _0xb922f9(_0x4e1019,_0x4b9d21,_0x33d063,_0x5c2b2a){var _0x332b62=_0x1a8446;_0x4b9d21[_0x332b62('0x1333')](!![]),_0x4e1019['config']({'tabindex':![]}),_0x5c2b2a[_0x332b62('0x1b14')]({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x33d063['config']({'wheelPropagation':!![]});}const _0x5170b7=_0xb922f9;_0x254ac1[_0x1a8446('0x1e33')]=[_0x1a8446('0x25c'),_0x1a8446('0x218c'),_0x1a8446('0x1897')];function _0x254ac1(_0x54ec42,_0xeab7ac,_0x76851f){var _0x252fb1=_0x1a8446;_0xeab7ac['generate']();if(_0x76851f[_0x252fb1('0x1323')](_0x252fb1('0x1677'))&&_0x54ec42[_0x252fb1('0x1470')]()){var _0x400870=angular['element']('body');_0x400870[_0x252fb1('0x162b')]('md-no-ink',!![]);}_0x54ec42[_0x252fb1('0x1470')]()&&angular[_0x252fb1('0x1aa8')](_0x252fb1('0x1869'))['addClass'](_0x252fb1('0xdcf'));var _0x2f13db=_0x54ec42['detectBrowser']();if(_0x2f13db){var _0x3e6b50=_0x2f13db[_0x252fb1('0xa39')]+'\x20'+_0x2f13db[_0x252fb1('0x2678')]+'\x20'+_0x2f13db['os'];angular[_0x252fb1('0x1aa8')](_0x252fb1('0x1869'))['addClass'](_0x3e6b50);}}const _0x401029=_0x254ac1;_0x43bbb9[_0x1a8446('0x1e33')]=[_0x1a8446('0x27bf'),_0x1a8446('0x2378'),'Auth',_0x1a8446('0x4b9'),_0x1a8446('0x13a'),_0x1a8446('0x186c')];function _0x43bbb9(_0x390ecb,_0x54913e,_0x5a3590,_0x18de55,_0x26b23b,_0x4a3b1f){var _0x1c4de7=_0x1a8446,_0x488bc6=this;_0x488bc6['currentUser']=_0x5a3590[_0x1c4de7('0xacc')](),_0x488bc6['searchOptions']={'matchType':_0x1c4de7('0x23f8'),'conditions':[],'fields':_0x26b23b},_0x488bc6['toolbarColor']=_0x18de55,_0x488bc6[_0x1c4de7('0x2318')]=_0x377729,_0x488bc6[_0x1c4de7('0xb98')]=_0x15bd08,_0x488bc6[_0x1c4de7('0x1661')]=_0x13d96b,_0x488bc6[_0x1c4de7('0x1da3')]=_0x49ec54,_0x488bc6['close']=_0x4e16a3;function _0x377729(){var _0x238236=_0x1c4de7;if(_0x4a3b1f){var _0x5c10f0=_0x5773f5();typeof _0x5c10f0[_0x238236('0xd67')]!=='undefined'&&(_0x488bc6[_0x238236('0xa8f')]=_0x51538b()['merge'](_0x488bc6[_0x238236('0xa8f')],_0x5c10f0[_0x238236('0xd67')]));}}function _0x15bd08(){var _0x207e68=_0x1c4de7,_0x13aa91=_0x51538b()[_0x207e68('0xdb7')](_0x488bc6[_0x207e68('0xa8f')][_0x207e68('0x1ad5')],[_0x207e68('0x2686'),![]]),_0x575c58='['+_0x488bc6['searchOptions'][_0x207e68('0x8c')]+']',_0x449680=[],_0xa54b7d='';_0x51538b()(_0x13aa91)['groupBy'](_0x207e68('0x25d6'))['forEach'](function(_0x5a745b){var _0x521616=_0x207e68,_0x5c1230=_0x5a745b[0x0],_0x1dd298=_0x5a745b['length']>0x1?!![]:![],_0x29dea6=_0x5c1230['query'][_0x521616('0x6c')];if(_0x1dd298){var _0x176396=_0x51538b()(_0x5a745b)[_0x521616('0x1663')](function(_0x3beaef){var _0x560782=_0x521616;return _0x3beaef[_0x560782('0x582')][_0x560782('0x5ed')];})[_0x521616('0xb6f')](function(_0x56e1ca){var _0x5461b0=_0x521616;return _0x51538b()['chain'](_0x56e1ca)['map'](function(_0x503dc4){var _0x27f6f3=a0_0x1149;return _0x503dc4[_0x27f6f3('0x582')][_0x27f6f3('0x12f4')];})['flattenDeep']()[_0x5461b0('0x12f4')]();})[_0x521616('0x12f4')](),_0x4f66b5=[];_0x51538b()[_0x521616('0x9f2')](_0x176396)[_0x521616('0x15b5')](function(_0x249893){var _0x16ae80=_0x521616,_0x41fa68=_0x176396[_0x249893],_0x41c986=_0x249893;_0x51538b()[_0x16ae80('0x13d6')]([_0x16ae80('0x5be'),_0x16ae80('0x1608'),_0x16ae80('0x930')],_0x249893)?_0x41c986+='['+_0x41fa68+']':_0x41fa68[_0x16ae80('0x15b5')](function(_0x4579d5){_0x41c986+='['+_0x4579d5+']';}),_0x4f66b5['push'](_0x41c986);}),_0xa54b7d+=_0x29dea6+':='+_0x4f66b5[_0x521616('0x19c4')](':=');}else _0xa54b7d=_0x29dea6+':='+_0x5c1230[_0x521616('0x582')][_0x521616('0x5ed')]+'['+_0x5c1230[_0x521616('0x582')][_0x521616('0x12f4')]+']';_0x449680['push'](_0xa54b7d);}),_0x575c58+=_0x449680['join']('||'),_0xbcb369(),_0x54913e[_0x207e68('0x1120')](_0x575c58);}function _0x13d96b(){var _0x3317a8=_0x1c4de7;_0x488bc6[_0x3317a8('0xa8f')]['conditions']=[],_0xce4dee();}function _0x49ec54(){var _0x1b438e=_0x1c4de7;_0xbcb369(),_0x54913e[_0x1b438e('0x1120')]();}function _0x4e16a3(){var _0x2513ed=_0x1c4de7;_0x54913e[_0x2513ed('0x1120')](![]);}function _0x5773f5(){var _0x3ab034=_0x1c4de7,_0x5220c1=_0x390ecb['localStorage'][_0x3ab034('0x173f')](_0x3ab034('0x253')+_0x4a3b1f+':'+_0x488bc6['currentUser']['id']);return _0x5220c1?JSON['parse'](_0x5220c1):{};}function _0x31feba(_0x410612){var _0x372dea=_0x1c4de7;_0x390ecb['localStorage'][_0x372dea('0xdbf')]('motion2.'+_0x4a3b1f+':'+_0x488bc6[_0x372dea('0x7fc')]['id'],JSON[_0x372dea('0xa48')](_0x410612));}function _0xbcb369(){var _0x1a0474=_0x1c4de7;if(_0x4a3b1f){var _0x54bf2d=_0x5773f5();_0x54bf2d[_0x1a0474('0xd67')]=_0x51538b()[_0x1a0474('0x245')](_0x488bc6[_0x1a0474('0xa8f')],_0x1a0474('0x13a')),_0x31feba(_0x54bf2d);}}function _0xce4dee(){var _0x5ac259=_0x1c4de7;if(_0x4a3b1f){var _0x33fa9f=_0x5773f5();delete _0x33fa9f['advancedSearch'];if(_0x33fa9f[_0x5ac259('0x582')])delete _0x33fa9f[_0x5ac259('0x582')][_0x5ac259('0x1785')];_0x31feba(_0x33fa9f);}}}const _0x4848e9=_0x43bbb9;_0x3dbe84[_0x1a8446('0x1e33')]=[_0x1a8446('0x186b')];function _0x3dbe84(_0x23f99f){return{'restrict':'A','link':function _0x395cf5(_0x5719f5,_0x3ccaf4,_0x30dd21){var _0x3a8faf=a0_0x1149;_0x5719f5[_0x3a8faf('0x1ccf')](_0x30dd21[_0x3a8faf('0x226')],function(_0x30c347){_0x23f99f(function(){var _0xff742a=a0_0x1149;_0x30c347?_0x3ccaf4[0x0][_0xff742a('0x14ae')]():_0x3ccaf4[0x0][_0xff742a('0x8b7')]();});});}};}const _0x50eba3=_0x3dbe84;var _0x59408c=_0x4fb511(0x1433),_0x24f081=_0x4fb511['n'](_0x59408c);_0x55d82c['$inject']=[_0x1a8446('0x186b'),'$q',_0x1a8446('0x1118')];function _0x55d82c(_0x3dce10,_0x3c34a7,_0x428a12){return{'restrict':'E','compile':function _0x5b092d(_0x50b016,_0x46d03f){var _0x490e3c=a0_0x1149,_0x20cf9e;return!_0x46d03f[_0x490e3c('0x7fb')]&&(_0x20cf9e=_0x50b016['html'](),_0x50b016['empty']()),function(_0x5089b6,_0x4effab,_0x53afe7){var _0x3cfc13=_0x490e3c;_0x53afe7[_0x3cfc13('0x7fb')]&&(_0x20cf9e=_0x5089b6[_0x3cfc13('0x26af')](_0x53afe7[_0x3cfc13('0x7fb')]));var _0xb59d34=_0x5089b6[_0x3cfc13('0x26af')](_0x53afe7['shouldInterpolate']);_0x3c34a7[_0x3cfc13('0x13fc')](_0x20cf9e)['then'](function(_0x1e9e06){var _0x4d1e62=_0x3cfc13;if(_0x1e9e06){_0xb59d34&&(_0x1e9e06=_0x428a12(_0x1e9e06)(_0x5089b6));var _0x3d5644=angular[_0x4d1e62('0x1aa8')]('
');_0x4effab[_0x4d1e62('0x1923')](_0x3d5644),_0x3dce10(function(){_0xd32e3e(_0x1e9e06,_0x3d5644);},0x22,![]);}});function _0xd32e3e(_0x1bc7e9,_0x2234ec){var _0x5c26f8=_0x3cfc13,_0x3276c2=_0x2234ec['find'](_0x5c26f8('0x7fb')),_0x4a857a=_0x1bc7e9[_0x5c26f8('0x1a39')]('\x0a');_0x4a857a=_0x4a857a[_0x5c26f8('0xdb7')](function(_0x17d911){var _0xb550e9=_0x5c26f8;return _0x17d911[_0xb550e9('0x2497')]()['length'];});var _0x4b3822=_0x4a857a[0x0][_0x5c26f8('0xfce')](/^\s*/)[0x0],_0xda4a4c=new RegExp('^'+_0x4b3822);_0x4a857a=_0x4a857a[_0x5c26f8('0x1246')](function(_0x273254){var _0x238cf0=_0x5c26f8;return _0x273254[_0x238cf0('0x170d')](_0xda4a4c,'')[_0x238cf0('0x170d')](/\s+$/,'');});var _0x49b6cd=_0x24f081()[_0x5c26f8('0x17b3')](_0x53afe7[_0x5c26f8('0x1938')]||_0x53afe7['lang'],_0x4a857a['join']('\x0a'),!![]);_0x49b6cd[_0x5c26f8('0x12f4')]=_0x49b6cd[_0x5c26f8('0x12f4')]['replace'](/=""<\/span>/gi,'')[_0x5c26f8('0x170d')](_0x5c26f8('0x1ac9'),'')[_0x5c26f8('0x170d')]('',''),_0x3276c2['append'](_0x49b6cd[_0x5c26f8('0x12f4')])['addClass'](_0x5c26f8('0x17b3'));}};}};}const _0xf3f2fa=_0x55d82c,_0x1432f2=_0x4fb511['p']+_0x1a8446('0x280f');_0x28ec5f[_0x1a8446('0x1e33')]=[_0x1a8446('0xcb3'),'$q',_0x1a8446('0x157'),_0x1a8446('0x2a4')];function _0x529336(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x28ec5f,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x1432f2};}function _0x28ec5f(_0xb0e2ef,_0x4b4495,_0xcb97f8,_0x3f434e){var _0x41015b=_0x1a8446,_0xe9dbfc=this;_0xe9dbfc[_0x41015b('0x1638')]=[{'type':_0x41015b('0x221d'),'symbol':'=','translate':_0x41015b('0x1e2f'),'excludeFrom':['multiselect']},{'type':_0x41015b('0x13f7'),'symbol':'≠','translate':'IS_NOT_EQUAL','excludeFrom':[_0x41015b('0x2468')]},{'type':'$in','symbol':'∈','translate':'IS_AMONG','applyTo':['multiselect']},{'type':'$notIn','symbol':'∉','translate':_0x41015b('0x176e'),'applyTo':['multiselect']},{'type':_0x41015b('0x2082'),'symbol':'⊃','translate':_0x41015b('0xeb6'),'applyTo':[_0x41015b('0xb37')]},{'type':_0x41015b('0x2772'),'symbol':_0x41015b('0x88a'),'translate':_0x41015b('0xe15'),'applyTo':[_0x41015b('0xb37')]},{'type':_0x41015b('0x156e'),'symbol':_0x41015b('0x8ea'),'translate':_0x41015b('0x1f3c'),'applyTo':[_0x41015b('0xb37')]},{'type':_0x41015b('0x12b9'),'symbol':'<','translate':'IS_LESS_THAN','applyTo':[_0x41015b('0xb87'),'number']},{'type':_0x41015b('0x16e5'),'symbol':'>','translate':_0x41015b('0xaf3'),'applyTo':[_0x41015b('0xb87'),'number']},{'type':_0x41015b('0x2651'),'symbol':'≤','translate':_0x41015b('0x2754'),'applyTo':[_0x41015b('0xb87'),_0x41015b('0x219a')]},{'type':_0x41015b('0xc9e'),'symbol':'≥','translate':_0x41015b('0x1c15'),'applyTo':['date',_0x41015b('0x219a')]},{'type':_0x41015b('0x5be'),'symbol':'≬','translate':_0x41015b('0x5c1'),'applyTo':[_0x41015b('0xb87'),_0x41015b('0x219a')]}],_0xe9dbfc[_0x41015b('0x756')]=_0xe9dbfc['availableOperators'],_0xe9dbfc['addCondition']=_0x9f9efb,_0xe9dbfc['editCondition']=_0x17e8bd,_0xe9dbfc[_0x41015b('0x12ca')]=_0x308d9a,_0xe9dbfc['cancelUpdateCondition']=_0x228188,_0xe9dbfc[_0x41015b('0x49d')]=_0x4f74ae,_0xe9dbfc[_0x41015b('0x313')]=_0x278ae7,_0xe9dbfc['getValues']=_0x223feb,_0xe9dbfc[_0x41015b('0x26ce')]=_0x12e300,_0xe9dbfc['onOperatorChange']=_0x33026a,_0xe9dbfc[_0x41015b('0xc62')]=_0x28fdbe,_0xe9dbfc[_0x41015b('0x329')]=_0x147fc6,_0xe9dbfc['handleKeyboardAction']=_0x594310;function _0x12e300(){var _0x514244=_0x41015b;_0xe9dbfc[_0x514244('0x12f4')]=undefined,_0xe9dbfc[_0x514244('0x1c46')]=undefined,_0xe9dbfc[_0x514244('0x1e07')]=undefined,_0xe9dbfc['isValidCondition']=![],_0x125664(),_0xe9dbfc[_0x514244('0x13ea')]=_0xe9dbfc[_0x514244('0x1638')][_0x514244('0x2587')]===0x1?!![]:![];if(!_0xe9dbfc[_0x514244('0x13ea')])_0xe9dbfc[_0x514244('0x1eac')]=undefined;}function _0x33026a(_0x2c5895){var _0x8c644c=_0x41015b;_0xe9dbfc[_0x8c644c('0x2502')]=!![],_0xe9dbfc['selectedOperator']&&(_0x2c5895?_0x2c5895[_0x8c644c('0xd69')]?_0x51538b()[_0x8c644c('0x1485')](_0xe9dbfc[_0x8c644c('0x1eac')][_0x8c644c('0xd69')],_0x2c5895['applyTo'])[_0x8c644c('0x2587')]>0x0&&(_0xe9dbfc[_0x8c644c('0x12f4')]=null):_0xe9dbfc[_0x8c644c('0x1eac')][_0x8c644c('0xd69')]&&(_0xe9dbfc[_0x8c644c('0x12f4')]=null):_0xe9dbfc['value']=null,_0xe9dbfc[_0x8c644c('0x1eac')][_0x8c644c('0x6c8')]!=_0x8c644c('0x139')&&(_0xe9dbfc['endRangeValue']=null),_0xe9dbfc[_0x8c644c('0x22aa')][_0x8c644c('0x1b36')]&&!_0x51538b()[_0x8c644c('0x116b')](_0xe9dbfc[_0x8c644c('0x22aa')]['options']['extraOperators'])&&(_0xe9dbfc[_0x8c644c('0x1eac')][_0x8c644c('0x1439')]=_0x51538b()[_0x8c644c('0x2c2')](_0xe9dbfc['selectedField'][_0x8c644c('0x1b36')]['extraOperators'],function(_0x43e8aa){var _0x205ec5=_0x8c644c;return _0x43e8aa===_0xe9dbfc[_0x205ec5('0x1eac')][_0x205ec5('0x6c8')];}))),_0x54cb2d();}function _0x28fdbe(){var _0x5944ce=_0x41015b;if(_0xe9dbfc[_0x5944ce('0x1eac')]&&_0xe9dbfc[_0x5944ce('0x1eac')][_0x5944ce('0x6c8')]===_0x5944ce('0x5be')){if(_0xe9dbfc[_0x5944ce('0x22aa')][_0x5944ce('0x6c8')]===_0x5944ce('0x219a'))_0x147fc6();else _0xe9dbfc[_0x5944ce('0x22aa')][_0x5944ce('0x6c8')]==='date'&&(_0xe9dbfc[_0x5944ce('0x22df')]=_0x420d43()(_0xe9dbfc[_0x5944ce('0x12f4')])['add'](0x1,'day'),_0x54cb2d());}else _0x54cb2d();}function _0x125664(){var _0x2b3d0e=_0x41015b,_0x1056d2=_0xe9dbfc[_0x2b3d0e('0x22aa')]['options']&&!_0x51538b()[_0x2b3d0e('0x116b')](_0xe9dbfc['selectedField']['options'][_0x2b3d0e('0x21cc')]),_0x48e585=_0xe9dbfc['selectedField'][_0x2b3d0e('0x1b36')]&&!_0x51538b()[_0x2b3d0e('0x116b')](_0xe9dbfc[_0x2b3d0e('0x22aa')][_0x2b3d0e('0x1b36')]['excludedOperators']);_0xe9dbfc[_0x2b3d0e('0x1638')]=_0x51538b()[_0x2b3d0e('0xdb7')](_0xe9dbfc[_0x2b3d0e('0x756')],function(_0x4a5d9b){var _0x538d26=_0x2b3d0e,_0xa57a18=!_0x4a5d9b[_0x538d26('0xd69')]||_0x51538b()['includes'](_0x4a5d9b[_0x538d26('0xd69')],_0xe9dbfc['selectedField'][_0x538d26('0x6c8')]);_0x4a5d9b[_0x538d26('0x1439')]=_0x1056d2&&_0x51538b()[_0x538d26('0x2c2')](_0xe9dbfc[_0x538d26('0x22aa')][_0x538d26('0x1b36')]['extraOperators'],function(_0x17413f){var _0x3c79c6=_0x538d26;return _0x17413f===_0x4a5d9b[_0x3c79c6('0x6c8')];});var _0x37d17b=_0x51538b()[_0x538d26('0x13d6')](_0x4a5d9b[_0x538d26('0x1b8b')],_0xe9dbfc['selectedField'][_0x538d26('0x6c8')])||_0x48e585&&_0x51538b()[_0x538d26('0x13d6')](_0xe9dbfc[_0x538d26('0x22aa')]['options']['excludedOperators'],_0x4a5d9b[_0x538d26('0x6c8')]);if((_0xa57a18||_0x4a5d9b['isExtra'])&&!_0x37d17b)return _0x4a5d9b;});}function _0x223feb(){var _0x5846b0=_0x41015b,_0x502f40=angular['copy'](_0xe9dbfc[_0x5846b0('0x22aa')]['options'][_0x5846b0('0xbc0')]);if(_0xe9dbfc[_0x5846b0('0x22aa')][_0x5846b0('0x6c8')]===_0x5846b0('0x7e6'))for(var _0x47993f=0x0;_0x47993fNumber(_0xe9dbfc[_0x954b04('0x12f4')])?!![]:![]:_0xe9dbfc[_0x954b04('0x2502')]=!![];else _0xe9dbfc[_0x954b04('0x22aa')][_0x954b04('0x6c8')]===_0x954b04('0xb87')&&(_0xe9dbfc['maxDateRange']=_0x420d43()(_0xe9dbfc[_0x954b04('0x1c46')])[_0x954b04('0x2865')](0x1,_0x954b04('0xa7c')),_0xe9dbfc[_0x954b04('0x2502')]=!![]);_0x54cb2d();}function _0x9f9efb(){var _0x2e8b69=_0x41015b,_0x164a64=_0x360ef7();_0xe9dbfc[_0x2e8b69('0x1b36')][_0x2e8b69('0x1ad5')]['push'](_0x164a64),_0x5b7e19();}function _0x17e8bd(_0x4f1e66){var _0x314fd2=_0x41015b;_0xe9dbfc[_0x314fd2('0x171')]=_0x4f1e66,_0xe9dbfc[_0x314fd2('0x171')][_0x314fd2('0x1535')]=_0x314fd2('0x183e'),_0xe9dbfc[_0x314fd2('0x22aa')]=_0x51538b()[_0x314fd2('0xe9e')](_0xe9dbfc[_0x314fd2('0x1b36')][_0x314fd2('0x13a')],[_0x314fd2('0x25d6'),_0xe9dbfc[_0x314fd2('0x171')][_0x314fd2('0x25d6')]]),_0x125664(),_0xe9dbfc[_0x314fd2('0x1eac')]=_0x51538b()[_0x314fd2('0xe9e')](_0xe9dbfc[_0x314fd2('0x1638')],['type',_0xe9dbfc['pendingCondition'][_0x314fd2('0x582')][_0x314fd2('0x5ed')]]),_0xe9dbfc[_0x314fd2('0x22aa')]['type']===_0x314fd2('0xb87')&&typeof _0xe9dbfc['pendingCondition']['value']==='string'?(_0xe9dbfc[_0x314fd2('0x12f4')]=new Date(_0xe9dbfc[_0x314fd2('0x171')][_0x314fd2('0x12f4')]),_0xe9dbfc[_0x314fd2('0x22df')]=_0x420d43()(_0xe9dbfc[_0x314fd2('0x12f4')])['add'](0x1,_0x314fd2('0xa7c')),_0xe9dbfc[_0x314fd2('0x1c46')]=_0xe9dbfc[_0x314fd2('0x171')][_0x314fd2('0x17b5')]?new Date(_0xe9dbfc[_0x314fd2('0x171')]['endValue']):undefined):(_0xe9dbfc['value']=_0xe9dbfc[_0x314fd2('0x171')][_0x314fd2('0x12f4')],_0xe9dbfc[_0x314fd2('0x1c46')]=_0xe9dbfc[_0x314fd2('0x171')][_0x314fd2('0x17b5')]),_0xe9dbfc[_0x314fd2('0x2502')]=!![],_0xe9dbfc[_0x314fd2('0x2804')]=!![];}function _0x308d9a(){var _0x59f157=_0x41015b,_0x462ffd=_0x360ef7(),_0x2b1882=_0x51538b()['findIndex'](_0xe9dbfc[_0x59f157('0x1b36')]['conditions'],_0x59f157('0x1535'));_0xe9dbfc[_0x59f157('0x1b36')]['conditions'][_0x59f157('0x1280')](_0x2b1882,0x1,_0x462ffd),_0x5b7e19(),_0xe9dbfc[_0x59f157('0x171')]['style']=null,_0xe9dbfc['pendingCondition']=undefined;}function _0x228188(){var _0x13b6e2=_0x41015b;_0xe9dbfc[_0x13b6e2('0x171')][_0x13b6e2('0x1535')]=null,_0xe9dbfc[_0x13b6e2('0x171')]=undefined;}function _0x4f74ae(_0x16a473){var _0x1e33e6=_0x41015b;_0x16a473['style']=_0x16a473[_0x1e33e6('0x2686')]?undefined:_0x1e33e6('0x8ca'),_0x16a473[_0x1e33e6('0x2686')]=!_0x16a473[_0x1e33e6('0x2686')];}function _0x278ae7(){var _0x3f79fd=_0x41015b;if(_0x51538b()[_0x3f79fd('0x116b')](_0xe9dbfc['options']['conditions']))_0xe9dbfc[_0x3f79fd('0x1e47')]();}function _0x594310(){_0xe9dbfc['pendingCondition']?_0x308d9a():_0x9f9efb();}function _0x360ef7(){var _0x3f30fc=_0x41015b;return{'name':_0xe9dbfc[_0x3f30fc('0x22aa')][_0x3f30fc('0x25d6')],'operator':_0xb0e2ef[_0x3f30fc('0x213f')](_0x3f30fc('0x17fd')+_0xe9dbfc['selectedOperator'][_0x3f30fc('0x5d1')]),'value':_0xe9dbfc[_0x3f30fc('0x12f4')],'endValue':_0xe9dbfc[_0x3f30fc('0x1c46')],'displayValue':_0x21d43e(_0xe9dbfc[_0x3f30fc('0x12f4')]),'displayEndValue':_0x21d43e(_0xe9dbfc[_0x3f30fc('0x1c46')]),'query':{'column':_0xe9dbfc[_0x3f30fc('0x22aa')][_0x3f30fc('0x6c')],'operator':_0xe9dbfc[_0x3f30fc('0x1eac')][_0x3f30fc('0x6c8')],'value':_0xe23a9e()},'disabled':![]};}function _0x21d43e(_0x1d6a66){var _0x2bf25c=_0x41015b,_0x1918d5;if(!_0x1d6a66)return undefined;switch(_0xe9dbfc[_0x2bf25c('0x22aa')][_0x2bf25c('0x6c8')]){case _0x2bf25c('0xb87'):_0x1918d5=_0x420d43()(_0x1d6a66)[_0x2bf25c('0x1f27')](_0x2bf25c('0x2bb'));break;case _0x2bf25c('0x2468'):{var _0x219276=_0x51538b()[_0x2bf25c('0x1246')](_0x1d6a66,function(_0x5a39c5){var _0x2252dc=_0x2bf25c;return _0x5a39c5[_0x2252dc('0x25d6')];});_0x1918d5=_0xe9dbfc[_0x2bf25c('0x1eac')][_0x2bf25c('0x6c8')]===_0x2bf25c('0x221d')?_0x219276[_0x2bf25c('0x19c4')]('\x20or\x20'):_0x219276['join'](_0x2bf25c('0x448'));}break;case _0x2bf25c('0xbff'):_0x1918d5=_0x1d6a66[_0x2bf25c('0x25d6')];break;case _0x2bf25c('0x7e6'):_0x1918d5=_0xe9dbfc[_0x2bf25c('0x1eac')][_0x2bf25c('0x1439')]?_0x1d6a66:_0x1d6a66['displayValue'];break;default:_0x1918d5=_0x1d6a66;break;}return _0x1918d5;}function _0xe23a9e(){var _0x4c3259=_0x41015b,_0x446b45=_0xe9dbfc[_0x4c3259('0x12f4')],_0x4d4c60=_0xe9dbfc[_0x4c3259('0x1c46')],_0x551452;switch(_0xe9dbfc['selectedField']['type']){case _0x4c3259('0xb87'):{var _0x54593a=_0x420d43()(_0x446b45)['utcOffset'](0x0,!![])[_0x4c3259('0x1f27')](_0x4c3259('0x2bb'));if(_0xe9dbfc[_0x4c3259('0x1eac')][_0x4c3259('0x6c8')]===_0x4c3259('0x5be')){var _0x3e9aa7=_0x420d43()(_0x4d4c60)[_0x4c3259('0x15db')](0x0,!![])['format'](_0x4c3259('0x2bb'));_0x551452=[_0x54593a,_0x3e9aa7];}else _0x551452=_0x54593a;}break;case'number':_0x551452=_0xe9dbfc[_0x4c3259('0x1eac')]['type']===_0x4c3259('0x5be')?[_0x446b45,_0x4d4c60]:_0x446b45;break;case'multiselect':{var _0x373412=_0xe9dbfc[_0x4c3259('0x22aa')][_0x4c3259('0x1b36')][_0x4c3259('0x5f2')]||'id';_0x551452=_0x51538b()['map'](_0x446b45,_0x373412);}break;case _0x4c3259('0xbff'):_0x551452=_0x446b45['id'];break;case _0x4c3259('0x7e6'):_0x551452=_0xe9dbfc[_0x4c3259('0x1eac')]['isExtra']?_0x446b45:_0x446b45['id'];break;default:_0x551452=_0x446b45;break;}return _0x551452;}function _0x5b7e19(){var _0x5be2df=_0x41015b;_0xe9dbfc[_0x5be2df('0x12f4')]=null,_0xe9dbfc[_0x5be2df('0x1c46')]=null,_0xe9dbfc['minDateRange']=null,_0xe9dbfc[_0x5be2df('0x2506')]=null,_0xe9dbfc[_0x5be2df('0x2804')]=![];}}const _0x249951=_0x529336;function _0x6ce33(){var _0x4e09b1=_0x1a8446;return{'restrict':'E','scope':{'templatePath':_0x4e09b1('0x281d'),'card':_0x4e09b1('0xfdd'),'vm':'=viewModel'},'template':_0x4e09b1('0x1dd4'),'compile':function _0x382436(_0x15c2ec){var _0x40f662=_0x4e09b1;return _0x15c2ec[_0x40f662('0x1b97')](_0x40f662('0x2003')),function _0x235565(_0x4c8313,_0x24b3c5){var _0xd59491=_0x40f662;function _0x23183c(){var _0x8af0e6=a0_0x1149;_0x4c8313['$emit'](_0x8af0e6('0x1a74'),_0x24b3c5);}_0x4c8313[_0xd59491('0x322')]=_0x23183c;};}};}const _0x3058c4=_0x6ce33;;function _0x16108e(){return{'restrict':'A','link':function _0x59fe0d(_0x11c459,_0x6a6f26,_0x40d4ec){_0x40d4ec['$observe']('msChipColor',function(_0x138ef5){var _0x3ec9df=a0_0x1149,_0x5a9d88=_0x6a6f26[_0x3ec9df('0x20a2')]()[_0x3ec9df('0x20a2')]();!_0x5a9d88['hasClass']('md-background-bg\x20md-hue-3')&&_0x5a9d88[_0x3ec9df('0x1b97')]('md-background-bg\x20md-hue-3');if(!_0x51538b()[_0x3ec9df('0x116b')](_0x138ef5))_0x5a9d88['addClass'](_0x138ef5);else{var _0x273dcd=_0x5a9d88[0x0][_0x3ec9df('0x2056')][_0x3ec9df('0x1a39')]('\x20'),_0x2c4716=_0x273dcd[_0x3ec9df('0x1f38')]('md-hue-3');_0x273dcd[_0x3ec9df('0x2587')]=_0x2c4716+0x1,_0x5a9d88[0x0]['className']=_0x273dcd['join']('\x20');}});}};}const _0x19c358=_0x16108e,_0x558f3f=_0x4fb511['p']+_0x1a8446('0x336'),_0x1b6920=_0x4fb511['p']+_0x1a8446('0x29');;function _0x4ed74a(){var _0x372012=_0x1a8446;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':[_0x372012('0x51'),_0x372012('0x6a4'),_0x372012('0x1df3'),_0x372012('0xcb3'),_0x372012('0x39b'),_0x372012('0x2378'),_0x372012('0x1dfd'),'toasty',_0x372012('0x157'),function _0x2edcd9(_0x479ee7,_0x50ff3e,_0x232be8,_0x5a2ce9,_0x1ae731,_0x4b8753,_0x352e27,_0x31c822,_0x587b44){var _0x5699d3=_0x372012;_0x479ee7[_0x5699d3('0x7fc')]=_0x352e27[_0x5699d3('0xacc')](),_0x479ee7[_0x5699d3('0x12bb')]=function(){var _0x54ee7e=_0x5699d3;return _0x479ee7[_0x54ee7e('0xe2e')]&&_0x479ee7[_0x54ee7e('0xe2e')]['indexOf']('@')<0x0&&_0x479ee7['target']!=_0x479ee7['currentUser'][_0x54ee7e('0x1b0d')]&&_0x479ee7['target']!=_0x479ee7[_0x54ee7e('0x7fc')][_0x54ee7e('0x25d6')]&&(_0x479ee7[_0x54ee7e('0x7fc')]['showWebBar']==0x0&&_0x479ee7[_0x54ee7e('0x7fc')][_0x54ee7e('0x469')]||_0x479ee7[_0x54ee7e('0x7fc')]['showWebBar']==0x2&&_0x479ee7[_0x54ee7e('0x1202')][_0x54ee7e('0x2834')])&&!_0x479ee7[_0x54ee7e('0x2686')];};function _0x2cea0b(_0x186fe3){var _0x3b7dca=_0x5699d3;return _0x587b44[_0x3b7dca('0x272b')][_0x3b7dca('0x1b0c')]({'id':_0x479ee7[_0x3b7dca('0x7fc')]['id']})[_0x3b7dca('0x1dc2')][_0x3b7dca('0xaa5')](function(_0x21b4d0){var _0x57cc42=_0x3b7dca;if(_0x21b4d0[_0x57cc42('0xd15')])return _0x4b8753[_0x57cc42('0x1e6d')]({'controller':'PrefixDialogController','controllerAs':'vm','templateUrl':_0x1b6920,'parent':angular[_0x57cc42('0x1aa8')](_0x1ae731['body']),'clickOutsideToClose':!![],'locals':{'prefixes':_0x21b4d0,'required':_0x479ee7[_0x57cc42('0x7fc')][_0x57cc42('0x721')]}});})['then'](function(_0x5029ed){var _0x153555=_0x3b7dca;if(!_0x479ee7['currentUser'][_0x153555('0x721')]){if(_0x5029ed&&_0x5029ed!==-0x1)_0x54e763(_0x5029ed+_0x186fe3);else!_0x5029ed&&_0x54e763(_0x186fe3);}else _0x5029ed&&_0x5029ed!==-0x1&&_0x54e763(_0x5029ed+_0x186fe3);});}function _0x54e763(_0x5cbbe3){var _0x564467=_0x5699d3;switch(_0x479ee7[_0x564467('0x7fc')]['showWebBar']){case 0x0:return _0x593a78(_0x564467('0x1017')+(_0x479ee7[_0x564467('0x7fc')][_0x564467('0x1b2f')]||_0x564467('0x23d7'))+_0x564467('0x26a7')+_0x333900(_0x5cbbe3));case 0x2:return _0x50ff3e[_0x564467('0xd1')](_0x564467('0xb7f'),{'target':_0x333900(_0x5cbbe3)});default:break;}}_0x479ee7[_0x5699d3('0x1432')]=function(_0x55f97b){var _0x3f3556=_0x5699d3;return _0x479ee7[_0x3f3556('0x7fc')]['showWebBar']!==0x2?_0x2cea0b(_0x55f97b):_0x54e763(_0x55f97b);},_0x479ee7['transfer']=function(_0x58b1e0){var _0x13ed5d=_0x5699d3;switch(_0x479ee7[_0x13ed5d('0x7fc')]['showWebBar']){case 0x0:return _0x593a78(_0x13ed5d('0x1017')+(_0x479ee7[_0x13ed5d('0x7fc')][_0x13ed5d('0x1b2f')]||_0x13ed5d('0x23d7'))+'/api/transfer?number='+_0x333900(_0x58b1e0));case 0x2:_0x50ff3e['$broadcast'](_0x13ed5d('0xdde'),{'target':_0x333900(_0x58b1e0)});break;default:break;}};function _0x333900(_0x67ce07){var _0x21a822=_0x5699d3;return!_0x51538b()[_0x21a822('0x89a')](_0x67ce07)?_0x67ce07[_0x21a822('0x170d')](/[^\w.+#*-]+/g,''):'';}function _0x593a78(_0x52ef71){var _0x41c3d2=_0x5699d3;return _0x232be8[_0x41c3d2('0x2122')](_0x52ef71)[_0x41c3d2('0xe10')](function(){var _0xdc19de=_0x41c3d2;_0x31c822[_0xdc19de('0xe10')]({'title':_0xdc19de('0x1b64'),'msg':_0xdc19de('0x20fc')});})[_0x41c3d2('0x187f')](function(){var _0x4dc901=_0x41c3d2;_0x31c822['error']({'title':_0x4dc901('0x18cb'),'msg':_0x5a2ce9[_0x4dc901('0x213f')]('CONTACTMANAGER.ERRORS.PHONEBAR_API')});});}}],'templateUrl':_0x558f3f};}const _0x35a4bc=_0x4ed74a;_0x34c407[_0x1a8446('0x1e33')]=[_0x1a8446('0x52a')];function _0x4d61b8(){var _0x43b94a=_0x1a8446;_0x79f9f2['$inject']=[_0x43b94a('0x72')];var _0x3f924c=this,_0x42ed04={'formatter':function _0x4f249c(_0x4d522a){if(!_0x4d522a)return'';return _0x4d522a===''?_0x4d522a:new Date(_0x4d522a);},'parser':function _0x26ef7f(_0x5be690){var _0x467a25=_0x43b94a;if(!_0x5be690)return'';return _0x420d43()(_0x5be690)[_0x467a25('0x202c')](_0x420d43()(_0x5be690)[_0x467a25('0x15db')](),'m')[_0x467a25('0x12c0')]();}};function _0x79f9f2(_0x519fb8){_0x42ed04=angular['extend']({},_0x42ed04,_0x519fb8);}_0x3f924c[_0x43b94a('0x1b14')]=_0x79f9f2,_0x3f924c[_0x43b94a('0x149')]=function(){return _0x42ed04;};}function _0x34c407(_0x21657e){return{'require':'ngModel','priority':0x1,'link':function _0x5d1459(_0x59a8ad,_0x354c78,_0x1c76a1,_0x225f65){var _0x13262f=a0_0x1149;_0x225f65[_0x13262f('0x1491')][_0x13262f('0x1599')](_0x21657e['formatter']),_0x225f65['$parsers'][_0x13262f('0x1599')](_0x21657e['parser']);}};}_0x5eaaeb[_0x1a8446('0x1e33')]=['api'];function _0x5eaaeb(_0x84936b){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function _0x36d887(_0x4021ae,_0xbb8a4c){var _0x59d227=a0_0x1149,_0x1a1040=![],_0x7f993d={};_0x7f993d['id']=_0x4021ae['id'];!_0x51538b()[_0x59d227('0x89a')](_0x4021ae['path'])&&(_0x7f993d[_0x59d227('0x1673')]=_0x4021ae['path']);var _0x1f9c75=document[_0x59d227('0x531')](_0x4021ae[_0x59d227('0x1aa8')]);_0x1f9c75[_0x59d227('0x107b')](_0x59d227('0xed8'),_0x59d227('0x117')),_0x1f9c75['setAttribute']('controls',_0x59d227('0x1c5c')),_0x4021ae[_0x59d227('0x1aa8')]==='audio'&&_0x1f9c75[_0x59d227('0x107b')](_0x59d227('0x1535'),_0x59d227('0x306')),_0x4021ae['element']===_0x59d227('0x289')&&_0x1f9c75[_0x59d227('0x107b')](_0x59d227('0x1535'),_0x59d227('0x88')),_0x1f9c75[_0x59d227('0x107b')](_0x59d227('0x110a'),_0x4021ae[_0x59d227('0x110a')]),_0x1f9c75[_0x59d227('0x107b')](_0x59d227('0x1d7a'),'\x20'),_0x1f9c75['onplay']=function(_0x4e3e99){var _0x294747=_0x59d227;!_0x1a1040&&(_0x1a1040=!![],_0x4e3e99['preventDefault'](),_0x84936b[_0x4021ae[_0x294747('0x1fa6')]][_0x294747('0x1cf9')](_0x7f993d)['$promise'][_0x294747('0xaa5')](function(_0x5865e9){var _0x5189a9=_0x294747,_0x3582d8=[_0x5865e9[_0x5189a9('0x1bf1')]],_0x580112=new Blob(_0x3582d8,{'type':_0x5865e9['type']});_0x1f9c75['setAttribute'](_0x5189a9('0x6c8'),_0x5865e9[_0x5189a9('0x6c8')]),_0x1f9c75[_0x5189a9('0x107b')](_0x5189a9('0x1d7a'),URL['createObjectURL'](_0x580112)),_0x1f9c75[_0x5189a9('0x1597')]();})[_0x294747('0x253d')](function(_0x5c2d4e){var _0x4ea28f=_0x294747;console[_0x4ea28f('0x187f')](_0x5c2d4e);}));},_0xbb8a4c[_0x59d227('0x1923')](_0x1f9c75);}};}const _0x36c43e=_0x5eaaeb,_0x13708c=_0x4fb511['p']+'src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.html/ms-dual-multiselect-[chunkhash].html';;function _0x5f34c7(){var _0x398626=_0x1a8446;return{'restrict':'E','scope':{'options':'='},'controller':[_0x398626('0x51'),function _0x5e6a96(_0x1ea088){var _0x2ed669=_0x398626;_0x1ea088[_0x2ed669('0x244b')]=function(_0x2e2caa,_0x34c6b9,_0x5c263e){var _0x5df435=_0x2ed669;if(_0x34c6b9[_0x5df435('0x1e5e')])return;else{if(typeof _0x2e2caa[_0x5df435('0x145d')]!==_0x5df435('0x1574')&&_0x2e2caa[_0x5df435('0x145d')])return _0x5c263e?_0x1ea088[_0x5df435('0x1368')](_0x34c6b9[_0x5df435('0xbf7')],_0x34c6b9[_0x5df435('0x1a30')],_0x34c6b9[_0x5df435('0xbf7')][_0x5df435('0x1f38')](_0x2e2caa),_0x5c263e):_0x1ea088[_0x5df435('0x1368')](_0x34c6b9[_0x5df435('0x1a30')],_0x34c6b9[_0x5df435('0xbf7')],_0x34c6b9[_0x5df435('0x1a30')][_0x5df435('0x1f38')](_0x2e2caa),_0x5c263e);}},_0x1ea088[_0x2ed669('0x1368')]=function(_0x1d4d3d,_0x5f1d59,_0x1bdcec,_0x22e706){var _0x528e42=_0x2ed669,_0x4d0676=[];if(_0x1bdcec>=0x0)_0x4d0676[_0x528e42('0x1599')](_0x1d4d3d[_0x1bdcec]),_0x5f1d59[_0x528e42('0x1599')](_0x1d4d3d[_0x1bdcec]),_0x1d4d3d[_0x528e42('0x1280')](_0x1bdcec,0x1);else{for(var _0x88d3ed=0x0;_0x88d3ed<_0x1d4d3d[_0x528e42('0x2587')];_0x88d3ed++){typeof _0x1d4d3d[_0x88d3ed]['isValid']!=='undefined'&&_0x1d4d3d[_0x88d3ed][_0x528e42('0x145d')]&&_0x5f1d59['push'](_0x1d4d3d[_0x88d3ed]);}for(var _0x5dd0b2=_0x1d4d3d[_0x528e42('0x2587')]-0x1;_0x5dd0b2>=0x0;_0x5dd0b2--){_0x1d4d3d[_0x5dd0b2][_0x528e42('0x145d')]&&_0x1d4d3d[_0x528e42('0x1280')](_0x5dd0b2,0x1);}_0x4d0676=_0x5f1d59;}_0x1ea088[_0x528e42('0x1b36')]['transferCallback']&&_0x1ea088[_0x528e42('0x1b36')]['transferCallback'](_0x4d0676,_0x22e706);},_0x1ea088['getLine']=function(_0x438c3f,_0x3f00e9){var _0x2c6c01=_0x2ed669,_0x1d0e19='';if(_0x51538b()['isNil'](_0x3f00e9))return _0x1d0e19;if(_0x51538b()[_0x2c6c01('0x4f')](_0x3f00e9)){for(var _0x328532=0x0;_0x328532<_0x3f00e9['length'];_0x328532++){_0x1d0e19+='\x20'+(_0x438c3f[_0x3f00e9[_0x328532]]?_0x438c3f[_0x3f00e9[_0x328532]]:'');}return _0x1d0e19;}else return _0x438c3f[_0x3f00e9]?_0x438c3f[_0x3f00e9]:'';};}],'templateUrl':_0x13708c};}const _0x47efbf=_0x5f34c7;_0x5b53ad[_0x1a8446('0x1e33')]=['$translate'];function _0x5b53ad(_0x428c3c){var _0xd99101=_0x1a8446;return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':_0xd99101('0x259b'),'link':function _0x401189(_0x100596,_0x5cff8d){var _0x3bb785=_0xd99101,_0x54ff7c=_0x5cff8d[_0x3bb785('0xe8')]({'pickerPosition':_0x100596['pickerPosition'],'search':_0x100596['search'],'recentEmojis':_0x100596['recentEmojis'],'placeholder':_0x428c3c['instant'](_0x100596[_0x3bb785('0x674')]||_0x3bb785('0x26a4')),'attributes':{'spellcheck':!![]},'events':{'keypress':function _0x10196b(_0x6c157a,_0x2b8fba){var _0x307553=_0x3bb785;_0x100596['ngModel']=this[_0x307553('0x1557')](),_0x100596[_0x307553('0x43b')]({'event':_0x2b8fba,'body':this[_0x307553('0x1557')]()});},'emojibtn_click':function _0xbaa75e(){var _0x4b972e=_0x3bb785;_0x100596[_0x4b972e('0x26c3')]=this[_0x4b972e('0x1557')]();}}});_0x100596['ngModel']&&_0x54ff7c[0x0][_0x3bb785('0xe8')][_0x3bb785('0x1a78')](_0x100596['ngModel']),_0x100596['internalControl']=_0x100596['ctrlMethods']||{},_0x100596[_0x3bb785('0xf1b')]['setText']=function(_0x38ab71){var _0x59b439=_0x3bb785;_0x54ff7c[0x0][_0x59b439('0xe8')][_0x59b439('0x1a78')](_0x38ab71);},_0x100596[_0x3bb785('0xf1b')][_0x3bb785('0x1557')]=function(){var _0x37b6db=_0x3bb785;return _0x54ff7c[0x0][_0x37b6db('0xe8')][_0x37b6db('0x1557')]();},_0x100596[_0x3bb785('0x1ccf')](_0x3bb785('0x26c3'),function(_0x19d06d){var _0x5d2663=_0x3bb785;!_0x19d06d&&_0x54ff7c[0x0][_0x5d2663('0xe8')]['setText']('');});}};}const _0xfe3865=_0x5b53ad,_0x260848=_0x4fb511['p']+'src/js/modules/core/directives/ms-font-family/ms-font-family.html/ms-font-family-[chunkhash].html';;function _0x2df126(){return{'restrict':'E','scope':{'ngModel':'='},'controller':['$scope',function _0x275df2(_0x10cfe0){var _0x11c365=a0_0x1149;_0x10cfe0[_0x11c365('0x5ff')]=[{'option':_0x11c365('0x24f2'),'value':_0x11c365('0x181d')},{'option':'Century\x20Gothic','value':_0x11c365('0xea5')},{'option':_0x11c365('0x2550'),'value':_0x11c365('0x665')},{'option':_0x11c365('0x2751'),'value':_0x11c365('0x9d4')},{'option':'Courier\x20New','value':_0x11c365('0xa4e')},{'option':_0x11c365('0xd3f'),'value':_0x11c365('0x1583')},{'option':_0x11c365('0xe38'),'value':_0x11c365('0x956')},{'option':_0x11c365('0x225c'),'value':_0x11c365('0x1843')},{'option':'Times\x20New\x20Roman','value':'Times\x20New\x20Roman,Times,serif'},{'option':_0x11c365('0xc42'),'value':'Trebuchet\x20MS,Helvetica,sans-serif'},{'option':'Verdana','value':_0x11c365('0xc18')}];}],'templateUrl':_0x260848};}const _0x24da20=_0x2df126;function _0x26d9f5(){var _0x1a1fa0=_0x1a8446,_0xe3b0e1=this;_0xe3b0e1[_0x1a1fa0('0xd07')]=[],_0xe3b0e1[_0x1a1fa0('0x171b')]=0x0,_0xe3b0e1[_0x1a1fa0('0x12a6')]=_0x1c585c,_0xe3b0e1[_0x1a1fa0('0x24c')]=_0x55b053,_0xe3b0e1['nextStep']=_0x9b87b4,_0xe3b0e1[_0x1a1fa0('0x16ef')]=_0x384165,_0xe3b0e1['lastStep']=_0x42ab44,_0xe3b0e1[_0x1a1fa0('0x10f4')]=_0x36b424,_0xe3b0e1['isFirstStep']=_0x7d694f,_0xe3b0e1[_0x1a1fa0('0x1372')]=_0x58495b,_0xe3b0e1[_0x1a1fa0('0x1708')]=_0x4f907e,_0xe3b0e1['previousStepInvalid']=_0xcef656,_0xe3b0e1['formsIncomplete']=_0x421441,_0xe3b0e1[_0x1a1fa0('0x106f')]=_0x5ce08c;function _0x1c585c(_0x1078f0){var _0x47e2c0=_0x1a1fa0;_0xe3b0e1[_0x47e2c0('0xd07')]['push'](_0x1078f0);}function _0x55b053(){var _0x318452=_0x1a1fa0;if(_0x7d694f())return;_0xe3b0e1[_0x318452('0x171b')]--;}function _0x9b87b4(){var _0x4540ea=_0x1a1fa0;if(_0x58495b())return;_0xe3b0e1[_0x4540ea('0x171b')]++;}function _0x384165(){var _0x571bdf=_0x1a1fa0;_0xe3b0e1[_0x571bdf('0x171b')]=0x0;}function _0x42ab44(){var _0x14d0ba=_0x1a1fa0;_0xe3b0e1[_0x14d0ba('0x171b')]=_0x36b424()-0x1;}function _0x36b424(){var _0x5d4f2b=_0x1a1fa0;return _0xe3b0e1[_0x5d4f2b('0xd07')][_0x5d4f2b('0x2587')];}function _0x7d694f(){var _0x17006a=_0x1a1fa0;return _0xe3b0e1[_0x17006a('0x171b')]===0x0;}function _0x58495b(){var _0x3aaa20=_0x1a1fa0;return _0xe3b0e1[_0x3aaa20('0x171b')]===_0x36b424()-0x1;}function _0x4f907e(){var _0x1b55c7=_0x1a1fa0;return angular[_0x1b55c7('0x21dc')](_0xe3b0e1[_0x1b55c7('0xd07')][_0xe3b0e1[_0x1b55c7('0x171b')]])&&_0xe3b0e1[_0x1b55c7('0xd07')][_0xe3b0e1[_0x1b55c7('0x171b')]][_0x1b55c7('0x204a')];}function _0xcef656(){var _0x3d87d5=_0x1a1fa0;return _0xe3b0e1[_0x3d87d5('0x171b')]>0x0&&angular[_0x3d87d5('0x21dc')](_0xe3b0e1[_0x3d87d5('0xd07')][_0xe3b0e1[_0x3d87d5('0x171b')]-0x1])&&_0xe3b0e1[_0x3d87d5('0xd07')][_0xe3b0e1[_0x3d87d5('0x171b')]-0x1][_0x3d87d5('0x204a')];}function _0x421441(){var _0x3af9e=_0x1a1fa0;for(var _0x527b9c=0x0;_0x527b9c<_0xe3b0e1[_0x3af9e('0xd07')]['length'];_0x527b9c++){if(_0xe3b0e1[_0x3af9e('0xd07')][_0x527b9c][_0x3af9e('0x204a')])return!![];}return![];}function _0x5ce08c(){var _0x23caea=_0x1a1fa0;_0xe3b0e1[_0x23caea('0x171b')]=0x0;for(var _0x2fa728=0x0;_0x2fa728<_0xe3b0e1['forms'][_0x23caea('0x2587')];_0x2fa728++){_0xe3b0e1[_0x23caea('0xd07')][_0x2fa728]['$setPristine'](),_0xe3b0e1[_0x23caea('0xd07')][_0x2fa728][_0x23caea('0x27a7')]();}}}function _0xfbe6ce(){return{'restrict':'E','scope':!![],'controller':'MsFormWizardController\x20as\x20msWizard','compile':function _0x3b89bf(_0x9f5488){var _0x33e2a1=a0_0x1149;return _0x9f5488['addClass'](_0x33e2a1('0x217e')),function _0x382a0c(){};}};}function _0x2a1d69(){var _0x5b6ea1=_0x1a8446;return{'restrict':'A','require':[_0x5b6ea1('0xe1b'),_0x5b6ea1('0x183c')],'compile':function _0x5d1496(_0x56515b){var _0x5e606b=_0x5b6ea1;return _0x56515b[_0x5e606b('0x1b97')](_0x5e606b('0x8af')),function _0x545b28(_0x2156a5,_0x7dcaf7,_0x47b99d,_0x206704){var _0x43abee=_0x5e606b,_0x1a13c1=_0x206704[0x0],_0x46d9e3=_0x206704[0x1];_0x46d9e3[_0x43abee('0x12a6')](_0x1a13c1);};}};}const _0x573fb1=_0x4fb511['p']+_0x1a8446('0x2291');_0x55162d[_0x1a8446('0x1e33')]=['$document'];function _0x55162d(_0x3635e3){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x573fb1,'link':function _0x58cb29(_0x4d38ca,_0x2acf22){var _0x368fae=a0_0x1149,_0x486a22=_0x3635e3[_0x368fae('0xe9e')](_0x368fae('0x1770')),_0x424c23=_0x368fae('0x1770');_0x486a22[_0x368fae('0x1b97')](_0x424c23);function _0x58b005(){var _0x28bde1=_0x368fae;_0x486a22['removeClass'](_0x424c23),_0x2acf22[_0x28bde1('0xf6d')](),_0x4d38ca[_0x28bde1('0xd6b')]&&_0x4d38ca[_0x28bde1('0xd6b')](),_0x4d38ca[_0x28bde1('0x12d0')]();}_0x4d38ca[_0x368fae('0x21b4')]=_0x58b005;}};}const _0x24ec19=_0x55162d;_0x2bedd9[_0x1a8446('0x1e33')]=[_0x1a8446('0x186b')],_0x559b52['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x17cd'),_0x1a8446('0x186b')];function _0x559b52(_0x1df8de,_0x316401,_0x9ff0af,_0x298072){var _0x2b6cda=_0x1a8446,_0x4e2f90=this,_0x32e083={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}},_0x2ea80b=!![];_0x4e2f90['options']=null,_0x4e2f90[_0x2b6cda('0x11f5')]=[],_0x4e2f90[_0x2b6cda('0x1a61')]='',_0x4e2f90[_0x2b6cda('0x1749')]='',_0x4e2f90['items']=[],_0x4e2f90['reLayout']=_0x2b0874,_0x4e2f90[_0x2b6cda('0x99b')]=_0x32e185,_0x4e2f90['waitImagesLoaded']=_0x363539;function _0x32e185(){var _0x1ce4e0=_0x2b6cda;_0x4e2f90[_0x1ce4e0('0x1b36')]=!_0x4e2f90[_0x1ce4e0('0x1b36')]?_0x32e083:angular[_0x1ce4e0('0x5c5')](_0x32e083,_0x4e2f90[_0x1ce4e0('0x1b36')]),_0x4aaf54();}_0x1df8de[_0x2b6cda('0xc75')](_0x2b6cda('0x127f'),function(){_0x2b0874();});function _0x363539(_0x4c1812,_0x5a5b01){var _0x525792=_0x2b6cda;if(typeof imagesLoaded!==_0x525792('0x1574')){var _0x5ec38d=_0x316401[_0x525792('0x1f43')](_0x4c1812);_0x5ec38d['on']('done',function(){_0x5a5b01();});}else _0x5a5b01();}function _0x4aaf54(){_0x1df8de['$watch'](function(){var _0x3d72b9=a0_0x1149;return _0x4e2f90[_0x3d72b9('0x11f5')]['width']();},function(_0x5dd505,_0x254ef4){_0x5dd505!==_0x254ef4&&_0x2b0874();});}function _0x2b0874(){var _0xaf813=_0x2b6cda;_0x2ea80b&&_0x298072[_0xaf813('0x2030')](_0x2ea80b);_0x2ea80b=_0x298072(function(){var _0x2f36d4=_0xaf813;_0x553399(),_0x1df8de[_0x2f36d4('0xd1')](_0x2f36d4('0x8aa'));},_0x4e2f90[_0xaf813('0x1b36')]['reLayoutDebounce']);function _0x553399(){var _0x2eb406=_0xaf813;_0x4e2f90[_0x2eb406('0x1a61')]=_0x4e2f90[_0x2eb406('0x11f5')][0x0][_0x2eb406('0x25c1')](),_0x52a921(),_0x1df8de[_0x2eb406('0xd1')](_0x2eb406('0x1811')),_0x4e2f90[_0x2eb406('0x1a30')]=_0x4e2f90['container'][_0x2eb406('0xe9e')]('ms-masonry-item');var _0x4d094a=Array['apply'](null,new Array(_0x4e2f90['columnCount']))[_0x2eb406('0x1246')](function(){return 0x0;});for(var _0x308a58=0x0;_0x308a58<_0x4e2f90['items']['length'];_0x308a58++){var _0x8b76a5=_0x4e2f90[_0x2eb406('0x1a30')][_0x308a58],_0x324aa7=void 0x0,_0x4bf6ad=void 0x0;_0x8b76a5=angular[_0x2eb406('0x1aa8')](_0x8b76a5);_0x8b76a5[_0x2eb406('0x165')]()&&_0x8b76a5[_0x2eb406('0x165')]()[_0x2eb406('0xd1')]('msMasonryItem:startReLayout');_0x8b76a5[_0x2eb406('0x233f')]({'width':_0x4e2f90['columnWidth']});_0x4e2f90['options'][_0x2eb406('0x107c')]?(_0x324aa7=_0x308a58%_0x4e2f90[_0x2eb406('0x151a')],_0x4bf6ad=_0x4d094a[_0x324aa7]):(_0x4bf6ad=Math[_0x2eb406('0x81e')][_0x2eb406('0x2609')](Math,_0x4d094a),_0x324aa7=_0x4d094a[_0x2eb406('0x1f38')](_0x4bf6ad));_0x4d094a[_0x324aa7]=_0x4bf6ad+_0x8b76a5[0x0][_0x2eb406('0x25c1')]()['height'];var _0x40698c=Math['round'](_0x324aa7*_0x4e2f90[_0x2eb406('0x1749')]),_0x328256=_0x4bf6ad;_0x8b76a5[_0x2eb406('0x233f')]({'transform':_0x2eb406('0x925')+_0x40698c+_0x2eb406('0x1f15')+_0x328256+_0x2eb406('0x22e9')}),_0x8b76a5[_0x2eb406('0x1b97')](_0x2eb406('0x1b18')),_0x8b76a5[_0x2eb406('0x165')]()&&_0x8b76a5[_0x2eb406('0x165')]()['$broadcast'](_0x2eb406('0x1e04'));}}}function _0x52a921(){var _0x3c734d=_0x2b6cda;_0x4e2f90[_0x3c734d('0x151a')]=_0x4e2f90[_0x3c734d('0x1b36')][_0x3c734d('0x151a')];if(_0x9ff0af(_0x3c734d('0xb48')))_0x4e2f90[_0x3c734d('0x151a')]=_0x4e2f90[_0x3c734d('0x1b36')]['columnCount'];else{if(_0x9ff0af('md'))_0x4e2f90['columnCount']=_0x4e2f90[_0x3c734d('0x151a')]>_0x4e2f90['options'][_0x3c734d('0x21f9')]['md']?_0x4e2f90['options']['responsive']['md']:_0x4e2f90[_0x3c734d('0x151a')];else _0x9ff0af('sm')?_0x4e2f90[_0x3c734d('0x151a')]=_0x4e2f90[_0x3c734d('0x151a')]>_0x4e2f90[_0x3c734d('0x1b36')]['responsive']['sm']?_0x4e2f90[_0x3c734d('0x1b36')][_0x3c734d('0x21f9')]['sm']:_0x4e2f90[_0x3c734d('0x151a')]:_0x4e2f90[_0x3c734d('0x151a')]=_0x4e2f90['options']['responsive']['xs'];}_0x4e2f90[_0x3c734d('0x1749')]=_0x4e2f90[_0x3c734d('0x1a61')][_0x3c734d('0x1533')]/_0x4e2f90[_0x3c734d('0x151a')];}}function _0x2bedd9(_0x1bfbad){var _0x1f74a3=_0x1a8446;return{'restrict':_0x1f74a3('0x1283'),'controller':_0x1f74a3('0xde9'),'compile':_0x4b3afa};function _0x4b3afa(_0x12dea0,_0x17ca3a){return{'pre':function _0x6cb6b8(_0x3d525a,_0x53b651,_0x4d9d73,_0x7f85b){var _0x336ba3=a0_0x1149;_0x7f85b[_0x336ba3('0x1b36')]=angular[_0x336ba3('0x19c8')](_0x17ca3a[_0x336ba3('0x1b36')]||'{}'),_0x7f85b[_0x336ba3('0x11f5')]=_0x12dea0;},'post':function _0x3eede6(_0xe89af8,_0x2e4ca0,_0x4e49ce,_0x4f7ca1){_0x1bfbad(function(){_0x4f7ca1['initialize']();});}};}}function _0x17fe0d(){var _0x1c8997=_0x1a8446;return{'restrict':_0x1c8997('0x1283'),'require':'^msMasonry','priority':0x1,'link':_0x2852d2};function _0x2852d2(_0x1a4385,_0x5cbe61,_0x310ab9,_0x5465bb){var _0x25dc71=_0x1c8997;_0x5465bb['waitImagesLoaded'](_0x5cbe61,function(){var _0x189aaf=a0_0x1149;_0x5465bb[_0x189aaf('0x1915')]();}),_0x1a4385[_0x25dc71('0xc75')](_0x25dc71('0x1e04'),function(){var _0x2f973b=_0x25dc71;_0x1a4385[_0x2f973b('0x1ccf')](function(){var _0x4a34c6=_0x2f973b;return _0x5cbe61[_0x4a34c6('0x1de7')]();},function(_0x5e0913,_0x27dd81){var _0x2f076d=_0x2f973b;_0x5e0913!==_0x27dd81&&_0x5465bb[_0x2f076d('0x1915')]();});}),_0x5cbe61['on'](_0x25dc71('0x12d0'),function(){var _0x4d6415=_0x25dc71;_0x5465bb[_0x4d6415('0x1915')]();});}}const _0x7400ed=_0x4fb511['p']+_0x1a8446('0xf45');_0x4ea6e7['$inject']=['$scope',_0x1a8446('0x6de'),'$mdMenu',_0x1a8446('0x218c')];function _0x4ea6e7(_0x4cd62f,_0x4f4383,_0x54c723,_0x2fd9d4){var _0xf97e0c=_0x1a8446,_0x12a4f6=this;_0x12a4f6[_0xf97e0c('0x13d8')]=_0x4f4383,_0x12a4f6[_0xf97e0c('0x1757')]=![],_0x12a4f6['selectedHues']=![],_0x4cd62f[_0xf97e0c('0x2267')]={},_0x12a4f6[_0xf97e0c('0x101a')]=_0x578aa7,_0x12a4f6[_0xf97e0c('0x17c')]=_0x24ff1d,_0x12a4f6[_0xf97e0c('0x1e0e')]=_0x193968,_0x4cd62f[_0xf97e0c('0x1ccf')]('ngModel',_0x527749);function _0x578aa7(_0x44e989,_0x133a6d){var _0x1cb837=_0xf97e0c;_0x12a4f6['selectedPalette']=_0x44e989,_0x12a4f6[_0x1cb837('0x17f')]=_0x133a6d;}function _0x24ff1d(_0x1404d1,_0x351a22){var _0x2a1de7=_0xf97e0c;_0x1e2127(_0x1404d1,_0x351a22),_0x180ef9(),_0x54c723[_0x2a1de7('0x1120')]();}function _0x193968(){var _0x52c1fa=_0xf97e0c;_0x12a4f6[_0x52c1fa('0xe7f')]={'palette':'','hue':'','class':''},_0x578aa7(![],![]),_0x180ef9();}function _0x527749(){var _0x3ba66f=_0xf97e0c;if(!_0x12a4f6[_0x3ba66f('0x1ed5')][_0x3ba66f('0x23a')]||_0x12a4f6[_0x3ba66f('0x1ed5')][_0x3ba66f('0x23a')]===''){_0x193968();return;}var _0x23acab,_0x46fa94;if(_0x12a4f6[_0x3ba66f('0x22de')]===_0x3ba66f('0x369')){var _0x5a2ecc=_0x12a4f6[_0x3ba66f('0x1ed5')]['$viewValue']['split']('-');_0x5a2ecc['length']>=0x5?(_0x23acab=_0x5a2ecc[0x1]+'-'+_0x5a2ecc[0x2],_0x46fa94=_0x5a2ecc[0x3]):(_0x23acab=_0x5a2ecc[0x1],_0x46fa94=_0x5a2ecc[0x2]);}else _0x12a4f6['msModelType']===_0x3ba66f('0x2233')&&(_0x23acab=_0x12a4f6[_0x3ba66f('0x1ed5')]['$viewValue']['palette'],_0x46fa94=_0x12a4f6[_0x3ba66f('0x1ed5')][_0x3ba66f('0x23a')]['hue']||0x1f4);_0x1e2127(_0x23acab,_0x46fa94);}function _0x1e2127(_0x325ec2,_0x180f44){var _0x38ebba=_0xf97e0c;_0x12a4f6[_0x38ebba('0xe7f')]={'palette':_0x325ec2,'hue':_0x180f44,'class':'md-'+_0x325ec2+'-'+_0x180f44+_0x38ebba('0x1c22'),'bgColorValue':_0x2fd9d4['rgba'](_0x12a4f6[_0x38ebba('0x13d8')][_0x325ec2][_0x180f44][_0x38ebba('0x12f4')]),'fgColorValue':_0x2fd9d4[_0x38ebba('0x26e0')](_0x12a4f6['palettes'][_0x325ec2][_0x180f44][_0x38ebba('0x262f')])},_0x12a4f6[_0x38ebba('0x22de')]===_0x38ebba('0x2233')&&!angular[_0x38ebba('0x22be')](_0x12a4f6[_0x38ebba('0xe7f')],_0x12a4f6[_0x38ebba('0x1ed5')][_0x38ebba('0x23a')])&&_0x180ef9(),_0x578aa7(_0x325ec2,_0x12a4f6[_0x38ebba('0x13d8')][_0x325ec2]),_0x4cd62f[_0x38ebba('0x2267')]=_0x12a4f6[_0x38ebba('0xe7f')];}function _0x180ef9(){var _0x357f98=_0xf97e0c;if(_0x12a4f6[_0x357f98('0x22de')]==='class')_0x12a4f6[_0x357f98('0x1ed5')][_0x357f98('0x1723')](_0x12a4f6[_0x357f98('0xe7f')][_0x357f98('0x369')]);else _0x12a4f6[_0x357f98('0x22de')]===_0x357f98('0x2233')&&_0x12a4f6[_0x357f98('0x1ed5')]['$setViewValue'](_0x12a4f6[_0x357f98('0xe7f')]);}}function _0x5b4816(){var _0x2cc3db=_0x1a8446;return{'require':[_0x2cc3db('0x33b'),'ngModel'],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x2cc3db('0x11c4'),'transclude':!![],'templateUrl':_0x7400ed,'link':function _0x484ef4(_0x21fdf7,_0x252871,_0x4fbad4,_0x24657e,_0x73416a){var _0x2327a1=_0x2cc3db,_0x2a0ad8=_0x24657e[0x0];_0x2a0ad8[_0x2327a1('0x1ed5')]=_0x24657e[0x1],_0x2a0ad8['msModelType']=_0x21fdf7[_0x2327a1('0x22de')]||_0x2327a1('0x369'),_0x73416a(_0x21fdf7,function(_0x2a62f7){var _0x5c50e2=_0x2327a1;_0x2a62f7=_0x2a62f7[_0x5c50e2('0xdb7')](function(_0x35e8e6,_0x1a40a5){var _0x961096=_0x5c50e2;return _0x1a40a5[_0x961096('0x173d')]===0x1?!![]:![];}),_0x2a62f7[_0x5c50e2('0x2587')]&&_0x252871['find']('ms-color-picker-button')[_0x5c50e2('0xe0a')](_0x2a62f7);});}};}_0x35473b[_0x1a8446('0x1e33')]=['$rootScope','$q',_0x1a8446('0xd9d'),'$state'],_0x2eea89[_0x1a8446('0x1e33')]=[_0x1a8446('0x6a4'),_0x1a8446('0xb4c'),_0x1a8446('0xd2e')],_0x3b528e[_0x1a8446('0x1e33')]=[_0x1a8446('0x39b'),_0x1a8446('0x6a4'),'msNavFoldService'];function _0x2fa1af(){var _0x364be2={},_0x324065={'setFoldable':_0x4f3601,'isNavFoldedOpen':_0x4d2a1f,'toggleFold':_0x260b82,'openFolded':_0x5a3dce,'closeFolded':_0x5f4295};return _0x324065;function _0x4f3601(_0x3d448b,_0x3d9275){_0x364be2={'scope':_0x3d448b,'element':_0x3d9275};}function _0x4d2a1f(){var _0x584ca9=a0_0x1149;return _0x364be2[_0x584ca9('0x165')][_0x584ca9('0x120e')]();}function _0x260b82(){var _0x4eeb6b=a0_0x1149;_0x364be2[_0x4eeb6b('0x165')]['toggleFold']();}function _0x5a3dce(){var _0x5c75d8=a0_0x1149;_0x364be2[_0x5c75d8('0x165')][_0x5c75d8('0x209e')]();}function _0x5f4295(){var _0x2f142b=a0_0x1149;_0x364be2['scope'][_0x2f142b('0x1e73')]();}}function _0x3b528e(_0x40a0cd,_0x1a5278,_0x32ccba){return{'restrict':'A','link':function _0x154b9e(_0x5e864f,_0x266f18,_0x5d016d){var _0x3571ca=a0_0x1149,_0x49799d=_0x5d016d[_0x3571ca('0x2352')]===_0x3571ca('0x1c5c'),_0x38821d=![],_0x606de4=angular[_0x3571ca('0x1aa8')](_0x40a0cd[0x0]['body']),_0x2b7673=angular[_0x3571ca('0x1aa8')](_0x3571ca('0x746')),_0x492696=angular['element'](_0x3571ca('0x25dd')),_0x5b93b3=_0x266f18['parent']();_0x32ccba[_0x3571ca('0x1d72')](_0x5e864f,_0x266f18,_0x49799d);_0x49799d?_0x106195():_0x3ff420();function _0x3f6666(){return _0x38821d;}function _0x335874(){_0x49799d=!_0x49799d,_0x49799d?_0x106195():_0x3ff420();}function _0x106195(){var _0x55b4d6=_0x3571ca;_0x606de4[_0x55b4d6('0x1b97')](_0x55b4d6('0x1776')),_0x1a5278['$broadcast'](_0x55b4d6('0x584')),_0x266f18[_0x55b4d6('0x1f44')](0x0),_0x5b93b3[_0x55b4d6('0x1923')](_0x2b7673),_0x2b7673['on']('mouseenter\x20touchstart',function(_0x5ed34b){_0x54ebf6(_0x5ed34b),_0x38821d=!![];});}function _0x54ebf6(_0x2939bd){var _0x5da421=_0x3571ca;angular['isDefined'](_0x2939bd)&&_0x2939bd[_0x5da421('0x2185')](),_0x606de4['addClass'](_0x5da421('0xb')),_0x1a5278['$broadcast'](_0x5da421('0x1005')),_0x5b93b3[_0x5da421('0xe9e')](_0x2b7673)[_0x5da421('0xf6d')](),_0x5b93b3[_0x5da421('0x20a2')]()[_0x5da421('0x1923')](_0x492696),_0x492696['on']('mouseenter\x20touchstart',function(_0x1f3b5d){_0x12bfad(_0x1f3b5d),_0x38821d=![];});}function _0x12bfad(_0x3a3304){var _0x551477=_0x3571ca;angular[_0x551477('0x21dc')](_0x3a3304)&&_0x3a3304[_0x551477('0x2185')](),_0x1a5278[_0x551477('0xd1')](_0x551477('0x584')),_0x266f18[_0x551477('0x1f44')](0x0),_0x606de4[_0x551477('0x10a7')](_0x551477('0xb')),_0x5b93b3[_0x551477('0x20a2')]()[_0x551477('0xe9e')](_0x492696)[_0x551477('0xf6d')](),_0x5b93b3[_0x551477('0x1923')](_0x2b7673),_0x2b7673['on'](_0x551477('0x158a'),function(_0x580a73){_0x54ebf6(_0x580a73),_0x38821d=!![];});}function _0x3ff420(){var _0x31544b=_0x3571ca;_0x606de4[_0x31544b('0x10a7')](_0x31544b('0x1a7e')),_0x1a5278[_0x31544b('0xd1')]('msNav::expandMatchingToggles'),_0x266f18[_0x31544b('0x14')](_0x31544b('0x16b0'));}_0x5e864f[_0x3571ca('0x2808')]=_0x335874,_0x5e864f[_0x3571ca('0x209e')]=_0x54ebf6,_0x5e864f[_0x3571ca('0x1e73')]=_0x12bfad,_0x5e864f['isNavFoldedOpen']=_0x3f6666,_0x5e864f[_0x3571ca('0xc75')]('$destroy',function(){var _0x54f7b3=_0x3571ca;_0x2b7673[_0x54f7b3('0x14')](_0x54f7b3('0x158a')),_0x492696['off'](_0x54f7b3('0x158a')),_0x266f18['off']('mouseenter\x20mouseleave');});}};}function _0x478538(){var _0x438a02=_0x1a8446,_0x2919aa=this,_0x2ef7d1=![],_0x3dd439=[],_0x489386=[];_0x2919aa[_0x438a02('0x1cc6')]=_0x3461a8,_0x2919aa[_0x438a02('0x10e5')]=_0x4059ce,_0x2919aa[_0x438a02('0x2510')]=_0x2fc96a,_0x2919aa[_0x438a02('0xad8')]=_0x39f16d,_0x2919aa[_0x438a02('0xc19')]=_0xd84672,_0x2919aa[_0x438a02('0x1510')]=_0x16ff0f,_0x2919aa['clearLockedItems']=_0x3b7c38;function _0x3461a8(){return _0x2ef7d1;}function _0x2fc96a(){_0x2ef7d1=!![];}function _0x4059ce(){_0x2ef7d1=![];}function _0x39f16d(_0x362684,_0xd0c41b){var _0x5635a2=_0x438a02;_0x3dd439[_0x5635a2('0x1599')]({'element':_0x362684,'scope':_0xd0c41b});}function _0xd84672(){return _0x489386;}function _0x16ff0f(_0x5863b7,_0x19feaf){var _0x380a3e=_0x438a02;_0x489386[_0x380a3e('0x1599')]({'element':_0x5863b7,'scope':_0x19feaf});}function _0x3b7c38(){_0x489386=[];}}function _0x2eea89(_0x1eac20,_0x4bada0,_0x32f52d){return{'restrict':'E','scope':{},'controller':'MsNavController','compile':function _0x4f157f(_0x72076c){var _0x273f07=a0_0x1149;return _0x72076c[_0x273f07('0x1b97')]('ms-nav'),function _0x3ca023(_0x13e112){var _0x17732f=_0x273f07;_0x1eac20[_0x17732f('0xd1')](_0x17732f('0x1005'));var _0x2cf465=_0x1eac20['$on'](_0x17732f('0x2829'),function(){var _0x3cd436=_0x17732f;_0x1eac20[_0x3cd436('0xd1')](_0x3cd436('0x1005')),_0x4bada0['when'](_0x3cd436('0x146a'))[_0x3cd436('0xaa5')](function(_0x39a754){var _0x4ebe3b=_0x3cd436;_0x39a754[_0x4ebe3b('0x21d0')](),_0x32f52d[_0x4ebe3b('0x120e')]()&&_0x32f52d[_0x4ebe3b('0x1e73')]();});});_0x13e112[_0x17732f('0xc75')]('$destroy',function(){_0x2cf465();});};}};}function _0x58be80(){return{'restrict':'A','compile':function _0x502732(_0x357156){return _0x357156['addClass']('ms-nav-title'),function _0x4f449f(){};}};}function _0x32a293(){return{'restrict':'AE','compile':function _0x2931b4(_0x3866af){var _0x3237de=a0_0x1149;return _0x3866af[_0x3237de('0x1b97')]('ms-nav-button'),function _0x30b184(){};}};}function _0x35473b(_0xdd9cbc,_0x4cb2b7,_0x3c5d0b,_0x4955e6){return{'restrict':'A','require':'^msNav','scope':!![],'compile':function _0x1f64ea(_0x378dd1,_0x75ee88){var _0x39ca37=a0_0x1149;return _0x378dd1[_0x39ca37('0x1b97')](_0x39ca37('0x1e32')),angular[_0x39ca37('0xec')](_0x75ee88[_0x39ca37('0xd17')])&&(_0x75ee88[_0x39ca37('0xd17')]=!![]),_0x378dd1[_0x39ca37('0x162b')](_0x39ca37('0xd17'),_0x75ee88[_0x39ca37('0xd17')]),function _0x1f9492(_0xeb29f0,_0x426f94,_0x5147a3,_0x4ee4bf){var _0xb3f75=_0x39ca37,_0x215ecf={'expanded':_0xb3f75('0x25a8'),'expandAnimation':_0xb3f75('0x229'),'collapseAnimation':_0xb3f75('0x258d')},_0x3500c2=_0x426f94['find']('a'),_0x4bfaae=[],_0x5d898a=/\(.*\)/g;angular[_0xb3f75('0x15b5')](_0x3500c2,function(_0x40e0a4){var _0xefd5cd=_0xb3f75,_0x3532d1=angular[_0xefd5cd('0x1aa8')](_0x40e0a4)[_0xefd5cd('0x162b')](_0xefd5cd('0x1fab'));if(angular[_0xefd5cd('0xec')](_0x3532d1))return;_0x3532d1=_0x3532d1['replace'](_0x5d898a,''),_0x4bfaae[_0xefd5cd('0x1599')](_0x3532d1);}),_0x4ee4bf[_0xb3f75('0xad8')](_0x426f94,_0xeb29f0),_0x426f94['children'](_0xb3f75('0x56a'))['on'](_0xb3f75('0x467'),_0x36e3e4);function _0x36e3e4(){var _0x5614b0=_0xb3f75;if(_0x4ee4bf[_0x5614b0('0x1cc6')]())return;_0x4ee4bf[_0x5614b0('0x2510')](),_0x54b031()?(_0x4ee4bf[_0x5614b0('0x99')](),_0xeb29f0[_0x5614b0('0x55b')](_0x5614b0('0x1be5')),_0xdd9cbc[_0x5614b0('0xd1')]('msNav::collapse'),_0x4cb925()[_0x5614b0('0xaa5')](function(){_0x4ee4bf['enable']();})):_0xeb29f0['$broadcast'](_0x5614b0('0x584'));}_0xeb29f0[_0xb3f75('0xc75')](_0xb3f75('0x12d0'),function(){var _0x483250=_0xb3f75;_0x426f94[_0x483250('0x12ad')](_0x483250('0x56a'))[_0x483250('0x14')](_0x483250('0x467'));}),_0xeb29f0[_0xb3f75('0xc75')]('msNav::collapse',function(){var _0x3ae2f0=_0xb3f75,_0x2b7ed7=_0x4ee4bf[_0x3ae2f0('0xc19')](),_0xf427f5=![];angular[_0x3ae2f0('0x15b5')](_0x2b7ed7,function(_0x4380f0){var _0x1a65c5=_0x3ae2f0;angular[_0x1a65c5('0x22be')](_0x4380f0[_0x1a65c5('0x165')],_0xeb29f0)&&(_0xf427f5=!![]);});if(_0xf427f5)return;_0x1698e4()[_0x3ae2f0('0xaa5')](function(){_0x4ee4bf['enable']();});}),_0xeb29f0[_0xb3f75('0xc75')](_0xb3f75('0x584'),function(){var _0x467600=_0xb3f75;_0x1698e4()[_0x467600('0xaa5')](function(){var _0x16ea8d=_0x467600;_0x4ee4bf[_0x16ea8d('0x10e5')]();});}),_0xeb29f0[_0xb3f75('0xc75')](_0xb3f75('0x1005'),function(){var _0xf7e39c=_0xb3f75,_0x412903=_0x4955e6[_0xf7e39c('0x4cb')][_0xf7e39c('0x25d6')],_0x18fe18=![];angular[_0xf7e39c('0x15b5')](_0x4bfaae,function(_0x3fe208){_0x412903===_0x3fe208&&(_0x18fe18=!![]);}),_0x18fe18?_0x4cb925():_0x1698e4();}),_0xeb29f0['$on'](_0xb3f75('0x1be5'),function(){_0x4ee4bf['setLockedItem'](_0x426f94,_0xeb29f0);});function _0x54b031(){var _0x4cec24=_0xb3f75;return _0x426f94[_0x4cec24('0x162b')](_0x4cec24('0xd17'))===_0x4cec24('0x1c5c');}function _0x3777e5(){return!_0x54b031();}function _0x4cb925(){var _0x36e699=_0xb3f75,_0x593fdd=_0x4cb2b7['defer']();if(_0x3777e5())return _0x593fdd[_0x36e699('0xaee')]({'error':!![]}),_0x593fdd[_0x36e699('0x159a')];_0x426f94[_0x36e699('0x162b')](_0x36e699('0xd17'),![]);var _0x392258=angular[_0x36e699('0x1aa8')](_0x426f94['find']('ms-nav-toggle-items')[0x0]);_0x392258[_0x36e699('0x233f')]({'position':_0x36e699('0x21e0'),'visibility':'hidden','display':'block','height':_0x36e699('0x1afc')});var _0x42b679=_0x392258[0x0][_0x36e699('0x1a12')];return _0x392258[_0x36e699('0x233f')]({'position':'','visibility':'','display':'','height':''}),_0xeb29f0[_0x36e699('0x27f8')](function(){var _0x63eab9=_0x36e699;_0x3c5d0b[_0x63eab9('0x11c6')](_0x392258,{'display':'block','height':_0x63eab9('0x1215')},{'height':_0x42b679+'px'},_0x215ecf[_0x63eab9('0x137f')])['then'](function(){var _0x3a9137=_0x63eab9;_0x392258[_0x3a9137('0x1b97')](_0x215ecf[_0x3a9137('0x25a8')]),_0x392258[_0x3a9137('0x233f')]({'height':''}),_0x593fdd[_0x3a9137('0x149f')]({'success':!![]});});}),_0x593fdd[_0x36e699('0x159a')];}function _0x1698e4(){var _0x3e7906=_0xb3f75,_0x5354f8=_0x4cb2b7[_0x3e7906('0x213b')]();if(_0x54b031())return _0x5354f8[_0x3e7906('0xaee')]({'error':!![]}),_0x5354f8['promise'];_0x426f94['attr'](_0x3e7906('0xd17'),!![]);var _0x5864b9=angular[_0x3e7906('0x1aa8')](_0x426f94[_0x3e7906('0xe9e')](_0x3e7906('0x2164'))[0x0]),_0x4e3abc=_0x5864b9[0x0]['offsetHeight'];return _0xeb29f0[_0x3e7906('0x27f8')](function(){var _0x5109fa=_0x3e7906;_0x3c5d0b[_0x5109fa('0x11c6')](_0x5864b9,{'height':_0x4e3abc+'px'},{'height':'0px'},_0x215ecf[_0x5109fa('0x1ab6')])['then'](function(){var _0x29dd02=_0x5109fa;_0x5864b9[_0x29dd02('0x10a7')](_0x215ecf['expanded']),_0x5864b9[_0x29dd02('0x233f')]({'display':'','height':''}),_0x5354f8[_0x29dd02('0x149f')]({'success':!![]});});}),_0x5354f8[_0x3e7906('0x159a')];}};}};}const _0x17d598=_0x4fb511['p']+_0x1a8446('0x27e8'),_0x17d123=_0x4fb511['p']+_0x1a8446('0x3e6');_0xca2938[_0x1a8446('0x1e33')]=[_0x1a8446('0x17cd')],_0xaeb4ce[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x1f21'),_0x1a8446('0x6a4'),'$state','msNavigationService'],_0x52bace[_0x1a8446('0x1e33')]=[_0x1a8446('0x1f4b')],_0x9c882c[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x1f21'),_0x1a8446('0x6a4'),_0x1a8446('0xd9d'),'$state',_0x1a8446('0x1f4b')],_0x3315d7[_0x1a8446('0x1e33')]=['$rootScope','$timeout','$mdSidenav',_0x1a8446('0x1f4b')],_0x3ac220[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x1f4b')];function _0x1014ee(){var _0x56241f=_0x1a8446,_0x2a91bc=angular[_0x56241f('0x952')](['ng'])[_0x56241f('0x2122')](_0x56241f('0x26bb')),_0x379b0e=[],_0x3a20a7=this;_0x3a20a7[_0x56241f('0x24c7')]=_0x59eb7e,_0x3a20a7[_0x56241f('0x1994')]=_0x5e771b,_0x3a20a7['sortByWeight']=_0x2eff9e;function _0x59eb7e(_0x2acf2a,_0x240df0){var _0xb5da65=_0x56241f;if(!angular[_0xb5da65('0x1dea')](_0x2acf2a)){_0x2a91bc[_0xb5da65('0x187f')](_0xb5da65('0x17a9'));return;}var _0x4e7522=_0x2acf2a[_0xb5da65('0x1a39')]('.'),_0x8bf83f=_0x4e7522[_0x4e7522[_0xb5da65('0x2587')]-0x1],_0x1a3a4a=_0x34e3f4(_0x4e7522),_0x56627c=![];for(var _0x16b7c8=0x0;_0x16b7c8<_0x1a3a4a[_0xb5da65('0x2587')];_0x16b7c8++){if(_0x1a3a4a[_0x16b7c8][_0xb5da65('0x15de')]===_0x8bf83f){_0x56627c=_0x1a3a4a[_0x16b7c8];break;}}_0x56627c?(angular[_0xb5da65('0x5c5')](_0x56627c,_0x240df0),_0x56627c[_0xb5da65('0x450')]=_0x1bc52c(_0x56627c)):(_0x240df0[_0xb5da65('0x12ad')]=[],(angular[_0xb5da65('0xec')](_0x240df0[_0xb5da65('0x6e9')])||!angular[_0xb5da65('0x2065')](_0x240df0[_0xb5da65('0x6e9')]))&&(_0x240df0[_0xb5da65('0x6e9')]=0x1),_0x240df0['_id']=_0x8bf83f,_0x240df0[_0xb5da65('0x259a')]=_0x2acf2a,_0x240df0[_0xb5da65('0x450')]=_0x1bc52c(_0x240df0),_0x1a3a4a['push'](_0x240df0));}function _0x5e771b(_0x19bfb8){var _0x1e507c=_0x56241f;if(!angular[_0x1e507c('0x1dea')](_0x19bfb8)){_0x2a91bc['error'](_0x1e507c('0x17a9'));return;}var _0x40c1fb=_0x379b0e,_0x41a567=_0x19bfb8[_0x1e507c('0x1a39')]('.');for(var _0x19bea0=0x0;_0x19bea0<_0x41a567[_0x1e507c('0x2587')];_0x19bea0++){var _0x241c20=_0x41a567[_0x19bea0];for(var _0x2c882e=0x0;_0x2c882e<_0x40c1fb[_0x1e507c('0x2587')];_0x2c882e++){if(_0x40c1fb[_0x2c882e]['_id']===_0x241c20){if(_0x40c1fb[_0x2c882e][_0x1e507c('0x259a')]===_0x19bfb8)return _0x40c1fb[_0x1e507c('0x1280')](_0x2c882e,0x1),!![];_0x40c1fb=_0x40c1fb[_0x2c882e][_0x1e507c('0x12ad')];break;}}}return![];}function _0x2eff9e(_0x17f71d){var _0x5890a6=_0x56241f;!_0x17f71d&&(_0x17f71d=_0x379b0e,_0x17f71d[_0x5890a6('0x1015')](_0xb43afa));for(var _0x647018=0x0;_0x647018<_0x17f71d[_0x5890a6('0x2587')];_0x647018++){var _0x31ad6b=_0x17f71d[_0x647018][_0x5890a6('0x12ad')];_0x31ad6b[_0x5890a6('0x2587')]>0x1&&_0x31ad6b[_0x5890a6('0x1015')](_0xb43afa),_0x31ad6b[_0x5890a6('0x2587')]>0x0&&_0x2eff9e(_0x31ad6b);}}function _0x34e3f4(_0x2859d2){var _0x453834=_0x56241f,_0x2f1feb=_0x379b0e;if(_0x2859d2[_0x453834('0x2587')]===0x1)return _0x2f1feb;_0x2859d2[_0x453834('0x21b')]();for(var _0xfc2d8=0x0;_0xfc2d8<_0x2859d2['length'];_0xfc2d8++){var _0x235425=_0x2859d2[_0xfc2d8],_0x531234=!![];for(var _0x51de4c=0x0;_0x51de4c<_0x2f1feb[_0x453834('0x2587')];_0x51de4c++){if(_0x2f1feb[_0x51de4c][_0x453834('0x15de')]===_0x235425){_0x2f1feb=_0x2f1feb[_0x51de4c]['children'],_0x531234=![];break;}}if(_0x531234){var _0x3eed67={'_id':_0x235425,'_path':_0x2859d2[_0x453834('0x19c4')]('.'),'title':_0x235425,'weight':0x1,'children':[]};_0x2f1feb['push'](_0x3eed67),_0x2f1feb=_0x3eed67['children'];}}return _0x2f1feb;}function _0xb43afa(_0x20aca1,_0x5e2953){var _0x1bd786=_0x56241f;return parseInt(_0x20aca1[_0x1bd786('0x6e9')])-parseInt(_0x5e2953[_0x1bd786('0x6e9')]);}function _0x1bc52c(_0x4ca64a){var _0x20f2ba=_0x56241f,_0x3973ab='';return angular[_0x20f2ba('0x21dc')](_0x4ca64a[_0x20f2ba('0xb46')])&&(_0x3973ab=_0x4ca64a[_0x20f2ba('0xb46')],angular[_0x20f2ba('0x21dc')](_0x4ca64a[_0x20f2ba('0x1926')])&&angular['isObject'](_0x4ca64a['stateParams'])&&(_0x3973ab=_0x3973ab+'('+angular['toJson'](_0x4ca64a[_0x20f2ba('0x1926')])+')')),_0x3973ab;}this[_0x56241f('0x149')]=function(){var _0x504131=null,_0x575a6f=null,_0x32571d=null,_0x884a07=null,_0x1a866b={'saveItem':_0x59eb7e,'deleteItem':_0x5e771b,'sort':_0x2eff9e,'clearNavigation':_0x31f162,'setActiveItem':_0x312952,'getActiveItem':_0x21a7a4,'getNavigation':_0x502de2,'getFlatNavigation':_0x5d6606,'setNavigationScope':_0x11cf29,'setFolded':_0x1d46c5,'getFolded':_0x5d4165,'setFoldedOpen':_0x50b5dc,'getFoldedOpen':_0x2e8dfb,'toggleFolded':_0xf779cc};return _0x1a866b;function _0x31f162(){var _0x5d07bf=a0_0x1149;_0x379b0e=[],_0x575a6f&&(_0x575a6f['vm'][_0x5d07bf('0x146a')]=_0x379b0e);}function _0x312952(_0x52150e,_0x10a1bd){_0x504131={'node':_0x52150e,'scope':_0x10a1bd};}function _0x21a7a4(){return _0x504131;}function _0x502de2(_0x45c535){var _0x1cd93b=a0_0x1149;if(_0x45c535){for(var _0x3846d4=0x0;_0x3846d4<_0x379b0e[_0x1cd93b('0x2587')];_0x3846d4++){if(_0x379b0e[_0x3846d4][_0x1cd93b('0x15de')]===_0x45c535)return[_0x379b0e[_0x3846d4]];}return null;}return _0x379b0e;}function _0x5d6606(_0x30ceda){var _0x5ce0c6=_0x502de2(_0x30ceda);return _0x41bb0c(_0x5ce0c6);}function _0x11cf29(_0x550c0b){_0x575a6f=_0x550c0b;}function _0x1d46c5(_0xc98ce0){_0x32571d=_0xc98ce0;}function _0x5d4165(){return _0x32571d;}function _0x50b5dc(_0x41fb18){_0x884a07=_0x41fb18;}function _0x2e8dfb(){return _0x884a07;}function _0xf779cc(){var _0x238c63=a0_0x1149;_0x575a6f[_0x238c63('0x817')]();}function _0x41bb0c(_0x58e292){var _0xa8e743=a0_0x1149,_0xd598ef=[];for(var _0xfa6097=0x0;_0xfa6097<_0x58e292[_0xa8e743('0x2587')];_0xfa6097++){var _0x52827e=angular[_0xa8e743('0x20a')](_0x58e292[_0xfa6097]);_0x52827e[_0xa8e743('0x12ad')]=[],_0xd598ef[_0xa8e743('0x1599')](_0x52827e),_0x58e292[_0xfa6097][_0xa8e743('0x12ad')]['length']>0x0&&(_0xd598ef=_0xd598ef[_0xa8e743('0x9e4')](_0x41bb0c(_0x58e292[_0xfa6097]['children'])));}return _0xd598ef;}};}function _0x3ac220(_0x32cfb5,_0x417f87){var _0x183d5d=_0x1a8446,_0x2fdca3=this;_0x32cfb5[_0x183d5d('0x192f')]?_0x2fdca3['navigation']=_0x417f87[_0x183d5d('0x236')](_0x32cfb5[_0x183d5d('0x192f')]):_0x2fdca3[_0x183d5d('0x146a')]=_0x417f87[_0x183d5d('0x236')]();_0x2fdca3[_0x183d5d('0x1c1')]=_0x44d23d,_0x553ce9();function _0x553ce9(){var _0x41c45b=_0x183d5d;_0x417f87[_0x41c45b('0x1015')]();}function _0x44d23d(){var _0x352980=_0x183d5d;angular['element'](_0x352980('0x54c'))[_0x352980('0x1714')](_0x352980('0x1a72'));}}function _0x3315d7(_0x7fa251,_0x438b69,_0x2a413d,_0x26b97d){var _0x16142b=_0x1a8446;return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':_0x16142b('0x15bc'),'templateUrl':_0x17d123,'transclude':!![],'compile':function _0x22d33d(_0x462374){var _0x54816f=_0x16142b;return _0x462374[_0x54816f('0x1b97')](_0x54816f('0x120f')),function _0x5965d7(_0x59cac5,_0x46ebbc){var _0x2b1288=_0x54816f,_0x9e5b46=angular['element']('body'),_0x265825=angular['element'](_0x2b1288('0x24ff')),_0x36a38f=angular[_0x2b1288('0x1aa8')](''),_0x442f07=_0x2a413d(_0x2b1288('0x146a'));_0x26b97d['setNavigationScope'](_0x59cac5),_0x502021();function _0x502021(){var _0x53d681=_0x2b1288;_0x26b97d[_0x53d681('0x1764')]()===null&&_0x26b97d[_0x53d681('0x8d4')](_0x59cac5['folded']),_0x26b97d['getFolded']()&&(_0x438b69(function(){var _0x9b0679=_0x53d681;_0x7fa251[_0x9b0679('0xd1')](_0x9b0679('0x398'));}),_0x9e5b46['addClass'](_0x53d681('0x18d4')),_0x436103());}_0x59cac5[_0x2b1288('0x1ccf')](function(){return _0x442f07['isLockedOpen']();},function(_0x2768e3,_0x457629){var _0x44688e=_0x2b1288;if(angular[_0x44688e('0xec')](_0x2768e3)||angular[_0x44688e('0x22be')](_0x2768e3,_0x457629))return;var _0x4b8a2d=_0x26b97d[_0x44688e('0x1764')]();if(_0x4b8a2d){if(_0x2768e3)_0x7fa251[_0x44688e('0xd1')]('msNavigation::collapse');else{var _0x44b682=_0x26b97d[_0x44688e('0xb9d')]();_0x44b682&&_0x44b682[_0x44688e('0x165')][_0x44688e('0x55b')](_0x44688e('0x196f'));}}}),_0x59cac5[_0x2b1288('0x1ccf')](_0x2b1288('0x1172'),function(_0x219662,_0x4fef99){var _0x575d68=_0x2b1288;if(angular[_0x575d68('0xec')](_0x219662)||angular[_0x575d68('0x22be')](_0x219662,_0x4fef99))return;_0x4c9285(_0x219662);});function _0x4c9285(_0x4956be){var _0x184974=_0x2b1288;_0x26b97d[_0x184974('0x8d4')](_0x4956be);if(_0x4956be)_0x7fa251[_0x184974('0xd1')](_0x184974('0x398')),_0x9e5b46[_0x184974('0x1b97')](_0x184974('0x18d4')),_0x436103();else{var _0x984f65=_0x26b97d[_0x184974('0xb9d')]();_0x984f65&&_0x984f65[_0x184974('0x165')][_0x184974('0x55b')]('msNavigation::stateMatched'),_0x9e5b46[_0x184974('0x10a7')](_0x184974('0xb30')),_0xfcde0b();}}function _0x436103(){var _0x20468e=_0x2b1288;_0x46ebbc[_0x20468e('0x20a2')]()[_0x20468e('0x1923')](_0x265825),_0x438b69(function(){var _0x2ddf0e=_0x20468e;_0x265825['on'](_0x2ddf0e('0x158a'),_0x595347);});}function _0x2a3813(){var _0x31b2ce=_0x2b1288;_0x9e5b46['find'](_0x31b2ce('0x249f'))[_0x31b2ce('0x1923')](_0x36a38f),_0x36a38f['on'](_0x31b2ce('0x158a'),_0xe7555d);}function _0xfcde0b(){var _0x422af4=_0x2b1288;_0x36a38f[_0x422af4('0xf6d')]();}function _0x595347(_0x1d5686){var _0x3309e1=_0x2b1288;_0x1d5686&&_0x1d5686['preventDefault']();_0x26b97d['setFoldedOpen'](!![]);var _0x5532fe=_0x26b97d[_0x3309e1('0xb9d')]();_0x5532fe&&_0x5532fe[_0x3309e1('0x165')][_0x3309e1('0x55b')](_0x3309e1('0x196f')),_0x9e5b46[_0x3309e1('0x1b97')]('ms-navigation-folded-open'),_0x265825[_0x3309e1('0xf6d')](),_0x2a3813();}function _0xe7555d(_0x4529bb){var _0x593e8d=_0x2b1288;_0x4529bb&&_0x4529bb['preventDefault'](),_0x26b97d[_0x593e8d('0xc5f')](![]),_0x7fa251[_0x593e8d('0xd1')](_0x593e8d('0x398')),_0x9e5b46[_0x593e8d('0x10a7')](_0x593e8d('0x1555')),_0x36a38f[_0x593e8d('0xf6d')](),_0x436103();}_0x59cac5[_0x2b1288('0x817')]=function(){var _0x492a6e=_0x2b1288,_0x1f947d=_0x26b97d[_0x492a6e('0x1764')]();_0x4c9285(!_0x1f947d);},_0x59cac5[_0x2b1288('0xc75')](_0x2b1288('0x15d3'),function(){var _0x3154e7=_0x2b1288;_0x442f07[_0x3154e7('0x21d0')]();}),_0x59cac5['$on'](_0x2b1288('0x12d0'),function(){var _0x409e6f=_0x2b1288;_0x36a38f['off'](_0x409e6f('0x158a')),_0x265825[_0x409e6f('0x14')](_0x409e6f('0x158a'));});};}};}function _0x9c882c(_0x1d6ae5,_0x77ab45,_0x2852af,_0x8282cf,_0x16c76d,_0xdde282){var _0x5e8477=_0x1a8446,_0x149df5=this;_0x149df5[_0x5e8477('0x1aa8')]=_0x77ab45,_0x149df5[_0x5e8477('0xdf1')]=_0x1d6ae5[_0x5e8477('0xdf1')],_0x149df5[_0x5e8477('0x13')]=undefined,_0x149df5[_0x5e8477('0xd17')]=undefined,_0x149df5['collapsable']=undefined,_0x149df5['group']=undefined,_0x149df5[_0x5e8477('0x753')]='animate-height',_0x149df5[_0x5e8477('0x3a9')]=_0x2300e7,_0x149df5[_0x5e8477('0x24d3')]=_0x2122aa,_0x149df5[_0x5e8477('0xbe7')]=_0x1d7f31,_0x149df5['getClass']=_0x572bfb,_0x149df5['isHidden']=_0x57f9f5,_0x519360();function _0x519360(){var _0x450287=_0x5e8477;_0x149df5[_0x450287('0x13')]=_0x149df5[_0x450287('0xdf1')][_0x450287('0x12ad')][_0x450287('0x2587')]>0x0,_0x149df5[_0x450287('0x23ea')]=!!(angular[_0x450287('0x21dc')](_0x149df5[_0x450287('0xdf1')][_0x450287('0x23ea')])&&_0x149df5[_0x450287('0xdf1')][_0x450287('0x23ea')]===!![]);!_0x149df5[_0x450287('0x13')]||_0x149df5[_0x450287('0x23ea')]?_0x149df5[_0x450287('0x84f')]=![]:_0x149df5['collapsable']=!!(angular['isUndefined'](_0x149df5[_0x450287('0xdf1')][_0x450287('0x84f')])||typeof _0x149df5[_0x450287('0xdf1')]['collapsable']!==_0x450287('0x1d0a')||_0x149df5['node']['collapsable']===!![]);!_0x149df5[_0x450287('0x84f')]?_0x149df5[_0x450287('0xd17')]=![]:_0x149df5['collapsed']=!!(angular[_0x450287('0xec')](_0x149df5[_0x450287('0xdf1')][_0x450287('0xd17')])||typeof _0x149df5[_0x450287('0xdf1')][_0x450287('0xd17')]!==_0x450287('0x1d0a')||_0x149df5[_0x450287('0xdf1')][_0x450287('0xd17')]===!![]);if(_0x149df5['node'][_0x450287('0xb46')]===_0x16c76d[_0x450287('0x4cb')][_0x450287('0x25d6')]||_0x16c76d[_0x450287('0x13d6')](_0x149df5[_0x450287('0xdf1')][_0x450287('0xb46')])){if(angular[_0x450287('0x21dc')](_0x149df5[_0x450287('0xdf1')][_0x450287('0x1926')])&&angular[_0x450287('0x21dc')](_0x16c76d[_0x450287('0x25cf')])&&!angular[_0x450287('0x22be')](_0x149df5[_0x450287('0xdf1')][_0x450287('0x1926')],_0x16c76d[_0x450287('0x25cf')]))return;_0x1d6ae5[_0x450287('0x55b')]('msNavigation::stateMatched'),_0xdde282[_0x450287('0x15c7')](_0x149df5['node'],_0x1d6ae5);}_0x1d6ae5['$on']('msNavigation::stateMatched',function(){var _0x5d4011=_0x450287;_0x149df5[_0x5d4011('0x84f')]&&_0x149df5[_0x5d4011('0xd17')]&&_0x1d6ae5[_0x5d4011('0x27f8')](function(){var _0x124e04=_0x5d4011;_0x149df5[_0x124e04('0xd17')]=![];});}),_0x1d6ae5[_0x450287('0xc75')](_0x450287('0x398'),function(_0x2eb483,_0x2c9e64){var _0x43e726=_0x450287;if(_0x149df5[_0x43e726('0xd17')]||!_0x149df5[_0x43e726('0x84f')])return;if(angular['isUndefined'](_0x2c9e64))_0x149df5[_0x43e726('0x24d3')]();else{var _0x44cfaf=_0x2c9e64[_0x43e726('0x1a39')]('.'),_0x3e6663=[],_0x3d643c=_0xdde282[_0x43e726('0xb9d')]();_0x3d643c&&(_0x3e6663=_0x3d643c[_0x43e726('0xdf1')][_0x43e726('0x259a')][_0x43e726('0x1a39')]('.'));if(_0x44cfaf[_0x43e726('0x1f38')](_0x149df5[_0x43e726('0xdf1')][_0x43e726('0x15de')])>-0x1)return;if(_0x3e6663[_0x43e726('0x1f38')](_0x149df5[_0x43e726('0xdf1')][_0x43e726('0x15de')])>-0x1)return;_0x149df5[_0x43e726('0x24d3')]();}}),_0x1d6ae5[_0x450287('0xc75')](_0x450287('0x2829'),function(){var _0x5c6b5e=_0x450287;if(_0x149df5[_0x5c6b5e('0xdf1')]['state']===_0x16c76d['current']['name']){if(angular[_0x5c6b5e('0x21dc')](_0x149df5[_0x5c6b5e('0xdf1')][_0x5c6b5e('0x1926')])&&angular[_0x5c6b5e('0x21dc')](_0x16c76d['params'])&&!angular[_0x5c6b5e('0x22be')](_0x149df5[_0x5c6b5e('0xdf1')][_0x5c6b5e('0x1926')],_0x16c76d[_0x5c6b5e('0x25cf')]))return;_0xdde282[_0x5c6b5e('0x15c7')](_0x149df5[_0x5c6b5e('0xdf1')],_0x1d6ae5),_0x2852af[_0x5c6b5e('0xd1')](_0x5c6b5e('0x398'),_0x149df5[_0x5c6b5e('0xdf1')][_0x5c6b5e('0x259a')]);}if(_0x16c76d['includes'](_0x149df5[_0x5c6b5e('0xdf1')][_0x5c6b5e('0xb46')])){if(angular[_0x5c6b5e('0x21dc')](_0x149df5[_0x5c6b5e('0xdf1')]['stateParams'])&&angular[_0x5c6b5e('0x21dc')](_0x16c76d[_0x5c6b5e('0x25cf')])&&!angular[_0x5c6b5e('0x22be')](_0x149df5[_0x5c6b5e('0xdf1')]['stateParams'],_0x16c76d[_0x5c6b5e('0x25cf')]))return;_0x1d6ae5[_0x5c6b5e('0x55b')](_0x5c6b5e('0x196f'));}});}function _0x2300e7(){var _0x2e4cde=_0x5e8477;_0x149df5[_0x2e4cde('0xd17')]?_0x149df5[_0x2e4cde('0xbe7')]():_0x149df5[_0x2e4cde('0x24d3')]();}function _0x2122aa(){var _0x1e014c=_0x5e8477,_0x286856=_0x149df5['element'][_0x1e014c('0x12ad')]('ul'),_0x11c8e6=_0x286856[0x0][_0x1e014c('0x1a12')];_0x1d6ae5[_0x1e014c('0x27f8')](function(){var _0x581395=_0x1e014c;_0x149df5['collapsed']=!![],_0x149df5[_0x581395('0x1aa8')][_0x581395('0x1b97')](_0x581395('0x2858')),_0x8282cf['animate'](_0x286856,{'display':_0x581395('0xaef'),'height':_0x11c8e6+'px'},{'height':_0x581395('0x1215')},_0x149df5['animateHeightClass'])['then'](function(){var _0x24c6ff=_0x581395;_0x286856[_0x24c6ff('0x233f')]({'display':'','height':''}),_0x149df5[_0x24c6ff('0x1aa8')][_0x24c6ff('0x10a7')]('collapsing');}),_0x1d6ae5[_0x581395('0xd1')](_0x581395('0x398'));});}function _0x1d7f31(){var _0x1387ac=_0x5e8477,_0x3e3e0c=_0x149df5[_0x1387ac('0x1aa8')]['children']('ul');_0x3e3e0c['css']({'position':'absolute','visibility':_0x1387ac('0x1ad2'),'display':_0x1387ac('0xaef'),'height':_0x1387ac('0x1afc')});var _0x1b7c24=_0x3e3e0c[0x0][_0x1387ac('0x1a12')];_0x3e3e0c['css']({'position':'','visibility':'','display':'','height':''}),_0x1d6ae5[_0x1387ac('0x27f8')](function(){var _0x24754c=_0x1387ac;_0x149df5[_0x24754c('0xd17')]=![],_0x149df5[_0x24754c('0x1aa8')]['addClass'](_0x24754c('0x19de')),_0x8282cf[_0x24754c('0x11c6')](_0x3e3e0c,{'display':_0x24754c('0xaef'),'height':_0x24754c('0x1215')},{'height':_0x1b7c24+'px'},_0x149df5[_0x24754c('0x753')])[_0x24754c('0xaa5')](function(){var _0x14efbd=_0x24754c;_0x3e3e0c[_0x14efbd('0x233f')]({'height':''}),_0x149df5['element'][_0x14efbd('0x10a7')](_0x14efbd('0x19de'));}),_0x2852af[_0x24754c('0xd1')]('msNavigation::collapse',_0x149df5['node'][_0x24754c('0x259a')]);});}function _0x572bfb(){var _0xb9a169=_0x5e8477;return _0x149df5[_0xb9a169('0xdf1')][_0xb9a169('0x369')];}function _0x57f9f5(){var _0x1b2ccc=_0x5e8477;if(angular[_0x1b2ccc('0x21dc')](_0x149df5[_0x1b2ccc('0xdf1')][_0x1b2ccc('0x1ad2')])&&angular[_0x1b2ccc('0x171f')](_0x149df5[_0x1b2ccc('0xdf1')][_0x1b2ccc('0x1ad2')]))return _0x149df5[_0x1b2ccc('0xdf1')][_0x1b2ccc('0x1ad2')]();return![];}}function _0x374501(){var _0x1f1459=_0x1a8446;return{'restrict':'A','bindToController':{'node':_0x1f1459('0x9ab')},'controller':'MsNavigationNodeController\x20as\x20vm','compile':function _0x9912fa(_0xdd9325){var _0x10f259=_0x1f1459;return _0xdd9325['addClass'](_0x10f259('0x15ba')),function _0x431ff8(_0x11fe74,_0xdd9597,_0x2a240b,_0x5ad17c){var _0x1ed7b8=_0x10f259;_0xdd9597['addClass'](_0x5ad17c[_0x1ed7b8('0x155e')]()),_0x5ad17c[_0x1ed7b8('0x23ea')]&&_0xdd9597[_0x1ed7b8('0x1b97')](_0x1ed7b8('0x23ea'));};}};}function _0x42f1d1(){var _0xf23a76=_0x1a8446;return{'restrict':'A','require':_0xf23a76('0x1fad'),'compile':function _0xb867f7(_0x2c460f){var _0x1d84df=_0xf23a76;return _0x2c460f[_0x1d84df('0x1b97')](_0x1d84df('0x283e')),function _0x1e3510(_0x21f7b3,_0x539afd,_0x208861,_0xb2e597){var _0x45e8a7=_0x1d84df;_0xb2e597[_0x45e8a7('0x84f')]&&_0x539afd['on'](_0x45e8a7('0x467'),_0xb2e597[_0x45e8a7('0x3a9')]),_0x21f7b3[_0x45e8a7('0xc75')](_0x45e8a7('0x12d0'),function(){var _0x1f2ca=_0x45e8a7;_0x539afd[_0x1f2ca('0x14')](_0x1f2ca('0x467'));});};}};}function _0x52bace(_0xb2b4cb){var _0x4f978d=_0x1a8446;return{'restrict':'E','scope':{'root':'@'},'controller':_0x4f978d('0x15bc'),'templateUrl':_0x17d598,'transclude':!![],'compile':function _0x52d819(_0x4af672){var _0x5c1ff0=_0x4f978d;return _0x4af672[_0x5c1ff0('0x1b97')]('ms-navigation-horizontal'),function _0x6b17e5(_0x2c0ab7){var _0xd9e176=_0x5c1ff0;_0xb2b4cb[_0xd9e176('0x4b4')](_0x2c0ab7);};}};}function _0xaeb4ce(_0x190fcb,_0x8878c0,_0x501d6b,_0xf9786d,_0x325e41){var _0x76e3c2=_0x1a8446,_0x433197=this;_0x433197[_0x76e3c2('0x1aa8')]=_0x8878c0,_0x433197['node']=_0x190fcb[_0x76e3c2('0xdf1')],_0x433197[_0x76e3c2('0x13')]=undefined,_0x433197[_0x76e3c2('0x23ea')]=undefined,_0x433197[_0x76e3c2('0x155e')]=_0x5db05f,_0x39c868();function _0x39c868(){var _0x51638e=_0x76e3c2;_0x433197[_0x51638e('0x1fca')]=![],_0x433197[_0x51638e('0x13')]=_0x433197['node'][_0x51638e('0x12ad')][_0x51638e('0x2587')]>0x0,_0x433197[_0x51638e('0x23ea')]=!!(angular['isDefined'](_0x433197[_0x51638e('0xdf1')]['group'])&&_0x433197[_0x51638e('0xdf1')][_0x51638e('0x23ea')]===!![]);if(_0x433197[_0x51638e('0xdf1')][_0x51638e('0xb46')]===_0xf9786d[_0x51638e('0x4cb')][_0x51638e('0x25d6')]||_0xf9786d[_0x51638e('0x13d6')](_0x433197[_0x51638e('0xdf1')]['state'])){if(angular[_0x51638e('0x21dc')](_0x433197[_0x51638e('0xdf1')][_0x51638e('0x1926')])&&angular[_0x51638e('0x21dc')](_0xf9786d[_0x51638e('0x25cf')])&&!angular[_0x51638e('0x22be')](_0x433197[_0x51638e('0xdf1')]['stateParams'],_0xf9786d[_0x51638e('0x25cf')]))return;_0x190fcb['$emit']('msNavigation::stateMatched'),_0x325e41['setActiveItem'](_0x433197[_0x51638e('0xdf1')],_0x190fcb);}_0x190fcb[_0x51638e('0xc75')](_0x51638e('0x196f'),function(){var _0x2172a7=_0x51638e;_0x433197[_0x2172a7('0x13')]&&_0x190fcb[_0x2172a7('0x27f8')](function(){var _0x4f7807=_0x2172a7;_0x433197[_0x4f7807('0x1fca')]=!![];});}),_0x190fcb[_0x51638e('0xc75')](_0x51638e('0xb1d'),function(){var _0x44c57a=_0x51638e;if(!_0x433197[_0x44c57a('0x13')])return;var _0x2aa3f7=[],_0x106957=_0x325e41[_0x44c57a('0xb9d')]();_0x106957&&(_0x2aa3f7=_0x106957[_0x44c57a('0xdf1')][_0x44c57a('0x259a')][_0x44c57a('0x1a39')]('.')),_0x2aa3f7['indexOf'](_0x433197[_0x44c57a('0xdf1')][_0x44c57a('0x15de')])>-0x1?_0x190fcb[_0x44c57a('0x27f8')](function(){var _0x2c0766=_0x44c57a;_0x433197[_0x2c0766('0x1fca')]=!![];}):_0x190fcb[_0x44c57a('0x27f8')](function(){var _0x233e3e=_0x44c57a;_0x433197[_0x233e3e('0x1fca')]=![];});}),_0x190fcb[_0x51638e('0xc75')](_0x51638e('0x2829'),function(){var _0x2f6a06=_0x51638e;if(_0x433197[_0x2f6a06('0xdf1')][_0x2f6a06('0xb46')]===_0xf9786d[_0x2f6a06('0x4cb')][_0x2f6a06('0x25d6')]||_0xf9786d[_0x2f6a06('0x13d6')](_0x433197[_0x2f6a06('0xdf1')][_0x2f6a06('0xb46')])){if(angular['isDefined'](_0x433197[_0x2f6a06('0xdf1')][_0x2f6a06('0x1926')])&&angular[_0x2f6a06('0x21dc')](_0xf9786d['params'])&&!angular[_0x2f6a06('0x22be')](_0x433197['node'][_0x2f6a06('0x1926')],_0xf9786d[_0x2f6a06('0x25cf')]))return;_0x325e41[_0x2f6a06('0x15c7')](_0x433197[_0x2f6a06('0xdf1')],_0x190fcb),_0x501d6b[_0x2f6a06('0xd1')](_0x2f6a06('0xb1d'));}});}function _0x5db05f(){var _0x249a59=_0x76e3c2;return _0x433197[_0x249a59('0xdf1')]['class'];}}function _0x3a9a9e(){var _0x166533=_0x1a8446;return{'restrict':'A','bindToController':{'node':_0x166533('0x4df')},'controller':'MsNavigationHorizontalNodeController\x20as\x20vm','compile':function _0x14e028(_0x4a660d){var _0x1963eb=_0x166533;return _0x4a660d[_0x1963eb('0x1b97')](_0x1963eb('0x1ed7')),function _0x5ae463(_0x4c558a,_0x22b5c6,_0x379416,_0x24120b){var _0x518f0a=_0x1963eb;_0x22b5c6[_0x518f0a('0x1b97')](_0x24120b[_0x518f0a('0x155e')]()),_0x24120b[_0x518f0a('0x23ea')]&&_0x22b5c6[_0x518f0a('0x1b97')]('group');};}};}function _0xca2938(_0x3f4696){var _0x4724c3=_0x1a8446;return{'restrict':'A','require':_0x4724c3('0x131d'),'compile':function _0x4abc0f(_0xcbfb7e){var _0xa4f11e=_0x4724c3;return _0xcbfb7e[_0xa4f11e('0x1b97')]('ms-navigation-horizontal-item'),function _0x36d04a(_0xed70e4,_0x1d6114,_0x1b7407,_0x3ac5e2){var _0x27e335=_0xa4f11e;_0x1d6114['on'](_0x27e335('0x467'),_0x46e9b8);function _0x46e9b8(){var _0x3095a5=_0x27e335;if(!_0x3ac5e2[_0x3095a5('0x13')]||_0x3f4696('gt-md'))return;_0x1d6114['toggleClass'](_0x3095a5('0x25a8'));}_0xed70e4[_0x27e335('0xc75')](_0x27e335('0x12d0'),function(){var _0x4a7305=_0x27e335;_0x1d6114[_0x4a7305('0x14')](_0x4a7305('0x467'));});};}};}const _0xad7a7b=_0x4fb511['p']+_0x1a8446('0x8f8'),_0x30fa38=_0x4fb511['p']+_0x1a8446('0x7fd'),_0x1ba200=_0x4fb511['p']+_0x1a8446('0xbd6'),_0x51a255=_0x4fb511['p']+_0x1a8446('0x163f');var _0x4d5947=_0x4fb511(0x175b),_0x51e545=_0x4fb511['n'](_0x4d5947),_0x299ae1=_0x4fb511(0x26ba),_0x4f7b72=_0x4fb511['n'](_0x299ae1);_0x196316[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0x21b3'),_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x1df3'),_0x1a8446('0x2a4'),'api','motNotification',_0x1a8446('0x1dfd'),_0x1a8446('0xe74')];function _0x3145eb(_0x92b04){var _0x51ee96=_0x1a8446;_0x51ee96('0x1a27');return typeof Symbol===_0x51ee96('0x2726')&&typeof Symbol[_0x51ee96('0x14b3')]===_0x51ee96('0x5c')?_0x3145eb=function _0x1a9c32(_0x4bece5){return typeof _0x4bece5;}:_0x3145eb=function _0x55b569(_0x3ece5b){var _0x57e460=_0x51ee96;return _0x3ece5b&&typeof Symbol==='function'&&_0x3ece5b[_0x57e460('0x1fe0')]===Symbol&&_0x3ece5b!==Symbol[_0x57e460('0xc11')]?_0x57e460('0x5c'):typeof _0x3ece5b;},_0x3145eb(_0x92b04);}function _0x196316(_0x22cb69,_0x183a48,_0x42f859,_0x96d271,_0x1863c7,_0x36bf19,_0x325552,_0x5b86a3,_0x367a4b,_0xf254bc,_0x10c292,_0x53cb3b,_0x1f461c,_0x2cef99){var _0x31f554=_0x1a8446,_0x34eb4c=this,_0x6bdf3f=window[_0x31f554('0x2724')];_0x34eb4c[_0x31f554('0x842')]=_0x10c292['baseUrl'],_0x34eb4c[_0x31f554('0x2708')]=_0x22cb69[_0x31f554('0x24a3')]['vm']['conf'];var _0x26a706=[_0x31f554('0x80b'),_0x31f554('0x1849'),'microphoneId',_0x31f554('0x2861'),_0x31f554('0x158'),_0x31f554('0x90d'),'ringingMute',_0x31f554('0x1a69'),_0x31f554('0x4e6')],_0x19644b=_0x34eb4c[_0x31f554('0x2708')]&&JSON[_0x31f554('0x9b6')](_0x325552[_0x31f554('0x38e')][_0x31f554('0x173f')](_0x31f554('0x12b1')+_0x34eb4c[_0x31f554('0x2708')]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x96d271(function(){},0x3e7),_0x34eb4c[_0x31f554('0x1108')]=_0x31f554('0x24af'),_0x34eb4c[_0x31f554('0x1a83')]=_0x31f554('0x175a'),_0x34eb4c[_0x31f554('0xe2e')]='',_0x34eb4c[_0x31f554('0x24b4')]=![],_0x34eb4c[_0x31f554('0x1df2')]=document[_0x31f554('0x531')](_0x31f554('0xb59')),_0x34eb4c[_0x31f554('0x239f')]=document[_0x31f554('0x781')](_0x34eb4c['conf']['remotePlayerId']),_0x34eb4c[_0x31f554('0x1df2')][_0x31f554('0x845')]=0x1,_0x34eb4c[_0x31f554('0x1b7a')]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x34eb4c[_0x31f554('0x16fc')]=[],_0x34eb4c[_0x31f554('0x2109')]=[],_0x34eb4c[_0x31f554('0x1f0b')]=[],_0x34eb4c[_0x31f554('0xa6f')]=![],_0x34eb4c[_0x31f554('0xb6e')]=![],_0x34eb4c[_0x31f554('0x100a')]=[],_0x34eb4c['ua']=new(_0x51e545())['UA']({'sockets':[new(_0x51e545())[(_0x31f554('0x2574'))](_0x31f554('0xcaf')+_0x34eb4c[_0x31f554('0x2708')][_0x31f554('0x160c')]+_0x31f554('0x1a6f'))],'uri':new(_0x51e545())[(_0x31f554('0x1065'))](_0x31f554('0xcc'),_0x34eb4c[_0x31f554('0x2708')][_0x31f554('0x25d6')],_0x34eb4c[_0x31f554('0x2708')][_0x31f554('0x160c')],0x13c4,null,null)['toString'](),'authorization_user':_0x34eb4c[_0x31f554('0x2708')][_0x31f554('0x25d6')],'ha1':_0x34eb4c[_0x31f554('0x2708')][_0x31f554('0x1af6')],'realm':_0x34eb4c['conf'][_0x31f554('0x1c67')],'user_agent':_0x34eb4c[_0x31f554('0x2708')]['ua'],'session_timers_refresh_method':_0x31f554('0x6af'),'register_expires':_0x34eb4c[_0x31f554('0x2708')][_0x31f554('0xe47')]||0x3c,'register':!![]}),_0x34eb4c[_0x31f554('0x2708')]=_0x51538b()[_0x31f554('0x283c')](_0x19644b[_0x31f554('0x2834')],_0x34eb4c['conf']),_0x34eb4c['initDeviceInProgress']=![],_0x34eb4c['isJabraEnabled']=![],_0x34eb4c[_0x31f554('0x11ca')]=![],_0x34eb4c[_0x31f554('0x2818')]=null,_0x34eb4c['jabraClicked']=![],_0x34eb4c[_0x31f554('0x13e2')]=![],_0x34eb4c['originateInProgress']=![];function _0x50aed0(){var _0x13aff6=_0x31f554;_0x3bde1f(![]),navigator['mediaDevices'][_0x13aff6('0x15a5')]=function(){var _0x2bdc9c=_0x13aff6;!_0x34eb4c[_0x2bdc9c('0x17eb')]&&(_0x34eb4c['initDeviceInProgress']=!![],_0x6bdf3f&&_0x34eb4c[_0x2bdc9c('0x11ca')]?_0x6bdf3f[_0x2bdc9c('0x10cd')]()[_0x2bdc9c('0xaa5')](function(){var _0x16a5ad=_0x2bdc9c;_0x34eb4c[_0x16a5ad('0x11ca')]=![],_0x34eb4c[_0x16a5ad('0x2181')]=![],_0x3bde1f(!![]);})[_0x2bdc9c('0x253d')](function(_0x4d7643){var _0x454aad=_0x2bdc9c;console[_0x454aad('0x187f')](_0x454aad('0xaa3'),_0x4d7643);}):_0x3bde1f(!![]));};var _0x150632=[_0x10c292[_0x13aff6('0x97')][_0x13aff6('0x2122')]({'type':_0x13aff6('0x90b'),'nolimit':!![]})[_0x13aff6('0x1dc2')],_0x10c292[_0x13aff6('0x97')][_0x13aff6('0x2122')]({'type':_0x13aff6('0x27c3'),'nolimit':!![]})['$promise']];Promise['all'](_0x150632)[_0x13aff6('0xaa5')](function(_0x76da66){var _0xd713f4=_0x13aff6,_0x51aa0c=_0x76da66[0x0][_0xd713f4('0x580')],_0x2df0a9=_0x76da66[0x1][_0xd713f4('0x580')],_0x1b5b43=[],_0x721f3e=[];_0x2df0a9['forEach'](function(_0x15b69f){var _0x5bc289=_0xd713f4;_0x721f3e[_0x5bc289('0x1599')](_0x5bc289('0x22d3')+_0x15b69f[_0x5bc289('0x12f4')]);}),_0x1b5b43[_0xd713f4('0x1599')]({'urls':_0x721f3e}),_0x51aa0c[_0xd713f4('0x15b5')](function(_0x1ce6ad){var _0x174938=_0xd713f4,_0x2401aa={'urls':_0x174938('0x1637')+_0x1ce6ad[_0x174938('0x12f4')]};_0x1ce6ad['username']&&(_0x2401aa[_0x174938('0x270a')]=_0x1ce6ad[_0x174938('0x270a')]),_0x1ce6ad[_0x174938('0x418')]&&(_0x2401aa[_0x174938('0x21b0')]=_0x1ce6ad[_0x174938('0x418')]),_0x1b5b43['push'](_0x2401aa);}),_0x34eb4c[_0xd713f4('0x1b7a')][_0xd713f4('0x5d2')]={'iceServers':_0x1b5b43};}),this['ua']['on'](_0x13aff6('0x28'),_0x1a0c96[_0x13aff6('0x1f46')](this)),this['ua']['on'](_0x13aff6('0x2188'),_0x56d238[_0x13aff6('0x1f46')](this)),this['ua']['on'](_0x13aff6('0x26bc'),_0x335953['bind'](this)),_0x2cef99['on'](_0x13aff6('0x1735'),_0x5d0792[_0x13aff6('0x1f46')](this)),_0x2cef99['on']('webbar:hangup',_0x475e37[_0x13aff6('0x1f46')](this)),_0x2cef99['on'](_0x13aff6('0x255d'),_0x507396[_0x13aff6('0x1f46')](this)),_0x2cef99['on']('webbar:hold',_0x585000['bind'](this)),_0x2cef99['on'](_0x13aff6('0x2272'),_0x2c2128['bind'](this)),_0x2cef99['on'](_0x13aff6('0x27de'),_0x577e29['bind'](this));}function _0x3bde1f(_0x55d858){var _0x3f55d9=_0x31f554,_0x4e2081,_0x1dde6f,_0x1971fc;return _0x34eb4c['initDeviceInProgress']=!![],navigator[_0x3f55d9('0x1820')]['getUserMedia']({'audio':!![]})[_0x3f55d9('0xaa5')](function(_0x548251){var _0x271373=_0x3f55d9;return _0x548251[_0x271373('0x168')]()[_0x271373('0x15b5')](function(_0x460cbe){_0x460cbe['stop']();}),navigator[_0x271373('0x1820')]['enumerateDevices']();})['then'](function(_0x54c146){var _0x42165e=_0x3f55d9,_0x100c92=_0x51538b()[_0x42165e('0xdb7')](_0x54c146,function(_0x426a54){var _0x150b44=_0x42165e;return _0x426a54[_0x150b44('0x1b90')]===_0x150b44('0x977')&&_0x426a54[_0x150b44('0x2762')]!==_0x150b44('0x449')&&_0x426a54[_0x150b44('0x2762')]!==_0x150b44('0x1eb6');});if(_0x100c92[_0x42165e('0x2587')]>0x0){var _0x576417=_0x51538b()[_0x42165e('0xe9e')](_0x54c146,function(_0x4f78db){var _0x40b33a=_0x42165e;return _0x4f78db[_0x40b33a('0x2762')]==='default'&&_0x4f78db['kind']===_0x40b33a('0x977');});_0x1971fc=_0x51538b()['find'](_0x100c92,function(_0x5f3817){var _0x14737c=_0x42165e;return _0x5f3817[_0x14737c('0x1540')]===_0x576417['groupId'];});if(_0x34eb4c[_0x42165e('0x2708')][_0x42165e('0x69d')]&&!_0x55d858){var _0x37d522=_0x51538b()[_0x42165e('0xe9e')](_0x100c92,function(_0x2e1fc7){var _0x21086b=_0x42165e;return _0x2e1fc7[_0x21086b('0x2762')]===_0x34eb4c[_0x21086b('0x2708')][_0x21086b('0x69d')];});_0x37d522&&(_0x1971fc=_0x37d522);}_0x34eb4c[_0x42165e('0x2708')][_0x42165e('0x69d')]=_0x1971fc[_0x42165e('0x2762')];}else _0xf254bc[_0x42165e('0x3a')]({'title':_0x5b86a3[_0x42165e('0x213f')]('TOOLBAR.WARNING'),'msg':_0x5b86a3[_0x42165e('0x213f')](_0x42165e('0x1c9')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x42165e('0x1fec')});_0x34eb4c[_0x42165e('0x2708')][_0x42165e('0x69d')]?_0x34eb4c[_0x42165e('0x1b7a')][_0x42165e('0x1c13')]['audio']={'deviceId':_0x34eb4c[_0x42165e('0x2708')][_0x42165e('0x69d')]}:_0x34eb4c['sessionConf'][_0x42165e('0x1c13')]['audio']=!![];_0x41aa89(_0x42165e('0x16cd'),![]);var _0xf7ddae=_0x51538b()['filter'](_0x54c146,function(_0x11cec4){var _0x5dfea0=_0x42165e;return _0x11cec4[_0x5dfea0('0x1b90')]===_0x5dfea0('0x9fb')&&_0x11cec4[_0x5dfea0('0x2762')]!==_0x5dfea0('0x449')&&_0x11cec4[_0x5dfea0('0x2762')]!==_0x5dfea0('0x1eb6');});if(_0xf7ddae[_0x42165e('0x2587')]>0x0){var _0x874e3e=_0x51538b()[_0x42165e('0xe9e')](_0x54c146,function(_0x10a8d2){var _0xea1389=_0x42165e;return _0x10a8d2[_0xea1389('0x2762')]===_0xea1389('0x449')&&_0x10a8d2[_0xea1389('0x1b90')]===_0xea1389('0x9fb');});_0x4e2081=_0x51538b()[_0x42165e('0xe9e')](_0xf7ddae,function(_0x32a3d1){var _0x19b5f3=_0x42165e;return _0x32a3d1[_0x19b5f3('0x1540')]===_0x874e3e[_0x19b5f3('0x1540')];}),_0x1dde6f=_0x4e2081;if(_0x34eb4c['conf'][_0x42165e('0x1849')]&&!_0x55d858){var _0x21d9ce=_0x51538b()['find'](_0xf7ddae,function(_0xee79c2){var _0xe95558=_0x42165e;return _0xee79c2['deviceId']===_0x34eb4c[_0xe95558('0x2708')][_0xe95558('0x1849')];});_0x21d9ce&&(_0x1dde6f=_0x21d9ce);}_0x34eb4c[_0x42165e('0x2708')]['speakerId']=_0x1dde6f['deviceId'];if(_0x34eb4c['conf'][_0x42165e('0x80b')]&&!_0x55d858){var _0x377b2a=_0x51538b()[_0x42165e('0xe9e')](_0xf7ddae,function(_0x25eab5){var _0x7ad0b2=_0x42165e;return _0x25eab5[_0x7ad0b2('0x2762')]===_0x34eb4c[_0x7ad0b2('0x2708')][_0x7ad0b2('0x80b')];});_0x377b2a&&(_0x4e2081=_0x377b2a);}_0x34eb4c['conf'][_0x42165e('0x80b')]=_0x4e2081[_0x42165e('0x2762')];}else _0xf254bc[_0x42165e('0x3a')]({'title':_0x5b86a3[_0x42165e('0x213f')]('TOOLBAR.WARNING'),'msg':_0x5b86a3[_0x42165e('0x213f')](_0x42165e('0x25fe')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});return _0x41aa89('speaker',![]);})[_0x3f55d9('0xaa5')](function(){var _0x4a61fe=_0x3f55d9;return _0x41aa89(_0x4a61fe('0xb02'),![]);})['then'](function(){var _0x3efa47=_0x3f55d9;if(_0x6bdf3f)return _0x6bdf3f[_0x3efa47('0x2e')]()[_0x3efa47('0xaa5')](function(){var _0x1d3311=_0x3efa47;return _0x34eb4c[_0x1d3311('0x11ca')]=!![],_0x6bdf3f['getInstallInfo']();})[_0x3efa47('0xaa5')](function(){var _0x22d4f8=_0x3efa47;return _0x6bdf3f[_0x22d4f8('0x2125')]();})['then'](function(_0x212e40){var _0x20c4e7=_0x3efa47;_0x1971fc&&_0x1dde6f&&_0x4e2081&&_0x212e40&&(_0x51538b()[_0x20c4e7('0x13d6')]([_0x1971fc[_0x20c4e7('0x1540')],_0x1dde6f[_0x20c4e7('0x1540')],_0x4e2081[_0x20c4e7('0x1540')]],_0x212e40[_0x20c4e7('0x1653')][_0x20c4e7('0x1a02')])&&(console[_0x20c4e7('0x18d5')]('Jabra\x20library\x20correctly\x20initialized\x20and\x20device\x20correctly\x20installed'),_0x34eb4c[_0x20c4e7('0x2181')]=!![],_0x6bdf3f[_0x20c4e7('0x11c8')](),_0x6bdf3f[_0x20c4e7('0x427')](_0x20c4e7('0x1ffb'),_0x199927[_0x20c4e7('0x1f46')](this)),_0x6bdf3f[_0x20c4e7('0x427')](_0x20c4e7('0x1d46'),_0x544d51[_0x20c4e7('0x1f46')](this)),_0x6bdf3f['addEventListener']('unmute',_0x416685[_0x20c4e7('0x1f46')](this)),_0x6bdf3f[_0x20c4e7('0x427')](_0x20c4e7('0x22f5'),_0xc83c23[_0x20c4e7('0x1f46')](this)),_0x6bdf3f[_0x20c4e7('0x427')](_0x20c4e7('0x20b9'),_0x276189[_0x20c4e7('0x1f46')](this))));})[_0x3efa47('0x253d')](function(_0x1506e4){console['warn']('Error\x20initializing\x20Jabra\x20integration',_0x1506e4);});})[_0x3f55d9('0x253d')](function(_0x412716){var _0x2c3669=_0x3f55d9;console[_0x2c3669('0x187f')]('Unable\x20to\x20init\x20media\x20devices',_0x412716),_0x412716[_0x2c3669('0x25d6')]===_0x2c3669('0xbb2')&&_0xf254bc[_0x2c3669('0x3a')]({'title':_0x5b86a3[_0x2c3669('0x213f')](_0x2c3669('0x6ef')),'msg':_0x5b86a3[_0x2c3669('0x213f')](_0x2c3669('0xd47')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x2c3669('0x1fec')});})[_0x3f55d9('0x1889')](function(){var _0x13969a=_0x3f55d9;_0x34eb4c['initDeviceInProgress']=![],_0x213e7d(),_0x4f7b72()[_0x13969a('0x259c')](_0x4e70e6['bind'](this));});}function _0x199927(_0x22f969){var _0x27b7fb=_0x31f554,_0x376b54=_0x51538b()[_0x27b7fb('0x23f4')](_0x34eb4c[_0x27b7fb('0x16fc')]);_0x376b54?_0x376b54[_0x27b7fb('0x1108')]===_0x27b7fb('0xa90')&&_0x376b54[_0x27b7fb('0x11a7')]()?_0x34eb4c[_0x27b7fb('0x1ba2')](_0x376b54):console[_0x27b7fb('0x187f')](_0x27b7fb('0x26be'),_0x22f969):console[_0x27b7fb('0x187f')](_0x27b7fb('0x22e8'),_0x22f969);}function _0x544d51(){var _0x4091b2=_0x31f554;_0x34eb4c[_0x4091b2('0x2708')]['microphoneMute']=!![],_0x41aa89(_0x4091b2('0x16cd'),!![]);}function _0x416685(){var _0x5ade4a=_0x31f554;_0x34eb4c['conf'][_0x5ade4a('0x4e6')]=![],_0x41aa89(_0x5ade4a('0x16cd'),!![]);}function _0xc83c23(){var _0x3ece56=_0x31f554;_0x34eb4c[_0x3ece56('0x2818')][_0x3ece56('0x1c1a')]?_0x34eb4c[_0x3ece56('0x1fd0')](_0x34eb4c[_0x3ece56('0x2818')]):_0x34eb4c[_0x3ece56('0x2245')](_0x34eb4c['jabraSession']);}function _0x276189(){var _0x2d793b=_0x31f554;_0x32afd6()[_0x2d793b('0xaa5')](function(_0x5ec67a){var _0x2599a4=_0x2d793b;_0x5ec67a!==null&&_0x34eb4c[_0x2599a4('0x124a')](_0x5ec67a);});}function _0x213e7d(){var _0x214b68=_0x31f554;_0x19644b[_0x214b68('0x2834')]=_0x51538b()[_0x214b68('0x104e')](_0x34eb4c[_0x214b68('0x2708')],_0x26a706),_0x325552[_0x214b68('0x38e')][_0x214b68('0xdbf')]('motion2.user:'+_0x34eb4c[_0x214b68('0x2708')]['id'],JSON[_0x214b68('0xa48')](_0x19644b));}function _0x1a0c96(){var _0x3bfa06=_0x31f554;this[_0x3bfa06('0x28')]=!![];}function _0x56d238(){this['registered']=![];}function _0x4e70e6(){var _0x305f49=_0x31f554;_0x34eb4c[_0x305f49('0x2708')]['hasMicrophone']=_0x4f7b72()[_0x305f49('0x21f3')],_0x34eb4c[_0x305f49('0x2708')][_0x305f49('0x343')]=_0x4f7b72()[_0x305f49('0xa39')]['name']===_0x305f49('0x1de8')||_0x4f7b72()[_0x305f49('0xa39')][_0x305f49('0x25d6')]===_0x305f49('0x102c')||_0x4f7b72()['browser'][_0x305f49('0x25d6')]===_0x305f49('0x1909')?_0x4f7b72()[_0x305f49('0x343')]:!![],_0x34eb4c[_0x305f49('0x2708')][_0x305f49('0x1d3b')]=_0x4f7b72()[_0x305f49('0x1d3b')],_0x34eb4c[_0x305f49('0x2708')]['osName']=_0x4f7b72()[_0x305f49('0x129c')],_0x34eb4c[_0x305f49('0x2708')][_0x305f49('0x67e')]=_0x4f7b72()['osVersion'],_0x34eb4c[_0x305f49('0x2708')]['browserName']=_0x4f7b72()[_0x305f49('0xa39')]['name'],_0x34eb4c['conf']['browserVersion']=_0x4f7b72()['browser'][_0x305f49('0x2678')];if(_0x9c714f())!_0x34eb4c[_0x305f49('0x1a91')]&&_0x34eb4c['ua']['start']();else!_0x34eb4c[_0x305f49('0x2708')]['license']&&_0xf254bc[_0x305f49('0x3a')]({'title':_0x5b86a3['instant'](_0x305f49('0x6ef')),'msg':_0x5b86a3[_0x305f49('0x213f')](_0x305f49('0xdac')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x305f49('0x1fec')});}function _0x9c714f(){var _0x8c4988=_0x31f554;return _0x34eb4c[_0x8c4988('0x2708')][_0x8c4988('0x1202')]&&_0x34eb4c[_0x8c4988('0x2708')]['isWebRTCSupported']&&_0x34eb4c[_0x8c4988('0x2708')][_0x8c4988('0x21f3')]&&_0x34eb4c['conf']['hasSpeakers']&&_0x34eb4c[_0x8c4988('0x2708')]['protocol']===_0x8c4988('0x27d4')&&_0x19b285();}function _0x19b285(){var _0x2bf222=_0x31f554;return _0x34eb4c['conf'][_0x2bf222('0xc08')]['toLowerCase']()===_0x2bf222('0x1b32')||_0x34eb4c['conf'][_0x2bf222('0xc08')][_0x2bf222('0xcf6')]()===_0x2bf222('0xdd6')||_0x34eb4c[_0x2bf222('0x2708')]['browserName']['toLowerCase']()===_0x2bf222('0x8f5');}function _0x335953(_0x4f68a6){var _0x29c657=_0x31f554;console[_0x29c657('0x84c')](_0x29c657('0x24b5'),_0x4f68a6);var _0x51c147=_0x4f68a6[_0x29c657('0x2001')],_0x493f28=!![],_0x5530ac='',_0x1ee147=0x0,_0x1175ef;switch(_0x4f68a6[_0x29c657('0x2244')]){case _0x29c657('0x4b'):{_0x51c147[_0x29c657('0x1121')]=!![],_0x51c147['name']=_0x4f68a6[_0x29c657('0x1799')][_0x29c657('0x3ac')]['user'],_0x51c147[_0x29c657('0x272b')]=_0x4f68a6[_0x29c657('0x1799')][_0x29c657('0x3ac')]['user'],_0x139a38(_0x51c147[_0x29c657('0x272b')],![]);var _0x4bb522='X-callback-url';_0x1175ef=_0x1a3e6e(_0x4f68a6[_0x29c657('0x1799')][_0x29c657('0x5bd')],_0x4bb522),_0x34eb4c[_0x29c657('0x2181')]&&(_0x34eb4c[_0x29c657('0x2818')]&&_0x6bdf3f[_0x29c657('0x3d9')](),_0x34eb4c[_0x29c657('0x2818')]=_0x51c147,_0x6bdf3f[_0x29c657('0x22f0')]());}break;case'remote':{var _0x5b8f47=_0x1f461c[_0x29c657('0xacc')]();if(_0x5b8f47['voicePause']&&_0x5b8f47[_0x29c657('0x24b3')]||_0x34eb4c['originateInProgress'])_0x493f28=![];else{_0x51c147[_0x29c657('0xa90')]=!![],_0x51c147[_0x29c657('0x25d6')]=_0x4f68a6['request']['from'][_0x29c657('0x191e')],_0x51c147[_0x29c657('0x272b')]=_0x4f68a6[_0x29c657('0x1799')]['from'][_0x29c657('0x639')][_0x29c657('0x272b')],_0x5530ac=_0x4f68a6['request'][_0x29c657('0x8ab')](_0x29c657('0x1157'))||'',_0x1ee147=_0x4f68a6['request']['getHeader'](_0x29c657('0xedf'))||0x0,_0x1f1431(_0x4f68a6[_0x29c657('0x2001')]),_0x139a38(_0x4f68a6['session'][_0x29c657('0x272b')],!![]);_0x34eb4c[_0x29c657('0x2181')]&&_0x6bdf3f[_0x29c657('0x1ec1')]();_0x34eb4c['conf'][_0x29c657('0x18ec')]&&_0x42f859(function(){var _0x407e5c=_0x29c657;_0x51c147[_0x407e5c('0x11a7')]()&&(_0x51c147[_0x407e5c('0x18ec')]=!![],_0x609359(_0x51c147));},_0x34eb4c[_0x29c657('0x2708')]['autoAnswerDelay']?_0x34eb4c[_0x29c657('0x2708')][_0x29c657('0x1807')]*0x3e8:0x0);console[_0x29c657('0x84c')]('xAnswerMode',_0x5530ac),console[_0x29c657('0x84c')]('xAnswerAfterSec',_0x1ee147);if(_0x5530ac[_0x29c657('0xcf6')]()==_0x29c657('0x1afc')){var _0x3a5a88=_0x1ee147==0x0?0x1f4:_0x1ee147*0x3e8;console[_0x29c657('0x84c')](_0x29c657('0x11af')+_0x3a5a88+_0x29c657('0x1549')),_0x42f859(function(){var _0x42652b=_0x29c657;_0x51c147[_0x42652b('0x11a7')]()&&(_0x51c147[_0x42652b('0x18ec')]=!![],_0x609359(_0x51c147));},_0x3a5a88);}}break;}default:}_0x493f28?(_0x51c147[_0x29c657('0x1e9')]=_0x4f68a6[_0x29c657('0x1799')]['call_id'],_0x1175ef&&(_0x34eb4c[_0x29c657('0x1f0b')][_0x51c147[_0x29c657('0x1e9')]]=_0x1175ef,_0x59d619(_0x1175ef,{'call_id':_0x51c147['call_id']})[_0x29c657('0xaa5')](function(){var _0x43a547=_0x29c657;console[_0x43a547('0x18d5')]('callbackurl:\x22'+_0x1175ef+_0x43a547('0x1ee6'));})[_0x29c657('0x253d')](function(_0x37b9b3){var _0x10a633=_0x29c657;console[_0x10a633('0x18d5')](_0x10a633('0x213a')+_0x1175ef+_0x10a633('0x1209'),_0x37b9b3);})),_0x51c147[_0x29c657('0x1be4')]&&(_0x51c147[_0x29c657('0x1be4')][_0x29c657('0x360')]=_0x2c342f[_0x29c657('0x1f46')](this)),_0x51c147[_0x29c657('0x22bf')]=null,_0x51c147['on'](_0x29c657('0x20e1'),_0x2e3b37[_0x29c657('0x1f46')](this,_0x51c147)),_0x51c147['on'](_0x29c657('0x425'),_0xbdcefd[_0x29c657('0x1f46')](this,_0x51c147)),_0x51c147['on'](_0x29c657('0x2245'),_0x2416f2[_0x29c657('0x1f46')](this,_0x51c147)),_0x51c147['on'](_0x29c657('0x1fd0'),_0x3a7727['bind'](this,_0x51c147)),_0x51c147['on'](_0x29c657('0x187a'),_0x367367[_0x29c657('0x1f46')](this,_0x51c147)),_0x51c147['on'](_0x29c657('0x40c'),_0x29792b['bind'](this,_0x51c147)),_0x51c147['on']('icecandidate',_0x49a3f0[_0x29c657('0x1f46')](this,_0x51c147)),_0x34eb4c['sessions'][_0x29c657('0x1599')](_0x51c147),_0x42f859(function(){var _0x317654=_0x29c657;_0x22cb69['$apply'](),console[_0x317654('0x84c')](_0x317654('0x7be'),_0x34eb4c[_0x317654('0x16fc')]);})):_0x5e25ef(_0x51c147,0x1e6);}function _0x139a38(_0x45b128,_0xf1a83c,_0x31750d){var _0x2eec93=_0x31f554;console[_0x2eec93('0x84c')](_0x2eec93('0x11b8'),_0x45b128,_0xf1a83c,_0x31750d),_0x34eb4c['calls'][_0x2eec93('0x6ee')]({'target':_0x45b128,'fullname':_0x31750d||_0x45b128,'inbound':_0xf1a83c,'time':_0x420d43()()[_0x2eec93('0x1f27')](_0x2eec93('0x16'))}),_0x34eb4c[_0x2eec93('0x2109')][_0x2eec93('0x2587')]>0x32&&_0x34eb4c[_0x2eec93('0x2109')]['pop']();}function _0x1f1431(_0x52800f){var _0x4d7f9a=_0x31f554;console[_0x4d7f9a('0x84c')]('getNotification\x20->\x20session',_0x52800f);var _0xf031e4=_0x52800f['name']?_0x52800f[_0x4d7f9a('0x25d6')]+'\x20<'+_0x52800f[_0x4d7f9a('0x272b')]+'>':_0x52800f[_0x4d7f9a('0x272b')];_0x53cb3b[_0x4d7f9a('0x2836')](_0x4d7f9a('0x1ef3'),_0xf031e4,null,function(){_0x609359(_0x52800f);},function(){_0x5e25ef(_0x52800f);})[_0x4d7f9a('0xaa5')](function(_0x3ea52b){var _0x303558=_0x4d7f9a;_0x52800f[_0x303558('0xaac')]=_0x3ea52b;})[_0x4d7f9a('0x253d')](function(_0x429c79){var _0x1ac378=_0x4d7f9a;console[_0x1ac378('0x187f')](_0x1ac378('0xff1'),_0x429c79);});}function _0x609359(_0x144c4d){var _0x5d305e=_0x31f554;console[_0x5d305e('0x84c')]('answer\x20->\x20session',_0x144c4d),_0x34eb4c['conf'][_0x5d305e('0x69d')]?_0x34eb4c[_0x5d305e('0x1b7a')]['mediaConstraints'][_0x5d305e('0xb59')]={'deviceId':_0x34eb4c['conf'][_0x5d305e('0x69d')]}:_0x34eb4c[_0x5d305e('0x1b7a')][_0x5d305e('0x1c13')]['audio']=!![],_0x144c4d[_0x5d305e('0x1ba2')](_0x34eb4c[_0x5d305e('0x1b7a')]),_0x34eb4c[_0x5d305e('0x2181')]&&(_0x6bdf3f[_0x5d305e('0x22f0')](),_0x34eb4c[_0x5d305e('0x2818')]=_0x144c4d);}function _0x5e25ef(_0x129055,_0x54da32){var _0x2ebfb0=_0x31f554;console[_0x2ebfb0('0x84c')](_0x2ebfb0('0x1fa8'),_0x129055);var _0x100fbe={};if(_0x54da32)_0x100fbe['status_code']=_0x54da32;else!_0x129055[_0x2ebfb0('0x16f0')]()&&(_0x100fbe['status_code']=0x25b);_0x129055[_0x2ebfb0('0x124a')](_0x100fbe);if(_0x34eb4c[_0x2ebfb0('0x2181')]){if(_0x34eb4c[_0x2ebfb0('0x16fc')][_0x2ebfb0('0x2587')]===0x0)_0x129055[_0x2ebfb0('0x1c1a')]&&_0x6bdf3f[_0x2ebfb0('0x3d9')](),_0x6bdf3f[_0x2ebfb0('0x11c8')](),_0x34eb4c[_0x2ebfb0('0x2818')]=null;else{var _0x2d092b=_0x51538b()['last'](_0x34eb4c[_0x2ebfb0('0x16fc')]);_0x2d092b['localHold']?(_0x6bdf3f[_0x2ebfb0('0x11c8')](),_0x6bdf3f[_0x2ebfb0('0x2245')](),_0x34eb4c[_0x2ebfb0('0x2818')]=_0x2d092b):_0x6bdf3f[_0x2ebfb0('0x22f0')]();}}}function _0x2e3b37(_0x145924,_0x4d4230){var _0xf3c440=_0x31f554;console[_0xf3c440('0x84c')](_0xf3c440('0x17a4'),_0x145924,_0x4d4230);var _0x12cbe1=![];switch(_0x4d4230['originator']){case _0xf3c440('0x4b'):!this[_0xf3c440('0x2708')][_0xf3c440('0x19ca')]&&(this['soundPlayer'][_0xf3c440('0x107b')](_0xf3c440('0x1d7a'),_0xf3c440('0xe31')),_0x12cbe1=!![]);break;case _0xf3c440('0xd72'):this[_0xf3c440('0x1962')](_0x145924),this[_0xf3c440('0x1df2')]['setAttribute'](_0xf3c440('0x1d7a'),_0xf3c440('0x2060')),_0x12cbe1=!![];break;}_0x34eb4c[_0xf3c440('0x1358')]&&(_0x34eb4c[_0xf3c440('0x1358')]=![]),_0x12cbe1&&(this[_0xf3c440('0x1df2')]['loop']=_0xf3c440('0x66d'),this[_0xf3c440('0x1df2')]['play']()[_0xf3c440('0x253d')](function(_0x95998d){var _0xb841b2=_0xf3c440;console[_0xb841b2('0x18d5')](_0x95998d[_0xb841b2('0x1402')]);})),_0x48ce72(_0x145924)[_0xf3c440('0xaa5')](function(){var _0x24a8b8=_0xf3c440,_0x45cb34=_0x34eb4c[_0x24a8b8('0x1f0b')][_0x145924[_0x24a8b8('0x1e9')]];_0x45cb34&&_0x59d619(_0x45cb34,{'uniqueid':_0x145924[_0x24a8b8('0x1a6')],'call_id':_0x145924[_0x24a8b8('0x1e9')],'number_called':_0x145924[_0x24a8b8('0x272b')]})[_0x24a8b8('0xaa5')](function(){var _0x263e62=_0x24a8b8;console['log'](_0x263e62('0x19a2')+_0x45cb34+_0x263e62('0x1ee6'));})['catch'](function(_0x4d88de){var _0x3ec805=_0x24a8b8;console[_0x3ec805('0x18d5')](_0x3ec805('0x213a')+_0x45cb34+'\x22\x20err:',_0x4d88de);})[_0x24a8b8('0x1889')](function(){var _0x2dce09=_0x24a8b8;delete _0x34eb4c[_0x2dce09('0x1f0b')][_0x145924[_0x2dce09('0x1e9')]];});})[_0xf3c440('0x253d')](function(_0x589191){console['error']('Unable\x20to\x20retrieve\x20voice\x20channels',_0x589191);});}function _0x48ce72(_0x1541ba){var _0x57afb9=_0x31f554;return console[_0x57afb9('0x84c')]('getVoiceChannels\x20->\x20session',_0x1541ba),_0x10c292[_0x57afb9('0xb5d')][_0x57afb9('0x1813')]()[_0x57afb9('0x1dc2')][_0x57afb9('0xaa5')](function(_0x369565){var _0x5cb9f5=_0x57afb9,_0x461fb5=_0x51538b()['find'](_0x369565['rows'],function(_0x5b6598){var _0x3262d2=a0_0x1149;if(_0x5b6598['sipcalllinkedid']===_0x1541ba[_0x3262d2('0x1e9')])return _0x5b6598;if(_0x5b6598[_0x3262d2('0x2841')]===_0x1541ba[_0x3262d2('0x1e9')])return _0x5b6598;return null;});_0x461fb5&&(_0x1541ba[_0x5cb9f5('0x841')]=_0x461fb5[_0x5cb9f5('0x841')],_0x1541ba[_0x5cb9f5('0x1a6')]=_0x461fb5[_0x5cb9f5('0x1a6')],_0x1541ba['monitors']=_0x461fb5[_0x5cb9f5('0x873')]);return;});}function _0xbdcefd(_0x343b4c,_0x1b3be3){var _0x349804=_0x31f554;console[_0x349804('0x84c')]('onConfirmed\x20->\x20session,\x20data',_0x343b4c,_0x1b3be3);var _0x15ba3b=document[_0x349804('0x781')](_0x349804('0x7f5')+_0x343b4c['id']['substr'](0x0,0x20));_0x15ba3b&&$(_0x15ba3b)[_0x349804('0x165')]()[_0x349804('0xd1')](_0x349804('0x180f')),_0x343b4c['confirmed']=!![],_0x1b3be3['originator']===_0x349804('0xd72')&&_0x343b4c[_0x349804('0x1be4')]&&(_0x343b4c['connection']['onaddstream']=_0x2c342f[_0x349804('0x1f46')](this),_0x51538b()[_0x349804('0x19da')](_0x343b4c['connection'][_0x349804('0x27ea')]())&&(this[_0x349804('0x239f')]['srcObject']=_0x51538b()[_0x349804('0x19da')](_0x343b4c[_0x349804('0x1be4')][_0x349804('0x27ea')]()),this['remotePlayer']['play']())),this[_0x349804('0x1df2')][_0x349804('0x167c')](),this[_0x349804('0x1df2')][_0x349804('0x66d')]=null,this[_0x349804('0x1962')](_0x343b4c),_0x343b4c[_0x349804('0x18ec')]&&(this[_0x349804('0x1df2')][_0x349804('0x107b')](_0x349804('0x1d7a'),'app/core/directives/ms-phonebar/sounds/beep.ogg'),this['soundPlayer'][_0x349804('0x1597')]()['catch'](function(_0x2dc531){var _0x16f31e=_0x349804;console[_0x16f31e('0x18d5')](_0x16f31e('0xd37'),_0x2dc531);})),_0x34eb4c['canGoInConference']=_0x34eb4c['sessions'][_0x349804('0x2587')]==0x2,_0x48ce72(_0x343b4c)['catch'](function(_0x2c9c8f){var _0x1ea8f4=_0x349804;console[_0x1ea8f4('0x187f')](_0x1ea8f4('0x18c4'),_0x2c9c8f);});}function _0x2c342f(_0x10f176){var _0x2c2305=_0x31f554;console[_0x2c2305('0x84c')](_0x2c2305('0x1edc'),_0x10f176),this['remotePlayer']['srcObject']=_0x10f176['stream'],this['remotePlayer'][_0x2c2305('0x1597')]();}function _0x2416f2(_0xd70d0c,_0x28ad8e){var _0x131aba=_0x31f554;console[_0x131aba('0x84c')](_0x131aba('0xbd5'),_0xd70d0c,_0x28ad8e),_0x28ad8e[_0x131aba('0x2244')]===_0x131aba('0x4b')&&(_0xd70d0c[_0x131aba('0x1c1a')]=!![]);}function _0x3a7727(_0x1744d7,_0x10586d){var _0x5c5c4f=_0x31f554;console[_0x5c5c4f('0x84c')](_0x5c5c4f('0x2672'),_0x1744d7,_0x10586d),_0x10586d[_0x5c5c4f('0x2244')]===_0x5c5c4f('0x4b')&&(_0x1744d7['localHold']=![]);}function _0x367367(_0x3e42e6,_0x26008f){var _0x4ef7e7=_0x31f554;console[_0x4ef7e7('0x84c')](_0x4ef7e7('0x15b7'),_0x3e42e6,_0x26008f);_0x34eb4c['isInConference']&&(_0x51538b()['includes'](_0x34eb4c[_0x4ef7e7('0x100a')],_0x3e42e6['id'])&&(_0xa8e6dc(),_0x34eb4c[_0x4ef7e7('0x13e2')]=!![]));_0x51538b()[_0x4ef7e7('0xf6d')](this[_0x4ef7e7('0x16fc')],{'id':_0x3e42e6['id']});_0x34eb4c['sessions'][_0x4ef7e7('0x2587')]!==0x2&&(_0x34eb4c[_0x4ef7e7('0xa6f')]=![]);if(_0x34eb4c[_0x4ef7e7('0x2181')]){if(_0x34eb4c[_0x4ef7e7('0x16fc')][_0x4ef7e7('0x2587')]===0x0)_0x3e42e6[_0x4ef7e7('0x1c1a')]&&_0x6bdf3f[_0x4ef7e7('0x3d9')](),_0x6bdf3f[_0x4ef7e7('0x11c8')](),_0x34eb4c['jabraSession']=null;else{var _0x5ab6fb=_0x51538b()['last'](_0x34eb4c[_0x4ef7e7('0x16fc')]);_0x5ab6fb['localHold']?(_0x6bdf3f[_0x4ef7e7('0x11c8')](),_0x6bdf3f[_0x4ef7e7('0x2245')](),_0x34eb4c[_0x4ef7e7('0x2818')]=_0x5ab6fb):_0x6bdf3f[_0x4ef7e7('0x22f0')]();}}}function _0xa8e6dc(){var _0x34dabc=_0x31f554;_0x34eb4c[_0x34dabc('0xa6f')]=![],_0x34eb4c[_0x34dabc('0xb6e')]=![],_0x34eb4c[_0x34dabc('0x1cc7')]=[];}function _0x29792b(_0x286c91,_0x4d7a4b){var _0x115c55=_0x31f554;console[_0x115c55('0x84c')]('onFailed\x20->\x20session,\x20data',_0x286c91,_0x4d7a4b),this[_0x115c55('0x1df2')][_0x115c55('0x167c')](),this['soundPlayer']['loop']=null;_0x286c91['notification']&&_0x286c91[_0x115c55('0xaac')][_0x115c55('0x21d0')]();_0x34eb4c['isInConference']&&(_0x51538b()['includes'](_0x34eb4c[_0x115c55('0x100a')],_0x286c91['id'])&&_0xa8e6dc());_0x34eb4c['originateInProgress']&&(_0x34eb4c[_0x115c55('0x1358')]=![]);_0x51538b()[_0x115c55('0xf6d')](this['sessions'],{'id':_0x286c91['id']});_0x34eb4c[_0x115c55('0x16fc')]['length']!==0x2&&(_0x34eb4c[_0x115c55('0xa6f')]=![]);if(_0x34eb4c[_0x115c55('0x2181')]){if(_0x34eb4c[_0x115c55('0x16fc')][_0x115c55('0x2587')]===0x0)_0x286c91[_0x115c55('0x1c1a')]&&_0x6bdf3f[_0x115c55('0x3d9')](),_0x6bdf3f[_0x115c55('0x11c8')](),_0x34eb4c[_0x115c55('0x2818')]=null;else{var _0x450b26=_0x51538b()[_0x115c55('0x23f4')](_0x34eb4c[_0x115c55('0x16fc')]);_0x450b26[_0x115c55('0x1c1a')]?(_0x6bdf3f[_0x115c55('0x11c8')](),_0x6bdf3f[_0x115c55('0x2245')](),_0x34eb4c[_0x115c55('0x2818')]=_0x450b26):_0x6bdf3f['offHook']();}}}function _0x49a3f0(_0x2686e8,_0xcda67f){var _0x29a928=_0x31f554;console[_0x29a928('0x84c')](_0x29a928('0x232b'),_0x2686e8,_0xcda67f),_0x2686e8[_0x29a928('0x22bf')]!==null&&clearTimeout(_0x2686e8[_0x29a928('0x22bf')]),_0x2686e8['iceCandidateTimeout']=setTimeout(_0xcda67f['ready'],0x1*0x3e8);}function _0x4ecfe2(){var _0x3239e2=_0x31f554;_0x34eb4c[_0x3239e2('0x24b4')]=![];}function _0x540870(_0x37ebb,_0x1edb35){var _0x3043b9=_0x31f554,_0x1ace4e=_0x37ebb;!_0x34eb4c[_0x3043b9('0xe2e')]&&(_0x34eb4c[_0x3043b9('0xe2e')]='');_0x1edb35&&(_0x34eb4c[_0x3043b9('0xe2e')]+=_0x37ebb,_0x22cb69[_0x3043b9('0xd1')]('angucomplete-alt:changeInput','ms-target-wrap',_0x34eb4c[_0x3043b9('0xe2e')]));switch(_0x37ebb){case'*':_0x1ace4e=_0x3043b9('0x245f');break;case'#':_0x1ace4e='pound';break;default:}_0x34eb4c[_0x3043b9('0x2708')][_0x3043b9('0x1987')]&&(_0x34eb4c['soundPlayer'][_0x3043b9('0x107b')](_0x3043b9('0x1d7a'),_0x3043b9('0x635')+_0x1ace4e+_0x3043b9('0x25c5')),_0x34eb4c['soundPlayer']['play']()[_0x3043b9('0x253d')](function(_0xe3ce5b){var _0x3528f0=_0x3043b9;console[_0x3528f0('0x18d5')](_0xe3ce5b[_0x3528f0('0x1402')]);}));for(var _0x4187b5=0x0;_0x4187b5<_0x34eb4c[_0x3043b9('0x16fc')][_0x3043b9('0x2587')];_0x4187b5+=0x1){_0x34eb4c['sessions'][_0x4187b5][_0x3043b9('0x16f0')]()&&!_0x34eb4c[_0x3043b9('0x16fc')][_0x4187b5][_0x3043b9('0x130b')]()[_0x3043b9('0x4b')]&&_0x34eb4c[_0x3043b9('0x16fc')][_0x4187b5][_0x3043b9('0x188d')](_0x37ebb);}}function _0x41aa89(_0x3f634a,_0xd972cc){var _0x4d038d=_0x31f554;switch(_0x3f634a){case _0x4d038d('0xb02'):_0x34eb4c[_0x4d038d('0x1df2')][_0x4d038d('0x17c4')]=_0x34eb4c[_0x4d038d('0x2708')][_0x4d038d('0x19ca')];_0x34eb4c['conf'][_0x4d038d('0x80b')]&&_0x34eb4c['soundPlayer']['setSinkId'](_0x34eb4c[_0x4d038d('0x2708')][_0x4d038d('0x80b')])[_0x4d038d('0xaa5')](function(){var _0x10b9eb=_0x4d038d;_0x34eb4c[_0x10b9eb('0x1df2')][_0x10b9eb('0x845')]=_0x34eb4c[_0x10b9eb('0x2708')]['ringingVolume'];})[_0x4d038d('0xaa5')](function(){_0xd972cc&&_0x213e7d();})[_0x4d038d('0x253d')](function(_0x3f783f){var _0x5c007d=_0x4d038d;console['info'](_0x3f783f[_0x5c007d('0x1402')],_0x34eb4c[_0x5c007d('0x2708')][_0x5c007d('0x80b')]);});break;case _0x4d038d('0x1092'):_0x34eb4c[_0x4d038d('0x239f')][_0x4d038d('0x17c4')]=_0x34eb4c[_0x4d038d('0x2708')][_0x4d038d('0x1a69')];_0x34eb4c['conf'][_0x4d038d('0x1849')]&&_0x34eb4c[_0x4d038d('0x239f')][_0x4d038d('0x113')](_0x34eb4c[_0x4d038d('0x2708')][_0x4d038d('0x1849')])[_0x4d038d('0xaa5')](function(){var _0x54512f=_0x4d038d;_0x34eb4c['remotePlayer'][_0x54512f('0x845')]=_0x34eb4c[_0x54512f('0x2708')]['speakerVolume'];})[_0x4d038d('0xaa5')](function(){_0xd972cc&&_0x213e7d();})['catch'](function(_0x37fea4){var _0x3ac248=_0x4d038d;console[_0x3ac248('0x3a1')](_0x37fea4[_0x3ac248('0x1402')],_0x34eb4c[_0x3ac248('0x2708')][_0x3ac248('0x1849')]);});break;case _0x4d038d('0x16cd'):for(var _0x5ccca5=0x0;_0x5ccca5<_0x34eb4c[_0x4d038d('0x16fc')]['length'];_0x5ccca5+=0x1){_0x34eb4c['conf'][_0x4d038d('0x4e6')]?_0x34eb4c[_0x4d038d('0x16fc')][_0x5ccca5]['mute']():_0x34eb4c[_0x4d038d('0x16fc')][_0x5ccca5][_0x4d038d('0x1475')]();}_0x6bdf3f&&_0x34eb4c['isJabraEnabled']&&(_0x34eb4c[_0x4d038d('0x2708')][_0x4d038d('0x4e6')]?_0x6bdf3f['mute']():_0x6bdf3f['unmute']());_0xd972cc&&_0x213e7d();break;default:console[_0x4d038d('0x18d5')](_0x4d038d('0x1e1d'));}}function _0x1b09db(_0x527349){var _0x259ff0=_0x31f554;if(!_0x527349)_0x1ce07e();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/[_0x259ff0('0x42d')](_0x527349)?(_0x34eb4c['target']=_0x527349,_0x22cb69[_0x259ff0('0xd1')](_0x259ff0('0x4f6'),_0x259ff0('0x453'),_0x34eb4c[_0x259ff0('0xe2e')])):_0x34eb4c[_0x259ff0('0xe2e')]?_0x22cb69[_0x259ff0('0xd1')](_0x259ff0('0x4f6'),_0x259ff0('0x453'),_0x34eb4c[_0x259ff0('0xe2e')]):_0x1ce07e();}function _0x1ce07e(){var _0x365c31=_0x31f554;_0x34eb4c[_0x365c31('0xe2e')]='',document['getElementById'](_0x365c31('0xf6f'))[_0x365c31('0x8b7')](),document[_0x365c31('0x781')](_0x365c31('0xf6f'))[_0x365c31('0x12f4')]='',_0x22cb69[_0x365c31('0xd1')](_0x365c31('0x63'),_0x365c31('0x453'));}function _0x171573(_0x8e515c){var _0x2ec17f=_0x31f554;_0x8e515c&&(_0x34eb4c[_0x2ec17f('0xe2e')]=_0x8e515c['originalObject'][_0x2ec17f('0xe2e')],_0x34eb4c[_0x2ec17f('0x1432')](),_0x1ce07e());}function _0x401cad(){var _0x424466=_0x31f554;if(_0x34eb4c['target']&&_0x34eb4c['target']!==_0x34eb4c[_0x424466('0x2708')][_0x424466('0x25d6')]&&_0x34eb4c[_0x424466('0xe2e')]!==_0x34eb4c[_0x424466('0x2708')][_0x424466('0x1b0d')]){_0x34eb4c[_0x424466('0x2708')]['microphoneId']?_0x34eb4c['sessionConf'][_0x424466('0x1c13')][_0x424466('0xb59')]={'deviceId':_0x34eb4c['conf'][_0x424466('0x69d')]}:_0x34eb4c['sessionConf'][_0x424466('0x1c13')][_0x424466('0xb59')]=!![];var _0x45cba3=_0x34eb4c['target'][_0x424466('0x170d')](/ /g,'');return _0x45cba3=_0x45cba3['replace'](/\(/g,''),_0x45cba3=_0x45cba3[_0x424466('0x170d')](/\)/g,''),_0x3e4cad(_0x45cba3)[_0x424466('0xaa5')](function(_0x4b65f3){var _0x4e0a3=_0x424466;_0x4b65f3&&_0x34eb4c['ua'][_0x4e0a3('0x1432')](_0x4b65f3,_0x34eb4c['sessionConf']);})[_0x424466('0xaa5')](function(){_0x1ce07e();});}}function _0x3e4cad(_0x26da05){var _0x311eaf=_0x31f554;return _0x10c292[_0x311eaf('0x272b')]['getVoicePrefixes']({'id':_0x34eb4c[_0x311eaf('0x2708')]['id']})[_0x311eaf('0x1dc2')][_0x311eaf('0xaa5')](function(_0xe8a86c){var _0x10e0df=_0x311eaf;if(_0xe8a86c[_0x10e0df('0xd15')])return _0x1863c7[_0x10e0df('0x1e6d')]({'controller':_0x10e0df('0xb3c'),'controllerAs':'vm','templateUrl':_0x1b6920,'parent':angular[_0x10e0df('0x1aa8')](_0x183a48[_0x10e0df('0x54c')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0xe8a86c,'required':_0x34eb4c[_0x10e0df('0x2708')][_0x10e0df('0x721')]}});})[_0x311eaf('0xaa5')](function(_0x5f460f){var _0x571ab7=_0x311eaf;if(!_0x34eb4c[_0x571ab7('0x2708')]['phoneBarPrefixRequired']){if(_0x5f460f&&_0x5f460f!==-0x1)return _0x5f460f+_0x26da05;else{if(!_0x5f460f)return _0x26da05;}}else{if(_0x5f460f&&_0x5f460f!==-0x1)return _0x5f460f+_0x26da05;}});}function _0x30181c(_0x2d5036){var _0x449a4b=_0x31f554;switch(_0x2d5036[_0x449a4b('0x24ec')]['toLowerCase']()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x34eb4c[_0x449a4b('0x6c8')](_0x2d5036[_0x449a4b('0x24ec')]);break;case'enter':_0x34eb4c[_0x449a4b('0x1432')]();break;default:}}function _0x3d5ef7(){var _0x1773a7=_0x31f554;_0x34eb4c[_0x1773a7('0x24b4')]=!_0x34eb4c[_0x1773a7('0x24b4')];}_0x183a48['bind']('keyup',function(_0x367d9f){var _0x54a6b9=_0x31f554;switch(_0x367d9f[_0x54a6b9('0x8cb')]){case 0x1b:_0x42f859(function(){var _0x3a5b0c=_0x54a6b9;_0x34eb4c[_0x3a5b0c('0x24b4')]=![];});break;default:}});function _0x16abfd(){var _0x5364bf=_0x31f554;_0x34eb4c[_0x5364bf('0xb6e')]=!![],_0x34eb4c['canGoInConference']=![],_0x34eb4c[_0x5364bf('0x100a')]['push'](_0x34eb4c[_0x5364bf('0x16fc')][0x0]['id']),_0x34eb4c['currentConferenceSessions'][_0x5364bf('0x1599')](_0x34eb4c['sessions'][0x1]['id']);var _0x4ff381=_0x34eb4c[_0x5364bf('0x16fc')][0x0]['connection'][_0x5364bf('0xc27')]()[0x0],_0x5d6551=_0x34eb4c[_0x5364bf('0x16fc')][0x0][_0x5364bf('0x1be4')][_0x5364bf('0x12d7')]()[0x0];_0x5d6551[_0x5364bf('0xef9')][_0x5364bf('0x427')](_0x5364bf('0x1475'),function(){setTimeout(function(){_0x6d9aea();},0x3e8);},![]);var _0x1c0b6f=_0x34eb4c[_0x5364bf('0x16fc')][0x1][_0x5364bf('0x1be4')][_0x5364bf('0xc27')]()[0x0],_0x293015=_0x34eb4c[_0x5364bf('0x16fc')][0x1][_0x5364bf('0x1be4')][_0x5364bf('0x12d7')]()[0x0];_0x293015[_0x5364bf('0xef9')][_0x5364bf('0x427')](_0x5364bf('0x1475'),function(){setTimeout(function(){_0x6d9aea();},0x3e8);},![]),_0x34eb4c[_0x5364bf('0x16fc')][0x0]['unhold']({'useUpdate':![]}),_0x34eb4c[_0x5364bf('0x16fc')][0x1][_0x5364bf('0x1fd0')]({'useUpdate':![]}),_0x5d6551[_0x5364bf('0xef9')]['enabled']=!![],_0x293015['track'][_0x5364bf('0xbd3')]=!![];var _0x2ea62c=new MediaStream(),_0x48a421=new AudioContext(),_0x35214f=_0x48a421['createMediaStreamDestination'](),_0x4e4848=_0x48a421[_0x5364bf('0xd3')](new MediaStream([_0x293015['track']]));_0x4e4848['connect'](_0x35214f),_0x4e4848=_0x48a421[_0x5364bf('0xd3')](new MediaStream([_0x4ff381[_0x5364bf('0xef9')]])),_0x4e4848[_0x5364bf('0x16dc')](_0x35214f),_0x4ff381[_0x5364bf('0x59d')](_0x35214f['stream'][_0x5364bf('0x168')]()[0x0])['then'](function(){}),_0x35214f=_0x48a421[_0x5364bf('0x2d8')](),_0x4e4848=_0x48a421[_0x5364bf('0xd3')](new MediaStream([_0x5d6551['track']])),_0x4e4848['connect'](_0x35214f),_0x4e4848=_0x48a421['createMediaStreamSource'](new MediaStream([_0x1c0b6f[_0x5364bf('0xef9')]])),_0x4e4848['connect'](_0x35214f),_0x1c0b6f[_0x5364bf('0x59d')](_0x35214f['stream'][_0x5364bf('0x168')]()[0x0])[_0x5364bf('0xaa5')](function(){var _0x6f00f6=_0x5364bf;_0x2ea62c[_0x6f00f6('0x18b4')](_0x5d6551['track']),_0x2ea62c['addTrack'](_0x293015['track']);var _0x499a1b=document[_0x6f00f6('0x781')](_0x6f00f6('0xc7f'));_0x499a1b[_0x6f00f6('0x13fa')]=_0x2ea62c;var _0x2a3388=_0x499a1b[_0x6f00f6('0x1597')]();_0x2a3388!==undefined&&_0x2a3388[_0x6f00f6('0xaa5')](function(){})[_0x6f00f6('0x253d')](function(_0xc4674){var _0x42b1e5=_0x6f00f6;console[_0x42b1e5('0x18d5')](_0xc4674);});});}function _0x6d9aea(){var _0x44a210=_0x31f554;if(_0x34eb4c[_0x44a210('0xb6e')]){var _0xc6b767=_0x34eb4c[_0x44a210('0x16fc')][0x0]['connection'][_0x44a210('0x12d7')]()[0x0],_0x45fb71=_0x34eb4c['sessions'][0x1]['connection'][_0x44a210('0x12d7')]()[0x0],_0x2034c8=new MediaStream();_0x2034c8[_0x44a210('0x18b4')](_0xc6b767[_0x44a210('0xef9')]),_0x2034c8[_0x44a210('0x18b4')](_0x45fb71['track']);var _0x25f7c8=document[_0x44a210('0x781')]('remote-audio');_0x25f7c8[_0x44a210('0x13fa')]=_0x2034c8;var _0x42b762=_0x25f7c8[_0x44a210('0x1597')]();_0x42b762!==undefined&&_0x42b762['then'](function(){})[_0x44a210('0x253d')](function(_0x5c63ed){var _0x5d591b=_0x44a210;console[_0x5d591b('0x18d5')](_0x5c63ed);});}}function _0x2178e1(_0x1e9681){var _0x49493c=_0x31f554;console[_0x49493c('0x84c')](_0x49493c('0x1b1d'),_0x1e9681),_0x34eb4c[_0x49493c('0x1fd0')](_0x1e9681);}function _0x430188(_0x14e5a4){var _0x4988db=_0x31f554;console[_0x4988db('0x84c')](_0x4988db('0xe53'),_0x14e5a4),_0x14e5a4[_0x4988db('0x1fd0')]({'useUpdate':![]}),_0x34eb4c[_0x4988db('0x1962')](_0x14e5a4),_0x34eb4c[_0x4988db('0x2181')]&&(_0x6bdf3f[_0x4988db('0x22f0')](),_0x6bdf3f['resume']());}function _0x10885c(_0x1adbf2){var _0x172cce=_0x31f554;console[_0x172cce('0x84c')]('record\x20->\x20session',_0x1adbf2),_0x1863c7[_0x172cce('0x1e6d')]({'controller':_0x172cce('0x11f3'),'controllerAs':'vm','templateUrl':_0xad7a7b,'parent':angular[_0x172cce('0x1aa8')](_0x183a48[_0x172cce('0x54c')]),'clickOutsideToClose':!![],'locals':{'session':_0x1adbf2,'sessions':_0x34eb4c[_0x172cce('0x16fc')]}});}function _0x39d096(_0x3694d1){var _0x153b7d=_0x31f554;console[_0x153b7d('0x84c')](_0x153b7d('0xfd1'),_0x3694d1),_0x3694d1['hold']({'useUpdate':![]}),_0x34eb4c[_0x153b7d('0x2181')]&&(_0x6bdf3f[_0x153b7d('0x2245')](),_0x6bdf3f[_0x153b7d('0x11c8')]());}function _0x4b864d(_0x467fc9){var _0x2630d4=_0x31f554;console[_0x2630d4('0x84c')](_0x2630d4('0x417'),_0x467fc9);var _0x5e0112=_0x1863c7['prompt']()[_0x2630d4('0x110a')](_0x2630d4('0x18ad'))[_0x2630d4('0x447')]('Type\x20the\x20target')[_0x2630d4('0x674')]('Target')[_0x2630d4('0x5b5')]('Target')['ok'](_0x2630d4('0x18ad'))[_0x2630d4('0x2030')](_0x2630d4('0x9c6'));_0x1863c7[_0x2630d4('0x1e6d')](_0x5e0112)[_0x2630d4('0xaa5')](function(_0x569127){return _0x3e4cad(_0x569127);})[_0x2630d4('0xaa5')](function(_0x304874){var _0x208de2=_0x2630d4;_0x467fc9[_0x208de2('0x189f')](_0x304874,{'eventHandlers':{'requestSucceeded':_0x501af1(_0x467fc9,_0x208de2('0xe11'),'top\x20right',0xbb8),'requestFailed':_0x501af1(_0x467fc9,'requestFailed',_0x208de2('0xe1c'),0xbb8)}});});}function _0x501af1(_0x8f32e5,_0x4b420a,_0x51fe8b,_0x5d90ce){var _0x2c79f8=_0x31f554;return console['debug'](_0x2c79f8('0x2860'),_0x8f32e5,_0x4b420a,_0x51fe8b,_0x5d90ce),function(){var _0x1b6be5=_0x2c79f8;_0x36bf19['show'](_0x36bf19['simple']()[_0x1b6be5('0x447')](_0x4b420a)['position'](_0x51fe8b)[_0x1b6be5('0x11e5')](_0x5d90ce)),_0x5e25ef(_0x8f32e5);};}function _0xc7bd64(_0x48eb2b){var _0x57b320=_0x31f554;console[_0x57b320('0x84c')]('referAttended\x20->\x20session',_0x48eb2b),_0x1863c7['show']({'controller':_0x57b320('0x181c'),'controllerAs':'vm','templateUrl':_0x30fa38,'parent':angular['element'](_0x183a48[_0x57b320('0x54c')]),'clickOutsideToClose':!![],'locals':{'session':_0x48eb2b,'sessions':_0x51538b()['reject'](_0x34eb4c[_0x57b320('0x16fc')],{'id':_0x48eb2b['id']}),'isJabraEnabled':_0x34eb4c[_0x57b320('0x2181')]}});}function _0x487753(_0x4f88fc){var _0x29c334=_0x31f554;console[_0x29c334('0x84c')](_0x29c334('0x2765'),_0x4f88fc);if(_0x34eb4c[_0x29c334('0x16fc')][_0x29c334('0x2587')]>0x1)for(var _0x804c1f=0x0;_0x804c1f<_0x34eb4c[_0x29c334('0x16fc')][_0x29c334('0x2587')];_0x804c1f+=0x1){_0x34eb4c['sessions'][_0x804c1f]['id']!==_0x4f88fc['id']&&!_0x34eb4c[_0x29c334('0x16fc')][_0x804c1f]['isOnHold']()[_0x29c334('0xd72')]&&_0x34eb4c['sessions'][_0x804c1f][_0x29c334('0x2245')]({'useUpdate':![]});}}function _0x3d49dd(_0x510de8){var _0x2ffcb6=_0x31f554;_0x1863c7[_0x2ffcb6('0x1e6d')]({'controller':_0x2ffcb6('0x10cb'),'controllerAs':'vm','templateUrl':_0x1ba200,'parent':angular[_0x2ffcb6('0x1aa8')](_0x183a48[_0x2ffcb6('0x54c')]),'targetEvent':_0x510de8,'clickOutsideToClose':!![],'resolve':{'devices':function _0x2907ac(){return navigator['mediaDevices']['enumerateDevices']();}},'locals':{'conf':_0x34eb4c['conf']}})['then'](function(_0x5834cc){var _0x17def4=_0x2ffcb6;_0x5834cc&&(_0x34eb4c[_0x17def4('0x2708')]=_0x5834cc,!_0x34eb4c[_0x17def4('0x17eb')]&&(_0x34eb4c['initDeviceInProgress']=!![],_0x6bdf3f&&_0x34eb4c['isJabraInitialized']?_0x6bdf3f[_0x17def4('0x10cd')]()['then'](function(){var _0x3bf657=_0x17def4;_0x34eb4c['isJabraInitialized']=![],_0x34eb4c[_0x3bf657('0x2181')]=![],_0x3bde1f(![]);})[_0x17def4('0x253d')](function(_0x59b20f){var _0x7c5bc1=_0x17def4;console['error'](_0x7c5bc1('0xaa3'),_0x59b20f);}):_0x3bde1f(![])));});}function _0x7de4bc(){var _0x139f95=_0x31f554;_0x34eb4c['ua'][_0x139f95('0xfb0')](),_0x6bdf3f&&_0x34eb4c['isJabraInitialized']&&_0x6bdf3f[_0x139f95('0x10cd')](),navigator[_0x139f95('0x1820')][_0x139f95('0x15a5')]=function(){};}function _0xff31ae(_0x3f73f9,_0x453c9f){var _0x18d8b6=_0x31f554;console['debug'](_0x18d8b6('0x2074'),_0x3f73f9,_0x453c9f),_0x453c9f[_0x18d8b6('0xe2e')]&&(_0x34eb4c[_0x18d8b6('0xe2e')]=_0x453c9f[_0x18d8b6('0xe2e')],_0x34eb4c[_0x18d8b6('0x1432')]());}function _0x28b14b(_0x12ab46,_0x3a3280){var _0x28d985=_0x31f554;console[_0x28d985('0x84c')](_0x28d985('0x279'),_0x12ab46,_0x3a3280);if(_0x3a3280[_0x28d985('0xe2e')]){var _0xb3981c=function _0x59bb0a(_0x4d92ee){var _0x377a8d=_0x28d985;if(_0x34eb4c[_0x377a8d('0x16fc')][_0x4d92ee][_0x377a8d('0x16f0')]()&&!_0x34eb4c['sessions'][_0x4d92ee][_0x377a8d('0x130b')]()[_0x377a8d('0x4b')])return{'v':_0x3e4cad(_0x3a3280[_0x377a8d('0xe2e')])[_0x377a8d('0xaa5')](function(_0x39dc43){var _0x4949e6=_0x377a8d;_0x39dc43&&_0x34eb4c[_0x4949e6('0x16fc')][_0x4d92ee][_0x4949e6('0x189f')](_0x39dc43,{'eventHandlers':{'requestSucceeded':_0x501af1(_0x34eb4c[_0x4949e6('0x16fc')][_0x4d92ee],_0x4949e6('0xe11'),_0x4949e6('0xe1c'),0xbb8),'requestFailed':_0x501af1(_0x34eb4c['sessions'][_0x4d92ee],_0x4949e6('0x55f'),_0x4949e6('0xe1c'),0xbb8)}});})};};for(var _0x565fdb=0x0;_0x565fdb<_0x34eb4c[_0x28d985('0x16fc')][_0x28d985('0x2587')];_0x565fdb+=0x1){var _0x53c8f5=_0xb3981c(_0x565fdb);if(_0x3145eb(_0x53c8f5)===_0x28d985('0x1b7'))return _0x53c8f5['v'];}}}function _0x32afd6(){return new Promise(function(_0x4ecdc4){var _0x52d582=a0_0x1149,_0x2dae87=null;for(var _0x377527=0x0;_0x377527<_0x34eb4c[_0x52d582('0x16fc')][_0x52d582('0x2587')];_0x377527++){!_0x51538b()[_0x52d582('0x16e4')](_0x34eb4c['sessions'][_0x377527],_0x52d582('0x1c1a'))?_0x2dae87=_0x34eb4c[_0x52d582('0x16fc')][_0x377527]:!_0x34eb4c[_0x52d582('0x16fc')][_0x377527]['localHold']&&(_0x2dae87=_0x34eb4c['sessions'][_0x377527]);}_0x4ecdc4(_0x2dae87);});}function _0x5d0792(_0x223939){var _0x1f3fbc=_0x31f554;console[_0x1f3fbc('0x84c')](_0x1f3fbc('0x244d'),_0x223939);var _0x557f79=_0x223939[_0x1f3fbc('0x42a')],_0x4891c6=_0x223939[_0x1f3fbc('0xeed')],_0xcc57c8=_0x223939[_0x1f3fbc('0x1c6a')];_0x34eb4c[_0x1f3fbc('0x2708')][_0x1f3fbc('0x69d')]?_0x34eb4c['sessionConf'][_0x1f3fbc('0x1c13')][_0x1f3fbc('0xb59')]={'deviceId':_0x34eb4c[_0x1f3fbc('0x2708')][_0x1f3fbc('0x69d')]}:_0x34eb4c[_0x1f3fbc('0x1b7a')][_0x1f3fbc('0x1c13')][_0x1f3fbc('0xb59')]=!![];var _0xa3de8d=_0x557f79[_0x1f3fbc('0x170d')](/ /g,'');_0xa3de8d=_0xa3de8d['replace'](/\(/g,''),_0xa3de8d=_0xa3de8d[_0x1f3fbc('0x170d')](/\)/g,'');if(_0xa3de8d){var _0x4ade2e=angular[_0x1f3fbc('0x20a')](_0x34eb4c['sessionConf']);_0x4ade2e[_0x1f3fbc('0x5bd')]=[],_0x4891c6&&_0x4ade2e[_0x1f3fbc('0x5bd')][_0x1f3fbc('0x1599')]('X-CID:\x20'+_0x4891c6),_0xcc57c8&&_0x4ade2e[_0x1f3fbc('0x5bd')]['push'](_0x1f3fbc('0xf03')+_0xcc57c8),_0x34eb4c[_0x1f3fbc('0x1358')]=!![],_0x34eb4c['ua'][_0x1f3fbc('0x1432')](_0xa3de8d,_0x4ade2e);}}function _0x475e37(_0x2d8876){var _0x5f2fc4=_0x31f554;console[_0x5f2fc4('0x84c')](_0x5f2fc4('0x5de'),_0x2d8876);var _0x306f06=_0x34eb4c['sessions'];if(_0x2d8876[_0x5f2fc4('0x1484')]){_0x306f06=[];var _0x17aa3d=_0x2d8876[_0x5f2fc4('0x1484')];_0x306f06['push'](_0x1e0b60(_0x2d8876[_0x5f2fc4('0x1484')]));if(_0x306f06['length']==0x0){console[_0x5f2fc4('0x1d7e')](_0x5f2fc4('0x131')+_0x17aa3d+_0x5f2fc4('0x224a'));return;}}for(var _0x11e408=0x0;_0x11e408<_0x306f06[_0x5f2fc4('0x2587')];_0x11e408++){var _0x4595a1=_0x306f06[_0x11e408];console[_0x5f2fc4('0x18d5')](_0x5f2fc4('0x41a'),_0x4595a1),_0x34eb4c[_0x5f2fc4('0x124a')](_0x4595a1);}}function _0x507396(_0x5dd49f){var _0x118a72=_0x31f554;console[_0x118a72('0x84c')](_0x118a72('0xd9a'),_0x5dd49f);var _0x43d253=_0x307a88();if(_0x5dd49f['sessionId']){var _0x256b38=_0x5dd49f[_0x118a72('0x1484')],_0x217bd4=_0x1e0b60(_0x5dd49f[_0x118a72('0x1484')]);if(!_0x217bd4){console['warn'](_0x118a72('0x131')+_0x256b38+_0x118a72('0x224a'));return;}_0x43d253=[_0x217bd4];}for(var _0x2e625f=0x0;_0x2e625f<_0x43d253['length'];_0x2e625f++){var _0x20118d=_0x43d253[_0x2e625f];_0x34eb4c[_0x118a72('0x1ba2')](_0x20118d);}}function _0x307a88(){var _0x3695e6=_0x31f554,_0x36aef6=_0x51538b()[_0x3695e6('0xe9e')](_0x34eb4c[_0x3695e6('0x16fc')],function(_0x42e4be){var _0x17923e=_0x3695e6;return _0x42e4be[_0x17923e('0xa90')]&&!_0x42e4be['confirmed'];});return _0x36aef6;}function _0x585000(_0x48ebb7){var _0x514354=_0x31f554;console[_0x514354('0x84c')](_0x514354('0x410'),_0x48ebb7);var _0x3911ae=_0x34eb4c[_0x514354('0x16fc')];if(_0x48ebb7[_0x514354('0x1484')]){_0x3911ae=[],_0x3911ae[_0x514354('0x1599')](_0x1e0b60(_0x48ebb7[_0x514354('0x1484')]));var _0x2f4e54=_0x48ebb7[_0x514354('0x1484')];if(_0x3911ae[_0x514354('0x2587')]==0x0){console[_0x514354('0x1d7e')](_0x514354('0x131')+_0x2f4e54+'\x20not\x20found');return;}}for(var _0x37ba20=0x0;_0x37ba20<_0x3911ae[_0x514354('0x2587')];_0x37ba20++){var _0x9326ea=_0x3911ae[_0x37ba20];_0x34eb4c[_0x514354('0x2245')](_0x9326ea);}}function _0x2c2128(_0x44fb84){var _0x5e944e=_0x31f554;console['debug'](_0x5e944e('0x410'),_0x44fb84);if(!_0x44fb84['sessionId']){console[_0x5e944e('0x187f')](_0x5e944e('0x1f08'));return;}var _0x46372c=_0x1e0b60(_0x44fb84['sessionId']);if(!_0x46372c){var _0x4d8e07=_0x44fb84[_0x5e944e('0x1484')];console['warn']('call\x20with\x20session\x20Id\x20'+_0x4d8e07+_0x5e944e('0x224a'));return;}_0x34eb4c[_0x5e944e('0x1fd0')](_0x46372c);}function _0x577e29(_0x1eb35c){var _0x564db7=_0x31f554;console[_0x564db7('0x84c')](_0x564db7('0xa03'),_0x1eb35c);if(!_0x1eb35c['sessionId']){console[_0x564db7('0x187f')](_0x564db7('0x1f08'));return;}if(!_0x1eb35c[_0x564db7('0x1b66')]){console[_0x564db7('0x187f')](_0x564db7('0x15c3'));return;}var _0x26cf4c=_0x1e0b60(_0x1eb35c[_0x564db7('0x1484')]);if(!_0x26cf4c){var _0x42ff08=_0x1eb35c['sessionId'];console[_0x564db7('0x1d7e')](_0x564db7('0x131')+_0x42ff08+_0x564db7('0x224a'));return;}_0x26cf4c[_0x564db7('0x189f')](_0x1eb35c[_0x564db7('0x1b66')],{'eventHandlers':{'requestSucceeded':_0x501af1(_0x26cf4c,_0x564db7('0xe11'),_0x564db7('0xe1c'),0xbb8),'requestFailed':_0x501af1(_0x26cf4c,_0x564db7('0x55f'),'top\x20right',0xbb8)}});}function _0x1e0b60(_0x5424bf){var _0x55b398=_0x31f554;console['debug'](_0x55b398('0x20c9'),_0x5424bf,_0x34eb4c['sessions']);var _0x1d17a3=_0x51538b()[_0x55b398('0xe9e')](_0x34eb4c[_0x55b398('0x16fc')],function(_0x3fd784){var _0x19a02f=_0x55b398;return _0x3fd784[_0x19a02f('0x1e9')]==_0x5424bf;});return _0x1d17a3;}function _0x59d619(_0x4fb137,_0x53b1fb){var _0x919be9=_0x31f554;return console['debug'](_0x919be9('0x1877'),_0x4fb137,_0x53b1fb),_0x367a4b({'url':_0x4fb137,'method':_0x919be9('0x1050'),'params':_0x53b1fb});}function _0x1a3e6e(_0xb60328,_0x52d776,_0x579ae0){var _0x1656e1=_0x31f554,_0x23e144=_0x51538b()[_0x1656e1('0xe9e')](_0xb60328,function(_0x3c3295){var _0x2cd162=_0x1656e1;return _0x51538b()[_0x2cd162('0x6e8')](_0x3c3295,_0x52d776);});if(_0x23e144)return _0x51538b()[_0x1656e1('0x2497')](_0x23e144[_0x1656e1('0x170d')](_0x52d776,'')['replace'](_0x579ae0||':',''));return![];}_0x34eb4c[_0x31f554('0x141')]=_0x50aed0['bind'](this),_0x34eb4c[_0x31f554('0x6c8')]=_0x540870,_0x34eb4c[_0x31f554('0x1432')]=_0x401cad,_0x34eb4c[_0x31f554('0x2245')]=_0x39d096,_0x34eb4c[_0x31f554('0x189f')]=_0x4b864d,_0x34eb4c['record']=_0x10885c,_0x34eb4c[_0x31f554('0x1fd0')]=_0x430188,_0x34eb4c[_0x31f554('0x1ba2')]=_0x609359,_0x34eb4c[_0x31f554('0x124a')]=_0x5e25ef,_0x34eb4c['selectSession']=_0x2178e1,_0x34eb4c[_0x31f554('0x1a0f')]=_0x30181c,_0x34eb4c[_0x31f554('0x48b')]=_0x3d5ef7,_0x34eb4c[_0x31f554('0xbb0')]=_0xc7bd64,_0x34eb4c[_0x31f554('0x238b')]=_0x4ecfe2,_0x34eb4c[_0x31f554('0x274')]=_0x41aa89,_0x34eb4c[_0x31f554('0x1962')]=_0x487753,_0x34eb4c[_0x31f554('0x558')]=_0x1b09db,_0x34eb4c[_0x31f554('0x17c6')]=_0x171573,_0x34eb4c['start3WayConf']=_0x16abfd,_0x34eb4c['patchConference']=_0x6d9aea,_0x22cb69['$on'](_0x31f554('0xbc1'),_0x3d49dd),_0x22cb69[_0x31f554('0xc75')](_0x31f554('0x1ef0'),_0x7de4bc),_0x22cb69['$on']('webrtc::call',_0xff31ae),_0x22cb69[_0x31f554('0xc75')](_0x31f554('0xdde'),_0x28b14b),_0x22cb69[_0x31f554('0xc75')](_0x31f554('0x12d0'),function(){var _0x20fd55=_0x31f554;console['debug'](_0x20fd55('0xb26')),_0x2cef99[_0x20fd55('0x2629')](_0x20fd55('0x1735')),_0x2cef99['removeAllListeners'](_0x20fd55('0x2852')),_0x2cef99['removeAllListeners'](_0x20fd55('0x255d')),_0x2cef99[_0x20fd55('0x2629')](_0x20fd55('0x402')),_0x2cef99[_0x20fd55('0x2629')](_0x20fd55('0x2272')),_0x2cef99[_0x20fd55('0x2629')](_0x20fd55('0x27de'));});}function _0x3a38b8(){var _0x54043f=_0x1a8446;return{'restrict':'E','scope':{'conf':'='},'require':_0x54043f('0x6db'),'controller':_0x54043f('0x10aa'),'controllerAs':_0x54043f('0x94f'),'bindToController':!![],'templateUrl':_0x51a255};}_0x5f1119[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'prefixes',_0x1a8446('0x21f6')];function _0x5f1119(_0x4808df,_0x477678,_0x293fed){var _0x2607dc=_0x1a8446,_0x88f2e=this;function _0x1deaef(){var _0x138c08=a0_0x1149;_0x4808df[_0x138c08('0x1120')](_0x88f2e['prefix']);}function _0x131d9b(_0x29de31){_0x4808df['hide'](_0x29de31);}_0x88f2e[_0x2607dc('0x4e9')]=_0x477678,_0x88f2e[_0x2607dc('0x21f6')]=_0x293fed,_0x88f2e[_0x2607dc('0x2023')]=_0x131d9b,_0x88f2e[_0x2607dc('0x1432')]=_0x1deaef;}const _0x2490db=_0x5f1119;_0x4ba2f3[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x157'),_0x1a8446('0x16fc'),_0x1a8446('0x2001')],_0x2fbd1d[_0x1a8446('0x1e33')]=['$timeout'];function _0x2fbd1d(_0x4c0b93){var _0x4b60de=_0x1a8446;return{'restrict':'C','controller':[_0x4b60de('0x51'),'$element',function _0x1944bc(_0x178bb3,_0x1d14b4){function _0x463eab(){var _0x55b3b8=a0_0x1149;_0x1d14b4[_0x55b3b8('0x233f')](_0x55b3b8('0x19c0'),'inline'),_0x4c0b93(_0x10e921,0x3e8);}function _0x10e921(){var _0x482db7=a0_0x1149;_0x1d14b4[_0x482db7('0x233f')](_0x482db7('0x19c0'),_0x482db7('0x117')),_0x4c0b93(_0x463eab,0x3e8);}_0x463eab();}],'replace':!![]};}function _0x4ba2f3(_0x9059cb,_0x3717f7,_0x385b76,_0x20e304,_0x4c5274){var _0x29aa2b=_0x1a8446,_0x382439=this;_0x382439[_0x29aa2b('0x110a')]=_0x29aa2b('0x15cd'),_0x382439[_0x29aa2b('0x16fc')]=_0x20e304,_0x382439[_0x29aa2b('0x2001')]=_0x4c5274,_0x382439[_0x29aa2b('0x2023')]=_0x2df3ac,_0x382439[_0x29aa2b('0xd43')]=_0x22dea2,_0x382439['stop']=_0x3091f5,_0x382439[_0x29aa2b('0x1186')]=_0x5a1394;function _0x4383a4(){function _0x133c5b(){var _0x4ddab3=a0_0x1149;return Math['floor']((0x1+Math[_0x4ddab3('0x8fc')]())*0x10000)['toString'](0x10)[_0x4ddab3('0xb10')](0x1);}return _0x133c5b()+_0x133c5b()+'-'+_0x133c5b()+'-'+_0x133c5b()+'-'+_0x133c5b()+'-'+_0x133c5b()+_0x133c5b()+_0x133c5b();}function _0x5a1394(_0x2a8a6b,_0x1bd59c){var _0x54f57a=_0x29aa2b;console[_0x54f57a('0x18d5')]('startMonitor');var _0xfeb2db=_0x3717f7[_0x54f57a('0x213b')](),_0x2f6eb6=_0x1bd59c||_0x2a8a6b[_0x54f57a('0x12c')][_0x54f57a('0x170d')](/^.*[\\/]/,''),_0x3d7e30=_0x2f6eb6['split']('.')[0x0];return _0x385b76[_0x54f57a('0xb5d')][_0x54f57a('0x2428')]({'uniqueid':_0x382439[_0x54f57a('0x2001')]['uniqueid'],'filename':_0x3d7e30,'format':_0x54f57a('0x2715')})[_0x54f57a('0x1dc2')][_0x54f57a('0xaa5')](function(_0x12cf6a){var _0x164139=_0x54f57a;_0x2a8a6b[_0x164139('0x12c')]=_0x3d7e30+_0x164139('0x1153'),_0x2a8a6b[_0x164139('0x17a1')]=_0x12cf6a[_0x164139('0x17a1')],_0x2a8a6b[_0x164139('0x2fa')]=_0x164139('0x2077'),_0x382439['session']['monitor']=!![],_0xfeb2db[_0x164139('0x149f')](_0x2a8a6b);})[_0x54f57a('0x253d')](function(_0x5cd7a4){var _0x33da85=_0x54f57a;_0xfeb2db[_0x33da85('0xaee')](_0x5cd7a4);}),_0xfeb2db['promise'];}function _0x3091f5(_0x1fa0f7){var _0x5a57b6=_0x29aa2b;return console[_0x5a57b6('0x18d5')](_0x5a57b6('0x2083')),_0x385b76[_0x5a57b6('0xb5d')][_0x5a57b6('0x2083')]({'uniqueid':_0x382439[_0x5a57b6('0x2001')][_0x5a57b6('0x1a6')],'mixmonitorid':_0x1fa0f7[_0x5a57b6('0x17a1')]})[_0x5a57b6('0x1dc2')][_0x5a57b6('0xaa5')](function(){var _0x47d345=_0x5a57b6;_0x1fa0f7[_0x47d345('0x2fa')]=_0x47d345('0x167c'),_0x382439[_0x47d345('0x2001')][_0x47d345('0x841')]=_0x51538b()[_0x47d345('0x13d6')](_0x382439[_0x47d345('0x2001')][_0x47d345('0x873')],{'status':_0x47d345('0x2077')});})['catch'](function(_0x340cba){var _0x373e6d=_0x5a57b6;console[_0x373e6d('0x187f')](_0x340cba);});}function _0x22dea2(){var _0x5b4aa2=_0x29aa2b,_0x3217a0=_0x9059cb[_0x5b4aa2('0x19b8')]({'skipHide':!![]})[_0x5b4aa2('0x110a')](_0x5b4aa2('0x13c9'))[_0x5b4aa2('0x447')](_0x5b4aa2('0xa64'))[_0x5b4aa2('0x674')](_0x5b4aa2('0x189e'))[_0x5b4aa2('0x5b5')](_0x5b4aa2('0x189e'))[_0x5b4aa2('0x225e')](_0x4383a4())['ok']('Start')['cancel'](_0x5b4aa2('0x9c6'));_0x9059cb[_0x5b4aa2('0x1e6d')](_0x3217a0)[_0x5b4aa2('0xaa5')](function(_0xd1081a){return _0x5a1394({},_0xd1081a);})['then'](function(_0x34b38b){var _0x2d45cf=_0x5b4aa2;_0x382439['session'][_0x2d45cf('0x873')][_0x2d45cf('0x1599')](_0x34b38b);});}function _0x2df3ac(){var _0x127b29=_0x29aa2b;_0x9059cb[_0x127b29('0x1120')]();}}_0x384a46[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x16fc'),_0x1a8446('0x2001'),'isJabraEnabled'];function _0x384a46(_0x487a0a,_0x5220a3,_0xc5a796,_0x4c01e8,_0x4952a0){var _0x2b3f39=_0x1a8446,_0xfd6757=this,_0x4330fa=window[_0x2b3f39('0x2724')];_0xfd6757[_0x2b3f39('0x110a')]=_0x2b3f39('0x36a'),_0xfd6757['sessions']=_0xc5a796,_0xfd6757['session']=_0x4c01e8,_0xfd6757[_0x2b3f39('0x2181')]=_0x4952a0,_0xfd6757[_0x2b3f39('0x133f')]=null;_0xc5a796['length']&&(_0xfd6757[_0x2b3f39('0xe2e')]=_0xc5a796[0x0]['user']);_0xfd6757[_0x2b3f39('0x2023')]=_0x137046,_0xfd6757['transfer']=_0x2b22f9;function _0x2b22f9(){var _0x2556ef=_0x2b3f39,_0x348d97,_0x3ca322,_0x1f6126=_0x51538b()[_0x2556ef('0xe9e')](_0xc5a796,function(_0x1af769){var _0x68d264=_0x2556ef;if(_0x1af769[_0x68d264('0x272b')]===_0xfd6757['target'])return _0x1af769;});_0x1f6126['outgoing']?(_0x348d97=_0x1f6126,_0x3ca322=_0xfd6757[_0x2556ef('0x2001')]):(_0x348d97=_0xfd6757[_0x2556ef('0x2001')],_0x3ca322=_0x1f6126),_0x3ca322[_0x2556ef('0x189f')](_0x348d97[_0x2556ef('0x272b')],{'replaces':_0x348d97,'eventHandlers':{'requestSucceeded':_0x381ee2(_0x4c01e8,_0x2556ef('0xe11'),_0x2556ef('0xe1c'),0xbb8,_0xfd6757['isJabraEnabled']),'requestFailed':_0x381ee2(_0x4c01e8,_0x2556ef('0x55f'),_0x2556ef('0xe1c'),0xbb8,_0xfd6757[_0x2556ef('0x2181')])}});}function _0x381ee2(_0x4a4f84,_0x34592a,_0x5128c0,_0x5e0110,_0x184ac9){var _0xdaf19c=_0x2b3f39;return console['debug'](_0xdaf19c('0x22e5'),_0x4a4f84,_0x34592a,_0x5128c0,_0x5e0110),function(){var _0x1171e9=_0xdaf19c;_0x5220a3[_0x1171e9('0x1e6d')](_0x5220a3[_0x1171e9('0x1b04')]()[_0x1171e9('0x447')](_0x34592a)[_0x1171e9('0x137c')](_0x5128c0)['hideDelay'](_0x5e0110)),_0x4a4f84[_0x1171e9('0x124a')](),_0x4330fa&&_0x184ac9&&_0x4330fa[_0x1171e9('0x11c8')](),_0x137046();};}function _0x137046(_0x431f1c){var _0x54434a=_0x2b3f39;_0x487a0a[_0x54434a('0x1120')](_0x431f1c);}}const _0x1eae94=_0x384a46;_0x1d8d06['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0x2708'),'devices'];function _0x1d8d06(_0x39f0af,_0x350ec5,_0x3858ae){var _0x58469c=_0x1a8446,_0x2df81b=this;_0x51538b()[_0x58469c('0xf6d')](_0x3858ae,function(_0x5a178d){var _0x3fe145=_0x58469c;return _0x5a178d[_0x3fe145('0x1b90')]===_0x3fe145('0x977')&&(_0x5a178d['deviceId']===_0x3fe145('0x449')||_0x5a178d[_0x3fe145('0x2762')]===_0x3fe145('0x1eb6'))||_0x5a178d[_0x3fe145('0x1b90')]==='audiooutput'&&(_0x5a178d['deviceId']===_0x3fe145('0x449')||_0x5a178d[_0x3fe145('0x2762')]==='communications');}),_0x350ec5[_0x58469c('0x80b')]=_0x2abe6a(_0x3858ae,_0x58469c('0x9fb'),_0x58469c('0x80b')),_0x350ec5[_0x58469c('0x1849')]=_0x2abe6a(_0x3858ae,_0x58469c('0x9fb'),_0x58469c('0x1849')),_0x350ec5[_0x58469c('0x69d')]=_0x2abe6a(_0x3858ae,'audioinput',_0x58469c('0x69d')),_0x350ec5[_0x58469c('0x2861')]=_0x350ec5['ringingVolume']||0.5,_0x350ec5[_0x58469c('0x158')]=_0x350ec5[_0x58469c('0x158')]||0.5,_0x350ec5[_0x58469c('0x90d')]=_0x350ec5[_0x58469c('0x90d')]||0x1,_0x350ec5['ringingMute']=_0x350ec5['ringingMute']||![],_0x350ec5['speakerMute']=_0x350ec5[_0x58469c('0x1a69')]||![],_0x350ec5[_0x58469c('0x4e6')]=_0x350ec5['microphoneMute']||![],_0x2df81b[_0x58469c('0x2708')]=angular['copy'](_0x350ec5),_0x2df81b[_0x58469c('0x1678')]=_0x3858ae,_0x2df81b['saveSettings']=_0x55cd1b,_0x2df81b['closeDialog']=_0x5244e7,_0x2df81b[_0x58469c('0x10c0')]=_0x504e1f;function _0x504e1f(){var _0x5b3b48=_0x58469c;return _0x2df81b[_0x5b3b48('0x2708')][_0x5b3b48('0xc08')]['toLowerCase']()===_0x5b3b48('0x1b32')||_0x2df81b['conf']['browserName'][_0x5b3b48('0xcf6')]()===_0x5b3b48('0xdd6')||_0x2df81b[_0x5b3b48('0x2708')][_0x5b3b48('0xc08')][_0x5b3b48('0xcf6')]()===_0x5b3b48('0x8f5');}function _0x2abe6a(_0x13bd04,_0x546b4f,_0x58a23f){var _0x2755a7=_0x58469c,_0x34a7e5;if(!_0x350ec5[_0x58a23f])_0x34a7e5=_0x51538b()[_0x2755a7('0xe9e')](_0x13bd04,function(_0x1786ae){var _0x15cac4=_0x2755a7;return _0x1786ae[_0x15cac4('0x1b90')]===_0x546b4f;}),_0x34a7e5&&(_0x350ec5[_0x58a23f]=_0x34a7e5[_0x2755a7('0x2762')]);else{_0x34a7e5=_0x51538b()['find'](_0x13bd04,function(_0x574780){var _0x17a321=_0x2755a7;return _0x574780[_0x17a321('0x2762')]===_0x350ec5[_0x58a23f];});if(_0x34a7e5)return _0x34a7e5['deviceId'];var _0x325426=_0x51538b()[_0x2755a7('0xedc')](_0x13bd04,function(_0x399dc6){return _0x399dc6['kind']===_0x546b4f;});if(_0x325426>=0x0)return _0x13bd04[_0x325426][_0x2755a7('0x2762')];}return _0x350ec5[_0x58a23f]||null;}function _0x55cd1b(){var _0x6d060f=_0x58469c;_0x39f0af[_0x6d060f('0x1120')](_0x2df81b[_0x6d060f('0x2708')]);}function _0x5244e7(){var _0x220eb7=_0x58469c;_0x39f0af[_0x220eb7('0x1120')]();}}const _0x2b6950=_0x1d8d06,_0x8a8622=_0x4fb511['p']+_0x1a8446('0x77f');_0x2804b2['$inject']=['$filter',_0x1a8446('0x2c1')],_0x333296['$inject']=[_0x1a8446('0x1f28'),'quickFilterManager'];function _0x2bb807(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x333296,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x8a8622};}function _0x333296(_0x37d0f0,_0x1e1cf6){var _0x4ececa=_0x1a8446,_0x29c7ee=this;_0x29c7ee[_0x4ececa('0x2448')]={},_0x29c7ee[_0x4ececa('0x26dc')]={},_0x29c7ee['localizationMap']=_0x37d0f0[_0x4ececa('0x1394')],_0x29c7ee[_0x4ececa('0x4a')]=_0x5a7c89,_0x29c7ee[_0x4ececa('0x2674')]=_0x1f93e0,_0x29c7ee[_0x4ececa('0x2d')]=_0xfac105,_0x29c7ee[_0x4ececa('0x185e')]=_0x4c182b,_0x29c7ee[_0x4ececa('0x1c99')]=_0x59906f,_0x29c7ee[_0x4ececa('0x2200')]=_0x293023,_0x29c7ee[_0x4ececa('0x2ae')]=_0x48528c;function _0x5a7c89(_0x1219db){_0x5686bd(_0x1219db);}function _0x1f93e0(_0x567525){var _0x5333cd=_0x4ececa,_0x1bba5f=_0x567525[_0x5333cd('0x24ec')];_0x29c7ee[_0x5333cd('0x582')][_0x1bba5f]?_0x29c7ee[_0x5333cd('0x2448')][_0x1bba5f]=_0x37d0f0[_0x5333cd('0x689')](_0x29c7ee[_0x5333cd('0x582')][_0x1bba5f]):_0x29c7ee[_0x5333cd('0x2448')][_0x1bba5f]={'dateStart':null};}function _0xfac105(_0x747f13){var _0x5e890d=_0x4ececa;_0x5686bd(_0x747f13),_0x29c7ee[_0x5e890d('0x1785')]();}function _0x4c182b(_0x5c1cac){var _0x17a08a=_0x4ececa,_0x51a7ae=_0x5c1cac['key'];_0x29c7ee[_0x17a08a('0x2448')][_0x51a7ae][_0x17a08a('0x779')]?_0x29c7ee['query'][_0x51a7ae]={'$gte':_0x420d43()(_0x29c7ee[_0x17a08a('0x2448')][_0x51a7ae][_0x17a08a('0x779')])[_0x17a08a('0x15db')](0x0,!![])[_0x17a08a('0x1f27')](),'$lte':_0x420d43()(_0x29c7ee[_0x17a08a('0x2448')][_0x51a7ae][_0x17a08a('0x197e')])[_0x17a08a('0x15db')](0x0,!![])[_0x17a08a('0x202c')](0x17,'hours')['add'](0x3b,'minutes')['add'](0x3b,_0x17a08a('0x116c'))[_0x17a08a('0x1f27')]()}:_0x29c7ee[_0x17a08a('0x582')][_0x51a7ae]=undefined,_0x29c7ee[_0x17a08a('0x1785')]();}function _0x59906f(_0x1e4956){var _0x57e7db=_0x4ececa,_0x8d61ca=_0x1e4956[_0x57e7db('0x24ec')];_0x29c7ee[_0x57e7db('0x2448')][_0x8d61ca]={'dateStart':null},delete _0x29c7ee[_0x57e7db('0x582')][_0x8d61ca],_0x29c7ee['search']();}function _0x48528c(_0xdbcda){var _0x5b387f=_0x4ececa,_0x18c0c2=_0xdbcda[_0x5b387f('0x24ec')],_0x447f49=_0xdbcda[_0x5b387f('0x1908')]||'id';_0x29c7ee[_0x5b387f('0x582')][_0x18c0c2]=_0x51538b()[_0x5b387f('0x1246')](_0xdbcda[_0x5b387f('0x1b36')],_0x447f49),_0x5686bd(_0xdbcda),_0x29c7ee[_0x5b387f('0x1785')]();}function _0x293023(_0x10100a){var _0x4e3913=_0x4ececa,_0x28c9c9=_0x10100a[_0x4e3913('0x24ec')],_0x5e5619=_0x10100a[_0x4e3913('0x1908')]||'id';_0x29c7ee[_0x4e3913('0x582')][_0x28c9c9]=_0x10100a[_0x4e3913('0x1b8d')]===![]?[_0x51538b()[_0x4e3913('0x19da')](_0x10100a[_0x4e3913('0x1b36')])[_0x5e5619]]:[],_0x5686bd(_0x10100a),_0x29c7ee[_0x4e3913('0x1785')]();}function _0x5686bd(_0x4769ab){var _0x3d2457=_0x4ececa,_0x119cce=_0x4769ab['key'],_0x14f00f={'param':_0x29c7ee[_0x3d2457('0x582')][_0x119cce],'resources':_0x4769ab[_0x3d2457('0x1b36')],'placeholder':_0x4769ab['placeholder'],'ngValue':_0x4769ab[_0x3d2457('0x1908')]};_0x1e1cf6[_0x3d2457('0x17ee')](_0x14f00f)[_0x3d2457('0xaa5')](function(_0x3f57a7){var _0xab2bee=_0x3d2457;_0x29c7ee[_0xab2bee('0x26dc')][_0x119cce]=_0x3f57a7;});}}function _0x2804b2(_0x192af8,_0x234a85){var _0x2f165d={'localizationMap':_0x234a85,'setSelectedDate':_0x598972};function _0x598972(_0x43c8a7){var _0x41031c=a0_0x1149,_0x4be486=new Date(_0x420d43()[_0x41031c('0x968')](_0x43c8a7[_0x41031c('0xc9e')])[_0x41031c('0x1f27')]('YYYY-MM-DD')),_0xce736c=new Date(_0x420d43()[_0x41031c('0x968')](_0x43c8a7[_0x41031c('0x2651')])[_0x41031c('0x1f27')]('YYYY-MM-DD')),_0x43a1ac={'dateStart':new Date(_0x4be486[_0x41031c('0x495')](),_0x4be486[_0x41031c('0x12b5')](),_0x4be486[_0x41031c('0x146')]()),'dateEnd':new Date(_0xce736c[_0x41031c('0x495')](),_0xce736c[_0x41031c('0x12b5')](),_0xce736c[_0x41031c('0x146')]())};return _0x43a1ac['selectedTemplateName']=_0x35750f(_0x43a1ac),_0x43a1ac;}function _0x35750f(_0x235e41){var _0x17bf0e=a0_0x1149;if(_0x420d43()(_0x235e41[_0x17bf0e('0x779')])[_0x17bf0e('0xd14')](_0x235e41['dateEnd'])){if(_0x354294(_0x235e41))return _0x2f165d['localizationMap'][_0x17bf0e('0x125c')];else return _0x310a30(_0x235e41)?_0x2f165d[_0x17bf0e('0x1394')][_0x17bf0e('0x1c92')]:_0x192af8(_0x17bf0e('0xb87'))(_0x235e41[_0x17bf0e('0x779')],_0x17bf0e('0x20eb'));}else{if(_0x55a321(_0x235e41))return _0x2f165d[_0x17bf0e('0x1394')][_0x17bf0e('0x577')];else{if(_0x2ee2f0(_0x235e41))return _0x2f165d['localizationMap'][_0x17bf0e('0x82b')];else{if(_0x2b8dff(_0x235e41))return _0x2f165d[_0x17bf0e('0x1394')][_0x17bf0e('0xd33')];else{if(_0x44c025(_0x235e41))return _0x2f165d['localizationMap']['Last\x20Month'];else{if(_0x23ff47(_0x235e41))return _0x2f165d['localizationMap'][_0x17bf0e('0xae3')];else return _0x47661c(_0x235e41)?_0x2f165d['localizationMap'][_0x17bf0e('0x195f')]:_0x192af8(_0x17bf0e('0xb87'))(_0x235e41[_0x17bf0e('0x779')],'dd'+(_0x235e41[_0x17bf0e('0x779')][_0x17bf0e('0x12b5')]()!==_0x235e41['dateEnd']['getMonth']()||_0x235e41['dateStart'][_0x17bf0e('0x495')]()!==_0x235e41[_0x17bf0e('0x197e')]['getFullYear']()?_0x17bf0e('0xa23'):'')+(_0x235e41[_0x17bf0e('0x779')][_0x17bf0e('0x495')]()!==_0x235e41[_0x17bf0e('0x197e')][_0x17bf0e('0x495')]()?_0x17bf0e('0x1268'):''))+_0x17bf0e('0x169e')+_0x192af8(_0x17bf0e('0xb87'))(_0x235e41[_0x17bf0e('0x197e')],'dd\x20MMM\x20yyyy');}}}}}}function _0x354294(_0x270dbb){var _0x4d6bf2=a0_0x1149;return _0x420d43()()[_0x4d6bf2('0x206d')]('day')['isSame'](_0x270dbb[_0x4d6bf2('0x779')]);}function _0x310a30(_0xf8b282){var _0x352a03=a0_0x1149;return _0x420d43()()[_0x352a03('0x2865')](0x1,_0x352a03('0x101'))[_0x352a03('0x206d')](_0x352a03('0xa7c'))[_0x352a03('0xd14')](_0xf8b282[_0x352a03('0x779')]);}function _0x55a321(_0xe6a4d8){var _0x3d8b2c=a0_0x1149;return _0x420d43()()[_0x3d8b2c('0x206d')]('isoWeek')['isSame'](_0xe6a4d8[_0x3d8b2c('0x779')],_0x3d8b2c('0xa7c'))&&_0x420d43()()[_0x3d8b2c('0x173a')](_0x3d8b2c('0x15d1'))[_0x3d8b2c('0xd14')](_0xe6a4d8['dateEnd'],'day');}function _0x2ee2f0(_0x44287b){var _0x1927bc=a0_0x1149;return _0x420d43()()['subtract'](0x1,_0x1927bc('0x1e9a'))['startOf'](_0x1927bc('0x15d1'))[_0x1927bc('0xd14')](_0x44287b[_0x1927bc('0x779')],'day')&&_0x420d43()()[_0x1927bc('0x2865')](0x1,'weeks')[_0x1927bc('0x173a')]('isoWeek')[_0x1927bc('0xd14')](_0x44287b['dateEnd'],_0x1927bc('0xa7c'));}function _0x2b8dff(_0x870880){var _0x56cec2=a0_0x1149;return _0x420d43()()[_0x56cec2('0x206d')](_0x56cec2('0xae9'))[_0x56cec2('0xd14')](_0x870880[_0x56cec2('0x779')],'day')&&_0x420d43()()[_0x56cec2('0x173a')](_0x56cec2('0xae9'))[_0x56cec2('0xd14')](_0x870880[_0x56cec2('0x197e')],_0x56cec2('0xa7c'));}function _0x44c025(_0x1fe6c9){var _0x569e68=a0_0x1149;return _0x420d43()()[_0x569e68('0x2865')](0x1,_0x569e68('0x21fc'))[_0x569e68('0x206d')]('month')[_0x569e68('0xd14')](_0x1fe6c9[_0x569e68('0x779')],_0x569e68('0xa7c'))&&_0x420d43()()['subtract'](0x1,_0x569e68('0x21fc'))['endOf'](_0x569e68('0xae9'))['isSame'](_0x1fe6c9[_0x569e68('0x197e')],_0x569e68('0xa7c'));}function _0x23ff47(_0x509b15){var _0x47ee0e=a0_0x1149;return _0x420d43()()[_0x47ee0e('0x206d')](_0x47ee0e('0x1316'))[_0x47ee0e('0xd14')](_0x509b15[_0x47ee0e('0x779')],_0x47ee0e('0xa7c'))&&_0x420d43()()[_0x47ee0e('0x173a')]('year')[_0x47ee0e('0xd14')](_0x509b15[_0x47ee0e('0x197e')],_0x47ee0e('0xa7c'));}function _0x47661c(_0xd94c9f){var _0x1980ae=a0_0x1149;return _0x420d43()()['subtract'](0x1,'years')[_0x1980ae('0x206d')]('year')[_0x1980ae('0xd14')](_0xd94c9f[_0x1980ae('0x779')],_0x1980ae('0xa7c'))&&_0x420d43()()[_0x1980ae('0x2865')](0x1,_0x1980ae('0x13f6'))[_0x1980ae('0x173a')](_0x1980ae('0x1316'))['isSame'](_0xd94c9f[_0x1980ae('0x197e')],_0x1980ae('0xa7c'));}return _0x2f165d;}function _0x24e159(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function _0x485f81(_0x2a4cbb,_0x1aa1a0){var _0x328760=a0_0x1149,_0x5a4799=_0x2a4cbb['msRandomClass'][Math['floor'](Math['random']()*_0x2a4cbb[_0x328760('0xda8')]['length'])];_0x1aa1a0['addClass'](_0x5a4799);}};}const _0x1778e6=_0x24e159;_0x14bdcd[_0x1a8446('0x1e33')]=['api'];function _0x14bdcd(_0x3bf3ce){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function _0xf6ecbe(_0x22933c,_0x8b318e){var _0x5defd2=a0_0x1149,_0xe18dc7=![],_0x304689=document[_0x5defd2('0x531')]('audio');!_0x22933c[_0x5defd2('0x1cf9')]&&_0x304689['setAttribute']('controlsList',_0x5defd2('0x5e3')),_0x304689[_0x5defd2('0x107b')]('preload','none'),_0x304689[_0x5defd2('0x107b')](_0x5defd2('0x57c'),''),_0x304689['setAttribute'](_0x5defd2('0x1535'),_0x5defd2('0x306')),_0x304689[_0x5defd2('0x107b')]('src','\x20'),_0x304689['onplay']=function(_0x5cb086){var _0x494330=_0x5defd2;!_0xe18dc7&&(_0xe18dc7=!![],_0x5cb086[_0x494330('0x2185')](),_0x3bf3ce[_0x22933c[_0x494330('0x1fa6')]||_0x494330('0x2366')][_0x494330('0x1cf9')]({'id':_0x22933c['id']})[_0x494330('0x1dc2')]['then'](function(_0xcce51e){var _0x347380=_0x494330,_0x37f723=[_0xcce51e['buffer']],_0x4a2e78=new Blob(_0x37f723,{'type':_0xcce51e[_0x347380('0x6c8')]});_0x304689['setAttribute'](_0x347380('0x6c8'),_0xcce51e[_0x347380('0x6c8')]),_0x304689['setAttribute'](_0x347380('0x1d7a'),URL[_0x347380('0x1e56')](_0x4a2e78)),_0x304689[_0x347380('0x1597')]();})[_0x494330('0x253d')](function(_0x1c4915){console['error'](_0x1c4915);}));},_0x8b318e[_0x5defd2('0x1923')](_0x304689);}};}const _0x2cdb59=_0x14bdcd;function _0x43f020(){return{'restrict':'A','link':function _0x3e7d5b(_0x5e8f23,_0x31e243){var _0x37a8d8=a0_0x1149,_0x45d0bb=angular[_0x37a8d8('0x1aa8')](_0x37a8d8('0x1d'));_0x31e243[_0x37a8d8('0x101c')](_0x45d0bb),_0x45d0bb[_0x37a8d8('0x1923')](_0x31e243);}};}const _0x190a6f=_0x43f020;var _0x4cead7=_0x4fb511(0x1703),_0x93c56c=_0x4fb511['n'](_0x4cead7);_0x9f52ef[_0x1a8446('0x1e33')]=['$timeout',_0x1a8446('0xda0'),_0x1a8446('0x25c'),_0x1a8446('0x1897')];function _0x1bccc7(){var _0x65e310=_0x1a8446,_0x211216={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this[_0x65e310('0x149')]=function(){function _0x1830d3(){return _0x211216;}var _0x407f6a={'getConfig':_0x1830d3};return _0x407f6a;};function _0x573b30(_0xfb5485){_0x211216=angular['extend']({},_0x211216,_0xfb5485);}this[_0x65e310('0x1b14')]=_0x573b30;}function _0x9f52ef(_0x6abd0e,_0x195fbd,_0x1305b2,_0x18314b){return{'restrict':'AE','compile':function _0x18066c(_0x7e07d5){var _0x2e69cf=a0_0x1149;if(_0x18314b[_0x2e69cf('0x1323')](_0x2e69cf('0x9be')))return;if(_0x18314b['getConfig'](_0x2e69cf('0x231e'))&&_0x1305b2[_0x2e69cf('0x1470')]())return;return _0x7e07d5[_0x2e69cf('0x1b97')]('ms-scroll'),function _0x3b6175(_0x37cc3c,_0xb95d4f,_0x4d7ff7){var _0x2db164=_0x2e69cf,_0x557af3={};_0x4d7ff7[_0x2db164('0x894')]&&(_0x557af3=_0x37cc3c['$eval'](_0x4d7ff7[_0x2db164('0x894')]));_0x557af3=angular[_0x2db164('0x5c5')]({},_0x195fbd[_0x2db164('0x1323')](),_0x557af3),_0x93c56c()[_0x2db164('0x99b')](_0xb95d4f[0x0],_0x557af3);function _0x251672(){var _0x8186d=_0x2db164;_0x93c56c()[_0x8186d('0x264e')](_0xb95d4f[0x0]);}_0xb95d4f['on'](_0x2db164('0x100f'),_0x251672),_0x37cc3c[_0x2db164('0x1ccf')](function(){var _0x3a3856=_0x2db164;return _0xb95d4f[_0x3a3856('0x441')]('scrollHeight');},function(_0x3296a0,_0x352e50){var _0x40f1d1=_0x2db164;if(angular['isUndefined'](_0x3296a0)||angular[_0x40f1d1('0x22be')](_0x3296a0,_0x352e50))return;_0x251672();}),_0x37cc3c[_0x2db164('0x1ccf')](function(){var _0x56e5f3=_0x2db164;return _0xb95d4f[_0x56e5f3('0x441')](_0x56e5f3('0x2838'));},function(_0x5a9fa8,_0x38eb2f){var _0x4883b2=_0x2db164;if(angular[_0x4883b2('0xec')](_0x5a9fa8)||angular[_0x4883b2('0x22be')](_0x5a9fa8,_0x38eb2f))return;_0x251672();}),_0x37cc3c[_0x2db164('0xc75')](_0x2db164('0x12d0'),function(){var _0x1942b2=_0x2db164;_0xb95d4f[_0x1942b2('0x14')](_0x1942b2('0x100f')),_0x93c56c()[_0x1942b2('0x221e')](_0xb95d4f[0x0]);});};}};}const _0x440fed=_0x4fb511['p']+'src/js/modules/core/directives/ms-search-bar/ms-search-bar.html/ms-search-bar-[chunkhash].html';_0x22bed7[_0x1a8446('0x1e33')]=[_0x1a8446('0x39b')],_0x59ef1b['$inject']=[_0x1a8446('0x51'),'$element',_0x1a8446('0x186b')];function _0x59ef1b(_0x13e2ad,_0x1238b0,_0x2f78db){var _0x5a037a=_0x1a8446,_0x3c671e=this;_0x3c671e[_0x5a037a('0xd17')]=!![],_0x3c671e['query']=undefined,_0x3c671e[_0x5a037a('0x2617')]={'debounce':_0x3c671e[_0x5a037a('0x1a88')]||0x0};var _0x109f5b=_0x3c671e[_0x5a037a('0xf91')]&&_0x3c671e['collapseOnBlur']=='true'?!![]:![];_0x3c671e['resultsLoading']=![],_0x3c671e[_0x5a037a('0xcdc')]=null,_0x3c671e[_0x5a037a('0x1d9b')]=0x0,_0x3c671e['ignoreMouseEvents']=![],_0x3c671e[_0x5a037a('0x2318')]=_0x1ce1bd,_0x3c671e[_0x5a037a('0x1a42')]=_0x4c308a,_0x3c671e['expand']=_0x48a076,_0x3c671e['collapse']=_0x18bcfa,_0x3c671e[_0x5a037a('0x13bc')]=_0x3195a5,_0x3c671e[_0x5a037a('0x641')]=_0x2d2028,_0x3c671e['handleKeydown']=_0x6e3836,_0x3c671e['handleMouseenter']=_0x41bb7f,_0x3c671e[_0x5a037a('0x895')]=_0x598bb6,_0x3c671e[_0x5a037a('0x23f2')]=_0x3d6c46,_0x3c671e[_0x5a037a('0x25ab')]=_0x2f7347;function _0x1ce1bd(){var _0x2157fa=_0x5a037a;_0x13e2ad[_0x2157fa('0x1ccf')](_0x2157fa('0x171d'),function(_0x56ab4d,_0x539d74){var _0x2192d7=_0x2157fa;if(angular[_0x2192d7('0xec')](_0x56ab4d))return;if(angular[_0x2192d7('0x22be')](_0x56ab4d,_0x539d74))return;if(_0x3c671e[_0x2192d7('0xd17')]){if(_0x56ab4d)_0x13e2ad[_0x2192d7('0xbe7')]();else return;}var _0x32a7b5=_0x13e2ad[_0x2192d7('0x24a3')]['$eval'](_0x3c671e[_0x2192d7('0x1c40')],{'query':_0x56ab4d}),_0xd7ca5e=angular[_0x2192d7('0x4f')](_0x32a7b5),_0x476093=_0x32a7b5&&!!_0x32a7b5[_0x2192d7('0xaa5')];_0xd7ca5e&&_0x3c671e['populateResults'](_0x32a7b5),_0x476093&&(_0x3c671e[_0x2192d7('0x5e9')]=!![],_0x32a7b5[_0x2192d7('0xaa5')](function(_0x329e16){_0x3c671e['populateResults'](_0x329e16);},function(){var _0x2ac18e=_0x2192d7;_0x3c671e[_0x2ac18e('0x1a42')]([]);})[_0x2192d7('0x1889')](function(){var _0x143b68=_0x2192d7;_0x3c671e[_0x143b68('0x5e9')]=![];}));});}function _0x4c308a(_0x4c707e){var _0x21cd61=_0x5a037a;if(_0x3c671e[_0x21cd61('0xd17')])return;var _0x2c9da6=angular[_0x21cd61('0x4f')](_0x4c707e),_0xb79c47=_0x4c707e===null;if(!_0x2c9da6&&!_0xb79c47)return;_0x3c671e[_0x21cd61('0x1d9b')]=0x0,_0x3c671e[_0x21cd61('0xcdc')]=_0x4c707e;}function _0x48a076(){var _0x174ce9=_0x5a037a;_0x3c671e['collapsed']=![],_0x13e2ad[_0x174ce9('0xbe7')](),_0x3c671e[_0x174ce9('0xfd0')]&&angular[_0x174ce9('0x171f')](_0x3c671e[_0x174ce9('0xfd0')])&&_0x3c671e['onExpand']();}function _0x18bcfa(){var _0xc37442=_0x5a037a;_0x3c671e[_0xc37442('0x582')]='',_0x3c671e[_0xc37442('0x1a42')](null),_0x3c671e['collapsed']=!![],_0x13e2ad['collapse'](),_0x3c671e['onCollapse']&&angular['isFunction'](_0x3c671e['onCollapse'])&&_0x3c671e[_0xc37442('0xdcb')]();}function _0x3195a5(){var _0x3426ac=_0x5a037a;if(!_0x109f5b)return;_0x3c671e[_0x3426ac('0x24d3')]();}function _0x2d2028(_0x1c760f){var _0x1a2002=_0x5a037a;_0x1c760f[_0x1a2002('0x2185')]();}function _0x6e3836(_0x5a12b1){var _0x5d7ae4=_0x5a037a,_0x501f11=_0x5a12b1['keyCode'],_0x51d7a4=[0x1b,0x26,0x28];_0x51d7a4[_0x5d7ae4('0x1f38')](_0x501f11)>-0x1&&_0x5a12b1[_0x5d7ae4('0x2185')]();switch(_0x501f11){case 0xd:if(!_0x3c671e[_0x5d7ae4('0xcdc')])return;_0x3c671e['handleResultClick'](_0x3c671e[_0x5d7ae4('0xcdc')][_0x3c671e[_0x5d7ae4('0x1d9b')]]);break;case 0x1b:_0x3c671e[_0x5d7ae4('0x24d3')]();break;case 0x26:_0x3c671e[_0x5d7ae4('0x1d9b')]-0x1>=0x0&&(_0x3c671e[_0x5d7ae4('0x1d9b')]--,_0x3c671e[_0x5d7ae4('0x25ab')]());break;case 0x28:if(!_0x3c671e[_0x5d7ae4('0xcdc')])return;_0x3c671e[_0x5d7ae4('0x1d9b')]+0x1<_0x3c671e[_0x5d7ae4('0xcdc')][_0x5d7ae4('0x2587')]&&(_0x3c671e[_0x5d7ae4('0x1d9b')]++,_0x3c671e[_0x5d7ae4('0x25ab')]());break;default:break;}}function _0x41bb7f(_0x35e0a4){var _0x51fa26=_0x5a037a;if(_0x3c671e[_0x51fa26('0x1ca2')])return;_0x3c671e['selectedResultIndex']=_0x35e0a4;}function _0x598bb6(){var _0x9a5453=_0x5a037a;_0x3c671e[_0x9a5453('0x1ca2')]=!![],_0x2f78db['cancel'](_0x3c671e[_0x9a5453('0x2467')]),_0x3c671e[_0x9a5453('0x2467')]=_0x2f78db(function(){var _0x9063b3=_0x9a5453;_0x3c671e[_0x9063b3('0x1ca2')]=![];},0xfa);}function _0x3d6c46(_0x2ea629){var _0x17ebed=_0x5a037a;_0x3c671e['onResultClick']&&_0x3c671e[_0x17ebed('0x1623')]({'item':_0x2ea629}),_0x3c671e[_0x17ebed('0x24d3')]();}function _0x2f7347(){var _0x2d9909=_0x5a037a,_0xaa513f=_0x1238b0[_0x2d9909('0xe9e')]('.ms-search-bar-results'),_0x320a4e=angular[_0x2d9909('0x1aa8')](_0xaa513f['find']('.result')[_0x3c671e['selectedResultIndex']]);if(_0xaa513f&&_0x320a4e){var _0x4f8279=_0x320a4e['position']()[_0x2d9909('0x1508')]-0x8,_0x3e9b63=_0x320a4e['position']()[_0x2d9909('0x1508')]+_0x320a4e[_0x2d9909('0x2208')]()+0x8;_0x3c671e[_0x2d9909('0x895')](),_0xaa513f['scrollTop']()>_0x4f8279&&_0xaa513f['scrollTop'](_0x4f8279),_0x3e9b63>_0xaa513f[_0x2d9909('0x1de7')]()+_0xaa513f['scrollTop']()&&_0xaa513f[_0x2d9909('0x1f44')](_0x3e9b63-_0xaa513f[_0x2d9909('0x1de7')]());}}}function _0x22bed7(_0x187c73){var _0xe07a68=_0x1a8446;return{'restrict':'E','scope':{},'require':'msSearchBar','controller':_0xe07a68('0x5e'),'bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0x440fed,'compile':function _0x57cd6e(_0x228cfb){var _0x172eb4=_0xe07a68;return _0x228cfb['addClass'](_0x172eb4('0x16b2')),function _0x3e0793(_0x5c697f,_0x4ae8c7){var _0x1bab4f=_0x172eb4,_0x24e097=_0x187c73[_0x1bab4f('0xe9e')](_0x1bab4f('0x54c'));function _0x25d3f9(){var _0x38c345=_0x1bab4f;_0x4ae8c7['addClass'](_0x38c345('0x25a8'));if(_0x5c697f['vm'][_0x38c345('0x1108')]===_0x38c345('0x24a4')){_0x4ae8c7[_0x38c345('0x1b97')](_0x38c345('0x24a4'));var _0x331262=_0x4ae8c7[_0x38c345('0x1c8b')](_0x38c345('0x271e'));if(_0x331262)_0x331262[_0x38c345('0x1b97')](_0x38c345('0x24e'));}_0x24e097[_0x38c345('0x1b97')](_0x38c345('0x1c2d'));}function _0x3898e1(){var _0x10ab89=_0x1bab4f;_0x4ae8c7[_0x10ab89('0x10a7')](_0x10ab89('0x25a8'));if(_0x5c697f['vm'][_0x10ab89('0x1108')]===_0x10ab89('0x24a4')){_0x4ae8c7[_0x10ab89('0x10a7')](_0x10ab89('0x24a4'));var _0xb1ce2c=_0x4ae8c7[_0x10ab89('0x1c8b')]('md-toolbar');if(_0xb1ce2c)_0xb1ce2c['removeClass']('h-128');}_0x24e097['removeClass']('ms-search-bar-expanded');}_0x5c697f[_0x1bab4f('0x24d3')]=_0x3898e1,_0x5c697f[_0x1bab4f('0xbe7')]=_0x25d3f9;};}};}const _0x521298=_0x4fb511['p']+'src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts-[chunkhash].html';_0x2593e2[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x95f'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),'$q',_0x1a8446('0x1f4b')];function _0x2593e2(_0x1d374f,_0x2f33f1,_0x360522,_0x4815e3,_0x1f5fda,_0x472327){var _0x52eb98=_0x1a8446,_0x4818e0=this;_0x4818e0[_0x52eb98('0x582')]='',_0x4818e0[_0x52eb98('0x2617')]={'debounce':0x12c},_0x4818e0['resultsLoading']=![],_0x4818e0[_0x52eb98('0x1d9b')]=0x0,_0x4818e0['ignoreMouseEvents']=![],_0x4818e0['mobileBarActive']=![],_0x4818e0['results']=null,_0x4818e0['shortcuts']=[],_0x4818e0[_0x52eb98('0x55e')]={'ghostClass':'ghost','forceFallback':!![],'fallbackClass':_0x52eb98('0x20d2'),'onSort':function _0xc755b(){var _0x547c59=_0x52eb98;_0x4818e0[_0x547c59('0x1967')]();}};function _0x39730b(){var _0x10fa1b=_0x52eb98;_0x4818e0[_0x10fa1b('0x1aa2')]()['then'](function(_0x3a5ad2){var _0x3bbd76=_0x10fa1b;_0x4818e0[_0x3bbd76('0x21ac')]=_0x3a5ad2,_0x4818e0[_0x3bbd76('0x21ac')][_0x3bbd76('0x2587')]>0x0&&(_0x4818e0[_0x3bbd76('0xcdc')]=_0x3a5ad2);}),_0x1d374f['$watch']('MsShortcuts.query',function(_0x38816d,_0x59eea6){var _0x4237af=_0x10fa1b;if(angular[_0x4237af('0xec')](_0x38816d))return;if(angular[_0x4237af('0x22be')](_0x38816d,_0x59eea6))return;_0x4818e0[_0x4237af('0x5e9')]=!![],_0x4818e0['populateResults']()[_0x4237af('0xaa5')](function(_0x1a910e){var _0x1e934e=_0x4237af;_0x4818e0[_0x1e934e('0xcdc')]=_0x1a910e;},function(){var _0x2ebfca=_0x4237af;_0x4818e0[_0x2ebfca('0xcdc')]=[];})[_0x4237af('0x1889')](function(){var _0x379967=_0x4237af;_0x4818e0[_0x379967('0x5e9')]=![];});});}function _0x567d4b(){var _0x4f1a41=_0x52eb98,_0x30238a=[],_0x4856fa=_0x472327[_0x4f1a41('0x16cf')](),_0x28f4e4=_0x1f5fda[_0x4f1a41('0x213b')]();for(var _0x39a0d6=0x0;_0x39a0d6<_0x4856fa[_0x4f1a41('0x2587')];_0x39a0d6++){_0x4856fa[_0x39a0d6][_0x4f1a41('0x450')]&&_0x30238a[_0x4f1a41('0x1599')](_0x4856fa[_0x39a0d6]);}if(_0x4818e0[_0x4f1a41('0x582')]){_0x30238a=_0x30238a['filter'](function(_0x34da8b){var _0x2b0c64=_0x4f1a41;if(_0x34da8b[_0x2b0c64('0x110a')]['toLowerCase']()[_0x2b0c64('0x13d6')](_0x4818e0['query'][_0x2b0c64('0xcf6')]()))return!![];});for(var _0x5dd3a7=0x0;_0x5dd3a7<_0x30238a['length'];_0x5dd3a7++){_0x30238a[_0x5dd3a7]['hasShortcut']=![];for(var _0x182011=0x0;_0x182011<_0x4818e0[_0x4f1a41('0x21ac')][_0x4f1a41('0x2587')];_0x182011++){if(_0x4818e0[_0x4f1a41('0x21ac')][_0x182011][_0x4f1a41('0x15de')]===_0x30238a[_0x5dd3a7]['_id']){_0x30238a[_0x5dd3a7][_0x4f1a41('0x22db')]=!![];break;}}}}else _0x4818e0[_0x4f1a41('0x21ac')][_0x4f1a41('0x2587')]>0x0&&(_0x30238a=_0x4818e0[_0x4f1a41('0x21ac')]);return _0x4818e0[_0x4f1a41('0x1d9b')]=0x0,_0x4815e3(function(){_0x28f4e4['resolve'](_0x30238a);},0xfa),_0x28f4e4['promise'];}function _0x10b712(){var _0xbc9d4=_0x52eb98,_0xdb53ec=_0x1f5fda[_0xbc9d4('0x213b')](),_0x5a4204=angular['fromJson'](_0x2f33f1[_0xbc9d4('0x2122')]('motion.shortcuts'));return angular[_0xbc9d4('0xec')](_0x5a4204)&&(_0x5a4204=[{'title':_0xbc9d4('0x91a'),'icon':'icon-account-multiple','state':_0xbc9d4('0xd19'),'weight':0x5,'children':[],'uisref':'app.staff.agents','hasShortcut':!![]},{'title':_0xbc9d4('0xbb'),'icon':_0xbc9d4('0x104d'),'state':_0xbc9d4('0x1a49'),'weight':0xa,'children':[],'uisref':_0xbc9d4('0x1a49'),'hasShortcut':!![]}],_0x2f33f1[_0xbc9d4('0x5ad')](_0xbc9d4('0x1f7d'),angular[_0xbc9d4('0xfd8')](_0x5a4204))),_0xdb53ec['resolve'](_0x5a4204),_0xdb53ec[_0xbc9d4('0x159a')];}function _0x14165e(){var _0x5659f8=_0x52eb98,_0x46a294=_0x1f5fda[_0x5659f8('0x213b')]();return _0x2f33f1[_0x5659f8('0x5ad')]('motion.shortcuts',angular[_0x5659f8('0xfd8')](_0x4818e0[_0x5659f8('0x21ac')])),_0x4815e3(function(){var _0x3045f9=_0x5659f8;_0x46a294[_0x3045f9('0x149f')]({'success':!![]});},0xfa),_0x46a294[_0x5659f8('0x159a')];}function _0x491788(_0x47f8b2){var _0x3ce7c6=_0x52eb98;_0x47f8b2['hasShortcut']=!![],_0x4818e0['shortcuts'][_0x3ce7c6('0x1599')](_0x47f8b2),_0x4818e0[_0x3ce7c6('0x1967')]();}function _0x32a0fe(_0x1ec68a){var _0x133f49=_0x52eb98;_0x1ec68a[_0x133f49('0x22db')]=![];for(var _0x349da1=0x0;_0x349da1<_0x4818e0[_0x133f49('0x21ac')][_0x133f49('0x2587')];_0x349da1++){_0x4818e0[_0x133f49('0x21ac')][_0x349da1][_0x133f49('0x15de')]===_0x1ec68a[_0x133f49('0x15de')]&&(_0x4818e0[_0x133f49('0x21ac')][_0x133f49('0x1280')](_0x349da1,0x1),!_0x4818e0['query']&&(_0x4818e0[_0x133f49('0x21ac')][_0x133f49('0x2587')]===0x0?_0x4818e0[_0x133f49('0xcdc')]=null:_0x349da1>=_0x4818e0[_0x133f49('0x21ac')][_0x133f49('0x2587')]&&(_0x4818e0[_0x133f49('0x1d9b')]=_0x4818e0[_0x133f49('0x21ac')][_0x133f49('0x2587')]-0x1)));}_0x4818e0['saveShortcuts']();}function _0x18f063(_0x5c4a2a){_0x5c4a2a['hasShortcut']?_0x4818e0['removeShortcut'](_0x5c4a2a):_0x4818e0['addShortcut'](_0x5c4a2a);}function _0x53bedd(_0x484a08){var _0x4022a4=_0x52eb98;_0x484a08[_0x4022a4('0x2185')]();}function _0x3bacb6(_0x221657){var _0x43c030=_0x52eb98,_0x11823b=_0x221657[_0x43c030('0x8cb')],_0x55f1a4=[0x26,0x28];_0x55f1a4[_0x43c030('0x1f38')](_0x11823b)>-0x1&&_0x221657[_0x43c030('0x2185')]();switch(_0x11823b){case 0xd:_0x4818e0[_0x43c030('0x23f2')](_0x4818e0['results'][_0x4818e0[_0x43c030('0x1d9b')]]);break;case 0x26:_0x4818e0[_0x43c030('0x1d9b')]-0x1>=0x0&&(_0x4818e0['selectedResultIndex']--,_0x4818e0[_0x43c030('0x25ab')]());break;case 0x28:_0x4818e0[_0x43c030('0x1d9b')]+0x1<_0x4818e0[_0x43c030('0xcdc')][_0x43c030('0x2587')]&&(_0x4818e0[_0x43c030('0x1d9b')]++,_0x4818e0[_0x43c030('0x25ab')]());break;default:break;}}function _0x121896(_0x463bee){var _0x213172=_0x52eb98;if(_0x4818e0[_0x213172('0x1ca2')])return;_0x4818e0[_0x213172('0x1d9b')]=_0x463bee;}function _0x1f9501(){var _0x4a596f=_0x52eb98;_0x4818e0[_0x4a596f('0x1ca2')]=!![],_0x4815e3[_0x4a596f('0x2030')](_0x4818e0[_0x4a596f('0x2467')]),_0x4818e0['mouseEventIgnoreTimeout']=_0x4815e3(function(){var _0x25e7a3=_0x4a596f;_0x4818e0[_0x25e7a3('0x1ca2')]=![];},0xfa);}function _0x757669(){var _0x1ff534=_0x52eb98,_0x5c7cce=_0x360522[_0x1ff534('0xe9e')](_0x1ff534('0x10fe'))[_0x1ff534('0xe9e')](_0x1ff534('0x60f')),_0x3794e1=angular['element'](_0x5c7cce[_0x1ff534('0xe9e')](_0x1ff534('0x32d'))[_0x4818e0[_0x1ff534('0x1d9b')]]);if(_0x5c7cce&&_0x3794e1){var _0x3b3235=_0x3794e1[_0x1ff534('0x137c')]()['top']-0x8,_0x57e15f=_0x3794e1[_0x1ff534('0x137c')]()[_0x1ff534('0x1508')]+_0x3794e1['outerHeight']()+0x8;_0x4818e0[_0x1ff534('0x895')](),_0x5c7cce[_0x1ff534('0x1f44')]()>_0x3b3235&&_0x5c7cce[_0x1ff534('0x1f44')](_0x3b3235),_0x57e15f>_0x5c7cce[_0x1ff534('0x1de7')]()+_0x5c7cce[_0x1ff534('0x1f44')]()&&_0x5c7cce[_0x1ff534('0x1f44')](_0x57e15f-_0x5c7cce[_0x1ff534('0x1de7')]());}}function _0x1add52(){var _0x1cb8ca=_0x52eb98;_0x4818e0[_0x1cb8ca('0x248c')]=!_0x4818e0['mobileBarActive'];}_0x4818e0['populateResults']=_0x567d4b,_0x4818e0[_0x52eb98('0x1aa2')]=_0x10b712,_0x4818e0[_0x52eb98('0x1967')]=_0x14165e,_0x4818e0[_0x52eb98('0xfa9')]=_0x491788,_0x4818e0[_0x52eb98('0x1bfa')]=_0x32a0fe,_0x4818e0[_0x52eb98('0x23f2')]=_0x18f063,_0x4818e0[_0x52eb98('0x641')]=_0x53bedd,_0x4818e0[_0x52eb98('0x15e')]=_0x3bacb6,_0x4818e0['handleMouseenter']=_0x121896,_0x4818e0[_0x52eb98('0x895')]=_0x1f9501,_0x4818e0['ensureSelectedResultIsVisible']=_0x757669,_0x4818e0[_0x52eb98('0x25b4')]=_0x1add52,_0x39730b();}function _0x4f6d3a(){var _0x684754=_0x1a8446;return{'restrict':'E','scope':{},'require':_0x684754('0xa61'),'controller':_0x684754('0x13e1'),'bindToController':{},'templateUrl':_0x521298,'compile':function _0x2fe7cd(_0x311550){var _0x26c50d=_0x684754;return _0x311550[_0x26c50d('0x1b97')]('ms-shortcuts'),function _0x496138(){};}};}function _0x5d7b84(){var _0x4234f2=_0x1a8446;return{'restrict':'A','require':_0x4234f2('0x2561'),'link':function _0x5b553c(_0x4384a0,_0x4d39a0,_0x310f72,_0x49f3cc){_0x4384a0['$watch'](function(){var _0x26fa7a=a0_0x1149;return _0x49f3cc['isOpen']()&&!_0x49f3cc[_0x26fa7a('0x2255')]();},function(_0x5f3b89){var _0x258960=a0_0x1149;if(angular[_0x258960('0xec')](_0x5f3b89))return;_0x4d39a0[_0x258960('0x20a2')]()['toggleClass'](_0x258960('0xb74'),_0x5f3b89),angular[_0x258960('0x1aa8')]('html')[_0x258960('0x1714')]('sidenav-open',_0x5f3b89);});}};}const _0x5b0843=_0x5d7b84;_0x848b5e[_0x1a8446('0x1e33')]=[_0x1a8446('0xd9d')];function _0x848b5e(_0x1d07f7){return{'restrict':'E','link':function _0x301fca(_0x44ceaa,_0x4fce0f){var _0xff0bc6=a0_0x1149,_0x3516cb=_0x44ceaa[_0xff0bc6('0xc75')](_0xff0bc6('0x1517'),function(){var _0x459f92=_0xff0bc6;_0x1d07f7[_0x459f92('0x1df0')](_0x4fce0f)[_0x459f92('0xaa5')](function(){_0x3516cb(),_0x44ceaa=null,_0x4fce0f=null;});});}};}const _0x52cb70=_0x848b5e,_0x9031b4=_0x4fb511['p']+_0x1a8446('0x1c91'),_0x10f9e6=_0x4fb511['p']+_0x1a8446('0x16b7'),_0x212ef1=_0x4fb511['p']+_0x1a8446('0x24a9');_0x2b3837[_0x1a8446('0x1e33')]=[_0x1a8446('0x186b')],_0x40f509[_0x1a8446('0x1e33')]=[_0x1a8446('0x186b')];function _0x40f509(_0x13796c){var _0x3f36b2=_0x1a8446,_0x3fac71=this;_0x3fac71[_0x3f36b2('0x2374')]=undefined,_0x3fac71[_0x3f36b2('0x132c')]=_0x3f36b2('0x1127'),_0x3fac71[_0x3f36b2('0xd57')]=[],_0x3fac71['currentStep']=undefined,_0x3fac71[_0x3f36b2('0x533')]=0x1;function _0x19010d(_0x5f27fd){var _0x395af2=_0x3f36b2;return!(angular['isUndefined'](_0x5f27fd)||_0x5f27fd<0x1||_0x5f27fd>_0x3fac71[_0x395af2('0xd57')]['length']);}function _0x4dd5de(_0x11c766){var _0x5e0fe3=_0x3f36b2;_0x3fac71[_0x5e0fe3('0x132c')]=_0x11c766||'horizontal';}function _0x580a1f(_0x2b9e74){var _0x342f94=_0x3f36b2;_0x3fac71[_0x342f94('0x2374')]=_0x2b9e74;}function _0x22c63d(){var _0x4ba874=_0x3f36b2;_0x3fac71[_0x4ba874('0x1201')](0x1);}function _0x2b47b7(_0xed175c){var _0x382f2c=_0x3f36b2;if(!_0x19010d(_0xed175c))return null;return!!_0x3fac71['steps'][_0xed175c-0x1][_0x382f2c('0x165')][_0x382f2c('0x1e30')];}function _0x3028a9(_0xb73d49,_0x2d2f3e,_0x389b63){var _0x1acecf=_0x3f36b2,_0x231028={'element':_0xb73d49,'scope':_0x2d2f3e,'form':_0x389b63,'stepNumber':_0x2d2f3e[_0x1acecf('0x1419')]||_0x3fac71[_0x1acecf('0xd57')]['length']+0x1,'stepTitle':_0x2d2f3e[_0x1acecf('0xd8c')],'stepTitleTranslate':_0x2d2f3e[_0x1acecf('0x2783')]};return _0x3fac71[_0x1acecf('0xd57')][_0x1acecf('0x1599')](_0x231028),_0x3fac71['steps'][_0x1acecf('0x1015')](function(_0x3524c1,_0x18e1a0){var _0x2d958c=_0x1acecf;return _0x3524c1['stepNumber']-_0x18e1a0[_0x2d958c('0x19b0')];}),_0x231028;}function _0x559e6a(){var _0x25d800=_0x3f36b2;_0x3fac71[_0x25d800('0x1201')](_0x3fac71[_0x25d800('0x533')]);}function _0x380ad0(){_0x13796c(function(){var _0x49fcb6=a0_0x1149;for(var _0x33f912=0x0;_0x33f912<_0x3fac71['steps']['length'];_0x33f912++){_0x3fac71[_0x49fcb6('0xd57')][_0x33f912][_0x49fcb6('0xe1b')][_0x49fcb6('0x212b')](),_0x3fac71['steps'][_0x33f912][_0x49fcb6('0xe1b')][_0x49fcb6('0x27a7')]();}_0x3fac71['mainForm'][_0x49fcb6('0x212b')](),_0x3fac71[_0x49fcb6('0x2374')]['$setUntouched'](),_0x22c63d();});}function _0x17b6f1(_0x4b213b){var _0x4bff65=_0x3f36b2;if(!_0x19010d(_0x4b213b))return;_0x3fac71[_0x4bff65('0x533')]=_0x4b213b;if(_0x3fac71[_0x4bff65('0x132c')]===_0x4bff65('0x1127')){for(var _0x46e3f1=0x0;_0x46e3f1<_0x3fac71[_0x4bff65('0xd57')][_0x4bff65('0x2587')];_0x46e3f1++){_0x3fac71['steps'][_0x46e3f1][_0x4bff65('0x1aa8')][_0x4bff65('0x1120')]();}_0x3fac71[_0x4bff65('0xd57')][_0x3fac71[_0x4bff65('0x533')]-0x1][_0x4bff65('0x1aa8')][_0x4bff65('0x1e6d')]();}else{if(_0x3fac71[_0x4bff65('0x132c')]===_0x4bff65('0x25a9')){for(var _0x46176d=0x0;_0x46176d<_0x3fac71[_0x4bff65('0xd57')][_0x4bff65('0x2587')];_0x46176d++){_0x3fac71[_0x4bff65('0xd57')][_0x46176d][_0x4bff65('0x1aa8')][_0x4bff65('0xe9e')](_0x4bff65('0xc8c'))['hide']();}_0x3fac71[_0x4bff65('0xd57')][_0x3fac71['currentStepNumber']-0x1][_0x4bff65('0x1aa8')][_0x4bff65('0xe9e')](_0x4bff65('0xc8c'))[_0x4bff65('0x1e6d')]();}}}function _0x2a8b0c(_0x14610a){var _0x3f368c=_0x3f36b2;if(_0x2b47b7(_0x14610a))return;_0x3fac71[_0x3f368c('0x1201')](_0x14610a);}function _0x103253(){var _0x327e3=_0x3fac71['currentStepNumber']-0x1;for(var _0x23d25a=_0x327e3;_0x23d25a>=0x1;_0x23d25a--){if(!_0x2b47b7(_0x23d25a)){_0x327e3=_0x23d25a;break;}}_0x3fac71['setCurrentStep'](_0x327e3);}function _0x28b39a(){var _0x30aeec=_0x3f36b2,_0x254521=_0x3fac71['currentStepNumber']+0x1;for(var _0x91daf3=_0x254521;_0x91daf3<=_0x3fac71['steps'][_0x30aeec('0x2587')];_0x91daf3++){if(!_0x2b47b7(_0x91daf3)){_0x254521=_0x91daf3;break;}}_0x3fac71[_0x30aeec('0x1201')](_0x254521);}function _0xd5780e(){var _0x1ef891=_0x3f36b2;_0x3fac71['setCurrentStep'](_0x3fac71[_0x1ef891('0xd57')][_0x1ef891('0x2587')]);}function _0x3ba089(){var _0xa3467f=_0x3f36b2;return _0x3fac71[_0xa3467f('0x533')]===0x1;}function _0x48e04c(){var _0x244ca2=_0x3f36b2;return _0x3fac71[_0x244ca2('0x533')]===_0x3fac71[_0x244ca2('0xd57')]['length'];}function _0x29846c(_0x14c654){if(!_0x19010d(_0x14c654))return null;return _0x3fac71['currentStepNumber']===_0x14c654;}function _0x468849(_0x35e1f9){var _0x497308=_0x3f36b2;if(!_0x19010d(_0x35e1f9))return null;return _0x3fac71[_0x497308('0xd57')][_0x35e1f9-0x1]['scope'][_0x497308('0x9d8')];}function _0x5d2917(_0x52228a){var _0x4a93fa=_0x3f36b2;if(!_0x19010d(_0x52228a))return null;if(_0x468849(_0x52228a))return!![];return _0x3fac71['steps'][_0x52228a-0x1][_0x4a93fa('0xe1b')][_0x4a93fa('0x2bf')];}function _0x55e361(_0x5a76c9){if(!_0x19010d(_0x5a76c9))return null;var _0x59eec2=![];for(var _0x439e80=0x1;_0x439e80<_0x5a76c9;_0x439e80++){if(!_0x5d2917(_0x439e80)){_0x59eec2=!![];break;}}return _0x59eec2;}function _0x4886de(_0x1757cf){return!_0x2b47b7(_0x1757cf['stepNumber']);}function _0xd85a38(){var _0x4e8537=_0x3f36b2;return _0x3fac71[_0x4e8537('0x2374')][_0x4e8537('0x2bf')];}_0x3fac71[_0x3f36b2('0x1e5a')]=_0x4dd5de,_0x3fac71[_0x3f36b2('0x2826')]=_0x580a1f,_0x3fac71[_0x3f36b2('0x19e8')]=_0x3028a9,_0x3fac71['setupSteps']=_0x559e6a,_0x3fac71['resetForm']=_0x380ad0,_0x3fac71[_0x3f36b2('0x1201')]=_0x17b6f1,_0x3fac71[_0x3f36b2('0xb72')]=_0x2a8b0c,_0x3fac71[_0x3f36b2('0x227d')]=_0x103253,_0x3fac71['gotoNextStep']=_0x28b39a,_0x3fac71[_0x3f36b2('0x5ec')]=_0x22c63d,_0x3fac71[_0x3f36b2('0x1cd8')]=_0xd5780e,_0x3fac71['isFirstStep']=_0x3ba089,_0x3fac71['isLastStep']=_0x48e04c,_0x3fac71[_0x3f36b2('0xfc0')]=_0x29846c,_0x3fac71[_0x3f36b2('0x2859')]=_0x55e361,_0x3fac71[_0x3f36b2('0x213d')]=_0x468849,_0x3fac71[_0x3f36b2('0x16c0')]=_0x2b47b7,_0x3fac71[_0x3f36b2('0x2694')]=_0x4886de,_0x3fac71[_0x3f36b2('0x1ee2')]=_0x5d2917,_0x3fac71[_0x3f36b2('0x1f30')]=_0x19010d,_0x3fac71[_0x3f36b2('0x5d7')]=_0xd85a38;}function _0x97ae40(){var _0x23f985=_0x1a8446;return{'restrict':'A','scope':{},'require':['form',_0x23f985('0x14a8')],'priority':0x3e9,'controller':_0x23f985('0x268a'),'bindToController':{'model':_0x23f985('0xfdd')},'transclude':!![],'templateUrl':_0x9031b4,'compile':function _0x49de9e(_0x4b5f0f){var _0x2611bf=_0x23f985;return _0x4b5f0f[_0x2611bf('0x1b97')]('ms-stepper'),function _0x5a4720(_0x173a60,_0x38c81f,_0x160cae,_0x2ed32a){var _0x41d2c3=_0x2611bf,_0x4593eb=_0x2ed32a[0x0],_0x554d23=_0x2ed32a[0x1];_0x554d23[_0x41d2c3('0x1e5a')](_0x41d2c3('0x1127')),_0x554d23[_0x41d2c3('0x2826')](_0x4593eb),_0x554d23[_0x41d2c3('0x1a22')]();};}};}function _0x351f00(){var _0x3f8d77=_0x1a8446;return{'restrict':'E','require':['form',_0x3f8d77('0x9a7')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function _0x307f40(_0x5ba65a){var _0x3a7d6f=_0x3f8d77;return _0x5ba65a[_0x3a7d6f('0x1b97')]('ms-stepper-step'),function _0x563e59(_0x45824,_0x1c41a5,_0x1ad5a8,_0x4a585e){var _0x36e87d=_0x3a7d6f,_0x55ce84=_0x4a585e[0x0],_0x471711=_0x4a585e[0x1];_0x45824['optionalStep']=angular['isDefined'](_0x1ad5a8[_0x36e87d('0x9d8')]),_0x471711['registerStep'](_0x1c41a5,_0x45824,_0x55ce84),_0x1c41a5[_0x36e87d('0x1120')]();};}};}function _0x2b3837(_0x1f881f){var _0x17ad7b=_0x1a8446;return{'restrict':'A','scope':{},'require':[_0x17ad7b('0xe1b'),_0x17ad7b('0x5b0')],'priority':0x3e9,'controller':_0x17ad7b('0x268a'),'bindToController':{'model':_0x17ad7b('0xfdd')},'transclude':!![],'templateUrl':_0x10f9e6,'compile':function _0x5acf4b(_0x2295dd){var _0x4df6b2=_0x17ad7b;return _0x2295dd[_0x4df6b2('0x1b97')](_0x4df6b2('0x143c')),function _0xdbc2b3(_0x5d5000,_0x5222fa,_0xc541cd,_0x2f79e4){var _0x5d7f70=_0x2f79e4[0x0],_0x4919a1=_0x2f79e4[0x1];_0x1f881f(function(){var _0x5a4fe8=a0_0x1149;_0x4919a1[_0x5a4fe8('0x1e5a')](_0x5a4fe8('0x25a9')),_0x4919a1[_0x5a4fe8('0x2826')](_0x5d7f70),_0x4919a1[_0x5a4fe8('0x1a22')]();});};}};}function _0x37fe39(){var _0x2b2a9a=_0x1a8446;return{'restrict':'E','require':[_0x2b2a9a('0xe1b'),'^msVerticalStepper'],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x212ef1,'compile':function _0x330448(_0x2dab08){var _0x1bac08=_0x2b2a9a;return _0x2dab08[_0x1bac08('0x1b97')](_0x1bac08('0x279c')),function _0x50ea69(_0x270005,_0x183e4a,_0x38cbfe,_0x14082b){var _0x4ff877=_0x1bac08,_0x3c7db0=_0x14082b[0x0],_0x2efa38=_0x14082b[0x1];_0x270005[_0x4ff877('0x9d8')]=angular[_0x4ff877('0x21dc')](_0x38cbfe[_0x4ff877('0x9d8')]),_0x270005[_0x4ff877('0x158c')]=_0x2efa38['registerStep'](_0x183e4a,_0x270005,_0x3c7db0),_0x270005[_0x4ff877('0x1819')]=_0x2efa38,_0x183e4a[_0x4ff877('0xe9e')](_0x4ff877('0xc8c'))[_0x4ff877('0x1120')]();};}};}const _0x223fa7=_0x4fb511['p']+_0x1a8446('0x5e5');;function _0x3714d5(){var _0x24a66=_0x1a8446,_0x32ee42=this;_0x32ee42[_0x24a66('0xac3')]=_0x4c53c7,_0x32ee42[_0x24a66('0xe97')]=_0x153d3e;function _0x4c53c7(_0x2e00b8){var _0x11e318=_0x24a66;_0x2e00b8==_0x11e318('0xbe1')?$('#tab-container')[_0x11e318('0xfb0')]()[_0x11e318('0x11c6')]({'scrollLeft':_0x11e318('0x2294')},0x3e8):$(_0x11e318('0x969'))[_0x11e318('0xfb0')]()[_0x11e318('0x11c6')]({'scrollLeft':_0x11e318('0x156c')},0x3e8);}function _0x153d3e(_0x32ccc2){var _0x3432f2=_0x24a66;switch(_0x3a657f()){case'both':return!![];case'left':return _0x32ccc2=='left'?!![]:![];case _0x3432f2('0x24af'):return _0x32ccc2=='right'?!![]:![];case _0x3432f2('0x117'):return![];default:return![];}}function _0x3a657f(){var _0x5ae5bf=_0x24a66,_0x50df05=document[_0x5ae5bf('0x781')](_0x5ae5bf('0x1cc1')),_0x370418=document['getElementById'](_0x5ae5bf('0x12c6'));if(_0x370418['scrollWidth']>_0x50df05[_0x5ae5bf('0x2838')]&&_0x50df05[_0x5ae5bf('0x931')]==0x0&&_0x370418[_0x5ae5bf('0x931')]==0x0)return _0x5ae5bf('0x24af');else{if(_0x370418[_0x5ae5bf('0x2838')]>_0x50df05[_0x5ae5bf('0x2838')]&&_0x370418[_0x5ae5bf('0x931')]>_0x50df05[_0x5ae5bf('0x931')]&&_0x50df05[_0x5ae5bf('0x2838')]+_0x370418[_0x5ae5bf('0x931')]>=_0x370418[_0x5ae5bf('0x2838')])return _0x5ae5bf('0xbe1');else return _0x370418[_0x5ae5bf('0x2838')]>_0x50df05[_0x5ae5bf('0x2838')]&&_0x370418[_0x5ae5bf('0x931')]>_0x50df05[_0x5ae5bf('0x931')]&&_0x50df05['scrollWidth']+_0x370418[_0x5ae5bf('0x931')]<_0x370418[_0x5ae5bf('0x2838')]?_0x5ae5bf('0xa16'):_0x5ae5bf('0x117');}}}function _0x4d3e14(){var _0x59b29c=_0x1a8446;return{'restrict':'E','scope':{},'transclude':!![],'controller':_0x59b29c('0xc20'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x223fa7,'compile':function _0x221448(_0x36bbff){var _0x3fe337=_0x59b29c;return _0x36bbff[_0x3fe337('0x1b97')](_0x3fe337('0x93c')),function _0x296999(){};}};}_0x306fb8[_0x1a8446('0x1e33')]=[_0x1a8446('0x186b'),'$q'];function _0x36c46e(){var _0x56f501=_0x1a8446,_0x51bd14=this;_0x51bd14[_0x56f501('0x882')]=undefined,_0x51bd14['setScrollEl']=_0x1aa008,_0x51bd14[_0x56f501('0x1390')]=_0x479e1f;function _0x1aa008(_0x1b85ae){_0x51bd14['scrollEl']=_0x1b85ae;}function _0x479e1f(){var _0x24714e=_0x56f501;return _0x51bd14[_0x24714e('0x882')];}}function _0xf81bb1(){var _0x44a633=_0x1a8446;return{'scope':{'msTimeline':'=?','loadMore':_0x44a633('0x1e14')},'controller':_0x44a633('0x8a1'),'compile':function _0x4ab230(_0xf18668){var _0x177926=_0x44a633;return _0xf18668['addClass'](_0x177926('0xbe4')),function _0x2d48cb(_0x573c49,_0x4ac946,_0x38f7ec,_0x234249){var _0x3ad73f=_0x177926,_0xb2f37b=angular[_0x3ad73f('0x1aa8')]('');_0x4ac946[_0x3ad73f('0x1923')](_0xb2f37b);var _0x4b49dd={'scrollEl':_0x3ad73f('0xb24')};_0x4b49dd=angular[_0x3ad73f('0x5c5')](_0x4b49dd,_0x573c49['msTimeline'],{});var _0x47c00c=angular[_0x3ad73f('0x1aa8')](_0x4b49dd[_0x3ad73f('0x882')]);_0x234249[_0x3ad73f('0x1b1f')](_0x47c00c);var _0x3f0f6d=0x90;_0x252d08();function _0xc059ea(){var _0x5f361c=_0x3ad73f;_0x47c00c['scrollTop']()+_0x47c00c[_0x5f361c('0x1de7')]()+_0x3f0f6d>_0xb2f37b['position']()[_0x5f361c('0x1508')]&&(_0xb2f37b[_0x5f361c('0x1b97')](_0x5f361c('0x1e6d')),_0x54e545(),_0x573c49[_0x5f361c('0x1e4d')]()[_0x5f361c('0xaa5')](function(){var _0x1ca77a=_0x5f361c;_0xb2f37b[_0x1ca77a('0x10a7')](_0x1ca77a('0x1e6d')),_0x252d08();},function(){var _0x4ff1b3=_0x5f361c;_0xb2f37b[_0x4ff1b3('0xf6d')]();}));}function _0x252d08(){var _0x1b77b7=_0x3ad73f;_0x47c00c['on'](_0x1b77b7('0x2263'),_0xc059ea);}function _0x54e545(){var _0x2111e1=_0x3ad73f;_0x47c00c[_0x2111e1('0x14')]('scroll',_0xc059ea);}_0x573c49[_0x3ad73f('0xc75')]('$destroy',function(){_0x54e545();});};}};}function _0x306fb8(_0x3ab51f,_0x35518f){return{'scope':!![],'require':'^msTimeline','compile':function _0x26557a(_0x4e392f){var _0x1c5195=a0_0x1149;return _0x4e392f[_0x1c5195('0x1b97')](_0x1c5195('0x1703'))['addClass'](_0x1c5195('0x1ad2')),function _0x201c1d(_0x5ab0ab,_0xf44fca,_0x5c12c3,_0x26d3dd){var _0x51d7b5=_0x1c5195,_0x27d2ec=0x48,_0x5d789a=![],_0x18b740=![],_0x386eb2=_0x26d3dd['getScrollEl']();_0x164381();function _0x164381(){var _0x11fe31=a0_0x1149;_0xf44fca[_0x11fe31('0xe9e')]('ms-card')?_0x5ab0ab[_0x11fe31('0xc75')](_0x11fe31('0x1a74'),function(_0x28ccf9,_0x5de8a1){var _0x43c608=_0x11fe31,_0xe90a79=angular[_0x43c608('0x1aa8')](_0x5de8a1[0x0]);_0x3ca0d2(_0xe90a79)['then'](function(){_0x3ab51f(function(){_0x5d789a=!![];});});}):_0x3ca0d2(_0xf44fca)[_0x11fe31('0xaa5')](function(){_0x3ab51f(function(){_0x5d789a=!![];});}),_0x386eb2['on'](_0x11fe31('0x2263'),_0x168f14),_0x168f14();}var _0x4762ed=_0x5ab0ab[_0x51d7b5('0x1ccf')](function(){return _0x5d789a&&_0x18b740;},function(_0x1f00f5,_0x8deae7){var _0x15f7e9=_0x51d7b5;if(angular[_0x15f7e9('0x22be')](_0x1f00f5,_0x8deae7))return;_0x1f00f5&&(_0xf44fca[_0x15f7e9('0x10a7')](_0x15f7e9('0x1ad2'))[_0x15f7e9('0x1b97')]('animate'),_0x4762ed());},!![]);function _0x3ca0d2(_0x3cedec){var _0x4d1117=_0x51d7b5,_0xd69f6c=_0x35518f[_0x4d1117('0x213b')](),_0x26a8be=_0x3cedec[_0x4d1117('0xe9e')](_0x4d1117('0xcbd'));return _0x26a8be['length']>0x0?_0x26a8be['on'](_0x4d1117('0x259c'),function(){var _0x49cbf3=_0x4d1117;_0xd69f6c[_0x49cbf3('0x149f')](_0x49cbf3('0x148d'));}):_0xd69f6c[_0x4d1117('0x149f')](_0x4d1117('0x17c2')),_0xd69f6c['promise'];}function _0x168f14(){var _0x2654de=_0x51d7b5;_0x386eb2[_0x2654de('0x1f44')]()+_0x386eb2[_0x2654de('0x1de7')]()>_0xf44fca[_0x2654de('0x137c')]()[_0x2654de('0x1508')]+_0x27d2ec&&(_0x3ab51f(function(){_0x18b740=!![];}),_0x386eb2[_0x2654de('0x14')]('scroll',_0x168f14));}};}};}_0xd73db5[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0x21b3'),'$window',_0x1a8446('0xcb3'),_0x1a8446('0x1249'),_0x1a8446('0x1f21'),_0x1a8446('0x10ef')];function _0xd73db5(_0xfcc27,_0x356967,_0xf611fb,_0x866f6e,_0x5b7c6b,_0x37b00b,_0x177c72,_0x47d502,_0x333913){var _0x5503ac=_0x1a8446;typeof String[_0x5503ac('0xc11')]['trim']!=='function'&&(String[_0x5503ac('0xc11')]['trim']=function(){var _0x217e74=_0x5503ac;return this[_0x217e74('0x170d')](/^\s+|\s+$/g,'');});_0xfcc27[_0x5503ac('0x106a')]=_0x177c72[_0x5503ac('0x106a')]||_0x177c72['autostart'];_0x47d502[_0x5503ac('0x1869')]()[_0x5503ac('0x2497')]()['length']===0x0?_0x47d502[_0x5503ac('0x1923')](_0x333913(_0x5503ac('0x1955'))(_0xfcc27)):_0x47d502[_0x5503ac('0x1923')](_0x333913(_0x47d502['contents']())(_0xfcc27));_0xfcc27[_0x5503ac('0x1c21')]=_0xfcc27[_0x5503ac('0xe9c')]||0x3e8,_0xfcc27[_0x5503ac('0xbfe')]=null,_0xfcc27[_0x5503ac('0x1934')]=null,_0xfcc27[_0x5503ac('0x1c04')]=null,_0xfcc27[_0x5503ac('0x285b')]=_0xfcc27[_0x5503ac('0x2049')]&&parseInt(_0xfcc27[_0x5503ac('0x2049')],0xa)>=0x0?parseInt(_0xfcc27[_0x5503ac('0x2049')],0xa):undefined,_0xfcc27['isRunning']=![],_0xfcc27[_0x5503ac('0x1ccf')](_0x5503ac('0x1f93'),function(_0x5b5a42,_0x8ccc9b){var _0xd9f5dc=_0x5503ac;_0x5b5a42!==_0x8ccc9b&&_0xfcc27[_0xd9f5dc('0x6f6')]&&_0xfcc27[_0xd9f5dc('0x1186')]();}),_0xfcc27['$on'](_0x5503ac('0x180f'),function(){_0xfcc27['start']();}),_0xfcc27[_0x5503ac('0xc75')]('timer-resume',function(){_0xfcc27['resume']();}),_0xfcc27['$on'](_0x5503ac('0x33e'),function(){var _0x2926da=_0x5503ac;_0xfcc27[_0x2926da('0xfb0')]();}),_0xfcc27[_0x5503ac('0xc75')](_0x5503ac('0x997'),function(){_0xfcc27['clear']();}),_0xfcc27[_0x5503ac('0xc75')](_0x5503ac('0x266c'),function(_0x51faa3,_0x2de0a8){_0xfcc27['countdown']=_0x2de0a8;});function _0x31ce46(){var _0x40239f=_0x5503ac;_0xfcc27[_0x40239f('0x1c04')]&&clearTimeout(_0xfcc27[_0x40239f('0x1c04')]);}_0xfcc27[_0x5503ac('0x1186')]=function(){var _0x5a7a76=_0x5503ac,_0x14ec37=_0x420d43()(),_0x1ad13b=_0xfcc27[_0x5a7a76('0x1f93')]?_0x420d43()(_0xfcc27[_0x5a7a76('0x1f93')]):null;!_0x1ad13b||_0x1ad13b>_0x14ec37?_0xfcc27['startTime']=_0x14ec37:_0xfcc27[_0x5a7a76('0xbfe')]=_0x1ad13b;var _0x31802f=_0xfcc27['endTimeAttr']?_0x420d43()(_0xfcc27[_0x5a7a76('0x5c6')]):null;!_0x31802f||_0x31802f<_0x14ec37?_0xfcc27[_0x5a7a76('0x1934')]=null:_0xfcc27[_0x5a7a76('0x1934')]=_0x31802f,!_0xfcc27[_0x5a7a76('0x285b')]&&(_0xfcc27['countdown']=_0xfcc27[_0x5a7a76('0x2049')]&&parseInt(_0xfcc27['countdownAttr'],0xa)>0x0?parseInt(_0xfcc27[_0x5a7a76('0x78d')],0xa):undefined),_0x31ce46(),_0x36ddc9(),_0xfcc27[_0x5a7a76('0x6f6')]=!![];},_0x47d502[0x0][_0x5503ac('0x1186')]=_0xfcc27[_0x5503ac('0x1186')],_0xfcc27['resume']=function(){var _0x833b14=_0x5503ac;_0x31ce46(),_0xfcc27[_0x833b14('0x2049')]&&(_0xfcc27['countdown']+=0x1),_0xfcc27[_0x833b14('0xbfe')]=_0x420d43()()[_0x833b14('0x72c')](_0x420d43()(_0xfcc27[_0x833b14('0x573')])[_0x833b14('0x72c')](_0x420d43()(_0xfcc27[_0x833b14('0xbfe')]))),_0x36ddc9(),_0xfcc27[_0x833b14('0x6f6')]=!![];},_0x47d502[0x0][_0x5503ac('0x3d9')]=_0xfcc27[_0x5503ac('0x3d9')],_0xfcc27[_0x5503ac('0xfb0')]=function(){var _0x432882=_0x5503ac;_0xfcc27[_0x432882('0x11e7')](),_0xfcc27['$emit'](_0x432882('0x71b'),{'timeoutId':_0xfcc27[_0x432882('0x1c04')],'millis':_0xfcc27[_0x432882('0x1196')],'seconds':_0xfcc27[_0x432882('0x116c')],'minutes':_0xfcc27[_0x432882('0x227c')],'hours':_0xfcc27[_0x432882('0x1c7c')],'days':_0xfcc27[_0x432882('0x101')]});},_0xfcc27[_0x5503ac('0x167c')]=_0xfcc27[_0x5503ac('0xfb0')],_0x47d502[0x0][_0x5503ac('0xfb0')]=_0xfcc27['stop'],_0x47d502[0x0]['pause']=_0xfcc27[_0x5503ac('0xfb0')],_0xfcc27['clear']=function(){var _0x1a44a2=_0x5503ac;_0xfcc27[_0x1a44a2('0x573')]=_0x420d43()(),_0x31ce46(),_0xfcc27[_0x1a44a2('0x1c04')]=null,_0xfcc27[_0x1a44a2('0x6f6')]=![];},_0x47d502[0x0][_0x5503ac('0x11e7')]=_0xfcc27[_0x5503ac('0x11e7')],_0x47d502[_0x5503ac('0x1f46')](_0x5503ac('0x12d0'),function(){var _0x1a2539=_0x5503ac;_0x31ce46(),_0xfcc27[_0x1a2539('0x6f6')]=![];});function _0x4c983c(){var _0xae8f4d=_0x5503ac;_0x177c72[_0xae8f4d('0xbfe')]!==undefined&&(_0xfcc27[_0xae8f4d('0x1196')]=_0x420d43()()[_0xae8f4d('0x72c')](_0x420d43()(_0xfcc27[_0xae8f4d('0xbfe')])));if(!_0xfcc27['maxTimeUnit']||_0xfcc27[_0xae8f4d('0xdae')]===_0xae8f4d('0xa7c'))_0xfcc27[_0xae8f4d('0x116c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x3e8%0x3c),_0xfcc27[_0xae8f4d('0x227c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27['millis']/0xea60%0x3c),_0xfcc27[_0xae8f4d('0x1c7c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27['millis']/0x36ee80%0x18),_0xfcc27[_0xae8f4d('0x101')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x36ee80/0x18),_0xfcc27['months']=0x0,_0xfcc27[_0xae8f4d('0x13f6')]=0x0;else{if(_0xfcc27['maxTimeUnit']===_0xae8f4d('0xeca'))_0xfcc27['seconds']=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x3e8),_0xfcc27[_0xae8f4d('0x227c')]=0x0,_0xfcc27['hours']=0x0,_0xfcc27['days']=0x0,_0xfcc27['months']=0x0,_0xfcc27[_0xae8f4d('0x13f6')]=0x0;else{if(_0xfcc27[_0xae8f4d('0xdae')]===_0xae8f4d('0x9cf'))_0xfcc27[_0xae8f4d('0x116c')]=Math['floor'](_0xfcc27[_0xae8f4d('0x1196')]/0x3e8%0x3c),_0xfcc27[_0xae8f4d('0x227c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27['millis']/0xea60),_0xfcc27['hours']=0x0,_0xfcc27[_0xae8f4d('0x101')]=0x0,_0xfcc27[_0xae8f4d('0x21fc')]=0x0,_0xfcc27['years']=0x0;else{if(_0xfcc27[_0xae8f4d('0xdae')]==='hour')_0xfcc27[_0xae8f4d('0x116c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x3e8%0x3c),_0xfcc27[_0xae8f4d('0x227c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0xea60%0x3c),_0xfcc27[_0xae8f4d('0x1c7c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27['millis']/0x36ee80),_0xfcc27[_0xae8f4d('0x101')]=0x0,_0xfcc27[_0xae8f4d('0x21fc')]=0x0,_0xfcc27[_0xae8f4d('0x13f6')]=0x0;else{if(_0xfcc27[_0xae8f4d('0xdae')]===_0xae8f4d('0xae9'))_0xfcc27['seconds']=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x3e8%0x3c),_0xfcc27[_0xae8f4d('0x227c')]=Math['floor'](_0xfcc27[_0xae8f4d('0x1196')]/0xea60%0x3c),_0xfcc27[_0xae8f4d('0x1c7c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x36ee80%0x18),_0xfcc27[_0xae8f4d('0x101')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x36ee80/0x18%0x1e),_0xfcc27[_0xae8f4d('0x21fc')]=Math['floor'](_0xfcc27['millis']/0x36ee80/0x18/0x1e),_0xfcc27['years']=0x0;else _0xfcc27['maxTimeUnit']===_0xae8f4d('0x1316')&&(_0xfcc27[_0xae8f4d('0x116c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x3e8%0x3c),_0xfcc27[_0xae8f4d('0x227c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0xea60%0x3c),_0xfcc27[_0xae8f4d('0x1c7c')]=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x36ee80%0x18),_0xfcc27['days']=Math[_0xae8f4d('0x20cb')](_0xfcc27['millis']/0x36ee80/0x18%0x1e),_0xfcc27['months']=Math[_0xae8f4d('0x20cb')](_0xfcc27[_0xae8f4d('0x1196')]/0x36ee80/0x18/0x1e%0xc),_0xfcc27[_0xae8f4d('0x13f6')]=Math[_0xae8f4d('0x20cb')](_0xfcc27['millis']/0x36ee80/0x18/0x16d));}}}}_0xfcc27[_0xae8f4d('0x21d2')]=_0xfcc27[_0xae8f4d('0x116c')]===0x1||_0xfcc27[_0xae8f4d('0x116c')]===0x0?'':'s',_0xfcc27[_0xae8f4d('0x1115')]=_0xfcc27[_0xae8f4d('0x227c')]===0x1||_0xfcc27[_0xae8f4d('0x227c')]===0x0?'':'s',_0xfcc27[_0xae8f4d('0x439')]=_0xfcc27[_0xae8f4d('0x1c7c')]===0x1||_0xfcc27['hours']===0x0?'':'s',_0xfcc27[_0xae8f4d('0xd2f')]=_0xfcc27[_0xae8f4d('0x101')]===0x1||_0xfcc27[_0xae8f4d('0x101')]===0x0?'':'s',_0xfcc27[_0xae8f4d('0x1640')]=_0xfcc27[_0xae8f4d('0x21fc')]===0x1||_0xfcc27[_0xae8f4d('0x21fc')]===0x0?'':'s',_0xfcc27[_0xae8f4d('0x26b9')]=_0xfcc27['years']===0x1||_0xfcc27[_0xae8f4d('0x13f6')]===0x0?'':'s',_0xfcc27['sseconds']=_0xfcc27[_0xae8f4d('0x116c')]<0xa?'0'+_0xfcc27[_0xae8f4d('0x116c')]:_0xfcc27['seconds'],_0xfcc27[_0xae8f4d('0xf33')]=_0xfcc27[_0xae8f4d('0x227c')]<0xa?'0'+_0xfcc27[_0xae8f4d('0x227c')]:_0xfcc27[_0xae8f4d('0x227c')],_0xfcc27[_0xae8f4d('0xd58')]=_0xfcc27['hours']<0xa?'0'+_0xfcc27[_0xae8f4d('0x1c7c')]:_0xfcc27['hours'],_0xfcc27[_0xae8f4d('0x93')]=_0xfcc27['days']<0xa?'0'+_0xfcc27['days']:_0xfcc27['days'],_0xfcc27['mmonths']=_0xfcc27[_0xae8f4d('0x21fc')]<0xa?'0'+_0xfcc27[_0xae8f4d('0x21fc')]:_0xfcc27[_0xae8f4d('0x21fc')],_0xfcc27['yyears']=_0xfcc27[_0xae8f4d('0x13f6')]<0xa?'0'+_0xfcc27['years']:_0xfcc27[_0xae8f4d('0x13f6')];}var _0x36ddc9=function _0x5c82a5(){var _0x251ef=_0x5503ac;_0xfcc27[_0x251ef('0x1196')]=_0x420d43()()['diff'](_0xfcc27[_0x251ef('0xbfe')]);var _0x4636a8=_0xfcc27[_0x251ef('0x1196')]%0x3e8;_0xfcc27[_0x251ef('0x5c6')]&&(_0xfcc27[_0x251ef('0x1196')]=_0x420d43()(_0xfcc27['endTime'])[_0x251ef('0x72c')](_0x420d43()()),_0x4636a8=_0xfcc27[_0x251ef('0x1c21')]-_0xfcc27['millis']%0x3e8);_0xfcc27['countdownAttr']&&(_0xfcc27[_0x251ef('0x1196')]=_0xfcc27[_0x251ef('0x285b')]*0x3e8);if(_0xfcc27[_0x251ef('0x1196')]<0x0){_0xfcc27[_0x251ef('0xfb0')](),_0xfcc27[_0x251ef('0x1196')]=0x0,_0x4c983c();_0xfcc27[_0x251ef('0x1257')]&&_0xfcc27[_0x251ef('0x26af')](_0xfcc27[_0x251ef('0x1257')]);return;}_0x4c983c(),_0xfcc27[_0x251ef('0x1c04')]=setTimeout(function(){var _0x4539aa=_0x251ef;_0x5c82a5(),_0xfcc27[_0x4539aa('0x1c2b')]();},_0xfcc27[_0x251ef('0x1c21')]-_0x4636a8),_0xfcc27[_0x251ef('0x55b')](_0x251ef('0x27db'),{'timeoutId':_0xfcc27[_0x251ef('0x1c04')],'millis':_0xfcc27[_0x251ef('0x1196')]});if(_0xfcc27['countdown']>0x0)_0xfcc27[_0x251ef('0x285b')]--;else _0xfcc27['countdown']<=0x0&&(_0xfcc27[_0x251ef('0xfb0')](),_0xfcc27[_0x251ef('0x1257')]&&_0xfcc27['$eval'](_0xfcc27[_0x251ef('0x1257')]));};(_0xfcc27[_0x5503ac('0x106a')]===undefined||_0xfcc27['autoStart']===!![])&&_0xfcc27[_0x5503ac('0x1186')]();}function _0x489d14(){var _0x322e9e=_0x1a8446;return{'restrict':'EA','replace':![],'scope':{'intervalAttr':_0x322e9e('0x1647'),'startTimeAttr':_0x322e9e('0x23f6'),'endTimeAttr':_0x322e9e('0x2435'),'countdownAttr':'=countdown','autoStart':'&autoStart','maxTimeUnit':'='},'controller':_0x322e9e('0x1c86')};}const _0x4ce690=_0x4fb511['p']+_0x1a8446('0x1096');;function _0x16eab9(){var _0x104f22=_0x1a8446;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x104f22('0x51'),function _0x2c7088(_0x8abcb){var _0x4735a8=_0x104f22;_0x8abcb['timezone']=[{'name':'Europe/Andorra','utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['AD']},{'name':_0x4735a8('0x1538'),'utcOffset':0xf0,'offsetStr':_0x4735a8('0x69'),'countries':['AE','OM']},{'name':_0x4735a8('0x1c8'),'utcOffset':0x10e,'offsetStr':_0x4735a8('0x1ddf'),'countries':['AF']},{'name':_0x4735a8('0x2353'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AL']},{'name':_0x4735a8('0x1f41'),'utcOffset':0xf0,'offsetStr':_0x4735a8('0x69'),'countries':['AM']},{'name':_0x4735a8('0x141b'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AQ']},{'name':_0x4735a8('0x28b'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AQ']},{'name':'Antarctica/Mawson','utcOffset':0x12c,'offsetStr':'+05:00','countries':['AQ']},{'name':_0x4735a8('0x268c'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['AQ']},{'name':'Antarctica/Casey','utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['AQ']},{'name':'Antarctica/Vostok','utcOffset':0x168,'offsetStr':_0x4735a8('0x17b4'),'countries':['AQ']},{'name':_0x4735a8('0x1c17'),'utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['AQ']},{'name':_0x4735a8('0x2bd'),'utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['AQ']},{'name':_0x4735a8('0x126c'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['AQ']},{'name':_0x4735a8('0x7f4'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x4735a8('0x1c9d'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':_0x4735a8('0xe34'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':_0x4735a8('0x13a8'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':'America/Argentina/Tucuman','utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':'America/Argentina/Catamarca','utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':_0x4735a8('0x2013'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x4735a8('0x1547'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':_0x4735a8('0xc03'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':_0x4735a8('0x1d94'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':_0x4735a8('0x1f8f'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x4735a8('0xa0'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['AR']},{'name':_0x4735a8('0x25f1'),'utcOffset':-0x294,'offsetStr':_0x4735a8('0x700'),'countries':['AS','UM']},{'name':_0x4735a8('0x1ded'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['AT']},{'name':_0x4735a8('0x162d'),'utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['AU']},{'name':_0x4735a8('0x1404'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0x4735a8('0x1349'),'utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['AU']},{'name':_0x4735a8('0x12a0'),'utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['AU']},{'name':'Australia/Melbourne','utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['AU']},{'name':'Australia/Sydney','utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['AU']},{'name':'Australia/Broken_Hill','utcOffset':0x276,'offsetStr':_0x4735a8('0x35d'),'countries':['AU']},{'name':_0x4735a8('0x1a05'),'utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['AU']},{'name':_0x4735a8('0xdc7'),'utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['AU']},{'name':_0x4735a8('0x2508'),'utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},{'name':'Australia/Darwin','utcOffset':0x23a,'offsetStr':_0x4735a8('0x23ed'),'countries':['AU']},{'name':_0x4735a8('0xa3f'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['AU']},{'name':_0x4735a8('0x211e'),'utcOffset':0x20d,'offsetStr':'+08:45','countries':['AU']},{'name':_0x4735a8('0x221f'),'utcOffset':0xf0,'offsetStr':_0x4735a8('0x69'),'countries':['AZ']},{'name':_0x4735a8('0xe25'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BB']},{'name':_0x4735a8('0x240b'),'utcOffset':0x168,'offsetStr':_0x4735a8('0x17b4'),'countries':['BD']},{'name':_0x4735a8('0x23a3'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['BE']},{'name':_0x4735a8('0xc36'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['BG']},{'name':_0x4735a8('0x21ea'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BM']},{'name':'Asia/Brunei','utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['BN']},{'name':_0x4735a8('0x1cdf'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},{'name':'America/Noronha','utcOffset':-0x78,'offsetStr':_0x4735a8('0x1977'),'countries':['BR']},{'name':_0x4735a8('0xbb7'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['BR']},{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':'America/Recife','utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['BR']},{'name':_0x4735a8('0x169b'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['BR']},{'name':_0x4735a8('0x9e0'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['BR']},{'name':_0x4735a8('0x19f0'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x4735a8('0x1622'),'utcOffset':-0x78,'offsetStr':_0x4735a8('0x1977'),'countries':['BR']},{'name':_0x4735a8('0x2439'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x4735a8('0xd2b'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['BR']},{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['BR']},{'name':_0x4735a8('0xc77'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':'America/Boa_Vista','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':'America/Manaus','utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['BR']},{'name':_0x4735a8('0x1f16'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['BR']},{'name':_0x4735a8('0x16f2'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['BR']},{'name':_0x4735a8('0x2144'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['BS']},{'name':_0x4735a8('0x2092'),'utcOffset':0x168,'offsetStr':_0x4735a8('0x17b4'),'countries':['BT']},{'name':_0x4735a8('0x1ad6'),'utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['BY']},{'name':_0x4735a8('0x2475'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['BZ']},{'name':'America/St_Johns','utcOffset':-0xd2,'offsetStr':_0x4735a8('0xc4c'),'countries':['CA']},{'name':_0x4735a8('0x1682'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['CA']},{'name':_0x4735a8('0x16f4'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['CA']},{'name':_0x4735a8('0x108c'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0x4735a8('0x5ca'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['CA']},{'name':_0x4735a8('0x1c72'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['CA']},{'name':_0x4735a8('0xa5a'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['CA']},{'name':_0x4735a8('0xb42'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['CA']},{'name':_0x4735a8('0x112f'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['CA']},{'name':_0x4735a8('0x1e7'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x4735a8('0x11a6'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['CA']},{'name':_0x4735a8('0x1e2c'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['CA']},{'name':_0x4735a8('0x27d5'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':'America/Rankin_Inlet','utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['CA']},{'name':'America/Winnipeg','utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x4735a8('0xfd3'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['CA']},{'name':_0x4735a8('0x1f1e'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['CA']},{'name':_0x4735a8('0xf52'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['CA']},{'name':_0x4735a8('0x1ad'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['CA']},{'name':_0x4735a8('0x1bc1'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['CA']},{'name':_0x4735a8('0x1c6'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['CA']},{'name':_0x4735a8('0x8ae'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['CA']},{'name':_0x4735a8('0x45d'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['CA']},{'name':_0x4735a8('0x9bf'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['CA']},{'name':_0x4735a8('0xdfe'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['CA']},{'name':_0x4735a8('0x1b67'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},{'name':'America/Whitehorse','utcOffset':-0x1e0,'offsetStr':_0x4735a8('0xef8'),'countries':['CA']},{'name':_0x4735a8('0x2455'),'utcOffset':-0x1e0,'offsetStr':_0x4735a8('0xef8'),'countries':['CA']},{'name':_0x4735a8('0xd10'),'utcOffset':0x186,'offsetStr':_0x4735a8('0xbb3'),'countries':['CC']},{'name':_0x4735a8('0xf69'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['CH','DE','LI']},{'name':_0x4735a8('0x2238'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':'Pacific/Rarotonga','utcOffset':-0x258,'offsetStr':_0x4735a8('0x23b3'),'countries':['CK']},{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['CL']},{'name':_0x4735a8('0x11d9'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['CL']},{'name':_0x4735a8('0x23da'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['CN']},{'name':_0x4735a8('0x27a0'),'utcOffset':0x168,'offsetStr':_0x4735a8('0x17b4'),'countries':['CN']},{'name':'America/Bogota','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CO']},{'name':_0x4735a8('0x4dd'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CR']},{'name':_0x4735a8('0x241a'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['CU']},{'name':_0x4735a8('0x631'),'utcOffset':-0x3c,'offsetStr':_0x4735a8('0x230'),'countries':['CV']},{'name':_0x4735a8('0x86f'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['CW','AW','BQ','SX']},{'name':_0x4735a8('0x17ce'),'utcOffset':0x1a4,'offsetStr':_0x4735a8('0x738'),'countries':['CX']},{'name':_0x4735a8('0x2469'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['CY']},{'name':_0x4735a8('0x202f'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['CZ','SK']},{'name':_0x4735a8('0x19dd'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['DE']},{'name':'Europe/Copenhagen','utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['DK']},{'name':_0x4735a8('0xbca'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['DO']},{'name':'Africa/Algiers','utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['DZ']},{'name':_0x4735a8('0x2f4'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['EC']},{'name':'Pacific/Galapagos','utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['EC']},{'name':_0x4735a8('0x349'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['EE']},{'name':_0x4735a8('0x4dc'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['EG']},{'name':_0x4735a8('0x2380'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['EH']},{'name':_0x4735a8('0x762'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['ES']},{'name':_0x4735a8('0x1684'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['ES']},{'name':_0x4735a8('0xf8'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['ES']},{'name':_0x4735a8('0x203c'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['FI','AX']},{'name':_0x4735a8('0x1f1b'),'utcOffset':0x2d0,'offsetStr':_0x4735a8('0x18b8'),'countries':['FJ']},{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['FK']},{'name':_0x4735a8('0x9c8'),'utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['FM']},{'name':'Pacific/Pohnpei','utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['FM']},{'name':'Pacific/Kosrae','utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['FM']},{'name':_0x4735a8('0x11d'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['FO']},{'name':'Europe/Paris','utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['FR']},{'name':'Europe/London','utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['GB','GG','IM','JE']},{'name':_0x4735a8('0x2849'),'utcOffset':0xf0,'offsetStr':_0x4735a8('0x69'),'countries':['GE']},{'name':_0x4735a8('0x190b'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['GF']},{'name':'Africa/Accra','utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['GH']},{'name':_0x4735a8('0x10f'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['GI']},{'name':_0x4735a8('0xed4'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['GL']},{'name':_0x4735a8('0xd89'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['GL']},{'name':'America/Scoresbysund','utcOffset':-0x3c,'offsetStr':_0x4735a8('0x230'),'countries':['GL']},{'name':'America/Thule','utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['GL']},{'name':_0x4735a8('0x2706'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['GR']},{'name':_0x4735a8('0x2203'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['GS']},{'name':_0x4735a8('0x366'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['GT']},{'name':_0x4735a8('0xd62'),'utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['GU','MP']},{'name':_0x4735a8('0x15b1'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['GW']},{'name':_0x4735a8('0xbdb'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['GY']},{'name':_0x4735a8('0x1a4'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['HK']},{'name':'America/Tegucigalpa','utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['HN']},{'name':'America/Port-au-Prince','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['HT']},{'name':'Europe/Budapest','utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['HU']},{'name':_0x4735a8('0xea4'),'utcOffset':0x1a4,'offsetStr':_0x4735a8('0x738'),'countries':['ID']},{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':_0x4735a8('0x738'),'countries':['ID']},{'name':'Asia/Makassar','utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['ID']},{'name':'Asia/Jayapura','utcOffset':0x21c,'offsetStr':_0x4735a8('0xbf8'),'countries':['ID']},{'name':_0x4735a8('0x27ee'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['IE']},{'name':_0x4735a8('0x285e'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['IL']},{'name':_0x4735a8('0x119d'),'utcOffset':0x14a,'offsetStr':'+05:30','countries':['IN']},{'name':_0x4735a8('0xd48'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['IO']},{'name':_0x4735a8('0xebe'),'utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['IQ']},{'name':'Asia/Tehran','utcOffset':0xd2,'offsetStr':_0x4735a8('0x112b'),'countries':['IR']},{'name':'Atlantic/Reykjavik','utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['IS']},{'name':'Europe/Rome','utcOffset':0x3c,'offsetStr':'+01:00','countries':['IT','SM','VA']},{'name':'America/Jamaica','utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['JM']},{'name':'Asia/Amman','utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['JO']},{'name':_0x4735a8('0xe14'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['JP']},{'name':_0x4735a8('0x316'),'utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':'Asia/Bishkek','utcOffset':0x168,'offsetStr':_0x4735a8('0x17b4'),'countries':['KG']},{'name':_0x4735a8('0xddf'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['KI']},{'name':_0x4735a8('0x1281'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['KI']},{'name':_0x4735a8('0x1d0c'),'utcOffset':0x348,'offsetStr':_0x4735a8('0x1b7f'),'countries':['KI']},{'name':_0x4735a8('0x55c'),'utcOffset':0x1fe,'offsetStr':_0x4735a8('0x1a71'),'countries':['KP']},{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':_0x4735a8('0xbf8'),'countries':['KR']},{'name':_0x4735a8('0x6d9'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['KY']},{'name':_0x4735a8('0xa28'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KZ']},{'name':_0x4735a8('0xb19'),'utcOffset':0x168,'offsetStr':_0x4735a8('0x17b4'),'countries':['KZ']},{'name':_0x4735a8('0x1d2'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['KZ']},{'name':_0x4735a8('0xff3'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['KZ']},{'name':_0x4735a8('0xdb1'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['KZ']},{'name':'Asia/Beirut','utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['LB']},{'name':_0x4735a8('0x20ff'),'utcOffset':0x14a,'offsetStr':'+05:30','countries':['LK']},{'name':_0x4735a8('0x1c9a'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['LR']},{'name':_0x4735a8('0x668'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['LT']},{'name':_0x4735a8('0xe8a'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['LU']},{'name':_0x4735a8('0x132b'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LV']},{'name':_0x4735a8('0x2132'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['LY']},{'name':_0x4735a8('0xd8e'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['MA']},{'name':_0x4735a8('0xe3f'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['MC']},{'name':_0x4735a8('0x1d3d'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['MD']},{'name':_0x4735a8('0x254f'),'utcOffset':0x2d0,'offsetStr':_0x4735a8('0x18b8'),'countries':['MH']},{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':_0x4735a8('0x18b8'),'countries':['MH']},{'name':_0x4735a8('0xb36'),'utcOffset':0x186,'offsetStr':_0x4735a8('0xbb3'),'countries':['MM']},{'name':_0x4735a8('0x10ff'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['MN']},{'name':'Asia/Hovd','utcOffset':0x1a4,'offsetStr':_0x4735a8('0x738'),'countries':['MN']},{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['MN']},{'name':'Asia/Macau','utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['MO']},{'name':_0x4735a8('0x110f'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['MQ']},{'name':_0x4735a8('0x747'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['MT']},{'name':_0x4735a8('0x143b'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['MU']},{'name':'Indian/Maldives','utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['MV']},{'name':_0x4735a8('0x191d'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['MX']},{'name':_0x4735a8('0x1448'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['MX']},{'name':_0x4735a8('0x2840'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['MX']},{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0x4735a8('0xbb5'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['MX']},{'name':_0x4735a8('0x1b34'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['MX']},{'name':_0x4735a8('0xb2f'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},{'name':_0x4735a8('0x1d4e'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['MX']},{'name':_0x4735a8('0x1dfa'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},{'name':'America/Tijuana','utcOffset':-0x1e0,'offsetStr':_0x4735a8('0xef8'),'countries':['MX']},{'name':'America/Santa_Isabel','utcOffset':-0x1e0,'offsetStr':_0x4735a8('0xef8'),'countries':['MX']},{'name':_0x4735a8('0x1789'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['MX']},{'name':'Asia/Kuala_Lumpur','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0x4735a8('0x20b2'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['MY']},{'name':_0x4735a8('0x1b21'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':'Africa/Windhoek','utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['NA']},{'name':_0x4735a8('0x254'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['NC']},{'name':_0x4735a8('0x1e25'),'utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['NF']},{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':'+01:00','countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':'America/Managua','utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['NI']},{'name':_0x4735a8('0x2784'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['NL']},{'name':_0x4735a8('0x1080'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NO','SJ']},{'name':_0x4735a8('0x24a8'),'utcOffset':0x159,'offsetStr':_0x4735a8('0x960'),'countries':['NP']},{'name':_0x4735a8('0x1364'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['NR']},{'name':_0x4735a8('0x1383'),'utcOffset':-0x294,'offsetStr':_0x4735a8('0x700'),'countries':['NU']},{'name':_0x4735a8('0x687'),'utcOffset':0x30c,'offsetStr':_0x4735a8('0x13f8'),'countries':['NZ','AQ']},{'name':_0x4735a8('0x1fd3'),'utcOffset':0x339,'offsetStr':'+13:45','countries':['NZ']},{'name':_0x4735a8('0x1514'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['PA']},{'name':_0x4735a8('0x2632'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['PE']},{'name':_0x4735a8('0x338'),'utcOffset':-0x258,'offsetStr':_0x4735a8('0x23b3'),'countries':['PF']},{'name':'Pacific/Marquesas','utcOffset':-0x23a,'offsetStr':_0x4735a8('0x1c61'),'countries':['PF']},{'name':_0x4735a8('0x1cc8'),'utcOffset':-0x21c,'offsetStr':_0x4735a8('0x2154'),'countries':['PF']},{'name':_0x4735a8('0x22b1'),'utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['PG']},{'name':_0x4735a8('0x642'),'utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['PG']},{'name':_0x4735a8('0x861'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['PH']},{'name':_0x4735a8('0x48d'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['PK']},{'name':_0x4735a8('0xcfa'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['PL']},{'name':_0x4735a8('0x1aa'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['PM']},{'name':_0x4735a8('0x58a'),'utcOffset':-0x1e0,'offsetStr':_0x4735a8('0xef8'),'countries':['PN']},{'name':_0x4735a8('0x20d'),'utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['PR']},{'name':'Asia/Gaza','utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['PS']},{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['PS']},{'name':_0x4735a8('0x412'),'utcOffset':0x0,'offsetStr':_0x4735a8('0x173e'),'countries':['PT']},{'name':_0x4735a8('0x2e7'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},{'name':_0x4735a8('0x1ae2'),'utcOffset':-0x3c,'offsetStr':_0x4735a8('0x230'),'countries':['PT']},{'name':_0x4735a8('0x1928'),'utcOffset':0x21c,'offsetStr':_0x4735a8('0xbf8'),'countries':['PW']},{'name':_0x4735a8('0x1270'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},{'name':_0x4735a8('0x254a'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['QA','BH']},{'name':_0x4735a8('0x174f'),'utcOffset':0xf0,'offsetStr':_0x4735a8('0x69'),'countries':['RE','TF']},{'name':_0x4735a8('0x71d'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['RO']},{'name':_0x4735a8('0x71e'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['RS','BA','HR','ME','MK','SI']},{'name':_0x4735a8('0x1802'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['RU']},{'name':_0x4735a8('0x25ac'),'utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['RU']},{'name':_0x4735a8('0x237'),'utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['RU']},{'name':_0x4735a8('0x1f54'),'utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['RU']},{'name':_0x4735a8('0x2590'),'utcOffset':0xf0,'offsetStr':_0x4735a8('0x69'),'countries':['RU']},{'name':_0x4735a8('0x380'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['RU']},{'name':'Asia/Omsk','utcOffset':0x168,'offsetStr':_0x4735a8('0x17b4'),'countries':['RU']},{'name':_0x4735a8('0x270f'),'utcOffset':0x168,'offsetStr':_0x4735a8('0x17b4'),'countries':['RU']},{'name':_0x4735a8('0x13fb'),'utcOffset':0x1a4,'offsetStr':_0x4735a8('0x738'),'countries':['RU']},{'name':_0x4735a8('0x14af'),'utcOffset':0x1a4,'offsetStr':_0x4735a8('0x738'),'countries':['RU']},{'name':_0x4735a8('0xe9'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['RU']},{'name':_0x4735a8('0x1f96'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['RU']},{'name':_0x4735a8('0x228b'),'utcOffset':0x21c,'offsetStr':_0x4735a8('0xbf8'),'countries':['RU']},{'name':'Asia/Khandyga','utcOffset':0x21c,'offsetStr':_0x4735a8('0xbf8'),'countries':['RU']},{'name':'Asia/Vladivostok','utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['RU']},{'name':_0x4735a8('0x1cdd'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':_0x4735a8('0x1a3d'),'utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['RU']},{'name':_0x4735a8('0x26de'),'utcOffset':0x258,'offsetStr':_0x4735a8('0x1aaf'),'countries':['RU']},{'name':_0x4735a8('0x11df'),'utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['RU']},{'name':'Asia/Kamchatka','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},{'name':_0x4735a8('0xa73'),'utcOffset':0x2d0,'offsetStr':_0x4735a8('0x18b8'),'countries':['RU']},{'name':'Asia/Riyadh','utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['SA','KW','YE']},{'name':_0x4735a8('0x1d31'),'utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['SB']},{'name':_0x4735a8('0x2614'),'utcOffset':0xf0,'offsetStr':_0x4735a8('0x69'),'countries':['SC']},{'name':_0x4735a8('0x18e8'),'utcOffset':0xb4,'offsetStr':_0x4735a8('0x2c7'),'countries':['SD','SS']},{'name':_0x4735a8('0x1956'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['SE']},{'name':_0x4735a8('0x217d'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['SG']},{'name':_0x4735a8('0x1537'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['SR']},{'name':'America/El_Salvador','utcOffset':-0x168,'offsetStr':'-06:00','countries':['SV']},{'name':_0x4735a8('0x2327'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['SY']},{'name':_0x4735a8('0x1fb7'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TC']},{'name':_0x4735a8('0x1de9'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['TD']},{'name':_0x4735a8('0x8e2'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['TF']},{'name':_0x4735a8('0x92e'),'utcOffset':0x1a4,'offsetStr':_0x4735a8('0x738'),'countries':['TH','KH','LA','VN']},{'name':_0x4735a8('0x1cf'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['TJ']},{'name':'Pacific/Fakaofo','utcOffset':0x30c,'offsetStr':'+13:00','countries':['TK']},{'name':'Asia/Dili','utcOffset':0x21c,'offsetStr':'+09:00','countries':['TL']},{'name':_0x4735a8('0x16c7'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['TM']},{'name':_0x4735a8('0x164f'),'utcOffset':0x3c,'offsetStr':_0x4735a8('0xa43'),'countries':['TN']},{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':_0x4735a8('0x13f8'),'countries':['TO']},{'name':'Europe/Istanbul','utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['TR']},{'name':'America/Port_of_Spain','utcOffset':-0xf0,'offsetStr':_0x4735a8('0x82'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':_0x4735a8('0x2570'),'utcOffset':0x2d0,'offsetStr':_0x4735a8('0x18b8'),'countries':['TV']},{'name':_0x4735a8('0x1b7e'),'utcOffset':0x1e0,'offsetStr':_0x4735a8('0x654'),'countries':['TW']},{'name':_0x4735a8('0xd0f'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['UA']},{'name':_0x4735a8('0x5dc'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['UA']},{'name':_0x4735a8('0x22c2'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['UA']},{'name':'Pacific/Wake','utcOffset':0x2d0,'offsetStr':_0x4735a8('0x18b8'),'countries':['UM']},{'name':_0x4735a8('0xe04'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['US']},{'name':_0x4735a8('0x1351'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x4735a8('0x2819'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['US']},{'name':_0x4735a8('0xae'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['US']},{'name':_0x4735a8('0x269d'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x4735a8('0x2f8'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['US']},{'name':_0x4735a8('0xddb'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['US']},{'name':_0x4735a8('0x13dc'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['US']},{'name':_0x4735a8('0x856'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['US']},{'name':_0x4735a8('0x256c'),'utcOffset':-0x12c,'offsetStr':_0x4735a8('0x951'),'countries':['US']},{'name':_0x4735a8('0x23dc'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['US']},{'name':_0x4735a8('0x530'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x4735a8('0x31f'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['US']},{'name':'America/Menominee','utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['US']},{'name':'America/North_Dakota/Center','utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['US']},{'name':_0x4735a8('0x159d'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['US']},{'name':_0x4735a8('0x10c1'),'utcOffset':-0x168,'offsetStr':_0x4735a8('0x478'),'countries':['US']},{'name':_0x4735a8('0xf8a'),'utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['US']},{'name':'America/Boise','utcOffset':-0x1a4,'offsetStr':_0x4735a8('0xf3c'),'countries':['US']},{'name':_0x4735a8('0x261b'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0x4735a8('0x2268'),'utcOffset':-0x1e0,'offsetStr':_0x4735a8('0xef8'),'countries':['US']},{'name':_0x4735a8('0x14ed'),'utcOffset':-0x1e0,'offsetStr':_0x4735a8('0xef8'),'countries':['US']},{'name':_0x4735a8('0x100e'),'utcOffset':-0x21c,'offsetStr':_0x4735a8('0x2154'),'countries':['US']},{'name':_0x4735a8('0x15ed'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':_0x4735a8('0xdcd'),'utcOffset':-0x21c,'offsetStr':_0x4735a8('0x2154'),'countries':['US']},{'name':_0x4735a8('0xc40'),'utcOffset':-0x21c,'offsetStr':_0x4735a8('0x2154'),'countries':['US']},{'name':_0x4735a8('0x21e1'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':_0x4735a8('0x4e'),'utcOffset':-0x258,'offsetStr':_0x4735a8('0x23b3'),'countries':['US']},{'name':_0x4735a8('0x8f6'),'utcOffset':-0x258,'offsetStr':_0x4735a8('0x23b3'),'countries':['US','UM']},{'name':_0x4735a8('0x251f'),'utcOffset':-0xb4,'offsetStr':_0x4735a8('0x11b4'),'countries':['UY']},{'name':'Asia/Samarkand','utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['UZ']},{'name':_0x4735a8('0x258b'),'utcOffset':0x12c,'offsetStr':_0x4735a8('0x568'),'countries':['UZ']},{'name':_0x4735a8('0xa68'),'utcOffset':-0x10e,'offsetStr':_0x4735a8('0x2408'),'countries':['VE']},{'name':_0x4735a8('0x2543'),'utcOffset':0x1a4,'offsetStr':_0x4735a8('0x738'),'countries':['VN']},{'name':_0x4735a8('0x1edb'),'utcOffset':0x294,'offsetStr':_0x4735a8('0x2542'),'countries':['VU']},{'name':_0x4735a8('0x1217'),'utcOffset':0x2d0,'offsetStr':_0x4735a8('0x18b8'),'countries':['WF']},{'name':_0x4735a8('0x1b62'),'utcOffset':0x348,'offsetStr':_0x4735a8('0x1b7f'),'countries':['WS']},{'name':_0x4735a8('0x1d07'),'utcOffset':0x78,'offsetStr':_0x4735a8('0x5d8'),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x4ce690};}const _0x57a8a6=_0x16eab9;;function _0x50df8e(){var _0x91c9e5=_0x1a8446,_0x3e8a34=this;_0x3e8a34[_0x91c9e5('0xdb7')]=[],_0x3e8a34[_0x91c9e5('0x245e')]=![],_0x3e8a34[_0x91c9e5('0x710')]=0x14;function _0x160caf(_0x2571b1){var _0x3ee236=_0x91c9e5,_0x1eee12=0x0;if(_0x2571b1){_0x3e8a34[_0x3ee236('0x710')]=_0x2571b1[_0x3ee236('0x470')][0x2]&&_0x2571b1[_0x3ee236('0x470')][0x2][_0x3ee236('0x12f4')]?parseInt(_0x2571b1[_0x3ee236('0x470')][0x2][_0x3ee236('0x12f4')])-parseInt(_0x2571b1['attrs'][0x2]['value'])%0x2:0x14;_0x2571b1[_0x3ee236('0x470')][0x1]['value']&&_0x2571b1[_0x3ee236('0x470')][0x1]['value'][_0x3ee236('0x2587')]?(_0x3e8a34[_0x3ee236('0x245e')]=!![],_0x3e8a34[_0x3ee236('0xdb7')]=_0x51538b()[_0x3ee236('0x1e34')](_0x2571b1[_0x3ee236('0x267f')],_0x2571b1[_0x3ee236('0x470')][0x1][_0x3ee236('0x12f4')])):(_0x3e8a34[_0x3ee236('0x245e')]=![],_0x3e8a34['filter']=_0x2571b1[_0x3ee236('0x267f')]);for(var _0x4598e3=0x0;_0x4598e3<_0x2571b1[_0x3ee236('0xac0')][_0x3ee236('0x580')][_0x3ee236('0x2587')];_0x4598e3+=0x1){_0x51538b()[_0x3ee236('0x13d6')](_0x3e8a34[_0x3ee236('0xdb7')],_0x2571b1[_0x3ee236('0xac0')]['rows'][_0x4598e3]['id'])&&(_0x1eee12+=_0x2571b1[_0x3ee236('0xac0')]['rows'][_0x4598e3][_0x2571b1[_0x3ee236('0x470')][0x0][_0x3ee236('0x12f4')]]?parseInt(_0x2571b1[_0x3ee236('0xac0')][_0x3ee236('0x580')][_0x4598e3][_0x2571b1[_0x3ee236('0x470')][0x0][_0x3ee236('0x12f4')]]):0x0);}}return _0x1eee12;}_0x3e8a34['getCount']=_0x160caf;}const _0x168075=_0x50df8e;_0xaf2e94[_0x1a8446('0x1e33')]=[_0x1a8446('0xcb3')];function _0xaf2e94(_0x213e0f){var _0x3c6038=_0x1a8446,_0x10a7b3=this;_0x10a7b3[_0x3c6038('0xdb7')]=[],_0x10a7b3[_0x3c6038('0x245e')]=![],_0x10a7b3['properties']=[],_0x10a7b3['multiBarChart']={'labels':['QUEUE_NAME'],'series':[_0x3c6038('0x9ee')],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':_0x3c6038('0x1c8d')},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':_0x3c6038('0x1c8d'),'stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':_0x3c6038('0x1c8d')}}]}}};function _0x4f1335(_0x531585){var _0x2cd1c1=_0x3c6038;_0x10a7b3['properties']=_0x51538b()['map'](_0x51538b()[_0x2cd1c1('0xdb7')](_0x531585[_0x2cd1c1('0x470')],function(_0x5a4653){var _0xf76674=_0x2cd1c1;return _0x5a4653[_0xf76674('0x25d6')]&&_0x5a4653[_0xf76674('0x25d6')]['indexOf'](_0xf76674('0x1610'))>=0x0&&_0x5a4653[_0xf76674('0x12f4')]&&_0x5a4653[_0xf76674('0x12f4')]!==_0xf76674('0x1ed9');}),'value');_0x531585[_0x2cd1c1('0x470')][0x3]['value']&&_0x531585[_0x2cd1c1('0x470')][0x3][_0x2cd1c1('0x12f4')][_0x2cd1c1('0x2587')]?(_0x10a7b3[_0x2cd1c1('0x245e')]=!![],_0x10a7b3[_0x2cd1c1('0xdb7')]=_0x51538b()[_0x2cd1c1('0x1e34')](_0x531585[_0x2cd1c1('0x267f')],_0x531585[_0x2cd1c1('0x470')][0x3][_0x2cd1c1('0x12f4')])):(_0x10a7b3[_0x2cd1c1('0x245e')]=![],_0x10a7b3[_0x2cd1c1('0xdb7')]=_0x531585[_0x2cd1c1('0x267f')]);if(_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x613')][_0x2cd1c1('0x2587')]>_0x10a7b3[_0x2cd1c1('0x1d83')][_0x2cd1c1('0x2587')]){var _0x480011=_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x613')][_0x2cd1c1('0x2587')]-_0x10a7b3[_0x2cd1c1('0x1d83')][_0x2cd1c1('0x2587')];_0x10a7b3[_0x2cd1c1('0x477')]['series'][_0x2cd1c1('0x1280')](0x0,_0x480011),_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x10fd')][_0x2cd1c1('0x1280')](0x0,_0x480011);}for(var _0x11b9ff=0x0;_0x11b9ff<_0x10a7b3['properties'][_0x2cd1c1('0x2587')];_0x11b9ff+=0x1){_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x613')][_0x11b9ff]=_0x213e0f['instant'](_0x2cd1c1('0x1272')+_0x10a7b3['properties'][_0x11b9ff]['toUpperCase']());_0x51538b()[_0x2cd1c1('0x89a')](_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x10fd')][_0x11b9ff])&&(_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x10fd')][_0x11b9ff]=[]);if(_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x25bd')][_0x2cd1c1('0x2587')]>_0x10a7b3['filter'][_0x2cd1c1('0x2587')]){var _0xd97a82=_0x10a7b3['multiBarChart'][_0x2cd1c1('0x25bd')][_0x2cd1c1('0x2587')]-_0x10a7b3['filter']['length'];_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x25bd')][_0x2cd1c1('0x1280')](0x0,_0xd97a82),_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x10fd')][_0x11b9ff][_0x2cd1c1('0x1280')](0x0,_0xd97a82);}for(var _0x4693d4=0x0,_0x5d4920=0x0;_0x4693d4<_0x531585['voiceQueues'][_0x2cd1c1('0x580')][_0x2cd1c1('0x2587')];_0x4693d4+=0x1){_0x51538b()[_0x2cd1c1('0x13d6')](_0x10a7b3[_0x2cd1c1('0xdb7')],_0x531585[_0x2cd1c1('0xac0')][_0x2cd1c1('0x580')][_0x4693d4]['id'])&&(_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x25bd')][_0x5d4920]=_0x531585[_0x2cd1c1('0xac0')]['rows'][_0x4693d4]['name'],_0x10a7b3[_0x2cd1c1('0x477')][_0x2cd1c1('0x10fd')][_0x11b9ff][_0x5d4920]=_0x531585[_0x2cd1c1('0xac0')][_0x2cd1c1('0x580')][_0x4693d4][_0x10a7b3[_0x2cd1c1('0x1d83')][_0x11b9ff]]?parseInt(_0x531585[_0x2cd1c1('0xac0')]['rows'][_0x4693d4][_0x10a7b3['properties'][_0x11b9ff]]):0x0,_0x5d4920+=0x1);}}}function _0xf9aaa8(_0x455b88){var _0x4e7500=_0x3c6038;_0x10a7b3[_0x4e7500('0x477')]['options']['legend']['fontColor']=_0x455b88[_0x4e7500('0x1124')];for(var _0x119d32=0x0;_0x119d32<_0x10a7b3[_0x4e7500('0x477')][_0x4e7500('0x1b36')][_0x4e7500('0x1ccd')][_0x4e7500('0x27f3')]['length'];_0x119d32+=0x1){_0x10a7b3['multiBarChart'][_0x4e7500('0x1b36')][_0x4e7500('0x1ccd')]['xAxes'][_0x119d32]['ticks'][_0x4e7500('0x13d0')]=_0x455b88['foreground'];}for(var _0xdabcb3=0x0;_0xdabcb3<_0x10a7b3['multiBarChart'][_0x4e7500('0x1b36')][_0x4e7500('0x1ccd')]['yAxes'][_0x4e7500('0x2587')];_0xdabcb3+=0x1){_0x10a7b3[_0x4e7500('0x477')][_0x4e7500('0x1b36')]['scales'][_0x4e7500('0x27d7')][_0xdabcb3][_0x4e7500('0xb05')][_0x4e7500('0x13d0')]=_0x455b88[_0x4e7500('0x1124')];}}function _0x55b711(_0x4aeee4){var _0x143c87=_0x3c6038;_0x4aeee4&&(_0x4aeee4[_0x143c87('0x470')]&&_0x4f1335(_0x4aeee4),_0x4aeee4[_0x143c87('0x1124')]&&_0xf9aaa8(_0x4aeee4));}_0x10a7b3[_0x3c6038('0x16a0')]=_0x55b711;}const _0x5de617=_0xaf2e94;_0x4f66d4[_0x1a8446('0x1e33')]=[_0x1a8446('0xcb3')];function _0x4f66d4(_0x40fbb7){var _0x445845=_0x1a8446,_0x20570f=this;_0x20570f[_0x445845('0xdb7')]=[],_0x20570f['filtered']=![],_0x20570f[_0x445845('0x1d83')]=[],_0x20570f['pieChart']={'labels':[_0x445845('0x18a0')],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x53d706(_0xdedb2a){var _0x585ffc=_0x445845;_0x20570f[_0x585ffc('0x1d83')]=_0x51538b()[_0x585ffc('0x1246')](_0x51538b()[_0x585ffc('0xdb7')](_0xdedb2a[_0x585ffc('0x470')],function(_0x99837){var _0x46ff99=_0x585ffc;return _0x99837[_0x46ff99('0x25d6')]&&_0x99837['name'][_0x46ff99('0x1f38')](_0x46ff99('0x1610'))>=0x0&&_0x99837[_0x46ff99('0x12f4')]&&_0x99837['value']!==_0x46ff99('0x1ed9');}),'value');_0xdedb2a['attrs'][0x3][_0x585ffc('0x12f4')]&&_0xdedb2a['attrs'][0x3][_0x585ffc('0x12f4')][_0x585ffc('0x2587')]?(_0x20570f[_0x585ffc('0x245e')]=!![],_0x20570f['filter']=_0x51538b()[_0x585ffc('0x1e34')](_0xdedb2a[_0x585ffc('0x267f')],_0xdedb2a[_0x585ffc('0x470')][0x3]['value'])):(_0x20570f[_0x585ffc('0x245e')]=![],_0x20570f[_0x585ffc('0xdb7')]=_0xdedb2a[_0x585ffc('0x267f')]);if(_0x20570f[_0x585ffc('0x802')][_0x585ffc('0x25bd')][_0x585ffc('0x2587')]>_0x20570f['properties']['length']){var _0x409004=_0x20570f['pieChart']['labels'][_0x585ffc('0x2587')]-_0x20570f['properties'][_0x585ffc('0x2587')];_0x20570f[_0x585ffc('0x802')][_0x585ffc('0x25bd')][_0x585ffc('0x1280')](0x0,_0x409004),_0x20570f[_0x585ffc('0x802')][_0x585ffc('0x10fd')]['splice'](0x0,_0x409004);}for(var _0xae8ad=0x0,_0xe4502=0x0;_0xae8ad<_0x20570f['properties']['length'];_0xae8ad+=0x1){_0x20570f[_0x585ffc('0x802')][_0x585ffc('0x25bd')][_0xae8ad]=_0x40fbb7['instant'](_0x585ffc('0x1272')+_0x20570f[_0x585ffc('0x1d83')][_0xae8ad][_0x585ffc('0x1d08')]());for(var _0x582322=0x0;_0x582322<_0xdedb2a[_0x585ffc('0xac0')][_0x585ffc('0x580')][_0x585ffc('0x2587')];_0x582322+=0x1){_0x51538b()[_0x585ffc('0x13d6')](_0x20570f[_0x585ffc('0xdb7')],_0xdedb2a[_0x585ffc('0xac0')][_0x585ffc('0x580')][_0x582322]['id'])&&(_0xe4502+=_0xdedb2a['voiceQueues'][_0x585ffc('0x580')][_0x582322][_0x20570f[_0x585ffc('0x1d83')][_0xae8ad]]?parseInt(_0xdedb2a['voiceQueues']['rows'][_0x582322][_0x20570f[_0x585ffc('0x1d83')][_0xae8ad]]):0x0);}_0x20570f['pieChart'][_0x585ffc('0x10fd')][_0xae8ad]=_0xe4502,_0xe4502=0x0;}}function _0x62f76f(_0x5dad94){var _0x28f8a3=_0x445845;_0x20570f[_0x28f8a3('0x802')][_0x28f8a3('0x1b36')][_0x28f8a3('0x1a7a')]['fontColor']=_0x5dad94[_0x28f8a3('0x1124')];}function _0xea9d55(_0x37c9c4){var _0x394c4a=_0x445845;_0x37c9c4&&(_0x37c9c4[_0x394c4a('0x470')]&&_0x53d706(_0x37c9c4),_0x37c9c4[_0x394c4a('0x1124')]&&_0x62f76f(_0x37c9c4));}_0x20570f['getPieChart']=_0xea9d55;}const _0x50a681=_0x4f66d4;_0xa22018[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x21b3'),_0x1a8446('0x157')];function _0xa22018(_0x10004d,_0x1c40a3,_0x554977,_0x52a437){var _0x18c7dc=_0x1a8446,_0x3e785d=this;_0x3e785d[_0x18c7dc('0xbec')]=0x0,_0x3e785d[_0x18c7dc('0x6cc')]=0x0,_0x3e785d[_0x18c7dc('0x110a')]='',_0x3e785d['columns']=[],_0x3e785d[_0x18c7dc('0xcdc')]={'rows':[],'count':0x0},_0x3e785d[_0x18c7dc('0x582')]={'limit':0xa,'page':0x1,'startDate':_0x420d43()()[_0x18c7dc('0x206d')]('day')['format'](_0x18c7dc('0x1463')),'endDate':_0x420d43()()['endOf'](_0x18c7dc('0xa7c'))[_0x18c7dc('0x1f27')](_0x18c7dc('0x1463')),'output':_0x18c7dc('0x2061')},_0x3e785d[_0x18c7dc('0x2318')]=_0x5f16ad,_0x3e785d[_0x18c7dc('0x13a3')]=_0x1d3eb3,_0x3e785d[_0x18c7dc('0xc46')]=_0x4e5fa6;function _0x5f16ad(_0xa5403f){var _0x16a6c5=_0x18c7dc;_0xa5403f&&(_0xa5403f[_0x16a6c5('0x470')]&&(_0xa5403f[_0x16a6c5('0x470')][0x0]&&_0xa5403f[_0x16a6c5('0x470')][0x0][_0x16a6c5('0x12f4')]&&(_0x3e785d[_0x16a6c5('0x582')]['id']=_0xa5403f[_0x16a6c5('0x470')][0x0][_0x16a6c5('0x12f4')],_0x52a437[_0x16a6c5('0x138d')][_0x16a6c5('0x2122')]({'fields':'field,alias','nolimit':!![],'DefaultReportId':_0xa5403f[_0x16a6c5('0x470')][0x0]['type']===_0x16a6c5('0x449')?_0xa5403f[_0x16a6c5('0x470')][0x0][_0x16a6c5('0x12f4')]:undefined,'CustomReportId':_0xa5403f[_0x16a6c5('0x470')][0x0][_0x16a6c5('0x6c8')]==='custom'?_0xa5403f[_0x16a6c5('0x470')][0x0]['value']:undefined})[_0x16a6c5('0x1dc2')]['then'](function(_0xc37013){var _0x57c3a4=_0x16a6c5;_0xc37013&&_0xc37013[_0x57c3a4('0x580')]&&(_0x3e785d[_0x57c3a4('0xe99')]=_0xc37013['rows']);switch(_0xa5403f[_0x57c3a4('0x470')][0x0][_0x57c3a4('0x6c8')]){case _0x57c3a4('0x449'):_0x3e785d['reportRoute']=_0x57c3a4('0x1885');break;case _0x57c3a4('0x113b'):_0x3e785d[_0x57c3a4('0x8a')]='analyticCustomReport';break;}return _0x52a437[_0x3e785d[_0x57c3a4('0x8a')]][_0x57c3a4('0x2122')]({'id':_0xa5403f['attrs'][0x0][_0x57c3a4('0x12f4')],'fields':'id,name'})[_0x57c3a4('0x1dc2')];})['then'](function(_0x75da27){var _0x2d0f1c=_0x16a6c5;_0x75da27&&_0x75da27[_0x2d0f1c('0x25d6')]&&(_0x3e785d[_0x2d0f1c('0x110a')]=_0x75da27[_0x2d0f1c('0x25d6')]),_0x1d3eb3();})['catch'](function(_0xe3b9d8){console['log'](_0xe3b9d8);})),_0xa5403f[_0x16a6c5('0x470')][0x1]&&_0xa5403f[_0x16a6c5('0x470')][0x1]['value']&&(_0x3e785d[_0x16a6c5('0x6cc')]=parseInt(_0xa5403f['attrs'][0x1][_0x16a6c5('0x12f4')]),!_0x51538b()[_0x16a6c5('0x1860')](_0x3e785d[_0x16a6c5('0x6cc')])&&_0x3e785d[_0x16a6c5('0x6cc')]>0x0?(_0x3e785d[_0x16a6c5('0xbec')]=parseInt(_0xa5403f[_0x16a6c5('0x470')][0x1][_0x16a6c5('0x12f4')]),_0x3e785d[_0x16a6c5('0x1c21')]=_0x554977(function(){var _0x2b7176=_0x16a6c5;_0x3e785d[_0x2b7176('0xbec')]-=0x1;},0x3e8,0x0),_0x3e785d[_0x16a6c5('0x23c0')]=_0x1c40a3(function(){var _0x2875de=_0x16a6c5;_0x3e785d['interval']&&_0x554977[_0x2875de('0x2030')](_0x3e785d[_0x2875de('0x1c21')]),_0x5f16ad(_0xa5403f);},_0x3e785d[_0x16a6c5('0x6cc')]*0x3e8)):(_0x3e785d['interval']&&_0x554977[_0x16a6c5('0x2030')](_0x3e785d[_0x16a6c5('0x1c21')]),_0x3e785d[_0x16a6c5('0x23c0')]&&_0x1c40a3[_0x16a6c5('0x2030')](_0x3e785d[_0x16a6c5('0x23c0')])))));}function _0x2e0f80(_0x65ef37){var _0x17d288=_0x18c7dc;_0x3e785d[_0x17d288('0xcdc')]=_0x65ef37||{'count':0x0,'rows':[]};}function _0x1d3eb3(){var _0x463163=_0x18c7dc;_0x3e785d[_0x463163('0x582')][_0x463163('0x8b1')]=(_0x3e785d['query'][_0x463163('0x41')]-0x1)*_0x3e785d[_0x463163('0x582')][_0x463163('0xf4d')],_0x3e785d[_0x463163('0x159a')]=_0x52a437[_0x3e785d[_0x463163('0x8a')]]['run'](_0x3e785d[_0x463163('0x582')],_0x2e0f80)[_0x463163('0x1dc2')];}function _0x4e5fa6(_0x2d9dfb,_0x3042e6){var _0x12df4a=_0x18c7dc;return _0x420d43()(_0x3042e6,_0x12df4a('0x34'),!![])[_0x12df4a('0x145d')]()&&(_0x3042e6=_0x420d43()(_0x3042e6,'')[_0x12df4a('0x1f27')](_0x12df4a('0x1463'))),_0x3042e6;}_0x10004d['$on'](_0x18c7dc('0x12d0'),function(){var _0x56d34c=_0x18c7dc;_0x3e785d[_0x56d34c('0x1c21')]&&_0x554977[_0x56d34c('0x2030')](_0x3e785d[_0x56d34c('0x1c21')]),_0x3e785d[_0x56d34c('0x23c0')]&&_0x1c40a3['cancel'](_0x3e785d[_0x56d34c('0x23c0')]);});}const _0x38c1ce=_0xa22018,_0x1ba2b7=_0x4fb511['p']+_0x1a8446('0xba8');_0x269bdf[_0x1a8446('0x1e33')]=['$mdDialog',_0x1a8446('0x2809')];function _0x269bdf(_0x511d5a,_0x28443d){var _0x369e1e=_0x1a8446,_0x361971=this;function _0x209b96(_0x2f2221){return _0x28443d['trustAsResourceUrl'](_0x2f2221);}_0x361971[_0x369e1e('0x1cf3')]=_0x209b96;}function _0x162b08(){var _0x503843=_0x1a8446;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x503843('0x1a26'),'controller':_0x503843('0x1f7'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x1ba2b7};}_0x210cc9['$inject']=['$scope','$element'];function _0x210cc9(_0x47ec49,_0x58fc15){var _0x169184=_0x1a8446,_0x1545ca=this;_0x1545ca[_0x169184('0x2043')]=![];function _0x5bd228(){var _0x40a871=_0x169184;return angular['isDefined'](_0x47ec49[_0x40a871('0xeb1')])&&_0x47ec49[_0x40a871('0xeb1')]===!![];}function _0xaf04d4(){var _0x14a4e5=_0x169184;if(!_0x5bd228())return;_0x1545ca[_0x14a4e5('0x2043')]=!_0x1545ca['flipped'],_0x58fc15[_0x14a4e5('0x1714')](_0x14a4e5('0x2043'),_0x1545ca[_0x14a4e5('0x2043')]);}_0x1545ca[_0x169184('0x2150')]=_0xaf04d4;}function _0x89deee(){var _0x520330=_0x1a8446;return{'restrict':'E','scope':{'flippable':'=?'},'controller':_0x520330('0x4d9'),'transclude':!![],'compile':function _0x5ca2ec(_0xa85f6d){var _0x369708=_0x520330;return _0xa85f6d[_0x369708('0x1b97')](_0x369708('0x15a0')),function _0x3c06c1(_0x4094f9,_0x408e93,_0x160617,_0x476762,_0x5304f1){_0x5304f1(function(_0x4b0c18){var _0xb363af=a0_0x1149;_0x408e93[_0xb363af('0x21a4')](),_0x408e93[_0xb363af('0x1923')](_0x4b0c18);});};}};}function _0x41f67b(){var _0x557700=_0x1a8446;return{'restrict':'E','require':_0x557700('0x657'),'transclude':!![],'compile':function _0x10b59a(_0x5ba665){var _0x4a8112=_0x557700;return _0x5ba665[_0x4a8112('0x1b97')](_0x4a8112('0x2563')),function _0x2c19ce(_0x35f7c0,_0xa7cf,_0x2c594a,_0x4921f1,_0x3b3d11){var _0x4c3441=_0x4a8112;_0x3b3d11(function(_0x41a872){var _0x2b291c=a0_0x1149;_0xa7cf[_0x2b291c('0x21a4')](),_0xa7cf[_0x2b291c('0x1923')](_0x41a872);}),_0x35f7c0[_0x4c3441('0x1031')]=_0x4921f1['flip'];};}};}function _0x321436(){var _0x476c13=_0x1a8446;return{'restrict':'E','require':_0x476c13('0x657'),'transclude':!![],'compile':function _0x403dc2(_0x25dc41){var _0x12d976=_0x476c13;return _0x25dc41[_0x12d976('0x1b97')](_0x12d976('0xa3b')),function _0x4bad7a(_0x5e7cf3,_0x23502c,_0x19d8c4,_0x1e5ea7,_0x569d3e){var _0x5b8569=_0x12d976;_0x569d3e(function(_0x32f999){var _0x553211=a0_0x1149;_0x23502c[_0x553211('0x21a4')](),_0x23502c[_0x553211('0x1923')](_0x32f999);}),_0x5e7cf3[_0x5b8569('0x1031')]=_0x1e5ea7[_0x5b8569('0x2150')];};}};};var _0x28734a=[['focusOn',_0x50eba3,'directive'],['hljs',_0xf3f2fa,_0x1a8446('0xdea')],['msAdvancedSearch',_0x249951,_0x1a8446('0xdea')],[_0x1a8446('0x16b6'),_0x3058c4,_0x1a8446('0xdea')],[_0x1a8446('0x1c97'),_0x19c358,_0x1a8446('0xdea')],['msClickToCall',_0x35a4bc,_0x1a8446('0xdea')],[_0x1a8446('0x52a'),_0x4d61b8,_0x1a8446('0xc66')],[_0x1a8446('0x1329'),_0x34c407,'directive'],['msDialogRecording',_0x36c43e,_0x1a8446('0xdea')],[_0x1a8446('0x1103'),_0x47efbf,_0x1a8446('0xdea')],[_0x1a8446('0x2488'),_0xfe3865,_0x1a8446('0xdea')],[_0x1a8446('0x8be'),_0x24da20,_0x1a8446('0xdea')],[_0x1a8446('0x1cb1'),_0x26d9f5,'controller'],[_0x1a8446('0x242d'),_0xfbe6ce,_0x1a8446('0xdea')],[_0x1a8446('0xdfa'),_0x2a1d69,_0x1a8446('0xdea')],[_0x1a8446('0x17d7'),_0x24ec19,_0x1a8446('0xdea')],[_0x1a8446('0xde9'),_0x559b52,'controller'],[_0x1a8446('0x433'),_0x2bedd9,_0x1a8446('0xdea')],[_0x1a8446('0x29d'),_0x17fe0d,_0x1a8446('0xdea')],[_0x1a8446('0x1449'),_0x4ea6e7,_0x1a8446('0x780')],['msMaterialColorPicker',_0x5b4816,_0x1a8446('0xdea')],['msNavFoldService',_0x2fa1af,_0x1a8446('0x1be9')],[_0x1a8446('0x2352'),_0x3b528e,_0x1a8446('0xdea')],[_0x1a8446('0x39c'),_0x478538,'controller'],[_0x1a8446('0x2677'),_0x2eea89,'directive'],[_0x1a8446('0x19e0'),_0x58be80,'directive'],[_0x1a8446('0x1f14'),_0x32a293,_0x1a8446('0xdea')],['msNavToggle',_0x35473b,_0x1a8446('0xdea')],['msNavigationService',_0x1014ee,_0x1a8446('0xc66')],['MsNavigationController',_0x3ac220,_0x1a8446('0x780')],[_0x1a8446('0x19c3'),_0x3315d7,_0x1a8446('0xdea')],[_0x1a8446('0x2592'),_0x9c882c,_0x1a8446('0x780')],[_0x1a8446('0x6f4'),_0x374501,_0x1a8446('0xdea')],['msNavigationItem',_0x42f1d1,_0x1a8446('0xdea')],[_0x1a8446('0xfc4'),_0x52bace,'directive'],[_0x1a8446('0x638'),_0xaeb4ce,_0x1a8446('0x780')],[_0x1a8446('0x1db0'),_0x3a9a9e,_0x1a8446('0xdea')],[_0x1a8446('0x1d6'),_0xca2938,'directive'],[_0x1a8446('0x10aa'),_0x196316,_0x1a8446('0x780')],['msPhonebar',_0x3a38b8,_0x1a8446('0xdea')],[_0x1a8446('0xb3c'),_0x2490db,'controller'],[_0x1a8446('0x27cf'),_0x2fbd1d,_0x1a8446('0xdea')],[_0x1a8446('0x11f3'),_0x4ba2f3,_0x1a8446('0x780')],[_0x1a8446('0x181c'),_0x1eae94,_0x1a8446('0x780')],[_0x1a8446('0x10cb'),_0x2b6950,_0x1a8446('0x780')],[_0x1a8446('0x31b'),_0x2bb807,'directive'],[_0x1a8446('0x1f28'),_0x2804b2,_0x1a8446('0x1be9')],['msRandomClass',_0x1778e6,_0x1a8446('0xdea')],[_0x1a8446('0x1433'),_0x2cdb59,_0x1a8446('0xdea')],[_0x1a8446('0xac5'),_0x190a6f,_0x1a8446('0xdea')],[_0x1a8446('0xda0'),_0x1bccc7,_0x1a8446('0xc66')],[_0x1a8446('0x894'),_0x9f52ef,_0x1a8446('0xdea')],[_0x1a8446('0x98a'),_0x59ef1b,_0x1a8446('0x780')],[_0x1a8446('0x2667'),_0x22bed7,_0x1a8446('0xdea')],['MsShortcutsController',_0x2593e2,_0x1a8446('0x780')],[_0x1a8446('0xa61'),_0x4f6d3a,_0x1a8446('0xdea')],[_0x1a8446('0x1fc9'),_0x5b0843,'directive'],['msSplashScreen',_0x52cb70,'directive'],[_0x1a8446('0xb9b'),_0x40f509,'controller'],['msHorizontalStepper',_0x97ae40,'directive'],['msHorizontalStepperStep',_0x351f00,_0x1a8446('0xdea')],[_0x1a8446('0x5b0'),_0x2b3837,_0x1a8446('0xdea')],['msVerticalStepperStep',_0x37fe39,_0x1a8446('0xdea')],['MsTabScrollController',_0x3714d5,_0x1a8446('0x780')],['msTabScroll',_0x4d3e14,_0x1a8446('0xdea')],['MsTimelineController',_0x36c46e,_0x1a8446('0x780')],[_0x1a8446('0x109e'),_0xf81bb1,_0x1a8446('0xdea')],['msTimelineItem',_0x306fb8,_0x1a8446('0xdea')],[_0x1a8446('0x1c86'),_0xd73db5,_0x1a8446('0x780')],[_0x1a8446('0x1578'),_0x489d14,'directive'],['msTimezone',_0x57a8a6,_0x1a8446('0xdea')],[_0x1a8446('0xda2'),_0x168075,_0x1a8446('0x780')],[_0x1a8446('0x122'),_0x5de617,_0x1a8446('0x780')],[_0x1a8446('0x1413'),_0x50a681,_0x1a8446('0x780')],['MsWidgetEngineWebReportController',_0x38c1ce,_0x1a8446('0x780')],['MsWidgetEngineController',_0x269bdf,_0x1a8446('0x780')],[_0x1a8446('0x1a26'),_0x162b08,'directive'],['MsWidgetController',_0x210cc9,_0x1a8446('0x780')],[_0x1a8446('0x1d34'),_0x89deee,_0x1a8446('0xdea')],['msWidgetFront',_0x41f67b,_0x1a8446('0xdea')],[_0x1a8446('0x1a5b'),_0x321436,'directive']];const _0x91b1f1=_0x28734a;_0x1ed8ee[_0x1a8446('0x1e33')]=['$q',_0x1a8446('0xcb3')];function _0x1ed8ee(_0x400548,_0x40c259){function _0x177eb6(_0xde3934){var _0x5e61d8;return _0x400548(function(_0x59d8fe){var _0x5bda1f=a0_0x1149;try{if(_0x51538b()['isEmpty'](_0xde3934['resources']))_0x5e61d8=_0x40c259[_0x5bda1f('0x213f')]('DASHBOARDS.NONE');else{if(_0x51538b()[_0x5bda1f('0x116b')](_0xde3934['param']))_0x5e61d8=_0xde3934[_0x5bda1f('0x674')]?_0x40c259[_0x5bda1f('0x213f')](_0xde3934[_0x5bda1f('0x674')]):_0x40c259[_0x5bda1f('0x213f')]('DASHBOARDS.CHOOSE');else{if(_0xde3934[_0x5bda1f('0x14bc')][_0x5bda1f('0x2587')]===_0xde3934[_0x5bda1f('0x217b')][_0x5bda1f('0x2587')])_0x5e61d8=_0x40c259[_0x5bda1f('0x213f')](_0x5bda1f('0x20c4'));else{var _0x192244=_0xde3934[_0x5bda1f('0x1908')]||'id';_0x5e61d8=_0x51538b()(_0xde3934[_0x5bda1f('0x217b')])[_0x5bda1f('0xdb7')](function(_0x3b3842){var _0x314380=_0x5bda1f;return _0x51538b()[_0x314380('0x13d6')](_0xde3934['param'],_0x3b3842[_0x192244]);})[_0x5bda1f('0x1246')](_0x5bda1f('0x25d6'))['value']()[_0x5bda1f('0x19c4')](',\x20');}}}_0x59d8fe(_0x5e61d8);}catch(_0x4e2e89){console[_0x5bda1f('0x18d5')]('QuickFilterManager::setPlaceholder',_0x4e2e89),_0x59d8fe(null);}});}var _0xbc6fb3={'setPlaceholder':_0x177eb6};return _0xbc6fb3;}const _0x5ce374=_0x1ed8ee;;function _0x4c4728(){return function(_0x48542e){var _0x4772bf=a0_0x1149,_0x384ca5=Date[_0x4772bf('0x1861')]()-new Date(_0x48542e);if(_0x384ca5<0x3c*0x3c*0x3e8)return _0x420d43()(_0x48542e)[_0x4772bf('0x25d9')]();else{if(_0x384ca5<0x3c*0x3c*0x18*0x3e8)return _0x420d43()(_0x48542e)[_0x4772bf('0x1f27')]('HH:mm');else return _0x384ca5<0x3c*0x3c*0x18*0x7*0x3e8?_0x420d43()(_0x48542e)['format']('dddd'):_0x420d43()(_0x48542e)[_0x4772bf('0x93a')]();}};}const _0x17cf11=_0x4c4728;_0x43644e[_0x1a8446('0x1e33')]=[_0x1a8446('0x2809')];function _0x43644e(_0x45af62){return function(_0x2ed89c){var _0x3b270a=a0_0x1149;return _0x45af62[_0x3b270a('0x1a5')](_0x2ed89c);};}function _0x4cf85d(){return function(_0x45425a){var _0x563f43=a0_0x1149;return String(_0x45425a)[_0x563f43('0x170d')](/<[^>]+>/gm,'');};}function _0x52f017(){return function(_0x1da631){var _0x1b8032=a0_0x1149;return!_0x1da631?'':_0x1da631[_0x1b8032('0x170d')](/ /g,'');};}function _0x104669(){return function(_0x204aa1){var _0x399b86=a0_0x1149;if(!_0x204aa1)return;if(_0x204aa1[_0x399b86('0x6c8')]==='directive')return _0x204aa1[_0x399b86('0x25d6')]['replace'](/([A-Z])/g,function(_0xa74dbf){var _0x426d17=_0x399b86;return'-'+_0xa74dbf[_0x426d17('0xcf6')]();});return _0x204aa1['label']||_0x204aa1[_0x399b86('0x25d6')];};};function _0x53bfb9(){return function(_0x5b5638){var _0x35ff95=a0_0x1149;if(!_0x5b5638)return'';return _0x51538b()[_0x35ff95('0x1b56')](_0x5b5638);};}const _0x2593e8=_0x53bfb9;function _0x2575b2(){return function(_0x3eaf7f,_0x4eaaec){var _0x1d506b=a0_0x1149;if(_0x3eaf7f[_0x1d506b('0x2587')]===0x0||!_0x4eaaec)return _0x3eaf7f;if(_0x4eaaec[_0x1d506b('0x2587')]===0x0)return[];var _0xef0b57=[];for(var _0x44b7b8=0x0;_0x44b7b8<_0x3eaf7f[_0x1d506b('0x2587')];_0x44b7b8++){var _0x2a1ac1=_0x3eaf7f[_0x44b7b8],_0x5b5aea=![];for(var _0x5a6a7c=0x0;_0x5a6a7c<_0x4eaaec[_0x1d506b('0x2587')];_0x5a6a7c++){var _0x5b1b9e=_0x4eaaec[_0x5a6a7c];if(_0x2a1ac1['id']===_0x5b1b9e){_0x5b5aea=!![];break;}}_0x5b5aea&&_0xef0b57[_0x1d506b('0x1599')](_0x2a1ac1);}return _0xef0b57;};}const _0x29d482=_0x2575b2;function _0x4c227d(){return function(_0x31cfdb,_0x76c018,_0x5ef741){var _0x6632e=a0_0x1149;if(_0x31cfdb[_0x6632e('0x2587')]===0x0||!_0x5ef741||_0x5ef741['length']===0x0)return _0x31cfdb;var _0x42234f=[];for(var _0x3950c4=0x0;_0x3950c4<_0x31cfdb[_0x6632e('0x2587')];_0x3950c4++){var _0x4bff25=_0x31cfdb[_0x3950c4],_0x20fd96=![];for(var _0x2800fe=0x0;_0x2800fe<_0x5ef741[_0x6632e('0x2587')];_0x2800fe++){var _0x53d371=_0x5ef741[_0x2800fe];if(_0x4bff25[_0x76c018][_0x6632e('0x1f38')](_0x53d371)>-0x1){_0x20fd96=!![];break;}}_0x20fd96&&_0x42234f[_0x6632e('0x1599')](_0x4bff25);}return _0x42234f;};}const _0x10a57a=_0x4c227d;;function _0x43536d(){return function(_0x25778f){if(!_0x25778f)return'';return _0x51538b()['snakeCase'](_0x25778f);};}const _0x13a206=_0x43536d;;function _0x4adb53(){return function(_0x23a69a){var _0x79850f=a0_0x1149;if(!_0x23a69a)return'';return _0x51538b()[_0x79850f('0x196a')](_0x23a69a);};}const _0x9a90fe=_0x4adb53;function _0x19601f(){return function(_0xb5657e,_0x1ce22a){var _0x2d55a2=a0_0x1149;if(_0xb5657e[_0x2d55a2('0x2587')]===0x0||_0x1ce22a[_0x2d55a2('0x2587')]===0x0)return _0xb5657e;var _0xeaca84=[];return _0xb5657e[_0x2d55a2('0x15b5')](function(_0x5cabb9){var _0x5367e4=_0x2d55a2,_0x4a994f=_0x1ce22a[_0x5367e4('0x2ed')](function(_0x5c59bf){var _0x14dde1=_0x5367e4,_0x2a6bcb=![];return _0x5cabb9[_0x14dde1('0x523')][_0x14dde1('0x15b5')](function(_0x53fdcc){var _0x328686=_0x14dde1;if(_0x53fdcc[_0x328686('0x25d6')]===_0x5c59bf[_0x328686('0x25d6')]){_0x2a6bcb=!![];return;}}),_0x2a6bcb;});_0x4a994f&&_0xeaca84[_0x5367e4('0x1599')](_0x5cabb9);}),_0xeaca84;};}function _0x330ae8(){return function(_0x3d2bef,_0x3da9d8){var _0x5655f1=a0_0x1149;if(_0x3d2bef[_0x5655f1('0x2587')]===0x0||_0x3da9d8[_0x5655f1('0x2587')]===0x0)return;if(_0x3d2bef[_0x5655f1('0x2587')]<_0x3da9d8[_0x5655f1('0x2587')])return[];var _0xd654fd=[],_0x1eb9a8=_0x3da9d8[_0x5655f1('0x2ed')](function(_0x560f0d){var _0x39447f=_0x5655f1,_0x5bc6e0=![];return _0x3d2bef[_0x39447f('0x15b5')](function(_0xf494e){var _0x5147cd=_0x39447f;if(_0xf494e[_0x5147cd('0x25d6')]===_0x560f0d[_0x5147cd('0x25d6')]){_0x5bc6e0=!![];return;}}),_0x5bc6e0;});return _0x1eb9a8&&_0xd654fd['push'](_0x3d2bef),_0xd654fd;};}function _0x322609(_0x315450,_0x76342){var _0x45451b=_0x1a8446;if(!(_0x315450 instanceof _0x76342))throw new TypeError(_0x45451b('0x1165'));}var _0x151cd4=function _0x2c813a(_0x3d6e29,_0x312870,_0x2ed190,_0x324b36){var _0x5a960c=_0x1a8446;_0x322609(this,_0x2c813a),this['id']=Math[_0x5a960c('0x8fc')]()[_0x5a960c('0x684')](0x24)['substring'](0x2,0xf)+Math[_0x5a960c('0x8fc')]()[_0x5a960c('0x684')](0x24)[_0x5a960c('0xb10')](0x2,0xf),this[_0x5a960c('0x110a')]=_0x3d6e29,this[_0x5a960c('0x54c')]=_0x312870,this['accept']=_0x2ed190,this[_0x5a960c('0xaee')]=_0x324b36,this['close']=_0x27fa82;};function _0x20fd94(){var _0x559bce=_0x1a8446;return!(window[_0x559bce('0x12aa')][_0x559bce('0x1ad2')]||window['document'][_0x559bce('0x2420')]||window['document'][_0x559bce('0x194')]);}function _0x3b10a4(){var _0x566a43=_0x1a8446;return/Chrome/['test'](navigator[_0x566a43('0x1f79')])&&/Google Inc/[_0x566a43('0x42d')](navigator['vendor']);}function _0x27fa82(){var _0x3823ee=_0x1a8446,_0x5cd2d7=this;navigator[_0x3823ee('0x6be')][_0x3823ee('0x24bb')][_0x3823ee('0xaa5')](function(_0x2a2f0f){var _0x5c6e1e=_0x3823ee;_0x2a2f0f['getNotifications']()[_0x5c6e1e('0xaa5')](function(_0x554aaf){var _0xbb0fb6=_0x5c6e1e,_0x164eef=_0x51538b()[_0xbb0fb6('0xe9e')](_0x554aaf,function(_0x411ece){var _0x9f5d1a=_0xbb0fb6;return _0x411ece[_0x9f5d1a('0x10fd')]['id']===_0x5cd2d7['id'];});_0x164eef&&_0x164eef[_0xbb0fb6('0x21d0')]();});});}function _0x102271(){return{'$get':[_0x101044]};function _0x101044(){var _0x42f2f9=a0_0x1149,_0x19dfab=[],_0x191ebe,_0x4c03a6;return'serviceWorker'in navigator&&_0x3b10a4()?navigator[_0x42f2f9('0x6be')][_0x42f2f9('0x1a91')]('service-worker.js')[_0x42f2f9('0xaa5')](function(_0xe79d4d){var _0x2a7c94=_0x42f2f9;_0x191ebe=_0xe79d4d,_0x191ebe[_0x2a7c94('0x264e')]();if(_0x191ebe['installing'])_0x4c03a6=_0x191ebe[_0x2a7c94('0x18a7')];else{if(_0x191ebe[_0x2a7c94('0xd3d')])_0x4c03a6=_0x191ebe[_0x2a7c94('0xd3d')];else _0x191ebe[_0x2a7c94('0xb3a')]&&(_0x4c03a6=_0x191ebe[_0x2a7c94('0xb3a')]);}})[_0x42f2f9('0x253d')](function(_0x179cb2){var _0x43c1ba=_0x42f2f9;console[_0x43c1ba('0x187f')]('Service\x20worker\x20registration\x20failed',_0x179cb2);}):console[_0x42f2f9('0x187f')](_0x42f2f9('0x196e')),navigator[_0x42f2f9('0x6be')]['addEventListener'](_0x42f2f9('0x1402'),function(_0x556545){var _0x28ac60=_0x42f2f9;if(_0x556545[_0x28ac60('0x82f')]!==_0x4c03a6)return;var _0x28a6fc=_0x51538b()[_0x28ac60('0xe9e')](_0x19dfab,{'id':_0x556545[_0x28ac60('0x10fd')]['id']});if(_0x28a6fc)switch(_0x556545[_0x28ac60('0x10fd')][_0x28ac60('0xb08')]){case _0x28ac60('0x5d5'):_0x28a6fc[_0x28ac60('0x5d5')]&&_0x28a6fc[_0x28ac60('0x5d5')]();break;case _0x28ac60('0xaee'):_0x28a6fc['reject']&&_0x28a6fc['reject']();break;default:}}),{'create':function _0x389863(_0x5766a6,_0x227dc7,_0x14d7d4,_0x1b5704,_0x14576){return new Promise(function(_0x45589a,_0x5002d4){var _0x4a76c7=a0_0x1149,_0x298e57;_0x3b10a4()&&!_0x20fd94()?(_0x298e57=new _0x151cd4(_0x5766a6||_0x4a76c7('0x1212'),_0x227dc7||_0x4a76c7('0x199a'),_0x1b5704,_0x14576),_0x19dfab[_0x4a76c7('0x1599')](_0x298e57),_0x298e57?window[_0x4a76c7('0x274e')]['requestPermission']()[_0x4a76c7('0xaa5')](function(_0xf1af5b){var _0xbe027b=_0x4a76c7;if(_0xf1af5b===_0xbe027b('0x1e9b'))return _0x191ebe[_0xbe027b('0x4b2')](_0x298e57[_0xbe027b('0x110a')],{'body':_0x298e57[_0xbe027b('0x54c')],'requireInteraction':!![],'icon':_0x14d7d4||_0xbe027b('0x1929'),'data':{'id':_0x298e57['id']},'actions':[{'action':_0xbe027b('0x5d5'),'title':'Accept'},{'action':_0xbe027b('0xaee'),'title':_0xbe027b('0x22a6')}]});})[_0x4a76c7('0xaa5')](function(){_0x45589a(_0x298e57);})['catch'](function(_0x64f423){_0x5002d4(_0x64f423);}):_0x5002d4(new Error('Notification\x20creating\x20error'))):_0x45589a();});}};}}const _0x285589=_0x102271;_0x732705[_0x1a8446('0x1e33')]=['$q',_0x1a8446('0x26bb'),_0x1a8446('0x157')];function _0x732705(_0x47e8ff,_0x5f0ec0,_0x327be8){var _0x130712={'resolve':_0x410600};return _0x130712;function _0x410600(_0x2f4ad7,_0x16e842){var _0x50b085=a0_0x1149,_0x42d3c6=_0x2f4ad7[_0x50b085('0x1a39')]('@'),_0x390fec=_0x42d3c6[0x0],_0x3d31cb=_0x42d3c6[0x1],_0x5bacc9=_0x16e842||{};if(!_0x390fec||!_0x3d31cb)return _0x5f0ec0[_0x50b085('0x187f')](_0x50b085('0x216e')),![];var _0x3622f3=_0x47e8ff[_0x50b085('0x213b')](),_0x3ad8e5=_0x54c81f(_0x390fec);return!_0x3ad8e5?(_0x5f0ec0['error'](_0x50b085('0x1ed6')+_0x390fec+_0x50b085('0x1112')),_0x3622f3[_0x50b085('0xaee')](_0x50b085('0x1ed6')+_0x390fec+_0x50b085('0x1112'))):_0x3ad8e5[_0x3d31cb](_0x5bacc9,function(_0x1dae72){var _0x1f56b1=_0x50b085;_0x3622f3[_0x1f56b1('0x149f')](_0x1dae72);},function(_0x28163e){_0x3622f3['reject'](_0x28163e);}),_0x3622f3[_0x50b085('0x159a')];}function _0x54c81f(_0x474e60){var _0x233c8a=a0_0x1149,_0x4a147c=_0x474e60[_0x233c8a('0x1a39')]('.'),_0xdd3520=_0x327be8;for(var _0x38fb37=0x0;_0x38fb37<_0x4a147c[_0x233c8a('0x2587')];_0x38fb37++){if(angular['isUndefined'](_0xdd3520[_0x4a147c[_0x38fb37]])){_0x5f0ec0[_0x233c8a('0x187f')]('Resource\x20part\x20\x22'+_0x4a147c[_0x38fb37]+_0x233c8a('0x1d89')),_0xdd3520=![];break;}_0xdd3520=_0xdd3520[_0x4a147c[_0x38fb37]];}if(!_0xdd3520)return![];return _0xdd3520;}}const _0x3583d1=_0x732705;_0x4e77ed[_0x1a8446('0x1e33')]=[_0x1a8446('0x6a4')];function _0x4e77ed(_0x36862c){function _0x25093e(){var _0x41173e=a0_0x1149;_0x36862c[_0x41173e('0x81b')]=!![];}function _0x2cddaf(){var _0x5bac8f=a0_0x1149;_0x36862c[_0x5bac8f('0x81b')]=![];}var _0x167e80={'showLoadingIndicator':_0x25093e,'hideLoadingIndicator':_0x2cddaf};return _0x167e80;}const _0xcaecd6=_0x4e77ed;function _0x5e78ea(){var _0x28397f=_0x1a8446,_0x205d26=this,_0x32ba2a=angular[_0x28397f('0x952')](['ng'])['get'](_0x28397f('0x26bb')),_0x3ca950='',_0x568d2e=[];_0x205d26[_0x28397f('0x1a14')]=_0xcb84b7,_0x205d26[_0x28397f('0x7af')]=_0x1fb12d,_0x205d26[_0x28397f('0x729')]=_0x57a712,_0x205d26['register']=_0x4603d9;function _0xcb84b7(_0x466f28){_0x3ca950=_0x466f28;}function _0x1fb12d(){return _0x3ca950;}function _0x57a712(){return _0x568d2e;}function _0x4603d9(_0x4ce035,_0x3d58c9){var _0x18357f=_0x28397f;if(!angular['isString'](_0x4ce035)){_0x32ba2a[_0x18357f('0x187f')](_0x18357f('0x1fcf'));return;}if(!angular[_0x18357f('0x4f')](_0x3d58c9)){_0x32ba2a[_0x18357f('0x187f')](_0x18357f('0xc81'));return;}_0x568d2e[_0x4ce035]={'url':_0x3ca950+(_0x3d58c9[0x0]||''),'paramDefaults':_0x3d58c9[0x1]||[],'actions':_0x3d58c9[0x2]||[],'options':_0x3d58c9[0x3]||{}};}this[_0x28397f('0x149')]=function(_0x540ea9,_0x5d8926,_0x14690d,_0x5583f6){var _0x53b47e={'setBaseUrl':_0xcb84b7,'getBaseUrl':_0x1fb12d,'register':_0x4603d9,'resolve':_0x19a637,'request':_0x321f71};return _0x53b47e;function _0x19a637(_0x2c7814,_0x1c56e1){var _0x2602be=a0_0x1149;_0x5583f6[_0x2602be('0xd1')](_0x2602be('0x6ba'));var _0x5497c1=_0x2c7814[_0x2602be('0x1a39')]('@'),_0x3dbcaa=_0x5497c1[0x0],_0x56619b=_0x5497c1[0x1],_0x2b8f10=_0x1c56e1||{};if(!_0x3dbcaa||!_0x56619b)return _0x540ea9[_0x2602be('0x187f')](_0x2602be('0x576')),![];var _0x131b3c=_0x5d8926['defer'](),_0x3ca024=_0x568d2e[_0x3dbcaa];if(!_0x3ca024)_0x540ea9[_0x2602be('0x187f')](_0x2602be('0x1ed6')+_0x3dbcaa+_0x2602be('0x1112')),_0x131b3c[_0x2602be('0xaee')](_0x2602be('0x1ed6')+_0x3dbcaa+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!');else{var _0x46764a=_0x14690d(_0x3ca024['url'],_0x3ca024[_0x2602be('0xad9')],_0x3ca024[_0x2602be('0x1e41')],_0x3ca024['options']);_0x46764a[_0x56619b](_0x2b8f10,function(_0x8065e7){var _0x9d424=_0x2602be;_0x131b3c[_0x9d424('0x149f')](_0x8065e7),_0x5583f6[_0x9d424('0xd1')](_0x9d424('0x1cbb'));},function(_0x42a52f){var _0x713efa=_0x2602be;_0x131b3c[_0x713efa('0xaee')](_0x42a52f),_0x5583f6[_0x713efa('0xd1')](_0x713efa('0x104b'));});}return _0x131b3c[_0x2602be('0x159a')];}function _0x321f71(_0x27433d,_0x249a0d,_0x2a0353,_0x24a8c2){var _0x559cfa=a0_0x1149;_0x5583f6[_0x559cfa('0xd1')](_0x559cfa('0x217a'));var _0x2d0dbf=_0x27433d['split']('@'),_0x92de0b=_0x2d0dbf[0x0],_0x59ff9a=_0x2d0dbf[0x1],_0x193d93=_0x249a0d||{};if(!_0x92de0b||!_0x59ff9a)return _0x540ea9[_0x559cfa('0x187f')](_0x559cfa('0x576')),![];var _0x3a66ac=_0x5d8926[_0x559cfa('0x213b')](),_0x303dbd=_0x568d2e[_0x92de0b];if(!_0x303dbd)_0x540ea9[_0x559cfa('0x187f')](_0x559cfa('0x1ed6')+_0x92de0b+_0x559cfa('0x1112')),_0x3a66ac[_0x559cfa('0xaee')](_0x559cfa('0x1ed6')+_0x92de0b+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!');else{var _0x481b4c=_0x14690d(_0x303dbd[_0x559cfa('0x2242')],_0x303dbd[_0x559cfa('0xad9')],_0x303dbd[_0x559cfa('0x1e41')],_0x303dbd[_0x559cfa('0x1b36')]);_0x481b4c[_0x59ff9a](_0x193d93,function(_0x3201e1){var _0xaa1422=_0x559cfa;_0x5583f6[_0xaa1422('0xd1')](_0xaa1422('0x1d20')),_0x3a66ac[_0xaa1422('0x149f')](_0x3201e1),angular[_0xaa1422('0x21dc')](_0x2a0353)&&angular[_0xaa1422('0x171f')](_0x2a0353)&&_0x2a0353(_0x3201e1);},function(_0x986adf){var _0xf459fc=_0x559cfa;_0x5583f6[_0xf459fc('0xd1')](_0xf459fc('0x1e4f')),_0x3a66ac[_0xf459fc('0xaee')](_0x986adf),angular[_0xf459fc('0x21dc')](_0x24a8c2)&&angular[_0xf459fc('0x171f')](_0x24a8c2)&&_0x24a8c2(_0x986adf);});}return _0x3a66ac['promise'];}};}const _0x19309f=_0x5e78ea;var _0x51c48c=_0x4fb511(0x985),_0x396842=_0x4fb511['n'](_0x51c48c);_0x409554['$inject']=[_0x1a8446('0x27bf')];function _0x409554(_0x314814){var _0xec8cd9=_0x1a8446,_0x5b32da=new(_0x396842())(_0x314814[_0xec8cd9('0x1fd9')]['userAgent']),_0x1a2f23=null,_0x18bed1={'exists':_0x1e8bbf,'detectBrowser':_0x124732,'guidGenerator':_0x474628,'isMobile':_0x340d25,'toggleInArray':_0x3064f6,'firstLastDayMonth':_0x1b8a36};return _0x18bed1;function _0x1e8bbf(_0x561110,_0x31c2e7){var _0x27dd9c=_0xec8cd9;return _0x31c2e7[_0x27dd9c('0x1f38')](_0x561110)>-0x1;}function _0x124732(){var _0x5bf107=_0xec8cd9;if(_0x1a2f23)return _0x1a2f23;var _0x570a02=[{'string':_0x314814[_0x5bf107('0x1fd9')]['userAgent'],'subString':_0x5bf107('0x102c'),'versionSearch':'Edge','identity':_0x5bf107('0x102c')},{'string':_0x314814['navigator'][_0x5bf107('0x1f79')],'subString':_0x5bf107('0x1de8'),'identity':_0x5bf107('0x1de8')},{'string':_0x314814['navigator'][_0x5bf107('0x1f79')],'subString':_0x5bf107('0x333'),'versionSearch':'OmniWeb/','identity':_0x5bf107('0x333')},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x50b')],'subString':_0x5bf107('0x272'),'versionSearch':_0x5bf107('0x163'),'identity':_0x5bf107('0x1dd6')},{'prop':_0x314814['opera'],'identity':'Opera'},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x50b')],'subString':_0x5bf107('0x8d9'),'identity':_0x5bf107('0x8d9')},{'string':_0x314814[_0x5bf107('0x1fd9')]['vendor'],'subString':_0x5bf107('0x1754'),'identity':_0x5bf107('0x1abd')},{'string':_0x314814['navigator'][_0x5bf107('0x1f79')],'subString':_0x5bf107('0x88c'),'identity':_0x5bf107('0x88c')},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x50b')],'subString':_0x5bf107('0x58f'),'identity':_0x5bf107('0x58f')},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x1f79')],'subString':_0x5bf107('0x105'),'identity':'Netscape'},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x1f79')],'subString':'MSIE','identity':_0x5bf107('0xe7b'),'versionSearch':_0x5bf107('0xa29')},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x1f79')],'subString':_0x5bf107('0x1006'),'identity':'Explorer','versionSearch':'rv'},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x1f79')],'subString':_0x5bf107('0xde1'),'identity':_0x5bf107('0x2807'),'versionSearch':'rv'},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x1f79')],'subString':_0x5bf107('0x2807'),'identity':_0x5bf107('0x105'),'versionSearch':'Mozilla'}],_0x4fbd20=[{'string':_0x314814['navigator']['platform'],'subString':_0x5bf107('0x1254'),'identity':_0x5bf107('0xbd0')},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0xad7')],'subString':_0x5bf107('0x59a'),'identity':'Mac'},{'string':_0x314814[_0x5bf107('0x1fd9')]['platform'],'subString':_0x5bf107('0x1336'),'identity':_0x5bf107('0x1336')},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0xad7')],'subString':_0x5bf107('0x222e'),'identity':_0x5bf107('0x222e')},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0xad7')],'subString':_0x5bf107('0x1d57'),'identity':'iPod'},{'string':_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0xad7')],'subString':_0x5bf107('0x241c'),'identity':'iPad'},{'string':_0x314814['navigator'][_0x5bf107('0xad7')],'subString':_0x5bf107('0x1500'),'identity':_0x5bf107('0x1500')}],_0x3b2a54='';function _0x5d047a(_0x4c9b7f){var _0x57df2f=_0x5bf107;for(var _0x47da64=0x0;_0x47da64<_0x4c9b7f[_0x57df2f('0x2587')];_0x47da64++){var _0x27e5d8=_0x4c9b7f[_0x47da64]['string'],_0x4c9df5=_0x4c9b7f[_0x47da64][_0x57df2f('0x441')];_0x3b2a54=_0x4c9b7f[_0x47da64][_0x57df2f('0x1805')]||_0x4c9b7f[_0x47da64]['identity'];if(_0x27e5d8){if(_0x27e5d8[_0x57df2f('0x1f38')](_0x4c9b7f[_0x47da64][_0x57df2f('0x26f2')])!==-0x1)return _0x4c9b7f[_0x47da64][_0x57df2f('0xc94')];}else{if(_0x4c9df5)return _0x4c9b7f[_0x47da64][_0x57df2f('0xc94')];}}}function _0x321f4a(_0x2d858d){var _0x385bb1=_0x5bf107,_0x4a4cac=_0x2d858d[_0x385bb1('0x1f38')](_0x3b2a54);if(_0x4a4cac===-0x1)return;return parseInt(_0x2d858d[_0x385bb1('0xb10')](_0x4a4cac+_0x3b2a54[_0x385bb1('0x2587')]+0x1));}var _0x230718=_0x5d047a(_0x570a02)||_0x5bf107('0x17be'),_0xa30253=_0x321f4a(_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x1f79')])||_0x321f4a(_0x314814[_0x5bf107('0x1fd9')][_0x5bf107('0x7cf')])||_0x5bf107('0x223d'),_0x42a00f=_0x5d047a(_0x4fbd20)||_0x5bf107('0x7de');return _0x230718=_0x230718[_0x5bf107('0xcf6')](),_0xa30253=_0x230718+'-'+_0xa30253,_0x42a00f=_0x42a00f[_0x5bf107('0xcf6')](),_0x1a2f23={'browser':_0x230718,'version':_0xa30253,'os':_0x42a00f},_0x1a2f23;}function _0x474628(){var _0x9c04e4=function _0x409cc2(){var _0x158cf5=a0_0x1149;return((0x1+Math[_0x158cf5('0x8fc')]())*0x10000||0x0)['toString'](0x10)[_0x158cf5('0xb10')](0x1);};return _0x9c04e4()+_0x9c04e4()+_0x9c04e4()+_0x9c04e4()+_0x9c04e4()+_0x9c04e4();}function _0x340d25(){var _0x39d93f=_0xec8cd9;return _0x5b32da[_0x39d93f('0x1125')]();}function _0x3064f6(_0x4706bb,_0x1b2685){var _0x5d73c7=_0xec8cd9;_0x1b2685['indexOf'](_0x4706bb)===-0x1?_0x1b2685['push'](_0x4706bb):_0x1b2685[_0x5d73c7('0x1280')](_0x1b2685[_0x5d73c7('0x1f38')](_0x4706bb),0x1);}function _0x1b8a36(){var _0x2a284d=_0xec8cd9;return{'$gte':_0x420d43()()[_0x2a284d('0x206d')](_0x2a284d('0xae9'))[_0x2a284d('0x15db')](0x0,!![])[_0x2a284d('0x1f27')](),'$lte':_0x420d43()()[_0x2a284d('0x173a')](_0x2a284d('0xae9'))['utcOffset'](0x0,!![])[_0x2a284d('0x1f27')]()};}}const _0x41076e=_0x409554,_0x4e0130=_0x4fb511['p']+_0x1a8446('0x19a3');_0x1c04f2['$inject']=[_0x1a8446('0x1261')],_0x11e276[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),'motionTheming'];function _0x11e276(_0x840593,_0x35c400){var _0x2cedfe=_0x1a8446,_0x30aabf=this;_0x30aabf[_0x2cedfe('0x20b0')]=_0x35c400[_0x2cedfe('0x20b0')],_0x30aabf['layoutModes']=[{'label':_0x2cedfe('0x1b5f'),'value':_0x2cedfe('0xc41')},{'label':_0x2cedfe('0x16ca'),'value':_0x2cedfe('0xcd7')}],_0x30aabf[_0x2cedfe('0x15b2')]=[{'label':_0x2cedfe('0x29a'),'value':'verticalNavigation','figure':_0x2cedfe('0x25cb')},{'label':_0x2cedfe('0x1dd0'),'value':_0x2cedfe('0x2031'),'figure':_0x2cedfe('0xca6')},{'label':_0x2cedfe('0x1515'),'value':_0x2cedfe('0x5f1'),'figure':_0x2cedfe('0xa74')},{'label':_0x2cedfe('0x6b9'),'value':_0x2cedfe('0x705'),'figure':_0x2cedfe('0x1d43')},{'label':_0x2cedfe('0x629'),'value':_0x2cedfe('0x1303'),'figure':_0x2cedfe('0x1612')},{'label':_0x2cedfe('0x10b'),'value':'contentOnly','figure':_0x2cedfe('0xccb')}],_0x30aabf[_0x2cedfe('0x1eb0')]=_0x2cedfe('0xcd7'),_0x30aabf[_0x2cedfe('0xf98')]=_0x840593['get'](_0x2cedfe('0x1f89'))||_0x2cedfe('0x2791'),_0x30aabf[_0x2cedfe('0x3dd')]=_0x31993b,_0x30aabf[_0x2cedfe('0x22ed')]=_0x397920,_0x30aabf[_0x2cedfe('0x242')]=_0x5a9036,_0x30aabf[_0x2cedfe('0x2401')]=_0x1b3d1e;function _0x31993b(_0x4f6dd6){_0x35c400['setActiveTheme'](_0x4f6dd6);}function _0x397920(){var _0x2aabb8=_0x2cedfe;return _0x35c400[_0x2aabb8('0x20b0')][_0x2aabb8('0xb3a')];}function _0x5a9036(){var _0x22099b=_0x2cedfe,_0x18e49d=angular['element']('body');_0x18e49d['toggleClass'](_0x22099b('0xc41'),_0x30aabf[_0x22099b('0x1eb0')]==='boxed');}function _0x1b3d1e(){var _0x309c3b=_0x2cedfe;_0x840593[_0x309c3b('0x5ad')](_0x309c3b('0x1f89'),_0x30aabf[_0x309c3b('0xf98')]),location[_0x309c3b('0xdf3')]();}}function _0x1c04f2(_0x252d3e){return{'restrict':'E','scope':{},'controller':'MsThemeOptionsController\x20as\x20vm','templateUrl':_0x4e0130,'compile':function _0x5262ab(_0x3f5eaa){var _0x45ee32=a0_0x1149;return _0x3f5eaa[_0x45ee32('0x1b97')](_0x45ee32('0xde')),function _0x3f46ba(_0x262f43){function _0x3c9a5e(){var _0x3f23e6=a0_0x1149;_0x252d3e(_0x3f23e6('0x261'))[_0x3f23e6('0x162a')]();}_0x262f43['toggleOptionsSidenav']=_0x3c9a5e;};}};}_0x19c805[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x26bb'),'motionTheming'];function _0x19c805(_0x340acd,_0xf56888,_0x148424){var _0x5c9f0a={},_0x243228={'generate':_0x4bb1ef,'rgba':_0x314914};return _0x243228;function _0x4bb1ef(){var _0x4fdfca=a0_0x1149,_0x29c9eb=angular[_0x4fdfca('0x20a')](_0x148424['getRegisteredThemes']()),_0x7034b3=angular['copy'](_0x148424[_0x4fdfca('0x43')]());angular[_0x4fdfca('0x15b5')](_0x29c9eb,function(_0x4acb29){var _0x4a437f=_0x4fdfca;_0x5c9f0a[_0x4acb29['name']]={},angular[_0x4a437f('0x15b5')](_0x4acb29[_0x4a437f('0x62b')],function(_0x4cdf87,_0x525b16){var _0x371eef=_0x4a437f;_0x5c9f0a[_0x4acb29[_0x371eef('0x25d6')]][_0x525b16]={'name':_0x4cdf87[_0x371eef('0x25d6')],'levels':{'default':{'color':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x449')]]['value']),'contrast1':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x449')]][_0x371eef('0x262f')],0x1),'contrast2':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')]['default']][_0x371eef('0x262f')],0x2),'contrast3':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x449')]][_0x371eef('0x262f')],0x3),'contrast4':_0x314914(_0x7034b3[_0x4cdf87['name']][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x449')]][_0x371eef('0x262f')],0x4)},'hue1':{'color':_0x314914(_0x7034b3[_0x4cdf87['name']][_0x4cdf87[_0x371eef('0x2359')]['hue-1']]['value']),'contrast1':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')]['hue-1']][_0x371eef('0x262f')],0x1),'contrast2':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x2774')]]['contrast'],0x2),'contrast3':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x2774')]][_0x371eef('0x262f')],0x3),'contrast4':_0x314914(_0x7034b3[_0x4cdf87['name']][_0x4cdf87[_0x371eef('0x2359')]['hue-1']]['contrast'],0x4)},'hue2':{'color':_0x314914(_0x7034b3[_0x4cdf87['name']][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0xfe0')]]['value']),'contrast1':_0x314914(_0x7034b3[_0x4cdf87['name']][_0x4cdf87['hues'][_0x371eef('0xfe0')]][_0x371eef('0x262f')],0x1),'contrast2':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87['hues']['hue-2']][_0x371eef('0x262f')],0x2),'contrast3':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87['hues'][_0x371eef('0xfe0')]][_0x371eef('0x262f')],0x3),'contrast4':_0x314914(_0x7034b3[_0x4cdf87['name']][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0xfe0')]]['contrast'],0x4)},'hue3':{'color':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x94a')]][_0x371eef('0x12f4')]),'contrast1':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x94a')]][_0x371eef('0x262f')],0x1),'contrast2':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x94a')]][_0x371eef('0x262f')],0x2),'contrast3':_0x314914(_0x7034b3[_0x4cdf87['name']][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x94a')]][_0x371eef('0x262f')],0x3),'contrast4':_0x314914(_0x7034b3[_0x4cdf87[_0x371eef('0x25d6')]][_0x4cdf87[_0x371eef('0x2359')][_0x371eef('0x94a')]][_0x371eef('0x262f')],0x4)}}};});}),_0x5e2a52(_0x5c9f0a);var _0x4d450d={};angular[_0x4fdfca('0x15b5')](_0x5c9f0a,function(_0x55e3d8,_0xf583f8){var _0x176225=_0x4fdfca;_0x4d450d={},_0x4d450d['@themeName']=_0xf583f8,angular[_0x176225('0x15b5')](_0x55e3d8,function(_0x2968b4,_0xa30b67){var _0x3c2e4f=_0x176225;angular[_0x3c2e4f('0x15b5')](_0x2968b4[_0x3c2e4f('0x1c30')],function(_0x1f204b,_0x342754){angular['forEach'](_0x1f204b,function(_0x3d6d0f,_0x286c87){_0x4d450d['@'+_0xa30b67+_0x2cd2f9(_0x342754)+_0x2cd2f9(_0x286c87)]=_0x3d6d0f;});});}),_0x198c40(_0x4d450d);});}function _0x5e2a52(_0xdc552){var _0x1040cd=a0_0x1149,_0x160abd=angular[_0x1040cd('0x20a')](_0xdc552);angular[_0x1040cd('0x15b5')](_0x160abd,function(_0x1825a0){angular['forEach'](_0x1825a0,function(_0x3e4360,_0x3d3ef8){var _0x5c95f6=a0_0x1149;_0x1825a0[_0x3d3ef8]=_0x3e4360[_0x5c95f6('0x1c30')],_0x1825a0[_0x3d3ef8][_0x5c95f6('0x4b9')]=_0x3e4360['levels'][_0x5c95f6('0x449')][_0x5c95f6('0x4b9')],_0x1825a0[_0x3d3ef8][_0x5c95f6('0x70d')]=_0x3e4360['levels'][_0x5c95f6('0x449')][_0x5c95f6('0x70d')],_0x1825a0[_0x3d3ef8][_0x5c95f6('0x9bb')]=_0x3e4360[_0x5c95f6('0x1c30')][_0x5c95f6('0x449')]['contrast2'],_0x1825a0[_0x3d3ef8][_0x5c95f6('0x255b')]=_0x3e4360[_0x5c95f6('0x1c30')][_0x5c95f6('0x449')][_0x5c95f6('0x255b')],_0x1825a0[_0x3d3ef8][_0x5c95f6('0x397')]=_0x3e4360[_0x5c95f6('0x1c30')][_0x5c95f6('0x449')]['contrast4'],delete _0x1825a0[_0x3d3ef8]['default'];});}),_0x148424[_0x1040cd('0x643')](_0x160abd);var _0x2ec414=_0x340acd[_0x1040cd('0x2122')](_0x1040cd('0x14e'));_0x2ec414?_0x148424[_0x1040cd('0x3dd')](_0x2ec414):_0x148424[_0x1040cd('0x3dd')]('default');}function _0x198c40(_0x1d8d90){var _0x31c1ba=a0_0x1149,_0x38d795=_0x31c1ba('0x1f95'),_0x5b6c35=new RegExp(Object[_0x31c1ba('0x9f2')](_0x1d8d90)['join']('|'),'gi'),_0x2c9ceb=_0x38d795[_0x31c1ba('0x170d')](_0x5b6c35,function(_0x1e0ea2){return _0x1d8d90[_0x1e0ea2];}),_0x351a10=angular[_0x31c1ba('0x1aa8')](_0x31c1ba('0x19da')),_0x1f9888=angular[_0x31c1ba('0x1aa8')](_0x31c1ba('0x1876'));_0x1f9888[_0x31c1ba('0x1869')](_0x2c9ceb),_0x351a10[_0x31c1ba('0x1923')](_0x1f9888);}function _0x314914(_0x4e13ae,_0xcca038){var _0x1e47f4=a0_0x1149,_0x44e0e5=_0xcca038||![];_0x4e13ae[_0x1e47f4('0x2587')]===0x4&&_0x4e13ae[0x0]===0xff&&_0x4e13ae[0x1]===0xff&&_0x4e13ae[0x2]===0xff&&_0x4e13ae[_0x1e47f4('0x1280')](0x3,0x4);_0x44e0e5&&(_0x4e13ae=_0x864280(_0x4e13ae,_0x44e0e5));if(_0x4e13ae[_0x1e47f4('0x2587')]===0x3)return _0x1e47f4('0x274f')+_0x4e13ae[_0x1e47f4('0x19c4')](',')+')';else{if(_0x4e13ae[_0x1e47f4('0x2587')]===0x4)return _0x1e47f4('0xb12')+_0x4e13ae[_0x1e47f4('0x19c4')](',')+')';else _0xf56888[_0x1e47f4('0x187f')](_0x1e47f4('0x11fb')+_0x4e13ae[_0x1e47f4('0x2587')]+'\x0a'+_0x1e47f4('0x1068'));}}function _0x864280(_0x3a7b86,_0x1338b0){var _0x4b9a07=a0_0x1149,_0x5f4fc4={'white':{0x1:'1',0x2:_0x4b9a07('0x19b5'),0x3:_0x4b9a07('0xe76'),0x4:_0x4b9a07('0xac7')},'black':{0x1:'0.87',0x2:_0x4b9a07('0x37e'),0x3:'0.26',0x4:_0x4b9a07('0xac7')}};if(_0x3a7b86[0x0]===0xff&&_0x3a7b86[0x1]===0xff&&_0x3a7b86[0x2]===0xff)_0x3a7b86[0x3]=_0x5f4fc4[_0x4b9a07('0x21b6')][_0x1338b0];else _0x3a7b86[0x0]===0x0&&_0x3a7b86[0x1]===0x0&&_0x3a7b86[0x2]===0x0&&(_0x3a7b86[0x3]=_0x5f4fc4[_0x4b9a07('0x107f')][_0x1338b0]);return _0x3a7b86;}function _0x2cd2f9(_0x5d6e76){var _0x1e910c=a0_0x1149;return _0x5d6e76[_0x1e910c('0x1b3a')](0x0)['toUpperCase']()+_0x5d6e76[_0x1e910c('0x19aa')](0x1);}}const _0x23c5e9=_0x19c805;var _0x58ca8c=[{'name':'motion-blue','options':{0x32:_0x1a8446('0xa5'),0x64:_0x1a8446('0x17e8'),0xc8:_0x1a8446('0x144'),0x12c:'#78a0dc',0x190:_0x1a8446('0x4a1'),0x1f4:_0x1a8446('0xbfa'),0x258:_0x1a8446('0x9e8'),0x2bc:_0x1a8446('0x4ea'),0x320:_0x1a8446('0x230c'),0x384:_0x1a8446('0xa10'),'A100':_0x1a8446('0x17e8'),'A200':_0x1a8446('0x144'),'A400':_0x1a8446('0x4a1'),'A700':'#275498','contrastDefaultColor':_0x1a8446('0xd38'),'contrastDarkColors':_0x1a8446('0x14a3'),'contrastStrongLightColors':_0x1a8446('0xd5e')}},{'name':_0x1a8446('0xb8e'),'options':{0x32:_0x1a8446('0x27e9'),0x64:_0x1a8446('0x2847'),0xc8:'#9ea1a9',0x12c:_0x1a8446('0x1686'),0x190:_0x1a8446('0x3db'),0x1f4:_0x1a8446('0x2152'),0x258:'#353a48',0x2bc:'#2d323e',0x320:_0x1a8446('0x2350'),0x384:_0x1a8446('0xf90'),'A100':_0x1a8446('0x2847'),'A200':_0x1a8446('0x260b'),'A400':'#5c616f','A700':_0x1a8446('0x61a'),'contrastDefaultColor':_0x1a8446('0xd38'),'contrastDarkColors':_0x1a8446('0x14a3'),'contrastStrongLightColors':_0x1a8446('0xd5e')}}];const _0x1c2de7=_0x58ca8c;var _0x3203c8={'default':{'primary':{'name':_0x1a8446('0xb8e'),'hues':{'default':_0x1a8446('0x2704'),'hue-1':_0x1a8446('0x1434'),'hue-2':_0x1a8446('0x2169'),'hue-3':_0x1a8446('0x25f6')}},'accent':{'name':_0x1a8446('0x191c'),'hues':{'default':_0x1a8446('0x2169'),'hue-1':_0x1a8446('0x25f6'),'hue-2':_0x1a8446('0x2704'),'hue-3':_0x1a8446('0x1f09')}},'warn':{'name':_0x1a8446('0x1a19')},'background':{'name':_0x1a8446('0x23b2'),'hues':{'default':'A100','hue-1':_0x1a8446('0x1f09'),'hue-2':'100','hue-3':_0x1a8446('0x282b')}}},'pinkTheme':{'primary':{'name':'blue-grey','hues':{'default':_0x1a8446('0x15be'),'hue-1':'600','hue-2':'400','hue-3':_0x1a8446('0x1f09')}},'accent':{'name':_0x1a8446('0xec6'),'hues':{'default':'400','hue-1':_0x1a8446('0x282b'),'hue-2':_0x1a8446('0x2169'),'hue-3':'A100'}},'warn':{'name':_0x1a8446('0xa9e')},'background':{'name':_0x1a8446('0x23b2'),'hues':{'default':'A100','hue-1':_0x1a8446('0x1f09'),'hue-2':_0x1a8446('0x1ada'),'hue-3':_0x1a8446('0x282b')}}},'tealTheme':{'primary':{'name':_0x1a8446('0xfc1'),'hues':{'default':_0x1a8446('0x11a3'),'hue-1':_0x1a8446('0x2169'),'hue-2':_0x1a8446('0x1434'),'hue-3':'A100'}},'accent':{'name':_0x1a8446('0x21d1'),'hues':{'default':_0x1a8446('0x1434'),'hue-1':'400','hue-2':_0x1a8446('0x2169'),'hue-3':'A100'}},'warn':{'name':_0x1a8446('0x12c1')},'background':{'name':_0x1a8446('0x23b2'),'hues':{'default':_0x1a8446('0x1f09'),'hue-1':_0x1a8446('0x1f09'),'hue-2':_0x1a8446('0x1ada'),'hue-3':_0x1a8446('0x282b')}}}};const _0x213c6e=_0x3203c8;_0x2c3a5d[_0x1a8446('0x1e33')]=[_0x1a8446('0xeaa'),'motionPalettes',_0x1a8446('0x141a')];function _0x2c3a5d(_0xf41a8a,_0x123755,_0x20e118){var _0x208a60=_0x1a8446,_0x1c3465;angular[_0x208a60('0x952')]([_0x208a60('0x2a')])['invoke']([_0x208a60('0x95f'),function(_0x49e705){_0x1c3465=_0x49e705;}]);var _0x51891f=_0x1c3465[_0x208a60('0x2202')](_0x208a60('0x6c9'));_0x51891f&&(_0x20e118['custom']=_0x51891f),_0xf41a8a[_0x208a60('0x1973')](!![]),angular[_0x208a60('0x15b5')](_0x123755,function(_0x511767){var _0x42b933=_0x208a60;_0xf41a8a[_0x42b933('0x112a')](_0x511767[_0x42b933('0x25d6')],_0x511767['options']);}),angular[_0x208a60('0x15b5')](_0x20e118,function(_0x4938bb,_0x4d70a8){var _0x2796ba=_0x208a60;_0xf41a8a[_0x2796ba('0xd81')](_0x4d70a8)['primaryPalette'](_0x4938bb[_0x2796ba('0xc4d')][_0x2796ba('0x25d6')],_0x4938bb[_0x2796ba('0xc4d')][_0x2796ba('0x2359')])[_0x2796ba('0x141c')](_0x4938bb[_0x2796ba('0xcb7')]['name'],_0x4938bb['accent'][_0x2796ba('0x2359')])[_0x2796ba('0x2785')](_0x4938bb[_0x2796ba('0x1d7e')][_0x2796ba('0x25d6')],_0x4938bb['warn'][_0x2796ba('0x2359')])[_0x2796ba('0x2ec')](_0x4938bb[_0x2796ba('0x2659')][_0x2796ba('0x25d6')],_0x4938bb[_0x2796ba('0x2659')][_0x2796ba('0x2359')]);});}const _0x3516d5=_0x2c3a5d;_0x28f794[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x26bb'),'$mdTheming'];function _0x28f794(_0x2bda69,_0xa6d6a6,_0x1ff9ab){var _0x2745b2={'getRegisteredPalettes':_0xc5448e,'getRegisteredThemes':_0x5d9017,'setActiveTheme':_0x3688ee,'setThemesList':_0x5e7fa9,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x2745b2;function _0xc5448e(){return _0x1ff9ab['PALETTES'];}function _0x5d9017(){var _0x9b673d=a0_0x1149;return _0x1ff9ab[_0x9b673d('0x1c1e')];}function _0x3688ee(_0x16bd7a){var _0x1caf3e=a0_0x1149;if(angular[_0x1caf3e('0xec')](_0x2745b2[_0x1caf3e('0x20b0')][_0x1caf3e('0x2334')][_0x16bd7a])){if(angular[_0x1caf3e('0xec')](_0x2745b2[_0x1caf3e('0x20b0')]['list']['default'])){_0xa6d6a6[_0x1caf3e('0x187f')](_0x1caf3e('0x25d1'));return;}_0xa6d6a6[_0x1caf3e('0x1d7e')](_0x1caf3e('0x1f8')+_0x16bd7a+_0x1caf3e('0x1ff7')),_0x2745b2['themes'][_0x1caf3e('0xb3a')][_0x1caf3e('0x25d6')]='default',_0x2745b2[_0x1caf3e('0x20b0')][_0x1caf3e('0xb3a')][_0x1caf3e('0xd81')]=_0x2745b2[_0x1caf3e('0x20b0')]['list']['default'],_0x2bda69['put'](_0x1caf3e('0x14e'),_0x2745b2[_0x1caf3e('0x20b0')][_0x1caf3e('0xb3a')][_0x1caf3e('0x25d6')]);return;}_0x2745b2[_0x1caf3e('0x20b0')][_0x1caf3e('0xb3a')]['name']=_0x16bd7a,_0x2745b2[_0x1caf3e('0x20b0')][_0x1caf3e('0xb3a')][_0x1caf3e('0xd81')]=_0x2745b2['themes'][_0x1caf3e('0x2334')][_0x16bd7a],_0x2bda69[_0x1caf3e('0x5ad')](_0x1caf3e('0x14e'),_0x16bd7a);}function _0x5e7fa9(_0x577f59){var _0x53cd69=a0_0x1149;_0x2745b2[_0x53cd69('0x20b0')]['list']=_0x577f59;}}const _0x542de8=_0x28f794;function _0x3ef0f1(_0xee1434,_0x15859e){return _0x58db4b(_0xee1434)||_0x834f82(_0xee1434,_0x15859e)||_0x28e328(_0xee1434,_0x15859e)||_0x385d38();}function _0x385d38(){throw new TypeError('Invalid\x20attempt\x20to\x20destructure\x20non-iterable\x20instance.\x0aIn\x20order\x20to\x20be\x20iterable,\x20non-array\x20objects\x20must\x20have\x20a\x20[Symbol.iterator]()\x20method.');}function _0x28e328(_0x26259e,_0x3c5f53){var _0x55947b=_0x1a8446;if(!_0x26259e)return;if(typeof _0x26259e===_0x55947b('0x199'))return _0x5f3911(_0x26259e,_0x3c5f53);var _0x1e5912=Object[_0x55947b('0xc11')][_0x55947b('0x684')][_0x55947b('0x1432')](_0x26259e)['slice'](0x8,-0x1);if(_0x1e5912===_0x55947b('0x123c')&&_0x26259e[_0x55947b('0x1fe0')])_0x1e5912=_0x26259e[_0x55947b('0x1fe0')][_0x55947b('0x25d6')];if(_0x1e5912==='Map'||_0x1e5912===_0x55947b('0x1666'))return Array[_0x55947b('0x1911')](_0x26259e);if(_0x1e5912===_0x55947b('0x2414')||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[_0x55947b('0x42d')](_0x1e5912))return _0x5f3911(_0x26259e,_0x3c5f53);}function _0x5f3911(_0x5192a8,_0x13f03f){var _0x44a7cf=_0x1a8446;if(_0x13f03f==null||_0x13f03f>_0x5192a8['length'])_0x13f03f=_0x5192a8[_0x44a7cf('0x2587')];for(var _0x48f132=0x0,_0x284279=new Array(_0x13f03f);_0x48f132<_0x13f03f;_0x48f132++){_0x284279[_0x48f132]=_0x5192a8[_0x48f132];}return _0x284279;}function _0x834f82(_0x3caeb0,_0x18a524){var _0x4c35c7=_0x1a8446;if(typeof Symbol===_0x4c35c7('0x1574')||!(Symbol[_0x4c35c7('0x14b3')]in Object(_0x3caeb0)))return;var _0xfa12e6=[],_0x51925c=!![],_0x29abd4=![],_0x2b2053=undefined;try{for(var _0x282d70=_0x3caeb0[Symbol[_0x4c35c7('0x14b3')]](),_0x2c6807;!(_0x51925c=(_0x2c6807=_0x282d70[_0x4c35c7('0x45c')]())['done']);_0x51925c=!![]){_0xfa12e6['push'](_0x2c6807[_0x4c35c7('0x12f4')]);if(_0x18a524&&_0xfa12e6['length']===_0x18a524)break;}}catch(_0x482eda){_0x29abd4=!![],_0x2b2053=_0x482eda;}finally{try{if(!_0x51925c&&_0x282d70[_0x4c35c7('0x1e61')]!=null)_0x282d70[_0x4c35c7('0x1e61')]();}finally{if(_0x29abd4)throw _0x2b2053;}}return _0xfa12e6;}function _0x58db4b(_0x135e89){var _0x16d885=_0x1a8446;if(Array[_0x16d885('0x4f')](_0x135e89))return _0x135e89;}var _0x1af613=angular[_0x1a8446('0x1f8d')](_0x1a8446('0x22c6'),[_0x1a8446('0x110'),_0x1a8446('0x150f'),_0x1a8446('0x2a'),_0x1a8446('0x1162'),_0x1a8446('0x1692'),_0x1a8446('0x1883'),_0x1a8446('0xf12'),_0x1a8446('0x18a4'),_0x1a8446('0x1531'),_0x1a8446('0x1733'),_0x1a8446('0x2466'),_0x1a8446('0x1d4d'),_0x1a8446('0x2382')])[_0x1a8446('0xc66')](_0x1a8446('0x1897'),_0x50ef58)[_0x1a8446('0x1b14')](_0x5170b7)[_0x1a8446('0xd9f')](_0x401029)[_0x1a8446('0x780')](_0x1a8446('0x1848'),_0x4848e9);_0x1af613=_0x91b1f1[_0x1a8446('0x525')](function(_0x5a0bf8,_0x2df0cd){var _0x3158ff=_0x1a8446,_0x41a117=_0x3ef0f1(_0x2df0cd,0x3),_0x12123d=_0x41a117[0x0],_0x105ed1=_0x41a117[0x1],_0x2278a2=_0x41a117[0x2];switch(_0x2278a2){case _0x3158ff('0xdea'):_0x5a0bf8[_0x3158ff('0xdea')](_0x12123d,_0x105ed1);break;case _0x3158ff('0xc66'):_0x5a0bf8[_0x3158ff('0xc66')](_0x12123d,_0x105ed1);break;case'controller':_0x5a0bf8[_0x3158ff('0x780')](_0x12123d,_0x105ed1);break;case _0x3158ff('0x1be9'):_0x5a0bf8[_0x3158ff('0x1be9')](_0x12123d,_0x105ed1);break;default:break;}return _0x5a0bf8;},_0x1af613),_0x1af613[_0x1a8446('0x1be9')](_0x1a8446('0xf4a'),_0x5ce374)['filter'](_0x1a8446('0x2431'),_0x17cf11)[_0x1a8446('0xdb7')]('toTrusted',_0x43644e)[_0x1a8446('0xdb7')](_0x1a8446('0x62d'),_0x4cf85d)['filter'](_0x1a8446('0x21f1'),_0x52f017)['filter'](_0x1a8446('0x942'),_0x104669)[_0x1a8446('0xdb7')](_0x1a8446('0x1b56'),_0x2593e8)[_0x1a8446('0xdb7')]('filterByIds',_0x29d482)[_0x1a8446('0xdb7')](_0x1a8446('0x240c'),_0x10a57a)[_0x1a8446('0xdb7')](_0x1a8446('0x1a29'),_0x13a206)[_0x1a8446('0xdb7')](_0x1a8446('0x87c'),_0x9a90fe)['filter'](_0x1a8446('0x1bf9'),_0x19601f)[_0x1a8446('0xdb7')](_0x1a8446('0xf9e'),_0x330ae8)[_0x1a8446('0xc66')]('motNotification',_0x285589)[_0x1a8446('0x1be9')](_0x1a8446('0x1d16'),_0x3583d1)[_0x1a8446('0x1be9')](_0x1a8446('0x25e0'),_0xcaecd6)[_0x1a8446('0xc66')](_0x1a8446('0x23b9'),_0x19309f)[_0x1a8446('0x1be9')](_0x1a8446('0x25c'),_0x41076e)[_0x1a8446('0x780')](_0x1a8446('0x1a6c'),_0x11e276)[_0x1a8446('0xdea')](_0x1a8446('0x197'),_0x1c04f2)[_0x1a8446('0x1be9')](_0x1a8446('0x218c'),_0x23c5e9)['constant'](_0x1a8446('0x2688'),_0x1c2de7)[_0x1a8446('0x11f0')](_0x1a8446('0x141a'),_0x213c6e)[_0x1a8446('0x1b14')](_0x3516d5)['service']('motionTheming',_0x542de8),_0xb9a3b9[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x95f'),'setting',_0x1a8446('0xe74'),_0x1a8446('0x1f4b'),_0x1a8446('0x1dfd'),'api'];function _0xb9a3b9(_0x4f03dc,_0xe888b4,_0x240dcc,_0x4674c6,_0x2e1074,_0x330780,_0xffe21b){var _0x484e27=_0x1a8446,_0x155484=this;_0x155484[_0x484e27('0x936')]=angular[_0x484e27('0x1aa8')](_0x484e27('0x54c')),_0x155484['msScrollOptions']={'suppressScrollX':!![]},_0x155484[_0x484e27('0x143f')]=_0x240dcc,_0x155484[_0x484e27('0x842')]=_0xffe21b['baseUrl'],_0x155484['$onInit']=_0x4bcbb8,_0x155484['toggleMsNavigationFolded']=_0x4c728e,_0x155484[_0x484e27('0x24c5')]=_0x306580,_0x4674c6['on'](_0x484e27('0x13c5'),_0x27cf1e),_0x4674c6['on']('dashboard:update',_0x27cf1e),_0x4674c6['on'](_0x484e27('0x442'),_0x353e0c),_0x4674c6['on'](_0x484e27('0x1371'),_0x3bff3a),_0x4674c6['on'](_0x484e27('0x1563'),_0x3bff3a),_0x4674c6['on'](_0x484e27('0x463'),_0x459fa1);function _0x4bcbb8(){var _0x3f9c74=_0x484e27;_0x155484[_0x3f9c74('0x1172')]=_0xe888b4[_0x3f9c74('0x2122')](_0x3f9c74('0x1944'))===_0x3f9c74('0x1c5c')||![];}function _0x4c728e(){var _0xeabb3e=_0x484e27;_0x155484[_0xeabb3e('0x1172')]=!_0x155484[_0xeabb3e('0x1172')],_0xe888b4[_0xeabb3e('0x5ad')](_0xeabb3e('0x1944'),_0x155484[_0xeabb3e('0x1172')]);}function _0x306580(){var _0x16d534=_0x484e27;return _0x155484[_0x16d534('0x143f')][_0x16d534('0x1b8c')]?'xCALLY\x20Motion':_0x155484[_0x16d534('0x143f')][_0x16d534('0x1822')];}function _0x27cf1e(_0x538940){var _0x23f0d5=_0x484e27;if(_0x538940&&_0x538940['id']){var _0x14c274=0x1869f+_0x538940['id'];_0x2e1074['saveItem'](_0x23f0d5('0x1197')+_0x14c274,{'id':_0x14c274,'title':_0x538940[_0x23f0d5('0x25d6')]||'NONAME','state':'app.dashboards.custom','stateParams':_0x538940,'weight':0x2,'hidden':function _0x27f8bf(){var _0x5a010a=_0x23f0d5;return _0x330780[_0x5a010a('0x26e8')]('agent')||!_0x330780[_0x5a010a('0x69e')](_0x14c274)&&!_0x330780[_0x5a010a('0x26e8')](_0x5a010a('0x178b'));}});}}function _0x353e0c(_0x7765ff){var _0x5a70a1=_0x484e27;if(_0x7765ff&&_0x7765ff['id']){var _0x48dde0=0x1869f+_0x7765ff['id'];_0x2e1074['deleteItem'](_0x5a70a1('0x1197')+_0x48dde0);}}function _0x3bff3a(_0x3a621a){var _0x585306=_0x484e27;if(_0x3a621a&&_0x3a621a['id']&&_0x3a621a[_0x585306('0x1e3')]!=_0x585306('0x158d')){if(_0x3a621a[_0x585306('0xb3a')]){if(_0x3a621a[_0x585306('0x1e3')]==_0x585306('0x1b43')||_0x3a621a[_0x585306('0x1e3')]==_0x585306('0x1e95')){_0x2e1074[_0x585306('0x24c7')](_0x585306('0x2176'),{'id':0x76c,'title':_0x585306('0x2271'),'translate':'PLUGINS.PLUGINS','icon':_0x585306('0x1892'),'weight':0x11,'hidden':function _0x352a8b(){return _0x330780['hasRole']('agent')||!_0x330780['hasPermission'](0x76c)&&!_0x330780['hasRole']('admin');}});var _0x599553=0x15b38+_0x3a621a['id'];_0x2e1074['saveItem'](_0x585306('0x5b3')+_0x599553,{'id':_0x599553,'title':_0x3a621a['name']||_0x585306('0x18a5'),'state':_0x585306('0xc6e'),'stateParams':_0x3a621a,'weight':0x2,'hidden':function _0x2b8fc9(){var _0x301558=_0x585306;return _0x330780[_0x301558('0x26e8')](_0x301558('0xeff'))||!_0x330780[_0x301558('0x69e')](_0x599553)&&!_0x330780[_0x301558('0x26e8')](_0x301558('0x178b'));}}),_0x2e1074[_0x585306('0x1015')]();}}else{var _0x1bd738=0x15b38+_0x3a621a['id'];_0x251d32(0x76c,_0x1bd738)&&(_0x3a621a[_0x585306('0x1e3')]=='always'||_0x3a621a[_0x585306('0x1e3')]==_0x585306('0x1e95'))&&(_0x2e1074[_0x585306('0x1994')]('apps.plugins.plugin_'+_0x1bd738),!_0x4ad3b8(0x76c)&&_0x2e1074['saveItem']('apps.plugins',{'id':0x76c,'title':'Plugins','translate':'PLUGINS.PLUGINS','icon':_0x585306('0x1892'),'weight':0x11,'hidden':function _0x3d4adc(){return!![];}}));}}}function _0x459fa1(_0x6d8f8a){var _0xafd211=_0x484e27;if(_0x6d8f8a&&_0x6d8f8a['id']&&_0x6d8f8a[_0xafd211('0x1e3')]!=_0xafd211('0x158d')){var _0x264feb=0x15b38+_0x6d8f8a['id'];(_0x6d8f8a[_0xafd211('0x1e3')]==_0xafd211('0x1b43')||_0x6d8f8a[_0xafd211('0x1e3')]==_0xafd211('0x1e95'))&&(_0x2e1074[_0xafd211('0x1994')]('apps.plugins.plugin_'+_0x264feb),!_0x4ad3b8(0x76c)&&_0x2e1074[_0xafd211('0x24c7')](_0xafd211('0x2176'),{'id':0x76c,'title':_0xafd211('0x2271'),'translate':_0xafd211('0xf5a'),'icon':'icon-apps','weight':0x11,'hidden':function _0x4ea1fa(){return!![];}}));}}function _0x4ad3b8(_0x1fd1a0){var _0x2140f6=_0x484e27,_0xca2641=_0x2e1074[_0x2140f6('0x236')](),_0xb92fd9=_0x51538b()[_0x2140f6('0xe9e')](_0xca2641[0x0]['children'],{'id':_0x1fd1a0});return _0xb92fd9&&_0xb92fd9[_0x2140f6('0x12ad')][_0x2140f6('0x2587')]>0x0?!![]:![];}function _0x251d32(_0x17d737,_0xfcc3ac){var _0x40f15b=_0x484e27,_0x56b639=_0x2e1074[_0x40f15b('0x236')](),_0xbfab85=_0x51538b()[_0x40f15b('0xe9e')](_0x56b639[0x0][_0x40f15b('0x12ad')],{'id':_0x17d737});if(!_0xbfab85)return![];return _0x51538b()['some'](_0xbfab85[_0x40f15b('0x12ad')],{'id':_0xfcc3ac});}_0x4f03dc['$on'](_0x484e27('0x2829'),function(){var _0xa451e4=_0x484e27;_0x155484[_0xa451e4('0x936')][_0xa451e4('0x10a7')](_0xa451e4('0x1a72'));});}const _0x1f2016=_0xb9a3b9;;function _0x3081f8(){}angular['module'](_0x1a8446('0x1ab8'),[])[_0x1a8446('0x1b14')](_0x3081f8)['controller'](_0x1a8446('0xf05'),_0x1f2016),_0x53c4d3[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x157'),_0x1a8446('0x272b'),_0x1a8446('0x143f'),_0x1a8446('0xb6')];function _0x53c4d3(_0x4c54c7,_0x5bd3e0,_0x4e54b4,_0x496d91,_0x356e58,_0x8cc3be,_0x313ce3){var _0x542175=_0x1a8446,_0x2477e0=this;_0x2477e0[_0x542175('0x4c6')]=[],_0x2477e0[_0x542175('0x272b')]=_0x356e58,_0x2477e0[_0x542175('0x143f')]=_0x8cc3be,_0x2477e0[_0x542175('0xb6')]=_0x313ce3,_0x2477e0[_0x542175('0x1d53')]=_0x2477e0[_0x542175('0x143f')][_0x542175('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2477e0[_0x542175('0x1cd4')]=_0x3eaed7,_0x2477e0['closeDialog']=_0x2b4ba5,_0x4c54c7[_0x542175('0x1ccf')]('vm.password',function(_0x2cbb41){var _0x26e041=_0x542175;!_0x51538b()[_0x26e041('0x89a')](_0x2477e0['oldPassword'])&&(_0x2cbb41===_0x2477e0['oldPassword']?_0x4c54c7['changePasswordForm']['password'][_0x26e041('0x18c9')]('oldPasswordMatch',![]):_0x4c54c7[_0x26e041('0x1838')][_0x26e041('0x418')][_0x26e041('0x18c9')](_0x26e041('0xcdf'),!![]));});function _0x3eaed7(){var _0x4b0ace=_0x542175;_0x2477e0[_0x4b0ace('0x4c6')]=[],_0x496d91[_0x4b0ace('0x272b')][_0x4b0ace('0x1327')]({'id':_0x2477e0[_0x4b0ace('0x272b')]['id']},{'oldPassword':_0x2477e0['oldPassword'],'newPassword':_0x2477e0[_0x4b0ace('0x418')]})[_0x4b0ace('0x1dc2')][_0x4b0ace('0xaa5')](function(){var _0x3ca13b=_0x4b0ace;_0x4e54b4['show'](_0x4e54b4[_0x3ca13b('0x1b04')]()[_0x3ca13b('0x447')](_0x3ca13b('0x2634'))['position'](_0x3ca13b('0xe1c'))[_0x3ca13b('0x11e5')](0x1388)),_0x2b4ba5();})['catch'](function(_0x243298){var _0x53595f=_0x4b0ace;console[_0x53595f('0x187f')](_0x243298),_0x2477e0['errors']=_0x243298[_0x53595f('0x10fd')][_0x53595f('0x4c6')]&&_0x243298[_0x53595f('0x10fd')][_0x53595f('0x4c6')][_0x53595f('0x2587')]?_0x243298[_0x53595f('0x10fd')][_0x53595f('0x4c6')]:[{'message':_0x243298[_0x53595f('0x10fd')]['message']||'Authorization\x20error','type':'api.user.changePassword'}];});}function _0x2b4ba5(){var _0xf069cb=_0x542175;_0x5bd3e0[_0xf069cb('0x1120')]();}}const _0x45538b=_0x53c4d3;_0x5be192[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location','$mdDialog',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1019'),'customFields'];function _0x5be192(_0x5431ce,_0x18a633,_0x3ad12d,_0x1614b6,_0x436360,_0x4760b9,_0x1778d9,_0x5c18dd){var _0x1c0af2=_0x1a8446,_0x471260=this;_0x471260[_0x1c0af2('0x79f')]=_0x5c18dd&&_0x5c18dd[_0x1c0af2('0x580')]?_0x51538b()[_0x1c0af2('0xb6f')](_0x51538b()[_0x1c0af2('0x184a')](_0x5c18dd[_0x1c0af2('0x580')],function(_0x1a8452){return'cf_'+_0x1a8452['id'];}),_0x1c0af2('0x25d6')):{},_0x471260[_0x1c0af2('0x4c6')]=[],_0x471260[_0x1c0af2('0x65')]=[],_0x471260[_0x1c0af2('0x1019')]=_0x1778d9,_0x471260[_0x1c0af2('0x301')]=![],_0x471260[_0x1c0af2('0x2510')]=![],_0x471260[_0x1c0af2('0x19e3')]=![],_0x471260[_0x1c0af2('0x65')][_0x1c0af2('0x1599')](_0x471260[_0x1c0af2('0x1019')]['id']),_0x471260[_0x1c0af2('0x1d98')]=_0x525131,_0x471260[_0x1c0af2('0x2023')]=_0x3daf28,_0x471260['nextContact']=_0x3a24cd,_0x471260['previousContact']=_0x2982ae,_0x471260[_0x1c0af2('0x1f6f')]=_0x524c3f,_0x471260[_0x1c0af2('0x42b')]=_0x4c7a09,_0x471260[_0x1c0af2('0x13c1')]=_0x2d3ef7,_0x471260[_0x1c0af2('0x89a')]=_0x5daa8f;function _0x5daa8f(_0x1d67dc){var _0x3f567c=_0x1c0af2;return _0x51538b()[_0x3f567c('0x89a')](_0x1d67dc);}function _0x4c7a09(_0x421e7a){var _0x18530d=_0x1c0af2;return _0x51538b()[_0x18530d('0x6e8')](_0x421e7a,_0x18530d('0x7a5'));}function _0x2d3ef7(_0x1081b7){var _0xd8f34f=_0x1c0af2;return _0x51538b()[_0xd8f34f('0x13d6')]([_0xd8f34f('0xf7a'),_0xd8f34f('0x1dc7'),_0xd8f34f('0xee0'),_0xd8f34f('0x1037'),_0xd8f34f('0x24a1'),_0xd8f34f('0x250'),'id',_0xd8f34f('0x13f2'),_0xd8f34f('0x300'),_0xd8f34f('0x523'),_0xd8f34f('0x19f3'),_0xd8f34f('0x1729'),_0xd8f34f('0x1f2c'),_0xd8f34f('0xb1f'),_0xd8f34f('0x1e5b'),_0xd8f34f('0x504'),_0xd8f34f('0x152c'),'line',_0xd8f34f('0x1b40')],_0x1081b7);}function _0x525131(){var _0x57a7d0=_0x1c0af2;_0x471260[_0x57a7d0('0x301')]=!![],_0x471260[_0x57a7d0('0x2510')]=!![],_0x51538b()[_0x57a7d0('0x116b')](_0x471260[_0x57a7d0('0x1019')])?(_0x436360['error']({'title':'Message','msg':_0x57a7d0('0x207f')}),_0x471260[_0x57a7d0('0x2510')]=![],_0x471260[_0x57a7d0('0x65')]=[],_0x3daf28(!![])):_0x4760b9[_0x57a7d0('0xb5d')][_0x57a7d0('0x186')]({'id':_0x471260[_0x57a7d0('0x1019')]['id']})['$promise'][_0x57a7d0('0xaa5')](function(){_0x3daf28(!![]);})['catch'](function(_0x47c5fc){var _0x4436b3=_0x57a7d0;_0x436360[_0x4436b3('0x187f')]({'title':_0x4436b3('0x4d8'),'msg':_0x47c5fc[_0x4436b3('0x10fd')]}),_0x3daf28(!![]);})['finally'](function(){var _0x3c0e2a=_0x57a7d0;_0x471260['disable']=![],_0x471260[_0x3c0e2a('0x65')]=[];});}function _0x3daf28(_0x48e557){var _0x2ca070=_0x1c0af2;_0x51538b()[_0x2ca070('0x89a')](_0x48e557)&&_0x4760b9[_0x2ca070('0xe51')]['update']({'id':_0x471260[_0x2ca070('0x1019')]['id'],'UserId':null}),_0x1614b6[_0x2ca070('0x1120')]();}_0x5431ce[_0x1c0af2('0xc75')](_0x1c0af2('0x12d0'),function(){var _0xb9a0b1=_0x1c0af2;!_0x471260[_0xb9a0b1('0x301')]&&_0x4760b9['cmHopper']['update']({'id':_0x471260[_0xb9a0b1('0x1019')]['id'],'UserId':null});});function _0x3a24cd(){var _0x11aac4=_0x1c0af2;return _0x471260[_0x11aac4('0x19e3')]=!![],_0x4760b9[_0x11aac4('0xe51')]['getPreview']({'hopperIds':_0x471260[_0x11aac4('0x65')],'direction':_0x11aac4('0x45c')})[_0x11aac4('0x1dc2')]['then'](function(_0x20524d){var _0x1c6bb1=_0x11aac4;_0x471260['disableGetContact']=![],!_0x51538b()[_0x1c6bb1('0x89a')](_0x20524d)&&!_0x51538b()[_0x1c6bb1('0x89a')](_0x20524d[_0x1c6bb1('0x145c')])&&_0x20524d[_0x1c6bb1('0x145c')][_0x1c6bb1('0x1b71')]?(!_0x471260[_0x1c6bb1('0x301')]&&_0x4760b9[_0x1c6bb1('0xe51')][_0x1c6bb1('0x264e')]({'id':_0x471260['preview']['id'],'UserId':null}),_0x471260[_0x1c6bb1('0x1019')]=_0x20524d,_0x471260['hopperIds'][_0x1c6bb1('0x1599')](_0x471260[_0x1c6bb1('0x1019')]['id'])):(_0x471260[_0x1c6bb1('0x65')]=[],_0x1614b6[_0x1c6bb1('0x1120')](),_0x436360[_0x1c6bb1('0x3a1')]({'title':_0x1c6bb1('0x315'),'msg':_0x1c6bb1('0x1eaa')}));})[_0x11aac4('0x253d')](function(_0x2a1a40){var _0x38e2c3=_0x11aac4;_0x471260['disableGetContact']=![],_0x471260[_0x38e2c3('0x65')]=[];if(_0x2a1a40[_0x38e2c3('0x2fa')]===0x194)_0x471260[_0x38e2c3('0x1f6f')]();else{if(_0x2a1a40[_0x38e2c3('0x10fd')]&&_0x2a1a40[_0x38e2c3('0x10fd')][_0x38e2c3('0x4c6')]&&_0x2a1a40[_0x38e2c3('0x10fd')]['errors'][_0x38e2c3('0x2587')]){_0x1614b6[_0x38e2c3('0x1120')]();for(var _0x40608a=0x0;_0x40608a<_0x2a1a40[_0x38e2c3('0x10fd')]['errors'][_0x38e2c3('0x2587')];_0x40608a+=0x1){_0x436360[_0x38e2c3('0x187f')]({'title':_0x2a1a40[_0x38e2c3('0x10fd')][_0x38e2c3('0x4c6')][_0x40608a][_0x38e2c3('0x6c8')],'msg':_0x2a1a40[_0x38e2c3('0x10fd')][_0x38e2c3('0x4c6')][_0x40608a][_0x38e2c3('0x1402')]});}}else _0x1614b6[_0x38e2c3('0x1120')](),_0x436360['error']({'title':_0x2a1a40[_0x38e2c3('0x2fa')]?'API:'+_0x2a1a40[_0x38e2c3('0x2fa')]+_0x38e2c3('0x169e')+_0x2a1a40[_0x38e2c3('0x24df')]:_0x38e2c3('0x19fc'),'msg':_0x2a1a40[_0x38e2c3('0x10fd')]?JSON[_0x38e2c3('0xa48')](_0x2a1a40[_0x38e2c3('0x10fd')][_0x38e2c3('0x1402')]):_0x2a1a40[_0x38e2c3('0x684')]()});}});}function _0x2982ae(){var _0x1ddc34=_0x1c0af2;_0x471260[_0x1ddc34('0x19e3')]=!![];if(_0x471260[_0x1ddc34('0x65')][_0x1ddc34('0x2587')]>0x1){var _0x5043d4=_0x51538b()['without'](_0x471260['hopperIds'],_0x471260[_0x1ddc34('0x1019')]['id']);return _0x4760b9[_0x1ddc34('0xe51')][_0x1ddc34('0x1a0c')]({'hopperIds':_0x5043d4,'direction':_0x1ddc34('0x5d9')})[_0x1ddc34('0x1dc2')][_0x1ddc34('0xaa5')](function(_0x25d150){var _0x722962=_0x1ddc34;_0x471260[_0x722962('0x19e3')]=![],!_0x51538b()['isNil'](_0x25d150)&&!_0x51538b()[_0x722962('0x89a')](_0x25d150[_0x722962('0x145c')])&&_0x25d150[_0x722962('0x145c')][_0x722962('0x1b71')]?(_0x51538b()[_0x722962('0xf6d')](_0x471260[_0x722962('0x65')],function(_0x41cf95){var _0x494fd1=_0x722962;return _0x41cf95==_0x471260[_0x494fd1('0x1019')]['id'];}),!_0x471260['originated']&&_0x4760b9[_0x722962('0xe51')]['update']({'id':_0x471260[_0x722962('0x1019')]['id'],'UserId':null}),_0x471260[_0x722962('0x1019')]=_0x25d150):(_0x471260['hopperIds']=[],_0x1614b6[_0x722962('0x1120')](),_0x436360[_0x722962('0x3a1')]({'title':'PREVIEW','msg':_0x722962('0x1eaa')}));})[_0x1ddc34('0x253d')](function(_0x18ec40){var _0x29f00c=_0x1ddc34;if(_0x18ec40[_0x29f00c('0x2fa')]===0x194)_0x471260[_0x29f00c('0x65')]=[_0x471260['preview']['id']],_0x436360[_0x29f00c('0x3a1')]({'title':_0x29f00c('0x315'),'msg':_0x29f00c('0xf60')});else{if(_0x18ec40[_0x29f00c('0x10fd')]&&_0x18ec40['data'][_0x29f00c('0x4c6')]&&_0x18ec40['data']['errors'][_0x29f00c('0x2587')]){_0x471260[_0x29f00c('0x65')]=[],_0x1614b6['hide']();for(var _0x2ffdd0=0x0;_0x2ffdd0<_0x18ec40[_0x29f00c('0x10fd')][_0x29f00c('0x4c6')]['length'];_0x2ffdd0+=0x1){_0x436360[_0x29f00c('0x187f')]({'title':_0x18ec40[_0x29f00c('0x10fd')][_0x29f00c('0x4c6')][_0x2ffdd0][_0x29f00c('0x6c8')],'msg':_0x18ec40['data'][_0x29f00c('0x4c6')][_0x2ffdd0][_0x29f00c('0x1402')]});}}else _0x471260[_0x29f00c('0x65')]=[],_0x1614b6[_0x29f00c('0x1120')](),_0x436360['error']({'title':_0x18ec40[_0x29f00c('0x2fa')]?_0x29f00c('0x16c2')+_0x18ec40[_0x29f00c('0x2fa')]+_0x29f00c('0x169e')+_0x18ec40[_0x29f00c('0x24df')]:'api\x20preview','msg':_0x18ec40[_0x29f00c('0x10fd')]?JSON[_0x29f00c('0xa48')](_0x18ec40[_0x29f00c('0x10fd')][_0x29f00c('0x1402')]):_0x18ec40[_0x29f00c('0x684')]()});}});}}function _0x524c3f(){var _0x2500db=_0x1c0af2;return _0x471260['disableGetContact']=!![],_0x436360['info']({'title':'PREVIEW','msg':_0x2500db('0xb53')}),_0x4760b9[_0x2500db('0xe51')][_0x2500db('0x1a0c')]({'hopperIds':[_0x471260[_0x2500db('0x1019')]['id']],'direction':_0x2500db('0x45c')})['$promise'][_0x2500db('0xaa5')](function(_0x453fb3){var _0x2beeac=_0x2500db;!_0x51538b()[_0x2beeac('0x89a')](_0x453fb3)&&!_0x51538b()[_0x2beeac('0x89a')](_0x453fb3['Queue'])&&_0x453fb3[_0x2beeac('0x145c')][_0x2beeac('0x1b71')]?(!_0x471260[_0x2beeac('0x301')]&&_0x4760b9['cmHopper']['update']({'id':_0x471260[_0x2beeac('0x1019')]['id'],'UserId':null}),_0x471260[_0x2beeac('0x1019')]=_0x453fb3,_0x471260[_0x2beeac('0x65')][_0x2beeac('0x1599')](_0x471260[_0x2beeac('0x1019')]['id'])):(_0x1614b6[_0x2beeac('0x1120')](),_0x436360[_0x2beeac('0x3a1')]({'title':_0x2beeac('0x315'),'msg':_0x2beeac('0x1eaa')}));})['catch'](function(_0x2fa497){var _0x4579c1=_0x2500db;_0x1614b6[_0x4579c1('0x1120')]();if(_0x2fa497[_0x4579c1('0x2fa')]===0x194)_0x436360['info']({'title':_0x4579c1('0x315'),'msg':'CONTACTS\x20NOT\x20AVAILABLE'});else{if(_0x2fa497[_0x4579c1('0x10fd')]&&_0x2fa497[_0x4579c1('0x10fd')]['errors']&&_0x2fa497['data'][_0x4579c1('0x4c6')]['length'])for(var _0x9b41da=0x0;_0x9b41da<_0x2fa497[_0x4579c1('0x10fd')][_0x4579c1('0x4c6')][_0x4579c1('0x2587')];_0x9b41da+=0x1){_0x436360[_0x4579c1('0x187f')]({'title':_0x2fa497[_0x4579c1('0x10fd')][_0x4579c1('0x4c6')][_0x9b41da][_0x4579c1('0x6c8')],'msg':_0x2fa497[_0x4579c1('0x10fd')][_0x4579c1('0x4c6')][_0x9b41da][_0x4579c1('0x1402')]});}else _0x436360[_0x4579c1('0x187f')]({'title':_0x2fa497[_0x4579c1('0x2fa')]?_0x4579c1('0x16c2')+_0x2fa497[_0x4579c1('0x2fa')]+_0x4579c1('0x169e')+_0x2fa497[_0x4579c1('0x24df')]:_0x4579c1('0x19fc'),'msg':_0x2fa497[_0x4579c1('0x10fd')]?JSON[_0x4579c1('0xa48')](_0x2fa497[_0x4579c1('0x10fd')][_0x4579c1('0x1402')]):_0x2fa497[_0x4579c1('0x684')]()});}})[_0x2500db('0x1889')](function(){_0x471260['disableGetContact']=![];});}}const _0x248d31=_0x5be192,_0x40ac9e=_0x4fb511['p']+_0x1a8446('0x16fd'),_0x4fccea=_0x4fb511['p']+_0x1a8446('0x2397');_0x27c28c[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x6a4'),'$q',_0x1a8446('0x145b'),_0x1a8446('0x186b'),'$location',_0x1a8446('0x1261'),'$translate',_0x1a8446('0x2658'),_0x1a8446('0x27bf'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$cookies',_0x1a8446('0x2a4'),_0x1a8446('0x1f4b'),'Auth','socket','api',_0x1a8446('0x1202'),'setting',_0x1a8446('0x21b3')];function _0x27c28c(_0x1ae1ea,_0x412add,_0x5d8048,_0x1834a6,_0x1ee8fb,_0x566c6e,_0x32f1fa,_0x1ff0b8,_0x4bf941,_0xe2b1c9,_0x4c0e11,_0x53ed80,_0x87904d,_0x5134fe,_0x50be56,_0x2e0d93,_0x187a32,_0x9cacfe,_0x2a12db,_0x2ba3a8,_0xbfa14a){var _0x5ac395=_0x1a8446,_0x2db268=this;_0x2db268[_0x5ac395('0xac0')]={},_0x2db268['polling']=!![],_0x2db268[_0x5ac395('0x842')]=_0x9cacfe[_0x5ac395('0x842')];var _0x52010f;_0x412add[_0x5ac395('0x459')]={'search':''},_0x2db268[_0x5ac395('0x2457')]=[],_0x2db268[_0x5ac395('0x1202')]=_0x2a12db,_0x2db268['currentUser']=_0x2e0d93[_0x5ac395('0xacc')](),_0x2db268[_0x5ac395('0x2279')]=0x0,_0x2db268['unreadTotalGroupMessages']=0x0,_0x2db268['contcts']=0x0;_0x2db268[_0x5ac395('0x7fc')]['role']===_0x5ac395('0xeff')&&(_0x52010f=_0xbfa14a(_0x3f7733,0x3a97));_0x2db268[_0x5ac395('0x143f')]=_0x2ba3a8,_0x2db268[_0x5ac395('0x936')]=angular[_0x5ac395('0x1aa8')](_0x5ac395('0x54c')),_0x2db268[_0x5ac395('0x2708')]={'realm':_0x5ac395('0x245f'),'host':_0x566c6e[_0x5ac395('0x160c')](),'protocol':_0x566c6e[_0x5ac395('0x1cc2')](),'remotePlayerId':_0x5ac395('0xc7f'),'ua':_0x5ac395('0x247f'),'license':_0x2db268[_0x5ac395('0x1202')]['webrtc'],'phoneBarExpires':_0x2db268[_0x5ac395('0x7fc')][_0x5ac395('0xe47')],'phoneBarPrefixRequired':_0x2db268[_0x5ac395('0x7fc')][_0x5ac395('0x721')]},_0x2db268['query']={'id':_0x2e0d93['getCurrentUser']()['id'],'fields':_0x5ac395('0x1fd1'),'channel':_0x5ac395('0x1b9'),'nolimit':!![]},_0x2db268[_0x5ac395('0x1bea')]=[{'title':_0x5ac395('0x14bb'),'icon':'icon-checkbox-marked-circle','color':_0x5ac395('0x12d5')},{'title':'Away','icon':'icon-clock','color':_0x5ac395('0x25b')},{'title':_0x5ac395('0x82d'),'icon':_0x5ac395('0x1d4f'),'color':_0x5ac395('0x1c6b')},{'title':_0x5ac395('0xa33'),'icon':'icon-checkbox-blank-circle-outline','color':_0x5ac395('0xc5a')},{'title':_0x5ac395('0x111a'),'icon':_0x5ac395('0x23dd'),'color':_0x5ac395('0x94b')}],_0x2db268[_0x5ac395('0x1a10')]={'ar':{'title':_0x5ac395('0x1857'),'translation':_0x5ac395('0x166f'),'code':'ar','flag':'ar'},'da':{'title':_0x5ac395('0xc2b'),'translation':_0x5ac395('0x1550'),'code':'da','flag':'da'},'de':{'title':_0x5ac395('0x6ab'),'translation':_0x5ac395('0x270c'),'code':'de','flag':'de'},'en':{'title':'English','translation':'TOOLBAR.ENGLISH','code':'en','flag':'us'},'es':{'title':_0x5ac395('0x13bd'),'translation':_0x5ac395('0x11f9'),'code':'es','flag':'es'},'fa':{'title':_0x5ac395('0xe16'),'translation':_0x5ac395('0x15ab'),'code':'fa','flag':'fa'},'fi':{'title':'Finnish','translation':_0x5ac395('0x2227'),'code':'fi','flag':'fi'},'fr':{'title':_0x5ac395('0x701'),'translation':_0x5ac395('0xc79'),'code':'fr','flag':'fr'},'he':{'title':_0x5ac395('0x1279'),'translation':_0x5ac395('0x23e6'),'code':'he','flag':'he'},'hi':{'title':_0x5ac395('0x2822'),'translation':_0x5ac395('0x1cc5'),'code':'hi','flag':'hi'},'id':{'title':_0x5ac395('0x89b'),'translation':_0x5ac395('0xc4a'),'code':'id','flag':'id'},'it':{'title':_0x5ac395('0x1c42'),'translation':_0x5ac395('0x17f2'),'code':'it','flag':'it'},'ja':{'title':'Japanese','translation':'TOOLBAR.JAPANESE','code':'ja','flag':'ja'},'ko':{'title':_0x5ac395('0x14da'),'translation':_0x5ac395('0x138e'),'code':'ko','flag':'ko'},'lv':{'title':_0x5ac395('0x221a'),'translation':_0x5ac395('0xbea'),'code':'lv','flag':'lv'},'nl':{'title':'Dutch','translation':'TOOLBAR.DUTCH','code':'nl','flag':'nl'},'no':{'title':_0x5ac395('0x2006'),'translation':_0x5ac395('0x2275'),'code':'no','flag':'no'},'pl':{'title':_0x5ac395('0x227a'),'translation':_0x5ac395('0x96a'),'code':'pl','flag':'pl'},'pt-BR':{'title':_0x5ac395('0x2d2'),'translation':_0x5ac395('0x2040'),'code':_0x5ac395('0x17ca'),'flag':_0x5ac395('0x17ca')},'pt-PT':{'title':_0x5ac395('0xfca'),'translation':'TOOLBAR.PORTUGUESE','code':_0x5ac395('0xb70'),'flag':_0x5ac395('0xb70')},'ru':{'title':_0x5ac395('0x16cb'),'translation':'TOOLBAR.RUSSIAN','code':'ru','flag':'ru'},'sv':{'title':_0x5ac395('0x18b'),'translation':'TOOLBAR.SWEDISH','code':'sv','flag':'sv'},'tr':{'title':_0x5ac395('0x1cee'),'translation':_0x5ac395('0x2216'),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x5ac395('0x27ad'),'translation':'TOOLBAR.CHINESESIMPLIFIED','code':'zh-CN','flag':'zh-CN'},'zh-TW':{'title':_0x5ac395('0x25f9'),'translation':_0x5ac395('0x4f7'),'code':_0x5ac395('0x1fe3'),'flag':_0x5ac395('0x1fe3')}};var _0x44dbd8=['ar','fa','he'];_0x2db268[_0x5ac395('0x1aec')]=_0x55dc44,_0x2db268[_0x5ac395('0x1bc9')]=_0x2fd825,_0x2db268[_0x5ac395('0x23e')]=_0x41ce3e,_0x2db268[_0x5ac395('0x1a11')]=_0x5b6582,_0x2db268[_0x5ac395('0x1c1')]=_0x5deb59,_0x2db268[_0x5ac395('0x2b9')]=_0x5405ac,_0x2db268[_0x5ac395('0x1785')]=_0x59e4c5,_0x2db268[_0x5ac395('0x1702')]=_0x5c7aaa,_0x2db268[_0x5ac395('0xfec')]=_0x34cdb1,_0x2db268['changePassword']=_0x46f3f4,_0x2db268[_0x5ac395('0x30')]=_0x4b097d,_0x2db268[_0x5ac395('0x1f07')]=_0x313429,_0x2db268[_0x5ac395('0x561')]=_0x93ebbb,_0x2db268[_0x5ac395('0x167c')]=_0x51b6b0,_0x2db268[_0x5ac395('0x297')]=_0x20000b,_0x2db268['preview']=_0x5ec018,_0x2db268[_0x5ac395('0x24c5')]=_0x3559d9,_0x2db268['userIsNotPhonebar']=_0x222bfa,_0x2db268[_0x5ac395('0x324')]=_0x215486,_0x2db268['onInternalMessageUpdate']=_0x5cc40b,_0x2db268[_0x5ac395('0x1f47')]=_0x5057c0,_0x2db268[_0x5ac395('0x19a0')]=_0x234126,_0x146039(),_0x4fa12c(),_0x47312d();function _0x146039(){var _0x1076e0=_0x5ac395;_0x2db268[_0x1076e0('0x272b')]=_0x2e0d93[_0x1076e0('0xacc')](),_0x2db268[_0x1076e0('0x2708')][_0x1076e0('0x1af6')]=_0x2db268[_0x1076e0('0x272b')][_0x1076e0('0x210')],_0x2db268[_0x1076e0('0x2708')]['id']=_0x2db268['user']['id'],_0x2db268[_0x1076e0('0x2708')][_0x1076e0('0x25d6')]=_0x2db268['user'][_0x1076e0('0x25d6')],_0x2db268[_0x1076e0('0x2708')][_0x1076e0('0x18e5')]=_0x2db268['user'][_0x1076e0('0x18e5')],_0x2db268[_0x1076e0('0x2708')]['internal']=_0x2db268[_0x1076e0('0x272b')][_0x1076e0('0x1b0d')],_0x2db268['conf']['recording']=_0x2db268['user'][_0x1076e0('0x27ba')],_0x2db268[_0x1076e0('0x2708')][_0x1076e0('0x18ec')]=_0x2db268[_0x1076e0('0x272b')]['phoneBarAutoAnswer'],_0x2db268[_0x1076e0('0x2708')]['enableSettings']=_0x2db268['user'][_0x1076e0('0xe64')],_0x2db268['conf'][_0x1076e0('0x1987')]=_0x2db268[_0x1076e0('0x272b')]['phoneBarEnableDtmfTone'],_0x2db268['conf']['autoAnswerDelay']=_0x2db268['user'][_0x1076e0('0x20e3')],_0x2db268['userStatus']=_0x2db268['userStatusOptions'][0x0];var _0x1da635=_0x87904d[_0x1076e0('0x2122')](_0x1076e0('0x136d'));_0x1da635&&typeof _0x2db268[_0x1076e0('0x1a10')][_0x1da635]!==_0x1076e0('0x1574')?_0x2db268[_0x1076e0('0xefe')]=_0x2db268[_0x1076e0('0x1a10')][_0x1da635]:_0x2db268['selectedLanguage']=_0x2db268[_0x1076e0('0x1a10')][_0x1ff0b8[_0x1076e0('0x1f67')]()];_0x9cacfe[_0x1076e0('0x167c')][_0x1076e0('0x2122')]({'fields':_0x1076e0('0x25d6'),'nolimit':!![]})[_0x1076e0('0x1dc2')][_0x1076e0('0xaa5')](function(_0x4e6a4f){var _0x3efeac=_0x1076e0;_0x2db268[_0x3efeac('0x2457')]=_0x4e6a4f[_0x3efeac('0x580')]?_0x4e6a4f[_0x3efeac('0x580')]:[];})[_0x1076e0('0x253d')](function(_0x5edd16){var _0x33cd41=_0x1076e0;_0x5134fe[_0x33cd41('0x187f')]({'title':_0x5edd16['status']?'API:'+_0x5edd16['status']+_0x33cd41('0x169e')+_0x5edd16[_0x33cd41('0x24df')]:_0x33cd41('0x279d'),'msg':_0x5edd16[_0x33cd41('0x2fa')]?JSON['stringify'](_0x5edd16[_0x33cd41('0x10fd')]):_0x5edd16[_0x33cd41('0x684')]()});});if(_0x2e0d93['getAuthenticationType']()==_0x1076e0('0x24dd')){if(_0x2db268[_0x1076e0('0x143f')][_0x1076e0('0x1fa')]){if(!_0x2db268[_0x1076e0('0x272b')][_0x1076e0('0x1df8')])_0x46f3f4(null,!![]);else{var _0x1637d7=_0x420d43()(_0x2db268[_0x1076e0('0x272b')][_0x1076e0('0x1df8')])['add'](_0x2db268['setting'][_0x1076e0('0x2055')]||0x5a,_0x1076e0('0xa7c'));if(_0x420d43()()[_0x1076e0('0x46c')](_0x1637d7))_0x46f3f4(null,!![]);else _0x420d43()()['add'](0xf,'day')[_0x1076e0('0x46c')](_0x1637d7)&&_0x5134fe['warning']({'title':_0x1ff0b8[_0x1076e0('0x213f')](_0x1076e0('0x6ef'))+'!','msg':_0x1ff0b8['instant']('TOOLBAR.PASSWORD_EXPIRE_REMAINING_DAYS')+':\x20'+Math[_0x1076e0('0x104c')](_0x1637d7[_0x1076e0('0x72c')](_0x420d43()(),_0x1076e0('0x101'),!![])),'timeout':0x4e20});}}}}function _0x47312d(){var _0x65da72=_0x5ac395;_0x187a32[_0x65da72('0x16dc')](),_0x187a32['on']('user:update',_0x2db268[_0x65da72('0x1f07')]),_0x187a32['on']('user:called',_0x2db268[_0x65da72('0x561')]),_0x187a32['on'](_0x65da72('0x80d'),_0x2db268[_0x65da72('0x324')]),_0x187a32['on']('chatInternalMessage:update',_0x2db268[_0x65da72('0x9e')]),_0x187a32['on'](_0x65da72('0x77e'),_0x2db268[_0x65da72('0x1f47')]),_0x187a32['on'](_0x65da72('0x215f'),_0x2db268[_0x65da72('0x19a0')]),_0x187a32['on']('userVoiceQueue:remove',_0x2db268[_0x65da72('0x1f47')]),_0x187a32['on'](_0x65da72('0x125e'),_0x2db268[_0x65da72('0x19a0')]),_0x187a32['on']('voiceQueue:update',_0x2db268['onVoiceQueue']),_0x187a32['on'](_0x65da72('0x19f'),_0x353691),_0x187a32['on'](_0x65da72('0x3d1'),_0x6e6c49);}function _0x5b93e5(){var _0x8e5fb5=_0x5ac395;_0x187a32['removeAllListeners']('user:called'),_0x187a32[_0x8e5fb5('0x2629')](_0x8e5fb5('0x15fb')),_0x187a32[_0x8e5fb5('0x2629')](_0x8e5fb5('0x80d')),_0x187a32[_0x8e5fb5('0x2629')]('chatInternalMessage:update'),_0x187a32[_0x8e5fb5('0x2629')](_0x8e5fb5('0x77e')),_0x187a32['removeAllListeners'](_0x8e5fb5('0x215f')),_0x187a32[_0x8e5fb5('0x2629')](_0x8e5fb5('0x10ac')),_0x187a32[_0x8e5fb5('0x2629')](_0x8e5fb5('0x125e')),_0x187a32['removeAllListeners'](_0x8e5fb5('0x21e4')),_0x187a32[_0x8e5fb5('0x2629')](_0x8e5fb5('0x19f')),_0x187a32['removeAllListeners'](_0x8e5fb5('0x3d1')),_0x187a32['disconnect']();}function _0x9788e6(_0x4ae17c){var _0x2203dc=_0x5ac395;_0x2db268['voiceQueues']=_0x4ae17c?_0x51538b()[_0x2203dc('0x184a')](_0x4ae17c[_0x2203dc('0x580')]?_0x4ae17c[_0x2203dc('0x580')]:[],'id'):{};}function _0x4fa12c(){var _0x50eee2=_0x5ac395;_0x2db268[_0x50eee2('0x159a')]=_0x9cacfe[_0x50eee2('0x272b')][_0x50eee2('0x1e87')](_0x2db268[_0x50eee2('0x582')],_0x9788e6)[_0x50eee2('0x1dc2')];}function _0x234126(){_0x4fa12c();}function _0x5057c0(_0x32546d){var _0x15f8e0=_0x5ac395;_0x51538b()[_0x15f8e0('0x23fe')](_0x32546d[_0x15f8e0('0x1037')])===_0x2e0d93[_0x15f8e0('0xacc')]()['id']&&_0x4fa12c();}function _0x51b6b0(_0x48f6b5){var _0x5950a7=_0x5ac395;return _0x9cacfe['user'][_0x5950a7('0x167c')]({'id':_0x2db268[_0x5950a7('0x272b')]['id'],'type':_0x48f6b5||_0x5950a7('0x57e')})['$promise']['catch'](function(_0x35f91c){var _0x2a7ba9=_0x5950a7;_0x5134fe[_0x2a7ba9('0x187f')]({'title':_0x35f91c['status']?_0x2a7ba9('0x16c2')+_0x35f91c['status']+_0x2a7ba9('0x169e')+_0x35f91c[_0x2a7ba9('0x24df')]:_0x2a7ba9('0x1460'),'msg':_0x35f91c[_0x2a7ba9('0x2fa')]?JSON[_0x2a7ba9('0xa48')](_0x35f91c[_0x2a7ba9('0x10fd')]):_0x35f91c[_0x2a7ba9('0x684')]()});});}function _0x20000b(){var _0x45ef73=_0x5ac395;return _0x9cacfe[_0x45ef73('0x272b')][_0x45ef73('0x297')]({'id':_0x2db268[_0x45ef73('0x272b')]['id']})[_0x45ef73('0x1dc2')]['catch'](function(_0x57975f){var _0x1ac48e=_0x45ef73;_0x5134fe['error']({'title':_0x57975f[_0x1ac48e('0x2fa')]?_0x1ac48e('0x16c2')+_0x57975f['status']+_0x1ac48e('0x169e')+_0x57975f[_0x1ac48e('0x24df')]:_0x1ac48e('0xdd8'),'msg':_0x57975f[_0x1ac48e('0x2fa')]?JSON[_0x1ac48e('0xa48')](_0x57975f[_0x1ac48e('0x10fd')]):_0x57975f[_0x1ac48e('0x684')]()});});}function _0x5ec018(_0xc9fce7){var _0x237743=_0x5ac395;return _0x2db268['disable']=!![],_0x9cacfe['cmHopper'][_0x237743('0x1a0c')]()[_0x237743('0x1dc2')][_0x237743('0xaa5')](function(_0x4d39ab){var _0x29c665=_0x237743;!_0x51538b()[_0x29c665('0x89a')](_0x4d39ab)&&!_0x51538b()[_0x29c665('0x89a')](_0x4d39ab[_0x29c665('0x145c')])&&_0x4d39ab[_0x29c665('0x145c')][_0x29c665('0x1b71')]?_0x4c0e11['show']({'controller':_0x29c665('0x1cb6'),'controllerAs':'vm','templateUrl':_0x40ac9e,'parent':angular[_0x29c665('0x1aa8')](_0x53ed80[_0x29c665('0x54c')]),'targetEvent':_0xc9fce7,'clickOutsideToClose':!![],'locals':{'preview':_0x4d39ab},'resolve':{'customFields':[_0x29c665('0x1d16'),function _0xde2eec(_0x5eb657){return _0x5eb657['resolve']('cmCustomField@get',{'nolimit':!![]});}]}}):_0x5134fe[_0x29c665('0x3a1')]({'title':'PREVIEW','msg':'CAMPAIGN\x20NOT\x20ACTIVE'});})['catch'](function(_0x434d54){var _0x545a6b=_0x237743;if(_0x434d54['status']===0x194)_0x5134fe[_0x545a6b('0x3a1')]({'title':'PREVIEW','msg':_0x545a6b('0x2199')});else{if(_0x434d54[_0x545a6b('0x10fd')]&&_0x434d54['data'][_0x545a6b('0x4c6')]&&_0x434d54[_0x545a6b('0x10fd')][_0x545a6b('0x4c6')][_0x545a6b('0x2587')]){_0x2db268[_0x545a6b('0x4c6')]=_0x434d54[_0x545a6b('0x10fd')][_0x545a6b('0x4c6')]||[{'message':_0x434d54[_0x545a6b('0x684')](),'type':'api.openchannelMessage.accept'}];for(var _0xed6644=0x0;_0xed6644<_0x434d54[_0x545a6b('0x10fd')][_0x545a6b('0x4c6')][_0x545a6b('0x2587')];_0xed6644+=0x1){_0x5134fe[_0x545a6b('0x187f')]({'title':_0x434d54[_0x545a6b('0x10fd')][_0x545a6b('0x4c6')][_0xed6644][_0x545a6b('0x6c8')],'msg':_0x434d54[_0x545a6b('0x10fd')][_0x545a6b('0x4c6')][_0xed6644][_0x545a6b('0x1402')]});}}else _0x5134fe[_0x545a6b('0x187f')]({'title':_0x434d54[_0x545a6b('0x2fa')]?'API:'+_0x434d54[_0x545a6b('0x2fa')]+_0x545a6b('0x169e')+_0x434d54[_0x545a6b('0x24df')]:_0x545a6b('0x1f9a'),'msg':_0x434d54[_0x545a6b('0x10fd')]?JSON[_0x545a6b('0xa48')](_0x434d54['data'][_0x545a6b('0x1402')]):_0x434d54[_0x545a6b('0x684')]()});}})[_0x237743('0x1889')](function(){_0x2db268['disable']=![];});}function _0x55dc44(_0x49f477){var _0x5d479a=_0x5ac395;_0x32f1fa(_0x49f477)[_0x5d479a('0x162a')]();}function _0x222bfa(){var _0x192a83=_0x5ac395;return _0x2db268['currentUser'][_0x192a83('0x924')]===_0x192a83('0x178b')||_0x2db268[_0x192a83('0x7fc')][_0x192a83('0x924')]===_0x192a83('0x272b')||_0x2db268[_0x192a83('0x7fc')][_0x192a83('0x924')]===_0x192a83('0xeff')&&_0x2db268[_0x192a83('0x7fc')][_0x192a83('0x285')]!==0x0;}_0x9cacfe[_0x5ac395('0x2087')][_0x5ac395('0x2122')]({'fields':_0x5ac395('0x1a2f'),'ToId':_0x2db268[_0x5ac395('0x7fc')]['id'],'read':![],'nolimit':!![]})['$promise'][_0x5ac395('0xaa5')](function(_0x4647d4){var _0x3d2741=_0x5ac395;_0x2db268[_0x3d2741('0x2279')]=_0x4647d4[_0x3d2741('0x580')][_0x3d2741('0x2587')];});function _0x215486(_0x5cbf5a){var _0x3809be=_0x5ac395;_0x5cbf5a[_0x3809be('0x2149')]===_0x2db268['currentUser']['id']&&!_0x5cbf5a[_0x3809be('0xe05')]&&(_0x2db268[_0x3809be('0x2279')]+=0x1),_0x5cbf5a[_0x3809be('0x2149')]===_0x2db268[_0x3809be('0x7fc')]['id']&&_0x5cbf5a['FromId']!==_0x2db268[_0x3809be('0x7fc')]['id']&&!_0x5cbf5a[_0x3809be('0x7b7')]&&_0x5cbf5a[_0x3809be('0xe05')]&&_0x2db268['unreadTotalGroupMessages']++;}function _0x5cc40b(_0x41d401){var _0x39d9c6=_0x5ac395;_0x41d401[_0x39d9c6('0x2149')]===_0x2db268[_0x39d9c6('0x7fc')]['id']&&_0x41d401['read']&&_0x2db268[_0x39d9c6('0x2279')]>0x0&&!_0x41d401[_0x39d9c6('0xe05')]&&(_0x2db268[_0x39d9c6('0x2279')]-=0x1),_0x41d401['ToId']===_0x2db268[_0x39d9c6('0x7fc')]['id']&&_0x41d401[_0x39d9c6('0x7b7')]&&_0x41d401['ChatGroupId']&&_0x2db268['unreadTotalGroupMessages']>0x0&&_0x2db268[_0x39d9c6('0x68e')]--;}function _0x5b6582(_0x3e0dad){var _0xf279bd=_0x5ac395;_0x2db268[_0xf279bd('0x1836')]=_0x3e0dad;}function _0x2fd825(_0x383c88){var _0x54b0d9=_0x5ac395;return _0x5b93e5(),_0x2e0d93[_0x54b0d9('0x1bc9')](_0x383c88)[_0x54b0d9('0xaa5')](function(){var _0x313535=_0x54b0d9;return _0x412add[_0x313535('0xd1')]('webrtc::logout'),_0x1834a6['go']('app.login');})[_0x54b0d9('0x253d')](function(_0x5fe385){var _0x59c169=_0x54b0d9;console[_0x59c169('0x187f')](_0x5fe385);});}function _0x41ce3e(_0x32d29d){var _0x50572e=_0x5ac395;if(typeof _0x2db268[_0x50572e('0x1a10')][_0x32d29d[_0x50572e('0x7fb')]]=='undefined'){var _0x533616=_0x50572e('0x2643');_0x4bf941['show']({'template':_0x50572e('0x10bf')+_0x533616+_0x50572e('0x18df'),'hideDelay':0x1b58,'position':_0x50572e('0xe1c'),'parent':_0x50572e('0xb24')});return;}_0x2db268[_0x50572e('0xefe')]=_0x32d29d,_0x87904d['put'](_0x50572e('0x136d'),_0x32d29d['code']),_0x1ff0b8[_0x50572e('0x426')](_0x32d29d[_0x50572e('0x7fb')]),_0x1834a6[_0x50572e('0x4cb')][_0x50572e('0x25d6')]===_0x50572e('0x1584')&&_0xe2b1c9[_0x50572e('0x18cc')]['reload'](),_0x44dbd8[_0x50572e('0x1f38')](_0x32d29d[_0x50572e('0x7fb')])>=0x0?_0x5134fe[_0x50572e('0x3a1')]({'title':_0x1ff0b8['instant'](_0x50572e('0x827')),'msg':_0x1ff0b8[_0x50572e('0x213f')](_0x50572e('0x17e1'))}):_0x1ae1ea['$parent'][_0x50572e('0x24a3')]['vm'][_0x50572e('0x1108')]=_0x50572e('0xf');}function _0x5deb59(){var _0x352451=_0x5ac395;_0x2db268[_0x352451('0x936')]['toggleClass'](_0x352451('0x1a72'));}function _0x5405ac(){var _0x71daa8=_0x5ac395;_0x50be56[_0x71daa8('0x817')]();}function _0x59e4c5(_0x847465){var _0x576107=_0x5ac395,_0x449ac6=[],_0x222b69=_0x50be56['getFlatNavigation'](),_0x516751=_0x5d8048[_0x576107('0x213b')]();for(var _0x26f056=0x0;_0x26f056<_0x222b69[_0x576107('0x2587')];_0x26f056++){_0x222b69[_0x26f056][_0x576107('0x450')]&&_0x449ac6[_0x576107('0x1599')](_0x222b69[_0x26f056]);}return _0x847465&&(_0x449ac6=_0x449ac6[_0x576107('0xdb7')](function(_0x16643e){var _0x495f62=_0x576107;if(_0x16643e[_0x495f62('0x110a')][_0x495f62('0xcf6')]()[_0x495f62('0x13d6')](_0x847465[_0x495f62('0xcf6')]()))return!![];})),_0x1ee8fb(function(){var _0x232ef2=_0x576107;_0x516751[_0x232ef2('0x149f')](_0x449ac6);},0x3e8),_0x516751[_0x576107('0x159a')];}function _0x5c7aaa(_0x49bae3){var _0x411b39=_0x5ac395;_0x49bae3[_0x411b39('0x450')]&&(_0x49bae3[_0x411b39('0x1926')]?_0x1834a6['go'](_0x49bae3[_0x411b39('0xb46')],_0x49bae3[_0x411b39('0x1926')]):_0x1834a6['go'](_0x49bae3['state']));}function _0x34cdb1(){var _0x2dd187=_0x5ac395;_0x412add[_0x2dd187('0xd1')](_0x2dd187('0xbc1'));}function _0x46f3f4(_0x3d41f9,_0x1748d8){var _0x546522=_0x5ac395;_0x4c0e11[_0x546522('0x1e6d')]({'controller':_0x546522('0x645'),'controllerAs':'vm','templateUrl':_0x4fccea,'parent':angular['element'](_0x53ed80[_0x546522('0x54c')]),'targetEvent':_0x3d41f9,'clickOutsideToClose':_0x1748d8?![]:!![],'escapeToClose':_0x1748d8?![]:!![],'locals':{'user':_0x2db268['user'],'setting':_0x2ba3a8,'reset':_0x1748d8}});}function _0x4b097d(){var _0x516256=_0x5ac395;return _0x2e0d93[_0x516256('0xacc')]()&&_0x2e0d93['hasRole'](_0x516256('0xeff'));}function _0x313429(_0x1caba4){var _0x11571=_0x5ac395;if(_0x1caba4['id']===_0x2db268[_0x11571('0x272b')]['id']){if(_0x1caba4['role']===_0x11571('0xeff')&&_0x51538b()[_0x11571('0x2173')](_0x1caba4[_0x11571('0x175')])&&!_0x1caba4[_0x11571('0x175')]){if(_0x2db268[_0x11571('0x272b')]['showWebBar']!==0x0){_0x5b93e5();var _0x5479fb=_0x4c0e11['confirm']()[_0x11571('0x110a')](_0x1ff0b8[_0x11571('0x213f')](_0x11571('0x6ef'))+'!')[_0x11571('0x447')](_0x1ff0b8[_0x11571('0x213f')]('TOOLBAR.SOMEONE_LOGGED_YOU_OUT'))[_0x11571('0x5b5')](_0x1ff0b8['instant'](_0x11571('0x6ef'))+'!')['ok'](_0x1ff0b8['instant'](_0x11571('0x87b')))[_0x11571('0x2030')](_0x11571('0x8f9'));_0x4c0e11[_0x11571('0x1e6d')](_0x5479fb)[_0x11571('0xaa5')](function(){var _0x23854f=_0x11571;return _0x2e0d93['queueLogin']()[_0x23854f('0xaa5')](function(){var _0x4aeb82=_0x23854f;_0x47312d(),_0x51538b()[_0x4aeb82('0x283c')](_0x2db268['user'],_0x1caba4),_0x2e0d93['setCurrentUser'](_0x2db268[_0x4aeb82('0x272b')]);});})[_0x11571('0x253d')](function(){_0x2fd825(!![]);});}else _0x2fd825(!![]);}else _0x51538b()[_0x11571('0x283c')](_0x2db268[_0x11571('0x272b')],_0x1caba4),_0x2e0d93[_0x11571('0x207a')](_0x2db268[_0x11571('0x272b')]);}}function _0x93ebbb(_0x57e135){var _0x435762=_0x5ac395;_0x2db268[_0x435762('0x7fc')][_0x435762('0x285')]===0x2&&_0x2db268['currentUser'][_0x435762('0x924')]===_0x435762('0xeff')&&_0x2db268[_0x435762('0x7fc')]['name']===_0x57e135[_0x435762('0xc1a')]&&_0x5134fe['info']({'title':'WebRTC\x20Popup','msg':_0x435762('0x77a')+_0x57e135['calleridnum']+_0x435762('0x1305')+_0x57e135[_0x435762('0xe26')]+'
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra:\x20'+(_0x57e135[_0x435762('0x147e')]&&_0x57e135['variables'][_0x435762('0x34e')]?_0x57e135[_0x435762('0x147e')][_0x435762('0x34e')]:_0x435762('0x1ac8'))+_0x435762('0x1021'),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0x3559d9(){var _0x22ffee=_0x5ac395;return _0x2db268[_0x22ffee('0x143f')][_0x22ffee('0x1b8c')]?'xCALLY\x20Motion':_0x2db268[_0x22ffee('0x143f')][_0x22ffee('0x1822')];}function _0x3f7733(){var _0x314c06=_0x5ac395;_0x51538b()['some'](_0x2db268[_0x314c06('0xac0')],{'dialMethod':_0x314c06('0x1019'),'dialActive':!![]})&&_0x2db268[_0x314c06('0x1202')][_0x314c06('0x24c8')]&&_0x2db268['polling']?(_0x2db268[_0x314c06('0x10cc')]=![],_0x9cacfe[_0x314c06('0xe51')][_0x314c06('0x1958')]()['$promise'][_0x314c06('0xaa5')](function(_0x2a04c7){var _0x10bf96=_0x314c06;_0x2a04c7&&_0x51538b()[_0x10bf96('0x2065')](_0x2a04c7['contacts'])&&(_0x2db268[_0x10bf96('0x1cfb')]=_0x2a04c7[_0x10bf96('0x1cfb')]);})[_0x314c06('0x1889')](function(){var _0x58c10d=_0x314c06;_0x2db268[_0x58c10d('0x10cc')]=!![];})):_0x2db268[_0x314c06('0x1cfb')]=0x0;}function _0x2d7fbd(){var _0x45bffc=_0x5ac395;_0x52010f&&(_0xbfa14a[_0x45bffc('0x2030')](_0x52010f),_0x52010f=null);}function _0x353691(_0x269580){var _0x2e5527=_0x5ac395;console[_0x2e5527('0x84c')](_0x2e5527('0x1a9a'),_0x269580);if(_0x2db268[_0x2e5527('0x272b')][_0x2e5527('0x285')]!==0x0)return _0x5b93e5(),_0x2e0d93[_0x2e5527('0x1bc9')](!![])[_0x2e5527('0xaa5')](function(){var _0x53a0d9=_0x2e5527;_0x412add[_0x53a0d9('0xd1')](_0x53a0d9('0x1ef0')),_0x4c0e11[_0x53a0d9('0x1e6d')](_0x4c0e11['alert']()[_0x53a0d9('0x20a2')](angular[_0x53a0d9('0x1aa8')](_0x53ed80['body']))[_0x53a0d9('0x22b9')](![])[_0x53a0d9('0x26da')](![])[_0x53a0d9('0x110a')](_0x1ff0b8[_0x53a0d9('0x213f')](_0x53a0d9('0x6ef')))[_0x53a0d9('0x447')](_0x1ff0b8[_0x53a0d9('0x213f')](_0x53a0d9('0x23cb'),{'ip':_0x269580['ip']}))['ok']('OK'))[_0x53a0d9('0xaa5')](function(){return _0x1834a6['go']('app.login');});})[_0x2e5527('0x253d')](function(_0x1a0efe){console['error'](_0x1a0efe);});}function _0x6e6c49(_0x566214){var _0x54adc5=_0x5ac395,_0x7a53f7=_0x566214;if(_0x2db268[_0x54adc5('0x7fc')]['id']===_0x7a53f7['recipient']){var _0xb839f5=_0x1ff0b8[_0x54adc5('0x213f')](_0x54adc5('0x3c3'),{'sender':_0x7a53f7[_0x54adc5('0x1289')]}),_0xc70382=_0x7a53f7[_0x54adc5('0x23d0')]?_0x1ff0b8[_0x54adc5('0x213f')]('TOOLBAR.NOTIFICATION_TITLE_RECIPIENT',{'recipient':_0x7a53f7['description']}):null;_0x5134fe['wait']({'title':_0xc70382?_0xb839f5+'\x20'+_0xc70382:_0xb839f5,'msg':_0x7a53f7[_0x54adc5('0x15af')],'clickToClose':![],'timeout':![],'sound':_0x7a53f7[_0x54adc5('0x1133')],'html':!![]});}}_0x1ae1ea[_0x5ac395('0xc75')](_0x5ac395('0x12d0'),function(){var _0x4d8f47=_0x5ac395;_0x187a32['removeAllListeners'](_0x4d8f47('0x215e')),_0x187a32['removeAllListeners'](_0x4d8f47('0x15fb')),_0x187a32[_0x4d8f47('0x2629')](_0x4d8f47('0x80d')),_0x187a32[_0x4d8f47('0x2629')]('chatInternalMessage:update'),_0x187a32[_0x4d8f47('0x2629')](_0x4d8f47('0x77e')),_0x187a32[_0x4d8f47('0x2629')](_0x4d8f47('0x215f')),_0x187a32[_0x4d8f47('0x2629')]('userVoiceQueue:remove'),_0x187a32[_0x4d8f47('0x2629')](_0x4d8f47('0x125e')),_0x187a32['removeAllListeners'](_0x4d8f47('0x21e4')),_0x187a32['removeAllListeners'](_0x4d8f47('0x19f')),_0x187a32[_0x4d8f47('0x2629')](_0x4d8f47('0x3d1')),_0x2d7fbd();});}const _0x4cad16=_0x27c28c;_0x1d9c05['$inject']=[_0x1a8446('0x208f')];function _0x1d9c05(_0x1ca7f9){var _0x14909e=_0x1a8446;_0x1ca7f9[_0x14909e('0x1de5')]('app/toolbar');}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x22d2'),[])['config'](_0x1d9c05)['controller']('ChangePasswordController',_0x45538b)[_0x1a8446('0x780')]('PreviewDialogController',_0x248d31)[_0x1a8446('0x780')](_0x1a8446('0xafd'),_0x4cad16),_0x28922e[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0xcb3'),'$q',_0x1a8446('0x1dfd'),'socket',_0x1a8446('0x157'),_0x1a8446('0x27fd'),'license'];function _0x28922e(_0x25fdd3,_0x4dadf2,_0x538e1e,_0x146f8c,_0x2d8dd8,_0x48c966,_0x4638a6,_0x493be3){var _0x28d202=_0x1a8446,_0x77e02=this;_0x77e02[_0x28d202('0xb87')]=_0x420d43()()[_0x28d202('0x1f27')](),_0x77e02[_0x28d202('0x7fc')]=_0x146f8c[_0x28d202('0xacc')](),_0x77e02[_0x28d202('0x1202')]=_0x493be3,_0x77e02[_0x28d202('0x2279')]=0x0,_0x77e02[_0x28d202('0x68e')]=0x0,_0x77e02[_0x28d202('0x2177')]=_0x41ab22,_0x77e02[_0x28d202('0x1539')]=_0x390635,_0x77e02[_0x28d202('0x8d2')]=_0xd71985,_0x2d8dd8['on'](_0x28d202('0x80d'),_0x77e02[_0x28d202('0x1539')]),_0x2d8dd8['on'](_0x28d202('0x223f'),_0x77e02[_0x28d202('0x8d2')]),_0x48c966[_0x28d202('0x2087')][_0x28d202('0x2122')]({'fields':_0x28d202('0x1a2f'),'ToId':_0x77e02[_0x28d202('0x7fc')]['id'],'read':![],'nolimit':!![],'ChatGroupId':'null'})[_0x28d202('0x1dc2')]['then'](function(_0x4f59cb){var _0x2ff766=_0x28d202;return _0x4f59cb&&_0x4f59cb['count']&&(_0x77e02[_0x2ff766('0x2279')]=_0x4f59cb[_0x2ff766('0xd15')]),_0x48c966[_0x2ff766('0x272b')][_0x2ff766('0x11d1')]({'id':_0x77e02[_0x2ff766('0x7fc')]['id']})[_0x2ff766('0x1dc2')];})[_0x28d202('0xaa5')](function(_0x5b11e1){var _0x28be84=_0x28d202,_0x3d842c=[],_0x3209f8=_0x5b11e1[_0x28be84('0x580')];for(var _0xe8919=0x0;_0xe8919<_0x3209f8[_0x28be84('0x2587')];_0xe8919++){_0x3d842c[_0x28be84('0x1599')](_0x48c966[_0x28be84('0x157d')][_0x28be84('0x693')]({'id':_0x3209f8[_0xe8919]['id']})[_0x28be84('0x1dc2')]);}return _0x538e1e[_0x28be84('0xa15')](_0x3d842c);})[_0x28d202('0xaa5')](function(_0x2933d5){var _0x1ddcc6=_0x28d202;for(var _0x3eef3c=0x0;_0x3eef3c<_0x2933d5['length'];_0x3eef3c++){_0x77e02['unreadTotalGroupMessages']+=_0x2933d5[_0x3eef3c][_0x1ddcc6('0xd15')];}})[_0x28d202('0x253d')](function(_0x134c64){var _0x4a986d=_0x28d202;console[_0x4a986d('0x187f')](_0x134c64);});function _0x2537ca(_0x478c5d){var _0x50131a=_0x28d202,_0x359920={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x50131a('0x111c')+_0x478c5d[_0x50131a('0x1a2f')]+_0x50131a('0x1ecf'),'body':_0x478c5d['body']||'','focusOnclick':!![],'closeOnClick':!![]};_0x4638a6[_0x50131a('0x1e6d')](_0x4dadf2[_0x50131a('0x213f')](_0x50131a('0xc00')),_0x359920);}function _0x5709ea(_0x51db0a){var _0x2001d5=_0x28d202;_0x4638a6[_0x2001d5('0xc15')]()?_0x4638a6[_0x2001d5('0xc31')]()[_0x2001d5('0xaa5')](function(){_0x2537ca(_0x51db0a);},function(_0x2f7650){var _0x27c68d=_0x2001d5;console[_0x27c68d('0x187f')](_0x27c68d('0x26f'),_0x2f7650);}):console[_0x2001d5('0x187f')](_0x2001d5('0xb7d'));}function _0x41ab22(){var _0x5b3bee=_0x28d202;return _0x77e02['currentUser']['role']===_0x5b3bee('0x178b')||_0x77e02[_0x5b3bee('0x7fc')]['role']===_0x5b3bee('0x272b')||_0x77e02[_0x5b3bee('0x7fc')][_0x5b3bee('0x924')]===_0x5b3bee('0xeff')&&_0x77e02[_0x5b3bee('0x7fc')][_0x5b3bee('0x285')]!==0x0;}function _0x390635(_0x286e7a){var _0x500eb8=_0x28d202;_0x286e7a['ToId']===_0x77e02[_0x500eb8('0x7fc')]['id']&&_0x286e7a[_0x500eb8('0x1a2f')]!==_0x77e02['currentUser']['id']&&!_0x286e7a[_0x500eb8('0x7b7')]&&_0x286e7a[_0x500eb8('0xe05')]&&(_0x77e02[_0x500eb8('0x68e')]++,_0x5709ea(_0x286e7a)),_0x286e7a[_0x500eb8('0x2149')]===_0x77e02[_0x500eb8('0x7fc')]['id']&&!_0x286e7a['ChatGroupId']&&(_0x77e02[_0x500eb8('0x2279')]+=0x1,_0x5709ea(_0x286e7a));}function _0xd71985(_0x4aa0fc){var _0x41fe5d=_0x28d202;_0x4aa0fc[_0x41fe5d('0x2149')]===_0x77e02[_0x41fe5d('0x7fc')]['id']&&_0x4aa0fc['read']&&_0x77e02[_0x41fe5d('0x2279')]>0x0&&!_0x4aa0fc[_0x41fe5d('0xe05')]&&(_0x77e02[_0x41fe5d('0x2279')]-=0x1),_0x4aa0fc[_0x41fe5d('0x2149')]==_0x77e02['currentUser']['id']&&_0x4aa0fc[_0x41fe5d('0x1a2f')]!==_0x77e02[_0x41fe5d('0x7fc')]['id']&&_0x4aa0fc['ChatGroupId']&&_0x4aa0fc[_0x41fe5d('0x7b7')]&&(_0x77e02[_0x41fe5d('0x68e')]>0x0&&_0x77e02[_0x41fe5d('0x68e')]--);}_0x25fdd3['$on'](_0x28d202('0x12d0'),function(){var _0x27cddc=_0x28d202;_0x2d8dd8[_0x27cddc('0x2629')](_0x27cddc('0x80d')),_0x2d8dd8['removeAllListeners'](_0x27cddc('0x223f'));});}const _0x367bb6=_0x28922e;_0x431698[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x2a4'),'api','$timeout','Auth',_0x1a8446('0xe74'),_0x1a8446('0x1261'),'$q',_0x1a8446('0x21b3'),_0x1a8446('0xcb3'),_0x1a8446('0x6a4'),_0x1a8446('0x1df3')];function _0x431698(_0x19a5df,_0x5844dd,_0x421333,_0xd0b19d,_0x52eaf1,_0x410974,_0x578a46,_0x57ca0c,_0x17586b,_0x13e3a5,_0x48b8b2,_0x34a730){var _0x5610c5=_0x1a8446,_0x2934c0=this;_0x2934c0[_0x5610c5('0x7fc')]=_0x52eaf1[_0x5610c5('0xacc')](),_0x2934c0['user']=undefined,_0x2934c0[_0x5610c5('0x2204')]={'count':0x0,'rows':[]},_0x2934c0[_0x5610c5('0xc06')]=_0x420d43()(0x0)[_0x5610c5('0x1f27')](_0x5610c5('0x1463')),_0x2934c0[_0x5610c5('0x19bb')]={},_0x2934c0[_0x5610c5('0x21fb')]='',_0x2934c0['disabled']=![],_0x2934c0['init']=_0x1b9ec8,_0x2934c0[_0x5610c5('0x223e')]=_0x3dc8dd,_0x2934c0['reply']=_0xce46a3,_0x2934c0[_0x5610c5('0x1539')]=_0x51ff4b,_0x2934c0[_0x5610c5('0x8d2')]=_0x254734,_0x2934c0['onUserUpdate']=_0x255f0e,_0x2934c0[_0x5610c5('0x2047')]=_0x33d6d4,_0x2934c0[_0x5610c5('0x1432')]=_0x173e9e,_0x2934c0[_0x5610c5('0x1368')]=_0x11ebdd,_0x410974['on'](_0x5610c5('0x80d'),_0x2934c0[_0x5610c5('0x1539')]),_0x410974['on'](_0x5610c5('0x223f'),_0x2934c0[_0x5610c5('0x8d2')]),_0x410974['on']('user:update',_0x2934c0[_0x5610c5('0x1f07')]),_0x578a46(_0x5610c5('0x17b2'))[_0x5610c5('0xd6b')](function(){var _0x1de13b=_0x5610c5;_0x2934c0[_0x1de13b('0x272b')]=undefined;}),_0x421333[_0x5610c5('0x2087')][_0x5610c5('0x2122')]({'fields':'FromId','ToId':_0x2934c0[_0x5610c5('0x7fc')]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x5610c5('0x1ed9')})[_0x5610c5('0x1dc2')]['then'](function(_0x3099d4){var _0x3959aa=_0x5610c5;_0x2934c0['unreadMessage']=_0x51538b()[_0x3959aa('0xf08')](_0x3099d4[_0x3959aa('0x580')],_0x3959aa('0x1a2f'));})['catch'](function(){}),_0x421333[_0x5610c5('0x2087')][_0x5610c5('0x282f')]()[_0x5610c5('0x1dc2')][_0x5610c5('0xaa5')](function(_0x53bce9){_0x2934c0['users']=_0x53bce9;})[_0x5610c5('0x253d')](function(_0x2b63ad){var _0x13c2ba=_0x5610c5;console[_0x13c2ba('0x187f')](_0x2b63ad);});function _0x1b9ec8(_0x2361af){var _0x3bb213=_0x5610c5;_0x2934c0[_0x3bb213('0x1202')]=_0x2361af;}function _0x51ff4b(_0x3b527f){var _0x32a3f2=_0x5610c5;if(_0x3b527f['ToId']===_0x2934c0[_0x32a3f2('0x7fc')]['id']&&!_0x3b527f[_0x32a3f2('0xe05')]){_0x2934c0[_0x32a3f2('0x272b')]&&_0x2934c0[_0x32a3f2('0x272b')]['id']===_0x3b527f[_0x32a3f2('0x1a2f')]?(_0x2934c0[_0x32a3f2('0x272b')]['messages'][_0x32a3f2('0x580')]['push'](_0x3b527f),_0x41fdb6(0x0),_0x421333[_0x32a3f2('0x2087')][_0x32a3f2('0x264e')]({'id':_0x3b527f['id'],'read':!![]})):_0x2934c0[_0x32a3f2('0x19bb')][_0x3b527f[_0x32a3f2('0x1a2f')]]=_0x2934c0['unreadMessage'][_0x3b527f['FromId']]?_0x2934c0['unreadMessage'][_0x3b527f['FromId']]+0x1:0x1;var _0x2bd7d7=_0x51538b()[_0x32a3f2('0xe9e')](_0x2934c0[_0x32a3f2('0x2204')]['rows'],{'id':_0x3b527f[_0x32a3f2('0x1a2f')]});_0x2bd7d7&&(_0x2bd7d7[_0x32a3f2('0xdeb')]=_0x3b527f[_0x32a3f2('0x24a1')],_0x2bd7d7[_0x32a3f2('0x6a5')]=_0x3b527f);}}function _0x254734(_0x41a97e){var _0x3165c8=_0x5610c5;if((_0x41a97e[_0x3165c8('0x1a2f')]===_0x2934c0[_0x3165c8('0x7fc')]['id']||_0x41a97e[_0x3165c8('0x2149')]===_0x2934c0[_0x3165c8('0x7fc')]['id'])&&!_0x41a97e[_0x3165c8('0xe05')]){if(_0x2934c0[_0x3165c8('0x272b')]){var _0x138356=_0x51538b()[_0x3165c8('0xe9e')](_0x2934c0[_0x3165c8('0x272b')]['messages'][_0x3165c8('0x580')],{'id':_0x41a97e['id']});_0x138356&&_0x51538b()[_0x3165c8('0x283c')](_0x138356,_0x41a97e);}var _0x150cb0=_0x51538b()['find'](_0x2934c0[_0x3165c8('0x2204')][_0x3165c8('0x580')],{'id':_0x2934c0[_0x3165c8('0x7fc')]['id']===_0x41a97e[_0x3165c8('0x1a2f')]?_0x41a97e[_0x3165c8('0x2149')]:_0x41a97e[_0x3165c8('0x1a2f')]});_0x150cb0&&_0x150cb0['lastMessage']&&_0x51538b()[_0x3165c8('0x283c')](_0x150cb0['lastMessage'],_0x41a97e),_0x41a97e[_0x3165c8('0x2149')]===_0x2934c0[_0x3165c8('0x7fc')]['id']&&(_0x41a97e['read']&&_0x2934c0[_0x3165c8('0x19bb')][_0x41a97e[_0x3165c8('0x1a2f')]]>0x0&&(_0x2934c0['unreadMessage'][_0x41a97e['FromId']]-=0x1));}}function _0x255f0e(_0x2ee651){var _0x232875=_0x5610c5,_0xcc3bf6=_0x51538b()[_0x232875('0xe9e')](_0x2934c0[_0x232875('0x2204')]['rows'],{'id':_0x2ee651['id']});_0xcc3bf6&&(!_0x51538b()[_0x232875('0x89a')](_0x2ee651[_0x232875('0x175')])&&_0xcc3bf6[_0x232875('0x175')]!==_0x2ee651[_0x232875('0x175')]&&(_0xcc3bf6['online']=_0x2ee651[_0x232875('0x175')]),!_0x51538b()[_0x232875('0x89a')](_0x2ee651[_0x232875('0x17f6')])&&_0xcc3bf6[_0x232875('0x17f6')]!==_0x2ee651[_0x232875('0x17f6')]&&(_0xcc3bf6[_0x232875('0x17f6')]=_0x2ee651[_0x232875('0x17f6')]));}function _0x3dc8dd(_0xe9bdf7){var _0x25a34b=_0x5610c5;if(_0xe9bdf7){if(!_0xe9bdf7[_0x25a34b('0x17f6')]&&_0xe9bdf7[_0x25a34b('0x924')]===_0x25a34b('0xeff')){_0x5844dd['warning']({'title':_0x13e3a5[_0x25a34b('0x213f')](_0x25a34b('0x14a5')),'msg':_0x13e3a5[_0x25a34b('0x213f')](_0x25a34b('0x267e'))}),_0x2934c0[_0x25a34b('0x272b')]=undefined;return;}_0x2934c0[_0x25a34b('0x272b')]=_0xe9bdf7,_0x2934c0[_0x25a34b('0x21fb')]='',_0x421333[_0x25a34b('0x2087')][_0x25a34b('0x2122')]({'sort':_0x25a34b('0x24a1'),'FromId':_0x2934c0[_0x25a34b('0x7fc')]['id']+','+_0xe9bdf7['id'],'ToId':_0x2934c0[_0x25a34b('0x7fc')]['id']+','+_0xe9bdf7['id'],'ChatGroupId':_0x25a34b('0x1ed9')})[_0x25a34b('0x1dc2')]['then'](function(_0x4bc84e){var _0x5df6ff=_0x25a34b;if(_0x4bc84e&&_0x4bc84e[_0x5df6ff('0x580')]){_0x2934c0[_0x5df6ff('0x272b')][_0x5df6ff('0x1783')]=_0x4bc84e;for(var _0x30baa4=0x0;_0x30baa4<_0x2934c0[_0x5df6ff('0x272b')][_0x5df6ff('0x1783')][_0x5df6ff('0x580')][_0x5df6ff('0x2587')];_0x30baa4+=0x1){_0x2934c0[_0x5df6ff('0x272b')]['messages'][_0x5df6ff('0x580')][_0x30baa4][_0x5df6ff('0x7b7')]===![]&&_0x2934c0[_0x5df6ff('0x272b')]['messages'][_0x5df6ff('0x580')][_0x30baa4][_0x5df6ff('0x2149')]===_0x2934c0[_0x5df6ff('0x7fc')]['id']&&_0x421333[_0x5df6ff('0x2087')][_0x5df6ff('0x264e')]({'id':_0x2934c0[_0x5df6ff('0x272b')][_0x5df6ff('0x1783')][_0x5df6ff('0x580')][_0x30baa4]['id'],'read':!![]});}}})[_0x25a34b('0x1889')](function(){_0x41fdb6(0x0);});}else _0x2934c0[_0x25a34b('0x272b')]=undefined;}function _0xce46a3(){var _0x515d36=_0x5610c5;_0x2934c0[_0x515d36('0x2686')]=!![];if(_0x2934c0[_0x515d36('0x21fb')]===''){_0x2934c0[_0x515d36('0x2686')]=![];return;}var _0xbe7fc9={'FromId':_0x2934c0[_0x515d36('0x7fc')]['id'],'ToId':_0x2934c0[_0x515d36('0x272b')]['id'],'body':_0x2934c0[_0x515d36('0x21fb')],'read':![]};_0x2934c0[_0x515d36('0x21fb')]='',_0x421333[_0x515d36('0x2087')][_0x515d36('0x242b')](_0xbe7fc9)[_0x515d36('0x1dc2')][_0x515d36('0xaa5')](function(_0x3215ec){var _0x94bc6c=_0x515d36;_0x2934c0[_0x94bc6c('0x272b')][_0x94bc6c('0x1783')][_0x94bc6c('0x580')][_0x94bc6c('0x1599')](_0x3215ec),_0x2934c0[_0x94bc6c('0x272b')][_0x94bc6c('0xdeb')]=_0x3215ec[_0x94bc6c('0x24a1')],_0x2934c0[_0x94bc6c('0x272b')][_0x94bc6c('0x6a5')]=_0x3215ec,_0x41fdb6(0x190);})[_0x515d36('0x253d')](function(){})[_0x515d36('0x1889')](function(){_0x2934c0['disabled']=![];});}function _0x41fdb6(_0x220187){var _0x5e275d=_0x5610c5,_0x1e939d=angular['element'](_0x5e275d('0xcb0'));_0xd0b19d(function(){var _0x52208b=_0x5e275d;_0x1e939d[_0x52208b('0x11c6')]({'scrollTop':_0x1e939d[0x0][_0x52208b('0x270d')]},_0x220187);},0x0);}function _0x230cc0(_0x2e0d4a){var _0x45acae=_0x5610c5;return!_0x51538b()[_0x45acae('0x89a')](_0x2e0d4a)?_0x2e0d4a['replace'](/[^\w.+#*-]+/g,''):'';}function _0x33d6d4(_0x168736){var _0x2b7719=_0x5610c5;_0x48b8b2[_0x2b7719('0xd1')](_0x2b7719('0xb7f'),{'target':_0x230cc0(_0x168736)});}function _0x173e9e(_0x3c562a){var _0x37bc74=_0x5610c5;return _0x422d81(_0x37bc74('0x1017')+(_0x2934c0[_0x37bc74('0x272b')]['phoneBarRemoteControlPort']||_0x37bc74('0x23d7'))+'/api/originate/'+_0x230cc0(_0x3c562a));}function _0x11ebdd(_0x3e588b){var _0x34f778=_0x5610c5;return _0x422d81('http://127.0.0.1:'+(_0x2934c0[_0x34f778('0x272b')]['phoneBarRemoteControlPort']||_0x34f778('0x23d7'))+_0x34f778('0x445')+_0x230cc0(_0x3e588b));}function _0x422d81(_0x4626af){var _0xcb40f0=_0x5610c5;return _0x34a730[_0xcb40f0('0x2122')](_0x4626af)[_0xcb40f0('0xe10')](function(){var _0x3b3a28=_0xcb40f0;_0x5844dd[_0x3b3a28('0xe10')]({'title':_0x3b3a28('0x1b64'),'msg':_0x3b3a28('0x20fc')});})['error'](function(){var _0x5325e4=_0xcb40f0;_0x5844dd['error']({'title':_0x5325e4('0x18cb'),'msg':_0x13e3a5[_0x5325e4('0x213f')](_0x5325e4('0x2714'))});});}_0x19a5df['$on'](_0x5610c5('0x12d0'),function(){var _0x42b6a2=_0x5610c5;_0x410974[_0x42b6a2('0x2629')]('chatInternalMessage:save'),_0x410974['removeAllListeners'](_0x42b6a2('0x223f')),_0x410974[_0x42b6a2('0x2629')](_0x42b6a2('0x15fb'));});}const _0x45a2b5=_0x431698;_0x4e139a[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),'Auth','group',_0x1a8446('0x12c2')];function _0x4e139a(_0xc55c93,_0x3c01da,_0x109e70,_0x315f7a,_0x5d5628,_0x1b3e46,_0x247605,_0x249327,_0x5bd675){var _0x6ce13a=_0x1a8446,_0x5de2c8=this;_0x5de2c8[_0x6ce13a('0x4c6')]=[],_0x5de2c8[_0x6ce13a('0x110a')]='QUICKPANEL.EDIT_CHATGROUP',_0x5de2c8[_0x6ce13a('0x23ea')]=angular['copy'](_0x249327),_0x5de2c8['currentUser']=_0x247605[_0x6ce13a('0xacc')](),_0x5de2c8['members']=_0x5bd675,_0x5de2c8['newChatGroup']=!![];!_0x5de2c8[_0x6ce13a('0x23ea')]&&(_0x5de2c8[_0x6ce13a('0x23ea')]={'write':!![],'members':[]},_0x5de2c8['title']=_0x6ce13a('0xef4'));_0x5de2c8[_0x6ce13a('0x1b4f')]=_0x461696,_0x5de2c8[_0x6ce13a('0x2023')]=_0x2ea9ea,_0x5de2c8[_0x6ce13a('0x2104')]=_0x52a193;function _0x2ed29b(_0x14b722){var _0x505ee7=_0x6ce13a,_0x490c51=_0x14b722[_0x505ee7('0xcf6')]();return function _0x480901(_0x191ec9){var _0x111785=_0x505ee7,_0x41324c=_0x191ec9[_0x111785('0x25d6')][_0x111785('0xcf6')]();return _0x41324c['indexOf'](_0x490c51)!=-0x1;};}function _0x52a193(_0x22a223){var _0x2b22b6=_0x6ce13a;return _0x22a223?_0x5de2c8[_0x2b22b6('0x12c2')][_0x2b22b6('0x580')]['filter'](_0x2ed29b(_0x22a223)):[];}function _0x461696(){var _0x1de12f=_0x6ce13a,_0x136cf0;return _0x5de2c8[_0x1de12f('0x4c6')]=[],_0x1b3e46[_0x1de12f('0x157d')][_0x1de12f('0x242b')]({'name':_0x5de2c8[_0x1de12f('0x23ea')][_0x1de12f('0x25d6')],'write':_0x5de2c8[_0x1de12f('0x23ea')][_0x1de12f('0xe98')]})['$promise'][_0x1de12f('0xaa5')](function(_0x458ad6){var _0x469f9a=_0x1de12f,_0x1e67d7=_0x51538b()[_0x469f9a('0x1246')](_0x5de2c8[_0x469f9a('0x23ea')]['members'],'id');return _0x1e67d7[_0x469f9a('0x6ee')](_0x5de2c8[_0x469f9a('0x7fc')]['id']),_0x136cf0=_0x458ad6,_0x1b3e46[_0x469f9a('0x157d')][_0x469f9a('0x2767')]({'id':_0x136cf0['id'],'ids':_0x1e67d7})[_0x469f9a('0x1dc2')];})[_0x1de12f('0xaa5')](function(){var _0x2d2c01=_0x1de12f;_0x5d5628['success']({'title':'Group\x20properly\x20saved!','msg':_0x136cf0['name']+_0x2d2c01('0x20bf')}),_0x2ea9ea(_0x136cf0);})[_0x1de12f('0x253d')](function(_0x4a1304){var _0x5540c1=_0x1de12f;_0x5d5628['error']({'title':_0x4a1304['status']?_0x5540c1('0x16c2')+_0x4a1304[_0x5540c1('0x2fa')]+_0x5540c1('0x169e')+_0x4a1304['statusText']:_0x5540c1('0x4e4'),'msg':_0x4a1304['data']?JSON[_0x5540c1('0xa48')](_0x4a1304['data'][_0x5540c1('0x1402')]):_0x4a1304['toString']()});});}function _0x2ea9ea(_0x1646b){var _0x4c07d4=_0x6ce13a;_0x315f7a[_0x4c07d4('0x1120')](_0x1646b);}}const _0x232531=_0x4e139a,_0x55b189=_0x4fb511['p']+'src/js/modules/quick-panel/tabs/groups/create/dialog.html/dialog-[chunkhash].html',_0x4d712b=_0x4fb511['p']+'src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog-[chunkhash].html';_0x2c1a4a[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x1261'),'$q',_0x1a8446('0x1dfd'),_0x1a8446('0x157'),_0x1a8446('0xe74'),'toasty'];function _0x2c1a4a(_0xe39229,_0xd5cca1,_0x36c2e3,_0x4ff965,_0x5b74eb,_0x479980,_0x5c39b5,_0x126590,_0x1e1a2b,_0x2a362f){var _0x5e6b3b=_0x1a8446,_0x53a979=this;_0x53a979[_0x5e6b3b('0x7fc')]=_0x5c39b5[_0x5e6b3b('0xacc')](),_0x53a979['unreadGroupMessages']={},_0x53a979[_0x5e6b3b('0x2562')]={},_0x53a979[_0x5e6b3b('0x191f')],_0x53a979['group'],_0x53a979[_0x5e6b3b('0x2e')]=_0x336ba2,_0x53a979['back']=_0xe533b6,_0x53a979['addGroup']=_0x59ca5a,_0x53a979[_0x5e6b3b('0x21e8')]=_0x5984a8,_0x53a979['groupsToArray']=_0x490395,_0x53a979['showMessageInfo']=_0x3f23eb,_0x53a979[_0x5e6b3b('0x223e')]=_0x1f3a01,_0x53a979[_0x5e6b3b('0x59')]=_0x4ffee2,_0x1e1a2b['on'](_0x5e6b3b('0x80d'),_0x2dfddd),_0x1e1a2b['on'](_0x5e6b3b('0x223f'),_0x56998b),_0x1e1a2b['on'](_0x5e6b3b('0x929'),_0x61e940),_0x5b74eb(_0x5e6b3b('0x17b2'))[_0x5e6b3b('0xd6b')](_0xe533b6);function _0x61e940(_0xdaae40){var _0x53f9ab=_0x5e6b3b;_0x53a979[_0x53f9ab('0x2562')][_0xdaae40['id']]&&delete _0x53a979[_0x53f9ab('0x2562')][_0xdaae40['id']];}function _0x56998b(_0x12ec83){var _0x42a49d=_0x5e6b3b;_0x12ec83[_0x42a49d('0x2149')]==_0x53a979[_0x42a49d('0x7fc')]['id']&&_0x12ec83[_0x42a49d('0x1a2f')]!==_0x53a979['currentUser']['id']&&_0x12ec83[_0x42a49d('0xe05')]&&_0x12ec83[_0x42a49d('0x7b7')]&&(_0x53a979[_0x42a49d('0x2562')][_0x12ec83['ChatGroupId']]['unreadGroupMessages']>0x0&&_0x53a979[_0x42a49d('0x2562')][_0x12ec83[_0x42a49d('0xe05')]][_0x42a49d('0x58e')]--,_0x53a979[_0x42a49d('0x23ea')]['messages'][_0x12ec83['id']]&&(_0x53a979[_0x42a49d('0x23ea')][_0x42a49d('0x1783')][_0x12ec83['id']][_0x42a49d('0x7b7')]=!![]));}function _0x2dfddd(_0x14c1d3){var _0x1b8be7=_0x5e6b3b;if(!_0x53a979[_0x1b8be7('0x23ea')]&&_0x14c1d3['ToId']===_0x53a979['currentUser']['id']&&_0x14c1d3[_0x1b8be7('0x1a2f')]!==_0x53a979[_0x1b8be7('0x7fc')]['id']&&!_0x14c1d3[_0x1b8be7('0x7b7')]&&_0x14c1d3[_0x1b8be7('0xe05')]){var _0x52564b=_0x53a979[_0x1b8be7('0x2562')][_0x14c1d3['ChatGroupId']];if(_0x52564b)!_0x52564b[_0x1b8be7('0x58e')]&&(_0x52564b[_0x1b8be7('0x58e')]=0x0),_0x52564b[_0x1b8be7('0x58e')]++;else return _0x126590[_0x1b8be7('0x157d')][_0x1b8be7('0x2122')]({'id':_0x14c1d3['ChatGroupId']})[_0x1b8be7('0x1dc2')]['then'](function(_0xdfb431){var _0x18081b=_0x1b8be7;_0xdfb431[_0x18081b('0x58e')]=0x1,_0x53a979['groups'][_0xdfb431['id']]=_0xdfb431;});}_0x53a979[_0x1b8be7('0x23ea')]&&_0x14c1d3['ChatGroupId']===_0x53a979[_0x1b8be7('0x23ea')]['id']&&_0x14c1d3['ToId']===_0x53a979[_0x1b8be7('0x7fc')]['id']&&_0x126590[_0x1b8be7('0x2087')][_0x1b8be7('0x264e')]({'id':_0x14c1d3['id'],'read':!![]})[_0x1b8be7('0x1dc2')][_0x1b8be7('0xaa5')](function(){_0x102e27(_0x14c1d3);});}function _0x336ba2(_0x4769a6){var _0x561eed=_0x5e6b3b;return _0x53a979[_0x561eed('0x1202')]=_0x4769a6,_0x126590[_0x561eed('0x272b')][_0x561eed('0x11d1')]({'id':_0x53a979[_0x561eed('0x7fc')]['id']})[_0x561eed('0x1dc2')][_0x561eed('0xaa5')](function(_0x1ef14d){var _0x24c746=_0x561eed,_0x149db0=[];for(var _0x165855=0x0;_0x165855<_0x1ef14d[_0x24c746('0x580')][_0x24c746('0x2587')];_0x165855++){_0x1ef14d['rows'][_0x165855][_0x24c746('0x58e')]=0x0,_0x53a979[_0x24c746('0x2562')][_0x1ef14d[_0x24c746('0x580')][_0x165855]['id']]=_0x1ef14d[_0x24c746('0x580')][_0x165855],_0x149db0[_0x24c746('0x1599')](_0x126590[_0x24c746('0x157d')][_0x24c746('0x693')]({'id':_0x1ef14d[_0x24c746('0x580')][_0x165855]['id']})[_0x24c746('0x1dc2')]);}return _0x479980['all'](_0x149db0);})[_0x561eed('0xaa5')](function(_0x3315fb){var _0x17c8a5=_0x561eed;for(var _0x474f86=0x0;_0x474f86<_0x3315fb['length'];_0x474f86++){_0x53a979[_0x17c8a5('0x2562')][_0x3315fb[_0x474f86]['id']][_0x17c8a5('0x58e')]+=_0x3315fb[_0x474f86][_0x17c8a5('0xd15')];}})['catch'](function(_0x539ecf){console['error'](_0x539ecf);});}function _0x490395(){var _0x493262=_0x5e6b3b;return _0x51538b()[_0x493262('0x3c5')](_0x53a979[_0x493262('0x2562')]);}function _0x3f23eb(_0x32d305,_0x505013){var _0x10b5cc=_0x5e6b3b;_0x4ff965[_0x10b5cc('0x1e6d')]({'controller':_0x10b5cc('0xde2'),'controllerAs':'vm','templateUrl':_0x4d712b,'parent':angular['element'](_0xd5cca1[_0x10b5cc('0x54c')]),'targetEvent':_0x32d305,'clickOutsideToClose':!![],'locals':{'message':_0x505013},'resolve':{'data':function _0x507abe(){var _0x1390be=_0x10b5cc,_0x258c2a={'messages':[]};return _0x126590['chatInternalMessage'][_0x1390be('0x2122')]({'ChatInternalMessageId':_0x505013['id']})[_0x1390be('0x1dc2')][_0x1390be('0xaa5')](function(_0x56890d){var _0x1f7ba6=_0x1390be,_0x23fd86=[];_0x258c2a[_0x1f7ba6('0x1783')]=_0x56890d[_0x1f7ba6('0x580')],_0x258c2a[_0x1f7ba6('0x1783')][_0x1f7ba6('0x6ee')](_0x505013);for(var _0x8ac0c4=0x0;_0x8ac0c4<_0x258c2a[_0x1f7ba6('0x1783')]['length'];_0x8ac0c4++){_0x23fd86[_0x1f7ba6('0x1599')](_0x126590[_0x1f7ba6('0x272b')][_0x1f7ba6('0x2122')]({'id':_0x258c2a[_0x1f7ba6('0x1783')][_0x8ac0c4][_0x1f7ba6('0x2149')],'fields':'id,name,fullname,userpic'})[_0x1f7ba6('0x1dc2')]);}return _0x479980[_0x1f7ba6('0xa15')](_0x23fd86);})[_0x1390be('0xaa5')](function(_0x31d5e3){return _0x258c2a['users']=_0x31d5e3,_0x258c2a;})[_0x1390be('0x253d')](function(_0x41276f){var _0x26ab29=_0x1390be;_0x41276f&&console[_0x26ab29('0x187f')](_0x41276f);});}}})[_0x10b5cc('0xaa5')](function(){})['catch'](function(_0x2fdbae){var _0x4295cc=_0x10b5cc;_0x2fdbae&&console['error'](_0x2fdbae[_0x4295cc('0x1402')]);});}function _0x4ffee2(){var _0x5da071=_0x5e6b3b;if(!_0x53a979[_0x5da071('0x21fb')])return;var _0x288ca6={'id':_0x53a979[_0x5da071('0x23ea')]['id'],'FromId':_0x53a979[_0x5da071('0x7fc')]['id'],'ToId':_0x53a979[_0x5da071('0x7fc')]['id'],'body':_0x53a979[_0x5da071('0x21fb')],'read':!![]},_0x5c869f=[];_0x53a979[_0x5da071('0x21fb')]='',_0x126590['chatGroup'][_0x5da071('0x12d4')](_0x288ca6)[_0x5da071('0x1dc2')][_0x5da071('0xaa5')](function(_0x2b674f){var _0x59d2c6=_0x5da071;_0x288ca6[_0x59d2c6('0x7b7')]=![],_0x288ca6[_0x59d2c6('0x91d')]=_0x2b674f['id'];for(var _0x4275d9=0x0;_0x4275d9<_0x53a979[_0x59d2c6('0x23ea')][_0x59d2c6('0x12c2')][_0x59d2c6('0x2587')];_0x4275d9++){_0x53a979[_0x59d2c6('0x23ea')][_0x59d2c6('0x12c2')][_0x4275d9]['id']!==_0x53a979['currentUser']['id']&&(_0x288ca6[_0x59d2c6('0x2149')]=_0x53a979[_0x59d2c6('0x23ea')][_0x59d2c6('0x12c2')][_0x4275d9]['id'],_0x5c869f[_0x59d2c6('0x1599')](_0x126590['chatGroup'][_0x59d2c6('0x12d4')](angular[_0x59d2c6('0x20a')](_0x288ca6))['$promise']));}return _0x479980['all'](_0x5c869f);})['catch'](function(_0x2d6bf6){var _0x5d8c84=_0x5da071;console[_0x5d8c84('0x18d5')](_0x2d6bf6);});}function _0x102e27(_0x414736){var _0x2281dc=_0x5e6b3b;_0x53a979[_0x2281dc('0x23ea')][_0x2281dc('0x1783')][_0x414736['id']]=_0x414736,_0x1eeba3(0x190);}function _0xe533b6(){var _0x3f1fb4=_0x5e6b3b;delete _0x53a979[_0x3f1fb4('0x23ea')];}function _0x1eeba3(_0xc0c2f6){var _0x38c6a2=_0x5e6b3b,_0x341773=angular[_0x38c6a2('0x1aa8')](_0x38c6a2('0x731'));_0x36c2e3(function(){var _0x42a2ee=_0x38c6a2;_0x341773[_0x42a2ee('0x11c6')]({'scrollTop':_0x341773[0x0][_0x42a2ee('0x270d')]},_0xc0c2f6);},0x0);}function _0x1f3a01(_0x420c39){var _0x5e01ac=_0x5e6b3b;_0x53a979['group']={'id':_0x420c39['id'],'write':_0x420c39['write'],'messages':{}},_0x126590['chatGroup']['getMembers']({'id':_0x420c39['id'],'fields':_0x5e01ac('0x25ff')})[_0x5e01ac('0x1dc2')]['then'](function(_0x125a81){var _0x298772=_0x5e01ac;return _0x53a979[_0x298772('0x23ea')][_0x298772('0x14e1')]=_0x51538b()[_0x298772('0x184a')](_0x125a81[_0x298772('0x580')],'id'),_0x53a979[_0x298772('0x23ea')][_0x298772('0x12c2')]=_0x51538b()[_0x298772('0x1ebb')](_0x125a81['rows'],[{'id':_0x53a979[_0x298772('0x7fc')]['id']}],'id'),_0x53a979[_0x298772('0x191f')]=_0x51538b()[_0x298772('0x1246')](_0x53a979[_0x298772('0x23ea')]['members'],'fullname')[_0x298772('0x19c4')](',\x20'),_0x126590[_0x298772('0x157d')]['getMessages']({'id':_0x420c39['id'],'nolimit':!![]})['$promise'];})[_0x5e01ac('0xaa5')](function(_0x158097){var _0x3da439=_0x5e01ac,_0x447fe3=[],_0x2e7aeb;for(var _0x11fa6b=0x0;_0x11fa6b<_0x158097['count'];_0x11fa6b++){_0x158097[_0x3da439('0x580')][_0x11fa6b][_0x3da439('0x2149')]===_0x53a979[_0x3da439('0x7fc')]['id']&&(_0x2e7aeb=_0x158097['rows'][_0x11fa6b],_0x53a979[_0x3da439('0x23ea')][_0x3da439('0x1783')][_0x2e7aeb['id']]=_0x2e7aeb,_0x158097[_0x3da439('0x580')][_0x11fa6b][_0x3da439('0x2149')]==_0x53a979[_0x3da439('0x7fc')]['id']&&_0x158097[_0x3da439('0x580')][_0x11fa6b][_0x3da439('0x1a2f')]!==_0x53a979[_0x3da439('0x7fc')]['id']&&!_0x2e7aeb[_0x3da439('0x7b7')]&&_0x447fe3['push'](_0x126590[_0x3da439('0x2087')]['update']({'id':_0x2e7aeb['id'],'read':!![]})));}return _0x479980[_0x3da439('0xa15')](_0x447fe3);})[_0x5e01ac('0xaa5')](function(){_0x1eeba3(0x190);})[_0x5e01ac('0x253d')](function(_0x3f87b6){var _0x2e08b9=_0x5e01ac;console[_0x2e08b9('0x187f')](_0x3f87b6['message']);});}function _0x5984a8(_0x4858b1,_0x3f21e9){var _0x1e2c69=_0x5e6b3b,_0x196944=_0x4ff965['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20group?')[_0x1e2c69('0x102e')](_0x1e2c69('0x10dc')+_0x4858b1['name']+_0x1e2c69('0x697')+_0x1e2c69('0x210d'))['ariaLabel'](_0x1e2c69('0x10da'))[_0x1e2c69('0x116d')](_0x3f21e9)['ok']('OK')[_0x1e2c69('0x2030')](_0x1e2c69('0x2410'));_0x4ff965[_0x1e2c69('0x1e6d')](_0x196944)['then'](function(){var _0x581561=_0x1e2c69;return _0x126590[_0x581561('0x157d')]['delete']({'id':_0x4858b1['id']})[_0x581561('0x1dc2')];})[_0x1e2c69('0xaa5')](function(){var _0x4f86c0=_0x1e2c69;delete _0x53a979['groups'][_0x4858b1['id']],_0x2a362f[_0x4f86c0('0xe10')]({'title':_0x4f86c0('0x1e74'),'msg':_0x4858b1[_0x4f86c0('0x25d6')]+_0x4f86c0('0xcd9')});})[_0x1e2c69('0x253d')](function(_0x438f09){var _0x4596b2=_0x1e2c69;_0x438f09&&_0x2a362f[_0x4596b2('0x187f')]({'title':_0x438f09[_0x4596b2('0x2fa')]?_0x4596b2('0x16c2')+_0x438f09[_0x4596b2('0x2fa')]+'\x20-\x20'+_0x438f09[_0x4596b2('0x24df')]:_0x4596b2('0xbfb'),'msg':_0x438f09[_0x4596b2('0x10fd')]?JSON[_0x4596b2('0xa48')](_0x438f09['data']['message']):_0x438f09[_0x4596b2('0x684')]()});});}function _0x59ca5a(_0x27d1e8,_0x956c16){var _0x12ccde=_0x5e6b3b;_0x4ff965[_0x12ccde('0x1e6d')]({'controller':_0x12ccde('0x3af'),'controllerAs':'vm','templateUrl':_0x55b189,'parent':angular[_0x12ccde('0x1aa8')](_0xd5cca1[_0x12ccde('0x54c')]),'targetEvent':_0x956c16,'clickOutsideToClose':!![],'locals':{'group':_0x27d1e8,'me':_0x53a979[_0x12ccde('0x7fc')],'license':null,'setting':null},'resolve':{'members':function _0x4f5134(){var _0x4fde27=_0x12ccde;return _0x5c39b5[_0x4fde27('0x26e8')]('admin')?_0x126590[_0x4fde27('0x272b')][_0x4fde27('0x2122')]({'role':_0x4fde27('0xeff')})['$promise']:_0x126590[_0x4fde27('0x1e97')][_0x4fde27('0x1cf1')]({'id':_0x5c39b5[_0x4fde27('0xacc')]()[_0x4fde27('0x2168')],'section':_0x4fde27('0x91a'),'role':_0x4fde27('0xeff')})[_0x4fde27('0x1dc2')];}}})[_0x12ccde('0xaa5')](function(_0x20d06e){var _0x1b7b40=_0x12ccde;_0x20d06e&&(_0x53a979[_0x1b7b40('0x2562')][_0x20d06e['id']]=_0x20d06e);})[_0x12ccde('0x253d')](function(_0x32a820){var _0x53151d=_0x12ccde;_0x32a820&&console[_0x53151d('0x187f')](_0x32a820['message']);});}_0xe39229[_0x5e6b3b('0xc75')](_0x5e6b3b('0x12d0'),function(){var _0x3d749e=_0x5e6b3b;_0x1e1a2b[_0x3d749e('0x2629')](_0x3d749e('0x80d')),_0x1e1a2b[_0x3d749e('0x2629')](_0x3d749e('0x223f')),_0x1e1a2b[_0x3d749e('0x2629')](_0x3d749e('0x929'));});}const _0x1949dd=_0x2c1a4a;_0x47483a[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'data'];function _0x47483a(_0x429952,_0x32f1f9,_0x47c4c6,_0x13b044,_0x50e1c7,_0x253657,_0x2aa684,_0x14a1aa){var _0x2e3739=_0x1a8446,_0x1ea36f=this;_0x1ea36f['data']=_0x14a1aa,_0x1ea36f[_0x2e3739('0x110a')]='QUICKPANEL.INFO';function _0x518340(){var _0x40a604=_0x2e3739;_0x13b044[_0x40a604('0x1120')]();}_0x1ea36f[_0x2e3739('0x2023')]=_0x518340;}const _0x5aa8e4=_0x47483a;_0x401c98['$inject']=[_0x1a8446('0x208f')];function _0x401c98(_0x389acf){var _0x3d210e=_0x1a8446;_0x389acf[_0x3d210e('0x1de5')]('app/quick-panel');}angular['module']('app.quick-panel',[])['config'](_0x401c98)[_0x1a8446('0x780')]('QuickPanelController',_0x367bb6)[_0x1a8446('0x780')](_0x1a8446('0x1f84'),_0x45a2b5)['controller'](_0x1a8446('0x3af'),_0x232531)[_0x1a8446('0x780')](_0x1a8446('0xe1a'),_0x1949dd)[_0x1a8446('0x780')](_0x1a8446('0xde2'),_0x5aa8e4),_0x50c582[_0x1a8446('0x1e33')]=[_0x1a8446('0x1dfd'),'$cookies'];function _0x50c582(_0x184faf,_0x536c14){var _0x2442ad=_0x1a8446,_0x3e13e3=this;function _0x4c5f00(){var _0x38540a=a0_0x1149;_0x536c14[_0x38540a('0x5ad')](_0x38540a('0x1ee8')+_0x3e13e3[_0x38540a('0x7fc')]['id'],!![]);}_0x3e13e3[_0x2442ad('0x7fc')]=_0x184faf['getCurrentUser'](),_0x3e13e3[_0x2442ad('0x793')]=_0x536c14[_0x2442ad('0x2122')](_0x2442ad('0x1ee8')+_0x3e13e3[_0x2442ad('0x7fc')]['id'])||![],_0x3e13e3[_0x2442ad('0x209c')]=_0x4c5f00;}const _0x4622b1=_0x50c582;_0x480b6f[_0x1a8446('0x1e33')]=[_0x1a8446('0x208f')];function _0x480b6f(_0x544726){var _0x6603ca=_0x1a8446;_0x544726[_0x6603ca('0x1de5')]('app/header');}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x1f88'),[])[_0x1a8446('0x1b14')](_0x480b6f)[_0x1a8446('0x780')]('HeaderController',_0x4622b1),_0x944eb2[_0x1a8446('0x1e33')]=[_0x1a8446('0x1dfd'),_0x1a8446('0x95f')];function _0x944eb2(_0x597c06,_0xe825d7){var _0x3193d3=_0x1a8446,_0xad63b8=this;function _0x371f2d(){var _0x54d3a5=a0_0x1149;_0xe825d7['put'](_0x54d3a5('0xe7')+_0xad63b8[_0x54d3a5('0x7fc')]['id'],!![]);}_0xad63b8[_0x3193d3('0x7fc')]=_0x597c06[_0x3193d3('0xacc')](),_0xad63b8['cookieAlertHide']=_0xe825d7[_0x3193d3('0x2122')](_0x3193d3('0xe7')+_0xad63b8['currentUser']['id'])||![],_0xad63b8[_0x3193d3('0x208')]=_0x371f2d;}const _0x206c54=_0x944eb2;_0x55b30b[_0x1a8446('0x1e33')]=[_0x1a8446('0x208f')];function _0x55b30b(_0xd5104b){var _0x53a912=_0x1a8446;_0xd5104b[_0x53a912('0x1de5')](_0x53a912('0xe52'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x247a'),[])[_0x1a8446('0x1b14')](_0x55b30b)[_0x1a8446('0x780')](_0x1a8446('0x1a3e'),_0x206c54);var _0x274d16=_0x4fb511(0x1cbe),_0x42dfcc=_0x4fb511(0x2303),_0x376f24=_0x4fb511(0xde6),_0x3ff24d=_0x4fb511(0x321),_0x337dd9=_0x4fb511(0x1c92),_0x10fef4=_0x4fb511(0x2361),_0x2e9ff9=_0x4fb511(0xdd5),_0x34ebe1=_0x4fb511(0x9d6),_0x5e8143=_0x4fb511(0x20aa),_0x49a80b=_0x4fb511(0x1ac1),_0x5d5b7d=_0x4fb511(0x15c3),_0x3ed212=_0x4fb511(0x154a),_0x4e407b=_0x4fb511(0x2154),_0x400d9a=_0x4fb511(0x23a1),_0x5c8ac0=_0x4fb511(0xa7c),_0x1a50fc=_0x4fb511(0x1eaf),_0x3fb463=_0x4fb511(0x444),_0x4cd5d5=_0x4fb511(0x1c4),_0x3e3e15=_0x4fb511(0x121a),_0x5e0438=_0x4fb511(0x1be),_0x5b61d2=_0x4fb511(0xd3e);const _0x42ff45=_0x4fb511['p']+_0x1a8446('0x1a76'),_0x3947ea=_0x4fb511['p']+_0x1a8446('0x1239'),_0x45f7ef=_0x4fb511['p']+'src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html/user.general.chat-[chunkhash].html',_0x58502b=_0x4fb511['p']+_0x1a8446('0x9fd'),_0xab5e9d=_0x4fb511['p']+_0x1a8446('0xf63'),_0xdabbe7=_0x4fb511['p']+_0x1a8446('0x1d80'),_0x233b87=_0x4fb511['p']+_0x1a8446('0x1374'),_0xed7da9=_0x4fb511['p']+'src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp-[chunkhash].html';_0x2df8af['$inject']=['$scope',_0x1a8446('0xe74'),'chatInteractions','chatWebsites'];function _0x2df8af(_0x299520,_0x1a6c84,_0x2f2446,_0x44ffbd){var _0x38b41a=_0x1a8446,_0x29af66=this,_0x1a094d=[];_0x29af66[_0x38b41a('0x1b14')]={'format':_0x38b41a('0xa0b'),'unit':'seconds','trim':![]},_0x29af66[_0x38b41a('0x4b8')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x38b41a('0x18be'),'answerRate':0x0,'abandonRate':0x0},_0x29af66[_0x38b41a('0x7d7')]=_0x44ffbd?_0x51538b()[_0x38b41a('0x184a')](_0x44ffbd[_0x38b41a('0x580')]?_0x44ffbd[_0x38b41a('0x580')]:[],'id'):{},_0x29af66['onSaveChatInteraction']=_0x15cce4,_0x29af66[_0x38b41a('0x13b6')]=_0x1c2256,_0x1a6c84['on'](_0x38b41a('0x1ac2'),_0x29af66[_0x38b41a('0x17a0')]),_0x1a6c84['on'](_0x38b41a('0x1cb7'),_0x29af66[_0x38b41a('0x13b6')]),_0x1cc2f1();function _0x57190b(_0x3ce52b,_0x2eb3af){var _0x5d31af=_0x38b41a;!_0x3ce52b[_0x5d31af('0x1cbd')]&&!_0x3ce52b[_0x5d31af('0x1037')]&&_0x2eb3af&&(_0x29af66['inbound'][_0x5d31af('0xd3d')]+=0x1);!_0x3ce52b[_0x5d31af('0x1cbd')]&&_0x3ce52b['UserId']&&!_0x51538b()['includes'](_0x1a094d,_0x3ce52b['id'])&&(_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0xf01')]+=0x1,_0x1a094d['push'](_0x3ce52b['id']),!_0x2eb3af&&_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0xd3d')]&&(_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0xd3d')]-=0x1));if(_0x3ce52b[_0x5d31af('0x1cbd')]&&_0x3ce52b[_0x5d31af('0x106e')]===_0x5d31af('0x1f60'))_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0x1f60')]+=0x1,!_0x2eb3af&&_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0xd3d')]&&(_0x29af66['inbound']['waiting']-=0x1);else{if(_0x3ce52b['closed']&&!_0x3ce52b[_0x5d31af('0x1037')]&&_0x3ce52b['disposition'])_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0x22f4')]+=0x1,!_0x2eb3af&&_0x29af66[_0x5d31af('0x4b8')]['waiting']&&(_0x29af66['inbound'][_0x5d31af('0xd3d')]-=0x1);else _0x3ce52b['closed']&&_0x3ce52b[_0x5d31af('0x1037')]&&(_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0xa1c')]+=_0x420d43()(_0x3ce52b[_0x5d31af('0x26ed')])[_0x5d31af('0x72c')](_0x420d43()(_0x3ce52b['read1stAt']),_0x29af66[_0x5d31af('0x1b14')][_0x5d31af('0x11c3')]),_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0x1ac0')]+=_0x420d43()(_0x3ce52b[_0x5d31af('0x19bc')])[_0x5d31af('0x72c')](_0x420d43()(_0x3ce52b[_0x5d31af('0x24a1')]),_0x29af66[_0x5d31af('0x1b14')][_0x5d31af('0x11c3')]),_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0x2717')]+=0x1,!_0x2eb3af&&_0x29af66[_0x5d31af('0x4b8')]['talking']&&(_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0xf01')]-=0x1));}_0x2eb3af&&(_0x29af66[_0x5d31af('0x4b8')][_0x5d31af('0x1d71')]+=0x1);}function _0x69310(){var _0xedd1c=_0x38b41a;_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0x1624')]=Math[_0xedd1c('0x1566')]((_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0x1f60')]+_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0x22f4')])/(_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0x1d71')]-_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0xf01')]-_0x29af66['inbound'][_0xedd1c('0xd3d')])*0x64,-0x2),_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0x2113')]=Math[_0xedd1c('0x1566')](_0x29af66[_0xedd1c('0x4b8')]['answered']/(_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0x1d71')]-_0x29af66[_0xedd1c('0x4b8')]['talking']-_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0xd3d')])*0x64,-0x2),_0x29af66['inbound']['avgHoldTime']=_0x420d43()[_0xedd1c('0xdee')](Math['round'](_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0x1ac0')]/_0x29af66['inbound'][_0xedd1c('0x2717')]),_0x29af66[_0xedd1c('0x1b14')][_0xedd1c('0x11c3')])['format'](_0x29af66[_0xedd1c('0x1b14')][_0xedd1c('0x1f27')],_0x29af66[_0xedd1c('0x1b14')]),_0x29af66['inbound']['avgTalkTime']=_0x420d43()[_0xedd1c('0xdee')](Math[_0xedd1c('0x1566')](_0x29af66[_0xedd1c('0x4b8')][_0xedd1c('0xa1c')]/_0x29af66['inbound']['answered']),_0x29af66[_0xedd1c('0x1b14')]['unit'])[_0xedd1c('0x1f27')](_0x29af66[_0xedd1c('0x1b14')][_0xedd1c('0x1f27')],_0x29af66['config']);}function _0x1cc2f1(){var _0x5823c9=_0x38b41a;if(Object[_0x5823c9('0x9f2')](_0x29af66[_0x5823c9('0x7d7')])[_0x5823c9('0x2587')]>0x0)for(var _0x315f8e=0x0;_0x315f8e<_0x2f2446[_0x5823c9('0x580')][_0x5823c9('0x2587')];_0x315f8e+=0x1){if(_0x142ee5(_0x2f2446[_0x5823c9('0x580')][_0x315f8e])){var _0x564647=_0x2f2446[_0x5823c9('0x580')][_0x315f8e];_0x57190b(_0x564647,!![]),_0x69310();}}}function _0x142ee5(_0x1e34d1){var _0xccafaa=_0x38b41a;if(_0x51538b()[_0xccafaa('0x2c2')](_0x29af66[_0xccafaa('0x7d7')],{'id':_0x51538b()[_0xccafaa('0x228e')](_0x1e34d1['ChatWebsiteId'])}))return!![];return![];}function _0x55485d(_0x529a6e){var _0x2b3353=_0x38b41a,_0x1de890=_0x420d43()()[_0x2b3353('0x15db')](0x0,!![])[_0x2b3353('0x206d')]('day'),_0x506929=_0x420d43()()[_0x2b3353('0x15db')](0x0,!![])[_0x2b3353('0x173a')](_0x2b3353('0xa7c'));return _0x420d43()(_0x529a6e)[_0x2b3353('0x15db')](0x0,!![])[_0x2b3353('0xbdd')](_0x1de890,_0x506929);}function _0x15cce4(_0x37e6a3){var _0x69db4d=_0x38b41a;_0x142ee5(_0x37e6a3)&&_0x55485d(_0x37e6a3[_0x69db4d('0x24a1')])&&(_0x57190b(_0x37e6a3,!![]),_0x69310());}function _0x1c2256(_0xd82f31){var _0x360aee=_0x38b41a;_0x142ee5(_0xd82f31)&&_0x55485d(_0xd82f31[_0x360aee('0x24a1')])&&(_0x57190b(_0xd82f31,![]),_0x69310());}_0x299520[_0x38b41a('0xc75')](_0x38b41a('0x12d0'),function(){var _0xc000e0=_0x38b41a;_0x1a6c84[_0xc000e0('0x2629')](_0xc000e0('0x1ac2')),_0x1a6c84[_0xc000e0('0x2629')](_0xc000e0('0x1cb7'));});}const _0x13a3e7=_0x2df8af;_0x1bdb02[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x21b3'),_0x1a8446('0xe74'),_0x1a8446('0x22d8'),'rpcQueues',_0x1a8446('0x2252'),_0x1a8446('0x98c'),_0x1a8446('0x1436')];function _0x1bdb02(_0x25854d,_0xecd4c0,_0xf9fce0,_0x2c4425,_0x533eb7,_0x4c9d33,_0x335bab,_0x275d5b){var _0x161a9f=_0x1a8446,_0x3b729f=this;_0x3b729f[_0x161a9f('0x22d8')]=_0x2c4425?_0x51538b()[_0x161a9f('0x184a')](_0x2c4425[_0x161a9f('0x580')]?_0x2c4425['rows']:[],'id'):{},_0x3b729f[_0x161a9f('0x1f2f')]=_0x533eb7?_0x51538b()[_0x161a9f('0x184a')](_0x533eb7[_0x161a9f('0x580')]?_0x533eb7[_0x161a9f('0x580')]:[],'id'):{},_0x3b729f[_0x161a9f('0x1436')]=_0x275d5b?_0x51538b()[_0x161a9f('0x184a')](_0x275d5b[_0x161a9f('0x580')]?_0x275d5b[_0x161a9f('0x580')]:[],'id'):{},_0x3b729f['ivr']={'originated':0x0,'limitCalls':0x0},_0x3b729f[_0x161a9f('0x4b8')]={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x161a9f('0x18be'),'avgTalkTime':_0x161a9f('0x18be'),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x3b729f[_0x161a9f('0xd16')]=_0x158ca9,_0x3b729f[_0x161a9f('0x1d5b')]=_0x3eb8f1,_0xf9fce0[_0x161a9f('0xa84')](_0x161a9f('0x46'),_0x3b729f[_0x161a9f('0xd16')]),_0x3b729f[_0x161a9f('0x1c21')]=_0xecd4c0(function(){_0x466d80(),_0x58ad4e();},0x3e7),_0xf9fce0[_0x161a9f('0xa84')](_0x161a9f('0x2637'),_0x3b729f[_0x161a9f('0x1d5b')]),_0x466d80(),_0x58ad4e();function _0x466d80(){var _0x138e9e=_0x161a9f;_0x4c9d33({'queues':_0x3b729f[_0x138e9e('0x22d8')],'rpcQueues':_0x3b729f[_0x138e9e('0x1f2f')]})[_0x138e9e('0xaa5')](function(_0x48c011){var _0x50f11a=_0x138e9e;_0x3b729f[_0x50f11a('0x4b8')]=_0x48c011;});}function _0x58ad4e(){var _0x24d098=_0x161a9f;_0x335bab({'rpcCampaigns':_0x3b729f[_0x24d098('0x1436')]})[_0x24d098('0xaa5')](function(_0x216604){var _0x55b5d3=_0x24d098;_0x3b729f[_0x55b5d3('0x1d11')]=_0x216604;});}function _0x158ca9(_0x3a1d09){var _0x187878=_0x161a9f;_0x3b729f['outboundQueues'][_0x3a1d09['id']]&&(_0x3b729f[_0x187878('0x1f2f')][_0x3a1d09['id']]&&(_0x3b729f['rpcQueues'][_0x3a1d09['id']]=_0x3a1d09));}function _0x3eb8f1(_0x4a7e9e){var _0x1a8d97=_0x161a9f;_0x3b729f[_0x1a8d97('0x1436')][_0x4a7e9e['id']]&&(_0x3b729f['rpcCampaigns'][_0x4a7e9e['id']]=_0x4a7e9e);}_0x25854d['$on']('$destroy',function(){var _0x14ee04=_0x161a9f;_0xf9fce0[_0x14ee04('0x2629')]('voice_queue:save'),_0xf9fce0[_0x14ee04('0x2629')]('campaign:save'),_0x3b729f[_0x14ee04('0x1c21')]&&_0xecd4c0[_0x14ee04('0x2030')](_0x3b729f[_0x14ee04('0x1c21')]);});}const _0xfebc21=_0x1bdb02;_0x41bcc7[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0xe74'),_0x1a8446('0xff8'),'faxAccounts'];function _0x41bcc7(_0x2a359b,_0x467d85,_0x107842,_0x2de3cb){var _0x36bc50=_0x1a8446,_0x26f049=this,_0x20fa29=[];_0x26f049[_0x36bc50('0x1b14')]={'format':_0x36bc50('0xa0b'),'unit':_0x36bc50('0x116c'),'trim':![]},_0x26f049[_0x36bc50('0x4b8')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x36bc50('0x18be'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x26f049[_0x36bc50('0xf2c')]=_0x2de3cb?_0x51538b()[_0x36bc50('0x184a')](_0x2de3cb[_0x36bc50('0x580')]?_0x2de3cb[_0x36bc50('0x580')]:[],'id'):{},_0x26f049[_0x36bc50('0x1dcc')]=_0x36d1d2,_0x26f049[_0x36bc50('0x1b6c')]=_0x2e5c98,_0x467d85['on']('faxInteraction:save',_0x26f049[_0x36bc50('0x1dcc')]),_0x467d85['on'](_0x36bc50('0x23fb'),_0x26f049['onUpdateFaxInteraction']),_0x104189();function _0x4d6574(_0x4661a7,_0x425989){var _0x804554=_0x36bc50;!_0x4661a7[_0x804554('0x1cbd')]&&!_0x4661a7['UserId']&&_0x425989&&(_0x26f049[_0x804554('0x4b8')]['waiting']+=0x1),!_0x4661a7[_0x804554('0x1cbd')]&&_0x4661a7['UserId']&&!_0x51538b()[_0x804554('0x13d6')](_0x20fa29,_0x4661a7['id'])&&(_0x26f049['inbound']['talking']+=0x1,_0x20fa29[_0x804554('0x1599')](_0x4661a7['id']),!_0x425989&&_0x26f049[_0x804554('0x4b8')][_0x804554('0xd3d')]&&(_0x26f049[_0x804554('0x4b8')][_0x804554('0xd3d')]-=0x1)),_0x4661a7['closed']&&_0x4661a7[_0x804554('0x1037')]&&(_0x26f049[_0x804554('0x4b8')]['sumBillable']+=_0x420d43()(_0x4661a7[_0x804554('0x26ed')])[_0x804554('0x72c')](_0x420d43()(_0x4661a7[_0x804554('0x19bc')]),_0x26f049[_0x804554('0x1b14')][_0x804554('0x11c3')]),_0x26f049[_0x804554('0x4b8')][_0x804554('0x1ac0')]+=_0x420d43()(_0x4661a7[_0x804554('0x19bc')])[_0x804554('0x72c')](_0x420d43()(_0x4661a7['createdAt']),_0x26f049['config'][_0x804554('0x11c3')]),_0x26f049[_0x804554('0x4b8')][_0x804554('0x2717')]+=0x1,!_0x425989&&_0x26f049[_0x804554('0x4b8')][_0x804554('0xf01')]&&(_0x26f049[_0x804554('0x4b8')][_0x804554('0xf01')]-=0x1)),_0x4661a7[_0x804554('0x1cbd')]&&!_0x4661a7[_0x804554('0x1037')]&&(_0x26f049[_0x804554('0x4b8')][_0x804554('0x22f4')]+=0x1,!_0x425989&&_0x26f049[_0x804554('0x4b8')][_0x804554('0xd3d')]&&(_0x26f049[_0x804554('0x4b8')][_0x804554('0xd3d')]-=0x1)),_0x425989&&(_0x26f049['inbound']['total']+=0x1);}function _0x129063(){var _0x44e8f6=_0x36bc50;_0x26f049['inbound'][_0x44e8f6('0x1624')]=Math['round']((_0x26f049[_0x44e8f6('0x4b8')]['abandoned']+_0x26f049[_0x44e8f6('0x4b8')][_0x44e8f6('0x22f4')])/(_0x26f049['inbound'][_0x44e8f6('0x1d71')]-_0x26f049[_0x44e8f6('0x4b8')]['talking']-_0x26f049['inbound'][_0x44e8f6('0xd3d')])*0x64,-0x2),_0x26f049[_0x44e8f6('0x4b8')][_0x44e8f6('0x2113')]=Math[_0x44e8f6('0x1566')](_0x26f049[_0x44e8f6('0x4b8')][_0x44e8f6('0x2717')]/(_0x26f049[_0x44e8f6('0x4b8')][_0x44e8f6('0x1d71')]-_0x26f049[_0x44e8f6('0x4b8')][_0x44e8f6('0xf01')]-_0x26f049[_0x44e8f6('0x4b8')][_0x44e8f6('0xd3d')])*0x64,-0x2),_0x26f049[_0x44e8f6('0x4b8')][_0x44e8f6('0xfef')]=_0x420d43()[_0x44e8f6('0xdee')](Math[_0x44e8f6('0x1566')](_0x26f049[_0x44e8f6('0x4b8')]['sumHoldTime']/_0x26f049[_0x44e8f6('0x4b8')]['answered']),_0x26f049[_0x44e8f6('0x1b14')][_0x44e8f6('0x11c3')])[_0x44e8f6('0x1f27')](_0x26f049[_0x44e8f6('0x1b14')][_0x44e8f6('0x1f27')],_0x26f049['config']),_0x26f049[_0x44e8f6('0x4b8')][_0x44e8f6('0x1aac')]=_0x420d43()['duration'](Math[_0x44e8f6('0x1566')](_0x26f049['inbound'][_0x44e8f6('0xa1c')]/_0x26f049[_0x44e8f6('0x4b8')]['answered']),_0x26f049[_0x44e8f6('0x1b14')][_0x44e8f6('0x11c3')])[_0x44e8f6('0x1f27')](_0x26f049[_0x44e8f6('0x1b14')]['format'],_0x26f049[_0x44e8f6('0x1b14')]);}function _0x104189(){var _0x11cae9=_0x36bc50;if(Object[_0x11cae9('0x9f2')](_0x26f049[_0x11cae9('0xf2c')])[_0x11cae9('0x2587')]>0x0)for(var _0x39c7ce=0x0;_0x39c7ce<_0x107842[_0x11cae9('0x580')]['length'];_0x39c7ce+=0x1){if(_0x48d2cb(_0x107842[_0x11cae9('0x580')][_0x39c7ce])){var _0x34e8e8=_0x107842[_0x11cae9('0x580')][_0x39c7ce];_0x4d6574(_0x34e8e8,!![]),_0x129063();}}}function _0x48d2cb(_0x3bb6e6){var _0x39850=_0x36bc50;if(_0x51538b()[_0x39850('0x2c2')](_0x26f049['faxAccounts'],{'id':_0x51538b()[_0x39850('0x228e')](_0x3bb6e6[_0x39850('0x16a8')])}))return!![];return![];}function _0x4d1f68(_0x2d5f4b){var _0xb2701c=_0x36bc50,_0x29df02=_0x420d43()()[_0xb2701c('0x15db')](0x0,!![])[_0xb2701c('0x206d')]('day'),_0xa4e0c2=_0x420d43()()[_0xb2701c('0x15db')](0x0,!![])[_0xb2701c('0x173a')](_0xb2701c('0xa7c'));return _0x420d43()(_0x2d5f4b)[_0xb2701c('0x15db')](0x0,!![])[_0xb2701c('0xbdd')](_0x29df02,_0xa4e0c2);}function _0x36d1d2(_0x286b38){var _0x141c01=_0x36bc50;_0x48d2cb(_0x286b38)&&_0x4d1f68(_0x286b38[_0x141c01('0x24a1')])&&(_0x4d6574(_0x286b38,!![]),_0x129063());}function _0x2e5c98(_0x4dc4d8){var _0x1ef18a=_0x36bc50;_0x48d2cb(_0x4dc4d8)&&_0x4d1f68(_0x4dc4d8[_0x1ef18a('0x24a1')])&&(_0x4d6574(_0x4dc4d8,![]),_0x129063());}_0x2a359b['$on'](_0x36bc50('0x12d0'),function(){var _0x2e86ff=_0x36bc50;_0x467d85[_0x2e86ff('0x2629')](_0x2e86ff('0xe66')),_0x467d85[_0x2e86ff('0x2629')]('faxInteraction:update');});}const _0x2efc26=_0x41bcc7;_0x1d0a7c['$inject']=[_0x1a8446('0x51'),'socket','mailInteractions',_0x1a8446('0x172d')];function _0x1d0a7c(_0x1e488e,_0x21d6a7,_0x2ff232,_0x334d26){var _0x5d5a16=_0x1a8446,_0x4ac7b3=this,_0x34e11b=[];_0x4ac7b3[_0x5d5a16('0x1b14')]={'format':_0x5d5a16('0xa0b'),'unit':_0x5d5a16('0x116c'),'trim':![]},_0x4ac7b3['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x5d5a16('0x18be'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x4ac7b3[_0x5d5a16('0x172d')]=_0x334d26?_0x51538b()['keyBy'](_0x334d26[_0x5d5a16('0x580')]?_0x334d26[_0x5d5a16('0x580')]:[],'id'):{},_0x4ac7b3[_0x5d5a16('0xaa9')]=_0x462bcb,_0x4ac7b3[_0x5d5a16('0xfb5')]=_0x28ffb5,_0x21d6a7['on']('mailInteraction:save',_0x4ac7b3[_0x5d5a16('0xaa9')]),_0x21d6a7['on']('mailInteraction:update',_0x4ac7b3['onUpdateMailInteraction']),_0x2076f4();function _0x3d8ef3(_0x9343f1,_0x21ed3e){var _0x19775f=_0x5d5a16;!_0x9343f1[_0x19775f('0x1cbd')]&&!_0x9343f1['UserId']&&_0x21ed3e&&(_0x4ac7b3['inbound']['waiting']+=0x1),!_0x9343f1[_0x19775f('0x1cbd')]&&_0x9343f1[_0x19775f('0x1037')]&&!_0x51538b()[_0x19775f('0x13d6')](_0x34e11b,_0x9343f1['id'])&&(_0x4ac7b3[_0x19775f('0x4b8')][_0x19775f('0xf01')]+=0x1,_0x34e11b['push'](_0x9343f1['id']),!_0x21ed3e&&_0x4ac7b3[_0x19775f('0x4b8')]['waiting']&&(_0x4ac7b3[_0x19775f('0x4b8')]['waiting']-=0x1)),_0x9343f1[_0x19775f('0x1cbd')]&&_0x9343f1[_0x19775f('0x1037')]&&(_0x4ac7b3['inbound'][_0x19775f('0xa1c')]+=_0x420d43()(_0x9343f1[_0x19775f('0x26ed')])[_0x19775f('0x72c')](_0x420d43()(_0x9343f1['read1stAt']),_0x4ac7b3[_0x19775f('0x1b14')]['unit']),_0x4ac7b3[_0x19775f('0x4b8')][_0x19775f('0x1ac0')]+=_0x420d43()(_0x9343f1[_0x19775f('0x19bc')])['diff'](_0x420d43()(_0x9343f1[_0x19775f('0x24a1')]),_0x4ac7b3[_0x19775f('0x1b14')][_0x19775f('0x11c3')]),_0x4ac7b3[_0x19775f('0x4b8')][_0x19775f('0x2717')]+=0x1,!_0x21ed3e&&_0x4ac7b3['inbound'][_0x19775f('0xf01')]&&(_0x4ac7b3[_0x19775f('0x4b8')][_0x19775f('0xf01')]-=0x1)),_0x9343f1[_0x19775f('0x1cbd')]&&!_0x9343f1[_0x19775f('0x1037')]&&(_0x4ac7b3[_0x19775f('0x4b8')][_0x19775f('0x22f4')]+=0x1,!_0x21ed3e&&_0x4ac7b3['inbound']['waiting']&&(_0x4ac7b3[_0x19775f('0x4b8')][_0x19775f('0xd3d')]-=0x1)),_0x21ed3e&&(_0x4ac7b3['inbound'][_0x19775f('0x1d71')]+=0x1);}function _0x44809a(){var _0x4520d8=_0x5d5a16;_0x4ac7b3['inbound'][_0x4520d8('0x1624')]=Math['round']((_0x4ac7b3['inbound'][_0x4520d8('0x1f60')]+_0x4ac7b3[_0x4520d8('0x4b8')]['unmanaged'])/(_0x4ac7b3['inbound'][_0x4520d8('0x1d71')]-_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0xf01')]-_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0xd3d')])*0x64,-0x2),_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0x2113')]=Math[_0x4520d8('0x1566')](_0x4ac7b3[_0x4520d8('0x4b8')]['answered']/(_0x4ac7b3['inbound'][_0x4520d8('0x1d71')]-_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0xf01')]-_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0xd3d')])*0x64,-0x2),_0x4ac7b3['inbound'][_0x4520d8('0xfef')]=_0x420d43()[_0x4520d8('0xdee')](Math[_0x4520d8('0x1566')](_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0x1ac0')]/_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0x2717')]),_0x4ac7b3[_0x4520d8('0x1b14')][_0x4520d8('0x11c3')])[_0x4520d8('0x1f27')](_0x4ac7b3['config'][_0x4520d8('0x1f27')],_0x4ac7b3['config']),_0x4ac7b3[_0x4520d8('0x4b8')]['avgTalkTime']=_0x420d43()[_0x4520d8('0xdee')](Math['round'](_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0xa1c')]/_0x4ac7b3[_0x4520d8('0x4b8')][_0x4520d8('0x2717')]),_0x4ac7b3[_0x4520d8('0x1b14')][_0x4520d8('0x11c3')])['format'](_0x4ac7b3[_0x4520d8('0x1b14')][_0x4520d8('0x1f27')],_0x4ac7b3['config']);}function _0x2076f4(){var _0x5dbd0e=_0x5d5a16;if(Object[_0x5dbd0e('0x9f2')](_0x4ac7b3[_0x5dbd0e('0x172d')])['length']>0x0)for(var _0x42d8d5=0x0;_0x42d8d5<_0x2ff232['rows'][_0x5dbd0e('0x2587')];_0x42d8d5+=0x1){if(_0x178a95(_0x2ff232[_0x5dbd0e('0x580')][_0x42d8d5])){var _0xf7fbf2=_0x2ff232[_0x5dbd0e('0x580')][_0x42d8d5];_0x3d8ef3(_0xf7fbf2,!![]),_0x44809a();}}}function _0x178a95(_0x453073){var _0xb7af5e=_0x5d5a16;if(_0x51538b()[_0xb7af5e('0x2c2')](_0x4ac7b3[_0xb7af5e('0x172d')],{'id':_0x51538b()[_0xb7af5e('0x228e')](_0x453073[_0xb7af5e('0x2307')])}))return!![];return![];}function _0x59722d(_0x1ec941){var _0x1c8157=_0x5d5a16,_0x2994fd=_0x420d43()()[_0x1c8157('0x15db')](0x0,!![])[_0x1c8157('0x206d')](_0x1c8157('0xa7c')),_0x390184=_0x420d43()()[_0x1c8157('0x15db')](0x0,!![])['endOf']('day');return _0x420d43()(_0x1ec941)[_0x1c8157('0x15db')](0x0,!![])['isBetween'](_0x2994fd,_0x390184);}function _0x462bcb(_0x276c95){_0x178a95(_0x276c95)&&_0x59722d(_0x276c95['createdAt'])&&(_0x3d8ef3(_0x276c95,!![]),_0x44809a());}function _0x28ffb5(_0x2b4913){var _0x56e141=_0x5d5a16;_0x178a95(_0x2b4913)&&_0x59722d(_0x2b4913[_0x56e141('0x24a1')])&&(_0x3d8ef3(_0x2b4913,![]),_0x44809a());}_0x1e488e[_0x5d5a16('0xc75')](_0x5d5a16('0x12d0'),function(){var _0x1959f4=_0x5d5a16;_0x21d6a7[_0x1959f4('0x2629')]('mailInteraction:save'),_0x21d6a7[_0x1959f4('0x2629')]('mailInteraction:update');});}const _0x4d8a17=_0x1d0a7c;_0x44a35a['$inject']=[_0x1a8446('0x51'),_0x1a8446('0xe74'),_0x1a8446('0x1893'),_0x1a8446('0x23f0')];function _0x44a35a(_0x5a5611,_0x2fc8e4,_0x77c90a,_0x348d41){var _0x5f2de4=_0x1a8446,_0x2193c7=this,_0x1326a3=[];_0x2193c7[_0x5f2de4('0x1b14')]={'format':_0x5f2de4('0xa0b'),'unit':_0x5f2de4('0x116c'),'trim':![]},_0x2193c7[_0x5f2de4('0x4b8')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x5f2de4('0x18be'),'avgTalkTime':_0x5f2de4('0x18be'),'answerRate':0x0,'abandonRate':0x0},_0x2193c7[_0x5f2de4('0x23f0')]=_0x348d41?_0x51538b()['keyBy'](_0x348d41['rows']?_0x348d41[_0x5f2de4('0x580')]:[],'id'):{},_0x2193c7[_0x5f2de4('0x26db')]=_0x49c0bc,_0x2193c7[_0x5f2de4('0x13d5')]=_0x382717,_0x2fc8e4['on'](_0x5f2de4('0x27a6'),_0x2193c7[_0x5f2de4('0x26db')]),_0x2fc8e4['on'](_0x5f2de4('0x1e6b'),_0x2193c7[_0x5f2de4('0x13d5')]),_0x1b7aa0();function _0x2bf11d(_0x1d1f2e,_0x1f058d){var _0x262155=_0x5f2de4;!_0x1d1f2e[_0x262155('0x1cbd')]&&!_0x1d1f2e['UserId']&&_0x1f058d&&(_0x2193c7[_0x262155('0x4b8')][_0x262155('0xd3d')]+=0x1),!_0x1d1f2e['closed']&&_0x1d1f2e['UserId']&&!_0x51538b()[_0x262155('0x13d6')](_0x1326a3,_0x1d1f2e['id'])&&(_0x2193c7[_0x262155('0x4b8')]['talking']+=0x1,_0x1326a3[_0x262155('0x1599')](_0x1d1f2e['id']),!_0x1f058d&&_0x2193c7[_0x262155('0x4b8')][_0x262155('0xd3d')]&&(_0x2193c7['inbound']['waiting']-=0x1)),_0x1d1f2e[_0x262155('0x1cbd')]&&_0x1d1f2e[_0x262155('0x1037')]&&(_0x2193c7['inbound'][_0x262155('0xa1c')]+=_0x420d43()(_0x1d1f2e[_0x262155('0x26ed')])[_0x262155('0x72c')](_0x420d43()(_0x1d1f2e[_0x262155('0x19bc')]),_0x2193c7[_0x262155('0x1b14')][_0x262155('0x11c3')]),_0x2193c7[_0x262155('0x4b8')][_0x262155('0x1ac0')]+=_0x420d43()(_0x1d1f2e[_0x262155('0x19bc')])[_0x262155('0x72c')](_0x420d43()(_0x1d1f2e[_0x262155('0x24a1')]),_0x2193c7['config'][_0x262155('0x11c3')]),_0x2193c7[_0x262155('0x4b8')][_0x262155('0x2717')]+=0x1,!_0x1f058d&&_0x2193c7[_0x262155('0x4b8')][_0x262155('0xf01')]&&(_0x2193c7[_0x262155('0x4b8')][_0x262155('0xf01')]-=0x1)),_0x1d1f2e[_0x262155('0x1cbd')]&&!_0x1d1f2e[_0x262155('0x1037')]&&(_0x2193c7[_0x262155('0x4b8')][_0x262155('0x22f4')]+=0x1,!_0x1f058d&&_0x2193c7[_0x262155('0x4b8')][_0x262155('0xd3d')]&&(_0x2193c7[_0x262155('0x4b8')][_0x262155('0xd3d')]-=0x1)),_0x1f058d&&(_0x2193c7['inbound'][_0x262155('0x1d71')]+=0x1);}function _0x2733a6(){var _0x5513a5=_0x5f2de4;_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0x1624')]=Math[_0x5513a5('0x1566')]((_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0x1f60')]+_0x2193c7[_0x5513a5('0x4b8')]['unmanaged'])/(_0x2193c7['inbound'][_0x5513a5('0x1d71')]-_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0xf01')]-_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0xd3d')])*0x64,-0x2),_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0x2113')]=Math['round'](_0x2193c7[_0x5513a5('0x4b8')]['answered']/(_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0x1d71')]-_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0xf01')]-_0x2193c7[_0x5513a5('0x4b8')]['waiting'])*0x64,-0x2),_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0xfef')]=_0x420d43()[_0x5513a5('0xdee')](Math[_0x5513a5('0x1566')](_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0x1ac0')]/_0x2193c7['inbound'][_0x5513a5('0x2717')]),_0x2193c7[_0x5513a5('0x1b14')]['unit'])[_0x5513a5('0x1f27')](_0x2193c7[_0x5513a5('0x1b14')]['format'],_0x2193c7[_0x5513a5('0x1b14')]),_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0x1aac')]=_0x420d43()[_0x5513a5('0xdee')](Math[_0x5513a5('0x1566')](_0x2193c7[_0x5513a5('0x4b8')][_0x5513a5('0xa1c')]/_0x2193c7['inbound'][_0x5513a5('0x2717')]),_0x2193c7[_0x5513a5('0x1b14')][_0x5513a5('0x11c3')])[_0x5513a5('0x1f27')](_0x2193c7[_0x5513a5('0x1b14')]['format'],_0x2193c7[_0x5513a5('0x1b14')]);}function _0x1b7aa0(){var _0x509538=_0x5f2de4;if(Object['keys'](_0x2193c7['openchannelAccounts'])[_0x509538('0x2587')]>0x0)for(var _0xdb717d=0x0;_0xdb717d<_0x77c90a['rows'][_0x509538('0x2587')];_0xdb717d+=0x1){if(_0x234382(_0x77c90a[_0x509538('0x580')][_0xdb717d])){var _0x37984d=_0x77c90a['rows'][_0xdb717d];_0x2bf11d(_0x37984d,!![]),_0x2733a6();}}}function _0x234382(_0x501ed0){var _0x4101df=_0x5f2de4;if(_0x51538b()[_0x4101df('0x2c2')](_0x2193c7[_0x4101df('0x23f0')],{'id':_0x51538b()['toNumber'](_0x501ed0[_0x4101df('0x62c')])}))return!![];return![];}function _0x5723e2(_0x213259){var _0x33b4e1=_0x5f2de4,_0x1a5aae=_0x420d43()()[_0x33b4e1('0x15db')](0x0,!![])[_0x33b4e1('0x206d')](_0x33b4e1('0xa7c')),_0x1e36d7=_0x420d43()()[_0x33b4e1('0x15db')](0x0,!![])['endOf'](_0x33b4e1('0xa7c'));return _0x420d43()(_0x213259)[_0x33b4e1('0x15db')](0x0,!![])[_0x33b4e1('0xbdd')](_0x1a5aae,_0x1e36d7);}function _0x49c0bc(_0x110c75){_0x234382(_0x110c75)&&_0x5723e2(_0x110c75['createdAt'])&&(_0x2bf11d(_0x110c75,!![]),_0x2733a6());}function _0x382717(_0x2edba0){var _0x427414=_0x5f2de4;_0x234382(_0x2edba0)&&_0x5723e2(_0x2edba0[_0x427414('0x24a1')])&&(_0x2bf11d(_0x2edba0,![]),_0x2733a6());}_0x5a5611[_0x5f2de4('0xc75')](_0x5f2de4('0x12d0'),function(){var _0x3ebda3=_0x5f2de4;_0x2fc8e4['removeAllListeners'](_0x3ebda3('0x27a6')),_0x2fc8e4['removeAllListeners']('openchannelInteraction:update');});}const _0x3b813f=_0x44a35a;_0x3aa603['$inject']=[_0x1a8446('0x51'),_0x1a8446('0xe74'),_0x1a8446('0x1db4'),_0x1a8446('0x18a1')];function _0x3aa603(_0x51cc00,_0x547e23,_0x207404,_0x5af78a){var _0x3c2598=_0x1a8446,_0x120b46=this,_0x487f49=[];_0x120b46[_0x3c2598('0x1b14')]={'format':_0x3c2598('0xa0b'),'unit':_0x3c2598('0x116c'),'trim':![]},_0x120b46[_0x3c2598('0x4b8')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x3c2598('0x18be'),'avgTalkTime':_0x3c2598('0x18be'),'answerRate':0x0,'abandonRate':0x0},_0x120b46[_0x3c2598('0x18a1')]=_0x5af78a?_0x51538b()[_0x3c2598('0x184a')](_0x5af78a[_0x3c2598('0x580')]?_0x5af78a['rows']:[],'id'):{},_0x120b46['onSaveSmsInteraction']=_0x5806fb,_0x120b46[_0x3c2598('0x2771')]=_0x4ba561,_0x547e23['on'](_0x3c2598('0x1f6e'),_0x120b46[_0x3c2598('0x1f64')]),_0x547e23['on'](_0x3c2598('0x317'),_0x120b46[_0x3c2598('0x2771')]),_0x3d3a0e();function _0x305612(_0x3bbe92,_0x44942b){var _0x5e2585=_0x3c2598;!_0x3bbe92[_0x5e2585('0x1cbd')]&&!_0x3bbe92['UserId']&&_0x44942b&&(_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0xd3d')]+=0x1),!_0x3bbe92[_0x5e2585('0x1cbd')]&&_0x3bbe92[_0x5e2585('0x1037')]&&!_0x51538b()[_0x5e2585('0x13d6')](_0x487f49,_0x3bbe92['id'])&&(_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0xf01')]+=0x1,_0x487f49[_0x5e2585('0x1599')](_0x3bbe92['id']),!_0x44942b&&_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0xd3d')]&&(_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0xd3d')]-=0x1)),_0x3bbe92['closed']&&_0x3bbe92[_0x5e2585('0x1037')]&&(_0x120b46[_0x5e2585('0x4b8')]['sumBillable']+=_0x420d43()(_0x3bbe92['closedAt'])[_0x5e2585('0x72c')](_0x420d43()(_0x3bbe92['read1stAt']),_0x120b46[_0x5e2585('0x1b14')][_0x5e2585('0x11c3')]),_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0x1ac0')]+=_0x420d43()(_0x3bbe92['read1stAt'])['diff'](_0x420d43()(_0x3bbe92['createdAt']),_0x120b46[_0x5e2585('0x1b14')][_0x5e2585('0x11c3')]),_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0x2717')]+=0x1,!_0x44942b&&_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0xf01')]&&(_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0xf01')]-=0x1)),_0x3bbe92['closed']&&!_0x3bbe92['UserId']&&(_0x120b46['inbound'][_0x5e2585('0x22f4')]+=0x1,!_0x44942b&&_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0xd3d')]&&(_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0xd3d')]-=0x1)),_0x44942b&&(_0x120b46[_0x5e2585('0x4b8')][_0x5e2585('0x1d71')]+=0x1);}function _0x5d0a2a(){var _0x2a2514=_0x3c2598;_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0x1624')]=Math['round']((_0x120b46[_0x2a2514('0x4b8')]['abandoned']+_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0x22f4')])/(_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0x1d71')]-_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0xf01')]-_0x120b46[_0x2a2514('0x4b8')]['waiting'])*0x64,-0x2),_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0x2113')]=Math[_0x2a2514('0x1566')](_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0x2717')]/(_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0x1d71')]-_0x120b46['inbound'][_0x2a2514('0xf01')]-_0x120b46['inbound'][_0x2a2514('0xd3d')])*0x64,-0x2),_0x120b46[_0x2a2514('0x4b8')]['avgHoldTime']=_0x420d43()[_0x2a2514('0xdee')](Math[_0x2a2514('0x1566')](_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0x1ac0')]/_0x120b46[_0x2a2514('0x4b8')]['answered']),_0x120b46[_0x2a2514('0x1b14')][_0x2a2514('0x11c3')])['format'](_0x120b46[_0x2a2514('0x1b14')][_0x2a2514('0x1f27')],_0x120b46[_0x2a2514('0x1b14')]),_0x120b46[_0x2a2514('0x4b8')][_0x2a2514('0x1aac')]=_0x420d43()[_0x2a2514('0xdee')](Math[_0x2a2514('0x1566')](_0x120b46[_0x2a2514('0x4b8')]['sumBillable']/_0x120b46[_0x2a2514('0x4b8')]['answered']),_0x120b46[_0x2a2514('0x1b14')][_0x2a2514('0x11c3')])[_0x2a2514('0x1f27')](_0x120b46[_0x2a2514('0x1b14')][_0x2a2514('0x1f27')],_0x120b46['config']);}function _0x3d3a0e(){var _0x254504=_0x3c2598;if(Object['keys'](_0x120b46[_0x254504('0x18a1')])[_0x254504('0x2587')]>0x0)for(var _0x3db8e9=0x0;_0x3db8e9<_0x207404[_0x254504('0x580')][_0x254504('0x2587')];_0x3db8e9+=0x1){if(_0x272f77(_0x207404[_0x254504('0x580')][_0x3db8e9])){var _0x1d4c8b=_0x207404[_0x254504('0x580')][_0x3db8e9];_0x305612(_0x1d4c8b,!![]),_0x5d0a2a();}}}function _0x272f77(_0x2323f5){var _0x696dff=_0x3c2598;if(_0x51538b()[_0x696dff('0x2c2')](_0x120b46[_0x696dff('0x18a1')],{'id':_0x51538b()[_0x696dff('0x228e')](_0x2323f5[_0x696dff('0xaa0')])}))return!![];return![];}function _0x365989(_0x1dac8c){var _0x559997=_0x3c2598,_0x4ff9bc=_0x420d43()()['utcOffset'](0x0,!![])['startOf'](_0x559997('0xa7c')),_0x30b924=_0x420d43()()[_0x559997('0x15db')](0x0,!![])[_0x559997('0x173a')](_0x559997('0xa7c'));return _0x420d43()(_0x1dac8c)['utcOffset'](0x0,!![])[_0x559997('0xbdd')](_0x4ff9bc,_0x30b924);}function _0x5806fb(_0x39077f){_0x272f77(_0x39077f)&&_0x365989(_0x39077f['createdAt'])&&(_0x305612(_0x39077f,!![]),_0x5d0a2a());}function _0x4ba561(_0x45e0b9){_0x272f77(_0x45e0b9)&&_0x365989(_0x45e0b9['createdAt'])&&(_0x305612(_0x45e0b9,![]),_0x5d0a2a());}_0x51cc00[_0x3c2598('0xc75')](_0x3c2598('0x12d0'),function(){var _0x406fbe=_0x3c2598;_0x547e23[_0x406fbe('0x2629')](_0x406fbe('0x1f6e')),_0x547e23[_0x406fbe('0x2629')]('smsInteraction:update');});}const _0x5b20d5=_0x3aa603;_0x43a323[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x1dfd'),_0x1a8446('0x1202')],_0x249601['$inject']=['$q'],_0x36b033[_0x1a8446('0x1e33')]=['$q'];function _0x36b033(_0x494076){var _0x2f1c70=[],_0x288b47=function _0x17d416(){var _0x5b5f9b=a0_0x1149,_0x303415=_0x2f1c70[0x0],_0x1dbcd7={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x5b5f9b('0x18be'),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x51538b()['forIn'](_0x303415[_0x5b5f9b('0x4d7')],function(_0x4be6d7,_0x59eb3c){var _0x293c92=_0x5b5f9b;_0x303415[_0x293c92('0x1f2f')][_0x59eb3c]&&(_0x1dbcd7[_0x293c92('0xd3d')]+=_0x303415['rpcQueues'][_0x59eb3c][_0x293c92('0xd3d')]||0x0,_0x1dbcd7['talking']+=(_0x303415[_0x293c92('0x1f2f')][_0x59eb3c][_0x293c92('0xf01')]||0x0)+(_0x303415[_0x293c92('0x1f2f')][_0x59eb3c][_0x293c92('0x1a56')]||0x0),_0x1dbcd7[_0x293c92('0x2717')]+=_0x303415[_0x293c92('0x1f2f')][_0x59eb3c]['answered']||0x0,_0x1dbcd7[_0x293c92('0x1f60')]+=_0x303415[_0x293c92('0x1f2f')][_0x59eb3c][_0x293c92('0x1f60')]||0x0,_0x1dbcd7[_0x293c92('0x1ac0')]+=_0x303415[_0x293c92('0x1f2f')][_0x59eb3c][_0x293c92('0x1ac0')]||0x0,_0x1dbcd7[_0x293c92('0xa1c')]+=_0x303415[_0x293c92('0x1f2f')][_0x59eb3c][_0x293c92('0xa1c')]||0x0,_0x1dbcd7[_0x293c92('0x1d71')]+=_0x303415[_0x293c92('0x1f2f')][_0x59eb3c]['total']||0x0,_0x1dbcd7[_0x293c92('0x301')]+=_0x303415[_0x293c92('0x1f2f')][_0x59eb3c][_0x293c92('0x301')]||0x0,_0x1dbcd7[_0x293c92('0x2337')]+=_0x303415[_0x293c92('0x1f2f')][_0x59eb3c]['outboundDropCallsDayCallersExit']||0x0,_0x1dbcd7[_0x293c92('0x213c')]+=_0x303415[_0x293c92('0x1f2f')][_0x59eb3c][_0x293c92('0x213c')]||0x0);});var _0x530655=_0x1dbcd7[_0x5b5f9b('0x1d71')]-_0x1dbcd7[_0x5b5f9b('0x2717')]-_0x1dbcd7[_0x5b5f9b('0x1f60')];_0x1dbcd7[_0x5b5f9b('0x22f4')]=_0x530655>0x0?_0x530655:0x0,_0x1dbcd7[_0x5b5f9b('0xfef')]=Math['round'](_0x1dbcd7[_0x5b5f9b('0x1d71')]>0x0?_0x1dbcd7['sumHoldTime']/_0x1dbcd7[_0x5b5f9b('0x1d71')]:0x0),_0x1dbcd7[_0x5b5f9b('0xfef')]=new Date(_0x1dbcd7[_0x5b5f9b('0xfef')]*0x3e8)['toISOString']()[_0x5b5f9b('0x1ec0')](0xb,0x8),_0x1dbcd7[_0x5b5f9b('0x1aac')]=Math['round'](_0x1dbcd7['answered']>0x0?_0x1dbcd7['sumBillable']/_0x1dbcd7[_0x5b5f9b('0x2717')]:0x0),_0x1dbcd7[_0x5b5f9b('0x1aac')]=new Date(_0x1dbcd7[_0x5b5f9b('0x1aac')]*0x3e8)[_0x5b5f9b('0x72b')]()[_0x5b5f9b('0x1ec0')](0xb,0x8),_0x1dbcd7[_0x5b5f9b('0x2113')]=Math[_0x5b5f9b('0x1566')]((_0x1dbcd7['total']>0x0?_0x1dbcd7[_0x5b5f9b('0x2717')]/_0x1dbcd7[_0x5b5f9b('0x1d71')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x5b5f9b('0x114a')](0xa,0x1),_0x1dbcd7[_0x5b5f9b('0x1624')]=Math[_0x5b5f9b('0x1566')]((_0x1dbcd7[_0x5b5f9b('0x1d71')]>0x0?_0x1dbcd7[_0x5b5f9b('0x1f60')]/_0x1dbcd7[_0x5b5f9b('0x1d71')]*0x64:0x0)*Math[_0x5b5f9b('0x114a')](0xa,0x1))/Math[_0x5b5f9b('0x114a')](0xa,0x1),_0x1dbcd7['outboundDropRate']=Math[_0x5b5f9b('0x1566')]((_0x1dbcd7['total']>0x0?_0x1dbcd7[_0x5b5f9b('0x213c')]/_0x1dbcd7[_0x5b5f9b('0x1d71')]*0x64:0x0)*Math[_0x5b5f9b('0x114a')](0xa,0x1))/Math['pow'](0xa,0x1),_0x1dbcd7[_0x5b5f9b('0x8c1')]=Math[_0x5b5f9b('0x1566')]((_0x1dbcd7[_0x5b5f9b('0x1d71')]>0x0?_0x1dbcd7[_0x5b5f9b('0x2337')]/_0x1dbcd7[_0x5b5f9b('0x1d71')]*0x64:0x0)*Math[_0x5b5f9b('0x114a')](0xa,0x1))/Math[_0x5b5f9b('0x114a')](0xa,0x1),_0x1dbcd7[_0x5b5f9b('0xc02')]=0x64-_0x1dbcd7[_0x5b5f9b('0x908')]-_0x1dbcd7[_0x5b5f9b('0x8c1')]>0x0&&(_0x1dbcd7[_0x5b5f9b('0x1d71')]||0x0>0x0)?0x64-_0x1dbcd7[_0x5b5f9b('0x908')]-_0x1dbcd7[_0x5b5f9b('0x8c1')]:0x0,_0x2f1c70[_0x5b5f9b('0x21c4')](),_0x303415['defer'][_0x5b5f9b('0x149f')](_0x1dbcd7),_0x2f1c70[_0x5b5f9b('0x2587')]>0x0&&_0x17d416();};return function(_0x3bac88){var _0x2e8343=a0_0x1149,_0x154f6e=_0x494076[_0x2e8343('0x213b')]();return _0x2f1c70[_0x2e8343('0x1599')]({'queues':_0x3bac88[_0x2e8343('0x4d7')],'rpcQueues':_0x3bac88['rpcQueues'],'defer':_0x154f6e}),_0x2f1c70[_0x2e8343('0x2587')]===0x1&&_0x288b47(),_0x154f6e[_0x2e8343('0x159a')];};}function _0x249601(_0x3cf6f9){var _0x4ef2d3=[],_0x5499ed=function _0x25b675(){var _0x49aab2=a0_0x1149,_0x141f38=_0x4ef2d3[0x0],_0x1d0402={'originated':0x0,'limitCalls':0x0};_0x51538b()[_0x49aab2('0x143e')](_0x141f38[_0x49aab2('0x1436')],function(_0x52c42b,_0x522cc5){var _0x5376cf=_0x49aab2;_0x141f38[_0x5376cf('0x1436')][_0x522cc5]&&(_0x1d0402[_0x5376cf('0x301')]+=_0x141f38['rpcCampaigns'][_0x522cc5][_0x5376cf('0x301')]||0x0,_0x1d0402['limitCalls']+=_0x141f38[_0x5376cf('0x1436')][_0x522cc5][_0x5376cf('0x1bdb')]||0x0);}),_0x4ef2d3[_0x49aab2('0x21c4')](),_0x141f38[_0x49aab2('0x213b')][_0x49aab2('0x149f')](_0x1d0402),_0x4ef2d3[_0x49aab2('0x2587')]>0x0&&_0x25b675();};return function(_0xe98c25){var _0x224074=a0_0x1149,_0x33d555=_0x3cf6f9[_0x224074('0x213b')]();return _0x4ef2d3[_0x224074('0x1599')]({'rpcCampaigns':_0xe98c25[_0x224074('0x1436')],'defer':_0x33d555}),_0x4ef2d3[_0x224074('0x2587')]===0x1&&_0x5499ed(),_0x33d555[_0x224074('0x159a')];};}function _0x181421(){return function(_0x15eda4){var _0x3b204b=a0_0x1149;return new Date(_0x15eda4*0x3e8)[_0x3b204b('0x72b')]()[_0x3b204b('0x1ec0')](0xb,0x8);};}function _0x43a323(_0x189a0b,_0x3c4829,_0x43c54f){var _0x5c9fd3=_0x1a8446,_0x2a00b7=this;_0x2a00b7[_0x5c9fd3('0x1202')]=_0x43c54f,_0x2a00b7[_0x5c9fd3('0x2318')]=_0x4f4ae3;function _0x4f4ae3(){var _0x2769f2=_0x5c9fd3;_0x2a00b7[_0x2769f2('0x97e')]=_0x3c4829['hasRole'](_0x2769f2('0x272b'))?_0x3c4829[_0x2769f2('0x69e')](0x65):!![];if(_0x2a00b7[_0x2769f2('0x97e')]){var _0x5e0358=_0x189a0b[_0x2769f2('0x4cb')]['name'];switch(_0x5e0358){case _0x2769f2('0xd98'):_0x86c0c();break;case _0x2769f2('0x2ca'):_0x2a00b7[_0x2769f2('0xe5c')]=0x0;break;case _0x2769f2('0x20d4'):_0x2a00b7['selectedTab']=0x1;break;case'app.dashboards.general.chat':_0x2a00b7['selectedTab']=0x2;break;case _0x2769f2('0x18e7'):_0x2a00b7[_0x2769f2('0xe5c')]=0x3;break;case _0x2769f2('0xa51'):_0x2a00b7['selectedTab']=0x4;break;case _0x2769f2('0x307'):_0x2a00b7[_0x2769f2('0xe5c')]=0x5;break;case _0x2769f2('0x1800'):_0x2a00b7['selectedTab']=0x6;break;case'app.dashboards.general.whatsapp':_0x2a00b7['selectedTab']=0x7;break;}}}function _0x86c0c(){var _0x1cb057=_0x5c9fd3,_0x13ea08=[];_0x2a00b7[_0x1cb057('0x1202')][_0x1cb057('0x1b9')]&&_0x13ea08[_0x1cb057('0x1599')](_0x1cb057('0x2ca')),_0x2a00b7[_0x1cb057('0x1202')]['dialer']&&_0x13ea08['push'](_0x1cb057('0x20d4')),_0x2a00b7['license']['chat']&&_0x13ea08['push'](_0x1cb057('0x2713')),_0x2a00b7[_0x1cb057('0x1202')]['mail']&&_0x13ea08[_0x1cb057('0x1599')]('app.dashboards.general.mail'),_0x2a00b7[_0x1cb057('0x1202')][_0x1cb057('0x21c2')]&&_0x13ea08[_0x1cb057('0x1599')](_0x1cb057('0xa51')),_0x2a00b7['license'][_0x1cb057('0x170')]&&_0x13ea08[_0x1cb057('0x1599')]('app.dashboards.general.openchannel'),_0x2a00b7['license'][_0x1cb057('0x16c4')]&&_0x13ea08['push'](_0x1cb057('0x1800')),_0x2a00b7['license'][_0x1cb057('0x220d')]&&_0x13ea08[_0x1cb057('0x1599')](_0x1cb057('0x90f'));if(_0x13ea08[_0x1cb057('0x2587')]>0x0)_0x189a0b['go'](_0x51538b()[_0x1cb057('0xe75')](_0x13ea08));}}_0x23676b[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0xe74'),'inboundQueues',_0x1a8446('0x1f2f'),'outbound','initializeRealtimeQueue'];function _0x23676b(_0x2c6d5f,_0x1ba185,_0x233161,_0x58718f,_0x5e2918,_0x2666a4){var _0x24597b=_0x1a8446,_0x490fb2=this;_0x490fb2[_0x24597b('0x1d5e')]=_0x233161?_0x51538b()[_0x24597b('0x184a')](_0x233161[_0x24597b('0x580')]?_0x233161['rows']:[],'id'):{},_0x490fb2[_0x24597b('0x1f2f')]=_0x58718f?_0x51538b()[_0x24597b('0x184a')](_0x58718f[_0x24597b('0x580')]?_0x58718f[_0x24597b('0x580')]:[],'id'):{},_0x490fb2[_0x24597b('0x4b8')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x24597b('0x18be'),'avgTalkTime':_0x24597b('0x18be'),'answerRate':0x0,'abandonRate':0x0},_0x490fb2['outbound']=_0x5e2918||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x490fb2[_0x24597b('0xd16')]=_0x46f6ac,_0x490fb2[_0x24597b('0xbc')]=_0x180226,_0x1ba185['on'](_0x24597b('0x46'),_0x490fb2[_0x24597b('0xd16')]),_0x1ba185['on'](_0x24597b('0x1731'),_0x490fb2[_0x24597b('0xbc')]),_0x128d12();function _0x128d12(){var _0x2682a1=_0x24597b;_0x2666a4({'queues':_0x490fb2[_0x2682a1('0x1d5e')],'rpcQueues':_0x490fb2[_0x2682a1('0x1f2f')]})['then'](function(_0x195419){_0x490fb2['inbound']=_0x195419;});}function _0x46f6ac(_0xd148d){var _0x1d934a=_0x24597b;_0x490fb2['inboundQueues'][_0xd148d['id']]&&(_0x490fb2['rpcQueues'][_0xd148d['id']]&&(_0x490fb2[_0x1d934a('0x1f2f')][_0xd148d['id']]=_0xd148d,_0x128d12()));}function _0x180226(_0x2bf323){var _0x35a88f=_0x24597b;_0x490fb2[_0x35a88f('0x19d1')]=_0x2bf323;}_0x2c6d5f[_0x24597b('0xc75')]('$destroy',function(){var _0x39831e=_0x24597b;_0x1ba185['removeAllListeners'](_0x39831e('0x46')),_0x1ba185[_0x39831e('0x2629')](_0x39831e('0x1731'));});}const _0x117d95=_0x23676b;_0x5d1d7b[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'socket',_0x1a8446('0xe4f'),_0x1a8446('0x2613')];function _0x5d1d7b(_0x3972a4,_0x37ef81,_0x13789b,_0x26bd27){var _0x23d44b=_0x1a8446,_0x51d987=this,_0x175561=[];_0x51d987[_0x23d44b('0x1b14')]={'format':_0x23d44b('0xa0b'),'unit':'seconds','trim':![]},_0x51d987['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x23d44b('0x18be'),'avgTalkTime':_0x23d44b('0x18be'),'answerRate':0x0,'abandonRate':0x0},_0x51d987[_0x23d44b('0x2613')]=_0x26bd27?_0x51538b()['keyBy'](_0x26bd27[_0x23d44b('0x580')]?_0x26bd27[_0x23d44b('0x580')]:[],'id'):{},_0x51d987[_0x23d44b('0x2682')]=_0x536dea,_0x51d987[_0x23d44b('0x3b4')]=_0x15047d,_0x37ef81['on'](_0x23d44b('0x1c7b'),_0x51d987[_0x23d44b('0x2682')]),_0x37ef81['on'](_0x23d44b('0x628'),_0x51d987[_0x23d44b('0x3b4')]),_0x149dd9();function _0x56baf0(_0x3184f8,_0x1ff835){var _0xe49d80=_0x23d44b;!_0x3184f8[_0xe49d80('0x1cbd')]&&!_0x3184f8[_0xe49d80('0x1037')]&&_0x1ff835&&(_0x51d987['inbound']['waiting']+=0x1),!_0x3184f8[_0xe49d80('0x1cbd')]&&_0x3184f8['UserId']&&!_0x51538b()[_0xe49d80('0x13d6')](_0x175561,_0x3184f8['id'])&&(_0x51d987[_0xe49d80('0x4b8')]['talking']+=0x1,_0x175561[_0xe49d80('0x1599')](_0x3184f8['id']),!_0x1ff835&&_0x51d987[_0xe49d80('0x4b8')][_0xe49d80('0xd3d')]&&(_0x51d987['inbound'][_0xe49d80('0xd3d')]-=0x1)),_0x3184f8[_0xe49d80('0x1cbd')]&&_0x3184f8['UserId']&&(_0x51d987[_0xe49d80('0x4b8')][_0xe49d80('0xa1c')]+=_0x420d43()(_0x3184f8[_0xe49d80('0x26ed')])[_0xe49d80('0x72c')](_0x420d43()(_0x3184f8[_0xe49d80('0x19bc')]),_0x51d987[_0xe49d80('0x1b14')][_0xe49d80('0x11c3')]),_0x51d987[_0xe49d80('0x4b8')][_0xe49d80('0x1ac0')]+=_0x420d43()(_0x3184f8['read1stAt'])[_0xe49d80('0x72c')](_0x420d43()(_0x3184f8[_0xe49d80('0x24a1')]),_0x51d987[_0xe49d80('0x1b14')][_0xe49d80('0x11c3')]),_0x51d987[_0xe49d80('0x4b8')]['answered']+=0x1,!_0x1ff835&&_0x51d987['inbound'][_0xe49d80('0xf01')]&&(_0x51d987['inbound']['talking']-=0x1)),_0x3184f8[_0xe49d80('0x1cbd')]&&!_0x3184f8[_0xe49d80('0x1037')]&&(_0x51d987[_0xe49d80('0x4b8')][_0xe49d80('0x22f4')]+=0x1,!_0x1ff835&&_0x51d987[_0xe49d80('0x4b8')][_0xe49d80('0xd3d')]&&(_0x51d987[_0xe49d80('0x4b8')][_0xe49d80('0xd3d')]-=0x1)),_0x1ff835&&(_0x51d987[_0xe49d80('0x4b8')]['total']+=0x1);}function _0x584fa9(){var _0x948a5b=_0x23d44b;_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0x1624')]=Math[_0x948a5b('0x1566')]((_0x51d987[_0x948a5b('0x4b8')]['abandoned']+_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0x22f4')])/(_0x51d987['inbound'][_0x948a5b('0x1d71')]-_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0xf01')]-_0x51d987[_0x948a5b('0x4b8')]['waiting'])*0x64,-0x2),_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0x2113')]=Math[_0x948a5b('0x1566')](_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0x2717')]/(_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0x1d71')]-_0x51d987['inbound'][_0x948a5b('0xf01')]-_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0xd3d')])*0x64,-0x2),_0x51d987[_0x948a5b('0x4b8')]['avgHoldTime']=_0x420d43()[_0x948a5b('0xdee')](Math[_0x948a5b('0x1566')](_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0x1ac0')]/_0x51d987['inbound'][_0x948a5b('0x2717')]),_0x51d987[_0x948a5b('0x1b14')][_0x948a5b('0x11c3')])['format'](_0x51d987[_0x948a5b('0x1b14')][_0x948a5b('0x1f27')],_0x51d987['config']),_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0x1aac')]=_0x420d43()[_0x948a5b('0xdee')](Math[_0x948a5b('0x1566')](_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0xa1c')]/_0x51d987[_0x948a5b('0x4b8')][_0x948a5b('0x2717')]),_0x51d987[_0x948a5b('0x1b14')][_0x948a5b('0x11c3')])[_0x948a5b('0x1f27')](_0x51d987[_0x948a5b('0x1b14')][_0x948a5b('0x1f27')],_0x51d987[_0x948a5b('0x1b14')]);}function _0x149dd9(){var _0x2e9e7b=_0x23d44b;if(Object[_0x2e9e7b('0x9f2')](_0x51d987[_0x2e9e7b('0x2613')])['length']>0x0)for(var _0x246a88=0x0;_0x246a88<_0x13789b[_0x2e9e7b('0x580')][_0x2e9e7b('0x2587')];_0x246a88+=0x1){if(_0x23886e(_0x13789b[_0x2e9e7b('0x580')][_0x246a88])){var _0x4cd95b=_0x13789b[_0x2e9e7b('0x580')][_0x246a88];_0x56baf0(_0x4cd95b,!![]),_0x584fa9();}}}function _0x23886e(_0x48b9e9){var _0x1297c5=_0x23d44b;if(_0x51538b()[_0x1297c5('0x2c2')](_0x51d987['whatsappAccounts'],{'id':_0x51538b()[_0x1297c5('0x228e')](_0x48b9e9[_0x1297c5('0x1ab5')])}))return!![];return![];}function _0x53b1d2(_0xb3244a){var _0x23bff7=_0x23d44b,_0x538eae=_0x420d43()()[_0x23bff7('0x15db')](0x0,!![])[_0x23bff7('0x206d')](_0x23bff7('0xa7c')),_0x139246=_0x420d43()()['utcOffset'](0x0,!![])['endOf'](_0x23bff7('0xa7c'));return _0x420d43()(_0xb3244a)['utcOffset'](0x0,!![])['isBetween'](_0x538eae,_0x139246);}function _0x536dea(_0x35bcb5){var _0x39cef5=_0x23d44b;_0x23886e(_0x35bcb5)&&_0x53b1d2(_0x35bcb5[_0x39cef5('0x24a1')])&&(_0x56baf0(_0x35bcb5,!![]),_0x584fa9());}function _0x15047d(_0x34d556){var _0xf317f8=_0x23d44b;_0x23886e(_0x34d556)&&_0x53b1d2(_0x34d556[_0xf317f8('0x24a1')])&&(_0x56baf0(_0x34d556,![]),_0x584fa9());}_0x3972a4[_0x23d44b('0xc75')](_0x23d44b('0x12d0'),function(){var _0xdf3572=_0x23d44b;_0x37ef81[_0xdf3572('0x2629')](_0xdf3572('0x1c7b')),_0x37ef81[_0xdf3572('0x2629')]('whatsappInteraction:update');});}const _0x4fb680=_0x5d1d7b;_0xa9cd22[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0xa9cd22(_0x480d08){var _0x203a8f=_0x1a8446;_0x480d08[_0x203a8f('0xb46')]('app.dashboards.general.voice',{'url':'/voice','data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x42ff45,'controller':_0x203a8f('0xc59')}},'resolve':{'rpcQueues':['apiResolver',function _0x6b1df9(_0x4a154a){var _0x4e6317=_0x203a8f;return _0x4a154a[_0x4e6317('0x149f')](_0x4e6317('0xf2d'));}],'inboundQueues':[_0x203a8f('0x1d16'),_0x203a8f('0x1dfd'),function _0x1f9254(_0x5f53fd,_0x2f248d){var _0x14f4cb=_0x203a8f;return _0x2f248d['hasRole']('admin')?_0x5f53fd[_0x14f4cb('0x149f')](_0x14f4cb('0x1b1'),{'fields':_0x14f4cb('0x17fe'),'type':'inbound','nolimit':!![]}):_0x5f53fd['resolve']('userProfile@getResources',{'id':_0x2f248d[_0x14f4cb('0xacc')]()[_0x14f4cb('0x2168')],'section':_0x14f4cb('0x24cb'),'fields':'id,name','type':_0x14f4cb('0x4b8'),'channel':'voice','nolimit':!![]});}],'outbound':[_0x203a8f('0x1d16'),function _0x5e1dd8(_0xa6c08c){var _0x27215f=_0x203a8f;return _0xa6c08c[_0x27215f('0x149f')](_0x27215f('0x1816'));}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x203a8f('0xb46')]('app.dashboards.general.dialer',{'url':_0x203a8f('0x879'),'data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x3947ea,'controller':'UserVoiceDashboardDialerController\x20as\x20vm'}},'resolve':{'rpcQueues':['apiResolver',function _0x3e5780(_0x435be8){var _0x243322=_0x203a8f;return _0x435be8[_0x243322('0x149f')](_0x243322('0xf2d'));}],'outboundQueues':[_0x203a8f('0x1d16'),_0x203a8f('0x1dfd'),function _0x234534(_0x40f598,_0x412e84){var _0x5c7a6f=_0x203a8f;return _0x412e84[_0x5c7a6f('0x26e8')]('admin')?_0x40f598[_0x5c7a6f('0x149f')](_0x5c7a6f('0x1b1'),{'fields':_0x5c7a6f('0x17fe'),'type':_0x5c7a6f('0x19d1'),'nolimit':!![]}):_0x40f598[_0x5c7a6f('0x149f')]('userProfile@getResources',{'id':_0x412e84[_0x5c7a6f('0xacc')]()[_0x5c7a6f('0x2168')],'section':_0x5c7a6f('0x3bf'),'fields':_0x5c7a6f('0x17fe'),'type':_0x5c7a6f('0x19d1'),'channel':'voice','nolimit':!![]});}],'rpcCampaigns':[_0x203a8f('0x1d16'),function _0x4db02f(_0xe70695){var _0x382f63=_0x203a8f;return _0xe70695['resolve'](_0x382f63('0x1337'));}]},'authenticate':!![],'bodyClass':_0x203a8f('0xaff')})[_0x203a8f('0xb46')]('app.dashboards.general.chat',{'url':_0x203a8f('0x1694'),'data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x45f7ef,'controller':'UserChatDashboardGeneralController\x20as\x20vm'}},'resolve':{'chatInteractions':[_0x203a8f('0x1d16'),function _0xc1588b(_0x2c98d2){var _0x14ad34=_0x203a8f;return _0x2c98d2['resolve'](_0x14ad34('0x601'),{'createdAt':{'$gte':_0x420d43()()['startOf'](_0x14ad34('0xa7c'))[_0x14ad34('0x15db')](0x0,!![])[_0x14ad34('0x1f27')](),'$lte':_0x420d43()()[_0x14ad34('0x173a')](_0x14ad34('0xa7c'))['utcOffset'](0x0,!![])[_0x14ad34('0x1f27')]()},'nolimit':!![]});}],'chatWebsites':[_0x203a8f('0x1d16'),_0x203a8f('0x1dfd'),function _0x186de0(_0x326645,_0x1d0e07){var _0x35a4c0=_0x203a8f;return _0x1d0e07[_0x35a4c0('0x26e8')]('admin')?_0x326645[_0x35a4c0('0x149f')](_0x35a4c0('0x1c5d'),{'fields':'createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,header_offline,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardTranscript,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate','sort':_0x35a4c0('0xd82'),'limit':0xa,'offset':0x0}):_0x326645[_0x35a4c0('0x149f')](_0x35a4c0('0x49a'),{'id':_0x1d0e07['getCurrentUser']()[_0x35a4c0('0x2168')],'section':'ChatWebsites','fields':'createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,header_offline,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardTranscript,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate','sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x203a8f('0xb46')](_0x203a8f('0x18e7'),{'url':_0x203a8f('0x3f'),'data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x58502b,'controller':'UserMailDashboardGeneralController\x20as\x20vm'}},'resolve':{'mailInteractions':['apiResolver',function _0x25ddd4(_0x45b084){var _0x8028d2=_0x203a8f;return _0x45b084[_0x8028d2('0x149f')](_0x8028d2('0x1c0e'),{'createdAt':{'$gte':_0x420d43()()[_0x8028d2('0x206d')](_0x8028d2('0xa7c'))[_0x8028d2('0x15db')](0x0,!![])['format'](),'$lte':_0x420d43()()[_0x8028d2('0x173a')](_0x8028d2('0xa7c'))[_0x8028d2('0x15db')](0x0,!![])[_0x8028d2('0x1f27')]()},'nolimit':!![]});}],'mailAccounts':['apiResolver',_0x203a8f('0x1dfd'),function _0x6b1ac(_0x27d5a4,_0x5da4b7){var _0x134feb=_0x203a8f;return _0x5da4b7['hasRole'](_0x134feb('0x178b'))?_0x27d5a4['resolve'](_0x134feb('0x2418'),{'fields':_0x134feb('0x556'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x27d5a4[_0x134feb('0x149f')](_0x134feb('0x49a'),{'id':_0x5da4b7['getCurrentUser']()[_0x134feb('0x2168')],'section':_0x134feb('0x5b2'),'fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x134feb('0xd82'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x203a8f('0xaff')})['state'](_0x203a8f('0xa51'),{'url':_0x203a8f('0xd9c'),'data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0xab5e9d,'controller':_0x203a8f('0x364')}},'resolve':{'smsInteractions':['apiResolver',function _0x123bdc(_0x5a3c81){var _0x2ed88a=_0x203a8f;return _0x5a3c81['resolve']('smsInteraction@get',{'createdAt':{'$gte':_0x420d43()()[_0x2ed88a('0x206d')](_0x2ed88a('0xa7c'))[_0x2ed88a('0x15db')](0x0,!![])[_0x2ed88a('0x1f27')](),'$lte':_0x420d43()()[_0x2ed88a('0x173a')](_0x2ed88a('0xa7c'))[_0x2ed88a('0x15db')](0x0,!![])[_0x2ed88a('0x1f27')]()},'nolimit':!![]});}],'smsAccounts':[_0x203a8f('0x1d16'),_0x203a8f('0x1dfd'),function _0x42de5e(_0x204db1,_0x481d42){var _0x77b4f4=_0x203a8f;return _0x481d42[_0x77b4f4('0x26e8')](_0x77b4f4('0x178b'))?_0x204db1[_0x77b4f4('0x149f')](_0x77b4f4('0x171a'),{'fields':'createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,smsMethod,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate','sort':_0x77b4f4('0xd82'),'limit':0xa,'offset':0x0}):_0x204db1[_0x77b4f4('0x149f')](_0x77b4f4('0x49a'),{'id':_0x481d42[_0x77b4f4('0xacc')]()['userProfileId'],'section':_0x77b4f4('0x10d9'),'fields':'createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,smsMethod,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate','sort':_0x77b4f4('0xd82'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x203a8f('0xaff')})['state'](_0x203a8f('0x307'),{'url':_0x203a8f('0x22e4'),'data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0xdabbe7,'controller':_0x203a8f('0x1c48')}},'resolve':{'openchannelInteractions':[_0x203a8f('0x1d16'),function _0x5e9bb8(_0x16e322){var _0x1071af=_0x203a8f;return _0x16e322['resolve']('openchannelInteraction@get',{'createdAt':{'$gte':_0x420d43()()['startOf']('day')[_0x1071af('0x15db')](0x0,!![])[_0x1071af('0x1f27')](),'$lte':_0x420d43()()['endOf']('day')[_0x1071af('0x15db')](0x0,!![])[_0x1071af('0x1f27')]()},'nolimit':!![]});}],'openchannelAccounts':[_0x203a8f('0x1d16'),'Auth',function _0x59c259(_0x2f012f,_0x23ccf6){var _0x3c33df=_0x203a8f;return _0x23ccf6[_0x3c33df('0x26e8')](_0x3c33df('0x178b'))?_0x2f012f[_0x3c33df('0x149f')](_0x3c33df('0x190e'),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','sort':_0x3c33df('0xd82'),'nolimit':!![]}):_0x2f012f['resolve']('userProfile@getResources',{'id':_0x23ccf6['getCurrentUser']()['userProfileId'],'section':_0x3c33df('0x271b'),'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','sort':_0x3c33df('0xd82'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x203a8f('0xaff')})[_0x203a8f('0xb46')](_0x203a8f('0x1800'),{'url':_0x203a8f('0x1366'),'data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x233b87,'controller':_0x203a8f('0xaba')}},'resolve':{'faxInteractions':[_0x203a8f('0x1d16'),function _0xe2066f(_0x47e5b5){var _0x567840=_0x203a8f;return _0x47e5b5['resolve'](_0x567840('0x16c8'),{'createdAt':{'$gte':_0x420d43()()['startOf'](_0x567840('0xa7c'))[_0x567840('0x15db')](0x0,!![])[_0x567840('0x1f27')](),'$lte':_0x420d43()()[_0x567840('0x173a')](_0x567840('0xa7c'))[_0x567840('0x15db')](0x0,!![])[_0x567840('0x1f27')]()},'nolimit':!![]});}],'faxAccounts':[_0x203a8f('0x1d16'),'Auth',function _0x3f8c9(_0x2616f6,_0x17874d){var _0xcc8a7d=_0x203a8f;return _0x17874d['hasRole'](_0xcc8a7d('0x178b'))?_0x2616f6[_0xcc8a7d('0x149f')](_0xcc8a7d('0xbf2'),{'fields':_0xcc8a7d('0x160a'),'sort':_0xcc8a7d('0xd82'),'limit':0xa,'offset':0x0}):_0x2616f6[_0xcc8a7d('0x149f')](_0xcc8a7d('0x49a'),{'id':_0x17874d[_0xcc8a7d('0xacc')]()[_0xcc8a7d('0x2168')],'section':_0xcc8a7d('0xd5'),'fields':'createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,notificationSound,notificationShake,notificationTemplate','sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x203a8f('0xaff')})['state'](_0x203a8f('0x90f'),{'url':'/whatsapp','data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0xed7da9,'controller':_0x203a8f('0x1302')}},'resolve':{'whatsappInteractions':['apiResolver',function _0x34b0b2(_0x14cc49){var _0x581421=_0x203a8f;return _0x14cc49[_0x581421('0x149f')](_0x581421('0xd65'),{'createdAt':{'$gte':_0x420d43()()[_0x581421('0x206d')](_0x581421('0xa7c'))[_0x581421('0x15db')](0x0,!![])[_0x581421('0x1f27')](),'$lte':_0x420d43()()[_0x581421('0x173a')](_0x581421('0xa7c'))[_0x581421('0x15db')](0x0,!![])[_0x581421('0x1f27')]()},'nolimit':!![]});}],'whatsappAccounts':[_0x203a8f('0x1d16'),'Auth',function _0x38b2cc(_0x458758,_0x16f306){var _0x320ef1=_0x203a8f;return _0x16f306[_0x320ef1('0x26e8')](_0x320ef1('0x178b'))?_0x458758[_0x320ef1('0x149f')](_0x320ef1('0x5fb'),{'fields':_0x320ef1('0x1870'),'sort':_0x320ef1('0xd82'),'limit':0xa,'offset':0x0}):_0x458758['resolve']('userProfile@getResources',{'id':_0x16f306[_0x320ef1('0xacc')]()[_0x320ef1('0x2168')],'section':_0x320ef1('0xe5f'),'fields':_0x320ef1('0x1870'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x203a8f('0xaff')});}angular[_0x1a8446('0x1f8d')]('app.dashboards.general.user',[])[_0x1a8446('0x1b14')](_0xa9cd22)[_0x1a8446('0x780')](_0x1a8446('0x1dd2'),_0x13a3e7)[_0x1a8446('0x780')](_0x1a8446('0x1756'),_0xfebc21)[_0x1a8446('0x780')](_0x1a8446('0x193e'),_0x2efc26)[_0x1a8446('0x780')](_0x1a8446('0x1da6'),_0x4d8a17)['controller'](_0x1a8446('0x1c1f'),_0x3b813f)[_0x1a8446('0x780')](_0x1a8446('0xcc5'),_0x5b20d5)[_0x1a8446('0xdb7')](_0x1a8446('0x1aeb'),_0x181421)[_0x1a8446('0x1be9')](_0x1a8446('0x2252'),_0x36b033)['factory'](_0x1a8446('0x98c'),_0x249601)[_0x1a8446('0x780')]('UserDashboardGeneralController',_0x43a323)[_0x1a8446('0x780')]('UserVoiceDashboardGeneralController',_0x117d95)[_0x1a8446('0x780')](_0x1a8446('0xf2e'),_0x4fb680);const _0x21ce3a=_0x4fb511['p']+_0x1a8446('0x1b5e'),_0x4fa932=_0x4fb511['p']+_0x1a8446('0xe79');var _0x2f7c24=_0x4fb511(0x1d2),_0x5e8d06=_0x4fb511['n'](_0x2f7c24);_0x38b416['$inject']=[_0x1a8446('0x6a4'),_0x1a8446('0xcb3'),'$window',_0x1a8446('0x1dfd')],_0x1e7a5e['$inject']=[_0x1a8446('0x51'),'$timeout',_0x1a8446('0x2378'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x39b'),_0x1a8446('0x1dfd'),_0x1a8446('0x157'),_0x1a8446('0xe74'),'toasty',_0x1a8446('0x255c'),'globalLists',_0x1a8446('0xd24'),_0x1a8446('0x354'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x27fd'),_0x1a8446('0x25c')];function _0x1e7a5e(_0x38f7b5,_0x132df2,_0x24acce,_0x3c1e3f,_0x513b3c,_0x2452f4,_0xbae3d6,_0x11c962,_0x29b185,_0xbefbc3,_0x1abb9a,_0x36f5f6,_0x4bcb07,_0x227bc4,_0x19c613,_0x898870,_0x3414ed,_0x2ee9ce){var _0x32a0ee=_0x1a8446,_0x7a4b6e=this;_0x7a4b6e['license']=_0x19c613,_0x7a4b6e['setting']=_0x898870,_0x7a4b6e[_0x32a0ee('0x2007')]=_0x2ee9ce[_0x32a0ee('0x2007')](),_0x7a4b6e[_0x32a0ee('0x272b')]=_0xbae3d6[_0x32a0ee('0xacc')](),_0x7a4b6e['currentTab']=0x0,_0x7a4b6e[_0x32a0ee('0x1b0')]={},_0x7a4b6e[_0x32a0ee('0x2416')]={},_0x7a4b6e[_0x32a0ee('0xcae')]={},_0x7a4b6e[_0x32a0ee('0x255c')]=_0x1abb9a||{'count':0x0,'rows':[]},_0x7a4b6e[_0x32a0ee('0x207b')]=_0x36f5f6||{'count':0x0,'rows':[]},_0x7a4b6e[_0x32a0ee('0xd24')]=_0x4bcb07||{'count':0x0,'rows':[]},_0x7a4b6e['globalTags']=_0x227bc4||{'count':0x0,'rows':[]},_0x7a4b6e[_0x32a0ee('0x1c98')]=_0x4e21e0,_0x7a4b6e[_0x32a0ee('0x155c')]=_0x22de92,_0x7a4b6e[_0x32a0ee('0x13bb')]=_0x425d70,_0x7a4b6e['addContactTab']=_0x2bd455,_0x7a4b6e[_0x32a0ee('0x15e0')]=_0x97ece3,_0x7a4b6e[_0x32a0ee('0x22ad')]=_0x44d3aa,_0x7a4b6e['removeTab']=_0x48bf35,_0x7a4b6e[_0x32a0ee('0x22d0')]=_0x4b9321,_0x7a4b6e['closeTab']=_0x274654,_0x29b185['on'](_0x32a0ee('0x24fe'),_0x541f4c),_0x29b185['on'](_0x32a0ee('0x286'),_0x348e47),_0x29b185['on']('trigger:bot',_0x145079),_0x29b185['on']('trigger:browser:url',_0x5e7dd2),_0x29b185['on']('trigger:browser:popup',_0x384e20),_0x29b185['on'](_0x32a0ee('0x1762'),_0x5950fc),_0x29b185['on'](_0x32a0ee('0x1da1'),_0x5f4277),_0x29b185['on']('voice_queue_channel:remove',_0x571e8),_0x29b185['on'](_0x32a0ee('0x153a'),_0x571e8),_0x144eb9();function _0x144eb9(){var _0xc0f7f3=_0x32a0ee,_0xac65c=_0x3c1e3f[_0xc0f7f3('0x38e')][_0xc0f7f3('0x173f')](_0xc0f7f3('0x12b1')+_0x7a4b6e[_0xc0f7f3('0x272b')]['id']);if(_0xac65c)try{_0xac65c=JSON['parse'](_0xac65c),_0x7a4b6e[_0xc0f7f3('0x2416')]=_0xac65c['tabs']?_0xac65c['tabs']:{},_0x7a4b6e[_0xc0f7f3('0xd7a')]=_0xac65c[_0xc0f7f3('0xd7a')]?_0xac65c[_0xc0f7f3('0xd7a')]:0x0,_0x57ed77(_0x7a4b6e['tabs'][_0x7a4b6e[_0xc0f7f3('0xd7a')]]);}catch(_0x11091a){console[_0xc0f7f3('0x187f')](_0x11091a);}}function _0x4b9321(_0x189260){var _0x56c0a8=_0x32a0ee,_0x101466={};for(var _0x2185b1 in _0x7a4b6e['tabs']){typeof _0x7a4b6e[_0x56c0a8('0x2416')][_0x2185b1]!==_0x56c0a8('0x1574')&&(_0x101466[_0x2185b1]=_0x51538b()[_0x56c0a8('0x104e')](_0x7a4b6e[_0x56c0a8('0x2416')][_0x2185b1],[_0x56c0a8('0x6c8'),_0x56c0a8('0x110a'),_0x56c0a8('0x119e'),_0x56c0a8('0xd61'),_0x56c0a8('0x4b9'),_0x56c0a8('0x1b3f'),'id',_0x56c0a8('0x1072'),_0x56c0a8('0x200')]),!_0x51538b()[_0x56c0a8('0x89a')](_0x7a4b6e[_0x56c0a8('0x2416')][_0x2185b1][_0x56c0a8('0x3c6')])&&(_0x101466[_0x2185b1][_0x56c0a8('0x3c6')]=_0x51538b()['pick'](_0x7a4b6e[_0x56c0a8('0x2416')][_0x2185b1][_0x56c0a8('0x3c6')],['id','ListId'])),!_0x51538b()['isNil'](_0x7a4b6e[_0x56c0a8('0x2416')][_0x2185b1][_0x56c0a8('0x2109')])&&(_0x101466[_0x2185b1][_0x56c0a8('0x2109')]=_0x7a4b6e[_0x56c0a8('0x2416')][_0x2185b1][_0x56c0a8('0x2109')]),_0x7a4b6e['tabs'][_0x2185b1][_0x56c0a8('0x1d86')]&&(_0x101466[_0x2185b1]['interaction']=_0x51538b()[_0x56c0a8('0x104e')](_0x7a4b6e[_0x56c0a8('0x2416')][_0x2185b1][_0x56c0a8('0x1d86')],['id',_0x56c0a8('0x62c'),_0x56c0a8('0x2307'),_0x56c0a8('0x1421'),_0x56c0a8('0x16a8'),_0x56c0a8('0xaa0'),_0x56c0a8('0x1ab5'),_0x56c0a8('0x1cbd'),_0x56c0a8('0x1679')])));}var _0x193688=JSON[_0x56c0a8('0x9b6')](_0x3c1e3f['localStorage']['getItem'](_0x56c0a8('0x12b1')+_0x7a4b6e[_0x56c0a8('0x272b')]['id']));_0x193688?(_0x193688['tabs']=_0x101466,_0x193688[_0x56c0a8('0xd7a')]=_0x7a4b6e[_0x56c0a8('0xd7a')]):_0x193688={'tabs':_0x101466,'currentTab':_0x7a4b6e[_0x56c0a8('0xd7a')]},_0x3c1e3f[_0x56c0a8('0x38e')]['setItem'](_0x56c0a8('0x12b1')+_0x7a4b6e[_0x56c0a8('0x272b')]['id'],JSON['stringify'](_0x193688)),_0x189260&&_0x57ed77(_0x189260);}function _0x57ed77(_0x3c9b91){var _0x11cd75=_0x32a0ee;if(_0x51538b()[_0x11cd75('0x89a')](_0x3c9b91)||_0x3c9b91&&_0x3c9b91['type']===_0x11cd75('0x1d86')){var _0x103f8e={'id':_0x7a4b6e[_0x11cd75('0x272b')]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(var _0x2f7908 in _0x7a4b6e[_0x11cd75('0x2416')]){typeof _0x7a4b6e[_0x11cd75('0x2416')][_0x2f7908]!==_0x11cd75('0x1574')&&(typeof _0x103f8e['capacity'][_0x7a4b6e[_0x11cd75('0x2416')][_0x2f7908][_0x11cd75('0x119e')]]!==_0x11cd75('0x1574')&&_0x7a4b6e[_0x11cd75('0x2416')][_0x2f7908][_0x11cd75('0x1d86')]&&!_0x7a4b6e[_0x11cd75('0x2416')][_0x2f7908]['interaction'][_0x11cd75('0x1cbd')]&&(_0x103f8e[_0x11cd75('0xb1a')][_0x7a4b6e[_0x11cd75('0x2416')][_0x2f7908][_0x11cd75('0x119e')]]+=0x1,_0x103f8e['interaction'][_0x7a4b6e[_0x11cd75('0x2416')][_0x2f7908][_0x11cd75('0x119e')]]['push'](_0x7a4b6e['tabs'][_0x2f7908]['interaction']['id'])));}if(!_0x51538b()[_0x11cd75('0x1f5a')](_0x7a4b6e[_0x11cd75('0xcae')],_0x103f8e[_0x11cd75('0xb1a')]))return _0x7a4b6e[_0x11cd75('0xcae')]=_0x103f8e[_0x11cd75('0xb1a')],_0x11c962[_0x11cd75('0xb5d')]['setAgentCapacity'](_0x103f8e);}}function _0x274654(_0x9174d2){var _0x5449f4=_0x32a0ee,_0x3601c5=![],_0x23ef78=_0x24acce[_0x5449f4('0x281e')]()[_0x5449f4('0x110a')](_0x9174d2['type']==='interaction'?'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?':_0x5449f4('0x1e5')+_0x9174d2[_0x5449f4('0x6c8')]+'?')[_0x5449f4('0x447')](_0x9174d2[_0x5449f4('0x6c8')]===_0x5449f4('0x1d86')?'':_0x5449f4('0x318')+_0x9174d2[_0x5449f4('0x6c8')]+_0x5449f4('0x23bd'))[_0x5449f4('0x5b5')]('Close\x20Contact')['ok'](_0x9174d2['type']===_0x5449f4('0x1d86')?_0x5449f4('0xd4a'):'OK')[_0x5449f4('0x2030')](_0x9174d2[_0x5449f4('0x6c8')]===_0x5449f4('0x1d86')?'NO':'CANCEL');if(_0x9174d2[_0x5449f4('0x1072')]){var _0x544a89=![];_0x51538b()[_0x5449f4('0x15b5')](_0x9174d2['calls'],function(_0x59e3c2){var _0x4ef1a5=_0x5449f4;_0x59e3c2[_0x4ef1a5('0x1844')]&&(_0x544a89=!![]);});if(_0x9174d2['type']===_0x5449f4('0x3c6')&&_0x9174d2[_0x5449f4('0x2109')]['length']>0x0){var _0x297813=undefined;if(_0x544a89)_0x297813=_0x24acce[_0x5449f4('0xc10')]()[_0x5449f4('0x110a')]('Warning')[_0x5449f4('0x447')]('There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.')['ok']('OK'),_0x24acce[_0x5449f4('0x1e6d')](_0x297813)[_0x5449f4('0x1889')](function(){_0x297813=undefined;});else return _0x23ef78[_0x5449f4('0xb71')][_0x5449f4('0x447')]=_0x5449f4('0x205f'),_0x24acce[_0x5449f4('0x1e6d')](_0x23ef78)[_0x5449f4('0xaa5')](function(){_0x48bf35(_0x9174d2);});}else _0x48bf35(_0x9174d2);}else{var _0x4752d2=_0x7a4b6e[_0x5449f4('0x272b')]['voicePause']||_0x7a4b6e[_0x5449f4('0x272b')]['chatPause']||_0x7a4b6e[_0x5449f4('0x272b')][_0x5449f4('0x21f')]||_0x7a4b6e[_0x5449f4('0x272b')][_0x5449f4('0xc8f')]||_0x7a4b6e[_0x5449f4('0x272b')][_0x5449f4('0x135b')];return _0x3601c5=![],_0x9174d2[_0x5449f4('0x6c8')]===_0x5449f4('0x1d86')&&(_0x3601c5=_0x9174d2[_0x5449f4('0x1d86')][_0x5449f4('0x75a')][_0x5449f4('0x1844')]),_0x24acce[_0x5449f4('0x1e6d')](_0x23ef78)[_0x5449f4('0xaa5')](function(){var _0x974815=_0x5449f4;_0x9174d2['type']===_0x974815('0x1d86')&&_0x24acce[_0x974815('0x1e6d')]({'controller':_0x974815('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular[_0x974815('0x1aa8')](_0x2452f4[_0x974815('0x54c')]),'onRemoving':function _0x1d95c9(){var _0x5cbffa=_0x974815;_0x7a4b6e['user']&&_0x3601c5&&!_0x4752d2&&_0x11c962[_0x5cbffa('0x272b')][_0x5cbffa('0x297')]({'id':_0x7a4b6e[_0x5cbffa('0x272b')]['id']})['$promise'][_0x5cbffa('0x253d')](function(_0x1cb021){var _0x2a0ee7=_0x5cbffa;console[_0x2a0ee7('0x187f')](_0x1cb021);});},'clickOutsideToClose':!_0x3601c5,'escapeToClose':!_0x3601c5,'locals':{'user':_0x7a4b6e[_0x974815('0x272b')],'channel':_0x9174d2['channel'],'interaction':_0x9174d2['interaction']}}),_0x48bf35(_0x9174d2);})[_0x5449f4('0x253d')](function(){var _0x167b12=_0x5449f4;_0x9174d2[_0x167b12('0x6c8')]===_0x167b12('0x1d86')&&_0x48bf35(_0x9174d2);});}}function _0x45a898(_0x576f03){var _0x193fc5=_0x32a0ee;if(_0x576f03[_0x193fc5('0x119e')]&&_0x576f03[_0x193fc5('0x1d86')])return _0x11c962[_0x193fc5('0x272b')][_0x193fc5('0xf6d')+_0x51538b()[_0x193fc5('0x1791')](_0x576f03[_0x193fc5('0x119e')])+_0x193fc5('0x20b7')]({'id':_0x7a4b6e[_0x193fc5('0x272b')]['id'],'ids':[_0x576f03[_0x193fc5('0x1d86')]['id']]})['$promise']['catch'](function(_0x3f97b5){var _0x245ad6=_0x193fc5;console[_0x245ad6('0x187f')](_0x3f97b5);});}function _0x48bf35(_0x4620be){var _0x34ca95=_0x32a0ee;if(_0x7a4b6e[_0x34ca95('0x2416')][_0x4620be['id']]){_0x45a898(_0x7a4b6e[_0x34ca95('0x2416')][_0x4620be['id']]),delete _0x7a4b6e[_0x34ca95('0x2416')][_0x4620be['id']],_0x7a4b6e[_0x34ca95('0xd7a')]=0x0,_0x4b9321(_0x4620be);if(_0x4620be[_0x34ca95('0x6c8')]===_0x34ca95('0x1d86'))return _0x11c962[_0x4620be[_0x34ca95('0x119e')]+_0x34ca95('0x11')][_0x34ca95('0x2122')]({'id':_0x4620be[_0x34ca95('0x1d86')]['id']})[_0x34ca95('0x1dc2')][_0x34ca95('0xaa5')](function(_0x4806ff){var _0x152647=_0x34ca95;return _0x11c962[_0x152647('0x272b')][_0x152647('0xf6d')+_0x51538b()['upperFirst'](_0x4620be[_0x152647('0x119e')])+_0x152647('0x20b7')]({'id':_0x7a4b6e['user']['id'],'ids':[_0x4806ff['id']]})[_0x152647('0x1dc2')];})['catch'](function(_0x4d49c5){var _0xe99b4e=_0x34ca95;console[_0xe99b4e('0x187f')](_0x4d49c5);});}}function _0x44d3aa(_0x4185e6){var _0x3ad59a=_0x32a0ee;_0x4185e6['id']=_0x51538b()[_0x3ad59a('0x8fc')](0x2540be400),_0x4185e6[_0x3ad59a('0x36d')]=new Date(),_0x4185e6['saved']=![],_0x4185e6[_0x3ad59a('0x200')]=0x0,_0x7a4b6e[_0x3ad59a('0x2416')][_0x4185e6['id']]=_0x4185e6,_0x7a4b6e[_0x3ad59a('0xd7a')]=_0x4185e6['id'],_0x4b9321(_0x4185e6);}function _0x22de92(_0x2afd3c){return _0x2afd3c===_0x7a4b6e['currentTab'];}function _0x4e21e0(_0x21c35c){var _0x425c81=_0x32a0ee;_0x7a4b6e['currentTab']=_0x21c35c,_0x4b9321(_0x7a4b6e[_0x425c81('0x2416')][_0x21c35c]);}function _0x425d70(_0x14b222){var _0x2164a4=_0x32a0ee;return _0x51538b()[_0x2164a4('0xe9e')](_0x7a4b6e['tabs'],function(_0x530fee){var _0x3232ba=_0x2164a4;return _0x530fee[_0x3232ba('0x6c8')]===_0x3232ba('0x1d86')&&_0x530fee[_0x3232ba('0x1d86')]&&_0x530fee[_0x3232ba('0x1d86')]['id']==_0x14b222[_0x3232ba('0xf18')]&&_0x530fee['channel']==_0x14b222[_0x3232ba('0x119e')];});}function _0x18629f(_0x4259ca){var _0x2e514b=_0x32a0ee,_0x475e3a='';if(_0x4259ca){if(_0x4259ca[_0x2e514b('0x24c1')]||_0x4259ca[_0x2e514b('0x351')])_0x4259ca[_0x2e514b('0x24c1')]&&(_0x475e3a+=_0x4259ca['firstName']+'\x20'),_0x4259ca[_0x2e514b('0x351')]&&(_0x475e3a+=_0x4259ca[_0x2e514b('0x351')]);else _0x4259ca[_0x2e514b('0x1a46')]&&(_0x475e3a=_0x4259ca[_0x2e514b('0x1a46')]);}return _0x475e3a;}function _0x1d4a19(_0x340ea7){var _0x13d842=_0x32a0ee;switch(_0x340ea7){case _0x13d842('0x20f9'):return _0x13d842('0x20e');case _0x13d842('0x14c5'):return'icon-email';case _0x13d842('0x18da'):return'icon-message-text';case _0x13d842('0x170'):return _0x13d842('0x3');case _0x13d842('0x16c4'):return'icon-deskphone';case _0x13d842('0x220d'):return _0x13d842('0x538');default:return _0x13d842('0x20e');}}function _0x170be0(_0x3da56c){var _0x3bf9a5=_0x32a0ee;switch(_0x3da56c){case _0x3bf9a5('0x20f9'):return'green-A700';case _0x3bf9a5('0x14c5'):return _0x3bf9a5('0x21d1');case _0x3bf9a5('0x18da'):return _0x3bf9a5('0x1ad3');case'openchannel':return _0x3bf9a5('0x7d2');case _0x3bf9a5('0x16c4'):return _0x3bf9a5('0x1a41');case _0x3bf9a5('0x220d'):return _0x3bf9a5('0x9b1');default:return _0x3bf9a5('0x23b2');}}function _0x2bd455(_0x5400c8,_0x53744a){var _0x528a03=_0x32a0ee,_0x4d7670={'type':_0x528a03('0x3c6'),'title':_0x5400c8?_0x18629f(_0x5400c8):_0x513b3c[_0x528a03('0x213f')]('DASHBOARDS.NEW_CONTACT'),'icon':_0x528a03('0x2207'),'color':'red','contact':_0x5400c8,'calls':_0x53744a?[_0x53744a]:[],'autoCreate':_0x53744a?_0x53744a[_0x528a03('0x1b3f')]:0x0};if(_0x53744a){if(_0x53744a[_0x528a03('0x290')]&&_0x53744a[_0x528a03('0x290')]===_0x528a03('0x24c8'))_0x53744a['answeredAt']=_0x53744a['agentcalledAt']?_0x420d43()(_0x53744a[_0x528a03('0x9ba')],'YYYY-MM-DD\x20HH:mm:ss')[_0x528a03('0x12c0')]():new Date();else{if(_0x53744a['uniqueid']){var _0x47f5f6=_0x53744a[_0x528a03('0x1a6')][_0x528a03('0x1a39')]('.')[0x0];_0x53744a['answeredAt']=_0x47f5f6?new Date(parseInt(_0x47f5f6)*0x3e8):new Date();}}(_0x53744a[_0x528a03('0x1431')]||_0x53744a[_0x528a03('0x1187')])&&_0x4e27de(_0x53744a);}if(_0x5400c8){var _0x3ce050=_0x51538b()[_0x528a03('0xe9e')](_0x7a4b6e[_0x528a03('0x2416')],function(_0x28b50f){var _0x4d229e=_0x528a03;if(_0x28b50f[_0x4d229e('0x3c6')]&&_0x28b50f['contact']['id'])return _0x28b50f[_0x4d229e('0x6c8')]==='contact'&&_0x28b50f['contact']&&_0x28b50f[_0x4d229e('0x3c6')]['id']==_0x5400c8['id'];return _0x28b50f[_0x4d229e('0x6c8')]===_0x4d229e('0x3c6')&&_0x28b50f['contact']&&_0x28b50f['contact'][_0x4d229e('0x1a46')]==_0x5400c8[_0x4d229e('0x1a46')];});if(_0x3ce050){if(_0x53744a)return _0x11c962['voiceCallReport']['get']({'uniqueid':_0x53744a[_0x528a03('0x1a6')]})['$promise'][_0x528a03('0xaa5')](function(_0x24b6b7){var _0x18c8eb=_0x528a03;_0x24b6b7&&_0x24b6b7[_0x18c8eb('0x580')][_0x18c8eb('0x2587')]>0x0&&(_0x53744a[_0x18c8eb('0x3e4')]=_0x51538b()[_0x18c8eb('0xe75')](_0x24b6b7[_0x18c8eb('0x580')])[_0x18c8eb('0x1187')]);if(_0x3ce050[_0x18c8eb('0x2109')]){var _0x4e94a5=_0x51538b()['find'](_0x3ce050[_0x18c8eb('0x2109')],function(_0x3794b1){var _0x5e20e4=_0x18c8eb;return _0x3794b1['uniqueid']===_0x53744a[_0x5e20e4('0x1a6')];});!_0x4e94a5&&_0x3ce050[_0x18c8eb('0x2109')][_0x18c8eb('0x1599')](_0x53744a);}else _0x3ce050['calls']=[_0x53744a];_0x7a4b6e[_0x18c8eb('0xd7a')]=_0x3ce050['id'];});}else{if(_0x5400c8[_0x528a03('0xee0')])return _0x11c962[_0x528a03('0x106e')]['get']({'ListId':_0x5400c8['ListId']})['$promise'][_0x528a03('0xaa5')](function(_0x4ffc3c){var _0x5bfaa2=_0x528a03;return _0x4d7670[_0x5bfaa2('0xa9')]=_0x4ffc3c,_0x11c962[_0x5bfaa2('0x26b4')][_0x5bfaa2('0xe57')]({'id':_0x5400c8[_0x5bfaa2('0xee0')]})[_0x5bfaa2('0x1dc2')];})[_0x528a03('0xaa5')](function(_0x5203c4){var _0x170c61=_0x528a03;_0x4d7670[_0x170c61('0x2')]=_0x5203c4;})[_0x528a03('0x253d')](_0x3f86db())[_0x528a03('0x1889')](function(){_0x44d3aa(_0x4d7670);});else _0x44d3aa(_0x4d7670);}}else _0x44d3aa(_0x4d7670);}function _0x97ece3(_0x45e95a,_0x411538){var _0x38b18c=_0x32a0ee,_0x254c09=_0x51538b()[_0x38b18c('0xe9e')](_0x7a4b6e[_0x38b18c('0x2416')],function(_0x19f417){var _0x5b750d=_0x38b18c;return _0x19f417['type']===_0x5b750d('0x1d86')&&_0x19f417[_0x5b750d('0x1d86')]&&_0x19f417['interaction']['id']===_0x411538['id']&&_0x19f417[_0x5b750d('0x119e')]===_0x45e95a;});_0x254c09?(_0x254c09[_0x38b18c('0xba9')]=_0x411538[_0x38b18c('0xba9')]||![],_0x7a4b6e[_0x38b18c('0xd7a')]=_0x254c09['id']):(_0x254c09={'type':'interaction','title':_0x45e95a?_0x45e95a[_0x38b18c('0x1d08')]():'openchannel','icon':_0x1d4a19(_0x45e95a),'color':_0x170be0(_0x45e95a),'channel':_0x45e95a,'interaction':_0x411538,'isDraft':_0x411538[_0x38b18c('0xba9')]||![]},_0x44d3aa(_0x254c09));}function _0x5e128b(_0x46c5f8){var _0xd01788=_0x32a0ee,_0x1e639e={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0xd01788('0x132'),'body':_0x46c5f8[_0xd01788('0xe26')]?_0xd01788('0x830')+_0x46c5f8[_0xd01788('0xe26')]:'','focusOnclick':!![],'closeOnClick':!![]};_0x3414ed[_0xd01788('0x1e6d')](_0x46c5f8['title'],_0x1e639e);}function _0xecd49e(_0x13ca8a){var _0x4ddea7=_0x32a0ee;_0x3414ed[_0x4ddea7('0xc15')]()?_0x3414ed[_0x4ddea7('0xc31')]()['then'](function(){_0x5e128b(_0x13ca8a);},function(_0x57d675){var _0x4e5053=_0x4ddea7;console[_0x4e5053('0x187f')](_0x4e5053('0x26f'),_0x57d675);}):console['error']('Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.');}function _0x5950fc(_0x49e7ea){var _0x2594a2=_0x32a0ee;if(_0x49e7ea&&_0x49e7ea[_0x2594a2('0x1a6')]){_0xecd49e(_0x49e7ea);var _0x563e5f=_0x425d70(_0x49e7ea);if(_0x563e5f){if(_0x11c962[_0x49e7ea['channel']+_0x2594a2('0x4d8')])return _0x7a4b6e[_0x2594a2('0xd7a')]!==_0x563e5f['id']&&(_0x563e5f[_0x2594a2('0x200')]+=0x1),_0x11c962[_0x49e7ea['channel']+_0x2594a2('0x4d8')][_0x2594a2('0x5d5')]({'id':_0x49e7ea['id'],'UserId':_0x7a4b6e[_0x2594a2('0x272b')]['id']})['$promise'][_0x2594a2('0x253d')](_0x3f86db());}else _0xbefbc3[_0x2594a2('0x58b')]({'title':_0x49e7ea[_0x2594a2('0x110a')],'msg':_0x49e7ea['msg']||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x49e7ea[_0x2594a2('0x7d6')],'html':!![],'shake':_0x49e7ea[_0x2594a2('0xc95')]||![],'onAdd':function _0x1e5f5e(){var _0x57d176=_0x2594a2;_0x7a4b6e['notifications'][_0x49e7ea[_0x57d176('0x1a6')]]=this['id'];},'onAccept':function _0x1bce5c(){var _0x441a5b=_0x2594a2;_0x5f4277(_0x49e7ea);if(_0x11c962[_0x49e7ea[_0x441a5b('0x119e')]+_0x441a5b('0x4d8')])return _0x11c962[_0x49e7ea[_0x441a5b('0x119e')]+_0x441a5b('0x4d8')][_0x441a5b('0x5d5')]({'id':_0x49e7ea['id'],'UserId':_0x7a4b6e[_0x441a5b('0x272b')]['id'],'manual':!![]})[_0x441a5b('0x1dc2')][_0x441a5b('0xaa5')](function(_0x4bff31){var _0x5cfecf=_0x441a5b;_0x97ece3(_0x4bff31[_0x5cfecf('0x119e')],_0x4bff31[_0x5cfecf('0x1d86')]),_0xbefbc3[_0x5cfecf('0xe10')]({'title':_0x5cfecf('0x1971'),'msg':_0x5cfecf('0x1b3c')});})[_0x441a5b('0x253d')](_0x3f86db());},'onReject':function _0x1a6f20(){var _0x1c4e4b=_0x2594a2;_0x5f4277(_0x49e7ea);if(_0x11c962[_0x49e7ea['channel']+_0x1c4e4b('0x4d8')])return _0x11c962[_0x49e7ea[_0x1c4e4b('0x119e')]+_0x1c4e4b('0x4d8')]['reject']({'id':_0x49e7ea['id'],'UserId':_0x7a4b6e[_0x1c4e4b('0x272b')]['id']})[_0x1c4e4b('0x1dc2')]['then'](function(){var _0x5a4ebe=_0x1c4e4b;_0xbefbc3[_0x5a4ebe('0xe10')]({'title':_0x5a4ebe('0xece'),'msg':_0x5a4ebe('0x1f5e')});})[_0x1c4e4b('0x253d')](_0x3f86db());}});}}function _0x5f4277(_0x39ead7){var _0x3908aa=_0x32a0ee;_0x39ead7&&_0x39ead7[_0x3908aa('0x1a6')]&&(_0x7a4b6e[_0x3908aa('0x1b0')][_0x39ead7['uniqueid']]&&(_0xbefbc3[_0x3908aa('0x11e7')](_0x7a4b6e[_0x3908aa('0x1b0')][_0x39ead7[_0x3908aa('0x1a6')]]),delete _0x7a4b6e['notifications'][_0x39ead7['uniqueid']]));}function _0x541f4c(_0x26b971){var _0x381833=_0x32a0ee;if(!_0x26b971['contacts']){_0x2bd455(_0x26b971['contact'],_0x26b971[_0x381833('0xe4e')]);return;}_0x24acce[_0x381833('0x1e6d')]({'controller':_0x381833('0x1211'),'controllerAs':'vm','templateUrl':_0x4fa932,'parent':angular[_0x381833('0x1aa8')](_0x2452f4[_0x381833('0x54c')]),'locals':{'contacts':_0x26b971[_0x381833('0x1cfb')],'callNumber':_0x26b971['evt'][_0x381833('0x1f7c')]?_0x26b971[_0x381833('0xe4e')][_0x381833('0x2591')]:_0x26b971[_0x381833('0xe4e')][_0x381833('0x1804')]}})[_0x381833('0xaa5')](function(_0x36eb72){var _0x2f0819=_0x381833;_0x2bd455(_0x36eb72,_0x26b971[_0x2f0819('0xe4e')]);});}function _0x348e47(_0x18541c){var _0x2d4fb2=_0x32a0ee;return _0x11c962['jscriptyProject'][_0x2d4fb2('0x2122')]({'id':_0x18541c[_0x2d4fb2('0x2746')]})[_0x2d4fb2('0x1dc2')][_0x2d4fb2('0xaa5')](function(_0x471214){var _0x804461=_0x2d4fb2;if(_0x471214){if(_0x51538b()[_0x804461('0xec')](_0x18541c[_0x804461('0x39d')])){try{_0x471214['formData']=_0x5e8d06()[_0x804461('0x4b0')](_0x471214['formData'],_0x51538b()['merge'](_0x18541c,{'user':_0x7a4b6e[_0x804461('0x272b')]}));}catch(_0x4c7ac5){console['error'](_0x4c7ac5);}_0x44d3aa({'type':_0x804461('0x1886'),'title':_0x471214[_0x804461('0x25d6')],'icon':_0x804461('0x1a'),'color':_0x804461('0x23b2'),'project':_0x471214,'call':_0x18541c});}else return _0x11c962['cmContact'][_0x804461('0x2122')]({'id':_0x18541c[_0x804461('0x39d')]})[_0x804461('0x1dc2')][_0x804461('0xaa5')](function(_0x1fff59){var _0x2fd13b=_0x804461;try{_0x471214[_0x2fd13b('0x1452')]=_0x5e8d06()['render'](_0x471214[_0x2fd13b('0x1452')],_0x51538b()[_0x2fd13b('0x283c')](_0x18541c,{'user':_0x7a4b6e['user'],'contact':_0x1fff59}));}catch(_0x5178eb){console[_0x2fd13b('0x187f')](_0x5178eb);}_0x44d3aa({'type':_0x2fd13b('0x1886'),'title':_0x471214[_0x2fd13b('0x25d6')],'icon':_0x2fd13b('0x1a'),'color':'grey','project':_0x471214,'call':_0x18541c,'contact':_0x1fff59});})[_0x804461('0x253d')](_0x3f86db());}})['catch'](_0x3f86db());}function _0x5e7dd2(_0xef7867){var _0x40c78f=_0x32a0ee;if(_0xef7867&&_0xef7867[_0x40c78f('0x639')]){_0xef7867[_0x40c78f('0x639')]=_0x51538b()['replace'](_0xef7867['uri'],_0x40c78f('0x1c7a'),''),_0xef7867[_0x40c78f('0x639')]=_0x51538b()[_0x40c78f('0x170d')](_0xef7867[_0x40c78f('0x639')],_0x40c78f('0xb79'),'');if(_0xef7867[_0x40c78f('0x114d')])switch(_0xef7867[_0x40c78f('0x114d')]){case'0':_0x3c1e3f['open'](_0xef7867['uri']);break;case'1':_0x3c1e3f['open'](_0xef7867[_0x40c78f('0x639')],'_blank',_0x40c78f('0x24ed')+(_0xef7867[_0x40c78f('0x17d2')]||_0x40c78f('0x15be'))+_0x40c78f('0xbbb')+_0xef7867[_0x40c78f('0x200d')]||0x0);break;case'2':{var _0x40f633={'type':_0x40c78f('0x195e'),'title':_0xef7867[_0x40c78f('0x639')],'icon':'icon-google-earth','color':_0x40c78f('0xa9e'),'src':_0xef7867[_0x40c78f('0x639')]};_0x44d3aa(_0x40f633);}break;default:_0x3c1e3f[_0x40c78f('0xb4')](_0xef7867[_0x40c78f('0x639')]);}else _0x3c1e3f['open'](_0xef7867[_0x40c78f('0x639')]);}}function _0x384e20(_0x40ae4f){var _0x156287=_0x32a0ee;_0x40ae4f&&_0x40ae4f[_0x156287('0x1869')]&&_0x44d3aa({'type':'popup','title':_0x40ae4f[_0x156287('0x1804')]||'popup','icon':'icon-tablet','color':'grey','html':_0x40ae4f[_0x156287('0x1869')]});}function _0x145079(_0x340aec){var _0x72e663=_0x32a0ee,_0x56a437=_0x340aec['calleridname']&&_0x340aec[_0x72e663('0x2789')]!==''?_0x340aec[_0x72e663('0x2789')]:_0x340aec['calleridnum'],_0x51d846=_0x340aec[_0x72e663('0x1804')];return _0x11c962[_0x72e663('0x14dc')][_0x72e663('0x2122')]({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0x340aec[_0x72e663('0x1a6')]})[_0x72e663('0x1dc2')]['then'](function(_0x527f26){var _0xad15aa=_0x72e663;_0x527f26[_0xad15aa('0xd15')]&&_0x44d3aa({'type':_0xad15aa('0x2729'),'title':_0x56a437+'\x20<'+_0x51d846+'>','icon':_0xad15aa('0xd11'),'color':'pink','data':{'uniqueid':_0x340aec[_0xad15aa('0x1a6')]}});});}function _0x571e8(_0x9b83e6){var _0x74002a=_0x32a0ee;console[_0x74002a('0x84c')](_0x74002a('0x1454'),_0x9b83e6);for(var _0x13ab7f in _0x7a4b6e[_0x74002a('0x2416')]){if(typeof _0x7a4b6e['tabs'][_0x13ab7f]!==_0x74002a('0x1574')){var _0x1eb3a6=_0x7a4b6e['tabs'][_0x13ab7f];if(_0x1eb3a6[_0x74002a('0x2109')]){console[_0x74002a('0x84c')](_0x74002a('0x899'),_0x13ab7f,_0x1eb3a6,_0x1eb3a6[_0x74002a('0x2109')]);var _0x108f9a=_0x51538b()[_0x74002a('0xedc')](_0x1eb3a6['calls'],function(_0x4c8028){var _0xb43d9c=_0x74002a;return _0x4c8028[_0xb43d9c('0x1a6')]===_0x9b83e6['uniqueid'];});_0x108f9a>=0x0&&!_0x1eb3a6['calls'][_0x108f9a][_0x74002a('0x3e4')]?(console[_0x74002a('0x84c')]('Allowing\x20disposition\x20for\x20call\x20%s',_0x9b83e6['uniqueid']),_0x4e27de(_0x1eb3a6[_0x74002a('0x2109')][_0x108f9a])):console['debug'](_0x74002a('0xff6'),_0x9b83e6[_0x74002a('0x1a6')]),_0x7a4b6e['contact']&&_0x7a4b6e['contact']['id']&&_0x132df2(_0x1cf8e0(_0x9b83e6[_0x74002a('0x1a6')],_0x7a4b6e[_0x74002a('0x3c6')]['id'],_0x1eb3a6),0x3e8);}}}_0x4b9321();}function _0x1cf8e0(_0x1a694a,_0x29e9ce,_0x6c2bf6){return function(){var _0x181661=a0_0x1149,_0x25d8d4=_0x51538b()[_0x181661('0xe9e')](_0x6c2bf6[_0x181661('0x2109')],function(_0x1612a3){var _0xab1ea2=_0x181661;return _0x1612a3[_0xab1ea2('0x1a6')]===_0x1a694a;});if(_0x25d8d4)return _0x11c962[_0x181661('0x4d4')]['update']({'id':_0x1a694a,'ContactId':_0x29e9ce})['$promise'][_0x181661('0x253d')](function(_0x1c5f46){var _0x2895c4=_0x181661;console[_0x2895c4('0x187f')](_0x1c5f46);});};}function _0x4e27de(_0x417970){var _0x1c34d5=_0x32a0ee;_0x417970[_0x1c34d5('0x3e4')]=new Date();}function _0x3f86db(){return function(_0x25bcd1){var _0xc4c35d=a0_0x1149;if(_0x25bcd1[_0xc4c35d('0x2fa')]===0x194)_0xbefbc3['warning']({'title':_0x513b3c[_0xc4c35d('0x213f')](_0xc4c35d('0x1b73')),'msg':_0x513b3c['instant'](_0xc4c35d('0x2447'))});else{if(_0x25bcd1['data']&&_0x25bcd1['data'][_0xc4c35d('0x4c6')]&&_0x25bcd1[_0xc4c35d('0x10fd')][_0xc4c35d('0x4c6')][_0xc4c35d('0x2587')]){_0x7a4b6e[_0xc4c35d('0x4c6')]=_0x25bcd1[_0xc4c35d('0x10fd')][_0xc4c35d('0x4c6')]||[{'message':_0x25bcd1[_0xc4c35d('0x684')](),'type':_0xc4c35d('0x1f9a')}];for(var _0x7fae0=0x0;_0x7fae0<_0x25bcd1[_0xc4c35d('0x10fd')][_0xc4c35d('0x4c6')]['length'];_0x7fae0+=0x1){_0xbefbc3['error']({'title':_0x25bcd1['data'][_0xc4c35d('0x4c6')][_0x7fae0][_0xc4c35d('0x6c8')],'msg':_0x25bcd1[_0xc4c35d('0x10fd')]['errors'][_0x7fae0][_0xc4c35d('0x1402')]});}}else _0xbefbc3[_0xc4c35d('0x187f')]({'title':_0x25bcd1[_0xc4c35d('0x2fa')]?'API:'+_0x25bcd1['status']+_0xc4c35d('0x169e')+_0x25bcd1[_0xc4c35d('0x24df')]:'api.openchannelMessage.accept','msg':_0x25bcd1[_0xc4c35d('0x10fd')]?JSON[_0xc4c35d('0xa48')](_0x25bcd1[_0xc4c35d('0x10fd')][_0xc4c35d('0x1402')]):_0x25bcd1[_0xc4c35d('0x684')]()});}};}_0x38f7b5[_0x32a0ee('0xc75')](_0x32a0ee('0x12d0'),function(){var _0xf10b2f=_0x32a0ee;for(var _0x17115f in _0x7a4b6e[_0xf10b2f('0x1b0')]){typeof _0x7a4b6e[_0xf10b2f('0x1b0')][_0x17115f]!==_0xf10b2f('0x1574')&&_0x5f4277({'uniqueid':_0x17115f});}_0x29b185[_0xf10b2f('0x2629')](_0xf10b2f('0x24fe')),_0x29b185[_0xf10b2f('0x2629')](_0xf10b2f('0x286')),_0x29b185['removeAllListeners'](_0xf10b2f('0x2662')),_0x29b185[_0xf10b2f('0x2629')](_0xf10b2f('0x1319')),_0x29b185['removeAllListeners'](_0xf10b2f('0x1762')),_0x29b185[_0xf10b2f('0x2629')]('notification:remove'),_0x29b185[_0xf10b2f('0x2629')]('voice_queue_channel:remove'),_0x29b185['removeAllListeners']('voice_outbound_channel:remove');});}function _0x38b416(_0x335658,_0x128d6f,_0x1bcd45,_0x529448){var _0x996e36=_0x1a8446,_0xc98b90={},_0x4bf3aa={},_0xfd5cb8={},_0x43caae={};_0xc98b90[_0x996e36('0x2e')]=function(){var _0xd2a652=_0x996e36;_0xc98b90[_0xd2a652('0x916')]=_0x453b76();},_0xc98b90[_0x996e36('0x3d3')]=function(_0x55aa94){var _0x16c4cd=_0x996e36;return _0xc98b90[_0x16c4cd('0x916')]=_0x453b76(),_0x51538b()[_0x16c4cd('0xe9e')](_0x51538b()[_0x16c4cd('0x3c5')](_0xc98b90[_0x16c4cd('0x916')]),function(_0x402174){var _0x3a9c80=_0x16c4cd;return _0x402174[_0x3a9c80('0x1d86')]&&_0x402174['interaction']['id']===_0x55aa94;});},_0xc98b90[_0x996e36('0x16aa')]=function(_0x2345fa){var _0x5c0985=_0x996e36;_0xc98b90[_0x5c0985('0x916')]=_0x453b76();var _0x4cd743=_0x51538b()[_0x5c0985('0xe9e')](_0x51538b()[_0x5c0985('0x3c5')](_0xc98b90[_0x5c0985('0x916')]),function(_0x55343a){var _0x291aef=_0x5c0985;return _0x55343a[_0x291aef('0x1d86')]&&_0x55343a[_0x291aef('0x1d86')]['id']===_0x2345fa;});_0x4cd743&&(delete _0xc98b90[_0x5c0985('0x916')][_0x4cd743['id']],_0x2cc74a());},_0xc98b90[_0x996e36('0x202c')]=function(_0x3cfedf){var _0x1044c6=_0x996e36;_0xc98b90['drafts']=_0x453b76();var _0x3f3e0b=_0x128d6f[_0x1044c6('0x213f')](_0x1044c6('0xb0e'));if(_0x3cfedf[_0x1044c6('0x3c6')])_0x3f3e0b=_0x3cfedf[_0x1044c6('0x3c6')][_0x1044c6('0x24c1')]||_0x3cfedf['contact'][_0x1044c6('0x1f69')];else!_0x51538b()[_0x1044c6('0x116b')](_0x3cfedf[_0x1044c6('0x1402')]['subject'])&&(_0x3f3e0b=_0x3cfedf[_0x1044c6('0x1402')][_0x1044c6('0x2101')]);var _0x25b625={'type':'draft','title':_0x3cfedf[_0x1044c6('0x5b')][_0x1044c6('0x24ec')]+_0x1044c6('0x169e')+_0x3f3e0b,'channel':_0x3cfedf[_0x1044c6('0x119e')],'content':_0x3cfedf[_0x1044c6('0x1402')],'account':_0x3cfedf[_0x1044c6('0x5b')],'interaction':_0x3cfedf['interaction'],'id':_0x51538b()[_0x1044c6('0x8fc')](0x2540be400),'openedAt':new Date(),'saved':![]};_0xc98b90[_0x1044c6('0x916')][_0x25b625['id']]=_0x25b625,_0x2cc74a();},_0xc98b90[_0x996e36('0x264e')]=function(_0x2c2435){var _0x22084a=_0x996e36;_0xc98b90['drafts']=_0x453b76();var _0x9aa9a1=_0xc98b90['drafts'][_0x2c2435['id']];_0x9aa9a1&&(_0x9aa9a1['content']=_0x2c2435[_0x22084a('0x1402')],_0xc98b90['drafts'][_0x2c2435['id']]=_0x9aa9a1,_0x2cc74a());},_0xc98b90[_0x996e36('0xb4')]=function(_0x24d169){var _0x37311b=_0x996e36;_0xc98b90['drafts']=_0x453b76();var _0xcdc38d=_0xc98b90['drafts'][_0x24d169];_0xcdc38d&&_0x335658[_0x37311b('0xd1')](_0x37311b('0xb4')+_0x51538b()['startCase'](_0xfd5cb8)+'Draft',_0xcdc38d);},_0xc98b90[_0x996e36('0xf6d')]=function(_0xfa9992){var _0x5d33e7=_0x996e36;_0xc98b90['drafts']=_0x453b76(),_0xc98b90[_0x5d33e7('0x916')][_0xfa9992]&&(delete _0xc98b90[_0x5d33e7('0x916')][_0xfa9992],_0x2cc74a());};function _0x453b76(){var _0x4d3acf=_0x996e36;_0x4bf3aa=_0x529448[_0x4d3acf('0xacc')]();var _0x527860=_0x1bcd45[_0x4d3acf('0x38e')]['getItem'](_0x4d3acf('0x123')+_0x4bf3aa['id']);_0x527860?_0xfd5cb8=JSON[_0x4d3acf('0x9b6')](_0x527860)['currentSidebarTab']:_0xfd5cb8=_0x4d3acf('0x55');_0x43caae=_0x1bcd45[_0x4d3acf('0x38e')][_0x4d3acf('0x173f')](_0x4d3acf('0x109a')+_0xfd5cb8+':'+_0x4bf3aa['id']);if(_0x43caae){var _0x48e056=JSON[_0x4d3acf('0x9b6')](_0x43caae);!_0x48e056['drafts']&&(_0x48e056['drafts']={}),_0x43caae=_0x48e056;}else _0x43caae={'drafts':{}};return _0x43caae['drafts'];}function _0x2cc74a(){var _0x433299=_0x996e36;_0x51538b()[_0x433299('0x116b')](_0xc98b90['drafts'])?delete _0x43caae['drafts']:_0x43caae[_0x433299('0x916')]=_0xc98b90[_0x433299('0x916')],_0x1bcd45[_0x433299('0x38e')][_0x433299('0xdbf')](_0x433299('0x109a')+_0xfd5cb8+':'+_0x4bf3aa['id'],JSON[_0x433299('0xa48')](_0x43caae));}return _0xc98b90;}function _0x222297(){var _0x2501ed=_0x1a8446,_0x3dedf0={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x142b7c,'$get':['$q',_0x2501ed('0x186b'),'$window',_0x2501ed('0x10ab'),_0x40e634]};function _0x142b7c(_0x250b24){var _0x1f86f8=_0x2501ed;for(var _0x4d2972 in _0x250b24){typeof _0x3dedf0[_0x4d2972]!==_0x1f86f8('0x1574')&&typeof _0x250b24[_0x4d2972]!=='undefined'&&(_0x3dedf0[_0x4d2972]=_0x250b24[_0x4d2972]);}}function _0x40e634(_0x1004bf,_0xc009da,_0x430975,_0x4b05e2){var _0x431be3=_0x2501ed,_0x4c1fdd=_0x430975[_0x431be3('0x274e')]||_0x430975[_0x431be3('0x16f6')]||_0x430975[_0x431be3('0x9f7')],_0xe6b3a8={'isSupported':_0x8612ed,'currentPermission':_0x467504,'requestPermission':_0x4743bd,'show':_0xd36a71,'permissions':{'default':_0x4b05e2[_0x431be3('0x1bb1')],'granted':_0x4b05e2['GRANTED'],'denied':_0x4b05e2[_0x431be3('0xb21')]}};return _0xe6b3a8;function _0x8612ed(){return!(typeof _0x4c1fdd==='undefined');}function _0x467504(){var _0xf26694=_0x431be3;return(_0x4c1fdd||{})[_0xf26694('0x1e0c')];}function _0x4743bd(){var _0x1e1d99=_0x431be3;if(!_0x8612ed())return _0x1004bf['reject'](_0x1e1d99('0x1b01'));var _0x5e1ac6=_0x1004bf['defer']();return Promise[_0x1e1d99('0x149f')](_0x4c1fdd[_0x1e1d99('0xc31')])==_0x4c1fdd[_0x1e1d99('0xc31')]?_0x4c1fdd['requestPermission']()[_0x1e1d99('0xaa5')](function(_0xfee77e){var _0x522c19=_0x1e1d99;_0x4b05e2[_0x522c19('0x1f4a')]===_0xfee77e?_0x5e1ac6[_0x522c19('0x149f')](_0xfee77e):_0x5e1ac6[_0x522c19('0xaee')](_0xfee77e);}):_0x4c1fdd[_0x1e1d99('0xc31')](function(_0x421e6e){var _0x2e02ca=_0x1e1d99;_0x4b05e2['GRANTED']===_0x421e6e?_0x5e1ac6[_0x2e02ca('0x149f')](_0x421e6e):_0x5e1ac6[_0x2e02ca('0xaee')](_0x421e6e);}),_0x5e1ac6[_0x1e1d99('0x159a')];}function _0xd36a71(_0x5d1b1c,_0x47e81d){var _0x3508ca=_0x431be3;_0x47e81d=_0x47e81d||{};if(!_0x8612ed()||!_0x16a247(_0x5d1b1c,_0x47e81d)||_0x4866b4(_0x47e81d[_0x3508ca('0x8ad')])||_0x467504()!==_0x4b05e2[_0x3508ca('0x1f4a')])return;var _0x25d493=new _0x4c1fdd(_0x5d1b1c,_0x47e81d),_0x2b0d63=_0x47e81d[_0x3508ca('0xdee')]||_0x3dedf0[_0x3508ca('0xdee')],_0x4cb37f=_0x47e81d[_0x3508ca('0x1fce')]===undefined?_0x3dedf0[_0x3508ca('0x1fce')]:_0x47e81d[_0x3508ca('0x1fce')];_0x25d493[_0x3508ca('0x424')]=function(){var _0x413cef=_0x3508ca;_0x47e81d[_0x413cef('0x16b1')]&&_0x47e81d[_0x413cef('0x16b1')](),_0x47e81d['focusOnclick']&&window[_0x413cef('0x14ae')](),_0x47e81d['closeOnClick']&&_0x25d493[_0x413cef('0x21d0')]();};if(_0x4cb37f)_0x2e7ee9(_0x25d493,_0x2b0d63);return _0x25d493;}function _0x16a247(_0x3e2721,_0x3af912){var _0x5ea90b=_0x431be3,_0x52534e=angular['isString'](_0x3e2721),_0x10402a=!_0x3af912[_0x5ea90b('0x16b1')]||angular[_0x5ea90b('0x171f')](_0x3af912[_0x5ea90b('0x16b1')]);return _0x52534e&&_0x10402a;}function _0x4866b4(_0x444a4b){var _0x2a91a4=_0x431be3;if(!_0x444a4b&&!_0x3dedf0[_0x2a91a4('0x8ad')])return;return!(window[_0x2a91a4('0x12aa')][_0x2a91a4('0x1ad2')]||window[_0x2a91a4('0x12aa')][_0x2a91a4('0x2420')]||window[_0x2a91a4('0x12aa')][_0x2a91a4('0x194')]);}function _0x2e7ee9(_0x4af42e,_0x98a56e){var _0x1e386b=_0x431be3,_0x27e8ad=_0x98a56e*0x3e8;_0xc009da(_0x4af42e[_0x1e386b('0x21d0')][_0x1e386b('0x1f46')](_0x4af42e),_0x27e8ad,![]);}}}function _0x41d46a(){var _0x38b686=_0x1a8446,_0x4740ac=angular[_0x38b686('0x952')](['ng'])[_0x38b686('0x2122')](_0x38b686('0x26bb')),_0x49f6ae=[],_0x5467ed=this;_0x5467ed[_0x38b686('0x24c7')]=_0x3e89d2,_0x5467ed['deleteItem']=_0x435c80;function _0x3e89d2(_0x2c4cd0,_0x2a7743){var _0x1d68f7=_0x38b686;if(!angular[_0x1d68f7('0x1dea')](_0x2c4cd0)){_0x4740ac['error'](_0x1d68f7('0x17a9'));return;}var _0x1f864e=_0x2c4cd0[_0x1d68f7('0x1a39')]('.'),_0x546f76=_0x1f864e[_0x1f864e[_0x1d68f7('0x2587')]-0x1],_0x42fa96=_0x2a43b3(_0x1f864e),_0x185f90=![];for(var _0x569958=0x0;_0x569958<_0x42fa96[_0x1d68f7('0x2587')];_0x569958++){if(_0x42fa96[_0x569958][_0x1d68f7('0x15de')]===_0x546f76){_0x185f90=_0x42fa96[_0x569958];break;}}_0x185f90?(angular[_0x1d68f7('0x5c5')](_0x185f90,_0x2a7743),_0x185f90[_0x1d68f7('0x450')]=_0xb1cfea(_0x185f90)):(_0x2a7743['children']=[],(angular[_0x1d68f7('0xec')](_0x2a7743['weight'])||!angular[_0x1d68f7('0x2065')](_0x2a7743[_0x1d68f7('0x6e9')]))&&(_0x2a7743[_0x1d68f7('0x6e9')]=0x1),_0x2a7743[_0x1d68f7('0x15de')]=_0x546f76,_0x2a7743[_0x1d68f7('0x259a')]=_0x2c4cd0,_0x2a7743[_0x1d68f7('0x450')]=_0xb1cfea(_0x2a7743),_0x42fa96[_0x1d68f7('0x1599')](_0x2a7743));}function _0x435c80(_0x5f3405){var _0x1bd000=_0x38b686;if(!angular['isString'](_0x5f3405)){_0x4740ac[_0x1bd000('0x187f')](_0x1bd000('0x17a9'));return;}var _0x29b583=_0x49f6ae,_0x3ee031=_0x5f3405[_0x1bd000('0x1a39')]('.');for(var _0x23bfeb=0x0;_0x23bfeb<_0x3ee031['length'];_0x23bfeb++){var _0x26295a=_0x3ee031[_0x23bfeb];for(var _0x2f2bd4=0x0;_0x2f2bd4<_0x29b583[_0x1bd000('0x2587')];_0x2f2bd4++){if(_0x29b583[_0x2f2bd4]['_id']===_0x26295a){if(_0x29b583[_0x2f2bd4][_0x1bd000('0x259a')]===_0x5f3405)return _0x29b583[_0x1bd000('0x1280')](_0x2f2bd4,0x1),!![];_0x29b583=_0x29b583[_0x2f2bd4][_0x1bd000('0x12ad')];break;}}}return![];}function _0x2a43b3(_0x20a87d){var _0x53b0ad=_0x38b686,_0x3940ec=_0x49f6ae;if(_0x20a87d[_0x53b0ad('0x2587')]===0x1)return _0x3940ec;_0x20a87d[_0x53b0ad('0x21b')]();for(var _0x3b9b8a=0x0;_0x3b9b8a<_0x20a87d[_0x53b0ad('0x2587')];_0x3b9b8a++){var _0xbfbe53=_0x20a87d[_0x3b9b8a],_0x530397=!![];for(var _0x139f58=0x0;_0x139f58<_0x3940ec['length'];_0x139f58++){if(_0x3940ec[_0x139f58][_0x53b0ad('0x15de')]===_0xbfbe53){_0x3940ec=_0x3940ec[_0x139f58]['children'],_0x530397=![];break;}}if(_0x530397){var _0x1edae2={'_id':_0xbfbe53,'_path':_0x20a87d['join']('.'),'title':_0xbfbe53,'weight':0x1,'children':[]};_0x3940ec[_0x53b0ad('0x1599')](_0x1edae2),_0x3940ec=_0x1edae2['children'];}}return _0x3940ec;}function _0xb1cfea(_0x5770fd){var _0x175cb4=_0x38b686,_0x5cafd9='';return angular[_0x175cb4('0x21dc')](_0x5770fd[_0x175cb4('0xb46')])&&(_0x5cafd9=_0x5770fd[_0x175cb4('0xb46')],angular['isDefined'](_0x5770fd[_0x175cb4('0x1926')])&&angular[_0x175cb4('0x1189')](_0x5770fd[_0x175cb4('0x1926')])&&(_0x5cafd9=_0x5cafd9+'('+angular[_0x175cb4('0xfd8')](_0x5770fd[_0x175cb4('0x1926')])+')')),_0x5cafd9;}this[_0x38b686('0x149')]=function(){var _0x2a6f2a={'saveItem':_0x3e89d2,'getNavigation':_0x572736};return _0x2a6f2a;function _0x572736(_0x545556){var _0x11ef93=a0_0x1149;if(_0x545556){for(var _0x397d16=0x0;_0x397d16<_0x49f6ae[_0x11ef93('0x2587')];_0x397d16++){if(_0x49f6ae[_0x397d16][_0x11ef93('0x15de')]===_0x545556)return[_0x49f6ae[_0x397d16]];}return null;}return _0x49f6ae;}};}var _0x27b8fd={'DEFAULT':_0x1a8446('0x449'),'GRANTED':_0x1a8446('0x1e9b'),'DENIED':_0x1a8446('0x6f2')};_0x82c85d[_0x1a8446('0x1e33')]=[_0x1a8446('0x157')];function _0x82c85d(_0x5b5cee){var _0x3d4518=_0x1a8446,_0x29344b=this;_0x29344b[_0x3d4518('0x143f')]={},_0x29344b[_0x3d4518('0x1783')]={'count':0x0,'rows':[]},_0x29344b[_0x3d4518('0x1918')]=![];function _0x15a2c3(_0x5eb9d7,_0x33434b){var _0x52fc28=_0x3d4518;_0x29344b[_0x52fc28('0x143f')]=_0x33434b,_0x29344b[_0x52fc28('0x25c2')]=_0x5eb9d7,_0x29344b[_0x52fc28('0x25c2')][_0x52fc28('0x1072')]=!![];if(_0x29344b[_0x52fc28('0x25c2')]&&_0x29344b[_0x52fc28('0x25c2')][_0x52fc28('0x10fd')]&&_0x29344b['tab'][_0x52fc28('0x10fd')][_0x52fc28('0x1a6')])return _0x5b5cee[_0x52fc28('0x14dc')][_0x52fc28('0x2122')]({'uniqueid':_0x29344b['tab'][_0x52fc28('0x10fd')][_0x52fc28('0x1a6')]})[_0x52fc28('0x1dc2')]['then'](function(_0x3a58ce){var _0x102c75=_0x52fc28;_0x29344b[_0x102c75('0x1783')]=_0x3a58ce;})[_0x52fc28('0x1889')](function(){var _0x5ebb92=_0x52fc28;_0x29344b[_0x5ebb92('0x1918')]=!![];});else _0x29344b[_0x52fc28('0x1918')]=!![];}function _0x1d7b16(_0x59da39){var _0x1a2dc0=_0x3d4518;switch(_0x29344b[_0x1a2dc0('0x143f')][_0x1a2dc0('0x1c08')]){case _0x1a2dc0('0xbe1'):if(_0x59da39[_0x1a2dc0('0x1108')]=='in')return _0x59da39['direction'];return _0x1a2dc0('0xf2a');case _0x1a2dc0('0x24af'):if(_0x59da39[_0x1a2dc0('0x1108')]=='in')return'in-right-aligned';return _0x59da39[_0x1a2dc0('0x1108')];default:return _0x59da39[_0x1a2dc0('0x1108')];}}_0x29344b[_0x3d4518('0x2e')]=_0x15a2c3,_0x29344b[_0x3d4518('0x16e')]=_0x1d7b16;}const _0x1209e6=_0x82c85d,_0x1121c7=_0x4fb511['p']+_0x1a8446('0xf35'),_0x42c3f9=_0x4fb511['p']+_0x1a8446('0x23eb'),_0x37f75a=_0x4fb511['p']+_0x1a8446('0x1ee0'),_0x4f8825=_0x4fb511['p']+_0x1a8446('0x139a'),_0x1b0547=_0x4fb511['p']+_0x1a8446('0x1423'),_0x1ba0a3=_0x4fb511['p']+_0x1a8446('0xcd1'),_0x4bb35d=_0x4fb511['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html/dialog-[chunkhash].html',_0xff47ba=_0x4fb511['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.html/dialog-[chunkhash].html';_0x4faf7c[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0x51'),'$q',_0x1a8446('0x157'),'toasty','Auth',_0x1a8446('0xcb3'),_0x1a8446('0x25c')];var _0x56b243={'fax':_0x4f8825,'mail':_0x1b0547,'openchannel':_0x1ba0a3,'sms':_0x4bb35d,'whatsapp':_0xff47ba};function _0x4faf7c(_0x258fd8,_0xe8ba2d,_0x2a8d1b,_0x285cac,_0x5b1a3a,_0x1a495f,_0x182678,_0x56cd18,_0x41c692,_0x42955d){var _0x7d918=_0x1a8446,_0x42ceca=this;_0x42ceca['user']=_0x56cd18['getCurrentUser'](),_0x42ceca[_0x7d918('0x2007')]=_0x42955d['detectBrowser'](),_0x42ceca[_0x7d918('0x98f')]=[],_0x42ceca['queryHopper']={'fields':'id,phone,scheduledat','sort':_0x7d918('0xd82'),'limit':0xa,'page':0x1},_0x42ceca[_0x7d918('0xec1')]={'fields':_0x7d918('0x3f9'),'sort':_0x7d918('0xd82'),'limit':0xa,'page':0x1},_0x42ceca[_0x7d918('0x2a8')]={'fields':_0x7d918('0x24b8'),'sort':_0x7d918('0xd82'),'limit':0xa,'page':0x1},_0x42ceca[_0x7d918('0x10d1')]={'rows':[],'count':0x0},_0x42ceca['finals']={'rows':[],'count':0x0},_0x42ceca['histories']={'rows':[],'count':0x0},_0x42ceca['firstDayMonth']=new Date(_0x420d43()()[_0x7d918('0x206d')]('month')[_0x7d918('0x2865')](0x1,_0x7d918('0x116c'))[_0x7d918('0x15db')](0x0,!![])[_0x7d918('0x1f27')]()),_0x42ceca[_0x7d918('0xb13')]=new Date(_0x420d43()()['endOf'](_0x7d918('0xae9'))[_0x7d918('0x2865')](0x1,'day')[_0x7d918('0x15db')](0x0,!![])[_0x7d918('0x1f27')]()),_0x42ceca['addNewContact']=_0x50d255,_0x42ceca[_0x7d918('0x1de1')]=_0xb6db64,_0x42ceca[_0x7d918('0xe57')]=_0xcf27ad,_0x42ceca[_0x7d918('0x1432')]=_0x285cac[_0x7d918('0x24a3')]['vm']['call'],_0x42ceca[_0x7d918('0x1dbe')]=_0x3fb984,_0x42ceca[_0x7d918('0x10')]=_0xe3faba,_0x42ceca[_0x7d918('0x1e9e')]=_0x6e88ab,_0x42ceca[_0x7d918('0xc09')]=_0x23ee86,_0x42ceca[_0x7d918('0x2412')]=_0xdebd4d,_0x42ceca[_0x7d918('0xf48')]=_0x5b90d3,_0x42ceca['getFinals']=_0x218591,_0x42ceca[_0x7d918('0x26f6')]=_0x256c83,_0x42ceca[_0x7d918('0x1160')]=_0x937a54,_0x42ceca[_0x7d918('0x1fb2')]=_0x40aa5c,_0x42ceca[_0x7d918('0x1a9b')]=_0xcc76de,_0x42ceca[_0x7d918('0x2741')]=_0x1e3bf7,_0x42ceca[_0x7d918('0xe95')]=_0x2b4942,_0x42ceca[_0x7d918('0x1a97')]=_0x2ca6eb,_0x42ceca['getChatWebsites']=_0xfb6559,_0x42ceca['getLists']=_0x9c5036,_0x42ceca[_0x7d918('0x1914')]=_0x52db21,_0x42ceca['init']=_0xaf940c,_0x42ceca[_0x7d918('0x69e')]=_0x24d28c,_0x42ceca[_0x7d918('0x282')]=_0x148f49,_0x42ceca[_0x7d918('0x1715')]=_0x15317f,_0x42ceca[_0x7d918('0x621')]=_0x177d3c,_0x42ceca['getJscriptyProjects']();function _0x177d3c(_0x23dca1){var _0x5180d6=_0x7d918;if(_0x23dca1['FaxAccountId'])return _0x51538b()[_0x5180d6('0x13d6')](_0x51538b()[_0x5180d6('0x1246')](_0x42ceca[_0x5180d6('0xf2c')]?_0x42ceca[_0x5180d6('0xf2c')][_0x5180d6('0x580')]:[],'id'),_0x23dca1[_0x5180d6('0x16a8')]);else{if(_0x23dca1[_0x5180d6('0x62c')])return _0x51538b()[_0x5180d6('0x13d6')](_0x51538b()[_0x5180d6('0x1246')](_0x42ceca['openchannelAccounts']?_0x42ceca[_0x5180d6('0x23f0')][_0x5180d6('0x580')]:[],'id'),_0x23dca1[_0x5180d6('0x62c')]);else{if(_0x23dca1[_0x5180d6('0xaa0')])return _0x51538b()['includes'](_0x51538b()[_0x5180d6('0x1246')](_0x42ceca[_0x5180d6('0x18a1')]?_0x42ceca[_0x5180d6('0x18a1')][_0x5180d6('0x580')]:[],'id'),_0x23dca1['SmsAccountId']);else{if(_0x23dca1[_0x5180d6('0x1ab5')])return _0x51538b()[_0x5180d6('0x13d6')](_0x51538b()[_0x5180d6('0x1246')](_0x42ceca[_0x5180d6('0x2613')]?_0x42ceca[_0x5180d6('0x2613')]['rows']:[],'id'),_0x23dca1[_0x5180d6('0x1ab5')]);else{if(_0x23dca1[_0x5180d6('0x2307')])return _0x51538b()[_0x5180d6('0x13d6')](_0x51538b()[_0x5180d6('0x1246')](_0x42ceca['mailAccounts']?_0x42ceca['mailAccounts'][_0x5180d6('0x580')]:[],'id'),_0x23dca1[_0x5180d6('0x2307')]);else{if(_0x23dca1[_0x5180d6('0x1421')])return _0x51538b()[_0x5180d6('0x13d6')](_0x51538b()[_0x5180d6('0x1246')](_0x42ceca[_0x5180d6('0x86c')]?_0x42ceca[_0x5180d6('0x86c')]['rows']:[],'id'),_0x23dca1[_0x5180d6('0x1421')]);else{if(_0x23dca1[_0x5180d6('0x1458')])return!![];}}}}}}return![];}function _0x148f49(_0x4fbac1,_0x20ebd5){var _0x81c3c1=_0x7d918;try{if(_0x20ebd5[_0x81c3c1('0x2307')])return _0x285cac[_0x81c3c1('0x24a3')][_0x81c3c1('0x24a3')]['$parent']['vm'][_0x81c3c1('0x15e0')](_0x81c3c1('0x14c5'),_0x20ebd5);else{if(_0x20ebd5[_0x81c3c1('0x1421')])return _0x285cac[_0x81c3c1('0x24a3')]['$parent'][_0x81c3c1('0x24a3')]['vm'][_0x81c3c1('0x15e0')](_0x81c3c1('0x20f9'),_0x20ebd5);else{if(_0x20ebd5[_0x81c3c1('0xaa0')])return _0x285cac[_0x81c3c1('0x24a3')][_0x81c3c1('0x24a3')][_0x81c3c1('0x24a3')]['vm']['addInteractionTab'](_0x81c3c1('0x18da'),_0x20ebd5);else{if(_0x20ebd5['WhatsappAccountId'])return _0x285cac[_0x81c3c1('0x24a3')][_0x81c3c1('0x24a3')][_0x81c3c1('0x24a3')]['vm'][_0x81c3c1('0x15e0')](_0x81c3c1('0x220d'),_0x20ebd5);else{if(_0x20ebd5[_0x81c3c1('0x62c')])return _0x285cac[_0x81c3c1('0x24a3')]['$parent'][_0x81c3c1('0x24a3')]['vm'][_0x81c3c1('0x15e0')]('openchannel',_0x20ebd5);else{if(_0x20ebd5['FaxAccountId'])return _0x285cac[_0x81c3c1('0x24a3')][_0x81c3c1('0x24a3')][_0x81c3c1('0x24a3')]['vm'][_0x81c3c1('0x15e0')](_0x81c3c1('0x16c4'),_0x20ebd5);}}}}}}catch(_0x4bdd34){_0x182678['error']({'title':_0x81c3c1('0x1048'),'msg':_0x81c3c1('0x804')});}}function _0x49e82d(_0x517277){var _0x2d4b1b=_0x7d918;if(!_0x517277[_0x2d4b1b('0x106e')])return'('+_0x41c692['instant'](_0x2d4b1b('0x2615'))+')';var _0x513870=_0x51538b()[_0x2d4b1b('0x1c9e')]([_0x517277[_0x2d4b1b('0x106e')],_0x517277['secondDisposition'],_0x517277[_0x2d4b1b('0x66e')]]);return'('+_0x513870[_0x2d4b1b('0x19c4')](_0x2d4b1b('0x169e'))+')';}function _0x5de00c(_0x310d98){var _0x4178fa=_0x7d918;_0x310d98&&_0x310d98[_0x4178fa('0xd15')]&&_0x310d98[_0x4178fa('0x580')][_0x4178fa('0x2587')]&&(_0x42ceca[_0x4178fa('0x98f')]=_0x51538b()[_0x4178fa('0x9e4')](_0x42ceca[_0x4178fa('0x98f')],_0x310d98['rows']),_0x42ceca[_0x4178fa('0x98f')][_0x4178fa('0x15b5')](function(_0x15d9a7){var _0x58a580=_0x4178fa;_0x15d9a7[_0x58a580('0x1fac')]=_0x49e82d(_0x15d9a7);}));}function _0x16e006(_0x579518){var _0x2d6b62=_0x7d918,_0x340bed=[_0x2d6b62('0x14c5'),'chat','sms',_0x2d6b62('0x170'),_0x2d6b62('0x16c4'),_0x2d6b62('0x220d')];if(_0x579518&&_0x579518['id']){for(var _0x17dfd5=0x0;_0x17dfd5<_0x340bed[_0x2d6b62('0x2587')];_0x17dfd5++){_0x1a495f[_0x340bed[_0x17dfd5]+_0x2d6b62('0x11')][_0x2d6b62('0x2122')]({'ContactId':_0x579518['id'],'journey':!![],'includeAll':!![]})[_0x2d6b62('0x1dc2')][_0x2d6b62('0xaa5')](_0x5de00c);}_0x1a495f[_0x2d6b62('0x4d4')][_0x2d6b62('0x2122')]({'ContactId':_0x579518['id'],'includeAll':!![]})[_0x2d6b62('0x1dc2')][_0x2d6b62('0xaa5')](_0x5de00c)['catch'](function(_0x5d5ac1){var _0x3439b9=_0x2d6b62;console[_0x3439b9('0x187f')](_0x5d5ac1);});}}function _0x3275cc(_0xf6647){var _0x216813=_0x7d918;switch(_0xf6647){case _0x216813('0x20f9'):return _0x216813('0x1192');case'mail':return _0x216813('0x21d1');case'sms':return _0x216813('0x1ad3');case'openchannel':return _0x216813('0x7d2');case _0x216813('0x16c4'):return'blue-grey-A200';case _0x216813('0x220d'):return'lime-A700';default:return _0x216813('0x5f3');}}function _0x15317f(_0x187ea7){var _0x2e1e30=_0x7d918,_0x116b22='';if(_0x187ea7[_0x2e1e30('0x16a8')])_0x116b22='fax';else{if(_0x187ea7['OpenchannelAccountId'])_0x116b22='openchannel';else{if(_0x187ea7[_0x2e1e30('0xaa0')])_0x116b22=_0x2e1e30('0x18da');else{if(_0x187ea7[_0x2e1e30('0x1ab5')])_0x116b22=_0x2e1e30('0x220d');else{if(_0x187ea7[_0x2e1e30('0x2307')])_0x116b22=_0x2e1e30('0x14c5');else{if(_0x187ea7['ChatWebsiteId'])_0x116b22=_0x2e1e30('0x20f9');else _0x187ea7[_0x2e1e30('0x1458')]&&(_0x116b22=_0x2e1e30('0x1b9'));}}}}}return _0x3275cc(_0x116b22);}function _0xaf940c(_0x3b8508,_0x41f19c){var _0x485896=_0x7d918;return _0x42ceca[_0x485896('0x25c2')]=_0x3b8508,_0x285cac[_0x485896('0xc61')]([_0x485896('0x2180'),_0x485896('0x268d')],function(_0x33f4ec){var _0x4bb63a=_0x485896;_0x42ceca[_0x4bb63a('0x25c2')][_0x4bb63a('0x1072')]=_0x33f4ec[0x0]&&_0x33f4ec[0x1];}),_0x42ceca['license']=_0x41f19c,_0x42ceca[_0x485896('0x3c6')]=_0x42ceca['tab'][_0x485896('0x3c6')],_0x42ceca[_0x485896('0x1a23')]=![],_0x42ceca[_0x485896('0xd7a')]=0x0,_0x1a495f[_0x485896('0x272b')][_0x485896('0x2122')]({'fields':_0x485896('0x915'),'nolimit':!![]})['$promise'][_0x485896('0xaa5')](function(_0x3682b9){var _0x587993=_0x485896;_0x42ceca[_0x587993('0x2204')]=_0x3682b9||{'count':0x0,'rows':[]},_0x42ceca['usersMap']=_0x51538b()['mapValues'](_0x51538b()[_0x587993('0x184a')](_0x42ceca['users'][_0x587993('0x580')],'id'),_0x587993('0x18e5'));return;})[_0x485896('0xaa5')](function(){var _0x45780b=_0x485896,_0x3454ee=[],_0x2f0b3f=function _0x39a0b7(_0x56295c){var _0x315c15=a0_0x1149,_0x1bb494=_0x42ceca[_0x315c15('0x25c2')]['calls'][_0x56295c];_0x3454ee['push'](_0x1a495f[_0x315c15('0x4d4')]['get']({'uniqueid':_0x1bb494[_0x315c15('0x1a6')]})[_0x315c15('0x1dc2')][_0x315c15('0xaa5')](function(_0x329e79){var _0x44c716=_0x315c15;_0x329e79&&_0x329e79[_0x44c716('0x580')][_0x44c716('0x2587')]>0x0&&(_0x1bb494[_0x44c716('0x3e4')]=_0x51538b()[_0x44c716('0xe75')](_0x329e79[_0x44c716('0x580')])[_0x44c716('0x1187')]);return;}));};for(var _0x4d650=0x0;_0x4d650<_0x42ceca[_0x45780b('0x25c2')][_0x45780b('0x2109')][_0x45780b('0x2587')];_0x4d650++){_0x2f0b3f(_0x4d650);}return _0x5b1a3a[_0x45780b('0xa15')](_0x3454ee);})[_0x485896('0xaa5')](function(){var _0x1effc4=_0x485896;if(_0x42ceca[_0x1effc4('0x3c6')]&&_0x42ceca[_0x1effc4('0x3c6')]['id']){var _0x6f1cda={'id':_0x42ceca[_0x1effc4('0x3c6')]['id'],'ListId':_0x42ceca[_0x1effc4('0x3c6')][_0x1effc4('0xee0')],'limit':0x1,'offset':0x0,'sort':_0x1effc4('0xd82')};return _0x1a495f[_0x1effc4('0xdbd')][_0x1effc4('0x2122')](_0x6f1cda)['$promise'][_0x1effc4('0xaa5')](function(_0x556e44){var _0x508e16=_0x1effc4;return _0x42ceca[_0x508e16('0x3c6')]=_0x556e44,_0x42ceca[_0x508e16('0x25c2')][_0x508e16('0x3c6')]=_0x556e44,_0x1a495f[_0x508e16('0x272b')][_0x508e16('0x238a')]({'id':_0x42ceca[_0x508e16('0x272b')]['id'],'ids':[_0x42ceca[_0x508e16('0x3c6')]['id']]});})[_0x1effc4('0xaa5')](function(){var _0x94b661=_0x1effc4;if(_0x42ceca[_0x94b661('0x3c6')]['ListId'])return _0x1a495f[_0x94b661('0x106e')][_0x94b661('0x2122')]({'ListId':_0x42ceca[_0x94b661('0x3c6')]['ListId']})[_0x94b661('0x1dc2')]['then'](function(_0x65b0ce){var _0x1227a2=_0x94b661;return _0x42ceca['tab'][_0x1227a2('0xa9')]=_0x65b0ce,_0x1a495f[_0x1227a2('0x26b4')]['getCustomFields']({'id':_0x42ceca[_0x1227a2('0x3c6')]['ListId']})[_0x1227a2('0x1dc2')];})['then'](function(_0x1e37ae){var _0x490467=_0x94b661;_0x42ceca[_0x490467('0x25c2')]['customFields']=_0x1e37ae;return;});return;})[_0x1effc4('0xaa5')](function(){var _0x4317e8=_0x1effc4;try{_0x42ceca[_0x4317e8('0x25c2')][_0x4317e8('0x554')]=_0x285cac[_0x4317e8('0x24a3')][_0x4317e8('0x24a3')][_0x4317e8('0x24a3')]['vm'][_0x4317e8('0x255c')],_0x42ceca[_0x4317e8('0x25c2')][_0x4317e8('0x1126')]=_0x285cac[_0x4317e8('0x24a3')]['$parent'][_0x4317e8('0x24a3')]['vm']['globalLists'],_0x42ceca[_0x4317e8('0x25c2')]['companies']=_0x285cac['$parent'][_0x4317e8('0x24a3')][_0x4317e8('0x24a3')]['vm'][_0x4317e8('0xd24')],_0x42ceca['tab']['tags']=_0x285cac[_0x4317e8('0x24a3')][_0x4317e8('0x24a3')][_0x4317e8('0x24a3')]['vm'][_0x4317e8('0x354')],_0x42ceca[_0x4317e8('0x25c2')][_0x4317e8('0x1b3f')]=0x0,_0x42ceca['contact'][_0x4317e8('0xee0')]&&(_0x42ceca[_0x4317e8('0x25c2')][_0x4317e8('0x554')][_0x4317e8('0x580')]=_0x51538b()['unionBy'](_0x42ceca[_0x4317e8('0x25c2')][_0x4317e8('0x554')]['rows'],_0x51538b()[_0x4317e8('0xdb7')](_0x42ceca[_0x4317e8('0x25c2')][_0x4317e8('0x1126')][_0x4317e8('0x580')],{'id':_0x42ceca[_0x4317e8('0x3c6')]['ListId']}),'id'),_0x42ceca[_0x4317e8('0x2334')]=_0x51538b()[_0x4317e8('0xe9e')](_0x42ceca['tab'][_0x4317e8('0x554')]['rows'],{'id':_0x42ceca[_0x4317e8('0x3c6')]['ListId']}));}catch(_0x1cdde9){}_0x42ceca['getHoppers'](),_0x42ceca[_0x4317e8('0x1576')](),_0x42ceca[_0x4317e8('0x26f6')](),_0x42ceca['getMailAccounts'](),_0x42ceca[_0x4317e8('0x1a9b')](),_0x42ceca[_0x4317e8('0x2741')](),_0x42ceca['getWhatsappAccounts'](),_0x42ceca['getOpenchannelAccounts'](),_0x42ceca[_0x4317e8('0x1554')](),_0x42ceca[_0x4317e8('0xcfd')]();return;})['then'](function(){var _0x1714dd=_0x1effc4;return _0x1a495f[_0x1714dd('0xdbd')]['getTags']({'id':_0x42ceca[_0x1714dd('0x3c6')]['id']})[_0x1714dd('0x1dc2')][_0x1714dd('0xaa5')](function(_0x3d8ce1){var _0xd0b567=_0x1714dd;_0x42ceca[_0xd0b567('0x25c2')][_0xd0b567('0x67f')]=_0x51538b()[_0xd0b567('0x1246')](_0x3d8ce1[_0xd0b567('0x580')],'id');return;});});}else{_0x42ceca[_0x1effc4('0x1a23')]=!![];if(_0x3b8508[_0x1effc4('0x1b3f')])return console['log']('autoCreate'),_0x42ceca[_0x1effc4('0xe1f')]();return;}})['then'](_0x16e006(_0x42ceca[_0x485896('0x3c6')]));}function _0x52db21(_0x562d08,_0x1a79d3,_0x3b8365,_0x4a29d9){var _0x3039b2=_0x7d918,_0x4ecd28=_0x1a79d3[_0x3039b2('0xcf6')]();_0x258fd8['show']({'controller':_0x3039b2('0x1ea4')+_0x1a79d3+_0x3039b2('0x75c'),'controllerAs':'vm','templateUrl':_0x56b243[_0x4ecd28],'parent':angular[_0x3039b2('0x1aa8')](_0xe8ba2d[_0x3039b2('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x3b8365,'message':{'to':_0x4ecd28==_0x3039b2('0x14c5')?_0x4a29d9:_0x4a29d9[_0x3039b2('0x1a39')](',')},'type':_0x3039b2('0x1062'),'interaction':{'Contact':_0x42ceca[_0x3039b2('0x3c6')]}},'fullscreen':!![]})[_0x3039b2('0xaa5')](function(_0x3e2d3c){var _0x523391=_0x3039b2;return _0x1a495f[_0x4ecd28+_0x523391('0x75a')][_0x523391('0x1e80')]({'id':_0x3b8365['id']},_0x3e2d3c)['$promise'][_0x523391('0xaa5')](function(_0x100d2f){var _0x30c93b=_0x523391;if(_0x1a79d3===_0x30c93b('0x2cc')){var _0x534e25=_0x100d2f;if(_0x534e25&&_0x534e25['Messages']&&_0x534e25['Messages']['length']){if(_0x3e2d3c[_0x30c93b('0x1c8c')]&&_0x3e2d3c[_0x30c93b('0x1c8c')][_0x30c93b('0x2587')])for(var _0x3d2c52=0x0;_0x3d2c52<_0x3e2d3c[_0x30c93b('0x1c8c')][_0x30c93b('0x2587')];_0x3d2c52+=0x1){_0x1a495f['attachment'][_0x30c93b('0x264e')]({'id':_0x3e2d3c[_0x30c93b('0x1c8c')][_0x3d2c52]['id']},{'MailMessageId':_0x51538b()[_0x30c93b('0x19da')](_0x534e25[_0x30c93b('0x1cd2')])['id']});}_0x182678['success']({'title':_0x30c93b('0x812'),'msg':_0x30c93b('0x22b4')});if(_0x534e25[_0x30c93b('0x1cbd')]){_0x534e25['disposition']=null;var _0x1a809e=!_0x3b8365[_0x30c93b('0x1844')],_0x5d3fb9=_0x42ceca['user'][_0x30c93b('0x2519')]||_0x42ceca[_0x30c93b('0x272b')]['chatPause']||_0x42ceca[_0x30c93b('0x272b')][_0x30c93b('0x21f')]||_0x42ceca[_0x30c93b('0x272b')][_0x30c93b('0xc8f')]||_0x42ceca[_0x30c93b('0x272b')][_0x30c93b('0x135b')];_0x258fd8[_0x30c93b('0x1e6d')]({'controller':_0x30c93b('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular['element'](_0xe8ba2d[_0x30c93b('0x54c')]),'onRemoving':function _0x202cab(){var _0x3b70a7=_0x30c93b;_0x42ceca[_0x3b70a7('0x272b')]&&_0x3b8365[_0x3b70a7('0x1844')]&&!_0x5d3fb9&&_0x1a495f[_0x3b70a7('0x272b')][_0x3b70a7('0x297')]({'id':_0x42ceca[_0x3b70a7('0x272b')]['id']})[_0x3b70a7('0x1dc2')][_0x3b70a7('0x253d')](function(_0x2cd233){console['error'](_0x2cd233);});},'clickOutsideToClose':_0x1a809e,'escapeToClose':_0x1a809e,'locals':{'user':_0x42ceca[_0x30c93b('0x272b')],'channel':_0x30c93b('0x14c5'),'interaction':_0x534e25}});}else _0x285cac[_0x30c93b('0x24a3')]['vm'][_0x30c93b('0x15e0')]('mail',_0x534e25);}}else _0x182678[_0x30c93b('0xe10')]({'title':_0x30c93b('0x812'),'msg':'Message\x20has\x20been\x20sent!'}),_0x285cac[_0x30c93b('0x24a3')]['vm'][_0x30c93b('0x15e0')](_0x4ecd28,_0x100d2f);})[_0x523391('0x253d')](function(_0x1f1601){var _0xaa043f=_0x523391;if(_0x1f1601[_0xaa043f('0x10fd')]&&_0x1f1601[_0xaa043f('0x10fd')]['errors']&&_0x1f1601[_0xaa043f('0x10fd')][_0xaa043f('0x4c6')]['length'])for(var _0x260d0a=0x0;_0x260d0a<_0x1f1601['data']['errors']['length'];_0x260d0a+=0x1){_0x182678['error']({'title':_0x1f1601[_0xaa043f('0x10fd')][_0xaa043f('0x4c6')][_0x260d0a][_0xaa043f('0x6c8')],'msg':_0x1f1601['data'][_0xaa043f('0x4c6')][_0x260d0a][_0xaa043f('0x1402')]});}else _0x4ecd28===_0xaa043f('0x16c4')?_0x182678[_0xaa043f('0x187f')]({'title':'FAX:SEND','msg':_0x1f1601[_0xaa043f('0x10fd')]?JSON[_0xaa043f('0xa48')](_0x1f1601['data']):_0x1f1601[_0xaa043f('0x1402')]||_0x1f1601['toString']()}):_0x182678[_0xaa043f('0x187f')]({'title':_0x1f1601[_0xaa043f('0x2fa')]?_0xaa043f('0x16c2')+_0x1f1601[_0xaa043f('0x2fa')]+_0xaa043f('0x169e')+_0x1f1601['statusText']:_0x1a79d3[_0xaa043f('0x1d08')]()+_0xaa043f('0x11a2'),'msg':_0x1f1601[_0xaa043f('0x10fd')]?JSON[_0xaa043f('0xa48')](_0x1f1601[_0xaa043f('0x10fd')][_0xaa043f('0x1402')]):_0x1f1601['message']||_0x1f1601['toString']()});});});}function _0x50d255(){var _0x361fb1=_0x7d918;_0x42ceca[_0x361fb1('0x4c6')]=[],_0x1a495f[_0x361fb1('0xdbd')][_0x361fb1('0x242b')](_0x42ceca['contact'])[_0x361fb1('0x1dc2')][_0x361fb1('0xaa5')](function(_0x5a4ef9){var _0x13a41b=_0x361fb1;return _0x42ceca[_0x13a41b('0x3c6')]['id']=_0x5a4ef9['id'],_0x42ceca[_0x13a41b('0x1a23')]=![],_0x42ceca['tab'][_0x13a41b('0x110a')]=_0x5a4ef9[_0x13a41b('0x24c1')]||_0x5a4ef9[_0x13a41b('0x1a46')],_0x42ceca[_0x13a41b('0x25c2')][_0x13a41b('0x3c6')]=_0x42ceca[_0x13a41b('0x3c6')],_0x1a495f['user'][_0x13a41b('0x238a')]({'id':_0x56cd18[_0x13a41b('0xacc')]()['id'],'ids':[_0x5a4ef9['id']]});})[_0x361fb1('0xaa5')](function(){var _0x525aec=_0x361fb1;_0x42ceca[_0x525aec('0xc1c')]['$pristine']=!![],_0x42ceca[_0x525aec('0x205d')][_0x525aec('0x10f2')]=!![],_0x182678[_0x525aec('0xe10')]({'title':_0x525aec('0x1ed1'),'msg':_0x42ceca[_0x525aec('0x3c6')][_0x525aec('0x24c1')]?_0x42ceca[_0x525aec('0x3c6')][_0x525aec('0x24c1')]+'\x20has\x20been\x20created!':''});})[_0x361fb1('0xaa5')](function(){var _0x31a0a7=_0x361fb1;return _0x1a495f[_0x31a0a7('0xdbd')][_0x31a0a7('0x2392')]({'id':_0x42ceca[_0x31a0a7('0x3c6')]['id'],'ids':_0x42ceca['tab'][_0x31a0a7('0x67f')]})[_0x31a0a7('0x1dc2')];})[_0x361fb1('0x253d')](function(_0x54e51b){var _0x3688e8=_0x361fb1;if(_0x54e51b['data']&&_0x54e51b['data'][_0x3688e8('0x4c6')]&&_0x54e51b[_0x3688e8('0x10fd')][_0x3688e8('0x4c6')]['length']){_0x42ceca[_0x3688e8('0x4c6')]=_0x54e51b['data'][_0x3688e8('0x4c6')]||[{'message':_0x54e51b[_0x3688e8('0x684')](),'type':'api.contact.save'}];for(var _0x4b5876=0x0;_0x4b5876<_0x54e51b[_0x3688e8('0x10fd')][_0x3688e8('0x4c6')][_0x3688e8('0x2587')];_0x4b5876+=0x1){_0x182678[_0x3688e8('0x187f')]({'title':_0x54e51b[_0x3688e8('0x10fd')]['errors'][_0x4b5876]['type'],'msg':_0x54e51b[_0x3688e8('0x10fd')][_0x3688e8('0x4c6')][_0x4b5876][_0x3688e8('0x1402')]});}}else _0x182678[_0x3688e8('0x187f')]({'title':_0x54e51b[_0x3688e8('0x2fa')]?_0x3688e8('0x16c2')+_0x54e51b[_0x3688e8('0x2fa')]+_0x3688e8('0x169e')+_0x54e51b['statusText']:_0x3688e8('0x1fa2'),'msg':_0x54e51b['data']?JSON[_0x3688e8('0xa48')](_0x54e51b[_0x3688e8('0x10fd')]['message']):_0x54e51b[_0x3688e8('0x684')]()});});}function _0xb6db64(){var _0x94159b=_0x7d918;_0x42ceca[_0x94159b('0x4c6')]=[],_0x1a495f['cmContact']['update']({'id':_0x42ceca[_0x94159b('0x3c6')]['id']},_0x42ceca['contact'])['$promise']['then'](function(_0x21265c){var _0x66c4ea=_0x94159b;return _0x42ceca[_0x66c4ea('0x25c2')][_0x66c4ea('0x110a')]=_0x21265c['firstName']||_0x21265c[_0x66c4ea('0x1a46')],_0x42ceca['tab'][_0x66c4ea('0x3c6')]=_0x42ceca[_0x66c4ea('0x3c6')],_0x285cac[_0x66c4ea('0x24a3')]['vm'][_0x66c4ea('0x22d0')](),_0x1a495f[_0x66c4ea('0x272b')][_0x66c4ea('0x238a')]({'id':_0x56cd18['getCurrentUser']()['id'],'ids':[_0x21265c['id']]});})[_0x94159b('0xaa5')](function(){var _0x1e0deb=_0x94159b;return _0x1a495f[_0x1e0deb('0xdbd')][_0x1e0deb('0x2392')]({'id':_0x42ceca[_0x1e0deb('0x3c6')]['id'],'ids':_0x42ceca[_0x1e0deb('0x25c2')]['Tags']})[_0x1e0deb('0x1dc2')];})['then'](function(){var _0x10c0d7=_0x94159b;_0x42ceca[_0x10c0d7('0xc1c')][_0x10c0d7('0x10f2')]=!![],_0x42ceca['customFieldsForm'][_0x10c0d7('0x10f2')]=!![],_0x182678[_0x10c0d7('0xe10')]({'title':_0x10c0d7('0x1a80'),'msg':_0x42ceca[_0x10c0d7('0x3c6')][_0x10c0d7('0x25d6')]?_0x42ceca[_0x10c0d7('0x3c6')][_0x10c0d7('0x25d6')]+_0x10c0d7('0x1734'):''});})[_0x94159b('0x253d')](function(_0x48a1fc){var _0x2cd41d=_0x94159b;if(_0x48a1fc[_0x2cd41d('0x10fd')]&&_0x48a1fc[_0x2cd41d('0x10fd')]['errors']&&_0x48a1fc[_0x2cd41d('0x10fd')][_0x2cd41d('0x4c6')]['length']){_0x42ceca['errors']=_0x48a1fc['data']['errors']||[{'message':_0x48a1fc['toString'](),'type':_0x2cd41d('0x1fa2')}];for(var _0x2a4b6b=0x0;_0x2a4b6b<_0x48a1fc[_0x2cd41d('0x10fd')][_0x2cd41d('0x4c6')]['length'];_0x2a4b6b+=0x1){_0x182678[_0x2cd41d('0x187f')]({'title':_0x48a1fc[_0x2cd41d('0x10fd')]['errors'][_0x2a4b6b][_0x2cd41d('0x6c8')],'msg':_0x48a1fc[_0x2cd41d('0x10fd')][_0x2cd41d('0x4c6')][_0x2a4b6b][_0x2cd41d('0x1402')]});}}else _0x182678[_0x2cd41d('0x187f')]({'title':_0x48a1fc['status']?'API:'+_0x48a1fc['status']+'\x20-\x20'+_0x48a1fc['statusText']:_0x2cd41d('0x1fa2'),'msg':_0x48a1fc[_0x2cd41d('0x10fd')]?JSON[_0x2cd41d('0xa48')](_0x48a1fc[_0x2cd41d('0x10fd')]['message']):_0x48a1fc[_0x2cd41d('0x684')]()});});}_0x285cac[_0x7d918('0x1ccf')](_0x7d918('0xd7a'),function(){var _0x254b55=_0x7d918;_0x42ceca[_0x254b55('0xd7a')]===0x1&&(_0x42ceca[_0x254b55('0xf48')](),_0x42ceca['getFinals'](),_0x42ceca['getHistories']());});var _0x1baa9c=!![],_0x72e863=0x1;_0x285cac['$watch'](_0x7d918('0xea0'),function(_0xf40ddc,_0x39f0f4){var _0x4f1380=_0x7d918;_0x1baa9c?_0x2a8d1b(function(){_0x1baa9c=![];}):(!_0x39f0f4&&(_0x72e863=_0x42ceca[_0x4f1380('0xc39')][_0x4f1380('0x41')]),_0xf40ddc!==_0x39f0f4&&(_0x42ceca[_0x4f1380('0xc39')][_0x4f1380('0x41')]=0x1),!_0xf40ddc&&(_0x42ceca['queryHopper'][_0x4f1380('0x41')]=_0x72e863),_0x42ceca[_0x4f1380('0xf48')]());}),_0x285cac[_0x7d918('0x1ccf')](_0x7d918('0x1aea'),function(_0x77597b,_0xc98e26){var _0x42a4ec=_0x7d918;_0x1baa9c?_0x2a8d1b(function(){_0x1baa9c=![];}):(!_0xc98e26&&(_0x72e863=_0x42ceca[_0x42a4ec('0xec1')][_0x42a4ec('0x41')]),_0x77597b!==_0xc98e26&&(_0x42ceca[_0x42a4ec('0xec1')]['page']=0x1),!_0x77597b&&(_0x42ceca[_0x42a4ec('0xec1')]['page']=_0x72e863),_0x42ceca[_0x42a4ec('0x1576')]());}),_0x285cac['$watch'](_0x7d918('0x1940'),function(_0x56beb2,_0x574557){var _0x1d345f=_0x7d918;_0x1baa9c?_0x2a8d1b(function(){_0x1baa9c=![];}):(!_0x574557&&(_0x72e863=_0x42ceca[_0x1d345f('0x2a8')]['page']),_0x56beb2!==_0x574557&&(_0x42ceca[_0x1d345f('0x2a8')][_0x1d345f('0x41')]=0x1),!_0x56beb2&&(_0x42ceca[_0x1d345f('0x2a8')][_0x1d345f('0x41')]=_0x72e863),_0x42ceca[_0x1d345f('0x26f6')]());});function _0x3f956a(_0xfa5190){return function(_0x26b365){_0x42ceca[_0xfa5190]=_0x26b365||{'count':0x0,'rows':[]};};}function _0x5b90d3(){var _0x514fc4=_0x7d918;_0x42ceca[_0x514fc4('0x3c6')]&&_0x42ceca[_0x514fc4('0x3c6')]['id']&&(_0x42ceca[_0x514fc4('0xc39')][_0x514fc4('0xb9e')]=_0x42ceca['contact']['id'],_0x42ceca['queryHopper'][_0x514fc4('0x8b1')]=(_0x42ceca[_0x514fc4('0xc39')][_0x514fc4('0x41')]-0x1)*_0x42ceca[_0x514fc4('0xc39')][_0x514fc4('0xf4d')],_0x42ceca[_0x514fc4('0x159a')]=_0x1a495f[_0x514fc4('0xe51')][_0x514fc4('0x2122')](_0x42ceca[_0x514fc4('0xc39')],_0x3f956a(_0x514fc4('0x10d1')))[_0x514fc4('0x1dc2')]);}function _0x218591(){var _0x55fe2f=_0x7d918;_0x42ceca['contact']&&_0x42ceca[_0x55fe2f('0x3c6')]['id']&&(_0x42ceca[_0x55fe2f('0xec1')][_0x55fe2f('0xb9e')]=_0x42ceca[_0x55fe2f('0x3c6')]['id'],_0x42ceca[_0x55fe2f('0xec1')]['offset']=(_0x42ceca[_0x55fe2f('0xec1')][_0x55fe2f('0x41')]-0x1)*_0x42ceca['queryFinal']['limit'],_0x42ceca[_0x55fe2f('0x159a')]=_0x1a495f[_0x55fe2f('0x9c3')][_0x55fe2f('0x2122')](_0x42ceca[_0x55fe2f('0xec1')],_0x3f956a(_0x55fe2f('0x1b9f')))[_0x55fe2f('0x1dc2')]);}function _0x256c83(){var _0xb98cd1=_0x7d918;_0x42ceca['contact']&&_0x42ceca['contact']['id']&&(_0x42ceca['queryHistory'][_0xb98cd1('0xb9e')]=_0x42ceca['contact']['id'],_0x42ceca['queryHistory'][_0xb98cd1('0x8b1')]=(_0x42ceca[_0xb98cd1('0x2a8')][_0xb98cd1('0x41')]-0x1)*_0x42ceca['queryHistory'][_0xb98cd1('0xf4d')],_0x42ceca[_0xb98cd1('0x159a')]=_0x1a495f[_0xb98cd1('0xadd')]['get'](_0x42ceca[_0xb98cd1('0x2a8')],_0x3f956a(_0xb98cd1('0x1d3e')))[_0xb98cd1('0x1dc2')]);}function _0x937a54(){var _0x428397=_0x7d918;_0x1a495f[_0x428397('0x285c')][_0x428397('0x2122')]({'fields':_0x428397('0xb41'),'sort':_0x428397('0xd82'),'nolimit':!![]})[_0x428397('0x1dc2')][_0x428397('0xaa5')](function(_0x4ff36d){var _0x3d4b6c=_0x428397;_0x42ceca[_0x3d4b6c('0x16b9')]=_0x4ff36d||{'count':0x0,'rows':[]};})[_0x428397('0x253d')](function(_0x3fbc69){var _0x354074=_0x428397;if(_0x3fbc69[_0x354074('0x10fd')]&&_0x3fbc69['data'][_0x354074('0x4c6')]&&_0x3fbc69['data'][_0x354074('0x4c6')][_0x354074('0x2587')]){_0x42ceca[_0x354074('0x4c6')]=_0x3fbc69[_0x354074('0x10fd')][_0x354074('0x4c6')]||[{'message':_0x3fbc69[_0x354074('0x684')](),'type':'api.jscripty.account'}];for(var _0x386956=0x0;_0x386956<_0x3fbc69[_0x354074('0x10fd')]['errors'][_0x354074('0x2587')];_0x386956+=0x1){_0x182678[_0x354074('0x187f')]({'title':_0x3fbc69[_0x354074('0x10fd')][_0x354074('0x4c6')][_0x386956][_0x354074('0x6c8')],'msg':_0x3fbc69['data'][_0x354074('0x4c6')][_0x386956]['message']});}}else _0x182678[_0x354074('0x187f')]({'title':_0x3fbc69[_0x354074('0x2fa')]?_0x354074('0x16c2')+_0x3fbc69[_0x354074('0x2fa')]+_0x354074('0x169e')+_0x3fbc69[_0x354074('0x24df')]:_0x354074('0x9fa'),'msg':_0x3fbc69[_0x354074('0x10fd')]?JSON[_0x354074('0xa48')](_0x3fbc69['data']['message']):_0x3fbc69[_0x354074('0x684')]()});});}function _0x40aa5c(){var _0x4e6035=_0x7d918;_0x1a495f[_0x4e6035('0x272b')][_0x4e6035('0x1fb2')]({'id':_0x42ceca['user']['id'],'nolimit':!![]})[_0x4e6035('0x1dc2')][_0x4e6035('0xaa5')](function(_0x2e94f4){var _0x317e42=_0x4e6035;_0x42ceca[_0x317e42('0x172d')]=_0x2e94f4||{'count':0x0,'rows':[]};})[_0x4e6035('0x253d')](function(_0x4b3d2a){var _0x2e7571=_0x4e6035;if(_0x4b3d2a[_0x2e7571('0x10fd')]&&_0x4b3d2a[_0x2e7571('0x10fd')][_0x2e7571('0x4c6')]&&_0x4b3d2a['data']['errors'][_0x2e7571('0x2587')]){_0x42ceca[_0x2e7571('0x4c6')]=_0x4b3d2a[_0x2e7571('0x10fd')][_0x2e7571('0x4c6')]||[{'message':_0x4b3d2a[_0x2e7571('0x684')](),'type':_0x2e7571('0x4d0')}];for(var _0x4d9367=0x0;_0x4d9367<_0x4b3d2a[_0x2e7571('0x10fd')]['errors'][_0x2e7571('0x2587')];_0x4d9367+=0x1){_0x182678[_0x2e7571('0x187f')]({'title':_0x4b3d2a[_0x2e7571('0x10fd')][_0x2e7571('0x4c6')][_0x4d9367][_0x2e7571('0x6c8')],'msg':_0x4b3d2a[_0x2e7571('0x10fd')][_0x2e7571('0x4c6')][_0x4d9367][_0x2e7571('0x1402')]});}}else _0x182678[_0x2e7571('0x187f')]({'title':_0x4b3d2a['status']?_0x2e7571('0x16c2')+_0x4b3d2a[_0x2e7571('0x2fa')]+_0x2e7571('0x169e')+_0x4b3d2a[_0x2e7571('0x24df')]:_0x2e7571('0x4d0'),'msg':_0x4b3d2a['data']?JSON[_0x2e7571('0xa48')](_0x4b3d2a[_0x2e7571('0x10fd')][_0x2e7571('0x1402')]):_0x4b3d2a['toString']()});});}function _0xcc76de(){var _0x23ebc5=_0x7d918;_0x1a495f[_0x23ebc5('0x272b')]['getFaxAccounts']({'id':_0x42ceca[_0x23ebc5('0x272b')]['id'],'nolimit':!![]})[_0x23ebc5('0x1dc2')][_0x23ebc5('0xaa5')](function(_0x32ea69){_0x42ceca['faxAccounts']=_0x32ea69||{'count':0x0,'rows':[]};})[_0x23ebc5('0x253d')](function(_0x1f19e1){var _0x536947=_0x23ebc5;if(_0x1f19e1[_0x536947('0x10fd')]&&_0x1f19e1[_0x536947('0x10fd')][_0x536947('0x4c6')]&&_0x1f19e1[_0x536947('0x10fd')][_0x536947('0x4c6')][_0x536947('0x2587')]){_0x42ceca[_0x536947('0x4c6')]=_0x1f19e1[_0x536947('0x10fd')][_0x536947('0x4c6')]||[{'message':_0x1f19e1[_0x536947('0x684')](),'type':'api.fax.account'}];for(var _0x4d572a=0x0;_0x4d572a<_0x1f19e1[_0x536947('0x10fd')][_0x536947('0x4c6')]['length'];_0x4d572a+=0x1){_0x182678[_0x536947('0x187f')]({'title':_0x1f19e1[_0x536947('0x10fd')][_0x536947('0x4c6')][_0x4d572a][_0x536947('0x6c8')],'msg':_0x1f19e1[_0x536947('0x10fd')]['errors'][_0x4d572a][_0x536947('0x1402')]});}}else _0x182678[_0x536947('0x187f')]({'title':_0x1f19e1['status']?'API:'+_0x1f19e1['status']+_0x536947('0x169e')+_0x1f19e1['statusText']:_0x536947('0x4e1'),'msg':_0x1f19e1[_0x536947('0x10fd')]?JSON['stringify'](_0x1f19e1[_0x536947('0x10fd')]['message']):_0x1f19e1[_0x536947('0x684')]()});});}function _0x1e3bf7(){var _0x368666=_0x7d918;_0x1a495f[_0x368666('0x272b')][_0x368666('0x2741')]({'id':_0x42ceca[_0x368666('0x272b')]['id'],'nolimit':!![]})[_0x368666('0x1dc2')][_0x368666('0xaa5')](function(_0x553ca0){var _0x4f885f=_0x368666;_0x42ceca[_0x4f885f('0x18a1')]=_0x553ca0||{'count':0x0,'rows':[]};})[_0x368666('0x253d')](function(_0x180a09){var _0x4a6f4e=_0x368666;if(_0x180a09['data']&&_0x180a09['data'][_0x4a6f4e('0x4c6')]&&_0x180a09[_0x4a6f4e('0x10fd')][_0x4a6f4e('0x4c6')][_0x4a6f4e('0x2587')]){_0x42ceca[_0x4a6f4e('0x4c6')]=_0x180a09[_0x4a6f4e('0x10fd')]['errors']||[{'message':_0x180a09[_0x4a6f4e('0x684')](),'type':'api.sms.account'}];for(var _0x5cf80d=0x0;_0x5cf80d<_0x180a09[_0x4a6f4e('0x10fd')][_0x4a6f4e('0x4c6')][_0x4a6f4e('0x2587')];_0x5cf80d+=0x1){_0x182678[_0x4a6f4e('0x187f')]({'title':_0x180a09[_0x4a6f4e('0x10fd')][_0x4a6f4e('0x4c6')][_0x5cf80d]['type'],'msg':_0x180a09[_0x4a6f4e('0x10fd')][_0x4a6f4e('0x4c6')][_0x5cf80d][_0x4a6f4e('0x1402')]});}}else _0x182678[_0x4a6f4e('0x187f')]({'title':_0x180a09['status']?_0x4a6f4e('0x16c2')+_0x180a09[_0x4a6f4e('0x2fa')]+_0x4a6f4e('0x169e')+_0x180a09[_0x4a6f4e('0x24df')]:_0x4a6f4e('0x1e8c'),'msg':_0x180a09[_0x4a6f4e('0x10fd')]?JSON[_0x4a6f4e('0xa48')](_0x180a09[_0x4a6f4e('0x10fd')][_0x4a6f4e('0x1402')]):_0x180a09['toString']()});});}function _0x2b4942(){var _0x446c79=_0x7d918;_0x1a495f[_0x446c79('0x272b')][_0x446c79('0xe95')]({'id':_0x42ceca[_0x446c79('0x272b')]['id'],'nolimit':!![]})[_0x446c79('0x1dc2')][_0x446c79('0xaa5')](function(_0x3e5051){var _0x3cfff8=_0x446c79;_0x42ceca[_0x3cfff8('0x2613')]=_0x3e5051||{'count':0x0,'rows':[]};})[_0x446c79('0x253d')](function(_0x1805cc){var _0x11f668=_0x446c79;if(_0x1805cc[_0x11f668('0x10fd')]&&_0x1805cc[_0x11f668('0x10fd')][_0x11f668('0x4c6')]&&_0x1805cc[_0x11f668('0x10fd')]['errors'][_0x11f668('0x2587')]){_0x42ceca[_0x11f668('0x4c6')]=_0x1805cc[_0x11f668('0x10fd')][_0x11f668('0x4c6')]||[{'message':_0x1805cc['toString'](),'type':_0x11f668('0x3ad')}];for(var _0x255087=0x0;_0x255087<_0x1805cc[_0x11f668('0x10fd')][_0x11f668('0x4c6')][_0x11f668('0x2587')];_0x255087+=0x1){_0x182678[_0x11f668('0x187f')]({'title':_0x1805cc['data'][_0x11f668('0x4c6')][_0x255087][_0x11f668('0x6c8')],'msg':_0x1805cc['data'][_0x11f668('0x4c6')][_0x255087][_0x11f668('0x1402')]});}}else _0x182678[_0x11f668('0x187f')]({'title':_0x1805cc['status']?_0x11f668('0x16c2')+_0x1805cc[_0x11f668('0x2fa')]+_0x11f668('0x169e')+_0x1805cc[_0x11f668('0x24df')]:_0x11f668('0x3ad'),'msg':_0x1805cc[_0x11f668('0x10fd')]?JSON[_0x11f668('0xa48')](_0x1805cc[_0x11f668('0x10fd')][_0x11f668('0x1402')]):_0x1805cc['toString']()});});}function _0x2ca6eb(){var _0x4b6782=_0x7d918;_0x1a495f['user'][_0x4b6782('0x1a97')]({'id':_0x42ceca[_0x4b6782('0x272b')]['id'],'nolimit':!![]})[_0x4b6782('0x1dc2')][_0x4b6782('0xaa5')](function(_0x34d553){var _0x39c2d1=_0x4b6782;_0x42ceca[_0x39c2d1('0x23f0')]=_0x34d553||{'count':0x0,'rows':[]};})[_0x4b6782('0x253d')](function(_0x40f4dc){var _0x488f02=_0x4b6782;if(_0x40f4dc[_0x488f02('0x10fd')]&&_0x40f4dc[_0x488f02('0x10fd')]['errors']&&_0x40f4dc[_0x488f02('0x10fd')][_0x488f02('0x4c6')][_0x488f02('0x2587')]){_0x42ceca[_0x488f02('0x4c6')]=_0x40f4dc[_0x488f02('0x10fd')]['errors']||[{'message':_0x40f4dc['toString'](),'type':'api.openchannel.account'}];for(var _0x10b176=0x0;_0x10b176<_0x40f4dc[_0x488f02('0x10fd')][_0x488f02('0x4c6')][_0x488f02('0x2587')];_0x10b176+=0x1){_0x182678[_0x488f02('0x187f')]({'title':_0x40f4dc['data'][_0x488f02('0x4c6')][_0x10b176][_0x488f02('0x6c8')],'msg':_0x40f4dc[_0x488f02('0x10fd')]['errors'][_0x10b176]['message']});}}else _0x182678['error']({'title':_0x40f4dc['status']?'API:'+_0x40f4dc['status']+_0x488f02('0x169e')+_0x40f4dc[_0x488f02('0x24df')]:'api.openchannel.account','msg':_0x40f4dc[_0x488f02('0x10fd')]?JSON[_0x488f02('0xa48')](_0x40f4dc[_0x488f02('0x10fd')][_0x488f02('0x1402')]):_0x40f4dc[_0x488f02('0x684')]()});});}function _0xfb6559(){var _0x26076d=_0x7d918;_0x1a495f[_0x26076d('0x272b')][_0x26076d('0x1554')]({'id':_0x42ceca[_0x26076d('0x272b')]['id'],'nolimit':!![]})[_0x26076d('0x1dc2')]['then'](function(_0xa630a2){var _0x1bf981=_0x26076d;_0x42ceca[_0x1bf981('0x86c')]=_0xa630a2||{'count':0x0,'rows':[]};})[_0x26076d('0x253d')](function(_0x24f27a){var _0x1cc205=_0x26076d;if(_0x24f27a[_0x1cc205('0x10fd')]&&_0x24f27a['data']['errors']&&_0x24f27a[_0x1cc205('0x10fd')][_0x1cc205('0x4c6')][_0x1cc205('0x2587')]){_0x42ceca['errors']=_0x24f27a['data'][_0x1cc205('0x4c6')]||[{'message':_0x24f27a[_0x1cc205('0x684')](),'type':'api.chatAccounts.account'}];for(var _0x453474=0x0;_0x453474<_0x24f27a[_0x1cc205('0x10fd')][_0x1cc205('0x4c6')][_0x1cc205('0x2587')];_0x453474+=0x1){_0x182678[_0x1cc205('0x187f')]({'title':_0x24f27a[_0x1cc205('0x10fd')][_0x1cc205('0x4c6')][_0x453474][_0x1cc205('0x6c8')],'msg':_0x24f27a[_0x1cc205('0x10fd')][_0x1cc205('0x4c6')][_0x453474][_0x1cc205('0x1402')]});}}else _0x182678[_0x1cc205('0x187f')]({'title':_0x24f27a[_0x1cc205('0x2fa')]?_0x1cc205('0x16c2')+_0x24f27a[_0x1cc205('0x2fa')]+_0x1cc205('0x169e')+_0x24f27a[_0x1cc205('0x24df')]:_0x1cc205('0x1c7e'),'msg':_0x24f27a[_0x1cc205('0x10fd')]?JSON[_0x1cc205('0xa48')](_0x24f27a['data'][_0x1cc205('0x1402')]):_0x24f27a[_0x1cc205('0x684')]()});});}function _0x9c5036(){var _0x4f574d=_0x7d918;_0x1a495f[_0x4f574d('0x272b')][_0x4f574d('0xcfd')]({'id':_0x42ceca['user']['id'],'nolimit':!![]})[_0x4f574d('0x1dc2')]['then'](function(_0x1baf3e){var _0x4756b5=_0x4f574d;_0x42ceca[_0x4756b5('0x1126')]=_0x1baf3e||{'count':0x0,'rows':[]};})['catch'](function(_0x2352cd){var _0x16d9a7=_0x4f574d;if(_0x2352cd[_0x16d9a7('0x10fd')]&&_0x2352cd[_0x16d9a7('0x10fd')][_0x16d9a7('0x4c6')]&&_0x2352cd[_0x16d9a7('0x10fd')][_0x16d9a7('0x4c6')][_0x16d9a7('0x2587')]){_0x42ceca['errors']=_0x2352cd[_0x16d9a7('0x10fd')][_0x16d9a7('0x4c6')]||[{'message':_0x2352cd[_0x16d9a7('0x684')](),'type':_0x16d9a7('0x1bfe')}];for(var _0x326cd8=0x0;_0x326cd8<_0x2352cd['data'][_0x16d9a7('0x4c6')][_0x16d9a7('0x2587')];_0x326cd8+=0x1){_0x182678[_0x16d9a7('0x187f')]({'title':_0x2352cd[_0x16d9a7('0x10fd')][_0x16d9a7('0x4c6')][_0x326cd8][_0x16d9a7('0x6c8')],'msg':_0x2352cd[_0x16d9a7('0x10fd')]['errors'][_0x326cd8]['message']});}}else _0x182678[_0x16d9a7('0x187f')]({'title':_0x2352cd['status']?_0x16d9a7('0x16c2')+_0x2352cd[_0x16d9a7('0x2fa')]+_0x16d9a7('0x169e')+_0x2352cd[_0x16d9a7('0x24df')]:'api.cm.lists','msg':_0x2352cd[_0x16d9a7('0x10fd')]?JSON[_0x16d9a7('0xa48')](_0x2352cd[_0x16d9a7('0x10fd')][_0x16d9a7('0x1402')]):_0x2352cd[_0x16d9a7('0x684')]()});});}function _0xe3faba(_0x2dfcf2){var _0x5c9125=_0x7d918;_0x258fd8[_0x5c9125('0x1e6d')]({'controller':_0x5c9125('0x18b1'),'controllerAs':'vm','templateUrl':_0x1121c7,'parent':angular[_0x5c9125('0x1aa8')](_0xe8ba2d[_0x5c9125('0x54c')]),'targetEvent':_0x2dfcf2,'clickOutsideToClose':!![],'resolve':{'contact':[_0x5c9125('0x1d16'),function _0xdd4b16(_0xda1f57){var _0x2903f8=_0x5c9125;return _0xda1f57[_0x2903f8('0x149f')](_0x2903f8('0xe18'),{'id':_0x42ceca[_0x2903f8('0x3c6')]['id']});}],'lists':[_0x5c9125('0x1d16'),function _0x470650(_0x35c611){var _0x543dbe=_0x5c9125;return _0x35c611[_0x543dbe('0x149f')](_0x543dbe('0x1982'),{'id':_0x56cd18[_0x543dbe('0xacc')]()['id'],'fields':_0x543dbe('0x17fe')});}]},'locals':{'contacts':[]}});}function _0x6e88ab(_0x253ef0){var _0x552199=_0x7d918;_0x258fd8[_0x552199('0x1e6d')]({'controller':_0x552199('0xf6b'),'controllerAs':'vm','templateUrl':_0x42c3f9,'parent':angular['element'](_0xe8ba2d[_0x552199('0x54c')]),'targetEvent':_0x253ef0,'clickOutsideToClose':!![],'resolve':{'contact':[_0x552199('0x1d16'),function _0x5b0c40(_0x51cce9){var _0x28fc72=_0x552199;return _0x51cce9[_0x28fc72('0x149f')]('cmContact@get',{'id':_0x42ceca['contact']['id']});}],'lists':[_0x552199('0x1d16'),function _0x1269c7(_0xc5c2a4){var _0x510c4c=_0x552199;return _0xc5c2a4[_0x510c4c('0x149f')](_0x510c4c('0x1982'),{'id':_0x56cd18['getCurrentUser']()['id'],'fields':_0x510c4c('0x17fe')});}]},'locals':{'contacts':[]}})[_0x552199('0xaa5')](function(_0x2b8812){var _0x5dd29b=_0x552199;if(_0x2b8812){for(var _0x2fbea4 in _0x285cac[_0x5dd29b('0x24a3')][_0x5dd29b('0x24a3')][_0x5dd29b('0x24a3')]['vm'][_0x5dd29b('0x2416')]){if(typeof _0x285cac[_0x5dd29b('0x24a3')]['$parent'][_0x5dd29b('0x24a3')]['vm'][_0x5dd29b('0x2416')][_0x2fbea4]!==_0x5dd29b('0x1574')){var _0x195cd3=_0x285cac[_0x5dd29b('0x24a3')][_0x5dd29b('0x24a3')][_0x5dd29b('0x24a3')]['vm'][_0x5dd29b('0x2416')][_0x2fbea4];_0x195cd3&&_0x195cd3[_0x5dd29b('0x3c6')]&&(_0x2b8812[_0x5dd29b('0x1911')]&&_0x2b8812[_0x5dd29b('0x1911')]['id']&&_0x2b8812[_0x5dd29b('0x1911')]['id']===_0x195cd3['contact']['id']&&_0x285cac[_0x5dd29b('0x24a3')]['$parent'][_0x5dd29b('0x24a3')]['vm'][_0x5dd29b('0x76a')](_0x195cd3),_0x2b8812['to']&&_0x2b8812['to']['id']&&_0x2b8812['to']['id']===_0x195cd3[_0x5dd29b('0x3c6')]['id']&&_0x285cac[_0x5dd29b('0x24a3')]['$parent']['$parent']['vm'][_0x5dd29b('0x76a')](_0x195cd3));}}_0x2b8812[_0x5dd29b('0x1062')]&&_0x285cac[_0x5dd29b('0x24a3')][_0x5dd29b('0x24a3')]['$parent']['vm'][_0x5dd29b('0xde6')](_0x2b8812[_0x5dd29b('0x1062')]);}});}function _0x3fb984(_0xefefe4,_0x3bef14){var _0x23f499=_0x7d918,_0x5662ec=_0x42ceca['user'][_0x23f499('0x2519')]||_0x42ceca[_0x23f499('0x272b')][_0x23f499('0x1f36')]||_0x42ceca[_0x23f499('0x272b')]['mailPause']||_0x42ceca[_0x23f499('0x272b')]['openchannelPause']||_0x42ceca[_0x23f499('0x272b')]['faxPause'],_0x5d8b42=_0x3bef14[_0x23f499('0x1844')];if(_0x42ceca['newContact']){_0x182678[_0x23f499('0x187f')]({'title':_0x23f499('0x106d'),'msg':'Please\x20save\x20the\x20contact\x20before\x20disposing!'});return;}_0x258fd8[_0x23f499('0x1e6d')]({'controller':_0x23f499('0x84d'),'controllerAs':'vm','templateUrl':_0x37f75a,'parent':angular[_0x23f499('0x1aa8')](_0xe8ba2d[_0x23f499('0x54c')]),'targetEvent':_0x3bef14,'clickOutsideToClose':!_0x3bef14['mandatoryDisposition'],'escapeToClose':!_0x3bef14[_0x23f499('0x1844')],'resolve':{'globalDispositions':[_0x23f499('0x1d16'),function _0x119aaf(_0x552443){var _0x5f08d9=_0x23f499;return _0x552443[_0x5f08d9('0x149f')](_0x5f08d9('0xa42'),{'MailAccountId':'null','FaxAccountId':_0x5f08d9('0x1ed9'),'SmsAccountId':_0x5f08d9('0x1ed9'),'WhatsappAccountId':_0x5f08d9('0x1ed9'),'OpenchannelAccountId':_0x5f08d9('0x1ed9'),'ChatWebsiteId':_0x5f08d9('0x1ed9'),'ListId':_0x5f08d9('0x1ed9')});}]},'onRemoving':function _0x2dc351(){var _0xbeca35=_0x23f499;_0x42ceca[_0xbeca35('0x272b')]&&_0x5d8b42&&!_0x5662ec&&_0x1a495f['user'][_0xbeca35('0x297')]({'id':_0x42ceca[_0xbeca35('0x272b')]['id']})[_0xbeca35('0x1dc2')][_0xbeca35('0x253d')](function(_0x223605){var _0x1f1816=_0xbeca35;console[_0x1f1816('0x187f')](_0x223605);});},'locals':{'dispositions':_0x42ceca['tab']['dispositions'],'contact':_0x42ceca['contact'],'call':_0x3bef14}})[_0x23f499('0xaa5')](function(_0x41fe84){var _0x3ec7c0=_0x23f499;if(_0x41fe84){if(_0x41fe84===_0x3ec7c0('0xb0a'))_0x182678['success']({'title':_0x41c692[_0x3ec7c0('0x213f')](_0x3ec7c0('0x1cf6')),'msg':_0x41c692[_0x3ec7c0('0x213f')]('DASHBOARDS.CALL_DISPOSED')+'\x20'+_0x41fe84});else{if(_0x41fe84===_0x3ec7c0('0x232f')||_0x41fe84===_0x3ec7c0('0x225d')){}else _0x182678[_0x3ec7c0('0xe10')]({'title':_0x41c692[_0x3ec7c0('0x213f')](_0x3ec7c0('0x1cf6')),'msg':_0x41c692[_0x3ec7c0('0x213f')]('DASHBOARDS.CALL_SAVED')});}}for(var _0x4fb6b6 in _0x285cac[_0x3ec7c0('0x24a3')]['$parent']['$parent']['vm'][_0x3ec7c0('0x2416')]){if(typeof _0x285cac['$parent'][_0x3ec7c0('0x24a3')][_0x3ec7c0('0x24a3')]['vm'][_0x3ec7c0('0x2416')][_0x4fb6b6]!==_0x3ec7c0('0x1574')){var _0x6c9dfb=_0x285cac[_0x3ec7c0('0x24a3')][_0x3ec7c0('0x24a3')]['$parent']['vm'][_0x3ec7c0('0x2416')][_0x4fb6b6];_0x51538b()[_0x3ec7c0('0xf6d')](_0x6c9dfb['calls'],function(_0x40d426){var _0x41ba89=_0x3ec7c0;return _0x40d426[_0x41ba89('0x1a6')]===_0x3bef14[_0x41ba89('0x1a6')];});}}_0x285cac[_0x3ec7c0('0x24a3')]['vm']['updateLocalStorage']();});}function _0xcf27ad(_0x3c6e01){var _0xb5d547=_0x7d918;return _0x1a495f[_0xb5d547('0x26b4')][_0xb5d547('0xe57')]({'id':_0x3c6e01})[_0xb5d547('0x1dc2')][_0xb5d547('0xaa5')](function(_0x138b05){var _0x4b647e=_0xb5d547;_0x42ceca[_0x4b647e('0x25c2')]['customFields']=_0x138b05;})[_0xb5d547('0x253d')](function(_0xf15ec0){var _0x2e11df=_0xb5d547;_0x182678['error']({'title':_0xf15ec0[_0x2e11df('0x2fa')]?_0x2e11df('0x16c2')+_0xf15ec0[_0x2e11df('0x2fa')]+'\x20-\x20'+_0xf15ec0[_0x2e11df('0x24df')]:'LIST:GETCustomFields','msg':_0xf15ec0['data']?JSON[_0x2e11df('0xa48')](_0xf15ec0[_0x2e11df('0x10fd')]):_0xf15ec0[_0x2e11df('0x684')]()});});}function _0x23ee86(_0x162c4f){return _0x162c4f===null?undefined:new Date(_0x162c4f);}function _0xdebd4d(_0x250fe3){var _0x5980ba=_0x7d918;try{_0x250fe3['formData']=_0x5e8d06()[_0x5980ba('0x4b0')](_0x250fe3['formData'],{'contact':_0x42ceca[_0x5980ba('0x3c6')],'user':_0x42ceca[_0x5980ba('0x272b')]});}catch(_0x31f3f6){console[_0x5980ba('0x187f')](_0x31f3f6);}try{_0x285cac[_0x5980ba('0x24a3')][_0x5980ba('0x24a3')]['$parent']['vm'][_0x5980ba('0x22ad')]({'type':'jscripty','title':_0x250fe3[_0x5980ba('0x25d6')],'icon':_0x5980ba('0x1a'),'color':_0x5980ba('0x23b2'),'project':_0x250fe3,'contact':_0x42ceca[_0x5980ba('0x3c6')]});}catch(_0x5ad012){_0x182678[_0x5980ba('0x187f')]({'title':_0x5980ba('0x1cfc'),'msg':_0x5980ba('0x209a')+JSON[_0x5980ba('0xa48')](_0x5ad012)});}}function _0x24d28c(_0x5350f8){var _0x364560=_0x7d918;return _0x56cd18[_0x364560('0x69e')](_0x5350f8);}_0x285cac[_0x7d918('0xc75')](_0x7d918('0x12d0'),function(){});}const _0x110a95=_0x4faf7c;_0x3a8dd1['$inject']=['$mdDialog','$q',_0x1a8446('0x2a4'),'api','dispositions',_0x1a8446('0x1881'),_0x1a8446('0x1432'),'contact',_0x1a8446('0x1dfd'),_0x1a8446('0xcb3')];function _0x3a8dd1(_0x54ce8f,_0x17bb9e,_0x16b8a7,_0x357285,_0x9173c5,_0x33af77,_0xd9059f,_0x4dd8b7,_0x2f4c0f,_0x2aadd4){var _0x3d2162=_0x1a8446,_0x2eb92b=this;_0x2eb92b[_0x3d2162('0xa6a')]=![],_0x2eb92b[_0x3d2162('0x7dd')]=![],_0x2eb92b[_0x3d2162('0x239e')]=undefined,_0x2eb92b[_0x3d2162('0x23af')]={'count':0x0,'rows':[]},_0x2eb92b[_0x3d2162('0xa9')]=_0x9173c5[_0x3d2162('0x580')],_0x2eb92b[_0x3d2162('0x1881')]=_0x33af77['rows'],_0x2eb92b[_0x3d2162('0x3c6')]=_0x4dd8b7,_0x2eb92b[_0x3d2162('0x1432')]=_0xd9059f,_0x2eb92b['note']=_0x2eb92b[_0x3d2162('0x1432')][_0x3d2162('0x1a4d')]||undefined,_0x2eb92b[_0x3d2162('0x1bb8')]=![],_0x2eb92b[_0x3d2162('0x1aad')]=![],_0x2eb92b[_0x3d2162('0x1621')]={'minDate':new Date(),'dateTime':new Date()};_0x2eb92b['call']&&_0x2eb92b[_0x3d2162('0x1432')]['variables']&&_0x2eb92b[_0x3d2162('0x1432')][_0x3d2162('0x147e')]['xmd-voicequeueid']?(_0x2eb92b[_0x3d2162('0x1bb8')]=!![],_0x357285['voiceQueue'][_0x3d2162('0x16a7')]({'id':_0x2eb92b['call']['variables']['xmd-voicequeueid']})[_0x3d2162('0x1dc2')][_0x3d2162('0xaa5')](function(_0x59bd64){var _0x46e1e8=_0x3d2162;_0x59bd64&&_0x59bd64[_0x46e1e8('0x580')]&&_0x59bd64['rows']['length']>0x0&&(_0x2eb92b[_0x46e1e8('0x1aad')]=!![]);})[_0x3d2162('0x253d')](function(_0x1326a8){var _0x19fc29=_0x3d2162;_0x16b8a7[_0x19fc29('0x187f')]({'title':_0x1326a8[_0x19fc29('0x2fa')]?_0x19fc29('0x16c2')+_0x1326a8[_0x19fc29('0x2fa')]+_0x19fc29('0x169e')+_0x1326a8[_0x19fc29('0x24df')]:_0x19fc29('0x1a15'),'msg':_0x1326a8[_0x19fc29('0x10fd')]?JSON[_0x19fc29('0xa48')](_0x1326a8[_0x19fc29('0x10fd')]):_0x1326a8[_0x19fc29('0x684')]()});})):_0x357285[_0x3d2162('0x272b')][_0x3d2162('0x1e87')]({'id':_0x2f4c0f['getCurrentUser']()['id'],'fields':_0x3d2162('0x2649'),'channel':_0x3d2162('0x1b9'),'type':_0x3d2162('0x19d1'),'nolimit':!![]})['$promise'][_0x3d2162('0xaa5')](function(_0x577343){var _0x561f1f=_0x3d2162;_0x2eb92b[_0x561f1f('0x23af')]=_0x577343||{'count':0x0,'rows':[]};})[_0x3d2162('0x253d')](function(_0x442292){var _0x27ba08=_0x3d2162;console[_0x27ba08('0x187f')](_0x442292);});_0x2eb92b['onDispositionChange']=_0x5a1887,_0x2eb92b[_0x3d2162('0x14f7')]=_0x2e8d65,_0x2eb92b[_0x3d2162('0x254b')]=_0x420cf8,_0x2eb92b[_0x3d2162('0x2023')]=_0x18c3a8,_0x2eb92b[_0x3d2162('0x149a')]=_0x13e9cc;function _0x5a1887(_0x6c74a8){var _0x443640=_0x3d2162,_0x2c9848=_0x51538b()[_0x443640('0x1d7c')](_0x2eb92b['dispositions'],_0x2eb92b[_0x443640('0x1881')],'id');switch(_0x6c74a8){case _0x443640('0xe75'):_0x2eb92b[_0x443640('0x767')]=_0x2eb92b[_0x443640('0x207e')],_0x2eb92b[_0x443640('0x1314')]=_0x51538b()[_0x443640('0x2c2')](_0x2c9848,['ParentId',_0x2eb92b['firstLevelDisposition']['id']]),_0x2eb92b['secondLevelDisposition']=undefined,_0x2eb92b[_0x443640('0x225f')]=undefined,_0x2eb92b['anyThirdLevelDisposition']=![];break;case'second':_0x2eb92b[_0x443640('0x767')]=_0x2eb92b[_0x443640('0x1219')],_0x2eb92b[_0x443640('0x180c')]=_0x51538b()[_0x443640('0x2c2')](_0x2c9848,[_0x443640('0x2733'),_0x2eb92b[_0x443640('0x1219')]['id']]);break;case'third':_0x2eb92b['selectedDisposition']=_0x2eb92b[_0x443640('0x225f')];break;}}function _0x2e8d65(_0x5c39c3){var _0x562320=_0x3d2162;if(_0x5c39c3===_0x562320('0xeca'))_0x2eb92b[_0x562320('0x1219')]=undefined,_0x2eb92b[_0x562320('0x225f')]=undefined,_0x2eb92b['selectedDisposition']=_0x2eb92b[_0x562320('0x207e')];else _0x5c39c3===_0x562320('0x10db')&&(_0x2eb92b[_0x562320('0x225f')]=undefined,_0x2eb92b[_0x562320('0x767')]=_0x2eb92b['secondLevelDisposition']);}function _0xf369d5(){var _0x5460c6=_0x3d2162,_0xcfd0b1=_0x2eb92b[_0x5460c6('0x767')]?_0x2eb92b['selectedDisposition'][_0x5460c6('0x25d6')][_0x5460c6('0xcf6')]():undefined;return{'id':_0x2eb92b['call']['uniqueid'],'disposition':_0x2eb92b[_0x5460c6('0x207e')]?_0x2eb92b[_0x5460c6('0x207e')][_0x5460c6('0x25d6')]:null,'secondDisposition':_0x2eb92b['secondLevelDisposition']?_0x2eb92b[_0x5460c6('0x1219')]['name']:null,'thirdDisposition':_0x2eb92b[_0x5460c6('0x225f')]?_0x2eb92b[_0x5460c6('0x225f')][_0x5460c6('0x25d6')]:null,'dispositionat':_0x420d43()(),'amd':_0xcfd0b1==='amd','fax':_0xcfd0b1==='fax','blacklist':_0xcfd0b1===_0x5460c6('0x1b20'),'recallme':_0xcfd0b1===_0x5460c6('0x7dd'),'UserId':_0xcfd0b1===_0x5460c6('0x7dd')?_0x2f4c0f[_0x5460c6('0xacc')]()['id']:null,'OwnerId':_0x2f4c0f[_0x5460c6('0xacc')]()['id']};}function _0x1d0c9d(){var _0x462e59=_0x3d2162;return _0x357285[_0x462e59('0x4d4')][_0x462e59('0x264e')]({'id':_0x2eb92b[_0x462e59('0x1432')][_0x462e59('0x1a6')],'userDisposition':_0x2eb92b[_0x462e59('0x207e')]?_0x2eb92b[_0x462e59('0x207e')][_0x462e59('0x25d6')]:null,'userSecondDisposition':_0x2eb92b[_0x462e59('0x1219')]?_0x2eb92b[_0x462e59('0x1219')]['name']:null,'userThirdDisposition':_0x2eb92b[_0x462e59('0x225f')]?_0x2eb92b[_0x462e59('0x225f')][_0x462e59('0x25d6')]:null,'note':_0x2eb92b['note'],'UserId':_0x2f4c0f[_0x462e59('0xacc')]()['id'],'ContactId':_0x2eb92b[_0x462e59('0x3c6')]['id']})['$promise'][_0x462e59('0x253d')](function(_0x2670f5){var _0xe30be0=_0x462e59;_0x16b8a7[_0xe30be0('0x187f')]({'title':_0x2670f5[_0xe30be0('0x2fa')]?'API:'+_0x2670f5[_0xe30be0('0x2fa')]+_0xe30be0('0x169e')+_0x2670f5[_0xe30be0('0x24df')]:_0xe30be0('0x1933'),'msg':_0x2670f5['data']?JSON[_0xe30be0('0xa48')](_0x2670f5[_0xe30be0('0x10fd')]):_0x2670f5['toString']()});});}function _0x5e4c35(){var _0x68717c=_0x3d2162;return _0x357285[_0x68717c('0x2366')][_0x68717c('0x2122')]({'uniqueid':_0x2eb92b['call'][_0x68717c('0x1a6')]})[_0x68717c('0x1dc2')][_0x68717c('0xaa5')](function(_0x5c439a){var _0xe2cfae=_0x68717c;if(_0x5c439a)for(var _0xa034e6=0x0;_0xa034e6<_0x5c439a[_0xe2cfae('0x580')][_0xe2cfae('0x2587')];_0xa034e6+=0x1){_0x357285[_0xe2cfae('0x2366')][_0xe2cfae('0x264e')]({'id':_0x5c439a[_0xe2cfae('0x580')][_0xa034e6]['id'],'userDisposition':_0x2eb92b[_0xe2cfae('0x207e')]?_0x2eb92b[_0xe2cfae('0x207e')][_0xe2cfae('0x25d6')]:null,'userSecondDisposition':_0x2eb92b[_0xe2cfae('0x1219')]?_0x2eb92b['secondLevelDisposition'][_0xe2cfae('0x25d6')]:null,'userThirdDisposition':_0x2eb92b[_0xe2cfae('0x225f')]?_0x2eb92b[_0xe2cfae('0x225f')][_0xe2cfae('0x25d6')]:null})[_0xe2cfae('0x1dc2')][_0xe2cfae('0x253d')](function(_0x5a53d9){var _0x26387b=_0xe2cfae;_0x16b8a7['error']({'title':_0x5a53d9[_0x26387b('0x2fa')]?_0x26387b('0x16c2')+_0x5a53d9[_0x26387b('0x2fa')]+_0x26387b('0x169e')+_0x5a53d9[_0x26387b('0x24df')]:_0x26387b('0xdc2'),'msg':_0x5a53d9[_0x26387b('0x10fd')]?JSON[_0x26387b('0xa48')](_0x5a53d9[_0x26387b('0x10fd')]):_0x5a53d9[_0x26387b('0x684')]()});});}})[_0x68717c('0x253d')](function(_0x1ee518){var _0x59e980=_0x68717c;_0x16b8a7[_0x59e980('0x187f')]({'title':_0x1ee518[_0x59e980('0x2fa')]?'API:'+_0x1ee518[_0x59e980('0x2fa')]+_0x59e980('0x169e')+_0x1ee518[_0x59e980('0x24df')]:'SYSTEM:UPDATEVOICERECORDING','msg':_0x1ee518['data']?JSON[_0x59e980('0xa48')](_0x1ee518[_0x59e980('0x10fd')]):_0x1ee518[_0x59e980('0x684')]()});});}function _0x56e731(){var _0x3ab6d9=_0x3d2162;return _0x357285['cmHopperFinal'][_0x3ab6d9('0x264e')](_0xf369d5())[_0x3ab6d9('0x1dc2')][_0x3ab6d9('0x253d')](function(_0x29ffb6){var _0x59ae4e=_0x3ab6d9;_0x16b8a7[_0x59ae4e('0x187f')]({'title':_0x29ffb6[_0x59ae4e('0x2fa')]?_0x59ae4e('0x16c2')+_0x29ffb6[_0x59ae4e('0x2fa')]+'\x20-\x20'+_0x29ffb6[_0x59ae4e('0x24df')]:'SYSTEM:UPDATECMHOPPERFINAL','msg':_0x29ffb6[_0x59ae4e('0x10fd')]?JSON['stringify'](_0x29ffb6['data']):_0x29ffb6[_0x59ae4e('0x684')]()});});}function _0x73e707(){var _0x4ab0ce=_0x3d2162;return _0x357285[_0x4ab0ce('0xadd')]['update'](_0xf369d5())[_0x4ab0ce('0x1dc2')][_0x4ab0ce('0x253d')](function(_0x3da1cc){var _0x546712=_0x4ab0ce;_0x16b8a7['error']({'title':_0x3da1cc[_0x546712('0x2fa')]?'API:'+_0x3da1cc[_0x546712('0x2fa')]+_0x546712('0x169e')+_0x3da1cc[_0x546712('0x24df')]:_0x546712('0x1afa'),'msg':_0x3da1cc[_0x546712('0x10fd')]?JSON[_0x546712('0xa48')](_0x3da1cc[_0x546712('0x10fd')]):_0x3da1cc[_0x546712('0x684')]()});});}function _0x49c404(_0x45e522){var _0x545ce1=_0x3d2162;if(_0x45e522)return _0x357285['voiceQueue'][_0x545ce1('0x16a7')]({'id':_0x45e522,'type':_0x545ce1('0x19d1'),'fields':'id'})[_0x545ce1('0x1dc2')][_0x545ce1('0xaa5')](function(_0x4406b2){var _0x368f9e=_0x545ce1,_0x498e90=[];if(_0x4406b2&&_0x4406b2[_0x368f9e('0xd15')]>0x0){for(var _0x520748=0x0;_0x520748<_0x4406b2[_0x368f9e('0x580')][_0x368f9e('0x2587')];_0x520748+=0x1){var _0x4ba276=angular[_0x368f9e('0x20a')](_0x2eb92b[_0x368f9e('0x3c6')]);delete _0x4ba276['id'],_0x4ba276[_0x368f9e('0xee0')]=_0x4406b2[_0x368f9e('0x580')][_0x520748]['id'],_0x498e90[_0x368f9e('0x1599')](_0x357285[_0x368f9e('0xdbd')][_0x368f9e('0x242b')](_0x4ba276)['$promise']);}return _0x17bb9e[_0x368f9e('0xa15')](_0x498e90);}_0x16b8a7[_0x368f9e('0xe10')]({'title':_0x2aadd4[_0x368f9e('0x213f')](_0x368f9e('0x1cf6')),'msg':_0x2aadd4[_0x368f9e('0x213f')](_0x368f9e('0x196c'))+'\x20'+_0x2eb92b[_0x368f9e('0x767')]}),_0x2eb92b[_0x368f9e('0x767')]=undefined;return;})['then'](function(_0x399a2b){var _0x4a1f50=_0x545ce1;_0x399a2b&&_0x54ce8f['hide'](_0x2eb92b[_0x4a1f50('0x767')]?_0x2eb92b[_0x4a1f50('0x767')][_0x4a1f50('0x25d6')][_0x4a1f50('0x1d08')]():'');})['catch'](function(_0x125fe1){var _0x182135=_0x545ce1;_0x16b8a7[_0x182135('0x187f')]({'title':_0x125fe1['status']?_0x182135('0x16c2')+_0x125fe1[_0x182135('0x2fa')]+_0x182135('0x169e')+_0x125fe1[_0x182135('0x24df')]:_0x182135('0x27c1'),'msg':_0x125fe1[_0x182135('0x10fd')]?JSON[_0x182135('0xa48')](_0x125fe1[_0x182135('0x10fd')]):_0x125fe1[_0x182135('0x684')]()}),_0x54ce8f[_0x182135('0x1120')](_0x2eb92b[_0x182135('0x767')]?_0x2eb92b[_0x182135('0x767')][_0x182135('0x25d6')][_0x182135('0x1d08')]():'');});}function _0x420cf8(_0x2f377a){var _0x1615ce=_0x3d2162;_0x2eb92b[_0x1615ce('0x767')]=_0x51538b()[_0x1615ce('0x89a')](_0x2f377a)?_0x2eb92b[_0x1615ce('0x767')]:{'name':_0x2f377a};_0x2f377a&&(_0x2eb92b[_0x1615ce('0x207e')]=_0x2eb92b[_0x1615ce('0x767')]);_0x2eb92b[_0x1615ce('0x1432')][_0x1615ce('0x1a4d')]=_0x2eb92b['note'],_0x1d0c9d(),_0x5e4c35();_0x2eb92b[_0x1615ce('0x1bb8')]&&(_0x56e731(),_0x73e707());if(!_0x51538b()['isNil'](_0x2eb92b[_0x1615ce('0x767')]))switch(_0x2eb92b['selectedDisposition'][_0x1615ce('0x25d6')][_0x1615ce('0xcf6')]()){case'blacklist':_0x2eb92b[_0x1615ce('0x1432')]&&_0x2eb92b[_0x1615ce('0x1432')][_0x1615ce('0x147e')]&&_0x2eb92b['call'][_0x1615ce('0x147e')][_0x1615ce('0x13ed')]&&_0x49c404(_0x2eb92b[_0x1615ce('0x1432')][_0x1615ce('0x147e')][_0x1615ce('0x13ed')]);break;case _0x1615ce('0xa3'):_0x2eb92b[_0x1615ce('0xa6a')]=!![],_0x2eb92b[_0x1615ce('0x7dd')]=![];break;case _0x1615ce('0x7dd'):_0x2eb92b[_0x1615ce('0xa6a')]=!![],_0x2eb92b['recallme']=!![];break;default:_0x54ce8f[_0x1615ce('0x1120')](_0x2eb92b[_0x1615ce('0x767')]?_0x2eb92b[_0x1615ce('0x767')][_0x1615ce('0x25d6')][_0x1615ce('0x1d08')]():'');}else _0x54ce8f['hide'](_0x2eb92b[_0x1615ce('0x767')]?_0x2eb92b[_0x1615ce('0x767')][_0x1615ce('0x25d6')]['toUpperCase']():'');}function _0x18c3a8(){_0x54ce8f['cancel']();}function _0x13e9cc(){var _0x32139c=_0x3d2162;return _0x2eb92b[_0x32139c('0x2510')]=!![],_0x357285[_0x32139c('0xe51')][_0x32139c('0x242b')]({'phone':_0x2eb92b[_0x32139c('0x3c6')]['phone'],'UserId':_0x2eb92b[_0x32139c('0x7dd')]?_0x2f4c0f['getCurrentUser']()['id']:null,'ContactId':_0x2eb92b[_0x32139c('0x3c6')]['id'],'ListId':_0x2eb92b[_0x32139c('0x3c6')][_0x32139c('0xee0')],'VoiceQueueId':_0x2eb92b[_0x32139c('0x1bb8')]?Number(_0x2eb92b[_0x32139c('0x1432')][_0x32139c('0x13ed')]):_0x2eb92b['queueCampaign']?_0x2eb92b['queueCampaign']['id']:null,'scheduledat':_0x420d43()(_0x2eb92b[_0x32139c('0x1621')][_0x32139c('0x712')])[_0x32139c('0x1f27')](_0x32139c('0x1463')),'priority':0x3,'recallme':_0x2eb92b[_0x32139c('0x7dd')],'OwnerId':_0x2f4c0f[_0x32139c('0xacc')]()['id']})[_0x32139c('0x1dc2')]['then'](function(){var _0x5ac2ab=_0x32139c;_0x2eb92b[_0x5ac2ab('0x1bb8')]&&_0x357285[_0x5ac2ab('0x9c3')][_0x5ac2ab('0x264e')]({'id':_0x2eb92b[_0x5ac2ab('0x1432')]['uniqueid'],'rescheduled':!![],'rescheduledat':_0x420d43()(_0x2eb92b[_0x5ac2ab('0x1621')][_0x5ac2ab('0x712')])['format'](_0x5ac2ab('0x1463')),'recallme':_0x2eb92b[_0x5ac2ab('0x7dd')]})[_0x5ac2ab('0x1dc2')]['catch'](function(_0x4536c7){var _0x2d8c63=_0x5ac2ab;console[_0x2d8c63('0x18d5')](_0x4536c7);});})[_0x32139c('0xaa5')](function(){var _0x4f1858=_0x32139c;_0x16b8a7['success']({'title':_0x2aadd4[_0x4f1858('0x213f')](_0x4f1858('0x1cf6')),'msg':_0x2aadd4['instant']('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x2eb92b[_0x4f1858('0x7dd')]?_0x2aadd4[_0x4f1858('0x213f')](_0x4f1858('0x102b')):_0x2aadd4[_0x4f1858('0x213f')](_0x4f1858('0x2311')))});})[_0x32139c('0x253d')](function(){var _0x57e060=_0x32139c;_0x54ce8f[_0x57e060('0x1120')](_0x2eb92b[_0x57e060('0x767')]?_0x2eb92b[_0x57e060('0x767')]['name']['toUpperCase']():'');})[_0x32139c('0x1889')](function(){var _0x246e75=_0x32139c;_0x2eb92b[_0x246e75('0x2510')]=![],_0x54ce8f[_0x246e75('0x1120')](_0x2eb92b[_0x246e75('0x767')]?_0x2eb92b['selectedDisposition']['name']['toUpperCase']():'');});}}const _0x6d0817=_0x3a8dd1;_0x1ca5a5[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x186b'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x3c6'),_0x1a8446('0x1432'),_0x1a8446('0x1dfd'),_0x1a8446('0x7dd'),_0x1a8446('0xcb3')];function _0x1ca5a5(_0x356e42,_0x792a4f,_0x5130ee,_0x5adf90,_0xe51fd5,_0x1b7604,_0x281064,_0x11e92e,_0x4cb717,_0x4c1726,_0x3cf637,_0x66f2de){var _0x6f497a=_0x1a8446,_0x284ae3=this;_0x284ae3['call']=_0x4cb717,_0x284ae3[_0x6f497a('0x3c6')]=_0x11e92e,_0x284ae3['hopper']={'minDate':new Date(),'dateTime':new Date()};function _0x5507f2(){var _0x50fed9=_0x6f497a;return _0x284ae3[_0x50fed9('0x2510')]=!![],_0x281064['cmHopper'][_0x50fed9('0x242b')]({'phone':_0x284ae3[_0x50fed9('0x3c6')][_0x50fed9('0x1a46')],'UserId':_0x3cf637?_0x4c1726[_0x50fed9('0xacc')]()['id']:null,'ContactId':_0x284ae3[_0x50fed9('0x3c6')]['id'],'ListId':_0x284ae3[_0x50fed9('0x3c6')][_0x50fed9('0xee0')],'VoiceQueueId':Number(_0x284ae3['call'][_0x50fed9('0x13ed')]),'scheduledat':_0x420d43()(_0x284ae3[_0x50fed9('0x1621')][_0x50fed9('0x712')])['format'](_0x50fed9('0x1463')),'priority':0x3,'recallme':_0x3cf637,'OwnerId':_0x4c1726[_0x50fed9('0xacc')]()['id']})[_0x50fed9('0x1dc2')][_0x50fed9('0xaa5')](function(){var _0x168019=_0x50fed9;_0x281064[_0x168019('0x9c3')]['update']({'id':_0x284ae3['call'][_0x168019('0x1a6')],'rescheduled':!![],'rescheduledat':_0x420d43()(_0x284ae3[_0x168019('0x1621')][_0x168019('0x712')])[_0x168019('0x1f27')](_0x168019('0x1463')),'recallme':_0x3cf637})[_0x168019('0x1dc2')];})[_0x50fed9('0xaa5')](function(){var _0x542167=_0x50fed9;_0x1b7604[_0x542167('0xe10')]({'title':_0x66f2de[_0x542167('0x213f')](_0x542167('0x1cf6')),'msg':_0x66f2de[_0x542167('0x213f')]('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x3cf637?_0x66f2de[_0x542167('0x213f')](_0x542167('0x102b')):_0x66f2de[_0x542167('0x213f')](_0x542167('0x2311')))}),_0x5adf90[_0x542167('0x1120')]();})[_0x50fed9('0x253d')](function(_0x36a06){var _0x545410=_0x50fed9;_0x5adf90[_0x545410('0x2030')](_0x36a06);})[_0x50fed9('0x1889')](function(){var _0x4a3bec=_0x50fed9;_0x284ae3[_0x4a3bec('0x2510')]=![];});}function _0x152d4d(){_0x5adf90['cancel']();}_0x284ae3[_0x6f497a('0x2023')]=_0x152d4d,_0x284ae3[_0x6f497a('0x16ed')]=_0x5507f2;}const _0x494a41=_0x1ca5a5;_0x5765e0['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1cfb'),_0x1a8446('0x42a'),_0x1a8446('0x2a4')];function _0x5765e0(_0x50f72a,_0x5d3963,_0x346c87,_0x1a47fa,_0x5a6d4d,_0x4484f3){var _0xd806bc=_0x1a8446,_0x50957a=this;_0x50957a[_0xd806bc('0x42a')]=_0x5a6d4d,_0x50957a['page']=0x1;function _0x4f6682(){var _0x5c5531=_0xd806bc;_0x346c87[_0x5c5531('0x26b4')]['get']({'fields':_0x5c5531('0x17fe'),'nolimit':!![]})[_0x5c5531('0x1dc2')][_0x5c5531('0xaa5')](function(_0x5f54b5){var _0x58ac8f=_0x5c5531;_0x50957a[_0x58ac8f('0x1126')]=_0x51538b()['chain'](_0x5f54b5[_0x58ac8f('0x580')])['keyBy']('id')['mapValues'](_0x58ac8f('0x25d6'))[_0x58ac8f('0x12f4')](),_0x346c87[_0x58ac8f('0x23e3')]['get']({'fields':_0x58ac8f('0x221c'),'nolimit':!![]})[_0x58ac8f('0x1dc2')]['then'](function(_0xeac995){var _0x3fde97=_0x58ac8f;_0x50957a[_0x3fde97('0x2')]=_0xeac995[_0x3fde97('0x580')],_0x50957a[_0x3fde97('0x1cfb')]=_0x51538b()[_0x3fde97('0x1246')](_0x1a47fa,function(_0xd6130a){var _0x117987=_0x3fde97;return Object[_0x117987('0x9f2')](_0xd6130a)[_0x117987('0x15b5')](function(_0x57fc61){var _0x1750a0=_0x117987;if(Number(_0xd6130a[_0x57fc61])===Number(_0x50957a[_0x1750a0('0x42a')])){if(_0x57fc61[_0x1750a0('0x6e8')]('cf_')){var _0x5f1a2d=_0x51538b()[_0x1750a0('0xe9e')](_0x50957a[_0x1750a0('0x2')],['id',Number(_0x51538b()['trimStart'](_0x57fc61,_0x1750a0('0x7a5')))]);_0xd6130a[_0x1750a0('0x1300')]=_0x5f1a2d?_0x5f1a2d[_0x1750a0('0x19d9')]:_0x5d3963['instant'](_0x1750a0('0x22f7'));}else _0xd6130a[_0x1750a0('0x1300')]=_0x57fc61;}}),_0xd6130a;});});})[_0x5c5531('0xaa5')](function(){var _0x399a02=_0x5c5531;_0x50957a[_0x399a02('0x125')]=_0x51538b()[_0x399a02('0xf16')](_0x1a47fa,0x4);})[_0x5c5531('0x253d')](function(_0x40d98d){var _0x84a911=_0x5c5531;_0x4484f3[_0x84a911('0x187f')]({'title':_0x40d98d[_0x84a911('0x2fa')]?_0x84a911('0x16c2')+_0x40d98d[_0x84a911('0x2fa')]+'\x20-\x20'+_0x40d98d['statusText']:'api.cmList.get','msg':_0x40d98d[_0x84a911('0x10fd')]?JSON[_0x84a911('0xa48')](_0x40d98d['data'][_0x84a911('0x1402')]):_0x40d98d[_0x84a911('0x684')]()});});}function _0x25587f(){var _0x5af7a0=_0xd806bc;_0x50f72a[_0x5af7a0('0x1120')](_0x50957a[_0x5af7a0('0x1027')]);}_0x50957a[_0xd806bc('0x2318')]=_0x4f6682,_0x50957a['selectContact']=_0x25587f;}const _0x4f020b=_0x5765e0;_0x53d8b4[_0x1a8446('0x1e33')]=['$scope','$interval'];function _0x53d8b4(_0x4d574c,_0x1c374d){var _0x1130d8=_0x1a8446,_0x96c15a=_0x1c374d(function(){},0x3e7);_0x4d574c[_0x1130d8('0xc75')]('$destroy',function(){var _0x298991=_0x1130d8;_0x96c15a&&(_0x1c374d[_0x298991('0x2030')](_0x96c15a),_0x96c15a=null);});}const _0x4ec428=_0x53d8b4;_0x6aa346[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$timeout','$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x27bf'),'$translate',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74')];function _0x6aa346(_0x223c94,_0x3f0bc8,_0x502907,_0x3c1633,_0x1285fb,_0x828336,_0x375976,_0x435d6c,_0x36bd74){var _0x463cd6=_0x1a8446,_0x14d3be=this;_0x14d3be[_0x463cd6('0x1d0e')]=![],_0x14d3be[_0x463cd6('0x6cc')]=!![],_0x14d3be[_0x463cd6('0x2510')]=[],_0x14d3be[_0x463cd6('0xa9')]={'count':0x0,'rows':[]},_0x14d3be[_0x463cd6('0x7fc')]=_0x435d6c[_0x463cd6('0xacc')](),_0x14d3be['queues']={},_0x14d3be['abandonedCalls']={'count':0x0,'rows':[]},_0x14d3be['query']={'fields':_0x463cd6('0x2260'),'type':_0x463cd6('0x19d1'),'queuecallerexitreason':_0x463cd6('0x52f')+','+_0x463cd6('0x2033'),'sort':_0x463cd6('0xd82'),'limit':0xa,'page':0x1},_0x14d3be[_0x463cd6('0x1fb5')]=_0x58bcbc,_0x14d3be['refreshAbandonedCalls']=_0x32892e,_0x14d3be[_0x463cd6('0x2318')]=_0x200d32,_0x14d3be[_0x463cd6('0x64f')]=_0x4b7775,_0x14d3be[_0x463cd6('0xd3b')]=_0x5e36b4,_0x14d3be[_0x463cd6('0x1432')]=_0x223c94[_0x463cd6('0x24a3')][_0x463cd6('0x24a3')][_0x463cd6('0x24a3')][_0x463cd6('0x24a3')]['vm'][_0x463cd6('0x1432')],_0x14d3be[_0x463cd6('0x1368')]=_0x223c94[_0x463cd6('0x24a3')][_0x463cd6('0x24a3')][_0x463cd6('0x24a3')][_0x463cd6('0x24a3')]['vm'][_0x463cd6('0x1368')],_0x14d3be['webcall']=_0x223c94[_0x463cd6('0x24a3')]['$parent'][_0x463cd6('0x24a3')][_0x463cd6('0x24a3')]['vm']['webcall'],_0x14d3be[_0x463cd6('0xf76')]=_0x223c94[_0x463cd6('0x24a3')][_0x463cd6('0x24a3')]['$parent']['$parent']['vm'][_0x463cd6('0xf76')],_0x14d3be[_0x463cd6('0x2396')]=_0x5460fa,_0x14d3be[_0x463cd6('0x1104')]=_0x79de73,_0x36bd74[_0x463cd6('0xa84')](_0x463cd6('0x164c'),_0x381761),_0x36bd74[_0x463cd6('0xa84')](_0x463cd6('0x5a1'),_0x19da0c),_0x200d32();function _0x200d32(){var _0x52d06e=_0x463cd6;return _0x375976['disposition']['get']({'MailAccountId':_0x52d06e('0x1ed9'),'FaxAccountId':_0x52d06e('0x1ed9'),'SmsAccountId':_0x52d06e('0x1ed9'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x52d06e('0x1ed9'),'ChatWebsiteId':'null'})[_0x52d06e('0x1dc2')]['then'](function(_0x1d01ea){var _0xcde80a=_0x52d06e;return _0x14d3be[_0xcde80a('0xa9')]=_0x1d01ea?_0x1d01ea[_0xcde80a('0x580')]:[],_0x375976['user'][_0xcde80a('0x1e87')]({'id':_0x435d6c['getCurrentUser']()['id'],'fields':'id,name','channel':_0xcde80a('0x1b9'),'type':_0xcde80a('0x19d1'),'nolimit':!![]})[_0xcde80a('0x1dc2')];})[_0x52d06e('0xaa5')](function(_0x2b0ed0){var _0x4d1af9=_0x52d06e;_0x14d3be[_0x4d1af9('0x4d7')]=_0x2b0ed0||{'count':0x0,'rows':[]},_0x14d3be['queuesMap']=_0x51538b()['mapValues'](_0x51538b()[_0x4d1af9('0x184a')](_0x14d3be[_0x4d1af9('0x4d7')][_0x4d1af9('0x580')],'name'),'name'),_0x14d3be['defaultQueues']=_0x14d3be[_0x4d1af9('0x4d7')]['rows']?_0x51538b()[_0x4d1af9('0x1246')](_0x14d3be[_0x4d1af9('0x4d7')][_0x4d1af9('0x580')],_0x4d1af9('0x25d6'))['join'](','):undefined;})[_0x52d06e('0xaa5')](function(){var _0x29805a=_0x52d06e;_0x14d3be[_0x29805a('0x168c')]=_0x57606c();})['catch'](function(_0x2f52eb){var _0x38a19e=_0x52d06e;console[_0x38a19e('0x18d5')](_0x2f52eb);})[_0x52d06e('0x1889')](function(){var _0x551983=_0x52d06e,_0x331ea4=_0x1285fb[_0x551983('0x38e')][_0x551983('0x173f')](_0x551983('0x12ab')+_0x14d3be['currentUser']['id']);if(_0x331ea4)_0x331ea4=JSON['parse'](_0x331ea4),_0x331ea4[_0x551983('0x582')]&&(_0x14d3be['query']=_0x51538b()[_0x551983('0x283c')](_0x331ea4[_0x551983('0x582')],_0x51538b()[_0x551983('0x245')](_0x14d3be[_0x551983('0x582')],[_0x551983('0x1015'),_0x551983('0xf4d'),_0x551983('0x41')])),_0x14d3be[_0x551983('0x582')]=_0x51538b()[_0x551983('0x245')](_0x14d3be[_0x551983('0x582')],_0x551983('0xdb7')));else{var _0x4fed76={'$gte':_0x420d43()()['startOf'](_0x551983('0xae9'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x420d43()()[_0x551983('0x173a')]('month')['utcOffset'](0x0,!![])['format']()};_0x14d3be['query'][_0x551983('0x24a1')]=_0x4fed76;}_0x14d3be[_0x551983('0x1d47')]=_0x14d3be['query']['filter']?!![]:![],_0x14d3be[_0x551983('0x1fb5')]();});}function _0x57606c(){var _0x31ee7b=_0x463cd6;return[{'name':_0x31ee7b('0x12f1'),'key':'createdAt','type':'date','label':_0x31ee7b('0xf3d')},{'name':_0x31ee7b('0x521'),'key':_0x31ee7b('0x1037'),'type':_0x31ee7b('0xbff'),'label':_0x31ee7b('0x162f'),'customOptions':[{'value':_0x14d3be['currentUser']['id'],'translate':_0x31ee7b('0x1855')},{'value':'\x27null\x27','translate':_0x31ee7b('0x1a1c')},{'value':undefined,'translate':_0x31ee7b('0x20c4')}]},{'name':_0x31ee7b('0x2038'),'key':_0x31ee7b('0xe26'),'type':'multiselect','label':_0x31ee7b('0x1594'),'options':_0x14d3be['queues'][_0x31ee7b('0x580')],'ngValue':_0x31ee7b('0x25d6'),'clearAll':![]}];}function _0x58bcbc(){var _0x26ceed=_0x463cd6;_0x14d3be['query'][_0x26ceed('0xe26')]=_0x14d3be['query']['queue']||_0x14d3be[_0x26ceed('0xc38')]['split'](','),_0x14d3be[_0x26ceed('0x582')]['offset']=(_0x14d3be[_0x26ceed('0x582')]['page']-0x1)*_0x14d3be[_0x26ceed('0x582')][_0x26ceed('0xf4d')];var _0x4a7678={'query':_0x14d3be[_0x26ceed('0x582')]};_0x1285fb['localStorage'][_0x26ceed('0xdbf')]('motion2.home.abandoned.bull.calls:'+_0x14d3be[_0x26ceed('0x7fc')]['id'],JSON[_0x26ceed('0xa48')](_0x4a7678)),_0x14d3be[_0x26ceed('0x159a')]=_0x375976[_0x26ceed('0x1ca0')][_0x26ceed('0xc04')](_0x14d3be[_0x26ceed('0x582')],_0x274371)[_0x26ceed('0x1dc2')];}function _0x274371(_0x9b2407){var _0x5416c5=_0x463cd6;_0x14d3be[_0x5416c5('0x5e0')]=_0x9b2407||{'count':0x0,'rows':[]},_0x14d3be[_0x5416c5('0x6cc')]=!![];}function _0x5e36b4(_0x5b352b){var _0x305595=_0x463cd6;_0x502907[_0x305595('0x1e6d')]({'controller':'DisposeAbandonedCallDialogController','controllerAs':'vm','templateUrl':'app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','parent':angular[_0x305595('0x1aa8')](_0x3c1633[_0x305595('0x54c')]),'targetEvent':_0x5b352b,'resolve':{'globalDispositions':['apiResolver',function _0x5ae6e1(_0x303617){var _0x2b0646=_0x305595;return _0x303617[_0x2b0646('0x149f')](_0x2b0646('0xa42'),{'MailAccountId':_0x2b0646('0x1ed9'),'FaxAccountId':_0x2b0646('0x1ed9'),'SmsAccountId':_0x2b0646('0x1ed9'),'WhatsappAccountId':_0x2b0646('0x1ed9'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x2b0646('0x1ed9'),'ListId':_0x2b0646('0x1ed9')});}]},'locals':{'dispositions':_0x14d3be['dispositions'],'call':_0x5b352b}})['then'](function(_0x59b6e0){var _0x3d5511=_0x305595;if(_0x59b6e0){_0x14d3be[_0x3d5511('0x2510')][_0x5b352b['id']]=!![];var _0x37f714={'id':_0x5b352b['id'],'lastAssignedTo':_0x5b352b[_0x3d5511('0x20aa')]?_0x14d3be[_0x3d5511('0x7fc')][_0x3d5511('0x25d6')]:null,'assigned':_0x5b352b[_0x3d5511('0x20aa')],'disposition':_0x59b6e0[_0x3d5511('0x2e5')]||null,'secondDisposition':_0x59b6e0[_0x3d5511('0x1284')]||null,'thirdDisposition':_0x59b6e0[_0x3d5511('0x1c0a')]||null};_0x375976[_0x3d5511('0x1ca0')]['update'](_0x37f714)[_0x3d5511('0x1dc2')][_0x3d5511('0x253d')](function(_0x4211db){var _0x9e8eee=_0x3d5511;console[_0x9e8eee('0x18d5')](_0x4211db);})[_0x3d5511('0x1889')](function(){var _0x235d27=_0x3d5511;_0x14d3be[_0x235d27('0x2510')][_0x5b352b['id']]=![];});}});}function _0x5460fa(){var _0x28869a=_0x463cd6;_0x14d3be[_0x28869a('0x582')][_0x28869a('0xdb7')]=undefined,_0x14d3be[_0x28869a('0x1d47')]=![];}function _0x79de73(){_0x14d3be['isSearchBarVisible']=!![];}var _0x2bedfb=!![],_0x252ef9=0x1;_0x223c94['$watch']('vm_bull.query.filter',function(_0x216d5a,_0x20651c){var _0x1faebb=_0x463cd6;_0x2bedfb?_0x3f0bc8(function(){_0x2bedfb=![];}):(!_0x20651c&&(_0x252ef9=_0x14d3be[_0x1faebb('0x582')][_0x1faebb('0x41')]),_0x216d5a!==_0x20651c&&(_0x14d3be[_0x1faebb('0x582')][_0x1faebb('0x41')]=0x1),!_0x216d5a&&(_0x14d3be[_0x1faebb('0x582')][_0x1faebb('0x41')]=_0x252ef9),_0x14d3be[_0x1faebb('0x1fb5')]());});function _0x32892e(){var _0x15bf39=_0x463cd6;_0x14d3be[_0x15bf39('0x1d0e')]=![],_0x14d3be[_0x15bf39('0x1fb5')]();}function _0x4b7775(_0x3c46cd){var _0x170d4a=_0x463cd6;_0x3c46cd&&(_0x14d3be[_0x170d4a('0x2510')][_0x3c46cd['id']]=!![],_0x375976[_0x170d4a('0x1ca0')][_0x170d4a('0x264e')]({'id':_0x3c46cd['id'],'lastAssignedTo':_0x3c46cd[_0x170d4a('0x20aa')]?_0x14d3be[_0x170d4a('0x7fc')]['name']:null,'assigned':_0x3c46cd[_0x170d4a('0x20aa')]})['$promise'][_0x170d4a('0x253d')](function(_0x22c41a){var _0x2e14b6=_0x170d4a;console[_0x2e14b6('0x18d5')](_0x22c41a);})[_0x170d4a('0x1889')](function(){var _0x1604c6=_0x170d4a;_0x14d3be[_0x1604c6('0x2510')][_0x3c46cd['id']]=![];}));}function _0x381761(_0x31376f){var _0x10fcb2=_0x463cd6;_0x14d3be[_0x10fcb2('0x1492')]&&_0x31376f['type']==='outbound'&&_0x14d3be[_0x10fcb2('0x1492')][_0x31376f[_0x10fcb2('0xe26')]]&&(_0x14d3be['showTooltip']=!![]);}function _0x19da0c(_0x47ffeb){var _0x405e8a=_0x463cd6;if(_0x47ffeb){var _0x1b16ea=_0x51538b()[_0x405e8a('0xedc')](_0x14d3be[_0x405e8a('0x5e0')]['rows'],['id',_0x47ffeb['id']]);_0x1b16ea>=0x0&&_0x51538b()[_0x405e8a('0x283c')](_0x14d3be[_0x405e8a('0x5e0')][_0x405e8a('0x580')][_0x1b16ea],_0x47ffeb);}}_0x223c94[_0x463cd6('0xc75')](_0x463cd6('0x12d0'),function(){var _0x31904b=_0x463cd6;_0x36bd74['removeAllListeners'](_0x31904b('0x164c')),_0x36bd74[_0x31904b('0x2629')](_0x31904b('0x5a1'));});}const _0x3ad919=_0x6aa346;_0x16a8e0[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0xa9'),'globalDispositions',_0x1a8446('0x1432')];function _0x16a8e0(_0x20ea2f,_0x1c22c2,_0x44bef6,_0x354c3b){var _0x1727af=_0x1a8446,_0x1b2f8c=this;_0x1b2f8c['dispositions']=_0x1c22c2['rows'],_0x1b2f8c[_0x1727af('0x1881')]=_0x44bef6[_0x1727af('0x580')],_0x1b2f8c[_0x1727af('0x1432')]=_0x354c3b,_0x1b2f8c[_0x1727af('0x1a4d')]=_0x1b2f8c['call'][_0x1727af('0x1a4d')]||undefined,_0x1b2f8c[_0x1727af('0x1e9c')]=_0x3e6608,_0x1b2f8c['clearDispositionSelection']=_0x31019d,_0x1b2f8c[_0x1727af('0x254b')]=_0x4f5bbd,_0x1b2f8c[_0x1727af('0x2023')]=_0xd120a9;function _0x3e6608(_0x5d1be8){var _0x155d3d=_0x1727af,_0x46457e=_0x51538b()[_0x155d3d('0x1d7c')](_0x1b2f8c[_0x155d3d('0xa9')],_0x1b2f8c['globalDispositions'],'id');switch(_0x5d1be8){case _0x155d3d('0xe75'):_0x1b2f8c[_0x155d3d('0x767')]=_0x1b2f8c['firstLevelDisposition'],_0x1b2f8c[_0x155d3d('0x1314')]=_0x51538b()[_0x155d3d('0x2c2')](_0x46457e,['ParentId',_0x1b2f8c[_0x155d3d('0x207e')]['id']]),_0x1b2f8c[_0x155d3d('0x1219')]=undefined,_0x1b2f8c[_0x155d3d('0x225f')]=undefined,_0x1b2f8c['anyThirdLevelDisposition']=![];break;case'second':_0x1b2f8c[_0x155d3d('0x767')]=_0x1b2f8c[_0x155d3d('0x1219')],_0x1b2f8c[_0x155d3d('0x180c')]=_0x51538b()['some'](_0x46457e,[_0x155d3d('0x2733'),_0x1b2f8c[_0x155d3d('0x1219')]['id']]);break;case'third':_0x1b2f8c[_0x155d3d('0x767')]=_0x1b2f8c[_0x155d3d('0x225f')];break;}}function _0x31019d(_0x1e99de){var _0x70c9f2=_0x1727af;if(_0x1e99de===_0x70c9f2('0xeca'))_0x1b2f8c['secondLevelDisposition']=undefined,_0x1b2f8c[_0x70c9f2('0x225f')]=undefined,_0x1b2f8c[_0x70c9f2('0x767')]=_0x1b2f8c[_0x70c9f2('0x207e')];else _0x1e99de===_0x70c9f2('0x10db')&&(_0x1b2f8c[_0x70c9f2('0x225f')]=undefined,_0x1b2f8c[_0x70c9f2('0x767')]=_0x1b2f8c[_0x70c9f2('0x1219')]);}function _0x4f5bbd(){var _0x1a2442=_0x1727af;_0x1b2f8c['call']['note']=_0x1b2f8c[_0x1a2442('0x1a4d')];var _0x4a5f08={'firstLevel':_0x1b2f8c[_0x1a2442('0x207e')]?_0x1b2f8c[_0x1a2442('0x207e')][_0x1a2442('0x25d6')]:undefined,'secondLevel':_0x1b2f8c[_0x1a2442('0x1219')]?_0x1b2f8c[_0x1a2442('0x1219')][_0x1a2442('0x25d6')]:undefined,'thirdLevel':_0x1b2f8c[_0x1a2442('0x225f')]?_0x1b2f8c[_0x1a2442('0x225f')][_0x1a2442('0x25d6')]:undefined};_0x20ea2f[_0x1a2442('0x1120')](_0x4a5f08);}function _0xd120a9(){var _0x5a9548=_0x1727af;_0x20ea2f[_0x5a9548('0x2030')]();}}const _0x49d207=_0x16a8e0;_0x4970e4['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x186b'),'$mdDialog','$document','$window',_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74')];function _0x4970e4(_0x43c470,_0xf79ccd,_0x27828c,_0x38dbb2,_0x5d8db8,_0x4f4d94,_0x300058,_0x42dbb9,_0x589779){var _0x37955b=_0x1a8446,_0x8dc2ce=this;_0x8dc2ce['showTooltip']=![],_0x8dc2ce[_0x37955b('0x6cc')]=!![],_0x8dc2ce[_0x37955b('0x2510')]=[],_0x8dc2ce[_0x37955b('0xa9')]={'count':0x0,'rows':[]},_0x8dc2ce['currentUser']=_0x42dbb9['getCurrentUser'](),_0x8dc2ce['queues']={},_0x8dc2ce[_0x37955b('0x5e0')]={'count':0x0,'rows':[]},_0x8dc2ce[_0x37955b('0x582')]={'fields':_0x37955b('0x2260'),'type':_0x37955b('0x4b8'),'queuecallerexitreason':_0x37955b('0x52f')+','+_0x37955b('0x2033'),'sort':_0x37955b('0xd82'),'limit':0xa,'page':0x1},_0x8dc2ce[_0x37955b('0x1fb5')]=_0x12838b,_0x8dc2ce[_0x37955b('0x1989')]=_0x54e008,_0x8dc2ce[_0x37955b('0x2318')]=_0x48e29c,_0x8dc2ce['reserved']=_0x2fbdfb,_0x8dc2ce[_0x37955b('0xd3b')]=_0x40d87f,_0x8dc2ce[_0x37955b('0x1432')]=_0x43c470[_0x37955b('0x24a3')]['$parent'][_0x37955b('0x24a3')][_0x37955b('0x24a3')]['vm'][_0x37955b('0x1432')],_0x8dc2ce['transfer']=_0x43c470[_0x37955b('0x24a3')][_0x37955b('0x24a3')]['$parent'][_0x37955b('0x24a3')]['vm'][_0x37955b('0x1368')],_0x8dc2ce[_0x37955b('0x2047')]=_0x43c470[_0x37955b('0x24a3')][_0x37955b('0x24a3')][_0x37955b('0x24a3')][_0x37955b('0x24a3')]['vm'][_0x37955b('0x2047')],_0x8dc2ce[_0x37955b('0xf76')]=_0x43c470[_0x37955b('0x24a3')][_0x37955b('0x24a3')]['$parent'][_0x37955b('0x24a3')]['vm']['webtransfer'],_0x8dc2ce['onSearchBarCollapse']=_0x29d601,_0x8dc2ce[_0x37955b('0x1104')]=_0x1d4587,_0x589779[_0x37955b('0xa84')](_0x37955b('0x164c'),_0x1299e6),_0x589779[_0x37955b('0xa84')](_0x37955b('0x5a1'),_0x46c764),_0x48e29c();function _0x48e29c(){var _0x16561a=_0x37955b;return _0x300058['disposition'][_0x16561a('0x2122')]({'MailAccountId':_0x16561a('0x1ed9'),'FaxAccountId':_0x16561a('0x1ed9'),'SmsAccountId':'null','WhatsappAccountId':_0x16561a('0x1ed9'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x16561a('0x1ed9')})[_0x16561a('0x1dc2')][_0x16561a('0xaa5')](function(_0x448b8d){var _0x5805ac=_0x16561a;return _0x8dc2ce['dispositions']=_0x448b8d?_0x448b8d['rows']:[],_0x300058[_0x5805ac('0x272b')][_0x5805ac('0x1e87')]({'id':_0x42dbb9['getCurrentUser']()['id'],'fields':'id,name','channel':_0x5805ac('0x1b9'),'type':_0x5805ac('0x4b8'),'nolimit':!![]})[_0x5805ac('0x1dc2')];})[_0x16561a('0xaa5')](function(_0x1a401c){var _0x208323=_0x16561a;_0x8dc2ce[_0x208323('0x4d7')]=_0x1a401c||{'count':0x0,'rows':[]},_0x8dc2ce[_0x208323('0x1492')]=_0x51538b()[_0x208323('0xb6f')](_0x51538b()[_0x208323('0x184a')](_0x8dc2ce[_0x208323('0x4d7')][_0x208323('0x580')],_0x208323('0x25d6')),_0x208323('0x25d6')),_0x8dc2ce[_0x208323('0xc38')]=_0x8dc2ce[_0x208323('0x4d7')][_0x208323('0x580')]?_0x51538b()['map'](_0x8dc2ce['queues'][_0x208323('0x580')],'name')[_0x208323('0x19c4')](','):undefined;})[_0x16561a('0xaa5')](function(){var _0x58f361=_0x16561a;_0x8dc2ce[_0x58f361('0x168c')]=_0x414305();})[_0x16561a('0x253d')](function(_0x5188b0){var _0x33c765=_0x16561a;console[_0x33c765('0x18d5')](_0x5188b0);})[_0x16561a('0x1889')](function(){var _0x4e32d9=_0x16561a,_0x186997=_0x5d8db8[_0x4e32d9('0x38e')][_0x4e32d9('0x173f')](_0x4e32d9('0x134d')+_0x8dc2ce[_0x4e32d9('0x7fc')]['id']);if(_0x186997)_0x186997=JSON[_0x4e32d9('0x9b6')](_0x186997),_0x186997['query']&&(_0x8dc2ce[_0x4e32d9('0x582')]=_0x51538b()[_0x4e32d9('0x283c')](_0x186997[_0x4e32d9('0x582')],_0x51538b()[_0x4e32d9('0x245')](_0x8dc2ce[_0x4e32d9('0x582')],[_0x4e32d9('0x1015'),_0x4e32d9('0xf4d'),_0x4e32d9('0x41')])),_0x8dc2ce['query']=_0x51538b()[_0x4e32d9('0x245')](_0x8dc2ce['query'],_0x4e32d9('0xdb7')));else{var _0x4bab0e={'$gte':_0x420d43()()[_0x4e32d9('0x206d')]('month')['utcOffset'](0x0,!![])[_0x4e32d9('0x1f27')](),'$lte':_0x420d43()()[_0x4e32d9('0x173a')](_0x4e32d9('0xae9'))[_0x4e32d9('0x15db')](0x0,!![])[_0x4e32d9('0x1f27')]()};_0x8dc2ce[_0x4e32d9('0x582')][_0x4e32d9('0x24a1')]=_0x4bab0e;}_0x8dc2ce[_0x4e32d9('0x1d47')]=_0x8dc2ce[_0x4e32d9('0x582')][_0x4e32d9('0xdb7')]?!![]:![],_0x8dc2ce[_0x4e32d9('0x1fb5')]();});}function _0x414305(){var _0x4c2a0b=_0x37955b;return[{'name':_0x4c2a0b('0x12f1'),'key':_0x4c2a0b('0x24a1'),'type':_0x4c2a0b('0xb87'),'label':_0x4c2a0b('0xf3d')},{'name':_0x4c2a0b('0x521'),'key':_0x4c2a0b('0x1037'),'type':_0x4c2a0b('0xbff'),'label':_0x4c2a0b('0x162f'),'customOptions':[{'value':_0x8dc2ce[_0x4c2a0b('0x7fc')]['id'],'translate':_0x4c2a0b('0x1855')},{'value':_0x4c2a0b('0x15bf'),'translate':_0x4c2a0b('0x1a1c')},{'value':undefined,'translate':_0x4c2a0b('0x20c4')}]},{'name':'Campaign','key':_0x4c2a0b('0xe26'),'type':_0x4c2a0b('0x2468'),'label':_0x4c2a0b('0x1951'),'options':_0x8dc2ce[_0x4c2a0b('0x4d7')]['rows'],'ngValue':_0x4c2a0b('0x25d6'),'clearAll':![]}];}function _0x12838b(){var _0x2776b3=_0x37955b;_0x8dc2ce[_0x2776b3('0x582')][_0x2776b3('0xe26')]=_0x8dc2ce['query'][_0x2776b3('0xe26')]||_0x8dc2ce[_0x2776b3('0xc38')]['split'](','),_0x8dc2ce[_0x2776b3('0x582')][_0x2776b3('0x8b1')]=(_0x8dc2ce[_0x2776b3('0x582')][_0x2776b3('0x41')]-0x1)*_0x8dc2ce[_0x2776b3('0x582')][_0x2776b3('0xf4d')];var _0x1aa992={'query':_0x8dc2ce[_0x2776b3('0x582')]};_0x5d8db8[_0x2776b3('0x38e')]['setItem'](_0x2776b3('0x134d')+_0x8dc2ce[_0x2776b3('0x7fc')]['id'],JSON['stringify'](_0x1aa992)),_0x8dc2ce['promise']=_0x300058[_0x2776b3('0x1ca0')][_0x2776b3('0xc04')](_0x8dc2ce[_0x2776b3('0x582')],_0xcf7df4)['$promise'];}function _0xcf7df4(_0x59adb6){var _0x92a9af=_0x37955b;_0x8dc2ce['abandonedCalls']=_0x59adb6||{'count':0x0,'rows':[]},_0x8dc2ce[_0x92a9af('0x6cc')]=!![];}function _0x40d87f(_0x2843b5){var _0x36c232=_0x37955b;_0x27828c['show']({'controller':'DisposeAbandonedCallDialogController','controllerAs':'vm','templateUrl':_0x36c232('0xc05'),'parent':angular[_0x36c232('0x1aa8')](_0x38dbb2[_0x36c232('0x54c')]),'targetEvent':_0x2843b5,'resolve':{'globalDispositions':[_0x36c232('0x1d16'),function _0x690d63(_0x1b1a08){var _0xbbbcd6=_0x36c232;return _0x1b1a08[_0xbbbcd6('0x149f')]('disposition@get',{'MailAccountId':'null','FaxAccountId':_0xbbbcd6('0x1ed9'),'SmsAccountId':_0xbbbcd6('0x1ed9'),'WhatsappAccountId':_0xbbbcd6('0x1ed9'),'OpenchannelAccountId':_0xbbbcd6('0x1ed9'),'ChatWebsiteId':_0xbbbcd6('0x1ed9'),'ListId':_0xbbbcd6('0x1ed9')});}]},'locals':{'dispositions':_0x8dc2ce[_0x36c232('0xa9')],'call':_0x2843b5}})['then'](function(_0x4868cc){var _0x2f99a2=_0x36c232;if(_0x4868cc){_0x8dc2ce['disable'][_0x2843b5['id']]=!![];var _0x11ce35={'id':_0x2843b5['id'],'lastAssignedTo':_0x2843b5[_0x2f99a2('0x20aa')]?_0x8dc2ce[_0x2f99a2('0x7fc')][_0x2f99a2('0x25d6')]:null,'assigned':_0x2843b5[_0x2f99a2('0x20aa')],'disposition':_0x4868cc[_0x2f99a2('0x2e5')]||null,'secondDisposition':_0x4868cc[_0x2f99a2('0x1284')]||null,'thirdDisposition':_0x4868cc[_0x2f99a2('0x1c0a')]||null};_0x300058[_0x2f99a2('0x1ca0')][_0x2f99a2('0x264e')](_0x11ce35)[_0x2f99a2('0x1dc2')]['catch'](function(_0x53bd03){var _0x3e83d9=_0x2f99a2;console[_0x3e83d9('0x18d5')](_0x53bd03);})[_0x2f99a2('0x1889')](function(){var _0x317e30=_0x2f99a2;_0x8dc2ce[_0x317e30('0x2510')][_0x2843b5['id']]=![];});}});}function _0x29d601(){var _0x2fadc0=_0x37955b;_0x8dc2ce[_0x2fadc0('0x582')][_0x2fadc0('0xdb7')]=undefined,_0x8dc2ce[_0x2fadc0('0x1d47')]=![];}function _0x1d4587(){var _0x4a187e=_0x37955b;_0x8dc2ce[_0x4a187e('0x1d47')]=!![];}var _0x2049e9=!![],_0x4757c6=0x1;_0x43c470[_0x37955b('0x1ccf')](_0x37955b('0x8c4'),function(_0x3744d6,_0x51b844){var _0x79918b=_0x37955b;_0x2049e9?_0xf79ccd(function(){_0x2049e9=![];}):(!_0x51b844&&(_0x4757c6=_0x8dc2ce['query']['page']),_0x3744d6!==_0x51b844&&(_0x8dc2ce[_0x79918b('0x582')][_0x79918b('0x41')]=0x1),!_0x3744d6&&(_0x8dc2ce[_0x79918b('0x582')][_0x79918b('0x41')]=_0x4757c6),_0x8dc2ce['getAbandonedCalls']());});function _0x54e008(){var _0xa0153=_0x37955b;_0x8dc2ce['showTooltip']=![],_0x8dc2ce[_0xa0153('0x1fb5')]();}function _0x2fbdfb(_0x1b90d7){var _0x3c3a55=_0x37955b;_0x1b90d7&&(_0x8dc2ce[_0x3c3a55('0x2510')][_0x1b90d7['id']]=!![],_0x300058[_0x3c3a55('0x1ca0')][_0x3c3a55('0x264e')]({'id':_0x1b90d7['id'],'lastAssignedTo':_0x1b90d7[_0x3c3a55('0x20aa')]?_0x8dc2ce[_0x3c3a55('0x7fc')]['name']:null,'assigned':_0x1b90d7[_0x3c3a55('0x20aa')]})[_0x3c3a55('0x1dc2')]['catch'](function(_0x2843d8){var _0x4cfc9f=_0x3c3a55;console[_0x4cfc9f('0x18d5')](_0x2843d8);})[_0x3c3a55('0x1889')](function(){var _0x30632a=_0x3c3a55;_0x8dc2ce[_0x30632a('0x2510')][_0x1b90d7['id']]=![];}));}function _0x1299e6(_0x30baeb){var _0xe74c27=_0x37955b;_0x8dc2ce[_0xe74c27('0x1492')]&&_0x30baeb['type']==='inbound'&&_0x8dc2ce['queuesMap'][_0x30baeb[_0xe74c27('0xe26')]]&&(_0x8dc2ce['showTooltip']=!![]);}function _0x46c764(_0x58540c){var _0x38504f=_0x37955b;if(_0x58540c){var _0x4f16fe=_0x51538b()['findIndex'](_0x8dc2ce[_0x38504f('0x5e0')]['rows'],['id',_0x58540c['id']]);_0x4f16fe>=0x0&&_0x51538b()[_0x38504f('0x283c')](_0x8dc2ce['abandonedCalls'][_0x38504f('0x580')][_0x4f16fe],_0x58540c);}}_0x43c470[_0x37955b('0xc75')]('$destroy',function(){var _0x3f2ec1=_0x37955b;_0x589779[_0x3f2ec1('0x2629')](_0x3f2ec1('0x164c')),_0x589779[_0x3f2ec1('0x2629')](_0x3f2ec1('0x5a1'));});}const _0x2a80cc=_0x4970e4;_0x2569f9[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),'Auth',_0x1a8446('0x1b7b'),'draftManager'];function _0x2569f9(_0x39f29f,_0x23ceb2,_0x1d747b,_0x55ba3c,_0x54fae0){var _0x5301fc=_0x1a8446,_0x2736a6=this;_0x2736a6[_0x5301fc('0x272b')]=_0x1d747b['getCurrentUser'](),_0x2736a6[_0x5301fc('0x1202')]={},_0x2736a6[_0x5301fc('0x19a4')]={},_0x2736a6[_0x5301fc('0x143f')]={},_0x2736a6['sidebar']=_0x5301fc('0x55'),_0x2736a6[_0x5301fc('0xa66')]=_0x54fae0,_0x2736a6['navigation']=_0x55ba3c[_0x5301fc('0x236')](),_0x2736a6['addContactTab']=_0x39f29f['$parent']['vm']['addContactTab'],_0x2736a6[_0x5301fc('0x15e0')]=_0x39f29f['$parent']['vm']['addInteractionTab'],_0x2736a6[_0x5301fc('0x2e')]=_0x5db9a2,_0x2736a6[_0x5301fc('0x40f')]=_0x1598f7,_0x2736a6['hasPermission']=_0x57b196;function _0x5db9a2(_0xb71fb3,_0x113afd){var _0x433f9d=_0x5301fc;_0x2736a6[_0x433f9d('0x1202')]=_0xb71fb3,_0x2736a6['setting']=_0x113afd;var _0x5d761e=_0x23ceb2[_0x433f9d('0x38e')]['getItem'](_0x433f9d('0x123')+_0x2736a6[_0x433f9d('0x272b')]['id']);if(_0x5d761e){try{_0x5d761e=JSON['parse'](_0x5d761e),_0x2736a6['sidebar']=_0x5d761e[_0x433f9d('0x1565')]?_0x5d761e[_0x433f9d('0x1565')]:_0x433f9d('0x55');}catch(_0x203708){console['error'](_0x203708),_0x2736a6[_0x433f9d('0x1e3')]=_0x433f9d('0x55');}_0x2736a6[_0x433f9d('0x1e3')]==='mail'&&_0x2736a6[_0x433f9d('0xa66')][_0x433f9d('0x2e')]();}}function _0x57b196(_0x114751){var _0x5d9b0d=_0x5301fc;return _0x1d747b[_0x5d9b0d('0x69e')](_0x114751);}function _0x1598f7(_0x4717ef){var _0x4b97cb=_0x5301fc;_0x2736a6[_0x4b97cb('0x1e3')]=_0x4717ef[_0x4b97cb('0x370')],_0x2736a6[_0x4b97cb('0x1e3')]===_0x4b97cb('0x19a4')&&(_0x2736a6[_0x4b97cb('0x19a4')]=_0x4717ef[_0x4b97cb('0x1926')],_0x2736a6[_0x4b97cb('0x1db3')]=_0x4717ef['id'],_0x39f29f['$broadcast'](_0x4b97cb('0xa94'),{'plugin':_0x2736a6['plugin']})),_0x23ceb2['localStorage'][_0x4b97cb('0xdbf')]('motion2.home:'+_0x2736a6['user']['id'],JSON['stringify']({'currentSidebarTab':_0x4717ef[_0x4b97cb('0x370')]}));}_0x39f29f['$watch'](_0x5301fc('0x15c1'),function(_0x4b5310){var _0x499ab6=_0x5301fc;_0x4b5310===_0x499ab6('0x14c5')?_0x2736a6[_0x499ab6('0xa66')][_0x499ab6('0x2e')]():_0x2736a6[_0x499ab6('0xa66')][_0x499ab6('0x916')]={};});}const _0x271b00=_0x2569f9,_0x38b699=_0x4fb511['p']+'src/js/modules/core/dialogs/advanced-search/dialog.html/dialog-[chunkhash].html';_0x591a5b[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74'),_0x1a8446('0x2a4')];function _0x591a5b(_0x4be056,_0x22310a,_0x58ea94,_0x5bb2a8,_0x5118db,_0x387864,_0x189510,_0x4d9004,_0x4e7b2b,_0x1a8f7a){var _0x530470=_0x1a8446,_0x4fb45e=this;_0x4fb45e[_0x530470('0x272b')]=_0x4d9004[_0x530470('0xacc')](),_0x4fb45e[_0x530470('0x1202')]={},_0x4fb45e[_0x530470('0x143f')]={},_0x4fb45e['tags']={'count':0x0,'rows':[]},_0x4fb45e['chatInteractions']={'count':0x0,'rows':[]},_0x4fb45e['query']={'includeAll':!![],'sort':_0x530470('0xd82'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x4fb45e[_0x530470('0xd67')]={'fields':[{'name':'Id','column':'id','type':_0x530470('0x219a')},{'name':_0x530470('0x1dc'),'column':'Contact','type':_0x530470('0x7e6'),'options':{'searchFields':[_0x530470('0x24c1'),_0x530470('0x351'),_0x530470('0x1f69')],'route':{'model':_0x530470('0xdbd'),'action':'get','params':{'fields':_0x530470('0x14ba'),'Contact':_0x530470('0x1bfb'),'nolimit':!![]}},'extraOperators':[_0x530470('0x2082')],'excludedOperators':[_0x530470('0x13f7')]}},{'name':_0x530470('0x1e4'),'column':_0x530470('0x54c'),'type':_0x530470('0xb37'),'options':{'excludedOperators':[_0x530470('0x221d'),_0x530470('0x13f7')]}},{'name':_0x530470('0x26ae'),'column':_0x530470('0x1cbd'),'type':'select','values':[{'id':0x0,'translate':_0x530470('0x166e')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':['$ne']}},{'name':_0x530470('0x5a2'),'column':'customerIp','type':_0x530470('0xb37'),'options':{'excludedOperators':['$eq',_0x530470('0x13f7'),_0x530470('0x2772'),_0x530470('0x156e')]}},{'name':_0x530470('0x521'),'column':_0x530470('0x21b9'),'type':_0x530470('0x7e6'),'options':{'table':'i','route':{'model':'user','action':_0x530470('0x2122'),'params':{'role':_0x530470('0xeff'),'fields':_0x530470('0x25ff'),'nolimit':!![]}},'searchFields':[_0x530470('0x18e5'),_0x530470('0x25d6')],'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':'Website','column':'ChatWebsiteId','type':_0x530470('0x2468'),'options':{'route':{'model':_0x530470('0x272b'),'action':'getChatWebsites','params':{'id':_0x4fb45e[_0x530470('0x272b')]['id'],'nolimit':!![]}}}},{'name':'Tags','column':_0x530470('0x4e7'),'type':_0x530470('0x2468'),'options':{'route':{'model':'tag','action':_0x530470('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x530470('0x930')]}},{'name':_0x530470('0x12f1'),'column':_0x530470('0x24a1'),'type':_0x530470('0xb87'),'options':{'excludedOperators':[_0x530470('0x13f7')]}},{'name':_0x530470('0x120b'),'column':_0x530470('0x1551'),'type':_0x530470('0xbff'),'values':[{'id':0x1,'translate':_0x530470('0xdc4')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x530470('0x13f7')]}}]},_0x4fb45e['sectionColor']=_0x530470('0x1192'),_0x4fb45e[_0x530470('0x2318')]=_0x4fc97d,_0x4fb45e[_0x530470('0xe10')]=_0x1af3d5,_0x4fb45e['getChatInteractions']=_0x88c5de,_0x4fb45e[_0x530470('0x1be2')]=_0x1808e6,_0x4fb45e['downloadChatInteraction']=_0x5a6f29,_0x4fb45e[_0x530470('0xa8c')]=_0x235720,_0x4fb45e[_0x530470('0x603')]=_0x27696c,_0x4fb45e[_0x530470('0x149e')]=_0x246556,_0x4fb45e['getChatWebsiteLabel']=_0xa34b6c,_0x4fb45e[_0x530470('0x2396')]=_0x350a56,_0x4fb45e[_0x530470('0x1104')]=_0x51a3e5,_0x4fb45e[_0x530470('0x226e')]=_0x5a9b71;function _0x4fc97d(_0x4bd0f6,_0x55fcd7){var _0x57c109=_0x530470;return _0x4fb45e[_0x57c109('0x1202')]=_0x4bd0f6,_0x4fb45e[_0x57c109('0x143f')]=_0x55fcd7,_0x189510['user'][_0x57c109('0x2122')+_0x51538b()[_0x57c109('0x1791')]('ChatWebsites')]({'id':_0x4fb45e[_0x57c109('0x272b')]['id'],'nolimit':!![]})[_0x57c109('0x1dc2')]['then'](function(_0x2fefe4){var _0x310ea0=_0x57c109;return _0x4fb45e[_0x310ea0('0x86c')]=_0x2fefe4||{'count':0x0,'rows':[]},_0x189510[_0x310ea0('0x38f')][_0x310ea0('0x2122')]()[_0x310ea0('0x1dc2')];})[_0x57c109('0xaa5')](function(_0x5ac771){var _0x4df6c5=_0x57c109;_0x4fb45e[_0x4df6c5('0x523')]=_0x5ac771||{'count':0x0,'rows':[]};})[_0x57c109('0xaa5')](function(){var _0x104f44=_0x57c109;_0x4fb45e[_0x104f44('0x168c')]=_0x35518c();})[_0x57c109('0x253d')](function(_0x560c90){console['error'](_0x560c90);})[_0x57c109('0x1889')](function(){var _0x3d5cd8=_0x57c109,_0x32feda=_0x5118db[_0x3d5cd8('0x38e')][_0x3d5cd8('0x173f')](_0x3d5cd8('0xd26')+_0x4fb45e[_0x3d5cd8('0x272b')]['id']);if(_0x32feda)try{_0x32feda=JSON[_0x3d5cd8('0x9b6')](_0x32feda);if(_0x32feda[_0x3d5cd8('0x582')]){_0x4fb45e[_0x3d5cd8('0x582')]=_0x51538b()[_0x3d5cd8('0x283c')](_0x4fb45e[_0x3d5cd8('0x582')],_0x32feda[_0x3d5cd8('0x582')]);if(_0x51538b()[_0x3d5cd8('0x116b')](_0x4fb45e['chatAccounts']['rows']))_0x4fb45e[_0x3d5cd8('0x582')][_0x3d5cd8('0x1421')]=[];else _0x51538b()['isEmpty'](_0x4fb45e[_0x3d5cd8('0x582')]['ChatWebsiteId'])&&(_0x4fb45e[_0x3d5cd8('0x582')][_0x3d5cd8('0x1421')]=_0x51538b()(_0x4fb45e['chatAccounts'][_0x3d5cd8('0x580')])[_0x3d5cd8('0x1246')]('id')[_0x3d5cd8('0x1ac1')]()['value']());_0x4fb45e[_0x3d5cd8('0x582')][_0x3d5cd8('0x1015')]&&_0x4fb45e['query'][_0x3d5cd8('0x1015')][_0x3d5cd8('0x1f38')](_0x3d5cd8('0x6a5'))>=0x0&&(_0x4fb45e[_0x3d5cd8('0x582')]=_0x51538b()['omit'](_0x4fb45e['query'],'sort')),_0x4fb45e[_0x3d5cd8('0x582')][_0x3d5cd8('0x17ac')]=!![],_0x4fb45e[_0x3d5cd8('0x1d47')]=_0x4fb45e[_0x3d5cd8('0x582')][_0x3d5cd8('0xdb7')]?!![]:![];}}catch(_0x10611b){console[_0x3d5cd8('0x187f')](_0x10611b);}else{var _0x3df8ca={'$gte':_0x420d43()()[_0x3d5cd8('0x206d')](_0x3d5cd8('0xae9'))[_0x3d5cd8('0x15db')](0x0,!![])['format'](),'$lte':_0x420d43()()[_0x3d5cd8('0x173a')]('month')[_0x3d5cd8('0x15db')](0x0,!![])[_0x3d5cd8('0x1f27')]()},_0x291d7e={'ChatWebsiteId':_0x51538b()[_0x3d5cd8('0x1246')](_0x4fb45e[_0x3d5cd8('0x86c')][_0x3d5cd8('0x580')],'id'),'createdAt':_0x3df8ca};_0x4fb45e['query']=_0x51538b()[_0x3d5cd8('0x283c')](_0x4fb45e['query'],_0x291d7e);}_0x4e7b2b['on'](_0x3d5cd8('0x1ac2'),_0x1ce100),_0x4e7b2b['on'](_0x3d5cd8('0x1cb7'),_0x1ce100),_0x4e7b2b['on'](_0x3d5cd8('0x2332'),_0x1e5a56),_0x4e7b2b['on'](_0x3d5cd8('0xf97'),_0x56f633),_0x4e7b2b['on']('chatMessage:update',_0x56f633),_0x4e7b2b['on'](_0x3d5cd8('0x24ca'),_0x40812f),_0x4e7b2b['on'](_0x3d5cd8('0x25e3'),_0x82991b),_0x88c5de(_0x4fb45e[_0x3d5cd8('0x582')][_0x3d5cd8('0x41')]);});}function _0x35518c(){var _0x293725=_0x530470;return[{'name':'Start\x20Date','key':'createdAt','type':_0x293725('0xb87'),'label':_0x293725('0xf3d')},{'name':_0x293725('0x1cd2'),'key':_0x293725('0x7b7'),'type':_0x293725('0xbff'),'label':_0x293725('0x1da2'),'customOptions':[{'value':0x0,'translate':_0x293725('0x320')},{'value':0x1,'translate':_0x293725('0xdc4')},{'value':null,'translate':_0x293725('0x20c4')}]},{'name':_0x293725('0x26ae'),'key':_0x293725('0x1cbd'),'type':_0x293725('0xbff'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x293725('0x166e')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x293725('0x20c4')}]},{'name':_0x293725('0xf2b'),'key':_0x293725('0x1421'),'type':_0x293725('0x2468'),'label':_0x293725('0x136e'),'options':_0x4fb45e['chatAccounts'][_0x293725('0x580')],'clearAll':![]},{'name':_0x293725('0x521'),'key':'UserId','type':'select','label':_0x293725('0x162f'),'customOptions':[{'value':_0x4fb45e['user']['id'],'translate':_0x293725('0x1855')},{'value':_0x293725('0x1ed9'),'translate':_0x293725('0x1a1c')},{'value':undefined,'translate':_0x293725('0x20c4')}]},{'name':'Tag','key':'tag','type':_0x293725('0x2468'),'label':_0x293725('0x6a6'),'options':_0x4fb45e[_0x293725('0x523')]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x1af3d5(_0xb6cee7){var _0x39deac=_0x530470;_0x4fb45e['searchInProgress']=![],_0x4fb45e[_0x39deac('0x23fc')]=_0xb6cee7||{'count':0x0,'rows':[]};for(var _0x264ad5=0x0;_0x264ad5<_0x4fb45e[_0x39deac('0x23fc')][_0x39deac('0x580')][_0x39deac('0x2587')];_0x264ad5+=0x1){_0x27696c(_0x4fb45e['chatInteractions'][_0x39deac('0x580')][_0x264ad5]);}}function _0x88c5de(_0x4b6e8d){var _0x5cdbd0=_0x530470;_0x4fb45e[_0x5cdbd0('0x1206')]=!![];!_0x4b6e8d&&(_0x4fb45e[_0x5cdbd0('0x582')][_0x5cdbd0('0x41')]=0x1);_0x4fb45e['query'][_0x5cdbd0('0x8b1')]=(_0x4fb45e['query'][_0x5cdbd0('0x41')]-0x1)*_0x4fb45e[_0x5cdbd0('0x582')][_0x5cdbd0('0xf4d')];var _0x2f1c5b=_0x5118db[_0x5cdbd0('0x38e')][_0x5cdbd0('0x173f')](_0x5cdbd0('0xd26')+_0x4fb45e[_0x5cdbd0('0x272b')]['id']);_0x2f1c5b=_0x2f1c5b?JSON[_0x5cdbd0('0x9b6')](_0x2f1c5b):{},_0x2f1c5b[_0x5cdbd0('0x582')]=_0x4fb45e[_0x5cdbd0('0x582')],_0x5118db[_0x5cdbd0('0x38e')][_0x5cdbd0('0xdbf')](_0x5cdbd0('0xd26')+_0x4fb45e[_0x5cdbd0('0x272b')]['id'],JSON[_0x5cdbd0('0xa48')](_0x2f1c5b)),_0x4fb45e[_0x5cdbd0('0x159a')]=_0x189510[_0x5cdbd0('0x1917')]['get'](_0x4fb45e[_0x5cdbd0('0x582')],_0x1af3d5)[_0x5cdbd0('0x1dc2')];}function _0x1808e6(_0x492204,_0x41f306){var _0x1f6903=_0x530470;_0x4be056[_0x1f6903('0x24a3')]['vm'][_0x1f6903('0x15e0')](_0x1f6903('0x20f9'),_0x41f306);}function _0x5a6f29(_0x21c147,_0x9b1604,_0x1b1c01){var _0x34f163=_0x530470;_0x189510['chatInteraction'][_0x34f163('0x1cf9')]({'id':_0x9b1604['id'],'attachments':_0x1b1c01})['$promise'][_0x34f163('0xaa5')](function(_0x42f9fb){var _0xc9bcd=_0x34f163,_0x2f5566=[_0x42f9fb[_0xc9bcd('0x1bf1')]],_0x3de948=_0xc9bcd('0x1e9f')+_0x9b1604['id']+_0xc9bcd('0x966'),_0x129152=new Blob(_0x2f5566,{'type':_0x42f9fb['type']}),_0x1b5c3b=window[_0xc9bcd('0x12aa')][_0xc9bcd('0x531')]('a');_0x1b5c3b[_0xc9bcd('0x107b')]('href',URL[_0xc9bcd('0x1e56')](_0x129152)),_0x1b5c3b[_0xc9bcd('0x107b')](_0xc9bcd('0x1cf9'),_0x3de948),document[_0xc9bcd('0x54c')][_0xc9bcd('0x1315')](_0x1b5c3b),_0x1b5c3b[_0xc9bcd('0x467')]();})['catch'](function(_0x44c744){var _0x34b11b=_0x34f163;if(_0x44c744['data']&&_0x44c744[_0x34b11b('0x10fd')][_0x34b11b('0x4c6')]&&_0x44c744['data']['errors'][_0x34b11b('0x2587')])for(var _0x4a2e42=0x0;_0x4a2e42<_0x44c744[_0x34b11b('0x10fd')][_0x34b11b('0x4c6')]['length'];_0x4a2e42+=0x1){_0x1a8f7a[_0x34b11b('0x187f')]({'title':_0x44c744['data']['errors'][_0x4a2e42][_0x34b11b('0x6c8')],'msg':_0x44c744['data'][_0x34b11b('0x4c6')][_0x4a2e42][_0x34b11b('0x1402')]});}else _0x1a8f7a[_0x34b11b('0x187f')]({'title':_0x44c744[_0x34b11b('0x2fa')]?'API:'+_0x44c744[_0x34b11b('0x2fa')]+_0x34b11b('0x169e')+_0x44c744['statusText']:_0x34b11b('0x2fe'),'msg':_0x44c744[_0x34b11b('0x10fd')]?JSON[_0x34b11b('0xa48')](_0x44c744['data']['message']):_0x44c744[_0x34b11b('0x684')]()});});}function _0x235720(_0x17bb42,_0x33ffe6){var _0x3a74bd=_0x530470,_0x4f4bb4=_0x4fb45e[_0x3a74bd('0x272b')][_0x3a74bd('0x2519')]||_0x4fb45e[_0x3a74bd('0x272b')][_0x3a74bd('0x1f36')]||_0x4fb45e[_0x3a74bd('0x272b')]['mailPause']||_0x4fb45e[_0x3a74bd('0x272b')][_0x3a74bd('0xc8f')]||_0x4fb45e[_0x3a74bd('0x272b')]['faxPause'],_0xda9cee=!_0x33ffe6[_0x3a74bd('0x75a')][_0x3a74bd('0x1844')];_0x58ea94[_0x3a74bd('0x1e6d')]({'controller':_0x3a74bd('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular['element'](_0x5bb2a8[_0x3a74bd('0x54c')]),'clickOutsideToClose':_0xda9cee,'escapeToClose':_0xda9cee,'onRemoving':function _0x451d6d(){var _0x4e347f=_0x3a74bd;_0x4fb45e[_0x4e347f('0x272b')]&&_0x33ffe6[_0x4e347f('0x75a')][_0x4e347f('0x1844')]&&!_0x4f4bb4&&_0x189510[_0x4e347f('0x272b')]['unpause']({'id':_0x4fb45e['user']['id']})[_0x4e347f('0x1dc2')][_0x4e347f('0x253d')](function(_0x552882){var _0x3371d4=_0x4e347f;console[_0x3371d4('0x187f')](_0x552882);});},'locals':{'user':_0x4fb45e[_0x3a74bd('0x272b')],'channel':_0x3a74bd('0x20f9'),'interaction':_0x33ffe6}});}function _0x27696c(_0x132afe){var _0x31a3c3=_0x530470;_0x132afe['Contact']?_0x132afe[_0x31a3c3('0x4e0')]=(_0x132afe[_0x31a3c3('0x1dc')]['firstName']||'')+'\x20'+(_0x132afe[_0x31a3c3('0x1dc')][_0x31a3c3('0x351')]||''):_0x132afe[_0x31a3c3('0x4e0')]=_0x387864[_0x31a3c3('0x213f')](_0x31a3c3('0x22f7'));}function _0x246556(_0x4b505e){var _0x107879=_0x530470;if(_0x4b505e[_0x107879('0x1037')])return _0x4b505e[_0x107879('0x1037')]===_0x4fb45e['user']['id']?_0x387864['instant'](_0x107879('0x1855')):_0x4b505e[_0x107879('0x40')]['fullname']+'\x20<'+_0x4b505e[_0x107879('0x40')][_0x107879('0x1b0d')]+'>';return _0x387864[_0x107879('0x213f')](_0x107879('0x1a1c'));}function _0xa34b6c(_0x503aef){var _0x26f5ed=_0x530470;if(_0x503aef[_0x26f5ed('0x75a')])return _0x503aef['Account'][_0x26f5ed('0x24ec')];return _0x387864['instant']('DASHBOARDS.UNKNOWN');}function _0x40812f(_0x1be2fc){var _0x448550=_0x530470,_0x3e2d9a,_0x93921c=_0x51538b()[_0x448550('0xe9e')](_0x4fb45e[_0x448550('0x23fc')][_0x448550('0x580')],{'id':_0x1be2fc[_0x448550('0xffe')]});_0x93921c&&_0x93921c[_0x448550('0x16b4')]&&(_0x3e2d9a=_0x51538b()['find'](_0x93921c[_0x448550('0x16b4')],{'id':_0x1be2fc[_0x448550('0x1037')]}),!_0x3e2d9a&&_0x93921c[_0x448550('0x16b4')]['push']({'id':_0x1be2fc[_0x448550('0x1037')]}));}function _0x82991b(_0x208a03){var _0x21792f=_0x530470,_0x1c7061=_0x51538b()['find'](_0x4fb45e[_0x21792f('0x23fc')]['rows'],{'id':_0x208a03[_0x21792f('0xffe')]});_0x1c7061&&_0x1c7061[_0x21792f('0x16b4')]&&_0x51538b()[_0x21792f('0xf6d')](_0x1c7061[_0x21792f('0x16b4')],{'id':_0x208a03[_0x21792f('0x1037')]});}function _0x1ce100(_0x4e8fec){var _0x39971c=_0x530470;if(_0x4e8fec){var _0x108a49=_0x51538b()[_0x39971c('0xe9e')](_0x4fb45e[_0x39971c('0x23fc')][_0x39971c('0x580')],{'id':_0x4e8fec['id']});if(_0x108a49){_0x108a49['Users']=[];_0x4e8fec[_0x39971c('0x1cbd')]&&(_0x108a49[_0x39971c('0x1551')]=0x0);if(_0x4fb45e[_0x39971c('0x582')][_0x39971c('0x1015')]){var _0x2b6b36=_0x51538b()[_0x39971c('0x6e8')](_0x4fb45e[_0x39971c('0x582')][_0x39971c('0x1015')],'-')?_0x39971c('0x71c'):'asc';_0x4fb45e['chatInteractions'][_0x39971c('0x580')]=_0x51538b()[_0x39971c('0x271d')](_0x4fb45e['chatInteractions'][_0x39971c('0x580')],_0x51538b()[_0x39971c('0x134c')](_0x4fb45e[_0x39971c('0x582')][_0x39971c('0x1015')],'-'),_0x2b6b36);}_0x51538b()[_0x39971c('0x283c')](_0x108a49,_0x51538b()['pick'](_0x4e8fec,_0x51538b()[_0x39971c('0x9f2')](_0x108a49)));}else _0x88c5de(_0x4fb45e['query'][_0x39971c('0x41')]);}}function _0x1e5a56(_0x3d9b3f){var _0x38faaf=_0x530470;if(_0x3d9b3f){var _0x7f0374=_0x51538b()['find'](_0x4fb45e[_0x38faaf('0x23fc')][_0x38faaf('0x580')],{'id':_0x3d9b3f['id']});_0x7f0374&&(_0x7f0374[_0x38faaf('0x67f')]=_0x3d9b3f[_0x38faaf('0x523')]||[],_0x51538b()[_0x38faaf('0x283c')](_0x7f0374,_0x51538b()[_0x38faaf('0x104e')](_0x3d9b3f,_0x51538b()[_0x38faaf('0x9f2')](_0x7f0374))));}}function _0x56f633(_0x4705d8){var _0x267406=_0x530470;if(_0x4705d8&&!_0x4705d8['secret']){var _0x2bebed=_0x51538b()[_0x267406('0xe9e')](_0x4fb45e[_0x267406('0x23fc')][_0x267406('0x580')],{'id':_0x4705d8[_0x267406('0xffe')]});if(_0x2bebed){var _0xe1a1ef=_0x51538b()[_0x267406('0xe9e')](_0x2bebed[_0x267406('0x1cd2')],{'id':_0x4705d8['id']});_0xe1a1ef?_0x51538b()[_0x267406('0x283c')](_0xe1a1ef,_0x51538b()[_0x267406('0x104e')](_0x4705d8,_0x51538b()['keys'](_0xe1a1ef))):(_0x51538b()[_0x267406('0x89a')](_0x2bebed[_0x267406('0x1cd2')])&&(_0x2bebed['Messages']={'count':0x0}),!_0x4705d8[_0x267406('0x7b7')]&&(_0x2bebed['Messages'][_0x267406('0xd15')]+=0x1));}}}function _0x350a56(){_0x4fb45e['isSearchBarVisible']=![];}function _0x51a3e5(){var _0x41635c=_0x530470;_0x4fb45e[_0x41635c('0x1d47')]=!![];}function _0x5a9b71(){var _0x1103dd=_0x530470;_0x4fb45e[_0x1103dd('0x1d47')]=![],_0x58ea94[_0x1103dd('0x1e6d')]({'controller':_0x1103dd('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0x1103dd('0x1aa8')](_0x5bb2a8[_0x1103dd('0x54c')]),'clickOutsideToClose':![],'locals':{'color':_0x4fb45e[_0x1103dd('0xe68')],'fields':_0x4fb45e[_0x1103dd('0xd67')][_0x1103dd('0x13a')],'storagePath':_0x1103dd('0x26c1')},'fullscreen':!![]})['then'](function(_0x1b9add){var _0x4f09dc=_0x1103dd;_0x4fb45e['query'][_0x4f09dc('0x1785')]=_0x1b9add===![]?undefined:_0x1b9add;if(_0x4fb45e['query'][_0x4f09dc('0x1785')]||_0x1b9add===![])_0x88c5de();})[_0x1103dd('0x253d')](function(_0x177701){var _0x142458=_0x1103dd;_0x1a8f7a[_0x142458('0x187f')]({'title':_0x142458('0x208b'),'msg':_0x177701[_0x142458('0x10fd')]?JSON['stringify'](_0x177701[_0x142458('0x10fd')][_0x142458('0x1402')]):_0x177701[_0x142458('0x684')]()});});}var _0x2725d2=!![],_0x34fbdd=0x1;_0x4be056[_0x530470('0x1ccf')](_0x530470('0x1788'),function(_0x2478e1,_0x491ae7){var _0x1e4dc7=_0x530470;_0x2725d2?_0x22310a(function(){_0x2725d2=![];}):(!_0x491ae7&&(_0x34fbdd=_0x4fb45e['query'][_0x1e4dc7('0x41')]),_0x2478e1!==_0x491ae7&&(_0x4fb45e[_0x1e4dc7('0x582')]['page']=0x1),!_0x2478e1&&(_0x4fb45e['query'][_0x1e4dc7('0x41')]=_0x34fbdd),_0x88c5de(_0x4fb45e[_0x1e4dc7('0x582')][_0x1e4dc7('0x41')]));}),_0x4be056[_0x530470('0xc75')](_0x530470('0x12d0'),function(){var _0x37319f=_0x530470;_0x4e7b2b[_0x37319f('0x2629')]('chatMessage:save'),_0x4e7b2b[_0x37319f('0x2629')](_0x37319f('0x1260')),_0x4e7b2b[_0x37319f('0x2629')](_0x37319f('0x1ac2')),_0x4e7b2b['removeAllListeners'](_0x37319f('0x2332')),_0x4e7b2b[_0x37319f('0x2629')]('chatInteraction:update'),_0x4e7b2b[_0x37319f('0x2629')]('user_has_chat_interactions:save'),_0x4e7b2b['removeAllListeners'](_0x37319f('0x25e3'));});}const _0x2cf721=_0x591a5b;_0x150ff8[_0x1a8446('0x1e33')]=['$document',_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x27bf'),_0x1a8446('0x1dfd'),_0x1a8446('0x157'),'toasty'];function _0x150ff8(_0x1573e1,_0x3e582d,_0x2327e4,_0x13f87d,_0x3b4651,_0x35c196,_0x43eb81,_0x1822e0){var _0x2871f1=_0x1a8446,_0x587265=this;_0x587265[_0x2871f1('0x7fc')]=_0x35c196['getCurrentUser'](),_0x587265[_0x2871f1('0x1126')]={},_0x587265[_0x2871f1('0x1cfb')]={'count':0x0,'rows':[]},_0x587265[_0x2871f1('0x523')]={'count':0x0,'rows':[]},_0x587265['query']={'includeAll':!![],'sort':_0x2871f1('0xd82'),'limit':0xa,'page':0x1},_0x587265[_0x2871f1('0xd67')]={'fields':[]},_0x587265[_0x2871f1('0xe68')]=_0x2871f1('0x1a19'),_0x587265[_0x2871f1('0x1c2')]=_0x2bc3fa,_0x587265[_0x2871f1('0x277f')]=_0x849d09,_0x587265[_0x2871f1('0x1e9e')]=_0x1d6cf1,_0x587265[_0x2871f1('0x10')]=_0x4881bb,_0x587265['openContact']=_0x326647,_0x587265[_0x2871f1('0x1432')]=_0x3e582d['$parent']['vm']['call'],_0x587265[_0x2871f1('0x2318')]=_0x54b763,_0x587265[_0x2871f1('0x2396')]=_0xb9ef4b,_0x587265[_0x2871f1('0x1104')]=_0x495f2c,_0x587265[_0x2871f1('0x226e')]=_0x1370c3;function _0x54b763(){var _0x5f06af=_0x2871f1;_0x43eb81['user']['getLists']({'id':_0x587265['currentUser']['id'],'fields':_0x5f06af('0x18bf'),'sort':_0x5f06af('0x25d6'),'nolimit':!![]})[_0x5f06af('0x1dc2')]['then'](function(_0x253773){var _0x176da5=_0x5f06af;return _0x587265[_0x176da5('0x1126')]=_0x253773||{'count':0x0,'rows':[]},_0x587265[_0x176da5('0xa52')]=_0x51538b()['keyBy'](_0x587265[_0x176da5('0x1126')][_0x176da5('0x580')],'id'),_0x43eb81[_0x176da5('0x38f')]['get']()['$promise'];})[_0x5f06af('0xaa5')](function(_0x274bfa){var _0x165a23=_0x5f06af;_0x587265[_0x165a23('0x523')]=_0x274bfa||{'count':0x0,'rows':[]};})[_0x5f06af('0xaa5')](function(){var _0x523f56=_0x5f06af;_0x587265[_0x523f56('0x168c')]=_0x12ad4b();})[_0x5f06af('0x253d')](function(_0xc0ddb9){console['error'](_0xc0ddb9);})[_0x5f06af('0x1889')](function(){var _0x493acb=_0x5f06af,_0x5a881f=_0x3b4651[_0x493acb('0x38e')][_0x493acb('0x173f')](_0x493acb('0x991')+_0x587265['currentUser']['id']);if(_0x5a881f)try{_0x5a881f=JSON[_0x493acb('0x9b6')](_0x5a881f);if(_0x5a881f[_0x493acb('0x582')]){_0x587265['query']=_0x51538b()[_0x493acb('0x283c')](_0x587265[_0x493acb('0x582')],_0x5a881f[_0x493acb('0x582')]);if(_0x51538b()['isEmpty'](_0x587265['lists'][_0x493acb('0x580')]))_0x587265[_0x493acb('0x582')][_0x493acb('0xee0')]=[];else _0x51538b()[_0x493acb('0x116b')](_0x587265[_0x493acb('0x582')][_0x493acb('0xee0')])&&(_0x587265[_0x493acb('0x582')][_0x493acb('0xee0')]=_0x51538b()(_0x587265['lists'][_0x493acb('0x580')])['map']('id')[_0x493acb('0x1ac1')]()['value']());}}catch(_0x3e545c){console[_0x493acb('0x18d5')](_0x3e545c);}else _0x587265[_0x493acb('0x582')][_0x493acb('0xee0')]=_0x51538b()[_0x493acb('0x1246')](_0x587265[_0x493acb('0x1126')]['rows'],'id');_0x587265[_0x493acb('0x1d47')]=_0x587265[_0x493acb('0x582')][_0x493acb('0xdb7')]?!![]:![],_0x2bc3fa();});}function _0x12ad4b(){var _0x5191e7=_0x2871f1;return[{'name':'List','key':_0x5191e7('0xee0'),'type':_0x5191e7('0x2468'),'label':_0x5191e7('0x17dd'),'options':_0x587265[_0x5191e7('0x1126')]['rows'],'clearAll':![]},{'name':_0x5191e7('0x4e7'),'key':'tag','type':_0x5191e7('0x2468'),'label':_0x5191e7('0x6a6'),'options':_0x587265[_0x5191e7('0x523')][_0x5191e7('0x580')],'placeholder':_0x5191e7('0x1161')}];}function _0x311839(_0x39e7ba){var _0x3d7ee4=_0x2871f1;_0x587265[_0x3d7ee4('0x1206')]=![],_0x587265[_0x3d7ee4('0x1cfb')]=_0x39e7ba||{'count':0x0,'rows':[]};}function _0x2bc3fa(_0x2fbf1a){var _0x30290d=_0x2871f1;_0x587265[_0x30290d('0x1206')]=!![],_0x431ab7();!_0x2fbf1a&&(_0x587265[_0x30290d('0x582')]['page']=0x1);_0x587265[_0x30290d('0x582')][_0x30290d('0x8b1')]=(_0x587265['query']['page']-0x1)*_0x587265[_0x30290d('0x582')][_0x30290d('0xf4d')];var _0x3a5b19=_0x3b4651['localStorage'][_0x30290d('0x173f')](_0x30290d('0x991')+_0x587265[_0x30290d('0x7fc')]['id']);_0x3a5b19=_0x3a5b19?JSON[_0x30290d('0x9b6')](_0x3a5b19):{},_0x3a5b19[_0x30290d('0x582')]=_0x587265[_0x30290d('0x582')],_0x3b4651[_0x30290d('0x38e')][_0x30290d('0xdbf')](_0x30290d('0x991')+_0x587265['currentUser']['id'],JSON['stringify'](_0x3a5b19)),_0x587265[_0x30290d('0x159a')]=_0x43eb81['cmContact'][_0x30290d('0x2122')](_0x587265[_0x30290d('0x582')],_0x311839)[_0x30290d('0x1dc2')];}function _0x326647(_0x503d8f){var _0x2b0fcc=_0x2871f1;return _0x43eb81['cmContact'][_0x2b0fcc('0x2122')]({'id':_0x503d8f})['$promise']['then'](function(_0x2d7258){var _0x46faae=_0x2b0fcc;_0x3e582d['$parent']['vm'][_0x46faae('0xde6')](_0x2d7258);});}function _0x849d09(){_0x2bc3fa();}function _0x4881bb(_0x1aac6a,_0x35088d){var _0x38abc2=_0x2871f1;_0x13f87d[_0x38abc2('0x1e6d')]({'controller':_0x38abc2('0x18b1'),'controllerAs':'vm','templateUrl':_0x1121c7,'parent':angular['element'](_0x1573e1[_0x38abc2('0x54c')]),'targetEvent':_0x1aac6a,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function _0x563608(_0x1a574f){var _0x34a9a1=_0x38abc2;return _0x1a574f[_0x34a9a1('0x149f')](_0x34a9a1('0xe18'),{'id':_0x35088d['id']});}],'lists':[_0x38abc2('0x1d16'),function _0x50c95b(_0x2f80e8){var _0x1315cd=_0x38abc2;return _0x2f80e8[_0x1315cd('0x149f')](_0x1315cd('0x1982'),{'id':_0x587265[_0x1315cd('0x7fc')]['id'],'fields':'id,name'});}]},'locals':{'contacts':_0x587265['contacts'][_0x38abc2('0x580')]}});}function _0x1d6cf1(_0x5d2634,_0x5dcb0c){var _0x2dd615=_0x2871f1;_0x13f87d['show']({'controller':_0x2dd615('0xf6b'),'controllerAs':'vm','templateUrl':_0x42c3f9,'parent':angular[_0x2dd615('0x1aa8')](_0x1573e1[_0x2dd615('0x54c')]),'targetEvent':_0x5d2634,'clickOutsideToClose':!![],'resolve':{'contact':[_0x2dd615('0x1d16'),function _0x510c53(_0x1a0e0d){var _0x8b76df=_0x2dd615;return _0x1a0e0d[_0x8b76df('0x149f')]('cmContact@get',{'id':_0x5dcb0c['id']});}],'lists':[_0x2dd615('0x1d16'),function _0x1d512f(_0x50ec23){var _0x1c07c5=_0x2dd615;return _0x50ec23[_0x1c07c5('0x149f')]('user@getLists',{'id':_0x587265['currentUser']['id'],'fields':_0x1c07c5('0x17fe')});}]},'locals':{'contacts':_0x587265[_0x2dd615('0x1cfb')][_0x2dd615('0x580')]}});}function _0xb9ef4b(){var _0x285955=_0x2871f1;_0x587265[_0x285955('0x1d47')]=![];}function _0x495f2c(){var _0x1c317c=_0x2871f1;_0x587265[_0x1c317c('0x1d47')]=!![];}function _0x431ab7(){var _0x2e01a9=_0x2871f1;return _0x43eb81[_0x2e01a9('0xdbd')][_0x2e01a9('0x3e7')]({'id':_0x587265[_0x2e01a9('0x582')][_0x2e01a9('0xee0')]})[_0x2e01a9('0x1dc2')]['then'](function(_0x2e5d26){var _0x576238=_0x2e01a9;return _0x51538b()(_0x2e5d26[_0x576238('0x256a')]())['omit'](_0x576238('0x1037'))[_0x576238('0x3c5')]()['map'](function(_0x2f5a76){return _0x48cb42(_0x2f5a76);})[_0x576238('0x12f4')]();})['then'](function(_0x3fa50c){var _0x3f9ae9=_0x2e01a9;_0x587265['advancedSearch'][_0x3f9ae9('0x13a')]=_0x3fa50c;var _0x5bb9ba={'name':'Tags','column':'Tag','type':_0x3f9ae9('0x2468'),'options':{'route':{'model':_0x3f9ae9('0x38f'),'action':_0x3f9ae9('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x3f9ae9('0x930')]}},_0x4374e4=_0x51538b()[_0x3f9ae9('0xedc')](_0x3fa50c,function(_0x1d9873){var _0x5d2c3c=_0x3f9ae9;return _0x51538b()[_0x5d2c3c('0x6e8')](_0x1d9873[_0x5d2c3c('0x6c')],_0x5d2c3c('0x7a5'));})||_0x3fa50c[_0x3f9ae9('0x2587')]-0x1;if(_0x4374e4<0x0)_0x4374e4=_0x3fa50c['length'];_0x587265[_0x3f9ae9('0xd67')][_0x3f9ae9('0x13a')][_0x3f9ae9('0x1280')](_0x4374e4,0x0,_0x5bb9ba);})['catch'](function(_0xbc4d63){var _0x331cff=_0x2e01a9;_0x1822e0[_0x331cff('0x187f')]({'title':_0xbc4d63['status']?_0x331cff('0x16c2')+_0xbc4d63[_0x331cff('0x2fa')]+_0x331cff('0x169e')+_0xbc4d63['statusText']:'DESCRIBE_CM_CONTACTS','msg':_0xbc4d63[_0x331cff('0x10fd')]?JSON[_0x331cff('0xa48')](_0xbc4d63['data'][_0x331cff('0x1402')]):_0xbc4d63[_0x331cff('0x684')]()});});}function _0x48cb42(_0x1a2caf){var _0x407580=_0x2871f1,_0x382cf3={'name':_0x51538b()['startCase'](_0x1a2caf[_0x407580('0x1961')]),'column':_0x1a2caf[_0x407580('0x2547')],'options':{}};if(_0x1a2caf[_0x407580('0x113b')])switch(_0x1a2caf[_0x407580('0x113b')][_0x407580('0x6c8')]){case'text':_0x382cf3['type']=_0x407580('0xb37');break;case _0x407580('0xbff'):_0x382cf3[_0x407580('0x6c8')]=_0x407580('0x2468'),_0x382cf3[_0x407580('0x3c5')]=_0x51538b()[_0x407580('0x1246')](JSON[_0x407580('0x9b6')](_0x1a2caf[_0x407580('0x113b')]['values']),function(_0x3a14af,_0x41b0d2){var _0x24018f=_0x407580;return{'id':_0x41b0d2,'name':_0x3a14af[_0x24018f('0x12f4')],'value':_0x3a14af[_0x24018f('0x12f4')]};}),_0x382cf3[_0x407580('0x1b36')][_0x407580('0x5f2')]=_0x407580('0x25d6');break;case'switch':_0x382cf3[_0x407580('0x6c8')]=_0x407580('0xbff'),_0x382cf3[_0x407580('0x3c5')]=[{'id':0x1,'translate':_0x407580('0x5a7')},{'id':0x0,'translate':_0x407580('0x2363')}],_0x382cf3['options']['excludedOperators']=[_0x407580('0x13f7')];break;case _0x407580('0x219a'):_0x382cf3[_0x407580('0x6c8')]=_0x407580('0x219a');break;case'datetime':_0x382cf3['type']=_0x407580('0xb87');break;}else switch(_0x1a2caf[_0x407580('0x2547')]){case _0x407580('0xae0'):_0x382cf3[_0x407580('0x6c8')]=_0x407580('0xb87');break;case _0x407580('0x1dc7'):_0x382cf3['name']=_0x407580('0xf7a'),_0x382cf3[_0x407580('0x6c8')]=_0x407580('0x7e6'),_0x382cf3['options']['route']={'model':'cmCompany','action':_0x407580('0x2122'),'params':{'fields':'id,name','nolimit':!![]}},_0x382cf3['options'][_0x407580('0x47c')]=[_0x407580('0x25d6')],_0x382cf3[_0x407580('0x1b36')][_0x407580('0x2285')]=[_0x407580('0x13f7')];break;case _0x407580('0xee0'):_0x382cf3[_0x407580('0x25d6')]='List',_0x382cf3[_0x407580('0x6c8')]=_0x407580('0x7e6'),_0x382cf3[_0x407580('0x1b36')]['route']={'model':_0x407580('0x272b'),'action':'getLists','params':{'id':_0x587265[_0x407580('0x7fc')]['id'],'fields':_0x407580('0x17fe'),'nolimit':!![]}},_0x382cf3['options'][_0x407580('0x47c')]=[_0x407580('0x25d6')],_0x382cf3[_0x407580('0x1b36')][_0x407580('0x2285')]=['$ne'];break;default:if(_0x51538b()[_0x407580('0x13d6')](_0x1a2caf[_0x407580('0x6c8')][_0x407580('0xcf6')](),_0x407580('0xadc')))_0x382cf3[_0x407580('0x6c8')]=_0x407580('0x219a');else _0x51538b()[_0x407580('0x13d6')](_0x1a2caf[_0x407580('0x6c8')][_0x407580('0xcf6')](),_0x407580('0xb87'))?_0x382cf3[_0x407580('0x6c8')]=_0x407580('0xb87'):_0x382cf3[_0x407580('0x6c8')]=_0x407580('0xb37');break;}return _0x382cf3;}function _0x1370c3(){var _0x3600db=_0x2871f1;_0x587265[_0x3600db('0x1d47')]=![],_0x13f87d[_0x3600db('0x1e6d')]({'controller':_0x3600db('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0x3600db('0x1aa8')](_0x1573e1[_0x3600db('0x54c')]),'clickOutsideToClose':![],'locals':{'color':_0x587265['sectionColor'],'fields':_0x587265[_0x3600db('0xd67')][_0x3600db('0x13a')],'storagePath':_0x3600db('0x1a24')},'fullscreen':!![]})['then'](function(_0x114325){var _0x49f96f=_0x3600db;_0x587265['query'][_0x49f96f('0x1785')]=_0x114325===![]?undefined:_0x114325;if(_0x587265['query'][_0x49f96f('0x1785')]||_0x114325===![])_0x2bc3fa();})[_0x3600db('0x253d')](function(_0x695ce4){var _0x5bae0c=_0x3600db;_0x1822e0['error']({'title':_0x5bae0c('0x208b'),'msg':_0x695ce4['data']?JSON[_0x5bae0c('0xa48')](_0x695ce4[_0x5bae0c('0x10fd')][_0x5bae0c('0x1402')]):_0x695ce4['toString']()});});}var _0x18e774=!![],_0x46efe1=0x1;_0x3e582d['$watch'](_0x2871f1('0x1788'),function(_0xb60975,_0xe0a44a){var _0x1bac8c=_0x2871f1;_0x18e774?_0x2327e4(function(){_0x18e774=![];}):(!_0xe0a44a&&(_0x46efe1=_0x587265['query'][_0x1bac8c('0x41')]),_0xb60975!==_0xe0a44a&&(_0x587265[_0x1bac8c('0x582')][_0x1bac8c('0x41')]=0x1),!_0xb60975&&(_0x587265[_0x1bac8c('0x582')][_0x1bac8c('0x41')]=_0x46efe1),_0x2bc3fa());});}const _0x72898d=_0x150ff8;_0x57a0ff[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$interval'];function _0x57a0ff(_0xeb5ac1,_0xb3a785){var _0x2e4600=_0x1a8446,_0xcbb330=_0xb3a785(function(){},0x3e7);_0xeb5ac1[_0x2e4600('0xc75')](_0x2e4600('0x12d0'),function(){var _0x12cfcd=_0x2e4600;_0xcbb330&&(_0xb3a785[_0x12cfcd('0x2030')](_0xcbb330),_0xcbb330=null);});}const _0x116462=_0x57a0ff;_0x769f0f['$inject']=[_0x1a8446('0x51'),'$timeout',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74')];function _0x769f0f(_0x55029a,_0x30db82,_0x11aec4,_0x48462f,_0x5bb9f5,_0xe53bd0,_0x199c20,_0x2412a3,_0x2712d3){var _0x303870=_0x1a8446,_0x2646d4=this,_0x4a98fd=['type',_0x303870('0xd3d'),_0x303870('0x1ba1'),_0x303870('0x1b71')];_0x2646d4[_0x303870('0xac0')]={},_0x2646d4[_0x303870('0x20fe')]=0x0,_0x2646d4[_0x303870('0x9b4')]={},_0x2646d4[_0x303870('0x1c5f')]={},_0x2646d4['rpcVoiceQueuesChannels']={},_0x2646d4['addVoiceQueuesChannels']={},_0x2646d4[_0x303870('0x2623')]=[],_0x2646d4['load']=!![],_0x2646d4[_0x303870('0x582')]={'id':_0x2412a3['getCurrentUser']()['id'],'fields':_0x303870('0x1fd1'),'channel':_0x303870('0x1b9'),'type':'outbound','limit':0xa,'page':0x1},_0x2646d4[_0x303870('0x1b74')]={'limit':0xa,'page':0x1},_0x2646d4[_0x303870('0xe10')]=_0x3a0cbf,_0x2646d4['getVoiceQueues']=_0x24d9f8,_0x2646d4[_0x303870('0xa36')]=_0x105d95,_0x2646d4[_0x303870('0xd16')]=_0x2f98a7,_0x2646d4['onSaveChannel']=_0x4fe53d,_0x2646d4['onUserVoiceQueue']=_0x17265f,_0x2646d4[_0x303870('0x2184')]=_0x7aecde,_0x2646d4[_0x303870('0xca5')]=_0x5cdb76,_0x2646d4['onRemoveVoiceQueue']=_0x28ef5f,_0x2712d3[_0x303870('0xa84')]('voice_queue:save',_0x2646d4[_0x303870('0xd16')]),_0x2712d3[_0x303870('0xa84')](_0x303870('0xbf1'),_0x2646d4[_0x303870('0x22da')]),_0x2712d3[_0x303870('0xa84')]('userVoiceQueue:save',_0x2646d4['onUserVoiceQueue']),_0x2712d3[_0x303870('0xa84')](_0x303870('0x10ac'),_0x2646d4['onUserVoiceQueue']),_0x2712d3['onWithoutApply'](_0x303870('0x215f'),_0x2646d4[_0x303870('0x2184')]),_0x2712d3[_0x303870('0xa84')](_0x303870('0x125e'),_0x2646d4[_0x303870('0x1b17')]),_0x2712d3[_0x303870('0xa84')](_0x303870('0x21e4'),_0x2646d4[_0x303870('0xca5')]),_0x199c20[_0x303870('0xb5d')][_0x303870('0x1c5f')]()['$promise']['then'](function(_0x1e36be){var _0x996ed5=_0x303870;return _0x2646d4['rpcVoiceQueues']=_0x1e36be?_0x51538b()[_0x996ed5('0x184a')](_0x1e36be['rows']?_0x1e36be[_0x996ed5('0x580')]:[],'id'):{},_0x199c20[_0x996ed5('0xb5d')]['getVoiceQueuesChannels']()['$promise'];})[_0x303870('0xaa5')](function(_0x413c46){var _0xd148f8=_0x303870;_0x2646d4['rpcVoiceQueuesChannels']=_0x413c46?_0x51538b()['keyBy'](_0x413c46[_0xd148f8('0x580')]?_0x51538b()['filter'](_0x413c46[_0xd148f8('0x580')],{'type':_0xd148f8('0x19d1'),'queuecallerleaveAt':null}):[],_0xd148f8('0x1a6')):{};})[_0x303870('0x253d')](function(_0x3c58c6){console['error'](_0x3c58c6);})[_0x303870('0x1889')](function(){var _0x4a14b3=_0x303870;_0x51538b()[_0x4a14b3('0x283c')](_0x2646d4[_0x4a14b3('0x2705')],_0x2646d4[_0x4a14b3('0x5a3')]);for(var _0x104920=0x0;_0x104920<_0x2646d4[_0x4a14b3('0x2623')][_0x4a14b3('0x2587')];_0x104920+=0x1){delete _0x2646d4[_0x4a14b3('0x2705')][_0x2646d4['deleteVoiceQueuesChannels'][_0x104920]];}_0x2646d4[_0x4a14b3('0x259c')]=![],_0x2646d4[_0x4a14b3('0x5a3')]={},_0x2646d4[_0x4a14b3('0x2623')]=[],_0x2646d4[_0x4a14b3('0x1c5f')]();});function _0x3a0cbf(_0x6d8d2){var _0x11ea2b=_0x303870;_0x2646d4[_0x11ea2b('0x20fe')]=_0x6d8d2[_0x11ea2b('0xd15')]?_0x6d8d2[_0x11ea2b('0xd15')]:0x0,_0x2646d4[_0x11ea2b('0xac0')]=_0x6d8d2?_0x51538b()[_0x11ea2b('0x184a')](_0x6d8d2[_0x11ea2b('0x580')]?_0x6d8d2[_0x11ea2b('0x580')]:[],'id'):{},_0x179a72();}function _0x24d9f8(){var _0x22dad5=_0x303870;_0x2646d4['query'][_0x22dad5('0x8b1')]=(_0x2646d4[_0x22dad5('0x582')][_0x22dad5('0x41')]-0x1)*_0x2646d4[_0x22dad5('0x582')]['limit'],_0x2646d4['promise']=_0x199c20['user'][_0x22dad5('0x1e87')](_0x2646d4[_0x22dad5('0x582')],_0x3a0cbf)[_0x22dad5('0x1dc2')];}var _0x28cc66=!![],_0x256d86=0x1;_0x55029a[_0x303870('0x1ccf')](_0x303870('0x74c'),function(_0x3a923f,_0xa2a4af){var _0x24421c=_0x303870;_0x28cc66?_0x30db82(function(){_0x28cc66=![];}):(!_0xa2a4af&&(_0x256d86=_0x2646d4[_0x24421c('0x582')][_0x24421c('0x41')]),_0x3a923f!==_0xa2a4af&&(_0x2646d4[_0x24421c('0x582')]['page']=0x1),!_0x3a923f&&(_0x2646d4[_0x24421c('0x582')][_0x24421c('0x41')]=_0x256d86),_0x2646d4[_0x24421c('0x1c5f')]());});function _0x105d95(_0x3965ed){var _0x3181a2=_0x303870;return _0x51538b()[_0x3181a2('0x9f9')](_0x3965ed);}function _0x179a72(){var _0x5795e2=_0x303870;_0x51538b()[_0x5795e2('0x143e')](_0x2646d4[_0x5795e2('0xac0')],function(_0x557e81,_0x73fb0f){var _0x1f8a0a=_0x5795e2;_0x2646d4[_0x1f8a0a('0x9b4')][_0x73fb0f]&&(_0x2646d4[_0x1f8a0a('0xac0')][_0x73fb0f]['waiting']=_0x2646d4['rpcVoiceQueues'][_0x73fb0f]['waiting']||0x0);});}function _0x2f98a7(_0x19b42f){var _0x365b9f=_0x303870;_0x2646d4['voiceQueues'][_0x19b42f['id']]&&(_0x2646d4[_0x365b9f('0x9b4')][_0x19b42f['id']]&&(_0x2646d4[_0x365b9f('0x9b4')][_0x19b42f['id']]=_0x19b42f,_0x51538b()[_0x365b9f('0x283c')](_0x2646d4[_0x365b9f('0xac0')][_0x19b42f['id']],_0x51538b()[_0x365b9f('0x104e')](_0x19b42f,_0x4a98fd))));}function _0x4fe53d(_0x382728){var _0x21f907=_0x303870;_0x382728[_0x21f907('0x6c8')]===_0x21f907('0x19d1')&&(_0x382728[_0x21f907('0xf5b')]?(delete _0x2646d4['rpcVoiceQueuesChannels'][_0x382728[_0x21f907('0x1a6')]],_0x2646d4['load']&&_0x2646d4[_0x21f907('0x2623')][_0x21f907('0x1599')](_0x382728['uniqueid'])):(_0x2646d4[_0x21f907('0x2705')][_0x382728[_0x21f907('0x1a6')]]=_0x382728,_0x2646d4[_0x21f907('0x259c')]&&(_0x2646d4['addVoiceQueuesChannels'][_0x382728['uniqueid']]=_0x382728)));}function _0x7aecde(_0x58ffd1){var _0x585129=_0x303870;!_0x51538b()[_0x585129('0x89a')](_0x58ffd1)&&(_0x2646d4[_0x585129('0x9b4')][_0x58ffd1['id']]=_0x51538b()['pick'](_0x58ffd1,_0x4a98fd));}function _0x5cdb76(_0x46e774){var _0x57c3ba=_0x303870;!_0x51538b()[_0x57c3ba('0x89a')](_0x46e774)&&(_0x2646d4[_0x57c3ba('0x9b4')][_0x46e774['id']]&&_0x51538b()[_0x57c3ba('0x283c')](_0x2646d4[_0x57c3ba('0x9b4')][_0x46e774['id']],_0x51538b()[_0x57c3ba('0x104e')](_0x46e774,_0x4a98fd)),_0x2646d4[_0x57c3ba('0xac0')][_0x46e774['id']]&&_0x51538b()[_0x57c3ba('0x283c')](_0x2646d4[_0x57c3ba('0xac0')][_0x46e774['id']],_0x51538b()['pick'](_0x46e774,_0x4a98fd)));}function _0x28ef5f(_0x5caeb6){var _0x5feeb=_0x303870;!_0x51538b()[_0x5feeb('0x89a')](_0x5caeb6)&&(delete _0x2646d4[_0x5feeb('0x9b4')][_0x5caeb6['id']],delete _0x2646d4[_0x5feeb('0xac0')][_0x5caeb6['id']]);}function _0x17265f(_0x5b5dfa){var _0x181824=_0x303870;_0x51538b()[_0x181824('0x23fe')](_0x5b5dfa[_0x181824('0x1037')])===_0x2412a3['getCurrentUser']()['id']&&_0x2646d4[_0x181824('0x1c5f')]();}_0x55029a[_0x303870('0xc75')]('$destroy',function(){var _0x2baa74=_0x303870;_0x2712d3[_0x2baa74('0x2629')](_0x2baa74('0x46')),_0x2712d3[_0x2baa74('0x2629')](_0x2baa74('0xbf1')),_0x2712d3['removeAllListeners'](_0x2baa74('0x77e')),_0x2712d3['removeAllListeners']('userVoiceQueue:remove'),_0x2712d3[_0x2baa74('0x2629')](_0x2baa74('0x215f')),_0x2712d3['removeAllListeners'](_0x2baa74('0x21e4')),_0x2712d3[_0x2baa74('0x2629')](_0x2baa74('0x125e'));});}const _0x524ae3=_0x769f0f;_0x2d6050[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74')];function _0x2d6050(_0xcb8437,_0x1642f6,_0x2436b0,_0x3d4fd6,_0x23bf34,_0x22ee64,_0x37ad8f,_0x55556f,_0x3b9fdb){var _0x4a53a7=_0x1a8446,_0x49e79a=this,_0x25d63c=['id',_0x4a53a7('0x25d6'),'mapAgentsId','waiting'],_0x28e1e6=!![];_0x49e79a['chatQueues']={},_0x49e79a['chatQueuesTotal']=0x0,_0x49e79a[_0x4a53a7('0xf02')]={},_0x49e79a[_0x4a53a7('0x12fb')]=[],_0x49e79a[_0x4a53a7('0xca2')]=[],_0x49e79a['rpcChatQueuesWaitingInteractions']={},_0x49e79a[_0x4a53a7('0x582')]={'id':_0x55556f['getCurrentUser']()['id'],'channel':'chat','fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x49e79a[_0x4a53a7('0x1b74')]={'limit':0xa,'page':0x1},_0x49e79a[_0x4a53a7('0xe10')]=_0xb302a9,_0x49e79a[_0x4a53a7('0x152f')]=_0x1578ab,_0x49e79a['getSize']=_0x2161d7,_0x49e79a[_0x4a53a7('0x1db2')]=_0x103fe4,_0x49e79a[_0x4a53a7('0x1c60')]=_0x209d39,_0x49e79a[_0x4a53a7('0xd16')]=_0x527f6d,_0x49e79a['onSaveChatQueue']=_0x5e58bc,_0x49e79a['onUpdateChatQueue']=_0xfb6a75,_0x49e79a['onRemoveChatQueue']=_0x1a158e,_0x49e79a[_0x4a53a7('0x534')]=_0x8945af,_0x49e79a['onRemoveUserChatQueue']=_0x22afd6,_0x49e79a['onSaveChatQueueChannel']=_0x473d28,_0x49e79a['onRemoveChatQueueChannel']=_0x8039ea,_0x3b9fdb[_0x4a53a7('0xa84')]('chat_queue:save',_0x49e79a['onSaveQueue']),_0x3b9fdb['onWithoutApply'](_0x4a53a7('0x165d'),_0x49e79a['onSaveChatQueue']),_0x3b9fdb[_0x4a53a7('0xa84')]('chatQueue:update',_0x49e79a[_0x4a53a7('0x13c8')]),_0x3b9fdb[_0x4a53a7('0xa84')](_0x4a53a7('0x1e85'),_0x49e79a[_0x4a53a7('0x13fe')]),_0x3b9fdb['onWithoutApply']('userChatQueue:save',_0x49e79a[_0x4a53a7('0x534')]),_0x3b9fdb['onWithoutApply'](_0x4a53a7('0x8b'),_0x49e79a[_0x4a53a7('0x80f')]),_0x3b9fdb[_0x4a53a7('0xa84')](_0x4a53a7('0x1996'),_0x49e79a[_0x4a53a7('0x7ad')]),_0x3b9fdb['onWithoutApply'](_0x4a53a7('0xc73'),_0x49e79a[_0x4a53a7('0xede')]),_0x37ad8f[_0x4a53a7('0xb5d')][_0x4a53a7('0x152f')]()[_0x4a53a7('0x1dc2')][_0x4a53a7('0xaa5')](function(_0xf625d7){var _0x32053b=_0x4a53a7;_0x49e79a[_0x32053b('0xf02')]=_0xf625d7?_0x51538b()[_0x32053b('0x184a')](_0xf625d7[_0x32053b('0x580')]?_0xf625d7[_0x32053b('0x580')]:[],'id'):{};})[_0x4a53a7('0xaa5')](function(){var _0x3ae4a9=_0x4a53a7;return _0x37ad8f['user'][_0x3ae4a9('0x1e87')]({'id':_0x55556f[_0x3ae4a9('0xacc')]()['id'],'channel':_0x3ae4a9('0x20f9')})[_0x3ae4a9('0x1dc2')];})[_0x4a53a7('0xaa5')](function(_0x50513a){var _0x4d12cc=_0x4a53a7;return _0x49e79a[_0x4d12cc('0x1d2e')]=_0x50513a['rows'],_0x37ad8f[_0x4d12cc('0xb5d')]['getChatQueuesWaitingInteractions']()['$promise'];})[_0x4a53a7('0xaa5')](function(_0x1e11b4){var _0x2a4898=_0x4a53a7,_0x5a5584=_0x51538b()[_0x2a4898('0xdb7')](_0x1e11b4[_0x2a4898('0x580')],function(_0x12a297){var _0x331c7c=_0x2a4898;return _0x51538b()[_0x331c7c('0x13d6')](_0x49e79a[_0x331c7c('0x1d2e')],{'id':_0x12a297[_0x331c7c('0x2697')]});});_0x1e11b4[_0x2a4898('0x580')]=_0x5a5584,_0x1e11b4[_0x2a4898('0xd15')]=_0x5a5584[_0x2a4898('0x2587')],_0x51538b()['merge'](_0x49e79a[_0x2a4898('0xb23')],_0x1e11b4?_0x51538b()[_0x2a4898('0x184a')](_0x1e11b4[_0x2a4898('0x580')]?_0x1e11b4[_0x2a4898('0x580')]:[],'id'):{});})['catch'](function(_0x30b962){console['error'](_0x30b962);})[_0x4a53a7('0x1889')](function(){var _0x425f32=_0x4a53a7;for(var _0x453a21=0x0;_0x453a21<_0x49e79a[_0x425f32('0xca2')][_0x425f32('0x2587')];_0x453a21+=0x1){delete _0x49e79a['rpcChatQueuesWaitingInteractions'][_0x49e79a[_0x425f32('0xca2')][_0x453a21]];}_0x28e1e6=![],_0x49e79a[_0x425f32('0xca2')]=[],_0x1578ab(),_0x209d39();});function _0x209d39(){var _0x129d26=_0x4a53a7,_0x1b67b8=(_0x49e79a[_0x129d26('0x1b74')]['page']-0x1)*_0x49e79a[_0x129d26('0x1b74')][_0x129d26('0xf4d')];_0x49e79a[_0x129d26('0x12fb')]=_0x51538b()[_0x129d26('0x271d')](_0x49e79a[_0x129d26('0xb23')],[_0x129d26('0x57a')],[_0x129d26('0x71c')]),_0x49e79a[_0x129d26('0x1abf')]=_0x51538b()[_0x129d26('0x485')](_0x49e79a[_0x129d26('0x12fb')],_0x1b67b8)[_0x129d26('0x19aa')](0x0,_0x49e79a[_0x129d26('0x1b74')]['limit']);}function _0xb302a9(_0x4f4b8d){var _0x27dac0=_0x4a53a7;_0x49e79a[_0x27dac0('0x18ce')]=_0x4f4b8d['count']?_0x4f4b8d[_0x27dac0('0xd15')]:0x0,_0x49e79a['chatQueues']=_0x4f4b8d?_0x51538b()['keyBy'](_0x4f4b8d[_0x27dac0('0x580')]?_0x4f4b8d[_0x27dac0('0x580')]:[],'id'):{},_0x5db937();}function _0x1578ab(){var _0x6e6967=_0x4a53a7;_0x49e79a[_0x6e6967('0x582')][_0x6e6967('0x8b1')]=(_0x49e79a[_0x6e6967('0x582')][_0x6e6967('0x41')]-0x1)*_0x49e79a['query'][_0x6e6967('0xf4d')],_0x49e79a[_0x6e6967('0x159a')]=_0x37ad8f['user'][_0x6e6967('0x1e87')](_0x49e79a[_0x6e6967('0x582')],_0xb302a9)['$promise'];}var _0xf34247=!![],_0x30924c=0x1;_0xcb8437[_0x4a53a7('0x1ccf')](_0x4a53a7('0x74c'),function(_0x153b98,_0x164d8a){var _0x157b3c=_0x4a53a7;_0xf34247?_0x1642f6(function(){_0xf34247=![];}):(!_0x164d8a&&(_0x30924c=_0x49e79a[_0x157b3c('0x582')][_0x157b3c('0x41')]),_0x153b98!==_0x164d8a&&(_0x49e79a[_0x157b3c('0x582')][_0x157b3c('0x41')]=0x1),!_0x153b98&&(_0x49e79a[_0x157b3c('0x582')][_0x157b3c('0x41')]=_0x30924c),_0x49e79a[_0x157b3c('0x152f')]());});function _0x2161d7(_0x15c7bc){var _0x585afa=_0x4a53a7;return _0x51538b()[_0x585afa('0x9f9')](_0x15c7bc);}function _0x5db937(){var _0x33aab2=_0x4a53a7;_0x51538b()[_0x33aab2('0x143e')](_0x49e79a[_0x33aab2('0xc6f')],function(_0x405dc9,_0x4cb3e4){var _0x4a0f7f=_0x33aab2;_0x49e79a[_0x4a0f7f('0xf02')][_0x4cb3e4]&&(_0x49e79a[_0x4a0f7f('0xc6f')][_0x4cb3e4][_0x4a0f7f('0xd3d')]=_0x49e79a[_0x4a0f7f('0xf02')][_0x4cb3e4][_0x4a0f7f('0xd3d')]||0x0);});}function _0x527f6d(_0x4a4eb7){var _0x4cb66a=_0x4a53a7;_0x49e79a[_0x4cb66a('0xc6f')][_0x4a4eb7['id']]&&(_0x49e79a[_0x4cb66a('0xf02')][_0x4a4eb7['id']]&&(_0x51538b()[_0x4cb66a('0x283c')](_0x49e79a[_0x4cb66a('0xf02')][_0x4a4eb7['id']],_0x51538b()[_0x4cb66a('0x104e')](_0x4a4eb7,_0x25d63c)),_0x51538b()[_0x4cb66a('0x283c')](_0x49e79a['chatQueues'][_0x4a4eb7['id']],_0x51538b()[_0x4cb66a('0x104e')](_0x4a4eb7,_0x25d63c))));}function _0x5e58bc(_0x5e5031){var _0x2158e=_0x4a53a7;!_0x51538b()[_0x2158e('0x89a')](_0x5e5031)&&(_0x49e79a[_0x2158e('0xf02')][_0x5e5031['id']]=_0x51538b()[_0x2158e('0x104e')](_0x5e5031,_0x25d63c));}function _0xfb6a75(_0x142dea){var _0x4e9f79=_0x4a53a7;!_0x51538b()[_0x4e9f79('0x89a')](_0x142dea)&&(_0x49e79a[_0x4e9f79('0xf02')][_0x142dea['id']]&&_0x51538b()[_0x4e9f79('0x283c')](_0x49e79a['rpcChatQueues'][_0x142dea['id']],_0x51538b()['pick'](_0x142dea,_0x25d63c)),_0x49e79a[_0x4e9f79('0xc6f')][_0x142dea['id']]&&_0x51538b()['merge'](_0x49e79a['chatQueues'][_0x142dea['id']],_0x51538b()[_0x4e9f79('0x104e')](_0x142dea,_0x25d63c)));}function _0x1a158e(_0x4004c8){var _0x5a5216=_0x4a53a7;!_0x51538b()[_0x5a5216('0x89a')](_0x4004c8)&&(delete _0x49e79a[_0x5a5216('0xf02')][_0x4004c8['id']],delete _0x49e79a[_0x5a5216('0xc6f')][_0x4004c8['id']]);}function _0x8945af(_0x32250b){var _0x5b976e=_0x4a53a7;_0x51538b()[_0x5b976e('0x23fe')](_0x32250b[_0x5b976e('0x1037')])===_0x55556f['getCurrentUser']()['id']&&_0x49e79a['getChatQueues']();}function _0x22afd6(_0x395b82){var _0x29fb5d=_0x4a53a7;_0x51538b()[_0x29fb5d('0x23fe')](_0x395b82[_0x29fb5d('0x1037')])===_0x55556f[_0x29fb5d('0xacc')]()['id']&&_0x49e79a[_0x29fb5d('0x152f')]();}function _0x473d28(_0x4e754c){var _0x3fe2df=_0x4a53a7;_0x49e79a['chatQueues'][_0x4e754c[_0x3fe2df('0x2697')]]&&(_0x49e79a['rpcChatQueuesWaitingInteractions'][_0x4e754c['id']]=_0x4e754c,_0x209d39());}function _0x8039ea(_0x50118b){var _0x5290ba=_0x4a53a7;delete _0x49e79a[_0x5290ba('0xb23')][_0x50118b['id']],_0x28e1e6&&_0x49e79a['deleteChatQueuesWaitingInteractions'][_0x5290ba('0x1599')](_0x50118b['id']),_0x209d39();}function _0x103fe4(_0x569a28){var _0x8487b5=_0x4a53a7;switch(_0x569a28){case _0x8487b5('0x20f9'):return _0x8487b5('0x1003');case _0x8487b5('0x14c5'):return _0x8487b5('0xd9b');case _0x8487b5('0x18da'):return'orange-bg';case _0x8487b5('0x220d'):return'lime-A700-bg';case _0x8487b5('0x170'):return _0x8487b5('0x24d5');case _0x8487b5('0x16c4'):return _0x8487b5('0x529');default:return _0x8487b5('0x1f61');}}_0xcb8437[_0x4a53a7('0xc75')]('$destroy',function(){var _0x172e9c=_0x4a53a7;_0x3b9fdb[_0x172e9c('0x2629')](_0x172e9c('0xbde')),_0x3b9fdb[_0x172e9c('0x2629')]('chatQueue:save'),_0x3b9fdb[_0x172e9c('0x2629')](_0x172e9c('0x1ce5')),_0x3b9fdb[_0x172e9c('0x2629')]('chatQueue:remove'),_0x3b9fdb['removeAllListeners'](_0x172e9c('0x8de')),_0x3b9fdb[_0x172e9c('0x2629')](_0x172e9c('0x8b')),_0x3b9fdb[_0x172e9c('0x2629')](_0x172e9c('0x1996')),_0x3b9fdb[_0x172e9c('0x2629')]('chat_queue_waiting_interaction:remove');});}const _0xf33d90=_0x2d6050;_0x429ccc[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'socket'];function _0x429ccc(_0x2908fc,_0x331a92,_0x269251,_0x19e99a,_0xc7c7d,_0x326b08,_0x3822a1,_0x416035,_0x13cf53){var _0x30dad8=_0x1a8446,_0x25ef6e=this,_0x5e4191=['id',_0x30dad8('0x25d6'),_0x30dad8('0xc28'),_0x30dad8('0xd3d')],_0x3d221e=!![];_0x25ef6e['faxQueues']={},_0x25ef6e[_0x30dad8('0x19dc')]=0x0,_0x25ef6e[_0x30dad8('0x1e48')]={},_0x25ef6e[_0x30dad8('0x12fb')]=[],_0x25ef6e[_0x30dad8('0x2257')]=[],_0x25ef6e['rpcFaxQueuesWaitingInteractions']={},_0x25ef6e['query']={'id':_0x416035[_0x30dad8('0xacc')]()['id'],'channel':_0x30dad8('0x16c4'),'fields':_0x30dad8('0x235a'),'limit':0xa,'page':0x1},_0x25ef6e[_0x30dad8('0x1b74')]={'limit':0xa,'page':0x1},_0x25ef6e[_0x30dad8('0xe10')]=_0x1f0a37,_0x25ef6e[_0x30dad8('0x1a35')]=_0x1113ac,_0x25ef6e[_0x30dad8('0xa36')]=_0x42ecbd,_0x25ef6e[_0x30dad8('0x1db2')]=_0x207ee6,_0x25ef6e[_0x30dad8('0x1c60')]=_0x3f03a0,_0x25ef6e[_0x30dad8('0xd16')]=_0x302b3b,_0x25ef6e[_0x30dad8('0xf23')]=_0x1daf53,_0x25ef6e[_0x30dad8('0xed0')]=_0x6bf8fd,_0x25ef6e['onRemoveFaxQueue']=_0x5c4ba9,_0x25ef6e['onSaveUserFaxQueue']=_0x2478e7,_0x25ef6e[_0x30dad8('0xf37')]=_0x1beb39,_0x25ef6e['onSaveFaxQueueChannel']=_0x23ddca,_0x25ef6e[_0x30dad8('0x6a9')]=_0x2c0dd0,_0x13cf53[_0x30dad8('0xa84')](_0x30dad8('0x1e03'),_0x25ef6e[_0x30dad8('0xd16')]),_0x13cf53[_0x30dad8('0xa84')](_0x30dad8('0x1b29'),_0x25ef6e[_0x30dad8('0xf23')]),_0x13cf53['onWithoutApply'](_0x30dad8('0x388'),_0x25ef6e[_0x30dad8('0xed0')]),_0x13cf53[_0x30dad8('0xa84')]('faxQueue:remove',_0x25ef6e['onRemoveFaxQueue']),_0x13cf53[_0x30dad8('0xa84')](_0x30dad8('0x699'),_0x25ef6e[_0x30dad8('0x230f')]),_0x13cf53[_0x30dad8('0xa84')](_0x30dad8('0x1e19'),_0x25ef6e[_0x30dad8('0xf37')]),_0x13cf53[_0x30dad8('0xa84')](_0x30dad8('0x22b8'),_0x25ef6e[_0x30dad8('0x1c05')]),_0x13cf53[_0x30dad8('0xa84')](_0x30dad8('0x192c'),_0x25ef6e['onRemoveFaxQueueChannel']),_0x3822a1['rpc']['getFaxQueues']()[_0x30dad8('0x1dc2')][_0x30dad8('0xaa5')](function(_0x25f21e){var _0x18829b=_0x30dad8;_0x25ef6e['rpcFaxQueues']=_0x25f21e?_0x51538b()[_0x18829b('0x184a')](_0x25f21e[_0x18829b('0x580')]?_0x25f21e[_0x18829b('0x580')]:[],'id'):{};})['then'](function(){var _0x54681f=_0x30dad8;return _0x3822a1[_0x54681f('0x272b')][_0x54681f('0x1e87')]({'id':_0x416035['getCurrentUser']()['id'],'channel':_0x54681f('0x16c4')})[_0x54681f('0x1dc2')];})[_0x30dad8('0xaa5')](function(_0x1f452d){var _0x5d718c=_0x30dad8;return _0x25ef6e[_0x5d718c('0x1d2e')]=_0x1f452d[_0x5d718c('0x580')],_0x3822a1['rpc'][_0x5d718c('0x22bc')]()[_0x5d718c('0x1dc2')];})[_0x30dad8('0xaa5')](function(_0x137507){var _0x271b20=_0x30dad8,_0x537b3a=_0x51538b()[_0x271b20('0xdb7')](_0x137507[_0x271b20('0x580')],function(_0x3824cc){var _0x5e9820=_0x271b20;return _0x51538b()[_0x5e9820('0x13d6')](_0x25ef6e['myQueues'],{'id':_0x3824cc[_0x5e9820('0x2697')]});});_0x137507[_0x271b20('0x580')]=_0x537b3a,_0x137507[_0x271b20('0xd15')]=_0x537b3a[_0x271b20('0x2587')],_0x51538b()[_0x271b20('0x283c')](_0x25ef6e[_0x271b20('0x1cca')],_0x137507?_0x51538b()['keyBy'](_0x137507['rows']?_0x137507[_0x271b20('0x580')]:[],'id'):{});})[_0x30dad8('0x253d')](function(_0x534498){console['error'](_0x534498);})['finally'](function(){var _0x54944c=_0x30dad8;for(var _0xc847e2=0x0;_0xc847e2<_0x25ef6e[_0x54944c('0x2257')][_0x54944c('0x2587')];_0xc847e2+=0x1){delete _0x25ef6e[_0x54944c('0x1cca')][_0x25ef6e['deleteFaxQueuesWaitingInteractions'][_0xc847e2]];}_0x3d221e=![],_0x25ef6e[_0x54944c('0x2257')]=[],_0x1113ac(),_0x3f03a0();});function _0x3f03a0(){var _0x297b3b=_0x30dad8,_0x4f493e=(_0x25ef6e[_0x297b3b('0x1b74')][_0x297b3b('0x41')]-0x1)*_0x25ef6e['queryChannels']['limit'];_0x25ef6e['paginatedInteractions']=_0x51538b()[_0x297b3b('0x271d')](_0x25ef6e['rpcFaxQueuesWaitingInteractions'],[_0x297b3b('0x57a')],[_0x297b3b('0x71c')]),_0x25ef6e[_0x297b3b('0x1abf')]=_0x51538b()['drop'](_0x25ef6e[_0x297b3b('0x12fb')],_0x4f493e)[_0x297b3b('0x19aa')](0x0,_0x25ef6e[_0x297b3b('0x1b74')][_0x297b3b('0xf4d')]);}function _0x1f0a37(_0x28353a){var _0x5756a7=_0x30dad8;_0x25ef6e['faxQueuesTotal']=_0x28353a['count']?_0x28353a[_0x5756a7('0xd15')]:0x0,_0x25ef6e[_0x5756a7('0xc6')]=_0x28353a?_0x51538b()[_0x5756a7('0x184a')](_0x28353a[_0x5756a7('0x580')]?_0x28353a[_0x5756a7('0x580')]:[],'id'):{},_0xc664a1();}function _0x1113ac(){var _0x445343=_0x30dad8;_0x25ef6e[_0x445343('0x582')][_0x445343('0x8b1')]=(_0x25ef6e[_0x445343('0x582')][_0x445343('0x41')]-0x1)*_0x25ef6e[_0x445343('0x582')][_0x445343('0xf4d')],_0x25ef6e[_0x445343('0x159a')]=_0x3822a1[_0x445343('0x272b')][_0x445343('0x1e87')](_0x25ef6e[_0x445343('0x582')],_0x1f0a37)[_0x445343('0x1dc2')];}var _0x536e22=!![],_0x2457d0=0x1;_0x2908fc[_0x30dad8('0x1ccf')]('vm_dc.query.filter',function(_0x10d73b,_0xa4c546){var _0x47240e=_0x30dad8;_0x536e22?_0x331a92(function(){_0x536e22=![];}):(!_0xa4c546&&(_0x2457d0=_0x25ef6e['query']['page']),_0x10d73b!==_0xa4c546&&(_0x25ef6e[_0x47240e('0x582')][_0x47240e('0x41')]=0x1),!_0x10d73b&&(_0x25ef6e['query']['page']=_0x2457d0),_0x25ef6e[_0x47240e('0x1a35')]());});function _0x42ecbd(_0x3d38bd){return _0x51538b()['size'](_0x3d38bd);}function _0xc664a1(){var _0x2fa8a1=_0x30dad8;_0x51538b()[_0x2fa8a1('0x143e')](_0x25ef6e[_0x2fa8a1('0xc6')],function(_0x4df762,_0x8687ba){var _0x3cffbd=_0x2fa8a1;_0x25ef6e['rpcFaxQueues'][_0x8687ba]&&(_0x25ef6e[_0x3cffbd('0xc6')][_0x8687ba][_0x3cffbd('0xd3d')]=_0x25ef6e['rpcFaxQueues'][_0x8687ba][_0x3cffbd('0xd3d')]||0x0);});}function _0x302b3b(_0x46ea58){var _0x26ccc7=_0x30dad8;_0x25ef6e[_0x26ccc7('0xc6')][_0x46ea58['id']]&&(_0x25ef6e[_0x26ccc7('0x1e48')][_0x46ea58['id']]&&(_0x51538b()[_0x26ccc7('0x283c')](_0x25ef6e[_0x26ccc7('0x1e48')][_0x46ea58['id']],_0x51538b()['pick'](_0x46ea58,_0x5e4191)),_0x51538b()['merge'](_0x25ef6e[_0x26ccc7('0xc6')][_0x46ea58['id']],_0x51538b()[_0x26ccc7('0x104e')](_0x46ea58,_0x5e4191))));}function _0x1daf53(_0x55c29c){var _0x4d5928=_0x30dad8;!_0x51538b()[_0x4d5928('0x89a')](_0x55c29c)&&(_0x25ef6e[_0x4d5928('0x1e48')][_0x55c29c['id']]=_0x51538b()[_0x4d5928('0x104e')](_0x55c29c,_0x5e4191));}function _0x6bf8fd(_0x22a0c2){var _0x2e44d1=_0x30dad8;!_0x51538b()[_0x2e44d1('0x89a')](_0x22a0c2)&&(_0x25ef6e[_0x2e44d1('0x1e48')][_0x22a0c2['id']]&&_0x51538b()['merge'](_0x25ef6e[_0x2e44d1('0x1e48')][_0x22a0c2['id']],_0x51538b()[_0x2e44d1('0x104e')](_0x22a0c2,_0x5e4191)),_0x25ef6e['faxQueues'][_0x22a0c2['id']]&&_0x51538b()[_0x2e44d1('0x283c')](_0x25ef6e['faxQueues'][_0x22a0c2['id']],_0x51538b()[_0x2e44d1('0x104e')](_0x22a0c2,_0x5e4191)));}function _0x5c4ba9(_0x458989){var _0x70887e=_0x30dad8;!_0x51538b()[_0x70887e('0x89a')](_0x458989)&&(delete _0x25ef6e[_0x70887e('0x1e48')][_0x458989['id']],delete _0x25ef6e['faxQueues'][_0x458989['id']]);}function _0x2478e7(_0x26749d){var _0xb2c00b=_0x30dad8;_0x51538b()['toInteger'](_0x26749d[_0xb2c00b('0x1037')])===_0x416035['getCurrentUser']()['id']&&_0x25ef6e[_0xb2c00b('0x1a35')]();}function _0x1beb39(_0x4c9279){var _0x406dae=_0x30dad8;_0x51538b()[_0x406dae('0x23fe')](_0x4c9279[_0x406dae('0x1037')])===_0x416035[_0x406dae('0xacc')]()['id']&&_0x25ef6e[_0x406dae('0x1a35')]();}function _0x23ddca(_0x592d4c){var _0x3c790a=_0x30dad8;_0x25ef6e['faxQueues'][_0x592d4c[_0x3c790a('0x2697')]]&&(_0x25ef6e[_0x3c790a('0x1cca')][_0x592d4c['id']]=_0x592d4c,_0x3f03a0());}function _0x2c0dd0(_0x2de3d7){var _0x5d2a3f=_0x30dad8;delete _0x25ef6e[_0x5d2a3f('0x1cca')][_0x2de3d7['id']],_0x3d221e&&_0x25ef6e[_0x5d2a3f('0x2257')][_0x5d2a3f('0x1599')](_0x2de3d7['id']),_0x3f03a0();}function _0x207ee6(_0x298cab){var _0x1e4396=_0x30dad8;switch(_0x298cab){case _0x1e4396('0x20f9'):return'green-A700-bg';case'mail':return _0x1e4396('0xd9b');case'sms':return _0x1e4396('0x2487');case'whatsapp':return _0x1e4396('0x1150');case _0x1e4396('0x170'):return _0x1e4396('0x24d5');case _0x1e4396('0x16c4'):return _0x1e4396('0x529');default:return _0x1e4396('0x1f61');}}_0x2908fc[_0x30dad8('0xc75')]('$destroy',function(){var _0x2b6463=_0x30dad8;_0x13cf53[_0x2b6463('0x2629')](_0x2b6463('0x1e03')),_0x13cf53[_0x2b6463('0x2629')](_0x2b6463('0x1b29')),_0x13cf53[_0x2b6463('0x2629')](_0x2b6463('0x388')),_0x13cf53[_0x2b6463('0x2629')]('faxQueue:remove'),_0x13cf53[_0x2b6463('0x2629')](_0x2b6463('0x699')),_0x13cf53[_0x2b6463('0x2629')](_0x2b6463('0x1e19')),_0x13cf53[_0x2b6463('0x2629')](_0x2b6463('0x22b8')),_0x13cf53[_0x2b6463('0x2629')](_0x2b6463('0x192c'));});}const _0x55699f=_0x429ccc;_0x1ef9ba['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xe74')];function _0x1ef9ba(_0x5de4d5,_0x37fa71,_0x40c217,_0xf52604,_0x48aa2c,_0x13eca2,_0x164d93,_0x40e313,_0x14c30b){var _0x32bd23=_0x1a8446,_0x2132cb=this,_0x252ecf=['id',_0x32bd23('0x25d6'),_0x32bd23('0xc28'),_0x32bd23('0xd3d')],_0x8857ad=!![];_0x2132cb[_0x32bd23('0x1073')]={},_0x2132cb['mailQueuesTotal']=0x0,_0x2132cb['rpcMailQueues']={},_0x2132cb[_0x32bd23('0x12fb')]=[],_0x2132cb[_0x32bd23('0x157a')]=[],_0x2132cb[_0x32bd23('0xb2b')]={},_0x2132cb[_0x32bd23('0x582')]={'id':_0x40e313['getCurrentUser']()['id'],'channel':_0x32bd23('0x14c5'),'fields':_0x32bd23('0x235a'),'limit':0xa,'page':0x1},_0x2132cb[_0x32bd23('0x1b74')]={'limit':0xa,'page':0x1},_0x2132cb[_0x32bd23('0xe10')]=_0x1d4f45,_0x2132cb[_0x32bd23('0x2777')]=_0x1f6956,_0x2132cb[_0x32bd23('0xa36')]=_0x16c26a,_0x2132cb[_0x32bd23('0x1db2')]=_0x5d0d7a,_0x2132cb[_0x32bd23('0x1c60')]=_0x59e0a7,_0x2132cb['onSaveQueue']=_0x3ab278,_0x2132cb['onSaveMailQueue']=_0x59258,_0x2132cb[_0x32bd23('0x7e2')]=_0x50c4ec,_0x2132cb['onRemoveMailQueue']=_0x132807,_0x2132cb['onSaveUserMailQueue']=_0x5874f1,_0x2132cb['onRemoveUserMailQueue']=_0x14a526,_0x2132cb[_0x32bd23('0x1c5a')]=_0x440fab,_0x2132cb[_0x32bd23('0x144f')]=_0x2ecd0a,_0x14c30b['onWithoutApply'](_0x32bd23('0x1af1'),_0x2132cb[_0x32bd23('0xd16')]),_0x14c30b[_0x32bd23('0xa84')](_0x32bd23('0x1c27'),_0x2132cb[_0x32bd23('0x19ff')]),_0x14c30b[_0x32bd23('0xa84')](_0x32bd23('0xdf6'),_0x2132cb[_0x32bd23('0x7e2')]),_0x14c30b[_0x32bd23('0xa84')](_0x32bd23('0x1d04'),_0x2132cb[_0x32bd23('0x114b')]),_0x14c30b[_0x32bd23('0xa84')](_0x32bd23('0x3d2'),_0x2132cb[_0x32bd23('0x1cce')]),_0x14c30b[_0x32bd23('0xa84')](_0x32bd23('0x1947'),_0x2132cb[_0x32bd23('0x17d5')]),_0x14c30b[_0x32bd23('0xa84')](_0x32bd23('0x277e'),_0x2132cb['onSaveMailQueueChannel']),_0x14c30b['onWithoutApply'](_0x32bd23('0x219'),_0x2132cb[_0x32bd23('0x144f')]),_0x164d93[_0x32bd23('0xb5d')]['getMailQueues']()[_0x32bd23('0x1dc2')]['then'](function(_0x227b23){var _0x52e109=_0x32bd23;_0x2132cb[_0x52e109('0x432')]=_0x227b23?_0x51538b()[_0x52e109('0x184a')](_0x227b23[_0x52e109('0x580')]?_0x227b23[_0x52e109('0x580')]:[],'id'):{};})[_0x32bd23('0xaa5')](function(){var _0x42face=_0x32bd23;return _0x164d93[_0x42face('0x272b')][_0x42face('0x1e87')]({'id':_0x40e313[_0x42face('0xacc')]()['id'],'channel':_0x42face('0x14c5')})[_0x42face('0x1dc2')];})[_0x32bd23('0xaa5')](function(_0x3c397a){var _0x22581f=_0x32bd23;return _0x2132cb[_0x22581f('0x1d2e')]=_0x3c397a[_0x22581f('0x580')],_0x164d93[_0x22581f('0xb5d')][_0x22581f('0x1635')]()[_0x22581f('0x1dc2')];})[_0x32bd23('0xaa5')](function(_0x24eba4){var _0x4aa026=_0x32bd23,_0x46af30=_0x51538b()['filter'](_0x24eba4['rows'],function(_0x5ea6d4){var _0x2e2597=a0_0x1149;return _0x51538b()['includes'](_0x2132cb[_0x2e2597('0x1d2e')],{'id':_0x5ea6d4[_0x2e2597('0x2697')]});});_0x24eba4[_0x4aa026('0x580')]=_0x46af30,_0x24eba4[_0x4aa026('0xd15')]=_0x46af30[_0x4aa026('0x2587')],_0x51538b()[_0x4aa026('0x283c')](_0x2132cb[_0x4aa026('0xb2b')],_0x24eba4?_0x51538b()[_0x4aa026('0x184a')](_0x24eba4['rows']?_0x24eba4[_0x4aa026('0x580')]:[],'id'):{});})[_0x32bd23('0x253d')](function(_0x511c22){var _0x474834=_0x32bd23;console[_0x474834('0x187f')](_0x511c22);})[_0x32bd23('0x1889')](function(){var _0x317972=_0x32bd23;for(var _0x362824=0x0;_0x362824<_0x2132cb[_0x317972('0x157a')][_0x317972('0x2587')];_0x362824+=0x1){delete _0x2132cb[_0x317972('0xb2b')][_0x2132cb[_0x317972('0x157a')][_0x362824]];}_0x8857ad=![],_0x2132cb[_0x317972('0x157a')]=[],_0x1f6956(),_0x59e0a7();});function _0x59e0a7(){var _0x3aaaf2=_0x32bd23,_0x242d63=(_0x2132cb['queryChannels']['page']-0x1)*_0x2132cb[_0x3aaaf2('0x1b74')][_0x3aaaf2('0xf4d')];_0x2132cb[_0x3aaaf2('0x12fb')]=_0x51538b()[_0x3aaaf2('0x271d')](_0x2132cb['rpcMailQueuesWaitingInteractions'],[_0x3aaaf2('0x57a')],['desc']),_0x2132cb[_0x3aaaf2('0x1abf')]=_0x51538b()[_0x3aaaf2('0x485')](_0x2132cb[_0x3aaaf2('0x12fb')],_0x242d63)['slice'](0x0,_0x2132cb[_0x3aaaf2('0x1b74')][_0x3aaaf2('0xf4d')]);}function _0x1d4f45(_0x32650a){var _0x3232e3=_0x32bd23;_0x2132cb[_0x3232e3('0x10a4')]=_0x32650a[_0x3232e3('0xd15')]?_0x32650a[_0x3232e3('0xd15')]:0x0,_0x2132cb[_0x3232e3('0x1073')]=_0x32650a?_0x51538b()[_0x3232e3('0x184a')](_0x32650a['rows']?_0x32650a[_0x3232e3('0x580')]:[],'id'):{},_0x1defdb();}function _0x1f6956(){var _0x3d374d=_0x32bd23;_0x2132cb['query'][_0x3d374d('0x8b1')]=(_0x2132cb[_0x3d374d('0x582')][_0x3d374d('0x41')]-0x1)*_0x2132cb[_0x3d374d('0x582')][_0x3d374d('0xf4d')],_0x2132cb['promise']=_0x164d93[_0x3d374d('0x272b')][_0x3d374d('0x1e87')](_0x2132cb[_0x3d374d('0x582')],_0x1d4f45)['$promise'];}var _0x16fb84=!![],_0x366e61=0x1;_0x5de4d5[_0x32bd23('0x1ccf')](_0x32bd23('0x74c'),function(_0x5439dd,_0x2cf68e){var _0x527cbb=_0x32bd23;_0x16fb84?_0x37fa71(function(){_0x16fb84=![];}):(!_0x2cf68e&&(_0x366e61=_0x2132cb[_0x527cbb('0x582')]['page']),_0x5439dd!==_0x2cf68e&&(_0x2132cb[_0x527cbb('0x582')][_0x527cbb('0x41')]=0x1),!_0x5439dd&&(_0x2132cb[_0x527cbb('0x582')][_0x527cbb('0x41')]=_0x366e61),_0x2132cb[_0x527cbb('0x2777')]());});function _0x16c26a(_0x4d11ce){return _0x51538b()['size'](_0x4d11ce);}function _0x1defdb(){var _0x4abd35=_0x32bd23;_0x51538b()[_0x4abd35('0x143e')](_0x2132cb[_0x4abd35('0x1073')],function(_0x2b2c8b,_0x391481){var _0x5ca4c9=_0x4abd35;_0x2132cb[_0x5ca4c9('0x432')][_0x391481]&&(_0x2132cb[_0x5ca4c9('0x1073')][_0x391481][_0x5ca4c9('0xd3d')]=_0x2132cb[_0x5ca4c9('0x432')][_0x391481]['waiting']||0x0);});}function _0x3ab278(_0x11a014){var _0x57354e=_0x32bd23;_0x2132cb[_0x57354e('0x1073')][_0x11a014['id']]&&(_0x2132cb[_0x57354e('0x432')][_0x11a014['id']]&&(_0x51538b()[_0x57354e('0x283c')](_0x2132cb[_0x57354e('0x432')][_0x11a014['id']],_0x51538b()[_0x57354e('0x104e')](_0x11a014,_0x252ecf)),_0x51538b()[_0x57354e('0x283c')](_0x2132cb[_0x57354e('0x1073')][_0x11a014['id']],_0x51538b()[_0x57354e('0x104e')](_0x11a014,_0x252ecf))));}function _0x59258(_0x49594f){var _0x4fe767=_0x32bd23;!_0x51538b()[_0x4fe767('0x89a')](_0x49594f)&&(_0x2132cb[_0x4fe767('0x432')][_0x49594f['id']]=_0x51538b()[_0x4fe767('0x104e')](_0x49594f,_0x252ecf));}function _0x50c4ec(_0x239a9e){var _0xf9dac7=_0x32bd23;!_0x51538b()['isNil'](_0x239a9e)&&(_0x2132cb['rpcMailQueues'][_0x239a9e['id']]&&_0x51538b()[_0xf9dac7('0x283c')](_0x2132cb[_0xf9dac7('0x432')][_0x239a9e['id']],_0x51538b()[_0xf9dac7('0x104e')](_0x239a9e,_0x252ecf)),_0x2132cb['mailQueues'][_0x239a9e['id']]&&_0x51538b()[_0xf9dac7('0x283c')](_0x2132cb[_0xf9dac7('0x1073')][_0x239a9e['id']],_0x51538b()['pick'](_0x239a9e,_0x252ecf)));}function _0x132807(_0x9d8ce7){var _0x2695a3=_0x32bd23;!_0x51538b()[_0x2695a3('0x89a')](_0x9d8ce7)&&(delete _0x2132cb['rpcMailQueues'][_0x9d8ce7['id']],delete _0x2132cb[_0x2695a3('0x1073')][_0x9d8ce7['id']]);}function _0x5874f1(_0x52c926){var _0x33e8fa=_0x32bd23;_0x51538b()['toInteger'](_0x52c926[_0x33e8fa('0x1037')])===_0x40e313[_0x33e8fa('0xacc')]()['id']&&_0x2132cb[_0x33e8fa('0x2777')]();}function _0x14a526(_0x579cf3){var _0x28da55=_0x32bd23;_0x51538b()[_0x28da55('0x23fe')](_0x579cf3[_0x28da55('0x1037')])===_0x40e313[_0x28da55('0xacc')]()['id']&&_0x2132cb[_0x28da55('0x2777')]();}function _0x440fab(_0x538447){var _0x18cec0=_0x32bd23;_0x2132cb['mailQueues'][_0x538447[_0x18cec0('0x2697')]]&&(_0x2132cb[_0x18cec0('0xb2b')][_0x538447['id']]=_0x538447,_0x59e0a7());}function _0x2ecd0a(_0x2597f2){var _0xc77757=_0x32bd23;delete _0x2132cb['rpcMailQueuesWaitingInteractions'][_0x2597f2['id']],_0x8857ad&&_0x2132cb['deleteMailQueuesWaitingInteractions'][_0xc77757('0x1599')](_0x2597f2['id']),_0x59e0a7();}function _0x5d0d7a(_0x4aa2d6){var _0x1b211c=_0x32bd23;switch(_0x4aa2d6){case _0x1b211c('0x20f9'):return _0x1b211c('0x1003');case _0x1b211c('0x14c5'):return _0x1b211c('0xd9b');case'sms':return'orange-bg';case _0x1b211c('0x220d'):return _0x1b211c('0x1150');case'openchannel':return'amber-A200-bg';case'fax':return'blue-grey-A200-bg';default:return _0x1b211c('0x1f61');}}_0x5de4d5[_0x32bd23('0xc75')](_0x32bd23('0x12d0'),function(){var _0x14182b=_0x32bd23;_0x14c30b[_0x14182b('0x2629')](_0x14182b('0x1af1')),_0x14c30b[_0x14182b('0x2629')](_0x14182b('0x1c27')),_0x14c30b[_0x14182b('0x2629')](_0x14182b('0xdf6')),_0x14c30b[_0x14182b('0x2629')](_0x14182b('0x1d04')),_0x14c30b['removeAllListeners'](_0x14182b('0x3d2')),_0x14c30b[_0x14182b('0x2629')](_0x14182b('0x1947')),_0x14c30b[_0x14182b('0x2629')]('mail_queue_waiting_interaction:save'),_0x14c30b[_0x14182b('0x2629')](_0x14182b('0x219'));});}const _0x365c5e=_0x1ef9ba;_0x4c38bd[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),'api',_0x1a8446('0x1dfd'),'socket'];function _0x4c38bd(_0x2616b3,_0x3838fe,_0x36cf2b,_0x3ca30b,_0x3e28af,_0x4bc249,_0x22a430,_0x343a8e,_0x43d552){var _0x40f1fa=_0x1a8446,_0x17c5bf=this,_0xa28b9e=['id',_0x40f1fa('0x25d6'),_0x40f1fa('0xc28'),_0x40f1fa('0xd3d')],_0x26b6d9=!![];_0x17c5bf['openchannelQueues']={},_0x17c5bf['openchannelQueuesTotal']=0x0,_0x17c5bf[_0x40f1fa('0x20f3')]={},_0x17c5bf[_0x40f1fa('0x12fb')]=[],_0x17c5bf[_0x40f1fa('0x12c3')]=[],_0x17c5bf[_0x40f1fa('0x262c')]={},_0x17c5bf[_0x40f1fa('0x582')]={'id':_0x343a8e['getCurrentUser']()['id'],'channel':_0x40f1fa('0x170'),'fields':_0x40f1fa('0x235a'),'limit':0xa,'page':0x1},_0x17c5bf[_0x40f1fa('0x1b74')]={'limit':0xa,'page':0x1},_0x17c5bf[_0x40f1fa('0xe10')]=_0x119411,_0x17c5bf['getOpenchannelQueues']=_0x100379,_0x17c5bf[_0x40f1fa('0xa36')]=_0x4009c0,_0x17c5bf['getColorByChannel']=_0x3ff29d,_0x17c5bf[_0x40f1fa('0x1c60')]=_0x4020bb,_0x17c5bf[_0x40f1fa('0xd16')]=_0x557713,_0x17c5bf[_0x40f1fa('0x18bd')]=_0x3d5d15,_0x17c5bf[_0x40f1fa('0x1b6')]=_0x10b962,_0x17c5bf[_0x40f1fa('0x510')]=_0xb845b1,_0x17c5bf[_0x40f1fa('0x22af')]=_0x4cc0b4,_0x17c5bf[_0x40f1fa('0x64a')]=_0x46af15,_0x17c5bf[_0x40f1fa('0x199d')]=_0x146256,_0x17c5bf[_0x40f1fa('0x1b65')]=_0x373cc2,_0x43d552[_0x40f1fa('0xa84')](_0x40f1fa('0x206c'),_0x17c5bf[_0x40f1fa('0xd16')]),_0x43d552['onWithoutApply'](_0x40f1fa('0xad0'),_0x17c5bf[_0x40f1fa('0x18bd')]),_0x43d552[_0x40f1fa('0xa84')](_0x40f1fa('0x288'),_0x17c5bf[_0x40f1fa('0x1b6')]),_0x43d552[_0x40f1fa('0xa84')]('openchannelQueue:remove',_0x17c5bf['onRemoveOpenchannelQueue']),_0x43d552[_0x40f1fa('0xa84')](_0x40f1fa('0x132d'),_0x17c5bf['onSaveUserOpenchannelQueue']),_0x43d552[_0x40f1fa('0xa84')](_0x40f1fa('0x18dc'),_0x17c5bf['onRemoveUserOpenchannelQueue']),_0x43d552[_0x40f1fa('0xa84')](_0x40f1fa('0x87e'),_0x17c5bf['onSaveOpenchannelQueueChannel']),_0x43d552[_0x40f1fa('0xa84')](_0x40f1fa('0xfc7'),_0x17c5bf[_0x40f1fa('0x1b65')]),_0x22a430['rpc'][_0x40f1fa('0x446')]()[_0x40f1fa('0x1dc2')][_0x40f1fa('0xaa5')](function(_0x4a26fd){var _0x4925d6=_0x40f1fa;_0x17c5bf['rpcOpenchannelQueues']=_0x4a26fd?_0x51538b()[_0x4925d6('0x184a')](_0x4a26fd[_0x4925d6('0x580')]?_0x4a26fd[_0x4925d6('0x580')]:[],'id'):{};})[_0x40f1fa('0xaa5')](function(){var _0x5bd8a7=_0x40f1fa;return _0x22a430[_0x5bd8a7('0x272b')][_0x5bd8a7('0x1e87')]({'id':_0x343a8e[_0x5bd8a7('0xacc')]()['id'],'channel':_0x5bd8a7('0x170')})[_0x5bd8a7('0x1dc2')];})['then'](function(_0x609311){var _0x249e6f=_0x40f1fa;return _0x17c5bf[_0x249e6f('0x1d2e')]=_0x609311[_0x249e6f('0x580')],_0x22a430[_0x249e6f('0xb5d')][_0x249e6f('0x1d21')]()[_0x249e6f('0x1dc2')];})[_0x40f1fa('0xaa5')](function(_0xc75e35){var _0x680b9f=_0x40f1fa,_0x4b085f=_0x51538b()[_0x680b9f('0xdb7')](_0xc75e35[_0x680b9f('0x580')],function(_0x1734ae){var _0x189d2f=_0x680b9f;return _0x51538b()['includes'](_0x17c5bf[_0x189d2f('0x1d2e')],{'id':_0x1734ae[_0x189d2f('0x2697')]});});_0xc75e35['rows']=_0x4b085f,_0xc75e35[_0x680b9f('0xd15')]=_0x4b085f['length'],_0x51538b()['merge'](_0x17c5bf['rpcOpenchannelQueuesWaitingInteractions'],_0xc75e35?_0x51538b()['keyBy'](_0xc75e35[_0x680b9f('0x580')]?_0xc75e35[_0x680b9f('0x580')]:[],'id'):{});})[_0x40f1fa('0x253d')](function(_0x311935){var _0x52d6ca=_0x40f1fa;console[_0x52d6ca('0x187f')](_0x311935);})[_0x40f1fa('0x1889')](function(){var _0x2c0a3b=_0x40f1fa;for(var _0x13c209=0x0;_0x13c209<_0x17c5bf[_0x2c0a3b('0x12c3')][_0x2c0a3b('0x2587')];_0x13c209+=0x1){delete _0x17c5bf['rpcOpenchannelQueuesWaitingInteractions'][_0x17c5bf[_0x2c0a3b('0x12c3')][_0x13c209]];}_0x26b6d9=![],_0x17c5bf['deleteOpenchannelQueuesWaitingInteractions']=[],_0x100379(),_0x4020bb();});function _0x4020bb(){var _0x760f44=_0x40f1fa,_0x414453=(_0x17c5bf[_0x760f44('0x1b74')]['page']-0x1)*_0x17c5bf['queryChannels']['limit'];_0x17c5bf[_0x760f44('0x12fb')]=_0x51538b()[_0x760f44('0x271d')](_0x17c5bf[_0x760f44('0x262c')],[_0x760f44('0x57a')],[_0x760f44('0x71c')]),_0x17c5bf[_0x760f44('0x1abf')]=_0x51538b()[_0x760f44('0x485')](_0x17c5bf[_0x760f44('0x12fb')],_0x414453)[_0x760f44('0x19aa')](0x0,_0x17c5bf[_0x760f44('0x1b74')][_0x760f44('0xf4d')]);}function _0x119411(_0x33c263){var _0x4d2c27=_0x40f1fa;_0x17c5bf[_0x4d2c27('0x1d39')]=_0x33c263[_0x4d2c27('0xd15')]?_0x33c263[_0x4d2c27('0xd15')]:0x0,_0x17c5bf[_0x4d2c27('0x1901')]=_0x33c263?_0x51538b()['keyBy'](_0x33c263[_0x4d2c27('0x580')]?_0x33c263['rows']:[],'id'):{},_0xeb5b35();}function _0x100379(){var _0x18a508=_0x40f1fa;_0x17c5bf['query'][_0x18a508('0x8b1')]=(_0x17c5bf[_0x18a508('0x582')]['page']-0x1)*_0x17c5bf['query'][_0x18a508('0xf4d')],_0x17c5bf[_0x18a508('0x159a')]=_0x22a430[_0x18a508('0x272b')][_0x18a508('0x1e87')](_0x17c5bf[_0x18a508('0x582')],_0x119411)[_0x18a508('0x1dc2')];}var _0x30376c=!![],_0x2331c3=0x1;_0x2616b3['$watch'](_0x40f1fa('0x74c'),function(_0x5d344c,_0x433b4d){var _0x544b1d=_0x40f1fa;_0x30376c?_0x3838fe(function(){_0x30376c=![];}):(!_0x433b4d&&(_0x2331c3=_0x17c5bf['query'][_0x544b1d('0x41')]),_0x5d344c!==_0x433b4d&&(_0x17c5bf[_0x544b1d('0x582')]['page']=0x1),!_0x5d344c&&(_0x17c5bf[_0x544b1d('0x582')]['page']=_0x2331c3),_0x17c5bf[_0x544b1d('0x446')]());});function _0x4009c0(_0x194166){var _0x1487ec=_0x40f1fa;return _0x51538b()[_0x1487ec('0x9f9')](_0x194166);}function _0xeb5b35(){_0x51538b()['forIn'](_0x17c5bf['openchannelQueues'],function(_0x4ac45a,_0x18a31e){var _0x3e0416=a0_0x1149;_0x17c5bf[_0x3e0416('0x20f3')][_0x18a31e]&&(_0x17c5bf[_0x3e0416('0x1901')][_0x18a31e]['waiting']=_0x17c5bf[_0x3e0416('0x20f3')][_0x18a31e][_0x3e0416('0xd3d')]||0x0);});}function _0x557713(_0xc3c999){var _0x4b9261=_0x40f1fa;_0x17c5bf['openchannelQueues'][_0xc3c999['id']]&&(_0x17c5bf['rpcOpenchannelQueues'][_0xc3c999['id']]&&(_0x51538b()[_0x4b9261('0x283c')](_0x17c5bf['rpcOpenchannelQueues'][_0xc3c999['id']],_0x51538b()['pick'](_0xc3c999,_0xa28b9e)),_0x51538b()[_0x4b9261('0x283c')](_0x17c5bf[_0x4b9261('0x1901')][_0xc3c999['id']],_0x51538b()[_0x4b9261('0x104e')](_0xc3c999,_0xa28b9e))));}function _0x3d5d15(_0x565beb){var _0x2afe52=_0x40f1fa;!_0x51538b()[_0x2afe52('0x89a')](_0x565beb)&&(_0x17c5bf[_0x2afe52('0x20f3')][_0x565beb['id']]=_0x51538b()[_0x2afe52('0x104e')](_0x565beb,_0xa28b9e));}function _0x10b962(_0x91678b){var _0x49f34c=_0x40f1fa;!_0x51538b()['isNil'](_0x91678b)&&(_0x17c5bf[_0x49f34c('0x20f3')][_0x91678b['id']]&&_0x51538b()[_0x49f34c('0x283c')](_0x17c5bf[_0x49f34c('0x20f3')][_0x91678b['id']],_0x51538b()[_0x49f34c('0x104e')](_0x91678b,_0xa28b9e)),_0x17c5bf[_0x49f34c('0x1901')][_0x91678b['id']]&&_0x51538b()[_0x49f34c('0x283c')](_0x17c5bf['openchannelQueues'][_0x91678b['id']],_0x51538b()['pick'](_0x91678b,_0xa28b9e)));}function _0xb845b1(_0x2a7b61){var _0x598b16=_0x40f1fa;!_0x51538b()[_0x598b16('0x89a')](_0x2a7b61)&&(delete _0x17c5bf['rpcOpenchannelQueues'][_0x2a7b61['id']],delete _0x17c5bf[_0x598b16('0x1901')][_0x2a7b61['id']]);}function _0x4cc0b4(_0x16bef3){var _0x17f933=_0x40f1fa;_0x51538b()[_0x17f933('0x23fe')](_0x16bef3[_0x17f933('0x1037')])===_0x343a8e[_0x17f933('0xacc')]()['id']&&_0x17c5bf['getOpenchannelQueues']();}function _0x46af15(_0x5da43a){var _0x311c21=_0x40f1fa;_0x51538b()[_0x311c21('0x23fe')](_0x5da43a[_0x311c21('0x1037')])===_0x343a8e[_0x311c21('0xacc')]()['id']&&_0x17c5bf[_0x311c21('0x446')]();}function _0x146256(_0x329142){var _0x422a8c=_0x40f1fa;_0x17c5bf[_0x422a8c('0x1901')][_0x329142['queue_id']]&&(_0x17c5bf[_0x422a8c('0x262c')][_0x329142['id']]=_0x329142,_0x4020bb());}function _0x373cc2(_0x52add){var _0x59081c=_0x40f1fa;delete _0x17c5bf[_0x59081c('0x262c')][_0x52add['id']],_0x26b6d9&&_0x17c5bf[_0x59081c('0x12c3')][_0x59081c('0x1599')](_0x52add['id']),_0x4020bb();}function _0x3ff29d(_0x4da4b9){var _0xba8ff7=_0x40f1fa;switch(_0x4da4b9){case _0xba8ff7('0x20f9'):return _0xba8ff7('0x1003');case _0xba8ff7('0x14c5'):return _0xba8ff7('0xd9b');case _0xba8ff7('0x18da'):return _0xba8ff7('0x2487');case _0xba8ff7('0x220d'):return _0xba8ff7('0x1150');case'openchannel':return _0xba8ff7('0x24d5');case _0xba8ff7('0x16c4'):return _0xba8ff7('0x529');default:return _0xba8ff7('0x1f61');}}_0x2616b3['$on']('$destroy',function(){var _0x33578b=_0x40f1fa;_0x43d552[_0x33578b('0x2629')]('openchannel_queue:save'),_0x43d552[_0x33578b('0x2629')]('openchannelQueue:save'),_0x43d552['removeAllListeners'](_0x33578b('0x288')),_0x43d552[_0x33578b('0x2629')]('openchannelQueue:remove'),_0x43d552[_0x33578b('0x2629')](_0x33578b('0x132d')),_0x43d552[_0x33578b('0x2629')](_0x33578b('0x18dc')),_0x43d552[_0x33578b('0x2629')]('openchannel_queue_waiting_interaction:save'),_0x43d552['removeAllListeners'](_0x33578b('0xfc7'));});}const _0x3a78fa=_0x4c38bd;_0x1653bd[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xe74')];function _0x1653bd(_0x2fe33a,_0xccb0b3,_0xc07df1,_0xe11929,_0x5bed52,_0xee645f,_0x29e0d9,_0x2d29f3,_0x41c49a){var _0x56facb=_0x1a8446,_0x527011=this,_0x24d4c0=['id',_0x56facb('0x25d6'),_0x56facb('0xc28'),'waiting'],_0x3c9433=!![];_0x527011[_0x56facb('0x145')]={},_0x527011[_0x56facb('0x13f1')]=0x0,_0x527011['rpcSmsQueues']={},_0x527011['paginatedInteractions']=[],_0x527011['deleteSmsQueuesWaitingInteractions']=[],_0x527011[_0x56facb('0x1102')]={},_0x527011[_0x56facb('0x582')]={'id':_0x2d29f3[_0x56facb('0xacc')]()['id'],'channel':'sms','fields':_0x56facb('0x235a'),'limit':0xa,'page':0x1},_0x527011[_0x56facb('0x1b74')]={'limit':0xa,'page':0x1},_0x527011[_0x56facb('0xe10')]=_0x169b94,_0x527011[_0x56facb('0x256d')]=_0x4105dc,_0x527011[_0x56facb('0xa36')]=_0x266188,_0x527011[_0x56facb('0x1db2')]=_0x45a449,_0x527011[_0x56facb('0x1c60')]=_0x11c4c4,_0x527011[_0x56facb('0xd16')]=_0x5c5539,_0x527011[_0x56facb('0x1ffd')]=_0x389ed6,_0x527011[_0x56facb('0x1a08')]=_0x250c4e,_0x527011[_0x56facb('0x22ea')]=_0x2ffda3,_0x527011['onSaveUserSmsQueue']=_0x3f7b4e,_0x527011['onRemoveUserSmsQueue']=_0x403aff,_0x527011['onSaveSmsQueueChannel']=_0x2a0ec7,_0x527011[_0x56facb('0x12c5')]=_0x4fc135,_0x41c49a[_0x56facb('0xa84')](_0x56facb('0x2099'),_0x527011[_0x56facb('0xd16')]),_0x41c49a[_0x56facb('0xa84')](_0x56facb('0xb39'),_0x527011['onSaveSmsQueue']),_0x41c49a[_0x56facb('0xa84')](_0x56facb('0x2187'),_0x527011[_0x56facb('0x1a08')]),_0x41c49a[_0x56facb('0xa84')](_0x56facb('0x2c6'),_0x527011['onRemoveSmsQueue']),_0x41c49a[_0x56facb('0xa84')](_0x56facb('0xe9d'),_0x527011[_0x56facb('0x7f3')]),_0x41c49a['onWithoutApply']('userSmsQueue:remove',_0x527011[_0x56facb('0x2310')]),_0x41c49a[_0x56facb('0xa84')]('sms_queue_waiting_interaction:save',_0x527011['onSaveSmsQueueChannel']),_0x41c49a[_0x56facb('0xa84')](_0x56facb('0x1a52'),_0x527011[_0x56facb('0x12c5')]),_0x29e0d9[_0x56facb('0xb5d')]['getSmsQueues']()[_0x56facb('0x1dc2')][_0x56facb('0xaa5')](function(_0x4b0918){var _0x1176ae=_0x56facb;_0x527011['rpcSmsQueues']=_0x4b0918?_0x51538b()[_0x1176ae('0x184a')](_0x4b0918[_0x1176ae('0x580')]?_0x4b0918[_0x1176ae('0x580')]:[],'id'):{};})['then'](function(){var _0x1e141a=_0x56facb;return _0x29e0d9[_0x1e141a('0x272b')][_0x1e141a('0x1e87')]({'id':_0x2d29f3['getCurrentUser']()['id'],'channel':'sms'})[_0x1e141a('0x1dc2')];})[_0x56facb('0xaa5')](function(_0x6c4802){var _0x3f1714=_0x56facb;return _0x527011[_0x3f1714('0x1d2e')]=_0x6c4802[_0x3f1714('0x580')],_0x29e0d9[_0x3f1714('0xb5d')][_0x3f1714('0x1c84')]()[_0x3f1714('0x1dc2')];})['then'](function(_0x4dce5b){var _0x3b92ed=_0x56facb,_0x604e82=_0x51538b()[_0x3b92ed('0xdb7')](_0x4dce5b[_0x3b92ed('0x580')],function(_0x116df1){var _0x309333=_0x3b92ed;return _0x51538b()[_0x309333('0x13d6')](_0x527011[_0x309333('0x1d2e')],{'id':_0x116df1[_0x309333('0x2697')]});});_0x4dce5b['rows']=_0x604e82,_0x4dce5b[_0x3b92ed('0xd15')]=_0x604e82[_0x3b92ed('0x2587')],_0x51538b()[_0x3b92ed('0x283c')](_0x527011[_0x3b92ed('0x1102')],_0x4dce5b?_0x51538b()[_0x3b92ed('0x184a')](_0x4dce5b[_0x3b92ed('0x580')]?_0x4dce5b[_0x3b92ed('0x580')]:[],'id'):{});})[_0x56facb('0x253d')](function(_0xc850eb){var _0x38ad58=_0x56facb;console[_0x38ad58('0x187f')](_0xc850eb);})[_0x56facb('0x1889')](function(){var _0x236757=_0x56facb;for(var _0x34c53a=0x0;_0x34c53a<_0x527011[_0x236757('0xd12')]['length'];_0x34c53a+=0x1){delete _0x527011['rpcSmsQueuesWaitingInteractions'][_0x527011[_0x236757('0xd12')][_0x34c53a]];}_0x3c9433=![],_0x527011[_0x236757('0xd12')]=[],_0x4105dc(),_0x11c4c4();});function _0x11c4c4(){var _0xf9b1ce=_0x56facb,_0x356c0e=(_0x527011[_0xf9b1ce('0x1b74')][_0xf9b1ce('0x41')]-0x1)*_0x527011[_0xf9b1ce('0x1b74')][_0xf9b1ce('0xf4d')];_0x527011[_0xf9b1ce('0x12fb')]=_0x51538b()[_0xf9b1ce('0x271d')](_0x527011[_0xf9b1ce('0x1102')],[_0xf9b1ce('0x57a')],[_0xf9b1ce('0x71c')]),_0x527011[_0xf9b1ce('0x1abf')]=_0x51538b()[_0xf9b1ce('0x485')](_0x527011[_0xf9b1ce('0x12fb')],_0x356c0e)[_0xf9b1ce('0x19aa')](0x0,_0x527011[_0xf9b1ce('0x1b74')][_0xf9b1ce('0xf4d')]);}function _0x169b94(_0x25f16f){var _0x314bea=_0x56facb;_0x527011[_0x314bea('0x13f1')]=_0x25f16f[_0x314bea('0xd15')]?_0x25f16f[_0x314bea('0xd15')]:0x0,_0x527011['smsQueues']=_0x25f16f?_0x51538b()[_0x314bea('0x184a')](_0x25f16f[_0x314bea('0x580')]?_0x25f16f['rows']:[],'id'):{},_0x12d9a3();}function _0x4105dc(){var _0x3d30bd=_0x56facb;_0x527011[_0x3d30bd('0x582')][_0x3d30bd('0x8b1')]=(_0x527011[_0x3d30bd('0x582')][_0x3d30bd('0x41')]-0x1)*_0x527011[_0x3d30bd('0x582')][_0x3d30bd('0xf4d')],_0x527011[_0x3d30bd('0x159a')]=_0x29e0d9[_0x3d30bd('0x272b')][_0x3d30bd('0x1e87')](_0x527011['query'],_0x169b94)[_0x3d30bd('0x1dc2')];}var _0x12a9dd=!![],_0x510fc5=0x1;_0x2fe33a[_0x56facb('0x1ccf')](_0x56facb('0x74c'),function(_0x598913,_0x586970){var _0x455f2b=_0x56facb;_0x12a9dd?_0xccb0b3(function(){_0x12a9dd=![];}):(!_0x586970&&(_0x510fc5=_0x527011[_0x455f2b('0x582')]['page']),_0x598913!==_0x586970&&(_0x527011[_0x455f2b('0x582')]['page']=0x1),!_0x598913&&(_0x527011[_0x455f2b('0x582')][_0x455f2b('0x41')]=_0x510fc5),_0x527011[_0x455f2b('0x256d')]());});function _0x266188(_0x47162f){var _0x36b563=_0x56facb;return _0x51538b()[_0x36b563('0x9f9')](_0x47162f);}function _0x12d9a3(){var _0x5d484d=_0x56facb;_0x51538b()[_0x5d484d('0x143e')](_0x527011[_0x5d484d('0x145')],function(_0x24f5fc,_0x4ea653){var _0x2cb67e=_0x5d484d;_0x527011[_0x2cb67e('0x1d0')][_0x4ea653]&&(_0x527011[_0x2cb67e('0x145')][_0x4ea653]['waiting']=_0x527011['rpcSmsQueues'][_0x4ea653]['waiting']||0x0);});}function _0x5c5539(_0x2acbab){var _0xc54a31=_0x56facb;_0x527011['smsQueues'][_0x2acbab['id']]&&(_0x527011[_0xc54a31('0x1d0')][_0x2acbab['id']]&&(_0x51538b()[_0xc54a31('0x283c')](_0x527011['rpcSmsQueues'][_0x2acbab['id']],_0x51538b()[_0xc54a31('0x104e')](_0x2acbab,_0x24d4c0)),_0x51538b()['merge'](_0x527011[_0xc54a31('0x145')][_0x2acbab['id']],_0x51538b()[_0xc54a31('0x104e')](_0x2acbab,_0x24d4c0))));}function _0x389ed6(_0x24650a){var _0x48b290=_0x56facb;!_0x51538b()[_0x48b290('0x89a')](_0x24650a)&&(_0x527011['rpcSmsQueues'][_0x24650a['id']]=_0x51538b()[_0x48b290('0x104e')](_0x24650a,_0x24d4c0));}function _0x250c4e(_0x1a56bd){var _0x21565f=_0x56facb;!_0x51538b()[_0x21565f('0x89a')](_0x1a56bd)&&(_0x527011['rpcSmsQueues'][_0x1a56bd['id']]&&_0x51538b()[_0x21565f('0x283c')](_0x527011[_0x21565f('0x1d0')][_0x1a56bd['id']],_0x51538b()[_0x21565f('0x104e')](_0x1a56bd,_0x24d4c0)),_0x527011['smsQueues'][_0x1a56bd['id']]&&_0x51538b()[_0x21565f('0x283c')](_0x527011['smsQueues'][_0x1a56bd['id']],_0x51538b()[_0x21565f('0x104e')](_0x1a56bd,_0x24d4c0)));}function _0x2ffda3(_0x163738){var _0x4dd869=_0x56facb;!_0x51538b()[_0x4dd869('0x89a')](_0x163738)&&(delete _0x527011['rpcSmsQueues'][_0x163738['id']],delete _0x527011[_0x4dd869('0x145')][_0x163738['id']]);}function _0x3f7b4e(_0x21e5ca){var _0x4490df=_0x56facb;_0x51538b()['toInteger'](_0x21e5ca[_0x4490df('0x1037')])===_0x2d29f3[_0x4490df('0xacc')]()['id']&&_0x527011[_0x4490df('0x256d')]();}function _0x403aff(_0x8478ec){var _0x28fd00=_0x56facb;_0x51538b()[_0x28fd00('0x23fe')](_0x8478ec[_0x28fd00('0x1037')])===_0x2d29f3[_0x28fd00('0xacc')]()['id']&&_0x527011[_0x28fd00('0x256d')]();}function _0x2a0ec7(_0x3163c8){var _0x4b661d=_0x56facb;_0x527011[_0x4b661d('0x145')][_0x3163c8[_0x4b661d('0x2697')]]&&(_0x527011[_0x4b661d('0x1102')][_0x3163c8['id']]=_0x3163c8,_0x11c4c4());}function _0x4fc135(_0x201f1f){var _0x29b474=_0x56facb;delete _0x527011[_0x29b474('0x1102')][_0x201f1f['id']],_0x3c9433&&_0x527011[_0x29b474('0xd12')][_0x29b474('0x1599')](_0x201f1f['id']),_0x11c4c4();}function _0x45a449(_0x71292e){var _0x58fef8=_0x56facb;switch(_0x71292e){case _0x58fef8('0x20f9'):return _0x58fef8('0x1003');case _0x58fef8('0x14c5'):return _0x58fef8('0xd9b');case _0x58fef8('0x18da'):return'orange-bg';case _0x58fef8('0x220d'):return _0x58fef8('0x1150');case _0x58fef8('0x170'):return _0x58fef8('0x24d5');case _0x58fef8('0x16c4'):return _0x58fef8('0x529');default:return _0x58fef8('0x1f61');}}_0x2fe33a[_0x56facb('0xc75')](_0x56facb('0x12d0'),function(){var _0x4ccf62=_0x56facb;_0x41c49a[_0x4ccf62('0x2629')](_0x4ccf62('0x2099')),_0x41c49a[_0x4ccf62('0x2629')](_0x4ccf62('0xb39')),_0x41c49a['removeAllListeners'](_0x4ccf62('0x2187')),_0x41c49a[_0x4ccf62('0x2629')]('smsQueue:remove'),_0x41c49a['removeAllListeners'](_0x4ccf62('0xe9d')),_0x41c49a['removeAllListeners'](_0x4ccf62('0x1d1a')),_0x41c49a['removeAllListeners'](_0x4ccf62('0x1bf0')),_0x41c49a['removeAllListeners'](_0x4ccf62('0x1a52'));});}const _0x4b4b9e=_0x1653bd;_0x419be3[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$document','$window',_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74')];function _0x419be3(_0x1601c0,_0xaadc4c,_0x46af87,_0x3e6990,_0x2ef26b,_0x48ce8f,_0x4f4957,_0x3bd610,_0x384234){var _0x3c046d=_0x1a8446,_0x524b86=this,_0x55dad4=[_0x3c046d('0x6c8'),_0x3c046d('0xd3d'),_0x3c046d('0x1ba1'),_0x3c046d('0x1b71')];_0x524b86[_0x3c046d('0xac0')]={},_0x524b86[_0x3c046d('0x20fe')]=0x0,_0x524b86['rpcVoiceQueues']={},_0x524b86[_0x3c046d('0x1c5f')]={},_0x524b86[_0x3c046d('0x2705')]={},_0x524b86[_0x3c046d('0x5a3')]={},_0x524b86[_0x3c046d('0x2623')]=[],_0x524b86[_0x3c046d('0x259c')]=!![],_0x524b86[_0x3c046d('0x582')]={'id':_0x3bd610[_0x3c046d('0xacc')]()['id'],'fields':_0x3c046d('0x1fd1'),'channel':'voice','type':_0x3c046d('0x4b8'),'limit':0xa,'page':0x1},_0x524b86[_0x3c046d('0x1b74')]={'limit':0xa,'page':0x1},_0x524b86[_0x3c046d('0xe10')]=_0x2be4d6,_0x524b86['getVoiceQueues']=_0x4b8157,_0x524b86[_0x3c046d('0xa36')]=_0x31e423,_0x524b86['onSaveQueue']=_0x20f491,_0x524b86[_0x3c046d('0x22da')]=_0x26b580,_0x524b86[_0x3c046d('0x1f47')]=_0x191052,_0x524b86['onSaveVoiceQueue']=_0x11cbab,_0x524b86[_0x3c046d('0xca5')]=_0x46db40,_0x524b86[_0x3c046d('0x1b17')]=_0x482061,_0x384234[_0x3c046d('0xa84')](_0x3c046d('0x46'),_0x524b86[_0x3c046d('0xd16')]),_0x384234[_0x3c046d('0xa84')](_0x3c046d('0xbf1'),_0x524b86[_0x3c046d('0x22da')]),_0x384234[_0x3c046d('0xa84')](_0x3c046d('0x77e'),_0x524b86['onUserVoiceQueue']),_0x384234[_0x3c046d('0xa84')](_0x3c046d('0x10ac'),_0x524b86['onUserVoiceQueue']),_0x384234[_0x3c046d('0xa84')](_0x3c046d('0x215f'),_0x524b86[_0x3c046d('0x2184')]),_0x384234[_0x3c046d('0xa84')](_0x3c046d('0x125e'),_0x524b86[_0x3c046d('0x1b17')]),_0x384234[_0x3c046d('0xa84')](_0x3c046d('0x21e4'),_0x524b86[_0x3c046d('0xca5')]),_0x4f4957['user'][_0x3c046d('0x1e87')](_0x524b86[_0x3c046d('0x582')])[_0x3c046d('0x1dc2')][_0x3c046d('0xaa5')](function(_0x5000e3){var _0x41f27d=_0x3c046d;return _0x524b86[_0x41f27d('0x1d2e')]=_0x5000e3,_0x4f4957['rpc'][_0x41f27d('0x1c5f')]()[_0x41f27d('0x1dc2')];})['then'](function(_0x37c276){var _0x89b651=_0x3c046d,_0x41fbbd=_0x37c276[_0x89b651('0x580')],_0x408dfd=_0x51538b()[_0x89b651('0x184a')](_0x41fbbd,'id');for(var _0x1bcbab=0x0;_0x1bcbab<_0x524b86['myQueues'][_0x89b651('0xd15')];_0x1bcbab++){var _0x422284=_0x524b86['myQueues'][_0x89b651('0x580')][_0x1bcbab];_0x524b86[_0x89b651('0x9b4')][_0x422284['id']]=_0x408dfd[_0x422284['id']];}return _0x4f4957[_0x89b651('0xb5d')][_0x89b651('0x8ba')]()[_0x89b651('0x1dc2')];})[_0x3c046d('0xaa5')](function(_0x23c730){var _0x27e61c=_0x3c046d;_0x524b86[_0x27e61c('0x2705')]=_0x23c730?_0x51538b()[_0x27e61c('0x184a')](_0x23c730[_0x27e61c('0x580')]?_0x51538b()['filter'](_0x23c730[_0x27e61c('0x580')],function(_0x4c43bc){var _0xedf8ab=_0x27e61c;if(_0x4c43bc['type']===_0xedf8ab('0x4b8')&&!_0x4c43bc['queuecallerleaveAt']&&_0x51538b()[_0xedf8ab('0xe9e')](_0x524b86[_0xedf8ab('0x1d2e')][_0xedf8ab('0x580')],{'name':_0x4c43bc[_0xedf8ab('0xe26')]}))return!![];return![];}):[],_0x27e61c('0x1a6')):{};})[_0x3c046d('0x253d')](function(_0x24edba){console['error'](_0x24edba);})[_0x3c046d('0x1889')](function(){var _0x2b807a=_0x3c046d;_0x51538b()[_0x2b807a('0x283c')](_0x524b86[_0x2b807a('0x2705')],_0x524b86[_0x2b807a('0x5a3')]);for(var _0xb57831=0x0;_0xb57831<_0x524b86[_0x2b807a('0x2623')][_0x2b807a('0x2587')];_0xb57831+=0x1){delete _0x524b86[_0x2b807a('0x2705')][_0x524b86['deleteVoiceQueuesChannels'][_0xb57831]];}_0x524b86[_0x2b807a('0x259c')]=![],_0x524b86[_0x2b807a('0x5a3')]={},_0x524b86[_0x2b807a('0x2623')]=[],_0x524b86['getVoiceQueues']();});function _0x2be4d6(_0x4d13d1){var _0x4206b8=_0x3c046d;_0x524b86[_0x4206b8('0x20fe')]=_0x4d13d1[_0x4206b8('0xd15')]?_0x4d13d1[_0x4206b8('0xd15')]:0x0,_0x524b86[_0x4206b8('0xac0')]=_0x4d13d1?_0x51538b()[_0x4206b8('0x184a')](_0x4d13d1['rows']?_0x4d13d1[_0x4206b8('0x580')]:[],'id'):{},_0x3e8ced();}function _0x4b8157(){var _0x2ca03c=_0x3c046d;_0x524b86[_0x2ca03c('0x582')][_0x2ca03c('0x8b1')]=(_0x524b86['query'][_0x2ca03c('0x41')]-0x1)*_0x524b86[_0x2ca03c('0x582')][_0x2ca03c('0xf4d')],_0x524b86[_0x2ca03c('0x159a')]=_0x4f4957[_0x2ca03c('0x272b')][_0x2ca03c('0x1e87')](_0x524b86[_0x2ca03c('0x582')],_0x2be4d6)[_0x2ca03c('0x1dc2')];}var _0x55c332=!![],_0x32ba86=0x1;_0x1601c0[_0x3c046d('0x1ccf')]('vm_dc.query.filter',function(_0x445463,_0x1b2c9a){var _0x4ecad3=_0x3c046d;_0x55c332?_0xaadc4c(function(){_0x55c332=![];}):(!_0x1b2c9a&&(_0x32ba86=_0x524b86[_0x4ecad3('0x582')][_0x4ecad3('0x41')]),_0x445463!==_0x1b2c9a&&(_0x524b86['query'][_0x4ecad3('0x41')]=0x1),!_0x445463&&(_0x524b86['query']['page']=_0x32ba86),_0x524b86[_0x4ecad3('0x1c5f')]());});function _0x31e423(_0x5d200e){var _0x2dad7e=_0x3c046d;return _0x51538b()[_0x2dad7e('0x9f9')](_0x5d200e);}function _0x3e8ced(){var _0x42a453=_0x3c046d;_0x51538b()[_0x42a453('0x143e')](_0x524b86[_0x42a453('0xac0')],function(_0x4317dc,_0x2c0a85){var _0xecb757=_0x42a453;_0x524b86[_0xecb757('0x9b4')][_0x2c0a85]&&(_0x524b86['voiceQueues'][_0x2c0a85]['waiting']=_0x524b86[_0xecb757('0x9b4')][_0x2c0a85]['waiting']||0x0);});}function _0x20f491(_0x3195ed){var _0x2883d9=_0x3c046d;_0x524b86[_0x2883d9('0xac0')][_0x3195ed['id']]&&(_0x524b86['rpcVoiceQueues'][_0x3195ed['id']]&&(_0x524b86['rpcVoiceQueues'][_0x3195ed['id']]=_0x3195ed,_0x51538b()['merge'](_0x524b86[_0x2883d9('0xac0')][_0x3195ed['id']],_0x51538b()[_0x2883d9('0x104e')](_0x3195ed,_0x55dad4))));}function _0x26b580(_0xf3b496){var _0x358789=_0x3c046d;_0xf3b496[_0x358789('0x6c8')]==='inbound'&&(_0xf3b496['queuecallerleaveAt']?(delete _0x524b86[_0x358789('0x2705')][_0xf3b496[_0x358789('0x1a6')]],_0x524b86[_0x358789('0x259c')]&&_0x524b86[_0x358789('0x2623')][_0x358789('0x1599')](_0xf3b496[_0x358789('0x1a6')])):(_0x524b86[_0x358789('0x2705')][_0xf3b496[_0x358789('0x1a6')]]=_0xf3b496,_0x524b86[_0x358789('0x259c')]&&(_0x524b86[_0x358789('0x5a3')][_0xf3b496['uniqueid']]=_0xf3b496)));}function _0x11cbab(_0x59ca06){var _0x25c286=_0x3c046d;!_0x51538b()['isNil'](_0x59ca06)&&(_0x524b86[_0x25c286('0x9b4')][_0x59ca06['id']]=_0x51538b()[_0x25c286('0x104e')](_0x59ca06,_0x55dad4));}function _0x46db40(_0x269ffb){var _0x308f76=_0x3c046d;!_0x51538b()[_0x308f76('0x89a')](_0x269ffb)&&(_0x524b86[_0x308f76('0x9b4')][_0x269ffb['id']]&&_0x51538b()[_0x308f76('0x283c')](_0x524b86[_0x308f76('0x9b4')][_0x269ffb['id']],_0x51538b()[_0x308f76('0x104e')](_0x269ffb,_0x55dad4)),_0x524b86[_0x308f76('0xac0')][_0x269ffb['id']]&&_0x51538b()['merge'](_0x524b86['voiceQueues'][_0x269ffb['id']],_0x51538b()[_0x308f76('0x104e')](_0x269ffb,_0x55dad4)));}function _0x482061(_0x8801ed){var _0x15fed9=_0x3c046d;!_0x51538b()[_0x15fed9('0x89a')](_0x8801ed)&&(delete _0x524b86['rpcVoiceQueues'][_0x8801ed['id']],delete _0x524b86[_0x15fed9('0xac0')][_0x8801ed['id']]);}function _0x191052(_0x52db44){var _0x40479f=_0x3c046d;_0x51538b()[_0x40479f('0x23fe')](_0x52db44[_0x40479f('0x1037')])===_0x3bd610['getCurrentUser']()['id']&&_0x524b86[_0x40479f('0x1c5f')]();}_0x1601c0['$on'](_0x3c046d('0x12d0'),function(){var _0x384bc6=_0x3c046d;_0x384234[_0x384bc6('0x2629')](_0x384bc6('0x46')),_0x384234[_0x384bc6('0x2629')](_0x384bc6('0xbf1')),_0x384234[_0x384bc6('0x2629')](_0x384bc6('0x77e')),_0x384234[_0x384bc6('0x2629')](_0x384bc6('0x10ac')),_0x384234[_0x384bc6('0x2629')](_0x384bc6('0x215f')),_0x384234['removeAllListeners'](_0x384bc6('0x21e4')),_0x384234[_0x384bc6('0x2629')](_0x384bc6('0x125e'));});}const _0xc89a8b=_0x419be3;_0x207f49[_0x1a8446('0x1e33')]=['$scope','$timeout',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),'$translate',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'socket'];function _0x207f49(_0x58c035,_0x4d32d8,_0x67a254,_0x455dab,_0x4d7662,_0x338af7,_0xd53c48,_0x593115,_0xa4c19a){var _0x46fc56=_0x1a8446,_0x199e6d=this,_0x5ed945=['id',_0x46fc56('0x25d6'),'mapAgentsId',_0x46fc56('0xd3d')],_0x56f4a7=!![];_0x199e6d[_0x46fc56('0xfd6')]={},_0x199e6d[_0x46fc56('0x1db9')]=0x0,_0x199e6d['rpcWhatsappQueues']={},_0x199e6d['paginatedInteractions']=[],_0x199e6d['deleteWhatsappQueuesWaitingInteractions']=[],_0x199e6d[_0x46fc56('0x1526')]={},_0x199e6d[_0x46fc56('0x582')]={'id':_0x593115['getCurrentUser']()['id'],'channel':_0x46fc56('0x220d'),'fields':_0x46fc56('0x235a'),'limit':0xa,'page':0x1},_0x199e6d[_0x46fc56('0x1b74')]={'limit':0xa,'page':0x1},_0x199e6d[_0x46fc56('0xe10')]=_0x1a50b6,_0x199e6d[_0x46fc56('0x933')]=_0x3dcf93,_0x199e6d[_0x46fc56('0xa36')]=_0x1b4d82,_0x199e6d['getColorByChannel']=_0x67a8fc,_0x199e6d[_0x46fc56('0x1c60')]=_0x56de4c,_0x199e6d[_0x46fc56('0xd16')]=_0x1d1846,_0x199e6d[_0x46fc56('0xe3')]=_0x3f9e20,_0x199e6d[_0x46fc56('0x12bf')]=_0x3fb59a,_0x199e6d['onRemoveWhatsappQueue']=_0x36cc7b,_0x199e6d['onSaveUserWhatsappQueue']=_0x44eb1f,_0x199e6d['onRemoveUserWhatsappQueue']=_0x3d45e5,_0x199e6d[_0x46fc56('0x98b')]=_0x5e20b9,_0x199e6d[_0x46fc56('0x1c25')]=_0x45be97,_0xa4c19a[_0x46fc56('0xa84')](_0x46fc56('0x688'),_0x199e6d['onSaveQueue']),_0xa4c19a['onWithoutApply'](_0x46fc56('0x147b'),_0x199e6d[_0x46fc56('0xe3')]),_0xa4c19a['onWithoutApply'](_0x46fc56('0x2730'),_0x199e6d[_0x46fc56('0x12bf')]),_0xa4c19a['onWithoutApply']('whatsappQueue:remove',_0x199e6d['onRemoveWhatsappQueue']),_0xa4c19a[_0x46fc56('0xa84')](_0x46fc56('0x1c49'),_0x199e6d['onSaveUserWhatsappQueue']),_0xa4c19a[_0x46fc56('0xa84')](_0x46fc56('0x10a0'),_0x199e6d[_0x46fc56('0x14bd')]),_0xa4c19a[_0x46fc56('0xa84')](_0x46fc56('0xa02'),_0x199e6d[_0x46fc56('0x98b')]),_0xa4c19a[_0x46fc56('0xa84')](_0x46fc56('0xb3b'),_0x199e6d['onRemoveWhatsappQueueChannel']),_0xd53c48[_0x46fc56('0xb5d')]['getWhatsappQueues']()[_0x46fc56('0x1dc2')]['then'](function(_0x25576f){var _0x5f54ea=_0x46fc56;_0x199e6d[_0x5f54ea('0x1cec')]=_0x25576f?_0x51538b()[_0x5f54ea('0x184a')](_0x25576f[_0x5f54ea('0x580')]?_0x25576f[_0x5f54ea('0x580')]:[],'id'):{};})['then'](function(){var _0xe813ba=_0x46fc56;return _0xd53c48[_0xe813ba('0x272b')]['getQueues']({'id':_0x593115[_0xe813ba('0xacc')]()['id'],'channel':_0xe813ba('0x220d')})['$promise'];})[_0x46fc56('0xaa5')](function(_0x4d85bf){var _0x21733c=_0x46fc56;return _0x199e6d['myQueues']=_0x4d85bf[_0x21733c('0x580')],_0xd53c48['rpc'][_0x21733c('0x1f6')]()[_0x21733c('0x1dc2')];})[_0x46fc56('0xaa5')](function(_0x3a8207){var _0xef6d1e=_0x46fc56,_0x116a7c=_0x51538b()['filter'](_0x3a8207[_0xef6d1e('0x580')],function(_0x1ee8f2){var _0x332e51=_0xef6d1e;return _0x51538b()[_0x332e51('0x13d6')](_0x199e6d[_0x332e51('0x1d2e')],{'id':_0x1ee8f2[_0x332e51('0x2697')]});});_0x3a8207[_0xef6d1e('0x580')]=_0x116a7c,_0x3a8207['count']=_0x116a7c['length'],_0x51538b()['merge'](_0x199e6d[_0xef6d1e('0x1526')],_0x3a8207?_0x51538b()[_0xef6d1e('0x184a')](_0x3a8207[_0xef6d1e('0x580')]?_0x3a8207[_0xef6d1e('0x580')]:[],'id'):{});})[_0x46fc56('0x253d')](function(_0x2863a0){console['error'](_0x2863a0);})[_0x46fc56('0x1889')](function(){var _0x5abe0d=_0x46fc56;for(var _0x50d2db=0x0;_0x50d2db<_0x199e6d[_0x5abe0d('0x9b7')]['length'];_0x50d2db+=0x1){delete _0x199e6d['rpcWhatsappQueuesWaitingInteractions'][_0x199e6d[_0x5abe0d('0x9b7')][_0x50d2db]];}_0x56f4a7=![],_0x199e6d['deleteWhatsappQueuesWaitingInteractions']=[],_0x3dcf93(),_0x56de4c();});function _0x56de4c(){var _0x24473a=_0x46fc56,_0x56d15f=(_0x199e6d[_0x24473a('0x1b74')][_0x24473a('0x41')]-0x1)*_0x199e6d[_0x24473a('0x1b74')][_0x24473a('0xf4d')];_0x199e6d[_0x24473a('0x12fb')]=_0x51538b()['orderBy'](_0x199e6d[_0x24473a('0x1526')],['joinAt'],[_0x24473a('0x71c')]),_0x199e6d['interactions']=_0x51538b()[_0x24473a('0x485')](_0x199e6d['paginatedInteractions'],_0x56d15f)[_0x24473a('0x19aa')](0x0,_0x199e6d[_0x24473a('0x1b74')]['limit']);}function _0x1a50b6(_0x331e2a){var _0x26b82f=_0x46fc56;_0x199e6d[_0x26b82f('0x1db9')]=_0x331e2a['count']?_0x331e2a['count']:0x0,_0x199e6d[_0x26b82f('0xfd6')]=_0x331e2a?_0x51538b()['keyBy'](_0x331e2a[_0x26b82f('0x580')]?_0x331e2a[_0x26b82f('0x580')]:[],'id'):{},_0x247dc7();}function _0x3dcf93(){var _0x2e5d0f=_0x46fc56;_0x199e6d['query']['offset']=(_0x199e6d[_0x2e5d0f('0x582')][_0x2e5d0f('0x41')]-0x1)*_0x199e6d[_0x2e5d0f('0x582')][_0x2e5d0f('0xf4d')],_0x199e6d[_0x2e5d0f('0x159a')]=_0xd53c48[_0x2e5d0f('0x272b')][_0x2e5d0f('0x1e87')](_0x199e6d[_0x2e5d0f('0x582')],_0x1a50b6)[_0x2e5d0f('0x1dc2')];}var _0x26f856=!![],_0x459e1d=0x1;_0x58c035[_0x46fc56('0x1ccf')](_0x46fc56('0x74c'),function(_0xd5763b,_0x46ab2a){var _0x5759cd=_0x46fc56;_0x26f856?_0x4d32d8(function(){_0x26f856=![];}):(!_0x46ab2a&&(_0x459e1d=_0x199e6d['query'][_0x5759cd('0x41')]),_0xd5763b!==_0x46ab2a&&(_0x199e6d[_0x5759cd('0x582')]['page']=0x1),!_0xd5763b&&(_0x199e6d[_0x5759cd('0x582')][_0x5759cd('0x41')]=_0x459e1d),_0x199e6d[_0x5759cd('0x933')]());});function _0x1b4d82(_0x4c77fa){var _0x10b27f=_0x46fc56;return _0x51538b()[_0x10b27f('0x9f9')](_0x4c77fa);}function _0x247dc7(){var _0x5edb6f=_0x46fc56;_0x51538b()[_0x5edb6f('0x143e')](_0x199e6d[_0x5edb6f('0xfd6')],function(_0x10f3b8,_0x46f66b){var _0x3d4e09=_0x5edb6f;_0x199e6d[_0x3d4e09('0x1cec')][_0x46f66b]&&(_0x199e6d[_0x3d4e09('0xfd6')][_0x46f66b]['waiting']=_0x199e6d[_0x3d4e09('0x1cec')][_0x46f66b][_0x3d4e09('0xd3d')]||0x0);});}function _0x1d1846(_0x2d5098){var _0xf328d1=_0x46fc56;_0x199e6d[_0xf328d1('0xfd6')][_0x2d5098['id']]&&(_0x199e6d['rpcWhatsappQueues'][_0x2d5098['id']]&&(_0x51538b()[_0xf328d1('0x283c')](_0x199e6d['rpcWhatsappQueues'][_0x2d5098['id']],_0x51538b()[_0xf328d1('0x104e')](_0x2d5098,_0x5ed945)),_0x51538b()[_0xf328d1('0x283c')](_0x199e6d[_0xf328d1('0xfd6')][_0x2d5098['id']],_0x51538b()[_0xf328d1('0x104e')](_0x2d5098,_0x5ed945))));}function _0x3f9e20(_0x5452c8){var _0x1be7ef=_0x46fc56;!_0x51538b()[_0x1be7ef('0x89a')](_0x5452c8)&&(_0x199e6d[_0x1be7ef('0x1cec')][_0x5452c8['id']]=_0x51538b()[_0x1be7ef('0x104e')](_0x5452c8,_0x5ed945));}function _0x3fb59a(_0x315e05){var _0x4e9597=_0x46fc56;!_0x51538b()[_0x4e9597('0x89a')](_0x315e05)&&(_0x199e6d['rpcWhatsappQueues'][_0x315e05['id']]&&_0x51538b()[_0x4e9597('0x283c')](_0x199e6d[_0x4e9597('0x1cec')][_0x315e05['id']],_0x51538b()[_0x4e9597('0x104e')](_0x315e05,_0x5ed945)),_0x199e6d[_0x4e9597('0xfd6')][_0x315e05['id']]&&_0x51538b()['merge'](_0x199e6d[_0x4e9597('0xfd6')][_0x315e05['id']],_0x51538b()[_0x4e9597('0x104e')](_0x315e05,_0x5ed945)));}function _0x36cc7b(_0x2267ca){var _0x49d845=_0x46fc56;!_0x51538b()[_0x49d845('0x89a')](_0x2267ca)&&(delete _0x199e6d['rpcWhatsappQueues'][_0x2267ca['id']],delete _0x199e6d[_0x49d845('0xfd6')][_0x2267ca['id']]);}function _0x44eb1f(_0x2d846c){var _0x2bfb60=_0x46fc56;_0x51538b()[_0x2bfb60('0x23fe')](_0x2d846c[_0x2bfb60('0x1037')])===_0x593115[_0x2bfb60('0xacc')]()['id']&&_0x199e6d[_0x2bfb60('0x933')]();}function _0x3d45e5(_0x4ed44e){var _0x3fd7c7=_0x46fc56;_0x51538b()[_0x3fd7c7('0x23fe')](_0x4ed44e['UserId'])===_0x593115[_0x3fd7c7('0xacc')]()['id']&&_0x199e6d[_0x3fd7c7('0x933')]();}function _0x5e20b9(_0x4bdc33){var _0x3d8c0b=_0x46fc56;_0x199e6d[_0x3d8c0b('0xfd6')][_0x4bdc33['queue_id']]&&(_0x199e6d[_0x3d8c0b('0x1526')][_0x4bdc33['id']]=_0x4bdc33,_0x56de4c());}function _0x45be97(_0x50441f){var _0x20f8c9=_0x46fc56;delete _0x199e6d[_0x20f8c9('0x1526')][_0x50441f['id']],_0x56f4a7&&_0x199e6d['deleteWhatsappQueuesWaitingInteractions'][_0x20f8c9('0x1599')](_0x50441f['id']),_0x56de4c();}function _0x67a8fc(_0x81304f){var _0x3b2f80=_0x46fc56;switch(_0x81304f){case _0x3b2f80('0x20f9'):return _0x3b2f80('0x1003');case'mail':return'teal-bg';case'sms':return _0x3b2f80('0x2487');case _0x3b2f80('0x220d'):return _0x3b2f80('0x1150');case'openchannel':return'amber-A200-bg';case _0x3b2f80('0x16c4'):return _0x3b2f80('0x529');default:return'white-bg';}}_0x58c035['$on'](_0x46fc56('0x12d0'),function(){var _0x39bb2f=_0x46fc56;_0xa4c19a[_0x39bb2f('0x2629')](_0x39bb2f('0x688')),_0xa4c19a[_0x39bb2f('0x2629')]('whatsappQueue:save'),_0xa4c19a[_0x39bb2f('0x2629')](_0x39bb2f('0x2730')),_0xa4c19a[_0x39bb2f('0x2629')](_0x39bb2f('0x20a5')),_0xa4c19a['removeAllListeners']('userWhatsappQueue:save'),_0xa4c19a[_0x39bb2f('0x2629')]('userWhatsappQueue:remove'),_0xa4c19a[_0x39bb2f('0x2629')](_0x39bb2f('0xa02')),_0xa4c19a[_0x39bb2f('0x2629')](_0x39bb2f('0xb3b'));});}const _0xe00b3b=_0x207f49;_0x5413b0['$inject']=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0xa66')];function _0x5413b0(_0x3f78ea,_0x172b26,_0x592a5f,_0x5bbbbf,_0x1abb95,_0x328068,_0x5e2cc5,_0x8c0db6,_0xf33fcf,_0x1f0699,_0x3cdd97){var _0x32e9ae=_0x1a8446,_0x4c3e5a=this;_0x4c3e5a[_0x32e9ae('0x272b')]=_0x8c0db6[_0x32e9ae('0xacc')](),_0x4c3e5a['license']={},_0x4c3e5a['setting']={},_0x4c3e5a[_0x32e9ae('0x523')]={'count':0x0,'rows':[]},_0x4c3e5a['faxInteractions']={'count':0x0,'rows':[]},_0x4c3e5a[_0x32e9ae('0x582')]={'includeAll':!![],'sort':_0x32e9ae('0xd82'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x4c3e5a[_0x32e9ae('0xd67')]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x32e9ae('0x1dc'),'column':_0x32e9ae('0x1dc'),'type':_0x32e9ae('0x7e6'),'options':{'searchFields':[_0x32e9ae('0x24c1'),_0x32e9ae('0x351'),_0x32e9ae('0x1f69')],'route':{'model':_0x32e9ae('0xdbd'),'action':_0x32e9ae('0x2122'),'params':{'fields':_0x32e9ae('0x14ba'),'Contact':_0x32e9ae('0x1bfb'),'nolimit':!![]}},'extraOperators':[_0x32e9ae('0x2082')],'excludedOperators':[_0x32e9ae('0x13f7')]}},{'name':_0x32e9ae('0x1e4'),'column':_0x32e9ae('0x54c'),'type':'text','options':{'excludedOperators':[_0x32e9ae('0x221d'),_0x32e9ae('0x13f7')]}},{'name':_0x32e9ae('0x26ae'),'column':_0x32e9ae('0x1cbd'),'type':_0x32e9ae('0xbff'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x32e9ae('0x73b')}],'options':{'excludedOperators':[_0x32e9ae('0x13f7')]}},{'name':'Agent','column':_0x32e9ae('0x21b9'),'type':_0x32e9ae('0x7e6'),'options':{'table':'i','route':{'model':_0x32e9ae('0x272b'),'action':'get','params':{'role':'agent','fields':_0x32e9ae('0x25ff'),'nolimit':!![]}},'searchFields':[_0x32e9ae('0x18e5'),'name'],'extraOperators':[_0x32e9ae('0x2082')],'excludedOperators':[_0x32e9ae('0x13f7')]}},{'name':_0x32e9ae('0x75a'),'column':'FaxAccountId','type':_0x32e9ae('0x2468'),'options':{'route':{'model':_0x32e9ae('0x272b'),'action':'getFaxAccounts','params':{'id':_0x4c3e5a['user']['id'],'nolimit':!![]}}}},{'name':_0x32e9ae('0x67f'),'column':_0x32e9ae('0x4e7'),'type':_0x32e9ae('0x2468'),'options':{'route':{'model':_0x32e9ae('0x38f'),'action':_0x32e9ae('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x32e9ae('0x12f1'),'column':_0x32e9ae('0x24a1'),'type':_0x32e9ae('0xb87'),'options':{'excludedOperators':[_0x32e9ae('0x13f7')]}},{'name':_0x32e9ae('0x120b'),'column':'unreadMessages','type':_0x32e9ae('0xbff'),'values':[{'id':0x1,'translate':_0x32e9ae('0xdc4')},{'id':0x0,'translate':_0x32e9ae('0x320')}],'options':{'excludedOperators':[_0x32e9ae('0x13f7')]}}]},_0x4c3e5a[_0x32e9ae('0xe68')]=_0x32e9ae('0x6c6'),_0x4c3e5a['onInit']=_0x4c638b,_0x4c3e5a[_0x32e9ae('0xe10')]=_0x5ec8d2,_0x4c3e5a[_0x32e9ae('0x262d')]=_0x1f7fcd,_0x4c3e5a[_0x32e9ae('0x2801')]=_0x177e78,_0x4c3e5a['downloadFaxInteraction']=_0x3a1c4a,_0x4c3e5a[_0x32e9ae('0xa8c')]=_0x1be2f6,_0x4c3e5a['getContactLabel']=_0x359459,_0x4c3e5a[_0x32e9ae('0x149e')]=_0x4495f2,_0x4c3e5a[_0x32e9ae('0x3c9')]=_0x4c7a9e,_0x4c3e5a[_0x32e9ae('0x1d5')]=_0x398a7e,_0x4c3e5a[_0x32e9ae('0x2396')]=_0x52c780,_0x4c3e5a[_0x32e9ae('0x1104')]=_0x1b9be6,_0x4c3e5a['openAdvancedSearch']=_0x20e831;function _0x4c638b(_0x1afc04,_0x14d062){var _0x420341=_0x32e9ae;return _0x4c3e5a[_0x420341('0x1202')]=_0x1afc04,_0x4c3e5a[_0x420341('0x143f')]=_0x14d062,_0x5e2cc5[_0x420341('0x272b')][_0x420341('0x2122')+_0x51538b()['upperFirst'](_0x420341('0xf2c'))]({'id':_0x4c3e5a[_0x420341('0x272b')]['id'],'nolimit':!![]})[_0x420341('0x1dc2')]['then'](function(_0x4b343a){var _0x5d1b0b=_0x420341;return _0x4c3e5a[_0x5d1b0b('0xf2c')]=_0x4b343a||{'count':0x0,'rows':[]},_0x5e2cc5['tag'][_0x5d1b0b('0x2122')]()[_0x5d1b0b('0x1dc2')];})[_0x420341('0xaa5')](function(_0x558833){var _0x236a5f=_0x420341;_0x4c3e5a[_0x236a5f('0x523')]=_0x558833||{'count':0x0,'rows':[]};})[_0x420341('0xaa5')](function(){var _0x2634ff=_0x420341;_0x4c3e5a[_0x2634ff('0x168c')]=_0x43aa47();})['catch'](function(_0x1e3da1){console['error'](_0x1e3da1);})[_0x420341('0x1889')](function(){var _0x25e9cd=_0x420341,_0x311dee=_0x1abb95[_0x25e9cd('0x38e')][_0x25e9cd('0x173f')](_0x25e9cd('0xf64')+_0x4c3e5a['user']['id']);if(_0x311dee)try{_0x311dee=JSON[_0x25e9cd('0x9b6')](_0x311dee);if(_0x311dee[_0x25e9cd('0x582')]){_0x4c3e5a[_0x25e9cd('0x582')]=_0x51538b()['merge'](_0x4c3e5a[_0x25e9cd('0x582')],_0x311dee[_0x25e9cd('0x582')]);if(_0x51538b()[_0x25e9cd('0x116b')](_0x4c3e5a[_0x25e9cd('0xf2c')][_0x25e9cd('0x580')]))_0x4c3e5a['query'][_0x25e9cd('0x16a8')]=[];else _0x51538b()[_0x25e9cd('0x116b')](_0x4c3e5a[_0x25e9cd('0x582')][_0x25e9cd('0x16a8')])&&(_0x4c3e5a[_0x25e9cd('0x582')][_0x25e9cd('0x16a8')]=_0x51538b()(_0x4c3e5a[_0x25e9cd('0xf2c')][_0x25e9cd('0x580')])['map']('id')['take']()[_0x25e9cd('0x12f4')]());_0x4c3e5a[_0x25e9cd('0x582')][_0x25e9cd('0x1015')]&&_0x4c3e5a['query'][_0x25e9cd('0x1015')][_0x25e9cd('0x1f38')](_0x25e9cd('0x6a5'))>=0x0&&(_0x4c3e5a[_0x25e9cd('0x582')]=_0x51538b()['omit'](_0x4c3e5a[_0x25e9cd('0x582')],'sort')),_0x4c3e5a[_0x25e9cd('0x582')]['includeAll']=!![],_0x4c3e5a[_0x25e9cd('0x1d47')]=_0x4c3e5a[_0x25e9cd('0x582')]['filter']?!![]:![];}}catch(_0x39b9d0){console['error'](_0x39b9d0);}else{var _0x557998={'$gte':_0x420d43()()['startOf'](_0x25e9cd('0xae9'))[_0x25e9cd('0x15db')](0x0,!![])[_0x25e9cd('0x1f27')](),'$lte':_0x420d43()()[_0x25e9cd('0x173a')](_0x25e9cd('0xae9'))[_0x25e9cd('0x15db')](0x0,!![])[_0x25e9cd('0x1f27')]()},_0x4351a9={'FaxAccountId':_0x51538b()['map'](_0x4c3e5a['faxAccounts'][_0x25e9cd('0x580')],'id'),'createdAt':_0x557998};_0x4c3e5a[_0x25e9cd('0x582')]=_0x51538b()[_0x25e9cd('0x283c')](_0x4c3e5a[_0x25e9cd('0x582')],_0x4351a9);}_0xf33fcf['on'](_0x25e9cd('0xe66'),_0x23248b),_0xf33fcf['on'](_0x25e9cd('0x23fb'),_0x23248b),_0xf33fcf['on'](_0x25e9cd('0x93e'),_0x144e57),_0xf33fcf['on'](_0x25e9cd('0x1cc9'),_0xd2a77f),_0xf33fcf['on'](_0x25e9cd('0x13ee'),_0xd2a77f),_0xf33fcf['on'](_0x25e9cd('0x1b61'),_0x5c822f),_0xf33fcf['on']('user_has_fax_interactions:remove',_0x12458e),_0x1f7fcd(_0x4c3e5a[_0x25e9cd('0x582')]['page']);});}function _0x43aa47(){var _0x400abf=_0x32e9ae;return[{'name':_0x400abf('0x12f1'),'key':_0x400abf('0x24a1'),'type':'date','label':_0x400abf('0xf3d')},{'name':_0x400abf('0x1cd2'),'key':_0x400abf('0x7b7'),'type':'select','label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x400abf('0x320')},{'value':0x1,'translate':_0x400abf('0xdc4')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x400abf('0x26ae'),'key':_0x400abf('0x1cbd'),'type':_0x400abf('0xbff'),'label':_0x400abf('0x617'),'customOptions':[{'value':0x0,'translate':_0x400abf('0x166e')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Account','key':_0x400abf('0x16a8'),'type':_0x400abf('0x2468'),'label':_0x400abf('0x136e'),'options':_0x4c3e5a['faxAccounts'][_0x400abf('0x580')],'clearAll':![]},{'name':_0x400abf('0x521'),'key':_0x400abf('0x1037'),'type':_0x400abf('0xbff'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x4c3e5a[_0x400abf('0x272b')]['id'],'translate':_0x400abf('0x1855')},{'value':_0x400abf('0x1ed9'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x400abf('0x20c4')}]},{'name':_0x400abf('0x4e7'),'key':_0x400abf('0x38f'),'type':'multiselect','label':'DASHBOARDS.SELECT_TAG','options':_0x4c3e5a[_0x400abf('0x523')][_0x400abf('0x580')],'placeholder':_0x400abf('0x1161')}];}function _0x5ec8d2(_0x33ebed){var _0x283f29=_0x32e9ae;_0x4c3e5a[_0x283f29('0x1206')]=![],_0x4c3e5a[_0x283f29('0xff8')]=_0x33ebed||{'count':0x0,'rows':[]};for(var _0x3ebb67=0x0;_0x3ebb67<_0x4c3e5a[_0x283f29('0xff8')][_0x283f29('0x580')][_0x283f29('0x2587')];_0x3ebb67+=0x1){_0x359459(_0x4c3e5a[_0x283f29('0xff8')][_0x283f29('0x580')][_0x3ebb67]);}}function _0x1f7fcd(_0x1ed251){var _0x1e7538=_0x32e9ae;_0x4c3e5a[_0x1e7538('0x1206')]=!![];!_0x1ed251&&(_0x4c3e5a[_0x1e7538('0x582')][_0x1e7538('0x41')]=0x1);_0x4c3e5a[_0x1e7538('0x582')]['offset']=(_0x4c3e5a[_0x1e7538('0x582')][_0x1e7538('0x41')]-0x1)*_0x4c3e5a[_0x1e7538('0x582')][_0x1e7538('0xf4d')];var _0x286ea0=_0x1abb95['localStorage'][_0x1e7538('0x173f')](_0x1e7538('0xf64')+_0x4c3e5a[_0x1e7538('0x272b')]['id']);_0x286ea0=_0x286ea0?JSON[_0x1e7538('0x9b6')](_0x286ea0):{},_0x286ea0[_0x1e7538('0x582')]=_0x4c3e5a[_0x1e7538('0x582')],_0x1abb95[_0x1e7538('0x38e')][_0x1e7538('0xdbf')](_0x1e7538('0xf64')+_0x4c3e5a[_0x1e7538('0x272b')]['id'],JSON['stringify'](_0x286ea0)),_0x4c3e5a[_0x1e7538('0x159a')]=_0x5e2cc5[_0x1e7538('0x927')][_0x1e7538('0x2122')](_0x4c3e5a[_0x1e7538('0x582')],_0x5ec8d2)[_0x1e7538('0x1dc2')];}function _0x177e78(_0x5bd011,_0x39ca13){var _0x3aa578=_0x32e9ae;_0x3f78ea[_0x3aa578('0x24a3')]['vm'][_0x3aa578('0x15e0')](_0x3aa578('0x16c4'),_0x39ca13);}function _0x3a1c4a(_0x3d0c31,_0x49d66e,_0x2bede3){var _0x559589=_0x32e9ae;_0x5e2cc5[_0x559589('0x927')][_0x559589('0x1cf9')]({'id':_0x49d66e['id'],'attachments':_0x2bede3})[_0x559589('0x1dc2')]['then'](function(_0x5b584e){var _0xab96bd=_0x559589,_0xc4e27b=[_0x5b584e[_0xab96bd('0x1bf1')]],_0x9f503b=_0xab96bd('0x1250')+_0x49d66e['id']+_0xab96bd('0x966'),_0x3956af=new Blob(_0xc4e27b,{'type':_0x5b584e[_0xab96bd('0x6c8')]}),_0x2366aa=window['document'][_0xab96bd('0x531')]('a');_0x2366aa[_0xab96bd('0x107b')](_0xab96bd('0x18ae'),URL[_0xab96bd('0x1e56')](_0x3956af)),_0x2366aa[_0xab96bd('0x107b')](_0xab96bd('0x1cf9'),_0x9f503b),document['body'][_0xab96bd('0x1315')](_0x2366aa),_0x2366aa[_0xab96bd('0x467')]();})[_0x559589('0x253d')](function(_0x23901a){var _0xd9fe49=_0x559589;if(_0x23901a[_0xd9fe49('0x10fd')]&&_0x23901a['data'][_0xd9fe49('0x4c6')]&&_0x23901a[_0xd9fe49('0x10fd')]['errors'][_0xd9fe49('0x2587')])for(var _0x13ea2b=0x0;_0x13ea2b<_0x23901a[_0xd9fe49('0x10fd')][_0xd9fe49('0x4c6')][_0xd9fe49('0x2587')];_0x13ea2b+=0x1){_0x1f0699[_0xd9fe49('0x187f')]({'title':_0x23901a[_0xd9fe49('0x10fd')][_0xd9fe49('0x4c6')][_0x13ea2b][_0xd9fe49('0x6c8')],'msg':_0x23901a[_0xd9fe49('0x10fd')][_0xd9fe49('0x4c6')][_0x13ea2b][_0xd9fe49('0x1402')]});}else _0x1f0699[_0xd9fe49('0x187f')]({'title':_0x23901a[_0xd9fe49('0x2fa')]?'API:'+_0x23901a[_0xd9fe49('0x2fa')]+_0xd9fe49('0x169e')+_0x23901a[_0xd9fe49('0x24df')]:_0xd9fe49('0x1d67'),'msg':_0x23901a[_0xd9fe49('0x10fd')]?JSON[_0xd9fe49('0xa48')](_0x23901a[_0xd9fe49('0x10fd')][_0xd9fe49('0x1402')]):_0x23901a['toString']()});});}function _0x1be2f6(_0x2f6e80,_0x2afc87){var _0x517489=_0x32e9ae,_0x79359d=_0x4c3e5a[_0x517489('0x272b')][_0x517489('0x2519')]||_0x4c3e5a[_0x517489('0x272b')][_0x517489('0x1f36')]||_0x4c3e5a[_0x517489('0x272b')]['mailPause']||_0x4c3e5a[_0x517489('0x272b')][_0x517489('0xc8f')]||_0x4c3e5a['user'][_0x517489('0x135b')],_0x366752=!_0x2afc87[_0x517489('0x75a')][_0x517489('0x1844')];_0x592a5f['show']({'controller':_0x517489('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular[_0x517489('0x1aa8')](_0x5bbbbf[_0x517489('0x54c')]),'clickOutsideToClose':_0x366752,'escapeToClose':_0x366752,'onRemoving':function _0x3c2329(){var _0x104ea6=_0x517489;_0x4c3e5a[_0x104ea6('0x272b')]&&_0x2afc87['Account'][_0x104ea6('0x1844')]&&!_0x79359d&&_0x5e2cc5['user']['unpause']({'id':_0x4c3e5a[_0x104ea6('0x272b')]['id']})[_0x104ea6('0x1dc2')][_0x104ea6('0x253d')](function(_0x5a0bf5){console['error'](_0x5a0bf5);});},'locals':{'user':_0x4c3e5a['user'],'channel':'fax','interaction':_0x2afc87}});}function _0x359459(_0x438181){var _0x59223e=_0x32e9ae;_0x438181[_0x59223e('0x1dc')]?(_0x438181[_0x59223e('0x4e0')]=(_0x438181[_0x59223e('0x1dc')][_0x59223e('0x24c1')]||'')+'\x20'+(_0x438181[_0x59223e('0x1dc')]['lastName']||''),_0x438181['contactInfo']=_0x438181[_0x59223e('0x1dc')][_0x59223e('0x16c4')]):_0x438181[_0x59223e('0x4e0')]=_0x328068[_0x59223e('0x213f')]('DASHBOARDS.UNKNOWN');}function _0x4495f2(_0x97f6f2){var _0x5dc8c9=_0x32e9ae;if(_0x97f6f2[_0x5dc8c9('0x1037')])return _0x97f6f2['UserId']===_0x4c3e5a[_0x5dc8c9('0x272b')]['id']?_0x328068[_0x5dc8c9('0x213f')](_0x5dc8c9('0x1855')):_0x97f6f2[_0x5dc8c9('0x40')][_0x5dc8c9('0x18e5')]+'\x20<'+_0x97f6f2[_0x5dc8c9('0x40')]['internal']+'>';return _0x328068[_0x5dc8c9('0x213f')]('DASHBOARDS.NOT_ASSIGNED');}function _0x4c7a9e(_0x2c9c4c){var _0x506af0=_0x32e9ae;if(_0x2c9c4c[_0x506af0('0x75a')])return _0x2c9c4c[_0x506af0('0x75a')][_0x506af0('0x24ec')];return _0x328068['instant'](_0x506af0('0x22f7'));}function _0x398a7e(_0x1a3bcb,_0x56f1e5){var _0x11fb44=_0x32e9ae;_0x592a5f['show']({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x4f8825,'parent':angular['element'](_0x5bbbbf[_0x11fb44('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x56f1e5,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})[_0x11fb44('0xaa5')](function(_0x2356b5){var _0x1fc3db=_0x11fb44;if(_0x2356b5){if(_0x2356b5[_0x1fc3db('0x1402')]&&_0x2356b5['message']['savedAsDraft']){var _0x52a148={'channel':_0x1fc3db('0x16c4'),'account':_0x56f1e5,'message':_0x2356b5[_0x1fc3db('0x1402')],'contact':_0x2356b5[_0x1fc3db('0x3c6')]};_0x3cdd97['add'](_0x52a148);}else{var _0x57e7ee=_0x2356b5;return _0x5e2cc5[_0x1fc3db('0x1f6a')][_0x1fc3db('0x1e80')]({'id':_0x56f1e5['id']},_0x57e7ee)[_0x1fc3db('0x1dc2')][_0x1fc3db('0xaa5')](function(_0x552d46){var _0x363298=_0x1fc3db;_0x1f0699[_0x363298('0xe10')]({'title':'Message\x20properly\x20sent!','msg':'Message\x20has\x20been\x20sent!'}),_0x3f78ea[_0x363298('0x24a3')]['vm'][_0x363298('0x15e0')]('fax',_0x552d46);})['catch'](function(_0x9a403c){var _0x1227fc=_0x1fc3db;if(_0x9a403c['data']&&_0x9a403c[_0x1227fc('0x10fd')][_0x1227fc('0x4c6')]&&_0x9a403c[_0x1227fc('0x10fd')][_0x1227fc('0x4c6')]['length'])for(var _0x35a740=0x0;_0x35a740<_0x9a403c['data']['errors'][_0x1227fc('0x2587')];_0x35a740++){_0x1f0699['error']({'title':_0x9a403c[_0x1227fc('0x10fd')]['errors'][_0x35a740][_0x1227fc('0x6c8')],'msg':_0x9a403c[_0x1227fc('0x10fd')][_0x1227fc('0x4c6')][_0x35a740]['message']});}else _0x1f0699[_0x1227fc('0x187f')]({'title':'FAX:SEND','msg':_0x9a403c[_0x1227fc('0x10fd')]?JSON[_0x1227fc('0xa48')](_0x9a403c[_0x1227fc('0x10fd')]):_0x9a403c[_0x1227fc('0x1402')]||_0x9a403c[_0x1227fc('0x684')]()});});}}});}function _0x5c822f(_0x22d50d){var _0x1fa7ee=_0x32e9ae,_0x222bcb,_0x5eb10c=_0x51538b()[_0x1fa7ee('0xe9e')](_0x4c3e5a[_0x1fa7ee('0xff8')][_0x1fa7ee('0x580')],{'id':_0x22d50d[_0x1fa7ee('0x68d')]});_0x5eb10c&&_0x5eb10c[_0x1fa7ee('0x16b4')]&&(_0x222bcb=_0x51538b()[_0x1fa7ee('0xe9e')](_0x5eb10c['Users'],{'id':_0x22d50d[_0x1fa7ee('0x1037')]}),!_0x222bcb&&_0x5eb10c[_0x1fa7ee('0x16b4')][_0x1fa7ee('0x1599')]({'id':_0x22d50d['UserId']}));}function _0x12458e(_0x4b86cf){var _0x2b008e=_0x32e9ae,_0x5747e3=_0x51538b()['find'](_0x4c3e5a[_0x2b008e('0xff8')][_0x2b008e('0x580')],{'id':_0x4b86cf[_0x2b008e('0x68d')]});_0x5747e3&&_0x5747e3['Users']&&_0x51538b()[_0x2b008e('0xf6d')](_0x5747e3[_0x2b008e('0x16b4')],{'id':_0x4b86cf[_0x2b008e('0x1037')]});}function _0x23248b(_0x2dcb82){var _0x1f428a=_0x32e9ae;if(_0x2dcb82){var _0x2b26e3=_0x51538b()[_0x1f428a('0xe9e')](_0x4c3e5a[_0x1f428a('0xff8')][_0x1f428a('0x580')],{'id':_0x2dcb82['id']});if(_0x2b26e3){_0x2b26e3['Users']=[];_0x2dcb82[_0x1f428a('0x1cbd')]&&(_0x2b26e3[_0x1f428a('0x1551')]=0x0);if(_0x4c3e5a[_0x1f428a('0x582')][_0x1f428a('0x1015')]){var _0x469349=_0x51538b()[_0x1f428a('0x6e8')](_0x4c3e5a[_0x1f428a('0x582')][_0x1f428a('0x1015')],'-')?_0x1f428a('0x71c'):'asc';_0x4c3e5a[_0x1f428a('0xff8')][_0x1f428a('0x580')]=_0x51538b()['orderBy'](_0x4c3e5a['faxInteractions'][_0x1f428a('0x580')],_0x51538b()[_0x1f428a('0x134c')](_0x4c3e5a[_0x1f428a('0x582')][_0x1f428a('0x1015')],'-'),_0x469349);}_0x51538b()[_0x1f428a('0x283c')](_0x2b26e3,_0x51538b()[_0x1f428a('0x104e')](_0x2dcb82,_0x51538b()[_0x1f428a('0x9f2')](_0x2b26e3)));}else _0x1f7fcd(_0x4c3e5a[_0x1f428a('0x582')]['page']);}}function _0x144e57(_0x3de3e6){var _0x39cf3e=_0x32e9ae;if(_0x3de3e6){var _0x55371d=_0x51538b()[_0x39cf3e('0xe9e')](_0x4c3e5a['faxInteractions'][_0x39cf3e('0x580')],{'id':_0x3de3e6['id']});_0x55371d&&(_0x55371d[_0x39cf3e('0x67f')]=_0x3de3e6[_0x39cf3e('0x523')]||[],_0x51538b()[_0x39cf3e('0x283c')](_0x55371d,_0x51538b()[_0x39cf3e('0x104e')](_0x3de3e6,_0x51538b()['keys'](_0x55371d))));}}function _0xd2a77f(_0x537a31){var _0x350664=_0x32e9ae;if(_0x537a31&&!_0x537a31['secret']){var _0x6a5b07=_0x51538b()[_0x350664('0xe9e')](_0x4c3e5a[_0x350664('0xff8')][_0x350664('0x580')],{'id':_0x537a31['FaxInteractionId']});if(_0x6a5b07){var _0x301905=_0x51538b()[_0x350664('0xe9e')](_0x6a5b07[_0x350664('0x1cd2')],{'id':_0x537a31['id']});_0x301905?_0x51538b()['merge'](_0x301905,_0x51538b()[_0x350664('0x104e')](_0x537a31,_0x51538b()[_0x350664('0x9f2')](_0x301905))):(_0x51538b()['isNil'](_0x6a5b07[_0x350664('0x1cd2')])&&(_0x6a5b07[_0x350664('0x1cd2')]={'count':0x0}),!_0x537a31[_0x350664('0x7b7')]&&(_0x6a5b07[_0x350664('0x1cd2')]['count']+=0x1));}}}function _0x52c780(){var _0x551df1=_0x32e9ae;_0x4c3e5a[_0x551df1('0x1d47')]=![];}function _0x1b9be6(){var _0xe3524a=_0x32e9ae;_0x4c3e5a[_0xe3524a('0x1d47')]=!![];}function _0x20e831(){var _0x1833ba=_0x32e9ae;_0x4c3e5a[_0x1833ba('0x1d47')]=![],_0x592a5f[_0x1833ba('0x1e6d')]({'controller':_0x1833ba('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular['element'](_0x5bbbbf[_0x1833ba('0x54c')]),'clickOutsideToClose':![],'locals':{'color':_0x4c3e5a[_0x1833ba('0xe68')],'fields':_0x4c3e5a[_0x1833ba('0xd67')][_0x1833ba('0x13a')],'storagePath':_0x1833ba('0x1986')},'fullscreen':!![]})[_0x1833ba('0xaa5')](function(_0x4d4e41){var _0x3e55ce=_0x1833ba;_0x4c3e5a[_0x3e55ce('0x582')][_0x3e55ce('0x1785')]=_0x4d4e41===![]?undefined:_0x4d4e41;if(_0x4c3e5a[_0x3e55ce('0x582')][_0x3e55ce('0x1785')]||_0x4d4e41===![])_0x1f7fcd();})[_0x1833ba('0x253d')](function(_0x279e91){var _0x4e6ba2=_0x1833ba;_0x1f0699['error']({'title':_0x4e6ba2('0x208b'),'msg':_0x279e91[_0x4e6ba2('0x10fd')]?JSON[_0x4e6ba2('0xa48')](_0x279e91[_0x4e6ba2('0x10fd')]['message']):_0x279e91['toString']()});});}var _0x2f2889=!![],_0x3ff1fe=0x1;_0x3f78ea['$watch'](_0x32e9ae('0x1788'),function(_0x30b3cc,_0x3f02fe){var _0x475d9b=_0x32e9ae;_0x2f2889?_0x172b26(function(){_0x2f2889=![];}):(!_0x3f02fe&&(_0x3ff1fe=_0x4c3e5a[_0x475d9b('0x582')][_0x475d9b('0x41')]),_0x30b3cc!==_0x3f02fe&&(_0x4c3e5a['query'][_0x475d9b('0x41')]=0x1),!_0x30b3cc&&(_0x4c3e5a[_0x475d9b('0x582')][_0x475d9b('0x41')]=_0x3ff1fe),_0x1f7fcd(_0x4c3e5a[_0x475d9b('0x582')]['page']));}),_0x3f78ea[_0x32e9ae('0xc75')](_0x32e9ae('0x12d0'),function(){var _0x26cc78=_0x32e9ae;_0xf33fcf[_0x26cc78('0x2629')](_0x26cc78('0x1cc9')),_0xf33fcf[_0x26cc78('0x2629')](_0x26cc78('0x13ee')),_0xf33fcf[_0x26cc78('0x2629')](_0x26cc78('0xe66')),_0xf33fcf[_0x26cc78('0x2629')]('faxInteractionTags:save'),_0xf33fcf[_0x26cc78('0x2629')](_0x26cc78('0x23fb')),_0xf33fcf[_0x26cc78('0x2629')](_0x26cc78('0x1b61')),_0xf33fcf[_0x26cc78('0x2629')](_0x26cc78('0x1bf'));});}const _0x279ce6=_0x5413b0;_0x4a8107[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),'$window',_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0xa66')];function _0x4a8107(_0x28c087,_0x4a15a0,_0x9c0a5,_0x20e812,_0x41e6ee,_0x2b1973,_0x4b4c30,_0x1e52d2,_0x1406c9,_0x1addb3,_0x2cfba0){var _0x119049=_0x1a8446,_0x5d2eac=this;_0x5d2eac[_0x119049('0x272b')]=_0x1e52d2[_0x119049('0xacc')](),_0x5d2eac[_0x119049('0x1202')]={},_0x5d2eac[_0x119049('0x143f')]={},_0x5d2eac['tags']={'count':0x0,'rows':[]},_0x5d2eac['mailInteractions']={'count':0x0,'rows':[]},_0x5d2eac[_0x119049('0x582')]={'includeAll':!![],'sort':_0x119049('0xd82'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x5d2eac[_0x119049('0xd67')]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x119049('0x1dc'),'column':'Contact','type':_0x119049('0x7e6'),'options':{'searchFields':[_0x119049('0x24c1'),_0x119049('0x351'),_0x119049('0x1f69')],'route':{'model':'cmContact','action':_0x119049('0x2122'),'params':{'fields':_0x119049('0x14ba'),'Contact':_0x119049('0x1bfb'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x119049('0x13f7')]}},{'name':_0x119049('0x716'),'column':_0x119049('0x2101'),'type':_0x119049('0xb37'),'options':{'excludedOperators':['$eq',_0x119049('0x13f7')]}},{'name':_0x119049('0x1e4'),'column':_0x119049('0xc2'),'type':_0x119049('0xb37'),'options':{'excludedOperators':[_0x119049('0x221d'),_0x119049('0x13f7')]}},{'name':_0x119049('0x26ae'),'column':_0x119049('0x1cbd'),'type':_0x119049('0xbff'),'values':[{'id':0x0,'translate':_0x119049('0x166e')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x119049('0x13f7')]}},{'name':_0x119049('0x511'),'column':'substatus','type':_0x119049('0x2468'),'options':{'field':_0x119049('0x25d6'),'route':{'model':_0x119049('0x13b1'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x119049('0x930')]}},{'name':_0x119049('0x521'),'column':_0x119049('0x21b9'),'type':_0x119049('0x7e6'),'options':{'table':'i','route':{'model':_0x119049('0x272b'),'action':_0x119049('0x2122'),'params':{'role':_0x119049('0xeff'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x119049('0x2082')],'excludedOperators':[_0x119049('0x13f7')]}},{'name':_0x119049('0x75a'),'column':'MailAccountId','type':'multiselect','options':{'route':{'model':'user','action':_0x119049('0x1fb2'),'params':{'id':_0x5d2eac[_0x119049('0x272b')]['id'],'nolimit':!![]}}}},{'name':_0x119049('0x67f'),'column':'Tag','type':_0x119049('0x2468'),'options':{'route':{'model':_0x119049('0x38f'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x119049('0x12f1'),'column':_0x119049('0x24a1'),'type':'date','options':{'excludedOperators':[_0x119049('0x13f7')]}},{'name':_0x119049('0x120b'),'column':_0x119049('0x1551'),'type':'select','values':[{'id':0x1,'translate':_0x119049('0xdc4')},{'id':0x0,'translate':_0x119049('0x320')}],'options':{'excludedOperators':[_0x119049('0x13f7')]}}]},_0x5d2eac[_0x119049('0xe68')]='teal',_0x5d2eac[_0x119049('0x2318')]=_0x14ba94,_0x5d2eac[_0x119049('0xe10')]=_0x5830fc,_0x5d2eac[_0x119049('0x1d5c')]=_0x55ca42,_0x5d2eac[_0x119049('0x2628')]=_0x39a3f8,_0x5d2eac['downloadMailInteraction']=_0x1c0e99,_0x5d2eac[_0x119049('0xa8c')]=_0x2d4646,_0x5d2eac[_0x119049('0x603')]=_0xe17b52,_0x5d2eac[_0x119049('0x149e')]=_0x3d185a,_0x5d2eac[_0x119049('0x230d')]=_0x13548e,_0x5d2eac[_0x119049('0xa92')]=_0x1f760c,_0x5d2eac[_0x119049('0x2396')]=_0x19a8cf,_0x5d2eac[_0x119049('0x1104')]=_0x5bdbc1,_0x5d2eac[_0x119049('0x226e')]=_0x5e09ed,_0x28c087['$on'](_0x119049('0x1c65'),_0xfd1b1a);function _0x14ba94(_0x15430b,_0x524184){var _0x1ab67d=_0x119049;return _0x5d2eac['license']=_0x15430b,_0x5d2eac[_0x1ab67d('0x143f')]=_0x524184,_0x4b4c30[_0x1ab67d('0x272b')]['get'+_0x51538b()[_0x1ab67d('0x1791')](_0x1ab67d('0x172d'))]({'id':_0x5d2eac['user']['id'],'nolimit':!![]})[_0x1ab67d('0x1dc2')]['then'](function(_0x12b856){var _0x5a1bf4=_0x1ab67d;return _0x5d2eac[_0x5a1bf4('0x172d')]=_0x12b856||{'count':0x0,'rows':[]},_0x4b4c30[_0x5a1bf4('0x38f')][_0x5a1bf4('0x2122')]()['$promise'];})[_0x1ab67d('0xaa5')](function(_0xeb8507){_0x5d2eac['tags']=_0xeb8507||{'count':0x0,'rows':[]};})[_0x1ab67d('0xaa5')](function(){var _0x4ecabb=_0x1ab67d;return _0x4b4c30[_0x4ecabb('0x13b1')][_0x4ecabb('0x2122')]({'nolimit':!![]})[_0x4ecabb('0x1dc2')];})[_0x1ab67d('0xaa5')](function(_0x95d318){_0x5d2eac['subStatuses']=_0x95d318||{'count':0x0,'rows':[]};})[_0x1ab67d('0xaa5')](function(){_0x5d2eac['quickFilters']=_0x2f4ff8();})['catch'](function(_0x1ea4dd){var _0x1f819f=_0x1ab67d;console[_0x1f819f('0x187f')](_0x1ea4dd);})['finally'](function(){var _0x38453f=_0x1ab67d,_0x2a44d2=_0x41e6ee[_0x38453f('0x38e')][_0x38453f('0x173f')](_0x38453f('0x139e')+_0x5d2eac[_0x38453f('0x272b')]['id']);if(_0x2a44d2)try{_0x2a44d2=JSON[_0x38453f('0x9b6')](_0x2a44d2);if(_0x2a44d2['query']){_0x5d2eac[_0x38453f('0x582')]=_0x51538b()[_0x38453f('0x283c')](_0x5d2eac[_0x38453f('0x582')],_0x2a44d2['query']);if(_0x51538b()[_0x38453f('0x116b')](_0x5d2eac[_0x38453f('0x172d')]['rows']))_0x5d2eac['query'][_0x38453f('0x2307')]=[];else _0x51538b()[_0x38453f('0x116b')](_0x5d2eac['query'][_0x38453f('0x2307')])&&(_0x5d2eac[_0x38453f('0x582')][_0x38453f('0x2307')]=_0x51538b()(_0x5d2eac['mailAccounts']['rows'])['map']('id')[_0x38453f('0x1ac1')]()['value']());_0x5d2eac['query'][_0x38453f('0x1015')]&&_0x5d2eac['query'][_0x38453f('0x1015')][_0x38453f('0x1f38')](_0x38453f('0x6a5'))>=0x0&&(_0x5d2eac[_0x38453f('0x582')]=_0x51538b()['omit'](_0x5d2eac[_0x38453f('0x582')],_0x38453f('0x1015'))),_0x5d2eac[_0x38453f('0x582')][_0x38453f('0x17ac')]=!![],_0x5d2eac['isSearchBarVisible']=_0x5d2eac[_0x38453f('0x582')][_0x38453f('0xdb7')]?!![]:![];}}catch(_0xd3c01f){console[_0x38453f('0x187f')](_0xd3c01f);}else{var _0x3d43f3={'$gte':_0x420d43()()[_0x38453f('0x206d')](_0x38453f('0xae9'))[_0x38453f('0x15db')](0x0,!![])[_0x38453f('0x1f27')](),'$lte':_0x420d43()()[_0x38453f('0x173a')](_0x38453f('0xae9'))['utcOffset'](0x0,!![])[_0x38453f('0x1f27')]()},_0x27a4c9={'MailAccountId':_0x51538b()['map'](_0x5d2eac[_0x38453f('0x172d')][_0x38453f('0x580')],'id'),'createdAt':_0x3d43f3};_0x5d2eac[_0x38453f('0x582')]=_0x51538b()[_0x38453f('0x283c')](_0x5d2eac[_0x38453f('0x582')],_0x27a4c9);}_0x1406c9['on'](_0x38453f('0x243'),_0x5d4e09),_0x1406c9['on']('mailInteraction:update',_0x5d4e09),_0x1406c9['on'](_0x38453f('0x2326'),_0x1a7fa5),_0x1406c9['on'](_0x38453f('0x272c'),_0x5f27e4),_0x1406c9['on']('mailMessage:update',_0x5f27e4),_0x1406c9['on'](_0x38453f('0xabb'),_0x13e22d),_0x1406c9['on'](_0x38453f('0x160e'),_0x468213),_0x55ca42(_0x5d2eac[_0x38453f('0x582')]['page']);});}function _0x2f4ff8(){var _0x52ac9e=_0x119049;return[{'name':_0x52ac9e('0x12f1'),'key':_0x52ac9e('0x24a1'),'type':_0x52ac9e('0xb87'),'label':_0x52ac9e('0xf3d')},{'name':_0x52ac9e('0x1cd2'),'key':'read','type':_0x52ac9e('0xbff'),'label':_0x52ac9e('0x1da2'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x52ac9e('0x26ae'),'key':_0x52ac9e('0x1cbd'),'type':_0x52ac9e('0xbff'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x52ac9e('0x166e')},{'value':0x1,'translate':_0x52ac9e('0x73b')},{'value':null,'translate':_0x52ac9e('0x20c4')}]},{'name':'Substatus','key':_0x52ac9e('0x74e'),'type':_0x52ac9e('0xbff'),'label':_0x52ac9e('0x1fb6'),'options':_0x5d2eac[_0x52ac9e('0x68')][_0x52ac9e('0x580')],'customOptions':[{'value':_0x52ac9e('0x1ed9'),'translate':_0x52ac9e('0x1bf4')},{'value':undefined,'translate':_0x52ac9e('0x20c4')}],'ngValue':'name','ngIf':_0x52ac9e('0x86b')},{'name':_0x52ac9e('0x75a'),'key':_0x52ac9e('0x2307'),'type':_0x52ac9e('0x2468'),'label':_0x52ac9e('0x136e'),'options':_0x5d2eac[_0x52ac9e('0x172d')][_0x52ac9e('0x580')],'clearAll':![]},{'name':'Agent','key':_0x52ac9e('0x1037'),'type':'select','label':_0x52ac9e('0x162f'),'customOptions':[{'value':_0x5d2eac[_0x52ac9e('0x272b')]['id'],'translate':_0x52ac9e('0x1855')},{'value':'null','translate':_0x52ac9e('0x1a1c')},{'value':undefined,'translate':_0x52ac9e('0x20c4')}]},{'name':_0x52ac9e('0x4e7'),'key':_0x52ac9e('0x38f'),'type':_0x52ac9e('0x2468'),'label':_0x52ac9e('0x6a6'),'options':_0x5d2eac[_0x52ac9e('0x523')]['rows'],'placeholder':_0x52ac9e('0x1161')}];}function _0x5830fc(_0x22e16f){var _0x35a109=_0x119049;_0x5d2eac[_0x35a109('0x1206')]=![],_0x5d2eac[_0x35a109('0x149b')]=_0x22e16f||{'count':0x0,'rows':[]};for(var _0x1b9d17=0x0;_0x1b9d17<_0x5d2eac['mailInteractions'][_0x35a109('0x580')][_0x35a109('0x2587')];_0x1b9d17+=0x1){_0xe17b52(_0x5d2eac[_0x35a109('0x149b')][_0x35a109('0x580')][_0x1b9d17]);}}function _0x55ca42(_0x3adbf6){var _0x235837=_0x119049;_0x5d2eac[_0x235837('0x1206')]=!![];!_0x3adbf6&&(_0x5d2eac[_0x235837('0x582')][_0x235837('0x41')]=0x1);_0x5d2eac[_0x235837('0x582')][_0x235837('0x8b1')]=(_0x5d2eac[_0x235837('0x582')][_0x235837('0x41')]-0x1)*_0x5d2eac[_0x235837('0x582')][_0x235837('0xf4d')];var _0xc64f95=_0x41e6ee[_0x235837('0x38e')][_0x235837('0x173f')](_0x235837('0x139e')+_0x5d2eac[_0x235837('0x272b')]['id']);_0xc64f95=_0xc64f95?JSON['parse'](_0xc64f95):{},_0xc64f95[_0x235837('0x582')]=_0x5d2eac[_0x235837('0x582')],_0x41e6ee[_0x235837('0x38e')][_0x235837('0xdbf')](_0x235837('0x139e')+_0x5d2eac[_0x235837('0x272b')]['id'],JSON[_0x235837('0xa48')](_0xc64f95)),_0x5d2eac[_0x235837('0x159a')]=_0x4b4c30[_0x235837('0x1117')][_0x235837('0x2122')](_0x5d2eac['query'],_0x5830fc)[_0x235837('0x1dc2')];}function _0x39a3f8(_0x54143a,_0x2908ad){var _0x211946=_0x119049;_0x28c087[_0x211946('0x24a3')]['vm']['addInteractionTab'](_0x211946('0x14c5'),_0x2908ad);}function _0x1c0e99(_0xc56b68,_0x49538c,_0xb4b108){var _0xe49820=_0x119049;_0x4b4c30[_0xe49820('0x1117')][_0xe49820('0x1cf9')]({'id':_0x49538c['id'],'attachments':_0xb4b108})[_0xe49820('0x1dc2')][_0xe49820('0xaa5')](function(_0x2d093e){var _0xbcad89=_0xe49820,_0x3281a7=[_0x2d093e[_0xbcad89('0x1bf1')]],_0x2bfdaf=_0xbcad89('0x1078')+_0x49538c['id']+_0xbcad89('0x966'),_0xb298fd=new Blob(_0x3281a7,{'type':_0x2d093e[_0xbcad89('0x6c8')]}),_0x20c9cd=window[_0xbcad89('0x12aa')]['createElement']('a');_0x20c9cd['setAttribute']('href',URL[_0xbcad89('0x1e56')](_0xb298fd)),_0x20c9cd['setAttribute'](_0xbcad89('0x1cf9'),_0x2bfdaf),document['body'][_0xbcad89('0x1315')](_0x20c9cd),_0x20c9cd['click']();})[_0xe49820('0x253d')](function(_0x56e608){var _0x30b89b=_0xe49820;if(_0x56e608[_0x30b89b('0x10fd')]&&_0x56e608[_0x30b89b('0x10fd')]['errors']&&_0x56e608[_0x30b89b('0x10fd')][_0x30b89b('0x4c6')]['length'])for(var _0x4cde0c=0x0;_0x4cde0c<_0x56e608[_0x30b89b('0x10fd')]['errors']['length'];_0x4cde0c+=0x1){_0x1addb3['error']({'title':_0x56e608[_0x30b89b('0x10fd')]['errors'][_0x4cde0c][_0x30b89b('0x6c8')],'msg':_0x56e608[_0x30b89b('0x10fd')][_0x30b89b('0x4c6')][_0x4cde0c][_0x30b89b('0x1402')]});}else _0x1addb3[_0x30b89b('0x187f')]({'title':_0x56e608[_0x30b89b('0x2fa')]?_0x30b89b('0x16c2')+_0x56e608[_0x30b89b('0x2fa')]+_0x30b89b('0x169e')+_0x56e608[_0x30b89b('0x24df')]:_0x30b89b('0x16c9'),'msg':_0x56e608[_0x30b89b('0x10fd')]?JSON[_0x30b89b('0xa48')](_0x56e608['data'][_0x30b89b('0x1402')]):_0x56e608['toString']()});});}function _0x2d4646(_0x64256,_0x1dd54f){var _0x252391=_0x119049,_0x401264=_0x5d2eac['user'][_0x252391('0x2519')]||_0x5d2eac['user'][_0x252391('0x1f36')]||_0x5d2eac['user']['mailPause']||_0x5d2eac[_0x252391('0x272b')][_0x252391('0xc8f')]||_0x5d2eac[_0x252391('0x272b')][_0x252391('0x135b')],_0xcec3b=!_0x1dd54f[_0x252391('0x75a')][_0x252391('0x1844')];_0x9c0a5['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular['element'](_0x20e812[_0x252391('0x54c')]),'clickOutsideToClose':_0xcec3b,'escapeToClose':_0xcec3b,'onRemoving':function _0x4c3221(){var _0x3a361a=_0x252391;_0x5d2eac[_0x3a361a('0x272b')]&&_0x1dd54f[_0x3a361a('0x75a')][_0x3a361a('0x1844')]&&!_0x401264&&_0x4b4c30['user']['unpause']({'id':_0x5d2eac[_0x3a361a('0x272b')]['id']})[_0x3a361a('0x1dc2')][_0x3a361a('0x253d')](function(_0x1dfd4e){console['error'](_0x1dfd4e);});},'locals':{'user':_0x5d2eac['user'],'channel':_0x252391('0x14c5'),'interaction':_0x1dd54f}});}function _0xe17b52(_0x46b597){var _0x4b902a=_0x119049;if(!_0x51538b()[_0x4b902a('0x116b')](_0x46b597['to'])&&_0x46b597[_0x4b902a('0x75a')]&&!_0x51538b()[_0x4b902a('0x13d6')](_0x46b597['to'],_0x46b597['Account'][_0x4b902a('0x1f69')]))_0x46b597[_0x4b902a('0x4e0')]=_0x46b597['to'][_0x4b902a('0x1a39')]('\x20<')[0x0],_0x46b597[_0x4b902a('0x1420')]=_0x46b597['to']['split']('<')[_0x4b902a('0x21b')]()[_0x4b902a('0x1a39')]('>')[0x0];else _0x46b597[_0x4b902a('0x1dc')]?(_0x46b597['contactName']=(_0x46b597[_0x4b902a('0x1dc')][_0x4b902a('0x24c1')]||'')+'\x20'+(_0x46b597[_0x4b902a('0x1dc')][_0x4b902a('0x351')]||''),_0x46b597[_0x4b902a('0x1420')]=_0x46b597[_0x4b902a('0x1dc')][_0x4b902a('0x1f69')]||''):_0x46b597[_0x4b902a('0x4e0')]=_0x2b1973[_0x4b902a('0x213f')](_0x4b902a('0x22f7'));}function _0x3d185a(_0x19adba){var _0x1a0a65=_0x119049;if(_0x19adba[_0x1a0a65('0x1037')])return _0x19adba[_0x1a0a65('0x1037')]===_0x5d2eac[_0x1a0a65('0x272b')]['id']?_0x2b1973['instant'](_0x1a0a65('0x1855')):_0x19adba[_0x1a0a65('0x40')][_0x1a0a65('0x18e5')]+'\x20<'+_0x19adba['Owner']['internal']+'>';return _0x2b1973[_0x1a0a65('0x213f')](_0x1a0a65('0x1a1c'));}function _0x13548e(_0x506c08){var _0x5b4289=_0x119049;if(_0x506c08[_0x5b4289('0x75a')])return _0x506c08['Account'][_0x5b4289('0x24ec')];return _0x2b1973[_0x5b4289('0x213f')](_0x5b4289('0x22f7'));}function _0xfd1b1a(_0x129e9f,_0x4cebac){var _0x1d14c0=_0x119049;_0x4cebac[_0x1d14c0('0x1d86')]?(_0x4cebac['interaction'][_0x1d14c0('0xba9')]=!![],_0x39a3f8(null,_0x4cebac['interaction'])):_0x9c0a5['show']({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x1b0547,'parent':angular[_0x1d14c0('0x1aa8')](_0x20e812[_0x1d14c0('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x4cebac['account'],'message':_0x4cebac[_0x1d14c0('0x15af')],'type':'draft','interaction':{}},'fullscreen':!![]})['then'](function(_0x37ec6c){var _0x1765e3=_0x1d14c0;if(_0x37ec6c){if(_0x37ec6c[_0x1765e3('0x1402')]&&_0x37ec6c[_0x1765e3('0x1402')][_0x1765e3('0x22a4')]){var _0x482214={'id':_0x4cebac['id'],'channel':_0x1765e3('0x14c5'),'account':_0x37ec6c[_0x1765e3('0x5b')],'message':_0x37ec6c[_0x1765e3('0x1402')]};_0x2cfba0['update'](_0x482214);}else{var _0x230ecf=_0x37ec6c;return _0x4b4c30[_0x1765e3('0xb86')][_0x1765e3('0x1e80')]({'id':_0x4cebac[_0x1765e3('0x5b')]['id']},_0x230ecf)[_0x1765e3('0x1dc2')][_0x1765e3('0xaa5')](function(_0x5667fe){var _0x5d8476=_0x1765e3;_0x2cfba0[_0x5d8476('0xf6d')](_0x4cebac['id']);if(_0x5667fe&&_0x5667fe['Messages']&&_0x5667fe[_0x5d8476('0x1cd2')][_0x5d8476('0x2587')]){if(_0x230ecf[_0x5d8476('0x1c8c')]&&_0x230ecf['attachments'][_0x5d8476('0x2587')])for(var _0x187307=0x0;_0x187307<_0x230ecf['attachments'][_0x5d8476('0x2587')];_0x187307+=0x1){_0x4b4c30[_0x5d8476('0xa46')][_0x5d8476('0x264e')]({'id':_0x230ecf[_0x5d8476('0x1c8c')][_0x187307]['id']},{'MailMessageId':_0x51538b()[_0x5d8476('0x19da')](_0x5667fe['Messages'])['id']});}_0x1addb3['success']({'title':'Message\x20properly\x20sent!','msg':_0x5d8476('0x22b4')});if(_0x5667fe[_0x5d8476('0x1cbd')]){_0x5667fe['disposition']=null;var _0x4a60da=!_0x4cebac['account'][_0x5d8476('0x1844')],_0x5a9915=_0x5d2eac[_0x5d8476('0x272b')]['voicePause']||_0x5d2eac['user'][_0x5d8476('0x1f36')]||_0x5d2eac['user']['mailPause']||_0x5d2eac[_0x5d8476('0x272b')][_0x5d8476('0xc8f')]||_0x5d2eac[_0x5d8476('0x272b')][_0x5d8476('0x135b')];_0x9c0a5['show']({'controller':_0x5d8476('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular[_0x5d8476('0x1aa8')](_0x20e812[_0x5d8476('0x54c')]),'onRemoving':function _0x11bd98(){var _0x53ee44=_0x5d8476;_0x5d2eac[_0x53ee44('0x272b')]&&_0x4cebac[_0x53ee44('0x5b')][_0x53ee44('0x1844')]&&!_0x5a9915&&_0x4b4c30[_0x53ee44('0x272b')][_0x53ee44('0x297')]({'id':_0x5d2eac[_0x53ee44('0x272b')]['id']})['$promise']['catch'](function(_0x215827){var _0x1550e6=_0x53ee44;console[_0x1550e6('0x187f')](_0x215827);});},'clickOutsideToClose':_0x4a60da,'escapeToClose':_0x4a60da,'locals':{'user':_0x5d2eac[_0x5d8476('0x272b')],'channel':_0x5d8476('0x14c5'),'interaction':_0x5667fe}});}else _0x28c087[_0x5d8476('0x24a3')]['vm'][_0x5d8476('0x15e0')]('mail',_0x5667fe);}})[_0x1765e3('0x253d')](function(_0x4ad551){var _0x171be5=_0x1765e3;if(_0x4ad551[_0x171be5('0x10fd')]&&_0x4ad551[_0x171be5('0x10fd')][_0x171be5('0x4c6')]&&_0x4ad551[_0x171be5('0x10fd')]['errors']['length'])for(var _0x529287=0x0;_0x529287<_0x4ad551[_0x171be5('0x10fd')][_0x171be5('0x4c6')]['length'];_0x529287++){_0x1addb3['error']({'title':_0x4ad551[_0x171be5('0x10fd')][_0x171be5('0x4c6')][_0x529287]['type'],'msg':_0x4ad551[_0x171be5('0x10fd')]['errors'][_0x529287][_0x171be5('0x1402')]});}else _0x1addb3[_0x171be5('0x187f')]({'title':_0x4ad551[_0x171be5('0x2fa')]?_0x171be5('0x16c2')+_0x4ad551[_0x171be5('0x2fa')]+_0x171be5('0x169e')+_0x4ad551[_0x171be5('0x24df')]:_0x171be5('0x7d8'),'msg':_0x4ad551[_0x171be5('0x10fd')]?JSON[_0x171be5('0xa48')](_0x4ad551[_0x171be5('0x10fd')]['message']):_0x4ad551['message']||_0x4ad551[_0x171be5('0x684')]()});});}}});}function _0x1f760c(_0x493803,_0xf61c1c){var _0x2d2873=_0x119049;_0x9c0a5[_0x2d2873('0x1e6d')]({'controller':_0x2d2873('0x4de'),'controllerAs':'vm','templateUrl':_0x1b0547,'parent':angular[_0x2d2873('0x1aa8')](_0x20e812['body']),'clickOutsideToClose':![],'locals':{'account':_0xf61c1c,'message':{},'type':_0x2d2873('0x1062'),'interaction':{}},'fullscreen':!![]})[_0x2d2873('0xaa5')](function(_0x2179ff){var _0x267bcc=_0x2d2873;if(_0x2179ff){if(_0x2179ff['message']&&_0x2179ff['message']['savedAsDraft']){var _0x5b4fd8={'channel':_0x267bcc('0x14c5'),'account':_0xf61c1c,'message':_0x2179ff[_0x267bcc('0x1402')],'contact':_0x2179ff['contact']};_0x2cfba0[_0x267bcc('0x202c')](_0x5b4fd8);}else{var _0x49c459=_0x2179ff;return _0x4b4c30[_0x267bcc('0xb86')][_0x267bcc('0x1e80')]({'id':_0xf61c1c['id']},_0x49c459)[_0x267bcc('0x1dc2')]['then'](function(_0x36e4a7){var _0x34ed55=_0x267bcc;if(_0x36e4a7&&_0x36e4a7[_0x34ed55('0x1cd2')]&&_0x36e4a7['Messages'][_0x34ed55('0x2587')]){if(_0x49c459[_0x34ed55('0x1c8c')]&&_0x49c459[_0x34ed55('0x1c8c')][_0x34ed55('0x2587')])for(var _0x2084b1=0x0;_0x2084b1<_0x49c459['attachments'][_0x34ed55('0x2587')];_0x2084b1+=0x1){_0x4b4c30[_0x34ed55('0xa46')][_0x34ed55('0x264e')]({'id':_0x49c459[_0x34ed55('0x1c8c')][_0x2084b1]['id']},{'MailMessageId':_0x51538b()['head'](_0x36e4a7[_0x34ed55('0x1cd2')])['id']});}_0x1addb3[_0x34ed55('0xe10')]({'title':'Message\x20properly\x20sent!','msg':_0x34ed55('0x22b4')});if(_0x36e4a7[_0x34ed55('0x1cbd')]){_0x36e4a7[_0x34ed55('0x106e')]=null;var _0x197e5c=!_0xf61c1c[_0x34ed55('0x1844')],_0x4f3d09=_0x5d2eac[_0x34ed55('0x272b')]['voicePause']||_0x5d2eac['user'][_0x34ed55('0x1f36')]||_0x5d2eac[_0x34ed55('0x272b')][_0x34ed55('0x21f')]||_0x5d2eac[_0x34ed55('0x272b')]['openchannelPause']||_0x5d2eac[_0x34ed55('0x272b')]['faxPause'];_0x9c0a5[_0x34ed55('0x1e6d')]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular[_0x34ed55('0x1aa8')](_0x20e812[_0x34ed55('0x54c')]),'onRemoving':function _0x5245da(){var _0xf7eacd=_0x34ed55;_0x5d2eac[_0xf7eacd('0x272b')]&&_0xf61c1c['mandatoryDisposition']&&!_0x4f3d09&&_0x4b4c30[_0xf7eacd('0x272b')][_0xf7eacd('0x297')]({'id':_0x5d2eac[_0xf7eacd('0x272b')]['id']})[_0xf7eacd('0x1dc2')][_0xf7eacd('0x253d')](function(_0x387f6f){console['error'](_0x387f6f);});},'clickOutsideToClose':_0x197e5c,'escapeToClose':_0x197e5c,'locals':{'user':_0x5d2eac['user'],'channel':_0x34ed55('0x14c5'),'interaction':_0x36e4a7}});}else _0x28c087[_0x34ed55('0x24a3')]['vm']['addInteractionTab'](_0x34ed55('0x14c5'),_0x36e4a7);}})[_0x267bcc('0x253d')](function(_0x1575bd){var _0x22cc0f=_0x267bcc;if(_0x1575bd['data']&&_0x1575bd[_0x22cc0f('0x10fd')]['errors']&&_0x1575bd[_0x22cc0f('0x10fd')][_0x22cc0f('0x4c6')][_0x22cc0f('0x2587')])for(var _0x4f13ec=0x0;_0x4f13ec<_0x1575bd[_0x22cc0f('0x10fd')]['errors'][_0x22cc0f('0x2587')];_0x4f13ec++){_0x1addb3[_0x22cc0f('0x187f')]({'title':_0x1575bd['data'][_0x22cc0f('0x4c6')][_0x4f13ec][_0x22cc0f('0x6c8')],'msg':_0x1575bd[_0x22cc0f('0x10fd')][_0x22cc0f('0x4c6')][_0x4f13ec][_0x22cc0f('0x1402')]});}else _0x1addb3[_0x22cc0f('0x187f')]({'title':_0x1575bd[_0x22cc0f('0x2fa')]?_0x22cc0f('0x16c2')+_0x1575bd[_0x22cc0f('0x2fa')]+_0x22cc0f('0x169e')+_0x1575bd['statusText']:_0x22cc0f('0x7d8'),'msg':_0x1575bd[_0x22cc0f('0x10fd')]?JSON[_0x22cc0f('0xa48')](_0x1575bd[_0x22cc0f('0x10fd')][_0x22cc0f('0x1402')]):_0x1575bd['message']||_0x1575bd['toString']()});});}}});}function _0x13e22d(_0x3489c0){var _0x23c209=_0x119049,_0x11a9c1,_0x2e19c7=_0x51538b()[_0x23c209('0xe9e')](_0x5d2eac[_0x23c209('0x149b')]['rows'],{'id':_0x3489c0['MailInteractionId']});_0x2e19c7&&_0x2e19c7[_0x23c209('0x16b4')]&&(_0x11a9c1=_0x51538b()[_0x23c209('0xe9e')](_0x2e19c7[_0x23c209('0x16b4')],{'id':_0x3489c0[_0x23c209('0x1037')]}),!_0x11a9c1&&_0x2e19c7[_0x23c209('0x16b4')][_0x23c209('0x1599')]({'id':_0x3489c0[_0x23c209('0x1037')]}));}function _0x468213(_0x29021f){var _0x3b5df7=_0x119049,_0x212328=_0x51538b()[_0x3b5df7('0xe9e')](_0x5d2eac[_0x3b5df7('0x149b')][_0x3b5df7('0x580')],{'id':_0x29021f[_0x3b5df7('0x670')]});_0x212328&&_0x212328[_0x3b5df7('0x16b4')]&&_0x51538b()[_0x3b5df7('0xf6d')](_0x212328[_0x3b5df7('0x16b4')],{'id':_0x29021f[_0x3b5df7('0x1037')]});}function _0x5d4e09(_0x3c8b2a){var _0x4d158f=_0x119049;if(_0x3c8b2a){var _0xb2932b=_0x51538b()[_0x4d158f('0xe9e')](_0x5d2eac[_0x4d158f('0x149b')]['rows'],{'id':_0x3c8b2a['id']});if(_0xb2932b){_0xb2932b[_0x4d158f('0x16b4')]=[];_0x3c8b2a[_0x4d158f('0x1cbd')]&&(_0xb2932b[_0x4d158f('0x1551')]=0x0);if(_0x5d2eac[_0x4d158f('0x582')][_0x4d158f('0x1015')]){var _0x29237b=_0x51538b()[_0x4d158f('0x6e8')](_0x5d2eac['query'][_0x4d158f('0x1015')],'-')?'desc':'asc';_0x5d2eac[_0x4d158f('0x149b')][_0x4d158f('0x580')]=_0x51538b()['orderBy'](_0x5d2eac['mailInteractions'][_0x4d158f('0x580')],_0x51538b()[_0x4d158f('0x134c')](_0x5d2eac['query'][_0x4d158f('0x1015')],'-'),_0x29237b);}_0x51538b()[_0x4d158f('0x283c')](_0xb2932b,_0x51538b()[_0x4d158f('0x104e')](_0x3c8b2a,_0x51538b()[_0x4d158f('0x9f2')](_0xb2932b)));}else _0x55ca42(_0x5d2eac['query'][_0x4d158f('0x41')]);}}function _0x1a7fa5(_0x29ddda){var _0x176cdf=_0x119049;if(_0x29ddda){var _0x44789d=_0x51538b()[_0x176cdf('0xe9e')](_0x5d2eac[_0x176cdf('0x149b')][_0x176cdf('0x580')],{'id':_0x29ddda['id']});_0x44789d&&(_0x44789d[_0x176cdf('0x67f')]=_0x29ddda['tags']||[],_0x51538b()[_0x176cdf('0x283c')](_0x44789d,_0x51538b()['pick'](_0x29ddda,_0x51538b()[_0x176cdf('0x9f2')](_0x44789d))));}}function _0x5f27e4(_0x574b5b){var _0x44f75e=_0x119049;if(_0x574b5b&&!_0x574b5b['secret']){var _0x3d24bc=_0x51538b()[_0x44f75e('0xe9e')](_0x5d2eac[_0x44f75e('0x149b')][_0x44f75e('0x580')],{'id':_0x574b5b[_0x44f75e('0x670')]});if(_0x3d24bc){var _0x3c50b1=_0x51538b()[_0x44f75e('0xe9e')](_0x3d24bc[_0x44f75e('0x1cd2')],{'id':_0x574b5b['id']});_0x3c50b1?_0x51538b()[_0x44f75e('0x283c')](_0x3c50b1,_0x51538b()[_0x44f75e('0x104e')](_0x574b5b,_0x51538b()[_0x44f75e('0x9f2')](_0x3c50b1))):(_0x51538b()[_0x44f75e('0x89a')](_0x3d24bc[_0x44f75e('0x1cd2')])&&(_0x3d24bc[_0x44f75e('0x1cd2')]={'count':0x0}),!_0x574b5b['read']&&(_0x3d24bc[_0x44f75e('0x1cd2')][_0x44f75e('0xd15')]+=0x1));}}}function _0x19a8cf(){_0x5d2eac['isSearchBarVisible']=![];}function _0x5bdbc1(){_0x5d2eac['isSearchBarVisible']=!![];}function _0x5e09ed(){var _0xd881b9=_0x119049;_0x5d2eac[_0xd881b9('0x1d47')]=![],_0x9c0a5[_0xd881b9('0x1e6d')]({'controller':_0xd881b9('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0xd881b9('0x1aa8')](_0x20e812[_0xd881b9('0x54c')]),'clickOutsideToClose':![],'locals':{'color':_0x5d2eac['sectionColor'],'fields':_0x5d2eac[_0xd881b9('0xd67')][_0xd881b9('0x13a')],'storagePath':_0xd881b9('0xce2')},'fullscreen':!![]})[_0xd881b9('0xaa5')](function(_0x2bc507){var _0x24c834=_0xd881b9;_0x5d2eac[_0x24c834('0x582')]['search']=_0x2bc507===![]?undefined:_0x2bc507;if(_0x5d2eac[_0x24c834('0x582')]['search']||_0x2bc507===![])_0x55ca42();})[_0xd881b9('0x253d')](function(_0x3b1e2c){var _0x256a30=_0xd881b9;_0x1addb3['error']({'title':_0x256a30('0x208b'),'msg':_0x3b1e2c[_0x256a30('0x10fd')]?JSON[_0x256a30('0xa48')](_0x3b1e2c[_0x256a30('0x10fd')][_0x256a30('0x1402')]):_0x3b1e2c['toString']()});});}var _0x25dff1=!![],_0x173d57=0x1;_0x28c087['$watch']('vm.query.filter',function(_0x22df21,_0x1e1c88){var _0xd0c2bd=_0x119049;_0x25dff1?_0x4a15a0(function(){_0x25dff1=![];}):(!_0x1e1c88&&(_0x173d57=_0x5d2eac[_0xd0c2bd('0x582')][_0xd0c2bd('0x41')]),_0x22df21!==_0x1e1c88&&(_0x5d2eac[_0xd0c2bd('0x582')][_0xd0c2bd('0x41')]=0x1),!_0x22df21&&(_0x5d2eac['query'][_0xd0c2bd('0x41')]=_0x173d57),_0x55ca42(_0x5d2eac[_0xd0c2bd('0x582')][_0xd0c2bd('0x41')]));}),_0x28c087[_0x119049('0xc75')]('$destroy',function(){var _0x306694=_0x119049;_0x1406c9['removeAllListeners'](_0x306694('0x272c')),_0x1406c9[_0x306694('0x2629')]('mailMessage:update'),_0x1406c9['removeAllListeners']('mailInteraction:save'),_0x1406c9[_0x306694('0x2629')]('mailInteractionTags:save'),_0x1406c9[_0x306694('0x2629')]('mailInteraction:update'),_0x1406c9['removeAllListeners'](_0x306694('0xabb')),_0x1406c9[_0x306694('0x2629')](_0x306694('0x160e'));});}const _0x787c6c=_0x4a8107;_0x251b39['$inject']=['$document',_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x1dfd'),_0x1a8446('0x157'),_0x1a8446('0x27bf'),'toasty'];function _0x251b39(_0xa82c83,_0x2482bd,_0x3a558e,_0x49e84d,_0x5f59c6,_0x1a7c05,_0x2a255f,_0x145894){var _0xe19d3c=_0x1a8446,_0x422961=this;_0x422961[_0xe19d3c('0x7fc')]=_0x5f59c6[_0xe19d3c('0xacc')](),_0x422961[_0xe19d3c('0x1126')]={},_0x422961[_0xe19d3c('0x1cfb')]={'count':0x0,'rows':[]},_0x422961['tags']={'count':0x0,'rows':[]},_0x422961[_0xe19d3c('0x582')]={'includeAll':!![],'id':_0x422961[_0xe19d3c('0x7fc')]['id'],'sort':_0xe19d3c('0xd82'),'limit':0xa,'page':0x1},_0x422961[_0xe19d3c('0xd67')]={'fields':[]},_0x422961[_0xe19d3c('0xe68')]=_0xe19d3c('0x1a19'),_0x422961['getContacts']=_0x1eb2e9,_0x422961[_0xe19d3c('0x277f')]=_0x5184f0,_0x422961[_0xe19d3c('0x1e9e')]=_0x2f6ab2,_0x422961[_0xe19d3c('0x10')]=_0x18537b,_0x422961[_0xe19d3c('0x267c')]=_0x428714,_0x422961[_0xe19d3c('0x1432')]=_0x2482bd[_0xe19d3c('0x24a3')]['vm']['call'],_0x422961[_0xe19d3c('0x2318')]=_0x66049,_0x422961[_0xe19d3c('0x2396')]=_0x3e2f9c,_0x422961[_0xe19d3c('0x1104')]=_0x25dd6c,_0x422961[_0xe19d3c('0x226e')]=_0x131223;function _0x66049(){var _0x453f4b=_0xe19d3c;_0x1a7c05[_0x453f4b('0x26b4')]['get']({'fields':_0x453f4b('0x18bf'),'sort':_0x453f4b('0x25d6'),'nolimit':!![]})[_0x453f4b('0x1dc2')][_0x453f4b('0xaa5')](function(_0xae850){var _0x3b596e=_0x453f4b;return _0x422961[_0x3b596e('0x1126')]=_0xae850||{'count':0x0,'rows':[]},_0x422961[_0x3b596e('0xa52')]=_0x51538b()[_0x3b596e('0x184a')](_0x422961['lists'][_0x3b596e('0x580')],'id'),_0x1a7c05[_0x3b596e('0x38f')][_0x3b596e('0x2122')]()[_0x3b596e('0x1dc2')];})[_0x453f4b('0xaa5')](function(_0x352c40){_0x422961['tags']=_0x352c40||{'count':0x0,'rows':[]};})[_0x453f4b('0xaa5')](function(){_0x422961['quickFilters']=_0x3aa066();})[_0x453f4b('0x253d')](function(_0x167841){var _0x576c5c=_0x453f4b;console[_0x576c5c('0x187f')](_0x167841);})['finally'](function(){var _0x47c7ed=_0x453f4b,_0x3b0fc5=_0x2a255f[_0x47c7ed('0x38e')][_0x47c7ed('0x173f')]('motion2.home.mycontacts:'+_0x422961[_0x47c7ed('0x7fc')]['id']);if(_0x3b0fc5)try{_0x3b0fc5=JSON[_0x47c7ed('0x9b6')](_0x3b0fc5);if(_0x3b0fc5[_0x47c7ed('0x582')]){_0x422961[_0x47c7ed('0x582')]=_0x51538b()[_0x47c7ed('0x283c')](_0x422961['query'],_0x3b0fc5[_0x47c7ed('0x582')]);if(_0x51538b()[_0x47c7ed('0x116b')](_0x422961[_0x47c7ed('0x1126')][_0x47c7ed('0x580')]))_0x422961[_0x47c7ed('0x582')]['ListId']=[];else _0x51538b()[_0x47c7ed('0x116b')](_0x422961[_0x47c7ed('0x582')][_0x47c7ed('0xee0')])&&(_0x422961[_0x47c7ed('0x582')][_0x47c7ed('0xee0')]=_0x51538b()(_0x422961[_0x47c7ed('0x1126')][_0x47c7ed('0x580')])[_0x47c7ed('0x1246')]('id')[_0x47c7ed('0x1ac1')]()[_0x47c7ed('0x12f4')]());}}catch(_0x5764e1){console[_0x47c7ed('0x187f')](_0x5764e1);}else _0x422961[_0x47c7ed('0x582')][_0x47c7ed('0xee0')]=_0x51538b()['map'](_0x422961[_0x47c7ed('0x1126')][_0x47c7ed('0x580')],'id');_0x422961[_0x47c7ed('0x1d47')]=_0x422961[_0x47c7ed('0x582')][_0x47c7ed('0xdb7')]?!![]:![],_0x1eb2e9();});}function _0x3aa066(){var _0x3c306c=_0xe19d3c;return[{'name':_0x3c306c('0x20e8'),'key':'ListId','type':'multiselect','label':_0x3c306c('0x17dd'),'options':_0x422961[_0x3c306c('0x1126')][_0x3c306c('0x580')],'clearAll':![]},{'name':_0x3c306c('0x4e7'),'key':_0x3c306c('0x38f'),'type':'multiselect','label':_0x3c306c('0x6a6'),'options':_0x422961['tags'][_0x3c306c('0x580')],'placeholder':_0x3c306c('0x1161')}];}function _0x566b9a(_0x4c11b7){var _0x2562b3=_0xe19d3c;_0x422961[_0x2562b3('0x1206')]=![],_0x422961[_0x2562b3('0x1cfb')]=_0x4c11b7||{'count':0x0,'rows':[]};}function _0x1eb2e9(_0x38c1ee){var _0x5d69b1=_0xe19d3c;_0x422961['searchInProgress']=!![],_0x3e5aba();!_0x38c1ee&&(_0x422961['query']['page']=0x1);_0x422961[_0x5d69b1('0x582')][_0x5d69b1('0x8b1')]=(_0x422961[_0x5d69b1('0x582')][_0x5d69b1('0x41')]-0x1)*_0x422961[_0x5d69b1('0x582')][_0x5d69b1('0xf4d')];var _0x73c4a6=_0x2a255f[_0x5d69b1('0x38e')]['getItem']('motion2.home.mycontacts:'+_0x422961['currentUser']['id']);_0x73c4a6=_0x73c4a6?JSON[_0x5d69b1('0x9b6')](_0x73c4a6):{},_0x73c4a6[_0x5d69b1('0x582')]=_0x422961[_0x5d69b1('0x582')],_0x2a255f['localStorage'][_0x5d69b1('0xdbf')](_0x5d69b1('0x2223')+_0x422961[_0x5d69b1('0x7fc')]['id'],JSON[_0x5d69b1('0xa48')](_0x73c4a6));if(_0x422961[_0x5d69b1('0x582')][_0x5d69b1('0x1785')])_0x422961[_0x5d69b1('0xec9')]=_0x51538b()[_0x5d69b1('0x245')](_0x422961['query'],'id');_0x422961[_0x5d69b1('0x159a')]=_0x422961[_0x5d69b1('0x582')][_0x5d69b1('0x1785')]?_0x1a7c05[_0x5d69b1('0xdbd')][_0x5d69b1('0x2122')](_0x422961[_0x5d69b1('0xec9')],_0x566b9a)[_0x5d69b1('0x1dc2')]:_0x1a7c05[_0x5d69b1('0x272b')]['getContacts'](_0x422961['query'],_0x566b9a)[_0x5d69b1('0x1dc2')];}function _0x428714(_0x4b1877,_0xab7bf9){var _0x1079ab=_0xe19d3c;_0x2482bd[_0x1079ab('0x24a3')]['vm'][_0x1079ab('0xde6')](_0xab7bf9);}function _0x5184f0(){_0x1eb2e9();}function _0x18537b(_0x19acb2,_0x9babf7){var _0x14cbca=_0xe19d3c;_0x49e84d[_0x14cbca('0x1e6d')]({'controller':_0x14cbca('0x18b1'),'controllerAs':'vm','templateUrl':_0x1121c7,'parent':angular[_0x14cbca('0x1aa8')](_0xa82c83['body']),'targetEvent':_0x19acb2,'clickOutsideToClose':!![],'resolve':{'contact':[_0x14cbca('0x1d16'),function _0x162449(_0x2c785a){var _0x32c3ca=_0x14cbca;return _0x2c785a[_0x32c3ca('0x149f')](_0x32c3ca('0xe18'),{'id':_0x9babf7['id']});}],'lists':[_0x14cbca('0x1d16'),function _0x3a230c(_0x56c693){var _0x1293ea=_0x14cbca;return _0x56c693['resolve'](_0x1293ea('0x1982'),{'id':_0x422961[_0x1293ea('0x7fc')]['id'],'fields':_0x1293ea('0x17fe')});}]},'locals':{'contacts':_0x422961[_0x14cbca('0x1cfb')]['rows']}});}function _0x2f6ab2(_0x392c84,_0x5dcc68){var _0x3edbfe=_0xe19d3c;_0x49e84d[_0x3edbfe('0x1e6d')]({'controller':_0x3edbfe('0xf6b'),'controllerAs':'vm','templateUrl':_0x42c3f9,'parent':angular[_0x3edbfe('0x1aa8')](_0xa82c83[_0x3edbfe('0x54c')]),'targetEvent':_0x392c84,'clickOutsideToClose':!![],'resolve':{'contact':[_0x3edbfe('0x1d16'),function _0x59d36e(_0x50a75d){var _0x22b3b2=_0x3edbfe;return _0x50a75d[_0x22b3b2('0x149f')]('cmContact@get',{'id':_0x5dcc68['id']});}],'lists':['apiResolver',function _0x2deb7a(_0x57b694){var _0x21ffec=_0x3edbfe;return _0x57b694[_0x21ffec('0x149f')](_0x21ffec('0x1982'),{'id':_0x422961[_0x21ffec('0x7fc')]['id'],'fields':'id,name'});}]},'locals':{'contacts':_0x422961[_0x3edbfe('0x1cfb')][_0x3edbfe('0x580')]}});}function _0x3e2f9c(){var _0x770e83=_0xe19d3c;_0x422961[_0x770e83('0x1d47')]=![];}function _0x25dd6c(){_0x422961['isSearchBarVisible']=!![];}function _0x3e5aba(){var _0x16ee79=_0xe19d3c;return _0x1a7c05[_0x16ee79('0xdbd')][_0x16ee79('0x3e7')]({'id':_0x422961[_0x16ee79('0x582')]['ListId']})[_0x16ee79('0x1dc2')][_0x16ee79('0xaa5')](function(_0x1c96b0){var _0x149848=_0x16ee79;return _0x51538b()(_0x1c96b0[_0x149848('0x256a')]())[_0x149848('0x245')](_0x149848('0x1037'))['values']()[_0x149848('0x1246')](function(_0x32e62b){return _0x37d6e3(_0x32e62b);})[_0x149848('0x12f4')]();})['then'](function(_0xef04cd){var _0x1d23ad=_0x16ee79;_0x422961[_0x1d23ad('0xd67')][_0x1d23ad('0x13a')]=_0xef04cd;var _0x1118dc={'name':'Tags','column':_0x1d23ad('0x4e7'),'type':'multiselect','options':{'route':{'model':'tag','action':_0x1d23ad('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x1d23ad('0x930')]}},_0x5e6fc3=_0x51538b()['findIndex'](_0xef04cd,function(_0x72f21d){var _0x491ab7=_0x1d23ad;return _0x51538b()['startsWith'](_0x72f21d[_0x491ab7('0x6c')],'cf_');})||_0xef04cd[_0x1d23ad('0x2587')]-0x1;if(_0x5e6fc3<0x0)_0x5e6fc3=_0xef04cd['length'];_0x422961[_0x1d23ad('0xd67')][_0x1d23ad('0x13a')][_0x1d23ad('0x1280')](_0x5e6fc3,0x0,_0x1118dc);})['catch'](function(_0x58b7cc){var _0x3e3189=_0x16ee79;_0x145894[_0x3e3189('0x187f')]({'title':_0x58b7cc['status']?_0x3e3189('0x16c2')+_0x58b7cc['status']+_0x3e3189('0x169e')+_0x58b7cc[_0x3e3189('0x24df')]:_0x3e3189('0x249e'),'msg':_0x58b7cc['data']?JSON[_0x3e3189('0xa48')](_0x58b7cc[_0x3e3189('0x10fd')][_0x3e3189('0x1402')]):_0x58b7cc[_0x3e3189('0x684')]()});});}function _0x37d6e3(_0x1c892d){var _0x533199=_0xe19d3c,_0x2878d7={'name':_0x51538b()['startCase'](_0x1c892d[_0x533199('0x1961')]),'column':_0x1c892d['columnName'],'options':{}};if(_0x1c892d[_0x533199('0x113b')])switch(_0x1c892d[_0x533199('0x113b')][_0x533199('0x6c8')]){case _0x533199('0xb37'):_0x2878d7[_0x533199('0x6c8')]=_0x533199('0xb37');break;case _0x533199('0xbff'):_0x2878d7[_0x533199('0x6c8')]=_0x533199('0x2468'),_0x2878d7[_0x533199('0x3c5')]=_0x51538b()[_0x533199('0x1246')](JSON[_0x533199('0x9b6')](_0x1c892d[_0x533199('0x113b')][_0x533199('0x3c5')]),function(_0x23af65,_0x520ad1){var _0x288af2=_0x533199;return{'id':_0x520ad1,'name':_0x23af65[_0x288af2('0x12f4')],'value':_0x23af65[_0x288af2('0x12f4')]};}),_0x2878d7[_0x533199('0x1b36')][_0x533199('0x5f2')]=_0x533199('0x25d6');break;case _0x533199('0x256e'):_0x2878d7[_0x533199('0x6c8')]='select',_0x2878d7['values']=[{'id':0x1,'translate':'DASHBOARDS.ENABLED'},{'id':0x0,'translate':_0x533199('0x2363')}],_0x2878d7[_0x533199('0x1b36')]['excludedOperators']=[_0x533199('0x13f7')];break;case _0x533199('0x219a'):_0x2878d7[_0x533199('0x6c8')]=_0x533199('0x219a');break;case'datetime':_0x2878d7[_0x533199('0x6c8')]='date';break;}else switch(_0x1c892d['columnName']){case'dateOfBirth':_0x2878d7[_0x533199('0x6c8')]=_0x533199('0xb87');break;case _0x533199('0x1dc7'):_0x2878d7[_0x533199('0x25d6')]=_0x533199('0xf7a'),_0x2878d7['type']='autocomplete',_0x2878d7['options'][_0x533199('0xbc0')]={'model':_0x533199('0x218'),'action':_0x533199('0x2122'),'params':{'fields':_0x533199('0x17fe'),'nolimit':!![]}},_0x2878d7[_0x533199('0x1b36')][_0x533199('0x47c')]=[_0x533199('0x25d6')],_0x2878d7[_0x533199('0x1b36')]['excludedOperators']=[_0x533199('0x13f7')];break;case'ListId':_0x2878d7[_0x533199('0x25d6')]=_0x533199('0x20e8'),_0x2878d7[_0x533199('0x6c8')]=_0x533199('0x7e6'),_0x2878d7['options'][_0x533199('0xbc0')]={'model':_0x533199('0x272b'),'action':_0x533199('0xcfd'),'params':{'id':_0x422961[_0x533199('0x7fc')]['id'],'fields':_0x533199('0x17fe'),'nolimit':!![]}},_0x2878d7['options']['searchFields']=[_0x533199('0x25d6')],_0x2878d7[_0x533199('0x1b36')][_0x533199('0x2285')]=[_0x533199('0x13f7')];break;default:if(_0x51538b()[_0x533199('0x13d6')](_0x1c892d[_0x533199('0x6c8')][_0x533199('0xcf6')](),_0x533199('0xadc')))_0x2878d7['type']='number';else _0x51538b()[_0x533199('0x13d6')](_0x1c892d[_0x533199('0x6c8')][_0x533199('0xcf6')](),'date')?_0x2878d7[_0x533199('0x6c8')]='date':_0x2878d7['type']=_0x533199('0xb37');break;}return _0x2878d7;}function _0x131223(){var _0x8b5f23=_0xe19d3c;_0x422961['isSearchBarVisible']=![],_0x49e84d['show']({'controller':_0x8b5f23('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0x8b5f23('0x1aa8')](_0xa82c83[_0x8b5f23('0x54c')]),'clickOutsideToClose':![],'locals':{'color':_0x422961[_0x8b5f23('0xe68')],'fields':_0x422961['advancedSearch']['fields'],'storagePath':_0x8b5f23('0x23f7')},'fullscreen':!![]})[_0x8b5f23('0xaa5')](function(_0x5dc0d2){var _0x5f5929=_0x8b5f23;_0x422961['query'][_0x5f5929('0x1785')]=_0x5dc0d2===![]?undefined:_0x5dc0d2;if(_0x5dc0d2===![])_0x1eb2e9();else _0x422961[_0x5f5929('0x582')][_0x5f5929('0x1785')]&&(_0x422961[_0x5f5929('0x582')][_0x5f5929('0x1785')]+=_0x5f5929('0x2305')+_0x422961[_0x5f5929('0x7fc')]['id']+']',_0x1eb2e9());})[_0x8b5f23('0x253d')](function(_0x207ebd){var _0x21443c=_0x8b5f23;_0x145894[_0x21443c('0x187f')]({'title':_0x21443c('0x208b'),'msg':_0x207ebd[_0x21443c('0x10fd')]?JSON[_0x21443c('0xa48')](_0x207ebd[_0x21443c('0x10fd')][_0x21443c('0x1402')]):_0x207ebd['toString']()});});}var _0x4514ec=!![],_0x48e35e=0x1;_0x2482bd[_0xe19d3c('0x1ccf')](_0xe19d3c('0x1788'),function(_0x15b9fd,_0x607b4a){var _0x2f5d4b=_0xe19d3c;_0x4514ec?_0x3a558e(function(){_0x4514ec=![];}):(!_0x607b4a&&(_0x48e35e=_0x422961[_0x2f5d4b('0x582')][_0x2f5d4b('0x41')]),_0x15b9fd!==_0x607b4a&&(_0x422961['query'][_0x2f5d4b('0x41')]=0x1),!_0x15b9fd&&(_0x422961[_0x2f5d4b('0x582')][_0x2f5d4b('0x41')]=_0x48e35e),_0x1eb2e9());});}const _0x21347d=_0x251b39;_0x50f32b['$inject']=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74'),'toasty',_0x1a8446('0xa66')];function _0x50f32b(_0x1c3200,_0x3d700c,_0x32a7ff,_0x3d90f8,_0x52a4ce,_0x2bc490,_0x235d91,_0xf4757f,_0x5c9af3,_0x194447,_0x518dff){var _0x2c5d06=_0x1a8446,_0x5c5358=this;_0x5c5358[_0x2c5d06('0x272b')]=_0xf4757f[_0x2c5d06('0xacc')](),_0x5c5358[_0x2c5d06('0x1202')]={},_0x5c5358[_0x2c5d06('0x143f')]={},_0x5c5358[_0x2c5d06('0x523')]={'count':0x0,'rows':[]},_0x5c5358[_0x2c5d06('0x1893')]={'count':0x0,'rows':[]},_0x5c5358[_0x2c5d06('0x582')]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x5c5358['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x2c5d06('0x219a')},{'name':_0x2c5d06('0x1dc'),'column':'Contact','type':_0x2c5d06('0x7e6'),'options':{'searchFields':[_0x2c5d06('0x24c1'),_0x2c5d06('0x351'),_0x2c5d06('0x1f69')],'route':{'model':_0x2c5d06('0xdbd'),'action':'get','params':{'fields':'id,firstName,lastName,email','Contact':_0x2c5d06('0x1bfb'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x2c5d06('0x13f7')]}},{'name':_0x2c5d06('0x1e4'),'column':'body','type':_0x2c5d06('0xb37'),'options':{'excludedOperators':[_0x2c5d06('0x221d'),'$ne']}},{'name':_0x2c5d06('0x26ae'),'column':_0x2c5d06('0x1cbd'),'type':_0x2c5d06('0xbff'),'values':[{'id':0x0,'translate':_0x2c5d06('0x166e')},{'id':0x1,'translate':_0x2c5d06('0x73b')}],'options':{'excludedOperators':[_0x2c5d06('0x13f7')]}},{'name':'Agent','column':_0x2c5d06('0x21b9'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x2c5d06('0x272b'),'action':'get','params':{'role':_0x2c5d06('0xeff'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x2c5d06('0x18e5'),_0x2c5d06('0x25d6')],'extraOperators':[_0x2c5d06('0x2082')],'excludedOperators':[_0x2c5d06('0x13f7')]}},{'name':'Account','column':_0x2c5d06('0x62c'),'type':_0x2c5d06('0x2468'),'options':{'route':{'model':_0x2c5d06('0x272b'),'action':'getOpenchannelAccounts','params':{'id':_0x5c5358['user']['id'],'nolimit':!![]}}}},{'name':_0x2c5d06('0x67f'),'column':_0x2c5d06('0x4e7'),'type':_0x2c5d06('0x2468'),'options':{'route':{'model':_0x2c5d06('0x38f'),'action':_0x2c5d06('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x2c5d06('0x930')]}},{'name':_0x2c5d06('0x12f1'),'column':_0x2c5d06('0x24a1'),'type':'date','options':{'excludedOperators':[_0x2c5d06('0x13f7')]}},{'name':_0x2c5d06('0x120b'),'column':_0x2c5d06('0x1551'),'type':_0x2c5d06('0xbff'),'values':[{'id':0x1,'translate':_0x2c5d06('0xdc4')},{'id':0x0,'translate':_0x2c5d06('0x320')}],'options':{'excludedOperators':['$ne']}}]},_0x5c5358[_0x2c5d06('0xe68')]=_0x2c5d06('0x16e7'),_0x5c5358[_0x2c5d06('0x2318')]=_0x5515b2,_0x5c5358[_0x2c5d06('0xe10')]=_0x57f22c,_0x5c5358[_0x2c5d06('0x150d')]=_0x57d7df,_0x5c5358['showOpenchannelInteraction']=_0x409249,_0x5c5358[_0x2c5d06('0x1392')]=_0x3cbd3e,_0x5c5358[_0x2c5d06('0xa8c')]=_0x3c529c,_0x5c5358[_0x2c5d06('0x603')]=_0x3b04c8,_0x5c5358[_0x2c5d06('0x149e')]=_0x3f8a95,_0x5c5358[_0x2c5d06('0x42e')]=_0x4c04f3,_0x5c5358[_0x2c5d06('0x876')]=_0x18a0ed,_0x5c5358['onSearchBarCollapse']=_0x2d8382,_0x5c5358['onSearchBarExpand']=_0x438f4a,_0x5c5358[_0x2c5d06('0x226e')]=_0x1e0a50;function _0x5515b2(_0x3df0a9,_0x25986b){var _0x4fa266=_0x2c5d06;return _0x5c5358[_0x4fa266('0x1202')]=_0x3df0a9,_0x5c5358[_0x4fa266('0x143f')]=_0x25986b,_0x235d91[_0x4fa266('0x272b')][_0x4fa266('0x2122')+_0x51538b()[_0x4fa266('0x1791')](_0x4fa266('0x23f0'))]({'id':_0x5c5358[_0x4fa266('0x272b')]['id'],'nolimit':!![]})['$promise'][_0x4fa266('0xaa5')](function(_0x3a56e5){var _0x214a6b=_0x4fa266;return _0x5c5358[_0x214a6b('0x23f0')]=_0x3a56e5||{'count':0x0,'rows':[]},_0x235d91[_0x214a6b('0x38f')]['get']()['$promise'];})[_0x4fa266('0xaa5')](function(_0xd39a11){var _0x4e5952=_0x4fa266;_0x5c5358[_0x4e5952('0x523')]=_0xd39a11||{'count':0x0,'rows':[]};})[_0x4fa266('0xaa5')](function(){_0x5c5358['quickFilters']=_0xca5ceb();})[_0x4fa266('0x253d')](function(_0x160857){var _0x517813=_0x4fa266;console[_0x517813('0x187f')](_0x160857);})[_0x4fa266('0x1889')](function(){var _0x552514=_0x4fa266,_0x10917b=_0x52a4ce['localStorage'][_0x552514('0x173f')](_0x552514('0x11d3')+_0x5c5358['user']['id']);if(_0x10917b)try{_0x10917b=JSON[_0x552514('0x9b6')](_0x10917b);if(_0x10917b[_0x552514('0x582')]){_0x5c5358[_0x552514('0x582')]=_0x51538b()['merge'](_0x5c5358[_0x552514('0x582')],_0x10917b[_0x552514('0x582')]);if(_0x51538b()[_0x552514('0x116b')](_0x5c5358[_0x552514('0x23f0')][_0x552514('0x580')]))_0x5c5358[_0x552514('0x582')]['OpenchannelAccountId']=[];else _0x51538b()[_0x552514('0x116b')](_0x5c5358['query'][_0x552514('0x62c')])&&(_0x5c5358['query'][_0x552514('0x62c')]=_0x51538b()(_0x5c5358[_0x552514('0x23f0')][_0x552514('0x580')])[_0x552514('0x1246')]('id')[_0x552514('0x1ac1')]()[_0x552514('0x12f4')]());_0x5c5358[_0x552514('0x582')][_0x552514('0x1015')]&&_0x5c5358[_0x552514('0x582')][_0x552514('0x1015')]['indexOf'](_0x552514('0x6a5'))>=0x0&&(_0x5c5358[_0x552514('0x582')]=_0x51538b()[_0x552514('0x245')](_0x5c5358[_0x552514('0x582')],'sort')),_0x5c5358[_0x552514('0x582')][_0x552514('0x17ac')]=!![],_0x5c5358[_0x552514('0x1d47')]=_0x5c5358[_0x552514('0x582')][_0x552514('0xdb7')]?!![]:![];}}catch(_0x10333f){console[_0x552514('0x187f')](_0x10333f);}else{var _0x2a665b={'$gte':_0x420d43()()[_0x552514('0x206d')](_0x552514('0xae9'))[_0x552514('0x15db')](0x0,!![])[_0x552514('0x1f27')](),'$lte':_0x420d43()()[_0x552514('0x173a')](_0x552514('0xae9'))[_0x552514('0x15db')](0x0,!![])[_0x552514('0x1f27')]()},_0x39633a={'OpenchannelAccountId':_0x51538b()['map'](_0x5c5358['openchannelAccounts']['rows'],'id'),'createdAt':_0x2a665b};_0x5c5358[_0x552514('0x582')]=_0x51538b()['merge'](_0x5c5358['query'],_0x39633a);}_0x5c9af3['on']('openchannelInteraction:save',_0x353ef9),_0x5c9af3['on'](_0x552514('0x1e6b'),_0x353ef9),_0x5c9af3['on']('openchannelInteractionTags:save',_0x2b27d0),_0x5c9af3['on'](_0x552514('0x813'),_0x2c863f),_0x5c9af3['on'](_0x552514('0x302'),_0x2c863f),_0x5c9af3['on'](_0x552514('0x1eb8'),_0x57f28d),_0x5c9af3['on'](_0x552514('0x1e62'),_0x815614),_0x57d7df(_0x5c5358[_0x552514('0x582')][_0x552514('0x41')]);});}function _0xca5ceb(){var _0x9e9320=_0x2c5d06;return[{'name':_0x9e9320('0x12f1'),'key':_0x9e9320('0x24a1'),'type':_0x9e9320('0xb87'),'label':_0x9e9320('0xf3d')},{'name':'Messages','key':_0x9e9320('0x7b7'),'type':_0x9e9320('0xbff'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x9e9320('0x320')},{'value':0x1,'translate':_0x9e9320('0xdc4')},{'value':null,'translate':_0x9e9320('0x20c4')}]},{'name':'Status','key':_0x9e9320('0x1cbd'),'type':_0x9e9320('0xbff'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x9e9320('0x166e')},{'value':0x1,'translate':_0x9e9320('0x73b')},{'value':null,'translate':_0x9e9320('0x20c4')}]},{'name':_0x9e9320('0x75a'),'key':_0x9e9320('0x62c'),'type':'multiselect','label':_0x9e9320('0x136e'),'options':_0x5c5358[_0x9e9320('0x23f0')][_0x9e9320('0x580')],'clearAll':![]},{'name':_0x9e9320('0x521'),'key':'UserId','type':_0x9e9320('0xbff'),'label':_0x9e9320('0x162f'),'customOptions':[{'value':_0x5c5358[_0x9e9320('0x272b')]['id'],'translate':'DASHBOARDS.ME'},{'value':_0x9e9320('0x1ed9'),'translate':_0x9e9320('0x1a1c')},{'value':undefined,'translate':_0x9e9320('0x20c4')}]},{'name':'Tag','key':'tag','type':_0x9e9320('0x2468'),'label':_0x9e9320('0x6a6'),'options':_0x5c5358[_0x9e9320('0x523')][_0x9e9320('0x580')],'placeholder':_0x9e9320('0x1161')}];}function _0x57f22c(_0x522a82){var _0x1e40b8=_0x2c5d06;_0x5c5358[_0x1e40b8('0x1206')]=![],_0x5c5358[_0x1e40b8('0x1893')]=_0x522a82||{'count':0x0,'rows':[]};for(var _0x420084=0x0;_0x420084<_0x5c5358[_0x1e40b8('0x1893')]['rows']['length'];_0x420084+=0x1){_0x3b04c8(_0x5c5358['openchannelInteractions']['rows'][_0x420084]);}}function _0x57d7df(_0x59437a){var _0x361bdc=_0x2c5d06;_0x5c5358[_0x361bdc('0x1206')]=!![];!_0x59437a&&(_0x5c5358[_0x361bdc('0x582')][_0x361bdc('0x41')]=0x1);_0x5c5358[_0x361bdc('0x582')][_0x361bdc('0x8b1')]=(_0x5c5358[_0x361bdc('0x582')]['page']-0x1)*_0x5c5358[_0x361bdc('0x582')][_0x361bdc('0xf4d')];var _0x3a45d6=_0x52a4ce['localStorage']['getItem']('motion2.home.openchannel:'+_0x5c5358[_0x361bdc('0x272b')]['id']);_0x3a45d6=_0x3a45d6?JSON[_0x361bdc('0x9b6')](_0x3a45d6):{},_0x3a45d6[_0x361bdc('0x582')]=_0x5c5358[_0x361bdc('0x582')],_0x52a4ce[_0x361bdc('0x38e')][_0x361bdc('0xdbf')](_0x361bdc('0x11d3')+_0x5c5358['user']['id'],JSON[_0x361bdc('0xa48')](_0x3a45d6)),_0x5c5358[_0x361bdc('0x159a')]=_0x235d91[_0x361bdc('0x97d')][_0x361bdc('0x2122')](_0x5c5358[_0x361bdc('0x582')],_0x57f22c)[_0x361bdc('0x1dc2')];}function _0x409249(_0x91a69c,_0x5b0cd3){var _0x166396=_0x2c5d06;_0x1c3200['$parent']['vm'][_0x166396('0x15e0')](_0x166396('0x170'),_0x5b0cd3);}function _0x3cbd3e(_0x3b9e06,_0xa4ecc5,_0x2bb02d){var _0x2b6738=_0x2c5d06;_0x235d91[_0x2b6738('0x97d')]['download']({'id':_0xa4ecc5['id'],'attachments':_0x2bb02d})[_0x2b6738('0x1dc2')][_0x2b6738('0xaa5')](function(_0x4c1686){var _0x6efa2c=_0x2b6738,_0x509999=[_0x4c1686[_0x6efa2c('0x1bf1')]],_0x44a95f=_0x6efa2c('0x1895')+_0xa4ecc5['id']+_0x6efa2c('0x966'),_0x2bc7f9=new Blob(_0x509999,{'type':_0x4c1686[_0x6efa2c('0x6c8')]}),_0x6c62dc=window['document'][_0x6efa2c('0x531')]('a');_0x6c62dc[_0x6efa2c('0x107b')]('href',URL[_0x6efa2c('0x1e56')](_0x2bc7f9)),_0x6c62dc['setAttribute'](_0x6efa2c('0x1cf9'),_0x44a95f),document[_0x6efa2c('0x54c')][_0x6efa2c('0x1315')](_0x6c62dc),_0x6c62dc[_0x6efa2c('0x467')]();})[_0x2b6738('0x253d')](function(_0x193d0e){var _0x1c780b=_0x2b6738;if(_0x193d0e[_0x1c780b('0x10fd')]&&_0x193d0e['data'][_0x1c780b('0x4c6')]&&_0x193d0e[_0x1c780b('0x10fd')][_0x1c780b('0x4c6')]['length'])for(var _0x395e3c=0x0;_0x395e3c<_0x193d0e[_0x1c780b('0x10fd')]['errors'][_0x1c780b('0x2587')];_0x395e3c+=0x1){_0x194447[_0x1c780b('0x187f')]({'title':_0x193d0e[_0x1c780b('0x10fd')][_0x1c780b('0x4c6')][_0x395e3c][_0x1c780b('0x6c8')],'msg':_0x193d0e[_0x1c780b('0x10fd')]['errors'][_0x395e3c][_0x1c780b('0x1402')]});}else _0x194447[_0x1c780b('0x187f')]({'title':_0x193d0e['status']?_0x1c780b('0x16c2')+_0x193d0e[_0x1c780b('0x2fa')]+_0x1c780b('0x169e')+_0x193d0e[_0x1c780b('0x24df')]:'downloadOpenchannelInteraction','msg':_0x193d0e[_0x1c780b('0x10fd')]?JSON['stringify'](_0x193d0e[_0x1c780b('0x10fd')][_0x1c780b('0x1402')]):_0x193d0e[_0x1c780b('0x684')]()});});}function _0x3c529c(_0x5f1bad,_0x3c80da){var _0x264332=_0x2c5d06,_0x4118ea=_0x5c5358[_0x264332('0x272b')][_0x264332('0x2519')]||_0x5c5358[_0x264332('0x272b')][_0x264332('0x1f36')]||_0x5c5358[_0x264332('0x272b')][_0x264332('0x21f')]||_0x5c5358[_0x264332('0x272b')][_0x264332('0xc8f')]||_0x5c5358[_0x264332('0x272b')][_0x264332('0x135b')],_0x521ffb=!_0x3c80da['Account'][_0x264332('0x1844')];_0x32a7ff['show']({'controller':_0x264332('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular[_0x264332('0x1aa8')](_0x3d90f8[_0x264332('0x54c')]),'clickOutsideToClose':_0x521ffb,'escapeToClose':_0x521ffb,'onRemoving':function _0x4c8d5d(){var _0x7657c3=_0x264332;_0x5c5358[_0x7657c3('0x272b')]&&_0x3c80da[_0x7657c3('0x75a')][_0x7657c3('0x1844')]&&!_0x4118ea&&_0x235d91[_0x7657c3('0x272b')][_0x7657c3('0x297')]({'id':_0x5c5358[_0x7657c3('0x272b')]['id']})[_0x7657c3('0x1dc2')][_0x7657c3('0x253d')](function(_0x296cb5){var _0x42db04=_0x7657c3;console[_0x42db04('0x187f')](_0x296cb5);});},'locals':{'user':_0x5c5358[_0x264332('0x272b')],'channel':_0x264332('0x170'),'interaction':_0x3c80da}});}function _0x3b04c8(_0x22b116){var _0x56a354=_0x2c5d06;if(_0x22b116[_0x56a354('0x1911')])_0x22b116[_0x56a354('0x4e0')]=_0x22b116[_0x56a354('0x1911')];else _0x22b116['Contact']?_0x22b116[_0x56a354('0x4e0')]=(_0x22b116['Contact'][_0x56a354('0x24c1')]||'')+'\x20'+(_0x22b116[_0x56a354('0x1dc')][_0x56a354('0x351')]||''):_0x22b116[_0x56a354('0x4e0')]=_0x2bc490['instant'](_0x56a354('0x22f7'));}function _0x3f8a95(_0x34b42b){var _0xb82694=_0x2c5d06;if(_0x34b42b[_0xb82694('0x1037')])return _0x34b42b['UserId']===_0x5c5358['user']['id']?_0x2bc490[_0xb82694('0x213f')](_0xb82694('0x1855')):_0x34b42b['Owner'][_0xb82694('0x18e5')]+'\x20<'+_0x34b42b[_0xb82694('0x40')][_0xb82694('0x1b0d')]+'>';return _0x2bc490['instant']('DASHBOARDS.NOT_ASSIGNED');}function _0x4c04f3(_0x307486){var _0x3e6dca=_0x2c5d06;if(_0x307486[_0x3e6dca('0x75a')])return _0x307486[_0x3e6dca('0x75a')][_0x3e6dca('0x24ec')];return _0x2bc490['instant'](_0x3e6dca('0x22f7'));}function _0x18a0ed(_0x45a6af,_0x1ffcf0){var _0x58ab3c=_0x2c5d06;_0x32a7ff['show']({'controller':_0x58ab3c('0xa80'),'controllerAs':'vm','templateUrl':_0x1ba0a3,'parent':angular[_0x58ab3c('0x1aa8')](_0x3d90f8[_0x58ab3c('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x1ffcf0,'message':{},'type':_0x58ab3c('0x1062'),'interaction':{}},'fullscreen':!![]})['then'](function(_0x46813b){var _0x1beea9=_0x58ab3c;if(_0x46813b){if(_0x46813b['message']&&_0x46813b[_0x1beea9('0x1402')][_0x1beea9('0x22a4')]){var _0x524d36={'channel':'openchannel','account':_0x1ffcf0,'message':_0x46813b[_0x1beea9('0x1402')],'contact':_0x46813b[_0x1beea9('0x3c6')]};_0x518dff[_0x1beea9('0x202c')](_0x524d36);}else{var _0x261a5c=_0x46813b;return _0x235d91[_0x1beea9('0x2566')]['send']({'id':_0x1ffcf0['id']},_0x261a5c)[_0x1beea9('0x1dc2')]['then'](function(_0x42c0df){var _0x2ee6dc=_0x1beea9;_0x194447[_0x2ee6dc('0xe10')]({'title':'Message\x20properly\x20sent!','msg':_0x2ee6dc('0x22b4')}),_0x1c3200[_0x2ee6dc('0x24a3')]['vm'][_0x2ee6dc('0x15e0')](_0x2ee6dc('0x170'),_0x42c0df);})[_0x1beea9('0x253d')](function(_0x3c6be8){var _0x4bea82=_0x1beea9;if(_0x3c6be8['data']&&_0x3c6be8[_0x4bea82('0x10fd')][_0x4bea82('0x4c6')]&&_0x3c6be8[_0x4bea82('0x10fd')][_0x4bea82('0x4c6')][_0x4bea82('0x2587')])for(var _0x308ed2=0x0;_0x308ed2<_0x3c6be8[_0x4bea82('0x10fd')][_0x4bea82('0x4c6')][_0x4bea82('0x2587')];_0x308ed2++){_0x194447['error']({'title':_0x3c6be8[_0x4bea82('0x10fd')]['errors'][_0x308ed2][_0x4bea82('0x6c8')],'msg':_0x3c6be8[_0x4bea82('0x10fd')]['errors'][_0x308ed2][_0x4bea82('0x1402')]});}else _0x194447[_0x4bea82('0x187f')]({'title':_0x3c6be8[_0x4bea82('0x2fa')]?_0x4bea82('0x16c2')+_0x3c6be8['status']+'\x20-\x20'+_0x3c6be8[_0x4bea82('0x24df')]:'OPENCHANNELACCOUNT:SEND','msg':_0x3c6be8['data']?JSON[_0x4bea82('0xa48')](_0x3c6be8['data'][_0x4bea82('0x1402')]):_0x3c6be8[_0x4bea82('0x1402')]||_0x3c6be8['toString']()});});}}});}function _0x57f28d(_0x419541){var _0x3bd9e7=_0x2c5d06,_0x176849,_0x4ecce4=_0x51538b()[_0x3bd9e7('0xe9e')](_0x5c5358['openchannelInteractions'][_0x3bd9e7('0x580')],{'id':_0x419541[_0x3bd9e7('0xf09')]});_0x4ecce4&&_0x4ecce4[_0x3bd9e7('0x16b4')]&&(_0x176849=_0x51538b()[_0x3bd9e7('0xe9e')](_0x4ecce4[_0x3bd9e7('0x16b4')],{'id':_0x419541[_0x3bd9e7('0x1037')]}),!_0x176849&&_0x4ecce4[_0x3bd9e7('0x16b4')]['push']({'id':_0x419541[_0x3bd9e7('0x1037')]}));}function _0x815614(_0x229a7e){var _0x3638e8=_0x2c5d06,_0x5c2615=_0x51538b()[_0x3638e8('0xe9e')](_0x5c5358['openchannelInteractions']['rows'],{'id':_0x229a7e['OpenchannelInteractionId']});_0x5c2615&&_0x5c2615[_0x3638e8('0x16b4')]&&_0x51538b()[_0x3638e8('0xf6d')](_0x5c2615[_0x3638e8('0x16b4')],{'id':_0x229a7e[_0x3638e8('0x1037')]});}function _0x353ef9(_0x29af1f){var _0x34b644=_0x2c5d06;if(_0x29af1f){var _0x5e647f=_0x51538b()[_0x34b644('0xe9e')](_0x5c5358[_0x34b644('0x1893')][_0x34b644('0x580')],{'id':_0x29af1f['id']});if(_0x5e647f){_0x5e647f[_0x34b644('0x16b4')]=[];_0x29af1f[_0x34b644('0x1cbd')]&&(_0x5e647f['unreadMessages']=0x0);if(_0x5c5358['query'][_0x34b644('0x1015')]){var _0x39ec5c=_0x51538b()[_0x34b644('0x6e8')](_0x5c5358[_0x34b644('0x582')][_0x34b644('0x1015')],'-')?_0x34b644('0x71c'):'asc';_0x5c5358[_0x34b644('0x1893')][_0x34b644('0x580')]=_0x51538b()[_0x34b644('0x271d')](_0x5c5358[_0x34b644('0x1893')]['rows'],_0x51538b()[_0x34b644('0x134c')](_0x5c5358[_0x34b644('0x582')][_0x34b644('0x1015')],'-'),_0x39ec5c);}_0x51538b()['merge'](_0x5e647f,_0x51538b()[_0x34b644('0x104e')](_0x29af1f,_0x51538b()[_0x34b644('0x9f2')](_0x5e647f)));}else _0x57d7df(_0x5c5358[_0x34b644('0x582')]['page']);}}function _0x2b27d0(_0xef6611){var _0x246fd2=_0x2c5d06;if(_0xef6611){var _0x5c99d6=_0x51538b()[_0x246fd2('0xe9e')](_0x5c5358[_0x246fd2('0x1893')]['rows'],{'id':_0xef6611['id']});_0x5c99d6&&(_0x5c99d6[_0x246fd2('0x67f')]=_0xef6611[_0x246fd2('0x523')]||[],_0x51538b()['merge'](_0x5c99d6,_0x51538b()['pick'](_0xef6611,_0x51538b()[_0x246fd2('0x9f2')](_0x5c99d6))));}}function _0x2c863f(_0x73202e){var _0x351849=_0x2c5d06;if(_0x73202e&&!_0x73202e[_0x351849('0x203a')]){var _0x32456c=_0x51538b()[_0x351849('0xe9e')](_0x5c5358[_0x351849('0x1893')][_0x351849('0x580')],{'id':_0x73202e[_0x351849('0xf09')]});if(_0x32456c){var _0x3211ea=_0x51538b()[_0x351849('0xe9e')](_0x32456c[_0x351849('0x1cd2')],{'id':_0x73202e['id']});_0x3211ea?_0x51538b()[_0x351849('0x283c')](_0x3211ea,_0x51538b()[_0x351849('0x104e')](_0x73202e,_0x51538b()['keys'](_0x3211ea))):(_0x51538b()[_0x351849('0x89a')](_0x32456c[_0x351849('0x1cd2')])&&(_0x32456c[_0x351849('0x1cd2')]={'count':0x0}),!_0x73202e[_0x351849('0x7b7')]&&(_0x32456c[_0x351849('0x1cd2')][_0x351849('0xd15')]+=0x1));}}}function _0x2d8382(){var _0x2a81f3=_0x2c5d06;_0x5c5358[_0x2a81f3('0x1d47')]=![];}function _0x438f4a(){var _0x1e6598=_0x2c5d06;_0x5c5358[_0x1e6598('0x1d47')]=!![];}function _0x1e0a50(){var _0x594142=_0x2c5d06;_0x5c5358[_0x594142('0x1d47')]=![],_0x32a7ff['show']({'controller':_0x594142('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular['element'](_0x3d90f8['body']),'clickOutsideToClose':![],'locals':{'color':_0x5c5358['sectionColor'],'fields':_0x5c5358[_0x594142('0xd67')][_0x594142('0x13a')],'storagePath':_0x594142('0xf06')},'fullscreen':!![]})[_0x594142('0xaa5')](function(_0x4ccd9a){var _0x2ac1f0=_0x594142;_0x5c5358[_0x2ac1f0('0x582')][_0x2ac1f0('0x1785')]=_0x4ccd9a===![]?undefined:_0x4ccd9a;if(_0x5c5358[_0x2ac1f0('0x582')][_0x2ac1f0('0x1785')]||_0x4ccd9a===![])_0x57d7df();})['catch'](function(_0x4095bb){var _0x20bea2=_0x594142;_0x194447[_0x20bea2('0x187f')]({'title':_0x20bea2('0x208b'),'msg':_0x4095bb['data']?JSON[_0x20bea2('0xa48')](_0x4095bb[_0x20bea2('0x10fd')][_0x20bea2('0x1402')]):_0x4095bb['toString']()});});}var _0x3b0e04=!![],_0x40a3ee=0x1;_0x1c3200['$watch'](_0x2c5d06('0x1788'),function(_0x2c933c,_0x553f39){var _0x1d3016=_0x2c5d06;_0x3b0e04?_0x3d700c(function(){_0x3b0e04=![];}):(!_0x553f39&&(_0x40a3ee=_0x5c5358['query']['page']),_0x2c933c!==_0x553f39&&(_0x5c5358['query']['page']=0x1),!_0x2c933c&&(_0x5c5358[_0x1d3016('0x582')][_0x1d3016('0x41')]=_0x40a3ee),_0x57d7df(_0x5c5358[_0x1d3016('0x582')][_0x1d3016('0x41')]));}),_0x1c3200[_0x2c5d06('0xc75')](_0x2c5d06('0x12d0'),function(){var _0x5585ad=_0x2c5d06;_0x5c9af3[_0x5585ad('0x2629')](_0x5585ad('0x813')),_0x5c9af3[_0x5585ad('0x2629')](_0x5585ad('0x302')),_0x5c9af3[_0x5585ad('0x2629')](_0x5585ad('0x27a6')),_0x5c9af3[_0x5585ad('0x2629')]('openchannelInteractionTags:save'),_0x5c9af3[_0x5585ad('0x2629')](_0x5585ad('0x1e6b')),_0x5c9af3['removeAllListeners'](_0x5585ad('0x1eb8')),_0x5c9af3[_0x5585ad('0x2629')](_0x5585ad('0x1e62'));});}const _0x37b36c=_0x50f32b;_0x4bd1c9[_0x1a8446('0x1e33')]=[_0x1a8446('0x39b'),_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x703'),_0x1a8446('0x2809'),'Auth'];function _0x4bd1c9(_0x5b6b15,_0x63a467,_0x1b7f69,_0x5beb99,_0x2dc7df,_0x38b38f,_0x55e9a6){var _0x2dd3d8=_0x1a8446,_0x6c831e=this;_0x6c831e[_0x2dd3d8('0x7fc')]=_0x55e9a6['getCurrentUser'](),_0x6c831e[_0x2dd3d8('0x19a4')]={};function _0x46ffd9(_0x41476c,_0x2bf7b6,_0x30cdc6){var _0x446397=_0x2dd3d8;_0x6c831e[_0x446397('0x1202')]=_0x41476c,_0x6c831e[_0x446397('0x143f')]=_0x2bf7b6,_0x6c831e[_0x446397('0x19a4')]=_0x30cdc6;}function _0x5e9a6f(){var _0x92d534=_0x2dd3d8;return _0x38b38f[_0x92d534('0x13cb')](_0x6c831e[_0x92d534('0x19a4')][_0x92d534('0x2518')]);}_0x63a467[_0x2dd3d8('0xc75')](_0x2dd3d8('0xa94'),function(_0x168793,_0x43e067){var _0x25c379=_0x2dd3d8;_0x6c831e['plugin']=_0x43e067[_0x25c379('0x19a4')];}),_0x6c831e[_0x2dd3d8('0x2318')]=_0x46ffd9,_0x6c831e[_0x2dd3d8('0x1cf3')]=_0x5e9a6f,_0x46ffd9();}const _0x3de999=_0x4bd1c9;_0x5199ee['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x186b'),'api','toasty',_0x1a8446('0x1dfd')];function _0x5199ee(_0x177a7a,_0x27576e,_0x1b8d19,_0x40f601,_0x35375e,_0x4b6f9d){var _0x326033=_0x1a8446,_0x463a95=this;_0x463a95[_0x326033('0x7fc')]=_0x4b6f9d[_0x326033('0xacc')](),_0x463a95['voiceRecordings']={},_0x463a95[_0x326033('0x12b6')]=_0x326033('0x204d'),_0x463a95[_0x326033('0x582')]={'UserId':_0x463a95[_0x326033('0x7fc')]['id'],'fields':_0x326033('0xf85'),'sort':_0x326033('0xd82'),'limit':0xa,'page':0x1,'type':null},_0x463a95['downloadfile']=_0x259f66,_0x463a95[_0x326033('0x1d9a')]=_0x2cee4a,_0x463a95[_0x326033('0xe10')]=_0x24cd5e,_0x463a95['getVoiceRecordings']=_0x5423ad,_0x463a95[_0x326033('0x2318')]=_0x477068,_0x463a95['onSearchBarCollapse']=_0x5eeb92,_0x463a95[_0x326033('0x1104')]=_0xd724ed;function _0x477068(){var _0x4216d1=_0x326033;_0x463a95['quickFilters']=_0x3e2636();var _0xb09fc2=_0x27576e[_0x4216d1('0x38e')][_0x4216d1('0x173f')]('motion2.home.recordings:'+_0x463a95[_0x4216d1('0x7fc')]['id']);if(_0xb09fc2)try{_0xb09fc2=JSON[_0x4216d1('0x9b6')](_0xb09fc2),_0xb09fc2[_0x4216d1('0x582')]&&(_0x463a95[_0x4216d1('0x582')]=_0x51538b()[_0x4216d1('0x245')](_0xb09fc2[_0x4216d1('0x582')],[_0x4216d1('0xdb7'),'id']),_0x463a95[_0x4216d1('0x582')]['fields']='createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribestatus,UserId',_0x463a95[_0x4216d1('0x582')][_0x4216d1('0x1037')]=_0x463a95['currentUser']['id']);}catch(_0x2db8b0){console['error'](_0x2db8b0);}else{var _0x26205b={'$gte':_0x420d43()()['startOf'](_0x4216d1('0xae9'))[_0x4216d1('0x15db')](0x0,!![])[_0x4216d1('0x1f27')](),'$lte':_0x420d43()()[_0x4216d1('0x173a')](_0x4216d1('0xae9'))[_0x4216d1('0x15db')](0x0,!![])['format']()};_0x463a95[_0x4216d1('0x582')]['createdAt']=_0x26205b;}_0x463a95['isSearchBarVisible']=_0x463a95[_0x4216d1('0x582')][_0x4216d1('0xdb7')]?!![]:![],_0x463a95[_0x4216d1('0x144d')]();}function _0x259f66(_0x2f9151){var _0x192b5e=_0x326033;return _0x40f601[_0x192b5e('0x2366')][_0x192b5e('0x1cf9')]({'id':_0x2f9151['id'],'exists':!![]})[_0x192b5e('0x1dc2')][_0x192b5e('0xaa5')](function(_0x3b3a4a){var _0x44137f=_0x192b5e,_0x11d0d5=[_0x3b3a4a[_0x44137f('0x1bf1')]],_0x3342f7=new Blob(_0x11d0d5,{'type':_0x3b3a4a[_0x44137f('0x6c8')]}),_0x2ae581=window[_0x44137f('0x12aa')][_0x44137f('0x531')]('a');_0x2ae581['setAttribute']('href',URL['createObjectURL'](_0x3342f7)),_0x2ae581['setAttribute'](_0x44137f('0x1cf9'),_0x2f9151['uniqueid']+_0x2f9151[_0x44137f('0x1f27')]),_0x2ae581[_0x44137f('0x467')]();})['catch'](function(_0x290838){var _0x36f317=_0x192b5e;_0x35375e[_0x36f317('0x187f')]({'title':_0x290838[_0x36f317('0x2fa')]?_0x36f317('0x16c2')+_0x290838[_0x36f317('0x2fa')]+_0x36f317('0x169e')+_0x290838[_0x36f317('0x24df')]:_0x36f317('0x18d'),'msg':_0x290838[_0x36f317('0x10fd')]?JSON[_0x36f317('0xa48')](_0x290838[_0x36f317('0x10fd')]):_0x290838[_0x36f317('0x684')]()});});}function _0x2cee4a(_0x1a60e1){var _0x23ea4d=_0x326033;return _0x40f601[_0x23ea4d('0x2366')][_0x23ea4d('0xb07')]({'id':_0x1a60e1['id']})['$promise'][_0x23ea4d('0xaa5')](function(_0xd9d51c){var _0x32b9b8=_0x23ea4d,_0x271ed3=[_0xd9d51c['buffer']],_0x1f8d70=_0x32b9b8('0x1cf9'),_0x2d1844=new Blob(_0x271ed3,{'type':_0xd9d51c[_0x32b9b8('0x6c8')]});_0x1f8d70=_0x1a60e1[_0x32b9b8('0x1a6')];var _0x20d801=window[_0x32b9b8('0x12aa')][_0x32b9b8('0x531')]('a');_0x20d801[_0x32b9b8('0x107b')]('href',URL[_0x32b9b8('0x1e56')](_0x2d1844)),_0x20d801[_0x32b9b8('0x107b')]('download',_0x1f8d70),document[_0x32b9b8('0x54c')][_0x32b9b8('0x1315')](_0x20d801),_0x20d801[_0x32b9b8('0x467')]();})['catch'](function(_0x30f92f){var _0x451d4f=_0x23ea4d;_0x35375e['error']({'title':_0x30f92f[_0x451d4f('0x2fa')]?_0x451d4f('0x16c2')+_0x30f92f[_0x451d4f('0x2fa')]+_0x451d4f('0x169e')+_0x30f92f['statusText']:_0x451d4f('0x18d'),'msg':_0x30f92f['data']?JSON[_0x451d4f('0xa48')](_0x30f92f['data']):_0x30f92f[_0x451d4f('0x684')]()});});}function _0x3e2636(){var _0x17c6da=_0x326033;return[{'name':'Start\x20Date','key':_0x17c6da('0x24a1'),'type':'date','label':_0x17c6da('0xf3d')},{'name':'Type','key':_0x17c6da('0x6c8'),'type':_0x17c6da('0xbff'),'label':_0x17c6da('0x1866'),'customOptions':[{'value':'internal','translate':_0x17c6da('0x19e')},{'value':_0x17c6da('0x4b8'),'translate':_0x17c6da('0x14c8')},{'value':_0x17c6da('0x19d1'),'translate':_0x17c6da('0x2599')},{'value':_0x17c6da('0x24c8'),'translate':'VOICE.DIALER'},{'value':null,'translate':_0x17c6da('0x24ac')}]}];}function _0x24cd5e(_0x397015){var _0x6f61a1=_0x326033;_0x463a95[_0x6f61a1('0x1206')]=![],_0x463a95[_0x6f61a1('0x204d')]=_0x397015||{'count':0x0,'rows':[]};}function _0x5423ad(){var _0x133595=_0x326033;_0x463a95['searchInProgress']=!![],_0x463a95[_0x133595('0x582')][_0x133595('0x8b1')]=(_0x463a95['query']['page']-0x1)*_0x463a95['query'][_0x133595('0xf4d')];var _0x5c4e5b={'query':_0x463a95[_0x133595('0x582')]};_0x27576e[_0x133595('0x38e')][_0x133595('0xdbf')](_0x133595('0x1595')+_0x463a95['currentUser']['id'],JSON[_0x133595('0xa48')](_0x5c4e5b)),_0x463a95[_0x133595('0x159a')]=_0x40f601[_0x133595('0x2366')]['get'](_0x463a95[_0x133595('0x582')],_0x24cd5e)['$promise'];}function _0x5eeb92(){var _0x128361=_0x326033;_0x463a95[_0x128361('0x582')][_0x128361('0xdb7')]=undefined,_0x463a95['isSearchBarVisible']=![];}function _0xd724ed(){var _0x2b3612=_0x326033;_0x463a95[_0x2b3612('0x1d47')]=!![];}var _0x417e63=!![],_0x39f825=0x1;_0x177a7a['$watch'](_0x326033('0x1788'),function(_0x2ad57a,_0x1e4a8a){var _0x44ff8e=_0x326033;_0x417e63?_0x1b8d19(function(){_0x417e63=![];}):(!_0x1e4a8a&&(_0x39f825=_0x463a95[_0x44ff8e('0x582')][_0x44ff8e('0x41')]),_0x2ad57a!==_0x1e4a8a&&(_0x463a95[_0x44ff8e('0x582')][_0x44ff8e('0x41')]=0x1),!_0x2ad57a&&(_0x463a95[_0x44ff8e('0x582')][_0x44ff8e('0x41')]=_0x39f825),_0x463a95[_0x44ff8e('0x144d')]());});}const _0xf23f14=_0x5199ee,_0x148e44=_0x4fb511['p']+_0x1a8446('0xbb4');_0x31bfaa[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x186b'),'$mdDialog','$document','toasty',_0x1a8446('0x157'),'Auth'];function _0x31bfaa(_0x48eed6,_0x2678c3,_0x2245e0,_0x467a45,_0x5f29c1,_0x168394,_0x554e17,_0x434c83){var _0x3ba5bb=_0x1a8446,_0x29ed3d=this;_0x29ed3d[_0x3ba5bb('0x7fc')]=_0x434c83[_0x3ba5bb('0xacc')](),_0x29ed3d[_0x3ba5bb('0xa69')]=['Lowest',_0x3ba5bb('0x23c4'),_0x3ba5bb('0x1950'),_0x3ba5bb('0xaae'),_0x3ba5bb('0x1a3')],_0x29ed3d['crudPermissions']={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x29ed3d[_0x3ba5bb('0x1829')]={},_0x29ed3d[_0x3ba5bb('0x582')]={'id':_0x29ed3d[_0x3ba5bb('0x7fc')]['id'],'fields':_0x3ba5bb('0x1022'),'sort':_0x3ba5bb('0x300'),'limit':0xa,'page':0x1},_0x29ed3d[_0x3ba5bb('0x23af')]={'rows':[],'count':0x0},_0x29ed3d[_0x3ba5bb('0xe10')]=_0x1af8e0,_0x29ed3d['getScheduledCalls']=_0x2011df,_0x29ed3d[_0x3ba5bb('0x2318')]=_0x10f319,_0x29ed3d['isDateBeforeToday']=_0x330e38,_0x29ed3d[_0x3ba5bb('0x2239')]=_0x45bec1,_0x29ed3d[_0x3ba5bb('0x1416')]=_0x3656ed;function _0x10f319(){var _0x4e8938=_0x3ba5bb;_0x554e17['user']['getQueues']({'id':_0x434c83[_0x4e8938('0xacc')]()['id'],'fields':_0x4e8938('0x17fe'),'channel':_0x4e8938('0x1b9'),'type':_0x4e8938('0x19d1'),'nolimit':!![]})[_0x4e8938('0x1dc2')][_0x4e8938('0xaa5')](function(_0xc7d13e){var _0x3b99cf=_0x4e8938;_0x29ed3d[_0x3b99cf('0x23af')]=_0xc7d13e||{'count':0x0,'rows':[]};})[_0x4e8938('0xaa5')](function(){var _0x41ad74=_0x4e8938;_0x29ed3d[_0x41ad74('0x168c')]=_0x489891();})[_0x4e8938('0x253d')](function(_0x159a7a){var _0x1db707=_0x4e8938;console[_0x1db707('0x187f')](_0x159a7a);})[_0x4e8938('0x1889')](function(){var _0x35697f=_0x4e8938,_0x84a9fc=_0x2678c3[_0x35697f('0x38e')][_0x35697f('0x173f')](_0x35697f('0xb60')+_0x29ed3d['currentUser']['id']);if(_0x84a9fc)try{_0x84a9fc=JSON[_0x35697f('0x9b6')](_0x84a9fc),_0x84a9fc[_0x35697f('0x582')]&&(_0x29ed3d[_0x35697f('0x582')]=_0x51538b()[_0x35697f('0x245')](_0x84a9fc['query'],['filter']));}catch(_0x284c80){console['error'](_0x284c80);}else{var _0x542c87={'$gte':_0x420d43()()['startOf'](_0x35697f('0xae9'))[_0x35697f('0x15db')](0x0,!![])[_0x35697f('0x1f27')](),'$lte':_0x420d43()()[_0x35697f('0x173a')](_0x35697f('0xae9'))[_0x35697f('0x15db')](0x0,!![])[_0x35697f('0x1f27')]()};_0x29ed3d[_0x35697f('0x582')][_0x35697f('0x24a1')]=_0x542c87;}_0x29ed3d[_0x35697f('0x1498')]();});}function _0x1af8e0(_0x4ed755){_0x29ed3d['searchInProgress']=![],_0x29ed3d['scheduledCalls']=_0x4ed755||{'count':0x0,'rows':[]};}function _0x489891(){var _0x1554c0=_0x3ba5bb;return[{'name':'Start\x20Date','key':_0x1554c0('0x24a1'),'type':_0x1554c0('0xb87'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x1554c0('0x19eb'),'key':_0x1554c0('0x2438'),'type':'multiselect','label':'MOTIONDIALER.SELECT_CAMPAIGN','options':_0x29ed3d[_0x1554c0('0x23af')][_0x1554c0('0x580')]}];}function _0x2011df(){var _0xf7b682=_0x3ba5bb;_0x29ed3d[_0xf7b682('0x1206')]=!![],_0x29ed3d[_0xf7b682('0x582')]['id']=_0x29ed3d[_0xf7b682('0x7fc')]['id'],_0x29ed3d['query'][_0xf7b682('0x17ac')]=!![],_0x29ed3d[_0xf7b682('0x582')]['offset']=(_0x29ed3d[_0xf7b682('0x582')][_0xf7b682('0x41')]-0x1)*_0x29ed3d[_0xf7b682('0x582')][_0xf7b682('0xf4d')];var _0x545ba7={'query':_0x29ed3d[_0xf7b682('0x582')]};_0x2678c3['localStorage'][_0xf7b682('0xdbf')](_0xf7b682('0xb60')+_0x29ed3d['currentUser']['id'],JSON[_0xf7b682('0xa48')](_0x545ba7)),_0x29ed3d[_0xf7b682('0x159a')]=_0x554e17['user'][_0xf7b682('0x1498')](_0x29ed3d[_0xf7b682('0x582')],_0x1af8e0)[_0xf7b682('0x1dc2')];}function _0x45bec1(_0x4d391c,_0x2c5643){var _0x32a3d9=_0x3ba5bb;_0x467a45[_0x32a3d9('0x1e6d')]({'controller':_0x32a3d9('0x25b3'),'controllerAs':'vm','templateUrl':_0x148e44,'parent':angular[_0x32a3d9('0x1aa8')](_0x5f29c1[_0x32a3d9('0x54c')]),'targetEvent':_0x4d391c,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x2c5643,'hoppers':_0x29ed3d[_0x32a3d9('0x1829')][_0x32a3d9('0x580')],'license':null,'setting':null,'crudPermissions':_0x29ed3d[_0x32a3d9('0xada')]}});}function _0x18789d(_0x4dced4){var _0x5585f8=_0x3ba5bb;_0x554e17[_0x5585f8('0xe51')][_0x5585f8('0x926')]({'id':_0x4dced4['id']})[_0x5585f8('0x1dc2')][_0x5585f8('0xaa5')](function(){var _0x377023=_0x5585f8;_0x51538b()[_0x377023('0xf6d')](_0x29ed3d[_0x377023('0x1829')][_0x377023('0x580')],{'id':_0x4dced4['id']}),_0x29ed3d[_0x377023('0x1829')][_0x377023('0xd15')]-=0x1,!_0x29ed3d[_0x377023('0x1829')]['rows']['length']&&_0x29ed3d[_0x377023('0x1498')](),_0x168394[_0x377023('0xe10')]({'title':_0x377023('0x114e'),'msg':_0x4dced4['name']?'Scheduled\x20call\x20has\x20been\x20deleted!':''});})['catch'](function(_0x481933){var _0x37e5b9=_0x5585f8;if(_0x481933[_0x37e5b9('0x10fd')]&&_0x481933['data'][_0x37e5b9('0x4c6')]&&_0x481933[_0x37e5b9('0x10fd')][_0x37e5b9('0x4c6')][_0x37e5b9('0x2587')]){_0x29ed3d[_0x37e5b9('0x4c6')]=_0x481933[_0x37e5b9('0x10fd')][_0x37e5b9('0x4c6')]||[{'message':_0x481933[_0x37e5b9('0x684')](),'type':_0x37e5b9('0x179c')}];for(var _0x18fc34=0x0;_0x18fc34<_0x481933[_0x37e5b9('0x10fd')]['errors']['length'];_0x18fc34++){_0x168394[_0x37e5b9('0x187f')]({'title':_0x481933['data']['errors'][_0x18fc34][_0x37e5b9('0x6c8')],'msg':_0x481933['data'][_0x37e5b9('0x4c6')][_0x18fc34][_0x37e5b9('0x1402')]});}}else _0x168394['error']({'title':_0x481933[_0x37e5b9('0x2fa')]?_0x37e5b9('0x16c2')+_0x481933['status']+'\x20-\x20'+_0x481933[_0x37e5b9('0x24df')]:'SYSTEM:DELETE_HOPPER','msg':_0x481933[_0x37e5b9('0x10fd')]?JSON[_0x37e5b9('0xa48')](_0x481933[_0x37e5b9('0x10fd')][_0x37e5b9('0x1402')]):_0x481933[_0x37e5b9('0x1402')]||_0x481933[_0x37e5b9('0x684')]()});});}function _0x3656ed(_0x106d60,_0x3613b7){var _0x309399=_0x3ba5bb,_0x5b8318=_0x467a45['confirm']()[_0x309399('0x110a')](_0x309399('0x20c3'))[_0x309399('0x102e')](_0x309399('0x1bd2')+_0x309399('0x210d'))[_0x309399('0x5b5')]('delete\x20scheduled\x20call')[_0x309399('0x116d')](_0x3613b7)['ok']('OK')[_0x309399('0x2030')]('CANCEL');_0x467a45[_0x309399('0x1e6d')](_0x5b8318)[_0x309399('0xaa5')](function(){_0x18789d(_0x106d60);},function(){var _0x15723e=_0x309399;console[_0x15723e('0x18d5')](_0x15723e('0x2410'));});}function _0x330e38(_0x54a5c0){return _0x420d43()(_0x54a5c0)['isBefore'](_0x420d43()());}var _0x37cd52=!![],_0x2ef0f6=0x1;_0x48eed6['$watch'](_0x3ba5bb('0x1788'),function(_0xae194a,_0x10f581){var _0x355a7c=_0x3ba5bb;_0x37cd52?_0x2245e0(function(){_0x37cd52=![];}):(!_0x10f581&&(_0x2ef0f6=_0x29ed3d[_0x355a7c('0x582')][_0x355a7c('0x41')]),_0xae194a!==_0x10f581&&(_0x29ed3d['query'][_0x355a7c('0x41')]=0x1),!_0xae194a&&(_0x29ed3d[_0x355a7c('0x582')][_0x355a7c('0x41')]=_0x2ef0f6),_0x29ed3d['getScheduledCalls']());});}const _0x5eaceb=_0x31bfaa;_0x451b8d['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0xa66')];function _0x451b8d(_0x1b6549,_0x348775,_0xae8bb9,_0x1a3bbf,_0x16d353,_0x53fb66,_0x3674d9,_0x6c03de,_0x3239e9,_0x15455a,_0x4f9528){var _0x4bad67=_0x1a8446,_0x1dfa84=this;_0x1dfa84[_0x4bad67('0x272b')]=_0x6c03de[_0x4bad67('0xacc')](),_0x1dfa84[_0x4bad67('0x1202')]={},_0x1dfa84[_0x4bad67('0x143f')]={},_0x1dfa84[_0x4bad67('0x523')]={'count':0x0,'rows':[]},_0x1dfa84[_0x4bad67('0x1db4')]={'count':0x0,'rows':[]},_0x1dfa84[_0x4bad67('0x582')]={'includeAll':!![],'sort':_0x4bad67('0xd82'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x1dfa84['advancedSearch']={'fields':[{'name':'Id','column':'id','type':'number'},{'name':'Contact','column':_0x4bad67('0x1dc'),'type':_0x4bad67('0x7e6'),'options':{'searchFields':[_0x4bad67('0x24c1'),_0x4bad67('0x351'),_0x4bad67('0x1f69')],'route':{'model':_0x4bad67('0xdbd'),'action':_0x4bad67('0x2122'),'params':{'fields':_0x4bad67('0x14ba'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x4bad67('0x13f7')]}},{'name':_0x4bad67('0x1e4'),'column':_0x4bad67('0x54c'),'type':_0x4bad67('0xb37'),'options':{'excludedOperators':['$eq',_0x4bad67('0x13f7')]}},{'name':_0x4bad67('0x26ae'),'column':_0x4bad67('0x1cbd'),'type':_0x4bad67('0xbff'),'values':[{'id':0x0,'translate':_0x4bad67('0x166e')},{'id':0x1,'translate':_0x4bad67('0x73b')}],'options':{'excludedOperators':[_0x4bad67('0x13f7')]}},{'name':_0x4bad67('0x521'),'column':_0x4bad67('0x21b9'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x4bad67('0x272b'),'action':_0x4bad67('0x2122'),'params':{'role':_0x4bad67('0xeff'),'fields':_0x4bad67('0x25ff'),'nolimit':!![]}},'searchFields':[_0x4bad67('0x18e5'),'name'],'extraOperators':[_0x4bad67('0x2082')],'excludedOperators':[_0x4bad67('0x13f7')]}},{'name':_0x4bad67('0x75a'),'column':_0x4bad67('0xaa0'),'type':_0x4bad67('0x2468'),'options':{'route':{'model':_0x4bad67('0x272b'),'action':_0x4bad67('0x2741'),'params':{'id':_0x1dfa84[_0x4bad67('0x272b')]['id'],'nolimit':!![]}}}},{'name':_0x4bad67('0x67f'),'column':_0x4bad67('0x4e7'),'type':_0x4bad67('0x2468'),'options':{'route':{'model':_0x4bad67('0x38f'),'action':_0x4bad67('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x4bad67('0x930')]}},{'name':_0x4bad67('0x12f1'),'column':_0x4bad67('0x24a1'),'type':_0x4bad67('0xb87'),'options':{'excludedOperators':[_0x4bad67('0x13f7')]}},{'name':_0x4bad67('0x120b'),'column':'unreadMessages','type':_0x4bad67('0xbff'),'values':[{'id':0x1,'translate':_0x4bad67('0xdc4')},{'id':0x0,'translate':_0x4bad67('0x320')}],'options':{'excludedOperators':['$ne']}}]},_0x1dfa84[_0x4bad67('0xe68')]=_0x4bad67('0x1ad3'),_0x1dfa84[_0x4bad67('0x2318')]=_0x36a549,_0x1dfa84[_0x4bad67('0xe10')]=_0x3f2fa4,_0x1dfa84['getSmsInteractions']=_0x4abe99,_0x1dfa84[_0x4bad67('0x1b31')]=_0x104576,_0x1dfa84[_0x4bad67('0xe3b')]=_0xc8e568,_0x1dfa84['disposeInteraction']=_0x22d3bd,_0x1dfa84[_0x4bad67('0x603')]=_0x3db134,_0x1dfa84[_0x4bad67('0x149e')]=_0x50a891,_0x1dfa84[_0x4bad67('0x3f2')]=_0x4ef413,_0x1dfa84[_0x4bad67('0xe93')]=_0xe74359,_0x1dfa84[_0x4bad67('0x2396')]=_0x3b25c6,_0x1dfa84[_0x4bad67('0x1104')]=_0x196c57,_0x1dfa84[_0x4bad67('0x226e')]=_0x19a687;function _0x36a549(_0x10ccc4,_0x2716b4){var _0x4cf401=_0x4bad67;return _0x1dfa84[_0x4cf401('0x1202')]=_0x10ccc4,_0x1dfa84[_0x4cf401('0x143f')]=_0x2716b4,_0x3674d9[_0x4cf401('0x272b')]['get'+_0x51538b()[_0x4cf401('0x1791')](_0x4cf401('0x18a1'))]({'id':_0x1dfa84['user']['id'],'nolimit':!![]})[_0x4cf401('0x1dc2')]['then'](function(_0x356fdb){var _0x4ef892=_0x4cf401;return _0x1dfa84[_0x4ef892('0x18a1')]=_0x356fdb||{'count':0x0,'rows':[]},_0x3674d9['tag']['get']()[_0x4ef892('0x1dc2')];})[_0x4cf401('0xaa5')](function(_0x175a9a){var _0x4f26b7=_0x4cf401;_0x1dfa84[_0x4f26b7('0x523')]=_0x175a9a||{'count':0x0,'rows':[]};})[_0x4cf401('0xaa5')](function(){var _0x2520c9=_0x4cf401;_0x1dfa84[_0x2520c9('0x168c')]=_0x2b08e1();})[_0x4cf401('0x253d')](function(_0x454e2e){var _0x5149b8=_0x4cf401;console[_0x5149b8('0x187f')](_0x454e2e);})[_0x4cf401('0x1889')](function(){var _0x2a0ad9=_0x4cf401,_0x3e62e6=_0x16d353['localStorage'][_0x2a0ad9('0x173f')](_0x2a0ad9('0x15f4')+_0x1dfa84['user']['id']);if(_0x3e62e6)try{_0x3e62e6=JSON['parse'](_0x3e62e6);if(_0x3e62e6[_0x2a0ad9('0x582')]){_0x1dfa84[_0x2a0ad9('0x582')]=_0x51538b()['merge'](_0x1dfa84[_0x2a0ad9('0x582')],_0x3e62e6[_0x2a0ad9('0x582')]);if(_0x51538b()['isEmpty'](_0x1dfa84[_0x2a0ad9('0x18a1')][_0x2a0ad9('0x580')]))_0x1dfa84['query']['SmsAccountId']=[];else _0x51538b()['isEmpty'](_0x1dfa84[_0x2a0ad9('0x582')]['SmsAccountId'])&&(_0x1dfa84[_0x2a0ad9('0x582')][_0x2a0ad9('0xaa0')]=_0x51538b()(_0x1dfa84[_0x2a0ad9('0x18a1')][_0x2a0ad9('0x580')])[_0x2a0ad9('0x1246')]('id')['take']()[_0x2a0ad9('0x12f4')]());_0x1dfa84[_0x2a0ad9('0x582')][_0x2a0ad9('0x1015')]&&_0x1dfa84['query'][_0x2a0ad9('0x1015')][_0x2a0ad9('0x1f38')](_0x2a0ad9('0x6a5'))>=0x0&&(_0x1dfa84['query']=_0x51538b()[_0x2a0ad9('0x245')](_0x1dfa84[_0x2a0ad9('0x582')],_0x2a0ad9('0x1015'))),_0x1dfa84[_0x2a0ad9('0x582')][_0x2a0ad9('0x17ac')]=!![],_0x1dfa84[_0x2a0ad9('0x1d47')]=_0x1dfa84[_0x2a0ad9('0x582')][_0x2a0ad9('0xdb7')]?!![]:![];}}catch(_0x35051c){console[_0x2a0ad9('0x187f')](_0x35051c);}else{var _0x470b9a={'$gte':_0x420d43()()['startOf'](_0x2a0ad9('0xae9'))[_0x2a0ad9('0x15db')](0x0,!![])[_0x2a0ad9('0x1f27')](),'$lte':_0x420d43()()[_0x2a0ad9('0x173a')](_0x2a0ad9('0xae9'))['utcOffset'](0x0,!![])[_0x2a0ad9('0x1f27')]()},_0x528eca={'SmsAccountId':_0x51538b()['map'](_0x1dfa84[_0x2a0ad9('0x18a1')]['rows'],'id'),'createdAt':_0x470b9a};_0x1dfa84[_0x2a0ad9('0x582')]=_0x51538b()[_0x2a0ad9('0x283c')](_0x1dfa84['query'],_0x528eca);}_0x3239e9['on'](_0x2a0ad9('0x1f6e'),_0x225859),_0x3239e9['on']('smsInteraction:update',_0x225859),_0x3239e9['on'](_0x2a0ad9('0x1645'),_0xafa14f),_0x3239e9['on'](_0x2a0ad9('0x4eb'),_0x58ff16),_0x3239e9['on'](_0x2a0ad9('0x1468'),_0x58ff16),_0x3239e9['on'](_0x2a0ad9('0x321'),_0x4f8826),_0x3239e9['on'](_0x2a0ad9('0x1659'),_0x57c761),_0x4abe99(_0x1dfa84[_0x2a0ad9('0x582')][_0x2a0ad9('0x41')]);});}function _0x2b08e1(){var _0x42158d=_0x4bad67;return[{'name':'Start\x20Date','key':'createdAt','type':_0x42158d('0xb87'),'label':_0x42158d('0xf3d')},{'name':_0x42158d('0x1cd2'),'key':_0x42158d('0x7b7'),'type':_0x42158d('0xbff'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x42158d('0x320')},{'value':0x1,'translate':_0x42158d('0xdc4')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Status','key':_0x42158d('0x1cbd'),'type':_0x42158d('0xbff'),'label':_0x42158d('0x617'),'customOptions':[{'value':0x0,'translate':_0x42158d('0x166e')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x42158d('0x20c4')}]},{'name':_0x42158d('0x75a'),'key':'SmsAccountId','type':'multiselect','label':_0x42158d('0x136e'),'options':_0x1dfa84[_0x42158d('0x18a1')][_0x42158d('0x580')],'clearAll':![]},{'name':_0x42158d('0x521'),'key':'UserId','type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x1dfa84['user']['id'],'translate':'DASHBOARDS.ME'},{'value':_0x42158d('0x1ed9'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x42158d('0x20c4')}]},{'name':_0x42158d('0x4e7'),'key':_0x42158d('0x38f'),'type':_0x42158d('0x2468'),'label':_0x42158d('0x6a6'),'options':_0x1dfa84['tags'][_0x42158d('0x580')],'placeholder':_0x42158d('0x1161')}];}function _0x3f2fa4(_0x25db87){var _0x312762=_0x4bad67;_0x1dfa84[_0x312762('0x1206')]=![],_0x1dfa84['smsInteractions']=_0x25db87||{'count':0x0,'rows':[]};for(var _0x30cc3d=0x0;_0x30cc3d<_0x1dfa84['smsInteractions']['rows'][_0x312762('0x2587')];_0x30cc3d+=0x1){_0x3db134(_0x1dfa84[_0x312762('0x1db4')]['rows'][_0x30cc3d]);}}function _0x4abe99(_0x309419){var _0x1c2c63=_0x4bad67;_0x1dfa84['searchInProgress']=!![];!_0x309419&&(_0x1dfa84['query']['page']=0x1);_0x1dfa84[_0x1c2c63('0x582')][_0x1c2c63('0x8b1')]=(_0x1dfa84[_0x1c2c63('0x582')][_0x1c2c63('0x41')]-0x1)*_0x1dfa84[_0x1c2c63('0x582')][_0x1c2c63('0xf4d')];var _0x2c016d=_0x16d353[_0x1c2c63('0x38e')][_0x1c2c63('0x173f')](_0x1c2c63('0x15f4')+_0x1dfa84[_0x1c2c63('0x272b')]['id']);_0x2c016d=_0x2c016d?JSON['parse'](_0x2c016d):{},_0x2c016d[_0x1c2c63('0x582')]=_0x1dfa84[_0x1c2c63('0x582')],_0x16d353[_0x1c2c63('0x38e')][_0x1c2c63('0xdbf')](_0x1c2c63('0x15f4')+_0x1dfa84[_0x1c2c63('0x272b')]['id'],JSON[_0x1c2c63('0xa48')](_0x2c016d)),_0x1dfa84[_0x1c2c63('0x159a')]=_0x3674d9[_0x1c2c63('0x6da')][_0x1c2c63('0x2122')](_0x1dfa84[_0x1c2c63('0x582')],_0x3f2fa4)[_0x1c2c63('0x1dc2')];}function _0x104576(_0x26ef9c,_0x2b4aa4){var _0x22d7f7=_0x4bad67;_0x1b6549[_0x22d7f7('0x24a3')]['vm']['addInteractionTab'](_0x22d7f7('0x18da'),_0x2b4aa4);}function _0xc8e568(_0x406ff7,_0x119fc2,_0x218194){var _0x3b90e0=_0x4bad67;_0x3674d9[_0x3b90e0('0x6da')][_0x3b90e0('0x1cf9')]({'id':_0x119fc2['id'],'attachments':_0x218194})['$promise'][_0x3b90e0('0xaa5')](function(_0xab3b0f){var _0xc9976d=_0x3b90e0,_0x13f133=[_0xab3b0f['buffer']],_0x485e48=_0xc9976d('0xbce')+_0x119fc2['id']+_0xc9976d('0x966'),_0xec605f=new Blob(_0x13f133,{'type':_0xab3b0f['type']}),_0x11969d=window[_0xc9976d('0x12aa')]['createElement']('a');_0x11969d[_0xc9976d('0x107b')](_0xc9976d('0x18ae'),URL[_0xc9976d('0x1e56')](_0xec605f)),_0x11969d[_0xc9976d('0x107b')](_0xc9976d('0x1cf9'),_0x485e48),document['body']['appendChild'](_0x11969d),_0x11969d[_0xc9976d('0x467')]();})[_0x3b90e0('0x253d')](function(_0x378e45){var _0x205463=_0x3b90e0;if(_0x378e45[_0x205463('0x10fd')]&&_0x378e45[_0x205463('0x10fd')][_0x205463('0x4c6')]&&_0x378e45[_0x205463('0x10fd')][_0x205463('0x4c6')][_0x205463('0x2587')])for(var _0x5acc7e=0x0;_0x5acc7e<_0x378e45[_0x205463('0x10fd')]['errors'][_0x205463('0x2587')];_0x5acc7e+=0x1){_0x15455a[_0x205463('0x187f')]({'title':_0x378e45[_0x205463('0x10fd')][_0x205463('0x4c6')][_0x5acc7e][_0x205463('0x6c8')],'msg':_0x378e45[_0x205463('0x10fd')]['errors'][_0x5acc7e][_0x205463('0x1402')]});}else _0x15455a['error']({'title':_0x378e45[_0x205463('0x2fa')]?_0x205463('0x16c2')+_0x378e45[_0x205463('0x2fa')]+_0x205463('0x169e')+_0x378e45['statusText']:_0x205463('0xe3b'),'msg':_0x378e45[_0x205463('0x10fd')]?JSON[_0x205463('0xa48')](_0x378e45['data']['message']):_0x378e45[_0x205463('0x684')]()});});}function _0x22d3bd(_0x55a6ee,_0x897725){var _0x345b3c=_0x4bad67,_0x2aeb9e=_0x1dfa84['user'][_0x345b3c('0x2519')]||_0x1dfa84[_0x345b3c('0x272b')][_0x345b3c('0x1f36')]||_0x1dfa84[_0x345b3c('0x272b')][_0x345b3c('0x21f')]||_0x1dfa84['user'][_0x345b3c('0xc8f')]||_0x1dfa84[_0x345b3c('0x272b')][_0x345b3c('0x135b')],_0x14104b=!_0x897725[_0x345b3c('0x75a')][_0x345b3c('0x1844')];_0xae8bb9[_0x345b3c('0x1e6d')]({'controller':_0x345b3c('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular['element'](_0x1a3bbf[_0x345b3c('0x54c')]),'clickOutsideToClose':_0x14104b,'escapeToClose':_0x14104b,'onRemoving':function _0x5d0641(){var _0x5320c5=_0x345b3c;_0x1dfa84[_0x5320c5('0x272b')]&&_0x897725[_0x5320c5('0x75a')]['mandatoryDisposition']&&!_0x2aeb9e&&_0x3674d9[_0x5320c5('0x272b')][_0x5320c5('0x297')]({'id':_0x1dfa84[_0x5320c5('0x272b')]['id']})[_0x5320c5('0x1dc2')][_0x5320c5('0x253d')](function(_0x4218b3){var _0x642a11=_0x5320c5;console[_0x642a11('0x187f')](_0x4218b3);});},'locals':{'user':_0x1dfa84[_0x345b3c('0x272b')],'channel':'sms','interaction':_0x897725}});}function _0x3db134(_0x502c2a){var _0x29920c=_0x4bad67;_0x502c2a[_0x29920c('0x1dc')]?(_0x502c2a['contactName']=(_0x502c2a['Contact'][_0x29920c('0x24c1')]||'')+'\x20'+(_0x502c2a[_0x29920c('0x1dc')][_0x29920c('0x351')]||''),_0x502c2a[_0x29920c('0x1420')]=_0x502c2a['Contact']['mobile']):_0x502c2a['contactName']=_0x53fb66[_0x29920c('0x213f')](_0x29920c('0x22f7'));}function _0x50a891(_0x35286c){var _0x542d78=_0x4bad67;if(_0x35286c[_0x542d78('0x1037')])return _0x35286c['UserId']===_0x1dfa84[_0x542d78('0x272b')]['id']?_0x53fb66['instant'](_0x542d78('0x1855')):_0x35286c[_0x542d78('0x40')][_0x542d78('0x18e5')]+'\x20<'+_0x35286c[_0x542d78('0x40')][_0x542d78('0x1b0d')]+'>';return _0x53fb66[_0x542d78('0x213f')](_0x542d78('0x1a1c'));}function _0x4ef413(_0x2b3a7f){var _0x504f0e=_0x4bad67;if(_0x2b3a7f['Account'])return _0x2b3a7f[_0x504f0e('0x75a')][_0x504f0e('0x24ec')];return _0x53fb66['instant']('DASHBOARDS.UNKNOWN');}function _0xe74359(_0x55b463,_0x25e92e){var _0xb15676=_0x4bad67;_0xae8bb9['show']({'controller':_0xb15676('0x53f'),'controllerAs':'vm','templateUrl':_0x4bb35d,'parent':angular['element'](_0x1a3bbf[_0xb15676('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x25e92e,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})['then'](function(_0x3bbaf0){var _0x4b8451=_0xb15676;if(_0x3bbaf0){if(_0x3bbaf0[_0x4b8451('0x1402')]&&_0x3bbaf0[_0x4b8451('0x1402')]['savedAsDraft']){var _0xf0d971={'channel':'sms','account':_0x25e92e,'message':_0x3bbaf0[_0x4b8451('0x1402')],'contact':_0x3bbaf0[_0x4b8451('0x3c6')]};_0x4f9528[_0x4b8451('0x202c')](_0xf0d971);}else{var _0x38f46b=_0x3bbaf0;return _0x3674d9[_0x4b8451('0x1658')][_0x4b8451('0x1e80')]({'id':_0x25e92e['id']},_0x38f46b)[_0x4b8451('0x1dc2')]['then'](function(_0x182033){var _0x378185=_0x4b8451;_0x15455a[_0x378185('0xe10')]({'title':_0x378185('0x812'),'msg':_0x378185('0x22b4')}),_0x1b6549[_0x378185('0x24a3')]['vm'][_0x378185('0x15e0')](_0x378185('0x18da'),_0x182033);})[_0x4b8451('0x253d')](function(_0x527784){var _0x3479d5=_0x4b8451;if(_0x527784['data']&&_0x527784[_0x3479d5('0x10fd')][_0x3479d5('0x4c6')]&&_0x527784['data'][_0x3479d5('0x4c6')][_0x3479d5('0x2587')])for(var _0x4fadc3=0x0;_0x4fadc3<_0x527784[_0x3479d5('0x10fd')][_0x3479d5('0x4c6')]['length'];_0x4fadc3++){_0x15455a[_0x3479d5('0x187f')]({'title':_0x527784[_0x3479d5('0x10fd')][_0x3479d5('0x4c6')][_0x4fadc3][_0x3479d5('0x6c8')],'msg':_0x527784[_0x3479d5('0x10fd')]['errors'][_0x4fadc3]['message']});}else _0x15455a['error']({'title':_0x527784[_0x3479d5('0x2fa')]?_0x3479d5('0x16c2')+_0x527784[_0x3479d5('0x2fa')]+_0x3479d5('0x169e')+_0x527784[_0x3479d5('0x24df')]:_0x3479d5('0x27eb'),'msg':_0x527784[_0x3479d5('0x10fd')]?JSON[_0x3479d5('0xa48')](_0x527784[_0x3479d5('0x10fd')]['message']):_0x527784[_0x3479d5('0x1402')]||_0x527784[_0x3479d5('0x684')]()});});}}});}function _0x4f8826(_0x18fc23){var _0x984c49=_0x4bad67,_0x5464f0,_0x5d9f68=_0x51538b()[_0x984c49('0xe9e')](_0x1dfa84['smsInteractions'][_0x984c49('0x580')],{'id':_0x18fc23[_0x984c49('0x6b3')]});_0x5d9f68&&_0x5d9f68[_0x984c49('0x16b4')]&&(_0x5464f0=_0x51538b()[_0x984c49('0xe9e')](_0x5d9f68[_0x984c49('0x16b4')],{'id':_0x18fc23[_0x984c49('0x1037')]}),!_0x5464f0&&_0x5d9f68[_0x984c49('0x16b4')]['push']({'id':_0x18fc23['UserId']}));}function _0x57c761(_0x2c58c0){var _0x17e78b=_0x4bad67,_0x37ec21=_0x51538b()['find'](_0x1dfa84[_0x17e78b('0x1db4')][_0x17e78b('0x580')],{'id':_0x2c58c0[_0x17e78b('0x6b3')]});_0x37ec21&&_0x37ec21[_0x17e78b('0x16b4')]&&_0x51538b()[_0x17e78b('0xf6d')](_0x37ec21[_0x17e78b('0x16b4')],{'id':_0x2c58c0[_0x17e78b('0x1037')]});}function _0x225859(_0x350b7b){var _0x23f9a3=_0x4bad67;if(_0x350b7b){var _0x1e5e64=_0x51538b()[_0x23f9a3('0xe9e')](_0x1dfa84['smsInteractions']['rows'],{'id':_0x350b7b['id']});if(_0x1e5e64){_0x1e5e64[_0x23f9a3('0x16b4')]=[];_0x350b7b[_0x23f9a3('0x1cbd')]&&(_0x1e5e64[_0x23f9a3('0x1551')]=0x0);if(_0x1dfa84[_0x23f9a3('0x582')][_0x23f9a3('0x1015')]){var _0x31853c=_0x51538b()[_0x23f9a3('0x6e8')](_0x1dfa84['query']['sort'],'-')?_0x23f9a3('0x71c'):'asc';_0x1dfa84['smsInteractions'][_0x23f9a3('0x580')]=_0x51538b()[_0x23f9a3('0x271d')](_0x1dfa84['smsInteractions'][_0x23f9a3('0x580')],_0x51538b()[_0x23f9a3('0x134c')](_0x1dfa84[_0x23f9a3('0x582')][_0x23f9a3('0x1015')],'-'),_0x31853c);}_0x51538b()['merge'](_0x1e5e64,_0x51538b()[_0x23f9a3('0x104e')](_0x350b7b,_0x51538b()[_0x23f9a3('0x9f2')](_0x1e5e64)));}else _0x4abe99(_0x1dfa84[_0x23f9a3('0x582')][_0x23f9a3('0x41')]);}}function _0xafa14f(_0x4bc965){var _0x197bb5=_0x4bad67;if(_0x4bc965){var _0x5a0240=_0x51538b()['find'](_0x1dfa84['smsInteractions'][_0x197bb5('0x580')],{'id':_0x4bc965['id']});_0x5a0240&&(_0x5a0240['Tags']=_0x4bc965[_0x197bb5('0x523')]||[],_0x51538b()[_0x197bb5('0x283c')](_0x5a0240,_0x51538b()[_0x197bb5('0x104e')](_0x4bc965,_0x51538b()[_0x197bb5('0x9f2')](_0x5a0240))));}}function _0x58ff16(_0x1737d9){var _0x3521c8=_0x4bad67;if(_0x1737d9&&!_0x1737d9[_0x3521c8('0x203a')]){var _0x33f754=_0x51538b()[_0x3521c8('0xe9e')](_0x1dfa84[_0x3521c8('0x1db4')][_0x3521c8('0x580')],{'id':_0x1737d9[_0x3521c8('0x6b3')]});if(_0x33f754){var _0x2944cf=_0x51538b()[_0x3521c8('0xe9e')](_0x33f754[_0x3521c8('0x1cd2')],{'id':_0x1737d9['id']});_0x2944cf?_0x51538b()['merge'](_0x2944cf,_0x51538b()['pick'](_0x1737d9,_0x51538b()[_0x3521c8('0x9f2')](_0x2944cf))):(_0x51538b()[_0x3521c8('0x89a')](_0x33f754['Messages'])&&(_0x33f754['Messages']={'count':0x0}),!_0x1737d9[_0x3521c8('0x7b7')]&&(_0x33f754[_0x3521c8('0x1cd2')][_0x3521c8('0xd15')]+=0x1));}}}function _0x3b25c6(){_0x1dfa84['isSearchBarVisible']=![];}function _0x196c57(){var _0x354f6e=_0x4bad67;_0x1dfa84[_0x354f6e('0x1d47')]=!![];}function _0x19a687(){var _0x234798=_0x4bad67;_0x1dfa84[_0x234798('0x1d47')]=![],_0xae8bb9[_0x234798('0x1e6d')]({'controller':_0x234798('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0x234798('0x1aa8')](_0x1a3bbf[_0x234798('0x54c')]),'clickOutsideToClose':![],'locals':{'color':_0x1dfa84[_0x234798('0xe68')],'fields':_0x1dfa84['advancedSearch']['fields'],'storagePath':'home.sms'},'fullscreen':!![]})[_0x234798('0xaa5')](function(_0x4a9c65){var _0x99f5a8=_0x234798;_0x1dfa84['query'][_0x99f5a8('0x1785')]=_0x4a9c65===![]?undefined:_0x4a9c65;if(_0x1dfa84[_0x99f5a8('0x582')]['search']||_0x4a9c65===![])_0x4abe99();})['catch'](function(_0x33bcbf){var _0x2462d2=_0x234798;_0x15455a[_0x2462d2('0x187f')]({'title':'ERROR','msg':_0x33bcbf['data']?JSON[_0x2462d2('0xa48')](_0x33bcbf[_0x2462d2('0x10fd')][_0x2462d2('0x1402')]):_0x33bcbf['toString']()});});}var _0x884a04=!![],_0x1deaf7=0x1;_0x1b6549[_0x4bad67('0x1ccf')]('vm.query.filter',function(_0x574974,_0x3903ff){var _0x281f33=_0x4bad67;_0x884a04?_0x348775(function(){_0x884a04=![];}):(!_0x3903ff&&(_0x1deaf7=_0x1dfa84[_0x281f33('0x582')][_0x281f33('0x41')]),_0x574974!==_0x3903ff&&(_0x1dfa84[_0x281f33('0x582')][_0x281f33('0x41')]=0x1),!_0x574974&&(_0x1dfa84[_0x281f33('0x582')][_0x281f33('0x41')]=_0x1deaf7),_0x4abe99(_0x1dfa84[_0x281f33('0x582')]['page']));}),_0x1b6549[_0x4bad67('0xc75')]('$destroy',function(){var _0xc4d271=_0x4bad67;_0x3239e9[_0xc4d271('0x2629')](_0xc4d271('0x4eb')),_0x3239e9[_0xc4d271('0x2629')](_0xc4d271('0x1468')),_0x3239e9['removeAllListeners'](_0xc4d271('0x1f6e')),_0x3239e9[_0xc4d271('0x2629')](_0xc4d271('0x1645')),_0x3239e9['removeAllListeners']('smsInteraction:update'),_0x3239e9[_0xc4d271('0x2629')](_0xc4d271('0x321')),_0x3239e9[_0xc4d271('0x2629')](_0xc4d271('0x1659'));});}const _0x6f6787=_0x451b8d,_0x120ba2=_0x4fb511['p']+_0x1a8446('0xeb5');_0x1230dd[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),'api',_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x27bf'),_0x1a8446('0x51'),_0x1a8446('0x186b')];function _0x1230dd(_0x40b99f,_0x3dc391,_0x16e4d1,_0x4d8756,_0x38ce2e,_0x5a5d1c,_0x128003,_0x1eb720){var _0x22cc7e=_0x1a8446,_0x5a1493=this;_0x5a1493[_0x22cc7e('0x7fc')]=_0x38ce2e[_0x22cc7e('0xacc')](),_0x5a1493['voiceCalls']={},_0x5a1493[_0x22cc7e('0x12b6')]=_0x22cc7e('0x1dfe'),_0x5a1493[_0x22cc7e('0x582')]={'UserId':_0x5a1493[_0x22cc7e('0x7fc')]['id'],'fields':_0x22cc7e('0x177b'),'sort':_0x22cc7e('0xd82'),'limit':0xa,'page':0x1,'type':null},_0x5a1493[_0x22cc7e('0xe10')]=_0x68e91e,_0x5a1493[_0x22cc7e('0x12fe')]=_0x442042,_0x5a1493[_0x22cc7e('0x2318')]=_0x305c00,_0x5a1493[_0x22cc7e('0x1a01')]=_0x5be8ef,_0x5a1493['onSearchBarCollapse']=_0x3002f9,_0x5a1493[_0x22cc7e('0x1104')]=_0x3b8328;function _0x305c00(){var _0x23ae15=_0x22cc7e;return _0x16e4d1[_0x23ae15('0x38f')]['get']()['$promise'][_0x23ae15('0xaa5')](function(_0x556824){var _0x12ed9a=_0x23ae15;_0x5a1493[_0x12ed9a('0x523')]=_0x556824||{'count':0x0,'rows':[]};})[_0x23ae15('0xaa5')](function(){var _0x60e58e=_0x23ae15;_0x5a1493[_0x60e58e('0x168c')]=_0x1ce4cb();})[_0x23ae15('0x253d')](function(_0x15fa13){var _0x3dd0f5=_0x23ae15;_0x4d8756[_0x3dd0f5('0x187f')]({'title':_0x3dd0f5('0x25f5'),'msg':_0x15fa13[_0x3dd0f5('0x10fd')]?JSON[_0x3dd0f5('0xa48')](_0x15fa13['data'][_0x3dd0f5('0x1402')]):_0x15fa13[_0x3dd0f5('0x1402')]||_0x15fa13[_0x3dd0f5('0x684')]()}),_0x5a1493[_0x3dd0f5('0x523')]={'count':0x0,'rows':[]};})[_0x23ae15('0x1889')](function(){var _0x4433dc=_0x23ae15,_0x27da88=_0x5a5d1c[_0x4433dc('0x38e')][_0x4433dc('0x173f')]('motion2.home.voice:'+_0x5a1493[_0x4433dc('0x7fc')]['id']);if(_0x27da88)try{_0x27da88=JSON[_0x4433dc('0x9b6')](_0x27da88),_0x27da88[_0x4433dc('0x582')]&&(_0x5a1493[_0x4433dc('0x582')]=_0x51538b()['omit'](_0x27da88['query'],_0x4433dc('0xdb7')));}catch(_0x31ee84){console[_0x4433dc('0x187f')](_0x31ee84);}else{var _0x5d537b={'$gte':_0x420d43()()[_0x4433dc('0x206d')](_0x4433dc('0xae9'))[_0x4433dc('0x15db')](0x0,!![])[_0x4433dc('0x1f27')](),'$lte':_0x420d43()()[_0x4433dc('0x173a')]('month')[_0x4433dc('0x15db')](0x0,!![])[_0x4433dc('0x1f27')]()};_0x5a1493['query'][_0x4433dc('0x24a1')]=_0x5d537b;}_0x442042();});}function _0x1ce4cb(){var _0x51264d=_0x22cc7e;return[{'name':_0x51264d('0x12f1'),'key':'createdAt','type':_0x51264d('0xb87'),'label':_0x51264d('0xf3d')},{'name':_0x51264d('0x1e54'),'key':_0x51264d('0x6c8'),'type':'select','label':_0x51264d('0x1866'),'customOptions':[{'value':_0x51264d('0x1b0d'),'translate':_0x51264d('0x19e')},{'value':'inbound','translate':_0x51264d('0x14c8')},{'value':'outbound','translate':_0x51264d('0x2599')},{'value':_0x51264d('0x24c8'),'translate':_0x51264d('0xd6a')},{'value':null,'translate':'VOICE.ALL'}]}];}function _0x68e91e(_0x107965){var _0x1ee30e=_0x22cc7e;_0x5a1493[_0x1ee30e('0x1206')]=![],_0x5a1493['voiceCalls']=_0x107965||{'count':0x0,'rows':[]};}function _0x442042(){var _0xe9781b=_0x22cc7e;_0x5a1493[_0xe9781b('0x1206')]=!![],_0x5a1493[_0xe9781b('0x582')][_0xe9781b('0x8b1')]=(_0x5a1493[_0xe9781b('0x582')][_0xe9781b('0x41')]-0x1)*_0x5a1493[_0xe9781b('0x582')][_0xe9781b('0xf4d')];var _0x3bdb04={'query':_0x5a1493[_0xe9781b('0x582')]};_0x5a5d1c[_0xe9781b('0x38e')][_0xe9781b('0xdbf')](_0xe9781b('0x146b')+_0x5a1493['currentUser']['id'],JSON[_0xe9781b('0xa48')](_0x3bdb04)),_0x5a1493['promise']=_0x16e4d1[_0xe9781b('0x4d4')]['get'](_0x5a1493[_0xe9781b('0x582')],_0x68e91e)[_0xe9781b('0x1dc2')];}function _0x5be8ef(_0x4f3d6e){var _0x39a6c1=_0x22cc7e;_0x40b99f['show']({'controller':_0x39a6c1('0x76f'),'controllerAs':'vm','templateUrl':_0x120ba2,'parent':angular[_0x39a6c1('0x1aa8')](_0x3dc391[_0x39a6c1('0x54c')]),'clickOutsideToClose':!![],'locals':{'call':_0x4f3d6e}});}function _0x3002f9(){var _0x3fa746=_0x22cc7e;_0x5a1493[_0x3fa746('0x582')][_0x3fa746('0xdb7')]=undefined,_0x5a1493[_0x3fa746('0x1d47')]=![];}function _0x3b8328(){var _0xc76e6f=_0x22cc7e;_0x5a1493[_0xc76e6f('0x1d47')]=!![];}var _0x152bae=!![],_0x5243f9=0x1;_0x128003[_0x22cc7e('0x1ccf')]('vm.query.filter',function(_0x415d7d,_0x41cf81){var _0x3a2698=_0x22cc7e;_0x152bae?_0x1eb720(function(){_0x152bae=![];}):(!_0x41cf81&&(_0x5243f9=_0x5a1493[_0x3a2698('0x582')][_0x3a2698('0x41')]),_0x415d7d!==_0x41cf81&&(_0x5a1493[_0x3a2698('0x582')][_0x3a2698('0x41')]=0x1),!_0x415d7d&&(_0x5a1493[_0x3a2698('0x582')][_0x3a2698('0x41')]=_0x5243f9),_0x5a1493[_0x3a2698('0x12fe')]());});}const _0x515dfa=_0x1230dd;_0x75a94e['$inject']=[_0x1a8446('0x2378'),'call'];function _0x75a94e(_0x52dea8,_0xb36f31){var _0xadbd63=_0x1a8446,_0x332ad7=this;_0x332ad7[_0xadbd63('0x1432')]=_0xb36f31;function _0x27cf01(){var _0x67a06f=_0xadbd63;_0x52dea8[_0x67a06f('0x1120')]();}_0x332ad7[_0xadbd63('0x2023')]=_0x27cf01;}const _0x4b3703=_0x75a94e;_0x14b4c3['$inject']=[_0x1a8446('0x51'),'$timeout',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0xa66')];function _0x14b4c3(_0x182eca,_0xade08f,_0x1b2c1e,_0x5ae6a6,_0x36f9a0,_0x3abebd,_0xf319ad,_0x2c4eac,_0xaa6dc5,_0xf1cd6,_0x3482b0){var _0x346cbe=_0x1a8446,_0x2a3750=this;_0x2a3750[_0x346cbe('0x272b')]=_0x2c4eac[_0x346cbe('0xacc')](),_0x2a3750[_0x346cbe('0x1202')]={},_0x2a3750['setting']={},_0x2a3750[_0x346cbe('0x523')]={'count':0x0,'rows':[]},_0x2a3750[_0x346cbe('0xe4f')]={'count':0x0,'rows':[]},_0x2a3750['query']={'includeAll':!![],'sort':_0x346cbe('0xd82'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x2a3750[_0x346cbe('0xd67')]={'fields':[{'name':'Id','column':'id','type':_0x346cbe('0x219a')},{'name':_0x346cbe('0x1dc'),'column':_0x346cbe('0x1dc'),'type':_0x346cbe('0x7e6'),'options':{'searchFields':['firstName','lastName',_0x346cbe('0x1f69')],'route':{'model':_0x346cbe('0xdbd'),'action':_0x346cbe('0x2122'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x346cbe('0x1bfb'),'nolimit':!![]}},'extraOperators':[_0x346cbe('0x2082')],'excludedOperators':[_0x346cbe('0x13f7')]}},{'name':_0x346cbe('0x1e4'),'column':'body','type':_0x346cbe('0xb37'),'options':{'excludedOperators':[_0x346cbe('0x221d'),_0x346cbe('0x13f7')]}},{'name':'Status','column':'closed','type':_0x346cbe('0xbff'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x346cbe('0x13f7')]}},{'name':'Agent','column':_0x346cbe('0x21b9'),'type':_0x346cbe('0x7e6'),'options':{'table':'i','route':{'model':'user','action':'get','params':{'role':_0x346cbe('0xeff'),'fields':_0x346cbe('0x25ff'),'nolimit':!![]}},'searchFields':[_0x346cbe('0x18e5'),_0x346cbe('0x25d6')],'extraOperators':[_0x346cbe('0x2082')],'excludedOperators':[_0x346cbe('0x13f7')]}},{'name':_0x346cbe('0x75a'),'column':_0x346cbe('0x1ab5'),'type':'multiselect','options':{'route':{'model':'user','action':_0x346cbe('0xe95'),'params':{'id':_0x2a3750[_0x346cbe('0x272b')]['id'],'nolimit':!![]}}}},{'name':_0x346cbe('0x67f'),'column':_0x346cbe('0x4e7'),'type':'multiselect','options':{'route':{'model':_0x346cbe('0x38f'),'action':_0x346cbe('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x346cbe('0x930')]}},{'name':_0x346cbe('0x12f1'),'column':_0x346cbe('0x24a1'),'type':'date','options':{'excludedOperators':[_0x346cbe('0x13f7')]}},{'name':_0x346cbe('0x120b'),'column':_0x346cbe('0x1551'),'type':_0x346cbe('0xbff'),'values':[{'id':0x1,'translate':_0x346cbe('0xdc4')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':['$ne']}}]},_0x2a3750['sectionColor']=_0x346cbe('0x9b1'),_0x2a3750[_0x346cbe('0x2318')]=_0x244781,_0x2a3750[_0x346cbe('0xe10')]=_0x269a32,_0x2a3750['getWhatsappInteractions']=_0x5770a0,_0x2a3750['showWhatsappInteraction']=_0x4783ad,_0x2a3750[_0x346cbe('0x158e')]=_0x44d2fa,_0x2a3750[_0x346cbe('0xa8c')]=_0x281e07,_0x2a3750[_0x346cbe('0x603')]=_0x4050b5,_0x2a3750[_0x346cbe('0x149e')]=_0x54ee32,_0x2a3750[_0x346cbe('0x2130')]=_0x8d50e8,_0x2a3750[_0x346cbe('0x222a')]=_0x50b3ac,_0x2a3750[_0x346cbe('0x2396')]=_0x4c790f,_0x2a3750[_0x346cbe('0x1104')]=_0x5abd53,_0x2a3750[_0x346cbe('0x226e')]=_0x1bcc6e;function _0x244781(_0x31a139,_0x333403){var _0x3632e3=_0x346cbe;return _0x2a3750[_0x3632e3('0x1202')]=_0x31a139,_0x2a3750[_0x3632e3('0x143f')]=_0x333403,_0xf319ad[_0x3632e3('0x272b')][_0x3632e3('0x2122')+_0x51538b()[_0x3632e3('0x1791')](_0x3632e3('0x2613'))]({'id':_0x2a3750[_0x3632e3('0x272b')]['id'],'nolimit':!![]})['$promise'][_0x3632e3('0xaa5')](function(_0x4445b8){var _0x48937d=_0x3632e3;return _0x2a3750['whatsappAccounts']=_0x4445b8||{'count':0x0,'rows':[]},_0xf319ad[_0x48937d('0x38f')][_0x48937d('0x2122')]()[_0x48937d('0x1dc2')];})[_0x3632e3('0xaa5')](function(_0xd114e9){var _0x204fb1=_0x3632e3;_0x2a3750[_0x204fb1('0x523')]=_0xd114e9||{'count':0x0,'rows':[]};})[_0x3632e3('0xaa5')](function(){var _0x5040da=_0x3632e3;_0x2a3750[_0x5040da('0x168c')]=_0x59493f();})[_0x3632e3('0x253d')](function(_0x355465){var _0xfa69a5=_0x3632e3;console[_0xfa69a5('0x187f')](_0x355465);})['finally'](function(){var _0x223c53=_0x3632e3,_0x42946f=_0x36f9a0['localStorage'][_0x223c53('0x173f')](_0x223c53('0xaa4')+_0x2a3750[_0x223c53('0x272b')]['id']);if(_0x42946f)try{_0x42946f=JSON[_0x223c53('0x9b6')](_0x42946f);if(_0x42946f['query']){_0x2a3750[_0x223c53('0x582')]=_0x51538b()[_0x223c53('0x283c')](_0x2a3750[_0x223c53('0x582')],_0x42946f['query']);if(_0x51538b()['isEmpty'](_0x2a3750['whatsappAccounts'][_0x223c53('0x580')]))_0x2a3750['query'][_0x223c53('0x1ab5')]=[];else _0x51538b()[_0x223c53('0x116b')](_0x2a3750[_0x223c53('0x582')][_0x223c53('0x1ab5')])&&(_0x2a3750['query']['WhatsappAccountId']=_0x51538b()(_0x2a3750[_0x223c53('0x2613')]['rows'])[_0x223c53('0x1246')]('id')['take']()[_0x223c53('0x12f4')]());_0x2a3750['query'][_0x223c53('0x1015')]&&_0x2a3750['query'][_0x223c53('0x1015')][_0x223c53('0x1f38')](_0x223c53('0x6a5'))>=0x0&&(_0x2a3750[_0x223c53('0x582')]=_0x51538b()[_0x223c53('0x245')](_0x2a3750[_0x223c53('0x582')],_0x223c53('0x1015'))),_0x2a3750[_0x223c53('0x582')][_0x223c53('0x17ac')]=!![],_0x2a3750[_0x223c53('0x1d47')]=_0x2a3750[_0x223c53('0x582')][_0x223c53('0xdb7')]?!![]:![];}}catch(_0x2492b7){console[_0x223c53('0x187f')](_0x2492b7);}else{var _0x2ff76a={'$gte':_0x420d43()()['startOf'](_0x223c53('0xae9'))[_0x223c53('0x15db')](0x0,!![])[_0x223c53('0x1f27')](),'$lte':_0x420d43()()[_0x223c53('0x173a')](_0x223c53('0xae9'))[_0x223c53('0x15db')](0x0,!![])[_0x223c53('0x1f27')]()},_0xd6ff54={'WhatsappAccountId':_0x51538b()['map'](_0x2a3750['whatsappAccounts'][_0x223c53('0x580')],'id'),'createdAt':_0x2ff76a};_0x2a3750['query']=_0x51538b()[_0x223c53('0x283c')](_0x2a3750[_0x223c53('0x582')],_0xd6ff54);}_0xaa6dc5['on'](_0x223c53('0x1c7b'),_0x2ad412),_0xaa6dc5['on'](_0x223c53('0x628'),_0x2ad412),_0xaa6dc5['on'](_0x223c53('0xced'),_0x464faa),_0xaa6dc5['on'](_0x223c53('0x481'),_0x9a53a4),_0xaa6dc5['on'](_0x223c53('0x17a5'),_0x9a53a4),_0xaa6dc5['on'](_0x223c53('0x23a6'),_0x43a482),_0xaa6dc5['on']('user_has_whatsapp_interactions:remove',_0x21fa08),_0x5770a0(_0x2a3750['query'][_0x223c53('0x41')]);});}function _0x59493f(){var _0x2f8bf7=_0x346cbe;return[{'name':_0x2f8bf7('0x12f1'),'key':'createdAt','type':_0x2f8bf7('0xb87'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x2f8bf7('0x1cd2'),'key':'read','type':_0x2f8bf7('0xbff'),'label':_0x2f8bf7('0x1da2'),'customOptions':[{'value':0x0,'translate':_0x2f8bf7('0x320')},{'value':0x1,'translate':_0x2f8bf7('0xdc4')},{'value':null,'translate':_0x2f8bf7('0x20c4')}]},{'name':_0x2f8bf7('0x26ae'),'key':_0x2f8bf7('0x1cbd'),'type':_0x2f8bf7('0xbff'),'label':_0x2f8bf7('0x617'),'customOptions':[{'value':0x0,'translate':_0x2f8bf7('0x166e')},{'value':0x1,'translate':_0x2f8bf7('0x73b')},{'value':null,'translate':_0x2f8bf7('0x20c4')}]},{'name':'Account','key':'WhatsappAccountId','type':_0x2f8bf7('0x2468'),'label':_0x2f8bf7('0x136e'),'options':_0x2a3750[_0x2f8bf7('0x2613')][_0x2f8bf7('0x580')],'clearAll':![]},{'name':_0x2f8bf7('0x521'),'key':_0x2f8bf7('0x1037'),'type':_0x2f8bf7('0xbff'),'label':_0x2f8bf7('0x162f'),'customOptions':[{'value':_0x2a3750[_0x2f8bf7('0x272b')]['id'],'translate':_0x2f8bf7('0x1855')},{'value':_0x2f8bf7('0x1ed9'),'translate':_0x2f8bf7('0x1a1c')},{'value':undefined,'translate':_0x2f8bf7('0x20c4')}]},{'name':_0x2f8bf7('0x4e7'),'key':_0x2f8bf7('0x38f'),'type':_0x2f8bf7('0x2468'),'label':'DASHBOARDS.SELECT_TAG','options':_0x2a3750['tags']['rows'],'placeholder':_0x2f8bf7('0x1161')}];}function _0x269a32(_0x26912f){var _0x4c680d=_0x346cbe;_0x2a3750[_0x4c680d('0x1206')]=![],_0x2a3750[_0x4c680d('0xe4f')]=_0x26912f||{'count':0x0,'rows':[]};for(var _0x15eef3=0x0;_0x15eef3<_0x2a3750['whatsappInteractions'][_0x4c680d('0x580')][_0x4c680d('0x2587')];_0x15eef3+=0x1){_0x4050b5(_0x2a3750[_0x4c680d('0xe4f')][_0x4c680d('0x580')][_0x15eef3]);}}function _0x5770a0(_0x5cbbfb){var _0x4eb711=_0x346cbe;_0x2a3750['searchInProgress']=!![];!_0x5cbbfb&&(_0x2a3750['query'][_0x4eb711('0x41')]=0x1);_0x2a3750[_0x4eb711('0x582')][_0x4eb711('0x8b1')]=(_0x2a3750[_0x4eb711('0x582')]['page']-0x1)*_0x2a3750[_0x4eb711('0x582')][_0x4eb711('0xf4d')];var _0x56056b=_0x36f9a0['localStorage'][_0x4eb711('0x173f')](_0x4eb711('0xaa4')+_0x2a3750['user']['id']);_0x56056b=_0x56056b?JSON[_0x4eb711('0x9b6')](_0x56056b):{},_0x56056b['query']=_0x2a3750['query'],_0x36f9a0['localStorage'][_0x4eb711('0xdbf')](_0x4eb711('0xaa4')+_0x2a3750[_0x4eb711('0x272b')]['id'],JSON[_0x4eb711('0xa48')](_0x56056b)),_0x2a3750[_0x4eb711('0x159a')]=_0xf319ad[_0x4eb711('0x2732')]['get'](_0x2a3750['query'],_0x269a32)[_0x4eb711('0x1dc2')];}function _0x4783ad(_0x20c620,_0x25eab0){var _0x1808d8=_0x346cbe;_0x182eca[_0x1808d8('0x24a3')]['vm'][_0x1808d8('0x15e0')](_0x1808d8('0x220d'),_0x25eab0);}function _0x44d2fa(_0x80d716,_0x11fb6d,_0x14f9d5){var _0x1a7be1=_0x346cbe;_0xf319ad[_0x1a7be1('0x2732')][_0x1a7be1('0x1cf9')]({'id':_0x11fb6d['id'],'attachments':_0x14f9d5})[_0x1a7be1('0x1dc2')][_0x1a7be1('0xaa5')](function(_0x4bd67c){var _0x30b926=_0x1a7be1,_0x147ca3=[_0x4bd67c[_0x30b926('0x1bf1')]],_0x296b58=_0x30b926('0x386')+_0x11fb6d['id']+_0x30b926('0x966'),_0x4ba540=new Blob(_0x147ca3,{'type':_0x4bd67c['type']}),_0x193991=window[_0x30b926('0x12aa')]['createElement']('a');_0x193991['setAttribute'](_0x30b926('0x18ae'),URL['createObjectURL'](_0x4ba540)),_0x193991[_0x30b926('0x107b')](_0x30b926('0x1cf9'),_0x296b58),document[_0x30b926('0x54c')]['appendChild'](_0x193991),_0x193991[_0x30b926('0x467')]();})[_0x1a7be1('0x253d')](function(_0x111863){var _0x2791b5=_0x1a7be1;if(_0x111863['data']&&_0x111863[_0x2791b5('0x10fd')][_0x2791b5('0x4c6')]&&_0x111863[_0x2791b5('0x10fd')][_0x2791b5('0x4c6')][_0x2791b5('0x2587')])for(var _0x1cc62f=0x0;_0x1cc62f<_0x111863[_0x2791b5('0x10fd')][_0x2791b5('0x4c6')][_0x2791b5('0x2587')];_0x1cc62f+=0x1){_0xf1cd6[_0x2791b5('0x187f')]({'title':_0x111863[_0x2791b5('0x10fd')][_0x2791b5('0x4c6')][_0x1cc62f][_0x2791b5('0x6c8')],'msg':_0x111863[_0x2791b5('0x10fd')]['errors'][_0x1cc62f][_0x2791b5('0x1402')]});}else _0xf1cd6[_0x2791b5('0x187f')]({'title':_0x111863[_0x2791b5('0x2fa')]?_0x2791b5('0x16c2')+_0x111863[_0x2791b5('0x2fa')]+'\x20-\x20'+_0x111863[_0x2791b5('0x24df')]:_0x2791b5('0x158e'),'msg':_0x111863[_0x2791b5('0x10fd')]?JSON[_0x2791b5('0xa48')](_0x111863[_0x2791b5('0x10fd')][_0x2791b5('0x1402')]):_0x111863[_0x2791b5('0x684')]()});});}function _0x281e07(_0x19c477,_0x4824d3){var _0x5a5198=_0x346cbe,_0x34c45a=_0x2a3750[_0x5a5198('0x272b')][_0x5a5198('0x2519')]||_0x2a3750['user'][_0x5a5198('0x1f36')]||_0x2a3750[_0x5a5198('0x272b')][_0x5a5198('0x21f')]||_0x2a3750[_0x5a5198('0x272b')][_0x5a5198('0xc8f')]||_0x2a3750[_0x5a5198('0x272b')][_0x5a5198('0x135b')],_0x1b8ad2=!_0x4824d3[_0x5a5198('0x75a')][_0x5a5198('0x1844')];_0x1b2c1e[_0x5a5198('0x1e6d')]({'controller':_0x5a5198('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular[_0x5a5198('0x1aa8')](_0x5ae6a6[_0x5a5198('0x54c')]),'clickOutsideToClose':_0x1b8ad2,'escapeToClose':_0x1b8ad2,'onRemoving':function _0x47cd83(){var _0x1aeeda=_0x5a5198;_0x2a3750[_0x1aeeda('0x272b')]&&_0x4824d3[_0x1aeeda('0x75a')]['mandatoryDisposition']&&!_0x34c45a&&_0xf319ad[_0x1aeeda('0x272b')][_0x1aeeda('0x297')]({'id':_0x2a3750[_0x1aeeda('0x272b')]['id']})[_0x1aeeda('0x1dc2')][_0x1aeeda('0x253d')](function(_0x519e8f){var _0x447171=_0x1aeeda;console[_0x447171('0x187f')](_0x519e8f);});},'locals':{'user':_0x2a3750[_0x5a5198('0x272b')],'channel':_0x5a5198('0x220d'),'interaction':_0x4824d3}});}function _0x4050b5(_0x4d9634){var _0xc77f73=_0x346cbe;_0x4d9634[_0xc77f73('0x1dc')]?(_0x4d9634['contactName']=(_0x4d9634['Contact'][_0xc77f73('0x24c1')]||'')+'\x20'+(_0x4d9634[_0xc77f73('0x1dc')]['lastName']||''),_0x4d9634[_0xc77f73('0x1420')]=_0x4d9634['Contact'][_0xc77f73('0x1125')]):_0x4d9634[_0xc77f73('0x4e0')]=_0x3abebd['instant'](_0xc77f73('0x22f7'));}function _0x54ee32(_0x852336){var _0xe392fc=_0x346cbe;if(_0x852336[_0xe392fc('0x1037')])return _0x852336['UserId']===_0x2a3750[_0xe392fc('0x272b')]['id']?_0x3abebd[_0xe392fc('0x213f')](_0xe392fc('0x1855')):_0x852336[_0xe392fc('0x40')][_0xe392fc('0x18e5')]+'\x20<'+_0x852336['Owner']['internal']+'>';return _0x3abebd[_0xe392fc('0x213f')]('DASHBOARDS.NOT_ASSIGNED');}function _0x8d50e8(_0x2b9b68){var _0x400950=_0x346cbe;if(_0x2b9b68[_0x400950('0x75a')])return _0x2b9b68[_0x400950('0x75a')][_0x400950('0x24ec')];return _0x3abebd[_0x400950('0x213f')]('DASHBOARDS.UNKNOWN');}function _0x50b3ac(_0x5d4be1,_0x8dd2b5){var _0xc316c2=_0x346cbe;_0x1b2c1e[_0xc316c2('0x1e6d')]({'controller':_0xc316c2('0x31d'),'controllerAs':'vm','templateUrl':_0xff47ba,'parent':angular[_0xc316c2('0x1aa8')](_0x5ae6a6[_0xc316c2('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x8dd2b5,'message':{},'type':_0xc316c2('0x1062'),'interaction':{}},'fullscreen':!![]})[_0xc316c2('0xaa5')](function(_0x102e4d){var _0x157263=_0xc316c2;if(_0x102e4d){if(_0x102e4d[_0x157263('0x1402')]&&_0x102e4d[_0x157263('0x1402')]['savedAsDraft']){var _0x4edf33={'channel':_0x157263('0x220d'),'account':_0x8dd2b5,'message':_0x102e4d[_0x157263('0x1402')],'contact':_0x102e4d['contact']};_0x3482b0[_0x157263('0x202c')](_0x4edf33);}else{var _0x29a46a=_0x102e4d;return _0xf319ad[_0x157263('0x26ac')][_0x157263('0x1e80')]({'id':_0x8dd2b5['id']},_0x29a46a)[_0x157263('0x1dc2')][_0x157263('0xaa5')](function(_0x3cc545){var _0x5f7118=_0x157263;_0xf1cd6[_0x5f7118('0xe10')]({'title':_0x5f7118('0x812'),'msg':_0x5f7118('0x22b4')}),_0x182eca[_0x5f7118('0x24a3')]['vm'][_0x5f7118('0x15e0')](_0x5f7118('0x220d'),_0x3cc545);})[_0x157263('0x253d')](function(_0x4bd8e5){var _0x5e925c=_0x157263;if(_0x4bd8e5['data']&&_0x4bd8e5[_0x5e925c('0x10fd')][_0x5e925c('0x4c6')]&&_0x4bd8e5['data'][_0x5e925c('0x4c6')]['length'])for(var _0x32d363=0x0;_0x32d363<_0x4bd8e5['data'][_0x5e925c('0x4c6')][_0x5e925c('0x2587')];_0x32d363++){_0xf1cd6[_0x5e925c('0x187f')]({'title':_0x4bd8e5['data'][_0x5e925c('0x4c6')][_0x32d363][_0x5e925c('0x6c8')],'msg':_0x4bd8e5[_0x5e925c('0x10fd')]['errors'][_0x32d363][_0x5e925c('0x1402')]});}else _0xf1cd6[_0x5e925c('0x187f')]({'title':_0x4bd8e5[_0x5e925c('0x2fa')]?_0x5e925c('0x16c2')+_0x4bd8e5[_0x5e925c('0x2fa')]+_0x5e925c('0x169e')+_0x4bd8e5[_0x5e925c('0x24df')]:'WHATSAPPACCOUNT:SEND','msg':_0x4bd8e5['data']?JSON[_0x5e925c('0xa48')](_0x4bd8e5[_0x5e925c('0x10fd')]['message']):_0x4bd8e5[_0x5e925c('0x1402')]||_0x4bd8e5[_0x5e925c('0x684')]()});});}}});}function _0x43a482(_0x17eb4a){var _0x369217=_0x346cbe,_0xd62651,_0x3ea8df=_0x51538b()[_0x369217('0xe9e')](_0x2a3750[_0x369217('0xe4f')][_0x369217('0x580')],{'id':_0x17eb4a[_0x369217('0x17e4')]});_0x3ea8df&&_0x3ea8df[_0x369217('0x16b4')]&&(_0xd62651=_0x51538b()[_0x369217('0xe9e')](_0x3ea8df['Users'],{'id':_0x17eb4a[_0x369217('0x1037')]}),!_0xd62651&&_0x3ea8df[_0x369217('0x16b4')][_0x369217('0x1599')]({'id':_0x17eb4a[_0x369217('0x1037')]}));}function _0x21fa08(_0x11496d){var _0x56edd2=_0x346cbe,_0x2e2360=_0x51538b()[_0x56edd2('0xe9e')](_0x2a3750['whatsappInteractions'][_0x56edd2('0x580')],{'id':_0x11496d[_0x56edd2('0x17e4')]});_0x2e2360&&_0x2e2360[_0x56edd2('0x16b4')]&&_0x51538b()[_0x56edd2('0xf6d')](_0x2e2360['Users'],{'id':_0x11496d[_0x56edd2('0x1037')]});}function _0x2ad412(_0x15a01a){var _0x225558=_0x346cbe;if(_0x15a01a){var _0x545403=_0x51538b()[_0x225558('0xe9e')](_0x2a3750[_0x225558('0xe4f')][_0x225558('0x580')],{'id':_0x15a01a['id']});if(_0x545403){_0x545403[_0x225558('0x16b4')]=[];_0x15a01a['closed']&&(_0x545403[_0x225558('0x1551')]=0x0);if(_0x2a3750[_0x225558('0x582')][_0x225558('0x1015')]){var _0x582c5a=_0x51538b()['startsWith'](_0x2a3750[_0x225558('0x582')][_0x225558('0x1015')],'-')?_0x225558('0x71c'):_0x225558('0x14b9');_0x2a3750['whatsappInteractions'][_0x225558('0x580')]=_0x51538b()[_0x225558('0x271d')](_0x2a3750[_0x225558('0xe4f')]['rows'],_0x51538b()[_0x225558('0x134c')](_0x2a3750[_0x225558('0x582')][_0x225558('0x1015')],'-'),_0x582c5a);}_0x51538b()[_0x225558('0x283c')](_0x545403,_0x51538b()['pick'](_0x15a01a,_0x51538b()[_0x225558('0x9f2')](_0x545403)));}else _0x5770a0(_0x2a3750['query'][_0x225558('0x41')]);}}function _0x464faa(_0x36305e){var _0x1f6721=_0x346cbe;if(_0x36305e){var _0x2c79d5=_0x51538b()[_0x1f6721('0xe9e')](_0x2a3750['whatsappInteractions']['rows'],{'id':_0x36305e['id']});_0x2c79d5&&(_0x2c79d5['Tags']=_0x36305e[_0x1f6721('0x523')]||[],_0x51538b()[_0x1f6721('0x283c')](_0x2c79d5,_0x51538b()['pick'](_0x36305e,_0x51538b()[_0x1f6721('0x9f2')](_0x2c79d5))));}}function _0x9a53a4(_0x1c1478){var _0x11d5d3=_0x346cbe;if(_0x1c1478&&!_0x1c1478['secret']){var _0x2250aa=_0x51538b()['find'](_0x2a3750['whatsappInteractions'][_0x11d5d3('0x580')],{'id':_0x1c1478['WhatsappInteractionId']});if(_0x2250aa){var _0x16fc35=_0x51538b()['find'](_0x2250aa['Messages'],{'id':_0x1c1478['id']});_0x16fc35?_0x51538b()['merge'](_0x16fc35,_0x51538b()[_0x11d5d3('0x104e')](_0x1c1478,_0x51538b()[_0x11d5d3('0x9f2')](_0x16fc35))):(_0x51538b()[_0x11d5d3('0x89a')](_0x2250aa['Messages'])&&(_0x2250aa[_0x11d5d3('0x1cd2')]={'count':0x0}),!_0x1c1478[_0x11d5d3('0x7b7')]&&(_0x2250aa[_0x11d5d3('0x1cd2')][_0x11d5d3('0xd15')]+=0x1));}}}function _0x4c790f(){_0x2a3750['isSearchBarVisible']=![];}function _0x5abd53(){var _0x25e188=_0x346cbe;_0x2a3750[_0x25e188('0x1d47')]=!![];}function _0x1bcc6e(){var _0x1be93d=_0x346cbe;_0x2a3750['isSearchBarVisible']=![],_0x1b2c1e['show']({'controller':_0x1be93d('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0x1be93d('0x1aa8')](_0x5ae6a6[_0x1be93d('0x54c')]),'clickOutsideToClose':![],'locals':{'color':_0x2a3750[_0x1be93d('0xe68')],'fields':_0x2a3750['advancedSearch'][_0x1be93d('0x13a')],'storagePath':_0x1be93d('0x1d5a')},'fullscreen':!![]})['then'](function(_0xf8e358){var _0x408a5c=_0x1be93d;_0x2a3750[_0x408a5c('0x582')][_0x408a5c('0x1785')]=_0xf8e358===![]?undefined:_0xf8e358;if(_0x2a3750[_0x408a5c('0x582')][_0x408a5c('0x1785')]||_0xf8e358===![])_0x5770a0();})[_0x1be93d('0x253d')](function(_0x4aa451){var _0x401f57=_0x1be93d;_0xf1cd6[_0x401f57('0x187f')]({'title':_0x401f57('0x208b'),'msg':_0x4aa451[_0x401f57('0x10fd')]?JSON[_0x401f57('0xa48')](_0x4aa451[_0x401f57('0x10fd')][_0x401f57('0x1402')]):_0x4aa451[_0x401f57('0x684')]()});});}var _0x2118ce=!![],_0x16ba06=0x1;_0x182eca[_0x346cbe('0x1ccf')](_0x346cbe('0x1788'),function(_0x13c3b7,_0x1ed0d0){var _0x12bc1b=_0x346cbe;_0x2118ce?_0xade08f(function(){_0x2118ce=![];}):(!_0x1ed0d0&&(_0x16ba06=_0x2a3750[_0x12bc1b('0x582')]['page']),_0x13c3b7!==_0x1ed0d0&&(_0x2a3750[_0x12bc1b('0x582')]['page']=0x1),!_0x13c3b7&&(_0x2a3750[_0x12bc1b('0x582')][_0x12bc1b('0x41')]=_0x16ba06),_0x5770a0(_0x2a3750['query'][_0x12bc1b('0x41')]));}),_0x182eca[_0x346cbe('0xc75')](_0x346cbe('0x12d0'),function(){var _0x17f36f=_0x346cbe;_0xaa6dc5[_0x17f36f('0x2629')](_0x17f36f('0x481')),_0xaa6dc5[_0x17f36f('0x2629')]('whatsappMessage:update'),_0xaa6dc5[_0x17f36f('0x2629')](_0x17f36f('0x1c7b')),_0xaa6dc5[_0x17f36f('0x2629')]('whatsappInteractionTags:save'),_0xaa6dc5[_0x17f36f('0x2629')](_0x17f36f('0x628')),_0xaa6dc5[_0x17f36f('0x2629')](_0x17f36f('0x23a6')),_0xaa6dc5[_0x17f36f('0x2629')](_0x17f36f('0x282d'));});}const _0x4ea162=_0x14b4c3;_0x21eeb4[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$sce'];function _0x21eeb4(_0x4cc64b,_0x7ac7d0){var _0x2e1737=_0x1a8446,_0x4b0302=this;_0x4b0302[_0x2e1737('0x143f')]={},_0x4b0302[_0x2e1737('0x1783')]={'count':0x0,'rows':[]},_0x4b0302[_0x2e1737('0x1918')]=![];function _0x2d2c76(_0x476bb2,_0x176978){var _0x1de0e2=_0x2e1737;_0x4b0302[_0x1de0e2('0x143f')]=_0x176978,_0x4b0302[_0x1de0e2('0x25c2')]=_0x476bb2,_0x4b0302['tab'][_0x1de0e2('0x1072')]=!![];}function _0x35c24d(){var _0x2cb854=_0x2e1737;return _0x7ac7d0[_0x2cb854('0x13cb')](_0x4b0302[_0x2cb854('0x25c2')][_0x2cb854('0x1d7a')]);}_0x4b0302['init']=_0x2d2c76,_0x4b0302[_0x2e1737('0x1cf3')]=_0x35c24d;}const _0x2a5a43=_0x21eeb4,_0x42d7b1=_0x4fb511['p']+_0x1a8446('0x3f7'),_0x52589f=_0x4fb511['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html/dialog-[chunkhash].html';_0x4b7d69[_0x1a8446('0x1e33')]=[_0x1a8446('0x2809')],_0x3b04f0['$inject']=[_0x1a8446('0x95f'),_0x1a8446('0x186b'),_0x1a8446('0x39b'),'$scope',_0x1a8446('0x2378'),'$q','$location',_0x1a8446('0xcb3'),'api',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74'),_0x1a8446('0x25c'),_0x1a8446('0xa66')];function _0x3b04f0(_0x21ae25,_0x39e2f9,_0x3f24e8,_0x5390e6,_0x176ad6,_0x15fb81,_0x5d13d7,_0xd1677b,_0x25f769,_0x41e69f,_0x293375,_0x4d877c,_0x5f518c,_0x3e247c){var _0x45b7b9=_0x1a8446,_0x3f1c3c=this,_0x283116=0x19,_0x45f97b=_0x283116*0x400*0x400;_0x3f1c3c['showFooter']=![],_0x3f1c3c['showInteraction']=![],_0x3f1c3c['user']=_0x293375['getCurrentUser'](),_0x3f1c3c[_0x45b7b9('0x2007')]=_0x5f518c[_0x45b7b9('0x2007')](),_0x3f1c3c[_0x45b7b9('0x98f')]=[],_0x3f1c3c[_0x45b7b9('0x1f10')]=[],_0x3f1c3c[_0x45b7b9('0x32e')]=[_0x45b7b9('0x14c5'),_0x45b7b9('0x20f9'),_0x45b7b9('0x18da'),_0x45b7b9('0x170'),_0x45b7b9('0x16c4'),_0x45b7b9('0x220d')],_0x3f1c3c['ngFlowOptions']={'target':_0x45b7b9('0x291'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x45f97b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3f1c3c[_0x45b7b9('0x27cd')]={'flow':{}},_0x3f1c3c['selectedMailShowDetails']={},_0x3f1c3c['selectedMailShowSystemMessage']={},_0x3f1c3c[_0x45b7b9('0x143f')]={},_0x3f1c3c[_0x45b7b9('0x182f')]={},_0x3f1c3c[_0x45b7b9('0x1cff')]={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':_0x45b7b9('0xf4e')},_0x3f1c3c[_0x45b7b9('0x1dd1')]=new Date(_0x420d43()()[_0x45b7b9('0x206d')]('month')['subtract'](0x1,_0x45b7b9('0x116c'))[_0x45b7b9('0x15db')](0x0,!![])[_0x45b7b9('0x1f27')]()),_0x3f1c3c[_0x45b7b9('0xb13')]=new Date(_0x420d43()()[_0x45b7b9('0x173a')](_0x45b7b9('0xae9'))[_0x45b7b9('0x2865')](0x1,_0x45b7b9('0xa7c'))[_0x45b7b9('0x15db')](0x0,!![])[_0x45b7b9('0x1f27')]()),_0x3f1c3c[_0x45b7b9('0x2e')]=_0x2ef0ed,_0x3f1c3c['getLabelByMessage']=_0x5d0121,_0x3f1c3c[_0x45b7b9('0x267c')]=_0x1a20bc,_0x3f1c3c[_0x45b7b9('0x282')]=_0x1dece3,_0x3f1c3c['disposeInteraction']=_0x4b38e6,_0x3f1c3c[_0x45b7b9('0x9db')]=_0x2c441f,_0x3f1c3c['composeMailInteraction']=_0xe2f102,_0x3f1c3c[_0x45b7b9('0x1d5')]=_0x183b40,_0x3f1c3c[_0x45b7b9('0xe93')]=_0x22c835,_0x3f1c3c[_0x45b7b9('0x222a')]=_0x53ae89,_0x3f1c3c[_0x45b7b9('0x2557')]=_0x2a2251,_0x3f1c3c[_0x45b7b9('0x1747')]=_0x3e0aad,_0x3f1c3c[_0x45b7b9('0xd8')]=_0x40a3f6,_0x3f1c3c[_0x45b7b9('0xe88')]=_0x59b3c0,_0x3f1c3c['createVidaooSession']=_0x185112,_0x3f1c3c[_0x45b7b9('0x1fb2')]=_0x3a9bb5,_0x3f1c3c[_0x45b7b9('0x1a9b')]=_0x19d34b,_0x3f1c3c[_0x45b7b9('0x2741')]=_0x478f91,_0x3f1c3c[_0x45b7b9('0xe95')]=_0x5bcb7d,_0x3f1c3c['getOpenchannelAccounts']=_0x5c5b3a,_0x3f1c3c[_0x45b7b9('0x1554')]=_0x1ebf6e,_0x3f1c3c[_0x45b7b9('0xcfd')]=_0xea1d8,_0x3f1c3c['reply']=_0x3385c5,_0x3f1c3c[_0x45b7b9('0x158b')]=_0x44eab1,_0x3f1c3c[_0x45b7b9('0x20d1')]=_0x10e427,_0x3f1c3c['fileSuccess']=_0x4b2123,_0x3f1c3c[_0x45b7b9('0x1539')]=_0xd07146,_0x3f1c3c[_0x45b7b9('0x7d0')]=_0x1174dd,_0x3f1c3c[_0x45b7b9('0x1f32')]=_0x12a309,_0x3f1c3c[_0x45b7b9('0xd23')]=_0xbfc71e,_0x3f1c3c['getIconByChannel']=_0x20a07f,_0x3f1c3c[_0x45b7b9('0x1db2')]=_0xa7b033,_0x3f1c3c[_0x45b7b9('0x1715')]=_0x14a8bc,_0x3f1c3c[_0x45b7b9('0x16e')]=_0x471e9c,_0x3f1c3c[_0x45b7b9('0x1be')]=![],_0x3f1c3c[_0x45b7b9('0x678')]=_0x56ed26,_0x3f1c3c[_0x45b7b9('0x1203')]=_0x15939d,_0x3f1c3c[_0x45b7b9('0x658')]=_0x54ae74,_0x3f1c3c[_0x45b7b9('0x621')]=_0x3aa36b,_0x3f1c3c[_0x45b7b9('0x181a')]=_0x570c62,_0x3f1c3c['getAttachment']=_0x495588,_0x3f1c3c['htmlToPlaintext']=_0x34a989,_0x3f1c3c['onInteractionOpen']=_0xba11c,_0x3f1c3c[_0x45b7b9('0x10b5')]=_0x4f3469,_0x3f1c3c['loadNextPage']=_0x188b9a,_0x3f1c3c[_0x45b7b9('0x1875')]={'scrollEl':'#interaction-content'};function _0x1ebf6e(){var _0x8255a0=_0x45b7b9;_0x25f769[_0x8255a0('0x272b')][_0x8255a0('0x1554')]({'id':_0x3f1c3c[_0x8255a0('0x272b')]['id'],'nolimit':!![]})[_0x8255a0('0x1dc2')][_0x8255a0('0xaa5')](function(_0x2caa47){var _0x32af86=_0x8255a0;_0x3f1c3c[_0x32af86('0x86c')]=_0x2caa47||{'count':0x0,'rows':[]};});}function _0xea1d8(){var _0x4ae850=_0x45b7b9;_0x25f769[_0x4ae850('0x272b')][_0x4ae850('0xcfd')]({'id':_0x3f1c3c[_0x4ae850('0x272b')]['id'],'nolimit':!![]})[_0x4ae850('0x1dc2')]['then'](function(_0x48fc62){var _0x13180f=_0x4ae850;_0x3f1c3c[_0x13180f('0x4bf')]=_0x48fc62||{'count':0x0,'rows':[]};});}function _0x5c5b3a(){var _0x584ae1=_0x45b7b9;_0x25f769[_0x584ae1('0x272b')][_0x584ae1('0x1a97')]({'id':_0x3f1c3c[_0x584ae1('0x272b')]['id'],'nolimit':!![]})[_0x584ae1('0x1dc2')][_0x584ae1('0xaa5')](function(_0x3026c0){var _0x2ac779=_0x584ae1;_0x3f1c3c[_0x2ac779('0x23f0')]=_0x3026c0||{'count':0x0,'rows':[]};})[_0x584ae1('0x253d')](function(_0x419790){var _0x232dd7=_0x584ae1;if(_0x419790['data']&&_0x419790[_0x232dd7('0x10fd')][_0x232dd7('0x4c6')]&&_0x419790[_0x232dd7('0x10fd')]['errors'][_0x232dd7('0x2587')]){_0x3f1c3c['errors']=_0x419790[_0x232dd7('0x10fd')][_0x232dd7('0x4c6')]||[{'message':_0x419790[_0x232dd7('0x684')](),'type':_0x232dd7('0x4d0')}];for(var _0x52af3c=0x0;_0x52af3c<_0x419790[_0x232dd7('0x10fd')][_0x232dd7('0x4c6')]['length'];_0x52af3c+=0x1){_0x41e69f['error']({'title':_0x419790[_0x232dd7('0x10fd')][_0x232dd7('0x4c6')][_0x52af3c]['type'],'msg':_0x419790['data'][_0x232dd7('0x4c6')][_0x52af3c][_0x232dd7('0x1402')]});}}else _0x41e69f[_0x232dd7('0x187f')]({'title':_0x419790[_0x232dd7('0x2fa')]?'API:'+_0x419790[_0x232dd7('0x2fa')]+_0x232dd7('0x169e')+_0x419790['statusText']:'api.mail.account','msg':_0x419790[_0x232dd7('0x10fd')]?JSON[_0x232dd7('0xa48')](_0x419790[_0x232dd7('0x10fd')][_0x232dd7('0x1402')]):_0x419790[_0x232dd7('0x684')]()});});}function _0x3a9bb5(){var _0x52ad4a=_0x45b7b9;_0x25f769[_0x52ad4a('0x272b')][_0x52ad4a('0x1fb2')]({'id':_0x3f1c3c[_0x52ad4a('0x272b')]['id'],'nolimit':!![]})[_0x52ad4a('0x1dc2')][_0x52ad4a('0xaa5')](function(_0xddb0f8){var _0x4d0624=_0x52ad4a;_0x3f1c3c[_0x4d0624('0x172d')]=_0xddb0f8||{'count':0x0,'rows':[]};});}function _0x19d34b(){var _0x4475ca=_0x45b7b9;_0x25f769['user'][_0x4475ca('0x1a9b')]({'id':_0x3f1c3c['user']['id'],'nolimit':!![]})[_0x4475ca('0x1dc2')][_0x4475ca('0xaa5')](function(_0x473a4d){var _0x19603e=_0x4475ca;_0x3f1c3c[_0x19603e('0xf2c')]=_0x473a4d||{'count':0x0,'rows':[]};});}function _0x478f91(){var _0x4f30b4=_0x45b7b9;_0x25f769[_0x4f30b4('0x272b')][_0x4f30b4('0x2741')]({'id':_0x3f1c3c['user']['id'],'nolimit':!![]})[_0x4f30b4('0x1dc2')][_0x4f30b4('0xaa5')](function(_0x1f2b47){_0x3f1c3c['smsAccounts']=_0x1f2b47||{'count':0x0,'rows':[]};});}function _0x5bcb7d(){var _0x236648=_0x45b7b9;_0x25f769[_0x236648('0x272b')][_0x236648('0xe95')]({'id':_0x3f1c3c[_0x236648('0x272b')]['id'],'nolimit':!![]})['$promise'][_0x236648('0xaa5')](function(_0x5d28fc){var _0x2d3553=_0x236648;_0x3f1c3c[_0x2d3553('0x2613')]=_0x5d28fc||{'count':0x0,'rows':[]};});}function _0x188b9a(){var _0x4f3eb5=_0x45b7b9,_0x5636d8=_0x15fb81[_0x4f3eb5('0x213b')]();if(_0x3f1c3c[_0x4f3eb5('0x1f97')])return _0x3f1c3c[_0x4f3eb5('0x1f97')]['offset']=_0x3f1c3c[_0x4f3eb5('0x1783')][_0x4f3eb5('0x580')][_0x4f3eb5('0x2587')],_0x25f769[_0x3f1c3c['tab'][_0x4f3eb5('0x119e')]+'Interaction']['getMessages'](_0x3f1c3c[_0x4f3eb5('0x1f97')])[_0x4f3eb5('0x1dc2')]['then'](function(_0x3c2b1a){var _0x2c592c=_0x4f3eb5;for(var _0x107f2f=0x0;_0x107f2f<_0x3c2b1a[_0x2c592c('0x580')]['length'];_0x107f2f+=0x1){_0x3f1c3c[_0x2c592c('0x1783')][_0x2c592c('0x580')][_0x2c592c('0x1599')](_0x3c2b1a[_0x2c592c('0x580')][_0x107f2f]),!_0x3f1c3c[_0x2c592c('0x1d86')][_0x2c592c('0x1cbd')]&&_0x3c2b1a[_0x2c592c('0x580')][_0x107f2f][_0x2c592c('0x1108')]==='in'&&!_0x3c2b1a[_0x2c592c('0x580')][_0x107f2f][_0x2c592c('0x7b7')]&&(_0x25f769[_0x3f1c3c[_0x2c592c('0x25c2')][_0x2c592c('0x119e')]+_0x2c592c('0x4d8')][_0x2c592c('0x5d5')]({'id':_0x3c2b1a[_0x2c592c('0x580')][_0x107f2f]['id'],'UserId':_0x3f1c3c[_0x2c592c('0x272b')]['id']}),_0x3f1c3c[_0x2c592c('0x1f10')][_0x2c592c('0x1599')](_0x3c2b1a['rows'][_0x107f2f]['id']));}return _0x5636d8[_0x2c592c('0x149f')](_0x3c2b1a);})[_0x4f3eb5('0x253d')](function(_0x1d9910){var _0x2cea2e=_0x4f3eb5;return _0x5636d8[_0x2cea2e('0xaee')](_0x1d9910);});return _0x5636d8[_0x4f3eb5('0xaee')]();}function _0x2ef0ed(_0x571e93,_0x2d45de){var _0x2b4b58=_0x45b7b9;_0x3f1c3c[_0x2b4b58('0x25c2')]=_0x571e93,_0x3f1c3c[_0x2b4b58('0x25c2')]['saved']=!![],_0x3f1c3c[_0x2b4b58('0x25c2')][_0x2b4b58('0x200')]=0x0,_0x3f1c3c[_0x2b4b58('0x143f')]=_0x2d45de||{},_0x3f1c3c[_0x2b4b58('0x25c2')]&&_0x3f1c3c[_0x2b4b58('0x25c2')][_0x2b4b58('0x119e')]&&_0x3f1c3c['tab'][_0x2b4b58('0x1d86')]&&(_0x3f1c3c[_0x2b4b58('0x1d86')]=_0x3f1c3c['tab'][_0x2b4b58('0x1d86')],_0x25f769[_0x3f1c3c['tab'][_0x2b4b58('0x119e')]+_0x2b4b58('0x11')][_0x2b4b58('0x2122')]({'id':_0x3f1c3c['tab']['interaction']['id'],'includeAll':!![]})[_0x2b4b58('0x1dc2')]['then'](function(_0x4d04e1){var _0x45267a=_0x2b4b58;return _0x4d04e1&&(_0x3f1c3c[_0x45267a('0x1d86')]=_0x4d04e1,_0x3f1c3c[_0x45267a('0x25c2')][_0x45267a('0x1d86')]=_0x4d04e1),_0x3f1c3c[_0x45267a('0x25c2')][_0x45267a('0x1072')]=_0x3f1c3c['interaction'][_0x45267a('0x1cbd')],_0x3f1c3c[_0x45267a('0x1f97')]={'id':_0x3f1c3c[_0x45267a('0x1d86')]['id'],'includeAll':!![]},_0x3f1c3c[_0x45267a('0x25c2')][_0x45267a('0x119e')]==='mail'?(_0x3f1c3c[_0x45267a('0x1f97')]['sort']=_0x45267a('0x133a'),_0x3f1c3c[_0x45267a('0x1f97')][_0x45267a('0x8b1')]=0x0,_0x3f1c3c[_0x45267a('0x1f97')][_0x45267a('0xf4d')]=0x3):(_0x3f1c3c[_0x45267a('0x1f97')][_0x45267a('0x1015')]='id',_0x3f1c3c['queryMessage']['nolimit']=!![]),_0x25f769[_0x3f1c3c['tab'][_0x45267a('0x119e')]+'Interaction'][_0x45267a('0xbe0')](_0x3f1c3c['queryMessage'])[_0x45267a('0x1dc2')];})[_0x2b4b58('0xaa5')](function(_0x4dc51e){var _0x5ef453=_0x2b4b58;return _0x3f1c3c['messages']=_0x4dc51e||{'count':0x0,'rows':[]},_0x25f769[_0x3f1c3c[_0x5ef453('0x25c2')][_0x5ef453('0x119e')]===_0x5ef453('0x20f9')?_0x5ef453('0x10f1'):_0x3f1c3c[_0x5ef453('0x25c2')][_0x5ef453('0x119e')]+_0x5ef453('0x75a')][_0x5ef453('0x2122')]({'id':_0x3f1c3c['interaction'][_0x3f1c3c['tab'][_0x5ef453('0x119e')]===_0x5ef453('0x20f9')?_0x5ef453('0x1421'):_0x51538b()[_0x5ef453('0x1b56')](_0x3f1c3c[_0x5ef453('0x25c2')][_0x5ef453('0x119e')])+'AccountId']})[_0x5ef453('0x1dc2')];})['then'](function(_0x19ffc8){var _0x2bdde2=_0x2b4b58;_0x3f1c3c[_0x2bdde2('0x5b')]=_0x19ffc8,_0x3f1c3c['tab'][_0x2bdde2('0x110a')]=_0x3f1c3c[_0x2bdde2('0x5b')][_0x2bdde2('0x24ec')]||_0x3f1c3c['account'][_0x2bdde2('0x25d6')];if(_0x3f1c3c[_0x2bdde2('0x1d86')]['ContactId'])return _0x25f769[_0x2bdde2('0xdbd')][_0x2bdde2('0x2122')]({'id':_0x3f1c3c[_0x2bdde2('0x1d86')][_0x2bdde2('0xb9e')]})[_0x2bdde2('0x1dc2')];})[_0x2b4b58('0xaa5')](function(_0x160fe8){var _0x16eb64=_0x2b4b58;return _0x160fe8&&(_0x3f1c3c['contact']=_0x160fe8),_0x3f1c3c['showInteraction']=!![],_0x3f1c3c[_0x16eb64('0x3c6')]?(_0x433022(_0x3f1c3c[_0x16eb64('0x3c6')]),_0x3f1c3c[_0x16eb64('0x25c2')][_0x16eb64('0x110a')]+=_0x16eb64('0x169e')+_0x3f1c3c[_0x16eb64('0x3c6')][_0x16eb64('0x24c1')]):_0x3f1c3c[_0x16eb64('0x25c2')][_0x16eb64('0x110a')]+=_0x16eb64('0x169e')+_0xd1677b[_0x16eb64('0x213f')](_0x3f1c3c[_0x16eb64('0x25c2')]['channel'][_0x16eb64('0x1d08')]()+'.UNKNOWN'),_0x25f769[_0x16eb64('0x272b')]['get']({'fields':_0x16eb64('0x915'),'nolimit':!![]})[_0x16eb64('0x1dc2')];})[_0x2b4b58('0xaa5')](function(_0x4df68b){var _0x20c6cf=_0x2b4b58;_0x3f1c3c[_0x20c6cf('0x2204')]=_0x4df68b||{'count':0x0,'rows':[]},_0x3f1c3c[_0x20c6cf('0xba6')]=_0x51538b()[_0x20c6cf('0xb6f')](_0x51538b()[_0x20c6cf('0x184a')](_0x3f1c3c[_0x20c6cf('0x2204')][_0x20c6cf('0x580')],'id'),'fullname');})[_0x2b4b58('0xaa5')](function(){var _0x313ca7=_0x2b4b58;if(_0x3f1c3c[_0x313ca7('0x25c2')]['channel']&&_0x3f1c3c['interaction'])return _0x25f769[_0x313ca7('0x272b')][_0x313ca7('0x202c')+_0x51538b()[_0x313ca7('0x1791')](_0x3f1c3c[_0x313ca7('0x25c2')][_0x313ca7('0x119e')])+_0x313ca7('0x20b7')]({'id':_0x3f1c3c['user']['id'],'ids':[_0x3f1c3c[_0x313ca7('0x1d86')]['id']]});})[_0x2b4b58('0xaa5')](function(){var _0x31c6a1=_0x2b4b58;return _0x25f769[_0x31c6a1('0x13b1')][_0x31c6a1('0x2122')]({'sort':_0x31c6a1('0x25d6'),'nolimit':!![]})[_0x31c6a1('0x1dc2')];})[_0x2b4b58('0xaa5')](function(_0x3c8b4d){var _0x23ea22=_0x2b4b58;_0x3f1c3c[_0x23ea22('0x68')]=_0x3c8b4d||{'count':0x0,'rows':[]};})[_0x2b4b58('0xaa5')](function(){var _0x2aba32=_0x2b4b58;return _0x3f1c3c[_0x2aba32('0x1fb2')]();})[_0x2b4b58('0xaa5')](function(){var _0x353010=_0x2b4b58;return _0x3f1c3c[_0x353010('0x1a9b')]();})[_0x2b4b58('0xaa5')](function(){var _0x21fdf5=_0x2b4b58;return _0x3f1c3c[_0x21fdf5('0x2741')]();})['then'](function(){var _0x501dc4=_0x2b4b58;return _0x3f1c3c[_0x501dc4('0xe95')]();})[_0x2b4b58('0xaa5')](function(){var _0x3e0297=_0x2b4b58;return _0x3f1c3c[_0x3e0297('0x1a97')]();})['then'](function(){var _0x3468fb=_0x2b4b58;return _0x3f1c3c[_0x3468fb('0x1554')]();})[_0x2b4b58('0xaa5')](function(){var _0x39869a=_0x2b4b58;return _0x3f1c3c[_0x39869a('0xcfd')]();})['catch'](function(){var _0x2e8be5=_0x2b4b58;_0x3f1c3c[_0x2e8be5('0x1918')]=!![];})[_0x2b4b58('0x1889')](function(){var _0x252a58=_0x2b4b58;_0x255168(),_0x5eaf82(),_0x4d877c['on'](_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0x119e')]+_0x252a58('0x1935'),_0x3f1c3c[_0x252a58('0x1539')]),_0x4d877c['on'](_0x3f1c3c[_0x252a58('0x25c2')]['channel']+_0x252a58('0xcde'),_0x3f1c3c[_0x252a58('0x1539')]),_0x4d877c['on'](_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0x119e')]+'Interaction:save',_0x3f1c3c[_0x252a58('0x7d0')]),_0x4d877c['on'](_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0x119e')]+_0x252a58('0x21d'),_0x3f1c3c[_0x252a58('0x7d0')]),_0x4d877c['on'](_0x252a58('0x11b7')+_0x3f1c3c['tab'][_0x252a58('0x119e')]+_0x252a58('0x23df'),_0x3f1c3c[_0x252a58('0xfa8')]),_0x4d877c['on'](_0x252a58('0x11b7')+_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0x119e')]+'_interactions:remove',_0x3f1c3c[_0x252a58('0x10b5')]),_0x3f1c3c['tab'][_0x252a58('0x2472')]=_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0x2472')]?_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0x2472')]:'',_0x3f1c3c[_0x252a58('0x219e')]=!![],_0x3f1c3c['tab'][_0x252a58('0x119e')]===_0x252a58('0x14c5')&&(_0x3f1c3c[_0x252a58('0x1679')]=_0x3e247c[_0x252a58('0x3d3')](_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0x1d86')]['id']),_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0xba9')]&&(_0x3f1c3c['tab'][_0x252a58('0x1d86')][_0x252a58('0x1cbd')]?(_0x3e247c[_0x252a58('0x16aa')](_0x3f1c3c[_0x252a58('0x25c2')][_0x252a58('0x1d86')]['id']),_0x3f1c3c[_0x252a58('0x1679')]=null):_0x59b3c0()));}));}function _0x3aa36b(_0x52cf36){var _0x34cb95=_0x45b7b9;if(_0x52cf36['FaxAccountId'])return _0x51538b()['includes'](_0x51538b()[_0x34cb95('0x1246')](_0x3f1c3c['faxAccounts']?_0x3f1c3c[_0x34cb95('0xf2c')][_0x34cb95('0x580')]:[],'id'),_0x52cf36[_0x34cb95('0x16a8')]);else{if(_0x52cf36[_0x34cb95('0x62c')])return _0x51538b()[_0x34cb95('0x13d6')](_0x51538b()[_0x34cb95('0x1246')](_0x3f1c3c[_0x34cb95('0x23f0')]?_0x3f1c3c[_0x34cb95('0x23f0')][_0x34cb95('0x580')]:[],'id'),_0x52cf36[_0x34cb95('0x62c')]);else{if(_0x52cf36[_0x34cb95('0xaa0')])return _0x51538b()[_0x34cb95('0x13d6')](_0x51538b()[_0x34cb95('0x1246')](_0x3f1c3c[_0x34cb95('0x18a1')]?_0x3f1c3c[_0x34cb95('0x18a1')][_0x34cb95('0x580')]:[],'id'),_0x52cf36['SmsAccountId']);else{if(_0x52cf36[_0x34cb95('0x1ab5')])return _0x51538b()[_0x34cb95('0x13d6')](_0x51538b()[_0x34cb95('0x1246')](_0x3f1c3c[_0x34cb95('0x2613')]?_0x3f1c3c[_0x34cb95('0x2613')]['rows']:[],'id'),_0x52cf36[_0x34cb95('0x1ab5')]);else{if(_0x52cf36['MailAccountId'])return _0x51538b()[_0x34cb95('0x13d6')](_0x51538b()[_0x34cb95('0x1246')](_0x3f1c3c[_0x34cb95('0x172d')]?_0x3f1c3c[_0x34cb95('0x172d')][_0x34cb95('0x580')]:[],'id'),_0x52cf36[_0x34cb95('0x2307')]);else{if(_0x52cf36[_0x34cb95('0x1421')])return _0x51538b()[_0x34cb95('0x13d6')](_0x51538b()[_0x34cb95('0x1246')](_0x3f1c3c[_0x34cb95('0x86c')]?_0x3f1c3c[_0x34cb95('0x86c')][_0x34cb95('0x580')]:[],'id'),_0x52cf36[_0x34cb95('0x1421')]);else{if(_0x52cf36[_0x34cb95('0x1458')])return!![];}}}}}}return![];}function _0xba11c(_0x236244){var _0x2997e4=_0x45b7b9,_0x344f44;_0x3f1c3c[_0x2997e4('0x1d86')]['id']==_0x236244[_0x51538b()[_0x2997e4('0x1791')](_0x3f1c3c[_0x2997e4('0x25c2')][_0x2997e4('0x119e')])+'InteractionId']&&(_0x3f1c3c['interaction'][_0x2997e4('0x16b4')]&&(_0x344f44=_0x51538b()['find'](_0x3f1c3c['interaction'][_0x2997e4('0x16b4')],{'id':_0x236244[_0x2997e4('0x1037')]})),!_0x344f44&&_0x3f1c3c['interaction']['Users'][_0x2997e4('0x1599')]({'id':_0x236244['UserId']}));}function _0x4f3469(_0x277a5e){var _0x5258fa=_0x45b7b9;_0x3f1c3c[_0x5258fa('0x1d86')]['id']==_0x277a5e[_0x51538b()['upperFirst'](_0x3f1c3c[_0x5258fa('0x25c2')][_0x5258fa('0x119e')])+_0x5258fa('0x17fa')]&&(_0x3f1c3c[_0x5258fa('0x1d86')]['Users']&&_0x51538b()[_0x5258fa('0xf6d')](_0x3f1c3c['interaction'][_0x5258fa('0x16b4')],{'id':_0x277a5e['UserId']}));}function _0xbfc71e(_0x4eaf92){var _0x17aa5d=_0x45b7b9;if(_0x4eaf92){try{_0x51538b()[_0x17aa5d('0x1bf3')][_0x17aa5d('0x2100')]=/{{([\s\S]+?)}}/g;var _0x7d2549=_0x51538b()[_0x17aa5d('0x11f6')](_0x4eaf92['value']),_0x3d005e={'user':_0x3f1c3c[_0x17aa5d('0x272b')],'account':_0x3f1c3c[_0x17aa5d('0x5b')],'interaction':_0x3f1c3c['interaction'],'contact':_0x3f1c3c['interaction']&&_0x3f1c3c['interaction'][_0x17aa5d('0x1dc')]?_0x3f1c3c[_0x17aa5d('0x1d86')][_0x17aa5d('0x1dc')]:{}};_0x3f1c3c[_0x17aa5d('0x25c2')][_0x17aa5d('0x2472')]+='\x20'+_0x7d2549(_0x3d005e),_0x3f1c3c[_0x17aa5d('0x182f')][_0x17aa5d('0x1a78')](_0x3f1c3c['tab'][_0x17aa5d('0x2472')]);}catch(_0x29a8fe){_0x3f1c3c[_0x17aa5d('0x25c2')][_0x17aa5d('0x2472')]+='\x20'+_0x4eaf92['value'],_0x3f1c3c[_0x17aa5d('0x182f')]['setText'](_0x3f1c3c[_0x17aa5d('0x25c2')][_0x17aa5d('0x2472')]);}_0x3f1c3c[_0x17aa5d('0xffb')]=null,_0x3f1c3c[_0x17aa5d('0x678')]();}}function _0x12a309(_0x2414f3){var _0x11029e=_0x45b7b9,_0x5bdede=_0x15fb81[_0x11029e('0x213b')](),_0x2f7ac7=[],_0x238e61={},_0xd2fc24=_0x3f1c3c['tab'][_0x11029e('0x119e')]===_0x11029e('0x20f9')?_0x11029e('0x1421'):_0x51538b()[_0x11029e('0x1b56')](_0x3f1c3c[_0x11029e('0x25c2')][_0x11029e('0x119e')])+_0x11029e('0x20bd');return _0x238e61[_0x11029e('0xdb7')]=_0x2414f3,_0x238e61[_0xd2fc24]=_0x3f1c3c[_0x11029e('0x5b')]['id'],_0x25f769['cannedAnswer'][_0x11029e('0x2122')](_0x238e61)[_0x11029e('0x1dc2')][_0x11029e('0xaa5')](function(_0x2c8a79){var _0x3caca8=_0x11029e;return _0x2f7ac7=_0x51538b()['concat'](_0x2f7ac7,_0x2c8a79[_0x3caca8('0x580')]),_0x25f769['cannedAnswer'][_0x3caca8('0x2122')]({'filter':_0x2414f3})['$promise'];})[_0x11029e('0xaa5')](function(_0x2378e2){var _0x33fca1=_0x11029e;_0x2f7ac7=_0x51538b()['concat'](_0x2f7ac7,_0x51538b()[_0x33fca1('0xdb7')](_0x2378e2[_0x33fca1('0x580')],function(_0x4b96d9){var _0x19fc7e=_0x33fca1;return!_0x4b96d9[_0x19fc7e('0x2307')]&&!_0x4b96d9[_0x19fc7e('0x16a8')]&&!_0x4b96d9['SmsAccountId']&&!_0x4b96d9['WhatsappAccountId']&&!_0x4b96d9[_0x19fc7e('0x62c')]&&!_0x4b96d9[_0x19fc7e('0x1421')];})),_0x5bdede[_0x33fca1('0x149f')](_0x2f7ac7);})[_0x11029e('0x253d')](function(_0x4505c8){var _0x3e59ff=_0x11029e;_0x5bdede[_0x3e59ff('0xaee')](_0x4505c8);}),_0x5bdede['promise'];}function _0x1a20bc(_0x520464,_0x3b9ce4){var _0x350668=_0x45b7b9;try{_0x3f1c3c[_0x350668('0x25c2')]&&!_0x3f1c3c[_0x350668('0x25c2')][_0x350668('0x71')]&&_0x5390e6[_0x350668('0x24a3')]['$parent'][_0x350668('0x24a3')]['vm'][_0x350668('0xde6')](_0x3b9ce4||_0x3f1c3c['contact']);}catch(_0x55d6cd){_0x41e69f['error']({'title':'ERROR\x20OPEN\x20CONTACT','msg':_0x350668('0xcea')});}}function _0x1dece3(_0xbf207c,_0x3610b3){var _0x5cc717=_0x45b7b9;try{if(_0x3610b3[_0x5cc717('0x2307')])return _0x5390e6[_0x5cc717('0x24a3')][_0x5cc717('0x24a3')]['$parent']['vm'][_0x5cc717('0x15e0')](_0x5cc717('0x14c5'),_0x3610b3);else{if(_0x3610b3[_0x5cc717('0x1421')])return _0x5390e6[_0x5cc717('0x24a3')]['$parent']['$parent']['vm'][_0x5cc717('0x15e0')](_0x5cc717('0x20f9'),_0x3610b3);else{if(_0x3610b3['SmsAccountId'])return _0x5390e6[_0x5cc717('0x24a3')][_0x5cc717('0x24a3')][_0x5cc717('0x24a3')]['vm'][_0x5cc717('0x15e0')](_0x5cc717('0x18da'),_0x3610b3);else{if(_0x3610b3['WhatsappAccountId'])return _0x5390e6['$parent'][_0x5cc717('0x24a3')][_0x5cc717('0x24a3')]['vm'][_0x5cc717('0x15e0')]('whatsapp',_0x3610b3);else{if(_0x3610b3[_0x5cc717('0x62c')])return _0x5390e6['$parent'][_0x5cc717('0x24a3')][_0x5cc717('0x24a3')]['vm'][_0x5cc717('0x15e0')](_0x5cc717('0x170'),_0x3610b3);else{if(_0x3610b3['FaxAccountId'])return _0x5390e6[_0x5cc717('0x24a3')][_0x5cc717('0x24a3')][_0x5cc717('0x24a3')]['vm'][_0x5cc717('0x15e0')](_0x5cc717('0x16c4'),_0x3610b3);}}}}}}catch(_0x107dea){_0x41e69f[_0x5cc717('0x187f')]({'title':_0x5cc717('0x1048'),'msg':_0x5cc717('0x804')});}}function _0x2c441f(){var _0x304207=_0x45b7b9;_0x176ad6[_0x304207('0x1e6d')]({'controller':_0x304207('0x2485'),'controllerAs':'vm','templateUrl':_0x42d7b1,'parent':angular['element'](_0x3f24e8[_0x304207('0x54c')]),'clickOutsideToClose':!![],'skipHide':Boolean(_0x3f1c3c['tab'][_0x304207('0x71')]),'resolve':{'tags':[_0x304207('0x1d16'),function _0x435fd6(_0x13286d){var _0x2b9aba=_0x304207;return _0x13286d['resolve'](_0x2b9aba('0x230a'),{'sort':_0x2b9aba('0x25d6'),'nolimit':!![],'fields':_0x2b9aba('0x21a5')});}]},'locals':{'channel':_0x3f1c3c['tab'][_0x304207('0x119e')],'interaction':_0x3f1c3c[_0x304207('0x25c2')][_0x304207('0x1d86')]}});}function _0x4b38e6(){var _0x551410=_0x45b7b9,_0xa8b740=_0x3f1c3c[_0x551410('0x272b')][_0x551410('0x2519')]||_0x3f1c3c['user'][_0x551410('0x1f36')]||_0x3f1c3c['user']['mailPause']||_0x3f1c3c['user'][_0x551410('0xc8f')]||_0x3f1c3c[_0x551410('0x272b')][_0x551410('0x135b')],_0x4b5bc2=!_0x3f1c3c[_0x551410('0x25c2')]['interaction'][_0x551410('0x75a')][_0x551410('0x1844')];_0x176ad6['show']({'controller':_0x551410('0xa89'),'controllerAs':'vm','templateUrl':_0x21ce3a,'parent':angular[_0x551410('0x1aa8')](_0x3f24e8[_0x551410('0x54c')]),'clickOutsideToClose':_0x4b5bc2,'escapeToClose':_0x4b5bc2,'onRemoving':function _0x32b4cc(){var _0x4dc5f6=_0x551410;_0x3f1c3c[_0x4dc5f6('0x272b')]&&_0x3f1c3c[_0x4dc5f6('0x1d86')][_0x4dc5f6('0x75a')][_0x4dc5f6('0x1844')]&&!_0xa8b740&&_0x25f769[_0x4dc5f6('0x272b')][_0x4dc5f6('0x297')]({'id':_0x3f1c3c[_0x4dc5f6('0x272b')]['id']})[_0x4dc5f6('0x1dc2')][_0x4dc5f6('0x253d')](function(_0x23f1d9){console['error'](_0x23f1d9);});},'locals':{'user':_0x3f1c3c[_0x551410('0x272b')],'channel':_0x3f1c3c[_0x551410('0x25c2')][_0x551410('0x119e')],'interaction':_0x3f1c3c[_0x551410('0x25c2')][_0x551410('0x1d86')]}})[_0x551410('0xaa5')](function(_0x2265a7){var _0x230caa=_0x551410;_0x3f1c3c[_0x230caa('0x25c2')][_0x230caa('0x1072')]=Boolean(_0x2265a7),_0x2265a7&&_0x5390e6[_0x230caa('0x24a3')]['$parent']['$parent']['vm']['closeTab'](_0x3f1c3c[_0x230caa('0x25c2')]);});}function _0x574d38(_0x1ac293,_0x4cf56e){var _0xc3190c=_0x45b7b9;_0x3f1c3c[_0xc3190c('0x25c2')][_0xc3190c('0x1402')]=_0x4cf56e,_0x176ad6[_0xc3190c('0x1e6d')]({'controller':_0xc3190c('0x4de'),'controllerAs':'vm','templateUrl':_0x1b0547,'parent':angular[_0xc3190c('0x1aa8')](_0x3f24e8['body']),'clickOutsideToClose':![],'locals':{'account':_0x3f1c3c[_0xc3190c('0x5b')],'message':_0x3f1c3c[_0xc3190c('0x25c2')][_0xc3190c('0x1402')],'type':_0x1ac293,'interaction':_0x3f1c3c[_0xc3190c('0x1d86')]},'fullscreen':!![],'skipHide':Boolean(_0x3f1c3c[_0xc3190c('0x25c2')][_0xc3190c('0x71')])})[_0xc3190c('0xaa5')](function(_0x74b060){var _0x563228=_0xc3190c;if(_0x74b060){if(_0x74b060['message']&&_0x74b060[_0x563228('0x1402')][_0x563228('0x22a4')])_0x3f1c3c[_0x563228('0x1679')]?_0x3e247c[_0x563228('0x264e')]({'id':_0x3f1c3c[_0x563228('0x1679')]['id'],'channel':'mail','account':_0x3f1c3c[_0x563228('0x5b')],'message':_0x74b060[_0x563228('0x1402')],'contact':_0x3f1c3c[_0x563228('0x3c6')],'interaction':_0x3f1c3c['interaction']}):_0x3e247c[_0x563228('0x202c')]({'channel':_0x563228('0x14c5'),'account':_0x3f1c3c[_0x563228('0x5b')],'message':_0x74b060[_0x563228('0x1402')],'contact':_0x3f1c3c[_0x563228('0x3c6')],'interaction':_0x3f1c3c[_0x563228('0x1d86')]}),_0x3f1c3c[_0x563228('0x1679')]=_0x3e247c['getByInteraction'](_0x3f1c3c[_0x563228('0x25c2')][_0x563228('0x1d86')]['id']);else{var _0x418ae3=_0x74b060;_0x418ae3&&_0x43272f(_0x418ae3),_0x418ae3[_0x563228('0x11')]&&_0x3f1c3c[_0x563228('0x1d86')]&&_0x3f1c3c['interaction']['id']&&(_0x418ae3[_0x563228('0x11')]['id']=_0x3f1c3c[_0x563228('0x1d86')]['id'],_0x25f769['mailInteraction'][_0x563228('0x264e')](_0x418ae3['Interaction'])['$promise']['then'](function(_0x4b4ca5){var _0x151c2f=_0x563228;if(_0x4b4ca5&&_0x4b4ca5['closed'])_0x3f1c3c[_0x151c2f('0x25c2')][_0x151c2f('0x1072')]=!![],_0x3f1c3c[_0x151c2f('0x1d86')][_0x151c2f('0x1cbd')]=!![],_0x4b38e6();else _0x418ae3[_0x151c2f('0x11')][_0x151c2f('0x74e')]!==null&&(_0x3f1c3c[_0x151c2f('0x25c2')][_0x151c2f('0x1072')]=!![],_0x3f1c3c[_0x151c2f('0x25c2')]['interaction']['substatus']=_0x418ae3[_0x151c2f('0x11')][_0x151c2f('0x74e')],_0x5390e6[_0x151c2f('0x24a3')]['$parent']['$parent']['vm'][_0x151c2f('0x633')](_0x3f1c3c[_0x151c2f('0x25c2')]));})['catch'](function(_0x214398){var _0xcfcc2d=_0x563228;console[_0xcfcc2d('0x187f')](_0x214398);}));}}})[_0xc3190c('0x1889')](function(){var _0x3f8191=_0xc3190c;_0x3f1c3c['tab'][_0x3f8191('0xba9')]=![];});}function _0xe2f102(_0x4ec1b0,_0x10fffc){var _0x29eade=_0x45b7b9;if(_0x10fffc[_0x29eade('0xdf9')]){var _0x9893e1=_0x51538b()[_0x29eade('0xe9e')](_0x3f1c3c[_0x29eade('0x1783')]['rows'],{'messageId':_0x10fffc[_0x29eade('0xdf9')]});if(_0x9893e1)_0x574d38(_0x4ec1b0,_0x9893e1);else return _0x25f769[_0x29eade('0x1a99')][_0x29eade('0x2122')]({'messageId':_0x10fffc['inReplyTo']})[_0x29eade('0x1dc2')][_0x29eade('0xaa5')](function(_0x4067b9){var _0x5516f5=_0x29eade;_0x574d38(_0x4ec1b0,_0x4067b9&&_0x4067b9[_0x5516f5('0xd15')]?_0x4067b9['rows'][0x0]:undefined);})['catch'](function(_0x4061fe){console['error'](_0x4061fe),_0x574d38(_0x4ec1b0,undefined);});}else _0x574d38(_0x4ec1b0,_0x10fffc);}function _0x183b40(_0xa3d3b5){var _0x58b86f=_0x45b7b9,_0x35b92b={'to':[]};_0x35b92b['to'][_0x58b86f('0x1599')](_0x3f1c3c['contact']['fax']),_0x176ad6[_0x58b86f('0x1e6d')]({'controller':_0x58b86f('0xaa2'),'controllerAs':'vm','templateUrl':_0x4f8825,'parent':angular[_0x58b86f('0x1aa8')](_0x3f24e8[_0x58b86f('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x3f1c3c['account'],'message':_0x35b92b,'type':_0xa3d3b5},'fullscreen':!![]})['then'](function(_0x59be57){var _0x1abec2=_0x58b86f;return _0x25f769[_0x1abec2('0x1f6a')]['send']({'id':_0x3f1c3c[_0x1abec2('0x5b')]['id']},_0x59be57)[_0x1abec2('0x1dc2')][_0x1abec2('0xaa5')](function(_0x12abce){var _0x31ddc2=_0x1abec2;_0x41e69f[_0x31ddc2('0xe10')]({'title':_0x31ddc2('0x812'),'msg':_0x31ddc2('0x22b4')}),_0x5390e6[_0x31ddc2('0x24a3')]['vm'][_0x31ddc2('0x15e0')](_0x31ddc2('0x16c4'),_0x12abce);})[_0x1abec2('0x253d')](function(_0x2fae06){var _0x53554b=_0x1abec2;if(_0x2fae06[_0x53554b('0x10fd')]&&_0x2fae06[_0x53554b('0x10fd')]['errors']&&_0x2fae06[_0x53554b('0x10fd')][_0x53554b('0x4c6')][_0x53554b('0x2587')])for(var _0x3f9c5c=0x0;_0x3f9c5c<_0x2fae06['data']['errors'][_0x53554b('0x2587')];_0x3f9c5c++){_0x41e69f['error']({'title':_0x2fae06['data'][_0x53554b('0x4c6')][_0x3f9c5c]['type'],'msg':_0x2fae06['data']['errors'][_0x3f9c5c]['message']});}else _0x41e69f[_0x53554b('0x187f')]({'title':_0x53554b('0x257b'),'msg':_0x2fae06[_0x53554b('0x10fd')]?JSON['stringify'](_0x2fae06['data']):_0x2fae06[_0x53554b('0x1402')]||_0x2fae06[_0x53554b('0x684')]()});});});}function _0x22c835(_0x5b2ba0,_0x5787b2){var _0x3d0c05=_0x45b7b9;_0x176ad6[_0x3d0c05('0x1e6d')]({'controller':_0x3d0c05('0x53f'),'controllerAs':'vm','templateUrl':_0x4bb35d,'parent':angular['element'](_0x3f24e8[_0x3d0c05('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x3f1c3c['account'],'message':_0x5787b2,'type':_0x5b2ba0},'fullscreen':!![],'skipHide':Boolean(_0x3f1c3c['tab'][_0x3d0c05('0x71')])})['then'](function(_0x52eecf){_0x52eecf&&_0x43272f(_0x52eecf);});}function _0x53ae89(_0x5470a,_0x28b87a){var _0x31fd56=_0x45b7b9;_0x176ad6[_0x31fd56('0x1e6d')]({'controller':'ComposeWhatsappInteractionDialogController','controllerAs':'vm','templateUrl':_0xff47ba,'parent':angular[_0x31fd56('0x1aa8')](_0x3f24e8[_0x31fd56('0x54c')]),'clickOutsideToClose':![],'locals':{'account':_0x3f1c3c[_0x31fd56('0x5b')],'message':_0x28b87a,'type':_0x5470a},'fullscreen':!![],'skipHide':Boolean(_0x3f1c3c[_0x31fd56('0x25c2')][_0x31fd56('0x71')])})[_0x31fd56('0xaa5')](function(_0x1b282b){_0x1b282b&&_0x43272f(_0x1b282b);});}function _0x2a2251(){var _0x3bcad6=_0x45b7b9;if(_0x3f1c3c[_0x3bcad6('0x1d86')]){var _0xa03fe4=_0x51538b()[_0x3bcad6('0xf15')](_0x3f1c3c['messages'][_0x3bcad6('0x580')],function(_0x451511){return _0x451511['direction']==='in';});_0xa03fe4?_0x176ad6[_0x3bcad6('0x1e6d')]({'controller':_0x3bcad6('0x2604'),'controllerAs':'vm','templateUrl':_0x52589f,'parent':angular[_0x3bcad6('0x1aa8')](_0x3f24e8['body']),'clickOutsideToClose':![],'locals':{'account':_0x3f1c3c[_0x3bcad6('0x5b')],'interaction':_0x3f1c3c['interaction'],'message':_0xa03fe4,'channel':_0x3f1c3c[_0x3bcad6('0x25c2')][_0x3bcad6('0x119e')]}})['then'](function(_0x2c5ab3){var _0x4ff6c4=_0x3bcad6;_0x3f1c3c[_0x4ff6c4('0x25c2')][_0x4ff6c4('0x1072')]=Boolean(_0x2c5ab3),_0x2c5ab3&&_0x5390e6[_0x4ff6c4('0x24a3')]['$parent']['$parent']['vm']['closeTab'](_0x3f1c3c['tab']);}):_0x41e69f[_0x3bcad6('0x187f')]({'title':_0x3bcad6('0x65a'),'msg':_0x3bcad6('0x1cd5')});}}function _0xbfec37(_0x1a386a){var _0x28bbcb=_0x45b7b9,_0x236b96={},_0x114ce2=_0x3f1c3c['tab'][_0x28bbcb('0x119e')]===_0x28bbcb('0x20f9')?'ChatWebsiteId':_0x51538b()[_0x28bbcb('0x1b56')](_0x3f1c3c['tab']['channel'])+_0x28bbcb('0x20bd');return _0x236b96[_0x114ce2]=_0x3f1c3c[_0x28bbcb('0x1d86')][_0x114ce2]['toString'](),_0x236b96[_0x51538b()[_0x28bbcb('0x1b56')](_0x3f1c3c[_0x28bbcb('0x25c2')][_0x28bbcb('0x119e')])+_0x28bbcb('0x17fa')]=_0x3f1c3c[_0x28bbcb('0x1d86')]['id'],(_0x3f1c3c[_0x28bbcb('0x25c2')][_0x28bbcb('0x119e')]===_0x28bbcb('0x18da')||_0x3f1c3c[_0x28bbcb('0x25c2')]['channel']===_0x28bbcb('0x220d'))&&(_0x236b96[_0x28bbcb('0x1a46')]=_0x3f1c3c[_0x28bbcb('0x1d86')][_0x28bbcb('0x1a46')]),_0x1a386a&&(_0x236b96[_0x28bbcb('0x1037')]=_0x3f1c3c[_0x28bbcb('0x272b')]['id'],_0x236b96['ContactId']=_0x3f1c3c[_0x28bbcb('0x1d86')][_0x28bbcb('0xb9e')],_0x236b96[_0x28bbcb('0x54c')]=_0x1a386a),_0x236b96;}function _0x10e427(_0x47e2cc){var _0x33d95a=_0x45b7b9;if(_0x47e2cc[_0x33d95a('0x9f9')]>_0x45f97b)return _0x41e69f[_0x33d95a('0x187f')]({'title':_0x33d95a('0xfad'),'msg':_0x33d95a('0x15dd')+_0x283116+'MB'}),![];return!![];}function _0x4b2123(_0x5b7358,_0x36c542){var _0x430369=_0x45b7b9,_0x5ec9ec=JSON[_0x430369('0x9b6')](_0x36c542),_0x257a70=_0x5ec9ec[_0x430369('0x25d6')];_0x3f1c3c['tab']['channel']===_0x430369('0x20f9')&&(_0x257a70=_0x430369('0x2135')+(_0x3f1c3c[_0x430369('0x5b')][_0x430369('0xd72')]?_0x3f1c3c[_0x430369('0x5b')][_0x430369('0xd72')]:_0x5d13d7[_0x430369('0x1cc2')]()+'://'+_0x5d13d7[_0x430369('0x160c')]())+_0x430369('0x1654')+_0x3f1c3c[_0x430369('0x1d86')]['id']+_0x430369('0x682')+_0x5ec9ec['id']+_0x430369('0x726')+_0x3f1c3c[_0x430369('0x5b')][_0x430369('0xbe2')]+_0x430369('0xa8b')+_0x5ec9ec[_0x430369('0x25d6')]+_0x430369('0x23f3')),_0x43272f({'body':_0x257a70,'AttachmentId':_0x5ec9ec['id']});}function _0x44eab1(){var _0x2e3cc8=_0x45b7b9;_0x3f1c3c[_0x2e3cc8('0x27cd')][_0x2e3cc8('0xcba')][_0x2e3cc8('0x177d')]['headers']={'X-Requested-With':_0x2e3cc8('0x1888'),'Authorization':_0x2e3cc8('0x2070')+_0x21ae25[_0x2e3cc8('0x2122')]('motion.token')},_0x3f1c3c['ngFlow'][_0x2e3cc8('0xcba')][_0x2e3cc8('0x158b')]();}function _0x3385c5(_0x59f774,_0x170265){var _0x5baec9=_0x45b7b9;if(_0x59f774&&_0x59f774[_0x5baec9('0x8cb')]===0xd&&_0x59f774['shiftKey'])return;if(_0x59f774&&_0x59f774[_0x5baec9('0x8cb')]!==0xd)return;if(_0x170265[_0x5baec9('0x2497')]()==='')return;_0x43272f(_0xbfec37(_0x170265[_0x5baec9('0x170d')](/\n$/,'')));}function _0x5eaf82(){var _0x2353a6=_0x45b7b9;_0x3f1c3c[_0x2353a6('0x25c2')][_0x2353a6('0x119e')]!==_0x2353a6('0x14c5')&&_0x39e2f9(function(){var _0x28dab1=_0x2353a6,_0x41aa68=angular['element'](_0x3f24e8['find'](_0x28dab1('0x1378')+_0x3f1c3c[_0x28dab1('0x25c2')]['id']+'\x27]'));_0x41aa68&&_0x41aa68[0x0]&&(_0x41aa68[0x0][_0x28dab1('0x1f44')]=_0x41aa68[0x0][_0x28dab1('0x270d')]);},0x0);}function _0x5d0121(_0x9a1a21){var _0x5b8d1f=_0x45b7b9,_0x1b68ee=_0x5b8d1f('0x7ae');if(_0x9a1a21){if(_0x9a1a21[_0x5b8d1f('0x1108')]==='in')return _0x9a1a21['Contact']?_0x9a1a21['Contact'][_0x5b8d1f('0x24c1')]||_0x5b8d1f('0x1707'):_0x1b68ee;else{if(_0x9a1a21[_0x5b8d1f('0x1037')])return _0x3f1c3c['usersMap']?_0x3f1c3c[_0x5b8d1f('0xba6')][_0x9a1a21[_0x5b8d1f('0x1037')]]:_0x1b68ee;}return'System'||0x0;}}function _0x3e0aad(_0x27b992,_0x4f5e27){var _0x5de7b2=_0x45b7b9;_0x3f1c3c['tab']['channel']&&_0x27b992['id']&&_0x25f769[_0x3f1c3c[_0x5de7b2('0x25c2')][_0x5de7b2('0x119e')]+_0x5de7b2('0x4d8')][_0x5de7b2('0x1cf9')]({'id':_0x27b992['id'],'attachments':_0x4f5e27})['$promise']['then'](function(_0x5a1127){var _0x1da7da=_0x5de7b2,_0x464f95=[_0x5a1127['buffer']],_0x59cc6a=_0x1da7da('0x1cf9'),_0x2407b2=new Blob(_0x464f95,{'type':_0x5a1127[_0x1da7da('0x6c8')]});_0x59cc6a=_0x3f1c3c['tab'][_0x1da7da('0x119e')]+_0x1da7da('0x204c')+_0x27b992['id']+_0x1da7da('0x2477');var _0xfee28d=window[_0x1da7da('0x12aa')]['createElement']('a');_0xfee28d[_0x1da7da('0x107b')](_0x1da7da('0x18ae'),URL[_0x1da7da('0x1e56')](_0x2407b2)),_0xfee28d['setAttribute'](_0x1da7da('0x1cf9'),_0x59cc6a),document[_0x1da7da('0x54c')][_0x1da7da('0x1315')](_0xfee28d),_0xfee28d['click']();})[_0x5de7b2('0x253d')](function(_0x15ac40){var _0x3677e4=_0x5de7b2;if(_0x15ac40[_0x3677e4('0x10fd')]&&_0x15ac40[_0x3677e4('0x10fd')][_0x3677e4('0x4c6')]&&_0x15ac40[_0x3677e4('0x10fd')][_0x3677e4('0x4c6')]['length'])for(var _0x2f2c82=0x0;_0x2f2c82<_0x15ac40[_0x3677e4('0x10fd')][_0x3677e4('0x4c6')][_0x3677e4('0x2587')];_0x2f2c82+=0x1){_0x41e69f[_0x3677e4('0x187f')]({'title':_0x15ac40[_0x3677e4('0x10fd')]['errors'][_0x2f2c82][_0x3677e4('0x6c8')],'msg':_0x15ac40[_0x3677e4('0x10fd')][_0x3677e4('0x4c6')][_0x2f2c82]['message']});}else _0x41e69f[_0x3677e4('0x187f')]({'title':_0x15ac40[_0x3677e4('0x2fa')]?_0x3677e4('0x16c2')+_0x15ac40[_0x3677e4('0x2fa')]+_0x3677e4('0x169e')+_0x15ac40['statusText']:'api.downloadMessage.get','msg':_0x15ac40[_0x3677e4('0x10fd')]?JSON['stringify'](_0x15ac40[_0x3677e4('0x10fd')][_0x3677e4('0x1402')]):_0x15ac40[_0x3677e4('0x684')]()});});}function _0x40a3f6(_0x9358c9,_0x3f67d2){var _0x551cf4=_0x45b7b9;_0x3f1c3c['tab'][_0x551cf4('0x119e')]&&_0x9358c9['id']&&_0x25f769[_0x3f1c3c[_0x551cf4('0x25c2')][_0x551cf4('0x119e')]+_0x551cf4('0x11')]['download']({'id':_0x9358c9['id'],'attachments':_0x3f67d2})[_0x551cf4('0x1dc2')]['then'](function(_0x352be6){var _0x142898=_0x551cf4,_0x4f076c=[_0x352be6[_0x142898('0x1bf1')]],_0x34d2fa=_0x3f1c3c[_0x142898('0x25c2')][_0x142898('0x119e')]+'-interaction'+_0x9358c9['id']+_0x142898('0x966'),_0x27ab3b=new Blob(_0x4f076c,{'type':_0x352be6[_0x142898('0x6c8')]}),_0x4e4f5b=window['document']['createElement']('a');_0x4e4f5b[_0x142898('0x107b')](_0x142898('0x18ae'),URL['createObjectURL'](_0x27ab3b)),_0x4e4f5b[_0x142898('0x107b')](_0x142898('0x1cf9'),_0x34d2fa),document[_0x142898('0x54c')][_0x142898('0x1315')](_0x4e4f5b),_0x4e4f5b[_0x142898('0x467')]();})[_0x551cf4('0x253d')](function(_0x55c94a){var _0x5e4463=_0x551cf4;if(_0x55c94a[_0x5e4463('0x10fd')]&&_0x55c94a[_0x5e4463('0x10fd')][_0x5e4463('0x4c6')]&&_0x55c94a[_0x5e4463('0x10fd')]['errors'][_0x5e4463('0x2587')])for(var _0x1ea518=0x0;_0x1ea518<_0x55c94a[_0x5e4463('0x10fd')][_0x5e4463('0x4c6')][_0x5e4463('0x2587')];_0x1ea518+=0x1){_0x41e69f[_0x5e4463('0x187f')]({'title':_0x55c94a[_0x5e4463('0x10fd')][_0x5e4463('0x4c6')][_0x1ea518][_0x5e4463('0x6c8')],'msg':_0x55c94a[_0x5e4463('0x10fd')][_0x5e4463('0x4c6')][_0x1ea518][_0x5e4463('0x1402')]});}else _0x41e69f[_0x5e4463('0x187f')]({'title':_0x55c94a[_0x5e4463('0x2fa')]?_0x5e4463('0x16c2')+_0x55c94a[_0x5e4463('0x2fa')]+_0x5e4463('0x169e')+_0x55c94a[_0x5e4463('0x24df')]:_0x5e4463('0x2148'),'msg':_0x55c94a['data']?JSON[_0x5e4463('0xa48')](_0x55c94a[_0x5e4463('0x10fd')]['message']):_0x55c94a[_0x5e4463('0x684')]()});});}function _0x43272f(_0x1424d5){var _0x475b92=_0x45b7b9;if(_0x1424d5)return _0x1424d5[_0x3f1c3c['tab'][_0x475b92('0x119e')]===_0x475b92('0x20f9')?_0x475b92('0x1421'):_0x51538b()[_0x475b92('0x1b56')](_0x3f1c3c[_0x475b92('0x25c2')]['channel'])+_0x475b92('0x20bd')]=_0x3f1c3c[_0x475b92('0x1d86')][_0x3f1c3c[_0x475b92('0x25c2')][_0x475b92('0x119e')]===_0x475b92('0x20f9')?_0x475b92('0x1421'):_0x51538b()[_0x475b92('0x1b56')](_0x3f1c3c['tab'][_0x475b92('0x119e')])+_0x475b92('0x20bd')],_0x1424d5[_0x51538b()[_0x475b92('0x1b56')](_0x3f1c3c[_0x475b92('0x25c2')][_0x475b92('0x119e')])+_0x475b92('0x17fa')]=_0x3f1c3c['interaction']['id'],_0x1424d5[_0x475b92('0x1037')]=_0x3f1c3c['user']['id'],_0x1424d5[_0x475b92('0xb9e')]=_0x3f1c3c['interaction']['ContactId'],_0x1424d5[_0x475b92('0x1108')]=_0x475b92('0xdb'),_0x1424d5['secret']=Boolean(_0x3f1c3c[_0x475b92('0x25c2')]['spy']||_0x1424d5[_0x475b92('0x203a')]),_0x25f769[_0x3f1c3c[_0x475b92('0x25c2')][_0x475b92('0x119e')]+_0x475b92('0x4d8')][_0x475b92('0x242b')](_0x1424d5)[_0x475b92('0x1dc2')][_0x475b92('0xaa5')](function(_0x5b8442){var _0x54f361=_0x475b92;if(_0x5b8442&&_0x5b8442['id']){if(!_0x51538b()[_0x54f361('0x116b')](_0x1424d5[_0x54f361('0x1c8c')])){var _0x5138c9=[];for(var _0x2991b8=0x0;_0x2991b8<_0x1424d5[_0x54f361('0x1c8c')][_0x54f361('0x2587')];_0x2991b8++){var _0x1b8a53=_0x1424d5['attachments'][_0x2991b8];_0x1b8a53['MailMessageId']?_0x5138c9['push'](_0x25f769[_0x54f361('0xa46')][_0x54f361('0x1ae5')]({'id':_0x1b8a53['id']},{'name':_0x1b8a53['name'],'basename':_0x1b8a53[_0x54f361('0x120c')],'type':_0x1b8a53[_0x54f361('0x6c8')],'MailMessageId':_0x5b8442['id']})[_0x54f361('0x1dc2')]):_0x5138c9[_0x54f361('0x1599')](_0x25f769[_0x54f361('0xa46')][_0x54f361('0x264e')]({'id':_0x1b8a53['id']},{'MailMessageId':_0x5b8442['id']})['$promise']);}return _0x15fb81[_0x54f361('0xa15')](_0x5138c9);}}})[_0x475b92('0x253d')](function(_0x4db872){var _0xdb7742=_0x475b92;_0x41e69f[_0xdb7742('0x187f')]({'title':_0x4db872[_0xdb7742('0x2fa')]?_0xdb7742('0x16c2')+_0x4db872[_0xdb7742('0x2fa')]+_0xdb7742('0x169e')+_0x4db872[_0xdb7742('0x24df')]:_0xdb7742('0x1f37'),'msg':_0x4db872[_0xdb7742('0x10fd')]?JSON[_0xdb7742('0xa48')](_0x4db872['data']):_0x4db872[_0xdb7742('0x684')]()});})['finally'](function(){var _0x52aaee=_0x475b92;_0x3f1c3c['tab'][_0x52aaee('0x119e')]===_0x52aaee('0x14c5')&&(_0x1424d5['isDraft']&&(_0x3e247c['removeByInteraction'](_0x3f1c3c[_0x52aaee('0x1d86')]['id']),_0x3f1c3c[_0x52aaee('0x1679')]=null)),_0x3f1c3c[_0x52aaee('0x25c2')][_0x52aaee('0x2472')]='',_0x5eaf82();});}function _0x15939d(_0x3dc7d2){var _0x4e4c20=_0x45b7b9;_0x3f1c3c['tab'][_0x4e4c20('0x119e')]&&_0x3f1c3c[_0x4e4c20('0x1d86')]&&_0x3f1c3c[_0x4e4c20('0x1d86')]['id']&&_0x25f769[_0x3f1c3c[_0x4e4c20('0x25c2')][_0x4e4c20('0x119e')]+_0x4e4c20('0x11')]['update']({'id':_0x3f1c3c['interaction']['id'],'substatus':_0x3dc7d2})['$promise'][_0x4e4c20('0x253d')](function(_0x437d66){console['error'](_0x437d66);});}function _0x54ae74(){var _0x43b5f0=_0x45b7b9;if(_0x3f1c3c[_0x43b5f0('0x25c2')][_0x43b5f0('0x119e')]&&_0x3f1c3c[_0x43b5f0('0x1d86')]&&_0x3f1c3c[_0x43b5f0('0x1d86')]['id']){if(_0x3f1c3c[_0x43b5f0('0x1f10')]['length'])for(var _0x22cec6=0x0;_0x22cec6<_0x3f1c3c[_0x43b5f0('0x1f10')]['length'];_0x22cec6+=0x1){_0x25f769[_0x3f1c3c[_0x43b5f0('0x25c2')][_0x43b5f0('0x119e')]+_0x43b5f0('0x4d8')][_0x43b5f0('0x264e')]({'id':_0x3f1c3c[_0x43b5f0('0x1f10')][_0x22cec6],'read':![],'UserId':null});}else for(var _0xb2c9b6=0x0;_0xb2c9b6<_0x3f1c3c[_0x43b5f0('0x1783')][_0x43b5f0('0x580')][_0x43b5f0('0x2587')];_0xb2c9b6+=0x1){if(_0x3f1c3c[_0x43b5f0('0x1783')]['rows'][_0xb2c9b6]['direction']==='in'){_0x3f1c3c[_0x43b5f0('0x1783')][_0x43b5f0('0x580')][_0xb2c9b6][_0x43b5f0('0x1037')]===_0x3f1c3c[_0x43b5f0('0x272b')]['id']?_0x25f769[_0x3f1c3c[_0x43b5f0('0x25c2')][_0x43b5f0('0x119e')]+_0x43b5f0('0x4d8')][_0x43b5f0('0x264e')]({'id':_0x3f1c3c['messages'][_0x43b5f0('0x580')][_0xb2c9b6]['id'],'read':![],'UserId':null}):_0x41e69f[_0x43b5f0('0x187f')]({'title':_0x43b5f0('0xd1a'),'msg':_0x43b5f0('0x1da0')});break;}}}_0x3f1c3c[_0x43b5f0('0x25c2')][_0x43b5f0('0x1072')]=!![],_0x5390e6[_0x43b5f0('0x24a3')][_0x43b5f0('0x24a3')][_0x43b5f0('0x24a3')]['vm'][_0x43b5f0('0x633')](_0x3f1c3c[_0x43b5f0('0x25c2')]);}function _0x1174dd(_0x3bdbab){var _0x49169d=_0x45b7b9;if(_0x3bdbab&&_0x3f1c3c['interaction']['id']!==_0x3bdbab['id'])return;_0x3bdbab['closed']&&(_0x3f1c3c['tab']['saved']=!![]),_0x51538b()[_0x49169d('0x283c')](_0x3f1c3c[_0x49169d('0x1d86')],_0x3bdbab);}function _0xd07146(_0x1914d8){var _0xfa5de7=_0x45b7b9;if(_0x1914d8&&_0x3f1c3c['interaction']['id']!=_0x1914d8[_0x51538b()[_0xfa5de7('0x1b56')](_0x3f1c3c['tab']['channel'])+_0xfa5de7('0x17fa')])return;var _0x37140b=![];_0x3f1c3c[_0xfa5de7('0x1783')]?_0x37140b=_0x51538b()[_0xfa5de7('0xe9e')](_0x3f1c3c[_0xfa5de7('0x1783')]['rows'],{'id':_0x1914d8['id']}):_0x3f1c3c[_0xfa5de7('0x1783')]={'rows':[],'count':0x0},_0x37140b?_0x51538b()[_0xfa5de7('0x283c')](_0x37140b,_0x1914d8):(_0x3f1c3c[_0xfa5de7('0x25c2')][_0xfa5de7('0x119e')]==='mail'?_0x3f1c3c[_0xfa5de7('0x1783')][_0xfa5de7('0x580')][_0xfa5de7('0x6ee')](_0x1914d8):_0x3f1c3c[_0xfa5de7('0x1783')][_0xfa5de7('0x580')][_0xfa5de7('0x1599')](_0x1914d8),_0x5eaf82());}function _0x20a07f(_0x494b5b){var _0x3a1168=_0x45b7b9;switch(_0x494b5b){case _0x3a1168('0x20f9'):return _0x3a1168('0x20e');case _0x3a1168('0x14c5'):return'icon-email';case _0x3a1168('0x18da'):return _0x3a1168('0x1941');case _0x3a1168('0x220d'):return'icon-whatsapp';case _0x3a1168('0x170'):return _0x3a1168('0x3');case _0x3a1168('0x16c4'):return'icon-deskphone';default:return'icon-hangouts';}}function _0xa7b033(_0x8f7d45){var _0x3ad649=_0x45b7b9;switch(_0x8f7d45){case'chat':return _0x3ad649('0x1192');case'mail':return'teal';case _0x3ad649('0x18da'):return _0x3ad649('0x1ad3');case _0x3ad649('0x170'):return _0x3ad649('0x7d2');case _0x3ad649('0x16c4'):return _0x3ad649('0x1a41');case _0x3ad649('0x220d'):return _0x3ad649('0x9b1');default:return'blue-A700';}}function _0x14a8bc(_0x4d496c){var _0x5b22a0=_0x45b7b9,_0x1c22a1='';if(_0x4d496c[_0x5b22a0('0x16a8')])_0x1c22a1=_0x5b22a0('0x16c4');else{if(_0x4d496c[_0x5b22a0('0x62c')])_0x1c22a1=_0x5b22a0('0x170');else{if(_0x4d496c['SmsAccountId'])_0x1c22a1='sms';else{if(_0x4d496c[_0x5b22a0('0x1ab5')])_0x1c22a1=_0x5b22a0('0x220d');else{if(_0x4d496c['MailAccountId'])_0x1c22a1=_0x5b22a0('0x14c5');else{if(_0x4d496c[_0x5b22a0('0x1421')])_0x1c22a1='chat';else _0x4d496c[_0x5b22a0('0x1458')]&&(_0x1c22a1='voice');}}}}}return _0xa7b033(_0x1c22a1);}function _0x471e9c(_0x3a5de4){var _0x3e9860=_0x45b7b9;if(_0x3a5de4['secret']&&_0x3f1c3c[_0x3e9860('0x272b')]['id']!=_0x3a5de4[_0x3e9860('0x1037')])return'in';switch(_0x3f1c3c[_0x3e9860('0x143f')][_0x3e9860('0x1c08')]){case'left':if(_0x3a5de4[_0x3e9860('0x1108')]=='in')return _0x3a5de4[_0x3e9860('0x1108')];return _0x3e9860('0xf2a');case'right':if(_0x3a5de4[_0x3e9860('0x1108')]=='in')return'in-right-aligned';return _0x3a5de4[_0x3e9860('0x1108')];default:return _0x3a5de4['direction'];}}function _0x56ed26(){var _0x1c664f=_0x45b7b9;_0x3f1c3c[_0x1c664f('0x1be')]=!_0x3f1c3c[_0x1c664f('0x1be')];}function _0x570c62(_0x504cf5){var _0x4fbda5=_0x45b7b9;return _0x25f769[_0x4fbda5('0xa46')]['get']({'MailMessageId':_0x504cf5['id']})[_0x4fbda5('0x1dc2')][_0x4fbda5('0xaa5')](function(_0x4a20d4){var _0x544d25=_0x4fbda5;_0x4a20d4&&_0x4a20d4['rows']&&(_0x504cf5[_0x544d25('0x1c8c')]=_0x4a20d4[_0x544d25('0x580')]);})[_0x4fbda5('0x253d')](function(_0x1422f7){var _0x6b4e8e=_0x4fbda5;_0x41e69f[_0x6b4e8e('0x187f')]({'title':_0x1422f7[_0x6b4e8e('0x2fa')]?'API:'+_0x1422f7[_0x6b4e8e('0x2fa')]+_0x6b4e8e('0x169e')+_0x1422f7[_0x6b4e8e('0x24df')]:_0x6b4e8e('0x6ff'),'msg':_0x1422f7['data']?JSON['stringify'](_0x1422f7[_0x6b4e8e('0x10fd')]):_0x1422f7[_0x6b4e8e('0x684')]()});});}function _0x495588(_0x133a1f){var _0x4aee07=_0x45b7b9;return _0x25f769[_0x4aee07('0xa46')][_0x4aee07('0x1cf9')]({'id':_0x133a1f['id']})[_0x4aee07('0x1dc2')][_0x4aee07('0xaa5')](function(_0xa34d47){var _0x214378=_0x4aee07;if(_0xa34d47){var _0x5233c4=new Blob([_0xa34d47['buffer']],{'type':_0xa34d47[_0x214378('0x6c8')]}),_0x181c67=document[_0x214378('0x531')]('a'),_0x43550a=window[_0x214378('0x12d3')]['createObjectURL'](_0x5233c4);_0x181c67[_0x214378('0x18ae')]=_0x43550a,_0x181c67[_0x214378('0xe2e')]='_self',_0x181c67[_0x214378('0x1cf9')]=_0x133a1f[_0x214378('0x25d6')],document[_0x214378('0x54c')][_0x214378('0x1315')](_0x181c67),_0x181c67[_0x214378('0x467')](),setTimeout(function(){var _0xc8943b=_0x214378;document[_0xc8943b('0x54c')][_0xc8943b('0x2588')](_0x181c67),window[_0xc8943b('0x12d3')]['revokeObjectURL'](_0x43550a);},0x64);}})[_0x4aee07('0x253d')](function(_0x2b0a29){var _0x4ee262=_0x4aee07;_0x41e69f['error']({'title':_0x2b0a29[_0x4ee262('0x2fa')]?_0x4ee262('0x16c2')+_0x2b0a29['status']+_0x4ee262('0x169e')+_0x2b0a29[_0x4ee262('0x24df')]:_0x4ee262('0x6ff'),'msg':_0x2b0a29[_0x4ee262('0x10fd')]?JSON['stringify'](_0x2b0a29[_0x4ee262('0x10fd')]):_0x2b0a29[_0x4ee262('0x684')]()});});}function _0x255168(){var _0x1a4110=_0x45b7b9;if(!_0x3f1c3c['tab'][_0x1a4110('0x71')]&&!_0x3f1c3c[_0x1a4110('0x1d86')][_0x1a4110('0x1cbd')])for(var _0x42fff0=0x0;_0x42fff0<_0x3f1c3c[_0x1a4110('0x1783')]['rows'][_0x1a4110('0x2587')];_0x42fff0+=0x1){_0x3f1c3c['messages'][_0x1a4110('0x580')][_0x42fff0][_0x1a4110('0x1108')]==='in'&&!_0x3f1c3c[_0x1a4110('0x1783')]['rows'][_0x42fff0][_0x1a4110('0x7b7')]&&(_0x25f769[_0x3f1c3c[_0x1a4110('0x25c2')][_0x1a4110('0x119e')]+_0x1a4110('0x4d8')][_0x1a4110('0x5d5')]({'id':_0x3f1c3c['messages'][_0x1a4110('0x580')][_0x42fff0]['id'],'UserId':_0x3f1c3c[_0x1a4110('0x272b')]['id']}),_0x3f1c3c[_0x1a4110('0x1f10')]['push'](_0x3f1c3c[_0x1a4110('0x1783')][_0x1a4110('0x580')][_0x42fff0]['id']));}}function _0x42fce3(_0x20c68d){var _0x38f149=_0x45b7b9;if(!_0x20c68d[_0x38f149('0x106e')])return'('+_0xd1677b[_0x38f149('0x213f')](_0x38f149('0x2615'))+')';var _0x126123=_0x51538b()[_0x38f149('0x1c9e')]([_0x20c68d[_0x38f149('0x106e')],_0x20c68d[_0x38f149('0x1fdd')],_0x20c68d[_0x38f149('0x66e')]]);return'('+_0x126123[_0x38f149('0x19c4')](_0x38f149('0x169e'))+')';}function _0x30e64e(_0x5b8786){var _0x20ac0d=_0x45b7b9;_0x5b8786&&_0x5b8786[_0x20ac0d('0xd15')]&&_0x5b8786[_0x20ac0d('0x580')][_0x20ac0d('0x2587')]&&(_0x3f1c3c[_0x20ac0d('0x98f')]=_0x51538b()[_0x20ac0d('0x9e4')](_0x3f1c3c[_0x20ac0d('0x98f')],_0x5b8786[_0x20ac0d('0x580')]),_0x3f1c3c[_0x20ac0d('0x98f')][_0x20ac0d('0x15b5')](function(_0xe509bb){var _0x40777c=_0x20ac0d;_0xe509bb[_0x40777c('0x1fac')]=_0x42fce3(_0xe509bb);}));}function _0x433022(_0x402dfb){var _0x3537a0=_0x45b7b9;if(_0x402dfb&&_0x402dfb['id']){for(var _0x5a3e1a=0x0;_0x5a3e1a<_0x3f1c3c['omniChannels'][_0x3537a0('0x2587')];_0x5a3e1a++){_0x25f769[_0x3f1c3c[_0x3537a0('0x32e')][_0x5a3e1a]+'Interaction'][_0x3537a0('0x2122')]({'ContactId':_0x402dfb['id'],'journey':!![],'includeAll':!![]})[_0x3537a0('0x1dc2')]['then'](_0x30e64e);}_0x25f769[_0x3537a0('0x4d4')]['get']({'ContactId':_0x402dfb['id'],'includeAll':!![]})[_0x3537a0('0x1dc2')][_0x3537a0('0xaa5')](_0x30e64e);}}function _0x34a989(_0xf4053f){var _0x234e8d=_0x45b7b9;return _0xf4053f?String(_0xf4053f)[_0x234e8d('0x170d')](/<[^>]+>/gm,''):'';}function _0x59b3c0(_0x5026e4){var _0x17e1d4=_0x45b7b9;switch(_0x3f1c3c[_0x17e1d4('0x25c2')][_0x17e1d4('0x119e')]){case _0x17e1d4('0x14c5'):_0x3f1c3c['draft'][_0x17e1d4('0x15af')][_0x17e1d4('0x1b09')]=_0x5026e4?_0x51538b()['find'](_0x3f1c3c[_0x17e1d4('0x1d86')][_0x17e1d4('0x1cd2')],['id',_0x5026e4]):_0x3f1c3c[_0x17e1d4('0x1d86')]['Messages'][_0x3f1c3c[_0x17e1d4('0x1d86')][_0x17e1d4('0x1cd2')]['length']-0x1],_0x574d38(_0x3f1c3c[_0x17e1d4('0x1679')][_0x17e1d4('0x6c8')],_0x3f1c3c[_0x17e1d4('0x1679')][_0x17e1d4('0x15af')]);break;case _0x17e1d4('0x16c4'):break;case _0x17e1d4('0x170'):break;case'sms':break;case _0x17e1d4('0x220d'):break;}}_0x5390e6[_0x45b7b9('0xc75')](_0x45b7b9('0x12d0'),function(){var _0x6e10c0=_0x45b7b9;_0x4d877c[_0x6e10c0('0x2629')](_0x3f1c3c[_0x6e10c0('0x25c2')][_0x6e10c0('0x119e')]+'Message:save'),_0x4d877c[_0x6e10c0('0x2629')](_0x3f1c3c[_0x6e10c0('0x25c2')][_0x6e10c0('0x119e')]+_0x6e10c0('0xcde')),_0x4d877c[_0x6e10c0('0x2629')](_0x3f1c3c[_0x6e10c0('0x25c2')]['channel']+_0x6e10c0('0x1032')),_0x4d877c['removeAllListeners'](_0x3f1c3c[_0x6e10c0('0x25c2')][_0x6e10c0('0x119e')]+_0x6e10c0('0x21d')),_0x4d877c['removeAllListeners'](_0x6e10c0('0x11b7')+_0x3f1c3c[_0x6e10c0('0x25c2')][_0x6e10c0('0x119e')]+_0x6e10c0('0x23df')),_0x4d877c['removeAllListeners'](_0x6e10c0('0x11b7')+_0x3f1c3c['tab']['channel']+_0x6e10c0('0x95d'));});function _0x185112(_0x449502){var _0x3c081e=_0x45b7b9,_0x474039={'id':_0x449502['id']};return _0x25f769['chatInteraction'][_0x3c081e('0x1076')](_0x474039)[_0x3c081e('0x1dc2')][_0x3c081e('0xaa5')](function(){var _0x477ba5=_0x3c081e;_0x41e69f[_0x477ba5('0xe10')]({'title':_0x477ba5('0x1aa7'),'msg':_0x477ba5('0x114')});})[_0x3c081e('0x253d')](function(){var _0x2d4c38=_0x3c081e;_0x41e69f[_0x2d4c38('0x187f')]({'title':_0x2d4c38('0x1aa7'),'msg':_0x2d4c38('0x1084')});});}}function _0x4b7d69(_0x4a5a51){return{'scope':{'ngBindHtmlUnsafe':'='},'template':'','link':function _0x3e5572(_0x22a8eb){var _0x252439=a0_0x1149;function _0x1d4355(){var _0x5834f4=a0_0x1149,_0x559ed0='xm-mail-content-'+Math[_0x5834f4('0x20cb')](Math[_0x5834f4('0x8fc')]()*0x270f+0x1);return'_0x51db74)return _0x4d3758['error']({'title':'File\x20too\x20big','msg':_0x53c4dc('0x15dd')+_0x2064f1+'MB'}),![];return!![];}function _0x437d72(_0x306599,_0x2c8cbe){var _0xb8dc82=_0x22e263;try{_0x2c8cbe=JSON[_0xb8dc82('0x9b6')](_0x2c8cbe),_0x2c8cbe[_0xb8dc82('0x9f9')]=_0x306599[_0xb8dc82('0x9f9')],_0x3a97e0[_0xb8dc82('0x1402')]['attachments'][_0xb8dc82('0x1599')](_0x2c8cbe);}catch(_0x2dc104){console['error'](_0x2dc104);}}function _0x4ef22c(_0x352570){var _0x26b6f5=_0x22e263,_0x30c642='';return _0x352570[_0x26b6f5('0x24c1')]&&_0x352570[_0x26b6f5('0x24c1')]!==_0x352570[_0x26b6f5('0x16c4')]&&(_0x30c642+=_0x352570[_0x26b6f5('0x24c1')]+'\x20'),_0x352570[_0x26b6f5('0x351')]&&_0x352570[_0x26b6f5('0x351')]!==_0x352570[_0x26b6f5('0x16c4')]&&(_0x30c642+=_0x352570[_0x26b6f5('0x351')]+'\x20'),_0x30c642+='<'+_0x352570[_0x26b6f5('0x16c4')]+'>';}function _0x2abca4(_0x47eff6){var _0x3fb7db=_0x22e263,_0x3edba1=_0x47eff6;if(_0x51538b()[_0x3fb7db('0x1189')](_0x47eff6))return _0x47eff6[_0x3fb7db('0x16c4')];if(_0x511c98(_0x3edba1))return _0x3edba1;return _0x4d3758['error'](_0x3fb7db('0x212d')+_0x3edba1+_0x3fb7db('0x1cef')),null;}function _0x511c98(_0x315cc1){var _0x304291=_0x22e263,_0x493ead=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x493ead[_0x304291('0x42d')](_0x315cc1);}function _0x45b8ba(_0x884081){var _0x237603=_0x22e263;return _0xd6959b&&_0xd6959b['ListId']?_0x3f5ac1[_0x237603('0xdbd')][_0x237603('0x2122')]({'ListId':_0xd6959b[_0x237603('0xee0')],'nolimit':!![],'filter':_0x884081,'fields':_0x237603('0x12b8')})['$promise']['then'](function(_0x351077){var _0x1bae7f=_0x237603;return _0x351077[_0x1bae7f('0x580')];}):[];}function _0x51efdf(){var _0x4ad6c3=_0x22e263;_0x4ccc4d['draft']=_0x3a97e0['message'],_0x228b43[_0x4ad6c3('0x2030')]();}}const _0x22b65e=_0x59ed93;_0xb8dcb5['$inject']=['$cookies',_0x1a8446('0x27bf'),_0x1a8446('0x2378'),'$mdConstant','$translate',_0x1a8446('0x5b'),_0x1a8446('0x1402'),_0x1a8446('0x6c8'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'$q',_0x1a8446('0x1dfd'),_0x1a8446('0x1d86'),_0x1a8446('0xa66')];function _0xb8dcb5(_0x104264,_0x2ca14c,_0x11d83a,_0x53a11b,_0x5d13f2,_0x42db58,_0x527031,_0x27f48e,_0x11f776,_0x3b026d,_0x3e82c6,_0x5940c5,_0xd644c6,_0x3a7f87){var _0x3a3ce1=_0x1a8446,_0x328592=this,_0x3b5500=0x19,_0x54eeec=_0x3b5500*0x400*0x400;_0x328592[_0x3a3ce1('0x7fc')]=_0x5940c5['getCurrentUser'](),_0x328592[_0x3a3ce1('0x203a')]=_0x27f48e===_0x3a3ce1('0x1a4d')?!![]:![],_0x328592[_0x3a3ce1('0x9ac')]=!![],_0x328592[_0x3a3ce1('0xab5')]=!![],_0x328592[_0x3a3ce1('0x2361')]=!![],_0x328592[_0x3a3ce1('0x4c6')]=[],_0x328592[_0x3a3ce1('0x2273')]=[_0x53a11b['KEY_CODE'][_0x3a3ce1('0x1985')],_0x53a11b['KEY_CODE']['COMMA'],_0x53a11b[_0x3a3ce1('0x172e')][_0x3a3ce1('0x2302')]],_0x328592[_0x3a3ce1('0x1f32')]=_0x35f941,_0x328592['selectedItemChange']=_0x3bb359,_0x328592[_0x3a3ce1('0x1a84')]=_0x37eda3,_0x51538b()[_0x3a3ce1('0x1bf3')][_0x3a3ce1('0x2100')]=/{{([\s\S]+?)}}/g,_0x328592[_0x3a3ce1('0x1856')]=_0x51538b()[_0x3a3ce1('0x11f6')](_0x3a3ce1('0x1ca1')),_0x328592['replyTemplate']=_0x51538b()['template'](_0x3a3ce1('0x516')),_0x328592[_0x3a3ce1('0x1e08')]=_0x51538b()[_0x3a3ce1('0x11f6')](_0x3a3ce1('0x23db')),_0x328592[_0x3a3ce1('0x1402')]={'from':_0x328592['fromTemplate']({'name':_0x42db58[_0x3a3ce1('0x25d6')],'email':_0x42db58[_0x3a3ce1('0x1f69')]||_0x42db58[_0x3a3ce1('0x1867')][_0x3a3ce1('0x272b')]}),'to':[],'cc':[],'bcc':[],'body':_0x13c4bd(),'type':_0x27f48e,'attachments':[],'showLastMessage':!![]},_0x328592[_0x3a3ce1('0x1679')]=null,_0x328592[_0x3a3ce1('0x23ee')]={'skin':_0x3a3ce1('0xc1f'),'startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':'font,colorbutton,autogrow,autoembed,autocorrect,googlethisterm,pastebase64','toolbarGroups':[{'name':_0x3a3ce1('0x1f90'),'groups':[_0x3a3ce1('0x1f90')]},{'name':_0x3a3ce1('0xbf3'),'groups':['undo']},{'name':_0x3a3ce1('0x62b'),'groups':[_0x3a3ce1('0x62b')]},{'name':_0x3a3ce1('0xb7c'),'groups':[_0x3a3ce1('0xb7c')]},{'name':_0x3a3ce1('0x1a73'),'groups':[_0x3a3ce1('0x2334'),'indent','align']}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x328592[_0x3a3ce1('0x203a')]?0xa0:0x12c,'autoGrow_maxHeight':_0x2ca14c[_0x3a3ce1('0x435')]-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window[_0x3a3ce1('0x94d')][_0x3a3ce1('0xfbd')],'font_defaultLabel':_0x42db58['fontFamily']?_0x42db58[_0x3a3ce1('0x1d18')][_0x3a3ce1('0x1a39')](',')[0x0]:_0x3a3ce1('0x24f2'),'fontSize_defaultLabel':_0x42db58[_0x3a3ce1('0x710')]||'12','removePlugins':'magicline'};var _0x343c99=[];for(var _0x5a4d55=0x8;_0x5a4d55<=0x48;_0x5a4d55++){_0x343c99[_0x3a3ce1('0x1599')](_0x5a4d55+'/'+_0x5a4d55+'pt');}_0x328592['ckeditor']['fontSize_sizes']=_0x343c99[_0x3a3ce1('0x19c4')](';'),_0x328592[_0x3a3ce1('0x1c88')]={'target':_0x3a3ce1('0x291'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x54eeec,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x328592[_0x3a3ce1('0x27cd')]={'flow':{}},_0x328592[_0x3a3ce1('0x59')]=_0x5256d4,_0x328592[_0x3a3ce1('0x71a')]=_0x21ece4,_0x328592[_0x3a3ce1('0x20e7')]=_0x56d443,_0x328592[_0x3a3ce1('0x2630')]=_0x5c9fd8,_0x328592['send']=_0x5eee6b,_0x328592[_0x3a3ce1('0x1a4d')]=_0x2d409f,_0x328592[_0x3a3ce1('0x48e')]=_0x1ff8de,_0x328592['upload']=_0xd84a01,_0x328592[_0x3a3ce1('0x1313')]=_0x581727,_0x328592[_0x3a3ce1('0x23e2')]=_0x38eea1,_0x328592[_0x3a3ce1('0x20d1')]=_0x729a25,_0x328592[_0x3a3ce1('0x1d40')]=_0x56136a,_0x328592[_0x3a3ce1('0x18d0')]=_0x2c0fd6,_0x328592['transformContact']=_0x4f5834,_0x328592[_0x3a3ce1('0x1c4e')]=_0x2ddbb4,_0x328592[_0x3a3ce1('0x2023')]=_0x47ea48,_0x328592[_0x3a3ce1('0x571')]=_0x89d42f;switch(_0x27f48e){case _0x3a3ce1('0x59'):_0x328592['reply'](![]);break;case'replyAll':_0x328592[_0x3a3ce1('0x59')](!![]);break;case _0x3a3ce1('0x20e7'):_0x328592[_0x3a3ce1('0x20e7')]();break;case'draft':_0x328592[_0x3a3ce1('0x2630')]();break;case _0x3a3ce1('0x1062'):_0x328592[_0x3a3ce1('0x71a')]();break;case _0x3a3ce1('0x1a4d'):_0x328592['note']();break;}_0x11f776['mailSubstatus'][_0x3a3ce1('0x2122')]({'nolimit':!![]})['$promise'][_0x3a3ce1('0xaa5')](function(_0x166f6a){var _0x3b281a=_0x3a3ce1;_0x328592[_0x3b281a('0x68')]=_0x166f6a||{'count':0x0,'rows':[]};})[_0x3a3ce1('0x253d')](function(_0x1d80c3){var _0x1b33ec=_0x3a3ce1;console[_0x1b33ec('0x187f')](_0x1d80c3);});!_0x328592[_0x3a3ce1('0x203a')]&&_0x3cba15();function _0x5256d4(_0x57451f){var _0x158da4=_0x3a3ce1;angular[_0x158da4('0x21dc')](_0x527031)&&(_0x328592[_0x158da4('0x1402')][_0x158da4('0x6c8')]=_0x158da4('0x59'),_0x328592['message']['to']=_0x527031[_0x158da4('0x1108')]==='in'?_0x527031['from']['split'](','):_0x527031['to'][_0x158da4('0x1a39')](','),_0x328592[_0x158da4('0x1402')][_0x158da4('0x2101')]=_0x51538b()[_0x158da4('0x6e8')](_0x527031[_0x158da4('0x2101')],'Re:')?_0x527031['subject']:_0x158da4('0x203')+_0x527031[_0x158da4('0x2101')],_0x328592[_0x158da4('0x1402')][_0x158da4('0xdf9')]=_0x527031[_0x158da4('0x1ba')],_0x328592['message'][_0x158da4('0x54c')]=_0x13c4bd(),_0x328592['message'][_0x158da4('0x1c8c')]=[],_0x57451f&&_0x527031['cc']&&(_0x328592[_0x158da4('0x9ac')]=![],_0x328592['message']['cc']=_0x527031['cc'][_0x158da4('0x1a39')](',')),_0x328592[_0x158da4('0x1402')]['showLastMessage']=![]);}function _0x21ece4(){var _0x56151b=_0x3a3ce1;angular[_0x56151b('0x21dc')](_0x527031)&&(_0x328592[_0x56151b('0x1402')][_0x56151b('0x6c8')]=_0x56151b('0x1062'),_0x328592[_0x56151b('0x1402')]['to']=_0x527031['to']?_0x527031['to'][_0x56151b('0x1a39')](','):[]);}function _0x5c9fd8(){var _0x389158=_0x3a3ce1;_0x328592['isDraft']=!![],angular[_0x389158('0x21dc')](_0x527031)&&(_0x527031[_0x389158('0x22a4')]=![],_0x328592[_0x389158('0x1402')]=angular[_0x389158('0x20a')](_0x527031),!_0x51538b()[_0x389158('0x116b')](_0x328592[_0x389158('0x1402')]['cc'])&&(_0x328592[_0x389158('0x9ac')]=![]),!_0x51538b()['isEmpty'](_0x328592[_0x389158('0x1402')][_0x389158('0x2432')])&&(_0x328592[_0x389158('0xab5')]=![]));}function _0x56d443(){var _0x4efdaf=_0x3a3ce1;if(angular['isDefined'](_0x527031)){_0x328592['message'][_0x4efdaf('0x6c8')]=_0x4efdaf('0x20e7'),_0x328592[_0x4efdaf('0x1402')]['subject']=_0x51538b()[_0x4efdaf('0x6e8')](_0x527031[_0x4efdaf('0x2101')],_0x4efdaf('0x2051'))?_0x527031[_0x4efdaf('0x2101')]:_0x4efdaf('0x1c09')+_0x527031[_0x4efdaf('0x2101')],_0x328592[_0x4efdaf('0x1402')][_0x4efdaf('0x54c')]=_0x13c4bd();if(_0x527031[_0x4efdaf('0xe84')]&&_0x527031['Attachments']['length'])for(var _0x35aa55=0x0;_0x35aa55<_0x527031[_0x4efdaf('0xe84')][_0x4efdaf('0x2587')];_0x35aa55++){_0x328592[_0x4efdaf('0x1402')][_0x4efdaf('0x1c8c')]['push'](_0x527031[_0x4efdaf('0xe84')][_0x35aa55]);}_0x328592[_0x4efdaf('0x1402')][_0x4efdaf('0xac4')]=![];}}function _0x2d409f(){var _0x1ca904=_0x3a3ce1;_0x328592['type']=_0x1ca904('0x1a4d'),_0x328592[_0x1ca904('0x203a')]=!![],_0x328592[_0x1ca904('0x1402')][_0x1ca904('0x54c')]=_0x1ca904('0x1d68')+_0x42db58[_0x1ca904('0x1d18')]+_0x1ca904('0x1cb9')+_0x42db58[_0x1ca904('0x710')]+_0x1ca904('0x2084');}function _0xd3637c(_0x370666,_0x32120b){var _0x32af81=_0x3a3ce1,_0x236d1a={'from':_0x328592[_0x32af81('0x1402')]['from'],'to':_0x328592[_0x32af81('0x1402')]['to'][_0x32af81('0x19c4')](','),'cc':_0x328592['message']['cc'][_0x32af81('0x19c4')](','),'bcc':_0x328592['message'][_0x32af81('0x2432')]['join'](','),'subject':_0x328592[_0x32af81('0x1402')][_0x32af81('0x2101')],'body':_0x328592[_0x32af81('0x1402')][_0x32af81('0xac4')]?_0x328592['message'][_0x32af81('0x54c')]:_0x328592['message']['body']+_0x156ca7(_0x328592['message'][_0x32af81('0x6c8')]),'inReplyTo':_0x328592['message'][_0x32af81('0xdf9')],'attach':_0x328592[_0x32af81('0x1402')][_0x32af81('0x1c8c')][_0x32af81('0x2587')],'attachments':_0x328592[_0x32af81('0x1402')]['attachments'],'Interaction':{'lastMsgDirection':'out','lastMsgBody':_0x328592['message'][_0x32af81('0x54c')],'substatus':_0x32120b},'isDraft':_0x328592[_0x32af81('0xba9')]};_0x236d1a[_0x32af81('0x1869')]=_0x32af81('0x1b28')+_0x51538b()[_0x32af81('0x170d')](_0x236d1a[_0x32af81('0x54c')],_0x32af81('0x10ca'),_0x32af81('0x187'))+_0x32af81('0x1375'),_0x370666&&(_0x236d1a[_0x32af81('0x11')][_0x32af81('0x1cbd')]=!![]),_0x11d83a[_0x32af81('0x1120')](_0x236d1a);}function _0x5eee6b(_0x134351,_0x56394d,_0x1f83c9){var _0x1dc410=_0x3a3ce1;if(_0x328592[_0x1dc410('0x1402')]['to']&&_0x328592[_0x1dc410('0x1402')][_0x1dc410('0x54c')]){if(_0x328592['message']['to'][_0x1dc410('0x2587')]){if(_0x51538b()[_0x1dc410('0x116b')](_0x328592[_0x1dc410('0x1402')][_0x1dc410('0x2101')])){var _0x5d7a47=_0x11d83a[_0x1dc410('0x281e')]({'skipHide':!![]})[_0x1dc410('0x110a')]('Warning')[_0x1dc410('0x447')]('This\x20message\x20has\x20no\x20subject.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20send\x20it?')[_0x1dc410('0x5b5')](_0x1dc410('0x24ce'))[_0x1dc410('0x116d')](_0x134351)['ok'](_0x1dc410('0x1ae8'))[_0x1dc410('0x2030')]('Cancel');_0x11d83a['show'](_0x5d7a47)[_0x1dc410('0xaa5')](function(){_0xd3637c(_0x56394d,_0x1f83c9);});}else _0xd3637c(_0x56394d,_0x1f83c9);}else _0x3b026d[_0x1dc410('0x187f')]('To\x20is\x20mandatory');}}function _0x1ff8de(){var _0x51983f=_0x3a3ce1;_0x328592[_0x51983f('0x1402')][_0x51983f('0x54c')]&&_0x11d83a[_0x51983f('0x1120')]({'secret':!![],'body':_0x328592['message']['body'],'attach':_0x328592[_0x51983f('0x1402')][_0x51983f('0x1c8c')]['length'],'attachments':_0x328592['message'][_0x51983f('0x1c8c')]});}function _0x3bb359(_0x1333a3){var _0xfc78cd=_0x3a3ce1;if(_0x1333a3&&_0x1333a3[_0xfc78cd('0x12f4')]&&_0x328592[_0xfc78cd('0x4f0')])try{var _0x370a7a=_0x51538b()[_0xfc78cd('0x11f6')](_0x1333a3['value']),_0x18a505={'user':_0x328592[_0xfc78cd('0x7fc')],'account':_0x42db58,'interaction':_0xd644c6,'contact':_0xd644c6&&_0xd644c6[_0xfc78cd('0x1dc')]?_0xd644c6[_0xfc78cd('0x1dc')]:{}};_0x328592[_0xfc78cd('0x4f0')][_0xfc78cd('0x1be3')](_0x370a7a(_0x18a505));}catch(_0x55b24e){console[_0xfc78cd('0x187f')](_0x55b24e),_0x328592['ckEditorInstance']['insertHtml'](_0x1333a3[_0xfc78cd('0x12f4')]);}document[_0xfc78cd('0x781')](_0xfc78cd('0x618'))['focus'](),_0x328592[_0xfc78cd('0xffb')]=null;}function _0x35f941(_0x43a935){var _0x3a9f96=_0x3a3ce1,_0x3bbf02=_0x3e82c6[_0x3a9f96('0x213b')](),_0x2d8a60=[];return _0x11f776[_0x3a9f96('0x1a53')]['get']({'filter':_0x43a935,'MailAccountId':_0x42db58['id']})[_0x3a9f96('0x1dc2')]['then'](function(_0x3942c3){var _0x6a4816=_0x3a9f96;return _0x2d8a60=_0x51538b()[_0x6a4816('0x9e4')](_0x2d8a60,_0x3942c3[_0x6a4816('0x580')]),_0x11f776[_0x6a4816('0x1a53')][_0x6a4816('0x2122')]({'filter':_0x43a935})['$promise'];})['then'](function(_0x2ea06a){_0x2d8a60=_0x51538b()['concat'](_0x2d8a60,_0x51538b()['filter'](_0x2ea06a['rows'],function(_0x1b0945){var _0x538b98=a0_0x1149;return!_0x1b0945[_0x538b98('0x2307')]&&!_0x1b0945[_0x538b98('0x16a8')]&&!_0x1b0945['SmsAccountId']&&!_0x1b0945[_0x538b98('0x1ab5')]&&!_0x1b0945[_0x538b98('0x62c')]&&!_0x1b0945[_0x538b98('0x1421')];})),_0x3bbf02['resolve'](_0x2d8a60);})['catch'](function(_0x5dc81a){var _0x453a12=_0x3a9f96;_0x3bbf02[_0x453a12('0xaee')](_0x5dc81a);}),_0x3bbf02[_0x3a9f96('0x159a')];}function _0x37eda3(){var _0x2576c3=_0x3a3ce1;try{_0x328592[_0x2576c3('0x4f0')]=window[_0x2576c3('0x94d')][_0x2576c3('0x14a2')][_0x2576c3('0x618')];}catch(_0xc73233){console[_0x2576c3('0x187f')]('Unable\x20to\x20get\x20Html\x20Editor\x20instance',_0xc73233);}}function _0x3cba15(){var _0x5f0594=_0x3a3ce1;return _0x11f776[_0x5f0594('0xb86')][_0x5f0594('0x2361')]({'id':_0x42db58['id']})[_0x5f0594('0x1dc2')][_0x5f0594('0x253d')](function(_0x569cb9){var _0x3d2c12=_0x5f0594;_0x328592[_0x3d2c12('0x2361')]=![],_0x328592['errors'][_0x3d2c12('0x1599')]({'message':_0x569cb9[_0x3d2c12('0x10fd')],'type':_0x569cb9[_0x3d2c12('0x2fa')]}),_0x328592['errors'][_0x3d2c12('0x1599')]({'message':_0x3d2c12('0x594'),'type':'500'});});}function _0x729a25(_0x307c4a){var _0x3f1f47=_0x3a3ce1;if(_0x307c4a[_0x3f1f47('0x9f9')]>_0x54eeec)return _0x3b026d['error']({'title':_0x3f1f47('0xfad'),'msg':_0x3f1f47('0x15dd')+_0x3b5500+'MB'}),![];return!![];}function _0xd84a01(){var _0x2790fe=_0x3a3ce1;_0x328592[_0x2790fe('0x27cd')][_0x2790fe('0xcba')]['opts'][_0x2790fe('0xc71')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x2790fe('0x2070')+_0x104264[_0x2790fe('0x2122')]('motion.token')},_0x328592['ngFlow'][_0x2790fe('0xcba')][_0x2790fe('0x158b')]();}function _0x581727(_0x31521f,_0x2811f3){var _0x3cbf05=_0x3a3ce1;try{_0x2811f3=JSON[_0x3cbf05('0x9b6')](_0x2811f3),_0x2811f3[_0x3cbf05('0x9f9')]=_0x31521f['size'],_0x328592[_0x3cbf05('0x1402')][_0x3cbf05('0x1c8c')][_0x3cbf05('0x1599')](_0x2811f3);}catch(_0x2dfd21){console[_0x3cbf05('0x187f')](_0x2dfd21);}}function _0x38eea1(_0x1428b2){var _0x4fb020=_0x3a3ce1;_0x328592[_0x4fb020('0x1402')]['attachments']=_0x51538b()[_0x4fb020('0xaee')](_0x328592[_0x4fb020('0x1402')]['attachments'],{'id':_0x1428b2['id']}),!_0x1428b2[_0x4fb020('0x1cfd')]&&_0x11f776[_0x4fb020('0xa46')][_0x4fb020('0x926')]({'id':_0x1428b2['id']})[_0x4fb020('0x1dc2')][_0x4fb020('0x253d')](function(_0x1b3013){var _0x36a98b=_0x4fb020;_0x3b026d[_0x36a98b('0x187f')]({'title':_0x1b3013[_0x36a98b('0x2fa')]?'API:'+_0x1b3013[_0x36a98b('0x2fa')]+_0x36a98b('0x169e')+_0x1b3013['statusText']:_0x36a98b('0x1984'),'msg':_0x1b3013[_0x36a98b('0x10fd')]?JSON[_0x36a98b('0xa48')](_0x1b3013[_0x36a98b('0x10fd')][_0x36a98b('0x1402')]):_0x1b3013[_0x36a98b('0x684')]()});});}function _0x56136a(_0x1443f4){var _0x386aca=_0x3a3ce1,_0x5495cc='';return _0x1443f4['firstName']&&_0x1443f4[_0x386aca('0x24c1')]!==_0x1443f4[_0x386aca('0x1f69')]&&(_0x5495cc+=_0x1443f4[_0x386aca('0x24c1')]+'\x20'),_0x1443f4[_0x386aca('0x351')]&&_0x1443f4[_0x386aca('0x351')]!==_0x1443f4[_0x386aca('0x1f69')]&&(_0x5495cc+=_0x1443f4[_0x386aca('0x351')]+'\x20'),_0x5495cc+='<'+_0x1443f4[_0x386aca('0x1f69')]+'>';}function _0x4f5834(_0x2d49ba,_0x59a03e){var _0x10fd23=_0x3a3ce1;if(_0x51538b()[_0x10fd23('0x1189')](_0x2d49ba))return _0x328592['contact']=_0x2d49ba,_0x2d49ba[_0x10fd23('0x1f69')];if(_0x51538b()['isString'](_0x2d49ba)){if(_0x5b938e(_0x2d49ba))return _0x328592[_0x10fd23('0x3c6')]={'email':_0x2d49ba},_0x2d49ba;else{var _0x121f6b=_0x2d49ba['split'](',');for(var _0x54b5b4=0x0;_0x54b5b4<_0x121f6b['length'];_0x54b5b4+=0x1){_0x5b938e(_0x121f6b[_0x54b5b4])?_0x51538b()['isArray'](_0x59a03e)&&_0x51538b()['indexOf'](_0x59a03e,_0x121f6b[_0x54b5b4])<0x0&&_0x59a03e[_0x10fd23('0x1599')](_0x121f6b[_0x54b5b4]):_0x3b026d['error'](_0x10fd23('0x457')+_0x121f6b[_0x54b5b4]+'\x20is\x20not\x20valid');}return _0x328592[_0x10fd23('0x3c6')]={'email':_0x2d49ba['split'](',')[0x0]},null;}}return _0x3b026d[_0x10fd23('0x187f')]('Email\x20field\x20is\x20not\x20valid'),null;}function _0x2c0fd6(_0x410afc){var _0xd0bd3c=_0x3a3ce1;return _0x42db58&&_0x42db58[_0xd0bd3c('0xee0')]?_0x11f776[_0xd0bd3c('0xdbd')][_0xd0bd3c('0x2122')]({'ListId':_0x42db58['ListId'],'nolimit':!![],'filter':_0x410afc,'fields':_0xd0bd3c('0x195c')})[_0xd0bd3c('0x1dc2')][_0xd0bd3c('0xaa5')](function(_0x14aac6){var _0x4f14d5=_0xd0bd3c;return _0x14aac6[_0x4f14d5('0x580')];}):[];}function _0x2ddbb4(){var _0x5e3e5b=_0x3a3ce1;_0x328592[_0x5e3e5b('0x1402')][_0x5e3e5b('0x22a4')]=!![],_0x328592['draft']=_0x3a7f87[_0x5e3e5b('0x3d3')](_0xd644c6['id']);var _0x23c610={'account':_0x42db58,'message':_0x328592[_0x5e3e5b('0x1402')],'contact':_0x328592[_0x5e3e5b('0x3c6')],'interaction':_0xd644c6};if(_0x328592[_0x5e3e5b('0x1679')]&&!_0x328592[_0x5e3e5b('0xba9')]){var _0x2656f0=_0x11d83a[_0x5e3e5b('0x281e')]({'skipHide':!![]})[_0x5e3e5b('0x110a')](_0x5d13f2['instant'](_0x5e3e5b('0xf41')))[_0x5e3e5b('0x15af')](_0x5d13f2[_0x5e3e5b('0x213f')](_0x5e3e5b('0x1e64')))[_0x5e3e5b('0x5b5')](_0x5e3e5b('0x1266'))['ok'](_0x5d13f2[_0x5e3e5b('0x213f')](_0x5e3e5b('0xd20')))[_0x5e3e5b('0x2030')](_0x5d13f2['instant'](_0x5e3e5b('0x1cf5')));_0x11d83a[_0x5e3e5b('0x1e6d')](_0x2656f0)[_0x5e3e5b('0xaa5')](function(){_0x11d83a['hide'](_0x23c610);});}else _0x11d83a[_0x5e3e5b('0x1120')](_0x23c610);}function _0x47ea48(){var _0x10caad=_0x3a3ce1;_0x11d83a[_0x10caad('0x2030')]();}function _0x5b938e(_0x8c99d2){var _0x3844a8=_0x3a3ce1,_0x599f11=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return _0x599f11[_0x3844a8('0x42d')](_0x8c99d2);}function _0x514b6c(_0xd3711){var _0x5635f5=_0x3a3ce1,_0x3e0771=/]*>([^]*)<\/body/m,_0x1a4ccd=_0xd3711[_0x5635f5('0xfce')](_0x3e0771);if(_0x1a4ccd)return _0x1a4ccd[0x1];return _0xd3711;}function _0x4019d5(){var _0x44679d=_0x3a3ce1;if(_0x51538b()[_0x44679d('0x89a')](_0x42db58[_0x44679d('0x11f6')]))return'';try{var _0xcd9f77=_0x51538b()['template'](_0x42db58[_0x44679d('0x11f6')]),_0x59f03e={'user':_0x328592[_0x44679d('0x7fc')],'account':_0x42db58,'interaction':_0xd644c6,'contact':_0xd644c6&&_0xd644c6[_0x44679d('0x1dc')]?_0xd644c6['Contact']:{}};return _0xcd9f77(_0x59f03e);}catch(_0x31a435){return console[_0x44679d('0x187f')](_0x31a435),'';}}function _0x13c4bd(){var _0x193e18=_0x3a3ce1;return'';switch(_0x4c5e58){case _0x3c4f7c('0x59'):case'replyAll':_0x362939+=_0x328592['replyTemplate']({'date':_0x420d43()(_0x527031['createdAt'])[_0x3c4f7c('0x1f27')](_0x3c4f7c('0x115'))||'','time':_0x420d43()(_0x527031[_0x3c4f7c('0x24a1')])['format'](_0x3c4f7c('0x16'))||'','from':_0x51538b()[_0x3c4f7c('0x14f5')](_0x527031[_0x3c4f7c('0x1911')])||''});break;case _0x3c4f7c('0x20e7'):_0x362939+=_0x328592[_0x3c4f7c('0x1e08')]({'date':_0x420d43()(_0x527031[_0x3c4f7c('0x24a1')])[_0x3c4f7c('0x1f27')](_0x3c4f7c('0x115'))||'','time':_0x420d43()(_0x527031['createdAt'])[_0x3c4f7c('0x1f27')](_0x3c4f7c('0x16'))||'','from':_0x51538b()[_0x3c4f7c('0x14f5')](_0x527031['from'])||'','to':_0x51538b()[_0x3c4f7c('0x14f5')](_0x527031['to'])||'','subject':_0x51538b()[_0x3c4f7c('0x14f5')](_0x527031[_0x3c4f7c('0x2101')])||''});break;}var _0x2dc9b5=_0x328592['message'][_0x3c4f7c('0xac4')]&&_0x527031[_0x3c4f7c('0x1b09')]?_0x527031[_0x3c4f7c('0x1b09')][_0x3c4f7c('0x54c')]:_0x527031['body'];return _0x362939+=_0x3c4f7c('0x6ad'),_0x362939+=_0x514b6c(_0x2dc9b5?_0x51538b()[_0x3c4f7c('0x170d')](_0x2dc9b5,_0x3c4f7c('0x10ca'),_0x3c4f7c('0x187')):''),_0x362939+=_0x3c4f7c('0x17d8'),_0x4c5e58?_0x362939:'';}function _0x89d42f(){var _0x3df9f0=_0x3a3ce1;_0x328592[_0x3df9f0('0x1402')][_0x3df9f0('0x54c')]+=_0x156ca7(_0x328592['message'][_0x3df9f0('0x6c8')]);}}const _0x50d689=_0xb8dcb5;_0x2028bc['$inject']=[_0x1a8446('0x95f'),_0x1a8446('0x186b'),_0x1a8446('0x27bf'),'$mdDialog',_0x1a8446('0x241f'),_0x1a8446('0x5b'),_0x1a8446('0x1402'),_0x1a8446('0x6c8'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'$q',_0x1a8446('0xcb3'),'Auth'];function _0x2028bc(_0x4c7cee,_0x4e9998,_0x19ea8e,_0x5b4f09,_0x53c4c2,_0x1b6fc1,_0x1b8977,_0x6a7742,_0x5c7356,_0x598534,_0x2e61c5,_0x3785d2,_0x454372){var _0x1b7742=_0x1a8446,_0x9972b5=this;_0x9972b5[_0x1b7742('0x7fc')]=_0x454372['getCurrentUser'](),_0x9972b5[_0x1b7742('0x4c6')]=[],_0x9972b5[_0x1b7742('0x2273')]=[_0x53c4c2[_0x1b7742('0x172e')][_0x1b7742('0x1985')],_0x53c4c2[_0x1b7742('0x172e')][_0x1b7742('0x542')],_0x53c4c2[_0x1b7742('0x172e')][_0x1b7742('0x2302')]],_0x9972b5['searchTextChange']=_0x2d6f96,_0x9972b5[_0x1b7742('0xd23')]=_0x565493,_0x9972b5[_0x1b7742('0x1a4d')]=_0x56ccf5,_0x9972b5['addNote']=_0xec0ea1,_0x9972b5['ctrlMethods']={},_0x9972b5[_0x1b7742('0x1402')]={'from':_0x1b6fc1[_0x1b7742('0x1a46')],'to':_0x51538b()[_0x1b7742('0x89a')](_0x1b8977['to'])||_0x51538b()[_0x1b7742('0x116b')](_0x1b8977['to'])?[]:_0x1b8977['to'],'body':''},_0x9972b5[_0x1b7742('0x1e80')]=_0x3a21af,_0x9972b5['getContact']=_0x2a1a98,_0x9972b5['closeDialog']=_0x9be62e,_0x9972b5[_0x1b7742('0x18d0')]=_0x579d1e,_0x9972b5[_0x1b7742('0x1dbf')]=_0x4e4688;switch(_0x6a7742){case _0x1b7742('0x1a4d'):_0x9972b5[_0x1b7742('0x1a4d')]();break;}function _0x47f889(_0x493894){var _0x3d2d25=_0x1b7742;_0x5b4f09[_0x3d2d25('0x1120')]({'to':_0x9972b5[_0x3d2d25('0x1402')]['to'][_0x3d2d25('0x19c4')](','),'body':_0x493894});}function _0x3a21af(){var _0x3e8d95=_0x1b7742;_0x9972b5[_0x3e8d95('0x1402')]['to']&&_0x9972b5['message'][_0x3e8d95('0x54c')]&&(_0x9972b5[_0x3e8d95('0x1402')]['to'][_0x3e8d95('0x2587')]?_0x47f889(_0x9972b5[_0x3e8d95('0x1402')]['body']):_0x598534[_0x3e8d95('0x187f')](_0x3e8d95('0x1eeb')));}function _0x565493(_0x5092bb){var _0x3c8b22=_0x1b7742;if(_0x5092bb){try{_0x51538b()['templateSettings']['interpolate']=/{{([\s\S]+?)}}/g;var _0x37ec66=_0x51538b()['template'](_0x5092bb[_0x3c8b22('0x12f4')]),_0x111e54={'user':_0x9972b5['currentUser'],'account':_0x1b6fc1};_0x9972b5[_0x3c8b22('0x1402')][_0x3c8b22('0x54c')]+='\x20'+_0x37ec66(_0x111e54),_0x9972b5[_0x3c8b22('0x182f')][_0x3c8b22('0x1a78')](_0x9972b5['message'][_0x3c8b22('0x54c')]);}catch(_0x4bc367){_0x9972b5['message'][_0x3c8b22('0x54c')]+='\x20'+_0x5092bb['value'],_0x9972b5[_0x3c8b22('0x182f')]['setText'](_0x9972b5[_0x3c8b22('0x1402')][_0x3c8b22('0x54c')]);}_0x9972b5['selectedItem']=null;}}function _0x2d6f96(_0x4577fa){var _0x37858c=_0x1b7742,_0x4ec6e8=_0x2e61c5['defer'](),_0x3b96de=[];return _0x5c7356[_0x37858c('0x1a53')]['get']({'filter':_0x4577fa,'OpenchannelAccountId':_0x1b6fc1['id']})['$promise'][_0x37858c('0xaa5')](function(_0x1a08a7){var _0x6f6b91=_0x37858c;return _0x3b96de=_0x51538b()[_0x6f6b91('0x9e4')](_0x3b96de,_0x1a08a7[_0x6f6b91('0x580')]),_0x5c7356[_0x6f6b91('0x1a53')][_0x6f6b91('0x2122')]({'filter':_0x4577fa})[_0x6f6b91('0x1dc2')];})[_0x37858c('0xaa5')](function(_0x430b85){var _0xa0d8e8=_0x37858c;_0x3b96de=_0x51538b()['concat'](_0x3b96de,_0x51538b()['filter'](_0x430b85[_0xa0d8e8('0x580')],function(_0x5a21a6){var _0x11c4e6=_0xa0d8e8;return!_0x5a21a6[_0x11c4e6('0x2307')]&&!_0x5a21a6[_0x11c4e6('0x16a8')]&&!_0x5a21a6[_0x11c4e6('0xaa0')]&&!_0x5a21a6[_0x11c4e6('0x1ab5')]&&!_0x5a21a6[_0x11c4e6('0x62c')]&&!_0x5a21a6[_0x11c4e6('0x1421')];})),_0x4ec6e8[_0xa0d8e8('0x149f')](_0x3b96de);})[_0x37858c('0x253d')](function(_0x475c9d){var _0x5a180e=_0x37858c;_0x4ec6e8[_0x5a180e('0xaee')](_0x475c9d);}),_0x4ec6e8[_0x37858c('0x159a')];}function _0x2a1a98(_0x3d69ee){var _0x2e6bc6=_0x1b7742,_0xdcd2bc='';return _0x3d69ee['firstName']&&_0x3d69ee[_0x2e6bc6('0x24c1')]!==_0x3d69ee[_0x1b6fc1[_0x2e6bc6('0x25eb')]]&&(_0xdcd2bc+=_0x3d69ee[_0x2e6bc6('0x24c1')]+'\x20'),_0x3d69ee[_0x2e6bc6('0x351')]&&_0x3d69ee[_0x2e6bc6('0x351')]!==_0x3d69ee[_0x1b6fc1['mapKey']]&&(_0xdcd2bc+=_0x3d69ee[_0x2e6bc6('0x351')]+'\x20'),_0xdcd2bc+='<'+_0x3d69ee[_0x1b6fc1[_0x2e6bc6('0x25eb')]]+'>';}function _0x4e4688(_0x23ed16){var _0x560cfc=_0x1b7742,_0x51a8be=_0x23ed16;if(_0x51538b()[_0x560cfc('0x1189')](_0x51a8be))return _0x23ed16[_0x1b6fc1['mapKey']];return _0x51a8be;}function _0x579d1e(_0x1f6367){var _0x2b4006=_0x1b7742;if(_0x1b6fc1&&_0x1b6fc1[_0x2b4006('0xee0')]){var _0xb4101a=_0x2b4006('0xadf');return _0x1b6fc1[_0x2b4006('0x25eb')]&&(_0xb4101a+=','+_0x1b6fc1[_0x2b4006('0x25eb')]),_0x5c7356[_0x2b4006('0xdbd')][_0x2b4006('0x2122')]({'ListId':_0x1b6fc1['ListId'],'nolimit':!![],'filter':_0x1f6367,'fields':_0xb4101a})[_0x2b4006('0x1dc2')][_0x2b4006('0xaa5')](function(_0x5e9b26){var _0x5b942e=_0x2b4006;return _0x5e9b26[_0x5b942e('0x580')];});}return[];}function _0x9be62e(){var _0x17c151=_0x1b7742;_0x5b4f09[_0x17c151('0x2030')]();}function _0x56ccf5(){var _0x39a641=_0x1b7742;_0x9972b5[_0x39a641('0x203a')]=!![];}function _0xec0ea1(){var _0x8b95d6=_0x1b7742;_0x9972b5[_0x8b95d6('0x1402')][_0x8b95d6('0x54c')]&&_0x5b4f09[_0x8b95d6('0x1120')]({'secret':!![],'body':_0x9972b5['message'][_0x8b95d6('0x54c')]});}}const _0x383c2f=_0x2028bc;_0x2dd8f3[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x186b'),_0x1a8446('0x27bf'),_0x1a8446('0x2378'),_0x1a8446('0x241f'),'account',_0x1a8446('0x1402'),'type',_0x1a8446('0x157'),_0x1a8446('0x2a4'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x1dfd')];function _0x2dd8f3(_0xfaa3bd,_0x42cb00,_0x1b6b71,_0x3239e7,_0x142d14,_0x448663,_0x4c1c98,_0x179cc7,_0x3f61db,_0x5af95e,_0x10ab0b,_0x17da44,_0x36151e){var _0x2890e0=_0x1a8446,_0x3cce1d=this;_0x3cce1d[_0x2890e0('0x7fc')]=_0x36151e[_0x2890e0('0xacc')](),_0x3cce1d[_0x2890e0('0x4c6')]=[],_0x3cce1d[_0x2890e0('0x2273')]=[_0x142d14[_0x2890e0('0x172e')][_0x2890e0('0x1985')],_0x142d14['KEY_CODE'][_0x2890e0('0x542')],_0x142d14['KEY_CODE'][_0x2890e0('0x2302')]],_0x3cce1d[_0x2890e0('0x1f32')]=_0x43d817,_0x3cce1d[_0x2890e0('0xd23')]=_0x3916c0,_0x3cce1d[_0x2890e0('0x1a4d')]=_0x2cb5bf,_0x3cce1d['addNote']=_0xf8b7e1,_0x3cce1d[_0x2890e0('0x182f')]={},_0x3cce1d[_0x2890e0('0x1402')]={'from':_0x448663[_0x2890e0('0x1a46')],'to':_0x51538b()[_0x2890e0('0x89a')](_0x4c1c98['to'])||_0x51538b()['isEmpty'](_0x4c1c98['to'])?[]:_0x4c1c98['to'],'body':''},_0x3cce1d[_0x2890e0('0x1e80')]=_0x2e0e18,_0x3cce1d['getContact']=_0x4689ac,_0x3cce1d[_0x2890e0('0x2023')]=_0x17f58f,_0x3cce1d[_0x2890e0('0x18d0')]=_0x586db5,_0x3cce1d[_0x2890e0('0x1dbf')]=_0xfb210;switch(_0x179cc7){case'note':_0x3cce1d[_0x2890e0('0x1a4d')]();break;}function _0xcbb2cb(_0x12b910){var _0x4f9c69=_0x2890e0;_0x3239e7[_0x4f9c69('0x1120')]({'to':_0x3cce1d['message']['to']['join'](','),'body':_0x12b910});}function _0x2e0e18(){var _0x517705=_0x2890e0;_0x3cce1d[_0x517705('0x1402')]['to']&&_0x3cce1d[_0x517705('0x1402')][_0x517705('0x54c')]&&(_0x3cce1d['message']['to'][_0x517705('0x2587')]?_0xcbb2cb(_0x3cce1d['message'][_0x517705('0x54c')]):_0x5af95e[_0x517705('0x187f')](_0x517705('0x1eeb')));}function _0x3916c0(_0x4968ae){var _0x3e546f=_0x2890e0;if(_0x4968ae){try{_0x51538b()[_0x3e546f('0x1bf3')][_0x3e546f('0x2100')]=/{{([\s\S]+?)}}/g;var _0x28f80e=_0x51538b()['template'](_0x4968ae[_0x3e546f('0x12f4')]),_0x89ab1e={'user':_0x3cce1d[_0x3e546f('0x7fc')],'account':_0x448663};_0x3cce1d[_0x3e546f('0x1402')][_0x3e546f('0x54c')]+='\x20'+_0x28f80e(_0x89ab1e),_0x3cce1d[_0x3e546f('0x182f')]['setText'](_0x3cce1d[_0x3e546f('0x1402')][_0x3e546f('0x54c')]);}catch(_0x56bc02){_0x3cce1d[_0x3e546f('0x1402')][_0x3e546f('0x54c')]+='\x20'+_0x4968ae[_0x3e546f('0x12f4')],_0x3cce1d[_0x3e546f('0x182f')][_0x3e546f('0x1a78')](_0x3cce1d[_0x3e546f('0x1402')][_0x3e546f('0x54c')]);}_0x3cce1d[_0x3e546f('0xffb')]=null;}}function _0x43d817(_0x24c695){var _0x4b6774=_0x2890e0,_0x40356e=_0x10ab0b['defer'](),_0x27bffe=[];return _0x3f61db[_0x4b6774('0x1a53')][_0x4b6774('0x2122')]({'filter':_0x24c695,'SmsAccountId':_0x448663['id']})['$promise'][_0x4b6774('0xaa5')](function(_0x54c2c1){var _0x32224c=_0x4b6774;return _0x27bffe=_0x51538b()[_0x32224c('0x9e4')](_0x27bffe,_0x54c2c1['rows']),_0x3f61db[_0x32224c('0x1a53')][_0x32224c('0x2122')]({'filter':_0x24c695})[_0x32224c('0x1dc2')];})[_0x4b6774('0xaa5')](function(_0x21989b){var _0x270317=_0x4b6774;_0x27bffe=_0x51538b()['concat'](_0x27bffe,_0x51538b()[_0x270317('0xdb7')](_0x21989b[_0x270317('0x580')],function(_0x55ddac){var _0x198ea1=_0x270317;return!_0x55ddac[_0x198ea1('0x2307')]&&!_0x55ddac['FaxAccountId']&&!_0x55ddac[_0x198ea1('0xaa0')]&&!_0x55ddac[_0x198ea1('0x62c')]&&!_0x55ddac[_0x198ea1('0x1421')];})),_0x40356e['resolve'](_0x27bffe);})[_0x4b6774('0x253d')](function(_0xf326e3){_0x40356e['reject'](_0xf326e3);}),_0x40356e[_0x4b6774('0x159a')];}function _0x4689ac(_0x230935){var _0x550c5a=_0x2890e0,_0xda07f4='';return _0x230935['firstName']&&_0x230935['firstName']!==_0x230935[_0x550c5a('0x1125')]&&(_0xda07f4+=_0x230935[_0x550c5a('0x24c1')]+'\x20'),_0x230935[_0x550c5a('0x351')]&&_0x230935[_0x550c5a('0x351')]!==_0x230935[_0x550c5a('0x1125')]&&(_0xda07f4+=_0x230935[_0x550c5a('0x351')]+'\x20'),_0xda07f4+='<'+_0x230935[_0x550c5a('0x1125')]+'>';}function _0xfb210(_0x59a142){var _0x136d60=_0x2890e0,_0x25e7ac=_0x59a142;if(_0x51538b()[_0x136d60('0x1189')](_0x25e7ac))return _0x59a142[_0x136d60('0x1125')];if(_0x2b3987(_0x25e7ac))return _0x25e7ac;return _0x5af95e['error']('Mobile\x20'+_0x25e7ac+_0x136d60('0x1cef')),null;}function _0x586db5(_0x382171){var _0x8f249=_0x2890e0;if(_0x448663&&_0x448663[_0x8f249('0xee0')])return _0x3f61db[_0x8f249('0xdbd')][_0x8f249('0x2122')]({'ListId':_0x448663[_0x8f249('0xee0')],'nolimit':!![],'filter':_0x382171,'fields':_0x8f249('0x53d')})[_0x8f249('0x1dc2')]['then'](function(_0x3644e2){var _0x58d232=_0x8f249;return _0x3644e2[_0x58d232('0x580')];});return[];}function _0x17f58f(){var _0x3a8dce=_0x2890e0;_0x3239e7[_0x3a8dce('0x2030')]();}function _0x2b3987(_0x47da55){var _0x1f6503=/^(\+|\d)[0-9]{7,16}$/;return _0x1f6503['test'](_0x47da55);}function _0x2cb5bf(){var _0x4d39c6=_0x2890e0;_0x3cce1d[_0x4d39c6('0x203a')]=!![];}function _0xf8b7e1(){var _0x1fce58=_0x2890e0;_0x3cce1d[_0x1fce58('0x1402')]['body']&&_0x3239e7['hide']({'secret':!![],'body':_0x3cce1d[_0x1fce58('0x1402')][_0x1fce58('0x54c')]});}}const _0x54abe8=_0x2dd8f3;_0x2a4ad6['$inject']=['$cookies',_0x1a8446('0x186b'),_0x1a8446('0x27bf'),_0x1a8446('0x2378'),'$mdConstant',_0x1a8446('0x5b'),_0x1a8446('0x1402'),_0x1a8446('0x6c8'),'api','toasty','$q',_0x1a8446('0xcb3'),'Auth'];function _0x2a4ad6(_0x437b24,_0x43a633,_0x11ae90,_0x6bdf22,_0x1601b5,_0x1636bf,_0x54bb4e,_0x582b64,_0x2e4489,_0x414606,_0x4b0c47,_0x2b2411,_0x39d2f8){var _0xcb3349=_0x1a8446,_0x45bb4f=this;_0x45bb4f[_0xcb3349('0x7fc')]=_0x39d2f8[_0xcb3349('0xacc')](),_0x45bb4f[_0xcb3349('0x4c6')]=[],_0x45bb4f['separatorKeys']=[_0x1601b5[_0xcb3349('0x172e')]['ENTER'],_0x1601b5[_0xcb3349('0x172e')]['COMMA'],_0x1601b5[_0xcb3349('0x172e')][_0xcb3349('0x2302')]],_0x45bb4f[_0xcb3349('0x1f32')]=_0x1f8e54,_0x45bb4f[_0xcb3349('0xd23')]=_0x25d67e,_0x45bb4f[_0xcb3349('0x1a4d')]=_0x53a8bb,_0x45bb4f[_0xcb3349('0x48e')]=_0x572b2b,_0x45bb4f[_0xcb3349('0x182f')]={},_0x45bb4f[_0xcb3349('0x1402')]={'from':_0x1636bf[_0xcb3349('0x1a46')],'to':_0x51538b()[_0xcb3349('0x89a')](_0x54bb4e['to'])||_0x51538b()['isEmpty'](_0x54bb4e['to'])?[]:_0x54bb4e['to'],'body':''},_0x45bb4f['send']=_0x6d3d60,_0x45bb4f[_0xcb3349('0x1d40')]=_0x56a102,_0x45bb4f['closeDialog']=_0xd93869,_0x45bb4f[_0xcb3349('0x18d0')]=_0x240765,_0x45bb4f[_0xcb3349('0x1dbf')]=_0x36c69f;switch(_0x582b64){case'note':_0x45bb4f[_0xcb3349('0x1a4d')]();break;}function _0x12207a(_0xddf239){var _0x257e54=_0xcb3349;_0x6bdf22[_0x257e54('0x1120')]({'to':_0x45bb4f[_0x257e54('0x1402')]['to'][_0x257e54('0x19c4')](','),'body':_0xddf239});}function _0x6d3d60(){var _0xa03f08=_0xcb3349;_0x45bb4f[_0xa03f08('0x1402')]['to']&&_0x45bb4f[_0xa03f08('0x1402')][_0xa03f08('0x54c')]&&(_0x45bb4f[_0xa03f08('0x1402')]['to'][_0xa03f08('0x2587')]?_0x12207a(_0x45bb4f['message'][_0xa03f08('0x54c')]):_0x414606['error'](_0xa03f08('0x1eeb')));}function _0x25d67e(_0x1fbafd){var _0x2b5b14=_0xcb3349;if(_0x1fbafd){try{_0x51538b()[_0x2b5b14('0x1bf3')][_0x2b5b14('0x2100')]=/{{([\s\S]+?)}}/g;var _0x1a6f45=_0x51538b()['template'](_0x1fbafd[_0x2b5b14('0x12f4')]),_0x53a4aa={'user':_0x45bb4f[_0x2b5b14('0x7fc')],'account':_0x1636bf};_0x45bb4f[_0x2b5b14('0x1402')][_0x2b5b14('0x54c')]+='\x20'+_0x1a6f45(_0x53a4aa),_0x45bb4f[_0x2b5b14('0x182f')][_0x2b5b14('0x1a78')](_0x45bb4f[_0x2b5b14('0x1402')][_0x2b5b14('0x54c')]);}catch(_0x5e425e){_0x45bb4f['message'][_0x2b5b14('0x54c')]+='\x20'+_0x1fbafd[_0x2b5b14('0x12f4')],_0x45bb4f['ctrlMethods'][_0x2b5b14('0x1a78')](_0x45bb4f['message'][_0x2b5b14('0x54c')]);}_0x45bb4f['selectedItem']=null;}}function _0x1f8e54(_0x259996){var _0x530b4b=_0xcb3349,_0x58f943=_0x4b0c47[_0x530b4b('0x213b')](),_0x122226=[];return _0x2e4489[_0x530b4b('0x1a53')][_0x530b4b('0x2122')]({'filter':_0x259996,'WhatsappAccountId':_0x1636bf['id']})['$promise']['then'](function(_0x173266){var _0x3280fe=_0x530b4b;return _0x122226=_0x51538b()[_0x3280fe('0x9e4')](_0x122226,_0x173266[_0x3280fe('0x580')]),_0x2e4489[_0x3280fe('0x1a53')][_0x3280fe('0x2122')]({'filter':_0x259996})[_0x3280fe('0x1dc2')];})[_0x530b4b('0xaa5')](function(_0x3dbedc){var _0x39084f=_0x530b4b;_0x122226=_0x51538b()[_0x39084f('0x9e4')](_0x122226,_0x51538b()[_0x39084f('0xdb7')](_0x3dbedc[_0x39084f('0x580')],function(_0x394b13){var _0x3ae44e=_0x39084f;return!_0x394b13['MailAccountId']&&!_0x394b13[_0x3ae44e('0x16a8')]&&!_0x394b13['WhatsappAccountId']&&!_0x394b13[_0x3ae44e('0x62c')]&&!_0x394b13['ChatWebsiteId'];})),_0x58f943[_0x39084f('0x149f')](_0x122226);})['catch'](function(_0x59de06){var _0x3b8cb8=_0x530b4b;_0x58f943[_0x3b8cb8('0xaee')](_0x59de06);}),_0x58f943[_0x530b4b('0x159a')];}function _0x56a102(_0xc0c62d){var _0x4287e1=_0xcb3349,_0x4735d6='';return _0xc0c62d['firstName']&&_0xc0c62d[_0x4287e1('0x24c1')]!==_0xc0c62d['mobile']&&(_0x4735d6+=_0xc0c62d[_0x4287e1('0x24c1')]+'\x20'),_0xc0c62d[_0x4287e1('0x351')]&&_0xc0c62d[_0x4287e1('0x351')]!==_0xc0c62d[_0x4287e1('0x1125')]&&(_0x4735d6+=_0xc0c62d['lastName']+'\x20'),_0x4735d6+='<'+_0xc0c62d['mobile']+'>';}function _0x36c69f(_0x2c99a1){var _0xb7b7db=_0xcb3349,_0x5f408c=_0x2c99a1;if(_0x51538b()[_0xb7b7db('0x1189')](_0x5f408c))return _0x2c99a1['mobile'];if(_0x1fe2a5(_0x5f408c))return _0x5f408c;return _0x414606[_0xb7b7db('0x187f')](_0xb7b7db('0x1f11')+_0x5f408c+_0xb7b7db('0x1cef')),null;}function _0x240765(_0x237319){var _0x1c74bb=_0xcb3349;if(_0x1636bf&&_0x1636bf[_0x1c74bb('0xee0')])return _0x2e4489[_0x1c74bb('0xdbd')][_0x1c74bb('0x2122')]({'ListId':_0x1636bf[_0x1c74bb('0xee0')],'nolimit':!![],'filter':_0x237319,'fields':_0x1c74bb('0x53d')})[_0x1c74bb('0x1dc2')]['then'](function(_0x59da92){var _0x55506f=_0x1c74bb;return _0x59da92[_0x55506f('0x580')];});return[];}function _0xd93869(){var _0x27496a=_0xcb3349;_0x6bdf22[_0x27496a('0x2030')]();}function _0x1fe2a5(_0x4a96ba){var _0x43bd60=/^(\+|\d)[0-9]{7,16}$/;return _0x43bd60['test'](_0x4a96ba);}function _0x53a8bb(){var _0x38a13a=_0xcb3349;_0x45bb4f[_0x38a13a('0x203a')]=!![];}function _0x572b2b(){var _0x4fc626=_0xcb3349;_0x45bb4f[_0x4fc626('0x1402')][_0x4fc626('0x54c')]&&_0x6bdf22['hide']({'secret':!![],'body':_0x45bb4f[_0x4fc626('0x1402')][_0x4fc626('0x54c')]});}}const _0x2f9246=_0x2a4ad6;_0x180cd0[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'toasty',_0x1a8446('0x157'),_0x1a8446('0x1d86'),_0x1a8446('0x119e'),_0x1a8446('0x272b'),_0x1a8446('0xa66')];function _0x180cd0(_0x59396c,_0x54f163,_0x22a904,_0x400b83,_0x13f818,_0x80a8b2,_0x517939){var _0x3b842e=_0x1a8446,_0x322298=this;_0x322298[_0x3b842e('0x4c6')]=[],_0x322298[_0x3b842e('0xa9')]=[],_0x322298[_0x3b842e('0x1d86')]=angular[_0x3b842e('0x20a')](_0x400b83);!_0x322298[_0x3b842e('0x1d86')][_0x3b842e('0x106e')]&&(_0x322298['interaction'][_0x3b842e('0x106e')]=null);_0x322298['channel']=_0x13f818,_0x322298[_0x3b842e('0x1f4')]=_0x322298[_0x3b842e('0x119e')]+'Interaction',_0x322298[_0x3b842e('0x203e')]=_0x322298[_0x3b842e('0x119e')]+(_0x322298[_0x3b842e('0x119e')]===_0x3b842e('0x20f9')?'Website':_0x3b842e('0x75a')),_0x322298['accountProperty']=_0x51538b()[_0x3b842e('0x1b56')](_0x322298[_0x3b842e('0x119e')])+(_0x322298['channel']===_0x3b842e('0x20f9')?'Website':'Account')+'Id',_0x322298[_0x3b842e('0x207e')]=null,_0x322298[_0x3b842e('0x1844')]=![],_0x322298['mandatoryDispositionPause']='',_0x322298['wasUserInPause']=_0x80a8b2[_0x3b842e('0x2519')]||_0x80a8b2[_0x3b842e('0x1f36')]||_0x80a8b2[_0x3b842e('0x21f')]||_0x80a8b2[_0x3b842e('0xc8f')]||_0x80a8b2[_0x3b842e('0x135b')],_0x322298[_0x3b842e('0x1e9c')]=_0x312ee7,_0x322298[_0x3b842e('0x14f7')]=_0x3d5a52,_0x322298['saveDisposition']=_0x53fd97,_0x322298[_0x3b842e('0x2023')]=_0x757967;function _0xa9720(){var _0x2a3883=_0x3b842e,_0x2f5bed=[],_0x19d08d={'fields':'id,name,level,ParentId','sort':_0x2a3883('0x25d6'),'nolimit':!![]};_0x19d08d[_0x322298[_0x2a3883('0x1f12')]]=_0x400b83[_0x322298[_0x2a3883('0x1f12')]],_0x22a904[_0x322298[_0x2a3883('0x203e')]][_0x2a3883('0x2122')]({'id':_0x400b83[_0x322298[_0x2a3883('0x1f12')]]})[_0x2a3883('0x1dc2')][_0x2a3883('0xaa5')](function(_0x18e352){var _0x554dee=_0x2a3883;return _0x322298[_0x554dee('0x1844')]=_0x18e352[_0x554dee('0x1844')],_0x322298['mandatoryDisposition']&&(_0x322298['mandatoryDispositionPause']=_0x18e352[_0x554dee('0x11b1')]['name']),_0x22a904['disposition']['get'](_0x19d08d)[_0x554dee('0x1dc2')];})[_0x2a3883('0xaa5')](function(_0xb7a62c){var _0x5df044=_0x2a3883;return _0xb7a62c[_0x5df044('0x580')][_0x5df044('0x2587')]&&(_0x2f5bed=_0x51538b()['concat'](_0x2f5bed,_0xb7a62c[_0x5df044('0x580')])),_0x22a904['disposition']['get']({'MailAccountId':_0x5df044('0x1ed9'),'FaxAccountId':_0x5df044('0x1ed9'),'SmsAccountId':_0x5df044('0x1ed9'),'WhatsappAccountId':_0x5df044('0x1ed9'),'OpenchannelAccountId':_0x5df044('0x1ed9'),'ChatWebsiteId':_0x5df044('0x1ed9'),'ListId':_0x5df044('0x1ed9')})[_0x5df044('0x1dc2')];})[_0x2a3883('0xaa5')](function(_0x597d69){var _0x2b3259=_0x2a3883;_0x597d69['rows']['length']&&(_0x2f5bed=_0x51538b()[_0x2b3259('0x9e4')](_0x2f5bed,_0x597d69['rows']));})[_0x2a3883('0x253d')](function(_0x34b4bf){var _0x4f3351=_0x2a3883;console[_0x4f3351('0x187f')](_0x34b4bf);})[_0x2a3883('0x1889')](function(){var _0x26e582=_0x2a3883;_0x322298[_0x26e582('0xa9')]=_0x51538b()[_0x26e582('0x271d')](_0x2f5bed,[_0x26e582('0x25d6')],[_0x26e582('0x14b9')]),_0x5460bd();});}function _0x5460bd(){var _0x54d883=_0x3b842e;_0x322298[_0x54d883('0x1844')]&&!_0x322298['wasUserInPause']&&_0x22a904[_0x54d883('0x272b')]['pause']({'id':_0x80a8b2['id'],'type':_0x322298[_0x54d883('0x11b1')]||_0x54d883('0x57e')})[_0x54d883('0x1dc2')][_0x54d883('0xaa5')](function(){})[_0x54d883('0x253d')](function(_0x540690){var _0x17924a=_0x54d883;console[_0x17924a('0x187f')](_0x540690);});}function _0x312ee7(_0x336cc1){var _0x28a8dc=_0x3b842e;if(_0x336cc1===_0x28a8dc('0xe75')){_0x322298['anySecondLevelDisposition']=_0x322298[_0x28a8dc('0x207e')]?_0x51538b()[_0x28a8dc('0x2c2')](_0x322298[_0x28a8dc('0xa9')],[_0x28a8dc('0x2733'),_0x322298[_0x28a8dc('0x207e')]['id']]):![];if(!_0x322298['firstLevelDisposition'])_0x322298[_0x28a8dc('0x1219')]=undefined;}else _0x336cc1===_0x28a8dc('0xeca')&&(_0x322298[_0x28a8dc('0x180c')]=_0x51538b()[_0x28a8dc('0x2c2')](_0x322298['dispositions'],[_0x28a8dc('0x2733'),_0x322298[_0x28a8dc('0x1219')]['id']]));}function _0x3d5a52(_0x1fd708){var _0x15465e=_0x3b842e;if(_0x1fd708===_0x15465e('0xeca'))_0x322298[_0x15465e('0x1219')]=undefined,_0x322298[_0x15465e('0x225f')]=undefined;else _0x1fd708===_0x15465e('0x10db')&&(_0x322298[_0x15465e('0x225f')]=undefined);}function _0x53fd97(){var _0x33557d=_0x3b842e;_0x322298['errors']=[],_0x322298[_0x33557d('0x1d86')]['UserId']=_0x80a8b2['id'],_0x322298['interaction'][_0x33557d('0x1cbd')]=!![],_0x322298['interaction'][_0x33557d('0xd86')]=_0x33557d('0xeff'),_0x322298[_0x33557d('0x1d86')][_0x33557d('0x106e')]=_0x322298['firstLevelDisposition']?_0x322298[_0x33557d('0x207e')][_0x33557d('0x25d6')]:null,_0x322298[_0x33557d('0x1d86')][_0x33557d('0x1fdd')]=_0x322298[_0x33557d('0x1219')]?_0x322298['secondLevelDisposition'][_0x33557d('0x25d6')]:undefined,_0x322298['interaction'][_0x33557d('0x66e')]=_0x322298[_0x33557d('0x225f')]?_0x322298['thirdLevelDisposition'][_0x33557d('0x25d6')]:undefined,_0x22a904[_0x322298[_0x33557d('0x1f4')]]?_0x22a904[_0x322298['apiRoute']]['update'](_0x51538b()['pick'](_0x322298[_0x33557d('0x1d86')],[_0x33557d('0x2307'),_0x33557d('0x16a8'),_0x33557d('0xaa0'),_0x33557d('0x1ab5'),_0x33557d('0x1421'),'OpenchannelAccountId','closed',_0x33557d('0xd86'),_0x33557d('0x106e'),_0x33557d('0x1fdd'),'thirdDisposition','id',_0x33557d('0x1a4d'),_0x33557d('0x1037')]))[_0x33557d('0x1dc2')][_0x33557d('0xaa5')](function(_0x50f123){var _0x4862fc=_0x33557d;_0x322298[_0x4862fc('0x1d86')]=_0x50f123,_0x322298['channel']===_0x4862fc('0x14c5')&&_0x517939[_0x4862fc('0x16aa')](_0x322298[_0x4862fc('0x1d86')]['id']),_0x54f163[_0x4862fc('0xe10')]({'title':_0x4862fc('0x224b'),'msg':_0x4862fc('0x1a0a')});})[_0x33557d('0xaa5')](function(){_0x757967(!![]);})[_0x33557d('0x253d')](function(_0x27615f){var _0x583c6d=_0x33557d;if(_0x27615f['data']&&_0x27615f['data']['errors']&&_0x27615f[_0x583c6d('0x10fd')]['errors'][_0x583c6d('0x2587')]){_0x322298[_0x583c6d('0x4c6')]=_0x27615f['data']['errors']||[{'message':_0x27615f[_0x583c6d('0x684')](),'type':_0x583c6d('0x831')}];for(var _0xe55eae=0x0;_0xe55eae<_0x27615f['data'][_0x583c6d('0x4c6')][_0x583c6d('0x2587')];_0xe55eae++){_0x54f163[_0x583c6d('0x187f')]({'title':_0x27615f[_0x583c6d('0x10fd')][_0x583c6d('0x4c6')][_0xe55eae][_0x583c6d('0x6c8')],'msg':_0x27615f[_0x583c6d('0x10fd')][_0x583c6d('0x4c6')][_0xe55eae][_0x583c6d('0x1402')]});}}else _0x54f163[_0x583c6d('0x187f')]({'title':_0x27615f[_0x583c6d('0x2fa')]?'API:'+_0x27615f[_0x583c6d('0x2fa')]+_0x583c6d('0x169e')+_0x27615f[_0x583c6d('0x24df')]:_0x583c6d('0x831'),'msg':_0x27615f[_0x583c6d('0x10fd')]?JSON[_0x583c6d('0xa48')](_0x27615f[_0x583c6d('0x10fd')][_0x583c6d('0x1402')]):_0x27615f[_0x583c6d('0x684')]()});}):_0x757967(![]);}function _0x757967(_0x54bed5){var _0x549ed2=_0x3b842e;_0x59396c[_0x549ed2('0x1120')](_0x54bed5);}_0xa9720();}const _0x3df396=_0x180cd0;_0x5c9fdc[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1d86'),_0x1a8446('0x119e'),_0x1a8446('0x523')];function _0x5c9fdc(_0x2d48ec,_0x29379e,_0xb2c241,_0x216f6a,_0xb5ad68,_0x5bc59a){var _0x2810ba=_0x1a8446,_0x4877e4=this;_0x4877e4['errors']=[],_0x4877e4['tags']=_0x5bc59a,_0x4877e4[_0x2810ba('0x1d86')]=angular[_0x2810ba('0x20a')](_0x216f6a),_0x4877e4['interaction'][_0x2810ba('0x67f')]=_0x51538b()[_0x2810ba('0x1246')](_0x4877e4[_0x2810ba('0x1d86')][_0x2810ba('0x67f')],function(_0x48d7cd){var _0x3c9680=_0x2810ba;return{'id':_0x48d7cd['id'],'name':_0x48d7cd[_0x3c9680('0x25d6')],'color':_0x48d7cd[_0x3c9680('0x4b9')]};}),_0x4877e4['channel']=_0xb5ad68,_0x4877e4[_0x2810ba('0x9dd')]=!![],_0x4877e4['saveTag']=_0xec3aaf,_0x4877e4['closeDialog']=_0x358d3e,_0x4877e4[_0x2810ba('0x1f4')]=_0x4877e4[_0x2810ba('0x119e')]+_0x2810ba('0x11');function _0xec3aaf(){var _0x9505a7=_0x2810ba;_0x4877e4[_0x9505a7('0x4c6')]=[];if(_0xb2c241[_0x4877e4[_0x9505a7('0x1f4')]])return _0xb2c241[_0x4877e4[_0x9505a7('0x1f4')]][_0x9505a7('0x1087')]({'id':_0x4877e4[_0x9505a7('0x1d86')]['id'],'ids':_0x51538b()['map'](_0x4877e4[_0x9505a7('0x1d86')][_0x9505a7('0x67f')],'id')})['$promise'][_0x9505a7('0xaa5')](function(){var _0x48d792=_0x9505a7;_0x29379e[_0x48d792('0xe10')]({'title':_0x48d792('0x19a9'),'msg':'Interaction\x20has\x20been\x20tagged!'}),_0x216f6a[_0x48d792('0x67f')]=_0x4877e4[_0x48d792('0x1d86')]['Tags'],_0x358d3e(!![]);})[_0x9505a7('0x253d')](function(_0x512ebf){var _0x546eff=_0x9505a7;if(_0x512ebf[_0x546eff('0x10fd')]&&_0x512ebf['data']['errors']&&_0x512ebf[_0x546eff('0x10fd')]['errors']['length'])for(var _0x32eae6=0x0;_0x32eae6<_0x512ebf[_0x546eff('0x10fd')][_0x546eff('0x4c6')][_0x546eff('0x2587')];_0x32eae6+=0x1){_0x29379e['error']({'title':_0x512ebf[_0x546eff('0x10fd')][_0x546eff('0x4c6')][_0x32eae6][_0x546eff('0x6c8')],'msg':_0x512ebf[_0x546eff('0x10fd')][_0x546eff('0x4c6')][_0x32eae6][_0x546eff('0x1402')]});}else _0x29379e[_0x546eff('0x187f')]({'title':_0x512ebf[_0x546eff('0x2fa')]?'API:'+_0x512ebf[_0x546eff('0x2fa')]+'\x20-\x20'+_0x512ebf[_0x546eff('0x24df')]:_0x546eff('0x831'),'msg':_0x512ebf[_0x546eff('0x10fd')]?JSON['stringify'](_0x512ebf[_0x546eff('0x10fd')]['message']):_0x512ebf[_0x546eff('0x684')]()});});else _0x358d3e(![]);}function _0x358d3e(_0x495bfd){var _0x1e6485=_0x2810ba;_0x2d48ec[_0x1e6485('0x1120')](_0x495bfd);}}const _0x226770=_0x5c9fdc;_0x4133aa[_0x1a8446('0x1e33')]=['$mdDialog','$timeout',_0x1a8446('0x1dfd'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x119e'),_0x1a8446('0x1402'),_0x1a8446('0x5b')];function _0x4133aa(_0x452084,_0x26ad18,_0x346578,_0x5aad5c,_0x221ffc,_0x14eb0b,_0x3fb8f4,_0x111b7c){var _0x30f14b=_0x1a8446,_0x15b437=this;_0x15b437['currentUser']=_0x346578[_0x30f14b('0xacc')](),_0x15b437[_0x30f14b('0x119e')]=_0x14eb0b[_0x30f14b('0xcf6')](),_0x15b437[_0x30f14b('0x1402')]=_0x3fb8f4,_0x15b437[_0x30f14b('0x5b')]=_0x111b7c,_0x15b437['transfer']={'id':0x0,'type':_0x30f14b('0xe26')},_0x15b437['queues']={'count':0x0,'rows':[]},_0x15b437['agents']=_0x15b437[_0x30f14b('0x4d7')],_0x15b437[_0x30f14b('0x182b')]=_0x15b437[_0x30f14b('0x119e')]+_0x30f14b('0x145c'),_0x15b437[_0x30f14b('0x1ddd')]=_0x15b437['channel']+_0x30f14b('0x1c77'),_0x15b437[_0x30f14b('0x955')]=_0x28fdb3,_0x15b437[_0x30f14b('0x2023')]=_0x17e2bc,_0x15b437[_0x30f14b('0x2e')]=_0x2a012b,_0x15b437['init']();function _0x2a012b(){var _0x535371=_0x30f14b;return _0x5aad5c[_0x535371('0x272b')]['get']({'fields':_0x535371('0x17fe'),'role':_0x535371('0xeff'),'sort':'name','nolimit':!![]})[_0x535371('0x1dc2')][_0x535371('0xaa5')](function(_0x1d1ac1){var _0x517a37=_0x535371;return _0x15b437['agents']=_0x1d1ac1||{'count':0x0,'rows':[]},_0x5aad5c[_0x15b437[_0x517a37('0x182b')]][_0x517a37('0x2122')]({'fields':'id,name','sort':_0x517a37('0x25d6'),'nolimit':!![]})['$promise'];})[_0x535371('0xaa5')](function(_0x124f30){_0x15b437['queues']=_0x124f30||{'count':0x0,'rows':[]};})[_0x535371('0x253d')](function(_0x240235){var _0x5581c0=_0x535371;console[_0x5581c0('0x187f')](_0x240235);});}function _0x17e2bc(_0x4f5d3e){var _0x33012f=_0x30f14b;_0x452084[_0x33012f('0x1120')](_0x4f5d3e);}function _0x28fdb3(){_0x17e2bc(!![]),_0x26ad18(function(){var _0x5af192=a0_0x1149;return _0x5aad5c[_0x5af192('0xb5d')][_0x15b437[_0x5af192('0x1368')][_0x5af192('0x6c8')]===_0x5af192('0xeff')?_0x5af192('0x121'):_0x15b437['queueNotifyMethod']]({'id':_0x15b437['transfer']['id'],'messageId':_0x15b437[_0x5af192('0x1402')]['id'],'channel':_0x15b437[_0x5af192('0x119e')]})[_0x5af192('0x1dc2')][_0x5af192('0xaa5')](function(){var _0x3dfa81=_0x5af192;_0x221ffc[_0x3dfa81('0xe10')]({'title':'Trasfer\x20properly\x20done!','msg':_0x3dfa81('0x12fd')+_0x15b437[_0x3dfa81('0x1368')]['type']+_0x3dfa81('0x10c3')});})[_0x5af192('0x253d')](function(_0x32bdf7){var _0x3c17b1=_0x5af192;if(_0x32bdf7[_0x3c17b1('0x10fd')]&&_0x32bdf7[_0x3c17b1('0x10fd')][_0x3c17b1('0x4c6')]&&_0x32bdf7[_0x3c17b1('0x10fd')][_0x3c17b1('0x4c6')]['length']){_0x15b437['errors']=_0x32bdf7[_0x3c17b1('0x10fd')][_0x3c17b1('0x4c6')]||[{'message':_0x32bdf7['toString'](),'type':_0x3c17b1('0xa81')}];for(var _0x3f6409=0x0;_0x3f6409<_0x32bdf7[_0x3c17b1('0x10fd')]['errors'][_0x3c17b1('0x2587')];_0x3f6409++){_0x221ffc[_0x3c17b1('0x187f')]({'title':_0x32bdf7[_0x3c17b1('0x10fd')]['errors'][_0x3f6409][_0x3c17b1('0x6c8')],'msg':_0x32bdf7['data'][_0x3c17b1('0x4c6')][_0x3f6409][_0x3c17b1('0x1402')]});}}else _0x221ffc[_0x3c17b1('0x187f')]({'title':_0x32bdf7[_0x3c17b1('0x2fa')]?_0x3c17b1('0x16c2')+_0x32bdf7[_0x3c17b1('0x2fa')]+'\x20-\x20'+_0x32bdf7[_0x3c17b1('0x24df')]:_0x3c17b1('0xa81'),'msg':_0x32bdf7[_0x3c17b1('0x10fd')]?JSON['stringify'](_0x32bdf7[_0x3c17b1('0x10fd')]['message']):_0x32bdf7['toString']()});});},0x1388);}}const _0x2edca8=_0x4133aa;_0x4391f9[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$q',_0x1a8446('0x2378'),_0x1a8446('0x5fc'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0xcb3'),'$rootScope',_0x1a8446('0x186b'),_0x1a8446('0x25c')];function _0x4391f9(_0x5d3cf1,_0xe0b04a,_0x51ba1a,_0x539df7,_0x59dad4,_0x56be59,_0x1ef4f7,_0xa13a13,_0x164014,_0x2bd3f0,_0x1f5f6f){var _0x3938d2=_0x1a8446,_0x1321e8=this;_0x1321e8['formViewer']={},_0x1321e8[_0x3938d2('0x355')]=!![],_0x1321e8[_0x3938d2('0x109')]=![],_0x1321e8['detectBrowser']=_0x1f5f6f[_0x3938d2('0x2007')](),_0x1321e8[_0x3938d2('0x1ff5')]=_0x2761ab,_0x1321e8[_0x3938d2('0x267c')]=_0x26a870,_0x1321e8[_0x3938d2('0x176a')]=_0x1d3184,_0x1321e8['getResponseSheet']=_0x3aa39a,_0x1321e8[_0x3938d2('0xdfc')]=_0x39a35d,_0x1321e8[_0x3938d2('0x2e1')]=_0x53db1f,_0x1321e8[_0x3938d2('0xd83')]=_0x3d24a3,_0x1321e8[_0x3938d2('0x2e')]=_0xe82d46,_0x1321e8[_0x3938d2('0x92a')]=function(_0x168530){var _0x2ca012=_0x3938d2;if(_0x1321e8[_0x2ca012('0x80e')][_0x2ca012('0xb6')]){var _0x5f2b5e=_0x51ba1a[_0x2ca012('0x281e')]()[_0x2ca012('0x110a')](_0xa13a13[_0x2ca012('0x213f')](_0x2ca012('0xa0e')))['content'](_0xa13a13['instant'](_0x2ca012('0x14cd')))['textContent']('')[_0x2ca012('0x5b5')](_0x2ca012('0x653'))[_0x2ca012('0x116d')](_0x168530)['ok'](_0xa13a13['instant'](_0x2ca012('0x1d9e')))[_0x2ca012('0x2030')](_0xa13a13[_0x2ca012('0x213f')](_0x2ca012('0x169c')));_0x51ba1a[_0x2ca012('0x1e6d')](_0x5f2b5e)[_0x2ca012('0xaa5')](function(){var _0x23a0ed=_0x2ca012;_0x1321e8[_0x23a0ed('0x109')]=![],_0x1321e8[_0x23a0ed('0x24b9')][_0x23a0ed('0x57d')]=undefined,_0x3f5be9(),_0x1321e8[_0x23a0ed('0x80e')][_0x23a0ed('0xb6')]();});}};function _0x3f5be9(){var _0x195392=_0x3938d2;try{_0x5d3cf1[_0x195392('0x24a3')][_0x195392('0x24a3')][_0x195392('0x24a3')]['vm']['updateLocalStorage']();}catch(_0x16000e){_0x56be59[_0x195392('0x187f')]({'title':_0x195392('0xe0b'),'msg':_0x195392('0x1f7e')});}}function _0xe82d46(_0x180daf){var _0x102c0a=_0x3938d2;_0x1321e8[_0x102c0a('0x25c2')]=_0x180daf;if(_0x1321e8[_0x102c0a('0x25c2')]){_0x1321e8[_0x102c0a('0x1432')]=_0x1321e8[_0x102c0a('0x25c2')][_0x102c0a('0x1432')],_0x1321e8[_0x102c0a('0x1df9')]=_0x1321e8[_0x102c0a('0x25c2')]['openedAt'],_0x1321e8[_0x102c0a('0x3c6')]=_0x1321e8[_0x102c0a('0x25c2')][_0x102c0a('0x3c6')],_0x1321e8[_0x102c0a('0x24b9')]=_0x1321e8['tab'][_0x102c0a('0x24b9')];if(_0x1321e8[_0x102c0a('0x24b9')]){if(_0x51538b()[_0x102c0a('0x10e8')](_0x1321e8[_0x102c0a('0x24b9')][_0x102c0a('0x1452')])){}else _0x1321e8[_0x102c0a('0x176a')](_0x1321e8['project'][_0x102c0a('0x1452')])?_0x1321e8[_0x102c0a('0x24b9')][_0x102c0a('0x1452')]=JSON[_0x102c0a('0x9b6')](_0x1321e8[_0x102c0a('0x24b9')][_0x102c0a('0x1452')]):_0x1321e8['project'][_0x102c0a('0x1452')]=undefined;_0x1321e8['project'][_0x102c0a('0xcb2')]=_0x1321e8[_0x102c0a('0x24b9')][_0x102c0a('0xcb2')]||{},_0x1321e8[_0x102c0a('0x24b9')][_0x102c0a('0x57d')]!==undefined&&_0x2bd3f0(function(){var _0xb7c0c7=_0x102c0a;_0x164014['$broadcast']('mwForm.pageEvents.changePage',{'page':_0x1321e8[_0xb7c0c7('0x24b9')][_0xb7c0c7('0x57d')]});}),_0x5d3cf1['$on']('mwForm.pageEvents.pageCurrentChanged',function(_0x541b17,_0x2295eb){var _0x294ceb=_0x102c0a;if(_0x2295eb[_0x294ceb('0x57d')]){_0x1321e8[_0x294ceb('0x24b9')][_0x294ceb('0x57d')]=_0x2295eb[_0x294ceb('0x57d')][_0x294ceb('0x219a')]-0x1,_0x3f5be9();_0x1321e8[_0x294ceb('0x24b9')][_0x294ceb('0x491')]&&(_0x2295eb[_0x294ceb('0x57d')][_0x294ceb('0x219a')]>=0x1&&_0x2295eb[_0x294ceb('0x57d')]['number']<_0x1321e8[_0x294ceb('0x24b9')][_0x294ceb('0x1452')][_0x294ceb('0x10be')][_0x294ceb('0x2587')]?_0x1321e8[_0x294ceb('0x109')]=!![]:_0x1321e8[_0x294ceb('0x109')]=![]);if(_0x1321e8[_0x294ceb('0x24b9')][_0x294ceb('0x1452')]&&_0x1321e8[_0x294ceb('0x24b9')][_0x294ceb('0x1452')][_0x294ceb('0x10be')])for(var _0x232a80=0x0,_0x1f55ff=_0x1321e8['project']['formData'][_0x294ceb('0x10be')][_0x294ceb('0x2587')];_0x232a80<_0x1f55ff;_0x232a80++){if(_0x2295eb[_0x294ceb('0x57d')][_0x294ceb('0x219a')]<_0x232a80+0x1&&_0x1321e8[_0x294ceb('0x24b9')][_0x294ceb('0x1452')][_0x294ceb('0x10be')][_0x232a80][_0x294ceb('0x10f6')])for(var _0x51c679=0x0,_0x2d7eb7=_0x1321e8[_0x294ceb('0x24b9')]['formData'][_0x294ceb('0x10be')][_0x232a80]['elements']['length'];_0x51c679<_0x2d7eb7;_0x51c679++){_0x1321e8[_0x294ceb('0x24b9')][_0x294ceb('0x1452')]['pages'][_0x232a80][_0x294ceb('0x10f6')][_0x51c679][_0x294ceb('0x6c8')]===_0x294ceb('0x1505')&&_0x1321e8[_0x294ceb('0x24b9')][_0x294ceb('0x1452')][_0x294ceb('0x10be')][_0x232a80]['elements'][_0x51c679][_0x294ceb('0x1505')]&&delete _0x1321e8['project'][_0x294ceb('0xcb2')][_0x1321e8[_0x294ceb('0x24b9')]['formData']['pages'][_0x232a80]['elements'][_0x51c679][_0x294ceb('0x1505')]['id']];}}}});}}}function _0x1d3184(_0x365028){var _0x22040f=_0x3938d2;if(_0x51538b()[_0x22040f('0x89a')](_0x365028))return![];try{JSON['parse'](_0x365028);}catch(_0x58a649){return![];}return!![];}function _0x26a870(_0x38f88f,_0x268f0f){var _0x1dbd3a=_0x3938d2;try{_0x5d3cf1[_0x1dbd3a('0x24a3')]['$parent'][_0x1dbd3a('0x24a3')]['vm'][_0x1dbd3a('0xde6')](_0x268f0f);}catch(_0x29e523){_0x56be59[_0x1dbd3a('0x187f')]({'title':_0x1dbd3a('0x20ee'),'msg':_0x1dbd3a('0x17d1')});}}function _0x5647d0(_0x3218b4){var _0x5c9321=_0x3938d2,_0x2cd03a=_0xe0b04a[_0x5c9321('0x213b')]();return _0x1321e8[_0x5c9321('0x24b9')][_0x5c9321('0x22ba')]?_0x59dad4[_0x5c9321('0x272b')]['unpause']({'id':_0x3218b4['id']})[_0x5c9321('0x1dc2')][_0x5c9321('0xaa5')](function(){_0x2cd03a['resolve']();})[_0x5c9321('0x253d')](function(){var _0x468439=_0x5c9321;console['log'](_0x468439('0x21bf')),_0x2cd03a[_0x468439('0x149f')]();}):_0x2cd03a[_0x5c9321('0x149f')](),_0x2cd03a['promise'];}function _0x2c244d(_0x2afd86,_0x2e4737){var _0x2e30db=_0x3938d2,_0x2ca1c4=[],_0x3b46ef=[],_0x5ae659=_0x1ef4f7['getCurrentUser']();_0x5647d0(_0x5ae659)[_0x2e30db('0xaa5')](function(){var _0x11c776=_0x2e30db;return _0x59dad4[_0x11c776('0x134a')][_0x11c776('0x242b')]({'starttime':_0x1321e8[_0x11c776('0x1df9')],'membername':_0x1321e8[_0x11c776('0x1432')]&&_0x1321e8['call'][_0x11c776('0xc1a')]?_0x1321e8[_0x11c776('0x1432')]['membername']:_0x5ae659[_0x11c776('0x25d6')],'calleridname':_0x1321e8[_0x11c776('0x1432')]&&_0x1321e8['call'][_0x11c776('0x2789')]?_0x1321e8[_0x11c776('0x1432')][_0x11c776('0x2789')]:undefined,'calleridnum':_0x1321e8[_0x11c776('0x1432')]&&_0x1321e8[_0x11c776('0x1432')][_0x11c776('0x1804')]?_0x1321e8[_0x11c776('0x1432')][_0x11c776('0x1804')]:undefined,'queue':_0x1321e8[_0x11c776('0x1432')]&&_0x1321e8[_0x11c776('0x1432')]['queue']?_0x1321e8[_0x11c776('0x1432')]['queue']:undefined,'uniqueid':_0x1321e8[_0x11c776('0x1432')]&&_0x1321e8[_0x11c776('0x1432')][_0x11c776('0x1a6')]?_0x1321e8[_0x11c776('0x1432')]['uniqueid']:undefined,'VoiceQueueId':_0x1321e8['call']&&_0x1321e8[_0x11c776('0x1432')][_0x11c776('0x13ed')]?_0x1321e8[_0x11c776('0x1432')]['xmd-voicequeueid']:undefined,'ProjectId':_0x1321e8['project']&&_0x1321e8['project']['id']?_0x1321e8['project']['id']:undefined,'projectname':_0x1321e8[_0x11c776('0x24b9')]&&_0x1321e8[_0x11c776('0x24b9')][_0x11c776('0x25d6')]?_0x1321e8[_0x11c776('0x24b9')][_0x11c776('0x25d6')]:undefined,'ContactId':_0x1321e8['contact']&&_0x1321e8[_0x11c776('0x3c6')]['id']?_0x1321e8[_0x11c776('0x3c6')]['id']:undefined,'completed':_0x2e4737})[_0x11c776('0x1dc2')];})[_0x2e30db('0xaa5')](function(_0x44b0df){var _0x1d6bf3=_0x2e30db;if(_0x44b0df){var _0x357703=_0x1321e8[_0x1d6bf3('0x2e1')](),_0x1018f1=_0x1321e8[_0x1d6bf3('0xdfc')](),_0x2d8836=_0x1321e8[_0x1d6bf3('0xd83')]();for(var _0x2f7123=0x0;_0x2f7123<_0x357703[_0x1d6bf3('0x2587')];_0x2f7123+=0x1){if(!_0x51538b()[_0x1d6bf3('0x116b')](String(_0x1018f1[_0x2f7123]))){try{_0x2ca1c4[_0x1d6bf3('0x1599')](_0x59dad4['jscriptyQuestionReport'][_0x1d6bf3('0x242b')]({'question':_0x357703[_0x2f7123],'answer':_0x2d8836[_0x2f7123]['type']===_0x1d6bf3('0xb87')?_0x420d43()(String(_0x1018f1[_0x2f7123]))[_0x1d6bf3('0x1f27')](_0x1d6bf3('0x2bb')):_0x2d8836[_0x2f7123][_0x1d6bf3('0x6c8')]===_0x1d6bf3('0x50e')?_0x420d43()(String(_0x1018f1[_0x2f7123]))['format'](_0x1d6bf3('0x16')):String(_0x1018f1[_0x2f7123]),'questionId':_0x2d8836[_0x2f7123]['id'],'membername':_0x1321e8[_0x1d6bf3('0x1432')]&&_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0xc1a')]?_0x1321e8['call'][_0x1d6bf3('0xc1a')]:_0x5ae659[_0x1d6bf3('0x25d6')],'calleridname':_0x1321e8[_0x1d6bf3('0x1432')]&&_0x1321e8['call'][_0x1d6bf3('0x2789')]?_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0x2789')]:undefined,'calleridnum':_0x1321e8[_0x1d6bf3('0x1432')]&&_0x1321e8['call']['calleridnum']?_0x1321e8[_0x1d6bf3('0x1432')]['calleridnum']:undefined,'queue':_0x1321e8[_0x1d6bf3('0x1432')]&&_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0xe26')]?_0x1321e8['call'][_0x1d6bf3('0xe26')]:undefined,'uniqueid':_0x1321e8[_0x1d6bf3('0x1432')]&&_0x1321e8[_0x1d6bf3('0x1432')]['uniqueid']?_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0x1a6')]:undefined,'SessionId':_0x44b0df['id'],'ProjectId':_0x1321e8[_0x1d6bf3('0x24b9')]['id'],'projectname':_0x1321e8[_0x1d6bf3('0x24b9')][_0x1d6bf3('0x25d6')]}));}catch(_0xe8c5bf){console[_0x1d6bf3('0x187f')]('Unable\x20to\x20convert\x20question',_0xe8c5bf);}var _0xbe825d=String(_0x1018f1[_0x2f7123])[_0x1d6bf3('0x1a39')](';');for(var _0x530ea0=0x0;_0x530ea0<_0xbe825d[_0x1d6bf3('0x2587')];_0x530ea0+=0x1){var _0x217c1e=_0xbe825d[_0x530ea0][_0x1d6bf3('0x2497')]();try{_0x3b46ef[_0x1d6bf3('0x1599')](_0x59dad4[_0x1d6bf3('0x20ba')]['save']({'question':_0x357703[_0x2f7123],'questionId':_0x2d8836[_0x2f7123]['id'],'answer':_0x2d8836[_0x2f7123]['type']==='date'?_0x420d43()(_0x217c1e)['format']('YYYY-MM-DD'):_0x2d8836[_0x2f7123][_0x1d6bf3('0x6c8')]===_0x1d6bf3('0x50e')?_0x420d43()(_0x217c1e)[_0x1d6bf3('0x1f27')](_0x1d6bf3('0x16')):_0x217c1e,'membername':_0x1321e8['call']&&_0x1321e8['call'][_0x1d6bf3('0xc1a')]?_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0xc1a')]:_0x5ae659[_0x1d6bf3('0x25d6')],'calleridname':_0x1321e8[_0x1d6bf3('0x1432')]&&_0x1321e8['call'][_0x1d6bf3('0x2789')]?_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0x2789')]:undefined,'calleridnum':_0x1321e8[_0x1d6bf3('0x1432')]&&_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0x1804')]?_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0x1804')]:undefined,'queue':_0x1321e8[_0x1d6bf3('0x1432')]&&_0x1321e8['call']['queue']?_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0xe26')]:undefined,'uniqueid':_0x1321e8['call']&&_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0x1a6')]?_0x1321e8[_0x1d6bf3('0x1432')][_0x1d6bf3('0x1a6')]:undefined,'SessionId':_0x44b0df['id'],'ProjectId':_0x1321e8[_0x1d6bf3('0x24b9')]['id'],'projectname':_0x1321e8['project'][_0x1d6bf3('0x25d6')]}));}catch(_0x2e2b2e){console['error'](_0x1d6bf3('0x1fa0'),_0x2e2b2e);}}}}}return _0xe0b04a[_0x1d6bf3('0xa15')](_0x2ca1c4)[_0x1d6bf3('0xaa5')](function(){var _0x973ecb=_0x1d6bf3;return _0xe0b04a['all'](_0x3b46ef)[_0x973ecb('0xaa5')](function(){return _0x44b0df;});});})[_0x2e30db('0xaa5')](function(_0xc44276){var _0x151c88=_0x2e30db;_0xc44276?_0x2afd86['resolve'](!![]):_0x2afd86[_0x151c88('0xaee')]();})['catch'](function(_0x548bc6){var _0x15db23=_0x2e30db;if(_0x548bc6[_0x15db23('0x10fd')]&&_0x548bc6[_0x15db23('0x10fd')][_0x15db23('0x4c6')]&&_0x548bc6['data']['errors'][_0x15db23('0x2587')]){_0x1321e8[_0x15db23('0x4c6')]=_0x548bc6[_0x15db23('0x10fd')][_0x15db23('0x4c6')]||[{'message':_0x548bc6[_0x15db23('0x684')](),'type':_0x15db23('0x1fa2')}];for(var _0x8ae7cf=0x0;_0x8ae7cf<_0x548bc6[_0x15db23('0x10fd')][_0x15db23('0x4c6')]['length'];_0x8ae7cf+=0x1){_0x56be59['error']({'title':_0x548bc6['data'][_0x15db23('0x4c6')][_0x8ae7cf][_0x15db23('0x6c8')],'msg':_0x548bc6[_0x15db23('0x10fd')][_0x15db23('0x4c6')][_0x8ae7cf][_0x15db23('0x1402')]});}}else _0x56be59['error']({'title':_0x548bc6[_0x15db23('0x2fa')]?_0x15db23('0x16c2')+_0x548bc6[_0x15db23('0x2fa')]+_0x15db23('0x169e')+_0x548bc6[_0x15db23('0x24df')]:_0x15db23('0x1fa2'),'msg':_0x548bc6['data']?JSON['stringify'](_0x548bc6[_0x15db23('0x10fd')][_0x15db23('0x1402')]):_0x548bc6[_0x15db23('0x684')]()});_0x2afd86[_0x15db23('0xaee')]();});}function _0x272fad(_0x1c8b63){var _0x8447cf=_0x3938d2;try{_0x5d3cf1['$parent'][_0x8447cf('0x24a3')]['$parent']['vm'][_0x8447cf('0x76a')](_0x1c8b63);}catch(_0x5efaf7){_0x56be59[_0x8447cf('0x187f')]({'title':_0x8447cf('0xb51'),'msg':_0x8447cf('0x1634')});}}function _0x2761ab(_0x327fe1,_0x405d88){var _0x3486ba=_0x3938d2,_0x93ba58=_0xe0b04a[_0x3486ba('0x213b')]();if(_0x405d88){var _0x57d2c8=_0x51ba1a[_0x3486ba('0x281e')]()[_0x3486ba('0x110a')](_0x3486ba('0x90'))[_0x3486ba('0x447')]('')[_0x3486ba('0x5b5')](_0x3486ba('0x653'))['targetEvent'](_0x327fe1)['ok']('YES')['cancel']('NO');_0x51ba1a[_0x3486ba('0x1e6d')](_0x57d2c8)['then'](function(){_0x2c244d(_0x93ba58,![]);},function(){var _0x1d4c33=_0x3486ba;_0x93ba58[_0x1d4c33('0x149f')]();});}else _0x2c244d(_0x93ba58,!![]);return _0x93ba58[_0x3486ba('0x159a')][_0x3486ba('0xaa5')](function(_0x595402){var _0x13db87=_0x3486ba;_0x595402&&(_0x56be59[_0x13db87('0xe10')]({'title':'Session\x20saved','msg':_0x13db87('0x30d')}),_0x272fad(_0x1321e8[_0x13db87('0x25c2')]));})[_0x3486ba('0x253d')](function(){var _0xae7a13=_0x3486ba;_0x56be59[_0xae7a13('0x187f')]({'title':_0xae7a13('0x2611'),'msg':_0xae7a13('0x2670')});});}function _0x3aa39a(){var _0x2b1ddd=_0x3938d2;return _0x539df7['getResponseSheet'](_0x1321e8[_0x2b1ddd('0x24b9')][_0x2b1ddd('0x1452')],_0x1321e8[_0x2b1ddd('0x24b9')][_0x2b1ddd('0xcb2')],![]);}function _0x39a35d(){var _0x42fde2=_0x3938d2;return _0x539df7[_0x42fde2('0xdfc')](_0x1321e8[_0x42fde2('0x24b9')][_0x42fde2('0x1452')],_0x1321e8[_0x42fde2('0x24b9')][_0x42fde2('0xcb2')]);}function _0x53db1f(){var _0x9c4c21=_0x3938d2;return _0x539df7[_0x9c4c21('0x2e1')](_0x1321e8['project'][_0x9c4c21('0x1452')],![]);}function _0x3d24a3(){var _0x40a82a=_0x3938d2;return _0x539df7['getQuestionWithResponseList'](_0x1321e8[_0x40a82a('0x24b9')][_0x40a82a('0x1452')],_0x1321e8[_0x40a82a('0x24b9')][_0x40a82a('0xcb2')]);}}const _0x2df62e=_0x4391f9;_0x215dda[_0x1a8446('0x1e33')]=[_0x1a8446('0xcb3'),'toasty',_0x1a8446('0xaac'),'api',_0x1a8446('0x1dfd')];function _0x215dda(_0x3d3dc9,_0x2a7399,_0xb0e2dd,_0x1834d5,_0x4aace9){var _0x3308ed=_0x1a8446,_0x5d1379=this;_0x5d1379[_0x3308ed('0xaac')]=_0xb0e2dd,_0x5d1379[_0x3308ed('0x272b')]=_0x4aace9[_0x3308ed('0xacc')]();function _0x175db5(){return function(_0x275639){var _0x50e21c=a0_0x1149;if(_0x275639[_0x50e21c('0x2fa')]===0x194)_0x2a7399['info']({'title':_0x3d3dc9[_0x50e21c('0x213f')](_0x50e21c('0x1b73')),'msg':_0x3d3dc9[_0x50e21c('0x213f')](_0x50e21c('0x2447'))});else{if(_0x275639['data']&&_0x275639[_0x50e21c('0x10fd')][_0x50e21c('0x4c6')]&&_0x275639[_0x50e21c('0x10fd')][_0x50e21c('0x4c6')][_0x50e21c('0x2587')]){_0x5d1379[_0x50e21c('0x4c6')]=_0x275639[_0x50e21c('0x10fd')][_0x50e21c('0x4c6')]||[{'message':_0x275639[_0x50e21c('0x684')](),'type':'api.openchannelMessage.accept'}];for(var _0x50f640=0x0;_0x50f640<_0x275639[_0x50e21c('0x10fd')]['errors']['length'];_0x50f640+=0x1){_0x2a7399[_0x50e21c('0x187f')]({'title':_0x275639['data']['errors'][_0x50f640][_0x50e21c('0x6c8')],'msg':_0x275639[_0x50e21c('0x10fd')]['errors'][_0x50f640]['message']});}}else _0x2a7399['error']({'title':_0x275639[_0x50e21c('0x2fa')]?_0x50e21c('0x16c2')+_0x275639[_0x50e21c('0x2fa')]+_0x50e21c('0x169e')+_0x275639[_0x50e21c('0x24df')]:_0x50e21c('0x1f9a'),'msg':_0x275639[_0x50e21c('0x10fd')]?JSON[_0x50e21c('0xa48')](_0x275639['data'][_0x50e21c('0x1402')]):_0x275639[_0x50e21c('0x684')]()});}};}function _0x5d63fb(){var _0x32d553=_0x3308ed;if(_0x1834d5[_0x5d1379[_0x32d553('0xaac')][_0x32d553('0x119e')]+_0x32d553('0x4d8')])return _0x1834d5[_0x5d1379[_0x32d553('0xaac')][_0x32d553('0x119e')]+_0x32d553('0x4d8')][_0x32d553('0x5d5')]({'id':_0x5d1379['notification']['id'],'UserId':_0x5d1379[_0x32d553('0x272b')]['id'],'manual':!![]})[_0x32d553('0x1dc2')][_0x32d553('0xaa5')](function(){var _0x3e2ec8=_0x32d553;_0x2a7399[_0x3e2ec8('0xe10')]({'title':'Message\x20properly\x20accepted!','msg':_0x3e2ec8('0x1b3c')});})[_0x32d553('0x253d')](_0x175db5());else _0x2a7399[_0x32d553('0x187f')]({'title':'API:ERROR','msg':_0x32d553('0x9a2')+_0x5d1379['notification']['channel']+'Message'});}function _0x3a973f(){var _0x37b1fe=_0x3308ed;if(_0x1834d5[_0x5d1379[_0x37b1fe('0xaac')][_0x37b1fe('0x119e')]+_0x37b1fe('0x4d8')])return _0x1834d5[_0x5d1379['notification'][_0x37b1fe('0x119e')]+_0x37b1fe('0x4d8')][_0x37b1fe('0xaee')]({'id':_0x5d1379[_0x37b1fe('0xaac')]['id'],'UserId':_0x5d1379[_0x37b1fe('0x272b')]['id']})[_0x37b1fe('0x1dc2')][_0x37b1fe('0xaa5')](function(){var _0x28cc62=_0x37b1fe;_0x2a7399[_0x28cc62('0xe10')]({'title':_0x28cc62('0xece'),'msg':_0x28cc62('0x1f5e')});})[_0x37b1fe('0x253d')](_0x175db5());else _0x2a7399[_0x37b1fe('0x187f')]({'title':_0x37b1fe('0x61f'),'msg':_0x37b1fe('0xd99')+_0x5d1379[_0x37b1fe('0xaac')][_0x37b1fe('0x119e')]+_0x37b1fe('0x4d8')});}_0x5d1379[_0x3308ed('0x5d5')]=_0x5d63fb,_0x5d1379[_0x3308ed('0xaee')]=_0x3a973f;}const _0x3ca7db=_0x215dda;function _0x1e1191(){var _0x5e8b84=_0x1a8446,_0x1d5d38=this;function _0x318e55(_0x58612d){var _0x250dc0=a0_0x1149;_0x1d5d38[_0x250dc0('0x25c2')]=_0x58612d,_0x1d5d38[_0x250dc0('0x25c2')]&&(_0x1d5d38[_0x250dc0('0x25c2')][_0x250dc0('0x1072')]=!![],_0x1d5d38[_0x250dc0('0x1869')]=_0x1d5d38[_0x250dc0('0x25c2')]['html']);}_0x1d5d38[_0x5e8b84('0x2e')]=_0x318e55;}const _0x343b02=_0x1e1191,_0x59469c=_0x4fb511['p']+_0x1a8446('0x16d1');_0x5c034a['$inject']=[_0x1a8446('0x2ce')];function _0x5c034a(_0x530ec1){var _0x33f525=_0x1a8446;_0x530ec1[_0x33f525('0xb46')]('app.dashboards.general',{'url':'/general','views':{'content@app':{'templateProvider':[_0x33f525('0x703'),'$templateFactory',_0x33f525('0x1dfd'),function _0x3d615c(_0x22222b,_0x287134,_0x179596){var _0x9a325d=_0x33f525;return _0x179596[_0x9a325d('0x30')]()?_0x287134[_0x9a325d('0x61c')](_0x59469c,_0x22222b):_0x287134[_0x9a325d('0x61c')](_0x42ff45,_0x22222b);}],'controllerProvider':[_0x33f525('0x1dfd'),function _0x20f145(_0x50c6f7){var _0x2483e4=_0x33f525;return _0x50c6f7[_0x2483e4('0x30')]()?_0x2483e4('0x26d'):'UserDashboardGeneralController\x20as\x20vm';}]}},'resolve':{'globalUserLists':[_0x33f525('0x1d16'),_0x33f525('0x1dfd'),function _0x23b922(_0x40190d,_0x3547e5){var _0x127f6f=_0x33f525;return _0x40190d['resolve'](_0x127f6f('0x1982'),{'id':_0x3547e5[_0x127f6f('0xacc')]()['id'],'sort':_0x127f6f('0x25d6'),'nolimit':!![]});}],'globalLists':['apiResolver',function _0xf920a5(_0x51c19e){var _0x5ec2af=_0x33f525;return _0x51c19e[_0x5ec2af('0x149f')](_0x5ec2af('0x466'),{'sort':'name','nolimit':!![]});}],'globalTags':[_0x33f525('0x1d16'),function _0x3f0625(_0x5baf38){var _0x31b6cd=_0x33f525;return _0x5baf38[_0x31b6cd('0x149f')]('tag@get',{'sort':_0x31b6cd('0x25d6'),'nolimit':!![]});}],'globalCompanies':[_0x33f525('0x1d16'),function _0x4b7793(_0x5c5c0f){var _0x4bb893=_0x33f525;return _0x5c5c0f['resolve']('cmCompany@get',{'sort':_0x4bb893('0x25d6'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x33f525('0xaff')});}angular[_0x1a8446('0x1f8d')]('app.dashboards.general',['ngMaterialDateRangePicker',_0x1a8446('0xf4b')])['config'](_0x5c034a)[_0x1a8446('0x780')](_0x1a8446('0x127b'),_0x1e7a5e)[_0x1a8446('0x1be9')](_0x1a8446('0xa66'),_0x38b416)['provider'](_0x1a8446('0x27fd'),_0x222297)[_0x1a8446('0xc66')](_0x1a8446('0x1b7b'),_0x41d46a)[_0x1a8446('0x11f0')]('PERMISSIONS',_0x27b8fd)[_0x1a8446('0x780')]('AgentGeneralBotController',_0x1209e6)[_0x1a8446('0x780')]('AgentGeneralContactController',_0x110a95)[_0x1a8446('0x780')](_0x1a8446('0x84d'),_0x6d0817)[_0x1a8446('0x780')](_0x1a8446('0xee5'),_0x494a41)['controller']('ContactSelectionController',_0x4f020b)[_0x1a8446('0x780')](_0x1a8446('0x122f'),_0x4ec428)['controller']('AgentHomeAbandonedBullController',_0x3ad919)['controller'](_0x1a8446('0x1063'),_0x49d207)[_0x1a8446('0x780')](_0x1a8446('0x226f'),_0x2a80cc)[_0x1a8446('0x780')](_0x1a8446('0x1f62'),_0x271b00)['controller'](_0x1a8446('0x27f6'),_0x2cf721)['controller'](_0x1a8446('0x1c34'),_0x72898d)[_0x1a8446('0x780')]('AgentHomeDashboardController',_0x116462)[_0x1a8446('0x780')](_0x1a8446('0x89'),_0x524ae3)[_0x1a8446('0x780')]('AgentHomeDashboardMultiChannelChatController',_0xf33d90)[_0x1a8446('0x780')](_0x1a8446('0x19a7'),_0x55699f)[_0x1a8446('0x780')](_0x1a8446('0x1d41'),_0x365c5e)[_0x1a8446('0x780')](_0x1a8446('0x21a8'),_0x3a78fa)['controller'](_0x1a8446('0x2293'),_0x4b4b9e)[_0x1a8446('0x780')](_0x1a8446('0x13b9'),_0xc89a8b)['controller']('AgentHomeDashboardMultiChannelWhatsappController',_0xe00b3b)[_0x1a8446('0x780')](_0x1a8446('0x799'),_0x279ce6)['controller'](_0x1a8446('0x22b'),_0x787c6c)['controller'](_0x1a8446('0xab3'),_0x21347d)['controller'](_0x1a8446('0xacb'),_0x37b36c)['controller']('AgentHomePluginsController',_0x3de999)[_0x1a8446('0x780')]('AgentHomeRecordingsController',_0xf23f14)[_0x1a8446('0x780')]('AgentHomeScheduledCallsController',_0x5eaceb)[_0x1a8446('0x780')](_0x1a8446('0x1d25'),_0x6f6787)[_0x1a8446('0x780')](_0x1a8446('0x1c20'),_0x515dfa)[_0x1a8446('0x780')](_0x1a8446('0x76f'),_0x4b3703)[_0x1a8446('0x780')](_0x1a8446('0x768'),_0x4ea162)[_0x1a8446('0x780')](_0x1a8446('0x2492'),_0x2a5a43)[_0x1a8446('0xdea')]('ngBindHtmlUnsafe',_0x4b7d69)[_0x1a8446('0xdb7')](_0x1a8446('0x2636'),_0x515869)[_0x1a8446('0x780')](_0x1a8446('0x1fdf'),_0x3b04f0)[_0x1a8446('0x1be9')](_0x1a8446('0x1968'),_0x3db117)[_0x1a8446('0x780')](_0x1a8446('0xaa2'),_0x22b65e)[_0x1a8446('0x780')](_0x1a8446('0x4de'),_0x50d689)[_0x1a8446('0x780')]('ComposeOpenchannelInteractionDialogController',_0x383c2f)[_0x1a8446('0x780')](_0x1a8446('0x53f'),_0x54abe8)[_0x1a8446('0x780')]('ComposeWhatsappInteractionDialogController',_0x2f9246)[_0x1a8446('0x780')](_0x1a8446('0xa89'),_0x3df396)[_0x1a8446('0x780')](_0x1a8446('0x2485'),_0x226770)[_0x1a8446('0x780')](_0x1a8446('0x2604'),_0x2edca8)['controller'](_0x1a8446('0xf38'),_0x2df62e)[_0x1a8446('0x780')](_0x1a8446('0x1854'),_0x3ca7db)[_0x1a8446('0x780')](_0x1a8446('0x248e'),_0x343b02);const _0x2554b6=_0x4fb511['p']+_0x1a8446('0x22cb');_0xcfcd1c[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x21b3'),'$scope','api',_0x1a8446('0xe74'),_0x1a8446('0x1dfd'),'voiceQueues','userProfile',_0x1a8446('0x1a50')];function _0xcfcd1c(_0xe5d625,_0x54ee94,_0x3d9fb1,_0x39aae1,_0x25633b,_0x5e7dd8,_0x5b38ac,_0x586cee,_0x17b208){var _0x288103=_0x1a8446,_0x1989d1=this;_0x1989d1[_0x288103('0x7fc')]=_0x5e7dd8['getCurrentUser'](),_0x1989d1[_0x288103('0x1e97')]=_0x586cee,_0x1989d1[_0x288103('0x1a50')]=_0x17b208&&_0x17b208[_0x288103('0xd15')]==0x1?_0x17b208[_0x288103('0x580')][0x0]:null,_0x1989d1[_0x288103('0xada')]=_0x5e7dd8['parseCrudPermissions'](_0x1989d1[_0x288103('0x1a50')]?_0x1989d1['userProfileSection'][_0x288103('0xada')]:null),_0x1989d1['customDashboard']={},_0x1989d1[_0x288103('0xac0')]=_0x5b38ac&&_0x5b38ac['count']?_0x5b38ac:{'count':0x0,'rows':[]},_0x1989d1['voiceQueuesSelected']=_0x5b38ac&&_0x5b38ac[_0x288103('0xd15')]?_0x51538b()[_0x288103('0x1246')](_0x5b38ac[_0x288103('0x580')],'id'):[],_0x1989d1[_0x288103('0x1c21')]=_0x54ee94(function(){},0x3e8),_0x1989d1[_0x288103('0xc3d')]=_0x1223fd,_0x1989d1['goToEdit']=_0x288d3d,_0x25633b[_0x288103('0xa84')](_0x288103('0x46'),_0x185e79),_0x39aae1[_0x288103('0x55')][_0x288103('0x2122')]({'id':_0xe5d625[_0x288103('0x25cf')]['id']})['$promise'][_0x288103('0xaa5')](function(_0x3dfe85){var _0x37025d=_0x288103;if(_0x3dfe85)return _0x1989d1[_0x37025d('0x2635')]=_0x3dfe85,_0x1989d1[_0x37025d('0x2635')]['widgets']=[],_0x1989d1[_0x37025d('0x2635')][_0x37025d('0x1019')]=!![],_0x1989d1['customDashboard'][_0x37025d('0x2cb')]={'enabled':![]},_0x1989d1['customDashboard'][_0x37025d('0xa3e')]={'enabled':![]},_0x39aae1[_0x37025d('0x55')][_0x37025d('0x1ad1')]({'id':_0x1989d1[_0x37025d('0x2635')]['id']})[_0x37025d('0x1dc2')];})[_0x288103('0xaa5')](function(_0x231677){var _0x1589cd=_0x288103;if(_0x231677&&_0x231677['count']&&_0x231677[_0x1589cd('0x580')])for(var _0x9a66fc=0x0;_0x9a66fc<_0x231677[_0x1589cd('0x580')]['length'];_0x9a66fc+=0x1){_0x231677[_0x1589cd('0x580')][_0x9a66fc][_0x1589cd('0x9b')]=_0x1589cd('0xc2e')+_0x231677['rows'][_0x9a66fc]['type']+'/ms-widget-engine.'+_0x231677[_0x1589cd('0x580')][_0x9a66fc]['type']+_0x1589cd('0x273f'),_0x231677['rows'][_0x9a66fc]['voiceQueues']=_0x1989d1[_0x1589cd('0xac0')],_0x231677[_0x1589cd('0x580')][_0x9a66fc][_0x1589cd('0x267f')]=_0x1989d1[_0x1589cd('0x267f')],_0x1989d1[_0x1589cd('0x2635')]['widgets'][_0x1589cd('0x1599')](_0x231677[_0x1589cd('0x580')][_0x9a66fc]);}})[_0x288103('0x253d')](function(){_0x1989d1['customDashboard']=undefined;});function _0x185e79(_0x52c873){var _0x5da1ff=_0x288103,_0x378b0f=_0x51538b()[_0x5da1ff('0xe9e')](_0x1989d1[_0x5da1ff('0xac0')][_0x5da1ff('0x580')],{'id':_0x52c873['id']});_0x378b0f&&_0x51538b()[_0x5da1ff('0x283c')](_0x378b0f,_0x51538b()[_0x5da1ff('0x104e')](_0x52c873,_0x51538b()[_0x5da1ff('0x9f2')](_0x378b0f)));}function _0x1223fd(){var _0x50d080=_0x288103;for(var _0xc87159=0x0;_0xc87159<_0x1989d1[_0x50d080('0x2635')][_0x50d080('0x219c')][_0x50d080('0x2587')];_0xc87159+=0x1){_0x1989d1[_0x50d080('0x2635')][_0x50d080('0x219c')][_0xc87159][_0x50d080('0x267f')]=_0x1989d1[_0x50d080('0x267f')];}}function _0x288d3d(){var _0x6ce217=_0x288103;_0xe5d625['go'](_0x6ce217('0x494'),{'id':_0x1989d1[_0x6ce217('0x2635')]['id'],'tab':0x1});}_0x3d9fb1[_0x288103('0xc75')]('$destroy',function(){var _0x2b3111=_0x288103;_0x25633b[_0x2b3111('0x2629')]('voice_queue:save'),_0x1989d1[_0x2b3111('0x1c21')]&&_0x54ee94[_0x2b3111('0x2030')](_0x1989d1[_0x2b3111('0x1c21')]);});}const _0x514f21=_0xcfcd1c;_0x1ebe5c[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x1ebe5c(_0x26bd49){var _0x20ca7f=_0x1a8446;_0x26bd49[_0x20ca7f('0xb46')]('app.dashboards.custom',{'url':_0x20ca7f('0x264c'),'views':{'content@app':{'templateUrl':_0x2554b6,'controller':_0x20ca7f('0x3e5')}},'resolve':{'voiceQueues':[_0x20ca7f('0x1d16'),_0x20ca7f('0x1dfd'),function _0x129358(_0x245f1e,_0x4f0e03){var _0x20d8a5=_0x20ca7f,_0x33a31a,_0x41ae12=_0x4f0e03['hasRole'](_0x20d8a5('0x178b'))?_0x245f1e['resolve'](_0x20d8a5('0x1b1'),{'fields':_0x20d8a5('0x17fe'),'nolimit':!![]}):_0x245f1e['resolve'](_0x20d8a5('0x49a'),{'id':_0x4f0e03[_0x20d8a5('0xacc')]()[_0x20d8a5('0x2168')],'section':'VoiceQueues','mergeResources':!![],'fields':_0x20d8a5('0x17fe'),'channel':'voice','nolimit':!![]});return _0x41ae12['then'](function(_0x50e235){var _0x2aa9d2=_0x20d8a5;return _0x33a31a=_0x50e235,_0x245f1e[_0x2aa9d2('0x149f')](_0x2aa9d2('0xf2d'));})[_0x20d8a5('0xaa5')](function(_0x4534dd){var _0x444b5b=_0x20d8a5;if(_0x4534dd)for(var _0x1ac591=0x0,_0x205cc5;_0x1ac591<_0x4534dd[_0x444b5b('0x580')][_0x444b5b('0x2587')];_0x1ac591+=0x1){_0x205cc5=_0x51538b()[_0x444b5b('0xe9e')](_0x33a31a[_0x444b5b('0x580')],{'id':_0x4534dd[_0x444b5b('0x580')][_0x1ac591]['id']}),_0x205cc5&&_0x51538b()['merge'](_0x205cc5,_0x51538b()[_0x444b5b('0x104e')](_0x4534dd[_0x444b5b('0x580')][_0x1ac591],[_0x444b5b('0xd3d'),'total',_0x444b5b('0xf01'),'answered','unmanaged',_0x444b5b('0x1f60')]));}return _0x33a31a;});}],'userProfile':[_0x20ca7f('0x1d16'),_0x20ca7f('0x1dfd'),function _0x1304b6(_0x1ab634,_0x1b61e3){var _0x59247e=_0x20ca7f;return _0x1ab634[_0x59247e('0x149f')](_0x59247e('0x567'),{'fields':'id,name,crudPermissions','id':_0x1b61e3[_0x59247e('0xacc')]()[_0x59247e('0x2168')]});}],'userProfileSection':[_0x20ca7f('0x1d16'),_0x20ca7f('0x1dfd'),function _0x181043(_0x27773f,_0x3569f8){var _0xd602cc=_0x20ca7f;return _0x27773f['resolve']('userProfileSection@get',{'fields':_0xd602cc('0xe6a'),'userProfileId':_0x3569f8[_0xd602cc('0xacc')]()[_0xd602cc('0x2168')],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x20ca7f('0xaff')});}angular[_0x1a8446('0x1f8d')]('app.dashboards.custom',[])[_0x1a8446('0x1b14')](_0x1ebe5c)[_0x1a8446('0x780')](_0x1a8446('0x18de'),_0x514f21),_0x1ab7e5[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x1ab7e5(_0x35d362,_0xd248d){var _0x536b5a=_0x1a8446;_0x35d362[_0x536b5a('0xb46')](_0x536b5a('0x1fba'),{'abstract':!![],'url':_0x536b5a('0x55a')}),_0xd248d[_0x536b5a('0x1de5')](_0x536b5a('0x220f'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x1fba'),['ngCsv',_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),'ng-sortable',_0x1a8446('0x150f'),_0x1a8446('0x110'),_0x1a8446('0xd2d'),'mwFormBuilder',_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),'ngEmbed',_0x1a8446('0x14c'),_0x1a8446('0x2830'),_0x1a8446('0x1320'),'angular.filter',_0x1a8446('0xd98'),'app.dashboards.custom'])[_0x1a8446('0x1b14')](_0x1ab7e5);const _0x2b034c=_0x4fb511['p']+'src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.html/teamadd-[chunkhash].html',_0x3ca83a=_0x4fb511['p']+_0x1a8446('0x8c8');_0x102a9f[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document','$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x1717'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x102a9f(_0x1421e4,_0x59ee6d,_0x58187,_0x5ee19d,_0x27fd6c,_0xc262e0,_0x38128f,_0x5bba43,_0x439197,_0xbcce22,_0x2e0f61,_0x2041e9,_0x1d9900,_0x4000c4,_0x20ee18,_0x28f34d,_0x314fbc){var _0x270fc3=_0x1a8446,_0x32c4a5=this;_0x32c4a5[_0x270fc3('0x1202')]=_0x28f34d,_0x32c4a5['setting']=_0x314fbc,_0x32c4a5['currentUser']=_0x20ee18[_0x270fc3('0xacc')](),_0x32c4a5['agents']=_0x439197||{'count':0x0,'rows':[]},_0x32c4a5[_0x270fc3('0x1e97')]=_0xbcce22,_0x32c4a5[_0x270fc3('0x1a50')]=_0x2e0f61&&_0x2e0f61[_0x270fc3('0xd15')]==0x1?_0x2e0f61[_0x270fc3('0x580')][0x0]:null,_0x32c4a5[_0x270fc3('0xada')]=_0x20ee18['parseCrudPermissions'](_0x32c4a5[_0x270fc3('0x1a50')]?_0x32c4a5[_0x270fc3('0x1a50')][_0x270fc3('0xada')]:null),_0x32c4a5['table']=_0x270fc3('0x1717'),_0x32c4a5[_0x270fc3('0x164')]='',_0x32c4a5['listOrderAsc']=null,_0x32c4a5[_0x270fc3('0x2089')]=[],_0x32c4a5[_0x270fc3('0x582')]={'fields':_0x270fc3('0xb2c'),'role':_0x270fc3('0xeff'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x32c4a5[_0x270fc3('0x25c3')]=_0x51538b()[_0x270fc3('0x184a')]([{'option':_0x270fc3('0x173'),'value':'0'},{'option':_0x270fc3('0x20d5'),'value':'1'},{'option':_0x270fc3('0x782'),'value':'2'}],function(_0x1f4dbc){var _0x574a69=_0x270fc3;return _0x51538b()[_0x574a69('0x170d')](_0x1f4dbc[_0x574a69('0x12f4')],new RegExp('\x27','g'),'');}),_0x32c4a5[_0x270fc3('0x271c')]=_0x51538b()[_0x270fc3('0x184a')]([{'option':_0x270fc3('0x2723'),'value':_0x270fc3('0x2322')},{'option':_0x270fc3('0x2429'),'value':_0x270fc3('0xfb4')},{'option':'ws','value':_0x270fc3('0x127e'),'ngIf':_0x270fc3('0x512')},{'option':_0x270fc3('0x15f2'),'value':_0x270fc3('0x1bd'),'ngIf':_0x270fc3('0x512')},{'option':_0x270fc3('0x1bdc'),'value':_0x270fc3('0x1f77'),'ngIf':_0x270fc3('0x512')}],function(_0x2e1f98){var _0x4d2a84=_0x270fc3;return _0x51538b()[_0x4d2a84('0x170d')](_0x2e1f98[_0x4d2a84('0x12f4')],new RegExp('\x27','g'),'');}),_0x32c4a5[_0x270fc3('0x14de')]=_0x51538b()[_0x270fc3('0x184a')]([{'option':'force_rport','value':_0x270fc3('0xc')},{'option':_0x270fc3('0x1427'),'value':'\x27comedia\x27'},{'option':_0x270fc3('0x98d'),'value':_0x270fc3('0x14cf')},{'option':'no','value':_0x270fc3('0x539')},{'option':_0x270fc3('0x158d'),'value':_0x270fc3('0x1781')},{'option':'route','value':_0x270fc3('0xc64')}],function(_0x5f28a2){var _0x28c226=_0x270fc3;return _0x51538b()[_0x28c226('0x170d')](_0x5f28a2[_0x28c226('0x12f4')],new RegExp('\x27','g'),'');}),_0x32c4a5['arraytype']=_0x51538b()[_0x270fc3('0x184a')]([{'option':_0x270fc3('0x1cfe'),'value':_0x270fc3('0x2663')},{'option':_0x270fc3('0x21b9'),'value':_0x270fc3('0xbd8')},{'option':'Peer','value':_0x270fc3('0x1887')}],function(_0x18ddd6){var _0x1db276=_0x270fc3;return _0x51538b()[_0x1db276('0x170d')](_0x18ddd6['value'],new RegExp('\x27','g'),'');}),_0x32c4a5[_0x270fc3('0x140e')]=_0x51538b()[_0x270fc3('0x184a')]([{'option':_0x270fc3('0x1a1d'),'value':_0x270fc3('0x24f7')},{'option':_0x270fc3('0x129'),'value':_0x270fc3('0x1dd5')},{'option':_0x270fc3('0x2172'),'value':_0x270fc3('0x3cc')},{'option':'g722','value':'\x27g722\x27'},{'option':_0x270fc3('0x118e'),'value':'\x27g729\x27'},{'option':_0x270fc3('0xd1d'),'value':'\x27opus\x27'},{'option':'h264','value':_0x270fc3('0x92f')}],function(_0x454649){var _0x37d886=_0x270fc3;return _0x51538b()[_0x37d886('0x170d')](_0x454649[_0x37d886('0x12f4')],new RegExp('\x27','g'),'');}),_0x32c4a5[_0x270fc3('0xc65')]=_0x51538b()[_0x270fc3('0x184a')]([{'option':_0x270fc3('0x1b84'),'value':_0x270fc3('0x14cf')},{'option':'No','value':_0x270fc3('0x539')},{'option':_0x270fc3('0xc90'),'value':_0x270fc3('0x1dc8')}],function(_0x1213dd){var _0x329205=_0x270fc3;return _0x51538b()[_0x329205('0x170d')](_0x1213dd[_0x329205('0x12f4')],new RegExp('\x27','g'),'');}),_0x32c4a5[_0x270fc3('0x1eda')]=_0x51538b()[_0x270fc3('0x184a')]([{'option':'Inactive','value':'\x27\x27'},{'option':_0x270fc3('0x2715'),'value':_0x270fc3('0x460')},{'option':_0x270fc3('0x1674'),'value':_0x270fc3('0x1057')},{'option':_0x270fc3('0x2172'),'value':_0x270fc3('0x3cc')}],function(_0x582d3a){var _0x8e22d9=_0x270fc3;return _0x51538b()[_0x8e22d9('0x170d')](_0x582d3a[_0x8e22d9('0x12f4')],new RegExp('\x27','g'),'');}),_0x32c4a5[_0x270fc3('0x1927')]=_0x44e04d,_0x32c4a5[_0x270fc3('0x158f')]=_0x558ab4,_0x32c4a5[_0x270fc3('0x271')]=_0x20117c,_0x32c4a5[_0x270fc3('0xe10')]=_0xc4fce6,_0x32c4a5[_0x270fc3('0x1483')]=_0x5ac746,_0x32c4a5[_0x270fc3('0x2600')]=_0x20cddb,_0x32c4a5[_0x270fc3('0x244e')]=_0x2be8a3,_0x32c4a5[_0x270fc3('0x15aa')]=_0x95b77c,_0x32c4a5[_0x270fc3('0x1298')]=_0x2cda36,_0x32c4a5['deselectAgents']=_0x4f6880,_0x32c4a5[_0x270fc3('0x234e')]=_0x38faec;function _0x44e04d(_0x5f03c5){var _0xde4837=_0x270fc3;_0x58187['go'](_0xde4837('0x228d'),{'id':_0x5f03c5['id'],'agent':_0x5f03c5,'crudPermissions':_0x32c4a5[_0xde4837('0xada')]});}function _0x558ab4(_0x1df57c,_0x5e0a8b){var _0x507aa5=_0x270fc3;_0x27fd6c[_0x507aa5('0x1e6d')]({'controller':_0x507aa5('0x20b8'),'controllerAs':'vm','templateUrl':_0x2b034c,'parent':angular[_0x507aa5('0x1aa8')](_0xc262e0[_0x507aa5('0x54c')]),'targetEvent':_0x5e0a8b,'clickOutsideToClose':!![],'locals':{'agent':_0x1df57c,'agents':_0x32c4a5[_0x507aa5('0x1717')]?_0x32c4a5[_0x507aa5('0x1717')]['rows']:[],'crudPermissions':_0x32c4a5[_0x507aa5('0xada')]}});}function _0x20117c(_0x21f406,_0x1391a8){var _0x1783b4=_0x270fc3,_0x13a897=_0x27fd6c['confirm']()[_0x1783b4('0x110a')](_0x1783b4('0x88d')+_0x51538b()[_0x1783b4('0x196a')](_0x1783b4('0xeff'))+'?')[_0x1783b4('0x102e')](_0x1783b4('0x389')+(_0x21f406[_0x1783b4('0x25d6')]||_0x1783b4('0xeff'))+''+_0x1783b4('0x210d'))[_0x1783b4('0x5b5')]('delete\x20agent')[_0x1783b4('0x116d')](_0x1391a8)['ok']('OK')[_0x1783b4('0x2030')]('CANCEL');_0x27fd6c['show'](_0x13a897)[_0x1783b4('0xaa5')](function(){_0x2be8a3(_0x21f406);},function(){var _0x235a21=_0x1783b4;console['log'](_0x235a21('0x2410'));});}var _0x230560=!![],_0x1c41b1=0x1;_0x1421e4['$watch'](_0x270fc3('0x1788'),function(_0x11d033,_0x507a6d){var _0x29c55a=_0x270fc3;_0x230560?_0x38128f(function(){_0x230560=![];}):(!_0x507a6d&&(_0x1c41b1=_0x32c4a5[_0x29c55a('0x582')]['page']),_0x11d033!==_0x507a6d&&(_0x32c4a5[_0x29c55a('0x582')][_0x29c55a('0x41')]=0x1),!_0x11d033&&(_0x32c4a5[_0x29c55a('0x582')]['page']=_0x1c41b1),_0x32c4a5[_0x29c55a('0x1483')]());});function _0xc4fce6(_0x545d11){var _0x30535a=_0x270fc3;_0x32c4a5[_0x30535a('0x1717')]=_0x545d11||{'count':0x0,'rows':[]};}function _0x5ac746(){var _0xeefb65=_0x270fc3;_0x32c4a5[_0xeefb65('0x582')][_0xeefb65('0x8b1')]=(_0x32c4a5[_0xeefb65('0x582')][_0xeefb65('0x41')]-0x1)*_0x32c4a5[_0xeefb65('0x582')]['limit'],_0x20ee18[_0xeefb65('0x26e8')](_0xeefb65('0x178b'))?_0x32c4a5[_0xeefb65('0x159a')]=_0x2041e9[_0xeefb65('0x272b')][_0xeefb65('0x2122')](_0x32c4a5[_0xeefb65('0x582')],_0xc4fce6)[_0xeefb65('0x1dc2')]:(_0x32c4a5['query']['id']=_0x32c4a5[_0xeefb65('0x1e97')]['id'],_0x32c4a5['query'][_0xeefb65('0x224d')]='Agents',_0x32c4a5[_0xeefb65('0x159a')]=_0x2041e9[_0xeefb65('0x1e97')][_0xeefb65('0x1cf1')](_0x32c4a5[_0xeefb65('0x582')],_0xc4fce6)[_0xeefb65('0x1dc2')]);}function _0x20cddb(_0x1fca89,_0x388ae6){var _0x2486d0=_0x270fc3;_0x27fd6c[_0x2486d0('0x1e6d')]({'controller':_0x2486d0('0xd46'),'controllerAs':'vm','templateUrl':_0x3ca83a,'parent':angular[_0x2486d0('0x1aa8')](_0xc262e0[_0x2486d0('0x54c')]),'targetEvent':_0x1fca89,'clickOutsideToClose':!![],'locals':{'agent':_0x388ae6,'agents':_0x32c4a5[_0x2486d0('0x1717')][_0x2486d0('0x580')],'license':_0x32c4a5[_0x2486d0('0x1202')],'setting':_0x32c4a5[_0x2486d0('0x143f')],'crudPermissions':_0x32c4a5[_0x2486d0('0xada')]}});}function _0x2be8a3(_0x29a043){var _0x5efbaa=_0x270fc3;_0x2041e9[_0x5efbaa('0x272b')][_0x5efbaa('0x926')]({'id':_0x29a043['id']})[_0x5efbaa('0x1dc2')]['then'](function(){var _0x1f9f40=_0x5efbaa;_0x51538b()[_0x1f9f40('0xf6d')](_0x32c4a5['agents'][_0x1f9f40('0x580')],{'id':_0x29a043['id']}),_0x32c4a5['agents'][_0x1f9f40('0xd15')]-=0x1,!_0x32c4a5[_0x1f9f40('0x1717')][_0x1f9f40('0x580')][_0x1f9f40('0x2587')]&&_0x32c4a5[_0x1f9f40('0x1483')](),_0x4000c4[_0x1f9f40('0xe10')]({'title':_0x51538b()['startCase'](_0x1f9f40('0x521'))+'\x20deleted!','msg':_0x29a043[_0x1f9f40('0x25d6')]?_0x29a043[_0x1f9f40('0x25d6')]+_0x1f9f40('0xcd9'):''});})['catch'](function(_0x2f7aa0){var _0x4a52c3=_0x5efbaa;if(_0x2f7aa0[_0x4a52c3('0x10fd')]&&_0x2f7aa0[_0x4a52c3('0x10fd')]['errors']&&_0x2f7aa0[_0x4a52c3('0x10fd')][_0x4a52c3('0x4c6')][_0x4a52c3('0x2587')]){_0x32c4a5[_0x4a52c3('0x4c6')]=_0x2f7aa0[_0x4a52c3('0x10fd')][_0x4a52c3('0x4c6')]||[{'message':_0x2f7aa0['toString'](),'type':_0x4a52c3('0xb68')}];for(var _0x10c329=0x0;_0x10c329<_0x2f7aa0[_0x4a52c3('0x10fd')][_0x4a52c3('0x4c6')][_0x4a52c3('0x2587')];_0x10c329++){_0x4000c4[_0x4a52c3('0x187f')]({'title':_0x2f7aa0[_0x4a52c3('0x10fd')][_0x4a52c3('0x4c6')][_0x10c329]['type'],'msg':_0x2f7aa0[_0x4a52c3('0x10fd')][_0x4a52c3('0x4c6')][_0x10c329]['message']});}}else _0x4000c4[_0x4a52c3('0x187f')]({'title':_0x2f7aa0[_0x4a52c3('0x2fa')]?_0x4a52c3('0x16c2')+_0x2f7aa0[_0x4a52c3('0x2fa')]+_0x4a52c3('0x169e')+_0x2f7aa0[_0x4a52c3('0x24df')]:_0x4a52c3('0xb68'),'msg':_0x2f7aa0[_0x4a52c3('0x10fd')]?JSON['stringify'](_0x2f7aa0[_0x4a52c3('0x10fd')][_0x4a52c3('0x1402')]):_0x2f7aa0[_0x4a52c3('0x1402')]||_0x2f7aa0[_0x4a52c3('0x684')]()});});}function _0x95b77c(){var _0x131008=_0x270fc3,_0x14fbf1=angular['copy'](_0x32c4a5[_0x131008('0x2089')]);return _0x32c4a5[_0x131008('0x2089')]=[],_0x14fbf1;}function _0x2cda36(_0x14da64){var _0x407250=_0x270fc3,_0x5e5452=_0x27fd6c[_0x407250('0x281e')]()[_0x407250('0x110a')](_0x407250('0x12f7'))['htmlContent'](_0x407250('0x389')+_0x32c4a5['selectedAgents'][_0x407250('0x2587')]+_0x407250('0x1443')+_0x407250('0x210d'))[_0x407250('0x5b5')](_0x407250('0x77b'))[_0x407250('0x116d')](_0x14da64)['ok']('OK')[_0x407250('0x2030')](_0x407250('0x2410'));_0x27fd6c[_0x407250('0x1e6d')](_0x5e5452)['then'](function(){var _0x2aab77=_0x407250;_0x32c4a5[_0x2aab77('0x2089')][_0x2aab77('0x15b5')](function(_0x2018ee){_0x2be8a3(_0x2018ee);}),_0x32c4a5[_0x2aab77('0x2089')]=[];});}function _0x4f6880(){var _0xfbd0f6=_0x270fc3;_0x32c4a5[_0xfbd0f6('0x2089')]=[];}function _0x38faec(){var _0x1c5e3c=_0x270fc3;_0x32c4a5[_0x1c5e3c('0x2089')]=_0x32c4a5['agents']['rows'];}}const _0x1e1d7d=_0x102a9f;_0x2f38cd['$inject']=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'agents','agent','api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x2f38cd(_0x479553,_0x284553,_0x41a10c,_0x288400,_0x2e1a55,_0x319337,_0x3c8ea1,_0x35f2f1,_0x16a27d,_0x111ca8,_0x290e73,_0x3553ac,_0x320ea3,_0x3274ab){var _0x2b2ecf=_0x1a8446,_0x51f6fa=this;_0x51f6fa[_0x2b2ecf('0x7fc')]=_0x290e73[_0x2b2ecf('0xacc')](),_0x51f6fa[_0x2b2ecf('0x4c6')]=[],_0x51f6fa[_0x2b2ecf('0x143f')]=_0x320ea3,_0x51f6fa[_0x2b2ecf('0x1202')]=_0x3553ac,_0x51f6fa['crudPermissions']=_0x3274ab,_0x51f6fa['hasModulePermissions']={},_0x51f6fa['passwordPattern']=_0x51f6fa[_0x2b2ecf('0x143f')]&&_0x51f6fa[_0x2b2ecf('0x143f')][_0x2b2ecf('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x51f6fa['title']=_0x2b2ecf('0x215c'),_0x51f6fa[_0x2b2ecf('0xeff')]=angular[_0x2b2ecf('0x20a')](_0x16a27d),_0x51f6fa[_0x2b2ecf('0x1717')]=_0x35f2f1,_0x51f6fa[_0x2b2ecf('0x7a6')]=![];!_0x51f6fa[_0x2b2ecf('0xeff')]&&(_0x51f6fa[_0x2b2ecf('0xeff')]={'role':_0x2b2ecf('0xeff'),'showWebBar':'0','autointernal':!![],'type':_0x2b2ecf('0x120a'),'context':_0x2b2ecf('0xde3'),'phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x51f6fa['title']=_0x2b2ecf('0xc5d'),_0x51f6fa[_0x2b2ecf('0x7a6')]=!![]);_0x51f6fa[_0x2b2ecf('0xe7e')]=_0x3ec1fd,_0x51f6fa[_0x2b2ecf('0x1cd0')]=_0x1234a1,_0x51f6fa[_0x2b2ecf('0x244e')]=_0x354efe,_0x51f6fa[_0x2b2ecf('0xc09')]=_0x5aa6fc,_0x51f6fa[_0x2b2ecf('0x2023')]=_0x4d74b8;function _0x3ec1fd(){var _0x3016f4=_0x2b2ecf;_0x51f6fa[_0x3016f4('0x4c6')]=[],_0x111ca8['user'][_0x3016f4('0x242b')](_0x51f6fa[_0x3016f4('0xeff')])[_0x3016f4('0x1dc2')][_0x3016f4('0xaa5')](function(_0x9ddba9){var _0x59cacf=_0x3016f4;_0x51f6fa['agents'][_0x59cacf('0x6ee')](_0x9ddba9[_0x59cacf('0x256a')]()),_0x3c8ea1['success']({'title':_0x59cacf('0x1042'),'msg':_0x51f6fa[_0x59cacf('0xeff')][_0x59cacf('0x25d6')]?_0x51f6fa[_0x59cacf('0xeff')][_0x59cacf('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x4d74b8(_0x9ddba9);})[_0x3016f4('0x253d')](function(_0x47e2a8){var _0x5a0efd=_0x3016f4;if(_0x47e2a8[_0x5a0efd('0x10fd')]&&_0x47e2a8[_0x5a0efd('0x10fd')]['errors']&&_0x47e2a8['data'][_0x5a0efd('0x4c6')][_0x5a0efd('0x2587')]){_0x51f6fa[_0x5a0efd('0x4c6')]=_0x47e2a8[_0x5a0efd('0x10fd')]['errors']||[{'message':_0x47e2a8[_0x5a0efd('0x684')](),'type':'api.user.save'}];for(var _0x6b1ebf=0x0;_0x6b1ebf<_0x47e2a8[_0x5a0efd('0x10fd')][_0x5a0efd('0x4c6')]['length'];_0x6b1ebf+=0x1){_0x3c8ea1[_0x5a0efd('0x187f')]({'title':_0x47e2a8[_0x5a0efd('0x10fd')]['errors'][_0x6b1ebf]['type'],'msg':_0x47e2a8[_0x5a0efd('0x10fd')][_0x5a0efd('0x4c6')][_0x6b1ebf][_0x5a0efd('0x1402')]});}}else _0x3c8ea1[_0x5a0efd('0x187f')]({'title':_0x47e2a8[_0x5a0efd('0x2fa')]?_0x5a0efd('0x16c2')+_0x47e2a8[_0x5a0efd('0x2fa')]+_0x5a0efd('0x169e')+_0x47e2a8[_0x5a0efd('0x24df')]:_0x5a0efd('0x2228'),'msg':_0x47e2a8[_0x5a0efd('0x10fd')]?JSON[_0x5a0efd('0xa48')](_0x47e2a8[_0x5a0efd('0x10fd')][_0x5a0efd('0x1402')]):_0x47e2a8[_0x5a0efd('0x684')]()});});}function _0x1234a1(){var _0x582f45=_0x2b2ecf;_0x51f6fa[_0x582f45('0x4c6')]=[],_0x111ca8[_0x582f45('0x272b')][_0x582f45('0x264e')]({'id':_0x51f6fa[_0x582f45('0xeff')]['id']},_0x51f6fa[_0x582f45('0xeff')])[_0x582f45('0x1dc2')][_0x582f45('0xaa5')](function(_0x4387a7){var _0x3677f3=_0x582f45,_0x5e932f=_0x51538b()['find'](_0x51f6fa[_0x3677f3('0x1717')],{'id':_0x4387a7['id']});_0x5e932f&&_0x51538b()[_0x3677f3('0x283c')](_0x5e932f,_0x51538b()['pick'](_0x4387a7[_0x3677f3('0x256a')](),_0x51538b()[_0x3677f3('0x9f2')](_0x5e932f))),_0x3c8ea1[_0x3677f3('0xe10')]({'title':'Agent\x20properly\x20saved!','msg':_0x51f6fa[_0x3677f3('0xeff')]['name']?_0x51f6fa[_0x3677f3('0xeff')][_0x3677f3('0x25d6')]+_0x3677f3('0x20bf'):''}),_0x4d74b8(_0x4387a7);})['catch'](function(_0x4a94c5){var _0x5b6a96=_0x582f45;if(_0x4a94c5[_0x5b6a96('0x10fd')]&&_0x4a94c5[_0x5b6a96('0x10fd')][_0x5b6a96('0x4c6')]&&_0x4a94c5[_0x5b6a96('0x10fd')]['errors']['length']){_0x51f6fa[_0x5b6a96('0x4c6')]=_0x4a94c5[_0x5b6a96('0x10fd')][_0x5b6a96('0x4c6')]||[{'message':_0x4a94c5[_0x5b6a96('0x684')](),'type':_0x5b6a96('0x11e6')}];for(var _0x3059e7=0x0;_0x3059e7<_0x4a94c5[_0x5b6a96('0x10fd')][_0x5b6a96('0x4c6')][_0x5b6a96('0x2587')];_0x3059e7++){_0x3c8ea1['error']({'title':_0x4a94c5[_0x5b6a96('0x10fd')][_0x5b6a96('0x4c6')][_0x3059e7]['type'],'msg':_0x4a94c5[_0x5b6a96('0x10fd')][_0x5b6a96('0x4c6')][_0x3059e7][_0x5b6a96('0x1402')]});}}else _0x3c8ea1[_0x5b6a96('0x187f')]({'title':_0x4a94c5[_0x5b6a96('0x2fa')]?_0x5b6a96('0x16c2')+_0x4a94c5[_0x5b6a96('0x2fa')]+'\x20-\x20'+_0x4a94c5[_0x5b6a96('0x24df')]:_0x5b6a96('0x11e6'),'msg':_0x4a94c5[_0x5b6a96('0x10fd')]?JSON[_0x5b6a96('0xa48')](_0x4a94c5['data']['message']):_0x4a94c5[_0x5b6a96('0x684')]()});});}function _0x354efe(_0x398064){var _0x7c00da=_0x2b2ecf;_0x51f6fa[_0x7c00da('0x4c6')]=[];var _0x41f6f4=_0x288400[_0x7c00da('0x281e')]()[_0x7c00da('0x110a')](_0x7c00da('0x12a3'))['content'](_0x7c00da('0x204f'))['ariaLabel']('Delete\x20Agent')['ok'](_0x7c00da('0x1e76'))[_0x7c00da('0x2030')]('Cancel')['targetEvent'](_0x398064);_0x288400[_0x7c00da('0x1e6d')](_0x41f6f4)[_0x7c00da('0xaa5')](function(){var _0x20398f=_0x7c00da;_0x111ca8[_0x20398f('0x272b')][_0x20398f('0x926')]({'id':_0x51f6fa[_0x20398f('0xeff')]['id']})[_0x20398f('0x1dc2')]['then'](function(){var _0x2a8973=_0x20398f;_0x51538b()[_0x2a8973('0xf6d')](_0x51f6fa['agents'],{'id':_0x51f6fa[_0x2a8973('0xeff')]['id']}),_0x3c8ea1[_0x2a8973('0xe10')]({'title':_0x2a8973('0x1c87'),'msg':(_0x51f6fa[_0x2a8973('0xeff')]['name']||'agent')+'\x20has\x20been\x20deleted!'}),_0x4d74b8(_0x51f6fa[_0x2a8973('0xeff')]);})[_0x20398f('0x253d')](function(_0x21cca5){var _0x538f1f=_0x20398f;if(_0x21cca5[_0x538f1f('0x10fd')]&&_0x21cca5[_0x538f1f('0x10fd')]['errors']&&_0x21cca5['data'][_0x538f1f('0x4c6')][_0x538f1f('0x2587')]){_0x51f6fa[_0x538f1f('0x4c6')]=_0x21cca5['data'][_0x538f1f('0x4c6')]||[{'message':_0x21cca5[_0x538f1f('0x684')](),'type':_0x538f1f('0x27c6')}];for(var _0x88c51=0x0;_0x88c51<_0x21cca5[_0x538f1f('0x10fd')][_0x538f1f('0x4c6')][_0x538f1f('0x2587')];_0x88c51++){_0x3c8ea1[_0x538f1f('0x187f')]({'title':_0x21cca5[_0x538f1f('0x10fd')][_0x538f1f('0x4c6')][_0x88c51][_0x538f1f('0x6c8')],'msg':_0x21cca5[_0x538f1f('0x10fd')][_0x538f1f('0x4c6')][_0x88c51][_0x538f1f('0x1402')]});}}else _0x3c8ea1[_0x538f1f('0x187f')]({'title':_0x21cca5['status']?_0x538f1f('0x16c2')+_0x21cca5[_0x538f1f('0x2fa')]+_0x538f1f('0x169e')+_0x21cca5['statusText']:_0x538f1f('0x27c6'),'msg':_0x21cca5[_0x538f1f('0x10fd')]?JSON[_0x538f1f('0xa48')](_0x21cca5[_0x538f1f('0x10fd')][_0x538f1f('0x1402')]):_0x21cca5[_0x538f1f('0x1402')]||_0x21cca5[_0x538f1f('0x684')]()});});},function(){});}function _0x5aa6fc(_0x4f65a8){return _0x4f65a8===null?undefined:new Date(_0x4f65a8);}function _0x4d74b8(_0x5ab0fb){var _0x28cee5=_0x2b2ecf;_0x288400[_0x28cee5('0x1120')](_0x5ab0fb);}}const _0x5a952b=_0x2f38cd;_0x32fa4e[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x2a4')];function _0x32fa4e(_0x430e29,_0x5a2c70){var _0x24b88f=_0x1a8446,_0x1be47b=this,_0x102616=0x8,_0x172ee8=_0x102616*0x400*0x400;_0x1be47b['agent']={},_0x1be47b[_0x24b88f('0xada')],_0x1be47b[_0x24b88f('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x172ee8,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1be47b['ngFlow']={'flow':{}},_0x1be47b[_0x24b88f('0x258f')]=![],_0x1be47b[_0x24b88f('0x20d1')]=_0x2a804f,_0x1be47b[_0x24b88f('0x158b')]=_0x4a4b7f,_0x1be47b[_0x24b88f('0x1313')]=_0x181220,_0x1be47b['init']=_0x4b45c4;function _0x4b45c4(_0x4085ed,_0x2c9e11){var _0x3f9a2d=_0x24b88f;_0x1be47b[_0x3f9a2d('0xeff')]=angular['copy'](_0x4085ed),_0x1be47b['crudPermissions']=typeof _0x2c9e11!=='undefined'?_0x2c9e11:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1be47b[_0x3f9a2d('0x1c88')][_0x3f9a2d('0xe2e')]=_0x3f9a2d('0x111c')+_0x1be47b[_0x3f9a2d('0xeff')]['id']+'/avatar',_0x1be47b[_0x3f9a2d('0xeff')][_0x3f9a2d('0x1b2d')]=[];}function _0x2a804f(_0x25e1df){var _0x17c358=_0x24b88f,_0x4ae4a2=['png','jpg'];if(!_0x51538b()[_0x17c358('0x13d6')](_0x4ae4a2,_0x25e1df[_0x17c358('0x177a')]()))return _0x5a2c70[_0x17c358('0x187f')]({'title':_0x17c358('0x7bf')+_0x25e1df['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x4ae4a2['join']()}),![];if(_0x25e1df['size']>_0x172ee8)return _0x5a2c70[_0x17c358('0x187f')]({'title':_0x17c358('0xfad'),'msg':_0x17c358('0x15dd')+_0x102616+'MB'}),![];var _0x23095d={'id':_0x25e1df['uniqueIdentifier'],'file':_0x25e1df,'type':'uploading'};return _0x1be47b['agent'][_0x17c358('0x1b2d')][_0x17c358('0x6ee')](_0x23095d),!![];}function _0x4a4b7f(){var _0x2de2ef=_0x24b88f;_0x1be47b[_0x2de2ef('0x27cd')]['flow'][_0x2de2ef('0x177d')]['headers']={'X-Requested-With':_0x2de2ef('0x1888'),'Authorization':_0x2de2ef('0x2070')+_0x430e29[_0x2de2ef('0x2122')]('motion.token')},_0x1be47b['ngFlow'][_0x2de2ef('0xcba')][_0x2de2ef('0x158b')]();}function _0x181220(_0x4ce061){var _0x3c6022=_0x24b88f;angular['forEach'](_0x1be47b[_0x3c6022('0xeff')][_0x3c6022('0x1b2d')],function(_0x2b4d08){var _0x3f64d8=_0x3c6022;if(_0x2b4d08['id']===_0x4ce061[_0x3f64d8('0xd3c')]){var _0x7a8fab=new FileReader();_0x7a8fab[_0x3f64d8('0xc21')](_0x2b4d08[_0x3f64d8('0x1945')][_0x3f64d8('0x1945')]),_0x7a8fab[_0x3f64d8('0x224e')]=function(_0x258fea){var _0x4f2cc8=_0x3f64d8;_0x2b4d08['url']=_0x258fea[_0x4f2cc8('0xe2e')][_0x4f2cc8('0xcd6')];},_0x2b4d08[_0x3f64d8('0x6c8')]=_0x3f64d8('0x1471');}});}}const _0x30a20f=_0x32fa4e;_0x2b5ec6['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0xeff'),_0x1a8446('0x143f'),_0x1a8446('0x1dfd')];function _0x2b5ec6(_0xd74806,_0x1b3b11,_0x169ed3,_0x2057a0,_0x1f5105,_0x42b64f,_0x140ed7){var _0x56fada=_0x1a8446,_0x51b484=this;_0x51b484[_0x56fada('0x7fc')]=_0x140ed7['getCurrentUser'](),_0x51b484[_0x56fada('0x4c6')]=[],_0x51b484[_0x56fada('0x143f')]=_0x42b64f,_0x51b484[_0x56fada('0x1d53')]=_0x51b484['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x51b484[_0x56fada('0xeff')]=_0x1f5105,_0x51b484[_0x56fada('0x418')]='',_0x51b484[_0x56fada('0x2050')]='',_0x51b484['savePassword']=_0x343b5c,_0x51b484[_0x56fada('0x2023')]=_0x27994c,_0xd74806[_0x56fada('0x1ccf')](_0x56fada('0x358'),function(_0x1a69d5){var _0x173db7=_0x56fada;!_0x51538b()[_0x173db7('0x89a')](_0x51b484['oldPassword'])&&(_0x1a69d5===_0x51b484[_0x173db7('0x2050')]?_0xd74806[_0x173db7('0x276c')][_0x173db7('0x418')]['$setValidity'](_0x173db7('0xcdf'),![]):_0xd74806['agentForm'][_0x173db7('0x418')][_0x173db7('0x18c9')]('oldPasswordMatch',!![]));});function _0x343b5c(){var _0x24f798=_0x56fada;_0x51b484[_0x24f798('0x4c6')]=[];var _0x435294={'id':_0x51b484[_0x24f798('0xeff')]['id'],'newPassword':_0x51b484[_0x24f798('0x418')]};_0x51b484['currentUser']['id']==_0x51b484['agent']['id']&&(_0x435294[_0x24f798('0x2050')]=_0x51b484[_0x24f798('0x2050')]),_0x2057a0[_0x24f798('0x272b')][_0x24f798('0x1327')](_0x435294)[_0x24f798('0x1dc2')][_0x24f798('0xaa5')](function(){var _0x4d276d=_0x24f798;_0x169ed3[_0x4d276d('0xe10')]({'title':'Agent\x20password\x20properly\x20updated!'}),_0x27994c();})['catch'](function(_0x29f60e){var _0x283351=_0x24f798;_0x169ed3[_0x283351('0x187f')]({'title':_0x29f60e[_0x283351('0x2fa')]?_0x283351('0x16c2')+_0x29f60e[_0x283351('0x2fa')]+_0x283351('0x169e')+_0x29f60e[_0x283351('0x24df')]:'api.agent.save','msg':_0x29f60e['data']?JSON[_0x283351('0xa48')](_0x29f60e[_0x283351('0x10fd')]['message']):_0x29f60e[_0x283351('0x684')]()}),_0x51b484[_0x283351('0x4c6')]=_0x29f60e[_0x283351('0x10fd')][_0x283351('0x4c6')]||[{'message':_0x29f60e[_0x283351('0x684')](),'type':'api.agent.changePassword'}];});}function _0x27994c(){var _0x26b810=_0x56fada;_0x1b3b11[_0x26b810('0x1120')]();}}const _0x220566=_0x2b5ec6;_0x5ae2c2[_0x1a8446('0x1e33')]=[_0x1a8446('0x39b'),'$mdDialog','api',_0x1a8446('0x1b7b'),_0x1a8446('0x2a4')];function _0x5ae2c2(_0x595bc3,_0x1f1052,_0x51b8c8,_0x2c38fc,_0xfe9b88){var _0x182922=_0x1a8446,_0xe89598=this;_0xe89598[_0x182922('0xeff')]={},_0xe89598[_0x182922('0x146a')]=_0x2c38fc[_0x182922('0x236')](),_0xe89598[_0x182922('0xada')],_0xe89598[_0x182922('0x2e')]=_0x3854f3,_0xe89598[_0x182922('0xc24')]=_0x5dd803;function _0x3854f3(_0x467607,_0x302b76){var _0x36c523=_0x182922;_0xe89598[_0x36c523('0xeff')]=_0x467607,_0xe89598[_0x36c523('0xada')]=typeof _0x302b76!==_0x36c523('0x1574')?_0x302b76:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0x5dd803(_0x4d77d6,_0x4ca6cb){var _0x2f8aac=_0x182922,_0x3248d3=_0x4ca6cb||_0x4d77d6;if(_0x3248d3[_0x2f8aac('0xbd3')]){if(_0x4ca6cb)_0x4ca6cb['enabled']=!![],_0xe89598[_0x2f8aac('0xeff')]['permissions']['push'](_0x4ca6cb['id']);else for(var _0x296be2=0x0;_0x296be2<_0x4d77d6[_0x2f8aac('0x12ad')][_0x2f8aac('0x2587')];_0x296be2++){_0x4d77d6['children'][_0x296be2][_0x2f8aac('0xbd3')]=!![],_0xe89598[_0x2f8aac('0xeff')][_0x2f8aac('0x193d')]['push'](_0x4d77d6['children'][_0x296be2]['id']);}_0x4d77d6[_0x2f8aac('0xbd3')]=!![],_0xe89598[_0x2f8aac('0xeff')][_0x2f8aac('0x193d')][_0x2f8aac('0x1599')](_0x4d77d6['id']);}else{if(_0x4ca6cb)_0x4ca6cb[_0x2f8aac('0xbd3')]=![],_0x51538b()[_0x2f8aac('0xf6d')](_0xe89598[_0x2f8aac('0xeff')][_0x2f8aac('0x193d')],function(_0x3215d8){return _0x4ca6cb['id']===_0x3215d8;}),_0x51538b()[_0x2f8aac('0xdb7')](_0x4d77d6[_0x2f8aac('0x12ad')],{'enabled':![]})[_0x2f8aac('0x2587')]===_0x4d77d6['children'][_0x2f8aac('0x2587')]&&(_0x4d77d6[_0x2f8aac('0xbd3')]=![],_0x51538b()[_0x2f8aac('0xf6d')](_0xe89598[_0x2f8aac('0xeff')][_0x2f8aac('0x193d')],function(_0x460ce3){return _0x4d77d6['id']===_0x460ce3;}));else{_0x4d77d6[_0x2f8aac('0xbd3')]=![],_0x51538b()[_0x2f8aac('0xf6d')](_0xe89598['agent'][_0x2f8aac('0x193d')],function(_0x1603ff){return _0x4d77d6['id']===_0x1603ff;});var _0x3e7a2f=function _0x2ab3f9(_0x202733){var _0x229e7e=_0x2f8aac;_0x4d77d6[_0x229e7e('0x12ad')][_0x202733][_0x229e7e('0xbd3')]=![],_0x51538b()[_0x229e7e('0xf6d')](_0xe89598['agent'][_0x229e7e('0x193d')],function(_0x2c8ddd){var _0x353dc6=_0x229e7e;return _0x4d77d6[_0x353dc6('0x12ad')][_0x202733]['id']===_0x2c8ddd;});};for(var _0x1a53aa=0x0;_0x1a53aa<_0x4d77d6[_0x2f8aac('0x12ad')]['length'];_0x1a53aa++){_0x3e7a2f(_0x1a53aa);}}}return _0x51b8c8['user'][_0x2f8aac('0x264e')]({'id':_0xe89598[_0x2f8aac('0xeff')]['id'],'permissions':_0x51538b()['uniq'](_0xe89598['agent']['permissions'])})[_0x2f8aac('0x1dc2')][_0x2f8aac('0xaa5')](function(){var _0x3d66c1=_0x2f8aac;_0xfe9b88['success']({'title':_0x3d66c1('0x444'),'msg':_0xe89598[_0x3d66c1('0xeff')][_0x3d66c1('0x25d6')]?_0xe89598[_0x3d66c1('0xeff')][_0x3d66c1('0x25d6')]+_0x3d66c1('0x1734'):''});})['catch'](function(_0x435d2f){var _0x16d3bc=_0x2f8aac;console[_0x16d3bc('0x187f')](_0x435d2f);});}}const _0x420b84=_0x5ae2c2;_0x2d8bed['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'api','agent',_0x1a8446('0x119e'),_0x1a8446('0x1108'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x2d8bed(_0x389d1c,_0x1826c0,_0x4b0806,_0x90f59c,_0x2795fd,_0x5c1483,_0x29a4ea,_0x163bc5,_0x52f68c,_0x224c0f){var _0x25f8e2=_0x1a8446,_0x4c2724=this;_0x4c2724[_0x25f8e2('0x7fc')]=_0x52f68c[_0x25f8e2('0xacc')](),_0x4c2724['agent']=_0x2795fd,_0x4c2724[_0x25f8e2('0xada')]=_0x224c0f,_0x4c2724[_0x25f8e2('0x2234')]=0x0,_0x4c2724[_0x25f8e2('0x119e')]=_0x5c1483,_0x4c2724['direction']=_0x29a4ea,_0x4c2724[_0x25f8e2('0x553')]=_0x4c2724[_0x25f8e2('0x119e')]+_0x25f8e2('0x145c'),_0x4c2724[_0x25f8e2('0x110a')]=_0x163bc5[_0x25f8e2('0x213f')](_0x25f8e2('0xa8e')+_0x4c2724['channel']['toUpperCase']()+'_'+_0x4c2724[_0x25f8e2('0x1108')][_0x25f8e2('0x1d08')]()),_0x4c2724[_0x25f8e2('0x1a30')]=[],_0x4c2724[_0x25f8e2('0x11b9')]=[],_0x4c2724[_0x25f8e2('0xbf7')]=[],_0x4c2724[_0x25f8e2('0x215b')]=[],_0x4c2724['startingSelectedItems']=[],_0x4c2724[_0x25f8e2('0xc54')]=![],_0x4c2724['dualMultiselectOptions']={'readOnly':!_0x4c2724[_0x25f8e2('0xada')]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x25f8e2('0x25d6'),'line1':'name','line2':_0x25f8e2('0x6c8'),'line3':_0x4c2724[_0x25f8e2('0x119e')]==='voice'?_0x25f8e2('0x2234'):'','labelAll':_0x163bc5[_0x25f8e2('0x213f')]('STAFF.ALL_QUEUES_'+_0x4c2724[_0x25f8e2('0x119e')][_0x25f8e2('0x1d08')]()+'_'+_0x4c2724[_0x25f8e2('0x1108')][_0x25f8e2('0x1d08')]()),'labelSelected':_0x163bc5[_0x25f8e2('0x213f')](_0x25f8e2('0x4a4')+_0x4c2724[_0x25f8e2('0x119e')][_0x25f8e2('0x1d08')]()+'_'+_0x4c2724[_0x25f8e2('0x1108')][_0x25f8e2('0x1d08')]()),'transferCallback':function _0x114cb8(_0x4a44bf,_0x16bd7c){var _0x4eb477=_0x25f8e2;_0x16bd7c?_0x4a44bf[_0x4eb477('0x15b5')](function(_0x404643){_0x404643['penalty']=undefined;}):_0x4a44bf[_0x4eb477('0x15b5')](function(_0x1fd228){var _0x10b395=_0x4eb477;_0x1fd228[_0x10b395('0x2234')]=_0x10b395('0x17b0')+_0x4c2724[_0x10b395('0x2234')];});var _0x28e4cd=_0x51538b()[_0x4eb477('0x1d8a')](_0x4c2724[_0x4eb477('0x214a')],_0x4c2724['selectedItems'],function(_0x185ea8,_0x286677){var _0x3ed861=_0x4eb477;return _0x185ea8['id']===_0x286677['id']&&_0x185ea8[_0x3ed861('0x2234')]===_0x286677[_0x3ed861('0x2234')];});_0x4c2724[_0x4eb477('0xc54')]=_0x51538b()[_0x4eb477('0x116b')](_0x28e4cd)?![]:!![];}},_0x4c2724[_0x25f8e2('0x2318')]=_0x160ddb,_0x4c2724[_0x25f8e2('0x103c')]=_0x4efcfe,_0x4c2724['closeDialog']=_0x2eb162;function _0x160ddb(){var _0x412590=_0x25f8e2;return _0x52f68c[_0x412590('0x26e8')](_0x412590('0x178b'))?_0x6d2066()[_0x412590('0x253d')](function(_0x200d0e){var _0x225089=_0x412590;_0x4b0806[_0x225089('0x187f')]({'title':_0x200d0e[_0x225089('0x2fa')]?_0x225089('0x16c2')+_0x200d0e[_0x225089('0x2fa')]+_0x225089('0x169e')+_0x200d0e[_0x225089('0x24df')]:_0x225089('0x773'),'msg':_0x200d0e[_0x225089('0x2fa')]?JSON[_0x225089('0xa48')](_0x200d0e['data']):_0x200d0e[_0x225089('0x684')]()});}):_0x2dedf6()['then'](function(_0x86af1f){var _0x10a8b2=_0x412590;return _0x4c2724[_0x10a8b2('0x224d')]=_0x86af1f,_0x6d2066();})[_0x412590('0x253d')](function(_0x216c39){var _0x5d01b2=_0x412590;_0x4b0806[_0x5d01b2('0x187f')]({'title':_0x216c39[_0x5d01b2('0x2fa')]?'API:'+_0x216c39[_0x5d01b2('0x2fa')]+'\x20-\x20'+_0x216c39['statusText']:_0x5d01b2('0x773'),'msg':_0x216c39['status']?JSON[_0x5d01b2('0xa48')](_0x216c39['data']):_0x216c39[_0x5d01b2('0x684')]()});});}function _0x2dedf6(){return _0x1826c0(function(_0x5c1e1f,_0x40b5cf){var _0x59a4c5=a0_0x1149,_0x44cd73;switch(_0x4c2724[_0x59a4c5('0x119e')]){case'voice':switch(_0x4c2724[_0x59a4c5('0x1108')]){case _0x59a4c5('0x4b8'):_0x44cd73=_0x59a4c5('0x24cb');break;case'outbound':_0x44cd73='QueueCampaigns';break;}break;case _0x59a4c5('0x20f9'):_0x44cd73=_0x59a4c5('0x217c');break;case _0x59a4c5('0x14c5'):_0x44cd73=_0x59a4c5('0xafe');break;case _0x59a4c5('0x18da'):_0x44cd73=_0x59a4c5('0x1af');break;case _0x59a4c5('0x170'):_0x44cd73=_0x59a4c5('0x171c');break;case _0x59a4c5('0x16c4'):_0x44cd73='FaxQueues';break;}_0x90f59c[_0x59a4c5('0x1a50')][_0x59a4c5('0x2122')]({'userProfileId':_0x4c2724[_0x59a4c5('0x7fc')][_0x59a4c5('0x2168')],'name':_0x44cd73})['$promise']['then'](function(_0x3fc0bc){var _0x19dcec=_0x59a4c5,_0x3a1cc3=_0x3fc0bc&&_0x3fc0bc[_0x19dcec('0x580')]?_0x3fc0bc[_0x19dcec('0x580')][0x0]:null;_0x5c1e1f(_0x3a1cc3);})[_0x59a4c5('0x253d')](function(_0x5f0ebe){_0x40b5cf(_0x5f0ebe);});});}function _0x6d2066(){return _0x1826c0(function(_0x462112,_0x11f77f){var _0x3a2621=a0_0x1149;return _0x5722c4()[_0x3a2621('0xaa5')](function(_0xa1e3b4){var _0x340639=_0x3a2621;return _0x4c2724[_0x340639('0x1a30')]=_0xa1e3b4['rows']?_0xa1e3b4[_0x340639('0x580')]:[],_0x52f68c[_0x340639('0x26e8')]('admin')?_0xa1e3b4:_0x4c2724[_0x340639('0x224d')]?_0x4c2724[_0x340639('0x224d')][_0x340639('0x26cc')]?_0xa1e3b4:_0x2cf901():null;})['then'](function(_0x219a5d){var _0x1468bf=_0x3a2621,_0x3284c4=_0x219a5d&&_0x219a5d[_0x1468bf('0x580')]?_0x219a5d[_0x1468bf('0x580')]:[];return _0x4c2724[_0x1468bf('0x11b9')]=_0x51538b()[_0x1468bf('0x1246')](_0x3284c4,function(_0xc5bdb9){var _0x3781ca=_0x1468bf;return _0x51538b()[_0x3781ca('0xe9e')](_0x4c2724['items'],{'id':_0x52f68c[_0x3781ca('0x26e8')]('admin')||_0x4c2724[_0x3781ca('0x224d')][_0x3781ca('0x26cc')]?_0xc5bdb9['id']:_0xc5bdb9[_0x3781ca('0xbcd')]});}),_0x4c2724[_0x1468bf('0x215b')]=angular[_0x1468bf('0x20a')](_0x4c2724['allowedItems']),_0x4c2724[_0x1468bf('0x1a30')][_0x1468bf('0x15b5')](function(_0x559c41){var _0x2dfd23=_0x1468bf,_0x28c52e=_0x51538b()['find'](_0x4c2724[_0x2dfd23('0x11b9')],{'id':_0x559c41['id']});_0x52f68c[_0x2dfd23('0x26e8')](_0x2dfd23('0x178b'))?_0x559c41[_0x2dfd23('0x145d')]=!![]:_0x559c41[_0x2dfd23('0x145d')]=typeof _0x28c52e!==_0x2dfd23('0x1574')?!![]:![];}),_0x163c27();})['then'](function(_0x57fd27){var _0x2c3b5b=_0x3a2621,_0x2671d4=_0x57fd27&&_0x57fd27[_0x2c3b5b('0x580')]?_0x57fd27[_0x2c3b5b('0x580')]:[];_0x4c2724[_0x2c3b5b('0xbf7')]=_0x51538b()['map'](_0x2671d4,function(_0x4c2c81){var _0x58b872=_0x2c3b5b,_0x10e235=_0x51538b()[_0x58b872('0xe9e')](_0x4c2724[_0x58b872('0x1a30')],{'id':_0x4c2c81['id']});return _0x4c2724[_0x58b872('0x119e')]===_0x58b872('0x1b9')&&(_0x10e235[_0x58b872('0x2234')]=typeof _0x10e235!==_0x58b872('0x1574')&&typeof _0x4c2c81[_0x58b872('0xe20')]!==_0x58b872('0x1574')?'penalty\x20'+_0x4c2c81['UserVoiceQueue'][_0x58b872('0x2234')]:_0x58b872('0x17b0')+0x0),_0x10e235;}),_0x4c2724[_0x2c3b5b('0x214a')]=angular[_0x2c3b5b('0x20a')](_0x4c2724[_0x2c3b5b('0xbf7')]),_0x4c2724['dualMultiselectOptions'][_0x2c3b5b('0xbf7')]=_0x4c2724[_0x2c3b5b('0xbf7')],_0x4c2724[_0x2c3b5b('0x1c23')][_0x2c3b5b('0x1a30')]=_0x51538b()[_0x2c3b5b('0x1ebb')](_0x4c2724[_0x2c3b5b('0x11b9')],_0x4c2724[_0x2c3b5b('0x1c23')]['selectedItems'],'id'),_0x462112();})[_0x3a2621('0x253d')](function(_0x5ac88d){_0x11f77f(_0x5ac88d);});});}function _0x2cf901(){return _0x1826c0(function(_0x2cc922,_0x3aba67){var _0x1255f4=a0_0x1149;return _0x90f59c[_0x1255f4('0x249a')][_0x1255f4('0x2122')]({'sectionId':_0x4c2724[_0x1255f4('0x224d')]['id'],'nolimit':!![]})['$promise'][_0x1255f4('0xaa5')](function(_0x1cf13a){_0x2cc922(_0x1cf13a);})['catch'](function(_0x44b0aa){_0x3aba67(_0x44b0aa);});});}function _0x163c27(){return _0x1826c0(function(_0x230881,_0x3fbe76){var _0x4b3c47=a0_0x1149;return _0x90f59c[_0x4b3c47('0x272b')]['getQueues']({'id':_0x4c2724[_0x4b3c47('0xeff')]['id'],'fields':'id,name,strategy,type,penalty','nolimit':!![],'type':_0x4c2724['direction'],'channel':_0x4c2724[_0x4b3c47('0x119e')]})[_0x4b3c47('0x1dc2')][_0x4b3c47('0xaa5')](function(_0x3e6683){_0x230881(_0x3e6683);})[_0x4b3c47('0x253d')](function(_0x5c3572){_0x3fbe76(_0x5c3572);});});}function _0x5722c4(){return _0x1826c0(function(_0x5bca65,_0x121a8d){var _0x52a26e=a0_0x1149;return _0x90f59c[_0x4c2724['apiName']][_0x52a26e('0x2122')]({'fields':_0x52a26e('0x4a2'),'channel':_0x4c2724['channel']==='bull'?_0x52a26e('0x1b9'):_0x4c2724[_0x52a26e('0x119e')],'type':_0x4c2724[_0x52a26e('0x1108')],'nolimit':!![]})[_0x52a26e('0x1dc2')][_0x52a26e('0xaa5')](function(_0x49e9a2){_0x5bca65(_0x49e9a2);})[_0x52a26e('0x253d')](function(_0x1765ef){_0x121a8d(_0x1765ef);});});}function _0x281f30(_0x4d762d){return _0x1826c0(function(_0x71fa4f,_0x13ae42){var _0x557a55=a0_0x1149;if(_0x51538b()[_0x557a55('0x116b')](_0x4d762d))_0x71fa4f();else{if(_0x4c2724[_0x557a55('0x119e')]==='voice'){var _0x4a1b5f=[],_0x412065=_0x51538b()[_0x557a55('0x1663')](_0x4d762d,'penalty');for(var _0x381a88=0x0;_0x381a88':'',_0x168c57;}),_0x2bbec0[_0xdd13de('0x214a')]=angular['copy'](_0x2bbec0[_0xdd13de('0xbf7')]),_0x2bbec0['dualMultiselectOptions']['selectedItems']=_0x2bbec0[_0xdd13de('0xbf7')],_0x2bbec0[_0xdd13de('0x1c23')][_0xdd13de('0x1a30')]=_0x51538b()['differenceBy'](_0x2bbec0[_0xdd13de('0x11b9')],_0x2bbec0[_0xdd13de('0x1c23')][_0xdd13de('0xbf7')],'id'),_0x3169d9();})[_0x38bab3('0x253d')](function(_0x39052c){_0x22ef79(_0x39052c);});});}function _0x52c01d(){return _0x588d13(function(_0x1d5c16,_0x493278){var _0x4a248f=a0_0x1149;return _0x2ad4aa[_0x4a248f('0x249a')]['get']({'sectionId':_0x2bbec0['section']['id'],'nolimit':!![]})[_0x4a248f('0x1dc2')][_0x4a248f('0xaa5')](function(_0x38a1d7){_0x1d5c16(_0x38a1d7);})[_0x4a248f('0x253d')](function(_0x221005){_0x493278(_0x221005);});});}function _0x1f0cad(){return _0x588d13(function(_0x424705,_0x49e000){var _0x1c3ddf=a0_0x1149;return _0x2ad4aa[_0x1c3ddf('0x257c')][_0x1c3ddf('0x1483')]({'id':_0x2bbec0[_0x1c3ddf('0x257c')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x1c3ddf('0x1dc2')][_0x1c3ddf('0xaa5')](function(_0x118fac){_0x424705(_0x118fac);})[_0x1c3ddf('0x253d')](function(_0x13a859){_0x49e000(_0x13a859);});});}function _0x62b359(){return _0x588d13(function(_0xde34c,_0x4730b8){var _0x4f5723=a0_0x1149;return _0x2ad4aa[_0x4f5723('0x272b')][_0x4f5723('0x2122')]({'fields':_0x4f5723('0x283f'),'nolimit':!![],'role':_0x4f5723('0xeff')})[_0x4f5723('0x1dc2')][_0x4f5723('0xaa5')](function(_0x46bd17){_0xde34c(_0x46bd17);})['catch'](function(_0x3e3611){_0x4730b8(_0x3e3611);});});}function _0x25ea2d(_0x3da021){return _0x588d13(function(_0x42b3ed,_0xc512fe){var _0x4786f3=a0_0x1149;_0x51538b()['isEmpty'](_0x3da021)?_0x42b3ed():_0x2ad4aa[_0x4786f3('0x257c')][_0x4786f3('0x26b1')]({'id':_0x2bbec0[_0x4786f3('0x257c')]['id'],'ids':_0x51538b()[_0x4786f3('0x1246')](_0x3da021,'id')})[_0x4786f3('0x1dc2')][_0x4786f3('0xaa5')](function(){_0x42b3ed();})[_0x4786f3('0x253d')](function(_0x174bf4){_0xc512fe(_0x174bf4);});});}function _0xeb71c3(_0x287729){return _0x588d13(function(_0x325321,_0x4d716d){var _0x50f572=a0_0x1149;_0x51538b()[_0x50f572('0x116b')](_0x287729)?_0x325321():_0x2ad4aa['team'][_0x50f572('0x258e')]({'id':_0x2bbec0[_0x50f572('0x257c')]['id'],'ids':_0x51538b()['map'](_0x287729,'id')})[_0x50f572('0x1dc2')]['then'](function(){_0x325321();})[_0x50f572('0x253d')](function(_0x2f0328){_0x4d716d(_0x2f0328);});});}function _0x55ace0(){var _0x18b061=_0x4dfd23,_0x5f0d36=_0x51538b()[_0x18b061('0x1ebb')](_0x2bbec0[_0x18b061('0x214a')],_0x2bbec0[_0x18b061('0xbf7')],'id'),_0x5dd7c3=_0x51538b()[_0x18b061('0x1ebb')](_0x2bbec0['selectedItems'],_0x2bbec0[_0x18b061('0x214a')],'id');return _0xeb71c3(_0x5f0d36)[_0x18b061('0xaa5')](function(){return _0x25ea2d(_0x5dd7c3);})['then'](function(){var _0x36544f=_0x18b061;_0x2bbec0[_0x36544f('0xc54')]=![],_0x2bbec0[_0x36544f('0x215b')]=angular[_0x36544f('0x20a')](_0x2bbec0['allowedItems']),_0x2bbec0[_0x36544f('0x214a')]=angular[_0x36544f('0x20a')](_0x2bbec0[_0x36544f('0xbf7')]),_0x1f9d7a[_0x36544f('0xe10')]({'title':'SUCCESS','msg':_0x36544f('0xc60')});})[_0x18b061('0x253d')](function(_0x354931){var _0x30a775=_0x18b061;_0x1f9d7a[_0x30a775('0x187f')]({'title':_0x354931[_0x30a775('0x2fa')]?_0x30a775('0x16c2')+_0x354931[_0x30a775('0x2fa')]+_0x30a775('0x169e')+_0x354931[_0x30a775('0x24df')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x354931[_0x30a775('0x2fa')]?JSON[_0x30a775('0xa48')](_0x354931[_0x30a775('0x10fd')]):_0x354931['toString']()});});}function _0x4521ef(){var _0x4bb921=_0x4dfd23;_0x350dda[_0x4bb921('0x1120')]();}}const _0x184f0d=_0x29a846,_0x4b9617=_0x4fb511['p']+_0x1a8446('0x25e6'),_0x1cb8d1=_0x4fb511['p']+_0x1a8446('0xf6e');_0x5deaae['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x504'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x5deaae(_0x511dc7,_0x1f9131,_0x2aac96,_0x8530b,_0x3107ac,_0x3fb6e6,_0x543c45,_0x59ad29,_0x4688af,_0x265c27,_0x463402,_0x13208f,_0x1a64f4,_0x140359,_0x4cda74,_0x7b190b,_0x6fa317){var _0xfb25eb=_0x1a8446,_0x43f913=this;_0x43f913[_0xfb25eb('0x1202')]=_0x7b190b,_0x43f913[_0xfb25eb('0x143f')]=_0x6fa317,_0x43f913[_0xfb25eb('0x7fc')]=_0x4cda74['getCurrentUser'](),_0x43f913[_0xfb25eb('0x504')]=_0x4688af||{'count':0x0,'rows':[]},_0x43f913[_0xfb25eb('0x1e97')]=_0x265c27,_0x43f913['userProfileSection']=_0x463402&&_0x463402[_0xfb25eb('0xd15')]==0x1?_0x463402[_0xfb25eb('0x580')][0x0]:null,_0x43f913[_0xfb25eb('0xada')]=_0x4cda74['parseCrudPermissions'](_0x43f913[_0xfb25eb('0x1a50')]?_0x43f913[_0xfb25eb('0x1a50')]['crudPermissions']:null),_0x43f913['table']=_0xfb25eb('0x504'),_0x43f913[_0xfb25eb('0x164')]='',_0x43f913[_0xfb25eb('0x8cc')]=null,_0x43f913['selectedTeams']=[],_0x43f913[_0xfb25eb('0x582')]={'fields':_0xfb25eb('0x1798'),'sort':_0xfb25eb('0xd82'),'limit':0xa,'page':0x1},_0x43f913[_0xfb25eb('0x1960')]=_0x20556c,_0x43f913[_0xfb25eb('0x16a5')]=_0xcf53cf,_0x43f913[_0xfb25eb('0x271')]=_0x2d1558,_0x43f913[_0xfb25eb('0xe10')]=_0x398010,_0x43f913[_0xfb25eb('0x1067')]=_0x4846bc,_0x43f913[_0xfb25eb('0x7cb')]=_0x322d2c,_0x43f913[_0xfb25eb('0x1034')]=_0x363717,_0x43f913['exportSelectedTeams']=_0x4d6afb,_0x43f913[_0xfb25eb('0x7f2')]=_0x19f145,_0x43f913[_0xfb25eb('0x29f')]=_0x54c556,_0x43f913[_0xfb25eb('0x923')]=_0x11aa9e;function _0x20556c(_0x1f0375,_0x118ada){var _0x4bd898=_0xfb25eb;_0x3107ac[_0x4bd898('0x1e6d')]({'controller':_0x4bd898('0xc9d'),'controllerAs':'vm','templateUrl':_0x4b9617,'parent':angular['element'](_0x3fb6e6[_0x4bd898('0x54c')]),'targetEvent':_0x118ada,'clickOutsideToClose':!![],'locals':{'team':_0x1f0375,'teams':_0x43f913[_0x4bd898('0x504')]['rows'],'license':_0x43f913[_0x4bd898('0x1202')],'setting':null,'crudPermissions':_0x43f913[_0x4bd898('0xada')]}});}function _0xcf53cf(_0x24b4f5,_0x2439f2){var _0x4a1e60=_0xfb25eb;_0x3107ac[_0x4a1e60('0x1e6d')]({'controller':_0x4a1e60('0x118b'),'controllerAs':'vm','templateUrl':_0x1cb8d1,'parent':angular[_0x4a1e60('0x1aa8')](_0x3fb6e6[_0x4a1e60('0x54c')]),'targetEvent':_0x2439f2,'clickOutsideToClose':!![],'locals':{'team':_0x24b4f5,'teams':_0x43f913[_0x4a1e60('0x504')]?_0x43f913[_0x4a1e60('0x504')][_0x4a1e60('0x580')]:[],'crudPermissions':_0x43f913[_0x4a1e60('0xada')],'realtime':![]}});}function _0x2d1558(_0x17aba5,_0x196a69){var _0x2ed826=_0xfb25eb,_0x4db198=_0x3107ac[_0x2ed826('0x281e')]()[_0x2ed826('0x110a')](_0x2ed826('0x88d')+_0x51538b()[_0x2ed826('0x196a')](_0x2ed826('0x257c'))+'?')[_0x2ed826('0x102e')](_0x2ed826('0x389')+(_0x17aba5[_0x2ed826('0x25d6')]||'team')+_0x2ed826('0x697')+_0x2ed826('0x210d'))['ariaLabel'](_0x2ed826('0x1fff'))[_0x2ed826('0x116d')](_0x196a69)['ok']('OK')['cancel'](_0x2ed826('0x2410'));_0x3107ac[_0x2ed826('0x1e6d')](_0x4db198)[_0x2ed826('0xaa5')](function(){_0x363717(_0x17aba5);},function(){console['log']('CANCEL');});}var _0x572fbd=!![],_0x3c2387=0x1;_0x511dc7[_0xfb25eb('0x1ccf')]('vm.query.filter',function(_0x42cb1d,_0x1e4994){var _0x116a30=_0xfb25eb;_0x572fbd?_0x543c45(function(){_0x572fbd=![];}):(!_0x1e4994&&(_0x3c2387=_0x43f913[_0x116a30('0x582')][_0x116a30('0x41')]),_0x42cb1d!==_0x1e4994&&(_0x43f913[_0x116a30('0x582')][_0x116a30('0x41')]=0x1),!_0x42cb1d&&(_0x43f913['query'][_0x116a30('0x41')]=_0x3c2387),_0x43f913['getTeams']());});function _0x398010(_0x8b8a7a){_0x43f913['teams']=_0x8b8a7a||{'count':0x0,'rows':[]};}function _0x4846bc(){var _0x4f47e2=_0xfb25eb;_0x43f913[_0x4f47e2('0x582')][_0x4f47e2('0x8b1')]=(_0x43f913[_0x4f47e2('0x582')][_0x4f47e2('0x41')]-0x1)*_0x43f913[_0x4f47e2('0x582')][_0x4f47e2('0xf4d')],_0x4cda74['hasRole'](_0x4f47e2('0x178b'))?_0x43f913[_0x4f47e2('0x159a')]=_0x13208f[_0x4f47e2('0x257c')][_0x4f47e2('0x2122')](_0x43f913[_0x4f47e2('0x582')],_0x398010)[_0x4f47e2('0x1dc2')]:(_0x43f913['query']['id']=_0x43f913['userProfile']['id'],_0x43f913[_0x4f47e2('0x582')][_0x4f47e2('0x224d')]=_0x4f47e2('0x10ee'),_0x43f913[_0x4f47e2('0x159a')]=_0x13208f[_0x4f47e2('0x1e97')][_0x4f47e2('0x1cf1')](_0x43f913[_0x4f47e2('0x582')],_0x398010)['$promise']);}function _0x322d2c(_0x280ef4,_0x5cbad0){var _0xb68120=_0xfb25eb;_0x3107ac[_0xb68120('0x1e6d')]({'controller':_0xb68120('0xc9d'),'controllerAs':'vm','templateUrl':_0x4b9617,'parent':angular[_0xb68120('0x1aa8')](_0x3fb6e6['body']),'targetEvent':_0x280ef4,'clickOutsideToClose':!![],'locals':{'team':_0x5cbad0,'teams':_0x43f913[_0xb68120('0x504')]['rows'],'license':_0x43f913[_0xb68120('0x1202')],'setting':_0x43f913[_0xb68120('0x143f')],'crudPermissions':_0x43f913[_0xb68120('0xada')]}});}function _0x363717(_0x5df20){var _0x5b3d19=_0xfb25eb;_0x13208f[_0x5b3d19('0x257c')][_0x5b3d19('0x926')]({'id':_0x5df20['id']})[_0x5b3d19('0x1dc2')][_0x5b3d19('0xaa5')](function(){var _0x295bd9=_0x5b3d19;_0x51538b()[_0x295bd9('0xf6d')](_0x43f913['teams'][_0x295bd9('0x580')],{'id':_0x5df20['id']}),_0x43f913['teams']['count']-=0x1,!_0x43f913[_0x295bd9('0x504')][_0x295bd9('0x580')][_0x295bd9('0x2587')]&&_0x43f913[_0x295bd9('0x1067')](),_0x140359[_0x295bd9('0xe10')]({'title':_0x51538b()[_0x295bd9('0x196a')]('Team')+_0x295bd9('0x8bb'),'msg':_0x5df20[_0x295bd9('0x25d6')]?_0x5df20['name']+_0x295bd9('0xcd9'):''});})['catch'](function(_0x3285df){var _0x29769f=_0x5b3d19;if(_0x3285df['data']&&_0x3285df[_0x29769f('0x10fd')][_0x29769f('0x4c6')]&&_0x3285df['data']['errors'][_0x29769f('0x2587')]){_0x43f913[_0x29769f('0x4c6')]=_0x3285df['data']['errors']||[{'message':_0x3285df[_0x29769f('0x684')](),'type':_0x29769f('0x2102')}];for(var _0xe1e934=0x0;_0xe1e934<_0x3285df['data']['errors']['length'];_0xe1e934++){_0x140359[_0x29769f('0x187f')]({'title':_0x3285df[_0x29769f('0x10fd')]['errors'][_0xe1e934]['type'],'msg':_0x3285df[_0x29769f('0x10fd')][_0x29769f('0x4c6')][_0xe1e934]['message']});}}else _0x140359['error']({'title':_0x3285df[_0x29769f('0x2fa')]?_0x29769f('0x16c2')+_0x3285df[_0x29769f('0x2fa')]+_0x29769f('0x169e')+_0x3285df[_0x29769f('0x24df')]:_0x29769f('0x2102'),'msg':_0x3285df['data']?JSON[_0x29769f('0xa48')](_0x3285df['data'][_0x29769f('0x1402')]):_0x3285df['message']||_0x3285df[_0x29769f('0x684')]()});});}function _0x4d6afb(){var _0x178b82=_0xfb25eb,_0x43431a=angular['copy'](_0x43f913[_0x178b82('0x1830')]);return _0x43f913[_0x178b82('0x1830')]=[],_0x43431a;}function _0x19f145(_0x4445a6){var _0x5ae5f5=_0xfb25eb,_0x4a66ec=_0x3107ac[_0x5ae5f5('0x281e')]()['title'](_0x5ae5f5('0xdd1'))[_0x5ae5f5('0x102e')](_0x5ae5f5('0x389')+_0x43f913['selectedTeams'][_0x5ae5f5('0x2587')]+_0x5ae5f5('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5ae5f5('0x1bcf'))[_0x5ae5f5('0x116d')](_0x4445a6)['ok']('OK')[_0x5ae5f5('0x2030')](_0x5ae5f5('0x2410'));_0x3107ac[_0x5ae5f5('0x1e6d')](_0x4a66ec)['then'](function(){var _0x26f5b8=_0x5ae5f5;_0x43f913[_0x26f5b8('0x1830')][_0x26f5b8('0x15b5')](function(_0x5b0df4){_0x363717(_0x5b0df4);}),_0x43f913['selectedTeams']=[];});}function _0x54c556(){var _0x5153e2=_0xfb25eb;_0x43f913[_0x5153e2('0x1830')]=[];}function _0x11aa9e(){var _0x320343=_0xfb25eb;_0x43f913[_0x320343('0x1830')]=_0x43f913[_0x320343('0x504')]['rows'];}}const _0x2f365a=_0x5deaae;_0x304f5b[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x395'),'telephone',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x304f5b(_0x9da17f,_0x2869cd,_0x1d3d43,_0x593072,_0x47d667,_0x5b4572,_0x481501,_0x18fc27,_0xc76a7,_0x361068,_0x1177ad,_0xa740d3,_0x1fe847,_0x1cfb72){var _0x1d5f50=_0x1a8446,_0x208cd6=this;_0x208cd6[_0x1d5f50('0x7fc')]=_0x1177ad['getCurrentUser'](),_0x208cd6['errors']=[],_0x208cd6[_0x1d5f50('0x143f')]=_0x1fe847,_0x208cd6[_0x1d5f50('0x1202')]=_0xa740d3,_0x208cd6[_0x1d5f50('0xada')]=_0x1cfb72,_0x208cd6[_0x1d5f50('0x9f0')]={},_0x208cd6[_0x1d5f50('0x1d53')]=_0x208cd6['setting']&&_0x208cd6[_0x1d5f50('0x143f')][_0x1d5f50('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x208cd6[_0x1d5f50('0x110a')]=_0x1d5f50('0x1e4a'),_0x208cd6[_0x1d5f50('0xb5b')]=angular[_0x1d5f50('0x20a')](_0xc76a7),_0x208cd6[_0x1d5f50('0x395')]=_0x18fc27,_0x208cd6['newTelephone']=![];!_0x208cd6[_0x1d5f50('0xb5b')]&&(_0x208cd6[_0x1d5f50('0xb5b')]={'role':_0x1d5f50('0xb5b'),'autointernal':!![],'context':_0x1d5f50('0xde3')},_0x208cd6[_0x1d5f50('0x110a')]=_0x1d5f50('0x2436'),_0x208cd6['newTelephone']=!![]);_0x208cd6[_0x1d5f50('0x103f')]=_0x3eb5f2,_0x208cd6[_0x1d5f50('0x10c2')]=_0x202bf2,_0x208cd6['deleteTelephone']=_0x11736c,_0x208cd6[_0x1d5f50('0xc09')]=_0x5ede8b,_0x208cd6['closeDialog']=_0x5ed014;function _0x3eb5f2(){var _0x4ed4ae=_0x1d5f50;_0x208cd6[_0x4ed4ae('0x4c6')]=[],_0x361068[_0x4ed4ae('0x272b')][_0x4ed4ae('0x242b')](_0x208cd6[_0x4ed4ae('0xb5b')])['$promise'][_0x4ed4ae('0xaa5')](function(_0x4d1346){var _0x471e0a=_0x4ed4ae;_0x208cd6[_0x471e0a('0x395')][_0x471e0a('0x6ee')](_0x4d1346[_0x471e0a('0x256a')]()),_0x481501['success']({'title':'Telephone\x20properly\x20created','msg':_0x208cd6['telephone'][_0x471e0a('0x25d6')]?_0x208cd6[_0x471e0a('0xb5b')]['name']+'\x20has\x20been\x20created!':''}),_0x5ed014(_0x4d1346);})[_0x4ed4ae('0x253d')](function(_0x201f1a){var _0x7fb996=_0x4ed4ae;if(_0x201f1a['data']&&_0x201f1a['data']['errors']&&_0x201f1a['data'][_0x7fb996('0x4c6')][_0x7fb996('0x2587')]){_0x208cd6['errors']=_0x201f1a[_0x7fb996('0x10fd')][_0x7fb996('0x4c6')]||[{'message':_0x201f1a[_0x7fb996('0x684')](),'type':_0x7fb996('0x2228')}];for(var _0x2f6f69=0x0;_0x2f6f69<_0x201f1a['data']['errors'][_0x7fb996('0x2587')];_0x2f6f69+=0x1){_0x481501[_0x7fb996('0x187f')]({'title':_0x201f1a[_0x7fb996('0x10fd')][_0x7fb996('0x4c6')][_0x2f6f69][_0x7fb996('0x6c8')],'msg':_0x201f1a[_0x7fb996('0x10fd')][_0x7fb996('0x4c6')][_0x2f6f69][_0x7fb996('0x1402')]});}}else _0x481501[_0x7fb996('0x187f')]({'title':_0x201f1a[_0x7fb996('0x2fa')]?_0x7fb996('0x16c2')+_0x201f1a[_0x7fb996('0x2fa')]+_0x7fb996('0x169e')+_0x201f1a['statusText']:_0x7fb996('0x2228'),'msg':_0x201f1a[_0x7fb996('0x10fd')]?JSON[_0x7fb996('0xa48')](_0x201f1a[_0x7fb996('0x10fd')][_0x7fb996('0x1402')]):_0x201f1a[_0x7fb996('0x684')]()});});}function _0x202bf2(){var _0x16b828=_0x1d5f50;_0x208cd6[_0x16b828('0x4c6')]=[],_0x361068[_0x16b828('0x272b')][_0x16b828('0x264e')]({'id':_0x208cd6[_0x16b828('0xb5b')]['id']},_0x208cd6[_0x16b828('0xb5b')])['$promise'][_0x16b828('0xaa5')](function(_0x1f8354){var _0x1bcb7a=_0x16b828,_0x504fbd=_0x51538b()['find'](_0x208cd6[_0x1bcb7a('0x395')],{'id':_0x1f8354['id']});_0x504fbd&&_0x51538b()[_0x1bcb7a('0x283c')](_0x504fbd,_0x51538b()[_0x1bcb7a('0x104e')](_0x1f8354[_0x1bcb7a('0x256a')](),_0x51538b()[_0x1bcb7a('0x9f2')](_0x504fbd))),_0x481501[_0x1bcb7a('0xe10')]({'title':_0x1bcb7a('0xda3'),'msg':_0x208cd6[_0x1bcb7a('0xb5b')][_0x1bcb7a('0x25d6')]?_0x208cd6[_0x1bcb7a('0xb5b')][_0x1bcb7a('0x25d6')]+_0x1bcb7a('0x20bf'):''}),_0x5ed014(_0x1f8354);})[_0x16b828('0x253d')](function(_0x34e1b8){var _0x59a436=_0x16b828;if(_0x34e1b8[_0x59a436('0x10fd')]&&_0x34e1b8['data'][_0x59a436('0x4c6')]&&_0x34e1b8['data'][_0x59a436('0x4c6')][_0x59a436('0x2587')]){_0x208cd6[_0x59a436('0x4c6')]=_0x34e1b8[_0x59a436('0x10fd')][_0x59a436('0x4c6')]||[{'message':_0x34e1b8[_0x59a436('0x684')](),'type':_0x59a436('0x11e6')}];for(var _0x1a128f=0x0;_0x1a128f<_0x34e1b8['data'][_0x59a436('0x4c6')][_0x59a436('0x2587')];_0x1a128f++){_0x481501[_0x59a436('0x187f')]({'title':_0x34e1b8[_0x59a436('0x10fd')][_0x59a436('0x4c6')][_0x1a128f][_0x59a436('0x6c8')],'msg':_0x34e1b8['data'][_0x59a436('0x4c6')][_0x1a128f]['message']});}}else _0x481501[_0x59a436('0x187f')]({'title':_0x34e1b8[_0x59a436('0x2fa')]?_0x59a436('0x16c2')+_0x34e1b8[_0x59a436('0x2fa')]+_0x59a436('0x169e')+_0x34e1b8[_0x59a436('0x24df')]:_0x59a436('0x11e6'),'msg':_0x34e1b8[_0x59a436('0x10fd')]?JSON['stringify'](_0x34e1b8[_0x59a436('0x10fd')][_0x59a436('0x1402')]):_0x34e1b8['toString']()});});}function _0x11736c(_0x7d4b12){var _0x159088=_0x1d5f50;_0x208cd6[_0x159088('0x4c6')]=[];var _0x4be442=_0x593072['confirm']()[_0x159088('0x110a')](_0x159088('0x12a3'))[_0x159088('0x15af')](_0x159088('0x130d'))['ariaLabel'](_0x159088('0x2848'))['ok'](_0x159088('0x1e76'))[_0x159088('0x2030')]('Cancel')[_0x159088('0x116d')](_0x7d4b12);_0x593072[_0x159088('0x1e6d')](_0x4be442)[_0x159088('0xaa5')](function(){var _0x26029b=_0x159088;_0x361068[_0x26029b('0x272b')]['delete']({'id':_0x208cd6[_0x26029b('0xb5b')]['id']})['$promise'][_0x26029b('0xaa5')](function(){var _0x4d1188=_0x26029b;_0x51538b()[_0x4d1188('0xf6d')](_0x208cd6['telephones'],{'id':_0x208cd6[_0x4d1188('0xb5b')]['id']}),_0x481501[_0x4d1188('0xe10')]({'title':_0x4d1188('0x2165'),'msg':(_0x208cd6['telephone'][_0x4d1188('0x25d6')]||_0x4d1188('0xb5b'))+_0x4d1188('0xcd9')}),_0x5ed014(_0x208cd6[_0x4d1188('0xb5b')]);})[_0x26029b('0x253d')](function(_0x3e1ead){var _0x5249ac=_0x26029b;if(_0x3e1ead['data']&&_0x3e1ead[_0x5249ac('0x10fd')][_0x5249ac('0x4c6')]&&_0x3e1ead[_0x5249ac('0x10fd')][_0x5249ac('0x4c6')][_0x5249ac('0x2587')]){_0x208cd6[_0x5249ac('0x4c6')]=_0x3e1ead[_0x5249ac('0x10fd')]['errors']||[{'message':_0x3e1ead[_0x5249ac('0x684')](),'type':'api.user.delete'}];for(var _0x3e1321=0x0;_0x3e1321<_0x3e1ead[_0x5249ac('0x10fd')][_0x5249ac('0x4c6')][_0x5249ac('0x2587')];_0x3e1321++){_0x481501[_0x5249ac('0x187f')]({'title':_0x3e1ead['data'][_0x5249ac('0x4c6')][_0x3e1321][_0x5249ac('0x6c8')],'msg':_0x3e1ead[_0x5249ac('0x10fd')]['errors'][_0x3e1321][_0x5249ac('0x1402')]});}}else _0x481501[_0x5249ac('0x187f')]({'title':_0x3e1ead[_0x5249ac('0x2fa')]?'API:'+_0x3e1ead[_0x5249ac('0x2fa')]+_0x5249ac('0x169e')+_0x3e1ead[_0x5249ac('0x24df')]:_0x5249ac('0x27c6'),'msg':_0x3e1ead[_0x5249ac('0x10fd')]?JSON[_0x5249ac('0xa48')](_0x3e1ead[_0x5249ac('0x10fd')][_0x5249ac('0x1402')]):_0x3e1ead[_0x5249ac('0x1402')]||_0x3e1ead[_0x5249ac('0x684')]()});});},function(){});}function _0x5ede8b(_0x3ae0c5){return _0x3ae0c5===null?undefined:new Date(_0x3ae0c5);}function _0x5ed014(_0x473b35){var _0x119e80=_0x1d5f50;_0x593072[_0x119e80('0x1120')](_0x473b35);}}const _0x20795d=_0x304f5b;_0x22375c[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),'api','telephone',_0x1a8446('0x143f'),_0x1a8446('0x1dfd')];function _0x22375c(_0x585cf9,_0x400677,_0xd7a2b,_0x3cf9ce,_0x23b20d,_0x4b9a21,_0x596f79){var _0x85b780=_0x1a8446,_0x4cb9ce=this;_0x4cb9ce['currentUser']=_0x596f79['getCurrentUser'](),_0x4cb9ce[_0x85b780('0x4c6')]=[],_0x4cb9ce[_0x85b780('0x143f')]=_0x4b9a21,_0x4cb9ce[_0x85b780('0x1d53')]=_0x4cb9ce[_0x85b780('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4cb9ce[_0x85b780('0xb5b')]=_0x23b20d,_0x4cb9ce[_0x85b780('0x418')]='',_0x4cb9ce[_0x85b780('0x2050')]='',_0x4cb9ce[_0x85b780('0x1cd4')]=_0xceaaa1,_0x4cb9ce[_0x85b780('0x2023')]=_0x2aee7a,_0x585cf9['$watch'](_0x85b780('0x358'),function(_0x10b3a1){var _0x224529=_0x85b780;!_0x51538b()['isNil'](_0x4cb9ce[_0x224529('0x2050')])&&(_0x10b3a1===_0x4cb9ce[_0x224529('0x2050')]?_0x585cf9['telephoneForm'][_0x224529('0x418')]['$setValidity'](_0x224529('0xcdf'),![]):_0x585cf9[_0x224529('0x1d49')][_0x224529('0x418')][_0x224529('0x18c9')]('oldPasswordMatch',!![]));});function _0xceaaa1(){var _0x4eea22=_0x85b780;_0x4cb9ce['errors']=[];var _0x255b0d={'id':_0x4cb9ce['telephone']['id'],'newPassword':_0x4cb9ce['password']};_0x4cb9ce[_0x4eea22('0x7fc')]['id']==_0x4cb9ce[_0x4eea22('0xb5b')]['id']&&(_0x255b0d[_0x4eea22('0x2050')]=_0x4cb9ce[_0x4eea22('0x2050')]),_0x3cf9ce['user'][_0x4eea22('0x1327')](_0x255b0d)['$promise'][_0x4eea22('0xaa5')](function(){var _0x50fcca=_0x4eea22;_0xd7a2b[_0x50fcca('0xe10')]({'title':'Telephone\x20password\x20properly\x20updated!'}),_0x2aee7a();})[_0x4eea22('0x253d')](function(_0x2e1279){var _0x21a4b5=_0x4eea22;_0xd7a2b[_0x21a4b5('0x187f')]({'title':_0x2e1279[_0x21a4b5('0x2fa')]?'API:'+_0x2e1279[_0x21a4b5('0x2fa')]+_0x21a4b5('0x169e')+_0x2e1279[_0x21a4b5('0x24df')]:_0x21a4b5('0x134'),'msg':_0x2e1279['data']?JSON[_0x21a4b5('0xa48')](_0x2e1279['data'][_0x21a4b5('0x1402')]):_0x2e1279['toString']()}),_0x4cb9ce[_0x21a4b5('0x4c6')]=_0x2e1279[_0x21a4b5('0x10fd')]['errors']||[{'message':_0x2e1279[_0x21a4b5('0x684')](),'type':_0x21a4b5('0x1eb1')}];});}function _0x2aee7a(){var _0x329360=_0x85b780;_0x400677[_0x329360('0x1120')]();}}const _0x3d53c5=_0x22375c,_0x2df4ad=_0x4fb511['p']+_0x1a8446('0x1350');_0x2b78b7['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x39b'),'$translate','license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0xb5b'),'userProfileSection'];function _0x2b78b7(_0x54a67b,_0x1b1f4b,_0x23d0d3,_0x3dd3d1,_0x30d19f,_0x4f367c,_0x2c94ec,_0x32a97d,_0x3df355,_0x487d84,_0x56380a,_0x3ded7e){var _0x45ce3f=_0x1a8446,_0x16353d=this;_0x16353d[_0x45ce3f('0x7fc')]=_0x487d84[_0x45ce3f('0xacc')](),_0x16353d[_0x45ce3f('0x1202')]=_0x4f367c,_0x16353d[_0x45ce3f('0x143f')]=_0x2c94ec,_0x16353d[_0x45ce3f('0x1d53')]=_0x16353d[_0x45ce3f('0x143f')][_0x45ce3f('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x16353d[_0x45ce3f('0x18cc')]=_0x1b1f4b[_0x45ce3f('0x1cc2')]()+_0x45ce3f('0x356')+_0x1b1f4b[_0x45ce3f('0x160c')](),_0x16353d[_0x45ce3f('0xb5b')]=_0x56380a||_0x54a67b[_0x45ce3f('0x25cf')]['telephone']||{},_0x16353d['userProfileSection']=_0x3ded7e&&_0x3ded7e[_0x45ce3f('0xd15')]==0x1?_0x3ded7e[_0x45ce3f('0x580')][0x0]:null,_0x16353d['crudPermissions']=_0x487d84[_0x45ce3f('0xffd')](_0x16353d[_0x45ce3f('0x1a50')]?_0x16353d[_0x45ce3f('0x1a50')][_0x45ce3f('0xada')]:null),_0x16353d[_0x45ce3f('0x9f0')]={},_0x16353d['selectedTab']=_0x54a67b['params'][_0x45ce3f('0x25c2')]||0x0,_0x16353d[_0x45ce3f('0x249c')]=_0xc06f25,_0x16353d['alert']=_0x3df355['info'],_0x16353d['gotoTelephones']=_0x4e8729,_0x16353d['saveTelephone']=_0xcf1c3e,_0x487d84[_0x45ce3f('0x26e8')](_0x45ce3f('0x178b'))?_0x32a97d[_0x45ce3f('0x68c')]['get']({'fields':_0x45ce3f('0x17fe'),'sort':_0x45ce3f('0x25d6')})[_0x45ce3f('0x1dc2')][_0x45ce3f('0xaa5')](function(_0x28af2c){var _0x3ac0c9=_0x45ce3f;_0x16353d[_0x3ac0c9('0xdc5')]=_0x28af2c[_0x3ac0c9('0x580')]||[];})['catch'](function(_0x1ad02e){var _0x55b6dd=_0x45ce3f;_0x3df355['error']({'title':_0x1ad02e['status']?_0x55b6dd('0x16c2')+_0x1ad02e[_0x55b6dd('0x2fa')]+_0x55b6dd('0x169e')+_0x1ad02e[_0x55b6dd('0x24df')]:_0x55b6dd('0x1393'),'msg':_0x1ad02e[_0x55b6dd('0x10fd')]?JSON[_0x55b6dd('0xa48')](_0x1ad02e[_0x55b6dd('0x10fd')]):_0x1ad02e[_0x55b6dd('0x684')]()});}):_0x32a97d['voiceContext'][_0x45ce3f('0x2122')]({'fields':_0x45ce3f('0x17fe'),'sort':_0x45ce3f('0x25d6')})[_0x45ce3f('0x1dc2')][_0x45ce3f('0xaa5')](function(_0x58cacc){_0x16353d['contexts']=_0x58cacc['rows']||[];})['then'](function(){var _0x20f95d=_0x45ce3f;return _0x32a97d[_0x20f95d('0x1a50')][_0x20f95d('0x2122')]({'userProfileId':_0x16353d[_0x20f95d('0x7fc')][_0x20f95d('0x2168')],'sectionId':0x195})[_0x20f95d('0x1dc2')];})[_0x45ce3f('0xaa5')](function(_0xa3c4ae){var _0x17c7ea=_0x45ce3f,_0x4d3051=_0xa3c4ae&&_0xa3c4ae['rows']?_0xa3c4ae[_0x17c7ea('0x580')][0x0]:null;if(!_0x4d3051)return _0x32a97d[_0x17c7ea('0x68c')][_0x17c7ea('0x2122')]({'fields':_0x17c7ea('0x17fe'),'sort':_0x17c7ea('0x25d6'),'defaultEntry':0x1})[_0x17c7ea('0x1dc2')][_0x17c7ea('0xaa5')](function(_0x4d0d7b){var _0x2312ff=_0x17c7ea;_0x16353d['contexts']=_0x4d0d7b[_0x2312ff('0x580')]||[];});else{if(!_0x4d3051[_0x17c7ea('0x26cc')])return _0x32a97d[_0x17c7ea('0x249a')][_0x17c7ea('0x2122')]({'sectionId':_0x4d3051['id']})[_0x17c7ea('0x1dc2')][_0x17c7ea('0xaa5')](function(_0x305b77){var _0x1d3f3c=_0x17c7ea,_0x4748a8=_0x51538b()[_0x1d3f3c('0x1246')](_0x305b77[_0x1d3f3c('0x580')],function(_0x437f34){var _0x2bcf81=_0x1d3f3c;return _0x51538b()[_0x2bcf81('0xe9e')](_0x16353d[_0x2bcf81('0xdc5')],{'id':_0x437f34[_0x2bcf81('0xbcd')]});}),_0x3882c8=null;_0x16353d[_0x1d3f3c('0xb5b')]&&(_0x3882c8=_0x51538b()[_0x1d3f3c('0xe9e')](_0x16353d[_0x1d3f3c('0xdc5')],{'name':_0x16353d[_0x1d3f3c('0xb5b')][_0x1d3f3c('0x19cd')]}));if(_0x3882c8&&!_0x51538b()['some'](_0x4748a8,['id',_0x3882c8['id']])){var _0x1647d3=_0x51538b()[_0x1d3f3c('0xe9e')](_0x16353d[_0x1d3f3c('0xdc5')],{'id':_0x3882c8['id']});_0x1647d3[_0x1d3f3c('0x12eb')]=![],_0x4748a8[_0x1d3f3c('0x1599')](_0x1647d3);}_0x16353d[_0x1d3f3c('0xdc5')]=_0x4748a8;});}})[_0x45ce3f('0x253d')](function(_0x2a865e){var _0x21d397=_0x45ce3f;_0x3df355[_0x21d397('0x187f')]({'title':_0x2a865e[_0x21d397('0x2fa')]?_0x21d397('0x16c2')+_0x2a865e['status']+_0x21d397('0x169e')+_0x2a865e[_0x21d397('0x24df')]:_0x21d397('0x2f7'),'msg':_0x2a865e['data']?JSON[_0x21d397('0xa48')](_0x2a865e[_0x21d397('0x10fd')]):_0x2a865e[_0x21d397('0x684')]()});});function _0xc06f25(_0x527ef5,_0x1bd380){var _0x112ede=_0x45ce3f;_0x23d0d3[_0x112ede('0x1e6d')]({'controller':'TelephonechangepasswordController','controllerAs':'vm','templateUrl':_0x2df4ad,'parent':angular[_0x112ede('0x1aa8')](_0x3dd3d1[_0x112ede('0x54c')]),'targetEvent':_0x1bd380,'clickOutsideToClose':!![],'locals':{'telephone':_0x527ef5,'setting':_0x2c94ec,'telephones':_0x16353d[_0x112ede('0x395')]?_0x16353d[_0x112ede('0x395')]['rows']:[],'crudPermissions':_0x16353d['crudPermissions']}});}function _0x4e8729(){var _0x16dcf2=_0x45ce3f;_0x54a67b['go']('app.staff.telephones',{},{'reload':_0x16dcf2('0xf6a')});}function _0xcf1c3e(){var _0x362393=_0x45ce3f;_0x32a97d['user'][_0x362393('0x264e')]({'id':_0x16353d[_0x362393('0xb5b')]['id']},_0x16353d[_0x362393('0xb5b')])[_0x362393('0x1dc2')]['then'](function(){var _0x1517d7=_0x362393;_0x3df355['success']({'title':_0x1517d7('0xa27'),'msg':_0x16353d['telephone'][_0x1517d7('0x25d6')]?_0x16353d[_0x1517d7('0xb5b')][_0x1517d7('0x25d6')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x4c783d){var _0x259a08=_0x362393;_0x3df355[_0x259a08('0x187f')]({'title':_0x4c783d['status']?_0x259a08('0x16c2')+_0x4c783d['status']+_0x259a08('0x169e')+_0x4c783d[_0x259a08('0x24df')]:'SYSTEM:GETuser','msg':_0x4c783d[_0x259a08('0x10fd')]?JSON[_0x259a08('0xa48')](_0x4c783d[_0x259a08('0x10fd')]):_0x4c783d[_0x259a08('0x684')]()});});}}const _0x53fac5=_0x2b78b7,_0x412264=_0x4fb511['p']+_0x1a8446('0x811');_0x1ce7ed['$inject']=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),'$translate',_0x1a8446('0x395'),'userProfile','userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f')];function _0x1ce7ed(_0x3ef292,_0x24d318,_0xee752c,_0x3801ec,_0x3b6562,_0x2e2f0d,_0x12e015,_0x1cbeb2,_0x53472d,_0x17eaf4,_0x35d87b,_0x31c1f4,_0x308709,_0x597a5a,_0x11b9e9,_0x46e59d,_0xb0c741){var _0x273b12=_0x1a8446,_0x5b002a=this;_0x5b002a[_0x273b12('0x1202')]=_0x46e59d,_0x5b002a[_0x273b12('0x143f')]=_0xb0c741,_0x5b002a[_0x273b12('0x7fc')]=_0x11b9e9[_0x273b12('0xacc')](),_0x5b002a[_0x273b12('0x395')]=_0x53472d||{'count':0x0,'rows':[]},_0x5b002a[_0x273b12('0x1e97')]=_0x17eaf4,_0x5b002a['userProfileSection']=_0x35d87b&&_0x35d87b[_0x273b12('0xd15')]==0x1?_0x35d87b['rows'][0x0]:null,_0x5b002a[_0x273b12('0xada')]=_0x11b9e9[_0x273b12('0xffd')](_0x5b002a['userProfileSection']?_0x5b002a[_0x273b12('0x1a50')][_0x273b12('0xada')]:null),_0x5b002a['table']=_0x273b12('0x395'),_0x5b002a['listOrder']='',_0x5b002a[_0x273b12('0x8cc')]=null,_0x5b002a[_0x273b12('0x6c7')]=[],_0x5b002a['query']={'fields':_0x273b12('0x1cb4'),'role':_0x273b12('0xb5b'),'sort':_0x273b12('0xd82'),'limit':0xa,'page':0x1},_0x5b002a['arraytransport']=_0x51538b()[_0x273b12('0x184a')]([{'option':_0x273b12('0x2723'),'value':_0x273b12('0x2322')},{'option':'tcp','value':'\x27tcp\x27'},{'option':'ws','value':'\x27ws\x27'},{'option':_0x273b12('0x15f2'),'value':_0x273b12('0x1bd')},{'option':_0x273b12('0x1bdc'),'value':_0x273b12('0x1f77')}],function(_0x33dad5){var _0x3f0865=_0x273b12;return _0x51538b()[_0x3f0865('0x170d')](_0x33dad5[_0x3f0865('0x12f4')],new RegExp('\x27','g'),'');}),_0x5b002a['arraynat']=_0x51538b()[_0x273b12('0x184a')]([{'option':_0x273b12('0x623'),'value':'\x27force_rport\x27'},{'option':'comedia','value':'\x27comedia\x27'},{'option':'yes','value':_0x273b12('0x14cf')},{'option':'no','value':_0x273b12('0x539')},{'option':_0x273b12('0x158d'),'value':_0x273b12('0x1781')},{'option':'route','value':'\x27route\x27'}],function(_0x13cd59){var _0x3a3dff=_0x273b12;return _0x51538b()[_0x3a3dff('0x170d')](_0x13cd59[_0x3a3dff('0x12f4')],new RegExp('\x27','g'),'');}),_0x5b002a[_0x273b12('0x140e')]=_0x51538b()[_0x273b12('0x184a')]([{'option':_0x273b12('0x1a1d'),'value':_0x273b12('0x24f7')},{'option':_0x273b12('0x129'),'value':_0x273b12('0x1dd5')},{'option':'gsm','value':_0x273b12('0x3cc')},{'option':_0x273b12('0x97f'),'value':_0x273b12('0x259d')},{'option':_0x273b12('0x118e'),'value':_0x273b12('0x2159')},{'option':_0x273b12('0xd1d'),'value':_0x273b12('0x2536')},{'option':_0x273b12('0x1a7d'),'value':'\x27h264\x27'}],function(_0x574164){var _0x297437=_0x273b12;return _0x51538b()['replace'](_0x574164[_0x297437('0x12f4')],new RegExp('\x27','g'),'');}),_0x5b002a[_0x273b12('0xc65')]=_0x51538b()['keyBy']([{'option':_0x273b12('0x1b84'),'value':_0x273b12('0x14cf')},{'option':'No','value':_0x273b12('0x539')},{'option':_0x273b12('0xc90'),'value':_0x273b12('0x1dc8')}],function(_0x267228){var _0x991ba=_0x273b12;return _0x51538b()[_0x991ba('0x170d')](_0x267228[_0x991ba('0x12f4')],new RegExp('\x27','g'),'');}),_0x5b002a[_0x273b12('0x18b6')]=_0x51538b()[_0x273b12('0x184a')]([{'option':'yes','value':_0x273b12('0x14cf')},{'option':'no','value':_0x273b12('0x539')}],function(_0x225cbc){var _0x2df87e=_0x273b12;return _0x51538b()[_0x2df87e('0x170d')](_0x225cbc[_0x2df87e('0x12f4')],new RegExp('\x27','g'),'');}),_0x5b002a[_0x273b12('0x1927')]=_0x5251e1,_0x5b002a[_0x273b12('0x271')]=_0x149db1,_0x5b002a[_0x273b12('0xe10')]=_0x556fc3,_0x5b002a[_0x273b12('0x79c')]=_0xeb2ccc,_0x5b002a['createOrEditTelephone']=_0x4ecaf3,_0x5b002a[_0x273b12('0x23ce')]=_0x257cbb,_0x5b002a['exportSelectedTelephones']=_0x16870f,_0x5b002a[_0x273b12('0x938')]=_0x3f8a9f,_0x5b002a[_0x273b12('0x843')]=_0x37429b,_0x5b002a[_0x273b12('0x6a7')]=_0x1e2e00;function _0x5251e1(_0x4de977){var _0x2e02b4=_0x273b12;_0xee752c['go']('app.staff.telephones.edit',{'id':_0x4de977['id'],'telephone':_0x4de977,'crudPermissions':_0x5b002a[_0x2e02b4('0xada')]});}function _0x149db1(_0x1a1b02,_0x3bb74b){var _0x1e5d35=_0x273b12,_0x5d4c71=_0x3b6562['confirm']()[_0x1e5d35('0x110a')](_0x1e5d35('0x88d')+_0x51538b()[_0x1e5d35('0x196a')](_0x1e5d35('0xb5b'))+'?')[_0x1e5d35('0x102e')](''+(_0x1a1b02['name']||_0x1e5d35('0xb5b'))+_0x1e5d35('0x697')+_0x1e5d35('0x210d'))[_0x1e5d35('0x5b5')]('delete\x20telephone')['targetEvent'](_0x3bb74b)['ok']('OK')['cancel'](_0x1e5d35('0x2410'));_0x3b6562[_0x1e5d35('0x1e6d')](_0x5d4c71)[_0x1e5d35('0xaa5')](function(){_0x257cbb(_0x1a1b02);},function(){console['log']('CANCEL');});}var _0x53290e=!![],_0x283e3c=0x1;_0x3ef292[_0x273b12('0x1ccf')]('vm.query.filter',function(_0x27d0f3,_0x5ef7f0){var _0x3c5028=_0x273b12;_0x53290e?_0x12e015(function(){_0x53290e=![];}):(!_0x5ef7f0&&(_0x283e3c=_0x5b002a[_0x3c5028('0x582')][_0x3c5028('0x41')]),_0x27d0f3!==_0x5ef7f0&&(_0x5b002a['query'][_0x3c5028('0x41')]=0x1),!_0x27d0f3&&(_0x5b002a[_0x3c5028('0x582')][_0x3c5028('0x41')]=_0x283e3c),_0x5b002a[_0x3c5028('0x79c')]());});function _0x556fc3(_0x3ccebd){var _0x3f1f46=_0x273b12;_0x5b002a[_0x3f1f46('0x395')]=_0x3ccebd||{'count':0x0,'rows':[]};}function _0xeb2ccc(){var _0xeaa7eb=_0x273b12;_0x5b002a['query']['offset']=(_0x5b002a[_0xeaa7eb('0x582')][_0xeaa7eb('0x41')]-0x1)*_0x5b002a[_0xeaa7eb('0x582')][_0xeaa7eb('0xf4d')],_0x11b9e9[_0xeaa7eb('0x26e8')](_0xeaa7eb('0x178b'))?_0x5b002a[_0xeaa7eb('0x159a')]=_0x31c1f4[_0xeaa7eb('0x272b')][_0xeaa7eb('0x2122')](_0x5b002a[_0xeaa7eb('0x582')],_0x556fc3)[_0xeaa7eb('0x1dc2')]:(_0x5b002a[_0xeaa7eb('0x582')]['id']=_0x5b002a[_0xeaa7eb('0x1e97')]['id'],_0x5b002a[_0xeaa7eb('0x582')][_0xeaa7eb('0x224d')]=_0xeaa7eb('0x1c00'),_0x5b002a[_0xeaa7eb('0x159a')]=_0x31c1f4['userProfile']['getResources'](_0x5b002a[_0xeaa7eb('0x582')],_0x556fc3)['$promise']);}function _0x4ecaf3(_0x241333,_0x32878e){var _0x9208c=_0x273b12;_0x3b6562[_0x9208c('0x1e6d')]({'controller':_0x9208c('0x4ef'),'controllerAs':'vm','templateUrl':_0x412264,'parent':angular[_0x9208c('0x1aa8')](_0x2e2f0d['body']),'targetEvent':_0x241333,'clickOutsideToClose':!![],'locals':{'telephone':_0x32878e,'telephones':_0x5b002a['telephones']['rows'],'license':_0x5b002a[_0x9208c('0x1202')],'setting':_0x5b002a['setting'],'crudPermissions':_0x5b002a[_0x9208c('0xada')]}});}function _0x257cbb(_0xc71db0){var _0x4a9931=_0x273b12;_0x31c1f4[_0x4a9931('0x272b')]['delete']({'id':_0xc71db0['id']})[_0x4a9931('0x1dc2')][_0x4a9931('0xaa5')](function(){var _0x5456ef=_0x4a9931;_0x51538b()[_0x5456ef('0xf6d')](_0x5b002a['telephones']['rows'],{'id':_0xc71db0['id']}),_0x5b002a[_0x5456ef('0x395')][_0x5456ef('0xd15')]-=0x1,!_0x5b002a[_0x5456ef('0x395')][_0x5456ef('0x580')][_0x5456ef('0x2587')]&&_0x5b002a[_0x5456ef('0x79c')](),_0x597a5a[_0x5456ef('0xe10')]({'title':_0x51538b()['startCase'](_0x5456ef('0xd0c'))+_0x5456ef('0x8bb'),'msg':_0xc71db0[_0x5456ef('0x25d6')]?_0xc71db0[_0x5456ef('0x25d6')]+_0x5456ef('0xcd9'):''});})['catch'](function(_0x2266d8){var _0x4e1115=_0x4a9931;if(_0x2266d8[_0x4e1115('0x10fd')]&&_0x2266d8[_0x4e1115('0x10fd')]['errors']&&_0x2266d8[_0x4e1115('0x10fd')]['errors'][_0x4e1115('0x2587')]){_0x5b002a['errors']=_0x2266d8[_0x4e1115('0x10fd')][_0x4e1115('0x4c6')]||[{'message':_0x2266d8[_0x4e1115('0x684')](),'type':_0x4e1115('0xb68')}];for(var _0x413ddc=0x0;_0x413ddc<_0x2266d8[_0x4e1115('0x10fd')][_0x4e1115('0x4c6')][_0x4e1115('0x2587')];_0x413ddc++){_0x597a5a['error']({'title':_0x2266d8[_0x4e1115('0x10fd')]['errors'][_0x413ddc][_0x4e1115('0x6c8')],'msg':_0x2266d8['data']['errors'][_0x413ddc]['message']});}}else _0x597a5a[_0x4e1115('0x187f')]({'title':_0x2266d8[_0x4e1115('0x2fa')]?_0x4e1115('0x16c2')+_0x2266d8[_0x4e1115('0x2fa')]+_0x4e1115('0x169e')+_0x2266d8['statusText']:_0x4e1115('0xb68'),'msg':_0x2266d8[_0x4e1115('0x10fd')]?JSON[_0x4e1115('0xa48')](_0x2266d8[_0x4e1115('0x10fd')]['message']):_0x2266d8['message']||_0x2266d8[_0x4e1115('0x684')]()});});}function _0x16870f(){var _0xdec0be=_0x273b12,_0x3cf8c4=angular[_0xdec0be('0x20a')](_0x5b002a['selectedTelephones']);return _0x5b002a[_0xdec0be('0x6c7')]=[],_0x3cf8c4;}function _0x3f8a9f(_0x5a6692){var _0x21cc6c=_0x273b12,_0x368696=_0x3b6562[_0x21cc6c('0x281e')]()[_0x21cc6c('0x110a')](_0x21cc6c('0x17a7'))[_0x21cc6c('0x102e')](_0x21cc6c('0x389')+_0x5b002a[_0x21cc6c('0x6c7')]['length']+_0x21cc6c('0x1443')+_0x21cc6c('0x210d'))['ariaLabel']('delete\x20Telephones')[_0x21cc6c('0x116d')](_0x5a6692)['ok']('OK')[_0x21cc6c('0x2030')](_0x21cc6c('0x2410'));_0x3b6562[_0x21cc6c('0x1e6d')](_0x368696)[_0x21cc6c('0xaa5')](function(){var _0x1f05ac=_0x21cc6c;_0x5b002a['selectedTelephones'][_0x1f05ac('0x15b5')](function(_0x1c6a41){_0x257cbb(_0x1c6a41);}),_0x5b002a[_0x1f05ac('0x6c7')]=[];});}function _0x37429b(){var _0x4c4512=_0x273b12;_0x5b002a[_0x4c4512('0x6c7')]=[];}function _0x1e2e00(){var _0x1acb2f=_0x273b12;_0x5b002a['selectedTelephones']=_0x5b002a[_0x1acb2f('0x395')][_0x1acb2f('0x580')];}}const _0x5e25bd=_0x1ce7ed;_0x1df109[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x25b0'),_0x1a8446('0x1e97'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x1df109(_0x2a4b5d,_0x41b995,_0x284f31,_0x278e0a,_0x4cb166,_0x1e4e83,_0x2b3aa4,_0x2cc9eb,_0x142cf1,_0x414d5f,_0x6e75ab,_0x56cd06,_0x2a1cbc,_0x285c92){var _0x4a5861=_0x1a8446,_0x329750=this;_0x329750[_0x4a5861('0x7fc')]=_0x6e75ab['getCurrentUser'](),_0x329750[_0x4a5861('0x4c6')]=[],_0x329750[_0x4a5861('0x143f')]=_0x2a1cbc,_0x329750[_0x4a5861('0x1202')]=_0x56cd06,_0x329750[_0x4a5861('0xada')]=_0x285c92,_0x329750[_0x4a5861('0x9f0')]={},_0x329750[_0x4a5861('0x1d53')]=_0x329750[_0x4a5861('0x143f')]&&_0x329750[_0x4a5861('0x143f')][_0x4a5861('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x329750['title']=_0x4a5861('0xcbc'),_0x329750[_0x4a5861('0x1e97')]=angular[_0x4a5861('0x20a')](_0x142cf1),_0x329750[_0x4a5861('0x25b0')]=_0x2cc9eb,_0x329750[_0x4a5861('0xea7')]=![];!_0x329750[_0x4a5861('0x1e97')]&&(_0x329750[_0x4a5861('0x1e97')]={'crudPermissions':['r']},_0x329750[_0x4a5861('0x110a')]='STAFF.NEW_USERPROFILE',_0x329750[_0x4a5861('0xea7')]=!![]);_0x329750[_0x4a5861('0xff7')]=_0x49f6a3,_0x329750[_0x4a5861('0xfa4')]=_0x28bc63,_0x329750[_0x4a5861('0x30c')]=_0x78946,_0x329750['getDateFromString']=_0x3f7a25,_0x329750[_0x4a5861('0x2023')]=_0x451a7d;function _0x49f6a3(){var _0x3792c7=_0x4a5861;_0x329750[_0x3792c7('0x4c6')]=[],_0x414d5f['userProfile']['save'](_0x329750['userProfile'])[_0x3792c7('0x1dc2')][_0x3792c7('0xaa5')](function(_0x5357c8){var _0x3b855a=_0x3792c7;_0x27dd40(_0x5357c8),_0x329750['userProfiles'][_0x3b855a('0x6ee')](_0x5357c8['toJSON']()),_0x2b3aa4[_0x3b855a('0xe10')]({'title':'UserProfile\x20properly\x20created','msg':_0x329750[_0x3b855a('0x1e97')][_0x3b855a('0x25d6')]?_0x329750[_0x3b855a('0x1e97')][_0x3b855a('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x451a7d(_0x5357c8);})[_0x3792c7('0x253d')](function(_0x561e1a){var _0x404cc3=_0x3792c7;if(_0x561e1a['data']&&_0x561e1a['data']['errors']&&_0x561e1a[_0x404cc3('0x10fd')][_0x404cc3('0x4c6')][_0x404cc3('0x2587')]){_0x329750[_0x404cc3('0x4c6')]=_0x561e1a[_0x404cc3('0x10fd')][_0x404cc3('0x4c6')]||[{'message':_0x561e1a['toString'](),'type':_0x404cc3('0xbc8')}];for(var _0xd77065=0x0;_0xd77065<_0x561e1a[_0x404cc3('0x10fd')][_0x404cc3('0x4c6')][_0x404cc3('0x2587')];_0xd77065+=0x1){_0x2b3aa4['error']({'title':_0x561e1a['data'][_0x404cc3('0x4c6')][_0xd77065][_0x404cc3('0x6c8')],'msg':_0x561e1a[_0x404cc3('0x10fd')][_0x404cc3('0x4c6')][_0xd77065]['message']});}}else _0x2b3aa4[_0x404cc3('0x187f')]({'title':_0x561e1a[_0x404cc3('0x2fa')]?_0x404cc3('0x16c2')+_0x561e1a[_0x404cc3('0x2fa')]+_0x404cc3('0x169e')+_0x561e1a[_0x404cc3('0x24df')]:'api.userProfile.save','msg':_0x561e1a[_0x404cc3('0x10fd')]?JSON[_0x404cc3('0xa48')](_0x561e1a['data'][_0x404cc3('0x1402')]):_0x561e1a[_0x404cc3('0x684')]()});});}function _0x28bc63(){var _0x3fafdb=_0x4a5861;_0x329750[_0x3fafdb('0x4c6')]=[],_0x414d5f[_0x3fafdb('0x1e97')][_0x3fafdb('0x264e')]({'id':_0x329750[_0x3fafdb('0x1e97')]['id']},_0x329750[_0x3fafdb('0x1e97')])[_0x3fafdb('0x1dc2')][_0x3fafdb('0xaa5')](function(_0x529607){var _0x1c5523=_0x3fafdb,_0x23d27e=_0x51538b()[_0x1c5523('0xe9e')](_0x329750['userProfiles'],{'id':_0x529607['id']});_0x23d27e&&_0x51538b()['merge'](_0x23d27e,_0x51538b()['pick'](_0x529607[_0x1c5523('0x256a')](),_0x51538b()[_0x1c5523('0x9f2')](_0x23d27e))),_0x2b3aa4[_0x1c5523('0xe10')]({'title':_0x1c5523('0xc56'),'msg':_0x329750[_0x1c5523('0x1e97')][_0x1c5523('0x25d6')]?_0x329750['userProfile'][_0x1c5523('0x25d6')]+_0x1c5523('0x20bf'):''}),_0x451a7d(_0x529607);})[_0x3fafdb('0x253d')](function(_0x387d23){var _0x3be215=_0x3fafdb;if(_0x387d23[_0x3be215('0x10fd')]&&_0x387d23['data'][_0x3be215('0x4c6')]&&_0x387d23['data'][_0x3be215('0x4c6')][_0x3be215('0x2587')]){_0x329750[_0x3be215('0x4c6')]=_0x387d23[_0x3be215('0x10fd')][_0x3be215('0x4c6')]||[{'message':_0x387d23[_0x3be215('0x684')](),'type':_0x3be215('0x2437')}];for(var _0xc5d084=0x0;_0xc5d084<_0x387d23[_0x3be215('0x10fd')][_0x3be215('0x4c6')][_0x3be215('0x2587')];_0xc5d084++){_0x2b3aa4[_0x3be215('0x187f')]({'title':_0x387d23[_0x3be215('0x10fd')][_0x3be215('0x4c6')][_0xc5d084][_0x3be215('0x6c8')],'msg':_0x387d23[_0x3be215('0x10fd')][_0x3be215('0x4c6')][_0xc5d084][_0x3be215('0x1402')]});}}else _0x2b3aa4[_0x3be215('0x187f')]({'title':_0x387d23[_0x3be215('0x2fa')]?'API:'+_0x387d23[_0x3be215('0x2fa')]+'\x20-\x20'+_0x387d23[_0x3be215('0x24df')]:'api.userProfile.update','msg':_0x387d23[_0x3be215('0x10fd')]?JSON[_0x3be215('0xa48')](_0x387d23[_0x3be215('0x10fd')]['message']):_0x387d23[_0x3be215('0x684')]()});});}function _0x78946(_0x5d0d15){var _0x4c9486=_0x4a5861;_0x329750[_0x4c9486('0x4c6')]=[];var _0x114368=_0x278e0a[_0x4c9486('0x281e')]()[_0x4c9486('0x110a')](_0x4c9486('0x12a3'))[_0x4c9486('0x15af')](_0x4c9486('0x17f7'))['ariaLabel']('Delete\x20UserProfile')['ok']('Delete')[_0x4c9486('0x2030')](_0x4c9486('0x9c6'))[_0x4c9486('0x116d')](_0x5d0d15);_0x278e0a['show'](_0x114368)[_0x4c9486('0xaa5')](function(){var _0x39e610=_0x4c9486;_0x414d5f[_0x39e610('0x1e97')][_0x39e610('0x926')]({'id':_0x329750['userProfile']['id']})[_0x39e610('0x1dc2')][_0x39e610('0xaa5')](function(){var _0x4a0767=_0x39e610;_0x51538b()[_0x4a0767('0xf6d')](_0x329750[_0x4a0767('0x25b0')],{'id':_0x329750[_0x4a0767('0x1e97')]['id']}),_0x2b3aa4[_0x4a0767('0xe10')]({'title':_0x4a0767('0x1521'),'msg':(_0x329750[_0x4a0767('0x1e97')][_0x4a0767('0x25d6')]||_0x4a0767('0x1e97'))+_0x4a0767('0xcd9')}),_0x451a7d(_0x329750['userProfile']);})['catch'](function(_0x2dc743){var _0x4d869f=_0x39e610;if(_0x2dc743[_0x4d869f('0x10fd')]&&_0x2dc743[_0x4d869f('0x10fd')][_0x4d869f('0x4c6')]&&_0x2dc743[_0x4d869f('0x10fd')][_0x4d869f('0x4c6')]['length']){_0x329750['errors']=_0x2dc743[_0x4d869f('0x10fd')]['errors']||[{'message':_0x2dc743[_0x4d869f('0x684')](),'type':_0x4d869f('0x1936')}];for(var _0x324a19=0x0;_0x324a19<_0x2dc743[_0x4d869f('0x10fd')][_0x4d869f('0x4c6')][_0x4d869f('0x2587')];_0x324a19++){_0x2b3aa4[_0x4d869f('0x187f')]({'title':_0x2dc743[_0x4d869f('0x10fd')][_0x4d869f('0x4c6')][_0x324a19][_0x4d869f('0x6c8')],'msg':_0x2dc743[_0x4d869f('0x10fd')][_0x4d869f('0x4c6')][_0x324a19][_0x4d869f('0x1402')]});}}else _0x2b3aa4[_0x4d869f('0x187f')]({'title':_0x2dc743[_0x4d869f('0x2fa')]?_0x4d869f('0x16c2')+_0x2dc743[_0x4d869f('0x2fa')]+_0x4d869f('0x169e')+_0x2dc743[_0x4d869f('0x24df')]:'api.userProfile.delete','msg':_0x2dc743[_0x4d869f('0x10fd')]?JSON[_0x4d869f('0xa48')](_0x2dc743[_0x4d869f('0x10fd')][_0x4d869f('0x1402')]):_0x2dc743[_0x4d869f('0x1402')]||_0x2dc743['toString']()});});},function(){});}function _0x27dd40(_0x2c7e3d){var _0xa293be=_0x4a5861,_0x2ce375=[];_0x2c7e3d['crudPermissions'][_0xa293be('0x15b5')](function(_0xe59a8a){var _0x3b244b=_0xa293be,_0x51269c;switch(_0xe59a8a){case'r':_0x51269c='READ_PERMISSION';break;case'e':_0x51269c=_0x3b244b('0x198b');break;case'd':_0x51269c=_0x3b244b('0x155f');break;}_0x2ce375[_0x3b244b('0x1599')](_0x1e4e83[_0x3b244b('0x213f')](_0x3b244b('0x303')+_0x51269c));}),_0x2c7e3d['selectedcrudPermissions']=_0x2ce375['join'](',\x20');}function _0x3f7a25(_0x41937b){return _0x41937b===null?undefined:new Date(_0x41937b);}function _0x451a7d(_0x5c2b04){var _0x9f28e8=_0x4a5861;_0x278e0a[_0x9f28e8('0x1120')](_0x5c2b04);}}const _0x4aeeb9=_0x1df109;_0xf6f55a['$inject']=[_0x1a8446('0x2378'),'$state',_0x1a8446('0x2a4'),'api',_0x1a8446('0x1e97'),_0x1a8446('0x25b0'),_0x1a8446('0xcb3')];function _0xf6f55a(_0x474525,_0xe6416f,_0x295d18,_0x20a20e,_0x2c545d,_0x49137e,_0x2b581f){var _0x1b9333=_0x1a8446,_0x44d36f=this;_0x44d36f[_0x1b9333('0xea7')]=!![],_0x44d36f['userProfile']=angular[_0x1b9333('0x20a')](_0x2c545d),_0x44d36f[_0x1b9333('0x25b0')]=_0x49137e,_0x44d36f[_0x1b9333('0x110a')]=_0x2b581f['instant']('STAFF.CLONE_USERPROFILE');_0x2c545d&&_0x2c545d[_0x1b9333('0x25d6')]&&(_0x44d36f['title']+=':\x20'+_0x2c545d[_0x1b9333('0x25d6')]);_0x44d36f[_0x1b9333('0x493')]=_0x9e55c7,_0x44d36f['closeDialog']=_0x328eb5;function _0x9e55c7(){var _0x15855c=_0x1b9333;return _0x20a20e['userProfile'][_0x15855c('0x1ae5')]({'id':_0x2c545d['id']},_0x44d36f[_0x15855c('0x1e97')])[_0x15855c('0x1dc2')]['then'](function(_0x227b6){var _0x29231f=_0x15855c;_0x28975f(_0x227b6),_0x44d36f[_0x29231f('0x25b0')][_0x29231f('0x6ee')](_0x227b6[_0x29231f('0x256a')]()),_0x295d18[_0x29231f('0xe10')]({'title':_0x29231f('0x118c'),'msg':_0x44d36f[_0x29231f('0x1e97')][_0x29231f('0x25d6')]?_0x44d36f[_0x29231f('0x1e97')]['name']+'\x20has\x20been\x20cloned!':''}),_0xe6416f['go'](_0x29231f('0x5a8'),{'id':_0x227b6['id']}),_0x328eb5(_0x227b6);})[_0x15855c('0x253d')](function(_0x42c571){var _0x1dac30=_0x15855c;if(_0x42c571['data']&&_0x42c571[_0x1dac30('0x10fd')][_0x1dac30('0x4c6')]&&_0x42c571[_0x1dac30('0x10fd')][_0x1dac30('0x4c6')][_0x1dac30('0x2587')]){_0x44d36f[_0x1dac30('0x4c6')]=_0x42c571[_0x1dac30('0x10fd')][_0x1dac30('0x4c6')]||[{'message':_0x42c571['toString'](),'type':'api.userProfile.clone'}];for(var _0x25c2e4=0x0;_0x25c2e4<_0x42c571[_0x1dac30('0x10fd')]['errors'][_0x1dac30('0x2587')];_0x25c2e4+=0x1){_0x295d18[_0x1dac30('0x187f')]({'title':_0x42c571[_0x1dac30('0x10fd')][_0x1dac30('0x4c6')][_0x25c2e4][_0x1dac30('0x6c8')],'msg':_0x42c571['data']['errors'][_0x25c2e4][_0x1dac30('0x1402')]});}}else _0x295d18[_0x1dac30('0x187f')]({'title':_0x42c571['status']?_0x1dac30('0x16c2')+_0x42c571[_0x1dac30('0x2fa')]+_0x1dac30('0x169e')+_0x42c571['statusText']:_0x1dac30('0x176'),'msg':_0x42c571[_0x1dac30('0x10fd')]?JSON[_0x1dac30('0xa48')](_0x42c571[_0x1dac30('0x10fd')]['message']):_0x42c571[_0x1dac30('0x684')]()});});}function _0x28975f(_0x4d7c45){var _0x3f97fb=_0x1b9333,_0x15e877=[];_0x4d7c45[_0x3f97fb('0xada')][_0x3f97fb('0x15b5')](function(_0x224518){var _0x3a391e=_0x3f97fb,_0x567ffe;switch(_0x224518){case'r':_0x567ffe=_0x3a391e('0x19d3');break;case'e':_0x567ffe=_0x3a391e('0x198b');break;case'd':_0x567ffe=_0x3a391e('0x155f');break;}_0x15e877[_0x3a391e('0x1599')](_0x2b581f['instant'](_0x3a391e('0x303')+_0x567ffe));}),_0x4d7c45[_0x3f97fb('0x20dc')]=_0x15e877[_0x3f97fb('0x19c4')](',\x20');}function _0x328eb5(_0x10e724){var _0x5379eb=_0x1b9333;_0x474525[_0x5379eb('0x1120')](_0x10e724);}}const _0x203cec=_0xf6f55a,_0x5006d3=_0x4fb511['p']+_0x1a8446('0xad4');_0x3bf37c['$inject']=[_0x1a8446('0x39b'),_0x1a8446('0x2378'),'$translate','$q','api',_0x1a8446('0x1f4b'),_0x1a8446('0x1dfd'),'toasty'];function _0x3bf37c(_0x341587,_0x270b89,_0x38c317,_0x2a8ae8,_0x3e4c34,_0x22c822,_0x3617d3,_0x24bb9d){var _0x530c3f=_0x1a8446,_0x4870be=this;_0x4870be[_0x530c3f('0x1e97')]={},_0x4870be[_0x530c3f('0x1202')]={},_0x4870be[_0x530c3f('0x146a')]=_0x22c822[_0x530c3f('0x236')](),_0x4870be[_0x530c3f('0x269')]=_0x4870be[_0x530c3f('0x146a')][0x0][_0x530c3f('0x12ad')],_0x4870be[_0x530c3f('0x23ac')]=[{'id':0x0,'name':'Fully\x20Enabled','color':'green-A700-bg','info':_0x530c3f('0x21c0'),'tag':_0x530c3f('0x1548')},{'id':0x1,'name':_0x530c3f('0x22a7'),'color':_0x530c3f('0x806'),'info':_0x530c3f('0xdc0'),'tag':_0x530c3f('0x34a')},{'id':0x2,'name':'Disabled','color':_0x530c3f('0x1295'),'info':'No\x20resources\x20enabled','tag':_0x530c3f('0x2686')},{'id':0x3,'name':_0x530c3f('0xe36'),'color':_0x530c3f('0x5bc'),'info':_0x530c3f('0x1a68'),'tag':_0x530c3f('0x190')},{'id':0x4,'name':_0x530c3f('0x1089'),'color':'grey-A700-bg','info':_0x530c3f('0x1862'),'tag':_0x530c3f('0x15fd')}],_0x4870be[_0x530c3f('0x1580')]=[{'title':_0x530c3f('0x236c'),'translate':_0x530c3f('0x2546'),'id':0x64}],_0x4870be[_0x530c3f('0x2e')]=_0x189406,_0x4870be[_0x530c3f('0x2086')]=_0x52cf9e,_0x4870be['manageResources']=_0x22e331,_0x4870be['checkSectionResources']=_0x22b341;function _0x189406(_0x4c0c62,_0xe5f965){var _0x390b7a=_0x530c3f;_0x4870be[_0x390b7a('0x1e97')]=_0x4c0c62,_0x4870be[_0x390b7a('0x1202')]=_0xe5f965;}function _0x52cf9e(_0x2e179e){var _0x428d3c=_0x530c3f,_0x38ddf2=typeof _0x2e179e[_0x428d3c('0x193d')]!=='undefined'&&!_0x2e179e[_0x428d3c('0x193d')][_0x428d3c('0x948')]?!![]:![],_0x30d856=_0x2e179e[_0x428d3c('0x110a')]===_0x428d3c('0x5b8')?_0x428d3c('0x2195'):_0x2e179e[_0x428d3c('0x110a')];if(_0x2e179e[_0x428d3c('0x2fa')][_0x428d3c('0x25d6')]!=='Fully\x20Enabled'){var _0x5ccb46=[];if(!_0x38ddf2){var _0x19cc40=_0x270b89[_0x428d3c('0x281e')]({'skipHide':!![]})['title']('Warning')[_0x428d3c('0x447')](_0x38c317[_0x428d3c('0x213f')](_0x428d3c('0x2167'),{'sectionName':_0x38c317[_0x428d3c('0x213f')](_0x2e179e[_0x428d3c('0x5d1')])}))['ariaLabel'](_0x428d3c('0x24ce'))['ok'](_0x38c317[_0x428d3c('0x213f')](_0x428d3c('0xbc3')))[_0x428d3c('0x2030')](_0x38c317[_0x428d3c('0x213f')](_0x428d3c('0x1247')));_0x270b89[_0x428d3c('0x1e6d')](_0x19cc40)[_0x428d3c('0xaa5')](function(){var _0x428a3f=_0x428d3c;switch(_0x30d856){case _0x428a3f('0x236c'):_0x51538b()[_0x428a3f('0x1246')](_0x4870be[_0x428a3f('0x1580')],function(_0x5e7f86){var _0x1408d9=_0x428a3f;_0x5ccb46['push']({'category':_0x30d856,'sectionId':_0x5e7f86['id'],'name':_0x5e7f86[_0x1408d9('0x110a')],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x51538b()[_0x1408d9('0x1246')](_0x4870be[_0x1408d9('0x1e97')][_0x1408d9('0xada')])[_0x1408d9('0x19c4')]('')});});break;default:_0x51538b()[_0x428a3f('0x1246')](_0x2e179e[_0x428a3f('0x12ad')],function(_0x39252c){var _0x476c2e=_0x428a3f,_0x27f867=typeof _0x39252c[_0x476c2e('0x193d')]!=_0x476c2e('0x1574')&&_0x39252c[_0x476c2e('0x193d')][_0x476c2e('0x1ad2')]?!![]:![];if(!_0x27f867){var _0x5bd8d6=_0x39252c['title'];switch(_0x30d856){case _0x476c2e('0xa44'):_0x5bd8d6=_0x5bd8d6===_0x476c2e('0x1fdc')?_0x476c2e('0x1fed'):_0x5bd8d6;break;}_0x5ccb46['push']({'category':_0x30d856,'sectionId':_0x39252c['id'],'name':_0x5bd8d6,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x51538b()['map'](_0x4870be[_0x476c2e('0x1e97')]['crudPermissions'])[_0x476c2e('0x19c4')]('')});}});break;}return _0x3e4c34[_0x428a3f('0x1e97')][_0x428a3f('0x10df')]({'id':_0x4870be[_0x428a3f('0x1e97')]['id']},_0x5ccb46)[_0x428a3f('0x1dc2')][_0x428a3f('0xaa5')](function(){var _0x121771=_0x428a3f;_0x2e179e['status']=_0x232ebc(_0x2e179e,_0x121771('0x1548')),_0x24bb9d['success']({'title':_0x38c317[_0x121771('0x213f')](_0x121771('0x1c11'),{'sectionName':_0x38c317['instant'](_0x2e179e['translate']),'userProfileName':_0x4870be['userProfile'][_0x121771('0x25d6')]}),'msg':_0x38c317[_0x121771('0x213f')](_0x121771('0x2a0'),{'sectionName':_0x38c317[_0x121771('0x213f')](_0x2e179e['translate']),'userProfileName':_0x4870be[_0x121771('0x1e97')][_0x121771('0x25d6')]})});});})[_0x428d3c('0x253d')](function(_0x4b6379){var _0x2d2b5e=_0x428d3c;_0x4b6379?_0x24bb9d[_0x2d2b5e('0x187f')]({'title':_0x4b6379['status']?_0x2d2b5e('0x16c2')+_0x4b6379['status']+'\x20-\x20'+_0x4b6379[_0x2d2b5e('0x24df')]:_0x2d2b5e('0x19b2'),'msg':_0x4b6379[_0x2d2b5e('0x2fa')]?JSON['stringify'](_0x4b6379[_0x2d2b5e('0x10fd')]):_0x4b6379[_0x2d2b5e('0x684')]()}):_0x2e179e['status']=_0x232ebc(_0x2e179e,_0x2e179e['status'][_0x2d2b5e('0x38f')]);});}else return _0x5ccb46[_0x428d3c('0x1599')]({'category':_0x30d856,'sectionId':_0x2e179e['id'],'name':_0x30d856,'enabled':!![],'crudPermissions':'red'}),_0x3e4c34[_0x428d3c('0x1e97')][_0x428d3c('0x10df')]({'id':_0x4870be[_0x428d3c('0x1e97')]['id']},_0x5ccb46)[_0x428d3c('0x1dc2')]['then'](function(){var _0x1af089=_0x428d3c;_0x2e179e['status']=_0x232ebc(_0x2e179e,_0x1af089('0x1548')),_0x24bb9d[_0x1af089('0xe10')]({'title':_0x38c317['instant'](_0x1af089('0x1c11'),{'sectionName':_0x38c317[_0x1af089('0x213f')](_0x2e179e[_0x1af089('0x5d1')]),'userProfileName':_0x4870be[_0x1af089('0x1e97')][_0x1af089('0x25d6')]}),'msg':_0x38c317['instant'](_0x1af089('0x7bc'),{'sectionName':_0x38c317[_0x1af089('0x213f')](_0x2e179e[_0x1af089('0x5d1')]),'userProfileName':_0x4870be[_0x1af089('0x1e97')][_0x1af089('0x25d6')]})});})[_0x428d3c('0x253d')](function(_0xb80ba5){var _0x264f03=_0x428d3c;_0x24bb9d['error']({'title':_0xb80ba5[_0x264f03('0x2fa')]?_0x264f03('0x16c2')+_0xb80ba5[_0x264f03('0x2fa')]+_0x264f03('0x169e')+_0xb80ba5[_0x264f03('0x24df')]:_0x264f03('0x19b2'),'msg':_0xb80ba5[_0x264f03('0x2fa')]?JSON[_0x264f03('0xa48')](_0xb80ba5[_0x264f03('0x10fd')]):_0xb80ba5[_0x264f03('0x684')]()});});}else{if(_0x2e179e[_0x428d3c('0x2fa')][_0x428d3c('0x25d6')]==='Fully\x20Enabled'){_0x2e179e[_0x428d3c('0x2fa')]=_0x232ebc(_0x2e179e,_0x428d3c('0x2686'));var _0xc5a44a=[];switch(_0x30d856){case _0x428d3c('0x26d1'):case _0x428d3c('0x1a51'):_0xc5a44a=[_0x2e179e['id']];break;case _0x428d3c('0x236c'):_0xc5a44a=_0x51538b()[_0x428d3c('0x1246')](_0x4870be[_0x428d3c('0x1580')],function(_0xab61e){return _0xab61e['id'];});break;default:_0xc5a44a=_0x51538b()[_0x428d3c('0x1246')](_0x2e179e[_0x428d3c('0x12ad')],function(_0xfe9dd1){return _0xfe9dd1['id'];});break;}return _0x3e4c34[_0x428d3c('0x1e97')][_0x428d3c('0x1173')]({'id':_0x4870be[_0x428d3c('0x1e97')]['id'],'ids':_0xc5a44a})[_0x428d3c('0x1dc2')]['then'](function(){var _0x253c0d=_0x428d3c;_0x24bb9d[_0x253c0d('0xe10')]({'title':_0x38c317[_0x253c0d('0x213f')](_0x253c0d('0x1489'),{'sectionName':_0x38c317[_0x253c0d('0x213f')](_0x2e179e[_0x253c0d('0x5d1')]),'userProfileName':_0x4870be['userProfile'][_0x253c0d('0x25d6')]}),'msg':_0x38c317['instant'](_0x253c0d('0x22a2'),{'sectionName':_0x38c317[_0x253c0d('0x213f')](_0x2e179e[_0x253c0d('0x5d1')]),'userProfileName':_0x4870be['userProfile'][_0x253c0d('0x25d6')]})});})[_0x428d3c('0x253d')](function(_0x19d5d6){var _0x12d426=_0x428d3c;_0x24bb9d[_0x12d426('0x187f')]({'title':_0x19d5d6[_0x12d426('0x2fa')]?_0x12d426('0x16c2')+_0x19d5d6[_0x12d426('0x2fa')]+_0x12d426('0x169e')+_0x19d5d6['statusText']:'SYSTEM:USERPROFILE.REMOVESECTIONS','msg':_0x19d5d6['status']?JSON[_0x12d426('0xa48')](_0x19d5d6[_0x12d426('0x10fd')]):_0x19d5d6[_0x12d426('0x684')]()});});}}}function _0x22e331(_0x29997b,_0x5e6344){var _0xcf681e=_0x530c3f,_0x258afc=_0x270b89['show']({'controller':_0xcf681e('0x2827'),'controllerAs':'vm','templateUrl':_0x5006d3,'parent':angular[_0xcf681e('0x1aa8')](_0x341587[_0xcf681e('0x54c')]),'targetEvent':_0x5e6344,'clickOutsideToClose':![],'locals':{'userProfile':_0x4870be[_0xcf681e('0x1e97')],'userProfiles':[],'section':_0x29997b}});_0x258afc[_0xcf681e('0xaa5')](function(){_0x22b341(_0x29997b);});}function _0x232ebc(_0x491f6a,_0x2e3395){var _0x18dee8=_0x530c3f;_0x491f6a[_0x18dee8('0x1a92')]=_0x5970af(_0x2e3395);switch(_0x2e3395){case _0x18dee8('0x1548'):return _0x51538b()[_0x18dee8('0xe9e')](_0x4870be[_0x18dee8('0x23ac')],[_0x18dee8('0x38f'),_0x18dee8('0x1548')]);case'partial':return _0x51538b()[_0x18dee8('0xe9e')](_0x4870be[_0x18dee8('0x23ac')],[_0x18dee8('0x38f'),_0x18dee8('0x34a')]);case'disabled':return _0x51538b()[_0x18dee8('0xe9e')](_0x4870be[_0x18dee8('0x23ac')],[_0x18dee8('0x38f'),_0x18dee8('0x2686')]);case _0x18dee8('0x190'):return _0x51538b()[_0x18dee8('0xe9e')](_0x4870be[_0x18dee8('0x23ac')],['tag',_0x18dee8('0x190')]);case _0x18dee8('0x15fd'):return _0x51538b()[_0x18dee8('0xe9e')](_0x4870be[_0x18dee8('0x23ac')],['tag',_0x18dee8('0x15fd')]);default:return _0x51538b()[_0x18dee8('0xe9e')](_0x4870be['statusList'],[_0x18dee8('0x38f'),_0x18dee8('0x15fd')]);}}function _0x51736c(_0x26a5ea){return _0x2a8ae8(function(_0x12910b,_0x51c505){var _0x1d797e=a0_0x1149,_0x787317=typeof _0x26a5ea[_0x1d797e('0x119e')]!=='undefined'&&_0x51538b()[_0x1d797e('0x13d6')](_0x26a5ea[_0x1d797e('0xbc0')],_0x1d797e('0x145c'));_0x787317?_0x25db1b(_0x26a5ea)[_0x1d797e('0xaa5')](function(_0x2bc682){_0x12910b(_0x2bc682);})[_0x1d797e('0x253d')](function(_0x379fb3){_0x51c505(_0x379fb3);}):_0x56bbd2(_0x26a5ea)[_0x1d797e('0xaa5')](function(_0xd09351){_0x12910b(_0xd09351);})[_0x1d797e('0x253d')](function(_0x12b6a0){_0x51c505(_0x12b6a0);});});}function _0x25db1b(_0x480924){return _0x2a8ae8(function(_0x1f264b,_0xdbbefa){var _0x198df2=a0_0x1149,_0xfb0af5=typeof _0x480924[_0x198df2('0x119e')]!==_0x198df2('0x1574')&&_0x480924[_0x198df2('0x119e')]===_0x198df2('0xa30')?_0x198df2('0x19d1'):_0x198df2('0x4b8');return _0x3e4c34[_0x480924['route']]['get']({'fields':_0x198df2('0x4a2'),'channel':_0x480924[_0x198df2('0x119e')]===_0x198df2('0xa30')?_0x198df2('0x1b9'):_0x480924[_0x198df2('0x119e')],'type':_0xfb0af5,'nolimit':!![]})[_0x198df2('0x1dc2')][_0x198df2('0xaa5')](function(_0x342ada){_0x1f264b(_0x342ada);})[_0x198df2('0x253d')](function(_0x14e7ad){_0xdbbefa(_0x14e7ad);});});}function _0x56bbd2(_0x54a61e){return _0x2a8ae8(function(_0xcd1e13,_0x529e9a){var _0x1e07e4=a0_0x1149,_0x11b9ed,_0x50d16c,_0x42c3a6=![],_0x2f6b77=![];switch(_0x54a61e[_0x1e07e4('0xbc0')]){case _0x1e07e4('0x1361'):switch(_0x54a61e[_0x1e07e4('0x110a')]){case _0x1e07e4('0x2b6'):_0x11b9ed=_0x1e07e4('0x4b8');break;case _0x1e07e4('0x15e7'):_0x11b9ed='outbound';break;case _0x1e07e4('0x2081'):_0x11b9ed=_0x1e07e4('0x1b0d');break;}break;case'interval':_0x42c3a6=!![];break;case'disposition':_0x2f6b77=!![];break;case _0x1e07e4('0x272b'):switch(_0x54a61e[_0x1e07e4('0x110a')]){case _0x1e07e4('0x91a'):_0x50d16c=_0x1e07e4('0xeff');break;case _0x1e07e4('0x1c00'):_0x50d16c=_0x1e07e4('0xb5b');break;case _0x1e07e4('0x16b4'):_0x50d16c='user';break;}break;}if(_0x54a61e[_0x1e07e4('0x110a')]==='Reports'){if(_0x54a61e[_0x1e07e4('0xb0')])switch(_0x54a61e[_0x1e07e4('0xb0')]){case _0x1e07e4('0x449'):_0x54a61e[_0x1e07e4('0xbc0')]=_0x1e07e4('0x1885');break;case'custom':_0x54a61e[_0x1e07e4('0xbc0')]=_0x1e07e4('0x16bc');break;}else return _0x3e4c34[_0x1e07e4('0x1885')]['get']({'nolimit':!![]})['$promise'][_0x1e07e4('0xaa5')](function(_0x5f09af){var _0x2ac644=_0x1e07e4;_0x3e4c34[_0x2ac644('0x16bc')][_0x2ac644('0x2122')]({'nolimit':!![]})[_0x2ac644('0x1dc2')][_0x2ac644('0xaa5')](function(_0x228f98){var _0x5d225a=_0x2ac644,_0x313274=_0x51538b()[_0x5d225a('0x761')](_0x5f09af[_0x5d225a('0x580')],_0x228f98[_0x5d225a('0x580')]);_0xcd1e13({'count':_0x313274[_0x5d225a('0x2587')],'rows':_0x313274[_0x5d225a('0x580')]});});})[_0x1e07e4('0x253d')](function(_0x189d0a){_0x529e9a(_0x189d0a);});}return _0x3e4c34[_0x54a61e[_0x1e07e4('0xbc0')]][_0x1e07e4('0x2122')]({'role':_0x50d16c?_0x50d16c:undefined,'type':_0x11b9ed?_0x11b9ed:undefined,'VoiceExtensionId':_0x11b9ed?_0x1e07e4('0x1ed9'):undefined,'IntervalId':_0x42c3a6?_0x1e07e4('0x1ed9'):undefined,'MailAccountId':_0x2f6b77?_0x1e07e4('0x1ed9'):undefined,'FaxAccountId':_0x2f6b77?'null':undefined,'SmsAccountId':_0x2f6b77?_0x1e07e4('0x1ed9'):undefined,'OpenchannelAccountId':_0x2f6b77?'null':undefined,'ChatWebsiteId':_0x2f6b77?_0x1e07e4('0x1ed9'):undefined,'WhatsappAccountId':_0x2f6b77?_0x1e07e4('0x1ed9'):undefined,'ListId':_0x2f6b77?'null':undefined,'nolimit':!![]})[_0x1e07e4('0x1dc2')][_0x1e07e4('0xaa5')](function(_0x677333){_0xcd1e13(_0x677333);})[_0x1e07e4('0x253d')](function(_0x55bb4b){_0x529e9a(_0x55bb4b);});});}function _0x2d691e(_0x52b631,_0x9c33db){return _0x2a8ae8(function(_0xb213c9,_0x534c77){var _0x33e294=a0_0x1149;_0x3e4c34[_0x33e294('0x249a')]['get']({'sectionId':_0x9c33db})[_0x33e294('0x1dc2')][_0x33e294('0xaa5')](function(_0x3ea5fa){var _0x240699=_0x33e294;return _0x51736c(_0x52b631)[_0x240699('0xaa5')](function(_0x3b1bc7){var _0x447992=_0x240699;return _0x51538b()[_0x447992('0x1ebb')](_0x3ea5fa[_0x447992('0x580')],_0x3b1bc7[_0x447992('0x580')],'id');});})[_0x33e294('0xaa5')](function(_0x34a263){var _0xd71e6a=_0x33e294;_0x51538b()[_0xd71e6a('0x116b')](_0x34a263)?_0xb213c9():_0x534c77();})[_0x33e294('0x253d')](function(_0x3c77d9){_0x534c77(_0x3c77d9);});});}function _0x15b28e(_0x4dd70e,_0x16dc35,_0x30ecfb){var _0x4cd9ac=_0x530c3f,_0x13917f=_0x4dd70e&&_0x4dd70e[_0x4cd9ac('0x2587')]>0x0?_0x4dd70e[0x0]:null;if(!_0x13917f)return _0x30ecfb;var _0x2c650a=_0x51538b()[_0x4cd9ac('0xe9e')](_0x16dc35,[_0x4cd9ac('0x10b8'),_0x13917f['id']]);if(_0x2c650a)return _0x16dc35=_0x51538b()[_0x4cd9ac('0xf6d')](_0x16dc35,[_0x4cd9ac('0x10b8'),_0x13917f['id']]),_0x2d691e(_0x13917f,_0x2c650a['id'])[_0x4cd9ac('0xaa5')](function(){var _0x3b930f=_0x4cd9ac;return _0x30ecfb=_0x3b930f('0x1548'),_0x15b28e(_0x4dd70e[_0x3b930f('0x21c4')](),_0x16dc35,_0x30ecfb);})[_0x4cd9ac('0x253d')](function(_0x1e4aed){var _0x31bfa7=_0x4cd9ac;return _0x2a8ae8[_0x31bfa7('0xaee')](_0x1e4aed);});}function _0x22b341(_0x4a6239){var _0x55323b=_0x530c3f,_0x414265=_0x4a6239[_0x55323b('0x110a')]==='Marketplace'?_0x55323b('0x2195'):_0x4a6239['title'];if(!_0x4870be[_0x55323b('0x1202')]){_0x4a6239['status']=_0x232ebc(_0x4a6239,_0x55323b('0x15fd'));return;}typeof _0x4a6239[_0x55323b('0x193d')]!==_0x55323b('0x1574')&&!_0x4a6239['permissions'][_0x55323b('0x948')]?_0x3e4c34[_0x55323b('0x1a50')]['get']({'userProfileId':_0x4870be['userProfile']['id'],'sectionId':_0x4a6239['id']})['$promise'][_0x55323b('0xaa5')](function(_0xd3f388){var _0x2d414d=_0x55323b,_0x552ea4=_0xd3f388&&_0xd3f388[_0x2d414d('0x580')][_0x2d414d('0x2587')]===0x1?_0xd3f388[_0x2d414d('0x580')][0x0]:null,_0x4b4810=_0x552ea4?_0x2d414d('0x1548'):'disabled';_0x4a6239[_0x2d414d('0x2fa')]=_0x232ebc(_0x4a6239,_0x4b4810);}):typeof _0x4a6239[_0x55323b('0x1202')]!=='undefined'&&!_0x4870be[_0x55323b('0x1202')][_0x4a6239[_0x55323b('0x1202')]]?_0x4a6239[_0x55323b('0x2fa')]=_0x232ebc(_0x4a6239,_0x55323b('0x190')):_0x3e4c34[_0x55323b('0x1a50')][_0x55323b('0x2122')]({'userProfileId':_0x4870be[_0x55323b('0x1e97')]['id'],'category':_0x414265})['$promise'][_0x55323b('0xaa5')](function(_0x45f99f){var _0x34b872=_0x55323b,_0x5eac55=_0x45f99f&&_0x45f99f['rows']&&_0x45f99f[_0x34b872('0x580')][_0x34b872('0x2587')]>0x0?_0x45f99f[_0x34b872('0x580')]:[];if(_0x4a6239[_0x34b872('0x110a')]===_0x34b872('0x236c'))return _0x51538b()[_0x34b872('0x116b')](_0x5eac55)?_0x34b872('0x2686'):_0x5eac55[0x0]['autoAssociation']?_0x34b872('0x1548'):_0x3e4c34['userProfileResource']['get']({'sectionId':_0x5eac55[0x0]['id'],'resourceId':0x65})[_0x34b872('0x1dc2')]['then'](function(_0x4b314c){var _0x260f5b=_0x34b872,_0x3b3133=_0x4b314c&&_0x4b314c['rows']?_0x4b314c[_0x260f5b('0x580')][0x0]:null;return _0x3b3133?'full':_0x260f5b('0x34a');});else{var _0x14065f=_0x51538b()[_0x34b872('0xdb7')](_0x4a6239[_0x34b872('0x12ad')],function(_0x2aa987){var _0xef9b94=_0x34b872;return typeof _0x2aa987[_0xef9b94('0x193d')]!==_0xef9b94('0x1574')&&_0x2aa987[_0xef9b94('0x193d')]['hidden']?undefined:_0x2aa987;});if(_0x5eac55['length']===_0x14065f['length']){if(_0x51538b()['every'](_0x5eac55,[_0x34b872('0x26cc'),!![]]))return _0x34b872('0x1548');else{var _0x16ef78=_0x51538b()[_0x34b872('0xdb7')](_0x14065f,function(_0x4e1212){var _0x5bcbaa=_0x34b872;return typeof _0x4e1212[_0x5bcbaa('0x193d')]!==_0x5bcbaa('0x1574')&&!_0x4e1212[_0x5bcbaa('0x193d')][_0x5bcbaa('0x948')]?undefined:_0x4e1212;});return _0x15b28e(_0x16ef78,_0x5eac55,_0x34b872('0x34a'));}}else return _0x5eac55['length']===0x0?_0x34b872('0x2686'):_0x34b872('0x34a');}})[_0x55323b('0xaa5')](function(_0x53e74c){var _0x1de59d=_0x55323b;_0x4a6239[_0x1de59d('0x2fa')]=_0x232ebc(_0x4a6239,_0x53e74c);})[_0x55323b('0x253d')](function(_0x2f8227){var _0x3910dd=_0x55323b,_0x2c080c=_0x2f8227?_0x3910dd('0x15fd'):_0x3910dd('0x34a');_0x4a6239[_0x3910dd('0x2fa')]=_0x232ebc(_0x4a6239,_0x2c080c),_0x2f8227&&_0x24bb9d[_0x3910dd('0x187f')]({'title':_0x2f8227['status']?_0x3910dd('0x16c2')+_0x2f8227[_0x3910dd('0x2fa')]+_0x3910dd('0x169e')+_0x2f8227[_0x3910dd('0x24df')]:_0x3910dd('0xcc8')+_0x414265[_0x3910dd('0x1d08')]()+')','msg':_0x2f8227[_0x3910dd('0x2fa')]?JSON[_0x3910dd('0xa48')](_0x2f8227[_0x3910dd('0x10fd')]):_0x2f8227[_0x3910dd('0x684')]()});});}function _0x5970af(_0x2d5479){var _0x19b6c4=_0x530c3f;return _0x2d5479===_0x19b6c4('0x1548')?!![]:![];}}const _0x55be9e=_0x3bf37c;_0x30aaf1[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'api',_0x1a8446('0x1e97'),'userProfiles',_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0x224d')];function _0x30aaf1(_0x5e674c,_0x720d30,_0x15c848,_0xccb942,_0x3cc090,_0x395d85,_0x32e775,_0x3755f4,_0x3ef671,_0x4c7df5){var _0x28f8f0=_0x1a8446,_0x2c50ad=this;_0x2c50ad[_0x28f8f0('0x1e97')]=_0x395d85,_0x2c50ad[_0x28f8f0('0x2234')]=0x0,_0x2c50ad[_0x28f8f0('0x224d')]=angular[_0x28f8f0('0x20a')](_0x4c7df5),_0x2c50ad[_0x28f8f0('0x110a')]=_0x3755f4[_0x28f8f0('0x213f')](_0x28f8f0('0xab1'),{'sectionName':_0x3755f4[_0x28f8f0('0x213f')](_0x2c50ad[_0x28f8f0('0x224d')]['translate'])}),_0x2c50ad[_0x28f8f0('0x1a30')]=[],_0x2c50ad[_0x28f8f0('0xbf7')]=[],_0x2c50ad['subsections']=_0x51538b()[_0x28f8f0('0xdb7')](_0x2c50ad[_0x28f8f0('0x224d')][_0x28f8f0('0x12ad')],function(_0x48ff6f){var _0x2e576b=_0x28f8f0;return typeof _0x48ff6f['permissions']!=_0x2e576b('0x1574')&&_0x48ff6f[_0x2e576b('0x193d')]['hidden']?undefined:_0x48ff6f;}),_0x2c50ad[_0x28f8f0('0x1580')]=[{'title':'Dashboards','translate':_0x28f8f0('0x2546'),'id':0x64}],_0x2c50ad[_0x28f8f0('0x12b')]=[];_0x2c50ad[_0x28f8f0('0x224d')][_0x28f8f0('0x110a')]===_0x28f8f0('0x236c')&&(_0x2c50ad['dashboardItems']=_0x2c50ad[_0x28f8f0('0xa22')],_0x2c50ad[_0x28f8f0('0xa22')]=_0x2c50ad['dashboardSections']);_0x2c50ad['selectedSection']=null,_0x2c50ad[_0x28f8f0('0xb76')]=null,_0x2c50ad[_0x28f8f0('0x1a85')]=[],_0x2c50ad[_0x28f8f0('0x2023')]=_0x2a7046,_0x2c50ad['onChangeSection']=_0x299524,_0x2c50ad['onChangeVisibility']=_0x3ef52b,_0x2c50ad[_0x28f8f0('0x22eb')]=_0x22e255,_0x2c50ad['onChangeReportType']=_0x25f0b4,_0x2c50ad[_0x28f8f0('0x1bd3')]=_0x3d1206,_0x2c50ad[_0x28f8f0('0xb64')]=_0x32a2c8,_0x2c50ad[_0x28f8f0('0x1c23')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x28f8f0('0x25d6'),'line1':_0x28f8f0('0x25d6'),'line2':'','line3':'','line4':'fullPath','labelAll':_0x3755f4['instant']('STAFF.PERMISSIONS_ALL_RESOURCES'),'labelSelected':_0x3755f4[_0x28f8f0('0x213f')](_0x28f8f0('0x48c')),'labelSearch':_0x3755f4[_0x28f8f0('0x213f')](_0x28f8f0('0x1098')),'transferCallback':function _0x3c2651(_0x206d76,_0x2d1742){var _0xb7f6bf=_0x28f8f0;_0x409ea4(!![]),_0x2d1742?(_0x2c50ad[_0xb7f6bf('0x1174')][_0xb7f6bf('0xbf7')]=_0x51538b()[_0xb7f6bf('0x18dd')](_0x2c50ad[_0xb7f6bf('0x1174')]['selectedItems'],_0x206d76,'id'),_0x2c50ad['selectedSection'][_0xb7f6bf('0x26cc')]=![]):_0x2c50ad[_0xb7f6bf('0x1174')]['selectedItems']=_0x51538b()[_0xb7f6bf('0x1d7c')](_0x2c50ad[_0xb7f6bf('0x1174')][_0xb7f6bf('0xbf7')],_0x206d76,'id'),_0x2c50ad['selectedSection'][_0xb7f6bf('0x110a')]===_0xb7f6bf('0x1158')&&_0x342792();}};function _0xb37fe(){return _0x15c848(function(_0x439aab,_0x258600){var _0x2a8917=a0_0x1149,_0x290a03=typeof _0x2c50ad['selectedSection'][_0x2a8917('0x119e')]!==_0x2a8917('0x1574')&&_0x2c50ad[_0x2a8917('0x1174')][_0x2a8917('0x119e')]==='bull'?_0x2a8917('0x19d1'):'inbound';return _0x3cc090[_0x2c50ad[_0x2a8917('0x1174')][_0x2a8917('0xbc0')]]['get']({'fields':_0x2a8917('0x4a2'),'channel':_0x2c50ad[_0x2a8917('0x1174')][_0x2a8917('0x119e')]===_0x2a8917('0xa30')?'voice':_0x2c50ad['selectedSection'][_0x2a8917('0x119e')],'type':_0x290a03,'nolimit':!![]})[_0x2a8917('0x1dc2')][_0x2a8917('0xaa5')](function(_0x4535bc){_0x439aab(_0x4535bc);})[_0x2a8917('0x253d')](function(_0x21b056){_0x258600(_0x21b056);});});}function _0x186187(){return _0x15c848(function(_0x360478,_0x41a4a9){var _0x33c503=a0_0x1149,_0x2ebf90,_0x4c3723,_0x47f100=![],_0x549905=![];if(_0x2c50ad['selectedSection'][_0x33c503('0xbc0')]===_0x33c503('0x1361'))switch(_0x2c50ad[_0x33c503('0x1174')][_0x33c503('0x110a')]){case _0x33c503('0x2b6'):_0x2ebf90=_0x33c503('0x4b8');break;case _0x33c503('0x15e7'):_0x2ebf90=_0x33c503('0x19d1');break;case'InternalRoutes':_0x2ebf90=_0x33c503('0x1b0d');break;}if(_0x2c50ad['selectedSection']['route']===_0x33c503('0x272b'))switch(_0x2c50ad['selectedSection']['title']){case'Agents':_0x4c3723=_0x33c503('0xeff');break;case _0x33c503('0x1c00'):_0x4c3723=_0x33c503('0xb5b');break;case _0x33c503('0x16b4'):_0x4c3723=_0x33c503('0x272b');break;}_0x2c50ad[_0x33c503('0x1174')][_0x33c503('0xbc0')]===_0x33c503('0x1c21')&&(_0x47f100=!![]);_0x2c50ad[_0x33c503('0x1174')][_0x33c503('0xbc0')]==='disposition'&&(_0x549905=!![]);_0x2c50ad['selectedSection'][_0x33c503('0x110a')]===_0x33c503('0x1158')&&(_0x2c50ad[_0x33c503('0x1174')]['route']=_0x2c50ad[_0x33c503('0x1174')][_0x33c503('0xb0')]==='default'?_0x33c503('0x1885'):_0x33c503('0x16bc'));if(_0x2c50ad[_0x33c503('0x1174')][_0x33c503('0x110a')]==='Dashboards')_0x360478({'count':0x1,'rows':[{'id':0x65,'name':_0x3755f4['instant'](_0x33c503('0x1b79'))}]});else return _0x3cc090[_0x2c50ad['selectedSection'][_0x33c503('0xbc0')]]['get']({'role':_0x4c3723?_0x4c3723:undefined,'type':_0x2ebf90?_0x2ebf90:undefined,'VoiceExtensionId':_0x2ebf90?_0x33c503('0x1ed9'):undefined,'IntervalId':_0x47f100?'null':undefined,'MailAccountId':_0x549905?'null':undefined,'FaxAccountId':_0x549905?_0x33c503('0x1ed9'):undefined,'SmsAccountId':_0x549905?'null':undefined,'OpenchannelAccountId':_0x549905?'null':undefined,'ChatWebsiteId':_0x549905?_0x33c503('0x1ed9'):undefined,'WhatsappAccountId':_0x549905?_0x33c503('0x1ed9'):undefined,'ListId':_0x549905?_0x33c503('0x1ed9'):undefined,'nolimit':!![]})[_0x33c503('0x1dc2')][_0x33c503('0xaa5')](function(_0x562d82){_0x360478(_0x562d82);})[_0x33c503('0x253d')](function(_0x4f1fa9){_0x41a4a9(_0x4f1fa9);});});}function _0x6cc76f(){var _0x33c661=_0x28f8f0,_0x2b7bc4=typeof _0x2c50ad['selectedSection']['pending']!='undefined'?_0x2c50ad[_0x33c661('0x1174')][_0x33c661('0x20f1')]:![];return _0x15c848(function(_0xe21354,_0x551b78){var _0x5ac960=_0x33c661;_0x3cc090[_0x5ac960('0x1a50')][_0x5ac960('0x2122')]({'userProfileId':_0x2c50ad[_0x5ac960('0x1e97')]['id'],'sectionId':_0x2c50ad[_0x5ac960('0x1174')]['id']})['$promise'][_0x5ac960('0xaa5')](function(_0x399e0e){var _0x1bb272=_0x5ac960,_0x3067aa=_0x399e0e&&_0x399e0e[_0x1bb272('0x580')]?_0x399e0e[_0x1bb272('0x580')][0x0]:null;!_0x2b7bc4&&(_0x2c50ad[_0x1bb272('0x1174')][_0x1bb272('0xbd3')]=_0x3067aa?!!_0x3067aa['enabled']:![],_0x2c50ad[_0x1bb272('0x1174')][_0x1bb272('0x26cc')]=_0x3067aa?!!_0x3067aa[_0x1bb272('0x26cc')]:![],_0x2c50ad[_0x1bb272('0x1174')]['crudPermissions']=_0x3067aa?_0x30c7(_0x3067aa['crudPermissions']):_0x30c7(_0x2c50ad[_0x1bb272('0x1e97')][_0x1bb272('0xada')])),_0xe21354(_0x3067aa);})[_0x5ac960('0x253d')](function(_0x4f6045){_0x551b78(_0x4f6045);});});}function _0x19ae46(){return _0x15c848(function(_0x22e8a1,_0x1b2d52){var _0x1ca359=a0_0x1149;!_0x2c50ad[_0x1ca359('0xb76')]?_0x22e8a1(null):_0x3cc090['userProfileResource']['get']({'sectionId':_0x2c50ad[_0x1ca359('0xb76')]['id'],'nolimit':!![]})[_0x1ca359('0x1dc2')][_0x1ca359('0xaa5')](function(_0x2b282a){_0x22e8a1(_0x2b282a);})[_0x1ca359('0x253d')](function(_0x4574c9){_0x1b2d52(_0x4574c9);});});}function _0x30d672(){return _0x15c848(function(_0x240ef4,_0x2d9bc8){var _0x23564e=a0_0x1149,_0x58815c=typeof _0x2c50ad['selectedSection'][_0x23564e('0x119e')]!==_0x23564e('0x1574')&&_0x51538b()[_0x23564e('0x13d6')](_0x2c50ad['selectedSection'][_0x23564e('0xbc0')],_0x23564e('0x145c'));_0x58815c?_0xb37fe()[_0x23564e('0xaa5')](function(_0x5ebae8){_0x240ef4(_0x5ebae8);})['catch'](function(_0x39bddb){_0x2d9bc8(_0x39bddb);}):_0x186187()[_0x23564e('0xaa5')](function(_0x5c367e){_0x240ef4(_0x5c367e);})['catch'](function(_0xc56e76){_0x2d9bc8(_0xc56e76);});});}function _0x1df079(){var _0x15f3f5=_0x28f8f0,_0x352de7=typeof _0x2c50ad[_0x15f3f5('0x1174')][_0x15f3f5('0x20f1')]!=_0x15f3f5('0x1574')?_0x2c50ad[_0x15f3f5('0x1174')]['pending']:![],_0x4e3efc=[];return _0x19ae46()['then'](function(_0x514288){var _0x42854f=_0x15f3f5;return _0x4e3efc=_0x514288&&_0x514288[_0x42854f('0x580')]?_0x514288['rows']:[],_0x2c50ad[_0x42854f('0x1174')][_0x42854f('0x110a')]===_0x42854f('0x1158')&&(_0x2c50ad[_0x42854f('0xd9e')]=!_0x2c50ad[_0x42854f('0xd9e')]?_0x4e3efc:_0x2c50ad[_0x42854f('0xd9e')],_0x4e3efc=_0x32ad1d(_0x2c50ad[_0x42854f('0xd9e')])),typeof _0x2c50ad['selectedSection']['permissions']!==_0x42854f('0x1574')&&!_0x2c50ad[_0x42854f('0x1174')][_0x42854f('0x193d')][_0x42854f('0x948')]?{'rows':[]}:_0x30d672();})[_0x15f3f5('0xaa5')](function(_0x350cfa){var _0x93c9b5=_0x15f3f5;_0x2c50ad['items']=_0x350cfa[_0x93c9b5('0x580')]?_0x51538b()[_0x93c9b5('0x1246')](_0x350cfa[_0x93c9b5('0x580')],function(_0x10f661){var _0x97b5ea=_0x93c9b5;return _0x2c50ad[_0x97b5ea('0x1174')]['title']===_0x97b5ea('0x1158')&&(_0x10f661[_0x97b5ea('0xbaa')]=_0x36b567(_0x10f661['parent'])['replace']('\x20','_')),_0x10f661[_0x97b5ea('0x145d')]=!![],_0x10f661;}):[];!_0x352de7&&(_0x2c50ad['selectedSection'][_0x93c9b5('0xbf7')]=_0x51538b()[_0x93c9b5('0x1246')](_0x4e3efc,function(_0x1c2a6b){var _0x12a96e=_0x93c9b5;return _0x51538b()[_0x12a96e('0xe9e')](_0x2c50ad[_0x12a96e('0x1a30')],{'id':_0x1c2a6b[_0x12a96e('0xbcd')]});}));var _0x4be286=_0x51538b()['differenceBy'](_0x2c50ad[_0x93c9b5('0x1174')][_0x93c9b5('0xbf7')],_0x2c50ad[_0x93c9b5('0x1a30')],'id');!_0x51538b()[_0x93c9b5('0x116b')](_0x4be286)&&(_0x2c50ad[_0x93c9b5('0x1174')]['selectedItems']=_0x51538b()['pullAllBy'](_0x2c50ad['selectedSection'][_0x93c9b5('0xbf7')],_0x4be286,'id'));var _0x1add62;switch(_0x2c50ad['selectedSection'][_0x93c9b5('0x110a')]){case _0x93c9b5('0x215'):_0x2c50ad[_0x93c9b5('0x1174')][_0x93c9b5('0xbf7')]=_0x51538b()[_0x93c9b5('0xdb7')](_0x2c50ad[_0x93c9b5('0x1a30')],function(_0x11f544){var _0x54a457=_0x93c9b5;if(_0x11f544[_0x54a457('0x870')])return _0x11f544[_0x54a457('0x145d')]=![],_0x11f544;else{var _0x328d09=_0x51538b()[_0x54a457('0xe9e')](_0x4e3efc,{'resourceId':_0x11f544['id']});if(typeof _0x328d09!==_0x54a457('0x1574'))return _0x11f544[_0x54a457('0x145d')]=!![],_0x11f544;}});break;case _0x93c9b5('0x1e45'):_0x2c50ad[_0x93c9b5('0x1174')][_0x93c9b5('0xbf7')]=_0x51538b()[_0x93c9b5('0xdb7')](_0x2c50ad[_0x93c9b5('0x1a30')],function(_0x1d51a7){var _0x362a16=_0x93c9b5;if(_0x1d51a7[_0x362a16('0x870')])return _0x1d51a7[_0x362a16('0x145d')]=![],_0x1d51a7;else{var _0x1bd73d=_0x51538b()['find'](_0x4e3efc,{'resourceId':_0x1d51a7['id']});if(typeof _0x1bd73d!==_0x362a16('0x1574'))return _0x1d51a7[_0x362a16('0x145d')]=!![],_0x1d51a7;}});break;case _0x93c9b5('0x1158'):_0x1add62=_0x2e6a5e(_0x2c50ad[_0x93c9b5('0x1a85')]),_0x2c50ad[_0x93c9b5('0x1174')]['selectedItems']=_0x40bb9c(_0x2c50ad[_0x93c9b5('0x1174')]['selectedItems']),_0x2c50ad[_0x93c9b5('0x1174')][_0x93c9b5('0xbf7')]=_0x51538b()[_0x93c9b5('0x1d7c')](_0x2c50ad[_0x93c9b5('0x1174')][_0x93c9b5('0xbf7')],_0x1add62,'id');break;}_0x2c50ad[_0x93c9b5('0x1c23')][_0x93c9b5('0xbf7')]=_0x2c50ad[_0x93c9b5('0x1174')][_0x93c9b5('0xbf7')],_0x2c50ad['dualMultiselectOptions'][_0x93c9b5('0x1a30')]=_0x51538b()[_0x93c9b5('0x1ebb')](_0x2c50ad[_0x93c9b5('0x1a30')],_0x2c50ad[_0x93c9b5('0x1c23')][_0x93c9b5('0xbf7')],'id');})[_0x15f3f5('0x253d')](function(_0x1e5e3a){var _0x114ab7=_0x15f3f5;_0xccb942[_0x114ab7('0x187f')]({'title':_0x1e5e3a[_0x114ab7('0x2fa')]?_0x114ab7('0x16c2')+_0x1e5e3a['status']+'\x20-\x20'+_0x1e5e3a[_0x114ab7('0x24df')]:_0x114ab7('0x4fd')+_0x2c50ad['selectedSection'][_0x114ab7('0x110a')][_0x114ab7('0x1d08')](),'msg':_0x1e5e3a[_0x114ab7('0x2fa')]?JSON[_0x114ab7('0xa48')](_0x1e5e3a['data']):_0x1e5e3a[_0x114ab7('0x684')]()});});}function _0x299524(){var _0xc515b4=_0x28f8f0;return _0x6cc76f()[_0xc515b4('0xaa5')](function(_0x4a2e87){var _0x25dc0e=_0xc515b4;_0x2c50ad['loadedSection']=_0x4a2e87;if(_0x2c50ad[_0x25dc0e('0x1174')]['title']==='Reports')return _0x5b3297()[_0x25dc0e('0xaa5')](function(){var _0x2142cd=_0x25dc0e;if(!_0x2c50ad[_0x2142cd('0x1174')]['reportType'])return _0x19ae46()[_0x2142cd('0xaa5')](function(_0x5e94e8){var _0x4bb386=_0x2142cd;_0x2c50ad[_0x4bb386('0x1a85')]=_0x5e94e8?_0x51538b()['map'](_0x5e94e8[_0x4bb386('0x580')],function(_0x3337d3){var _0x24f6a6=_0x4bb386;return{'id':_0x3337d3[_0x24f6a6('0xbcd')],'name':_0x3337d3[_0x24f6a6('0x25d6')],'type':_0x3337d3[_0x24f6a6('0x6c8')]};}):[];});})['catch'](function(_0x2c7772){var _0x11e356=_0x25dc0e;_0xccb942[_0x11e356('0x187f')]({'title':_0x2c7772[_0x11e356('0x2fa')]?_0x11e356('0x16c2')+_0x2c7772[_0x11e356('0x2fa')]+_0x11e356('0x169e')+_0x2c7772[_0x11e356('0x24df')]:_0x11e356('0x2ff'),'msg':_0x2c7772[_0x11e356('0x10fd')]?JSON[_0x11e356('0xa48')](_0x2c7772[_0x11e356('0x10fd')]):_0x2c7772[_0x11e356('0x684')]()});});else _0x1df079();})[_0xc515b4('0x253d')](function(_0x3338d2){var _0x3cc6b8=_0xc515b4;_0xccb942[_0x3cc6b8('0x187f')]({'title':_0x3338d2[_0x3cc6b8('0x2fa')]?_0x3cc6b8('0x16c2')+_0x3338d2[_0x3cc6b8('0x2fa')]+'\x20-\x20'+_0x3338d2[_0x3cc6b8('0x24df')]:_0x3cc6b8('0x4fd')+_0x2c50ad[_0x3cc6b8('0x1174')][_0x3cc6b8('0x110a')]['toUpperCase'](),'msg':_0x3338d2[_0x3cc6b8('0x2fa')]?JSON['stringify'](_0x3338d2['data']):_0x3338d2['toString']()});});}function _0x30c7(_0xfa82da){var _0x4f6381=_0x28f8f0;return _0xfa82da&&(_0x2c50ad[_0x4f6381('0x1174')][_0x4f6381('0x2687')]=_0x51538b()[_0x4f6381('0x13d6')](_0xfa82da,'e')?!![]:![],_0x2c50ad['selectedSection']['allowDelete']=_0x51538b()[_0x4f6381('0x13d6')](_0xfa82da,'d')?!![]:![]),_0x37748e();}function _0x37748e(){var _0x2ef987=_0x28f8f0,_0x49173b=['r'];if(_0x2c50ad[_0x2ef987('0x1174')]['allowEdit'])_0x49173b['push']('e');else{var _0x511aa4=_0x51538b()[_0x2ef987('0x1f38')](_0x49173b,['e']);_0x511aa4>0x0&&_0x2c50ad[_0x2ef987('0x1174')]['crudPermissions']['replace']('e','');}if(_0x2c50ad[_0x2ef987('0x1174')][_0x2ef987('0x1690')])_0x49173b[_0x2ef987('0x1599')]('d');else{var _0x36aa75=_0x51538b()[_0x2ef987('0x1f38')](_0x49173b,['d']);_0x36aa75>0x0&&_0x2c50ad[_0x2ef987('0x1174')][_0x2ef987('0xada')][_0x2ef987('0x170d')]('d','');}return _0x49173b;}function _0x3ef52b(){var _0x4a260b=_0x28f8f0;_0x2c50ad['selectedSection']['enabled']=!_0x2c50ad['selectedSection'][_0x4a260b('0xbd3')],_0x409ea4(!![]);}function _0x22e255(){var _0x55dfea=_0x28f8f0;if(!_0x2c50ad[_0x55dfea('0x1174')][_0x55dfea('0x26cc')]){var _0x5bcdab=[];for(var _0x38485c=0x0;_0x38485c<_0x2c50ad[_0x55dfea('0x1c23')][_0x55dfea('0x1a30')][_0x55dfea('0x2587')];_0x38485c++){_0x5bcdab[_0x55dfea('0x1599')](_0x2c50ad[_0x55dfea('0x1c23')][_0x55dfea('0x1a30')][_0x38485c]),_0x2c50ad[_0x55dfea('0x1c23')][_0x55dfea('0xbf7')][_0x55dfea('0x1599')](_0x2c50ad['dualMultiselectOptions'][_0x55dfea('0x1a30')][_0x38485c]);}_0x2c50ad[_0x55dfea('0x1c23')][_0x55dfea('0x1a30')]=[],_0x2c50ad['dualMultiselectOptions'][_0x55dfea('0x13af')](_0x5bcdab,![]);}_0x409ea4(!![]);}function _0x25f0b4(){var _0x44ebc7=_0x28f8f0;_0x2c50ad[_0x44ebc7('0x1f70')]=_0x2d0569(),_0x2c50ad[_0x44ebc7('0x1174')][_0x44ebc7('0xbf7')]&&(_0x2c50ad['allReportsSelected']=_0x40bb9c(_0x2c50ad[_0x44ebc7('0x1a85')]),_0x342792()),_0x1df079();}function _0x3d1206(_0x48a8db){var _0x54fa81=_0x28f8f0;if(_0x48a8db==='edit')_0x2c50ad[_0x54fa81('0x1174')][_0x54fa81('0x2687')]=!_0x2c50ad['selectedSection'][_0x54fa81('0x2687')];else _0x48a8db===_0x54fa81('0x926')&&(_0x2c50ad['selectedSection'][_0x54fa81('0x1690')]=!_0x2c50ad[_0x54fa81('0x1174')][_0x54fa81('0x1690')]);_0x2c50ad[_0x54fa81('0x1174')][_0x54fa81('0xada')]=_0x30c7(),_0x409ea4(!![]);}function _0x32a2c8(){var _0x52cf8b=_0x28f8f0,_0x2b13af=_0x2c50ad[_0x52cf8b('0x224d')][_0x52cf8b('0x110a')]==='Marketplace'?_0x52cf8b('0x2195'):_0x2c50ad[_0x52cf8b('0x224d')]['title'],_0x116a2c=_0x51538b()(_0x2c50ad[_0x52cf8b('0xa22')])['filter']({'pending':!![]})[_0x52cf8b('0x1246')](function(_0x118c5c){var _0x2fed45=_0x52cf8b,_0x45d6af=_0x2b13af===_0x2fed45('0xa44')&&_0x118c5c[_0x2fed45('0x110a')]==='Projects'?_0x2fed45('0x1fed'):_0x118c5c[_0x2fed45('0x110a')],_0x18dffb=_0x45d6af===_0x2fed45('0x1158')?_0x2c50ad['allReportsSelected']:_0x118c5c[_0x2fed45('0xbf7')];return _0x2b13af===_0x2fed45('0x1a1f')&&(_0x118c5c['autoAssociation']=!![]),{'category':_0x2b13af,'sectionId':_0x118c5c['id'],'name':_0x45d6af,'enabled':_0x118c5c[_0x2fed45('0xbd3')],'autoAssociation':_0x118c5c['autoAssociation'],'crudPermissions':_0x51538b()[_0x2fed45('0x1246')](_0x118c5c[_0x2fed45('0xada')])[_0x2fed45('0x19c4')](''),'Resources':_0x51538b()[_0x2fed45('0x1246')](_0x18dffb,function(_0x48f3f7){var _0x54e1c6=_0x2fed45;return{'name':_0x48f3f7[_0x54e1c6('0x25d6')],'resourceId':_0x48f3f7['id'],'type':_0x213b60(_0x45d6af,_0x48f3f7)};})};})[_0x52cf8b('0x12f4')]();return _0x3cc090[_0x52cf8b('0x1e97')][_0x52cf8b('0x10df')]({'id':_0x2c50ad['userProfile']['id']},_0x116a2c)[_0x52cf8b('0x1dc2')]['then'](function(){var _0x388fcf=_0x52cf8b;_0x2c50ad[_0x388fcf('0xa22')][_0x388fcf('0x15b5')](function(_0x1c638b){var _0x2016fa=_0x388fcf;_0x1c638b[_0x2016fa('0x20f1')]=undefined;}),_0x2c50ad[_0x388fcf('0xd9e')]=null,_0x34511d(),_0x2c50ad[_0x388fcf('0x1174')][_0x388fcf('0x110a')]===_0x388fcf('0x1158')&&!_0x2c50ad[_0x388fcf('0x1174')][_0x388fcf('0xb0')]&&_0x5e674c[_0x388fcf('0x24e6')][_0x388fcf('0x212b')](),_0xccb942[_0x388fcf('0xe10')]({'title':_0x3755f4['instant'](_0x388fcf('0x1567'),{'sectionName':_0x3755f4[_0x388fcf('0x213f')](_0x2b13af[_0x388fcf('0x5d1')])}),'msg':_0x3755f4[_0x388fcf('0x213f')](_0x388fcf('0x5d3'))});})['then'](function(){var _0x26b6b0=_0x52cf8b;return _0x6cc76f()[_0x26b6b0('0xaa5')](function(_0x2358b7){var _0xab0091=_0x26b6b0;_0x2c50ad[_0xab0091('0xb76')]=_0x2358b7;});})[_0x52cf8b('0x253d')](function(_0x15c365){var _0x343ba2=_0x52cf8b;_0xccb942[_0x343ba2('0x187f')]({'title':_0x15c365[_0x343ba2('0x2fa')]?_0x343ba2('0x16c2')+_0x15c365[_0x343ba2('0x2fa')]+'\x20-\x20'+_0x15c365[_0x343ba2('0x24df')]:_0x343ba2('0x19b2'),'msg':_0x15c365[_0x343ba2('0x2fa')]?JSON[_0x343ba2('0xa48')](_0x15c365[_0x343ba2('0x10fd')]):_0x15c365[_0x343ba2('0x684')]()});});}function _0x409ea4(_0x3506fb){var _0x4fa9ee=_0x28f8f0,_0x4fe67d=_0x51538b()['findIndex'](_0x2c50ad[_0x4fa9ee('0xa22')],function(_0x1cc1d8){var _0x3090ed=_0x4fa9ee;return _0x1cc1d8['id']==_0x2c50ad[_0x3090ed('0x1174')]['id'];});_0x2c50ad[_0x4fa9ee('0xa22')][_0x4fe67d][_0x4fa9ee('0x20f1')]=_0x3506fb,_0x34511d();}function _0x34511d(){var _0x98408f=_0x28f8f0;return _0x2c50ad[_0x98408f('0xc54')]=_0x51538b()[_0x98408f('0x2c2')](_0x2c50ad[_0x98408f('0xa22')],[_0x98408f('0x20f1'),!![]]);}function _0x2d0569(){var _0x2a982f=_0x28f8f0,_0x738702={};return _0x2c50ad[_0x2a982f('0x1174')]['reportType']===_0x2a982f('0x449')?_0x738702=_0x2c50ad[_0x2a982f('0xd39')][0x0]?angular[_0x2a982f('0x19c8')](_0x2c50ad[_0x2a982f('0xd39')][0x0]['tree']):[]:_0x738702=_0x2c50ad['treeReports'][0x1]?angular['fromJson'](_0x2c50ad[_0x2a982f('0xd39')][0x1][_0x2a982f('0x2647')]):[],_0x738702;}function _0x5b3297(){return _0x15c848(function(_0x5d6fc7,_0x13124b){var _0x417118=a0_0x1149;_0x3cc090[_0x417118('0x37f')][_0x417118('0x2122')]({})[_0x417118('0x1dc2')]['then'](function(_0x52678b){var _0x3c7477=_0x417118;_0x2c50ad[_0x3c7477('0xd39')]=_0x52678b[_0x3c7477('0x580')]||[],_0x5d6fc7(_0x2c50ad[_0x3c7477('0xd39')]);})['catch'](function(_0x12e5bf){_0x13124b(_0x12e5bf);});});}function _0x36b567(_0x183301){var _0x8474f0=_0x28f8f0,_0x26be98=_0x2c50ad[_0x8474f0('0x1f70')][0x0][_0x8474f0('0xb37')];return _0x26be98=_0x424f24(_0x26be98,_0x183301,_0x2c50ad[_0x8474f0('0x1f70')][0x0]),_0x26be98;}function _0x424f24(_0x779329,_0x56d633,_0xfd58be){var _0x4dcddc=_0x28f8f0;if(_0xfd58be&&!_0x51538b()[_0x4dcddc('0x116b')](_0xfd58be[_0x4dcddc('0x12ad')]))_0xfd58be=_0x51538b()[_0x4dcddc('0xe9e')](_0xfd58be['children'],function(_0x5325b6){var _0xe09141=_0x4dcddc;return _0x51538b()[_0xe09141('0x13d6')](_0x56d633,_0x5325b6['id'])?_0x5325b6:undefined;}),_0x779329+=_0xfd58be?'/'+_0xfd58be[_0x4dcddc('0xb37')]:'';else return _0x779329;return _0x424f24(_0x779329,_0x56d633,_0xfd58be);}function _0x32ad1d(_0x213251){var _0x567bd5=_0x28f8f0;return _0x51538b()['filter'](_0x213251,{'type':_0x2c50ad[_0x567bd5('0x1174')]['reportType']===_0x567bd5('0x449')?'DefaultReports':_0x567bd5('0x9de')});}function _0x2e6a5e(_0x38cc40){var _0x3e5885=_0x28f8f0;return _0x51538b()[_0x3e5885('0xdb7')](_0x38cc40,function(_0x31842a){var _0x26c245=_0x3e5885;return _0x51538b()[_0x26c245('0x6e8')](_0x31842a[_0x26c245('0x20a2')],_0x2c50ad[_0x26c245('0x1174')][_0x26c245('0xb0')]===_0x26c245('0x449')?_0x26c245('0x7f7'):_0x26c245('0x113b'));});}function _0x40bb9c(_0x84a288){var _0x43ad5c=_0x28f8f0;return _0x51538b()[_0x43ad5c('0xf6d')](_0x84a288,function(_0x307450){var _0x982a5e=_0x43ad5c;return _0x51538b()[_0x982a5e('0x6e8')](_0x307450[_0x982a5e('0x20a2')],_0x2c50ad[_0x982a5e('0x1174')][_0x982a5e('0xb0')]===_0x982a5e('0x449')?_0x982a5e('0x7f7'):_0x982a5e('0x113b'));});}function _0x342792(){var _0x32405a=_0x28f8f0;_0x51538b()[_0x32405a('0x116b')](_0x2c50ad[_0x32405a('0x1174')]['selectedItems'])?_0x2c50ad['allReportsSelected']=_0x51538b()[_0x32405a('0xf6d')](_0x2c50ad[_0x32405a('0x1a85')],function(_0x413d0c){var _0x7ab5c3=_0x32405a;return _0x413d0c[_0x7ab5c3('0x6c8')]===(_0x2c50ad[_0x7ab5c3('0x1174')][_0x7ab5c3('0xb0')]===_0x7ab5c3('0x449')?_0x7ab5c3('0x9de'):_0x7ab5c3('0x1767'));}):_0x2c50ad[_0x32405a('0x1174')][_0x32405a('0xbf7')]['forEach'](function(_0x90186e){var _0x2c3639=_0x32405a,_0x66f45e=_0x51538b()[_0x2c3639('0x2c2')](_0x2c50ad[_0x2c3639('0x1a85')],{'id':_0x90186e['id'],'parent':_0x90186e[_0x2c3639('0x20a2')]});!_0x66f45e&&_0x2c50ad['allReportsSelected'][_0x2c3639('0x1599')](_0x90186e);});}function _0x213b60(_0x969fc,_0x3d5741){var _0x3b3919=_0x28f8f0;if(_0x969fc===_0x3b3919('0x1158')){if(_0x3d5741[_0x3b3919('0x20a2')]){var _0x57d64c=_0x51538b()[_0x3b3919('0x6e8')](_0x3d5741['parent'],_0x3b3919('0x7f7'))?_0x3b3919('0x6d'):_0x3b3919('0x27aa');return _0x57d64c+_0x969fc;}else return _0x3d5741[_0x3b3919('0x6c8')];}return _0x969fc;}function _0x2a7046(_0x52f356){var _0x338964=_0x28f8f0;if(_0x2c50ad['pendingChanges']){var _0x27f0aa=_0x720d30[_0x338964('0x281e')]({'skipHide':!![]})[_0x338964('0x110a')](_0x338964('0x24ce'))[_0x338964('0x447')](_0x3755f4[_0x338964('0x213f')](_0x338964('0x2603')))['ariaLabel'](_0x338964('0x24ce'))['targetEvent'](_0x52f356)['ok'](_0x3755f4[_0x338964('0x213f')]('STAFF.CLOSE'))[_0x338964('0x2030')](_0x3755f4[_0x338964('0x213f')](_0x338964('0x1247')));_0x720d30['show'](_0x27f0aa)[_0x338964('0xaa5')](function(){var _0x26166a=_0x338964;_0x720d30[_0x26166a('0x1120')]();});}else _0x720d30[_0x338964('0x1120')]();}}const _0x42786e=_0x30aaf1,_0x2bce69=_0x4fb511['p']+_0x1a8446('0x50a');_0x323e94[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$document','$translate','license','setting','api','toasty',_0x1a8446('0x1dfd'),'userProfile',_0x1a8446('0x1a50')];function _0x323e94(_0x168695,_0x1822d3,_0x1a1578,_0x2db5e0,_0x2296fc,_0x369aa3,_0x3a67c8,_0x1632b2,_0x2f7f97,_0x261c91,_0x1c8fab,_0x270462){var _0x44cb94=_0x1a8446,_0x55f113=this;_0x55f113[_0x44cb94('0x7fc')]=_0x261c91[_0x44cb94('0xacc')](),_0x55f113[_0x44cb94('0x1202')]=_0x369aa3,_0x55f113[_0x44cb94('0x143f')]=_0x3a67c8,_0x55f113[_0x44cb94('0x1d53')]=_0x55f113[_0x44cb94('0x143f')][_0x44cb94('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x55f113['location']=_0x1822d3[_0x44cb94('0x1cc2')]()+'://'+_0x1822d3[_0x44cb94('0x160c')](),_0x55f113[_0x44cb94('0x1e97')]=_0x1c8fab||_0x168695['params']['userProfile']||{},_0x55f113[_0x44cb94('0x1a50')]=_0x270462&&_0x270462[_0x44cb94('0xd15')]==0x1?_0x270462[_0x44cb94('0x580')][0x0]:null,_0x55f113[_0x44cb94('0xada')]=_0x261c91[_0x44cb94('0xffd')](_0x55f113[_0x44cb94('0x1a50')]?_0x55f113[_0x44cb94('0x1a50')][_0x44cb94('0xada')]:null),_0x55f113['hasModulePermissions']={},_0x55f113[_0x44cb94('0xe5c')]=_0x168695[_0x44cb94('0x25cf')][_0x44cb94('0x25c2')]||0x0,_0x55f113[_0x44cb94('0x2675')]=_0x379388,_0x55f113[_0x44cb94('0x16c1')]=_0x365c58,_0x55f113['alert']=_0x2f7f97[_0x44cb94('0x3a1')],_0x55f113[_0x44cb94('0x1ea7')]=_0x279155,_0x55f113['saveUserProfile']=_0x3936e7;function _0x379388(_0x182cb5,_0x230934){var _0x4a642d=_0x44cb94;_0x1a1578[_0x4a642d('0x1e6d')]({'controller':_0x4a642d('0x2827'),'controllerAs':'vm','templateUrl':_0x5006d3,'parent':angular[_0x4a642d('0x1aa8')](_0x2db5e0[_0x4a642d('0x54c')]),'targetEvent':_0x230934,'clickOutsideToClose':!![],'locals':{'userProfile':_0x182cb5,'userProfiles':_0x55f113['userProfiles']?_0x55f113[_0x4a642d('0x25b0')][_0x4a642d('0x580')]:[],'crudPermissions':_0x55f113[_0x4a642d('0xada')]}});}function _0x365c58(_0x51ae02,_0x25bea8){var _0xda23d2=_0x44cb94;_0x1a1578['show']({'controller':_0xda23d2('0xba5'),'controllerAs':'vm','templateUrl':_0x2bce69,'parent':angular[_0xda23d2('0x1aa8')](_0x2db5e0[_0xda23d2('0x54c')]),'targetEvent':_0x25bea8,'clickOutsideToClose':!![],'locals':{'userProfile':_0x51ae02,'userProfiles':_0x55f113[_0xda23d2('0x25b0')]?_0x55f113[_0xda23d2('0x25b0')][_0xda23d2('0x580')]:[],'crudPermissions':_0x55f113[_0xda23d2('0xada')]}});}function _0x279155(){var _0x203308=_0x44cb94;_0x168695['go'](_0x203308('0x2645'),{},{'reload':'app.staff.userProfiles'});}function _0x3936e7(){var _0x53ab01=_0x44cb94;_0x1632b2['userProfile'][_0x53ab01('0x264e')]({'id':_0x55f113['userProfile']['id']},_0x55f113[_0x53ab01('0x1e97')])[_0x53ab01('0x1dc2')]['then'](function(){var _0x1a1acb=_0x53ab01;_0x2f7f97[_0x1a1acb('0xe10')]({'title':_0x1a1acb('0x1a9e'),'msg':_0x55f113[_0x1a1acb('0x1e97')][_0x1a1acb('0x25d6')]?_0x55f113[_0x1a1acb('0x1e97')][_0x1a1acb('0x25d6')]+_0x1a1acb('0x1734'):''});})[_0x53ab01('0x253d')](function(_0xb33e0b){var _0x5a16b0=_0x53ab01;_0x2f7f97['error']({'title':_0xb33e0b[_0x5a16b0('0x2fa')]?'API:'+_0xb33e0b['status']+'\x20-\x20'+_0xb33e0b['statusText']:_0x5a16b0('0x21ca'),'msg':_0xb33e0b[_0x5a16b0('0x10fd')]?JSON[_0x5a16b0('0xa48')](_0xb33e0b[_0x5a16b0('0x10fd')]):_0xb33e0b[_0x5a16b0('0x684')]()});});}}const _0x280a9c=_0x323e94,_0xaa9ce7=_0x4fb511['p']+_0x1a8446('0x205c');_0x180ba7[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x25b0'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),'toasty',_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f')];function _0x180ba7(_0x5c5631,_0x270e88,_0x37debd,_0x92a8f,_0x1f66c8,_0x317b18,_0xb11e64,_0x4f8258,_0x9f81dd,_0x294f4c,_0x1b1bdd,_0x137ac7,_0x53b0e9,_0x33f2a3,_0x4a36a9,_0x10ab6d,_0x24725f){var _0x4b3f55=_0x1a8446,_0x2bc0f1=this;_0x2bc0f1[_0x4b3f55('0x1202')]=_0x10ab6d,_0x2bc0f1[_0x4b3f55('0x143f')]=_0x24725f,_0x2bc0f1[_0x4b3f55('0x7fc')]=_0x4a36a9[_0x4b3f55('0xacc')](),_0x2bc0f1[_0x4b3f55('0x25b0')]=_0x9f81dd||{'count':0x0,'rows':[]},_0x2bc0f1[_0x4b3f55('0x1e97')]=_0x294f4c,_0x2bc0f1[_0x4b3f55('0x1a50')]=_0x1b1bdd&&_0x1b1bdd[_0x4b3f55('0xd15')]==0x1?_0x1b1bdd['rows'][0x0]:null,_0x2bc0f1[_0x4b3f55('0xada')]=_0x4a36a9[_0x4b3f55('0xffd')](_0x2bc0f1['userProfileSection']?_0x2bc0f1[_0x4b3f55('0x1a50')][_0x4b3f55('0xada')]:null),_0x2bc0f1['table']='userProfiles',_0x2bc0f1[_0x4b3f55('0x164')]='',_0x2bc0f1[_0x4b3f55('0x8cc')]=null,_0x2bc0f1[_0x4b3f55('0x999')]=[],_0x2bc0f1[_0x4b3f55('0x582')]={'fields':_0x4b3f55('0x1740'),'sort':_0x4b3f55('0xd82'),'limit':0xa,'page':0x1},_0x2bc0f1[_0x4b3f55('0x1406')]=_0x51538b()[_0x4b3f55('0x184a')]([{'option':_0x4b3f55('0x1899'),'value':_0x4b3f55('0xc7b'),'disabled':!![]},{'option':_0x4b3f55('0xaea'),'value':_0x4b3f55('0x1f06')},{'option':_0x4b3f55('0xcd0'),'value':_0x4b3f55('0xfb7')}],function(_0x230c23){var _0x452df0=_0x4b3f55;return _0x51538b()['replace'](_0x230c23[_0x452df0('0x12f4')],new RegExp('\x27','g'),'');});_0x2bc0f1[_0x4b3f55('0x25b0')]&&_0x2bc0f1[_0x4b3f55('0x25b0')]['count']>0x0&&_0x2bc0f1[_0x4b3f55('0x25b0')][_0x4b3f55('0x580')][_0x4b3f55('0x15b5')](function(_0x2be9cd){var _0xbf318b=_0x4b3f55,_0x12ed49=[];_0x2be9cd[_0xbf318b('0xada')][_0xbf318b('0x15b5')](function(_0x476268){var _0x37166=_0xbf318b;_0x12ed49[_0x37166('0x1599')](_0x2bc0f1['arraycrudPermissions'][_0x476268]['option']);});var _0x2b2dbb=[];_0x12ed49[_0xbf318b('0x15b5')](function(_0x392a17){var _0x44c9b6=_0xbf318b;_0x2b2dbb[_0x44c9b6('0x1599')](_0x4f8258[_0x44c9b6('0x213f')](_0x44c9b6('0x303')+_0x392a17[_0x44c9b6('0x1d08')]()));}),_0x2be9cd['selectedcrudPermissions']=_0x2b2dbb['join'](',\x20');});_0x2bc0f1[_0x4b3f55('0x1927')]=_0x5941be,_0x2bc0f1[_0x4b3f55('0x16c1')]=_0x405e9e,_0x2bc0f1[_0x4b3f55('0x271')]=_0x4b3953,_0x2bc0f1[_0x4b3f55('0xe10')]=_0x3827d8,_0x2bc0f1[_0x4b3f55('0x143a')]=_0x134797,_0x2bc0f1[_0x4b3f55('0xa4f')]=_0x5f1b04,_0x2bc0f1[_0x4b3f55('0x30c')]=_0x53e85d,_0x2bc0f1['exportSelectedUserProfiles']=_0x240a7d,_0x2bc0f1[_0x4b3f55('0x1345')]=_0x22f177,_0x2bc0f1[_0x4b3f55('0x1ccc')]=_0x48f7ad,_0x2bc0f1['selectAllUserProfiles']=_0x373b49;function _0x5941be(_0x65483){var _0x2f00ba=_0x4b3f55;_0x37debd['go']('app.staff.userProfiles.edit',{'id':_0x65483['id'],'userProfile':_0x65483,'crudPermissions':_0x2bc0f1[_0x2f00ba('0xada')]});}function _0x405e9e(_0x299b0a,_0x1d2cfd){var _0x4dd75d=_0x4b3f55;_0x1f66c8[_0x4dd75d('0x1e6d')]({'controller':_0x4dd75d('0xba5'),'controllerAs':'vm','templateUrl':_0x2bce69,'parent':angular[_0x4dd75d('0x1aa8')](_0x317b18[_0x4dd75d('0x54c')]),'targetEvent':_0x1d2cfd,'clickOutsideToClose':!![],'locals':{'userProfile':_0x299b0a,'userProfiles':_0x2bc0f1[_0x4dd75d('0x25b0')]?_0x2bc0f1['userProfiles']['rows']:[],'crudPermissions':_0x2bc0f1[_0x4dd75d('0xada')]}});}function _0x4b3953(_0x3a5a7e,_0x1c964c){var _0x209715=_0x4b3f55,_0x55495f=_0x1f66c8[_0x209715('0x281e')]()[_0x209715('0x110a')](_0x209715('0x88d')+_0x51538b()[_0x209715('0x196a')]('userProfile')+'?')[_0x209715('0x102e')](''+(_0x3a5a7e[_0x209715('0x25d6')]||_0x209715('0x1e97'))+_0x209715('0x697')+_0x209715('0x210d'))['ariaLabel'](_0x209715('0x1da7'))[_0x209715('0x116d')](_0x1c964c)['ok']('OK')[_0x209715('0x2030')]('CANCEL');_0x1f66c8[_0x209715('0x1e6d')](_0x55495f)[_0x209715('0xaa5')](function(){_0x53e85d(_0x3a5a7e);},function(){var _0x3808e9=_0x209715;console['log'](_0x3808e9('0x2410'));});}var _0x73f63d=!![],_0x3839d4=0x1;_0x5c5631[_0x4b3f55('0x1ccf')](_0x4b3f55('0x1788'),function(_0x58e4c6,_0x478042){var _0x2d949c=_0x4b3f55;_0x73f63d?_0xb11e64(function(){_0x73f63d=![];}):(!_0x478042&&(_0x3839d4=_0x2bc0f1['query'][_0x2d949c('0x41')]),_0x58e4c6!==_0x478042&&(_0x2bc0f1[_0x2d949c('0x582')][_0x2d949c('0x41')]=0x1),!_0x58e4c6&&(_0x2bc0f1[_0x2d949c('0x582')][_0x2d949c('0x41')]=_0x3839d4),_0x2bc0f1[_0x2d949c('0x143a')]());});function _0x3827d8(_0x46fe33){_0x2bc0f1['userProfiles']=_0x46fe33||{'count':0x0,'rows':[]};}function _0x134797(){var _0x30475=_0x4b3f55;_0x2bc0f1[_0x30475('0x582')][_0x30475('0x8b1')]=(_0x2bc0f1[_0x30475('0x582')][_0x30475('0x41')]-0x1)*_0x2bc0f1['query'][_0x30475('0xf4d')],_0x4a36a9[_0x30475('0x26e8')]('admin')?_0x2bc0f1[_0x30475('0x159a')]=_0x137ac7[_0x30475('0x1e97')]['get'](_0x2bc0f1[_0x30475('0x582')],_0x3827d8)[_0x30475('0x1dc2')]:(_0x2bc0f1[_0x30475('0x582')]['id']=_0x2bc0f1[_0x30475('0x1e97')]['id'],_0x2bc0f1[_0x30475('0x582')][_0x30475('0x224d')]=_0x30475('0x56f'),_0x2bc0f1['promise']=_0x137ac7[_0x30475('0x1e97')][_0x30475('0x1cf1')](_0x2bc0f1['query'],_0x3827d8)['$promise']);}function _0x5f1b04(_0x4b4bf8,_0x520c8a){var _0x14bac9=_0x4b3f55;_0x1f66c8[_0x14bac9('0x1e6d')]({'controller':_0x14bac9('0x536'),'controllerAs':'vm','templateUrl':_0xaa9ce7,'parent':angular['element'](_0x317b18[_0x14bac9('0x54c')]),'targetEvent':_0x4b4bf8,'clickOutsideToClose':!![],'locals':{'userProfile':_0x520c8a,'userProfiles':_0x2bc0f1[_0x14bac9('0x25b0')][_0x14bac9('0x580')],'license':_0x2bc0f1[_0x14bac9('0x1202')],'setting':_0x2bc0f1[_0x14bac9('0x143f')],'crudPermissions':_0x2bc0f1[_0x14bac9('0xada')]}});}function _0x53e85d(_0x19b04c){var _0x302b2c=_0x4b3f55;_0x137ac7[_0x302b2c('0x1e97')][_0x302b2c('0x926')]({'id':_0x19b04c['id']})[_0x302b2c('0x1dc2')]['then'](function(){var _0x1a048e=_0x302b2c;_0x51538b()['remove'](_0x2bc0f1[_0x1a048e('0x25b0')]['rows'],{'id':_0x19b04c['id']}),_0x2bc0f1[_0x1a048e('0x25b0')][_0x1a048e('0xd15')]-=0x1,!_0x2bc0f1[_0x1a048e('0x25b0')][_0x1a048e('0x580')][_0x1a048e('0x2587')]&&_0x2bc0f1[_0x1a048e('0x143a')](),_0x33f2a3[_0x1a048e('0xe10')]({'title':_0x51538b()[_0x1a048e('0x196a')](_0x1a048e('0x12d9'))+_0x1a048e('0x8bb'),'msg':_0x19b04c['name']?_0x19b04c['name']+'\x20has\x20been\x20deleted!':''});})[_0x302b2c('0x253d')](function(_0x147d5b){var _0x3b7a01=_0x302b2c;if(_0x147d5b[_0x3b7a01('0x10fd')]&&_0x147d5b[_0x3b7a01('0x10fd')]['errors']&&_0x147d5b[_0x3b7a01('0x10fd')][_0x3b7a01('0x4c6')]['length']){_0x2bc0f1[_0x3b7a01('0x4c6')]=_0x147d5b[_0x3b7a01('0x10fd')][_0x3b7a01('0x4c6')]||[{'message':_0x147d5b[_0x3b7a01('0x684')](),'type':'SYSTEM:DELETEuserProfile'}];for(var _0x3ffba2=0x0;_0x3ffba2<_0x147d5b[_0x3b7a01('0x10fd')][_0x3b7a01('0x4c6')]['length'];_0x3ffba2++){_0x33f2a3['error']({'title':_0x147d5b[_0x3b7a01('0x10fd')][_0x3b7a01('0x4c6')][_0x3ffba2][_0x3b7a01('0x6c8')],'msg':_0x147d5b[_0x3b7a01('0x10fd')]['errors'][_0x3ffba2][_0x3b7a01('0x1402')]});}}else _0x33f2a3['error']({'title':_0x147d5b[_0x3b7a01('0x2fa')]?_0x3b7a01('0x16c2')+_0x147d5b[_0x3b7a01('0x2fa')]+_0x3b7a01('0x169e')+_0x147d5b['statusText']:_0x3b7a01('0x105e'),'msg':_0x147d5b[_0x3b7a01('0x10fd')]?JSON[_0x3b7a01('0xa48')](_0x147d5b['data'][_0x3b7a01('0x1402')]):_0x147d5b[_0x3b7a01('0x1402')]||_0x147d5b[_0x3b7a01('0x684')]()});});}function _0x240a7d(){var _0x19ff92=_0x4b3f55,_0x330e52=angular['copy'](_0x2bc0f1[_0x19ff92('0x999')]);return _0x2bc0f1[_0x19ff92('0x999')]=[],_0x330e52;}function _0x22f177(_0x3bd3c4){var _0x209a9c=_0x4b3f55,_0x181ebf=_0x1f66c8[_0x209a9c('0x281e')]()[_0x209a9c('0x110a')](_0x209a9c('0xd79'))['htmlContent'](_0x209a9c('0x389')+_0x2bc0f1[_0x209a9c('0x999')][_0x209a9c('0x2587')]+_0x209a9c('0x1443')+_0x209a9c('0x210d'))[_0x209a9c('0x5b5')]('delete\x20UserProfiles')[_0x209a9c('0x116d')](_0x3bd3c4)['ok']('OK')['cancel'](_0x209a9c('0x2410'));_0x1f66c8[_0x209a9c('0x1e6d')](_0x181ebf)[_0x209a9c('0xaa5')](function(){var _0x538109=_0x209a9c;_0x2bc0f1[_0x538109('0x999')][_0x538109('0x15b5')](function(_0xe1cf97){_0x53e85d(_0xe1cf97);}),_0x2bc0f1[_0x538109('0x999')]=[];});}function _0x48f7ad(){_0x2bc0f1['selectedUserProfiles']=[];}function _0x373b49(){var _0x18429d=_0x4b3f55;_0x2bc0f1[_0x18429d('0x999')]=_0x2bc0f1[_0x18429d('0x25b0')][_0x18429d('0x580')];}}const _0x3cbcf5=_0x180ba7;_0xaf6307['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x2204'),'user',_0x1a8446('0x157'),'Auth',_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0xaf6307(_0x13d5e7,_0x430bc6,_0xe7cadc,_0x14fe96,_0x450fe9,_0xf19f58,_0x22c087,_0x379a43,_0x3afc71,_0x52ba86,_0x59b65a,_0x2b138d,_0xf09ae1,_0x3cb5c0){var _0x1a0ce7=_0x1a8446,_0x572b7e=this;_0x572b7e[_0x1a0ce7('0x7fc')]=_0x59b65a[_0x1a0ce7('0xacc')](),_0x572b7e[_0x1a0ce7('0x4c6')]=[],_0x572b7e['setting']=_0xf09ae1,_0x572b7e[_0x1a0ce7('0x1202')]=_0x2b138d,_0x572b7e[_0x1a0ce7('0xada')]=_0x3cb5c0,_0x572b7e['hasModulePermissions']={},_0x572b7e[_0x1a0ce7('0x1d53')]=_0x572b7e[_0x1a0ce7('0x143f')]&&_0x572b7e[_0x1a0ce7('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x572b7e['title']=_0x1a0ce7('0x1255'),_0x572b7e[_0x1a0ce7('0x272b')]=angular[_0x1a0ce7('0x20a')](_0x3afc71),_0x572b7e[_0x1a0ce7('0x2204')]=_0x379a43,_0x572b7e[_0x1a0ce7('0x39a')]=![];!_0x572b7e[_0x1a0ce7('0x272b')]&&(_0x572b7e[_0x1a0ce7('0x272b')]={'role':_0x1a0ce7('0x272b'),'autointernal':!![],'context':_0x1a0ce7('0xde3')},_0x572b7e[_0x1a0ce7('0x110a')]=_0x1a0ce7('0xfbb'),_0x572b7e[_0x1a0ce7('0x39a')]=!![]);_0x572b7e[_0x1a0ce7('0xc9b')]=_0x2c62de,_0x572b7e[_0x1a0ce7('0x1f9b')]=_0x3a1bcb,_0x572b7e['deleteUser']=_0x2e5c54,_0x572b7e[_0x1a0ce7('0xc09')]=_0x71518b,_0x572b7e[_0x1a0ce7('0x2023')]=_0x56e78d,_0x52ba86['userProfile'][_0x1a0ce7('0x2122')]({'fields':_0x1a0ce7('0x17fe'),'sort':'name'})['$promise'][_0x1a0ce7('0xaa5')](function(_0x3550a5){var _0x209747=_0x1a0ce7;_0x572b7e[_0x209747('0x25b0')]=_0x3550a5[_0x209747('0x580')]||[];})[_0x1a0ce7('0x253d')](function(_0x4cf3f7){var _0x3865ab=_0x1a0ce7;_0x22c087['error']({'title':_0x4cf3f7[_0x3865ab('0x2fa')]?_0x3865ab('0x16c2')+_0x4cf3f7['status']+_0x3865ab('0x169e')+_0x4cf3f7['statusText']:_0x3865ab('0x24bf'),'msg':_0x4cf3f7[_0x3865ab('0x10fd')]?JSON[_0x3865ab('0xa48')](_0x4cf3f7[_0x3865ab('0x10fd')]):_0x4cf3f7[_0x3865ab('0x684')]()});});function _0x2c62de(){var _0x5a5716=_0x1a0ce7;_0x572b7e[_0x5a5716('0x4c6')]=[],_0x52ba86['user']['save'](_0x572b7e[_0x5a5716('0x272b')])[_0x5a5716('0x1dc2')][_0x5a5716('0xaa5')](function(_0x160d69){var _0x421519=_0x5a5716;_0x572b7e['users'][_0x421519('0x6ee')](_0x160d69[_0x421519('0x256a')]()),_0x22c087[_0x421519('0xe10')]({'title':_0x421519('0x10d2'),'msg':_0x572b7e[_0x421519('0x272b')][_0x421519('0x25d6')]?_0x572b7e[_0x421519('0x272b')][_0x421519('0x25d6')]+_0x421519('0xdca'):''}),_0x56e78d(_0x160d69);})[_0x5a5716('0x253d')](function(_0x479cb2){var _0x2b9fff=_0x5a5716;if(_0x479cb2[_0x2b9fff('0x10fd')]&&_0x479cb2['data'][_0x2b9fff('0x4c6')]&&_0x479cb2['data'][_0x2b9fff('0x4c6')]['length']){_0x572b7e[_0x2b9fff('0x4c6')]=_0x479cb2[_0x2b9fff('0x10fd')]['errors']||[{'message':_0x479cb2[_0x2b9fff('0x684')](),'type':_0x2b9fff('0x2228')}];for(var _0x1834d4=0x0;_0x1834d4<_0x479cb2[_0x2b9fff('0x10fd')][_0x2b9fff('0x4c6')][_0x2b9fff('0x2587')];_0x1834d4+=0x1){_0x22c087[_0x2b9fff('0x187f')]({'title':_0x479cb2[_0x2b9fff('0x10fd')][_0x2b9fff('0x4c6')][_0x1834d4][_0x2b9fff('0x6c8')],'msg':_0x479cb2[_0x2b9fff('0x10fd')][_0x2b9fff('0x4c6')][_0x1834d4]['message']});}}else _0x22c087['error']({'title':_0x479cb2[_0x2b9fff('0x2fa')]?_0x2b9fff('0x16c2')+_0x479cb2[_0x2b9fff('0x2fa')]+_0x2b9fff('0x169e')+_0x479cb2[_0x2b9fff('0x24df')]:_0x2b9fff('0x2228'),'msg':_0x479cb2['data']?JSON[_0x2b9fff('0xa48')](_0x479cb2[_0x2b9fff('0x10fd')][_0x2b9fff('0x1402')]):_0x479cb2[_0x2b9fff('0x684')]()});});}function _0x3a1bcb(){var _0x2ac510=_0x1a0ce7;_0x572b7e['errors']=[],_0x52ba86[_0x2ac510('0x272b')][_0x2ac510('0x264e')]({'id':_0x572b7e[_0x2ac510('0x272b')]['id']},_0x572b7e['user'])['$promise'][_0x2ac510('0xaa5')](function(_0x1ef662){var _0x1eb80a=_0x2ac510,_0x1deff2=_0x51538b()['find'](_0x572b7e[_0x1eb80a('0x2204')],{'id':_0x1ef662['id']});_0x1deff2&&_0x51538b()[_0x1eb80a('0x283c')](_0x1deff2,_0x51538b()['pick'](_0x1ef662['toJSON'](),_0x51538b()['keys'](_0x1deff2))),_0x22c087[_0x1eb80a('0xe10')]({'title':_0x1eb80a('0x458'),'msg':_0x572b7e[_0x1eb80a('0x272b')][_0x1eb80a('0x25d6')]?_0x572b7e[_0x1eb80a('0x272b')]['name']+_0x1eb80a('0x20bf'):''}),_0x56e78d(_0x1ef662);})[_0x2ac510('0x253d')](function(_0x2c055e){var _0x13962a=_0x2ac510;if(_0x2c055e[_0x13962a('0x10fd')]&&_0x2c055e['data'][_0x13962a('0x4c6')]&&_0x2c055e[_0x13962a('0x10fd')][_0x13962a('0x4c6')][_0x13962a('0x2587')]){_0x572b7e[_0x13962a('0x4c6')]=_0x2c055e['data'][_0x13962a('0x4c6')]||[{'message':_0x2c055e[_0x13962a('0x684')](),'type':_0x13962a('0x11e6')}];for(var _0x50d13f=0x0;_0x50d13f<_0x2c055e[_0x13962a('0x10fd')]['errors'][_0x13962a('0x2587')];_0x50d13f++){_0x22c087[_0x13962a('0x187f')]({'title':_0x2c055e[_0x13962a('0x10fd')]['errors'][_0x50d13f][_0x13962a('0x6c8')],'msg':_0x2c055e[_0x13962a('0x10fd')][_0x13962a('0x4c6')][_0x50d13f]['message']});}}else _0x22c087[_0x13962a('0x187f')]({'title':_0x2c055e['status']?_0x13962a('0x16c2')+_0x2c055e[_0x13962a('0x2fa')]+_0x13962a('0x169e')+_0x2c055e['statusText']:_0x13962a('0x11e6'),'msg':_0x2c055e['data']?JSON[_0x13962a('0xa48')](_0x2c055e[_0x13962a('0x10fd')][_0x13962a('0x1402')]):_0x2c055e['toString']()});});}function _0x2e5c54(_0x4be46f){var _0x3898b0=_0x1a0ce7,_0x4724da=_0x59b65a[_0x3898b0('0xacc')]();if(_0x4724da['id']===_0x572b7e['user']['id'])return _0x22c087[_0x3898b0('0x187f')]({'title':_0x3898b0('0x2094'),'msg':'You\x20can\x27t\x20remove\x20yourself'});_0x572b7e[_0x3898b0('0x4c6')]=[];var _0x57c5a9=_0x14fe96[_0x3898b0('0x281e')]()[_0x3898b0('0x110a')](_0x3898b0('0x12a3'))[_0x3898b0('0x15af')](_0x3898b0('0x943'))[_0x3898b0('0x5b5')](_0x3898b0('0xcc7'))['ok'](_0x3898b0('0x1e76'))[_0x3898b0('0x2030')](_0x3898b0('0x9c6'))[_0x3898b0('0x116d')](_0x4be46f);_0x14fe96[_0x3898b0('0x1e6d')](_0x57c5a9)[_0x3898b0('0xaa5')](function(){var _0x538df8=_0x3898b0;_0x52ba86['user']['delete']({'id':_0x572b7e[_0x538df8('0x272b')]['id']})[_0x538df8('0x1dc2')][_0x538df8('0xaa5')](function(){var _0x51a112=_0x538df8;_0x51538b()[_0x51a112('0xf6d')](_0x572b7e[_0x51a112('0x2204')],{'id':_0x572b7e[_0x51a112('0x272b')]['id']}),_0x22c087[_0x51a112('0xe10')]({'title':_0x51a112('0x27d1'),'msg':(_0x572b7e[_0x51a112('0x272b')]['name']||_0x51a112('0x272b'))+_0x51a112('0xcd9')}),_0x56e78d(_0x572b7e[_0x51a112('0x272b')]);})[_0x538df8('0x253d')](function(_0x2144e9){var _0x5d8900=_0x538df8;if(_0x2144e9[_0x5d8900('0x10fd')]&&_0x2144e9[_0x5d8900('0x10fd')][_0x5d8900('0x4c6')]&&_0x2144e9[_0x5d8900('0x10fd')][_0x5d8900('0x4c6')][_0x5d8900('0x2587')]){_0x572b7e[_0x5d8900('0x4c6')]=_0x2144e9[_0x5d8900('0x10fd')]['errors']||[{'message':_0x2144e9[_0x5d8900('0x684')](),'type':_0x5d8900('0x27c6')}];for(var _0x374668=0x0;_0x374668<_0x2144e9[_0x5d8900('0x10fd')]['errors'][_0x5d8900('0x2587')];_0x374668++){_0x22c087[_0x5d8900('0x187f')]({'title':_0x2144e9[_0x5d8900('0x10fd')][_0x5d8900('0x4c6')][_0x374668][_0x5d8900('0x6c8')],'msg':_0x2144e9['data'][_0x5d8900('0x4c6')][_0x374668][_0x5d8900('0x1402')]});}}else _0x22c087[_0x5d8900('0x187f')]({'title':_0x2144e9[_0x5d8900('0x2fa')]?_0x5d8900('0x16c2')+_0x2144e9['status']+_0x5d8900('0x169e')+_0x2144e9[_0x5d8900('0x24df')]:'api.user.delete','msg':_0x2144e9[_0x5d8900('0x10fd')]?JSON[_0x5d8900('0xa48')](_0x2144e9['data'][_0x5d8900('0x1402')]):_0x2144e9[_0x5d8900('0x1402')]||_0x2144e9[_0x5d8900('0x684')]()});});},function(){});}function _0x71518b(_0x2f4ba7){return _0x2f4ba7===null?undefined:new Date(_0x2f4ba7);}function _0x56e78d(_0x26f727){_0x14fe96['hide'](_0x26f727);}}const _0x4f005e=_0xaf6307;_0x384b77['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x272b'),_0x1a8446('0x1dfd')];function _0x384b77(_0x14a60b,_0x2e8584,_0x286beb,_0x1c0876,_0x35a75d){var _0x5864e8=_0x1a8446,_0x3a0b2a=this;_0x3a0b2a[_0x5864e8('0x7fc')]=_0x35a75d[_0x5864e8('0xacc')](),_0x3a0b2a[_0x5864e8('0x4c6')]=[],_0x3a0b2a['user']=_0x1c0876,_0x3a0b2a[_0x5864e8('0x23ba')]=_0x3d3ccb,_0x3a0b2a['removeApiKey']=_0x3c5137,_0x3a0b2a[_0x5864e8('0x2023')]=_0x2eccf3;function _0x3d3ccb(){var _0x560510=_0x5864e8;_0x3a0b2a['errors']=[],_0x286beb[_0x560510('0x272b')][_0x560510('0x21a7')]({'id':_0x3a0b2a[_0x560510('0x272b')]['id']})[_0x560510('0x1dc2')][_0x560510('0xaa5')](function(_0x419227){var _0x43aaab=_0x560510;_0x3a0b2a[_0x43aaab('0x272b')][_0x43aaab('0x655')]=_0x419227[_0x43aaab('0x390')]||_0x43aaab('0x25ba'),_0x2e8584[_0x43aaab('0xe10')]({'title':'User\x20API\x20key\x20updated!'}),_0x2eccf3();})['catch'](function(_0x4e0f63){var _0xad15c5=_0x560510;_0x2e8584[_0xad15c5('0x187f')]({'title':_0x4e0f63[_0xad15c5('0x2fa')]?_0xad15c5('0x16c2')+_0x4e0f63[_0xad15c5('0x2fa')]+_0xad15c5('0x169e')+_0x4e0f63[_0xad15c5('0x24df')]:_0xad15c5('0x7f1'),'msg':_0x4e0f63[_0xad15c5('0x10fd')]?JSON[_0xad15c5('0xa48')](_0x4e0f63[_0xad15c5('0x10fd')][_0xad15c5('0x1402')]):_0x4e0f63['toString']()}),_0x3a0b2a[_0xad15c5('0x4c6')]=_0x4e0f63[_0xad15c5('0x10fd')][_0xad15c5('0x4c6')]||[{'message':_0x4e0f63[_0xad15c5('0x684')](),'type':'api.user.createApiKey'}];});}function _0x3c5137(){var _0x317b6b=_0x5864e8;_0x3a0b2a[_0x317b6b('0x4c6')]=[],_0x286beb[_0x317b6b('0x272b')][_0x317b6b('0x9cd')]({'id':_0x3a0b2a[_0x317b6b('0x272b')]['id']})[_0x317b6b('0x1dc2')][_0x317b6b('0xaa5')](function(){var _0x3ce6cd=_0x317b6b;_0x3a0b2a[_0x3ce6cd('0x272b')]['apiKey']=_0x3ce6cd('0x25ba'),_0x2e8584[_0x3ce6cd('0xe10')]({'title':_0x3ce6cd('0x23e9')}),_0x2eccf3();})[_0x317b6b('0x253d')](function(_0x252f0e){var _0xd10f92=_0x317b6b;_0x2e8584['error']({'title':_0x252f0e[_0xd10f92('0x2fa')]?_0xd10f92('0x16c2')+_0x252f0e[_0xd10f92('0x2fa')]+_0xd10f92('0x169e')+_0x252f0e[_0xd10f92('0x24df')]:_0xd10f92('0x8ec'),'msg':_0x252f0e[_0xd10f92('0x10fd')]?JSON[_0xd10f92('0xa48')](_0x252f0e['data'][_0xd10f92('0x1402')]):_0x252f0e[_0xd10f92('0x684')]()}),_0x3a0b2a[_0xd10f92('0x4c6')]=_0x252f0e[_0xd10f92('0x10fd')]['errors']||[{'message':_0x252f0e[_0xd10f92('0x684')](),'type':_0xd10f92('0x8ec')}];});}function _0x2eccf3(){var _0x30a0aa=_0x5864e8;_0x14a60b[_0x30a0aa('0x1120')]();}}const _0x187d11=_0x384b77;_0x27ef4e['$inject']=['$cookies','toasty'];function _0x27ef4e(_0xe8ba7f,_0x314bb6){var _0x1e0229=_0x1a8446,_0x1a37fb=this,_0x42d2fc=0x8,_0x45d5a6=_0x42d2fc*0x400*0x400;_0x1a37fb['user']={},_0x1a37fb[_0x1e0229('0xada')],_0x1a37fb[_0x1e0229('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x45d5a6,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1a37fb['ngFlow']={'flow':{}},_0x1a37fb[_0x1e0229('0x258f')]=![],_0x1a37fb['fileAdded']=_0x505f8f,_0x1a37fb[_0x1e0229('0x158b')]=_0x488016,_0x1a37fb[_0x1e0229('0x1313')]=_0x310071,_0x1a37fb[_0x1e0229('0x2e')]=_0x4d1729;function _0x4d1729(_0x41543c,_0x323ef8){var _0x2b878e=_0x1e0229;_0x1a37fb[_0x2b878e('0x272b')]=angular['copy'](_0x41543c),_0x1a37fb[_0x2b878e('0xada')]=typeof _0x323ef8!==_0x2b878e('0x1574')?_0x323ef8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1a37fb[_0x2b878e('0x1c88')]['target']=_0x2b878e('0x111c')+_0x1a37fb[_0x2b878e('0x272b')]['id']+'/avatar',_0x1a37fb['user'][_0x2b878e('0x1b2d')]=[];}function _0x505f8f(_0x4d331a){var _0x100b82=_0x1e0229,_0x151135=[_0x100b82('0x981'),_0x100b82('0x1085')];if(!_0x51538b()[_0x100b82('0x13d6')](_0x151135,_0x4d331a[_0x100b82('0x177a')]()))return _0x314bb6[_0x100b82('0x187f')]({'title':_0x100b82('0x7bf')+_0x4d331a['getExtension'](),'msg':_0x100b82('0x88f')+_0x151135[_0x100b82('0x19c4')]()}),![];if(_0x4d331a[_0x100b82('0x9f9')]>_0x45d5a6)return _0x314bb6['error']({'title':_0x100b82('0xfad'),'msg':_0x100b82('0x15dd')+_0x42d2fc+'MB'}),![];var _0x235b64={'id':_0x4d331a[_0x100b82('0xd3c')],'file':_0x4d331a,'type':_0x100b82('0x10d')};return _0x1a37fb[_0x100b82('0x272b')][_0x100b82('0x1b2d')][_0x100b82('0x6ee')](_0x235b64),!![];}function _0x488016(){var _0x4e1629=_0x1e0229;_0x1a37fb[_0x4e1629('0x27cd')][_0x4e1629('0xcba')]['opts'][_0x4e1629('0xc71')]={'X-Requested-With':_0x4e1629('0x1888'),'Authorization':_0x4e1629('0x2070')+_0xe8ba7f[_0x4e1629('0x2122')](_0x4e1629('0x10f8'))},_0x1a37fb[_0x4e1629('0x27cd')][_0x4e1629('0xcba')][_0x4e1629('0x158b')]();}function _0x310071(_0x1d0b82){var _0x5a2b4e=_0x1e0229;angular[_0x5a2b4e('0x15b5')](_0x1a37fb['user']['images'],function(_0x1489e9){var _0x18f8ba=_0x5a2b4e;if(_0x1489e9['id']===_0x1d0b82['uniqueIdentifier']){var _0x2ff83f=new FileReader();_0x2ff83f[_0x18f8ba('0xc21')](_0x1489e9[_0x18f8ba('0x1945')]['file']),_0x2ff83f[_0x18f8ba('0x224e')]=function(_0x5dc38b){var _0x2ccb6f=_0x18f8ba;_0x1489e9['url']=_0x5dc38b[_0x2ccb6f('0xe2e')][_0x2ccb6f('0xcd6')];},_0x1489e9['type']='image';}});}}const _0x2c9404=_0x27ef4e;_0x7b33f1[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$mdDialog',_0x1a8446('0x2a4'),_0x1a8446('0x157'),'user','setting',_0x1a8446('0x1dfd')];function _0x7b33f1(_0x544794,_0x36f66e,_0x5c70c7,_0x5f4b89,_0x1aa216,_0x4a217a,_0x5e4aad){var _0x5a6a9c=_0x1a8446,_0x4149f5=this;_0x4149f5[_0x5a6a9c('0x7fc')]=_0x5e4aad[_0x5a6a9c('0xacc')](),_0x4149f5[_0x5a6a9c('0x4c6')]=[],_0x4149f5['setting']=_0x4a217a,_0x4149f5[_0x5a6a9c('0x1d53')]=_0x4149f5['setting'][_0x5a6a9c('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4149f5[_0x5a6a9c('0x272b')]=_0x1aa216,_0x4149f5['password']='',_0x4149f5[_0x5a6a9c('0x2050')]='',_0x4149f5[_0x5a6a9c('0x1cd4')]=_0x386874,_0x4149f5[_0x5a6a9c('0x2023')]=_0x560a21,_0x544794['$watch']('vm.password',function(_0xc62002){var _0x418315=_0x5a6a9c;!_0x51538b()[_0x418315('0x89a')](_0x4149f5[_0x418315('0x2050')])&&(_0xc62002===_0x4149f5[_0x418315('0x2050')]?_0x544794[_0x418315('0x541')][_0x418315('0x418')][_0x418315('0x18c9')]('oldPasswordMatch',![]):_0x544794[_0x418315('0x541')][_0x418315('0x418')][_0x418315('0x18c9')]('oldPasswordMatch',!![]));});function _0x386874(){var _0x2e4e69=_0x5a6a9c;_0x4149f5[_0x2e4e69('0x4c6')]=[];var _0x4ef2d6={'id':_0x4149f5['user']['id'],'newPassword':_0x4149f5[_0x2e4e69('0x418')]};_0x4149f5[_0x2e4e69('0x7fc')]['id']==_0x4149f5[_0x2e4e69('0x272b')]['id']&&(_0x4ef2d6['oldPassword']=_0x4149f5['oldPassword']),_0x5f4b89['user'][_0x2e4e69('0x1327')](_0x4ef2d6)[_0x2e4e69('0x1dc2')]['then'](function(){var _0x167dea=_0x2e4e69;_0x5c70c7[_0x167dea('0xe10')]({'title':_0x167dea('0x1c31')}),_0x560a21();})[_0x2e4e69('0x253d')](function(_0x30bca7){var _0x1cf711=_0x2e4e69;_0x5c70c7[_0x1cf711('0x187f')]({'title':_0x30bca7[_0x1cf711('0x2fa')]?_0x1cf711('0x16c2')+_0x30bca7[_0x1cf711('0x2fa')]+'\x20-\x20'+_0x30bca7[_0x1cf711('0x24df')]:'api.user.save','msg':_0x30bca7[_0x1cf711('0x10fd')]?JSON['stringify'](_0x30bca7[_0x1cf711('0x10fd')][_0x1cf711('0x1402')]):_0x30bca7[_0x1cf711('0x684')]()}),_0x4149f5['errors']=_0x30bca7[_0x1cf711('0x10fd')]['errors']||[{'message':_0x30bca7[_0x1cf711('0x684')](),'type':_0x1cf711('0xcc4')}];});}function _0x560a21(){var _0x469882=_0x5a6a9c;_0x36f66e[_0x469882('0x1120')]();}}const _0x421e5b=_0x7b33f1,_0x44caef=_0x4fb511['p']+_0x1a8446('0x1eb4'),_0xfd087f=_0x4fb511['p']+'src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.html/changepassword-[chunkhash].html';_0x227e39[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),'setting',_0x1a8446('0x157'),'toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x272b'),'userProfileSection'];function _0x227e39(_0x145176,_0x830796,_0x5aff4b,_0x390a0d,_0x3a88b5,_0x16d10f,_0x48f52a,_0x99f25d,_0x5674c3,_0x5e3616,_0x14a49e,_0x3b00d9){var _0x530c4b=_0x1a8446,_0x3abb21=this;_0x3abb21[_0x530c4b('0x7fc')]=_0x5e3616[_0x530c4b('0xacc')](),_0x3abb21['license']=_0x16d10f,_0x3abb21[_0x530c4b('0x143f')]=_0x48f52a,_0x3abb21[_0x530c4b('0x1d53')]=_0x3abb21[_0x530c4b('0x143f')][_0x530c4b('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3abb21[_0x530c4b('0x18cc')]=_0x830796[_0x530c4b('0x1cc2')]()+_0x530c4b('0x356')+_0x830796[_0x530c4b('0x160c')](),_0x3abb21[_0x530c4b('0x272b')]=_0x14a49e||_0x145176[_0x530c4b('0x25cf')]['user']||{},_0x3abb21[_0x530c4b('0x1a50')]=_0x3b00d9&&_0x3b00d9[_0x530c4b('0xd15')]==0x1?_0x3b00d9[_0x530c4b('0x580')][0x0]:null,_0x3abb21[_0x530c4b('0xada')]=_0x5e3616[_0x530c4b('0xffd')](_0x3abb21[_0x530c4b('0x1a50')]?_0x3abb21[_0x530c4b('0x1a50')][_0x530c4b('0xada')]:null),_0x3abb21[_0x530c4b('0x9f0')]={},_0x3abb21[_0x530c4b('0xe5c')]=_0x145176[_0x530c4b('0x25cf')]['tab']||0x0,_0x3abb21[_0x530c4b('0x1b95')]=_0x3d4c41,_0x3abb21['changepassworddialog']=_0x147dac,_0x3abb21[_0x530c4b('0xc10')]=_0x5674c3['info'],_0x3abb21[_0x530c4b('0x443')]=_0x347c84,_0x3abb21[_0x530c4b('0x1f9b')]=_0x33acee,_0x99f25d[_0x530c4b('0x68c')][_0x530c4b('0x2122')]({'fields':_0x530c4b('0x17fe'),'sort':_0x530c4b('0x25d6')})[_0x530c4b('0x1dc2')]['then'](function(_0x47e325){var _0x265ad0=_0x530c4b;_0x3abb21[_0x265ad0('0xdc5')]=_0x47e325[_0x265ad0('0x580')]||[];})['catch'](function(_0x8f58c){var _0x3769f4=_0x530c4b;_0x5674c3['error']({'title':_0x8f58c[_0x3769f4('0x2fa')]?_0x3769f4('0x16c2')+_0x8f58c[_0x3769f4('0x2fa')]+_0x3769f4('0x169e')+_0x8f58c[_0x3769f4('0x24df')]:_0x3769f4('0x1393'),'msg':_0x8f58c[_0x3769f4('0x10fd')]?JSON[_0x3769f4('0xa48')](_0x8f58c[_0x3769f4('0x10fd')]):_0x8f58c[_0x3769f4('0x684')]()});}),_0x99f25d[_0x530c4b('0x1e97')]['get']({'fields':'id,name','sort':'name'})[_0x530c4b('0x1dc2')][_0x530c4b('0xaa5')](function(_0x3d0d8c){var _0x47df9c=_0x530c4b;_0x3abb21[_0x47df9c('0x25b0')]=_0x3d0d8c[_0x47df9c('0x580')]||[];})[_0x530c4b('0x253d')](function(_0x507ab5){var _0x3d7de4=_0x530c4b;_0x5674c3['error']({'title':_0x507ab5[_0x3d7de4('0x2fa')]?'API:'+_0x507ab5[_0x3d7de4('0x2fa')]+_0x3d7de4('0x169e')+_0x507ab5[_0x3d7de4('0x24df')]:_0x3d7de4('0x24bf'),'msg':_0x507ab5[_0x3d7de4('0x10fd')]?JSON['stringify'](_0x507ab5[_0x3d7de4('0x10fd')]):_0x507ab5[_0x3d7de4('0x684')]()});}),_0x99f25d[_0x530c4b('0x272b')][_0x530c4b('0x1f82')]({'id':_0x3abb21[_0x530c4b('0x272b')]['id']})[_0x530c4b('0x1dc2')][_0x530c4b('0xaa5')](function(_0x5c327e){var _0x2c86ee=_0x530c4b;_0x3abb21[_0x2c86ee('0x272b')][_0x2c86ee('0x655')]=_0x5c327e[_0x2c86ee('0x390')]?_0x5c327e[_0x2c86ee('0x390')]:_0x2c86ee('0x25ba');})['catch'](function(_0x14036d){var _0x5731ed=_0x530c4b;_0x5674c3[_0x5731ed('0x187f')]({'title':_0x14036d[_0x5731ed('0x2fa')]?_0x5731ed('0x16c2')+_0x14036d[_0x5731ed('0x2fa')]+_0x5731ed('0x169e')+_0x14036d[_0x5731ed('0x24df')]:_0x5731ed('0x1fa7'),'msg':_0x14036d['data']?JSON[_0x5731ed('0xa48')](_0x14036d[_0x5731ed('0x10fd')]):_0x14036d[_0x5731ed('0x684')]()});});function _0x3d4c41(_0x209a2f,_0x55c60c){var _0x1658e5=_0x530c4b;_0x5aff4b[_0x1658e5('0x1e6d')]({'controller':'UserapikeymanagerController','controllerAs':'vm','templateUrl':_0x44caef,'parent':angular[_0x1658e5('0x1aa8')](_0x390a0d[_0x1658e5('0x54c')]),'targetEvent':_0x55c60c,'clickOutsideToClose':!![],'locals':{'user':_0x209a2f,'users':_0x3abb21[_0x1658e5('0x2204')]?_0x3abb21['users'][_0x1658e5('0x580')]:[],'crudPermissions':_0x3abb21[_0x1658e5('0xada')]}});}function _0x147dac(_0x1ef55c,_0x603324){var _0x5bb37d=_0x530c4b;_0x5aff4b[_0x5bb37d('0x1e6d')]({'controller':_0x5bb37d('0x63a'),'controllerAs':'vm','templateUrl':_0xfd087f,'parent':angular[_0x5bb37d('0x1aa8')](_0x390a0d[_0x5bb37d('0x54c')]),'targetEvent':_0x603324,'clickOutsideToClose':!![],'locals':{'user':_0x1ef55c,'setting':_0x48f52a,'users':_0x3abb21[_0x5bb37d('0x2204')]?_0x3abb21[_0x5bb37d('0x2204')]['rows']:[],'crudPermissions':_0x3abb21[_0x5bb37d('0xada')]}});}function _0x347c84(){var _0xf0ed45=_0x530c4b;_0x145176['go'](_0xf0ed45('0x691'),{},{'reload':_0xf0ed45('0x691')});}function _0x33acee(){var _0x54a6be=_0x530c4b;_0x3abb21[_0x54a6be('0x272b')]=_0x51538b()[_0x54a6be('0x245')](_0x3abb21[_0x54a6be('0x272b')],_0x54a6be('0x1af3')),_0x99f25d['user']['update']({'id':_0x3abb21['user']['id']},_0x3abb21[_0x54a6be('0x272b')])[_0x54a6be('0x1dc2')][_0x54a6be('0xaa5')](function(){var _0x480a4e=_0x54a6be;_0x5674c3['success']({'title':_0x480a4e('0xab9'),'msg':_0x3abb21[_0x480a4e('0x272b')]['name']?_0x3abb21[_0x480a4e('0x272b')][_0x480a4e('0x25d6')]+_0x480a4e('0x1734'):''});})[_0x54a6be('0x253d')](function(_0x10fb3d){var _0x1147c7=_0x54a6be;_0x5674c3['error']({'title':_0x10fb3d[_0x1147c7('0x2fa')]?'API:'+_0x10fb3d[_0x1147c7('0x2fa')]+_0x1147c7('0x169e')+_0x10fb3d['statusText']:'SYSTEM:GETuser','msg':_0x10fb3d[_0x1147c7('0x10fd')]?JSON[_0x1147c7('0xa48')](_0x10fb3d['data']):_0x10fb3d['toString']()});});}}const _0x5d843d=_0x227e39,_0x15385b=_0x4fb511['p']+_0x1a8446('0xd7e');_0x147b11[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window','$state',_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document','$timeout',_0x1a8446('0xcb3'),'users',_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),'toasty','Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x147b11(_0x55cda4,_0x4a9db7,_0x41ba01,_0x1a4f85,_0x3223f3,_0x556153,_0x1d7cd7,_0xc961b7,_0x30a2ef,_0x3946f2,_0x1fee98,_0xd61fdb,_0x5e9116,_0x5bf7f7,_0x5322f5,_0x423065,_0x25b3cd){var _0x395e56=_0x1a8446,_0x5e6983=this;_0x5e6983[_0x395e56('0x1202')]=_0x423065,_0x5e6983['setting']=_0x25b3cd,_0x5e6983['currentUser']=_0x5322f5['getCurrentUser'](),_0x5e6983[_0x395e56('0x2204')]=_0x30a2ef||{'count':0x0,'rows':[]},_0x5e6983[_0x395e56('0x1e97')]=_0x3946f2,_0x5e6983[_0x395e56('0x1a50')]=_0x1fee98&&_0x1fee98['count']==0x1?_0x1fee98[_0x395e56('0x580')][0x0]:null,_0x5e6983[_0x395e56('0xada')]=_0x5322f5[_0x395e56('0xffd')](_0x5e6983[_0x395e56('0x1a50')]?_0x5e6983[_0x395e56('0x1a50')][_0x395e56('0xada')]:null),_0x5e6983['table']='users',_0x5e6983[_0x395e56('0x164')]='',_0x5e6983[_0x395e56('0x8cc')]=null,_0x5e6983[_0x395e56('0xe19')]=[],_0x5e6983['query']={'fields':'createdAt,updatedAt,role,userProfileId,id,fullname,name,email,phone,mobile,userpic,password,description,autointernal,internal,transport,nat,allow,context,callgroup,pickupgroup,passwordResetAt,apiKey,videosupport,disabled,blocked','role':'admin,user','sort':_0x395e56('0xd82'),'limit':0xa,'page':0x1},_0x5e6983[_0x395e56('0xe72')]=_0x51538b()['keyBy']([{'option':_0x395e56('0x1a95'),'value':_0x395e56('0x1e71')},{'option':_0x395e56('0x21b9'),'value':'\x27user\x27'}],function(_0x4cb17d){var _0xf1ea99=_0x395e56;return _0x51538b()[_0xf1ea99('0x170d')](_0x4cb17d[_0xf1ea99('0x12f4')],new RegExp('\x27','g'),'');}),_0x5e6983[_0x395e56('0x271c')]=_0x51538b()[_0x395e56('0x184a')]([{'option':'udp','value':'\x27udp\x27'},{'option':_0x395e56('0x2429'),'value':_0x395e56('0xfb4')},{'option':'ws','value':_0x395e56('0x127e')},{'option':_0x395e56('0x15f2'),'value':_0x395e56('0x1bd')},{'option':_0x395e56('0x1bdc'),'value':'\x27tls\x27'}],function(_0x500294){var _0x55a91d=_0x395e56;return _0x51538b()['replace'](_0x500294[_0x55a91d('0x12f4')],new RegExp('\x27','g'),'');}),_0x5e6983['arraynat']=_0x51538b()['keyBy']([{'option':_0x395e56('0x623'),'value':'\x27force_rport\x27'},{'option':_0x395e56('0x1427'),'value':'\x27comedia\x27'},{'option':_0x395e56('0x98d'),'value':'\x27yes\x27'},{'option':'no','value':_0x395e56('0x539')},{'option':_0x395e56('0x158d'),'value':_0x395e56('0x1781')},{'option':_0x395e56('0xbc0'),'value':'\x27route\x27'}],function(_0x35db12){var _0x5e8663=_0x395e56;return _0x51538b()[_0x5e8663('0x170d')](_0x35db12['value'],new RegExp('\x27','g'),'');}),_0x5e6983[_0x395e56('0x140e')]=_0x51538b()['keyBy']([{'option':_0x395e56('0x1a1d'),'value':_0x395e56('0x24f7')},{'option':'alaw','value':_0x395e56('0x1dd5')},{'option':_0x395e56('0x2172'),'value':'\x27gsm\x27'},{'option':_0x395e56('0x97f'),'value':_0x395e56('0x259d')},{'option':_0x395e56('0x118e'),'value':_0x395e56('0x2159')},{'option':'opus','value':_0x395e56('0x2536')},{'option':_0x395e56('0x1a7d'),'value':'\x27h264\x27'}],function(_0x2184e0){var _0x28f819=_0x395e56;return _0x51538b()[_0x28f819('0x170d')](_0x2184e0['value'],new RegExp('\x27','g'),'');}),_0x5e6983[_0x395e56('0xc65')]=_0x51538b()[_0x395e56('0x184a')]([{'option':'Yes','value':'\x27yes\x27'},{'option':'No','value':_0x395e56('0x539')},{'option':_0x395e56('0xc90'),'value':_0x395e56('0x1dc8')}],function(_0x4a4317){var _0x4af40c=_0x395e56;return _0x51538b()[_0x4af40c('0x170d')](_0x4a4317[_0x4af40c('0x12f4')],new RegExp('\x27','g'),'');}),_0x5e6983[_0x395e56('0x1927')]=_0xf6f073,_0x5e6983[_0x395e56('0x271')]=_0x1e159d,_0x5e6983[_0x395e56('0xe10')]=_0x552425,_0x5e6983[_0x395e56('0x282f')]=_0x429b9f,_0x5e6983[_0x395e56('0x1d66')]=_0xc729c3,_0x5e6983[_0x395e56('0x16de')]=_0x3c9c02,_0x5e6983[_0x395e56('0x9d')]=_0x34e95a,_0x5e6983[_0x395e56('0x1c7d')]=_0x1ab393,_0x5e6983[_0x395e56('0x25db')]=_0x30ee16,_0x5e6983[_0x395e56('0x2119')]=_0x36efb7,_0xd61fdb[_0x395e56('0x1e97')][_0x395e56('0x2122')]({'fields':_0x395e56('0x17fe'),'sort':'name'})[_0x395e56('0x1dc2')]['then'](function(_0x16e2be){var _0x258874=_0x395e56;_0x5e6983['userProfiles']=_0x16e2be[_0x258874('0x580')]||[];})['catch'](function(_0x40931b){var _0x37103c=_0x395e56;_0x5bf7f7[_0x37103c('0x187f')]({'title':_0x40931b['status']?_0x37103c('0x16c2')+_0x40931b[_0x37103c('0x2fa')]+_0x37103c('0x169e')+_0x40931b[_0x37103c('0x24df')]:_0x37103c('0x24bf'),'msg':_0x40931b[_0x37103c('0x10fd')]?JSON[_0x37103c('0xa48')](_0x40931b[_0x37103c('0x10fd')]):_0x40931b[_0x37103c('0x684')]()});});function _0xf6f073(_0x434d21){var _0x35e1a0=_0x395e56;_0x41ba01['go']('app.staff.users.edit',{'id':_0x434d21['id'],'user':_0x434d21,'crudPermissions':_0x5e6983[_0x35e1a0('0xada')]});}function _0x1e159d(_0x2dc285,_0x134c35){var _0x173af9=_0x395e56,_0x4a71c6=_0x3223f3[_0x173af9('0x281e')]()['title'](_0x173af9('0x88d')+_0x51538b()[_0x173af9('0x196a')](_0x173af9('0x272b'))+'?')['htmlContent'](_0x173af9('0x389')+(_0x2dc285['name']||_0x173af9('0x272b'))+_0x173af9('0x697')+_0x173af9('0x210d'))[_0x173af9('0x5b5')]('delete\x20user')[_0x173af9('0x116d')](_0x134c35)['ok']('OK')[_0x173af9('0x2030')](_0x173af9('0x2410'));_0x3223f3[_0x173af9('0x1e6d')](_0x4a71c6)[_0x173af9('0xaa5')](function(){_0x3c9c02(_0x2dc285);},function(){var _0x5ddd9c=_0x173af9;console['log'](_0x5ddd9c('0x2410'));});}var _0x327cff=!![],_0x1b38b5=0x1;_0x55cda4['$watch'](_0x395e56('0x1788'),function(_0x933093,_0x1b75a3){var _0xcd2eee=_0x395e56;_0x327cff?_0x1d7cd7(function(){_0x327cff=![];}):(!_0x1b75a3&&(_0x1b38b5=_0x5e6983['query'][_0xcd2eee('0x41')]),_0x933093!==_0x1b75a3&&(_0x5e6983[_0xcd2eee('0x582')][_0xcd2eee('0x41')]=0x1),!_0x933093&&(_0x5e6983[_0xcd2eee('0x582')][_0xcd2eee('0x41')]=_0x1b38b5),_0x5e6983[_0xcd2eee('0x282f')]());});function _0x552425(_0x30d5cd){var _0x678c96=_0x395e56;_0x5e6983[_0x678c96('0x2204')]=_0x30d5cd||{'count':0x0,'rows':[]};}function _0x429b9f(){var _0x25f2f0=_0x395e56;_0x5e6983[_0x25f2f0('0x582')][_0x25f2f0('0x8b1')]=(_0x5e6983[_0x25f2f0('0x582')][_0x25f2f0('0x41')]-0x1)*_0x5e6983[_0x25f2f0('0x582')][_0x25f2f0('0xf4d')],_0x5322f5[_0x25f2f0('0x26e8')](_0x25f2f0('0x178b'))?_0x5e6983[_0x25f2f0('0x159a')]=_0xd61fdb[_0x25f2f0('0x272b')][_0x25f2f0('0x2122')](_0x5e6983[_0x25f2f0('0x582')],_0x552425)[_0x25f2f0('0x1dc2')]:(_0x5e6983[_0x25f2f0('0x582')]['id']=_0x5e6983[_0x25f2f0('0x1e97')]['id'],_0x5e6983[_0x25f2f0('0x582')][_0x25f2f0('0x224d')]=_0x25f2f0('0x16b4'),_0x5e6983[_0x25f2f0('0x159a')]=_0xd61fdb['userProfile'][_0x25f2f0('0x1cf1')](_0x5e6983[_0x25f2f0('0x582')],_0x552425)[_0x25f2f0('0x1dc2')]);}function _0xc729c3(_0x25c88e,_0x54c469){var _0x2ae0a1=_0x395e56;_0x3223f3['show']({'controller':'CreateOrEditUserDialogController','controllerAs':'vm','templateUrl':_0x15385b,'parent':angular[_0x2ae0a1('0x1aa8')](_0x556153['body']),'targetEvent':_0x25c88e,'clickOutsideToClose':!![],'locals':{'user':_0x54c469,'users':_0x5e6983[_0x2ae0a1('0x2204')]['rows'],'license':_0x5e6983[_0x2ae0a1('0x1202')],'setting':_0x5e6983[_0x2ae0a1('0x143f')],'crudPermissions':_0x5e6983['crudPermissions']}});}function _0x3c9c02(_0x2804b9){var _0x4e3219=_0x395e56;_0xd61fdb['user'][_0x4e3219('0x926')]({'id':_0x2804b9['id']})[_0x4e3219('0x1dc2')]['then'](function(){var _0xc3e3f4=_0x4e3219;_0x51538b()[_0xc3e3f4('0xf6d')](_0x5e6983['users'][_0xc3e3f4('0x580')],{'id':_0x2804b9['id']}),_0x5e6983[_0xc3e3f4('0x2204')][_0xc3e3f4('0xd15')]-=0x1,!_0x5e6983[_0xc3e3f4('0x2204')][_0xc3e3f4('0x580')][_0xc3e3f4('0x2587')]&&_0x5e6983[_0xc3e3f4('0x282f')](),_0x5bf7f7[_0xc3e3f4('0xe10')]({'title':_0x51538b()[_0xc3e3f4('0x196a')](_0xc3e3f4('0x21b9'))+'\x20deleted!','msg':_0x2804b9[_0xc3e3f4('0x25d6')]?_0x2804b9[_0xc3e3f4('0x25d6')]+_0xc3e3f4('0xcd9'):''});})[_0x4e3219('0x253d')](function(_0x5f0458){var _0x14a901=_0x4e3219;if(_0x5f0458[_0x14a901('0x10fd')]&&_0x5f0458['data']['errors']&&_0x5f0458[_0x14a901('0x10fd')][_0x14a901('0x4c6')][_0x14a901('0x2587')]){_0x5e6983['errors']=_0x5f0458[_0x14a901('0x10fd')][_0x14a901('0x4c6')]||[{'message':_0x5f0458[_0x14a901('0x684')](),'type':_0x14a901('0xb68')}];for(var _0x21058e=0x0;_0x21058e<_0x5f0458[_0x14a901('0x10fd')][_0x14a901('0x4c6')][_0x14a901('0x2587')];_0x21058e++){_0x5bf7f7[_0x14a901('0x187f')]({'title':_0x5f0458['data'][_0x14a901('0x4c6')][_0x21058e][_0x14a901('0x6c8')],'msg':_0x5f0458['data'][_0x14a901('0x4c6')][_0x21058e]['message']});}}else _0x5bf7f7[_0x14a901('0x187f')]({'title':_0x5f0458[_0x14a901('0x2fa')]?'API:'+_0x5f0458[_0x14a901('0x2fa')]+'\x20-\x20'+_0x5f0458['statusText']:_0x14a901('0xb68'),'msg':_0x5f0458[_0x14a901('0x10fd')]?JSON[_0x14a901('0xa48')](_0x5f0458[_0x14a901('0x10fd')][_0x14a901('0x1402')]):_0x5f0458[_0x14a901('0x1402')]||_0x5f0458[_0x14a901('0x684')]()});});}function _0x34e95a(){var _0x4904cd=_0x395e56,_0x2b214d=angular[_0x4904cd('0x20a')](_0x5e6983[_0x4904cd('0xe19')]);return _0x5e6983['selectedUsers']=[],_0x2b214d;}function _0x1ab393(_0x2895f2){var _0x1256d4=_0x395e56,_0x3a6ebf=_0x3223f3['confirm']()[_0x1256d4('0x110a')](_0x1256d4('0x1c03'))['htmlContent'](_0x1256d4('0x389')+_0x5e6983[_0x1256d4('0xe19')][_0x1256d4('0x2587')]+_0x1256d4('0x1443')+_0x1256d4('0x210d'))[_0x1256d4('0x5b5')](_0x1256d4('0x1cfa'))[_0x1256d4('0x116d')](_0x2895f2)['ok']('OK')['cancel'](_0x1256d4('0x2410'));_0x3223f3['show'](_0x3a6ebf)[_0x1256d4('0xaa5')](function(){var _0x26ff97=_0x1256d4;_0x5e6983['selectedUsers'][_0x26ff97('0x15b5')](function(_0xb7f903){_0x3c9c02(_0xb7f903);}),_0x5e6983['selectedUsers']=[];});}function _0x30ee16(){var _0x4df43b=_0x395e56;_0x5e6983[_0x4df43b('0xe19')]=[];}function _0x36efb7(){var _0x403a29=_0x395e56;_0x5e6983[_0x403a29('0xe19')]=_0x5e6983[_0x403a29('0x2204')][_0x403a29('0x580')];}}const _0x40c832=_0x147b11,_0x6b1e92=_0x4fb511['p']+_0x1a8446('0x2787'),_0x4a1589=_0x4fb511['p']+'src/js/modules/main/apps/staff/views/users/edit/view.html/view-[chunkhash].html',_0x2dec38=_0x4fb511['p']+_0x1a8446('0x2036'),_0x38c6aa=_0x4fb511['p']+'src/js/modules/main/apps/staff/views/agents/edit/view.html/view-[chunkhash].html',_0x2ce1e7=_0x4fb511['p']+'src/js/modules/main/apps/staff/views/telephones/telephones.html/telephones-[chunkhash].html',_0x4bc440=_0x4fb511['p']+'src/js/modules/main/apps/staff/views/telephones/edit/view.html/view-[chunkhash].html',_0x15efc4=_0x4fb511['p']+_0x1a8446('0x1b69'),_0x2ad01f=_0x4fb511['p']+_0x1a8446('0x1c6d'),_0x44b3d9=_0x4fb511['p']+_0x1a8446('0xea1');_0x2fd14a[_0x1a8446('0x1e33')]=['$stateProvider',_0x1a8446('0x208f')];function _0x2fd14a(_0x5c26c6,_0x173f4f){var _0x5c6bd4=_0x1a8446;_0x5c26c6[_0x5c6bd4('0xb46')](_0x5c6bd4('0x3d0'),{'abstract':!![],'url':_0x5c6bd4('0xadb')})[_0x5c6bd4('0xb46')](_0x5c6bd4('0x691'),{'url':_0x5c6bd4('0x2434'),'views':{'content@app':{'templateUrl':_0x6b1e92,'controller':_0x5c6bd4('0x11e8')}},'resolve':{'users':['apiResolver',function _0x40994f(_0x2fb9e9){var _0x14f62c=_0x5c6bd4;return _0x2fb9e9[_0x14f62c('0x149f')]('user@get',{'fields':_0x14f62c('0x83'),'role':_0x14f62c('0x368'),'sort':_0x14f62c('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x32a85b(_0x3fbab5,_0x5853fc){var _0x7645e7=_0x5c6bd4;return _0x5853fc[_0x7645e7('0x26e8')](_0x7645e7('0x178b'))?null:_0x3fbab5[_0x7645e7('0x149f')](_0x7645e7('0x567'),{'fields':_0x7645e7('0x1bb0'),'id':_0x5853fc[_0x7645e7('0xacc')]()[_0x7645e7('0x2168')]});}],'userProfileSection':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x1b1673(_0x149284,_0x206d31){var _0x6364f=_0x5c6bd4;return _0x206d31[_0x6364f('0x26e8')](_0x6364f('0x178b'))?null:_0x149284['resolve'](_0x6364f('0x89e'),{'fields':_0x6364f('0xe6a'),'userProfileId':_0x206d31[_0x6364f('0xacc')]()[_0x6364f('0x2168')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x5c6bd4('0x73e')})[_0x5c6bd4('0xb46')](_0x5c6bd4('0x14ff'),{'url':_0x5c6bd4('0xad'),'params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4a1589,'controller':_0x5c6bd4('0x6df')}},'resolve':{'user':['apiResolver',_0x5c6bd4('0x703'),function _0x254e6e(_0x275772,_0x418660){var _0x3ee9a2=_0x5c6bd4;return _0x275772[_0x3ee9a2('0x149f')]('user@get',{'fields':_0x3ee9a2('0x83'),'id':_0x418660['id']});}],'userProfileSection':['apiResolver',_0x5c6bd4('0x1dfd'),function _0x22b608(_0x53ba6d,_0x3161e2){var _0x5968b2=_0x5c6bd4;return _0x53ba6d[_0x5968b2('0x149f')](_0x5968b2('0x89e'),{'fields':_0x5968b2('0xe6a'),'userProfileId':_0x3161e2[_0x5968b2('0xacc')]()[_0x5968b2('0x2168')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x5c6bd4('0x73e')})['state'](_0x5c6bd4('0xd19'),{'url':'/agents','views':{'content@app':{'templateUrl':_0x2dec38,'controller':_0x5c6bd4('0x254c')}},'resolve':{'agents':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x5677a9(_0x41ce80,_0x2e304d){var _0x3e0991=_0x5c6bd4;return _0x2e304d[_0x3e0991('0x26e8')]('admin')?_0x41ce80[_0x3e0991('0x149f')](_0x3e0991('0xde4'),{'fields':_0x3e0991('0xb2c'),'role':_0x3e0991('0xeff'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x41ce80[_0x3e0991('0x149f')](_0x3e0991('0x49a'),{'id':_0x2e304d[_0x3e0991('0xacc')]()[_0x3e0991('0x2168')],'section':_0x3e0991('0x91a'),'fields':_0x3e0991('0xb2c'),'role':'agent','sort':_0x3e0991('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x27ed45(_0x3ddf80,_0xb77c4e){var _0x22af77=_0x5c6bd4;return _0xb77c4e['hasRole'](_0x22af77('0x178b'))?null:_0x3ddf80[_0x22af77('0x149f')](_0x22af77('0x567'),{'fields':'id,name,crudPermissions','id':_0xb77c4e[_0x22af77('0xacc')]()[_0x22af77('0x2168')]});}],'userProfileSection':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x7a769b(_0x449f34,_0x1a407d){var _0x114f94=_0x5c6bd4;return _0x1a407d[_0x114f94('0x26e8')](_0x114f94('0x178b'))?null:_0x449f34[_0x114f94('0x149f')](_0x114f94('0x89e'),{'fields':_0x114f94('0xe6a'),'userProfileId':_0x1a407d[_0x114f94('0xacc')]()['userProfileId'],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x5c6bd4('0x73e')})[_0x5c6bd4('0xb46')](_0x5c6bd4('0x228d'),{'url':'/:id?tab','params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x38c6aa,'controller':_0x5c6bd4('0x6bf')}},'resolve':{'agent':['apiResolver',_0x5c6bd4('0x703'),function _0x1acaa3(_0x1cf916,_0x25e7f6){var _0x59a649=_0x5c6bd4;return _0x1cf916[_0x59a649('0x149f')](_0x59a649('0xde4'),{'fields':_0x59a649('0xb2c'),'id':_0x25e7f6['id']});}],'userProfileSection':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x433ed6(_0x2c5ebb,_0x8f3f23){var _0x227a99=_0x5c6bd4;return _0x2c5ebb[_0x227a99('0x149f')]('userProfileSection@get',{'fields':_0x227a99('0xe6a'),'userProfileId':_0x8f3f23['getCurrentUser']()[_0x227a99('0x2168')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x5c6bd4('0x73e')})[_0x5c6bd4('0xb46')](_0x5c6bd4('0xf6a'),{'url':_0x5c6bd4('0x1d3f'),'views':{'content@app':{'templateUrl':_0x2ce1e7,'controller':_0x5c6bd4('0x1462')}},'resolve':{'telephones':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x519c1f(_0x28e58c,_0x409be0){var _0x346426=_0x5c6bd4;return _0x409be0[_0x346426('0x26e8')](_0x346426('0x178b'))?_0x28e58c[_0x346426('0x149f')](_0x346426('0xde4'),{'fields':_0x346426('0x1cb4'),'role':_0x346426('0xb5b'),'sort':_0x346426('0xd82'),'limit':0xa,'offset':0x0}):_0x28e58c[_0x346426('0x149f')](_0x346426('0x49a'),{'id':_0x409be0[_0x346426('0xacc')]()[_0x346426('0x2168')],'section':_0x346426('0x1c00'),'fields':_0x346426('0x1cb4'),'role':_0x346426('0xb5b'),'sort':_0x346426('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5c6bd4('0x1dfd'),function _0x1a8b48(_0x2706e0,_0x4c6ac1){var _0x5ad436=_0x5c6bd4;return _0x4c6ac1['hasRole'](_0x5ad436('0x178b'))?null:_0x2706e0[_0x5ad436('0x149f')](_0x5ad436('0x567'),{'fields':_0x5ad436('0x1bb0'),'id':_0x4c6ac1[_0x5ad436('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x44c625(_0x458f41,_0x57dcb6){var _0x292fd8=_0x5c6bd4;return _0x57dcb6['hasRole']('admin')?null:_0x458f41['resolve'](_0x292fd8('0x89e'),{'fields':_0x292fd8('0xe6a'),'userProfileId':_0x57dcb6[_0x292fd8('0xacc')]()[_0x292fd8('0x2168')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':'staff'})[_0x5c6bd4('0xb46')]('app.staff.telephones.edit',{'url':'/:id?tab','params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4bc440,'controller':_0x5c6bd4('0x1eba')}},'resolve':{'telephone':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x703'),function _0x1b04e4(_0x464095,_0x36000b){var _0x24a8e5=_0x5c6bd4;return _0x464095[_0x24a8e5('0x149f')]('user@get',{'fields':_0x24a8e5('0x1cb4'),'id':_0x36000b['id']});}],'userProfileSection':['apiResolver',_0x5c6bd4('0x1dfd'),function _0x30c43e(_0x49aec0,_0x4ec156){var _0x3ccfd8=_0x5c6bd4;return _0x49aec0[_0x3ccfd8('0x149f')](_0x3ccfd8('0x89e'),{'fields':_0x3ccfd8('0xe6a'),'userProfileId':_0x4ec156['getCurrentUser']()[_0x3ccfd8('0x2168')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x5c6bd4('0x73e')})[_0x5c6bd4('0xb46')]('app.staff.teams',{'url':_0x5c6bd4('0x1a8a'),'views':{'content@app':{'templateUrl':_0x15efc4,'controller':_0x5c6bd4('0x214f')}},'resolve':{'teams':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x37a9cf(_0x14f13b,_0x2f2314){var _0x5ac496=_0x5c6bd4;return _0x2f2314[_0x5ac496('0x26e8')](_0x5ac496('0x178b'))?_0x14f13b[_0x5ac496('0x149f')](_0x5ac496('0x1b39'),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x5ac496('0xd82'),'limit':0xa,'offset':0x0}):_0x14f13b[_0x5ac496('0x149f')](_0x5ac496('0x49a'),{'id':_0x2f2314[_0x5ac496('0xacc')]()[_0x5ac496('0x2168')],'section':_0x5ac496('0x10ee'),'fields':_0x5ac496('0x1798'),'sort':_0x5ac496('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5c6bd4('0x1d16'),'Auth',function _0x210c56(_0x26bdf7,_0x382a1d){var _0x34d176=_0x5c6bd4;return _0x382a1d[_0x34d176('0x26e8')](_0x34d176('0x178b'))?null:_0x26bdf7[_0x34d176('0x149f')](_0x34d176('0x567'),{'fields':'id,name,crudPermissions','id':_0x382a1d['getCurrentUser']()[_0x34d176('0x2168')]});}],'userProfileSection':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0xe0c9dc(_0x216b8c,_0x4b0ce6){var _0x1b5835=_0x5c6bd4;return _0x4b0ce6['hasRole'](_0x1b5835('0x178b'))?null:_0x216b8c[_0x1b5835('0x149f')](_0x1b5835('0x89e'),{'fields':_0x1b5835('0xe6a'),'userProfileId':_0x4b0ce6['getCurrentUser']()[_0x1b5835('0x2168')],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x5c6bd4('0x73e')})[_0x5c6bd4('0xb46')](_0x5c6bd4('0x2645'),{'url':_0x5c6bd4('0x8bd'),'views':{'content@app':{'templateUrl':_0x2ad01f,'controller':_0x5c6bd4('0x10a5')}},'resolve':{'userProfiles':['apiResolver',function _0x1e3604(_0x2ff9c4){var _0xbc1d0f=_0x5c6bd4;return _0x2ff9c4['resolve'](_0xbc1d0f('0x567'),{'fields':_0xbc1d0f('0x1740'),'sort':_0xbc1d0f('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5c6bd4('0x1dfd'),function _0x24283e(_0x513c92,_0x1c70e2){var _0x2b27b7=_0x5c6bd4;return _0x1c70e2[_0x2b27b7('0x26e8')](_0x2b27b7('0x178b'))?null:_0x513c92[_0x2b27b7('0x149f')]('userProfile@get',{'fields':_0x2b27b7('0x1bb0'),'id':_0x1c70e2[_0x2b27b7('0xacc')]()[_0x2b27b7('0x2168')]});}],'userProfileSection':['apiResolver',_0x5c6bd4('0x1dfd'),function _0x5241dd(_0x2ba464,_0x187d13){var _0x50d18c=_0x5c6bd4;return _0x187d13[_0x50d18c('0x26e8')](_0x50d18c('0x178b'))?null:_0x2ba464[_0x50d18c('0x149f')](_0x50d18c('0x89e'),{'fields':_0x50d18c('0xe6a'),'userProfileId':_0x187d13['getCurrentUser']()[_0x50d18c('0x2168')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x5c6bd4('0x73e')})[_0x5c6bd4('0xb46')](_0x5c6bd4('0x5a8'),{'url':'/:id?tab','params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x44b3d9,'controller':'UserProfileController\x20as\x20vm'}},'resolve':{'userProfile':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x703'),function _0x5df088(_0x3bae5b,_0xcfb989){var _0x9eea21=_0x5c6bd4;return _0x3bae5b[_0x9eea21('0x149f')](_0x9eea21('0x567'),{'fields':_0x9eea21('0x1740'),'id':_0xcfb989['id']});}],'userProfileSection':[_0x5c6bd4('0x1d16'),_0x5c6bd4('0x1dfd'),function _0x4853a5(_0x4cbfdf,_0x260e0a){var _0x163c46=_0x5c6bd4;return _0x4cbfdf['resolve'](_0x163c46('0x89e'),{'fields':_0x163c46('0xe6a'),'userProfileId':_0x260e0a[_0x163c46('0xacc')]()['userProfileId'],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x5c6bd4('0x73e')}),_0x173f4f['addPart'](_0x5c6bd4('0x46f'));}angular['module'](_0x1a8446('0x3d0'),['ngCsv',_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),_0x1a8446('0x150f'),_0x1a8446('0x110'),'mdPickers',_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),'ngclipboard','angular-cron-jobs',_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),'chart.js',_0x1a8446('0x775')])['config'](_0x2fd14a)['controller']('AgentsController',_0x1e1d7d)['controller'](_0x1a8446('0xd46'),_0x5a952b)[_0x1a8446('0x780')](_0x1a8446('0x85b'),_0x30a20f)[_0x1a8446('0x780')](_0x1a8446('0x362'),_0x220566)[_0x1a8446('0x780')](_0x1a8446('0x1ad4'),_0x420b84)[_0x1a8446('0x780')](_0x1a8446('0x1200'),_0x26c7e9)[_0x1a8446('0x780')](_0x1a8446('0x20b8'),_0x3d538b)[_0x1a8446('0x780')](_0x1a8446('0x972'),_0x1ab863)[_0x1a8446('0x780')]('CreateOrEditTeamDialogController',_0x4373d4)[_0x1a8446('0x780')](_0x1a8446('0x118b'),_0x184f0d)[_0x1a8446('0x780')](_0x1a8446('0x111'),_0x2f365a)['controller'](_0x1a8446('0x4ef'),_0x20795d)[_0x1a8446('0x780')](_0x1a8446('0x6f3'),_0x3d53c5)['controller'](_0x1a8446('0x2786'),_0x53fac5)['controller'](_0x1a8446('0x347'),_0x5e25bd)[_0x1a8446('0x780')](_0x1a8446('0x536'),_0x4aeeb9)[_0x1a8446('0x780')]('UserProfilecloneController',_0x203cec)[_0x1a8446('0x780')](_0x1a8446('0x15f7'),_0x55be9e)[_0x1a8446('0x780')](_0x1a8446('0x2827'),_0x42786e)['controller'](_0x1a8446('0x10f3'),_0x280a9c)['controller'](_0x1a8446('0x27e1'),_0x3cbcf5)[_0x1a8446('0x780')]('CreateOrEditUserDialogController',_0x4f005e)['controller'](_0x1a8446('0xf93'),_0x187d11)['controller'](_0x1a8446('0x273a'),_0x2c9404)['controller']('UserchangepasswordController',_0x421e5b)[_0x1a8446('0x780')](_0x1a8446('0x101e'),_0x5d843d)[_0x1a8446('0x780')]('UsersController',_0x40c832);const _0x15560a=_0x4fb511['p']+_0x1a8446('0x1ecd'),_0x1728b6=_0x4fb511['p']+_0x1a8446('0x1399');_0x1527ce['$inject']=['$scope',_0x1a8446('0x39b'),'$timeout',_0x1a8446('0x145b'),'$stateParams',_0x1a8446('0x2378'),'$q',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x1cfb'),_0x1a8446('0x1126'),_0x1a8446('0xa52'),_0x1a8446('0x1171'),_0x1a8446('0x1a6b'),'tags',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'license'];function _0x1527ce(_0x3197e5,_0x2b0fca,_0x3f25ae,_0x4ab22a,_0x3bd173,_0x435458,_0x4d7be4,_0x5a4fb0,_0xfe313f,_0x512917,_0xe18591,_0x3b3cc2,_0x3838c4,_0x36819f,_0x55d9a0,_0x261094,_0x153431,_0x26f165,_0x149ca3){var _0x43a728=_0x1a8446,_0x18359e=this;_0x18359e['currentUser']=_0x26f165[_0x43a728('0xacc')](),_0x18359e[_0x43a728('0x1202')]=_0x149ca3,_0x18359e[_0x43a728('0x1e97')]=_0x5a4fb0,_0x18359e[_0x43a728('0x1a50')]=_0xfe313f&&_0xfe313f[_0x43a728('0xd15')]==0x1?_0xfe313f[_0x43a728('0x580')][0x0]:null,_0x18359e[_0x43a728('0xada')]=_0x26f165[_0x43a728('0xffd')](_0x18359e[_0x43a728('0x1a50')]?_0x18359e[_0x43a728('0x1a50')]['crudPermissions']:null);var _0x18d8ea=0x3c,_0x4d9ec4=_0x18d8ea*0x400*0x400;_0x18359e['ngFlowOptions']={'target':_0x43a728('0x1f6b'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4d9ec4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x18359e[_0x43a728('0x1cfb')]=_0xe18591||{'count':0x0,'rows':[]},_0x18359e[_0x43a728('0x1b36')]={'hidden':![],'hover':![],'isOpen':![]},_0x18359e[_0x43a728('0x12b6')]='cm_contacts',_0x18359e['selectedContacts']=[],_0x18359e[_0x43a728('0x1126')]=_0x3b3cc2||{'rows':[],'count':0x0},_0x18359e[_0x43a728('0x1171')]=_0x36819f||{'rows':[],'count':0x0},_0x18359e[_0x43a728('0x523')]=_0x261094||{'rows':[],'count':0x0},_0x18359e[_0x43a728('0xa52')]=_0x3838c4,_0x18359e[_0x43a728('0x1a6b')]=_0x55d9a0,_0x18359e[_0x43a728('0x1373')]=[],_0x18359e[_0x43a728('0x7a3')]=null,_0x18359e[_0x43a728('0x1296')]=null,_0x18359e[_0x43a728('0x582')]=_0x51538b()[_0x43a728('0x283c')]({'includeAll':!![],'sort':_0x43a728('0xd82'),'limit':0xa,'offset':0x0,'page':0x1},_0x3bd173),_0x18359e[_0x43a728('0x1960')]=_0x431955,_0x18359e[_0x43a728('0x271')]=_0x5e2200,_0x18359e['success']=_0x4f16c0,_0x18359e['getContacts']=_0xa863c8,_0x18359e[_0x43a728('0x21fe')]=_0x137bfd,_0x18359e[_0x43a728('0x1e9e')]=_0x1b65c1,_0x18359e['duplicateContact']=_0x1291f6,_0x18359e[_0x43a728('0x708')]=_0x543683,_0x18359e[_0x43a728('0x26fc')]=_0x4b9588,_0x18359e['exportSelectedContacts']=_0x13ca70,_0x18359e[_0x43a728('0x19f6')]=_0x5ea3a9,_0x18359e[_0x43a728('0xc63')]=_0x2aa9d6,_0x18359e['selectAllContacts']=_0x1f20eb,_0x18359e[_0x43a728('0x22ec')]=_0x207bb6,_0x18359e[_0x43a728('0x18c3')]=_0x1988e3,_0x18359e[_0x43a728('0x18f8')]=_0x5aded6,_0x18359e[_0x43a728('0x13cd')]=_0x4c0da5,_0x18359e['hasPermission']=_0x34110b,_0x18359e[_0x43a728('0x20d1')]=_0x3de864;_0x4ab22a[_0x43a728('0x25cf')][_0x43a728('0xee0')]&&(_0x18359e[_0x43a728('0x7a3')]=_0x4ab22a[_0x43a728('0x25cf')][_0x43a728('0xee0')]);_0x4ab22a[_0x43a728('0x25cf')][_0x43a728('0x1dc7')]&&(_0x18359e[_0x43a728('0x1296')]=_0x4ab22a['params'][_0x43a728('0x1dc7')]);_0x3197e5['$watch'](_0x43a728('0xeda'),function(_0x96c7ba){var _0x2f1bc2=_0x43a728;_0x96c7ba?_0x3f25ae(function(){var _0x119ed8=a0_0x1149;_0x3197e5[_0x119ed8('0x1d5d')]=_0x18359e[_0x119ed8('0x1b36')][_0x119ed8('0x1a6d')];},0x258):_0x3197e5[_0x2f1bc2('0x1d5d')]=_0x18359e['options'][_0x2f1bc2('0x1a6d')];});function _0x137bfd(){var _0x1a0ebc=_0x43a728;if(!_0x26f165['hasRole'](_0x1a0ebc('0x178b'))){var _0x3c28c6=_0x51538b()(_0x18359e[_0x1a0ebc('0x1cfb')]['rows'])[_0x1a0ebc('0x1246')](function(_0x16de2b){var _0x52979a=_0x1a0ebc;return{'id':_0x16de2b[_0x52979a('0x1dc7')]};})['uniqBy']('id')['filter'](function(_0x465caa){return _0x465caa['id']&&_0x465caa['id']>0x0;})['pullAllBy'](_0x18359e[_0x1a0ebc('0x1171')]['rows'],'id')['value']();if(!_0x51538b()[_0x1a0ebc('0x116b')](_0x3c28c6)){var _0x49c304=[];_0x3c28c6['forEach'](function(_0x536f61){var _0x37d8cc=_0x1a0ebc;_0x49c304[_0x37d8cc('0x1599')](_0x512917[_0x37d8cc('0x218')][_0x37d8cc('0x2122')]({'id':_0x536f61['id'],'fields':_0x37d8cc('0x17fe')})[_0x37d8cc('0x1dc2')]);}),_0x4d7be4[_0x1a0ebc('0xa15')](_0x49c304)['then'](function(_0x137d5a){_0x137d5a['forEach'](function(_0x101c23){var _0x397928=a0_0x1149,_0x296efa=_0x101c23[_0x397928('0x256a')]();_0x296efa[_0x397928('0x12eb')]=![],_0x18359e[_0x397928('0x1171')][_0x397928('0x580')][_0x397928('0x1599')](_0x296efa);var _0x54be3d={};_0x54be3d[_0x296efa['id']]=_0x296efa[_0x397928('0x25d6')],_0x18359e['companiesMap']=_0x51538b()['assignIn'](_0x18359e['companiesMap'],_0x54be3d);});})[_0x1a0ebc('0x253d')](function(_0x4419f7){var _0x390da6=_0x1a0ebc;_0x153431['error']({'title':_0x4419f7['status']?_0x390da6('0x16c2')+_0x4419f7['status']+_0x390da6('0x169e')+_0x4419f7[_0x390da6('0x24df')]:_0x390da6('0x1545'),'msg':_0x4419f7[_0x390da6('0x10fd')]?JSON['stringify'](_0x4419f7[_0x390da6('0x10fd')]['message']):_0x4419f7[_0x390da6('0x684')]()});});}}}function _0x1988e3(_0x453e1e){var _0x4a94e4=_0x43a728,_0x3569f1=_0x435458[_0x4a94e4('0x19b8')]()[_0x4a94e4('0x110a')](_0x4a94e4('0x2581'))[_0x4a94e4('0x674')](_0x4a94e4('0x4ca'))[_0x4a94e4('0x5b5')](_0x4a94e4('0x4ca'))[_0x4a94e4('0x116d')](_0x453e1e)['ok']('Ok')[_0x4a94e4('0x2030')](_0x4a94e4('0x9c6'));return _0x435458['show'](_0x3569f1)['then'](function(_0x30e448){var _0x496332=_0x4a94e4;if(_0x30e448)return _0x512917['cmList'][_0x496332('0x242b')]({'name':_0x30e448});else _0x153431[_0x496332('0x187f')]({'title':_0x496332('0x4e5'),'msg':_0x496332('0x17e5')});})[_0x4a94e4('0xaa5')](function(_0x140a16){var _0x3a0e74=_0x4a94e4;_0x140a16&&(_0x18359e[_0x3a0e74('0x1126')]['rows']['push'](_0x140a16),_0x153431[_0x3a0e74('0xe10')]({'title':_0x3a0e74('0xd'),'msg':_0x140a16[_0x3a0e74('0x25d6')]?_0x140a16[_0x3a0e74('0x25d6')]+_0x3a0e74('0xdca'):''}));});}function _0x34110b(){var _0x466b97=_0x43a728;return _0x26f165[_0x466b97('0x69e')](0x12f)||_0x26f165[_0x466b97('0x26e8')]('admin');}function _0x5aded6(_0x3ee6c7){var _0xb3a498=_0x43a728,_0x14270b=_0x435458[_0xb3a498('0x19b8')]()['title'](_0xb3a498('0x1ff9'))[_0xb3a498('0x674')]('Company\x20name')[_0xb3a498('0x5b5')](_0xb3a498('0xdcc'))['targetEvent'](_0x3ee6c7)['ok']('Ok')[_0xb3a498('0x2030')](_0xb3a498('0x9c6'));return _0x435458[_0xb3a498('0x1e6d')](_0x14270b)[_0xb3a498('0xaa5')](function(_0x51844){var _0x4ba6e4=_0xb3a498;if(_0x51844)return _0x512917[_0x4ba6e4('0x218')][_0x4ba6e4('0x242b')]({'name':_0x51844});else _0x153431[_0x4ba6e4('0x187f')]({'title':_0x4ba6e4('0x1d69'),'msg':_0x4ba6e4('0x760')});})['then'](function(_0x691a2c){var _0x2140c3=_0xb3a498;_0x691a2c&&(_0x18359e['companies'][_0x2140c3('0x580')]['push'](_0x691a2c),_0x153431[_0x2140c3('0xe10')]({'title':_0x2140c3('0xa63'),'msg':_0x691a2c[_0x2140c3('0x25d6')]?_0x691a2c[_0x2140c3('0x25d6')]+_0x2140c3('0xdca'):''}));});}function _0x207bb6(_0x263601){var _0x2c8811=_0x43a728,_0x52b44e=_0x435458[_0x2c8811('0x19b8')]()[_0x2c8811('0x110a')](_0x2c8811('0x20f7'))['placeholder'](_0x2c8811('0xcb5'))[_0x2c8811('0x5b5')]('Tag\x20name')['targetEvent'](_0x263601)['ok']('Ok')[_0x2c8811('0x2030')]('Cancel');return _0x435458[_0x2c8811('0x1e6d')](_0x52b44e)['then'](function(_0x2a347c){var _0x13b9f9=_0x2c8811;if(_0x2a347c)return _0x512917['tag'][_0x13b9f9('0x242b')]({'name':_0x2a347c});else _0x153431[_0x13b9f9('0x187f')]({'title':'Error\x20creating\x20tag!','msg':'Invalid\x20tag\x20name.'});})[_0x2c8811('0xaa5')](function(_0x52845c){var _0x1510c9=_0x2c8811;_0x52845c&&(_0x18359e[_0x1510c9('0x523')][_0x1510c9('0x580')]['push'](_0x52845c),_0x153431[_0x1510c9('0xe10')]({'title':'Tag\x20properly\x20created!','msg':_0x52845c[_0x1510c9('0x38f')]?_0x52845c[_0x1510c9('0x25d6')]+_0x1510c9('0xdca'):''}));});}function _0x4c0da5(_0x96b7c3,_0xc655f){var _0x239a5b=_0x43a728,_0x2c530b=JSON[_0x239a5b('0x9b6')](_0xc655f);_0x435458[_0x239a5b('0x1e6d')]({'controller':_0x239a5b('0xc01'),'controllerAs':'vm','templateUrl':_0x15560a,'parent':angular[_0x239a5b('0x1aa8')](_0x2b0fca[_0x239a5b('0x54c')]),'clickOutsideToClose':![],'locals':{'lists':_0x3b3cc2,'companies':_0x36819f,'file':_0x2c530b[_0x239a5b('0x1945')],'fields':_0x2c530b[_0x239a5b('0x13a')],'license':_0x18359e['license']}})[_0x239a5b('0xaa5')](function(){var _0x3e1f9a=_0x239a5b;_0x18359e[_0x3e1f9a('0x1c2')]();})[_0x239a5b('0x253d')](function(){var _0x230853=_0x239a5b;console[_0x230853('0x187f')]();});}function _0x431955(_0x36821e){var _0x23a360=_0x43a728;_0x4ab22a['go']('app.contactmanager.contacts.edit',{'id':_0x36821e['id'],'crudPermissions':_0x18359e[_0x23a360('0xada')]});}function _0x5e2200(_0x4b1e3f,_0x11d5b1){var _0x3e35b0=_0x43a728,_0x383887=_0x435458[_0x3e35b0('0x281e')]()[_0x3e35b0('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20contact?')[_0x3e35b0('0x102e')](''+(_0x4b1e3f[_0x3e35b0('0x24c1')]||_0x4b1e3f[_0x3e35b0('0x1f69')]||_0x4b1e3f[_0x3e35b0('0x1a46')]||_0x3e35b0('0x1dc'))+_0x3e35b0('0x697')+_0x3e35b0('0x210d'))['ariaLabel']('delete\x20contact')['targetEvent'](_0x11d5b1)['ok']('OK')[_0x3e35b0('0x2030')]('CANCEL');_0x435458[_0x3e35b0('0x1e6d')](_0x383887)[_0x3e35b0('0xaa5')](function(){_0x4b9588(_0x4b1e3f);});}function _0x3de864(_0xa6ac5){var _0x3474e1=_0x43a728,_0x4f0355=[_0x3474e1('0x8b3')];if(!_0x51538b()[_0x3474e1('0x13d6')](_0x4f0355,_0xa6ac5[_0x3474e1('0x177a')]()))return _0x153431['error']({'title':_0x3474e1('0x7bf')+_0xa6ac5[_0x3474e1('0x177a')](),'msg':_0x3474e1('0x88f')+_0x4f0355[_0x3474e1('0x19c4')]()}),![];if(_0xa6ac5[_0x3474e1('0x9f9')]>_0x4d9ec4)return _0x153431['error']({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x18d8ea+'MB'}),![];return!![];}var _0x1a2235=!![],_0x2675b4=0x1;_0x3197e5[_0x43a728('0x1ccf')](_0x43a728('0x1788'),function(_0x195438,_0x132c09){var _0x20671b=_0x43a728;_0x1a2235?_0x3f25ae(function(){_0x1a2235=![];}):(!_0x132c09&&(_0x2675b4=_0x18359e['query'][_0x20671b('0x41')]),_0x195438!==_0x132c09&&(_0x18359e[_0x20671b('0x582')][_0x20671b('0x41')]=0x1),!_0x195438&&(_0x18359e['query'][_0x20671b('0x41')]=_0x2675b4),_0x18359e[_0x20671b('0x1c2')]());},!![]),_0x3197e5[_0x43a728('0x1ccf')](_0x43a728('0x937'),function(_0x286aa5,_0x3aa4ed){var _0x389554=_0x43a728;_0x286aa5!==_0x3aa4ed&&(_0x18359e[_0x389554('0x582')][_0x389554('0xee0')]=_0x18359e[_0x389554('0x7a3')]||undefined,_0x18359e[_0x389554('0x1c2')]());}),_0x3197e5[_0x43a728('0x1ccf')](_0x43a728('0x1a9c'),function(_0xfb23bc,_0x1bee03){var _0x3d73d6=_0x43a728;_0xfb23bc!==_0x1bee03&&(_0x18359e[_0x3d73d6('0x582')][_0x3d73d6('0x1dc7')]=_0x18359e[_0x3d73d6('0x1296')]||undefined,_0x18359e[_0x3d73d6('0x1c2')]());}),_0x3197e5[_0x43a728('0x1ccf')](_0x43a728('0x1f4f'),function(_0x529bf4,_0x5270ef){var _0x2ef943=_0x43a728;(_0x529bf4['length']||_0x5270ef[_0x2ef943('0x2587')])&&_0x18359e[_0x2ef943('0x1c2')]();});function _0x4f16c0(_0x3adec2){var _0x5e7455=_0x43a728;_0x18359e[_0x5e7455('0x1cfb')]=_0x3adec2||{'count':0x0,'rows':[]};}function _0xa863c8(){var _0x1a7051=_0x43a728;_0x18359e[_0x1a7051('0x582')][_0x1a7051('0x8b1')]=(_0x18359e[_0x1a7051('0x582')][_0x1a7051('0x41')]-0x1)*_0x18359e[_0x1a7051('0x582')]['limit'],_0x26f165[_0x1a7051('0x26e8')]('admin')?_0x18359e[_0x1a7051('0x159a')]=_0x512917[_0x1a7051('0xdbd')][_0x1a7051('0x2122')](_0x18359e[_0x1a7051('0x582')],_0x4f16c0)[_0x1a7051('0x1dc2')]:(_0x18359e[_0x1a7051('0x582')]['id']=_0x18359e[_0x1a7051('0x1e97')]['id'],_0x18359e[_0x1a7051('0x582')][_0x1a7051('0xee0')]=!_0x18359e['query'][_0x1a7051('0xee0')]?_0x51538b()[_0x1a7051('0x1246')](_0x18359e[_0x1a7051('0x1126')][_0x1a7051('0x580')],'id'):_0x18359e[_0x1a7051('0x582')]['ListId'],_0x18359e[_0x1a7051('0x582')][_0x1a7051('0x1dc7')]=!_0x18359e[_0x1a7051('0x582')][_0x1a7051('0x1dc7')]?_0x51538b()(_0x18359e[_0x1a7051('0x1171')][_0x1a7051('0x580')])[_0x1a7051('0xdb7')]({'canSelect':undefined})[_0x1a7051('0x1246')]('id')[_0x1a7051('0x12f4')]():_0x18359e[_0x1a7051('0x582')][_0x1a7051('0x1dc7')],_0x18359e['query']['section']='Contacts',_0x18359e['promise']=_0x512917[_0x1a7051('0x1e97')][_0x1a7051('0x1cf1')](_0x18359e[_0x1a7051('0x582')],_0x4f16c0)[_0x1a7051('0x1dc2')]);}function _0x543683(_0x7cd85f,_0x3cd109){var _0x4eba21=_0x43a728;_0x3cd109&&_0x3cd109[_0x4eba21('0xae0')]&&(_0x3cd109[_0x4eba21('0xae0')]=new Date(_0x3cd109[_0x4eba21('0xae0')])),_0x435458[_0x4eba21('0x1e6d')]({'controller':_0x4eba21('0x202e'),'controllerAs':'vm','templateUrl':_0x1728b6,'parent':angular[_0x4eba21('0x1aa8')](_0x2b0fca[_0x4eba21('0x54c')]),'targetEvent':_0x7cd85f,'clickOutsideToClose':!![],'locals':{'ListId':_0x18359e['query'][_0x4eba21('0xee0')]||_0x4ab22a[_0x4eba21('0x25cf')][_0x4eba21('0xee0')],'CompanyId':_0x18359e[_0x4eba21('0x582')]['CompanyId']||_0x4ab22a['params'][_0x4eba21('0x1dc7')],'contact':_0x3cd109,'contacts':_0x18359e['contacts']['rows'],'companies':_0x18359e['companies'],'lists':_0x18359e[_0x4eba21('0x1126')],'setting':null,'crudPermissions':_0x18359e[_0x4eba21('0xada')]}});}function _0x1291f6(_0x3ff0be,_0x8afd3d){var _0x1f9fc9=_0x43a728;_0x435458[_0x1f9fc9('0x1e6d')]({'controller':_0x1f9fc9('0x18b1'),'controllerAs':'vm','templateUrl':_0x1121c7,'parent':angular['element'](_0x2b0fca[_0x1f9fc9('0x54c')]),'targetEvent':_0x3ff0be,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function _0x2bb86f(_0x37313f){var _0x5e2402=_0x1f9fc9;return _0x37313f[_0x5e2402('0x149f')]('cmContact@get',{'id':_0x8afd3d['id']});}],'lists':[_0x1f9fc9('0x1d16'),_0x1f9fc9('0x1dfd'),function _0x2cd846(_0x5b4cff,_0x39b7c4){var _0x17a716=_0x1f9fc9;return _0x39b7c4[_0x17a716('0x26e8')](_0x17a716('0x178b'))?_0x5b4cff[_0x17a716('0x149f')](_0x17a716('0x466'),{'fields':_0x17a716('0x17fe'),'nolimit':!![]}):_0x5b4cff[_0x17a716('0x149f')](_0x17a716('0x49a'),{'id':_0x39b7c4[_0x17a716('0xacc')]()['userProfileId'],'section':_0x17a716('0x1135'),'fields':_0x17a716('0x17fe'),'nolimit':!![]});}]},'locals':{'contacts':_0x18359e[_0x1f9fc9('0x1cfb')][_0x1f9fc9('0x580')]}});}function _0x1b65c1(_0x331ca2,_0x1ea847){var _0xd6eb15=_0x43a728;_0x435458[_0xd6eb15('0x1e6d')]({'controller':_0xd6eb15('0xf6b'),'controllerAs':'vm','templateUrl':_0x42c3f9,'parent':angular[_0xd6eb15('0x1aa8')](_0x2b0fca[_0xd6eb15('0x54c')]),'targetEvent':_0x331ca2,'clickOutsideToClose':!![],'resolve':{'contact':[_0xd6eb15('0x1d16'),function _0x125f39(_0x5ca1fd){var _0x298165=_0xd6eb15;return _0x5ca1fd['resolve'](_0x298165('0xe18'),{'id':_0x1ea847['id']});}],'lists':['apiResolver',_0xd6eb15('0x1dfd'),function _0x24d8ee(_0x7af51e,_0x468ce3){var _0x6ddeab=_0xd6eb15;return _0x468ce3[_0x6ddeab('0x26e8')](_0x6ddeab('0x178b'))?_0x7af51e[_0x6ddeab('0x149f')](_0x6ddeab('0x466'),{'fields':'id,name','nolimit':!![]}):_0x7af51e[_0x6ddeab('0x149f')]('userProfile@getResources',{'id':_0x468ce3[_0x6ddeab('0xacc')]()['userProfileId'],'section':_0x6ddeab('0x1135'),'fields':_0x6ddeab('0x17fe'),'nolimit':!![]});}]},'locals':{'contacts':_0x18359e['contacts'][_0xd6eb15('0x580')]}});}function _0x4b9588(_0x4c6d6a){var _0x29a1c0=_0x43a728;_0x512917['cmContact'][_0x29a1c0('0x926')]({'id':_0x4c6d6a['id']})[_0x29a1c0('0x1dc2')][_0x29a1c0('0xaa5')](function(){var _0x116001=_0x29a1c0;_0x51538b()[_0x116001('0xf6d')](_0x18359e[_0x116001('0x1cfb')][_0x116001('0x580')],{'id':_0x4c6d6a['id']}),_0x18359e[_0x116001('0x1cfb')]['count']-=0x1,!_0x18359e[_0x116001('0x1cfb')][_0x116001('0x580')][_0x116001('0x2587')]&&_0x18359e['getContacts'](),_0x153431[_0x116001('0xe10')]({'title':_0x116001('0x1c4f'),'msg':_0x4c6d6a['name']?_0x4c6d6a['name']+'\x20has\x20been\x20deleted!':''});})[_0x29a1c0('0x253d')](function(_0x42a4c2){var _0x117ceb=_0x29a1c0;if(_0x42a4c2['data']&&_0x42a4c2[_0x117ceb('0x10fd')][_0x117ceb('0x4c6')]&&_0x42a4c2[_0x117ceb('0x10fd')]['errors'][_0x117ceb('0x2587')]){_0x18359e[_0x117ceb('0x4c6')]=_0x42a4c2[_0x117ceb('0x10fd')][_0x117ceb('0x4c6')]||[{'message':_0x42a4c2[_0x117ceb('0x684')](),'type':'api.contact.delete'}];for(var _0x4fbacc=0x0;_0x4fbacc<_0x42a4c2[_0x117ceb('0x10fd')][_0x117ceb('0x4c6')][_0x117ceb('0x2587')];_0x4fbacc++){_0x153431['error']({'title':_0x42a4c2[_0x117ceb('0x10fd')][_0x117ceb('0x4c6')][_0x4fbacc][_0x117ceb('0x6c8')],'msg':_0x42a4c2[_0x117ceb('0x10fd')][_0x117ceb('0x4c6')][_0x4fbacc][_0x117ceb('0x1402')]});}}else _0x153431['error']({'title':_0x42a4c2['status']?_0x117ceb('0x16c2')+_0x42a4c2[_0x117ceb('0x2fa')]+'\x20-\x20'+_0x42a4c2[_0x117ceb('0x24df')]:_0x117ceb('0x2799'),'msg':_0x42a4c2[_0x117ceb('0x10fd')]?JSON[_0x117ceb('0xa48')](_0x42a4c2[_0x117ceb('0x10fd')]['message']):_0x42a4c2['message']||_0x42a4c2[_0x117ceb('0x684')]()});});}function _0x13ca70(){var _0x127636=_0x43a728,_0x426d7c=angular[_0x127636('0x20a')](_0x18359e['selectedContacts']);return _0x18359e[_0x127636('0x1946')]=[],_0x426d7c;}function _0x5ea3a9(_0xbdb2bd){var _0x2f28eb=_0x43a728,_0x2b487c=_0x435458[_0x2f28eb('0x281e')]()['title'](_0x2f28eb('0x26c5'))[_0x2f28eb('0x102e')](_0x2f28eb('0x389')+_0x18359e[_0x2f28eb('0x1946')][_0x2f28eb('0x2587')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x2f28eb('0x5b5')]('delete\x20Contacts')[_0x2f28eb('0x116d')](_0xbdb2bd)['ok']('OK')[_0x2f28eb('0x2030')](_0x2f28eb('0x2410'));_0x435458[_0x2f28eb('0x1e6d')](_0x2b487c)[_0x2f28eb('0xaa5')](function(){var _0x580e77=_0x2f28eb;_0x18359e[_0x580e77('0x1946')][_0x580e77('0x15b5')](function(_0x46b4ff){_0x4b9588(_0x46b4ff);}),_0x18359e['selectedContacts']=[];});}function _0x2aa9d6(){_0x18359e['selectedContacts']=[];}function _0x1f20eb(){var _0xa80ec4=_0x43a728;_0x18359e[_0xa80ec4('0x1946')]=_0x18359e['contacts'][_0xa80ec4('0x580')];}}const _0x47880d=_0x1527ce;_0x1cf7c2['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x1cfb'),'lists',_0x1a8446('0x1171'),'contact','ListId',_0x1a8446('0x1dc7'),_0x1a8446('0x157'),_0x1a8446('0xada')];function _0x1cf7c2(_0x4cba23,_0x41f6ce,_0x36b9b7,_0x52d3c2,_0x42aa8a,_0x1fe50f,_0x161729,_0x491d7c,_0x5b238e,_0x5ace3d){var _0x377b62=_0x1a8446,_0x4b7d59=this;_0x4b7d59['errors']=[],_0x4b7d59[_0x377b62('0x110a')]=_0x377b62('0x2037'),_0x4b7d59[_0x377b62('0xada')]=_0x5ace3d,_0x4b7d59[_0x377b62('0x3c6')]=angular[_0x377b62('0x20a')](_0x1fe50f),_0x4b7d59[_0x377b62('0x1cfb')]=_0x36b9b7||{'rows':[],'count':0x0},_0x4b7d59['lists']=_0x52d3c2||{'rows':[],'count':0x0},_0x4b7d59[_0x377b62('0x1171')]=_0x42aa8a||{'rows':[],'count':0x0},_0x4b7d59[_0x377b62('0x2')]={'rows':[],'count':0x0},_0x4b7d59[_0x377b62('0x1a23')]=![];!_0x4b7d59[_0x377b62('0x3c6')]?(_0x4b7d59[_0x377b62('0x3c6')]={'ListId':_0x161729?parseInt(_0x161729,0xa):undefined,'CompanyId':_0x491d7c?parseInt(_0x491d7c,0xa):undefined},_0x4b7d59['title']=_0x377b62('0x8f2'),_0x4b7d59[_0x377b62('0x1a23')]=!![]):(delete _0x4b7d59[_0x377b62('0x3c6')][_0x377b62('0x20e8')],_0x4b7d59[_0x377b62('0xee0')]=_0x4b7d59['contact'][_0x377b62('0xee0')]||undefined);_0x4b7d59[_0x377b62('0xe1f')]=_0x257f7,_0x4b7d59['saveContact']=_0x39efb5,_0x4b7d59[_0x377b62('0x26fc')]=_0x338bb2,_0x4b7d59['closeDialog']=_0x245856,_0x4b7d59[_0x377b62('0xe57')]=_0x153c7c,_0x4b7d59[_0x377b62('0xc09')]=_0x448f00;function _0x257f7(){var _0x49c4cf=_0x377b62;_0x4b7d59[_0x49c4cf('0x4c6')]=[],_0x5b238e[_0x49c4cf('0xdbd')][_0x49c4cf('0x242b')](_0x4b7d59['contact'])[_0x49c4cf('0x1dc2')][_0x49c4cf('0xaa5')](function(_0xa44332){var _0x40713f=_0x49c4cf;_0x4b7d59['contacts'][_0x40713f('0x6ee')](_0xa44332),_0x41f6ce[_0x40713f('0xe10')]({'title':'Contact\x20properly\x20created','msg':_0x4b7d59['contact'][_0x40713f('0x25d6')]?_0x4b7d59[_0x40713f('0x3c6')][_0x40713f('0x25d6')]+_0x40713f('0xdca'):''}),_0x245856();})[_0x49c4cf('0x253d')](function(_0xc6311f){var _0x5d2d1b=_0x49c4cf;if(_0xc6311f['data']&&_0xc6311f[_0x5d2d1b('0x10fd')][_0x5d2d1b('0x4c6')]&&_0xc6311f[_0x5d2d1b('0x10fd')]['errors'][_0x5d2d1b('0x2587')]){_0x4b7d59['errors']=_0xc6311f[_0x5d2d1b('0x10fd')][_0x5d2d1b('0x4c6')]||[{'message':_0xc6311f[_0x5d2d1b('0x684')](),'type':_0x5d2d1b('0x2228')}];for(var _0x41c2f6=0x0;_0x41c2f6<_0xc6311f['data']['errors']['length'];_0x41c2f6++){_0x41f6ce['error']({'title':_0xc6311f[_0x5d2d1b('0x10fd')]['errors'][_0x41c2f6][_0x5d2d1b('0x6c8')],'msg':_0xc6311f['data'][_0x5d2d1b('0x4c6')][_0x41c2f6][_0x5d2d1b('0x1402')]});}}else _0x41f6ce[_0x5d2d1b('0x187f')]({'title':_0xc6311f['status']?_0x5d2d1b('0x16c2')+_0xc6311f['status']+_0x5d2d1b('0x169e')+_0xc6311f[_0x5d2d1b('0x24df')]:_0x5d2d1b('0x23ad'),'msg':_0xc6311f[_0x5d2d1b('0x10fd')]?JSON[_0x5d2d1b('0xa48')](_0xc6311f['data'][_0x5d2d1b('0x1402')]):_0xc6311f[_0x5d2d1b('0x684')]()});});}function _0x39efb5(){var _0x41c0d2=_0x377b62;_0x4b7d59['errors']=[],_0x5b238e[_0x41c0d2('0xdbd')][_0x41c0d2('0x264e')]({'id':_0x4b7d59['contact']['id']},_0x4b7d59['contact'])[_0x41c0d2('0x1dc2')][_0x41c0d2('0xaa5')](function(_0x427abb){var _0xdca3f0=_0x41c0d2,_0x13c26f=_0x51538b()[_0xdca3f0('0xe9e')](_0x4b7d59['contacts'],{'id':_0x427abb['id']});_0x13c26f&&_0x51538b()['merge'](_0x13c26f,_0x427abb),_0x41f6ce['success']({'title':_0xdca3f0('0x2744'),'msg':_0x4b7d59[_0xdca3f0('0x3c6')][_0xdca3f0('0x25d6')]?_0x4b7d59[_0xdca3f0('0x3c6')]['name']+_0xdca3f0('0x20bf'):''}),_0x245856();})[_0x41c0d2('0x253d')](function(_0x8c886f){var _0x4f48d3=_0x41c0d2;if(_0x8c886f['data']&&_0x8c886f['data'][_0x4f48d3('0x4c6')]&&_0x8c886f[_0x4f48d3('0x10fd')][_0x4f48d3('0x4c6')][_0x4f48d3('0x2587')]){_0x4b7d59[_0x4f48d3('0x4c6')]=_0x8c886f[_0x4f48d3('0x10fd')][_0x4f48d3('0x4c6')]||[{'message':_0x8c886f[_0x4f48d3('0x684')](),'type':'api.contact.update'}];for(var _0x438f9b=0x0;_0x438f9b<_0x8c886f[_0x4f48d3('0x10fd')][_0x4f48d3('0x4c6')][_0x4f48d3('0x2587')];_0x438f9b++){_0x41f6ce[_0x4f48d3('0x187f')]({'title':_0x8c886f[_0x4f48d3('0x10fd')][_0x4f48d3('0x4c6')][_0x438f9b][_0x4f48d3('0x6c8')],'msg':_0x8c886f[_0x4f48d3('0x10fd')]['errors'][_0x438f9b][_0x4f48d3('0x1402')]});}}else _0x41f6ce[_0x4f48d3('0x187f')]({'title':_0x8c886f[_0x4f48d3('0x2fa')]?_0x4f48d3('0x16c2')+_0x8c886f[_0x4f48d3('0x2fa')]+'\x20-\x20'+_0x8c886f['statusText']:_0x4f48d3('0x240e'),'msg':_0x8c886f[_0x4f48d3('0x10fd')]?JSON[_0x4f48d3('0xa48')](_0x8c886f['data']['message']):_0x8c886f[_0x4f48d3('0x684')]()});});}function _0x153c7c(_0x705858){var _0x22fb55=_0x377b62;if(_0x705858)return _0x5b238e[_0x22fb55('0x26b4')][_0x22fb55('0xe57')]({'id':_0x705858})['$promise'][_0x22fb55('0xaa5')](function(_0xc8b307){var _0x1077a8=_0x22fb55;if(_0xc8b307){_0x4b7d59[_0x1077a8('0x2')]=_0xc8b307;var _0x2a03d7=_0x51538b()[_0x1077a8('0x1246')](_0x4b7d59[_0x1077a8('0x2')]['rows'],function(_0x78580){return'cf_'+_0x78580['id'];});_0x5b238e['cmContact']['get']({'id':_0x4b7d59['contact']['id'],'attributes':_0x2a03d7,'raw':!![]})['$promise']['then'](function(_0x4b629e){var _0x5f3ec2=_0x1077a8;_0x4b7d59['contact']=_0x51538b()[_0x5f3ec2('0x283c')](_0x4b7d59[_0x5f3ec2('0x3c6')],_0x4b629e);});}})[_0x22fb55('0x253d')](function(_0x3d712b){var _0x13fe1d=_0x22fb55;console[_0x13fe1d('0x187f')](_0x3d712b);});else _0x4b7d59[_0x22fb55('0x2')]={'rows':[],'count':0x0};}function _0x338bb2(_0x458037){var _0x586d01=_0x377b62;_0x4b7d59[_0x586d01('0x4c6')]=[];var _0x42f8c0=_0x4cba23[_0x586d01('0x281e')]()[_0x586d01('0x110a')]('Are\x20you\x20sure?')[_0x586d01('0x15af')](_0x586d01('0x157c'))['ariaLabel'](_0x586d01('0x276f'))['ok'](_0x586d01('0x1e76'))[_0x586d01('0x2030')]('Cancel')['targetEvent'](_0x458037);_0x4cba23[_0x586d01('0x1e6d')](_0x42f8c0)[_0x586d01('0xaa5')](function(){var _0x161ea9=_0x586d01;_0x5b238e['cmContact'][_0x161ea9('0x926')]({'id':_0x4b7d59[_0x161ea9('0x3c6')]['id']})[_0x161ea9('0x1dc2')]['then'](function(){var _0x54bdfd=_0x161ea9;_0x51538b()['remove'](_0x4b7d59[_0x54bdfd('0x1cfb')],{'id':_0x4b7d59[_0x54bdfd('0x3c6')]['id']}),_0x41f6ce['success']({'title':_0x54bdfd('0x1086'),'msg':_0x4b7d59[_0x54bdfd('0x3c6')][_0x54bdfd('0x25d6')]?_0x4b7d59['contact'][_0x54bdfd('0x25d6')]+'\x20has\x20been\x20deleted!':''}),_0x245856();})[_0x161ea9('0x253d')](function(_0x6793fe){var _0x7b765a=_0x161ea9;console[_0x7b765a('0x187f')](_0x6793fe),_0x4b7d59[_0x7b765a('0x4c6')]=_0x6793fe[_0x7b765a('0x10fd')][_0x7b765a('0x4c6')]||[{'message':_0x6793fe['toString'](),'type':_0x7b765a('0x2799')}];});},function(){});}function _0x448f00(_0x4968b7){return _0x4968b7===null?undefined:new Date(_0x4968b7);}function _0x245856(){var _0x4cda51=_0x377b62;_0x4cba23[_0x4cda51('0x1120')]();}}const _0x525156=_0x1cf7c2;_0x197b14[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x3c6'),_0x1a8446('0x1cfb'),_0x1a8446('0x1126'),_0x1a8446('0x157')];function _0x197b14(_0x3b1ad2,_0x281c60,_0x22fe3b,_0x1b1966,_0x49d51f,_0x1e3d6d){var _0xcefb49=_0x1a8446,_0x4eac88=this;_0x4eac88[_0xcefb49('0x4c6')]=[],_0x4eac88[_0xcefb49('0x110a')]=_0xcefb49('0xaa1'),_0x4eac88['contact']=angular[_0xcefb49('0x20a')](_0x22fe3b),_0x4eac88[_0xcefb49('0x1126')]=_0x49d51f||{'rows':[],'count':0x0},_0x4eac88['addNewContact']=_0x43bee8,_0x4eac88[_0xcefb49('0x2023')]=_0x1c13ff;function _0x43bee8(){var _0x52bb51=_0xcefb49;_0x4eac88[_0x52bb51('0x4c6')]=[],delete _0x4eac88[_0x52bb51('0x3c6')]['id'],_0x4eac88[_0x52bb51('0x3c6')][_0x52bb51('0x523')]&&!_0x4eac88[_0x52bb51('0x3c6')][_0x52bb51('0x523')][_0x52bb51('0x2587')]&&delete _0x4eac88[_0x52bb51('0x3c6')][_0x52bb51('0x523')],_0x1e3d6d[_0x52bb51('0xdbd')][_0x52bb51('0x242b')](_0x4eac88[_0x52bb51('0x3c6')])[_0x52bb51('0x1dc2')]['then'](function(_0x339c6c){var _0x26f046=_0x52bb51;_0x1b1966[_0x26f046('0x6ee')](_0x339c6c),_0x281c60['success']({'title':_0x26f046('0x1ed1'),'msg':_0x4eac88[_0x26f046('0x3c6')][_0x26f046('0x25d6')]?_0x4eac88['contact'][_0x26f046('0x25d6')]+_0x26f046('0xdca'):''}),_0x1c13ff();})[_0x52bb51('0x253d')](function(_0x59d41d){var _0x17cb0f=_0x52bb51;console[_0x17cb0f('0x187f')](_0x59d41d),_0x4eac88[_0x17cb0f('0x4c6')]=_0x59d41d['data'][_0x17cb0f('0x4c6')]||[{'message':_0x59d41d[_0x17cb0f('0x684')](),'type':_0x17cb0f('0x1fa2')}];});}function _0x1c13ff(){var _0x2c5c52=_0xcefb49;_0x3b1ad2[_0x2c5c52('0x1120')]();}}const _0x102ded=_0x197b14;_0x3396f9[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'toasty',_0x1a8446('0x10d1'),'hopper',_0x1a8446('0x157'),_0x1a8446('0xada')];function _0x3396f9(_0x1d39ce,_0x12ae0e,_0x4ea33b,_0x1770c5,_0xed568a,_0x590286,_0x5e9bee,_0x37a34d,_0x5ca333){var _0x1ae8ec=_0x1a8446,_0x536fa8=this;_0x536fa8[_0x1ae8ec('0x4c6')]=[],_0x536fa8[_0x1ae8ec('0x110a')]='CONTACTMANAGER.EDIT_HOPPER',_0x536fa8[_0x1ae8ec('0x1621')]=angular['copy'](_0x5e9bee),_0x536fa8[_0x1ae8ec('0x10d1')]=_0x590286,_0x536fa8['newHopper']=![],_0x536fa8[_0x1ae8ec('0xada')]=_0x5ca333;!_0x536fa8[_0x1ae8ec('0x1621')]&&(_0x536fa8[_0x1ae8ec('0x1621')]={},_0x536fa8[_0x1ae8ec('0x110a')]=_0x1ae8ec('0x1966'),_0x536fa8['newHopper']=!![]);_0x536fa8[_0x1ae8ec('0xf72')]=_0x1e891d,_0x536fa8['getDateFromString']=_0x40a796,_0x536fa8['closeDialog']=_0x2d8f52;function _0x1e891d(){var _0x58c5ee=_0x1ae8ec;_0x536fa8[_0x58c5ee('0x4c6')]=[],_0x37a34d[_0x58c5ee('0xe51')][_0x58c5ee('0x264e')]({'id':_0x536fa8['hopper']['id']},_0x536fa8['hopper'])[_0x58c5ee('0x1dc2')]['then'](function(_0x4f2465){var _0x956c6b=_0x58c5ee,_0x2fe947=_0x51538b()[_0x956c6b('0xe9e')](_0x536fa8[_0x956c6b('0x10d1')],{'id':_0x4f2465['id']});_0x2fe947&&_0x51538b()[_0x956c6b('0x283c')](_0x2fe947,_0x4f2465),_0xed568a[_0x956c6b('0xe10')]({'title':_0x956c6b('0x130e'),'msg':_0x536fa8[_0x956c6b('0x1621')]['name']?_0x536fa8[_0x956c6b('0x1621')]['name']+_0x956c6b('0x20bf'):''}),_0x2d8f52(_0x4f2465);})['catch'](function(_0x573a23){var _0xfe2860=_0x58c5ee;console['error'](_0x573a23),_0x536fa8[_0xfe2860('0x4c6')]=_0x573a23[_0xfe2860('0x10fd')][_0xfe2860('0x4c6')]||[{'message':_0x573a23['toString'](),'type':_0xfe2860('0x18fc')}];});}function _0x40a796(_0x34cc15){return _0x34cc15===null?undefined:new Date(_0x34cc15);}function _0x2d8f52(_0x4d1ed1){var _0x59da0f=_0x1ae8ec;_0x1770c5[_0x59da0f('0x1120')](_0x4d1ed1);}}const _0x3cd85a=_0x3396f9,_0x59ac84=_0x4fb511['p']+_0x1a8446('0x2409');_0x470542[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),'$state',_0x1a8446('0x39b'),_0x1a8446('0x2378'),'$translate',_0x1a8446('0x2a4'),'api',_0x1a8446('0x3c6'),_0x1a8446('0x10d1'),_0x1a8446('0x1b9f'),_0x1a8446('0x1d3e'),'contacts','companies',_0x1a8446('0x1126'),_0x1a8446('0x2'),_0x1a8446('0x523'),_0x1a8446('0x127'),_0x1a8446('0x1202'),_0x1a8446('0x1dfd'),_0x1a8446('0x1a50')];function _0x470542(_0x119429,_0x56814b,_0x20075e,_0xe191ee,_0x39d103,_0x46db47,_0x51ec26,_0x3bf57b,_0x25308f,_0x426359,_0x209197,_0x34afba,_0x17bd35,_0x3f3f32,_0x1cef60,_0x4482be,_0x8a1b82,_0x2fd49b,_0x472093,_0x4ae98a,_0x4df2d8){var _0x154e11=_0x1a8446,_0x386717=this;_0x386717[_0x154e11('0x7fc')]=_0x4ae98a[_0x154e11('0xacc')](),_0x386717[_0x154e11('0x1202')]=_0x472093,_0x386717[_0x154e11('0x98f')]=[],_0x386717['contact']=_0x25308f||{},_0x386717[_0x154e11('0x10d1')]=_0x426359||{'rows':[],'count':0x0},_0x386717[_0x154e11('0x1b9f')]=_0x209197||{'rows':[],'count':0x0},_0x386717[_0x154e11('0x1d3e')]=_0x34afba||{'rows':[],'count':0x0},_0x386717[_0x154e11('0x1171')]=_0x3f3f32||{'rows':[],'count':0x0},_0x386717['lists']=_0x1cef60||{'rows':[],'count':0x0},_0x386717['customFields']=_0x4482be||{'rows':[],'count':0x0},_0x386717[_0x154e11('0x523')]=_0x8a1b82||{'rows':[],'count':0x0},_0x386717[_0x154e11('0x127')]=_0x2fd49b||{'rows':[],'count':0x0},_0x386717['timelineOptions']={'scrollEl':_0x154e11('0x4b5')},_0x386717[_0x154e11('0x1dd1')]=new Date(_0x420d43()()[_0x154e11('0x206d')](_0x154e11('0xae9'))['subtract'](0x1,_0x154e11('0x116c'))[_0x154e11('0x15db')](0x0,!![])[_0x154e11('0x1f27')]()),_0x386717[_0x154e11('0xb13')]=new Date(_0x420d43()()[_0x154e11('0x173a')](_0x154e11('0xae9'))[_0x154e11('0x2865')](0x1,_0x154e11('0xa7c'))[_0x154e11('0x15db')](0x0,!![])[_0x154e11('0x1f27')]()),_0x386717[_0x154e11('0x1a50')]=_0x4df2d8&&_0x4df2d8[_0x154e11('0xd15')]==0x1?_0x4df2d8[_0x154e11('0x580')][0x0]:null,_0x386717[_0x154e11('0xada')]=_0x4ae98a[_0x154e11('0xffd')](_0x386717[_0x154e11('0x1a50')]?_0x386717['userProfileSection']['crudPermissions']:null),_0x386717[_0x154e11('0x139b')]=_0x51538b()[_0x154e11('0x184a')]([{'option':_0x154e11('0x1a3'),'value':'\x274\x27'},{'option':_0x154e11('0xaae'),'value':_0x154e11('0x18b2')},{'option':_0x154e11('0x1950'),'value':'\x272\x27'},{'option':_0x154e11('0x23c4'),'value':'\x271\x27'},{'option':_0x154e11('0x1be6'),'value':_0x154e11('0x27b6')}],function(_0x338a5b){var _0x5f2125=_0x154e11;return _0x51538b()['replace'](_0x338a5b[_0x5f2125('0x12f4')],new RegExp('\x27','g'),'');}),_0x386717[_0x154e11('0xc39')]={'fields':_0x154e11('0x1053'),'sort':_0x154e11('0xd82'),'limit':0xa,'page':0x1},_0x386717[_0x154e11('0xec1')]={'fields':_0x154e11('0x95'),'sort':'-id','limit':0xa,'page':0x1},_0x386717[_0x154e11('0x2a8')]={'fields':_0x154e11('0x192'),'sort':_0x154e11('0x133a'),'limit':0xa,'page':0x1},_0x386717[_0x154e11('0x210a')]={'fields':_0x154e11('0x24d4'),'sort':_0x154e11('0xfe7'),'limit':0xa,'page':0x1},_0x386717[_0x154e11('0xe5c')]=_0x20075e[_0x154e11('0x25cf')][_0x154e11('0x25c2')]||0x0,_0x386717[_0x154e11('0x2318')]=_0x269411,_0x386717[_0x154e11('0xbba')]=_0x336238,_0x386717['duplicateContact']=_0x3048a3,_0x386717[_0x154e11('0x1de1')]=_0x24ddc0,_0x386717[_0x154e11('0x155')]=_0x5b8f5f,_0x386717['onSelectList']=_0x104026,_0x386717[_0x154e11('0xed9')]=_0x1e0e57,_0x386717[_0x154e11('0xc09')]=_0x139af9,_0x386717['getHoppers']=_0x10824a,_0x386717['getFinals']=_0x347ef4,_0x386717['getHistories']=_0x4b2235,_0x386717[_0x154e11('0x47b')]=_0x4273f4,_0x386717[_0x154e11('0x271')]=_0x34d353,_0x386717['editHopper']=_0x33fae4,_0x386717[_0x154e11('0x1230')]=_0x334f9c,_0x386717[_0x154e11('0x1715')]=_0xb53b40;var _0x1b9c4a=!![],_0xa153d=0x1;_0x119429['$watch']('vm.queryHopper.filter',function(_0x3dbfc9,_0x5f5a88){var _0x1a49d5=_0x154e11;_0x1b9c4a?_0x56814b(function(){_0x1b9c4a=![];}):(!_0x5f5a88&&(_0xa153d=_0x386717[_0x1a49d5('0xc39')][_0x1a49d5('0x41')]),_0x3dbfc9!==_0x5f5a88&&(_0x386717['queryHopper'][_0x1a49d5('0x41')]=0x1),!_0x3dbfc9&&(_0x386717['queryHopper'][_0x1a49d5('0x41')]=_0xa153d),_0x386717['getHoppers']());}),_0x119429[_0x154e11('0x1ccf')](_0x154e11('0x47e'),function(_0x3ebc48,_0x523528){var _0x55dcd6=_0x154e11;_0x1b9c4a?_0x56814b(function(){_0x1b9c4a=![];}):(!_0x523528&&(_0xa153d=_0x386717[_0x55dcd6('0xec1')]['page']),_0x3ebc48!==_0x523528&&(_0x386717[_0x55dcd6('0xec1')][_0x55dcd6('0x41')]=0x1),!_0x3ebc48&&(_0x386717[_0x55dcd6('0xec1')]['page']=_0xa153d),_0x386717[_0x55dcd6('0x1576')]());}),_0x119429[_0x154e11('0x1ccf')](_0x154e11('0x73c'),function(_0x352f8d,_0x248979){var _0x1c857c=_0x154e11;_0x1b9c4a?_0x56814b(function(){_0x1b9c4a=![];}):(!_0x248979&&(_0xa153d=_0x386717[_0x1c857c('0x2a8')][_0x1c857c('0x41')]),_0x352f8d!==_0x248979&&(_0x386717['queryHistory'][_0x1c857c('0x41')]=0x1),!_0x352f8d&&(_0x386717['queryHistory'][_0x1c857c('0x41')]=_0xa153d),_0x386717[_0x1c857c('0x26f6')]());});function _0x5a344e(_0x384290){var _0x33091d=_0x154e11;switch(_0x384290){case'chat':return _0x33091d('0x1192');case _0x33091d('0x14c5'):return'teal';case'sms':return _0x33091d('0x1ad3');case _0x33091d('0x170'):return _0x33091d('0x7d2');case'fax':return'blue-grey-A200';case _0x33091d('0x220d'):return _0x33091d('0x9b1');default:return _0x33091d('0x5f3');}}function _0xb53b40(_0x4049fa){var _0x15591a=_0x154e11,_0x3bbe27='';if(_0x4049fa[_0x15591a('0x16a8')])_0x3bbe27='fax';else{if(_0x4049fa[_0x15591a('0x62c')])_0x3bbe27=_0x15591a('0x170');else{if(_0x4049fa[_0x15591a('0xaa0')])_0x3bbe27=_0x15591a('0x18da');else{if(_0x4049fa['MailAccountId'])_0x3bbe27=_0x15591a('0x14c5');else{if(_0x4049fa[_0x15591a('0x1421')])_0x3bbe27=_0x15591a('0x20f9');else _0x4049fa[_0x15591a('0x1458')]&&(_0x3bbe27=_0x15591a('0x1b9'));}}}}return _0x5a344e(_0x3bbe27);}function _0x5dab03(_0x57e515){return function(_0x182a15){_0x386717[_0x57e515]=_0x182a15||{'count':0x0,'rows':[]};};}function _0x269411(){var _0x2d9455=_0x154e11;return!_0x4ae98a[_0x2d9455('0x26e8')](_0x2d9455('0x178b'))&&(_0x1b6031(),_0x541ccf()),_0x3bf57b['user'][_0x2d9455('0x2122')]({'fields':'id,fullname','nolimit':!![]})['$promise'][_0x2d9455('0xaa5')](function(_0xa213b8){var _0xb77da4=_0x2d9455;_0x386717['users']=_0xa213b8||{'count':0x0,'rows':[]},_0x386717['usersMap']=_0x51538b()['mapValues'](_0x51538b()[_0xb77da4('0x184a')](_0x386717['users'][_0xb77da4('0x580')],'id'),_0xb77da4('0x18e5')),_0x386717[_0xb77da4('0x67f')]=_0x51538b()['map'](_0x386717['contact'][_0xb77da4('0x67f')],'id');})[_0x2d9455('0xaa5')](_0x3ac01e(_0x25308f));}function _0x1b6031(){var _0x393143=_0x154e11,_0x3dcf48=_0x51538b()[_0x393143('0x2c2')](_0x386717[_0x393143('0x1171')][_0x393143('0x580')],{'id':_0x386717['contact'][_0x393143('0x1dc7')]});if(!_0x3dcf48)return _0x3bf57b[_0x393143('0x218')][_0x393143('0x2122')]({'id':_0x386717['contact'][_0x393143('0x1dc7')],'fields':_0x393143('0x17fe')})[_0x393143('0x1dc2')]['then'](function(_0x1b7065){var _0x3d5969=_0x393143,_0x7eee71=_0x1b7065[_0x3d5969('0x256a')]();_0x7eee71[_0x3d5969('0x12eb')]=![],_0x386717[_0x3d5969('0x1171')][_0x3d5969('0x580')][_0x3d5969('0x1599')](_0x7eee71);})[_0x393143('0x253d')](function(_0x33d5ea){var _0x4eec23=_0x393143;_0x51ec26[_0x4eec23('0x187f')]({'title':_0x33d5ea[_0x4eec23('0x2fa')]?_0x4eec23('0x16c2')+_0x33d5ea[_0x4eec23('0x2fa')]+_0x4eec23('0x169e')+_0x33d5ea[_0x4eec23('0x24df')]:_0x4eec23('0x1545'),'msg':_0x33d5ea[_0x4eec23('0x10fd')]?JSON[_0x4eec23('0xa48')](_0x33d5ea['data'][_0x4eec23('0x1402')]):_0x33d5ea[_0x4eec23('0x684')]()});});}function _0x541ccf(){var _0x48b12a=_0x154e11,_0x221373=_0x51538b()[_0x48b12a('0x1246')](_0x386717[_0x48b12a('0x3c6')][_0x48b12a('0x67f')],function(_0x10040f){return{'id':_0x10040f['id'],'name':_0x10040f['name']};});if(!_0x51538b()[_0x48b12a('0x116b')](_0x221373))for(var _0x388d2b=0x0;_0x388d2b<_0x221373[_0x48b12a('0x2587')];_0x388d2b++){!_0x51538b()[_0x48b12a('0x2c2')](_0x386717['tags'][_0x48b12a('0x580')],{'id':_0x221373['id']})&&(_0x221373[_0x388d2b][_0x48b12a('0x12eb')]=![],_0x386717['tags'][_0x48b12a('0x580')][_0x48b12a('0x1599')](_0x221373[_0x388d2b]));}}function _0x237760(_0x495454){var _0xfa5c8b=_0x154e11;if(!_0x495454[_0xfa5c8b('0x106e')])return'('+_0x46db47[_0xfa5c8b('0x213f')]('DASHBOARDS.NO_DISPOSITION_SET')+')';var _0x14acb6=_0x51538b()['compact']([_0x495454[_0xfa5c8b('0x106e')],_0x495454[_0xfa5c8b('0x1fdd')],_0x495454[_0xfa5c8b('0x66e')]]);return'('+_0x14acb6[_0xfa5c8b('0x19c4')](_0xfa5c8b('0x169e'))+')';}function _0x251354(_0x22fc4f){var _0x4ce344=_0x154e11;_0x22fc4f&&_0x22fc4f['count']&&_0x22fc4f[_0x4ce344('0x580')][_0x4ce344('0x2587')]&&(_0x386717[_0x4ce344('0x98f')]=_0x51538b()[_0x4ce344('0x9e4')](_0x386717['journey'],_0x22fc4f['rows']),_0x386717[_0x4ce344('0x98f')][_0x4ce344('0x15b5')](function(_0x6cbb1c){_0x6cbb1c['dispositionsValues']=_0x237760(_0x6cbb1c);}));}function _0x3ac01e(_0x1909cb){var _0x2dfaf0=_0x154e11,_0x598336=['mail','chat','sms','openchannel',_0x2dfaf0('0x16c4')];if(_0x1909cb&&_0x1909cb['id']){for(var _0x45165f=0x0;_0x45165f<_0x598336[_0x2dfaf0('0x2587')];_0x45165f++){_0x3bf57b[_0x598336[_0x45165f]+_0x2dfaf0('0x11')][_0x2dfaf0('0x2122')]({'ContactId':_0x1909cb['id'],'includeAll':!![]})[_0x2dfaf0('0x1dc2')][_0x2dfaf0('0xaa5')](_0x251354);}_0x3bf57b[_0x2dfaf0('0x4d4')]['get']({'ContactId':_0x1909cb['id'],'includeAll':!![]})['$promise'][_0x2dfaf0('0xaa5')](_0x251354)[_0x2dfaf0('0x253d')](function(_0x180dd0){var _0x45c39c=_0x2dfaf0;console[_0x45c39c('0x187f')](_0x180dd0);});}}function _0x33fae4(_0x18119a,_0x34e80d){var _0x16691d=_0x154e11;_0x39d103[_0x16691d('0x1e6d')]({'controller':'CreateOrEditHopperVoiceQueueIdDialogController','controllerAs':'vm','templateUrl':_0x148e44,'parent':angular['element'](_0xe191ee[_0x16691d('0x54c')]),'targetEvent':_0x18119a,'clickOutsideToClose':!![],'locals':{'hopper':_0x34e80d,'hoppers':_0x386717[_0x16691d('0x10d1')][_0x16691d('0x580')],'license':null,'setting':null,'crudPermissions':_0x386717[_0x16691d('0xada')]}});}function _0x334f9c(_0x243438,_0x3269ca){var _0x589fab=_0x154e11;_0x39d103[_0x589fab('0x1e6d')]({'controller':_0x589fab('0x3e8'),'controllerAs':'vm','templateUrl':_0x59ac84,'parent':angular[_0x589fab('0x1aa8')](_0xe191ee[_0x589fab('0x54c')]),'targetEvent':_0x243438,'clickOutsideToClose':!![],'locals':{'hopper':_0x3269ca,'hoppers':_0x386717[_0x589fab('0x10d1')][_0x589fab('0x580')],'license':null,'setting':null,'crudPermissions':_0x386717[_0x589fab('0xada')]}});}function _0x34d353(_0x4def36,_0x23b360){var _0x215da7=_0x154e11,_0x3d5b2d=_0x39d103[_0x215da7('0x281e')]()[_0x215da7('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20agent?')[_0x215da7('0x102e')](''+(_0x4def36[_0x215da7('0x1a46')]||_0x215da7('0x1621'))+_0x215da7('0x697')+'\x20will\x20be\x20deleted.')[_0x215da7('0x5b5')](_0x215da7('0x174a'))[_0x215da7('0x116d')](_0x23b360)['ok']('OK')[_0x215da7('0x2030')](_0x215da7('0x2410'));_0x39d103[_0x215da7('0x1e6d')](_0x3d5b2d)[_0x215da7('0xaa5')](function(){_0x4ea3f7(_0x4def36);},function(){var _0x51a1ed=_0x215da7;console[_0x51a1ed('0x18d5')]('CANCEL');});}function _0x4ea3f7(_0x5328b8){var _0x2603b1=_0x154e11;return _0x3bf57b[_0x2603b1('0xe51')][_0x2603b1('0x926')]({'id':_0x5328b8['id']})[_0x2603b1('0x1dc2')][_0x2603b1('0xaa5')](function(){var _0x26eef4=_0x2603b1;_0x51538b()[_0x26eef4('0xf6d')](_0x386717[_0x26eef4('0x10d1')][_0x26eef4('0x580')],{'id':_0x5328b8['id']}),_0x386717[_0x26eef4('0x10d1')][_0x26eef4('0xd15')]--,!_0x386717[_0x26eef4('0x10d1')]['rows'][_0x26eef4('0x2587')]&&_0x386717[_0x26eef4('0xf48')](),_0x51ec26[_0x26eef4('0xe10')]({'title':_0x26eef4('0xbf'),'msg':_0x5328b8[_0x26eef4('0x1a46')]?_0x5328b8['phone']+_0x26eef4('0xcd9'):''});})['catch'](function(_0xd7b83e){var _0x380093=_0x2603b1;_0x51ec26[_0x380093('0x187f')]({'title':_0xd7b83e[_0x380093('0x2fa')]?_0x380093('0x16c2')+_0xd7b83e[_0x380093('0x2fa')]+_0x380093('0x169e')+_0xd7b83e[_0x380093('0x24df')]:_0x380093('0x3bc'),'msg':_0xd7b83e['data']?JSON[_0x380093('0xa48')](_0xd7b83e[_0x380093('0x10fd')]):_0xd7b83e['toString']()});});}function _0x10824a(){var _0x32c652=_0x154e11;_0x386717[_0x32c652('0xc39')][_0x32c652('0x8b1')]=(_0x386717[_0x32c652('0xc39')][_0x32c652('0x41')]-0x1)*_0x386717[_0x32c652('0xc39')][_0x32c652('0xf4d')],_0x386717[_0x32c652('0xc39')]['id']=_0x386717[_0x32c652('0x3c6')]['id'],_0x386717[_0x32c652('0x159a')]=_0x3bf57b[_0x32c652('0xdbd')][_0x32c652('0xf48')](_0x386717[_0x32c652('0xc39')],_0x5dab03(_0x32c652('0x10d1')))[_0x32c652('0x1dc2')];}function _0x347ef4(){var _0x3523f7=_0x154e11;_0x386717[_0x3523f7('0xec1')][_0x3523f7('0x8b1')]=(_0x386717[_0x3523f7('0xec1')]['page']-0x1)*_0x386717[_0x3523f7('0xec1')][_0x3523f7('0xf4d')],_0x386717[_0x3523f7('0xec1')]['id']=_0x386717['contact']['id'],_0x386717[_0x3523f7('0x159a')]=_0x3bf57b[_0x3523f7('0xdbd')]['getHopperFinals'](_0x386717[_0x3523f7('0xec1')],_0x5dab03(_0x3523f7('0x1b9f')))[_0x3523f7('0x1dc2')];}function _0x4b2235(){var _0x52117f=_0x154e11;_0x386717['queryHistory']['offset']=(_0x386717[_0x52117f('0x2a8')][_0x52117f('0x41')]-0x1)*_0x386717['queryHistory'][_0x52117f('0xf4d')],_0x386717[_0x52117f('0x2a8')]['id']=_0x386717[_0x52117f('0x3c6')]['id'],_0x386717[_0x52117f('0x159a')]=_0x3bf57b[_0x52117f('0xdbd')][_0x52117f('0x396')](_0x386717['queryHistory'],_0x5dab03(_0x52117f('0x1d3e')))[_0x52117f('0x1dc2')];}function _0x4273f4(){var _0x211c38=_0x154e11;_0x386717[_0x211c38('0x210a')][_0x211c38('0x8b1')]=(_0x386717[_0x211c38('0x210a')]['page']-0x1)*_0x386717[_0x211c38('0x210a')][_0x211c38('0xf4d')],_0x386717['queryJscriptySession']['id']=_0x386717[_0x211c38('0x3c6')]['id'],_0x386717[_0x211c38('0x159a')]=_0x3bf57b[_0x211c38('0xdbd')][_0x211c38('0x47b')](_0x386717[_0x211c38('0x210a')],_0x5dab03(_0x211c38('0x127')))[_0x211c38('0x1dc2')];}function _0x104026(_0x1ebcdd){var _0x95f7e5=_0x154e11;if(_0x386717[_0x95f7e5('0x3c6')][_0x95f7e5('0xee0')]){var _0xc5ae31=_0x39d103[_0x95f7e5('0x281e')]()['title'](_0x95f7e5('0x543')+_0x386717[_0x95f7e5('0x3c6')][_0x95f7e5('0xee0')])[_0x95f7e5('0x447')]('Warning!\x20You\x20won\x27t\x20select\x20a\x20different\x20list\x20for\x20the\x20contact\x20'+_0x386717[_0x95f7e5('0x3c6')][_0x95f7e5('0x24c1')]||0x0||0x0)[_0x95f7e5('0x116d')](_0x1ebcdd)['ok']('Ok')['cancel'](_0x95f7e5('0x9c6'));return _0x39d103['show'](_0xc5ae31)[_0x95f7e5('0xaa5')](_0x386717[_0x95f7e5('0xed9')])[_0x95f7e5('0x253d')](function(){var _0x45b751=_0x95f7e5;_0x386717[_0x45b751('0x3c6')]['ListId']=null;});}}function _0x1e0e57(){var _0x2458fd=_0x154e11;return _0x3bf57b[_0x2458fd('0x26b4')]['getCustomFields']({'id':_0x386717['contact'][_0x2458fd('0xee0')]})[_0x2458fd('0x1dc2')][_0x2458fd('0xaa5')](function(_0x30e88f){var _0x22b43f=_0x2458fd;_0x386717[_0x22b43f('0x2')]=_0x30e88f||{'rows':[],'count':0x0};})[_0x2458fd('0x253d')](function(_0x2d1573){var _0x3411d6=_0x2458fd;console[_0x3411d6('0x187f')](_0x2d1573);});}function _0x77a485(){var _0x24ad78=_0x154e11;return _0x3bf57b[_0x24ad78('0x1a50')][_0x24ad78('0x2122')]({'userProfileId':_0x386717[_0x24ad78('0x7fc')]['userProfileId'],'sectionId':0x12e})[_0x24ad78('0x1dc2')][_0x24ad78('0xaa5')](function(_0x283f10){var _0x59b4bc=_0x24ad78,_0x5d8b54=_0x283f10[_0x59b4bc('0x580')]?_0x283f10['rows'][0x0]:null;return _0x4ae98a[_0x59b4bc('0xffd')](_0x5d8b54?_0x5d8b54[_0x59b4bc('0xada')]:null);})[_0x24ad78('0x253d')](function(_0x305b72){var _0x5065c2=_0x24ad78;_0x51ec26[_0x5065c2('0x187f')]({'title':_0x305b72[_0x5065c2('0x2fa')]?'API:'+_0x305b72[_0x5065c2('0x2fa')]+_0x5065c2('0x169e')+_0x305b72[_0x5065c2('0x24df')]:_0x5065c2('0x153f'),'msg':_0x305b72[_0x5065c2('0x10fd')]?JSON[_0x5065c2('0xa48')](_0x305b72[_0x5065c2('0x10fd')]):_0x305b72[_0x5065c2('0x684')]()});});}function _0x5b8f5f(_0x34fc6c,_0x13e5c2){var _0x193651=_0x154e11,_0x1f50d1=_0x51538b()[_0x193651('0xe9e')](_0x386717[_0x193651('0x1171')][_0x193651('0x580')],{'id':_0x13e5c2});_0x39d103[_0x193651('0x1e6d')]({'controller':_0x193651('0xbad'),'controllerAs':'vm','templateUrl':_0x1728b6,'parent':angular[_0x193651('0x1aa8')](_0xe191ee['body']),'targetEvent':_0x34fc6c,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0x1f50d1[_0x193651('0x12eb')]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0x77a485()},'resolve':{'company':['apiResolver',function _0x257737(_0x339e67){var _0x2355d2=_0x193651;return _0x339e67['resolve'](_0x2355d2('0x1a66'),{'id':_0x13e5c2});}]}});}function _0x3048a3(_0x2a2e5f){var _0xe4b654=_0x154e11;_0x39d103[_0xe4b654('0x1e6d')]({'controller':_0xe4b654('0x18b1'),'controllerAs':'vm','templateUrl':_0x1121c7,'parent':angular[_0xe4b654('0x1aa8')](_0xe191ee['body']),'targetEvent':_0x2a2e5f,'clickOutsideToClose':!![],'resolve':{'lists':[_0xe4b654('0x1d16'),'Auth',function _0xf270d7(_0x2a67e6,_0x209070){var _0x1593fe=_0xe4b654;return _0x209070[_0x1593fe('0x26e8')](_0x1593fe('0x178b'))?_0x2a67e6[_0x1593fe('0x149f')]('cmList@get',{'fields':_0x1593fe('0x17fe')}):_0x2a67e6[_0x1593fe('0x149f')](_0x1593fe('0x49a'),{'id':_0x386717['currentUser'][_0x1593fe('0x2168')],'section':_0x1593fe('0x1135'),'fields':_0x1593fe('0x17fe')});}]},'locals':{'contacts':_0x17bd35[_0xe4b654('0x580')],'contact':_0x25308f}});}function _0x24ddc0(){var _0xd62114=_0x154e11;_0x3bf57b[_0xd62114('0xdbd')][_0xd62114('0x264e')]({'id':_0x386717[_0xd62114('0x3c6')]['id']},_0x386717[_0xd62114('0x3c6')])[_0xd62114('0x1dc2')][_0xd62114('0xaa5')](function(){var _0xcbd6e5=_0xd62114;_0x51ec26[_0xcbd6e5('0xe10')]({'title':_0xcbd6e5('0x62f'),'msg':_0x386717['contact'][_0xcbd6e5('0x25d6')]?_0x386717['contact'][_0xcbd6e5('0x25d6')]+_0xcbd6e5('0x1734'):''});})['then'](function(){var _0x43b383=_0xd62114;return _0x3bf57b[_0x43b383('0xdbd')][_0x43b383('0x2392')]({'id':_0x386717[_0x43b383('0x3c6')]['id'],'ids':_0x386717['Tags']})[_0x43b383('0x1dc2')];})[_0xd62114('0x253d')](function(_0x271168){var _0x31f428=_0xd62114;_0x51ec26[_0x31f428('0x187f')]({'title':_0x271168['status']?_0x31f428('0x16c2')+_0x271168['status']+'\x20-\x20'+_0x271168[_0x31f428('0x24df')]:_0x31f428('0x27cb'),'msg':_0x271168[_0x31f428('0x10fd')]?JSON[_0x31f428('0xa48')](_0x271168[_0x31f428('0x10fd')]):_0x271168[_0x31f428('0x684')]()});});}function _0x139af9(_0x389d12){return _0x389d12===null?undefined:new Date(_0x389d12);}function _0x336238(){var _0x440a63=_0x154e11;_0x20075e['go'](_0x440a63('0x23fd'),{},{'reload':!![],'notify':!![]});}}const _0xfc74f2=_0x470542;_0x2406f1[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x2378'),_0x1a8446('0x21b3'),'$q',_0x1a8446('0x186b'),_0x1a8446('0x1126'),_0x1a8446('0x1171'),'toasty',_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x51'),'file',_0x1a8446('0x13a'),_0x1a8446('0x1202')];function _0x2406f1(_0x30e426,_0x5eede5,_0x1c1cab,_0x1f8c86,_0x263e77,_0x4b3562,_0x43e4ee,_0x91d627,_0xb91f7e,_0x358b39,_0x234a91,_0x24b485,_0x5ceae4,_0x36cd3c){var _0x2e2cc5=_0x1a8446,_0x3e9334=this;_0x3e9334[_0x2e2cc5('0x2143')]=![],_0x3e9334[_0x2e2cc5('0x1a20')]=!![],_0x3e9334['license']=_0x36cd3c,_0x3e9334[_0x2e2cc5('0xc57')]=0x0,_0x3e9334[_0x2e2cc5('0xcd6')]={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x3e9334[_0x2e2cc5('0x475')]=[{'key':_0x2e2cc5('0x24c1'),'required':!![]},{'key':_0x2e2cc5('0x351'),'required':![]},{'key':_0x2e2cc5('0x1a46'),'required':!![]},{'key':_0x2e2cc5('0x1125'),'required':![]},{'key':_0x2e2cc5('0x1f69'),'required':![]},{'key':_0x2e2cc5('0xae0'),'required':![]},{'key':_0x2e2cc5('0xdc'),'required':![]},{'key':_0x2e2cc5('0x27ac'),'required':![]},{'key':_0x2e2cc5('0x5ae'),'required':![]},{'key':_0x2e2cc5('0x2346'),'required':![]},{'key':'fax','required':![]}],_0x3e9334[_0x2e2cc5('0x11cc')]=[{'key':_0x2e2cc5('0x1037'),'required':![]},{'key':_0x2e2cc5('0x300'),'required':![]},{'key':_0x2e2cc5('0x13f2'),'required':![]}],_0x3e9334[_0x2e2cc5('0x1bf8')]={},_0x3e9334['duplicate']=[],_0x3e9334['lists']=_0x4b3562||{'rows':[],'count':0x0},_0x3e9334[_0x2e2cc5('0x1171')]=_0x43e4ee||{'rows':[],'count':0x0},_0x3e9334[_0x2e2cc5('0x2')]={'rows':[],'count':0x0},_0x3e9334[_0x2e2cc5('0x13a')]=_0x5ceae4||[],_0x3e9334[_0x2e2cc5('0x2023')]=_0x294755,_0x3e9334[_0x2e2cc5('0x18a2')]=_0x35fbd5,_0x3e9334['uploadCsv']=_0x52cb51,_0x3e9334[_0x2e2cc5('0x168b')]=_0x2a0167,_0x3e9334['getArrayErrors']=_0x20990b,_0x3e9334[_0x2e2cc5('0x19f8')]=_0x32efc0;var _0xaebcc1=_0x420d43()()[_0x2e2cc5('0x1ee3')]();_0x358b39['on'](_0x2e2cc5('0x16c3')+_0xaebcc1,_0x43e5b7);function _0x35fbd5(){var _0x5ba3cd=_0x2e2cc5;return _0xb91f7e[_0x5ba3cd('0x26b4')]['getCustomFields']({'id':_0x3e9334[_0x5ba3cd('0xee0')]})[_0x5ba3cd('0x1dc2')]['then'](function(_0x141405){var _0x24a932=_0x5ba3cd;_0x3e9334[_0x24a932('0x2')]=_0x141405;})['catch'](function(_0x313ffc){var _0x3c1b15=_0x5ba3cd;console[_0x3c1b15('0x187f')](_0x313ffc);});}function _0x52cb51(){var _0x7bad5e=_0x2e2cc5;_0x3e9334[_0x7bad5e('0x2143')]=_0x420d43()(),_0xb91f7e[_0x7bad5e('0xdbd')][_0x7bad5e('0xe0')]({'id':_0x24b485[_0x7bad5e('0x12c')],'binding':_0x3e9334[_0x7bad5e('0x1bf8')],'ListId':_0x3e9334[_0x7bad5e('0xee0')],'CompanyId':_0x3e9334[_0x7bad5e('0x1dc7')],'duplicates':_0x3e9334['duplicates'],'socket_timestamp':_0xaebcc1})[_0x7bad5e('0x1dc2')]['then'](function(_0x1daa76){var _0x24c847=_0x7bad5e;_0x3e9334[_0x24c847('0x1a20')]=![],_0x1daa76&&_0x1daa76[_0x24c847('0xc57')]&&(_0x3e9334[_0x24c847('0xc57')]=_0x1daa76[_0x24c847('0xc57')]);})[_0x7bad5e('0x253d')](function(){var _0xd96548=_0x7bad5e;_0x3e9334[_0xd96548('0x2143')]=![],_0x91d627[_0xd96548('0x187f')]({'title':_0xd96548('0x1abe'),'msg':_0xd96548('0x1657')});});}function _0x43e5b7(_0x472818){_0x263e77(function(){var _0x4f782d=a0_0x1149;_0x3e9334[_0x4f782d('0xcd6')]['rows']=_0x472818['rows'];if(_0x472818[_0x4f782d('0x4c6')])for(var _0x220890=0x0;_0x220890<_0x472818['errors'][_0x4f782d('0x2587')];_0x220890++){_0x3e9334[_0x4f782d('0xcd6')][_0x4f782d('0x4c6')][_0x4f782d('0x1599')](_0x472818[_0x4f782d('0x4c6')][_0x220890]);}if(_0x472818[_0x4f782d('0xcbe')]){_0x3e9334[_0x4f782d('0xcd6')][_0x4f782d('0xcbe')]=!![],_0x3e9334[_0x4f782d('0xcd6')][_0x4f782d('0x2153')]=_0x472818[_0x4f782d('0x2153')],_0x3e9334[_0x4f782d('0xcd6')]['failedRows']=_0x3e9334[_0x4f782d('0xcd6')][_0x4f782d('0x4c6')][_0x4f782d('0x2587')];var _0x2b780a=_0x3e9334[_0x4f782d('0xcd6')][_0x4f782d('0x580')]-_0x3e9334[_0x4f782d('0xcd6')]['affectedRows']-_0x3e9334['result']['errors'][_0x4f782d('0x2587')];_0x2b780a&&_0x2b780a>0x0&&(_0x3e9334[_0x4f782d('0x5db')][_0x4f782d('0x2587')]?_0x3e9334['result'][_0x4f782d('0x1caf')]=_0x2b780a:_0x3e9334[_0x4f782d('0xcd6')]['failedRows']+=_0x2b780a),_0x3e9334[_0x4f782d('0xcd6')]['elapsed']=_0x420d43()()[_0x4f782d('0x72c')](_0x3e9334[_0x4f782d('0x2143')],_0x4f782d('0x116c'));}});}function _0x2a0167(){var _0x16c1e1=_0x2e2cc5,_0x57cba8=_0x5ceae4;return _0x57cba8[_0x16c1e1('0x1599')](_0x16c1e1('0x211f')),_0x57cba8;}function _0x20990b(){var _0x146e55=_0x2e2cc5,_0x50893e=[];for(var _0x175da5=0x0;_0x175da5<_0x3e9334[_0x146e55('0xcd6')][_0x146e55('0x4c6')]['length'];_0x175da5+=0x1){var _0x3e38a3=_0x3e9334[_0x146e55('0xcd6')][_0x146e55('0x4c6')][_0x175da5][_0x146e55('0x69f')];_0x3e38a3[_0x146e55('0x211f')]=_0x3e9334[_0x146e55('0xcd6')][_0x146e55('0x4c6')][_0x175da5][_0x146e55('0x1402')],_0x50893e['push'](_0x3e38a3);}return _0x50893e;}function _0x32efc0(){var _0xfd4017=_0x2e2cc5;_0x3e9334[_0xfd4017('0x1a20')]=!![];if(_0x3e9334[_0xfd4017('0xc57')])return _0xb91f7e['system']['killProcess']({'pid':_0x3e9334[_0xfd4017('0xc57')]})[_0xfd4017('0x1dc2')][_0xfd4017('0xaa5')](function(){var _0x52e248=_0xfd4017;_0x91d627['success']({'title':_0x52e248('0x252d'),'msg':_0x52e248('0x140d')});})[_0xfd4017('0x253d')](function(){var _0x2f8afc=_0xfd4017;_0x91d627['error']({'title':_0x2f8afc('0xa6c'),'msg':_0x2f8afc('0xa3a')});});}_0x234a91[_0x2e2cc5('0xc75')](_0x2e2cc5('0x12d0'),function(){var _0x451784=_0x2e2cc5;_0x358b39[_0x451784('0x2629')]('contact:import:'+_0xaebcc1);});function _0x294755(){var _0x366d38=_0x2e2cc5;_0x358b39[_0x366d38('0x2629')]('contact:import:'+_0xaebcc1),_0x5eede5[_0x366d38('0x1120')]();}}const _0x59dd52=_0x2406f1;_0x4a119a[_0x1a8446('0x1e33')]=['$mdDialog',_0x1a8446('0x51'),_0x1a8446('0x2a4'),_0x1a8446('0x3c6'),_0x1a8446('0x1cfb'),_0x1a8446('0x1126'),_0x1a8446('0x157')];function _0x4a119a(_0x463230,_0x47814b,_0x4e619c,_0x38f082,_0x389a72,_0x3867a7,_0x1dbcc7){var _0x3a0dd6=_0x1a8446,_0x5869ba=this;_0x5869ba[_0x3a0dd6('0x4c6')]=[],_0x5869ba[_0x3a0dd6('0x110a')]=_0x3a0dd6('0x27be'),_0x5869ba[_0x3a0dd6('0x3c6')]=angular[_0x3a0dd6('0x20a')](_0x38f082),_0x5869ba['lists']=_0x3867a7||[],_0x5869ba[_0x3a0dd6('0x234')]=function(){var _0x1ad1d5=_0x3a0dd6;_0x5869ba[_0x1ad1d5('0x129e')]?_0x1dbcc7['cmContact'][_0x1ad1d5('0x2122')]({'fields':_0x1ad1d5('0xc85'),'filter':_0x5869ba[_0x1ad1d5('0x129e')],'ListId':_0x38f082[_0x1ad1d5('0xee0')]})[_0x1ad1d5('0x1dc2')][_0x1ad1d5('0xaa5')](function(_0x38589b){var _0x1c882a=_0x1ad1d5;_0x5869ba[_0x1c882a('0x1cfb')]=_0x38589b[_0x1c882a('0x580')];})[_0x1ad1d5('0x253d')](function(_0x26eef){var _0x3fe609=_0x1ad1d5;console[_0x3fe609('0x187f')](_0x26eef);}):_0x5869ba[_0x1ad1d5('0x1cfb')]=[];},_0x5869ba[_0x3a0dd6('0x3a3')]=_0x76fed4,_0x5869ba[_0x3a0dd6('0x2023')]=_0x57584a;function _0x76fed4(_0x41f222,_0x226812,_0xd105e8){var _0x1244c3=_0x3a0dd6,_0x3c9493=_0x463230['confirm']({'skipHide':!![]})[_0x1244c3('0x110a')](_0x1244c3('0x20ef'))[_0x1244c3('0x447')](_0x1244c3('0x10b6')+_0xd105e8['id']+_0x1244c3('0x1fa5')+_0x226812['id']+'.')[_0x1244c3('0x116d')](_0x41f222)['ok']('Ok')[_0x1244c3('0x2030')](_0x1244c3('0x9c6'));_0x463230[_0x1244c3('0x1e6d')](_0x3c9493)['then'](function(){var _0x1e31f6=_0x1244c3;return _0x1dbcc7[_0x1e31f6('0xdbd')][_0x1e31f6('0x283c')]({'to':_0xd105e8['id'],'from':_0x226812['id']})['$promise'];})[_0x1244c3('0xaa5')](function(_0x32b27e){var _0x26aefb=_0x1244c3;_0x463230['hide']({'new':_0x32b27e,'to':_0xd105e8,'from':_0x226812}),_0x51538b()['remove'](_0x389a72,{'id':_0xd105e8['id']}),_0x51538b()[_0x26aefb('0xf6d')](_0x389a72,{'id':_0x226812['id']}),_0x389a72['unshift'](_0x32b27e);})[_0x1244c3('0xaa5')](function(){var _0x32af2a=_0x1244c3;_0x4e619c[_0x32af2a('0xe10')]({'title':_0x32af2a('0x1c07')});})[_0x1244c3('0x253d')](function(_0x5df3c2){var _0x16b8c5=_0x1244c3;_0x5df3c2&&_0x5df3c2[_0x16b8c5('0x2fa')]&&_0x4e619c['error']({'title':_0x5df3c2[_0x16b8c5('0x2fa')]?'API:'+_0x5df3c2[_0x16b8c5('0x2fa')]+_0x16b8c5('0x169e')+_0x5df3c2['statusText']:'SYSTEM:MERGE_CONTACT','msg':_0x5df3c2['data']?JSON[_0x16b8c5('0xa48')](_0x5df3c2[_0x16b8c5('0x10fd')]):_0x5df3c2['toString']()});});}function _0x57584a(){_0x463230['hide']();}}const _0x5d8ada=_0x4a119a,_0x1ce07f=_0x4fb511['p']+_0x1a8446('0x97a'),_0x4fe0be=_0x4fb511['p']+_0x1a8446('0x24d9');_0x3089e9['$inject']=[_0x1a8446('0x2ce')];function _0x3089e9(_0x517606){var _0x53a8b4=_0x1a8446;_0x517606[_0x53a8b4('0xb46')](_0x53a8b4('0x23fd'),{'url':_0x53a8b4('0xec2'),'views':{'content@app':{'templateUrl':_0x1ce07f,'controller':_0x53a8b4('0x16d')}},'resolve':{'contacts':[_0x53a8b4('0x1d16'),_0x53a8b4('0x1dfd'),_0x53a8b4('0x703'),function _0x2ab620(_0x506abb,_0x5a3f3d,_0xa78d78){var _0x33a02d=_0x53a8b4;return _0x5a3f3d[_0x33a02d('0x26e8')](_0x33a02d('0x178b'))?_0x506abb['resolve'](_0x33a02d('0xe18'),_0x51538b()[_0x33a02d('0x283c')]({'includeAll':!![],'sort':_0x33a02d('0xd82'),'limit':0xa,'offset':0x0},_0xa78d78)):_0x506abb[_0x33a02d('0x149f')]('userProfile@getResources',_0x51538b()[_0x33a02d('0x283c')]({'id':_0x5a3f3d[_0x33a02d('0xacc')]()['userProfileId'],'section':_0x33a02d('0x1144'),'includeAll':!![],'sort':_0x33a02d('0xd82'),'limit':0xa,'offset':0x0},_0xa78d78));}],'lists':[_0x53a8b4('0x1d16'),_0x53a8b4('0x1dfd'),function _0x2c4745(_0x4bf494,_0x5d96db){var _0x419310=_0x53a8b4;return _0x5d96db[_0x419310('0x26e8')](_0x419310('0x178b'))?_0x4bf494[_0x419310('0x149f')](_0x419310('0x466'),{'fields':_0x419310('0x17fe'),'sort':'name','nolimit':!![]}):_0x4bf494[_0x419310('0x149f')](_0x419310('0x49a'),{'id':_0x5d96db[_0x419310('0xacc')]()[_0x419310('0x2168')],'section':'Lists','fields':'id,name','sort':_0x419310('0xd82'),'nolimit':!![]});}],'listsMap':[_0x53a8b4('0x1126'),function _0x3eb116(_0x391d1b){var _0x1d4fa9=_0x53a8b4,_0x1a6d38={};for(var _0x483b07=0x0;_0x483b07<_0x391d1b[_0x1d4fa9('0x580')][_0x1d4fa9('0x2587')];_0x483b07++){_0x1a6d38[_0x391d1b['rows'][_0x483b07]['id']]=_0x391d1b['rows'][_0x483b07][_0x1d4fa9('0x25d6')];}return _0x1a6d38;}],'companies':['apiResolver',_0x53a8b4('0x1dfd'),function _0x3b8585(_0x2c276e,_0x1af39c){var _0x1c8927=_0x53a8b4;return _0x1af39c[_0x1c8927('0x26e8')]('admin')?_0x2c276e['resolve'](_0x1c8927('0x1a66'),{'fields':_0x1c8927('0x17fe'),'sort':_0x1c8927('0x25d6'),'nolimit':!![]}):_0x2c276e[_0x1c8927('0x149f')](_0x1c8927('0x49a'),{'id':_0x1af39c[_0x1c8927('0xacc')]()[_0x1c8927('0x2168')],'section':_0x1c8927('0x1b47'),'fields':_0x1c8927('0x17fe'),'sort':_0x1c8927('0x25d6'),'nolimit':!![]});}],'companiesMap':['companies',function _0x3fb58c(_0x5f0d95){var _0x2449a6=_0x53a8b4,_0x34b35c={};for(var _0x5a4b1a=0x0;_0x5a4b1a<_0x5f0d95[_0x2449a6('0x580')][_0x2449a6('0x2587')];_0x5a4b1a++){_0x34b35c[_0x5f0d95['rows'][_0x5a4b1a]['id']]=_0x5f0d95[_0x2449a6('0x580')][_0x5a4b1a][_0x2449a6('0x25d6')];}return _0x34b35c;}],'tags':['apiResolver',_0x53a8b4('0x1dfd'),function _0x7f0480(_0x455d72,_0x4c4ea3){var _0x4e87b1=_0x53a8b4;return _0x4c4ea3[_0x4e87b1('0x26e8')]('admin')?_0x455d72[_0x4e87b1('0x149f')](_0x4e87b1('0x230a'),{'fields':_0x4e87b1('0x17fe'),'sort':_0x4e87b1('0x25d6'),'nolimit':!![]}):_0x455d72[_0x4e87b1('0x149f')](_0x4e87b1('0x49a'),{'id':_0x4c4ea3['getCurrentUser']()[_0x4e87b1('0x2168')],'section':'Tags','fields':_0x4e87b1('0x17fe'),'sort':'name','nolimit':!![]});}],'userProfile':['apiResolver',_0x53a8b4('0x1dfd'),function _0x5953ee(_0x2bb26a,_0x1bedce){var _0x5a54fd=_0x53a8b4;return _0x2bb26a[_0x5a54fd('0x149f')](_0x5a54fd('0x567'),{'fields':_0x5a54fd('0x1bb0'),'id':_0x1bedce[_0x5a54fd('0xacc')]()[_0x5a54fd('0x2168')]});}],'userProfileSection':[_0x53a8b4('0x1d16'),_0x53a8b4('0x1dfd'),function _0x58ad64(_0x2075b5,_0x3561f6){var _0x2e80af=_0x53a8b4;return _0x2075b5[_0x2e80af('0x149f')](_0x2e80af('0x89e'),{'fields':_0x2e80af('0xe6a'),'userProfileId':_0x3561f6['getCurrentUser']()[_0x2e80af('0x2168')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x53a8b4('0x124f')})[_0x53a8b4('0xb46')](_0x53a8b4('0x22ee'),{'url':_0x53a8b4('0xad'),'params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4fe0be,'controller':'ContactController\x20as\x20vm'}},'resolve':{'contact':[_0x53a8b4('0x1d16'),_0x53a8b4('0x703'),function _0x567635(_0x4dd13a,_0x18013f){var _0x21259c=_0x53a8b4;return _0x4dd13a[_0x21259c('0x149f')]('cmContact@get',{'id':_0x18013f['id']})[_0x21259c('0xaa5')](function(_0x280eee){var _0xc4b63f=_0x21259c;return _0x280eee[_0xc4b63f('0xae0')]&&(_0x280eee[_0xc4b63f('0xae0')]=new Date(_0x280eee[_0xc4b63f('0xae0')])),_0x280eee;})[_0x21259c('0x253d')](function(_0xb42a08){var _0x27e714=_0x21259c;console[_0x27e714('0x187f')](_0xb42a08);});}],'hoppers':[_0x53a8b4('0x1d16'),_0x53a8b4('0x703'),function _0x354c17(_0x3f43a0,_0x576108){var _0x394b0b=_0x53a8b4;return _0x3f43a0['resolve'](_0x394b0b('0x8c9'),{'id':_0x576108['id'],'fields':_0x394b0b('0x1053'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'finals':[_0x53a8b4('0x1d16'),_0x53a8b4('0x703'),function _0x3de6b1(_0x5d7d31,_0x3770db){var _0x42dc41=_0x53a8b4;return _0x5d7d31[_0x42dc41('0x149f')](_0x42dc41('0x13b4'),{'id':_0x3770db['id'],'fields':'id,uniqueid,calleridnum,statedesc,starttime,disposition','sort':_0x42dc41('0xd82'),'limit':0xa,'offset':0x0});}],'histories':['apiResolver',_0x53a8b4('0x703'),function _0x14b3b1(_0x3cf21d,_0x16a616){var _0x5c44b9=_0x53a8b4;return _0x3cf21d[_0x5c44b9('0x149f')](_0x5c44b9('0x1fd7'),{'id':_0x16a616['id'],'fields':_0x5c44b9('0x192'),'sort':_0x5c44b9('0xd82'),'limit':0xa,'offset':0x0});}],'jscriptySessions':[_0x53a8b4('0x1d16'),_0x53a8b4('0x703'),function _0x47a77(_0x2addef,_0x3933b2){var _0x5c5ec2=_0x53a8b4;return _0x2addef[_0x5c5ec2('0x149f')]('cmContact@getJscriptySessions',{'id':_0x3933b2['id'],'fields':_0x5c5ec2('0x24d4'),'sort':_0x5c5ec2('0xfe7'),'limit':0xa,'offset':0x0});}],'companies':[_0x53a8b4('0x1d16'),_0x53a8b4('0x1dfd'),function _0x5b7db5(_0x52a95e,_0x110276){var _0x35d3bd=_0x53a8b4;return _0x110276[_0x35d3bd('0x26e8')]('admin')?_0x52a95e[_0x35d3bd('0x149f')]('cmCompany@get'):_0x52a95e['resolve']('userProfile@getResources',{'id':_0x110276[_0x35d3bd('0xacc')]()[_0x35d3bd('0x2168')],'section':_0x35d3bd('0x1b47')});}],'lists':[_0x53a8b4('0x1d16'),'Auth',function _0x561bcc(_0x4d42d1,_0x5f25a3){var _0x50eab4=_0x53a8b4;return _0x5f25a3['hasRole'](_0x50eab4('0x178b'))?_0x4d42d1[_0x50eab4('0x149f')]('cmList@get',{'fields':_0x50eab4('0x17fe'),'sort':_0x50eab4('0xd82'),'nolimit':!![]}):_0x4d42d1[_0x50eab4('0x149f')]('userProfile@getResources',{'id':_0x5f25a3[_0x50eab4('0xacc')]()[_0x50eab4('0x2168')],'section':_0x50eab4('0x1135'),'fields':_0x50eab4('0x17fe'),'sort':_0x50eab4('0xd82'),'nolimit':!![]});}],'customFields':[_0x53a8b4('0x1d16'),'contact',function _0x3dd268(_0x170ff4,_0x4166f4){var _0x31cca8=_0x53a8b4;return _0x4166f4['ListId']?_0x170ff4[_0x31cca8('0x149f')](_0x31cca8('0x2343'),{'id':_0x4166f4[_0x31cca8('0xee0')]}):null;}],'tags':[_0x53a8b4('0x1d16'),_0x53a8b4('0x1dfd'),function _0x350424(_0x4b829c,_0x5447d7){var _0x1472a1=_0x53a8b4;return _0x5447d7[_0x1472a1('0x26e8')](_0x1472a1('0x178b'))?_0x4b829c[_0x1472a1('0x149f')]('tag@get'):_0x4b829c[_0x1472a1('0x149f')]('userProfile@getResources',{'id':_0x5447d7[_0x1472a1('0xacc')]()[_0x1472a1('0x2168')],'section':_0x1472a1('0x67f')});}],'userProfileSection':[_0x53a8b4('0x1d16'),_0x53a8b4('0x1dfd'),function _0x499f0b(_0x49c0cf,_0x538b32){var _0x32bac5=_0x53a8b4;return _0x49c0cf[_0x32bac5('0x149f')](_0x32bac5('0x89e'),{'fields':_0x32bac5('0xe6a'),'userProfileId':_0x538b32['getCurrentUser']()[_0x32bac5('0x2168')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x53a8b4('0x124f')});}angular[_0x1a8446('0x1f8d')]('app.contactmanager.contacts',[])[_0x1a8446('0x1b14')](_0x3089e9)[_0x1a8446('0x780')](_0x1a8446('0x1ddb'),_0x47880d)[_0x1a8446('0x780')](_0x1a8446('0x202e'),_0x525156)[_0x1a8446('0x780')](_0x1a8446('0x18b1'),_0x102ded)[_0x1a8446('0x780')](_0x1a8446('0x1ec'),_0x3cd85a)['controller'](_0x1a8446('0x1eca'),_0xfc74f2)[_0x1a8446('0x780')]('ImportContactsDialogController',_0x59dd52)['controller'](_0x1a8446('0xf6b'),_0x5d8ada);const _0x37f686=_0x4fb511['p']+_0x1a8446('0x15d4');_0x71e9e1['$inject']=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'companies',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x71e9e1(_0x1b9871,_0x23ef26,_0x1b51dd,_0x8aa60a,_0x5587a,_0x4b4c9c,_0xb20b47,_0x2543e6,_0x5e9a08,_0x32b69d,_0x1705a7,_0x90ced1,_0x2f3005,_0x412669,_0x2722ed,_0x45f164,_0x39f053){var _0x2e8955=_0x1a8446,_0x499a7d=this;_0x499a7d[_0x2e8955('0x1202')]=_0x45f164,_0x499a7d[_0x2e8955('0x143f')]=_0x39f053,_0x499a7d[_0x2e8955('0x7fc')]=_0x2722ed[_0x2e8955('0xacc')](),_0x499a7d[_0x2e8955('0x1171')]=_0x5e9a08||{'count':0x0,'rows':[]},_0x499a7d[_0x2e8955('0x1e97')]=_0x32b69d,_0x499a7d[_0x2e8955('0x1a50')]=_0x1705a7&&_0x1705a7[_0x2e8955('0xd15')]==0x1?_0x1705a7[_0x2e8955('0x580')][0x0]:null,_0x499a7d[_0x2e8955('0xada')]=_0x2722ed['parseCrudPermissions'](_0x499a7d[_0x2e8955('0x1a50')]?_0x499a7d[_0x2e8955('0x1a50')]['crudPermissions']:null),_0x499a7d[_0x2e8955('0x12b6')]=_0x2e8955('0x1171'),_0x499a7d[_0x2e8955('0x164')]='',_0x499a7d[_0x2e8955('0x8cc')]=null,_0x499a7d['selectedCompanies']=[],_0x499a7d[_0x2e8955('0x582')]={'fields':_0x2e8955('0x2f2'),'sort':_0x2e8955('0xd82'),'limit':0xa,'page':0x1},_0x499a7d[_0x2e8955('0x1927')]=_0x2166ed,_0x499a7d['gotocontactsgoto']=_0x19b24f,_0x499a7d[_0x2e8955('0x271')]=_0x5a018a,_0x499a7d[_0x2e8955('0xe10')]=_0x2e22f7,_0x499a7d[_0x2e8955('0x339')]=_0xac1c2,_0x499a7d[_0x2e8955('0x24e1')]=_0x5ac3be,_0x499a7d[_0x2e8955('0x1bcc')]=_0x36ddc7,_0x499a7d['exportSelectedCompanies']=_0x2af3ad,_0x499a7d[_0x2e8955('0x5cf')]=_0x12ce6d,_0x499a7d[_0x2e8955('0xbeb')]=_0x4e1570,_0x499a7d['selectAllCompanies']=_0x225822;function _0x2166ed(_0x401433){var _0x48eb68=_0x2e8955;_0x1b51dd['go'](_0x48eb68('0x967'),{'id':_0x401433['id'],'company':_0x401433,'crudPermissions':_0x499a7d['crudPermissions']});}function _0x19b24f(_0x3fbc95){var _0x14d5ff=_0x2e8955;if(_0x2722ed[_0x14d5ff('0x26e8')](_0x14d5ff('0x178b')))_0x1b51dd['go'](_0x14d5ff('0x23fd'),{'CompanyId':_0x3fbc95['id']});else return _0x90ced1['userProfileSection']['get']({'userProfileId':_0x2722ed[_0x14d5ff('0xacc')]()[_0x14d5ff('0x2168')],'sectionId':0x12f})[_0x14d5ff('0x1dc2')][_0x14d5ff('0xaa5')](function(_0x553e76){var _0x4d567c=_0x14d5ff,_0x32bf17=_0x553e76&&_0x553e76[_0x4d567c('0x580')]?_0x553e76[_0x4d567c('0x580')][0x0]:null;_0x32bf17&&_0x32bf17[_0x4d567c('0xbd3')]?_0x1b51dd['go'](_0x4d567c('0x23fd'),{'CompanyId':_0x3fbc95['id']}):_0x412669[_0x4d567c('0x3a1')]({'title':_0x2543e6[_0x4d567c('0x213f')](_0x4d567c('0x1aab')),'msg':_0x2543e6[_0x4d567c('0x213f')](_0x4d567c('0x251c'))});})[_0x14d5ff('0x253d')](function(_0xd54d43){var _0x159d41=_0x14d5ff;_0x412669[_0x159d41('0x187f')]({'title':_0xd54d43[_0x159d41('0x2fa')]?_0x159d41('0x16c2')+_0xd54d43[_0x159d41('0x2fa')]+_0x159d41('0x169e')+_0xd54d43[_0x159d41('0x24df')]:_0x159d41('0x21d5'),'msg':_0xd54d43[_0x159d41('0x2fa')]?JSON[_0x159d41('0xa48')](_0xd54d43[_0x159d41('0x10fd')]):_0xd54d43['toString']()});});}function _0x5a018a(_0x216131,_0x454720){var _0x2b63ae=_0x2e8955,_0x28612f=_0x5587a[_0x2b63ae('0x281e')]()[_0x2b63ae('0x110a')](_0x2b63ae('0x88d')+_0x51538b()[_0x2b63ae('0x196a')](_0x2b63ae('0x25ae'))+'?')[_0x2b63ae('0x102e')](_0x2b63ae('0x389')+(_0x216131['name']||'company')+_0x2b63ae('0x697')+_0x2b63ae('0x210d'))[_0x2b63ae('0x5b5')](_0x2b63ae('0x26ff'))[_0x2b63ae('0x116d')](_0x454720)['ok']('OK')['cancel']('CANCEL');_0x5587a[_0x2b63ae('0x1e6d')](_0x28612f)['then'](function(){_0x36ddc7(_0x216131);},function(){var _0xc845c5=_0x2b63ae;console[_0xc845c5('0x18d5')](_0xc845c5('0x2410'));});}var _0x178a97=!![],_0x597167=0x1;_0x1b9871[_0x2e8955('0x1ccf')](_0x2e8955('0x1788'),function(_0x167fd2,_0x4a2eaa){var _0x58a538=_0x2e8955;_0x178a97?_0xb20b47(function(){_0x178a97=![];}):(!_0x4a2eaa&&(_0x597167=_0x499a7d[_0x58a538('0x582')][_0x58a538('0x41')]),_0x167fd2!==_0x4a2eaa&&(_0x499a7d[_0x58a538('0x582')][_0x58a538('0x41')]=0x1),!_0x167fd2&&(_0x499a7d['query']['page']=_0x597167),_0x499a7d['getCompanies']());});function _0x2e22f7(_0x1f6fa6){var _0x8189fb=_0x2e8955;_0x499a7d[_0x8189fb('0x1171')]=_0x1f6fa6||{'count':0x0,'rows':[]};}function _0xac1c2(){var _0x22752a=_0x2e8955;_0x499a7d['query'][_0x22752a('0x8b1')]=(_0x499a7d[_0x22752a('0x582')][_0x22752a('0x41')]-0x1)*_0x499a7d[_0x22752a('0x582')][_0x22752a('0xf4d')],_0x2722ed[_0x22752a('0x26e8')](_0x22752a('0x178b'))?_0x499a7d['promise']=_0x90ced1[_0x22752a('0x218')][_0x22752a('0x2122')](_0x499a7d['query'],_0x2e22f7)[_0x22752a('0x1dc2')]:(_0x499a7d[_0x22752a('0x582')]['id']=_0x499a7d[_0x22752a('0x1e97')]['id'],_0x499a7d[_0x22752a('0x582')][_0x22752a('0x224d')]=_0x22752a('0x1b47'),_0x499a7d[_0x22752a('0x159a')]=_0x90ced1['userProfile'][_0x22752a('0x1cf1')](_0x499a7d[_0x22752a('0x582')],_0x2e22f7)[_0x22752a('0x1dc2')]);}function _0x5ac3be(_0x264283,_0x40f201){var _0x414e5e=_0x2e8955;_0x5587a[_0x414e5e('0x1e6d')]({'controller':'CreateOrEditCompanyDialogController','controllerAs':'vm','templateUrl':_0x37f686,'parent':angular[_0x414e5e('0x1aa8')](_0x4b4c9c[_0x414e5e('0x54c')]),'targetEvent':_0x264283,'clickOutsideToClose':!![],'locals':{'company':_0x40f201,'companies':_0x499a7d[_0x414e5e('0x1171')][_0x414e5e('0x580')],'license':_0x499a7d[_0x414e5e('0x1202')],'setting':_0x499a7d[_0x414e5e('0x143f')],'crudPermissions':_0x499a7d[_0x414e5e('0xada')]}});}function _0x36ddc7(_0x35493a){var _0x46c752=_0x2e8955;_0x90ced1[_0x46c752('0x218')][_0x46c752('0x926')]({'id':_0x35493a['id']})['$promise'][_0x46c752('0xaa5')](function(){var _0x2640b3=_0x46c752;_0x51538b()[_0x2640b3('0xf6d')](_0x499a7d[_0x2640b3('0x1171')][_0x2640b3('0x580')],{'id':_0x35493a['id']}),_0x499a7d[_0x2640b3('0x1171')][_0x2640b3('0xd15')]-=0x1,!_0x499a7d['companies'][_0x2640b3('0x580')]['length']&&_0x499a7d[_0x2640b3('0x339')](),_0x412669[_0x2640b3('0xe10')]({'title':_0x51538b()[_0x2640b3('0x196a')]('Company')+_0x2640b3('0x8bb'),'msg':_0x35493a['name']?_0x35493a[_0x2640b3('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x46c752('0x253d')](function(_0x1dbd8e){var _0x3e1555=_0x46c752;if(_0x1dbd8e[_0x3e1555('0x10fd')]&&_0x1dbd8e['data']['errors']&&_0x1dbd8e[_0x3e1555('0x10fd')][_0x3e1555('0x4c6')][_0x3e1555('0x2587')]){_0x499a7d[_0x3e1555('0x4c6')]=_0x1dbd8e[_0x3e1555('0x10fd')]['errors']||[{'message':_0x1dbd8e[_0x3e1555('0x684')](),'type':'SYSTEM:DELETEcmCompany'}];for(var _0x4fa98b=0x0;_0x4fa98b<_0x1dbd8e[_0x3e1555('0x10fd')][_0x3e1555('0x4c6')][_0x3e1555('0x2587')];_0x4fa98b++){_0x412669[_0x3e1555('0x187f')]({'title':_0x1dbd8e[_0x3e1555('0x10fd')][_0x3e1555('0x4c6')][_0x4fa98b]['type'],'msg':_0x1dbd8e[_0x3e1555('0x10fd')]['errors'][_0x4fa98b][_0x3e1555('0x1402')]});}}else _0x412669[_0x3e1555('0x187f')]({'title':_0x1dbd8e[_0x3e1555('0x2fa')]?_0x3e1555('0x16c2')+_0x1dbd8e[_0x3e1555('0x2fa')]+_0x3e1555('0x169e')+_0x1dbd8e[_0x3e1555('0x24df')]:_0x3e1555('0x1a7c'),'msg':_0x1dbd8e[_0x3e1555('0x10fd')]?JSON[_0x3e1555('0xa48')](_0x1dbd8e['data'][_0x3e1555('0x1402')]):_0x1dbd8e[_0x3e1555('0x1402')]||_0x1dbd8e[_0x3e1555('0x684')]()});});}function _0x2af3ad(){var _0x3d2ca9=_0x2e8955,_0x1486a2=angular[_0x3d2ca9('0x20a')](_0x499a7d[_0x3d2ca9('0x14d9')]);return _0x499a7d['selectedCompanies']=[],_0x1486a2;}function _0x12ce6d(_0x195b2d){var _0x46610c=_0x2e8955,_0x1b3ee8=_0x5587a[_0x46610c('0x281e')]()['title'](_0x46610c('0x1d52'))[_0x46610c('0x102e')](_0x46610c('0x389')+_0x499a7d['selectedCompanies']['length']+_0x46610c('0x1443')+_0x46610c('0x210d'))[_0x46610c('0x5b5')](_0x46610c('0x1da8'))[_0x46610c('0x116d')](_0x195b2d)['ok']('OK')[_0x46610c('0x2030')](_0x46610c('0x2410'));_0x5587a[_0x46610c('0x1e6d')](_0x1b3ee8)[_0x46610c('0xaa5')](function(){var _0x59ae79=_0x46610c;_0x499a7d[_0x59ae79('0x14d9')][_0x59ae79('0x15b5')](function(_0x1124a1){_0x36ddc7(_0x1124a1);}),_0x499a7d[_0x59ae79('0x14d9')]=[];});}function _0x4e1570(){_0x499a7d['selectedCompanies']=[];}function _0x225822(){var _0x1e8037=_0x2e8955;_0x499a7d[_0x1e8037('0x14d9')]=_0x499a7d['companies']['rows'];}}const _0x550a23=_0x71e9e1;_0x1a979b['$inject']=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),'toasty','companies',_0x1a8446('0x25ae'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x1a979b(_0x4dd728,_0x29b7fb,_0x4855f7,_0x8b930d,_0x23bb38,_0x399946,_0x5abec3,_0x1369e6,_0x30b843,_0x43246a,_0x5e65dd,_0x5b05f0,_0x24f4ad,_0x4cda98){var _0x52b7a5=_0x1a8446,_0x5bf48f=this;_0x5bf48f[_0x52b7a5('0x7fc')]=_0x5e65dd[_0x52b7a5('0xacc')](),_0x5bf48f[_0x52b7a5('0x4c6')]=[],_0x5bf48f[_0x52b7a5('0x143f')]=_0x24f4ad,_0x5bf48f['license']=_0x5b05f0,_0x5bf48f[_0x52b7a5('0xada')]=_0x4cda98,_0x5bf48f[_0x52b7a5('0x9f0')]={},_0x5bf48f[_0x52b7a5('0x1d53')]=_0x5bf48f[_0x52b7a5('0x143f')]&&_0x5bf48f[_0x52b7a5('0x143f')][_0x52b7a5('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5bf48f[_0x52b7a5('0x110a')]=_0x52b7a5('0x3c4'),_0x5bf48f[_0x52b7a5('0x25ae')]=angular['copy'](_0x30b843),_0x5bf48f['companies']=_0x1369e6,_0x5bf48f[_0x52b7a5('0x12cc')]=![];!_0x5bf48f['company']&&(_0x5bf48f['company']={},_0x5bf48f[_0x52b7a5('0x110a')]=_0x52b7a5('0x1243'),_0x5bf48f['newCompany']=!![]);_0x5bf48f[_0x52b7a5('0x420')]=_0x5a0385,_0x5bf48f[_0x52b7a5('0x1a17')]=_0x39b655,_0x5bf48f[_0x52b7a5('0x1bcc')]=_0x3dfc47,_0x5bf48f[_0x52b7a5('0xc09')]=_0x3b8b93,_0x5bf48f[_0x52b7a5('0x2023')]=_0x14ab53;function _0x5a0385(){var _0x43a6a8=_0x52b7a5;_0x5bf48f['errors']=[],_0x43246a[_0x43a6a8('0x218')][_0x43a6a8('0x242b')](_0x5bf48f[_0x43a6a8('0x25ae')])[_0x43a6a8('0x1dc2')][_0x43a6a8('0xaa5')](function(_0xb5d99b){var _0x2cdd36=_0x43a6a8;_0x5bf48f[_0x2cdd36('0x1171')]['unshift'](_0xb5d99b['toJSON']()),_0x5abec3[_0x2cdd36('0xe10')]({'title':'Company\x20properly\x20created','msg':_0x5bf48f[_0x2cdd36('0x25ae')][_0x2cdd36('0x25d6')]?_0x5bf48f['company'][_0x2cdd36('0x25d6')]+_0x2cdd36('0xdca'):''}),_0x14ab53(_0xb5d99b);})[_0x43a6a8('0x253d')](function(_0x2e1924){var _0x313e30=_0x43a6a8;if(_0x2e1924['data']&&_0x2e1924[_0x313e30('0x10fd')][_0x313e30('0x4c6')]&&_0x2e1924[_0x313e30('0x10fd')][_0x313e30('0x4c6')][_0x313e30('0x2587')]){_0x5bf48f['errors']=_0x2e1924['data'][_0x313e30('0x4c6')]||[{'message':_0x2e1924[_0x313e30('0x684')](),'type':'api.cmCompany.save'}];for(var _0x549648=0x0;_0x549648<_0x2e1924['data'][_0x313e30('0x4c6')][_0x313e30('0x2587')];_0x549648+=0x1){_0x5abec3[_0x313e30('0x187f')]({'title':_0x2e1924[_0x313e30('0x10fd')][_0x313e30('0x4c6')][_0x549648]['type'],'msg':_0x2e1924[_0x313e30('0x10fd')][_0x313e30('0x4c6')][_0x549648][_0x313e30('0x1402')]});}}else _0x5abec3[_0x313e30('0x187f')]({'title':_0x2e1924[_0x313e30('0x2fa')]?_0x313e30('0x16c2')+_0x2e1924[_0x313e30('0x2fa')]+_0x313e30('0x169e')+_0x2e1924['statusText']:_0x313e30('0x13b'),'msg':_0x2e1924[_0x313e30('0x10fd')]?JSON[_0x313e30('0xa48')](_0x2e1924['data'][_0x313e30('0x1402')]):_0x2e1924['toString']()});});}function _0x39b655(){var _0x511afd=_0x52b7a5;_0x5bf48f[_0x511afd('0x4c6')]=[],_0x43246a[_0x511afd('0x218')][_0x511afd('0x264e')]({'id':_0x5bf48f[_0x511afd('0x25ae')]['id']},_0x5bf48f[_0x511afd('0x25ae')])['$promise']['then'](function(_0x12905e){var _0x119ce1=_0x511afd,_0x49d942=_0x51538b()[_0x119ce1('0xe9e')](_0x5bf48f[_0x119ce1('0x1171')],{'id':_0x12905e['id']});_0x49d942&&_0x51538b()[_0x119ce1('0x283c')](_0x49d942,_0x51538b()['pick'](_0x12905e[_0x119ce1('0x256a')](),_0x51538b()['keys'](_0x49d942))),_0x5abec3[_0x119ce1('0xe10')]({'title':'Company\x20properly\x20saved!','msg':_0x5bf48f[_0x119ce1('0x25ae')][_0x119ce1('0x25d6')]?_0x5bf48f[_0x119ce1('0x25ae')][_0x119ce1('0x25d6')]+_0x119ce1('0x20bf'):''}),_0x14ab53(_0x12905e);})[_0x511afd('0x253d')](function(_0x4331ae){var _0x1830bf=_0x511afd;if(_0x4331ae[_0x1830bf('0x10fd')]&&_0x4331ae[_0x1830bf('0x10fd')]['errors']&&_0x4331ae['data'][_0x1830bf('0x4c6')][_0x1830bf('0x2587')]){_0x5bf48f[_0x1830bf('0x4c6')]=_0x4331ae[_0x1830bf('0x10fd')][_0x1830bf('0x4c6')]||[{'message':_0x4331ae[_0x1830bf('0x684')](),'type':_0x1830bf('0x11ed')}];for(var _0x15bf1f=0x0;_0x15bf1f<_0x4331ae['data'][_0x1830bf('0x4c6')][_0x1830bf('0x2587')];_0x15bf1f++){_0x5abec3['error']({'title':_0x4331ae[_0x1830bf('0x10fd')][_0x1830bf('0x4c6')][_0x15bf1f][_0x1830bf('0x6c8')],'msg':_0x4331ae[_0x1830bf('0x10fd')]['errors'][_0x15bf1f][_0x1830bf('0x1402')]});}}else _0x5abec3[_0x1830bf('0x187f')]({'title':_0x4331ae[_0x1830bf('0x2fa')]?_0x1830bf('0x16c2')+_0x4331ae[_0x1830bf('0x2fa')]+_0x1830bf('0x169e')+_0x4331ae['statusText']:_0x1830bf('0x11ed'),'msg':_0x4331ae[_0x1830bf('0x10fd')]?JSON[_0x1830bf('0xa48')](_0x4331ae['data']['message']):_0x4331ae[_0x1830bf('0x684')]()});});}function _0x3dfc47(_0x2234d8){var _0x3932a9=_0x52b7a5;_0x5bf48f['errors']=[];var _0x355221=_0x8b930d[_0x3932a9('0x281e')]()[_0x3932a9('0x110a')](_0x3932a9('0x12a3'))[_0x3932a9('0x15af')](_0x3932a9('0x5a'))[_0x3932a9('0x5b5')]('Delete\x20Company')['ok'](_0x3932a9('0x1e76'))[_0x3932a9('0x2030')]('Cancel')[_0x3932a9('0x116d')](_0x2234d8);_0x8b930d[_0x3932a9('0x1e6d')](_0x355221)['then'](function(){var _0x1216cf=_0x3932a9;_0x43246a[_0x1216cf('0x218')][_0x1216cf('0x926')]({'id':_0x5bf48f[_0x1216cf('0x25ae')]['id']})[_0x1216cf('0x1dc2')][_0x1216cf('0xaa5')](function(){var _0x1f0bcd=_0x1216cf;_0x51538b()['remove'](_0x5bf48f[_0x1f0bcd('0x1171')],{'id':_0x5bf48f['company']['id']}),_0x5abec3[_0x1f0bcd('0xe10')]({'title':_0x1f0bcd('0x1ff'),'msg':(_0x5bf48f['company'][_0x1f0bcd('0x25d6')]||_0x1f0bcd('0x25ae'))+'\x20has\x20been\x20deleted!'}),_0x14ab53(_0x5bf48f[_0x1f0bcd('0x25ae')]);})['catch'](function(_0x7838eb){var _0xa4e5a4=_0x1216cf;if(_0x7838eb[_0xa4e5a4('0x10fd')]&&_0x7838eb[_0xa4e5a4('0x10fd')][_0xa4e5a4('0x4c6')]&&_0x7838eb[_0xa4e5a4('0x10fd')][_0xa4e5a4('0x4c6')][_0xa4e5a4('0x2587')]){_0x5bf48f[_0xa4e5a4('0x4c6')]=_0x7838eb[_0xa4e5a4('0x10fd')][_0xa4e5a4('0x4c6')]||[{'message':_0x7838eb[_0xa4e5a4('0x684')](),'type':_0xa4e5a4('0x855')}];for(var _0x480106=0x0;_0x480106<_0x7838eb[_0xa4e5a4('0x10fd')][_0xa4e5a4('0x4c6')]['length'];_0x480106++){_0x5abec3[_0xa4e5a4('0x187f')]({'title':_0x7838eb['data'][_0xa4e5a4('0x4c6')][_0x480106][_0xa4e5a4('0x6c8')],'msg':_0x7838eb[_0xa4e5a4('0x10fd')][_0xa4e5a4('0x4c6')][_0x480106][_0xa4e5a4('0x1402')]});}}else _0x5abec3[_0xa4e5a4('0x187f')]({'title':_0x7838eb[_0xa4e5a4('0x2fa')]?'API:'+_0x7838eb[_0xa4e5a4('0x2fa')]+_0xa4e5a4('0x169e')+_0x7838eb[_0xa4e5a4('0x24df')]:_0xa4e5a4('0x855'),'msg':_0x7838eb[_0xa4e5a4('0x10fd')]?JSON[_0xa4e5a4('0xa48')](_0x7838eb[_0xa4e5a4('0x10fd')][_0xa4e5a4('0x1402')]):_0x7838eb[_0xa4e5a4('0x1402')]||_0x7838eb[_0xa4e5a4('0x684')]()});});},function(){});}function _0x3b8b93(_0x37923d){return _0x37923d===null?undefined:new Date(_0x37923d);}function _0x14ab53(_0x2909f4){var _0x1f72cd=_0x52b7a5;_0x8b930d[_0x1f72cd('0x1120')](_0x2909f4);}}const _0x370cfd=_0x1a979b;_0x4268c3[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'company',_0x1a8446('0x1a50')];function _0x4268c3(_0x4fdcd9,_0x3fe029,_0x55975d,_0x5d2b34,_0x19ccc4,_0x4b437f,_0x3c7798,_0x4c1fff,_0x24c284,_0x453dad,_0x545c7d,_0x1681df){var _0x3e02bb=_0x1a8446,_0xcd0a90=this;_0xcd0a90[_0x3e02bb('0x7fc')]=_0x453dad[_0x3e02bb('0xacc')](),_0xcd0a90[_0x3e02bb('0x1202')]=_0x4b437f,_0xcd0a90[_0x3e02bb('0x143f')]=_0x3c7798,_0xcd0a90[_0x3e02bb('0x1d53')]=_0xcd0a90['setting'][_0x3e02bb('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xcd0a90[_0x3e02bb('0x18cc')]=_0x3fe029[_0x3e02bb('0x1cc2')]()+'://'+_0x3fe029[_0x3e02bb('0x160c')](),_0xcd0a90[_0x3e02bb('0x25ae')]=_0x545c7d||_0x4fdcd9['params'][_0x3e02bb('0x25ae')]||{},_0xcd0a90[_0x3e02bb('0x1a50')]=_0x1681df&&_0x1681df['count']==0x1?_0x1681df[_0x3e02bb('0x580')][0x0]:null,_0xcd0a90['crudPermissions']=_0x453dad[_0x3e02bb('0xffd')](_0xcd0a90['userProfileSection']?_0xcd0a90['userProfileSection'][_0x3e02bb('0xada')]:null),_0xcd0a90[_0x3e02bb('0x9f0')]={},_0xcd0a90['selectedTab']=_0x4fdcd9[_0x3e02bb('0x25cf')]['tab']||0x0,_0xcd0a90[_0x3e02bb('0x7ba')]=_0x41098c,_0xcd0a90[_0x3e02bb('0xc10')]=_0x24c284[_0x3e02bb('0x3a1')],_0xcd0a90[_0x3e02bb('0x23cf')]=_0x3898a6,_0xcd0a90[_0x3e02bb('0x1a17')]=_0x488850;function _0x41098c(_0x3d6379){var _0x5182d1=_0x3e02bb;if(_0x453dad[_0x5182d1('0x26e8')](_0x5182d1('0x178b')))_0x4fdcd9['go'](_0x5182d1('0x23fd'),{'CompanyId':_0x3d6379['id']});else return _0x4c1fff['userProfileSection'][_0x5182d1('0x2122')]({'userProfileId':_0x453dad[_0x5182d1('0xacc')]()[_0x5182d1('0x2168')],'sectionId':0x12f})['$promise'][_0x5182d1('0xaa5')](function(_0x5c4fd1){var _0x46b9c7=_0x5182d1,_0x4faed9=_0x5c4fd1&&_0x5c4fd1[_0x46b9c7('0x580')]?_0x5c4fd1['rows'][0x0]:null;_0x4faed9&&_0x4faed9[_0x46b9c7('0xbd3')]?_0x4fdcd9['go']('app.contactmanager.contacts',{'CompanyId':_0x3d6379['id']}):_0x24c284[_0x46b9c7('0x3a1')]({'title':_0x19ccc4[_0x46b9c7('0x213f')](_0x46b9c7('0x1aab')),'msg':_0x19ccc4['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x5182d1('0x253d')](function(_0x37f9dc){var _0x530ba4=_0x5182d1;_0x24c284[_0x530ba4('0x187f')]({'title':_0x37f9dc[_0x530ba4('0x2fa')]?_0x530ba4('0x16c2')+_0x37f9dc[_0x530ba4('0x2fa')]+'\x20-\x20'+_0x37f9dc['statusText']:_0x530ba4('0x21d5'),'msg':_0x37f9dc['status']?JSON['stringify'](_0x37f9dc[_0x530ba4('0x10fd')]):_0x37f9dc[_0x530ba4('0x684')]()});});}function _0x3898a6(){var _0x5bc079=_0x3e02bb;_0x4fdcd9['go']('app.contactmanager.companies',{},{'reload':_0x5bc079('0x265d')});}function _0x488850(){var _0x226c73=_0x3e02bb;_0x4c1fff['cmCompany'][_0x226c73('0x264e')]({'id':_0xcd0a90[_0x226c73('0x25ae')]['id']},_0xcd0a90[_0x226c73('0x25ae')])[_0x226c73('0x1dc2')]['then'](function(){var _0x463c6b=_0x226c73;_0x24c284[_0x463c6b('0xe10')]({'title':_0x463c6b('0x2760'),'msg':_0xcd0a90['company'][_0x463c6b('0x25d6')]?_0xcd0a90['company'][_0x463c6b('0x25d6')]+_0x463c6b('0x1734'):''});})[_0x226c73('0x253d')](function(_0x46d940){var _0x1bb92b=_0x226c73;_0x24c284[_0x1bb92b('0x187f')]({'title':_0x46d940[_0x1bb92b('0x2fa')]?'API:'+_0x46d940['status']+'\x20-\x20'+_0x46d940[_0x1bb92b('0x24df')]:_0x1bb92b('0x1d37'),'msg':_0x46d940[_0x1bb92b('0x10fd')]?JSON[_0x1bb92b('0xa48')](_0x46d940['data']):_0x46d940[_0x1bb92b('0x684')]()});});}}const _0x5dec64=_0x4268c3;_0x16ef95[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'globalCustomFields',_0x1a8446('0x16bb'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x16ef95(_0x5b3199,_0x565ca4,_0x37c1a1,_0x59270c,_0x14bf93,_0x69a93d,_0x59d57b,_0x931d48,_0x53b552,_0x57ee44,_0x315eff,_0x5839d2,_0x21b99f,_0x21515d){var _0x163bcb=_0x1a8446,_0x30c6dc=this;_0x30c6dc['currentUser']=_0x315eff[_0x163bcb('0xacc')](),_0x30c6dc['errors']=[],_0x30c6dc[_0x163bcb('0x143f')]=_0x21b99f,_0x30c6dc[_0x163bcb('0x1202')]=_0x5839d2,_0x30c6dc[_0x163bcb('0xada')]=_0x21515d,_0x30c6dc[_0x163bcb('0x9f0')]={},_0x30c6dc['passwordPattern']=_0x30c6dc['setting']&&_0x30c6dc[_0x163bcb('0x143f')][_0x163bcb('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x30c6dc['title']=_0x163bcb('0x117b'),_0x30c6dc[_0x163bcb('0xbcc')]={'animation':0x320,'sort':!![],'onSort':function _0x15562a(){var _0x4aecef=_0x163bcb;_0x5b3199[_0x4aecef('0x21ed')][_0x4aecef('0x10f2')]=![];}},_0x30c6dc[_0x163bcb('0x16bb')]=_0x53b552,_0x30c6dc['globalCustomFields']=_0x931d48,_0x30c6dc[_0x163bcb('0x17c3')]=![];!_0x30c6dc[_0x163bcb('0x16bb')]&&(_0x30c6dc['globalCustomField']={'type':_0x163bcb('0xb37'),'actionType':_0x163bcb('0x1b9')},_0x30c6dc[_0x163bcb('0x110a')]=_0x163bcb('0xa5e'),_0x30c6dc[_0x163bcb('0x17c3')]=!![]);_0x5b3199['$watch'](_0x163bcb('0x344'),function(_0x352b93,_0x4517b1){var _0x464cb9=_0x163bcb;if(_0x352b93!==_0x4517b1)switch(_0x352b93){case'text':_0x30c6dc[_0x464cb9('0x16bb')][_0x464cb9('0x3c5')]='';break;case'select':_0x30c6dc['globalCustomField'][_0x464cb9('0x3c5')]=[];break;default:}}),_0x30c6dc[_0x163bcb('0x609')]=_0x42ff18,_0x30c6dc[_0x163bcb('0x2314')]=_0x12bfc5,_0x30c6dc[_0x163bcb('0xa82')]=_0x52349b,_0x30c6dc[_0x163bcb('0xc09')]=_0xb28e27,_0x30c6dc['addItem']=_0x520323,_0x30c6dc[_0x163bcb('0x21e')]=_0xc69019,_0x30c6dc[_0x163bcb('0x26eb')]=_0x521a6a,_0x30c6dc[_0x163bcb('0x2023')]=_0x18b2ec;function _0x520323(_0x508b49){var _0x3e704a=_0x163bcb;_0x508b49['push']({'value':_0x3e704a('0x2261')}),_0x5b3199[_0x3e704a('0x21ed')][_0x3e704a('0x10f2')]=![];}function _0xc69019(_0x4065c3,_0x572331){var _0x44ef6a=_0x163bcb;_0x4065c3[_0x44ef6a('0x1280')](_0x572331,0x1),_0x5b3199[_0x44ef6a('0x21ed')]['$pristine']=![];}function _0x521a6a(_0x1e1a8b){var _0x2b7d75=_0x163bcb,_0x33115b=_0x1e1a8b[_0x2b7d75('0x2587')];for(var _0x5d2175=0x0;_0x5d2175<_0x33115b;_0x5d2175++){_0x1e1a8b[_0x2b7d75('0x1280')](0x0,0x1);}_0x5b3199[_0x2b7d75('0x21ed')]['$pristine']=![];}function _0x42ff18(){var _0x31e050=_0x163bcb;_0x30c6dc[_0x31e050('0x4c6')]=[],_0x57ee44[_0x31e050('0x23e3')][_0x31e050('0x242b')](_0x30c6dc[_0x31e050('0x16bb')])['$promise'][_0x31e050('0xaa5')](function(_0xfe0d63){var _0x59fa80=_0x31e050;_0x30c6dc[_0x59fa80('0x139d')][_0x59fa80('0x6ee')](_0xfe0d63['toJSON']()),_0x59d57b['success']({'title':_0x59fa80('0x2499'),'msg':_0x30c6dc['globalCustomField'][_0x59fa80('0x25d6')]?_0x30c6dc[_0x59fa80('0x16bb')][_0x59fa80('0x25d6')]+_0x59fa80('0xdca'):''}),_0x18b2ec(_0xfe0d63);})[_0x31e050('0x253d')](function(_0x2c4b0e){var _0x3dcc9d=_0x31e050;if(_0x2c4b0e[_0x3dcc9d('0x10fd')]&&_0x2c4b0e[_0x3dcc9d('0x10fd')][_0x3dcc9d('0x4c6')]&&_0x2c4b0e[_0x3dcc9d('0x10fd')]['errors'][_0x3dcc9d('0x2587')]){_0x30c6dc[_0x3dcc9d('0x4c6')]=_0x2c4b0e['data'][_0x3dcc9d('0x4c6')]||[{'message':_0x2c4b0e[_0x3dcc9d('0x684')](),'type':_0x3dcc9d('0x1263')}];for(var _0x481342=0x0;_0x481342<_0x2c4b0e[_0x3dcc9d('0x10fd')][_0x3dcc9d('0x4c6')]['length'];_0x481342+=0x1){_0x59d57b[_0x3dcc9d('0x187f')]({'title':_0x2c4b0e[_0x3dcc9d('0x10fd')]['errors'][_0x481342][_0x3dcc9d('0x6c8')],'msg':_0x2c4b0e[_0x3dcc9d('0x10fd')][_0x3dcc9d('0x4c6')][_0x481342][_0x3dcc9d('0x1402')]});}}else _0x59d57b['error']({'title':_0x2c4b0e['status']?_0x3dcc9d('0x16c2')+_0x2c4b0e[_0x3dcc9d('0x2fa')]+_0x3dcc9d('0x169e')+_0x2c4b0e['statusText']:_0x3dcc9d('0x1263'),'msg':_0x2c4b0e[_0x3dcc9d('0x10fd')]?JSON[_0x3dcc9d('0xa48')](_0x2c4b0e[_0x3dcc9d('0x10fd')]['message']):_0x2c4b0e[_0x3dcc9d('0x684')]()});});}function _0x12bfc5(){var _0x39ad22=_0x163bcb;_0x30c6dc[_0x39ad22('0x4c6')]=[],_0x57ee44[_0x39ad22('0x23e3')][_0x39ad22('0x264e')]({'id':_0x30c6dc['globalCustomField']['id']},_0x30c6dc[_0x39ad22('0x16bb')])[_0x39ad22('0x1dc2')][_0x39ad22('0xaa5')](function(_0x1623a6){var _0x440e92=_0x39ad22,_0x421aa1=_0x51538b()[_0x440e92('0xe9e')](_0x30c6dc['globalCustomFields'],{'id':_0x1623a6['id']});_0x421aa1&&_0x51538b()['merge'](_0x421aa1,_0x51538b()['pick'](_0x1623a6[_0x440e92('0x256a')](),_0x51538b()[_0x440e92('0x9f2')](_0x421aa1))),_0x59d57b[_0x440e92('0xe10')]({'title':_0x440e92('0x51c'),'msg':_0x30c6dc[_0x440e92('0x16bb')][_0x440e92('0x25d6')]?_0x30c6dc[_0x440e92('0x16bb')][_0x440e92('0x25d6')]+_0x440e92('0x20bf'):''}),_0x18b2ec(_0x1623a6);})['catch'](function(_0x60a8ba){var _0x3de621=_0x39ad22;if(_0x60a8ba['data']&&_0x60a8ba['data']['errors']&&_0x60a8ba[_0x3de621('0x10fd')][_0x3de621('0x4c6')][_0x3de621('0x2587')]){_0x30c6dc[_0x3de621('0x4c6')]=_0x60a8ba['data'][_0x3de621('0x4c6')]||[{'message':_0x60a8ba['toString'](),'type':'api.cmCustomField.update'}];for(var _0x16c492=0x0;_0x16c492<_0x60a8ba[_0x3de621('0x10fd')]['errors'][_0x3de621('0x2587')];_0x16c492++){_0x59d57b[_0x3de621('0x187f')]({'title':_0x60a8ba[_0x3de621('0x10fd')][_0x3de621('0x4c6')][_0x16c492][_0x3de621('0x6c8')],'msg':_0x60a8ba[_0x3de621('0x10fd')][_0x3de621('0x4c6')][_0x16c492][_0x3de621('0x1402')]});}}else _0x59d57b['error']({'title':_0x60a8ba['status']?_0x3de621('0x16c2')+_0x60a8ba[_0x3de621('0x2fa')]+'\x20-\x20'+_0x60a8ba['statusText']:_0x3de621('0x13e5'),'msg':_0x60a8ba[_0x3de621('0x10fd')]?JSON[_0x3de621('0xa48')](_0x60a8ba[_0x3de621('0x10fd')][_0x3de621('0x1402')]):_0x60a8ba['toString']()});});}function _0x52349b(_0x42853b){var _0x458d87=_0x163bcb;_0x30c6dc[_0x458d87('0x4c6')]=[];var _0x31c68d=_0x59270c[_0x458d87('0x281e')]()['title'](_0x458d87('0x12a3'))['content'](_0x458d87('0x1f33'))[_0x458d87('0x5b5')](_0x458d87('0x269a'))['ok']('Delete')[_0x458d87('0x2030')](_0x458d87('0x9c6'))[_0x458d87('0x116d')](_0x42853b);_0x59270c[_0x458d87('0x1e6d')](_0x31c68d)[_0x458d87('0xaa5')](function(){var _0x5b0570=_0x458d87;_0x57ee44[_0x5b0570('0x23e3')][_0x5b0570('0x926')]({'id':_0x30c6dc[_0x5b0570('0x16bb')]['id']})[_0x5b0570('0x1dc2')][_0x5b0570('0xaa5')](function(){var _0x3aa5a5=_0x5b0570;_0x51538b()[_0x3aa5a5('0xf6d')](_0x30c6dc[_0x3aa5a5('0x139d')],{'id':_0x30c6dc['globalCustomField']['id']}),_0x59d57b['success']({'title':'GlobalCustomField\x20properly\x20deleted!','msg':(_0x30c6dc[_0x3aa5a5('0x16bb')][_0x3aa5a5('0x25d6')]||_0x3aa5a5('0x16bb'))+'\x20has\x20been\x20deleted!'}),_0x18b2ec(_0x30c6dc[_0x3aa5a5('0x16bb')]);})[_0x5b0570('0x253d')](function(_0x1905e9){var _0x44c472=_0x5b0570;if(_0x1905e9[_0x44c472('0x10fd')]&&_0x1905e9[_0x44c472('0x10fd')]['errors']&&_0x1905e9[_0x44c472('0x10fd')]['errors'][_0x44c472('0x2587')]){_0x30c6dc[_0x44c472('0x4c6')]=_0x1905e9[_0x44c472('0x10fd')][_0x44c472('0x4c6')]||[{'message':_0x1905e9[_0x44c472('0x684')](),'type':_0x44c472('0x119f')}];for(var _0x4dcbfc=0x0;_0x4dcbfc<_0x1905e9['data'][_0x44c472('0x4c6')]['length'];_0x4dcbfc++){_0x59d57b['error']({'title':_0x1905e9[_0x44c472('0x10fd')][_0x44c472('0x4c6')][_0x4dcbfc]['type'],'msg':_0x1905e9[_0x44c472('0x10fd')][_0x44c472('0x4c6')][_0x4dcbfc]['message']});}}else _0x59d57b[_0x44c472('0x187f')]({'title':_0x1905e9[_0x44c472('0x2fa')]?'API:'+_0x1905e9[_0x44c472('0x2fa')]+_0x44c472('0x169e')+_0x1905e9[_0x44c472('0x24df')]:_0x44c472('0x119f'),'msg':_0x1905e9['data']?JSON[_0x44c472('0xa48')](_0x1905e9['data'][_0x44c472('0x1402')]):_0x1905e9['message']||_0x1905e9[_0x44c472('0x684')]()});});},function(){});}function _0xb28e27(_0x2a30af){return _0x2a30af===null?undefined:new Date(_0x2a30af);}function _0x18b2ec(_0x499839){var _0x4b9dbf=_0x163bcb;_0x59270c[_0x4b9dbf('0x1120')](_0x499839);}}const _0x3af92a=_0x16ef95,_0x12a8db=_0x4fb511['p']+_0x1a8446('0x1b8a');_0x45772f[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),'$timeout','$translate',_0x1a8446('0x139d'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x45772f(_0x440d8c,_0x3c4267,_0x5201f8,_0x4897cf,_0x391af5,_0x209d59,_0x4925a7,_0x5c9ecb,_0x3d0364,_0x27f503,_0x4a79c8,_0x53b904,_0x38cf93,_0x43d9bb,_0x49958a,_0x3fe916,_0xb98768){var _0x3ac3a4=_0x1a8446,_0x2c7044=this;_0x2c7044[_0x3ac3a4('0x1202')]=_0x3fe916,_0x2c7044[_0x3ac3a4('0x143f')]=_0xb98768,_0x2c7044[_0x3ac3a4('0x7fc')]=_0x49958a['getCurrentUser'](),_0x2c7044[_0x3ac3a4('0x139d')]=_0x3d0364||{'count':0x0,'rows':[]},_0x2c7044[_0x3ac3a4('0x1e97')]=_0x27f503,_0x2c7044[_0x3ac3a4('0x1a50')]=_0x4a79c8&&_0x4a79c8[_0x3ac3a4('0xd15')]==0x1?_0x4a79c8[_0x3ac3a4('0x580')][0x0]:null,_0x2c7044[_0x3ac3a4('0xada')]=_0x49958a['parseCrudPermissions'](_0x2c7044[_0x3ac3a4('0x1a50')]?_0x2c7044[_0x3ac3a4('0x1a50')][_0x3ac3a4('0xada')]:null),_0x2c7044[_0x3ac3a4('0x12b6')]='globalCustomFields',_0x2c7044[_0x3ac3a4('0x164')]='',_0x2c7044['listOrderAsc']=null,_0x2c7044[_0x3ac3a4('0x1130')]=[],_0x2c7044[_0x3ac3a4('0x582')]={'fields':_0x3ac3a4('0x27d6'),'sort':'-updatedAt','ListId':_0x3ac3a4('0x1ed9'),'limit':0xa,'page':0x1},_0x2c7044[_0x3ac3a4('0x1bee')]=_0x51538b()['keyBy']([{'option':_0x3ac3a4('0x1f3a'),'value':_0x3ac3a4('0x192b')},{'option':'Select','value':'\x27select\x27'},{'option':'Number','value':_0x3ac3a4('0x5a9')},{'option':'Switch','value':_0x3ac3a4('0x1871')},{'option':_0x3ac3a4('0x809'),'value':_0x3ac3a4('0xaf4')}],function(_0x5dad73){var _0x2cfacd=_0x3ac3a4;return _0x51538b()[_0x2cfacd('0x170d')](_0x5dad73[_0x2cfacd('0x12f4')],new RegExp('\x27','g'),'');}),_0x2c7044['arrayactionType']=_0x51538b()[_0x3ac3a4('0x184a')]([{'option':_0x3ac3a4('0x11b3'),'value':'\x27voice\x27'}],function(_0x291be5){var _0xb72840=_0x3ac3a4;return _0x51538b()[_0xb72840('0x170d')](_0x291be5['value'],new RegExp('\x27','g'),'');}),_0x2c7044['editdialog']=_0x46e026,_0x2c7044[_0x3ac3a4('0x271')]=_0x1320e7,_0x2c7044['success']=_0xa659,_0x2c7044[_0x3ac3a4('0x184e')]=_0x307586,_0x2c7044[_0x3ac3a4('0x750')]=_0x3413a5,_0x2c7044[_0x3ac3a4('0xa82')]=_0x466a5f,_0x2c7044['exportSelectedGlobalCustomFields']=_0x305b0b,_0x2c7044[_0x3ac3a4('0x1a25')]=_0x12b481,_0x2c7044[_0x3ac3a4('0x1998')]=_0x6dbffd,_0x2c7044[_0x3ac3a4('0x2703')]=_0x4dda2e;function _0x46e026(_0x191f0b,_0x3ecad4){var _0x5ab94b=_0x3ac3a4;_0x391af5[_0x5ab94b('0x1e6d')]({'controller':_0x5ab94b('0x210b'),'controllerAs':'vm','templateUrl':_0x12a8db,'parent':angular['element'](_0x209d59[_0x5ab94b('0x54c')]),'targetEvent':_0x3ecad4,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x191f0b,'globalCustomFields':_0x2c7044[_0x5ab94b('0x139d')]['rows'],'license':_0x2c7044[_0x5ab94b('0x1202')],'setting':null,'crudPermissions':_0x2c7044[_0x5ab94b('0xada')]}});}function _0x1320e7(_0x26371c,_0x334044){var _0x4ea0c7=_0x3ac3a4,_0x2e1a84=_0x391af5[_0x4ea0c7('0x281e')]()[_0x4ea0c7('0x110a')](_0x4ea0c7('0x88d')+_0x51538b()[_0x4ea0c7('0x196a')](_0x4ea0c7('0x16bb'))+'?')['htmlContent'](_0x4ea0c7('0x389')+(_0x26371c[_0x4ea0c7('0x25d6')]||'globalCustomField')+_0x4ea0c7('0x697')+_0x4ea0c7('0x210d'))['ariaLabel'](_0x4ea0c7('0x227f'))[_0x4ea0c7('0x116d')](_0x334044)['ok']('OK')['cancel'](_0x4ea0c7('0x2410'));_0x391af5[_0x4ea0c7('0x1e6d')](_0x2e1a84)[_0x4ea0c7('0xaa5')](function(){_0x466a5f(_0x26371c);},function(){var _0x3b7880=_0x4ea0c7;console[_0x3b7880('0x18d5')](_0x3b7880('0x2410'));});}var _0x25e848=!![],_0x2a01fd=0x1;_0x440d8c[_0x3ac3a4('0x1ccf')](_0x3ac3a4('0x1788'),function(_0xa2432d,_0x54eed7){var _0x4978a7=_0x3ac3a4;_0x25e848?_0x4925a7(function(){_0x25e848=![];}):(!_0x54eed7&&(_0x2a01fd=_0x2c7044['query'][_0x4978a7('0x41')]),_0xa2432d!==_0x54eed7&&(_0x2c7044[_0x4978a7('0x582')][_0x4978a7('0x41')]=0x1),!_0xa2432d&&(_0x2c7044[_0x4978a7('0x582')][_0x4978a7('0x41')]=_0x2a01fd),_0x2c7044[_0x4978a7('0x184e')]());});function _0xa659(_0x3ce254){var _0x359af9=_0x3ac3a4;_0x2c7044[_0x359af9('0x139d')]=_0x3ce254||{'count':0x0,'rows':[]};}function _0x307586(){var _0x53e0be=_0x3ac3a4;_0x2c7044[_0x53e0be('0x582')][_0x53e0be('0x8b1')]=(_0x2c7044[_0x53e0be('0x582')]['page']-0x1)*_0x2c7044[_0x53e0be('0x582')][_0x53e0be('0xf4d')],_0x49958a[_0x53e0be('0x26e8')](_0x53e0be('0x178b'))?_0x2c7044['promise']=_0x53b904[_0x53e0be('0x23e3')][_0x53e0be('0x2122')](_0x2c7044[_0x53e0be('0x582')],_0xa659)['$promise']:(_0x2c7044[_0x53e0be('0x582')]['id']=_0x2c7044[_0x53e0be('0x1e97')]['id'],_0x2c7044[_0x53e0be('0x582')][_0x53e0be('0x224d')]=_0x53e0be('0x5ce'),_0x2c7044[_0x53e0be('0x159a')]=_0x53b904['userProfile']['getResources'](_0x2c7044[_0x53e0be('0x582')],_0xa659)['$promise']);}function _0x3413a5(_0x3a2e68,_0x4b123d){var _0x5635b2=_0x3ac3a4;_0x391af5[_0x5635b2('0x1e6d')]({'controller':_0x5635b2('0x210b'),'controllerAs':'vm','templateUrl':_0x12a8db,'parent':angular[_0x5635b2('0x1aa8')](_0x209d59['body']),'targetEvent':_0x3a2e68,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x4b123d,'globalCustomFields':_0x2c7044['globalCustomFields']['rows'],'license':_0x2c7044[_0x5635b2('0x1202')],'setting':_0x2c7044[_0x5635b2('0x143f')],'crudPermissions':_0x2c7044[_0x5635b2('0xada')]}});}function _0x466a5f(_0x48a246){var _0x259433=_0x3ac3a4;_0x53b904[_0x259433('0x23e3')][_0x259433('0x926')]({'id':_0x48a246['id']})[_0x259433('0x1dc2')][_0x259433('0xaa5')](function(){var _0x172e45=_0x259433;_0x51538b()[_0x172e45('0xf6d')](_0x2c7044[_0x172e45('0x139d')]['rows'],{'id':_0x48a246['id']}),_0x2c7044[_0x172e45('0x139d')][_0x172e45('0xd15')]-=0x1,!_0x2c7044[_0x172e45('0x139d')][_0x172e45('0x580')]['length']&&_0x2c7044['getGlobalCustomFields'](),_0x43d9bb[_0x172e45('0xe10')]({'title':_0x51538b()[_0x172e45('0x196a')](_0x172e45('0x147'))+'\x20deleted!','msg':_0x48a246[_0x172e45('0x25d6')]?_0x48a246['name']+'\x20has\x20been\x20deleted!':''});})[_0x259433('0x253d')](function(_0x5badb8){var _0x24cd42=_0x259433;if(_0x5badb8['data']&&_0x5badb8['data'][_0x24cd42('0x4c6')]&&_0x5badb8['data']['errors'][_0x24cd42('0x2587')]){_0x2c7044[_0x24cd42('0x4c6')]=_0x5badb8[_0x24cd42('0x10fd')][_0x24cd42('0x4c6')]||[{'message':_0x5badb8[_0x24cd42('0x684')](),'type':'SYSTEM:DELETEcmCustomField'}];for(var _0x366990=0x0;_0x366990<_0x5badb8[_0x24cd42('0x10fd')]['errors'][_0x24cd42('0x2587')];_0x366990++){_0x43d9bb[_0x24cd42('0x187f')]({'title':_0x5badb8['data'][_0x24cd42('0x4c6')][_0x366990]['type'],'msg':_0x5badb8[_0x24cd42('0x10fd')][_0x24cd42('0x4c6')][_0x366990]['message']});}}else _0x43d9bb[_0x24cd42('0x187f')]({'title':_0x5badb8['status']?_0x24cd42('0x16c2')+_0x5badb8[_0x24cd42('0x2fa')]+_0x24cd42('0x169e')+_0x5badb8[_0x24cd42('0x24df')]:_0x24cd42('0x126b'),'msg':_0x5badb8[_0x24cd42('0x10fd')]?JSON[_0x24cd42('0xa48')](_0x5badb8[_0x24cd42('0x10fd')][_0x24cd42('0x1402')]):_0x5badb8[_0x24cd42('0x1402')]||_0x5badb8['toString']()});});}function _0x305b0b(){var _0x5a1691=_0x3ac3a4,_0x4467c6=angular[_0x5a1691('0x20a')](_0x2c7044['selectedGlobalCustomFields']);return _0x2c7044[_0x5a1691('0x1130')]=[],_0x4467c6;}function _0x12b481(_0x425e10){var _0x32b3d9=_0x3ac3a4,_0x132c3b=_0x391af5[_0x32b3d9('0x281e')]()[_0x32b3d9('0x110a')](_0x32b3d9('0x1a6e'))['htmlContent'](''+_0x2c7044[_0x32b3d9('0x1130')]['length']+'\x20selected'+_0x32b3d9('0x210d'))[_0x32b3d9('0x5b5')](_0x32b3d9('0x27e4'))[_0x32b3d9('0x116d')](_0x425e10)['ok']('OK')[_0x32b3d9('0x2030')](_0x32b3d9('0x2410'));_0x391af5['show'](_0x132c3b)['then'](function(){var _0x46abcb=_0x32b3d9;_0x2c7044[_0x46abcb('0x1130')][_0x46abcb('0x15b5')](function(_0x166201){_0x466a5f(_0x166201);}),_0x2c7044[_0x46abcb('0x1130')]=[];});}function _0x6dbffd(){var _0x201926=_0x3ac3a4;_0x2c7044[_0x201926('0x1130')]=[];}function _0x4dda2e(){var _0x4de75a=_0x3ac3a4;_0x2c7044[_0x4de75a('0x1130')]=_0x2c7044[_0x4de75a('0x139d')]['rows'];}}const _0x536469=_0x45772f;_0x529aa4[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),'toasty',_0x1a8446('0x1126'),_0x1a8446('0x2334'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),'crudPermissions'];function _0x529aa4(_0x2032f3,_0x3c2c92,_0x3152cf,_0x326319,_0x1ad63d,_0x53a572,_0x1c458f,_0x460e18,_0x30e5b3,_0x65f4e9,_0x18340c,_0x2a4301,_0x6808f7,_0x570a2d){var _0x5ac80f=_0x1a8446,_0x5b0afb=this;_0x5b0afb[_0x5ac80f('0x7fc')]=_0x18340c[_0x5ac80f('0xacc')](),_0x5b0afb[_0x5ac80f('0x4c6')]=[],_0x5b0afb['setting']=_0x6808f7,_0x5b0afb[_0x5ac80f('0x1202')]=_0x2a4301,_0x5b0afb[_0x5ac80f('0xada')]=_0x570a2d,_0x5b0afb[_0x5ac80f('0x9f0')]={},_0x5b0afb['passwordPattern']=_0x5b0afb[_0x5ac80f('0x143f')]&&_0x5b0afb['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b0afb[_0x5ac80f('0x110a')]='CONTACTMANAGER.EDIT_LIST',_0x5b0afb[_0x5ac80f('0x2334')]=angular[_0x5ac80f('0x20a')](_0x30e5b3),_0x5b0afb[_0x5ac80f('0x1126')]=_0x460e18,_0x5b0afb[_0x5ac80f('0x8b4')]=![];!_0x5b0afb[_0x5ac80f('0x2334')]&&(_0x5b0afb[_0x5ac80f('0x2334')]={},_0x5b0afb[_0x5ac80f('0x110a')]='CONTACTMANAGER.NEW_LIST',_0x5b0afb[_0x5ac80f('0x8b4')]=!![]);_0x5b0afb[_0x5ac80f('0x2299')]=_0x50a624,_0x5b0afb[_0x5ac80f('0x2606')]=_0x3ab6e0,_0x5b0afb[_0x5ac80f('0x8e5')]=_0x882f5c,_0x5b0afb[_0x5ac80f('0xc09')]=_0x271198,_0x5b0afb[_0x5ac80f('0x2023')]=_0x58ef2d;function _0x50a624(){var _0x5abc57=_0x5ac80f;_0x5b0afb['errors']=[],_0x65f4e9[_0x5abc57('0x26b4')][_0x5abc57('0x242b')](_0x5b0afb['list'])[_0x5abc57('0x1dc2')][_0x5abc57('0xaa5')](function(_0x27076d){var _0x289358=_0x5abc57;_0x5b0afb[_0x289358('0x1126')][_0x289358('0x6ee')](_0x27076d[_0x289358('0x256a')]()),_0x1c458f[_0x289358('0xe10')]({'title':_0x289358('0x720'),'msg':_0x5b0afb[_0x289358('0x2334')]['name']?_0x5b0afb[_0x289358('0x2334')][_0x289358('0x25d6')]+_0x289358('0xdca'):''}),_0x58ef2d(_0x27076d);})[_0x5abc57('0x253d')](function(_0x11ee5e){var _0x16d41b=_0x5abc57;if(_0x11ee5e[_0x16d41b('0x10fd')]&&_0x11ee5e[_0x16d41b('0x10fd')][_0x16d41b('0x4c6')]&&_0x11ee5e[_0x16d41b('0x10fd')][_0x16d41b('0x4c6')][_0x16d41b('0x2587')]){_0x5b0afb['errors']=_0x11ee5e['data'][_0x16d41b('0x4c6')]||[{'message':_0x11ee5e['toString'](),'type':_0x16d41b('0x2da')}];for(var _0xd83880=0x0;_0xd83880<_0x11ee5e[_0x16d41b('0x10fd')][_0x16d41b('0x4c6')][_0x16d41b('0x2587')];_0xd83880+=0x1){_0x1c458f[_0x16d41b('0x187f')]({'title':_0x11ee5e[_0x16d41b('0x10fd')][_0x16d41b('0x4c6')][_0xd83880]['type'],'msg':_0x11ee5e[_0x16d41b('0x10fd')][_0x16d41b('0x4c6')][_0xd83880][_0x16d41b('0x1402')]});}}else _0x1c458f['error']({'title':_0x11ee5e[_0x16d41b('0x2fa')]?_0x16d41b('0x16c2')+_0x11ee5e['status']+_0x16d41b('0x169e')+_0x11ee5e[_0x16d41b('0x24df')]:_0x16d41b('0x2da'),'msg':_0x11ee5e[_0x16d41b('0x10fd')]?JSON[_0x16d41b('0xa48')](_0x11ee5e[_0x16d41b('0x10fd')]['message']):_0x11ee5e[_0x16d41b('0x684')]()});});}function _0x3ab6e0(){var _0x26d450=_0x5ac80f;_0x5b0afb['errors']=[],_0x65f4e9[_0x26d450('0x26b4')][_0x26d450('0x264e')]({'id':_0x5b0afb[_0x26d450('0x2334')]['id']},_0x5b0afb[_0x26d450('0x2334')])['$promise']['then'](function(_0x2d50ea){var _0x3c1abb=_0x26d450,_0x17af02=_0x51538b()['find'](_0x5b0afb[_0x3c1abb('0x1126')],{'id':_0x2d50ea['id']});_0x17af02&&_0x51538b()[_0x3c1abb('0x283c')](_0x17af02,_0x51538b()[_0x3c1abb('0x104e')](_0x2d50ea[_0x3c1abb('0x256a')](),_0x51538b()[_0x3c1abb('0x9f2')](_0x17af02))),_0x1c458f[_0x3c1abb('0xe10')]({'title':_0x3c1abb('0x2795'),'msg':_0x5b0afb['list'][_0x3c1abb('0x25d6')]?_0x5b0afb[_0x3c1abb('0x2334')][_0x3c1abb('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x58ef2d(_0x2d50ea);})[_0x26d450('0x253d')](function(_0x7f5a7f){var _0x18734e=_0x26d450;if(_0x7f5a7f[_0x18734e('0x10fd')]&&_0x7f5a7f[_0x18734e('0x10fd')][_0x18734e('0x4c6')]&&_0x7f5a7f[_0x18734e('0x10fd')][_0x18734e('0x4c6')][_0x18734e('0x2587')]){_0x5b0afb['errors']=_0x7f5a7f['data'][_0x18734e('0x4c6')]||[{'message':_0x7f5a7f['toString'](),'type':_0x18734e('0x25f4')}];for(var _0x3e5ebb=0x0;_0x3e5ebb<_0x7f5a7f[_0x18734e('0x10fd')][_0x18734e('0x4c6')][_0x18734e('0x2587')];_0x3e5ebb++){_0x1c458f[_0x18734e('0x187f')]({'title':_0x7f5a7f[_0x18734e('0x10fd')][_0x18734e('0x4c6')][_0x3e5ebb][_0x18734e('0x6c8')],'msg':_0x7f5a7f[_0x18734e('0x10fd')]['errors'][_0x3e5ebb]['message']});}}else _0x1c458f['error']({'title':_0x7f5a7f[_0x18734e('0x2fa')]?'API:'+_0x7f5a7f[_0x18734e('0x2fa')]+_0x18734e('0x169e')+_0x7f5a7f[_0x18734e('0x24df')]:_0x18734e('0x25f4'),'msg':_0x7f5a7f[_0x18734e('0x10fd')]?JSON[_0x18734e('0xa48')](_0x7f5a7f[_0x18734e('0x10fd')][_0x18734e('0x1402')]):_0x7f5a7f['toString']()});});}function _0x882f5c(_0x56a293){var _0x4b170b=_0x5ac80f;_0x5b0afb[_0x4b170b('0x4c6')]=[];var _0x5d7ff0=_0x326319[_0x4b170b('0x281e')]()['title'](_0x4b170b('0x12a3'))[_0x4b170b('0x15af')](_0x4b170b('0x54f'))[_0x4b170b('0x5b5')]('Delete\x20List')['ok'](_0x4b170b('0x1e76'))['cancel'](_0x4b170b('0x9c6'))['targetEvent'](_0x56a293);_0x326319[_0x4b170b('0x1e6d')](_0x5d7ff0)[_0x4b170b('0xaa5')](function(){var _0x1bdbaf=_0x4b170b;_0x65f4e9[_0x1bdbaf('0x26b4')][_0x1bdbaf('0x926')]({'id':_0x5b0afb[_0x1bdbaf('0x2334')]['id']})['$promise'][_0x1bdbaf('0xaa5')](function(){var _0x4f7b30=_0x1bdbaf;_0x51538b()[_0x4f7b30('0xf6d')](_0x5b0afb[_0x4f7b30('0x1126')],{'id':_0x5b0afb[_0x4f7b30('0x2334')]['id']}),_0x1c458f[_0x4f7b30('0xe10')]({'title':_0x4f7b30('0x1d2f'),'msg':(_0x5b0afb[_0x4f7b30('0x2334')]['name']||_0x4f7b30('0x2334'))+_0x4f7b30('0xcd9')}),_0x58ef2d(_0x5b0afb[_0x4f7b30('0x2334')]);})[_0x1bdbaf('0x253d')](function(_0x3edb24){var _0x18a02d=_0x1bdbaf;if(_0x3edb24['data']&&_0x3edb24['data'][_0x18a02d('0x4c6')]&&_0x3edb24['data'][_0x18a02d('0x4c6')][_0x18a02d('0x2587')]){_0x5b0afb[_0x18a02d('0x4c6')]=_0x3edb24[_0x18a02d('0x10fd')]['errors']||[{'message':_0x3edb24['toString'](),'type':'api.cmList.delete'}];for(var _0x38db70=0x0;_0x38db70<_0x3edb24[_0x18a02d('0x10fd')][_0x18a02d('0x4c6')][_0x18a02d('0x2587')];_0x38db70++){_0x1c458f[_0x18a02d('0x187f')]({'title':_0x3edb24['data'][_0x18a02d('0x4c6')][_0x38db70]['type'],'msg':_0x3edb24['data'][_0x18a02d('0x4c6')][_0x38db70][_0x18a02d('0x1402')]});}}else _0x1c458f[_0x18a02d('0x187f')]({'title':_0x3edb24[_0x18a02d('0x2fa')]?_0x18a02d('0x16c2')+_0x3edb24[_0x18a02d('0x2fa')]+_0x18a02d('0x169e')+_0x3edb24[_0x18a02d('0x24df')]:'api.cmList.delete','msg':_0x3edb24['data']?JSON[_0x18a02d('0xa48')](_0x3edb24[_0x18a02d('0x10fd')][_0x18a02d('0x1402')]):_0x3edb24[_0x18a02d('0x1402')]||_0x3edb24[_0x18a02d('0x684')]()});});},function(){});}function _0x271198(_0x171142){return _0x171142===null?undefined:new Date(_0x171142);}function _0x58ef2d(_0x1dfbcc){var _0x51187f=_0x5ac80f;_0x326319[_0x51187f('0x1120')](_0x1dfbcc);}}const _0xe9a0a1=_0x529aa4;_0x174ef4[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x157'),_0x1a8446('0x2334'),_0x1a8446('0x1126'),_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x174ef4(_0x27b91e,_0x5a1a4d,_0x2cbf2c,_0x14f712,_0x2c513c,_0x375703,_0x547e7a,_0x46bdd1,_0x2b85d8,_0x161080){var _0x1a2a67=_0x1a8446,_0x3d9f51=this;_0x3d9f51['currentUser']=_0x2b85d8['getCurrentUser'](),_0x3d9f51['list']=_0x2c513c,_0x3d9f51[_0x1a2a67('0xada')]=_0x161080,_0x3d9f51['realtime']=_0x547e7a,_0x3d9f51['items']=[],_0x3d9f51['allowedItems']=[],_0x3d9f51['selectedItems']=[],_0x3d9f51['startingAllowedItems']=[],_0x3d9f51[_0x1a2a67('0x214a')]=[],_0x3d9f51[_0x1a2a67('0xc54')]=![],_0x3d9f51[_0x1a2a67('0x2318')]=_0x280c1e,_0x3d9f51[_0x1a2a67('0x17bb')]=_0x4f2121,_0x3d9f51[_0x1a2a67('0x2023')]=_0x3514c2,_0x3d9f51[_0x1a2a67('0x1c23')]={'readOnly':!_0x3d9f51[_0x1a2a67('0xada')][_0x1a2a67('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1a2a67('0x25d6'),'line1':_0x1a2a67('0x18e5'),'line2':[_0x1a2a67('0x25d6'),_0x1a2a67('0x1b0d')],'line3':'','labelAll':_0x46bdd1[_0x1a2a67('0x213f')]('CONTACTMANAGER.ALL_AGENTS'),'labelSelected':_0x46bdd1['instant']('CONTACTMANAGER.SELECTED_AGENTS'),'transferCallback':function _0x5664a6(){var _0x1c32d1=_0x1a2a67,_0x5e3691=_0x51538b()['xorBy'](_0x3d9f51['startingSelectedItems'],_0x3d9f51[_0x1c32d1('0xbf7')],'id');_0x3d9f51['pendingChanges']=_0x51538b()[_0x1c32d1('0x116b')](_0x5e3691)?![]:!![];}};function _0x280c1e(){var _0xc2f24=_0x1a2a67;return _0x2b85d8[_0xc2f24('0x26e8')](_0xc2f24('0x178b'))?_0xa21f36()['catch'](function(_0x2e081d){var _0x39aedd=_0xc2f24;_0x2cbf2c[_0x39aedd('0x187f')]({'title':_0x2e081d[_0x39aedd('0x2fa')]?'API:'+_0x2e081d[_0x39aedd('0x2fa')]+_0x39aedd('0x169e')+_0x2e081d[_0x39aedd('0x24df')]:_0x39aedd('0x14c6'),'msg':_0x2e081d['status']?JSON[_0x39aedd('0xa48')](_0x2e081d['data']):_0x2e081d[_0x39aedd('0x684')]()});}):_0x3e5e4c()[_0xc2f24('0xaa5')](function(_0x2af547){var _0x18f6b7=_0xc2f24;return _0x3d9f51[_0x18f6b7('0x224d')]=_0x2af547,_0xa21f36();})[_0xc2f24('0x253d')](function(_0xae462d){var _0x10b6d0=_0xc2f24;_0x2cbf2c[_0x10b6d0('0x187f')]({'title':_0xae462d['status']?_0x10b6d0('0x16c2')+_0xae462d[_0x10b6d0('0x2fa')]+_0x10b6d0('0x169e')+_0xae462d[_0x10b6d0('0x24df')]:_0x10b6d0('0x14c6'),'msg':_0xae462d[_0x10b6d0('0x2fa')]?JSON['stringify'](_0xae462d[_0x10b6d0('0x10fd')]):_0xae462d['toString']()});});}function _0x3e5e4c(){return _0x5a1a4d(function(_0x29bbce,_0x591c56){var _0x5f200c=a0_0x1149;_0x14f712['userProfileSection'][_0x5f200c('0x2122')]({'userProfileId':_0x3d9f51['currentUser'][_0x5f200c('0x2168')],'name':'Agents'})[_0x5f200c('0x1dc2')]['then'](function(_0x48b3e5){var _0x3ab4ce=_0x5f200c,_0x1e8aa4=_0x48b3e5&&_0x48b3e5[_0x3ab4ce('0x580')]?_0x48b3e5['rows'][0x0]:null;_0x29bbce(_0x1e8aa4);})[_0x5f200c('0x253d')](function(_0x3e3588){_0x591c56(_0x3e3588);});});}function _0xa21f36(){return _0x5a1a4d(function(_0x5a9ca8,_0x5ef5b3){var _0x563768=a0_0x1149;return _0x5a7c40()['then'](function(_0x260346){var _0x317584=a0_0x1149;return _0x3d9f51[_0x317584('0x1a30')]=_0x260346['rows']?_0x260346[_0x317584('0x580')]:[],_0x2b85d8[_0x317584('0x26e8')](_0x317584('0x178b'))?_0x260346:_0x3d9f51['section']?_0x3d9f51[_0x317584('0x224d')]['autoAssociation']?_0x260346:_0x51110c():null;})[_0x563768('0xaa5')](function(_0x4b8b7c){var _0xf898c3=_0x563768,_0x52e91c=_0x4b8b7c&&_0x4b8b7c[_0xf898c3('0x580')]?_0x4b8b7c['rows']:[];return _0x3d9f51['allowedItems']=_0x51538b()[_0xf898c3('0x1246')](_0x52e91c,function(_0x34d494){var _0x3c8bf1=_0xf898c3;return _0x51538b()[_0x3c8bf1('0xe9e')](_0x3d9f51[_0x3c8bf1('0x1a30')],{'id':_0x2b85d8[_0x3c8bf1('0x26e8')](_0x3c8bf1('0x178b'))||_0x3d9f51[_0x3c8bf1('0x224d')][_0x3c8bf1('0x26cc')]?_0x34d494['id']:_0x34d494[_0x3c8bf1('0xbcd')]});}),_0x3d9f51[_0xf898c3('0x215b')]=angular[_0xf898c3('0x20a')](_0x3d9f51['allowedItems']),_0x3d9f51[_0xf898c3('0x1a30')][_0xf898c3('0x15b5')](function(_0x34d35b){var _0x4d4935=_0xf898c3,_0x1e8756=_0x51538b()[_0x4d4935('0xe9e')](_0x3d9f51['allowedItems'],{'id':_0x34d35b['id']});_0x2b85d8[_0x4d4935('0x26e8')]('admin')?_0x34d35b[_0x4d4935('0x145d')]=!![]:_0x34d35b[_0x4d4935('0x145d')]=typeof _0x1e8756!=='undefined'?!![]:![];}),_0x33deec();})[_0x563768('0xaa5')](function(_0x480c02){var _0x57f29f=_0x563768,_0x14f448=_0x480c02&&_0x480c02['rows']?_0x480c02['rows']:[];_0x3d9f51[_0x57f29f('0xbf7')]=_0x51538b()[_0x57f29f('0x1246')](_0x14f448,function(_0x5f5557){var _0x230ae1=_0x57f29f,_0x145c84=_0x51538b()[_0x230ae1('0xe9e')](_0x3d9f51['items'],{'id':_0x5f5557['id']});return _0x145c84[_0x230ae1('0x2234')]=_0x5f5557['UserList']?_0x230ae1('0x17b0')+_0x5f5557[_0x230ae1('0x903')]['penalty']:'',_0x145c84[_0x230ae1('0x1b0d')]=typeof _0x5f5557['internal']!==_0x230ae1('0x1574')?'<'+_0x5f5557[_0x230ae1('0x1b0d')]+'>':'',_0x145c84;}),_0x3d9f51['startingSelectedItems']=angular[_0x57f29f('0x20a')](_0x3d9f51[_0x57f29f('0xbf7')]),_0x3d9f51[_0x57f29f('0x1c23')]['selectedItems']=_0x3d9f51['selectedItems'],_0x3d9f51[_0x57f29f('0x1c23')][_0x57f29f('0x1a30')]=_0x51538b()['differenceBy'](_0x3d9f51[_0x57f29f('0x11b9')],_0x3d9f51[_0x57f29f('0x1c23')][_0x57f29f('0xbf7')],'id'),_0x5a9ca8();})[_0x563768('0x253d')](function(_0x2e1984){_0x5ef5b3(_0x2e1984);});});}function _0x51110c(){return _0x5a1a4d(function(_0x29e5cd,_0x4f97a2){var _0x162a2a=a0_0x1149;return _0x14f712[_0x162a2a('0x249a')][_0x162a2a('0x2122')]({'sectionId':_0x3d9f51[_0x162a2a('0x224d')]['id'],'nolimit':!![]})['$promise'][_0x162a2a('0xaa5')](function(_0x4adb2c){_0x29e5cd(_0x4adb2c);})[_0x162a2a('0x253d')](function(_0x136968){_0x4f97a2(_0x136968);});});}function _0x33deec(){return _0x5a1a4d(function(_0x5ba79e,_0x2affb3){var _0x333741=a0_0x1149;return _0x14f712['cmList']['getAgents']({'id':_0x3d9f51[_0x333741('0x2334')]['id'],'fields':_0x333741('0x283f'),'nolimit':!![],'role':_0x333741('0xeff')})[_0x333741('0x1dc2')][_0x333741('0xaa5')](function(_0x2d5436){_0x5ba79e(_0x2d5436);})[_0x333741('0x253d')](function(_0x4278ab){_0x2affb3(_0x4278ab);});});}function _0x5a7c40(){return _0x5a1a4d(function(_0x3fa454,_0x31a7a7){var _0x3b9793=a0_0x1149;return _0x14f712['user'][_0x3b9793('0x2122')]({'fields':_0x3b9793('0x283f'),'nolimit':!![],'role':_0x3b9793('0xeff')})[_0x3b9793('0x1dc2')][_0x3b9793('0xaa5')](function(_0x27617c){_0x3fa454(_0x27617c);})[_0x3b9793('0x253d')](function(_0x1e814f){_0x31a7a7(_0x1e814f);});});}function _0x17f616(_0x22108b){return _0x5a1a4d(function(_0x207300,_0x4b6e8c){var _0x393aca=a0_0x1149;_0x51538b()['isEmpty'](_0x22108b)?_0x207300():_0x14f712['cmList'][_0x393aca('0x26b1')]({'id':_0x3d9f51[_0x393aca('0x2334')]['id'],'ids':_0x51538b()[_0x393aca('0x1246')](_0x22108b,'id')})['$promise'][_0x393aca('0xaa5')](function(){_0x207300();})[_0x393aca('0x253d')](function(_0x4e799d){_0x4b6e8c(_0x4e799d);});});}function _0x112984(_0xf56cab){return _0x5a1a4d(function(_0x36b910,_0x58de6c){var _0x2df2ec=a0_0x1149;_0x51538b()['isEmpty'](_0xf56cab)?_0x36b910():_0x14f712[_0x2df2ec('0x26b4')][_0x2df2ec('0x258e')]({'id':_0x3d9f51[_0x2df2ec('0x2334')]['id'],'ids':_0x51538b()[_0x2df2ec('0x1246')](_0xf56cab,'id')})[_0x2df2ec('0x1dc2')][_0x2df2ec('0xaa5')](function(){_0x36b910();})[_0x2df2ec('0x253d')](function(_0x4f912d){_0x58de6c(_0x4f912d);});});}function _0x4f2121(){var _0x4ffba5=_0x1a2a67,_0x5d79c9=_0x51538b()[_0x4ffba5('0x1ebb')](_0x3d9f51[_0x4ffba5('0x214a')],_0x3d9f51[_0x4ffba5('0xbf7')],'id'),_0x5ae57e=_0x51538b()[_0x4ffba5('0x1ebb')](_0x3d9f51['selectedItems'],_0x3d9f51[_0x4ffba5('0x214a')],'id');return _0x112984(_0x5d79c9)[_0x4ffba5('0xaa5')](function(){return _0x17f616(_0x5ae57e);})[_0x4ffba5('0xaa5')](function(){var _0x5ec27e=_0x4ffba5;_0x3d9f51['pendingChanges']=![],_0x3d9f51[_0x5ec27e('0x215b')]=angular[_0x5ec27e('0x20a')](_0x3d9f51[_0x5ec27e('0x11b9')]),_0x3d9f51[_0x5ec27e('0x214a')]=angular['copy'](_0x3d9f51[_0x5ec27e('0xbf7')]),_0x2cbf2c[_0x5ec27e('0xe10')]({'title':'SUCCESS','msg':_0x5ec27e('0xc60')});})[_0x4ffba5('0x253d')](function(_0x402516){var _0x3bb6be=_0x4ffba5;_0x2cbf2c[_0x3bb6be('0x187f')]({'title':_0x402516['status']?'API:'+_0x402516[_0x3bb6be('0x2fa')]+_0x3bb6be('0x169e')+_0x402516[_0x3bb6be('0x24df')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x402516['status']?JSON['stringify'](_0x402516[_0x3bb6be('0x10fd')]):_0x402516[_0x3bb6be('0x684')]()});});}function _0x3514c2(){var _0x393a04=_0x1a2a67;_0x27b91e[_0x393a04('0x1120')]();}}const _0x52b9d5=_0x174ef4,_0x400606=_0x4fb511['p']+_0x1a8446('0x851');_0x496600['$inject']=[_0x1a8446('0x95f'),'$scope',_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),'$mdDialog','$document','toasty',_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x496600(_0x3b6818,_0x3805ea,_0x5e82e5,_0x4b7aae,_0x4ace7e,_0x3130f7,_0x5c3a29,_0xf87170,_0x33222b,_0x45b56a,_0x2d81c2){var _0x205b9a=_0x1a8446,_0x3315a0=this;_0x3315a0['currentUser']=_0x2d81c2['getCurrentUser'](),_0x3315a0[_0x205b9a('0x2334')]={},_0x3315a0[_0x205b9a('0x24e4')]={'count':0x0,'rows':[]},_0x3315a0[_0x205b9a('0x10de')]=[],_0x3315a0[_0x205b9a('0xada')],_0x3315a0[_0x205b9a('0x582')]={'fields':_0x205b9a('0x27d6'),'limit':0xa,'page':0x1},_0x3315a0['arraytype']=_0x51538b()['keyBy']([{'option':_0x205b9a('0x1f3a'),'value':_0x205b9a('0x192b')},{'option':_0x205b9a('0x1e38'),'value':_0x205b9a('0x2490')},{'option':_0x205b9a('0x19c7'),'value':_0x205b9a('0x5a9')},{'option':_0x205b9a('0x1ea8'),'value':'\x27switch\x27'},{'option':_0x205b9a('0x809'),'value':_0x205b9a('0xaf4')}],function(_0xa591dc){var _0x4c418f=_0x205b9a;return _0x51538b()[_0x4c418f('0x170d')](_0xa591dc[_0x4c418f('0x12f4')],new RegExp('\x27','g'),'');}),_0x3315a0[_0x205b9a('0x1287')]=_0x51538b()[_0x205b9a('0x184a')]([{'option':_0x205b9a('0x11b3'),'value':_0x205b9a('0x1b68')}],function(_0x398e58){var _0xd1bdad=_0x205b9a;return _0x51538b()[_0xd1bdad('0x170d')](_0x398e58['value'],new RegExp('\x27','g'),'');}),_0x3315a0[_0x205b9a('0x2e')]=_0x501169,_0x3315a0[_0x205b9a('0x1416')]=_0x4814ff,_0x3315a0['success']=_0x170883,_0x3315a0[_0x205b9a('0x24a7')]=_0x471650,_0x3315a0[_0x205b9a('0x518')]=_0x364efc,_0x3315a0['exportSelectedListCustomFields']=_0x4f165c,_0x3315a0[_0x205b9a('0xba0')]=_0x914276,_0x3315a0['deleteSelectedListCustomFields']=_0x2063dd;function _0x501169(_0x40acd7,_0x2c2cb5){var _0x57e61a=_0x205b9a;_0x3315a0['list']=_0x40acd7,_0x3315a0['crudPermissions']=typeof _0x2c2cb5!==_0x57e61a('0x1574')?_0x2c2cb5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3315a0[_0x57e61a('0x582')][_0x57e61a('0xee0')]=_0x3315a0[_0x57e61a('0x2334')]['id'],_0x3315a0[_0x57e61a('0x582')]['id']=_0x3315a0[_0x57e61a('0x2334')]['id'],_0x471650();}function _0x4814ff(_0x4888e4,_0xf69b07){var _0x583bed=_0x205b9a,_0x443442=_0x5c3a29['confirm']()[_0x583bed('0x110a')](_0x583bed('0x1f65'))[_0x583bed('0x102e')](_0x583bed('0x389')+(_0x4888e4[_0x583bed('0x25d6')]||_0x4888e4['id']&&_0x51538b()[_0x583bed('0x1791')]('customField\x20#')+_0x4888e4['id']||_0x583bed('0x6fc'))+_0x583bed('0x697')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x583bed('0xad2'))['targetEvent'](_0xf69b07)['ok']('OK')[_0x583bed('0x2030')]('CANCEL');_0x5c3a29[_0x583bed('0x1e6d')](_0x443442)['then'](function(){_0x914276(_0x4888e4);},function(){var _0x5083a5=_0x583bed;console[_0x5083a5('0x18d5')]('CANCEL');});}function _0x170883(_0x17f875){var _0x43d5f9=_0x205b9a;_0x3315a0[_0x43d5f9('0x24e4')]=_0x17f875||{'count':0x0,'rows':[]};}function _0x471650(){var _0x43bfbc=_0x205b9a;_0x3315a0['query'][_0x43bfbc('0x8b1')]=(_0x3315a0[_0x43bfbc('0x582')][_0x43bfbc('0x41')]-0x1)*_0x3315a0[_0x43bfbc('0x582')][_0x43bfbc('0xf4d')],_0x3315a0[_0x43bfbc('0x159a')]=_0x45b56a['cmList'][_0x43bfbc('0xe57')](_0x3315a0[_0x43bfbc('0x582')],_0x170883)[_0x43bfbc('0x1dc2')];}function _0x364efc(_0x3f62fb,_0x2c47fc){var _0x2d3c04=_0x205b9a;_0x5c3a29[_0x2d3c04('0x1e6d')]({'controller':_0x2d3c04('0x15b8'),'controllerAs':'vm','templateUrl':_0x400606,'parent':angular['element'](_0xf87170[_0x2d3c04('0x54c')]),'targetEvent':_0x3f62fb,'clickOutsideToClose':!![],'locals':{'list':_0x3315a0['list'],'customField':_0x2c47fc,'customFields':_0x3315a0[_0x2d3c04('0x24e4')][_0x2d3c04('0x580')],'license':null,'setting':null,'crudPermissions':_0x3315a0[_0x2d3c04('0xada')]}});}function _0x914276(_0x16aeaa){var _0x7f90e0=_0x205b9a;_0x45b56a['cmCustomField']['delete']({'id':_0x16aeaa['id']})['$promise'][_0x7f90e0('0xaa5')](function(){var _0x28a793=_0x7f90e0;_0x51538b()[_0x28a793('0xf6d')](_0x3315a0[_0x28a793('0x24e4')][_0x28a793('0x580')],{'id':_0x16aeaa['id']}),_0x3315a0[_0x28a793('0x24e4')][_0x28a793('0xd15')]-=0x1,!_0x3315a0[_0x28a793('0x24e4')][_0x28a793('0x580')]['length']&&_0x471650(),_0x33222b['success']({'title':_0x28a793('0xa05'),'msg':_0x16aeaa['name']?_0x16aeaa[_0x28a793('0x25d6')]+_0x28a793('0xcd9'):''});})[_0x7f90e0('0x253d')](function(_0x59692d){var _0x17a975=_0x7f90e0;if(_0x59692d[_0x17a975('0x10fd')]&&_0x59692d[_0x17a975('0x10fd')]['errors']&&_0x59692d[_0x17a975('0x10fd')]['errors'][_0x17a975('0x2587')]){_0x3315a0[_0x17a975('0x4c6')]=_0x59692d[_0x17a975('0x10fd')][_0x17a975('0x4c6')]||[{'message':_0x59692d['toString'](),'type':'SYSTEM:GETcmList'}];for(var _0x31c92e=0x0;_0x31c92e<_0x59692d[_0x17a975('0x10fd')][_0x17a975('0x4c6')][_0x17a975('0x2587')];_0x31c92e++){_0x33222b['error']({'title':_0x59692d[_0x17a975('0x10fd')]['errors'][_0x31c92e][_0x17a975('0x6c8')],'msg':_0x59692d[_0x17a975('0x10fd')]['errors'][_0x31c92e][_0x17a975('0x1402')]});}}else _0x33222b[_0x17a975('0x187f')]({'title':_0x59692d[_0x17a975('0x2fa')]?_0x17a975('0x16c2')+_0x59692d[_0x17a975('0x2fa')]+_0x17a975('0x169e')+_0x59692d[_0x17a975('0x24df')]:'SYSTEM:GETcmList','msg':_0x59692d['data']?JSON[_0x17a975('0xa48')](_0x59692d[_0x17a975('0x10fd')][_0x17a975('0x1402')]):_0x59692d[_0x17a975('0x1402')]||_0x59692d[_0x17a975('0x684')]()});});}function _0x4f165c(){var _0xb25b50=_0x205b9a,_0xed65aa=angular[_0xb25b50('0x20a')](_0x3315a0[_0xb25b50('0x10de')]);return _0x3315a0['selectedListCustomFields']=[],_0xed65aa;}function _0x2063dd(_0x11a369){var _0x1a9a6f=_0x205b9a,_0x3cd934=_0x5c3a29[_0x1a9a6f('0x281e')]()['title'](_0x1a9a6f('0x1c50'))[_0x1a9a6f('0x102e')](''+_0x3315a0[_0x1a9a6f('0x10de')][_0x1a9a6f('0x2587')]+_0x1a9a6f('0x1443')+'\x20will\x20be\x20deleted.')[_0x1a9a6f('0x5b5')](_0x1a9a6f('0x12e8'))['targetEvent'](_0x11a369)['ok']('OK')['cancel']('CANCEL');_0x5c3a29[_0x1a9a6f('0x1e6d')](_0x3cd934)[_0x1a9a6f('0xaa5')](function(){var _0x39897b=_0x1a9a6f;_0x3315a0[_0x39897b('0x10de')][_0x39897b('0x15b5')](function(_0x4fd228){_0x914276(_0x4fd228);}),_0x3315a0[_0x39897b('0x10de')]=[];});}var _0x2b9076=!![],_0x5a2519=0x1;_0x3805ea[_0x205b9a('0x1ccf')](_0x205b9a('0x74c'),function(_0x2d8778,_0x167af0){var _0x4f829c=_0x205b9a;_0x2b9076?_0x3130f7(function(){_0x2b9076=![];}):(!_0x167af0&&(_0x5a2519=_0x3315a0[_0x4f829c('0x582')][_0x4f829c('0x41')]),_0x2d8778!==_0x167af0&&(_0x3315a0[_0x4f829c('0x582')][_0x4f829c('0x41')]=0x1),!_0x2d8778&&(_0x3315a0[_0x4f829c('0x582')][_0x4f829c('0x41')]=_0x5a2519),_0x471650());});}const _0x591757=_0x496600;_0x133981['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'customFields','customField',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x133981(_0x173317,_0x4cb8ab,_0x5440ef,_0x39c392,_0x4b512c,_0x3ee830,_0xe7debe,_0x355cc6,_0x10858c,_0xba9c61,_0x3a51a5,_0x18bc1c,_0x121679,_0x2682b7){var _0x543d7d=_0x1a8446,_0x80bca6=this;_0x80bca6[_0x543d7d('0x7fc')]=_0x3a51a5[_0x543d7d('0xacc')](),_0x80bca6['errors']=[],_0x80bca6['setting']=_0x121679,_0x80bca6[_0x543d7d('0x1202')]=_0x18bc1c,_0x80bca6[_0x543d7d('0xada')]=_0x2682b7,_0x80bca6[_0x543d7d('0x9f0')]={},_0x80bca6[_0x543d7d('0x1d53')]=_0x80bca6['setting']&&_0x80bca6['setting'][_0x543d7d('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x80bca6[_0x543d7d('0x110a')]=_0x543d7d('0xa0f'),_0x80bca6[_0x543d7d('0xbcc')]={'animation':0x320,'sort':!![],'onSort':function _0x47b33e(){var _0x390efc=_0x543d7d;_0x173317[_0x390efc('0x21d6')][_0x390efc('0x10f2')]=![];}},_0x80bca6[_0x543d7d('0x6fc')]=_0x10858c,_0x80bca6['customFields']=_0x355cc6,_0x80bca6[_0x543d7d('0x1bd6')]=![];!_0x80bca6['customField']&&(_0x80bca6[_0x543d7d('0x6fc')]={'type':'text','actionType':_0x543d7d('0x1b9')},_0x80bca6[_0x543d7d('0x110a')]='CONTACTMANAGER.NEW_CUSTOMFIELD',_0x80bca6[_0x543d7d('0x1bd6')]=!![]);_0x4cb8ab['params']['id']&&(_0x80bca6[_0x543d7d('0x6fc')]['ListId']=_0x4cb8ab[_0x543d7d('0x25cf')]['id']);_0x173317[_0x543d7d('0x1ccf')](_0x543d7d('0x1129'),function(_0x589dcf,_0x35ee48){var _0xd9b9e6=_0x543d7d;if(_0x589dcf!==_0x35ee48)switch(_0x589dcf){case _0xd9b9e6('0xb37'):_0x80bca6[_0xd9b9e6('0x6fc')]['values']='';break;case'select':_0x80bca6[_0xd9b9e6('0x6fc')]['values']=[];break;default:}}),_0x80bca6[_0x543d7d('0xfe5')]=_0x120822,_0x80bca6['saveCustomField']=_0x66dc9,_0x80bca6[_0x543d7d('0x25b7')]=_0x9624e,_0x80bca6['getDateFromString']=_0x221f9e,_0x80bca6['addItem']=_0x16be8b,_0x80bca6['removeItem']=_0x1a4bd8,_0x80bca6[_0x543d7d('0x26eb')]=_0xecc113,_0x80bca6[_0x543d7d('0x2023')]=_0x372454;function _0x16be8b(_0x5695c5){var _0x3a769e=_0x543d7d;_0x5695c5[_0x3a769e('0x1599')]({'value':'New\x20Item'}),_0x173317['customFieldForm'][_0x3a769e('0x10f2')]=![];}function _0x1a4bd8(_0x2ba25e,_0x5131e7){var _0x3c01d5=_0x543d7d;_0x2ba25e['splice'](_0x5131e7,0x1),_0x173317[_0x3c01d5('0x21d6')]['$pristine']=![];}function _0xecc113(_0x46677d){var _0x369e5e=_0x543d7d,_0x3c8f75=_0x46677d[_0x369e5e('0x2587')];for(var _0x1f1cd3=0x0;_0x1f1cd3<_0x3c8f75;_0x1f1cd3++){_0x46677d[_0x369e5e('0x1280')](0x0,0x1);}_0x173317[_0x369e5e('0x21d6')][_0x369e5e('0x10f2')]=![];}function _0x120822(){var _0x4f3db5=_0x543d7d;_0x80bca6[_0x4f3db5('0x4c6')]=[],_0xba9c61[_0x4f3db5('0x26b4')][_0x4f3db5('0x1506')]({'id':_0x4cb8ab[_0x4f3db5('0x25cf')]['id']},_0x80bca6[_0x4f3db5('0x6fc')])['$promise'][_0x4f3db5('0xaa5')](function(_0x2beed9){var _0x20dadd=_0x4f3db5;_0x80bca6[_0x20dadd('0x2')][_0x20dadd('0x6ee')](_0x2beed9['toJSON']()),_0xe7debe[_0x20dadd('0xe10')]({'title':_0x20dadd('0xc4'),'msg':_0x80bca6[_0x20dadd('0x6fc')][_0x20dadd('0x25d6')]?_0x80bca6['customField'][_0x20dadd('0x25d6')]+_0x20dadd('0xdca'):''}),_0x372454(_0x2beed9);})[_0x4f3db5('0x253d')](function(_0x923cc7){var _0xa0af2f=_0x4f3db5;if(_0x923cc7['data']&&_0x923cc7[_0xa0af2f('0x10fd')][_0xa0af2f('0x4c6')]&&_0x923cc7['data']['errors'][_0xa0af2f('0x2587')]){_0x80bca6[_0xa0af2f('0x4c6')]=_0x923cc7[_0xa0af2f('0x10fd')][_0xa0af2f('0x4c6')]||[{'message':_0x923cc7[_0xa0af2f('0x684')](),'type':_0xa0af2f('0x1263')}];for(var _0xa24149=0x0;_0xa24149<_0x923cc7['data'][_0xa0af2f('0x4c6')][_0xa0af2f('0x2587')];_0xa24149+=0x1){_0xe7debe[_0xa0af2f('0x187f')]({'title':_0x923cc7[_0xa0af2f('0x10fd')]['errors'][_0xa24149]['type'],'msg':_0x923cc7['data'][_0xa0af2f('0x4c6')][_0xa24149][_0xa0af2f('0x1402')]});}}else _0xe7debe[_0xa0af2f('0x187f')]({'title':_0x923cc7['status']?_0xa0af2f('0x16c2')+_0x923cc7[_0xa0af2f('0x2fa')]+_0xa0af2f('0x169e')+_0x923cc7['statusText']:_0xa0af2f('0x1263'),'msg':_0x923cc7[_0xa0af2f('0x10fd')]?JSON[_0xa0af2f('0xa48')](_0x923cc7[_0xa0af2f('0x10fd')]['message']):_0x923cc7[_0xa0af2f('0x684')]()});});}function _0x66dc9(){var _0x56df6c=_0x543d7d;_0x80bca6[_0x56df6c('0x4c6')]=[],_0xba9c61[_0x56df6c('0x23e3')][_0x56df6c('0x264e')]({'id':_0x80bca6['customField']['id']},_0x80bca6[_0x56df6c('0x6fc')])[_0x56df6c('0x1dc2')][_0x56df6c('0xaa5')](function(_0x7506df){var _0x50c09e=_0x56df6c,_0x5d0956=_0x51538b()[_0x50c09e('0xe9e')](_0x80bca6[_0x50c09e('0x2')],{'id':_0x7506df['id']});_0x5d0956&&_0x51538b()['merge'](_0x5d0956,_0x51538b()[_0x50c09e('0x104e')](_0x7506df[_0x50c09e('0x256a')](),_0x51538b()[_0x50c09e('0x9f2')](_0x5d0956))),_0xe7debe[_0x50c09e('0xe10')]({'title':'CustomField\x20properly\x20saved!','msg':_0x80bca6[_0x50c09e('0x6fc')][_0x50c09e('0x25d6')]?_0x80bca6[_0x50c09e('0x6fc')][_0x50c09e('0x25d6')]+_0x50c09e('0x20bf'):''}),_0x372454(_0x7506df);})[_0x56df6c('0x253d')](function(_0x5c139d){var _0x2fb32e=_0x56df6c;if(_0x5c139d[_0x2fb32e('0x10fd')]&&_0x5c139d[_0x2fb32e('0x10fd')][_0x2fb32e('0x4c6')]&&_0x5c139d[_0x2fb32e('0x10fd')][_0x2fb32e('0x4c6')]['length']){_0x80bca6['errors']=_0x5c139d[_0x2fb32e('0x10fd')]['errors']||[{'message':_0x5c139d[_0x2fb32e('0x684')](),'type':'api.cmCustomField.update'}];for(var _0xc28652=0x0;_0xc28652<_0x5c139d[_0x2fb32e('0x10fd')]['errors']['length'];_0xc28652++){_0xe7debe[_0x2fb32e('0x187f')]({'title':_0x5c139d[_0x2fb32e('0x10fd')]['errors'][_0xc28652][_0x2fb32e('0x6c8')],'msg':_0x5c139d[_0x2fb32e('0x10fd')][_0x2fb32e('0x4c6')][_0xc28652][_0x2fb32e('0x1402')]});}}else _0xe7debe[_0x2fb32e('0x187f')]({'title':_0x5c139d['status']?_0x2fb32e('0x16c2')+_0x5c139d['status']+_0x2fb32e('0x169e')+_0x5c139d['statusText']:'api.cmCustomField.update','msg':_0x5c139d[_0x2fb32e('0x10fd')]?JSON[_0x2fb32e('0xa48')](_0x5c139d['data'][_0x2fb32e('0x1402')]):_0x5c139d[_0x2fb32e('0x684')]()});});}function _0x9624e(_0x385927){var _0x274498=_0x543d7d;_0x80bca6[_0x274498('0x4c6')]=[];var _0x5edb0f=_0x39c392[_0x274498('0x281e')]()[_0x274498('0x110a')]('Are\x20you\x20sure?')['content']('The\x20customField\x20will\x20be\x20deleted.')[_0x274498('0x5b5')](_0x274498('0x226d'))['ok'](_0x274498('0x1e76'))[_0x274498('0x2030')](_0x274498('0x9c6'))['targetEvent'](_0x385927);_0x39c392['show'](_0x5edb0f)['then'](function(){var _0x5bdf04=_0x274498;_0xba9c61[_0x5bdf04('0x23e3')][_0x5bdf04('0x926')]({'id':_0x80bca6['customField']['id']})[_0x5bdf04('0x1dc2')][_0x5bdf04('0xaa5')](function(){var _0x4fdb19=_0x5bdf04;_0x51538b()[_0x4fdb19('0xf6d')](_0x80bca6[_0x4fdb19('0x2')],{'id':_0x80bca6[_0x4fdb19('0x6fc')]['id']}),_0xe7debe[_0x4fdb19('0xe10')]({'title':_0x4fdb19('0x11e2'),'msg':(_0x80bca6['customField'][_0x4fdb19('0x25d6')]||_0x4fdb19('0x6fc'))+'\x20has\x20been\x20deleted!'}),_0x372454(_0x80bca6[_0x4fdb19('0x6fc')]);})['catch'](function(_0x538041){var _0x106bbb=_0x5bdf04;if(_0x538041[_0x106bbb('0x10fd')]&&_0x538041[_0x106bbb('0x10fd')][_0x106bbb('0x4c6')]&&_0x538041[_0x106bbb('0x10fd')][_0x106bbb('0x4c6')][_0x106bbb('0x2587')]){_0x80bca6[_0x106bbb('0x4c6')]=_0x538041[_0x106bbb('0x10fd')]['errors']||[{'message':_0x538041[_0x106bbb('0x684')](),'type':_0x106bbb('0x119f')}];for(var _0x4f7eb1=0x0;_0x4f7eb1<_0x538041[_0x106bbb('0x10fd')][_0x106bbb('0x4c6')][_0x106bbb('0x2587')];_0x4f7eb1++){_0xe7debe[_0x106bbb('0x187f')]({'title':_0x538041[_0x106bbb('0x10fd')][_0x106bbb('0x4c6')][_0x4f7eb1][_0x106bbb('0x6c8')],'msg':_0x538041[_0x106bbb('0x10fd')][_0x106bbb('0x4c6')][_0x4f7eb1]['message']});}}else _0xe7debe['error']({'title':_0x538041[_0x106bbb('0x2fa')]?'API:'+_0x538041[_0x106bbb('0x2fa')]+_0x106bbb('0x169e')+_0x538041['statusText']:_0x106bbb('0x119f'),'msg':_0x538041[_0x106bbb('0x10fd')]?JSON[_0x106bbb('0xa48')](_0x538041['data']['message']):_0x538041[_0x106bbb('0x1402')]||_0x538041[_0x106bbb('0x684')]()});});},function(){});}function _0x221f9e(_0x5cca3a){return _0x5cca3a===null?undefined:new Date(_0x5cca3a);}function _0x372454(_0x1120d9){var _0x5d1107=_0x543d7d;_0x39c392[_0x5d1107('0x1120')](_0x1120d9);}}const _0x1ece48=_0x133981,_0x1c6a56=_0x4fb511['p']+'src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0x3e62c4[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),'setting','api',_0x1a8446('0x2a4'),'Auth','list','userProfileSection'];function _0x3e62c4(_0x63ef7b,_0xe89a6d,_0x2dda94,_0x262915,_0x48d648,_0x9c72df,_0x1d5f86,_0x553be1,_0x277c41,_0x3ce4ee,_0x57ff19,_0x17e22a){var _0x1a8899=_0x1a8446,_0x25d171=this;_0x25d171[_0x1a8899('0x7fc')]=_0x3ce4ee[_0x1a8899('0xacc')](),_0x25d171[_0x1a8899('0x1202')]=_0x9c72df,_0x25d171[_0x1a8899('0x143f')]=_0x1d5f86,_0x25d171[_0x1a8899('0x1d53')]=_0x25d171['setting'][_0x1a8899('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x25d171[_0x1a8899('0x18cc')]=_0xe89a6d[_0x1a8899('0x1cc2')]()+_0x1a8899('0x356')+_0xe89a6d[_0x1a8899('0x160c')](),_0x25d171[_0x1a8899('0x2334')]=_0x57ff19||_0x63ef7b['params'][_0x1a8899('0x2334')]||{},_0x25d171[_0x1a8899('0x1a50')]=_0x17e22a&&_0x17e22a[_0x1a8899('0xd15')]==0x1?_0x17e22a[_0x1a8899('0x580')][0x0]:null,_0x25d171[_0x1a8899('0xada')]=_0x3ce4ee[_0x1a8899('0xffd')](_0x25d171['userProfileSection']?_0x25d171['userProfileSection'][_0x1a8899('0xada')]:null),_0x25d171['hasModulePermissions']={},_0x25d171[_0x1a8899('0xe5c')]=_0x63ef7b[_0x1a8899('0x25cf')]['tab']||0x0,_0x25d171[_0x1a8899('0x7ba')]=_0x4f4f13,_0x25d171[_0x1a8899('0x16a5')]=_0x57290f,_0x25d171[_0x1a8899('0xc10')]=_0x277c41[_0x1a8899('0x3a1')],_0x25d171[_0x1a8899('0x1817')]=_0x3f053b,_0x25d171[_0x1a8899('0x2606')]=_0x589950;function _0x4f4f13(_0x4cd6bb){var _0x1c3f58=_0x1a8899;if(_0x3ce4ee[_0x1c3f58('0x26e8')]('admin'))_0x63ef7b['go'](_0x1c3f58('0x23fd'),{'ListId':_0x4cd6bb['id']});else return _0x553be1['userProfileSection'][_0x1c3f58('0x2122')]({'userProfileId':_0x3ce4ee[_0x1c3f58('0xacc')]()[_0x1c3f58('0x2168')],'sectionId':0x12f})[_0x1c3f58('0x1dc2')][_0x1c3f58('0xaa5')](function(_0x550028){var _0x2327c3=_0x1c3f58,_0x28f02e=_0x550028&&_0x550028[_0x2327c3('0x580')]?_0x550028['rows'][0x0]:null;_0x28f02e&&_0x28f02e[_0x2327c3('0xbd3')]?_0x63ef7b['go']('app.contactmanager.contacts',{'ListId':_0x4cd6bb['id']}):_0x277c41[_0x2327c3('0x3a1')]({'title':_0x48d648[_0x2327c3('0x213f')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x48d648[_0x2327c3('0x213f')](_0x2327c3('0x251c'))});})[_0x1c3f58('0x253d')](function(_0x249d35){var _0x2537ec=_0x1c3f58;_0x277c41[_0x2537ec('0x187f')]({'title':_0x249d35[_0x2537ec('0x2fa')]?_0x2537ec('0x16c2')+_0x249d35[_0x2537ec('0x2fa')]+_0x2537ec('0x169e')+_0x249d35['statusText']:_0x2537ec('0x21d5'),'msg':_0x249d35[_0x2537ec('0x2fa')]?JSON[_0x2537ec('0xa48')](_0x249d35['data']):_0x249d35[_0x2537ec('0x684')]()});});}function _0x57290f(_0x2c546e,_0xe19385){var _0x15a05d=_0x1a8899;_0x2dda94[_0x15a05d('0x1e6d')]({'controller':'ListagentaddController','controllerAs':'vm','templateUrl':_0x1c6a56,'parent':angular['element'](_0x262915[_0x15a05d('0x54c')]),'targetEvent':_0xe19385,'clickOutsideToClose':!![],'locals':{'list':_0x2c546e,'lists':_0x25d171[_0x15a05d('0x1126')]?_0x25d171[_0x15a05d('0x1126')][_0x15a05d('0x580')]:[],'crudPermissions':_0x25d171['crudPermissions'],'realtime':![]}});}function _0x3f053b(){var _0x5dec38=_0x1a8899;_0x63ef7b['go'](_0x5dec38('0x6dd'),{},{'reload':_0x5dec38('0x6dd')});}function _0x589950(){var _0x12e330=_0x1a8899;_0x553be1['cmList']['update']({'id':_0x25d171[_0x12e330('0x2334')]['id']},_0x25d171[_0x12e330('0x2334')])['$promise'][_0x12e330('0xaa5')](function(){var _0x14f477=_0x12e330;_0x277c41[_0x14f477('0xe10')]({'title':_0x14f477('0x1a8'),'msg':_0x25d171['list']['name']?_0x25d171[_0x14f477('0x2334')][_0x14f477('0x25d6')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x5ac013){var _0xe3b54e=_0x12e330;_0x277c41['error']({'title':_0x5ac013['status']?_0xe3b54e('0x16c2')+_0x5ac013[_0xe3b54e('0x2fa')]+_0xe3b54e('0x169e')+_0x5ac013[_0xe3b54e('0x24df')]:'SYSTEM:GETcmList','msg':_0x5ac013[_0xe3b54e('0x10fd')]?JSON[_0xe3b54e('0xa48')](_0x5ac013[_0xe3b54e('0x10fd')]):_0x5ac013['toString']()});});}}const _0x207d76=_0x3e62c4,_0x56dea9=_0x4fb511['p']+_0x1a8446('0x1eb2');_0x3a531a[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window','$state',_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'api',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x3a531a(_0x27d8dd,_0x5986d2,_0x38278a,_0x585835,_0xeabf09,_0x1623e4,_0x5e0dc7,_0x3d1387,_0x251cf2,_0x587724,_0x17a5d7){var _0x9bf2b8=_0x1a8446,_0xec5540=this;_0xec5540[_0x9bf2b8('0x7fc')]=_0x17a5d7[_0x9bf2b8('0xacc')](),_0xec5540[_0x9bf2b8('0xa9')]={'count':0x0,'rows':[]},_0xec5540[_0x9bf2b8('0x3b5')]=[],_0xec5540['crudPermissions'],_0xec5540['levels']={'first':_0x9bf2b8('0xee7'),'second':_0x9bf2b8('0x20e2'),'third':'3rd'},_0xec5540[_0x9bf2b8('0x582')]={'fields':_0x9bf2b8('0x11a9'),'sort':_0x9bf2b8('0xd82'),'limit':0xa,'page':0x1},_0xec5540[_0x9bf2b8('0x2e')]=_0x8dd393,_0xec5540[_0x9bf2b8('0x1416')]=_0x4927a0,_0xec5540[_0x9bf2b8('0xe10')]=_0x4921b6,_0xec5540['getDispositions']=_0x54c3c1,_0xec5540[_0x9bf2b8('0x707')]=_0x493023,_0xec5540['deleteDisposition']=_0x3998ed,_0xec5540['exportSelectedDispositions']=_0x195a2b,_0xec5540[_0x9bf2b8('0x1c3c')]=_0xf23886,_0xec5540[_0x9bf2b8('0x83f')]=_0x44ef3,_0xec5540[_0x9bf2b8('0x11a1')]=_0x207a17;function _0x8dd393(_0x55d04b,_0x31c88a){var _0x423746=_0x9bf2b8;_0xec5540[_0x423746('0x2334')]=_0x55d04b||{},_0xec5540[_0x423746('0xada')]=typeof _0x31c88a!==_0x423746('0x1574')?_0x31c88a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xec5540[_0x423746('0x582')]['ListId']=_0xec5540['list']['id'],_0xec5540[_0x423746('0x582')]['id']=_0xec5540['list']['id'],_0x54c3c1();}function _0x493023(_0x40f35a,_0x261049){var _0x589f12=_0x9bf2b8;_0xeabf09['show']({'controller':_0x589f12('0xccf'),'controllerAs':'vm','templateUrl':_0x56dea9,'parent':angular[_0x589f12('0x1aa8')](_0x1623e4[_0x589f12('0x54c')]),'targetEvent':_0x40f35a,'clickOutsideToClose':!![],'locals':{'disposition':_0x261049,'dispositions':_0xec5540[_0x589f12('0xa9')][_0x589f12('0x580')],'model':{'id':_0xec5540[_0x589f12('0x2334')]['id'],'field':_0x589f12('0xee0')},'license':null,'setting':null,'crudPermissions':_0xec5540[_0x589f12('0xada')]}})[_0x589f12('0xaa5')](function(_0x140dad){if(_0x140dad)_0x54c3c1();});}function _0x4927a0(_0x30e210,_0x5c47ed){var _0x55b05b=_0x9bf2b8,_0x357d67=_0x51538b()[_0x55b05b('0x2c2')](_0xec5540[_0x55b05b('0xa9')][_0x55b05b('0x580')],[_0x55b05b('0x2733'),_0x30e210['id']]),_0x2c8db5=_0xeabf09[_0x55b05b('0x281e')]()['title'](_0x3d1387[_0x55b05b('0x213f')](_0x55b05b('0x2498')))[_0x55b05b('0x15af')](_0x3d1387['instant'](_0x55b05b('0xbdf')+(_0x357d67?_0x55b05b('0x1528'):_0x55b05b('0x20c8')),{'name':_0x30e210[_0x55b05b('0x25d6')]}))[_0x55b05b('0x5b5')]('Delete\x20disposition')[_0x55b05b('0x116d')](_0x5c47ed)['ok']('OK')['cancel'](_0x3d1387[_0x55b05b('0x213f')](_0x55b05b('0x1dd8')));_0xeabf09[_0x55b05b('0x1e6d')](_0x2c8db5)['then'](function(){_0x3998ed(_0x30e210);});}function _0x4921b6(_0x2158c3){var _0x32fb93=_0x9bf2b8;_0xec5540[_0x32fb93('0xa9')]=_0x2158c3||{'count':0x0,'rows':[]};}function _0x54c3c1(){var _0x33ec08=_0x9bf2b8;_0xec5540['query'][_0x33ec08('0x8b1')]=(_0xec5540[_0x33ec08('0x582')][_0x33ec08('0x41')]-0x1)*_0xec5540[_0x33ec08('0x582')][_0x33ec08('0xf4d')],_0xec5540['promise']=_0x251cf2[_0x33ec08('0x26b4')]['getDispositions'](_0xec5540['query'],_0x4921b6)[_0x33ec08('0x1dc2')];}function _0x3998ed(_0x4c7233){var _0x245c25=_0x9bf2b8;_0x251cf2[_0x245c25('0x106e')]['delete']({'id':_0x4c7233['id']})[_0x245c25('0x1dc2')][_0x245c25('0xaa5')](function(){var _0x5f0895=_0x245c25;_0x54c3c1(),_0x587724[_0x5f0895('0xe10')]({'title':_0x3d1387['instant'](_0x5f0895('0x26dd'))});})[_0x245c25('0x253d')](function(_0x5e8b9b){var _0x40ee0f=_0x245c25;if(_0x5e8b9b[_0x40ee0f('0x10fd')]&&_0x5e8b9b[_0x40ee0f('0x10fd')][_0x40ee0f('0x4c6')]&&_0x5e8b9b['data'][_0x40ee0f('0x4c6')][_0x40ee0f('0x2587')]){_0xec5540['errors']=_0x5e8b9b[_0x40ee0f('0x10fd')]['errors']||[{'message':_0x5e8b9b['toString'](),'type':'SYSTEM:DELETEdisposition'}];for(var _0x24cdd8=0x0;_0x24cdd8<_0x5e8b9b[_0x40ee0f('0x10fd')][_0x40ee0f('0x4c6')]['length'];_0x24cdd8++){_0x587724[_0x40ee0f('0x187f')]({'title':_0x5e8b9b[_0x40ee0f('0x10fd')][_0x40ee0f('0x4c6')][_0x24cdd8][_0x40ee0f('0x6c8')],'msg':_0x5e8b9b[_0x40ee0f('0x10fd')][_0x40ee0f('0x4c6')][_0x24cdd8][_0x40ee0f('0x1402')]});}}else _0x587724[_0x40ee0f('0x187f')]({'title':_0x5e8b9b[_0x40ee0f('0x2fa')]?_0x40ee0f('0x16c2')+_0x5e8b9b[_0x40ee0f('0x2fa')]+'\x20-\x20'+_0x5e8b9b[_0x40ee0f('0x24df')]:_0x40ee0f('0x28a'),'msg':_0x5e8b9b[_0x40ee0f('0x10fd')]?JSON[_0x40ee0f('0xa48')](_0x5e8b9b[_0x40ee0f('0x10fd')]['message']):_0x5e8b9b[_0x40ee0f('0x1402')]||_0x5e8b9b[_0x40ee0f('0x684')]()});});}function _0x195a2b(){var _0x4e5015=_0x9bf2b8,_0x54d0b3=angular[_0x4e5015('0x20a')](_0xec5540[_0x4e5015('0x3b5')]);return _0xec5540[_0x4e5015('0x3b5')]=[],_0x54d0b3;}function _0xf23886(_0x17d486){var _0x4224e3=_0x9bf2b8,_0x527821=_0xeabf09[_0x4224e3('0x281e')]()[_0x4224e3('0x110a')](_0x3d1387[_0x4224e3('0x213f')](_0x4224e3('0x18f0')))['content'](_0x3d1387[_0x4224e3('0x213f')](_0x4224e3('0x8f7'),{'total':_0xec5540[_0x4224e3('0x3b5')][_0x4224e3('0x2587')]}))[_0x4224e3('0x5b5')](_0x4224e3('0x2803'))[_0x4224e3('0x116d')](_0x17d486)['ok']('OK')[_0x4224e3('0x2030')](_0x3d1387[_0x4224e3('0x213f')](_0x4224e3('0x1dd8')));_0xeabf09['show'](_0x527821)['then'](function(){var _0x41b422=_0x4224e3;_0xec5540['selectedDispositions'][_0x41b422('0x15b5')](function(_0x43d1d1){_0x3998ed(_0x43d1d1);}),_0xec5540[_0x41b422('0x3b5')]=[];});}function _0x44ef3(){_0xec5540['selectedDispositions']=[];}function _0x207a17(){var _0x311601=_0x9bf2b8;_0xec5540[_0x311601('0x3b5')]=_0xec5540[_0x311601('0xa9')]['rows'];}var _0x312fe4=!![],_0x5f158d=0x1;_0x27d8dd['$watch'](_0x9bf2b8('0x74c'),function(_0x5cf01e,_0x2729c4){var _0x3f857c=_0x9bf2b8;_0x312fe4?_0x5e0dc7(function(){_0x312fe4=![];}):(!_0x2729c4&&(_0x5f158d=_0xec5540[_0x3f857c('0x582')]['page']),_0x5cf01e!==_0x2729c4&&(_0xec5540['query'][_0x3f857c('0x41')]=0x1),!_0x5cf01e&&(_0xec5540['query'][_0x3f857c('0x41')]=_0x5f158d),_0x54c3c1());});}const _0x19c897=_0x3a531a,_0x47f524=_0x4fb511['p']+_0x1a8446('0x1832');_0x2a6670['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'lists',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),'toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x2a6670(_0x23f10e,_0x4f8854,_0x1990d2,_0x1da3f4,_0x384d0d,_0x282b2c,_0x2cea71,_0x3b94ef,_0x2dacd9,_0xecf687,_0x4d646b,_0x3517ca,_0x1d32cb,_0x2f8bee,_0x7d7d05,_0x2fe25d,_0xe54b7f){var _0x2ecb82=_0x1a8446,_0x945284=this;_0x945284[_0x2ecb82('0x1202')]=_0x2fe25d,_0x945284[_0x2ecb82('0x143f')]=_0xe54b7f,_0x945284['currentUser']=_0x7d7d05[_0x2ecb82('0xacc')](),_0x945284['lists']=_0x2dacd9||{'count':0x0,'rows':[]},_0x945284[_0x2ecb82('0x1e97')]=_0xecf687,_0x945284[_0x2ecb82('0x1a50')]=_0x4d646b&&_0x4d646b[_0x2ecb82('0xd15')]==0x1?_0x4d646b[_0x2ecb82('0x580')][0x0]:null,_0x945284[_0x2ecb82('0xada')]=_0x7d7d05['parseCrudPermissions'](_0x945284['userProfileSection']?_0x945284['userProfileSection'][_0x2ecb82('0xada')]:null),_0x945284['table']=_0x2ecb82('0x1126'),_0x945284[_0x2ecb82('0x164')]='',_0x945284['listOrderAsc']=null,_0x945284[_0x2ecb82('0x10f7')]=[],_0x945284[_0x2ecb82('0x582')]={'fields':_0x2ecb82('0x10c9'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x945284['editstate']=_0xd1aa58,_0x945284[_0x2ecb82('0x209f')]=_0x21d7fa,_0x945284[_0x2ecb82('0x1814')]=_0x4323c4,_0x945284[_0x2ecb82('0x16a5')]=_0x2c97f0,_0x945284[_0x2ecb82('0x271')]=_0x2e1162,_0x945284[_0x2ecb82('0xe10')]=_0x5c2233,_0x945284['getLists']=_0x3502d3,_0x945284[_0x2ecb82('0x1238')]=_0x5f0d58,_0x945284[_0x2ecb82('0x8e5')]=_0x1a507c,_0x945284['exportSelectedLists']=_0x2c721c,_0x945284[_0x2ecb82('0x15ef')]=_0x580edd,_0x945284[_0x2ecb82('0xf17')]=_0x3046eb,_0x945284[_0x2ecb82('0xe44')]=_0x5c54a9;function _0xd1aa58(_0x844184){var _0x28be3a=_0x2ecb82;_0x1990d2['go'](_0x28be3a('0x164b'),{'id':_0x844184['id'],'list':_0x844184,'crudPermissions':_0x945284[_0x28be3a('0xada')]});}function _0x21d7fa(_0x5b6a27){var _0x16dbd6=_0x2ecb82;if(_0x7d7d05['hasRole'](_0x16dbd6('0x178b')))_0x1990d2['go'](_0x16dbd6('0x23fd'),{'ListId':_0x5b6a27['id']});else return _0x3517ca[_0x16dbd6('0x1a50')][_0x16dbd6('0x2122')]({'userProfileId':_0x7d7d05[_0x16dbd6('0xacc')]()['userProfileId'],'sectionId':0x12f})[_0x16dbd6('0x1dc2')][_0x16dbd6('0xaa5')](function(_0x1818c1){var _0x3733b1=_0x16dbd6,_0x5d2341=_0x1818c1&&_0x1818c1[_0x3733b1('0x580')]?_0x1818c1[_0x3733b1('0x580')][0x0]:null;_0x5d2341&&_0x5d2341['enabled']?_0x1990d2['go'](_0x3733b1('0x23fd'),{'ListId':_0x5b6a27['id']}):_0x2f8bee[_0x3733b1('0x3a1')]({'title':_0x3b94ef[_0x3733b1('0x213f')](_0x3733b1('0x1aab')),'msg':_0x3b94ef[_0x3733b1('0x213f')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x16dbd6('0x253d')](function(_0x15abb4){var _0x2b5cc2=_0x16dbd6;_0x2f8bee['error']({'title':_0x15abb4[_0x2b5cc2('0x2fa')]?_0x2b5cc2('0x16c2')+_0x15abb4[_0x2b5cc2('0x2fa')]+'\x20-\x20'+_0x15abb4['statusText']:'USERPROFILE:GET_SECTION','msg':_0x15abb4[_0x2b5cc2('0x2fa')]?JSON['stringify'](_0x15abb4[_0x2b5cc2('0x10fd')]):_0x15abb4['toString']()});});}function _0x4323c4(_0x36884b){var _0x5d71b1=_0x2ecb82;return _0x3517ca[_0x5d71b1('0x26b4')][_0x5d71b1('0x2828')]({'id':_0x36884b['id'],'nolimit':!![]})[_0x5d71b1('0x1dc2')]['then'](function(_0x42b4ab){var _0x47a7b0=_0x5d71b1;if(typeof _0x42b4ab['length']!==_0x47a7b0('0x1574')){var _0x285de8=[_0x42b4ab[_0x47a7b0('0x1bf1')]],_0x1084dc=new Blob(_0x285de8,{'type':_0x42b4ab[_0x47a7b0('0x6c8')]}),_0x4bbe14=window['document'][_0x47a7b0('0x531')]('a');_0x4bbe14[_0x47a7b0('0x107b')](_0x47a7b0('0x18ae'),URL[_0x47a7b0('0x1e56')](_0x1084dc)),_0x4bbe14[_0x47a7b0('0x107b')](_0x47a7b0('0x1cf9'),'exportContacts_'+_0x36884b['id']+_0x47a7b0('0x7f6')),_0x4bbe14[_0x47a7b0('0x467')]();}else _0x2f8bee['info']({'title':'EXPORT','msg':'The\x20list\x20is\x20empty'});})[_0x5d71b1('0x253d')](function(_0x12920d){var _0x4926a1=_0x5d71b1;_0x2f8bee[_0x4926a1('0x187f')]({'title':_0x12920d[_0x4926a1('0x2fa')]?_0x4926a1('0x16c2')+_0x12920d[_0x4926a1('0x2fa')]+_0x4926a1('0x169e')+_0x12920d[_0x4926a1('0x24df')]:'SYSTEM:GETcmList','msg':_0x12920d[_0x4926a1('0x10fd')]?JSON['stringify'](_0x12920d['data']):_0x12920d[_0x4926a1('0x684')]()});});}function _0x2c97f0(_0x14baa8,_0xdf36ec){var _0x466e78=_0x2ecb82;_0x384d0d[_0x466e78('0x1e6d')]({'controller':'ListagentaddController','controllerAs':'vm','templateUrl':_0x1c6a56,'parent':angular[_0x466e78('0x1aa8')](_0x282b2c[_0x466e78('0x54c')]),'targetEvent':_0xdf36ec,'clickOutsideToClose':!![],'locals':{'list':_0x14baa8,'lists':_0x945284[_0x466e78('0x1126')]?_0x945284[_0x466e78('0x1126')]['rows']:[],'crudPermissions':_0x945284[_0x466e78('0xada')],'realtime':![]}});}function _0x2e1162(_0x43b485,_0x17b6a7){var _0x50fccb=_0x2ecb82,_0x124f98=_0x384d0d[_0x50fccb('0x281e')]()[_0x50fccb('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x50fccb('0x196a')](_0x50fccb('0x2334'))+'?')['htmlContent'](''+(_0x43b485[_0x50fccb('0x25d6')]||_0x50fccb('0x2334'))+_0x50fccb('0x697')+_0x50fccb('0x210d'))[_0x50fccb('0x5b5')](_0x50fccb('0x2395'))[_0x50fccb('0x116d')](_0x17b6a7)['ok']('OK')[_0x50fccb('0x2030')](_0x50fccb('0x2410'));_0x384d0d[_0x50fccb('0x1e6d')](_0x124f98)[_0x50fccb('0xaa5')](function(){_0x1a507c(_0x43b485);},function(){var _0x31cc60=_0x50fccb;console[_0x31cc60('0x18d5')](_0x31cc60('0x2410'));});}var _0x14ba97=!![],_0x52a195=0x1;_0x23f10e[_0x2ecb82('0x1ccf')](_0x2ecb82('0x1788'),function(_0xf11477,_0x43a9af){var _0x220eba=_0x2ecb82;_0x14ba97?_0x2cea71(function(){_0x14ba97=![];}):(!_0x43a9af&&(_0x52a195=_0x945284[_0x220eba('0x582')][_0x220eba('0x41')]),_0xf11477!==_0x43a9af&&(_0x945284[_0x220eba('0x582')][_0x220eba('0x41')]=0x1),!_0xf11477&&(_0x945284['query']['page']=_0x52a195),_0x945284[_0x220eba('0xcfd')]());});function _0x5c2233(_0x3a0e8f){var _0x3944c1=_0x2ecb82;_0x945284[_0x3944c1('0x1126')]=_0x3a0e8f||{'count':0x0,'rows':[]};}function _0x3502d3(){var _0x2482d0=_0x2ecb82;_0x945284[_0x2482d0('0x582')]['offset']=(_0x945284[_0x2482d0('0x582')][_0x2482d0('0x41')]-0x1)*_0x945284[_0x2482d0('0x582')][_0x2482d0('0xf4d')],_0x7d7d05[_0x2482d0('0x26e8')]('admin')?_0x945284[_0x2482d0('0x159a')]=_0x3517ca[_0x2482d0('0x26b4')][_0x2482d0('0x2122')](_0x945284[_0x2482d0('0x582')],_0x5c2233)[_0x2482d0('0x1dc2')]:(_0x945284['query']['id']=_0x945284[_0x2482d0('0x1e97')]['id'],_0x945284[_0x2482d0('0x582')]['section']=_0x2482d0('0x1135'),_0x945284[_0x2482d0('0x159a')]=_0x3517ca[_0x2482d0('0x1e97')][_0x2482d0('0x1cf1')](_0x945284[_0x2482d0('0x582')],_0x5c2233)[_0x2482d0('0x1dc2')]);}function _0x5f0d58(_0xdb858d,_0x4739f2){var _0x451a77=_0x2ecb82;_0x384d0d['show']({'controller':_0x451a77('0x1b13'),'controllerAs':'vm','templateUrl':_0x47f524,'parent':angular[_0x451a77('0x1aa8')](_0x282b2c[_0x451a77('0x54c')]),'targetEvent':_0xdb858d,'clickOutsideToClose':!![],'locals':{'list':_0x4739f2,'lists':_0x945284['lists']['rows'],'license':_0x945284[_0x451a77('0x1202')],'setting':_0x945284[_0x451a77('0x143f')],'crudPermissions':_0x945284[_0x451a77('0xada')]}});}function _0x1a507c(_0x23da02){var _0x55c753=_0x2ecb82;_0x3517ca[_0x55c753('0x26b4')]['delete']({'id':_0x23da02['id']})[_0x55c753('0x1dc2')][_0x55c753('0xaa5')](function(){var _0x58ab68=_0x55c753;_0x51538b()[_0x58ab68('0xf6d')](_0x945284[_0x58ab68('0x1126')]['rows'],{'id':_0x23da02['id']}),_0x945284[_0x58ab68('0x1126')]['count']-=0x1,!_0x945284[_0x58ab68('0x1126')][_0x58ab68('0x580')][_0x58ab68('0x2587')]&&_0x945284[_0x58ab68('0xcfd')](),_0x2f8bee['success']({'title':_0x51538b()[_0x58ab68('0x196a')](_0x58ab68('0x20e8'))+_0x58ab68('0x8bb'),'msg':_0x23da02[_0x58ab68('0x25d6')]?_0x23da02[_0x58ab68('0x25d6')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x2dde0f){var _0x86bfbe=_0x55c753;if(_0x2dde0f[_0x86bfbe('0x10fd')]&&_0x2dde0f[_0x86bfbe('0x10fd')][_0x86bfbe('0x4c6')]&&_0x2dde0f['data'][_0x86bfbe('0x4c6')][_0x86bfbe('0x2587')]){_0x945284[_0x86bfbe('0x4c6')]=_0x2dde0f[_0x86bfbe('0x10fd')]['errors']||[{'message':_0x2dde0f[_0x86bfbe('0x684')](),'type':'SYSTEM:DELETEcmList'}];for(var _0x2a78e2=0x0;_0x2a78e2<_0x2dde0f['data'][_0x86bfbe('0x4c6')][_0x86bfbe('0x2587')];_0x2a78e2++){_0x2f8bee[_0x86bfbe('0x187f')]({'title':_0x2dde0f[_0x86bfbe('0x10fd')][_0x86bfbe('0x4c6')][_0x2a78e2][_0x86bfbe('0x6c8')],'msg':_0x2dde0f[_0x86bfbe('0x10fd')][_0x86bfbe('0x4c6')][_0x2a78e2][_0x86bfbe('0x1402')]});}}else _0x2f8bee[_0x86bfbe('0x187f')]({'title':_0x2dde0f['status']?'API:'+_0x2dde0f[_0x86bfbe('0x2fa')]+_0x86bfbe('0x169e')+_0x2dde0f[_0x86bfbe('0x24df')]:_0x86bfbe('0x1a8d'),'msg':_0x2dde0f[_0x86bfbe('0x10fd')]?JSON[_0x86bfbe('0xa48')](_0x2dde0f[_0x86bfbe('0x10fd')][_0x86bfbe('0x1402')]):_0x2dde0f[_0x86bfbe('0x1402')]||_0x2dde0f[_0x86bfbe('0x684')]()});});}function _0x2c721c(){var _0x4d60ff=_0x2ecb82,_0x3955e4=angular[_0x4d60ff('0x20a')](_0x945284[_0x4d60ff('0x10f7')]);return _0x945284['selectedLists']=[],_0x3955e4;}function _0x580edd(_0x5579b6){var _0x5b9045=_0x2ecb82,_0x117a5d=_0x384d0d[_0x5b9045('0x281e')]()[_0x5b9045('0x110a')](_0x5b9045('0xd2'))[_0x5b9045('0x102e')](_0x5b9045('0x389')+_0x945284[_0x5b9045('0x10f7')][_0x5b9045('0x2587')]+_0x5b9045('0x1443')+_0x5b9045('0x210d'))[_0x5b9045('0x5b5')](_0x5b9045('0x1aa1'))[_0x5b9045('0x116d')](_0x5579b6)['ok']('OK')[_0x5b9045('0x2030')](_0x5b9045('0x2410'));_0x384d0d[_0x5b9045('0x1e6d')](_0x117a5d)[_0x5b9045('0xaa5')](function(){var _0x2331a4=_0x5b9045;_0x945284['selectedLists'][_0x2331a4('0x15b5')](function(_0x452c34){_0x1a507c(_0x452c34);}),_0x945284['selectedLists']=[];});}function _0x3046eb(){var _0x4a51cb=_0x2ecb82;_0x945284[_0x4a51cb('0x10f7')]=[];}function _0x5c54a9(){var _0x287f3c=_0x2ecb82;_0x945284[_0x287f3c('0x10f7')]=_0x945284['lists'][_0x287f3c('0x580')];}}const _0x1d7a14=_0x2a6670,_0x42a466=_0x4fb511['p']+_0x1a8446('0x117c'),_0x393b38=_0x4fb511['p']+'src/js/modules/main/apps/contactmanager/views/lists/edit/view.html/view-[chunkhash].html',_0x26fbbb=_0x4fb511['p']+_0x1a8446('0x21b5'),_0x48283a=_0x4fb511['p']+_0x1a8446('0x160'),_0x3adeb2=_0x4fb511['p']+_0x1a8446('0xb5c');_0x7ef920['$inject']=['$stateProvider',_0x1a8446('0x208f')];function _0x7ef920(_0x32b1d8,_0x147c37){var _0x3fa3cc=_0x1a8446;_0x32b1d8['state']('app.contactmanager',{'abstract':!![],'url':_0x3fa3cc('0x15ae')})['state'](_0x3fa3cc('0x6dd'),{'url':'/lists','views':{'content@app':{'templateUrl':_0x42a466,'controller':_0x3fa3cc('0x88b')}},'resolve':{'lists':[_0x3fa3cc('0x1d16'),_0x3fa3cc('0x1dfd'),function _0x15b661(_0x495b17,_0x2d7d41){var _0x20640c=_0x3fa3cc;return _0x2d7d41[_0x20640c('0x26e8')](_0x20640c('0x178b'))?_0x495b17['resolve']('cmList@get',{'fields':_0x20640c('0x10c9'),'sort':_0x20640c('0xd82'),'limit':0xa,'offset':0x0}):_0x495b17[_0x20640c('0x149f')]('userProfile@getResources',{'id':_0x2d7d41[_0x20640c('0xacc')]()[_0x20640c('0x2168')],'section':_0x20640c('0x1135'),'fields':_0x20640c('0x10c9'),'sort':_0x20640c('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3fa3cc('0x1d16'),_0x3fa3cc('0x1dfd'),function _0x22319b(_0x32281a,_0x58d17b){var _0x307c96=_0x3fa3cc;return _0x58d17b[_0x307c96('0x26e8')](_0x307c96('0x178b'))?null:_0x32281a['resolve'](_0x307c96('0x567'),{'fields':'id,name,crudPermissions','id':_0x58d17b['getCurrentUser']()[_0x307c96('0x2168')]});}],'userProfileSection':['apiResolver',_0x3fa3cc('0x1dfd'),function _0x4e106e(_0x2cf1d7,_0x595abe){var _0x5d010e=_0x3fa3cc;return _0x595abe[_0x5d010e('0x26e8')](_0x5d010e('0x178b'))?null:_0x2cf1d7['resolve'](_0x5d010e('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x595abe[_0x5d010e('0xacc')]()['userProfileId'],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x3fa3cc('0x124f')})[_0x3fa3cc('0xb46')](_0x3fa3cc('0x164b'),{'url':'/:id?tab','params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x393b38,'controller':_0x3fa3cc('0x1872')}},'resolve':{'list':[_0x3fa3cc('0x1d16'),_0x3fa3cc('0x703'),function _0x568552(_0x29d50b,_0x1fe81b){var _0x283bc7=_0x3fa3cc;return _0x29d50b[_0x283bc7('0x149f')](_0x283bc7('0x466'),{'fields':_0x283bc7('0x10c9'),'id':_0x1fe81b['id']});}],'userProfileSection':[_0x3fa3cc('0x1d16'),_0x3fa3cc('0x1dfd'),function _0x2996dc(_0x511c32,_0x1eb936){var _0x22d354=_0x3fa3cc;return _0x511c32[_0x22d354('0x149f')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1eb936[_0x22d354('0xacc')]()[_0x22d354('0x2168')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x3fa3cc('0x124f')})[_0x3fa3cc('0xb46')](_0x3fa3cc('0x265d'),{'url':_0x3fa3cc('0x1bfc'),'views':{'content@app':{'templateUrl':_0x26fbbb,'controller':_0x3fa3cc('0x27b7')}},'resolve':{'companies':['apiResolver','Auth',function _0x90340b(_0x368163,_0x5c8a40){var _0xcb9c87=_0x3fa3cc;return _0x5c8a40[_0xcb9c87('0x26e8')](_0xcb9c87('0x178b'))?_0x368163[_0xcb9c87('0x149f')](_0xcb9c87('0x1a66'),{'fields':'createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','sort':_0xcb9c87('0xd82'),'limit':0xa,'offset':0x0}):_0x368163[_0xcb9c87('0x149f')]('userProfile@getResources',{'id':_0x5c8a40['getCurrentUser']()['userProfileId'],'section':_0xcb9c87('0x1b47'),'fields':_0xcb9c87('0x2f2'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3fa3cc('0x1d16'),'Auth',function _0x51d305(_0x59810b,_0x20a150){var _0x444318=_0x3fa3cc;return _0x20a150[_0x444318('0x26e8')](_0x444318('0x178b'))?null:_0x59810b[_0x444318('0x149f')](_0x444318('0x567'),{'fields':_0x444318('0x1bb0'),'id':_0x20a150['getCurrentUser']()[_0x444318('0x2168')]});}],'userProfileSection':[_0x3fa3cc('0x1d16'),_0x3fa3cc('0x1dfd'),function _0x3fea5e(_0x1ed757,_0x2e9047){var _0x248b21=_0x3fa3cc;return _0x2e9047['hasRole'](_0x248b21('0x178b'))?null:_0x1ed757[_0x248b21('0x149f')](_0x248b21('0x89e'),{'fields':_0x248b21('0xe6a'),'userProfileId':_0x2e9047[_0x248b21('0xacc')]()['userProfileId'],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x3fa3cc('0x124f')})['state'](_0x3fa3cc('0x967'),{'url':_0x3fa3cc('0xad'),'params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x48283a,'controller':'CompanyController\x20as\x20vm'}},'resolve':{'company':[_0x3fa3cc('0x1d16'),'$stateParams',function _0x14ae37(_0x1fb465,_0x49c8e8){var _0x3b32d3=_0x3fa3cc;return _0x1fb465[_0x3b32d3('0x149f')](_0x3b32d3('0x1a66'),{'fields':_0x3b32d3('0x2f2'),'id':_0x49c8e8['id']});}],'userProfileSection':[_0x3fa3cc('0x1d16'),_0x3fa3cc('0x1dfd'),function _0x25cefa(_0x40ea81,_0x443c84){var _0x20b703=_0x3fa3cc;return _0x40ea81['resolve'](_0x20b703('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x443c84[_0x20b703('0xacc')]()[_0x20b703('0x2168')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':'contactmanager'})[_0x3fa3cc('0xb46')](_0x3fa3cc('0x20c6'),{'url':_0x3fa3cc('0x1d48'),'views':{'content@app':{'templateUrl':_0x3adeb2,'controller':_0x3fa3cc('0x2d9')}},'resolve':{'globalCustomFields':['apiResolver',function _0x44ead1(_0xe463da){var _0x390812=_0x3fa3cc;return _0xe463da[_0x390812('0x149f')](_0x390812('0x212c'),{'fields':_0x390812('0x27d6'),'sort':_0x390812('0xd82'),'ListId':_0x390812('0x1ed9'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3fa3cc('0x1d16'),_0x3fa3cc('0x1dfd'),function _0x5887c9(_0x5dee8c,_0x2ec6b9){var _0x599b5a=_0x3fa3cc;return _0x2ec6b9[_0x599b5a('0x26e8')](_0x599b5a('0x178b'))?null:_0x5dee8c[_0x599b5a('0x149f')](_0x599b5a('0x567'),{'fields':_0x599b5a('0x1bb0'),'id':_0x2ec6b9[_0x599b5a('0xacc')]()[_0x599b5a('0x2168')]});}],'userProfileSection':['apiResolver',_0x3fa3cc('0x1dfd'),function _0x100d7f(_0x598642,_0x126117){var _0x147f6e=_0x3fa3cc;return _0x126117['hasRole'](_0x147f6e('0x178b'))?null:_0x598642['resolve'](_0x147f6e('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x126117['getCurrentUser']()[_0x147f6e('0x2168')],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':_0x3fa3cc('0x124f')}),_0x147c37[_0x3fa3cc('0x1de5')](_0x3fa3cc('0x19c9'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0xea9'),['ngCsv',_0x1a8446('0x1472'),'md.data.table',_0x1a8446('0xcba'),'mdColorPicker',_0x1a8446('0x23ee'),'ng-sortable','ngAria',_0x1a8446('0x110'),_0x1a8446('0xd2d'),_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),'mwFormUtils',_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),'material.components.expansionPanels','chart.js','angular.filter',_0x1a8446('0x23fd')])[_0x1a8446('0x1b14')](_0x7ef920)['controller'](_0x1a8446('0x1136'),_0x550a23)[_0x1a8446('0x780')](_0x1a8446('0xbad'),_0x370cfd)['controller'](_0x1a8446('0x216d'),_0x5dec64)[_0x1a8446('0x780')](_0x1a8446('0x210b'),_0x3af92a)[_0x1a8446('0x780')](_0x1a8446('0x10a1'),_0x536469)[_0x1a8446('0x780')]('CreateOrEditListDialogController',_0xe9a0a1)['controller'](_0x1a8446('0x237d'),_0x52b9d5)[_0x1a8446('0x780')](_0x1a8446('0x57'),_0x591757)[_0x1a8446('0x780')](_0x1a8446('0x15b8'),_0x1ece48)[_0x1a8446('0x780')](_0x1a8446('0x1400'),_0x207d76)[_0x1a8446('0x780')](_0x1a8446('0x2b5'),_0x19c897)[_0x1a8446('0x780')](_0x1a8446('0x27dc'),_0x1d7a14),_0x57a84c[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd'),_0x1a8446('0xe74'),'toasty',_0x1a8446('0x1717'),_0x1a8446('0xa9')];function _0x57a84c(_0x4ad1a3,_0x197799,_0xfe45dd,_0x3f47bc,_0x291a0a,_0x51fb1c,_0x429bd8,_0x544430,_0x3f75cc,_0x20c93a,_0x3927f1,_0x352c0b,_0x59a48e,_0x566723){var _0x22368e=_0x1a8446,_0x4f9595=this;_0x4f9595[_0x22368e('0x7fc')]=_0x20c93a[_0x22368e('0xacc')](),_0x4f9595['agents']=_0x59a48e?_0x59a48e:[],_0x4f9595[_0x22368e('0xa9')]=_0x566723,_0x4f9595[_0x22368e('0x5e0')]={'count':0x0,'rows':[]},_0x4f9595[_0x22368e('0x1d0e')]=![],_0x4f9595[_0x22368e('0x6cc')]=!![],_0x4f9595[_0x22368e('0x1e97')]=_0x544430,_0x4f9595[_0x22368e('0x1a50')]=_0x3f75cc&&_0x3f75cc[_0x22368e('0xd15')]==0x1?_0x3f75cc['rows'][0x0]:null,_0x4f9595[_0x22368e('0xada')]=_0x20c93a[_0x22368e('0xffd')](_0x4f9595[_0x22368e('0x1a50')]?_0x4f9595[_0x22368e('0x1a50')][_0x22368e('0xada')]:null),_0x4f9595['query']={'fields':_0x22368e('0x2260'),'type':'inbound','queuecallerexitreason':_0x22368e('0x52f')+','+_0x22368e('0x2033'),'sort':_0x22368e('0xd82'),'limit':0xa,'page':0x1},_0x4f9595[_0x22368e('0x1fb5')]=_0x134498,_0x4f9595[_0x22368e('0x1989')]=_0x47d628,_0x4f9595[_0x22368e('0x257f')]=_0x5ab23b,_0x4f9595['dispose']=_0x1bb6f3,_0x4f9595['onSaveVoiceQueueReport']=_0x43de96,_0x4f9595[_0x22368e('0xdfd')]=_0x5717e7,_0x3927f1[_0x22368e('0xa84')](_0x22368e('0x164c'),_0x4f9595['onSaveVoiceQueueReport']),_0x3927f1['on']('voiceQueueReport:update',_0x4f9595[_0x22368e('0xdfd')]),_0x336222();function _0x336222(){var _0x118d64=_0x22368e,_0x122832=_0x291a0a[_0x118d64('0x38e')][_0x118d64('0x173f')](_0x118d64('0x2198')+_0x4f9595[_0x118d64('0x7fc')]['id']);if(_0x122832)_0x122832=JSON[_0x118d64('0x9b6')](_0x122832),_0x122832&&_0x122832[_0x118d64('0x582')]&&(_0x4f9595[_0x118d64('0x582')]=_0x51538b()['merge'](_0x122832[_0x118d64('0x582')],_0x51538b()[_0x118d64('0x245')](_0x4f9595['query'],[_0x118d64('0x1015'),_0x118d64('0xf4d'),_0x118d64('0x41')])),_0x4f9595[_0x118d64('0x582')]=_0x51538b()['omit'](_0x4f9595[_0x118d64('0x582')],'filter'));else{var _0x56ea85={'$gte':_0x420d43()()[_0x118d64('0x206d')]('month')[_0x118d64('0x15db')](0x0,!![])[_0x118d64('0x1f27')](),'$lte':_0x420d43()()[_0x118d64('0x173a')](_0x118d64('0xae9'))[_0x118d64('0x15db')](0x0,!![])[_0x118d64('0x1f27')]()};_0x4f9595[_0x118d64('0x582')][_0x118d64('0x24a1')]=_0x56ea85;}_0x20c93a['hasRole'](_0x118d64('0x178b'))?_0x429bd8[_0x118d64('0x272b')][_0x118d64('0x1e87')]({'id':_0x20c93a[_0x118d64('0xacc')]()['id'],'fields':_0x118d64('0x17fe'),'channel':'voice','type':_0x118d64('0x4b8'),'nolimit':!![]})['$promise'][_0x118d64('0xaa5')](function(_0x135666){var _0x3f7760=_0x118d64;_0x4f9595[_0x3f7760('0x4d7')]=_0x135666||{'count':0x0,'rows':[]},_0x4f9595['queuesMap']=_0x51538b()[_0x3f7760('0xb6f')](_0x51538b()[_0x3f7760('0x184a')](_0x4f9595['queues'][_0x3f7760('0x580')],_0x3f7760('0x25d6')),_0x3f7760('0x25d6'));})['catch'](function(_0x158d28){console['error'](_0x158d28);})[_0x118d64('0x1889')](function(){var _0x3cf53e=_0x118d64;_0x4f9595[_0x3cf53e('0x168c')]=_0x3f903e(),_0x4f9595[_0x3cf53e('0x1fb5')]();}):_0x429bd8['userProfile'][_0x118d64('0x1cf1')]({'id':_0x4f9595[_0x118d64('0x7fc')]['userProfileId'],'section':'VoiceQueues','channel':_0x118d64('0x1b9'),'type':_0x118d64('0x4b8'),'sort':_0x118d64('0xd82'),'nolimit':!![]})[_0x118d64('0x1dc2')]['then'](function(_0x3ecfa5){var _0x6a044b=_0x118d64;_0x4f9595[_0x6a044b('0x4d7')]=_0x3ecfa5||{'count':0x0,'rows':[]},_0x4f9595['queuesMap']=_0x51538b()['mapValues'](_0x51538b()[_0x6a044b('0x184a')](_0x4f9595[_0x6a044b('0x4d7')][_0x6a044b('0x580')],'name'),_0x6a044b('0x25d6'));})['catch'](function(_0x870841){console['error'](_0x870841);})['finally'](function(){var _0x35f834=_0x118d64;_0x4f9595[_0x35f834('0x168c')]=_0x3f903e(),_0x4f9595[_0x35f834('0x1fb5')]();});}function _0x3f903e(){var _0x13fdc7=_0x22368e;return[{'name':_0x13fdc7('0x12f1'),'key':_0x13fdc7('0x24a1'),'type':'date','label':_0x13fdc7('0xf3d')},{'name':_0x13fdc7('0x521'),'key':_0x13fdc7('0x25b2'),'type':_0x13fdc7('0xbff'),'label':_0x13fdc7('0x162f'),'options':_0x4f9595[_0x13fdc7('0x1717')][_0x13fdc7('0x580')],'customOptions':[{'value':_0x13fdc7('0x15bf'),'translate':_0x13fdc7('0x1a1c')},{'value':undefined,'translate':_0x13fdc7('0x20c4')}]},{'name':_0x13fdc7('0x2038'),'key':_0x13fdc7('0xe26'),'type':_0x13fdc7('0x2468'),'label':_0x13fdc7('0x1594'),'options':_0x4f9595[_0x13fdc7('0x4d7')][_0x13fdc7('0x580')]}];}function _0x134498(){var _0xb70314=_0x22368e;_0x4f9595[_0xb70314('0x6cc')]=![],_0x4f9595[_0xb70314('0x4d7')][_0xb70314('0xd15')]>0x0?(_0x4f9595[_0xb70314('0x582')]['queue']=_0x4f9595['queues'][_0xb70314('0xd15')]===0x1?_0x4f9595['queues'][_0xb70314('0x580')][0x0][_0xb70314('0x25d6')]:_0x4f9595[_0xb70314('0x582')][_0xb70314('0xe26')],_0x4f9595['query'][_0xb70314('0x8b1')]=(_0x4f9595[_0xb70314('0x582')][_0xb70314('0x41')]-0x1)*_0x4f9595[_0xb70314('0x582')][_0xb70314('0xf4d')],_0x291a0a[_0xb70314('0x38e')][_0xb70314('0xdbf')](_0xb70314('0x2198')+_0x4f9595['currentUser']['id'],JSON['stringify']({'query':_0x51538b()['omit'](_0x4f9595['query'],_0xb70314('0xe26'))})),_0x4f9595['promise']=_0x429bd8[_0xb70314('0x1ca0')]['getVoiceQueuesReport'](_0x4f9595['query'],_0x5d1952)[_0xb70314('0x1dc2')]):_0x5d1952(null);}function _0x5d1952(_0x524518){var _0x3aaf91=_0x22368e;_0x4f9595['abandonedCalls']=_0x524518||{'count':0x0,'rows':[]},_0x4f9595[_0x3aaf91('0x6cc')]=!![];}function _0x47d628(){var _0x5d5ca7=_0x22368e;_0x4f9595[_0x5d5ca7('0x1d0e')]=![],_0x4f9595[_0x5d5ca7('0x1fb5')]();}function _0x43de96(_0x312a86){var _0x4f50f1=_0x22368e,_0x493c83=_0x4f50f1('0x4b8');_0x312a86&&_0x4f9595[_0x4f50f1('0x1492')]&&_0x4f9595['query']['type']===_0x493c83&&_0x4f9595[_0x4f50f1('0x1492')][_0x312a86[_0x4f50f1('0xe26')]]&&(_0x4f9595[_0x4f50f1('0x1d0e')]=!![]);}function _0x5717e7(_0x2c2263){var _0x5b1459=_0x22368e;if(_0x2c2263){var _0x597b0d=_0x51538b()[_0x5b1459('0xedc')](_0x4f9595[_0x5b1459('0x5e0')]['rows'],['id',_0x2c2263['id']]);_0x597b0d>=0x0&&_0x51538b()[_0x5b1459('0x283c')](_0x4f9595[_0x5b1459('0x5e0')][_0x5b1459('0x580')][_0x597b0d],_0x2c2263);}}function _0x5ab23b(_0x50d3aa,_0x4dde6d){var _0x136f60=_0x22368e;_0x50d3aa&&_0x429bd8[_0x136f60('0x1ca0')][_0x136f60('0x264e')]({'id':_0x50d3aa['id'],'lastAssignedTo':_0x4dde6d?_0x4dde6d['name']:null,'assigned':_0x4dde6d?!![]:![]})['$promise']['catch'](function(_0x5e89f1){console['log'](_0x5e89f1);});}function _0x1bb6f3(_0x4a43d5){var _0x251fe2=_0x22368e;_0xfe45dd[_0x251fe2('0x1e6d')]({'controller':_0x251fe2('0x1063'),'controllerAs':'vm','templateUrl':_0x251fe2('0xc05'),'parent':angular[_0x251fe2('0x1aa8')](_0x3f47bc[_0x251fe2('0x54c')]),'targetEvent':_0x4a43d5,'resolve':{'globalDispositions':[_0x251fe2('0x1d16'),function _0x559a99(_0x240e6f){var _0x5860cf=_0x251fe2;return _0x240e6f['resolve'](_0x5860cf('0xa42'),{'MailAccountId':_0x5860cf('0x1ed9'),'FaxAccountId':_0x5860cf('0x1ed9'),'SmsAccountId':_0x5860cf('0x1ed9'),'WhatsappAccountId':_0x5860cf('0x1ed9'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x5860cf('0x1ed9'),'ListId':_0x5860cf('0x1ed9')});}]},'locals':{'dispositions':_0x4f9595[_0x251fe2('0xa9')],'call':_0x4a43d5}})[_0x251fe2('0xaa5')](function(_0x19d278){var _0x545eea=_0x251fe2;if(_0x19d278){var _0x3f177a={'id':_0x4a43d5['id'],'disposition':_0x19d278[_0x545eea('0x2e5')]||null,'secondDisposition':_0x19d278['secondLevel']||null,'thirdDisposition':_0x19d278[_0x545eea('0x1c0a')]||null};_0x429bd8[_0x545eea('0x1ca0')][_0x545eea('0x264e')](_0x3f177a)['$promise'][_0x545eea('0x253d')](function(_0x5475ef){var _0xa7ba14=_0x545eea;console[_0xa7ba14('0x18d5')](_0x5475ef);});}});}var _0x1aff15=!![],_0x10a10f=0x1;_0x4ad1a3[_0x22368e('0x1ccf')](_0x22368e('0x1788'),function(_0x356c0d,_0x43e7ef){var _0x5d01ab=_0x22368e;_0x1aff15?_0x197799(function(){_0x1aff15=![];}):(!_0x43e7ef&&(_0x10a10f=_0x4f9595[_0x5d01ab('0x582')][_0x5d01ab('0x41')]),_0x356c0d!==_0x43e7ef&&(_0x4f9595[_0x5d01ab('0x582')]['page']=0x1),!_0x356c0d&&(_0x4f9595[_0x5d01ab('0x582')][_0x5d01ab('0x41')]=_0x10a10f),_0x4f9595[_0x5d01ab('0x1fb5')]());}),_0x4ad1a3[_0x22368e('0xc75')](_0x22368e('0x12d0'),function(){var _0x53fc93=_0x22368e;_0x3927f1[_0x53fc93('0x2629')](_0x53fc93('0x164c')),_0x3927f1[_0x53fc93('0x2629')]('voiceQueueReport:update');});}const _0x3cdd23=_0x57a84c;_0x2b31d2[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$q',_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x24ea'),_0x1a8446('0x2457'),'agents',_0x1a8446('0x1f1d'),'api',_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0x5b4'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'$interval'];function _0x2b31d2(_0x5b9c70,_0x33d497,_0x5a5fe1,_0x5a2df1,_0x3a5fb7,_0x131612,_0xe272f7,_0x162da0,_0x3ce895,_0x55d41f,_0x454424,_0x3562b7,_0x2eeff2,_0xb5e94e,_0x1a990f,_0x16a1a3,_0x3fc6f6,_0xa9e22a){var _0x192330=_0x1a8446,_0xad92a1=this,_0x1b5900=[_0x192330('0x1af3'),'online',_0x192330('0x2340'),_0x192330('0x1ce0'),_0x192330('0x25f0'),_0x192330('0x1ce0'),_0x192330('0x1b0d'),_0x192330('0xdf8'),_0x192330('0x1f36'),_0x192330('0xc8f'),_0x192330('0x21f'),'smsPause',_0x192330('0x231a'),_0x192330('0x135b'),'voicePause',_0x192330('0xe55'),_0x192330('0x1b1c'),'mailCapacity',_0x192330('0x26cb'),_0x192330('0xce'),_0x192330('0x6ed'),_0x192330('0x607'),'openchannelCurrentCapacity','mailCurrentCapacity',_0x192330('0x1382'),_0x192330('0x26c8'),_0x192330('0xea8'),'chatStatus',_0x192330('0x293'),'mailStatus',_0x192330('0x24d1'),_0x192330('0x1579'),_0x192330('0x19d2'),_0x192330('0x1e0'),'chatStatusTime',_0x192330('0x26e5'),_0x192330('0xd27'),_0x192330('0x1561'),_0x192330('0x166b'),_0x192330('0xa0a'),'voiceStatusTime',_0x192330('0xe26'),_0x192330('0x14d3'),_0x192330('0x14c3'),_0x192330('0x1b72'),'phoneBarEnableAutomaticScreenRecording'],_0x551c31=['chatPause',_0x192330('0xc8f'),_0x192330('0x21f'),_0x192330('0x462'),_0x192330('0x231a'),_0x192330('0x135b'),_0x192330('0x2519'),_0x192330('0x175')];_0xad92a1[_0x192330('0x7fc')]=_0x16a1a3[_0x192330('0xacc')](),_0xad92a1[_0x192330('0x38b')]=['ringing','inuse',_0x192330('0xa1e'),'onhold',_0x192330('0x2509')],_0xad92a1[_0x192330('0x2457')]=_0xe272f7||{'count':0x0,'rows':[]},_0xad92a1[_0x192330('0x1202')]=_0x3fc6f6,_0xad92a1[_0x192330('0x1e97')]=_0xb5e94e,_0xad92a1[_0x192330('0x1a50')]=_0x1a990f&&_0x1a990f[_0x192330('0xd15')]==0x1?_0x1a990f[_0x192330('0x580')][0x0]:null,_0xad92a1['crudPermissions']=_0x16a1a3[_0x192330('0xffd')](_0xad92a1[_0x192330('0x1a50')]?_0xad92a1[_0x192330('0x1a50')][_0x192330('0xada')]:null),_0xad92a1[_0x192330('0x1717')]=_0x162da0?_0x51538b()[_0x192330('0x184a')](_0x162da0[_0x192330('0x580')]?_0x162da0['rows']:[],'id'):{},_0xad92a1[_0x192330('0x1f1d')]=_0x3ce895?_0x51538b()[_0x192330('0x184a')](_0x3ce895[_0x192330('0x580')]?_0x3ce895[_0x192330('0x580')]:[],'id'):{},_0xad92a1[_0x192330('0xd28')]={},_0xad92a1[_0x192330('0x259c')]=![],_0xad92a1['order']=[],_0xad92a1[_0x192330('0x21f2')]={};for(var _0x3164e5 in _0xad92a1[_0x192330('0x1717')]){typeof _0xad92a1[_0x192330('0x1717')][_0x3164e5]!=='undefined'&&(_0xad92a1[_0x192330('0x1717')][_0x3164e5][_0x192330('0x2e')]=!![]);}_0xad92a1['query']={'limit':0xa,'page':0x1,'order':_0x192330('0x18e5'),'globalStatusFilter':'','pauseTypeFilter':''},_0xad92a1['logout']=_0x299556,_0xad92a1[_0x192330('0x1931')]=_0x4cf673,_0xad92a1[_0x192330('0x167c')]=_0x3a19b9,_0xad92a1['unPause']=_0x26747b,_0xad92a1[_0x192330('0x18ba')]=_0x55288d,_0xad92a1[_0x192330('0xf42')]=_0x17d0f3,_0xad92a1[_0x192330('0x1b')]=_0x12fb62,_0xad92a1['isPause']=_0x20f037,_0xad92a1[_0x192330('0x2608')]=_0x212add,_0xad92a1[_0x192330('0x1592')]=_0x5007ca,_0xad92a1[_0x192330('0x1a4b')]=_0x11b8f9,_0xad92a1[_0x192330('0x4f1')]=_0x179998,_0xad92a1[_0x192330('0x2318')]=_0x4dc147,_0xad92a1[_0x192330('0xe9b')]=_0x598fe8,_0xad92a1[_0x192330('0xd53')]=_0x4c54ec,_0xad92a1[_0x192330('0x15eb')]=_0x316196,_0x454424['on'](_0x192330('0x1acf'),_0xad92a1[_0x192330('0x1a4b')]),_0x454424['on']('user:update',_0xad92a1[_0x192330('0x4f1')]),_0x454424['on'](_0x192330('0x25ea'),_0xad92a1[_0x192330('0xe9b')]),_0x454424['on'](_0x192330('0x2728'),_0xad92a1['onComplete']),_0x4dc147();var _0x58f658=_0xa9e22a(function(){var _0x40b406=_0x192330;_0xad92a1[_0x40b406('0x259c')]&&(_0xad92a1[_0x40b406('0x259c')]=![],_0x4dc147());},0x3e7);function _0x4dc147(){var _0x507e46=_0x192330;_0xad92a1[_0x507e46('0x259c')]=![];var _0x55ca95=_0x33d497[_0x507e46('0x213b')]();_0xad92a1[_0x507e46('0x159a')]=_0x55ca95[_0x507e46('0x159a')],_0xad92a1[_0x507e46('0x1d77')]=[],_0xad92a1[_0x507e46('0x1536')]=[],_0x51538b()[_0x507e46('0x143e')](_0xad92a1[_0x507e46('0x1717')],function(_0x12bba5,_0x467491){var _0x2e19d1=_0x507e46;_0xad92a1[_0x2e19d1('0x1f1d')][_0x467491]&&_0x51538b()[_0x2e19d1('0x283c')](_0x12bba5,_0x51538b()[_0x2e19d1('0x104e')](_0x51538b()['omit'](_0xad92a1[_0x2e19d1('0x1f1d')][_0x467491],_0x551c31),_0x1b5900)),_0x12fb62(_0x12bba5),_0x12bba5[_0x2e19d1('0x175')]?(_0xad92a1[_0x2e19d1('0x1d77')][_0x2e19d1('0x1599')](_0x12bba5),_0xad92a1[_0x2e19d1('0x21f2')][_0x12bba5[_0x2e19d1('0x1b0d')]]=_0x467491):_0x12bba5[_0x2e19d1('0x920')]=_0x51538b()[_0x2e19d1('0x228e')](_0x420d43()()[_0x2e19d1('0x1f27')]('x'));});_0xad92a1[_0x507e46('0x582')][_0x507e46('0x107')]&&_0x51538b()[_0x507e46('0xf6d')](_0xad92a1[_0x507e46('0x1d77')],function(_0xa31aeb){var _0x51663f=_0x507e46;return _0xa31aeb[_0x51663f('0x151c')]!==_0xad92a1[_0x51663f('0x582')][_0x51663f('0x107')];});_0xad92a1['query']['pauseTypeFilter']&&_0x51538b()['remove'](_0xad92a1['filteredAgents'],function(_0x4918a0){var _0x127a0b=_0x507e46;return _0x4918a0[_0x127a0b('0x25f0')]!==_0xad92a1[_0x127a0b('0x582')][_0x127a0b('0x1bfd')];});_0xad92a1[_0x507e46('0x582')][_0x507e46('0xdb7')]&&_0x51538b()[_0x507e46('0xf6d')](_0xad92a1[_0x507e46('0x1d77')],function(_0x5ea964){var _0x5ab2e6=_0x507e46;return _0x5ea964['fullname'][_0x5ab2e6('0xcf6')]()['indexOf'](_0xad92a1['query'][_0x5ab2e6('0xdb7')][_0x5ab2e6('0xcf6')]())<0x0;});_0xad92a1['filteredAgents']=_0x4c36a8(_0xad92a1[_0x507e46('0x1d77')]);var _0x597ded=(_0xad92a1['query']['page']-0x1)*_0xad92a1[_0x507e46('0x582')]['limit'];_0xad92a1['paginatedAgents']=_0x51538b()[_0x507e46('0x485')](_0xad92a1[_0x507e46('0x1d77')],_0x597ded)['slice'](0x0,_0xad92a1[_0x507e46('0x582')][_0x507e46('0xf4d')]);for(var _0x140168=0x0;_0x140168<_0xad92a1[_0x507e46('0xd28')]['length'];_0x140168+=0x1){_0xad92a1[_0x507e46('0x1536')]['push'](_0xad92a1['paginatedAgents'][_0x140168]['id']);}_0x55ca95['resolve'](),_0xad92a1[_0x507e46('0x259c')]=!![];}function _0x11b8f9(_0x282fce){var _0x42fc1e=_0x192330;_0xad92a1[_0x42fc1e('0x1717')][_0x282fce['id']]&&(_0x51538b()[_0x42fc1e('0x283c')](_0xad92a1[_0x42fc1e('0x1717')][_0x282fce['id']],_0x51538b()[_0x42fc1e('0x104e')](_0x51538b()[_0x42fc1e('0x245')](_0x282fce,_0x551c31),_0x1b5900)),_0x51538b()[_0x42fc1e('0x283c')](_0xad92a1[_0x42fc1e('0x1f1d')][_0x282fce['id']],_0x51538b()['pick'](_0x51538b()[_0x42fc1e('0x245')](_0x282fce,_0x551c31),_0x1b5900)),_0x12fb62(_0xad92a1[_0x42fc1e('0x1717')][_0x282fce['id']]));}function _0x179998(_0x40c2b7){var _0x22361b=_0x192330;_0xad92a1[_0x22361b('0x1717')][_0x40c2b7['id']]&&(_0x51538b()[_0x22361b('0x283c')](_0xad92a1['agents'][_0x40c2b7['id']],_0x51538b()[_0x22361b('0x104e')](_0x40c2b7,_0x1b5900)),_0x51538b()[_0x22361b('0x283c')](_0xad92a1[_0x22361b('0x1f1d')][_0x40c2b7['id']],_0x51538b()[_0x22361b('0x104e')](_0x40c2b7,_0x1b5900)),_0x40c2b7[_0x22361b('0x1ce0')]&&(_0xad92a1[_0x22361b('0x1717')][_0x40c2b7['id']][_0x22361b('0x920')]=_0x40c2b7[_0x22361b('0x1ce0')],_0xad92a1[_0x22361b('0x1f1d')][_0x40c2b7['id']][_0x22361b('0x920')]=_0x40c2b7[_0x22361b('0x1ce0')]),_0x12fb62(_0xad92a1[_0x22361b('0x1717')][_0x40c2b7['id']]));}function _0x598fe8(_0x5cfbdd){var _0x58d853=_0x192330;_0xad92a1['agents'][_0xad92a1[_0x58d853('0x21f2')][_0x5cfbdd['destaccountcode']]]&&(_0x51538b()['merge'](_0xad92a1['agents'][_0xad92a1['agentInternal'][_0x5cfbdd[_0x58d853('0x2525')]]],_0x51538b()[_0x58d853('0x104e')](_0x5cfbdd,['queue',_0x58d853('0x14d3')])),_0x51538b()[_0x58d853('0x283c')](_0xad92a1['rpcAgents'][_0xad92a1['agentInternal'][_0x5cfbdd[_0x58d853('0x2525')]]],_0x51538b()[_0x58d853('0x104e')](_0x5cfbdd,['queue',_0x58d853('0x14d3')])));}function _0x4c54ec(_0x11862a){var _0x100754=_0x192330;_0xad92a1[_0x100754('0x1717')][_0xad92a1[_0x100754('0x21f2')][_0x11862a['destaccountcode']]]&&(_0xad92a1[_0x100754('0x1717')][_0xad92a1[_0x100754('0x21f2')][_0x11862a[_0x100754('0x2525')]]]=_0x51538b()[_0x100754('0x245')](_0xad92a1[_0x100754('0x1717')][_0xad92a1['agentInternal'][_0x11862a['destaccountcode']]],[_0x100754('0xe26'),_0x100754('0x14d3')]),_0xad92a1['rpcAgents'][_0xad92a1['agentInternal'][_0x11862a[_0x100754('0x2525')]]]=_0x51538b()[_0x100754('0x245')](_0xad92a1[_0x100754('0x1f1d')][_0xad92a1['agentInternal'][_0x11862a[_0x100754('0x2525')]]],[_0x100754('0xe26'),_0x100754('0x14d3')]));}function _0x299556(_0x2d4cfc){var _0x3e41d4=_0x192330;return _0x55d41f[_0x3e41d4('0x272b')][_0x3e41d4('0x1bc9')]({'id':_0x2d4cfc['id'],'device':'realtime','agent_id':_0x2d4cfc['id'],'agent_name':_0x2d4cfc[_0x3e41d4('0x25d6')]})[_0x3e41d4('0x1dc2')]['then'](function(){var _0x228843=_0x3e41d4;_0x3562b7[_0x228843('0xe10')]({'title':'Agent\x20logout','msg':_0x2d4cfc[_0x228843('0x18e5')]+'\x20\x20properly\x20logout'}),_0xad92a1['agents'][_0x2d4cfc['id']]&&(_0xad92a1[_0x228843('0x1717')][_0x2d4cfc['id']]['online']=![]),_0xad92a1['rpcAgents'][_0x2d4cfc['id']]&&(_0xad92a1[_0x228843('0x1f1d')][_0x2d4cfc['id']][_0x228843('0x175')]=![]),_0x4dc147();})[_0x3e41d4('0x253d')](function(_0x3fdb51){var _0x4d4731=_0x3e41d4;_0x3562b7[_0x4d4731('0x187f')]({'title':_0x3fdb51['status']?'API:'+_0x3fdb51[_0x4d4731('0x2fa')]+_0x4d4731('0x169e')+_0x3fdb51[_0x4d4731('0x24df')]:_0x4d4731('0xb8c'),'msg':_0x3fdb51['data']?JSON['stringify'](_0x3fdb51[_0x4d4731('0x10fd')][_0x4d4731('0x1402')]):_0x3fdb51[_0x4d4731('0x684')]()});});}function _0x3a19b9(_0x4f570a,_0x5dd153){var _0x2bcbe3=_0x192330;return _0x55d41f[_0x2bcbe3('0x272b')][_0x2bcbe3('0x167c')]({'id':_0x4f570a['id'],'type':_0x5dd153})['$promise'][_0x2bcbe3('0xaa5')](function(_0x21af3b){var _0x2292dd=_0x2bcbe3;_0xad92a1[_0x2292dd('0x1717')][_0x4f570a['id']]&&_0x51538b()['merge'](_0xad92a1[_0x2292dd('0x1717')][_0x4f570a['id']],_0x51538b()[_0x2292dd('0x104e')](_0x21af3b,_0x1b5900)),_0xad92a1[_0x2292dd('0x1f1d')][_0x4f570a['id']]&&_0x51538b()[_0x2292dd('0x283c')](_0xad92a1['rpcAgents'][_0x4f570a['id']],_0x51538b()[_0x2292dd('0x104e')](_0x21af3b,_0x1b5900)),_0x12fb62(_0xad92a1[_0x2292dd('0x1717')][_0x4f570a['id']]);})[_0x2bcbe3('0x253d')](function(_0x4c847a){var _0x15f68c=_0x2bcbe3;_0x3562b7['error']({'title':_0x4c847a[_0x15f68c('0x2fa')]?'API:'+_0x4c847a[_0x15f68c('0x2fa')]+_0x15f68c('0x169e')+_0x4c847a[_0x15f68c('0x24df')]:'api.staff.save','msg':_0x4c847a[_0x15f68c('0x10fd')]?JSON[_0x15f68c('0xa48')](_0x4c847a[_0x15f68c('0x10fd')][_0x15f68c('0x1402')]):_0x4c847a[_0x15f68c('0x684')]()});});}function _0x26747b(_0x50690a){var _0x2b91da=_0x192330;return _0x55d41f['user'][_0x2b91da('0x297')]({'id':_0x50690a['id']})[_0x2b91da('0x1dc2')]['then'](function(_0x29a08a){var _0x12f755=_0x2b91da;_0xad92a1[_0x12f755('0x1717')][_0x50690a['id']]&&_0x51538b()[_0x12f755('0x283c')](_0xad92a1[_0x12f755('0x1717')][_0x50690a['id']],_0x51538b()[_0x12f755('0x104e')](_0x29a08a,_0x1b5900)),_0xad92a1['rpcAgents'][_0x50690a['id']]&&_0x51538b()[_0x12f755('0x283c')](_0xad92a1['rpcAgents'][_0x50690a['id']],_0x51538b()[_0x12f755('0x104e')](_0x29a08a,_0x1b5900)),_0x12fb62(_0xad92a1['agents'][_0x50690a['id']]);})[_0x2b91da('0x253d')](function(_0x1b0305){var _0x36f4b3=_0x2b91da;_0x3562b7[_0x36f4b3('0x187f')]({'title':_0x1b0305[_0x36f4b3('0x2fa')]?_0x36f4b3('0x16c2')+_0x1b0305['status']+'\x20-\x20'+_0x1b0305[_0x36f4b3('0x24df')]:_0x36f4b3('0xb8c'),'msg':_0x1b0305[_0x36f4b3('0x10fd')]?JSON[_0x36f4b3('0xa48')](_0x1b0305['data'][_0x36f4b3('0x1402')]):_0x1b0305[_0x36f4b3('0x684')]()});});}function _0x55288d(_0x570ef3){var _0x1fb39f=_0x192330;_0x5a2df1['show'](_0x5a2df1['alert']()[_0x1fb39f('0x22b9')](!![])[_0x1fb39f('0x110a')](_0x1fb39f('0x17e'))[_0x1fb39f('0x102e')](_0x1fb39f('0x9b3'))['ok']('Ok')[_0x1fb39f('0x116d')](_0x570ef3));}function _0x4cf673(_0x4bfb0e,_0x46a01f){var _0x534ebf=_0x192330;_0x5a2df1[_0x534ebf('0x1e6d')]({'controller':_0x534ebf('0x1200'),'controllerAs':'vm','templateUrl':_0x3a2df9,'parent':angular[_0x534ebf('0x1aa8')](_0x3a5fb7[_0x534ebf('0x54c')]),'targetEvent':_0x46a01f,'clickOutsideToClose':!![],'locals':{'agent':_0x4bfb0e,'agents':[],'channel':_0x534ebf('0x1b9'),'direction':_0x534ebf('0x4b8'),'crudPermissions':_0xad92a1[_0x534ebf('0xada')]}});}function _0x20f037(_0x4efa12){var _0x4a05d3=_0x192330;return _0x4efa12===_0x4a05d3('0x167c')||_0x4efa12===_0x4a05d3('0xa7d');}function _0x212add(_0x42aef4){var _0x434375=_0x192330;return _0x42aef4===_0x434375('0x167c');}function _0x5007ca(_0x46227c){var _0x236e58=_0x192330;return _0x46227c===_0x236e58('0xa7d');}function _0x3dc53c(_0x5632c7){var _0x344832=_0x192330;return _0x5632c7===_0x344832('0x135e')||_0x5632c7===_0x344832('0x15fd')||_0x5632c7==='unavailable'||_0x5632c7===_0x344832('0xb02')||_0x51538b()['isNil'](_0x5632c7);}function _0x17d0f3(_0x552501,_0x1d0f83){var _0x2890aa=_0x192330;if(_0x1d0f83===_0x2890aa('0x1b9')){if(_0x552501[_0x1d0f83+'Status']!==_0x2890aa('0x135e'))return _0x552501[_0x1d0f83+_0x2890aa('0x26ae')];if(_0x552501[_0x1d0f83+_0x2890aa('0x1bcd')])return _0x552501[_0x1d0f83+_0x2890aa('0x26ae')]=_0x2890aa('0x167c'),_0x2890aa('0x167c');return _0x2890aa('0x135e');}else{if(_0x552501[_0x1d0f83+_0x2890aa('0x1bcd')])return _0x552501[_0x1d0f83+_0x2890aa('0x26ae')]=_0x2890aa('0x167c'),_0x2890aa('0x167c');return _0x552501[_0x1d0f83+_0x2890aa('0x26ae')];}}function _0x12fb62(_0x5e7507){var _0x294c88=_0x192330,_0x331cc4='unknown';if(_0x51538b()[_0x294c88('0x2ed')]([_0x17d0f3(_0x5e7507,_0x294c88('0x1b9')),_0x17d0f3(_0x5e7507,_0x294c88('0x20f9')),_0x17d0f3(_0x5e7507,_0x294c88('0x14c5')),_0x17d0f3(_0x5e7507,_0x294c88('0x170')),_0x17d0f3(_0x5e7507,'sms'),_0x17d0f3(_0x5e7507,_0x294c88('0x220d')),_0x17d0f3(_0x5e7507,_0x294c88('0x16c4'))],_0x20f037))_0x331cc4=_0x294c88('0x167c');else{if(_0x51538b()[_0x294c88('0x2c2')]([_0x17d0f3(_0x5e7507,_0x294c88('0x1b9')),_0x17d0f3(_0x5e7507,_0x294c88('0x20f9')),_0x17d0f3(_0x5e7507,_0x294c88('0x14c5')),_0x17d0f3(_0x5e7507,_0x294c88('0x170')),_0x17d0f3(_0x5e7507,_0x294c88('0x18da')),_0x17d0f3(_0x5e7507,_0x294c88('0x220d')),_0x17d0f3(_0x5e7507,'fax')],_0x20f037))_0x331cc4=_0x294c88('0xa7d');else _0x51538b()[_0x294c88('0x2ed')]([_0x17d0f3(_0x5e7507,_0x294c88('0x1b9')),_0x17d0f3(_0x5e7507,_0x294c88('0x20f9')),_0x17d0f3(_0x5e7507,_0x294c88('0x14c5')),_0x17d0f3(_0x5e7507,_0x294c88('0x170')),_0x17d0f3(_0x5e7507,_0x294c88('0x18da')),_0x17d0f3(_0x5e7507,_0x294c88('0x220d')),_0x17d0f3(_0x5e7507,_0x294c88('0x16c4'))],_0x3dc53c)?_0x331cc4='idle':_0x331cc4=_0x294c88('0xa1e');}_0x5e7507[_0x294c88('0x151c')]!==_0x331cc4&&(_0x5e7507[_0x294c88('0x151c')]=_0x331cc4,_0x5e7507[_0x294c88('0x2e')]?(_0x5e7507['init']=![],_0x5e7507[_0x294c88('0x920')]=_0x20f037(_0x331cc4)?_0x51538b()[_0x294c88('0x228e')](_0x420d43()(_0x5e7507[_0x294c88('0x1ce0')])[_0x294c88('0x1f27')]('x')):_0x51538b()[_0x294c88('0x4c2')]([_0x5e7507[_0x294c88('0x1ddc')],_0x5e7507[_0x294c88('0x748')],_0x5e7507[_0x294c88('0xd27')],_0x5e7507[_0x294c88('0x1561')],_0x5e7507['whatsappStatusTime'],_0x5e7507['openchannelStatusTime'],_0x5e7507[_0x294c88('0xa0a')]])):_0x5e7507[_0x294c88('0x920')]=_0x51538b()[_0x294c88('0x228e')](_0x420d43()()[_0x294c88('0x1f27')]('x')));}function _0x4c36a8(_0x24de07){var _0x5c72cf=_0x192330,_0x5341e9=_0x51538b()[_0x5c72cf('0x6e8')](_0xad92a1[_0x5c72cf('0x582')][_0x5c72cf('0x1536')],'-')?_0x5c72cf('0x71c'):_0x5c72cf('0x14b9');return _0x51538b()[_0x5c72cf('0x271d')](_0x24de07,[_0xad92a1[_0x5c72cf('0x582')][_0x5c72cf('0x1536')][_0x5c72cf('0x170d')]('-','')],[_0x5341e9]);}function _0x55efab(){var _0x39eafa=_0x192330;_0x58f658&&(_0xa9e22a[_0x39eafa('0x2030')](_0x58f658),_0x58f658=null);}function _0x316196(_0x1d78cc,_0x4414c8){var _0x26871b=_0x192330;return _0x55d41f[_0x26871b('0x272b')]['update']({'id':_0x1d78cc['id']},{'screenrecording':_0x4414c8})[_0x26871b('0x1dc2')][_0x26871b('0x253d')](function(_0x324d6a){var _0x1a452f=_0x26871b;_0x3562b7[_0x1a452f('0x187f')]({'title':_0x324d6a['status']?_0x1a452f('0x16c2')+_0x324d6a[_0x1a452f('0x2fa')]+'\x20-\x20'+_0x324d6a[_0x1a452f('0x24df')]:_0x1a452f('0x11e6'),'msg':_0x324d6a[_0x1a452f('0x10fd')]?JSON[_0x1a452f('0xa48')](_0x324d6a[_0x1a452f('0x10fd')]['message']):_0x324d6a[_0x1a452f('0x684')]()});});}_0x5b9c70[_0x192330('0xc75')](_0x192330('0x12d0'),function(){var _0xa1fbae=_0x192330;_0x454424[_0xa1fbae('0x2629')]('user:save'),_0x454424[_0xa1fbae('0x2629')](_0xa1fbae('0x15fb')),_0x454424[_0xa1fbae('0x2629')]('user:agentconnect'),_0x454424[_0xa1fbae('0x2629')]('user:agentcomplete'),_0x55efab();});}const _0x4df248=_0x2b31d2;_0x398571[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x157'),_0x1a8446('0xe74'),'rpcCalls','helperClasses'];function _0x398571(_0x5a4f47,_0x3a64dc,_0x3e5b9d,_0x1353ba,_0x528c50,_0x32ba7d){var _0x4aaecf=_0x1a8446,_0x201781=this;_0x201781[_0x4aaecf('0x2109')]=_0x528c50||{'rows':[],'count':0x0},_0x201781[_0x4aaecf('0x582')]={'limit':0xa,'page':0x1},_0x201781[_0x4aaecf('0x130c')]=_0x32ba7d['channelStatusOut'],_0x1353ba['on'](_0x4aaecf('0x559'),_0x201781[_0x4aaecf('0x1a4b')]),_0x1353ba['on'](_0x4aaecf('0x153a'),_0x201781[_0x4aaecf('0xc96')]);function _0x193f76(_0x4193ac){var _0x49e9e1=_0x4aaecf,_0x4374e5=_0x51538b()['find'](_0x201781[_0x49e9e1('0x2109')][_0x49e9e1('0x580')],{'channel':_0x4193ac[_0x49e9e1('0x119e')]});_0x4193ac['channelstatedesc']=_0x4193ac['dialstatus']?'up':_0x49e9e1('0x1ec1');if(_0x4374e5)_0x51538b()[_0x49e9e1('0x283c')](_0x4374e5,_0x4193ac);else _0x4193ac[_0x49e9e1('0x119e')]&&_0x201781[_0x49e9e1('0x2109')]['rows'][_0x49e9e1('0x1599')](_0x4193ac);}function _0x4e529a(_0x390990){var _0x52c4a4=_0x4aaecf,_0x34420a=_0x51538b()['findIndex'](_0x201781[_0x52c4a4('0x2109')][_0x52c4a4('0x580')],{'channel':_0x390990[_0x52c4a4('0x119e')]});_0x34420a>=0x0&&(_0x201781['calls'][_0x52c4a4('0x580')][_0x34420a][_0x52c4a4('0x2fa')]=_0x52c4a4('0x1fef')),_0x3a64dc(function(){var _0x163339=_0x52c4a4;_0x201781[_0x163339('0x2109')][_0x163339('0x580')][_0x163339('0x1280')](_0x34420a,0x1);},0x1388);}_0x5a4f47[_0x4aaecf('0xc75')](_0x4aaecf('0x12d0'),function(){var _0x5de963=_0x4aaecf;_0x1353ba['removeAllListeners'](_0x5de963('0x559')),_0x1353ba['removeAllListeners'](_0x5de963('0x153a'));}),_0x201781[_0x4aaecf('0x1a4b')]=_0x193f76,_0x201781[_0x4aaecf('0xc96')]=_0x4e529a;}const _0x454440=_0x398571;_0xf73e80[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x1717'),_0x1a8446('0x4d7'),'rpcVoiceQueuesChannels',_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x5b4'),_0x1a8446('0x2a4'),'userProfile',_0x1a8446('0x1a50'),'Auth'];function _0xf73e80(_0x5dfd36,_0x20db9b,_0x1e837e,_0x13fcab,_0x383137,_0x41d6bf,_0x2445f1,_0x3dc9b2,_0x3f4df5,_0x1e847d,_0x355ab7,_0x3b1feb,_0x1648c5){var _0xb15bf4=_0x1a8446,_0x49f6bd=this;_0x49f6bd[_0xb15bf4('0x7fc')]=_0x1648c5[_0xb15bf4('0xacc')](),_0x49f6bd[_0xb15bf4('0x1717')]=_0x13fcab||{'count':0x0,'rows':[]},_0x49f6bd[_0xb15bf4('0x4d7')]=_0x383137?_0x51538b()[_0xb15bf4('0x184a')](_0x383137[_0xb15bf4('0x580')]?_0x383137[_0xb15bf4('0x580')]:[],_0xb15bf4('0x25d6')):{},_0x49f6bd[_0xb15bf4('0x20f0')]=_0x41d6bf?_0x51538b()[_0xb15bf4('0x184a')](_0x41d6bf[_0xb15bf4('0x580')]?_0x51538b()[_0xb15bf4('0xdb7')](_0x41d6bf['rows'],{'type':_0xb15bf4('0x4b8')}):[],'uniqueid'):{},_0x49f6bd[_0xb15bf4('0x2705')]={},_0x49f6bd[_0xb15bf4('0x1e97')]=_0x355ab7,_0x49f6bd['userProfileSection']=_0x3b1feb&&_0x3b1feb[_0xb15bf4('0xd15')]==0x1?_0x3b1feb['rows'][0x0]:null,_0x49f6bd[_0xb15bf4('0xada')]=_0x1648c5[_0xb15bf4('0xffd')](_0x49f6bd['userProfileSection']?_0x49f6bd[_0xb15bf4('0x1a50')]['crudPermissions']:null),_0x49f6bd[_0xb15bf4('0x1b74')]={'limit':0xa,'page':0x1},_0x49f6bd['getSize']=_0x390304,_0x49f6bd['$onInit']=_0x19dd94,_0x49f6bd[_0xb15bf4('0x1a4b')]=_0x2106b7,_0x49f6bd[_0xb15bf4('0xc96')]=_0x12692a,_0x49f6bd[_0xb15bf4('0x1fef')]=_0x18accf,_0x49f6bd[_0xb15bf4('0x24f1')]=_0x290200,_0x49f6bd[_0xb15bf4('0x18f')]=_0x2bde3d,_0x3dc9b2['on'](_0xb15bf4('0xbf1'),_0x49f6bd[_0xb15bf4('0x1a4b')]),_0x3dc9b2['on'](_0xb15bf4('0x4d3'),_0x49f6bd[_0xb15bf4('0xc96')]);function _0x390304(_0x30299d){return _0x51538b()['size'](_0x30299d);}function _0x19dd94(){var _0x568ee5=_0xb15bf4;_0x51538b()[_0x568ee5('0x143e')](_0x49f6bd[_0x568ee5('0x20f0')],function(_0x283422,_0x29df95){var _0x3b9ae2=_0x568ee5;_0x51538b()['find'](_0x49f6bd[_0x3b9ae2('0x4d7')],{'name':_0x283422['name']})&&(_0x49f6bd[_0x3b9ae2('0x2705')][_0x29df95]=_0x283422);});}function _0x2106b7(_0x362418){var _0x4429e9=_0xb15bf4;_0x362418['type']==='inbound'&&(_0x51538b()[_0x4429e9('0xe9e')](_0x49f6bd['queues'],{'name':_0x362418['name']})&&(_0x49f6bd[_0x4429e9('0x2705')][_0x362418[_0x4429e9('0x1a6')]]=_0x362418));}function _0x12692a(_0x169113){var _0x337432=_0xb15bf4;_0x49f6bd[_0x337432('0x2705')][_0x169113[_0x337432('0x1a6')]]&&delete _0x49f6bd[_0x337432('0x2705')][_0x169113[_0x337432('0x1a6')]];}function _0x18accf(_0xf1177e){var _0x17a266=_0xb15bf4;return _0x2445f1[_0x17a266('0xb5d')][_0x17a266('0x209d')]({'uniqueid':_0xf1177e})['$promise'][_0x17a266('0xaa5')](function(_0x2c7f22){var _0x269d72=_0x17a266;_0x1e847d[_0x269d72('0xe10')]({'title':'Channel\x20'+_0xf1177e+_0x269d72('0x10b0'),'msg':_0x2c7f22[_0x269d72('0x1402')]||''});})[_0x17a266('0x253d')](function(_0x338c56){var _0x397945=_0x17a266;_0x1e847d['error']({'title':_0x338c56[_0x397945('0x2fa')]+_0x397945('0x169e')+_0x338c56[_0x397945('0x24df')],'msg':JSON[_0x397945('0xa48')](_0x338c56[_0x397945('0x10fd')])||_0x338c56[_0x397945('0x1402')]['join']('\x20')});});}function _0x290200(_0x5ec9ac,_0x4f56f9,_0xee5f3c){var _0x2ccd65=_0xb15bf4;return _0x2445f1['rpc']['getVoiceQueuesChannelRedirect']({'uniqueid':_0x5ec9ac,'exten':_0x4f56f9,'context':_0xee5f3c})[_0x2ccd65('0x1dc2')][_0x2ccd65('0xaa5')](function(_0x4e651b){var _0x422d1d=_0x2ccd65;_0x1e847d[_0x422d1d('0xe10')]({'title':_0x422d1d('0x239b')+_0x5ec9ac+'\x20properly\x20redirect!','msg':_0x4e651b[_0x422d1d('0x1402')]||''});})[_0x2ccd65('0x253d')](function(_0xbf1418){var _0x12218c=_0x2ccd65;_0x1e847d[_0x12218c('0x187f')]({'title':_0xbf1418[_0x12218c('0x2fa')]+_0x12218c('0x169e')+_0xbf1418[_0x12218c('0x24df')],'msg':JSON[_0x12218c('0xa48')](_0xbf1418[_0x12218c('0x10fd')])||_0xbf1418[_0x12218c('0x1402')][_0x12218c('0x19c4')]('\x20')});});}function _0x2bde3d(_0x112612,_0x49217e){var _0x3cec1e=_0xb15bf4,_0x185f31=_0x1e837e[_0x3cec1e('0x19b8')]()[_0x3cec1e('0x110a')](_0x3cec1e('0x4d6'))[_0x3cec1e('0x674')](_0x3cec1e('0x19c7'))[_0x3cec1e('0x116d')](_0x112612)['ok']('Ok')[_0x3cec1e('0x2030')]('Cancel');return _0x1e837e[_0x3cec1e('0x1e6d')](_0x185f31)[_0x3cec1e('0xaa5')](function(_0x5e004a){var _0x319fbe=_0x3cec1e;return _0x2445f1[_0x319fbe('0xb5d')][_0x319fbe('0x5d0')]({'uniqueid':_0x49217e,'exten':_0x5e004a})['$promise'];})['then'](function(_0x27c06b){var _0x208d9b=_0x3cec1e;_0x1e847d[_0x208d9b('0xe10')]({'title':_0x208d9b('0x239b')+_0x49217e+'\x20properly\x20redirect!','msg':_0x27c06b[_0x208d9b('0x1402')]||''});})[_0x3cec1e('0x253d')](function(_0x62ac7f){var _0x5ba354=_0x3cec1e;_0x1e847d[_0x5ba354('0x187f')]({'title':_0x62ac7f[_0x5ba354('0x2fa')]+_0x5ba354('0x169e')+_0x62ac7f[_0x5ba354('0x24df')],'msg':JSON[_0x5ba354('0xa48')](_0x62ac7f[_0x5ba354('0x10fd')])||_0x62ac7f['message'][_0x5ba354('0x19c4')]('\x20')});});}_0x5dfd36[_0xb15bf4('0xc75')](_0xb15bf4('0x12d0'),function(){var _0x2f6176=_0xb15bf4;_0x3dc9b2['removeAllListeners'](_0x2f6176('0xbf1')),_0x3dc9b2[_0x2f6176('0x2629')](_0x2f6176('0x4d3'));});}const _0x478cd5=_0xf73e80;_0x5690df[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x21b3'),'queues',_0x1a8446('0x1f2f'),_0x1a8446('0x157'),'socket',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'Auth'];function _0x5690df(_0x42ebbb,_0xa928b5,_0x1b74c0,_0x551ab6,_0x3e516f,_0x2bf4e9,_0x5aeed2,_0x29dfd3,_0x3f5c02,_0x480784){var _0x1aaa05=_0x1a8446,_0x10b559=this,_0x3ce7f3=[_0x1aaa05('0x1d71'),_0x1aaa05('0x2717'),_0x1aaa05('0x22f4'),'abandoned',_0x1aaa05('0x1ac0'),_0x1aaa05('0x115c'),'sumBillable'];_0x10b559[_0x1aaa05('0xd15')]=_0x551ab6['count'],_0x10b559[_0x1aaa05('0x4d7')]=_0x551ab6?_0x51538b()['keyBy'](_0x551ab6['rows']?_0x551ab6[_0x1aaa05('0x580')]:[],'id'):{},_0x10b559[_0x1aaa05('0x1f2f')]=_0x3e516f?_0x51538b()['keyBy'](_0x3e516f[_0x1aaa05('0x580')]?_0x3e516f[_0x1aaa05('0x580')]:[],'id'):{},_0x10b559[_0x1aaa05('0x1e97')]=_0x29dfd3,_0x10b559[_0x1aaa05('0x1a50')]=_0x3f5c02&&_0x3f5c02[_0x1aaa05('0xd15')]==0x1?_0x3f5c02[_0x1aaa05('0x580')][0x0]:null,_0x10b559['crudPermissions']=_0x480784['parseCrudPermissions'](_0x10b559['userProfileSection']?_0x10b559[_0x1aaa05('0x1a50')][_0x1aaa05('0xada')]:null);_0x480784[_0x1aaa05('0x26e8')]('admin')?_0x10b559[_0x1aaa05('0x582')]={'type':_0x1aaa05('0x4b8'),'fields':'id,name','sort':_0x1aaa05('0xd82'),'limit':0xa,'page':0x1}:_0x10b559[_0x1aaa05('0x582')]={'id':_0x480784['getCurrentUser']()['id'],'channel':_0x1aaa05('0x1b9'),'type':'inbound','fields':'id,name','sort':_0x1aaa05('0xd82'),'limit':0xa,'page':0x1};_0x10b559['success']=_0x3c85c0,_0x10b559[_0x1aaa05('0x1e87')]=_0x17458a,_0x10b559[_0x1aaa05('0x1a4b')]=_0x232654,_0x10b559[_0x1aaa05('0x141')]=_0x1cde17,_0x5aeed2[_0x1aaa05('0xa84')](_0x1aaa05('0x46'),_0x10b559['onSave']),_0x10b559[_0x1aaa05('0x1c21')]=_0x1b74c0(function(){},0x3e7);function _0x1cde17(){_0x51538b()['forIn'](_0x10b559['queues'],function(_0x7902b6,_0x2c4f29){var _0x2462ad=a0_0x1149;_0x10b559[_0x2462ad('0x1f2f')][_0x2c4f29]&&_0x51538b()['merge'](_0x7902b6,_0x51538b()[_0x2462ad('0x104e')](_0x10b559[_0x2462ad('0x1f2f')][_0x2c4f29],_0x3ce7f3));});}function _0x232654(_0x36f63b){var _0x271e47=_0x1aaa05;_0x10b559['queues'][_0x36f63b['id']]&&_0x51538b()['merge'](_0x10b559[_0x271e47('0x4d7')][_0x36f63b['id']],_0x51538b()[_0x271e47('0x104e')](_0x36f63b,_0x3ce7f3));}var _0x31488d=!![],_0x56e93b=0x1;_0x42ebbb[_0x1aaa05('0x1ccf')](_0x1aaa05('0x1788'),function(_0x456376,_0xd50acc){var _0x8891f6=_0x1aaa05;_0x31488d?_0xa928b5(function(){_0x31488d=![];}):(!_0xd50acc&&(_0x56e93b=_0x10b559[_0x8891f6('0x582')]['page']),_0x456376!==_0xd50acc&&(_0x10b559[_0x8891f6('0x582')]['page']=0x1),!_0x456376&&(_0x10b559[_0x8891f6('0x582')]['page']=_0x56e93b),_0x10b559['getQueues']());});function _0x3c85c0(_0x175990){var _0xd99dda=_0x1aaa05;_0x10b559[_0xd99dda('0xd15')]=_0x175990['count'],_0x10b559[_0xd99dda('0x4d7')]=_0x175990?_0x51538b()[_0xd99dda('0x184a')](_0x175990['rows']?_0x175990[_0xd99dda('0x580')]:[],'id'):{},_0x1cde17();}function _0x17458a(){var _0xad0235=_0x1aaa05;_0x10b559[_0xad0235('0x582')][_0xad0235('0x8b1')]=(_0x10b559['query'][_0xad0235('0x41')]-0x1)*_0x10b559[_0xad0235('0x582')][_0xad0235('0xf4d')],_0x480784[_0xad0235('0x26e8')](_0xad0235('0x178b'))?_0x10b559[_0xad0235('0x159a')]=_0x2bf4e9[_0xad0235('0x1588')][_0xad0235('0x2122')](_0x10b559[_0xad0235('0x582')],_0x3c85c0)['$promise']:(_0x10b559[_0xad0235('0x582')]['id']=_0x10b559['userProfile']['id'],_0x10b559[_0xad0235('0x582')][_0xad0235('0x224d')]=_0xad0235('0x24cb'),_0x10b559[_0xad0235('0x159a')]=_0x2bf4e9[_0xad0235('0x1e97')]['getResources'](_0x10b559[_0xad0235('0x582')],_0x3c85c0)[_0xad0235('0x1dc2')]);}_0x42ebbb[_0x1aaa05('0xc75')]('$destroy',function(){var _0x238600=_0x1aaa05;_0x5aeed2['removeAllListeners'](_0x238600('0x46')),_0x10b559[_0x238600('0x1c21')]&&_0x1b74c0['cancel'](_0x10b559[_0x238600('0x1c21')]);});}const _0x17ba70=_0x5690df,_0xa3d508=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog-[chunkhash].html',_0x3defdd=_0x4fb511['p']+_0x1a8446('0x18ff');_0x7a2020[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$timeout',_0x1a8446('0x2378'),'$q','$document',_0x1a8446('0x21b3'),'queues',_0x1a8446('0x1f2f'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'Auth'];function _0x7a2020(_0x1311df,_0x17da89,_0x1c9d52,_0x554296,_0x3ff188,_0x18e911,_0x1c5b38,_0x9cf449,_0x104ab9,_0x13ae99,_0x4199f9,_0x5941e7,_0x1342aa,_0x41c300){var _0x2d5a15=_0x1a8446,_0x19aed1=this,_0x5ca8ef=[_0x2d5a15('0x2226'),_0x2d5a15('0x1ade'),_0x2d5a15('0xd3d'),_0x2d5a15('0xf01'),'pTalking','originated','message',_0x2d5a15('0x1b71'),'dialMethod',_0x2d5a15('0x4a6'),_0x2d5a15('0x16ce')];_0x19aed1[_0x2d5a15('0x7fc')]=_0x41c300[_0x2d5a15('0xacc')](),_0x19aed1[_0x2d5a15('0xd15')]=_0x1c5b38[_0x2d5a15('0xd15')]?_0x1c5b38[_0x2d5a15('0xd15')]:0x0,_0x19aed1[_0x2d5a15('0x4d7')]=_0x1c5b38?_0x51538b()[_0x2d5a15('0x184a')](_0x1c5b38[_0x2d5a15('0x580')]?_0x1c5b38[_0x2d5a15('0x580')]:[],'id'):{},_0x19aed1[_0x2d5a15('0x1f2f')]=_0x9cf449?_0x51538b()[_0x2d5a15('0x184a')](_0x9cf449[_0x2d5a15('0x580')]?_0x9cf449[_0x2d5a15('0x580')]:[],'id'):{},_0x19aed1[_0x2d5a15('0x1e97')]=_0x5941e7,_0x19aed1[_0x2d5a15('0x1a50')]=_0x1342aa&&_0x1342aa[_0x2d5a15('0xd15')]==0x1?_0x1342aa[_0x2d5a15('0x580')][0x0]:null,_0x19aed1[_0x2d5a15('0xada')]=_0x41c300['parseCrudPermissions'](_0x19aed1[_0x2d5a15('0x1a50')]?_0x19aed1[_0x2d5a15('0x1a50')][_0x2d5a15('0xada')]:null);_0x41c300['hasRole'](_0x2d5a15('0x178b'))?_0x19aed1[_0x2d5a15('0x582')]={'type':'inbound','sort':_0x2d5a15('0xd82'),'limit':0xa,'page':0x1}:_0x19aed1[_0x2d5a15('0x582')]={'id':_0x19aed1[_0x2d5a15('0x7fc')]['id'],'channel':_0x2d5a15('0x1b9'),'type':_0x2d5a15('0x4b8'),'sort':_0x2d5a15('0xd82'),'limit':0xa,'page':0x1};_0x19aed1[_0x2d5a15('0xe10')]=_0x3fc9d9,_0x19aed1[_0x2d5a15('0x1e87')]=_0x1fef98,_0x19aed1[_0x2d5a15('0x1248')]=_0xb1ad30,_0x19aed1[_0x2d5a15('0x101f')]=_0x2fca81,_0x19aed1['updateQueue']=_0x4b7a79,_0x19aed1[_0x2d5a15('0x1a4b')]=_0x73b203,_0x19aed1['onPause']=_0x232c58,_0x19aed1[_0x2d5a15('0x24d2')]=_0x234476,_0x19aed1[_0x2d5a15('0x10c6')]=_0x43bbf2,_0x19aed1[_0x2d5a15('0x141')]=_0x4c8bc1,_0x19aed1[_0x2d5a15('0x1536')]=[],_0x51538b()[_0x2d5a15('0x143e')](_0x19aed1['queues'],function(_0xf87464){var _0x409e5f=_0x2d5a15;_0x19aed1['order'][_0x409e5f('0x1599')](_0xf87464['id']);}),_0x13ae99[_0x2d5a15('0xa84')](_0x2d5a15('0x46'),_0x19aed1[_0x2d5a15('0x1a4b')]),_0x19aed1[_0x2d5a15('0x1c21')]=_0x18e911(function(){},0x3e7),_0x13ae99['on'](_0x2d5a15('0x15fb'),_0x19aed1[_0x2d5a15('0x2511')]),_0x13ae99['on']('userVoiceQueue:remove',_0x19aed1[_0x2d5a15('0x10c6')]),_0x13ae99['on']('userVoiceQueue:save',_0x19aed1[_0x2d5a15('0x24d2')]);function _0x4c8bc1(){var _0x573bad=_0x2d5a15,_0xf2d0b0=[];return _0x51538b()[_0x573bad('0x143e')](_0x19aed1[_0x573bad('0x4d7')],function(_0xb22243,_0x5eebca){var _0x3b93e8=_0x573bad;_0xb22243[_0x3b93e8('0x16ce')]=0x0,_0xb22243['loggedInDb']=0x0,_0x19aed1[_0x3b93e8('0x4d7')][_0x5eebca]['agents']={},_0xf2d0b0['push'](_0x104ab9['voiceQueue'][_0x3b93e8('0xc8e')]({'id':_0x5eebca})[_0x3b93e8('0x1dc2')]),_0x19aed1[_0x3b93e8('0x1f2f')][_0x5eebca]&&_0x51538b()['merge'](_0xb22243,_0x51538b()[_0x3b93e8('0x104e')](_0x19aed1['rpcQueues'][_0x5eebca],_0x5ca8ef));}),_0x554296[_0x573bad('0xa15')](_0xf2d0b0)[_0x573bad('0xaa5')](function(_0xc8ff82){var _0x2636e2=_0x573bad;for(var _0x2f3cdd=0x0;_0x2f3cdd<_0xc8ff82[_0x2636e2('0x2587')];_0x2f3cdd+=0x1){for(var _0x173cfe=0x0;_0x173cfe<_0xc8ff82[_0x2f3cdd][_0x2636e2('0x580')][_0x2636e2('0x2587')];_0x173cfe++){_0xc8ff82[_0x2f3cdd][_0x2636e2('0x580')][_0x173cfe][_0x2636e2('0x16ce')]&&_0x19aed1[_0x2636e2('0x4d7')][_0xc8ff82[_0x2f3cdd]['rows'][_0x173cfe]['VoiceQueueId']][_0x2636e2('0x16ce')]++,_0x19aed1[_0x2636e2('0x4d7')][_0xc8ff82[_0x2f3cdd]['rows'][_0x173cfe]['VoiceQueueId']]['loggedInDb']++,_0x19aed1[_0x2636e2('0x4d7')][_0xc8ff82[_0x2f3cdd]['rows'][_0x173cfe]['VoiceQueueId']][_0x2636e2('0x1717')][_0xc8ff82[_0x2f3cdd][_0x2636e2('0x580')][_0x173cfe][_0x2636e2('0x1037')]]=_0xc8ff82[_0x2f3cdd][_0x2636e2('0x580')][_0x173cfe][_0x2636e2('0x2438')];}}})['catch'](function(_0xbd7944){var _0x1977e6=_0x573bad;console[_0x1977e6('0x187f')](_0xbd7944);});}function _0x73b203(_0x9e442f){var _0x7367=_0x2d5a15;_0x19aed1[_0x7367('0x4d7')][_0x9e442f['id']]&&_0x51538b()[_0x7367('0x283c')](_0x19aed1['queues'][_0x9e442f['id']],_0x51538b()[_0x7367('0x104e')](_0x9e442f,_0x5ca8ef));}function _0x232c58(_0x4f75c0){var _0x25cf3a=_0x2d5a15;console['log'](_0x25cf3a('0x2511'),_0x4f75c0);if(_0x4f75c0[_0x25cf3a('0x2519')])_0x51538b()[_0x25cf3a('0x143e')](_0x19aed1['queues'],function(_0x14bd34){var _0x3f20b1=_0x25cf3a;_0x14bd34[_0x3f20b1('0x1717')][_0x4f75c0['id']]&&(_0x14bd34['paused']+=0x1,console[_0x3f20b1('0x18d5')]('pause'));});else!_0x4f75c0[_0x25cf3a('0x2519')]&&_0x51538b()[_0x25cf3a('0x143e')](_0x19aed1[_0x25cf3a('0x4d7')],function(_0x5376b9){var _0x344e5c=_0x25cf3a;_0x5376b9[_0x344e5c('0x1717')][_0x4f75c0['id']]&&(_0x5376b9['paused']>0x0&&(_0x5376b9['paused']-=0x1,console['log']('unpause')));});}function _0x234476(_0x2c5e8f){var _0x8f67d9=_0x2d5a15;console['log']('onLogged',_0x2c5e8f),_0x19aed1['queues'][_0x2c5e8f[_0x8f67d9('0x2438')]]&&(_0x19aed1[_0x8f67d9('0x4d7')][_0x2c5e8f[_0x8f67d9('0x2438')]][_0x8f67d9('0xe81')]+=0x1,_0x19aed1['queues'][_0x2c5e8f[_0x8f67d9('0x2438')]]['agents'][_0x2c5e8f[_0x8f67d9('0x1037')]]=_0x2c5e8f['VoiceQueueId']);}function _0x43bbf2(_0x26ad81){var _0x3dde0e=_0x2d5a15;console[_0x3dde0e('0x18d5')](_0x3dde0e('0x10c6'),_0x26ad81),_0x19aed1[_0x3dde0e('0x4d7')][_0x26ad81[_0x3dde0e('0x2438')]]&&_0x19aed1['queues'][_0x26ad81['VoiceQueueId']][_0x3dde0e('0xe81')]>0x0&&(_0x19aed1[_0x3dde0e('0x4d7')][_0x26ad81[_0x3dde0e('0x2438')]]['loggedInDb']-=0x1,delete _0x19aed1['queues'][_0x26ad81[_0x3dde0e('0x2438')]][_0x3dde0e('0x1717')][_0x26ad81[_0x3dde0e('0x1037')]]);}var _0x4aaf72=!![],_0x374472=0x1;_0x1311df[_0x2d5a15('0x1ccf')](_0x2d5a15('0x1788'),function(_0x4deab5,_0x25325e){var _0x2073b1=_0x2d5a15;_0x4aaf72?_0x17da89(function(){_0x4aaf72=![];}):(!_0x25325e&&(_0x374472=_0x19aed1[_0x2073b1('0x582')][_0x2073b1('0x41')]),_0x4deab5!==_0x25325e&&(_0x19aed1[_0x2073b1('0x582')][_0x2073b1('0x41')]=0x1),!_0x4deab5&&(_0x19aed1[_0x2073b1('0x582')]['page']=_0x374472),_0x19aed1[_0x2073b1('0x1e87')]());});function _0x3fc9d9(_0xd7ab9e){var _0x8a0601=_0x2d5a15;_0x19aed1['count']=_0xd7ab9e[_0x8a0601('0xd15')],_0x19aed1[_0x8a0601('0x4d7')]=_0xd7ab9e?_0x51538b()[_0x8a0601('0x184a')](_0xd7ab9e['rows']?_0xd7ab9e['rows']:[],'id'):{};if(_0xd7ab9e[_0x8a0601('0x580')]){_0x19aed1[_0x8a0601('0x1536')]=[];for(var _0x1df934=0x0;_0x1df934<_0xd7ab9e[_0x8a0601('0x580')][_0x8a0601('0x2587')];_0x1df934++){_0x19aed1[_0x8a0601('0x1536')]['push'](_0xd7ab9e[_0x8a0601('0x580')][_0x1df934]['id']);}}_0x4c8bc1();}function _0x1fef98(){var _0x587a2e=_0x2d5a15;_0x19aed1['query'][_0x587a2e('0x8b1')]=(_0x19aed1['query'][_0x587a2e('0x41')]-0x1)*_0x19aed1['query'][_0x587a2e('0xf4d')],_0x41c300[_0x587a2e('0x26e8')](_0x587a2e('0x178b'))?_0x19aed1[_0x587a2e('0x159a')]=_0x104ab9[_0x587a2e('0x1588')][_0x587a2e('0x2122')](_0x19aed1[_0x587a2e('0x582')],_0x3fc9d9)[_0x587a2e('0x1dc2')]:(_0x19aed1[_0x587a2e('0x582')]['id']=_0x19aed1['userProfile']['id'],_0x19aed1[_0x587a2e('0x582')][_0x587a2e('0x224d')]=_0x587a2e('0x24cb'),_0x19aed1[_0x587a2e('0x159a')]=_0x104ab9[_0x587a2e('0x1e97')]['getResources'](_0x19aed1[_0x587a2e('0x582')],_0x3fc9d9)[_0x587a2e('0x1dc2')]);}function _0xb1ad30(_0x255230,_0x3f4791){var _0x2101c0=_0x2d5a15;_0x1c9d52[_0x2101c0('0x1e6d')]({'controller':_0x2101c0('0x637'),'controllerAs':'vm','templateUrl':_0xa3d508,'parent':angular[_0x2101c0('0x1aa8')](_0x3ff188[_0x2101c0('0x54c')]),'targetEvent':_0x255230,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x3f4791,'voiceQueues':_0x51538b()[_0x2101c0('0x3c5')](_0x19aed1['queues']),'license':null,'setting':null,'crudPermissions':_0x19aed1[_0x2101c0('0xada')]}});}function _0x2fca81(_0x4c09c8,_0x32f4fa){var _0x1fb018=_0x2d5a15;_0x1c9d52[_0x1fb018('0x1e6d')]({'controller':_0x1fb018('0xa7b'),'controllerAs':'vm','templateUrl':_0x3defdd,'parent':angular[_0x1fb018('0x1aa8')](_0x3ff188[_0x1fb018('0x54c')]),'targetEvent':_0x4c09c8,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x32f4fa,'voiceQueues':_0x19aed1[_0x1fb018('0x4d7')]?_0x19aed1[_0x1fb018('0x4d7')][_0x1fb018('0x580')]:[],'realtime':!![],'crudPermissions':_0x19aed1[_0x1fb018('0xada')]}});}function _0x4b7a79(_0xd74142){var _0x1867e9=_0x2d5a15;return _0x104ab9['voiceQueue']['update'](_0xd74142)[_0x1867e9('0x1dc2')][_0x1867e9('0xaa5')](function(){var _0x2b01fb=_0x1867e9;_0x4199f9[_0x2b01fb('0xe10')]({'title':_0x2b01fb('0x2758'),'msg':_0xd74142['name']?_0xd74142[_0x2b01fb('0x25d6')]+_0x2b01fb('0x1734'):''});})[_0x1867e9('0x253d')](function(_0x491504){var _0x3d0607=_0x1867e9;_0x4199f9[_0x3d0607('0x187f')]({'title':'Error\x20creating\x20queue!','msg':_0x491504[_0x3d0607('0x1402')]});});}_0x1311df['$on']('$destroy',function(){var _0x4aabe9=_0x2d5a15;_0x13ae99[_0x4aabe9('0x2629')]('voice_queue:save'),_0x19aed1[_0x4aabe9('0x1c21')]&&_0x18e911['cancel'](_0x19aed1[_0x4aabe9('0x1c21')]),_0x13ae99[_0x4aabe9('0x2629')](_0x4aabe9('0x15fb')),_0x13ae99[_0x4aabe9('0x2629')](_0x4aabe9('0x10ac')),_0x13ae99[_0x4aabe9('0x2629')](_0x4aabe9('0x77e'));});}const _0x132960=_0x7a2020;function _0x2450dc(){var _0x1d3dfd=_0x1a8446;return{'status':{'registered':_0x1d3dfd('0x1'),'unregistered':_0x1d3dfd('0x15cb'),'lagged':_0x1d3dfd('0x15cb'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x1d3dfd('0x15cb'),'unknown':_0x1d3dfd('0x17')},'state':{'unknown':_0x1d3dfd('0xc98'),'not_inuse':_0x1d3dfd('0x1670'),'inuse':_0x1d3dfd('0x15a1'),'busy':_0x1d3dfd('0xb2'),'invalid':_0x1d3dfd('0xc98'),'unavailable':_0x1d3dfd('0xc98'),'ringing':_0x1d3dfd('0x1dac'),'ringinuse':_0x1d3dfd('0x1dac'),'onhold':_0x1d3dfd('0xcf5')},'channelStatus':{'ring':_0x1d3dfd('0x1dac'),'up':_0x1d3dfd('0xe58'),'hangup':_0x1d3dfd('0x182a')},'channelStatusOut':{'ring':_0x1d3dfd('0x15d9'),'up':_0x1d3dfd('0xe58'),'hangup':_0x1d3dfd('0x182a')}};}const _0x4abb09=_0x2450dc;_0x57aba0[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0xe74')];function _0x57aba0(_0x53c864,_0x2fa19d,_0x3ca45b){var _0x2a7e65=_0x1a8446,_0x396ec7=this;_0x3ca45b[_0x2a7e65('0x18d1')](),_0x3ca45b['connect'](),_0x396ec7['selectedTab']=0x0;switch(_0x2fa19d[_0x2a7e65('0x4cb')][_0x2a7e65('0x25d6')]){case _0x2a7e65('0x244c'):_0x396ec7[_0x2a7e65('0xe5c')]=0x0;break;case'app.voice.realtime.telephones':_0x396ec7[_0x2a7e65('0xe5c')]=0x1;break;case _0x2a7e65('0x15cc'):_0x396ec7[_0x2a7e65('0xe5c')]=0x2;break;case _0x2a7e65('0x1228'):_0x396ec7['selectedTab']=0x3;break;case _0x2a7e65('0x8c6'):_0x396ec7[_0x2a7e65('0xe5c')]=0x4;break;case _0x2a7e65('0x1e5d'):_0x396ec7['selectedTab']=0x5;break;case'app.voice.realtime.queue_params':_0x396ec7[_0x2a7e65('0xe5c')]=0x6;break;case _0x2a7e65('0x373'):_0x396ec7[_0x2a7e65('0xe5c')]=0x7;break;default:_0x396ec7[_0x2a7e65('0xe5c')]=0x0,_0x2fa19d['go'](_0x2a7e65('0x244c'));}_0x53c864['$watch'](_0x2a7e65('0xf1a'),function(_0x2d0519,_0x9e9ccf){var _0x27aee5=_0x2a7e65;if(_0x2d0519!==_0x9e9ccf)switch(_0x2d0519){case 0x0:_0x2fa19d['go']('app.voice.realtime.agents');break;case 0x1:_0x2fa19d['go']('app.voice.realtime.telephones');break;case 0x2:_0x2fa19d['go'](_0x27aee5('0x15cc'));break;case 0x3:_0x2fa19d['go'](_0x27aee5('0x1228'));break;case 0x4:_0x2fa19d['go'](_0x27aee5('0x8c6'));break;case 0x5:_0x2fa19d['go'](_0x27aee5('0x1e5d'));break;case 0x6:_0x2fa19d['go']('app.voice.realtime.queue_params');break;case 0x7:_0x2fa19d['go']('app.voice.realtime.outbound_calls');break;default:_0x2fa19d['go']('app.voice.realtime.agents');}});}const _0x458da1=_0x57aba0;_0x15e1c1[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x395'),_0x1a8446('0x2277'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x5b4'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x1dfd')];function _0x15e1c1(_0x4eb1cb,_0x2ad1b7,_0x376519,_0x38a350,_0x41c190,_0xd1a490,_0x4bf0c1,_0x4101e1,_0x33aca2,_0x39d01e,_0x5e48e6){var _0x4f7586=_0x1a8446,_0x51a8a3=this,_0x94cfa1=[_0x4f7586('0x18e5'),_0x4f7586('0x1b0d'),_0x4f7586('0xb46'),_0x4f7586('0x2fa')];_0x51a8a3[_0x4f7586('0xd15')]=_0x38a350[_0x4f7586('0xd15')],_0x51a8a3[_0x4f7586('0x1218')]=[_0x4f7586('0x18e5'),_0x4f7586('0x1b0d'),_0x4f7586('0xb46'),_0x4f7586('0x2fa'),_0x4f7586('0xdf8')],_0x51a8a3['telephones']=_0x38a350?_0x51538b()[_0x4f7586('0x184a')](_0x38a350[_0x4f7586('0x580')]?_0x38a350[_0x4f7586('0x580')]:[],'id'):{},_0x51a8a3[_0x4f7586('0x2277')]=_0x41c190?_0x51538b()[_0x4f7586('0x184a')](_0x41c190[_0x4f7586('0x580')]?_0x41c190[_0x4f7586('0x580')]:[],'id'):{},_0x51a8a3[_0x4f7586('0x1e97')]=_0x33aca2,_0x51a8a3['userProfileSection']=_0x39d01e&&_0x39d01e[_0x4f7586('0xd15')]==0x1?_0x39d01e[_0x4f7586('0x580')][0x0]:null,_0x51a8a3[_0x4f7586('0xada')]=_0x5e48e6[_0x4f7586('0xffd')](_0x51a8a3['userProfileSection']?_0x51a8a3['userProfileSection'][_0x4f7586('0xada')]:null),_0x51a8a3[_0x4f7586('0x582')]={'fields':_0x4f7586('0x26d4'),'role':_0x4f7586('0xb5b'),'sort':_0x4f7586('0xd82'),'limit':0xa,'page':0x1},_0x51a8a3['statusClass']=_0x4101e1['status'],_0x51a8a3[_0x4f7586('0x242a')]=_0x4101e1['state'],_0x51a8a3[_0x4f7586('0xe10')]=_0x40560d,_0x51a8a3[_0x4f7586('0x141')]=_0x55908b,_0x51a8a3['showInfo']=_0x4d546b,_0x51a8a3[_0x4f7586('0x79c')]=_0x39a25a,_0x51a8a3[_0x4f7586('0x1a4b')]=_0x19154d,_0x4bf0c1['on']('telephone:save',_0x51a8a3[_0x4f7586('0x1a4b')]);function _0x55908b(){var _0x1b1bb6=_0x4f7586;_0x51538b()['forIn'](_0x51a8a3[_0x1b1bb6('0x395')],function(_0x199eda,_0x895288){var _0x47c5f7=_0x1b1bb6;_0x51a8a3[_0x47c5f7('0x2277')][_0x895288]&&_0x51538b()[_0x47c5f7('0x283c')](_0x199eda,_0x51538b()[_0x47c5f7('0x104e')](_0x51a8a3[_0x47c5f7('0x2277')][_0x895288],_0x94cfa1));});}function _0x4d546b(_0x908576){var _0x42de8f=_0x4f7586;_0x376519[_0x42de8f('0x1e6d')](_0x376519[_0x42de8f('0xc10')]()[_0x42de8f('0x22b9')](!![])[_0x42de8f('0x110a')]('Legend')[_0x42de8f('0x102e')](_0x42de8f('0x9b3'))['ok']('Ok')[_0x42de8f('0x116d')](_0x908576));}function _0x19154d(_0x3ee4b2){var _0x41ae01=_0x4f7586;_0x51a8a3[_0x41ae01('0x395')][_0x3ee4b2['id']]&&_0x51538b()['merge'](_0x51a8a3[_0x41ae01('0x395')][_0x3ee4b2['id']],_0x51538b()[_0x41ae01('0x104e')](_0x3ee4b2,_0x94cfa1));}var _0xf0604d=!![],_0x3ae016=0x1;_0x4eb1cb[_0x4f7586('0x1ccf')](_0x4f7586('0x1788'),function(_0x103097,_0xb83b36){var _0x342539=_0x4f7586;_0xf0604d?_0x2ad1b7(function(){_0xf0604d=![];}):(!_0xb83b36&&(_0x3ae016=_0x51a8a3[_0x342539('0x582')][_0x342539('0x41')]),_0x103097!==_0xb83b36&&(_0x51a8a3[_0x342539('0x582')][_0x342539('0x41')]=0x1),!_0x103097&&(_0x51a8a3[_0x342539('0x582')][_0x342539('0x41')]=_0x3ae016),_0x51a8a3[_0x342539('0x79c')]());});function _0x40560d(_0xe12fa2){var _0x203ed8=_0x4f7586;_0x51a8a3[_0x203ed8('0x395')]=_0xe12fa2?_0x51538b()[_0x203ed8('0x184a')](_0xe12fa2[_0x203ed8('0x580')]?_0xe12fa2[_0x203ed8('0x580')]:[],'id'):{},_0x55908b();}function _0x39a25a(){var _0xeb508=_0x4f7586;_0x51a8a3[_0xeb508('0x582')][_0xeb508('0x8b1')]=(_0x51a8a3[_0xeb508('0x582')][_0xeb508('0x41')]-0x1)*_0x51a8a3['query'][_0xeb508('0xf4d')],_0x5e48e6[_0xeb508('0x26e8')](_0xeb508('0x178b'))?_0x51a8a3[_0xeb508('0x159a')]=_0xd1a490[_0xeb508('0x272b')]['get'](_0x51a8a3[_0xeb508('0x582')],_0x40560d)[_0xeb508('0x1dc2')]:(_0x51a8a3[_0xeb508('0x582')]['id']=_0x51a8a3[_0xeb508('0x1e97')]['id'],_0x51a8a3[_0xeb508('0x582')][_0xeb508('0x224d')]=_0xeb508('0x1c00'),_0x51a8a3[_0xeb508('0x159a')]=_0xd1a490[_0xeb508('0x1e97')][_0xeb508('0x1cf1')](_0x51a8a3[_0xeb508('0x582')],_0x40560d)[_0xeb508('0x1dc2')]);}_0x4eb1cb[_0x4f7586('0xc75')]('$destroy',function(){var _0x443389=_0x4f7586;_0x4bf0c1[_0x443389('0x2629')](_0x443389('0x12a5'));});}const _0x3ef29a=_0x15e1c1;_0x58036f[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x1bc2'),_0x1a8446('0x1058'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x5b4'),_0x1a8446('0x145b'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x58036f(_0x2b5abb,_0x21c553,_0xd74666,_0x5a7cdd,_0x4b578c,_0x3599a5,_0x2c8bbb,_0x3aa4d9,_0x5baef3,_0x308a37,_0x4bbe99,_0x2f2326){var _0x27faeb=_0x1a8446,_0xb62090=this,_0x1e7e1a=[_0x27faeb('0x2fa'),_0x27faeb('0xca0'),_0x27faeb('0x15b4'),_0x27faeb('0x160c'),'port',_0x27faeb('0x1b0d'),_0x27faeb('0xb46'),_0x27faeb('0x2fa')];_0xb62090[_0x27faeb('0x7fc')]=_0x2f2326['getCurrentUser'](),_0xb62090['count']=_0x5a7cdd[_0x27faeb('0xd15')],_0xb62090[_0x27faeb('0x1bc2')]=_0x5a7cdd?_0x5a7cdd[_0x27faeb('0x580')]:[],_0xb62090[_0x27faeb('0x1058')]=_0x4b578c?_0x4b578c['rows']?_0x4b578c[_0x27faeb('0x580')]:[]:[],_0xb62090['query']={'fields':_0x27faeb('0x17fe'),'active':!![],'sort':'-updatedAt','limit':0xa,'page':0x1},_0xb62090['statusClass']=_0x3aa4d9['status'],_0xb62090['stateClass']=_0x3aa4d9[_0x27faeb('0xb46')],_0xb62090[_0x27faeb('0x1e97')]=_0x308a37,_0xb62090[_0x27faeb('0x1a50')]=_0x4bbe99&&_0x4bbe99[_0x27faeb('0xd15')]==0x1?_0x4bbe99[_0x27faeb('0x580')][0x0]:null,_0xb62090['crudPermissions']=_0x2f2326[_0x27faeb('0xffd')](_0xb62090[_0x27faeb('0x1a50')]?_0xb62090[_0x27faeb('0x1a50')][_0x27faeb('0xada')]:null),_0xb62090['success']=_0x20ecd4,_0xb62090[_0x27faeb('0x141')]=_0x185fbb,_0xb62090[_0x27faeb('0x18ba')]=_0x19be3b,_0xb62090['getTrunks']=_0x2ef388,_0xb62090[_0x27faeb('0x1216')]=_0x361a69,_0xb62090['onSave']=_0x1dd38d,_0x2c8bbb['on']('trunk:save',_0xb62090[_0x27faeb('0x1a4b')]);function _0x185fbb(){var _0x2b2abf=_0x27faeb,_0x4a57c8;for(var _0x588c08=0x0;_0x588c08<_0xb62090['trunks'][_0x2b2abf('0x2587')];_0x588c08+=0x1){_0x4a57c8=_0x51538b()[_0x2b2abf('0xedc')](_0xb62090[_0x2b2abf('0x1058')],['id',_0xb62090['trunks'][_0x588c08]['id']]),_0x4a57c8>=0x0&&_0x51538b()['merge'](_0xb62090[_0x2b2abf('0x1bc2')][_0x588c08],_0x51538b()[_0x2b2abf('0x104e')](_0xb62090[_0x2b2abf('0x1058')][_0x4a57c8],_0x1e7e1a));}}function _0x19be3b(_0x2b9f8e){var _0x314757=_0x27faeb;_0xd74666['show'](_0xd74666[_0x314757('0xc10')]()[_0x314757('0x22b9')](!![])[_0x314757('0x110a')]('Legend')[_0x314757('0x102e')](_0x314757('0x9b3'))['ok']('Ok')['targetEvent'](_0x2b9f8e));}function _0x4d2a0e(_0xe639f,_0x3fd176,_0x3741e8){var _0x23f9f9=_0x27faeb;_0x3fd176>=0x0&&_0x51538b()['merge'](_0xe639f[_0x3fd176],_0x51538b()[_0x23f9f9('0x104e')](_0x3741e8,_0x1e7e1a));}function _0x1dd38d(_0x5e0f0c){var _0x8f0eb1=_0x27faeb,_0x3575d0=_0x51538b()[_0x8f0eb1('0xedc')](_0xb62090[_0x8f0eb1('0x1bc2')],['id',_0x5e0f0c['id']]),_0x5457f9=_0x51538b()['findIndex'](_0xb62090[_0x8f0eb1('0x1058')],['id',_0x5e0f0c['id']]);_0x4d2a0e(_0xb62090[_0x8f0eb1('0x1bc2')],_0x3575d0,_0x5e0f0c),_0x4d2a0e(_0xb62090[_0x8f0eb1('0x1058')],_0x5457f9,_0x5e0f0c);}var _0xc23654=!![],_0x4cd92e=0x1;_0x2b5abb[_0x27faeb('0x1ccf')](_0x27faeb('0x1788'),function(_0x3a9dfe,_0x36ef8d){var _0x1b9488=_0x27faeb;_0xc23654?_0x21c553(function(){_0xc23654=![];}):(!_0x36ef8d&&(_0x4cd92e=_0xb62090[_0x1b9488('0x582')][_0x1b9488('0x41')]),_0x3a9dfe!==_0x36ef8d&&(_0xb62090[_0x1b9488('0x582')][_0x1b9488('0x41')]=0x1),!_0x3a9dfe&&(_0xb62090[_0x1b9488('0x582')][_0x1b9488('0x41')]=_0x4cd92e),_0xb62090[_0x1b9488('0xa79')]());});function _0x20ecd4(_0x2a64b7){var _0x32df6c=_0x27faeb;_0xb62090[_0x32df6c('0xd15')]=_0x2a64b7['count'],_0xb62090[_0x32df6c('0x1bc2')]=_0x2a64b7?_0x2a64b7['rows']?_0x2a64b7[_0x32df6c('0x580')]:[]:[],_0x185fbb();}function _0x2ef388(){var _0x2ced87=_0x27faeb;_0xb62090[_0x2ced87('0x582')][_0x2ced87('0x8b1')]=(_0xb62090['query'][_0x2ced87('0x41')]-0x1)*_0xb62090['query'][_0x2ced87('0xf4d')],_0x2f2326[_0x2ced87('0x26e8')](_0x2ced87('0x178b'))?_0xb62090['promise']=_0x3599a5[_0x2ced87('0x1651')][_0x2ced87('0x2122')](_0xb62090['query'],_0x20ecd4)['$promise']:(_0xb62090[_0x2ced87('0x582')]['id']=_0xb62090['userProfile']['id'],_0xb62090[_0x2ced87('0x582')][_0x2ced87('0x224d')]='Trunks',_0xb62090['promise']=_0x3599a5['userProfile'][_0x2ced87('0x1cf1')](_0xb62090[_0x2ced87('0x582')],_0x20ecd4)['$promise']);}_0x2b5abb[_0x27faeb('0xc75')]('$destroy',function(){var _0x447f50=_0x27faeb;_0x2c8bbb[_0x447f50('0x2629')](_0x447f50('0xbef'));});function _0x361a69(_0x8bc535,_0x172c05){_0x5baef3['go']('app.tools.trunks.edit',{'id':_0x172c05['id']});}}const _0x1b1589=_0x58036f,_0x24e739=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/realtime/realtime.html/realtime-[chunkhash].html',_0x12152b=_0x4fb511['p']+_0x1a8446('0x2405'),_0xc94d8d=_0x4fb511['p']+_0x1a8446('0x240d'),_0x4eb593=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/realtime/trunks/view.html/view-[chunkhash].html',_0x4706a8=_0x4fb511['p']+_0x1a8446('0x285a'),_0x1a6f9b=_0x4fb511['p']+_0x1a8446('0x121b'),_0x37b5f1=_0x4fb511['p']+_0x1a8446('0x19bf'),_0x51115e=_0x4fb511['p']+_0x1a8446('0x1d62'),_0x393146=_0x4fb511['p']+_0x1a8446('0x79b');_0x58999e[_0x1a8446('0x1e33')]=['$stateProvider'];function _0x58999e(_0x4199a5){var _0x57c563=_0x1a8446;_0x4199a5[_0x57c563('0xb46')](_0x57c563('0x19a1'),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x24e739,'controller':'VoiceRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':['apiResolver',_0x57c563('0x1dfd'),function _0x10c5db(_0x3b5f68,_0x4b52d7){var _0x21fe88=_0x57c563;return _0x4b52d7['hasRole']('admin')?null:_0x3b5f68[_0x21fe88('0x149f')](_0x21fe88('0x567'),{'fields':_0x21fe88('0x1bb0'),'id':_0x4b52d7[_0x21fe88('0xacc')]()[_0x21fe88('0x2168')]});}],'userProfileSection':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x5f5144(_0x19945c,_0x44214f){var _0xd0d2ab=_0x57c563;return _0x44214f['hasRole'](_0xd0d2ab('0x178b'))?null:_0x19945c[_0xd0d2ab('0x149f')]('userProfileSection@get',{'fields':_0xd0d2ab('0xe6a'),'userProfileId':_0x44214f[_0xd0d2ab('0xacc')]()[_0xd0d2ab('0x2168')],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})[_0x57c563('0xb46')](_0x57c563('0x244c'),{'url':_0x57c563('0x141f'),'controller':_0x57c563('0x1e21'),'templateUrl':_0x12152b,'resolve':{'pauses':[_0x57c563('0x1d16'),function _0x242363(_0xaacac7){var _0x574305=_0x57c563;return _0xaacac7[_0x574305('0x149f')](_0x574305('0x56b'),{'nolimit':!![]});}],'agents':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x19f9ab(_0x383efe,_0x4797ee){var _0x248e2a=_0x57c563;return _0x4797ee['hasRole'](_0x248e2a('0x178b'))?_0x383efe[_0x248e2a('0x149f')](_0x248e2a('0xde4'),{'fields':_0x248e2a('0x515'),'role':_0x248e2a('0xeff'),'sort':_0x248e2a('0x18e5'),'nolimit':!![]}):_0x383efe['resolve']('userProfile@getResources',{'id':_0x4797ee['getCurrentUser']()[_0x248e2a('0x2168')],'section':_0x248e2a('0x91a'),'fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':_0x248e2a('0xeff'),'sort':_0x248e2a('0x18e5'),'nolimit':!![]});}],'userProfile':['apiResolver','Auth',function _0x130a6b(_0x7b8085,_0xe1347b){var _0x8ec612=_0x57c563;return _0xe1347b[_0x8ec612('0x26e8')](_0x8ec612('0x178b'))?null:_0x7b8085[_0x8ec612('0x149f')]('userProfile@get',{'fields':_0x8ec612('0x1bb0'),'id':_0xe1347b[_0x8ec612('0xacc')]()[_0x8ec612('0x2168')]});}],'userProfileSection':['apiResolver',_0x57c563('0x1dfd'),function _0x3258e7(_0x26483c,_0x1e8063){var _0x1ed6ef=_0x57c563;return _0x1e8063[_0x1ed6ef('0x26e8')](_0x1ed6ef('0x178b'))?null:_0x26483c['resolve']('userProfileSection@get',{'fields':_0x1ed6ef('0xe6a'),'userProfileId':_0x1e8063['getCurrentUser']()[_0x1ed6ef('0x2168')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function _0x3da1fd(_0xa08bc8){var _0x22b755=_0x57c563;return _0xa08bc8[_0x22b755('0x149f')](_0x22b755('0x1809'));}]},'authenticate':!![],'permissionId':0x19b})[_0x57c563('0xb46')](_0x57c563('0xae5'),{'url':'/telephones','controller':_0x57c563('0x2779'),'templateUrl':_0xc94d8d,'resolve':{'telephones':[_0x57c563('0x1d16'),'Auth',function _0x2d9253(_0x45acd7,_0xd3eed){var _0x1afee8=_0x57c563;return _0xd3eed['hasRole'](_0x1afee8('0x178b'))?_0x45acd7[_0x1afee8('0x149f')](_0x1afee8('0xde4'),{'fields':_0x1afee8('0x54e'),'role':_0x1afee8('0xb5b'),'sort':_0x1afee8('0xd82'),'limit':0xa,'offset':0x0}):_0x45acd7[_0x1afee8('0x149f')](_0x1afee8('0x49a'),{'id':_0xd3eed[_0x1afee8('0xacc')]()[_0x1afee8('0x2168')],'section':_0x1afee8('0x1c00'),'fields':_0x1afee8('0x54e'),'role':_0x1afee8('0xb5b'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x57c563('0x1dfd'),function _0x25356f(_0x1ab46a,_0x4cc7fc){var _0x202913=_0x57c563;return _0x4cc7fc['hasRole'](_0x202913('0x178b'))?null:_0x1ab46a[_0x202913('0x149f')](_0x202913('0x567'),{'fields':_0x202913('0x1bb0'),'id':_0x4cc7fc[_0x202913('0xacc')]()[_0x202913('0x2168')]});}],'userProfileSection':[_0x57c563('0x1d16'),'Auth',function _0x4bc64e(_0x31a2b3,_0x59e282){var _0x21abf2=_0x57c563;return _0x59e282['hasRole']('admin')?null:_0x31a2b3[_0x21abf2('0x149f')]('userProfileSection@get',{'fields':_0x21abf2('0xe6a'),'userProfileId':_0x59e282[_0x21abf2('0xacc')]()[_0x21abf2('0x2168')],'sectionId':0xcb});}],'rpcTelephones':[_0x57c563('0x1d16'),function _0x21bf1f(_0xd5c9c6){var _0x1e3562=_0x57c563;return _0xd5c9c6[_0x1e3562('0x149f')](_0x1e3562('0x1978'));}]},'authenticate':!![],'permissionId':0x19b})[_0x57c563('0xb46')](_0x57c563('0x15cc'),{'url':_0x57c563('0x274d'),'controller':_0x57c563('0x26a5'),'templateUrl':_0x4eb593,'resolve':{'trunks':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x1e02af(_0x547c50,_0x2ccc61){var _0x627326=_0x57c563;return _0x2ccc61[_0x627326('0x26e8')](_0x627326('0x178b'))?_0x547c50[_0x627326('0x149f')](_0x627326('0x17ef'),{'fields':_0x627326('0x17fe'),'active':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x547c50[_0x627326('0x149f')](_0x627326('0x49a'),{'id':_0x2ccc61[_0x627326('0xacc')]()[_0x627326('0x2168')],'section':'Trunks','fields':_0x627326('0x17fe'),'active':!![],'sort':_0x627326('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x57c563('0x1dfd'),function _0x3da119(_0x218de1,_0x841cb4){var _0x52a65f=_0x57c563;return _0x841cb4[_0x52a65f('0x26e8')](_0x52a65f('0x178b'))?null:_0x218de1[_0x52a65f('0x149f')](_0x52a65f('0x567'),{'fields':'id,name,crudPermissions','id':_0x841cb4[_0x52a65f('0xacc')]()[_0x52a65f('0x2168')]});}],'userProfileSection':['apiResolver',_0x57c563('0x1dfd'),function _0x54dc13(_0x4266a5,_0x43a951){var _0x2b2e5b=_0x57c563;return _0x43a951[_0x2b2e5b('0x26e8')]('admin')?null:_0x4266a5[_0x2b2e5b('0x149f')](_0x2b2e5b('0x89e'),{'fields':_0x2b2e5b('0xe6a'),'userProfileId':_0x43a951[_0x2b2e5b('0xacc')]()[_0x2b2e5b('0x2168')],'sectionId':0x3f3});}],'rpcTrunks':[_0x57c563('0x1d16'),function _0x41384b(_0x2121ad){var _0x105a36=_0x57c563;return _0x2121ad[_0x105a36('0x149f')](_0x105a36('0x965'));}]},'authenticate':!![],'permissionId':0x19b})[_0x57c563('0xb46')](_0x57c563('0x1228'),{'url':_0x57c563('0x1d17'),'controller':_0x57c563('0x2059'),'templateUrl':_0x4706a8,'resolve':{'queues':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0xa911d2(_0x5ead4b,_0x4b8bd4){var _0x1c80c8=_0x57c563;return _0x4b8bd4[_0x1c80c8('0x26e8')](_0x1c80c8('0x178b'))?_0x5ead4b['resolve'](_0x1c80c8('0x1b1'),{'type':'inbound','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5ead4b['resolve']('userProfile@getResources',{'id':_0x4b8bd4[_0x1c80c8('0xacc')]()[_0x1c80c8('0x2168')],'section':'VoiceQueues','channel':'voice','type':'inbound','sort':_0x1c80c8('0xd82'),'limit':0xa,'page':0x1});}],'userProfile':[_0x57c563('0x1d16'),'Auth',function _0x3487e3(_0x61b8a4,_0x3a64cf){var _0x239093=_0x57c563;return _0x3a64cf['hasRole'](_0x239093('0x178b'))?null:_0x61b8a4[_0x239093('0x149f')](_0x239093('0x567'),{'fields':_0x239093('0x1bb0'),'id':_0x3a64cf[_0x239093('0xacc')]()[_0x239093('0x2168')]});}],'userProfileSection':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x535107(_0x1b870c,_0x2ad7d9){var _0x29ffa4=_0x57c563;return _0x2ad7d9[_0x29ffa4('0x26e8')](_0x29ffa4('0x178b'))?null:_0x1b870c[_0x29ffa4('0x149f')](_0x29ffa4('0x89e'),{'fields':_0x29ffa4('0xe6a'),'userProfileId':_0x2ad7d9['getCurrentUser']()['userProfileId'],'sectionId':0x191});}],'rpcQueues':[_0x57c563('0x1d16'),function _0x2a0de4(_0x42293b){var _0x1cad0d=_0x57c563;return _0x42293b[_0x1cad0d('0x149f')](_0x1cad0d('0xf2d'));}]},'authenticate':!![],'permissionId':0x19b})[_0x57c563('0xb46')](_0x57c563('0x8c6'),{'url':_0x57c563('0x1b33'),'controller':_0x57c563('0x1e44'),'templateUrl':_0x1a6f9b,'resolve':{'agents':[_0x57c563('0x1d16'),'Auth',function _0x39cbbc(_0x23cb57,_0x426566){var _0x3aa64b=_0x57c563;return _0x426566['hasRole'](_0x3aa64b('0x178b'))?_0x23cb57[_0x3aa64b('0x149f')]('user@get',{'fields':_0x3aa64b('0xd4f'),'role':_0x3aa64b('0xeff'),'nolimit':!![]}):_0x23cb57[_0x3aa64b('0x149f')]('userProfile@getResources',{'id':_0x426566[_0x3aa64b('0xacc')]()[_0x3aa64b('0x2168')],'section':_0x3aa64b('0x91a'),'fields':_0x3aa64b('0xd4f'),'role':_0x3aa64b('0xeff'),'nolimit':!![]});}],'queues':['apiResolver',_0x57c563('0x1dfd'),function _0x18564a(_0x5760a9,_0x56e0fc){var _0x106c13=_0x57c563;return _0x56e0fc[_0x106c13('0x26e8')](_0x106c13('0x178b'))?_0x5760a9[_0x106c13('0x149f')](_0x106c13('0x1b1'),{'type':_0x106c13('0x4b8'),'sort':_0x106c13('0xd82'),'nolimit':!![]}):_0x5760a9[_0x106c13('0x149f')](_0x106c13('0x49a'),{'id':_0x56e0fc[_0x106c13('0xacc')]()['userProfileId'],'section':'VoiceQueues','channel':'voice','type':_0x106c13('0x4b8'),'sort':_0x106c13('0xd82'),'nolimit':!![]});}],'userProfile':[_0x57c563('0x1d16'),'Auth',function _0x56df5b(_0x63fb2c,_0x4d4feb){var _0x13384a=_0x57c563;return _0x4d4feb['hasRole'](_0x13384a('0x178b'))?null:_0x63fb2c['resolve'](_0x13384a('0x567'),{'fields':'id,name,crudPermissions','id':_0x4d4feb[_0x13384a('0xacc')]()[_0x13384a('0x2168')]});}],'userProfileSection':['apiResolver','Auth',function _0x1ddc93(_0x1d0470,_0x51ae6a){var _0x24b2c6=_0x57c563;return _0x51ae6a[_0x24b2c6('0x26e8')]('admin')?null:_0x1d0470[_0x24b2c6('0x149f')](_0x24b2c6('0x89e'),{'fields':_0x24b2c6('0xe6a'),'userProfileId':_0x51ae6a[_0x24b2c6('0xacc')]()['userProfileId'],'sectionId':0x191});}],'rpcVoiceQueuesChannels':[_0x57c563('0x1d16'),function _0x53fd87(_0x40ae52){var _0x593f1f=_0x57c563;return _0x40ae52[_0x593f1f('0x149f')](_0x593f1f('0x214e'));}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x57c563('0x1e5d'),{'url':_0x57c563('0x221b'),'controller':_0x57c563('0xf75'),'templateUrl':_0x37b5f1,'resolve':{'agents':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x236815(_0x1a4d79,_0x2b315b){var _0x3dc635=_0x57c563;return _0x2b315b[_0x3dc635('0x26e8')]('admin')?_0x1a4d79['resolve'](_0x3dc635('0xde4'),{'fields':'id,name,role,context','role':_0x3dc635('0xeff'),'nolimit':!![]}):_0x1a4d79['resolve']('userProfile@getResources',{'id':_0x2b315b[_0x3dc635('0xacc')]()[_0x3dc635('0x2168')],'section':_0x3dc635('0x91a'),'fields':_0x3dc635('0xd4f'),'role':_0x3dc635('0xeff'),'nolimit':!![]});}],'queues':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x19e6ee(_0x133b4f,_0x40ec61){var _0x26e1cd=_0x57c563;return _0x40ec61['hasRole']('admin')?_0x133b4f[_0x26e1cd('0x149f')](_0x26e1cd('0x1b1'),{'type':_0x26e1cd('0x4b8'),'sort':_0x26e1cd('0xd82'),'nolimit':!![]}):_0x133b4f[_0x26e1cd('0x149f')](_0x26e1cd('0x49a'),{'id':_0x40ec61[_0x26e1cd('0xacc')]()['userProfileId'],'section':_0x26e1cd('0x24cb'),'channel':_0x26e1cd('0x1b9'),'type':_0x26e1cd('0x4b8'),'sort':'-updatedAt','nolimit':!![]});}],'dispositions':[_0x57c563('0x1d16'),'Auth',function _0x50443b(_0x1d95f9,_0x56ed70){var _0x118c36=_0x57c563;return _0x56ed70[_0x118c36('0x26e8')](_0x118c36('0x178b'))?_0x1d95f9['resolve'](_0x118c36('0xa42'),{'fields':_0x118c36('0x2593'),'sort':'-updatedAt','MailAccountId':_0x118c36('0x1ed9'),'FaxAccountId':_0x118c36('0x1ed9'),'SmsAccountId':_0x118c36('0x1ed9'),'WhatsappAccountId':'null','OpenchannelAccountId':'null','ChatWebsiteId':_0x118c36('0x1ed9'),'ListId':_0x118c36('0x1ed9'),'nolimit':!![]}):_0x1d95f9[_0x118c36('0x149f')](_0x118c36('0x49a'),{'id':_0x56ed70['getCurrentUser']()[_0x118c36('0x2168')],'section':'Dispositions','fields':'createdAt,updatedAt,id,name','sort':'-updatedAt','MailAccountId':_0x118c36('0x1ed9'),'FaxAccountId':'null','SmsAccountId':_0x118c36('0x1ed9'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x118c36('0x1ed9'),'ChatWebsiteId':_0x118c36('0x1ed9'),'ListId':_0x118c36('0x1ed9'),'nolimit':!![]});}],'userProfile':[_0x57c563('0x1d16'),'Auth',function _0xef5108(_0x322018,_0x2fa758){var _0x400427=_0x57c563;return _0x2fa758[_0x400427('0x26e8')](_0x400427('0x178b'))?null:_0x322018[_0x400427('0x149f')](_0x400427('0x567'),{'fields':_0x400427('0x1bb0'),'id':_0x2fa758[_0x400427('0xacc')]()[_0x400427('0x2168')]});}],'userProfileSection':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x1752bc(_0x4b14ef,_0xf70d98){var _0x5cc6cc=_0x57c563;return _0xf70d98['hasRole']('admin')?null:_0x4b14ef[_0x5cc6cc('0x149f')](_0x5cc6cc('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xf70d98['getCurrentUser']()['userProfileId'],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})[_0x57c563('0xb46')]('app.voice.realtime.queue_params',{'url':_0x57c563('0x15e2'),'controller':_0x57c563('0x15f0'),'templateUrl':_0x51115e,'resolve':{'queues':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x3a9ee5(_0x7d5e9e,_0x4623fc){var _0x2dc2fb=_0x57c563;return _0x4623fc[_0x2dc2fb('0x26e8')]('admin')?_0x7d5e9e[_0x2dc2fb('0x149f')](_0x2dc2fb('0x1b1'),{'type':_0x2dc2fb('0x4b8'),'fields':_0x2dc2fb('0x17fe'),'sort':_0x2dc2fb('0xd82'),'limit':0xa,'offset':0x0}):_0x7d5e9e[_0x2dc2fb('0x149f')](_0x2dc2fb('0x49a'),{'id':_0x4623fc[_0x2dc2fb('0xacc')]()[_0x2dc2fb('0x2168')],'section':_0x2dc2fb('0x24cb'),'channel':'voice','type':_0x2dc2fb('0x4b8'),'sort':_0x2dc2fb('0xd82'),'nolimit':!![]});}],'userProfile':[_0x57c563('0x1d16'),'Auth',function _0x3ee926(_0x529c54,_0x18e89b){var _0x37b12b=_0x57c563;return _0x18e89b[_0x37b12b('0x26e8')](_0x37b12b('0x178b'))?null:_0x529c54[_0x37b12b('0x149f')](_0x37b12b('0x567'),{'fields':_0x37b12b('0x1bb0'),'id':_0x18e89b[_0x37b12b('0xacc')]()[_0x37b12b('0x2168')]});}],'userProfileSection':[_0x57c563('0x1d16'),_0x57c563('0x1dfd'),function _0x14b9ee(_0x3dbebe,_0x1ba531){var _0x27cf90=_0x57c563;return _0x1ba531[_0x27cf90('0x26e8')](_0x27cf90('0x178b'))?null:_0x3dbebe[_0x27cf90('0x149f')](_0x27cf90('0x89e'),{'fields':_0x27cf90('0xe6a'),'userProfileId':_0x1ba531[_0x27cf90('0xacc')]()[_0x27cf90('0x2168')],'sectionId':0x191});}],'rpcQueues':[_0x57c563('0x1d16'),function _0x423d9c(_0x4d3fae){var _0x47dc96=_0x57c563;return _0x4d3fae['resolve'](_0x47dc96('0xf2d'));}]},'authenticate':!![],'permissionId':0x19b})[_0x57c563('0xb46')](_0x57c563('0x373'),{'url':_0x57c563('0x857'),'controller':_0x57c563('0x24c6'),'templateUrl':_0x393146,'resolve':{'rpcCalls':[_0x57c563('0x1d16'),function _0x45d788(_0x587884){var _0x1a912f=_0x57c563;return _0x587884[_0x1a912f('0x149f')](_0x1a912f('0x1e5c'));}]},'authenticate':!![],'permissionId':0x19b});}angular['module'](_0x1a8446('0x19a1'),[])['config'](_0x58999e)[_0x1a8446('0x780')](_0x1a8446('0x884'),_0x3cdd23)['controller']('AgentsVoiceRealtimeController',_0x4df248)['controller'](_0x1a8446('0x164a'),_0x454440)[_0x1a8446('0x780')](_0x1a8446('0x434'),_0x478cd5)['controller'](_0x1a8446('0x487'),_0x17ba70)['controller'](_0x1a8446('0x113e'),_0x132960)[_0x1a8446('0x1be9')](_0x1a8446('0x5b4'),_0x4abb09)[_0x1a8446('0x780')](_0x1a8446('0x179a'),_0x458da1)[_0x1a8446('0x780')](_0x1a8446('0x1e88'),_0x3ef29a)[_0x1a8446('0x780')](_0x1a8446('0xa09'),_0x1b1589);const _0xda516c=_0x4fb511['p']+_0x1a8446('0x246d');_0x2df0d3['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'chanSpies',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x2df0d3(_0x97f7d5,_0x3999ef,_0x4e02e8,_0x5b1367,_0x6c1812,_0x4d9861,_0x1de9fd,_0x5d06f6,_0x35509b,_0x6343db,_0x78381a,_0x1fdd16,_0x1e3424,_0x36f7e3,_0x10b224,_0x14b0d1,_0x29dca7){var _0x2fba04=_0x1a8446,_0x21aae3=this;_0x21aae3[_0x2fba04('0x1202')]=_0x14b0d1,_0x21aae3['setting']=_0x29dca7,_0x21aae3[_0x2fba04('0x7fc')]=_0x10b224['getCurrentUser'](),_0x21aae3[_0x2fba04('0x4bb')]=_0x35509b||{'count':0x0,'rows':[]},_0x21aae3[_0x2fba04('0x1e97')]=_0x6343db,_0x21aae3[_0x2fba04('0x1a50')]=_0x78381a&&_0x78381a[_0x2fba04('0xd15')]==0x1?_0x78381a[_0x2fba04('0x580')][0x0]:null,_0x21aae3['crudPermissions']=_0x10b224[_0x2fba04('0xffd')](_0x21aae3[_0x2fba04('0x1a50')]?_0x21aae3[_0x2fba04('0x1a50')][_0x2fba04('0xada')]:null),_0x21aae3['table']=_0x2fba04('0x4bb'),_0x21aae3[_0x2fba04('0x164')]='',_0x21aae3[_0x2fba04('0x8cc')]=null,_0x21aae3[_0x2fba04('0x8fb')]=[],_0x21aae3[_0x2fba04('0x582')]={'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':_0x2fba04('0xd82'),'limit':0xa,'page':0x1},_0x21aae3[_0x2fba04('0x18e9')]=_0x51538b()[_0x2fba04('0x184a')]([{'option':_0x2fba04('0x22f9'),'value':'\x27b\x27'},{'option':_0x2fba04('0x551'),'value':'\x27B\x27'},{'option':_0x2fba04('0x18b0'),'value':'\x27E\x27'},{'option':'o:\x20Only\x20listen\x20to\x20audio\x20coming\x20from\x20this\x20channel.','value':_0x2fba04('0x220e')},{'option':'q:\x20Don\x27t\x20play\x20a\x20beep\x20when\x20beginning\x20to\x20spy\x20on\x20a\x20channel,\x20or\x20speak\x20the\x20selected\x20channel\x20name.','value':_0x2fba04('0xa60')},{'option':_0x2fba04('0x1f0e'),'value':_0x2fba04('0xdd')},{'option':'S:\x20Stop\x20when\x20no\x20more\x20channels\x20are\x20left\x20to\x20spy\x20on.','value':_0x2fba04('0x1fc1')},{'option':_0x2fba04('0xb8f'),'value':_0x2fba04('0x2bc')},{'option':'W:\x20Enable\x20private\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel\x20but\x20cannot\x20listen\x20to\x20that\x20channel.','value':_0x2fba04('0x197a')}],function(_0x532234){var _0x15546d=_0x2fba04;return _0x51538b()['replace'](_0x532234[_0x15546d('0x12f4')],new RegExp('\x27','g'),'');}),_0x21aae3[_0x2fba04('0x105a')]=_0x51538b()['keyBy']([{'option':'wav','value':_0x2fba04('0x460')},{'option':_0x2fba04('0x2172'),'value':_0x2fba04('0x3cc')},{'option':_0x2fba04('0x1674'),'value':_0x2fba04('0x1057')}],function(_0x85e188){var _0x3e1eff=_0x2fba04;return _0x51538b()[_0x3e1eff('0x170d')](_0x85e188[_0x3e1eff('0x12f4')],new RegExp('\x27','g'),'');}),_0x21aae3[_0x2fba04('0x1960')]=_0x46cfe6,_0x21aae3[_0x2fba04('0x271')]=_0x33baef,_0x21aae3['success']=_0x3fb790,_0x21aae3[_0x2fba04('0x2712')]=_0x32cfc2,_0x21aae3[_0x2fba04('0x1ca7')]=_0x516d3a,_0x21aae3[_0x2fba04('0x27a')]=_0x1b8544,_0x21aae3[_0x2fba04('0x1c62')]=_0x34d508,_0x21aae3[_0x2fba04('0x6d6')]=_0x32d127,_0x21aae3['deselectChanSpies']=_0x2b746b,_0x21aae3[_0x2fba04('0x1b4b')]=_0x3a906d;function _0x46cfe6(_0x4fb5b3,_0x22ce89){var _0x49960d=_0x2fba04;_0x6c1812[_0x49960d('0x1e6d')]({'controller':_0x49960d('0x640'),'controllerAs':'vm','templateUrl':_0xda516c,'parent':angular[_0x49960d('0x1aa8')](_0x4d9861[_0x49960d('0x54c')]),'targetEvent':_0x22ce89,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x4fb5b3,'chanSpies':_0x21aae3[_0x49960d('0x4bb')][_0x49960d('0x580')],'license':_0x21aae3[_0x49960d('0x1202')],'setting':null,'crudPermissions':_0x21aae3['crudPermissions']}});}function _0x33baef(_0x361d3a,_0x30a022){var _0x4158e0=_0x2fba04,_0x2df4e7=_0x6c1812[_0x4158e0('0x281e')]()[_0x4158e0('0x110a')](_0x4158e0('0x88d')+_0x51538b()['startCase'](_0x4158e0('0x9a4'))+'?')[_0x4158e0('0x102e')](_0x4158e0('0x389')+(_0x361d3a[_0x4158e0('0x25d6')]||_0x4158e0('0x9a4'))+_0x4158e0('0x697')+'\x20will\x20be\x20deleted.')[_0x4158e0('0x5b5')](_0x4158e0('0x9c2'))[_0x4158e0('0x116d')](_0x30a022)['ok']('OK')['cancel'](_0x4158e0('0x2410'));_0x6c1812[_0x4158e0('0x1e6d')](_0x2df4e7)[_0x4158e0('0xaa5')](function(){_0x1b8544(_0x361d3a);},function(){var _0x4b116c=_0x4158e0;console[_0x4b116c('0x18d5')]('CANCEL');});}var _0x4f7fbe=!![],_0x297496=0x1;_0x97f7d5[_0x2fba04('0x1ccf')](_0x2fba04('0x1788'),function(_0x5272b1,_0x34fa0b){var _0x451c8f=_0x2fba04;_0x4f7fbe?_0x1de9fd(function(){_0x4f7fbe=![];}):(!_0x34fa0b&&(_0x297496=_0x21aae3[_0x451c8f('0x582')]['page']),_0x5272b1!==_0x34fa0b&&(_0x21aae3[_0x451c8f('0x582')][_0x451c8f('0x41')]=0x1),!_0x5272b1&&(_0x21aae3[_0x451c8f('0x582')][_0x451c8f('0x41')]=_0x297496),_0x21aae3[_0x451c8f('0x2712')]());});function _0x3fb790(_0x57c454){var _0x208254=_0x2fba04;_0x21aae3[_0x208254('0x4bb')]=_0x57c454||{'count':0x0,'rows':[]};}function _0x32cfc2(){var _0x30423b=_0x2fba04;_0x21aae3['query'][_0x30423b('0x8b1')]=(_0x21aae3[_0x30423b('0x582')]['page']-0x1)*_0x21aae3['query'][_0x30423b('0xf4d')],_0x10b224[_0x30423b('0x26e8')](_0x30423b('0x178b'))?_0x21aae3[_0x30423b('0x159a')]=_0x1fdd16[_0x30423b('0x10ba')]['get'](_0x21aae3[_0x30423b('0x582')],_0x3fb790)['$promise']:(_0x21aae3['query']['id']=_0x21aae3[_0x30423b('0x1e97')]['id'],_0x21aae3[_0x30423b('0x582')][_0x30423b('0x224d')]='ChanSpies',_0x21aae3[_0x30423b('0x159a')]=_0x1fdd16[_0x30423b('0x1e97')]['getResources'](_0x21aae3['query'],_0x3fb790)['$promise']);}function _0x516d3a(_0x3f24af,_0x59b29a){var _0x4caa20=_0x2fba04;_0x6c1812[_0x4caa20('0x1e6d')]({'controller':_0x4caa20('0x640'),'controllerAs':'vm','templateUrl':_0xda516c,'parent':angular[_0x4caa20('0x1aa8')](_0x4d9861[_0x4caa20('0x54c')]),'targetEvent':_0x3f24af,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x59b29a,'chanSpies':_0x21aae3[_0x4caa20('0x4bb')][_0x4caa20('0x580')],'license':_0x21aae3[_0x4caa20('0x1202')],'setting':_0x21aae3[_0x4caa20('0x143f')],'crudPermissions':_0x21aae3[_0x4caa20('0xada')]}});}function _0x1b8544(_0x5c8425){var _0x300000=_0x2fba04;_0x1fdd16[_0x300000('0x10ba')][_0x300000('0x926')]({'id':_0x5c8425['id']})['$promise'][_0x300000('0xaa5')](function(){var _0x56d52a=_0x300000;_0x51538b()[_0x56d52a('0xf6d')](_0x21aae3[_0x56d52a('0x4bb')][_0x56d52a('0x580')],{'id':_0x5c8425['id']}),_0x21aae3[_0x56d52a('0x4bb')][_0x56d52a('0xd15')]-=0x1,!_0x21aae3[_0x56d52a('0x4bb')][_0x56d52a('0x580')][_0x56d52a('0x2587')]&&_0x21aae3[_0x56d52a('0x2712')](),_0x36f7e3[_0x56d52a('0xe10')]({'title':_0x51538b()[_0x56d52a('0x196a')](_0x56d52a('0x9a4'))+_0x56d52a('0x8bb'),'msg':_0x5c8425[_0x56d52a('0x25d6')]?_0x5c8425['name']+_0x56d52a('0xcd9'):''});})[_0x300000('0x253d')](function(_0x1a4514){var _0x3c0089=_0x300000;if(_0x1a4514[_0x3c0089('0x10fd')]&&_0x1a4514[_0x3c0089('0x10fd')][_0x3c0089('0x4c6')]&&_0x1a4514[_0x3c0089('0x10fd')]['errors'][_0x3c0089('0x2587')]){_0x21aae3[_0x3c0089('0x4c6')]=_0x1a4514[_0x3c0089('0x10fd')][_0x3c0089('0x4c6')]||[{'message':_0x1a4514[_0x3c0089('0x684')](),'type':_0x3c0089('0x78e')}];for(var _0x314d2e=0x0;_0x314d2e<_0x1a4514[_0x3c0089('0x10fd')][_0x3c0089('0x4c6')]['length'];_0x314d2e++){_0x36f7e3[_0x3c0089('0x187f')]({'title':_0x1a4514[_0x3c0089('0x10fd')][_0x3c0089('0x4c6')][_0x314d2e][_0x3c0089('0x6c8')],'msg':_0x1a4514[_0x3c0089('0x10fd')][_0x3c0089('0x4c6')][_0x314d2e][_0x3c0089('0x1402')]});}}else _0x36f7e3['error']({'title':_0x1a4514[_0x3c0089('0x2fa')]?_0x3c0089('0x16c2')+_0x1a4514[_0x3c0089('0x2fa')]+_0x3c0089('0x169e')+_0x1a4514['statusText']:'SYSTEM:DELETEvoiceChanSpy','msg':_0x1a4514['data']?JSON[_0x3c0089('0xa48')](_0x1a4514['data'][_0x3c0089('0x1402')]):_0x1a4514['message']||_0x1a4514['toString']()});});}function _0x34d508(){var _0x4df73c=_0x2fba04,_0x40c560=angular[_0x4df73c('0x20a')](_0x21aae3[_0x4df73c('0x8fb')]);return _0x21aae3[_0x4df73c('0x8fb')]=[],_0x40c560;}function _0x32d127(_0x505da8){var _0x3cf3b4=_0x2fba04,_0x45b02e=_0x6c1812[_0x3cf3b4('0x281e')]()[_0x3cf3b4('0x110a')](_0x3cf3b4('0x22cf'))['htmlContent'](_0x3cf3b4('0x389')+_0x21aae3['selectedChanSpies'][_0x3cf3b4('0x2587')]+_0x3cf3b4('0x1443')+'\x20will\x20be\x20deleted.')[_0x3cf3b4('0x5b5')](_0x3cf3b4('0x1004'))[_0x3cf3b4('0x116d')](_0x505da8)['ok']('OK')['cancel'](_0x3cf3b4('0x2410'));_0x6c1812[_0x3cf3b4('0x1e6d')](_0x45b02e)['then'](function(){var _0x1d46b1=_0x3cf3b4;_0x21aae3[_0x1d46b1('0x8fb')][_0x1d46b1('0x15b5')](function(_0x2f4004){_0x1b8544(_0x2f4004);}),_0x21aae3['selectedChanSpies']=[];});}function _0x2b746b(){var _0x4ac09f=_0x2fba04;_0x21aae3[_0x4ac09f('0x8fb')]=[];}function _0x3a906d(){var _0x2a1cfe=_0x2fba04;_0x21aae3[_0x2a1cfe('0x8fb')]=_0x21aae3[_0x2a1cfe('0x4bb')][_0x2a1cfe('0x580')];}}const _0x27cc5c=_0x2df0d3;_0x31f65e[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x4bb'),_0x1a8446('0x9a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x31f65e(_0x387dd1,_0xcf6adc,_0x89d8f6,_0x1fea43,_0x3b0d3f,_0x270b3a,_0x597bea,_0x5b59d4,_0x41e47b,_0x174e4d,_0x12ed5a,_0x2ac4b5,_0x9bc454,_0x583b46){var _0x3fa40e=_0x1a8446,_0x5c8dac=this;_0x5c8dac[_0x3fa40e('0x7fc')]=_0x12ed5a['getCurrentUser'](),_0x5c8dac['errors']=[],_0x5c8dac[_0x3fa40e('0x143f')]=_0x9bc454,_0x5c8dac[_0x3fa40e('0x1202')]=_0x2ac4b5,_0x5c8dac[_0x3fa40e('0xada')]=_0x583b46,_0x5c8dac[_0x3fa40e('0x9f0')]={},_0x5c8dac[_0x3fa40e('0x1d53')]=_0x5c8dac['setting']&&_0x5c8dac['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c8dac['title']=_0x3fa40e('0xf61'),_0x5c8dac[_0x3fa40e('0x9a4')]=angular[_0x3fa40e('0x20a')](_0x41e47b),_0x5c8dac[_0x3fa40e('0x4bb')]=_0x5b59d4,_0x5c8dac['newchanSpy']=![];!_0x5c8dac['chanSpy']&&(_0x5c8dac[_0x3fa40e('0x9a4')]={'recordingFormat':_0x3fa40e('0x2715')},_0x5c8dac[_0x3fa40e('0x110a')]=_0x3fa40e('0x1fdb'),_0x5c8dac['newchanSpy']=!![]);_0x5c8dac[_0x3fa40e('0x25f7')]=_0x45de7f,_0x5c8dac[_0x3fa40e('0x1a5f')]=_0x389f14,_0x5c8dac[_0x3fa40e('0x27a')]=_0x5835bf,_0x5c8dac['getDateFromString']=_0x1f0f7a,_0x5c8dac['closeDialog']=_0x51b504;function _0x45de7f(){var _0x56fb3c=_0x3fa40e;_0x5c8dac[_0x56fb3c('0x4c6')]=[],_0x174e4d[_0x56fb3c('0x10ba')][_0x56fb3c('0x242b')](_0x5c8dac[_0x56fb3c('0x9a4')])[_0x56fb3c('0x1dc2')]['then'](function(_0x1b59d8){var _0x2db38b=_0x56fb3c;_0x5c8dac[_0x2db38b('0x4bb')][_0x2db38b('0x6ee')](_0x1b59d8['toJSON']()),_0x597bea[_0x2db38b('0xe10')]({'title':_0x2db38b('0xbda'),'msg':_0x5c8dac[_0x2db38b('0x9a4')][_0x2db38b('0x25d6')]?_0x5c8dac['chanSpy'][_0x2db38b('0x25d6')]+_0x2db38b('0xdca'):''}),_0x51b504(_0x1b59d8);})['catch'](function(_0x596dd5){var _0x5093f4=_0x56fb3c;if(_0x596dd5[_0x5093f4('0x10fd')]&&_0x596dd5[_0x5093f4('0x10fd')][_0x5093f4('0x4c6')]&&_0x596dd5[_0x5093f4('0x10fd')][_0x5093f4('0x4c6')][_0x5093f4('0x2587')]){_0x5c8dac[_0x5093f4('0x4c6')]=_0x596dd5[_0x5093f4('0x10fd')][_0x5093f4('0x4c6')]||[{'message':_0x596dd5[_0x5093f4('0x684')](),'type':_0x5093f4('0x2304')}];for(var _0x509831=0x0;_0x509831<_0x596dd5[_0x5093f4('0x10fd')][_0x5093f4('0x4c6')][_0x5093f4('0x2587')];_0x509831+=0x1){_0x597bea[_0x5093f4('0x187f')]({'title':_0x596dd5['data'][_0x5093f4('0x4c6')][_0x509831][_0x5093f4('0x6c8')],'msg':_0x596dd5['data']['errors'][_0x509831]['message']});}}else _0x597bea[_0x5093f4('0x187f')]({'title':_0x596dd5[_0x5093f4('0x2fa')]?_0x5093f4('0x16c2')+_0x596dd5[_0x5093f4('0x2fa')]+_0x5093f4('0x169e')+_0x596dd5[_0x5093f4('0x24df')]:_0x5093f4('0x2304'),'msg':_0x596dd5[_0x5093f4('0x10fd')]?JSON[_0x5093f4('0xa48')](_0x596dd5[_0x5093f4('0x10fd')][_0x5093f4('0x1402')]):_0x596dd5['toString']()});});}function _0x389f14(){var _0x9604cb=_0x3fa40e;_0x5c8dac[_0x9604cb('0x4c6')]=[],_0x174e4d['voiceChanSpy']['update']({'id':_0x5c8dac[_0x9604cb('0x9a4')]['id']},_0x5c8dac[_0x9604cb('0x9a4')])['$promise'][_0x9604cb('0xaa5')](function(_0x2c8d31){var _0x303b33=_0x9604cb,_0x238660=_0x51538b()[_0x303b33('0xe9e')](_0x5c8dac[_0x303b33('0x4bb')],{'id':_0x2c8d31['id']});_0x238660&&_0x51538b()[_0x303b33('0x283c')](_0x238660,_0x51538b()[_0x303b33('0x104e')](_0x2c8d31['toJSON'](),_0x51538b()[_0x303b33('0x9f2')](_0x238660))),_0x597bea[_0x303b33('0xe10')]({'title':_0x303b33('0x133e'),'msg':_0x5c8dac[_0x303b33('0x9a4')][_0x303b33('0x25d6')]?_0x5c8dac['chanSpy'][_0x303b33('0x25d6')]+_0x303b33('0x20bf'):''}),_0x51b504(_0x2c8d31);})['catch'](function(_0xf25b43){var _0x4eaea8=_0x9604cb;if(_0xf25b43[_0x4eaea8('0x10fd')]&&_0xf25b43['data'][_0x4eaea8('0x4c6')]&&_0xf25b43[_0x4eaea8('0x10fd')]['errors'][_0x4eaea8('0x2587')]){_0x5c8dac[_0x4eaea8('0x4c6')]=_0xf25b43['data'][_0x4eaea8('0x4c6')]||[{'message':_0xf25b43[_0x4eaea8('0x684')](),'type':_0x4eaea8('0x2464')}];for(var _0x1445eb=0x0;_0x1445eb<_0xf25b43[_0x4eaea8('0x10fd')][_0x4eaea8('0x4c6')][_0x4eaea8('0x2587')];_0x1445eb++){_0x597bea[_0x4eaea8('0x187f')]({'title':_0xf25b43['data'][_0x4eaea8('0x4c6')][_0x1445eb][_0x4eaea8('0x6c8')],'msg':_0xf25b43[_0x4eaea8('0x10fd')][_0x4eaea8('0x4c6')][_0x1445eb][_0x4eaea8('0x1402')]});}}else _0x597bea[_0x4eaea8('0x187f')]({'title':_0xf25b43[_0x4eaea8('0x2fa')]?_0x4eaea8('0x16c2')+_0xf25b43[_0x4eaea8('0x2fa')]+_0x4eaea8('0x169e')+_0xf25b43['statusText']:_0x4eaea8('0x2464'),'msg':_0xf25b43[_0x4eaea8('0x10fd')]?JSON[_0x4eaea8('0xa48')](_0xf25b43[_0x4eaea8('0x10fd')][_0x4eaea8('0x1402')]):_0xf25b43[_0x4eaea8('0x684')]()});});}function _0x5835bf(_0x416889){var _0x49ee5a=_0x3fa40e;_0x5c8dac[_0x49ee5a('0x4c6')]=[];var _0x3437f4=_0x1fea43['confirm']()[_0x49ee5a('0x110a')](_0x49ee5a('0x12a3'))[_0x49ee5a('0x15af')](_0x49ee5a('0x26e1'))[_0x49ee5a('0x5b5')](_0x49ee5a('0x5fd'))['ok'](_0x49ee5a('0x1e76'))['cancel'](_0x49ee5a('0x9c6'))[_0x49ee5a('0x116d')](_0x416889);_0x1fea43[_0x49ee5a('0x1e6d')](_0x3437f4)[_0x49ee5a('0xaa5')](function(){var _0x54d863=_0x49ee5a;_0x174e4d[_0x54d863('0x10ba')][_0x54d863('0x926')]({'id':_0x5c8dac[_0x54d863('0x9a4')]['id']})[_0x54d863('0x1dc2')]['then'](function(){var _0x3eb409=_0x54d863;_0x51538b()['remove'](_0x5c8dac[_0x3eb409('0x4bb')],{'id':_0x5c8dac['chanSpy']['id']}),_0x597bea['success']({'title':_0x3eb409('0x5d4'),'msg':(_0x5c8dac['chanSpy'][_0x3eb409('0x25d6')]||_0x3eb409('0x9a4'))+_0x3eb409('0xcd9')}),_0x51b504(_0x5c8dac[_0x3eb409('0x9a4')]);})['catch'](function(_0x5278ed){var _0x30425b=_0x54d863;if(_0x5278ed[_0x30425b('0x10fd')]&&_0x5278ed['data'][_0x30425b('0x4c6')]&&_0x5278ed[_0x30425b('0x10fd')][_0x30425b('0x4c6')][_0x30425b('0x2587')]){_0x5c8dac[_0x30425b('0x4c6')]=_0x5278ed[_0x30425b('0x10fd')][_0x30425b('0x4c6')]||[{'message':_0x5278ed[_0x30425b('0x684')](),'type':_0x30425b('0x17c9')}];for(var _0x52d754=0x0;_0x52d754<_0x5278ed[_0x30425b('0x10fd')]['errors'][_0x30425b('0x2587')];_0x52d754++){_0x597bea[_0x30425b('0x187f')]({'title':_0x5278ed[_0x30425b('0x10fd')]['errors'][_0x52d754][_0x30425b('0x6c8')],'msg':_0x5278ed['data'][_0x30425b('0x4c6')][_0x52d754][_0x30425b('0x1402')]});}}else _0x597bea['error']({'title':_0x5278ed[_0x30425b('0x2fa')]?'API:'+_0x5278ed[_0x30425b('0x2fa')]+_0x30425b('0x169e')+_0x5278ed[_0x30425b('0x24df')]:_0x30425b('0x17c9'),'msg':_0x5278ed['data']?JSON[_0x30425b('0xa48')](_0x5278ed[_0x30425b('0x10fd')][_0x30425b('0x1402')]):_0x5278ed['message']||_0x5278ed[_0x30425b('0x684')]()});});},function(){});}function _0x1f0f7a(_0x26b283){return _0x26b283===null?undefined:new Date(_0x26b283);}function _0x51b504(_0x1094e1){var _0x37fbd4=_0x3fa40e;_0x1fea43[_0x37fbd4('0x1120')](_0x1094e1);}}const _0x4357b0=_0x31f65e,_0x23d9cd=_0x4fb511['p']+_0x1a8446('0x229f');_0xe1afe1[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog','$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0xdc5'),'userProfile',_0x1a8446('0x1a50'),'api','msUtils','toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0xe1afe1(_0x5be438,_0x5ca6bc,_0xd4ee2a,_0x1819fc,_0x4314e0,_0x562a9f,_0x4704aa,_0x143b0c,_0x16c949,_0x249898,_0x139439,_0x4ed1db,_0x352b24,_0x873861,_0x426ea8,_0x299c83,_0x331d3a){var _0x1e17df=_0x1a8446,_0xb93b6a=this;_0xb93b6a[_0x1e17df('0x1202')]=_0x299c83,_0xb93b6a[_0x1e17df('0x143f')]=_0x331d3a,_0xb93b6a[_0x1e17df('0x7fc')]=_0x426ea8['getCurrentUser'](),_0xb93b6a[_0x1e17df('0xdc5')]=_0x16c949||{'count':0x0,'rows':[]},_0xb93b6a['userProfile']=_0x249898,_0xb93b6a['userProfileSection']=_0x139439&&_0x139439[_0x1e17df('0xd15')]==0x1?_0x139439[_0x1e17df('0x580')][0x0]:null,_0xb93b6a[_0x1e17df('0xada')]=_0x426ea8['parseCrudPermissions'](_0xb93b6a[_0x1e17df('0x1a50')]?_0xb93b6a[_0x1e17df('0x1a50')][_0x1e17df('0xada')]:null),_0xb93b6a['table']=_0x1e17df('0xdc5'),_0xb93b6a[_0x1e17df('0x164')]='',_0xb93b6a[_0x1e17df('0x8cc')]=null,_0xb93b6a[_0x1e17df('0x4c')]=[],_0xb93b6a['query']={'fields':'createdAt,updatedAt,id,name,description','sort':_0x1e17df('0xd82'),'defaultEntry':_0x1e17df('0x1355'),'limit':0xa,'page':0x1},_0xb93b6a[_0x1e17df('0x1960')]=_0x522dba,_0xb93b6a[_0x1e17df('0x271')]=_0x3133b1,_0xb93b6a['success']=_0x3384c3,_0xb93b6a['getContexts']=_0x2d5b5e,_0xb93b6a[_0x1e17df('0x824')]=_0x3e7040,_0xb93b6a[_0x1e17df('0x1aa0')]=_0x1245bb,_0xb93b6a[_0x1e17df('0x935')]=_0x530758,_0xb93b6a[_0x1e17df('0x151d')]=_0x327f20,_0xb93b6a[_0x1e17df('0x5a5')]=_0x5bcdae,_0xb93b6a[_0x1e17df('0x1c4d')]=_0x4a46a0;function _0x522dba(_0x3df3f0,_0x528da6){var _0x257e6a=_0x1e17df;_0x4314e0[_0x257e6a('0x1e6d')]({'controller':'CreateOrEditContextDialogController','controllerAs':'vm','templateUrl':_0x23d9cd,'parent':angular[_0x257e6a('0x1aa8')](_0x562a9f[_0x257e6a('0x54c')]),'targetEvent':_0x528da6,'clickOutsideToClose':!![],'locals':{'context':_0x3df3f0,'contexts':_0xb93b6a['contexts'][_0x257e6a('0x580')],'license':_0xb93b6a[_0x257e6a('0x1202')],'setting':null,'crudPermissions':_0xb93b6a[_0x257e6a('0xada')]}});}function _0x3133b1(_0xe0748f,_0x1d9c59){var _0x3099e0=_0x1e17df,_0x1e3005=_0x4314e0[_0x3099e0('0x281e')]()[_0x3099e0('0x110a')](_0x3099e0('0x88d')+_0x51538b()[_0x3099e0('0x196a')](_0x3099e0('0x19cd'))+'?')[_0x3099e0('0x102e')](_0x3099e0('0x389')+(_0xe0748f[_0x3099e0('0x25d6')]||_0x3099e0('0x19cd'))+_0x3099e0('0x697')+'\x20will\x20be\x20deleted.')[_0x3099e0('0x5b5')](_0x3099e0('0x1341'))[_0x3099e0('0x116d')](_0x1d9c59)['ok']('OK')['cancel']('CANCEL');_0x4314e0[_0x3099e0('0x1e6d')](_0x1e3005)['then'](function(){_0x1245bb(_0xe0748f);},function(){console['log']('CANCEL');});}var _0x269c22=!![],_0x39c953=0x1;_0x5be438[_0x1e17df('0x1ccf')](_0x1e17df('0x1788'),function(_0x125687,_0x25fb87){var _0x4f9dab=_0x1e17df;_0x269c22?_0x4704aa(function(){_0x269c22=![];}):(!_0x25fb87&&(_0x39c953=_0xb93b6a[_0x4f9dab('0x582')][_0x4f9dab('0x41')]),_0x125687!==_0x25fb87&&(_0xb93b6a['query'][_0x4f9dab('0x41')]=0x1),!_0x125687&&(_0xb93b6a[_0x4f9dab('0x582')][_0x4f9dab('0x41')]=_0x39c953),_0xb93b6a[_0x4f9dab('0x837')]());});function _0x3384c3(_0x1d0162){var _0x26f420=_0x1e17df;_0xb93b6a[_0x26f420('0xdc5')]=_0x1d0162||{'count':0x0,'rows':[]};}function _0x2d5b5e(){var _0x54ade0=_0x1e17df;_0xb93b6a[_0x54ade0('0x582')][_0x54ade0('0x8b1')]=(_0xb93b6a[_0x54ade0('0x582')][_0x54ade0('0x41')]-0x1)*_0xb93b6a[_0x54ade0('0x582')][_0x54ade0('0xf4d')],_0x426ea8[_0x54ade0('0x26e8')](_0x54ade0('0x178b'))?_0xb93b6a[_0x54ade0('0x159a')]=_0x4ed1db['voiceContext']['get'](_0xb93b6a[_0x54ade0('0x582')],_0x3384c3)[_0x54ade0('0x1dc2')]:(_0xb93b6a['query']['id']=_0xb93b6a[_0x54ade0('0x1e97')]['id'],_0xb93b6a[_0x54ade0('0x582')][_0x54ade0('0x224d')]='Contexts',_0xb93b6a[_0x54ade0('0x159a')]=_0x4ed1db[_0x54ade0('0x1e97')][_0x54ade0('0x1cf1')](_0xb93b6a[_0x54ade0('0x582')],_0x3384c3)[_0x54ade0('0x1dc2')]);}function _0x3e7040(_0x5d34e5,_0x15b3ea){var _0x303bab=_0x1e17df;_0x4314e0['show']({'controller':'CreateOrEditContextDialogController','controllerAs':'vm','templateUrl':_0x23d9cd,'parent':angular[_0x303bab('0x1aa8')](_0x562a9f['body']),'targetEvent':_0x5d34e5,'clickOutsideToClose':!![],'locals':{'context':_0x15b3ea,'contexts':_0xb93b6a[_0x303bab('0xdc5')][_0x303bab('0x580')],'license':_0xb93b6a[_0x303bab('0x1202')],'setting':_0xb93b6a['setting'],'crudPermissions':_0xb93b6a[_0x303bab('0xada')]}});}function _0x1245bb(_0x439f83){var _0x57c684=_0x1e17df;_0x4ed1db[_0x57c684('0x68c')][_0x57c684('0x926')]({'id':_0x439f83['id']})[_0x57c684('0x1dc2')][_0x57c684('0xaa5')](function(){var _0x47f9d9=_0x57c684;_0x51538b()['remove'](_0xb93b6a[_0x47f9d9('0xdc5')][_0x47f9d9('0x580')],{'id':_0x439f83['id']}),_0xb93b6a[_0x47f9d9('0xdc5')][_0x47f9d9('0xd15')]-=0x1,!_0xb93b6a['contexts'][_0x47f9d9('0x580')][_0x47f9d9('0x2587')]&&_0xb93b6a[_0x47f9d9('0x837')](),_0x873861[_0x47f9d9('0xe10')]({'title':_0x51538b()['startCase'](_0x47f9d9('0x14c9'))+_0x47f9d9('0x8bb'),'msg':_0x439f83[_0x47f9d9('0x25d6')]?_0x439f83['name']+_0x47f9d9('0xcd9'):''});})[_0x57c684('0x253d')](function(_0x1fbfb9){var _0x5bb201=_0x57c684;if(_0x1fbfb9[_0x5bb201('0x10fd')]&&_0x1fbfb9[_0x5bb201('0x10fd')][_0x5bb201('0x4c6')]&&_0x1fbfb9[_0x5bb201('0x10fd')][_0x5bb201('0x4c6')]['length']){_0xb93b6a[_0x5bb201('0x4c6')]=_0x1fbfb9[_0x5bb201('0x10fd')][_0x5bb201('0x4c6')]||[{'message':_0x1fbfb9[_0x5bb201('0x684')](),'type':_0x5bb201('0x314')}];for(var _0x55964=0x0;_0x55964<_0x1fbfb9['data']['errors']['length'];_0x55964++){_0x873861[_0x5bb201('0x187f')]({'title':_0x1fbfb9[_0x5bb201('0x10fd')]['errors'][_0x55964][_0x5bb201('0x6c8')],'msg':_0x1fbfb9[_0x5bb201('0x10fd')][_0x5bb201('0x4c6')][_0x55964][_0x5bb201('0x1402')]});}}else _0x873861['error']({'title':_0x1fbfb9[_0x5bb201('0x2fa')]?_0x5bb201('0x16c2')+_0x1fbfb9[_0x5bb201('0x2fa')]+_0x5bb201('0x169e')+_0x1fbfb9['statusText']:_0x5bb201('0x314'),'msg':_0x1fbfb9[_0x5bb201('0x10fd')]?JSON['stringify'](_0x1fbfb9[_0x5bb201('0x10fd')][_0x5bb201('0x1402')]):_0x1fbfb9['message']||_0x1fbfb9[_0x5bb201('0x684')]()});});}function _0x530758(){var _0x480055=_0x1e17df,_0x35da83=angular[_0x480055('0x20a')](_0xb93b6a[_0x480055('0x4c')]);return _0xb93b6a[_0x480055('0x4c')]=[],_0x35da83;}function _0x327f20(_0x5dce9c){var _0xaebf77=_0x1e17df,_0x102874=_0x4314e0[_0xaebf77('0x281e')]()['title'](_0xaebf77('0x160d'))[_0xaebf77('0x102e')](''+_0xb93b6a[_0xaebf77('0x4c')][_0xaebf77('0x2587')]+_0xaebf77('0x1443')+_0xaebf77('0x210d'))[_0xaebf77('0x5b5')](_0xaebf77('0x1c45'))[_0xaebf77('0x116d')](_0x5dce9c)['ok']('OK')[_0xaebf77('0x2030')](_0xaebf77('0x2410'));_0x4314e0[_0xaebf77('0x1e6d')](_0x102874)[_0xaebf77('0xaa5')](function(){var _0x1fa4e4=_0xaebf77;_0xb93b6a['selectedContexts']['forEach'](function(_0x5709a1){_0x1245bb(_0x5709a1);}),_0xb93b6a[_0x1fa4e4('0x4c')]=[];});}function _0x5bcdae(){var _0x35089c=_0x1e17df;_0xb93b6a[_0x35089c('0x4c')]=[];}function _0x4a46a0(){var _0x4f91ba=_0x1e17df;_0xb93b6a[_0x4f91ba('0x4c')]=_0xb93b6a[_0x4f91ba('0xdc5')][_0x4f91ba('0x580')];}}const _0xdfe26b=_0xe1afe1;_0x522799[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0xdc5'),_0x1a8446('0x19cd'),_0x1a8446('0x157'),'Auth',_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x522799(_0x118e85,_0x178b58,_0x3ccdc2,_0x3d0df0,_0x59557c,_0x5aeaa6,_0x1cdbb7,_0x1c829f,_0x575a98,_0x20da13,_0x3513c1,_0x53ac7d,_0x275fba,_0x4358c0){var _0x3a3530=_0x1a8446,_0x4a2e72=this;_0x4a2e72[_0x3a3530('0x7fc')]=_0x3513c1[_0x3a3530('0xacc')](),_0x4a2e72[_0x3a3530('0x4c6')]=[],_0x4a2e72['setting']=_0x275fba,_0x4a2e72[_0x3a3530('0x1202')]=_0x53ac7d,_0x4a2e72[_0x3a3530('0xada')]=_0x4358c0,_0x4a2e72[_0x3a3530('0x9f0')]={},_0x4a2e72[_0x3a3530('0x1d53')]=_0x4a2e72[_0x3a3530('0x143f')]&&_0x4a2e72[_0x3a3530('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a2e72[_0x3a3530('0x110a')]=_0x3a3530('0xbcb'),_0x4a2e72[_0x3a3530('0x19cd')]=angular['copy'](_0x575a98),_0x4a2e72[_0x3a3530('0xdc5')]=_0x1c829f,_0x4a2e72[_0x3a3530('0x16ec')]=![];!_0x4a2e72['context']&&(_0x4a2e72[_0x3a3530('0x19cd')]={},_0x4a2e72['title']=_0x3a3530('0x151e'),_0x4a2e72[_0x3a3530('0x16ec')]=!![]);_0x4a2e72['addNewContext']=_0x5ef2c1,_0x4a2e72['saveContext']=_0x2f5f88,_0x4a2e72[_0x3a3530('0x1aa0')]=_0x2d0602,_0x4a2e72[_0x3a3530('0xc09')]=_0x591b6c,_0x4a2e72['closeDialog']=_0x31aff7;function _0x5ef2c1(){var _0x300b77=_0x3a3530;_0x4a2e72[_0x300b77('0x4c6')]=[],_0x20da13['voiceContext']['save'](_0x4a2e72['context'])[_0x300b77('0x1dc2')][_0x300b77('0xaa5')](function(_0x293fd9){var _0x1d482e=_0x300b77;_0x4a2e72[_0x1d482e('0xdc5')][_0x1d482e('0x6ee')](_0x293fd9[_0x1d482e('0x256a')]()),_0x1cdbb7[_0x1d482e('0xe10')]({'title':_0x1d482e('0x20df'),'msg':_0x4a2e72[_0x1d482e('0x19cd')][_0x1d482e('0x25d6')]?_0x4a2e72[_0x1d482e('0x19cd')][_0x1d482e('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x31aff7(_0x293fd9);})['catch'](function(_0x1fb7b8){var _0x2cc7e0=_0x300b77;if(_0x1fb7b8[_0x2cc7e0('0x10fd')]&&_0x1fb7b8[_0x2cc7e0('0x10fd')][_0x2cc7e0('0x4c6')]&&_0x1fb7b8[_0x2cc7e0('0x10fd')]['errors']['length']){_0x4a2e72['errors']=_0x1fb7b8[_0x2cc7e0('0x10fd')][_0x2cc7e0('0x4c6')]||[{'message':_0x1fb7b8['toString'](),'type':_0x2cc7e0('0x252f')}];for(var _0x5851e0=0x0;_0x5851e0<_0x1fb7b8[_0x2cc7e0('0x10fd')][_0x2cc7e0('0x4c6')][_0x2cc7e0('0x2587')];_0x5851e0+=0x1){_0x1cdbb7[_0x2cc7e0('0x187f')]({'title':_0x1fb7b8[_0x2cc7e0('0x10fd')][_0x2cc7e0('0x4c6')][_0x5851e0]['type'],'msg':_0x1fb7b8[_0x2cc7e0('0x10fd')]['errors'][_0x5851e0][_0x2cc7e0('0x1402')]});}}else _0x1cdbb7[_0x2cc7e0('0x187f')]({'title':_0x1fb7b8[_0x2cc7e0('0x2fa')]?'API:'+_0x1fb7b8[_0x2cc7e0('0x2fa')]+'\x20-\x20'+_0x1fb7b8['statusText']:_0x2cc7e0('0x252f'),'msg':_0x1fb7b8[_0x2cc7e0('0x10fd')]?JSON['stringify'](_0x1fb7b8[_0x2cc7e0('0x10fd')][_0x2cc7e0('0x1402')]):_0x1fb7b8[_0x2cc7e0('0x684')]()});});}function _0x2f5f88(){var _0x315074=_0x3a3530;_0x4a2e72['errors']=[],_0x20da13[_0x315074('0x68c')]['update']({'id':_0x4a2e72[_0x315074('0x19cd')]['id']},_0x4a2e72[_0x315074('0x19cd')])[_0x315074('0x1dc2')][_0x315074('0xaa5')](function(_0x1b49f5){var _0x382a6b=_0x315074,_0x182fd9=_0x51538b()[_0x382a6b('0xe9e')](_0x4a2e72[_0x382a6b('0xdc5')],{'id':_0x1b49f5['id']});_0x182fd9&&_0x51538b()['merge'](_0x182fd9,_0x51538b()['pick'](_0x1b49f5[_0x382a6b('0x256a')](),_0x51538b()[_0x382a6b('0x9f2')](_0x182fd9))),_0x1cdbb7[_0x382a6b('0xe10')]({'title':_0x382a6b('0x2d4'),'msg':_0x4a2e72[_0x382a6b('0x19cd')]['name']?_0x4a2e72[_0x382a6b('0x19cd')][_0x382a6b('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x31aff7(_0x1b49f5);})['catch'](function(_0x21ab91){var _0x7d932e=_0x315074;if(_0x21ab91['data']&&_0x21ab91[_0x7d932e('0x10fd')][_0x7d932e('0x4c6')]&&_0x21ab91[_0x7d932e('0x10fd')][_0x7d932e('0x4c6')][_0x7d932e('0x2587')]){_0x4a2e72[_0x7d932e('0x4c6')]=_0x21ab91[_0x7d932e('0x10fd')]['errors']||[{'message':_0x21ab91[_0x7d932e('0x684')](),'type':_0x7d932e('0xdbb')}];for(var _0x5753e0=0x0;_0x5753e0<_0x21ab91[_0x7d932e('0x10fd')][_0x7d932e('0x4c6')][_0x7d932e('0x2587')];_0x5753e0++){_0x1cdbb7['error']({'title':_0x21ab91[_0x7d932e('0x10fd')][_0x7d932e('0x4c6')][_0x5753e0][_0x7d932e('0x6c8')],'msg':_0x21ab91[_0x7d932e('0x10fd')][_0x7d932e('0x4c6')][_0x5753e0][_0x7d932e('0x1402')]});}}else _0x1cdbb7[_0x7d932e('0x187f')]({'title':_0x21ab91[_0x7d932e('0x2fa')]?_0x7d932e('0x16c2')+_0x21ab91[_0x7d932e('0x2fa')]+_0x7d932e('0x169e')+_0x21ab91['statusText']:_0x7d932e('0xdbb'),'msg':_0x21ab91[_0x7d932e('0x10fd')]?JSON[_0x7d932e('0xa48')](_0x21ab91[_0x7d932e('0x10fd')][_0x7d932e('0x1402')]):_0x21ab91['toString']()});});}function _0x2d0602(_0x1a05ef){var _0x357e55=_0x3a3530;_0x4a2e72[_0x357e55('0x4c6')]=[];var _0x598733=_0x3d0df0[_0x357e55('0x281e')]()[_0x357e55('0x110a')]('Are\x20you\x20sure?')['content'](_0x357e55('0x50c'))[_0x357e55('0x5b5')](_0x357e55('0x695'))['ok'](_0x357e55('0x1e76'))[_0x357e55('0x2030')](_0x357e55('0x9c6'))[_0x357e55('0x116d')](_0x1a05ef);_0x3d0df0['show'](_0x598733)[_0x357e55('0xaa5')](function(){var _0x550ffa=_0x357e55;_0x20da13[_0x550ffa('0x68c')][_0x550ffa('0x926')]({'id':_0x4a2e72[_0x550ffa('0x19cd')]['id']})[_0x550ffa('0x1dc2')][_0x550ffa('0xaa5')](function(){var _0x319a0c=_0x550ffa;_0x51538b()[_0x319a0c('0xf6d')](_0x4a2e72[_0x319a0c('0xdc5')],{'id':_0x4a2e72[_0x319a0c('0x19cd')]['id']}),_0x1cdbb7[_0x319a0c('0xe10')]({'title':_0x319a0c('0x13ac'),'msg':(_0x4a2e72[_0x319a0c('0x19cd')][_0x319a0c('0x25d6')]||_0x319a0c('0x19cd'))+_0x319a0c('0xcd9')}),_0x31aff7(_0x4a2e72[_0x319a0c('0x19cd')]);})[_0x550ffa('0x253d')](function(_0x2a4895){var _0x1420b3=_0x550ffa;if(_0x2a4895[_0x1420b3('0x10fd')]&&_0x2a4895[_0x1420b3('0x10fd')][_0x1420b3('0x4c6')]&&_0x2a4895[_0x1420b3('0x10fd')]['errors']['length']){_0x4a2e72[_0x1420b3('0x4c6')]=_0x2a4895[_0x1420b3('0x10fd')][_0x1420b3('0x4c6')]||[{'message':_0x2a4895[_0x1420b3('0x684')](),'type':_0x1420b3('0x1e98')}];for(var _0x17d776=0x0;_0x17d776<_0x2a4895[_0x1420b3('0x10fd')][_0x1420b3('0x4c6')][_0x1420b3('0x2587')];_0x17d776++){_0x1cdbb7[_0x1420b3('0x187f')]({'title':_0x2a4895[_0x1420b3('0x10fd')][_0x1420b3('0x4c6')][_0x17d776]['type'],'msg':_0x2a4895[_0x1420b3('0x10fd')]['errors'][_0x17d776]['message']});}}else _0x1cdbb7['error']({'title':_0x2a4895[_0x1420b3('0x2fa')]?_0x1420b3('0x16c2')+_0x2a4895['status']+_0x1420b3('0x169e')+_0x2a4895[_0x1420b3('0x24df')]:_0x1420b3('0x1e98'),'msg':_0x2a4895[_0x1420b3('0x10fd')]?JSON[_0x1420b3('0xa48')](_0x2a4895[_0x1420b3('0x10fd')][_0x1420b3('0x1402')]):_0x2a4895[_0x1420b3('0x1402')]||_0x2a4895[_0x1420b3('0x684')]()});});},function(){});}function _0x591b6c(_0x443e88){return _0x443e88===null?undefined:new Date(_0x443e88);}function _0x31aff7(_0x1a0be3){var _0x1848cd=_0x3a3530;_0x3d0df0[_0x1848cd('0x1120')](_0x1a0be3);}}const _0x3f7a2a=_0x522799;_0x585dd2[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x2068'),_0x1a8446('0x13b5'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x585dd2(_0x108a74,_0x465ccb,_0x3c16f2,_0x1bbd86,_0x40fed1,_0x58fbea,_0x38cef4,_0x2f53b7,_0x9742a2,_0x14cb17,_0x1d6973,_0xc7ba0d,_0x1f13ed,_0x33687b){var _0x3bbeca=_0x1a8446,_0x93b8be=this;_0x93b8be[_0x3bbeca('0x7fc')]=_0x1d6973[_0x3bbeca('0xacc')](),_0x93b8be[_0x3bbeca('0x4c6')]=[],_0x93b8be[_0x3bbeca('0x143f')]=_0x1f13ed,_0x93b8be[_0x3bbeca('0x1202')]=_0xc7ba0d,_0x93b8be[_0x3bbeca('0xada')]=_0x33687b,_0x93b8be[_0x3bbeca('0x9f0')]={},_0x93b8be['passwordPattern']=_0x93b8be['setting']&&_0x93b8be[_0x3bbeca('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x93b8be['title']=_0x3bbeca('0x24f3'),_0x93b8be['inboundroute']=angular[_0x3bbeca('0x20a')](_0x9742a2),_0x93b8be['inboundroutes']=_0x2f53b7,_0x93b8be['newInboundRoute']=![];!_0x93b8be[_0x3bbeca('0x13b5')]&&(_0x93b8be[_0x3bbeca('0x13b5')]={'appdata':_0x3bbeca('0x878'),'type':_0x3bbeca('0x4b8'),'context':_0x3bbeca('0xd97')},_0x93b8be[_0x3bbeca('0x110a')]=_0x3bbeca('0x2218'),_0x93b8be[_0x3bbeca('0x15d7')]=!![]);_0x93b8be[_0x3bbeca('0x24da')]=_0xc6e99a,_0x93b8be[_0x3bbeca('0x1737')]=_0x8b13cf,_0x93b8be['deleteInboundRoute']=_0x416cff,_0x93b8be[_0x3bbeca('0xc09')]=_0x17951f,_0x93b8be[_0x3bbeca('0x2023')]=_0x27f4d8,_0x1d6973['hasRole'](_0x3bbeca('0x178b'))?_0x14cb17[_0x3bbeca('0x68c')]['get']({'fields':'id,name','sort':_0x3bbeca('0x25d6'),'nolimit':_0x3bbeca('0x1c5c')})[_0x3bbeca('0x1dc2')][_0x3bbeca('0xaa5')](function(_0x15b5a6){var _0x1e3f56=_0x3bbeca;_0x93b8be[_0x1e3f56('0xdc5')]=_0x15b5a6[_0x1e3f56('0x580')]||[];})[_0x3bbeca('0x253d')](function(_0x1c8fc8){var _0x16f3da=_0x3bbeca;_0x38cef4[_0x16f3da('0x187f')]({'title':_0x1c8fc8[_0x16f3da('0x2fa')]?_0x16f3da('0x16c2')+_0x1c8fc8['status']+_0x16f3da('0x169e')+_0x1c8fc8[_0x16f3da('0x24df')]:_0x16f3da('0x1393'),'msg':_0x1c8fc8[_0x16f3da('0x10fd')]?JSON[_0x16f3da('0xa48')](_0x1c8fc8[_0x16f3da('0x10fd')]):_0x1c8fc8[_0x16f3da('0x684')]()});}):_0x14cb17[_0x3bbeca('0x68c')][_0x3bbeca('0x2122')]({'fields':_0x3bbeca('0x17fe'),'sort':'name','nolimit':'true'})[_0x3bbeca('0x1dc2')]['then'](function(_0x4a7034){var _0x2789e6=_0x3bbeca;_0x93b8be[_0x2789e6('0xdc5')]=_0x4a7034[_0x2789e6('0x580')]||[];})[_0x3bbeca('0xaa5')](function(){var _0x15c75a=_0x3bbeca;return _0x14cb17[_0x15c75a('0x1a50')][_0x15c75a('0x2122')]({'userProfileId':_0x93b8be[_0x15c75a('0x7fc')]['userProfileId'],'sectionId':0x195})['$promise'];})[_0x3bbeca('0xaa5')](function(_0x5656d8){var _0x23c7c5=_0x3bbeca,_0x57ce4b=_0x5656d8&&_0x5656d8['rows']?_0x5656d8[_0x23c7c5('0x580')][0x0]:null;if(!_0x57ce4b)return _0x14cb17[_0x23c7c5('0x68c')][_0x23c7c5('0x2122')]({'fields':_0x23c7c5('0x17fe'),'sort':_0x23c7c5('0x25d6'),'nolimit':_0x23c7c5('0x1c5c'),'defaultEntry':0x1})[_0x23c7c5('0x1dc2')][_0x23c7c5('0xaa5')](function(_0x5910cd){var _0x5c9c23=_0x23c7c5;_0x93b8be[_0x5c9c23('0xdc5')]=_0x5910cd[_0x5c9c23('0x580')]||[];});else{if(!_0x57ce4b['autoAssociation'])return _0x14cb17[_0x23c7c5('0x249a')][_0x23c7c5('0x2122')]({'sectionId':_0x57ce4b['id']})[_0x23c7c5('0x1dc2')][_0x23c7c5('0xaa5')](function(_0xdb7a7b){var _0x47c9f4=_0x23c7c5,_0x5db3ee=_0x51538b()[_0x47c9f4('0x1246')](_0xdb7a7b[_0x47c9f4('0x580')],function(_0x16b62b){var _0x46e549=_0x47c9f4;return _0x51538b()[_0x46e549('0xe9e')](_0x93b8be[_0x46e549('0xdc5')],{'id':_0x16b62b['resourceId']});}),_0x9f06cb=null;_0x93b8be[_0x47c9f4('0x13b5')]&&(_0x9f06cb=_0x51538b()[_0x47c9f4('0xe9e')](_0x93b8be[_0x47c9f4('0xdc5')],{'name':_0x93b8be[_0x47c9f4('0x13b5')][_0x47c9f4('0x19cd')]}));if(_0x9f06cb&&!_0x51538b()[_0x47c9f4('0x2c2')](_0x5db3ee,['id',_0x9f06cb['id']])){var _0x5c8b42=_0x51538b()[_0x47c9f4('0xe9e')](_0x93b8be[_0x47c9f4('0xdc5')],{'id':_0x9f06cb['id']});_0x5c8b42[_0x47c9f4('0x12eb')]=![],_0x5db3ee[_0x47c9f4('0x1599')](_0x5c8b42);}_0x93b8be[_0x47c9f4('0xdc5')]=_0x5db3ee;});}})[_0x3bbeca('0x253d')](function(_0x512e55){var _0x19c8d6=_0x3bbeca;_0x38cef4[_0x19c8d6('0x187f')]({'title':_0x512e55[_0x19c8d6('0x2fa')]?'API:'+_0x512e55[_0x19c8d6('0x2fa')]+_0x19c8d6('0x169e')+_0x512e55[_0x19c8d6('0x24df')]:_0x19c8d6('0x2f7'),'msg':_0x512e55['data']?JSON[_0x19c8d6('0xa48')](_0x512e55[_0x19c8d6('0x10fd')]):_0x512e55['toString']()});});function _0xc6e99a(){var _0x2f65b8=_0x3bbeca;_0x93b8be['errors']=[],_0x14cb17[_0x2f65b8('0x1361')][_0x2f65b8('0x242b')](_0x93b8be[_0x2f65b8('0x13b5')])[_0x2f65b8('0x1dc2')]['then'](function(_0x31c1a9){var _0x4ee40f=_0x2f65b8;_0x93b8be[_0x4ee40f('0x2068')][_0x4ee40f('0x6ee')](_0x31c1a9[_0x4ee40f('0x256a')]()),_0x38cef4[_0x4ee40f('0xe10')]({'title':'InboundRoute\x20properly\x20created','msg':_0x93b8be['inboundroute'][_0x4ee40f('0x25d6')]?_0x93b8be[_0x4ee40f('0x13b5')]['name']+'\x20has\x20been\x20created!':''}),_0x27f4d8(_0x31c1a9);})[_0x2f65b8('0x253d')](function(_0x3ec477){var _0x2e7b98=_0x2f65b8;if(_0x3ec477[_0x2e7b98('0x10fd')]&&_0x3ec477['data'][_0x2e7b98('0x4c6')]&&_0x3ec477[_0x2e7b98('0x10fd')][_0x2e7b98('0x4c6')][_0x2e7b98('0x2587')]){_0x93b8be[_0x2e7b98('0x4c6')]=_0x3ec477[_0x2e7b98('0x10fd')]['errors']||[{'message':_0x3ec477[_0x2e7b98('0x684')](),'type':_0x2e7b98('0x14e9')}];for(var _0x4dd999=0x0;_0x4dd999<_0x3ec477[_0x2e7b98('0x10fd')][_0x2e7b98('0x4c6')][_0x2e7b98('0x2587')];_0x4dd999+=0x1){_0x38cef4['error']({'title':_0x3ec477['data'][_0x2e7b98('0x4c6')][_0x4dd999][_0x2e7b98('0x6c8')],'msg':_0x3ec477[_0x2e7b98('0x10fd')][_0x2e7b98('0x4c6')][_0x4dd999][_0x2e7b98('0x1402')]});}}else _0x38cef4['error']({'title':_0x3ec477[_0x2e7b98('0x2fa')]?_0x2e7b98('0x16c2')+_0x3ec477[_0x2e7b98('0x2fa')]+'\x20-\x20'+_0x3ec477[_0x2e7b98('0x24df')]:_0x2e7b98('0x14e9'),'msg':_0x3ec477[_0x2e7b98('0x10fd')]?JSON[_0x2e7b98('0xa48')](_0x3ec477[_0x2e7b98('0x10fd')][_0x2e7b98('0x1402')]):_0x3ec477[_0x2e7b98('0x684')]()});});}function _0x8b13cf(){var _0x173fc7=_0x3bbeca;_0x93b8be[_0x173fc7('0x4c6')]=[],_0x14cb17[_0x173fc7('0x1361')][_0x173fc7('0x264e')]({'id':_0x93b8be[_0x173fc7('0x13b5')]['id']},_0x93b8be[_0x173fc7('0x13b5')])['$promise'][_0x173fc7('0xaa5')](function(_0x5c7f63){var _0x1f8cf9=_0x173fc7,_0x15964f=_0x51538b()['find'](_0x93b8be['inboundroutes'],{'id':_0x5c7f63['id']});_0x15964f&&_0x51538b()[_0x1f8cf9('0x283c')](_0x15964f,_0x51538b()[_0x1f8cf9('0x104e')](_0x5c7f63[_0x1f8cf9('0x256a')](),_0x51538b()[_0x1f8cf9('0x9f2')](_0x15964f))),_0x38cef4['success']({'title':'InboundRoute\x20properly\x20saved!','msg':_0x93b8be['inboundroute'][_0x1f8cf9('0x25d6')]?_0x93b8be['inboundroute'][_0x1f8cf9('0x25d6')]+_0x1f8cf9('0x20bf'):''}),_0x27f4d8(_0x5c7f63);})['catch'](function(_0x321f6e){var _0x314f02=_0x173fc7;if(_0x321f6e['data']&&_0x321f6e[_0x314f02('0x10fd')][_0x314f02('0x4c6')]&&_0x321f6e[_0x314f02('0x10fd')][_0x314f02('0x4c6')]['length']){_0x93b8be[_0x314f02('0x4c6')]=_0x321f6e[_0x314f02('0x10fd')][_0x314f02('0x4c6')]||[{'message':_0x321f6e['toString'](),'type':_0x314f02('0xe3a')}];for(var _0x230b8b=0x0;_0x230b8b<_0x321f6e[_0x314f02('0x10fd')][_0x314f02('0x4c6')][_0x314f02('0x2587')];_0x230b8b++){_0x38cef4[_0x314f02('0x187f')]({'title':_0x321f6e[_0x314f02('0x10fd')]['errors'][_0x230b8b][_0x314f02('0x6c8')],'msg':_0x321f6e[_0x314f02('0x10fd')][_0x314f02('0x4c6')][_0x230b8b][_0x314f02('0x1402')]});}}else _0x38cef4[_0x314f02('0x187f')]({'title':_0x321f6e['status']?_0x314f02('0x16c2')+_0x321f6e[_0x314f02('0x2fa')]+_0x314f02('0x169e')+_0x321f6e[_0x314f02('0x24df')]:_0x314f02('0xe3a'),'msg':_0x321f6e[_0x314f02('0x10fd')]?JSON[_0x314f02('0xa48')](_0x321f6e['data']['message']):_0x321f6e[_0x314f02('0x684')]()});});}function _0x416cff(_0x592c8a){var _0x4054ea=_0x3bbeca;_0x93b8be[_0x4054ea('0x4c6')]=[];var _0xab4d04=_0x1bbd86['confirm']()[_0x4054ea('0x110a')](_0x4054ea('0x12a3'))[_0x4054ea('0x15af')]('The\x20inboundroute\x20will\x20be\x20deleted.')[_0x4054ea('0x5b5')](_0x4054ea('0x2f3'))['ok'](_0x4054ea('0x1e76'))[_0x4054ea('0x2030')](_0x4054ea('0x9c6'))[_0x4054ea('0x116d')](_0x592c8a);_0x1bbd86['show'](_0xab4d04)[_0x4054ea('0xaa5')](function(){var _0x5ed42f=_0x4054ea;_0x14cb17['voiceExtension'][_0x5ed42f('0x926')]({'id':_0x93b8be[_0x5ed42f('0x13b5')]['id']})[_0x5ed42f('0x1dc2')][_0x5ed42f('0xaa5')](function(){var _0xb80c7a=_0x5ed42f;_0x51538b()[_0xb80c7a('0xf6d')](_0x93b8be[_0xb80c7a('0x2068')],{'id':_0x93b8be['inboundroute']['id']}),_0x38cef4[_0xb80c7a('0xe10')]({'title':_0xb80c7a('0x11fd'),'msg':(_0x93b8be[_0xb80c7a('0x13b5')][_0xb80c7a('0x25d6')]||'inboundroute')+_0xb80c7a('0xcd9')}),_0x27f4d8(_0x93b8be['inboundroute']);})[_0x5ed42f('0x253d')](function(_0x1b67cb){var _0x5de022=_0x5ed42f;if(_0x1b67cb[_0x5de022('0x10fd')]&&_0x1b67cb[_0x5de022('0x10fd')][_0x5de022('0x4c6')]&&_0x1b67cb[_0x5de022('0x10fd')]['errors'][_0x5de022('0x2587')]){_0x93b8be[_0x5de022('0x4c6')]=_0x1b67cb[_0x5de022('0x10fd')][_0x5de022('0x4c6')]||[{'message':_0x1b67cb[_0x5de022('0x684')](),'type':_0x5de022('0x12b7')}];for(var _0x5a769f=0x0;_0x5a769f<_0x1b67cb['data'][_0x5de022('0x4c6')][_0x5de022('0x2587')];_0x5a769f++){_0x38cef4[_0x5de022('0x187f')]({'title':_0x1b67cb[_0x5de022('0x10fd')][_0x5de022('0x4c6')][_0x5a769f]['type'],'msg':_0x1b67cb[_0x5de022('0x10fd')]['errors'][_0x5a769f]['message']});}}else _0x38cef4[_0x5de022('0x187f')]({'title':_0x1b67cb[_0x5de022('0x2fa')]?_0x5de022('0x16c2')+_0x1b67cb[_0x5de022('0x2fa')]+'\x20-\x20'+_0x1b67cb[_0x5de022('0x24df')]:_0x5de022('0x12b7'),'msg':_0x1b67cb[_0x5de022('0x10fd')]?JSON['stringify'](_0x1b67cb[_0x5de022('0x10fd')]['message']):_0x1b67cb['message']||_0x1b67cb[_0x5de022('0x684')]()});});},function(){});}function _0x17951f(_0x316f8f){return _0x316f8f===null?undefined:new Date(_0x316f8f);}function _0x27f4d8(_0x3e648c){var _0x5093b7=_0x3bbeca;_0x1bbd86[_0x5093b7('0x1120')](_0x3e648c);}}const _0x806042=_0x585dd2,_0x1740ee=_0x4fb511['p']+_0x1a8446('0x74b'),_0x2b3c33=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog-[chunkhash].html',_0x35672b=_0x4fb511['p']+_0x1a8446('0x12e0'),_0x5e5269=_0x4fb511['p']+_0x1a8446('0xe89'),_0x28cfb9=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog-[chunkhash].html',_0x38c3d9=_0x4fb511['p']+_0x1a8446('0x1415'),_0xd8ff34=_0x4fb511['p']+_0x1a8446('0x17af'),_0x44543e=_0x4fb511['p']+_0x1a8446('0xd31'),_0x475138=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html/dialog-[chunkhash].html',_0x550b81=_0x4fb511['p']+_0x1a8446('0x2a9'),_0x34e102=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html/dialog-[chunkhash].html',_0x356c72=_0x4fb511['p']+_0x1a8446('0x242f'),_0x364047=_0x4fb511['p']+_0x1a8446('0xfda');_0x2a7b05[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];var _0x1e8967={'agi':_0x1740ee,'custom':_0x2b3c33,'dial':_0x35672b,'externaldial':_0x5e5269,'goto':_0x28cfb9,'hangup':_0x38c3d9,'internaldial':_0xd8ff34,'interval':_0x44543e,'playback':_0x475138,'queue':_0x550b81,'ringgroup':_0x34e102,'set':_0x356c72,'voicemail':_0x364047};function _0x2a7b05(_0xdf8858,_0x231547,_0x199761,_0x39acea,_0x43deb2){var _0x37d3c3=_0x1a8446,_0x326b32=this;_0x326b32[_0x37d3c3('0x7fc')]=_0x43deb2[_0x37d3c3('0xacc')](),_0x326b32[_0x37d3c3('0x13b5')]={},_0x326b32[_0x37d3c3('0x1a36')]={'count':0x0,'rows':[]},_0x326b32[_0x37d3c3('0x865')]=[],_0x326b32[_0x37d3c3('0xada')],_0x326b32[_0x37d3c3('0x582')]={'sort':_0x37d3c3('0x13f2')},_0x326b32['apps']=_0x51538b()[_0x37d3c3('0xaee')](_0x51538b()[_0x37d3c3('0x181f')]([{'app':_0x37d3c3('0x260f'),'appType':_0x37d3c3('0x1c21'),'types':[_0x37d3c3('0x1b43'),_0x37d3c3('0x113b'),_0x37d3c3('0x2334')],'fields':[],'isApp':![]},{'app':_0x37d3c3('0x145c'),'appType':_0x37d3c3('0xe26'),'context':_0x37d3c3('0xd97'),'type':'Inbound','appdata':_0x37d3c3('0x8b6'),'icon':_0x37d3c3('0x1892'),'options':'xX','interval':_0x37d3c3('0x1ac6'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x37d3c3('0x7ca'),'field':{'name':_0x37d3c3('0x7d6'),'key':_0x37d3c3('0xff4'),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x37d3c3('0x7d6'),'filters':{'fields':'id,name,save_name','sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x37d3c3('0x4d7'),'field':{'name':'queue','key':'name'},'route':_0x37d3c3('0x1588'),'filters':{'type':_0x37d3c3('0x4b8'),'fields':'id,name,type','sort':_0x37d3c3('0x25d6'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x37d3c3('0x145c'),'name':_0x37d3c3('0xe26'),'type':_0x37d3c3('0xd4d'),'values':_0x37d3c3('0x4d7'),'value':'queue.name','option':_0x37d3c3('0x1766'),'required':!![],'param':0x0},{'title':_0x37d3c3('0x2f1'),'name':_0x37d3c3('0x1b36'),'type':_0x37d3c3('0xb37'),'param':0x1},{'title':'Url','name':_0x37d3c3('0x12d3'),'type':_0x37d3c3('0xb37'),'param':0x2},{'title':_0x37d3c3('0x1d1c'),'name':_0x37d3c3('0x7d6'),'type':_0x37d3c3('0xd4d'),'values':_0x37d3c3('0x7ca'),'value':_0x37d3c3('0xbab'),'option':_0x37d3c3('0x8d'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'param':0x3},{'title':_0x37d3c3('0xc45'),'name':_0x37d3c3('0x23c0'),'type':_0x37d3c3('0x219a'),'min':0x0,'param':0x4},{'title':_0x37d3c3('0xdba'),'name':_0x37d3c3('0x2067'),'type':_0x37d3c3('0xb37'),'param':0x5},{'title':_0x37d3c3('0xac'),'name':_0x37d3c3('0x522'),'type':'text','param':0x6},{'title':_0x37d3c3('0x2806'),'name':'gosub','type':_0x37d3c3('0xb37'),'param':0x7},{'title':_0x37d3c3('0x251'),'name':_0x37d3c3('0x1676'),'type':_0x37d3c3('0xb37'),'param':0x8},{'title':_0x37d3c3('0x718'),'name':_0x37d3c3('0x137c'),'type':_0x37d3c3('0x219a'),'min':0x0,'param':0x9},{'title':_0x37d3c3('0x1523'),'name':'answer','type':_0x37d3c3('0x256e'),'general':!![]}]},{'app':_0x37d3c3('0x2539'),'appType':_0x37d3c3('0x1bed'),'context':_0x37d3c3('0xd97'),'type':_0x37d3c3('0x1760'),'icon':_0x37d3c3('0x1892'),'interval':_0x37d3c3('0x1ac6'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x37d3c3('0x7ca'),'field':{'name':_0x37d3c3('0x7d6'),'key':_0x37d3c3('0xff4'),'prefix':_0x37d3c3('0xe0f')},'route':_0x37d3c3('0x7d6'),'filters':{'fields':_0x37d3c3('0x188c'),'sort':_0x37d3c3('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x37d3c3('0x51d'),'name':_0x37d3c3('0x124b'),'type':_0x37d3c3('0xd4d'),'values':_0x37d3c3('0x7ca'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','option':_0x37d3c3('0x958'),'required':!![],'param':0x0},{'title':_0x37d3c3('0x2f1'),'name':'options','type':_0x37d3c3('0xb37'),'param':0x1},{'title':_0x37d3c3('0x1523'),'name':_0x37d3c3('0x1ba2'),'type':_0x37d3c3('0x256e'),'general':!![]}]},{'app':'Dial','appType':_0x37d3c3('0xfab'),'context':'from-voip-provider','type':_0x37d3c3('0x1760'),'icon':_0x37d3c3('0x1892'),'interval':_0x37d3c3('0x1ac6'),'options':'xX','isApp':!![],'fields':[{'title':_0x37d3c3('0x2052'),'name':_0x37d3c3('0x130f'),'type':_0x37d3c3('0xb37'),'required':!![],'param':0x0},{'title':_0x37d3c3('0xc45'),'name':_0x37d3c3('0x23c0'),'type':_0x37d3c3('0x219a'),'min':0x0,'param':0x1},{'title':_0x37d3c3('0x2f1'),'name':_0x37d3c3('0x1b36'),'type':_0x37d3c3('0xb37'),'param':0x2},{'title':'Url','name':_0x37d3c3('0x2242'),'type':_0x37d3c3('0xb37'),'param':0x3}]},{'app':'Dial','appType':_0x37d3c3('0x1b42'),'context':'from-voip-provider','type':_0x37d3c3('0x1760'),'icon':_0x37d3c3('0x1892'),'interval':_0x37d3c3('0x1ac6'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x37d3c3('0x2204'),'field':{'name':_0x37d3c3('0x272b'),'key':_0x37d3c3('0x25d6'),'prefix':_0x37d3c3('0xa32')},'route':_0x37d3c3('0x272b'),'filters':{'fields':_0x37d3c3('0x1f5d'),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x37d3c3('0xeff')},{'id':0xcb,'role':_0x37d3c3('0xb5b')}]}}],'fields':[{'title':'User','name':_0x37d3c3('0x272b'),'type':_0x37d3c3('0xd4d'),'values':_0x37d3c3('0x2204'),'value':'\x27SIP/{{user.name}}\x27','option':_0x37d3c3('0x2504'),'required':!![],'param':0x0},{'title':_0x37d3c3('0xc45'),'name':_0x37d3c3('0x23c0'),'type':_0x37d3c3('0x219a'),'min':0x0,'param':0x1},{'title':_0x37d3c3('0x2f1'),'name':'options','type':_0x37d3c3('0xb37'),'param':0x2},{'title':_0x37d3c3('0x489'),'name':'url','type':_0x37d3c3('0xb37'),'param':0x3}]},{'app':'Dial','appType':_0x37d3c3('0x27f9'),'context':_0x37d3c3('0xd97'),'type':_0x37d3c3('0x4b8'),'icon':_0x37d3c3('0x1892'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x37d3c3('0x1bc2'),'field':{'name':_0x37d3c3('0x1651'),'key':_0x37d3c3('0x25d6')},'route':_0x37d3c3('0x1651'),'filters':{'fields':_0x37d3c3('0x17fe'),'sort':_0x37d3c3('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x37d3c3('0x4a6'),'name':_0x37d3c3('0x1651'),'type':_0x37d3c3('0xd4d'),'values':_0x37d3c3('0x1bc2'),'value':'trunk.name','option':_0x37d3c3('0x7ce'),'required':!![],'param':0x0},{'title':'Phone','name':_0x37d3c3('0x1a46'),'required':!![],'type':_0x37d3c3('0xb37')},{'title':_0x37d3c3('0xc45'),'name':'timeout','type':_0x37d3c3('0x219a'),'min':0x0,'param':0x1},{'title':_0x37d3c3('0x2f1'),'name':'options','type':_0x37d3c3('0xb37'),'param':0x2},{'title':_0x37d3c3('0x489'),'name':_0x37d3c3('0x2242'),'type':_0x37d3c3('0xb37'),'param':0x3}]},{'app':_0x37d3c3('0x9f8'),'appType':'ringGroup','context':'from-voip-provider','type':'inbound','icon':_0x37d3c3('0x1892'),'interval':_0x37d3c3('0x1ac6'),'options':'xX','isApp':!![],'extraApi':[{'name':'users','field':{'name':'multipleUsers','key':'name','prefix':_0x37d3c3('0xa32')},'route':_0x37d3c3('0x272b'),'filters':{'fields':_0x37d3c3('0x1f5d'),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x37d3c3('0xeff')},{'id':0xcb,'role':_0x37d3c3('0xb5b')}]}}],'fields':[{'title':_0x37d3c3('0x21b9'),'name':'multipleUsers','type':_0x37d3c3('0xd4d'),'multiple':!![],'values':_0x37d3c3('0x2204'),'value':_0x37d3c3('0x350'),'option':'multipleUsers.name','required':!![],'param':0x0},{'title':_0x37d3c3('0xc45'),'name':_0x37d3c3('0x23c0'),'type':'number','min':0x0,'param':0x1},{'title':_0x37d3c3('0x2f1'),'name':'options','type':'text','param':0x2},{'title':_0x37d3c3('0x489'),'name':_0x37d3c3('0x2242'),'type':'text','param':0x3}]},{'app':'AGI','alias':_0x37d3c3('0xa44'),'appType':_0x37d3c3('0x2067'),'context':_0x37d3c3('0xd97'),'type':'inbound','icon':_0x37d3c3('0x1892'),'interval':_0x37d3c3('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x37d3c3('0x8d1'),'field':{'name':'project','key':_0x37d3c3('0x25d6'),'prefix':'agi://127.0.0.1/square,'},'route':_0x37d3c3('0x37b'),'filters':{'fields':_0x37d3c3('0x17fe'),'sort':_0x37d3c3('0x25d6'),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x37d3c3('0x1dd3'),'name':'project','type':_0x37d3c3('0xd4d'),'values':_0x37d3c3('0x8d1'),'value':_0x37d3c3('0x2344'),'option':_0x37d3c3('0x18f1'),'required':!![],'param':0x0}]},{'app':_0x37d3c3('0x2781'),'appType':_0x37d3c3('0x72e'),'context':'from-voip-provider','type':_0x37d3c3('0x1760'),'icon':_0x37d3c3('0x1892'),'interval':_0x37d3c3('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x37d3c3('0xdc5'),'field':{'name':_0x37d3c3('0x19cd'),'key':'name'},'route':_0x37d3c3('0x68c'),'filters':{'fields':_0x37d3c3('0x17fe'),'sort':_0x37d3c3('0x25d6'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x37d3c3('0x14c9'),'name':_0x37d3c3('0x19cd'),'type':'apiselect','values':_0x37d3c3('0xdc5'),'value':_0x37d3c3('0x8f3'),'option':_0x37d3c3('0x8f3'),'required':!![],'param':0x0},{'title':_0x37d3c3('0xded'),'name':'extension','type':_0x37d3c3('0xb37'),'required':!![],'param':0x1},{'title':_0x37d3c3('0x2722'),'name':_0x37d3c3('0x13f2'),'type':_0x37d3c3('0xb37'),'required':!![],'param':0x2}]},{'app':'hangup','appType':'hangup','context':_0x37d3c3('0xd97'),'type':_0x37d3c3('0x1760'),'icon':_0x37d3c3('0x1892'),'interval':_0x37d3c3('0x1ac6'),'isApp':!![],'fields':[{'title':_0x37d3c3('0x6a0'),'name':_0x37d3c3('0x124b'),'type':_0x37d3c3('0xbff'),'param':0x0,'values':[{'option':_0x37d3c3('0x2069'),'value':'\x271\x27'},{'option':_0x37d3c3('0x331'),'value':_0x37d3c3('0x14c2')},{'option':_0x37d3c3('0x1232'),'value':_0x37d3c3('0x2121')},{'option':'HANGUPCAUSE_18','value':'\x2718\x27'},{'option':_0x37d3c3('0x4ae'),'value':_0x37d3c3('0x2443')},{'option':_0x37d3c3('0x2540'),'value':_0x37d3c3('0x2106')},{'option':_0x37d3c3('0x5c0'),'value':_0x37d3c3('0x20ac')},{'option':_0x37d3c3('0x52e'),'value':'\x2738\x27'},{'option':_0x37d3c3('0xd75'),'value':_0x37d3c3('0x20bc')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x37d3c3('0x1666'),'appType':_0x37d3c3('0x282c'),'context':_0x37d3c3('0xd97'),'type':'Inbound','separator':'=','icon':_0x37d3c3('0x1892'),'interval':_0x37d3c3('0x1ac6'),'extraApi':[{'name':_0x37d3c3('0x147e'),'field':{'name':_0x37d3c3('0x25d6'),'key':'name'},'route':_0x37d3c3('0x14e7'),'filters':{'fields':_0x37d3c3('0x17fe'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':'Variable','name':_0x37d3c3('0x25d6'),'type':_0x37d3c3('0xd4d'),'values':_0x37d3c3('0x147e'),'value':_0x37d3c3('0xa75'),'option':_0x37d3c3('0xa75'),'required':!![],'param':0x0},{'title':_0x37d3c3('0xfba'),'name':_0x37d3c3('0x12f4'),'type':_0x37d3c3('0xb37'),'required':!![],'param':0x1}]},{'app':null,'appType':_0x37d3c3('0x113b'),'icon':_0x37d3c3('0x1892'),'type':'Inbound','interval':_0x37d3c3('0x1ac6'),'isApp':!![],'fields':[{'title':_0x37d3c3('0x22ef'),'name':_0x37d3c3('0x9eb'),'type':_0x37d3c3('0xb37'),'required':!![],'param':0x0},{'title':'Arguments','name':_0x37d3c3('0x124b'),'type':_0x37d3c3('0xb37'),'param':0x1}]},{'app':_0x37d3c3('0x19fe'),'appType':'voicemail','context':'from-voip-provider','icon':_0x37d3c3('0x1892'),'type':_0x37d3c3('0x1760'),'interval':_0x37d3c3('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x37d3c3('0x281'),'field':{'name':_0x37d3c3('0x2264'),'key':'mailbox','suffix':_0x37d3c3('0x1bc7')},'route':_0x37d3c3('0x2264'),'filters':{'fields':_0x37d3c3('0x1a67'),'sort':_0x37d3c3('0x11cb'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x37d3c3('0xfff'),'name':_0x37d3c3('0x2264'),'type':_0x37d3c3('0xd4d'),'values':_0x37d3c3('0x281'),'value':_0x37d3c3('0x1bca'),'option':_0x37d3c3('0x1fa1'),'required':!![],'param':0x0},{'title':_0x37d3c3('0x2f1'),'name':_0x37d3c3('0x1b36'),'type':_0x37d3c3('0xb37'),'param':0x1}]}],[_0x37d3c3('0x9eb')]),{'isApp':![]}),_0x326b32[_0x37d3c3('0x2334')]={'group':{'name':'opt1','pull':_0x37d3c3('0x1ae5')},'animation':0x64,'sort':![]},_0x326b32[_0x37d3c3('0x209b')]={'group':{'name':'opt2','put':_0x37d3c3('0xdf0')},'animation':0x64,'onAdd':function _0x3ee080(_0x29fea7){_0x215ea7(_0x29fea7,_0x29fea7['newIndex']);},'onSort':function _0x11a62a(){_0x3c870d();}},_0x326b32[_0x37d3c3('0x2e')]=_0x3641d7,_0x326b32['deleteConfirm']=_0x47189e,_0x326b32['getInboundRouteApps']=_0x599af8,_0x326b32[_0x37d3c3('0x1430')]=_0x215ea7,_0x326b32['editInterval']=_0xb17d5a,_0x326b32[_0x37d3c3('0x549')]=_0x4a2e4f,_0x326b32[_0x37d3c3('0x141d')]=_0x4928a1,_0x326b32[_0x37d3c3('0x1f31')]=_0x3c870d,_0x326b32['getIntervals']=_0x28326f;function _0x3641d7(_0x48e91c,_0x3668d1){var _0x2b8f4e=_0x37d3c3;_0x326b32['inboundroute']=_0x48e91c,_0x326b32[_0x2b8f4e('0xada')]=typeof _0x3668d1!==_0x2b8f4e('0x1574')?_0x3668d1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x326b32['applications'][_0x2b8f4e('0x2686')]=!_0x326b32[_0x2b8f4e('0xada')][_0x2b8f4e('0x1c1d')]?!![]:![],_0x326b32[_0x2b8f4e('0x582')]['VoiceExtensionId']=_0x48e91c['id'],_0x326b32[_0x2b8f4e('0x582')]['isApp']=!![],_0x326b32[_0x2b8f4e('0x582')]['nolimit']=!![],_0x326b32[_0x2b8f4e('0x235c')](),_0x326b32[_0x2b8f4e('0x1f55')]();}function _0x47189e(_0x1c4adf,_0x2aa301,_0x18818f){var _0x22a8a9=_0x37d3c3,_0x1be767=_0x231547[_0x22a8a9('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')['htmlContent'](_0x22a8a9('0x389')+_0x1c4adf[_0x22a8a9('0x9eb')]+_0x22a8a9('0x697')+_0x22a8a9('0x210d'))[_0x22a8a9('0x5b5')](_0x22a8a9('0x21a3'))[_0x22a8a9('0x116d')](_0x18818f)['ok']('OK')[_0x22a8a9('0x2030')](_0x22a8a9('0x2410'));_0x231547['show'](_0x1be767)['then'](function(){var _0x4c1965=_0x22a8a9;_0x326b32[_0x4c1965('0x1a36')][_0x4c1965('0x580')][_0x4c1965('0x1280')](_0x2aa301,0x1),_0x3c870d();},function(){var _0x5e675e=_0x22a8a9;console['log'](_0x5e675e('0x2410'));});}function _0x215ea7(_0x35cc2a,_0x1544bd){var _0x39cbe5=_0x37d3c3;if(_0x326b32['inboundrouteApps']['rows'][_0x39cbe5('0x2587')]){var _0x4748b8=_0x326b32[_0x39cbe5('0x1a36')][_0x39cbe5('0x580')][_0x1544bd]?_0x326b32['inboundrouteApps'][_0x39cbe5('0x580')][_0x1544bd]:_0x326b32[_0x39cbe5('0x1a36')][_0x39cbe5('0x580')][0x0],_0x34a2b4=(_0x4748b8[_0x39cbe5('0xe6d')]||_0x4748b8[_0x39cbe5('0x9eb')])[_0x39cbe5('0xcf6')]();_0x231547['show']({'controller':_0x39cbe5('0x5fe')[_0x39cbe5('0x9e4')](_0x34a2b4,'DialogController'),'controllerAs':'vm','templateUrl':_0x1e8967[_0x34a2b4],'parent':angular['element'](_0x199761[_0x39cbe5('0x54c')]),'targetEvent':_0x35cc2a,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0x4748b8,'inboundroute':_0x326b32[_0x39cbe5('0x13b5')],'crudPermissions':_0x326b32['crudPermissions']}})[_0x39cbe5('0xaa5')](function(_0x31d374){var _0x409c80=_0x39cbe5;_0x31d374&&(_0x31d374['id']?_0x326b32['inboundrouteApps'][_0x409c80('0x580')][_0x1544bd]=_0x31d374:_0x326b32['inboundrouteApps'][_0x409c80('0x580')][_0x409c80('0x1280')](_0x1544bd,0x0,_0x31d374),_0x3c870d());})[_0x39cbe5('0x253d')](function(_0x4d6ac0){var _0x241fa6=_0x39cbe5;_0x4d6ac0&&_0x39acea[_0x241fa6('0x187f')]({'title':_0x4d6ac0['status']?'API:'+_0x4d6ac0[_0x241fa6('0x2fa')]+_0x241fa6('0x169e')+_0x4d6ac0[_0x241fa6('0x24df')]:_0x241fa6('0x26b6'),'msg':_0x4d6ac0[_0x241fa6('0x10fd')]?JSON['stringify'](_0x4d6ac0[_0x241fa6('0x10fd')]):_0x4d6ac0['toString']()});});}}function _0xb17d5a(_0x5af8f4,_0x37c1c0){var _0x45f59a=_0x37d3c3;if(_0x326b32[_0x45f59a('0x1a36')][_0x45f59a('0x580')][_0x45f59a('0x2587')]){var _0x1813ac=_0x326b32['inboundrouteApps'][_0x45f59a('0x580')][_0x37c1c0]?_0x326b32['inboundrouteApps'][_0x45f59a('0x580')][_0x37c1c0]:_0x326b32[_0x45f59a('0x1a36')][_0x45f59a('0x580')][0x0];_0x231547[_0x45f59a('0x1e6d')]({'controller':_0x45f59a('0x1002'),'controllerAs':'vm','templateUrl':_0x44543e,'parent':angular[_0x45f59a('0x1aa8')](_0x199761[_0x45f59a('0x54c')]),'targetEvent':_0x5af8f4,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1813ac[_0x45f59a('0x1c21')],'IntervalId':_0x1813ac['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x326b32[_0x45f59a('0xada')]}})[_0x45f59a('0xaa5')](function(_0x290c12){var _0x1ad5c0=_0x45f59a;_0x290c12&&(_0x1813ac['interval']=_0x290c12[_0x1ad5c0('0x1c21')]||_0x1ad5c0('0x1ac6'),_0x1813ac[_0x1ad5c0('0x1f8c')]=_0x290c12[_0x1ad5c0('0x1f8c')]||null,_0x3c870d());});}}function _0x3c870d(){var _0x43fc33=_0x37d3c3,_0x1cf9af=['queue',_0x43fc33('0x1bed')],_0x2e88af=0x2,_0x3dd8b5=[];_0x3dd8b5[_0x43fc33('0x1599')]({'type':_0x43fc33('0x4b8'),'app':_0x43fc33('0x1666'),'appdata':_0x43fc33('0xb18'),'context':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')],'exten':_0x326b32['inboundroute']['exten'],'priority':_0x2e88af++,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']}),_0x3dd8b5[_0x43fc33('0x1599')]({'type':'inbound','app':'Set','appdata':'XCALLY-MOTION-ANSWER=0','context':_0x326b32[_0x43fc33('0x13b5')]['context'],'exten':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x1990')],'priority':_0x2e88af++,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']}),_0x3dd8b5['push']({'type':_0x43fc33('0x4b8'),'app':'Set','appdata':_0x43fc33('0x134b'),'context':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')],'exten':_0x326b32['inboundroute'][_0x43fc33('0x1990')],'priority':_0x2e88af++,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']}),_0x3dd8b5[_0x43fc33('0x1599')]({'type':_0x43fc33('0x4b8'),'app':_0x43fc33('0x1666'),'appdata':'MONITOR_OPTIONS=ab','context':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')],'exten':_0x326b32['inboundroute'][_0x43fc33('0x1990')],'priority':_0x2e88af++,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']});for(var _0x460341=0x0,_0x8a0938=0x0;_0x460341<_0x326b32[_0x43fc33('0x1a36')][_0x43fc33('0x580')][_0x43fc33('0x2587')];_0x460341++,_0x8a0938=0x0){var _0x27dfe5=_0x326b32[_0x43fc33('0x1a36')][_0x43fc33('0x580')][_0x460341],_0x5afa93=[],_0x1b1940=[];_0x27dfe5[_0x43fc33('0x2568')]=_0x27dfe5[_0x43fc33('0x1c21')]!=='*,*,*,*'?[_0x27dfe5[_0x43fc33('0x1c21')]]:_0x27dfe5['IntervalId']?_0x51538b()[_0x43fc33('0x1246')](_0x51538b()[_0x43fc33('0xdb7')](_0x326b32[_0x43fc33('0x2568')][_0x43fc33('0x580')],{'IntervalId':_0x27dfe5[_0x43fc33('0x1f8c')]}),'interval'):[],_0x27dfe5[_0x43fc33('0x19cd')]=_0x326b32[_0x43fc33('0x13b5')]['context'],_0x27dfe5[_0x43fc33('0x1990')]=_0x326b32['inboundroute']['exten'];_0x27dfe5[_0x43fc33('0x6c8')]&&(_0x27dfe5[_0x43fc33('0x6c8')]=_0x27dfe5[_0x43fc33('0x6c8')][_0x43fc33('0xcf6')]());typeof _0x27dfe5[_0x43fc33('0x1ba2')]!==_0x43fc33('0x1574')&&(_0x1cf9af['includes'](_0x27dfe5[_0x43fc33('0x9eb')][_0x43fc33('0xcf6')]())&&_0x27dfe5[_0x43fc33('0xe6d')]!==_0x43fc33('0x113b')&&(_0x27dfe5[_0x43fc33('0x1ba2')]?(_0x5afa93[_0x43fc33('0x1599')]({'type':_0x27dfe5[_0x43fc33('0x6c8')][_0x43fc33('0xcf6')](),'app':_0x43fc33('0x1aff'),'appdata':_0x43fc33('0xa86'),'context':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')],'exten':_0x326b32[_0x43fc33('0x13b5')]['exten'],'priority':_0x27dfe5[_0x43fc33('0x2568')]['length']+_0x2e88af+_0x8a0938++,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']}),_0x5afa93['push']({'type':_0x27dfe5[_0x43fc33('0x6c8')]['toLowerCase'](),'app':'Set','appdata':_0x43fc33('0x6d1'),'context':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')],'exten':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x1990')],'priority':_0x27dfe5[_0x43fc33('0x2568')][_0x43fc33('0x2587')]+_0x2e88af+_0x8a0938++,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']})):(_0x5afa93[_0x43fc33('0x1599')]({'type':_0x27dfe5[_0x43fc33('0x6c8')]['toLowerCase'](),'app':_0x43fc33('0x1aff'),'appdata':_0x43fc33('0xc33'),'context':_0x326b32['inboundroute'][_0x43fc33('0x19cd')],'exten':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x1990')],'priority':_0x27dfe5[_0x43fc33('0x2568')][_0x43fc33('0x2587')]+_0x2e88af+_0x8a0938++,'VoiceExtensionId':_0x326b32['inboundroute']['id']}),_0x5afa93[_0x43fc33('0x1599')]({'type':_0x27dfe5[_0x43fc33('0x6c8')][_0x43fc33('0xcf6')](),'app':_0x43fc33('0x1666'),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')],'exten':_0x326b32[_0x43fc33('0x13b5')]['exten'],'priority':_0x27dfe5['intervals'][_0x43fc33('0x2587')]+_0x2e88af+_0x8a0938++,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']}))));for(var _0x323134=0x0;_0x323134<_0x27dfe5[_0x43fc33('0x2568')][_0x43fc33('0x2587')];_0x323134++){var _0x57e3ff=_0x2e88af+_0x27dfe5[_0x43fc33('0x2568')][_0x43fc33('0x2587')],_0x2bcbc5=_0x323134===_0x27dfe5[_0x43fc33('0x2568')][_0x43fc33('0x2587')]-0x1?_0x2e88af+_0x5afa93[_0x43fc33('0x2587')]+_0x1b1940[_0x43fc33('0x2587')]+0x2:_0x2e88af+_0x323134+0x1;_0x5afa93[_0x43fc33('0x1280')](_0x323134,0x0,{'type':'inbound','app':'GotoIfTime','appdata':_0x27dfe5[_0x43fc33('0x2568')][_0x323134]+'?'+_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')]+_0x43fc33('0x2134')+_0x57e3ff+':'+_0x326b32[_0x43fc33('0x13b5')]['context']+',${EXTEN},'+_0x2bcbc5,'exten':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x1990')],'context':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')],'priority':_0x2e88af+_0x323134,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']});}_0x27dfe5[_0x43fc33('0x13f2')]=_0x5afa93[_0x43fc33('0x2587')]?_0x51538b()[_0x43fc33('0x23f4')](_0x5afa93)[_0x43fc33('0x13f2')]+0x1:_0x2e88af,_0x2e88af=(_0x1b1940['length']?_0x51538b()[_0x43fc33('0x23f4')](_0x1b1940)[_0x43fc33('0x13f2')]:_0x27dfe5['priority'])+0x1,_0x3dd8b5=_0x51538b()[_0x43fc33('0x9e4')](_0x3dd8b5,_0x5afa93,[_0x27dfe5],_0x1b1940);}_0x3dd8b5['push']({'type':_0x43fc33('0x4b8'),'app':_0x43fc33('0x85e'),'exten':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x1990')],'context':_0x326b32[_0x43fc33('0x13b5')][_0x43fc33('0x19cd')],'priority':_0x2e88af,'VoiceExtensionId':_0x326b32[_0x43fc33('0x13b5')]['id']}),_0xdf8858[_0x43fc33('0x1361')][_0x43fc33('0x12e')]({'id':_0x326b32[_0x43fc33('0x13b5')]['id']},_0x51538b()['sortBy'](_0x3dd8b5,_0x43fc33('0x13f2')))[_0x43fc33('0x1dc2')][_0x43fc33('0xaa5')](function(_0x52d678){var _0x3d4549=_0x43fc33;_0x326b32[_0x3d4549('0x1a36')][_0x3d4549('0x580')]=_0x52d678[_0x3d4549('0x580')];})['catch'](function(_0x5cb8bf){var _0x430798=_0x43fc33;console[_0x430798('0x187f')](_0x5cb8bf);});}function _0xd26a8(_0x5863af){var _0x57d2da=_0x37d3c3;_0x326b32[_0x57d2da('0x1a36')]=_0x5863af||{'count':0x0,'rows':[]};}function _0x28326f(){var _0x175662=_0x37d3c3;return _0xdf8858[_0x175662('0x1c21')][_0x175662('0x2122')]({'fields':_0x175662('0x1487')})[_0x175662('0x1dc2')][_0x175662('0xaa5')](function(_0x28374c){_0x326b32['intervals']=_0x28374c;})['catch'](function(_0x580205){var _0x6d6dfe=_0x175662;console[_0x6d6dfe('0x187f')](_0x580205);});}function _0x599af8(){var _0x21f0b5=_0x37d3c3;_0x326b32[_0x21f0b5('0x159a')]=_0xdf8858[_0x21f0b5('0x1361')][_0x21f0b5('0x2122')](_0x326b32['query'],_0xd26a8)[_0x21f0b5('0x1dc2')];}function _0x4a2e4f(_0x242679){var _0x598b32=_0x37d3c3;_0x51538b()[_0x598b32('0xf6d')](_0x326b32[_0x598b32('0x1a36')][_0x598b32('0x580')],{'id':_0x242679['id']}),_0x3c870d(),_0x39acea[_0x598b32('0xe10')]({'title':_0x598b32('0x1446'),'msg':_0x242679[_0x598b32('0x9eb')]?_0x242679[_0x598b32('0x9eb')]+_0x598b32('0xcd9'):''});}function _0x4928a1(_0x3382bd){var _0x1a32bb=_0x37d3c3,_0x99ffa=_0x231547[_0x1a32bb('0x281e')]()[_0x1a32bb('0x110a')](_0x1a32bb('0x1190'))[_0x1a32bb('0x102e')](_0x1a32bb('0x389')+_0x326b32[_0x1a32bb('0x865')][_0x1a32bb('0x2587')]+'\x20selected'+_0x1a32bb('0x210d'))[_0x1a32bb('0x5b5')](_0x1a32bb('0x2845'))['targetEvent'](_0x3382bd)['ok']('OK')[_0x1a32bb('0x2030')](_0x1a32bb('0x2410'));_0x231547[_0x1a32bb('0x1e6d')](_0x99ffa)[_0x1a32bb('0xaa5')](function(){_0x326b32['selectedInboundRouteApps']['forEach'](function(_0x1a98d8){var _0x232ae2=a0_0x1149;_0x51538b()[_0x232ae2('0xf6d')](_0x326b32[_0x232ae2('0x1a36')]['rows'],{'id':_0x1a98d8['id']});}),_0x326b32['selectedInboundRouteApps']=[],_0x3c870d();});}}const _0x1b68b5=_0x2a7b05;_0xe1f3[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1790'),_0x1a8446('0x13b5'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0xe1f3(_0x36a950,_0x3c58f3,_0x4081bc,_0x18a8f6,_0x180b3f,_0x4d3fc3,_0x1d2b42,_0x2eba07){var _0x1ab359=_0x1a8446,_0x4d05b4=this;_0x4d05b4[_0x1ab359('0x7fc')]=_0x1d2b42[_0x1ab359('0xacc')](),_0x4d05b4[_0x1ab359('0x4c6')]=[],_0x4d05b4[_0x1ab359('0x110a')]=_0x1ab359('0x484')+(_0x18a8f6[_0x1ab359('0xe6d')]||_0x18a8f6['app'])[_0x1ab359('0x1d08')](),_0x4d05b4[_0x1ab359('0x2067')]=angular[_0x1ab359('0x20a')](_0x18a8f6),_0x4d05b4['crudPermissions']=_0x2eba07,_0x4d05b4[_0x1ab359('0x9f0')]={};if(_0x4d05b4['agi'][_0x1ab359('0x124b')])switch(_0x4d05b4['agi'][_0x1ab359('0xe6d')]?_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0xe6d')][_0x1ab359('0xcf6')]():_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x9eb')][_0x1ab359('0xcf6')]()){case _0x1ab359('0x113b'):break;case'dialogflow':{var _0x3743d3=_0x4d05b4['agi']['appdata']['split'](',');_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x24ec')]=_0x3743d3[0x0],_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x1938')]=_0x3743d3[0x1],_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x273')]=_0x3743d3[_0x1ab359('0x19aa')](0x2,_0x3743d3[_0x1ab359('0x2587')])[_0x1ab359('0x19c4')](',');}break;case _0x1ab359('0x3f5'):{var _0x1035a4=_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x124b')][_0x1ab359('0x1a39')](',');_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0xc07')]=_0x1035a4[0x0],_0x4d05b4['agi'][_0x1ab359('0x15f9')]=_0x1035a4[0x1],_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0xa9a')]=_0x1035a4[0x2],_0x4d05b4['agi'][_0x1ab359('0x18ee')]=_0x1035a4[0x3],_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x273')]=_0x1035a4[_0x1ab359('0x19aa')](0x4,_0x1035a4[_0x1ab359('0x2587')])[_0x1ab359('0x19c4')](',');}break;case'autoreply':{var _0x100add=_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x124b')][_0x1ab359('0x1a39')](',');_0x4d05b4['agi']['times']=isNaN(_0x100add[0x0])?_0x100add[0x0]:parseInt(_0x100add[0x0],0xa),_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0xb37')]=_0x100add['slice'](0x1,_0x100add[_0x1ab359('0x2587')])[_0x1ab359('0x19c4')](',');}break;case _0x1ab359('0x1402'):_0x4d05b4[_0x1ab359('0x2067')]['text']=_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x124b')];break;case _0x1ab359('0x282c'):_0x4d05b4[_0x1ab359('0x2067')]['name']=_0x4d05b4['agi'][_0x1ab359('0x124b')][_0x1ab359('0x1a39')]('=')[0x0],_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x12f4')]=_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x124b')][_0x1ab359('0x1a39')]('=')[0x1];break;case _0x1ab359('0x2067'):_0x4d05b4['agi'][_0x1ab359('0x24b9')]=_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x124b')];break;default:{var _0x301cbb=_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x124b')][_0x1ab359('0x1a39')](',');_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x24b9')]=_0x51538b()['isEmpty'](_0x301cbb[0x0])?_0x301cbb[0x0]:isNaN(_0x301cbb[0x0])?_0x301cbb[0x0]:parseInt(_0x301cbb[0x0],0xa);}break;}else{}_0x4d05b4['agi'][_0x1ab359('0x6c8')]&&_0x4d05b4['agi'][_0x1ab359('0x6c8')][_0x1ab359('0xcf6')]()===_0x1ab359('0x19d1')&&_0x4d05b4[_0x1ab359('0x2067')]['appType'][_0x1ab359('0xcf6')]()===_0x1ab359('0x1e7f')&&(_0x4d05b4[_0x1ab359('0x2067')]['prefix']=_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x1a46')]?_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0x1a46')][_0x1ab359('0x1a39')]('$')[0x0]:undefined,_0x4d05b4[_0x1ab359('0x2067')][_0x1ab359('0xeed')]=_0x4d05b4[_0x1ab359('0x2067')]['callerID']?_0x1ab359('0x23d8')+_0x4d05b4['agi'][_0x1ab359('0x514')]:undefined);_0x4d05b4['saveInboundRouteApp']=_0x22f8bb,_0x4d05b4[_0x1ab359('0x2023')]=_0x18f590,_0x1d2b42[_0x1ab359('0x26e8')](_0x1ab359('0x178b'))?_0x4d3fc3['squareProject'][_0x1ab359('0x2122')]({'fields':'id,name','sort':_0x1ab359('0x25d6'),'nolimit':'true'})[_0x1ab359('0x1dc2')][_0x1ab359('0xaa5')](function(_0x545554){var _0xeb78b8=_0x1ab359;_0x4d05b4[_0xeb78b8('0x8d1')]=_0x545554[_0xeb78b8('0x580')]||[];})[_0x1ab359('0x253d')](function(_0x3c6e34){var _0xbfd63e=_0x1ab359;_0x4081bc[_0xbfd63e('0x187f')]({'title':_0x3c6e34[_0xbfd63e('0x2fa')]?_0xbfd63e('0x16c2')+_0x3c6e34[_0xbfd63e('0x2fa')]+_0xbfd63e('0x169e')+_0x3c6e34[_0xbfd63e('0x24df')]:'SYSTEM:GET_PROJECTS','msg':_0x3c6e34[_0xbfd63e('0x10fd')]?JSON[_0xbfd63e('0xa48')](_0x3c6e34[_0xbfd63e('0x10fd')]):_0x3c6e34[_0xbfd63e('0x684')]()});}):_0x4d3fc3[_0x1ab359('0x37b')][_0x1ab359('0x2122')]({'fields':_0x1ab359('0x17fe'),'sort':_0x1ab359('0x25d6'),'nolimit':_0x1ab359('0x1c5c')})[_0x1ab359('0x1dc2')]['then'](function(_0x528b36){var _0x549a20=_0x1ab359;_0x4d05b4[_0x549a20('0x8d1')]=_0x528b36[_0x549a20('0x580')]||[];})[_0x1ab359('0xaa5')](function(){var _0x3f0d65=_0x1ab359;return _0x4d3fc3[_0x3f0d65('0x1a50')][_0x3f0d65('0x2122')]({'userProfileId':_0x4d05b4[_0x3f0d65('0x7fc')][_0x3f0d65('0x2168')],'sectionId':0x44f})['$promise'];})[_0x1ab359('0xaa5')](function(_0x2305f9){var _0x10056b=_0x1ab359,_0x1b9a2a=_0x2305f9&&_0x2305f9['rows']?_0x2305f9[_0x10056b('0x580')][0x0]:null;if(!_0x1b9a2a){var _0x5ac76b=[],_0x3c4daf=null;_0x4d05b4[_0x10056b('0x2067')]&&(_0x3c4daf=_0x51538b()['find'](_0x4d05b4[_0x10056b('0x8d1')],{'name':_0x4d05b4[_0x10056b('0x2067')][_0x10056b('0x24b9')]}));for(var _0x4a6606=0x0;_0x4a6606<_0x4d05b4[_0x10056b('0x8d1')][_0x10056b('0x2587')];_0x4a6606++){_0x3c4daf&&_0x4d05b4[_0x10056b('0x8d1')][_0x4a6606]['id']===_0x3c4daf['id']&&(_0x4d05b4[_0x10056b('0x8d1')][_0x4a6606][_0x10056b('0x12eb')]=![],_0x5ac76b[_0x10056b('0x1599')](_0x4d05b4[_0x10056b('0x8d1')][_0x4a6606]));}_0x4d05b4['projects']=_0x5ac76b;}else{if(!_0x1b9a2a[_0x10056b('0x26cc')])return _0x4d3fc3[_0x10056b('0x249a')][_0x10056b('0x2122')]({'sectionId':_0x1b9a2a['id']})['$promise']['then'](function(_0x500f05){var _0x126e24=_0x10056b,_0x437130=_0x51538b()[_0x126e24('0x1246')](_0x500f05['rows'],function(_0x3809e4){var _0x531811=_0x126e24;return _0x51538b()[_0x531811('0xe9e')](_0x4d05b4['projects'],{'id':_0x3809e4[_0x531811('0xbcd')]});}),_0x27a16a=null;_0x4d05b4[_0x126e24('0x2067')]&&(_0x27a16a=_0x51538b()[_0x126e24('0xe9e')](_0x4d05b4[_0x126e24('0x8d1')],{'name':_0x4d05b4[_0x126e24('0x2067')][_0x126e24('0x24b9')]}));if(_0x27a16a&&!_0x51538b()['some'](_0x437130,['id',_0x27a16a['id']])){var _0x10fbe3=_0x51538b()['find'](_0x4d05b4[_0x126e24('0x8d1')],{'id':_0x27a16a['id']});_0x10fbe3['canSelect']=![],_0x437130['push'](_0x10fbe3);}_0x4d05b4[_0x126e24('0x8d1')]=_0x437130;});}})[_0x1ab359('0x253d')](function(_0x3d93b4){var _0x218cbb=_0x1ab359;_0x4081bc[_0x218cbb('0x187f')]({'title':_0x3d93b4[_0x218cbb('0x2fa')]?_0x218cbb('0x16c2')+_0x3d93b4['status']+_0x218cbb('0x169e')+_0x3d93b4[_0x218cbb('0x24df')]:_0x218cbb('0x19d7'),'msg':_0x3d93b4[_0x218cbb('0x10fd')]?JSON[_0x218cbb('0xa48')](_0x3d93b4[_0x218cbb('0x10fd')]):_0x3d93b4[_0x218cbb('0x684')]()});});function _0x22f8bb(){var _0x51a11b=_0x1ab359;_0x4d05b4[_0x51a11b('0x4c6')]=[];var _0x3d0400=[];_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x6c8')]&&_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x6c8')][_0x51a11b('0xcf6')]()==='outbound'&&_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0xe6d')]==='outboundDial'&&(_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x1a46')]=_0x180b3f[_0x51a11b('0x888')]?(_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x1b8f')]||'')+_0x51a11b('0x117e')+_0x180b3f[_0x51a11b('0x888')]+'}':(_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x1b8f')]||'')+_0x51a11b('0x1f87'),_0x180b3f[_0x51a11b('0x1e0f')]!==_0x51a11b('0x117')?_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x1b36')]['indexOf'](_0x51a11b('0x266a'))<0x0&&(_0x4d05b4[_0x51a11b('0x2067')]['options']+=_0x51a11b('0x266a')):_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x1b36')]=_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x1b36')][_0x51a11b('0x170d')](_0x51a11b('0x266a'),''));if(_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0xe6d')]&&_0x4d05b4[_0x51a11b('0x2067')]['appType']===_0x51a11b('0x113b')){}else switch((_0x4d05b4[_0x51a11b('0x2067')]['app']||_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0xe6d')])[_0x51a11b('0xcf6')]()){case _0x51a11b('0x282c'):_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x124b')]=_0x4d05b4['agi'][_0x51a11b('0x25d6')]+'='+_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x12f4')];break;case _0x51a11b('0x113b'):break;default:_0x3d0400[0x0]=_0x4d05b4['agi'][_0x51a11b('0x24b9')],_0x4d05b4[_0x51a11b('0x2067')][_0x51a11b('0x124b')]=_0x3d0400[_0x51a11b('0x19c4')](',');}_0x18f590(_0x4d05b4[_0x51a11b('0x2067')]);}function _0x18f590(_0x1630bc){var _0xd5734d=_0x1ab359;_0x36a950[_0xd5734d('0x1120')](_0x1630bc);}}const _0x5061b8=_0xe1f3;_0x417622['$inject']=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x1790'),'inboundroute',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x417622(_0x9f229d,_0x1437aa,_0x1610e2,_0x3fafaa,_0x9b056,_0x231fa9,_0x5cc428,_0x2a59cb){var _0xc8e00b=_0x1a8446,_0x3f78b0=this;_0x3f78b0[_0xc8e00b('0x7fc')]=_0x5cc428[_0xc8e00b('0xacc')](),_0x3f78b0[_0xc8e00b('0x4c6')]=[],_0x3f78b0[_0xc8e00b('0x110a')]=_0xc8e00b('0x484')+(_0x3fafaa[_0xc8e00b('0xe6d')]||_0x3fafaa['app'])[_0xc8e00b('0x1d08')](),_0x3f78b0[_0xc8e00b('0x113b')]=angular[_0xc8e00b('0x20a')](_0x3fafaa),_0x3f78b0[_0xc8e00b('0xada')]=_0x2a59cb,_0x3f78b0[_0xc8e00b('0x9f0')]={};if(_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x124b')])switch(_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0xe6d')]?_0x3f78b0[_0xc8e00b('0x113b')]['appType'][_0xc8e00b('0xcf6')]():_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x9eb')][_0xc8e00b('0xcf6')]()){case _0xc8e00b('0x113b'):break;case _0xc8e00b('0x67c'):{var _0x10670f=_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x124b')][_0xc8e00b('0x1a39')](',');_0x3f78b0['custom'][_0xc8e00b('0x24ec')]=_0x10670f[0x0],_0x3f78b0['custom']['language']=_0x10670f[0x1],_0x3f78b0['custom']['welcomemessage']=_0x10670f['slice'](0x2,_0x10670f[_0xc8e00b('0x2587')])['join'](',');}break;case _0xc8e00b('0x3f5'):{var _0x5613f2=_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x124b')][_0xc8e00b('0x1a39')](',');_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0xc07')]=_0x5613f2[0x0],_0x3f78b0['custom'][_0xc8e00b('0x15f9')]=_0x5613f2[0x1],_0x3f78b0[_0xc8e00b('0x113b')]['lexregion']=_0x5613f2[0x2],_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x18ee')]=_0x5613f2[0x3],_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x273')]=_0x5613f2[_0xc8e00b('0x19aa')](0x4,_0x5613f2[_0xc8e00b('0x2587')])[_0xc8e00b('0x19c4')](',');}break;case _0xc8e00b('0x1b05'):{var _0x29b3f8=_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x124b')][_0xc8e00b('0x1a39')](',');_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x11b6')]=isNaN(_0x29b3f8[0x0])?_0x29b3f8[0x0]:parseInt(_0x29b3f8[0x0],0xa),_0x3f78b0[_0xc8e00b('0x113b')]['text']=_0x29b3f8['slice'](0x1,_0x29b3f8[_0xc8e00b('0x2587')])['join'](',');}break;case _0xc8e00b('0x1402'):_0x3f78b0['custom'][_0xc8e00b('0xb37')]=_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x124b')];break;case _0xc8e00b('0x282c'):_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x25d6')]=_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x124b')][_0xc8e00b('0x1a39')]('=')[0x0],_0x3f78b0['custom']['value']=_0x3f78b0[_0xc8e00b('0x113b')]['appdata']['split']('=')[0x1];break;case'agi':_0x3f78b0['custom'][_0xc8e00b('0x24b9')]=_0x3f78b0['custom'][_0xc8e00b('0x124b')];break;default:{var _0x762405=_0x3f78b0[_0xc8e00b('0x113b')]['appdata'][_0xc8e00b('0x1a39')](',');_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x9eb')]=_0x51538b()['isEmpty'](_0x762405[0x0])?_0x762405[0x0]:isNaN(_0x762405[0x0])?_0x762405[0x0]:parseInt(_0x762405[0x0],0xa),_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x124b')]=_0x51538b()[_0xc8e00b('0x116b')](_0x762405[0x1])?_0x762405[0x1]:isNaN(_0x762405[0x1])?_0x762405[0x1]:parseInt(_0x762405[0x1],0xa);}break;}else{}_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x6c8')]&&_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x6c8')][_0xc8e00b('0xcf6')]()===_0xc8e00b('0x19d1')&&_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0xe6d')][_0xc8e00b('0xcf6')]()===_0xc8e00b('0x1e7f')&&(_0x3f78b0['custom']['prefix']=_0x3f78b0['custom'][_0xc8e00b('0x1a46')]?_0x3f78b0[_0xc8e00b('0x113b')][_0xc8e00b('0x1a46')][_0xc8e00b('0x1a39')]('$')[0x0]:undefined,_0x3f78b0['custom']['callerId']=_0x3f78b0['custom']['callerID']?_0xc8e00b('0x23d8')+_0x3f78b0['custom']['callerID']:undefined);_0x3f78b0[_0xc8e00b('0x2559')]=_0x545421,_0x3f78b0[_0xc8e00b('0x2023')]=_0x2cd577;function _0x545421(){var _0x3c02fa=_0xc8e00b;_0x3f78b0['errors']=[];var _0x50890f=[];_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x6c8')]&&_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x6c8')][_0x3c02fa('0xcf6')]()===_0x3c02fa('0x19d1')&&_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0xe6d')]===_0x3c02fa('0x8da')&&(_0x3f78b0['custom']['phone']=_0x9b056[_0x3c02fa('0x888')]?(_0x3f78b0[_0x3c02fa('0x113b')]['prefix']||'')+_0x3c02fa('0x117e')+_0x9b056[_0x3c02fa('0x888')]+'}':(_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x1b8f')]||'')+'${EXTEN}',_0x9b056[_0x3c02fa('0x1e0f')]!==_0x3c02fa('0x117')?_0x3f78b0[_0x3c02fa('0x113b')]['options'][_0x3c02fa('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x1b36')]=_0x3f78b0['custom'][_0x3c02fa('0x1b36')][_0x3c02fa('0x170d')](_0x3c02fa('0x266a'),''));if(_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0xe6d')]&&_0x3f78b0['custom'][_0x3c02fa('0xe6d')]===_0x3c02fa('0x113b')){}else switch((_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x9eb')]||_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0xe6d')])[_0x3c02fa('0xcf6')]()){case'set':_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x124b')]=_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x25d6')]+'='+_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x12f4')];break;case'custom':break;default:_0x50890f[0x0]=_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x9eb')],_0x50890f[0x1]=_0x3f78b0[_0x3c02fa('0x113b')][_0x3c02fa('0x124b')],_0x3f78b0[_0x3c02fa('0x113b')]['appdata']=_0x50890f[_0x3c02fa('0x19c4')](',');}_0x2cd577(_0x3f78b0[_0x3c02fa('0x113b')]);}function _0x2cd577(_0x5ad64f){_0x9f229d['hide'](_0x5ad64f);}}const _0x2e5d27=_0x417622;_0x57a4f0['$inject']=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x1790'),_0x1a8446('0x13b5'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x57a4f0(_0x3130a4,_0x2ed36b,_0x501d9b,_0x905244,_0x3963af,_0x2e23a6,_0x4d3cae,_0xe8d38){var _0x43db71=_0x1a8446,_0x2d2cdf=this;_0x2d2cdf['currentUser']=_0x4d3cae['getCurrentUser'](),_0x2d2cdf['errors']=[],_0x2d2cdf[_0x43db71('0x110a')]=_0x43db71('0x484')+(_0x905244[_0x43db71('0xe6d')]||_0x905244[_0x43db71('0x9eb')])['toUpperCase'](),_0x2d2cdf[_0x43db71('0xfab')]=angular[_0x43db71('0x20a')](_0x905244),_0x2d2cdf['crudPermissions']=_0xe8d38,_0x2d2cdf['hasModulePermissions']={};if(_0x2d2cdf['dial'][_0x43db71('0x124b')])switch(_0x2d2cdf['dial']['appType']?_0x2d2cdf['dial'][_0x43db71('0xe6d')]['toLowerCase']():_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x9eb')]['toLowerCase']()){case _0x43db71('0x113b'):break;case _0x43db71('0x67c'):{var _0x5c174c=_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x124b')][_0x43db71('0x1a39')](',');_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x24ec')]=_0x5c174c[0x0],_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x1938')]=_0x5c174c[0x1],_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x273')]=_0x5c174c[_0x43db71('0x19aa')](0x2,_0x5c174c['length'])[_0x43db71('0x19c4')](',');}break;case _0x43db71('0x3f5'):{var _0xcb20ca=_0x2d2cdf[_0x43db71('0xfab')]['appdata'][_0x43db71('0x1a39')](',');_0x2d2cdf['dial']['accesskeyid']=_0xcb20ca[0x0],_0x2d2cdf[_0x43db71('0xfab')]['secretaccesskey']=_0xcb20ca[0x1],_0x2d2cdf['dial'][_0x43db71('0xa9a')]=_0xcb20ca[0x2],_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x18ee')]=_0xcb20ca[0x3],_0x2d2cdf['dial']['welcomemessage']=_0xcb20ca['slice'](0x4,_0xcb20ca[_0x43db71('0x2587')])[_0x43db71('0x19c4')](',');}break;case _0x43db71('0x1b05'):{var _0x5dd112=_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x124b')][_0x43db71('0x1a39')](',');_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x11b6')]=isNaN(_0x5dd112[0x0])?_0x5dd112[0x0]:parseInt(_0x5dd112[0x0],0xa),_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0xb37')]=_0x5dd112[_0x43db71('0x19aa')](0x1,_0x5dd112[_0x43db71('0x2587')])[_0x43db71('0x19c4')](',');}break;case'message':_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0xb37')]=_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x124b')];break;case _0x43db71('0x282c'):_0x2d2cdf['dial']['name']=_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x124b')][_0x43db71('0x1a39')]('=')[0x0],_0x2d2cdf['dial'][_0x43db71('0x12f4')]=_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x124b')][_0x43db71('0x1a39')]('=')[0x1];break;case _0x43db71('0x2067'):_0x2d2cdf['dial'][_0x43db71('0x24b9')]=_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x124b')];break;default:{var _0x2a1b30=_0x2d2cdf['dial'][_0x43db71('0x124b')][_0x43db71('0x1a39')](',');_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x130f')]=_0x51538b()[_0x43db71('0x116b')](_0x2a1b30[0x0])?_0x2a1b30[0x0]:isNaN(_0x2a1b30[0x0])?_0x2a1b30[0x0]:parseInt(_0x2a1b30[0x0],0xa),_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x23c0')]=_0x51538b()[_0x43db71('0x116b')](_0x2a1b30[0x1])?_0x2a1b30[0x1]:isNaN(_0x2a1b30[0x1])?_0x2a1b30[0x1]:parseInt(_0x2a1b30[0x1],0xa),_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x1b36')]=_0x51538b()['isEmpty'](_0x2a1b30[0x2])?_0x2a1b30[0x2]:isNaN(_0x2a1b30[0x2])?_0x2a1b30[0x2]:parseInt(_0x2a1b30[0x2],0xa),_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x2242')]=_0x51538b()['isEmpty'](_0x2a1b30[0x3])?_0x2a1b30[0x3]:isNaN(_0x2a1b30[0x3])?_0x2a1b30[0x3]:parseInt(_0x2a1b30[0x3],0xa);}break;}else{}_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x6c8')]&&_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x6c8')][_0x43db71('0xcf6')]()===_0x43db71('0x19d1')&&_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0xe6d')][_0x43db71('0xcf6')]()===_0x43db71('0x1e7f')&&(_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x1b8f')]=_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x1a46')]?_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x1a46')][_0x43db71('0x1a39')]('$')[0x0]:undefined,_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0xeed')]=_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x514')]?_0x43db71('0x23d8')+_0x2d2cdf[_0x43db71('0xfab')][_0x43db71('0x514')]:undefined);_0x2d2cdf[_0x43db71('0x2559')]=_0x51e9dd,_0x2d2cdf[_0x43db71('0x2023')]=_0x17693e;function _0x51e9dd(){var _0xaf35c9=_0x43db71;_0x2d2cdf[_0xaf35c9('0x4c6')]=[];var _0x1aaa78=[];_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x6c8')]&&_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x6c8')][_0xaf35c9('0xcf6')]()===_0xaf35c9('0x19d1')&&_0x2d2cdf['dial'][_0xaf35c9('0xe6d')]===_0xaf35c9('0x8da')&&(_0x2d2cdf['dial'][_0xaf35c9('0x1a46')]=_0x3963af[_0xaf35c9('0x888')]?(_0x2d2cdf['dial'][_0xaf35c9('0x1b8f')]||'')+'${EXTEN:'+_0x3963af[_0xaf35c9('0x888')]+'}':(_0x2d2cdf[_0xaf35c9('0xfab')]['prefix']||'')+_0xaf35c9('0x1f87'),_0x3963af[_0xaf35c9('0x1e0f')]!==_0xaf35c9('0x117')?_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x1b36')][_0xaf35c9('0x1f38')](_0xaf35c9('0x266a'))<0x0&&(_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x1b36')]+=_0xaf35c9('0x266a')):_0x2d2cdf[_0xaf35c9('0xfab')]['options']=_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x1b36')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x2d2cdf[_0xaf35c9('0xfab')]['appType']&&_0x2d2cdf[_0xaf35c9('0xfab')]['appType']===_0xaf35c9('0x113b')){}else switch((_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x9eb')]||_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0xe6d')])[_0xaf35c9('0xcf6')]()){case'set':_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x124b')]=_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x25d6')]+'='+_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x12f4')];break;case _0xaf35c9('0x113b'):break;default:_0x1aaa78[0x0]=_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x130f')],_0x1aaa78[0x1]=_0x2d2cdf[_0xaf35c9('0xfab')]['timeout'],_0x1aaa78[0x2]=_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x1b36')],_0x1aaa78[0x3]=_0x2d2cdf[_0xaf35c9('0xfab')][_0xaf35c9('0x2242')],_0x2d2cdf[_0xaf35c9('0xfab')]['appdata']=_0x1aaa78['join'](',');}_0x17693e(_0x2d2cdf[_0xaf35c9('0xfab')]);}function _0x17693e(_0x46e7fc){var _0x3abe9d=_0x43db71;_0x3130a4[_0x3abe9d('0x1120')](_0x46e7fc);}}const _0x347e38=_0x57a4f0;_0x7409a8[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1790'),'inboundroute','api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x7409a8(_0x26c45a,_0x5a35b1,_0x2cfca7,_0x528c6c,_0x128aca,_0x2b2ee0,_0x32c9d4,_0x1dc302){var _0x5a05b1=_0x1a8446,_0x7b417c=this;_0x7b417c['currentUser']=_0x32c9d4[_0x5a05b1('0xacc')](),_0x7b417c[_0x5a05b1('0x4c6')]=[],_0x7b417c[_0x5a05b1('0x110a')]='VOICE.EDIT_'+(_0x528c6c[_0x5a05b1('0xe6d')]||_0x528c6c[_0x5a05b1('0x9eb')])['toUpperCase'](),_0x7b417c[_0x5a05b1('0x1bd8')]=angular[_0x5a05b1('0x20a')](_0x528c6c),_0x7b417c[_0x5a05b1('0xada')]=_0x1dc302,_0x7b417c[_0x5a05b1('0x9f0')]={};if(_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x124b')])switch(_0x7b417c[_0x5a05b1('0x1bd8')]['appType']?_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0xe6d')][_0x5a05b1('0xcf6')]():_0x7b417c['externaldial'][_0x5a05b1('0x9eb')][_0x5a05b1('0xcf6')]()){case _0x5a05b1('0x113b'):break;case'dialogflow':{var _0x184a40=_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x124b')]['split'](',');_0x7b417c[_0x5a05b1('0x1bd8')]['key']=_0x184a40[0x0],_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x1938')]=_0x184a40[0x1],_0x7b417c['externaldial'][_0x5a05b1('0x273')]=_0x184a40['slice'](0x2,_0x184a40['length'])[_0x5a05b1('0x19c4')](',');}break;case'amazonlex':{var _0xf6ace4=_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x124b')][_0x5a05b1('0x1a39')](',');_0x7b417c['externaldial'][_0x5a05b1('0xc07')]=_0xf6ace4[0x0],_0x7b417c[_0x5a05b1('0x1bd8')]['secretaccesskey']=_0xf6ace4[0x1],_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0xa9a')]=_0xf6ace4[0x2],_0x7b417c['externaldial'][_0x5a05b1('0x18ee')]=_0xf6ace4[0x3],_0x7b417c[_0x5a05b1('0x1bd8')]['welcomemessage']=_0xf6ace4[_0x5a05b1('0x19aa')](0x4,_0xf6ace4[_0x5a05b1('0x2587')])[_0x5a05b1('0x19c4')](',');}break;case _0x5a05b1('0x1b05'):{var _0x47486b=_0x7b417c['externaldial'][_0x5a05b1('0x124b')][_0x5a05b1('0x1a39')](',');_0x7b417c[_0x5a05b1('0x1bd8')]['times']=isNaN(_0x47486b[0x0])?_0x47486b[0x0]:parseInt(_0x47486b[0x0],0xa),_0x7b417c['externaldial']['text']=_0x47486b[_0x5a05b1('0x19aa')](0x1,_0x47486b[_0x5a05b1('0x2587')])[_0x5a05b1('0x19c4')](',');}break;case _0x5a05b1('0x1402'):_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0xb37')]=_0x7b417c['externaldial'][_0x5a05b1('0x124b')];break;case _0x5a05b1('0x282c'):_0x7b417c['externaldial'][_0x5a05b1('0x25d6')]=_0x7b417c[_0x5a05b1('0x1bd8')]['appdata'][_0x5a05b1('0x1a39')]('=')[0x0],_0x7b417c['externaldial']['value']=_0x7b417c[_0x5a05b1('0x1bd8')]['appdata'][_0x5a05b1('0x1a39')]('=')[0x1];break;case _0x5a05b1('0x2067'):_0x7b417c['externaldial'][_0x5a05b1('0x24b9')]=_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x124b')];break;default:{var _0x5bfadd=_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x124b')][_0x5a05b1('0x1a39')](',');_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x1651')]=_0x5bfadd[0x0][_0x5a05b1('0x1a39')]('/')[0x1],_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x1a46')]=_0x5bfadd[0x0]['split']('/')[0x2],_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x23c0')]=_0x51538b()['isEmpty'](_0x5bfadd[0x1])?_0x5bfadd[0x1]:isNaN(_0x5bfadd[0x1])?_0x5bfadd[0x1]:parseInt(_0x5bfadd[0x1],0xa),_0x7b417c['externaldial'][_0x5a05b1('0x1b36')]=_0x51538b()[_0x5a05b1('0x116b')](_0x5bfadd[0x2])?_0x5bfadd[0x2]:isNaN(_0x5bfadd[0x2])?_0x5bfadd[0x2]:parseInt(_0x5bfadd[0x2],0xa),_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x2242')]=_0x51538b()[_0x5a05b1('0x116b')](_0x5bfadd[0x3])?_0x5bfadd[0x3]:isNaN(_0x5bfadd[0x3])?_0x5bfadd[0x3]:parseInt(_0x5bfadd[0x3],0xa);}break;}else{}_0x7b417c['externaldial']['type']&&_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x6c8')][_0x5a05b1('0xcf6')]()==='outbound'&&_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0xe6d')][_0x5a05b1('0xcf6')]()==='outbounddial'&&(_0x7b417c[_0x5a05b1('0x1bd8')]['prefix']=_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x1a46')]?_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0x1a46')][_0x5a05b1('0x1a39')]('$')[0x0]:undefined,_0x7b417c[_0x5a05b1('0x1bd8')][_0x5a05b1('0xeed')]=_0x7b417c[_0x5a05b1('0x1bd8')]['callerID']?_0x5a05b1('0x23d8')+_0x7b417c[_0x5a05b1('0x1bd8')]['callerID']:undefined);_0x7b417c[_0x5a05b1('0x2559')]=_0x899f20,_0x7b417c['closeDialog']=_0x49bdb4,_0x32c9d4[_0x5a05b1('0x26e8')](_0x5a05b1('0x178b'))?_0x2b2ee0[_0x5a05b1('0x1651')][_0x5a05b1('0x2122')]({'fields':_0x5a05b1('0x17fe'),'sort':'name','nolimit':_0x5a05b1('0x1c5c')})[_0x5a05b1('0x1dc2')]['then'](function(_0x241570){var _0x2005ae=_0x5a05b1;_0x7b417c['trunks']=_0x241570[_0x2005ae('0x580')]||[];})[_0x5a05b1('0x253d')](function(_0x1df6e4){var _0x4b79a6=_0x5a05b1;_0x2cfca7[_0x4b79a6('0x187f')]({'title':_0x1df6e4[_0x4b79a6('0x2fa')]?_0x4b79a6('0x16c2')+_0x1df6e4[_0x4b79a6('0x2fa')]+_0x4b79a6('0x169e')+_0x1df6e4[_0x4b79a6('0x24df')]:_0x4b79a6('0x298'),'msg':_0x1df6e4[_0x4b79a6('0x10fd')]?JSON[_0x4b79a6('0xa48')](_0x1df6e4[_0x4b79a6('0x10fd')]):_0x1df6e4['toString']()});}):_0x2b2ee0[_0x5a05b1('0x1651')]['get']({'fields':_0x5a05b1('0x17fe'),'sort':_0x5a05b1('0x25d6'),'nolimit':_0x5a05b1('0x1c5c')})['$promise'][_0x5a05b1('0xaa5')](function(_0x3747b0){var _0x3cabda=_0x5a05b1;_0x7b417c[_0x3cabda('0x1bc2')]=_0x3747b0[_0x3cabda('0x580')]||[];})[_0x5a05b1('0xaa5')](function(){var _0x1e9bdd=_0x5a05b1;return _0x2b2ee0[_0x1e9bdd('0x1a50')]['get']({'userProfileId':_0x7b417c[_0x1e9bdd('0x7fc')][_0x1e9bdd('0x2168')],'sectionId':0x3f3})[_0x1e9bdd('0x1dc2')];})[_0x5a05b1('0xaa5')](function(_0x5528be){var _0x2ddfbe=_0x5a05b1,_0x3c9261=_0x5528be&&_0x5528be[_0x2ddfbe('0x580')]?_0x5528be[_0x2ddfbe('0x580')][0x0]:null;if(!_0x3c9261){var _0x17fa51=[],_0x231c57=null;_0x7b417c['externaldial']&&(_0x231c57=_0x51538b()[_0x2ddfbe('0xe9e')](_0x7b417c[_0x2ddfbe('0x1bc2')],{'name':_0x7b417c[_0x2ddfbe('0x1bd8')][_0x2ddfbe('0x1651')]}));for(var _0x390399=0x0;_0x390399<_0x7b417c[_0x2ddfbe('0x1bc2')]['length'];_0x390399++){_0x231c57&&_0x7b417c[_0x2ddfbe('0x1bc2')][_0x390399]['id']===_0x231c57['id']&&(_0x7b417c[_0x2ddfbe('0x1bc2')][_0x390399]['canSelect']=![],_0x17fa51[_0x2ddfbe('0x1599')](_0x7b417c[_0x2ddfbe('0x1bc2')][_0x390399]));}_0x7b417c[_0x2ddfbe('0x1bc2')]=_0x17fa51;}else{if(!_0x3c9261[_0x2ddfbe('0x26cc')])return _0x2b2ee0[_0x2ddfbe('0x249a')][_0x2ddfbe('0x2122')]({'sectionId':_0x3c9261['id']})[_0x2ddfbe('0x1dc2')][_0x2ddfbe('0xaa5')](function(_0x341084){var _0x4c7f17=_0x2ddfbe,_0x57f41e=_0x51538b()['map'](_0x341084[_0x4c7f17('0x580')],function(_0x4c98ba){var _0x4b278c=_0x4c7f17;return _0x51538b()[_0x4b278c('0xe9e')](_0x7b417c[_0x4b278c('0x1bc2')],{'id':_0x4c98ba[_0x4b278c('0xbcd')]});}),_0x599c80=null;_0x7b417c['externaldial']&&(_0x599c80=_0x51538b()['find'](_0x7b417c[_0x4c7f17('0x1bc2')],{'name':_0x7b417c[_0x4c7f17('0x1bd8')]['trunk']}));if(_0x599c80&&!_0x51538b()[_0x4c7f17('0x2c2')](_0x57f41e,['id',_0x599c80['id']])){var _0x56feb1=_0x51538b()[_0x4c7f17('0xe9e')](_0x7b417c['trunks'],{'id':_0x599c80['id']});_0x56feb1[_0x4c7f17('0x12eb')]=![],_0x57f41e[_0x4c7f17('0x1599')](_0x56feb1);}_0x7b417c[_0x4c7f17('0x1bc2')]=_0x57f41e;});}})[_0x5a05b1('0x253d')](function(_0xb76376){var _0x35b1af=_0x5a05b1;_0x2cfca7['error']({'title':_0xb76376[_0x35b1af('0x2fa')]?'API:'+_0xb76376['status']+_0x35b1af('0x169e')+_0xb76376[_0x35b1af('0x24df')]:_0x35b1af('0x117a'),'msg':_0xb76376['data']?JSON[_0x35b1af('0xa48')](_0xb76376[_0x35b1af('0x10fd')]):_0xb76376[_0x35b1af('0x684')]()});});function _0x899f20(){var _0x3866ca=_0x5a05b1;_0x7b417c[_0x3866ca('0x4c6')]=[];var _0x1da519=[];_0x7b417c[_0x3866ca('0x1bd8')]['type']&&_0x7b417c[_0x3866ca('0x1bd8')]['type'][_0x3866ca('0xcf6')]()==='outbound'&&_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0xe6d')]===_0x3866ca('0x8da')&&(_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1a46')]=_0x128aca[_0x3866ca('0x888')]?(_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1b8f')]||'')+'${EXTEN:'+_0x128aca['cutdigits']+'}':(_0x7b417c[_0x3866ca('0x1bd8')]['prefix']||'')+_0x3866ca('0x1f87'),_0x128aca[_0x3866ca('0x1e0f')]!=='none'?_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1b36')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1b36')]+=_0x3866ca('0x266a')):_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1b36')]=_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1b36')][_0x3866ca('0x170d')](_0x3866ca('0x266a'),''));if(_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0xe6d')]&&_0x7b417c['externaldial']['appType']===_0x3866ca('0x113b')){}else switch((_0x7b417c['externaldial'][_0x3866ca('0x9eb')]||_0x7b417c[_0x3866ca('0x1bd8')]['appType'])['toLowerCase']()){case _0x3866ca('0x282c'):_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x124b')]=_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x25d6')]+'='+_0x7b417c[_0x3866ca('0x1bd8')]['value'];break;case _0x3866ca('0x113b'):break;default:_0x1da519[0x0]=[_0x3866ca('0x1a48'),_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1651')],_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1a46')]][_0x3866ca('0x19c4')]('/'),_0x1da519[0x1]=_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x23c0')],_0x1da519[0x2]=_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x1b36')],_0x1da519[0x3]=_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x2242')],_0x7b417c[_0x3866ca('0x1bd8')][_0x3866ca('0x124b')]=_0x1da519[_0x3866ca('0x19c4')](',');}_0x49bdb4(_0x7b417c['externaldial']);}function _0x49bdb4(_0x42eb38){var _0x3e73ce=_0x5a05b1;_0x26c45a[_0x3e73ce('0x1120')](_0x42eb38);}}const _0x2a9f27=_0x7409a8;_0x5d3b5f['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1790'),_0x1a8446('0x13b5'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x5d3b5f(_0x4e9d12,_0x2b6f6a,_0x3e8238,_0x487471,_0x4461e1,_0x3b111a,_0x1a5a5f,_0x394560){var _0x1c09a4=_0x1a8446,_0x164a85=this;_0x164a85[_0x1c09a4('0x7fc')]=_0x1a5a5f[_0x1c09a4('0xacc')](),_0x164a85[_0x1c09a4('0x4c6')]=[],_0x164a85[_0x1c09a4('0x110a')]=_0x1c09a4('0x484')+(_0x487471[_0x1c09a4('0xe6d')]||_0x487471['app'])[_0x1c09a4('0x1d08')](),_0x164a85[_0x1c09a4('0x2781')]=angular[_0x1c09a4('0x20a')](_0x487471),_0x164a85[_0x1c09a4('0xada')]=_0x394560,_0x164a85[_0x1c09a4('0x9f0')]={};if(_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x124b')])switch(_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0xe6d')]?_0x164a85['goto'][_0x1c09a4('0xe6d')]['toLowerCase']():_0x164a85['goto'][_0x1c09a4('0x9eb')][_0x1c09a4('0xcf6')]()){case _0x1c09a4('0x113b'):break;case'dialogflow':{var _0x3dfe55=_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x124b')][_0x1c09a4('0x1a39')](',');_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x24ec')]=_0x3dfe55[0x0],_0x164a85['goto'][_0x1c09a4('0x1938')]=_0x3dfe55[0x1],_0x164a85[_0x1c09a4('0x2781')]['welcomemessage']=_0x3dfe55['slice'](0x2,_0x3dfe55[_0x1c09a4('0x2587')])['join'](',');}break;case'amazonlex':{var _0x271d7d=_0x164a85[_0x1c09a4('0x2781')]['appdata'][_0x1c09a4('0x1a39')](',');_0x164a85[_0x1c09a4('0x2781')]['accesskeyid']=_0x271d7d[0x0],_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x15f9')]=_0x271d7d[0x1],_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0xa9a')]=_0x271d7d[0x2],_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x18ee')]=_0x271d7d[0x3],_0x164a85['goto'][_0x1c09a4('0x273')]=_0x271d7d[_0x1c09a4('0x19aa')](0x4,_0x271d7d['length'])['join'](',');}break;case _0x1c09a4('0x1b05'):{var _0x2efb7f=_0x164a85['goto'][_0x1c09a4('0x124b')][_0x1c09a4('0x1a39')](',');_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x11b6')]=isNaN(_0x2efb7f[0x0])?_0x2efb7f[0x0]:parseInt(_0x2efb7f[0x0],0xa),_0x164a85['goto'][_0x1c09a4('0xb37')]=_0x2efb7f[_0x1c09a4('0x19aa')](0x1,_0x2efb7f[_0x1c09a4('0x2587')])[_0x1c09a4('0x19c4')](',');}break;case _0x1c09a4('0x1402'):_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0xb37')]=_0x164a85['goto'][_0x1c09a4('0x124b')];break;case _0x1c09a4('0x282c'):_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x25d6')]=_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x124b')][_0x1c09a4('0x1a39')]('=')[0x0],_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x12f4')]=_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x124b')][_0x1c09a4('0x1a39')]('=')[0x1];break;case _0x1c09a4('0x2067'):_0x164a85['goto'][_0x1c09a4('0x24b9')]=_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x124b')];break;default:{var _0x4024c7=_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x124b')][_0x1c09a4('0x1a39')](',');_0x164a85['goto'][_0x1c09a4('0x19cd')]=_0x51538b()[_0x1c09a4('0x116b')](_0x4024c7[0x0])?_0x4024c7[0x0]:isNaN(_0x4024c7[0x0])?_0x4024c7[0x0]:parseInt(_0x4024c7[0x0],0xa),_0x164a85[_0x1c09a4('0x2781')]['extension']=_0x51538b()[_0x1c09a4('0x116b')](_0x4024c7[0x1])?_0x4024c7[0x1]:isNaN(_0x4024c7[0x1])?_0x4024c7[0x1]:parseInt(_0x4024c7[0x1],0xa),_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x13f2')]=_0x51538b()['isEmpty'](_0x4024c7[0x2])?_0x4024c7[0x2]:isNaN(_0x4024c7[0x2])?_0x4024c7[0x2]:parseInt(_0x4024c7[0x2],0xa);}break;}else{}_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x6c8')]&&_0x164a85[_0x1c09a4('0x2781')]['type']['toLowerCase']()===_0x1c09a4('0x19d1')&&_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0xe6d')]['toLowerCase']()===_0x1c09a4('0x1e7f')&&(_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x1b8f')]=_0x164a85[_0x1c09a4('0x2781')]['phone']?_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x1a46')]['split']('$')[0x0]:undefined,_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0xeed')]=_0x164a85[_0x1c09a4('0x2781')][_0x1c09a4('0x514')]?_0x1c09a4('0x23d8')+_0x164a85[_0x1c09a4('0x2781')]['callerID']:undefined);_0x164a85[_0x1c09a4('0x2559')]=_0x18b4ce,_0x164a85[_0x1c09a4('0x2023')]=_0x7d4377,_0x1a5a5f[_0x1c09a4('0x26e8')](_0x1c09a4('0x178b'))?_0x3b111a['voiceContext']['get']({'fields':_0x1c09a4('0x17fe'),'sort':_0x1c09a4('0x25d6'),'nolimit':_0x1c09a4('0x1c5c')})['$promise'][_0x1c09a4('0xaa5')](function(_0x5f1cf2){var _0x523ef1=_0x1c09a4;_0x164a85[_0x523ef1('0xdc5')]=_0x5f1cf2[_0x523ef1('0x580')]||[];})[_0x1c09a4('0x253d')](function(_0x27249c){var _0x5c89ca=_0x1c09a4;_0x3e8238[_0x5c89ca('0x187f')]({'title':_0x27249c[_0x5c89ca('0x2fa')]?'API:'+_0x27249c[_0x5c89ca('0x2fa')]+_0x5c89ca('0x169e')+_0x27249c[_0x5c89ca('0x24df')]:_0x5c89ca('0x1393'),'msg':_0x27249c['data']?JSON[_0x5c89ca('0xa48')](_0x27249c[_0x5c89ca('0x10fd')]):_0x27249c[_0x5c89ca('0x684')]()});}):_0x3b111a[_0x1c09a4('0x68c')][_0x1c09a4('0x2122')]({'fields':_0x1c09a4('0x17fe'),'sort':_0x1c09a4('0x25d6'),'nolimit':_0x1c09a4('0x1c5c')})[_0x1c09a4('0x1dc2')][_0x1c09a4('0xaa5')](function(_0x397040){var _0x1be010=_0x1c09a4;_0x164a85['contexts']=_0x397040[_0x1be010('0x580')]||[];})[_0x1c09a4('0xaa5')](function(){var _0x411029=_0x1c09a4;return _0x3b111a['userProfileSection'][_0x411029('0x2122')]({'userProfileId':_0x164a85[_0x411029('0x7fc')]['userProfileId'],'sectionId':0x195})['$promise'];})[_0x1c09a4('0xaa5')](function(_0x5c480a){var _0x350bbf=_0x1c09a4,_0x4e0d42=_0x5c480a&&_0x5c480a[_0x350bbf('0x580')]?_0x5c480a[_0x350bbf('0x580')][0x0]:null;if(!_0x4e0d42)return _0x3b111a[_0x350bbf('0x68c')][_0x350bbf('0x2122')]({'fields':_0x350bbf('0x17fe'),'sort':_0x350bbf('0x25d6'),'nolimit':_0x350bbf('0x1c5c'),'defaultEntry':0x1})['$promise']['then'](function(_0x14ff06){var _0x532604=_0x350bbf;_0x164a85['contexts']=_0x14ff06[_0x532604('0x580')]||[];});else{if(!_0x4e0d42['autoAssociation'])return _0x3b111a['userProfileResource'][_0x350bbf('0x2122')]({'sectionId':_0x4e0d42['id']})['$promise']['then'](function(_0x4ecaed){var _0x439646=_0x350bbf,_0x5e2238=_0x51538b()[_0x439646('0x1246')](_0x4ecaed[_0x439646('0x580')],function(_0x7da487){var _0x1181bc=_0x439646;return _0x51538b()[_0x1181bc('0xe9e')](_0x164a85['contexts'],{'id':_0x7da487[_0x1181bc('0xbcd')]});}),_0x5b6f0f=null;_0x164a85[_0x439646('0x2781')]&&(_0x5b6f0f=_0x51538b()[_0x439646('0xe9e')](_0x164a85[_0x439646('0xdc5')],{'name':_0x164a85[_0x439646('0x2781')][_0x439646('0x19cd')]}));if(_0x5b6f0f&&!_0x51538b()['some'](_0x5e2238,['id',_0x5b6f0f['id']])){var _0x78002d=_0x51538b()[_0x439646('0xe9e')](_0x164a85['contexts'],{'id':_0x5b6f0f['id']});_0x78002d[_0x439646('0x12eb')]=![],_0x5e2238[_0x439646('0x1599')](_0x78002d);}_0x164a85['contexts']=_0x5e2238;});}})[_0x1c09a4('0x253d')](function(_0x15cb8f){var _0x40f0b4=_0x1c09a4;_0x3e8238[_0x40f0b4('0x187f')]({'title':_0x15cb8f[_0x40f0b4('0x2fa')]?'API:'+_0x15cb8f[_0x40f0b4('0x2fa')]+_0x40f0b4('0x169e')+_0x15cb8f[_0x40f0b4('0x24df')]:_0x40f0b4('0x2f7'),'msg':_0x15cb8f['data']?JSON[_0x40f0b4('0xa48')](_0x15cb8f[_0x40f0b4('0x10fd')]):_0x15cb8f[_0x40f0b4('0x684')]()});});function _0x18b4ce(){var _0x4946fb=_0x1c09a4;_0x164a85['errors']=[];var _0x489d4d=[];_0x164a85[_0x4946fb('0x2781')]['type']&&_0x164a85[_0x4946fb('0x2781')][_0x4946fb('0x6c8')][_0x4946fb('0xcf6')]()===_0x4946fb('0x19d1')&&_0x164a85[_0x4946fb('0x2781')][_0x4946fb('0xe6d')]===_0x4946fb('0x8da')&&(_0x164a85[_0x4946fb('0x2781')][_0x4946fb('0x1a46')]=_0x4461e1['cutdigits']?(_0x164a85['goto'][_0x4946fb('0x1b8f')]||'')+_0x4946fb('0x117e')+_0x4461e1[_0x4946fb('0x888')]+'}':(_0x164a85['goto']['prefix']||'')+'${EXTEN}',_0x4461e1[_0x4946fb('0x1e0f')]!==_0x4946fb('0x117')?_0x164a85[_0x4946fb('0x2781')][_0x4946fb('0x1b36')]['indexOf'](_0x4946fb('0x266a'))<0x0&&(_0x164a85['goto'][_0x4946fb('0x1b36')]+=_0x4946fb('0x266a')):_0x164a85[_0x4946fb('0x2781')]['options']=_0x164a85[_0x4946fb('0x2781')][_0x4946fb('0x1b36')][_0x4946fb('0x170d')](_0x4946fb('0x266a'),''));if(_0x164a85[_0x4946fb('0x2781')][_0x4946fb('0xe6d')]&&_0x164a85[_0x4946fb('0x2781')][_0x4946fb('0xe6d')]===_0x4946fb('0x113b')){}else switch((_0x164a85[_0x4946fb('0x2781')]['app']||_0x164a85['goto'][_0x4946fb('0xe6d')])[_0x4946fb('0xcf6')]()){case _0x4946fb('0x282c'):_0x164a85[_0x4946fb('0x2781')][_0x4946fb('0x124b')]=_0x164a85[_0x4946fb('0x2781')]['name']+'='+_0x164a85[_0x4946fb('0x2781')]['value'];break;case _0x4946fb('0x113b'):break;default:_0x489d4d[0x0]=_0x164a85['goto'][_0x4946fb('0x19cd')],_0x489d4d[0x1]=_0x164a85['goto'][_0x4946fb('0xc68')],_0x489d4d[0x2]=_0x164a85[_0x4946fb('0x2781')]['priority'],_0x164a85['goto'][_0x4946fb('0x124b')]=_0x489d4d[_0x4946fb('0x19c4')](',');}_0x7d4377(_0x164a85[_0x4946fb('0x2781')]);}function _0x7d4377(_0x3b9641){var _0x382d15=_0x1c09a4;_0x4e9d12[_0x382d15('0x1120')](_0x3b9641);}}const _0x1b3cc8=_0x5d3b5f;_0x49c602[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'inboundrouteApp',_0x1a8446('0x13b5'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x49c602(_0x62f7bb,_0x44a8a4,_0x131f77,_0x1db6cd,_0xcb0fc0,_0x30cc8d,_0x283f67,_0x1591c1){var _0x281897=_0x1a8446,_0x91c4d5=this;_0x91c4d5[_0x281897('0x7fc')]=_0x283f67[_0x281897('0xacc')](),_0x91c4d5[_0x281897('0x4c6')]=[],_0x91c4d5[_0x281897('0x110a')]=_0x281897('0x484')+(_0x1db6cd[_0x281897('0xe6d')]||_0x1db6cd[_0x281897('0x9eb')])['toUpperCase'](),_0x91c4d5['hangup']=angular[_0x281897('0x20a')](_0x1db6cd),_0x91c4d5[_0x281897('0xada')]=_0x1591c1,_0x91c4d5['hasModulePermissions']={};if(_0x91c4d5['hangup'][_0x281897('0x124b')])switch(_0x91c4d5[_0x281897('0x1fef')][_0x281897('0xe6d')]?_0x91c4d5[_0x281897('0x1fef')]['appType'][_0x281897('0xcf6')]():_0x91c4d5[_0x281897('0x1fef')]['app'][_0x281897('0xcf6')]()){case _0x281897('0x113b'):break;case _0x281897('0x67c'):{var _0x600633=_0x91c4d5['hangup'][_0x281897('0x124b')][_0x281897('0x1a39')](',');_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x24ec')]=_0x600633[0x0],_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x1938')]=_0x600633[0x1],_0x91c4d5['hangup'][_0x281897('0x273')]=_0x600633[_0x281897('0x19aa')](0x2,_0x600633[_0x281897('0x2587')])[_0x281897('0x19c4')](',');}break;case _0x281897('0x3f5'):{var _0x12c30e=_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x124b')][_0x281897('0x1a39')](',');_0x91c4d5[_0x281897('0x1fef')][_0x281897('0xc07')]=_0x12c30e[0x0],_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x15f9')]=_0x12c30e[0x1],_0x91c4d5[_0x281897('0x1fef')][_0x281897('0xa9a')]=_0x12c30e[0x2],_0x91c4d5[_0x281897('0x1fef')]['botname']=_0x12c30e[0x3],_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x273')]=_0x12c30e[_0x281897('0x19aa')](0x4,_0x12c30e[_0x281897('0x2587')])[_0x281897('0x19c4')](',');}break;case _0x281897('0x1b05'):{var _0x120ddc=_0x91c4d5['hangup'][_0x281897('0x124b')][_0x281897('0x1a39')](',');_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x11b6')]=isNaN(_0x120ddc[0x0])?_0x120ddc[0x0]:parseInt(_0x120ddc[0x0],0xa),_0x91c4d5[_0x281897('0x1fef')][_0x281897('0xb37')]=_0x120ddc[_0x281897('0x19aa')](0x1,_0x120ddc[_0x281897('0x2587')])[_0x281897('0x19c4')](',');}break;case _0x281897('0x1402'):_0x91c4d5[_0x281897('0x1fef')][_0x281897('0xb37')]=_0x91c4d5['hangup']['appdata'];break;case'set':_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x25d6')]=_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x124b')][_0x281897('0x1a39')]('=')[0x0],_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x12f4')]=_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x124b')][_0x281897('0x1a39')]('=')[0x1];break;case _0x281897('0x2067'):_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x24b9')]=_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x124b')];break;default:{var _0x2afe9d=_0x91c4d5['hangup'][_0x281897('0x124b')][_0x281897('0x1a39')](',');_0x91c4d5[_0x281897('0x1fef')]['appdata']=_0x51538b()[_0x281897('0x116b')](_0x2afe9d[0x0])?_0x2afe9d[0x0]:isNaN(_0x2afe9d[0x0])?_0x2afe9d[0x0]:parseInt(_0x2afe9d[0x0],0xa);}break;}else{}_0x91c4d5[_0x281897('0x1fef')]['type']&&_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x6c8')][_0x281897('0xcf6')]()===_0x281897('0x19d1')&&_0x91c4d5['hangup'][_0x281897('0xe6d')][_0x281897('0xcf6')]()==='outbounddial'&&(_0x91c4d5[_0x281897('0x1fef')]['prefix']=_0x91c4d5[_0x281897('0x1fef')]['phone']?_0x91c4d5[_0x281897('0x1fef')]['phone'][_0x281897('0x1a39')]('$')[0x0]:undefined,_0x91c4d5[_0x281897('0x1fef')][_0x281897('0xeed')]=_0x91c4d5[_0x281897('0x1fef')][_0x281897('0x514')]?_0x281897('0x23d8')+_0x91c4d5['hangup'][_0x281897('0x514')]:undefined);_0x91c4d5[_0x281897('0x2559')]=_0x188150,_0x91c4d5[_0x281897('0x2023')]=_0x45f044;function _0x188150(){var _0x5a9a88=_0x281897;_0x91c4d5[_0x5a9a88('0x4c6')]=[];var _0x37f462=[];_0x91c4d5['hangup'][_0x5a9a88('0x6c8')]&&_0x91c4d5['hangup']['type'][_0x5a9a88('0xcf6')]()==='outbound'&&_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0xe6d')]===_0x5a9a88('0x8da')&&(_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x1a46')]=_0xcb0fc0[_0x5a9a88('0x888')]?(_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x1b8f')]||'')+_0x5a9a88('0x117e')+_0xcb0fc0['cutdigits']+'}':(_0x91c4d5['hangup'][_0x5a9a88('0x1b8f')]||'')+_0x5a9a88('0x1f87'),_0xcb0fc0['recordingFormat']!==_0x5a9a88('0x117')?_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x1b36')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x1b36')]+=_0x5a9a88('0x266a')):_0x91c4d5[_0x5a9a88('0x1fef')]['options']=_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x1b36')][_0x5a9a88('0x170d')](_0x5a9a88('0x266a'),''));if(_0x91c4d5[_0x5a9a88('0x1fef')]['appType']&&_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0xe6d')]==='custom'){}else switch((_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x9eb')]||_0x91c4d5[_0x5a9a88('0x1fef')]['appType'])['toLowerCase']()){case _0x5a9a88('0x282c'):_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x124b')]=_0x91c4d5['hangup'][_0x5a9a88('0x25d6')]+'='+_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x12f4')];break;case _0x5a9a88('0x113b'):break;default:_0x37f462[0x0]=_0x91c4d5['hangup'][_0x5a9a88('0x124b')],_0x91c4d5[_0x5a9a88('0x1fef')][_0x5a9a88('0x124b')]=_0x37f462[_0x5a9a88('0x19c4')](',');}_0x45f044(_0x91c4d5[_0x5a9a88('0x1fef')]);}function _0x45f044(_0x2a7feb){_0x62f7bb['hide'](_0x2a7feb);}}const _0x3703b5=_0x49c602;_0x47952e[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'inboundrouteApp',_0x1a8446('0x13b5'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x47952e(_0x2ade7c,_0xb87373,_0x496102,_0x3bb894,_0x4c255b,_0x3cab23,_0x59c1d3,_0xb44d52){var _0xc63d93=_0x1a8446,_0x4b91ce=this;_0x4b91ce[_0xc63d93('0x7fc')]=_0x59c1d3[_0xc63d93('0xacc')](),_0x4b91ce[_0xc63d93('0x4c6')]=[],_0x4b91ce['title']='VOICE.EDIT_'+(_0x3bb894[_0xc63d93('0xe6d')]||_0x3bb894['app'])['toUpperCase'](),_0x4b91ce[_0xc63d93('0x19cb')]=angular[_0xc63d93('0x20a')](_0x3bb894),_0x4b91ce[_0xc63d93('0xada')]=_0xb44d52,_0x4b91ce[_0xc63d93('0x9f0')]={};if(_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x124b')])switch(_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0xe6d')]?_0x4b91ce['internaldial'][_0xc63d93('0xe6d')][_0xc63d93('0xcf6')]():_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x9eb')][_0xc63d93('0xcf6')]()){case _0xc63d93('0x113b'):break;case _0xc63d93('0x67c'):{var _0x4ba243=_0x4b91ce['internaldial']['appdata']['split'](',');_0x4b91ce[_0xc63d93('0x19cb')]['key']=_0x4ba243[0x0],_0x4b91ce[_0xc63d93('0x19cb')]['language']=_0x4ba243[0x1],_0x4b91ce['internaldial'][_0xc63d93('0x273')]=_0x4ba243[_0xc63d93('0x19aa')](0x2,_0x4ba243['length'])[_0xc63d93('0x19c4')](',');}break;case _0xc63d93('0x3f5'):{var _0xe64c02=_0x4b91ce['internaldial'][_0xc63d93('0x124b')][_0xc63d93('0x1a39')](',');_0x4b91ce['internaldial']['accesskeyid']=_0xe64c02[0x0],_0x4b91ce[_0xc63d93('0x19cb')]['secretaccesskey']=_0xe64c02[0x1],_0x4b91ce[_0xc63d93('0x19cb')]['lexregion']=_0xe64c02[0x2],_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x18ee')]=_0xe64c02[0x3],_0x4b91ce[_0xc63d93('0x19cb')]['welcomemessage']=_0xe64c02['slice'](0x4,_0xe64c02[_0xc63d93('0x2587')])[_0xc63d93('0x19c4')](',');}break;case _0xc63d93('0x1b05'):{var _0xb83d62=_0x4b91ce['internaldial'][_0xc63d93('0x124b')][_0xc63d93('0x1a39')](',');_0x4b91ce['internaldial']['times']=isNaN(_0xb83d62[0x0])?_0xb83d62[0x0]:parseInt(_0xb83d62[0x0],0xa),_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0xb37')]=_0xb83d62[_0xc63d93('0x19aa')](0x1,_0xb83d62[_0xc63d93('0x2587')])[_0xc63d93('0x19c4')](',');}break;case _0xc63d93('0x1402'):_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0xb37')]=_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x124b')];break;case'set':_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x25d6')]=_0x4b91ce['internaldial']['appdata'][_0xc63d93('0x1a39')]('=')[0x0],_0x4b91ce[_0xc63d93('0x19cb')]['value']=_0x4b91ce[_0xc63d93('0x19cb')]['appdata'][_0xc63d93('0x1a39')]('=')[0x1];break;case'agi':_0x4b91ce['internaldial'][_0xc63d93('0x24b9')]=_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x124b')];break;default:{var _0x19938f=_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x124b')][_0xc63d93('0x1a39')](',');_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x272b')]=_0x51538b()['isEmpty'](_0x19938f[0x0])?_0x19938f[0x0]:isNaN(_0x19938f[0x0])?_0x19938f[0x0]:parseInt(_0x19938f[0x0],0xa),_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x23c0')]=_0x51538b()[_0xc63d93('0x116b')](_0x19938f[0x1])?_0x19938f[0x1]:isNaN(_0x19938f[0x1])?_0x19938f[0x1]:parseInt(_0x19938f[0x1],0xa),_0x4b91ce[_0xc63d93('0x19cb')]['options']=_0x51538b()['isEmpty'](_0x19938f[0x2])?_0x19938f[0x2]:isNaN(_0x19938f[0x2])?_0x19938f[0x2]:parseInt(_0x19938f[0x2],0xa),_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x2242')]=_0x51538b()[_0xc63d93('0x116b')](_0x19938f[0x3])?_0x19938f[0x3]:isNaN(_0x19938f[0x3])?_0x19938f[0x3]:parseInt(_0x19938f[0x3],0xa);}break;}else{}_0x4b91ce['internaldial'][_0xc63d93('0x6c8')]&&_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x6c8')][_0xc63d93('0xcf6')]()===_0xc63d93('0x19d1')&&_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0xe6d')][_0xc63d93('0xcf6')]()===_0xc63d93('0x1e7f')&&(_0x4b91ce['internaldial'][_0xc63d93('0x1b8f')]=_0x4b91ce[_0xc63d93('0x19cb')]['phone']?_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x1a46')][_0xc63d93('0x1a39')]('$')[0x0]:undefined,_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0xeed')]=_0x4b91ce[_0xc63d93('0x19cb')]['callerID']?_0xc63d93('0x23d8')+_0x4b91ce[_0xc63d93('0x19cb')][_0xc63d93('0x514')]:undefined);_0x4b91ce[_0xc63d93('0x2559')]=_0x358966,_0x4b91ce[_0xc63d93('0x2023')]=_0x2bed60;var _0x180bcd=[{'id':0xca,'role':_0xc63d93('0xeff')},{'id':0xcb,'role':'telephone'}],_0x52d5f7=null;_0x59c1d3[_0xc63d93('0x26e8')]('admin')?_0x3cab23['user'][_0xc63d93('0x2122')]({'fields':_0xc63d93('0x1f5d'),'sort':_0xc63d93('0x25d6'),'nolimit':_0xc63d93('0x1c5c')})[_0xc63d93('0x1dc2')][_0xc63d93('0xaa5')](function(_0x160357){var _0x1911a3=_0xc63d93;_0x4b91ce[_0x1911a3('0x2204')]=_0x160357[_0x1911a3('0x580')]||[];})[_0xc63d93('0x253d')](function(_0x157fca){var _0x52ec70=_0xc63d93;_0x496102[_0x52ec70('0x187f')]({'title':_0x157fca[_0x52ec70('0x2fa')]?_0x52ec70('0x16c2')+_0x157fca[_0x52ec70('0x2fa')]+'\x20-\x20'+_0x157fca['statusText']:_0x52ec70('0x6eb'),'msg':_0x157fca[_0x52ec70('0x10fd')]?JSON[_0x52ec70('0xa48')](_0x157fca[_0x52ec70('0x10fd')]):_0x157fca[_0x52ec70('0x684')]()});}):_0x3cab23['user']['get']({'fields':_0xc63d93('0x1f5d'),'sort':_0xc63d93('0x25d6'),'nolimit':'true'})[_0xc63d93('0x1dc2')][_0xc63d93('0xaa5')](function(_0xf543da){var _0x42ecf6=_0xc63d93;_0x52d5f7=_0xf543da[_0x42ecf6('0x580')]||[];})[_0xc63d93('0xaa5')](function(){var _0x4b7e8c=_0xc63d93,_0x4d80db=[];for(var _0x1e4509=0x0;_0x1e4509<_0x180bcd[_0x4b7e8c('0x2587')];_0x1e4509++){_0x4d80db['push'](_0x3cab23[_0x4b7e8c('0x1a50')][_0x4b7e8c('0x2122')]({'userProfileId':_0x4b91ce[_0x4b7e8c('0x7fc')]['userProfileId'],'sectionId':_0x180bcd[_0x1e4509]['id']})[_0x4b7e8c('0x1dc2')]);}return _0xb87373['all'](_0x4d80db);})[_0xc63d93('0xaa5')](function(_0x3bb352){var _0x1422d0=_0xc63d93,_0x4a788b=_0x51538b()['map'](_0x3bb352,function(_0x412bc9){var _0x183766=a0_0x1149;return _0x412bc9&&_0x412bc9[_0x183766('0x580')]?_0x412bc9['rows'][0x0]:null;}),_0x99bce5=[],_0x27c125=function _0x1151c3(_0xc680e4){var _0x428550=a0_0x1149,_0x4f07db=_0x51538b()[_0x428550('0xe9e')](_0x4a788b,[_0x428550('0x10b8'),_0x180bcd[_0xc680e4]['id']]);if(_0x4f07db){if(!_0x4f07db['autoAssociation'])_0x99bce5[_0x428550('0x1599')](_0x3cab23['userProfileResource'][_0x428550('0x2122')]({'sectionId':_0x4f07db['id']})[_0x428550('0x1dc2')]);else{var _0x29371d=[];_0x52d5f7[_0x428550('0x15b5')](function(_0x2cc059){var _0x3c378c=_0x428550;_0x2cc059[_0x3c378c('0x924')]===_0x180bcd[_0xc680e4][_0x3c378c('0x924')]&&_0x29371d['push'](_0x2cc059);}),_0x99bce5['push']({'rows':_0x29371d,'count':_0x29371d[_0x428550('0x2587')]});}}};for(var _0x39ca59=0x0;_0x39ca59<_0x180bcd['length'];_0x39ca59++){_0x27c125(_0x39ca59);}return _0xb87373[_0x1422d0('0xa15')](_0x99bce5);})['then'](function(_0x3f0818){var _0x2a026a=_0xc63d93,_0x5690ea=[],_0x180276=null;_0x4b91ce[_0x2a026a('0x19cb')]&&(_0x180276=_0x51538b()[_0x2a026a('0xe9e')](_0x52d5f7,{'name':_0x4b91ce[_0x2a026a('0x19cb')]['user']}));for(var _0x5a78de=0x0;_0x5a78de<_0x3f0818[_0x2a026a('0x2587')];_0x5a78de++){var _0x5f32dc=_0x3f0818[_0x5a78de]['rows']||[];_0x5f32dc[_0x2a026a('0x15b5')](function(_0x8d05a8){_0x5690ea['push'](_0x8d05a8);});}_0x180276&&!_0x51538b()['some'](_0x5690ea,[_0x2a026a('0xbcd'),_0x180276['id']])&&_0x52d5f7['forEach'](function(_0x2e0ecf){var _0x26b44e=_0x2a026a;_0x2e0ecf['id']===_0x180276['id']&&(_0x2e0ecf[_0x26b44e('0x12eb')]=![],_0x5690ea[_0x26b44e('0x1599')](_0x2e0ecf));}),_0x4b91ce[_0x2a026a('0x2204')]=_0x5690ea;})['catch'](function(_0x12e633){var _0x2cba2c=_0xc63d93;_0x496102[_0x2cba2c('0x187f')]({'title':_0x12e633[_0x2cba2c('0x2fa')]?_0x2cba2c('0x16c2')+_0x12e633[_0x2cba2c('0x2fa')]+'\x20-\x20'+_0x12e633[_0x2cba2c('0x24df')]:_0x2cba2c('0x1f4d'),'msg':_0x12e633[_0x2cba2c('0x10fd')]?JSON[_0x2cba2c('0xa48')](_0x12e633[_0x2cba2c('0x10fd')]):_0x12e633[_0x2cba2c('0x684')]()});});function _0x358966(){var _0xfe6eee=_0xc63d93;_0x4b91ce[_0xfe6eee('0x4c6')]=[];var _0x434761=[];_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x6c8')]&&_0x4b91ce['internaldial'][_0xfe6eee('0x6c8')][_0xfe6eee('0xcf6')]()===_0xfe6eee('0x19d1')&&_0x4b91ce['internaldial'][_0xfe6eee('0xe6d')]===_0xfe6eee('0x8da')&&(_0x4b91ce[_0xfe6eee('0x19cb')]['phone']=_0x4c255b[_0xfe6eee('0x888')]?(_0x4b91ce['internaldial'][_0xfe6eee('0x1b8f')]||'')+_0xfe6eee('0x117e')+_0x4c255b[_0xfe6eee('0x888')]+'}':(_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x1b8f')]||'')+'${EXTEN}',_0x4c255b['recordingFormat']!=='none'?_0x4b91ce['internaldial']['options'][_0xfe6eee('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x1b36')]+=_0xfe6eee('0x266a')):_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x1b36')]=_0x4b91ce['internaldial'][_0xfe6eee('0x1b36')][_0xfe6eee('0x170d')](_0xfe6eee('0x266a'),''));if(_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0xe6d')]&&_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0xe6d')]===_0xfe6eee('0x113b')){}else switch((_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x9eb')]||_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0xe6d')])[_0xfe6eee('0xcf6')]()){case _0xfe6eee('0x282c'):_0x4b91ce[_0xfe6eee('0x19cb')]['appdata']=_0x4b91ce['internaldial']['name']+'='+_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x12f4')];break;case _0xfe6eee('0x113b'):break;default:_0x434761[0x0]=_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x272b')],_0x434761[0x1]=_0x4b91ce['internaldial'][_0xfe6eee('0x23c0')],_0x434761[0x2]=_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x1b36')],_0x434761[0x3]=_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x2242')],_0x4b91ce[_0xfe6eee('0x19cb')][_0xfe6eee('0x124b')]=_0x434761[_0xfe6eee('0x19c4')](',');}_0x2bed60(_0x4b91ce['internaldial']);}function _0x2bed60(_0x28203d){var _0x5e700d=_0xc63d93;_0x2ade7c[_0x5e700d('0x1120')](_0x28203d);}}const _0xe79942=_0x47952e;_0x5dd6d0[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x197b'),_0x1a8446('0x1c21'),_0x1a8446('0x2568'),'toasty','api','Auth','crudPermissions'];function _0x5dd6d0(_0x4cda28,_0x5eacb3,_0xa6e326,_0x5d1c97,_0x5f3e33,_0x321b36,_0xeddaf2,_0x2755e9,_0x6185fb,_0x439ce1){var _0xa51b44=_0x1a8446,_0x594cc8=this;_0x594cc8[_0xa51b44('0x7fc')]=_0x6185fb[_0xa51b44('0xacc')](),_0x594cc8[_0xa51b44('0x4c6')]=[],_0x594cc8[_0xa51b44('0x110a')]=_0xa51b44('0x14b0'),_0x594cc8[_0xa51b44('0x1c21')]=angular['copy'](_0x5f3e33),_0x594cc8[_0xa51b44('0x2568')]=_0x321b36,_0x594cc8['newInterval']=![],_0x594cc8[_0xa51b44('0x11e9')]=[_0xa51b44('0x1b43'),_0xa51b44('0x113b'),'list'],_0x594cc8[_0xa51b44('0xada')]=_0x439ce1,_0x594cc8[_0xa51b44('0xbe6')]=_0x5d1c97[_0xa51b44('0x1529')](),_0x594cc8[_0xa51b44('0x21a9')]=_0x5d1c97[_0xa51b44('0x23fa')](),_0x594cc8[_0xa51b44('0x672')]=_0x5d1c97[_0xa51b44('0x2225')](),_0x594cc8[_0xa51b44('0x1469')]=_0x5d1c97[_0xa51b44('0x74a')]();if(!_0x594cc8[_0xa51b44('0x1c21')])_0x594cc8['interval']={'interval':_0xa51b44('0x1ac6')},_0x594cc8[_0xa51b44('0x6c8')]=_0xa51b44('0x1b43'),_0x594cc8[_0xa51b44('0x110a')]='TOOLS.NEW_INTERVAL',_0x594cc8[_0xa51b44('0x740')]=!![];else{if(_0x594cc8[_0xa51b44('0x1c21')][_0xa51b44('0x1c21')]!==_0xa51b44('0x1ac6')){_0x594cc8[_0xa51b44('0x6c8')]='custom';var _0x13b72e=_0x594cc8['interval'][_0xa51b44('0x1c21')][_0xa51b44('0x1a39')](','),_0x3b30a3=_0x13b72e[0x0],_0x23ba0c=_0x13b72e[0x1],_0x221e14=_0x13b72e[0x2],_0x14b43b=_0x13b72e[0x3];if(_0x3b30a3!=='*'){var _0xf50813=_0x3b30a3[_0xa51b44('0x1a39')]('-')[0x0],_0x2715be=_0x3b30a3[_0xa51b44('0x1a39')]('-')[0x1],_0x37c0c0;_0x37c0c0=new Date(),_0x37c0c0[_0xa51b44('0x807')](Number(_0xf50813[_0xa51b44('0x1a39')](':')[0x0])),_0x37c0c0[_0xa51b44('0xb43')](Number(_0xf50813['split'](':')[0x1])),_0x594cc8[_0xa51b44('0x1ee7')]=_0x37c0c0,_0x37c0c0=new Date(),_0x37c0c0[_0xa51b44('0x807')](Number(_0x2715be['split'](':')[0x0])),_0x37c0c0[_0xa51b44('0xb43')](Number(_0x2715be[_0xa51b44('0x1a39')](':')[0x1])),_0x594cc8[_0xa51b44('0x815')]=_0x37c0c0;}_0x23ba0c!=='*'&&(_0x594cc8[_0xa51b44('0x1fa3')]=_0x23ba0c[_0xa51b44('0x1a39')]('-')[0x0],_0x594cc8[_0xa51b44('0xc93')]=_0x23ba0c[_0xa51b44('0x1a39')]('-')[0x1]),_0x221e14!=='*'&&(_0x594cc8[_0xa51b44('0x19d0')]=_0x221e14[_0xa51b44('0x1a39')]('-')[0x0],_0x594cc8[_0xa51b44('0x2c3')]=_0x221e14['split']('-')[0x1]),_0x14b43b!=='*'&&(_0x594cc8[_0xa51b44('0xcf9')]=_0x14b43b[_0xa51b44('0x1a39')]('-')[0x0],_0x594cc8[_0xa51b44('0x125f')]=_0x14b43b[_0xa51b44('0x1a39')]('-')[0x1]);}else _0x594cc8[_0xa51b44('0x6c8')]=_0xa51b44('0x1b43');}_0x4cda28[_0xa51b44('0x25cf')]['id']&&!_0x594cc8[_0xa51b44('0x1c21')][_0xa51b44('0xe45')]&&(_0x594cc8[_0xa51b44('0x1c21')]['IntervalId']=_0x4cda28['params']['id']);_0x594cc8[_0xa51b44('0x1c21')][_0xa51b44('0x1f8c')]&&_0x594cc8[_0xa51b44('0x1c21')][_0xa51b44('0xe45')]&&(_0x594cc8[_0xa51b44('0x6c8')]=_0xa51b44('0x2334'));_0x594cc8[_0xa51b44('0x152a')]=_0x3c3ae1,_0x594cc8[_0xa51b44('0x1570')]=_0x15de75,_0x594cc8[_0xa51b44('0x2023')]=_0x3a3afe;_0x594cc8[_0xa51b44('0x1c21')][_0xa51b44('0xe45')]&&(_0x6185fb['hasRole'](_0xa51b44('0x178b'))?_0x2755e9[_0xa51b44('0x1c21')][_0xa51b44('0x2122')]({'fields':_0xa51b44('0x1a33'),'IntervalId':'null','nolimit':!![]})[_0xa51b44('0x1dc2')][_0xa51b44('0xaa5')](function(_0x5ead6a){var _0x235228=_0xa51b44;_0x594cc8[_0x235228('0x2568')]=_0x5ead6a[_0x235228('0x580')]||[];})[_0xa51b44('0x253d')](function(_0x1d08bc){var _0x3bf9bc=_0xa51b44;_0xeddaf2[_0x3bf9bc('0x187f')]({'title':_0x1d08bc[_0x3bf9bc('0x2fa')]?_0x3bf9bc('0x16c2')+_0x1d08bc[_0x3bf9bc('0x2fa')]+'\x20-\x20'+_0x1d08bc[_0x3bf9bc('0x24df')]:_0x3bf9bc('0x3b0'),'msg':_0x1d08bc['data']?JSON['stringify'](_0x1d08bc['data']):_0x1d08bc['toString']()});}):_0x2755e9[_0xa51b44('0x1c21')][_0xa51b44('0x2122')]({'fields':_0xa51b44('0x1a33'),'IntervalId':_0xa51b44('0x1ed9'),'nolimit':!![]})[_0xa51b44('0x1dc2')][_0xa51b44('0xaa5')](function(_0x1e0445){var _0x57c0d1=_0xa51b44;_0x594cc8[_0x57c0d1('0x2568')]=_0x1e0445[_0x57c0d1('0x580')]||[];})[_0xa51b44('0xaa5')](function(){var _0x53cd5b=_0xa51b44;return _0x2755e9[_0x53cd5b('0x1a50')][_0x53cd5b('0x2122')]({'userProfileId':_0x594cc8[_0x53cd5b('0x7fc')]['userProfileId'],'sectionId':0x3ec})[_0x53cd5b('0x1dc2')];})[_0xa51b44('0xaa5')](function(_0x1d03f6){var _0x26d5cc=_0xa51b44,_0x345461=_0x1d03f6&&_0x1d03f6[_0x26d5cc('0x580')]?_0x1d03f6[_0x26d5cc('0x580')][0x0]:null;if(!_0x345461)_0x594cc8[_0x26d5cc('0x2568')]=[];else{if(!_0x345461[_0x26d5cc('0x26cc')])return _0x2755e9[_0x26d5cc('0x249a')][_0x26d5cc('0x2122')]({'sectionId':_0x345461['id']})[_0x26d5cc('0x1dc2')][_0x26d5cc('0xaa5')](function(_0xbd2f2f){var _0x4c211a=_0x26d5cc,_0x1594a7=_0xbd2f2f&&_0xbd2f2f[_0x4c211a('0x580')]?_0xbd2f2f[_0x4c211a('0x580')]:[],_0x5f04e3=[],_0x498d10=null;_0x594cc8[_0x4c211a('0x1c21')]&&(_0x498d10=_0x51538b()[_0x4c211a('0xe9e')](_0x594cc8[_0x4c211a('0x2568')],{'name':_0x594cc8['interval']['IntervalId']})),_0x498d10&&!_0x51538b()[_0x4c211a('0x2c2')](_0x1594a7,[_0x4c211a('0xbcd'),_0x498d10['id']])&&_0x594cc8[_0x4c211a('0x2568')][_0x4c211a('0x15b5')](function(_0x2cbcb7){var _0x1c9510=_0x4c211a;_0x2cbcb7['id']===_0x498d10['id']&&(_0x2cbcb7['canSelect']=![],_0x5f04e3[_0x1c9510('0x1599')](_0x2cbcb7));}),_0x594cc8[_0x4c211a('0x2568')]=_0x5f04e3;});}})[_0xa51b44('0x253d')](function(_0x4ac174){var _0xbb4a1e=_0xa51b44;_0xeddaf2[_0xbb4a1e('0x187f')]({'title':_0x4ac174[_0xbb4a1e('0x2fa')]?_0xbb4a1e('0x16c2')+_0x4ac174['status']+_0xbb4a1e('0x169e')+_0x4ac174[_0xbb4a1e('0x24df')]:_0xbb4a1e('0x3b0'),'msg':_0x4ac174[_0xbb4a1e('0x10fd')]?JSON['stringify'](_0x4ac174[_0xbb4a1e('0x10fd')]):_0x4ac174[_0xbb4a1e('0x684')]()});}));function _0x39c49e(){var _0x37a982=_0xa51b44;switch(_0x594cc8[_0x37a982('0x6c8')]){case'always':case _0x37a982('0x2334'):return _0x37a982('0x1ac6');case'custom':{var _0x58ca3a=[];if(_0x594cc8['timeRangeFrom']!=='*'&&_0x594cc8[_0x37a982('0x1ee7')]&&_0x594cc8[_0x37a982('0x815')]){var _0xb37079=(_0x594cc8['timeRangeFrom']['getHours']()<0xa?'0':'')+_0x594cc8['timeRangeFrom'][_0x37a982('0x6a2')]()+':'+((_0x594cc8[_0x37a982('0x1ee7')]['getMinutes']()<0xa?'0':'')+_0x594cc8[_0x37a982('0x1ee7')][_0x37a982('0x13a6')]()),_0x3b58c5=(_0x594cc8[_0x37a982('0x815')]['getHours']()<0xa?'0':'')+_0x594cc8[_0x37a982('0x815')]['getHours']()+':'+((_0x594cc8['timeRangeTo']['getMinutes']()<0xa?'0':'')+_0x594cc8['timeRangeTo'][_0x37a982('0x13a6')]());_0x58ca3a[_0x37a982('0x1599')](_0xb37079+'-'+_0x3b58c5);}else _0x58ca3a[_0x37a982('0x1599')]('*');return _0x594cc8['dayOfWeekFrom']?_0x594cc8[_0x37a982('0xc93')]?_0x58ca3a[_0x37a982('0x1599')](_0x594cc8[_0x37a982('0x1fa3')]+'-'+_0x594cc8[_0x37a982('0xc93')]):_0x58ca3a[_0x37a982('0x1599')](_0x594cc8[_0x37a982('0x1fa3')]):_0x58ca3a['push']('*'),_0x594cc8[_0x37a982('0x19d0')]?_0x594cc8[_0x37a982('0x2c3')]?_0x58ca3a[_0x37a982('0x1599')](_0x594cc8[_0x37a982('0x19d0')]+'-'+_0x594cc8[_0x37a982('0x2c3')]):_0x58ca3a['push'](_0x594cc8['monthDayFrom']):_0x58ca3a[_0x37a982('0x1599')]('*'),_0x594cc8['monthFrom']?_0x594cc8['monthTo']?_0x58ca3a['push'](_0x594cc8['monthFrom']+'-'+_0x594cc8[_0x37a982('0x125f')]):_0x58ca3a[_0x37a982('0x1599')](_0x594cc8[_0x37a982('0xcf9')]):_0x58ca3a[_0x37a982('0x1599')]('*'),_0x58ca3a[_0x37a982('0x19c4')]();}}}function _0x3c3ae1(){var _0x564fec=_0xa51b44;_0x594cc8[_0x564fec('0x4c6')]=[],_0x594cc8[_0x564fec('0x1c21')][_0x564fec('0x1c21')]=_0x39c49e(),_0x2755e9['interval']['save'](_0x594cc8[_0x564fec('0x1c21')])[_0x564fec('0x1dc2')]['then'](function(_0x213400){var _0x4c6863=_0x564fec;_0x594cc8['intervals']['push'](_0x213400),_0xeddaf2['success']({'title':'Interval\x20properly\x20created','msg':_0x594cc8['interval'][_0x4c6863('0x25d6')]?_0x594cc8[_0x4c6863('0x1c21')][_0x4c6863('0x25d6')]+_0x4c6863('0xdca'):''}),_0x3a3afe();})[_0x564fec('0x253d')](function(_0x553387){var _0x2eada5=_0x564fec;console[_0x2eada5('0x187f')](_0x553387),_0x594cc8[_0x2eada5('0x4c6')]=_0x553387[_0x2eada5('0x10fd')]['errors']||[{'message':_0x553387[_0x2eada5('0x684')](),'type':_0x2eada5('0xbd7')}];});}function _0x15de75(){var _0x5a7328=_0xa51b44;_0x594cc8[_0x5a7328('0x4c6')]=[],_0x594cc8[_0x5a7328('0x1c21')]['interval']=_0x39c49e(),_0x594cc8[_0x5a7328('0x1c21')]['application']?(_0x594cc8[_0x5a7328('0x6c8')]!==_0x5a7328('0x2334')&&(_0x594cc8['interval'][_0x5a7328('0x1f8c')]=null),_0x3a3afe(_0x594cc8[_0x5a7328('0x1c21')])):_0x2755e9['interval'][_0x5a7328('0x264e')]({'id':_0x594cc8['interval']['id']},_0x594cc8['interval'])['$promise'][_0x5a7328('0xaa5')](function(_0x17eb9f){var _0x40c776=_0x5a7328,_0x18cdce=_0x51538b()[_0x40c776('0xe9e')](_0x594cc8['intervals'],{'id':_0x17eb9f['id']});_0x18cdce&&_0x51538b()[_0x40c776('0x283c')](_0x18cdce,_0x17eb9f),_0xeddaf2[_0x40c776('0xe10')]({'title':_0x40c776('0x68b'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x3a3afe();})[_0x5a7328('0x253d')](function(_0x58ae79){var _0x2dca20=_0x5a7328;console['error'](_0x58ae79),_0x594cc8[_0x2dca20('0x4c6')]=_0x58ae79[_0x2dca20('0x10fd')][_0x2dca20('0x4c6')]||[{'message':_0x58ae79[_0x2dca20('0x684')](),'type':_0x2dca20('0x83d')}];});}function _0x3a3afe(_0x542ca4){var _0x238eb4=_0xa51b44;_0x5eacb3[_0x238eb4('0x1120')](_0x542ca4);}}const _0x112256=_0x5dd6d0;_0xe1b22['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1790'),_0x1a8446('0x13b5'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0xe1b22(_0x554d77,_0xa1f0d5,_0x4ef5c2,_0x5e2903,_0x17e31a,_0x2c62c1,_0x3ef95a,_0x171d27){var _0x13d108=_0x1a8446,_0x1b3cad=this;_0x1b3cad[_0x13d108('0x7fc')]=_0x3ef95a['getCurrentUser'](),_0x1b3cad[_0x13d108('0x4c6')]=[],_0x1b3cad[_0x13d108('0x110a')]=_0x13d108('0x484')+(_0x5e2903[_0x13d108('0xe6d')]||_0x5e2903[_0x13d108('0x9eb')])['toUpperCase'](),_0x1b3cad[_0x13d108('0x1bed')]=angular['copy'](_0x5e2903),_0x1b3cad[_0x13d108('0xada')]=_0x171d27,_0x1b3cad[_0x13d108('0x9f0')]={};if(_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x124b')])switch(_0x1b3cad['playback'][_0x13d108('0xe6d')]?_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0xe6d')][_0x13d108('0xcf6')]():_0x1b3cad[_0x13d108('0x1bed')]['app']['toLowerCase']()){case _0x13d108('0x113b'):break;case _0x13d108('0x67c'):{var _0x772f1d=_0x1b3cad['playback'][_0x13d108('0x124b')][_0x13d108('0x1a39')](',');_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x24ec')]=_0x772f1d[0x0],_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x1938')]=_0x772f1d[0x1],_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x273')]=_0x772f1d[_0x13d108('0x19aa')](0x2,_0x772f1d[_0x13d108('0x2587')])['join'](',');}break;case _0x13d108('0x3f5'):{var _0x5e4143=_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x124b')][_0x13d108('0x1a39')](',');_0x1b3cad['playback']['accesskeyid']=_0x5e4143[0x0],_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x15f9')]=_0x5e4143[0x1],_0x1b3cad[_0x13d108('0x1bed')]['lexregion']=_0x5e4143[0x2],_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x18ee')]=_0x5e4143[0x3],_0x1b3cad['playback'][_0x13d108('0x273')]=_0x5e4143[_0x13d108('0x19aa')](0x4,_0x5e4143['length'])[_0x13d108('0x19c4')](',');}break;case _0x13d108('0x1b05'):{var _0x3edd0a=_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x124b')][_0x13d108('0x1a39')](',');_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x11b6')]=isNaN(_0x3edd0a[0x0])?_0x3edd0a[0x0]:parseInt(_0x3edd0a[0x0],0xa),_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0xb37')]=_0x3edd0a[_0x13d108('0x19aa')](0x1,_0x3edd0a[_0x13d108('0x2587')])[_0x13d108('0x19c4')](',');}break;case _0x13d108('0x1402'):_0x1b3cad[_0x13d108('0x1bed')]['text']=_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x124b')];break;case _0x13d108('0x282c'):_0x1b3cad['playback']['name']=_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x124b')][_0x13d108('0x1a39')]('=')[0x0],_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x12f4')]=_0x1b3cad['playback']['appdata'][_0x13d108('0x1a39')]('=')[0x1];break;case _0x13d108('0x2067'):_0x1b3cad['playback'][_0x13d108('0x24b9')]=_0x1b3cad['playback'][_0x13d108('0x124b')];break;default:{var _0x379cc6=_0x1b3cad['playback'][_0x13d108('0x124b')][_0x13d108('0x1a39')](',');_0x1b3cad[_0x13d108('0x1bed')]['appdata']=_0x51538b()['isEmpty'](_0x379cc6[0x0])?_0x379cc6[0x0]:isNaN(_0x379cc6[0x0])?_0x379cc6[0x0]:parseInt(_0x379cc6[0x0],0xa),_0x1b3cad['playback']['options']=_0x51538b()[_0x13d108('0x116b')](_0x379cc6[0x1])?_0x379cc6[0x1]:isNaN(_0x379cc6[0x1])?_0x379cc6[0x1]:parseInt(_0x379cc6[0x1],0xa);}break;}else{}_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x6c8')]&&_0x1b3cad[_0x13d108('0x1bed')]['type'][_0x13d108('0xcf6')]()==='outbound'&&_0x1b3cad['playback']['appType']['toLowerCase']()===_0x13d108('0x1e7f')&&(_0x1b3cad['playback']['prefix']=_0x1b3cad['playback']['phone']?_0x1b3cad['playback'][_0x13d108('0x1a46')][_0x13d108('0x1a39')]('$')[0x0]:undefined,_0x1b3cad['playback'][_0x13d108('0xeed')]=_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x514')]?_0x13d108('0x23d8')+_0x1b3cad[_0x13d108('0x1bed')][_0x13d108('0x514')]:undefined);_0x1b3cad[_0x13d108('0x2559')]=_0xc28e72,_0x1b3cad[_0x13d108('0x2023')]=_0x49cbfb,_0x3ef95a[_0x13d108('0x26e8')]('admin')?_0x2c62c1[_0x13d108('0x7d6')][_0x13d108('0x2122')]({'fields':_0x13d108('0x188c'),'sort':_0x13d108('0x25d6'),'nolimit':_0x13d108('0x1c5c')})[_0x13d108('0x1dc2')][_0x13d108('0xaa5')](function(_0x756a16){var _0x43bb56=_0x13d108;_0x1b3cad[_0x43bb56('0x7ca')]=_0x756a16[_0x43bb56('0x580')]||[];})[_0x13d108('0x253d')](function(_0x1ba1ad){var _0x4273dc=_0x13d108;_0x4ef5c2[_0x4273dc('0x187f')]({'title':_0x1ba1ad['status']?_0x4273dc('0x16c2')+_0x1ba1ad[_0x4273dc('0x2fa')]+'\x20-\x20'+_0x1ba1ad[_0x4273dc('0x24df')]:_0x4273dc('0x546'),'msg':_0x1ba1ad[_0x4273dc('0x10fd')]?JSON[_0x4273dc('0xa48')](_0x1ba1ad[_0x4273dc('0x10fd')]):_0x1ba1ad[_0x4273dc('0x684')]()});}):_0x2c62c1[_0x13d108('0x7d6')][_0x13d108('0x2122')]({'fields':_0x13d108('0x188c'),'sort':_0x13d108('0x25d6'),'nolimit':_0x13d108('0x1c5c')})[_0x13d108('0x1dc2')][_0x13d108('0xaa5')](function(_0x29a943){var _0x68d25f=_0x13d108;_0x1b3cad[_0x68d25f('0x7ca')]=_0x29a943['rows']||[];})[_0x13d108('0xaa5')](function(){var _0x2a1c5d=_0x13d108;return _0x2c62c1[_0x2a1c5d('0x1a50')][_0x2a1c5d('0x2122')]({'userProfileId':_0x1b3cad[_0x2a1c5d('0x7fc')]['userProfileId'],'sectionId':0x3ef})['$promise'];})[_0x13d108('0xaa5')](function(_0x3af7d1){var _0x4e5740=_0x13d108,_0x2787c7=_0x3af7d1&&_0x3af7d1[_0x4e5740('0x580')]?_0x3af7d1[_0x4e5740('0x580')][0x0]:null;if(!_0x2787c7){var _0x293d84=[],_0x2a05df=null;_0x1b3cad['playback']&&(_0x2a05df=_0x51538b()['find'](_0x1b3cad['sounds'],{'save_name':_0x1b3cad[_0x4e5740('0x1bed')][_0x4e5740('0x7d6')]}));for(var _0x335afe=0x0;_0x335afe<_0x1b3cad[_0x4e5740('0x7ca')]['length'];_0x335afe++){_0x2a05df&&_0x1b3cad[_0x4e5740('0x7ca')][_0x335afe]['id']===_0x2a05df['id']&&(_0x1b3cad[_0x4e5740('0x7ca')][_0x335afe][_0x4e5740('0x12eb')]=![],_0x293d84[_0x4e5740('0x1599')](_0x1b3cad[_0x4e5740('0x7ca')][_0x335afe]));}_0x1b3cad['sounds']=_0x293d84;}else{if(!_0x2787c7[_0x4e5740('0x26cc')])return _0x2c62c1[_0x4e5740('0x249a')]['get']({'sectionId':_0x2787c7['id']})['$promise']['then'](function(_0x5ab2a8){var _0x4970f9=_0x4e5740,_0x5015e5=_0x51538b()[_0x4970f9('0x1246')](_0x5ab2a8['rows'],function(_0x115ca1){var _0x4d8d8f=_0x4970f9;return _0x51538b()['find'](_0x1b3cad[_0x4d8d8f('0x7ca')],{'id':_0x115ca1[_0x4d8d8f('0xbcd')]});}),_0x232f34=null;_0x1b3cad[_0x4970f9('0x1bed')]&&(_0x232f34=_0x51538b()[_0x4970f9('0xe9e')](_0x1b3cad[_0x4970f9('0x7ca')],{'save_name':_0x1b3cad[_0x4970f9('0x1bed')][_0x4970f9('0x7d6')]}));if(_0x232f34&&!_0x51538b()['some'](_0x5015e5,['id',_0x232f34['id']])){var _0x23e1d8=_0x51538b()['find'](_0x1b3cad[_0x4970f9('0x7ca')],{'id':_0x232f34['id']});_0x23e1d8[_0x4970f9('0x12eb')]=![],_0x5015e5[_0x4970f9('0x1599')](_0x23e1d8);}_0x1b3cad['sounds']=_0x5015e5;});}})['catch'](function(_0x3f65bc){var _0xa82f6c=_0x13d108;_0x4ef5c2[_0xa82f6c('0x187f')]({'title':_0x3f65bc[_0xa82f6c('0x2fa')]?_0xa82f6c('0x16c2')+_0x3f65bc['status']+_0xa82f6c('0x169e')+_0x3f65bc['statusText']:_0xa82f6c('0x632'),'msg':_0x3f65bc[_0xa82f6c('0x10fd')]?JSON[_0xa82f6c('0xa48')](_0x3f65bc[_0xa82f6c('0x10fd')]):_0x3f65bc[_0xa82f6c('0x684')]()});});function _0xc28e72(){var _0x50168f=_0x13d108;_0x1b3cad[_0x50168f('0x4c6')]=[];var _0x74c1f0=[];_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x6c8')]&&_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x6c8')][_0x50168f('0xcf6')]()===_0x50168f('0x19d1')&&_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0xe6d')]===_0x50168f('0x8da')&&(_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x1a46')]=_0x17e31a[_0x50168f('0x888')]?(_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x1b8f')]||'')+'${EXTEN:'+_0x17e31a[_0x50168f('0x888')]+'}':(_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x1b8f')]||'')+_0x50168f('0x1f87'),_0x17e31a[_0x50168f('0x1e0f')]!==_0x50168f('0x117')?_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x1b36')]['indexOf'](_0x50168f('0x266a'))<0x0&&(_0x1b3cad[_0x50168f('0x1bed')]['options']+=_0x50168f('0x266a')):_0x1b3cad[_0x50168f('0x1bed')]['options']=_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x1b36')]['replace'](_0x50168f('0x266a'),''));if(_0x1b3cad['playback'][_0x50168f('0xe6d')]&&_0x1b3cad[_0x50168f('0x1bed')]['appType']===_0x50168f('0x113b')){}else switch((_0x1b3cad['playback'][_0x50168f('0x9eb')]||_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0xe6d')])['toLowerCase']()){case _0x50168f('0x282c'):_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x124b')]=_0x1b3cad['playback'][_0x50168f('0x25d6')]+'='+_0x1b3cad['playback'][_0x50168f('0x12f4')];break;case _0x50168f('0x113b'):break;default:_0x74c1f0[0x0]=_0x1b3cad[_0x50168f('0x1bed')][_0x50168f('0x124b')],_0x74c1f0[0x1]=_0x1b3cad['playback'][_0x50168f('0x1b36')],_0x1b3cad[_0x50168f('0x1bed')]['appdata']=_0x74c1f0[_0x50168f('0x19c4')](',');}_0x49cbfb(_0x1b3cad[_0x50168f('0x1bed')]);}function _0x49cbfb(_0x52ed74){var _0x372e1a=_0x13d108;_0x554d77[_0x372e1a('0x1120')](_0x52ed74);}}const _0x54366e=_0xe1b22;_0x154a08[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1790'),_0x1a8446('0x13b5'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x154a08(_0x11fe20,_0x1d9116,_0x112008,_0x5a9172,_0x26ff1e,_0x3185c4,_0x350e55,_0xe93c77){var _0x2d3284=_0x1a8446,_0x254b53=this;_0x254b53[_0x2d3284('0x7fc')]=_0x350e55['getCurrentUser'](),_0x254b53[_0x2d3284('0x4c6')]=[],_0x254b53['title']='VOICE.EDIT_'+(_0x5a9172[_0x2d3284('0xe6d')]||_0x5a9172[_0x2d3284('0x9eb')])[_0x2d3284('0x1d08')](),_0x254b53[_0x2d3284('0xe26')]=angular[_0x2d3284('0x20a')](_0x5a9172),_0x254b53[_0x2d3284('0xada')]=_0xe93c77,_0x254b53['hasModulePermissions']={};if(_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x124b')])switch(_0x254b53[_0x2d3284('0xe26')]['appType']?_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0xe6d')][_0x2d3284('0xcf6')]():_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x9eb')][_0x2d3284('0xcf6')]()){case _0x2d3284('0x113b'):break;case _0x2d3284('0x67c'):{var _0x34abf2=_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x124b')][_0x2d3284('0x1a39')](',');_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x24ec')]=_0x34abf2[0x0],_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x1938')]=_0x34abf2[0x1],_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x273')]=_0x34abf2[_0x2d3284('0x19aa')](0x2,_0x34abf2['length'])[_0x2d3284('0x19c4')](',');}break;case _0x2d3284('0x3f5'):{var _0x339184=_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x124b')][_0x2d3284('0x1a39')](',');_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0xc07')]=_0x339184[0x0],_0x254b53['queue'][_0x2d3284('0x15f9')]=_0x339184[0x1],_0x254b53['queue']['lexregion']=_0x339184[0x2],_0x254b53[_0x2d3284('0xe26')]['botname']=_0x339184[0x3],_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x273')]=_0x339184[_0x2d3284('0x19aa')](0x4,_0x339184[_0x2d3284('0x2587')])['join'](',');}break;case _0x2d3284('0x1b05'):{var _0xf314be=_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x124b')]['split'](',');_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x11b6')]=isNaN(_0xf314be[0x0])?_0xf314be[0x0]:parseInt(_0xf314be[0x0],0xa),_0x254b53['queue'][_0x2d3284('0xb37')]=_0xf314be[_0x2d3284('0x19aa')](0x1,_0xf314be[_0x2d3284('0x2587')])['join'](',');}break;case'message':_0x254b53[_0x2d3284('0xe26')]['text']=_0x254b53['queue'][_0x2d3284('0x124b')];break;case'set':_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x25d6')]=_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x124b')][_0x2d3284('0x1a39')]('=')[0x0],_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x12f4')]=_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x124b')]['split']('=')[0x1];break;case _0x2d3284('0x2067'):_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x24b9')]=_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x124b')];break;default:{var _0x2eaa07=_0x254b53['queue']['appdata'][_0x2d3284('0x1a39')](',');_0x254b53[_0x2d3284('0xe26')]['queue']=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x0])?_0x2eaa07[0x0]:isNaN(_0x2eaa07[0x0])?_0x2eaa07[0x0]:parseInt(_0x2eaa07[0x0],0xa),_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x1b36')]=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x1])?_0x2eaa07[0x1]:isNaN(_0x2eaa07[0x1])?_0x2eaa07[0x1]:parseInt(_0x2eaa07[0x1],0xa),_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x12d3')]=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x2])?_0x2eaa07[0x2]:isNaN(_0x2eaa07[0x2])?_0x2eaa07[0x2]:parseInt(_0x2eaa07[0x2],0xa),_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x7d6')]=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x3])?_0x2eaa07[0x3]:isNaN(_0x2eaa07[0x3])?_0x2eaa07[0x3]:parseInt(_0x2eaa07[0x3],0xa),_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x23c0')]=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x4])?_0x2eaa07[0x4]:isNaN(_0x2eaa07[0x4])?_0x2eaa07[0x4]:parseInt(_0x2eaa07[0x4],0xa),_0x254b53[_0x2d3284('0xe26')]['agi']=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x5])?_0x2eaa07[0x5]:isNaN(_0x2eaa07[0x5])?_0x2eaa07[0x5]:parseInt(_0x2eaa07[0x5],0xa),_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x522')]=_0x51538b()['isEmpty'](_0x2eaa07[0x6])?_0x2eaa07[0x6]:isNaN(_0x2eaa07[0x6])?_0x2eaa07[0x6]:parseInt(_0x2eaa07[0x6],0xa),_0x254b53[_0x2d3284('0xe26')]['gosub']=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x7])?_0x2eaa07[0x7]:isNaN(_0x2eaa07[0x7])?_0x2eaa07[0x7]:parseInt(_0x2eaa07[0x7],0xa),_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x1676')]=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x8])?_0x2eaa07[0x8]:isNaN(_0x2eaa07[0x8])?_0x2eaa07[0x8]:parseInt(_0x2eaa07[0x8],0xa),_0x254b53[_0x2d3284('0xe26')]['position']=_0x51538b()[_0x2d3284('0x116b')](_0x2eaa07[0x9])?_0x2eaa07[0x9]:isNaN(_0x2eaa07[0x9])?_0x2eaa07[0x9]:parseInt(_0x2eaa07[0x9],0xa);}break;}else{}_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x6c8')]&&_0x254b53['queue']['type'][_0x2d3284('0xcf6')]()===_0x2d3284('0x19d1')&&_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0xe6d')][_0x2d3284('0xcf6')]()===_0x2d3284('0x1e7f')&&(_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x1b8f')]=_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x1a46')]?_0x254b53[_0x2d3284('0xe26')][_0x2d3284('0x1a46')][_0x2d3284('0x1a39')]('$')[0x0]:undefined,_0x254b53[_0x2d3284('0xe26')]['callerId']=_0x254b53[_0x2d3284('0xe26')]['callerID']?_0x2d3284('0x23d8')+_0x254b53['queue'][_0x2d3284('0x514')]:undefined);_0x254b53[_0x2d3284('0x2559')]=_0x577131,_0x254b53['closeDialog']=_0x256d5f,_0x350e55['hasRole'](_0x2d3284('0x178b'))?_0x3185c4[_0x2d3284('0x7d6')][_0x2d3284('0x2122')]({'fields':_0x2d3284('0x188c'),'sort':_0x2d3284('0x25d6'),'nolimit':'true'})[_0x2d3284('0x1dc2')][_0x2d3284('0xaa5')](function(_0x2e4f4e){var _0x5746d3=_0x2d3284;_0x254b53[_0x5746d3('0x7ca')]=_0x2e4f4e[_0x5746d3('0x580')]||[];})[_0x2d3284('0x253d')](function(_0x1560e1){var _0x293f93=_0x2d3284;_0x112008['error']({'title':_0x1560e1[_0x293f93('0x2fa')]?_0x293f93('0x16c2')+_0x1560e1[_0x293f93('0x2fa')]+'\x20-\x20'+_0x1560e1['statusText']:_0x293f93('0x546'),'msg':_0x1560e1[_0x293f93('0x10fd')]?JSON[_0x293f93('0xa48')](_0x1560e1[_0x293f93('0x10fd')]):_0x1560e1['toString']()});}):_0x3185c4[_0x2d3284('0x7d6')]['get']({'fields':_0x2d3284('0x188c'),'sort':'name','nolimit':_0x2d3284('0x1c5c')})[_0x2d3284('0x1dc2')][_0x2d3284('0xaa5')](function(_0x14da50){var _0x5951eb=_0x2d3284;_0x254b53['sounds']=_0x14da50[_0x5951eb('0x580')]||[];})['then'](function(){var _0x3a662c=_0x2d3284;return _0x3185c4[_0x3a662c('0x1a50')][_0x3a662c('0x2122')]({'userProfileId':_0x254b53[_0x3a662c('0x7fc')]['userProfileId'],'sectionId':0x3ef})['$promise'];})['then'](function(_0x9af97c){var _0x54baff=_0x2d3284,_0x162256=_0x9af97c&&_0x9af97c['rows']?_0x9af97c[_0x54baff('0x580')][0x0]:null;if(!_0x162256){var _0x35053e=[],_0x2d3079=null;_0x254b53[_0x54baff('0xe26')]&&(_0x2d3079=_0x51538b()['find'](_0x254b53[_0x54baff('0x7ca')],{'save_name':_0x254b53[_0x54baff('0xe26')][_0x54baff('0x7d6')]}));for(var _0x50c84e=0x0;_0x50c84e<_0x254b53[_0x54baff('0x7ca')][_0x54baff('0x2587')];_0x50c84e++){_0x2d3079&&_0x254b53[_0x54baff('0x7ca')][_0x50c84e]['id']===_0x2d3079['id']&&(_0x254b53['sounds'][_0x50c84e][_0x54baff('0x12eb')]=![],_0x35053e[_0x54baff('0x1599')](_0x254b53['sounds'][_0x50c84e]));}_0x254b53['sounds']=_0x35053e;}else{if(!_0x162256[_0x54baff('0x26cc')])return _0x3185c4[_0x54baff('0x249a')][_0x54baff('0x2122')]({'sectionId':_0x162256['id']})[_0x54baff('0x1dc2')][_0x54baff('0xaa5')](function(_0x574b63){var _0x599d4a=_0x54baff,_0x1e23d7=_0x51538b()[_0x599d4a('0x1246')](_0x574b63[_0x599d4a('0x580')],function(_0x7fa69d){var _0x16b9df=_0x599d4a;return _0x51538b()[_0x16b9df('0xe9e')](_0x254b53[_0x16b9df('0x7ca')],{'id':_0x7fa69d[_0x16b9df('0xbcd')]});}),_0x51768f=null;_0x254b53['queue']&&(_0x51768f=_0x51538b()[_0x599d4a('0xe9e')](_0x254b53[_0x599d4a('0x7ca')],{'save_name':_0x254b53[_0x599d4a('0xe26')][_0x599d4a('0x7d6')]}));if(_0x51768f&&!_0x51538b()['some'](_0x1e23d7,['id',_0x51768f['id']])){var _0x430f64=_0x51538b()[_0x599d4a('0xe9e')](_0x254b53[_0x599d4a('0x7ca')],{'id':_0x51768f['id']});_0x430f64['canSelect']=![],_0x1e23d7['push'](_0x430f64);}_0x254b53[_0x599d4a('0x7ca')]=_0x1e23d7;});}})[_0x2d3284('0x253d')](function(_0x43bb74){var _0x1c9620=_0x2d3284;_0x112008['error']({'title':_0x43bb74[_0x1c9620('0x2fa')]?_0x1c9620('0x16c2')+_0x43bb74['status']+_0x1c9620('0x169e')+_0x43bb74[_0x1c9620('0x24df')]:_0x1c9620('0x632'),'msg':_0x43bb74[_0x1c9620('0x10fd')]?JSON['stringify'](_0x43bb74['data']):_0x43bb74[_0x1c9620('0x684')]()});}),_0x350e55[_0x2d3284('0x26e8')]('admin')?_0x3185c4[_0x2d3284('0x1588')][_0x2d3284('0x2122')]({'type':_0x2d3284('0x4b8'),'fields':_0x2d3284('0x21e2'),'sort':_0x2d3284('0x25d6'),'nolimit':_0x2d3284('0x1c5c')})['$promise'][_0x2d3284('0xaa5')](function(_0x344031){var _0x3e0764=_0x2d3284;_0x254b53[_0x3e0764('0x4d7')]=_0x344031[_0x3e0764('0x580')]||[];})[_0x2d3284('0x253d')](function(_0x6d2724){var _0x24f9d7=_0x2d3284;_0x112008['error']({'title':_0x6d2724[_0x24f9d7('0x2fa')]?'API:'+_0x6d2724[_0x24f9d7('0x2fa')]+_0x24f9d7('0x169e')+_0x6d2724['statusText']:_0x24f9d7('0x773'),'msg':_0x6d2724[_0x24f9d7('0x10fd')]?JSON['stringify'](_0x6d2724[_0x24f9d7('0x10fd')]):_0x6d2724[_0x24f9d7('0x684')]()});}):_0x3185c4[_0x2d3284('0x1588')][_0x2d3284('0x2122')]({'type':_0x2d3284('0x4b8'),'fields':_0x2d3284('0x21e2'),'sort':_0x2d3284('0x25d6'),'nolimit':_0x2d3284('0x1c5c')})[_0x2d3284('0x1dc2')][_0x2d3284('0xaa5')](function(_0x575cc5){var _0x3b1976=_0x2d3284;_0x254b53[_0x3b1976('0x4d7')]=_0x575cc5['rows']||[];})['then'](function(){var _0x5f3610=_0x2d3284;return _0x3185c4[_0x5f3610('0x1a50')][_0x5f3610('0x2122')]({'userProfileId':_0x254b53[_0x5f3610('0x7fc')][_0x5f3610('0x2168')],'sectionId':0x191})[_0x5f3610('0x1dc2')];})[_0x2d3284('0xaa5')](function(_0x455ddd){var _0x47167f=_0x2d3284,_0x3ba1ee=_0x455ddd&&_0x455ddd[_0x47167f('0x580')]?_0x455ddd[_0x47167f('0x580')][0x0]:null;if(!_0x3ba1ee){var _0x13fcdc=[],_0x4e0d63=null;_0x254b53[_0x47167f('0xe26')]&&(_0x4e0d63=_0x51538b()[_0x47167f('0xe9e')](_0x254b53[_0x47167f('0x4d7')],{'name':_0x254b53[_0x47167f('0xe26')][_0x47167f('0xe26')]}));for(var _0x9800e=0x0;_0x9800e<_0x254b53[_0x47167f('0x4d7')][_0x47167f('0x2587')];_0x9800e++){_0x4e0d63&&_0x254b53[_0x47167f('0x4d7')][_0x9800e]['id']===_0x4e0d63['id']&&(_0x254b53['queues'][_0x9800e][_0x47167f('0x12eb')]=![],_0x13fcdc[_0x47167f('0x1599')](_0x254b53['queues'][_0x9800e]));}_0x254b53[_0x47167f('0x4d7')]=_0x13fcdc;}else{if(!_0x3ba1ee[_0x47167f('0x26cc')])return _0x3185c4[_0x47167f('0x249a')][_0x47167f('0x2122')]({'sectionId':_0x3ba1ee['id']})['$promise']['then'](function(_0x399053){var _0x1ed5bb=_0x47167f,_0x395b80=_0x51538b()['map'](_0x399053[_0x1ed5bb('0x580')],function(_0x5bb767){var _0x26f9c7=_0x1ed5bb;return _0x51538b()[_0x26f9c7('0xe9e')](_0x254b53['queues'],{'id':_0x5bb767[_0x26f9c7('0xbcd')]});}),_0x49757e=null;_0x254b53[_0x1ed5bb('0xe26')]&&(_0x49757e=_0x51538b()[_0x1ed5bb('0xe9e')](_0x254b53['queues'],{'name':_0x254b53['queue'][_0x1ed5bb('0xe26')]}));if(_0x49757e&&!_0x51538b()[_0x1ed5bb('0x2c2')](_0x395b80,['id',_0x49757e['id']])){var _0x8b120e=_0x51538b()['find'](_0x254b53[_0x1ed5bb('0x4d7')],{'id':_0x49757e['id']});_0x8b120e[_0x1ed5bb('0x12eb')]=![],_0x395b80[_0x1ed5bb('0x1599')](_0x8b120e);}_0x254b53[_0x1ed5bb('0x4d7')]=_0x395b80;});}})['catch'](function(_0x5dc212){var _0x22ce99=_0x2d3284;_0x112008[_0x22ce99('0x187f')]({'title':_0x5dc212[_0x22ce99('0x2fa')]?_0x22ce99('0x16c2')+_0x5dc212[_0x22ce99('0x2fa')]+_0x22ce99('0x169e')+_0x5dc212[_0x22ce99('0x24df')]:'SYSTEM:GETqueues','msg':_0x5dc212[_0x22ce99('0x10fd')]?JSON[_0x22ce99('0xa48')](_0x5dc212['data']):_0x5dc212[_0x22ce99('0x684')]()});});function _0x577131(){var _0x318620=_0x2d3284;_0x254b53[_0x318620('0x4c6')]=[];var _0x7c486=[];_0x254b53[_0x318620('0xe26')][_0x318620('0x6c8')]&&_0x254b53[_0x318620('0xe26')][_0x318620('0x6c8')][_0x318620('0xcf6')]()===_0x318620('0x19d1')&&_0x254b53[_0x318620('0xe26')][_0x318620('0xe6d')]===_0x318620('0x8da')&&(_0x254b53[_0x318620('0xe26')][_0x318620('0x1a46')]=_0x26ff1e['cutdigits']?(_0x254b53[_0x318620('0xe26')][_0x318620('0x1b8f')]||'')+_0x318620('0x117e')+_0x26ff1e['cutdigits']+'}':(_0x254b53[_0x318620('0xe26')][_0x318620('0x1b8f')]||'')+'${EXTEN}',_0x26ff1e[_0x318620('0x1e0f')]!==_0x318620('0x117')?_0x254b53[_0x318620('0xe26')]['options'][_0x318620('0x1f38')](_0x318620('0x266a'))<0x0&&(_0x254b53['queue'][_0x318620('0x1b36')]+=_0x318620('0x266a')):_0x254b53['queue'][_0x318620('0x1b36')]=_0x254b53['queue']['options']['replace'](_0x318620('0x266a'),''));if(_0x254b53[_0x318620('0xe26')][_0x318620('0xe6d')]&&_0x254b53[_0x318620('0xe26')]['appType']===_0x318620('0x113b')){}else switch((_0x254b53['queue'][_0x318620('0x9eb')]||_0x254b53[_0x318620('0xe26')][_0x318620('0xe6d')])['toLowerCase']()){case _0x318620('0x282c'):_0x254b53['queue']['appdata']=_0x254b53[_0x318620('0xe26')][_0x318620('0x25d6')]+'='+_0x254b53['queue'][_0x318620('0x12f4')];break;case _0x318620('0x113b'):break;default:_0x7c486[0x0]=_0x254b53[_0x318620('0xe26')]['queue'],_0x7c486[0x1]=_0x254b53[_0x318620('0xe26')][_0x318620('0x1b36')],_0x7c486[0x2]=_0x254b53[_0x318620('0xe26')][_0x318620('0x12d3')],_0x7c486[0x3]=_0x254b53[_0x318620('0xe26')][_0x318620('0x7d6')],_0x7c486[0x4]=_0x254b53[_0x318620('0xe26')]['timeout'],_0x7c486[0x5]=_0x254b53[_0x318620('0xe26')]['agi'],_0x7c486[0x6]=_0x254b53[_0x318620('0xe26')][_0x318620('0x522')],_0x7c486[0x7]=_0x254b53[_0x318620('0xe26')][_0x318620('0x2407')],_0x7c486[0x8]=_0x254b53[_0x318620('0xe26')][_0x318620('0x1676')],_0x7c486[0x9]=_0x254b53[_0x318620('0xe26')][_0x318620('0x137c')],_0x254b53[_0x318620('0xe26')][_0x318620('0x124b')]=_0x7c486[_0x318620('0x19c4')](',');}_0x256d5f(_0x254b53[_0x318620('0xe26')]);}function _0x256d5f(_0x3ec7cd){_0x11fe20['hide'](_0x3ec7cd);}}const _0x52a17d=_0x154a08;_0xd3a454[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),'inboundrouteApp',_0x1a8446('0x13b5'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0xd3a454(_0x258ecf,_0x34c59a,_0xf88ca6,_0x6778a9,_0x3ab6e3,_0x4c30bc,_0x37a95f,_0x512584){var _0x54fdb8=_0x1a8446,_0x2a9d32=this;_0x2a9d32[_0x54fdb8('0x7fc')]=_0x37a95f[_0x54fdb8('0xacc')](),_0x2a9d32[_0x54fdb8('0x4c6')]=[],_0x2a9d32[_0x54fdb8('0x110a')]='VOICE.EDIT_'+(_0x6778a9[_0x54fdb8('0xe6d')]||_0x6778a9[_0x54fdb8('0x9eb')])['toUpperCase'](),_0x2a9d32[_0x54fdb8('0x2126')]=angular[_0x54fdb8('0x20a')](_0x6778a9),_0x2a9d32[_0x54fdb8('0xada')]=_0x512584,_0x2a9d32['hasModulePermissions']={};if(_0x2a9d32['ringgroup']['appdata'])switch(_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0xe6d')]?_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0xe6d')]['toLowerCase']():_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x9eb')][_0x54fdb8('0xcf6')]()){case _0x54fdb8('0x113b'):break;case _0x54fdb8('0x67c'):{var _0xdfd007=_0x2a9d32['ringgroup']['appdata']['split'](',');_0x2a9d32['ringgroup'][_0x54fdb8('0x24ec')]=_0xdfd007[0x0],_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x1938')]=_0xdfd007[0x1],_0x2a9d32['ringgroup']['welcomemessage']=_0xdfd007[_0x54fdb8('0x19aa')](0x2,_0xdfd007[_0x54fdb8('0x2587')])[_0x54fdb8('0x19c4')](',');}break;case'amazonlex':{var _0x388fe3=_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x124b')][_0x54fdb8('0x1a39')](',');_0x2a9d32['ringgroup']['accesskeyid']=_0x388fe3[0x0],_0x2a9d32['ringgroup'][_0x54fdb8('0x15f9')]=_0x388fe3[0x1],_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0xa9a')]=_0x388fe3[0x2],_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x18ee')]=_0x388fe3[0x3],_0x2a9d32[_0x54fdb8('0x2126')]['welcomemessage']=_0x388fe3['slice'](0x4,_0x388fe3[_0x54fdb8('0x2587')])[_0x54fdb8('0x19c4')](',');}break;case'autoreply':{var _0x3d81ba=_0x2a9d32['ringgroup'][_0x54fdb8('0x124b')]['split'](',');_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x11b6')]=isNaN(_0x3d81ba[0x0])?_0x3d81ba[0x0]:parseInt(_0x3d81ba[0x0],0xa),_0x2a9d32['ringgroup']['text']=_0x3d81ba[_0x54fdb8('0x19aa')](0x1,_0x3d81ba[_0x54fdb8('0x2587')])[_0x54fdb8('0x19c4')](',');}break;case _0x54fdb8('0x1402'):_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0xb37')]=_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x124b')];break;case'set':_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x25d6')]=_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x124b')]['split']('=')[0x0],_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x12f4')]=_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x124b')]['split']('=')[0x1];break;case _0x54fdb8('0x2067'):_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x24b9')]=_0x2a9d32['ringgroup'][_0x54fdb8('0x124b')];break;default:{var _0x27e02d=_0x2a9d32[_0x54fdb8('0x2126')]['appdata'][_0x54fdb8('0x1a39')](',');_0x2a9d32['ringgroup'][_0x54fdb8('0x234a')]=_0x27e02d[0x0][_0x54fdb8('0x1a39')]('&'),_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x23c0')]=_0x51538b()[_0x54fdb8('0x116b')](_0x27e02d[0x1])?_0x27e02d[0x1]:isNaN(_0x27e02d[0x1])?_0x27e02d[0x1]:parseInt(_0x27e02d[0x1],0xa),_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x1b36')]=_0x51538b()['isEmpty'](_0x27e02d[0x2])?_0x27e02d[0x2]:isNaN(_0x27e02d[0x2])?_0x27e02d[0x2]:parseInt(_0x27e02d[0x2],0xa),_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x2242')]=_0x51538b()[_0x54fdb8('0x116b')](_0x27e02d[0x3])?_0x27e02d[0x3]:isNaN(_0x27e02d[0x3])?_0x27e02d[0x3]:parseInt(_0x27e02d[0x3],0xa);}break;}else{}_0x2a9d32['ringgroup'][_0x54fdb8('0x6c8')]&&_0x2a9d32[_0x54fdb8('0x2126')]['type'][_0x54fdb8('0xcf6')]()==='outbound'&&_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0xe6d')][_0x54fdb8('0xcf6')]()===_0x54fdb8('0x1e7f')&&(_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x1b8f')]=_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x1a46')]?_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x1a46')][_0x54fdb8('0x1a39')]('$')[0x0]:undefined,_0x2a9d32['ringgroup']['callerId']=_0x2a9d32['ringgroup']['callerID']?'CALLERID(all)='+_0x2a9d32[_0x54fdb8('0x2126')][_0x54fdb8('0x514')]:undefined);_0x2a9d32['saveInboundRouteApp']=_0xe73513,_0x2a9d32[_0x54fdb8('0x2023')]=_0x46d7ac;var _0x8825ba=[{'id':0xca,'role':_0x54fdb8('0xeff')},{'id':0xcb,'role':_0x54fdb8('0xb5b')}],_0x3d3570=null;_0x37a95f[_0x54fdb8('0x26e8')](_0x54fdb8('0x178b'))?_0x4c30bc[_0x54fdb8('0x272b')][_0x54fdb8('0x2122')]({'fields':'id,name,role','sort':_0x54fdb8('0x25d6'),'nolimit':'true'})[_0x54fdb8('0x1dc2')][_0x54fdb8('0xaa5')](function(_0xfa29a0){var _0x4fc7fa=_0x54fdb8;_0x2a9d32['users']=_0xfa29a0[_0x4fc7fa('0x580')]||[];})[_0x54fdb8('0x253d')](function(_0x3a54b6){var _0x2e9312=_0x54fdb8;_0xf88ca6[_0x2e9312('0x187f')]({'title':_0x3a54b6['status']?_0x2e9312('0x16c2')+_0x3a54b6['status']+_0x2e9312('0x169e')+_0x3a54b6[_0x2e9312('0x24df')]:_0x2e9312('0x6eb'),'msg':_0x3a54b6[_0x2e9312('0x10fd')]?JSON[_0x2e9312('0xa48')](_0x3a54b6['data']):_0x3a54b6['toString']()});}):_0x4c30bc['user'][_0x54fdb8('0x2122')]({'fields':_0x54fdb8('0x1f5d'),'sort':_0x54fdb8('0x25d6'),'nolimit':_0x54fdb8('0x1c5c')})[_0x54fdb8('0x1dc2')][_0x54fdb8('0xaa5')](function(_0x9c4a7e){var _0x1653ea=_0x54fdb8;_0x3d3570=_0x9c4a7e[_0x1653ea('0x580')]||[];})[_0x54fdb8('0xaa5')](function(){var _0x4dbfda=_0x54fdb8,_0x4d7ce4=[];for(var _0x1c7788=0x0;_0x1c7788<_0x8825ba['length'];_0x1c7788++){_0x4d7ce4[_0x4dbfda('0x1599')](_0x4c30bc[_0x4dbfda('0x1a50')][_0x4dbfda('0x2122')]({'userProfileId':_0x2a9d32[_0x4dbfda('0x7fc')][_0x4dbfda('0x2168')],'sectionId':_0x8825ba[_0x1c7788]['id']})['$promise']);}return _0x34c59a[_0x4dbfda('0xa15')](_0x4d7ce4);})['then'](function(_0x5c8ea3){var _0x2b5ce9=_0x54fdb8,_0x3842dd=_0x51538b()['map'](_0x5c8ea3,function(_0x5acf24){var _0x92d984=a0_0x1149;return _0x5acf24&&_0x5acf24['rows']?_0x5acf24[_0x92d984('0x580')][0x0]:null;}),_0x26aae5=[],_0x4b1d35=function _0x553b5f(_0x2f08e0){var _0x2c7cef=a0_0x1149,_0x18e05c=_0x51538b()[_0x2c7cef('0xe9e')](_0x3842dd,['sectionId',_0x8825ba[_0x2f08e0]['id']]);if(_0x18e05c){if(!_0x18e05c[_0x2c7cef('0x26cc')])_0x26aae5[_0x2c7cef('0x1599')](_0x4c30bc[_0x2c7cef('0x249a')][_0x2c7cef('0x2122')]({'sectionId':_0x18e05c['id']})[_0x2c7cef('0x1dc2')]);else{var _0x18e33a=[];_0x3d3570[_0x2c7cef('0x15b5')](function(_0x268f1b){var _0xe37704=_0x2c7cef;_0x268f1b[_0xe37704('0x924')]===_0x8825ba[_0x2f08e0]['role']&&_0x18e33a[_0xe37704('0x1599')](_0x268f1b);}),_0x26aae5['push']({'rows':_0x18e33a,'count':_0x18e33a['length']});}}};for(var _0x565fdc=0x0;_0x565fdc<_0x8825ba[_0x2b5ce9('0x2587')];_0x565fdc++){_0x4b1d35(_0x565fdc);}return _0x34c59a[_0x2b5ce9('0xa15')](_0x26aae5);})[_0x54fdb8('0xaa5')](function(_0x33ccd6){var _0x63cb32=_0x54fdb8,_0x4de3dd=[],_0x38ba4b=null;_0x2a9d32['ringgroup']&&(_0x38ba4b=_0x51538b()[_0x63cb32('0xe9e')](_0x3d3570,{'name':_0x2a9d32[_0x63cb32('0x2126')][_0x63cb32('0x234a')]}));for(var _0x2719ad=0x0;_0x2719ad<_0x33ccd6[_0x63cb32('0x2587')];_0x2719ad++){var _0x3ff490=_0x33ccd6[_0x2719ad][_0x63cb32('0x580')]||[];_0x3ff490[_0x63cb32('0x15b5')](function(_0x57004d){var _0x2192fb=_0x63cb32;_0x4de3dd[_0x2192fb('0x1599')](_0x57004d);});}_0x38ba4b&&!_0x51538b()[_0x63cb32('0x2c2')](_0x4de3dd,[_0x63cb32('0xbcd'),_0x38ba4b['id']])&&_0x3d3570[_0x63cb32('0x15b5')](function(_0xfcdb69){var _0x580af8=_0x63cb32;_0xfcdb69['id']===_0x38ba4b['id']&&(_0xfcdb69[_0x580af8('0x12eb')]=![],_0x4de3dd[_0x580af8('0x1599')](_0xfcdb69));}),_0x2a9d32[_0x63cb32('0x2204')]=_0x4de3dd;})['catch'](function(_0x4e14b4){var _0x2027a7=_0x54fdb8;_0xf88ca6[_0x2027a7('0x187f')]({'title':_0x4e14b4[_0x2027a7('0x2fa')]?_0x2027a7('0x16c2')+_0x4e14b4[_0x2027a7('0x2fa')]+_0x2027a7('0x169e')+_0x4e14b4[_0x2027a7('0x24df')]:_0x2027a7('0x1f4d'),'msg':_0x4e14b4[_0x2027a7('0x10fd')]?JSON['stringify'](_0x4e14b4[_0x2027a7('0x10fd')]):_0x4e14b4['toString']()});});function _0xe73513(){var _0x2480f6=_0x54fdb8;_0x2a9d32['errors']=[];var _0x4843a7=[];_0x2a9d32[_0x2480f6('0x2126')]['type']&&_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0x6c8')]['toLowerCase']()==='outbound'&&_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0xe6d')]===_0x2480f6('0x8da')&&(_0x2a9d32['ringgroup']['phone']=_0x3ab6e3[_0x2480f6('0x888')]?(_0x2a9d32[_0x2480f6('0x2126')]['prefix']||'')+_0x2480f6('0x117e')+_0x3ab6e3[_0x2480f6('0x888')]+'}':(_0x2a9d32['ringgroup']['prefix']||'')+_0x2480f6('0x1f87'),_0x3ab6e3['recordingFormat']!==_0x2480f6('0x117')?_0x2a9d32['ringgroup']['options'][_0x2480f6('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2a9d32[_0x2480f6('0x2126')]['options']+=_0x2480f6('0x266a')):_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0x1b36')]=_0x2a9d32['ringgroup'][_0x2480f6('0x1b36')][_0x2480f6('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0xe6d')]&&_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0xe6d')]===_0x2480f6('0x113b')){}else switch((_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0x9eb')]||_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0xe6d')])[_0x2480f6('0xcf6')]()){case _0x2480f6('0x282c'):_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0x124b')]=_0x2a9d32['ringgroup'][_0x2480f6('0x25d6')]+'='+_0x2a9d32['ringgroup'][_0x2480f6('0x12f4')];break;case _0x2480f6('0x113b'):break;default:_0x4843a7[0x0]=_0x2a9d32[_0x2480f6('0x2126')]['multipleUsers'][_0x2480f6('0x19c4')]('&'),_0x4843a7[0x1]=_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0x23c0')],_0x4843a7[0x2]=_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0x1b36')],_0x4843a7[0x3]=_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0x2242')],_0x2a9d32[_0x2480f6('0x2126')][_0x2480f6('0x124b')]=_0x4843a7[_0x2480f6('0x19c4')](',');}_0x46d7ac(_0x2a9d32[_0x2480f6('0x2126')]);}function _0x46d7ac(_0x199f97){var _0x1ace45=_0x54fdb8;_0x258ecf[_0x1ace45('0x1120')](_0x199f97);}}const _0x24876d=_0xd3a454;_0x5aea20[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1790'),_0x1a8446('0x13b5'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x5aea20(_0x4363db,_0x558e44,_0x4b6b1b,_0x23504e,_0x5baba4,_0x2357f3,_0xc5f507,_0x5c9232){var _0x240bb0=_0x1a8446,_0x3878a4=this;_0x3878a4[_0x240bb0('0x7fc')]=_0xc5f507[_0x240bb0('0xacc')](),_0x3878a4[_0x240bb0('0x4c6')]=[],_0x3878a4[_0x240bb0('0x110a')]=_0x240bb0('0x484')+(_0x23504e[_0x240bb0('0xe6d')]||_0x23504e[_0x240bb0('0x9eb')])[_0x240bb0('0x1d08')](),_0x3878a4['set']=angular[_0x240bb0('0x20a')](_0x23504e),_0x3878a4[_0x240bb0('0xada')]=_0x5c9232,_0x3878a4[_0x240bb0('0x9f0')]={};if(_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x124b')])switch(_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0xe6d')]?_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0xe6d')]['toLowerCase']():_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x9eb')][_0x240bb0('0xcf6')]()){case _0x240bb0('0x113b'):break;case'dialogflow':{var _0x2f93a2=_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x124b')][_0x240bb0('0x1a39')](',');_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x24ec')]=_0x2f93a2[0x0],_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x1938')]=_0x2f93a2[0x1],_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x273')]=_0x2f93a2[_0x240bb0('0x19aa')](0x2,_0x2f93a2[_0x240bb0('0x2587')])[_0x240bb0('0x19c4')](',');}break;case'amazonlex':{var _0x532b2b=_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x124b')][_0x240bb0('0x1a39')](',');_0x3878a4['set']['accesskeyid']=_0x532b2b[0x0],_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x15f9')]=_0x532b2b[0x1],_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0xa9a')]=_0x532b2b[0x2],_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x18ee')]=_0x532b2b[0x3],_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x273')]=_0x532b2b[_0x240bb0('0x19aa')](0x4,_0x532b2b[_0x240bb0('0x2587')])[_0x240bb0('0x19c4')](',');}break;case _0x240bb0('0x1b05'):{var _0x5be236=_0x3878a4[_0x240bb0('0x282c')]['appdata'][_0x240bb0('0x1a39')](',');_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x11b6')]=isNaN(_0x5be236[0x0])?_0x5be236[0x0]:parseInt(_0x5be236[0x0],0xa),_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0xb37')]=_0x5be236['slice'](0x1,_0x5be236['length'])[_0x240bb0('0x19c4')](',');}break;case _0x240bb0('0x1402'):_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0xb37')]=_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x124b')];break;case _0x240bb0('0x282c'):_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x25d6')]=_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x124b')][_0x240bb0('0x1a39')]('=')[0x0],_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x12f4')]=_0x3878a4[_0x240bb0('0x282c')]['appdata'][_0x240bb0('0x1a39')]('=')[0x1];break;case'agi':_0x3878a4['set'][_0x240bb0('0x24b9')]=_0x3878a4[_0x240bb0('0x282c')]['appdata'];break;default:{var _0x18be33=_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x124b')]['split']('=');_0x3878a4[_0x240bb0('0x282c')]['name']=_0x51538b()[_0x240bb0('0x116b')](_0x18be33[0x0])?_0x18be33[0x0]:isNaN(_0x18be33[0x0])?_0x18be33[0x0]:parseInt(_0x18be33[0x0],0xa),_0x3878a4['set']['value']=_0x51538b()['isEmpty'](_0x18be33[0x1])?_0x18be33[0x1]:isNaN(_0x18be33[0x1])?_0x18be33[0x1]:parseInt(_0x18be33[0x1],0xa);}break;}else{}_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x6c8')]&&_0x3878a4['set'][_0x240bb0('0x6c8')][_0x240bb0('0xcf6')]()==='outbound'&&_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0xe6d')][_0x240bb0('0xcf6')]()===_0x240bb0('0x1e7f')&&(_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x1b8f')]=_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x1a46')]?_0x3878a4[_0x240bb0('0x282c')]['phone'][_0x240bb0('0x1a39')]('$')[0x0]:undefined,_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0xeed')]=_0x3878a4[_0x240bb0('0x282c')][_0x240bb0('0x514')]?_0x240bb0('0x23d8')+_0x3878a4['set'][_0x240bb0('0x514')]:undefined);_0x3878a4['saveInboundRouteApp']=_0x141ff6,_0x3878a4[_0x240bb0('0x2023')]=_0x18241e,_0xc5f507[_0x240bb0('0x26e8')]('admin')?_0x2357f3['variable'][_0x240bb0('0x2122')]({'fields':_0x240bb0('0x17fe'),'sort':'name','nolimit':_0x240bb0('0x1c5c')})['$promise']['then'](function(_0x13223e){var _0x5c2e19=_0x240bb0;_0x3878a4[_0x5c2e19('0x147e')]=_0x13223e[_0x5c2e19('0x580')]||[];})[_0x240bb0('0x253d')](function(_0x2ff8e9){var _0xf63451=_0x240bb0;_0x4b6b1b[_0xf63451('0x187f')]({'title':_0x2ff8e9[_0xf63451('0x2fa')]?_0xf63451('0x16c2')+_0x2ff8e9[_0xf63451('0x2fa')]+_0xf63451('0x169e')+_0x2ff8e9[_0xf63451('0x24df')]:_0xf63451('0x18e0'),'msg':_0x2ff8e9[_0xf63451('0x10fd')]?JSON[_0xf63451('0xa48')](_0x2ff8e9[_0xf63451('0x10fd')]):_0x2ff8e9[_0xf63451('0x684')]()});}):_0x2357f3[_0x240bb0('0x14e7')][_0x240bb0('0x2122')]({'fields':'id,name','sort':_0x240bb0('0x25d6'),'nolimit':_0x240bb0('0x1c5c')})[_0x240bb0('0x1dc2')][_0x240bb0('0xaa5')](function(_0x16b372){var _0xa8fb68=_0x240bb0;_0x3878a4[_0xa8fb68('0x147e')]=_0x16b372[_0xa8fb68('0x580')]||[];})[_0x240bb0('0xaa5')](function(){var _0x4536ac=_0x240bb0;return _0x2357f3[_0x4536ac('0x1a50')][_0x4536ac('0x2122')]({'userProfileId':_0x3878a4[_0x4536ac('0x7fc')][_0x4536ac('0x2168')],'sectionId':0x3f4})[_0x4536ac('0x1dc2')];})[_0x240bb0('0xaa5')](function(_0xb248f3){var _0x115182=_0x240bb0,_0x3c05f5=_0xb248f3&&_0xb248f3[_0x115182('0x580')]?_0xb248f3[_0x115182('0x580')][0x0]:null;if(!_0x3c05f5){var _0x861396=[],_0x1aaaf8=null;_0x3878a4['set']&&(_0x1aaaf8=_0x51538b()[_0x115182('0xe9e')](_0x3878a4[_0x115182('0x147e')],{'name':_0x3878a4[_0x115182('0x282c')]['name']}));for(var _0x568927=0x0;_0x568927<_0x3878a4[_0x115182('0x147e')][_0x115182('0x2587')];_0x568927++){_0x1aaaf8&&_0x3878a4[_0x115182('0x147e')][_0x568927]['id']===_0x1aaaf8['id']&&(_0x3878a4[_0x115182('0x147e')][_0x568927][_0x115182('0x12eb')]=![],_0x861396['push'](_0x3878a4[_0x115182('0x147e')][_0x568927]));}_0x3878a4[_0x115182('0x147e')]=_0x861396;}else{if(!_0x3c05f5['autoAssociation'])return _0x2357f3[_0x115182('0x249a')]['get']({'sectionId':_0x3c05f5['id']})[_0x115182('0x1dc2')][_0x115182('0xaa5')](function(_0x260275){var _0x55774a=_0x115182,_0x11d24e=_0x51538b()[_0x55774a('0x1246')](_0x260275[_0x55774a('0x580')],function(_0x2c55fe){var _0x19f360=_0x55774a;return _0x51538b()['find'](_0x3878a4['variables'],{'id':_0x2c55fe[_0x19f360('0xbcd')]});}),_0x1a3ff9=null;_0x3878a4[_0x55774a('0x282c')]&&(_0x1a3ff9=_0x51538b()[_0x55774a('0xe9e')](_0x3878a4[_0x55774a('0x147e')],{'name':_0x3878a4[_0x55774a('0x282c')]['name']}));if(_0x1a3ff9&&!_0x51538b()['some'](_0x11d24e,['id',_0x1a3ff9['id']])){var _0x1fcbfe=_0x51538b()[_0x55774a('0xe9e')](_0x3878a4[_0x55774a('0x147e')],{'id':_0x1a3ff9['id']});_0x1fcbfe[_0x55774a('0x12eb')]=![],_0x11d24e[_0x55774a('0x1599')](_0x1fcbfe);}_0x3878a4[_0x55774a('0x147e')]=_0x11d24e;});}})['catch'](function(_0x6c59b7){var _0x585ad7=_0x240bb0;_0x4b6b1b[_0x585ad7('0x187f')]({'title':_0x6c59b7[_0x585ad7('0x2fa')]?_0x585ad7('0x16c2')+_0x6c59b7[_0x585ad7('0x2fa')]+_0x585ad7('0x169e')+_0x6c59b7['statusText']:'SYSTEM:GETvariables','msg':_0x6c59b7[_0x585ad7('0x10fd')]?JSON[_0x585ad7('0xa48')](_0x6c59b7[_0x585ad7('0x10fd')]):_0x6c59b7['toString']()});});function _0x141ff6(){var _0x2e386f=_0x240bb0;_0x3878a4[_0x2e386f('0x4c6')]=[];var _0x4657e4=[];_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x6c8')]&&_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x6c8')][_0x2e386f('0xcf6')]()===_0x2e386f('0x19d1')&&_0x3878a4['set']['appType']===_0x2e386f('0x8da')&&(_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x1a46')]=_0x5baba4[_0x2e386f('0x888')]?(_0x3878a4[_0x2e386f('0x282c')]['prefix']||'')+_0x2e386f('0x117e')+_0x5baba4[_0x2e386f('0x888')]+'}':(_0x3878a4[_0x2e386f('0x282c')]['prefix']||'')+_0x2e386f('0x1f87'),_0x5baba4[_0x2e386f('0x1e0f')]!==_0x2e386f('0x117')?_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x1b36')][_0x2e386f('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x1b36')]+=_0x2e386f('0x266a')):_0x3878a4[_0x2e386f('0x282c')]['options']=_0x3878a4[_0x2e386f('0x282c')]['options'][_0x2e386f('0x170d')](_0x2e386f('0x266a'),''));if(_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0xe6d')]&&_0x3878a4['set'][_0x2e386f('0xe6d')]===_0x2e386f('0x113b')){}else switch((_0x3878a4['set'][_0x2e386f('0x9eb')]||_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0xe6d')])['toLowerCase']()){case _0x2e386f('0x282c'):_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x124b')]=_0x3878a4['set'][_0x2e386f('0x25d6')]+'='+_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x12f4')];break;case _0x2e386f('0x113b'):break;default:_0x4657e4[0x0]=_0x3878a4['set'][_0x2e386f('0x25d6')],_0x4657e4[0x1]=_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x12f4')],_0x3878a4[_0x2e386f('0x282c')][_0x2e386f('0x124b')]=_0x4657e4['join']('=');}_0x18241e(_0x3878a4[_0x2e386f('0x282c')]);}function _0x18241e(_0x148e36){var _0x3ddd20=_0x240bb0;_0x4363db[_0x3ddd20('0x1120')](_0x148e36);}}const _0x541418=_0x5aea20;_0x529af5[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1790'),_0x1a8446('0x13b5'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x529af5(_0x1440c8,_0x3346c5,_0x3bf15f,_0x43f3c7,_0xf82a2,_0x577a8e,_0x7a892a,_0x3dd950){var _0x50f947=_0x1a8446,_0x1fbf1e=this;_0x1fbf1e[_0x50f947('0x7fc')]=_0x7a892a[_0x50f947('0xacc')](),_0x1fbf1e[_0x50f947('0x4c6')]=[],_0x1fbf1e[_0x50f947('0x110a')]=_0x50f947('0x484')+(_0x43f3c7[_0x50f947('0xe6d')]||_0x43f3c7[_0x50f947('0x9eb')])[_0x50f947('0x1d08')](),_0x1fbf1e[_0x50f947('0x1ffe')]=angular[_0x50f947('0x20a')](_0x43f3c7),_0x1fbf1e[_0x50f947('0xada')]=_0x3dd950,_0x1fbf1e[_0x50f947('0x9f0')]={};if(_0x1fbf1e['voicemail'][_0x50f947('0x124b')])switch(_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0xe6d')]?_0x1fbf1e[_0x50f947('0x1ffe')]['appType'][_0x50f947('0xcf6')]():_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x9eb')]['toLowerCase']()){case _0x50f947('0x113b'):break;case _0x50f947('0x67c'):{var _0x58cef0=_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x124b')][_0x50f947('0x1a39')](',');_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x24ec')]=_0x58cef0[0x0],_0x1fbf1e[_0x50f947('0x1ffe')]['language']=_0x58cef0[0x1],_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x273')]=_0x58cef0['slice'](0x2,_0x58cef0['length'])[_0x50f947('0x19c4')](',');}break;case _0x50f947('0x3f5'):{var _0x475bc3=_0x1fbf1e['voicemail'][_0x50f947('0x124b')][_0x50f947('0x1a39')](',');_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0xc07')]=_0x475bc3[0x0],_0x1fbf1e['voicemail'][_0x50f947('0x15f9')]=_0x475bc3[0x1],_0x1fbf1e[_0x50f947('0x1ffe')]['lexregion']=_0x475bc3[0x2],_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x18ee')]=_0x475bc3[0x3],_0x1fbf1e['voicemail'][_0x50f947('0x273')]=_0x475bc3[_0x50f947('0x19aa')](0x4,_0x475bc3[_0x50f947('0x2587')])[_0x50f947('0x19c4')](',');}break;case _0x50f947('0x1b05'):{var _0x32f1e0=_0x1fbf1e[_0x50f947('0x1ffe')]['appdata'][_0x50f947('0x1a39')](',');_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x11b6')]=isNaN(_0x32f1e0[0x0])?_0x32f1e0[0x0]:parseInt(_0x32f1e0[0x0],0xa),_0x1fbf1e['voicemail'][_0x50f947('0xb37')]=_0x32f1e0[_0x50f947('0x19aa')](0x1,_0x32f1e0['length'])[_0x50f947('0x19c4')](',');}break;case'message':_0x1fbf1e['voicemail'][_0x50f947('0xb37')]=_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x124b')];break;case _0x50f947('0x282c'):_0x1fbf1e[_0x50f947('0x1ffe')]['name']=_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x124b')][_0x50f947('0x1a39')]('=')[0x0],_0x1fbf1e['voicemail']['value']=_0x1fbf1e['voicemail'][_0x50f947('0x124b')][_0x50f947('0x1a39')]('=')[0x1];break;case _0x50f947('0x2067'):_0x1fbf1e['voicemail'][_0x50f947('0x24b9')]=_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x124b')];break;default:{var _0x5f5ad7=_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x124b')]['split'](',');_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x2264')]=_0x51538b()[_0x50f947('0x116b')](_0x5f5ad7[0x0])?_0x5f5ad7[0x0]:isNaN(_0x5f5ad7[0x0])?_0x5f5ad7[0x0]:parseInt(_0x5f5ad7[0x0],0xa),_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x1b36')]=_0x51538b()['isEmpty'](_0x5f5ad7[0x1])?_0x5f5ad7[0x1]:isNaN(_0x5f5ad7[0x1])?_0x5f5ad7[0x1]:parseInt(_0x5f5ad7[0x1],0xa);}break;}else{}_0x1fbf1e['voicemail'][_0x50f947('0x6c8')]&&_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x6c8')][_0x50f947('0xcf6')]()==='outbound'&&_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0xe6d')][_0x50f947('0xcf6')]()==='outbounddial'&&(_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x1b8f')]=_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x1a46')]?_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x1a46')][_0x50f947('0x1a39')]('$')[0x0]:undefined,_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0xeed')]=_0x1fbf1e[_0x50f947('0x1ffe')][_0x50f947('0x514')]?'CALLERID(all)='+_0x1fbf1e['voicemail'][_0x50f947('0x514')]:undefined);_0x1fbf1e[_0x50f947('0x2559')]=_0x3e3be8,_0x1fbf1e[_0x50f947('0x2023')]=_0x110ad4,_0x7a892a[_0x50f947('0x26e8')](_0x50f947('0x178b'))?_0x577a8e[_0x50f947('0x2264')][_0x50f947('0x2122')]({'fields':'id,mailbox','sort':_0x50f947('0x11cb'),'nolimit':_0x50f947('0x1c5c')})[_0x50f947('0x1dc2')]['then'](function(_0x52477b){var _0x3cfd4a=_0x50f947;_0x1fbf1e[_0x3cfd4a('0x281')]=_0x52477b[_0x3cfd4a('0x580')]||[];})[_0x50f947('0x253d')](function(_0x27a084){var _0x3a42a0=_0x50f947;_0x3bf15f[_0x3a42a0('0x187f')]({'title':_0x27a084[_0x3a42a0('0x2fa')]?_0x3a42a0('0x16c2')+_0x27a084[_0x3a42a0('0x2fa')]+_0x3a42a0('0x169e')+_0x27a084['statusText']:_0x3a42a0('0xc70'),'msg':_0x27a084[_0x3a42a0('0x10fd')]?JSON['stringify'](_0x27a084[_0x3a42a0('0x10fd')]):_0x27a084[_0x3a42a0('0x684')]()});}):_0x577a8e[_0x50f947('0x2264')][_0x50f947('0x2122')]({'fields':_0x50f947('0x1a67'),'sort':_0x50f947('0x11cb'),'nolimit':'true'})[_0x50f947('0x1dc2')][_0x50f947('0xaa5')](function(_0x189b0f){var _0x30d31d=_0x50f947;_0x1fbf1e['voiceMails']=_0x189b0f[_0x30d31d('0x580')]||[];})[_0x50f947('0xaa5')](function(){var _0x332a7d=_0x50f947;return _0x577a8e['userProfileSection']['get']({'userProfileId':_0x1fbf1e['currentUser'][_0x332a7d('0x2168')],'sectionId':0x196})[_0x332a7d('0x1dc2')];})[_0x50f947('0xaa5')](function(_0x41c299){var _0x25f0a5=_0x50f947,_0x53a364=_0x41c299&&_0x41c299[_0x25f0a5('0x580')]?_0x41c299[_0x25f0a5('0x580')][0x0]:null;if(!_0x53a364){var _0x395911=[],_0x54d77b=null;_0x1fbf1e[_0x25f0a5('0x1ffe')]&&(_0x54d77b=_0x51538b()[_0x25f0a5('0xe9e')](_0x1fbf1e[_0x25f0a5('0x281')],{'mailbox':_0x1fbf1e[_0x25f0a5('0x1ffe')][_0x25f0a5('0x2264')]}));for(var _0x123522=0x0;_0x123522<_0x1fbf1e[_0x25f0a5('0x281')][_0x25f0a5('0x2587')];_0x123522++){_0x54d77b&&_0x1fbf1e[_0x25f0a5('0x281')][_0x123522]['id']===_0x54d77b['id']&&(_0x1fbf1e['voiceMails'][_0x123522][_0x25f0a5('0x12eb')]=![],_0x395911[_0x25f0a5('0x1599')](_0x1fbf1e[_0x25f0a5('0x281')][_0x123522]));}_0x1fbf1e[_0x25f0a5('0x281')]=_0x395911;}else{if(!_0x53a364[_0x25f0a5('0x26cc')])return _0x577a8e[_0x25f0a5('0x249a')][_0x25f0a5('0x2122')]({'sectionId':_0x53a364['id']})[_0x25f0a5('0x1dc2')][_0x25f0a5('0xaa5')](function(_0x1ec4db){var _0x370790=_0x25f0a5,_0x4f2a8c=_0x51538b()[_0x370790('0x1246')](_0x1ec4db[_0x370790('0x580')],function(_0x27f327){var _0x3dc059=_0x370790;return _0x51538b()[_0x3dc059('0xe9e')](_0x1fbf1e[_0x3dc059('0x281')],{'id':_0x27f327[_0x3dc059('0xbcd')]});}),_0x58c194=null;_0x1fbf1e[_0x370790('0x1ffe')]&&(_0x58c194=_0x51538b()[_0x370790('0xe9e')](_0x1fbf1e[_0x370790('0x281')],{'mailbox':_0x1fbf1e[_0x370790('0x1ffe')][_0x370790('0x2264')]}));if(_0x58c194&&!_0x51538b()[_0x370790('0x2c2')](_0x4f2a8c,['id',_0x58c194['id']])){var _0x224ef5=_0x51538b()['find'](_0x1fbf1e[_0x370790('0x281')],{'id':_0x58c194['id']});_0x224ef5[_0x370790('0x12eb')]=![],_0x4f2a8c['push'](_0x224ef5);}_0x1fbf1e[_0x370790('0x281')]=_0x4f2a8c;});}})[_0x50f947('0x253d')](function(_0x468e5c){var _0x45e278=_0x50f947;_0x3bf15f[_0x45e278('0x187f')]({'title':_0x468e5c[_0x45e278('0x2fa')]?_0x45e278('0x16c2')+_0x468e5c[_0x45e278('0x2fa')]+_0x45e278('0x169e')+_0x468e5c[_0x45e278('0x24df')]:_0x45e278('0xf5'),'msg':_0x468e5c[_0x45e278('0x10fd')]?JSON['stringify'](_0x468e5c[_0x45e278('0x10fd')]):_0x468e5c[_0x45e278('0x684')]()});});function _0x3e3be8(){var _0x58997a=_0x50f947;_0x1fbf1e[_0x58997a('0x4c6')]=[];var _0x166bf2=[];_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x6c8')]&&_0x1fbf1e['voicemail'][_0x58997a('0x6c8')][_0x58997a('0xcf6')]()==='outbound'&&_0x1fbf1e['voicemail'][_0x58997a('0xe6d')]===_0x58997a('0x8da')&&(_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x1a46')]=_0xf82a2[_0x58997a('0x888')]?(_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x1b8f')]||'')+_0x58997a('0x117e')+_0xf82a2['cutdigits']+'}':(_0x1fbf1e['voicemail'][_0x58997a('0x1b8f')]||'')+_0x58997a('0x1f87'),_0xf82a2[_0x58997a('0x1e0f')]!==_0x58997a('0x117')?_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x1b36')]['indexOf'](_0x58997a('0x266a'))<0x0&&(_0x1fbf1e['voicemail'][_0x58997a('0x1b36')]+=_0x58997a('0x266a')):_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x1b36')]=_0x1fbf1e['voicemail'][_0x58997a('0x1b36')][_0x58997a('0x170d')](_0x58997a('0x266a'),''));if(_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0xe6d')]&&_0x1fbf1e[_0x58997a('0x1ffe')]['appType']===_0x58997a('0x113b')){}else switch((_0x1fbf1e['voicemail']['app']||_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0xe6d')])['toLowerCase']()){case _0x58997a('0x282c'):_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x124b')]=_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x25d6')]+'='+_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x12f4')];break;case'custom':break;default:_0x166bf2[0x0]=_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x2264')],_0x166bf2[0x1]=_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x1b36')],_0x1fbf1e[_0x58997a('0x1ffe')][_0x58997a('0x124b')]=_0x166bf2[_0x58997a('0x19c4')](',');}_0x110ad4(_0x1fbf1e[_0x58997a('0x1ffe')]);}function _0x110ad4(_0x17a7e3){var _0x321eaa=_0x50f947;_0x1440c8[_0x321eaa('0x1120')](_0x17a7e3);}}const _0xeecb6d=_0x529af5;_0xb5f808[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x13b5'),'userProfileSection'];function _0xb5f808(_0x3f1424,_0x546bc7,_0x11f629,_0x25db28,_0x3a86f8,_0xfe3f31,_0x4ab88a,_0x2a92e0,_0x2615f3,_0x205a79,_0x104363,_0x5c7b45){var _0x4d40b3=_0x1a8446,_0x23f791=this;_0x23f791[_0x4d40b3('0x7fc')]=_0x205a79['getCurrentUser'](),_0x23f791[_0x4d40b3('0x1202')]=_0xfe3f31,_0x23f791['setting']=_0x4ab88a,_0x23f791[_0x4d40b3('0x1d53')]=_0x23f791[_0x4d40b3('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x23f791[_0x4d40b3('0x18cc')]=_0x546bc7['protocol']()+_0x4d40b3('0x356')+_0x546bc7['host'](),_0x23f791['inboundroute']=_0x104363||_0x3f1424[_0x4d40b3('0x25cf')][_0x4d40b3('0x13b5')]||{},_0x23f791[_0x4d40b3('0x1a50')]=_0x5c7b45&&_0x5c7b45[_0x4d40b3('0xd15')]==0x1?_0x5c7b45[_0x4d40b3('0x580')][0x0]:null,_0x23f791[_0x4d40b3('0xada')]=_0x205a79[_0x4d40b3('0xffd')](_0x23f791[_0x4d40b3('0x1a50')]?_0x23f791[_0x4d40b3('0x1a50')][_0x4d40b3('0xada')]:null),_0x23f791[_0x4d40b3('0x9f0')]={},_0x23f791['selectedTab']=_0x3f1424[_0x4d40b3('0x25cf')][_0x4d40b3('0x25c2')]||0x0,_0x23f791['alert']=_0x2615f3['info'],_0x23f791[_0x4d40b3('0x245a')]=_0x4d2a82,_0x23f791[_0x4d40b3('0x1737')]=_0x4cbb76,_0x205a79[_0x4d40b3('0x26e8')](_0x4d40b3('0x178b'))?_0x2a92e0[_0x4d40b3('0x68c')]['get']({'fields':_0x4d40b3('0x17fe'),'sort':_0x4d40b3('0x25d6'),'nolimit':_0x4d40b3('0x1c5c')})['$promise'][_0x4d40b3('0xaa5')](function(_0x1863e2){var _0x1d2a12=_0x4d40b3;_0x23f791[_0x1d2a12('0xdc5')]=_0x1863e2['rows']||[];})[_0x4d40b3('0x253d')](function(_0x2d4510){var _0x2b9b4b=_0x4d40b3;_0x2615f3[_0x2b9b4b('0x187f')]({'title':_0x2d4510[_0x2b9b4b('0x2fa')]?_0x2b9b4b('0x16c2')+_0x2d4510['status']+_0x2b9b4b('0x169e')+_0x2d4510[_0x2b9b4b('0x24df')]:'SYSTEM:GET_CONTEXTS','msg':_0x2d4510[_0x2b9b4b('0x10fd')]?JSON[_0x2b9b4b('0xa48')](_0x2d4510[_0x2b9b4b('0x10fd')]):_0x2d4510['toString']()});}):_0x2a92e0[_0x4d40b3('0x68c')][_0x4d40b3('0x2122')]({'fields':_0x4d40b3('0x17fe'),'sort':'name','nolimit':_0x4d40b3('0x1c5c')})[_0x4d40b3('0x1dc2')]['then'](function(_0x295f23){var _0x92b30b=_0x4d40b3;_0x23f791[_0x92b30b('0xdc5')]=_0x295f23[_0x92b30b('0x580')]||[];})[_0x4d40b3('0xaa5')](function(){var _0x56bf47=_0x4d40b3;return _0x2a92e0[_0x56bf47('0x1a50')][_0x56bf47('0x2122')]({'userProfileId':_0x23f791[_0x56bf47('0x7fc')]['userProfileId'],'sectionId':0x195})[_0x56bf47('0x1dc2')];})[_0x4d40b3('0xaa5')](function(_0x47b969){var _0x971987=_0x4d40b3,_0x3ed227=_0x47b969&&_0x47b969[_0x971987('0x580')]?_0x47b969[_0x971987('0x580')][0x0]:null;if(!_0x3ed227)return _0x2a92e0[_0x971987('0x68c')][_0x971987('0x2122')]({'fields':_0x971987('0x17fe'),'sort':_0x971987('0x25d6'),'nolimit':_0x971987('0x1c5c'),'defaultEntry':0x1})['$promise'][_0x971987('0xaa5')](function(_0x33787e){var _0x3fcfbb=_0x971987;_0x23f791[_0x3fcfbb('0xdc5')]=_0x33787e['rows']||[];});else{if(!_0x3ed227[_0x971987('0x26cc')])return _0x2a92e0[_0x971987('0x249a')]['get']({'sectionId':_0x3ed227['id']})[_0x971987('0x1dc2')][_0x971987('0xaa5')](function(_0x17c4f1){var _0x2fe444=_0x971987,_0x313cef=_0x51538b()[_0x2fe444('0x1246')](_0x17c4f1['rows'],function(_0x34fb4d){var _0x1fcaaf=_0x2fe444;return _0x51538b()[_0x1fcaaf('0xe9e')](_0x23f791['contexts'],{'id':_0x34fb4d[_0x1fcaaf('0xbcd')]});}),_0x3f2907=null;_0x23f791[_0x2fe444('0x13b5')]&&(_0x3f2907=_0x51538b()[_0x2fe444('0xe9e')](_0x23f791[_0x2fe444('0xdc5')],{'name':_0x23f791[_0x2fe444('0x13b5')][_0x2fe444('0x19cd')]}));if(_0x3f2907&&!_0x51538b()[_0x2fe444('0x2c2')](_0x313cef,['id',_0x3f2907['id']])){var _0x55e988=_0x51538b()[_0x2fe444('0xe9e')](_0x23f791[_0x2fe444('0xdc5')],{'id':_0x3f2907['id']});_0x55e988[_0x2fe444('0x12eb')]=![],_0x313cef[_0x2fe444('0x1599')](_0x55e988);}_0x23f791[_0x2fe444('0xdc5')]=_0x313cef;});}})[_0x4d40b3('0x253d')](function(_0x4991c2){var _0x13a4c2=_0x4d40b3;_0x2615f3[_0x13a4c2('0x187f')]({'title':_0x4991c2['status']?_0x13a4c2('0x16c2')+_0x4991c2[_0x13a4c2('0x2fa')]+_0x13a4c2('0x169e')+_0x4991c2[_0x13a4c2('0x24df')]:_0x13a4c2('0x2f7'),'msg':_0x4991c2[_0x13a4c2('0x10fd')]?JSON[_0x13a4c2('0xa48')](_0x4991c2[_0x13a4c2('0x10fd')]):_0x4991c2[_0x13a4c2('0x684')]()});});function _0x4d2a82(){var _0x1a5051=_0x4d40b3;_0x3f1424['go']('app.voice.inboundroutes',{},{'reload':_0x1a5051('0x1c1c')});}function _0x4cbb76(){var _0x1cef6e=_0x4d40b3;_0x2a92e0[_0x1cef6e('0x1361')][_0x1cef6e('0x264e')]({'id':_0x23f791['inboundroute']['id']},_0x23f791[_0x1cef6e('0x13b5')])[_0x1cef6e('0x1dc2')]['then'](function(){var _0x280044=_0x1cef6e;_0x2615f3['success']({'title':'InboundRoute\x20updated!','msg':_0x23f791[_0x280044('0x13b5')][_0x280044('0x25d6')]?_0x23f791[_0x280044('0x13b5')][_0x280044('0x25d6')]+_0x280044('0x1734'):''});})[_0x1cef6e('0x253d')](function(_0x23056c){var _0x350fa3=_0x1cef6e;_0x2615f3[_0x350fa3('0x187f')]({'title':_0x23056c[_0x350fa3('0x2fa')]?_0x350fa3('0x16c2')+_0x23056c[_0x350fa3('0x2fa')]+_0x350fa3('0x169e')+_0x23056c[_0x350fa3('0x24df')]:'SYSTEM:GETvoiceExtension','msg':_0x23056c[_0x350fa3('0x10fd')]?JSON[_0x350fa3('0xa48')](_0x23056c['data']):_0x23056c[_0x350fa3('0x684')]()});});}}const _0x4e9ceb=_0xb5f808,_0x9de863=_0x4fb511['p']+_0x1a8446('0x16db');_0x3de4e7[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),'$translate','inboundroutes',_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting'];function _0x3de4e7(_0x4a58ff,_0x597554,_0x26967e,_0x1d13d2,_0x3a458b,_0xcae384,_0x132123,_0x4c245c,_0x11f548,_0x4ba932,_0x353f6c,_0x20bbe4,_0x7eecdf,_0x270ac9,_0xee92e4,_0x5c0d65,_0x220ebf){var _0x1ec2ee=_0x1a8446,_0x2ad0aa=this;_0x2ad0aa[_0x1ec2ee('0x1202')]=_0x5c0d65,_0x2ad0aa[_0x1ec2ee('0x143f')]=_0x220ebf,_0x2ad0aa[_0x1ec2ee('0x7fc')]=_0xee92e4[_0x1ec2ee('0xacc')](),_0x2ad0aa[_0x1ec2ee('0x2068')]=_0x11f548||{'count':0x0,'rows':[]},_0x2ad0aa[_0x1ec2ee('0x1e97')]=_0x4ba932,_0x2ad0aa['userProfileSection']=_0x353f6c&&_0x353f6c['count']==0x1?_0x353f6c[_0x1ec2ee('0x580')][0x0]:null,_0x2ad0aa[_0x1ec2ee('0xada')]=_0xee92e4[_0x1ec2ee('0xffd')](_0x2ad0aa[_0x1ec2ee('0x1a50')]?_0x2ad0aa[_0x1ec2ee('0x1a50')][_0x1ec2ee('0xada')]:null),_0x2ad0aa[_0x1ec2ee('0x12b6')]=_0x1ec2ee('0x2068'),_0x2ad0aa[_0x1ec2ee('0x164')]='',_0x2ad0aa['listOrderAsc']=null,_0x2ad0aa[_0x1ec2ee('0x1a7')]=[],_0x2ad0aa[_0x1ec2ee('0x582')]={'fields':_0x1ec2ee('0x550'),'type':'inbound','sort':'-updatedAt','VoiceExtensionId':_0x1ec2ee('0x1ed9'),'limit':0xa,'page':0x1},_0x2ad0aa[_0x1ec2ee('0x1927')]=_0x32da4a,_0x2ad0aa[_0x1ec2ee('0x271')]=_0x1c04cd,_0x2ad0aa[_0x1ec2ee('0xe10')]=_0x46c0fc,_0x2ad0aa['getInboundRoutes']=_0x3b9900,_0x2ad0aa[_0x1ec2ee('0xe8f')]=_0x40e4a4,_0x2ad0aa[_0x1ec2ee('0x39')]=_0x352f2c,_0x2ad0aa[_0x1ec2ee('0x7d5')]=_0x34b195,_0x2ad0aa[_0x1ec2ee('0x1d6a')]=_0x1f2daa,_0x2ad0aa['deselectInboundRoutes']=_0x5d5a81,_0x2ad0aa['selectAllInboundRoutes']=_0x582fa9,_0xee92e4[_0x1ec2ee('0x26e8')]('admin')?_0x20bbe4[_0x1ec2ee('0x68c')]['get']({'fields':'id,name','sort':'name','nolimit':_0x1ec2ee('0x1c5c')})['$promise'][_0x1ec2ee('0xaa5')](function(_0x320193){var _0x4aa059=_0x1ec2ee;_0x2ad0aa[_0x4aa059('0xdc5')]=_0x320193['rows']||[];})['catch'](function(_0x48814e){var _0x9a6e84=_0x1ec2ee;_0x270ac9['error']({'title':_0x48814e[_0x9a6e84('0x2fa')]?'API:'+_0x48814e[_0x9a6e84('0x2fa')]+_0x9a6e84('0x169e')+_0x48814e['statusText']:_0x9a6e84('0x1393'),'msg':_0x48814e[_0x9a6e84('0x10fd')]?JSON[_0x9a6e84('0xa48')](_0x48814e[_0x9a6e84('0x10fd')]):_0x48814e[_0x9a6e84('0x684')]()});}):_0x20bbe4[_0x1ec2ee('0x68c')][_0x1ec2ee('0x2122')]({'fields':_0x1ec2ee('0x17fe'),'sort':'name','nolimit':_0x1ec2ee('0x1c5c')})[_0x1ec2ee('0x1dc2')][_0x1ec2ee('0xaa5')](function(_0x595ddd){_0x2ad0aa['contexts']=_0x595ddd['rows']||[];})[_0x1ec2ee('0xaa5')](function(){var _0x115f20=_0x1ec2ee;return _0x20bbe4[_0x115f20('0x1a50')][_0x115f20('0x2122')]({'userProfileId':_0x2ad0aa[_0x115f20('0x7fc')]['userProfileId'],'sectionId':0x195})['$promise'];})[_0x1ec2ee('0xaa5')](function(_0x11e031){var _0x43bf3f=_0x1ec2ee,_0x5a4bb9=_0x11e031&&_0x11e031[_0x43bf3f('0x580')]?_0x11e031['rows'][0x0]:null;if(!_0x5a4bb9)return _0x20bbe4['voiceContext'][_0x43bf3f('0x2122')]({'fields':_0x43bf3f('0x17fe'),'sort':_0x43bf3f('0x25d6'),'nolimit':_0x43bf3f('0x1c5c'),'defaultEntry':0x1})[_0x43bf3f('0x1dc2')][_0x43bf3f('0xaa5')](function(_0x1f0a8f){var _0x37a591=_0x43bf3f;_0x2ad0aa[_0x37a591('0xdc5')]=_0x1f0a8f[_0x37a591('0x580')]||[];});else{if(!_0x5a4bb9[_0x43bf3f('0x26cc')])return _0x20bbe4[_0x43bf3f('0x249a')][_0x43bf3f('0x2122')]({'sectionId':_0x5a4bb9['id']})[_0x43bf3f('0x1dc2')][_0x43bf3f('0xaa5')](function(_0x25e083){var _0x1751c6=_0x43bf3f,_0x2f5f92=_0x51538b()[_0x1751c6('0x1246')](_0x25e083['rows'],function(_0x44e17f){var _0x247cdb=_0x1751c6;return _0x51538b()[_0x247cdb('0xe9e')](_0x2ad0aa[_0x247cdb('0xdc5')],{'id':_0x44e17f[_0x247cdb('0xbcd')]});}),_0x43bcde=null;_0x2ad0aa[_0x1751c6('0x13b5')]&&(_0x43bcde=_0x51538b()[_0x1751c6('0xe9e')](_0x2ad0aa[_0x1751c6('0xdc5')],{'name':_0x2ad0aa[_0x1751c6('0x13b5')]['context']}));if(_0x43bcde&&!_0x51538b()[_0x1751c6('0x2c2')](_0x2f5f92,['id',_0x43bcde['id']])){var _0xecfbc3=_0x51538b()[_0x1751c6('0xe9e')](_0x2ad0aa[_0x1751c6('0xdc5')],{'id':_0x43bcde['id']});_0xecfbc3['canSelect']=![],_0x2f5f92['push'](_0xecfbc3);}_0x2ad0aa[_0x1751c6('0xdc5')]=_0x2f5f92;});}})[_0x1ec2ee('0x253d')](function(_0x4abae0){var _0x2f5aef=_0x1ec2ee;_0x270ac9[_0x2f5aef('0x187f')]({'title':_0x4abae0[_0x2f5aef('0x2fa')]?_0x2f5aef('0x16c2')+_0x4abae0['status']+_0x2f5aef('0x169e')+_0x4abae0[_0x2f5aef('0x24df')]:_0x2f5aef('0x2f7'),'msg':_0x4abae0['data']?JSON['stringify'](_0x4abae0['data']):_0x4abae0[_0x2f5aef('0x684')]()});});function _0x32da4a(_0x4f0440){var _0x38623f=_0x1ec2ee;_0x26967e['go'](_0x38623f('0xdd4'),{'id':_0x4f0440['id'],'inboundroute':_0x4f0440,'crudPermissions':_0x2ad0aa[_0x38623f('0xada')]});}function _0x1c04cd(_0x534287,_0x4ff475){var _0x3e9e6c=_0x1ec2ee,_0xc0c32d=_0x3a458b[_0x3e9e6c('0x281e')]()[_0x3e9e6c('0x110a')](_0x3e9e6c('0x88d')+_0x51538b()[_0x3e9e6c('0x196a')](_0x3e9e6c('0x13b5'))+'?')[_0x3e9e6c('0x102e')](''+(_0x534287[_0x3e9e6c('0x25d6')]||'inboundroute')+_0x3e9e6c('0x697')+_0x3e9e6c('0x210d'))['ariaLabel'](_0x3e9e6c('0x24bc'))[_0x3e9e6c('0x116d')](_0x4ff475)['ok']('OK')[_0x3e9e6c('0x2030')](_0x3e9e6c('0x2410'));_0x3a458b[_0x3e9e6c('0x1e6d')](_0xc0c32d)[_0x3e9e6c('0xaa5')](function(){_0x352f2c(_0x534287);},function(){var _0x12b6e3=_0x3e9e6c;console[_0x12b6e3('0x18d5')](_0x12b6e3('0x2410'));});}var _0x39768c=!![],_0x462fb8=0x1;_0x4a58ff['$watch'](_0x1ec2ee('0x1788'),function(_0x3a4319,_0x51d1fe){var _0x2eaff9=_0x1ec2ee;_0x39768c?_0x132123(function(){_0x39768c=![];}):(!_0x51d1fe&&(_0x462fb8=_0x2ad0aa[_0x2eaff9('0x582')][_0x2eaff9('0x41')]),_0x3a4319!==_0x51d1fe&&(_0x2ad0aa[_0x2eaff9('0x582')][_0x2eaff9('0x41')]=0x1),!_0x3a4319&&(_0x2ad0aa[_0x2eaff9('0x582')][_0x2eaff9('0x41')]=_0x462fb8),_0x2ad0aa['getInboundRoutes']());});function _0x46c0fc(_0x441396){var _0x2b40a4=_0x1ec2ee;_0x2ad0aa[_0x2b40a4('0x2068')]=_0x441396||{'count':0x0,'rows':[]};}function _0x3b9900(){var _0x47a993=_0x1ec2ee;_0x2ad0aa[_0x47a993('0x582')][_0x47a993('0x8b1')]=(_0x2ad0aa[_0x47a993('0x582')][_0x47a993('0x41')]-0x1)*_0x2ad0aa[_0x47a993('0x582')][_0x47a993('0xf4d')],_0xee92e4[_0x47a993('0x26e8')](_0x47a993('0x178b'))?_0x2ad0aa[_0x47a993('0x159a')]=_0x20bbe4[_0x47a993('0x1361')][_0x47a993('0x2122')](_0x2ad0aa[_0x47a993('0x582')],_0x46c0fc)['$promise']:(_0x2ad0aa[_0x47a993('0x582')]['id']=_0x2ad0aa['userProfile']['id'],_0x2ad0aa['query'][_0x47a993('0x224d')]=_0x47a993('0x2b6'),_0x2ad0aa[_0x47a993('0x159a')]=_0x20bbe4[_0x47a993('0x1e97')][_0x47a993('0x1cf1')](_0x2ad0aa[_0x47a993('0x582')],_0x46c0fc)['$promise']);}function _0x40e4a4(_0xea0b65,_0x75f724){var _0x1ec492=_0x1ec2ee;_0x3a458b[_0x1ec492('0x1e6d')]({'controller':_0x1ec492('0x3a4'),'controllerAs':'vm','templateUrl':_0x9de863,'parent':angular[_0x1ec492('0x1aa8')](_0xcae384['body']),'targetEvent':_0xea0b65,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x75f724,'inboundroutes':_0x2ad0aa[_0x1ec492('0x2068')][_0x1ec492('0x580')],'license':_0x2ad0aa[_0x1ec492('0x1202')],'setting':_0x2ad0aa[_0x1ec492('0x143f')],'crudPermissions':_0x2ad0aa['crudPermissions']}});}function _0x352f2c(_0x38a475){var _0x7a9cd6=_0x1ec2ee;_0x20bbe4[_0x7a9cd6('0x1361')][_0x7a9cd6('0x926')]({'id':_0x38a475['id']})[_0x7a9cd6('0x1dc2')]['then'](function(){var _0x13f895=_0x7a9cd6;_0x51538b()[_0x13f895('0xf6d')](_0x2ad0aa[_0x13f895('0x2068')]['rows'],{'id':_0x38a475['id']}),_0x2ad0aa['inboundroutes'][_0x13f895('0xd15')]-=0x1,!_0x2ad0aa['inboundroutes'][_0x13f895('0x580')]['length']&&_0x2ad0aa[_0x13f895('0xec0')](),_0x270ac9[_0x13f895('0xe10')]({'title':_0x51538b()[_0x13f895('0x196a')](_0x13f895('0x1f01'))+_0x13f895('0x8bb'),'msg':_0x38a475[_0x13f895('0x25d6')]?_0x38a475[_0x13f895('0x25d6')]+_0x13f895('0xcd9'):''});})[_0x7a9cd6('0x253d')](function(_0x37d50d){var _0x1e147c=_0x7a9cd6;if(_0x37d50d[_0x1e147c('0x10fd')]&&_0x37d50d['data'][_0x1e147c('0x4c6')]&&_0x37d50d['data']['errors']['length']){_0x2ad0aa[_0x1e147c('0x4c6')]=_0x37d50d[_0x1e147c('0x10fd')]['errors']||[{'message':_0x37d50d[_0x1e147c('0x684')](),'type':_0x1e147c('0xd25')}];for(var _0x4f6a28=0x0;_0x4f6a28<_0x37d50d['data'][_0x1e147c('0x4c6')]['length'];_0x4f6a28++){_0x270ac9[_0x1e147c('0x187f')]({'title':_0x37d50d[_0x1e147c('0x10fd')][_0x1e147c('0x4c6')][_0x4f6a28][_0x1e147c('0x6c8')],'msg':_0x37d50d[_0x1e147c('0x10fd')][_0x1e147c('0x4c6')][_0x4f6a28][_0x1e147c('0x1402')]});}}else _0x270ac9[_0x1e147c('0x187f')]({'title':_0x37d50d['status']?'API:'+_0x37d50d[_0x1e147c('0x2fa')]+_0x1e147c('0x169e')+_0x37d50d[_0x1e147c('0x24df')]:_0x1e147c('0xd25'),'msg':_0x37d50d[_0x1e147c('0x10fd')]?JSON[_0x1e147c('0xa48')](_0x37d50d[_0x1e147c('0x10fd')][_0x1e147c('0x1402')]):_0x37d50d[_0x1e147c('0x1402')]||_0x37d50d['toString']()});});}function _0x34b195(){var _0x56d70d=_0x1ec2ee,_0x29430e=angular[_0x56d70d('0x20a')](_0x2ad0aa['selectedInboundRoutes']);return _0x2ad0aa[_0x56d70d('0x1a7')]=[],_0x29430e;}function _0x1f2daa(_0x5554f5){var _0x5ebf06=_0x1ec2ee,_0x22c94=_0x3a458b[_0x5ebf06('0x281e')]()[_0x5ebf06('0x110a')](_0x5ebf06('0x1ce8'))[_0x5ebf06('0x102e')](_0x5ebf06('0x389')+_0x2ad0aa[_0x5ebf06('0x1a7')]['length']+_0x5ebf06('0x1443')+_0x5ebf06('0x210d'))[_0x5ebf06('0x5b5')]('delete\x20InboundRoutes')[_0x5ebf06('0x116d')](_0x5554f5)['ok']('OK')['cancel'](_0x5ebf06('0x2410'));_0x3a458b['show'](_0x22c94)[_0x5ebf06('0xaa5')](function(){var _0x362a9e=_0x5ebf06;_0x2ad0aa['selectedInboundRoutes'][_0x362a9e('0x15b5')](function(_0x50cee7){_0x352f2c(_0x50cee7);}),_0x2ad0aa[_0x362a9e('0x1a7')]=[];});}function _0x5d5a81(){var _0x4dde8f=_0x1ec2ee;_0x2ad0aa[_0x4dde8f('0x1a7')]=[];}function _0x582fa9(){var _0x59d918=_0x1ec2ee;_0x2ad0aa[_0x59d918('0x1a7')]=_0x2ad0aa[_0x59d918('0x2068')]['rows'];}}const _0x2183ce=_0x3de4e7;_0xc88b5e[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x147d'),_0x1a8446('0x212f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0xc88b5e(_0x1cee46,_0x126bd6,_0x44a73d,_0x57dece,_0x498cec,_0x8519a3,_0xb3b330,_0x5a3902,_0x5ab312,_0x4eea27,_0x2ec5ea,_0x5327f8,_0x3dcb68,_0x5cd1a4){var _0x5e80f7=_0x1a8446,_0x12c58c=this;_0x12c58c[_0x5e80f7('0x7fc')]=_0x2ec5ea[_0x5e80f7('0xacc')](),_0x12c58c[_0x5e80f7('0x4c6')]=[],_0x12c58c['setting']=_0x3dcb68,_0x12c58c[_0x5e80f7('0x1202')]=_0x5327f8,_0x12c58c[_0x5e80f7('0xada')]=_0x5cd1a4,_0x12c58c['hasModulePermissions']={},_0x12c58c['passwordPattern']=_0x12c58c[_0x5e80f7('0x143f')]&&_0x12c58c[_0x5e80f7('0x143f')][_0x5e80f7('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x12c58c[_0x5e80f7('0x110a')]=_0x5e80f7('0x2522'),_0x12c58c[_0x5e80f7('0x212f')]=angular[_0x5e80f7('0x20a')](_0x5ab312),_0x12c58c[_0x5e80f7('0x147d')]=_0x5a3902,_0x12c58c[_0x5e80f7('0x31a')]=![];!_0x12c58c[_0x5e80f7('0x212f')]&&(_0x12c58c['internalroute']={'appdata':_0x5e80f7('0x267'),'type':_0x5e80f7('0x1b0d'),'context':_0x5e80f7('0xde3')},_0x12c58c[_0x5e80f7('0x110a')]=_0x5e80f7('0x19f5'),_0x12c58c['newInternalRoute']=!![]);_0x12c58c[_0x5e80f7('0x1793')]=_0x9eb2e9,_0x12c58c[_0x5e80f7('0x1ffa')]=_0x4040d1,_0x12c58c[_0x5e80f7('0x83c')]=_0x183b4a,_0x12c58c[_0x5e80f7('0xc09')]=_0x1b7fe5,_0x12c58c[_0x5e80f7('0x2023')]=_0x5847ae,_0x2ec5ea[_0x5e80f7('0x26e8')](_0x5e80f7('0x178b'))?_0x4eea27[_0x5e80f7('0x68c')][_0x5e80f7('0x2122')]({'fields':'id,name','sort':'name','nolimit':_0x5e80f7('0x1c5c')})[_0x5e80f7('0x1dc2')]['then'](function(_0x1fc1c0){var _0x430996=_0x5e80f7;_0x12c58c[_0x430996('0xdc5')]=_0x1fc1c0[_0x430996('0x580')]||[];})['catch'](function(_0x469d79){var _0x35ad7f=_0x5e80f7;_0xb3b330[_0x35ad7f('0x187f')]({'title':_0x469d79[_0x35ad7f('0x2fa')]?_0x35ad7f('0x16c2')+_0x469d79[_0x35ad7f('0x2fa')]+_0x35ad7f('0x169e')+_0x469d79[_0x35ad7f('0x24df')]:_0x35ad7f('0x1393'),'msg':_0x469d79[_0x35ad7f('0x10fd')]?JSON[_0x35ad7f('0xa48')](_0x469d79['data']):_0x469d79[_0x35ad7f('0x684')]()});}):_0x4eea27[_0x5e80f7('0x68c')][_0x5e80f7('0x2122')]({'fields':_0x5e80f7('0x17fe'),'sort':_0x5e80f7('0x25d6'),'nolimit':_0x5e80f7('0x1c5c')})[_0x5e80f7('0x1dc2')][_0x5e80f7('0xaa5')](function(_0x4b074d){var _0x3acdb5=_0x5e80f7;_0x12c58c[_0x3acdb5('0xdc5')]=_0x4b074d[_0x3acdb5('0x580')]||[];})[_0x5e80f7('0xaa5')](function(){var _0x3355bf=_0x5e80f7;return _0x4eea27[_0x3355bf('0x1a50')]['get']({'userProfileId':_0x12c58c[_0x3355bf('0x7fc')][_0x3355bf('0x2168')],'sectionId':0x195})['$promise'];})[_0x5e80f7('0xaa5')](function(_0x59edd2){var _0x4d6e34=_0x5e80f7,_0x47934d=_0x59edd2&&_0x59edd2[_0x4d6e34('0x580')]?_0x59edd2[_0x4d6e34('0x580')][0x0]:null;if(!_0x47934d)return _0x4eea27[_0x4d6e34('0x68c')][_0x4d6e34('0x2122')]({'fields':_0x4d6e34('0x17fe'),'sort':_0x4d6e34('0x25d6'),'nolimit':_0x4d6e34('0x1c5c'),'defaultEntry':0x1})[_0x4d6e34('0x1dc2')][_0x4d6e34('0xaa5')](function(_0x58d0a2){var _0x1d73ee=_0x4d6e34;_0x12c58c['contexts']=_0x58d0a2[_0x1d73ee('0x580')]||[];});else{if(!_0x47934d[_0x4d6e34('0x26cc')])return _0x4eea27['userProfileResource'][_0x4d6e34('0x2122')]({'sectionId':_0x47934d['id']})[_0x4d6e34('0x1dc2')]['then'](function(_0x2733c9){var _0x415bba=_0x4d6e34,_0x4af51f=_0x51538b()[_0x415bba('0x1246')](_0x2733c9[_0x415bba('0x580')],function(_0x436ef5){var _0x1ffa11=_0x415bba;return _0x51538b()[_0x1ffa11('0xe9e')](_0x12c58c['contexts'],{'id':_0x436ef5[_0x1ffa11('0xbcd')]});}),_0x5b9eb3=null;_0x12c58c[_0x415bba('0x212f')]&&(_0x5b9eb3=_0x51538b()['find'](_0x12c58c[_0x415bba('0xdc5')],{'name':_0x12c58c['internalroute'][_0x415bba('0x19cd')]}));if(_0x5b9eb3&&!_0x51538b()[_0x415bba('0x2c2')](_0x4af51f,['id',_0x5b9eb3['id']])){var _0x61996d=_0x51538b()[_0x415bba('0xe9e')](_0x12c58c[_0x415bba('0xdc5')],{'id':_0x5b9eb3['id']});_0x61996d[_0x415bba('0x12eb')]=![],_0x4af51f['push'](_0x61996d);}_0x12c58c[_0x415bba('0xdc5')]=_0x4af51f;});}})[_0x5e80f7('0x253d')](function(_0x44e921){var _0x498a38=_0x5e80f7;_0xb3b330[_0x498a38('0x187f')]({'title':_0x44e921[_0x498a38('0x2fa')]?_0x498a38('0x16c2')+_0x44e921[_0x498a38('0x2fa')]+'\x20-\x20'+_0x44e921[_0x498a38('0x24df')]:_0x498a38('0x2f7'),'msg':_0x44e921[_0x498a38('0x10fd')]?JSON[_0x498a38('0xa48')](_0x44e921['data']):_0x44e921[_0x498a38('0x684')]()});});function _0x9eb2e9(){var _0x2f011f=_0x5e80f7;_0x12c58c['errors']=[],_0x4eea27[_0x2f011f('0x1361')][_0x2f011f('0x242b')](_0x12c58c[_0x2f011f('0x212f')])[_0x2f011f('0x1dc2')]['then'](function(_0x58163d){var _0x90efa3=_0x2f011f;_0x12c58c[_0x90efa3('0x147d')]['unshift'](_0x58163d['toJSON']()),_0xb3b330[_0x90efa3('0xe10')]({'title':'InternalRoute\x20properly\x20created','msg':_0x12c58c[_0x90efa3('0x212f')][_0x90efa3('0x25d6')]?_0x12c58c['internalroute'][_0x90efa3('0x25d6')]+_0x90efa3('0xdca'):''}),_0x5847ae(_0x58163d);})['catch'](function(_0x1a5504){var _0x2ec064=_0x2f011f;if(_0x1a5504['data']&&_0x1a5504['data'][_0x2ec064('0x4c6')]&&_0x1a5504[_0x2ec064('0x10fd')][_0x2ec064('0x4c6')]['length']){_0x12c58c['errors']=_0x1a5504[_0x2ec064('0x10fd')][_0x2ec064('0x4c6')]||[{'message':_0x1a5504[_0x2ec064('0x684')](),'type':'api.voiceExtension.save'}];for(var _0x1dd349=0x0;_0x1dd349<_0x1a5504[_0x2ec064('0x10fd')][_0x2ec064('0x4c6')]['length'];_0x1dd349+=0x1){_0xb3b330[_0x2ec064('0x187f')]({'title':_0x1a5504[_0x2ec064('0x10fd')][_0x2ec064('0x4c6')][_0x1dd349][_0x2ec064('0x6c8')],'msg':_0x1a5504[_0x2ec064('0x10fd')]['errors'][_0x1dd349][_0x2ec064('0x1402')]});}}else _0xb3b330[_0x2ec064('0x187f')]({'title':_0x1a5504[_0x2ec064('0x2fa')]?_0x2ec064('0x16c2')+_0x1a5504[_0x2ec064('0x2fa')]+_0x2ec064('0x169e')+_0x1a5504[_0x2ec064('0x24df')]:_0x2ec064('0x14e9'),'msg':_0x1a5504[_0x2ec064('0x10fd')]?JSON[_0x2ec064('0xa48')](_0x1a5504[_0x2ec064('0x10fd')][_0x2ec064('0x1402')]):_0x1a5504['toString']()});});}function _0x4040d1(){var _0x36cadd=_0x5e80f7;_0x12c58c['errors']=[],_0x4eea27['voiceExtension'][_0x36cadd('0x264e')]({'id':_0x12c58c[_0x36cadd('0x212f')]['id']},_0x12c58c['internalroute'])[_0x36cadd('0x1dc2')][_0x36cadd('0xaa5')](function(_0x1ca3ee){var _0x1c006f=_0x36cadd,_0xb1a24e=_0x51538b()[_0x1c006f('0xe9e')](_0x12c58c[_0x1c006f('0x147d')],{'id':_0x1ca3ee['id']});_0xb1a24e&&_0x51538b()['merge'](_0xb1a24e,_0x51538b()['pick'](_0x1ca3ee['toJSON'](),_0x51538b()[_0x1c006f('0x9f2')](_0xb1a24e))),_0xb3b330[_0x1c006f('0xe10')]({'title':'InternalRoute\x20properly\x20saved!','msg':_0x12c58c[_0x1c006f('0x212f')][_0x1c006f('0x25d6')]?_0x12c58c[_0x1c006f('0x212f')]['name']+_0x1c006f('0x20bf'):''}),_0x5847ae(_0x1ca3ee);})[_0x36cadd('0x253d')](function(_0x5016a8){var _0xa43443=_0x36cadd;if(_0x5016a8[_0xa43443('0x10fd')]&&_0x5016a8['data'][_0xa43443('0x4c6')]&&_0x5016a8['data'][_0xa43443('0x4c6')][_0xa43443('0x2587')]){_0x12c58c['errors']=_0x5016a8[_0xa43443('0x10fd')][_0xa43443('0x4c6')]||[{'message':_0x5016a8[_0xa43443('0x684')](),'type':'api.voiceExtension.update'}];for(var _0x4224ea=0x0;_0x4224ea<_0x5016a8[_0xa43443('0x10fd')][_0xa43443('0x4c6')][_0xa43443('0x2587')];_0x4224ea++){_0xb3b330[_0xa43443('0x187f')]({'title':_0x5016a8['data'][_0xa43443('0x4c6')][_0x4224ea][_0xa43443('0x6c8')],'msg':_0x5016a8[_0xa43443('0x10fd')]['errors'][_0x4224ea]['message']});}}else _0xb3b330['error']({'title':_0x5016a8[_0xa43443('0x2fa')]?_0xa43443('0x16c2')+_0x5016a8[_0xa43443('0x2fa')]+'\x20-\x20'+_0x5016a8[_0xa43443('0x24df')]:'api.voiceExtension.update','msg':_0x5016a8['data']?JSON[_0xa43443('0xa48')](_0x5016a8[_0xa43443('0x10fd')][_0xa43443('0x1402')]):_0x5016a8[_0xa43443('0x684')]()});});}function _0x183b4a(_0x2ff08a){var _0x3b60c7=_0x5e80f7;_0x12c58c[_0x3b60c7('0x4c6')]=[];var _0x30972e=_0x57dece['confirm']()[_0x3b60c7('0x110a')](_0x3b60c7('0x12a3'))['content']('The\x20internalroute\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20InternalRoute')['ok'](_0x3b60c7('0x1e76'))[_0x3b60c7('0x2030')]('Cancel')[_0x3b60c7('0x116d')](_0x2ff08a);_0x57dece['show'](_0x30972e)[_0x3b60c7('0xaa5')](function(){var _0x44e187=_0x3b60c7;_0x4eea27[_0x44e187('0x1361')][_0x44e187('0x926')]({'id':_0x12c58c[_0x44e187('0x212f')]['id']})[_0x44e187('0x1dc2')][_0x44e187('0xaa5')](function(){var _0x17fc45=_0x44e187;_0x51538b()['remove'](_0x12c58c[_0x17fc45('0x147d')],{'id':_0x12c58c['internalroute']['id']}),_0xb3b330[_0x17fc45('0xe10')]({'title':_0x17fc45('0x25c4'),'msg':(_0x12c58c[_0x17fc45('0x212f')][_0x17fc45('0x25d6')]||'internalroute')+_0x17fc45('0xcd9')}),_0x5847ae(_0x12c58c[_0x17fc45('0x212f')]);})[_0x44e187('0x253d')](function(_0x42a9c7){var _0xf9bafb=_0x44e187;if(_0x42a9c7['data']&&_0x42a9c7[_0xf9bafb('0x10fd')][_0xf9bafb('0x4c6')]&&_0x42a9c7[_0xf9bafb('0x10fd')][_0xf9bafb('0x4c6')][_0xf9bafb('0x2587')]){_0x12c58c[_0xf9bafb('0x4c6')]=_0x42a9c7[_0xf9bafb('0x10fd')]['errors']||[{'message':_0x42a9c7[_0xf9bafb('0x684')](),'type':_0xf9bafb('0x12b7')}];for(var _0x582a1d=0x0;_0x582a1d<_0x42a9c7[_0xf9bafb('0x10fd')]['errors'][_0xf9bafb('0x2587')];_0x582a1d++){_0xb3b330[_0xf9bafb('0x187f')]({'title':_0x42a9c7['data'][_0xf9bafb('0x4c6')][_0x582a1d][_0xf9bafb('0x6c8')],'msg':_0x42a9c7[_0xf9bafb('0x10fd')][_0xf9bafb('0x4c6')][_0x582a1d]['message']});}}else _0xb3b330[_0xf9bafb('0x187f')]({'title':_0x42a9c7[_0xf9bafb('0x2fa')]?_0xf9bafb('0x16c2')+_0x42a9c7[_0xf9bafb('0x2fa')]+_0xf9bafb('0x169e')+_0x42a9c7[_0xf9bafb('0x24df')]:_0xf9bafb('0x12b7'),'msg':_0x42a9c7['data']?JSON[_0xf9bafb('0xa48')](_0x42a9c7['data']['message']):_0x42a9c7[_0xf9bafb('0x1402')]||_0x42a9c7[_0xf9bafb('0x684')]()});});},function(){});}function _0x1b7fe5(_0xc78e72){return _0xc78e72===null?undefined:new Date(_0xc78e72);}function _0x5847ae(_0x51048b){var _0x238b17=_0x5e80f7;_0x57dece[_0x238b17('0x1120')](_0x51048b);}}const _0x4286d4=_0xc88b5e,_0x5ef51c=_0x4fb511['p']+_0x1a8446('0x1d36'),_0x5cb6a0=_0x4fb511['p']+_0x1a8446('0x385'),_0x1a9e68=_0x4fb511['p']+_0x1a8446('0x231f'),_0x403136=_0x4fb511['p']+_0x1a8446('0x153b'),_0x272a01=_0x4fb511['p']+_0x1a8446('0x2303'),_0x2e8cc1=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog-[chunkhash].html',_0x4a7099=_0x4fb511['p']+_0x1a8446('0x1c71'),_0x4224a5=_0x4fb511['p']+_0x1a8446('0x19a'),_0x177aac=_0x4fb511['p']+_0x1a8446('0xa0d'),_0x43e9ac=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog-[chunkhash].html',_0x2f12aa=_0x4fb511['p']+_0x1a8446('0x954'),_0x428646=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html/dialog-[chunkhash].html',_0xf41a50=_0x4fb511['p']+_0x1a8446('0xb85');_0x5c0245[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),'$mdDialog',_0x1a8446('0x39b'),'toasty',_0x1a8446('0x1dfd')];var _0x59af22={'agi':_0x5ef51c,'custom':_0x5cb6a0,'dial':_0x1a9e68,'externaldial':_0x403136,'goto':_0x272a01,'hangup':_0x2e8cc1,'internaldial':_0x4a7099,'interval':_0x4224a5,'playback':_0x177aac,'queue':_0x43e9ac,'ringgroup':_0x2f12aa,'set':_0x428646,'voicemail':_0xf41a50};function _0x5c0245(_0x227f1c,_0x18cadc,_0x531fa1,_0x22ed24,_0x59a727){var _0x2484f0=_0x1a8446,_0x5189b3=this;_0x5189b3[_0x2484f0('0x7fc')]=_0x59a727['getCurrentUser'](),_0x5189b3[_0x2484f0('0x212f')]={},_0x5189b3['internalrouteApps']={'count':0x0,'rows':[]},_0x5189b3[_0x2484f0('0xc7')]=[],_0x5189b3['crudPermissions'],_0x5189b3[_0x2484f0('0x582')]={'sort':_0x2484f0('0x13f2')},_0x5189b3['apps']=_0x51538b()[_0x2484f0('0xaee')](_0x51538b()['sortBy']([{'app':'Interval','appType':_0x2484f0('0x1c21'),'type':'Internal','types':[_0x2484f0('0x1b43'),_0x2484f0('0x113b'),_0x2484f0('0x2334')],'fields':[],'isApp':![]},{'app':_0x2484f0('0x145c'),'appType':_0x2484f0('0xe26'),'context':_0x2484f0('0xde3'),'type':'Internal','options':'xX','appdata':_0x2484f0('0x8b6'),'icon':_0x2484f0('0x1892'),'interval':_0x2484f0('0x1ac6'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x2484f0('0x7ca'),'field':{'name':'sound','key':'save_name','prefix':_0x2484f0('0xe0f')},'route':_0x2484f0('0x7d6'),'filters':{'fields':'id,name,save_name','sort':_0x2484f0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x2484f0('0x4d7'),'field':{'name':'queue','key':_0x2484f0('0x25d6')},'route':_0x2484f0('0x1588'),'filters':{'type':_0x2484f0('0x4b8'),'fields':'id,name,type','sort':_0x2484f0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x2484f0('0x145c'),'name':_0x2484f0('0xe26'),'type':_0x2484f0('0xd4d'),'values':_0x2484f0('0x4d7'),'value':_0x2484f0('0x1766'),'option':'queue.name','required':!![],'param':0x0},{'title':_0x2484f0('0x2f1'),'name':_0x2484f0('0x1b36'),'type':_0x2484f0('0xb37'),'param':0x1},{'title':_0x2484f0('0x489'),'name':_0x2484f0('0x12d3'),'type':_0x2484f0('0xb37'),'param':0x2},{'title':'Announce_Overrides','name':'sound','type':_0x2484f0('0xd4d'),'values':_0x2484f0('0x7ca'),'value':_0x2484f0('0xbab'),'option':_0x2484f0('0x8d'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'param':0x3},{'title':_0x2484f0('0xc45'),'name':_0x2484f0('0x23c0'),'type':'number','min':0x0,'param':0x4},{'title':_0x2484f0('0xdba'),'name':'agi','type':_0x2484f0('0xb37'),'param':0x5},{'title':_0x2484f0('0xac'),'name':'macro','type':_0x2484f0('0xb37'),'param':0x6},{'title':'GoSub','name':'gosub','type':_0x2484f0('0xb37'),'param':0x7},{'title':'Rule','name':_0x2484f0('0x1676'),'type':'text','param':0x8},{'title':_0x2484f0('0x718'),'name':_0x2484f0('0x137c'),'type':_0x2484f0('0x219a'),'min':0x0,'param':0x9},{'title':_0x2484f0('0x1523'),'name':_0x2484f0('0x1ba2'),'type':'switch','general':!![]}]},{'app':'Playback','appType':'playback','context':_0x2484f0('0xde3'),'type':_0x2484f0('0x195'),'icon':_0x2484f0('0x1892'),'interval':_0x2484f0('0x1ac6'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x2484f0('0x7ca'),'field':{'name':_0x2484f0('0x124b'),'key':'save_name','prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x2484f0('0x7d6'),'filters':{'fields':_0x2484f0('0x188c'),'sort':_0x2484f0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':'Audio_Files','name':_0x2484f0('0x124b'),'type':_0x2484f0('0xd4d'),'values':_0x2484f0('0x7ca'),'value':_0x2484f0('0x207d'),'option':'appdata.name','required':!![],'param':0x0},{'title':'Options','name':_0x2484f0('0x1b36'),'type':_0x2484f0('0xb37'),'param':0x1},{'title':_0x2484f0('0x1523'),'name':_0x2484f0('0x1ba2'),'type':_0x2484f0('0x256e'),'general':!![]}]},{'app':_0x2484f0('0x9f8'),'appType':_0x2484f0('0xfab'),'context':_0x2484f0('0xde3'),'type':'Internal','icon':_0x2484f0('0x1892'),'options':'xX','interval':_0x2484f0('0x1ac6'),'isApp':!![],'fields':[{'title':_0x2484f0('0x2052'),'name':_0x2484f0('0x130f'),'type':_0x2484f0('0xb37'),'required':!![],'param':0x0},{'title':_0x2484f0('0xc45'),'name':_0x2484f0('0x23c0'),'type':_0x2484f0('0x219a'),'min':0x0,'param':0x1},{'title':_0x2484f0('0x2f1'),'name':_0x2484f0('0x1b36'),'type':_0x2484f0('0xb37'),'param':0x2},{'title':'Url','name':'url','type':_0x2484f0('0xb37'),'param':0x3}]},{'app':_0x2484f0('0x9f8'),'appType':'internalDial','context':_0x2484f0('0xde3'),'type':_0x2484f0('0x195'),'icon':_0x2484f0('0x1892'),'options':'xX','interval':_0x2484f0('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x2484f0('0x2204'),'field':{'name':_0x2484f0('0x272b'),'key':_0x2484f0('0x25d6'),'prefix':'SIP/'},'route':_0x2484f0('0x272b'),'filters':{'fields':_0x2484f0('0x1f5d'),'sort':_0x2484f0('0x25d6'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x2484f0('0xeff')},{'id':0xcb,'role':_0x2484f0('0xb5b')}]}}],'fields':[{'title':_0x2484f0('0x21b9'),'name':_0x2484f0('0x272b'),'type':_0x2484f0('0xd4d'),'values':_0x2484f0('0x2204'),'value':'\x27SIP/{{user.name}}\x27','option':'user.name','required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x2484f0('0x219a'),'min':0x0,'param':0x1},{'title':_0x2484f0('0x2f1'),'name':'options','type':_0x2484f0('0xb37'),'param':0x2},{'title':'Url','name':_0x2484f0('0x2242'),'type':_0x2484f0('0xb37'),'param':0x3}]},{'app':'Dial','appType':'externalDial','context':_0x2484f0('0xde3'),'type':'Internal','icon':_0x2484f0('0x1892'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x2484f0('0x1bc2'),'field':{'name':_0x2484f0('0x1651'),'key':_0x2484f0('0x25d6')},'route':_0x2484f0('0x1651'),'filters':{'fields':_0x2484f0('0x17fe'),'sort':_0x2484f0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x2484f0('0x4a6'),'name':_0x2484f0('0x1651'),'type':_0x2484f0('0xd4d'),'values':_0x2484f0('0x1bc2'),'value':_0x2484f0('0x7ce'),'option':'trunk.name','required':!![],'param':0x0},{'title':_0x2484f0('0x1831'),'name':'phone','type':_0x2484f0('0xb37')},{'title':_0x2484f0('0xc45'),'name':_0x2484f0('0x23c0'),'type':_0x2484f0('0x219a'),'min':0x0,'param':0x1},{'title':_0x2484f0('0x2f1'),'name':_0x2484f0('0x1b36'),'type':'text','param':0x2},{'title':_0x2484f0('0x489'),'name':_0x2484f0('0x2242'),'type':_0x2484f0('0xb37'),'param':0x3}]},{'app':_0x2484f0('0x9f8'),'appType':'ringGroup','context':'from-sip','type':'Internal','icon':_0x2484f0('0x1892'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x2484f0('0x2204'),'field':{'name':_0x2484f0('0x234a'),'key':_0x2484f0('0x25d6'),'prefix':'SIP/'},'route':'user','filters':{'fields':'id,name,role','sort':_0x2484f0('0x25d6'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':'agent'},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':_0x2484f0('0x21b9'),'name':_0x2484f0('0x234a'),'type':_0x2484f0('0xd4d'),'multiple':!![],'values':_0x2484f0('0x2204'),'value':'\x27SIP/{{multipleUsers.name}}\x27','option':_0x2484f0('0x175b'),'required':!![],'param':0x0},{'title':_0x2484f0('0xc45'),'name':_0x2484f0('0x23c0'),'type':_0x2484f0('0x219a'),'min':0x0,'param':0x1},{'title':_0x2484f0('0x2f1'),'name':_0x2484f0('0x1b36'),'type':_0x2484f0('0xb37'),'param':0x2},{'title':_0x2484f0('0x489'),'name':_0x2484f0('0x2242'),'type':_0x2484f0('0xb37'),'param':0x3}]},{'app':_0x2484f0('0x17dc'),'alias':_0x2484f0('0xa44'),'appType':'agi','context':_0x2484f0('0xde3'),'type':_0x2484f0('0x195'),'icon':_0x2484f0('0x1892'),'interval':_0x2484f0('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x2484f0('0x8d1'),'field':{'name':_0x2484f0('0x24b9'),'key':_0x2484f0('0x25d6'),'prefix':_0x2484f0('0x2620')},'route':_0x2484f0('0x37b'),'filters':{'fields':_0x2484f0('0x17fe'),'sort':'name','nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x2484f0('0x1dd3'),'name':'project','type':_0x2484f0('0xd4d'),'values':_0x2484f0('0x8d1'),'value':_0x2484f0('0x2344'),'option':_0x2484f0('0x18f1'),'required':!![],'param':0x0}]},{'app':_0x2484f0('0x2781'),'appType':_0x2484f0('0x72e'),'context':_0x2484f0('0xde3'),'type':'Internal','icon':'icon-apps','interval':_0x2484f0('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x2484f0('0xdc5'),'field':{'name':_0x2484f0('0x19cd'),'key':_0x2484f0('0x25d6')},'route':_0x2484f0('0x68c'),'filters':{'fields':_0x2484f0('0x17fe'),'sort':_0x2484f0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x2484f0('0x14c9'),'name':_0x2484f0('0x19cd'),'type':_0x2484f0('0xd4d'),'values':'contexts','value':_0x2484f0('0x8f3'),'option':_0x2484f0('0x8f3'),'required':!![],'param':0x0},{'title':_0x2484f0('0xded'),'name':_0x2484f0('0xc68'),'type':_0x2484f0('0xb37'),'required':!![],'param':0x1},{'title':_0x2484f0('0x2722'),'name':_0x2484f0('0x13f2'),'type':_0x2484f0('0xb37'),'required':!![],'param':0x2}]},{'app':_0x2484f0('0x1fef'),'appType':_0x2484f0('0x1fef'),'context':_0x2484f0('0xde3'),'type':'Internal','icon':_0x2484f0('0x1892'),'interval':_0x2484f0('0x1ac6'),'isApp':!![],'fields':[{'title':_0x2484f0('0x6a0'),'name':_0x2484f0('0x124b'),'type':_0x2484f0('0xbff'),'param':0x0,'values':[{'option':_0x2484f0('0x2069'),'value':_0x2484f0('0x17b7')},{'option':_0x2484f0('0x331'),'value':_0x2484f0('0x14c2')},{'option':_0x2484f0('0x1232'),'value':_0x2484f0('0x2121')},{'option':_0x2484f0('0x473'),'value':_0x2484f0('0x1d09')},{'option':_0x2484f0('0x4ae'),'value':'\x2721\x27'},{'option':'HANGUPCAUSE_22','value':_0x2484f0('0x2106')},{'option':_0x2484f0('0x5c0'),'value':'\x2727\x27'},{'option':_0x2484f0('0x52e'),'value':_0x2484f0('0x1f0')},{'option':'HANGUPCAUSE_41','value':'\x2741\x27'}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x2484f0('0x1666'),'appType':_0x2484f0('0x282c'),'context':_0x2484f0('0xde3'),'type':_0x2484f0('0x195'),'separator':'=','icon':_0x2484f0('0x1892'),'interval':_0x2484f0('0x1ac6'),'extraApi':[{'name':_0x2484f0('0x147e'),'field':{'name':_0x2484f0('0x25d6'),'key':_0x2484f0('0x25d6')},'route':_0x2484f0('0x14e7'),'filters':{'fields':'id,name','sort':_0x2484f0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':'Variable','name':_0x2484f0('0x25d6'),'type':'apiselect','values':'variables','value':_0x2484f0('0xa75'),'option':'name.name','required':!![],'param':0x0},{'title':_0x2484f0('0xfba'),'name':'value','type':'text','required':!![],'param':0x1}]},{'app':null,'appType':'custom','icon':_0x2484f0('0x1892'),'type':_0x2484f0('0x195'),'interval':_0x2484f0('0x1ac6'),'isApp':!![],'fields':[{'title':_0x2484f0('0x22ef'),'name':_0x2484f0('0x9eb'),'type':_0x2484f0('0xb37'),'required':!![],'param':0x0},{'title':'Arguments','name':_0x2484f0('0x124b'),'type':_0x2484f0('0xb37'),'param':0x1}]},{'app':_0x2484f0('0x19fe'),'appType':'voicemail','context':_0x2484f0('0xde3'),'icon':'icon-apps','type':_0x2484f0('0x195'),'interval':_0x2484f0('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x2484f0('0x281'),'field':{'name':_0x2484f0('0x2264'),'key':_0x2484f0('0x11cb'),'suffix':_0x2484f0('0x1bc7')},'route':_0x2484f0('0x2264'),'filters':{'fields':_0x2484f0('0x1a67'),'sort':_0x2484f0('0x11cb'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x2484f0('0xfff'),'name':_0x2484f0('0x2264'),'type':_0x2484f0('0xd4d'),'values':_0x2484f0('0x281'),'value':_0x2484f0('0x1bca'),'option':_0x2484f0('0x1fa1'),'required':!![],'param':0x0},{'title':'Options','name':'options','type':_0x2484f0('0xb37'),'param':0x1}]}],[_0x2484f0('0x9eb')]),{'isApp':![]}),_0x5189b3[_0x2484f0('0x2334')]={'group':{'name':_0x2484f0('0xdf0'),'pull':_0x2484f0('0x1ae5')},'animation':0x64,'sort':![]},_0x5189b3[_0x2484f0('0x209b')]={'group':{'name':_0x2484f0('0x1603'),'put':_0x2484f0('0xdf0')},'animation':0x64,'onAdd':function _0x2c61e1(_0x30135){_0x3ee598(_0x30135,_0x30135['newIndex']);},'onSort':function _0x4f0d8c(){_0x37f175();}},_0x5189b3['init']=_0x3b194c,_0x5189b3['deleteConfirm']=_0x5b69af,_0x5189b3[_0x2484f0('0x1038')]=_0x251dcd,_0x5189b3[_0x2484f0('0x1023')]=_0x3ee598,_0x5189b3[_0x2484f0('0x1e6')]=_0x188322,_0x5189b3['deleteInternalRouteApp']=_0x4b0d8b,_0x5189b3['deleteSelectedInternalRouteApps']=_0x59d6b9,_0x5189b3[_0x2484f0('0x1f31')]=_0x37f175,_0x5189b3[_0x2484f0('0x1f55')]=_0x4988fe;function _0x3b194c(_0xd16182,_0x3b93b1){var _0x558603=_0x2484f0;_0x5189b3[_0x558603('0x212f')]=_0xd16182,_0x5189b3[_0x558603('0xada')]=typeof _0x3b93b1!==_0x558603('0x1574')?_0x3b93b1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5189b3[_0x558603('0x209b')]['disabled']=!_0x5189b3['crudPermissions'][_0x558603('0x1c1d')]?!![]:![],_0x5189b3['query'][_0x558603('0x1a70')]=_0xd16182['id'],_0x5189b3[_0x558603('0x582')][_0x558603('0x26a1')]=!![],_0x5189b3[_0x558603('0x582')][_0x558603('0x86a')]=!![],_0x5189b3[_0x558603('0x1038')](),_0x5189b3[_0x558603('0x1f55')]();}function _0x5b69af(_0x324663,_0x141448,_0x4fc18){var _0x232bdd=_0x2484f0,_0x30bc9a=_0x18cadc[_0x232bdd('0x281e')]()[_0x232bdd('0x110a')](_0x232bdd('0x912'))[_0x232bdd('0x102e')](_0x232bdd('0x389')+_0x324663['app']+_0x232bdd('0x697')+_0x232bdd('0x210d'))[_0x232bdd('0x5b5')]('delete\x20application')[_0x232bdd('0x116d')](_0x4fc18)['ok']('OK')['cancel'](_0x232bdd('0x2410'));_0x18cadc[_0x232bdd('0x1e6d')](_0x30bc9a)['then'](function(){var _0x55dcd0=_0x232bdd;_0x5189b3[_0x55dcd0('0xb62')][_0x55dcd0('0x580')][_0x55dcd0('0x1280')](_0x141448,0x1),_0x37f175();},function(){var _0x1d7ad5=_0x232bdd;console['log'](_0x1d7ad5('0x2410'));});}function _0x3ee598(_0x1da5ed,_0x2d5101){var _0x12ea90=_0x2484f0;if(_0x5189b3[_0x12ea90('0xb62')][_0x12ea90('0x580')]['length']){var _0x23d456=_0x5189b3['internalrouteApps']['rows'][_0x2d5101]?_0x5189b3[_0x12ea90('0xb62')][_0x12ea90('0x580')][_0x2d5101]:_0x5189b3[_0x12ea90('0xb62')]['rows'][0x0],_0x1e7078=(_0x23d456[_0x12ea90('0xe6d')]||_0x23d456[_0x12ea90('0x9eb')])[_0x12ea90('0xcf6')]();_0x18cadc[_0x12ea90('0x1e6d')]({'controller':_0x12ea90('0x6e6')['concat'](_0x1e7078,_0x12ea90('0x1f76')),'controllerAs':'vm','templateUrl':_0x59af22[_0x1e7078],'parent':angular['element'](_0x531fa1[_0x12ea90('0x54c')]),'targetEvent':_0x1da5ed,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0x23d456,'internalroute':_0x5189b3[_0x12ea90('0x212f')],'crudPermissions':_0x5189b3[_0x12ea90('0xada')]}})[_0x12ea90('0xaa5')](function(_0x5b7c99){var _0xa9fbb=_0x12ea90;_0x5b7c99&&(_0x5b7c99['id']?_0x5189b3[_0xa9fbb('0xb62')][_0xa9fbb('0x580')][_0x2d5101]=_0x5b7c99:_0x5189b3[_0xa9fbb('0xb62')][_0xa9fbb('0x580')]['splice'](_0x2d5101,0x0,_0x5b7c99),_0x37f175());})['catch'](function(_0x354d6d){var _0x101994=_0x12ea90;_0x354d6d&&_0x22ed24[_0x101994('0x187f')]({'title':_0x354d6d[_0x101994('0x2fa')]?_0x101994('0x16c2')+_0x354d6d[_0x101994('0x2fa')]+_0x101994('0x169e')+_0x354d6d[_0x101994('0x24df')]:_0x101994('0x26b6'),'msg':_0x354d6d[_0x101994('0x10fd')]?JSON[_0x101994('0xa48')](_0x354d6d[_0x101994('0x10fd')]):_0x354d6d[_0x101994('0x684')]()});});}}function _0x188322(_0x5ae936,_0x476468){var _0x360bba=_0x2484f0;if(_0x5189b3[_0x360bba('0xb62')][_0x360bba('0x580')][_0x360bba('0x2587')]){var _0x4adc57=_0x5189b3[_0x360bba('0xb62')][_0x360bba('0x580')][_0x476468]?_0x5189b3['internalrouteApps']['rows'][_0x476468]:_0x5189b3[_0x360bba('0xb62')]['rows'][0x0];_0x18cadc['show']({'controller':'EditInternalAppintervalDialogController','controllerAs':'vm','templateUrl':_0x4224a5,'parent':angular[_0x360bba('0x1aa8')](_0x531fa1[_0x360bba('0x54c')]),'targetEvent':_0x5ae936,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x4adc57[_0x360bba('0x1c21')],'IntervalId':_0x4adc57[_0x360bba('0x1f8c')],'application':!![]},'intervals':[],'crudPermissions':_0x5189b3['crudPermissions']}})['then'](function(_0x12299f){var _0x34e541=_0x360bba;_0x12299f&&(_0x4adc57[_0x34e541('0x1c21')]=_0x12299f['interval']||_0x34e541('0x1ac6'),_0x4adc57[_0x34e541('0x1f8c')]=_0x12299f[_0x34e541('0x1f8c')]||null,_0x37f175());});}}function _0x37f175(){var _0x18e0e6=_0x2484f0,_0x3e848f=['queue','playback'],_0x25450b=0x2,_0x3d8c01=[];_0x3d8c01[_0x18e0e6('0x1599')]({'type':'internal','app':'Set','appdata':_0x18e0e6('0xd56'),'context':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x19cd')],'exten':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x1990')],'priority':_0x25450b++,'VoiceExtensionId':_0x5189b3[_0x18e0e6('0x212f')]['id']}),_0x3d8c01['push']({'type':_0x18e0e6('0x1b0d'),'app':'Set','appdata':_0x18e0e6('0x122a'),'context':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x19cd')],'exten':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x1990')],'priority':_0x25450b++,'VoiceExtensionId':_0x5189b3[_0x18e0e6('0x212f')]['id']}),_0x3d8c01[_0x18e0e6('0x1599')]({'type':_0x18e0e6('0x1b0d'),'app':_0x18e0e6('0x1666'),'appdata':_0x18e0e6('0x134b'),'context':_0x5189b3['internalroute'][_0x18e0e6('0x19cd')],'exten':_0x5189b3[_0x18e0e6('0x212f')]['exten'],'priority':_0x25450b++,'VoiceExtensionId':_0x5189b3['internalroute']['id']}),_0x3d8c01[_0x18e0e6('0x1599')]({'type':_0x18e0e6('0x1b0d'),'app':'Set','appdata':'MONITOR_OPTIONS=ab','context':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x19cd')],'exten':_0x5189b3[_0x18e0e6('0x212f')]['exten'],'priority':_0x25450b++,'VoiceExtensionId':_0x5189b3[_0x18e0e6('0x212f')]['id']});for(var _0x41548d=0x0,_0x461523=0x0;_0x41548d<_0x5189b3[_0x18e0e6('0xb62')][_0x18e0e6('0x580')][_0x18e0e6('0x2587')];_0x41548d++,_0x461523=0x0){var _0x209c75=_0x5189b3[_0x18e0e6('0xb62')][_0x18e0e6('0x580')][_0x41548d],_0xe01e5e=[],_0x3cc36c=[];_0x209c75[_0x18e0e6('0x2568')]=_0x209c75['interval']!==_0x18e0e6('0x1ac6')?[_0x209c75[_0x18e0e6('0x1c21')]]:_0x209c75[_0x18e0e6('0x1f8c')]?_0x51538b()['map'](_0x51538b()[_0x18e0e6('0xdb7')](_0x5189b3['intervals'][_0x18e0e6('0x580')],{'IntervalId':_0x209c75[_0x18e0e6('0x1f8c')]}),_0x18e0e6('0x1c21')):[],_0x209c75[_0x18e0e6('0x19cd')]=_0x5189b3[_0x18e0e6('0x212f')]['context'],_0x209c75[_0x18e0e6('0x1990')]=_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x1990')];_0x209c75['type']&&(_0x209c75['type']=_0x209c75['type'][_0x18e0e6('0xcf6')]());typeof _0x209c75['answer']!=='undefined'&&(_0x3e848f[_0x18e0e6('0x13d6')](_0x209c75[_0x18e0e6('0x9eb')][_0x18e0e6('0xcf6')]())&&_0x209c75[_0x18e0e6('0xe6d')]!==_0x18e0e6('0x113b')&&(_0x209c75[_0x18e0e6('0x1ba2')]?(_0xe01e5e[_0x18e0e6('0x1599')]({'type':_0x209c75[_0x18e0e6('0x6c8')][_0x18e0e6('0xcf6')](),'app':'ExecIf','appdata':_0x18e0e6('0xa86'),'context':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x19cd')],'exten':_0x5189b3[_0x18e0e6('0x212f')]['exten'],'priority':_0x209c75[_0x18e0e6('0x2568')][_0x18e0e6('0x2587')]+_0x25450b+_0x461523++,'VoiceExtensionId':_0x5189b3[_0x18e0e6('0x212f')]['id']}),_0xe01e5e['push']({'type':_0x209c75[_0x18e0e6('0x6c8')][_0x18e0e6('0xcf6')](),'app':_0x18e0e6('0x1666'),'appdata':_0x18e0e6('0x6d1'),'context':_0x5189b3[_0x18e0e6('0x212f')]['context'],'exten':_0x5189b3['internalroute']['exten'],'priority':_0x209c75[_0x18e0e6('0x2568')][_0x18e0e6('0x2587')]+_0x25450b+_0x461523++,'VoiceExtensionId':_0x5189b3['internalroute']['id']})):(_0xe01e5e['push']({'type':_0x209c75[_0x18e0e6('0x6c8')]['toLowerCase'](),'app':_0x18e0e6('0x1aff'),'appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x5189b3[_0x18e0e6('0x212f')]['context'],'exten':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x1990')],'priority':_0x209c75[_0x18e0e6('0x2568')][_0x18e0e6('0x2587')]+_0x25450b+_0x461523++,'VoiceExtensionId':_0x5189b3['internalroute']['id']}),_0xe01e5e[_0x18e0e6('0x1599')]({'type':_0x209c75[_0x18e0e6('0x6c8')][_0x18e0e6('0xcf6')](),'app':'Set','appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x19cd')],'exten':_0x5189b3['internalroute'][_0x18e0e6('0x1990')],'priority':_0x209c75[_0x18e0e6('0x2568')]['length']+_0x25450b+_0x461523++,'VoiceExtensionId':_0x5189b3['internalroute']['id']}))));for(var _0x19ce97=0x0;_0x19ce97<_0x209c75[_0x18e0e6('0x2568')][_0x18e0e6('0x2587')];_0x19ce97++){var _0x3ce71d=_0x25450b+_0x209c75[_0x18e0e6('0x2568')][_0x18e0e6('0x2587')],_0x1ef37e=_0x19ce97===_0x209c75[_0x18e0e6('0x2568')][_0x18e0e6('0x2587')]-0x1?_0x25450b+_0xe01e5e[_0x18e0e6('0x2587')]+_0x3cc36c[_0x18e0e6('0x2587')]+0x2:_0x25450b+_0x19ce97+0x1;_0xe01e5e[_0x18e0e6('0x1280')](_0x19ce97,0x0,{'type':_0x18e0e6('0x1b0d'),'app':_0x18e0e6('0x121c'),'appdata':_0x209c75[_0x18e0e6('0x2568')][_0x19ce97]+'?'+_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x19cd')]+_0x18e0e6('0x2134')+_0x3ce71d+':'+_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x19cd')]+',${EXTEN},'+_0x1ef37e,'exten':_0x5189b3[_0x18e0e6('0x212f')]['exten'],'context':_0x5189b3['internalroute'][_0x18e0e6('0x19cd')],'priority':_0x25450b+_0x19ce97,'VoiceExtensionId':_0x5189b3[_0x18e0e6('0x212f')]['id']});}_0x209c75[_0x18e0e6('0x13f2')]=_0xe01e5e['length']?_0x51538b()[_0x18e0e6('0x23f4')](_0xe01e5e)['priority']+0x1:_0x25450b,_0x25450b=(_0x3cc36c[_0x18e0e6('0x2587')]?_0x51538b()[_0x18e0e6('0x23f4')](_0x3cc36c)[_0x18e0e6('0x13f2')]:_0x209c75['priority'])+0x1,_0x3d8c01=_0x51538b()[_0x18e0e6('0x9e4')](_0x3d8c01,_0xe01e5e,[_0x209c75],_0x3cc36c);}_0x3d8c01[_0x18e0e6('0x1599')]({'type':_0x18e0e6('0x1b0d'),'app':'Hangup','exten':_0x5189b3[_0x18e0e6('0x212f')][_0x18e0e6('0x1990')],'context':_0x5189b3['internalroute'][_0x18e0e6('0x19cd')],'priority':_0x25450b,'VoiceExtensionId':_0x5189b3[_0x18e0e6('0x212f')]['id']}),_0x227f1c[_0x18e0e6('0x1361')]['addApplications']({'id':_0x5189b3[_0x18e0e6('0x212f')]['id']},_0x51538b()[_0x18e0e6('0x181f')](_0x3d8c01,_0x18e0e6('0x13f2')))['$promise']['then'](function(_0x540707){var _0x4a5470=_0x18e0e6;_0x5189b3[_0x4a5470('0xb62')][_0x4a5470('0x580')]=_0x540707['rows'];})['catch'](function(_0x29513){var _0x4a5885=_0x18e0e6;console[_0x4a5885('0x187f')](_0x29513);});}function _0x4ba285(_0x2bcbd6){var _0x3c6958=_0x2484f0;_0x5189b3[_0x3c6958('0xb62')]=_0x2bcbd6||{'count':0x0,'rows':[]};}function _0x4988fe(){var _0x261de2=_0x2484f0;return _0x227f1c[_0x261de2('0x1c21')][_0x261de2('0x2122')]({'fields':_0x261de2('0x1487')})[_0x261de2('0x1dc2')][_0x261de2('0xaa5')](function(_0x6c4fe4){var _0xe273e2=_0x261de2;_0x5189b3[_0xe273e2('0x2568')]=_0x6c4fe4;})['catch'](function(_0x5787fb){var _0x1d17eb=_0x261de2;console[_0x1d17eb('0x187f')](_0x5787fb);});}function _0x251dcd(){var _0x1eaed5=_0x2484f0;_0x5189b3[_0x1eaed5('0x159a')]=_0x227f1c[_0x1eaed5('0x1361')][_0x1eaed5('0x2122')](_0x5189b3[_0x1eaed5('0x582')],_0x4ba285)[_0x1eaed5('0x1dc2')];}function _0x4b0d8b(_0x9e5816){var _0x3b8824=_0x2484f0;_0x51538b()[_0x3b8824('0xf6d')](_0x5189b3[_0x3b8824('0xb62')][_0x3b8824('0x580')],{'id':_0x9e5816['id']}),_0x37f175(),_0x22ed24[_0x3b8824('0xe10')]({'title':_0x3b8824('0x1446'),'msg':_0x9e5816[_0x3b8824('0x9eb')]?_0x9e5816[_0x3b8824('0x9eb')]+_0x3b8824('0xcd9'):''});}function _0x59d6b9(_0x21fd3c){var _0x5c5774=_0x2484f0,_0xf3c394=_0x18cadc[_0x5c5774('0x281e')]()[_0x5c5774('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')['htmlContent'](_0x5c5774('0x389')+_0x5189b3[_0x5c5774('0xc7')]['length']+'\x20selected'+_0x5c5774('0x210d'))[_0x5c5774('0x5b5')](_0x5c5774('0x2845'))[_0x5c5774('0x116d')](_0x21fd3c)['ok']('OK')[_0x5c5774('0x2030')](_0x5c5774('0x2410'));_0x18cadc[_0x5c5774('0x1e6d')](_0xf3c394)[_0x5c5774('0xaa5')](function(){var _0xcbf7e0=_0x5c5774;_0x5189b3['selectedInternalRouteApps'][_0xcbf7e0('0x15b5')](function(_0x4c5635){var _0x44856e=_0xcbf7e0;_0x51538b()[_0x44856e('0xf6d')](_0x5189b3[_0x44856e('0xb62')][_0x44856e('0x580')],{'id':_0x4c5635['id']});}),_0x5189b3[_0xcbf7e0('0xc7')]=[],_0x37f175();});}}const _0x3ca5e0=_0x5c0245;_0x9fa25c[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x9fa25c(_0x161ceb,_0x303626,_0x441835,_0x45d979,_0xf28501,_0x4b9ab8,_0x3c0f1b,_0x9852da){var _0x287ba3=_0x1a8446,_0x4ede09=this;_0x4ede09[_0x287ba3('0x7fc')]=_0x3c0f1b['getCurrentUser'](),_0x4ede09['errors']=[],_0x4ede09[_0x287ba3('0x110a')]=_0x287ba3('0x484')+(_0x45d979[_0x287ba3('0xe6d')]||_0x45d979[_0x287ba3('0x9eb')])[_0x287ba3('0x1d08')](),_0x4ede09[_0x287ba3('0x2067')]=angular[_0x287ba3('0x20a')](_0x45d979),_0x4ede09[_0x287ba3('0xada')]=_0x9852da,_0x4ede09[_0x287ba3('0x9f0')]={};if(_0x4ede09[_0x287ba3('0x2067')]['appdata'])switch(_0x4ede09[_0x287ba3('0x2067')]['appType']?_0x4ede09[_0x287ba3('0x2067')]['appType'][_0x287ba3('0xcf6')]():_0x4ede09[_0x287ba3('0x2067')]['app'][_0x287ba3('0xcf6')]()){case _0x287ba3('0x113b'):break;case _0x287ba3('0x67c'):{var _0x4d22d8=_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x124b')]['split'](',');_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x24ec')]=_0x4d22d8[0x0],_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x1938')]=_0x4d22d8[0x1],_0x4ede09[_0x287ba3('0x2067')]['welcomemessage']=_0x4d22d8[_0x287ba3('0x19aa')](0x2,_0x4d22d8[_0x287ba3('0x2587')])['join'](',');}break;case _0x287ba3('0x3f5'):{var _0x55d341=_0x4ede09['agi']['appdata'][_0x287ba3('0x1a39')](',');_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0xc07')]=_0x55d341[0x0],_0x4ede09[_0x287ba3('0x2067')]['secretaccesskey']=_0x55d341[0x1],_0x4ede09[_0x287ba3('0x2067')]['lexregion']=_0x55d341[0x2],_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x18ee')]=_0x55d341[0x3],_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x273')]=_0x55d341['slice'](0x4,_0x55d341['length'])[_0x287ba3('0x19c4')](',');}break;case _0x287ba3('0x1b05'):{var _0xc8493b=_0x4ede09[_0x287ba3('0x2067')]['appdata'][_0x287ba3('0x1a39')](',');_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x11b6')]=isNaN(_0xc8493b[0x0])?_0xc8493b[0x0]:parseInt(_0xc8493b[0x0],0xa),_0x4ede09['agi'][_0x287ba3('0xb37')]=_0xc8493b[_0x287ba3('0x19aa')](0x1,_0xc8493b[_0x287ba3('0x2587')])['join'](',');}break;case _0x287ba3('0x1402'):_0x4ede09['agi'][_0x287ba3('0xb37')]=_0x4ede09[_0x287ba3('0x2067')]['appdata'];break;case _0x287ba3('0x282c'):_0x4ede09['agi'][_0x287ba3('0x25d6')]=_0x4ede09['agi'][_0x287ba3('0x124b')]['split']('=')[0x0],_0x4ede09[_0x287ba3('0x2067')]['value']=_0x4ede09['agi'][_0x287ba3('0x124b')][_0x287ba3('0x1a39')]('=')[0x1];break;case'agi':_0x4ede09['agi']['project']=_0x4ede09[_0x287ba3('0x2067')]['appdata'];break;default:{var _0x1bfb2d=_0x4ede09[_0x287ba3('0x2067')]['appdata'][_0x287ba3('0x1a39')](',');_0x4ede09['agi'][_0x287ba3('0x24b9')]=_0x51538b()[_0x287ba3('0x116b')](_0x1bfb2d[0x0])?_0x1bfb2d[0x0]:isNaN(_0x1bfb2d[0x0])?_0x1bfb2d[0x0]:parseInt(_0x1bfb2d[0x0],0xa);}break;}else{}_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x6c8')]&&_0x4ede09[_0x287ba3('0x2067')]['type'][_0x287ba3('0xcf6')]()===_0x287ba3('0x19d1')&&_0x4ede09[_0x287ba3('0x2067')]['appType'][_0x287ba3('0xcf6')]()===_0x287ba3('0x1e7f')&&(_0x4ede09['agi'][_0x287ba3('0x1b8f')]=_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x1a46')]?_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x1a46')][_0x287ba3('0x1a39')]('$')[0x0]:undefined,_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0xeed')]=_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x514')]?_0x287ba3('0x23d8')+_0x4ede09[_0x287ba3('0x2067')][_0x287ba3('0x514')]:undefined);_0x4ede09[_0x287ba3('0xa8')]=_0x7376b4,_0x4ede09[_0x287ba3('0x2023')]=_0x5a0c7b,_0x3c0f1b[_0x287ba3('0x26e8')](_0x287ba3('0x178b'))?_0x4b9ab8[_0x287ba3('0x37b')][_0x287ba3('0x2122')]({'fields':_0x287ba3('0x17fe'),'sort':_0x287ba3('0x25d6'),'nolimit':'true'})[_0x287ba3('0x1dc2')][_0x287ba3('0xaa5')](function(_0x1a3e19){var _0x40f80f=_0x287ba3;_0x4ede09[_0x40f80f('0x8d1')]=_0x1a3e19[_0x40f80f('0x580')]||[];})[_0x287ba3('0x253d')](function(_0x4001c7){var _0x7200ba=_0x287ba3;_0x441835[_0x7200ba('0x187f')]({'title':_0x4001c7[_0x7200ba('0x2fa')]?_0x7200ba('0x16c2')+_0x4001c7[_0x7200ba('0x2fa')]+'\x20-\x20'+_0x4001c7['statusText']:'SYSTEM:GET_PROJECTS','msg':_0x4001c7[_0x7200ba('0x10fd')]?JSON['stringify'](_0x4001c7['data']):_0x4001c7[_0x7200ba('0x684')]()});}):_0x4b9ab8[_0x287ba3('0x37b')][_0x287ba3('0x2122')]({'fields':_0x287ba3('0x17fe'),'sort':_0x287ba3('0x25d6'),'nolimit':_0x287ba3('0x1c5c')})[_0x287ba3('0x1dc2')][_0x287ba3('0xaa5')](function(_0x4f4a39){var _0x4a2d06=_0x287ba3;_0x4ede09[_0x4a2d06('0x8d1')]=_0x4f4a39[_0x4a2d06('0x580')]||[];})[_0x287ba3('0xaa5')](function(){var _0x21a507=_0x287ba3;return _0x4b9ab8['userProfileSection'][_0x21a507('0x2122')]({'userProfileId':_0x4ede09['currentUser'][_0x21a507('0x2168')],'sectionId':0x44f})['$promise'];})[_0x287ba3('0xaa5')](function(_0x4304a2){var _0x29a214=_0x287ba3,_0x1e3a93=_0x4304a2&&_0x4304a2[_0x29a214('0x580')]?_0x4304a2[_0x29a214('0x580')][0x0]:null;if(!_0x1e3a93){var _0x2d6c02=[],_0x4fb591=null;_0x4ede09[_0x29a214('0x2067')]&&(_0x4fb591=_0x51538b()[_0x29a214('0xe9e')](_0x4ede09[_0x29a214('0x8d1')],{'name':_0x4ede09[_0x29a214('0x2067')][_0x29a214('0x24b9')]}));for(var _0x3ef459=0x0;_0x3ef459<_0x4ede09['projects'][_0x29a214('0x2587')];_0x3ef459++){_0x4fb591&&_0x4ede09[_0x29a214('0x8d1')][_0x3ef459]['id']===_0x4fb591['id']&&(_0x4ede09[_0x29a214('0x8d1')][_0x3ef459][_0x29a214('0x12eb')]=![],_0x2d6c02[_0x29a214('0x1599')](_0x4ede09['projects'][_0x3ef459]));}_0x4ede09[_0x29a214('0x8d1')]=_0x2d6c02;}else{if(!_0x1e3a93['autoAssociation'])return _0x4b9ab8[_0x29a214('0x249a')][_0x29a214('0x2122')]({'sectionId':_0x1e3a93['id']})[_0x29a214('0x1dc2')][_0x29a214('0xaa5')](function(_0x389d67){var _0x2908be=_0x29a214,_0x5aa245=_0x51538b()[_0x2908be('0x1246')](_0x389d67[_0x2908be('0x580')],function(_0x371207){var _0x2ec59a=_0x2908be;return _0x51538b()[_0x2ec59a('0xe9e')](_0x4ede09[_0x2ec59a('0x8d1')],{'id':_0x371207[_0x2ec59a('0xbcd')]});}),_0x5b79f3=null;_0x4ede09[_0x2908be('0x2067')]&&(_0x5b79f3=_0x51538b()['find'](_0x4ede09[_0x2908be('0x8d1')],{'name':_0x4ede09[_0x2908be('0x2067')][_0x2908be('0x24b9')]}));if(_0x5b79f3&&!_0x51538b()['some'](_0x5aa245,['id',_0x5b79f3['id']])){var _0xf9f0ba=_0x51538b()[_0x2908be('0xe9e')](_0x4ede09[_0x2908be('0x8d1')],{'id':_0x5b79f3['id']});_0xf9f0ba['canSelect']=![],_0x5aa245['push'](_0xf9f0ba);}_0x4ede09[_0x2908be('0x8d1')]=_0x5aa245;});}})[_0x287ba3('0x253d')](function(_0x3e00bd){var _0x400c0c=_0x287ba3;_0x441835[_0x400c0c('0x187f')]({'title':_0x3e00bd[_0x400c0c('0x2fa')]?'API:'+_0x3e00bd[_0x400c0c('0x2fa')]+_0x400c0c('0x169e')+_0x3e00bd['statusText']:_0x400c0c('0x19d7'),'msg':_0x3e00bd[_0x400c0c('0x10fd')]?JSON[_0x400c0c('0xa48')](_0x3e00bd[_0x400c0c('0x10fd')]):_0x3e00bd[_0x400c0c('0x684')]()});});function _0x7376b4(){var _0x38c582=_0x287ba3;_0x4ede09[_0x38c582('0x4c6')]=[];var _0x360423=[];_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x6c8')]&&_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x6c8')][_0x38c582('0xcf6')]()===_0x38c582('0x19d1')&&_0x4ede09[_0x38c582('0x2067')][_0x38c582('0xe6d')]===_0x38c582('0x8da')&&(_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x1a46')]=_0xf28501[_0x38c582('0x888')]?(_0x4ede09['agi'][_0x38c582('0x1b8f')]||'')+_0x38c582('0x117e')+_0xf28501[_0x38c582('0x888')]+'}':(_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x1b8f')]||'')+_0x38c582('0x1f87'),_0xf28501[_0x38c582('0x1e0f')]!==_0x38c582('0x117')?_0x4ede09['agi'][_0x38c582('0x1b36')][_0x38c582('0x1f38')](_0x38c582('0x266a'))<0x0&&(_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x1b36')]=_0x4ede09['agi'][_0x38c582('0x1b36')][_0x38c582('0x170d')](_0x38c582('0x266a'),''));if(_0x4ede09[_0x38c582('0x2067')]['appType']&&_0x4ede09[_0x38c582('0x2067')]['appType']===_0x38c582('0x113b')){}else switch((_0x4ede09['agi'][_0x38c582('0x9eb')]||_0x4ede09[_0x38c582('0x2067')][_0x38c582('0xe6d')])['toLowerCase']()){case'set':_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x124b')]=_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x25d6')]+'='+_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x12f4')];break;case _0x38c582('0x113b'):break;default:_0x360423[0x0]=_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x24b9')],_0x4ede09[_0x38c582('0x2067')][_0x38c582('0x124b')]=_0x360423['join'](',');}_0x5a0c7b(_0x4ede09[_0x38c582('0x2067')]);}function _0x5a0c7b(_0x443420){_0x161ceb['hide'](_0x443420);}}const _0x472a25=_0x9fa25c;_0x282336[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x282336(_0x2092a1,_0x128c09,_0x3e1456,_0x268c0c,_0x58e16e,_0x4f07c4,_0x46bda3,_0xa1df7e){var _0x4a3fcc=_0x1a8446,_0x17b2cf=this;_0x17b2cf[_0x4a3fcc('0x7fc')]=_0x46bda3['getCurrentUser'](),_0x17b2cf[_0x4a3fcc('0x4c6')]=[],_0x17b2cf[_0x4a3fcc('0x110a')]=_0x4a3fcc('0x484')+(_0x268c0c[_0x4a3fcc('0xe6d')]||_0x268c0c[_0x4a3fcc('0x9eb')])['toUpperCase'](),_0x17b2cf[_0x4a3fcc('0x113b')]=angular[_0x4a3fcc('0x20a')](_0x268c0c),_0x17b2cf[_0x4a3fcc('0xada')]=_0xa1df7e,_0x17b2cf[_0x4a3fcc('0x9f0')]={};if(_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x124b')])switch(_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0xe6d')]?_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0xe6d')][_0x4a3fcc('0xcf6')]():_0x17b2cf['custom'][_0x4a3fcc('0x9eb')][_0x4a3fcc('0xcf6')]()){case _0x4a3fcc('0x113b'):break;case _0x4a3fcc('0x67c'):{var _0x51780b=_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x124b')][_0x4a3fcc('0x1a39')](',');_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x24ec')]=_0x51780b[0x0],_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x1938')]=_0x51780b[0x1],_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x273')]=_0x51780b['slice'](0x2,_0x51780b['length'])[_0x4a3fcc('0x19c4')](',');}break;case _0x4a3fcc('0x3f5'):{var _0xd08d64=_0x17b2cf['custom'][_0x4a3fcc('0x124b')]['split'](',');_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0xc07')]=_0xd08d64[0x0],_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x15f9')]=_0xd08d64[0x1],_0x17b2cf['custom'][_0x4a3fcc('0xa9a')]=_0xd08d64[0x2],_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x18ee')]=_0xd08d64[0x3],_0x17b2cf[_0x4a3fcc('0x113b')]['welcomemessage']=_0xd08d64['slice'](0x4,_0xd08d64[_0x4a3fcc('0x2587')])[_0x4a3fcc('0x19c4')](',');}break;case'autoreply':{var _0xc48225=_0x17b2cf[_0x4a3fcc('0x113b')]['appdata']['split'](',');_0x17b2cf['custom'][_0x4a3fcc('0x11b6')]=isNaN(_0xc48225[0x0])?_0xc48225[0x0]:parseInt(_0xc48225[0x0],0xa),_0x17b2cf[_0x4a3fcc('0x113b')]['text']=_0xc48225['slice'](0x1,_0xc48225[_0x4a3fcc('0x2587')])[_0x4a3fcc('0x19c4')](',');}break;case _0x4a3fcc('0x1402'):_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0xb37')]=_0x17b2cf['custom']['appdata'];break;case _0x4a3fcc('0x282c'):_0x17b2cf['custom'][_0x4a3fcc('0x25d6')]=_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x124b')][_0x4a3fcc('0x1a39')]('=')[0x0],_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x12f4')]=_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x124b')][_0x4a3fcc('0x1a39')]('=')[0x1];break;case _0x4a3fcc('0x2067'):_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x24b9')]=_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x124b')];break;default:{var _0x3b6183=_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x124b')][_0x4a3fcc('0x1a39')](',');_0x17b2cf['custom']['app']=_0x51538b()[_0x4a3fcc('0x116b')](_0x3b6183[0x0])?_0x3b6183[0x0]:isNaN(_0x3b6183[0x0])?_0x3b6183[0x0]:parseInt(_0x3b6183[0x0],0xa),_0x17b2cf[_0x4a3fcc('0x113b')]['appdata']=_0x51538b()[_0x4a3fcc('0x116b')](_0x3b6183[0x1])?_0x3b6183[0x1]:isNaN(_0x3b6183[0x1])?_0x3b6183[0x1]:parseInt(_0x3b6183[0x1],0xa);}break;}else{}_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x6c8')]&&_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x6c8')][_0x4a3fcc('0xcf6')]()===_0x4a3fcc('0x19d1')&&_0x17b2cf[_0x4a3fcc('0x113b')]['appType'][_0x4a3fcc('0xcf6')]()===_0x4a3fcc('0x1e7f')&&(_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x1b8f')]=_0x17b2cf['custom'][_0x4a3fcc('0x1a46')]?_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x1a46')][_0x4a3fcc('0x1a39')]('$')[0x0]:undefined,_0x17b2cf['custom']['callerId']=_0x17b2cf[_0x4a3fcc('0x113b')][_0x4a3fcc('0x514')]?_0x4a3fcc('0x23d8')+_0x17b2cf['custom'][_0x4a3fcc('0x514')]:undefined);_0x17b2cf['saveInternalRouteApp']=_0x10f97e,_0x17b2cf['closeDialog']=_0x2f6e15;function _0x10f97e(){var _0x1f0e99=_0x4a3fcc;_0x17b2cf[_0x1f0e99('0x4c6')]=[];var _0x3de83c=[];_0x17b2cf['custom'][_0x1f0e99('0x6c8')]&&_0x17b2cf[_0x1f0e99('0x113b')][_0x1f0e99('0x6c8')][_0x1f0e99('0xcf6')]()===_0x1f0e99('0x19d1')&&_0x17b2cf[_0x1f0e99('0x113b')]['appType']===_0x1f0e99('0x8da')&&(_0x17b2cf[_0x1f0e99('0x113b')][_0x1f0e99('0x1a46')]=_0x58e16e[_0x1f0e99('0x888')]?(_0x17b2cf[_0x1f0e99('0x113b')]['prefix']||'')+_0x1f0e99('0x117e')+_0x58e16e['cutdigits']+'}':(_0x17b2cf['custom'][_0x1f0e99('0x1b8f')]||'')+'${EXTEN}',_0x58e16e[_0x1f0e99('0x1e0f')]!=='none'?_0x17b2cf[_0x1f0e99('0x113b')]['options']['indexOf'](_0x1f0e99('0x266a'))<0x0&&(_0x17b2cf[_0x1f0e99('0x113b')][_0x1f0e99('0x1b36')]+=_0x1f0e99('0x266a')):_0x17b2cf[_0x1f0e99('0x113b')][_0x1f0e99('0x1b36')]=_0x17b2cf[_0x1f0e99('0x113b')]['options'][_0x1f0e99('0x170d')](_0x1f0e99('0x266a'),''));if(_0x17b2cf['custom']['appType']&&_0x17b2cf[_0x1f0e99('0x113b')][_0x1f0e99('0xe6d')]===_0x1f0e99('0x113b')){}else switch((_0x17b2cf['custom'][_0x1f0e99('0x9eb')]||_0x17b2cf['custom']['appType'])['toLowerCase']()){case'set':_0x17b2cf['custom'][_0x1f0e99('0x124b')]=_0x17b2cf[_0x1f0e99('0x113b')]['name']+'='+_0x17b2cf['custom'][_0x1f0e99('0x12f4')];break;case _0x1f0e99('0x113b'):break;default:_0x3de83c[0x0]=_0x17b2cf[_0x1f0e99('0x113b')][_0x1f0e99('0x9eb')],_0x3de83c[0x1]=_0x17b2cf[_0x1f0e99('0x113b')][_0x1f0e99('0x124b')],_0x17b2cf[_0x1f0e99('0x113b')][_0x1f0e99('0x124b')]=_0x3de83c[_0x1f0e99('0x19c4')](',');}_0x2f6e15(_0x17b2cf['custom']);}function _0x2f6e15(_0x540994){var _0x2fbf05=_0x4a3fcc;_0x2092a1[_0x2fbf05('0x1120')](_0x540994);}}const _0x4271c2=_0x282336;_0x588f31[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x588f31(_0x404749,_0x49e764,_0x565a86,_0x1010aa,_0x2caad1,_0x246c31,_0x1bf436,_0x40207f){var _0x2aa2c6=_0x1a8446,_0x459d62=this;_0x459d62[_0x2aa2c6('0x7fc')]=_0x1bf436[_0x2aa2c6('0xacc')](),_0x459d62[_0x2aa2c6('0x4c6')]=[],_0x459d62[_0x2aa2c6('0x110a')]=_0x2aa2c6('0x484')+(_0x1010aa[_0x2aa2c6('0xe6d')]||_0x1010aa[_0x2aa2c6('0x9eb')])[_0x2aa2c6('0x1d08')](),_0x459d62[_0x2aa2c6('0xfab')]=angular[_0x2aa2c6('0x20a')](_0x1010aa),_0x459d62['crudPermissions']=_0x40207f,_0x459d62['hasModulePermissions']={};if(_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x124b')])switch(_0x459d62['dial'][_0x2aa2c6('0xe6d')]?_0x459d62['dial'][_0x2aa2c6('0xe6d')][_0x2aa2c6('0xcf6')]():_0x459d62['dial'][_0x2aa2c6('0x9eb')][_0x2aa2c6('0xcf6')]()){case _0x2aa2c6('0x113b'):break;case _0x2aa2c6('0x67c'):{var _0x2290d1=_0x459d62[_0x2aa2c6('0xfab')]['appdata'][_0x2aa2c6('0x1a39')](',');_0x459d62['dial'][_0x2aa2c6('0x24ec')]=_0x2290d1[0x0],_0x459d62['dial']['language']=_0x2290d1[0x1],_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x273')]=_0x2290d1[_0x2aa2c6('0x19aa')](0x2,_0x2290d1[_0x2aa2c6('0x2587')])[_0x2aa2c6('0x19c4')](',');}break;case'amazonlex':{var _0x35c8a3=_0x459d62[_0x2aa2c6('0xfab')]['appdata'][_0x2aa2c6('0x1a39')](',');_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0xc07')]=_0x35c8a3[0x0],_0x459d62['dial'][_0x2aa2c6('0x15f9')]=_0x35c8a3[0x1],_0x459d62[_0x2aa2c6('0xfab')]['lexregion']=_0x35c8a3[0x2],_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x18ee')]=_0x35c8a3[0x3],_0x459d62[_0x2aa2c6('0xfab')]['welcomemessage']=_0x35c8a3[_0x2aa2c6('0x19aa')](0x4,_0x35c8a3['length'])['join'](',');}break;case'autoreply':{var _0x38d1d8=_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x124b')][_0x2aa2c6('0x1a39')](',');_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x11b6')]=isNaN(_0x38d1d8[0x0])?_0x38d1d8[0x0]:parseInt(_0x38d1d8[0x0],0xa),_0x459d62['dial'][_0x2aa2c6('0xb37')]=_0x38d1d8['slice'](0x1,_0x38d1d8[_0x2aa2c6('0x2587')])[_0x2aa2c6('0x19c4')](',');}break;case _0x2aa2c6('0x1402'):_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0xb37')]=_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x124b')];break;case _0x2aa2c6('0x282c'):_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x25d6')]=_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x124b')][_0x2aa2c6('0x1a39')]('=')[0x0],_0x459d62[_0x2aa2c6('0xfab')]['value']=_0x459d62['dial'][_0x2aa2c6('0x124b')][_0x2aa2c6('0x1a39')]('=')[0x1];break;case _0x2aa2c6('0x2067'):_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x24b9')]=_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x124b')];break;default:{var _0x49af06=_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x124b')][_0x2aa2c6('0x1a39')](',');_0x459d62[_0x2aa2c6('0xfab')]['tech']=_0x51538b()[_0x2aa2c6('0x116b')](_0x49af06[0x0])?_0x49af06[0x0]:isNaN(_0x49af06[0x0])?_0x49af06[0x0]:parseInt(_0x49af06[0x0],0xa),_0x459d62['dial'][_0x2aa2c6('0x23c0')]=_0x51538b()[_0x2aa2c6('0x116b')](_0x49af06[0x1])?_0x49af06[0x1]:isNaN(_0x49af06[0x1])?_0x49af06[0x1]:parseInt(_0x49af06[0x1],0xa),_0x459d62['dial'][_0x2aa2c6('0x1b36')]=_0x51538b()[_0x2aa2c6('0x116b')](_0x49af06[0x2])?_0x49af06[0x2]:isNaN(_0x49af06[0x2])?_0x49af06[0x2]:parseInt(_0x49af06[0x2],0xa),_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x2242')]=_0x51538b()[_0x2aa2c6('0x116b')](_0x49af06[0x3])?_0x49af06[0x3]:isNaN(_0x49af06[0x3])?_0x49af06[0x3]:parseInt(_0x49af06[0x3],0xa);}break;}else{}_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x6c8')]&&_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x6c8')][_0x2aa2c6('0xcf6')]()===_0x2aa2c6('0x19d1')&&_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0xe6d')][_0x2aa2c6('0xcf6')]()==='outbounddial'&&(_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x1b8f')]=_0x459d62['dial'][_0x2aa2c6('0x1a46')]?_0x459d62['dial'][_0x2aa2c6('0x1a46')][_0x2aa2c6('0x1a39')]('$')[0x0]:undefined,_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0xeed')]=_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x514')]?'CALLERID(all)='+_0x459d62[_0x2aa2c6('0xfab')][_0x2aa2c6('0x514')]:undefined);_0x459d62[_0x2aa2c6('0xa8')]=_0x2b2d18,_0x459d62['closeDialog']=_0x5579d5;function _0x2b2d18(){var _0x539371=_0x2aa2c6;_0x459d62[_0x539371('0x4c6')]=[];var _0x2f99f1=[];_0x459d62[_0x539371('0xfab')]['type']&&_0x459d62[_0x539371('0xfab')]['type'][_0x539371('0xcf6')]()===_0x539371('0x19d1')&&_0x459d62[_0x539371('0xfab')][_0x539371('0xe6d')]===_0x539371('0x8da')&&(_0x459d62['dial']['phone']=_0x2caad1['cutdigits']?(_0x459d62[_0x539371('0xfab')][_0x539371('0x1b8f')]||'')+_0x539371('0x117e')+_0x2caad1['cutdigits']+'}':(_0x459d62[_0x539371('0xfab')][_0x539371('0x1b8f')]||'')+'${EXTEN}',_0x2caad1[_0x539371('0x1e0f')]!==_0x539371('0x117')?_0x459d62[_0x539371('0xfab')][_0x539371('0x1b36')]['indexOf'](_0x539371('0x266a'))<0x0&&(_0x459d62[_0x539371('0xfab')][_0x539371('0x1b36')]+=_0x539371('0x266a')):_0x459d62[_0x539371('0xfab')][_0x539371('0x1b36')]=_0x459d62[_0x539371('0xfab')][_0x539371('0x1b36')]['replace'](_0x539371('0x266a'),''));if(_0x459d62['dial'][_0x539371('0xe6d')]&&_0x459d62[_0x539371('0xfab')][_0x539371('0xe6d')]===_0x539371('0x113b')){}else switch((_0x459d62['dial'][_0x539371('0x9eb')]||_0x459d62['dial'][_0x539371('0xe6d')])[_0x539371('0xcf6')]()){case _0x539371('0x282c'):_0x459d62[_0x539371('0xfab')][_0x539371('0x124b')]=_0x459d62['dial'][_0x539371('0x25d6')]+'='+_0x459d62[_0x539371('0xfab')]['value'];break;case _0x539371('0x113b'):break;default:_0x2f99f1[0x0]=_0x459d62['dial'][_0x539371('0x130f')],_0x2f99f1[0x1]=_0x459d62[_0x539371('0xfab')][_0x539371('0x23c0')],_0x2f99f1[0x2]=_0x459d62['dial'][_0x539371('0x1b36')],_0x2f99f1[0x3]=_0x459d62[_0x539371('0xfab')][_0x539371('0x2242')],_0x459d62[_0x539371('0xfab')][_0x539371('0x124b')]=_0x2f99f1[_0x539371('0x19c4')](',');}_0x5579d5(_0x459d62[_0x539371('0xfab')]);}function _0x5579d5(_0x26b3d2){var _0xeaae4c=_0x2aa2c6;_0x404749[_0xeaae4c('0x1120')](_0x26b3d2);}}const _0x4110ef=_0x588f31;_0x58309f[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x58309f(_0x2187dd,_0x20247d,_0x2f8af1,_0x25d9ec,_0x235115,_0x178c07,_0x4d3955,_0x3e91d4){var _0x5e9381=_0x1a8446,_0x27e80c=this;_0x27e80c[_0x5e9381('0x7fc')]=_0x4d3955[_0x5e9381('0xacc')](),_0x27e80c['errors']=[],_0x27e80c[_0x5e9381('0x110a')]=_0x5e9381('0x484')+(_0x25d9ec[_0x5e9381('0xe6d')]||_0x25d9ec[_0x5e9381('0x9eb')])[_0x5e9381('0x1d08')](),_0x27e80c[_0x5e9381('0x1bd8')]=angular[_0x5e9381('0x20a')](_0x25d9ec),_0x27e80c[_0x5e9381('0xada')]=_0x3e91d4,_0x27e80c[_0x5e9381('0x9f0')]={};if(_0x27e80c['externaldial'][_0x5e9381('0x124b')])switch(_0x27e80c[_0x5e9381('0x1bd8')]['appType']?_0x27e80c['externaldial'][_0x5e9381('0xe6d')]['toLowerCase']():_0x27e80c['externaldial'][_0x5e9381('0x9eb')][_0x5e9381('0xcf6')]()){case _0x5e9381('0x113b'):break;case'dialogflow':{var _0x5ed98c=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x124b')][_0x5e9381('0x1a39')](',');_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x24ec')]=_0x5ed98c[0x0],_0x27e80c[_0x5e9381('0x1bd8')]['language']=_0x5ed98c[0x1],_0x27e80c['externaldial'][_0x5e9381('0x273')]=_0x5ed98c[_0x5e9381('0x19aa')](0x2,_0x5ed98c[_0x5e9381('0x2587')])[_0x5e9381('0x19c4')](',');}break;case _0x5e9381('0x3f5'):{var _0x6e47db=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x124b')][_0x5e9381('0x1a39')](',');_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0xc07')]=_0x6e47db[0x0],_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x15f9')]=_0x6e47db[0x1],_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0xa9a')]=_0x6e47db[0x2],_0x27e80c['externaldial'][_0x5e9381('0x18ee')]=_0x6e47db[0x3],_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x273')]=_0x6e47db['slice'](0x4,_0x6e47db['length'])['join'](',');}break;case _0x5e9381('0x1b05'):{var _0x1d222d=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x124b')][_0x5e9381('0x1a39')](',');_0x27e80c[_0x5e9381('0x1bd8')]['times']=isNaN(_0x1d222d[0x0])?_0x1d222d[0x0]:parseInt(_0x1d222d[0x0],0xa),_0x27e80c[_0x5e9381('0x1bd8')]['text']=_0x1d222d[_0x5e9381('0x19aa')](0x1,_0x1d222d['length'])['join'](',');}break;case _0x5e9381('0x1402'):_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0xb37')]=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x124b')];break;case _0x5e9381('0x282c'):_0x27e80c['externaldial'][_0x5e9381('0x25d6')]=_0x27e80c['externaldial'][_0x5e9381('0x124b')][_0x5e9381('0x1a39')]('=')[0x0],_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x12f4')]=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x124b')]['split']('=')[0x1];break;case'agi':_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x24b9')]=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x124b')];break;default:{var _0x48a0f7=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x124b')][_0x5e9381('0x1a39')](',');_0x27e80c[_0x5e9381('0x1bd8')]['trunk']=_0x48a0f7[0x0][_0x5e9381('0x1a39')]('/')[0x1],_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x1a46')]=_0x48a0f7[0x0]['split']('/')[0x2],_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x23c0')]=_0x51538b()['isEmpty'](_0x48a0f7[0x1])?_0x48a0f7[0x1]:isNaN(_0x48a0f7[0x1])?_0x48a0f7[0x1]:parseInt(_0x48a0f7[0x1],0xa),_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x1b36')]=_0x51538b()[_0x5e9381('0x116b')](_0x48a0f7[0x2])?_0x48a0f7[0x2]:isNaN(_0x48a0f7[0x2])?_0x48a0f7[0x2]:parseInt(_0x48a0f7[0x2],0xa),_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x2242')]=_0x51538b()['isEmpty'](_0x48a0f7[0x3])?_0x48a0f7[0x3]:isNaN(_0x48a0f7[0x3])?_0x48a0f7[0x3]:parseInt(_0x48a0f7[0x3],0xa);}break;}else{}_0x27e80c[_0x5e9381('0x1bd8')]['type']&&_0x27e80c[_0x5e9381('0x1bd8')]['type']['toLowerCase']()===_0x5e9381('0x19d1')&&_0x27e80c['externaldial'][_0x5e9381('0xe6d')]['toLowerCase']()==='outbounddial'&&(_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x1b8f')]=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x1a46')]?_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x1a46')][_0x5e9381('0x1a39')]('$')[0x0]:undefined,_0x27e80c['externaldial'][_0x5e9381('0xeed')]=_0x27e80c[_0x5e9381('0x1bd8')][_0x5e9381('0x514')]?_0x5e9381('0x23d8')+_0x27e80c['externaldial'][_0x5e9381('0x514')]:undefined);_0x27e80c[_0x5e9381('0xa8')]=_0xe52a56,_0x27e80c[_0x5e9381('0x2023')]=_0x103362,_0x4d3955[_0x5e9381('0x26e8')](_0x5e9381('0x178b'))?_0x178c07['trunk']['get']({'fields':_0x5e9381('0x17fe'),'sort':_0x5e9381('0x25d6'),'nolimit':_0x5e9381('0x1c5c')})[_0x5e9381('0x1dc2')][_0x5e9381('0xaa5')](function(_0x3ad9a4){var _0x5dddbc=_0x5e9381;_0x27e80c[_0x5dddbc('0x1bc2')]=_0x3ad9a4['rows']||[];})[_0x5e9381('0x253d')](function(_0x45035a){var _0x5b07ab=_0x5e9381;_0x2f8af1['error']({'title':_0x45035a['status']?_0x5b07ab('0x16c2')+_0x45035a[_0x5b07ab('0x2fa')]+_0x5b07ab('0x169e')+_0x45035a[_0x5b07ab('0x24df')]:_0x5b07ab('0x298'),'msg':_0x45035a[_0x5b07ab('0x10fd')]?JSON[_0x5b07ab('0xa48')](_0x45035a[_0x5b07ab('0x10fd')]):_0x45035a[_0x5b07ab('0x684')]()});}):_0x178c07[_0x5e9381('0x1651')][_0x5e9381('0x2122')]({'fields':_0x5e9381('0x17fe'),'sort':_0x5e9381('0x25d6'),'nolimit':_0x5e9381('0x1c5c')})[_0x5e9381('0x1dc2')][_0x5e9381('0xaa5')](function(_0x376ed6){var _0x128b1a=_0x5e9381;_0x27e80c['trunks']=_0x376ed6[_0x128b1a('0x580')]||[];})[_0x5e9381('0xaa5')](function(){var _0x461b40=_0x5e9381;return _0x178c07[_0x461b40('0x1a50')][_0x461b40('0x2122')]({'userProfileId':_0x27e80c[_0x461b40('0x7fc')][_0x461b40('0x2168')],'sectionId':0x3f3})[_0x461b40('0x1dc2')];})[_0x5e9381('0xaa5')](function(_0x326fac){var _0x4d575e=_0x5e9381,_0xbe0c03=_0x326fac&&_0x326fac[_0x4d575e('0x580')]?_0x326fac[_0x4d575e('0x580')][0x0]:null;if(!_0xbe0c03){var _0x463242=[],_0x189bc4=null;_0x27e80c[_0x4d575e('0x1bd8')]&&(_0x189bc4=_0x51538b()[_0x4d575e('0xe9e')](_0x27e80c['trunks'],{'name':_0x27e80c[_0x4d575e('0x1bd8')][_0x4d575e('0x1651')]}));for(var _0x2073c5=0x0;_0x2073c5<_0x27e80c[_0x4d575e('0x1bc2')][_0x4d575e('0x2587')];_0x2073c5++){_0x189bc4&&_0x27e80c['trunks'][_0x2073c5]['id']===_0x189bc4['id']&&(_0x27e80c['trunks'][_0x2073c5][_0x4d575e('0x12eb')]=![],_0x463242['push'](_0x27e80c[_0x4d575e('0x1bc2')][_0x2073c5]));}_0x27e80c['trunks']=_0x463242;}else{if(!_0xbe0c03[_0x4d575e('0x26cc')])return _0x178c07[_0x4d575e('0x249a')]['get']({'sectionId':_0xbe0c03['id']})[_0x4d575e('0x1dc2')][_0x4d575e('0xaa5')](function(_0x586c82){var _0xa14a22=_0x4d575e,_0x19bf9f=_0x51538b()[_0xa14a22('0x1246')](_0x586c82[_0xa14a22('0x580')],function(_0xaae979){var _0xd92c08=_0xa14a22;return _0x51538b()[_0xd92c08('0xe9e')](_0x27e80c[_0xd92c08('0x1bc2')],{'id':_0xaae979['resourceId']});}),_0x2f0552=null;_0x27e80c['externaldial']&&(_0x2f0552=_0x51538b()[_0xa14a22('0xe9e')](_0x27e80c[_0xa14a22('0x1bc2')],{'name':_0x27e80c['externaldial'][_0xa14a22('0x1651')]}));if(_0x2f0552&&!_0x51538b()[_0xa14a22('0x2c2')](_0x19bf9f,['id',_0x2f0552['id']])){var _0x503b84=_0x51538b()[_0xa14a22('0xe9e')](_0x27e80c['trunks'],{'id':_0x2f0552['id']});_0x503b84[_0xa14a22('0x12eb')]=![],_0x19bf9f[_0xa14a22('0x1599')](_0x503b84);}_0x27e80c[_0xa14a22('0x1bc2')]=_0x19bf9f;});}})[_0x5e9381('0x253d')](function(_0x548944){var _0x5ed427=_0x5e9381;_0x2f8af1[_0x5ed427('0x187f')]({'title':_0x548944['status']?_0x5ed427('0x16c2')+_0x548944[_0x5ed427('0x2fa')]+_0x5ed427('0x169e')+_0x548944[_0x5ed427('0x24df')]:_0x5ed427('0x117a'),'msg':_0x548944['data']?JSON['stringify'](_0x548944['data']):_0x548944[_0x5ed427('0x684')]()});});function _0xe52a56(){var _0x564f9c=_0x5e9381;_0x27e80c[_0x564f9c('0x4c6')]=[];var _0x459ddf=[];_0x27e80c['externaldial'][_0x564f9c('0x6c8')]&&_0x27e80c['externaldial']['type'][_0x564f9c('0xcf6')]()===_0x564f9c('0x19d1')&&_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0xe6d')]===_0x564f9c('0x8da')&&(_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x1a46')]=_0x235115[_0x564f9c('0x888')]?(_0x27e80c['externaldial'][_0x564f9c('0x1b8f')]||'')+'${EXTEN:'+_0x235115[_0x564f9c('0x888')]+'}':(_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x1b8f')]||'')+'${EXTEN}',_0x235115[_0x564f9c('0x1e0f')]!==_0x564f9c('0x117')?_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x1b36')][_0x564f9c('0x1f38')](_0x564f9c('0x266a'))<0x0&&(_0x27e80c['externaldial'][_0x564f9c('0x1b36')]+=_0x564f9c('0x266a')):_0x27e80c[_0x564f9c('0x1bd8')]['options']=_0x27e80c[_0x564f9c('0x1bd8')]['options']['replace'](_0x564f9c('0x266a'),''));if(_0x27e80c[_0x564f9c('0x1bd8')]['appType']&&_0x27e80c[_0x564f9c('0x1bd8')]['appType']===_0x564f9c('0x113b')){}else switch((_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x9eb')]||_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0xe6d')])[_0x564f9c('0xcf6')]()){case'set':_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x124b')]=_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x25d6')]+'='+_0x27e80c['externaldial'][_0x564f9c('0x12f4')];break;case'custom':break;default:_0x459ddf[0x0]=[_0x564f9c('0x1a48'),_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x1651')],_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x1a46')]][_0x564f9c('0x19c4')]('/'),_0x459ddf[0x1]=_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x23c0')],_0x459ddf[0x2]=_0x27e80c['externaldial'][_0x564f9c('0x1b36')],_0x459ddf[0x3]=_0x27e80c['externaldial']['url'],_0x27e80c[_0x564f9c('0x1bd8')][_0x564f9c('0x124b')]=_0x459ddf[_0x564f9c('0x19c4')](',');}_0x103362(_0x27e80c[_0x564f9c('0x1bd8')]);}function _0x103362(_0xaeeb64){var _0x4ca051=_0x5e9381;_0x2187dd[_0x4ca051('0x1120')](_0xaeeb64);}}const _0x15467a=_0x58309f;_0x51cca5[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1258'),_0x1a8446('0x212f'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x51cca5(_0x14bd29,_0x2a31d0,_0x1b0a33,_0x30d963,_0x524b93,_0x211baf,_0x495a89,_0x400156){var _0x396aa7=_0x1a8446,_0xf27551=this;_0xf27551[_0x396aa7('0x7fc')]=_0x495a89[_0x396aa7('0xacc')](),_0xf27551[_0x396aa7('0x4c6')]=[],_0xf27551['title']=_0x396aa7('0x484')+(_0x30d963[_0x396aa7('0xe6d')]||_0x30d963[_0x396aa7('0x9eb')])[_0x396aa7('0x1d08')](),_0xf27551['goto']=angular[_0x396aa7('0x20a')](_0x30d963),_0xf27551[_0x396aa7('0xada')]=_0x400156,_0xf27551[_0x396aa7('0x9f0')]={};if(_0xf27551['goto']['appdata'])switch(_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0xe6d')]?_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0xe6d')][_0x396aa7('0xcf6')]():_0xf27551[_0x396aa7('0x2781')]['app']['toLowerCase']()){case'custom':break;case _0x396aa7('0x67c'):{var _0x155edc=_0xf27551['goto'][_0x396aa7('0x124b')]['split'](',');_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x24ec')]=_0x155edc[0x0],_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x1938')]=_0x155edc[0x1],_0xf27551[_0x396aa7('0x2781')]['welcomemessage']=_0x155edc[_0x396aa7('0x19aa')](0x2,_0x155edc['length'])[_0x396aa7('0x19c4')](',');}break;case _0x396aa7('0x3f5'):{var _0x3439dd=_0xf27551['goto'][_0x396aa7('0x124b')]['split'](',');_0xf27551[_0x396aa7('0x2781')]['accesskeyid']=_0x3439dd[0x0],_0xf27551['goto']['secretaccesskey']=_0x3439dd[0x1],_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0xa9a')]=_0x3439dd[0x2],_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x18ee')]=_0x3439dd[0x3],_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x273')]=_0x3439dd[_0x396aa7('0x19aa')](0x4,_0x3439dd['length'])[_0x396aa7('0x19c4')](',');}break;case _0x396aa7('0x1b05'):{var _0x3ffbe6=_0xf27551['goto'][_0x396aa7('0x124b')][_0x396aa7('0x1a39')](',');_0xf27551['goto'][_0x396aa7('0x11b6')]=isNaN(_0x3ffbe6[0x0])?_0x3ffbe6[0x0]:parseInt(_0x3ffbe6[0x0],0xa),_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0xb37')]=_0x3ffbe6[_0x396aa7('0x19aa')](0x1,_0x3ffbe6[_0x396aa7('0x2587')])[_0x396aa7('0x19c4')](',');}break;case'message':_0xf27551['goto'][_0x396aa7('0xb37')]=_0xf27551[_0x396aa7('0x2781')]['appdata'];break;case _0x396aa7('0x282c'):_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x25d6')]=_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x124b')][_0x396aa7('0x1a39')]('=')[0x0],_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x12f4')]=_0xf27551[_0x396aa7('0x2781')]['appdata'][_0x396aa7('0x1a39')]('=')[0x1];break;case _0x396aa7('0x2067'):_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x24b9')]=_0xf27551['goto'][_0x396aa7('0x124b')];break;default:{var _0x26c92f=_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x124b')][_0x396aa7('0x1a39')](',');_0xf27551[_0x396aa7('0x2781')]['context']=_0x51538b()[_0x396aa7('0x116b')](_0x26c92f[0x0])?_0x26c92f[0x0]:isNaN(_0x26c92f[0x0])?_0x26c92f[0x0]:parseInt(_0x26c92f[0x0],0xa),_0xf27551['goto'][_0x396aa7('0xc68')]=_0x51538b()[_0x396aa7('0x116b')](_0x26c92f[0x1])?_0x26c92f[0x1]:isNaN(_0x26c92f[0x1])?_0x26c92f[0x1]:parseInt(_0x26c92f[0x1],0xa),_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x13f2')]=_0x51538b()[_0x396aa7('0x116b')](_0x26c92f[0x2])?_0x26c92f[0x2]:isNaN(_0x26c92f[0x2])?_0x26c92f[0x2]:parseInt(_0x26c92f[0x2],0xa);}break;}else{}_0xf27551['goto'][_0x396aa7('0x6c8')]&&_0xf27551[_0x396aa7('0x2781')]['type'][_0x396aa7('0xcf6')]()==='outbound'&&_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0xe6d')]['toLowerCase']()===_0x396aa7('0x1e7f')&&(_0xf27551[_0x396aa7('0x2781')]['prefix']=_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x1a46')]?_0xf27551[_0x396aa7('0x2781')]['phone'][_0x396aa7('0x1a39')]('$')[0x0]:undefined,_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0xeed')]=_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x514')]?_0x396aa7('0x23d8')+_0xf27551[_0x396aa7('0x2781')][_0x396aa7('0x514')]:undefined);_0xf27551[_0x396aa7('0xa8')]=_0x4ee406,_0xf27551[_0x396aa7('0x2023')]=_0xca8975,_0x495a89['hasRole'](_0x396aa7('0x178b'))?_0x211baf[_0x396aa7('0x68c')][_0x396aa7('0x2122')]({'fields':_0x396aa7('0x17fe'),'sort':_0x396aa7('0x25d6'),'nolimit':_0x396aa7('0x1c5c')})[_0x396aa7('0x1dc2')][_0x396aa7('0xaa5')](function(_0x17900e){var _0x8b9dc2=_0x396aa7;_0xf27551['contexts']=_0x17900e[_0x8b9dc2('0x580')]||[];})['catch'](function(_0x33fbb8){var _0x173f6a=_0x396aa7;_0x1b0a33['error']({'title':_0x33fbb8[_0x173f6a('0x2fa')]?_0x173f6a('0x16c2')+_0x33fbb8['status']+_0x173f6a('0x169e')+_0x33fbb8[_0x173f6a('0x24df')]:_0x173f6a('0x1393'),'msg':_0x33fbb8[_0x173f6a('0x10fd')]?JSON['stringify'](_0x33fbb8[_0x173f6a('0x10fd')]):_0x33fbb8[_0x173f6a('0x684')]()});}):_0x211baf[_0x396aa7('0x68c')][_0x396aa7('0x2122')]({'fields':_0x396aa7('0x17fe'),'sort':'name','nolimit':_0x396aa7('0x1c5c')})[_0x396aa7('0x1dc2')]['then'](function(_0x134572){var _0x21ba28=_0x396aa7;_0xf27551[_0x21ba28('0xdc5')]=_0x134572[_0x21ba28('0x580')]||[];})['then'](function(){var _0x29c361=_0x396aa7;return _0x211baf[_0x29c361('0x1a50')][_0x29c361('0x2122')]({'userProfileId':_0xf27551['currentUser'][_0x29c361('0x2168')],'sectionId':0x195})[_0x29c361('0x1dc2')];})[_0x396aa7('0xaa5')](function(_0xbfd033){var _0xfc8e95=_0x396aa7,_0x248231=_0xbfd033&&_0xbfd033[_0xfc8e95('0x580')]?_0xbfd033[_0xfc8e95('0x580')][0x0]:null;if(!_0x248231)return _0x211baf['voiceContext'][_0xfc8e95('0x2122')]({'fields':'id,name','sort':'name','nolimit':_0xfc8e95('0x1c5c'),'defaultEntry':0x1})['$promise'][_0xfc8e95('0xaa5')](function(_0xc78a58){_0xf27551['contexts']=_0xc78a58['rows']||[];});else{if(!_0x248231['autoAssociation'])return _0x211baf[_0xfc8e95('0x249a')][_0xfc8e95('0x2122')]({'sectionId':_0x248231['id']})['$promise'][_0xfc8e95('0xaa5')](function(_0x526a03){var _0x1a14fb=_0xfc8e95,_0x1320f5=_0x51538b()[_0x1a14fb('0x1246')](_0x526a03[_0x1a14fb('0x580')],function(_0x25f0b3){var _0x11a85b=_0x1a14fb;return _0x51538b()['find'](_0xf27551[_0x11a85b('0xdc5')],{'id':_0x25f0b3[_0x11a85b('0xbcd')]});}),_0x2255fd=null;_0xf27551['goto']&&(_0x2255fd=_0x51538b()[_0x1a14fb('0xe9e')](_0xf27551['contexts'],{'name':_0xf27551[_0x1a14fb('0x2781')][_0x1a14fb('0x19cd')]}));if(_0x2255fd&&!_0x51538b()[_0x1a14fb('0x2c2')](_0x1320f5,['id',_0x2255fd['id']])){var _0x396fd3=_0x51538b()['find'](_0xf27551[_0x1a14fb('0xdc5')],{'id':_0x2255fd['id']});_0x396fd3['canSelect']=![],_0x1320f5['push'](_0x396fd3);}_0xf27551['contexts']=_0x1320f5;});}})[_0x396aa7('0x253d')](function(_0x4444f3){var _0x2e788c=_0x396aa7;_0x1b0a33[_0x2e788c('0x187f')]({'title':_0x4444f3[_0x2e788c('0x2fa')]?_0x2e788c('0x16c2')+_0x4444f3[_0x2e788c('0x2fa')]+_0x2e788c('0x169e')+_0x4444f3['statusText']:'SYSTEM:GETcontexts','msg':_0x4444f3[_0x2e788c('0x10fd')]?JSON[_0x2e788c('0xa48')](_0x4444f3['data']):_0x4444f3[_0x2e788c('0x684')]()});});function _0x4ee406(){var _0x120961=_0x396aa7;_0xf27551[_0x120961('0x4c6')]=[];var _0x5e18fe=[];_0xf27551['goto']['type']&&_0xf27551[_0x120961('0x2781')]['type'][_0x120961('0xcf6')]()===_0x120961('0x19d1')&&_0xf27551[_0x120961('0x2781')][_0x120961('0xe6d')]==='outboundDial'&&(_0xf27551['goto']['phone']=_0x524b93[_0x120961('0x888')]?(_0xf27551[_0x120961('0x2781')][_0x120961('0x1b8f')]||'')+_0x120961('0x117e')+_0x524b93[_0x120961('0x888')]+'}':(_0xf27551['goto'][_0x120961('0x1b8f')]||'')+_0x120961('0x1f87'),_0x524b93[_0x120961('0x1e0f')]!==_0x120961('0x117')?_0xf27551[_0x120961('0x2781')][_0x120961('0x1b36')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0xf27551[_0x120961('0x2781')][_0x120961('0x1b36')]+=_0x120961('0x266a')):_0xf27551[_0x120961('0x2781')][_0x120961('0x1b36')]=_0xf27551['goto']['options'][_0x120961('0x170d')](_0x120961('0x266a'),''));if(_0xf27551['goto'][_0x120961('0xe6d')]&&_0xf27551['goto'][_0x120961('0xe6d')]==='custom'){}else switch((_0xf27551[_0x120961('0x2781')][_0x120961('0x9eb')]||_0xf27551[_0x120961('0x2781')]['appType'])[_0x120961('0xcf6')]()){case _0x120961('0x282c'):_0xf27551[_0x120961('0x2781')][_0x120961('0x124b')]=_0xf27551[_0x120961('0x2781')][_0x120961('0x25d6')]+'='+_0xf27551[_0x120961('0x2781')][_0x120961('0x12f4')];break;case'custom':break;default:_0x5e18fe[0x0]=_0xf27551[_0x120961('0x2781')][_0x120961('0x19cd')],_0x5e18fe[0x1]=_0xf27551[_0x120961('0x2781')][_0x120961('0xc68')],_0x5e18fe[0x2]=_0xf27551[_0x120961('0x2781')][_0x120961('0x13f2')],_0xf27551['goto'][_0x120961('0x124b')]=_0x5e18fe[_0x120961('0x19c4')](',');}_0xca8975(_0xf27551[_0x120961('0x2781')]);}function _0xca8975(_0x47d4c2){var _0x1ce80b=_0x396aa7;_0x14bd29[_0x1ce80b('0x1120')](_0x47d4c2);}}const _0xcba1be=_0x51cca5;_0x1498de[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x1498de(_0x58ecf1,_0x59fb80,_0x5a96a2,_0x4117de,_0x1cbfa3,_0x47df88,_0x1a0db8,_0x41e694){var _0x1e49c6=_0x1a8446,_0x29d0e7=this;_0x29d0e7[_0x1e49c6('0x7fc')]=_0x1a0db8[_0x1e49c6('0xacc')](),_0x29d0e7[_0x1e49c6('0x4c6')]=[],_0x29d0e7[_0x1e49c6('0x110a')]=_0x1e49c6('0x484')+(_0x4117de[_0x1e49c6('0xe6d')]||_0x4117de[_0x1e49c6('0x9eb')])[_0x1e49c6('0x1d08')](),_0x29d0e7['hangup']=angular[_0x1e49c6('0x20a')](_0x4117de),_0x29d0e7['crudPermissions']=_0x41e694,_0x29d0e7[_0x1e49c6('0x9f0')]={};if(_0x29d0e7['hangup'][_0x1e49c6('0x124b')])switch(_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0xe6d')]?_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0xe6d')][_0x1e49c6('0xcf6')]():_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x9eb')][_0x1e49c6('0xcf6')]()){case _0x1e49c6('0x113b'):break;case'dialogflow':{var _0x244fe9=_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x124b')][_0x1e49c6('0x1a39')](',');_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x24ec')]=_0x244fe9[0x0],_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x1938')]=_0x244fe9[0x1],_0x29d0e7[_0x1e49c6('0x1fef')]['welcomemessage']=_0x244fe9['slice'](0x2,_0x244fe9[_0x1e49c6('0x2587')])[_0x1e49c6('0x19c4')](',');}break;case'amazonlex':{var _0x3d285f=_0x29d0e7[_0x1e49c6('0x1fef')]['appdata'][_0x1e49c6('0x1a39')](',');_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0xc07')]=_0x3d285f[0x0],_0x29d0e7['hangup'][_0x1e49c6('0x15f9')]=_0x3d285f[0x1],_0x29d0e7[_0x1e49c6('0x1fef')]['lexregion']=_0x3d285f[0x2],_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x18ee')]=_0x3d285f[0x3],_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x273')]=_0x3d285f[_0x1e49c6('0x19aa')](0x4,_0x3d285f[_0x1e49c6('0x2587')])[_0x1e49c6('0x19c4')](',');}break;case _0x1e49c6('0x1b05'):{var _0x3fcd1f=_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x124b')]['split'](',');_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x11b6')]=isNaN(_0x3fcd1f[0x0])?_0x3fcd1f[0x0]:parseInt(_0x3fcd1f[0x0],0xa),_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0xb37')]=_0x3fcd1f[_0x1e49c6('0x19aa')](0x1,_0x3fcd1f['length'])[_0x1e49c6('0x19c4')](',');}break;case'message':_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0xb37')]=_0x29d0e7['hangup'][_0x1e49c6('0x124b')];break;case _0x1e49c6('0x282c'):_0x29d0e7['hangup']['name']=_0x29d0e7['hangup'][_0x1e49c6('0x124b')]['split']('=')[0x0],_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x12f4')]=_0x29d0e7[_0x1e49c6('0x1fef')]['appdata'][_0x1e49c6('0x1a39')]('=')[0x1];break;case _0x1e49c6('0x2067'):_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x24b9')]=_0x29d0e7[_0x1e49c6('0x1fef')]['appdata'];break;default:{var _0x317b66=_0x29d0e7['hangup']['appdata'][_0x1e49c6('0x1a39')](',');_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x124b')]=_0x51538b()[_0x1e49c6('0x116b')](_0x317b66[0x0])?_0x317b66[0x0]:isNaN(_0x317b66[0x0])?_0x317b66[0x0]:parseInt(_0x317b66[0x0],0xa);}break;}else{}_0x29d0e7['hangup'][_0x1e49c6('0x6c8')]&&_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x6c8')][_0x1e49c6('0xcf6')]()===_0x1e49c6('0x19d1')&&_0x29d0e7['hangup']['appType'][_0x1e49c6('0xcf6')]()===_0x1e49c6('0x1e7f')&&(_0x29d0e7['hangup']['prefix']=_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x1a46')]?_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x1a46')]['split']('$')[0x0]:undefined,_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0xeed')]=_0x29d0e7[_0x1e49c6('0x1fef')][_0x1e49c6('0x514')]?_0x1e49c6('0x23d8')+_0x29d0e7[_0x1e49c6('0x1fef')]['callerID']:undefined);_0x29d0e7[_0x1e49c6('0xa8')]=_0xcfb80d,_0x29d0e7['closeDialog']=_0x10d7ec;function _0xcfb80d(){var _0x3dfefa=_0x1e49c6;_0x29d0e7[_0x3dfefa('0x4c6')]=[];var _0x48b92d=[];_0x29d0e7['hangup'][_0x3dfefa('0x6c8')]&&_0x29d0e7['hangup']['type'][_0x3dfefa('0xcf6')]()===_0x3dfefa('0x19d1')&&_0x29d0e7[_0x3dfefa('0x1fef')][_0x3dfefa('0xe6d')]===_0x3dfefa('0x8da')&&(_0x29d0e7[_0x3dfefa('0x1fef')]['phone']=_0x1cbfa3['cutdigits']?(_0x29d0e7[_0x3dfefa('0x1fef')]['prefix']||'')+_0x3dfefa('0x117e')+_0x1cbfa3[_0x3dfefa('0x888')]+'}':(_0x29d0e7[_0x3dfefa('0x1fef')][_0x3dfefa('0x1b8f')]||'')+_0x3dfefa('0x1f87'),_0x1cbfa3['recordingFormat']!=='none'?_0x29d0e7['hangup'][_0x3dfefa('0x1b36')][_0x3dfefa('0x1f38')](_0x3dfefa('0x266a'))<0x0&&(_0x29d0e7[_0x3dfefa('0x1fef')]['options']+=_0x3dfefa('0x266a')):_0x29d0e7['hangup']['options']=_0x29d0e7[_0x3dfefa('0x1fef')]['options'][_0x3dfefa('0x170d')](_0x3dfefa('0x266a'),''));if(_0x29d0e7[_0x3dfefa('0x1fef')][_0x3dfefa('0xe6d')]&&_0x29d0e7[_0x3dfefa('0x1fef')][_0x3dfefa('0xe6d')]===_0x3dfefa('0x113b')){}else switch((_0x29d0e7[_0x3dfefa('0x1fef')][_0x3dfefa('0x9eb')]||_0x29d0e7[_0x3dfefa('0x1fef')][_0x3dfefa('0xe6d')])[_0x3dfefa('0xcf6')]()){case _0x3dfefa('0x282c'):_0x29d0e7['hangup']['appdata']=_0x29d0e7['hangup']['name']+'='+_0x29d0e7[_0x3dfefa('0x1fef')]['value'];break;case _0x3dfefa('0x113b'):break;default:_0x48b92d[0x0]=_0x29d0e7[_0x3dfefa('0x1fef')][_0x3dfefa('0x124b')],_0x29d0e7['hangup'][_0x3dfefa('0x124b')]=_0x48b92d[_0x3dfefa('0x19c4')](',');}_0x10d7ec(_0x29d0e7['hangup']);}function _0x10d7ec(_0x4a9881){_0x58ecf1['hide'](_0x4a9881);}}const _0x2055a0=_0x1498de;_0x4111cc['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x4111cc(_0x57e0f7,_0x51ecbb,_0x1c5504,_0xb2cf84,_0x21ec42,_0x17223e,_0x34dc9e,_0x1e07a0){var _0x263850=_0x1a8446,_0x343f58=this;_0x343f58[_0x263850('0x7fc')]=_0x34dc9e[_0x263850('0xacc')](),_0x343f58[_0x263850('0x4c6')]=[],_0x343f58[_0x263850('0x110a')]=_0x263850('0x484')+(_0xb2cf84[_0x263850('0xe6d')]||_0xb2cf84[_0x263850('0x9eb')])[_0x263850('0x1d08')](),_0x343f58[_0x263850('0x19cb')]=angular[_0x263850('0x20a')](_0xb2cf84),_0x343f58['crudPermissions']=_0x1e07a0,_0x343f58[_0x263850('0x9f0')]={};if(_0x343f58[_0x263850('0x19cb')][_0x263850('0x124b')])switch(_0x343f58['internaldial'][_0x263850('0xe6d')]?_0x343f58[_0x263850('0x19cb')][_0x263850('0xe6d')][_0x263850('0xcf6')]():_0x343f58[_0x263850('0x19cb')]['app'][_0x263850('0xcf6')]()){case'custom':break;case _0x263850('0x67c'):{var _0x48295d=_0x343f58[_0x263850('0x19cb')][_0x263850('0x124b')][_0x263850('0x1a39')](',');_0x343f58[_0x263850('0x19cb')]['key']=_0x48295d[0x0],_0x343f58['internaldial'][_0x263850('0x1938')]=_0x48295d[0x1],_0x343f58[_0x263850('0x19cb')]['welcomemessage']=_0x48295d['slice'](0x2,_0x48295d[_0x263850('0x2587')])[_0x263850('0x19c4')](',');}break;case _0x263850('0x3f5'):{var _0x3712b4=_0x343f58[_0x263850('0x19cb')]['appdata']['split'](',');_0x343f58[_0x263850('0x19cb')][_0x263850('0xc07')]=_0x3712b4[0x0],_0x343f58[_0x263850('0x19cb')][_0x263850('0x15f9')]=_0x3712b4[0x1],_0x343f58[_0x263850('0x19cb')]['lexregion']=_0x3712b4[0x2],_0x343f58[_0x263850('0x19cb')][_0x263850('0x18ee')]=_0x3712b4[0x3],_0x343f58['internaldial'][_0x263850('0x273')]=_0x3712b4[_0x263850('0x19aa')](0x4,_0x3712b4['length'])[_0x263850('0x19c4')](',');}break;case _0x263850('0x1b05'):{var _0x30714a=_0x343f58[_0x263850('0x19cb')]['appdata']['split'](',');_0x343f58[_0x263850('0x19cb')][_0x263850('0x11b6')]=isNaN(_0x30714a[0x0])?_0x30714a[0x0]:parseInt(_0x30714a[0x0],0xa),_0x343f58[_0x263850('0x19cb')]['text']=_0x30714a['slice'](0x1,_0x30714a[_0x263850('0x2587')])[_0x263850('0x19c4')](',');}break;case'message':_0x343f58[_0x263850('0x19cb')]['text']=_0x343f58[_0x263850('0x19cb')][_0x263850('0x124b')];break;case _0x263850('0x282c'):_0x343f58[_0x263850('0x19cb')][_0x263850('0x25d6')]=_0x343f58['internaldial'][_0x263850('0x124b')][_0x263850('0x1a39')]('=')[0x0],_0x343f58[_0x263850('0x19cb')][_0x263850('0x12f4')]=_0x343f58[_0x263850('0x19cb')]['appdata'][_0x263850('0x1a39')]('=')[0x1];break;case _0x263850('0x2067'):_0x343f58['internaldial'][_0x263850('0x24b9')]=_0x343f58['internaldial'][_0x263850('0x124b')];break;default:{var _0x11bc11=_0x343f58['internaldial'][_0x263850('0x124b')][_0x263850('0x1a39')](',');_0x343f58['internaldial'][_0x263850('0x272b')]=_0x51538b()['isEmpty'](_0x11bc11[0x0])?_0x11bc11[0x0]:isNaN(_0x11bc11[0x0])?_0x11bc11[0x0]:parseInt(_0x11bc11[0x0],0xa),_0x343f58[_0x263850('0x19cb')][_0x263850('0x23c0')]=_0x51538b()[_0x263850('0x116b')](_0x11bc11[0x1])?_0x11bc11[0x1]:isNaN(_0x11bc11[0x1])?_0x11bc11[0x1]:parseInt(_0x11bc11[0x1],0xa),_0x343f58[_0x263850('0x19cb')][_0x263850('0x1b36')]=_0x51538b()['isEmpty'](_0x11bc11[0x2])?_0x11bc11[0x2]:isNaN(_0x11bc11[0x2])?_0x11bc11[0x2]:parseInt(_0x11bc11[0x2],0xa),_0x343f58['internaldial'][_0x263850('0x2242')]=_0x51538b()[_0x263850('0x116b')](_0x11bc11[0x3])?_0x11bc11[0x3]:isNaN(_0x11bc11[0x3])?_0x11bc11[0x3]:parseInt(_0x11bc11[0x3],0xa);}break;}else{}_0x343f58[_0x263850('0x19cb')]['type']&&_0x343f58['internaldial'][_0x263850('0x6c8')]['toLowerCase']()===_0x263850('0x19d1')&&_0x343f58[_0x263850('0x19cb')][_0x263850('0xe6d')]['toLowerCase']()===_0x263850('0x1e7f')&&(_0x343f58[_0x263850('0x19cb')][_0x263850('0x1b8f')]=_0x343f58[_0x263850('0x19cb')][_0x263850('0x1a46')]?_0x343f58[_0x263850('0x19cb')]['phone'][_0x263850('0x1a39')]('$')[0x0]:undefined,_0x343f58['internaldial']['callerId']=_0x343f58['internaldial'][_0x263850('0x514')]?'CALLERID(all)='+_0x343f58[_0x263850('0x19cb')][_0x263850('0x514')]:undefined);_0x343f58['saveInternalRouteApp']=_0x2b6486,_0x343f58[_0x263850('0x2023')]=_0x3f7bd6;var _0x3ea092=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x263850('0xb5b')}],_0x207796=null;_0x34dc9e['hasRole']('admin')?_0x17223e['user'][_0x263850('0x2122')]({'fields':_0x263850('0x1f5d'),'sort':_0x263850('0x25d6'),'nolimit':'true'})[_0x263850('0x1dc2')][_0x263850('0xaa5')](function(_0x220164){var _0x2fbd1c=_0x263850;_0x343f58[_0x2fbd1c('0x2204')]=_0x220164[_0x2fbd1c('0x580')]||[];})['catch'](function(_0xd70789){var _0x2e659f=_0x263850;_0x1c5504[_0x2e659f('0x187f')]({'title':_0xd70789[_0x2e659f('0x2fa')]?'API:'+_0xd70789[_0x2e659f('0x2fa')]+_0x2e659f('0x169e')+_0xd70789[_0x2e659f('0x24df')]:_0x2e659f('0x6eb'),'msg':_0xd70789[_0x2e659f('0x10fd')]?JSON['stringify'](_0xd70789[_0x2e659f('0x10fd')]):_0xd70789[_0x2e659f('0x684')]()});}):_0x17223e[_0x263850('0x272b')][_0x263850('0x2122')]({'fields':_0x263850('0x1f5d'),'sort':'name','nolimit':_0x263850('0x1c5c')})['$promise'][_0x263850('0xaa5')](function(_0xb076f4){_0x207796=_0xb076f4['rows']||[];})[_0x263850('0xaa5')](function(){var _0x29b060=_0x263850,_0xa6a04=[];for(var _0x34635f=0x0;_0x34635f<_0x3ea092['length'];_0x34635f++){_0xa6a04[_0x29b060('0x1599')](_0x17223e[_0x29b060('0x1a50')][_0x29b060('0x2122')]({'userProfileId':_0x343f58[_0x29b060('0x7fc')][_0x29b060('0x2168')],'sectionId':_0x3ea092[_0x34635f]['id']})[_0x29b060('0x1dc2')]);}return _0x51ecbb[_0x29b060('0xa15')](_0xa6a04);})[_0x263850('0xaa5')](function(_0x46a7e0){var _0x91966f=_0x263850,_0x465ba1=_0x51538b()[_0x91966f('0x1246')](_0x46a7e0,function(_0x2d9c2d){var _0x279f44=_0x91966f;return _0x2d9c2d&&_0x2d9c2d[_0x279f44('0x580')]?_0x2d9c2d['rows'][0x0]:null;}),_0x13c26e=[],_0x129aed=function _0x141cba(_0x36749d){var _0x275564=_0x91966f,_0x37395b=_0x51538b()['find'](_0x465ba1,[_0x275564('0x10b8'),_0x3ea092[_0x36749d]['id']]);if(_0x37395b){if(!_0x37395b[_0x275564('0x26cc')])_0x13c26e[_0x275564('0x1599')](_0x17223e[_0x275564('0x249a')][_0x275564('0x2122')]({'sectionId':_0x37395b['id']})[_0x275564('0x1dc2')]);else{var _0x4b2ff2=[];_0x207796[_0x275564('0x15b5')](function(_0x3c0059){var _0x491026=_0x275564;_0x3c0059[_0x491026('0x924')]===_0x3ea092[_0x36749d][_0x491026('0x924')]&&_0x4b2ff2[_0x491026('0x1599')](_0x3c0059);}),_0x13c26e['push']({'rows':_0x4b2ff2,'count':_0x4b2ff2[_0x275564('0x2587')]});}}};for(var _0x180480=0x0;_0x180480<_0x3ea092['length'];_0x180480++){_0x129aed(_0x180480);}return _0x51ecbb['all'](_0x13c26e);})[_0x263850('0xaa5')](function(_0x1f6f13){var _0x30c590=_0x263850,_0x5ef20f=[],_0x1ecd75=null;_0x343f58[_0x30c590('0x19cb')]&&(_0x1ecd75=_0x51538b()[_0x30c590('0xe9e')](_0x207796,{'name':_0x343f58['internaldial'][_0x30c590('0x272b')]}));for(var _0x35a1d5=0x0;_0x35a1d5<_0x1f6f13[_0x30c590('0x2587')];_0x35a1d5++){var _0x152a41=_0x1f6f13[_0x35a1d5][_0x30c590('0x580')]||[];_0x152a41[_0x30c590('0x15b5')](function(_0x2d6d73){var _0x55917c=_0x30c590;_0x5ef20f[_0x55917c('0x1599')](_0x2d6d73);});}_0x1ecd75&&!_0x51538b()[_0x30c590('0x2c2')](_0x5ef20f,[_0x30c590('0xbcd'),_0x1ecd75['id']])&&_0x207796[_0x30c590('0x15b5')](function(_0x10e08a){var _0x5c73b1=_0x30c590;_0x10e08a['id']===_0x1ecd75['id']&&(_0x10e08a[_0x5c73b1('0x12eb')]=![],_0x5ef20f[_0x5c73b1('0x1599')](_0x10e08a));}),_0x343f58['users']=_0x5ef20f;})[_0x263850('0x253d')](function(_0x494911){var _0x2f332b=_0x263850;_0x1c5504['error']({'title':_0x494911[_0x2f332b('0x2fa')]?'API:'+_0x494911['status']+'\x20-\x20'+_0x494911[_0x2f332b('0x24df')]:_0x2f332b('0x1f4d'),'msg':_0x494911[_0x2f332b('0x10fd')]?JSON[_0x2f332b('0xa48')](_0x494911[_0x2f332b('0x10fd')]):_0x494911[_0x2f332b('0x684')]()});});function _0x2b6486(){var _0x22403a=_0x263850;_0x343f58[_0x22403a('0x4c6')]=[];var _0x1c7268=[];_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x6c8')]&&_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x6c8')][_0x22403a('0xcf6')]()==='outbound'&&_0x343f58[_0x22403a('0x19cb')][_0x22403a('0xe6d')]===_0x22403a('0x8da')&&(_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x1a46')]=_0x21ec42['cutdigits']?(_0x343f58['internaldial']['prefix']||'')+_0x22403a('0x117e')+_0x21ec42[_0x22403a('0x888')]+'}':(_0x343f58[_0x22403a('0x19cb')]['prefix']||'')+'${EXTEN}',_0x21ec42['recordingFormat']!==_0x22403a('0x117')?_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x1b36')]['indexOf'](_0x22403a('0x266a'))<0x0&&(_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x1b36')]+=_0x22403a('0x266a')):_0x343f58['internaldial'][_0x22403a('0x1b36')]=_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x1b36')]['replace'](_0x22403a('0x266a'),''));if(_0x343f58[_0x22403a('0x19cb')][_0x22403a('0xe6d')]&&_0x343f58['internaldial'][_0x22403a('0xe6d')]===_0x22403a('0x113b')){}else switch((_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x9eb')]||_0x343f58[_0x22403a('0x19cb')][_0x22403a('0xe6d')])[_0x22403a('0xcf6')]()){case _0x22403a('0x282c'):_0x343f58['internaldial']['appdata']=_0x343f58['internaldial'][_0x22403a('0x25d6')]+'='+_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x12f4')];break;case _0x22403a('0x113b'):break;default:_0x1c7268[0x0]=_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x272b')],_0x1c7268[0x1]=_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x23c0')],_0x1c7268[0x2]=_0x343f58[_0x22403a('0x19cb')][_0x22403a('0x1b36')],_0x1c7268[0x3]=_0x343f58['internaldial'][_0x22403a('0x2242')],_0x343f58[_0x22403a('0x19cb')]['appdata']=_0x1c7268[_0x22403a('0x19c4')](',');}_0x3f7bd6(_0x343f58[_0x22403a('0x19cb')]);}function _0x3f7bd6(_0x1a1993){var _0x13269f=_0x263850;_0x57e0f7[_0x13269f('0x1120')](_0x1a1993);}}const _0x2adc09=_0x4111cc;_0x580c96['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x197b'),'interval',_0x1a8446('0x2568'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x580c96(_0x141309,_0x376f0c,_0x30eff1,_0x522ad0,_0x3bd089,_0xf61406,_0x293381,_0x1d9133,_0x13c862,_0x1f3452){var _0x168032=_0x1a8446,_0x5d47f4=this;_0x5d47f4[_0x168032('0x7fc')]=_0x13c862[_0x168032('0xacc')](),_0x5d47f4[_0x168032('0x4c6')]=[],_0x5d47f4[_0x168032('0x110a')]=_0x168032('0x14b0'),_0x5d47f4['interval']=angular[_0x168032('0x20a')](_0x3bd089),_0x5d47f4[_0x168032('0x2568')]=_0xf61406,_0x5d47f4[_0x168032('0x740')]=![],_0x5d47f4[_0x168032('0x11e9')]=[_0x168032('0x1b43'),_0x168032('0x113b'),_0x168032('0x2334')],_0x5d47f4[_0x168032('0xada')]=_0x1f3452,_0x5d47f4['daysOfWeek']=_0x522ad0[_0x168032('0x1529')](),_0x5d47f4['monthNumber']=_0x522ad0[_0x168032('0x23fa')](),_0x5d47f4[_0x168032('0x672')]=_0x522ad0[_0x168032('0x2225')](),_0x5d47f4['daysOfMonth']=_0x522ad0[_0x168032('0x74a')]();if(!_0x5d47f4['interval'])_0x5d47f4['interval']={'interval':_0x168032('0x1ac6')},_0x5d47f4[_0x168032('0x6c8')]='always',_0x5d47f4[_0x168032('0x110a')]=_0x168032('0x11d5'),_0x5d47f4[_0x168032('0x740')]=!![];else{if(_0x5d47f4[_0x168032('0x1c21')][_0x168032('0x1c21')]!==_0x168032('0x1ac6')){_0x5d47f4[_0x168032('0x6c8')]=_0x168032('0x113b');var _0x56fe74=_0x5d47f4[_0x168032('0x1c21')][_0x168032('0x1c21')]['split'](','),_0x2d30d4=_0x56fe74[0x0],_0x2a908e=_0x56fe74[0x1],_0x26e0cc=_0x56fe74[0x2],_0xb6d64b=_0x56fe74[0x3];if(_0x2d30d4!=='*'){var _0x24d9a3=_0x2d30d4[_0x168032('0x1a39')]('-')[0x0],_0x4a00c9=_0x2d30d4[_0x168032('0x1a39')]('-')[0x1],_0x327046;_0x327046=new Date(),_0x327046[_0x168032('0x807')](Number(_0x24d9a3[_0x168032('0x1a39')](':')[0x0])),_0x327046[_0x168032('0xb43')](Number(_0x24d9a3['split'](':')[0x1])),_0x5d47f4[_0x168032('0x1ee7')]=_0x327046,_0x327046=new Date(),_0x327046[_0x168032('0x807')](Number(_0x4a00c9[_0x168032('0x1a39')](':')[0x0])),_0x327046[_0x168032('0xb43')](Number(_0x4a00c9[_0x168032('0x1a39')](':')[0x1])),_0x5d47f4[_0x168032('0x815')]=_0x327046;}_0x2a908e!=='*'&&(_0x5d47f4[_0x168032('0x1fa3')]=_0x2a908e['split']('-')[0x0],_0x5d47f4['dayOfWeekTo']=_0x2a908e[_0x168032('0x1a39')]('-')[0x1]),_0x26e0cc!=='*'&&(_0x5d47f4['monthDayFrom']=_0x26e0cc[_0x168032('0x1a39')]('-')[0x0],_0x5d47f4[_0x168032('0x2c3')]=_0x26e0cc['split']('-')[0x1]),_0xb6d64b!=='*'&&(_0x5d47f4[_0x168032('0xcf9')]=_0xb6d64b[_0x168032('0x1a39')]('-')[0x0],_0x5d47f4[_0x168032('0x125f')]=_0xb6d64b[_0x168032('0x1a39')]('-')[0x1]);}else _0x5d47f4[_0x168032('0x6c8')]=_0x168032('0x1b43');}_0x141309[_0x168032('0x25cf')]['id']&&!_0x5d47f4[_0x168032('0x1c21')]['application']&&(_0x5d47f4[_0x168032('0x1c21')][_0x168032('0x1f8c')]=_0x141309[_0x168032('0x25cf')]['id']);_0x5d47f4[_0x168032('0x1c21')][_0x168032('0x1f8c')]&&_0x5d47f4[_0x168032('0x1c21')][_0x168032('0xe45')]&&(_0x5d47f4[_0x168032('0x6c8')]=_0x168032('0x2334'));_0x5d47f4[_0x168032('0x152a')]=_0x57b75e,_0x5d47f4[_0x168032('0x1570')]=_0x881a8,_0x5d47f4['closeDialog']=_0x192008;_0x5d47f4[_0x168032('0x1c21')][_0x168032('0xe45')]&&(_0x13c862[_0x168032('0x26e8')]('admin')?_0x1d9133['interval'][_0x168032('0x2122')]({'fields':_0x168032('0x1a33'),'IntervalId':_0x168032('0x1ed9'),'nolimit':!![]})[_0x168032('0x1dc2')][_0x168032('0xaa5')](function(_0x1216fd){var _0x54fe9a=_0x168032;_0x5d47f4[_0x54fe9a('0x2568')]=_0x1216fd[_0x54fe9a('0x580')]||[];})[_0x168032('0x253d')](function(_0xa31b39){var _0x56f75a=_0x168032;_0x293381[_0x56f75a('0x187f')]({'title':_0xa31b39[_0x56f75a('0x2fa')]?_0x56f75a('0x16c2')+_0xa31b39['status']+_0x56f75a('0x169e')+_0xa31b39[_0x56f75a('0x24df')]:_0x56f75a('0x3b0'),'msg':_0xa31b39[_0x56f75a('0x10fd')]?JSON['stringify'](_0xa31b39['data']):_0xa31b39['toString']()});}):_0x1d9133[_0x168032('0x1c21')]['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x168032('0x1ed9'),'nolimit':!![]})[_0x168032('0x1dc2')][_0x168032('0xaa5')](function(_0xd98738){var _0x19c216=_0x168032;_0x5d47f4[_0x19c216('0x2568')]=_0xd98738[_0x19c216('0x580')]||[];})[_0x168032('0xaa5')](function(){var _0x1a84a2=_0x168032;return _0x1d9133['userProfileSection'][_0x1a84a2('0x2122')]({'userProfileId':_0x5d47f4[_0x1a84a2('0x7fc')]['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x168032('0xaa5')](function(_0x2cf48d){var _0x1c8b98=_0x168032,_0x476be3=_0x2cf48d&&_0x2cf48d['rows']?_0x2cf48d[_0x1c8b98('0x580')][0x0]:null;if(!_0x476be3)_0x5d47f4[_0x1c8b98('0x2568')]=[];else{if(!_0x476be3[_0x1c8b98('0x26cc')])return _0x1d9133['userProfileResource'][_0x1c8b98('0x2122')]({'sectionId':_0x476be3['id']})['$promise']['then'](function(_0x1d025a){var _0x3556b0=_0x1c8b98,_0x3c9135=_0x1d025a&&_0x1d025a['rows']?_0x1d025a[_0x3556b0('0x580')]:[],_0x2b401a=[],_0x5c0ef3=null;_0x5d47f4['interval']&&(_0x5c0ef3=_0x51538b()[_0x3556b0('0xe9e')](_0x5d47f4['intervals'],{'name':_0x5d47f4[_0x3556b0('0x1c21')]['IntervalId']})),_0x5c0ef3&&!_0x51538b()[_0x3556b0('0x2c2')](_0x3c9135,[_0x3556b0('0xbcd'),_0x5c0ef3['id']])&&_0x5d47f4[_0x3556b0('0x2568')]['forEach'](function(_0x5da26a){var _0x2ff037=_0x3556b0;_0x5da26a['id']===_0x5c0ef3['id']&&(_0x5da26a[_0x2ff037('0x12eb')]=![],_0x2b401a[_0x2ff037('0x1599')](_0x5da26a));}),_0x5d47f4[_0x3556b0('0x2568')]=_0x2b401a;});}})[_0x168032('0x253d')](function(_0x43ae65){var _0x3e1d9d=_0x168032;_0x293381[_0x3e1d9d('0x187f')]({'title':_0x43ae65[_0x3e1d9d('0x2fa')]?_0x3e1d9d('0x16c2')+_0x43ae65[_0x3e1d9d('0x2fa')]+'\x20-\x20'+_0x43ae65['statusText']:_0x3e1d9d('0x3b0'),'msg':_0x43ae65[_0x3e1d9d('0x10fd')]?JSON[_0x3e1d9d('0xa48')](_0x43ae65['data']):_0x43ae65[_0x3e1d9d('0x684')]()});}));function _0xc3fa09(){var _0x4a0986=_0x168032;switch(_0x5d47f4['type']){case'always':case _0x4a0986('0x2334'):return _0x4a0986('0x1ac6');case'custom':{var _0x4fc8c8=[];if(_0x5d47f4['timeRangeFrom']!=='*'&&_0x5d47f4['timeRangeFrom']&&_0x5d47f4[_0x4a0986('0x815')]){var _0x2b4675=(_0x5d47f4[_0x4a0986('0x1ee7')][_0x4a0986('0x6a2')]()<0xa?'0':'')+_0x5d47f4[_0x4a0986('0x1ee7')]['getHours']()+':'+((_0x5d47f4[_0x4a0986('0x1ee7')]['getMinutes']()<0xa?'0':'')+_0x5d47f4[_0x4a0986('0x1ee7')]['getMinutes']()),_0x25b178=(_0x5d47f4[_0x4a0986('0x815')][_0x4a0986('0x6a2')]()<0xa?'0':'')+_0x5d47f4['timeRangeTo'][_0x4a0986('0x6a2')]()+':'+((_0x5d47f4[_0x4a0986('0x815')][_0x4a0986('0x13a6')]()<0xa?'0':'')+_0x5d47f4['timeRangeTo'][_0x4a0986('0x13a6')]());_0x4fc8c8[_0x4a0986('0x1599')](_0x2b4675+'-'+_0x25b178);}else _0x4fc8c8[_0x4a0986('0x1599')]('*');return _0x5d47f4['dayOfWeekFrom']?_0x5d47f4[_0x4a0986('0xc93')]?_0x4fc8c8[_0x4a0986('0x1599')](_0x5d47f4[_0x4a0986('0x1fa3')]+'-'+_0x5d47f4[_0x4a0986('0xc93')]):_0x4fc8c8[_0x4a0986('0x1599')](_0x5d47f4[_0x4a0986('0x1fa3')]):_0x4fc8c8[_0x4a0986('0x1599')]('*'),_0x5d47f4[_0x4a0986('0x19d0')]?_0x5d47f4[_0x4a0986('0x2c3')]?_0x4fc8c8['push'](_0x5d47f4[_0x4a0986('0x19d0')]+'-'+_0x5d47f4[_0x4a0986('0x2c3')]):_0x4fc8c8[_0x4a0986('0x1599')](_0x5d47f4[_0x4a0986('0x19d0')]):_0x4fc8c8['push']('*'),_0x5d47f4[_0x4a0986('0xcf9')]?_0x5d47f4[_0x4a0986('0x125f')]?_0x4fc8c8[_0x4a0986('0x1599')](_0x5d47f4[_0x4a0986('0xcf9')]+'-'+_0x5d47f4['monthTo']):_0x4fc8c8[_0x4a0986('0x1599')](_0x5d47f4['monthFrom']):_0x4fc8c8[_0x4a0986('0x1599')]('*'),_0x4fc8c8[_0x4a0986('0x19c4')]();}}}function _0x57b75e(){var _0x3adc48=_0x168032;_0x5d47f4[_0x3adc48('0x4c6')]=[],_0x5d47f4[_0x3adc48('0x1c21')][_0x3adc48('0x1c21')]=_0xc3fa09(),_0x1d9133[_0x3adc48('0x1c21')]['save'](_0x5d47f4[_0x3adc48('0x1c21')])['$promise']['then'](function(_0x14801f){var _0x130bd4=_0x3adc48;_0x5d47f4[_0x130bd4('0x2568')]['push'](_0x14801f),_0x293381[_0x130bd4('0xe10')]({'title':'Interval\x20properly\x20created','msg':_0x5d47f4[_0x130bd4('0x1c21')][_0x130bd4('0x25d6')]?_0x5d47f4[_0x130bd4('0x1c21')][_0x130bd4('0x25d6')]+_0x130bd4('0xdca'):''}),_0x192008();})[_0x3adc48('0x253d')](function(_0x49de49){var _0x1e15d4=_0x3adc48;console[_0x1e15d4('0x187f')](_0x49de49),_0x5d47f4[_0x1e15d4('0x4c6')]=_0x49de49['data'][_0x1e15d4('0x4c6')]||[{'message':_0x49de49['toString'](),'type':_0x1e15d4('0xbd7')}];});}function _0x881a8(){var _0x107f70=_0x168032;_0x5d47f4['errors']=[],_0x5d47f4[_0x107f70('0x1c21')][_0x107f70('0x1c21')]=_0xc3fa09(),_0x5d47f4[_0x107f70('0x1c21')][_0x107f70('0xe45')]?(_0x5d47f4[_0x107f70('0x6c8')]!=='list'&&(_0x5d47f4[_0x107f70('0x1c21')][_0x107f70('0x1f8c')]=null),_0x192008(_0x5d47f4[_0x107f70('0x1c21')])):_0x1d9133['interval']['update']({'id':_0x5d47f4['interval']['id']},_0x5d47f4[_0x107f70('0x1c21')])[_0x107f70('0x1dc2')][_0x107f70('0xaa5')](function(_0x2e7544){var _0x3e1f02=_0x107f70,_0x162e70=_0x51538b()[_0x3e1f02('0xe9e')](_0x5d47f4[_0x3e1f02('0x2568')],{'id':_0x2e7544['id']});_0x162e70&&_0x51538b()['merge'](_0x162e70,_0x2e7544),_0x293381[_0x3e1f02('0xe10')]({'title':_0x3e1f02('0x68b'),'msg':_0x3e1f02('0x257d')}),_0x192008();})[_0x107f70('0x253d')](function(_0xaf1c7e){var _0x47e841=_0x107f70;console[_0x47e841('0x187f')](_0xaf1c7e),_0x5d47f4[_0x47e841('0x4c6')]=_0xaf1c7e[_0x47e841('0x10fd')]['errors']||[{'message':_0xaf1c7e[_0x47e841('0x684')](),'type':'api.interval.update'}];});}function _0x192008(_0x369b1d){_0x376f0c['hide'](_0x369b1d);}}const _0x9d7075=_0x580c96;_0xafb484['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0xafb484(_0xb14ef3,_0x5d5617,_0x4b50d6,_0x290b5b,_0x36f8fc,_0x1e8c4d,_0x1f8153,_0xaf458b){var _0x2f59e4=_0x1a8446,_0xd7dd4f=this;_0xd7dd4f[_0x2f59e4('0x7fc')]=_0x1f8153[_0x2f59e4('0xacc')](),_0xd7dd4f[_0x2f59e4('0x4c6')]=[],_0xd7dd4f[_0x2f59e4('0x110a')]=_0x2f59e4('0x484')+(_0x290b5b['appType']||_0x290b5b[_0x2f59e4('0x9eb')])[_0x2f59e4('0x1d08')](),_0xd7dd4f[_0x2f59e4('0x1bed')]=angular[_0x2f59e4('0x20a')](_0x290b5b),_0xd7dd4f[_0x2f59e4('0xada')]=_0xaf458b,_0xd7dd4f['hasModulePermissions']={};if(_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x124b')])switch(_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0xe6d')]?_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0xe6d')]['toLowerCase']():_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x9eb')][_0x2f59e4('0xcf6')]()){case _0x2f59e4('0x113b'):break;case'dialogflow':{var _0xee8bc1=_0xd7dd4f['playback'][_0x2f59e4('0x124b')][_0x2f59e4('0x1a39')](',');_0xd7dd4f[_0x2f59e4('0x1bed')]['key']=_0xee8bc1[0x0],_0xd7dd4f['playback'][_0x2f59e4('0x1938')]=_0xee8bc1[0x1],_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x273')]=_0xee8bc1[_0x2f59e4('0x19aa')](0x2,_0xee8bc1[_0x2f59e4('0x2587')])[_0x2f59e4('0x19c4')](',');}break;case _0x2f59e4('0x3f5'):{var _0x5a3b91=_0xd7dd4f[_0x2f59e4('0x1bed')]['appdata'][_0x2f59e4('0x1a39')](',');_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0xc07')]=_0x5a3b91[0x0],_0xd7dd4f['playback']['secretaccesskey']=_0x5a3b91[0x1],_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0xa9a')]=_0x5a3b91[0x2],_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x18ee')]=_0x5a3b91[0x3],_0xd7dd4f[_0x2f59e4('0x1bed')]['welcomemessage']=_0x5a3b91[_0x2f59e4('0x19aa')](0x4,_0x5a3b91[_0x2f59e4('0x2587')])[_0x2f59e4('0x19c4')](',');}break;case _0x2f59e4('0x1b05'):{var _0x1ecb19=_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x124b')][_0x2f59e4('0x1a39')](',');_0xd7dd4f[_0x2f59e4('0x1bed')]['times']=isNaN(_0x1ecb19[0x0])?_0x1ecb19[0x0]:parseInt(_0x1ecb19[0x0],0xa),_0xd7dd4f[_0x2f59e4('0x1bed')]['text']=_0x1ecb19[_0x2f59e4('0x19aa')](0x1,_0x1ecb19[_0x2f59e4('0x2587')])[_0x2f59e4('0x19c4')](',');}break;case _0x2f59e4('0x1402'):_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0xb37')]=_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x124b')];break;case _0x2f59e4('0x282c'):_0xd7dd4f['playback'][_0x2f59e4('0x25d6')]=_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x124b')]['split']('=')[0x0],_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x12f4')]=_0xd7dd4f[_0x2f59e4('0x1bed')]['appdata']['split']('=')[0x1];break;case _0x2f59e4('0x2067'):_0xd7dd4f['playback'][_0x2f59e4('0x24b9')]=_0xd7dd4f['playback'][_0x2f59e4('0x124b')];break;default:{var _0x6cc76e=_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x124b')][_0x2f59e4('0x1a39')](',');_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x124b')]=_0x51538b()['isEmpty'](_0x6cc76e[0x0])?_0x6cc76e[0x0]:isNaN(_0x6cc76e[0x0])?_0x6cc76e[0x0]:parseInt(_0x6cc76e[0x0],0xa),_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x1b36')]=_0x51538b()[_0x2f59e4('0x116b')](_0x6cc76e[0x1])?_0x6cc76e[0x1]:isNaN(_0x6cc76e[0x1])?_0x6cc76e[0x1]:parseInt(_0x6cc76e[0x1],0xa);}break;}else{}_0xd7dd4f['playback'][_0x2f59e4('0x6c8')]&&_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x6c8')]['toLowerCase']()==='outbound'&&_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0xe6d')]['toLowerCase']()==='outbounddial'&&(_0xd7dd4f['playback']['prefix']=_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x1a46')]?_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0x1a46')][_0x2f59e4('0x1a39')]('$')[0x0]:undefined,_0xd7dd4f[_0x2f59e4('0x1bed')][_0x2f59e4('0xeed')]=_0xd7dd4f[_0x2f59e4('0x1bed')]['callerID']?_0x2f59e4('0x23d8')+_0xd7dd4f['playback'][_0x2f59e4('0x514')]:undefined);_0xd7dd4f['saveInternalRouteApp']=_0x5d4137,_0xd7dd4f[_0x2f59e4('0x2023')]=_0x5c5000,_0x1f8153[_0x2f59e4('0x26e8')](_0x2f59e4('0x178b'))?_0x1e8c4d[_0x2f59e4('0x7d6')][_0x2f59e4('0x2122')]({'fields':_0x2f59e4('0x188c'),'sort':_0x2f59e4('0x25d6'),'nolimit':_0x2f59e4('0x1c5c')})['$promise'][_0x2f59e4('0xaa5')](function(_0x573695){var _0x58b9f6=_0x2f59e4;_0xd7dd4f['sounds']=_0x573695[_0x58b9f6('0x580')]||[];})[_0x2f59e4('0x253d')](function(_0x2d704e){var _0x8f645d=_0x2f59e4;_0x4b50d6[_0x8f645d('0x187f')]({'title':_0x2d704e[_0x8f645d('0x2fa')]?_0x8f645d('0x16c2')+_0x2d704e[_0x8f645d('0x2fa')]+_0x8f645d('0x169e')+_0x2d704e[_0x8f645d('0x24df')]:_0x8f645d('0x546'),'msg':_0x2d704e['data']?JSON[_0x8f645d('0xa48')](_0x2d704e['data']):_0x2d704e[_0x8f645d('0x684')]()});}):_0x1e8c4d[_0x2f59e4('0x7d6')][_0x2f59e4('0x2122')]({'fields':_0x2f59e4('0x188c'),'sort':'name','nolimit':_0x2f59e4('0x1c5c')})[_0x2f59e4('0x1dc2')][_0x2f59e4('0xaa5')](function(_0x2bf252){var _0x5be391=_0x2f59e4;_0xd7dd4f[_0x5be391('0x7ca')]=_0x2bf252[_0x5be391('0x580')]||[];})[_0x2f59e4('0xaa5')](function(){var _0x2a9117=_0x2f59e4;return _0x1e8c4d[_0x2a9117('0x1a50')]['get']({'userProfileId':_0xd7dd4f[_0x2a9117('0x7fc')][_0x2a9117('0x2168')],'sectionId':0x3ef})[_0x2a9117('0x1dc2')];})['then'](function(_0x42a83){var _0x38b1df=_0x2f59e4,_0x315d9f=_0x42a83&&_0x42a83[_0x38b1df('0x580')]?_0x42a83[_0x38b1df('0x580')][0x0]:null;if(!_0x315d9f){var _0xedfe21=[],_0x18b25c=null;_0xd7dd4f['playback']&&(_0x18b25c=_0x51538b()[_0x38b1df('0xe9e')](_0xd7dd4f[_0x38b1df('0x7ca')],{'save_name':_0xd7dd4f[_0x38b1df('0x1bed')]['appdata']}));for(var _0x5b2f49=0x0;_0x5b2f49<_0xd7dd4f['sounds'][_0x38b1df('0x2587')];_0x5b2f49++){_0x18b25c&&_0xd7dd4f['sounds'][_0x5b2f49]['id']===_0x18b25c['id']&&(_0xd7dd4f['sounds'][_0x5b2f49][_0x38b1df('0x12eb')]=![],_0xedfe21[_0x38b1df('0x1599')](_0xd7dd4f[_0x38b1df('0x7ca')][_0x5b2f49]));}_0xd7dd4f['sounds']=_0xedfe21;}else{if(!_0x315d9f['autoAssociation'])return _0x1e8c4d[_0x38b1df('0x249a')][_0x38b1df('0x2122')]({'sectionId':_0x315d9f['id']})[_0x38b1df('0x1dc2')][_0x38b1df('0xaa5')](function(_0x5aec7a){var _0x26c1b3=_0x38b1df,_0x5a8e17=_0x51538b()[_0x26c1b3('0x1246')](_0x5aec7a['rows'],function(_0x41f922){var _0x4df49f=_0x26c1b3;return _0x51538b()[_0x4df49f('0xe9e')](_0xd7dd4f[_0x4df49f('0x7ca')],{'id':_0x41f922[_0x4df49f('0xbcd')]});}),_0x553d56=null;_0xd7dd4f[_0x26c1b3('0x1bed')]&&(_0x553d56=_0x51538b()[_0x26c1b3('0xe9e')](_0xd7dd4f['sounds'],{'save_name':_0xd7dd4f[_0x26c1b3('0x1bed')][_0x26c1b3('0x124b')]}));if(_0x553d56&&!_0x51538b()[_0x26c1b3('0x2c2')](_0x5a8e17,['id',_0x553d56['id']])){var _0xb0497a=_0x51538b()[_0x26c1b3('0xe9e')](_0xd7dd4f['sounds'],{'id':_0x553d56['id']});_0xb0497a[_0x26c1b3('0x12eb')]=![],_0x5a8e17[_0x26c1b3('0x1599')](_0xb0497a);}_0xd7dd4f['sounds']=_0x5a8e17;});}})['catch'](function(_0x383bd9){var _0x24f4eb=_0x2f59e4;_0x4b50d6[_0x24f4eb('0x187f')]({'title':_0x383bd9[_0x24f4eb('0x2fa')]?'API:'+_0x383bd9[_0x24f4eb('0x2fa')]+_0x24f4eb('0x169e')+_0x383bd9[_0x24f4eb('0x24df')]:_0x24f4eb('0x632'),'msg':_0x383bd9[_0x24f4eb('0x10fd')]?JSON[_0x24f4eb('0xa48')](_0x383bd9[_0x24f4eb('0x10fd')]):_0x383bd9[_0x24f4eb('0x684')]()});});function _0x5d4137(){var _0x25c4a6=_0x2f59e4;_0xd7dd4f[_0x25c4a6('0x4c6')]=[];var _0x18a555=[];_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0x6c8')]&&_0xd7dd4f['playback']['type'][_0x25c4a6('0xcf6')]()==='outbound'&&_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0xe6d')]==='outboundDial'&&(_0xd7dd4f[_0x25c4a6('0x1bed')]['phone']=_0x36f8fc['cutdigits']?(_0xd7dd4f['playback'][_0x25c4a6('0x1b8f')]||'')+_0x25c4a6('0x117e')+_0x36f8fc[_0x25c4a6('0x888')]+'}':(_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0x1b8f')]||'')+_0x25c4a6('0x1f87'),_0x36f8fc[_0x25c4a6('0x1e0f')]!=='none'?_0xd7dd4f['playback']['options']['indexOf'](_0x25c4a6('0x266a'))<0x0&&(_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0x1b36')]+='U(xcally-mixmonitor-context)'):_0xd7dd4f['playback'][_0x25c4a6('0x1b36')]=_0xd7dd4f['playback'][_0x25c4a6('0x1b36')][_0x25c4a6('0x170d')](_0x25c4a6('0x266a'),''));if(_0xd7dd4f['playback'][_0x25c4a6('0xe6d')]&&_0xd7dd4f[_0x25c4a6('0x1bed')]['appType']===_0x25c4a6('0x113b')){}else switch((_0xd7dd4f['playback'][_0x25c4a6('0x9eb')]||_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0xe6d')])['toLowerCase']()){case _0x25c4a6('0x282c'):_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0x124b')]=_0xd7dd4f['playback'][_0x25c4a6('0x25d6')]+'='+_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0x12f4')];break;case _0x25c4a6('0x113b'):break;default:_0x18a555[0x0]=_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0x124b')],_0x18a555[0x1]=_0xd7dd4f[_0x25c4a6('0x1bed')][_0x25c4a6('0x1b36')],_0xd7dd4f['playback']['appdata']=_0x18a555[_0x25c4a6('0x19c4')](',');}_0x5c5000(_0xd7dd4f[_0x25c4a6('0x1bed')]);}function _0x5c5000(_0xf5dc2f){var _0x33d3b5=_0x2f59e4;_0xb14ef3[_0x33d3b5('0x1120')](_0xf5dc2f);}}const _0x5d7fe1=_0xafb484;_0x3fef56[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty','internalrouteApp',_0x1a8446('0x212f'),'api','Auth',_0x1a8446('0xada')];function _0x3fef56(_0xf90b31,_0x397f23,_0x2af278,_0x40046f,_0xc11855,_0x22b301,_0x1a1c5f,_0x3da6b4){var _0x27b7f4=_0x1a8446,_0x28e27b=this;_0x28e27b['currentUser']=_0x1a1c5f[_0x27b7f4('0xacc')](),_0x28e27b[_0x27b7f4('0x4c6')]=[],_0x28e27b[_0x27b7f4('0x110a')]=_0x27b7f4('0x484')+(_0x40046f['appType']||_0x40046f[_0x27b7f4('0x9eb')])['toUpperCase'](),_0x28e27b[_0x27b7f4('0xe26')]=angular[_0x27b7f4('0x20a')](_0x40046f),_0x28e27b[_0x27b7f4('0xada')]=_0x3da6b4,_0x28e27b[_0x27b7f4('0x9f0')]={};if(_0x28e27b['queue']['appdata'])switch(_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0xe6d')]?_0x28e27b[_0x27b7f4('0xe26')]['appType'][_0x27b7f4('0xcf6')]():_0x28e27b['queue'][_0x27b7f4('0x9eb')][_0x27b7f4('0xcf6')]()){case _0x27b7f4('0x113b'):break;case _0x27b7f4('0x67c'):{var _0x45ac0f=_0x28e27b['queue'][_0x27b7f4('0x124b')]['split'](',');_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x24ec')]=_0x45ac0f[0x0],_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x1938')]=_0x45ac0f[0x1],_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x273')]=_0x45ac0f[_0x27b7f4('0x19aa')](0x2,_0x45ac0f['length'])[_0x27b7f4('0x19c4')](',');}break;case _0x27b7f4('0x3f5'):{var _0x316f58=_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x124b')][_0x27b7f4('0x1a39')](',');_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0xc07')]=_0x316f58[0x0],_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x15f9')]=_0x316f58[0x1],_0x28e27b[_0x27b7f4('0xe26')]['lexregion']=_0x316f58[0x2],_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x18ee')]=_0x316f58[0x3],_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x273')]=_0x316f58['slice'](0x4,_0x316f58[_0x27b7f4('0x2587')])[_0x27b7f4('0x19c4')](',');}break;case _0x27b7f4('0x1b05'):{var _0x35e9fa=_0x28e27b[_0x27b7f4('0xe26')]['appdata'][_0x27b7f4('0x1a39')](',');_0x28e27b['queue']['times']=isNaN(_0x35e9fa[0x0])?_0x35e9fa[0x0]:parseInt(_0x35e9fa[0x0],0xa),_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0xb37')]=_0x35e9fa['slice'](0x1,_0x35e9fa['length'])[_0x27b7f4('0x19c4')](',');}break;case _0x27b7f4('0x1402'):_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0xb37')]=_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x124b')];break;case'set':_0x28e27b['queue'][_0x27b7f4('0x25d6')]=_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x124b')][_0x27b7f4('0x1a39')]('=')[0x0],_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x12f4')]=_0x28e27b['queue'][_0x27b7f4('0x124b')][_0x27b7f4('0x1a39')]('=')[0x1];break;case'agi':_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x24b9')]=_0x28e27b['queue'][_0x27b7f4('0x124b')];break;default:{var _0x2a3447=_0x28e27b['queue'][_0x27b7f4('0x124b')][_0x27b7f4('0x1a39')](',');_0x28e27b['queue']['queue']=_0x51538b()[_0x27b7f4('0x116b')](_0x2a3447[0x0])?_0x2a3447[0x0]:isNaN(_0x2a3447[0x0])?_0x2a3447[0x0]:parseInt(_0x2a3447[0x0],0xa),_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x1b36')]=_0x51538b()['isEmpty'](_0x2a3447[0x1])?_0x2a3447[0x1]:isNaN(_0x2a3447[0x1])?_0x2a3447[0x1]:parseInt(_0x2a3447[0x1],0xa),_0x28e27b['queue']['URL']=_0x51538b()['isEmpty'](_0x2a3447[0x2])?_0x2a3447[0x2]:isNaN(_0x2a3447[0x2])?_0x2a3447[0x2]:parseInt(_0x2a3447[0x2],0xa),_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x7d6')]=_0x51538b()[_0x27b7f4('0x116b')](_0x2a3447[0x3])?_0x2a3447[0x3]:isNaN(_0x2a3447[0x3])?_0x2a3447[0x3]:parseInt(_0x2a3447[0x3],0xa),_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x23c0')]=_0x51538b()['isEmpty'](_0x2a3447[0x4])?_0x2a3447[0x4]:isNaN(_0x2a3447[0x4])?_0x2a3447[0x4]:parseInt(_0x2a3447[0x4],0xa),_0x28e27b[_0x27b7f4('0xe26')]['agi']=_0x51538b()[_0x27b7f4('0x116b')](_0x2a3447[0x5])?_0x2a3447[0x5]:isNaN(_0x2a3447[0x5])?_0x2a3447[0x5]:parseInt(_0x2a3447[0x5],0xa),_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x522')]=_0x51538b()[_0x27b7f4('0x116b')](_0x2a3447[0x6])?_0x2a3447[0x6]:isNaN(_0x2a3447[0x6])?_0x2a3447[0x6]:parseInt(_0x2a3447[0x6],0xa),_0x28e27b[_0x27b7f4('0xe26')]['gosub']=_0x51538b()[_0x27b7f4('0x116b')](_0x2a3447[0x7])?_0x2a3447[0x7]:isNaN(_0x2a3447[0x7])?_0x2a3447[0x7]:parseInt(_0x2a3447[0x7],0xa),_0x28e27b['queue'][_0x27b7f4('0x1676')]=_0x51538b()[_0x27b7f4('0x116b')](_0x2a3447[0x8])?_0x2a3447[0x8]:isNaN(_0x2a3447[0x8])?_0x2a3447[0x8]:parseInt(_0x2a3447[0x8],0xa),_0x28e27b[_0x27b7f4('0xe26')]['position']=_0x51538b()[_0x27b7f4('0x116b')](_0x2a3447[0x9])?_0x2a3447[0x9]:isNaN(_0x2a3447[0x9])?_0x2a3447[0x9]:parseInt(_0x2a3447[0x9],0xa);}break;}else{}_0x28e27b['queue'][_0x27b7f4('0x6c8')]&&_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x6c8')][_0x27b7f4('0xcf6')]()===_0x27b7f4('0x19d1')&&_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0xe6d')][_0x27b7f4('0xcf6')]()===_0x27b7f4('0x1e7f')&&(_0x28e27b[_0x27b7f4('0xe26')]['prefix']=_0x28e27b[_0x27b7f4('0xe26')]['phone']?_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x1a46')][_0x27b7f4('0x1a39')]('$')[0x0]:undefined,_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0xeed')]=_0x28e27b[_0x27b7f4('0xe26')][_0x27b7f4('0x514')]?_0x27b7f4('0x23d8')+_0x28e27b['queue'][_0x27b7f4('0x514')]:undefined);_0x28e27b['saveInternalRouteApp']=_0x37f413,_0x28e27b['closeDialog']=_0x48f2cb,_0x1a1c5f[_0x27b7f4('0x26e8')](_0x27b7f4('0x178b'))?_0x22b301[_0x27b7f4('0x7d6')][_0x27b7f4('0x2122')]({'fields':_0x27b7f4('0x188c'),'sort':_0x27b7f4('0x25d6'),'nolimit':_0x27b7f4('0x1c5c')})['$promise']['then'](function(_0x5df2f8){var _0x25cf06=_0x27b7f4;_0x28e27b[_0x25cf06('0x7ca')]=_0x5df2f8[_0x25cf06('0x580')]||[];})[_0x27b7f4('0x253d')](function(_0x4e965b){var _0xca0a6e=_0x27b7f4;_0x2af278['error']({'title':_0x4e965b[_0xca0a6e('0x2fa')]?_0xca0a6e('0x16c2')+_0x4e965b[_0xca0a6e('0x2fa')]+_0xca0a6e('0x169e')+_0x4e965b[_0xca0a6e('0x24df')]:_0xca0a6e('0x546'),'msg':_0x4e965b[_0xca0a6e('0x10fd')]?JSON[_0xca0a6e('0xa48')](_0x4e965b['data']):_0x4e965b[_0xca0a6e('0x684')]()});}):_0x22b301[_0x27b7f4('0x7d6')][_0x27b7f4('0x2122')]({'fields':_0x27b7f4('0x188c'),'sort':'name','nolimit':'true'})[_0x27b7f4('0x1dc2')][_0x27b7f4('0xaa5')](function(_0x241a0b){var _0x40d951=_0x27b7f4;_0x28e27b[_0x40d951('0x7ca')]=_0x241a0b[_0x40d951('0x580')]||[];})['then'](function(){var _0x574c5f=_0x27b7f4;return _0x22b301['userProfileSection']['get']({'userProfileId':_0x28e27b[_0x574c5f('0x7fc')][_0x574c5f('0x2168')],'sectionId':0x3ef})[_0x574c5f('0x1dc2')];})[_0x27b7f4('0xaa5')](function(_0x336130){var _0x2dc0a7=_0x27b7f4,_0x5c7e7f=_0x336130&&_0x336130[_0x2dc0a7('0x580')]?_0x336130[_0x2dc0a7('0x580')][0x0]:null;if(!_0x5c7e7f){var _0x1668ee=[],_0x10d9bd=null;_0x28e27b['queue']&&(_0x10d9bd=_0x51538b()[_0x2dc0a7('0xe9e')](_0x28e27b[_0x2dc0a7('0x7ca')],{'save_name':_0x28e27b['queue'][_0x2dc0a7('0x7d6')]}));for(var _0x4a56e5=0x0;_0x4a56e5<_0x28e27b['sounds'][_0x2dc0a7('0x2587')];_0x4a56e5++){_0x10d9bd&&_0x28e27b['sounds'][_0x4a56e5]['id']===_0x10d9bd['id']&&(_0x28e27b['sounds'][_0x4a56e5][_0x2dc0a7('0x12eb')]=![],_0x1668ee[_0x2dc0a7('0x1599')](_0x28e27b['sounds'][_0x4a56e5]));}_0x28e27b[_0x2dc0a7('0x7ca')]=_0x1668ee;}else{if(!_0x5c7e7f[_0x2dc0a7('0x26cc')])return _0x22b301[_0x2dc0a7('0x249a')][_0x2dc0a7('0x2122')]({'sectionId':_0x5c7e7f['id']})[_0x2dc0a7('0x1dc2')][_0x2dc0a7('0xaa5')](function(_0x4ddffa){var _0x17f236=_0x2dc0a7,_0xb83d6a=_0x51538b()['map'](_0x4ddffa[_0x17f236('0x580')],function(_0x42ff7f){var _0x28e4ec=_0x17f236;return _0x51538b()['find'](_0x28e27b[_0x28e4ec('0x7ca')],{'id':_0x42ff7f[_0x28e4ec('0xbcd')]});}),_0x370479=null;_0x28e27b[_0x17f236('0xe26')]&&(_0x370479=_0x51538b()[_0x17f236('0xe9e')](_0x28e27b['sounds'],{'save_name':_0x28e27b[_0x17f236('0xe26')]['sound']}));if(_0x370479&&!_0x51538b()[_0x17f236('0x2c2')](_0xb83d6a,['id',_0x370479['id']])){var _0x157747=_0x51538b()[_0x17f236('0xe9e')](_0x28e27b[_0x17f236('0x7ca')],{'id':_0x370479['id']});_0x157747[_0x17f236('0x12eb')]=![],_0xb83d6a['push'](_0x157747);}_0x28e27b[_0x17f236('0x7ca')]=_0xb83d6a;});}})[_0x27b7f4('0x253d')](function(_0xfdacb6){var _0x419f35=_0x27b7f4;_0x2af278[_0x419f35('0x187f')]({'title':_0xfdacb6[_0x419f35('0x2fa')]?_0x419f35('0x16c2')+_0xfdacb6[_0x419f35('0x2fa')]+_0x419f35('0x169e')+_0xfdacb6['statusText']:'SYSTEM:GETsounds','msg':_0xfdacb6['data']?JSON[_0x419f35('0xa48')](_0xfdacb6['data']):_0xfdacb6[_0x419f35('0x684')]()});}),_0x1a1c5f['hasRole'](_0x27b7f4('0x178b'))?_0x22b301[_0x27b7f4('0x1588')]['get']({'type':'inbound','fields':_0x27b7f4('0x21e2'),'sort':_0x27b7f4('0x25d6'),'nolimit':_0x27b7f4('0x1c5c')})[_0x27b7f4('0x1dc2')]['then'](function(_0x5e5356){var _0x1abd5a=_0x27b7f4;_0x28e27b[_0x1abd5a('0x4d7')]=_0x5e5356['rows']||[];})[_0x27b7f4('0x253d')](function(_0x1b881f){var _0x368ecf=_0x27b7f4;_0x2af278['error']({'title':_0x1b881f[_0x368ecf('0x2fa')]?_0x368ecf('0x16c2')+_0x1b881f['status']+_0x368ecf('0x169e')+_0x1b881f[_0x368ecf('0x24df')]:'SYSTEM:GET_QUEUES','msg':_0x1b881f[_0x368ecf('0x10fd')]?JSON[_0x368ecf('0xa48')](_0x1b881f[_0x368ecf('0x10fd')]):_0x1b881f[_0x368ecf('0x684')]()});}):_0x22b301[_0x27b7f4('0x1588')][_0x27b7f4('0x2122')]({'type':_0x27b7f4('0x4b8'),'fields':_0x27b7f4('0x21e2'),'sort':'name','nolimit':_0x27b7f4('0x1c5c')})[_0x27b7f4('0x1dc2')][_0x27b7f4('0xaa5')](function(_0x294642){var _0x49e138=_0x27b7f4;_0x28e27b[_0x49e138('0x4d7')]=_0x294642[_0x49e138('0x580')]||[];})[_0x27b7f4('0xaa5')](function(){var _0x311ed8=_0x27b7f4;return _0x22b301[_0x311ed8('0x1a50')]['get']({'userProfileId':_0x28e27b[_0x311ed8('0x7fc')][_0x311ed8('0x2168')],'sectionId':0x191})['$promise'];})[_0x27b7f4('0xaa5')](function(_0x12df6e){var _0x19e63d=_0x27b7f4,_0xff1378=_0x12df6e&&_0x12df6e[_0x19e63d('0x580')]?_0x12df6e[_0x19e63d('0x580')][0x0]:null;if(!_0xff1378){var _0x968708=[],_0x48e1de=null;_0x28e27b[_0x19e63d('0xe26')]&&(_0x48e1de=_0x51538b()['find'](_0x28e27b[_0x19e63d('0x4d7')],{'name':_0x28e27b['queue'][_0x19e63d('0xe26')]}));for(var _0x2e7dfd=0x0;_0x2e7dfd<_0x28e27b['queues'][_0x19e63d('0x2587')];_0x2e7dfd++){_0x48e1de&&_0x28e27b[_0x19e63d('0x4d7')][_0x2e7dfd]['id']===_0x48e1de['id']&&(_0x28e27b['queues'][_0x2e7dfd][_0x19e63d('0x12eb')]=![],_0x968708['push'](_0x28e27b['queues'][_0x2e7dfd]));}_0x28e27b[_0x19e63d('0x4d7')]=_0x968708;}else{if(!_0xff1378[_0x19e63d('0x26cc')])return _0x22b301['userProfileResource'][_0x19e63d('0x2122')]({'sectionId':_0xff1378['id']})[_0x19e63d('0x1dc2')][_0x19e63d('0xaa5')](function(_0x1a1145){var _0x15f625=_0x19e63d,_0x1543ad=_0x51538b()[_0x15f625('0x1246')](_0x1a1145[_0x15f625('0x580')],function(_0x46346b){var _0x2d11ed=_0x15f625;return _0x51538b()[_0x2d11ed('0xe9e')](_0x28e27b[_0x2d11ed('0x4d7')],{'id':_0x46346b[_0x2d11ed('0xbcd')]});}),_0x4da2fb=null;_0x28e27b[_0x15f625('0xe26')]&&(_0x4da2fb=_0x51538b()[_0x15f625('0xe9e')](_0x28e27b[_0x15f625('0x4d7')],{'name':_0x28e27b[_0x15f625('0xe26')][_0x15f625('0xe26')]}));if(_0x4da2fb&&!_0x51538b()[_0x15f625('0x2c2')](_0x1543ad,['id',_0x4da2fb['id']])){var _0x24b5b0=_0x51538b()[_0x15f625('0xe9e')](_0x28e27b[_0x15f625('0x4d7')],{'id':_0x4da2fb['id']});_0x24b5b0[_0x15f625('0x12eb')]=![],_0x1543ad['push'](_0x24b5b0);}_0x28e27b[_0x15f625('0x4d7')]=_0x1543ad;});}})['catch'](function(_0x441f2d){var _0xb8b4aa=_0x27b7f4;_0x2af278[_0xb8b4aa('0x187f')]({'title':_0x441f2d[_0xb8b4aa('0x2fa')]?_0xb8b4aa('0x16c2')+_0x441f2d[_0xb8b4aa('0x2fa')]+'\x20-\x20'+_0x441f2d[_0xb8b4aa('0x24df')]:'SYSTEM:GETqueues','msg':_0x441f2d[_0xb8b4aa('0x10fd')]?JSON[_0xb8b4aa('0xa48')](_0x441f2d[_0xb8b4aa('0x10fd')]):_0x441f2d[_0xb8b4aa('0x684')]()});});function _0x37f413(){var _0xb40cd4=_0x27b7f4;_0x28e27b['errors']=[];var _0x431592=[];_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x6c8')]&&_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x6c8')]['toLowerCase']()===_0xb40cd4('0x19d1')&&_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0xe6d')]===_0xb40cd4('0x8da')&&(_0x28e27b[_0xb40cd4('0xe26')]['phone']=_0xc11855['cutdigits']?(_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x1b8f')]||'')+'${EXTEN:'+_0xc11855[_0xb40cd4('0x888')]+'}':(_0x28e27b['queue'][_0xb40cd4('0x1b8f')]||'')+_0xb40cd4('0x1f87'),_0xc11855[_0xb40cd4('0x1e0f')]!==_0xb40cd4('0x117')?_0x28e27b['queue'][_0xb40cd4('0x1b36')][_0xb40cd4('0x1f38')](_0xb40cd4('0x266a'))<0x0&&(_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x1b36')]+=_0xb40cd4('0x266a')):_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x1b36')]=_0x28e27b[_0xb40cd4('0xe26')]['options'][_0xb40cd4('0x170d')](_0xb40cd4('0x266a'),''));if(_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0xe6d')]&&_0x28e27b['queue'][_0xb40cd4('0xe6d')]===_0xb40cd4('0x113b')){}else switch((_0x28e27b[_0xb40cd4('0xe26')]['app']||_0x28e27b[_0xb40cd4('0xe26')]['appType'])[_0xb40cd4('0xcf6')]()){case _0xb40cd4('0x282c'):_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x124b')]=_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x25d6')]+'='+_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x12f4')];break;case _0xb40cd4('0x113b'):break;default:_0x431592[0x0]=_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0xe26')],_0x431592[0x1]=_0x28e27b['queue'][_0xb40cd4('0x1b36')],_0x431592[0x2]=_0x28e27b[_0xb40cd4('0xe26')]['URL'],_0x431592[0x3]=_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x7d6')],_0x431592[0x4]=_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x23c0')],_0x431592[0x5]=_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x2067')],_0x431592[0x6]=_0x28e27b[_0xb40cd4('0xe26')]['macro'],_0x431592[0x7]=_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x2407')],_0x431592[0x8]=_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x1676')],_0x431592[0x9]=_0x28e27b[_0xb40cd4('0xe26')][_0xb40cd4('0x137c')],_0x28e27b[_0xb40cd4('0xe26')]['appdata']=_0x431592[_0xb40cd4('0x19c4')](',');}_0x48f2cb(_0x28e27b['queue']);}function _0x48f2cb(_0x58821c){var _0xdf330b=_0x27b7f4;_0xf90b31[_0xdf330b('0x1120')](_0x58821c);}}const _0x1e02a4=_0x3fef56;_0x599ceb['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),_0x1a8446('0x157'),'Auth','crudPermissions'];function _0x599ceb(_0x24df14,_0x54773c,_0x4fdd1a,_0xbebd3d,_0x28cbd0,_0x207cca,_0x4ea0b1,_0x1d2a2f){var _0x4dac00=_0x1a8446,_0x3c3f2e=this;_0x3c3f2e[_0x4dac00('0x7fc')]=_0x4ea0b1[_0x4dac00('0xacc')](),_0x3c3f2e[_0x4dac00('0x4c6')]=[],_0x3c3f2e[_0x4dac00('0x110a')]='VOICE.EDIT_'+(_0xbebd3d[_0x4dac00('0xe6d')]||_0xbebd3d[_0x4dac00('0x9eb')])[_0x4dac00('0x1d08')](),_0x3c3f2e[_0x4dac00('0x2126')]=angular[_0x4dac00('0x20a')](_0xbebd3d),_0x3c3f2e['crudPermissions']=_0x1d2a2f,_0x3c3f2e['hasModulePermissions']={};if(_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x124b')])switch(_0x3c3f2e['ringgroup'][_0x4dac00('0xe6d')]?_0x3c3f2e['ringgroup'][_0x4dac00('0xe6d')][_0x4dac00('0xcf6')]():_0x3c3f2e[_0x4dac00('0x2126')]['app'][_0x4dac00('0xcf6')]()){case _0x4dac00('0x113b'):break;case _0x4dac00('0x67c'):{var _0x440680=_0x3c3f2e[_0x4dac00('0x2126')]['appdata'][_0x4dac00('0x1a39')](',');_0x3c3f2e['ringgroup'][_0x4dac00('0x24ec')]=_0x440680[0x0],_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x1938')]=_0x440680[0x1],_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x273')]=_0x440680['slice'](0x2,_0x440680['length'])['join'](',');}break;case'amazonlex':{var _0x5c81d6=_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x124b')][_0x4dac00('0x1a39')](',');_0x3c3f2e['ringgroup'][_0x4dac00('0xc07')]=_0x5c81d6[0x0],_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x15f9')]=_0x5c81d6[0x1],_0x3c3f2e[_0x4dac00('0x2126')]['lexregion']=_0x5c81d6[0x2],_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x18ee')]=_0x5c81d6[0x3],_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x273')]=_0x5c81d6[_0x4dac00('0x19aa')](0x4,_0x5c81d6[_0x4dac00('0x2587')])['join'](',');}break;case'autoreply':{var _0x312e45=_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x124b')][_0x4dac00('0x1a39')](',');_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x11b6')]=isNaN(_0x312e45[0x0])?_0x312e45[0x0]:parseInt(_0x312e45[0x0],0xa),_0x3c3f2e[_0x4dac00('0x2126')]['text']=_0x312e45['slice'](0x1,_0x312e45[_0x4dac00('0x2587')])[_0x4dac00('0x19c4')](',');}break;case _0x4dac00('0x1402'):_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0xb37')]=_0x3c3f2e['ringgroup'][_0x4dac00('0x124b')];break;case _0x4dac00('0x282c'):_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x25d6')]=_0x3c3f2e[_0x4dac00('0x2126')]['appdata'][_0x4dac00('0x1a39')]('=')[0x0],_0x3c3f2e['ringgroup'][_0x4dac00('0x12f4')]=_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x124b')][_0x4dac00('0x1a39')]('=')[0x1];break;case'agi':_0x3c3f2e['ringgroup']['project']=_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x124b')];break;default:{var _0x4cc408=_0x3c3f2e['ringgroup'][_0x4dac00('0x124b')][_0x4dac00('0x1a39')](',');_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x234a')]=_0x4cc408[0x0][_0x4dac00('0x1a39')]('&'),_0x3c3f2e[_0x4dac00('0x2126')]['timeout']=_0x51538b()[_0x4dac00('0x116b')](_0x4cc408[0x1])?_0x4cc408[0x1]:isNaN(_0x4cc408[0x1])?_0x4cc408[0x1]:parseInt(_0x4cc408[0x1],0xa),_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x1b36')]=_0x51538b()[_0x4dac00('0x116b')](_0x4cc408[0x2])?_0x4cc408[0x2]:isNaN(_0x4cc408[0x2])?_0x4cc408[0x2]:parseInt(_0x4cc408[0x2],0xa),_0x3c3f2e['ringgroup']['url']=_0x51538b()[_0x4dac00('0x116b')](_0x4cc408[0x3])?_0x4cc408[0x3]:isNaN(_0x4cc408[0x3])?_0x4cc408[0x3]:parseInt(_0x4cc408[0x3],0xa);}break;}else{}_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x6c8')]&&_0x3c3f2e[_0x4dac00('0x2126')]['type'][_0x4dac00('0xcf6')]()===_0x4dac00('0x19d1')&&_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0xe6d')][_0x4dac00('0xcf6')]()===_0x4dac00('0x1e7f')&&(_0x3c3f2e['ringgroup'][_0x4dac00('0x1b8f')]=_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x1a46')]?_0x3c3f2e[_0x4dac00('0x2126')]['phone'][_0x4dac00('0x1a39')]('$')[0x0]:undefined,_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0xeed')]=_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x514')]?_0x4dac00('0x23d8')+_0x3c3f2e[_0x4dac00('0x2126')][_0x4dac00('0x514')]:undefined);_0x3c3f2e['saveInternalRouteApp']=_0x34b6e5,_0x3c3f2e[_0x4dac00('0x2023')]=_0x81e17e;var _0x3a2bd9=[{'id':0xca,'role':_0x4dac00('0xeff')},{'id':0xcb,'role':_0x4dac00('0xb5b')}],_0x12d5e5=null;_0x4ea0b1[_0x4dac00('0x26e8')](_0x4dac00('0x178b'))?_0x207cca['user'][_0x4dac00('0x2122')]({'fields':_0x4dac00('0x1f5d'),'sort':_0x4dac00('0x25d6'),'nolimit':_0x4dac00('0x1c5c')})['$promise'][_0x4dac00('0xaa5')](function(_0x40eb14){var _0x18d10b=_0x4dac00;_0x3c3f2e[_0x18d10b('0x2204')]=_0x40eb14[_0x18d10b('0x580')]||[];})[_0x4dac00('0x253d')](function(_0x32822a){var _0x9c7a4c=_0x4dac00;_0x4fdd1a[_0x9c7a4c('0x187f')]({'title':_0x32822a[_0x9c7a4c('0x2fa')]?_0x9c7a4c('0x16c2')+_0x32822a[_0x9c7a4c('0x2fa')]+_0x9c7a4c('0x169e')+_0x32822a['statusText']:_0x9c7a4c('0x6eb'),'msg':_0x32822a[_0x9c7a4c('0x10fd')]?JSON['stringify'](_0x32822a['data']):_0x32822a['toString']()});}):_0x207cca[_0x4dac00('0x272b')][_0x4dac00('0x2122')]({'fields':_0x4dac00('0x1f5d'),'sort':_0x4dac00('0x25d6'),'nolimit':'true'})[_0x4dac00('0x1dc2')][_0x4dac00('0xaa5')](function(_0x4e8857){var _0x3135ce=_0x4dac00;_0x12d5e5=_0x4e8857[_0x3135ce('0x580')]||[];})['then'](function(){var _0x29ae8e=_0x4dac00,_0x5e8f8c=[];for(var _0x44098b=0x0;_0x44098b<_0x3a2bd9[_0x29ae8e('0x2587')];_0x44098b++){_0x5e8f8c[_0x29ae8e('0x1599')](_0x207cca[_0x29ae8e('0x1a50')]['get']({'userProfileId':_0x3c3f2e[_0x29ae8e('0x7fc')]['userProfileId'],'sectionId':_0x3a2bd9[_0x44098b]['id']})['$promise']);}return _0x54773c[_0x29ae8e('0xa15')](_0x5e8f8c);})[_0x4dac00('0xaa5')](function(_0x61e380){var _0x103152=_0x4dac00,_0x98f9ba=_0x51538b()[_0x103152('0x1246')](_0x61e380,function(_0x5b25bd){var _0x527094=_0x103152;return _0x5b25bd&&_0x5b25bd[_0x527094('0x580')]?_0x5b25bd[_0x527094('0x580')][0x0]:null;}),_0x59b34b=[],_0x17ade2=function _0x155a6e(_0x5db675){var _0x49986f=_0x103152,_0x200702=_0x51538b()['find'](_0x98f9ba,[_0x49986f('0x10b8'),_0x3a2bd9[_0x5db675]['id']]);if(_0x200702){if(!_0x200702[_0x49986f('0x26cc')])_0x59b34b[_0x49986f('0x1599')](_0x207cca['userProfileResource'][_0x49986f('0x2122')]({'sectionId':_0x200702['id']})[_0x49986f('0x1dc2')]);else{var _0x1253a6=[];_0x12d5e5[_0x49986f('0x15b5')](function(_0x3d3e3e){var _0x1c4817=_0x49986f;_0x3d3e3e[_0x1c4817('0x924')]===_0x3a2bd9[_0x5db675]['role']&&_0x1253a6['push'](_0x3d3e3e);}),_0x59b34b[_0x49986f('0x1599')]({'rows':_0x1253a6,'count':_0x1253a6[_0x49986f('0x2587')]});}}};for(var _0x47b2b0=0x0;_0x47b2b0<_0x3a2bd9[_0x103152('0x2587')];_0x47b2b0++){_0x17ade2(_0x47b2b0);}return _0x54773c[_0x103152('0xa15')](_0x59b34b);})[_0x4dac00('0xaa5')](function(_0x1865dc){var _0x31c412=_0x4dac00,_0x25ec52=[],_0x436899=null;_0x3c3f2e[_0x31c412('0x2126')]&&(_0x436899=_0x51538b()[_0x31c412('0xe9e')](_0x12d5e5,{'name':_0x3c3f2e[_0x31c412('0x2126')]['multipleUsers']}));for(var _0x2ffd0c=0x0;_0x2ffd0c<_0x1865dc[_0x31c412('0x2587')];_0x2ffd0c++){var _0x121329=_0x1865dc[_0x2ffd0c][_0x31c412('0x580')]||[];_0x121329[_0x31c412('0x15b5')](function(_0xb3e33f){var _0x3397a9=_0x31c412;_0x25ec52[_0x3397a9('0x1599')](_0xb3e33f);});}_0x436899&&!_0x51538b()[_0x31c412('0x2c2')](_0x25ec52,[_0x31c412('0xbcd'),_0x436899['id']])&&_0x12d5e5[_0x31c412('0x15b5')](function(_0x2efb67){var _0x25a02a=_0x31c412;_0x2efb67['id']===_0x436899['id']&&(_0x2efb67[_0x25a02a('0x12eb')]=![],_0x25ec52[_0x25a02a('0x1599')](_0x2efb67));}),_0x3c3f2e[_0x31c412('0x2204')]=_0x25ec52;})[_0x4dac00('0x253d')](function(_0x419178){var _0x1bf402=_0x4dac00;_0x4fdd1a[_0x1bf402('0x187f')]({'title':_0x419178[_0x1bf402('0x2fa')]?'API:'+_0x419178[_0x1bf402('0x2fa')]+_0x1bf402('0x169e')+_0x419178[_0x1bf402('0x24df')]:'SYSTEM:GETusers','msg':_0x419178[_0x1bf402('0x10fd')]?JSON[_0x1bf402('0xa48')](_0x419178[_0x1bf402('0x10fd')]):_0x419178['toString']()});});function _0x34b6e5(){var _0xb22dc2=_0x4dac00;_0x3c3f2e[_0xb22dc2('0x4c6')]=[];var _0x3fe1fa=[];_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x6c8')]&&_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x6c8')]['toLowerCase']()===_0xb22dc2('0x19d1')&&_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0xe6d')]==='outboundDial'&&(_0x3c3f2e[_0xb22dc2('0x2126')]['phone']=_0x28cbd0[_0xb22dc2('0x888')]?(_0x3c3f2e[_0xb22dc2('0x2126')]['prefix']||'')+_0xb22dc2('0x117e')+_0x28cbd0[_0xb22dc2('0x888')]+'}':(_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x1b8f')]||'')+'${EXTEN}',_0x28cbd0[_0xb22dc2('0x1e0f')]!==_0xb22dc2('0x117')?_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x1b36')][_0xb22dc2('0x1f38')](_0xb22dc2('0x266a'))<0x0&&(_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x3c3f2e['ringgroup'][_0xb22dc2('0x1b36')]=_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x1b36')][_0xb22dc2('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0xe6d')]&&_0x3c3f2e[_0xb22dc2('0x2126')]['appType']===_0xb22dc2('0x113b')){}else switch((_0x3c3f2e['ringgroup'][_0xb22dc2('0x9eb')]||_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0xe6d')])[_0xb22dc2('0xcf6')]()){case'set':_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x124b')]=_0x3c3f2e[_0xb22dc2('0x2126')]['name']+'='+_0x3c3f2e['ringgroup'][_0xb22dc2('0x12f4')];break;case _0xb22dc2('0x113b'):break;default:_0x3fe1fa[0x0]=_0x3c3f2e[_0xb22dc2('0x2126')]['multipleUsers'][_0xb22dc2('0x19c4')]('&'),_0x3fe1fa[0x1]=_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x23c0')],_0x3fe1fa[0x2]=_0x3c3f2e[_0xb22dc2('0x2126')]['options'],_0x3fe1fa[0x3]=_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x2242')],_0x3c3f2e[_0xb22dc2('0x2126')][_0xb22dc2('0x124b')]=_0x3fe1fa[_0xb22dc2('0x19c4')](',');}_0x81e17e(_0x3c3f2e['ringgroup']);}function _0x81e17e(_0x247856){var _0x1beb98=_0x4dac00;_0x24df14[_0x1beb98('0x1120')](_0x247856);}}const _0x37e634=_0x599ceb;_0x170e09[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),'internalroute',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x170e09(_0x4745df,_0x1331d1,_0x354c0c,_0x2fc36f,_0x23abeb,_0x3a1579,_0x58ea24,_0x38ec61){var _0x1a83f8=_0x1a8446,_0x356e4c=this;_0x356e4c[_0x1a83f8('0x7fc')]=_0x58ea24[_0x1a83f8('0xacc')](),_0x356e4c['errors']=[],_0x356e4c[_0x1a83f8('0x110a')]=_0x1a83f8('0x484')+(_0x2fc36f[_0x1a83f8('0xe6d')]||_0x2fc36f['app'])['toUpperCase'](),_0x356e4c[_0x1a83f8('0x282c')]=angular[_0x1a83f8('0x20a')](_0x2fc36f),_0x356e4c[_0x1a83f8('0xada')]=_0x38ec61,_0x356e4c[_0x1a83f8('0x9f0')]={};if(_0x356e4c[_0x1a83f8('0x282c')]['appdata'])switch(_0x356e4c[_0x1a83f8('0x282c')]['appType']?_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0xe6d')]['toLowerCase']():_0x356e4c[_0x1a83f8('0x282c')]['app']['toLowerCase']()){case'custom':break;case'dialogflow':{var _0x4ecb29=_0x356e4c[_0x1a83f8('0x282c')]['appdata']['split'](',');_0x356e4c[_0x1a83f8('0x282c')]['key']=_0x4ecb29[0x0],_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x1938')]=_0x4ecb29[0x1],_0x356e4c['set'][_0x1a83f8('0x273')]=_0x4ecb29[_0x1a83f8('0x19aa')](0x2,_0x4ecb29[_0x1a83f8('0x2587')])['join'](',');}break;case'amazonlex':{var _0x44092d=_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x124b')]['split'](',');_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0xc07')]=_0x44092d[0x0],_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x15f9')]=_0x44092d[0x1],_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0xa9a')]=_0x44092d[0x2],_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x18ee')]=_0x44092d[0x3],_0x356e4c[_0x1a83f8('0x282c')]['welcomemessage']=_0x44092d[_0x1a83f8('0x19aa')](0x4,_0x44092d[_0x1a83f8('0x2587')])[_0x1a83f8('0x19c4')](',');}break;case _0x1a83f8('0x1b05'):{var _0x60cd0c=_0x356e4c['set'][_0x1a83f8('0x124b')][_0x1a83f8('0x1a39')](',');_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x11b6')]=isNaN(_0x60cd0c[0x0])?_0x60cd0c[0x0]:parseInt(_0x60cd0c[0x0],0xa),_0x356e4c['set'][_0x1a83f8('0xb37')]=_0x60cd0c['slice'](0x1,_0x60cd0c[_0x1a83f8('0x2587')])[_0x1a83f8('0x19c4')](',');}break;case _0x1a83f8('0x1402'):_0x356e4c[_0x1a83f8('0x282c')]['text']=_0x356e4c['set'][_0x1a83f8('0x124b')];break;case _0x1a83f8('0x282c'):_0x356e4c['set']['name']=_0x356e4c['set'][_0x1a83f8('0x124b')][_0x1a83f8('0x1a39')]('=')[0x0],_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x12f4')]=_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x124b')]['split']('=')[0x1];break;case _0x1a83f8('0x2067'):_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x24b9')]=_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x124b')];break;default:{var _0x23d6f5=_0x356e4c[_0x1a83f8('0x282c')]['appdata'][_0x1a83f8('0x1a39')]('=');_0x356e4c['set'][_0x1a83f8('0x25d6')]=_0x51538b()['isEmpty'](_0x23d6f5[0x0])?_0x23d6f5[0x0]:isNaN(_0x23d6f5[0x0])?_0x23d6f5[0x0]:parseInt(_0x23d6f5[0x0],0xa),_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x12f4')]=_0x51538b()[_0x1a83f8('0x116b')](_0x23d6f5[0x1])?_0x23d6f5[0x1]:isNaN(_0x23d6f5[0x1])?_0x23d6f5[0x1]:parseInt(_0x23d6f5[0x1],0xa);}break;}else{}_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x6c8')]&&_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x6c8')][_0x1a83f8('0xcf6')]()===_0x1a83f8('0x19d1')&&_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0xe6d')][_0x1a83f8('0xcf6')]()===_0x1a83f8('0x1e7f')&&(_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x1b8f')]=_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x1a46')]?_0x356e4c[_0x1a83f8('0x282c')]['phone'][_0x1a83f8('0x1a39')]('$')[0x0]:undefined,_0x356e4c['set'][_0x1a83f8('0xeed')]=_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x514')]?_0x1a83f8('0x23d8')+_0x356e4c[_0x1a83f8('0x282c')][_0x1a83f8('0x514')]:undefined);_0x356e4c['saveInternalRouteApp']=_0xa0a83f,_0x356e4c[_0x1a83f8('0x2023')]=_0x41c428,_0x58ea24[_0x1a83f8('0x26e8')](_0x1a83f8('0x178b'))?_0x3a1579[_0x1a83f8('0x14e7')][_0x1a83f8('0x2122')]({'fields':'id,name','sort':'name','nolimit':_0x1a83f8('0x1c5c')})[_0x1a83f8('0x1dc2')]['then'](function(_0x42f4bf){var _0x5295f5=_0x1a83f8;_0x356e4c['variables']=_0x42f4bf[_0x5295f5('0x580')]||[];})['catch'](function(_0x55a1cc){var _0x369b24=_0x1a83f8;_0x354c0c[_0x369b24('0x187f')]({'title':_0x55a1cc[_0x369b24('0x2fa')]?_0x369b24('0x16c2')+_0x55a1cc[_0x369b24('0x2fa')]+_0x369b24('0x169e')+_0x55a1cc[_0x369b24('0x24df')]:'SYSTEM:GET_VARIABLES','msg':_0x55a1cc[_0x369b24('0x10fd')]?JSON[_0x369b24('0xa48')](_0x55a1cc['data']):_0x55a1cc[_0x369b24('0x684')]()});}):_0x3a1579[_0x1a83f8('0x14e7')][_0x1a83f8('0x2122')]({'fields':_0x1a83f8('0x17fe'),'sort':_0x1a83f8('0x25d6'),'nolimit':'true'})['$promise'][_0x1a83f8('0xaa5')](function(_0x3706c9){var _0x4fb664=_0x1a83f8;_0x356e4c[_0x4fb664('0x147e')]=_0x3706c9['rows']||[];})[_0x1a83f8('0xaa5')](function(){var _0x19194f=_0x1a83f8;return _0x3a1579[_0x19194f('0x1a50')]['get']({'userProfileId':_0x356e4c[_0x19194f('0x7fc')]['userProfileId'],'sectionId':0x3f4})[_0x19194f('0x1dc2')];})[_0x1a83f8('0xaa5')](function(_0x51ea2b){var _0x4a159a=_0x1a83f8,_0x5a3ccf=_0x51ea2b&&_0x51ea2b[_0x4a159a('0x580')]?_0x51ea2b[_0x4a159a('0x580')][0x0]:null;if(!_0x5a3ccf){var _0x9afc44=[],_0x42c604=null;_0x356e4c[_0x4a159a('0x282c')]&&(_0x42c604=_0x51538b()[_0x4a159a('0xe9e')](_0x356e4c[_0x4a159a('0x147e')],{'name':_0x356e4c[_0x4a159a('0x282c')][_0x4a159a('0x25d6')]}));for(var _0x53827d=0x0;_0x53827d<_0x356e4c[_0x4a159a('0x147e')][_0x4a159a('0x2587')];_0x53827d++){_0x42c604&&_0x356e4c[_0x4a159a('0x147e')][_0x53827d]['id']===_0x42c604['id']&&(_0x356e4c['variables'][_0x53827d][_0x4a159a('0x12eb')]=![],_0x9afc44[_0x4a159a('0x1599')](_0x356e4c['variables'][_0x53827d]));}_0x356e4c[_0x4a159a('0x147e')]=_0x9afc44;}else{if(!_0x5a3ccf[_0x4a159a('0x26cc')])return _0x3a1579['userProfileResource']['get']({'sectionId':_0x5a3ccf['id']})['$promise'][_0x4a159a('0xaa5')](function(_0xb001f0){var _0x66ef34=_0x4a159a,_0x86e7d=_0x51538b()[_0x66ef34('0x1246')](_0xb001f0[_0x66ef34('0x580')],function(_0x196078){var _0x1a12d1=_0x66ef34;return _0x51538b()[_0x1a12d1('0xe9e')](_0x356e4c['variables'],{'id':_0x196078['resourceId']});}),_0x360b38=null;_0x356e4c['set']&&(_0x360b38=_0x51538b()[_0x66ef34('0xe9e')](_0x356e4c[_0x66ef34('0x147e')],{'name':_0x356e4c[_0x66ef34('0x282c')]['name']}));if(_0x360b38&&!_0x51538b()[_0x66ef34('0x2c2')](_0x86e7d,['id',_0x360b38['id']])){var _0x50b98a=_0x51538b()['find'](_0x356e4c[_0x66ef34('0x147e')],{'id':_0x360b38['id']});_0x50b98a[_0x66ef34('0x12eb')]=![],_0x86e7d[_0x66ef34('0x1599')](_0x50b98a);}_0x356e4c[_0x66ef34('0x147e')]=_0x86e7d;});}})[_0x1a83f8('0x253d')](function(_0xd13d5d){var _0x136cb6=_0x1a83f8;_0x354c0c[_0x136cb6('0x187f')]({'title':_0xd13d5d[_0x136cb6('0x2fa')]?_0x136cb6('0x16c2')+_0xd13d5d['status']+'\x20-\x20'+_0xd13d5d['statusText']:_0x136cb6('0xb4d'),'msg':_0xd13d5d[_0x136cb6('0x10fd')]?JSON['stringify'](_0xd13d5d['data']):_0xd13d5d[_0x136cb6('0x684')]()});});function _0xa0a83f(){var _0x288275=_0x1a83f8;_0x356e4c[_0x288275('0x4c6')]=[];var _0x51ede3=[];_0x356e4c['set'][_0x288275('0x6c8')]&&_0x356e4c[_0x288275('0x282c')]['type']['toLowerCase']()===_0x288275('0x19d1')&&_0x356e4c['set'][_0x288275('0xe6d')]===_0x288275('0x8da')&&(_0x356e4c[_0x288275('0x282c')]['phone']=_0x23abeb[_0x288275('0x888')]?(_0x356e4c[_0x288275('0x282c')]['prefix']||'')+_0x288275('0x117e')+_0x23abeb[_0x288275('0x888')]+'}':(_0x356e4c[_0x288275('0x282c')]['prefix']||'')+_0x288275('0x1f87'),_0x23abeb[_0x288275('0x1e0f')]!==_0x288275('0x117')?_0x356e4c[_0x288275('0x282c')][_0x288275('0x1b36')][_0x288275('0x1f38')](_0x288275('0x266a'))<0x0&&(_0x356e4c[_0x288275('0x282c')][_0x288275('0x1b36')]+=_0x288275('0x266a')):_0x356e4c['set'][_0x288275('0x1b36')]=_0x356e4c['set'][_0x288275('0x1b36')][_0x288275('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x356e4c[_0x288275('0x282c')][_0x288275('0xe6d')]&&_0x356e4c['set'][_0x288275('0xe6d')]===_0x288275('0x113b')){}else switch((_0x356e4c[_0x288275('0x282c')]['app']||_0x356e4c['set'][_0x288275('0xe6d')])['toLowerCase']()){case _0x288275('0x282c'):_0x356e4c[_0x288275('0x282c')]['appdata']=_0x356e4c['set']['name']+'='+_0x356e4c[_0x288275('0x282c')][_0x288275('0x12f4')];break;case _0x288275('0x113b'):break;default:_0x51ede3[0x0]=_0x356e4c[_0x288275('0x282c')][_0x288275('0x25d6')],_0x51ede3[0x1]=_0x356e4c[_0x288275('0x282c')][_0x288275('0x12f4')],_0x356e4c[_0x288275('0x282c')]['appdata']=_0x51ede3[_0x288275('0x19c4')]('=');}_0x41c428(_0x356e4c[_0x288275('0x282c')]);}function _0x41c428(_0x36c28f){var _0x2b8092=_0x1a83f8;_0x4745df[_0x2b8092('0x1120')](_0x36c28f);}}const _0x863fcb=_0x170e09;_0x4f64f7['$inject']=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x1258'),_0x1a8446('0x212f'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x4f64f7(_0x984ad6,_0x3b95c1,_0x32cf7e,_0x832f20,_0x3c7de8,_0x123dad,_0x11b502,_0x8b31be){var _0x35d0f1=_0x1a8446,_0x47fa40=this;_0x47fa40[_0x35d0f1('0x7fc')]=_0x11b502['getCurrentUser'](),_0x47fa40[_0x35d0f1('0x4c6')]=[],_0x47fa40[_0x35d0f1('0x110a')]=_0x35d0f1('0x484')+(_0x832f20[_0x35d0f1('0xe6d')]||_0x832f20['app'])['toUpperCase'](),_0x47fa40['voicemail']=angular[_0x35d0f1('0x20a')](_0x832f20),_0x47fa40['crudPermissions']=_0x8b31be,_0x47fa40[_0x35d0f1('0x9f0')]={};if(_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x124b')])switch(_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0xe6d')]?_0x47fa40['voicemail']['appType'][_0x35d0f1('0xcf6')]():_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x9eb')][_0x35d0f1('0xcf6')]()){case _0x35d0f1('0x113b'):break;case _0x35d0f1('0x67c'):{var _0x2e804e=_0x47fa40['voicemail'][_0x35d0f1('0x124b')][_0x35d0f1('0x1a39')](',');_0x47fa40['voicemail'][_0x35d0f1('0x24ec')]=_0x2e804e[0x0],_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x1938')]=_0x2e804e[0x1],_0x47fa40['voicemail'][_0x35d0f1('0x273')]=_0x2e804e['slice'](0x2,_0x2e804e[_0x35d0f1('0x2587')])['join'](',');}break;case _0x35d0f1('0x3f5'):{var _0x31e138=_0x47fa40['voicemail']['appdata']['split'](',');_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0xc07')]=_0x31e138[0x0],_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x15f9')]=_0x31e138[0x1],_0x47fa40['voicemail'][_0x35d0f1('0xa9a')]=_0x31e138[0x2],_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x18ee')]=_0x31e138[0x3],_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x273')]=_0x31e138[_0x35d0f1('0x19aa')](0x4,_0x31e138[_0x35d0f1('0x2587')])['join'](',');}break;case'autoreply':{var _0x5db5d5=_0x47fa40['voicemail'][_0x35d0f1('0x124b')]['split'](',');_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x11b6')]=isNaN(_0x5db5d5[0x0])?_0x5db5d5[0x0]:parseInt(_0x5db5d5[0x0],0xa),_0x47fa40['voicemail'][_0x35d0f1('0xb37')]=_0x5db5d5['slice'](0x1,_0x5db5d5[_0x35d0f1('0x2587')])[_0x35d0f1('0x19c4')](',');}break;case _0x35d0f1('0x1402'):_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0xb37')]=_0x47fa40['voicemail'][_0x35d0f1('0x124b')];break;case _0x35d0f1('0x282c'):_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x25d6')]=_0x47fa40[_0x35d0f1('0x1ffe')]['appdata'][_0x35d0f1('0x1a39')]('=')[0x0],_0x47fa40['voicemail'][_0x35d0f1('0x12f4')]=_0x47fa40[_0x35d0f1('0x1ffe')]['appdata'][_0x35d0f1('0x1a39')]('=')[0x1];break;case _0x35d0f1('0x2067'):_0x47fa40['voicemail']['project']=_0x47fa40[_0x35d0f1('0x1ffe')]['appdata'];break;default:{var _0xd0283e=_0x47fa40['voicemail'][_0x35d0f1('0x124b')][_0x35d0f1('0x1a39')](',');_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x2264')]=_0x51538b()[_0x35d0f1('0x116b')](_0xd0283e[0x0])?_0xd0283e[0x0]:isNaN(_0xd0283e[0x0])?_0xd0283e[0x0]:parseInt(_0xd0283e[0x0],0xa),_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x1b36')]=_0x51538b()[_0x35d0f1('0x116b')](_0xd0283e[0x1])?_0xd0283e[0x1]:isNaN(_0xd0283e[0x1])?_0xd0283e[0x1]:parseInt(_0xd0283e[0x1],0xa);}break;}else{}_0x47fa40[_0x35d0f1('0x1ffe')]['type']&&_0x47fa40[_0x35d0f1('0x1ffe')]['type'][_0x35d0f1('0xcf6')]()==='outbound'&&_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0xe6d')][_0x35d0f1('0xcf6')]()===_0x35d0f1('0x1e7f')&&(_0x47fa40[_0x35d0f1('0x1ffe')]['prefix']=_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x1a46')]?_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x1a46')]['split']('$')[0x0]:undefined,_0x47fa40[_0x35d0f1('0x1ffe')]['callerId']=_0x47fa40[_0x35d0f1('0x1ffe')][_0x35d0f1('0x514')]?_0x35d0f1('0x23d8')+_0x47fa40['voicemail'][_0x35d0f1('0x514')]:undefined);_0x47fa40[_0x35d0f1('0xa8')]=_0x473285,_0x47fa40[_0x35d0f1('0x2023')]=_0x57b6b6,_0x11b502[_0x35d0f1('0x26e8')](_0x35d0f1('0x178b'))?_0x123dad['voiceMail'][_0x35d0f1('0x2122')]({'fields':'id,mailbox','sort':_0x35d0f1('0x11cb'),'nolimit':_0x35d0f1('0x1c5c')})[_0x35d0f1('0x1dc2')][_0x35d0f1('0xaa5')](function(_0x23e0dc){var _0x48ebf5=_0x35d0f1;_0x47fa40[_0x48ebf5('0x281')]=_0x23e0dc[_0x48ebf5('0x580')]||[];})[_0x35d0f1('0x253d')](function(_0x6fe789){var _0x2f7149=_0x35d0f1;_0x32cf7e[_0x2f7149('0x187f')]({'title':_0x6fe789[_0x2f7149('0x2fa')]?_0x2f7149('0x16c2')+_0x6fe789[_0x2f7149('0x2fa')]+'\x20-\x20'+_0x6fe789[_0x2f7149('0x24df')]:_0x2f7149('0xc70'),'msg':_0x6fe789[_0x2f7149('0x10fd')]?JSON[_0x2f7149('0xa48')](_0x6fe789[_0x2f7149('0x10fd')]):_0x6fe789[_0x2f7149('0x684')]()});}):_0x123dad[_0x35d0f1('0x2264')]['get']({'fields':_0x35d0f1('0x1a67'),'sort':_0x35d0f1('0x11cb'),'nolimit':_0x35d0f1('0x1c5c')})['$promise'][_0x35d0f1('0xaa5')](function(_0x1df25c){var _0x568fcb=_0x35d0f1;_0x47fa40[_0x568fcb('0x281')]=_0x1df25c[_0x568fcb('0x580')]||[];})['then'](function(){var _0x19b6a4=_0x35d0f1;return _0x123dad[_0x19b6a4('0x1a50')][_0x19b6a4('0x2122')]({'userProfileId':_0x47fa40[_0x19b6a4('0x7fc')][_0x19b6a4('0x2168')],'sectionId':0x196})[_0x19b6a4('0x1dc2')];})[_0x35d0f1('0xaa5')](function(_0x38a137){var _0x4b6c83=_0x35d0f1,_0x2ad7d0=_0x38a137&&_0x38a137[_0x4b6c83('0x580')]?_0x38a137[_0x4b6c83('0x580')][0x0]:null;if(!_0x2ad7d0){var _0x258a21=[],_0x550030=null;_0x47fa40[_0x4b6c83('0x1ffe')]&&(_0x550030=_0x51538b()[_0x4b6c83('0xe9e')](_0x47fa40[_0x4b6c83('0x281')],{'mailbox':_0x47fa40[_0x4b6c83('0x1ffe')]['voiceMail']}));for(var _0x17b2e3=0x0;_0x17b2e3<_0x47fa40[_0x4b6c83('0x281')][_0x4b6c83('0x2587')];_0x17b2e3++){_0x550030&&_0x47fa40['voiceMails'][_0x17b2e3]['id']===_0x550030['id']&&(_0x47fa40[_0x4b6c83('0x281')][_0x17b2e3]['canSelect']=![],_0x258a21[_0x4b6c83('0x1599')](_0x47fa40[_0x4b6c83('0x281')][_0x17b2e3]));}_0x47fa40[_0x4b6c83('0x281')]=_0x258a21;}else{if(!_0x2ad7d0[_0x4b6c83('0x26cc')])return _0x123dad[_0x4b6c83('0x249a')][_0x4b6c83('0x2122')]({'sectionId':_0x2ad7d0['id']})['$promise']['then'](function(_0x56f82){var _0x4302f7=_0x4b6c83,_0x11b6ad=_0x51538b()[_0x4302f7('0x1246')](_0x56f82[_0x4302f7('0x580')],function(_0x49e2a1){var _0x48a054=_0x4302f7;return _0x51538b()[_0x48a054('0xe9e')](_0x47fa40[_0x48a054('0x281')],{'id':_0x49e2a1[_0x48a054('0xbcd')]});}),_0xefabdd=null;_0x47fa40[_0x4302f7('0x1ffe')]&&(_0xefabdd=_0x51538b()['find'](_0x47fa40[_0x4302f7('0x281')],{'mailbox':_0x47fa40[_0x4302f7('0x1ffe')][_0x4302f7('0x2264')]}));if(_0xefabdd&&!_0x51538b()[_0x4302f7('0x2c2')](_0x11b6ad,['id',_0xefabdd['id']])){var _0x11c052=_0x51538b()[_0x4302f7('0xe9e')](_0x47fa40[_0x4302f7('0x281')],{'id':_0xefabdd['id']});_0x11c052[_0x4302f7('0x12eb')]=![],_0x11b6ad[_0x4302f7('0x1599')](_0x11c052);}_0x47fa40[_0x4302f7('0x281')]=_0x11b6ad;});}})[_0x35d0f1('0x253d')](function(_0xc9e7ec){var _0x312da1=_0x35d0f1;_0x32cf7e[_0x312da1('0x187f')]({'title':_0xc9e7ec['status']?_0x312da1('0x16c2')+_0xc9e7ec[_0x312da1('0x2fa')]+_0x312da1('0x169e')+_0xc9e7ec[_0x312da1('0x24df')]:_0x312da1('0xf5'),'msg':_0xc9e7ec['data']?JSON[_0x312da1('0xa48')](_0xc9e7ec['data']):_0xc9e7ec['toString']()});});function _0x473285(){var _0x44b660=_0x35d0f1;_0x47fa40['errors']=[];var _0x4d193f=[];_0x47fa40[_0x44b660('0x1ffe')]['type']&&_0x47fa40[_0x44b660('0x1ffe')]['type'][_0x44b660('0xcf6')]()==='outbound'&&_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0xe6d')]===_0x44b660('0x8da')&&(_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x1a46')]=_0x3c7de8[_0x44b660('0x888')]?(_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x1b8f')]||'')+_0x44b660('0x117e')+_0x3c7de8[_0x44b660('0x888')]+'}':(_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x1b8f')]||'')+_0x44b660('0x1f87'),_0x3c7de8[_0x44b660('0x1e0f')]!==_0x44b660('0x117')?_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x1b36')]['indexOf'](_0x44b660('0x266a'))<0x0&&(_0x47fa40[_0x44b660('0x1ffe')]['options']+=_0x44b660('0x266a')):_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x1b36')]=_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x1b36')]['replace'](_0x44b660('0x266a'),''));if(_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0xe6d')]&&_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0xe6d')]==='custom'){}else switch((_0x47fa40[_0x44b660('0x1ffe')]['app']||_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0xe6d')])[_0x44b660('0xcf6')]()){case _0x44b660('0x282c'):_0x47fa40['voicemail']['appdata']=_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x25d6')]+'='+_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x12f4')];break;case'custom':break;default:_0x4d193f[0x0]=_0x47fa40[_0x44b660('0x1ffe')]['voiceMail'],_0x4d193f[0x1]=_0x47fa40[_0x44b660('0x1ffe')][_0x44b660('0x1b36')],_0x47fa40['voicemail'][_0x44b660('0x124b')]=_0x4d193f[_0x44b660('0x19c4')](',');}_0x57b6b6(_0x47fa40[_0x44b660('0x1ffe')]);}function _0x57b6b6(_0x3dc3d0){var _0x5a3a1b=_0x35d0f1;_0x984ad6[_0x5a3a1b('0x1120')](_0x3dc3d0);}}const _0xf74bae=_0x4f64f7;_0x26f647[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),'license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x212f'),_0x1a8446('0x1a50')];function _0x26f647(_0x4c1938,_0xc159a0,_0x31caf4,_0x17269e,_0x236259,_0x145ea0,_0xeab399,_0x337ea6,_0x422a3b,_0x1ab9da,_0x20a4b6,_0x4f7cb5){var _0x53993c=_0x1a8446,_0x28a788=this;_0x28a788['currentUser']=_0x1ab9da['getCurrentUser'](),_0x28a788[_0x53993c('0x1202')]=_0x145ea0,_0x28a788[_0x53993c('0x143f')]=_0xeab399,_0x28a788['passwordPattern']=_0x28a788[_0x53993c('0x143f')][_0x53993c('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28a788[_0x53993c('0x18cc')]=_0xc159a0[_0x53993c('0x1cc2')]()+_0x53993c('0x356')+_0xc159a0[_0x53993c('0x160c')](),_0x28a788['internalroute']=_0x20a4b6||_0x4c1938['params'][_0x53993c('0x212f')]||{},_0x28a788[_0x53993c('0x1a50')]=_0x4f7cb5&&_0x4f7cb5[_0x53993c('0xd15')]==0x1?_0x4f7cb5[_0x53993c('0x580')][0x0]:null,_0x28a788[_0x53993c('0xada')]=_0x1ab9da['parseCrudPermissions'](_0x28a788[_0x53993c('0x1a50')]?_0x28a788[_0x53993c('0x1a50')][_0x53993c('0xada')]:null),_0x28a788[_0x53993c('0x9f0')]={},_0x28a788['selectedTab']=_0x4c1938[_0x53993c('0x25cf')][_0x53993c('0x25c2')]||0x0,_0x28a788[_0x53993c('0xc10')]=_0x422a3b[_0x53993c('0x3a1')],_0x28a788[_0x53993c('0x1e35')]=_0x118bd2,_0x28a788[_0x53993c('0x1ffa')]=_0x1235ff,_0x1ab9da[_0x53993c('0x26e8')](_0x53993c('0x178b'))?_0x337ea6[_0x53993c('0x68c')]['get']({'fields':'id,name','sort':'name','nolimit':_0x53993c('0x1c5c')})[_0x53993c('0x1dc2')][_0x53993c('0xaa5')](function(_0x347079){var _0x2a3911=_0x53993c;_0x28a788[_0x2a3911('0xdc5')]=_0x347079[_0x2a3911('0x580')]||[];})[_0x53993c('0x253d')](function(_0x485972){var _0x1aaee7=_0x53993c;_0x422a3b[_0x1aaee7('0x187f')]({'title':_0x485972[_0x1aaee7('0x2fa')]?'API:'+_0x485972['status']+_0x1aaee7('0x169e')+_0x485972[_0x1aaee7('0x24df')]:'SYSTEM:GET_CONTEXTS','msg':_0x485972[_0x1aaee7('0x10fd')]?JSON[_0x1aaee7('0xa48')](_0x485972[_0x1aaee7('0x10fd')]):_0x485972['toString']()});}):_0x337ea6[_0x53993c('0x68c')][_0x53993c('0x2122')]({'fields':_0x53993c('0x17fe'),'sort':_0x53993c('0x25d6'),'nolimit':_0x53993c('0x1c5c')})['$promise'][_0x53993c('0xaa5')](function(_0x357d1a){var _0x3c0d10=_0x53993c;_0x28a788['contexts']=_0x357d1a[_0x3c0d10('0x580')]||[];})[_0x53993c('0xaa5')](function(){var _0x5006f8=_0x53993c;return _0x337ea6[_0x5006f8('0x1a50')][_0x5006f8('0x2122')]({'userProfileId':_0x28a788[_0x5006f8('0x7fc')]['userProfileId'],'sectionId':0x195})[_0x5006f8('0x1dc2')];})[_0x53993c('0xaa5')](function(_0x1580be){var _0x11b56f=_0x53993c,_0x57daeb=_0x1580be&&_0x1580be['rows']?_0x1580be[_0x11b56f('0x580')][0x0]:null;if(!_0x57daeb)return _0x337ea6['voiceContext'][_0x11b56f('0x2122')]({'fields':'id,name','sort':_0x11b56f('0x25d6'),'nolimit':_0x11b56f('0x1c5c'),'defaultEntry':0x1})[_0x11b56f('0x1dc2')][_0x11b56f('0xaa5')](function(_0x4bea80){var _0x375559=_0x11b56f;_0x28a788['contexts']=_0x4bea80[_0x375559('0x580')]||[];});else{if(!_0x57daeb['autoAssociation'])return _0x337ea6[_0x11b56f('0x249a')][_0x11b56f('0x2122')]({'sectionId':_0x57daeb['id']})[_0x11b56f('0x1dc2')][_0x11b56f('0xaa5')](function(_0x262db0){var _0x43284c=_0x11b56f,_0x1abc28=_0x51538b()[_0x43284c('0x1246')](_0x262db0[_0x43284c('0x580')],function(_0x5ce195){var _0x36bf03=_0x43284c;return _0x51538b()[_0x36bf03('0xe9e')](_0x28a788[_0x36bf03('0xdc5')],{'id':_0x5ce195['resourceId']});}),_0x1064dd=null;_0x28a788[_0x43284c('0x212f')]&&(_0x1064dd=_0x51538b()['find'](_0x28a788[_0x43284c('0xdc5')],{'name':_0x28a788[_0x43284c('0x212f')]['context']}));if(_0x1064dd&&!_0x51538b()[_0x43284c('0x2c2')](_0x1abc28,['id',_0x1064dd['id']])){var _0x9d1355=_0x51538b()[_0x43284c('0xe9e')](_0x28a788['contexts'],{'id':_0x1064dd['id']});_0x9d1355['canSelect']=![],_0x1abc28['push'](_0x9d1355);}_0x28a788['contexts']=_0x1abc28;});}})['catch'](function(_0x29228a){var _0x39dd3d=_0x53993c;_0x422a3b[_0x39dd3d('0x187f')]({'title':_0x29228a[_0x39dd3d('0x2fa')]?'API:'+_0x29228a[_0x39dd3d('0x2fa')]+_0x39dd3d('0x169e')+_0x29228a[_0x39dd3d('0x24df')]:'SYSTEM:GETcontexts','msg':_0x29228a[_0x39dd3d('0x10fd')]?JSON[_0x39dd3d('0xa48')](_0x29228a['data']):_0x29228a['toString']()});});function _0x118bd2(){var _0x59cef2=_0x53993c;_0x4c1938['go'](_0x59cef2('0x265'),{},{'reload':_0x59cef2('0x265')});}function _0x1235ff(){var _0x2369cd=_0x53993c;_0x337ea6[_0x2369cd('0x1361')][_0x2369cd('0x264e')]({'id':_0x28a788['internalroute']['id']},_0x28a788[_0x2369cd('0x212f')])['$promise']['then'](function(){var _0x4fe62d=_0x2369cd;_0x422a3b[_0x4fe62d('0xe10')]({'title':_0x4fe62d('0x1bd7'),'msg':_0x28a788['internalroute'][_0x4fe62d('0x25d6')]?_0x28a788[_0x4fe62d('0x212f')]['name']+_0x4fe62d('0x1734'):''});})['catch'](function(_0x5c5cf9){var _0x235e2e=_0x2369cd;_0x422a3b[_0x235e2e('0x187f')]({'title':_0x5c5cf9[_0x235e2e('0x2fa')]?_0x235e2e('0x16c2')+_0x5c5cf9[_0x235e2e('0x2fa')]+_0x235e2e('0x169e')+_0x5c5cf9[_0x235e2e('0x24df')]:'SYSTEM:GETvoiceExtension','msg':_0x5c5cf9[_0x235e2e('0x10fd')]?JSON[_0x235e2e('0xa48')](_0x5c5cf9[_0x235e2e('0x10fd')]):_0x5c5cf9[_0x235e2e('0x684')]()});});}}const _0x1edfb8=_0x26f647,_0x11bd0a=_0x4fb511['p']+_0x1a8446('0x11d6');_0x3aa533[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x147d'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting'];function _0x3aa533(_0x4ec121,_0x3cb833,_0xf5b994,_0x1f9bf1,_0x3e35f2,_0x1e132c,_0x703b49,_0x340c3c,_0x1da4b0,_0x35242e,_0x95ef55,_0x2fdc76,_0x4d0c8d,_0x5a27ad,_0x503a51,_0x57043e,_0x223cd5){var _0x1e5428=_0x1a8446,_0x36108c=this;_0x36108c[_0x1e5428('0x1202')]=_0x57043e,_0x36108c['setting']=_0x223cd5,_0x36108c['currentUser']=_0x503a51[_0x1e5428('0xacc')](),_0x36108c[_0x1e5428('0x147d')]=_0x1da4b0||{'count':0x0,'rows':[]},_0x36108c[_0x1e5428('0x1e97')]=_0x35242e,_0x36108c[_0x1e5428('0x1a50')]=_0x95ef55&&_0x95ef55[_0x1e5428('0xd15')]==0x1?_0x95ef55[_0x1e5428('0x580')][0x0]:null,_0x36108c[_0x1e5428('0xada')]=_0x503a51[_0x1e5428('0xffd')](_0x36108c[_0x1e5428('0x1a50')]?_0x36108c['userProfileSection'][_0x1e5428('0xada')]:null),_0x36108c[_0x1e5428('0x12b6')]='internalroutes',_0x36108c['listOrder']='',_0x36108c[_0x1e5428('0x8cc')]=null,_0x36108c[_0x1e5428('0x5bf')]=[],_0x36108c[_0x1e5428('0x582')]={'fields':_0x1e5428('0x550'),'type':'internal','sort':_0x1e5428('0xd82'),'VoiceExtensionId':'null','limit':0xa,'page':0x1},_0x36108c[_0x1e5428('0x1927')]=_0x1679b7,_0x36108c[_0x1e5428('0x271')]=_0x3f9c1d,_0x36108c[_0x1e5428('0xe10')]=_0x271ed4,_0x36108c[_0x1e5428('0x1859')]=_0x24db62,_0x36108c[_0x1e5428('0x9bc')]=_0x49bd68,_0x36108c[_0x1e5428('0x83c')]=_0x4f4450,_0x36108c[_0x1e5428('0x1c78')]=_0x1f09b5,_0x36108c[_0x1e5428('0x268b')]=_0x3d6ab4,_0x36108c[_0x1e5428('0x6d7')]=_0x34ecd1,_0x36108c['selectAllInternalRoutes']=_0x3364f8,_0x503a51['hasRole'](_0x1e5428('0x178b'))?_0x2fdc76[_0x1e5428('0x68c')][_0x1e5428('0x2122')]({'fields':_0x1e5428('0x17fe'),'sort':_0x1e5428('0x25d6'),'nolimit':'true'})['$promise'][_0x1e5428('0xaa5')](function(_0x53c4ec){var _0x3f387c=_0x1e5428;_0x36108c[_0x3f387c('0xdc5')]=_0x53c4ec[_0x3f387c('0x580')]||[];})[_0x1e5428('0x253d')](function(_0x158eb9){var _0x57fd77=_0x1e5428;_0x5a27ad[_0x57fd77('0x187f')]({'title':_0x158eb9[_0x57fd77('0x2fa')]?'API:'+_0x158eb9[_0x57fd77('0x2fa')]+_0x57fd77('0x169e')+_0x158eb9[_0x57fd77('0x24df')]:_0x57fd77('0x1393'),'msg':_0x158eb9[_0x57fd77('0x10fd')]?JSON[_0x57fd77('0xa48')](_0x158eb9[_0x57fd77('0x10fd')]):_0x158eb9['toString']()});}):_0x2fdc76['voiceContext'][_0x1e5428('0x2122')]({'fields':_0x1e5428('0x17fe'),'sort':_0x1e5428('0x25d6'),'nolimit':_0x1e5428('0x1c5c')})['$promise'][_0x1e5428('0xaa5')](function(_0x7fcb21){var _0x16ab4f=_0x1e5428;_0x36108c[_0x16ab4f('0xdc5')]=_0x7fcb21[_0x16ab4f('0x580')]||[];})[_0x1e5428('0xaa5')](function(){var _0x4f134d=_0x1e5428;return _0x2fdc76[_0x4f134d('0x1a50')][_0x4f134d('0x2122')]({'userProfileId':_0x36108c['currentUser'][_0x4f134d('0x2168')],'sectionId':0x195})[_0x4f134d('0x1dc2')];})[_0x1e5428('0xaa5')](function(_0x45c960){var _0x43ac06=_0x1e5428,_0x4cdc74=_0x45c960&&_0x45c960[_0x43ac06('0x580')]?_0x45c960[_0x43ac06('0x580')][0x0]:null;if(!_0x4cdc74)return _0x2fdc76[_0x43ac06('0x68c')][_0x43ac06('0x2122')]({'fields':_0x43ac06('0x17fe'),'sort':_0x43ac06('0x25d6'),'nolimit':'true','defaultEntry':0x1})['$promise'][_0x43ac06('0xaa5')](function(_0x5b3661){var _0x3a6293=_0x43ac06;_0x36108c['contexts']=_0x5b3661[_0x3a6293('0x580')]||[];});else{if(!_0x4cdc74[_0x43ac06('0x26cc')])return _0x2fdc76['userProfileResource'][_0x43ac06('0x2122')]({'sectionId':_0x4cdc74['id']})[_0x43ac06('0x1dc2')][_0x43ac06('0xaa5')](function(_0x26b886){var _0x1c5040=_0x43ac06,_0x1bd529=_0x51538b()[_0x1c5040('0x1246')](_0x26b886['rows'],function(_0x568c1d){var _0x37952a=_0x1c5040;return _0x51538b()[_0x37952a('0xe9e')](_0x36108c[_0x37952a('0xdc5')],{'id':_0x568c1d[_0x37952a('0xbcd')]});}),_0xd3af1=null;_0x36108c['internalroute']&&(_0xd3af1=_0x51538b()[_0x1c5040('0xe9e')](_0x36108c[_0x1c5040('0xdc5')],{'name':_0x36108c['internalroute'][_0x1c5040('0x19cd')]}));if(_0xd3af1&&!_0x51538b()[_0x1c5040('0x2c2')](_0x1bd529,['id',_0xd3af1['id']])){var _0x2996e3=_0x51538b()[_0x1c5040('0xe9e')](_0x36108c['contexts'],{'id':_0xd3af1['id']});_0x2996e3[_0x1c5040('0x12eb')]=![],_0x1bd529['push'](_0x2996e3);}_0x36108c[_0x1c5040('0xdc5')]=_0x1bd529;});}})['catch'](function(_0x1c5256){var _0xb8604d=_0x1e5428;_0x5a27ad['error']({'title':_0x1c5256[_0xb8604d('0x2fa')]?_0xb8604d('0x16c2')+_0x1c5256[_0xb8604d('0x2fa')]+_0xb8604d('0x169e')+_0x1c5256[_0xb8604d('0x24df')]:'SYSTEM:GETcontexts','msg':_0x1c5256['data']?JSON['stringify'](_0x1c5256[_0xb8604d('0x10fd')]):_0x1c5256[_0xb8604d('0x684')]()});});function _0x1679b7(_0x38d346){var _0x260107=_0x1e5428;_0xf5b994['go']('app.voice.internalroutes.edit',{'id':_0x38d346['id'],'internalroute':_0x38d346,'crudPermissions':_0x36108c[_0x260107('0xada')]});}function _0x3f9c1d(_0x73045e,_0x25ce43){var _0x30ad17=_0x1e5428,_0x5cbe76=_0x3e35f2[_0x30ad17('0x281e')]()[_0x30ad17('0x110a')](_0x30ad17('0x88d')+_0x51538b()[_0x30ad17('0x196a')](_0x30ad17('0x212f'))+'?')[_0x30ad17('0x102e')](_0x30ad17('0x389')+(_0x73045e[_0x30ad17('0x25d6')]||'internalroute')+_0x30ad17('0x697')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20internalroute')[_0x30ad17('0x116d')](_0x25ce43)['ok']('OK')[_0x30ad17('0x2030')]('CANCEL');_0x3e35f2[_0x30ad17('0x1e6d')](_0x5cbe76)[_0x30ad17('0xaa5')](function(){_0x4f4450(_0x73045e);},function(){var _0x175be7=_0x30ad17;console[_0x175be7('0x18d5')]('CANCEL');});}var _0x429863=!![],_0x46eaa1=0x1;_0x4ec121[_0x1e5428('0x1ccf')](_0x1e5428('0x1788'),function(_0x15929b,_0x35b2ce){var _0x588a38=_0x1e5428;_0x429863?_0x703b49(function(){_0x429863=![];}):(!_0x35b2ce&&(_0x46eaa1=_0x36108c[_0x588a38('0x582')][_0x588a38('0x41')]),_0x15929b!==_0x35b2ce&&(_0x36108c['query']['page']=0x1),!_0x15929b&&(_0x36108c[_0x588a38('0x582')][_0x588a38('0x41')]=_0x46eaa1),_0x36108c['getInternalRoutes']());});function _0x271ed4(_0x4b744e){_0x36108c['internalroutes']=_0x4b744e||{'count':0x0,'rows':[]};}function _0x24db62(){var _0x2e55b5=_0x1e5428;_0x36108c[_0x2e55b5('0x582')][_0x2e55b5('0x8b1')]=(_0x36108c[_0x2e55b5('0x582')][_0x2e55b5('0x41')]-0x1)*_0x36108c[_0x2e55b5('0x582')][_0x2e55b5('0xf4d')],_0x503a51['hasRole'](_0x2e55b5('0x178b'))?_0x36108c[_0x2e55b5('0x159a')]=_0x2fdc76[_0x2e55b5('0x1361')][_0x2e55b5('0x2122')](_0x36108c['query'],_0x271ed4)[_0x2e55b5('0x1dc2')]:(_0x36108c['query']['id']=_0x36108c[_0x2e55b5('0x1e97')]['id'],_0x36108c['query']['section']=_0x2e55b5('0x2081'),_0x36108c[_0x2e55b5('0x159a')]=_0x2fdc76[_0x2e55b5('0x1e97')][_0x2e55b5('0x1cf1')](_0x36108c[_0x2e55b5('0x582')],_0x271ed4)[_0x2e55b5('0x1dc2')]);}function _0x49bd68(_0x392a38,_0x1478c2){var _0x349a69=_0x1e5428;_0x3e35f2['show']({'controller':'CreateOrEditInternalRouteDialogController','controllerAs':'vm','templateUrl':_0x11bd0a,'parent':angular[_0x349a69('0x1aa8')](_0x1e132c[_0x349a69('0x54c')]),'targetEvent':_0x392a38,'clickOutsideToClose':!![],'locals':{'internalroute':_0x1478c2,'internalroutes':_0x36108c['internalroutes'][_0x349a69('0x580')],'license':_0x36108c[_0x349a69('0x1202')],'setting':_0x36108c[_0x349a69('0x143f')],'crudPermissions':_0x36108c[_0x349a69('0xada')]}});}function _0x4f4450(_0x26c200){var _0x587e1=_0x1e5428;_0x2fdc76[_0x587e1('0x1361')][_0x587e1('0x926')]({'id':_0x26c200['id']})[_0x587e1('0x1dc2')][_0x587e1('0xaa5')](function(){var _0x30fded=_0x587e1;_0x51538b()['remove'](_0x36108c[_0x30fded('0x147d')]['rows'],{'id':_0x26c200['id']}),_0x36108c[_0x30fded('0x147d')]['count']-=0x1,!_0x36108c[_0x30fded('0x147d')][_0x30fded('0x580')]['length']&&_0x36108c[_0x30fded('0x1859')](),_0x5a27ad[_0x30fded('0xe10')]({'title':_0x51538b()['startCase'](_0x30fded('0x96f'))+_0x30fded('0x8bb'),'msg':_0x26c200[_0x30fded('0x25d6')]?_0x26c200[_0x30fded('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x587e1('0x253d')](function(_0x569c6d){var _0x3c7273=_0x587e1;if(_0x569c6d['data']&&_0x569c6d[_0x3c7273('0x10fd')][_0x3c7273('0x4c6')]&&_0x569c6d['data']['errors']['length']){_0x36108c[_0x3c7273('0x4c6')]=_0x569c6d[_0x3c7273('0x10fd')][_0x3c7273('0x4c6')]||[{'message':_0x569c6d[_0x3c7273('0x684')](),'type':_0x3c7273('0xd25')}];for(var _0x26fdc9=0x0;_0x26fdc9<_0x569c6d[_0x3c7273('0x10fd')][_0x3c7273('0x4c6')]['length'];_0x26fdc9++){_0x5a27ad[_0x3c7273('0x187f')]({'title':_0x569c6d[_0x3c7273('0x10fd')][_0x3c7273('0x4c6')][_0x26fdc9][_0x3c7273('0x6c8')],'msg':_0x569c6d[_0x3c7273('0x10fd')]['errors'][_0x26fdc9][_0x3c7273('0x1402')]});}}else _0x5a27ad[_0x3c7273('0x187f')]({'title':_0x569c6d[_0x3c7273('0x2fa')]?'API:'+_0x569c6d[_0x3c7273('0x2fa')]+'\x20-\x20'+_0x569c6d[_0x3c7273('0x24df')]:_0x3c7273('0xd25'),'msg':_0x569c6d['data']?JSON['stringify'](_0x569c6d[_0x3c7273('0x10fd')][_0x3c7273('0x1402')]):_0x569c6d['message']||_0x569c6d['toString']()});});}function _0x1f09b5(){var _0xa694c5=_0x1e5428,_0xe1c6ad=angular[_0xa694c5('0x20a')](_0x36108c[_0xa694c5('0x5bf')]);return _0x36108c[_0xa694c5('0x5bf')]=[],_0xe1c6ad;}function _0x3d6ab4(_0x34c439){var _0x43eef1=_0x1e5428,_0x576dcc=_0x3e35f2[_0x43eef1('0x281e')]()[_0x43eef1('0x110a')](_0x43eef1('0x2345'))[_0x43eef1('0x102e')](_0x43eef1('0x389')+_0x36108c[_0x43eef1('0x5bf')][_0x43eef1('0x2587')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x43eef1('0x5b5')](_0x43eef1('0x103e'))[_0x43eef1('0x116d')](_0x34c439)['ok']('OK')[_0x43eef1('0x2030')](_0x43eef1('0x2410'));_0x3e35f2['show'](_0x576dcc)[_0x43eef1('0xaa5')](function(){var _0x85805a=_0x43eef1;_0x36108c[_0x85805a('0x5bf')][_0x85805a('0x15b5')](function(_0x22b63f){_0x4f4450(_0x22b63f);}),_0x36108c[_0x85805a('0x5bf')]=[];});}function _0x34ecd1(){var _0x26009f=_0x1e5428;_0x36108c[_0x26009f('0x5bf')]=[];}function _0x3364f8(){var _0x3fc9e5=_0x1e5428;_0x36108c[_0x3fc9e5('0x5bf')]=_0x36108c[_0x3fc9e5('0x147d')][_0x3fc9e5('0x580')];}}const _0x1c6c7a=_0x3aa533;_0x4a0983[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x11b5'),'musiconhold',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x4a0983(_0xb8c0a7,_0x19a84c,_0x348d49,_0x55cbdc,_0x5c5677,_0x441393,_0x144b51,_0x5d9788,_0x343219,_0x37588a,_0x5e07da,_0x4d5f5b,_0x490729,_0x594284){var _0x1f1090=_0x1a8446,_0x4e7a39=this;_0x4e7a39[_0x1f1090('0x7fc')]=_0x5e07da['getCurrentUser'](),_0x4e7a39['errors']=[],_0x4e7a39[_0x1f1090('0x143f')]=_0x490729,_0x4e7a39[_0x1f1090('0x1202')]=_0x4d5f5b,_0x4e7a39[_0x1f1090('0xada')]=_0x594284,_0x4e7a39[_0x1f1090('0x9f0')]={},_0x4e7a39[_0x1f1090('0x1d53')]=_0x4e7a39[_0x1f1090('0x143f')]&&_0x4e7a39[_0x1f1090('0x143f')][_0x1f1090('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4e7a39[_0x1f1090('0x110a')]=_0x1f1090('0x26e3'),_0x4e7a39[_0x1f1090('0x2665')]=angular[_0x1f1090('0x20a')](_0x343219),_0x4e7a39[_0x1f1090('0x11b5')]=_0x5d9788,_0x4e7a39[_0x1f1090('0x215d')]=![];!_0x4e7a39[_0x1f1090('0x2665')]&&(_0x4e7a39['musiconhold']={'mode':'files'},_0x4e7a39[_0x1f1090('0x110a')]='VOICE.NEW_MUSICONHOLD',_0x4e7a39[_0x1f1090('0x215d')]=!![]);_0x4e7a39[_0x1f1090('0x7dc')]=_0x9258c8,_0x4e7a39[_0x1f1090('0x1ae1')]=_0x54b832,_0x4e7a39[_0x1f1090('0x14b5')]=_0x16e0db,_0x4e7a39[_0x1f1090('0xc09')]=_0x3d9949,_0x4e7a39[_0x1f1090('0x2023')]=_0x4489bc;function _0x9258c8(){var _0x5f68c7=_0x1f1090;_0x4e7a39[_0x5f68c7('0x4c6')]=[],_0x37588a[_0x5f68c7('0x1959')]['save'](_0x4e7a39[_0x5f68c7('0x2665')])[_0x5f68c7('0x1dc2')][_0x5f68c7('0xaa5')](function(_0x3527ae){var _0x46e418=_0x5f68c7;_0x4e7a39['musiconholds']['unshift'](_0x3527ae[_0x46e418('0x256a')]()),_0x144b51[_0x46e418('0xe10')]({'title':_0x46e418('0x22c3'),'msg':_0x4e7a39['musiconhold'][_0x46e418('0x25d6')]?_0x4e7a39['musiconhold'][_0x46e418('0x25d6')]+_0x46e418('0xdca'):''}),_0x4489bc(_0x3527ae);})['catch'](function(_0x2b3b32){var _0x50ac9d=_0x5f68c7;if(_0x2b3b32[_0x50ac9d('0x10fd')]&&_0x2b3b32['data'][_0x50ac9d('0x4c6')]&&_0x2b3b32[_0x50ac9d('0x10fd')][_0x50ac9d('0x4c6')]['length']){_0x4e7a39[_0x50ac9d('0x4c6')]=_0x2b3b32[_0x50ac9d('0x10fd')]['errors']||[{'message':_0x2b3b32['toString'](),'type':_0x50ac9d('0x562')}];for(var _0x556f6a=0x0;_0x556f6a<_0x2b3b32['data']['errors'][_0x50ac9d('0x2587')];_0x556f6a+=0x1){_0x144b51[_0x50ac9d('0x187f')]({'title':_0x2b3b32['data'][_0x50ac9d('0x4c6')][_0x556f6a][_0x50ac9d('0x6c8')],'msg':_0x2b3b32[_0x50ac9d('0x10fd')][_0x50ac9d('0x4c6')][_0x556f6a][_0x50ac9d('0x1402')]});}}else _0x144b51['error']({'title':_0x2b3b32[_0x50ac9d('0x2fa')]?'API:'+_0x2b3b32[_0x50ac9d('0x2fa')]+'\x20-\x20'+_0x2b3b32['statusText']:_0x50ac9d('0x562'),'msg':_0x2b3b32[_0x50ac9d('0x10fd')]?JSON['stringify'](_0x2b3b32['data'][_0x50ac9d('0x1402')]):_0x2b3b32[_0x50ac9d('0x684')]()});});}function _0x54b832(){var _0x596714=_0x1f1090;_0x4e7a39[_0x596714('0x4c6')]=[],_0x37588a['voiceMusicOnHold']['update']({'id':_0x4e7a39[_0x596714('0x2665')]['id']},_0x4e7a39[_0x596714('0x2665')])[_0x596714('0x1dc2')]['then'](function(_0x24c79e){var _0x2b1987=_0x596714,_0x2b3212=_0x51538b()[_0x2b1987('0xe9e')](_0x4e7a39[_0x2b1987('0x11b5')],{'id':_0x24c79e['id']});_0x2b3212&&_0x51538b()[_0x2b1987('0x283c')](_0x2b3212,_0x51538b()[_0x2b1987('0x104e')](_0x24c79e[_0x2b1987('0x256a')](),_0x51538b()[_0x2b1987('0x9f2')](_0x2b3212))),_0x144b51[_0x2b1987('0xe10')]({'title':_0x2b1987('0x133c'),'msg':_0x4e7a39[_0x2b1987('0x2665')][_0x2b1987('0x25d6')]?_0x4e7a39[_0x2b1987('0x2665')][_0x2b1987('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x4489bc(_0x24c79e);})[_0x596714('0x253d')](function(_0x5cf24d){var _0x4c4517=_0x596714;if(_0x5cf24d[_0x4c4517('0x10fd')]&&_0x5cf24d[_0x4c4517('0x10fd')][_0x4c4517('0x4c6')]&&_0x5cf24d[_0x4c4517('0x10fd')]['errors']['length']){_0x4e7a39[_0x4c4517('0x4c6')]=_0x5cf24d[_0x4c4517('0x10fd')][_0x4c4517('0x4c6')]||[{'message':_0x5cf24d[_0x4c4517('0x684')](),'type':_0x4c4517('0xa00')}];for(var _0x5e17dd=0x0;_0x5e17dd<_0x5cf24d['data'][_0x4c4517('0x4c6')][_0x4c4517('0x2587')];_0x5e17dd++){_0x144b51[_0x4c4517('0x187f')]({'title':_0x5cf24d['data'][_0x4c4517('0x4c6')][_0x5e17dd][_0x4c4517('0x6c8')],'msg':_0x5cf24d[_0x4c4517('0x10fd')]['errors'][_0x5e17dd][_0x4c4517('0x1402')]});}}else _0x144b51[_0x4c4517('0x187f')]({'title':_0x5cf24d['status']?_0x4c4517('0x16c2')+_0x5cf24d['status']+_0x4c4517('0x169e')+_0x5cf24d[_0x4c4517('0x24df')]:_0x4c4517('0xa00'),'msg':_0x5cf24d[_0x4c4517('0x10fd')]?JSON[_0x4c4517('0xa48')](_0x5cf24d[_0x4c4517('0x10fd')][_0x4c4517('0x1402')]):_0x5cf24d['toString']()});});}function _0x16e0db(_0x4df1c1){var _0x44a64f=_0x1f1090;_0x4e7a39['errors']=[];var _0x32e1a0=_0x55cbdc[_0x44a64f('0x281e')]()[_0x44a64f('0x110a')](_0x44a64f('0x12a3'))[_0x44a64f('0x15af')](_0x44a64f('0x14fb'))[_0x44a64f('0x5b5')]('Delete\x20MusicOnHold')['ok']('Delete')[_0x44a64f('0x2030')](_0x44a64f('0x9c6'))[_0x44a64f('0x116d')](_0x4df1c1);_0x55cbdc[_0x44a64f('0x1e6d')](_0x32e1a0)['then'](function(){var _0x1f3ce5=_0x44a64f;_0x37588a[_0x1f3ce5('0x1959')][_0x1f3ce5('0x926')]({'id':_0x4e7a39['musiconhold']['id']})[_0x1f3ce5('0x1dc2')][_0x1f3ce5('0xaa5')](function(){var _0x15d050=_0x1f3ce5;_0x51538b()[_0x15d050('0xf6d')](_0x4e7a39['musiconholds'],{'id':_0x4e7a39[_0x15d050('0x2665')]['id']}),_0x144b51[_0x15d050('0xe10')]({'title':_0x15d050('0x1482'),'msg':(_0x4e7a39['musiconhold']['name']||_0x15d050('0x2665'))+_0x15d050('0xcd9')}),_0x4489bc(_0x4e7a39[_0x15d050('0x2665')]);})[_0x1f3ce5('0x253d')](function(_0x2ba496){var _0x50521b=_0x1f3ce5;if(_0x2ba496[_0x50521b('0x10fd')]&&_0x2ba496['data'][_0x50521b('0x4c6')]&&_0x2ba496[_0x50521b('0x10fd')]['errors'][_0x50521b('0x2587')]){_0x4e7a39[_0x50521b('0x4c6')]=_0x2ba496[_0x50521b('0x10fd')]['errors']||[{'message':_0x2ba496[_0x50521b('0x684')](),'type':'api.voiceMusicOnHold.delete'}];for(var _0x463a19=0x0;_0x463a19<_0x2ba496[_0x50521b('0x10fd')][_0x50521b('0x4c6')][_0x50521b('0x2587')];_0x463a19++){_0x144b51[_0x50521b('0x187f')]({'title':_0x2ba496['data']['errors'][_0x463a19]['type'],'msg':_0x2ba496['data'][_0x50521b('0x4c6')][_0x463a19][_0x50521b('0x1402')]});}}else _0x144b51[_0x50521b('0x187f')]({'title':_0x2ba496[_0x50521b('0x2fa')]?'API:'+_0x2ba496[_0x50521b('0x2fa')]+_0x50521b('0x169e')+_0x2ba496['statusText']:_0x50521b('0x1fb'),'msg':_0x2ba496[_0x50521b('0x10fd')]?JSON[_0x50521b('0xa48')](_0x2ba496[_0x50521b('0x10fd')][_0x50521b('0x1402')]):_0x2ba496[_0x50521b('0x1402')]||_0x2ba496[_0x50521b('0x684')]()});});},function(){});}function _0x3d9949(_0xd2694b){return _0xd2694b===null?undefined:new Date(_0xd2694b);}function _0x4489bc(_0x4fbf4b){var _0x2ceeee=_0x1f1090;_0x55cbdc[_0x2ceeee('0x1120')](_0x4fbf4b);}}const _0x4be78e=_0x4a0983,_0x27a8c3=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html/dialog-[chunkhash].html';_0x3ad3c5[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),'$scope',_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'toasty',_0x1a8446('0x157'),'Auth'];function _0x3ad3c5(_0x26ca39,_0x34a6b3,_0x59da47,_0x378e6e,_0x587176,_0x37dcea,_0x691c35,_0x2e3209,_0xb3b77d,_0x257e63,_0x35cc00){var _0x51a994=_0x1a8446,_0x4e3368=this;_0x4e3368['currentUser']=_0x35cc00[_0x51a994('0xacc')](),_0x4e3368[_0x51a994('0x2665')]={},_0x4e3368[_0x51a994('0x14e0')]={'count':0x0,'rows':[]},_0x4e3368[_0x51a994('0x1237')]=[],_0x4e3368[_0x51a994('0xada')],_0x4e3368[_0x51a994('0x582')]={'fields':_0x51a994('0x1d59'),'limit':0xa,'page':0x1},_0x4e3368[_0x51a994('0x2e')]=_0x27dfd7,_0x4e3368[_0x51a994('0x1416')]=_0x22c4a0,_0x4e3368[_0x51a994('0x218d')]=_0x13f5d5,_0x4e3368['success']=_0x512e31,_0x4e3368[_0x51a994('0x60d')]=_0x332a96,_0x4e3368[_0x51a994('0x4ff')]=_0x23b5bc,_0x4e3368[_0x51a994('0x7bd')]=_0x242d05,_0x4e3368[_0x51a994('0x23de')]=_0x146455,_0x4e3368[_0x51a994('0x1e67')]=_0x1a3285,_0x35cc00[_0x51a994('0x26e8')]('admin')?_0x257e63['sound']['get']({'fields':_0x51a994('0x17fe'),'sort':_0x51a994('0x25d6')})[_0x51a994('0x1dc2')][_0x51a994('0xaa5')](function(_0x1ed06b){var _0x50e47b=_0x51a994;_0x4e3368[_0x50e47b('0x7ca')]=_0x1ed06b[_0x50e47b('0x580')]||[];})[_0x51a994('0x253d')](function(_0x5def51){var _0x370cd0=_0x51a994;_0xb3b77d[_0x370cd0('0x187f')]({'title':_0x5def51[_0x370cd0('0x2fa')]?_0x370cd0('0x16c2')+_0x5def51[_0x370cd0('0x2fa')]+_0x370cd0('0x169e')+_0x5def51[_0x370cd0('0x24df')]:'SYSTEM:GET_SOUNDS','msg':_0x5def51[_0x370cd0('0x10fd')]?JSON[_0x370cd0('0xa48')](_0x5def51['data']):_0x5def51[_0x370cd0('0x684')]()});}):_0x257e63[_0x51a994('0x7d6')][_0x51a994('0x2122')]({'fields':_0x51a994('0x17fe'),'sort':_0x51a994('0x25d6')})[_0x51a994('0x1dc2')][_0x51a994('0xaa5')](function(_0x256a65){var _0x63213e=_0x51a994;_0x4e3368[_0x63213e('0x7ca')]=_0x256a65[_0x63213e('0x580')]||[];})[_0x51a994('0xaa5')](function(){var _0x3fd124=_0x51a994;return _0x257e63[_0x3fd124('0x1a50')][_0x3fd124('0x2122')]({'userProfileId':_0x4e3368[_0x3fd124('0x7fc')][_0x3fd124('0x2168')],'sectionId':0x3ef})['$promise'];})[_0x51a994('0xaa5')](function(_0x1ceebf){var _0x2108c1=_0x51a994,_0x28605e=_0x1ceebf&&_0x1ceebf[_0x2108c1('0x580')]?_0x1ceebf[_0x2108c1('0x580')][0x0]:null;if(!_0x28605e){var _0x4ac60a=[],_0x2f6aa0=null;_0x4e3368[_0x2108c1('0x2665')]&&(_0x2f6aa0=_0x51538b()[_0x2108c1('0xe9e')](_0x4e3368['sounds'],{'id':Number(_0x4e3368[_0x2108c1('0x2665')]['id'])}));for(var _0x14e32d=0x0;_0x14e32d<_0x4e3368[_0x2108c1('0x7ca')][_0x2108c1('0x2587')];_0x14e32d++){_0x2f6aa0&&_0x4e3368[_0x2108c1('0x7ca')][_0x14e32d]['id']===_0x2f6aa0['id']&&(_0x4e3368['sounds'][_0x14e32d][_0x2108c1('0x12eb')]=![],_0x4ac60a[_0x2108c1('0x1599')](_0x4e3368[_0x2108c1('0x7ca')][_0x14e32d]));}_0x4e3368[_0x2108c1('0x7ca')]=_0x4ac60a;}else{if(!_0x28605e[_0x2108c1('0x26cc')])return _0x257e63['userProfileResource'][_0x2108c1('0x2122')]({'sectionId':_0x28605e['id']})['$promise']['then'](function(_0x50b6d0){var _0x484e3d=_0x2108c1,_0x5da5c6=_0x51538b()['map'](_0x50b6d0[_0x484e3d('0x580')],function(_0xc1c01d){var _0x2e67ad=_0x484e3d;return _0x51538b()[_0x2e67ad('0xe9e')](_0x4e3368[_0x2e67ad('0x7ca')],{'id':_0xc1c01d['resourceId']});}),_0x1655fb=null;_0x4e3368[_0x484e3d('0x2665')]&&(_0x1655fb=_0x51538b()[_0x484e3d('0xe9e')](_0x4e3368['sounds'],{'id':Number(_0x4e3368[_0x484e3d('0x2665')]['id'])}));if(_0x1655fb&&!_0x51538b()['some'](_0x5da5c6,['id',_0x1655fb['id']])){var _0x57c6ef=_0x51538b()[_0x484e3d('0xe9e')](_0x4e3368['sounds'],{'id':_0x1655fb['id']});_0x57c6ef[_0x484e3d('0x12eb')]=![],_0x5da5c6[_0x484e3d('0x1599')](_0x57c6ef);}_0x4e3368['sounds']=_0x5da5c6;});}})[_0x51a994('0x253d')](function(_0x30e579){var _0x158787=_0x51a994;_0xb3b77d[_0x158787('0x187f')]({'title':_0x30e579[_0x158787('0x2fa')]?_0x158787('0x16c2')+_0x30e579[_0x158787('0x2fa')]+'\x20-\x20'+_0x30e579[_0x158787('0x24df')]:_0x158787('0x632'),'msg':_0x30e579[_0x158787('0x10fd')]?JSON[_0x158787('0xa48')](_0x30e579[_0x158787('0x10fd')]):_0x30e579[_0x158787('0x684')]()});});function _0x27dfd7(_0x122577,_0x30958d){var _0x14f7af=_0x51a994;_0x4e3368[_0x14f7af('0x2665')]=_0x122577,_0x4e3368[_0x14f7af('0xada')]=typeof _0x30958d!==_0x14f7af('0x1574')?_0x30958d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e3368[_0x14f7af('0x582')]['VoiceMusicOnHoldId']=_0x4e3368[_0x14f7af('0x2665')]['id'],_0x4e3368[_0x14f7af('0x582')]['id']=_0x4e3368[_0x14f7af('0x2665')]['id'],_0x332a96();}function _0x13f5d5(_0x132ef7,_0x2ab830,_0x352c8a){var _0x1dede8=_0x51a994;return _0x257e63['sound'][_0x1dede8('0x1cf9')]({'id':_0x132ef7['id'],'exists':!![],'attachments':_0x352c8a})['$promise'][_0x1dede8('0xaa5')](function(_0x12514a){var _0x5b2043=_0x1dede8,_0x5a4aa5=[_0x12514a[_0x5b2043('0x1bf1')]],_0x46b5ae=_0x5b2043('0x1543')+_0x132ef7['id'],_0xe3badb=new Blob(_0x5a4aa5,{'type':_0x12514a[_0x5b2043('0x6c8')]});_0x46b5ae=_0x132ef7['converted_format']?_0x132ef7[_0x5b2043('0xff4')]+'.'+_0x132ef7['converted_format']:_0x132ef7[_0x5b2043('0xff4')];var _0x10a199=window[_0x5b2043('0x12aa')][_0x5b2043('0x531')]('a');_0x10a199['setAttribute'](_0x5b2043('0x18ae'),URL[_0x5b2043('0x1e56')](_0xe3badb)),_0x10a199['setAttribute'](_0x5b2043('0x1cf9'),_0x46b5ae),document[_0x5b2043('0x54c')][_0x5b2043('0x1315')](_0x10a199),_0x10a199[_0x5b2043('0x467')]();})[_0x1dede8('0x253d')](function(_0x30bd35){var _0x1c6a81=_0x1dede8;if(_0x30bd35[_0x1c6a81('0x10fd')]&&_0x30bd35[_0x1c6a81('0x10fd')][_0x1c6a81('0x4c6')]&&_0x30bd35[_0x1c6a81('0x10fd')][_0x1c6a81('0x4c6')][_0x1c6a81('0x2587')])for(var _0x134344=0x0;_0x134344<_0x30bd35[_0x1c6a81('0x10fd')]['errors'][_0x1c6a81('0x2587')];_0x134344+=0x1){_0xb3b77d['error']({'title':_0x30bd35['data'][_0x1c6a81('0x4c6')][_0x134344][_0x1c6a81('0x6c8')],'msg':_0x30bd35[_0x1c6a81('0x10fd')][_0x1c6a81('0x4c6')][_0x134344]['message']});}else _0xb3b77d[_0x1c6a81('0x187f')]({'title':_0x30bd35[_0x1c6a81('0x2fa')]?_0x1c6a81('0x16c2')+_0x30bd35[_0x1c6a81('0x2fa')]+'\x20-\x20'+_0x30bd35[_0x1c6a81('0x24df')]:_0x1c6a81('0x562'),'msg':_0x30bd35[_0x1c6a81('0x10fd')]?JSON['stringify'](_0x30bd35['data']['message']):_0x30bd35[_0x1c6a81('0x684')]()});});}function _0x22c4a0(_0x31a069,_0x2dfad8){var _0x15d411=_0x51a994,_0x386486=_0x691c35[_0x15d411('0x281e')]()['title'](_0x15d411('0x73'))[_0x15d411('0x102e')](_0x15d411('0x389')+(_0x31a069[_0x15d411('0x25d6')]||_0x31a069['id']&&_0x51538b()[_0x15d411('0x1791')]('mohSound\x20#')+_0x31a069['id']||_0x15d411('0x1543'))+_0x15d411('0x697')+_0x15d411('0x210d'))[_0x15d411('0x5b5')](_0x15d411('0x1644'))[_0x15d411('0x116d')](_0x2dfad8)['ok']('OK')[_0x15d411('0x2030')](_0x15d411('0x2410'));_0x691c35[_0x15d411('0x1e6d')](_0x386486)[_0x15d411('0xaa5')](function(){_0x146455(_0x31a069);},function(){var _0x3dee8e=_0x15d411;console[_0x3dee8e('0x18d5')](_0x3dee8e('0x2410'));});}function _0x512e31(_0x54cbdd){var _0x3de867=_0x51a994;_0x4e3368[_0x3de867('0x14e0')]=_0x54cbdd||{'count':0x0,'rows':[]};}function _0x332a96(){var _0x50a3a1=_0x51a994;_0x4e3368[_0x50a3a1('0x582')][_0x50a3a1('0x8b1')]=(_0x4e3368[_0x50a3a1('0x582')]['page']-0x1)*_0x4e3368[_0x50a3a1('0x582')]['limit'],_0x4e3368[_0x50a3a1('0x159a')]=_0x257e63['voiceMusicOnHold'][_0x50a3a1('0x17f1')](_0x4e3368[_0x50a3a1('0x582')],_0x512e31)['$promise'];}function _0x23b5bc(_0x2678d0,_0xfec4ce){var _0x5be92e=_0x51a994;_0x691c35[_0x5be92e('0x1e6d')]({'controller':_0x5be92e('0x32f'),'controllerAs':'vm','templateUrl':_0x27a8c3,'parent':angular[_0x5be92e('0x1aa8')](_0x2e3209[_0x5be92e('0x54c')]),'targetEvent':_0x2678d0,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x4e3368['musiconhold'],'mohSound':_0xfec4ce,'mohSounds':_0x4e3368[_0x5be92e('0x14e0')][_0x5be92e('0x580')],'license':null,'setting':null,'crudPermissions':_0x4e3368[_0x5be92e('0xada')]}});}function _0x146455(_0xc130d9){var _0x446746=_0x51a994;_0x257e63[_0x446746('0x1959')]['removeSound']({'id':_0x59da47['params']['id'],'id2':_0xc130d9['id']})['$promise'][_0x446746('0xaa5')](function(){var _0x418630=_0x446746;_0x51538b()['remove'](_0x4e3368[_0x418630('0x14e0')][_0x418630('0x580')],{'id':_0xc130d9['id']}),_0x4e3368[_0x418630('0x14e0')]['count']-=0x1,!_0x4e3368[_0x418630('0x14e0')][_0x418630('0x580')]['length']&&_0x332a96(),_0xb3b77d['success']({'title':_0x418630('0x7d'),'msg':_0xc130d9[_0x418630('0x25d6')]?_0xc130d9[_0x418630('0x25d6')]+_0x418630('0xcd9'):''});})[_0x446746('0x253d')](function(_0x62eeec){var _0x355660=_0x446746;if(_0x62eeec[_0x355660('0x10fd')]&&_0x62eeec[_0x355660('0x10fd')][_0x355660('0x4c6')]&&_0x62eeec[_0x355660('0x10fd')][_0x355660('0x4c6')]['length']){_0x4e3368[_0x355660('0x4c6')]=_0x62eeec[_0x355660('0x10fd')][_0x355660('0x4c6')]||[{'message':_0x62eeec[_0x355660('0x684')](),'type':_0x355660('0x662')}];for(var _0x59539e=0x0;_0x59539e<_0x62eeec[_0x355660('0x10fd')][_0x355660('0x4c6')]['length'];_0x59539e++){_0xb3b77d[_0x355660('0x187f')]({'title':_0x62eeec['data']['errors'][_0x59539e][_0x355660('0x6c8')],'msg':_0x62eeec[_0x355660('0x10fd')][_0x355660('0x4c6')][_0x59539e][_0x355660('0x1402')]});}}else _0xb3b77d[_0x355660('0x187f')]({'title':_0x62eeec['status']?_0x355660('0x16c2')+_0x62eeec[_0x355660('0x2fa')]+_0x355660('0x169e')+_0x62eeec[_0x355660('0x24df')]:_0x355660('0x662'),'msg':_0x62eeec['data']?JSON[_0x355660('0xa48')](_0x62eeec[_0x355660('0x10fd')]['message']):_0x62eeec[_0x355660('0x1402')]||_0x62eeec[_0x355660('0x684')]()});});}function _0x242d05(){var _0x29d7cf=_0x51a994,_0x111e67=angular[_0x29d7cf('0x20a')](_0x4e3368[_0x29d7cf('0x1237')]);return _0x4e3368[_0x29d7cf('0x1237')]=[],_0x111e67;}function _0x1a3285(_0x3a7e59){var _0x14a1e2=_0x51a994,_0x4ac40e=_0x691c35[_0x14a1e2('0x281e')]()['title'](_0x14a1e2('0x1f2e'))[_0x14a1e2('0x102e')](_0x14a1e2('0x389')+_0x4e3368[_0x14a1e2('0x1237')][_0x14a1e2('0x2587')]+_0x14a1e2('0x1443')+'\x20will\x20be\x20deleted.')[_0x14a1e2('0x5b5')](_0x14a1e2('0xce6'))[_0x14a1e2('0x116d')](_0x3a7e59)['ok']('OK')[_0x14a1e2('0x2030')](_0x14a1e2('0x2410'));_0x691c35[_0x14a1e2('0x1e6d')](_0x4ac40e)[_0x14a1e2('0xaa5')](function(){var _0x5b794d=_0x14a1e2;_0x4e3368[_0x5b794d('0x1237')][_0x5b794d('0x15b5')](function(_0x305e02){_0x146455(_0x305e02);}),_0x4e3368[_0x5b794d('0x1237')]=[];});}var _0x1b0434=!![],_0x1d2ffc=0x1;_0x34a6b3[_0x51a994('0x1ccf')](_0x51a994('0x74c'),function(_0x432da8,_0x42787f){var _0x23e1bc=_0x51a994;_0x1b0434?_0x37dcea(function(){_0x1b0434=![];}):(!_0x42787f&&(_0x1d2ffc=_0x4e3368['query'][_0x23e1bc('0x41')]),_0x432da8!==_0x42787f&&(_0x4e3368[_0x23e1bc('0x582')]['page']=0x1),!_0x432da8&&(_0x4e3368['query'][_0x23e1bc('0x41')]=_0x1d2ffc),_0x332a96());});}const _0x2a3520=_0x3ad3c5;_0x31ec64[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0xeb3'),'mohSound',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x31ec64(_0x4ee609,_0xe14ba7,_0x43effa,_0x447081,_0x2ca58d,_0x49e20e,_0xb9cc0f,_0x2b7a80,_0x23b318,_0x15b050,_0x29db70,_0x297960,_0x353965,_0x3e7a29){var _0x523949=_0x1a8446,_0x37b05b=this;_0x37b05b[_0x523949('0x7fc')]=_0x29db70[_0x523949('0xacc')](),_0x37b05b[_0x523949('0x4c6')]=[],_0x37b05b['setting']=_0x353965,_0x37b05b[_0x523949('0x1202')]=_0x297960,_0x37b05b[_0x523949('0xada')]=_0x3e7a29,_0x37b05b[_0x523949('0x9f0')]={},_0x37b05b[_0x523949('0x1d53')]=_0x37b05b[_0x523949('0x143f')]&&_0x37b05b[_0x523949('0x143f')][_0x523949('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x37b05b[_0x523949('0x110a')]=_0x523949('0xd42'),_0x37b05b[_0x523949('0x1543')]=angular[_0x523949('0x20a')](_0x23b318),_0x37b05b[_0x523949('0xeb3')]=_0x2b7a80,_0x37b05b[_0x523949('0x18ed')]=![];!_0x37b05b[_0x523949('0x1543')]&&(_0x37b05b[_0x523949('0x1543')]={},_0x37b05b['title']=_0x523949('0x1896'),_0x37b05b['newMohSound']=!![]);_0xe14ba7[_0x523949('0x25cf')]['id']&&(_0x37b05b['mohSound'][_0x523949('0xdf7')]=_0xe14ba7[_0x523949('0x25cf')]['id']);_0x37b05b[_0x523949('0x1412')]=_0x1f3b8c,_0x37b05b[_0x523949('0x17ad')]=_0x4d196f,_0x37b05b[_0x523949('0x2e3')]=_0x2d1d53,_0x37b05b['getDateFromString']=_0x47b82a,_0x37b05b[_0x523949('0x2023')]=_0x36e9ba,_0x29db70[_0x523949('0x26e8')](_0x523949('0x178b'))?_0x15b050[_0x523949('0x7d6')][_0x523949('0x2122')]({'fields':_0x523949('0x17fe'),'sort':'name'})[_0x523949('0x1dc2')][_0x523949('0xaa5')](function(_0x100a77){var _0x4bb7e3=_0x523949;_0x37b05b[_0x4bb7e3('0x7ca')]=_0x100a77[_0x4bb7e3('0x580')]||[];})[_0x523949('0x253d')](function(_0x46bb95){var _0x4d4ae0=_0x523949;_0xb9cc0f[_0x4d4ae0('0x187f')]({'title':_0x46bb95[_0x4d4ae0('0x2fa')]?_0x4d4ae0('0x16c2')+_0x46bb95[_0x4d4ae0('0x2fa')]+_0x4d4ae0('0x169e')+_0x46bb95[_0x4d4ae0('0x24df')]:_0x4d4ae0('0x546'),'msg':_0x46bb95['data']?JSON[_0x4d4ae0('0xa48')](_0x46bb95[_0x4d4ae0('0x10fd')]):_0x46bb95['toString']()});}):_0x15b050[_0x523949('0x7d6')][_0x523949('0x2122')]({'fields':_0x523949('0x17fe'),'sort':_0x523949('0x25d6')})['$promise']['then'](function(_0x184817){var _0x635bb0=_0x523949;_0x37b05b[_0x635bb0('0x7ca')]=_0x184817[_0x635bb0('0x580')]||[];})[_0x523949('0xaa5')](function(){var _0x3e7efa=_0x523949;return _0x15b050['userProfileSection'][_0x3e7efa('0x2122')]({'userProfileId':_0x37b05b['currentUser']['userProfileId'],'sectionId':0x3ef})[_0x3e7efa('0x1dc2')];})[_0x523949('0xaa5')](function(_0x29f4e8){var _0xebd33e=_0x523949,_0x45b942=_0x29f4e8&&_0x29f4e8[_0xebd33e('0x580')]?_0x29f4e8[_0xebd33e('0x580')][0x0]:null;if(!_0x45b942){var _0x113d1d=[],_0x35d714=null;_0x37b05b['mohSound']&&(_0x35d714=_0x51538b()['find'](_0x37b05b[_0xebd33e('0x7ca')],{'id':Number(_0x37b05b['mohSound']['id'])}));for(var _0x2f4b6f=0x0;_0x2f4b6f<_0x37b05b[_0xebd33e('0x7ca')]['length'];_0x2f4b6f++){_0x35d714&&_0x37b05b[_0xebd33e('0x7ca')][_0x2f4b6f]['id']===_0x35d714['id']&&(_0x37b05b['sounds'][_0x2f4b6f][_0xebd33e('0x12eb')]=![],_0x113d1d[_0xebd33e('0x1599')](_0x37b05b[_0xebd33e('0x7ca')][_0x2f4b6f]));}_0x37b05b[_0xebd33e('0x7ca')]=_0x113d1d;}else{if(!_0x45b942[_0xebd33e('0x26cc')])return _0x15b050[_0xebd33e('0x249a')][_0xebd33e('0x2122')]({'sectionId':_0x45b942['id']})['$promise'][_0xebd33e('0xaa5')](function(_0x540a55){var _0x1a8649=_0xebd33e,_0x410028=_0x51538b()[_0x1a8649('0x1246')](_0x540a55[_0x1a8649('0x580')],function(_0x1e4aba){var _0x52dc1c=_0x1a8649;return _0x51538b()[_0x52dc1c('0xe9e')](_0x37b05b[_0x52dc1c('0x7ca')],{'id':_0x1e4aba[_0x52dc1c('0xbcd')]});}),_0x427bad=null;_0x37b05b[_0x1a8649('0x1543')]&&(_0x427bad=_0x51538b()['find'](_0x37b05b[_0x1a8649('0x7ca')],{'id':Number(_0x37b05b['mohSound']['id'])}));if(_0x427bad&&!_0x51538b()['some'](_0x410028,['id',_0x427bad['id']])){var _0x392790=_0x51538b()[_0x1a8649('0xe9e')](_0x37b05b[_0x1a8649('0x7ca')],{'id':_0x427bad['id']});_0x392790[_0x1a8649('0x12eb')]=![],_0x410028[_0x1a8649('0x1599')](_0x392790);}_0x37b05b[_0x1a8649('0x7ca')]=_0x410028;});}})[_0x523949('0x253d')](function(_0x546444){var _0x3cb0ef=_0x523949;_0xb9cc0f[_0x3cb0ef('0x187f')]({'title':_0x546444[_0x3cb0ef('0x2fa')]?'API:'+_0x546444[_0x3cb0ef('0x2fa')]+_0x3cb0ef('0x169e')+_0x546444[_0x3cb0ef('0x24df')]:'SYSTEM:GETsounds','msg':_0x546444[_0x3cb0ef('0x10fd')]?JSON[_0x3cb0ef('0xa48')](_0x546444[_0x3cb0ef('0x10fd')]):_0x546444['toString']()});});function _0x1f3b8c(){var _0x1c1d25=_0x523949;_0x37b05b[_0x1c1d25('0x4c6')]=[],_0x15b050[_0x1c1d25('0x1959')][_0x1c1d25('0x2f9')]({'id':_0xe14ba7[_0x1c1d25('0x25cf')]['id']},_0x37b05b[_0x1c1d25('0x1543')])[_0x1c1d25('0x1dc2')][_0x1c1d25('0xaa5')](function(_0x18c77f){var _0x207454=_0x1c1d25;_0x37b05b[_0x207454('0xeb3')][_0x207454('0x6ee')](_0x18c77f[_0x207454('0x256a')]()),_0xb9cc0f[_0x207454('0xe10')]({'title':_0x207454('0x17e0'),'msg':_0x37b05b[_0x207454('0x1543')]['name']?_0x37b05b[_0x207454('0x1543')][_0x207454('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x36e9ba(_0x18c77f);})[_0x1c1d25('0x253d')](function(_0x19c5c6){var _0x232db2=_0x1c1d25;if(_0x19c5c6[_0x232db2('0x10fd')]&&_0x19c5c6[_0x232db2('0x10fd')][_0x232db2('0x4c6')]&&_0x19c5c6[_0x232db2('0x10fd')][_0x232db2('0x4c6')]['length']){_0x37b05b['errors']=_0x19c5c6[_0x232db2('0x10fd')][_0x232db2('0x4c6')]||[{'message':_0x19c5c6[_0x232db2('0x684')](),'type':_0x232db2('0x562')}];for(var _0x486a53=0x0;_0x486a53<_0x19c5c6[_0x232db2('0x10fd')][_0x232db2('0x4c6')][_0x232db2('0x2587')];_0x486a53+=0x1){_0xb9cc0f[_0x232db2('0x187f')]({'title':_0x19c5c6[_0x232db2('0x10fd')][_0x232db2('0x4c6')][_0x486a53]['type'],'msg':_0x19c5c6[_0x232db2('0x10fd')][_0x232db2('0x4c6')][_0x486a53][_0x232db2('0x1402')]});}}else _0xb9cc0f[_0x232db2('0x187f')]({'title':_0x19c5c6['status']?_0x232db2('0x16c2')+_0x19c5c6[_0x232db2('0x2fa')]+_0x232db2('0x169e')+_0x19c5c6[_0x232db2('0x24df')]:_0x232db2('0x562'),'msg':_0x19c5c6['data']?JSON[_0x232db2('0xa48')](_0x19c5c6[_0x232db2('0x10fd')][_0x232db2('0x1402')]):_0x19c5c6['toString']()});});}function _0x4d196f(){var _0x328a4b=_0x523949;_0x37b05b[_0x328a4b('0x4c6')]=[],_0x15b050[_0x328a4b('0x1959')][_0x328a4b('0x264e')]({'id':_0x37b05b['mohSound']['id']},_0x37b05b[_0x328a4b('0x1543')])[_0x328a4b('0x1dc2')]['then'](function(_0x2eb0ad){var _0x5b4b5e=_0x328a4b,_0x198c9f=_0x51538b()['find'](_0x37b05b[_0x5b4b5e('0xeb3')],{'id':_0x2eb0ad['id']});_0x198c9f&&_0x51538b()[_0x5b4b5e('0x283c')](_0x198c9f,_0x51538b()[_0x5b4b5e('0x104e')](_0x2eb0ad[_0x5b4b5e('0x256a')](),_0x51538b()[_0x5b4b5e('0x9f2')](_0x198c9f))),_0xb9cc0f[_0x5b4b5e('0xe10')]({'title':_0x5b4b5e('0x1207'),'msg':_0x37b05b['mohSound'][_0x5b4b5e('0x25d6')]?_0x37b05b['mohSound'][_0x5b4b5e('0x25d6')]+_0x5b4b5e('0x20bf'):''}),_0x36e9ba(_0x2eb0ad);})[_0x328a4b('0x253d')](function(_0x3d0a1c){var _0x5ba465=_0x328a4b;if(_0x3d0a1c[_0x5ba465('0x10fd')]&&_0x3d0a1c['data']['errors']&&_0x3d0a1c[_0x5ba465('0x10fd')][_0x5ba465('0x4c6')][_0x5ba465('0x2587')]){_0x37b05b[_0x5ba465('0x4c6')]=_0x3d0a1c['data'][_0x5ba465('0x4c6')]||[{'message':_0x3d0a1c[_0x5ba465('0x684')](),'type':_0x5ba465('0xa00')}];for(var _0x39f2a6=0x0;_0x39f2a6<_0x3d0a1c[_0x5ba465('0x10fd')][_0x5ba465('0x4c6')][_0x5ba465('0x2587')];_0x39f2a6++){_0xb9cc0f[_0x5ba465('0x187f')]({'title':_0x3d0a1c['data'][_0x5ba465('0x4c6')][_0x39f2a6][_0x5ba465('0x6c8')],'msg':_0x3d0a1c['data'][_0x5ba465('0x4c6')][_0x39f2a6][_0x5ba465('0x1402')]});}}else _0xb9cc0f[_0x5ba465('0x187f')]({'title':_0x3d0a1c[_0x5ba465('0x2fa')]?_0x5ba465('0x16c2')+_0x3d0a1c[_0x5ba465('0x2fa')]+_0x5ba465('0x169e')+_0x3d0a1c[_0x5ba465('0x24df')]:'api.voiceMusicOnHold.update','msg':_0x3d0a1c[_0x5ba465('0x10fd')]?JSON[_0x5ba465('0xa48')](_0x3d0a1c[_0x5ba465('0x10fd')][_0x5ba465('0x1402')]):_0x3d0a1c[_0x5ba465('0x684')]()});});}function _0x2d1d53(_0x3215e5){var _0x29e5b0=_0x523949;_0x37b05b[_0x29e5b0('0x4c6')]=[];var _0xf758f6=_0x447081[_0x29e5b0('0x281e')]()['title'](_0x29e5b0('0x12a3'))[_0x29e5b0('0x15af')](_0x29e5b0('0x53c'))[_0x29e5b0('0x5b5')](_0x29e5b0('0x24f9'))['ok'](_0x29e5b0('0x1e76'))[_0x29e5b0('0x2030')](_0x29e5b0('0x9c6'))['targetEvent'](_0x3215e5);_0x447081[_0x29e5b0('0x1e6d')](_0xf758f6)[_0x29e5b0('0xaa5')](function(){var _0x24ebd4=_0x29e5b0;_0x15b050[_0x24ebd4('0x1959')][_0x24ebd4('0x926')]({'id':_0x37b05b[_0x24ebd4('0x1543')]['id']})[_0x24ebd4('0x1dc2')][_0x24ebd4('0xaa5')](function(){var _0x47a2a7=_0x24ebd4;_0x51538b()['remove'](_0x37b05b['mohSounds'],{'id':_0x37b05b['mohSound']['id']}),_0xb9cc0f['success']({'title':'MohSound\x20properly\x20deleted!','msg':(_0x37b05b[_0x47a2a7('0x1543')][_0x47a2a7('0x25d6')]||_0x47a2a7('0x1543'))+'\x20has\x20been\x20deleted!'}),_0x36e9ba(_0x37b05b['mohSound']);})[_0x24ebd4('0x253d')](function(_0x4c71e3){var _0x2ef1c9=_0x24ebd4;if(_0x4c71e3['data']&&_0x4c71e3[_0x2ef1c9('0x10fd')][_0x2ef1c9('0x4c6')]&&_0x4c71e3['data'][_0x2ef1c9('0x4c6')][_0x2ef1c9('0x2587')]){_0x37b05b['errors']=_0x4c71e3['data'][_0x2ef1c9('0x4c6')]||[{'message':_0x4c71e3[_0x2ef1c9('0x684')](),'type':_0x2ef1c9('0x1fb')}];for(var _0x34319c=0x0;_0x34319c<_0x4c71e3['data'][_0x2ef1c9('0x4c6')][_0x2ef1c9('0x2587')];_0x34319c++){_0xb9cc0f['error']({'title':_0x4c71e3[_0x2ef1c9('0x10fd')][_0x2ef1c9('0x4c6')][_0x34319c]['type'],'msg':_0x4c71e3['data'][_0x2ef1c9('0x4c6')][_0x34319c][_0x2ef1c9('0x1402')]});}}else _0xb9cc0f[_0x2ef1c9('0x187f')]({'title':_0x4c71e3['status']?_0x2ef1c9('0x16c2')+_0x4c71e3[_0x2ef1c9('0x2fa')]+_0x2ef1c9('0x169e')+_0x4c71e3[_0x2ef1c9('0x24df')]:_0x2ef1c9('0x1fb'),'msg':_0x4c71e3[_0x2ef1c9('0x10fd')]?JSON[_0x2ef1c9('0xa48')](_0x4c71e3['data'][_0x2ef1c9('0x1402')]):_0x4c71e3[_0x2ef1c9('0x1402')]||_0x4c71e3[_0x2ef1c9('0x684')]()});});},function(){});}function _0x47b82a(_0x7f998b){return _0x7f998b===null?undefined:new Date(_0x7f998b);}function _0x36e9ba(_0x13ffc3){var _0x477475=_0x523949;_0x447081[_0x477475('0x1120')](_0x13ffc3);}}const _0x325943=_0x31ec64;_0x272513[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x2665'),_0x1a8446('0x1a50')];function _0x272513(_0x5cddb6,_0x400d0c,_0x17dd9b,_0x2b3fc2,_0x2702c9,_0x4f87d7,_0x5805ef,_0x258596,_0x5c48cc,_0x481522,_0x11a063,_0x2a3e79){var _0x4d379e=_0x1a8446,_0xa6b6ae=this;_0xa6b6ae[_0x4d379e('0x7fc')]=_0x481522[_0x4d379e('0xacc')](),_0xa6b6ae[_0x4d379e('0x1202')]=_0x4f87d7,_0xa6b6ae['setting']=_0x5805ef,_0xa6b6ae[_0x4d379e('0x1d53')]=_0xa6b6ae[_0x4d379e('0x143f')][_0x4d379e('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa6b6ae[_0x4d379e('0x18cc')]=_0x400d0c[_0x4d379e('0x1cc2')]()+_0x4d379e('0x356')+_0x400d0c[_0x4d379e('0x160c')](),_0xa6b6ae[_0x4d379e('0x2665')]=_0x11a063||_0x5cddb6[_0x4d379e('0x25cf')]['musiconhold']||{},_0xa6b6ae[_0x4d379e('0x1a50')]=_0x2a3e79&&_0x2a3e79[_0x4d379e('0xd15')]==0x1?_0x2a3e79[_0x4d379e('0x580')][0x0]:null,_0xa6b6ae[_0x4d379e('0xada')]=_0x481522[_0x4d379e('0xffd')](_0xa6b6ae[_0x4d379e('0x1a50')]?_0xa6b6ae[_0x4d379e('0x1a50')][_0x4d379e('0xada')]:null),_0xa6b6ae[_0x4d379e('0x9f0')]={},_0xa6b6ae['selectedTab']=_0x5cddb6[_0x4d379e('0x25cf')][_0x4d379e('0x25c2')]||0x0,_0xa6b6ae[_0x4d379e('0xc10')]=_0x5c48cc['info'],_0xa6b6ae[_0x4d379e('0x98')]=_0x136299,_0xa6b6ae[_0x4d379e('0x1ae1')]=_0x18381b;function _0x136299(){var _0x1aadb4=_0x4d379e;_0x5cddb6['go'](_0x1aadb4('0x53e'),{},{'reload':_0x1aadb4('0x53e')});}function _0x18381b(){var _0x303695=_0x4d379e;_0x258596[_0x303695('0x1959')][_0x303695('0x264e')]({'id':_0xa6b6ae[_0x303695('0x2665')]['id']},_0xa6b6ae['musiconhold'])['$promise'][_0x303695('0xaa5')](function(){var _0x599756=_0x303695;_0x5c48cc[_0x599756('0xe10')]({'title':_0x599756('0x1e81'),'msg':_0xa6b6ae[_0x599756('0x2665')][_0x599756('0x25d6')]?_0xa6b6ae[_0x599756('0x2665')][_0x599756('0x25d6')]+_0x599756('0x1734'):''});})[_0x303695('0x253d')](function(_0x29ae6c){var _0x482c50=_0x303695;_0x5c48cc[_0x482c50('0x187f')]({'title':_0x29ae6c[_0x482c50('0x2fa')]?_0x482c50('0x16c2')+_0x29ae6c[_0x482c50('0x2fa')]+_0x482c50('0x169e')+_0x29ae6c[_0x482c50('0x24df')]:_0x482c50('0x662'),'msg':_0x29ae6c[_0x482c50('0x10fd')]?JSON[_0x482c50('0xa48')](_0x29ae6c[_0x482c50('0x10fd')]):_0x29ae6c['toString']()});});}}const _0x569477=_0x272513,_0x2af2db=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html/dialog-[chunkhash].html';_0x3170f0['$inject']=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x11b5'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x3170f0(_0x44b7b9,_0x309209,_0x2c9d6e,_0x4ca565,_0x59a5c8,_0x400250,_0x338d38,_0x4b1049,_0x4d4dc3,_0xd35f7a,_0x48d1dd,_0x44a00a,_0x50440e,_0x36c1b0,_0x507e71,_0x2d86c6,_0x4c88cd){var _0x429bf5=_0x1a8446,_0x3241b2=this;_0x3241b2[_0x429bf5('0x1202')]=_0x2d86c6,_0x3241b2[_0x429bf5('0x143f')]=_0x4c88cd,_0x3241b2[_0x429bf5('0x7fc')]=_0x507e71[_0x429bf5('0xacc')](),_0x3241b2['musiconholds']=_0x4d4dc3||{'count':0x0,'rows':[]},_0x3241b2[_0x429bf5('0x1e97')]=_0xd35f7a,_0x3241b2['userProfileSection']=_0x48d1dd&&_0x48d1dd[_0x429bf5('0xd15')]==0x1?_0x48d1dd[_0x429bf5('0x580')][0x0]:null,_0x3241b2[_0x429bf5('0xada')]=_0x507e71['parseCrudPermissions'](_0x3241b2[_0x429bf5('0x1a50')]?_0x3241b2[_0x429bf5('0x1a50')]['crudPermissions']:null),_0x3241b2[_0x429bf5('0x12b6')]='musiconholds',_0x3241b2[_0x429bf5('0x164')]='',_0x3241b2[_0x429bf5('0x8cc')]=null,_0x3241b2['selectedMusicOnHolds']=[],_0x3241b2[_0x429bf5('0x582')]={'fields':_0x429bf5('0x2650'),'defaultEntry':_0x429bf5('0x1355'),'limit':0xa,'page':0x1},_0x3241b2['arraymode']=_0x51538b()['keyBy']([{'option':'Files','value':'\x27files\x27'},{'option':_0x429bf5('0x27aa'),'value':'\x27custom\x27'}],function(_0x2afde3){var _0x5c2848=_0x429bf5;return _0x51538b()[_0x5c2848('0x170d')](_0x2afde3['value'],new RegExp('\x27','g'),'');}),_0x3241b2[_0x429bf5('0xfc6')]=_0x51538b()[_0x429bf5('0x184a')]([{'option':_0x429bf5('0xd4b'),'value':_0x429bf5('0x20f5')},{'option':_0x429bf5('0x177c'),'value':_0x429bf5('0x1e3e')}],function(_0x2e85ec){var _0x2e5ba6=_0x429bf5;return _0x51538b()['replace'](_0x2e85ec[_0x2e5ba6('0x12f4')],new RegExp('\x27','g'),'');}),_0x3241b2[_0x429bf5('0x1927')]=_0x51e05f,_0x3241b2[_0x429bf5('0x271')]=_0x577938,_0x3241b2[_0x429bf5('0xe10')]=_0x114a0a,_0x3241b2[_0x429bf5('0x1f9e')]=_0x16ae03,_0x3241b2[_0x429bf5('0x62')]=_0x37e293,_0x3241b2[_0x429bf5('0x14b5')]=_0x2b327e,_0x3241b2['exportSelectedMusicOnHolds']=_0x47285a,_0x3241b2['deleteSelectedMusicOnHolds']=_0x37abdd,_0x3241b2['deselectMusicOnHolds']=_0x4149ab,_0x3241b2['selectAllMusicOnHolds']=_0xf6da4e;function _0x51e05f(_0x223e7a){var _0x40072f=_0x429bf5;_0x2c9d6e['go'](_0x40072f('0x25a4'),{'id':_0x223e7a['id'],'musiconhold':_0x223e7a,'crudPermissions':_0x3241b2['crudPermissions']});}function _0x577938(_0x1e930b,_0x5e33fa){var _0x4d9ff9=_0x429bf5,_0x463fcb=_0x59a5c8[_0x4d9ff9('0x281e')]()[_0x4d9ff9('0x110a')](_0x4d9ff9('0x88d')+_0x51538b()[_0x4d9ff9('0x196a')]('musiconhold')+'?')[_0x4d9ff9('0x102e')](_0x4d9ff9('0x389')+(_0x1e930b[_0x4d9ff9('0x25d6')]||'musiconhold')+_0x4d9ff9('0x697')+_0x4d9ff9('0x210d'))['ariaLabel'](_0x4d9ff9('0x2739'))[_0x4d9ff9('0x116d')](_0x5e33fa)['ok']('OK')[_0x4d9ff9('0x2030')](_0x4d9ff9('0x2410'));_0x59a5c8[_0x4d9ff9('0x1e6d')](_0x463fcb)[_0x4d9ff9('0xaa5')](function(){_0x2b327e(_0x1e930b);},function(){var _0x108d18=_0x4d9ff9;console[_0x108d18('0x18d5')](_0x108d18('0x2410'));});}var _0x578cf8=!![],_0x23b2fd=0x1;_0x44b7b9['$watch']('vm.query.filter',function(_0x513f6a,_0x57c61b){var _0x23a0a4=_0x429bf5;_0x578cf8?_0x338d38(function(){_0x578cf8=![];}):(!_0x57c61b&&(_0x23b2fd=_0x3241b2[_0x23a0a4('0x582')][_0x23a0a4('0x41')]),_0x513f6a!==_0x57c61b&&(_0x3241b2[_0x23a0a4('0x582')]['page']=0x1),!_0x513f6a&&(_0x3241b2[_0x23a0a4('0x582')][_0x23a0a4('0x41')]=_0x23b2fd),_0x3241b2[_0x23a0a4('0x1f9e')]());});function _0x114a0a(_0x5105ae){var _0x15f04d=_0x429bf5;_0x3241b2[_0x15f04d('0x11b5')]=_0x5105ae||{'count':0x0,'rows':[]};}function _0x16ae03(){var _0x476ca5=_0x429bf5;_0x3241b2[_0x476ca5('0x582')]['offset']=(_0x3241b2['query'][_0x476ca5('0x41')]-0x1)*_0x3241b2[_0x476ca5('0x582')][_0x476ca5('0xf4d')],_0x507e71[_0x476ca5('0x26e8')](_0x476ca5('0x178b'))?_0x3241b2['promise']=_0x44a00a[_0x476ca5('0x1959')][_0x476ca5('0x2122')](_0x3241b2[_0x476ca5('0x582')],_0x114a0a)[_0x476ca5('0x1dc2')]:(_0x3241b2[_0x476ca5('0x582')]['id']=_0x3241b2['userProfile']['id'],_0x3241b2[_0x476ca5('0x582')][_0x476ca5('0x224d')]=_0x476ca5('0x1e45'),_0x3241b2[_0x476ca5('0x159a')]=_0x44a00a[_0x476ca5('0x1e97')]['getResources'](_0x3241b2[_0x476ca5('0x582')],_0x114a0a)[_0x476ca5('0x1dc2')]);}function _0x37e293(_0x152640,_0x9f132){var _0x2aa22e=_0x429bf5;_0x59a5c8[_0x2aa22e('0x1e6d')]({'controller':_0x2aa22e('0x2002'),'controllerAs':'vm','templateUrl':_0x2af2db,'parent':angular['element'](_0x400250[_0x2aa22e('0x54c')]),'targetEvent':_0x152640,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x9f132,'musiconholds':_0x3241b2[_0x2aa22e('0x11b5')][_0x2aa22e('0x580')],'license':_0x3241b2[_0x2aa22e('0x1202')],'setting':_0x3241b2['setting'],'crudPermissions':_0x3241b2[_0x2aa22e('0xada')]}});}function _0x2b327e(_0x17d697){var _0x4049b5=_0x429bf5;_0x44a00a[_0x4049b5('0x1959')][_0x4049b5('0x926')]({'id':_0x17d697['id']})['$promise'][_0x4049b5('0xaa5')](function(){var _0x27059d=_0x4049b5;_0x51538b()[_0x27059d('0xf6d')](_0x3241b2[_0x27059d('0x11b5')][_0x27059d('0x580')],{'id':_0x17d697['id']}),_0x3241b2[_0x27059d('0x11b5')][_0x27059d('0xd15')]-=0x1,!_0x3241b2['musiconholds'][_0x27059d('0x580')][_0x27059d('0x2587')]&&_0x3241b2['getMusicOnHolds'](),_0x36c1b0[_0x27059d('0xe10')]({'title':_0x51538b()[_0x27059d('0x196a')](_0x27059d('0x9d3'))+_0x27059d('0x8bb'),'msg':_0x17d697[_0x27059d('0x25d6')]?_0x17d697['name']+_0x27059d('0xcd9'):''});})['catch'](function(_0x1f80cf){var _0x30d04f=_0x4049b5;if(_0x1f80cf[_0x30d04f('0x10fd')]&&_0x1f80cf['data']['errors']&&_0x1f80cf[_0x30d04f('0x10fd')][_0x30d04f('0x4c6')][_0x30d04f('0x2587')]){_0x3241b2[_0x30d04f('0x4c6')]=_0x1f80cf[_0x30d04f('0x10fd')]['errors']||[{'message':_0x1f80cf['toString'](),'type':_0x30d04f('0x1a2e')}];for(var _0x3a0087=0x0;_0x3a0087<_0x1f80cf['data']['errors']['length'];_0x3a0087++){_0x36c1b0[_0x30d04f('0x187f')]({'title':_0x1f80cf[_0x30d04f('0x10fd')][_0x30d04f('0x4c6')][_0x3a0087][_0x30d04f('0x6c8')],'msg':_0x1f80cf[_0x30d04f('0x10fd')][_0x30d04f('0x4c6')][_0x3a0087][_0x30d04f('0x1402')]});}}else _0x36c1b0[_0x30d04f('0x187f')]({'title':_0x1f80cf[_0x30d04f('0x2fa')]?_0x30d04f('0x16c2')+_0x1f80cf[_0x30d04f('0x2fa')]+_0x30d04f('0x169e')+_0x1f80cf[_0x30d04f('0x24df')]:_0x30d04f('0x1a2e'),'msg':_0x1f80cf['data']?JSON[_0x30d04f('0xa48')](_0x1f80cf['data']['message']):_0x1f80cf['message']||_0x1f80cf[_0x30d04f('0x684')]()});});}function _0x47285a(){var _0x14d92f=_0x429bf5,_0x450f2d=angular[_0x14d92f('0x20a')](_0x3241b2[_0x14d92f('0x1a45')]);return _0x3241b2[_0x14d92f('0x1a45')]=[],_0x450f2d;}function _0x37abdd(_0x18bce7){var _0x5a30a3=_0x429bf5,_0x452f44=_0x59a5c8[_0x5a30a3('0x281e')]()[_0x5a30a3('0x110a')](_0x5a30a3('0x4c8'))[_0x5a30a3('0x102e')](''+_0x3241b2[_0x5a30a3('0x1a45')][_0x5a30a3('0x2587')]+_0x5a30a3('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5a30a3('0x1858'))[_0x5a30a3('0x116d')](_0x18bce7)['ok']('OK')['cancel']('CANCEL');_0x59a5c8['show'](_0x452f44)['then'](function(){var _0x86bc02=_0x5a30a3;_0x3241b2[_0x86bc02('0x1a45')][_0x86bc02('0x15b5')](function(_0x900d8e){_0x2b327e(_0x900d8e);}),_0x3241b2[_0x86bc02('0x1a45')]=[];});}function _0x4149ab(){var _0x19e170=_0x429bf5;_0x3241b2[_0x19e170('0x1a45')]=[];}function _0xf6da4e(){var _0x488770=_0x429bf5;_0x3241b2['selectedMusicOnHolds']=_0x3241b2[_0x488770('0x11b5')][_0x488770('0x580')];}}const _0x2335b2=_0x3170f0;_0x51722c[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x4fa'),_0x1a8446('0x14a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x51722c(_0x41c4e8,_0x1a1102,_0x1f1dde,_0x268ea3,_0x10cf6c,_0x2573fb,_0x2c7f9,_0x165a15,_0x96c4af,_0x3e107f,_0x3830b4,_0x3dcb45,_0x4d90b4,_0x531f08){var _0x2f7335=_0x1a8446,_0x57986f=this;_0x57986f[_0x2f7335('0x7fc')]=_0x3830b4[_0x2f7335('0xacc')](),_0x57986f[_0x2f7335('0x4c6')]=[],_0x57986f['setting']=_0x4d90b4,_0x57986f[_0x2f7335('0x1202')]=_0x3dcb45,_0x57986f['crudPermissions']=_0x531f08,_0x57986f['hasModulePermissions']={},_0x57986f[_0x2f7335('0x1d53')]=_0x57986f['setting']&&_0x57986f[_0x2f7335('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x57986f[_0x2f7335('0x110a')]=_0x2f7335('0x2b3'),_0x57986f[_0x2f7335('0x14a4')]=angular[_0x2f7335('0x20a')](_0x96c4af),_0x57986f[_0x2f7335('0x4fa')]=_0x165a15,_0x57986f[_0x2f7335('0x16d8')]=![],_0x57986f['outboundrouteApps']={'count':0x0,'rows':[]},_0x57986f['apps']=_0x51538b()['reject'](_0x51538b()[_0x2f7335('0x181f')]([{'app':_0x2f7335('0x260f'),'appType':_0x2f7335('0x1c21'),'type':'Outbound','types':[_0x2f7335('0x1b43'),_0x2f7335('0x113b'),_0x2f7335('0x2334')],'fields':[],'isApp':![]},{'app':_0x2f7335('0x9f8'),'appType':_0x2f7335('0x8da'),'context':_0x2f7335('0xde3'),'type':_0x2f7335('0x23c9'),'icon':_0x2f7335('0x1892'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':'trunks','route':_0x2f7335('0x1651'),'filters':{'fields':'name','sort':_0x2f7335('0x25d6')}},{'name':'tags','route':_0x2f7335('0x38f'),'filters':{'fields':_0x2f7335('0x25d6'),'sort':'name','nolimit':!![]}}],'fields':[{'title':_0x2f7335('0x4a6'),'name':'trunk','type':'apiselect','values':_0x2f7335('0x1bc2'),'value':'trunk.name','option':_0x2f7335('0x7ce'),'required':!![],'param':0x0},{'title':_0x2f7335('0xb49'),'name':'callerID','type':_0x2f7335('0xb37'),'ngPattern':_0x2f7335('0x228a'),'help':!![]},{'title':'Prefix','name':_0x2f7335('0x1b8f'),'type':_0x2f7335('0xb37')},{'title':_0x2f7335('0x67f'),'name':_0x2f7335('0x38f'),'type':_0x2f7335('0xd4d'),'values':_0x2f7335('0x523'),'value':'tag.name','option':'tag.name','defaultValues':[{'value':_0x2f7335('0x1d3'),'option':_0x2f7335('0xfeb')}]},{'title':_0x2f7335('0xc45'),'name':_0x2f7335('0x23c0'),'type':_0x2f7335('0x219a'),'min':0x0,'param':0x1},{'title':_0x2f7335('0x2f1'),'name':_0x2f7335('0x1b36'),'type':_0x2f7335('0xb37'),'param':0x2},{'title':_0x2f7335('0x489'),'name':_0x2f7335('0x2242'),'type':'text','param':0x3}]},{'app':null,'type':_0x2f7335('0x23c9'),'appType':_0x2f7335('0x113b'),'icon':_0x2f7335('0x1892'),'interval':_0x2f7335('0x1ac6'),'isApp':!![],'fields':[{'title':_0x2f7335('0x22ef'),'name':_0x2f7335('0x9eb'),'type':'text','required':!![],'param':0x0},{'title':'Arguments','name':_0x2f7335('0x124b'),'type':_0x2f7335('0xb37'),'param':0x1}]}],[_0x2f7335('0x9eb')]),{'isApp':![]});!_0x57986f[_0x2f7335('0x14a4')]&&(_0x57986f[_0x2f7335('0x14a4')]={'appdata':_0x2f7335('0x819'),'type':_0x2f7335('0x19d1'),'context':_0x2f7335('0xde3'),'recordingFormat':_0x2f7335('0x117')},_0x57986f[_0x2f7335('0x110a')]=_0x2f7335('0xb2d'),_0x57986f[_0x2f7335('0x16d8')]=!![]);_0x57986f[_0x2f7335('0x12b0')]=_0x553611,_0x57986f[_0x2f7335('0x1d4')]=_0xdc4a91,_0x57986f['deleteOutboundRoute']=_0x237964,_0x57986f['getDateFromString']=_0x57ec79,_0x57986f[_0x2f7335('0x1f31')]=_0x14b944,_0x57986f[_0x2f7335('0x2023')]=_0x1066b4,_0x3830b4[_0x2f7335('0x26e8')](_0x2f7335('0x178b'))?_0x3e107f[_0x2f7335('0x68c')][_0x2f7335('0x2122')]({'fields':_0x2f7335('0x17fe'),'sort':_0x2f7335('0x25d6'),'nolimit':'true'})['$promise'][_0x2f7335('0xaa5')](function(_0x42e656){var _0x5675c4=_0x2f7335;_0x57986f[_0x5675c4('0xdc5')]=_0x42e656[_0x5675c4('0x580')]||[];})[_0x2f7335('0x253d')](function(_0x269ceb){var _0x733dfe=_0x2f7335;_0x2c7f9[_0x733dfe('0x187f')]({'title':_0x269ceb[_0x733dfe('0x2fa')]?'API:'+_0x269ceb[_0x733dfe('0x2fa')]+_0x733dfe('0x169e')+_0x269ceb[_0x733dfe('0x24df')]:_0x733dfe('0x1393'),'msg':_0x269ceb[_0x733dfe('0x10fd')]?JSON[_0x733dfe('0xa48')](_0x269ceb['data']):_0x269ceb['toString']()});}):_0x3e107f[_0x2f7335('0x68c')][_0x2f7335('0x2122')]({'fields':_0x2f7335('0x17fe'),'sort':'name','nolimit':_0x2f7335('0x1c5c')})[_0x2f7335('0x1dc2')][_0x2f7335('0xaa5')](function(_0x349b65){_0x57986f['contexts']=_0x349b65['rows']||[];})[_0x2f7335('0xaa5')](function(){var _0x22c237=_0x2f7335;return _0x3e107f['userProfileSection'][_0x22c237('0x2122')]({'userProfileId':_0x57986f[_0x22c237('0x7fc')]['userProfileId'],'sectionId':0x195})[_0x22c237('0x1dc2')];})[_0x2f7335('0xaa5')](function(_0x10d770){var _0xec7e97=_0x2f7335,_0x15e633=_0x10d770&&_0x10d770[_0xec7e97('0x580')]?_0x10d770[_0xec7e97('0x580')][0x0]:null;if(!_0x15e633)return _0x3e107f[_0xec7e97('0x68c')][_0xec7e97('0x2122')]({'fields':'id,name','sort':_0xec7e97('0x25d6'),'nolimit':_0xec7e97('0x1c5c'),'defaultEntry':0x1})['$promise'][_0xec7e97('0xaa5')](function(_0x59938a){var _0x2c0cfe=_0xec7e97;_0x57986f['contexts']=_0x59938a[_0x2c0cfe('0x580')]||[];});else{if(!_0x15e633[_0xec7e97('0x26cc')])return _0x3e107f[_0xec7e97('0x249a')]['get']({'sectionId':_0x15e633['id']})[_0xec7e97('0x1dc2')][_0xec7e97('0xaa5')](function(_0x2a5379){var _0x2aedc3=_0xec7e97,_0x2e8658=_0x51538b()[_0x2aedc3('0x1246')](_0x2a5379[_0x2aedc3('0x580')],function(_0x263d86){var _0x9eaa1c=_0x2aedc3;return _0x51538b()[_0x9eaa1c('0xe9e')](_0x57986f[_0x9eaa1c('0xdc5')],{'id':_0x263d86[_0x9eaa1c('0xbcd')]});}),_0x4239bf=null;_0x57986f['outboundroute']&&(_0x4239bf=_0x51538b()['find'](_0x57986f[_0x2aedc3('0xdc5')],{'name':_0x57986f['outboundroute'][_0x2aedc3('0x19cd')]}));if(_0x4239bf&&!_0x51538b()[_0x2aedc3('0x2c2')](_0x2e8658,['id',_0x4239bf['id']])){var _0x2893f3=_0x51538b()[_0x2aedc3('0xe9e')](_0x57986f[_0x2aedc3('0xdc5')],{'id':_0x4239bf['id']});_0x2893f3[_0x2aedc3('0x12eb')]=![],_0x2e8658[_0x2aedc3('0x1599')](_0x2893f3);}_0x57986f[_0x2aedc3('0xdc5')]=_0x2e8658;});}})['catch'](function(_0x455317){var _0x3cf0af=_0x2f7335;_0x2c7f9[_0x3cf0af('0x187f')]({'title':_0x455317[_0x3cf0af('0x2fa')]?_0x3cf0af('0x16c2')+_0x455317['status']+'\x20-\x20'+_0x455317[_0x3cf0af('0x24df')]:_0x3cf0af('0x2f7'),'msg':_0x455317[_0x3cf0af('0x10fd')]?JSON[_0x3cf0af('0xa48')](_0x455317[_0x3cf0af('0x10fd')]):_0x455317[_0x3cf0af('0x684')]()});});function _0x553611(){var _0x3ff918=_0x2f7335;_0x57986f[_0x3ff918('0x4c6')]=[],_0x3e107f[_0x3ff918('0x1361')][_0x3ff918('0x242b')](_0x57986f[_0x3ff918('0x14a4')])['$promise'][_0x3ff918('0xaa5')](function(_0x154c06){var _0x13674e=_0x3ff918;_0x57986f['outboundroutes'][_0x13674e('0x6ee')](_0x154c06['toJSON']()),_0x2c7f9[_0x13674e('0xe10')]({'title':_0x13674e('0x13f'),'msg':_0x57986f[_0x13674e('0x14a4')]['name']?_0x57986f[_0x13674e('0x14a4')][_0x13674e('0x25d6')]+_0x13674e('0xdca'):''}),_0x1066b4(_0x154c06);})[_0x3ff918('0x253d')](function(_0x14b480){var _0x3e3ed9=_0x3ff918;if(_0x14b480[_0x3e3ed9('0x10fd')]&&_0x14b480['data'][_0x3e3ed9('0x4c6')]&&_0x14b480[_0x3e3ed9('0x10fd')][_0x3e3ed9('0x4c6')][_0x3e3ed9('0x2587')]){_0x57986f[_0x3e3ed9('0x4c6')]=_0x14b480[_0x3e3ed9('0x10fd')][_0x3e3ed9('0x4c6')]||[{'message':_0x14b480[_0x3e3ed9('0x684')](),'type':'api.voiceExtension.save'}];for(var _0xe58bb8=0x0;_0xe58bb8<_0x14b480[_0x3e3ed9('0x10fd')][_0x3e3ed9('0x4c6')]['length'];_0xe58bb8+=0x1){_0x2c7f9['error']({'title':_0x14b480[_0x3e3ed9('0x10fd')][_0x3e3ed9('0x4c6')][_0xe58bb8]['type'],'msg':_0x14b480[_0x3e3ed9('0x10fd')]['errors'][_0xe58bb8][_0x3e3ed9('0x1402')]});}}else _0x2c7f9[_0x3e3ed9('0x187f')]({'title':_0x14b480[_0x3e3ed9('0x2fa')]?_0x3e3ed9('0x16c2')+_0x14b480[_0x3e3ed9('0x2fa')]+'\x20-\x20'+_0x14b480['statusText']:_0x3e3ed9('0x14e9'),'msg':_0x14b480[_0x3e3ed9('0x10fd')]?JSON[_0x3e3ed9('0xa48')](_0x14b480[_0x3e3ed9('0x10fd')][_0x3e3ed9('0x1402')]):_0x14b480[_0x3e3ed9('0x684')]()});});}function _0xdc4a91(){var _0x106f18=_0x2f7335;_0x57986f[_0x106f18('0x4c6')]=[],_0x3e107f[_0x106f18('0x1361')]['update']({'id':_0x57986f[_0x106f18('0x14a4')]['id']},_0x57986f['outboundroute'])[_0x106f18('0x1dc2')][_0x106f18('0xaa5')](function(_0x178eeb){var _0x29223b=_0x106f18,_0x1234c4=_0x51538b()[_0x29223b('0xe9e')](_0x57986f[_0x29223b('0x4fa')],{'id':_0x178eeb['id']});_0x1234c4&&(_0x51538b()[_0x29223b('0x283c')](_0x1234c4,_0x51538b()[_0x29223b('0x104e')](_0x178eeb[_0x29223b('0x256a')](),_0x51538b()[_0x29223b('0x9f2')](_0x1234c4))),_0x3e107f[_0x29223b('0x1361')][_0x29223b('0x2122')]({'sort':_0x29223b('0x13f2'),'VoiceExtensionId':_0x1234c4['id'],'isApp':!![],'nolimit':!![]})[_0x29223b('0x1dc2')][_0x29223b('0xaa5')](function(_0x1b147b){var _0x25dcbc=_0x29223b;_0x57986f[_0x25dcbc('0x1a09')]=_0x1b147b,_0x14b944();})),_0x2c7f9[_0x29223b('0xe10')]({'title':_0x29223b('0x191a'),'msg':_0x57986f['outboundroute']['name']?_0x57986f[_0x29223b('0x14a4')][_0x29223b('0x25d6')]+_0x29223b('0x20bf'):''}),_0x1066b4(_0x178eeb);})[_0x106f18('0x253d')](function(_0x3eca08){var _0x11b2dd=_0x106f18;if(_0x3eca08[_0x11b2dd('0x10fd')]&&_0x3eca08[_0x11b2dd('0x10fd')][_0x11b2dd('0x4c6')]&&_0x3eca08['data'][_0x11b2dd('0x4c6')][_0x11b2dd('0x2587')]){_0x57986f['errors']=_0x3eca08[_0x11b2dd('0x10fd')]['errors']||[{'message':_0x3eca08['toString'](),'type':_0x11b2dd('0xe3a')}];for(var _0x4f3216=0x0;_0x4f3216<_0x3eca08[_0x11b2dd('0x10fd')]['errors']['length'];_0x4f3216++){_0x2c7f9[_0x11b2dd('0x187f')]({'title':_0x3eca08[_0x11b2dd('0x10fd')][_0x11b2dd('0x4c6')][_0x4f3216][_0x11b2dd('0x6c8')],'msg':_0x3eca08[_0x11b2dd('0x10fd')][_0x11b2dd('0x4c6')][_0x4f3216][_0x11b2dd('0x1402')]});}}else _0x2c7f9['error']({'title':_0x3eca08[_0x11b2dd('0x2fa')]?_0x11b2dd('0x16c2')+_0x3eca08[_0x11b2dd('0x2fa')]+_0x11b2dd('0x169e')+_0x3eca08[_0x11b2dd('0x24df')]:_0x11b2dd('0xe3a'),'msg':_0x3eca08[_0x11b2dd('0x10fd')]?JSON[_0x11b2dd('0xa48')](_0x3eca08['data'][_0x11b2dd('0x1402')]):_0x3eca08[_0x11b2dd('0x684')]()});});}function _0x237964(_0xebf5c5){var _0x4f94b6=_0x2f7335;_0x3e107f[_0x4f94b6('0x2123')][_0x4f94b6('0x2122')]({'VoiceExtensionId':_0x96c4af['id']})['$promise'][_0x4f94b6('0xaa5')](function(_0xf3138f){var _0x4bd1ea=_0x4f94b6;if(_0xf3138f&&_0xf3138f[_0x4bd1ea('0x580')]&&_0xf3138f[_0x4bd1ea('0x580')][_0x4bd1ea('0x2587')]>0x0)return _0x2c7f9[_0x4bd1ea('0x187f')]({'title':_0x4bd1ea('0x1a60'),'msg':_0x4bd1ea('0x23b6')});else{_0x57986f[_0x4bd1ea('0x4c6')]=[];var _0x2bad9b=_0x268ea3[_0x4bd1ea('0x281e')]()[_0x4bd1ea('0x110a')](_0x4bd1ea('0x12a3'))[_0x4bd1ea('0x15af')](_0x4bd1ea('0x138'))['ariaLabel']('Delete\x20OutboundRoute')['ok']('Delete')['cancel'](_0x4bd1ea('0x9c6'))[_0x4bd1ea('0x116d')](_0xebf5c5);_0x268ea3[_0x4bd1ea('0x1e6d')](_0x2bad9b)[_0x4bd1ea('0xaa5')](function(){var _0x580539=_0x4bd1ea;_0x3e107f['voiceExtension'][_0x580539('0x926')]({'id':_0x57986f[_0x580539('0x14a4')]['id']})[_0x580539('0x1dc2')][_0x580539('0xaa5')](function(){var _0x27fd7b=_0x580539;_0x51538b()['remove'](_0x57986f[_0x27fd7b('0x4fa')],{'id':_0x57986f[_0x27fd7b('0x14a4')]['id']}),_0x2c7f9[_0x27fd7b('0xe10')]({'title':_0x27fd7b('0x1ef5'),'msg':(_0x57986f[_0x27fd7b('0x14a4')][_0x27fd7b('0x25d6')]||'outboundroute')+_0x27fd7b('0xcd9')}),_0x1066b4(_0x57986f[_0x27fd7b('0x14a4')]);})['catch'](function(_0xd93c){var _0x1f94a1=_0x580539;if(_0xd93c[_0x1f94a1('0x10fd')]&&_0xd93c['data'][_0x1f94a1('0x4c6')]&&_0xd93c[_0x1f94a1('0x10fd')]['errors']['length']){_0x57986f[_0x1f94a1('0x4c6')]=_0xd93c[_0x1f94a1('0x10fd')][_0x1f94a1('0x4c6')]||[{'message':_0xd93c[_0x1f94a1('0x684')](),'type':_0x1f94a1('0x12b7')}];for(var _0x93306a=0x0;_0x93306a<_0xd93c[_0x1f94a1('0x10fd')]['errors'][_0x1f94a1('0x2587')];_0x93306a++){_0x2c7f9[_0x1f94a1('0x187f')]({'title':_0xd93c[_0x1f94a1('0x10fd')]['errors'][_0x93306a]['type'],'msg':_0xd93c[_0x1f94a1('0x10fd')][_0x1f94a1('0x4c6')][_0x93306a][_0x1f94a1('0x1402')]});}}else _0x2c7f9[_0x1f94a1('0x187f')]({'title':_0xd93c['status']?_0x1f94a1('0x16c2')+_0xd93c[_0x1f94a1('0x2fa')]+'\x20-\x20'+_0xd93c['statusText']:_0x1f94a1('0x12b7'),'msg':_0xd93c[_0x1f94a1('0x10fd')]?JSON[_0x1f94a1('0xa48')](_0xd93c['data'][_0x1f94a1('0x1402')]):_0xd93c['message']||_0xd93c[_0x1f94a1('0x684')]()});});},function(){});}});}function _0x14b944(){var _0x47d96b=_0x2f7335,_0x1e001f=0x2,_0xb2d18=[];_0xb2d18[_0x47d96b('0x1599')]({'type':_0x47d96b('0x19d1'),'app':_0x47d96b('0x1666'),'appdata':_0x47d96b('0xbbe'),'context':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x19cd')],'exten':_0x57986f['outboundroute']['exten'],'priority':_0x1e001f++,'VoiceExtensionId':_0x57986f['outboundroute']['id']}),_0xb2d18['push']({'type':_0x47d96b('0x19d1'),'app':_0x47d96b('0x1666'),'appdata':'CDR(destination)='+(_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x888')]?_0x47d96b('0x117e')+_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x888')]+'}':_0x47d96b('0x1f87')),'context':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x19cd')],'exten':_0x57986f['outboundroute'][_0x47d96b('0x1990')],'priority':_0x1e001f++,'VoiceExtensionId':_0x57986f[_0x47d96b('0x14a4')]['id']}),_0xb2d18[_0x47d96b('0x1599')]({'type':'outbound','app':_0x47d96b('0x1666'),'appdata':_0x47d96b('0x122a'),'context':_0x57986f[_0x47d96b('0x14a4')]['context'],'exten':_0x57986f['outboundroute'][_0x47d96b('0x1990')],'priority':_0x1e001f++,'VoiceExtensionId':_0x57986f[_0x47d96b('0x14a4')]['id']}),_0xb2d18[_0x47d96b('0x1599')]({'type':_0x47d96b('0x19d1'),'app':'Set','appdata':_0x47d96b('0x134b'),'context':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x19cd')],'exten':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')],'priority':_0x1e001f++,'VoiceExtensionId':_0x57986f[_0x47d96b('0x14a4')]['id']}),_0xb2d18[_0x47d96b('0x1599')]({'type':_0x47d96b('0x19d1'),'app':_0x47d96b('0x1666'),'appdata':_0x47d96b('0x123a'),'context':_0x57986f[_0x47d96b('0x14a4')]['context'],'exten':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')],'priority':_0x1e001f++,'VoiceExtensionId':_0x57986f[_0x47d96b('0x14a4')]['id']}),_0xb2d18['push']({'type':'outbound','app':_0x47d96b('0x1666'),'appdata':_0x47d96b('0x21a1')+_0x57986f[_0x47d96b('0x14a4')]['id'],'context':_0x57986f[_0x47d96b('0x14a4')]['context'],'exten':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')],'priority':_0x1e001f++,'VoiceExtensionId':_0x57986f['outboundroute']['id']});typeof _0x57986f['outboundroute'][_0x47d96b('0x1e0f')]!==_0x47d96b('0x1574')&&_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1e0f')]!==_0x47d96b('0x117')&&(_0xb2d18[_0x47d96b('0x1599')]({'type':_0x47d96b('0x19d1'),'app':_0x47d96b('0x1666'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','context':_0x57986f[_0x47d96b('0x14a4')]['context'],'exten':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')],'priority':_0x1e001f++,'VoiceExtensionId':_0x57986f['outboundroute']['id']}),_0xb2d18[_0x47d96b('0x1599')]({'type':_0x47d96b('0x19d1'),'app':_0x47d96b('0x1666'),'appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0x57986f['outboundroute']['recordingFormat']||0x0,'context':_0x57986f['outboundroute'][_0x47d96b('0x19cd')],'exten':_0x57986f['outboundroute'][_0x47d96b('0x1990')],'priority':_0x1e001f++,'VoiceExtensionId':_0x57986f[_0x47d96b('0x14a4')]['id']}));for(var _0x32fc2e=0x0,_0x3a2676=0x0;_0x32fc2e<_0x57986f['outboundrouteApps'][_0x47d96b('0x580')][_0x47d96b('0x2587')];_0x32fc2e++,_0x3a2676=0x0){var _0x57204d=_0x57986f[_0x47d96b('0x1a09')]['rows'][_0x32fc2e],_0x2b51ff=[],_0x52fb02=[];_0x57204d[_0x47d96b('0x2568')]=_0x57204d[_0x47d96b('0x1c21')]!==_0x47d96b('0x1ac6')?[_0x57204d[_0x47d96b('0x1c21')]]:_0x57204d[_0x47d96b('0x1f8c')]?_0x51538b()[_0x47d96b('0x1246')](_0x51538b()[_0x47d96b('0xdb7')](_0x57986f[_0x47d96b('0x2568')][_0x47d96b('0x580')],{'IntervalId':_0x57204d[_0x47d96b('0x1f8c')]}),_0x47d96b('0x1c21')):[],_0x57204d['context']=_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x19cd')],_0x57204d[_0x47d96b('0x1990')]=_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')];_0x57204d[_0x47d96b('0x6c8')]&&(_0x57204d[_0x47d96b('0x6c8')]=_0x57204d['type'][_0x47d96b('0xcf6')]());typeof _0x57204d[_0x47d96b('0x38f')]!==_0x47d96b('0x1574')&&(_0x57204d[_0x47d96b('0x38f')]&&_0x57204d[_0x47d96b('0x38f')]!=='--'&&_0x2b51ff[_0x47d96b('0x1599')]({'type':_0x57204d[_0x47d96b('0x6c8')][_0x47d96b('0xcf6')](),'app':'Set','appdata':_0x47d96b('0xff9')+_0x57204d[_0x47d96b('0x38f')],'context':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x19cd')],'exten':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')],'priority':_0x57204d[_0x47d96b('0x2568')]['length']+_0x1e001f+_0x3a2676++,'VoiceExtensionId':_0x57986f['outboundroute']['id']}));_0x57204d[_0x47d96b('0x514')]?_0x2b51ff[_0x47d96b('0x1599')]({'type':_0x57204d['type'][_0x47d96b('0xcf6')](),'app':_0x47d96b('0x1aff'),'appdata':_0x47d96b('0x148b')+_0x57204d['callerID']+')','context':_0x57986f['outboundroute'][_0x47d96b('0x19cd')],'exten':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')],'priority':_0x57204d['intervals'][_0x47d96b('0x2587')]+_0x1e001f+_0x3a2676++,'VoiceExtensionId':_0x57986f['outboundroute']['id']}):_0x2b51ff[_0x47d96b('0x1599')]({'type':_0x57204d[_0x47d96b('0x6c8')][_0x47d96b('0xcf6')](),'app':_0x47d96b('0x1aff'),'appdata':_0x47d96b('0x2321'),'context':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x19cd')],'exten':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')],'priority':_0x57204d[_0x47d96b('0x2568')][_0x47d96b('0x2587')]+_0x1e001f+_0x3a2676++,'VoiceExtensionId':_0x57986f[_0x47d96b('0x14a4')]['id']});for(var _0x2c9b62=0x0;_0x2c9b62<_0x57204d[_0x47d96b('0x2568')][_0x47d96b('0x2587')];_0x2c9b62++){var _0x2fab0f=_0x1e001f+_0x57204d[_0x47d96b('0x2568')][_0x47d96b('0x2587')],_0x34dc59=_0x2c9b62===_0x57204d['intervals'][_0x47d96b('0x2587')]-0x1?_0x1e001f+_0x2b51ff[_0x47d96b('0x2587')]+_0x52fb02[_0x47d96b('0x2587')]+0x2:_0x1e001f+_0x2c9b62+0x1;_0x2b51ff['splice'](_0x2c9b62,0x0,{'type':_0x47d96b('0x19d1'),'app':_0x47d96b('0x121c'),'appdata':_0x57204d[_0x47d96b('0x2568')][_0x2c9b62]+'?'+_0x57986f['outboundroute'][_0x47d96b('0x19cd')]+_0x47d96b('0x2134')+_0x2fab0f+':'+_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x19cd')]+_0x47d96b('0x2134')+_0x34dc59,'exten':_0x57986f[_0x47d96b('0x14a4')]['exten'],'context':_0x57986f['outboundroute'][_0x47d96b('0x19cd')],'priority':_0x1e001f+_0x2c9b62,'VoiceExtensionId':_0x57986f[_0x47d96b('0x14a4')]['id']});}if(_0x57204d[_0x47d96b('0xe6d')]===_0x47d96b('0x8da')){var _0x4c66a8=_0x51538b()[_0x47d96b('0xe9e')](_0x57986f[_0x47d96b('0x27b0')],{'appType':_0x47d96b('0x8da')});if(_0x4c66a8&&_0x4c66a8[_0x47d96b('0x13a')]){var _0x19259a={},_0x465d2a=_0x57204d['appdata'][_0x47d96b('0x1a39')](','),_0x432fca=[];for(var _0x2a7489=0x0,_0x5025ff=_0x4c66a8['fields'][_0x47d96b('0x2587')];_0x2a7489<_0x5025ff;_0x2a7489++){if(typeof _0x4c66a8[_0x47d96b('0x13a')][_0x2a7489][_0x47d96b('0x14bc')]!==_0x47d96b('0x1574'))switch(_0x4c66a8[_0x47d96b('0x13a')][_0x2a7489][_0x47d96b('0x25d6')]){case _0x47d96b('0x1651'):_0x19259a[_0x47d96b('0x1651')]=_0x465d2a[_0x4c66a8[_0x47d96b('0x13a')][_0x2a7489][_0x47d96b('0x14bc')]][_0x47d96b('0x1a39')]('/')[0x1],_0x19259a['phone']=_0x465d2a[_0x4c66a8[_0x47d96b('0x13a')][_0x2a7489][_0x47d96b('0x14bc')]][_0x47d96b('0x1a39')]('/')[0x2],_0x19259a[_0x47d96b('0x1b8f')]=_0x19259a[_0x47d96b('0x1a46')]?_0x19259a['phone'][_0x47d96b('0x1a39')]('$')[0x0]:undefined,_0x19259a[_0x47d96b('0x1a46')]=_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x888')]?(_0x19259a[_0x47d96b('0x1b8f')]||'')+_0x47d96b('0x117e')+_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x888')]+'}':(_0x19259a[_0x47d96b('0x1b8f')]||'')+_0x47d96b('0x1f87'),_0x432fca[_0x4c66a8[_0x47d96b('0x13a')][_0x2a7489]['param']]=[_0x47d96b('0x1a48'),_0x19259a['trunk'],_0x19259a['phone']][_0x47d96b('0x19c4')]('/');break;case'options':_0x19259a['options']=_0x465d2a[_0x4c66a8[_0x47d96b('0x13a')][_0x2a7489]['param']];_0x57986f['outboundroute'][_0x47d96b('0x1e0f')]!==_0x47d96b('0x117')?_0x19259a[_0x47d96b('0x1b36')][_0x47d96b('0x1f38')](_0x47d96b('0x266a'))<0x0&&(_0x19259a[_0x47d96b('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x19259a[_0x47d96b('0x1b36')]=_0x19259a[_0x47d96b('0x1b36')][_0x47d96b('0x170d')](_0x47d96b('0x266a'),'');_0x432fca[_0x4c66a8['fields'][_0x2a7489][_0x47d96b('0x14bc')]]=_0x19259a[_0x47d96b('0x1b36')];break;default:_0x432fca[_0x4c66a8[_0x47d96b('0x13a')][_0x2a7489]['param']]=_0x465d2a[_0x4c66a8[_0x47d96b('0x13a')][_0x2a7489]['param']];}}_0x57204d[_0x47d96b('0x124b')]=_0x432fca['join'](',');}}_0x57204d['priority']=_0x2b51ff[_0x47d96b('0x2587')]?_0x51538b()['last'](_0x2b51ff)[_0x47d96b('0x13f2')]+0x1:_0x1e001f,_0x1e001f=(_0x52fb02[_0x47d96b('0x2587')]?_0x51538b()[_0x47d96b('0x23f4')](_0x52fb02)[_0x47d96b('0x13f2')]:_0x57204d[_0x47d96b('0x13f2')])+0x1,_0xb2d18=_0x51538b()[_0x47d96b('0x9e4')](_0xb2d18,_0x2b51ff,[_0x57204d],_0x52fb02);}_0xb2d18[_0x47d96b('0x1599')]({'type':'outbound','app':_0x47d96b('0x85e'),'exten':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x1990')],'context':_0x57986f[_0x47d96b('0x14a4')][_0x47d96b('0x19cd')],'priority':_0x1e001f,'VoiceExtensionId':_0x57986f[_0x47d96b('0x14a4')]['id']}),_0x3e107f[_0x47d96b('0x1361')][_0x47d96b('0x12e')]({'id':_0x57986f['outboundroute']['id']},_0x51538b()['sortBy'](_0xb2d18,'priority'))[_0x47d96b('0x1dc2')]['then'](function(_0x2f435c){var _0x30f352=_0x47d96b;_0x57986f[_0x30f352('0x1a09')][_0x30f352('0x580')]=_0x2f435c[_0x30f352('0x580')];})[_0x47d96b('0x253d')](function(_0x13a454){var _0x1f98ce=_0x47d96b;console[_0x1f98ce('0x187f')](_0x13a454);});}function _0x57ec79(_0x299a93){return _0x299a93===null?undefined:new Date(_0x299a93);}function _0x1066b4(_0x423834){_0x268ea3['hide'](_0x423834);}}const _0x2ae9f1=_0x51722c,_0x50df21=_0x4fb511['p']+_0x1a8446('0x131a'),_0x57d1b8=_0x4fb511['p']+_0x1a8446('0xb2e'),_0x4fc185=_0x4fb511['p']+_0x1a8446('0x26d0');_0xbeddb3[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),'$mdDialog',_0x1a8446('0x39b'),'toasty',_0x1a8446('0xe74'),_0x1a8446('0x51'),_0x1a8446('0x1dfd')];var _0x57c369={'custom':_0x50df21,'interval':_0x57d1b8,'outbounddial':_0x4fc185};function _0xbeddb3(_0x63c520,_0x3360b3,_0x411f5e,_0x12547b,_0x4b5f5e,_0x1ccca0,_0x5ec264){var _0x4721b6=_0x1a8446,_0x2e4e24=this;_0x2e4e24[_0x4721b6('0x7fc')]=_0x5ec264[_0x4721b6('0xacc')](),_0x2e4e24[_0x4721b6('0x14a4')]={},_0x2e4e24[_0x4721b6('0x1a09')]={'count':0x0,'rows':[]},_0x2e4e24[_0x4721b6('0x52d')]=[],_0x2e4e24[_0x4721b6('0xada')],_0x2e4e24['query']={'sort':'priority'},_0x2e4e24[_0x4721b6('0x27b0')]=_0x51538b()['reject'](_0x51538b()[_0x4721b6('0x181f')]([{'app':_0x4721b6('0x260f'),'appType':'interval','type':_0x4721b6('0x23c9'),'types':[_0x4721b6('0x1b43'),_0x4721b6('0x113b'),_0x4721b6('0x2334')],'fields':[],'isApp':![]},{'app':_0x4721b6('0x9f8'),'appType':_0x4721b6('0x8da'),'context':'from-sip','type':_0x4721b6('0x23c9'),'icon':_0x4721b6('0x1892'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x4721b6('0x1651'),'key':_0x4721b6('0x25d6')},'route':_0x4721b6('0x1651'),'filters':{'fields':_0x4721b6('0x17fe'),'sort':_0x4721b6('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x4721b6('0x523'),'field':{'name':_0x4721b6('0x38f'),'key':_0x4721b6('0x25d6')},'route':'tag','filters':{'fields':_0x4721b6('0x17fe'),'sort':_0x4721b6('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Trunk','name':'trunk','type':'apiselect','values':'trunks','value':_0x4721b6('0x7ce'),'option':_0x4721b6('0x7ce'),'required':!![],'param':0x0},{'title':_0x4721b6('0xb49'),'name':'callerID','type':_0x4721b6('0xb37'),'help':!![]},{'title':_0x4721b6('0xd80'),'name':_0x4721b6('0x1b8f'),'type':_0x4721b6('0xb37')},{'title':_0x4721b6('0x67f'),'name':'tag','type':_0x4721b6('0xd4d'),'values':_0x4721b6('0x523'),'value':_0x4721b6('0x17df'),'option':'tag.name','defaultValues':[{'value':_0x4721b6('0x1d3'),'option':_0x4721b6('0xfeb')}]},{'title':_0x4721b6('0xc45'),'name':_0x4721b6('0x23c0'),'type':_0x4721b6('0x219a'),'min':0x0,'param':0x1},{'title':_0x4721b6('0x2f1'),'name':_0x4721b6('0x1b36'),'type':_0x4721b6('0xb37'),'param':0x2},{'title':_0x4721b6('0x489'),'name':_0x4721b6('0x2242'),'type':_0x4721b6('0xb37'),'param':0x3}]},{'app':null,'type':_0x4721b6('0x23c9'),'appType':_0x4721b6('0x113b'),'icon':_0x4721b6('0x1892'),'interval':_0x4721b6('0x1ac6'),'isApp':!![],'fields':[{'title':_0x4721b6('0x22ef'),'name':'app','type':_0x4721b6('0xb37'),'required':!![],'param':0x0},{'title':'Arguments','name':_0x4721b6('0x124b'),'type':'text','param':0x1}]}],[_0x4721b6('0x9eb')]),{'isApp':![]}),_0x2e4e24[_0x4721b6('0x2334')]={'group':{'name':_0x4721b6('0xdf0'),'pull':_0x4721b6('0x1ae5')},'animation':0x64,'sort':![]},_0x2e4e24[_0x4721b6('0x209b')]={'group':{'name':_0x4721b6('0x1603'),'put':_0x4721b6('0xdf0')},'animation':0x64,'onAdd':function _0x4f305c(_0x20ec4c){var _0x133cc5=_0x4721b6;_0x152cbd(_0x20ec4c,_0x20ec4c[_0x133cc5('0x1b3d')]);},'onSort':function _0x34ab2f(){_0x75fe7();}},_0x2e4e24['init']=_0x563efd,_0x2e4e24[_0x4721b6('0x1416')]=_0x232572,_0x2e4e24[_0x4721b6('0x679')]=_0x298f1,_0x2e4e24[_0x4721b6('0x1c70')]=_0x152cbd,_0x2e4e24['editInterval']=_0xd44b77,_0x2e4e24[_0x4721b6('0xab2')]=_0x4823d2,_0x2e4e24[_0x4721b6('0xcf1')]=_0xc0d4e1,_0x2e4e24['rewriteRouting']=_0x75fe7,_0x2e4e24[_0x4721b6('0x1f55')]=_0xdaa11a,_0x2e4e24['onVoiceExtensionUpdate']=_0x57b017;function _0x563efd(_0xb0130b,_0xa699c4){var _0xc34899=_0x4721b6;_0x2e4e24[_0xc34899('0x14a4')]=_0xb0130b,_0x2e4e24[_0xc34899('0xada')]=typeof _0xa699c4!==_0xc34899('0x1574')?_0xa699c4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2e4e24[_0xc34899('0x209b')][_0xc34899('0x2686')]=!_0x2e4e24['crudPermissions'][_0xc34899('0x1c1d')]?!![]:![],_0x4b5f5e['on'](_0xc34899('0xb0b'),_0x2e4e24[_0xc34899('0x14a9')]),_0x2e4e24[_0xc34899('0x582')][_0xc34899('0x1a70')]=_0xb0130b['id'],_0x2e4e24[_0xc34899('0x582')]['isApp']=!![],_0x2e4e24[_0xc34899('0x582')]['nolimit']=!![],_0x2e4e24[_0xc34899('0x679')](),_0x2e4e24['getIntervals']();}function _0x57b017(_0x2f0f06){var _0x19d967=_0x4721b6;_0x2f0f06[_0x19d967('0x1a70')]===_0x2e4e24[_0x19d967('0x14a4')]['id']&&_0x75fe7(!![]);}function _0x232572(_0x3c5e19,_0x25b6fe,_0x2d912d){var _0x3a9ceb=_0x4721b6,_0x1edff9=_0x3360b3['confirm']()['title'](_0x3a9ceb('0x912'))[_0x3a9ceb('0x102e')](_0x3a9ceb('0x389')+_0x3c5e19[_0x3a9ceb('0x9eb')]+_0x3a9ceb('0x697')+_0x3a9ceb('0x210d'))[_0x3a9ceb('0x5b5')](_0x3a9ceb('0x21a3'))[_0x3a9ceb('0x116d')](_0x2d912d)['ok']('OK')[_0x3a9ceb('0x2030')](_0x3a9ceb('0x2410'));_0x3360b3[_0x3a9ceb('0x1e6d')](_0x1edff9)[_0x3a9ceb('0xaa5')](function(){var _0x33b2ad=_0x3a9ceb;_0x2e4e24[_0x33b2ad('0x1a09')][_0x33b2ad('0x580')][_0x33b2ad('0x1280')](_0x25b6fe,0x1),_0x75fe7();},function(){var _0x3cd55d=_0x3a9ceb;console[_0x3cd55d('0x18d5')](_0x3cd55d('0x2410'));});}function _0x152cbd(_0x2063b8,_0xa1cf54){var _0x19fed0=_0x4721b6;if(_0x2e4e24[_0x19fed0('0x1a09')][_0x19fed0('0x580')]['length']){var _0x1143b4=_0x2e4e24[_0x19fed0('0x1a09')][_0x19fed0('0x580')][_0xa1cf54]?_0x2e4e24[_0x19fed0('0x1a09')]['rows'][_0xa1cf54]:_0x2e4e24[_0x19fed0('0x1a09')][_0x19fed0('0x580')][0x0],_0x4eebd6=(_0x1143b4[_0x19fed0('0xe6d')]||_0x1143b4['app'])[_0x19fed0('0xcf6')]();_0x3360b3[_0x19fed0('0x1e6d')]({'controller':_0x19fed0('0x278a')[_0x19fed0('0x9e4')](_0x4eebd6,'DialogController'),'controllerAs':'vm','templateUrl':_0x57c369[_0x4eebd6],'parent':angular[_0x19fed0('0x1aa8')](_0x411f5e['body']),'targetEvent':_0x2063b8,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x1143b4,'outboundroute':_0x2e4e24[_0x19fed0('0x14a4')],'crudPermissions':_0x2e4e24[_0x19fed0('0xada')]}})[_0x19fed0('0xaa5')](function(_0x457e6b){var _0x3a9bbf=_0x19fed0;_0x457e6b&&(_0x457e6b['id']?_0x2e4e24[_0x3a9bbf('0x1a09')][_0x3a9bbf('0x580')][_0xa1cf54]=_0x457e6b:_0x2e4e24[_0x3a9bbf('0x1a09')][_0x3a9bbf('0x580')][_0x3a9bbf('0x1280')](_0xa1cf54,0x0,_0x457e6b),_0x75fe7());})[_0x19fed0('0x253d')](function(_0x3bf5bf){var _0x42bcdd=_0x19fed0;_0x3bf5bf&&_0x12547b[_0x42bcdd('0x187f')]({'title':_0x3bf5bf[_0x42bcdd('0x2fa')]?'API:'+_0x3bf5bf[_0x42bcdd('0x2fa')]+_0x42bcdd('0x169e')+_0x3bf5bf[_0x42bcdd('0x24df')]:_0x42bcdd('0x26b6'),'msg':_0x3bf5bf['data']?JSON[_0x42bcdd('0xa48')](_0x3bf5bf[_0x42bcdd('0x10fd')]):_0x3bf5bf['toString']()});});}}function _0xd44b77(_0x3757c1,_0x591883){var _0x4439d9=_0x4721b6;if(_0x2e4e24[_0x4439d9('0x1a09')][_0x4439d9('0x580')][_0x4439d9('0x2587')]){var _0x334b56=_0x2e4e24[_0x4439d9('0x1a09')]['rows'][_0x591883]?_0x2e4e24[_0x4439d9('0x1a09')][_0x4439d9('0x580')][_0x591883]:_0x2e4e24[_0x4439d9('0x1a09')][_0x4439d9('0x580')][0x0];_0x3360b3[_0x4439d9('0x1e6d')]({'controller':_0x4439d9('0x131e'),'controllerAs':'vm','templateUrl':_0x57d1b8,'parent':angular[_0x4439d9('0x1aa8')](_0x411f5e['body']),'targetEvent':_0x3757c1,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x334b56[_0x4439d9('0x1c21')],'IntervalId':_0x334b56[_0x4439d9('0x1f8c')],'application':!![]},'intervals':[],'crudPermissions':_0x2e4e24['crudPermissions']}})['then'](function(_0x19dc4e){var _0x571526=_0x4439d9;_0x19dc4e&&(_0x334b56['interval']=_0x19dc4e[_0x571526('0x1c21')]||_0x571526('0x1ac6'),_0x334b56[_0x571526('0x1f8c')]=_0x19dc4e[_0x571526('0x1f8c')]||null,_0x75fe7());});}}function _0x75fe7(_0x2fd72f){var _0xaf4888=_0x4721b6,_0x3cd813=0x2,_0x4da3d1=[];_0x4da3d1[_0xaf4888('0x1599')]({'type':'outbound','app':_0xaf4888('0x1666'),'appdata':_0xaf4888('0xbbe'),'context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}),_0x4da3d1[_0xaf4888('0x1599')]({'type':_0xaf4888('0x19d1'),'app':_0xaf4888('0x1666'),'appdata':_0xaf4888('0x77c')+(_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x888')]?'${EXTEN:'+_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x888')]+'}':'${EXTEN}'),'context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24['outboundroute'][_0xaf4888('0x1990')],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}),_0x4da3d1[_0xaf4888('0x1599')]({'type':_0xaf4888('0x19d1'),'app':_0xaf4888('0x1666'),'appdata':'CDR(routeid)='+_0x2e4e24[_0xaf4888('0x14a4')]['id'],'context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')]['exten'],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']});var _0x4f56ae=_0x3cd813++;_0x4da3d1[_0xaf4888('0x1599')]({'type':_0xaf4888('0x19d1'),'app':'ExecIf','appdata':_0xaf4888('0x214c')+(_0x4f56ae+0x2)+_0xaf4888('0x21d3')+(_0x4f56ae+0x1)+')','context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24['outboundroute'][_0xaf4888('0x1990')],'priority':_0x4f56ae,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}),_0x4da3d1[_0xaf4888('0x1599')]({'type':_0xaf4888('0x19d1'),'app':_0xaf4888('0x1666'),'appdata':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x888')]?_0xaf4888('0x167b')+_0x2e4e24['outboundroute']['cutdigits']+'}':'CDR(prefix)=noprefix','context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')]['exten'],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}),_0x4da3d1[_0xaf4888('0x1599')]({'type':_0xaf4888('0x19d1'),'app':_0xaf4888('0x1666'),'appdata':_0xaf4888('0x122a'),'context':_0x2e4e24[_0xaf4888('0x14a4')]['context'],'exten':_0x2e4e24['outboundroute']['exten'],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}),_0x4da3d1['push']({'type':_0xaf4888('0x19d1'),'app':_0xaf4888('0x1666'),'appdata':_0xaf4888('0x134b'),'context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24['outboundroute']['id']}),_0x4da3d1[_0xaf4888('0x1599')]({'type':_0xaf4888('0x19d1'),'app':_0xaf4888('0x1666'),'appdata':_0xaf4888('0x123a'),'context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24['outboundroute']['id']}),_0x4da3d1[_0xaf4888('0x1599')]({'type':'outbound','app':_0xaf4888('0x1666'),'appdata':_0xaf4888('0x21a1')+_0x2e4e24['outboundroute']['id'],'context':_0x2e4e24['outboundroute']['context'],'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']});typeof _0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1e0f')]===_0xaf4888('0x1574')&&_0x2e4e24['outboundroute'][_0xaf4888('0x1e0f')]!==_0xaf4888('0x117')&&(_0x4da3d1[_0xaf4888('0x1599')]({'type':_0xaf4888('0x19d1'),'app':_0xaf4888('0x1666'),'appdata':_0xaf4888('0xe3d'),'context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}),_0x4da3d1[_0xaf4888('0x1599')]({'type':_0xaf4888('0x19d1'),'app':_0xaf4888('0x1666'),'appdata':_0xaf4888('0x6fd')+_0x2e4e24['outboundroute']['recordingFormat']||0x0,'context':_0x2e4e24['outboundroute'][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'priority':_0x3cd813++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}));for(var _0x10ef10=0x0,_0xfc872c=0x0;_0x10ef10<_0x2e4e24['outboundrouteApps'][_0xaf4888('0x580')][_0xaf4888('0x2587')];_0x10ef10++,_0xfc872c=0x0){var _0x25a296=_0x2e4e24[_0xaf4888('0x1a09')]['rows'][_0x10ef10],_0x509230=[],_0x287cbf=[];_0x25a296['intervals']=_0x25a296[_0xaf4888('0x1c21')]!==_0xaf4888('0x1ac6')?[_0x25a296[_0xaf4888('0x1c21')]]:_0x25a296['IntervalId']?_0x51538b()['map'](_0x51538b()[_0xaf4888('0xdb7')](_0x2e4e24['intervals']['rows'],{'IntervalId':_0x25a296[_0xaf4888('0x1f8c')]}),'interval'):[],_0x25a296[_0xaf4888('0x19cd')]=_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],_0x25a296[_0xaf4888('0x1990')]=_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')];_0x25a296[_0xaf4888('0x6c8')]&&(_0x25a296[_0xaf4888('0x6c8')]=_0x25a296[_0xaf4888('0x6c8')]['toLowerCase']());typeof _0x25a296[_0xaf4888('0x38f')]!==_0xaf4888('0x1574')&&(_0x25a296[_0xaf4888('0x38f')]&&_0x25a296['tag']!=='--'&&_0x509230['push']({'type':_0x25a296[_0xaf4888('0x6c8')][_0xaf4888('0xcf6')](),'app':_0xaf4888('0x1666'),'appdata':'CDR(tag)='+_0x25a296['tag'],'context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'priority':_0x25a296['intervals'][_0xaf4888('0x2587')]+_0x3cd813+_0xfc872c++,'VoiceExtensionId':_0x2e4e24['outboundroute']['id']}));_0x25a296[_0xaf4888('0x514')]?_0x509230[_0xaf4888('0x1599')]({'type':_0x25a296[_0xaf4888('0x6c8')]['toLowerCase'](),'app':'ExecIf','appdata':_0xaf4888('0x148b')+_0x25a296[_0xaf4888('0x514')]+')','context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24['outboundroute'][_0xaf4888('0x1990')],'priority':_0x25a296[_0xaf4888('0x2568')][_0xaf4888('0x2587')]+_0x3cd813+_0xfc872c++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}):_0x509230[_0xaf4888('0x1599')]({'type':_0x25a296[_0xaf4888('0x6c8')][_0xaf4888('0xcf6')](),'app':_0xaf4888('0x1aff'),'appdata':_0xaf4888('0x2321'),'context':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')],'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'priority':_0x25a296[_0xaf4888('0x2568')][_0xaf4888('0x2587')]+_0x3cd813+_0xfc872c++,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']});for(var _0x3c9538=0x0;_0x3c9538<_0x25a296[_0xaf4888('0x2568')][_0xaf4888('0x2587')];_0x3c9538++){var _0x2d4a9a=_0x3cd813+_0x25a296[_0xaf4888('0x2568')]['length'],_0x52ebe9=_0x3c9538===_0x25a296[_0xaf4888('0x2568')][_0xaf4888('0x2587')]-0x1?_0x3cd813+_0x509230[_0xaf4888('0x2587')]+_0x287cbf[_0xaf4888('0x2587')]+0x2:_0x3cd813+_0x3c9538+0x1;_0x509230[_0xaf4888('0x1280')](_0x3c9538,0x0,{'type':_0xaf4888('0x19d1'),'app':'GotoIfTime','appdata':_0x25a296[_0xaf4888('0x2568')][_0x3c9538]+'?'+_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x19cd')]+_0xaf4888('0x2134')+_0x2d4a9a+':'+_0x2e4e24[_0xaf4888('0x14a4')]['context']+_0xaf4888('0x2134')+_0x52ebe9,'exten':_0x2e4e24[_0xaf4888('0x14a4')]['exten'],'context':_0x2e4e24[_0xaf4888('0x14a4')]['context'],'priority':_0x3cd813+_0x3c9538,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']});}if(_0x2fd72f&&_0x25a296['appType']==='outboundDial'){var _0x38e86c=_0x51538b()[_0xaf4888('0xe9e')](_0x2e4e24['apps'],{'appType':_0xaf4888('0x8da')});if(_0x38e86c&&_0x38e86c[_0xaf4888('0x13a')]){var _0x2d01ba={},_0x1cb6cf=_0x25a296[_0xaf4888('0x124b')][_0xaf4888('0x1a39')](','),_0x261de7=[];for(var _0xd09a14=0x0,_0x1dfc30=_0x38e86c['fields']['length'];_0xd09a14<_0x1dfc30;_0xd09a14++){if(typeof _0x38e86c[_0xaf4888('0x13a')][_0xd09a14][_0xaf4888('0x14bc')]!==_0xaf4888('0x1574'))switch(_0x38e86c[_0xaf4888('0x13a')][_0xd09a14][_0xaf4888('0x25d6')]){case _0xaf4888('0x1651'):_0x2d01ba[_0xaf4888('0x1651')]=_0x1cb6cf[_0x38e86c[_0xaf4888('0x13a')][_0xd09a14]['param']][_0xaf4888('0x1a39')]('/')[0x1],_0x2d01ba[_0xaf4888('0x1a46')]=_0x1cb6cf[_0x38e86c['fields'][_0xd09a14][_0xaf4888('0x14bc')]][_0xaf4888('0x1a39')]('/')[0x2],_0x2d01ba[_0xaf4888('0x1b8f')]=_0x2d01ba[_0xaf4888('0x1a46')]?_0x2d01ba[_0xaf4888('0x1a46')][_0xaf4888('0x1a39')]('$')[0x0]:undefined,_0x2d01ba[_0xaf4888('0x1a46')]=_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x888')]?(_0x2d01ba[_0xaf4888('0x1b8f')]||'')+'${EXTEN:'+_0x2e4e24['outboundroute']['cutdigits']+'}':(_0x2d01ba['prefix']||'')+_0xaf4888('0x1f87'),_0x261de7[_0x38e86c[_0xaf4888('0x13a')][_0xd09a14][_0xaf4888('0x14bc')]]=[_0xaf4888('0x1a48'),_0x2d01ba[_0xaf4888('0x1651')],_0x2d01ba[_0xaf4888('0x1a46')]][_0xaf4888('0x19c4')]('/');break;case _0xaf4888('0x1b36'):_0x2d01ba[_0xaf4888('0x1b36')]=_0x1cb6cf[_0x38e86c['fields'][_0xd09a14][_0xaf4888('0x14bc')]];_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1e0f')]!==_0xaf4888('0x117')?_0x2d01ba[_0xaf4888('0x1b36')][_0xaf4888('0x1f38')](_0xaf4888('0x266a'))<0x0&&(_0x2d01ba['options']+='U(xcally-mixmonitor-context)'):_0x2d01ba['options']=_0x2d01ba[_0xaf4888('0x1b36')][_0xaf4888('0x170d')]('U(xcally-mixmonitor-context)','');_0x261de7[_0x38e86c[_0xaf4888('0x13a')][_0xd09a14][_0xaf4888('0x14bc')]]=_0x2d01ba[_0xaf4888('0x1b36')];break;default:_0x261de7[_0x38e86c[_0xaf4888('0x13a')][_0xd09a14]['param']]=_0x1cb6cf[_0x38e86c[_0xaf4888('0x13a')][_0xd09a14][_0xaf4888('0x14bc')]];}}_0x25a296[_0xaf4888('0x124b')]=_0x261de7[_0xaf4888('0x19c4')](',');}}_0x25a296['priority']=_0x509230[_0xaf4888('0x2587')]?_0x51538b()[_0xaf4888('0x23f4')](_0x509230)[_0xaf4888('0x13f2')]+0x1:_0x3cd813,_0x3cd813=(_0x287cbf[_0xaf4888('0x2587')]?_0x51538b()[_0xaf4888('0x23f4')](_0x287cbf)['priority']:_0x25a296[_0xaf4888('0x13f2')])+0x1,_0x4da3d1=_0x51538b()[_0xaf4888('0x9e4')](_0x4da3d1,_0x509230,[_0x25a296],_0x287cbf);}_0x4da3d1[_0xaf4888('0x1599')]({'type':'outbound','app':_0xaf4888('0x85e'),'exten':_0x2e4e24[_0xaf4888('0x14a4')][_0xaf4888('0x1990')],'context':_0x2e4e24['outboundroute']['context'],'priority':_0x3cd813,'VoiceExtensionId':_0x2e4e24[_0xaf4888('0x14a4')]['id']}),_0x63c520['voiceExtension'][_0xaf4888('0x12e')]({'id':_0x2e4e24[_0xaf4888('0x14a4')]['id']},_0x51538b()[_0xaf4888('0x181f')](_0x4da3d1,_0xaf4888('0x13f2')))[_0xaf4888('0x1dc2')][_0xaf4888('0xaa5')](function(_0xbdcaab){var _0x1c05a2=_0xaf4888;_0x2e4e24['outboundrouteApps'][_0x1c05a2('0x580')]=_0xbdcaab[_0x1c05a2('0x580')];})[_0xaf4888('0x253d')](function(_0x2c103f){var _0xfc9f60=_0xaf4888;console[_0xfc9f60('0x187f')](_0x2c103f);});}function _0x47aa32(_0x840579){var _0x428b9c=_0x4721b6;_0x2e4e24[_0x428b9c('0x1a09')]=_0x840579||{'count':0x0,'rows':[]};}function _0xdaa11a(){var _0x5133ad=_0x4721b6;return _0x63c520[_0x5133ad('0x1c21')][_0x5133ad('0x2122')]({'fields':_0x5133ad('0x1487')})[_0x5133ad('0x1dc2')][_0x5133ad('0xaa5')](function(_0x5d2e96){var _0x1d9e7d=_0x5133ad;_0x2e4e24[_0x1d9e7d('0x2568')]=_0x5d2e96;})[_0x5133ad('0x253d')](function(_0x218fec){var _0x5a0269=_0x5133ad;console[_0x5a0269('0x187f')](_0x218fec);});}function _0x298f1(){var _0x519758=_0x4721b6;_0x2e4e24['promise']=_0x63c520[_0x519758('0x1361')][_0x519758('0x2122')](_0x2e4e24['query'],_0x47aa32)[_0x519758('0x1dc2')];}function _0x4823d2(_0x4e24ab){var _0x3f2bc8=_0x4721b6;_0x51538b()[_0x3f2bc8('0xf6d')](_0x2e4e24[_0x3f2bc8('0x1a09')][_0x3f2bc8('0x580')],{'id':_0x4e24ab['id']}),_0x75fe7(),_0x12547b['success']({'title':_0x3f2bc8('0x1446'),'msg':_0x4e24ab[_0x3f2bc8('0x9eb')]?_0x4e24ab[_0x3f2bc8('0x9eb')]+_0x3f2bc8('0xcd9'):''});}function _0xc0d4e1(_0x35c35a){var _0x4a0a05=_0x4721b6,_0x2c29cc=_0x3360b3[_0x4a0a05('0x281e')]()[_0x4a0a05('0x110a')](_0x4a0a05('0x1190'))[_0x4a0a05('0x102e')](_0x4a0a05('0x389')+_0x2e4e24[_0x4a0a05('0x52d')]['length']+_0x4a0a05('0x1443')+_0x4a0a05('0x210d'))[_0x4a0a05('0x5b5')](_0x4a0a05('0x2845'))[_0x4a0a05('0x116d')](_0x35c35a)['ok']('OK')[_0x4a0a05('0x2030')]('CANCEL');_0x3360b3[_0x4a0a05('0x1e6d')](_0x2c29cc)['then'](function(){var _0x4f3ca5=_0x4a0a05;_0x2e4e24['selectedOutboundRouteApps'][_0x4f3ca5('0x15b5')](function(_0x25d7b3){var _0xbad982=_0x4f3ca5;_0x51538b()[_0xbad982('0xf6d')](_0x2e4e24[_0xbad982('0x1a09')]['rows'],{'id':_0x25d7b3['id']});}),_0x2e4e24[_0x4f3ca5('0x52d')]=[],_0x75fe7();});}_0x1ccca0[_0x4721b6('0xc75')]('$destroy',function(){var _0x42d219=_0x4721b6;_0x4b5f5e[_0x42d219('0x2629')]('voiceExtension:update');});}const _0x41dc5b=_0xbeddb3;_0x5c238c[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty','outboundrouteApp',_0x1a8446('0x14a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x5c238c(_0x339921,_0x2ecfe4,_0x3df490,_0x54f2c1,_0x24bd38,_0x505a32,_0x5cbd7f,_0x13f79d){var _0x1ebf54=_0x1a8446,_0x1b8c3b=this;_0x1b8c3b[_0x1ebf54('0x7fc')]=_0x5cbd7f[_0x1ebf54('0xacc')](),_0x1b8c3b[_0x1ebf54('0x4c6')]=[],_0x1b8c3b[_0x1ebf54('0x110a')]=_0x1ebf54('0x484')+(_0x54f2c1[_0x1ebf54('0xe6d')]||_0x54f2c1['app'])[_0x1ebf54('0x1d08')](),_0x1b8c3b[_0x1ebf54('0x113b')]=angular[_0x1ebf54('0x20a')](_0x54f2c1),_0x1b8c3b[_0x1ebf54('0xada')]=_0x13f79d,_0x1b8c3b[_0x1ebf54('0x9f0')]={};if(_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x124b')])switch(_0x1b8c3b['custom'][_0x1ebf54('0xe6d')]?_0x1b8c3b[_0x1ebf54('0x113b')]['appType'][_0x1ebf54('0xcf6')]():_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x9eb')]['toLowerCase']()){case _0x1ebf54('0x113b'):break;case'dialogflow':{var _0x535f0f=_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x124b')][_0x1ebf54('0x1a39')](',');_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x24ec')]=_0x535f0f[0x0],_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x1938')]=_0x535f0f[0x1],_0x1b8c3b['custom'][_0x1ebf54('0x273')]=_0x535f0f[_0x1ebf54('0x19aa')](0x2,_0x535f0f[_0x1ebf54('0x2587')])[_0x1ebf54('0x19c4')](',');}break;case _0x1ebf54('0x3f5'):{var _0x4427b6=_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x124b')]['split'](',');_0x1b8c3b['custom'][_0x1ebf54('0xc07')]=_0x4427b6[0x0],_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x15f9')]=_0x4427b6[0x1],_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0xa9a')]=_0x4427b6[0x2],_0x1b8c3b['custom']['botname']=_0x4427b6[0x3],_0x1b8c3b['custom'][_0x1ebf54('0x273')]=_0x4427b6[_0x1ebf54('0x19aa')](0x4,_0x4427b6['length'])['join'](',');}break;case _0x1ebf54('0x1b05'):{var _0x43b7c9=_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x124b')][_0x1ebf54('0x1a39')](',');_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x11b6')]=isNaN(_0x43b7c9[0x0])?_0x43b7c9[0x0]:parseInt(_0x43b7c9[0x0],0xa),_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0xb37')]=_0x43b7c9[_0x1ebf54('0x19aa')](0x1,_0x43b7c9[_0x1ebf54('0x2587')])[_0x1ebf54('0x19c4')](',');}break;case _0x1ebf54('0x1402'):_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0xb37')]=_0x1b8c3b[_0x1ebf54('0x113b')]['appdata'];break;case _0x1ebf54('0x282c'):_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x25d6')]=_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x124b')]['split']('=')[0x0],_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x12f4')]=_0x1b8c3b[_0x1ebf54('0x113b')]['appdata'][_0x1ebf54('0x1a39')]('=')[0x1];break;case'agi':_0x1b8c3b['custom']['project']=_0x1b8c3b['custom']['appdata'];break;default:{var _0x4e91be=_0x1b8c3b['custom'][_0x1ebf54('0x124b')][_0x1ebf54('0x1a39')](',');_0x1b8c3b[_0x1ebf54('0x113b')]['app']=_0x51538b()[_0x1ebf54('0x116b')](_0x4e91be[0x0])?_0x4e91be[0x0]:isNaN(_0x4e91be[0x0])?_0x4e91be[0x0]:parseInt(_0x4e91be[0x0],0xa),_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x124b')]=_0x51538b()[_0x1ebf54('0x116b')](_0x4e91be[0x1])?_0x4e91be[0x1]:isNaN(_0x4e91be[0x1])?_0x4e91be[0x1]:parseInt(_0x4e91be[0x1],0xa);}break;}else{}_0x1b8c3b['custom'][_0x1ebf54('0x6c8')]&&_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x6c8')][_0x1ebf54('0xcf6')]()===_0x1ebf54('0x19d1')&&_0x1b8c3b[_0x1ebf54('0x113b')]['appType']['toLowerCase']()===_0x1ebf54('0x1e7f')&&(_0x1b8c3b['custom']['prefix']=_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x1a46')]?_0x1b8c3b[_0x1ebf54('0x113b')][_0x1ebf54('0x1a46')]['split']('$')[0x0]:undefined,_0x1b8c3b[_0x1ebf54('0x113b')]['callerId']=_0x1b8c3b[_0x1ebf54('0x113b')]['callerID']?_0x1ebf54('0x23d8')+_0x1b8c3b['custom'][_0x1ebf54('0x514')]:undefined);_0x1b8c3b[_0x1ebf54('0x13c')]=_0x2069b3,_0x1b8c3b[_0x1ebf54('0x2023')]=_0x2bd45a;function _0x2069b3(){var _0x743dee=_0x1ebf54;_0x1b8c3b[_0x743dee('0x4c6')]=[];var _0x5a9712=[];_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0x6c8')]&&_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0x6c8')][_0x743dee('0xcf6')]()===_0x743dee('0x19d1')&&_0x1b8c3b['custom']['appType']===_0x743dee('0x8da')&&(_0x1b8c3b['custom']['phone']=_0x24bd38[_0x743dee('0x888')]?(_0x1b8c3b['custom'][_0x743dee('0x1b8f')]||'')+_0x743dee('0x117e')+_0x24bd38['cutdigits']+'}':(_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0x1b8f')]||'')+'${EXTEN}',_0x24bd38['recordingFormat']!==_0x743dee('0x117')?_0x1b8c3b['custom'][_0x743dee('0x1b36')][_0x743dee('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x1b8c3b['custom'][_0x743dee('0x1b36')]+=_0x743dee('0x266a')):_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0x1b36')]=_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0x1b36')][_0x743dee('0x170d')](_0x743dee('0x266a'),''));if(_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0xe6d')]&&_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0xe6d')]==='custom'){}else switch((_0x1b8c3b['custom']['app']||_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0xe6d')])[_0x743dee('0xcf6')]()){case _0x743dee('0x282c'):_0x1b8c3b['custom'][_0x743dee('0x124b')]=_0x1b8c3b['custom'][_0x743dee('0x25d6')]+'='+_0x1b8c3b['custom'][_0x743dee('0x12f4')];break;case _0x743dee('0x113b'):break;default:_0x5a9712[0x0]=_0x1b8c3b[_0x743dee('0x113b')][_0x743dee('0x9eb')],_0x5a9712[0x1]=_0x1b8c3b['custom'][_0x743dee('0x124b')],_0x1b8c3b['custom'][_0x743dee('0x124b')]=_0x5a9712[_0x743dee('0x19c4')](',');}_0x2bd45a(_0x1b8c3b[_0x743dee('0x113b')]);}function _0x2bd45a(_0x5b704f){_0x339921['hide'](_0x5b704f);}}const _0x1abf31=_0x5c238c;_0x3789bd[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x197b'),'interval',_0x1a8446('0x2568'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x3789bd(_0x1995af,_0xde8560,_0x2b9702,_0x495d7f,_0x282e23,_0x1f2e2c,_0x359074,_0x40bf14,_0x551543,_0x52c9f7){var _0x5ec78e=_0x1a8446,_0x38da22=this;_0x38da22[_0x5ec78e('0x7fc')]=_0x551543['getCurrentUser'](),_0x38da22[_0x5ec78e('0x4c6')]=[],_0x38da22[_0x5ec78e('0x110a')]='TOOLS.EDIT_INTERVAL',_0x38da22[_0x5ec78e('0x1c21')]=angular['copy'](_0x282e23),_0x38da22['intervals']=_0x1f2e2c,_0x38da22[_0x5ec78e('0x740')]=![],_0x38da22[_0x5ec78e('0x11e9')]=[_0x5ec78e('0x1b43'),_0x5ec78e('0x113b'),_0x5ec78e('0x2334')],_0x38da22['crudPermissions']=_0x52c9f7,_0x38da22[_0x5ec78e('0xbe6')]=_0x495d7f[_0x5ec78e('0x1529')](),_0x38da22[_0x5ec78e('0x21a9')]=_0x495d7f[_0x5ec78e('0x23fa')](),_0x38da22[_0x5ec78e('0x672')]=_0x495d7f[_0x5ec78e('0x2225')](),_0x38da22[_0x5ec78e('0x1469')]=_0x495d7f[_0x5ec78e('0x74a')]();if(!_0x38da22[_0x5ec78e('0x1c21')])_0x38da22['interval']={'interval':_0x5ec78e('0x1ac6')},_0x38da22['type']=_0x5ec78e('0x1b43'),_0x38da22[_0x5ec78e('0x110a')]='TOOLS.NEW_INTERVAL',_0x38da22[_0x5ec78e('0x740')]=!![];else{if(_0x38da22[_0x5ec78e('0x1c21')][_0x5ec78e('0x1c21')]!==_0x5ec78e('0x1ac6')){_0x38da22[_0x5ec78e('0x6c8')]=_0x5ec78e('0x113b');var _0x4a8ec4=_0x38da22[_0x5ec78e('0x1c21')][_0x5ec78e('0x1c21')][_0x5ec78e('0x1a39')](','),_0x12e6a7=_0x4a8ec4[0x0],_0x5e5b3e=_0x4a8ec4[0x1],_0x24bd5b=_0x4a8ec4[0x2],_0x1febe3=_0x4a8ec4[0x3];if(_0x12e6a7!=='*'){var _0x159ebb=_0x12e6a7[_0x5ec78e('0x1a39')]('-')[0x0],_0x2762d5=_0x12e6a7[_0x5ec78e('0x1a39')]('-')[0x1],_0x13d6cc;_0x13d6cc=new Date(),_0x13d6cc[_0x5ec78e('0x807')](Number(_0x159ebb[_0x5ec78e('0x1a39')](':')[0x0])),_0x13d6cc[_0x5ec78e('0xb43')](Number(_0x159ebb[_0x5ec78e('0x1a39')](':')[0x1])),_0x38da22[_0x5ec78e('0x1ee7')]=_0x13d6cc,_0x13d6cc=new Date(),_0x13d6cc[_0x5ec78e('0x807')](Number(_0x2762d5[_0x5ec78e('0x1a39')](':')[0x0])),_0x13d6cc[_0x5ec78e('0xb43')](Number(_0x2762d5[_0x5ec78e('0x1a39')](':')[0x1])),_0x38da22['timeRangeTo']=_0x13d6cc;}_0x5e5b3e!=='*'&&(_0x38da22['dayOfWeekFrom']=_0x5e5b3e[_0x5ec78e('0x1a39')]('-')[0x0],_0x38da22['dayOfWeekTo']=_0x5e5b3e[_0x5ec78e('0x1a39')]('-')[0x1]),_0x24bd5b!=='*'&&(_0x38da22['monthDayFrom']=_0x24bd5b[_0x5ec78e('0x1a39')]('-')[0x0],_0x38da22[_0x5ec78e('0x2c3')]=_0x24bd5b[_0x5ec78e('0x1a39')]('-')[0x1]),_0x1febe3!=='*'&&(_0x38da22['monthFrom']=_0x1febe3[_0x5ec78e('0x1a39')]('-')[0x0],_0x38da22[_0x5ec78e('0x125f')]=_0x1febe3['split']('-')[0x1]);}else _0x38da22[_0x5ec78e('0x6c8')]='always';}_0x1995af[_0x5ec78e('0x25cf')]['id']&&!_0x38da22[_0x5ec78e('0x1c21')]['application']&&(_0x38da22[_0x5ec78e('0x1c21')][_0x5ec78e('0x1f8c')]=_0x1995af['params']['id']);_0x38da22['interval'][_0x5ec78e('0x1f8c')]&&_0x38da22[_0x5ec78e('0x1c21')]['application']&&(_0x38da22[_0x5ec78e('0x6c8')]=_0x5ec78e('0x2334'));_0x38da22[_0x5ec78e('0x152a')]=_0x7bdaec,_0x38da22[_0x5ec78e('0x1570')]=_0xf60f12,_0x38da22[_0x5ec78e('0x2023')]=_0x4d0490;_0x38da22[_0x5ec78e('0x1c21')][_0x5ec78e('0xe45')]&&(_0x551543[_0x5ec78e('0x26e8')]('admin')?_0x40bf14[_0x5ec78e('0x1c21')][_0x5ec78e('0x2122')]({'fields':_0x5ec78e('0x1a33'),'IntervalId':_0x5ec78e('0x1ed9'),'nolimit':!![]})['$promise'][_0x5ec78e('0xaa5')](function(_0x4ff0c9){var _0x1932ad=_0x5ec78e;_0x38da22[_0x1932ad('0x2568')]=_0x4ff0c9[_0x1932ad('0x580')]||[];})[_0x5ec78e('0x253d')](function(_0x45fa27){var _0x53f732=_0x5ec78e;_0x359074[_0x53f732('0x187f')]({'title':_0x45fa27[_0x53f732('0x2fa')]?_0x53f732('0x16c2')+_0x45fa27[_0x53f732('0x2fa')]+_0x53f732('0x169e')+_0x45fa27['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x45fa27[_0x53f732('0x10fd')]?JSON[_0x53f732('0xa48')](_0x45fa27[_0x53f732('0x10fd')]):_0x45fa27[_0x53f732('0x684')]()});}):_0x40bf14[_0x5ec78e('0x1c21')][_0x5ec78e('0x2122')]({'fields':_0x5ec78e('0x1a33'),'IntervalId':_0x5ec78e('0x1ed9'),'nolimit':!![]})[_0x5ec78e('0x1dc2')]['then'](function(_0x5a5a51){var _0xec129b=_0x5ec78e;_0x38da22['intervals']=_0x5a5a51[_0xec129b('0x580')]||[];})[_0x5ec78e('0xaa5')](function(){var _0xad52da=_0x5ec78e;return _0x40bf14['userProfileSection'][_0xad52da('0x2122')]({'userProfileId':_0x38da22['currentUser'][_0xad52da('0x2168')],'sectionId':0x3ec})[_0xad52da('0x1dc2')];})[_0x5ec78e('0xaa5')](function(_0x438e91){var _0x15b63d=_0x5ec78e,_0x5ce2a5=_0x438e91&&_0x438e91['rows']?_0x438e91[_0x15b63d('0x580')][0x0]:null;if(!_0x5ce2a5)_0x38da22[_0x15b63d('0x2568')]=[];else{if(!_0x5ce2a5[_0x15b63d('0x26cc')])return _0x40bf14[_0x15b63d('0x249a')]['get']({'sectionId':_0x5ce2a5['id']})[_0x15b63d('0x1dc2')]['then'](function(_0x1675d2){var _0x4a41bc=_0x15b63d,_0x97f2cc=_0x1675d2&&_0x1675d2['rows']?_0x1675d2[_0x4a41bc('0x580')]:[],_0x4e0e29=[],_0x41f2ba=null;_0x38da22['interval']&&(_0x41f2ba=_0x51538b()[_0x4a41bc('0xe9e')](_0x38da22[_0x4a41bc('0x2568')],{'name':_0x38da22[_0x4a41bc('0x1c21')][_0x4a41bc('0x1f8c')]})),_0x41f2ba&&!_0x51538b()[_0x4a41bc('0x2c2')](_0x97f2cc,[_0x4a41bc('0xbcd'),_0x41f2ba['id']])&&_0x38da22['intervals'][_0x4a41bc('0x15b5')](function(_0x2595e0){var _0x15d83c=_0x4a41bc;_0x2595e0['id']===_0x41f2ba['id']&&(_0x2595e0[_0x15d83c('0x12eb')]=![],_0x4e0e29['push'](_0x2595e0));}),_0x38da22[_0x4a41bc('0x2568')]=_0x4e0e29;});}})[_0x5ec78e('0x253d')](function(_0x5250d9){var _0x4407f7=_0x5ec78e;_0x359074[_0x4407f7('0x187f')]({'title':_0x5250d9[_0x4407f7('0x2fa')]?'API:'+_0x5250d9[_0x4407f7('0x2fa')]+_0x4407f7('0x169e')+_0x5250d9[_0x4407f7('0x24df')]:_0x4407f7('0x3b0'),'msg':_0x5250d9[_0x4407f7('0x10fd')]?JSON[_0x4407f7('0xa48')](_0x5250d9[_0x4407f7('0x10fd')]):_0x5250d9[_0x4407f7('0x684')]()});}));function _0x2e5621(){var _0x294396=_0x5ec78e;switch(_0x38da22[_0x294396('0x6c8')]){case'always':case _0x294396('0x2334'):return _0x294396('0x1ac6');case'custom':{var _0x4816a4=[];if(_0x38da22[_0x294396('0x1ee7')]!=='*'&&_0x38da22[_0x294396('0x1ee7')]&&_0x38da22[_0x294396('0x815')]){var _0x2335d5=(_0x38da22[_0x294396('0x1ee7')][_0x294396('0x6a2')]()<0xa?'0':'')+_0x38da22[_0x294396('0x1ee7')][_0x294396('0x6a2')]()+':'+((_0x38da22[_0x294396('0x1ee7')]['getMinutes']()<0xa?'0':'')+_0x38da22[_0x294396('0x1ee7')][_0x294396('0x13a6')]()),_0x26ca11=(_0x38da22['timeRangeTo'][_0x294396('0x6a2')]()<0xa?'0':'')+_0x38da22['timeRangeTo']['getHours']()+':'+((_0x38da22['timeRangeTo']['getMinutes']()<0xa?'0':'')+_0x38da22['timeRangeTo']['getMinutes']());_0x4816a4[_0x294396('0x1599')](_0x2335d5+'-'+_0x26ca11);}else _0x4816a4[_0x294396('0x1599')]('*');return _0x38da22[_0x294396('0x1fa3')]?_0x38da22['dayOfWeekTo']?_0x4816a4[_0x294396('0x1599')](_0x38da22[_0x294396('0x1fa3')]+'-'+_0x38da22['dayOfWeekTo']):_0x4816a4[_0x294396('0x1599')](_0x38da22[_0x294396('0x1fa3')]):_0x4816a4['push']('*'),_0x38da22['monthDayFrom']?_0x38da22[_0x294396('0x2c3')]?_0x4816a4[_0x294396('0x1599')](_0x38da22[_0x294396('0x19d0')]+'-'+_0x38da22[_0x294396('0x2c3')]):_0x4816a4['push'](_0x38da22['monthDayFrom']):_0x4816a4[_0x294396('0x1599')]('*'),_0x38da22[_0x294396('0xcf9')]?_0x38da22[_0x294396('0x125f')]?_0x4816a4[_0x294396('0x1599')](_0x38da22[_0x294396('0xcf9')]+'-'+_0x38da22[_0x294396('0x125f')]):_0x4816a4['push'](_0x38da22[_0x294396('0xcf9')]):_0x4816a4[_0x294396('0x1599')]('*'),_0x4816a4['join']();}}}function _0x7bdaec(){var _0x1fd046=_0x5ec78e;_0x38da22['errors']=[],_0x38da22[_0x1fd046('0x1c21')][_0x1fd046('0x1c21')]=_0x2e5621(),_0x40bf14[_0x1fd046('0x1c21')][_0x1fd046('0x242b')](_0x38da22[_0x1fd046('0x1c21')])[_0x1fd046('0x1dc2')][_0x1fd046('0xaa5')](function(_0x3fc7d1){var _0x2aa54c=_0x1fd046;_0x38da22[_0x2aa54c('0x2568')][_0x2aa54c('0x1599')](_0x3fc7d1),_0x359074[_0x2aa54c('0xe10')]({'title':'Interval\x20properly\x20created','msg':_0x38da22[_0x2aa54c('0x1c21')][_0x2aa54c('0x25d6')]?_0x38da22[_0x2aa54c('0x1c21')]['name']+_0x2aa54c('0xdca'):''}),_0x4d0490();})[_0x1fd046('0x253d')](function(_0xb61f0a){var _0x5372b0=_0x1fd046;console[_0x5372b0('0x187f')](_0xb61f0a),_0x38da22['errors']=_0xb61f0a[_0x5372b0('0x10fd')][_0x5372b0('0x4c6')]||[{'message':_0xb61f0a['toString'](),'type':_0x5372b0('0xbd7')}];});}function _0xf60f12(){var _0x4e0056=_0x5ec78e;_0x38da22[_0x4e0056('0x4c6')]=[],_0x38da22[_0x4e0056('0x1c21')][_0x4e0056('0x1c21')]=_0x2e5621(),_0x38da22[_0x4e0056('0x1c21')]['application']?(_0x38da22['type']!==_0x4e0056('0x2334')&&(_0x38da22[_0x4e0056('0x1c21')][_0x4e0056('0x1f8c')]=null),_0x4d0490(_0x38da22[_0x4e0056('0x1c21')])):_0x40bf14[_0x4e0056('0x1c21')][_0x4e0056('0x264e')]({'id':_0x38da22[_0x4e0056('0x1c21')]['id']},_0x38da22[_0x4e0056('0x1c21')])[_0x4e0056('0x1dc2')][_0x4e0056('0xaa5')](function(_0xdec2ab){var _0x44bc5b=_0x4e0056,_0x5f06a7=_0x51538b()['find'](_0x38da22[_0x44bc5b('0x2568')],{'id':_0xdec2ab['id']});_0x5f06a7&&_0x51538b()[_0x44bc5b('0x283c')](_0x5f06a7,_0xdec2ab),_0x359074[_0x44bc5b('0xe10')]({'title':_0x44bc5b('0x68b'),'msg':_0x44bc5b('0x257d')}),_0x4d0490();})[_0x4e0056('0x253d')](function(_0x2a2408){var _0x44a4a2=_0x4e0056;console[_0x44a4a2('0x187f')](_0x2a2408),_0x38da22['errors']=_0x2a2408[_0x44a4a2('0x10fd')]['errors']||[{'message':_0x2a2408[_0x44a4a2('0x684')](),'type':_0x44a4a2('0x83d')}];});}function _0x4d0490(_0x1f5b69){_0xde8560['hide'](_0x1f5b69);}}const _0x14d847=_0x3789bd;_0x2384d7[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1499'),'outboundroute','api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x2384d7(_0x2fd21a,_0x22b376,_0x4db691,_0x54cf5e,_0x32b9d5,_0x1e5fe3,_0x546b20,_0x1846b2){var _0x1deec2=_0x1a8446,_0x1b7c8f=this;_0x1b7c8f['currentUser']=_0x546b20[_0x1deec2('0xacc')](),_0x1b7c8f[_0x1deec2('0x4c6')]=[],_0x1b7c8f[_0x1deec2('0x110a')]=_0x1deec2('0x484')+(_0x54cf5e[_0x1deec2('0xe6d')]||_0x54cf5e[_0x1deec2('0x9eb')])[_0x1deec2('0x1d08')](),_0x1b7c8f[_0x1deec2('0x1e7f')]=angular[_0x1deec2('0x20a')](_0x54cf5e),_0x1b7c8f['crudPermissions']=_0x1846b2,_0x1b7c8f[_0x1deec2('0x9f0')]={};if(_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x124b')])switch(_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0xe6d')]?_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0xe6d')][_0x1deec2('0xcf6')]():_0x1b7c8f['outbounddial'][_0x1deec2('0x9eb')]['toLowerCase']()){case'custom':break;case'dialogflow':{var _0x4b54bd=_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x124b')][_0x1deec2('0x1a39')](',');_0x1b7c8f['outbounddial'][_0x1deec2('0x24ec')]=_0x4b54bd[0x0],_0x1b7c8f[_0x1deec2('0x1e7f')]['language']=_0x4b54bd[0x1],_0x1b7c8f[_0x1deec2('0x1e7f')]['welcomemessage']=_0x4b54bd[_0x1deec2('0x19aa')](0x2,_0x4b54bd[_0x1deec2('0x2587')])[_0x1deec2('0x19c4')](',');}break;case _0x1deec2('0x3f5'):{var _0x2de48f=_0x1b7c8f['outbounddial']['appdata'][_0x1deec2('0x1a39')](',');_0x1b7c8f[_0x1deec2('0x1e7f')]['accesskeyid']=_0x2de48f[0x0],_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x15f9')]=_0x2de48f[0x1],_0x1b7c8f['outbounddial'][_0x1deec2('0xa9a')]=_0x2de48f[0x2],_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x18ee')]=_0x2de48f[0x3],_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x273')]=_0x2de48f[_0x1deec2('0x19aa')](0x4,_0x2de48f[_0x1deec2('0x2587')])[_0x1deec2('0x19c4')](',');}break;case _0x1deec2('0x1b05'):{var _0x4ae218=_0x1b7c8f['outbounddial'][_0x1deec2('0x124b')][_0x1deec2('0x1a39')](',');_0x1b7c8f['outbounddial']['times']=isNaN(_0x4ae218[0x0])?_0x4ae218[0x0]:parseInt(_0x4ae218[0x0],0xa),_0x1b7c8f['outbounddial']['text']=_0x4ae218[_0x1deec2('0x19aa')](0x1,_0x4ae218[_0x1deec2('0x2587')])[_0x1deec2('0x19c4')](',');}break;case _0x1deec2('0x1402'):_0x1b7c8f['outbounddial'][_0x1deec2('0xb37')]=_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x124b')];break;case _0x1deec2('0x282c'):_0x1b7c8f['outbounddial'][_0x1deec2('0x25d6')]=_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x124b')][_0x1deec2('0x1a39')]('=')[0x0],_0x1b7c8f['outbounddial'][_0x1deec2('0x12f4')]=_0x1b7c8f[_0x1deec2('0x1e7f')]['appdata'][_0x1deec2('0x1a39')]('=')[0x1];break;case'agi':_0x1b7c8f['outbounddial'][_0x1deec2('0x24b9')]=_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x124b')];break;default:{var _0xb9f1de=_0x1b7c8f['outbounddial'][_0x1deec2('0x124b')]['split'](',');_0x1b7c8f['outbounddial']['trunk']=_0xb9f1de[0x0][_0x1deec2('0x1a39')]('/')[0x1],_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x1a46')]=_0xb9f1de[0x0][_0x1deec2('0x1a39')]('/')[0x2],_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x23c0')]=_0x51538b()[_0x1deec2('0x116b')](_0xb9f1de[0x1])?_0xb9f1de[0x1]:isNaN(_0xb9f1de[0x1])?_0xb9f1de[0x1]:parseInt(_0xb9f1de[0x1],0xa),_0x1b7c8f[_0x1deec2('0x1e7f')]['options']=_0x51538b()[_0x1deec2('0x116b')](_0xb9f1de[0x2])?_0xb9f1de[0x2]:isNaN(_0xb9f1de[0x2])?_0xb9f1de[0x2]:parseInt(_0xb9f1de[0x2],0xa),_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x2242')]=_0x51538b()[_0x1deec2('0x116b')](_0xb9f1de[0x3])?_0xb9f1de[0x3]:isNaN(_0xb9f1de[0x3])?_0xb9f1de[0x3]:parseInt(_0xb9f1de[0x3],0xa);}break;}else{}_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x6c8')]&&_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x6c8')][_0x1deec2('0xcf6')]()==='outbound'&&_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0xe6d')]['toLowerCase']()==='outbounddial'&&(_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x1b8f')]=_0x1b7c8f['outbounddial'][_0x1deec2('0x1a46')]?_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x1a46')][_0x1deec2('0x1a39')]('$')[0x0]:undefined,_0x1b7c8f['outbounddial'][_0x1deec2('0xeed')]=_0x1b7c8f[_0x1deec2('0x1e7f')][_0x1deec2('0x514')]?_0x1deec2('0x23d8')+_0x1b7c8f[_0x1deec2('0x1e7f')]['callerID']:undefined);_0x1b7c8f[_0x1deec2('0x13c')]=_0x127c8d,_0x1b7c8f[_0x1deec2('0x2023')]=_0x34b04d,_0x546b20['hasRole'](_0x1deec2('0x178b'))?_0x1e5fe3['trunk'][_0x1deec2('0x2122')]({'fields':'id,name','sort':_0x1deec2('0x25d6'),'nolimit':_0x1deec2('0x1c5c')})[_0x1deec2('0x1dc2')][_0x1deec2('0xaa5')](function(_0x461ebf){var _0x50b1d5=_0x1deec2;_0x1b7c8f[_0x50b1d5('0x1bc2')]=_0x461ebf[_0x50b1d5('0x580')]||[];})[_0x1deec2('0x253d')](function(_0x18213c){var _0x51a539=_0x1deec2;_0x4db691['error']({'title':_0x18213c['status']?_0x51a539('0x16c2')+_0x18213c[_0x51a539('0x2fa')]+_0x51a539('0x169e')+_0x18213c['statusText']:_0x51a539('0x298'),'msg':_0x18213c[_0x51a539('0x10fd')]?JSON[_0x51a539('0xa48')](_0x18213c[_0x51a539('0x10fd')]):_0x18213c[_0x51a539('0x684')]()});}):_0x1e5fe3[_0x1deec2('0x1651')][_0x1deec2('0x2122')]({'fields':_0x1deec2('0x17fe'),'sort':_0x1deec2('0x25d6'),'nolimit':_0x1deec2('0x1c5c')})[_0x1deec2('0x1dc2')]['then'](function(_0x154cd1){var _0x4530c9=_0x1deec2;_0x1b7c8f[_0x4530c9('0x1bc2')]=_0x154cd1[_0x4530c9('0x580')]||[];})[_0x1deec2('0xaa5')](function(){var _0x3b40ef=_0x1deec2;return _0x1e5fe3[_0x3b40ef('0x1a50')]['get']({'userProfileId':_0x1b7c8f[_0x3b40ef('0x7fc')][_0x3b40ef('0x2168')],'sectionId':0x3f3})[_0x3b40ef('0x1dc2')];})['then'](function(_0x571e69){var _0x240890=_0x1deec2,_0x1589b7=_0x571e69&&_0x571e69[_0x240890('0x580')]?_0x571e69[_0x240890('0x580')][0x0]:null;if(!_0x1589b7){var _0x1225b7=[],_0x221cc5=null;_0x1b7c8f[_0x240890('0x1e7f')]&&(_0x221cc5=_0x51538b()[_0x240890('0xe9e')](_0x1b7c8f[_0x240890('0x1bc2')],{'name':_0x1b7c8f[_0x240890('0x1e7f')]['trunk']}));for(var _0x4f0182=0x0;_0x4f0182<_0x1b7c8f[_0x240890('0x1bc2')][_0x240890('0x2587')];_0x4f0182++){_0x221cc5&&_0x1b7c8f[_0x240890('0x1bc2')][_0x4f0182]['id']===_0x221cc5['id']&&(_0x1b7c8f[_0x240890('0x1bc2')][_0x4f0182][_0x240890('0x12eb')]=![],_0x1225b7[_0x240890('0x1599')](_0x1b7c8f[_0x240890('0x1bc2')][_0x4f0182]));}_0x1b7c8f[_0x240890('0x1bc2')]=_0x1225b7;}else{if(!_0x1589b7[_0x240890('0x26cc')])return _0x1e5fe3[_0x240890('0x249a')][_0x240890('0x2122')]({'sectionId':_0x1589b7['id']})['$promise'][_0x240890('0xaa5')](function(_0x4c5b0b){var _0x33d4ec=_0x240890,_0x12ae78=_0x51538b()['map'](_0x4c5b0b[_0x33d4ec('0x580')],function(_0x3768a0){var _0x256c29=_0x33d4ec;return _0x51538b()[_0x256c29('0xe9e')](_0x1b7c8f[_0x256c29('0x1bc2')],{'id':_0x3768a0[_0x256c29('0xbcd')]});}),_0x4ee059=null;_0x1b7c8f['outbounddial']&&(_0x4ee059=_0x51538b()[_0x33d4ec('0xe9e')](_0x1b7c8f[_0x33d4ec('0x1bc2')],{'name':_0x1b7c8f[_0x33d4ec('0x1e7f')]['trunk']}));if(_0x4ee059&&!_0x51538b()['some'](_0x12ae78,['id',_0x4ee059['id']])){var _0x2f2f6a=_0x51538b()[_0x33d4ec('0xe9e')](_0x1b7c8f[_0x33d4ec('0x1bc2')],{'id':_0x4ee059['id']});_0x2f2f6a[_0x33d4ec('0x12eb')]=![],_0x12ae78[_0x33d4ec('0x1599')](_0x2f2f6a);}_0x1b7c8f[_0x33d4ec('0x1bc2')]=_0x12ae78;});}})[_0x1deec2('0x253d')](function(_0x3dba3f){var _0x56663a=_0x1deec2;_0x4db691[_0x56663a('0x187f')]({'title':_0x3dba3f[_0x56663a('0x2fa')]?_0x56663a('0x16c2')+_0x3dba3f[_0x56663a('0x2fa')]+_0x56663a('0x169e')+_0x3dba3f[_0x56663a('0x24df')]:'SYSTEM:GETtrunks','msg':_0x3dba3f['data']?JSON['stringify'](_0x3dba3f[_0x56663a('0x10fd')]):_0x3dba3f['toString']()});}),_0x546b20[_0x1deec2('0x26e8')]('admin')?_0x1e5fe3['tag'][_0x1deec2('0x2122')]({'fields':_0x1deec2('0x17fe'),'sort':_0x1deec2('0x25d6'),'nolimit':_0x1deec2('0x1c5c')})[_0x1deec2('0x1dc2')]['then'](function(_0x436fa9){_0x1b7c8f['tags']=_0x436fa9['rows']||[];})['catch'](function(_0x20f673){var _0x2038a1=_0x1deec2;_0x4db691[_0x2038a1('0x187f')]({'title':_0x20f673[_0x2038a1('0x2fa')]?_0x2038a1('0x16c2')+_0x20f673[_0x2038a1('0x2fa')]+_0x2038a1('0x169e')+_0x20f673[_0x2038a1('0x24df')]:'SYSTEM:GET_TAGS','msg':_0x20f673[_0x2038a1('0x10fd')]?JSON[_0x2038a1('0xa48')](_0x20f673[_0x2038a1('0x10fd')]):_0x20f673['toString']()});}):_0x1e5fe3[_0x1deec2('0x38f')]['get']({'fields':_0x1deec2('0x17fe'),'sort':_0x1deec2('0x25d6'),'nolimit':_0x1deec2('0x1c5c')})[_0x1deec2('0x1dc2')]['then'](function(_0x185b45){var _0x1b5636=_0x1deec2;_0x1b7c8f[_0x1b5636('0x523')]=_0x185b45[_0x1b5636('0x580')]||[];})[_0x1deec2('0xaa5')](function(){var _0x936297=_0x1deec2;return _0x1e5fe3[_0x936297('0x1a50')]['get']({'userProfileId':_0x1b7c8f['currentUser'][_0x936297('0x2168')],'sectionId':0x3f0})['$promise'];})[_0x1deec2('0xaa5')](function(_0x405bbc){var _0x8d0e56=_0x1deec2,_0x21efdb=_0x405bbc&&_0x405bbc['rows']?_0x405bbc['rows'][0x0]:null;if(!_0x21efdb){var _0x2dd996=[],_0x351d00=null;_0x1b7c8f[_0x8d0e56('0x1e7f')]&&(_0x351d00=_0x51538b()[_0x8d0e56('0xe9e')](_0x1b7c8f[_0x8d0e56('0x523')],{'name':_0x1b7c8f[_0x8d0e56('0x1e7f')][_0x8d0e56('0x38f')]}));for(var _0x135e95=0x0;_0x135e95<_0x1b7c8f[_0x8d0e56('0x523')][_0x8d0e56('0x2587')];_0x135e95++){_0x351d00&&_0x1b7c8f[_0x8d0e56('0x523')][_0x135e95]['id']===_0x351d00['id']&&(_0x1b7c8f[_0x8d0e56('0x523')][_0x135e95][_0x8d0e56('0x12eb')]=![],_0x2dd996[_0x8d0e56('0x1599')](_0x1b7c8f[_0x8d0e56('0x523')][_0x135e95]));}_0x1b7c8f[_0x8d0e56('0x523')]=_0x2dd996;}else{if(!_0x21efdb[_0x8d0e56('0x26cc')])return _0x1e5fe3['userProfileResource']['get']({'sectionId':_0x21efdb['id']})[_0x8d0e56('0x1dc2')][_0x8d0e56('0xaa5')](function(_0x4b499c){var _0x416419=_0x8d0e56,_0x167ee7=_0x51538b()[_0x416419('0x1246')](_0x4b499c[_0x416419('0x580')],function(_0x2941c1){var _0x2054f3=_0x416419;return _0x51538b()['find'](_0x1b7c8f[_0x2054f3('0x523')],{'id':_0x2941c1[_0x2054f3('0xbcd')]});}),_0x1e7745=null;_0x1b7c8f[_0x416419('0x1e7f')]&&(_0x1e7745=_0x51538b()['find'](_0x1b7c8f['tags'],{'name':_0x1b7c8f['outbounddial'][_0x416419('0x38f')]}));if(_0x1e7745&&!_0x51538b()['some'](_0x167ee7,['id',_0x1e7745['id']])){var _0x363607=_0x51538b()[_0x416419('0xe9e')](_0x1b7c8f[_0x416419('0x523')],{'id':_0x1e7745['id']});_0x363607[_0x416419('0x12eb')]=![],_0x167ee7[_0x416419('0x1599')](_0x363607);}_0x1b7c8f[_0x416419('0x523')]=_0x167ee7;});}})[_0x1deec2('0x253d')](function(_0x4410bf){var _0x35e787=_0x1deec2;_0x4db691[_0x35e787('0x187f')]({'title':_0x4410bf[_0x35e787('0x2fa')]?_0x35e787('0x16c2')+_0x4410bf['status']+_0x35e787('0x169e')+_0x4410bf['statusText']:'SYSTEM:GETtags','msg':_0x4410bf['data']?JSON[_0x35e787('0xa48')](_0x4410bf[_0x35e787('0x10fd')]):_0x4410bf[_0x35e787('0x684')]()});});function _0x127c8d(){var _0x449c92=_0x1deec2;_0x1b7c8f['errors']=[];var _0x379551=[];_0x1b7c8f[_0x449c92('0x1e7f')]['type']&&_0x1b7c8f[_0x449c92('0x1e7f')]['type'][_0x449c92('0xcf6')]()===_0x449c92('0x19d1')&&_0x1b7c8f['outbounddial'][_0x449c92('0xe6d')]===_0x449c92('0x8da')&&(_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x1a46')]=_0x32b9d5[_0x449c92('0x888')]?(_0x1b7c8f['outbounddial'][_0x449c92('0x1b8f')]||'')+_0x449c92('0x117e')+_0x32b9d5[_0x449c92('0x888')]+'}':(_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x1b8f')]||'')+_0x449c92('0x1f87'),_0x32b9d5[_0x449c92('0x1e0f')]!==_0x449c92('0x117')?_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x1b36')][_0x449c92('0x1f38')](_0x449c92('0x266a'))<0x0&&(_0x1b7c8f[_0x449c92('0x1e7f')]['options']+='U(xcally-mixmonitor-context)'):_0x1b7c8f[_0x449c92('0x1e7f')]['options']=_0x1b7c8f[_0x449c92('0x1e7f')]['options'][_0x449c92('0x170d')](_0x449c92('0x266a'),''));if(_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0xe6d')]&&_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0xe6d')]===_0x449c92('0x113b')){}else switch((_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x9eb')]||_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0xe6d')])[_0x449c92('0xcf6')]()){case _0x449c92('0x282c'):_0x1b7c8f[_0x449c92('0x1e7f')]['appdata']=_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x25d6')]+'='+_0x1b7c8f['outbounddial'][_0x449c92('0x12f4')];break;case'custom':break;default:_0x379551[0x0]=[_0x449c92('0x1a48'),_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x1651')],_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x1a46')]][_0x449c92('0x19c4')]('/'),_0x379551[0x1]=_0x1b7c8f[_0x449c92('0x1e7f')]['timeout'],_0x379551[0x2]=_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x1b36')],_0x379551[0x3]=_0x1b7c8f['outbounddial'][_0x449c92('0x2242')],_0x1b7c8f[_0x449c92('0x1e7f')][_0x449c92('0x124b')]=_0x379551['join'](',');}_0x34b04d(_0x1b7c8f[_0x449c92('0x1e7f')]);}function _0x34b04d(_0x1b7b92){var _0x526ba8=_0x1deec2;_0x2fd21a[_0x526ba8('0x1120')](_0x1b7b92);}}const _0x3fb280=_0x2384d7;_0x6ed29c[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x14a4'),_0x1a8446('0x1a50')];function _0x6ed29c(_0x1361b2,_0x2c6cb9,_0x13c925,_0x57bd2d,_0x3fc241,_0x7053e,_0xc88215,_0x344ba5,_0x2d2919,_0x4d10f8,_0x51e580,_0x580d01){var _0x496bb9=_0x1a8446,_0x492a10=this;_0x492a10[_0x496bb9('0x7fc')]=_0x4d10f8[_0x496bb9('0xacc')](),_0x492a10[_0x496bb9('0x1202')]=_0x7053e,_0x492a10[_0x496bb9('0x143f')]=_0xc88215,_0x492a10[_0x496bb9('0x1d53')]=_0x492a10[_0x496bb9('0x143f')][_0x496bb9('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x492a10[_0x496bb9('0x18cc')]=_0x2c6cb9[_0x496bb9('0x1cc2')]()+_0x496bb9('0x356')+_0x2c6cb9[_0x496bb9('0x160c')](),_0x492a10[_0x496bb9('0x14a4')]=_0x51e580||_0x1361b2[_0x496bb9('0x25cf')][_0x496bb9('0x14a4')]||{},_0x492a10[_0x496bb9('0x1a50')]=_0x580d01&&_0x580d01[_0x496bb9('0xd15')]==0x1?_0x580d01[_0x496bb9('0x580')][0x0]:null,_0x492a10['crudPermissions']=_0x4d10f8[_0x496bb9('0xffd')](_0x492a10[_0x496bb9('0x1a50')]?_0x492a10[_0x496bb9('0x1a50')][_0x496bb9('0xada')]:null),_0x492a10[_0x496bb9('0x9f0')]={},_0x492a10[_0x496bb9('0xe5c')]=_0x1361b2[_0x496bb9('0x25cf')][_0x496bb9('0x25c2')]||0x0,_0x492a10[_0x496bb9('0xc10')]=_0x2d2919[_0x496bb9('0x3a1')],_0x492a10[_0x496bb9('0xf71')]=_0x26ce7a,_0x492a10[_0x496bb9('0x1d4')]=_0x3bee05,_0x4d10f8[_0x496bb9('0x26e8')](_0x496bb9('0x178b'))?_0x344ba5[_0x496bb9('0x68c')][_0x496bb9('0x2122')]({'fields':_0x496bb9('0x17fe'),'sort':_0x496bb9('0x25d6'),'nolimit':_0x496bb9('0x1c5c')})[_0x496bb9('0x1dc2')][_0x496bb9('0xaa5')](function(_0x543505){var _0x3208e1=_0x496bb9;_0x492a10[_0x3208e1('0xdc5')]=_0x543505[_0x3208e1('0x580')]||[];})[_0x496bb9('0x253d')](function(_0xdcac37){var _0x47bf5d=_0x496bb9;_0x2d2919[_0x47bf5d('0x187f')]({'title':_0xdcac37[_0x47bf5d('0x2fa')]?'API:'+_0xdcac37['status']+_0x47bf5d('0x169e')+_0xdcac37[_0x47bf5d('0x24df')]:_0x47bf5d('0x1393'),'msg':_0xdcac37['data']?JSON[_0x47bf5d('0xa48')](_0xdcac37[_0x47bf5d('0x10fd')]):_0xdcac37['toString']()});}):_0x344ba5[_0x496bb9('0x68c')][_0x496bb9('0x2122')]({'fields':'id,name','sort':'name','nolimit':_0x496bb9('0x1c5c')})[_0x496bb9('0x1dc2')][_0x496bb9('0xaa5')](function(_0x38d2c2){var _0x510958=_0x496bb9;_0x492a10['contexts']=_0x38d2c2[_0x510958('0x580')]||[];})[_0x496bb9('0xaa5')](function(){var _0x3e7aca=_0x496bb9;return _0x344ba5['userProfileSection'][_0x3e7aca('0x2122')]({'userProfileId':_0x492a10[_0x3e7aca('0x7fc')][_0x3e7aca('0x2168')],'sectionId':0x195})[_0x3e7aca('0x1dc2')];})['then'](function(_0x2748d3){var _0x36885d=_0x496bb9,_0x49d197=_0x2748d3&&_0x2748d3[_0x36885d('0x580')]?_0x2748d3[_0x36885d('0x580')][0x0]:null;if(!_0x49d197)return _0x344ba5[_0x36885d('0x68c')][_0x36885d('0x2122')]({'fields':'id,name','sort':_0x36885d('0x25d6'),'nolimit':_0x36885d('0x1c5c'),'defaultEntry':0x1})[_0x36885d('0x1dc2')][_0x36885d('0xaa5')](function(_0x38bcd1){var _0x1bcd3e=_0x36885d;_0x492a10[_0x1bcd3e('0xdc5')]=_0x38bcd1['rows']||[];});else{if(!_0x49d197[_0x36885d('0x26cc')])return _0x344ba5[_0x36885d('0x249a')][_0x36885d('0x2122')]({'sectionId':_0x49d197['id']})[_0x36885d('0x1dc2')][_0x36885d('0xaa5')](function(_0x2e965e){var _0x57367c=_0x36885d,_0x2b7f63=_0x51538b()['map'](_0x2e965e[_0x57367c('0x580')],function(_0x5a6c9d){var _0x2a606c=_0x57367c;return _0x51538b()[_0x2a606c('0xe9e')](_0x492a10['contexts'],{'id':_0x5a6c9d[_0x2a606c('0xbcd')]});}),_0x9b4ec7=null;_0x492a10[_0x57367c('0x14a4')]&&(_0x9b4ec7=_0x51538b()[_0x57367c('0xe9e')](_0x492a10[_0x57367c('0xdc5')],{'name':_0x492a10['outboundroute'][_0x57367c('0x19cd')]}));if(_0x9b4ec7&&!_0x51538b()[_0x57367c('0x2c2')](_0x2b7f63,['id',_0x9b4ec7['id']])){var _0x2411f4=_0x51538b()[_0x57367c('0xe9e')](_0x492a10['contexts'],{'id':_0x9b4ec7['id']});_0x2411f4[_0x57367c('0x12eb')]=![],_0x2b7f63[_0x57367c('0x1599')](_0x2411f4);}_0x492a10[_0x57367c('0xdc5')]=_0x2b7f63;});}})[_0x496bb9('0x253d')](function(_0x246f48){var _0x338009=_0x496bb9;_0x2d2919[_0x338009('0x187f')]({'title':_0x246f48[_0x338009('0x2fa')]?_0x338009('0x16c2')+_0x246f48[_0x338009('0x2fa')]+'\x20-\x20'+_0x246f48[_0x338009('0x24df')]:_0x338009('0x2f7'),'msg':_0x246f48[_0x338009('0x10fd')]?JSON[_0x338009('0xa48')](_0x246f48['data']):_0x246f48[_0x338009('0x684')]()});});function _0x26ce7a(){var _0x5415f5=_0x496bb9;_0x1361b2['go'](_0x5415f5('0x907'),{},{'reload':_0x5415f5('0x907')});}function _0x3bee05(){var _0xf97399=_0x496bb9;_0x344ba5[_0xf97399('0x1361')][_0xf97399('0x264e')]({'id':_0x492a10['outboundroute']['id']},_0x492a10[_0xf97399('0x14a4')])[_0xf97399('0x1dc2')][_0xf97399('0xaa5')](function(){var _0x1d0263=_0xf97399;_0x2d2919[_0x1d0263('0xe10')]({'title':'OutboundRoute\x20updated!','msg':_0x492a10[_0x1d0263('0x14a4')][_0x1d0263('0x25d6')]?_0x492a10[_0x1d0263('0x14a4')][_0x1d0263('0x25d6')]+_0x1d0263('0x1734'):''});})[_0xf97399('0x253d')](function(_0x293ed0){var _0x40b349=_0xf97399;_0x2d2919['error']({'title':_0x293ed0['status']?_0x40b349('0x16c2')+_0x293ed0[_0x40b349('0x2fa')]+_0x40b349('0x169e')+_0x293ed0[_0x40b349('0x24df')]:_0x40b349('0x1f1a'),'msg':_0x293ed0[_0x40b349('0x10fd')]?JSON[_0x40b349('0xa48')](_0x293ed0['data']):_0x293ed0[_0x40b349('0x684')]()});});}}const _0x449dd8=_0x6ed29c,_0x5a570f=_0x4fb511['p']+_0x1a8446('0x5e7');_0x5e8376[_0x1a8446('0x1e33')]=['$scope','$window',_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),'$translate',_0x1a8446('0x4fa'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x5e8376(_0x43e229,_0x4d5b3f,_0x5a162b,_0xd42fd9,_0x3960f6,_0x334959,_0x45b99a,_0x2bb850,_0x3d5dde,_0x295927,_0x1cd0f0,_0x2b4bf7,_0x33d312,_0x142838,_0x3f5d5d,_0x3edef7,_0x1a312e){var _0x2e9317=_0x1a8446,_0x3c61d6=this;_0x3c61d6[_0x2e9317('0x1202')]=_0x3edef7,_0x3c61d6[_0x2e9317('0x143f')]=_0x1a312e,_0x3c61d6[_0x2e9317('0x7fc')]=_0x3f5d5d[_0x2e9317('0xacc')](),_0x3c61d6[_0x2e9317('0x4fa')]=_0x3d5dde||{'count':0x0,'rows':[]},_0x3c61d6['userProfile']=_0x295927,_0x3c61d6[_0x2e9317('0x1a50')]=_0x1cd0f0&&_0x1cd0f0[_0x2e9317('0xd15')]==0x1?_0x1cd0f0[_0x2e9317('0x580')][0x0]:null,_0x3c61d6['crudPermissions']=_0x3f5d5d['parseCrudPermissions'](_0x3c61d6[_0x2e9317('0x1a50')]?_0x3c61d6[_0x2e9317('0x1a50')][_0x2e9317('0xada')]:null),_0x3c61d6['table']=_0x2e9317('0x4fa'),_0x3c61d6[_0x2e9317('0x164')]='',_0x3c61d6['listOrderAsc']=null,_0x3c61d6['selectedOutboundRoutes']=[],_0x3c61d6[_0x2e9317('0x582')]={'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','type':'outbound','sort':_0x2e9317('0xd82'),'VoiceExtensionId':_0x2e9317('0x1ed9'),'limit':0xa,'page':0x1},_0x3c61d6[_0x2e9317('0x105a')]=_0x51538b()[_0x2e9317('0x184a')]([{'option':_0x2e9317('0x117'),'value':_0x2e9317('0x1290')},{'option':_0x2e9317('0x2715'),'value':'\x27wav\x27'},{'option':_0x2e9317('0x1674'),'value':_0x2e9317('0x1057')},{'option':_0x2e9317('0x2172'),'value':'\x27gsm\x27'}],function(_0x8e793c){var _0x45dd44=_0x2e9317;return _0x51538b()['replace'](_0x8e793c[_0x45dd44('0x12f4')],new RegExp('\x27','g'),'');}),_0x3c61d6[_0x2e9317('0x1927')]=_0x474f90,_0x3c61d6[_0x2e9317('0x271')]=_0x4afac3,_0x3c61d6[_0x2e9317('0xe10')]=_0x410f97,_0x3c61d6[_0x2e9317('0x1dda')]=_0x2d997b,_0x3c61d6[_0x2e9317('0x21e9')]=_0x8c5ffe,_0x3c61d6[_0x2e9317('0x14e3')]=_0x5db559,_0x3c61d6[_0x2e9317('0x1c96')]=_0x2a9ef0,_0x3c61d6['deleteSelectedOutboundRoutes']=_0x1e7ee5,_0x3c61d6[_0x2e9317('0x1fbc')]=_0x54f0af,_0x3c61d6[_0x2e9317('0x100c')]=_0x2d1e1a,_0x3f5d5d[_0x2e9317('0x26e8')](_0x2e9317('0x178b'))?_0x2b4bf7['voiceContext'][_0x2e9317('0x2122')]({'fields':_0x2e9317('0x17fe'),'sort':_0x2e9317('0x25d6'),'nolimit':'true'})[_0x2e9317('0x1dc2')][_0x2e9317('0xaa5')](function(_0x5eb66a){var _0x5cd583=_0x2e9317;_0x3c61d6['contexts']=_0x5eb66a[_0x5cd583('0x580')]||[];})['catch'](function(_0x5a2609){var _0x4c56d0=_0x2e9317;_0x142838[_0x4c56d0('0x187f')]({'title':_0x5a2609['status']?_0x4c56d0('0x16c2')+_0x5a2609[_0x4c56d0('0x2fa')]+_0x4c56d0('0x169e')+_0x5a2609[_0x4c56d0('0x24df')]:_0x4c56d0('0x1393'),'msg':_0x5a2609[_0x4c56d0('0x10fd')]?JSON['stringify'](_0x5a2609[_0x4c56d0('0x10fd')]):_0x5a2609[_0x4c56d0('0x684')]()});}):_0x2b4bf7[_0x2e9317('0x68c')]['get']({'fields':_0x2e9317('0x17fe'),'sort':_0x2e9317('0x25d6'),'nolimit':'true'})[_0x2e9317('0x1dc2')][_0x2e9317('0xaa5')](function(_0x43850c){var _0x536abe=_0x2e9317;_0x3c61d6[_0x536abe('0xdc5')]=_0x43850c[_0x536abe('0x580')]||[];})[_0x2e9317('0xaa5')](function(){var _0x6b4445=_0x2e9317;return _0x2b4bf7[_0x6b4445('0x1a50')]['get']({'userProfileId':_0x3c61d6[_0x6b4445('0x7fc')][_0x6b4445('0x2168')],'sectionId':0x195})[_0x6b4445('0x1dc2')];})[_0x2e9317('0xaa5')](function(_0x4b3185){var _0x19dd47=_0x2e9317,_0xd73c19=_0x4b3185&&_0x4b3185['rows']?_0x4b3185[_0x19dd47('0x580')][0x0]:null;if(!_0xd73c19)return _0x2b4bf7['voiceContext'][_0x19dd47('0x2122')]({'fields':'id,name','sort':_0x19dd47('0x25d6'),'nolimit':_0x19dd47('0x1c5c'),'defaultEntry':0x1})[_0x19dd47('0x1dc2')][_0x19dd47('0xaa5')](function(_0x41fd0b){var _0x5c178e=_0x19dd47;_0x3c61d6[_0x5c178e('0xdc5')]=_0x41fd0b[_0x5c178e('0x580')]||[];});else{if(!_0xd73c19[_0x19dd47('0x26cc')])return _0x2b4bf7[_0x19dd47('0x249a')]['get']({'sectionId':_0xd73c19['id']})['$promise'][_0x19dd47('0xaa5')](function(_0x301e01){var _0x36ed70=_0x19dd47,_0x56509a=_0x51538b()[_0x36ed70('0x1246')](_0x301e01[_0x36ed70('0x580')],function(_0x291176){var _0x20a8d5=_0x36ed70;return _0x51538b()[_0x20a8d5('0xe9e')](_0x3c61d6['contexts'],{'id':_0x291176[_0x20a8d5('0xbcd')]});}),_0x11875b=null;_0x3c61d6[_0x36ed70('0x14a4')]&&(_0x11875b=_0x51538b()[_0x36ed70('0xe9e')](_0x3c61d6[_0x36ed70('0xdc5')],{'name':_0x3c61d6[_0x36ed70('0x14a4')][_0x36ed70('0x19cd')]}));if(_0x11875b&&!_0x51538b()[_0x36ed70('0x2c2')](_0x56509a,['id',_0x11875b['id']])){var _0x4288a5=_0x51538b()[_0x36ed70('0xe9e')](_0x3c61d6[_0x36ed70('0xdc5')],{'id':_0x11875b['id']});_0x4288a5[_0x36ed70('0x12eb')]=![],_0x56509a[_0x36ed70('0x1599')](_0x4288a5);}_0x3c61d6[_0x36ed70('0xdc5')]=_0x56509a;});}})[_0x2e9317('0x253d')](function(_0x382d23){var _0x18a8a6=_0x2e9317;_0x142838[_0x18a8a6('0x187f')]({'title':_0x382d23[_0x18a8a6('0x2fa')]?_0x18a8a6('0x16c2')+_0x382d23['status']+_0x18a8a6('0x169e')+_0x382d23[_0x18a8a6('0x24df')]:'SYSTEM:GETcontexts','msg':_0x382d23['data']?JSON[_0x18a8a6('0xa48')](_0x382d23[_0x18a8a6('0x10fd')]):_0x382d23[_0x18a8a6('0x684')]()});});function _0x474f90(_0x398823){var _0x7921a2=_0x2e9317;_0x5a162b['go'](_0x7921a2('0x2750'),{'id':_0x398823['id'],'outboundroute':_0x398823,'crudPermissions':_0x3c61d6[_0x7921a2('0xada')]});}function _0x4afac3(_0x166f1d,_0x1ac7a1){var _0x1d21f1=_0x2e9317,_0x481f32=_0x3960f6['confirm']()[_0x1d21f1('0x110a')](_0x1d21f1('0x88d')+_0x51538b()[_0x1d21f1('0x196a')](_0x1d21f1('0x14a4'))+'?')[_0x1d21f1('0x102e')](_0x1d21f1('0x389')+(_0x166f1d[_0x1d21f1('0x25d6')]||_0x1d21f1('0x14a4'))+_0x1d21f1('0x697')+'\x20will\x20be\x20deleted.')[_0x1d21f1('0x5b5')]('delete\x20outboundroute')[_0x1d21f1('0x116d')](_0x1ac7a1)['ok']('OK')[_0x1d21f1('0x2030')](_0x1d21f1('0x2410'));_0x3960f6[_0x1d21f1('0x1e6d')](_0x481f32)[_0x1d21f1('0xaa5')](function(){_0x5db559(_0x166f1d);},function(){var _0x792977=_0x1d21f1;console[_0x792977('0x18d5')](_0x792977('0x2410'));});}var _0x34e9a8=!![],_0x549ebd=0x1;_0x43e229[_0x2e9317('0x1ccf')](_0x2e9317('0x1788'),function(_0xefee9f,_0x4361ea){var _0x2499a0=_0x2e9317;_0x34e9a8?_0x45b99a(function(){_0x34e9a8=![];}):(!_0x4361ea&&(_0x549ebd=_0x3c61d6[_0x2499a0('0x582')][_0x2499a0('0x41')]),_0xefee9f!==_0x4361ea&&(_0x3c61d6['query'][_0x2499a0('0x41')]=0x1),!_0xefee9f&&(_0x3c61d6[_0x2499a0('0x582')][_0x2499a0('0x41')]=_0x549ebd),_0x3c61d6['getOutboundRoutes']());});function _0x410f97(_0x181558){var _0x4a306b=_0x2e9317;_0x3c61d6[_0x4a306b('0x4fa')]=_0x181558||{'count':0x0,'rows':[]};}function _0x2d997b(){var _0x140867=_0x2e9317;_0x3c61d6['query'][_0x140867('0x8b1')]=(_0x3c61d6['query']['page']-0x1)*_0x3c61d6[_0x140867('0x582')][_0x140867('0xf4d')],_0x3f5d5d[_0x140867('0x26e8')](_0x140867('0x178b'))?_0x3c61d6[_0x140867('0x159a')]=_0x2b4bf7[_0x140867('0x1361')][_0x140867('0x2122')](_0x3c61d6['query'],_0x410f97)[_0x140867('0x1dc2')]:(_0x3c61d6['query']['id']=_0x3c61d6['userProfile']['id'],_0x3c61d6[_0x140867('0x582')]['section']=_0x140867('0x15e7'),_0x3c61d6[_0x140867('0x159a')]=_0x2b4bf7[_0x140867('0x1e97')]['getResources'](_0x3c61d6[_0x140867('0x582')],_0x410f97)[_0x140867('0x1dc2')]);}function _0x8c5ffe(_0x2b49c2,_0x17c55d){var _0x257ac2=_0x2e9317;_0x3960f6['show']({'controller':_0x257ac2('0x1465'),'controllerAs':'vm','templateUrl':_0x5a570f,'parent':angular[_0x257ac2('0x1aa8')](_0x334959[_0x257ac2('0x54c')]),'targetEvent':_0x2b49c2,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x17c55d,'outboundroutes':_0x3c61d6[_0x257ac2('0x4fa')][_0x257ac2('0x580')],'license':_0x3c61d6[_0x257ac2('0x1202')],'setting':_0x3c61d6[_0x257ac2('0x143f')],'crudPermissions':_0x3c61d6[_0x257ac2('0xada')]}});}function _0x5db559(_0x17729e){var _0x2b0e54=_0x2e9317;_0x2b4bf7[_0x2b0e54('0x2123')][_0x2b0e54('0x2122')]({'VoiceExtensionId':_0x17729e['id']})[_0x2b0e54('0x1dc2')][_0x2b0e54('0xaa5')](function(_0x23c19e){var _0x59ef52=_0x2b0e54;if(_0x23c19e&&_0x23c19e[_0x59ef52('0x580')]&&_0x23c19e[_0x59ef52('0x580')][_0x59ef52('0x2587')]>0x0)return _0x142838[_0x59ef52('0x187f')]({'title':_0x59ef52('0x1a60'),'msg':'You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix'});else _0x2b4bf7['voiceExtension']['delete']({'id':_0x17729e['id']})['$promise'][_0x59ef52('0xaa5')](function(){var _0x16b099=_0x59ef52;_0x51538b()[_0x16b099('0xf6d')](_0x3c61d6['outboundroutes'][_0x16b099('0x580')],{'id':_0x17729e['id']}),_0x3c61d6[_0x16b099('0x4fa')][_0x16b099('0xd15')]-=0x1,!_0x3c61d6[_0x16b099('0x4fa')][_0x16b099('0x580')]['length']&&_0x3c61d6[_0x16b099('0x1dda')](),_0x142838['success']({'title':_0x51538b()[_0x16b099('0x196a')]('OutboundRoute')+'\x20deleted!','msg':_0x17729e[_0x16b099('0x25d6')]?_0x17729e[_0x16b099('0x25d6')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x57c8c0){var _0x3c3c47=_0x59ef52;if(_0x57c8c0['data']&&_0x57c8c0[_0x3c3c47('0x10fd')]['errors']&&_0x57c8c0[_0x3c3c47('0x10fd')][_0x3c3c47('0x4c6')][_0x3c3c47('0x2587')]){_0x3c61d6[_0x3c3c47('0x4c6')]=_0x57c8c0[_0x3c3c47('0x10fd')][_0x3c3c47('0x4c6')]||[{'message':_0x57c8c0['toString'](),'type':_0x3c3c47('0xd25')}];for(var _0x178150=0x0;_0x178150<_0x57c8c0[_0x3c3c47('0x10fd')][_0x3c3c47('0x4c6')][_0x3c3c47('0x2587')];_0x178150++){_0x142838[_0x3c3c47('0x187f')]({'title':_0x57c8c0['data'][_0x3c3c47('0x4c6')][_0x178150][_0x3c3c47('0x6c8')],'msg':_0x57c8c0[_0x3c3c47('0x10fd')][_0x3c3c47('0x4c6')][_0x178150][_0x3c3c47('0x1402')]});}}else _0x142838[_0x3c3c47('0x187f')]({'title':_0x57c8c0[_0x3c3c47('0x2fa')]?_0x3c3c47('0x16c2')+_0x57c8c0[_0x3c3c47('0x2fa')]+'\x20-\x20'+_0x57c8c0[_0x3c3c47('0x24df')]:_0x3c3c47('0xd25'),'msg':_0x57c8c0['data']?JSON['stringify'](_0x57c8c0[_0x3c3c47('0x10fd')]['message']):_0x57c8c0['message']||_0x57c8c0[_0x3c3c47('0x684')]()});});});}function _0x2a9ef0(){var _0x15b4f1=_0x2e9317,_0x27cfe1=angular[_0x15b4f1('0x20a')](_0x3c61d6[_0x15b4f1('0xeae')]);return _0x3c61d6['selectedOutboundRoutes']=[],_0x27cfe1;}function _0x1e7ee5(_0x365ca9){var _0x38686b=_0x2e9317,_0x8490ef=_0x3960f6[_0x38686b('0x281e')]()[_0x38686b('0x110a')](_0x38686b('0x9ad'))['htmlContent'](_0x38686b('0x389')+_0x3c61d6[_0x38686b('0xeae')][_0x38686b('0x2587')]+_0x38686b('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20OutboundRoutes')[_0x38686b('0x116d')](_0x365ca9)['ok']('OK')[_0x38686b('0x2030')]('CANCEL');_0x3960f6[_0x38686b('0x1e6d')](_0x8490ef)[_0x38686b('0xaa5')](function(){var _0x28e4bf=_0x38686b;_0x3c61d6[_0x28e4bf('0xeae')][_0x28e4bf('0x15b5')](function(_0x37e67d){_0x5db559(_0x37e67d);}),_0x3c61d6[_0x28e4bf('0xeae')]=[];});}function _0x54f0af(){var _0x4e080c=_0x2e9317;_0x3c61d6[_0x4e080c('0xeae')]=[];}function _0x2d1e1a(){var _0x1fd18c=_0x2e9317;_0x3c61d6[_0x1fd18c('0xeae')]=_0x3c61d6[_0x1fd18c('0x4fa')][_0x1fd18c('0x580')];}}const _0x41212e=_0x5e8376;_0x6cbc0b[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'voicemails','voicemail',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),'crudPermissions'];function _0x6cbc0b(_0x500e7d,_0x1c6829,_0x22b3ae,_0x239565,_0x918db2,_0x533f58,_0x1faf76,_0x39b2d7,_0x2144da,_0x2baada,_0xa9f099,_0x3f2751,_0x18c7ff,_0x137a4b){var _0x3a366b=_0x1a8446,_0x1ee3b9=this;_0x1ee3b9[_0x3a366b('0x7fc')]=_0xa9f099['getCurrentUser'](),_0x1ee3b9[_0x3a366b('0x4c6')]=[],_0x1ee3b9[_0x3a366b('0x143f')]=_0x18c7ff,_0x1ee3b9['license']=_0x3f2751,_0x1ee3b9[_0x3a366b('0xada')]=_0x137a4b,_0x1ee3b9[_0x3a366b('0x9f0')]={},_0x1ee3b9[_0x3a366b('0x1d53')]=_0x1ee3b9[_0x3a366b('0x143f')]&&_0x1ee3b9[_0x3a366b('0x143f')][_0x3a366b('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ee3b9[_0x3a366b('0x110a')]='VOICE.EDIT_VOICEMAIL',_0x1ee3b9[_0x3a366b('0x1ffe')]=angular[_0x3a366b('0x20a')](_0x2144da),_0x1ee3b9[_0x3a366b('0x1242')]=_0x39b2d7,_0x1ee3b9[_0x3a366b('0x184')]=![];!_0x1ee3b9[_0x3a366b('0x1ffe')]&&(_0x1ee3b9[_0x3a366b('0x1ffe')]={'attach':'no'},_0x1ee3b9['title']=_0x3a366b('0x1ca'),_0x1ee3b9[_0x3a366b('0x184')]=!![]);_0x1ee3b9['addNewVoicemail']=_0x468f6b,_0x1ee3b9[_0x3a366b('0x166a')]=_0x2b5b3e,_0x1ee3b9['deleteVoicemail']=_0x54eecf,_0x1ee3b9['getDateFromString']=_0x23f7f9,_0x1ee3b9[_0x3a366b('0x2023')]=_0x3f0a87;function _0x468f6b(){var _0x3cb990=_0x3a366b;_0x1ee3b9[_0x3cb990('0x4c6')]=[],_0x2baada['voiceMail'][_0x3cb990('0x242b')](_0x1ee3b9[_0x3cb990('0x1ffe')])[_0x3cb990('0x1dc2')][_0x3cb990('0xaa5')](function(_0x461c1f){var _0x495f6c=_0x3cb990;_0x1ee3b9[_0x495f6c('0x1242')][_0x495f6c('0x6ee')](_0x461c1f[_0x495f6c('0x256a')]()),_0x1faf76[_0x495f6c('0xe10')]({'title':'Voicemail\x20properly\x20created','msg':_0x1ee3b9['voicemail'][_0x495f6c('0x25d6')]?_0x1ee3b9['voicemail'][_0x495f6c('0x25d6')]+_0x495f6c('0xdca'):''}),_0x3f0a87(_0x461c1f);})['catch'](function(_0x221011){var _0x5a959d=_0x3cb990;if(_0x221011[_0x5a959d('0x10fd')]&&_0x221011[_0x5a959d('0x10fd')]['errors']&&_0x221011[_0x5a959d('0x10fd')][_0x5a959d('0x4c6')]['length']){_0x1ee3b9['errors']=_0x221011[_0x5a959d('0x10fd')][_0x5a959d('0x4c6')]||[{'message':_0x221011[_0x5a959d('0x684')](),'type':_0x5a959d('0xf55')}];for(var _0x1895fa=0x0;_0x1895fa<_0x221011['data'][_0x5a959d('0x4c6')][_0x5a959d('0x2587')];_0x1895fa+=0x1){_0x1faf76[_0x5a959d('0x187f')]({'title':_0x221011[_0x5a959d('0x10fd')]['errors'][_0x1895fa][_0x5a959d('0x6c8')],'msg':_0x221011[_0x5a959d('0x10fd')][_0x5a959d('0x4c6')][_0x1895fa]['message']});}}else _0x1faf76[_0x5a959d('0x187f')]({'title':_0x221011[_0x5a959d('0x2fa')]?_0x5a959d('0x16c2')+_0x221011[_0x5a959d('0x2fa')]+_0x5a959d('0x169e')+_0x221011['statusText']:_0x5a959d('0xf55'),'msg':_0x221011[_0x5a959d('0x10fd')]?JSON[_0x5a959d('0xa48')](_0x221011[_0x5a959d('0x10fd')][_0x5a959d('0x1402')]):_0x221011[_0x5a959d('0x684')]()});});}function _0x2b5b3e(){var _0x118e2f=_0x3a366b;_0x1ee3b9[_0x118e2f('0x4c6')]=[],_0x2baada[_0x118e2f('0x2264')]['update']({'id':_0x1ee3b9[_0x118e2f('0x1ffe')]['id']},_0x1ee3b9[_0x118e2f('0x1ffe')])[_0x118e2f('0x1dc2')][_0x118e2f('0xaa5')](function(_0x23491d){var _0x19e546=_0x118e2f,_0x1ae302=_0x51538b()[_0x19e546('0xe9e')](_0x1ee3b9[_0x19e546('0x1242')],{'id':_0x23491d['id']});_0x1ae302&&_0x51538b()[_0x19e546('0x283c')](_0x1ae302,_0x51538b()[_0x19e546('0x104e')](_0x23491d[_0x19e546('0x256a')](),_0x51538b()[_0x19e546('0x9f2')](_0x1ae302))),_0x1faf76['success']({'title':_0x19e546('0xf19'),'msg':_0x1ee3b9[_0x19e546('0x1ffe')]['name']?_0x1ee3b9[_0x19e546('0x1ffe')]['name']+'\x20has\x20been\x20saved!':''}),_0x3f0a87(_0x23491d);})[_0x118e2f('0x253d')](function(_0x580681){var _0x2aabb5=_0x118e2f;if(_0x580681[_0x2aabb5('0x10fd')]&&_0x580681['data']['errors']&&_0x580681[_0x2aabb5('0x10fd')][_0x2aabb5('0x4c6')][_0x2aabb5('0x2587')]){_0x1ee3b9[_0x2aabb5('0x4c6')]=_0x580681[_0x2aabb5('0x10fd')][_0x2aabb5('0x4c6')]||[{'message':_0x580681[_0x2aabb5('0x684')](),'type':_0x2aabb5('0x70a')}];for(var _0x3861e7=0x0;_0x3861e7<_0x580681['data'][_0x2aabb5('0x4c6')][_0x2aabb5('0x2587')];_0x3861e7++){_0x1faf76[_0x2aabb5('0x187f')]({'title':_0x580681[_0x2aabb5('0x10fd')][_0x2aabb5('0x4c6')][_0x3861e7][_0x2aabb5('0x6c8')],'msg':_0x580681[_0x2aabb5('0x10fd')]['errors'][_0x3861e7][_0x2aabb5('0x1402')]});}}else _0x1faf76[_0x2aabb5('0x187f')]({'title':_0x580681[_0x2aabb5('0x2fa')]?_0x2aabb5('0x16c2')+_0x580681[_0x2aabb5('0x2fa')]+_0x2aabb5('0x169e')+_0x580681[_0x2aabb5('0x24df')]:_0x2aabb5('0x70a'),'msg':_0x580681['data']?JSON[_0x2aabb5('0xa48')](_0x580681[_0x2aabb5('0x10fd')][_0x2aabb5('0x1402')]):_0x580681[_0x2aabb5('0x684')]()});});}function _0x54eecf(_0x134cb0){var _0x51b29b=_0x3a366b;_0x1ee3b9[_0x51b29b('0x4c6')]=[];var _0x399d16=_0x239565['confirm']()[_0x51b29b('0x110a')](_0x51b29b('0x12a3'))[_0x51b29b('0x15af')](_0x51b29b('0xb47'))[_0x51b29b('0x5b5')]('Delete\x20Voicemail')['ok'](_0x51b29b('0x1e76'))[_0x51b29b('0x2030')]('Cancel')['targetEvent'](_0x134cb0);_0x239565[_0x51b29b('0x1e6d')](_0x399d16)[_0x51b29b('0xaa5')](function(){var _0x53c5ef=_0x51b29b;_0x2baada[_0x53c5ef('0x2264')][_0x53c5ef('0x926')]({'id':_0x1ee3b9[_0x53c5ef('0x1ffe')]['id']})[_0x53c5ef('0x1dc2')][_0x53c5ef('0xaa5')](function(){var _0x32d3fd=_0x53c5ef;_0x51538b()[_0x32d3fd('0xf6d')](_0x1ee3b9[_0x32d3fd('0x1242')],{'id':_0x1ee3b9[_0x32d3fd('0x1ffe')]['id']}),_0x1faf76['success']({'title':_0x32d3fd('0x1352'),'msg':(_0x1ee3b9[_0x32d3fd('0x1ffe')][_0x32d3fd('0x25d6')]||_0x32d3fd('0x1ffe'))+_0x32d3fd('0xcd9')}),_0x3f0a87(_0x1ee3b9[_0x32d3fd('0x1ffe')]);})['catch'](function(_0x99b0){var _0x37e859=_0x53c5ef;if(_0x99b0[_0x37e859('0x10fd')]&&_0x99b0[_0x37e859('0x10fd')][_0x37e859('0x4c6')]&&_0x99b0[_0x37e859('0x10fd')][_0x37e859('0x4c6')][_0x37e859('0x2587')]){_0x1ee3b9[_0x37e859('0x4c6')]=_0x99b0[_0x37e859('0x10fd')]['errors']||[{'message':_0x99b0[_0x37e859('0x684')](),'type':_0x37e859('0x11ec')}];for(var _0x1ff3d4=0x0;_0x1ff3d4<_0x99b0[_0x37e859('0x10fd')][_0x37e859('0x4c6')][_0x37e859('0x2587')];_0x1ff3d4++){_0x1faf76[_0x37e859('0x187f')]({'title':_0x99b0[_0x37e859('0x10fd')][_0x37e859('0x4c6')][_0x1ff3d4][_0x37e859('0x6c8')],'msg':_0x99b0['data'][_0x37e859('0x4c6')][_0x1ff3d4][_0x37e859('0x1402')]});}}else _0x1faf76[_0x37e859('0x187f')]({'title':_0x99b0['status']?'API:'+_0x99b0[_0x37e859('0x2fa')]+'\x20-\x20'+_0x99b0['statusText']:'api.voiceMail.delete','msg':_0x99b0[_0x37e859('0x10fd')]?JSON['stringify'](_0x99b0[_0x37e859('0x10fd')][_0x37e859('0x1402')]):_0x99b0[_0x37e859('0x1402')]||_0x99b0[_0x37e859('0x684')]()});});},function(){});}function _0x23f7f9(_0x3d5656){return _0x3d5656===null?undefined:new Date(_0x3d5656);}function _0x3f0a87(_0xbc45ca){_0x239565['hide'](_0xbc45ca);}}const _0x398a99=_0x6cbc0b;_0xf1806d['$inject']=['$cookies','$scope',_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x2a4'),_0x1a8446('0x157'),'Auth'];function _0xf1806d(_0x5dd4a9,_0x5ef43d,_0x1b0216,_0x157ab9,_0x306856,_0x3396a0,_0x42b60a,_0x10e468,_0x746f39,_0x127de2,_0x4ced4d){var _0x3f2756=_0x1a8446,_0x320edb=this;_0x320edb[_0x3f2756('0x7fc')]=_0x4ced4d['getCurrentUser'](),_0x320edb[_0x3f2756('0x1ffe')]={},_0x320edb['voicemailMessages']={'count':0x0,'rows':[]},_0x320edb['selectedVoicemailMessages']=[],_0x320edb['crudPermissions'],_0x320edb['query']={'fields':_0x3f2756('0x8c2'),'sort':_0x3f2756('0xeb7'),'limit':0xa,'page':0x1},_0x320edb[_0x3f2756('0x2e')]=_0x2c94cd,_0x320edb[_0x3f2756('0x1416')]=_0xc7a145,_0x320edb['voiceMailMessageDownload']=_0x39917f,_0x320edb[_0x3f2756('0xe10')]=_0x180c2a,_0x320edb[_0x3f2756('0x26ad')]=_0x59654e,_0x320edb['exportSelectedVoicemailMessages']=_0x1a8d55,_0x320edb[_0x3f2756('0x1e8b')]=_0x915941,_0x320edb[_0x3f2756('0x1cd9')]=_0x106806;function _0x2c94cd(_0x159648,_0x55f754){var _0x54078a=_0x3f2756;_0x320edb['voicemail']=_0x159648,_0x320edb[_0x54078a('0xada')]=typeof _0x55f754!==_0x54078a('0x1574')?_0x55f754:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x320edb[_0x54078a('0x582')]['id']=_0x320edb['voicemail']['id'],_0x59654e();}function _0x39917f(_0x4c706f,_0x11effc,_0x16eb42){var _0x3f3df3=_0x3f2756;return _0x127de2[_0x3f3df3('0x12fc')][_0x3f3df3('0x1cf9')]({'id':_0x4c706f['id'],'exists':!![],'attachments':_0x16eb42})[_0x3f3df3('0x1dc2')][_0x3f3df3('0xaa5')](function(_0x48622c){var _0x338dc5=_0x3f3df3,_0x244dab=[_0x48622c[_0x338dc5('0x1bf1')]],_0x11410a='message'+_0x4c706f['id'],_0x82ea5f=new Blob(_0x244dab,{'type':_0x48622c['type']});_0x11410a=_0x4c706f['msg_id']+_0x338dc5('0x1153');var _0x5e678e=window['document'][_0x338dc5('0x531')]('a');_0x5e678e[_0x338dc5('0x107b')](_0x338dc5('0x18ae'),URL[_0x338dc5('0x1e56')](_0x82ea5f)),_0x5e678e[_0x338dc5('0x107b')](_0x338dc5('0x1cf9'),_0x11410a),document[_0x338dc5('0x54c')]['appendChild'](_0x5e678e),_0x5e678e[_0x338dc5('0x467')]();})[_0x3f3df3('0x253d')](function(_0x25ea33){var _0xe0cbd4=_0x3f3df3;if(_0x25ea33['data']&&_0x25ea33[_0xe0cbd4('0x10fd')][_0xe0cbd4('0x4c6')]&&_0x25ea33[_0xe0cbd4('0x10fd')]['errors']['length'])for(var _0xe12418=0x0;_0xe12418<_0x25ea33['data'][_0xe0cbd4('0x4c6')][_0xe0cbd4('0x2587')];_0xe12418+=0x1){_0x746f39[_0xe0cbd4('0x187f')]({'title':_0x25ea33[_0xe0cbd4('0x10fd')][_0xe0cbd4('0x4c6')][_0xe12418][_0xe0cbd4('0x6c8')],'msg':_0x25ea33['data']['errors'][_0xe12418][_0xe0cbd4('0x1402')]});}else _0x746f39[_0xe0cbd4('0x187f')]({'title':_0x25ea33[_0xe0cbd4('0x2fa')]?_0xe0cbd4('0x16c2')+_0x25ea33[_0xe0cbd4('0x2fa')]+'\x20-\x20'+_0x25ea33[_0xe0cbd4('0x24df')]:_0xe0cbd4('0xf55'),'msg':_0x25ea33['data']?JSON['stringify'](_0x25ea33['data'][_0xe0cbd4('0x1402')]):_0x25ea33[_0xe0cbd4('0x684')]()});});}function _0xc7a145(_0x1eb980,_0x46cfd0){var _0x3365e5=_0x3f2756,_0x3316ab=_0x42b60a[_0x3365e5('0x281e')]()[_0x3365e5('0x110a')](_0x3365e5('0x177'))[_0x3365e5('0x102e')](_0x3365e5('0x389')+(_0x1eb980[_0x3365e5('0x25d6')]||_0x1eb980['id']&&_0x51538b()[_0x3365e5('0x1791')](_0x3365e5('0x7fe'))+_0x1eb980['id']||_0x3365e5('0x1402'))+_0x3365e5('0x697')+_0x3365e5('0x210d'))[_0x3365e5('0x5b5')](_0x3365e5('0x941'))['targetEvent'](_0x46cfd0)['ok']('OK')[_0x3365e5('0x2030')](_0x3365e5('0x2410'));_0x42b60a[_0x3365e5('0x1e6d')](_0x3316ab)[_0x3365e5('0xaa5')](function(){_0x915941(_0x1eb980);},function(){var _0x39316f=_0x3365e5;console[_0x39316f('0x18d5')](_0x39316f('0x2410'));});}function _0x180c2a(_0x9f6ca0){var _0x1b9681=_0x3f2756;_0x320edb[_0x1b9681('0x1c3e')]=_0x9f6ca0||{'count':0x0,'rows':[]};}function _0x59654e(){var _0xd25d55=_0x3f2756;_0x320edb[_0xd25d55('0x582')][_0xd25d55('0x8b1')]=(_0x320edb['query'][_0xd25d55('0x41')]-0x1)*_0x320edb['query'][_0xd25d55('0xf4d')],_0x320edb[_0xd25d55('0x159a')]=_0x127de2[_0xd25d55('0x2264')][_0xd25d55('0xbe0')](_0x320edb[_0xd25d55('0x582')],_0x180c2a)[_0xd25d55('0x1dc2')];}function _0x915941(_0xc45a7e){var _0x3c352a=_0x3f2756;_0x127de2[_0x3c352a('0x12fc')][_0x3c352a('0x926')]({'id':_0xc45a7e['id']})[_0x3c352a('0x1dc2')][_0x3c352a('0xaa5')](function(){var _0xfa9976=_0x3c352a;_0x51538b()['remove'](_0x320edb[_0xfa9976('0x1c3e')][_0xfa9976('0x580')],{'id':_0xc45a7e['id']}),_0x320edb[_0xfa9976('0x1c3e')][_0xfa9976('0xd15')]-=0x1,!_0x320edb['voicemailMessages'][_0xfa9976('0x580')]['length']&&_0x59654e(),_0x746f39[_0xfa9976('0xe10')]({'title':_0xfa9976('0x21fa'),'msg':_0xc45a7e[_0xfa9976('0x25d6')]?_0xc45a7e['name']+_0xfa9976('0xcd9'):''});})[_0x3c352a('0x253d')](function(_0x68c54b){var _0xa3a92e=_0x3c352a;if(_0x68c54b[_0xa3a92e('0x10fd')]&&_0x68c54b[_0xa3a92e('0x10fd')][_0xa3a92e('0x4c6')]&&_0x68c54b[_0xa3a92e('0x10fd')][_0xa3a92e('0x4c6')]['length']){_0x320edb['errors']=_0x68c54b[_0xa3a92e('0x10fd')]['errors']||[{'message':_0x68c54b[_0xa3a92e('0x684')](),'type':_0xa3a92e('0x129b')}];for(var _0x3daeb3=0x0;_0x3daeb3<_0x68c54b[_0xa3a92e('0x10fd')]['errors'][_0xa3a92e('0x2587')];_0x3daeb3++){_0x746f39[_0xa3a92e('0x187f')]({'title':_0x68c54b[_0xa3a92e('0x10fd')]['errors'][_0x3daeb3][_0xa3a92e('0x6c8')],'msg':_0x68c54b['data'][_0xa3a92e('0x4c6')][_0x3daeb3][_0xa3a92e('0x1402')]});}}else _0x746f39[_0xa3a92e('0x187f')]({'title':_0x68c54b['status']?_0xa3a92e('0x16c2')+_0x68c54b[_0xa3a92e('0x2fa')]+_0xa3a92e('0x169e')+_0x68c54b[_0xa3a92e('0x24df')]:'SYSTEM:GETvoiceMail','msg':_0x68c54b[_0xa3a92e('0x10fd')]?JSON[_0xa3a92e('0xa48')](_0x68c54b['data'][_0xa3a92e('0x1402')]):_0x68c54b['message']||_0x68c54b['toString']()});});}function _0x1a8d55(){var _0x4a6ac0=_0x3f2756,_0x109371=angular['copy'](_0x320edb[_0x4a6ac0('0x1c1b')]);return _0x320edb[_0x4a6ac0('0x1c1b')]=[],_0x109371;}function _0x106806(_0x5ee587){var _0x2f99d9=_0x3f2756,_0x3921e3=_0x42b60a[_0x2f99d9('0x281e')]()['title'](_0x2f99d9('0x6a8'))[_0x2f99d9('0x102e')](''+_0x320edb['selectedVoicemailMessages'][_0x2f99d9('0x2587')]+_0x2f99d9('0x1443')+_0x2f99d9('0x210d'))['ariaLabel'](_0x2f99d9('0xf5d'))['targetEvent'](_0x5ee587)['ok']('OK')[_0x2f99d9('0x2030')](_0x2f99d9('0x2410'));_0x42b60a[_0x2f99d9('0x1e6d')](_0x3921e3)[_0x2f99d9('0xaa5')](function(){var _0x67eeca=_0x2f99d9;_0x320edb[_0x67eeca('0x1c1b')][_0x67eeca('0x15b5')](function(_0x4eee8e){_0x915941(_0x4eee8e);}),_0x320edb[_0x67eeca('0x1c1b')]=[];});}var _0x3587ac=!![],_0x50279f=0x1;_0x5ef43d[_0x3f2756('0x1ccf')](_0x3f2756('0x74c'),function(_0x527d18,_0x184c68){var _0x4a5423=_0x3f2756;_0x3587ac?_0x3396a0(function(){_0x3587ac=![];}):(!_0x184c68&&(_0x50279f=_0x320edb[_0x4a5423('0x582')]['page']),_0x527d18!==_0x184c68&&(_0x320edb['query'][_0x4a5423('0x41')]=0x1),!_0x527d18&&(_0x320edb[_0x4a5423('0x582')][_0x4a5423('0x41')]=_0x50279f),_0x59654e());});}const _0x16c41e=_0xf1806d;_0x2e4adb[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0xcb3'),'license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1ffe'),_0x1a8446('0x1a50')];function _0x2e4adb(_0x270289,_0x13f099,_0x50879c,_0x4bdb2a,_0x51f76a,_0x55fdca,_0x4cd91e,_0x3462dc,_0x2eaedd,_0x4fbc0e,_0x3d1d68,_0x18114c){var _0x58bed9=_0x1a8446,_0x195591=this;_0x195591['currentUser']=_0x4fbc0e[_0x58bed9('0xacc')](),_0x195591[_0x58bed9('0x1202')]=_0x55fdca,_0x195591[_0x58bed9('0x143f')]=_0x4cd91e,_0x195591[_0x58bed9('0x1d53')]=_0x195591[_0x58bed9('0x143f')][_0x58bed9('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x195591[_0x58bed9('0x18cc')]=_0x13f099[_0x58bed9('0x1cc2')]()+_0x58bed9('0x356')+_0x13f099[_0x58bed9('0x160c')](),_0x195591[_0x58bed9('0x1ffe')]=_0x3d1d68||_0x270289['params'][_0x58bed9('0x1ffe')]||{},_0x195591[_0x58bed9('0x1a50')]=_0x18114c&&_0x18114c['count']==0x1?_0x18114c[_0x58bed9('0x580')][0x0]:null,_0x195591[_0x58bed9('0xada')]=_0x4fbc0e[_0x58bed9('0xffd')](_0x195591[_0x58bed9('0x1a50')]?_0x195591[_0x58bed9('0x1a50')][_0x58bed9('0xada')]:null),_0x195591[_0x58bed9('0x9f0')]={},_0x195591['selectedTab']=_0x270289[_0x58bed9('0x25cf')][_0x58bed9('0x25c2')]||0x0,_0x195591['alert']=_0x2eaedd[_0x58bed9('0x3a1')],_0x195591[_0x58bed9('0x1f53')]=_0x15f069,_0x195591[_0x58bed9('0x166a')]=_0x8ef9ab,_0x4fbc0e['hasRole']('admin')?_0x3462dc[_0x58bed9('0x68c')][_0x58bed9('0x2122')]({'fields':_0x58bed9('0x17fe'),'sort':_0x58bed9('0x25d6')})[_0x58bed9('0x1dc2')]['then'](function(_0x2f6e87){var _0x4cc945=_0x58bed9;_0x195591[_0x4cc945('0xdc5')]=_0x2f6e87[_0x4cc945('0x580')]||[];})[_0x58bed9('0x253d')](function(_0x27d2be){var _0x3c8ab9=_0x58bed9;_0x2eaedd['error']({'title':_0x27d2be[_0x3c8ab9('0x2fa')]?_0x3c8ab9('0x16c2')+_0x27d2be[_0x3c8ab9('0x2fa')]+_0x3c8ab9('0x169e')+_0x27d2be[_0x3c8ab9('0x24df')]:_0x3c8ab9('0x1393'),'msg':_0x27d2be['data']?JSON[_0x3c8ab9('0xa48')](_0x27d2be[_0x3c8ab9('0x10fd')]):_0x27d2be[_0x3c8ab9('0x684')]()});}):_0x3462dc[_0x58bed9('0x68c')][_0x58bed9('0x2122')]({'fields':'id,name','sort':_0x58bed9('0x25d6')})['$promise'][_0x58bed9('0xaa5')](function(_0x5893d5){var _0x16d74b=_0x58bed9;_0x195591[_0x16d74b('0xdc5')]=_0x5893d5[_0x16d74b('0x580')]||[];})['then'](function(){var _0x22949e=_0x58bed9;return _0x3462dc[_0x22949e('0x1a50')][_0x22949e('0x2122')]({'userProfileId':_0x195591[_0x22949e('0x7fc')][_0x22949e('0x2168')],'sectionId':0x195})[_0x22949e('0x1dc2')];})['then'](function(_0x3d3b53){var _0x278169=_0x58bed9,_0x49567e=_0x3d3b53&&_0x3d3b53['rows']?_0x3d3b53[_0x278169('0x580')][0x0]:null;if(!_0x49567e)return _0x3462dc[_0x278169('0x68c')]['get']({'fields':_0x278169('0x17fe'),'sort':_0x278169('0x25d6'),'defaultEntry':0x1})['$promise'][_0x278169('0xaa5')](function(_0x3ce398){var _0x55df1e=_0x278169;_0x195591[_0x55df1e('0xdc5')]=_0x3ce398[_0x55df1e('0x580')]||[];});else{if(!_0x49567e[_0x278169('0x26cc')])return _0x3462dc['userProfileResource'][_0x278169('0x2122')]({'sectionId':_0x49567e['id']})[_0x278169('0x1dc2')][_0x278169('0xaa5')](function(_0x4f1471){var _0x4386f1=_0x278169,_0xe76d59=_0x51538b()[_0x4386f1('0x1246')](_0x4f1471[_0x4386f1('0x580')],function(_0x30c78a){var _0x1cb929=_0x4386f1;return _0x51538b()[_0x1cb929('0xe9e')](_0x195591['contexts'],{'id':_0x30c78a['resourceId']});}),_0x21db1a=null;_0x195591[_0x4386f1('0x1ffe')]&&(_0x21db1a=_0x51538b()[_0x4386f1('0xe9e')](_0x195591[_0x4386f1('0xdc5')],{'name':_0x195591[_0x4386f1('0x1ffe')][_0x4386f1('0x19cd')]}));if(_0x21db1a&&!_0x51538b()[_0x4386f1('0x2c2')](_0xe76d59,['id',_0x21db1a['id']])){var _0x276ca5=_0x51538b()[_0x4386f1('0xe9e')](_0x195591['contexts'],{'id':_0x21db1a['id']});_0x276ca5[_0x4386f1('0x12eb')]=![],_0xe76d59['push'](_0x276ca5);}_0x195591[_0x4386f1('0xdc5')]=_0xe76d59;});}})[_0x58bed9('0x253d')](function(_0x18b3f6){var _0x5f5b17=_0x58bed9;_0x2eaedd[_0x5f5b17('0x187f')]({'title':_0x18b3f6['status']?_0x5f5b17('0x16c2')+_0x18b3f6[_0x5f5b17('0x2fa')]+_0x5f5b17('0x169e')+_0x18b3f6['statusText']:'SYSTEM:GETcontexts','msg':_0x18b3f6[_0x5f5b17('0x10fd')]?JSON[_0x5f5b17('0xa48')](_0x18b3f6[_0x5f5b17('0x10fd')]):_0x18b3f6['toString']()});});function _0x15f069(){var _0x14639f=_0x58bed9;_0x270289['go'](_0x14639f('0x1bf7'),{},{'reload':_0x14639f('0x1bf7')});}function _0x8ef9ab(){var _0x124c65=_0x58bed9;_0x3462dc['voiceMail'][_0x124c65('0x264e')]({'id':_0x195591['voicemail']['id']},_0x195591['voicemail'])[_0x124c65('0x1dc2')][_0x124c65('0xaa5')](function(){var _0x4926cc=_0x124c65;_0x2eaedd['success']({'title':_0x4926cc('0x23c7'),'msg':_0x195591[_0x4926cc('0x1ffe')][_0x4926cc('0x25d6')]?_0x195591[_0x4926cc('0x1ffe')][_0x4926cc('0x25d6')]+_0x4926cc('0x1734'):''});})[_0x124c65('0x253d')](function(_0x2af26a){var _0x20af1a=_0x124c65;_0x2eaedd[_0x20af1a('0x187f')]({'title':_0x2af26a['status']?_0x20af1a('0x16c2')+_0x2af26a[_0x20af1a('0x2fa')]+_0x20af1a('0x169e')+_0x2af26a[_0x20af1a('0x24df')]:_0x20af1a('0x129b'),'msg':_0x2af26a[_0x20af1a('0x10fd')]?JSON[_0x20af1a('0xa48')](_0x2af26a[_0x20af1a('0x10fd')]):_0x2af26a[_0x20af1a('0x684')]()});});}}const _0x86e75=_0x2e4adb,_0x5c7f1b=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/voicemails/create/dialog.html/dialog-[chunkhash].html';_0x3d6e98[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document','$timeout',_0x1a8446('0xcb3'),'voicemails',_0x1a8446('0x1e97'),'userProfileSection','api',_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x3d6e98(_0x249d40,_0xbc00ad,_0x31dd2b,_0x40214d,_0x22f924,_0x1a3f06,_0x43b80d,_0x55e276,_0x47e89c,_0x8f130,_0x277484,_0x9e442d,_0x472446,_0x54661a,_0x4738ad,_0x4c02c1,_0x2c2850){var _0x2a2628=_0x1a8446,_0x384977=this;_0x384977[_0x2a2628('0x1202')]=_0x4c02c1,_0x384977[_0x2a2628('0x143f')]=_0x2c2850,_0x384977[_0x2a2628('0x7fc')]=_0x4738ad[_0x2a2628('0xacc')](),_0x384977[_0x2a2628('0x1242')]=_0x47e89c||{'count':0x0,'rows':[]},_0x384977[_0x2a2628('0x1e97')]=_0x8f130,_0x384977['userProfileSection']=_0x277484&&_0x277484['count']==0x1?_0x277484[_0x2a2628('0x580')][0x0]:null,_0x384977['crudPermissions']=_0x4738ad[_0x2a2628('0xffd')](_0x384977[_0x2a2628('0x1a50')]?_0x384977[_0x2a2628('0x1a50')][_0x2a2628('0xada')]:null),_0x384977[_0x2a2628('0x12b6')]=_0x2a2628('0x1242'),_0x384977[_0x2a2628('0x164')]='',_0x384977[_0x2a2628('0x8cc')]=null,_0x384977['selectedVoicemails']=[],_0x384977[_0x2a2628('0x582')]={'fields':_0x2a2628('0x1f35'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x384977['arrayattach']=_0x51538b()[_0x2a2628('0x184a')]([{'option':'Yes','value':_0x2a2628('0x14cf')},{'option':'No','value':_0x2a2628('0x539')}],function(_0x21077d){var _0x4a50b2=_0x2a2628;return _0x51538b()[_0x4a50b2('0x170d')](_0x21077d[_0x4a50b2('0x12f4')],new RegExp('\x27','g'),'');}),_0x384977[_0x2a2628('0x10d5')]=_0x51538b()[_0x2a2628('0x184a')]([{'option':_0x2a2628('0x1b84'),'value':_0x2a2628('0x14cf')},{'option':'No','value':_0x2a2628('0x539')}],function(_0x187c7a){var _0xbacd69=_0x2a2628;return _0x51538b()[_0xbacd69('0x170d')](_0x187c7a[_0xbacd69('0x12f4')],new RegExp('\x27','g'),'');}),_0x384977[_0x2a2628('0x216f')]=_0x51538b()['keyBy']([{'option':_0x2a2628('0x1b84'),'value':_0x2a2628('0x14cf')},{'option':'No','value':'\x27no\x27'}],function(_0x25552b){var _0x458e06=_0x2a2628;return _0x51538b()['replace'](_0x25552b[_0x458e06('0x12f4')],new RegExp('\x27','g'),'');}),_0x384977['editstate']=_0x430f65,_0x384977[_0x2a2628('0x271')]=_0x3afcb0,_0x384977[_0x2a2628('0xe10')]=_0x25c589,_0x384977[_0x2a2628('0xc5c')]=_0x2d06db,_0x384977[_0x2a2628('0x1b12')]=_0x3fd46b,_0x384977[_0x2a2628('0x22ac')]=_0x3e906d,_0x384977['exportSelectedVoicemails']=_0x1aa584,_0x384977[_0x2a2628('0x137a')]=_0xda77b8,_0x384977[_0x2a2628('0x9f1')]=_0xfd61f5,_0x384977['selectAllVoicemails']=_0x48debc;function _0x430f65(_0x1bac77){var _0x2a8e2c=_0x2a2628;_0x31dd2b['go']('app.voice.voicemails.edit',{'id':_0x1bac77['id'],'voicemail':_0x1bac77,'crudPermissions':_0x384977[_0x2a8e2c('0xada')]});}function _0x3afcb0(_0x29ff4e,_0x274727){var _0x2c0ae7=_0x2a2628,_0x13e4b1=_0x22f924[_0x2c0ae7('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()['startCase'](_0x2c0ae7('0x1ffe'))+'?')[_0x2c0ae7('0x102e')](_0x2c0ae7('0x389')+(_0x29ff4e[_0x2c0ae7('0x25d6')]||_0x2c0ae7('0x1ffe'))+_0x2c0ae7('0x697')+_0x2c0ae7('0x210d'))[_0x2c0ae7('0x5b5')](_0x2c0ae7('0xa77'))[_0x2c0ae7('0x116d')](_0x274727)['ok']('OK')['cancel'](_0x2c0ae7('0x2410'));_0x22f924[_0x2c0ae7('0x1e6d')](_0x13e4b1)[_0x2c0ae7('0xaa5')](function(){_0x3e906d(_0x29ff4e);},function(){var _0x343885=_0x2c0ae7;console[_0x343885('0x18d5')](_0x343885('0x2410'));});}var _0xe00dac=!![],_0x525cb1=0x1;_0x249d40['$watch'](_0x2a2628('0x1788'),function(_0x4b96b2,_0x61a31c){var _0x225c6a=_0x2a2628;_0xe00dac?_0x43b80d(function(){_0xe00dac=![];}):(!_0x61a31c&&(_0x525cb1=_0x384977[_0x225c6a('0x582')][_0x225c6a('0x41')]),_0x4b96b2!==_0x61a31c&&(_0x384977[_0x225c6a('0x582')][_0x225c6a('0x41')]=0x1),!_0x4b96b2&&(_0x384977[_0x225c6a('0x582')]['page']=_0x525cb1),_0x384977['getVoicemails']());});function _0x25c589(_0xa0139e){var _0xa4fc68=_0x2a2628;_0x384977[_0xa4fc68('0x1242')]=_0xa0139e||{'count':0x0,'rows':[]};}function _0x2d06db(){var _0x364e2c=_0x2a2628;_0x384977[_0x364e2c('0x582')][_0x364e2c('0x8b1')]=(_0x384977[_0x364e2c('0x582')]['page']-0x1)*_0x384977['query']['limit'],_0x4738ad[_0x364e2c('0x26e8')](_0x364e2c('0x178b'))?_0x384977[_0x364e2c('0x159a')]=_0x9e442d[_0x364e2c('0x2264')]['get'](_0x384977[_0x364e2c('0x582')],_0x25c589)['$promise']:(_0x384977[_0x364e2c('0x582')]['id']=_0x384977[_0x364e2c('0x1e97')]['id'],_0x384977['query'][_0x364e2c('0x224d')]=_0x364e2c('0x5c7'),_0x384977[_0x364e2c('0x159a')]=_0x9e442d[_0x364e2c('0x1e97')]['getResources'](_0x384977[_0x364e2c('0x582')],_0x25c589)[_0x364e2c('0x1dc2')]);}function _0x3fd46b(_0x385590,_0x36e52c){var _0x132b7c=_0x2a2628;_0x22f924[_0x132b7c('0x1e6d')]({'controller':_0x132b7c('0xa57'),'controllerAs':'vm','templateUrl':_0x5c7f1b,'parent':angular['element'](_0x1a3f06[_0x132b7c('0x54c')]),'targetEvent':_0x385590,'clickOutsideToClose':!![],'locals':{'voicemail':_0x36e52c,'voicemails':_0x384977[_0x132b7c('0x1242')][_0x132b7c('0x580')],'license':_0x384977[_0x132b7c('0x1202')],'setting':_0x384977['setting'],'crudPermissions':_0x384977['crudPermissions']}});}function _0x3e906d(_0x4c59ec){var _0x355874=_0x2a2628;_0x9e442d[_0x355874('0x2264')]['delete']({'id':_0x4c59ec['id']})[_0x355874('0x1dc2')][_0x355874('0xaa5')](function(){var _0x372cc9=_0x355874;_0x51538b()['remove'](_0x384977[_0x372cc9('0x1242')][_0x372cc9('0x580')],{'id':_0x4c59ec['id']}),_0x384977[_0x372cc9('0x1242')]['count']-=0x1,!_0x384977['voicemails'][_0x372cc9('0x580')][_0x372cc9('0x2587')]&&_0x384977[_0x372cc9('0xc5c')](),_0x54661a[_0x372cc9('0xe10')]({'title':_0x51538b()[_0x372cc9('0x196a')](_0x372cc9('0x19fe'))+_0x372cc9('0x8bb'),'msg':_0x4c59ec[_0x372cc9('0x25d6')]?_0x4c59ec[_0x372cc9('0x25d6')]+_0x372cc9('0xcd9'):''});})[_0x355874('0x253d')](function(_0x8385a4){var _0x59b9f4=_0x355874;if(_0x8385a4['data']&&_0x8385a4['data'][_0x59b9f4('0x4c6')]&&_0x8385a4[_0x59b9f4('0x10fd')][_0x59b9f4('0x4c6')][_0x59b9f4('0x2587')]){_0x384977[_0x59b9f4('0x4c6')]=_0x8385a4[_0x59b9f4('0x10fd')][_0x59b9f4('0x4c6')]||[{'message':_0x8385a4[_0x59b9f4('0x684')](),'type':_0x59b9f4('0x312')}];for(var _0x1e31b1=0x0;_0x1e31b1<_0x8385a4[_0x59b9f4('0x10fd')]['errors'][_0x59b9f4('0x2587')];_0x1e31b1++){_0x54661a[_0x59b9f4('0x187f')]({'title':_0x8385a4[_0x59b9f4('0x10fd')]['errors'][_0x1e31b1]['type'],'msg':_0x8385a4[_0x59b9f4('0x10fd')]['errors'][_0x1e31b1]['message']});}}else _0x54661a[_0x59b9f4('0x187f')]({'title':_0x8385a4[_0x59b9f4('0x2fa')]?_0x59b9f4('0x16c2')+_0x8385a4[_0x59b9f4('0x2fa')]+_0x59b9f4('0x169e')+_0x8385a4[_0x59b9f4('0x24df')]:_0x59b9f4('0x312'),'msg':_0x8385a4[_0x59b9f4('0x10fd')]?JSON[_0x59b9f4('0xa48')](_0x8385a4['data'][_0x59b9f4('0x1402')]):_0x8385a4[_0x59b9f4('0x1402')]||_0x8385a4['toString']()});});}function _0x1aa584(){var _0x3218cc=_0x2a2628,_0x57a2a2=angular[_0x3218cc('0x20a')](_0x384977[_0x3218cc('0xe08')]);return _0x384977['selectedVoicemails']=[],_0x57a2a2;}function _0xda77b8(_0x24e2c1){var _0xe4b6b6=_0x2a2628,_0x482dc8=_0x22f924[_0xe4b6b6('0x281e')]()[_0xe4b6b6('0x110a')](_0xe4b6b6('0x1a89'))[_0xe4b6b6('0x102e')](_0xe4b6b6('0x389')+_0x384977[_0xe4b6b6('0xe08')][_0xe4b6b6('0x2587')]+_0xe4b6b6('0x1443')+_0xe4b6b6('0x210d'))[_0xe4b6b6('0x5b5')](_0xe4b6b6('0xde5'))[_0xe4b6b6('0x116d')](_0x24e2c1)['ok']('OK')['cancel'](_0xe4b6b6('0x2410'));_0x22f924[_0xe4b6b6('0x1e6d')](_0x482dc8)[_0xe4b6b6('0xaa5')](function(){var _0x48a887=_0xe4b6b6;_0x384977['selectedVoicemails'][_0x48a887('0x15b5')](function(_0x46b9c8){_0x3e906d(_0x46b9c8);}),_0x384977['selectedVoicemails']=[];});}function _0xfd61f5(){var _0x17fbbf=_0x2a2628;_0x384977[_0x17fbbf('0xe08')]=[];}function _0x48debc(){_0x384977['selectedVoicemails']=_0x384977['voicemails']['rows'];}}const _0x191fce=_0x3d6e98;_0x93cfb9[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x1d6c'),_0x1a8446('0x2123'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x93cfb9(_0x4504c3,_0x5ea9c7,_0xe4c62e,_0x25d366,_0x4979ee,_0xe6b52b,_0x48c7f3,_0x1c9fda,_0x211ab9,_0x19912d,_0x1f6e78,_0x50d466,_0x34f97c,_0x22113d){var _0x3e345f=_0x1a8446,_0x3c1b8b=this;_0x3c1b8b[_0x3e345f('0x7fc')]=_0x1f6e78[_0x3e345f('0xacc')](),_0x3c1b8b[_0x3e345f('0x4c6')]=[],_0x3c1b8b[_0x3e345f('0x143f')]=_0x34f97c,_0x3c1b8b[_0x3e345f('0x1202')]=_0x50d466,_0x3c1b8b[_0x3e345f('0xada')]=_0x22113d,_0x3c1b8b['hasModulePermissions']={},_0x3c1b8b[_0x3e345f('0x1d53')]=_0x3c1b8b[_0x3e345f('0x143f')]&&_0x3c1b8b['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c1b8b[_0x3e345f('0x110a')]='VOICE.EDIT_VOICEPREFIX',_0x3c1b8b['voicePrefix']=angular[_0x3e345f('0x20a')](_0x211ab9),_0x3c1b8b[_0x3e345f('0x1d6c')]=_0x1c9fda,_0x3c1b8b['newvoicePrefix']=![];!_0x3c1b8b['voicePrefix']&&(_0x3c1b8b[_0x3e345f('0x2123')]={},_0x3c1b8b[_0x3e345f('0x110a')]=_0x3e345f('0x7f8'),_0x3c1b8b[_0x3e345f('0xe6b')]=!![]);_0x3c1b8b['addNewvoicePrefix']=_0x9b23ed,_0x3c1b8b[_0x3e345f('0x1075')]=_0x13fb01,_0x3c1b8b['deletevoicePrefix']=_0x554eb2,_0x3c1b8b['getDateFromString']=_0x19d5f9,_0x3c1b8b[_0x3e345f('0x2023')]=_0x417bca,_0x1f6e78[_0x3e345f('0x26e8')](_0x3e345f('0x178b'))?_0x19912d[_0x3e345f('0x1361')]['get']({'fields':'id,exten','type':'outbound','VoiceExtensionId':'null','nolimit':'true'})[_0x3e345f('0x1dc2')][_0x3e345f('0xaa5')](function(_0x58940d){var _0x1d8234=_0x3e345f;_0x3c1b8b[_0x1d8234('0xe59')]=_0x58940d[_0x1d8234('0x580')]||[];})[_0x3e345f('0x253d')](function(_0x1863d4){var _0x502872=_0x3e345f;_0x48c7f3[_0x502872('0x187f')]({'title':_0x1863d4[_0x502872('0x2fa')]?_0x502872('0x16c2')+_0x1863d4[_0x502872('0x2fa')]+'\x20-\x20'+_0x1863d4[_0x502872('0x24df')]:_0x502872('0x1f25'),'msg':_0x1863d4[_0x502872('0x10fd')]?JSON['stringify'](_0x1863d4[_0x502872('0x10fd')]):_0x1863d4[_0x502872('0x684')]()});}):_0x19912d['voiceExtension'][_0x3e345f('0x2122')]({'fields':_0x3e345f('0x1ceb'),'type':_0x3e345f('0x19d1'),'VoiceExtensionId':'null','nolimit':_0x3e345f('0x1c5c')})[_0x3e345f('0x1dc2')]['then'](function(_0x252f0f){var _0x166352=_0x3e345f;_0x3c1b8b[_0x166352('0xe59')]=_0x252f0f['rows']||[];})[_0x3e345f('0xaa5')](function(){var _0x165d83=_0x3e345f;return _0x19912d[_0x165d83('0x1a50')][_0x165d83('0x2122')]({'userProfileId':_0x3c1b8b[_0x165d83('0x7fc')][_0x165d83('0x2168')],'sectionId':0x193})['$promise'];})[_0x3e345f('0xaa5')](function(_0x481374){var _0xf0ee28=_0x3e345f,_0x3c0f1e=_0x481374&&_0x481374[_0xf0ee28('0x580')]?_0x481374[_0xf0ee28('0x580')][0x0]:null;if(!_0x3c0f1e){var _0x21d851=[],_0x46ce38=null;_0x3c1b8b[_0xf0ee28('0x2123')]&&(_0x46ce38=_0x51538b()[_0xf0ee28('0xe9e')](_0x3c1b8b['outboundRoutes'],{'id':Number(_0x3c1b8b[_0xf0ee28('0x2123')]['VoiceExtensionId'])}));for(var _0x26750d=0x0;_0x26750d<_0x3c1b8b['outboundRoutes'][_0xf0ee28('0x2587')];_0x26750d++){_0x46ce38&&_0x3c1b8b[_0xf0ee28('0xe59')][_0x26750d]['id']===_0x46ce38['id']&&(_0x3c1b8b[_0xf0ee28('0xe59')][_0x26750d][_0xf0ee28('0x12eb')]=![],_0x21d851[_0xf0ee28('0x1599')](_0x3c1b8b['outboundRoutes'][_0x26750d]));}_0x3c1b8b['outboundRoutes']=_0x21d851;}else{if(!_0x3c0f1e[_0xf0ee28('0x26cc')])return _0x19912d[_0xf0ee28('0x249a')][_0xf0ee28('0x2122')]({'sectionId':_0x3c0f1e['id']})['$promise']['then'](function(_0x2855fa){var _0x1ec475=_0xf0ee28,_0x28f0f1=_0x51538b()[_0x1ec475('0x1246')](_0x2855fa[_0x1ec475('0x580')],function(_0x317b29){var _0x385ec5=_0x1ec475;return _0x51538b()[_0x385ec5('0xe9e')](_0x3c1b8b[_0x385ec5('0xe59')],{'id':_0x317b29[_0x385ec5('0xbcd')]});}),_0x49948f=null;_0x3c1b8b['voicePrefix']&&(_0x49948f=_0x51538b()[_0x1ec475('0xe9e')](_0x3c1b8b[_0x1ec475('0xe59')],{'id':Number(_0x3c1b8b['voicePrefix']['VoiceExtensionId'])}));if(_0x49948f&&!_0x51538b()[_0x1ec475('0x2c2')](_0x28f0f1,['id',_0x49948f['id']])){var _0x3e096c=_0x51538b()[_0x1ec475('0xe9e')](_0x3c1b8b[_0x1ec475('0xe59')],{'id':_0x49948f['id']});_0x3e096c[_0x1ec475('0x12eb')]=![],_0x28f0f1[_0x1ec475('0x1599')](_0x3e096c);}_0x3c1b8b[_0x1ec475('0xe59')]=_0x28f0f1;});}})['catch'](function(_0x50b76a){var _0x3557ed=_0x3e345f;_0x48c7f3['error']({'title':_0x50b76a['status']?_0x3557ed('0x16c2')+_0x50b76a[_0x3557ed('0x2fa')]+_0x3557ed('0x169e')+_0x50b76a[_0x3557ed('0x24df')]:'SYSTEM:GEToutboundRoutes','msg':_0x50b76a[_0x3557ed('0x10fd')]?JSON[_0x3557ed('0xa48')](_0x50b76a[_0x3557ed('0x10fd')]):_0x50b76a[_0x3557ed('0x684')]()});});function _0x9b23ed(){var _0x20f725=_0x3e345f;_0x3c1b8b[_0x20f725('0x4c6')]=[],_0x19912d[_0x20f725('0x2123')][_0x20f725('0x242b')](_0x3c1b8b['voicePrefix'])[_0x20f725('0x1dc2')][_0x20f725('0xaa5')](function(_0x3a8e16){var _0x34156c=_0x20f725;_0x3c1b8b[_0x34156c('0x1d6c')][_0x34156c('0x6ee')](_0x3a8e16[_0x34156c('0x256a')]()),_0x48c7f3[_0x34156c('0xe10')]({'title':_0x34156c('0xa96'),'msg':_0x3c1b8b[_0x34156c('0x2123')][_0x34156c('0x25d6')]?_0x3c1b8b[_0x34156c('0x2123')][_0x34156c('0x25d6')]+_0x34156c('0xdca'):''}),_0x417bca(_0x3a8e16);})[_0x20f725('0x253d')](function(_0x4f80c9){var _0x1cc281=_0x20f725;if(_0x4f80c9[_0x1cc281('0x10fd')]&&_0x4f80c9[_0x1cc281('0x10fd')][_0x1cc281('0x4c6')]&&_0x4f80c9[_0x1cc281('0x10fd')]['errors']['length']){_0x3c1b8b[_0x1cc281('0x4c6')]=_0x4f80c9[_0x1cc281('0x10fd')][_0x1cc281('0x4c6')]||[{'message':_0x4f80c9['toString'](),'type':'api.voicePrefix.save'}];for(var _0x3211f4=0x0;_0x3211f4<_0x4f80c9[_0x1cc281('0x10fd')]['errors'][_0x1cc281('0x2587')];_0x3211f4+=0x1){_0x48c7f3[_0x1cc281('0x187f')]({'title':_0x4f80c9[_0x1cc281('0x10fd')][_0x1cc281('0x4c6')][_0x3211f4][_0x1cc281('0x6c8')],'msg':_0x4f80c9['data'][_0x1cc281('0x4c6')][_0x3211f4][_0x1cc281('0x1402')]});}}else _0x48c7f3['error']({'title':_0x4f80c9[_0x1cc281('0x2fa')]?_0x1cc281('0x16c2')+_0x4f80c9[_0x1cc281('0x2fa')]+_0x1cc281('0x169e')+_0x4f80c9[_0x1cc281('0x24df')]:_0x1cc281('0x1d8e'),'msg':_0x4f80c9[_0x1cc281('0x10fd')]?JSON[_0x1cc281('0xa48')](_0x4f80c9[_0x1cc281('0x10fd')]['message']):_0x4f80c9[_0x1cc281('0x684')]()});});}function _0x13fb01(){var _0x193eb2=_0x3e345f;_0x3c1b8b[_0x193eb2('0x4c6')]=[],_0x19912d[_0x193eb2('0x2123')][_0x193eb2('0x264e')]({'id':_0x3c1b8b['voicePrefix']['id']},_0x3c1b8b['voicePrefix'])[_0x193eb2('0x1dc2')]['then'](function(_0x2f013e){var _0x11fd95=_0x193eb2,_0x1cdf8d=_0x51538b()['find'](_0x3c1b8b[_0x11fd95('0x1d6c')],{'id':_0x2f013e['id']});_0x1cdf8d&&_0x51538b()[_0x11fd95('0x283c')](_0x1cdf8d,_0x51538b()[_0x11fd95('0x104e')](_0x2f013e['toJSON'](),_0x51538b()['keys'](_0x1cdf8d))),_0x48c7f3['success']({'title':_0x11fd95('0x1326'),'msg':_0x3c1b8b[_0x11fd95('0x2123')][_0x11fd95('0x25d6')]?_0x3c1b8b[_0x11fd95('0x2123')][_0x11fd95('0x25d6')]+_0x11fd95('0x20bf'):''}),_0x417bca(_0x2f013e);})['catch'](function(_0x48b165){var _0x291d25=_0x193eb2;if(_0x48b165[_0x291d25('0x10fd')]&&_0x48b165[_0x291d25('0x10fd')]['errors']&&_0x48b165[_0x291d25('0x10fd')][_0x291d25('0x4c6')][_0x291d25('0x2587')]){_0x3c1b8b[_0x291d25('0x4c6')]=_0x48b165['data'][_0x291d25('0x4c6')]||[{'message':_0x48b165['toString'](),'type':_0x291d25('0x1ef7')}];for(var _0xf908a=0x0;_0xf908a<_0x48b165['data']['errors'][_0x291d25('0x2587')];_0xf908a++){_0x48c7f3[_0x291d25('0x187f')]({'title':_0x48b165[_0x291d25('0x10fd')][_0x291d25('0x4c6')][_0xf908a][_0x291d25('0x6c8')],'msg':_0x48b165[_0x291d25('0x10fd')][_0x291d25('0x4c6')][_0xf908a]['message']});}}else _0x48c7f3[_0x291d25('0x187f')]({'title':_0x48b165['status']?_0x291d25('0x16c2')+_0x48b165['status']+_0x291d25('0x169e')+_0x48b165[_0x291d25('0x24df')]:_0x291d25('0x1ef7'),'msg':_0x48b165[_0x291d25('0x10fd')]?JSON['stringify'](_0x48b165[_0x291d25('0x10fd')]['message']):_0x48b165[_0x291d25('0x684')]()});});}function _0x554eb2(_0x29a60e){var _0x1cd7f2=_0x3e345f;_0x3c1b8b['errors']=[];var _0x3ce037=_0x25d366[_0x1cd7f2('0x281e')]()[_0x1cd7f2('0x110a')](_0x1cd7f2('0x12a3'))['content'](_0x1cd7f2('0x25e4'))[_0x1cd7f2('0x5b5')](_0x1cd7f2('0x1ebd'))['ok'](_0x1cd7f2('0x1e76'))[_0x1cd7f2('0x2030')](_0x1cd7f2('0x9c6'))[_0x1cd7f2('0x116d')](_0x29a60e);_0x25d366[_0x1cd7f2('0x1e6d')](_0x3ce037)['then'](function(){var _0x390fe0=_0x1cd7f2;_0x19912d[_0x390fe0('0x2123')]['delete']({'id':_0x3c1b8b[_0x390fe0('0x2123')]['id']})[_0x390fe0('0x1dc2')]['then'](function(){var _0x3e9628=_0x390fe0;_0x51538b()['remove'](_0x3c1b8b[_0x3e9628('0x1d6c')],{'id':_0x3c1b8b['voicePrefix']['id']}),_0x48c7f3[_0x3e9628('0xe10')]({'title':_0x3e9628('0x14ce'),'msg':(_0x3c1b8b[_0x3e9628('0x2123')][_0x3e9628('0x25d6')]||_0x3e9628('0x2123'))+_0x3e9628('0xcd9')}),_0x417bca(_0x3c1b8b[_0x3e9628('0x2123')]);})[_0x390fe0('0x253d')](function(_0x39341){var _0x4a1b19=_0x390fe0;if(_0x39341[_0x4a1b19('0x10fd')]&&_0x39341[_0x4a1b19('0x10fd')][_0x4a1b19('0x4c6')]&&_0x39341[_0x4a1b19('0x10fd')][_0x4a1b19('0x4c6')][_0x4a1b19('0x2587')]){_0x3c1b8b['errors']=_0x39341[_0x4a1b19('0x10fd')][_0x4a1b19('0x4c6')]||[{'message':_0x39341['toString'](),'type':_0x4a1b19('0x160b')}];for(var _0x32e8ab=0x0;_0x32e8ab<_0x39341[_0x4a1b19('0x10fd')][_0x4a1b19('0x4c6')][_0x4a1b19('0x2587')];_0x32e8ab++){_0x48c7f3[_0x4a1b19('0x187f')]({'title':_0x39341[_0x4a1b19('0x10fd')][_0x4a1b19('0x4c6')][_0x32e8ab]['type'],'msg':_0x39341[_0x4a1b19('0x10fd')][_0x4a1b19('0x4c6')][_0x32e8ab][_0x4a1b19('0x1402')]});}}else _0x48c7f3['error']({'title':_0x39341[_0x4a1b19('0x2fa')]?_0x4a1b19('0x16c2')+_0x39341[_0x4a1b19('0x2fa')]+_0x4a1b19('0x169e')+_0x39341['statusText']:_0x4a1b19('0x160b'),'msg':_0x39341[_0x4a1b19('0x10fd')]?JSON[_0x4a1b19('0xa48')](_0x39341['data']['message']):_0x39341[_0x4a1b19('0x1402')]||_0x39341[_0x4a1b19('0x684')]()});});},function(){});}function _0x19d5f9(_0x3d3bee){return _0x3d3bee===null?undefined:new Date(_0x3d3bee);}function _0x417bca(_0x1e30c2){var _0x4073b1=_0x3e345f;_0x25d366[_0x4073b1('0x1120')](_0x1e30c2);}}const _0x1bbe4a=_0x93cfb9;_0x4d3027[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x2123'),_0x1a8446('0x1d6c'),_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x4d3027(_0x17442b,_0x8efa27,_0x32e7ce,_0xb174c4,_0x358e5c,_0x4cfc8e,_0x1e936d,_0x12fe3a,_0x3325f9,_0xaafb7e){var _0x28dff3=_0x1a8446,_0x71da88=this;_0x71da88[_0x28dff3('0x7fc')]=_0x3325f9[_0x28dff3('0xacc')](),_0x71da88[_0x28dff3('0x2123')]=_0x358e5c,_0x71da88['crudPermissions']=_0xaafb7e,_0x71da88[_0x28dff3('0x4f3')]=_0x1e936d,_0x71da88['items']=[],_0x71da88[_0x28dff3('0x11b9')]=[],_0x71da88[_0x28dff3('0xbf7')]=[],_0x71da88[_0x28dff3('0x215b')]=[],_0x71da88[_0x28dff3('0x214a')]=[],_0x71da88[_0x28dff3('0xc54')]=![],_0x71da88[_0x28dff3('0x2318')]=_0xf18c,_0x71da88[_0x28dff3('0x17bb')]=_0x4a6fa2,_0x71da88[_0x28dff3('0x2023')]=_0x5d98fe,_0x71da88[_0x28dff3('0x1c23')]={'readOnly':!_0x71da88['crudPermissions'][_0x28dff3('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x28dff3('0x18e5'),'line2':['name',_0x28dff3('0x1b0d')],'line3':'','labelAll':_0x12fe3a[_0x28dff3('0x213f')]('VOICE.ALL_AGENTS'),'labelSelected':_0x12fe3a[_0x28dff3('0x213f')](_0x28dff3('0x1835')),'transferCallback':function _0x1edad9(){var _0x183fd5=_0x28dff3,_0x1b03d7=_0x51538b()[_0x183fd5('0x9ef')](_0x71da88[_0x183fd5('0x214a')],_0x71da88[_0x183fd5('0xbf7')],'id');_0x71da88[_0x183fd5('0xc54')]=_0x51538b()['isEmpty'](_0x1b03d7)?![]:!![];}};function _0xf18c(){var _0x47ff70=_0x28dff3;return _0x3325f9[_0x47ff70('0x26e8')](_0x47ff70('0x178b'))?_0x4947cf()[_0x47ff70('0x253d')](function(_0x159a51){var _0x55d776=_0x47ff70;_0x32e7ce['error']({'title':_0x159a51[_0x55d776('0x2fa')]?_0x55d776('0x16c2')+_0x159a51[_0x55d776('0x2fa')]+_0x55d776('0x169e')+_0x159a51[_0x55d776('0x24df')]:_0x55d776('0x14c6'),'msg':_0x159a51[_0x55d776('0x2fa')]?JSON['stringify'](_0x159a51[_0x55d776('0x10fd')]):_0x159a51[_0x55d776('0x684')]()});}):_0x4fa0f9()[_0x47ff70('0xaa5')](function(_0x21957c){return _0x71da88['section']=_0x21957c,_0x4947cf();})[_0x47ff70('0x253d')](function(_0x1d6bda){var _0x23bc59=_0x47ff70;_0x32e7ce[_0x23bc59('0x187f')]({'title':_0x1d6bda[_0x23bc59('0x2fa')]?_0x23bc59('0x16c2')+_0x1d6bda[_0x23bc59('0x2fa')]+_0x23bc59('0x169e')+_0x1d6bda[_0x23bc59('0x24df')]:_0x23bc59('0x14c6'),'msg':_0x1d6bda[_0x23bc59('0x2fa')]?JSON['stringify'](_0x1d6bda[_0x23bc59('0x10fd')]):_0x1d6bda['toString']()});});}function _0x4fa0f9(){return _0x8efa27(function(_0x2d962e,_0x5233d1){var _0x301406=a0_0x1149;_0xb174c4[_0x301406('0x1a50')][_0x301406('0x2122')]({'userProfileId':_0x71da88[_0x301406('0x7fc')][_0x301406('0x2168')],'name':_0x301406('0x91a')})[_0x301406('0x1dc2')][_0x301406('0xaa5')](function(_0x4dc3fa){var _0x4b8bfe=_0x301406,_0x4ab8a7=_0x4dc3fa&&_0x4dc3fa[_0x4b8bfe('0x580')]?_0x4dc3fa[_0x4b8bfe('0x580')][0x0]:null;_0x2d962e(_0x4ab8a7);})[_0x301406('0x253d')](function(_0x4e93de){_0x5233d1(_0x4e93de);});});}function _0x4947cf(){return _0x8efa27(function(_0x2d0f48,_0x589bd3){var _0x59839=a0_0x1149;return _0x5d80e3()[_0x59839('0xaa5')](function(_0x77f146){var _0x525c8b=_0x59839;return _0x71da88['items']=_0x77f146[_0x525c8b('0x580')]?_0x77f146[_0x525c8b('0x580')]:[],_0x3325f9['hasRole'](_0x525c8b('0x178b'))?_0x77f146:_0x71da88[_0x525c8b('0x224d')]?_0x71da88['section'][_0x525c8b('0x26cc')]?_0x77f146:_0xd9119():null;})[_0x59839('0xaa5')](function(_0x57d894){var _0xf83b98=_0x59839,_0x125de8=_0x57d894&&_0x57d894[_0xf83b98('0x580')]?_0x57d894['rows']:[];return _0x71da88['allowedItems']=_0x51538b()[_0xf83b98('0x1246')](_0x125de8,function(_0x2220b0){var _0x4919f8=_0xf83b98;return _0x51538b()[_0x4919f8('0xe9e')](_0x71da88[_0x4919f8('0x1a30')],{'id':_0x3325f9[_0x4919f8('0x26e8')]('admin')||_0x71da88['section'][_0x4919f8('0x26cc')]?_0x2220b0['id']:_0x2220b0['resourceId']});}),_0x71da88[_0xf83b98('0x215b')]=angular[_0xf83b98('0x20a')](_0x71da88['allowedItems']),_0x71da88['items'][_0xf83b98('0x15b5')](function(_0x14e899){var _0x419d04=_0xf83b98,_0x2970ac=_0x51538b()['find'](_0x71da88[_0x419d04('0x11b9')],{'id':_0x14e899['id']});_0x3325f9[_0x419d04('0x26e8')](_0x419d04('0x178b'))?_0x14e899['isValid']=!![]:_0x14e899[_0x419d04('0x145d')]=typeof _0x2970ac!==_0x419d04('0x1574')?!![]:![];}),_0x4c639b();})[_0x59839('0xaa5')](function(_0x4125c6){var _0x1b77bb=_0x59839,_0x112409=_0x4125c6&&_0x4125c6[_0x1b77bb('0x580')]?_0x4125c6[_0x1b77bb('0x580')]:[];_0x71da88[_0x1b77bb('0xbf7')]=_0x51538b()[_0x1b77bb('0x1246')](_0x112409,function(_0x265c01){var _0xe650ab=_0x1b77bb,_0x381260=_0x51538b()[_0xe650ab('0xe9e')](_0x71da88['items'],{'id':_0x265c01['id']});return _0x381260['penalty']=_0x265c01['UservoicePrefix']?_0xe650ab('0x17b0')+_0x265c01[_0xe650ab('0x267b')][_0xe650ab('0x2234')]:'',_0x381260[_0xe650ab('0x1b0d')]=typeof _0x265c01[_0xe650ab('0x1b0d')]!==_0xe650ab('0x1574')?'<'+_0x265c01[_0xe650ab('0x1b0d')]+'>':'',_0x381260;}),_0x71da88[_0x1b77bb('0x214a')]=angular[_0x1b77bb('0x20a')](_0x71da88[_0x1b77bb('0xbf7')]),_0x71da88[_0x1b77bb('0x1c23')][_0x1b77bb('0xbf7')]=_0x71da88['selectedItems'],_0x71da88[_0x1b77bb('0x1c23')][_0x1b77bb('0x1a30')]=_0x51538b()['differenceBy'](_0x71da88['allowedItems'],_0x71da88[_0x1b77bb('0x1c23')][_0x1b77bb('0xbf7')],'id'),_0x2d0f48();})[_0x59839('0x253d')](function(_0x396f6e){_0x589bd3(_0x396f6e);});});}function _0xd9119(){return _0x8efa27(function(_0x1d4f2d,_0x50ee63){var _0x2422b7=a0_0x1149;return _0xb174c4[_0x2422b7('0x249a')][_0x2422b7('0x2122')]({'sectionId':_0x71da88[_0x2422b7('0x224d')]['id'],'nolimit':!![]})[_0x2422b7('0x1dc2')]['then'](function(_0x2c2787){_0x1d4f2d(_0x2c2787);})[_0x2422b7('0x253d')](function(_0x35c725){_0x50ee63(_0x35c725);});});}function _0x4c639b(){return _0x8efa27(function(_0x511111,_0x424265){var _0x3938fe=a0_0x1149;return _0xb174c4[_0x3938fe('0x2123')]['getAgents']({'id':_0x71da88[_0x3938fe('0x2123')]['id'],'fields':_0x3938fe('0x283f'),'nolimit':!![],'role':_0x3938fe('0xeff')})[_0x3938fe('0x1dc2')][_0x3938fe('0xaa5')](function(_0x40a6a3){_0x511111(_0x40a6a3);})[_0x3938fe('0x253d')](function(_0x1d6a25){_0x424265(_0x1d6a25);});});}function _0x5d80e3(){return _0x8efa27(function(_0x3b9a15,_0x3b71b2){var _0x574eeb=a0_0x1149;return _0xb174c4[_0x574eeb('0x272b')]['get']({'fields':_0x574eeb('0x283f'),'nolimit':!![],'role':_0x574eeb('0xeff')})[_0x574eeb('0x1dc2')][_0x574eeb('0xaa5')](function(_0x4d004e){_0x3b9a15(_0x4d004e);})[_0x574eeb('0x253d')](function(_0x40d5fe){_0x3b71b2(_0x40d5fe);});});}function _0x3deb24(_0x487f51){return _0x8efa27(function(_0x3f3b07,_0x417175){var _0x2a11d5=a0_0x1149;_0x51538b()[_0x2a11d5('0x116b')](_0x487f51)?_0x3f3b07():_0xb174c4[_0x2a11d5('0x2123')]['addAgents']({'id':_0x71da88['voicePrefix']['id'],'ids':_0x51538b()[_0x2a11d5('0x1246')](_0x487f51,'id')})[_0x2a11d5('0x1dc2')][_0x2a11d5('0xaa5')](function(){_0x3f3b07();})[_0x2a11d5('0x253d')](function(_0x5353ea){_0x417175(_0x5353ea);});});}function _0x56137b(_0x473f57){return _0x8efa27(function(_0x28cd56,_0x2bb9e5){var _0xb49fa5=a0_0x1149;_0x51538b()[_0xb49fa5('0x116b')](_0x473f57)?_0x28cd56():_0xb174c4[_0xb49fa5('0x2123')][_0xb49fa5('0x258e')]({'id':_0x71da88[_0xb49fa5('0x2123')]['id'],'ids':_0x51538b()[_0xb49fa5('0x1246')](_0x473f57,'id')})[_0xb49fa5('0x1dc2')][_0xb49fa5('0xaa5')](function(){_0x28cd56();})[_0xb49fa5('0x253d')](function(_0x3162e4){_0x2bb9e5(_0x3162e4);});});}function _0x4a6fa2(){var _0x2c54c3=_0x28dff3,_0x1c0d4f=_0x51538b()['differenceBy'](_0x71da88[_0x2c54c3('0x214a')],_0x71da88[_0x2c54c3('0xbf7')],'id'),_0x476a54=_0x51538b()[_0x2c54c3('0x1ebb')](_0x71da88['selectedItems'],_0x71da88[_0x2c54c3('0x214a')],'id');return _0x56137b(_0x1c0d4f)[_0x2c54c3('0xaa5')](function(){return _0x3deb24(_0x476a54);})[_0x2c54c3('0xaa5')](function(){var _0x4a3ede=_0x2c54c3;_0x71da88[_0x4a3ede('0xc54')]=![],_0x71da88[_0x4a3ede('0x215b')]=angular[_0x4a3ede('0x20a')](_0x71da88[_0x4a3ede('0x11b9')]),_0x71da88[_0x4a3ede('0x214a')]=angular['copy'](_0x71da88[_0x4a3ede('0xbf7')]),_0x32e7ce[_0x4a3ede('0xe10')]({'title':_0x4a3ede('0x2eb'),'msg':_0x4a3ede('0xc60')});})[_0x2c54c3('0x253d')](function(_0x518211){var _0x374baf=_0x2c54c3;_0x32e7ce[_0x374baf('0x187f')]({'title':_0x518211[_0x374baf('0x2fa')]?_0x374baf('0x16c2')+_0x518211[_0x374baf('0x2fa')]+_0x374baf('0x169e')+_0x518211['statusText']:_0x374baf('0x2281'),'msg':_0x518211['status']?JSON[_0x374baf('0xa48')](_0x518211['data']):_0x518211[_0x374baf('0x684')]()});});}function _0x5d98fe(){_0x17442b['hide']();}}const _0x491d3c=_0x4d3027,_0x26c871=_0x4fb511['p']+_0x1a8446('0x1534'),_0x31c274=_0x4fb511['p']+_0x1a8446('0x1365');_0x52bc0b[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout','$translate',_0x1a8446('0x1d6c'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'api','msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x52bc0b(_0x9cf15c,_0x6b2bdf,_0x5db55f,_0x5daf87,_0x4cb90e,_0xd82aee,_0x3277c6,_0x1022d9,_0x67ceb4,_0x181bf9,_0x440978,_0x3ff0de,_0x282e29,_0x271b59,_0x4fa86b,_0x23cc55,_0x1873f3){var _0x18d2ca=_0x1a8446,_0x10da0a=this;_0x10da0a[_0x18d2ca('0x1202')]=_0x23cc55,_0x10da0a[_0x18d2ca('0x143f')]=_0x1873f3,_0x10da0a[_0x18d2ca('0x7fc')]=_0x4fa86b['getCurrentUser'](),_0x10da0a['voicePrefixes']=_0x67ceb4||{'count':0x0,'rows':[]},_0x10da0a[_0x18d2ca('0x1e97')]=_0x181bf9,_0x10da0a[_0x18d2ca('0x1a50')]=_0x440978&&_0x440978['count']==0x1?_0x440978['rows'][0x0]:null,_0x10da0a['crudPermissions']=_0x4fa86b[_0x18d2ca('0xffd')](_0x10da0a[_0x18d2ca('0x1a50')]?_0x10da0a[_0x18d2ca('0x1a50')][_0x18d2ca('0xada')]:null),_0x10da0a[_0x18d2ca('0x12b6')]=_0x18d2ca('0x1d6c'),_0x10da0a[_0x18d2ca('0x164')]='',_0x10da0a[_0x18d2ca('0x8cc')]=null,_0x10da0a['selectedVoicePrefixes']=[],_0x10da0a['query']={'fields':_0x18d2ca('0x178d'),'limit':0xa,'page':0x1},_0x10da0a[_0x18d2ca('0x1960')]=_0x56c8bb,_0x10da0a[_0x18d2ca('0x16a5')]=_0x421955,_0x10da0a[_0x18d2ca('0x271')]=_0x397d13,_0x10da0a[_0x18d2ca('0xe10')]=_0x2bb554,_0x10da0a['getVoicePrefixes']=_0x174914,_0x10da0a[_0x18d2ca('0xa7f')]=_0x130be1,_0x10da0a[_0x18d2ca('0x1b7d')]=_0x41409c,_0x10da0a[_0x18d2ca('0x2140')]=_0x59f4f5,_0x10da0a[_0x18d2ca('0xb03')]=_0x2402d6,_0x10da0a[_0x18d2ca('0x12d2')]=_0x1ec79c,_0x10da0a[_0x18d2ca('0x2046')]=_0x1bb787,_0x4fa86b[_0x18d2ca('0x26e8')](_0x18d2ca('0x178b'))?_0x3ff0de['voiceExtension'][_0x18d2ca('0x2122')]({'fields':_0x18d2ca('0x1ceb'),'type':_0x18d2ca('0x19d1'),'VoiceExtensionId':_0x18d2ca('0x1ed9'),'nolimit':_0x18d2ca('0x1c5c')})['$promise'][_0x18d2ca('0xaa5')](function(_0x4a558a){var _0x3a7adf=_0x18d2ca;_0x10da0a[_0x3a7adf('0xe59')]=_0x4a558a[_0x3a7adf('0x580')]||[];})[_0x18d2ca('0x253d')](function(_0xc9c24e){var _0x5ac883=_0x18d2ca;_0x271b59[_0x5ac883('0x187f')]({'title':_0xc9c24e[_0x5ac883('0x2fa')]?_0x5ac883('0x16c2')+_0xc9c24e['status']+'\x20-\x20'+_0xc9c24e['statusText']:_0x5ac883('0x1f25'),'msg':_0xc9c24e['data']?JSON[_0x5ac883('0xa48')](_0xc9c24e[_0x5ac883('0x10fd')]):_0xc9c24e[_0x5ac883('0x684')]()});}):_0x3ff0de[_0x18d2ca('0x1361')][_0x18d2ca('0x2122')]({'fields':'id,exten','type':_0x18d2ca('0x19d1'),'VoiceExtensionId':_0x18d2ca('0x1ed9'),'nolimit':'true'})[_0x18d2ca('0x1dc2')][_0x18d2ca('0xaa5')](function(_0x5c2f76){var _0x46114b=_0x18d2ca;_0x10da0a[_0x46114b('0xe59')]=_0x5c2f76[_0x46114b('0x580')]||[];})[_0x18d2ca('0xaa5')](function(){var _0x143512=_0x18d2ca;return _0x3ff0de[_0x143512('0x1a50')]['get']({'userProfileId':_0x10da0a[_0x143512('0x7fc')][_0x143512('0x2168')],'sectionId':0x193})[_0x143512('0x1dc2')];})[_0x18d2ca('0xaa5')](function(_0x188a9a){var _0x2091bf=_0x18d2ca,_0x3875c0=_0x188a9a&&_0x188a9a[_0x2091bf('0x580')]?_0x188a9a[_0x2091bf('0x580')][0x0]:null;if(!_0x3875c0){var _0x4b901e=[],_0x470f50=null;_0x10da0a[_0x2091bf('0x2123')]&&(_0x470f50=_0x51538b()[_0x2091bf('0xe9e')](_0x10da0a[_0x2091bf('0xe59')],{'id':Number(_0x10da0a[_0x2091bf('0x2123')]['VoiceExtensionId'])}));for(var _0x5c3d77=0x0;_0x5c3d77<_0x10da0a[_0x2091bf('0xe59')][_0x2091bf('0x2587')];_0x5c3d77++){_0x470f50&&_0x10da0a[_0x2091bf('0xe59')][_0x5c3d77]['id']===_0x470f50['id']&&(_0x10da0a[_0x2091bf('0xe59')][_0x5c3d77][_0x2091bf('0x12eb')]=![],_0x4b901e[_0x2091bf('0x1599')](_0x10da0a[_0x2091bf('0xe59')][_0x5c3d77]));}_0x10da0a[_0x2091bf('0xe59')]=_0x4b901e;}else{if(!_0x3875c0[_0x2091bf('0x26cc')])return _0x3ff0de[_0x2091bf('0x249a')][_0x2091bf('0x2122')]({'sectionId':_0x3875c0['id']})['$promise'][_0x2091bf('0xaa5')](function(_0x95e957){var _0x362141=_0x2091bf,_0x52bafa=_0x51538b()[_0x362141('0x1246')](_0x95e957[_0x362141('0x580')],function(_0x16a18c){var _0x50a3cb=_0x362141;return _0x51538b()['find'](_0x10da0a[_0x50a3cb('0xe59')],{'id':_0x16a18c[_0x50a3cb('0xbcd')]});}),_0x11d281=null;_0x10da0a[_0x362141('0x2123')]&&(_0x11d281=_0x51538b()[_0x362141('0xe9e')](_0x10da0a[_0x362141('0xe59')],{'id':Number(_0x10da0a['voicePrefix'][_0x362141('0x1a70')])}));if(_0x11d281&&!_0x51538b()['some'](_0x52bafa,['id',_0x11d281['id']])){var _0x364b67=_0x51538b()[_0x362141('0xe9e')](_0x10da0a[_0x362141('0xe59')],{'id':_0x11d281['id']});_0x364b67[_0x362141('0x12eb')]=![],_0x52bafa[_0x362141('0x1599')](_0x364b67);}_0x10da0a[_0x362141('0xe59')]=_0x52bafa;});}})[_0x18d2ca('0x253d')](function(_0x31e96d){var _0x1e22e8=_0x18d2ca;_0x271b59[_0x1e22e8('0x187f')]({'title':_0x31e96d[_0x1e22e8('0x2fa')]?_0x1e22e8('0x16c2')+_0x31e96d[_0x1e22e8('0x2fa')]+'\x20-\x20'+_0x31e96d[_0x1e22e8('0x24df')]:'SYSTEM:GEToutboundRoutes','msg':_0x31e96d[_0x1e22e8('0x10fd')]?JSON['stringify'](_0x31e96d[_0x1e22e8('0x10fd')]):_0x31e96d[_0x1e22e8('0x684')]()});});function _0x56c8bb(_0x25bf6b,_0x1e76c0){var _0x40837a=_0x18d2ca;_0x4cb90e[_0x40837a('0x1e6d')]({'controller':_0x40837a('0x1bc5'),'controllerAs':'vm','templateUrl':_0x26c871,'parent':angular[_0x40837a('0x1aa8')](_0xd82aee[_0x40837a('0x54c')]),'targetEvent':_0x1e76c0,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x25bf6b,'voicePrefixes':_0x10da0a[_0x40837a('0x1d6c')]['rows'],'license':_0x10da0a[_0x40837a('0x1202')],'setting':null,'crudPermissions':_0x10da0a[_0x40837a('0xada')]}});}function _0x421955(_0x52a0c9,_0x411198){var _0x92a77f=_0x18d2ca;_0x4cb90e[_0x92a77f('0x1e6d')]({'controller':_0x92a77f('0x1a3c'),'controllerAs':'vm','templateUrl':_0x31c274,'parent':angular[_0x92a77f('0x1aa8')](_0xd82aee[_0x92a77f('0x54c')]),'targetEvent':_0x411198,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x52a0c9,'voicePrefixes':_0x10da0a[_0x92a77f('0x1d6c')]?_0x10da0a[_0x92a77f('0x1d6c')][_0x92a77f('0x580')]:[],'crudPermissions':_0x10da0a[_0x92a77f('0xada')],'realtime':![]}});}function _0x397d13(_0x4ca5ce,_0x30f504){var _0x180f9f=_0x18d2ca,_0x171fd3=_0x4cb90e[_0x180f9f('0x281e')]()[_0x180f9f('0x110a')](_0x180f9f('0x88d')+_0x51538b()['startCase']('voicePrefix')+'?')['htmlContent'](_0x180f9f('0x389')+(_0x4ca5ce['name']||_0x180f9f('0x2123'))+_0x180f9f('0x697')+'\x20will\x20be\x20deleted.')[_0x180f9f('0x5b5')](_0x180f9f('0x476'))['targetEvent'](_0x30f504)['ok']('OK')[_0x180f9f('0x2030')](_0x180f9f('0x2410'));_0x4cb90e['show'](_0x171fd3)[_0x180f9f('0xaa5')](function(){_0x41409c(_0x4ca5ce);},function(){var _0x25aa77=_0x180f9f;console[_0x25aa77('0x18d5')](_0x25aa77('0x2410'));});}var _0x1573f5=!![],_0x347652=0x1;_0x9cf15c[_0x18d2ca('0x1ccf')](_0x18d2ca('0x1788'),function(_0x349b86,_0x2aa286){var _0x463142=_0x18d2ca;_0x1573f5?_0x3277c6(function(){_0x1573f5=![];}):(!_0x2aa286&&(_0x347652=_0x10da0a[_0x463142('0x582')][_0x463142('0x41')]),_0x349b86!==_0x2aa286&&(_0x10da0a['query'][_0x463142('0x41')]=0x1),!_0x349b86&&(_0x10da0a[_0x463142('0x582')]['page']=_0x347652),_0x10da0a[_0x463142('0x1b0c')]());});function _0x2bb554(_0x3b465d){_0x10da0a['voicePrefixes']=_0x3b465d||{'count':0x0,'rows':[]};}function _0x174914(){var _0x56944b=_0x18d2ca;_0x10da0a[_0x56944b('0x582')][_0x56944b('0x8b1')]=(_0x10da0a[_0x56944b('0x582')]['page']-0x1)*_0x10da0a[_0x56944b('0x582')][_0x56944b('0xf4d')],_0x4fa86b[_0x56944b('0x26e8')]('admin')?_0x10da0a[_0x56944b('0x159a')]=_0x3ff0de[_0x56944b('0x2123')]['get'](_0x10da0a[_0x56944b('0x582')],_0x2bb554)['$promise']:(_0x10da0a['query']['id']=_0x10da0a[_0x56944b('0x1e97')]['id'],_0x10da0a[_0x56944b('0x582')][_0x56944b('0x224d')]=_0x56944b('0x6f8'),_0x10da0a[_0x56944b('0x159a')]=_0x3ff0de['userProfile'][_0x56944b('0x1cf1')](_0x10da0a['query'],_0x2bb554)[_0x56944b('0x1dc2')]);}function _0x130be1(_0x577083,_0x1313c8){var _0x509a92=_0x18d2ca;_0x4cb90e['show']({'controller':_0x509a92('0x1bc5'),'controllerAs':'vm','templateUrl':_0x26c871,'parent':angular[_0x509a92('0x1aa8')](_0xd82aee['body']),'targetEvent':_0x577083,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x1313c8,'voicePrefixes':_0x10da0a['voicePrefixes'][_0x509a92('0x580')],'license':_0x10da0a[_0x509a92('0x1202')],'setting':_0x10da0a[_0x509a92('0x143f')],'crudPermissions':_0x10da0a['crudPermissions']}});}function _0x41409c(_0x354c73){var _0x2a0817=_0x18d2ca;_0x3ff0de[_0x2a0817('0x2123')]['delete']({'id':_0x354c73['id']})[_0x2a0817('0x1dc2')][_0x2a0817('0xaa5')](function(){var _0x200840=_0x2a0817;_0x51538b()[_0x200840('0xf6d')](_0x10da0a[_0x200840('0x1d6c')][_0x200840('0x580')],{'id':_0x354c73['id']}),_0x10da0a[_0x200840('0x1d6c')][_0x200840('0xd15')]-=0x1,!_0x10da0a['voicePrefixes'][_0x200840('0x580')][_0x200840('0x2587')]&&_0x10da0a[_0x200840('0x1b0c')](),_0x271b59[_0x200840('0xe10')]({'title':_0x51538b()[_0x200840('0x196a')]('voicePrefix')+_0x200840('0x8bb'),'msg':_0x354c73[_0x200840('0x25d6')]?_0x354c73[_0x200840('0x25d6')]+_0x200840('0xcd9'):''});})[_0x2a0817('0x253d')](function(_0x6620ad){var _0x8050fc=_0x2a0817;if(_0x6620ad['data']&&_0x6620ad[_0x8050fc('0x10fd')]['errors']&&_0x6620ad[_0x8050fc('0x10fd')]['errors'][_0x8050fc('0x2587')]){_0x10da0a[_0x8050fc('0x4c6')]=_0x6620ad[_0x8050fc('0x10fd')][_0x8050fc('0x4c6')]||[{'message':_0x6620ad['toString'](),'type':'SYSTEM:DELETEvoicePrefix'}];for(var _0x52158c=0x0;_0x52158c<_0x6620ad[_0x8050fc('0x10fd')][_0x8050fc('0x4c6')][_0x8050fc('0x2587')];_0x52158c++){_0x271b59[_0x8050fc('0x187f')]({'title':_0x6620ad['data'][_0x8050fc('0x4c6')][_0x52158c][_0x8050fc('0x6c8')],'msg':_0x6620ad['data'][_0x8050fc('0x4c6')][_0x52158c][_0x8050fc('0x1402')]});}}else _0x271b59['error']({'title':_0x6620ad[_0x8050fc('0x2fa')]?_0x8050fc('0x16c2')+_0x6620ad['status']+_0x8050fc('0x169e')+_0x6620ad[_0x8050fc('0x24df')]:_0x8050fc('0xf3a'),'msg':_0x6620ad[_0x8050fc('0x10fd')]?JSON[_0x8050fc('0xa48')](_0x6620ad[_0x8050fc('0x10fd')][_0x8050fc('0x1402')]):_0x6620ad['message']||_0x6620ad['toString']()});});}function _0x59f4f5(){var _0x12ae00=_0x18d2ca,_0x31bdb8=angular[_0x12ae00('0x20a')](_0x10da0a[_0x12ae00('0x257a')]);return _0x10da0a[_0x12ae00('0x257a')]=[],_0x31bdb8;}function _0x2402d6(_0x178df4){var _0x2c6761=_0x18d2ca,_0x1e81da=_0x4cb90e[_0x2c6761('0x281e')]()[_0x2c6761('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicePrefixes?')[_0x2c6761('0x102e')](_0x2c6761('0x389')+_0x10da0a[_0x2c6761('0x257a')]['length']+_0x2c6761('0x1443')+_0x2c6761('0x210d'))['ariaLabel'](_0x2c6761('0x33d'))['targetEvent'](_0x178df4)['ok']('OK')[_0x2c6761('0x2030')](_0x2c6761('0x2410'));_0x4cb90e[_0x2c6761('0x1e6d')](_0x1e81da)[_0x2c6761('0xaa5')](function(){var _0x35313f=_0x2c6761;_0x10da0a[_0x35313f('0x257a')][_0x35313f('0x15b5')](function(_0xf27b83){_0x41409c(_0xf27b83);}),_0x10da0a[_0x35313f('0x257a')]=[];});}function _0x1ec79c(){var _0x46e532=_0x18d2ca;_0x10da0a[_0x46e532('0x257a')]=[];}function _0x1bb787(){var _0x52547f=_0x18d2ca;_0x10da0a[_0x52547f('0x257a')]=_0x10da0a[_0x52547f('0x1d6c')][_0x52547f('0x580')];}}const _0x9622e=_0x52bc0b;_0x4c2ef8[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0xac0'),'voiceQueue',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),'crudPermissions'];function _0x4c2ef8(_0x2bd3e2,_0x19cfcf,_0x1302af,_0xe1c36e,_0x1a9d8b,_0x4c57dd,_0x2f7e77,_0x34f1d2,_0x23cb0f,_0x1ea70d,_0x392378,_0x5e5096,_0x207355,_0xbaf4b){var _0x55b957=_0x1a8446,_0x2e778b=this;_0x2e778b[_0x55b957('0x7fc')]=_0x392378[_0x55b957('0xacc')](),_0x2e778b['errors']=[],_0x2e778b[_0x55b957('0x143f')]=_0x207355,_0x2e778b[_0x55b957('0x1202')]=_0x5e5096,_0x2e778b[_0x55b957('0xada')]=_0xbaf4b,_0x2e778b[_0x55b957('0x9f0')]={},_0x2e778b[_0x55b957('0x1d53')]=_0x2e778b[_0x55b957('0x143f')]&&_0x2e778b[_0x55b957('0x143f')][_0x55b957('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2e778b[_0x55b957('0x110a')]=_0x55b957('0xc74'),_0x2e778b[_0x55b957('0x1588')]=angular[_0x55b957('0x20a')](_0x23cb0f),_0x2e778b[_0x55b957('0xac0')]=_0x34f1d2,_0x2e778b[_0x55b957('0x3a5')]=![];!_0x2e778b['voiceQueue']&&(_0x2e778b[_0x55b957('0x1588')]={'type':_0x55b957('0x4b8'),'strategy':'ringall','timeout':0xf,'retry':0x2,'random_periodic_announce':'no','announce_holdtime':'no','announce_position':'no','reportholdtime':'no','autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no'},_0x2e778b[_0x55b957('0x110a')]=_0x55b957('0xf86'),_0x2e778b[_0x55b957('0x3a5')]=!![]);_0x2e778b[_0x55b957('0x1e91')]=_0x563883,_0x2e778b[_0x55b957('0x8dc')]=_0x1a2b17,_0x2e778b[_0x55b957('0x14b')]=_0x2f1bc5,_0x2e778b['getDateFromString']=_0xb793f2,_0x2e778b[_0x55b957('0x2023')]=_0x4a708a;function _0x563883(){var _0x5a2912=_0x55b957;_0x2e778b[_0x5a2912('0x4c6')]=[],_0x1ea70d[_0x5a2912('0x1588')][_0x5a2912('0x242b')](_0x2e778b[_0x5a2912('0x1588')])[_0x5a2912('0x1dc2')]['then'](function(_0x223354){var _0x44da97=_0x5a2912;_0x2e778b[_0x44da97('0xac0')][_0x44da97('0x6ee')](_0x223354[_0x44da97('0x256a')]()),_0x2f7e77[_0x44da97('0xe10')]({'title':_0x44da97('0x21d7'),'msg':_0x2e778b[_0x44da97('0x1588')]['name']?_0x2e778b['voiceQueue']['name']+'\x20has\x20been\x20created!':''}),_0x4a708a(_0x223354);})[_0x5a2912('0x253d')](function(_0x54c0ca){var _0x4bda24=_0x5a2912;if(_0x54c0ca['data']&&_0x54c0ca[_0x4bda24('0x10fd')][_0x4bda24('0x4c6')]&&_0x54c0ca[_0x4bda24('0x10fd')][_0x4bda24('0x4c6')][_0x4bda24('0x2587')]){_0x2e778b[_0x4bda24('0x4c6')]=_0x54c0ca[_0x4bda24('0x10fd')][_0x4bda24('0x4c6')]||[{'message':_0x54c0ca[_0x4bda24('0x684')](),'type':'api.voiceQueue.save'}];for(var _0x4ffd6b=0x0;_0x4ffd6b<_0x54c0ca[_0x4bda24('0x10fd')][_0x4bda24('0x4c6')]['length'];_0x4ffd6b+=0x1){_0x2f7e77['error']({'title':_0x54c0ca[_0x4bda24('0x10fd')]['errors'][_0x4ffd6b]['type'],'msg':_0x54c0ca['data'][_0x4bda24('0x4c6')][_0x4ffd6b][_0x4bda24('0x1402')]});}}else _0x2f7e77[_0x4bda24('0x187f')]({'title':_0x54c0ca[_0x4bda24('0x2fa')]?'API:'+_0x54c0ca[_0x4bda24('0x2fa')]+_0x4bda24('0x169e')+_0x54c0ca[_0x4bda24('0x24df')]:'api.voiceQueue.save','msg':_0x54c0ca[_0x4bda24('0x10fd')]?JSON[_0x4bda24('0xa48')](_0x54c0ca[_0x4bda24('0x10fd')][_0x4bda24('0x1402')]):_0x54c0ca[_0x4bda24('0x684')]()});});}function _0x1a2b17(){var _0x563a34=_0x55b957;_0x2e778b[_0x563a34('0x4c6')]=[],_0x1ea70d[_0x563a34('0x1588')]['update']({'id':_0x2e778b[_0x563a34('0x1588')]['id']},_0x2e778b['voiceQueue'])[_0x563a34('0x1dc2')]['then'](function(_0x481edd){var _0x3b0d25=_0x563a34,_0x2c0f67=_0x51538b()[_0x3b0d25('0xe9e')](_0x2e778b[_0x3b0d25('0xac0')],{'id':_0x481edd['id']});_0x2c0f67&&_0x51538b()['merge'](_0x2c0f67,_0x51538b()[_0x3b0d25('0x104e')](_0x481edd[_0x3b0d25('0x256a')](),_0x51538b()[_0x3b0d25('0x9f2')](_0x2c0f67))),_0x2f7e77[_0x3b0d25('0xe10')]({'title':'VoiceQueue\x20properly\x20saved!','msg':_0x2e778b[_0x3b0d25('0x1588')][_0x3b0d25('0x25d6')]?_0x2e778b[_0x3b0d25('0x1588')][_0x3b0d25('0x25d6')]+_0x3b0d25('0x20bf'):''}),_0x4a708a(_0x481edd);})['catch'](function(_0x3a4aa9){var _0x440eba=_0x563a34;if(_0x3a4aa9[_0x440eba('0x10fd')]&&_0x3a4aa9['data']['errors']&&_0x3a4aa9[_0x440eba('0x10fd')][_0x440eba('0x4c6')][_0x440eba('0x2587')]){_0x2e778b['errors']=_0x3a4aa9['data'][_0x440eba('0x4c6')]||[{'message':_0x3a4aa9[_0x440eba('0x684')](),'type':_0x440eba('0x970')}];for(var _0x225cb9=0x0;_0x225cb9<_0x3a4aa9[_0x440eba('0x10fd')][_0x440eba('0x4c6')][_0x440eba('0x2587')];_0x225cb9++){_0x2f7e77[_0x440eba('0x187f')]({'title':_0x3a4aa9[_0x440eba('0x10fd')]['errors'][_0x225cb9][_0x440eba('0x6c8')],'msg':_0x3a4aa9['data'][_0x440eba('0x4c6')][_0x225cb9][_0x440eba('0x1402')]});}}else _0x2f7e77[_0x440eba('0x187f')]({'title':_0x3a4aa9['status']?_0x440eba('0x16c2')+_0x3a4aa9['status']+'\x20-\x20'+_0x3a4aa9[_0x440eba('0x24df')]:_0x440eba('0x970'),'msg':_0x3a4aa9[_0x440eba('0x10fd')]?JSON[_0x440eba('0xa48')](_0x3a4aa9[_0x440eba('0x10fd')]['message']):_0x3a4aa9[_0x440eba('0x684')]()});});}function _0x2f1bc5(_0x5f28da){var _0x4cc88e=_0x55b957;_0x2e778b[_0x4cc88e('0x4c6')]=[];var _0x508b57=_0xe1c36e['confirm']()['title']('Are\x20you\x20sure?')[_0x4cc88e('0x15af')](_0x4cc88e('0x2400'))[_0x4cc88e('0x5b5')](_0x4cc88e('0x1107'))['ok'](_0x4cc88e('0x1e76'))[_0x4cc88e('0x2030')](_0x4cc88e('0x9c6'))['targetEvent'](_0x5f28da);_0xe1c36e[_0x4cc88e('0x1e6d')](_0x508b57)[_0x4cc88e('0xaa5')](function(){var _0x429921=_0x4cc88e;_0x1ea70d[_0x429921('0x1588')]['delete']({'id':_0x2e778b[_0x429921('0x1588')]['id']})[_0x429921('0x1dc2')][_0x429921('0xaa5')](function(){var _0x29718=_0x429921;_0x51538b()[_0x29718('0xf6d')](_0x2e778b[_0x29718('0xac0')],{'id':_0x2e778b[_0x29718('0x1588')]['id']}),_0x2f7e77['success']({'title':_0x29718('0x51b'),'msg':(_0x2e778b[_0x29718('0x1588')][_0x29718('0x25d6')]||'voiceQueue')+'\x20has\x20been\x20deleted!'}),_0x4a708a(_0x2e778b[_0x29718('0x1588')]);})[_0x429921('0x253d')](function(_0x490187){var _0xf18e11=_0x429921;if(_0x490187['data']&&_0x490187[_0xf18e11('0x10fd')][_0xf18e11('0x4c6')]&&_0x490187[_0xf18e11('0x10fd')]['errors'][_0xf18e11('0x2587')]){_0x2e778b[_0xf18e11('0x4c6')]=_0x490187['data']['errors']||[{'message':_0x490187[_0xf18e11('0x684')](),'type':_0xf18e11('0x690')}];for(var _0x4ae340=0x0;_0x4ae340<_0x490187[_0xf18e11('0x10fd')][_0xf18e11('0x4c6')][_0xf18e11('0x2587')];_0x4ae340++){_0x2f7e77[_0xf18e11('0x187f')]({'title':_0x490187['data'][_0xf18e11('0x4c6')][_0x4ae340]['type'],'msg':_0x490187[_0xf18e11('0x10fd')][_0xf18e11('0x4c6')][_0x4ae340][_0xf18e11('0x1402')]});}}else _0x2f7e77[_0xf18e11('0x187f')]({'title':_0x490187[_0xf18e11('0x2fa')]?_0xf18e11('0x16c2')+_0x490187[_0xf18e11('0x2fa')]+_0xf18e11('0x169e')+_0x490187[_0xf18e11('0x24df')]:_0xf18e11('0x690'),'msg':_0x490187[_0xf18e11('0x10fd')]?JSON['stringify'](_0x490187[_0xf18e11('0x10fd')]['message']):_0x490187['message']||_0x490187[_0xf18e11('0x684')]()});});},function(){});}function _0xb793f2(_0x521600){return _0x521600===null?undefined:new Date(_0x521600);}function _0x4a708a(_0x2c8509){_0xe1c36e['hide'](_0x2c8509);}}const _0x21403c=_0x4c2ef8;_0x32f375[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty','api',_0x1a8446('0x1588'),_0x1a8446('0xac0'),_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x32f375(_0x56ac74,_0x4fb563,_0x23f945,_0x453038,_0x22641b,_0x4c6f36,_0x2501cd,_0x3dc4ad,_0x4b2dda,_0x1e320a){var _0x36dcd4=_0x1a8446,_0x20ec85=this;_0x20ec85[_0x36dcd4('0x7fc')]=_0x4b2dda[_0x36dcd4('0xacc')](),_0x20ec85[_0x36dcd4('0x1588')]=_0x22641b,_0x20ec85['crudPermissions']=_0x1e320a,_0x20ec85[_0x36dcd4('0x2234')]=0x0,_0x20ec85[_0x36dcd4('0x4f3')]=_0x2501cd,_0x20ec85['items']=[],_0x20ec85['allowedItems']=[],_0x20ec85[_0x36dcd4('0xbf7')]=[],_0x20ec85[_0x36dcd4('0x215b')]=[],_0x20ec85['startingSelectedItems']=[],_0x20ec85[_0x36dcd4('0xc54')]=![],_0x20ec85[_0x36dcd4('0x2318')]=_0x45055a,_0x20ec85[_0x36dcd4('0x17bb')]=_0x5a6d60,_0x20ec85[_0x36dcd4('0x2023')]=_0xe351cd,_0x20ec85[_0x36dcd4('0x1c23')]={'readOnly':!_0x20ec85['crudPermissions']['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x36dcd4('0x25d6'),'line1':'fullname','line2':['name',_0x36dcd4('0x1b0d')],'line3':'penalty','labelAll':_0x3dc4ad['instant'](_0x36dcd4('0x1738')),'labelSelected':_0x3dc4ad['instant']('VOICE.SELECTED_AGENTS'),'transferCallback':function _0x275227(_0x52046d,_0x52c1c9){var _0x29f56e=_0x36dcd4;_0x52c1c9?_0x52046d[_0x29f56e('0x15b5')](function(_0x2c5953){var _0x1d7893=_0x29f56e;_0x2c5953[_0x1d7893('0x2234')]=undefined;}):_0x52046d['forEach'](function(_0x38d5e7){var _0x225c9d=_0x29f56e;_0x38d5e7[_0x225c9d('0x2234')]=_0x225c9d('0x17b0')+_0x20ec85['penalty'];});var _0x51eb41=_0x51538b()[_0x29f56e('0x1d8a')](_0x20ec85[_0x29f56e('0x214a')],_0x20ec85[_0x29f56e('0xbf7')],function(_0x68d13e,_0x17e741){var _0x1a720c=_0x29f56e;return _0x68d13e['id']===_0x17e741['id']&&_0x68d13e[_0x1a720c('0x2234')]===_0x17e741[_0x1a720c('0x2234')];});_0x20ec85[_0x29f56e('0xc54')]=_0x51538b()[_0x29f56e('0x116b')](_0x51eb41)?![]:!![];}};function _0x45055a(){var _0xfdd70d=_0x36dcd4;return _0x4b2dda[_0xfdd70d('0x26e8')]('admin')?_0x5d4735()['catch'](function(_0x30acbe){var _0x374449=_0xfdd70d;_0x23f945[_0x374449('0x187f')]({'title':_0x30acbe[_0x374449('0x2fa')]?_0x374449('0x16c2')+_0x30acbe[_0x374449('0x2fa')]+_0x374449('0x169e')+_0x30acbe[_0x374449('0x24df')]:_0x374449('0x14c6'),'msg':_0x30acbe[_0x374449('0x2fa')]?JSON[_0x374449('0xa48')](_0x30acbe[_0x374449('0x10fd')]):_0x30acbe[_0x374449('0x684')]()});}):_0x54fc13()['then'](function(_0x46a805){return _0x20ec85['section']=_0x46a805,_0x5d4735();})[_0xfdd70d('0x253d')](function(_0x514585){var _0x452236=_0xfdd70d;_0x23f945[_0x452236('0x187f')]({'title':_0x514585['status']?'API:'+_0x514585[_0x452236('0x2fa')]+_0x452236('0x169e')+_0x514585['statusText']:'SYSTEM:GET_AGENTS','msg':_0x514585[_0x452236('0x2fa')]?JSON[_0x452236('0xa48')](_0x514585[_0x452236('0x10fd')]):_0x514585[_0x452236('0x684')]()});});}function _0x54fc13(){return _0x4fb563(function(_0x27de72,_0x4bb528){var _0x2b526e=a0_0x1149;_0x453038[_0x2b526e('0x1a50')]['get']({'userProfileId':_0x20ec85[_0x2b526e('0x7fc')][_0x2b526e('0x2168')],'name':_0x2b526e('0x91a')})[_0x2b526e('0x1dc2')][_0x2b526e('0xaa5')](function(_0x30c0be){var _0x266377=_0x2b526e,_0x11df6e=_0x30c0be&&_0x30c0be[_0x266377('0x580')]?_0x30c0be['rows'][0x0]:null;_0x27de72(_0x11df6e);})['catch'](function(_0x1e0002){_0x4bb528(_0x1e0002);});});}function _0x5d4735(){return _0x4fb563(function(_0x4620b8,_0x2e7359){var _0x3119dd=a0_0x1149;return _0x4908d8()[_0x3119dd('0xaa5')](function(_0x1baab3){var _0x1a8483=_0x3119dd;return _0x20ec85[_0x1a8483('0x1a30')]=_0x1baab3[_0x1a8483('0x580')]?_0x1baab3[_0x1a8483('0x580')]:[],_0x4b2dda['hasRole'](_0x1a8483('0x178b'))?_0x1baab3:_0x20ec85[_0x1a8483('0x224d')]?_0x20ec85[_0x1a8483('0x224d')][_0x1a8483('0x26cc')]?_0x1baab3:_0x1bad9b():null;})[_0x3119dd('0xaa5')](function(_0x580012){var _0x1dadf4=_0x3119dd,_0x59c15e=_0x580012&&_0x580012[_0x1dadf4('0x580')]?_0x580012['rows']:[];return _0x20ec85[_0x1dadf4('0x11b9')]=_0x51538b()[_0x1dadf4('0x1246')](_0x59c15e,function(_0x57dd51){var _0x168c8c=_0x1dadf4;return _0x51538b()['find'](_0x20ec85[_0x168c8c('0x1a30')],{'id':_0x4b2dda[_0x168c8c('0x26e8')](_0x168c8c('0x178b'))||_0x20ec85['section'][_0x168c8c('0x26cc')]?_0x57dd51['id']:_0x57dd51[_0x168c8c('0xbcd')]});}),_0x20ec85[_0x1dadf4('0x215b')]=angular[_0x1dadf4('0x20a')](_0x20ec85[_0x1dadf4('0x11b9')]),_0x20ec85[_0x1dadf4('0x1a30')][_0x1dadf4('0x15b5')](function(_0x277d01){var _0x15ba19=_0x1dadf4,_0x34633c=_0x51538b()[_0x15ba19('0xe9e')](_0x20ec85[_0x15ba19('0x11b9')],{'id':_0x277d01['id']});_0x4b2dda[_0x15ba19('0x26e8')](_0x15ba19('0x178b'))?_0x277d01['isValid']=!![]:_0x277d01[_0x15ba19('0x145d')]=typeof _0x34633c!==_0x15ba19('0x1574')?!![]:![];}),_0x33d2e7();})[_0x3119dd('0xaa5')](function(_0x2ee1e4){var _0x50fde6=_0x3119dd,_0x263576=_0x2ee1e4&&_0x2ee1e4[_0x50fde6('0x580')]?_0x2ee1e4[_0x50fde6('0x580')]:[];_0x20ec85[_0x50fde6('0xbf7')]=_0x51538b()[_0x50fde6('0x1246')](_0x263576,function(_0x3c644f){var _0x55d215=_0x50fde6,_0xa41602=_0x51538b()[_0x55d215('0xe9e')](_0x20ec85[_0x55d215('0x1a30')],{'id':_0x3c644f['id']});return _0xa41602['penalty']=_0x3c644f['UserVoiceQueue']?'penalty\x20'+_0x3c644f[_0x55d215('0xe20')][_0x55d215('0x2234')]:'',_0xa41602[_0x55d215('0x1b0d')]=typeof _0x3c644f[_0x55d215('0x1b0d')]!=='undefined'?'<'+_0x3c644f[_0x55d215('0x1b0d')]+'>':'',_0xa41602;}),_0x20ec85['startingSelectedItems']=angular[_0x50fde6('0x20a')](_0x20ec85[_0x50fde6('0xbf7')]),_0x20ec85['dualMultiselectOptions'][_0x50fde6('0xbf7')]=_0x20ec85[_0x50fde6('0xbf7')],_0x20ec85[_0x50fde6('0x1c23')]['items']=_0x51538b()[_0x50fde6('0x1ebb')](_0x20ec85[_0x50fde6('0x11b9')],_0x20ec85[_0x50fde6('0x1c23')][_0x50fde6('0xbf7')],'id'),_0x4620b8();})[_0x3119dd('0x253d')](function(_0x150217){_0x2e7359(_0x150217);});});}function _0x1bad9b(){return _0x4fb563(function(_0x7c275f,_0x221bf2){var _0x4400d6=a0_0x1149;return _0x453038['userProfileResource']['get']({'sectionId':_0x20ec85[_0x4400d6('0x224d')]['id'],'nolimit':!![]})['$promise'][_0x4400d6('0xaa5')](function(_0x5db28b){_0x7c275f(_0x5db28b);})['catch'](function(_0x4b882f){_0x221bf2(_0x4b882f);});});}function _0x33d2e7(){return _0x4fb563(function(_0x1e9dca,_0x240d56){var _0x2acf06=a0_0x1149;return _0x453038['voiceQueue']['getAgents']({'id':_0x20ec85[_0x2acf06('0x1588')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x2acf06('0x1dc2')][_0x2acf06('0xaa5')](function(_0x5481e2){_0x1e9dca(_0x5481e2);})['catch'](function(_0x54acea){_0x240d56(_0x54acea);});});}function _0x4908d8(){return _0x4fb563(function(_0x27021d,_0x308d42){var _0x1d381e=a0_0x1149;return _0x453038[_0x1d381e('0x272b')][_0x1d381e('0x2122')]({'fields':_0x1d381e('0x283f'),'nolimit':!![],'role':_0x1d381e('0xeff')})[_0x1d381e('0x1dc2')]['then'](function(_0x44a9a2){_0x27021d(_0x44a9a2);})['catch'](function(_0x180f8a){_0x308d42(_0x180f8a);});});}function _0x3abb28(_0x54d75c){return _0x4fb563(function(_0x122f09,_0x1a9133){var _0x11ad7b=a0_0x1149;if(_0x51538b()[_0x11ad7b('0x116b')](_0x54d75c))_0x122f09();else{var _0x2b113c=[],_0x212fe8=_0x51538b()[_0x11ad7b('0x1663')](_0x54d75c,'penalty');for(var _0x2da291=0x0;_0x2da291-0x1?_0x18f8ff[_0xae1d6b('0xb10')](_0x18f8ff[_0xae1d6b('0x1f68')]('/')+0x1):_0x18f8ff[_0xae1d6b('0x1f68')]('\x5c')>-0x1?_0x18f8ff['substring'](_0x18f8ff['lastIndexOf']('\x5c')+0x1):_0x18f8ff;return _0x398e4a=_0x398e4a['substring'](0x0,_0x398e4a['lastIndexOf']('.')),_0x398e4a;}function _0x1adc04(_0x1e9d2c){var _0xff4334=_0x2f1495,_0x2ddaa8=![],_0x34199f=!_0x51538b()[_0xff4334('0x89a')](_0x1e9d2c['format'])?_0x1e9d2c['format']:_0x1e9d2c['value']['substring'](_0x1e9d2c[_0xff4334('0x12f4')][_0xff4334('0x1f68')]('.'));return _0x2ddaa8=_0x34199f===_0xff4334('0x2671')?!![]:![],_0x49deca[_0xff4334('0x2366')][_0xff4334('0x1cf9')]({'id':_0x1e9d2c['id']})[_0xff4334('0x1dc2')][_0xff4334('0xaa5')](function(_0x490646){var _0x566c96=_0xff4334,_0x3de37f=[_0x490646['buffer']],_0x52bd71=_0x566c96('0x1cf9'),_0x243334=new Blob(_0x3de37f,{'type':_0x490646[_0x566c96('0x6c8')]});_0x52bd71=_0x250457(_0x1e9d2c[_0x566c96('0x12f4')])+_0x1e9d2c[_0x566c96('0x1f27')];var _0x446ac6=window[_0x566c96('0x12aa')][_0x566c96('0x531')]('a');_0x446ac6['setAttribute']('href',URL[_0x566c96('0x1e56')](_0x243334)),_0x446ac6[_0x566c96('0x107b')]('download',_0x52bd71),document[_0x566c96('0x54c')][_0x566c96('0x1315')](_0x446ac6),_0x446ac6[_0x566c96('0x467')]();})[_0xff4334('0x253d')](function(_0x286aa4){var _0x35bd35=_0xff4334;if(_0x286aa4[_0x35bd35('0x10fd')]&&_0x286aa4[_0x35bd35('0x10fd')][_0x35bd35('0x4c6')]&&_0x286aa4[_0x35bd35('0x10fd')][_0x35bd35('0x4c6')]['length'])for(var _0x5bb56e=0x0;_0x5bb56e<_0x286aa4[_0x35bd35('0x10fd')][_0x35bd35('0x4c6')]['length'];_0x5bb56e++){_0x2e66cf[_0x35bd35('0x187f')]({'title':_0x286aa4['data'][_0x35bd35('0x4c6')][_0x5bb56e][_0x35bd35('0x6c8')],'msg':_0x286aa4['data'][_0x35bd35('0x4c6')][_0x5bb56e]['message']});}else{if(String(_0x286aa4[_0x35bd35('0x2fa')])===_0x35bd35('0xe17')&&_0x2ddaa8===![])_0x2e66cf[_0x35bd35('0x3a1')]({'title':_0x469998[_0x35bd35('0x213f')]('VOICE.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x469998[_0x35bd35('0x213f')](_0x35bd35('0x136f'))});else String(_0x286aa4['status'])===_0x35bd35('0xe17')?_0x2e66cf[_0x35bd35('0x3a1')]({'title':_0x469998['instant'](_0x35bd35('0x163a')),'msg':_0x469998[_0x35bd35('0x213f')](_0x35bd35('0x270'))}):_0x2e66cf[_0x35bd35('0x187f')]({'title':_0x286aa4[_0x35bd35('0x2fa')]?_0x35bd35('0x16c2')+_0x286aa4[_0x35bd35('0x2fa')]+_0x35bd35('0x169e')+_0x286aa4[_0x35bd35('0x24df')]:_0x35bd35('0xcb'),'msg':_0x286aa4[_0x35bd35('0x10fd')]?JSON[_0x35bd35('0xa48')](_0x286aa4[_0x35bd35('0x10fd')]['message']):_0x286aa4[_0x35bd35('0x684')]()});}});}function _0x5842a6(_0x21d1ab,_0x3dd544){var _0x555d38=_0x2f1495,_0xf4be8d=_0x3f7d03['confirm']()[_0x555d38('0x110a')](_0x555d38('0x88d')+_0x51538b()[_0x555d38('0x196a')](_0x555d38('0x2366'))+'?')['htmlContent'](_0x555d38('0x389')+(_0x21d1ab[_0x555d38('0x25d6')]||'voiceRecording')+_0x555d38('0x697')+_0x555d38('0x210d'))['ariaLabel']('delete\x20voiceRecording')[_0x555d38('0x116d')](_0x3dd544)['ok']('OK')[_0x555d38('0x2030')](_0x555d38('0x2410'));_0x3f7d03['show'](_0xf4be8d)[_0x555d38('0xaa5')](function(){_0x3dce2b(_0x21d1ab);},function(){var _0x162246=_0x555d38;console[_0x162246('0x18d5')]('CANCEL');});}var _0x1ef449=!![],_0x13280a=0x1;_0x4e1091[_0x2f1495('0x1ccf')](_0x2f1495('0x1788'),function(_0xb9ee8d,_0x492d35){var _0x1d5d39=_0x2f1495;_0x1ef449?_0x4eb53a(function(){_0x1ef449=![];}):(!_0x492d35&&(_0x13280a=_0x50c806[_0x1d5d39('0x582')]['page']),_0xb9ee8d!==_0x492d35&&(_0x50c806[_0x1d5d39('0x582')][_0x1d5d39('0x41')]=0x1),!_0xb9ee8d&&(_0x50c806[_0x1d5d39('0x582')][_0x1d5d39('0x41')]=_0x13280a),_0x50c806[_0x1d5d39('0x144d')]());});function _0x1962ac(_0x4ef8a0){_0x50c806['voiceRecordings']=_0x4ef8a0||{'count':0x0,'rows':[]};}function _0x1bc5f1(){var _0x4a6c49=_0x2f1495;_0x50c806[_0x4a6c49('0x582')][_0x4a6c49('0x8b1')]=(_0x50c806[_0x4a6c49('0x582')][_0x4a6c49('0x41')]-0x1)*_0x50c806['query'][_0x4a6c49('0xf4d')],_0x8e20aa['hasRole']('admin')?_0x50c806['promise']=_0x49deca[_0x4a6c49('0x2366')][_0x4a6c49('0x2122')](_0x50c806['query'],_0x1962ac)[_0x4a6c49('0x1dc2')]:(_0x50c806[_0x4a6c49('0x582')]['id']=_0x50c806[_0x4a6c49('0x1e97')]['id'],_0x50c806[_0x4a6c49('0x582')][_0x4a6c49('0x224d')]=_0x4a6c49('0x223a'),_0x50c806[_0x4a6c49('0x159a')]=_0x49deca[_0x4a6c49('0x1e97')]['getResources'](_0x50c806[_0x4a6c49('0x582')],_0x1962ac)[_0x4a6c49('0x1dc2')]);}function _0x547766(_0x445050,_0x3c1e4a){var _0x48bc27=_0x2f1495;_0x3f7d03[_0x48bc27('0x1e6d')]({'controller':_0x48bc27('0x834'),'controllerAs':'vm','templateUrl':_0x5d9e0e,'parent':angular[_0x48bc27('0x1aa8')](_0x9923be[_0x48bc27('0x54c')]),'targetEvent':_0x445050,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x3c1e4a,'voiceRecordings':_0x50c806[_0x48bc27('0x204d')][_0x48bc27('0x580')],'license':_0x50c806['license'],'setting':_0x50c806[_0x48bc27('0x143f')],'crudPermissions':_0x50c806[_0x48bc27('0xada')]}});}function _0x3dce2b(_0x426ec6){var _0x2d1e22=_0x2f1495;_0x49deca[_0x2d1e22('0x2366')]['delete']({'id':_0x426ec6['id']})[_0x2d1e22('0x1dc2')][_0x2d1e22('0xaa5')](function(){var _0x4d749d=_0x2d1e22;_0x51538b()[_0x4d749d('0xf6d')](_0x50c806['voiceRecordings']['rows'],{'id':_0x426ec6['id']}),_0x50c806['voiceRecordings']['count']-=0x1,!_0x50c806[_0x4d749d('0x204d')][_0x4d749d('0x580')][_0x4d749d('0x2587')]&&_0x50c806[_0x4d749d('0x144d')](),_0x2e66cf['success']({'title':_0x51538b()['startCase'](_0x4d749d('0xe'))+_0x4d749d('0x8bb'),'msg':_0x426ec6[_0x4d749d('0x25d6')]?_0x426ec6[_0x4d749d('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x2d1e22('0x253d')](function(_0x32052b){var _0x1137db=_0x2d1e22;if(_0x32052b[_0x1137db('0x10fd')]&&_0x32052b[_0x1137db('0x10fd')][_0x1137db('0x4c6')]&&_0x32052b[_0x1137db('0x10fd')][_0x1137db('0x4c6')][_0x1137db('0x2587')]){_0x50c806[_0x1137db('0x4c6')]=_0x32052b[_0x1137db('0x10fd')][_0x1137db('0x4c6')]||[{'message':_0x32052b['toString'](),'type':_0x1137db('0x144c')}];for(var _0x5a3b6f=0x0;_0x5a3b6f<_0x32052b[_0x1137db('0x10fd')][_0x1137db('0x4c6')][_0x1137db('0x2587')];_0x5a3b6f++){_0x2e66cf[_0x1137db('0x187f')]({'title':_0x32052b['data']['errors'][_0x5a3b6f][_0x1137db('0x6c8')],'msg':_0x32052b[_0x1137db('0x10fd')][_0x1137db('0x4c6')][_0x5a3b6f][_0x1137db('0x1402')]});}}else _0x2e66cf['error']({'title':_0x32052b['status']?_0x1137db('0x16c2')+_0x32052b[_0x1137db('0x2fa')]+_0x1137db('0x169e')+_0x32052b[_0x1137db('0x24df')]:'SYSTEM:DELETEvoiceRecording','msg':_0x32052b[_0x1137db('0x10fd')]?JSON[_0x1137db('0xa48')](_0x32052b[_0x1137db('0x10fd')][_0x1137db('0x1402')]):_0x32052b[_0x1137db('0x1402')]||_0x32052b[_0x1137db('0x684')]()});});}function _0x1c2613(){var _0x277d67=_0x2f1495,_0x2818e6=angular['copy'](_0x50c806[_0x277d67('0x109f')]);return _0x50c806[_0x277d67('0x109f')]=[],_0x2818e6;}function _0x45f31a(_0x773521){var _0x168524=_0x2f1495,_0x73b43a=_0x3f7d03['confirm']()['title'](_0x168524('0x1414'))['htmlContent'](_0x168524('0x389')+_0x50c806[_0x168524('0x109f')][_0x168524('0x2587')]+_0x168524('0x1443')+_0x168524('0x210d'))['ariaLabel'](_0x168524('0xf6'))['targetEvent'](_0x773521)['ok']('OK')['cancel']('CANCEL');_0x3f7d03[_0x168524('0x1e6d')](_0x73b43a)[_0x168524('0xaa5')](function(){var _0x46d386=_0x168524;_0x50c806[_0x46d386('0x109f')][_0x46d386('0x15b5')](function(_0x2fab4b){_0x3dce2b(_0x2fab4b);}),_0x50c806['selectedVoiceRecordings']=[];});}function _0x7febc7(){var _0x5c50ab=_0x2f1495;_0x50c806[_0x5c50ab('0x109f')]=[];}function _0x2bd2e0(){var _0x2937c9=_0x2f1495;_0x50c806[_0x2937c9('0x109f')]=_0x50c806[_0x2937c9('0x204d')]['rows'];}}const _0x33a642=_0x4080df,_0x4990c8=_0x4fb511['p']+_0x1a8446('0xd06'),_0x151a52=_0x4fb511['p']+_0x1a8446('0x1c83'),_0x5371db=_0x4fb511['p']+_0x1a8446('0x913'),_0x3204dd=_0x4fb511['p']+_0x1a8446('0x1094'),_0x3b4bf7=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes-[chunkhash].html',_0x1d357f=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/outboundroutes/edit/view.html/view-[chunkhash].html',_0x12811f=_0x4fb511['p']+_0x1a8446('0x5ba'),_0x312685=_0x4fb511['p']+_0x1a8446('0x2796'),_0x2170d9=_0x4fb511['p']+_0x1a8446('0x23b8'),_0x4c2782=_0x4fb511['p']+_0x1a8446('0xecb'),_0x46df3d=_0x4fb511['p']+_0x1a8446('0x9f3'),_0x50a83f=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds-[chunkhash].html',_0x1f647c=_0x4fb511['p']+_0x1a8446('0x1cd6'),_0x4195a2=_0x4fb511['p']+_0x1a8446('0x205e'),_0x5b51c0=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html/view-[chunkhash].html',_0x5a220b=_0x4fb511['p']+_0x1a8446('0xd3e'),_0x33cff1=_0x4fb511['p']+'src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html/voicePrefixes-[chunkhash].html';_0x297b35[_0x1a8446('0x1e33')]=['$stateProvider',_0x1a8446('0x208f')];function _0x297b35(_0x2df5f8,_0x52b819){var _0x21195a=_0x1a8446;_0x2df5f8[_0x21195a('0xb46')](_0x21195a('0xd5f'),{'abstract':!![],'url':'/voice'})[_0x21195a('0xb46')](_0x21195a('0xb44'),{'url':_0x21195a('0xc91'),'views':{'content@app':{'templateUrl':_0x4990c8,'controller':_0x21195a('0x12e7')}},'resolve':{'voiceQueues':[_0x21195a('0x1d16'),'Auth',function _0x2f3bd7(_0x4597c4,_0x36245f){var _0x28e973=_0x21195a;return _0x36245f[_0x28e973('0x26e8')](_0x28e973('0x178b'))?_0x4597c4['resolve']('voiceQueue@get',{'fields':'createdAt,updatedAt,id,name,type,strategy,timeout,maxlen,retry,wrapuptime,weight,joinempty,leavewhenempty,musiconhold,announce,description,periodic_announce,queue_reporthold,queue_youarenext,queue_thereare,queue_callswaiting,queue_holdtime,queue_minutes,queue_minute,queue_seconds,queue_thankyou,announce_frequency,min_announce_frequency,periodic_announce_frequency,random_periodic_announce,announce_holdtime,announce_position,announce_position_limit,reportholdtime,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,servicelevel,mandatoryDisposition,mandatoryDispositionPauseId','type':_0x28e973('0x4b8'),'sort':'-updatedAt','channel':'voice','limit':0xa,'offset':0x0}):_0x4597c4[_0x28e973('0x149f')](_0x28e973('0x49a'),{'id':_0x36245f[_0x28e973('0xacc')]()[_0x28e973('0x2168')],'section':'VoiceQueues','fields':_0x28e973('0xcf3'),'type':'inbound','sort':_0x28e973('0xd82'),'channel':_0x28e973('0x1b9'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x21195a('0x1dfd'),function _0x21d8dd(_0x139941,_0x183614){var _0x5aa7f0=_0x21195a;return _0x183614['hasRole'](_0x5aa7f0('0x178b'))?null:_0x139941[_0x5aa7f0('0x149f')](_0x5aa7f0('0x567'),{'fields':_0x5aa7f0('0x1bb0'),'id':_0x183614[_0x5aa7f0('0xacc')]()[_0x5aa7f0('0x2168')]});}],'userProfileSection':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x3402f6(_0x173c07,_0xc1d14a){var _0x3dabcd=_0x21195a;return _0xc1d14a['hasRole'](_0x3dabcd('0x178b'))?null:_0x173c07['resolve'](_0x3dabcd('0x89e'),{'fields':_0x3dabcd('0xe6a'),'userProfileId':_0xc1d14a[_0x3dabcd('0xacc')]()[_0x3dabcd('0x2168')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x21195a('0x1b9')})[_0x21195a('0xb46')]('app.voice.voiceQueues.edit',{'url':_0x21195a('0xad'),'params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x151a52,'controller':_0x21195a('0x1e7c')}},'resolve':{'voiceQueue':['apiResolver',_0x21195a('0x703'),function _0x416e44(_0x4ec190,_0x2db446){var _0x5f3e3d=_0x21195a;return _0x4ec190[_0x5f3e3d('0x149f')]('voiceQueue@get',{'fields':_0x5f3e3d('0xcf3'),'id':_0x2db446['id']});}],'userProfileSection':['apiResolver','Auth',function _0x41ca08(_0x4511ea,_0x53a8fc){var _0x175857=_0x21195a;return _0x4511ea[_0x175857('0x149f')](_0x175857('0x89e'),{'fields':_0x175857('0xe6a'),'userProfileId':_0x53a8fc['getCurrentUser']()['userProfileId'],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':'voice'})[_0x21195a('0xb46')](_0x21195a('0x1c1c'),{'url':_0x21195a('0x128a'),'views':{'content@app':{'templateUrl':_0x5371db,'controller':_0x21195a('0x1629')}},'resolve':{'inboundroutes':['apiResolver',_0x21195a('0x1dfd'),function _0x566d1f(_0x5e183e,_0x197e27){var _0x3dad00=_0x21195a;return _0x197e27['hasRole'](_0x3dad00('0x178b'))?_0x5e183e[_0x3dad00('0x149f')](_0x3dad00('0x1304'),{'fields':_0x3dad00('0x550'),'type':_0x3dad00('0x4b8'),'sort':_0x3dad00('0xd82'),'VoiceExtensionId':_0x3dad00('0x1ed9'),'limit':0xa,'offset':0x0}):_0x5e183e[_0x3dad00('0x149f')](_0x3dad00('0x49a'),{'id':_0x197e27[_0x3dad00('0xacc')]()['userProfileId'],'section':_0x3dad00('0x2b6'),'fields':_0x3dad00('0x550'),'type':'inbound','sort':'-updatedAt','VoiceExtensionId':_0x3dad00('0x1ed9'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x21195a('0x1dfd'),function _0x5242fa(_0x37bd3e,_0x52e9b2){var _0x410daa=_0x21195a;return _0x52e9b2[_0x410daa('0x26e8')](_0x410daa('0x178b'))?null:_0x37bd3e[_0x410daa('0x149f')](_0x410daa('0x567'),{'fields':_0x410daa('0x1bb0'),'id':_0x52e9b2[_0x410daa('0xacc')]()[_0x410daa('0x2168')]});}],'userProfileSection':['apiResolver','Auth',function _0x234bcc(_0x5a35c9,_0x44c016){var _0x25374a=_0x21195a;return _0x44c016['hasRole'](_0x25374a('0x178b'))?null:_0x5a35c9[_0x25374a('0x149f')](_0x25374a('0x89e'),{'fields':_0x25374a('0xe6a'),'userProfileId':_0x44c016[_0x25374a('0xacc')]()['userProfileId'],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x21195a('0xb46')](_0x21195a('0xdd4'),{'url':_0x21195a('0xad'),'params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3204dd,'controller':_0x21195a('0x1baf')}},'resolve':{'inboundroute':['apiResolver','$stateParams',function _0x37832a(_0x2c9e08,_0xe619db){var _0x5c2eae=_0x21195a;return _0x2c9e08[_0x5c2eae('0x149f')](_0x5c2eae('0x1304'),{'fields':_0x5c2eae('0x550'),'id':_0xe619db['id']});}],'userProfileSection':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x1c43ee(_0x50be76,_0xd94d50){var _0x365f38=_0x21195a;return _0x50be76[_0x365f38('0x149f')](_0x365f38('0x89e'),{'fields':_0x365f38('0xe6a'),'userProfileId':_0xd94d50[_0x365f38('0xacc')]()['userProfileId'],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x21195a('0xb46')](_0x21195a('0x907'),{'url':_0x21195a('0x148a'),'views':{'content@app':{'templateUrl':_0x3b4bf7,'controller':_0x21195a('0x106c')}},'resolve':{'outboundroutes':[_0x21195a('0x1d16'),'Auth',function _0x4a9b2a(_0x2cce49,_0xbbba36){var _0x4e958c=_0x21195a;return _0xbbba36[_0x4e958c('0x26e8')](_0x4e958c('0x178b'))?_0x2cce49[_0x4e958c('0x149f')](_0x4e958c('0x1304'),{'fields':_0x4e958c('0x1f1c'),'type':_0x4e958c('0x19d1'),'sort':_0x4e958c('0xd82'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0}):_0x2cce49[_0x4e958c('0x149f')](_0x4e958c('0x49a'),{'id':_0xbbba36[_0x4e958c('0xacc')]()['userProfileId'],'section':'OutboundRoutes','fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','type':_0x4e958c('0x19d1'),'sort':_0x4e958c('0xd82'),'VoiceExtensionId':_0x4e958c('0x1ed9'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0xe6ddb7(_0x4717aa,_0x36ac39){var _0x413bc4=_0x21195a;return _0x36ac39[_0x413bc4('0x26e8')](_0x413bc4('0x178b'))?null:_0x4717aa['resolve'](_0x413bc4('0x567'),{'fields':_0x413bc4('0x1bb0'),'id':_0x36ac39['getCurrentUser']()[_0x413bc4('0x2168')]});}],'userProfileSection':['apiResolver',_0x21195a('0x1dfd'),function _0x8a3905(_0x1b0815,_0x925e9e){var _0x2a239d=_0x21195a;return _0x925e9e[_0x2a239d('0x26e8')](_0x2a239d('0x178b'))?null:_0x1b0815['resolve'](_0x2a239d('0x89e'),{'fields':_0x2a239d('0xe6a'),'userProfileId':_0x925e9e[_0x2a239d('0xacc')]()[_0x2a239d('0x2168')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x21195a('0x1b9')})[_0x21195a('0xb46')](_0x21195a('0x2750'),{'url':_0x21195a('0xad'),'params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1d357f,'controller':_0x21195a('0x1b6a')}},'resolve':{'outboundroute':[_0x21195a('0x1d16'),_0x21195a('0x703'),function _0x27b093(_0xd4b8b4,_0x2ad271){var _0x2915a6=_0x21195a;return _0xd4b8b4[_0x2915a6('0x149f')]('voiceExtension@get',{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','id':_0x2ad271['id']});}],'userProfileSection':[_0x21195a('0x1d16'),'Auth',function _0x344481(_0x451b01,_0x173449){var _0x161066=_0x21195a;return _0x451b01['resolve'](_0x161066('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x173449[_0x161066('0xacc')]()[_0x161066('0x2168')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x21195a('0x1b9')})['state'](_0x21195a('0x265'),{'url':_0x21195a('0x2676'),'views':{'content@app':{'templateUrl':_0x12811f,'controller':_0x21195a('0x2425')}},'resolve':{'internalroutes':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x4e3b8f(_0x2e1593,_0x5aa99d){var _0x26df6a=_0x21195a;return _0x5aa99d[_0x26df6a('0x26e8')]('admin')?_0x2e1593[_0x26df6a('0x149f')](_0x26df6a('0x1304'),{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x26df6a('0x1b0d'),'sort':_0x26df6a('0xd82'),'VoiceExtensionId':_0x26df6a('0x1ed9'),'limit':0xa,'offset':0x0}):_0x2e1593[_0x26df6a('0x149f')](_0x26df6a('0x49a'),{'id':_0x5aa99d[_0x26df6a('0xacc')]()[_0x26df6a('0x2168')],'section':_0x26df6a('0x2081'),'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x26df6a('0x1b0d'),'sort':_0x26df6a('0xd82'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x46b134(_0x431d50,_0x57d475){var _0x15f2e8=_0x21195a;return _0x57d475[_0x15f2e8('0x26e8')]('admin')?null:_0x431d50[_0x15f2e8('0x149f')](_0x15f2e8('0x567'),{'fields':_0x15f2e8('0x1bb0'),'id':_0x57d475[_0x15f2e8('0xacc')]()[_0x15f2e8('0x2168')]});}],'userProfileSection':['apiResolver',_0x21195a('0x1dfd'),function _0x282889(_0x299f2b,_0x3fceb1){var _0x11a2a9=_0x21195a;return _0x3fceb1['hasRole'](_0x11a2a9('0x178b'))?null:_0x299f2b['resolve']('userProfileSection@get',{'fields':_0x11a2a9('0xe6a'),'userProfileId':_0x3fceb1[_0x11a2a9('0xacc')]()['userProfileId'],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':'voice'})[_0x21195a('0xb46')](_0x21195a('0x1ce'),{'url':_0x21195a('0xad'),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x312685,'controller':_0x21195a('0x75d')}},'resolve':{'internalroute':['apiResolver',_0x21195a('0x703'),function _0x2f8e3f(_0x33e4a6,_0x413c2e){var _0x12d25e=_0x21195a;return _0x33e4a6['resolve'](_0x12d25e('0x1304'),{'fields':_0x12d25e('0x550'),'id':_0x413c2e['id']});}],'userProfileSection':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x215374(_0x20d1d1,_0x34b2c0){var _0x3a3bf0=_0x21195a;return _0x20d1d1['resolve'](_0x3a3bf0('0x89e'),{'fields':_0x3a3bf0('0xe6a'),'userProfileId':_0x34b2c0[_0x3a3bf0('0xacc')]()[_0x3a3bf0('0x2168')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x21195a('0x1b9')})['state'](_0x21195a('0x58c'),{'url':_0x21195a('0x23b0'),'views':{'content@app':{'templateUrl':_0x2170d9,'controller':_0x21195a('0x12dd')}},'resolve':{'contexts':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x1fc725(_0x3391ff,_0x729736){var _0x453b92=_0x21195a;return _0x729736[_0x453b92('0x26e8')](_0x453b92('0x178b'))?_0x3391ff[_0x453b92('0x149f')](_0x453b92('0x1f83'),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x453b92('0xd82'),'defaultEntry':_0x453b92('0x1355'),'limit':0xa,'offset':0x0}):_0x3391ff[_0x453b92('0x149f')](_0x453b92('0x49a'),{'id':_0x729736[_0x453b92('0xacc')]()[_0x453b92('0x2168')],'section':_0x453b92('0x215'),'fields':_0x453b92('0x1798'),'sort':_0x453b92('0xd82'),'defaultEntry':_0x453b92('0x1355'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x3d6720(_0xe02841,_0x52720e){var _0x51a5c3=_0x21195a;return _0x52720e['hasRole'](_0x51a5c3('0x178b'))?null:_0xe02841[_0x51a5c3('0x149f')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x52720e[_0x51a5c3('0xacc')]()[_0x51a5c3('0x2168')]});}],'userProfileSection':[_0x21195a('0x1d16'),'Auth',function _0x4d4960(_0x242253,_0xf5f576){var _0xaaa9c=_0x21195a;return _0xf5f576['hasRole']('admin')?null:_0x242253[_0xaaa9c('0x149f')](_0xaaa9c('0x89e'),{'fields':_0xaaa9c('0xe6a'),'userProfileId':_0xf5f576['getCurrentUser']()[_0xaaa9c('0x2168')],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':_0x21195a('0x1b9')})[_0x21195a('0xb46')](_0x21195a('0x1bf7'),{'url':_0x21195a('0x1823'),'views':{'content@app':{'templateUrl':_0x4c2782,'controller':_0x21195a('0x106b')}},'resolve':{'voicemails':['apiResolver',_0x21195a('0x1dfd'),function _0x86def8(_0x4eac62,_0xa31a7a){var _0x211a2d=_0x21195a;return _0xa31a7a[_0x211a2d('0x26e8')](_0x211a2d('0x178b'))?_0x4eac62[_0x211a2d('0x149f')]('voiceMail@get',{'fields':_0x211a2d('0x1f35'),'sort':_0x211a2d('0xd82'),'limit':0xa,'offset':0x0}):_0x4eac62['resolve'](_0x211a2d('0x49a'),{'id':_0xa31a7a[_0x211a2d('0xacc')]()[_0x211a2d('0x2168')],'section':'Voicemails','fields':_0x211a2d('0x1f35'),'sort':_0x211a2d('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x3d2f42(_0x3613bd,_0xf8611e){var _0x5e561b=_0x21195a;return _0xf8611e[_0x5e561b('0x26e8')](_0x5e561b('0x178b'))?null:_0x3613bd[_0x5e561b('0x149f')](_0x5e561b('0x567'),{'fields':_0x5e561b('0x1bb0'),'id':_0xf8611e[_0x5e561b('0xacc')]()[_0x5e561b('0x2168')]});}],'userProfileSection':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x45d6f7(_0x1be883,_0x441cb4){var _0x54e687=_0x21195a;return _0x441cb4[_0x54e687('0x26e8')]('admin')?null:_0x1be883[_0x54e687('0x149f')](_0x54e687('0x89e'),{'fields':_0x54e687('0xe6a'),'userProfileId':_0x441cb4[_0x54e687('0xacc')]()[_0x54e687('0x2168')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x21195a('0x1b9')})[_0x21195a('0xb46')](_0x21195a('0x7ed'),{'url':_0x21195a('0xad'),'params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x46df3d,'controller':'VoicemailController\x20as\x20vm'}},'resolve':{'voicemail':[_0x21195a('0x1d16'),'$stateParams',function _0x24306d(_0xd28d3,_0x56fcde){var _0x589447=_0x21195a;return _0xd28d3['resolve'](_0x589447('0x40b'),{'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','id':_0x56fcde['id']});}],'userProfileSection':['apiResolver',_0x21195a('0x1dfd'),function _0x147d89(_0x2a6d1f,_0x1ba093){var _0x5c007b=_0x21195a;return _0x2a6d1f['resolve'](_0x5c007b('0x89e'),{'fields':_0x5c007b('0xe6a'),'userProfileId':_0x1ba093[_0x5c007b('0xacc')]()[_0x5c007b('0x2168')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x21195a('0x1b9')})[_0x21195a('0xb46')](_0x21195a('0x53e'),{'url':_0x21195a('0x229e'),'views':{'content@app':{'templateUrl':_0x50a83f,'controller':'MusicOnHoldsController\x20as\x20vm'}},'resolve':{'musiconholds':[_0x21195a('0x1d16'),'Auth',function _0x79bfdd(_0xfb986f,_0x12ef24){var _0x25e94d=_0x21195a;return _0x12ef24[_0x25e94d('0x26e8')](_0x25e94d('0x178b'))?_0xfb986f[_0x25e94d('0x149f')](_0x25e94d('0xee4'),{'fields':_0x25e94d('0x2650'),'defaultEntry':_0x25e94d('0x1355'),'limit':0xa,'offset':0x0}):_0xfb986f[_0x25e94d('0x149f')](_0x25e94d('0x49a'),{'id':_0x12ef24[_0x25e94d('0xacc')]()[_0x25e94d('0x2168')],'section':_0x25e94d('0x1e45'),'fields':_0x25e94d('0x2650'),'defaultEntry':_0x25e94d('0x1355'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x42ab09(_0x1ade5c,_0x32f955){var _0x502d49=_0x21195a;return _0x32f955[_0x502d49('0x26e8')]('admin')?null:_0x1ade5c[_0x502d49('0x149f')](_0x502d49('0x567'),{'fields':_0x502d49('0x1bb0'),'id':_0x32f955[_0x502d49('0xacc')]()[_0x502d49('0x2168')]});}],'userProfileSection':[_0x21195a('0x1d16'),'Auth',function _0x1f58d1(_0x24c97a,_0x16938f){var _0xd08b03=_0x21195a;return _0x16938f[_0xd08b03('0x26e8')]('admin')?null:_0x24c97a[_0xd08b03('0x149f')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x16938f[_0xd08b03('0xacc')]()[_0xd08b03('0x2168')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x21195a('0x1b9')})['state']('app.voice.musiconholds.edit',{'url':'/:id?tab','params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1f647c,'controller':_0x21195a('0x15a6')}},'resolve':{'musiconhold':[_0x21195a('0x1d16'),_0x21195a('0x703'),function _0x2b91a3(_0x49a36a,_0x412cfb){var _0x1fedf9=_0x21195a;return _0x49a36a[_0x1fedf9('0x149f')]('voiceMusicOnHold@get',{'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','id':_0x412cfb['id']});}],'userProfileSection':['apiResolver','Auth',function _0x11d493(_0x263515,_0x12a2d8){var _0x456032=_0x21195a;return _0x263515[_0x456032('0x149f')]('userProfileSection@get',{'fields':_0x456032('0xe6a'),'userProfileId':_0x12a2d8['getCurrentUser']()['userProfileId'],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x21195a('0x1b9')})[_0x21195a('0xb46')](_0x21195a('0x2375'),{'url':_0x21195a('0xb2a'),'views':{'content@app':{'templateUrl':_0x4195a2,'controller':_0x21195a('0x1af0')}},'resolve':{'voiceRecordings':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),_0x21195a('0x25c'),function _0x363c30(_0x378212,_0x212188,_0x1c20a2){var _0x5bebf2=_0x21195a;return _0x212188[_0x5bebf2('0x26e8')](_0x5bebf2('0x178b'))?_0x378212[_0x5bebf2('0x149f')](_0x5bebf2('0x1299'),{'fields':_0x5bebf2('0x227b'),'sort':'-updatedAt','createdAt':_0x1c20a2['firstLastDayMonth'](),'limit':0xa,'offset':0x0}):_0x378212[_0x5bebf2('0x149f')](_0x5bebf2('0x49a'),{'id':_0x212188[_0x5bebf2('0xacc')]()[_0x5bebf2('0x2168')],'section':_0x5bebf2('0x223a'),'fields':_0x5bebf2('0x227b'),'sort':_0x5bebf2('0xd82'),'createdAt':_0x1c20a2[_0x5bebf2('0x800')](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x21195a('0x1d16'),'Auth',function _0xe5890d(_0x46d6ec,_0xdeb19f){var _0x10cfea=_0x21195a;return _0xdeb19f['hasRole']('admin')?null:_0x46d6ec[_0x10cfea('0x149f')](_0x10cfea('0x567'),{'fields':_0x10cfea('0x1bb0'),'id':_0xdeb19f['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x21079b(_0x436c35,_0x55187c){var _0xa1835e=_0x21195a;return _0x55187c[_0xa1835e('0x26e8')]('admin')?null:_0x436c35[_0xa1835e('0x149f')]('userProfileSection@get',{'fields':_0xa1835e('0xe6a'),'userProfileId':_0x55187c[_0xa1835e('0xacc')]()[_0xa1835e('0x2168')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':'voice'})[_0x21195a('0xb46')](_0x21195a('0xfe2'),{'url':_0x21195a('0xad'),'params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5b51c0,'controller':_0x21195a('0xbdc')}},'resolve':{'voiceRecording':['apiResolver',_0x21195a('0x703'),function _0x1d86b4(_0x50aa63,_0xa24900){var _0x5cf427=_0x21195a;return _0x50aa63['resolve'](_0x5cf427('0x1299'),{'fields':_0x5cf427('0x227b'),'id':_0xa24900['id']});}],'userProfileSection':[_0x21195a('0x1d16'),'Auth',function _0x3df7f6(_0x62c4c8,_0x2f9709){var _0x509907=_0x21195a;return _0x62c4c8[_0x509907('0x149f')]('userProfileSection@get',{'fields':_0x509907('0xe6a'),'userProfileId':_0x2f9709[_0x509907('0xacc')]()['userProfileId'],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x21195a('0x1b9')})[_0x21195a('0xb46')](_0x21195a('0xe00'),{'url':_0x21195a('0x1cb8'),'views':{'content@app':{'templateUrl':_0x5a220b,'controller':_0x21195a('0x168d')}},'resolve':{'chanSpies':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x131585(_0x48be4e,_0x537acc){var _0x30d509=_0x21195a;return _0x537acc[_0x30d509('0x26e8')](_0x30d509('0x178b'))?_0x48be4e[_0x30d509('0x149f')](_0x30d509('0x2740'),{'fields':_0x30d509('0x1138'),'sort':_0x30d509('0xd82'),'limit':0xa,'offset':0x0}):_0x48be4e['resolve'](_0x30d509('0x49a'),{'id':_0x537acc[_0x30d509('0xacc')]()['userProfileId'],'section':_0x30d509('0x1193'),'fields':_0x30d509('0x1138'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x21195a('0x1d16'),'Auth',function _0x57fc68(_0x52fd90,_0x390549){var _0x525ef9=_0x21195a;return _0x390549[_0x525ef9('0x26e8')](_0x525ef9('0x178b'))?null:_0x52fd90['resolve']('userProfile@get',{'fields':_0x525ef9('0x1bb0'),'id':_0x390549[_0x525ef9('0xacc')]()[_0x525ef9('0x2168')]});}],'userProfileSection':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x79f4f1(_0x27f48b,_0x4655b4){var _0x2c4bd1=_0x21195a;return _0x4655b4[_0x2c4bd1('0x26e8')]('admin')?null:_0x27f48b[_0x2c4bd1('0x149f')]('userProfileSection@get',{'fields':_0x2c4bd1('0xe6a'),'userProfileId':_0x4655b4[_0x2c4bd1('0xacc')]()[_0x2c4bd1('0x2168')],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':'voice'})[_0x21195a('0xb46')]('app.voice.voicePrefixes',{'url':_0x21195a('0x2262'),'views':{'content@app':{'templateUrl':_0x33cff1,'controller':'VoicePrefixesController\x20as\x20vm'}},'resolve':{'voicePrefixes':['apiResolver','Auth',function _0x34b3d5(_0x51b449,_0x592629){var _0x29d160=_0x21195a;return _0x592629[_0x29d160('0x26e8')](_0x29d160('0x178b'))?_0x51b449[_0x29d160('0x149f')](_0x29d160('0x1b92'),{'fields':_0x29d160('0x178d'),'limit':0xa,'offset':0x0}):_0x51b449[_0x29d160('0x149f')](_0x29d160('0x49a'),{'id':_0x592629['getCurrentUser']()[_0x29d160('0x2168')],'section':'VoicePrefixes','fields':_0x29d160('0x178d'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x3e6a41(_0x333708,_0x273d6f){var _0x3f94cf=_0x21195a;return _0x273d6f[_0x3f94cf('0x26e8')](_0x3f94cf('0x178b'))?null:_0x333708[_0x3f94cf('0x149f')]('userProfile@get',{'fields':_0x3f94cf('0x1bb0'),'id':_0x273d6f['getCurrentUser']()[_0x3f94cf('0x2168')]});}],'userProfileSection':[_0x21195a('0x1d16'),_0x21195a('0x1dfd'),function _0x584b54(_0x1dbbc1,_0x5db367){var _0x784e78=_0x21195a;return _0x5db367[_0x784e78('0x26e8')](_0x784e78('0x178b'))?null:_0x1dbbc1[_0x784e78('0x149f')](_0x784e78('0x89e'),{'fields':_0x784e78('0xe6a'),'userProfileId':_0x5db367['getCurrentUser']()['userProfileId'],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':'voice'}),_0x52b819[_0x21195a('0x1de5')](_0x21195a('0x1930'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0xd5f'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),'ngAria',_0x1a8446('0x110'),'mdPickers',_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),_0x1a8446('0x112'),'angular-cron-jobs',_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),'chart.js',_0x1a8446('0x775'),_0x1a8446('0x19a1')])['config'](_0x297b35)[_0x1a8446('0x780')](_0x1a8446('0xeb0'),_0x27cc5c)[_0x1a8446('0x780')](_0x1a8446('0x640'),_0x4357b0)[_0x1a8446('0x780')]('ContextsController',_0xdfe26b)[_0x1a8446('0x780')](_0x1a8446('0x1665'),_0x3f7a2a)[_0x1a8446('0x780')]('CreateOrEditInboundRouteDialogController',_0x806042)[_0x1a8446('0x780')](_0x1a8446('0xb1c'),_0x1b68b5)['controller'](_0x1a8446('0x704'),_0x5061b8)['controller'](_0x1a8446('0x1874'),_0x2e5d27)['controller'](_0x1a8446('0x1ebe'),_0x347e38)[_0x1a8446('0x780')]('EditInboundAppexternaldialDialogController',_0x2a9f27)[_0x1a8446('0x780')](_0x1a8446('0x1727'),_0x1b3cc8)[_0x1a8446('0x780')](_0x1a8446('0x25a'),_0x3703b5)['controller'](_0x1a8446('0xd00'),_0xe79942)[_0x1a8446('0x780')](_0x1a8446('0x1002'),_0x112256)[_0x1a8446('0x780')](_0x1a8446('0x27f'),_0x54366e)[_0x1a8446('0x780')](_0x1a8446('0x1b5d'),_0x52a17d)['controller']('EditInboundAppringgroupDialogController',_0x24876d)[_0x1a8446('0x780')]('EditInboundAppsetDialogController',_0x541418)[_0x1a8446('0x780')]('EditInboundAppvoicemailDialogController',_0xeecb6d)[_0x1a8446('0x780')](_0x1a8446('0xec3'),_0x4e9ceb)[_0x1a8446('0x780')](_0x1a8446('0x10bb'),_0x2183ce)[_0x1a8446('0x780')]('CreateOrEditInternalRouteDialogController',_0x4286d4)[_0x1a8446('0x780')](_0x1a8446('0x5cb'),_0x3ca5e0)[_0x1a8446('0x780')]('EditInternalAppagiDialogController',_0x472a25)[_0x1a8446('0x780')]('EditInternalAppcustomDialogController',_0x4271c2)[_0x1a8446('0x780')](_0x1a8446('0x1bf6'),_0x4110ef)[_0x1a8446('0x780')](_0x1a8446('0x4f8'),_0x15467a)[_0x1a8446('0x780')](_0x1a8446('0xb40'),_0xcba1be)[_0x1a8446('0x780')](_0x1a8446('0x15d0'),_0x2055a0)[_0x1a8446('0x780')](_0x1a8446('0x1972'),_0x2adc09)[_0x1a8446('0x780')](_0x1a8446('0x275b'),_0x9d7075)[_0x1a8446('0x780')](_0x1a8446('0x1705'),_0x5d7fe1)['controller'](_0x1a8446('0x1758'),_0x1e02a4)[_0x1a8446('0x780')]('EditInternalAppringgroupDialogController',_0x37e634)[_0x1a8446('0x780')](_0x1a8446('0x7fa'),_0x863fcb)[_0x1a8446('0x780')](_0x1a8446('0xf56'),_0xf74bae)[_0x1a8446('0x780')]('InternalRouteController',_0x1edfb8)['controller'](_0x1a8446('0x1e58'),_0x1c6c7a)['controller'](_0x1a8446('0x2002'),_0x4be78e)[_0x1a8446('0x780')](_0x1a8446('0x11de'),_0x2a3520)['controller'](_0x1a8446('0x32f'),_0x325943)[_0x1a8446('0x780')](_0x1a8446('0x1224'),_0x569477)[_0x1a8446('0x780')](_0x1a8446('0x126d'),_0x2335b2),angular['module'](_0x1a8446('0xd5f'))[_0x1a8446('0x780')](_0x1a8446('0x1465'),_0x2ae9f1)['controller'](_0x1a8446('0x265b'),_0x41dc5b)['controller']('EditoutboundAppcustomDialogController',_0x1abf31)[_0x1a8446('0x780')](_0x1a8446('0x131e'),_0x14d847)[_0x1a8446('0x780')](_0x1a8446('0x1348'),_0x3fb280)[_0x1a8446('0x780')](_0x1a8446('0xb57'),_0x449dd8)['controller'](_0x1a8446('0x1671'),_0x41212e)['controller'](_0x1a8446('0xa57'),_0x398a99)[_0x1a8446('0x780')](_0x1a8446('0x66f'),_0x16c41e)['controller']('VoicemailController',_0x86e75)[_0x1a8446('0x780')](_0x1a8446('0x1b60'),_0x191fce)[_0x1a8446('0x780')]('CreateOrEditvoicePrefixDialogController',_0x1bbe4a)[_0x1a8446('0x780')](_0x1a8446('0x1a3c'),_0x491d3c)['controller'](_0x1a8446('0x2d5'),_0x9622e)[_0x1a8446('0x780')]('CreateOrEditVoiceQueueDialogController',_0x21403c)['controller'](_0x1a8446('0xa7b'),_0x43f666)[_0x1a8446('0x780')](_0x1a8446('0x3e2'),_0x29f646)['controller'](_0x1a8446('0x248f'),_0x2303e8)[_0x1a8446('0x780')](_0x1a8446('0x308'),_0x1f1a7f)[_0x1a8446('0x780')](_0x1a8446('0x834'),_0x2e821a)['controller'](_0x1a8446('0x235'),_0x31fedb)[_0x1a8446('0x780')](_0x1a8446('0x14ab'),_0x577618)['controller'](_0x1a8446('0xe41'),_0x33a642);const _0x11d468=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html/chatQueues-[chunkhash].html',_0x246375=_0x4fb511['p']+_0x1a8446('0x18cd'),_0x1ab52b=_0x4fb511['p']+_0x1a8446('0xb95'),_0x5c1667=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/view.html/view-[chunkhash].html',_0x36c5b8=_0x4fb511['p']+_0x1a8446('0x21ee'),_0x208805=_0x4fb511['p']+_0x1a8446('0xb8'),_0x4e32b6=_0x4fb511['p']+_0x1a8446('0x2387');_0x179707['$inject']=[_0x1a8446('0x51'),'$q',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x24ea'),'pauses',_0x1a8446('0x1717'),_0x1a8446('0x1f1d'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0x5b4'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x21b3')];function _0x179707(_0x467061,_0x502d5f,_0x263868,_0x50d836,_0x5d309f,_0x5689b4,_0x3f4235,_0x160f46,_0x5dc40e,_0x61c5fd,_0x2dd365,_0x46e0b1,_0x1f0d0e,_0x40797c,_0x551258,_0xb7a7cb,_0x1082d6,_0x32138f){var _0x410be5=_0x1a8446,_0x4e547e=this,_0x2f6ed5=[_0x410be5('0x1af3'),_0x410be5('0x175'),_0x410be5('0x2340'),_0x410be5('0x1ce0'),_0x410be5('0x25f0'),_0x410be5('0x1ce0'),_0x410be5('0x1b0d'),'address',_0x410be5('0x1f36'),_0x410be5('0xc8f'),'mailPause','smsPause',_0x410be5('0x231a'),_0x410be5('0x135b'),_0x410be5('0x2519'),_0x410be5('0xe55'),'openchannelCapacity',_0x410be5('0x18d6'),'smsCapacity','whatsappCapacity',_0x410be5('0x6ed'),_0x410be5('0x607'),_0x410be5('0x275a'),'mailCurrentCapacity',_0x410be5('0x1382'),_0x410be5('0x26c8'),_0x410be5('0xea8'),_0x410be5('0xeb4'),_0x410be5('0x293'),_0x410be5('0x4c3'),_0x410be5('0x24d1'),_0x410be5('0x1579'),_0x410be5('0x19d2'),_0x410be5('0x1e0'),_0x410be5('0x748'),_0x410be5('0x26e5'),_0x410be5('0xd27'),_0x410be5('0x1561'),_0x410be5('0x166b'),_0x410be5('0xa0a'),'voiceStatusTime',_0x410be5('0xe26'),_0x410be5('0x14d3'),_0x410be5('0x14c3'),_0x410be5('0x1b72'),_0x410be5('0x1253')],_0x47bab8=[_0x410be5('0x1f36'),_0x410be5('0xc8f'),_0x410be5('0x21f'),'smsPause',_0x410be5('0x231a'),_0x410be5('0x135b'),_0x410be5('0x2519'),_0x410be5('0x175')];_0x4e547e[_0x410be5('0x7fc')]=_0xb7a7cb['getCurrentUser'](),_0x4e547e['availableStates']=[_0x410be5('0xb02'),_0x410be5('0x1028'),_0x410be5('0xa1e'),'onhold','not_inuse'],_0x4e547e[_0x410be5('0x2457')]=_0x3f4235||{'count':0x0,'rows':[]},_0x4e547e[_0x410be5('0x1202')]=_0x1082d6,_0x4e547e[_0x410be5('0x1e97')]=_0x40797c,_0x4e547e[_0x410be5('0x1a50')]=_0x551258&&_0x551258[_0x410be5('0xd15')]==0x1?_0x551258[_0x410be5('0x580')][0x0]:null,_0x4e547e[_0x410be5('0xada')]=_0xb7a7cb[_0x410be5('0xffd')](_0x4e547e['userProfileSection']?_0x4e547e[_0x410be5('0x1a50')]['crudPermissions']:null),_0x4e547e[_0x410be5('0x1717')]=_0x160f46?_0x51538b()[_0x410be5('0x184a')](_0x160f46[_0x410be5('0x580')]?_0x160f46[_0x410be5('0x580')]:[],'id'):{},_0x4e547e[_0x410be5('0x1f1d')]=_0x5dc40e?_0x51538b()[_0x410be5('0x184a')](_0x5dc40e[_0x410be5('0x580')]?_0x5dc40e[_0x410be5('0x580')]:[],'id'):{},_0x4e547e[_0x410be5('0xd28')]={},_0x4e547e[_0x410be5('0x259c')]=![],_0x4e547e[_0x410be5('0x1536')]=[],_0x4e547e[_0x410be5('0x21f2')]={};for(var _0x189694 in _0x4e547e[_0x410be5('0x1717')]){typeof _0x4e547e['agents'][_0x189694]!==_0x410be5('0x1574')&&(_0x4e547e['agents'][_0x189694][_0x410be5('0x2e')]=!![]);}_0x4e547e[_0x410be5('0x582')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x4e547e[_0x410be5('0x1bc9')]=_0x5a3131,_0x4e547e[_0x410be5('0x1931')]=_0x5dc538,_0x4e547e['pause']=_0x12fea9,_0x4e547e['unPause']=_0x1da623,_0x4e547e[_0x410be5('0x18ba')]=_0x8f1003,_0x4e547e['getAgentStatus']=_0x190da9,_0x4e547e['getAgentGlobalStatus']=_0x5e6dac,_0x4e547e[_0x410be5('0x11c')]=_0xc2386e,_0x4e547e[_0x410be5('0x2608')]=_0x209be0,_0x4e547e[_0x410be5('0x1592')]=_0x498690,_0x4e547e[_0x410be5('0x1a4b')]=_0x2019a9,_0x4e547e[_0x410be5('0x4f1')]=_0x843824,_0x4e547e[_0x410be5('0x2318')]=_0x2218cb,_0x4e547e[_0x410be5('0xe9b')]=_0x14c10e,_0x4e547e[_0x410be5('0xd53')]=_0x187d5c,_0x4e547e[_0x410be5('0x15eb')]=_0x4d58f9,_0x2dd365['on'](_0x410be5('0x1acf'),_0x4e547e[_0x410be5('0x1a4b')]),_0x2dd365['on'](_0x410be5('0x15fb'),_0x4e547e[_0x410be5('0x4f1')]),_0x2dd365['on'](_0x410be5('0x25ea'),_0x4e547e[_0x410be5('0xe9b')]),_0x2dd365['on']('user:agentcomplete',_0x4e547e[_0x410be5('0xd53')]),_0x2218cb();var _0x3c94e1=_0x32138f(function(){var _0x427449=_0x410be5;_0x4e547e[_0x427449('0x259c')]&&(_0x4e547e[_0x427449('0x259c')]=![],_0x2218cb());},0x3e7);function _0x2218cb(){var _0x16eb01=_0x410be5;_0x4e547e['load']=![];var _0x403ec7=_0x502d5f[_0x16eb01('0x213b')]();_0x4e547e[_0x16eb01('0x159a')]=_0x403ec7[_0x16eb01('0x159a')],_0x4e547e[_0x16eb01('0x1d77')]=[],_0x4e547e[_0x16eb01('0x1536')]=[],_0x51538b()[_0x16eb01('0x143e')](_0x4e547e[_0x16eb01('0x1717')],function(_0x1a4f64,_0x217617){var _0x5be6a1=_0x16eb01;_0x4e547e[_0x5be6a1('0x1f1d')][_0x217617]&&_0x51538b()[_0x5be6a1('0x283c')](_0x1a4f64,_0x51538b()[_0x5be6a1('0x104e')](_0x51538b()['omit'](_0x4e547e[_0x5be6a1('0x1f1d')][_0x217617],_0x47bab8),_0x2f6ed5)),_0x5e6dac(_0x1a4f64),_0x1a4f64[_0x5be6a1('0x175')]?(_0x4e547e[_0x5be6a1('0x1d77')][_0x5be6a1('0x1599')](_0x1a4f64),_0x4e547e[_0x5be6a1('0x21f2')][_0x1a4f64['internal']]=_0x217617):_0x1a4f64['globalStatusTime']=_0x51538b()[_0x5be6a1('0x228e')](_0x420d43()()[_0x5be6a1('0x1f27')]('x'));});_0x4e547e[_0x16eb01('0x582')]['globalStatusFilter']&&_0x51538b()['remove'](_0x4e547e[_0x16eb01('0x1d77')],function(_0x5236a7){var _0x9bb917=_0x16eb01;return _0x5236a7[_0x9bb917('0x151c')]!==_0x4e547e[_0x9bb917('0x582')][_0x9bb917('0x107')];});_0x4e547e[_0x16eb01('0x582')][_0x16eb01('0x1bfd')]&&_0x51538b()[_0x16eb01('0xf6d')](_0x4e547e[_0x16eb01('0x1d77')],function(_0x3371ef){var _0x3516bf=_0x16eb01;return _0x3371ef['pauseType']!==_0x4e547e[_0x3516bf('0x582')][_0x3516bf('0x1bfd')];});_0x4e547e[_0x16eb01('0x582')]['filter']&&_0x51538b()[_0x16eb01('0xf6d')](_0x4e547e[_0x16eb01('0x1d77')],function(_0x197b09){var _0x2cb86c=_0x16eb01;return _0x197b09[_0x2cb86c('0x18e5')][_0x2cb86c('0xcf6')]()[_0x2cb86c('0x1f38')](_0x4e547e[_0x2cb86c('0x582')][_0x2cb86c('0xdb7')][_0x2cb86c('0xcf6')]())<0x0;});_0x4e547e[_0x16eb01('0x1d77')]=_0x5c4543(_0x4e547e[_0x16eb01('0x1d77')]);var _0x26d70e=(_0x4e547e[_0x16eb01('0x582')][_0x16eb01('0x41')]-0x1)*_0x4e547e[_0x16eb01('0x582')][_0x16eb01('0xf4d')];_0x4e547e[_0x16eb01('0xd28')]=_0x51538b()[_0x16eb01('0x485')](_0x4e547e['filteredAgents'],_0x26d70e)['slice'](0x0,_0x4e547e['query']['limit']);for(var _0x5456e0=0x0;_0x5456e0<_0x4e547e[_0x16eb01('0xd28')][_0x16eb01('0x2587')];_0x5456e0+=0x1){_0x4e547e[_0x16eb01('0x1536')]['push'](_0x4e547e['paginatedAgents'][_0x5456e0]['id']);}_0x403ec7[_0x16eb01('0x149f')](),_0x4e547e[_0x16eb01('0x259c')]=!![];}function _0x2019a9(_0x3fc76c){var _0x2fbaf9=_0x410be5;_0x4e547e[_0x2fbaf9('0x1717')][_0x3fc76c['id']]&&(_0x51538b()[_0x2fbaf9('0x283c')](_0x4e547e[_0x2fbaf9('0x1717')][_0x3fc76c['id']],_0x51538b()[_0x2fbaf9('0x104e')](_0x51538b()[_0x2fbaf9('0x245')](_0x3fc76c,_0x47bab8),_0x2f6ed5)),_0x51538b()[_0x2fbaf9('0x283c')](_0x4e547e[_0x2fbaf9('0x1f1d')][_0x3fc76c['id']],_0x51538b()[_0x2fbaf9('0x104e')](_0x51538b()['omit'](_0x3fc76c,_0x47bab8),_0x2f6ed5)),_0x5e6dac(_0x4e547e[_0x2fbaf9('0x1717')][_0x3fc76c['id']]));}function _0x843824(_0x478ca0){var _0x3e466f=_0x410be5;_0x4e547e[_0x3e466f('0x1717')][_0x478ca0['id']]&&(_0x51538b()['merge'](_0x4e547e[_0x3e466f('0x1717')][_0x478ca0['id']],_0x51538b()[_0x3e466f('0x104e')](_0x478ca0,_0x2f6ed5)),_0x51538b()[_0x3e466f('0x283c')](_0x4e547e[_0x3e466f('0x1f1d')][_0x478ca0['id']],_0x51538b()[_0x3e466f('0x104e')](_0x478ca0,_0x2f6ed5)),_0x478ca0[_0x3e466f('0x1ce0')]&&(_0x4e547e[_0x3e466f('0x1717')][_0x478ca0['id']][_0x3e466f('0x920')]=_0x478ca0[_0x3e466f('0x1ce0')],_0x4e547e['rpcAgents'][_0x478ca0['id']][_0x3e466f('0x920')]=_0x478ca0[_0x3e466f('0x1ce0')]),_0x5e6dac(_0x4e547e['agents'][_0x478ca0['id']]));}function _0x14c10e(_0x2f1166){var _0x31feee=_0x410be5;_0x4e547e['agents'][_0x4e547e[_0x31feee('0x21f2')][_0x2f1166[_0x31feee('0x2525')]]]&&(_0x51538b()[_0x31feee('0x283c')](_0x4e547e[_0x31feee('0x1717')][_0x4e547e[_0x31feee('0x21f2')][_0x2f1166[_0x31feee('0x2525')]]],_0x51538b()[_0x31feee('0x104e')](_0x2f1166,['queue',_0x31feee('0x14d3')])),_0x51538b()['merge'](_0x4e547e[_0x31feee('0x1f1d')][_0x4e547e[_0x31feee('0x21f2')][_0x2f1166[_0x31feee('0x2525')]]],_0x51538b()[_0x31feee('0x104e')](_0x2f1166,[_0x31feee('0xe26'),'destconnectedlinenum'])));}function _0x187d5c(_0x3b3cea){var _0x1c21b2=_0x410be5;_0x4e547e[_0x1c21b2('0x1717')][_0x4e547e[_0x1c21b2('0x21f2')][_0x3b3cea[_0x1c21b2('0x2525')]]]&&(_0x4e547e[_0x1c21b2('0x1717')][_0x4e547e['agentInternal'][_0x3b3cea[_0x1c21b2('0x2525')]]]=_0x51538b()[_0x1c21b2('0x245')](_0x4e547e[_0x1c21b2('0x1717')][_0x4e547e['agentInternal'][_0x3b3cea['destaccountcode']]],[_0x1c21b2('0xe26'),'destconnectedlinenum']),_0x4e547e[_0x1c21b2('0x1f1d')][_0x4e547e[_0x1c21b2('0x21f2')][_0x3b3cea[_0x1c21b2('0x2525')]]]=_0x51538b()[_0x1c21b2('0x245')](_0x4e547e[_0x1c21b2('0x1f1d')][_0x4e547e[_0x1c21b2('0x21f2')][_0x3b3cea[_0x1c21b2('0x2525')]]],[_0x1c21b2('0xe26'),_0x1c21b2('0x14d3')]));}function _0x5a3131(_0x2c9263){var _0x336e85=_0x410be5;return _0x61c5fd['user'][_0x336e85('0x1bc9')]({'id':_0x2c9263['id'],'device':'realtime','agent_id':_0x2c9263['id'],'agent_name':_0x2c9263[_0x336e85('0x25d6')]})['$promise'][_0x336e85('0xaa5')](function(){var _0x3d4762=_0x336e85;_0x46e0b1['success']({'title':'Agent\x20logout','msg':_0x2c9263[_0x3d4762('0x18e5')]+'\x20\x20properly\x20logout'}),_0x4e547e[_0x3d4762('0x1717')][_0x2c9263['id']]&&(_0x4e547e[_0x3d4762('0x1717')][_0x2c9263['id']][_0x3d4762('0x175')]=![]),_0x4e547e[_0x3d4762('0x1f1d')][_0x2c9263['id']]&&(_0x4e547e[_0x3d4762('0x1f1d')][_0x2c9263['id']][_0x3d4762('0x175')]=![]),_0x2218cb();})[_0x336e85('0x253d')](function(_0x3302b2){var _0x28fea9=_0x336e85;_0x46e0b1[_0x28fea9('0x187f')]({'title':_0x3302b2[_0x28fea9('0x2fa')]?_0x28fea9('0x16c2')+_0x3302b2['status']+_0x28fea9('0x169e')+_0x3302b2[_0x28fea9('0x24df')]:'api.staff.save','msg':_0x3302b2['data']?JSON[_0x28fea9('0xa48')](_0x3302b2[_0x28fea9('0x10fd')][_0x28fea9('0x1402')]):_0x3302b2[_0x28fea9('0x684')]()});});}function _0x12fea9(_0x131606,_0x5e59e6){var _0x2afbd7=_0x410be5;return _0x61c5fd['user'][_0x2afbd7('0x167c')]({'id':_0x131606['id'],'type':_0x5e59e6})[_0x2afbd7('0x1dc2')][_0x2afbd7('0xaa5')](function(_0x415c9){var _0x2ffa4d=_0x2afbd7;_0x4e547e[_0x2ffa4d('0x1717')][_0x131606['id']]&&_0x51538b()['merge'](_0x4e547e[_0x2ffa4d('0x1717')][_0x131606['id']],_0x51538b()[_0x2ffa4d('0x104e')](_0x415c9,_0x2f6ed5)),_0x4e547e[_0x2ffa4d('0x1f1d')][_0x131606['id']]&&_0x51538b()[_0x2ffa4d('0x283c')](_0x4e547e[_0x2ffa4d('0x1f1d')][_0x131606['id']],_0x51538b()[_0x2ffa4d('0x104e')](_0x415c9,_0x2f6ed5)),_0x5e6dac(_0x4e547e[_0x2ffa4d('0x1717')][_0x131606['id']]);})[_0x2afbd7('0x253d')](function(_0x29fb31){var _0x34dc99=_0x2afbd7;_0x46e0b1[_0x34dc99('0x187f')]({'title':_0x29fb31[_0x34dc99('0x2fa')]?_0x34dc99('0x16c2')+_0x29fb31[_0x34dc99('0x2fa')]+_0x34dc99('0x169e')+_0x29fb31['statusText']:'api.staff.save','msg':_0x29fb31['data']?JSON[_0x34dc99('0xa48')](_0x29fb31['data']['message']):_0x29fb31[_0x34dc99('0x684')]()});});}function _0x1da623(_0x55a7da){var _0x4c79aa=_0x410be5;return _0x61c5fd[_0x4c79aa('0x272b')][_0x4c79aa('0x297')]({'id':_0x55a7da['id']})[_0x4c79aa('0x1dc2')][_0x4c79aa('0xaa5')](function(_0xaffe4a){var _0x3e4c66=_0x4c79aa;_0x4e547e['agents'][_0x55a7da['id']]&&_0x51538b()[_0x3e4c66('0x283c')](_0x4e547e[_0x3e4c66('0x1717')][_0x55a7da['id']],_0x51538b()[_0x3e4c66('0x104e')](_0xaffe4a,_0x2f6ed5)),_0x4e547e[_0x3e4c66('0x1f1d')][_0x55a7da['id']]&&_0x51538b()[_0x3e4c66('0x283c')](_0x4e547e[_0x3e4c66('0x1f1d')][_0x55a7da['id']],_0x51538b()[_0x3e4c66('0x104e')](_0xaffe4a,_0x2f6ed5)),_0x5e6dac(_0x4e547e[_0x3e4c66('0x1717')][_0x55a7da['id']]);})['catch'](function(_0x480d34){var _0x4e5fe9=_0x4c79aa;_0x46e0b1[_0x4e5fe9('0x187f')]({'title':_0x480d34['status']?_0x4e5fe9('0x16c2')+_0x480d34[_0x4e5fe9('0x2fa')]+_0x4e5fe9('0x169e')+_0x480d34[_0x4e5fe9('0x24df')]:_0x4e5fe9('0xb8c'),'msg':_0x480d34[_0x4e5fe9('0x10fd')]?JSON['stringify'](_0x480d34[_0x4e5fe9('0x10fd')][_0x4e5fe9('0x1402')]):_0x480d34[_0x4e5fe9('0x684')]()});});}function _0x8f1003(_0x2978a5){var _0x1d4b27=_0x410be5;_0x50d836[_0x1d4b27('0x1e6d')](_0x50d836[_0x1d4b27('0xc10')]()[_0x1d4b27('0x22b9')](!![])['title'](_0x1d4b27('0x17e'))[_0x1d4b27('0x102e')]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')['targetEvent'](_0x2978a5));}function _0x5dc538(_0x5da330,_0x2ab0b3){var _0x16d4e2=_0x410be5;_0x50d836[_0x16d4e2('0x1e6d')]({'controller':_0x16d4e2('0x1200'),'controllerAs':'vm','templateUrl':_0x3a2df9,'parent':angular['element'](_0x5d309f[_0x16d4e2('0x54c')]),'targetEvent':_0x2ab0b3,'clickOutsideToClose':!![],'locals':{'agent':_0x5da330,'agents':[],'channel':'chat','direction':_0x16d4e2('0x4b8'),'crudPermissions':_0x4e547e[_0x16d4e2('0xada')]}});}function _0xc2386e(_0x546b01){var _0x28e60f=_0x410be5;return _0x546b01==='pause'||_0x546b01===_0x28e60f('0xa7d');}function _0x209be0(_0x53db7c){var _0x50b051=_0x410be5;return _0x53db7c===_0x50b051('0x167c');}function _0x498690(_0x3c0a13){var _0x39d08f=_0x410be5;return _0x3c0a13===_0x39d08f('0xa7d');}function _0x516599(_0x3b5b80){var _0x567de4=_0x410be5;return _0x3b5b80===_0x567de4('0x135e')||_0x3b5b80===_0x567de4('0x15fd')||_0x3b5b80==='unavailable'||_0x3b5b80==='ringing'||_0x51538b()['isNil'](_0x3b5b80);}function _0x190da9(_0x1d51f2,_0x504498){var _0x5e8471=_0x410be5;if(_0x504498==='voice'){if(_0x1d51f2[_0x504498+_0x5e8471('0x26ae')]!==_0x5e8471('0x135e'))return _0x1d51f2[_0x504498+'Status'];if(_0x1d51f2[_0x504498+'Pause'])return _0x1d51f2[_0x504498+_0x5e8471('0x26ae')]=_0x5e8471('0x167c'),'pause';return _0x5e8471('0x135e');}else{if(_0x1d51f2[_0x504498+_0x5e8471('0x1bcd')])return _0x1d51f2[_0x504498+_0x5e8471('0x26ae')]='pause',_0x5e8471('0x167c');return _0x1d51f2[_0x504498+_0x5e8471('0x26ae')];}}function _0x5e6dac(_0x4c536f){var _0x1fc8df=_0x410be5,_0x421f76='unknown';if(_0x51538b()[_0x1fc8df('0x2ed')]([_0x190da9(_0x4c536f,_0x1fc8df('0x1b9')),_0x190da9(_0x4c536f,_0x1fc8df('0x20f9')),_0x190da9(_0x4c536f,'mail'),_0x190da9(_0x4c536f,_0x1fc8df('0x170')),_0x190da9(_0x4c536f,_0x1fc8df('0x18da')),_0x190da9(_0x4c536f,_0x1fc8df('0x220d')),_0x190da9(_0x4c536f,_0x1fc8df('0x16c4'))],_0xc2386e))_0x421f76=_0x1fc8df('0x167c');else{if(_0x51538b()[_0x1fc8df('0x2c2')]([_0x190da9(_0x4c536f,'voice'),_0x190da9(_0x4c536f,'chat'),_0x190da9(_0x4c536f,_0x1fc8df('0x14c5')),_0x190da9(_0x4c536f,_0x1fc8df('0x170')),_0x190da9(_0x4c536f,_0x1fc8df('0x18da')),_0x190da9(_0x4c536f,_0x1fc8df('0x220d')),_0x190da9(_0x4c536f,_0x1fc8df('0x16c4'))],_0xc2386e))_0x421f76=_0x1fc8df('0xa7d');else _0x51538b()[_0x1fc8df('0x2ed')]([_0x190da9(_0x4c536f,_0x1fc8df('0x1b9')),_0x190da9(_0x4c536f,_0x1fc8df('0x20f9')),_0x190da9(_0x4c536f,_0x1fc8df('0x14c5')),_0x190da9(_0x4c536f,'openchannel'),_0x190da9(_0x4c536f,'sms'),_0x190da9(_0x4c536f,_0x1fc8df('0x220d')),_0x190da9(_0x4c536f,_0x1fc8df('0x16c4'))],_0x516599)?_0x421f76=_0x1fc8df('0x135e'):_0x421f76=_0x1fc8df('0xa1e');}_0x4c536f[_0x1fc8df('0x151c')]!==_0x421f76&&(_0x4c536f[_0x1fc8df('0x151c')]=_0x421f76,_0x4c536f[_0x1fc8df('0x2e')]?(_0x4c536f['init']=![],_0x4c536f[_0x1fc8df('0x920')]=_0xc2386e(_0x421f76)?_0x51538b()[_0x1fc8df('0x228e')](_0x420d43()(_0x4c536f[_0x1fc8df('0x1ce0')])[_0x1fc8df('0x1f27')]('x')):_0x51538b()[_0x1fc8df('0x4c2')]([_0x4c536f[_0x1fc8df('0x1ddc')],_0x4c536f[_0x1fc8df('0x748')],_0x4c536f['mailStatusTime'],_0x4c536f[_0x1fc8df('0x1561')],_0x4c536f[_0x1fc8df('0x166b')],_0x4c536f[_0x1fc8df('0x26e5')],_0x4c536f[_0x1fc8df('0xa0a')]])):_0x4c536f[_0x1fc8df('0x920')]=_0x51538b()['toNumber'](_0x420d43()()['format']('x')));}function _0x5c4543(_0x23b423){var _0x109451=_0x410be5,_0x522157=_0x51538b()[_0x109451('0x6e8')](_0x4e547e['query'][_0x109451('0x1536')],'-')?_0x109451('0x71c'):_0x109451('0x14b9');return _0x51538b()[_0x109451('0x271d')](_0x23b423,[_0x4e547e[_0x109451('0x582')][_0x109451('0x1536')]['replace']('-','')],[_0x522157]);}function _0x137711(){_0x3c94e1&&(_0x32138f['cancel'](_0x3c94e1),_0x3c94e1=null);}function _0x4d58f9(_0x4b3595,_0x56ad9d){var _0x1f5b5e=_0x410be5;return _0x61c5fd['user']['update']({'id':_0x4b3595['id']},{'screenrecording':_0x56ad9d})[_0x1f5b5e('0x1dc2')]['catch'](function(_0x49a099){var _0x4f58d2=_0x1f5b5e;_0x46e0b1['error']({'title':_0x49a099['status']?_0x4f58d2('0x16c2')+_0x49a099[_0x4f58d2('0x2fa')]+_0x4f58d2('0x169e')+_0x49a099[_0x4f58d2('0x24df')]:_0x4f58d2('0x11e6'),'msg':_0x49a099['data']?JSON['stringify'](_0x49a099[_0x4f58d2('0x10fd')]['message']):_0x49a099['toString']()});});}_0x467061[_0x410be5('0xc75')]('$destroy',function(){var _0x3923f4=_0x410be5;_0x2dd365[_0x3923f4('0x2629')]('user:save'),_0x2dd365[_0x3923f4('0x2629')](_0x3923f4('0x15fb')),_0x2dd365[_0x3923f4('0x2629')]('user:agentconnect'),_0x2dd365[_0x3923f4('0x2629')](_0x3923f4('0x2728')),_0x137711();});}const _0x553bcd=_0x179707,_0x2437dd=_0x4fb511['p']+_0x1a8446('0x11ea'),_0x51d28f=_0x4fb511['p']+_0x1a8446('0x2158');_0x513901['$inject']=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$q','$document',_0x1a8446('0x21b3'),_0x1a8446('0x4d7'),_0x1a8446('0x1f2f'),_0x1a8446('0x157'),'socket',_0x1a8446('0x2a4'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x513901(_0x19b9fb,_0x3029d8,_0x2433b4,_0x391f59,_0x163a81,_0x5f4e9e,_0x57d518,_0x481d0c,_0x23a8fc,_0x89c91f,_0x13abd2,_0x4a9d16,_0x48bb65,_0x9850a){var _0x2b13ea=_0x1a8446,_0x447b70=this,_0x2644b0=[_0x2b13ea('0x2226'),'available','waiting',_0x2b13ea('0xf01'),_0x2b13ea('0x1a56'),_0x2b13ea('0x301'),_0x2b13ea('0x1402'),_0x2b13ea('0x1b71'),_0x2b13ea('0x1ba1'),_0x2b13ea('0x4a6'),_0x2b13ea('0x16ce')];_0x447b70[_0x2b13ea('0x7fc')]=_0x9850a[_0x2b13ea('0xacc')](),_0x447b70[_0x2b13ea('0xd15')]=_0x57d518[_0x2b13ea('0xd15')]?_0x57d518[_0x2b13ea('0xd15')]:0x0,_0x447b70['queues']=_0x57d518?_0x51538b()[_0x2b13ea('0x184a')](_0x57d518[_0x2b13ea('0x580')]?_0x57d518[_0x2b13ea('0x580')]:[],'id'):{},_0x447b70[_0x2b13ea('0x1f2f')]=_0x481d0c?_0x51538b()[_0x2b13ea('0x184a')](_0x481d0c['rows']?_0x481d0c[_0x2b13ea('0x580')]:[],'id'):{},_0x447b70[_0x2b13ea('0x1e97')]=_0x4a9d16,_0x447b70['userProfileSection']=_0x48bb65&&_0x48bb65[_0x2b13ea('0xd15')]==0x1?_0x48bb65['rows'][0x0]:null,_0x447b70[_0x2b13ea('0xada')]=_0x9850a[_0x2b13ea('0xffd')](_0x447b70[_0x2b13ea('0x1a50')]?_0x447b70[_0x2b13ea('0x1a50')][_0x2b13ea('0xada')]:null);_0x9850a[_0x2b13ea('0x26e8')](_0x2b13ea('0x178b'))?_0x447b70['query']={'type':_0x2b13ea('0x4b8'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x447b70[_0x2b13ea('0x582')]={'id':_0x447b70['currentUser']['id'],'channel':_0x2b13ea('0x20f9'),'type':_0x2b13ea('0x4b8'),'sort':_0x2b13ea('0xd82'),'limit':0xa,'page':0x1};_0x447b70['success']=_0x40a9fd,_0x447b70[_0x2b13ea('0x1e87')]=_0x30f37b,_0x447b70[_0x2b13ea('0x63d')]=_0x17fe2c,_0x447b70[_0x2b13ea('0x101f')]=_0x52410c,_0x447b70[_0x2b13ea('0x19b3')]=_0x45f26d,_0x447b70['onSave']=_0x5667ce,_0x447b70['onSaveMember']=_0x1e76cf,_0x447b70[_0x2b13ea('0x6d4')]=_0x2fa74d,_0x447b70[_0x2b13ea('0x2511')]=_0x51738d,_0x447b70[_0x2b13ea('0x24d2')]=_0x46d2e1,_0x447b70[_0x2b13ea('0x10c6')]=_0x4dfc88,_0x447b70[_0x2b13ea('0x141')]=_0x3dd946,_0x447b70['order']=[],_0x51538b()[_0x2b13ea('0x143e')](_0x447b70[_0x2b13ea('0x4d7')],function(_0x5551d9){var _0x3c945f=_0x2b13ea;_0x447b70[_0x3c945f('0x1536')][_0x3c945f('0x1599')](_0x5551d9['id']);}),_0x89c91f['on']('chat_queue:save',_0x447b70[_0x2b13ea('0x1a4b')]),_0x89c91f['on'](_0x2b13ea('0x8de'),_0x447b70[_0x2b13ea('0x22a5')]),_0x89c91f['on']('userChatQueue:remove',_0x447b70[_0x2b13ea('0x6d4')]),_0x89c91f['on'](_0x2b13ea('0x15fb'),_0x447b70[_0x2b13ea('0x2511')]),_0x89c91f['on'](_0x2b13ea('0x10ac'),_0x447b70['onLogout']),_0x89c91f['on'](_0x2b13ea('0x77e'),_0x447b70[_0x2b13ea('0x24d2')]);function _0x3dd946(){var _0x6368d2=_0x2b13ea,_0xfad25a=[];return _0x51538b()[_0x6368d2('0x143e')](_0x447b70[_0x6368d2('0x4d7')],function(_0x1b7c9f,_0x473376){var _0x4bb380=_0x6368d2;_0x1b7c9f[_0x4bb380('0x16ce')]=0x0,_0x1b7c9f[_0x4bb380('0xe81')]=0x0,_0x447b70[_0x4bb380('0x4d7')][_0x473376][_0x4bb380('0x1717')]={},_0xfad25a['push'](_0x23a8fc['chatQueue']['getMembers']({'id':_0x473376})[_0x4bb380('0x1dc2')]),_0x447b70['rpcQueues'][_0x473376]&&_0x51538b()[_0x4bb380('0x283c')](_0x1b7c9f,_0x51538b()['pick'](_0x447b70['rpcQueues'][_0x473376],_0x2644b0));}),_0x391f59[_0x6368d2('0xa15')](_0xfad25a)[_0x6368d2('0xaa5')](function(_0x20e908){var _0x1e2674=_0x6368d2;for(var _0x506b10=0x0;_0x506b10<_0x20e908[_0x1e2674('0x2587')];_0x506b10+=0x1){for(var _0x2ceacd=0x0;_0x2ceacd<_0x20e908[_0x506b10]['rows']['length'];_0x2ceacd++){_0x20e908[_0x506b10][_0x1e2674('0x580')][_0x2ceacd][_0x1e2674('0x16ce')]&&_0x447b70[_0x1e2674('0x4d7')][_0x20e908[_0x506b10][_0x1e2674('0x580')][_0x2ceacd][_0x1e2674('0x2631')]]['paused']++,_0x447b70['queues'][_0x20e908[_0x506b10]['rows'][_0x2ceacd][_0x1e2674('0x2631')]][_0x1e2674('0xe81')]++,_0x447b70[_0x1e2674('0x4d7')][_0x20e908[_0x506b10][_0x1e2674('0x580')][_0x2ceacd][_0x1e2674('0x2631')]][_0x1e2674('0x1717')][_0x20e908[_0x506b10]['rows'][_0x2ceacd]['UserId']]=_0x20e908[_0x506b10][_0x1e2674('0x580')][_0x2ceacd][_0x1e2674('0x2631')];}}})[_0x6368d2('0x253d')](function(_0x1ba151){console['error'](_0x1ba151);});}function _0x5667ce(_0x48720c){var _0x4bfee6=_0x2b13ea;_0x447b70[_0x4bfee6('0x4d7')][_0x48720c['id']]&&_0x51538b()['merge'](_0x447b70[_0x4bfee6('0x4d7')][_0x48720c['id']],_0x51538b()[_0x4bfee6('0x104e')](_0x48720c,_0x2644b0));}function _0x1e76cf(_0x14bd25){var _0x3dcff7=_0x2b13ea;_0x447b70['queues'][_0x14bd25['ChatQueueId']]&&_0x447b70[_0x3dcff7('0x4d7')][_0x14bd25[_0x3dcff7('0x2631')]][_0x3dcff7('0xe81')]++;}function _0x2fa74d(_0x4aff90){var _0x5d1b7f=_0x2b13ea;_0x447b70[_0x5d1b7f('0x4d7')][_0x4aff90[_0x5d1b7f('0x2631')]]&&_0x447b70[_0x5d1b7f('0x4d7')][_0x4aff90[_0x5d1b7f('0x2631')]][_0x5d1b7f('0xe81')]--;}function _0x51738d(_0x3d7f2e){var _0x46b968=_0x2b13ea;console[_0x46b968('0x18d5')](_0x46b968('0x2511'),_0x3d7f2e);if(_0x3d7f2e[_0x46b968('0x2519')])_0x51538b()[_0x46b968('0x143e')](_0x447b70[_0x46b968('0x4d7')],function(_0xfc5df0){var _0x13ce62=_0x46b968;_0xfc5df0[_0x13ce62('0x1717')][_0x3d7f2e['id']]&&(_0xfc5df0[_0x13ce62('0x16ce')]+=0x1,console[_0x13ce62('0x18d5')](_0x13ce62('0x167c')));});else!_0x3d7f2e[_0x46b968('0x2519')]&&_0x51538b()[_0x46b968('0x143e')](_0x447b70[_0x46b968('0x4d7')],function(_0x2e82a4){var _0xae0d38=_0x46b968;_0x2e82a4[_0xae0d38('0x1717')][_0x3d7f2e['id']]&&(_0x2e82a4[_0xae0d38('0x16ce')]>0x0&&(_0x2e82a4[_0xae0d38('0x16ce')]-=0x1,console['log']('unpause')));});}function _0x46d2e1(_0x265b29){var _0xabf473=_0x2b13ea;console[_0xabf473('0x18d5')](_0xabf473('0x1044'),_0x265b29),_0x447b70[_0xabf473('0x4d7')][_0x265b29['ChatQueueId']]&&(_0x447b70[_0xabf473('0x4d7')][_0x265b29[_0xabf473('0x2631')]][_0xabf473('0xe81')]+=0x1,_0x447b70['queues'][_0x265b29[_0xabf473('0x2631')]][_0xabf473('0x1717')][_0x265b29[_0xabf473('0x1037')]]=_0x265b29[_0xabf473('0x2631')]);}function _0x4dfc88(_0x27f9cf){var _0x20134c=_0x2b13ea;console['log']('onLogout',_0x27f9cf),_0x447b70[_0x20134c('0x4d7')][_0x27f9cf[_0x20134c('0x2631')]]&&_0x447b70[_0x20134c('0x4d7')][_0x27f9cf[_0x20134c('0x2631')]][_0x20134c('0xe81')]>0x0&&(_0x447b70[_0x20134c('0x4d7')][_0x27f9cf['ChatQueueId']][_0x20134c('0xe81')]-=0x1,delete _0x447b70[_0x20134c('0x4d7')][_0x27f9cf[_0x20134c('0x2631')]][_0x20134c('0x1717')][_0x27f9cf[_0x20134c('0x1037')]]);}var _0x2a0356=!![],_0x4f455a=0x1;_0x19b9fb['$watch'](_0x2b13ea('0x1788'),function(_0x171ae6,_0x4c4f82){var _0x28989d=_0x2b13ea;_0x2a0356?_0x3029d8(function(){_0x2a0356=![];}):(!_0x4c4f82&&(_0x4f455a=_0x447b70[_0x28989d('0x582')][_0x28989d('0x41')]),_0x171ae6!==_0x4c4f82&&(_0x447b70[_0x28989d('0x582')][_0x28989d('0x41')]=0x1),!_0x171ae6&&(_0x447b70[_0x28989d('0x582')][_0x28989d('0x41')]=_0x4f455a),_0x447b70[_0x28989d('0x1e87')]());});function _0x40a9fd(_0x3850f8){var _0x5ed9de=_0x2b13ea;_0x447b70[_0x5ed9de('0xd15')]=_0x3850f8[_0x5ed9de('0xd15')],_0x447b70['queues']=_0x3850f8?_0x51538b()['keyBy'](_0x3850f8[_0x5ed9de('0x580')]?_0x3850f8[_0x5ed9de('0x580')]:[],'id'):{};if(_0x3850f8[_0x5ed9de('0x580')]){_0x447b70[_0x5ed9de('0x1536')]=[];for(var _0x34975c=0x0;_0x34975c<_0x3850f8[_0x5ed9de('0x580')][_0x5ed9de('0x2587')];_0x34975c++){_0x447b70['order'][_0x5ed9de('0x1599')](_0x3850f8[_0x5ed9de('0x580')][_0x34975c]['id']);}}_0x3dd946();}function _0x30f37b(){var _0x649cfd=_0x2b13ea;_0x447b70['query'][_0x649cfd('0x8b1')]=(_0x447b70[_0x649cfd('0x582')][_0x649cfd('0x41')]-0x1)*_0x447b70[_0x649cfd('0x582')][_0x649cfd('0xf4d')],_0x9850a[_0x649cfd('0x26e8')]('admin')?_0x447b70[_0x649cfd('0x159a')]=_0x23a8fc[_0x649cfd('0x2837')][_0x649cfd('0x2122')](_0x447b70[_0x649cfd('0x582')],_0x40a9fd)['$promise']:(_0x447b70[_0x649cfd('0x582')]['id']=_0x447b70[_0x649cfd('0x1e97')]['id'],_0x447b70['query'][_0x649cfd('0x224d')]=_0x649cfd('0x217c'),_0x447b70[_0x649cfd('0x159a')]=_0x23a8fc['userProfile'][_0x649cfd('0x1cf1')](_0x447b70[_0x649cfd('0x582')],_0x40a9fd)[_0x649cfd('0x1dc2')]);}function _0x17fe2c(_0x8ed23e,_0x50b2f7){var _0x157b47=_0x2b13ea;_0x2433b4[_0x157b47('0x1e6d')]({'controller':_0x157b47('0xaf6'),'controllerAs':'vm','templateUrl':_0x2437dd,'parent':angular['element'](_0x163a81['body']),'targetEvent':_0x8ed23e,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x50b2f7,'chatQueues':_0x51538b()['values'](_0x447b70[_0x157b47('0x4d7')]),'license':null,'setting':null,'crudPermissions':_0x447b70[_0x157b47('0xada')]}});}function _0x52410c(_0x3ae231,_0x55d384){var _0x30c90d=_0x2b13ea;_0x2433b4[_0x30c90d('0x1e6d')]({'controller':_0x30c90d('0x871'),'controllerAs':'vm','templateUrl':_0x51d28f,'parent':angular[_0x30c90d('0x1aa8')](_0x163a81[_0x30c90d('0x54c')]),'targetEvent':_0x3ae231,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x55d384,'chatQueues':_0x447b70[_0x30c90d('0x4d7')]?_0x447b70[_0x30c90d('0x4d7')]['rows']:[],'realtime':![],'crudPermissions':_0x447b70[_0x30c90d('0xada')]}});}function _0x45f26d(_0x519325){var _0x565f98=_0x2b13ea;return _0x23a8fc[_0x565f98('0x2837')][_0x565f98('0x264e')](_0x519325)[_0x565f98('0x1dc2')][_0x565f98('0xaa5')](function(){var _0x4aec83=_0x565f98;_0x13abd2['success']({'title':_0x4aec83('0x2758'),'msg':_0x519325[_0x4aec83('0x25d6')]?_0x519325['name']+_0x4aec83('0x1734'):''});})[_0x565f98('0x253d')](function(_0x34993c){var _0x27c61b=_0x565f98;_0x13abd2[_0x27c61b('0x187f')]({'title':_0x27c61b('0x777'),'msg':_0x34993c['message']});});}_0x19b9fb[_0x2b13ea('0xc75')](_0x2b13ea('0x12d0'),function(){var _0x3edcca=_0x2b13ea;_0x89c91f[_0x3edcca('0x2629')](_0x3edcca('0xbde')),_0x89c91f[_0x3edcca('0x2629')](_0x3edcca('0x8b')),_0x89c91f[_0x3edcca('0x2629')]('userChatQueue:save'),_0x89c91f[_0x3edcca('0x2629')](_0x3edcca('0x15fb')),_0x89c91f[_0x3edcca('0x2629')](_0x3edcca('0x10ac')),_0x89c91f[_0x3edcca('0x2629')](_0x3edcca('0x77e'));});}const _0x42f71d=_0x513901;function _0x3bc3e8(){var _0x30244a=_0x1a8446;return{'status':{'registered':_0x30244a('0x1'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':'red-300-fg\x20icon-close-circle','reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x30244a('0x15cb'),'unknown':_0x30244a('0x17')},'state':{'unknown':_0x30244a('0xc98'),'not_inuse':_0x30244a('0x1670'),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x30244a('0xb2'),'invalid':_0x30244a('0xc98'),'unavailable':_0x30244a('0xc98'),'ringing':_0x30244a('0x1dac'),'ringinuse':_0x30244a('0x1dac'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x30244a('0x1dac'),'up':_0x30244a('0xe58'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x30244a('0x15d9'),'up':_0x30244a('0xe58'),'hangup':_0x30244a('0x182a')}};}const _0xbd4d2f=_0x3bc3e8;_0x519bfd[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0xe74')];function _0x519bfd(_0x5afdf1,_0x47d6fd,_0x26bed3){var _0x3c1f4a=_0x1a8446,_0x3af6f9=this;_0x26bed3[_0x3c1f4a('0x18d1')](),_0x26bed3[_0x3c1f4a('0x16dc')](),_0x3af6f9[_0x3c1f4a('0xe5c')]=0x0;switch(_0x47d6fd['current']['name']){case _0x3c1f4a('0xd21'):_0x3af6f9['selectedTab']=0x0;break;case _0x3c1f4a('0x231'):_0x3af6f9['selectedTab']=0x1;break;default:_0x3af6f9[_0x3c1f4a('0xe5c')]=0x0,_0x47d6fd['go'](_0x3c1f4a('0xd21'));}_0x5afdf1['$watch'](_0x3c1f4a('0xf1a'),function(_0x363e51,_0x2b75eb){var _0x4e0895=_0x3c1f4a;if(_0x363e51!==_0x2b75eb)switch(_0x363e51){case 0x0:_0x47d6fd['go'](_0x4e0895('0xd21'));break;case 0x1:_0x47d6fd['go'](_0x4e0895('0x231'));break;default:_0x47d6fd['go']('app.chat.realtime.agents');}});}const _0x5f1555=_0x519bfd;_0x34618a[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x34618a(_0x57388c){var _0x1ad3a=_0x1a8446;_0x57388c[_0x1ad3a('0xb46')](_0x1ad3a('0x5ab'),{'url':_0x1ad3a('0x22d4'),'views':{'content@app':{'templateUrl':_0x36c5b8,'controller':_0x1ad3a('0x4c4')}},'resolve':{'userProfile':['apiResolver','Auth',function _0x5ce734(_0x4067a3,_0xafe7a3){var _0x317512=_0x1ad3a;return _0xafe7a3[_0x317512('0x26e8')](_0x317512('0x178b'))?null:_0x4067a3[_0x317512('0x149f')](_0x317512('0x567'),{'fields':_0x317512('0x1bb0'),'id':_0xafe7a3[_0x317512('0xacc')]()[_0x317512('0x2168')]});}],'userProfileSection':[_0x1ad3a('0x1d16'),_0x1ad3a('0x1dfd'),function _0x580032(_0x16de04,_0x3ac3dd){var _0x39e711=_0x1ad3a;return _0x3ac3dd[_0x39e711('0x26e8')](_0x39e711('0x178b'))?null:_0x16de04[_0x39e711('0x149f')]('userProfileSection@get',{'fields':_0x39e711('0xe6a'),'userProfileId':_0x3ac3dd[_0x39e711('0xacc')]()[_0x39e711('0x2168')],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})['state'](_0x1ad3a('0xd21'),{'url':_0x1ad3a('0x141f'),'controller':_0x1ad3a('0x2800'),'templateUrl':_0x208805,'resolve':{'pauses':['apiResolver',function _0x4b9631(_0x175ed2){var _0x28cfa2=_0x1ad3a;return _0x175ed2[_0x28cfa2('0x149f')](_0x28cfa2('0x56b'),{'nolimit':!![]});}],'agents':[_0x1ad3a('0x1d16'),_0x1ad3a('0x1dfd'),function _0x5b829d(_0x479c7b,_0x147fb7){var _0x2c30f2=_0x1ad3a;return _0x147fb7[_0x2c30f2('0x26e8')](_0x2c30f2('0x178b'))?_0x479c7b['resolve']('user@get',{'fields':_0x2c30f2('0x515'),'role':_0x2c30f2('0xeff'),'sort':_0x2c30f2('0x18e5'),'nolimit':!![]}):_0x479c7b['resolve']('userProfile@getResources',{'id':_0x147fb7[_0x2c30f2('0xacc')]()[_0x2c30f2('0x2168')],'section':_0x2c30f2('0x91a'),'fields':_0x2c30f2('0x515'),'role':_0x2c30f2('0xeff'),'sort':_0x2c30f2('0x18e5'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x1ad3a('0x1dfd'),function _0x4fcfb6(_0x3f8082,_0x1d2dc8){var _0x112f00=_0x1ad3a;return _0x1d2dc8[_0x112f00('0x26e8')](_0x112f00('0x178b'))?null:_0x3f8082['resolve'](_0x112f00('0x567'),{'fields':'id,name,crudPermissions','id':_0x1d2dc8['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function _0x55b0d7(_0x4adf22,_0x361f40){var _0xf12b9a=_0x1ad3a;return _0x361f40['hasRole']('admin')?null:_0x4adf22[_0xf12b9a('0x149f')](_0xf12b9a('0x89e'),{'fields':_0xf12b9a('0xe6a'),'userProfileId':_0x361f40[_0xf12b9a('0xacc')]()[_0xf12b9a('0x2168')],'sectionId':0xca});}],'rpcAgents':[_0x1ad3a('0x1d16'),function _0x150da0(_0x148c77){var _0x5ab846=_0x1ad3a;return _0x148c77[_0x5ab846('0x149f')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x1fe})[_0x1ad3a('0xb46')](_0x1ad3a('0x231'),{'url':_0x1ad3a('0x1d17'),'controller':_0x1ad3a('0x2de'),'templateUrl':_0x4e32b6,'resolve':{'queues':[_0x1ad3a('0x1d16'),_0x1ad3a('0x1dfd'),function _0x3b3cb7(_0x4be5d9,_0x4c06c7){var _0x41f1f6=_0x1ad3a;return _0x4c06c7['hasRole']('admin')?_0x4be5d9[_0x41f1f6('0x149f')]('chatQueue@get',{'type':_0x41f1f6('0x4b8'),'sort':_0x41f1f6('0xd82'),'limit':0xa,'offset':0x0}):_0x4be5d9['resolve'](_0x41f1f6('0x49a'),{'id':_0x4c06c7[_0x41f1f6('0xacc')]()['userProfileId'],'section':_0x41f1f6('0x217c'),'channel':'chat','type':_0x41f1f6('0x4b8'),'sort':_0x41f1f6('0xd82'),'limit':0xa,'page':0x1});}],'userProfile':[_0x1ad3a('0x1d16'),_0x1ad3a('0x1dfd'),function _0x17579c(_0x55aa74,_0x26fb75){var _0x18db7a=_0x1ad3a;return _0x26fb75[_0x18db7a('0x26e8')](_0x18db7a('0x178b'))?null:_0x55aa74[_0x18db7a('0x149f')](_0x18db7a('0x567'),{'fields':_0x18db7a('0x1bb0'),'id':_0x26fb75[_0x18db7a('0xacc')]()[_0x18db7a('0x2168')]});}],'userProfileSection':[_0x1ad3a('0x1d16'),_0x1ad3a('0x1dfd'),function _0x4acf62(_0x2a6af5,_0x540f25){var _0x155e1b=_0x1ad3a;return _0x540f25[_0x155e1b('0x26e8')](_0x155e1b('0x178b'))?null:_0x2a6af5[_0x155e1b('0x149f')](_0x155e1b('0x89e'),{'fields':_0x155e1b('0xe6a'),'userProfileId':_0x540f25[_0x155e1b('0xacc')]()[_0x155e1b('0x2168')],'sectionId':0x1f5});}],'rpcQueues':[_0x1ad3a('0x1d16'),function _0x1167bc(_0x17a323){var _0x43344e=_0x1ad3a;return _0x17a323['resolve'](_0x43344e('0x1586'));}]},'authenticate':!![],'permissionId':0x1fe});}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x5ab'),[])['config'](_0x34618a)[_0x1a8446('0x780')](_0x1a8446('0x1e66'),_0x553bcd)['controller'](_0x1a8446('0x12b3'),_0x42f71d)[_0x1a8446('0x1be9')](_0x1a8446('0x5b4'),_0xbd4d2f)[_0x1a8446('0x780')]('ChatRealtimeController',_0x5f1555);const _0x4cbe2b=_0x4fb511['p']+_0x1a8446('0x40e');_0x4a9393[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0xc6f'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'api',_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting'];function _0x4a9393(_0x4def85,_0x562ff6,_0x54792f,_0x2fe799,_0x5c2c47,_0xe79f8a,_0x2df6f0,_0x4040d5,_0x389baf,_0x2b49f8,_0x52db15,_0x5b216c,_0x184253,_0x331a98,_0x2b8e21,_0x4441e7,_0x1962e9){var _0x20fa5b=_0x1a8446,_0x21ebd1=this;_0x21ebd1['license']=_0x4441e7,_0x21ebd1[_0x20fa5b('0x143f')]=_0x1962e9,_0x21ebd1[_0x20fa5b('0x7fc')]=_0x2b8e21['getCurrentUser'](),_0x21ebd1[_0x20fa5b('0xc6f')]=_0x389baf||{'count':0x0,'rows':[]},_0x21ebd1[_0x20fa5b('0x1e97')]=_0x2b49f8,_0x21ebd1[_0x20fa5b('0x1a50')]=_0x52db15&&_0x52db15[_0x20fa5b('0xd15')]==0x1?_0x52db15[_0x20fa5b('0x580')][0x0]:null,_0x21ebd1[_0x20fa5b('0xada')]=_0x2b8e21['parseCrudPermissions'](_0x21ebd1[_0x20fa5b('0x1a50')]?_0x21ebd1[_0x20fa5b('0x1a50')]['crudPermissions']:null),_0x21ebd1[_0x20fa5b('0x12b6')]='chatQueues',_0x21ebd1['listOrder']='',_0x21ebd1['listOrderAsc']=null,_0x21ebd1[_0x20fa5b('0xa87')]=[],_0x21ebd1[_0x20fa5b('0x582')]={'fields':_0x20fa5b('0x698'),'sort':_0x20fa5b('0xd82'),'channel':_0x20fa5b('0x20f9'),'limit':0xa,'page':0x1},_0x21ebd1[_0x20fa5b('0x2501')]=_0x51538b()[_0x20fa5b('0x184a')]([{'option':_0x20fa5b('0x263b'),'value':'\x27beepall\x27'},{'option':_0x20fa5b('0x232a'),'value':_0x20fa5b('0x2576')}],function(_0x22f234){var _0x2d8536=_0x20fa5b;return _0x51538b()[_0x2d8536('0x170d')](_0x22f234[_0x2d8536('0x12f4')],new RegExp('\x27','g'),'');}),_0x21ebd1[_0x20fa5b('0x1927')]=_0x5b2802,_0x21ebd1[_0x20fa5b('0x158f')]=_0xe6e29c,_0x21ebd1[_0x20fa5b('0x16a5')]=_0x3744f2,_0x21ebd1[_0x20fa5b('0x271')]=_0x20ce68,_0x21ebd1[_0x20fa5b('0x2389')]=_0x2b0f01,_0x21ebd1[_0x20fa5b('0xe10')]=_0x5bda37,_0x21ebd1['getChatQueues']=_0x51c9b6,_0x21ebd1[_0x20fa5b('0x63d')]=_0x2efa8e,_0x21ebd1['deleteChatQueue']=_0xd3afb8,_0x21ebd1[_0x20fa5b('0x260c')]=_0x4048e7,_0x21ebd1['deleteSelectedChatQueues']=_0x4c3f34,_0x21ebd1['deselectChatQueues']=_0x39ef57,_0x21ebd1[_0x20fa5b('0x17f3')]=_0x3d0106;function _0x5b2802(_0x142c54){var _0x16cd53=_0x20fa5b;_0x54792f['go'](_0x16cd53('0x25c6'),{'id':_0x142c54['id'],'chatQueue':_0x142c54,'crudPermissions':_0x21ebd1['crudPermissions']});}function _0xe6e29c(_0x2e8acf,_0x486fcf){var _0x4abc76=_0x20fa5b;_0x5c2c47[_0x4abc76('0x1e6d')]({'controller':_0x4abc76('0x3ef'),'controllerAs':'vm','templateUrl':_0x4cbe2b,'parent':angular[_0x4abc76('0x1aa8')](_0xe79f8a['body']),'targetEvent':_0x486fcf,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2e8acf,'chatQueues':_0x21ebd1[_0x4abc76('0xc6f')]?_0x21ebd1[_0x4abc76('0xc6f')][_0x4abc76('0x580')]:[],'crudPermissions':_0x21ebd1[_0x4abc76('0xada')]}});}function _0x3744f2(_0x52094b,_0x69e55a){var _0x9de8e4=_0x20fa5b;_0x5c2c47['show']({'controller':_0x9de8e4('0x871'),'controllerAs':'vm','templateUrl':_0x51d28f,'parent':angular[_0x9de8e4('0x1aa8')](_0xe79f8a['body']),'targetEvent':_0x69e55a,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x52094b,'chatQueues':_0x21ebd1[_0x9de8e4('0xc6f')]?_0x21ebd1[_0x9de8e4('0xc6f')][_0x9de8e4('0x580')]:[],'crudPermissions':_0x21ebd1['crudPermissions'],'realtime':![]}});}function _0x20ce68(_0x2b016f,_0x10845e){var _0x3f509=_0x20fa5b,_0x3f0019=_0x5c2c47[_0x3f509('0x281e')]()[_0x3f509('0x110a')](_0x3f509('0x88d')+_0x51538b()[_0x3f509('0x196a')](_0x3f509('0x2837'))+'?')[_0x3f509('0x102e')](_0x3f509('0x389')+(_0x2b016f['name']||'chatQueue')+_0x3f509('0x697')+'\x20will\x20be\x20deleted.')[_0x3f509('0x5b5')](_0x3f509('0x15d'))[_0x3f509('0x116d')](_0x10845e)['ok']('OK')[_0x3f509('0x2030')](_0x3f509('0x2410'));_0x5c2c47[_0x3f509('0x1e6d')](_0x3f0019)['then'](function(){_0xd3afb8(_0x2b016f);},function(){var _0x2d1d3b=_0x3f509;console[_0x2d1d3b('0x18d5')]('CANCEL');});}function _0x2b0f01(){var _0xea49a5=_0x20fa5b;if(_0x2b8e21[_0xea49a5('0x26e8')]('admin'))_0x54792f['go'](_0xea49a5('0x231'),{});else return _0x5b216c[_0xea49a5('0x1a50')]['get']({'userProfileId':_0x2b8e21[_0xea49a5('0xacc')]()['userProfileId'],'sectionId':0x1fe})[_0xea49a5('0x1dc2')][_0xea49a5('0xaa5')](function(_0x1b4db9){var _0x2973b4=_0xea49a5,_0x2d651b=_0x1b4db9&&_0x1b4db9[_0x2973b4('0x580')]?_0x1b4db9[_0x2973b4('0x580')][0x0]:null;_0x2d651b&&_0x2d651b[_0x2973b4('0xbd3')]?_0x54792f['go'](_0x2973b4('0x231'),{}):_0x331a98['info']({'title':_0x4040d5['instant'](_0x2973b4('0x1aab')),'msg':_0x4040d5[_0x2973b4('0x213f')](_0x2973b4('0x251c'))});})['catch'](function(_0x3966ca){var _0x29a364=_0xea49a5;_0x331a98[_0x29a364('0x187f')]({'title':_0x3966ca[_0x29a364('0x2fa')]?_0x29a364('0x16c2')+_0x3966ca[_0x29a364('0x2fa')]+_0x29a364('0x169e')+_0x3966ca[_0x29a364('0x24df')]:_0x29a364('0x21d5'),'msg':_0x3966ca['status']?JSON['stringify'](_0x3966ca[_0x29a364('0x10fd')]):_0x3966ca[_0x29a364('0x684')]()});});}var _0x20730f=!![],_0x231a8f=0x1;_0x4def85[_0x20fa5b('0x1ccf')](_0x20fa5b('0x1788'),function(_0x36ff4c,_0x493773){var _0x105817=_0x20fa5b;_0x20730f?_0x2df6f0(function(){_0x20730f=![];}):(!_0x493773&&(_0x231a8f=_0x21ebd1[_0x105817('0x582')][_0x105817('0x41')]),_0x36ff4c!==_0x493773&&(_0x21ebd1['query']['page']=0x1),!_0x36ff4c&&(_0x21ebd1['query'][_0x105817('0x41')]=_0x231a8f),_0x21ebd1[_0x105817('0x152f')]());});function _0x5bda37(_0x124cb0){var _0x36c180=_0x20fa5b;_0x21ebd1[_0x36c180('0xc6f')]=_0x124cb0||{'count':0x0,'rows':[]};}function _0x51c9b6(){var _0x24fc74=_0x20fa5b;_0x21ebd1[_0x24fc74('0x582')][_0x24fc74('0x8b1')]=(_0x21ebd1['query'][_0x24fc74('0x41')]-0x1)*_0x21ebd1[_0x24fc74('0x582')]['limit'],_0x2b8e21[_0x24fc74('0x26e8')](_0x24fc74('0x178b'))?_0x21ebd1[_0x24fc74('0x159a')]=_0x5b216c['chatQueue'][_0x24fc74('0x2122')](_0x21ebd1[_0x24fc74('0x582')],_0x5bda37)['$promise']:(_0x21ebd1['query']['id']=_0x21ebd1[_0x24fc74('0x1e97')]['id'],_0x21ebd1[_0x24fc74('0x582')]['section']=_0x24fc74('0x217c'),_0x21ebd1[_0x24fc74('0x159a')]=_0x5b216c[_0x24fc74('0x1e97')]['getResources'](_0x21ebd1[_0x24fc74('0x582')],_0x5bda37)[_0x24fc74('0x1dc2')]);}function _0x2efa8e(_0x5eb239,_0x1e3196){var _0x1a673e=_0x20fa5b;_0x5c2c47[_0x1a673e('0x1e6d')]({'controller':'CreateOrEditChatQueueDialogController','controllerAs':'vm','templateUrl':_0x2437dd,'parent':angular['element'](_0xe79f8a['body']),'targetEvent':_0x5eb239,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1e3196,'chatQueues':_0x21ebd1['chatQueues'][_0x1a673e('0x580')],'license':_0x21ebd1[_0x1a673e('0x1202')],'setting':_0x21ebd1['setting'],'crudPermissions':_0x21ebd1[_0x1a673e('0xada')]}});}function _0xd3afb8(_0x52e1cf){var _0x34353c=_0x20fa5b;_0x5b216c[_0x34353c('0x2837')][_0x34353c('0x926')]({'id':_0x52e1cf['id']})[_0x34353c('0x1dc2')]['then'](function(){var _0x49ebf1=_0x34353c;_0x51538b()[_0x49ebf1('0xf6d')](_0x21ebd1[_0x49ebf1('0xc6f')][_0x49ebf1('0x580')],{'id':_0x52e1cf['id']}),_0x21ebd1[_0x49ebf1('0xc6f')]['count']-=0x1,!_0x21ebd1['chatQueues']['rows'][_0x49ebf1('0x2587')]&&_0x21ebd1[_0x49ebf1('0x152f')](),_0x331a98[_0x49ebf1('0xe10')]({'title':_0x51538b()[_0x49ebf1('0x196a')](_0x49ebf1('0x73f'))+_0x49ebf1('0x8bb'),'msg':_0x52e1cf[_0x49ebf1('0x25d6')]?_0x52e1cf['name']+_0x49ebf1('0xcd9'):''});})[_0x34353c('0x253d')](function(_0x36ed91){var _0x555426=_0x34353c;if(_0x36ed91['data']&&_0x36ed91[_0x555426('0x10fd')][_0x555426('0x4c6')]&&_0x36ed91[_0x555426('0x10fd')][_0x555426('0x4c6')][_0x555426('0x2587')]){_0x21ebd1[_0x555426('0x4c6')]=_0x36ed91[_0x555426('0x10fd')][_0x555426('0x4c6')]||[{'message':_0x36ed91['toString'](),'type':'SYSTEM:DELETEchatQueue'}];for(var _0x493989=0x0;_0x493989<_0x36ed91['data'][_0x555426('0x4c6')]['length'];_0x493989++){_0x331a98[_0x555426('0x187f')]({'title':_0x36ed91[_0x555426('0x10fd')][_0x555426('0x4c6')][_0x493989]['type'],'msg':_0x36ed91['data']['errors'][_0x493989][_0x555426('0x1402')]});}}else _0x331a98['error']({'title':_0x36ed91['status']?'API:'+_0x36ed91[_0x555426('0x2fa')]+_0x555426('0x169e')+_0x36ed91['statusText']:_0x555426('0x2454'),'msg':_0x36ed91['data']?JSON[_0x555426('0xa48')](_0x36ed91[_0x555426('0x10fd')][_0x555426('0x1402')]):_0x36ed91[_0x555426('0x1402')]||_0x36ed91[_0x555426('0x684')]()});});}function _0x4048e7(){var _0x552af4=_0x20fa5b,_0x24a1a9=angular[_0x552af4('0x20a')](_0x21ebd1[_0x552af4('0xa87')]);return _0x21ebd1['selectedChatQueues']=[],_0x24a1a9;}function _0x4c3f34(_0x109370){var _0xc19667=_0x20fa5b,_0x5ea799=_0x5c2c47[_0xc19667('0x281e')]()[_0xc19667('0x110a')](_0xc19667('0x26aa'))[_0xc19667('0x102e')](_0xc19667('0x389')+_0x21ebd1[_0xc19667('0xa87')]['length']+_0xc19667('0x1443')+_0xc19667('0x210d'))[_0xc19667('0x5b5')]('delete\x20ChatQueues')[_0xc19667('0x116d')](_0x109370)['ok']('OK')['cancel'](_0xc19667('0x2410'));_0x5c2c47[_0xc19667('0x1e6d')](_0x5ea799)['then'](function(){var _0x351257=_0xc19667;_0x21ebd1[_0x351257('0xa87')][_0x351257('0x15b5')](function(_0x131dc0){_0xd3afb8(_0x131dc0);}),_0x21ebd1[_0x351257('0xa87')]=[];});}function _0x39ef57(){_0x21ebd1['selectedChatQueues']=[];}function _0x3d0106(){var _0x135dc9=_0x20fa5b;_0x21ebd1[_0x135dc9('0xa87')]=_0x21ebd1['chatQueues'][_0x135dc9('0x580')];}}const _0xe385e2=_0x4a9393;_0x1538bc[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'chatQueues',_0x1a8446('0x2837'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),'crudPermissions'];function _0x1538bc(_0x1f976d,_0x151e49,_0x538e65,_0x1f1b36,_0x1543a6,_0x65a88c,_0x427ae0,_0x41510b,_0x2ccd48,_0x2208b3,_0x25ad72,_0x4e37fb,_0x58295a,_0x3038c5){var _0x29ccef=_0x1a8446,_0x16eb5f=this;_0x16eb5f[_0x29ccef('0x7fc')]=_0x25ad72[_0x29ccef('0xacc')](),_0x16eb5f['errors']=[],_0x16eb5f['setting']=_0x58295a,_0x16eb5f[_0x29ccef('0x1202')]=_0x4e37fb,_0x16eb5f[_0x29ccef('0xada')]=_0x3038c5,_0x16eb5f['hasModulePermissions']={},_0x16eb5f[_0x29ccef('0x1d53')]=_0x16eb5f['setting']&&_0x16eb5f[_0x29ccef('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x16eb5f['title']=_0x29ccef('0x2145'),_0x16eb5f['chatQueue']=angular['copy'](_0x2ccd48),_0x16eb5f['chatQueues']=_0x41510b,_0x16eb5f[_0x29ccef('0x2813')]=![];!_0x16eb5f[_0x29ccef('0x2837')]&&(_0x16eb5f['chatQueue']={'strategy':_0x29ccef('0x258'),'timeout':0xa},_0x16eb5f['title']=_0x29ccef('0x1992'),_0x16eb5f[_0x29ccef('0x2813')]=!![]);_0x16eb5f[_0x29ccef('0x10ad')]=_0x3bf269,_0x16eb5f['saveChatQueue']=_0x2693ca,_0x16eb5f[_0x29ccef('0x1bef')]=_0x45171d,_0x16eb5f['getDateFromString']=_0x25e5d2,_0x16eb5f[_0x29ccef('0x2023')]=_0x7230b4;function _0x3bf269(){var _0x4e02ce=_0x29ccef;_0x16eb5f[_0x4e02ce('0x4c6')]=[],_0x2208b3[_0x4e02ce('0x2837')][_0x4e02ce('0x242b')](_0x16eb5f[_0x4e02ce('0x2837')])['$promise'][_0x4e02ce('0xaa5')](function(_0xa5f776){var _0x35bb08=_0x4e02ce;_0x16eb5f[_0x35bb08('0xc6f')][_0x35bb08('0x6ee')](_0xa5f776['toJSON']()),_0x427ae0[_0x35bb08('0xe10')]({'title':_0x35bb08('0x262'),'msg':_0x16eb5f[_0x35bb08('0x2837')][_0x35bb08('0x25d6')]?_0x16eb5f[_0x35bb08('0x2837')][_0x35bb08('0x25d6')]+_0x35bb08('0xdca'):''}),_0x7230b4(_0xa5f776);})[_0x4e02ce('0x253d')](function(_0x42ee8e){var _0x452ac2=_0x4e02ce;if(_0x42ee8e[_0x452ac2('0x10fd')]&&_0x42ee8e[_0x452ac2('0x10fd')]['errors']&&_0x42ee8e[_0x452ac2('0x10fd')][_0x452ac2('0x4c6')]['length']){_0x16eb5f[_0x452ac2('0x4c6')]=_0x42ee8e[_0x452ac2('0x10fd')][_0x452ac2('0x4c6')]||[{'message':_0x42ee8e['toString'](),'type':_0x452ac2('0x154d')}];for(var _0x9404d3=0x0;_0x9404d3<_0x42ee8e[_0x452ac2('0x10fd')]['errors'][_0x452ac2('0x2587')];_0x9404d3+=0x1){_0x427ae0['error']({'title':_0x42ee8e['data'][_0x452ac2('0x4c6')][_0x9404d3][_0x452ac2('0x6c8')],'msg':_0x42ee8e[_0x452ac2('0x10fd')]['errors'][_0x9404d3][_0x452ac2('0x1402')]});}}else _0x427ae0[_0x452ac2('0x187f')]({'title':_0x42ee8e[_0x452ac2('0x2fa')]?'API:'+_0x42ee8e[_0x452ac2('0x2fa')]+_0x452ac2('0x169e')+_0x42ee8e['statusText']:_0x452ac2('0x154d'),'msg':_0x42ee8e[_0x452ac2('0x10fd')]?JSON['stringify'](_0x42ee8e[_0x452ac2('0x10fd')]['message']):_0x42ee8e[_0x452ac2('0x684')]()});});}function _0x2693ca(){var _0x13bcac=_0x29ccef;_0x16eb5f['errors']=[],_0x2208b3[_0x13bcac('0x2837')]['update']({'id':_0x16eb5f[_0x13bcac('0x2837')]['id']},_0x16eb5f[_0x13bcac('0x2837')])[_0x13bcac('0x1dc2')][_0x13bcac('0xaa5')](function(_0x1f0c13){var _0x136c98=_0x13bcac,_0x18b1d8=_0x51538b()['find'](_0x16eb5f[_0x136c98('0xc6f')],{'id':_0x1f0c13['id']});_0x18b1d8&&_0x51538b()[_0x136c98('0x283c')](_0x18b1d8,_0x51538b()[_0x136c98('0x104e')](_0x1f0c13[_0x136c98('0x256a')](),_0x51538b()[_0x136c98('0x9f2')](_0x18b1d8))),_0x427ae0[_0x136c98('0xe10')]({'title':_0x136c98('0x2212'),'msg':_0x16eb5f[_0x136c98('0x2837')][_0x136c98('0x25d6')]?_0x16eb5f['chatQueue'][_0x136c98('0x25d6')]+_0x136c98('0x20bf'):''}),_0x7230b4(_0x1f0c13);})[_0x13bcac('0x253d')](function(_0x46ba8b){var _0x4773fa=_0x13bcac;if(_0x46ba8b['data']&&_0x46ba8b[_0x4773fa('0x10fd')][_0x4773fa('0x4c6')]&&_0x46ba8b['data'][_0x4773fa('0x4c6')][_0x4773fa('0x2587')]){_0x16eb5f[_0x4773fa('0x4c6')]=_0x46ba8b[_0x4773fa('0x10fd')][_0x4773fa('0x4c6')]||[{'message':_0x46ba8b[_0x4773fa('0x684')](),'type':'api.chatQueue.update'}];for(var _0x2d6e9f=0x0;_0x2d6e9f<_0x46ba8b[_0x4773fa('0x10fd')][_0x4773fa('0x4c6')][_0x4773fa('0x2587')];_0x2d6e9f++){_0x427ae0[_0x4773fa('0x187f')]({'title':_0x46ba8b[_0x4773fa('0x10fd')]['errors'][_0x2d6e9f][_0x4773fa('0x6c8')],'msg':_0x46ba8b[_0x4773fa('0x10fd')]['errors'][_0x2d6e9f][_0x4773fa('0x1402')]});}}else _0x427ae0[_0x4773fa('0x187f')]({'title':_0x46ba8b[_0x4773fa('0x2fa')]?_0x4773fa('0x16c2')+_0x46ba8b['status']+_0x4773fa('0x169e')+_0x46ba8b[_0x4773fa('0x24df')]:_0x4773fa('0x4e4'),'msg':_0x46ba8b['data']?JSON[_0x4773fa('0xa48')](_0x46ba8b[_0x4773fa('0x10fd')][_0x4773fa('0x1402')]):_0x46ba8b[_0x4773fa('0x684')]()});});}function _0x45171d(_0x38cedc){var _0x2c1e08=_0x29ccef;_0x16eb5f['errors']=[];var _0x10105c=_0x1f1b36[_0x2c1e08('0x281e')]()[_0x2c1e08('0x110a')](_0x2c1e08('0x12a3'))['content'](_0x2c1e08('0x138f'))[_0x2c1e08('0x5b5')](_0x2c1e08('0x1c'))['ok'](_0x2c1e08('0x1e76'))[_0x2c1e08('0x2030')](_0x2c1e08('0x9c6'))[_0x2c1e08('0x116d')](_0x38cedc);_0x1f1b36[_0x2c1e08('0x1e6d')](_0x10105c)[_0x2c1e08('0xaa5')](function(){var _0x190e2c=_0x2c1e08;_0x2208b3['chatQueue'][_0x190e2c('0x926')]({'id':_0x16eb5f[_0x190e2c('0x2837')]['id']})[_0x190e2c('0x1dc2')][_0x190e2c('0xaa5')](function(){var _0x1b6852=_0x190e2c;_0x51538b()[_0x1b6852('0xf6d')](_0x16eb5f[_0x1b6852('0xc6f')],{'id':_0x16eb5f[_0x1b6852('0x2837')]['id']}),_0x427ae0['success']({'title':_0x1b6852('0x579'),'msg':(_0x16eb5f[_0x1b6852('0x2837')][_0x1b6852('0x25d6')]||_0x1b6852('0x2837'))+_0x1b6852('0xcd9')}),_0x7230b4(_0x16eb5f['chatQueue']);})['catch'](function(_0x36548b){var _0x352979=_0x190e2c;if(_0x36548b[_0x352979('0x10fd')]&&_0x36548b[_0x352979('0x10fd')]['errors']&&_0x36548b['data'][_0x352979('0x4c6')][_0x352979('0x2587')]){_0x16eb5f[_0x352979('0x4c6')]=_0x36548b[_0x352979('0x10fd')][_0x352979('0x4c6')]||[{'message':_0x36548b[_0x352979('0x684')](),'type':'api.chatQueue.delete'}];for(var _0x1e1741=0x0;_0x1e1741<_0x36548b[_0x352979('0x10fd')]['errors'][_0x352979('0x2587')];_0x1e1741++){_0x427ae0[_0x352979('0x187f')]({'title':_0x36548b['data'][_0x352979('0x4c6')][_0x1e1741][_0x352979('0x6c8')],'msg':_0x36548b[_0x352979('0x10fd')][_0x352979('0x4c6')][_0x1e1741][_0x352979('0x1402')]});}}else _0x427ae0[_0x352979('0x187f')]({'title':_0x36548b[_0x352979('0x2fa')]?_0x352979('0x16c2')+_0x36548b[_0x352979('0x2fa')]+'\x20-\x20'+_0x36548b[_0x352979('0x24df')]:_0x352979('0x233'),'msg':_0x36548b['data']?JSON[_0x352979('0xa48')](_0x36548b[_0x352979('0x10fd')]['message']):_0x36548b[_0x352979('0x1402')]||_0x36548b[_0x352979('0x684')]()});});},function(){});}function _0x25e5d2(_0x1dd5e2){return _0x1dd5e2===null?undefined:new Date(_0x1dd5e2);}function _0x7230b4(_0x4ecf48){var _0x206e59=_0x29ccef;_0x1f1b36[_0x206e59('0x1120')](_0x4ecf48);}}const _0x383503=_0x1538bc;_0x1151d4[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),'chatQueue','chatQueues',_0x1a8446('0x4f3'),'$translate',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x1151d4(_0x2222a3,_0x2e96a5,_0x417db0,_0x15687b,_0x1162c5,_0x59f1f8,_0x2ecab5,_0x49b42e,_0x1d60c4,_0x192158){var _0x418dd7=_0x1a8446,_0x53c4f3=this;_0x53c4f3[_0x418dd7('0x7fc')]=_0x1d60c4[_0x418dd7('0xacc')](),_0x53c4f3['chatQueue']=_0x1162c5,_0x53c4f3['crudPermissions']=_0x192158,_0x53c4f3[_0x418dd7('0x4f3')]=_0x2ecab5,_0x53c4f3[_0x418dd7('0x1a30')]=[],_0x53c4f3[_0x418dd7('0x11b9')]=[],_0x53c4f3[_0x418dd7('0xbf7')]=[],_0x53c4f3[_0x418dd7('0x215b')]=[],_0x53c4f3[_0x418dd7('0x214a')]=[],_0x53c4f3[_0x418dd7('0xc54')]=![],_0x53c4f3['onInit']=_0x4c07c5,_0x53c4f3[_0x418dd7('0x17bb')]=_0x47438f,_0x53c4f3['closeDialog']=_0x55cadd,_0x53c4f3[_0x418dd7('0x1c23')]={'readOnly':!_0x53c4f3[_0x418dd7('0xada')][_0x418dd7('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x418dd7('0x25d6'),'line1':_0x418dd7('0x18e5'),'line2':[_0x418dd7('0x25d6'),'internal'],'line3':'','labelAll':_0x49b42e[_0x418dd7('0x213f')]('CHAT.ALL_AGENTS'),'labelSelected':_0x49b42e[_0x418dd7('0x213f')](_0x418dd7('0x1113')),'transferCallback':function _0x389fb3(){var _0x18d432=_0x418dd7,_0x1939a4=_0x51538b()[_0x18d432('0x9ef')](_0x53c4f3[_0x18d432('0x214a')],_0x53c4f3[_0x18d432('0xbf7')],'id');_0x53c4f3[_0x18d432('0xc54')]=_0x51538b()['isEmpty'](_0x1939a4)?![]:!![];}};function _0x4c07c5(){var _0x42ccff=_0x418dd7;return _0x1d60c4[_0x42ccff('0x26e8')](_0x42ccff('0x178b'))?_0x3f6e8f()[_0x42ccff('0x253d')](function(_0x4d8d45){var _0x4c7c83=_0x42ccff;_0x417db0['error']({'title':_0x4d8d45['status']?_0x4c7c83('0x16c2')+_0x4d8d45['status']+'\x20-\x20'+_0x4d8d45[_0x4c7c83('0x24df')]:_0x4c7c83('0x14c6'),'msg':_0x4d8d45[_0x4c7c83('0x2fa')]?JSON[_0x4c7c83('0xa48')](_0x4d8d45[_0x4c7c83('0x10fd')]):_0x4d8d45[_0x4c7c83('0x684')]()});}):_0x4eb461()['then'](function(_0x196edf){var _0x2b1ede=_0x42ccff;return _0x53c4f3[_0x2b1ede('0x224d')]=_0x196edf,_0x3f6e8f();})['catch'](function(_0x35bd85){var _0x3ecace=_0x42ccff;_0x417db0[_0x3ecace('0x187f')]({'title':_0x35bd85['status']?_0x3ecace('0x16c2')+_0x35bd85[_0x3ecace('0x2fa')]+_0x3ecace('0x169e')+_0x35bd85[_0x3ecace('0x24df')]:_0x3ecace('0x14c6'),'msg':_0x35bd85[_0x3ecace('0x2fa')]?JSON[_0x3ecace('0xa48')](_0x35bd85[_0x3ecace('0x10fd')]):_0x35bd85[_0x3ecace('0x684')]()});});}function _0x4eb461(){return _0x2e96a5(function(_0xeb8550,_0x803eca){var _0x4d3827=a0_0x1149;_0x15687b[_0x4d3827('0x1a50')]['get']({'userProfileId':_0x53c4f3[_0x4d3827('0x7fc')][_0x4d3827('0x2168')],'name':_0x4d3827('0x91a')})[_0x4d3827('0x1dc2')][_0x4d3827('0xaa5')](function(_0x50523e){var _0x467460=_0x50523e&&_0x50523e['rows']?_0x50523e['rows'][0x0]:null;_0xeb8550(_0x467460);})['catch'](function(_0x3d5913){_0x803eca(_0x3d5913);});});}function _0x3f6e8f(){return _0x2e96a5(function(_0x5782eb,_0xefa7c8){var _0x4b07ea=a0_0x1149;return _0xe48fdc()['then'](function(_0x2da9e7){var _0x1e1512=a0_0x1149;return _0x53c4f3['items']=_0x2da9e7[_0x1e1512('0x580')]?_0x2da9e7[_0x1e1512('0x580')]:[],_0x1d60c4[_0x1e1512('0x26e8')](_0x1e1512('0x178b'))?_0x2da9e7:_0x53c4f3['section']?_0x53c4f3[_0x1e1512('0x224d')][_0x1e1512('0x26cc')]?_0x2da9e7:_0x598e74():null;})['then'](function(_0x18a55d){var _0x1b0c94=a0_0x1149,_0x277081=_0x18a55d&&_0x18a55d['rows']?_0x18a55d['rows']:[];return _0x53c4f3[_0x1b0c94('0x11b9')]=_0x51538b()[_0x1b0c94('0x1246')](_0x277081,function(_0x1a8b5c){var _0x2d0d2a=_0x1b0c94;return _0x51538b()[_0x2d0d2a('0xe9e')](_0x53c4f3[_0x2d0d2a('0x1a30')],{'id':_0x1d60c4['hasRole'](_0x2d0d2a('0x178b'))||_0x53c4f3[_0x2d0d2a('0x224d')]['autoAssociation']?_0x1a8b5c['id']:_0x1a8b5c[_0x2d0d2a('0xbcd')]});}),_0x53c4f3[_0x1b0c94('0x215b')]=angular['copy'](_0x53c4f3[_0x1b0c94('0x11b9')]),_0x53c4f3['items'][_0x1b0c94('0x15b5')](function(_0x2c1b0d){var _0x1178e6=_0x1b0c94,_0x1f9b7c=_0x51538b()[_0x1178e6('0xe9e')](_0x53c4f3[_0x1178e6('0x11b9')],{'id':_0x2c1b0d['id']});_0x1d60c4[_0x1178e6('0x26e8')](_0x1178e6('0x178b'))?_0x2c1b0d[_0x1178e6('0x145d')]=!![]:_0x2c1b0d[_0x1178e6('0x145d')]=typeof _0x1f9b7c!==_0x1178e6('0x1574')?!![]:![];}),_0x39cd29();})['then'](function(_0x3cf03c){var _0x39d964=a0_0x1149,_0xccc7ed=_0x3cf03c&&_0x3cf03c[_0x39d964('0x580')]?_0x3cf03c['rows']:[];_0x53c4f3[_0x39d964('0xbf7')]=_0x51538b()[_0x39d964('0x1246')](_0xccc7ed,function(_0x10fd75){var _0x32dbfa=_0x39d964,_0x3a0836=_0x51538b()[_0x32dbfa('0xe9e')](_0x53c4f3[_0x32dbfa('0x1a30')],{'id':_0x10fd75['id']});return _0x3a0836[_0x32dbfa('0x2234')]=_0x10fd75[_0x32dbfa('0x8cf')]?_0x32dbfa('0x17b0')+_0x10fd75[_0x32dbfa('0x8cf')][_0x32dbfa('0x2234')]:'',_0x3a0836['internal']=typeof _0x10fd75[_0x32dbfa('0x1b0d')]!=='undefined'?'<'+_0x10fd75[_0x32dbfa('0x1b0d')]+'>':'',_0x3a0836;}),_0x53c4f3['startingSelectedItems']=angular[_0x39d964('0x20a')](_0x53c4f3[_0x39d964('0xbf7')]),_0x53c4f3[_0x39d964('0x1c23')]['selectedItems']=_0x53c4f3[_0x39d964('0xbf7')],_0x53c4f3[_0x39d964('0x1c23')][_0x39d964('0x1a30')]=_0x51538b()[_0x39d964('0x1ebb')](_0x53c4f3[_0x39d964('0x11b9')],_0x53c4f3['dualMultiselectOptions']['selectedItems'],'id'),_0x5782eb();})[_0x4b07ea('0x253d')](function(_0x5eb846){_0xefa7c8(_0x5eb846);});});}function _0x598e74(){return _0x2e96a5(function(_0x6c4fa7,_0x24cbcd){var _0x4ac5b7=a0_0x1149;return _0x15687b[_0x4ac5b7('0x249a')][_0x4ac5b7('0x2122')]({'sectionId':_0x53c4f3[_0x4ac5b7('0x224d')]['id'],'nolimit':!![]})[_0x4ac5b7('0x1dc2')][_0x4ac5b7('0xaa5')](function(_0xb0b72e){_0x6c4fa7(_0xb0b72e);})[_0x4ac5b7('0x253d')](function(_0x11fff4){_0x24cbcd(_0x11fff4);});});}function _0x39cd29(){return _0x2e96a5(function(_0x394562,_0x107771){var _0x3f264c=a0_0x1149;return _0x15687b[_0x3f264c('0x2837')][_0x3f264c('0x1483')]({'id':_0x53c4f3['chatQueue']['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x3f264c('0x1dc2')][_0x3f264c('0xaa5')](function(_0x384a1f){_0x394562(_0x384a1f);})[_0x3f264c('0x253d')](function(_0x3093e6){_0x107771(_0x3093e6);});});}function _0xe48fdc(){return _0x2e96a5(function(_0x50b64f,_0x1aaacd){var _0x2984ac=a0_0x1149;return _0x15687b['user'][_0x2984ac('0x2122')]({'fields':_0x2984ac('0x283f'),'nolimit':!![],'role':_0x2984ac('0xeff')})['$promise'][_0x2984ac('0xaa5')](function(_0x12fedd){_0x50b64f(_0x12fedd);})[_0x2984ac('0x253d')](function(_0x34244c){_0x1aaacd(_0x34244c);});});}function _0x456c3e(_0x58b852){return _0x2e96a5(function(_0x3ed2c9,_0x413ece){var _0xcbde5c=a0_0x1149;_0x51538b()[_0xcbde5c('0x116b')](_0x58b852)?_0x3ed2c9():_0x15687b[_0xcbde5c('0x2837')][_0xcbde5c('0x26b1')]({'id':_0x53c4f3[_0xcbde5c('0x2837')]['id'],'ids':_0x51538b()['map'](_0x58b852,'id')})[_0xcbde5c('0x1dc2')]['then'](function(){_0x3ed2c9();})[_0xcbde5c('0x253d')](function(_0x253cc7){_0x413ece(_0x253cc7);});});}function _0x179a00(_0x5de3ef){return _0x2e96a5(function(_0x35ce1c,_0x5c2377){var _0x11c028=a0_0x1149;_0x51538b()[_0x11c028('0x116b')](_0x5de3ef)?_0x35ce1c():_0x15687b[_0x11c028('0x2837')][_0x11c028('0x258e')]({'id':_0x53c4f3[_0x11c028('0x2837')]['id'],'ids':_0x51538b()['map'](_0x5de3ef,'id')})[_0x11c028('0x1dc2')][_0x11c028('0xaa5')](function(){_0x35ce1c();})[_0x11c028('0x253d')](function(_0x5d54d6){_0x5c2377(_0x5d54d6);});});}function _0x47438f(){var _0x2d3642=_0x418dd7,_0x2ae58e=_0x51538b()[_0x2d3642('0x1ebb')](_0x53c4f3[_0x2d3642('0x214a')],_0x53c4f3[_0x2d3642('0xbf7')],'id'),_0x419a9b=_0x51538b()['differenceBy'](_0x53c4f3['selectedItems'],_0x53c4f3['startingSelectedItems'],'id');return _0x179a00(_0x2ae58e)[_0x2d3642('0xaa5')](function(){return _0x456c3e(_0x419a9b);})[_0x2d3642('0xaa5')](function(){var _0x1ab705=_0x2d3642;_0x53c4f3[_0x1ab705('0xc54')]=![],_0x53c4f3[_0x1ab705('0x215b')]=angular[_0x1ab705('0x20a')](_0x53c4f3[_0x1ab705('0x11b9')]),_0x53c4f3['startingSelectedItems']=angular[_0x1ab705('0x20a')](_0x53c4f3['selectedItems']),_0x417db0[_0x1ab705('0xe10')]({'title':_0x1ab705('0x2eb'),'msg':_0x1ab705('0xc60')});})[_0x2d3642('0x253d')](function(_0x5b86f3){var _0x1ad846=_0x2d3642;_0x417db0[_0x1ad846('0x187f')]({'title':_0x5b86f3[_0x1ad846('0x2fa')]?_0x1ad846('0x16c2')+_0x5b86f3[_0x1ad846('0x2fa')]+_0x1ad846('0x169e')+_0x5b86f3[_0x1ad846('0x24df')]:_0x1ad846('0x2281'),'msg':_0x5b86f3[_0x1ad846('0x2fa')]?JSON[_0x1ad846('0xa48')](_0x5b86f3[_0x1ad846('0x10fd')]):_0x5b86f3[_0x1ad846('0x684')]()});});}function _0x55cadd(){var _0x2c7a26=_0x418dd7;_0x2222a3[_0x2c7a26('0x1120')]();}}const _0x3eb34e=_0x1151d4;_0x5dc79a[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x2837'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x5dc79a(_0x10bf23,_0x275783,_0x5d4352,_0x264f00,_0x380370,_0x3d98e7,_0x57acd8,_0x989efa){var _0x4c2935=_0x1a8446,_0x192e5f=this;_0x192e5f[_0x4c2935('0x7fc')]=_0x57acd8[_0x4c2935('0xacc')](),_0x192e5f['chatQueue']=_0x380370,_0x192e5f[_0x4c2935('0xada')]=_0x989efa,_0x192e5f['items']=[],_0x192e5f['allowedItems']=[],_0x192e5f[_0x4c2935('0xbf7')]=[],_0x192e5f['startingAllowedItems']=[],_0x192e5f[_0x4c2935('0x214a')]=[],_0x192e5f[_0x4c2935('0xc54')]=![],_0x192e5f[_0x4c2935('0x1c23')]={'readOnly':!_0x192e5f[_0x4c2935('0xada')][_0x4c2935('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x4c2935('0x25d6'),'line2':'','line3':'','labelAll':_0x3d98e7['instant'](_0x4c2935('0x1697')),'labelSelected':_0x3d98e7['instant'](_0x4c2935('0x14fc')),'transferCallback':function _0x296446(){var _0x5f5dbc=_0x4c2935,_0x162d52=_0x51538b()['xorBy'](_0x192e5f[_0x5f5dbc('0x214a')],_0x192e5f[_0x5f5dbc('0xbf7')],'id');_0x192e5f['pendingChanges']=_0x51538b()['isEmpty'](_0x162d52)?![]:!![];}},_0x192e5f[_0x4c2935('0x2318')]=_0x5a0c33,_0x192e5f[_0x4c2935('0x2507')]=_0x584a6d,_0x192e5f[_0x4c2935('0x2023')]=_0x86c9bc;function _0x5a0c33(){var _0x34c075=_0x4c2935;return _0x57acd8[_0x34c075('0x26e8')](_0x34c075('0x178b'))?_0x235652()[_0x34c075('0x253d')](function(_0x3bbe74){var _0x2b5e0c=_0x34c075;_0x5d4352[_0x2b5e0c('0x187f')]({'title':_0x3bbe74[_0x2b5e0c('0x2fa')]?_0x2b5e0c('0x16c2')+_0x3bbe74[_0x2b5e0c('0x2fa')]+_0x2b5e0c('0x169e')+_0x3bbe74[_0x2b5e0c('0x24df')]:'SYSTEM:GET_TEAMS','msg':_0x3bbe74[_0x2b5e0c('0x2fa')]?JSON[_0x2b5e0c('0xa48')](_0x3bbe74['data']):_0x3bbe74[_0x2b5e0c('0x684')]()});}):_0x8ad5f5()[_0x34c075('0xaa5')](function(_0x96cf6b){return _0x192e5f['section']=_0x96cf6b,_0x235652();})['catch'](function(_0x5cfc46){var _0x273293=_0x34c075;_0x5d4352['error']({'title':_0x5cfc46[_0x273293('0x2fa')]?_0x273293('0x16c2')+_0x5cfc46[_0x273293('0x2fa')]+'\x20-\x20'+_0x5cfc46[_0x273293('0x24df')]:_0x273293('0x4b3'),'msg':_0x5cfc46[_0x273293('0x2fa')]?JSON['stringify'](_0x5cfc46[_0x273293('0x10fd')]):_0x5cfc46[_0x273293('0x684')]()});});}function _0x8ad5f5(){return _0x275783(function(_0x491477,_0x49f761){var _0x57cc82=a0_0x1149;_0x264f00[_0x57cc82('0x1a50')][_0x57cc82('0x2122')]({'userProfileId':_0x192e5f[_0x57cc82('0x7fc')][_0x57cc82('0x2168')],'name':_0x57cc82('0x10ee')})[_0x57cc82('0x1dc2')][_0x57cc82('0xaa5')](function(_0x5aa4f2){var _0x2a476d=_0x57cc82,_0x43314d=_0x5aa4f2&&_0x5aa4f2['rows']?_0x5aa4f2[_0x2a476d('0x580')][0x0]:null;_0x491477(_0x43314d);})['catch'](function(_0x254a28){_0x49f761(_0x254a28);});});}function _0x235652(){return _0x275783(function(_0x3a8fd9,_0xf492f5){var _0x27176e=a0_0x1149;return _0x2b4326()[_0x27176e('0xaa5')](function(_0x4b4aba){var _0x208b15=_0x27176e;return _0x192e5f[_0x208b15('0x1a30')]=_0x4b4aba[_0x208b15('0x580')]?_0x4b4aba[_0x208b15('0x580')]:[],_0x57acd8[_0x208b15('0x26e8')]('admin')?_0x4b4aba:_0x192e5f[_0x208b15('0x224d')]?_0x192e5f[_0x208b15('0x224d')]['autoAssociation']?_0x4b4aba:_0x2a6c18():null;})[_0x27176e('0xaa5')](function(_0x1c76b6){var _0x2751a7=_0x27176e,_0x476b1f=_0x1c76b6&&_0x1c76b6[_0x2751a7('0x580')]?_0x1c76b6[_0x2751a7('0x580')]:[];return _0x192e5f[_0x2751a7('0x11b9')]=_0x51538b()[_0x2751a7('0x1246')](_0x476b1f,function(_0x22f94a){var _0x13fb5d=_0x2751a7;return _0x51538b()[_0x13fb5d('0xe9e')](_0x192e5f[_0x13fb5d('0x1a30')],{'id':_0x57acd8['hasRole']('admin')||_0x192e5f['section'][_0x13fb5d('0x26cc')]?_0x22f94a['id']:_0x22f94a['resourceId']});}),_0x192e5f[_0x2751a7('0x1a30')][_0x2751a7('0x15b5')](function(_0xd6dead){var _0x4b0048=_0x2751a7,_0x3827b8=_0x51538b()[_0x4b0048('0xe9e')](_0x192e5f[_0x4b0048('0x11b9')],{'id':_0xd6dead['id']});_0x57acd8[_0x4b0048('0x26e8')](_0x4b0048('0x178b'))?_0xd6dead['isValid']=!![]:_0xd6dead[_0x4b0048('0x145d')]=typeof _0x3827b8!==_0x4b0048('0x1574')?!![]:![];}),_0x1bcae6();})['then'](function(_0x1f0a1e){var _0x49f11a=_0x27176e,_0x4560f6=_0x1f0a1e&&_0x1f0a1e['rows']?_0x1f0a1e[_0x49f11a('0x580')]:[];_0x192e5f[_0x49f11a('0xbf7')]=_0x51538b()['map'](_0x4560f6,function(_0x433dce){var _0x2687bc=_0x49f11a;return _0x51538b()[_0x2687bc('0xe9e')](_0x192e5f['items'],{'id':_0x433dce['id']});}),_0x192e5f[_0x49f11a('0x214a')]=angular['copy'](_0x192e5f[_0x49f11a('0xbf7')]),_0x192e5f['dualMultiselectOptions'][_0x49f11a('0xbf7')]=_0x192e5f['selectedItems'],_0x192e5f[_0x49f11a('0x1c23')][_0x49f11a('0x1a30')]=_0x51538b()[_0x49f11a('0x1ebb')](_0x192e5f[_0x49f11a('0x11b9')],_0x192e5f[_0x49f11a('0x1c23')][_0x49f11a('0xbf7')],'id'),_0x3a8fd9();})[_0x27176e('0x253d')](function(_0x36d60e){_0xf492f5(_0x36d60e);});});}function _0x2a6c18(){return _0x275783(function(_0x473429,_0x5b495c){var _0x27b4d3=a0_0x1149;return _0x264f00['userProfileResource'][_0x27b4d3('0x2122')]({'sectionId':_0x192e5f[_0x27b4d3('0x224d')]['id'],'nolimit':!![]})['$promise'][_0x27b4d3('0xaa5')](function(_0x465c9c){_0x473429(_0x465c9c);})[_0x27b4d3('0x253d')](function(_0x49ed7d){_0x5b495c(_0x49ed7d);});});}function _0x1bcae6(){return _0x275783(function(_0x305790,_0x4f3f13){var _0x4cc9b5=a0_0x1149;return _0x264f00['chatQueue']['getTeams']({'id':_0x192e5f[_0x4cc9b5('0x2837')]['id'],'fields':_0x4cc9b5('0x17fe'),'nolimit':!![]})[_0x4cc9b5('0x1dc2')]['then'](function(_0x5c2aad){_0x305790(_0x5c2aad);})[_0x4cc9b5('0x253d')](function(_0x25713e){_0x4f3f13(_0x25713e);});});}function _0x2b4326(){return _0x275783(function(_0x34f9ed,_0x5d43a1){var _0x30b560=a0_0x1149;return _0x264f00['team'][_0x30b560('0x2122')]({'fields':_0x30b560('0x17fe'),'nolimit':!![]})[_0x30b560('0x1dc2')][_0x30b560('0xaa5')](function(_0x2219b3){_0x34f9ed(_0x2219b3);})[_0x30b560('0x253d')](function(_0x57411d){_0x5d43a1(_0x57411d);});});}function _0x5d97d7(_0xd47c9){return _0x275783(function(_0x207a83,_0x1fc995){var _0x45ea9e=a0_0x1149;_0x51538b()[_0x45ea9e('0x116b')](_0xd47c9)?_0x207a83():_0x264f00[_0x45ea9e('0x2837')][_0x45ea9e('0x2479')]({'id':_0x192e5f[_0x45ea9e('0x2837')]['id'],'ids':_0x51538b()[_0x45ea9e('0x1246')](_0xd47c9,'id')})[_0x45ea9e('0x1dc2')][_0x45ea9e('0xaa5')](function(){_0x207a83();})[_0x45ea9e('0x253d')](function(_0x4ede8b){_0x1fc995(_0x4ede8b);});});}function _0x593864(_0x215c3d){return _0x275783(function(_0x534930,_0x25f33c){var _0x31441a=a0_0x1149;_0x51538b()[_0x31441a('0x116b')](_0x215c3d)?_0x534930():_0x264f00[_0x31441a('0x2837')][_0x31441a('0x24b0')]({'id':_0x192e5f[_0x31441a('0x2837')]['id'],'ids':_0x51538b()['map'](_0x215c3d,'id')})[_0x31441a('0x1dc2')][_0x31441a('0xaa5')](function(){_0x534930();})[_0x31441a('0x253d')](function(_0x3c0d25){_0x25f33c(_0x3c0d25);});});}function _0x584a6d(){var _0x58e713=_0x4c2935,_0x5b44a5=_0x51538b()[_0x58e713('0x1ebb')](_0x192e5f['startingSelectedItems'],_0x192e5f[_0x58e713('0xbf7')],'id'),_0x12a4cb=_0x51538b()[_0x58e713('0x1ebb')](_0x192e5f['selectedItems'],_0x192e5f['startingSelectedItems'],'id');return _0x593864(_0x5b44a5)['then'](function(){return _0x5d97d7(_0x12a4cb);})[_0x58e713('0xaa5')](function(){var _0x4f1168=_0x58e713;_0x192e5f['pendingChanges']=![],_0x192e5f[_0x4f1168('0x215b')]=angular[_0x4f1168('0x20a')](_0x192e5f[_0x4f1168('0x11b9')]),_0x192e5f[_0x4f1168('0x214a')]=angular[_0x4f1168('0x20a')](_0x192e5f[_0x4f1168('0xbf7')]),_0x5d4352[_0x4f1168('0xe10')]({'title':_0x4f1168('0x2eb'),'msg':_0x4f1168('0x1e1f')});})[_0x58e713('0x253d')](function(_0x1a4d90){var _0x52b00c=_0x58e713;_0x5d4352[_0x52b00c('0x187f')]({'title':_0x1a4d90['status']?_0x52b00c('0x16c2')+_0x1a4d90[_0x52b00c('0x2fa')]+_0x52b00c('0x169e')+_0x1a4d90[_0x52b00c('0x24df')]:_0x52b00c('0x2281'),'msg':_0x1a4d90[_0x52b00c('0x2fa')]?JSON[_0x52b00c('0xa48')](_0x1a4d90[_0x52b00c('0x10fd')]):_0x1a4d90[_0x52b00c('0x684')]()});});}function _0x86c9bc(){var _0x288cdb=_0x4c2935;_0x10bf23[_0x288cdb('0x1120')]();}}const _0x2c54e6=_0x5dc79a;_0xbb82f2[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),'license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x2837'),'userProfileSection'];function _0xbb82f2(_0x1fe14a,_0x3e58f3,_0x31355d,_0xf69a8d,_0x473be8,_0xe08f78,_0x4481c9,_0x2db28f,_0x2bfd1b,_0x9648f7,_0x186b5c,_0x435692){var _0x2353af=_0x1a8446,_0x2f8897=this;_0x2f8897[_0x2353af('0x7fc')]=_0x9648f7['getCurrentUser'](),_0x2f8897[_0x2353af('0x1202')]=_0xe08f78,_0x2f8897[_0x2353af('0x143f')]=_0x4481c9,_0x2f8897[_0x2353af('0x1d53')]=_0x2f8897['setting'][_0x2353af('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2f8897[_0x2353af('0x18cc')]=_0x3e58f3[_0x2353af('0x1cc2')]()+_0x2353af('0x356')+_0x3e58f3[_0x2353af('0x160c')](),_0x2f8897[_0x2353af('0x2837')]=_0x186b5c||_0x1fe14a[_0x2353af('0x25cf')][_0x2353af('0x2837')]||{},_0x2f8897[_0x2353af('0x1a50')]=_0x435692&&_0x435692['count']==0x1?_0x435692['rows'][0x0]:null,_0x2f8897[_0x2353af('0xada')]=_0x9648f7[_0x2353af('0xffd')](_0x2f8897[_0x2353af('0x1a50')]?_0x2f8897['userProfileSection'][_0x2353af('0xada')]:null),_0x2f8897[_0x2353af('0x9f0')]={},_0x2f8897[_0x2353af('0xe5c')]=_0x1fe14a['params'][_0x2353af('0x25c2')]||0x0,_0x2f8897['teamadddialog']=_0x2388ce,_0x2f8897['agentadddialog']=_0x153685,_0x2f8897[_0x2353af('0xc10')]=_0x2bfd1b[_0x2353af('0x3a1')],_0x2f8897[_0x2353af('0x91b')]=_0x386d76,_0x2f8897[_0x2353af('0x1346')]=_0x4fc3a8;function _0x2388ce(_0x2b8b3c,_0x4328d7){var _0x19709d=_0x2353af;_0x31355d[_0x19709d('0x1e6d')]({'controller':_0x19709d('0x3ef'),'controllerAs':'vm','templateUrl':_0x4cbe2b,'parent':angular[_0x19709d('0x1aa8')](_0xf69a8d[_0x19709d('0x54c')]),'targetEvent':_0x4328d7,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2b8b3c,'chatQueues':_0x2f8897['chatQueues']?_0x2f8897['chatQueues'][_0x19709d('0x580')]:[],'crudPermissions':_0x2f8897[_0x19709d('0xada')]}});}function _0x153685(_0x2b8427,_0x4d4f67){var _0x566395=_0x2353af;_0x31355d['show']({'controller':_0x566395('0x871'),'controllerAs':'vm','templateUrl':_0x51d28f,'parent':angular[_0x566395('0x1aa8')](_0xf69a8d[_0x566395('0x54c')]),'targetEvent':_0x4d4f67,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2b8427,'chatQueues':_0x2f8897[_0x566395('0xc6f')]?_0x2f8897[_0x566395('0xc6f')][_0x566395('0x580')]:[],'crudPermissions':_0x2f8897[_0x566395('0xada')],'realtime':![]}});}function _0x386d76(){var _0x59f540=_0x2353af;_0x1fe14a['go'](_0x59f540('0x479'),{},{'reload':_0x59f540('0x479')});}function _0x4fc3a8(){var _0x373cca=_0x2353af;_0x2db28f[_0x373cca('0x2837')][_0x373cca('0x264e')]({'id':_0x2f8897['chatQueue']['id']},_0x2f8897[_0x373cca('0x2837')])['$promise'][_0x373cca('0xaa5')](function(){var _0x312f70=_0x373cca;_0x2bfd1b[_0x312f70('0xe10')]({'title':'ChatQueue\x20updated!','msg':_0x2f8897[_0x312f70('0x2837')][_0x312f70('0x25d6')]?_0x2f8897[_0x312f70('0x2837')][_0x312f70('0x25d6')]+_0x312f70('0x1734'):''});})[_0x373cca('0x253d')](function(_0x58129c){var _0x17e0a8=_0x373cca;_0x2bfd1b[_0x17e0a8('0x187f')]({'title':_0x58129c['status']?'API:'+_0x58129c['status']+_0x17e0a8('0x169e')+_0x58129c[_0x17e0a8('0x24df')]:_0x17e0a8('0x236f'),'msg':_0x58129c['data']?JSON[_0x17e0a8('0xa48')](_0x58129c[_0x17e0a8('0x10fd')]):_0x58129c[_0x17e0a8('0x684')]()});});}}const _0x5c4bcc=_0xbb82f2,_0x158433=_0x4fb511['p']+_0x1a8446('0x168a'),_0x4d2443=_0x4fb511['p']+_0x1a8446('0x26b8');_0x53ed04[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'chatWebsites',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x53ed04(_0x796968,_0x752690,_0x1c1012,_0x451221,_0x36dc1a,_0xa3ed52,_0x199926,_0x2af525,_0x5a4881,_0x5e9e57,_0x2f652b,_0x54ffbf,_0x1c4910,_0x41efa2,_0x2400ac,_0x4aaa18,_0x17a292){var _0x487672=_0x1a8446,_0x3d3cea=this;_0x3d3cea[_0x487672('0x1202')]=_0x4aaa18,_0x3d3cea['setting']=_0x17a292,_0x3d3cea[_0x487672('0x7fc')]=_0x2400ac[_0x487672('0xacc')](),_0x3d3cea['chatWebsites']=_0x5a4881||{'count':0x0,'rows':[]},_0x3d3cea[_0x487672('0x1e97')]=_0x5e9e57,_0x3d3cea['userProfileSection']=_0x2f652b&&_0x2f652b['count']==0x1?_0x2f652b[_0x487672('0x580')][0x0]:null,_0x3d3cea['crudPermissions']=_0x2400ac['parseCrudPermissions'](_0x3d3cea[_0x487672('0x1a50')]?_0x3d3cea[_0x487672('0x1a50')][_0x487672('0xada')]:null),_0x3d3cea[_0x487672('0x12b6')]=_0x487672('0x7d7'),_0x3d3cea[_0x487672('0x164')]='',_0x3d3cea[_0x487672('0x8cc')]=null,_0x3d3cea[_0x487672('0x12d8')]=[],_0x3d3cea[_0x487672('0x582')]={'fields':'createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey','sort':_0x487672('0xd82'),'limit':0xa,'page':0x1},_0x3d3cea[_0x487672('0x2456')]=_0x51538b()['keyBy']([{'option':_0x487672('0xf21'),'value':_0x487672('0x183a')},{'option':_0x487672('0xb6d'),'value':_0x487672('0x1046')},{'option':_0x487672('0xc1'),'value':_0x487672('0xe82')}],function(_0x5ebf70){var _0x22f488=_0x487672;return _0x51538b()[_0x22f488('0x170d')](_0x5ebf70['value'],new RegExp('\x27','g'),'');}),_0x3d3cea['arrayheader_shape']=_0x51538b()[_0x487672('0x184a')]([{'option':_0x487672('0x172'),'value':'\x27rounded\x27'},{'option':_0x487672('0x1ef'),'value':_0x487672('0x2042')}],function(_0x2367ac){var _0x5c6809=_0x487672;return _0x51538b()['replace'](_0x2367ac[_0x5c6809('0x12f4')],new RegExp('\x27','g'),'');}),_0x3d3cea['arrayalignment']=_0x51538b()[_0x487672('0x184a')]([{'option':_0x487672('0x832'),'value':_0x487672('0x219f')},{'option':'right','value':_0x487672('0x6c4')},{'option':'left','value':_0x487672('0x1784')}],function(_0x247dd9){var _0x407560=_0x487672;return _0x51538b()['replace'](_0x247dd9[_0x407560('0x12f4')],new RegExp('\x27','g'),'');}),_0x3d3cea[_0x487672('0x1df6')]=_0x51538b()[_0x487672('0x184a')]([{'option':_0x487672('0x24cf'),'value':_0x487672('0x711')},{'option':_0x487672('0x4a5'),'value':'\x27centered\x27'}],function(_0x5c4f90){var _0x2e1465=_0x487672;return _0x51538b()[_0x2e1465('0x170d')](_0x5c4f90[_0x2e1465('0x12f4')],new RegExp('\x27','g'),'');}),_0x3d3cea[_0x487672('0xc29')]=_0x51538b()[_0x487672('0x184a')]([{'option':_0x487672('0x84b'),'value':_0x487672('0x1b0a')},{'option':'Thumb','value':_0x487672('0x10c')}],function(_0x389917){var _0xd2747b=_0x487672;return _0x51538b()[_0xd2747b('0x170d')](_0x389917[_0xd2747b('0x12f4')],new RegExp('\x27','g'),'');}),_0x3d3cea[_0x487672('0x1927')]=_0x1738f2,_0x3d3cea['interactionsgoto']=_0xe992c0,_0x3d3cea['offlinemessagesgoto']=_0x194374,_0x3d3cea[_0x487672('0x16a5')]=_0x35f4d3,_0x3d3cea[_0x487672('0x271')]=_0x5392ec,_0x3d3cea[_0x487672('0xe10')]=_0x540c74,_0x3d3cea[_0x487672('0x1554')]=_0x4e952b,_0x3d3cea[_0x487672('0x1f63')]=_0x45f715,_0x3d3cea[_0x487672('0x4c9')]=_0x31cdf2,_0x3d3cea[_0x487672('0x1f5c')]=_0x338a2c,_0x3d3cea[_0x487672('0x23b7')]=_0x5b140d,_0x3d3cea[_0x487672('0x838')]=_0x3b1174,_0x3d3cea[_0x487672('0x2137')]=_0x3c02d0,_0x2400ac[_0x487672('0x26e8')](_0x487672('0x178b'))?_0x54ffbf[_0x487672('0x26b4')][_0x487672('0x2122')]({'fields':_0x487672('0x17fe'),'sort':_0x487672('0x25d6')})[_0x487672('0x1dc2')][_0x487672('0xaa5')](function(_0x16be53){var _0x3f5acd=_0x487672;_0x3d3cea[_0x3f5acd('0x1126')]=_0x16be53['rows']||[];})['catch'](function(_0x22b14a){var _0x132765=_0x487672;_0x41efa2[_0x132765('0x187f')]({'title':_0x22b14a[_0x132765('0x2fa')]?_0x132765('0x16c2')+_0x22b14a[_0x132765('0x2fa')]+_0x132765('0x169e')+_0x22b14a[_0x132765('0x24df')]:'SYSTEM:GET_LISTS','msg':_0x22b14a[_0x132765('0x10fd')]?JSON[_0x132765('0xa48')](_0x22b14a[_0x132765('0x10fd')]):_0x22b14a[_0x132765('0x684')]()});}):_0x54ffbf[_0x487672('0x26b4')]['get']({'fields':_0x487672('0x17fe'),'sort':_0x487672('0x25d6')})[_0x487672('0x1dc2')][_0x487672('0xaa5')](function(_0xf394b){var _0x32ccd8=_0x487672;_0x3d3cea[_0x32ccd8('0x1126')]=_0xf394b[_0x32ccd8('0x580')]||[];})['then'](function(){var _0x432da0=_0x487672;return _0x54ffbf[_0x432da0('0x1a50')][_0x432da0('0x2122')]({'userProfileId':_0x3d3cea[_0x432da0('0x7fc')][_0x432da0('0x2168')],'sectionId':0x12d})[_0x432da0('0x1dc2')];})[_0x487672('0xaa5')](function(_0x2c337c){var _0x53c6ff=_0x487672,_0x4e90db=_0x2c337c&&_0x2c337c['rows']?_0x2c337c[_0x53c6ff('0x580')][0x0]:null;if(!_0x4e90db){var _0x159383=[],_0x3be02a=null;_0x3d3cea[_0x53c6ff('0x10f1')]&&(_0x3be02a=_0x51538b()[_0x53c6ff('0xe9e')](_0x3d3cea['lists'],{'id':Number(_0x3d3cea[_0x53c6ff('0x10f1')][_0x53c6ff('0xee0')])}));for(var _0x2e4918=0x0;_0x2e4918<_0x3d3cea[_0x53c6ff('0x1126')][_0x53c6ff('0x2587')];_0x2e4918++){_0x3be02a&&_0x3d3cea[_0x53c6ff('0x1126')][_0x2e4918]['id']===_0x3be02a['id']&&(_0x3d3cea['lists'][_0x2e4918]['canSelect']=![],_0x159383[_0x53c6ff('0x1599')](_0x3d3cea[_0x53c6ff('0x1126')][_0x2e4918]));}_0x3d3cea[_0x53c6ff('0x1126')]=_0x159383;}else{if(!_0x4e90db[_0x53c6ff('0x26cc')])return _0x54ffbf[_0x53c6ff('0x249a')][_0x53c6ff('0x2122')]({'sectionId':_0x4e90db['id']})[_0x53c6ff('0x1dc2')][_0x53c6ff('0xaa5')](function(_0x3495c6){var _0x5e02d2=_0x53c6ff,_0x3551b0=_0x51538b()[_0x5e02d2('0x1246')](_0x3495c6['rows'],function(_0x4b57aa){var _0x1db8f8=_0x5e02d2;return _0x51538b()['find'](_0x3d3cea[_0x1db8f8('0x1126')],{'id':_0x4b57aa[_0x1db8f8('0xbcd')]});}),_0xc25ec7=null;_0x3d3cea[_0x5e02d2('0x10f1')]&&(_0xc25ec7=_0x51538b()[_0x5e02d2('0xe9e')](_0x3d3cea[_0x5e02d2('0x1126')],{'id':Number(_0x3d3cea[_0x5e02d2('0x10f1')][_0x5e02d2('0xee0')])}));if(_0xc25ec7&&!_0x51538b()[_0x5e02d2('0x2c2')](_0x3551b0,['id',_0xc25ec7['id']])){var _0x568edb=_0x51538b()[_0x5e02d2('0xe9e')](_0x3d3cea[_0x5e02d2('0x1126')],{'id':_0xc25ec7['id']});_0x568edb[_0x5e02d2('0x12eb')]=![],_0x3551b0['push'](_0x568edb);}_0x3d3cea[_0x5e02d2('0x1126')]=_0x3551b0;});}})[_0x487672('0x253d')](function(_0x3a12ee){var _0x55767c=_0x487672;_0x41efa2[_0x55767c('0x187f')]({'title':_0x3a12ee['status']?'API:'+_0x3a12ee[_0x55767c('0x2fa')]+_0x55767c('0x169e')+_0x3a12ee['statusText']:_0x55767c('0x177f'),'msg':_0x3a12ee['data']?JSON[_0x55767c('0xa48')](_0x3a12ee[_0x55767c('0x10fd')]):_0x3a12ee[_0x55767c('0x684')]()});}),_0x2400ac['hasRole'](_0x487672('0x178b'))?_0x54ffbf[_0x487672('0x1c21')][_0x487672('0x2122')]({'fields':_0x487672('0x17fe'),'sort':_0x487672('0x25d6'),'IntervalId':_0x487672('0x1ed9')})[_0x487672('0x1dc2')][_0x487672('0xaa5')](function(_0x499ed8){var _0x357199=_0x487672;_0x3d3cea[_0x357199('0x1c21')]=_0x499ed8['rows']||[];})[_0x487672('0x253d')](function(_0x39abeb){var _0x51b3df=_0x487672;_0x41efa2[_0x51b3df('0x187f')]({'title':_0x39abeb[_0x51b3df('0x2fa')]?'API:'+_0x39abeb[_0x51b3df('0x2fa')]+_0x51b3df('0x169e')+_0x39abeb[_0x51b3df('0x24df')]:'SYSTEM:GET_INTERVAL','msg':_0x39abeb['data']?JSON[_0x51b3df('0xa48')](_0x39abeb[_0x51b3df('0x10fd')]):_0x39abeb[_0x51b3df('0x684')]()});}):_0x54ffbf[_0x487672('0x1c21')]['get']({'fields':_0x487672('0x17fe'),'sort':'name','IntervalId':_0x487672('0x1ed9')})[_0x487672('0x1dc2')][_0x487672('0xaa5')](function(_0x188bfa){var _0x513769=_0x487672;_0x3d3cea[_0x513769('0x1c21')]=_0x188bfa[_0x513769('0x580')]||[];})[_0x487672('0xaa5')](function(){var _0x2d8c7b=_0x487672;return _0x54ffbf['userProfileSection'][_0x2d8c7b('0x2122')]({'userProfileId':_0x3d3cea['currentUser']['userProfileId'],'sectionId':0x3ec})[_0x2d8c7b('0x1dc2')];})[_0x487672('0xaa5')](function(_0xc28ca){var _0x3913bd=_0x487672,_0x23a8e6=_0xc28ca&&_0xc28ca['rows']?_0xc28ca[_0x3913bd('0x580')][0x0]:null;if(!_0x23a8e6){var _0x5eb596=[],_0x1bcc76=null;_0x3d3cea[_0x3913bd('0x10f1')]&&(_0x1bcc76=_0x51538b()[_0x3913bd('0xe9e')](_0x3d3cea['interval'],{'id':Number(_0x3d3cea[_0x3913bd('0x10f1')][_0x3913bd('0x1f8c')])}));for(var _0x248974=0x0;_0x248974<_0x3d3cea[_0x3913bd('0x1c21')][_0x3913bd('0x2587')];_0x248974++){_0x1bcc76&&_0x3d3cea[_0x3913bd('0x1c21')][_0x248974]['id']===_0x1bcc76['id']&&(_0x3d3cea[_0x3913bd('0x1c21')][_0x248974]['canSelect']=![],_0x5eb596[_0x3913bd('0x1599')](_0x3d3cea[_0x3913bd('0x1c21')][_0x248974]));}_0x3d3cea['interval']=_0x5eb596;}else{if(!_0x23a8e6[_0x3913bd('0x26cc')])return _0x54ffbf[_0x3913bd('0x249a')]['get']({'sectionId':_0x23a8e6['id']})[_0x3913bd('0x1dc2')][_0x3913bd('0xaa5')](function(_0x148e8f){var _0x5d963a=_0x3913bd,_0xa7f826=_0x51538b()[_0x5d963a('0x1246')](_0x148e8f[_0x5d963a('0x580')],function(_0x514dc5){var _0xa3ca55=_0x5d963a;return _0x51538b()[_0xa3ca55('0xe9e')](_0x3d3cea[_0xa3ca55('0x1c21')],{'id':_0x514dc5[_0xa3ca55('0xbcd')]});}),_0x50ce30=null;_0x3d3cea[_0x5d963a('0x10f1')]&&(_0x50ce30=_0x51538b()['find'](_0x3d3cea[_0x5d963a('0x1c21')],{'id':Number(_0x3d3cea[_0x5d963a('0x10f1')][_0x5d963a('0x1f8c')])}));if(_0x50ce30&&!_0x51538b()[_0x5d963a('0x2c2')](_0xa7f826,['id',_0x50ce30['id']])){var _0x1a4486=_0x51538b()[_0x5d963a('0xe9e')](_0x3d3cea['interval'],{'id':_0x50ce30['id']});_0x1a4486['canSelect']=![],_0xa7f826['push'](_0x1a4486);}_0x3d3cea[_0x5d963a('0x1c21')]=_0xa7f826;});}})['catch'](function(_0x31d51c){var _0x255b1c=_0x487672;_0x41efa2[_0x255b1c('0x187f')]({'title':_0x31d51c[_0x255b1c('0x2fa')]?'API:'+_0x31d51c[_0x255b1c('0x2fa')]+_0x255b1c('0x169e')+_0x31d51c['statusText']:_0x255b1c('0x2313'),'msg':_0x31d51c[_0x255b1c('0x10fd')]?JSON[_0x255b1c('0xa48')](_0x31d51c[_0x255b1c('0x10fd')]):_0x31d51c['toString']()});});function _0x1738f2(_0x6a4292){_0x1c1012['go']('app.chat.chatWebsites.edit',{'id':_0x6a4292['id'],'chatWebsite':_0x6a4292,'crudPermissions':_0x3d3cea['crudPermissions']});}function _0xe992c0(_0x54c9d6){var _0x3e4d0e=_0x487672;_0x1c1012['go'](_0x3e4d0e('0x2702'),{'id':_0x54c9d6['id'],'tab':0xa});}function _0x194374(_0x5237ed){var _0x2783c5=_0x487672;_0x1c1012['go'](_0x2783c5('0x2702'),{'id':_0x5237ed['id'],'tab':0xb});}function _0x35f4d3(_0x22269d,_0x45c0c1){var _0x5d1987=_0x487672;_0x36dc1a[_0x5d1987('0x1e6d')]({'controller':_0x5d1987('0xf44'),'controllerAs':'vm','templateUrl':_0x158433,'parent':angular[_0x5d1987('0x1aa8')](_0xa3ed52[_0x5d1987('0x54c')]),'targetEvent':_0x45c0c1,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x22269d,'chatWebsites':_0x3d3cea[_0x5d1987('0x7d7')]?_0x3d3cea['chatWebsites'][_0x5d1987('0x580')]:[],'crudPermissions':_0x3d3cea[_0x5d1987('0xada')],'realtime':![]}});}function _0x5392ec(_0x16ac0b,_0x14cbaa){var _0x2d86a4=_0x487672,_0x192d70=_0x36dc1a[_0x2d86a4('0x281e')]()[_0x2d86a4('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x2d86a4('0x196a')](_0x2d86a4('0x10f1'))+'?')[_0x2d86a4('0x102e')](_0x2d86a4('0x389')+(_0x16ac0b[_0x2d86a4('0x25d6')]||_0x2d86a4('0x10f1'))+'
'+'\x20will\x20be\x20deleted.')[_0x2d86a4('0x5b5')](_0x2d86a4('0x211'))[_0x2d86a4('0x116d')](_0x14cbaa)['ok']('OK')[_0x2d86a4('0x2030')](_0x2d86a4('0x2410'));_0x36dc1a[_0x2d86a4('0x1e6d')](_0x192d70)['then'](function(){_0x31cdf2(_0x16ac0b);},function(){var _0x1389a6=_0x2d86a4;console[_0x1389a6('0x18d5')](_0x1389a6('0x2410'));});}var _0x200a88=!![],_0x5854a9=0x1;_0x796968[_0x487672('0x1ccf')](_0x487672('0x1788'),function(_0x210baf,_0x1b150c){var _0x2f1e24=_0x487672;_0x200a88?_0x199926(function(){_0x200a88=![];}):(!_0x1b150c&&(_0x5854a9=_0x3d3cea[_0x2f1e24('0x582')][_0x2f1e24('0x41')]),_0x210baf!==_0x1b150c&&(_0x3d3cea[_0x2f1e24('0x582')]['page']=0x1),!_0x210baf&&(_0x3d3cea['query'][_0x2f1e24('0x41')]=_0x5854a9),_0x3d3cea[_0x2f1e24('0x1554')]());});function _0x540c74(_0x11f11a){var _0x158905=_0x487672;_0x3d3cea[_0x158905('0x7d7')]=_0x11f11a||{'count':0x0,'rows':[]};}function _0x4e952b(){var _0x40c6d0=_0x487672;_0x3d3cea[_0x40c6d0('0x582')][_0x40c6d0('0x8b1')]=(_0x3d3cea[_0x40c6d0('0x582')][_0x40c6d0('0x41')]-0x1)*_0x3d3cea[_0x40c6d0('0x582')][_0x40c6d0('0xf4d')],_0x2400ac['hasRole'](_0x40c6d0('0x178b'))?_0x3d3cea[_0x40c6d0('0x159a')]=_0x54ffbf['chatWebsite'][_0x40c6d0('0x2122')](_0x3d3cea[_0x40c6d0('0x582')],_0x540c74)[_0x40c6d0('0x1dc2')]:(_0x3d3cea[_0x40c6d0('0x582')]['id']=_0x3d3cea[_0x40c6d0('0x1e97')]['id'],_0x3d3cea[_0x40c6d0('0x582')][_0x40c6d0('0x224d')]=_0x40c6d0('0x1681'),_0x3d3cea[_0x40c6d0('0x159a')]=_0x54ffbf[_0x40c6d0('0x1e97')][_0x40c6d0('0x1cf1')](_0x3d3cea[_0x40c6d0('0x582')],_0x540c74)['$promise']);}function _0x45f715(_0x5ec403,_0x10e080){var _0x3475fb=_0x487672;_0x36dc1a[_0x3475fb('0x1e6d')]({'controller':_0x3475fb('0xf0'),'controllerAs':'vm','templateUrl':_0x4d2443,'parent':angular[_0x3475fb('0x1aa8')](_0xa3ed52[_0x3475fb('0x54c')]),'targetEvent':_0x5ec403,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x10e080,'chatWebsites':_0x3d3cea[_0x3475fb('0x7d7')][_0x3475fb('0x580')],'license':_0x3d3cea[_0x3475fb('0x1202')],'setting':_0x3d3cea['setting'],'crudPermissions':_0x3d3cea[_0x3475fb('0xada')]}});}function _0x31cdf2(_0xbda98f){var _0x50a7cf=_0x487672;_0x54ffbf[_0x50a7cf('0x10f1')][_0x50a7cf('0x926')]({'id':_0xbda98f['id']})[_0x50a7cf('0x1dc2')][_0x50a7cf('0xaa5')](function(){var _0x470341=_0x50a7cf;_0x51538b()[_0x470341('0xf6d')](_0x3d3cea[_0x470341('0x7d7')]['rows'],{'id':_0xbda98f['id']}),_0x3d3cea[_0x470341('0x7d7')][_0x470341('0xd15')]-=0x1,!_0x3d3cea[_0x470341('0x7d7')][_0x470341('0x580')][_0x470341('0x2587')]&&_0x3d3cea['getChatWebsites'](),_0x41efa2[_0x470341('0xe10')]({'title':_0x51538b()[_0x470341('0x196a')]('ChatWebsite')+_0x470341('0x8bb'),'msg':_0xbda98f[_0x470341('0x25d6')]?_0xbda98f[_0x470341('0x25d6')]+_0x470341('0xcd9'):''});})['catch'](function(_0x1b04e0){var _0x6503bc=_0x50a7cf;if(_0x1b04e0[_0x6503bc('0x10fd')]&&_0x1b04e0[_0x6503bc('0x10fd')][_0x6503bc('0x4c6')]&&_0x1b04e0[_0x6503bc('0x10fd')]['errors'][_0x6503bc('0x2587')]){_0x3d3cea[_0x6503bc('0x4c6')]=_0x1b04e0['data'][_0x6503bc('0x4c6')]||[{'message':_0x1b04e0[_0x6503bc('0x684')](),'type':'SYSTEM:DELETEchatWebsite'}];for(var _0x4c5b87=0x0;_0x4c5b87<_0x1b04e0[_0x6503bc('0x10fd')]['errors'][_0x6503bc('0x2587')];_0x4c5b87++){_0x41efa2[_0x6503bc('0x187f')]({'title':_0x1b04e0[_0x6503bc('0x10fd')][_0x6503bc('0x4c6')][_0x4c5b87][_0x6503bc('0x6c8')],'msg':_0x1b04e0['data'][_0x6503bc('0x4c6')][_0x4c5b87]['message']});}}else _0x41efa2[_0x6503bc('0x187f')]({'title':_0x1b04e0[_0x6503bc('0x2fa')]?'API:'+_0x1b04e0[_0x6503bc('0x2fa')]+_0x6503bc('0x169e')+_0x1b04e0[_0x6503bc('0x24df')]:_0x6503bc('0x21bc'),'msg':_0x1b04e0[_0x6503bc('0x10fd')]?JSON[_0x6503bc('0xa48')](_0x1b04e0[_0x6503bc('0x10fd')][_0x6503bc('0x1402')]):_0x1b04e0[_0x6503bc('0x1402')]||_0x1b04e0[_0x6503bc('0x684')]()});});}function _0x338a2c(){var _0xa91efa=_0x487672,_0x576c54=angular[_0xa91efa('0x20a')](_0x3d3cea['selectedChatWebsites']);return _0x3d3cea[_0xa91efa('0x12d8')]=[],_0x576c54;}function _0x5b140d(_0x3c4064){var _0x45da70=_0x487672,_0xffb3a3=_0x36dc1a[_0x45da70('0x281e')]()[_0x45da70('0x110a')](_0x45da70('0x9'))[_0x45da70('0x102e')](_0x45da70('0x389')+_0x3d3cea[_0x45da70('0x12d8')][_0x45da70('0x2587')]+_0x45da70('0x1443')+_0x45da70('0x210d'))[_0x45da70('0x5b5')](_0x45da70('0xdaa'))['targetEvent'](_0x3c4064)['ok']('OK')[_0x45da70('0x2030')](_0x45da70('0x2410'));_0x36dc1a[_0x45da70('0x1e6d')](_0xffb3a3)[_0x45da70('0xaa5')](function(){var _0x38237e=_0x45da70;_0x3d3cea[_0x38237e('0x12d8')][_0x38237e('0x15b5')](function(_0x4fd32e){_0x31cdf2(_0x4fd32e);}),_0x3d3cea[_0x38237e('0x12d8')]=[];});}function _0x3b1174(){_0x3d3cea['selectedChatWebsites']=[];}function _0x3c02d0(){var _0x42d5fe=_0x487672;_0x3d3cea[_0x42d5fe('0x12d8')]=_0x3d3cea[_0x42d5fe('0x7d7')][_0x42d5fe('0x580')];}}const _0x4f27d9=_0x53ed04;_0x326241['$inject']=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate','toasty','chatWebsites',_0x1a8446('0x10f1'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),'crudPermissions'];function _0x326241(_0x5490ee,_0x378de0,_0x41f573,_0x1e55d0,_0x57cde6,_0x1e32b7,_0x9fda14,_0x14223a,_0x336423,_0x151ed3,_0x4e0ead,_0x37883e,_0x52a7ff,_0x46b1ff){var _0x1cbc4a=_0x1a8446,_0x40eb80=this;_0x40eb80[_0x1cbc4a('0x7fc')]=_0x4e0ead[_0x1cbc4a('0xacc')](),_0x40eb80['errors']=[],_0x40eb80[_0x1cbc4a('0x143f')]=_0x52a7ff,_0x40eb80[_0x1cbc4a('0x1202')]=_0x37883e,_0x40eb80[_0x1cbc4a('0xada')]=_0x46b1ff,_0x40eb80[_0x1cbc4a('0x9f0')]={},_0x40eb80[_0x1cbc4a('0x1d53')]=_0x40eb80[_0x1cbc4a('0x143f')]&&_0x40eb80[_0x1cbc4a('0x143f')][_0x1cbc4a('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40eb80['title']='CHAT.EDIT_CHATWEBSITE',_0x40eb80[_0x1cbc4a('0x10f1')]=angular[_0x1cbc4a('0x20a')](_0x336423),_0x40eb80[_0x1cbc4a('0x7d7')]=_0x14223a,_0x40eb80[_0x1cbc4a('0x106')]=![];!_0x40eb80[_0x1cbc4a('0x10f1')]&&(_0x40eb80[_0x1cbc4a('0x10f1')]={'remote':_0x41f573[_0x1cbc4a('0x1cc2')]()+_0x1cbc4a('0x356')+_0x41f573['host']()+(_0x41f573[_0x1cbc4a('0x191')]()?':'+_0x41f573[_0x1cbc4a('0x191')]():''),'header_shape':_0x1cbc4a('0x1265'),'alignment':_0x1cbc4a('0x832'),'verticalAlignment':0x1e,'messagesAlignment':'alternate','IntervalId':'null','timezone':_0x1cbc4a('0x1ed9'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x40eb80[_0x1cbc4a('0x110a')]='CHAT.NEW_CHATWEBSITE',_0x40eb80[_0x1cbc4a('0x106')]=!![]);_0x378de0[_0x1cbc4a('0x25cf')]['id']&&(_0x40eb80[_0x1cbc4a('0x10f1')][_0x1cbc4a('0x1421')]=_0x378de0['params']['id']);_0x40eb80[_0x1cbc4a('0x2698')]=_0x80c63b,_0x40eb80['saveChatWebsite']=_0x497e77,_0x40eb80[_0x1cbc4a('0x4c9')]=_0x421d23,_0x40eb80['getDateFromString']=_0x1cf47d,_0x40eb80[_0x1cbc4a('0x2023')]=_0x4f8d8d,_0x4e0ead['hasRole'](_0x1cbc4a('0x178b'))?_0x151ed3['cmList']['get']({'fields':_0x1cbc4a('0x17fe'),'sort':'name'})['$promise'][_0x1cbc4a('0xaa5')](function(_0x1312fc){var _0x419748=_0x1cbc4a;_0x40eb80[_0x419748('0x1126')]=_0x1312fc[_0x419748('0x580')]||[];})['catch'](function(_0x186d56){var _0x54d804=_0x1cbc4a;_0x9fda14['error']({'title':_0x186d56[_0x54d804('0x2fa')]?_0x54d804('0x16c2')+_0x186d56['status']+_0x54d804('0x169e')+_0x186d56[_0x54d804('0x24df')]:_0x54d804('0x1adf'),'msg':_0x186d56[_0x54d804('0x10fd')]?JSON[_0x54d804('0xa48')](_0x186d56[_0x54d804('0x10fd')]):_0x186d56['toString']()});}):_0x151ed3['cmList']['get']({'fields':_0x1cbc4a('0x17fe'),'sort':_0x1cbc4a('0x25d6')})[_0x1cbc4a('0x1dc2')][_0x1cbc4a('0xaa5')](function(_0x575020){var _0x33c992=_0x1cbc4a;_0x40eb80[_0x33c992('0x1126')]=_0x575020[_0x33c992('0x580')]||[];})[_0x1cbc4a('0xaa5')](function(){var _0x55f5ca=_0x1cbc4a;return _0x151ed3[_0x55f5ca('0x1a50')][_0x55f5ca('0x2122')]({'userProfileId':_0x40eb80[_0x55f5ca('0x7fc')]['userProfileId'],'sectionId':0x12d})[_0x55f5ca('0x1dc2')];})[_0x1cbc4a('0xaa5')](function(_0x9650b8){var _0x139f9f=_0x1cbc4a,_0x12c56f=_0x9650b8&&_0x9650b8['rows']?_0x9650b8[_0x139f9f('0x580')][0x0]:null;if(!_0x12c56f){var _0xb4ab1b=[],_0x3fa5f0=null;_0x40eb80['chatWebsite']&&(_0x3fa5f0=_0x51538b()[_0x139f9f('0xe9e')](_0x40eb80[_0x139f9f('0x1126')],{'id':Number(_0x40eb80[_0x139f9f('0x10f1')]['ListId'])}));for(var _0x665885=0x0;_0x665885<_0x40eb80[_0x139f9f('0x1126')][_0x139f9f('0x2587')];_0x665885++){_0x3fa5f0&&_0x40eb80['lists'][_0x665885]['id']===_0x3fa5f0['id']&&(_0x40eb80['lists'][_0x665885][_0x139f9f('0x12eb')]=![],_0xb4ab1b[_0x139f9f('0x1599')](_0x40eb80[_0x139f9f('0x1126')][_0x665885]));}_0x40eb80[_0x139f9f('0x1126')]=_0xb4ab1b;}else{if(!_0x12c56f[_0x139f9f('0x26cc')])return _0x151ed3[_0x139f9f('0x249a')][_0x139f9f('0x2122')]({'sectionId':_0x12c56f['id']})['$promise']['then'](function(_0x350138){var _0xa2270d=_0x139f9f,_0x551b50=_0x51538b()['map'](_0x350138[_0xa2270d('0x580')],function(_0x155c73){var _0x26ac7d=_0xa2270d;return _0x51538b()['find'](_0x40eb80[_0x26ac7d('0x1126')],{'id':_0x155c73['resourceId']});}),_0x11819f=null;_0x40eb80[_0xa2270d('0x10f1')]&&(_0x11819f=_0x51538b()[_0xa2270d('0xe9e')](_0x40eb80['lists'],{'id':Number(_0x40eb80[_0xa2270d('0x10f1')][_0xa2270d('0xee0')])}));if(_0x11819f&&!_0x51538b()['some'](_0x551b50,['id',_0x11819f['id']])){var _0x2afb97=_0x51538b()[_0xa2270d('0xe9e')](_0x40eb80[_0xa2270d('0x1126')],{'id':_0x11819f['id']});_0x2afb97[_0xa2270d('0x12eb')]=![],_0x551b50['push'](_0x2afb97);}_0x40eb80[_0xa2270d('0x1126')]=_0x551b50;});}})['catch'](function(_0x4222c6){var _0x4f8fe7=_0x1cbc4a;_0x9fda14[_0x4f8fe7('0x187f')]({'title':_0x4222c6[_0x4f8fe7('0x2fa')]?_0x4f8fe7('0x16c2')+_0x4222c6[_0x4f8fe7('0x2fa')]+_0x4f8fe7('0x169e')+_0x4222c6['statusText']:_0x4f8fe7('0x177f'),'msg':_0x4222c6[_0x4f8fe7('0x10fd')]?JSON[_0x4f8fe7('0xa48')](_0x4222c6[_0x4f8fe7('0x10fd')]):_0x4222c6[_0x4f8fe7('0x684')]()});}),_0x4e0ead['hasRole'](_0x1cbc4a('0x178b'))?_0x151ed3[_0x1cbc4a('0x1c21')][_0x1cbc4a('0x2122')]({'fields':_0x1cbc4a('0x17fe'),'sort':_0x1cbc4a('0x25d6'),'IntervalId':'null'})['$promise'][_0x1cbc4a('0xaa5')](function(_0x204c63){var _0x1725b9=_0x1cbc4a;_0x40eb80['interval']=_0x204c63[_0x1725b9('0x580')]||[];})[_0x1cbc4a('0x253d')](function(_0x400aef){var _0x39faae=_0x1cbc4a;_0x9fda14['error']({'title':_0x400aef[_0x39faae('0x2fa')]?'API:'+_0x400aef[_0x39faae('0x2fa')]+_0x39faae('0x169e')+_0x400aef[_0x39faae('0x24df')]:_0x39faae('0x11a8'),'msg':_0x400aef[_0x39faae('0x10fd')]?JSON[_0x39faae('0xa48')](_0x400aef[_0x39faae('0x10fd')]):_0x400aef['toString']()});}):_0x151ed3[_0x1cbc4a('0x1c21')][_0x1cbc4a('0x2122')]({'fields':'id,name','sort':'name','IntervalId':_0x1cbc4a('0x1ed9')})['$promise']['then'](function(_0xebc258){var _0x18919d=_0x1cbc4a;_0x40eb80['interval']=_0xebc258[_0x18919d('0x580')]||[];})[_0x1cbc4a('0xaa5')](function(){var _0x4cacf1=_0x1cbc4a;return _0x151ed3[_0x4cacf1('0x1a50')][_0x4cacf1('0x2122')]({'userProfileId':_0x40eb80[_0x4cacf1('0x7fc')]['userProfileId'],'sectionId':0x3ec})[_0x4cacf1('0x1dc2')];})['then'](function(_0x2769a5){var _0x388f6a=_0x1cbc4a,_0x44cc29=_0x2769a5&&_0x2769a5[_0x388f6a('0x580')]?_0x2769a5[_0x388f6a('0x580')][0x0]:null;if(!_0x44cc29){var _0x513f27=[],_0x25d6fb=null;_0x40eb80[_0x388f6a('0x10f1')]&&(_0x25d6fb=_0x51538b()['find'](_0x40eb80['interval'],{'id':Number(_0x40eb80[_0x388f6a('0x10f1')]['IntervalId'])}));for(var _0x5496ce=0x0;_0x5496ce<_0x40eb80[_0x388f6a('0x1c21')]['length'];_0x5496ce++){_0x25d6fb&&_0x40eb80[_0x388f6a('0x1c21')][_0x5496ce]['id']===_0x25d6fb['id']&&(_0x40eb80[_0x388f6a('0x1c21')][_0x5496ce]['canSelect']=![],_0x513f27[_0x388f6a('0x1599')](_0x40eb80[_0x388f6a('0x1c21')][_0x5496ce]));}_0x40eb80[_0x388f6a('0x1c21')]=_0x513f27;}else{if(!_0x44cc29[_0x388f6a('0x26cc')])return _0x151ed3[_0x388f6a('0x249a')][_0x388f6a('0x2122')]({'sectionId':_0x44cc29['id']})[_0x388f6a('0x1dc2')][_0x388f6a('0xaa5')](function(_0x2820d2){var _0x468812=_0x388f6a,_0x4a0726=_0x51538b()[_0x468812('0x1246')](_0x2820d2[_0x468812('0x580')],function(_0x252944){var _0x5843b4=_0x468812;return _0x51538b()['find'](_0x40eb80['interval'],{'id':_0x252944[_0x5843b4('0xbcd')]});}),_0x4fcc9d=null;_0x40eb80[_0x468812('0x10f1')]&&(_0x4fcc9d=_0x51538b()['find'](_0x40eb80[_0x468812('0x1c21')],{'id':Number(_0x40eb80[_0x468812('0x10f1')][_0x468812('0x1f8c')])}));if(_0x4fcc9d&&!_0x51538b()[_0x468812('0x2c2')](_0x4a0726,['id',_0x4fcc9d['id']])){var _0xdbd636=_0x51538b()[_0x468812('0xe9e')](_0x40eb80[_0x468812('0x1c21')],{'id':_0x4fcc9d['id']});_0xdbd636[_0x468812('0x12eb')]=![],_0x4a0726[_0x468812('0x1599')](_0xdbd636);}_0x40eb80['interval']=_0x4a0726;});}})[_0x1cbc4a('0x253d')](function(_0xb60260){var _0x54c9ba=_0x1cbc4a;_0x9fda14[_0x54c9ba('0x187f')]({'title':_0xb60260[_0x54c9ba('0x2fa')]?'API:'+_0xb60260[_0x54c9ba('0x2fa')]+_0x54c9ba('0x169e')+_0xb60260['statusText']:_0x54c9ba('0x2313'),'msg':_0xb60260[_0x54c9ba('0x10fd')]?JSON[_0x54c9ba('0xa48')](_0xb60260[_0x54c9ba('0x10fd')]):_0xb60260[_0x54c9ba('0x684')]()});});function _0x80c63b(){var _0x3e982c=_0x1cbc4a;_0x40eb80[_0x3e982c('0x4c6')]=[],_0x151ed3[_0x3e982c('0x10f1')]['save'](_0x40eb80['chatWebsite'])[_0x3e982c('0x1dc2')][_0x3e982c('0xaa5')](function(_0x120330){var _0x478b9f=_0x3e982c;_0x40eb80[_0x478b9f('0x7d7')][_0x478b9f('0x6ee')](_0x120330[_0x478b9f('0x256a')]()),_0x9fda14[_0x478b9f('0xe10')]({'title':'ChatWebsite\x20properly\x20created','msg':_0x40eb80[_0x478b9f('0x10f1')]['name']?_0x40eb80[_0x478b9f('0x10f1')][_0x478b9f('0x25d6')]+_0x478b9f('0xdca'):''}),_0x4f8d8d(_0x120330);})['catch'](function(_0x53af2c){var _0x295c51=_0x3e982c;if(_0x53af2c[_0x295c51('0x10fd')]&&_0x53af2c[_0x295c51('0x10fd')][_0x295c51('0x4c6')]&&_0x53af2c['data']['errors'][_0x295c51('0x2587')]){_0x40eb80[_0x295c51('0x4c6')]=_0x53af2c['data']['errors']||[{'message':_0x53af2c[_0x295c51('0x684')](),'type':_0x295c51('0x183b')}];for(var _0x4be580=0x0;_0x4be580<_0x53af2c[_0x295c51('0x10fd')][_0x295c51('0x4c6')][_0x295c51('0x2587')];_0x4be580+=0x1){_0x9fda14[_0x295c51('0x187f')]({'title':_0x53af2c[_0x295c51('0x10fd')][_0x295c51('0x4c6')][_0x4be580][_0x295c51('0x6c8')],'msg':_0x53af2c[_0x295c51('0x10fd')][_0x295c51('0x4c6')][_0x4be580][_0x295c51('0x1402')]});}}else _0x9fda14[_0x295c51('0x187f')]({'title':_0x53af2c[_0x295c51('0x2fa')]?'API:'+_0x53af2c['status']+_0x295c51('0x169e')+_0x53af2c[_0x295c51('0x24df')]:_0x295c51('0x183b'),'msg':_0x53af2c['data']?JSON['stringify'](_0x53af2c[_0x295c51('0x10fd')][_0x295c51('0x1402')]):_0x53af2c[_0x295c51('0x684')]()});});}function _0x497e77(){var _0x3e334c=_0x1cbc4a;_0x40eb80[_0x3e334c('0x4c6')]=[],_0x151ed3[_0x3e334c('0x10f1')][_0x3e334c('0x264e')]({'id':_0x40eb80[_0x3e334c('0x10f1')]['id']},_0x40eb80[_0x3e334c('0x10f1')])[_0x3e334c('0x1dc2')][_0x3e334c('0xaa5')](function(_0x237334){var _0x9f468a=_0x3e334c,_0x16c21d=_0x51538b()[_0x9f468a('0xe9e')](_0x40eb80[_0x9f468a('0x7d7')],{'id':_0x237334['id']});_0x16c21d&&_0x51538b()[_0x9f468a('0x283c')](_0x16c21d,_0x51538b()[_0x9f468a('0x104e')](_0x237334[_0x9f468a('0x256a')](),_0x51538b()[_0x9f468a('0x9f2')](_0x16c21d))),_0x9fda14[_0x9f468a('0xe10')]({'title':'ChatWebsite\x20properly\x20saved!','msg':_0x40eb80[_0x9f468a('0x10f1')][_0x9f468a('0x25d6')]?_0x40eb80[_0x9f468a('0x10f1')]['name']+'\x20has\x20been\x20saved!':''}),_0x4f8d8d(_0x237334);})['catch'](function(_0x1b7da8){var _0x14ec81=_0x3e334c;if(_0x1b7da8[_0x14ec81('0x10fd')]&&_0x1b7da8[_0x14ec81('0x10fd')]['errors']&&_0x1b7da8[_0x14ec81('0x10fd')]['errors'][_0x14ec81('0x2587')]){_0x40eb80[_0x14ec81('0x4c6')]=_0x1b7da8['data'][_0x14ec81('0x4c6')]||[{'message':_0x1b7da8['toString'](),'type':_0x14ec81('0x348')}];for(var _0x59f3d5=0x0;_0x59f3d5<_0x1b7da8[_0x14ec81('0x10fd')][_0x14ec81('0x4c6')][_0x14ec81('0x2587')];_0x59f3d5++){_0x9fda14[_0x14ec81('0x187f')]({'title':_0x1b7da8[_0x14ec81('0x10fd')]['errors'][_0x59f3d5][_0x14ec81('0x6c8')],'msg':_0x1b7da8[_0x14ec81('0x10fd')]['errors'][_0x59f3d5][_0x14ec81('0x1402')]});}}else _0x9fda14['error']({'title':_0x1b7da8[_0x14ec81('0x2fa')]?_0x14ec81('0x16c2')+_0x1b7da8[_0x14ec81('0x2fa')]+_0x14ec81('0x169e')+_0x1b7da8[_0x14ec81('0x24df')]:_0x14ec81('0x348'),'msg':_0x1b7da8[_0x14ec81('0x10fd')]?JSON[_0x14ec81('0xa48')](_0x1b7da8['data']['message']):_0x1b7da8['toString']()});});}function _0x421d23(_0x41d33b){var _0x3790f0=_0x1cbc4a;_0x40eb80[_0x3790f0('0x4c6')]=[];var _0xc62ff2=_0x1e55d0[_0x3790f0('0x281e')]()[_0x3790f0('0x110a')](_0x3790f0('0x12a3'))[_0x3790f0('0x15af')]('The\x20chatWebsite\x20will\x20be\x20deleted.')[_0x3790f0('0x5b5')]('Delete\x20ChatWebsite')['ok'](_0x3790f0('0x1e76'))[_0x3790f0('0x2030')](_0x3790f0('0x9c6'))[_0x3790f0('0x116d')](_0x41d33b);_0x1e55d0[_0x3790f0('0x1e6d')](_0xc62ff2)['then'](function(){var _0xcc6fee=_0x3790f0;_0x151ed3[_0xcc6fee('0x10f1')][_0xcc6fee('0x926')]({'id':_0x40eb80[_0xcc6fee('0x10f1')]['id']})[_0xcc6fee('0x1dc2')][_0xcc6fee('0xaa5')](function(){var _0x51af7d=_0xcc6fee;_0x51538b()['remove'](_0x40eb80['chatWebsites'],{'id':_0x40eb80[_0x51af7d('0x10f1')]['id']}),_0x9fda14[_0x51af7d('0xe10')]({'title':_0x51af7d('0xa35'),'msg':(_0x40eb80[_0x51af7d('0x10f1')][_0x51af7d('0x25d6')]||'chatWebsite')+_0x51af7d('0xcd9')}),_0x4f8d8d(_0x40eb80['chatWebsite']);})[_0xcc6fee('0x253d')](function(_0x131f2d){var _0x3ba235=_0xcc6fee;if(_0x131f2d[_0x3ba235('0x10fd')]&&_0x131f2d[_0x3ba235('0x10fd')][_0x3ba235('0x4c6')]&&_0x131f2d[_0x3ba235('0x10fd')][_0x3ba235('0x4c6')]['length']){_0x40eb80[_0x3ba235('0x4c6')]=_0x131f2d[_0x3ba235('0x10fd')][_0x3ba235('0x4c6')]||[{'message':_0x131f2d[_0x3ba235('0x684')](),'type':_0x3ba235('0x135f')}];for(var _0x3bdf28=0x0;_0x3bdf28<_0x131f2d[_0x3ba235('0x10fd')]['errors'][_0x3ba235('0x2587')];_0x3bdf28++){_0x9fda14['error']({'title':_0x131f2d[_0x3ba235('0x10fd')]['errors'][_0x3bdf28][_0x3ba235('0x6c8')],'msg':_0x131f2d[_0x3ba235('0x10fd')][_0x3ba235('0x4c6')][_0x3bdf28][_0x3ba235('0x1402')]});}}else _0x9fda14[_0x3ba235('0x187f')]({'title':_0x131f2d[_0x3ba235('0x2fa')]?_0x3ba235('0x16c2')+_0x131f2d['status']+'\x20-\x20'+_0x131f2d[_0x3ba235('0x24df')]:_0x3ba235('0x135f'),'msg':_0x131f2d[_0x3ba235('0x10fd')]?JSON[_0x3ba235('0xa48')](_0x131f2d[_0x3ba235('0x10fd')][_0x3ba235('0x1402')]):_0x131f2d[_0x3ba235('0x1402')]||_0x131f2d[_0x3ba235('0x684')]()});});},function(){});}function _0x1cf47d(_0x5a27e1){return _0x5a27e1===null?undefined:new Date(_0x5a27e1);}function _0x4f8d8d(_0x475065){var _0x30598f=_0x1cbc4a;_0x1e55d0[_0x30598f('0x1120')](_0x475065);}}const _0x56ebc5=_0x326241,_0x3edbdf=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog-[chunkhash].html',_0x2ca5ca=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html/dialog-[chunkhash].html',_0x3f40d5=_0x4fb511['p']+_0x1a8446('0xb80'),_0x104f24=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html/dialog-[chunkhash].html',_0x28ae9e=_0x4fb511['p']+_0x1a8446('0x205'),_0x8eab4a=_0x4fb511['p']+_0x1a8446('0x1a1b'),_0x453354=_0x4fb511['p']+_0x1a8446('0xea2'),_0x3f54a5=_0x4fb511['p']+_0x1a8446('0x2610'),_0x5172c6=_0x4fb511['p']+_0x1a8446('0x5a6'),_0x277a82=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html/dialog-[chunkhash].html',_0x45fe67=_0x4fb511['p']+_0x1a8446('0x790'),_0x12b121=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog-[chunkhash].html';_0x274d6e[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),'$mdDialog','$document',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];var _0x4a331d={'agent':_0x3edbdf,'amazonlex':_0x2ca5ca,'autoreply':_0x3f40d5,'close':_0x104f24,'dialogflow':_0x28ae9e,'gotoif':_0x8eab4a,'gotop':_0x453354,'interval':_0x3f54a5,'noop':_0x5172c6,'queue':_0x277a82,'system':_0x45fe67,'tag':_0x12b121};function _0x274d6e(_0x1c0cf9,_0x4cd29e,_0x3ba90b,_0x966db,_0x3f6ea8){var _0x2e1f62=_0x1a8446,_0x5ec89d=this;_0x5ec89d[_0x2e1f62('0x7fc')]=_0x3f6ea8[_0x2e1f62('0xacc')](),_0x5ec89d[_0x2e1f62('0x10f1')]={},_0x5ec89d['chatWebsiteApps']={'count':0x0,'rows':[]},_0x5ec89d[_0x2e1f62('0x214')]=[],_0x5ec89d[_0x2e1f62('0xada')],_0x5ec89d[_0x2e1f62('0x582')]={'sort':'priority'},_0x5ec89d[_0x2e1f62('0x27b0')]=_0x51538b()[_0x2e1f62('0xaee')](_0x51538b()[_0x2e1f62('0x181f')]([{'app':_0x2e1f62('0x260f'),'appType':_0x2e1f62('0x1c21'),'types':['always',_0x2e1f62('0x113b'),_0x2e1f62('0x2334')],'fields':[],'isApp':![]},{'app':_0x2e1f62('0x27ca'),'appType':_0x2e1f62('0x27ca'),'type':_0x2e1f62('0x27ca'),'icon':_0x2e1f62('0x1892'),'interval':_0x2e1f62('0x1ac6'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':'value','type':'text','param':0x0}]},{'app':_0x2e1f62('0x5da'),'appType':_0x2e1f62('0x5da'),'type':_0x2e1f62('0x5da'),'icon':_0x2e1f62('0x1892'),'interval':_0x2e1f62('0x1ac6'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':'variable','key':_0x2e1f62('0x25d6')},'route':_0x2e1f62('0x14e7'),'filters':{'fields':_0x2e1f62('0x17fe'),'sort':_0x2e1f62('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x2e1f62('0x23a0'),'name':_0x2e1f62('0xd7b'),'type':_0x2e1f62('0xb37'),'required':!![],'param':0x0},{'title':_0x2e1f62('0x1093'),'name':_0x2e1f62('0x14e7'),'type':'apiselect','values':_0x2e1f62('0x147e'),'value':_0x2e1f62('0x23d4'),'option':_0x2e1f62('0x23d4'),'defaultValues':[{'value':'\x27\x27','option':_0x2e1f62('0xfeb')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x2e1f62('0x1141'),'appType':_0x2e1f62('0x1141'),'type':_0x2e1f62('0x2781'),'icon':_0x2e1f62('0x1892'),'interval':_0x2e1f62('0x1ac6'),'isApp':!![],'fields':[{'title':_0x2e1f62('0x2722'),'name':_0x2e1f62('0x13f2'),'type':_0x2e1f62('0x219a'),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x2e1f62('0x3cb'),'type':_0x2e1f62('0x3cb'),'icon':_0x2e1f62('0x1892'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2e1f62('0x27e6'),'name':_0x2e1f62('0xe77'),'type':_0x2e1f62('0xb37'),'required':!![],'param':0x0},{'title':'truepriority','name':_0x2e1f62('0x13ba'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x2e1f62('0x222b'),'name':_0x2e1f62('0x222b'),'type':_0x2e1f62('0x219a'),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x2e1f62('0xe26'),'foreignKey':_0x2e1f62('0x2631'),'type':_0x2e1f62('0xe26'),'icon':_0x2e1f62('0x1892'),'interval':_0x2e1f62('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x2e1f62('0x4d7'),'field':{'name':_0x2e1f62('0xe26'),'key':_0x2e1f62('0x25d6')},'route':_0x2e1f62('0x2837'),'filters':{'fields':_0x2e1f62('0x21e2'),'sort':_0x2e1f62('0x25d6'),'nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':_0x2e1f62('0x145c'),'name':_0x2e1f62('0xe26'),'type':_0x2e1f62('0xd4d'),'values':_0x2e1f62('0x4d7'),'value':'queue.name','option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x2e1f62('0x23c0'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':_0x2e1f62('0xeff'),'type':_0x2e1f62('0xeff'),'foreignKey':_0x2e1f62('0x1037'),'icon':_0x2e1f62('0x1892'),'interval':_0x2e1f62('0x1ac6'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':'agent','key':_0x2e1f62('0x25d6')},'route':'user','filters':{'fields':_0x2e1f62('0x17fe'),'role':_0x2e1f62('0xeff'),'sort':_0x2e1f62('0x25d6'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x2e1f62('0x521'),'name':'agent','type':_0x2e1f62('0xd4d'),'values':_0x2e1f62('0x1717'),'value':_0x2e1f62('0x11cf'),'option':'agent.name','required':!![],'param':0x0},{'title':_0x2e1f62('0xc45'),'name':_0x2e1f62('0x23c0'),'type':_0x2e1f62('0x219a'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x2e1f62('0x21d0'),'appType':_0x2e1f62('0x21d0'),'type':_0x2e1f62('0x21d0'),'icon':_0x2e1f62('0x1892'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Disposition','name':_0x2e1f62('0x106e'),'type':_0x2e1f62('0xb37'),'required':!![],'param':0x0}]},{'app':_0x2e1f62('0x1b05'),'appType':'autoreply','type':_0x2e1f62('0x1b05'),'icon':_0x2e1f62('0x1892'),'interval':_0x2e1f62('0x1ac6'),'isApp':!![],'fields':[{'title':_0x2e1f62('0x11b6'),'name':'times','type':_0x2e1f62('0xbff'),'defaultValue':'1','values':[{'option':_0x2e1f62('0x1774'),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0x2e1f62('0xb37'),'type':_0x2e1f62('0x1b88'),'required':!![],'param':0x1}]},{'app':_0x2e1f62('0x38f'),'appType':_0x2e1f62('0x38f'),'type':_0x2e1f62('0x38f'),'foreignKey':_0x2e1f62('0x2028'),'icon':_0x2e1f62('0x1892'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x2e1f62('0x38f'),'key':'name'},'route':_0x2e1f62('0x38f'),'filters':{'fields':'id,name','sort':_0x2e1f62('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':_0x2e1f62('0x38f'),'type':_0x2e1f62('0xd4d'),'values':_0x2e1f62('0x523'),'value':'tag.name','option':_0x2e1f62('0x17df'),'required':!![],'param':0x0}]},{'app':_0x2e1f62('0x67c'),'appType':'dialogflow','type':_0x2e1f62('0x67c'),'icon':'icon-apps','interval':_0x2e1f62('0x1ac6'),'isApp':!![],'fields':[{'title':_0x2e1f62('0x1aa3'),'name':_0x2e1f62('0x24ec'),'type':_0x2e1f62('0xb37'),'required':!![],'param':0x0},{'title':_0x2e1f62('0x1938'),'name':_0x2e1f62('0x1938'),'type':_0x2e1f62('0xbff'),'defaultValue':_0x2e1f62('0x1921'),'values':[{'option':_0x2e1f62('0xc2b'),'value':_0x2e1f62('0x1de')},{'option':'English','value':_0x2e1f62('0x1921')},{'option':_0x2e1f62('0x6ab'),'value':_0x2e1f62('0x2a3')},{'option':_0x2e1f62('0x1c42'),'value':'\x27it\x27'},{'option':_0x2e1f62('0x13bd'),'value':_0x2e1f62('0x263d')},{'option':_0x2e1f62('0x701'),'value':_0x2e1f62('0x27f0')},{'option':_0x2e1f62('0x89b'),'value':_0x2e1f62('0x14b8')},{'option':_0x2e1f62('0x75'),'value':_0x2e1f62('0xef2')},{'option':_0x2e1f62('0x260d'),'value':_0x2e1f62('0x1a3a')},{'option':'Dutch','value':_0x2e1f62('0xa45')},{'option':_0x2e1f62('0x2006'),'value':_0x2e1f62('0x539')},{'option':_0x2e1f62('0x26fe'),'value':_0x2e1f62('0x11c5')},{'option':_0x2e1f62('0xf74'),'value':'\x27pt-br\x27'},{'option':_0x2e1f62('0x16cb'),'value':_0x2e1f62('0x614')},{'option':_0x2e1f62('0x18b'),'value':_0x2e1f62('0x652')},{'option':_0x2e1f62('0x1b87'),'value':_0x2e1f62('0x2582')},{'option':_0x2e1f62('0x172b'),'value':'\x27uk\x27'},{'option':'Chinese\x20(Simplified)','value':'\x27zh-CN\x27'},{'option':_0x2e1f62('0xeb8'),'value':_0x2e1f62('0xc82')},{'option':_0x2e1f62('0x44f'),'value':_0x2e1f62('0x6fe')}],'required':!![],'param':0x1},{'title':_0x2e1f62('0x273'),'name':'welcomemessage','type':'textarea','maxlength':0xff,'param':0x2,'help':!![]}]},{'app':_0x2e1f62('0x3f5'),'appType':_0x2e1f62('0x3f5'),'type':'amazonlex','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2e1f62('0xc07'),'name':_0x2e1f62('0xc07'),'type':'text','required':!![],'param':0x0},{'title':_0x2e1f62('0x15f9'),'name':_0x2e1f62('0x15f9'),'type':'text','required':!![],'param':0x1},{'title':_0x2e1f62('0xa9a'),'name':'lexregion','type':_0x2e1f62('0xbff'),'defaultValue':_0x2e1f62('0x22e'),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x2e1f62('0x22e')},{'option':_0x2e1f62('0x438'),'value':_0x2e1f62('0x1fe1')},{'option':_0x2e1f62('0x16a1'),'value':_0x2e1f62('0xbc4')},{'option':_0x2e1f62('0x1339'),'value':_0x2e1f62('0x1b6b')}],'required':!![],'param':0x2},{'title':'botname','name':'botname','type':_0x2e1f62('0xb37'),'required':!![],'param':0x3},{'title':_0x2e1f62('0x273'),'name':_0x2e1f62('0x273'),'type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]}],['app']),{'isApp':![]}),_0x5ec89d[_0x2e1f62('0x2334')]={'group':{'name':'opt1','pull':'clone'},'animation':0x64,'sort':![]},_0x5ec89d[_0x2e1f62('0x209b')]={'group':{'name':_0x2e1f62('0x1603'),'put':_0x2e1f62('0xdf0')},'animation':0x64,'onAdd':function _0x518d34(_0x4d94d9){var _0x1fc888=_0x2e1f62;_0x26c1a2(_0x4d94d9,_0x4d94d9[_0x1fc888('0x1b3d')]);},'onSort':function _0x48f42c(){_0x3ceadb();}},_0x5ec89d[_0x2e1f62('0x2e')]=_0x32016a,_0x5ec89d['deleteConfirm']=_0x1df932,_0x5ec89d['getChatWebsiteApps']=_0x236818,_0x5ec89d[_0x2e1f62('0x1bb4')]=_0x26c1a2,_0x5ec89d[_0x2e1f62('0x1e6')]=_0x38e9bd,_0x5ec89d['deleteChatWebsiteApp']=_0x52d09d,_0x5ec89d['deleteSelectedChatWebsiteApps']=_0xc24fa5,_0x5ec89d[_0x2e1f62('0x1f31')]=_0x3ceadb,_0x5ec89d[_0x2e1f62('0x1f55')]=_0x1ebb77;function _0x32016a(_0x58f6b0,_0x589102){var _0x445aa1=_0x2e1f62;_0x5ec89d[_0x445aa1('0x10f1')]=_0x58f6b0,_0x5ec89d[_0x445aa1('0xada')]=typeof _0x589102!=='undefined'?_0x589102:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5ec89d[_0x445aa1('0x209b')][_0x445aa1('0x2686')]=!_0x5ec89d[_0x445aa1('0xada')][_0x445aa1('0x1c1d')]?!![]:![],_0x5ec89d['query']['id']=_0x58f6b0['id'],_0x5ec89d[_0x445aa1('0x582')][_0x445aa1('0x26a1')]=!![],_0x5ec89d['query'][_0x445aa1('0x86a')]=!![],_0x5ec89d['getChatWebsiteApps'](),_0x5ec89d['getIntervals']();}function _0x1df932(_0x54df88,_0x2c3e10,_0x328fe3){var _0x58c96a=_0x2e1f62,_0x330ca1=_0x4cd29e['confirm']()[_0x58c96a('0x110a')](_0x58c96a('0x912'))[_0x58c96a('0x102e')](_0x58c96a('0x389')+_0x54df88[_0x58c96a('0x9eb')]+_0x58c96a('0x697')+_0x58c96a('0x210d'))[_0x58c96a('0x5b5')](_0x58c96a('0x21a3'))[_0x58c96a('0x116d')](_0x328fe3)['ok']('OK')['cancel'](_0x58c96a('0x2410'));_0x4cd29e[_0x58c96a('0x1e6d')](_0x330ca1)[_0x58c96a('0xaa5')](function(){var _0x5bdafa=_0x58c96a;_0x5ec89d[_0x5bdafa('0xcdd')][_0x5bdafa('0x580')][_0x5bdafa('0x1280')](_0x2c3e10,0x1),_0x3ceadb();},function(){var _0x5b0db5=_0x58c96a;console[_0x5b0db5('0x18d5')]('CANCEL');});}function _0x26c1a2(_0x39be0a,_0x48fd9b){var _0x2d54e2=_0x2e1f62;if(_0x5ec89d[_0x2d54e2('0xcdd')][_0x2d54e2('0x580')][_0x2d54e2('0x2587')]){var _0x48de3a=_0x5ec89d[_0x2d54e2('0xcdd')][_0x2d54e2('0x580')][_0x48fd9b]?_0x5ec89d[_0x2d54e2('0xcdd')][_0x2d54e2('0x580')][_0x48fd9b]:_0x5ec89d['chatWebsiteApps'][_0x2d54e2('0x580')][0x0],_0x4bf224=(_0x48de3a[_0x2d54e2('0xe6d')]||_0x48de3a[_0x2d54e2('0x9eb')])[_0x2d54e2('0xcf6')]();_0x4cd29e[_0x2d54e2('0x1e6d')]({'controller':_0x2d54e2('0x206')['concat'](_0x4bf224,'DialogController'),'controllerAs':'vm','templateUrl':_0x4a331d[_0x4bf224],'parent':angular['element'](_0x3ba90b[_0x2d54e2('0x54c')]),'targetEvent':_0x39be0a,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x48de3a,'chatWebsite':_0x5ec89d[_0x2d54e2('0x10f1')],'crudPermissions':_0x5ec89d[_0x2d54e2('0xada')]}})[_0x2d54e2('0xaa5')](function(_0x178810){var _0x184100=_0x2d54e2;_0x178810&&(_0x178810['id']?_0x5ec89d['chatWebsiteApps']['rows'][_0x48fd9b]=_0x178810:_0x5ec89d[_0x184100('0xcdd')][_0x184100('0x580')][_0x184100('0x1280')](_0x48fd9b,0x0,_0x178810),_0x3ceadb());})[_0x2d54e2('0x253d')](function(_0xf05c7c){var _0x11f106=_0x2d54e2;_0xf05c7c&&_0x966db[_0x11f106('0x187f')]({'title':_0xf05c7c[_0x11f106('0x2fa')]?'API:'+_0xf05c7c[_0x11f106('0x2fa')]+'\x20-\x20'+_0xf05c7c[_0x11f106('0x24df')]:_0x11f106('0x26b6'),'msg':_0xf05c7c['data']?JSON[_0x11f106('0xa48')](_0xf05c7c[_0x11f106('0x10fd')]):_0xf05c7c['toString']()});});}}function _0x38e9bd(_0x488449,_0xf5c824){var _0x2968d3=_0x2e1f62;if(_0x5ec89d[_0x2968d3('0xcdd')][_0x2968d3('0x580')]['length']){var _0x1db1ef=_0x5ec89d[_0x2968d3('0xcdd')][_0x2968d3('0x580')][_0xf5c824]?_0x5ec89d[_0x2968d3('0xcdd')]['rows'][_0xf5c824]:_0x5ec89d['chatWebsiteApps'][_0x2968d3('0x580')][0x0];_0x4cd29e[_0x2968d3('0x1e6d')]({'controller':_0x2968d3('0x15ee'),'controllerAs':'vm','templateUrl':_0x3f54a5,'parent':angular['element'](_0x3ba90b[_0x2968d3('0x54c')]),'targetEvent':_0x488449,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1db1ef[_0x2968d3('0x1c21')],'IntervalId':_0x1db1ef[_0x2968d3('0x1f8c')],'application':!![]},'intervals':[],'crudPermissions':_0x5ec89d[_0x2968d3('0xada')]}})[_0x2968d3('0xaa5')](function(_0x45e797){var _0x4e9873=_0x2968d3;_0x45e797&&(_0x1db1ef[_0x4e9873('0x1c21')]=_0x45e797[_0x4e9873('0x1c21')]||_0x4e9873('0x1ac6'),_0x1db1ef[_0x4e9873('0x1f8c')]=_0x45e797[_0x4e9873('0x1f8c')]||null,_0x3ceadb());});}}function _0x3ceadb(){var _0x10d0c4=_0x2e1f62,_0x23dc72=0x1,_0x4e55f3=[];for(var _0x1bebe1=0x0;_0x1bebe1<_0x5ec89d[_0x10d0c4('0xcdd')][_0x10d0c4('0x580')][_0x10d0c4('0x2587')];_0x1bebe1++){var _0x30141b=_0x5ec89d[_0x10d0c4('0xcdd')][_0x10d0c4('0x580')][_0x1bebe1],_0x14a09d=[],_0x54a536=[];_0x30141b[_0x10d0c4('0x2568')]=_0x30141b['interval']!==_0x10d0c4('0x1ac6')?[_0x30141b[_0x10d0c4('0x1c21')]]:_0x30141b[_0x10d0c4('0x1f8c')]?_0x51538b()[_0x10d0c4('0x1246')](_0x51538b()['filter'](_0x5ec89d[_0x10d0c4('0x2568')][_0x10d0c4('0x580')],{'IntervalId':_0x30141b[_0x10d0c4('0x1f8c')]}),_0x10d0c4('0x1c21')):[],_0x30141b[_0x10d0c4('0x19cd')]=_0x5ec89d[_0x10d0c4('0x10f1')]['context'],_0x30141b[_0x10d0c4('0x1990')]=_0x5ec89d[_0x10d0c4('0x10f1')][_0x10d0c4('0x1990')],_0x30141b[_0x10d0c4('0x6c8')]&&(_0x30141b[_0x10d0c4('0x6c8')]=_0x30141b[_0x10d0c4('0x6c8')][_0x10d0c4('0xcf6')]()),_0x30141b[_0x10d0c4('0x13f2')]=_0x14a09d['length']?_0x51538b()[_0x10d0c4('0x23f4')](_0x14a09d)[_0x10d0c4('0x13f2')]+0x1:_0x23dc72,_0x23dc72=(_0x54a536[_0x10d0c4('0x2587')]?_0x51538b()[_0x10d0c4('0x23f4')](_0x54a536)[_0x10d0c4('0x13f2')]:_0x30141b['priority'])+0x1,_0x4e55f3=_0x51538b()[_0x10d0c4('0x9e4')](_0x4e55f3,_0x14a09d,[_0x30141b],_0x54a536);}_0x1c0cf9[_0x10d0c4('0x10f1')][_0x10d0c4('0x12e')]({'id':_0x5ec89d['chatWebsite']['id']},_0x51538b()[_0x10d0c4('0x181f')](_0x4e55f3,_0x10d0c4('0x13f2')))[_0x10d0c4('0x1dc2')][_0x10d0c4('0xaa5')](function(_0x5f4f57){var _0x106de9=_0x10d0c4;_0x5ec89d[_0x106de9('0xcdd')][_0x106de9('0x580')]=_0x5f4f57['rows'];})['catch'](function(_0x1f6871){var _0x53220a=_0x10d0c4;console[_0x53220a('0x187f')](_0x1f6871);});}function _0x29e910(_0x26a22c){_0x5ec89d['chatWebsiteApps']=_0x26a22c||{'count':0x0,'rows':[]};}function _0x1ebb77(){var _0x2c8738=_0x2e1f62;return _0x1c0cf9[_0x2c8738('0x1c21')][_0x2c8738('0x2122')]({'fields':_0x2c8738('0x1487')})['$promise'][_0x2c8738('0xaa5')](function(_0xe01467){var _0x1f3df2=_0x2c8738;_0x5ec89d[_0x1f3df2('0x2568')]=_0xe01467;})['catch'](function(_0x1cfbf1){console['error'](_0x1cfbf1);});}function _0x236818(){var _0x3a7133=_0x2e1f62;_0x5ec89d['promise']=_0x1c0cf9[_0x3a7133('0x10f1')][_0x3a7133('0x185c')](_0x5ec89d[_0x3a7133('0x582')],_0x29e910)[_0x3a7133('0x1dc2')];}function _0x52d09d(_0x7d306a){var _0x4b3469=_0x2e1f62;_0x51538b()[_0x4b3469('0xf6d')](_0x5ec89d[_0x4b3469('0xcdd')][_0x4b3469('0x580')],{'id':_0x7d306a['id']}),_0x3ceadb(),_0x966db[_0x4b3469('0xe10')]({'title':_0x4b3469('0x1446'),'msg':_0x7d306a[_0x4b3469('0x9eb')]?_0x7d306a['app']+_0x4b3469('0xcd9'):''});}function _0xc24fa5(_0x3e7e17){var _0x2d848f=_0x2e1f62,_0x982e67=_0x4cd29e[_0x2d848f('0x281e')]()[_0x2d848f('0x110a')](_0x2d848f('0x1190'))[_0x2d848f('0x102e')](_0x2d848f('0x389')+_0x5ec89d['selectedChatWebsiteApps']['length']+_0x2d848f('0x1443')+_0x2d848f('0x210d'))[_0x2d848f('0x5b5')]('delete\x20applications')[_0x2d848f('0x116d')](_0x3e7e17)['ok']('OK')['cancel']('CANCEL');_0x4cd29e[_0x2d848f('0x1e6d')](_0x982e67)[_0x2d848f('0xaa5')](function(){_0x5ec89d['selectedChatWebsiteApps']['forEach'](function(_0x18d1b3){var _0x27d722=a0_0x1149;_0x51538b()[_0x27d722('0xf6d')](_0x5ec89d[_0x27d722('0xcdd')][_0x27d722('0x580')],{'id':_0x18d1b3['id']});}),_0x5ec89d['selectedChatWebsiteApps']=[],_0x3ceadb();});}}const _0x5a2af2=_0x274d6e;_0x53ea96['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x10f1'),_0x1a8446('0x7d7'),_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x53ea96(_0xd85290,_0x4ab030,_0x5715f8,_0x1ed25b,_0x493de5,_0x42d6bd,_0x7019ce,_0x11afb5,_0x5aa275,_0x3994da){var _0xd6f3d9=_0x1a8446,_0x495db1=this;_0x495db1[_0xd6f3d9('0x7fc')]=_0x5aa275['getCurrentUser'](),_0x495db1[_0xd6f3d9('0x10f1')]=_0x493de5,_0x495db1[_0xd6f3d9('0xada')]=_0x3994da,_0x495db1[_0xd6f3d9('0x4f3')]=_0x7019ce,_0x495db1[_0xd6f3d9('0x1a30')]=[],_0x495db1[_0xd6f3d9('0x11b9')]=[],_0x495db1['selectedItems']=[],_0x495db1[_0xd6f3d9('0x215b')]=[],_0x495db1['startingSelectedItems']=[],_0x495db1[_0xd6f3d9('0xc54')]=![],_0x495db1[_0xd6f3d9('0x2318')]=_0x760036,_0x495db1[_0xd6f3d9('0x17bb')]=_0x2ebfd5,_0x495db1[_0xd6f3d9('0x2023')]=_0x575af5,_0x495db1[_0xd6f3d9('0x1c23')]={'readOnly':!_0x495db1[_0xd6f3d9('0xada')][_0xd6f3d9('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xd6f3d9('0x25d6'),'line1':_0xd6f3d9('0x18e5'),'line2':[_0xd6f3d9('0x25d6'),_0xd6f3d9('0x1b0d')],'line3':'','labelAll':_0x11afb5[_0xd6f3d9('0x213f')]('CHAT.ALL_AGENTS'),'labelSelected':_0x11afb5[_0xd6f3d9('0x213f')]('CHAT.SELECTED_AGENTS'),'transferCallback':function _0x580e17(){var _0x742a48=_0xd6f3d9,_0x3c785e=_0x51538b()[_0x742a48('0x9ef')](_0x495db1[_0x742a48('0x214a')],_0x495db1[_0x742a48('0xbf7')],'id');_0x495db1[_0x742a48('0xc54')]=_0x51538b()[_0x742a48('0x116b')](_0x3c785e)?![]:!![];}};function _0x760036(){var _0x4b7860=_0xd6f3d9;return _0x5aa275['hasRole'](_0x4b7860('0x178b'))?_0x3e8087()[_0x4b7860('0x253d')](function(_0xb7158c){var _0x24af6a=_0x4b7860;_0x5715f8[_0x24af6a('0x187f')]({'title':_0xb7158c[_0x24af6a('0x2fa')]?_0x24af6a('0x16c2')+_0xb7158c[_0x24af6a('0x2fa')]+_0x24af6a('0x169e')+_0xb7158c['statusText']:_0x24af6a('0x14c6'),'msg':_0xb7158c[_0x24af6a('0x2fa')]?JSON[_0x24af6a('0xa48')](_0xb7158c[_0x24af6a('0x10fd')]):_0xb7158c[_0x24af6a('0x684')]()});}):_0x39beb4()[_0x4b7860('0xaa5')](function(_0x234895){return _0x495db1['section']=_0x234895,_0x3e8087();})['catch'](function(_0x2b6d71){var _0x22a90c=_0x4b7860;_0x5715f8[_0x22a90c('0x187f')]({'title':_0x2b6d71[_0x22a90c('0x2fa')]?_0x22a90c('0x16c2')+_0x2b6d71[_0x22a90c('0x2fa')]+_0x22a90c('0x169e')+_0x2b6d71[_0x22a90c('0x24df')]:'SYSTEM:GET_AGENTS','msg':_0x2b6d71[_0x22a90c('0x2fa')]?JSON[_0x22a90c('0xa48')](_0x2b6d71[_0x22a90c('0x10fd')]):_0x2b6d71[_0x22a90c('0x684')]()});});}function _0x39beb4(){return _0x4ab030(function(_0x520d67,_0x2dfdb1){var _0xfb2815=a0_0x1149;_0x1ed25b[_0xfb2815('0x1a50')][_0xfb2815('0x2122')]({'userProfileId':_0x495db1['currentUser'][_0xfb2815('0x2168')],'name':_0xfb2815('0x91a')})[_0xfb2815('0x1dc2')][_0xfb2815('0xaa5')](function(_0x19b93c){var _0xe53660=_0xfb2815,_0x36f523=_0x19b93c&&_0x19b93c['rows']?_0x19b93c[_0xe53660('0x580')][0x0]:null;_0x520d67(_0x36f523);})[_0xfb2815('0x253d')](function(_0x1d8126){_0x2dfdb1(_0x1d8126);});});}function _0x3e8087(){return _0x4ab030(function(_0x2a0fbe,_0x57d4d0){var _0x1f361c=a0_0x1149;return _0x1eff15()[_0x1f361c('0xaa5')](function(_0x4ce895){var _0x4e71d4=_0x1f361c;return _0x495db1[_0x4e71d4('0x1a30')]=_0x4ce895[_0x4e71d4('0x580')]?_0x4ce895['rows']:[],_0x5aa275[_0x4e71d4('0x26e8')](_0x4e71d4('0x178b'))?_0x4ce895:_0x495db1[_0x4e71d4('0x224d')]?_0x495db1[_0x4e71d4('0x224d')]['autoAssociation']?_0x4ce895:_0x39cfbb():null;})[_0x1f361c('0xaa5')](function(_0x481c76){var _0x55c20c=_0x1f361c,_0x36edba=_0x481c76&&_0x481c76[_0x55c20c('0x580')]?_0x481c76[_0x55c20c('0x580')]:[];return _0x495db1[_0x55c20c('0x11b9')]=_0x51538b()['map'](_0x36edba,function(_0x25096c){var _0x28ead9=_0x55c20c;return _0x51538b()[_0x28ead9('0xe9e')](_0x495db1[_0x28ead9('0x1a30')],{'id':_0x5aa275[_0x28ead9('0x26e8')](_0x28ead9('0x178b'))||_0x495db1['section'][_0x28ead9('0x26cc')]?_0x25096c['id']:_0x25096c[_0x28ead9('0xbcd')]});}),_0x495db1['startingAllowedItems']=angular['copy'](_0x495db1[_0x55c20c('0x11b9')]),_0x495db1[_0x55c20c('0x1a30')]['forEach'](function(_0x52aeab){var _0xec4d7f=_0x55c20c,_0x42cf60=_0x51538b()[_0xec4d7f('0xe9e')](_0x495db1[_0xec4d7f('0x11b9')],{'id':_0x52aeab['id']});_0x5aa275[_0xec4d7f('0x26e8')](_0xec4d7f('0x178b'))?_0x52aeab[_0xec4d7f('0x145d')]=!![]:_0x52aeab[_0xec4d7f('0x145d')]=typeof _0x42cf60!=='undefined'?!![]:![];}),_0x5d63d3();})[_0x1f361c('0xaa5')](function(_0x2bac17){var _0x2e9a77=_0x1f361c,_0x44eba0=_0x2bac17&&_0x2bac17['rows']?_0x2bac17['rows']:[];_0x495db1[_0x2e9a77('0xbf7')]=_0x51538b()['map'](_0x44eba0,function(_0x4c2db2){var _0x6f6a4b=_0x2e9a77,_0x4f01ec=_0x51538b()[_0x6f6a4b('0xe9e')](_0x495db1['items'],{'id':_0x4c2db2['id']});return _0x4f01ec['penalty']=_0x4c2db2[_0x6f6a4b('0x19ce')]?_0x6f6a4b('0x17b0')+_0x4c2db2[_0x6f6a4b('0x19ce')]['penalty']:'',_0x4f01ec['internal']=typeof _0x4c2db2['internal']!==_0x6f6a4b('0x1574')?'<'+_0x4c2db2['internal']+'>':'',_0x4f01ec;}),_0x495db1[_0x2e9a77('0x214a')]=angular[_0x2e9a77('0x20a')](_0x495db1[_0x2e9a77('0xbf7')]),_0x495db1['dualMultiselectOptions'][_0x2e9a77('0xbf7')]=_0x495db1['selectedItems'],_0x495db1[_0x2e9a77('0x1c23')][_0x2e9a77('0x1a30')]=_0x51538b()[_0x2e9a77('0x1ebb')](_0x495db1[_0x2e9a77('0x11b9')],_0x495db1[_0x2e9a77('0x1c23')][_0x2e9a77('0xbf7')],'id'),_0x2a0fbe();})['catch'](function(_0x3fbd04){_0x57d4d0(_0x3fbd04);});});}function _0x39cfbb(){return _0x4ab030(function(_0x4efadf,_0x22d466){var _0x48121f=a0_0x1149;return _0x1ed25b[_0x48121f('0x249a')][_0x48121f('0x2122')]({'sectionId':_0x495db1[_0x48121f('0x224d')]['id'],'nolimit':!![]})[_0x48121f('0x1dc2')][_0x48121f('0xaa5')](function(_0x28b249){_0x4efadf(_0x28b249);})[_0x48121f('0x253d')](function(_0x281f24){_0x22d466(_0x281f24);});});}function _0x5d63d3(){return _0x4ab030(function(_0x397b26,_0x2eaf8f){var _0x14eb6b=a0_0x1149;return _0x1ed25b[_0x14eb6b('0x10f1')][_0x14eb6b('0x1483')]({'id':_0x495db1[_0x14eb6b('0x10f1')]['id'],'fields':_0x14eb6b('0x283f'),'nolimit':!![],'role':_0x14eb6b('0xeff')})[_0x14eb6b('0x1dc2')][_0x14eb6b('0xaa5')](function(_0x2fc6cc){_0x397b26(_0x2fc6cc);})[_0x14eb6b('0x253d')](function(_0x519a86){_0x2eaf8f(_0x519a86);});});}function _0x1eff15(){return _0x4ab030(function(_0x38afe5,_0x2d5946){var _0x571b8a=a0_0x1149;return _0x1ed25b[_0x571b8a('0x272b')][_0x571b8a('0x2122')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x571b8a('0x1dc2')][_0x571b8a('0xaa5')](function(_0xead71b){_0x38afe5(_0xead71b);})['catch'](function(_0x55d455){_0x2d5946(_0x55d455);});});}function _0xe11b90(_0x523a2e){return _0x4ab030(function(_0xe5a070,_0x36a22f){var _0x55fe34=a0_0x1149;_0x51538b()[_0x55fe34('0x116b')](_0x523a2e)?_0xe5a070():_0x1ed25b['chatWebsite']['addAgents']({'id':_0x495db1[_0x55fe34('0x10f1')]['id'],'ids':_0x51538b()[_0x55fe34('0x1246')](_0x523a2e,'id')})[_0x55fe34('0x1dc2')]['then'](function(){_0xe5a070();})['catch'](function(_0x1ce25b){_0x36a22f(_0x1ce25b);});});}function _0x8b8d0f(_0x29f1a0){return _0x4ab030(function(_0x5905ec,_0xcadd82){var _0x470748=a0_0x1149;_0x51538b()[_0x470748('0x116b')](_0x29f1a0)?_0x5905ec():_0x1ed25b[_0x470748('0x10f1')][_0x470748('0x258e')]({'id':_0x495db1[_0x470748('0x10f1')]['id'],'ids':_0x51538b()[_0x470748('0x1246')](_0x29f1a0,'id')})[_0x470748('0x1dc2')][_0x470748('0xaa5')](function(){_0x5905ec();})['catch'](function(_0x2f127b){_0xcadd82(_0x2f127b);});});}function _0x2ebfd5(){var _0x1c0926=_0xd6f3d9,_0x1519d5=_0x51538b()[_0x1c0926('0x1ebb')](_0x495db1[_0x1c0926('0x214a')],_0x495db1[_0x1c0926('0xbf7')],'id'),_0x218e44=_0x51538b()[_0x1c0926('0x1ebb')](_0x495db1[_0x1c0926('0xbf7')],_0x495db1[_0x1c0926('0x214a')],'id');return _0x8b8d0f(_0x1519d5)[_0x1c0926('0xaa5')](function(){return _0xe11b90(_0x218e44);})['then'](function(){var _0x796337=_0x1c0926;_0x495db1[_0x796337('0xc54')]=![],_0x495db1[_0x796337('0x215b')]=angular[_0x796337('0x20a')](_0x495db1[_0x796337('0x11b9')]),_0x495db1[_0x796337('0x214a')]=angular[_0x796337('0x20a')](_0x495db1[_0x796337('0xbf7')]),_0x5715f8[_0x796337('0xe10')]({'title':_0x796337('0x2eb'),'msg':_0x796337('0xc60')});})[_0x1c0926('0x253d')](function(_0x448adb){var _0x1c503e=_0x1c0926;_0x5715f8[_0x1c503e('0x187f')]({'title':_0x448adb[_0x1c503e('0x2fa')]?_0x1c503e('0x16c2')+_0x448adb[_0x1c503e('0x2fa')]+_0x1c503e('0x169e')+_0x448adb[_0x1c503e('0x24df')]:_0x1c503e('0x2281'),'msg':_0x448adb['status']?JSON['stringify'](_0x448adb[_0x1c503e('0x10fd')]):_0x448adb[_0x1c503e('0x684')]()});});}function _0x575af5(){var _0x5c6083=_0xd6f3d9;_0xd85290[_0x5c6083('0x1120')]();}}const _0x3cafb2=_0x53ea96;_0x16235e[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),'toasty'];function _0x16235e(_0x27a21b,_0x48f653){var _0x55a368=_0x1a8446,_0x4a318c=this,_0x250045=0x8,_0x1709fe=_0x250045*0x400*0x400;_0x4a318c[_0x55a368('0x10f1')]={},_0x4a318c[_0x55a368('0xada')],_0x4a318c[_0x55a368('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1709fe,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4a318c['ngFlow']={'flow':{}},_0x4a318c[_0x55a368('0x258f')]=![],_0x4a318c[_0x55a368('0x20d1')]=_0x2d9a4e,_0x4a318c['upload']=_0x5edec2,_0x4a318c[_0x55a368('0x1313')]=_0x3a9cc8,_0x4a318c['init']=_0x1307af;function _0x1307af(_0x1bbdf7,_0x1fa64d){var _0x52c65d=_0x55a368;_0x4a318c['chatWebsite']=angular[_0x52c65d('0x20a')](_0x1bbdf7),_0x4a318c['crudPermissions']=typeof _0x1fa64d!=='undefined'?_0x1fa64d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a318c['ngFlowOptions'][_0x52c65d('0xe2e')]='/api/chat/websites/:id/avatar'['replace'](_0x52c65d('0x128c'),_0x4a318c[_0x52c65d('0x10f1')]['id']),_0x4a318c[_0x52c65d('0x10f1')]['images']=[];}function _0x2d9a4e(_0x29b927){var _0x5af74e=_0x55a368,_0x2369fc=[_0x5af74e('0x981'),_0x5af74e('0x1085')];if(!_0x51538b()[_0x5af74e('0x13d6')](_0x2369fc,_0x29b927[_0x5af74e('0x177a')]()))return _0x48f653[_0x5af74e('0x187f')]({'title':_0x5af74e('0x7bf')+_0x29b927['getExtension'](),'msg':_0x5af74e('0x88f')+_0x2369fc[_0x5af74e('0x19c4')]()}),![];if(_0x29b927[_0x5af74e('0x9f9')]>_0x1709fe)return _0x48f653[_0x5af74e('0x187f')]({'title':_0x5af74e('0xfad'),'msg':_0x5af74e('0x15dd')+_0x250045+'MB'}),![];var _0x31bdfa={'id':_0x29b927[_0x5af74e('0xd3c')],'file':_0x29b927,'type':'uploading'};return _0x4a318c[_0x5af74e('0x10f1')][_0x5af74e('0x1b2d')][_0x5af74e('0x6ee')](_0x31bdfa),!![];}function _0x5edec2(){var _0x48eb1a=_0x55a368;_0x4a318c['ngFlow'][_0x48eb1a('0xcba')][_0x48eb1a('0x177d')][_0x48eb1a('0xc71')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x48eb1a('0x2070')+_0x27a21b[_0x48eb1a('0x2122')](_0x48eb1a('0x10f8'))},_0x4a318c['ngFlow'][_0x48eb1a('0xcba')][_0x48eb1a('0x158b')]();}function _0x3a9cc8(_0x51bc49){var _0x27142d=_0x55a368;angular[_0x27142d('0x15b5')](_0x4a318c[_0x27142d('0x10f1')]['images'],function(_0x15ac24){var _0x314866=_0x27142d;if(_0x15ac24['id']===_0x51bc49[_0x314866('0xd3c')]){var _0x3da815=new FileReader();_0x3da815[_0x314866('0xc21')](_0x15ac24[_0x314866('0x1945')][_0x314866('0x1945')]),_0x3da815['onload']=function(_0x51cfb3){var _0x31b793=_0x314866;_0x15ac24[_0x31b793('0x2242')]=_0x51cfb3[_0x31b793('0xe2e')]['result'];},_0x15ac24[_0x314866('0x6c8')]='image';}});}}const _0x3761da=_0x16235e;_0x1a93bf[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x1fcd'),_0x1a8446('0x10f1'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x1a93bf(_0x5c2d50,_0x22c770,_0x2f5c6e,_0x38836b,_0x205e97,_0x32610a,_0x4672d4,_0x427df7){var _0xe7e337=_0x1a8446,_0x8007b6=this;_0x8007b6[_0xe7e337('0x7fc')]=_0x4672d4[_0xe7e337('0xacc')](),_0x8007b6[_0xe7e337('0x4c6')]=[],_0x8007b6[_0xe7e337('0x110a')]=_0xe7e337('0x4a0')+(_0x38836b[_0xe7e337('0xe6d')]||_0x38836b['app'])['toUpperCase'](),_0x8007b6[_0xe7e337('0xeff')]=angular[_0xe7e337('0x20a')](_0x38836b),_0x8007b6[_0xe7e337('0xada')]=_0x427df7,_0x8007b6[_0xe7e337('0x9f0')]={};if(_0x8007b6[_0xe7e337('0xeff')]['appdata'])switch(_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0xe6d')]?_0x8007b6[_0xe7e337('0xeff')]['appType']['toLowerCase']():_0x8007b6['agent']['app'][_0xe7e337('0xcf6')]()){case _0xe7e337('0x113b'):break;case _0xe7e337('0x67c'):{var _0x4f2f3c=_0x8007b6['agent'][_0xe7e337('0x124b')][_0xe7e337('0x1a39')](',');_0x8007b6['agent'][_0xe7e337('0x24ec')]=_0x4f2f3c[0x0],_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x1938')]=_0x4f2f3c[0x1],_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x273')]=_0x4f2f3c['slice'](0x2,_0x4f2f3c['length'])[_0xe7e337('0x19c4')](',');}break;case _0xe7e337('0x3f5'):{var _0x8a62fc=_0x8007b6[_0xe7e337('0xeff')]['appdata'][_0xe7e337('0x1a39')](',');_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0xc07')]=_0x8a62fc[0x0],_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x15f9')]=_0x8a62fc[0x1],_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0xa9a')]=_0x8a62fc[0x2],_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x18ee')]=_0x8a62fc[0x3],_0x8007b6['agent']['welcomemessage']=_0x8a62fc[_0xe7e337('0x19aa')](0x4,_0x8a62fc[_0xe7e337('0x2587')])[_0xe7e337('0x19c4')](',');}break;case _0xe7e337('0x1b05'):{var _0x8b3e13=_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x124b')][_0xe7e337('0x1a39')](',');_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x11b6')]=isNaN(_0x8b3e13[0x0])?_0x8b3e13[0x0]:parseInt(_0x8b3e13[0x0],0xa),_0x8007b6['agent'][_0xe7e337('0xb37')]=_0x8b3e13['slice'](0x1,_0x8b3e13['length'])[_0xe7e337('0x19c4')](',');}break;case _0xe7e337('0x1402'):_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0xb37')]=_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x124b')];break;case _0xe7e337('0x282c'):_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x25d6')]=_0x8007b6[_0xe7e337('0xeff')]['appdata'][_0xe7e337('0x1a39')]('=')[0x0],_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x12f4')]=_0x8007b6[_0xe7e337('0xeff')]['appdata'][_0xe7e337('0x1a39')]('=')[0x1];break;case _0xe7e337('0x2067'):_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x24b9')]=_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x124b')];break;default:{var _0x429343=_0x8007b6[_0xe7e337('0xeff')]['appdata']['split'](',');_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0xeff')]=_0x51538b()['isEmpty'](_0x429343[0x0])?_0x429343[0x0]:isNaN(_0x429343[0x0])?_0x429343[0x0]:parseInt(_0x429343[0x0],0xa),_0x8007b6[_0xe7e337('0xeff')]['timeout']=_0x51538b()['isEmpty'](_0x429343[0x1])?_0x429343[0x1]:isNaN(_0x429343[0x1])?_0x429343[0x1]:parseInt(_0x429343[0x1],0xa);}break;}else _0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x23c0')]=0x1e;_0x8007b6['agent']['type']&&_0x8007b6['agent'][_0xe7e337('0x6c8')]['toLowerCase']()===_0xe7e337('0x19d1')&&_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0xe6d')][_0xe7e337('0xcf6')]()===_0xe7e337('0x1e7f')&&(_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x1b8f')]=_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x1a46')]?_0x8007b6['agent'][_0xe7e337('0x1a46')]['split']('$')[0x0]:undefined,_0x8007b6['agent']['callerId']=_0x8007b6[_0xe7e337('0xeff')]['callerID']?_0xe7e337('0x23d8')+_0x8007b6[_0xe7e337('0xeff')][_0xe7e337('0x514')]:undefined);_0x8007b6[_0xe7e337('0x237c')]=_0x1c079c,_0x8007b6[_0xe7e337('0x2023')]=_0x4a5b69,_0x4672d4[_0xe7e337('0x26e8')]('admin')?_0x32610a['user']['get']({'fields':_0xe7e337('0x17fe'),'role':_0xe7e337('0xeff'),'sort':_0xe7e337('0x25d6'),'nolimit':_0xe7e337('0x1c5c')})[_0xe7e337('0x1dc2')][_0xe7e337('0xaa5')](function(_0x478175){var _0x371c16=_0xe7e337;_0x8007b6[_0x371c16('0x1717')]=_0x478175[_0x371c16('0x580')]||[];})[_0xe7e337('0x253d')](function(_0x298d47){var _0x47e13a=_0xe7e337;_0x2f5c6e[_0x47e13a('0x187f')]({'title':_0x298d47['status']?_0x47e13a('0x16c2')+_0x298d47[_0x47e13a('0x2fa')]+'\x20-\x20'+_0x298d47[_0x47e13a('0x24df')]:_0x47e13a('0x14c6'),'msg':_0x298d47[_0x47e13a('0x10fd')]?JSON[_0x47e13a('0xa48')](_0x298d47[_0x47e13a('0x10fd')]):_0x298d47[_0x47e13a('0x684')]()});}):_0x32610a[_0xe7e337('0x272b')]['get']({'fields':_0xe7e337('0x17fe'),'role':_0xe7e337('0xeff'),'sort':'name','nolimit':'true'})[_0xe7e337('0x1dc2')][_0xe7e337('0xaa5')](function(_0x16f9a0){var _0x3510d8=_0xe7e337;_0x8007b6[_0x3510d8('0x1717')]=_0x16f9a0[_0x3510d8('0x580')]||[];})[_0xe7e337('0xaa5')](function(){var _0x395616=_0xe7e337;return _0x32610a[_0x395616('0x1a50')][_0x395616('0x2122')]({'userProfileId':_0x8007b6['currentUser'][_0x395616('0x2168')],'sectionId':0xca})[_0x395616('0x1dc2')];})[_0xe7e337('0xaa5')](function(_0x54e7df){var _0x24b95d=_0xe7e337,_0xcb2ded=_0x54e7df&&_0x54e7df[_0x24b95d('0x580')]?_0x54e7df[_0x24b95d('0x580')][0x0]:null;if(!_0xcb2ded){var _0x179fcf=[],_0x57f4d9=null;_0x8007b6[_0x24b95d('0xeff')]&&(_0x57f4d9=_0x51538b()['find'](_0x8007b6[_0x24b95d('0x1717')],{'name':_0x8007b6['agent']['agent']}));for(var _0x3f22a9=0x0;_0x3f22a9<_0x8007b6[_0x24b95d('0x1717')][_0x24b95d('0x2587')];_0x3f22a9++){_0x57f4d9&&_0x8007b6[_0x24b95d('0x1717')][_0x3f22a9]['id']===_0x57f4d9['id']&&(_0x8007b6[_0x24b95d('0x1717')][_0x3f22a9]['canSelect']=![],_0x179fcf[_0x24b95d('0x1599')](_0x8007b6[_0x24b95d('0x1717')][_0x3f22a9]));}_0x8007b6['agents']=_0x179fcf;}else{if(!_0xcb2ded[_0x24b95d('0x26cc')])return _0x32610a[_0x24b95d('0x249a')][_0x24b95d('0x2122')]({'sectionId':_0xcb2ded['id']})[_0x24b95d('0x1dc2')][_0x24b95d('0xaa5')](function(_0x54a406){var _0x2e68da=_0x24b95d,_0x6ed739=_0x51538b()[_0x2e68da('0x1246')](_0x54a406[_0x2e68da('0x580')],function(_0x23f6e3){var _0x210fce=_0x2e68da;return _0x51538b()[_0x210fce('0xe9e')](_0x8007b6[_0x210fce('0x1717')],{'id':_0x23f6e3['resourceId']});}),_0x42d95a=null;_0x8007b6[_0x2e68da('0xeff')]&&(_0x42d95a=_0x51538b()[_0x2e68da('0xe9e')](_0x8007b6[_0x2e68da('0x1717')],{'name':_0x8007b6[_0x2e68da('0xeff')][_0x2e68da('0xeff')]}));if(_0x42d95a&&!_0x51538b()['some'](_0x6ed739,['id',_0x42d95a['id']])){var _0x1f4583=_0x51538b()[_0x2e68da('0xe9e')](_0x8007b6['agents'],{'id':_0x42d95a['id']});_0x1f4583[_0x2e68da('0x12eb')]=![],_0x6ed739[_0x2e68da('0x1599')](_0x1f4583);}_0x8007b6['agents']=_0x6ed739;});}})[_0xe7e337('0x253d')](function(_0x1aa0ab){var _0x176052=_0xe7e337;_0x2f5c6e[_0x176052('0x187f')]({'title':_0x1aa0ab['status']?_0x176052('0x16c2')+_0x1aa0ab['status']+_0x176052('0x169e')+_0x1aa0ab[_0x176052('0x24df')]:'SYSTEM:GETagents','msg':_0x1aa0ab['data']?JSON[_0x176052('0xa48')](_0x1aa0ab[_0x176052('0x10fd')]):_0x1aa0ab[_0x176052('0x684')]()});});function _0x1c079c(){var _0x145a8f=_0xe7e337;_0x8007b6[_0x145a8f('0x4c6')]=[];var _0x5d9306=[];_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x6c8')]&&_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x6c8')][_0x145a8f('0xcf6')]()===_0x145a8f('0x19d1')&&_0x8007b6[_0x145a8f('0xeff')]['appType']===_0x145a8f('0x8da')&&(_0x8007b6[_0x145a8f('0xeff')]['phone']=_0x205e97['cutdigits']?(_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x1b8f')]||'')+_0x145a8f('0x117e')+_0x205e97[_0x145a8f('0x888')]+'}':(_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x1b8f')]||'')+_0x145a8f('0x1f87'),_0x205e97['recordingFormat']!==_0x145a8f('0x117')?_0x8007b6[_0x145a8f('0xeff')]['options'][_0x145a8f('0x1f38')](_0x145a8f('0x266a'))<0x0&&(_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x1b36')]+=_0x145a8f('0x266a')):_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x1b36')]=_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x1b36')][_0x145a8f('0x170d')](_0x145a8f('0x266a'),''));var _0x241558=_0x51538b()[_0x145a8f('0xe9e')](_0x8007b6[_0x145a8f('0x1717')],{'name':_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0xeff')]});_0x241558&&(_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x1037')]=_0x241558['id']);if(_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0xe6d')]&&_0x8007b6['agent'][_0x145a8f('0xe6d')]===_0x145a8f('0x113b')){}else switch((_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x9eb')]||_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0xe6d')])[_0x145a8f('0xcf6')]()){case'set':_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x124b')]=_0x8007b6['agent'][_0x145a8f('0x25d6')]+'='+_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x12f4')];break;case _0x145a8f('0x113b'):break;default:_0x5d9306[0x0]=_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0xeff')],_0x5d9306[0x1]=_0x8007b6[_0x145a8f('0xeff')]['timeout'],_0x8007b6[_0x145a8f('0xeff')][_0x145a8f('0x124b')]=_0x5d9306['join'](',');}_0x4a5b69(_0x8007b6['agent']);}function _0x4a5b69(_0x32cf68){var _0x5e803e=_0xe7e337;_0x5c2d50[_0x5e803e('0x1120')](_0x32cf68);}}const _0x257ca0=_0x1a93bf;_0x583e2a[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1fcd'),'chatWebsite',_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x583e2a(_0x1da640,_0x39f8ce,_0x4f9195,_0x4f0e6c,_0x20583b,_0x18f125,_0x52e549,_0x2300c1){var _0x51676c=_0x1a8446,_0x5f25f1=this;_0x5f25f1[_0x51676c('0x7fc')]=_0x52e549[_0x51676c('0xacc')](),_0x5f25f1[_0x51676c('0x4c6')]=[],_0x5f25f1['title']=_0x51676c('0x4a0')+(_0x4f0e6c['appType']||_0x4f0e6c['app'])['toUpperCase'](),_0x5f25f1[_0x51676c('0x3f5')]=angular[_0x51676c('0x20a')](_0x4f0e6c),_0x5f25f1[_0x51676c('0xada')]=_0x2300c1,_0x5f25f1[_0x51676c('0x9f0')]={};if(_0x5f25f1['amazonlex'][_0x51676c('0x124b')])switch(_0x5f25f1['amazonlex'][_0x51676c('0xe6d')]?_0x5f25f1['amazonlex']['appType']['toLowerCase']():_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x9eb')]['toLowerCase']()){case _0x51676c('0x113b'):break;case'dialogflow':{var _0x18f703=_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x124b')]['split'](',');_0x5f25f1['amazonlex']['key']=_0x18f703[0x0],_0x5f25f1['amazonlex'][_0x51676c('0x1938')]=_0x18f703[0x1],_0x5f25f1[_0x51676c('0x3f5')]['welcomemessage']=_0x18f703[_0x51676c('0x19aa')](0x2,_0x18f703[_0x51676c('0x2587')])[_0x51676c('0x19c4')](',');}break;case'amazonlex':{var _0xf5a24a=_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x124b')][_0x51676c('0x1a39')](',');_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0xc07')]=_0xf5a24a[0x0],_0x5f25f1[_0x51676c('0x3f5')]['secretaccesskey']=_0xf5a24a[0x1],_0x5f25f1['amazonlex'][_0x51676c('0xa9a')]=_0xf5a24a[0x2],_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x18ee')]=_0xf5a24a[0x3],_0x5f25f1['amazonlex'][_0x51676c('0x273')]=_0xf5a24a[_0x51676c('0x19aa')](0x4,_0xf5a24a[_0x51676c('0x2587')])[_0x51676c('0x19c4')](',');}break;case _0x51676c('0x1b05'):{var _0x1dd56d=_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x124b')][_0x51676c('0x1a39')](',');_0x5f25f1['amazonlex']['times']=isNaN(_0x1dd56d[0x0])?_0x1dd56d[0x0]:parseInt(_0x1dd56d[0x0],0xa),_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0xb37')]=_0x1dd56d[_0x51676c('0x19aa')](0x1,_0x1dd56d[_0x51676c('0x2587')])[_0x51676c('0x19c4')](',');}break;case _0x51676c('0x1402'):_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0xb37')]=_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x124b')];break;case _0x51676c('0x282c'):_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x25d6')]=_0x5f25f1[_0x51676c('0x3f5')]['appdata'][_0x51676c('0x1a39')]('=')[0x0],_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x12f4')]=_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x124b')]['split']('=')[0x1];break;case'agi':_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x24b9')]=_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x124b')];break;default:{var _0x2a7dc3=_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x124b')][_0x51676c('0x1a39')](',');_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0xc07')]=_0x51538b()[_0x51676c('0x116b')](_0x2a7dc3[0x0])?_0x2a7dc3[0x0]:isNaN(_0x2a7dc3[0x0])?_0x2a7dc3[0x0]:parseInt(_0x2a7dc3[0x0],0xa),_0x5f25f1['amazonlex'][_0x51676c('0x15f9')]=_0x51538b()['isEmpty'](_0x2a7dc3[0x1])?_0x2a7dc3[0x1]:isNaN(_0x2a7dc3[0x1])?_0x2a7dc3[0x1]:parseInt(_0x2a7dc3[0x1],0xa),_0x5f25f1['amazonlex'][_0x51676c('0xa9a')]=_0x51538b()[_0x51676c('0x116b')](_0x2a7dc3[0x2])?_0x2a7dc3[0x2]:isNaN(_0x2a7dc3[0x2])?_0x2a7dc3[0x2]:parseInt(_0x2a7dc3[0x2],0xa),_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x18ee')]=_0x51538b()[_0x51676c('0x116b')](_0x2a7dc3[0x3])?_0x2a7dc3[0x3]:isNaN(_0x2a7dc3[0x3])?_0x2a7dc3[0x3]:parseInt(_0x2a7dc3[0x3],0xa),_0x5f25f1['amazonlex'][_0x51676c('0x273')]=_0x51538b()[_0x51676c('0x116b')](_0x2a7dc3[0x4])?_0x2a7dc3[0x4]:isNaN(_0x2a7dc3[0x4])?_0x2a7dc3[0x4]:parseInt(_0x2a7dc3[0x4],0xa);}break;}else _0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0xa9a')]=_0x51676c('0x21fd');_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x6c8')]&&_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x6c8')][_0x51676c('0xcf6')]()===_0x51676c('0x19d1')&&_0x5f25f1[_0x51676c('0x3f5')]['appType'][_0x51676c('0xcf6')]()===_0x51676c('0x1e7f')&&(_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x1b8f')]=_0x5f25f1[_0x51676c('0x3f5')]['phone']?_0x5f25f1['amazonlex']['phone'][_0x51676c('0x1a39')]('$')[0x0]:undefined,_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0xeed')]=_0x5f25f1[_0x51676c('0x3f5')][_0x51676c('0x514')]?_0x51676c('0x23d8')+_0x5f25f1[_0x51676c('0x3f5')]['callerID']:undefined);_0x5f25f1[_0x51676c('0x237c')]=_0x3eebf7,_0x5f25f1[_0x51676c('0x2023')]=_0x35dfb3;function _0x3eebf7(){var _0x1502fa=_0x51676c;_0x5f25f1['errors']=[];var _0x11d0a3=[];_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x6c8')]&&_0x5f25f1[_0x1502fa('0x3f5')]['type'][_0x1502fa('0xcf6')]()===_0x1502fa('0x19d1')&&_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0xe6d')]===_0x1502fa('0x8da')&&(_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x1a46')]=_0x20583b[_0x1502fa('0x888')]?(_0x5f25f1[_0x1502fa('0x3f5')]['prefix']||'')+_0x1502fa('0x117e')+_0x20583b[_0x1502fa('0x888')]+'}':(_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x1b8f')]||'')+_0x1502fa('0x1f87'),_0x20583b[_0x1502fa('0x1e0f')]!==_0x1502fa('0x117')?_0x5f25f1[_0x1502fa('0x3f5')]['options'][_0x1502fa('0x1f38')](_0x1502fa('0x266a'))<0x0&&(_0x5f25f1[_0x1502fa('0x3f5')]['options']+='U(xcally-mixmonitor-context)'):_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x1b36')]=_0x5f25f1['amazonlex']['options'][_0x1502fa('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0xe6d')]&&_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0xe6d')]===_0x1502fa('0x113b')){}else switch((_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x9eb')]||_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0xe6d')])[_0x1502fa('0xcf6')]()){case'set':_0x5f25f1['amazonlex'][_0x1502fa('0x124b')]=_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x25d6')]+'='+_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x12f4')];break;case _0x1502fa('0x113b'):break;default:_0x11d0a3[0x0]=_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0xc07')],_0x11d0a3[0x1]=_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x15f9')],_0x11d0a3[0x2]=_0x5f25f1['amazonlex'][_0x1502fa('0xa9a')],_0x11d0a3[0x3]=_0x5f25f1[_0x1502fa('0x3f5')]['botname'],_0x11d0a3[0x4]=_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x273')],_0x5f25f1[_0x1502fa('0x3f5')][_0x1502fa('0x124b')]=_0x11d0a3[_0x1502fa('0x19c4')](',');}_0x35dfb3(_0x5f25f1[_0x1502fa('0x3f5')]);}function _0x35dfb3(_0x4090c4){var _0x20241a=_0x51676c;_0x1da640[_0x20241a('0x1120')](_0x4090c4);}}const _0x4b381d=_0x583e2a;_0x13e97b[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1fcd'),_0x1a8446('0x10f1'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x13e97b(_0x51c1eb,_0xd92f1,_0x5eaa10,_0x5bc480,_0x5d0a0d,_0x4d5ba,_0x47bf9e,_0x5a24c5){var _0x21613d=_0x1a8446,_0x4bbfbf=this;_0x4bbfbf[_0x21613d('0x7fc')]=_0x47bf9e['getCurrentUser'](),_0x4bbfbf[_0x21613d('0x4c6')]=[],_0x4bbfbf[_0x21613d('0x110a')]=_0x21613d('0x4a0')+(_0x5bc480[_0x21613d('0xe6d')]||_0x5bc480[_0x21613d('0x9eb')])[_0x21613d('0x1d08')](),_0x4bbfbf[_0x21613d('0x1b05')]=angular[_0x21613d('0x20a')](_0x5bc480),_0x4bbfbf[_0x21613d('0xada')]=_0x5a24c5,_0x4bbfbf[_0x21613d('0x9f0')]={};if(_0x4bbfbf[_0x21613d('0x1b05')]['appdata'])switch(_0x4bbfbf['autoreply'][_0x21613d('0xe6d')]?_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0xe6d')][_0x21613d('0xcf6')]():_0x4bbfbf['autoreply'][_0x21613d('0x9eb')][_0x21613d('0xcf6')]()){case _0x21613d('0x113b'):break;case'dialogflow':{var _0x47cafc=_0x4bbfbf[_0x21613d('0x1b05')]['appdata'][_0x21613d('0x1a39')](',');_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x24ec')]=_0x47cafc[0x0],_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x1938')]=_0x47cafc[0x1],_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x273')]=_0x47cafc[_0x21613d('0x19aa')](0x2,_0x47cafc[_0x21613d('0x2587')])[_0x21613d('0x19c4')](',');}break;case _0x21613d('0x3f5'):{var _0x44a4b6=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x124b')][_0x21613d('0x1a39')](',');_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0xc07')]=_0x44a4b6[0x0],_0x4bbfbf['autoreply'][_0x21613d('0x15f9')]=_0x44a4b6[0x1],_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0xa9a')]=_0x44a4b6[0x2],_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x18ee')]=_0x44a4b6[0x3],_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x273')]=_0x44a4b6['slice'](0x4,_0x44a4b6[_0x21613d('0x2587')])[_0x21613d('0x19c4')](',');}break;case _0x21613d('0x1b05'):{var _0x19a78f=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x124b')][_0x21613d('0x1a39')](',');_0x4bbfbf['autoreply'][_0x21613d('0x11b6')]=isNaN(_0x19a78f[0x0])?_0x19a78f[0x0]:parseInt(_0x19a78f[0x0],0xa),_0x4bbfbf['autoreply'][_0x21613d('0xb37')]=_0x19a78f['slice'](0x1,_0x19a78f['length'])[_0x21613d('0x19c4')](',');}break;case _0x21613d('0x1402'):_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0xb37')]=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x124b')];break;case _0x21613d('0x282c'):_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x25d6')]=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x124b')][_0x21613d('0x1a39')]('=')[0x0],_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x12f4')]=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x124b')][_0x21613d('0x1a39')]('=')[0x1];break;case _0x21613d('0x2067'):_0x4bbfbf['autoreply'][_0x21613d('0x24b9')]=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x124b')];break;default:{var _0x2ccb42=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x124b')][_0x21613d('0x1a39')](',');_0x4bbfbf['autoreply'][_0x21613d('0x11b6')]=_0x51538b()[_0x21613d('0x116b')](_0x2ccb42[0x0])?_0x2ccb42[0x0]:isNaN(_0x2ccb42[0x0])?_0x2ccb42[0x0]:parseInt(_0x2ccb42[0x0],0xa),_0x4bbfbf['autoreply'][_0x21613d('0xb37')]=_0x51538b()[_0x21613d('0x116b')](_0x2ccb42[0x1])?_0x2ccb42[0x1]:isNaN(_0x2ccb42[0x1])?_0x2ccb42[0x1]:parseInt(_0x2ccb42[0x1],0xa);}break;}else _0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x11b6')]=0x1;_0x4bbfbf['autoreply'][_0x21613d('0x6c8')]&&_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x6c8')]['toLowerCase']()==='outbound'&&_0x4bbfbf['autoreply'][_0x21613d('0xe6d')][_0x21613d('0xcf6')]()===_0x21613d('0x1e7f')&&(_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x1b8f')]=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x1a46')]?_0x4bbfbf['autoreply'][_0x21613d('0x1a46')]['split']('$')[0x0]:undefined,_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0xeed')]=_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x514')]?'CALLERID(all)='+_0x4bbfbf[_0x21613d('0x1b05')][_0x21613d('0x514')]:undefined);_0x4bbfbf[_0x21613d('0x237c')]=_0x42b6de,_0x4bbfbf[_0x21613d('0x2023')]=_0x2e9069;function _0x42b6de(){var _0x51498f=_0x21613d;_0x4bbfbf[_0x51498f('0x4c6')]=[];var _0x266f52=[];_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x6c8')]&&_0x4bbfbf['autoreply']['type']['toLowerCase']()===_0x51498f('0x19d1')&&_0x4bbfbf[_0x51498f('0x1b05')]['appType']===_0x51498f('0x8da')&&(_0x4bbfbf[_0x51498f('0x1b05')]['phone']=_0x5d0a0d[_0x51498f('0x888')]?(_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x1b8f')]||'')+_0x51498f('0x117e')+_0x5d0a0d[_0x51498f('0x888')]+'}':(_0x4bbfbf[_0x51498f('0x1b05')]['prefix']||'')+_0x51498f('0x1f87'),_0x5d0a0d[_0x51498f('0x1e0f')]!=='none'?_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x1b36')]['indexOf'](_0x51498f('0x266a'))<0x0&&(_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x1b36')]+=_0x51498f('0x266a')):_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x1b36')]=_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x1b36')][_0x51498f('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0xe6d')]&&_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0xe6d')]===_0x51498f('0x113b')){}else switch((_0x4bbfbf['autoreply'][_0x51498f('0x9eb')]||_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0xe6d')])[_0x51498f('0xcf6')]()){case _0x51498f('0x282c'):_0x4bbfbf['autoreply']['appdata']=_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x25d6')]+'='+_0x4bbfbf['autoreply'][_0x51498f('0x12f4')];break;case _0x51498f('0x113b'):break;default:_0x266f52[0x0]=_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x11b6')],_0x266f52[0x1]=_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0xb37')],_0x4bbfbf[_0x51498f('0x1b05')][_0x51498f('0x124b')]=_0x266f52['join'](',');}_0x2e9069(_0x4bbfbf['autoreply']);}function _0x2e9069(_0x18ee2c){_0x51c1eb['hide'](_0x18ee2c);}}const _0x331134=_0x13e97b;_0x4521c7[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1fcd'),_0x1a8446('0x10f1'),'api',_0x1a8446('0x1dfd'),'crudPermissions'];function _0x4521c7(_0x5e3e4d,_0x59be2f,_0x5ca3ad,_0x101add,_0x21363b,_0x3a4be8,_0x24ebaa,_0x2fab05){var _0x59a9d8=_0x1a8446,_0x2ebd57=this;_0x2ebd57[_0x59a9d8('0x7fc')]=_0x24ebaa['getCurrentUser'](),_0x2ebd57[_0x59a9d8('0x4c6')]=[],_0x2ebd57['title']='CHAT.EDIT_'+(_0x101add[_0x59a9d8('0xe6d')]||_0x101add[_0x59a9d8('0x9eb')])['toUpperCase'](),_0x2ebd57['close']=angular[_0x59a9d8('0x20a')](_0x101add),_0x2ebd57['crudPermissions']=_0x2fab05,_0x2ebd57[_0x59a9d8('0x9f0')]={};if(_0x2ebd57['close'][_0x59a9d8('0x124b')])switch(_0x2ebd57[_0x59a9d8('0x21d0')]['appType']?_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0xe6d')][_0x59a9d8('0xcf6')]():_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x9eb')]['toLowerCase']()){case _0x59a9d8('0x113b'):break;case'dialogflow':{var _0x5669a5=_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x124b')]['split'](',');_0x2ebd57[_0x59a9d8('0x21d0')]['key']=_0x5669a5[0x0],_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x1938')]=_0x5669a5[0x1],_0x2ebd57['close'][_0x59a9d8('0x273')]=_0x5669a5[_0x59a9d8('0x19aa')](0x2,_0x5669a5[_0x59a9d8('0x2587')])[_0x59a9d8('0x19c4')](',');}break;case _0x59a9d8('0x3f5'):{var _0x42dedd=_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x124b')]['split'](',');_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0xc07')]=_0x42dedd[0x0],_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x15f9')]=_0x42dedd[0x1],_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0xa9a')]=_0x42dedd[0x2],_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x18ee')]=_0x42dedd[0x3],_0x2ebd57['close']['welcomemessage']=_0x42dedd[_0x59a9d8('0x19aa')](0x4,_0x42dedd[_0x59a9d8('0x2587')])[_0x59a9d8('0x19c4')](',');}break;case _0x59a9d8('0x1b05'):{var _0x3f1bfc=_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x124b')][_0x59a9d8('0x1a39')](',');_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x11b6')]=isNaN(_0x3f1bfc[0x0])?_0x3f1bfc[0x0]:parseInt(_0x3f1bfc[0x0],0xa),_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0xb37')]=_0x3f1bfc[_0x59a9d8('0x19aa')](0x1,_0x3f1bfc['length'])[_0x59a9d8('0x19c4')](',');}break;case _0x59a9d8('0x1402'):_0x2ebd57['close']['text']=_0x2ebd57['close'][_0x59a9d8('0x124b')];break;case _0x59a9d8('0x282c'):_0x2ebd57['close']['name']=_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x124b')]['split']('=')[0x0],_0x2ebd57[_0x59a9d8('0x21d0')]['value']=_0x2ebd57[_0x59a9d8('0x21d0')]['appdata'][_0x59a9d8('0x1a39')]('=')[0x1];break;case _0x59a9d8('0x2067'):_0x2ebd57['close'][_0x59a9d8('0x24b9')]=_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x124b')];break;default:{var _0x29b080=_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x124b')][_0x59a9d8('0x1a39')](',');_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x106e')]=_0x51538b()[_0x59a9d8('0x116b')](_0x29b080[0x0])?_0x29b080[0x0]:isNaN(_0x29b080[0x0])?_0x29b080[0x0]:parseInt(_0x29b080[0x0],0xa);}break;}else{}_0x2ebd57['close'][_0x59a9d8('0x6c8')]&&_0x2ebd57['close'][_0x59a9d8('0x6c8')][_0x59a9d8('0xcf6')]()===_0x59a9d8('0x19d1')&&_0x2ebd57['close']['appType']['toLowerCase']()===_0x59a9d8('0x1e7f')&&(_0x2ebd57[_0x59a9d8('0x21d0')]['prefix']=_0x2ebd57[_0x59a9d8('0x21d0')]['phone']?_0x2ebd57[_0x59a9d8('0x21d0')]['phone']['split']('$')[0x0]:undefined,_0x2ebd57[_0x59a9d8('0x21d0')]['callerId']=_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x514')]?_0x59a9d8('0x23d8')+_0x2ebd57[_0x59a9d8('0x21d0')][_0x59a9d8('0x514')]:undefined);_0x2ebd57[_0x59a9d8('0x237c')]=_0x22e101,_0x2ebd57[_0x59a9d8('0x2023')]=_0x36052a;function _0x22e101(){var _0x28ad71=_0x59a9d8;_0x2ebd57[_0x28ad71('0x4c6')]=[];var _0x28bf7d=[];_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x6c8')]&&_0x2ebd57[_0x28ad71('0x21d0')]['type'][_0x28ad71('0xcf6')]()===_0x28ad71('0x19d1')&&_0x2ebd57['close'][_0x28ad71('0xe6d')]==='outboundDial'&&(_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x1a46')]=_0x21363b[_0x28ad71('0x888')]?(_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x1b8f')]||'')+_0x28ad71('0x117e')+_0x21363b['cutdigits']+'}':(_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x1b8f')]||'')+_0x28ad71('0x1f87'),_0x21363b[_0x28ad71('0x1e0f')]!=='none'?_0x2ebd57['close'][_0x28ad71('0x1b36')][_0x28ad71('0x1f38')](_0x28ad71('0x266a'))<0x0&&(_0x2ebd57[_0x28ad71('0x21d0')]['options']+=_0x28ad71('0x266a')):_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x1b36')]=_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x1b36')][_0x28ad71('0x170d')](_0x28ad71('0x266a'),''));if(_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0xe6d')]&&_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0xe6d')]==='custom'){}else switch((_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x9eb')]||_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0xe6d')])[_0x28ad71('0xcf6')]()){case _0x28ad71('0x282c'):_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x124b')]=_0x2ebd57[_0x28ad71('0x21d0')]['name']+'='+_0x2ebd57['close'][_0x28ad71('0x12f4')];break;case _0x28ad71('0x113b'):break;default:_0x28bf7d[0x0]=_0x2ebd57[_0x28ad71('0x21d0')][_0x28ad71('0x106e')],_0x2ebd57['close'][_0x28ad71('0x124b')]=_0x28bf7d[_0x28ad71('0x19c4')](',');}_0x36052a(_0x2ebd57[_0x28ad71('0x21d0')]);}function _0x36052a(_0x4f832c){var _0x204dbc=_0x59a9d8;_0x5e3e4d[_0x204dbc('0x1120')](_0x4f832c);}}const _0xc667cd=_0x4521c7;_0x26818a['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1fcd'),_0x1a8446('0x10f1'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x26818a(_0x23d1d9,_0x38176b,_0x4586ba,_0x427fd3,_0x4db307,_0x35ad28,_0x4c71b0,_0x5da6dc){var _0xb2b936=_0x1a8446,_0x3fcf67=this;_0x3fcf67[_0xb2b936('0x7fc')]=_0x4c71b0['getCurrentUser'](),_0x3fcf67[_0xb2b936('0x4c6')]=[],_0x3fcf67[_0xb2b936('0x110a')]=_0xb2b936('0x4a0')+(_0x427fd3['appType']||_0x427fd3[_0xb2b936('0x9eb')])[_0xb2b936('0x1d08')](),_0x3fcf67[_0xb2b936('0x67c')]=angular[_0xb2b936('0x20a')](_0x427fd3),_0x3fcf67[_0xb2b936('0xada')]=_0x5da6dc,_0x3fcf67[_0xb2b936('0x9f0')]={};if(_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x124b')])switch(_0x3fcf67['dialogflow'][_0xb2b936('0xe6d')]?_0x3fcf67[_0xb2b936('0x67c')]['appType'][_0xb2b936('0xcf6')]():_0x3fcf67['dialogflow'][_0xb2b936('0x9eb')][_0xb2b936('0xcf6')]()){case _0xb2b936('0x113b'):break;case'dialogflow':{var _0x42648f=_0x3fcf67[_0xb2b936('0x67c')]['appdata']['split'](',');_0x3fcf67[_0xb2b936('0x67c')]['key']=_0x42648f[0x0],_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x1938')]=_0x42648f[0x1],_0x3fcf67['dialogflow'][_0xb2b936('0x273')]=_0x42648f[_0xb2b936('0x19aa')](0x2,_0x42648f[_0xb2b936('0x2587')])[_0xb2b936('0x19c4')](',');}break;case _0xb2b936('0x3f5'):{var _0x46f615=_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x124b')][_0xb2b936('0x1a39')](',');_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0xc07')]=_0x46f615[0x0],_0x3fcf67['dialogflow'][_0xb2b936('0x15f9')]=_0x46f615[0x1],_0x3fcf67['dialogflow']['lexregion']=_0x46f615[0x2],_0x3fcf67['dialogflow'][_0xb2b936('0x18ee')]=_0x46f615[0x3],_0x3fcf67[_0xb2b936('0x67c')]['welcomemessage']=_0x46f615['slice'](0x4,_0x46f615[_0xb2b936('0x2587')])[_0xb2b936('0x19c4')](',');}break;case _0xb2b936('0x1b05'):{var _0x12852c=_0x3fcf67['dialogflow'][_0xb2b936('0x124b')][_0xb2b936('0x1a39')](',');_0x3fcf67['dialogflow'][_0xb2b936('0x11b6')]=isNaN(_0x12852c[0x0])?_0x12852c[0x0]:parseInt(_0x12852c[0x0],0xa),_0x3fcf67[_0xb2b936('0x67c')]['text']=_0x12852c[_0xb2b936('0x19aa')](0x1,_0x12852c[_0xb2b936('0x2587')])[_0xb2b936('0x19c4')](',');}break;case _0xb2b936('0x1402'):_0x3fcf67['dialogflow']['text']=_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x124b')];break;case _0xb2b936('0x282c'):_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x25d6')]=_0x3fcf67['dialogflow'][_0xb2b936('0x124b')][_0xb2b936('0x1a39')]('=')[0x0],_0x3fcf67[_0xb2b936('0x67c')]['value']=_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x124b')][_0xb2b936('0x1a39')]('=')[0x1];break;case _0xb2b936('0x2067'):_0x3fcf67['dialogflow'][_0xb2b936('0x24b9')]=_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x124b')];break;default:{var _0x4da155=_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x124b')][_0xb2b936('0x1a39')](',');_0x3fcf67[_0xb2b936('0x67c')]['key']=_0x51538b()[_0xb2b936('0x116b')](_0x4da155[0x0])?_0x4da155[0x0]:isNaN(_0x4da155[0x0])?_0x4da155[0x0]:parseInt(_0x4da155[0x0],0xa),_0x3fcf67['dialogflow'][_0xb2b936('0x1938')]=_0x51538b()[_0xb2b936('0x116b')](_0x4da155[0x1])?_0x4da155[0x1]:isNaN(_0x4da155[0x1])?_0x4da155[0x1]:parseInt(_0x4da155[0x1],0xa),_0x3fcf67['dialogflow'][_0xb2b936('0x273')]=_0x51538b()[_0xb2b936('0x116b')](_0x4da155[0x2])?_0x4da155[0x2]:isNaN(_0x4da155[0x2])?_0x4da155[0x2]:parseInt(_0x4da155[0x2],0xa);}break;}else _0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x1938')]='en';_0x3fcf67['dialogflow'][_0xb2b936('0x6c8')]&&_0x3fcf67[_0xb2b936('0x67c')]['type'][_0xb2b936('0xcf6')]()===_0xb2b936('0x19d1')&&_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0xe6d')]['toLowerCase']()===_0xb2b936('0x1e7f')&&(_0x3fcf67['dialogflow'][_0xb2b936('0x1b8f')]=_0x3fcf67[_0xb2b936('0x67c')]['phone']?_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x1a46')][_0xb2b936('0x1a39')]('$')[0x0]:undefined,_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0xeed')]=_0x3fcf67[_0xb2b936('0x67c')][_0xb2b936('0x514')]?_0xb2b936('0x23d8')+_0x3fcf67['dialogflow'][_0xb2b936('0x514')]:undefined);_0x3fcf67['saveChatWebsiteApp']=_0x4d3c31,_0x3fcf67[_0xb2b936('0x2023')]=_0x2654b7;function _0x4d3c31(){var _0x20df9e=_0xb2b936;_0x3fcf67[_0x20df9e('0x4c6')]=[];var _0x8cc430=[];_0x3fcf67[_0x20df9e('0x67c')]['type']&&_0x3fcf67['dialogflow'][_0x20df9e('0x6c8')][_0x20df9e('0xcf6')]()===_0x20df9e('0x19d1')&&_0x3fcf67['dialogflow'][_0x20df9e('0xe6d')]==='outboundDial'&&(_0x3fcf67['dialogflow'][_0x20df9e('0x1a46')]=_0x4db307[_0x20df9e('0x888')]?(_0x3fcf67[_0x20df9e('0x67c')]['prefix']||'')+'${EXTEN:'+_0x4db307[_0x20df9e('0x888')]+'}':(_0x3fcf67[_0x20df9e('0x67c')][_0x20df9e('0x1b8f')]||'')+_0x20df9e('0x1f87'),_0x4db307[_0x20df9e('0x1e0f')]!==_0x20df9e('0x117')?_0x3fcf67['dialogflow'][_0x20df9e('0x1b36')]['indexOf'](_0x20df9e('0x266a'))<0x0&&(_0x3fcf67['dialogflow'][_0x20df9e('0x1b36')]+=_0x20df9e('0x266a')):_0x3fcf67['dialogflow']['options']=_0x3fcf67[_0x20df9e('0x67c')]['options']['replace'](_0x20df9e('0x266a'),''));if(_0x3fcf67[_0x20df9e('0x67c')]['appType']&&_0x3fcf67[_0x20df9e('0x67c')]['appType']==='custom'){}else switch((_0x3fcf67[_0x20df9e('0x67c')][_0x20df9e('0x9eb')]||_0x3fcf67[_0x20df9e('0x67c')][_0x20df9e('0xe6d')])[_0x20df9e('0xcf6')]()){case _0x20df9e('0x282c'):_0x3fcf67[_0x20df9e('0x67c')]['appdata']=_0x3fcf67['dialogflow']['name']+'='+_0x3fcf67['dialogflow'][_0x20df9e('0x12f4')];break;case'custom':break;default:_0x8cc430[0x0]=_0x3fcf67[_0x20df9e('0x67c')][_0x20df9e('0x24ec')],_0x8cc430[0x1]=_0x3fcf67['dialogflow'][_0x20df9e('0x1938')],_0x8cc430[0x2]=_0x3fcf67['dialogflow'][_0x20df9e('0x273')],_0x3fcf67[_0x20df9e('0x67c')]['appdata']=_0x8cc430['join'](',');}_0x2654b7(_0x3fcf67['dialogflow']);}function _0x2654b7(_0x1538ff){var _0xcafddf=_0xb2b936;_0x23d1d9[_0xcafddf('0x1120')](_0x1538ff);}}const _0x4c1782=_0x26818a;_0x2dfa2e['$inject']=['$mdDialog','$q','toasty','chatWebsiteApp',_0x1a8446('0x10f1'),_0x1a8446('0x157'),'Auth','crudPermissions'];function _0x2dfa2e(_0x56afbd,_0x397c11,_0x2fe6b0,_0xbcad95,_0x2031d0,_0x7ed967,_0x49128d,_0x582339){var _0x2754ae=_0x1a8446,_0x596c02=this;_0x596c02[_0x2754ae('0x7fc')]=_0x49128d[_0x2754ae('0xacc')](),_0x596c02[_0x2754ae('0x4c6')]=[],_0x596c02['title']=_0x2754ae('0x4a0')+(_0xbcad95[_0x2754ae('0xe6d')]||_0xbcad95['app'])[_0x2754ae('0x1d08')](),_0x596c02[_0x2754ae('0x3cb')]=angular[_0x2754ae('0x20a')](_0xbcad95),_0x596c02[_0x2754ae('0xada')]=_0x582339,_0x596c02['hasModulePermissions']={};if(_0x596c02['gotoif'][_0x2754ae('0x124b')])switch(_0x596c02['gotoif'][_0x2754ae('0xe6d')]?_0x596c02[_0x2754ae('0x3cb')]['appType']['toLowerCase']():_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x9eb')]['toLowerCase']()){case _0x2754ae('0x113b'):break;case _0x2754ae('0x67c'):{var _0x267eef=_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x124b')][_0x2754ae('0x1a39')](',');_0x596c02[_0x2754ae('0x3cb')]['key']=_0x267eef[0x0],_0x596c02['gotoif']['language']=_0x267eef[0x1],_0x596c02['gotoif']['welcomemessage']=_0x267eef[_0x2754ae('0x19aa')](0x2,_0x267eef[_0x2754ae('0x2587')])['join'](',');}break;case'amazonlex':{var _0x4f4259=_0x596c02['gotoif']['appdata']['split'](',');_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0xc07')]=_0x4f4259[0x0],_0x596c02[_0x2754ae('0x3cb')]['secretaccesskey']=_0x4f4259[0x1],_0x596c02[_0x2754ae('0x3cb')]['lexregion']=_0x4f4259[0x2],_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x18ee')]=_0x4f4259[0x3],_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x273')]=_0x4f4259[_0x2754ae('0x19aa')](0x4,_0x4f4259[_0x2754ae('0x2587')])['join'](',');}break;case'autoreply':{var _0x157c99=_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x124b')]['split'](',');_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x11b6')]=isNaN(_0x157c99[0x0])?_0x157c99[0x0]:parseInt(_0x157c99[0x0],0xa),_0x596c02['gotoif'][_0x2754ae('0xb37')]=_0x157c99['slice'](0x1,_0x157c99[_0x2754ae('0x2587')])[_0x2754ae('0x19c4')](',');}break;case'message':_0x596c02['gotoif']['text']=_0x596c02['gotoif'][_0x2754ae('0x124b')];break;case _0x2754ae('0x282c'):_0x596c02[_0x2754ae('0x3cb')]['name']=_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x124b')][_0x2754ae('0x1a39')]('=')[0x0],_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x12f4')]=_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x124b')][_0x2754ae('0x1a39')]('=')[0x1];break;case _0x2754ae('0x2067'):_0x596c02[_0x2754ae('0x3cb')]['project']=_0x596c02[_0x2754ae('0x3cb')]['appdata'];break;default:{var _0x371ea7=_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x124b')][_0x2754ae('0x1a39')](',');_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0xe77')]=_0x51538b()[_0x2754ae('0x116b')](_0x371ea7[0x0])?_0x371ea7[0x0]:isNaN(_0x371ea7[0x0])?_0x371ea7[0x0]:parseInt(_0x371ea7[0x0],0xa),_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x13ba')]=_0x51538b()['isEmpty'](_0x371ea7[0x1])?_0x371ea7[0x1]:isNaN(_0x371ea7[0x1])?_0x371ea7[0x1]:parseInt(_0x371ea7[0x1],0xa),_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x222b')]=_0x51538b()[_0x2754ae('0x116b')](_0x371ea7[0x2])?_0x371ea7[0x2]:isNaN(_0x371ea7[0x2])?_0x371ea7[0x2]:parseInt(_0x371ea7[0x2],0xa);}break;}else{}_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x6c8')]&&_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x6c8')][_0x2754ae('0xcf6')]()==='outbound'&&_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0xe6d')][_0x2754ae('0xcf6')]()==='outbounddial'&&(_0x596c02['gotoif']['prefix']=_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x1a46')]?_0x596c02[_0x2754ae('0x3cb')]['phone'][_0x2754ae('0x1a39')]('$')[0x0]:undefined,_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0xeed')]=_0x596c02[_0x2754ae('0x3cb')]['callerID']?_0x2754ae('0x23d8')+_0x596c02[_0x2754ae('0x3cb')][_0x2754ae('0x514')]:undefined);_0x596c02[_0x2754ae('0x237c')]=_0x4f6a2d,_0x596c02[_0x2754ae('0x2023')]=_0x235e8c;function _0x4f6a2d(){var _0x28a581=_0x2754ae;_0x596c02[_0x28a581('0x4c6')]=[];var _0x29d534=[];_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x6c8')]&&_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x6c8')][_0x28a581('0xcf6')]()===_0x28a581('0x19d1')&&_0x596c02[_0x28a581('0x3cb')][_0x28a581('0xe6d')]==='outboundDial'&&(_0x596c02['gotoif'][_0x28a581('0x1a46')]=_0x2031d0['cutdigits']?(_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x1b8f')]||'')+_0x28a581('0x117e')+_0x2031d0[_0x28a581('0x888')]+'}':(_0x596c02[_0x28a581('0x3cb')]['prefix']||'')+'${EXTEN}',_0x2031d0[_0x28a581('0x1e0f')]!==_0x28a581('0x117')?_0x596c02['gotoif'][_0x28a581('0x1b36')][_0x28a581('0x1f38')](_0x28a581('0x266a'))<0x0&&(_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x1b36')]+=_0x28a581('0x266a')):_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x1b36')]=_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x1b36')]['replace'](_0x28a581('0x266a'),''));if(_0x596c02[_0x28a581('0x3cb')][_0x28a581('0xe6d')]&&_0x596c02[_0x28a581('0x3cb')][_0x28a581('0xe6d')]===_0x28a581('0x113b')){}else switch((_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x9eb')]||_0x596c02[_0x28a581('0x3cb')]['appType'])[_0x28a581('0xcf6')]()){case'set':_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x124b')]=_0x596c02['gotoif'][_0x28a581('0x25d6')]+'='+_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x12f4')];break;case _0x28a581('0x113b'):break;default:_0x29d534[0x0]=_0x596c02[_0x28a581('0x3cb')][_0x28a581('0xe77')],_0x29d534[0x1]=_0x596c02[_0x28a581('0x3cb')][_0x28a581('0x13ba')],_0x29d534[0x2]=_0x596c02['gotoif'][_0x28a581('0x222b')],_0x596c02['gotoif'][_0x28a581('0x124b')]=_0x29d534[_0x28a581('0x19c4')](',');}_0x235e8c(_0x596c02[_0x28a581('0x3cb')]);}function _0x235e8c(_0x1ad357){var _0xb732dd=_0x2754ae;_0x56afbd[_0xb732dd('0x1120')](_0x1ad357);}}const _0x200a9c=_0x2dfa2e;_0x2e0420[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1fcd'),_0x1a8446('0x10f1'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x2e0420(_0xbf542b,_0x3c3a7e,_0x10a70b,_0x45aaf2,_0x3ee5e6,_0x14a43e,_0x4d074a,_0x144730){var _0x1b8f8=_0x1a8446,_0x1e2fb9=this;_0x1e2fb9[_0x1b8f8('0x7fc')]=_0x4d074a[_0x1b8f8('0xacc')](),_0x1e2fb9[_0x1b8f8('0x4c6')]=[],_0x1e2fb9[_0x1b8f8('0x110a')]=_0x1b8f8('0x4a0')+(_0x45aaf2[_0x1b8f8('0xe6d')]||_0x45aaf2[_0x1b8f8('0x9eb')])[_0x1b8f8('0x1d08')](),_0x1e2fb9[_0x1b8f8('0x1141')]=angular[_0x1b8f8('0x20a')](_0x45aaf2),_0x1e2fb9[_0x1b8f8('0xada')]=_0x144730,_0x1e2fb9[_0x1b8f8('0x9f0')]={};if(_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x124b')])switch(_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0xe6d')]?_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0xe6d')]['toLowerCase']():_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x9eb')]['toLowerCase']()){case _0x1b8f8('0x113b'):break;case _0x1b8f8('0x67c'):{var _0x4a95cf=_0x1e2fb9['gotop'][_0x1b8f8('0x124b')]['split'](',');_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x24ec')]=_0x4a95cf[0x0],_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x1938')]=_0x4a95cf[0x1],_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x273')]=_0x4a95cf[_0x1b8f8('0x19aa')](0x2,_0x4a95cf[_0x1b8f8('0x2587')])['join'](',');}break;case _0x1b8f8('0x3f5'):{var _0x1c1b8d=_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x124b')][_0x1b8f8('0x1a39')](',');_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0xc07')]=_0x1c1b8d[0x0],_0x1e2fb9[_0x1b8f8('0x1141')]['secretaccesskey']=_0x1c1b8d[0x1],_0x1e2fb9['gotop'][_0x1b8f8('0xa9a')]=_0x1c1b8d[0x2],_0x1e2fb9['gotop'][_0x1b8f8('0x18ee')]=_0x1c1b8d[0x3],_0x1e2fb9[_0x1b8f8('0x1141')]['welcomemessage']=_0x1c1b8d[_0x1b8f8('0x19aa')](0x4,_0x1c1b8d['length'])[_0x1b8f8('0x19c4')](',');}break;case _0x1b8f8('0x1b05'):{var _0x56eec6=_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x124b')]['split'](',');_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x11b6')]=isNaN(_0x56eec6[0x0])?_0x56eec6[0x0]:parseInt(_0x56eec6[0x0],0xa),_0x1e2fb9['gotop']['text']=_0x56eec6[_0x1b8f8('0x19aa')](0x1,_0x56eec6[_0x1b8f8('0x2587')])[_0x1b8f8('0x19c4')](',');}break;case _0x1b8f8('0x1402'):_0x1e2fb9['gotop'][_0x1b8f8('0xb37')]=_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x124b')];break;case _0x1b8f8('0x282c'):_0x1e2fb9['gotop'][_0x1b8f8('0x25d6')]=_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x124b')]['split']('=')[0x0],_0x1e2fb9[_0x1b8f8('0x1141')]['value']=_0x1e2fb9['gotop'][_0x1b8f8('0x124b')][_0x1b8f8('0x1a39')]('=')[0x1];break;case _0x1b8f8('0x2067'):_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x24b9')]=_0x1e2fb9['gotop'][_0x1b8f8('0x124b')];break;default:{var _0x884238=_0x1e2fb9[_0x1b8f8('0x1141')]['appdata'][_0x1b8f8('0x1a39')](',');_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x13f2')]=_0x51538b()['isEmpty'](_0x884238[0x0])?_0x884238[0x0]:isNaN(_0x884238[0x0])?_0x884238[0x0]:parseInt(_0x884238[0x0],0xa);}break;}else{}_0x1e2fb9['gotop']['type']&&_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x6c8')][_0x1b8f8('0xcf6')]()===_0x1b8f8('0x19d1')&&_0x1e2fb9['gotop'][_0x1b8f8('0xe6d')][_0x1b8f8('0xcf6')]()===_0x1b8f8('0x1e7f')&&(_0x1e2fb9[_0x1b8f8('0x1141')]['prefix']=_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x1a46')]?_0x1e2fb9[_0x1b8f8('0x1141')]['phone'][_0x1b8f8('0x1a39')]('$')[0x0]:undefined,_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0xeed')]=_0x1e2fb9[_0x1b8f8('0x1141')]['callerID']?_0x1b8f8('0x23d8')+_0x1e2fb9[_0x1b8f8('0x1141')][_0x1b8f8('0x514')]:undefined);_0x1e2fb9[_0x1b8f8('0x237c')]=_0x5e006f,_0x1e2fb9[_0x1b8f8('0x2023')]=_0x3d3feb;function _0x5e006f(){var _0x4a137a=_0x1b8f8;_0x1e2fb9[_0x4a137a('0x4c6')]=[];var _0x4d397d=[];_0x1e2fb9[_0x4a137a('0x1141')]['type']&&_0x1e2fb9[_0x4a137a('0x1141')]['type'][_0x4a137a('0xcf6')]()===_0x4a137a('0x19d1')&&_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0xe6d')]===_0x4a137a('0x8da')&&(_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0x1a46')]=_0x3ee5e6[_0x4a137a('0x888')]?(_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0x1b8f')]||'')+_0x4a137a('0x117e')+_0x3ee5e6['cutdigits']+'}':(_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0x1b8f')]||'')+_0x4a137a('0x1f87'),_0x3ee5e6[_0x4a137a('0x1e0f')]!==_0x4a137a('0x117')?_0x1e2fb9[_0x4a137a('0x1141')]['options'][_0x4a137a('0x1f38')](_0x4a137a('0x266a'))<0x0&&(_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0x1b36')]=_0x1e2fb9['gotop'][_0x4a137a('0x1b36')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0xe6d')]&&_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0xe6d')]===_0x4a137a('0x113b')){}else switch((_0x1e2fb9[_0x4a137a('0x1141')]['app']||_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0xe6d')])[_0x4a137a('0xcf6')]()){case _0x4a137a('0x282c'):_0x1e2fb9['gotop'][_0x4a137a('0x124b')]=_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0x25d6')]+'='+_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0x12f4')];break;case _0x4a137a('0x113b'):break;default:_0x4d397d[0x0]=_0x1e2fb9[_0x4a137a('0x1141')][_0x4a137a('0x13f2')],_0x1e2fb9['gotop'][_0x4a137a('0x124b')]=_0x4d397d[_0x4a137a('0x19c4')](',');}_0x3d3feb(_0x1e2fb9[_0x4a137a('0x1141')]);}function _0x3d3feb(_0x5761f7){_0xbf542b['hide'](_0x5761f7);}}const _0x302264=_0x2e0420;_0x3b6dfd[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x197b'),_0x1a8446('0x1c21'),_0x1a8446('0x2568'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x3b6dfd(_0x22d303,_0x8c0082,_0x162111,_0xdd4bf7,_0x84cd9d,_0x3b5011,_0x16f5ac,_0x5dd4e2,_0x3aa96d,_0x1dca1a){var _0xc85834=_0x1a8446,_0x56c9a1=this;_0x56c9a1['currentUser']=_0x3aa96d[_0xc85834('0xacc')](),_0x56c9a1[_0xc85834('0x4c6')]=[],_0x56c9a1[_0xc85834('0x110a')]='TOOLS.EDIT_INTERVAL',_0x56c9a1[_0xc85834('0x1c21')]=angular['copy'](_0x84cd9d),_0x56c9a1[_0xc85834('0x2568')]=_0x3b5011,_0x56c9a1[_0xc85834('0x740')]=![],_0x56c9a1['types']=['always',_0xc85834('0x113b'),_0xc85834('0x2334')],_0x56c9a1['crudPermissions']=_0x1dca1a,_0x56c9a1[_0xc85834('0xbe6')]=_0xdd4bf7['getDaysOfWeek'](),_0x56c9a1[_0xc85834('0x21a9')]=_0xdd4bf7[_0xc85834('0x23fa')](),_0x56c9a1['monthName']=_0xdd4bf7[_0xc85834('0x2225')](),_0x56c9a1[_0xc85834('0x1469')]=_0xdd4bf7[_0xc85834('0x74a')]();if(!_0x56c9a1['interval'])_0x56c9a1[_0xc85834('0x1c21')]={'interval':_0xc85834('0x1ac6')},_0x56c9a1[_0xc85834('0x6c8')]=_0xc85834('0x1b43'),_0x56c9a1['title']='TOOLS.NEW_INTERVAL',_0x56c9a1[_0xc85834('0x740')]=!![];else{if(_0x56c9a1[_0xc85834('0x1c21')][_0xc85834('0x1c21')]!==_0xc85834('0x1ac6')){_0x56c9a1['type']=_0xc85834('0x113b');var _0x12b1bb=_0x56c9a1[_0xc85834('0x1c21')][_0xc85834('0x1c21')]['split'](','),_0x345fbb=_0x12b1bb[0x0],_0x56ca0c=_0x12b1bb[0x1],_0x7dd08c=_0x12b1bb[0x2],_0x2dc30e=_0x12b1bb[0x3];if(_0x345fbb!=='*'){var _0x20b6c4=_0x345fbb[_0xc85834('0x1a39')]('-')[0x0],_0x3bfafd=_0x345fbb[_0xc85834('0x1a39')]('-')[0x1],_0x4638aa;_0x4638aa=new Date(),_0x4638aa[_0xc85834('0x807')](Number(_0x20b6c4['split'](':')[0x0])),_0x4638aa[_0xc85834('0xb43')](Number(_0x20b6c4['split'](':')[0x1])),_0x56c9a1[_0xc85834('0x1ee7')]=_0x4638aa,_0x4638aa=new Date(),_0x4638aa[_0xc85834('0x807')](Number(_0x3bfafd['split'](':')[0x0])),_0x4638aa[_0xc85834('0xb43')](Number(_0x3bfafd[_0xc85834('0x1a39')](':')[0x1])),_0x56c9a1[_0xc85834('0x815')]=_0x4638aa;}_0x56ca0c!=='*'&&(_0x56c9a1[_0xc85834('0x1fa3')]=_0x56ca0c[_0xc85834('0x1a39')]('-')[0x0],_0x56c9a1[_0xc85834('0xc93')]=_0x56ca0c['split']('-')[0x1]),_0x7dd08c!=='*'&&(_0x56c9a1[_0xc85834('0x19d0')]=_0x7dd08c['split']('-')[0x0],_0x56c9a1[_0xc85834('0x2c3')]=_0x7dd08c[_0xc85834('0x1a39')]('-')[0x1]),_0x2dc30e!=='*'&&(_0x56c9a1[_0xc85834('0xcf9')]=_0x2dc30e[_0xc85834('0x1a39')]('-')[0x0],_0x56c9a1[_0xc85834('0x125f')]=_0x2dc30e[_0xc85834('0x1a39')]('-')[0x1]);}else _0x56c9a1[_0xc85834('0x6c8')]=_0xc85834('0x1b43');}_0x22d303[_0xc85834('0x25cf')]['id']&&!_0x56c9a1[_0xc85834('0x1c21')][_0xc85834('0xe45')]&&(_0x56c9a1[_0xc85834('0x1c21')][_0xc85834('0x1f8c')]=_0x22d303[_0xc85834('0x25cf')]['id']);_0x56c9a1[_0xc85834('0x1c21')][_0xc85834('0x1f8c')]&&_0x56c9a1[_0xc85834('0x1c21')][_0xc85834('0xe45')]&&(_0x56c9a1[_0xc85834('0x6c8')]=_0xc85834('0x2334'));_0x56c9a1[_0xc85834('0x152a')]=_0x49506a,_0x56c9a1[_0xc85834('0x1570')]=_0x1e02bf,_0x56c9a1[_0xc85834('0x2023')]=_0x2734f0;_0x56c9a1[_0xc85834('0x1c21')]['application']&&(_0x3aa96d[_0xc85834('0x26e8')](_0xc85834('0x178b'))?_0x5dd4e2[_0xc85834('0x1c21')][_0xc85834('0x2122')]({'fields':'id,name,interval,IntervalId','IntervalId':_0xc85834('0x1ed9'),'nolimit':!![]})[_0xc85834('0x1dc2')][_0xc85834('0xaa5')](function(_0x130df0){_0x56c9a1['intervals']=_0x130df0['rows']||[];})['catch'](function(_0x2848e3){var _0x2209cd=_0xc85834;_0x16f5ac[_0x2209cd('0x187f')]({'title':_0x2848e3[_0x2209cd('0x2fa')]?_0x2209cd('0x16c2')+_0x2848e3[_0x2209cd('0x2fa')]+_0x2209cd('0x169e')+_0x2848e3[_0x2209cd('0x24df')]:_0x2209cd('0x3b0'),'msg':_0x2848e3[_0x2209cd('0x10fd')]?JSON[_0x2209cd('0xa48')](_0x2848e3['data']):_0x2848e3[_0x2209cd('0x684')]()});}):_0x5dd4e2[_0xc85834('0x1c21')][_0xc85834('0x2122')]({'fields':_0xc85834('0x1a33'),'IntervalId':'null','nolimit':!![]})[_0xc85834('0x1dc2')]['then'](function(_0x35b173){var _0x540f70=_0xc85834;_0x56c9a1[_0x540f70('0x2568')]=_0x35b173[_0x540f70('0x580')]||[];})[_0xc85834('0xaa5')](function(){var _0x43010e=_0xc85834;return _0x5dd4e2[_0x43010e('0x1a50')][_0x43010e('0x2122')]({'userProfileId':_0x56c9a1[_0x43010e('0x7fc')]['userProfileId'],'sectionId':0x3ec})[_0x43010e('0x1dc2')];})[_0xc85834('0xaa5')](function(_0x268dca){var _0x111b98=_0xc85834,_0x14869c=_0x268dca&&_0x268dca[_0x111b98('0x580')]?_0x268dca[_0x111b98('0x580')][0x0]:null;if(!_0x14869c)_0x56c9a1[_0x111b98('0x2568')]=[];else{if(!_0x14869c[_0x111b98('0x26cc')])return _0x5dd4e2['userProfileResource'][_0x111b98('0x2122')]({'sectionId':_0x14869c['id']})[_0x111b98('0x1dc2')][_0x111b98('0xaa5')](function(_0xdad04b){var _0x4c6125=_0x111b98,_0x421ada=_0xdad04b&&_0xdad04b['rows']?_0xdad04b[_0x4c6125('0x580')]:[],_0x3942e9=[],_0x5651cd=null;_0x56c9a1[_0x4c6125('0x1c21')]&&(_0x5651cd=_0x51538b()[_0x4c6125('0xe9e')](_0x56c9a1[_0x4c6125('0x2568')],{'name':_0x56c9a1[_0x4c6125('0x1c21')][_0x4c6125('0x1f8c')]})),_0x5651cd&&!_0x51538b()[_0x4c6125('0x2c2')](_0x421ada,[_0x4c6125('0xbcd'),_0x5651cd['id']])&&_0x56c9a1[_0x4c6125('0x2568')][_0x4c6125('0x15b5')](function(_0x1f003a){var _0x3cc797=_0x4c6125;_0x1f003a['id']===_0x5651cd['id']&&(_0x1f003a['canSelect']=![],_0x3942e9[_0x3cc797('0x1599')](_0x1f003a));}),_0x56c9a1['intervals']=_0x3942e9;});}})[_0xc85834('0x253d')](function(_0x51b2eb){var _0x23295c=_0xc85834;_0x16f5ac[_0x23295c('0x187f')]({'title':_0x51b2eb['status']?_0x23295c('0x16c2')+_0x51b2eb['status']+_0x23295c('0x169e')+_0x51b2eb[_0x23295c('0x24df')]:_0x23295c('0x3b0'),'msg':_0x51b2eb[_0x23295c('0x10fd')]?JSON['stringify'](_0x51b2eb[_0x23295c('0x10fd')]):_0x51b2eb[_0x23295c('0x684')]()});}));function _0xfc79a1(){var _0x39ce10=_0xc85834;switch(_0x56c9a1[_0x39ce10('0x6c8')]){case _0x39ce10('0x1b43'):case _0x39ce10('0x2334'):return _0x39ce10('0x1ac6');case _0x39ce10('0x113b'):{var _0x10fe14=[];if(_0x56c9a1[_0x39ce10('0x1ee7')]!=='*'&&_0x56c9a1[_0x39ce10('0x1ee7')]&&_0x56c9a1[_0x39ce10('0x815')]){var _0x5d1f82=(_0x56c9a1[_0x39ce10('0x1ee7')]['getHours']()<0xa?'0':'')+_0x56c9a1[_0x39ce10('0x1ee7')]['getHours']()+':'+((_0x56c9a1[_0x39ce10('0x1ee7')][_0x39ce10('0x13a6')]()<0xa?'0':'')+_0x56c9a1[_0x39ce10('0x1ee7')][_0x39ce10('0x13a6')]()),_0xdf1e56=(_0x56c9a1[_0x39ce10('0x815')]['getHours']()<0xa?'0':'')+_0x56c9a1[_0x39ce10('0x815')][_0x39ce10('0x6a2')]()+':'+((_0x56c9a1[_0x39ce10('0x815')][_0x39ce10('0x13a6')]()<0xa?'0':'')+_0x56c9a1[_0x39ce10('0x815')][_0x39ce10('0x13a6')]());_0x10fe14['push'](_0x5d1f82+'-'+_0xdf1e56);}else _0x10fe14['push']('*');return _0x56c9a1[_0x39ce10('0x1fa3')]?_0x56c9a1[_0x39ce10('0xc93')]?_0x10fe14[_0x39ce10('0x1599')](_0x56c9a1[_0x39ce10('0x1fa3')]+'-'+_0x56c9a1[_0x39ce10('0xc93')]):_0x10fe14[_0x39ce10('0x1599')](_0x56c9a1[_0x39ce10('0x1fa3')]):_0x10fe14['push']('*'),_0x56c9a1[_0x39ce10('0x19d0')]?_0x56c9a1[_0x39ce10('0x2c3')]?_0x10fe14[_0x39ce10('0x1599')](_0x56c9a1[_0x39ce10('0x19d0')]+'-'+_0x56c9a1[_0x39ce10('0x2c3')]):_0x10fe14[_0x39ce10('0x1599')](_0x56c9a1[_0x39ce10('0x19d0')]):_0x10fe14['push']('*'),_0x56c9a1[_0x39ce10('0xcf9')]?_0x56c9a1['monthTo']?_0x10fe14['push'](_0x56c9a1[_0x39ce10('0xcf9')]+'-'+_0x56c9a1['monthTo']):_0x10fe14[_0x39ce10('0x1599')](_0x56c9a1[_0x39ce10('0xcf9')]):_0x10fe14[_0x39ce10('0x1599')]('*'),_0x10fe14[_0x39ce10('0x19c4')]();}}}function _0x49506a(){var _0x44dfae=_0xc85834;_0x56c9a1[_0x44dfae('0x4c6')]=[],_0x56c9a1[_0x44dfae('0x1c21')][_0x44dfae('0x1c21')]=_0xfc79a1(),_0x5dd4e2[_0x44dfae('0x1c21')][_0x44dfae('0x242b')](_0x56c9a1['interval'])[_0x44dfae('0x1dc2')][_0x44dfae('0xaa5')](function(_0x32baa2){var _0x1b8fd0=_0x44dfae;_0x56c9a1[_0x1b8fd0('0x2568')][_0x1b8fd0('0x1599')](_0x32baa2),_0x16f5ac[_0x1b8fd0('0xe10')]({'title':'Interval\x20properly\x20created','msg':_0x56c9a1[_0x1b8fd0('0x1c21')][_0x1b8fd0('0x25d6')]?_0x56c9a1[_0x1b8fd0('0x1c21')][_0x1b8fd0('0x25d6')]+_0x1b8fd0('0xdca'):''}),_0x2734f0();})[_0x44dfae('0x253d')](function(_0x2ec947){var _0x20fd92=_0x44dfae;console[_0x20fd92('0x187f')](_0x2ec947),_0x56c9a1[_0x20fd92('0x4c6')]=_0x2ec947[_0x20fd92('0x10fd')]['errors']||[{'message':_0x2ec947[_0x20fd92('0x684')](),'type':_0x20fd92('0xbd7')}];});}function _0x1e02bf(){var _0x4af271=_0xc85834;_0x56c9a1[_0x4af271('0x4c6')]=[],_0x56c9a1['interval']['interval']=_0xfc79a1(),_0x56c9a1[_0x4af271('0x1c21')]['application']?(_0x56c9a1['type']!==_0x4af271('0x2334')&&(_0x56c9a1[_0x4af271('0x1c21')][_0x4af271('0x1f8c')]=null),_0x2734f0(_0x56c9a1[_0x4af271('0x1c21')])):_0x5dd4e2[_0x4af271('0x1c21')]['update']({'id':_0x56c9a1[_0x4af271('0x1c21')]['id']},_0x56c9a1[_0x4af271('0x1c21')])['$promise'][_0x4af271('0xaa5')](function(_0x104b51){var _0x432a9a=_0x4af271,_0x543ab9=_0x51538b()[_0x432a9a('0xe9e')](_0x56c9a1['intervals'],{'id':_0x104b51['id']});_0x543ab9&&_0x51538b()['merge'](_0x543ab9,_0x104b51),_0x16f5ac['success']({'title':'Interval\x20properly\x20saved!','msg':_0x432a9a('0x257d')}),_0x2734f0();})[_0x4af271('0x253d')](function(_0x15c30e){var _0x529acf=_0x4af271;console[_0x529acf('0x187f')](_0x15c30e),_0x56c9a1[_0x529acf('0x4c6')]=_0x15c30e[_0x529acf('0x10fd')][_0x529acf('0x4c6')]||[{'message':_0x15c30e[_0x529acf('0x684')](),'type':_0x529acf('0x83d')}];});}function _0x2734f0(_0x3fc7a3){var _0x372f1f=_0xc85834;_0x8c0082[_0x372f1f('0x1120')](_0x3fc7a3);}}const _0x1cff96=_0x3b6dfd;_0x584fc8[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1fcd'),_0x1a8446('0x10f1'),'api','Auth','crudPermissions'];function _0x584fc8(_0x330ddf,_0x408582,_0x368a97,_0x55303f,_0x2c0398,_0x3dcecf,_0x29a859,_0x20cc82){var _0x1002a3=_0x1a8446,_0x625f63=this;_0x625f63[_0x1002a3('0x7fc')]=_0x29a859[_0x1002a3('0xacc')](),_0x625f63[_0x1002a3('0x4c6')]=[],_0x625f63['title']=_0x1002a3('0x4a0')+(_0x55303f[_0x1002a3('0xe6d')]||_0x55303f['app'])[_0x1002a3('0x1d08')](),_0x625f63[_0x1002a3('0x27ca')]=angular[_0x1002a3('0x20a')](_0x55303f),_0x625f63['crudPermissions']=_0x20cc82,_0x625f63['hasModulePermissions']={};if(_0x625f63['noop']['appdata'])switch(_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0xe6d')]?_0x625f63['noop'][_0x1002a3('0xe6d')]['toLowerCase']():_0x625f63['noop']['app'][_0x1002a3('0xcf6')]()){case _0x1002a3('0x113b'):break;case'dialogflow':{var _0x44cb65=_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x124b')][_0x1002a3('0x1a39')](',');_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x24ec')]=_0x44cb65[0x0],_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x1938')]=_0x44cb65[0x1],_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x273')]=_0x44cb65['slice'](0x2,_0x44cb65['length'])[_0x1002a3('0x19c4')](',');}break;case _0x1002a3('0x3f5'):{var _0xdb60bc=_0x625f63['noop'][_0x1002a3('0x124b')][_0x1002a3('0x1a39')](',');_0x625f63[_0x1002a3('0x27ca')]['accesskeyid']=_0xdb60bc[0x0],_0x625f63[_0x1002a3('0x27ca')]['secretaccesskey']=_0xdb60bc[0x1],_0x625f63[_0x1002a3('0x27ca')]['lexregion']=_0xdb60bc[0x2],_0x625f63['noop']['botname']=_0xdb60bc[0x3],_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x273')]=_0xdb60bc[_0x1002a3('0x19aa')](0x4,_0xdb60bc[_0x1002a3('0x2587')])[_0x1002a3('0x19c4')](',');}break;case _0x1002a3('0x1b05'):{var _0x46fd38=_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x124b')][_0x1002a3('0x1a39')](',');_0x625f63[_0x1002a3('0x27ca')]['times']=isNaN(_0x46fd38[0x0])?_0x46fd38[0x0]:parseInt(_0x46fd38[0x0],0xa),_0x625f63['noop'][_0x1002a3('0xb37')]=_0x46fd38[_0x1002a3('0x19aa')](0x1,_0x46fd38[_0x1002a3('0x2587')])[_0x1002a3('0x19c4')](',');}break;case _0x1002a3('0x1402'):_0x625f63[_0x1002a3('0x27ca')]['text']=_0x625f63[_0x1002a3('0x27ca')]['appdata'];break;case'set':_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x25d6')]=_0x625f63[_0x1002a3('0x27ca')]['appdata'][_0x1002a3('0x1a39')]('=')[0x0],_0x625f63['noop'][_0x1002a3('0x12f4')]=_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x124b')][_0x1002a3('0x1a39')]('=')[0x1];break;case _0x1002a3('0x2067'):_0x625f63[_0x1002a3('0x27ca')]['project']=_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x124b')];break;default:{var _0xe55c5=_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x124b')][_0x1002a3('0x1a39')](',');_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x12f4')]=_0x51538b()[_0x1002a3('0x116b')](_0xe55c5[0x0])?_0xe55c5[0x0]:isNaN(_0xe55c5[0x0])?_0xe55c5[0x0]:parseInt(_0xe55c5[0x0],0xa);}break;}else{}_0x625f63[_0x1002a3('0x27ca')]['type']&&_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x6c8')][_0x1002a3('0xcf6')]()===_0x1002a3('0x19d1')&&_0x625f63['noop']['appType'][_0x1002a3('0xcf6')]()===_0x1002a3('0x1e7f')&&(_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x1b8f')]=_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x1a46')]?_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x1a46')]['split']('$')[0x0]:undefined,_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0xeed')]=_0x625f63[_0x1002a3('0x27ca')][_0x1002a3('0x514')]?_0x1002a3('0x23d8')+_0x625f63[_0x1002a3('0x27ca')]['callerID']:undefined);_0x625f63['saveChatWebsiteApp']=_0x37c4f8,_0x625f63[_0x1002a3('0x2023')]=_0x4a0c34;function _0x37c4f8(){var _0x4907da=_0x1002a3;_0x625f63[_0x4907da('0x4c6')]=[];var _0x310e88=[];_0x625f63[_0x4907da('0x27ca')]['type']&&_0x625f63[_0x4907da('0x27ca')][_0x4907da('0x6c8')]['toLowerCase']()===_0x4907da('0x19d1')&&_0x625f63['noop']['appType']==='outboundDial'&&(_0x625f63['noop'][_0x4907da('0x1a46')]=_0x2c0398['cutdigits']?(_0x625f63[_0x4907da('0x27ca')]['prefix']||'')+_0x4907da('0x117e')+_0x2c0398[_0x4907da('0x888')]+'}':(_0x625f63[_0x4907da('0x27ca')][_0x4907da('0x1b8f')]||'')+_0x4907da('0x1f87'),_0x2c0398[_0x4907da('0x1e0f')]!=='none'?_0x625f63[_0x4907da('0x27ca')]['options'][_0x4907da('0x1f38')](_0x4907da('0x266a'))<0x0&&(_0x625f63['noop'][_0x4907da('0x1b36')]+=_0x4907da('0x266a')):_0x625f63[_0x4907da('0x27ca')][_0x4907da('0x1b36')]=_0x625f63[_0x4907da('0x27ca')][_0x4907da('0x1b36')][_0x4907da('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x625f63[_0x4907da('0x27ca')][_0x4907da('0xe6d')]&&_0x625f63[_0x4907da('0x27ca')]['appType']===_0x4907da('0x113b')){}else switch((_0x625f63['noop'][_0x4907da('0x9eb')]||_0x625f63[_0x4907da('0x27ca')][_0x4907da('0xe6d')])[_0x4907da('0xcf6')]()){case'set':_0x625f63[_0x4907da('0x27ca')][_0x4907da('0x124b')]=_0x625f63[_0x4907da('0x27ca')][_0x4907da('0x25d6')]+'='+_0x625f63[_0x4907da('0x27ca')]['value'];break;case _0x4907da('0x113b'):break;default:_0x310e88[0x0]=_0x625f63[_0x4907da('0x27ca')]['value'],_0x625f63[_0x4907da('0x27ca')][_0x4907da('0x124b')]=_0x310e88[_0x4907da('0x19c4')](',');}_0x4a0c34(_0x625f63[_0x4907da('0x27ca')]);}function _0x4a0c34(_0x4512e7){var _0xfbc6f=_0x1002a3;_0x330ddf[_0xfbc6f('0x1120')](_0x4512e7);}}const _0x4b5e91=_0x584fc8;_0x37c883[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x1fcd'),'chatWebsite',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x37c883(_0x587ee7,_0x1f9b76,_0x37891c,_0x1f2313,_0xaacb84,_0x34708e,_0x54fc2a,_0x1ed4f7){var _0x2a0368=_0x1a8446,_0x4ca339=this;_0x4ca339[_0x2a0368('0x7fc')]=_0x54fc2a[_0x2a0368('0xacc')](),_0x4ca339[_0x2a0368('0x4c6')]=[],_0x4ca339['title']='CHAT.EDIT_'+(_0x1f2313['appType']||_0x1f2313[_0x2a0368('0x9eb')])['toUpperCase'](),_0x4ca339['queue']=angular[_0x2a0368('0x20a')](_0x1f2313),_0x4ca339['crudPermissions']=_0x1ed4f7,_0x4ca339['hasModulePermissions']={};if(_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x124b')])switch(_0x4ca339['queue']['appType']?_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0xe6d')][_0x2a0368('0xcf6')]():_0x4ca339['queue'][_0x2a0368('0x9eb')]['toLowerCase']()){case'custom':break;case _0x2a0368('0x67c'):{var _0x53d773=_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x124b')][_0x2a0368('0x1a39')](',');_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x24ec')]=_0x53d773[0x0],_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x1938')]=_0x53d773[0x1],_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x273')]=_0x53d773[_0x2a0368('0x19aa')](0x2,_0x53d773[_0x2a0368('0x2587')])[_0x2a0368('0x19c4')](',');}break;case _0x2a0368('0x3f5'):{var _0x4a13da=_0x4ca339['queue'][_0x2a0368('0x124b')][_0x2a0368('0x1a39')](',');_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0xc07')]=_0x4a13da[0x0],_0x4ca339['queue'][_0x2a0368('0x15f9')]=_0x4a13da[0x1],_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0xa9a')]=_0x4a13da[0x2],_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x18ee')]=_0x4a13da[0x3],_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x273')]=_0x4a13da[_0x2a0368('0x19aa')](0x4,_0x4a13da[_0x2a0368('0x2587')])[_0x2a0368('0x19c4')](',');}break;case _0x2a0368('0x1b05'):{var _0x15b5df=_0x4ca339[_0x2a0368('0xe26')]['appdata'][_0x2a0368('0x1a39')](',');_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x11b6')]=isNaN(_0x15b5df[0x0])?_0x15b5df[0x0]:parseInt(_0x15b5df[0x0],0xa),_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0xb37')]=_0x15b5df[_0x2a0368('0x19aa')](0x1,_0x15b5df[_0x2a0368('0x2587')])[_0x2a0368('0x19c4')](',');}break;case _0x2a0368('0x1402'):_0x4ca339['queue']['text']=_0x4ca339['queue'][_0x2a0368('0x124b')];break;case _0x2a0368('0x282c'):_0x4ca339['queue']['name']=_0x4ca339[_0x2a0368('0xe26')]['appdata']['split']('=')[0x0],_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x12f4')]=_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x124b')]['split']('=')[0x1];break;case _0x2a0368('0x2067'):_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x24b9')]=_0x4ca339['queue'][_0x2a0368('0x124b')];break;default:{var _0x46b6fb=_0x4ca339[_0x2a0368('0xe26')]['appdata'][_0x2a0368('0x1a39')](',');_0x4ca339['queue'][_0x2a0368('0xe26')]=_0x51538b()[_0x2a0368('0x116b')](_0x46b6fb[0x0])?_0x46b6fb[0x0]:isNaN(_0x46b6fb[0x0])?_0x46b6fb[0x0]:parseInt(_0x46b6fb[0x0],0xa),_0x4ca339['queue'][_0x2a0368('0x23c0')]=_0x51538b()[_0x2a0368('0x116b')](_0x46b6fb[0x1])?_0x46b6fb[0x1]:isNaN(_0x46b6fb[0x1])?_0x46b6fb[0x1]:parseInt(_0x46b6fb[0x1],0xa);}break;}else _0x4ca339['queue'][_0x2a0368('0xe26')]=0x12c,_0x4ca339['queue'][_0x2a0368('0x23c0')]=0x12c;_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x6c8')]&&_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x6c8')][_0x2a0368('0xcf6')]()===_0x2a0368('0x19d1')&&_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0xe6d')][_0x2a0368('0xcf6')]()===_0x2a0368('0x1e7f')&&(_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x1b8f')]=_0x4ca339[_0x2a0368('0xe26')]['phone']?_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x1a46')][_0x2a0368('0x1a39')]('$')[0x0]:undefined,_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0xeed')]=_0x4ca339[_0x2a0368('0xe26')][_0x2a0368('0x514')]?_0x2a0368('0x23d8')+_0x4ca339['queue'][_0x2a0368('0x514')]:undefined);_0x4ca339[_0x2a0368('0x237c')]=_0xf8ec49,_0x4ca339['closeDialog']=_0xc517b5,_0x54fc2a[_0x2a0368('0x26e8')](_0x2a0368('0x178b'))?_0x34708e[_0x2a0368('0x2837')][_0x2a0368('0x2122')]({'fields':_0x2a0368('0x21e2'),'sort':'name','nolimit':'true'})[_0x2a0368('0x1dc2')][_0x2a0368('0xaa5')](function(_0x14dd52){var _0x4293c9=_0x2a0368;_0x4ca339[_0x4293c9('0x4d7')]=_0x14dd52['rows']||[];})[_0x2a0368('0x253d')](function(_0xa20c06){var _0x26face=_0x2a0368;_0x37891c[_0x26face('0x187f')]({'title':_0xa20c06[_0x26face('0x2fa')]?_0x26face('0x16c2')+_0xa20c06[_0x26face('0x2fa')]+_0x26face('0x169e')+_0xa20c06[_0x26face('0x24df')]:_0x26face('0x773'),'msg':_0xa20c06[_0x26face('0x10fd')]?JSON[_0x26face('0xa48')](_0xa20c06[_0x26face('0x10fd')]):_0xa20c06['toString']()});}):_0x34708e[_0x2a0368('0x2837')]['get']({'fields':'id,name,type','sort':_0x2a0368('0x25d6'),'nolimit':_0x2a0368('0x1c5c')})['$promise'][_0x2a0368('0xaa5')](function(_0xecf6fd){var _0x2ff552=_0x2a0368;_0x4ca339[_0x2ff552('0x4d7')]=_0xecf6fd[_0x2ff552('0x580')]||[];})['then'](function(){var _0x3c3ea2=_0x2a0368;return _0x34708e['userProfileSection'][_0x3c3ea2('0x2122')]({'userProfileId':_0x4ca339[_0x3c3ea2('0x7fc')]['userProfileId'],'sectionId':0x1f5})[_0x3c3ea2('0x1dc2')];})[_0x2a0368('0xaa5')](function(_0x2134ad){var _0x2564c1=_0x2a0368,_0x1db10b=_0x2134ad&&_0x2134ad[_0x2564c1('0x580')]?_0x2134ad[_0x2564c1('0x580')][0x0]:null;if(!_0x1db10b){var _0x20c35c=[],_0x3ee4bf=null;_0x4ca339[_0x2564c1('0xe26')]&&(_0x3ee4bf=_0x51538b()[_0x2564c1('0xe9e')](_0x4ca339['queues'],{'name':_0x4ca339['queue']['queue']}));for(var _0x4b08c5=0x0;_0x4b08c5<_0x4ca339['queues']['length'];_0x4b08c5++){_0x3ee4bf&&_0x4ca339[_0x2564c1('0x4d7')][_0x4b08c5]['id']===_0x3ee4bf['id']&&(_0x4ca339[_0x2564c1('0x4d7')][_0x4b08c5][_0x2564c1('0x12eb')]=![],_0x20c35c[_0x2564c1('0x1599')](_0x4ca339[_0x2564c1('0x4d7')][_0x4b08c5]));}_0x4ca339[_0x2564c1('0x4d7')]=_0x20c35c;}else{if(!_0x1db10b[_0x2564c1('0x26cc')])return _0x34708e[_0x2564c1('0x249a')]['get']({'sectionId':_0x1db10b['id']})['$promise'][_0x2564c1('0xaa5')](function(_0x1cbcda){var _0x935abc=_0x2564c1,_0x2e5d40=_0x51538b()[_0x935abc('0x1246')](_0x1cbcda[_0x935abc('0x580')],function(_0x138135){var _0x580600=_0x935abc;return _0x51538b()[_0x580600('0xe9e')](_0x4ca339[_0x580600('0x4d7')],{'id':_0x138135[_0x580600('0xbcd')]});}),_0xfe505b=null;_0x4ca339[_0x935abc('0xe26')]&&(_0xfe505b=_0x51538b()[_0x935abc('0xe9e')](_0x4ca339[_0x935abc('0x4d7')],{'name':_0x4ca339[_0x935abc('0xe26')]['queue']}));if(_0xfe505b&&!_0x51538b()[_0x935abc('0x2c2')](_0x2e5d40,['id',_0xfe505b['id']])){var _0x19f67d=_0x51538b()[_0x935abc('0xe9e')](_0x4ca339[_0x935abc('0x4d7')],{'id':_0xfe505b['id']});_0x19f67d['canSelect']=![],_0x2e5d40[_0x935abc('0x1599')](_0x19f67d);}_0x4ca339[_0x935abc('0x4d7')]=_0x2e5d40;});}})[_0x2a0368('0x253d')](function(_0x374e94){var _0x19bd55=_0x2a0368;_0x37891c['error']({'title':_0x374e94[_0x19bd55('0x2fa')]?_0x19bd55('0x16c2')+_0x374e94['status']+_0x19bd55('0x169e')+_0x374e94['statusText']:_0x19bd55('0x278e'),'msg':_0x374e94[_0x19bd55('0x10fd')]?JSON[_0x19bd55('0xa48')](_0x374e94[_0x19bd55('0x10fd')]):_0x374e94['toString']()});});function _0xf8ec49(){var _0x43d81e=_0x2a0368;_0x4ca339[_0x43d81e('0x4c6')]=[];var _0x25f8fb=[];_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0x6c8')]&&_0x4ca339['queue']['type'][_0x43d81e('0xcf6')]()===_0x43d81e('0x19d1')&&_0x4ca339[_0x43d81e('0xe26')]['appType']===_0x43d81e('0x8da')&&(_0x4ca339[_0x43d81e('0xe26')]['phone']=_0xaacb84[_0x43d81e('0x888')]?(_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0x1b8f')]||'')+'${EXTEN:'+_0xaacb84[_0x43d81e('0x888')]+'}':(_0x4ca339['queue']['prefix']||'')+_0x43d81e('0x1f87'),_0xaacb84['recordingFormat']!==_0x43d81e('0x117')?_0x4ca339['queue'][_0x43d81e('0x1b36')]['indexOf'](_0x43d81e('0x266a'))<0x0&&(_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0x1b36')]+=_0x43d81e('0x266a')):_0x4ca339[_0x43d81e('0xe26')]['options']=_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0x1b36')]['replace']('U(xcally-mixmonitor-context)',''));var _0x2171ae=_0x51538b()[_0x43d81e('0xe9e')](_0x4ca339[_0x43d81e('0x4d7')],{'name':_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0xe26')]});_0x2171ae&&(_0x4ca339[_0x43d81e('0xe26')][_0x51538b()['capitalize'](_0x43d81e('0x20f9'))+_0x43d81e('0x2097')]=_0x2171ae['id']);if(_0x4ca339['queue'][_0x43d81e('0xe6d')]&&_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0xe6d')]===_0x43d81e('0x113b')){}else switch((_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0x9eb')]||_0x4ca339['queue'][_0x43d81e('0xe6d')])['toLowerCase']()){case _0x43d81e('0x282c'):_0x4ca339['queue'][_0x43d81e('0x124b')]=_0x4ca339['queue'][_0x43d81e('0x25d6')]+'='+_0x4ca339['queue']['value'];break;case'custom':break;default:_0x25f8fb[0x0]=_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0xe26')],_0x25f8fb[0x1]=_0x4ca339['queue']['timeout'],_0x4ca339[_0x43d81e('0xe26')][_0x43d81e('0x124b')]=_0x25f8fb[_0x43d81e('0x19c4')](',');}_0xc517b5(_0x4ca339[_0x43d81e('0xe26')]);}function _0xc517b5(_0xb2c36){var _0x11ff61=_0x2a0368;_0x587ee7[_0x11ff61('0x1120')](_0xb2c36);}}const _0x1a6bb4=_0x37c883;_0x25f2d7[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1fcd'),'chatWebsite',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x25f2d7(_0x90dc96,_0x548ff7,_0x66a167,_0x3c7d80,_0x49fdba,_0x2f8024,_0x4d879e,_0x56e4dd){var _0x132fff=_0x1a8446,_0x939bbf=this;_0x939bbf[_0x132fff('0x7fc')]=_0x4d879e[_0x132fff('0xacc')](),_0x939bbf[_0x132fff('0x4c6')]=[],_0x939bbf[_0x132fff('0x110a')]=_0x132fff('0x4a0')+(_0x3c7d80['appType']||_0x3c7d80[_0x132fff('0x9eb')])[_0x132fff('0x1d08')](),_0x939bbf[_0x132fff('0x5da')]=angular[_0x132fff('0x20a')](_0x3c7d80),_0x939bbf['crudPermissions']=_0x56e4dd,_0x939bbf['hasModulePermissions']={};if(_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x124b')])switch(_0x939bbf['system'][_0x132fff('0xe6d')]?_0x939bbf[_0x132fff('0x5da')][_0x132fff('0xe6d')][_0x132fff('0xcf6')]():_0x939bbf[_0x132fff('0x5da')]['app']['toLowerCase']()){case _0x132fff('0x113b'):break;case _0x132fff('0x67c'):{var _0x47ecbc=_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x124b')]['split'](',');_0x939bbf['system'][_0x132fff('0x24ec')]=_0x47ecbc[0x0],_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x1938')]=_0x47ecbc[0x1],_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x273')]=_0x47ecbc[_0x132fff('0x19aa')](0x2,_0x47ecbc[_0x132fff('0x2587')])['join'](',');}break;case _0x132fff('0x3f5'):{var _0x527611=_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x124b')]['split'](',');_0x939bbf[_0x132fff('0x5da')]['accesskeyid']=_0x527611[0x0],_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x15f9')]=_0x527611[0x1],_0x939bbf['system'][_0x132fff('0xa9a')]=_0x527611[0x2],_0x939bbf['system']['botname']=_0x527611[0x3],_0x939bbf[_0x132fff('0x5da')]['welcomemessage']=_0x527611[_0x132fff('0x19aa')](0x4,_0x527611[_0x132fff('0x2587')])[_0x132fff('0x19c4')](',');}break;case _0x132fff('0x1b05'):{var _0x145a8c=_0x939bbf['system'][_0x132fff('0x124b')][_0x132fff('0x1a39')](',');_0x939bbf['system'][_0x132fff('0x11b6')]=isNaN(_0x145a8c[0x0])?_0x145a8c[0x0]:parseInt(_0x145a8c[0x0],0xa),_0x939bbf[_0x132fff('0x5da')][_0x132fff('0xb37')]=_0x145a8c[_0x132fff('0x19aa')](0x1,_0x145a8c['length'])[_0x132fff('0x19c4')](',');}break;case _0x132fff('0x1402'):_0x939bbf[_0x132fff('0x5da')][_0x132fff('0xb37')]=_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x124b')];break;case _0x132fff('0x282c'):_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x25d6')]=_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x124b')][_0x132fff('0x1a39')]('=')[0x0],_0x939bbf[_0x132fff('0x5da')]['value']=_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x124b')][_0x132fff('0x1a39')]('=')[0x1];break;case _0x132fff('0x2067'):_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x24b9')]=_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x124b')];break;default:{var _0x277c60=_0x939bbf['system'][_0x132fff('0x124b')]['split'](',');_0x939bbf[_0x132fff('0x5da')]['command']=_0x51538b()[_0x132fff('0x116b')](_0x277c60[0x0])?_0x277c60[0x0]:isNaN(_0x277c60[0x0])?_0x277c60[0x0]:parseInt(_0x277c60[0x0],0xa),_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x14e7')]=_0x51538b()[_0x132fff('0x116b')](_0x277c60[0x1])?_0x277c60[0x1]:isNaN(_0x277c60[0x1])?_0x277c60[0x1]:parseInt(_0x277c60[0x1],0xa);}break;}else _0x939bbf[_0x132fff('0x5da')]['variable']='';_0x939bbf['system'][_0x132fff('0x6c8')]&&_0x939bbf[_0x132fff('0x5da')]['type']['toLowerCase']()==='outbound'&&_0x939bbf[_0x132fff('0x5da')][_0x132fff('0xe6d')]['toLowerCase']()===_0x132fff('0x1e7f')&&(_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x1b8f')]=_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x1a46')]?_0x939bbf[_0x132fff('0x5da')]['phone'][_0x132fff('0x1a39')]('$')[0x0]:undefined,_0x939bbf[_0x132fff('0x5da')]['callerId']=_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x514')]?_0x132fff('0x23d8')+_0x939bbf[_0x132fff('0x5da')][_0x132fff('0x514')]:undefined);_0x939bbf[_0x132fff('0x237c')]=_0x36591e,_0x939bbf[_0x132fff('0x2023')]=_0x4072ba,_0x4d879e['hasRole']('admin')?_0x2f8024[_0x132fff('0x14e7')][_0x132fff('0x2122')]({'fields':_0x132fff('0x17fe'),'sort':_0x132fff('0x25d6'),'nolimit':'true'})['$promise']['then'](function(_0x48d299){var _0x1afd75=_0x132fff;_0x939bbf[_0x1afd75('0x147e')]=_0x48d299[_0x1afd75('0x580')]||[];})['catch'](function(_0x47b0d2){var _0x59ff0d=_0x132fff;_0x66a167[_0x59ff0d('0x187f')]({'title':_0x47b0d2[_0x59ff0d('0x2fa')]?_0x59ff0d('0x16c2')+_0x47b0d2[_0x59ff0d('0x2fa')]+'\x20-\x20'+_0x47b0d2[_0x59ff0d('0x24df')]:'SYSTEM:GET_VARIABLES','msg':_0x47b0d2['data']?JSON[_0x59ff0d('0xa48')](_0x47b0d2[_0x59ff0d('0x10fd')]):_0x47b0d2[_0x59ff0d('0x684')]()});}):_0x2f8024[_0x132fff('0x14e7')][_0x132fff('0x2122')]({'fields':_0x132fff('0x17fe'),'sort':_0x132fff('0x25d6'),'nolimit':_0x132fff('0x1c5c')})['$promise'][_0x132fff('0xaa5')](function(_0x36db93){var _0x3102cd=_0x132fff;_0x939bbf[_0x3102cd('0x147e')]=_0x36db93[_0x3102cd('0x580')]||[];})['then'](function(){var _0xe52c99=_0x132fff;return _0x2f8024['userProfileSection']['get']({'userProfileId':_0x939bbf[_0xe52c99('0x7fc')][_0xe52c99('0x2168')],'sectionId':0x3f4})[_0xe52c99('0x1dc2')];})[_0x132fff('0xaa5')](function(_0x5cf83c){var _0x5d51a8=_0x132fff,_0x325f78=_0x5cf83c&&_0x5cf83c['rows']?_0x5cf83c[_0x5d51a8('0x580')][0x0]:null;if(!_0x325f78){var _0x228557=[],_0x3a3f5e=null;_0x939bbf[_0x5d51a8('0x5da')]&&(_0x3a3f5e=_0x51538b()['find'](_0x939bbf[_0x5d51a8('0x147e')],{'name':_0x939bbf[_0x5d51a8('0x5da')][_0x5d51a8('0x14e7')]}));for(var _0x2bbf87=0x0;_0x2bbf87<_0x939bbf[_0x5d51a8('0x147e')][_0x5d51a8('0x2587')];_0x2bbf87++){_0x3a3f5e&&_0x939bbf['variables'][_0x2bbf87]['id']===_0x3a3f5e['id']&&(_0x939bbf['variables'][_0x2bbf87][_0x5d51a8('0x12eb')]=![],_0x228557['push'](_0x939bbf[_0x5d51a8('0x147e')][_0x2bbf87]));}_0x939bbf['variables']=_0x228557;}else{if(!_0x325f78['autoAssociation'])return _0x2f8024[_0x5d51a8('0x249a')][_0x5d51a8('0x2122')]({'sectionId':_0x325f78['id']})[_0x5d51a8('0x1dc2')][_0x5d51a8('0xaa5')](function(_0x290bba){var _0x5dc61a=_0x5d51a8,_0x547e39=_0x51538b()['map'](_0x290bba[_0x5dc61a('0x580')],function(_0xda269){var _0x40159e=_0x5dc61a;return _0x51538b()[_0x40159e('0xe9e')](_0x939bbf[_0x40159e('0x147e')],{'id':_0xda269[_0x40159e('0xbcd')]});}),_0x3f449b=null;_0x939bbf[_0x5dc61a('0x5da')]&&(_0x3f449b=_0x51538b()['find'](_0x939bbf['variables'],{'name':_0x939bbf[_0x5dc61a('0x5da')]['variable']}));if(_0x3f449b&&!_0x51538b()[_0x5dc61a('0x2c2')](_0x547e39,['id',_0x3f449b['id']])){var _0x1bd222=_0x51538b()[_0x5dc61a('0xe9e')](_0x939bbf[_0x5dc61a('0x147e')],{'id':_0x3f449b['id']});_0x1bd222['canSelect']=![],_0x547e39['push'](_0x1bd222);}_0x939bbf[_0x5dc61a('0x147e')]=_0x547e39;});}})[_0x132fff('0x253d')](function(_0x1d5f3e){var _0x221c7c=_0x132fff;_0x66a167[_0x221c7c('0x187f')]({'title':_0x1d5f3e[_0x221c7c('0x2fa')]?_0x221c7c('0x16c2')+_0x1d5f3e[_0x221c7c('0x2fa')]+_0x221c7c('0x169e')+_0x1d5f3e[_0x221c7c('0x24df')]:_0x221c7c('0xb4d'),'msg':_0x1d5f3e[_0x221c7c('0x10fd')]?JSON[_0x221c7c('0xa48')](_0x1d5f3e[_0x221c7c('0x10fd')]):_0x1d5f3e['toString']()});});function _0x36591e(){var _0x43fd42=_0x132fff;_0x939bbf['errors']=[];var _0x563ba9=[];_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x6c8')]&&_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x6c8')][_0x43fd42('0xcf6')]()===_0x43fd42('0x19d1')&&_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0xe6d')]===_0x43fd42('0x8da')&&(_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x1a46')]=_0x49fdba[_0x43fd42('0x888')]?(_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x1b8f')]||'')+_0x43fd42('0x117e')+_0x49fdba[_0x43fd42('0x888')]+'}':(_0x939bbf[_0x43fd42('0x5da')]['prefix']||'')+_0x43fd42('0x1f87'),_0x49fdba[_0x43fd42('0x1e0f')]!=='none'?_0x939bbf[_0x43fd42('0x5da')]['options'][_0x43fd42('0x1f38')](_0x43fd42('0x266a'))<0x0&&(_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x1b36')]+=_0x43fd42('0x266a')):_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x1b36')]=_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x1b36')][_0x43fd42('0x170d')](_0x43fd42('0x266a'),''));if(_0x939bbf[_0x43fd42('0x5da')]['appType']&&_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0xe6d')]==='custom'){}else switch((_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x9eb')]||_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0xe6d')])[_0x43fd42('0xcf6')]()){case _0x43fd42('0x282c'):_0x939bbf['system'][_0x43fd42('0x124b')]=_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x25d6')]+'='+_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x12f4')];break;case'custom':break;default:_0x563ba9[0x0]=_0x939bbf['system'][_0x43fd42('0xd7b')],_0x563ba9[0x1]=_0x939bbf[_0x43fd42('0x5da')][_0x43fd42('0x14e7')],_0x939bbf[_0x43fd42('0x5da')]['appdata']=_0x563ba9[_0x43fd42('0x19c4')](',');}_0x4072ba(_0x939bbf['system']);}function _0x4072ba(_0x2be293){var _0x2c8321=_0x132fff;_0x90dc96[_0x2c8321('0x1120')](_0x2be293);}}const _0x420f2e=_0x25f2d7;_0x1f8eaf['$inject']=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1fcd'),_0x1a8446('0x10f1'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x1f8eaf(_0x5add78,_0x52cb47,_0x1cd1e4,_0x46860e,_0xd90873,_0x22c799,_0x19a058,_0x4d5552){var _0x5f1762=_0x1a8446,_0x2a877b=this;_0x2a877b['currentUser']=_0x19a058['getCurrentUser'](),_0x2a877b['errors']=[],_0x2a877b[_0x5f1762('0x110a')]=_0x5f1762('0x4a0')+(_0x46860e['appType']||_0x46860e[_0x5f1762('0x9eb')])[_0x5f1762('0x1d08')](),_0x2a877b[_0x5f1762('0x38f')]=angular[_0x5f1762('0x20a')](_0x46860e),_0x2a877b[_0x5f1762('0xada')]=_0x4d5552,_0x2a877b[_0x5f1762('0x9f0')]={};if(_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x124b')])switch(_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0xe6d')]?_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0xe6d')][_0x5f1762('0xcf6')]():_0x2a877b['tag'][_0x5f1762('0x9eb')][_0x5f1762('0xcf6')]()){case _0x5f1762('0x113b'):break;case _0x5f1762('0x67c'):{var _0x3cdc57=_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x124b')][_0x5f1762('0x1a39')](',');_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x24ec')]=_0x3cdc57[0x0],_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x1938')]=_0x3cdc57[0x1],_0x2a877b[_0x5f1762('0x38f')]['welcomemessage']=_0x3cdc57[_0x5f1762('0x19aa')](0x2,_0x3cdc57[_0x5f1762('0x2587')])[_0x5f1762('0x19c4')](',');}break;case'amazonlex':{var _0xe4b189=_0x2a877b[_0x5f1762('0x38f')]['appdata'][_0x5f1762('0x1a39')](',');_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0xc07')]=_0xe4b189[0x0],_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x15f9')]=_0xe4b189[0x1],_0x2a877b['tag']['lexregion']=_0xe4b189[0x2],_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x18ee')]=_0xe4b189[0x3],_0x2a877b['tag'][_0x5f1762('0x273')]=_0xe4b189[_0x5f1762('0x19aa')](0x4,_0xe4b189[_0x5f1762('0x2587')])[_0x5f1762('0x19c4')](',');}break;case _0x5f1762('0x1b05'):{var _0x5b38ff=_0x2a877b[_0x5f1762('0x38f')]['appdata'][_0x5f1762('0x1a39')](',');_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x11b6')]=isNaN(_0x5b38ff[0x0])?_0x5b38ff[0x0]:parseInt(_0x5b38ff[0x0],0xa),_0x2a877b[_0x5f1762('0x38f')]['text']=_0x5b38ff[_0x5f1762('0x19aa')](0x1,_0x5b38ff[_0x5f1762('0x2587')])['join'](',');}break;case _0x5f1762('0x1402'):_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0xb37')]=_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x124b')];break;case _0x5f1762('0x282c'):_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x25d6')]=_0x2a877b['tag'][_0x5f1762('0x124b')][_0x5f1762('0x1a39')]('=')[0x0],_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x12f4')]=_0x2a877b[_0x5f1762('0x38f')]['appdata'][_0x5f1762('0x1a39')]('=')[0x1];break;case'agi':_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x24b9')]=_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x124b')];break;default:{var _0x1412d8=_0x2a877b['tag'][_0x5f1762('0x124b')][_0x5f1762('0x1a39')](',');_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x38f')]=_0x51538b()[_0x5f1762('0x116b')](_0x1412d8[0x0])?_0x1412d8[0x0]:isNaN(_0x1412d8[0x0])?_0x1412d8[0x0]:parseInt(_0x1412d8[0x0],0xa);}break;}else{}_0x2a877b['tag'][_0x5f1762('0x6c8')]&&_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x6c8')][_0x5f1762('0xcf6')]()===_0x5f1762('0x19d1')&&_0x2a877b['tag'][_0x5f1762('0xe6d')]['toLowerCase']()==='outbounddial'&&(_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x1b8f')]=_0x2a877b[_0x5f1762('0x38f')]['phone']?_0x2a877b[_0x5f1762('0x38f')]['phone'][_0x5f1762('0x1a39')]('$')[0x0]:undefined,_0x2a877b[_0x5f1762('0x38f')]['callerId']=_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x514')]?_0x5f1762('0x23d8')+_0x2a877b[_0x5f1762('0x38f')][_0x5f1762('0x514')]:undefined);_0x2a877b[_0x5f1762('0x237c')]=_0x539ab8,_0x2a877b[_0x5f1762('0x2023')]=_0x2bdfbc,_0x19a058['hasRole'](_0x5f1762('0x178b'))?_0x22c799['tag'][_0x5f1762('0x2122')]({'fields':_0x5f1762('0x17fe'),'sort':_0x5f1762('0x25d6'),'nolimit':_0x5f1762('0x1c5c')})[_0x5f1762('0x1dc2')][_0x5f1762('0xaa5')](function(_0x385aa1){var _0x35605d=_0x5f1762;_0x2a877b[_0x35605d('0x523')]=_0x385aa1[_0x35605d('0x580')]||[];})[_0x5f1762('0x253d')](function(_0x14f89c){var _0x461789=_0x5f1762;_0x1cd1e4[_0x461789('0x187f')]({'title':_0x14f89c[_0x461789('0x2fa')]?_0x461789('0x16c2')+_0x14f89c[_0x461789('0x2fa')]+_0x461789('0x169e')+_0x14f89c[_0x461789('0x24df')]:'SYSTEM:GET_TAGS','msg':_0x14f89c['data']?JSON['stringify'](_0x14f89c['data']):_0x14f89c[_0x461789('0x684')]()});}):_0x22c799[_0x5f1762('0x38f')][_0x5f1762('0x2122')]({'fields':_0x5f1762('0x17fe'),'sort':_0x5f1762('0x25d6'),'nolimit':'true'})['$promise'][_0x5f1762('0xaa5')](function(_0x486821){_0x2a877b['tags']=_0x486821['rows']||[];})[_0x5f1762('0xaa5')](function(){var _0x3d165f=_0x5f1762;return _0x22c799[_0x3d165f('0x1a50')][_0x3d165f('0x2122')]({'userProfileId':_0x2a877b[_0x3d165f('0x7fc')][_0x3d165f('0x2168')],'sectionId':0x3f0})[_0x3d165f('0x1dc2')];})[_0x5f1762('0xaa5')](function(_0x1a783f){var _0x631db4=_0x5f1762,_0x50d4fc=_0x1a783f&&_0x1a783f[_0x631db4('0x580')]?_0x1a783f['rows'][0x0]:null;if(!_0x50d4fc){var _0x5d8263=[],_0x337b0b=null;_0x2a877b[_0x631db4('0x38f')]&&(_0x337b0b=_0x51538b()['find'](_0x2a877b[_0x631db4('0x523')],{'name':_0x2a877b['tag'][_0x631db4('0x38f')]}));for(var _0x52c7d4=0x0;_0x52c7d4<_0x2a877b['tags'][_0x631db4('0x2587')];_0x52c7d4++){_0x337b0b&&_0x2a877b[_0x631db4('0x523')][_0x52c7d4]['id']===_0x337b0b['id']&&(_0x2a877b[_0x631db4('0x523')][_0x52c7d4][_0x631db4('0x12eb')]=![],_0x5d8263['push'](_0x2a877b[_0x631db4('0x523')][_0x52c7d4]));}_0x2a877b['tags']=_0x5d8263;}else{if(!_0x50d4fc[_0x631db4('0x26cc')])return _0x22c799[_0x631db4('0x249a')][_0x631db4('0x2122')]({'sectionId':_0x50d4fc['id']})['$promise'][_0x631db4('0xaa5')](function(_0x1ae8b6){var _0x551ece=_0x631db4,_0x600f14=_0x51538b()[_0x551ece('0x1246')](_0x1ae8b6[_0x551ece('0x580')],function(_0x3821e4){var _0x328fb1=_0x551ece;return _0x51538b()['find'](_0x2a877b[_0x328fb1('0x523')],{'id':_0x3821e4[_0x328fb1('0xbcd')]});}),_0x32d6b0=null;_0x2a877b[_0x551ece('0x38f')]&&(_0x32d6b0=_0x51538b()[_0x551ece('0xe9e')](_0x2a877b[_0x551ece('0x523')],{'name':_0x2a877b[_0x551ece('0x38f')][_0x551ece('0x38f')]}));if(_0x32d6b0&&!_0x51538b()[_0x551ece('0x2c2')](_0x600f14,['id',_0x32d6b0['id']])){var _0x5626f5=_0x51538b()[_0x551ece('0xe9e')](_0x2a877b['tags'],{'id':_0x32d6b0['id']});_0x5626f5[_0x551ece('0x12eb')]=![],_0x600f14['push'](_0x5626f5);}_0x2a877b['tags']=_0x600f14;});}})[_0x5f1762('0x253d')](function(_0x11a941){var _0x5e9d0b=_0x5f1762;_0x1cd1e4[_0x5e9d0b('0x187f')]({'title':_0x11a941['status']?_0x5e9d0b('0x16c2')+_0x11a941[_0x5e9d0b('0x2fa')]+_0x5e9d0b('0x169e')+_0x11a941[_0x5e9d0b('0x24df')]:_0x5e9d0b('0x25e'),'msg':_0x11a941[_0x5e9d0b('0x10fd')]?JSON[_0x5e9d0b('0xa48')](_0x11a941[_0x5e9d0b('0x10fd')]):_0x11a941[_0x5e9d0b('0x684')]()});});function _0x539ab8(){var _0x3a96c2=_0x5f1762;_0x2a877b['errors']=[];var _0x21ec77=[];_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x6c8')]&&_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x6c8')][_0x3a96c2('0xcf6')]()===_0x3a96c2('0x19d1')&&_0x2a877b['tag']['appType']===_0x3a96c2('0x8da')&&(_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x1a46')]=_0xd90873[_0x3a96c2('0x888')]?(_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x1b8f')]||'')+'${EXTEN:'+_0xd90873[_0x3a96c2('0x888')]+'}':(_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x1b8f')]||'')+'${EXTEN}',_0xd90873[_0x3a96c2('0x1e0f')]!==_0x3a96c2('0x117')?_0x2a877b[_0x3a96c2('0x38f')]['options'][_0x3a96c2('0x1f38')](_0x3a96c2('0x266a'))<0x0&&(_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x1b36')]+=_0x3a96c2('0x266a')):_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x1b36')]=_0x2a877b['tag']['options']['replace'](_0x3a96c2('0x266a'),''));var _0x556734=_0x51538b()[_0x3a96c2('0xe9e')](_0x2a877b['tags'],{'name':_0x2a877b[_0x3a96c2('0x38f')]['tag']});_0x556734&&(_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x2028')]=_0x556734['id']);if(_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0xe6d')]&&_0x2a877b[_0x3a96c2('0x38f')]['appType']===_0x3a96c2('0x113b')){}else switch((_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x9eb')]||_0x2a877b['tag'][_0x3a96c2('0xe6d')])[_0x3a96c2('0xcf6')]()){case _0x3a96c2('0x282c'):_0x2a877b['tag'][_0x3a96c2('0x124b')]=_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x25d6')]+'='+_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x12f4')];break;case _0x3a96c2('0x113b'):break;default:_0x21ec77[0x0]=_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x38f')],_0x2a877b[_0x3a96c2('0x38f')][_0x3a96c2('0x124b')]=_0x21ec77[_0x3a96c2('0x19c4')](',');}_0x2bdfbc(_0x2a877b['tag']);}function _0x2bdfbc(_0x1fd644){var _0x1a5e8d=_0x5f1762;_0x5add78[_0x1a5e8d('0x1120')](_0x1fd644);}}const _0x20d4d2=_0x1f8eaf,_0x48ecba=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog-[chunkhash].html';_0x15fab7['$inject']=[_0x1a8446('0x95f'),_0x1a8446('0x51'),'$state','$q',_0x1a8446('0xcb3'),'$timeout','$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x1dfd')];function _0x15fab7(_0x5acbeb,_0x482bc0,_0x283419,_0x3b1053,_0x21e8c1,_0x3ef773,_0x1da98e,_0x3bcf58,_0xf0fe88,_0x3e6094,_0x4c9618){var _0x3a0e02=_0x1a8446,_0x237bfb=this;_0x237bfb['currentUser']=_0x4c9618[_0x3a0e02('0xacc')](),_0x237bfb[_0x3a0e02('0x10f1')]={},_0x237bfb[_0x3a0e02('0x1f1f')]={'count':0x0,'rows':[]},_0x237bfb['selectedChatWebsiteChatCannedAnswers']=[],_0x237bfb[_0x3a0e02('0xada')],_0x237bfb['query']={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x237bfb[_0x3a0e02('0x2e')]=_0x331eb1,_0x237bfb[_0x3a0e02('0x1416')]=_0x181ed3,_0x237bfb[_0x3a0e02('0xe10')]=_0x404392,_0x237bfb['getChatWebsiteChatCannedAnswers']=_0x18186d,_0x237bfb[_0x3a0e02('0x1c8a')]=_0x423d45,_0x237bfb[_0x3a0e02('0x44e')]=_0x283bdb,_0x237bfb[_0x3a0e02('0x1d1')]=_0x54568b,_0x237bfb[_0x3a0e02('0x250d')]=_0x4f463f;function _0x331eb1(_0x1ce6e0,_0x34e06d){var _0x362ee2=_0x3a0e02;_0x237bfb[_0x362ee2('0x10f1')]=_0x1ce6e0,_0x237bfb['crudPermissions']=typeof _0x34e06d!=='undefined'?_0x34e06d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x237bfb['query'][_0x362ee2('0x1421')]=_0x237bfb[_0x362ee2('0x10f1')]['id'],_0x237bfb[_0x362ee2('0x582')]['id']=_0x237bfb[_0x362ee2('0x10f1')]['id'],_0x18186d();}function _0x181ed3(_0x3f00ef,_0x9b52c9){var _0x49dec5=_0x3a0e02,_0x4a9c15=_0x1da98e['confirm']()[_0x49dec5('0x110a')](_0x49dec5('0xc7a'))[_0x49dec5('0x102e')](_0x49dec5('0x389')+(_0x3f00ef[_0x49dec5('0x25d6')]||_0x3f00ef['id']&&_0x51538b()[_0x49dec5('0x1791')](_0x49dec5('0x1524'))+_0x3f00ef['id']||_0x49dec5('0x1362'))+_0x49dec5('0x697')+_0x49dec5('0x210d'))[_0x49dec5('0x5b5')]('delete\x20chatCannedAnswer')[_0x49dec5('0x116d')](_0x9b52c9)['ok']('OK')['cancel'](_0x49dec5('0x2410'));_0x1da98e[_0x49dec5('0x1e6d')](_0x4a9c15)['then'](function(){_0x54568b(_0x3f00ef);},function(){var _0x2bf8a2=_0x49dec5;console['log'](_0x2bf8a2('0x2410'));});}function _0x404392(_0x1bfe01){var _0x262c13=_0x3a0e02;_0x237bfb[_0x262c13('0x1f1f')]=_0x1bfe01||{'count':0x0,'rows':[]};}function _0x18186d(){var _0x83baaa=_0x3a0e02;_0x237bfb[_0x83baaa('0x582')][_0x83baaa('0x8b1')]=(_0x237bfb[_0x83baaa('0x582')][_0x83baaa('0x41')]-0x1)*_0x237bfb[_0x83baaa('0x582')][_0x83baaa('0xf4d')],_0x237bfb[_0x83baaa('0x159a')]=_0x3e6094[_0x83baaa('0x10f1')][_0x83baaa('0x1720')](_0x237bfb[_0x83baaa('0x582')],_0x404392)['$promise'];}function _0x423d45(_0x9769c3,_0xe97a0f){var _0xe33815=_0x3a0e02;_0x1da98e[_0xe33815('0x1e6d')]({'controller':'CreateOrEditChatCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x48ecba,'parent':angular[_0xe33815('0x1aa8')](_0x3bcf58[_0xe33815('0x54c')]),'targetEvent':_0x9769c3,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x237bfb['chatWebsite'],'chatCannedAnswer':_0xe97a0f,'chatCannedAnswers':_0x237bfb['chatWebsiteChatCannedAnswers'][_0xe33815('0x580')],'license':null,'setting':null,'crudPermissions':_0x237bfb[_0xe33815('0xada')]}});}function _0x54568b(_0x1e8e3b){var _0x3add0f=_0x3a0e02;_0x3e6094[_0x3add0f('0x1a53')][_0x3add0f('0x926')]({'id':_0x1e8e3b['id']})['$promise'][_0x3add0f('0xaa5')](function(){var _0x417e49=_0x3add0f;_0x51538b()[_0x417e49('0xf6d')](_0x237bfb[_0x417e49('0x1f1f')]['rows'],{'id':_0x1e8e3b['id']}),_0x237bfb[_0x417e49('0x1f1f')][_0x417e49('0xd15')]-=0x1,!_0x237bfb['chatWebsiteChatCannedAnswers'][_0x417e49('0x580')][_0x417e49('0x2587')]&&_0x18186d(),_0xf0fe88['success']({'title':'ChatCannedAnswer\x20deleted!','msg':_0x1e8e3b[_0x417e49('0x25d6')]?_0x1e8e3b['name']+_0x417e49('0xcd9'):''});})[_0x3add0f('0x253d')](function(_0x59849d){var _0x21cca0=_0x3add0f;if(_0x59849d[_0x21cca0('0x10fd')]&&_0x59849d[_0x21cca0('0x10fd')]['errors']&&_0x59849d[_0x21cca0('0x10fd')][_0x21cca0('0x4c6')][_0x21cca0('0x2587')]){_0x237bfb[_0x21cca0('0x4c6')]=_0x59849d[_0x21cca0('0x10fd')]['errors']||[{'message':_0x59849d[_0x21cca0('0x684')](),'type':_0x21cca0('0x1952')}];for(var _0x4a5ef7=0x0;_0x4a5ef7<_0x59849d[_0x21cca0('0x10fd')][_0x21cca0('0x4c6')]['length'];_0x4a5ef7++){_0xf0fe88[_0x21cca0('0x187f')]({'title':_0x59849d[_0x21cca0('0x10fd')]['errors'][_0x4a5ef7]['type'],'msg':_0x59849d['data']['errors'][_0x4a5ef7][_0x21cca0('0x1402')]});}}else _0xf0fe88[_0x21cca0('0x187f')]({'title':_0x59849d[_0x21cca0('0x2fa')]?'API:'+_0x59849d[_0x21cca0('0x2fa')]+_0x21cca0('0x169e')+_0x59849d[_0x21cca0('0x24df')]:_0x21cca0('0x1952'),'msg':_0x59849d[_0x21cca0('0x10fd')]?JSON['stringify'](_0x59849d['data']['message']):_0x59849d[_0x21cca0('0x1402')]||_0x59849d[_0x21cca0('0x684')]()});});}function _0x283bdb(){var _0x29a8d4=_0x3a0e02,_0x38e987=angular[_0x29a8d4('0x20a')](_0x237bfb[_0x29a8d4('0x22ab')]);return _0x237bfb['selectedChatWebsiteChatCannedAnswers']=[],_0x38e987;}function _0x4f463f(_0x3c48f3){var _0x35cb0b=_0x3a0e02,_0x3ecc9b=_0x1da98e[_0x35cb0b('0x281e')]()[_0x35cb0b('0x110a')](_0x35cb0b('0x1445'))[_0x35cb0b('0x102e')](_0x35cb0b('0x389')+_0x237bfb['selectedChatWebsiteChatCannedAnswers']['length']+_0x35cb0b('0x1443')+_0x35cb0b('0x210d'))['ariaLabel'](_0x35cb0b('0x27a5'))[_0x35cb0b('0x116d')](_0x3c48f3)['ok']('OK')[_0x35cb0b('0x2030')](_0x35cb0b('0x2410'));_0x1da98e[_0x35cb0b('0x1e6d')](_0x3ecc9b)[_0x35cb0b('0xaa5')](function(){var _0x5c685c=_0x35cb0b;_0x237bfb[_0x5c685c('0x22ab')][_0x5c685c('0x15b5')](function(_0x8b0293){_0x54568b(_0x8b0293);}),_0x237bfb[_0x5c685c('0x22ab')]=[];});}var _0xb81a0a=!![],_0x2acd68=0x1;_0x482bc0[_0x3a0e02('0x1ccf')](_0x3a0e02('0x74c'),function(_0x3ac258,_0x3433ea){var _0x2cb396=_0x3a0e02;_0xb81a0a?_0x3ef773(function(){_0xb81a0a=![];}):(!_0x3433ea&&(_0x2acd68=_0x237bfb[_0x2cb396('0x582')]['page']),_0x3ac258!==_0x3433ea&&(_0x237bfb[_0x2cb396('0x582')]['page']=0x1),!_0x3ac258&&(_0x237bfb['query'][_0x2cb396('0x41')]=_0x2acd68),_0x18186d());});}const _0x6ffd60=_0x15fab7;_0x39ec39[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'chatCannedAnswers',_0x1a8446('0x1362'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x39ec39(_0x46c274,_0x3007dc,_0x5f38a5,_0x1e771f,_0x274c31,_0x416559,_0x53c6f5,_0x52df8e,_0x3f0e79,_0x529f30,_0x56d401,_0x57d24d,_0x8f1094,_0x5c0eb5){var _0x3230ec=_0x1a8446,_0x3177cd=this;_0x3177cd[_0x3230ec('0x7fc')]=_0x56d401[_0x3230ec('0xacc')](),_0x3177cd['errors']=[],_0x3177cd[_0x3230ec('0x143f')]=_0x8f1094,_0x3177cd[_0x3230ec('0x1202')]=_0x57d24d,_0x3177cd['crudPermissions']=_0x5c0eb5,_0x3177cd['hasModulePermissions']={},_0x3177cd[_0x3230ec('0x1d53')]=_0x3177cd[_0x3230ec('0x143f')]&&_0x3177cd[_0x3230ec('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3177cd[_0x3230ec('0x110a')]='CHAT.EDIT_CHATCANNEDANSWER',_0x3177cd[_0x3230ec('0x1362')]=angular[_0x3230ec('0x20a')](_0x3f0e79),_0x3177cd[_0x3230ec('0x269f')]=_0x52df8e,_0x3177cd['newChatCannedAnswer']=![];!_0x3177cd[_0x3230ec('0x1362')]&&(_0x3177cd['chatCannedAnswer']={},_0x3177cd[_0x3230ec('0x110a')]='CHAT.NEW_CHATCANNEDANSWER',_0x3177cd[_0x3230ec('0x1ce4')]=!![]);_0x3007dc[_0x3230ec('0x25cf')]['id']&&(_0x3177cd[_0x3230ec('0x1362')]['ChatWebsiteId']=_0x3007dc[_0x3230ec('0x25cf')]['id']);_0x3177cd[_0x3230ec('0x2fb')]=_0x2d3c23,_0x3177cd[_0x3230ec('0x1d29')]=_0x4bcb43,_0x3177cd['deleteChatCannedAnswer']=_0x2787e8,_0x3177cd['getDateFromString']=_0xf95872,_0x3177cd['closeDialog']=_0xcc6b12;function _0x2d3c23(){var _0x34372c=_0x3230ec;_0x3177cd[_0x34372c('0x4c6')]=[],_0x529f30[_0x34372c('0x1a53')][_0x34372c('0x242b')](_0x3177cd[_0x34372c('0x1362')])[_0x34372c('0x1dc2')][_0x34372c('0xaa5')](function(_0x90761f){var _0x1181a1=_0x34372c;_0x3177cd[_0x1181a1('0x269f')][_0x1181a1('0x6ee')](_0x90761f[_0x1181a1('0x256a')]()),_0x53c6f5[_0x1181a1('0xe10')]({'title':'ChatCannedAnswer\x20properly\x20created','msg':_0x3177cd[_0x1181a1('0x1362')][_0x1181a1('0x25d6')]?_0x3177cd[_0x1181a1('0x1362')][_0x1181a1('0x25d6')]+_0x1181a1('0xdca'):''}),_0xcc6b12(_0x90761f);})['catch'](function(_0x391efd){var _0x13e652=_0x34372c;if(_0x391efd['data']&&_0x391efd['data']['errors']&&_0x391efd['data'][_0x13e652('0x4c6')][_0x13e652('0x2587')]){_0x3177cd[_0x13e652('0x4c6')]=_0x391efd[_0x13e652('0x10fd')][_0x13e652('0x4c6')]||[{'message':_0x391efd[_0x13e652('0x684')](),'type':_0x13e652('0x262b')}];for(var _0x2ad727=0x0;_0x2ad727<_0x391efd[_0x13e652('0x10fd')]['errors'][_0x13e652('0x2587')];_0x2ad727+=0x1){_0x53c6f5['error']({'title':_0x391efd['data'][_0x13e652('0x4c6')][_0x2ad727]['type'],'msg':_0x391efd['data']['errors'][_0x2ad727][_0x13e652('0x1402')]});}}else _0x53c6f5[_0x13e652('0x187f')]({'title':_0x391efd[_0x13e652('0x2fa')]?_0x13e652('0x16c2')+_0x391efd[_0x13e652('0x2fa')]+_0x13e652('0x169e')+_0x391efd['statusText']:'api.cannedAnswer.save','msg':_0x391efd[_0x13e652('0x10fd')]?JSON['stringify'](_0x391efd[_0x13e652('0x10fd')][_0x13e652('0x1402')]):_0x391efd['toString']()});});}function _0x4bcb43(){var _0x52dcef=_0x3230ec;_0x3177cd[_0x52dcef('0x4c6')]=[],_0x529f30[_0x52dcef('0x1a53')][_0x52dcef('0x264e')]({'id':_0x3177cd['chatCannedAnswer']['id']},_0x3177cd[_0x52dcef('0x1362')])['$promise'][_0x52dcef('0xaa5')](function(_0x5cfb6f){var _0x22d962=_0x52dcef,_0x5c7367=_0x51538b()[_0x22d962('0xe9e')](_0x3177cd[_0x22d962('0x269f')],{'id':_0x5cfb6f['id']});_0x5c7367&&_0x51538b()[_0x22d962('0x283c')](_0x5c7367,_0x51538b()[_0x22d962('0x104e')](_0x5cfb6f[_0x22d962('0x256a')](),_0x51538b()[_0x22d962('0x9f2')](_0x5c7367))),_0x53c6f5[_0x22d962('0xe10')]({'title':_0x22d962('0x31'),'msg':_0x3177cd[_0x22d962('0x1362')]['name']?_0x3177cd[_0x22d962('0x1362')][_0x22d962('0x25d6')]+_0x22d962('0x20bf'):''}),_0xcc6b12(_0x5cfb6f);})[_0x52dcef('0x253d')](function(_0x421ae8){var _0x306a6d=_0x52dcef;if(_0x421ae8[_0x306a6d('0x10fd')]&&_0x421ae8['data'][_0x306a6d('0x4c6')]&&_0x421ae8['data'][_0x306a6d('0x4c6')][_0x306a6d('0x2587')]){_0x3177cd[_0x306a6d('0x4c6')]=_0x421ae8[_0x306a6d('0x10fd')][_0x306a6d('0x4c6')]||[{'message':_0x421ae8[_0x306a6d('0x684')](),'type':'api.cannedAnswer.update'}];for(var _0x14c734=0x0;_0x14c734<_0x421ae8[_0x306a6d('0x10fd')][_0x306a6d('0x4c6')][_0x306a6d('0x2587')];_0x14c734++){_0x53c6f5[_0x306a6d('0x187f')]({'title':_0x421ae8[_0x306a6d('0x10fd')][_0x306a6d('0x4c6')][_0x14c734][_0x306a6d('0x6c8')],'msg':_0x421ae8['data'][_0x306a6d('0x4c6')][_0x14c734][_0x306a6d('0x1402')]});}}else _0x53c6f5[_0x306a6d('0x187f')]({'title':_0x421ae8[_0x306a6d('0x2fa')]?_0x306a6d('0x16c2')+_0x421ae8[_0x306a6d('0x2fa')]+_0x306a6d('0x169e')+_0x421ae8[_0x306a6d('0x24df')]:'api.cannedAnswer.update','msg':_0x421ae8[_0x306a6d('0x10fd')]?JSON['stringify'](_0x421ae8[_0x306a6d('0x10fd')]['message']):_0x421ae8[_0x306a6d('0x684')]()});});}function _0x2787e8(_0x223b6c){var _0x137dfb=_0x3230ec;_0x3177cd[_0x137dfb('0x4c6')]=[];var _0x43856f=_0x1e771f['confirm']()[_0x137dfb('0x110a')](_0x137dfb('0x12a3'))['content']('The\x20chatCannedAnswer\x20will\x20be\x20deleted.')[_0x137dfb('0x5b5')](_0x137dfb('0x1e70'))['ok'](_0x137dfb('0x1e76'))[_0x137dfb('0x2030')](_0x137dfb('0x9c6'))['targetEvent'](_0x223b6c);_0x1e771f[_0x137dfb('0x1e6d')](_0x43856f)[_0x137dfb('0xaa5')](function(){var _0x5ad066=_0x137dfb;_0x529f30['cannedAnswer'][_0x5ad066('0x926')]({'id':_0x3177cd[_0x5ad066('0x1362')]['id']})[_0x5ad066('0x1dc2')][_0x5ad066('0xaa5')](function(){var _0x2110c2=_0x5ad066;_0x51538b()[_0x2110c2('0xf6d')](_0x3177cd[_0x2110c2('0x269f')],{'id':_0x3177cd[_0x2110c2('0x1362')]['id']}),_0x53c6f5[_0x2110c2('0xe10')]({'title':_0x2110c2('0x1618'),'msg':(_0x3177cd[_0x2110c2('0x1362')][_0x2110c2('0x25d6')]||_0x2110c2('0x1362'))+_0x2110c2('0xcd9')}),_0xcc6b12(_0x3177cd[_0x2110c2('0x1362')]);})[_0x5ad066('0x253d')](function(_0x2c0d8f){var _0x3803df=_0x5ad066;if(_0x2c0d8f[_0x3803df('0x10fd')]&&_0x2c0d8f[_0x3803df('0x10fd')][_0x3803df('0x4c6')]&&_0x2c0d8f[_0x3803df('0x10fd')][_0x3803df('0x4c6')][_0x3803df('0x2587')]){_0x3177cd[_0x3803df('0x4c6')]=_0x2c0d8f[_0x3803df('0x10fd')][_0x3803df('0x4c6')]||[{'message':_0x2c0d8f[_0x3803df('0x684')](),'type':_0x3803df('0xa2a')}];for(var _0x17f705=0x0;_0x17f705<_0x2c0d8f[_0x3803df('0x10fd')]['errors']['length'];_0x17f705++){_0x53c6f5[_0x3803df('0x187f')]({'title':_0x2c0d8f['data'][_0x3803df('0x4c6')][_0x17f705][_0x3803df('0x6c8')],'msg':_0x2c0d8f[_0x3803df('0x10fd')][_0x3803df('0x4c6')][_0x17f705][_0x3803df('0x1402')]});}}else _0x53c6f5[_0x3803df('0x187f')]({'title':_0x2c0d8f[_0x3803df('0x2fa')]?'API:'+_0x2c0d8f[_0x3803df('0x2fa')]+'\x20-\x20'+_0x2c0d8f[_0x3803df('0x24df')]:_0x3803df('0xa2a'),'msg':_0x2c0d8f[_0x3803df('0x10fd')]?JSON[_0x3803df('0xa48')](_0x2c0d8f[_0x3803df('0x10fd')][_0x3803df('0x1402')]):_0x2c0d8f['message']||_0x2c0d8f['toString']()});});},function(){});}function _0xf95872(_0x2c8c94){return _0x2c8c94===null?undefined:new Date(_0x2c8c94);}function _0xcc6b12(_0x69a9ca){var _0x5c7f59=_0x3230ec;_0x1e771f[_0x5c7f59('0x1120')](_0x69a9ca);}}const _0x1dd6e2=_0x39ec39;_0x281905[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document','$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x281905(_0xc7d960,_0x481fa7,_0x240729,_0x8cda2f,_0x2a51f6,_0x461b96,_0x2fd659,_0x33bb96,_0x3d20ea,_0x2436ae,_0x55c60f){var _0x25470e=_0x1a8446,_0x359c9d=this;_0x359c9d['currentUser']=_0x55c60f[_0x25470e('0xacc')](),_0x359c9d[_0x25470e('0xa9')]={'count':0x0,'rows':[]},_0x359c9d[_0x25470e('0x3b5')]=[],_0x359c9d[_0x25470e('0xada')],_0x359c9d['levels']={'first':_0x25470e('0xee7'),'second':'2nd','third':_0x25470e('0x14f3')},_0x359c9d[_0x25470e('0x582')]={'fields':_0x25470e('0x11a9'),'sort':_0x25470e('0xd82'),'limit':0xa,'page':0x1},_0x359c9d[_0x25470e('0x2e')]=_0xbcd66e,_0x359c9d[_0x25470e('0x1416')]=_0x16e900,_0x359c9d[_0x25470e('0xe10')]=_0x40b217,_0x359c9d[_0x25470e('0x24b7')]=_0x42b996,_0x359c9d[_0x25470e('0x707')]=_0x508bb7,_0x359c9d['deleteDisposition']=_0x5a158,_0x359c9d[_0x25470e('0xae4')]=_0x22ce8d,_0x359c9d['deleteSelectedDispositions']=_0x30ee45,_0x359c9d[_0x25470e('0x83f')]=_0x34f752,_0x359c9d['selectAllDispositions']=_0x419947;function _0xbcd66e(_0x80f7e,_0x26a897){var _0x32da12=_0x25470e;_0x359c9d[_0x32da12('0x10f1')]=_0x80f7e||{},_0x359c9d[_0x32da12('0xada')]=typeof _0x26a897!==_0x32da12('0x1574')?_0x26a897:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x359c9d[_0x32da12('0x582')][_0x32da12('0x1421')]=_0x359c9d[_0x32da12('0x10f1')]['id'],_0x359c9d[_0x32da12('0x582')]['id']=_0x359c9d[_0x32da12('0x10f1')]['id'],_0x42b996();}function _0x508bb7(_0x46a2ad,_0x53acae){var _0x51a697=_0x25470e;_0x2a51f6[_0x51a697('0x1e6d')]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x56dea9,'parent':angular[_0x51a697('0x1aa8')](_0x461b96[_0x51a697('0x54c')]),'targetEvent':_0x46a2ad,'clickOutsideToClose':!![],'locals':{'disposition':_0x53acae,'dispositions':_0x359c9d[_0x51a697('0xa9')][_0x51a697('0x580')],'model':{'id':_0x359c9d[_0x51a697('0x10f1')]['id'],'field':_0x51a697('0x1421')},'license':null,'setting':null,'crudPermissions':_0x359c9d['crudPermissions']}})[_0x51a697('0xaa5')](function(_0x5ac5b0){if(_0x5ac5b0)_0x42b996();});}function _0x16e900(_0x5d712d,_0x21d891){var _0xb4f91f=_0x25470e,_0x5c9219=_0x51538b()[_0xb4f91f('0x2c2')](_0x359c9d[_0xb4f91f('0xa9')][_0xb4f91f('0x580')],[_0xb4f91f('0x2733'),_0x5d712d['id']]),_0x160c3d=_0x2a51f6[_0xb4f91f('0x281e')]()[_0xb4f91f('0x110a')](_0x33bb96[_0xb4f91f('0x213f')](_0xb4f91f('0x2498')))['content'](_0x33bb96[_0xb4f91f('0x213f')](_0xb4f91f('0xbdf')+(_0x5c9219?_0xb4f91f('0x1528'):_0xb4f91f('0x20c8')),{'name':_0x5d712d[_0xb4f91f('0x25d6')]}))['ariaLabel'](_0xb4f91f('0x1493'))[_0xb4f91f('0x116d')](_0x21d891)['ok']('OK')[_0xb4f91f('0x2030')](_0x33bb96[_0xb4f91f('0x213f')](_0xb4f91f('0x1dd8')));_0x2a51f6[_0xb4f91f('0x1e6d')](_0x160c3d)[_0xb4f91f('0xaa5')](function(){_0x5a158(_0x5d712d);});}function _0x40b217(_0x5a0e9d){var _0x51cd2d=_0x25470e;_0x359c9d[_0x51cd2d('0xa9')]=_0x5a0e9d||{'count':0x0,'rows':[]};}function _0x42b996(){var _0x484e7a=_0x25470e;_0x359c9d[_0x484e7a('0x582')][_0x484e7a('0x8b1')]=(_0x359c9d[_0x484e7a('0x582')][_0x484e7a('0x41')]-0x1)*_0x359c9d[_0x484e7a('0x582')][_0x484e7a('0xf4d')],_0x359c9d['promise']=_0x3d20ea[_0x484e7a('0x10f1')][_0x484e7a('0x24b7')](_0x359c9d[_0x484e7a('0x582')],_0x40b217)[_0x484e7a('0x1dc2')];}function _0x5a158(_0x4d3d68){var _0x5a1a0e=_0x25470e;_0x3d20ea[_0x5a1a0e('0x106e')][_0x5a1a0e('0x926')]({'id':_0x4d3d68['id']})[_0x5a1a0e('0x1dc2')][_0x5a1a0e('0xaa5')](function(){var _0x390828=_0x5a1a0e;_0x42b996(),_0x2436ae[_0x390828('0xe10')]({'title':_0x33bb96[_0x390828('0x213f')](_0x390828('0x26dd'))});})[_0x5a1a0e('0x253d')](function(_0x154031){var _0x1d9de2=_0x5a1a0e;if(_0x154031[_0x1d9de2('0x10fd')]&&_0x154031[_0x1d9de2('0x10fd')]['errors']&&_0x154031[_0x1d9de2('0x10fd')][_0x1d9de2('0x4c6')][_0x1d9de2('0x2587')]){_0x359c9d[_0x1d9de2('0x4c6')]=_0x154031[_0x1d9de2('0x10fd')][_0x1d9de2('0x4c6')]||[{'message':_0x154031[_0x1d9de2('0x684')](),'type':'SYSTEM:DELETEdisposition'}];for(var _0x35caa7=0x0;_0x35caa7<_0x154031[_0x1d9de2('0x10fd')][_0x1d9de2('0x4c6')]['length'];_0x35caa7++){_0x2436ae[_0x1d9de2('0x187f')]({'title':_0x154031[_0x1d9de2('0x10fd')][_0x1d9de2('0x4c6')][_0x35caa7]['type'],'msg':_0x154031[_0x1d9de2('0x10fd')][_0x1d9de2('0x4c6')][_0x35caa7]['message']});}}else _0x2436ae['error']({'title':_0x154031[_0x1d9de2('0x2fa')]?_0x1d9de2('0x16c2')+_0x154031[_0x1d9de2('0x2fa')]+_0x1d9de2('0x169e')+_0x154031[_0x1d9de2('0x24df')]:_0x1d9de2('0x28a'),'msg':_0x154031[_0x1d9de2('0x10fd')]?JSON[_0x1d9de2('0xa48')](_0x154031['data'][_0x1d9de2('0x1402')]):_0x154031[_0x1d9de2('0x1402')]||_0x154031[_0x1d9de2('0x684')]()});});}function _0x22ce8d(){var _0x67368b=_0x25470e,_0x2e66c1=angular[_0x67368b('0x20a')](_0x359c9d['selectedDispositions']);return _0x359c9d['selectedDispositions']=[],_0x2e66c1;}function _0x30ee45(_0x3cbc42){var _0x48e714=_0x25470e,_0x4cbbbf=_0x2a51f6['confirm']()[_0x48e714('0x110a')](_0x33bb96[_0x48e714('0x213f')](_0x48e714('0x18f0')))[_0x48e714('0x15af')](_0x33bb96[_0x48e714('0x213f')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x359c9d[_0x48e714('0x3b5')]['length']}))['ariaLabel'](_0x48e714('0x2803'))[_0x48e714('0x116d')](_0x3cbc42)['ok']('OK')['cancel'](_0x33bb96[_0x48e714('0x213f')](_0x48e714('0x1dd8')));_0x2a51f6[_0x48e714('0x1e6d')](_0x4cbbbf)['then'](function(){var _0x3a2499=_0x48e714;_0x359c9d[_0x3a2499('0x3b5')][_0x3a2499('0x15b5')](function(_0x2b4102){_0x5a158(_0x2b4102);}),_0x359c9d[_0x3a2499('0x3b5')]=[];});}function _0x34f752(){var _0x59e2c2=_0x25470e;_0x359c9d[_0x59e2c2('0x3b5')]=[];}function _0x419947(){var _0x29ee71=_0x25470e;_0x359c9d['selectedDispositions']=_0x359c9d[_0x29ee71('0xa9')][_0x29ee71('0x580')];}var _0x2d543b=!![],_0x32f25e=0x1;_0xc7d960['$watch'](_0x25470e('0x74c'),function(_0xd304bb,_0x219435){var _0x41ac5f=_0x25470e;_0x2d543b?_0x2fd659(function(){_0x2d543b=![];}):(!_0x219435&&(_0x32f25e=_0x359c9d[_0x41ac5f('0x582')][_0x41ac5f('0x41')]),_0xd304bb!==_0x219435&&(_0x359c9d[_0x41ac5f('0x582')][_0x41ac5f('0x41')]=0x1),!_0xd304bb&&(_0x359c9d[_0x41ac5f('0x582')][_0x41ac5f('0x41')]=_0x32f25e),_0x42b996());});}const _0x1d8804=_0x281905;_0x5e3f05[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x157')];function _0x5e3f05(_0x133085,_0x4bac26,_0x1c4f7d){var _0x34b788=_0x1a8446,_0x382a90=this;_0x382a90[_0x34b788('0x10f1')]={},_0x382a90[_0x34b788('0x248a')]={},_0x382a90[_0x34b788('0x2080')]=[{'type':_0x34b788('0x15f'),'name':'Label','icon':'icon-label'},{'type':_0x34b788('0x1a47'),'name':_0x34b788('0x1e38'),'icon':_0x34b788('0x253c')},{'type':'input','name':_0x34b788('0x21b1'),'icon':_0x34b788('0x12cb')},{'type':_0x34b788('0x1b88'),'name':'Textarea','icon':_0x34b788('0x2580')},{'type':_0x34b788('0x2805'),'name':_0x34b788('0x274b'),'icon':_0x34b788('0x1d96')},{'type':'checkboxes','name':'Checkboxes','icon':'icon-checkbox-multiple-marked-outline'},{'type':_0x34b788('0x11c1'),'name':_0x34b788('0x15ec'),'icon':_0x34b788('0x1332')}],_0x382a90[_0x34b788('0x2e')]=_0x914133,_0x382a90['up']=_0x55e19b,_0x382a90[_0x34b788('0x24a4')]=_0x45e1da,_0x382a90[_0x34b788('0x202c')]=_0x465052,_0x382a90[_0x34b788('0xf6d')]=_0x354c87;function _0x914133(_0x43f2c8){var _0x29d820=_0x34b788;_0x382a90[_0x29d820('0x13a')]=[],_0x382a90['customFields']=[],_0x382a90[_0x29d820('0xb8a')]=['id','createdAt',_0x29d820('0x19f3'),_0x29d820('0xee0'),'CompanyId',_0x29d820('0x1dc2'),'$resolved'],_0x382a90[_0x29d820('0x10f1')]=_0x43f2c8,_0x51538b()['isEmpty'](_0x382a90[_0x29d820('0x10f1')][_0x29d820('0x248a')])&&(_0x382a90[_0x29d820('0x10f1')]['offlineForm']={'items':[],'fromKey':null}),_0x1c4f7d[_0x29d820('0x26b4')][_0x29d820('0xe57')]({'id':_0x382a90[_0x29d820('0x10f1')][_0x29d820('0xee0')]})[_0x29d820('0x1dc2')]['then'](function(_0x7fbba9){var _0x31d750=_0x29d820;for(var _0x7cfb13=0x0;_0x7cfb13<_0x7fbba9['rows']['length'];_0x7cfb13++){_0x382a90[_0x31d750('0x2')]['push']({'key':'cf_'+_0x7fbba9[_0x31d750('0x580')][_0x7cfb13]['id'],'value':_0x7fbba9['rows'][_0x7cfb13][_0x31d750('0x19d9')]});}return _0x1c4f7d[_0x31d750('0xdbd')][_0x31d750('0x3e7')]()[_0x31d750('0x1dc2')];})[_0x29d820('0xaa5')](function(_0x4da9eb){var _0xb8a479=_0x29d820,_0x542ea6=_0x51538b()['keys'](_0x4da9eb);for(var _0x55a404=0x0;_0x55a404<_0x542ea6['length'];_0x55a404++){!_0x51538b()['includes'](_0x382a90[_0xb8a479('0xb8a')],_0x542ea6[_0x55a404])&&!_0x51538b()['startsWith'](_0x542ea6[_0x55a404],'cf_')&&_0x382a90['fields'][_0xb8a479('0x6ee')]({'key':_0x542ea6[_0x55a404],'value':_0x542ea6[_0x55a404]});}return _0x1c4f7d[_0xb8a479('0x14e7')]['get']()[_0xb8a479('0x1dc2')];})['then'](function(_0x395697){var _0x3f96db=_0x29d820;_0x382a90['variables']=_0x395697[_0x3f96db('0x580')];})[_0x29d820('0x253d')](function(_0x23db75){console['error'](_0x23db75);});}function _0x55e19b(_0x149bfd,_0xefa470){var _0x40c92f=_0x34b788;if(_0xefa470!==0x0){var _0x5b7bbd=_0x382a90[_0x40c92f('0x10f1')]['offlineForm'][_0x40c92f('0x1a30')][_0xefa470-0x1];_0x382a90[_0x40c92f('0x10f1')][_0x40c92f('0x248a')][_0x40c92f('0x1a30')][_0xefa470]=_0x5b7bbd,_0x382a90[_0x40c92f('0x10f1')]['offlineForm'][_0x40c92f('0x1a30')][_0xefa470-0x1]=angular[_0x40c92f('0x20a')](_0x149bfd);if(_0x382a90[_0x40c92f('0x10f1')][_0x40c92f('0x248a')][_0x40c92f('0x1600')]===_0xefa470)_0x382a90[_0x40c92f('0x10f1')][_0x40c92f('0x248a')][_0x40c92f('0x1600')]--;else _0x382a90[_0x40c92f('0x10f1')]['offlineForm'][_0x40c92f('0x1600')]===_0xefa470-0x1&&_0x382a90[_0x40c92f('0x10f1')]['offlineForm'][_0x40c92f('0x1600')]++;}}function _0x45e1da(_0x2d7e0f,_0x29f372){var _0x1ac446=_0x34b788;if(_0x29f372!==_0x382a90[_0x1ac446('0x10f1')][_0x1ac446('0x248a')][_0x1ac446('0x1a30')][_0x1ac446('0x2587')]-0x1){var _0x4f349c=_0x382a90[_0x1ac446('0x10f1')]['offlineForm']['items'][_0x29f372+0x1];_0x382a90[_0x1ac446('0x10f1')][_0x1ac446('0x248a')][_0x1ac446('0x1a30')][_0x29f372]=_0x4f349c,_0x382a90['chatWebsite']['offlineForm'][_0x1ac446('0x1a30')][_0x29f372+0x1]=angular[_0x1ac446('0x20a')](_0x2d7e0f);if(_0x382a90[_0x1ac446('0x10f1')][_0x1ac446('0x248a')][_0x1ac446('0x1600')]===_0x29f372)_0x382a90[_0x1ac446('0x10f1')]['offlineForm'][_0x1ac446('0x1600')]++;else _0x382a90[_0x1ac446('0x10f1')][_0x1ac446('0x248a')][_0x1ac446('0x1600')]===_0x29f372+0x1&&_0x382a90[_0x1ac446('0x10f1')][_0x1ac446('0x248a')][_0x1ac446('0x1600')]--;}}function _0x465052(_0x52c297){var _0x250edb=_0x34b788;_0x382a90[_0x250edb('0x10f1')][_0x250edb('0x248a')][_0x250edb('0x1a30')][_0x250edb('0x1599')]({'type':_0x52c297,'cmField':null,'variable':null});}function _0x354c87(_0x4da2c9){var _0x1ef02b=_0x34b788,_0x5bc03c=_0x133085[_0x1ef02b('0x281e')]()[_0x1ef02b('0x110a')](_0x1ef02b('0x1e75'))['textContent']('Are\x20you\x20sure?')[_0x1ef02b('0x5b5')](_0x1ef02b('0xd49'))['ok']('Ok')[_0x1ef02b('0x2030')]('Cancel');_0x133085[_0x1ef02b('0x1e6d')](_0x5bc03c)['then'](function(){var _0x17d4df=_0x1ef02b;_0x382a90[_0x17d4df('0x10f1')][_0x17d4df('0x248a')][_0x17d4df('0x1a30')][_0x17d4df('0x1280')](_0x4da2c9,0x1);});}}const _0x45bde9=_0x5e3f05;_0x3a1e60[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),'api'];function _0x3a1e60(_0x5f54c2,_0x945e69,_0x3cadf2){var _0x390377=_0x1a8446,_0x49c801=this;_0x49c801['chatWebsite']={},_0x49c801[_0x390377('0x25c7')]={},_0x49c801[_0x390377('0x2080')]=[{'type':_0x390377('0x15f'),'name':'Label','icon':_0x390377('0x11c0')},{'type':_0x390377('0x1a47'),'name':'Select','icon':'icon-playlist-plus'},{'type':_0x390377('0x1354'),'name':_0x390377('0x21b1'),'icon':'icon-keyboard'},{'type':'textarea','name':_0x390377('0x1ab7'),'icon':'icon-format-text'},{'type':_0x390377('0x2805'),'name':_0x390377('0x274b'),'icon':_0x390377('0x1d96')},{'type':_0x390377('0x634'),'name':_0x390377('0x1018'),'icon':_0x390377('0x23d9')},{'type':_0x390377('0x11c1'),'name':'Agreement','icon':_0x390377('0x1332')}],_0x49c801[_0x390377('0x2e')]=_0x3dae59,_0x49c801['up']=_0x441b21,_0x49c801[_0x390377('0x24a4')]=_0x5f3edd,_0x49c801['add']=_0x57dbad,_0x49c801[_0x390377('0xf6d')]=_0x3f444f;function _0x3dae59(_0x4c0e15){var _0x9f8eef=_0x390377;_0x49c801[_0x9f8eef('0x13a')]=[],_0x49c801[_0x9f8eef('0x2')]=[],_0x49c801[_0x9f8eef('0xb8a')]=['id',_0x9f8eef('0x24a1'),_0x9f8eef('0x19f3'),_0x9f8eef('0xee0'),_0x9f8eef('0x1dc7'),_0x9f8eef('0x1dc2'),_0x9f8eef('0xd92')],_0x49c801[_0x9f8eef('0x10f1')]=_0x4c0e15,_0x51538b()[_0x9f8eef('0x116b')](_0x49c801[_0x9f8eef('0x10f1')][_0x9f8eef('0x25c7')])&&(_0x49c801['chatWebsite'][_0x9f8eef('0x25c7')]={'items':[],'fromKey':null}),_0x3cadf2['cmList']['getCustomFields']({'id':_0x49c801[_0x9f8eef('0x10f1')]['ListId']})[_0x9f8eef('0x1dc2')][_0x9f8eef('0xaa5')](function(_0x25ef5a){var _0x421b16=_0x9f8eef;for(var _0x57e6c8=0x0;_0x57e6c8<_0x25ef5a[_0x421b16('0x580')][_0x421b16('0x2587')];_0x57e6c8++){_0x49c801[_0x421b16('0x2')][_0x421b16('0x1599')]({'key':_0x421b16('0x7a5')+_0x25ef5a['rows'][_0x57e6c8]['id'],'value':_0x25ef5a['rows'][_0x57e6c8][_0x421b16('0x19d9')]});}return _0x3cadf2[_0x421b16('0xdbd')][_0x421b16('0x3e7')]()[_0x421b16('0x1dc2')];})['then'](function(_0x1c5793){var _0xd7024f=_0x9f8eef,_0x28692a=_0x51538b()[_0xd7024f('0x9f2')](_0x1c5793);for(var _0x14ffb5=0x0;_0x14ffb5<_0x28692a['length'];_0x14ffb5++){!_0x51538b()[_0xd7024f('0x13d6')](_0x49c801[_0xd7024f('0xb8a')],_0x28692a[_0x14ffb5])&&!_0x51538b()['startsWith'](_0x28692a[_0x14ffb5],_0xd7024f('0x7a5'))&&_0x49c801['fields'][_0xd7024f('0x6ee')]({'key':_0x28692a[_0x14ffb5],'value':_0x28692a[_0x14ffb5]});}return _0x3cadf2['variable'][_0xd7024f('0x2122')]()[_0xd7024f('0x1dc2')];})['then'](function(_0x24f5c4){var _0x1ba0f3=_0x9f8eef;_0x49c801[_0x1ba0f3('0x147e')]=_0x24f5c4[_0x1ba0f3('0x580')];})[_0x9f8eef('0x253d')](function(_0x5ac84f){var _0x55fb74=_0x9f8eef;console[_0x55fb74('0x187f')](_0x5ac84f);});}function _0x441b21(_0x435931,_0x3ac4bf){var _0xc90830=_0x390377;if(_0x3ac4bf!==0x0){var _0x8a55de=_0x49c801['chatWebsite']['onlineForm'][_0xc90830('0x1a30')][_0x3ac4bf-0x1];_0x49c801[_0xc90830('0x10f1')]['onlineForm'][_0xc90830('0x1a30')][_0x3ac4bf]=_0x8a55de,_0x49c801['chatWebsite'][_0xc90830('0x25c7')][_0xc90830('0x1a30')][_0x3ac4bf-0x1]=angular[_0xc90830('0x20a')](_0x435931);if(_0x49c801['chatWebsite']['onlineForm']['fromKey']===_0x3ac4bf)_0x49c801[_0xc90830('0x10f1')][_0xc90830('0x25c7')][_0xc90830('0x1600')]--;else _0x49c801[_0xc90830('0x10f1')][_0xc90830('0x25c7')][_0xc90830('0x1600')]===_0x3ac4bf-0x1&&_0x49c801['chatWebsite'][_0xc90830('0x25c7')][_0xc90830('0x1600')]++;}}function _0x5f3edd(_0x5c6fd8,_0xc045e5){var _0x56af97=_0x390377;if(_0xc045e5!==_0x49c801[_0x56af97('0x10f1')][_0x56af97('0x25c7')][_0x56af97('0x1a30')][_0x56af97('0x2587')]-0x1){var _0xb900d1=_0x49c801[_0x56af97('0x10f1')][_0x56af97('0x25c7')][_0x56af97('0x1a30')][_0xc045e5+0x1];_0x49c801['chatWebsite'][_0x56af97('0x25c7')][_0x56af97('0x1a30')][_0xc045e5]=_0xb900d1,_0x49c801['chatWebsite'][_0x56af97('0x25c7')][_0x56af97('0x1a30')][_0xc045e5+0x1]=angular[_0x56af97('0x20a')](_0x5c6fd8);if(_0x49c801[_0x56af97('0x10f1')][_0x56af97('0x25c7')][_0x56af97('0x1600')]===_0xc045e5)_0x49c801[_0x56af97('0x10f1')][_0x56af97('0x25c7')][_0x56af97('0x1600')]++;else _0x49c801['chatWebsite'][_0x56af97('0x25c7')][_0x56af97('0x1600')]===_0xc045e5+0x1&&_0x49c801[_0x56af97('0x10f1')]['onlineForm'][_0x56af97('0x1600')]--;}}function _0x57dbad(_0x34b85f){var _0x275cc3=_0x390377;_0x49c801[_0x275cc3('0x10f1')][_0x275cc3('0x25c7')][_0x275cc3('0x1a30')][_0x275cc3('0x1599')]({'type':_0x34b85f,'cmField':null,'variable':null});}function _0x3f444f(_0x29d1e9){var _0x121cbb=_0x390377,_0x77ef32=_0x5f54c2[_0x121cbb('0x281e')]()[_0x121cbb('0x110a')](_0x121cbb('0x1e75'))[_0x121cbb('0x447')](_0x121cbb('0x12a3'))[_0x121cbb('0x5b5')](_0x121cbb('0xd49'))['ok']('Ok')[_0x121cbb('0x2030')](_0x121cbb('0x9c6'));_0x5f54c2['show'](_0x77ef32)['then'](function(){var _0x308d78=_0x121cbb;_0x49c801[_0x308d78('0x10f1')][_0x308d78('0x25c7')][_0x308d78('0x1600')]===_0x29d1e9&&(_0x49c801[_0x308d78('0x10f1')]['onlineForm'][_0x308d78('0x1600')]=null),_0x49c801[_0x308d78('0x10f1')][_0x308d78('0x25c7')]['items']['splice'](_0x29d1e9,0x1),!_0x49c801['chatWebsite'][_0x308d78('0x25c7')][_0x308d78('0x1a30')][_0x308d78('0x2587')]&&(_0x49c801['chatWebsite'][_0x308d78('0x25c7')]['fromKey']=null);});}}const _0x359301=_0x3a1e60;_0x22f037['$inject']=[_0x1a8446('0x95f'),_0x1a8446('0x2a4')];function _0x22f037(_0x178495,_0x463d14){var _0x6655f7=_0x1a8446,_0x26b4a7=this,_0x38e997=0x8,_0x43ef02=_0x38e997*0x400*0x400;_0x26b4a7[_0x6655f7('0x10f1')]={},_0x26b4a7['crudPermissions'],_0x26b4a7[_0x6655f7('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x43ef02,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x26b4a7[_0x6655f7('0x27cd')]={'flow':{}},_0x26b4a7[_0x6655f7('0x258f')]=![],_0x26b4a7['fileAdded']=_0x10d0cc,_0x26b4a7[_0x6655f7('0x158b')]=_0x4fc3bc,_0x26b4a7['fileSuccess']=_0x3f676c,_0x26b4a7[_0x6655f7('0x2e')]=_0x1cf309;function _0x1cf309(_0x479699,_0x5b6ec8){var _0x70f560=_0x6655f7;_0x26b4a7['chatWebsite']=angular[_0x70f560('0x20a')](_0x479699),_0x26b4a7[_0x70f560('0xada')]=typeof _0x5b6ec8!==_0x70f560('0x1574')?_0x5b6ec8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x26b4a7[_0x70f560('0x1c88')]['target']=_0x70f560('0x1418')[_0x70f560('0x170d')](_0x70f560('0x128c'),_0x26b4a7[_0x70f560('0x10f1')]['id']),_0x26b4a7['chatWebsite'][_0x70f560('0x1b2d')]=[];}function _0x10d0cc(_0x396c58){var _0x3c03c4=_0x6655f7,_0x36ae54=[_0x3c03c4('0x981'),_0x3c03c4('0x1085')];if(!_0x51538b()[_0x3c03c4('0x13d6')](_0x36ae54,_0x396c58[_0x3c03c4('0x177a')]()))return _0x463d14[_0x3c03c4('0x187f')]({'title':'Invalid\x20extension:\x20'+_0x396c58['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x36ae54[_0x3c03c4('0x19c4')]()}),![];if(_0x396c58[_0x3c03c4('0x9f9')]>_0x43ef02)return _0x463d14[_0x3c03c4('0x187f')]({'title':_0x3c03c4('0xfad'),'msg':_0x3c03c4('0x15dd')+_0x38e997+'MB'}),![];var _0x460594={'id':_0x396c58['uniqueIdentifier'],'file':_0x396c58,'type':'uploading'};return _0x26b4a7[_0x3c03c4('0x10f1')][_0x3c03c4('0x1b2d')][_0x3c03c4('0x6ee')](_0x460594),!![];}function _0x4fc3bc(){var _0x20d58f=_0x6655f7;_0x26b4a7[_0x20d58f('0x27cd')][_0x20d58f('0xcba')]['opts'][_0x20d58f('0xc71')]={'X-Requested-With':'XMLHttpRequest','Authorization':'Bearer\x20'+_0x178495[_0x20d58f('0x2122')](_0x20d58f('0x10f8'))},_0x26b4a7[_0x20d58f('0x27cd')]['flow'][_0x20d58f('0x158b')]();}function _0x3f676c(_0x251593){var _0x307dd1=_0x6655f7;angular['forEach'](_0x26b4a7[_0x307dd1('0x10f1')][_0x307dd1('0x1b2d')],function(_0x2d0a66){var _0x41e6a0=_0x307dd1;if(_0x2d0a66['id']===_0x251593[_0x41e6a0('0xd3c')]){var _0x21e52e=new FileReader();_0x21e52e[_0x41e6a0('0xc21')](_0x2d0a66[_0x41e6a0('0x1945')][_0x41e6a0('0x1945')]),_0x21e52e['onload']=function(_0x2283a4){var _0xfdab33=_0x41e6a0;_0x2d0a66['url']=_0x2283a4[_0xfdab33('0xe2e')][_0xfdab33('0xcd6')];},_0x2d0a66[_0x41e6a0('0x6c8')]=_0x41e6a0('0x1471');}});}}const _0x494c9e=_0x22f037,_0x451de2=_0x4fb511['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html/agent.general.interaction.dialog-[chunkhash].html';_0xe9d86c['$inject']=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x1dfd')];function _0xe9d86c(_0x4d6599,_0x459aba,_0x4341c8,_0x3d1ddc,_0x1beee1,_0x250672,_0x510ffb,_0x14f8a3,_0x21871f,_0x143e28,_0x4bb45e){var _0x3b535a=_0x1a8446,_0x5566f2=this;_0x5566f2[_0x3b535a('0x7fc')]=_0x4bb45e[_0x3b535a('0xacc')](),_0x5566f2[_0x3b535a('0x10f1')]={},_0x5566f2[_0x3b535a('0xe27')]={'count':0x0,'rows':[]},_0x5566f2[_0x3b535a('0xa18')]=[],_0x5566f2['crudPermissions'],_0x5566f2[_0x3b535a('0x582')]={'read':'null','closed':_0x3b535a('0x1ed9'),'sort':_0x3b535a('0xa19'),'includeAll':'true','limit':0xa,'page':0x1},_0x5566f2[_0x3b535a('0x2e')]=_0x29e6d3,_0x5566f2[_0x3b535a('0x1416')]=_0x230da1,_0x5566f2[_0x3b535a('0x1045')]=_0x89b48e,_0x5566f2['success']=_0x43f5f9,_0x5566f2[_0x3b535a('0x1de6')]=_0x4f3968,_0x5566f2[_0x3b535a('0x26cf')]=_0x3643a6,_0x5566f2[_0x3b535a('0x226e')]=_0x38c3d3,_0x5566f2[_0x3b535a('0x1dbc')]=_0x4a5c11,_0x5566f2['deleteChatWebsiteInteraction']=_0xb634e7,_0x5566f2[_0x3b535a('0x108f')]=_0x4ef1ad;function _0x29e6d3(_0x1c4266,_0x28681b){var _0xd55cd7=_0x3b535a;_0x5566f2[_0xd55cd7('0x10f1')]=_0x1c4266,_0x5566f2['crudPermissions']=typeof _0x28681b!==_0xd55cd7('0x1574')?_0x28681b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5566f2[_0xd55cd7('0x582')]['ChatWebsiteId']=_0x5566f2[_0xd55cd7('0x10f1')]['id'],_0x5566f2[_0xd55cd7('0xd67')]={'fields':_0xd0d557()},_0x519c4c();}function _0x519c4c(){var _0x1bbef0=_0x3b535a;return _0x143e28[_0x1bbef0('0x38f')][_0x1bbef0('0x2122')]()[_0x1bbef0('0x1dc2')][_0x1bbef0('0xaa5')](function(_0x407b2e){var _0x52e7a4=_0x1bbef0;_0x5566f2[_0x52e7a4('0x523')]=_0x407b2e||{'count':0x0,'rows':[]};})[_0x1bbef0('0xaa5')](function(){_0x5566f2['quickFilters']=_0xa3cbe5();});}function _0xa3cbe5(){var _0x205c27=_0x3b535a;return[{'name':'Start\x20Date','key':_0x205c27('0x24a1'),'type':_0x205c27('0xb87'),'label':_0x205c27('0xf3d')},{'name':_0x205c27('0x1cd2'),'key':_0x205c27('0x7b7'),'type':_0x205c27('0xbff'),'label':_0x205c27('0x1da2'),'customOptions':[{'value':0x0,'translate':_0x205c27('0x320')},{'value':0x1,'translate':_0x205c27('0xdc4')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Status','key':'closed','type':'select','label':_0x205c27('0x617'),'customOptions':[{'value':0x0,'translate':_0x205c27('0x166e')},{'value':0x1,'translate':_0x205c27('0x73b')},{'value':null,'translate':_0x205c27('0x20c4')}]},{'name':_0x205c27('0x521'),'key':_0x205c27('0x1037'),'type':_0x205c27('0xbff'),'label':_0x205c27('0x162f'),'customOptions':[{'value':'null','translate':_0x205c27('0x1a1c')},{'value':undefined,'translate':_0x205c27('0x20c4')}]},{'name':_0x205c27('0x4e7'),'key':_0x205c27('0x38f'),'type':_0x205c27('0x2468'),'label':_0x205c27('0x6a6'),'options':_0x5566f2[_0x205c27('0x523')][_0x205c27('0x580')],'placeholder':_0x205c27('0x1161')}];}function _0xd0d557(){var _0x5b4be3=_0x3b535a;return[{'name':'Id','column':'id','type':_0x5b4be3('0x219a')},{'name':_0x5b4be3('0x1dc'),'column':'Contact','type':_0x5b4be3('0x7e6'),'options':{'searchFields':[_0x5b4be3('0x24c1'),'lastName',_0x5b4be3('0x1f69')],'route':{'model':_0x5b4be3('0xdbd'),'action':_0x5b4be3('0x2122'),'params':{'fields':_0x5b4be3('0x14ba'),'Contact':_0x5b4be3('0x1bfb'),'nolimit':!![]}},'extraOperators':[_0x5b4be3('0x2082')],'excludedOperators':[_0x5b4be3('0x13f7')]}},{'name':_0x5b4be3('0x716'),'column':_0x5b4be3('0x2101'),'type':_0x5b4be3('0xb37'),'options':{'excludedOperators':['$eq','$ne']}},{'name':'Body','column':_0x5b4be3('0xc2'),'type':_0x5b4be3('0xb37'),'options':{'excludedOperators':['$eq','$ne']}},{'name':_0x5b4be3('0x26ae'),'column':'closed','type':'select','values':[{'id':0x0,'translate':_0x5b4be3('0x166e')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x5b4be3('0x13f7')]}},{'name':_0x5b4be3('0x521'),'column':'User','type':_0x5b4be3('0x7e6'),'options':{'table':'i','route':{'model':_0x5b4be3('0x272b'),'action':_0x5b4be3('0x2122'),'params':{'role':_0x5b4be3('0xeff'),'fields':_0x5b4be3('0x25ff'),'nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x5b4be3('0x2082')],'excludedOperators':['$ne']}},{'name':'Tags','column':'Tag','type':_0x5b4be3('0x2468'),'options':{'route':{'model':_0x5b4be3('0x38f'),'action':_0x5b4be3('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5b4be3('0x930')]}},{'name':_0x5b4be3('0x12f1'),'column':_0x5b4be3('0x24a1'),'type':'date','options':{'excludedOperators':[_0x5b4be3('0x13f7')]}},{'name':_0x5b4be3('0x120b'),'column':_0x5b4be3('0x1551'),'type':'select','values':[{'id':0x1,'translate':_0x5b4be3('0xdc4')},{'id':0x0,'translate':_0x5b4be3('0x320')}],'options':{'excludedOperators':[_0x5b4be3('0x13f7')]}}];}function _0x38c3d3(){var _0xf9ee80=_0x3b535a;_0x510ffb[_0xf9ee80('0x1e6d')]({'controller':_0xf9ee80('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular['element'](_0x14f8a3[_0xf9ee80('0x54c')]),'clickOutsideToClose':![],'locals':{'fields':_0x5566f2['advancedSearch'][_0xf9ee80('0x13a')],'color':undefined,'storagePath':'chat.chatWebsites'},'fullscreen':!![]})[_0xf9ee80('0xaa5')](function(_0x1a0ccf){var _0x1e404b=_0xf9ee80;_0x5566f2[_0x1e404b('0x582')][_0x1e404b('0x1785')]=_0x1a0ccf===![]?undefined:_0x1a0ccf;if(_0x5566f2[_0x1e404b('0x582')][_0x1e404b('0x1785')])_0x4f3968();else _0x1a0ccf===![]&&_0x4f3968();})[_0xf9ee80('0x253d')](function(_0x24c932){var _0xbcd8ff=_0xf9ee80;_0x21871f['error']({'title':'ERROR','msg':_0x24c932[_0xbcd8ff('0x10fd')]?JSON[_0xbcd8ff('0xa48')](_0x24c932[_0xbcd8ff('0x10fd')][_0xbcd8ff('0x1402')]):_0x24c932['toString']()});});}function _0x89b48e(_0x19f052,_0x51adc4,_0x216fd2){var _0x5a93b0=_0x3b535a;return _0x143e28['chatInteraction'][_0x5a93b0('0x1cf9')]({'id':_0x19f052['id'],'exists':!![],'attachments':_0x216fd2})[_0x5a93b0('0x1dc2')][_0x5a93b0('0xaa5')](function(_0x54a442){var _0x136e3a=_0x5a93b0,_0x5a1510=[_0x54a442[_0x136e3a('0x1bf1')]],_0x483e48=_0x136e3a('0x1d86')+_0x19f052['id'],_0xe95d3=new Blob(_0x5a1510,{'type':_0x54a442[_0x136e3a('0x6c8')]});_0x483e48='chat-interaction'+_0x19f052['id']+_0x136e3a('0x966');var _0x236e40=window[_0x136e3a('0x12aa')][_0x136e3a('0x531')]('a');_0x236e40[_0x136e3a('0x107b')](_0x136e3a('0x18ae'),URL[_0x136e3a('0x1e56')](_0xe95d3)),_0x236e40[_0x136e3a('0x107b')]('download',_0x483e48),document[_0x136e3a('0x54c')][_0x136e3a('0x1315')](_0x236e40),_0x236e40[_0x136e3a('0x467')]();})[_0x5a93b0('0x253d')](function(_0x4f01fa){var _0x537454=_0x5a93b0;if(_0x4f01fa[_0x537454('0x10fd')]&&_0x4f01fa['data'][_0x537454('0x4c6')]&&_0x4f01fa[_0x537454('0x10fd')][_0x537454('0x4c6')][_0x537454('0x2587')])for(var _0x2843f0=0x0;_0x2843f0<_0x4f01fa['data'][_0x537454('0x4c6')][_0x537454('0x2587')];_0x2843f0+=0x1){_0x21871f[_0x537454('0x187f')]({'title':_0x4f01fa[_0x537454('0x10fd')][_0x537454('0x4c6')][_0x2843f0][_0x537454('0x6c8')],'msg':_0x4f01fa[_0x537454('0x10fd')][_0x537454('0x4c6')][_0x2843f0][_0x537454('0x1402')]});}else _0x21871f[_0x537454('0x187f')]({'title':_0x4f01fa['status']?_0x537454('0x16c2')+_0x4f01fa['status']+_0x537454('0x169e')+_0x4f01fa['statusText']:'api.chatWebsite.save','msg':_0x4f01fa[_0x537454('0x10fd')]?JSON['stringify'](_0x4f01fa[_0x537454('0x10fd')][_0x537454('0x1402')]):_0x4f01fa[_0x537454('0x684')]()});});}function _0x230da1(_0x21edf3,_0xd0286e){var _0x38b33e=_0x3b535a,_0x5c0cdd=_0x510ffb[_0x38b33e('0x281e')]()[_0x38b33e('0x110a')](_0x38b33e('0x625'))[_0x38b33e('0x102e')](_0x38b33e('0x389')+(_0x21edf3[_0x38b33e('0x25d6')]||_0x21edf3['id']&&_0x51538b()[_0x38b33e('0x1791')]('interaction\x20#')+_0x21edf3['id']||_0x38b33e('0x1d86'))+_0x38b33e('0x697')+_0x38b33e('0x210d'))[_0x38b33e('0x5b5')]('delete\x20interaction')['targetEvent'](_0xd0286e)['ok']('OK')[_0x38b33e('0x2030')](_0x38b33e('0x2410'));_0x510ffb[_0x38b33e('0x1e6d')](_0x5c0cdd)[_0x38b33e('0xaa5')](function(){_0xb634e7(_0x21edf3);},function(){var _0x26374e=_0x38b33e;console[_0x26374e('0x18d5')]('CANCEL');});}function _0x43f5f9(_0x59ccf0){var _0x419fc9=_0x3b535a;_0x5566f2[_0x419fc9('0xe27')]=_0x59ccf0||{'count':0x0,'rows':[]};for(var _0x5f508b=0x0;_0x5f508b<_0x5566f2['chatWebsiteInteractions'][_0x419fc9('0x580')][_0x419fc9('0x2587')];_0x5f508b+=0x1){var _0x4a8565=_0x5566f2[_0x419fc9('0xe27')][_0x419fc9('0x580')][_0x5f508b];_0x42846b(_0x4a8565),_0x4a8565[_0x419fc9('0x40')]['name']=_0x5200b1(_0x4a8565);}}function _0x4f3968(){var _0x191eb8=_0x3b535a;_0x5566f2[_0x191eb8('0x582')][_0x191eb8('0x8b1')]=(_0x5566f2[_0x191eb8('0x582')][_0x191eb8('0x41')]-0x1)*_0x5566f2['query'][_0x191eb8('0xf4d')],_0x5566f2[_0x191eb8('0x159a')]=_0x143e28['chatInteraction'][_0x191eb8('0x2122')](_0x5566f2['query'],_0x43f5f9)[_0x191eb8('0x1dc2')];}function _0x3643a6(_0x2be97e,_0x2b0c05){var _0x147be0=_0x3b535a;_0x510ffb['show']({'controller':_0x147be0('0x1fdf'),'controllerAs':'vm','templateUrl':_0x451de2,'parent':angular[_0x147be0('0x1aa8')](_0x14f8a3['body']),'targetEvent':_0x2be97e,'clickOutsideToClose':!![],'onShowing':function _0x3c6429(_0x47cc2d){var _0x1e2a41=_0x147be0;_0x47cc2d['vm'][_0x1e2a41('0x2e')]({'id':0x1,'channel':_0x1e2a41('0x20f9'),'interaction':_0x2b0c05,'spy':!![]},_0x459aba[_0x1e2a41('0x24a3')]['vm'][_0x1e2a41('0x143f')]);}});}function _0xb634e7(_0x31caf5){var _0x2c8a81=_0x3b535a;_0x143e28[_0x2c8a81('0x1917')][_0x2c8a81('0x926')]({'id':_0x31caf5['id']})[_0x2c8a81('0x1dc2')][_0x2c8a81('0xaa5')](function(){var _0x4d718b=_0x2c8a81;_0x51538b()[_0x4d718b('0xf6d')](_0x5566f2['chatWebsiteInteractions']['rows'],{'id':_0x31caf5['id']}),_0x5566f2['chatWebsiteInteractions']['count']-=0x1,!_0x5566f2['chatWebsiteInteractions'][_0x4d718b('0x580')]['length']&&_0x4f3968(),_0x21871f[_0x4d718b('0xe10')]({'title':_0x4d718b('0xd35'),'msg':_0x31caf5[_0x4d718b('0x25d6')]?_0x31caf5['name']+'\x20has\x20been\x20deleted!':''});})[_0x2c8a81('0x253d')](function(_0x145d73){var _0x2c69c7=_0x2c8a81;if(_0x145d73[_0x2c69c7('0x10fd')]&&_0x145d73['data'][_0x2c69c7('0x4c6')]&&_0x145d73[_0x2c69c7('0x10fd')][_0x2c69c7('0x4c6')]['length']){_0x5566f2['errors']=_0x145d73[_0x2c69c7('0x10fd')][_0x2c69c7('0x4c6')]||[{'message':_0x145d73['toString'](),'type':_0x2c69c7('0x1952')}];for(var _0x243ca8=0x0;_0x243ca8<_0x145d73['data']['errors'][_0x2c69c7('0x2587')];_0x243ca8++){_0x21871f[_0x2c69c7('0x187f')]({'title':_0x145d73[_0x2c69c7('0x10fd')][_0x2c69c7('0x4c6')][_0x243ca8][_0x2c69c7('0x6c8')],'msg':_0x145d73[_0x2c69c7('0x10fd')][_0x2c69c7('0x4c6')][_0x243ca8][_0x2c69c7('0x1402')]});}}else _0x21871f[_0x2c69c7('0x187f')]({'title':_0x145d73[_0x2c69c7('0x2fa')]?_0x2c69c7('0x16c2')+_0x145d73[_0x2c69c7('0x2fa')]+_0x2c69c7('0x169e')+_0x145d73[_0x2c69c7('0x24df')]:'SYSTEM:GETchatWebsite','msg':_0x145d73[_0x2c69c7('0x10fd')]?JSON[_0x2c69c7('0xa48')](_0x145d73['data']['message']):_0x145d73[_0x2c69c7('0x1402')]||_0x145d73['toString']()});});}function _0x4a5c11(){var _0x4a3e80=_0x3b535a,_0x1e4487=angular[_0x4a3e80('0x20a')](_0x5566f2[_0x4a3e80('0xa18')]);return _0x5566f2[_0x4a3e80('0xa18')]=[],_0x1e4487;}function _0x4ef1ad(_0x26cb75){var _0x468825=_0x3b535a,_0x5bac17=_0x510ffb[_0x468825('0x281e')]()[_0x468825('0x110a')](_0x468825('0x8e7'))[_0x468825('0x102e')](''+_0x5566f2[_0x468825('0xa18')]['length']+_0x468825('0x1443')+_0x468825('0x210d'))[_0x468825('0x5b5')]('delete\x20interactions')[_0x468825('0x116d')](_0x26cb75)['ok']('OK')[_0x468825('0x2030')](_0x468825('0x2410'));_0x510ffb[_0x468825('0x1e6d')](_0x5bac17)[_0x468825('0xaa5')](function(){var _0x3519fb=_0x468825;_0x5566f2[_0x3519fb('0xa18')]['forEach'](function(_0x28131e){_0xb634e7(_0x28131e);}),_0x5566f2[_0x3519fb('0xa18')]=[];});}function _0x42846b(_0x3e37f4){var _0x147679=_0x3b535a;_0x3e37f4[_0x147679('0x1dc')]?_0x3e37f4[_0x147679('0x4e0')]=(_0x3e37f4[_0x147679('0x1dc')]['firstName']||'')+'\x20'+(_0x3e37f4['Contact']['lastName']||''):_0x3e37f4['contactName']=_0x1beee1[_0x147679('0x213f')]('DASHBOARDS.UNKNOWN');}function _0x5200b1(_0x4e6c1e){var _0x54f704=_0x3b535a;if(_0x4e6c1e[_0x54f704('0x1037')])return _0x4e6c1e[_0x54f704('0x1037')]===_0x5566f2[_0x54f704('0x7fc')]['id']?_0x1beee1[_0x54f704('0x213f')](_0x54f704('0x1855')):_0x4e6c1e[_0x54f704('0x40')]['fullname']+'\x20<'+_0x4e6c1e[_0x54f704('0x40')][_0x54f704('0x1b0d')]+'>';return _0x1beee1[_0x54f704('0x213f')]('DASHBOARDS.NOT_ASSIGNED');}var _0x3e1ed6=!![],_0x1912e6=0x1;_0x459aba[_0x3b535a('0x1ccf')](_0x3b535a('0x74c'),function(_0x130123,_0x2452a9){var _0x1debbb=_0x3b535a;_0x3e1ed6?_0x250672(function(){_0x3e1ed6=![];}):(!_0x2452a9&&(_0x1912e6=_0x5566f2[_0x1debbb('0x582')][_0x1debbb('0x41')]),_0x130123!==_0x2452a9&&(_0x5566f2['query']['page']=0x1),!_0x130123&&(_0x5566f2[_0x1debbb('0x582')]['page']=_0x1912e6),_0x4f3968());});}const _0x22fe2f=_0xe9d86c;_0x2c27ce[_0x1a8446('0x1e33')]=['$cookies',_0x1a8446('0x2a4')];function _0x2c27ce(_0x1ef7dd,_0x1827d0){var _0x5f56bb=_0x1a8446,_0x2f10e6=this,_0x3c3a3c=0x8,_0x5c6a47=_0x3c3a3c*0x400*0x400;_0x2f10e6[_0x5f56bb('0x10f1')]={},_0x2f10e6['crudPermissions'],_0x2f10e6[_0x5f56bb('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5c6a47,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2f10e6['ngFlow']={'flow':{}},_0x2f10e6[_0x5f56bb('0x258f')]=![],_0x2f10e6['fileAdded']=_0x291ec5,_0x2f10e6[_0x5f56bb('0x158b')]=_0x11fa26,_0x2f10e6['fileSuccess']=_0x32fea2,_0x2f10e6['init']=_0x10c53;function _0x10c53(_0x5ac553,_0x4332eb){var _0x59df16=_0x5f56bb;_0x2f10e6[_0x59df16('0x10f1')]=angular[_0x59df16('0x20a')](_0x5ac553),_0x2f10e6['crudPermissions']=typeof _0x4332eb!==_0x59df16('0x1574')?_0x4332eb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2f10e6['ngFlowOptions'][_0x59df16('0xe2e')]=_0x59df16('0x975')[_0x59df16('0x170d')](':id',_0x2f10e6[_0x59df16('0x10f1')]['id']),_0x2f10e6[_0x59df16('0x10f1')]['images']=[];}function _0x291ec5(_0x27d182){var _0x3b89de=_0x5f56bb,_0x1fc837=[_0x3b89de('0x981'),'jpg'];if(!_0x51538b()[_0x3b89de('0x13d6')](_0x1fc837,_0x27d182[_0x3b89de('0x177a')]()))return _0x1827d0[_0x3b89de('0x187f')]({'title':'Invalid\x20extension:\x20'+_0x27d182[_0x3b89de('0x177a')](),'msg':_0x3b89de('0x88f')+_0x1fc837[_0x3b89de('0x19c4')]()}),![];if(_0x27d182['size']>_0x5c6a47)return _0x1827d0[_0x3b89de('0x187f')]({'title':_0x3b89de('0xfad'),'msg':_0x3b89de('0x15dd')+_0x3c3a3c+'MB'}),![];var _0xf8e08f={'id':_0x27d182['uniqueIdentifier'],'file':_0x27d182,'type':_0x3b89de('0x10d')};return _0x2f10e6[_0x3b89de('0x10f1')][_0x3b89de('0x1b2d')][_0x3b89de('0x6ee')](_0xf8e08f),!![];}function _0x11fa26(){var _0x50a3b0=_0x5f56bb;_0x2f10e6[_0x50a3b0('0x27cd')][_0x50a3b0('0xcba')][_0x50a3b0('0x177d')][_0x50a3b0('0xc71')]={'X-Requested-With':_0x50a3b0('0x1888'),'Authorization':_0x50a3b0('0x2070')+_0x1ef7dd[_0x50a3b0('0x2122')]('motion.token')},_0x2f10e6[_0x50a3b0('0x27cd')][_0x50a3b0('0xcba')][_0x50a3b0('0x158b')]();}function _0x32fea2(_0x154a59){var _0x3c69bd=_0x5f56bb;angular[_0x3c69bd('0x15b5')](_0x2f10e6['chatWebsite'][_0x3c69bd('0x1b2d')],function(_0x1a9a3c){var _0x246e19=_0x3c69bd;if(_0x1a9a3c['id']===_0x154a59['uniqueIdentifier']){var _0x4dd453=new FileReader();_0x4dd453['readAsDataURL'](_0x1a9a3c[_0x246e19('0x1945')][_0x246e19('0x1945')]),_0x4dd453[_0x246e19('0x224e')]=function(_0x322198){var _0x277c35=_0x246e19;_0x1a9a3c[_0x277c35('0x2242')]=_0x322198['target'][_0x277c35('0xcd6')];},_0x1a9a3c[_0x246e19('0x6c8')]='image';}});}}const _0x3ce56e=_0x2c27ce,_0x9a836=_0x4fb511['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog-[chunkhash].html';_0x59af71[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),'$scope',_0x1a8446('0x145b'),'$q','$translate','$timeout',_0x1a8446('0x2378'),_0x1a8446('0x39b'),'toasty',_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x59af71(_0x2e7c75,_0x532170,_0x463356,_0x4cb0b5,_0x5039e9,_0x3e5876,_0x4fb37d,_0x5e4c6a,_0x2511db,_0x392919,_0x50798a){var _0x4af12b=_0x1a8446,_0x40e20c=this;_0x40e20c[_0x4af12b('0x7fc')]=_0x50798a[_0x4af12b('0xacc')](),_0x40e20c['chatWebsite']={},_0x40e20c['chatWebsiteOfflineMessages']={'count':0x0,'rows':[]},_0x40e20c[_0x4af12b('0x1983')]=[],_0x40e20c['crudPermissions'],_0x40e20c[_0x4af12b('0x582')]={'fields':'createdAt,updatedAt,id,Contact.firstName','sort':'-createdAt','limit':0xa,'page':0x1},_0x40e20c[_0x4af12b('0x2e')]=_0x25fae1,_0x40e20c[_0x4af12b('0x1416')]=_0x24b67e,_0x40e20c[_0x4af12b('0xe10')]=_0x29a7c8,_0x40e20c['getChatWebsiteOfflineMessages']=_0x431010,_0x40e20c[_0x4af12b('0x15b0')]=_0x481323,_0x40e20c['showOfflineMessageChatWebsiteOfflineMessage']=_0x219ab9,_0x40e20c[_0x4af12b('0x971')]=_0x41bb57,_0x40e20c[_0x4af12b('0x2668')]=_0x452d62,_0x40e20c[_0x4af12b('0x803')]=_0x296d16;function _0x25fae1(_0x1a63f0,_0x1c9920){var _0x3d1869=_0x4af12b;_0x40e20c[_0x3d1869('0x10f1')]=_0x1a63f0,_0x40e20c[_0x3d1869('0xada')]=typeof _0x1c9920!==_0x3d1869('0x1574')?_0x1c9920:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x40e20c[_0x3d1869('0x582')]['id']=_0x40e20c[_0x3d1869('0x10f1')]['id'],_0x431010();}function _0x24b67e(_0x396af8,_0x5925b1){var _0x2f9aa2=_0x4af12b,_0x1fd42e=_0x4fb37d[_0x2f9aa2('0x281e')]()[_0x2f9aa2('0x110a')](_0x2f9aa2('0x26a0'))[_0x2f9aa2('0x102e')](_0x2f9aa2('0x389')+(_0x396af8['name']||_0x396af8['id']&&_0x51538b()[_0x2f9aa2('0x1791')](_0x2f9aa2('0x246b'))+_0x396af8['id']||_0x2f9aa2('0x1922'))+_0x2f9aa2('0x697')+_0x2f9aa2('0x210d'))[_0x2f9aa2('0x5b5')](_0x2f9aa2('0x337'))[_0x2f9aa2('0x116d')](_0x5925b1)['ok']('OK')[_0x2f9aa2('0x2030')](_0x2f9aa2('0x2410'));_0x4fb37d[_0x2f9aa2('0x1e6d')](_0x1fd42e)[_0x2f9aa2('0xaa5')](function(){_0x452d62(_0x396af8);},function(){var _0x401455=_0x2f9aa2;console[_0x401455('0x18d5')]('CANCEL');});}function _0x29a7c8(_0xb820f1){_0x40e20c['chatWebsiteOfflineMessages']=_0xb820f1||{'count':0x0,'rows':[]};}function _0x431010(){var _0x4881af=_0x4af12b;_0x40e20c[_0x4881af('0x582')][_0x4881af('0x8b1')]=(_0x40e20c[_0x4881af('0x582')][_0x4881af('0x41')]-0x1)*_0x40e20c['query']['limit'],_0x40e20c[_0x4881af('0x159a')]=_0x392919[_0x4881af('0x10f1')]['getOfflineMessages'](_0x40e20c[_0x4881af('0x582')],_0x29a7c8)[_0x4881af('0x1dc2')];}function _0x481323(_0x6731ed,_0x4514fd){var _0x20698b=_0x4af12b;_0x4fb37d[_0x20698b('0x1e6d')]({'controller':_0x20698b('0x1b83'),'controllerAs':'vm','templateUrl':_0x9a836,'parent':angular[_0x20698b('0x1aa8')](_0x5e4c6a[_0x20698b('0x54c')]),'targetEvent':_0x6731ed,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x40e20c[_0x20698b('0x10f1')],'offlineMessage':_0x4514fd,'offlineMessages':_0x40e20c['chatWebsiteOfflineMessages'][_0x20698b('0x580')],'license':null,'setting':null,'crudPermissions':_0x40e20c['crudPermissions']}});}function _0x219ab9(_0xded035,_0x13aefc){var _0x1f1ce7=_0x4af12b;_0x4fb37d[_0x1f1ce7('0x1e6d')]({'controller':'ShowOfflineMessageOfflineMessageDialogController','controllerAs':'vm','templateUrl':_0x9a836,'parent':angular[_0x1f1ce7('0x1aa8')](_0x5e4c6a[_0x1f1ce7('0x54c')]),'targetEvent':_0xded035,'clickOutsideToClose':!![],'resolve':{'message':[_0x1f1ce7('0x1d16'),function _0x193f7d(_0x58fc0d){var _0x22e0ae=_0x1f1ce7;return _0x58fc0d['resolve'](_0x22e0ae('0x2b'),{'fields':_0x22e0ae('0xfe1'),'id':_0x13aefc['id']});}]}});}function _0x452d62(_0x4d8f55){var _0x234ef5=_0x4af12b;_0x392919[_0x234ef5('0x24ab')][_0x234ef5('0x926')]({'id':_0x4d8f55['id']})[_0x234ef5('0x1dc2')][_0x234ef5('0xaa5')](function(){var _0x30a774=_0x234ef5;_0x51538b()[_0x30a774('0xf6d')](_0x40e20c['chatWebsiteOfflineMessages'][_0x30a774('0x580')],{'id':_0x4d8f55['id']}),_0x40e20c[_0x30a774('0x9cb')][_0x30a774('0xd15')]-=0x1,!_0x40e20c[_0x30a774('0x9cb')][_0x30a774('0x580')][_0x30a774('0x2587')]&&_0x431010(),_0x2511db[_0x30a774('0xe10')]({'title':_0x30a774('0x1338'),'msg':_0x4d8f55[_0x30a774('0x25d6')]?_0x4d8f55[_0x30a774('0x25d6')]+_0x30a774('0xcd9'):''});})['catch'](function(_0x482e1f){var _0x35ab1f=_0x234ef5;if(_0x482e1f[_0x35ab1f('0x10fd')]&&_0x482e1f['data'][_0x35ab1f('0x4c6')]&&_0x482e1f[_0x35ab1f('0x10fd')][_0x35ab1f('0x4c6')][_0x35ab1f('0x2587')]){_0x40e20c['errors']=_0x482e1f[_0x35ab1f('0x10fd')][_0x35ab1f('0x4c6')]||[{'message':_0x482e1f[_0x35ab1f('0x684')](),'type':'SYSTEM:GETchatWebsite'}];for(var _0x5fd3c8=0x0;_0x5fd3c8<_0x482e1f[_0x35ab1f('0x10fd')][_0x35ab1f('0x4c6')][_0x35ab1f('0x2587')];_0x5fd3c8++){_0x2511db[_0x35ab1f('0x187f')]({'title':_0x482e1f['data'][_0x35ab1f('0x4c6')][_0x5fd3c8][_0x35ab1f('0x6c8')],'msg':_0x482e1f[_0x35ab1f('0x10fd')][_0x35ab1f('0x4c6')][_0x5fd3c8]['message']});}}else _0x2511db[_0x35ab1f('0x187f')]({'title':_0x482e1f[_0x35ab1f('0x2fa')]?_0x35ab1f('0x16c2')+_0x482e1f['status']+'\x20-\x20'+_0x482e1f['statusText']:_0x35ab1f('0x1952'),'msg':_0x482e1f[_0x35ab1f('0x10fd')]?JSON[_0x35ab1f('0xa48')](_0x482e1f['data'][_0x35ab1f('0x1402')]):_0x482e1f['message']||_0x482e1f[_0x35ab1f('0x684')]()});});}function _0x41bb57(){var _0x241425=_0x4af12b,_0x3ba5ad=angular['copy'](_0x40e20c[_0x241425('0x1983')]);return _0x40e20c['selectedChatWebsiteOfflineMessages']=[],_0x3ba5ad;}function _0x296d16(_0x24c3eb){var _0x177d8f=_0x4af12b,_0x39ba02=_0x4fb37d[_0x177d8f('0x281e')]()[_0x177d8f('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?')['htmlContent'](_0x177d8f('0x389')+_0x40e20c[_0x177d8f('0x1983')][_0x177d8f('0x2587')]+_0x177d8f('0x1443')+_0x177d8f('0x210d'))[_0x177d8f('0x5b5')](_0x177d8f('0x115d'))[_0x177d8f('0x116d')](_0x24c3eb)['ok']('OK')['cancel'](_0x177d8f('0x2410'));_0x4fb37d[_0x177d8f('0x1e6d')](_0x39ba02)['then'](function(){var _0x212134=_0x177d8f;_0x40e20c[_0x212134('0x1983')][_0x212134('0x15b5')](function(_0x22cd64){_0x452d62(_0x22cd64);}),_0x40e20c['selectedChatWebsiteOfflineMessages']=[];});}var _0x20331b=!![],_0x1f70da=0x1;_0x532170[_0x4af12b('0x1ccf')]('vm_dc.query.filter',function(_0x1b22f4,_0x4655eb){var _0xb330a8=_0x4af12b;_0x20331b?_0x3e5876(function(){_0x20331b=![];}):(!_0x4655eb&&(_0x1f70da=_0x40e20c[_0xb330a8('0x582')][_0xb330a8('0x41')]),_0x1b22f4!==_0x4655eb&&(_0x40e20c[_0xb330a8('0x582')]['page']=0x1),!_0x1b22f4&&(_0x40e20c['query'][_0xb330a8('0x41')]=_0x1f70da),_0x431010());});}const _0x5e801d=_0x59af71;_0x2e3113[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x1402')];function _0x2e3113(_0x2488f2,_0x2868a5){var _0x31931f=_0x1a8446,_0x59a3f8=this;_0x59a3f8['title']=_0x31931f('0x737'),_0x59a3f8[_0x31931f('0x1402')]=_0x2868a5,_0x59a3f8[_0x31931f('0x2023')]=_0x17b6ca;function _0x17b6ca(_0x538c36){var _0x380487=_0x31931f;_0x2488f2[_0x380487('0x1120')](_0x538c36);}}const _0x51e0f5=_0x2e3113,_0x28cbbc=_0x4fb511['p']+_0x1a8446('0x21f0');_0x5cfb9a[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),'$state','$q','$translate',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),'Auth'];function _0x5cfb9a(_0x282484,_0x163e75,_0x107e34,_0x305c10,_0x5efd9a,_0x5c4955,_0x3b0e15,_0x4f09aa,_0x2a4114,_0x1d0438,_0x23ca97){var _0x188b96=_0x1a8446,_0x1aa301=this;_0x1aa301[_0x188b96('0x7fc')]=_0x23ca97[_0x188b96('0xacc')](),_0x1aa301[_0x188b96('0x10f1')]={},_0x1aa301[_0x188b96('0x22e0')]={'count':0x0,'rows':[]},_0x1aa301['selectedChatWebsiteProactiveActions']=[],_0x1aa301['crudPermissions'],_0x1aa301['query']={'fields':_0x188b96('0x78a'),'limit':0xa,'page':0x1},_0x1aa301[_0x188b96('0x1bee')]=_0x51538b()[_0x188b96('0x184a')]([{'option':_0x188b96('0x184f'),'value':_0x188b96('0xe5d')},{'option':_0x188b96('0xc45'),'value':_0x188b96('0x1342')}],function(_0x406ce7){var _0xc86ccf=_0x188b96;return _0x51538b()[_0xc86ccf('0x170d')](_0x406ce7[_0xc86ccf('0x12f4')],new RegExp('\x27','g'),'');}),_0x1aa301[_0x188b96('0x2e')]=_0x696e6b,_0x1aa301[_0x188b96('0x1416')]=_0x520df2,_0x1aa301[_0x188b96('0xe10')]=_0x388654,_0x1aa301[_0x188b96('0x20c')]=_0x4842a1,_0x1aa301[_0x188b96('0x24e0')]=_0x268477,_0x1aa301[_0x188b96('0x1974')]=_0x3614f4,_0x1aa301[_0x188b96('0x13bf')]=_0x448077,_0x1aa301[_0x188b96('0xfa7')]=_0x472675;function _0x696e6b(_0x3e3c50,_0x42eff1){var _0x556de1=_0x188b96;_0x1aa301['chatWebsite']=_0x3e3c50,_0x1aa301[_0x556de1('0xada')]=typeof _0x42eff1!==_0x556de1('0x1574')?_0x42eff1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1aa301[_0x556de1('0x582')][_0x556de1('0x1421')]=_0x1aa301[_0x556de1('0x10f1')]['id'],_0x1aa301[_0x556de1('0x582')]['id']=_0x1aa301[_0x556de1('0x10f1')]['id'],_0x4842a1();}function _0x520df2(_0x43cb50,_0x412a62){var _0x55af2=_0x188b96,_0x457f9a=_0x3b0e15[_0x55af2('0x281e')]()[_0x55af2('0x110a')](_0x55af2('0x182d'))[_0x55af2('0x102e')](_0x55af2('0x389')+(_0x43cb50[_0x55af2('0x25d6')]||_0x43cb50['id']&&_0x51538b()[_0x55af2('0x1791')](_0x55af2('0xf79'))+_0x43cb50['id']||'chatProactiveAction')+_0x55af2('0x697')+_0x55af2('0x210d'))[_0x55af2('0x5b5')](_0x55af2('0x544'))[_0x55af2('0x116d')](_0x412a62)['ok']('OK')[_0x55af2('0x2030')]('CANCEL');_0x3b0e15[_0x55af2('0x1e6d')](_0x457f9a)['then'](function(){_0x448077(_0x43cb50);},function(){var _0x5ebb57=_0x55af2;console['log'](_0x5ebb57('0x2410'));});}function _0x388654(_0x31fcb6){var _0x121685=_0x188b96;_0x1aa301[_0x121685('0x22e0')]=_0x31fcb6||{'count':0x0,'rows':[]};}function _0x4842a1(){var _0x134750=_0x188b96;_0x1aa301['query'][_0x134750('0x8b1')]=(_0x1aa301[_0x134750('0x582')][_0x134750('0x41')]-0x1)*_0x1aa301[_0x134750('0x582')]['limit'],_0x1aa301[_0x134750('0x159a')]=_0x1d0438[_0x134750('0x10f1')][_0x134750('0xa58')](_0x1aa301[_0x134750('0x582')],_0x388654)[_0x134750('0x1dc2')];}function _0x268477(_0x3b9cc4,_0x48dab0){var _0x2ab976=_0x188b96;_0x3b0e15[_0x2ab976('0x1e6d')]({'controller':'CreateOrEditChatProactiveActionDialogController','controllerAs':'vm','templateUrl':_0x28cbbc,'parent':angular[_0x2ab976('0x1aa8')](_0x4f09aa[_0x2ab976('0x54c')]),'targetEvent':_0x3b9cc4,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x1aa301[_0x2ab976('0x10f1')],'chatProactiveAction':_0x48dab0,'proactive':_0x1aa301[_0x2ab976('0x22e0')][_0x2ab976('0x580')],'license':null,'setting':null,'crudPermissions':_0x1aa301['crudPermissions']}});}function _0x448077(_0x2ebcd7){var _0x5945d6=_0x188b96;_0x1d0438[_0x5945d6('0x1865')][_0x5945d6('0x926')]({'id':_0x2ebcd7['id']})[_0x5945d6('0x1dc2')][_0x5945d6('0xaa5')](function(){var _0x1278b5=_0x5945d6;_0x51538b()[_0x1278b5('0xf6d')](_0x1aa301[_0x1278b5('0x22e0')][_0x1278b5('0x580')],{'id':_0x2ebcd7['id']}),_0x1aa301[_0x1278b5('0x22e0')][_0x1278b5('0xd15')]-=0x1,!_0x1aa301[_0x1278b5('0x22e0')][_0x1278b5('0x580')][_0x1278b5('0x2587')]&&_0x4842a1(),_0x2a4114['success']({'title':_0x1278b5('0x135c'),'msg':_0x2ebcd7['name']?_0x2ebcd7['name']+_0x1278b5('0xcd9'):''});})[_0x5945d6('0x253d')](function(_0x405145){var _0x5c8dce=_0x5945d6;if(_0x405145[_0x5c8dce('0x10fd')]&&_0x405145['data']['errors']&&_0x405145[_0x5c8dce('0x10fd')][_0x5c8dce('0x4c6')]['length']){_0x1aa301[_0x5c8dce('0x4c6')]=_0x405145['data'][_0x5c8dce('0x4c6')]||[{'message':_0x405145['toString'](),'type':_0x5c8dce('0x1952')}];for(var _0x4f8958=0x0;_0x4f8958<_0x405145[_0x5c8dce('0x10fd')]['errors'][_0x5c8dce('0x2587')];_0x4f8958++){_0x2a4114[_0x5c8dce('0x187f')]({'title':_0x405145[_0x5c8dce('0x10fd')][_0x5c8dce('0x4c6')][_0x4f8958][_0x5c8dce('0x6c8')],'msg':_0x405145[_0x5c8dce('0x10fd')]['errors'][_0x4f8958][_0x5c8dce('0x1402')]});}}else _0x2a4114[_0x5c8dce('0x187f')]({'title':_0x405145[_0x5c8dce('0x2fa')]?_0x5c8dce('0x16c2')+_0x405145[_0x5c8dce('0x2fa')]+_0x5c8dce('0x169e')+_0x405145[_0x5c8dce('0x24df')]:_0x5c8dce('0x1952'),'msg':_0x405145[_0x5c8dce('0x10fd')]?JSON[_0x5c8dce('0xa48')](_0x405145['data'][_0x5c8dce('0x1402')]):_0x405145[_0x5c8dce('0x1402')]||_0x405145[_0x5c8dce('0x684')]()});});}function _0x3614f4(){var _0x49e4bb=_0x188b96,_0x3c7dfb=angular[_0x49e4bb('0x20a')](_0x1aa301[_0x49e4bb('0x1753')]);return _0x1aa301[_0x49e4bb('0x1753')]=[],_0x3c7dfb;}function _0x472675(_0x3061e2){var _0x42e799=_0x188b96,_0x806c20=_0x3b0e15[_0x42e799('0x281e')]()[_0x42e799('0x110a')](_0x42e799('0xd0d'))[_0x42e799('0x102e')](_0x42e799('0x389')+_0x1aa301[_0x42e799('0x1753')][_0x42e799('0x2587')]+_0x42e799('0x1443')+_0x42e799('0x210d'))['ariaLabel']('delete\x20proactive')[_0x42e799('0x116d')](_0x3061e2)['ok']('OK')['cancel']('CANCEL');_0x3b0e15['show'](_0x806c20)[_0x42e799('0xaa5')](function(){var _0x59629f=_0x42e799;_0x1aa301[_0x59629f('0x1753')][_0x59629f('0x15b5')](function(_0x135f47){_0x448077(_0x135f47);}),_0x1aa301['selectedChatWebsiteProactiveActions']=[];});}var _0x444966=!![],_0x15492d=0x1;_0x163e75[_0x188b96('0x1ccf')]('vm_dc.query.filter',function(_0x4fb19e,_0x145425){var _0x4af0f3=_0x188b96;_0x444966?_0x5c4955(function(){_0x444966=![];}):(!_0x145425&&(_0x15492d=_0x1aa301[_0x4af0f3('0x582')][_0x4af0f3('0x41')]),_0x4fb19e!==_0x145425&&(_0x1aa301[_0x4af0f3('0x582')]['page']=0x1),!_0x4fb19e&&(_0x1aa301[_0x4af0f3('0x582')][_0x4af0f3('0x41')]=_0x15492d),_0x4842a1());});}const _0x2eb9b7=_0x5cfb9a;_0x1206ae['$inject']=['$scope',_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q','$translate','toasty',_0x1a8446('0x557'),_0x1a8446('0x1865'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x1206ae(_0x4a82c0,_0x5b403f,_0x4ca4d9,_0x2f6764,_0x43aaad,_0x4f9e5a,_0x109264,_0x1da2ae,_0x4dd2b6,_0x2d2e11,_0x2e654d,_0x51921f,_0x3c5ae2,_0x1b7bc9){var _0x1135db=_0x1a8446,_0x3a5c47=this;_0x3a5c47['currentUser']=_0x2e654d[_0x1135db('0xacc')](),_0x3a5c47[_0x1135db('0x4c6')]=[],_0x3a5c47[_0x1135db('0x143f')]=_0x3c5ae2,_0x3a5c47[_0x1135db('0x1202')]=_0x51921f,_0x3a5c47[_0x1135db('0xada')]=_0x1b7bc9,_0x3a5c47[_0x1135db('0x9f0')]={},_0x3a5c47[_0x1135db('0x1d53')]=_0x3a5c47[_0x1135db('0x143f')]&&_0x3a5c47[_0x1135db('0x143f')][_0x1135db('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a5c47[_0x1135db('0x110a')]=_0x1135db('0x105b'),_0x3a5c47[_0x1135db('0x1865')]=angular[_0x1135db('0x20a')](_0x4dd2b6),_0x3a5c47[_0x1135db('0x557')]=_0x1da2ae,_0x3a5c47[_0x1135db('0x279f')]=![];!_0x3a5c47['chatProactiveAction']&&(_0x3a5c47['chatProactiveAction']={'type':_0x1135db('0x276d')},_0x3a5c47[_0x1135db('0x110a')]=_0x1135db('0xbf4'),_0x3a5c47[_0x1135db('0x279f')]=!![]);_0x5b403f[_0x1135db('0x25cf')]['id']&&(_0x3a5c47[_0x1135db('0x1865')][_0x1135db('0x1421')]=_0x5b403f['params']['id']);_0x3a5c47[_0x1135db('0x1d84')]=_0x201b6c,_0x3a5c47[_0x1135db('0x1047')]=_0x532a46,_0x3a5c47['deleteChatProactiveAction']=_0x3ab587,_0x3a5c47[_0x1135db('0xc09')]=_0x30ecf9,_0x3a5c47['closeDialog']=_0x3f9542;function _0x201b6c(){var _0x408b45=_0x1135db;_0x3a5c47[_0x408b45('0x4c6')]=[],_0x2d2e11[_0x408b45('0x1865')][_0x408b45('0x242b')](_0x3a5c47[_0x408b45('0x1865')])[_0x408b45('0x1dc2')]['then'](function(_0x2cb34e){var _0x424d88=_0x408b45;_0x3a5c47[_0x424d88('0x557')][_0x424d88('0x6ee')](_0x2cb34e[_0x424d88('0x256a')]()),_0x109264[_0x424d88('0xe10')]({'title':_0x424d88('0x7c6'),'msg':_0x3a5c47['chatProactiveAction'][_0x424d88('0x25d6')]?_0x3a5c47[_0x424d88('0x1865')][_0x424d88('0x25d6')]+_0x424d88('0xdca'):''}),_0x3f9542(_0x2cb34e);})['catch'](function(_0x293923){var _0x50a6d0=_0x408b45;if(_0x293923[_0x50a6d0('0x10fd')]&&_0x293923['data']['errors']&&_0x293923[_0x50a6d0('0x10fd')][_0x50a6d0('0x4c6')][_0x50a6d0('0x2587')]){_0x3a5c47[_0x50a6d0('0x4c6')]=_0x293923['data'][_0x50a6d0('0x4c6')]||[{'message':_0x293923[_0x50a6d0('0x684')](),'type':'api.chatProactiveAction.save'}];for(var _0x1f3e0f=0x0;_0x1f3e0f<_0x293923['data'][_0x50a6d0('0x4c6')][_0x50a6d0('0x2587')];_0x1f3e0f+=0x1){_0x109264[_0x50a6d0('0x187f')]({'title':_0x293923['data']['errors'][_0x1f3e0f][_0x50a6d0('0x6c8')],'msg':_0x293923['data'][_0x50a6d0('0x4c6')][_0x1f3e0f]['message']});}}else _0x109264[_0x50a6d0('0x187f')]({'title':_0x293923[_0x50a6d0('0x2fa')]?_0x50a6d0('0x16c2')+_0x293923[_0x50a6d0('0x2fa')]+_0x50a6d0('0x169e')+_0x293923[_0x50a6d0('0x24df')]:_0x50a6d0('0x44c'),'msg':_0x293923[_0x50a6d0('0x10fd')]?JSON[_0x50a6d0('0xa48')](_0x293923['data'][_0x50a6d0('0x1402')]):_0x293923[_0x50a6d0('0x684')]()});});}function _0x532a46(){var _0x1ed53f=_0x1135db;_0x3a5c47[_0x1ed53f('0x4c6')]=[],_0x2d2e11[_0x1ed53f('0x1865')][_0x1ed53f('0x264e')]({'id':_0x3a5c47[_0x1ed53f('0x1865')]['id']},_0x3a5c47[_0x1ed53f('0x1865')])[_0x1ed53f('0x1dc2')][_0x1ed53f('0xaa5')](function(_0x447107){var _0x170bf3=_0x1ed53f,_0xc36210=_0x51538b()[_0x170bf3('0xe9e')](_0x3a5c47['proactive'],{'id':_0x447107['id']});_0xc36210&&_0x51538b()[_0x170bf3('0x283c')](_0xc36210,_0x51538b()[_0x170bf3('0x104e')](_0x447107[_0x170bf3('0x256a')](),_0x51538b()['keys'](_0xc36210))),_0x109264[_0x170bf3('0xe10')]({'title':_0x170bf3('0x1e68'),'msg':_0x3a5c47[_0x170bf3('0x1865')][_0x170bf3('0x25d6')]?_0x3a5c47[_0x170bf3('0x1865')][_0x170bf3('0x25d6')]+_0x170bf3('0x20bf'):''}),_0x3f9542(_0x447107);})[_0x1ed53f('0x253d')](function(_0x33839a){var _0x15f2a7=_0x1ed53f;if(_0x33839a[_0x15f2a7('0x10fd')]&&_0x33839a[_0x15f2a7('0x10fd')]['errors']&&_0x33839a[_0x15f2a7('0x10fd')][_0x15f2a7('0x4c6')]['length']){_0x3a5c47[_0x15f2a7('0x4c6')]=_0x33839a[_0x15f2a7('0x10fd')][_0x15f2a7('0x4c6')]||[{'message':_0x33839a['toString'](),'type':_0x15f2a7('0x1b48')}];for(var _0x3aa493=0x0;_0x3aa493<_0x33839a[_0x15f2a7('0x10fd')][_0x15f2a7('0x4c6')]['length'];_0x3aa493++){_0x109264[_0x15f2a7('0x187f')]({'title':_0x33839a[_0x15f2a7('0x10fd')]['errors'][_0x3aa493][_0x15f2a7('0x6c8')],'msg':_0x33839a['data'][_0x15f2a7('0x4c6')][_0x3aa493][_0x15f2a7('0x1402')]});}}else _0x109264[_0x15f2a7('0x187f')]({'title':_0x33839a['status']?_0x15f2a7('0x16c2')+_0x33839a[_0x15f2a7('0x2fa')]+_0x15f2a7('0x169e')+_0x33839a['statusText']:'api.chatProactiveAction.update','msg':_0x33839a[_0x15f2a7('0x10fd')]?JSON[_0x15f2a7('0xa48')](_0x33839a['data'][_0x15f2a7('0x1402')]):_0x33839a[_0x15f2a7('0x684')]()});});}function _0x3ab587(_0x4ec2f4){var _0x3753bf=_0x1135db;_0x3a5c47[_0x3753bf('0x4c6')]=[];var _0x41cf7b=_0x2f6764['confirm']()[_0x3753bf('0x110a')]('Are\x20you\x20sure?')[_0x3753bf('0x15af')](_0x3753bf('0x22fe'))[_0x3753bf('0x5b5')]('Delete\x20ChatProactiveAction')['ok']('Delete')[_0x3753bf('0x2030')](_0x3753bf('0x9c6'))['targetEvent'](_0x4ec2f4);_0x2f6764[_0x3753bf('0x1e6d')](_0x41cf7b)['then'](function(){var _0x1aa7a1=_0x3753bf;_0x2d2e11['chatProactiveAction'][_0x1aa7a1('0x926')]({'id':_0x3a5c47[_0x1aa7a1('0x1865')]['id']})['$promise'][_0x1aa7a1('0xaa5')](function(){var _0x3ea1ec=_0x1aa7a1;_0x51538b()[_0x3ea1ec('0xf6d')](_0x3a5c47[_0x3ea1ec('0x557')],{'id':_0x3a5c47[_0x3ea1ec('0x1865')]['id']}),_0x109264[_0x3ea1ec('0xe10')]({'title':_0x3ea1ec('0x2403'),'msg':(_0x3a5c47[_0x3ea1ec('0x1865')][_0x3ea1ec('0x25d6')]||'chatProactiveAction')+_0x3ea1ec('0xcd9')}),_0x3f9542(_0x3a5c47[_0x3ea1ec('0x1865')]);})['catch'](function(_0x2ce75e){var _0x2fb5f4=_0x1aa7a1;if(_0x2ce75e['data']&&_0x2ce75e[_0x2fb5f4('0x10fd')]['errors']&&_0x2ce75e['data'][_0x2fb5f4('0x4c6')][_0x2fb5f4('0x2587')]){_0x3a5c47[_0x2fb5f4('0x4c6')]=_0x2ce75e['data'][_0x2fb5f4('0x4c6')]||[{'message':_0x2ce75e[_0x2fb5f4('0x684')](),'type':'api.chatProactiveAction.delete'}];for(var _0x2c7927=0x0;_0x2c7927<_0x2ce75e[_0x2fb5f4('0x10fd')]['errors']['length'];_0x2c7927++){_0x109264[_0x2fb5f4('0x187f')]({'title':_0x2ce75e[_0x2fb5f4('0x10fd')]['errors'][_0x2c7927][_0x2fb5f4('0x6c8')],'msg':_0x2ce75e[_0x2fb5f4('0x10fd')][_0x2fb5f4('0x4c6')][_0x2c7927][_0x2fb5f4('0x1402')]});}}else _0x109264[_0x2fb5f4('0x187f')]({'title':_0x2ce75e[_0x2fb5f4('0x2fa')]?_0x2fb5f4('0x16c2')+_0x2ce75e['status']+_0x2fb5f4('0x169e')+_0x2ce75e['statusText']:'api.chatProactiveAction.delete','msg':_0x2ce75e[_0x2fb5f4('0x10fd')]?JSON[_0x2fb5f4('0xa48')](_0x2ce75e[_0x2fb5f4('0x10fd')]['message']):_0x2ce75e[_0x2fb5f4('0x1402')]||_0x2ce75e[_0x2fb5f4('0x684')]()});});},function(){});}function _0x30ecf9(_0x52791f){return _0x52791f===null?undefined:new Date(_0x52791f);}function _0x3f9542(_0x1f6abb){var _0x7c583=_0x1135db;_0x2f6764[_0x7c583('0x1120')](_0x1f6abb);}}const _0x3ef1fc=_0x1206ae;_0x32dc93['$inject']=['$scope'];function _0x32dc93(_0x1b7f71){var _0x547f1b=_0x1a8446,_0x5e3044=this;_0x5e3044[_0x547f1b('0x10f1')]={},_0x5e3044['init']=_0x25b379,_0x5e3044[_0x547f1b('0x3a1')]={};function _0x25b379(_0x21a2b2){var _0x349ac9=_0x547f1b;_0x5e3044[_0x349ac9('0x10f1')]=_0x21a2b2,_0x5e3044[_0x349ac9('0x1186')]=_0x349ac9('0x644'),_0x5e3044[_0x349ac9('0xfde')]=_0x349ac9('0xcf4')+_0x5e3044[_0x349ac9('0x10f1')][_0x349ac9('0xd72')]+_0x349ac9('0xe8e')+_0x5e3044[_0x349ac9('0x10f1')]['id']+'/snippet?token='+_0x5e3044['chatWebsite'][_0x349ac9('0xbe2')]+_0x349ac9('0x1e46'),_0x5e3044['end']=_0x349ac9('0x644');}_0x1b7f71[_0x547f1b('0x1ccf')]('vm_ac.chatWebsite.remote',function(){var _0x3ef85a=_0x547f1b;_0x5e3044[_0x3ef85a('0xfde')]='\x0a\x20\x20\x20\x20';});}const _0x38719a=_0x32dc93;_0x436b8f['$inject']=[_0x1a8446('0x95f'),_0x1a8446('0x2a4')];function _0x436b8f(_0x41f4fe,_0x410759){var _0x5e556b=_0x1a8446,_0x4c30f0=this,_0x332e7e=0x8,_0x3ff44a=_0x332e7e*0x400*0x400;_0x4c30f0[_0x5e556b('0x10f1')]={},_0x4c30f0[_0x5e556b('0xada')],_0x4c30f0['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3ff44a,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4c30f0[_0x5e556b('0x27cd')]={'flow':{}},_0x4c30f0[_0x5e556b('0x258f')]=![],_0x4c30f0[_0x5e556b('0x20d1')]=_0x29bc7f,_0x4c30f0['upload']=_0x5142df,_0x4c30f0[_0x5e556b('0x1313')]=_0x324070,_0x4c30f0[_0x5e556b('0x2e')]=_0x102b49;function _0x102b49(_0x4251cb,_0x1b2107){var _0x5346e3=_0x5e556b;_0x4c30f0[_0x5346e3('0x10f1')]=angular['copy'](_0x4251cb),_0x4c30f0['crudPermissions']=typeof _0x1b2107!==_0x5346e3('0x1574')?_0x1b2107:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4c30f0[_0x5346e3('0x1c88')]['target']=_0x5346e3('0x714')[_0x5346e3('0x170d')](_0x5346e3('0x128c'),_0x4c30f0['chatWebsite']['id']),_0x4c30f0[_0x5346e3('0x10f1')][_0x5346e3('0x1b2d')]=[];}function _0x29bc7f(_0x5ceb78){var _0x4bd01c=_0x5e556b,_0x39a7e3=[_0x4bd01c('0x981'),_0x4bd01c('0x1085')];if(!_0x51538b()[_0x4bd01c('0x13d6')](_0x39a7e3,_0x5ceb78[_0x4bd01c('0x177a')]()))return _0x410759['error']({'title':_0x4bd01c('0x7bf')+_0x5ceb78[_0x4bd01c('0x177a')](),'msg':'Supported\x20extension:\x20'+_0x39a7e3[_0x4bd01c('0x19c4')]()}),![];if(_0x5ceb78[_0x4bd01c('0x9f9')]>_0x3ff44a)return _0x410759[_0x4bd01c('0x187f')]({'title':_0x4bd01c('0xfad'),'msg':_0x4bd01c('0x15dd')+_0x332e7e+'MB'}),![];var _0x3343aa={'id':_0x5ceb78['uniqueIdentifier'],'file':_0x5ceb78,'type':_0x4bd01c('0x10d')};return _0x4c30f0[_0x4bd01c('0x10f1')]['images'][_0x4bd01c('0x6ee')](_0x3343aa),!![];}function _0x5142df(){var _0x39139e=_0x5e556b;_0x4c30f0['ngFlow']['flow'][_0x39139e('0x177d')][_0x39139e('0xc71')]={'X-Requested-With':_0x39139e('0x1888'),'Authorization':_0x39139e('0x2070')+_0x41f4fe[_0x39139e('0x2122')](_0x39139e('0x10f8'))},_0x4c30f0[_0x39139e('0x27cd')][_0x39139e('0xcba')]['upload']();}function _0x324070(_0x3c12fd){var _0x2ccf36=_0x5e556b;angular[_0x2ccf36('0x15b5')](_0x4c30f0[_0x2ccf36('0x10f1')][_0x2ccf36('0x1b2d')],function(_0x5caf36){var _0x16a75f=_0x2ccf36;if(_0x5caf36['id']===_0x3c12fd[_0x16a75f('0xd3c')]){var _0x5c8c3f=new FileReader();_0x5c8c3f[_0x16a75f('0xc21')](_0x5caf36[_0x16a75f('0x1945')][_0x16a75f('0x1945')]),_0x5c8c3f['onload']=function(_0xfe710e){var _0xad8407=_0x16a75f;_0x5caf36[_0xad8407('0x2242')]=_0xfe710e[_0xad8407('0xe2e')][_0xad8407('0xcd6')];},_0x5caf36['type']='image';}});}}const _0x5b0f8f=_0x436b8f;_0xdd2ded['$inject']=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$document',_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x10f1'),_0x1a8446('0x1a50')];function _0xdd2ded(_0x25e995,_0x5d0c99,_0x3891c5,_0x459f50,_0x5d65d1,_0xfac5b9,_0xd42527,_0x208884,_0x52aadb,_0xf37ac9,_0x11a42e,_0x147306){var _0x569bb7=_0x1a8446,_0x295c06=this;_0x295c06[_0x569bb7('0x7fc')]=_0xf37ac9['getCurrentUser'](),_0x295c06[_0x569bb7('0x1202')]=_0xfac5b9,_0x295c06[_0x569bb7('0x143f')]=_0xd42527,_0x295c06['passwordPattern']=_0x295c06[_0x569bb7('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x295c06[_0x569bb7('0x18cc')]=_0x5d0c99[_0x569bb7('0x1cc2')]()+_0x569bb7('0x356')+_0x5d0c99['host'](),_0x295c06[_0x569bb7('0x10f1')]=_0x11a42e||_0x25e995[_0x569bb7('0x25cf')][_0x569bb7('0x10f1')]||{},_0x295c06[_0x569bb7('0x1a50')]=_0x147306&&_0x147306['count']==0x1?_0x147306[_0x569bb7('0x580')][0x0]:null,_0x295c06[_0x569bb7('0xada')]=_0xf37ac9[_0x569bb7('0xffd')](_0x295c06[_0x569bb7('0x1a50')]?_0x295c06[_0x569bb7('0x1a50')][_0x569bb7('0xada')]:null),_0x295c06[_0x569bb7('0x9f0')]={},_0x295c06['selectedTab']=_0x25e995[_0x569bb7('0x25cf')][_0x569bb7('0x25c2')]||0x0,_0x295c06[_0x569bb7('0x16a5')]=_0x585446,_0x295c06[_0x569bb7('0xc10')]=_0x52aadb['info'],_0x295c06['gotoChatWebsites']=_0x966216,_0x295c06[_0x569bb7('0x59b')]=_0xa1305e,_0xf37ac9['hasRole'](_0x569bb7('0x178b'))?_0x208884[_0x569bb7('0x26b4')][_0x569bb7('0x2122')]({'fields':_0x569bb7('0x17fe'),'sort':'name'})[_0x569bb7('0x1dc2')][_0x569bb7('0xaa5')](function(_0x260842){var _0x434e15=_0x569bb7;_0x295c06[_0x434e15('0x1126')]=_0x260842[_0x434e15('0x580')]||[];})[_0x569bb7('0x253d')](function(_0x3db2a4){var _0x360a2f=_0x569bb7;_0x52aadb[_0x360a2f('0x187f')]({'title':_0x3db2a4[_0x360a2f('0x2fa')]?_0x360a2f('0x16c2')+_0x3db2a4[_0x360a2f('0x2fa')]+_0x360a2f('0x169e')+_0x3db2a4[_0x360a2f('0x24df')]:_0x360a2f('0x1adf'),'msg':_0x3db2a4[_0x360a2f('0x10fd')]?JSON['stringify'](_0x3db2a4[_0x360a2f('0x10fd')]):_0x3db2a4[_0x360a2f('0x684')]()});}):_0x208884[_0x569bb7('0x26b4')][_0x569bb7('0x2122')]({'fields':_0x569bb7('0x17fe'),'sort':'name'})[_0x569bb7('0x1dc2')]['then'](function(_0x448049){var _0x354930=_0x569bb7;_0x295c06[_0x354930('0x1126')]=_0x448049['rows']||[];})[_0x569bb7('0xaa5')](function(){var _0x24f9ee=_0x569bb7;return _0x208884[_0x24f9ee('0x1a50')][_0x24f9ee('0x2122')]({'userProfileId':_0x295c06[_0x24f9ee('0x7fc')]['userProfileId'],'sectionId':0x12d})[_0x24f9ee('0x1dc2')];})[_0x569bb7('0xaa5')](function(_0x3ec6f6){var _0x1cb6b4=_0x569bb7,_0x1f40cd=_0x3ec6f6&&_0x3ec6f6[_0x1cb6b4('0x580')]?_0x3ec6f6[_0x1cb6b4('0x580')][0x0]:null;if(!_0x1f40cd){var _0x4d8a23=[],_0xbc0b54=null;_0x295c06['chatWebsite']&&(_0xbc0b54=_0x51538b()['find'](_0x295c06[_0x1cb6b4('0x1126')],{'id':Number(_0x295c06['chatWebsite'][_0x1cb6b4('0xee0')])}));for(var _0x5b97d3=0x0;_0x5b97d3<_0x295c06[_0x1cb6b4('0x1126')][_0x1cb6b4('0x2587')];_0x5b97d3++){_0xbc0b54&&_0x295c06['lists'][_0x5b97d3]['id']===_0xbc0b54['id']&&(_0x295c06[_0x1cb6b4('0x1126')][_0x5b97d3][_0x1cb6b4('0x12eb')]=![],_0x4d8a23['push'](_0x295c06[_0x1cb6b4('0x1126')][_0x5b97d3]));}_0x295c06['lists']=_0x4d8a23;}else{if(!_0x1f40cd[_0x1cb6b4('0x26cc')])return _0x208884[_0x1cb6b4('0x249a')][_0x1cb6b4('0x2122')]({'sectionId':_0x1f40cd['id']})[_0x1cb6b4('0x1dc2')][_0x1cb6b4('0xaa5')](function(_0x50a7df){var _0x3c441b=_0x1cb6b4,_0x8cf73=_0x51538b()[_0x3c441b('0x1246')](_0x50a7df[_0x3c441b('0x580')],function(_0x479af7){var _0x427a76=_0x3c441b;return _0x51538b()[_0x427a76('0xe9e')](_0x295c06['lists'],{'id':_0x479af7[_0x427a76('0xbcd')]});}),_0x1244be=null;_0x295c06[_0x3c441b('0x10f1')]&&(_0x1244be=_0x51538b()[_0x3c441b('0xe9e')](_0x295c06[_0x3c441b('0x1126')],{'id':Number(_0x295c06[_0x3c441b('0x10f1')][_0x3c441b('0xee0')])}));if(_0x1244be&&!_0x51538b()[_0x3c441b('0x2c2')](_0x8cf73,['id',_0x1244be['id']])){var _0x51493e=_0x51538b()[_0x3c441b('0xe9e')](_0x295c06[_0x3c441b('0x1126')],{'id':_0x1244be['id']});_0x51493e[_0x3c441b('0x12eb')]=![],_0x8cf73[_0x3c441b('0x1599')](_0x51493e);}_0x295c06['lists']=_0x8cf73;});}})['catch'](function(_0x3035e9){var _0x123654=_0x569bb7;_0x52aadb['error']({'title':_0x3035e9['status']?_0x123654('0x16c2')+_0x3035e9[_0x123654('0x2fa')]+_0x123654('0x169e')+_0x3035e9[_0x123654('0x24df')]:_0x123654('0x177f'),'msg':_0x3035e9['data']?JSON[_0x123654('0xa48')](_0x3035e9[_0x123654('0x10fd')]):_0x3035e9[_0x123654('0x684')]()});}),_0xf37ac9[_0x569bb7('0x26e8')](_0x569bb7('0x178b'))?_0x208884[_0x569bb7('0x1c21')][_0x569bb7('0x2122')]({'fields':'id,name','sort':_0x569bb7('0x25d6'),'IntervalId':'null'})['$promise']['then'](function(_0x599209){var _0x291082=_0x569bb7;_0x295c06[_0x291082('0x1c21')]=_0x599209[_0x291082('0x580')]||[];})[_0x569bb7('0x253d')](function(_0x105148){var _0x4148f1=_0x569bb7;_0x52aadb['error']({'title':_0x105148[_0x4148f1('0x2fa')]?_0x4148f1('0x16c2')+_0x105148[_0x4148f1('0x2fa')]+_0x4148f1('0x169e')+_0x105148[_0x4148f1('0x24df')]:_0x4148f1('0x11a8'),'msg':_0x105148['data']?JSON[_0x4148f1('0xa48')](_0x105148['data']):_0x105148[_0x4148f1('0x684')]()});}):_0x208884[_0x569bb7('0x1c21')][_0x569bb7('0x2122')]({'fields':'id,name','sort':_0x569bb7('0x25d6'),'IntervalId':_0x569bb7('0x1ed9')})[_0x569bb7('0x1dc2')][_0x569bb7('0xaa5')](function(_0x252c4f){var _0x109711=_0x569bb7;_0x295c06[_0x109711('0x1c21')]=_0x252c4f[_0x109711('0x580')]||[];})[_0x569bb7('0xaa5')](function(){var _0x1f494c=_0x569bb7;return _0x208884[_0x1f494c('0x1a50')][_0x1f494c('0x2122')]({'userProfileId':_0x295c06[_0x1f494c('0x7fc')][_0x1f494c('0x2168')],'sectionId':0x3ec})[_0x1f494c('0x1dc2')];})[_0x569bb7('0xaa5')](function(_0x2a3ffe){var _0x545923=_0x569bb7,_0x859ab=_0x2a3ffe&&_0x2a3ffe[_0x545923('0x580')]?_0x2a3ffe['rows'][0x0]:null;if(!_0x859ab){var _0x169f7f=[],_0x58b41d=null;_0x295c06[_0x545923('0x10f1')]&&(_0x58b41d=_0x51538b()[_0x545923('0xe9e')](_0x295c06[_0x545923('0x1c21')],{'id':Number(_0x295c06['chatWebsite'][_0x545923('0x1f8c')])}));for(var _0x17b8c0=0x0;_0x17b8c0<_0x295c06[_0x545923('0x1c21')][_0x545923('0x2587')];_0x17b8c0++){_0x58b41d&&_0x295c06['interval'][_0x17b8c0]['id']===_0x58b41d['id']&&(_0x295c06[_0x545923('0x1c21')][_0x17b8c0]['canSelect']=![],_0x169f7f[_0x545923('0x1599')](_0x295c06[_0x545923('0x1c21')][_0x17b8c0]));}_0x295c06['interval']=_0x169f7f;}else{if(!_0x859ab[_0x545923('0x26cc')])return _0x208884[_0x545923('0x249a')][_0x545923('0x2122')]({'sectionId':_0x859ab['id']})['$promise'][_0x545923('0xaa5')](function(_0x9fff3a){var _0x4df4d2=_0x545923,_0x3aed83=_0x51538b()['map'](_0x9fff3a[_0x4df4d2('0x580')],function(_0x4eb2c3){var _0x409bb1=_0x4df4d2;return _0x51538b()[_0x409bb1('0xe9e')](_0x295c06[_0x409bb1('0x1c21')],{'id':_0x4eb2c3['resourceId']});}),_0x4c8823=null;_0x295c06[_0x4df4d2('0x10f1')]&&(_0x4c8823=_0x51538b()[_0x4df4d2('0xe9e')](_0x295c06[_0x4df4d2('0x1c21')],{'id':Number(_0x295c06['chatWebsite'][_0x4df4d2('0x1f8c')])}));if(_0x4c8823&&!_0x51538b()[_0x4df4d2('0x2c2')](_0x3aed83,['id',_0x4c8823['id']])){var _0x426943=_0x51538b()[_0x4df4d2('0xe9e')](_0x295c06[_0x4df4d2('0x1c21')],{'id':_0x4c8823['id']});_0x426943[_0x4df4d2('0x12eb')]=![],_0x3aed83[_0x4df4d2('0x1599')](_0x426943);}_0x295c06[_0x4df4d2('0x1c21')]=_0x3aed83;});}})[_0x569bb7('0x253d')](function(_0x5b06f4){var _0x3a095a=_0x569bb7;_0x52aadb[_0x3a095a('0x187f')]({'title':_0x5b06f4['status']?_0x3a095a('0x16c2')+_0x5b06f4[_0x3a095a('0x2fa')]+'\x20-\x20'+_0x5b06f4[_0x3a095a('0x24df')]:'SYSTEM:GETinterval','msg':_0x5b06f4['data']?JSON[_0x3a095a('0xa48')](_0x5b06f4[_0x3a095a('0x10fd')]):_0x5b06f4[_0x3a095a('0x684')]()});}),_0xf37ac9[_0x569bb7('0x26e8')](_0x569bb7('0x178b'))?_0x208884[_0x569bb7('0x167c')][_0x569bb7('0x2122')]({'fields':_0x569bb7('0xb22'),'sort':_0x569bb7('0x25d6'),'nolimit':_0x569bb7('0x1c5c')})[_0x569bb7('0x1dc2')]['then'](function(_0x5d1d67){var _0x31a96f=_0x569bb7;_0x295c06[_0x31a96f('0x2457')]=_0x5d1d67[_0x31a96f('0x580')]||[];})['catch'](function(_0x19cc91){var _0x58957a=_0x569bb7;_0x52aadb[_0x58957a('0x187f')]({'title':_0x19cc91[_0x58957a('0x2fa')]?_0x58957a('0x16c2')+_0x19cc91['status']+'\x20-\x20'+_0x19cc91['statusText']:'SYSTEM:GET_PAUSES','msg':_0x19cc91[_0x58957a('0x10fd')]?JSON['stringify'](_0x19cc91[_0x58957a('0x10fd')]):_0x19cc91[_0x58957a('0x684')]()});}):_0x208884[_0x569bb7('0x167c')][_0x569bb7('0x2122')]({'fields':_0x569bb7('0xb22'),'sort':_0x569bb7('0x25d6'),'nolimit':_0x569bb7('0x1c5c')})[_0x569bb7('0x1dc2')][_0x569bb7('0xaa5')](function(_0x4c5acc){var _0x4d7f32=_0x569bb7;_0x295c06[_0x4d7f32('0x2457')]=_0x4c5acc[_0x4d7f32('0x580')]||[];})[_0x569bb7('0xaa5')](function(){var _0x157f5a=_0x569bb7;return _0x208884[_0x157f5a('0x1a50')]['get']({'userProfileId':_0x295c06[_0x157f5a('0x7fc')]['userProfileId'],'sectionId':0x3ed})[_0x157f5a('0x1dc2')];})['then'](function(_0x47a28a){var _0x1ddf82=_0x569bb7,_0x3a0858=_0x47a28a&&_0x47a28a[_0x1ddf82('0x580')]?_0x47a28a[_0x1ddf82('0x580')][0x0]:null;if(!_0x3a0858)_0x295c06[_0x1ddf82('0x2457')]=[];else{if(!_0x3a0858[_0x1ddf82('0x26cc')])return _0x208884[_0x1ddf82('0x249a')]['get']({'sectionId':_0x3a0858['id']})[_0x1ddf82('0x1dc2')]['then'](function(_0x435a4e){var _0x171331=_0x1ddf82,_0x4e36d7=_0x51538b()['map'](_0x435a4e[_0x171331('0x580')],function(_0x11f64f){var _0x14429c=_0x171331;return _0x51538b()[_0x14429c('0xe9e')](_0x295c06[_0x14429c('0x2457')],{'id':_0x11f64f['resourceId']});});_0x295c06[_0x171331('0x2457')][_0x171331('0x15b5')](function(_0x384ebc){var _0x4dd9d2=_0x171331;!_0x51538b()['some'](_0x4e36d7,['id',_0x384ebc['id']])&&(_0x384ebc[_0x4dd9d2('0x12eb')]=![]),_0x4e36d7[_0x4dd9d2('0x1599')](_0x384ebc);}),_0x295c06[_0x171331('0x2457')]=_0x4e36d7;});}})[_0x569bb7('0x253d')](function(_0x5de112){var _0x22eb28=_0x569bb7;_0x52aadb[_0x22eb28('0x187f')]({'title':_0x5de112[_0x22eb28('0x2fa')]?_0x22eb28('0x16c2')+_0x5de112['status']+_0x22eb28('0x169e')+_0x5de112[_0x22eb28('0x24df')]:'SYSTEM:GETpauses','msg':_0x5de112[_0x22eb28('0x10fd')]?JSON[_0x22eb28('0xa48')](_0x5de112['data']):_0x5de112[_0x22eb28('0x684')]()});});function _0x585446(_0x5b2131,_0x9f6e8f){var _0x563589=_0x569bb7;_0x3891c5[_0x563589('0x1e6d')]({'controller':_0x563589('0xf44'),'controllerAs':'vm','templateUrl':_0x158433,'parent':angular[_0x563589('0x1aa8')](_0x459f50[_0x563589('0x54c')]),'targetEvent':_0x9f6e8f,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x5b2131,'chatWebsites':_0x295c06[_0x563589('0x7d7')]?_0x295c06[_0x563589('0x7d7')][_0x563589('0x580')]:[],'crudPermissions':_0x295c06[_0x563589('0xada')],'realtime':![]}});}function _0x966216(){var _0x2c4095=_0x569bb7;_0x25e995['go'](_0x2c4095('0x1bb9'),{},{'reload':_0x2c4095('0x1bb9')});}function _0xa1305e(){var _0x25cf5a=_0x569bb7;_0x208884[_0x25cf5a('0x10f1')]['update']({'id':_0x295c06[_0x25cf5a('0x10f1')]['id']},_0x295c06[_0x25cf5a('0x10f1')])[_0x25cf5a('0x1dc2')][_0x25cf5a('0xaa5')](function(){var _0x4d737d=_0x25cf5a;_0x52aadb[_0x4d737d('0xe10')]({'title':_0x4d737d('0x262a'),'msg':_0x295c06['chatWebsite'][_0x4d737d('0x25d6')]?_0x295c06[_0x4d737d('0x10f1')][_0x4d737d('0x25d6')]+_0x4d737d('0x1734'):''});})[_0x25cf5a('0x253d')](function(_0x3f5c58){var _0x339bed=_0x25cf5a;_0x52aadb[_0x339bed('0x187f')]({'title':_0x3f5c58[_0x339bed('0x2fa')]?_0x339bed('0x16c2')+_0x3f5c58[_0x339bed('0x2fa')]+_0x339bed('0x169e')+_0x3f5c58[_0x339bed('0x24df')]:_0x339bed('0x1952'),'msg':_0x3f5c58[_0x339bed('0x10fd')]?JSON[_0x339bed('0xa48')](_0x3f5c58[_0x339bed('0x10fd')]):_0x3f5c58['toString']()});});}}const _0x20b54c=_0xdd2ded;_0x42c2c3[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),'$translatePartialLoaderProvider'];function _0x42c2c3(_0x346fd5,_0x3edee1){var _0x235ed8=_0x1a8446;_0x346fd5[_0x235ed8('0xb46')](_0x235ed8('0x1c69'),{'abstract':!![],'url':'/chat'})[_0x235ed8('0xb46')]('app.chat.chatQueues',{'url':_0x235ed8('0x19ab'),'views':{'content@app':{'templateUrl':_0x11d468,'controller':_0x235ed8('0x3b2')}},'resolve':{'chatQueues':[_0x235ed8('0x1d16'),_0x235ed8('0x1dfd'),function _0x3f92e2(_0x1cdaeb,_0x37e496){var _0x7afeff=_0x235ed8;return _0x37e496['hasRole'](_0x7afeff('0x178b'))?_0x1cdaeb[_0x7afeff('0x149f')]('chatQueue@get',{'fields':_0x7afeff('0x698'),'sort':_0x7afeff('0xd82'),'channel':_0x7afeff('0x20f9'),'limit':0xa,'offset':0x0}):_0x1cdaeb[_0x7afeff('0x149f')](_0x7afeff('0x49a'),{'id':_0x37e496[_0x7afeff('0xacc')]()[_0x7afeff('0x2168')],'section':_0x7afeff('0x217c'),'fields':_0x7afeff('0x698'),'sort':_0x7afeff('0xd82'),'channel':_0x7afeff('0x20f9'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x235ed8('0x1d16'),_0x235ed8('0x1dfd'),function _0x80b94b(_0x5c7561,_0x38fcf5){var _0x42e38b=_0x235ed8;return _0x38fcf5[_0x42e38b('0x26e8')]('admin')?null:_0x5c7561[_0x42e38b('0x149f')](_0x42e38b('0x567'),{'fields':'id,name,crudPermissions','id':_0x38fcf5['getCurrentUser']()[_0x42e38b('0x2168')]});}],'userProfileSection':[_0x235ed8('0x1d16'),_0x235ed8('0x1dfd'),function _0x4b2016(_0x1d1381,_0xab47e){var _0x261974=_0x235ed8;return _0xab47e['hasRole']('admin')?null:_0x1d1381[_0x261974('0x149f')](_0x261974('0x89e'),{'fields':_0x261974('0xe6a'),'userProfileId':_0xab47e[_0x261974('0xacc')]()[_0x261974('0x2168')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x235ed8('0x20f9')})[_0x235ed8('0xb46')](_0x235ed8('0x25c6'),{'url':_0x235ed8('0xad'),'params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x246375,'controller':_0x235ed8('0x1e69')}},'resolve':{'chatQueue':['apiResolver',_0x235ed8('0x703'),function _0x44b19a(_0x420d1d,_0x42d243){var _0x31a53d=_0x235ed8;return _0x420d1d[_0x31a53d('0x149f')](_0x31a53d('0x20c5'),{'fields':_0x31a53d('0x698'),'id':_0x42d243['id']});}],'userProfileSection':[_0x235ed8('0x1d16'),'Auth',function _0x19af84(_0x108984,_0x3bbf55){var _0x33c0b5=_0x235ed8;return _0x108984['resolve'](_0x33c0b5('0x89e'),{'fields':_0x33c0b5('0xe6a'),'userProfileId':_0x3bbf55[_0x33c0b5('0xacc')]()[_0x33c0b5('0x2168')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x235ed8('0x20f9')})[_0x235ed8('0xb46')](_0x235ed8('0x1bb9'),{'url':'/chatWebsites','views':{'content@app':{'templateUrl':_0x1ab52b,'controller':_0x235ed8('0x1ab3')}},'resolve':{'chatWebsites':[_0x235ed8('0x1d16'),_0x235ed8('0x1dfd'),function _0x198294(_0x57c1e4,_0x229e50){var _0x38ee59=_0x235ed8;return _0x229e50[_0x38ee59('0x26e8')]('admin')?_0x57c1e4[_0x38ee59('0x149f')](_0x38ee59('0x1c5d'),{'fields':'createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x57c1e4[_0x38ee59('0x149f')]('userProfile@getResources',{'id':_0x229e50['getCurrentUser']()['userProfileId'],'section':_0x38ee59('0x1681'),'fields':_0x38ee59('0x49f'),'sort':_0x38ee59('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x235ed8('0x1d16'),_0x235ed8('0x1dfd'),function _0x146718(_0xec1d74,_0x151707){var _0x143d40=_0x235ed8;return _0x151707['hasRole'](_0x143d40('0x178b'))?null:_0xec1d74[_0x143d40('0x149f')](_0x143d40('0x567'),{'fields':_0x143d40('0x1bb0'),'id':_0x151707[_0x143d40('0xacc')]()[_0x143d40('0x2168')]});}],'userProfileSection':[_0x235ed8('0x1d16'),_0x235ed8('0x1dfd'),function _0x20faa4(_0x2f262b,_0x3e982d){var _0x492fb7=_0x235ed8;return _0x3e982d[_0x492fb7('0x26e8')]('admin')?null:_0x2f262b[_0x492fb7('0x149f')](_0x492fb7('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3e982d[_0x492fb7('0xacc')]()[_0x492fb7('0x2168')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x235ed8('0x20f9')})['state'](_0x235ed8('0x2702'),{'url':_0x235ed8('0xad'),'params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5c1667,'controller':_0x235ed8('0x1efd')}},'resolve':{'chatWebsite':[_0x235ed8('0x1d16'),_0x235ed8('0x703'),function _0x39e3bb(_0x3f7dbb,_0x44a022){var _0x12d1ae=_0x235ed8;return _0x3f7dbb[_0x12d1ae('0x149f')](_0x12d1ae('0x1c5d'),{'fields':_0x12d1ae('0x49f'),'id':_0x44a022['id']});}],'userProfileSection':[_0x235ed8('0x1d16'),_0x235ed8('0x1dfd'),function _0x3fcbf4(_0x8c2e7f,_0x1d1a5b){var _0xa34831=_0x235ed8;return _0x8c2e7f[_0xa34831('0x149f')](_0xa34831('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1d1a5b[_0xa34831('0xacc')]()[_0xa34831('0x2168')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x235ed8('0x20f9')}),_0x3edee1[_0x235ed8('0x1de5')](_0x235ed8('0x626'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x1c69'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),'flow',_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),_0x1a8446('0x150f'),_0x1a8446('0x110'),_0x1a8446('0xd2d'),_0x1a8446('0xd5c'),'mwFormViewer',_0x1a8446('0x20b4'),'ngclipboard',_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),_0x1a8446('0x1320'),'angular.filter',_0x1a8446('0x5ab')])[_0x1a8446('0x1b14')](_0x42c2c3)[_0x1a8446('0x780')](_0x1a8446('0xce7'),_0xe385e2)[_0x1a8446('0x780')](_0x1a8446('0xaf6'),_0x383503)[_0x1a8446('0x780')](_0x1a8446('0x871'),_0x3eb34e)['controller'](_0x1a8446('0x3ef'),_0x2c54e6)[_0x1a8446('0x780')](_0x1a8446('0x1c95'),_0x5c4bcc)['controller']('ChatWebsitesController',_0x4f27d9)['controller'](_0x1a8446('0xf0'),_0x56ebc5)[_0x1a8446('0x780')](_0x1a8446('0x2214'),_0x5a2af2)[_0x1a8446('0x780')]('ChatWebsiteagentaddController',_0x3cafb2)[_0x1a8446('0x780')]('ChatWebsiteagentAvatarController',_0x3761da)[_0x1a8446('0x780')](_0x1a8446('0x1369'),_0x257ca0)[_0x1a8446('0x780')](_0x1a8446('0x237a'),_0x4b381d)[_0x1a8446('0x780')](_0x1a8446('0x237a'),_0x4b381d)[_0x1a8446('0x780')](_0x1a8446('0xc1b'),_0x331134)[_0x1a8446('0x780')](_0x1a8446('0x54a'),_0xc667cd)['controller'](_0x1a8446('0x1db5'),_0x4c1782)[_0x1a8446('0x780')](_0x1a8446('0x5b6'),_0x200a9c)[_0x1a8446('0x780')](_0x1a8446('0x10a'),_0x302264)[_0x1a8446('0x780')](_0x1a8446('0x15ee'),_0x1cff96)[_0x1a8446('0x780')](_0x1a8446('0xe7d'),_0x4b5e91)[_0x1a8446('0x780')](_0x1a8446('0x170c'),_0x1a6bb4)[_0x1a8446('0x780')](_0x1a8446('0x15a3'),_0x420f2e)[_0x1a8446('0x780')](_0x1a8446('0x1fbb'),_0x20d4d2)[_0x1a8446('0x780')](_0x1a8446('0xe56'),_0x6ffd60)['controller']('CreateOrEditChatCannedAnswerDialogController',_0x1dd6e2)['controller'](_0x1a8446('0x23b'),_0x1d8804)[_0x1a8446('0x780')](_0x1a8446('0x452'),_0x45bde9)[_0x1a8446('0x780')](_0x1a8446('0x2124'),_0x359301)[_0x1a8446('0x780')](_0x1a8446('0xaed'),_0x494c9e)[_0x1a8446('0x780')](_0x1a8446('0x2533'),_0x22fe2f)[_0x1a8446('0x780')](_0x1a8446('0x19df'),_0x3ce56e)[_0x1a8446('0x780')](_0x1a8446('0x1604'),_0x5e801d)[_0x1a8446('0x780')](_0x1a8446('0x1d95'),_0x51e0f5)[_0x1a8446('0x780')](_0x1a8446('0x928'),_0x2eb9b7)[_0x1a8446('0x780')]('CreateOrEditChatProactiveActionDialogController',_0x3ef1fc)[_0x1a8446('0x780')]('ChatWebsiteScriptController',_0x38719a)[_0x1a8446('0x780')](_0x1a8446('0x1771'),_0x5b0f8f)[_0x1a8446('0x780')]('ChatWebsiteController',_0x20b54c);const _0x5be2b7=_0x4fb511['p']+_0x1a8446('0x2369'),_0x2168ea=_0x4fb511['p']+_0x1a8446('0xba'),_0x44fcdf=_0x4fb511['p']+_0x1a8446('0xa4b'),_0x2c72b1=_0x4fb511['p']+_0x1a8446('0x862');_0x39dccc['$inject']=[_0x1a8446('0x51'),'$q',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$filter',_0x1a8446('0x2457'),_0x1a8446('0x1717'),_0x1a8446('0x1f1d'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0x5b4'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd'),'license','$interval'];function _0x39dccc(_0x3e318c,_0x753130,_0xcf3f2a,_0x4bd0b1,_0x5b536e,_0x5f3703,_0x3176c1,_0x4655cd,_0x148804,_0x25f629,_0x247d9e,_0x4a5490,_0x3c50a1,_0x209544,_0x159fb5,_0xa94f40,_0x4b4e4e,_0x48c407){var _0x485298=_0x1a8446,_0x264a11=this,_0x428cc7=[_0x485298('0x1af3'),'online',_0x485298('0x2340'),_0x485298('0x1ce0'),_0x485298('0x25f0'),'lastPauseAt',_0x485298('0x1b0d'),_0x485298('0xdf8'),_0x485298('0x1f36'),_0x485298('0xc8f'),_0x485298('0x21f'),'smsPause',_0x485298('0x231a'),_0x485298('0x135b'),_0x485298('0x2519'),_0x485298('0xe55'),_0x485298('0x1b1c'),'mailCapacity',_0x485298('0x26cb'),_0x485298('0xce'),_0x485298('0x6ed'),_0x485298('0x607'),'openchannelCurrentCapacity',_0x485298('0x24fb'),_0x485298('0x1382'),_0x485298('0x26c8'),_0x485298('0xea8'),_0x485298('0xeb4'),_0x485298('0x293'),'mailStatus','smsStatus',_0x485298('0x1579'),_0x485298('0x19d2'),_0x485298('0x1e0'),_0x485298('0x748'),'openchannelStatusTime','mailStatusTime','smsStatusTime',_0x485298('0x166b'),_0x485298('0xa0a'),_0x485298('0x1ddc'),_0x485298('0xe26'),_0x485298('0x14d3'),_0x485298('0x14c3'),_0x485298('0x1b72'),'phoneBarEnableAutomaticScreenRecording'],_0x553778=[_0x485298('0x1f36'),_0x485298('0xc8f'),_0x485298('0x21f'),_0x485298('0x462'),_0x485298('0x231a'),'faxPause',_0x485298('0x2519'),_0x485298('0x175')];_0x264a11[_0x485298('0x7fc')]=_0xa94f40[_0x485298('0xacc')](),_0x264a11[_0x485298('0x38b')]=[_0x485298('0xb02'),'inuse','busy',_0x485298('0x9a5'),_0x485298('0x2509')],_0x264a11[_0x485298('0x2457')]=_0x3176c1||{'count':0x0,'rows':[]},_0x264a11['license']=_0x4b4e4e,_0x264a11[_0x485298('0x1e97')]=_0x209544,_0x264a11[_0x485298('0x1a50')]=_0x159fb5&&_0x159fb5[_0x485298('0xd15')]==0x1?_0x159fb5[_0x485298('0x580')][0x0]:null,_0x264a11[_0x485298('0xada')]=_0xa94f40[_0x485298('0xffd')](_0x264a11[_0x485298('0x1a50')]?_0x264a11[_0x485298('0x1a50')][_0x485298('0xada')]:null),_0x264a11[_0x485298('0x1717')]=_0x4655cd?_0x51538b()['keyBy'](_0x4655cd[_0x485298('0x580')]?_0x4655cd[_0x485298('0x580')]:[],'id'):{},_0x264a11[_0x485298('0x1f1d')]=_0x148804?_0x51538b()[_0x485298('0x184a')](_0x148804['rows']?_0x148804[_0x485298('0x580')]:[],'id'):{},_0x264a11[_0x485298('0xd28')]={},_0x264a11[_0x485298('0x259c')]=![],_0x264a11[_0x485298('0x1536')]=[],_0x264a11['agentInternal']={};for(var _0x50e9b7 in _0x264a11[_0x485298('0x1717')]){typeof _0x264a11['agents'][_0x50e9b7]!==_0x485298('0x1574')&&(_0x264a11[_0x485298('0x1717')][_0x50e9b7][_0x485298('0x2e')]=!![]);}_0x264a11['query']={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x264a11[_0x485298('0x1bc9')]=_0x18cf76,_0x264a11[_0x485298('0x1931')]=_0x117311,_0x264a11[_0x485298('0x167c')]=_0xd463a3,_0x264a11[_0x485298('0x15e8')]=_0x4d029b,_0x264a11[_0x485298('0x18ba')]=_0x2a36a6,_0x264a11[_0x485298('0xf42')]=_0x5a4dee,_0x264a11[_0x485298('0x1b')]=_0x54b302,_0x264a11[_0x485298('0x11c')]=_0x5d14d3,_0x264a11[_0x485298('0x2608')]=_0x15aac1,_0x264a11['isPartialPause']=_0x2bd7fa,_0x264a11['onSave']=_0x3b6658,_0x264a11[_0x485298('0x4f1')]=_0x5b62db,_0x264a11[_0x485298('0x2318')]=_0x48d6b7,_0x264a11[_0x485298('0xe9b')]=_0x596faf,_0x264a11[_0x485298('0xd53')]=_0x4558b9,_0x264a11['screenRecording']=_0x5e5407,_0x247d9e['on'](_0x485298('0x1acf'),_0x264a11[_0x485298('0x1a4b')]),_0x247d9e['on'](_0x485298('0x15fb'),_0x264a11['onUpdate']),_0x247d9e['on']('user:agentconnect',_0x264a11[_0x485298('0xe9b')]),_0x247d9e['on'](_0x485298('0x2728'),_0x264a11['onComplete']),_0x48d6b7();var _0x325379=_0x48c407(function(){var _0x24403d=_0x485298;_0x264a11[_0x24403d('0x259c')]&&(_0x264a11[_0x24403d('0x259c')]=![],_0x48d6b7());},0x3e7);function _0x48d6b7(){var _0x591a74=_0x485298;_0x264a11[_0x591a74('0x259c')]=![];var _0x1c911a=_0x753130[_0x591a74('0x213b')]();_0x264a11['promise']=_0x1c911a[_0x591a74('0x159a')],_0x264a11[_0x591a74('0x1d77')]=[],_0x264a11[_0x591a74('0x1536')]=[],_0x51538b()[_0x591a74('0x143e')](_0x264a11['agents'],function(_0x37ccc4,_0x2b65bc){var _0x2b7a70=_0x591a74;_0x264a11[_0x2b7a70('0x1f1d')][_0x2b65bc]&&_0x51538b()[_0x2b7a70('0x283c')](_0x37ccc4,_0x51538b()[_0x2b7a70('0x104e')](_0x51538b()['omit'](_0x264a11['rpcAgents'][_0x2b65bc],_0x553778),_0x428cc7)),_0x54b302(_0x37ccc4),_0x37ccc4[_0x2b7a70('0x175')]?(_0x264a11[_0x2b7a70('0x1d77')]['push'](_0x37ccc4),_0x264a11[_0x2b7a70('0x21f2')][_0x37ccc4[_0x2b7a70('0x1b0d')]]=_0x2b65bc):_0x37ccc4[_0x2b7a70('0x920')]=_0x51538b()[_0x2b7a70('0x228e')](_0x420d43()()['format']('x'));});_0x264a11['query'][_0x591a74('0x107')]&&_0x51538b()[_0x591a74('0xf6d')](_0x264a11[_0x591a74('0x1d77')],function(_0xe8ad7d){var _0x29ba1f=_0x591a74;return _0xe8ad7d[_0x29ba1f('0x151c')]!==_0x264a11[_0x29ba1f('0x582')][_0x29ba1f('0x107')];});_0x264a11['query'][_0x591a74('0x1bfd')]&&_0x51538b()[_0x591a74('0xf6d')](_0x264a11[_0x591a74('0x1d77')],function(_0x40a2aa){var _0x1982c5=_0x591a74;return _0x40a2aa[_0x1982c5('0x25f0')]!==_0x264a11[_0x1982c5('0x582')][_0x1982c5('0x1bfd')];});_0x264a11[_0x591a74('0x582')][_0x591a74('0xdb7')]&&_0x51538b()[_0x591a74('0xf6d')](_0x264a11[_0x591a74('0x1d77')],function(_0x34e33c){var _0x27b10e=_0x591a74;return _0x34e33c[_0x27b10e('0x18e5')]['toLowerCase']()['indexOf'](_0x264a11[_0x27b10e('0x582')][_0x27b10e('0xdb7')]['toLowerCase']())<0x0;});_0x264a11[_0x591a74('0x1d77')]=_0x16f407(_0x264a11[_0x591a74('0x1d77')]);var _0x3ba24a=(_0x264a11['query'][_0x591a74('0x41')]-0x1)*_0x264a11[_0x591a74('0x582')][_0x591a74('0xf4d')];_0x264a11[_0x591a74('0xd28')]=_0x51538b()['drop'](_0x264a11[_0x591a74('0x1d77')],_0x3ba24a)[_0x591a74('0x19aa')](0x0,_0x264a11['query'][_0x591a74('0xf4d')]);for(var _0x370b68=0x0;_0x370b68<_0x264a11[_0x591a74('0xd28')][_0x591a74('0x2587')];_0x370b68+=0x1){_0x264a11[_0x591a74('0x1536')][_0x591a74('0x1599')](_0x264a11[_0x591a74('0xd28')][_0x370b68]['id']);}_0x1c911a[_0x591a74('0x149f')](),_0x264a11['load']=!![];}function _0x3b6658(_0x63d944){var _0x3b3100=_0x485298;_0x264a11['agents'][_0x63d944['id']]&&(_0x51538b()[_0x3b3100('0x283c')](_0x264a11['agents'][_0x63d944['id']],_0x51538b()[_0x3b3100('0x104e')](_0x51538b()[_0x3b3100('0x245')](_0x63d944,_0x553778),_0x428cc7)),_0x51538b()['merge'](_0x264a11[_0x3b3100('0x1f1d')][_0x63d944['id']],_0x51538b()[_0x3b3100('0x104e')](_0x51538b()[_0x3b3100('0x245')](_0x63d944,_0x553778),_0x428cc7)),_0x54b302(_0x264a11[_0x3b3100('0x1717')][_0x63d944['id']]));}function _0x5b62db(_0x4e6d14){var _0x5e3755=_0x485298;_0x264a11[_0x5e3755('0x1717')][_0x4e6d14['id']]&&(_0x51538b()[_0x5e3755('0x283c')](_0x264a11['agents'][_0x4e6d14['id']],_0x51538b()[_0x5e3755('0x104e')](_0x4e6d14,_0x428cc7)),_0x51538b()[_0x5e3755('0x283c')](_0x264a11[_0x5e3755('0x1f1d')][_0x4e6d14['id']],_0x51538b()['pick'](_0x4e6d14,_0x428cc7)),_0x4e6d14[_0x5e3755('0x1ce0')]&&(_0x264a11[_0x5e3755('0x1717')][_0x4e6d14['id']][_0x5e3755('0x920')]=_0x4e6d14[_0x5e3755('0x1ce0')],_0x264a11[_0x5e3755('0x1f1d')][_0x4e6d14['id']][_0x5e3755('0x920')]=_0x4e6d14[_0x5e3755('0x1ce0')]),_0x54b302(_0x264a11[_0x5e3755('0x1717')][_0x4e6d14['id']]));}function _0x596faf(_0x58d012){var _0x17da6e=_0x485298;_0x264a11[_0x17da6e('0x1717')][_0x264a11[_0x17da6e('0x21f2')][_0x58d012[_0x17da6e('0x2525')]]]&&(_0x51538b()[_0x17da6e('0x283c')](_0x264a11['agents'][_0x264a11[_0x17da6e('0x21f2')][_0x58d012[_0x17da6e('0x2525')]]],_0x51538b()[_0x17da6e('0x104e')](_0x58d012,[_0x17da6e('0xe26'),_0x17da6e('0x14d3')])),_0x51538b()[_0x17da6e('0x283c')](_0x264a11[_0x17da6e('0x1f1d')][_0x264a11[_0x17da6e('0x21f2')][_0x58d012[_0x17da6e('0x2525')]]],_0x51538b()[_0x17da6e('0x104e')](_0x58d012,[_0x17da6e('0xe26'),_0x17da6e('0x14d3')])));}function _0x4558b9(_0x4a1caf){var _0x20e6e8=_0x485298;_0x264a11[_0x20e6e8('0x1717')][_0x264a11['agentInternal'][_0x4a1caf[_0x20e6e8('0x2525')]]]&&(_0x264a11['agents'][_0x264a11[_0x20e6e8('0x21f2')][_0x4a1caf['destaccountcode']]]=_0x51538b()[_0x20e6e8('0x245')](_0x264a11[_0x20e6e8('0x1717')][_0x264a11['agentInternal'][_0x4a1caf['destaccountcode']]],[_0x20e6e8('0xe26'),'destconnectedlinenum']),_0x264a11['rpcAgents'][_0x264a11['agentInternal'][_0x4a1caf[_0x20e6e8('0x2525')]]]=_0x51538b()[_0x20e6e8('0x245')](_0x264a11[_0x20e6e8('0x1f1d')][_0x264a11['agentInternal'][_0x4a1caf[_0x20e6e8('0x2525')]]],[_0x20e6e8('0xe26'),_0x20e6e8('0x14d3')]));}function _0x18cf76(_0xe935cd){var _0x3e9d4d=_0x485298;return _0x25f629[_0x3e9d4d('0x272b')][_0x3e9d4d('0x1bc9')]({'id':_0xe935cd['id'],'device':_0x3e9d4d('0x4f3'),'agent_id':_0xe935cd['id'],'agent_name':_0xe935cd[_0x3e9d4d('0x25d6')]})[_0x3e9d4d('0x1dc2')]['then'](function(){var _0x36b59e=_0x3e9d4d;_0x4a5490[_0x36b59e('0xe10')]({'title':_0x36b59e('0x1cdb'),'msg':_0xe935cd[_0x36b59e('0x18e5')]+_0x36b59e('0x2039')}),_0x264a11[_0x36b59e('0x1717')][_0xe935cd['id']]&&(_0x264a11[_0x36b59e('0x1717')][_0xe935cd['id']][_0x36b59e('0x175')]=![]),_0x264a11['rpcAgents'][_0xe935cd['id']]&&(_0x264a11[_0x36b59e('0x1f1d')][_0xe935cd['id']]['online']=![]),_0x48d6b7();})[_0x3e9d4d('0x253d')](function(_0xb20d72){var _0x5b24fb=_0x3e9d4d;_0x4a5490['error']({'title':_0xb20d72[_0x5b24fb('0x2fa')]?_0x5b24fb('0x16c2')+_0xb20d72[_0x5b24fb('0x2fa')]+_0x5b24fb('0x169e')+_0xb20d72['statusText']:_0x5b24fb('0xb8c'),'msg':_0xb20d72[_0x5b24fb('0x10fd')]?JSON['stringify'](_0xb20d72[_0x5b24fb('0x10fd')][_0x5b24fb('0x1402')]):_0xb20d72[_0x5b24fb('0x684')]()});});}function _0xd463a3(_0x38db2a,_0x41bdac){var _0x15708d=_0x485298;return _0x25f629[_0x15708d('0x272b')][_0x15708d('0x167c')]({'id':_0x38db2a['id'],'type':_0x41bdac})[_0x15708d('0x1dc2')][_0x15708d('0xaa5')](function(_0x231571){var _0x16f265=_0x15708d;_0x264a11['agents'][_0x38db2a['id']]&&_0x51538b()['merge'](_0x264a11[_0x16f265('0x1717')][_0x38db2a['id']],_0x51538b()[_0x16f265('0x104e')](_0x231571,_0x428cc7)),_0x264a11[_0x16f265('0x1f1d')][_0x38db2a['id']]&&_0x51538b()['merge'](_0x264a11[_0x16f265('0x1f1d')][_0x38db2a['id']],_0x51538b()['pick'](_0x231571,_0x428cc7)),_0x54b302(_0x264a11[_0x16f265('0x1717')][_0x38db2a['id']]);})[_0x15708d('0x253d')](function(_0x3b9a09){var _0x32b979=_0x15708d;_0x4a5490['error']({'title':_0x3b9a09['status']?'API:'+_0x3b9a09['status']+_0x32b979('0x169e')+_0x3b9a09[_0x32b979('0x24df')]:_0x32b979('0xb8c'),'msg':_0x3b9a09[_0x32b979('0x10fd')]?JSON[_0x32b979('0xa48')](_0x3b9a09[_0x32b979('0x10fd')][_0x32b979('0x1402')]):_0x3b9a09[_0x32b979('0x684')]()});});}function _0x4d029b(_0x3963e5){var _0x36ffcf=_0x485298;return _0x25f629[_0x36ffcf('0x272b')][_0x36ffcf('0x297')]({'id':_0x3963e5['id']})[_0x36ffcf('0x1dc2')][_0x36ffcf('0xaa5')](function(_0x15370e){var _0xa90bcb=_0x36ffcf;_0x264a11[_0xa90bcb('0x1717')][_0x3963e5['id']]&&_0x51538b()['merge'](_0x264a11[_0xa90bcb('0x1717')][_0x3963e5['id']],_0x51538b()[_0xa90bcb('0x104e')](_0x15370e,_0x428cc7)),_0x264a11[_0xa90bcb('0x1f1d')][_0x3963e5['id']]&&_0x51538b()['merge'](_0x264a11['rpcAgents'][_0x3963e5['id']],_0x51538b()[_0xa90bcb('0x104e')](_0x15370e,_0x428cc7)),_0x54b302(_0x264a11['agents'][_0x3963e5['id']]);})[_0x36ffcf('0x253d')](function(_0x210afc){var _0x10fd4f=_0x36ffcf;_0x4a5490[_0x10fd4f('0x187f')]({'title':_0x210afc[_0x10fd4f('0x2fa')]?_0x10fd4f('0x16c2')+_0x210afc['status']+_0x10fd4f('0x169e')+_0x210afc[_0x10fd4f('0x24df')]:'api.staff.save','msg':_0x210afc[_0x10fd4f('0x10fd')]?JSON['stringify'](_0x210afc[_0x10fd4f('0x10fd')][_0x10fd4f('0x1402')]):_0x210afc[_0x10fd4f('0x684')]()});});}function _0x2a36a6(_0x564b2f){var _0x1c5f4a=_0x485298;_0x4bd0b1[_0x1c5f4a('0x1e6d')](_0x4bd0b1[_0x1c5f4a('0xc10')]()[_0x1c5f4a('0x22b9')](!![])[_0x1c5f4a('0x110a')](_0x1c5f4a('0x17e'))[_0x1c5f4a('0x102e')]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x1c5f4a('0x116d')](_0x564b2f));}function _0x117311(_0x5221a7,_0x53a4c5){var _0x43e1cf=_0x485298;_0x4bd0b1[_0x43e1cf('0x1e6d')]({'controller':_0x43e1cf('0x1200'),'controllerAs':'vm','templateUrl':_0x3a2df9,'parent':angular[_0x43e1cf('0x1aa8')](_0x5b536e[_0x43e1cf('0x54c')]),'targetEvent':_0x53a4c5,'clickOutsideToClose':!![],'locals':{'agent':_0x5221a7,'agents':[],'channel':'mail','direction':_0x43e1cf('0x4b8'),'crudPermissions':_0x264a11[_0x43e1cf('0xada')]}});}function _0x5d14d3(_0x36a668){var _0x3877a6=_0x485298;return _0x36a668===_0x3877a6('0x167c')||_0x36a668===_0x3877a6('0xa7d');}function _0x15aac1(_0x190dfc){var _0x3b7763=_0x485298;return _0x190dfc===_0x3b7763('0x167c');}function _0x2bd7fa(_0x219ae5){var _0x134e09=_0x485298;return _0x219ae5===_0x134e09('0xa7d');}function _0x3cc644(_0x3a05e2){var _0x2486a9=_0x485298;return _0x3a05e2===_0x2486a9('0x135e')||_0x3a05e2===_0x2486a9('0x15fd')||_0x3a05e2===_0x2486a9('0x2296')||_0x3a05e2===_0x2486a9('0xb02')||_0x51538b()[_0x2486a9('0x89a')](_0x3a05e2);}function _0x5a4dee(_0x379bad,_0x41c161){var _0x10df2b=_0x485298;if(_0x41c161===_0x10df2b('0x1b9')){if(_0x379bad[_0x41c161+_0x10df2b('0x26ae')]!==_0x10df2b('0x135e'))return _0x379bad[_0x41c161+_0x10df2b('0x26ae')];if(_0x379bad[_0x41c161+'Pause'])return _0x379bad[_0x41c161+_0x10df2b('0x26ae')]=_0x10df2b('0x167c'),'pause';return'idle';}else{if(_0x379bad[_0x41c161+'Pause'])return _0x379bad[_0x41c161+_0x10df2b('0x26ae')]=_0x10df2b('0x167c'),'pause';return _0x379bad[_0x41c161+_0x10df2b('0x26ae')];}}function _0x54b302(_0x2c1b79){var _0x1e56f3=_0x485298,_0x26cb3e='unknown';if(_0x51538b()[_0x1e56f3('0x2ed')]([_0x5a4dee(_0x2c1b79,_0x1e56f3('0x1b9')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x20f9')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x14c5')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x170')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x18da')),_0x5a4dee(_0x2c1b79,'whatsapp'),_0x5a4dee(_0x2c1b79,'fax')],_0x5d14d3))_0x26cb3e=_0x1e56f3('0x167c');else{if(_0x51538b()[_0x1e56f3('0x2c2')]([_0x5a4dee(_0x2c1b79,_0x1e56f3('0x1b9')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x20f9')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x14c5')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x170')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x18da')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x220d')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x16c4'))],_0x5d14d3))_0x26cb3e=_0x1e56f3('0xa7d');else _0x51538b()['every']([_0x5a4dee(_0x2c1b79,_0x1e56f3('0x1b9')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x20f9')),_0x5a4dee(_0x2c1b79,'mail'),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x170')),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x18da')),_0x5a4dee(_0x2c1b79,'whatsapp'),_0x5a4dee(_0x2c1b79,_0x1e56f3('0x16c4'))],_0x3cc644)?_0x26cb3e=_0x1e56f3('0x135e'):_0x26cb3e=_0x1e56f3('0xa1e');}_0x2c1b79[_0x1e56f3('0x151c')]!==_0x26cb3e&&(_0x2c1b79[_0x1e56f3('0x151c')]=_0x26cb3e,_0x2c1b79[_0x1e56f3('0x2e')]?(_0x2c1b79['init']=![],_0x2c1b79[_0x1e56f3('0x920')]=_0x5d14d3(_0x26cb3e)?_0x51538b()['toNumber'](_0x420d43()(_0x2c1b79[_0x1e56f3('0x1ce0')])[_0x1e56f3('0x1f27')]('x')):_0x51538b()[_0x1e56f3('0x4c2')]([_0x2c1b79[_0x1e56f3('0x1ddc')],_0x2c1b79['chatStatusTime'],_0x2c1b79['mailStatusTime'],_0x2c1b79['smsStatusTime'],_0x2c1b79[_0x1e56f3('0x166b')],_0x2c1b79[_0x1e56f3('0x26e5')],_0x2c1b79[_0x1e56f3('0xa0a')]])):_0x2c1b79[_0x1e56f3('0x920')]=_0x51538b()[_0x1e56f3('0x228e')](_0x420d43()()[_0x1e56f3('0x1f27')]('x')));}function _0x16f407(_0x5a43aa){var _0x426bd7=_0x485298,_0x1a6d60=_0x51538b()[_0x426bd7('0x6e8')](_0x264a11[_0x426bd7('0x582')][_0x426bd7('0x1536')],'-')?_0x426bd7('0x71c'):'asc';return _0x51538b()[_0x426bd7('0x271d')](_0x5a43aa,[_0x264a11[_0x426bd7('0x582')]['order'][_0x426bd7('0x170d')]('-','')],[_0x1a6d60]);}function _0x4f3cfc(){var _0x57e033=_0x485298;_0x325379&&(_0x48c407[_0x57e033('0x2030')](_0x325379),_0x325379=null);}function _0x5e5407(_0x3b5008,_0x51cace){var _0x5d9919=_0x485298;return _0x25f629[_0x5d9919('0x272b')]['update']({'id':_0x3b5008['id']},{'screenrecording':_0x51cace})[_0x5d9919('0x1dc2')][_0x5d9919('0x253d')](function(_0x3db5c1){var _0x31d409=_0x5d9919;_0x4a5490['error']({'title':_0x3db5c1[_0x31d409('0x2fa')]?_0x31d409('0x16c2')+_0x3db5c1['status']+_0x31d409('0x169e')+_0x3db5c1[_0x31d409('0x24df')]:_0x31d409('0x11e6'),'msg':_0x3db5c1[_0x31d409('0x10fd')]?JSON[_0x31d409('0xa48')](_0x3db5c1['data']['message']):_0x3db5c1[_0x31d409('0x684')]()});});}_0x3e318c[_0x485298('0xc75')](_0x485298('0x12d0'),function(){var _0x123d2a=_0x485298;_0x247d9e[_0x123d2a('0x2629')](_0x123d2a('0x1acf')),_0x247d9e[_0x123d2a('0x2629')](_0x123d2a('0x15fb')),_0x247d9e[_0x123d2a('0x2629')](_0x123d2a('0x25ea')),_0x247d9e[_0x123d2a('0x2629')](_0x123d2a('0x2728')),_0x4f3cfc();});}const _0x18985e=_0x39dccc,_0x2d4212=_0x4fb511['p']+_0x1a8446('0x1071'),_0x43f284=_0x4fb511['p']+_0x1a8446('0x2175');_0x19841f[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$q',_0x1a8446('0x39b'),'$interval','queues','rpcQueues',_0x1a8446('0x157'),_0x1a8446('0xe74'),'toasty','userProfile',_0x1a8446('0x1a50'),'Auth'];function _0x19841f(_0x19c799,_0x21b9ab,_0x2799fa,_0x2ed773,_0x53b384,_0x5a6355,_0x21262c,_0x26e0ba,_0x13c70c,_0x10147f,_0x483fe5,_0x1587d2,_0x41f966,_0x5af87c){var _0x4db189=_0x1a8446,_0x16aea4=this,_0xe23103=[_0x4db189('0x2226'),_0x4db189('0x1ade'),_0x4db189('0xd3d'),_0x4db189('0xf01'),_0x4db189('0x1a56'),_0x4db189('0x301'),_0x4db189('0x1402'),_0x4db189('0x1b71'),_0x4db189('0x1ba1'),_0x4db189('0x4a6'),_0x4db189('0x16ce')];_0x16aea4[_0x4db189('0x7fc')]=_0x5af87c[_0x4db189('0xacc')](),_0x16aea4[_0x4db189('0xd15')]=_0x21262c['count']?_0x21262c[_0x4db189('0xd15')]:0x0,_0x16aea4[_0x4db189('0x4d7')]=_0x21262c?_0x51538b()[_0x4db189('0x184a')](_0x21262c[_0x4db189('0x580')]?_0x21262c[_0x4db189('0x580')]:[],'id'):{},_0x16aea4[_0x4db189('0x1f2f')]=_0x26e0ba?_0x51538b()['keyBy'](_0x26e0ba[_0x4db189('0x580')]?_0x26e0ba['rows']:[],'id'):{},_0x16aea4[_0x4db189('0x1e97')]=_0x1587d2,_0x16aea4[_0x4db189('0x1a50')]=_0x41f966&&_0x41f966['count']==0x1?_0x41f966[_0x4db189('0x580')][0x0]:null,_0x16aea4[_0x4db189('0xada')]=_0x5af87c[_0x4db189('0xffd')](_0x16aea4['userProfileSection']?_0x16aea4[_0x4db189('0x1a50')][_0x4db189('0xada')]:null);_0x5af87c[_0x4db189('0x26e8')](_0x4db189('0x178b'))?_0x16aea4[_0x4db189('0x582')]={'type':'inbound','sort':_0x4db189('0xd82'),'limit':0xa,'page':0x1}:_0x16aea4[_0x4db189('0x582')]={'id':_0x16aea4[_0x4db189('0x7fc')]['id'],'channel':_0x4db189('0x14c5'),'type':_0x4db189('0x4b8'),'sort':_0x4db189('0xd82'),'limit':0xa,'page':0x1};_0x16aea4[_0x4db189('0xe10')]=_0x482e61,_0x16aea4[_0x4db189('0x1e87')]=_0x531d89,_0x16aea4[_0x4db189('0x2027')]=_0x5b2cc5,_0x16aea4[_0x4db189('0x101f')]=_0x30a602,_0x16aea4['updateQueue']=_0x1f9a58,_0x16aea4[_0x4db189('0x1a4b')]=_0x562a4f,_0x16aea4[_0x4db189('0x22a5')]=_0x4407d1,_0x16aea4[_0x4db189('0x6d4')]=_0x5846d6,_0x16aea4['onPause']=_0x4b3a2f,_0x16aea4[_0x4db189('0x24d2')]=_0x2752bf,_0x16aea4[_0x4db189('0x10c6')]=_0x280320,_0x16aea4[_0x4db189('0x141')]=_0x197a0c,_0x16aea4[_0x4db189('0x1536')]=[],_0x51538b()['forIn'](_0x16aea4[_0x4db189('0x4d7')],function(_0x52184a){var _0x10a5db=_0x4db189;_0x16aea4[_0x10a5db('0x1536')][_0x10a5db('0x1599')](_0x52184a['id']);}),_0x10147f['on'](_0x4db189('0x1af1'),_0x16aea4[_0x4db189('0x1a4b')]),_0x10147f['on']('userMailQueue:save',_0x16aea4['onSaveMember']),_0x10147f['on'](_0x4db189('0x1947'),_0x16aea4[_0x4db189('0x6d4')]),_0x10147f['on']('user:update',_0x16aea4[_0x4db189('0x2511')]),_0x10147f['on'](_0x4db189('0x10ac'),_0x16aea4[_0x4db189('0x10c6')]),_0x10147f['on'](_0x4db189('0x77e'),_0x16aea4[_0x4db189('0x24d2')]);function _0x197a0c(){var _0x2adec4=_0x4db189,_0x21da5d=[];return _0x51538b()[_0x2adec4('0x143e')](_0x16aea4[_0x2adec4('0x4d7')],function(_0x5e8341,_0x1ffac9){var _0x3aba91=_0x2adec4;_0x5e8341[_0x3aba91('0x16ce')]=0x0,_0x5e8341[_0x3aba91('0xe81')]=0x0,_0x16aea4[_0x3aba91('0x4d7')][_0x1ffac9]['agents']={},_0x21da5d['push'](_0x13c70c[_0x3aba91('0x21c6')]['getMembers']({'id':_0x1ffac9})[_0x3aba91('0x1dc2')]),_0x16aea4['rpcQueues'][_0x1ffac9]&&_0x51538b()[_0x3aba91('0x283c')](_0x5e8341,_0x51538b()[_0x3aba91('0x104e')](_0x16aea4[_0x3aba91('0x1f2f')][_0x1ffac9],_0xe23103));}),_0x2ed773['all'](_0x21da5d)['then'](function(_0x15519e){var _0x3b58c0=_0x2adec4;for(var _0x56f6a3=0x0;_0x56f6a3<_0x15519e['length'];_0x56f6a3+=0x1){for(var _0x569601=0x0;_0x569601<_0x15519e[_0x56f6a3][_0x3b58c0('0x580')][_0x3b58c0('0x2587')];_0x569601++){_0x15519e[_0x56f6a3]['rows'][_0x569601]['paused']&&_0x16aea4[_0x3b58c0('0x4d7')][_0x15519e[_0x56f6a3][_0x3b58c0('0x580')][_0x569601][_0x3b58c0('0xbd4')]][_0x3b58c0('0x16ce')]++,_0x16aea4[_0x3b58c0('0x4d7')][_0x15519e[_0x56f6a3][_0x3b58c0('0x580')][_0x569601][_0x3b58c0('0xbd4')]][_0x3b58c0('0xe81')]++,_0x16aea4['queues'][_0x15519e[_0x56f6a3][_0x3b58c0('0x580')][_0x569601][_0x3b58c0('0xbd4')]][_0x3b58c0('0x1717')][_0x15519e[_0x56f6a3][_0x3b58c0('0x580')][_0x569601]['UserId']]=_0x15519e[_0x56f6a3][_0x3b58c0('0x580')][_0x569601][_0x3b58c0('0xbd4')];}}})[_0x2adec4('0x253d')](function(_0x263327){console['error'](_0x263327);});}function _0x562a4f(_0x269c9c){var _0x3d8eaa=_0x4db189;_0x16aea4['queues'][_0x269c9c['id']]&&_0x51538b()['merge'](_0x16aea4['queues'][_0x269c9c['id']],_0x51538b()[_0x3d8eaa('0x104e')](_0x269c9c,_0xe23103));}function _0x4407d1(_0x2a5dec){var _0x51d73e=_0x4db189;_0x16aea4[_0x51d73e('0x4d7')][_0x2a5dec[_0x51d73e('0xbd4')]]&&_0x16aea4[_0x51d73e('0x4d7')][_0x2a5dec[_0x51d73e('0xbd4')]][_0x51d73e('0xe81')]++;}function _0x5846d6(_0x319d5a){var _0x3d24eb=_0x4db189;_0x16aea4[_0x3d24eb('0x4d7')][_0x319d5a[_0x3d24eb('0xbd4')]]&&_0x16aea4[_0x3d24eb('0x4d7')][_0x319d5a[_0x3d24eb('0xbd4')]][_0x3d24eb('0xe81')]--;}function _0x4b3a2f(_0x41c9d4){var _0x4f1c7c=_0x4db189;console[_0x4f1c7c('0x18d5')]('onPause',_0x41c9d4);if(_0x41c9d4[_0x4f1c7c('0x2519')])_0x51538b()[_0x4f1c7c('0x143e')](_0x16aea4[_0x4f1c7c('0x4d7')],function(_0xc03e2c){var _0x5ad130=_0x4f1c7c;_0xc03e2c[_0x5ad130('0x1717')][_0x41c9d4['id']]&&(_0xc03e2c[_0x5ad130('0x16ce')]+=0x1,console[_0x5ad130('0x18d5')]('pause'));});else!_0x41c9d4['voicePause']&&_0x51538b()[_0x4f1c7c('0x143e')](_0x16aea4[_0x4f1c7c('0x4d7')],function(_0x285ace){var _0x350838=_0x4f1c7c;_0x285ace[_0x350838('0x1717')][_0x41c9d4['id']]&&(_0x285ace[_0x350838('0x16ce')]>0x0&&(_0x285ace[_0x350838('0x16ce')]-=0x1,console[_0x350838('0x18d5')]('unpause')));});}function _0x2752bf(_0x4d9bff){var _0x35a729=_0x4db189;console[_0x35a729('0x18d5')](_0x35a729('0x1044'),_0x4d9bff),_0x16aea4['queues'][_0x4d9bff['MailQueueId']]&&(_0x16aea4[_0x35a729('0x4d7')][_0x4d9bff[_0x35a729('0xbd4')]][_0x35a729('0xe81')]+=0x1,_0x16aea4[_0x35a729('0x4d7')][_0x4d9bff[_0x35a729('0xbd4')]]['agents'][_0x4d9bff[_0x35a729('0x1037')]]=_0x4d9bff[_0x35a729('0xbd4')]);}function _0x280320(_0x184e14){var _0x3a01a2=_0x4db189;console[_0x3a01a2('0x18d5')](_0x3a01a2('0x10c6'),_0x184e14),_0x16aea4[_0x3a01a2('0x4d7')][_0x184e14['MailQueueId']]&&_0x16aea4[_0x3a01a2('0x4d7')][_0x184e14[_0x3a01a2('0xbd4')]]['loggedInDb']>0x0&&(_0x16aea4[_0x3a01a2('0x4d7')][_0x184e14['MailQueueId']][_0x3a01a2('0xe81')]-=0x1,delete _0x16aea4['queues'][_0x184e14['MailQueueId']][_0x3a01a2('0x1717')][_0x184e14['UserId']]);}var _0x50c83f=!![],_0x41ff1c=0x1;_0x19c799[_0x4db189('0x1ccf')](_0x4db189('0x1788'),function(_0xa68fd9,_0x17c24f){var _0x231569=_0x4db189;_0x50c83f?_0x21b9ab(function(){_0x50c83f=![];}):(!_0x17c24f&&(_0x41ff1c=_0x16aea4[_0x231569('0x582')]['page']),_0xa68fd9!==_0x17c24f&&(_0x16aea4['query']['page']=0x1),!_0xa68fd9&&(_0x16aea4[_0x231569('0x582')][_0x231569('0x41')]=_0x41ff1c),_0x16aea4[_0x231569('0x1e87')]());});function _0x482e61(_0x108efd){var _0x26559a=_0x4db189;_0x16aea4[_0x26559a('0xd15')]=_0x108efd['count'],_0x16aea4[_0x26559a('0x4d7')]=_0x108efd?_0x51538b()[_0x26559a('0x184a')](_0x108efd[_0x26559a('0x580')]?_0x108efd[_0x26559a('0x580')]:[],'id'):{};if(_0x108efd[_0x26559a('0x580')]){_0x16aea4[_0x26559a('0x1536')]=[];for(var _0x2ba9ca=0x0;_0x2ba9ca<_0x108efd[_0x26559a('0x580')]['length'];_0x2ba9ca++){_0x16aea4[_0x26559a('0x1536')][_0x26559a('0x1599')](_0x108efd[_0x26559a('0x580')][_0x2ba9ca]['id']);}}_0x197a0c();}function _0x531d89(){var _0x5ccedd=_0x4db189;_0x16aea4[_0x5ccedd('0x582')][_0x5ccedd('0x8b1')]=(_0x16aea4[_0x5ccedd('0x582')][_0x5ccedd('0x41')]-0x1)*_0x16aea4[_0x5ccedd('0x582')][_0x5ccedd('0xf4d')],_0x5af87c[_0x5ccedd('0x26e8')](_0x5ccedd('0x178b'))?_0x16aea4[_0x5ccedd('0x159a')]=_0x13c70c['mailQueue'][_0x5ccedd('0x2122')](_0x16aea4[_0x5ccedd('0x582')],_0x482e61)[_0x5ccedd('0x1dc2')]:(_0x16aea4['query']['id']=_0x16aea4['userProfile']['id'],_0x16aea4[_0x5ccedd('0x582')][_0x5ccedd('0x224d')]='MailQueues',_0x16aea4['promise']=_0x13c70c[_0x5ccedd('0x1e97')][_0x5ccedd('0x1cf1')](_0x16aea4[_0x5ccedd('0x582')],_0x482e61)[_0x5ccedd('0x1dc2')]);}function _0x5b2cc5(_0x11c0e4,_0x202af2){var _0x53abca=_0x4db189;_0x2799fa[_0x53abca('0x1e6d')]({'controller':_0x53abca('0x1e52'),'controllerAs':'vm','templateUrl':_0x2d4212,'parent':angular[_0x53abca('0x1aa8')](_0x53b384[_0x53abca('0x54c')]),'targetEvent':_0x11c0e4,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x202af2,'mailQueues':_0x51538b()['values'](_0x16aea4[_0x53abca('0x4d7')]),'license':null,'setting':null,'crudPermissions':_0x16aea4[_0x53abca('0xada')]}});}function _0x30a602(_0x4e609e,_0x52d5f8){var _0x399cd6=_0x4db189;_0x2799fa[_0x399cd6('0x1e6d')]({'controller':_0x399cd6('0x4ee'),'controllerAs':'vm','templateUrl':_0x43f284,'parent':angular[_0x399cd6('0x1aa8')](_0x53b384[_0x399cd6('0x54c')]),'targetEvent':_0x4e609e,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x52d5f8,'mailQueues':_0x16aea4[_0x399cd6('0x4d7')]?_0x16aea4[_0x399cd6('0x4d7')][_0x399cd6('0x580')]:[],'realtime':![],'crudPermissions':_0x16aea4[_0x399cd6('0xada')]}});}function _0x1f9a58(_0x2b3e4e){var _0xf0569a=_0x4db189;return _0x13c70c[_0xf0569a('0x21c6')][_0xf0569a('0x264e')](_0x2b3e4e)['$promise'][_0xf0569a('0xaa5')](function(){var _0x72f2c7=_0xf0569a;_0x483fe5[_0x72f2c7('0xe10')]({'title':_0x72f2c7('0x2758'),'msg':_0x2b3e4e[_0x72f2c7('0x25d6')]?_0x2b3e4e[_0x72f2c7('0x25d6')]+_0x72f2c7('0x1734'):''});})[_0xf0569a('0x253d')](function(_0x5b3a3d){var _0x43f16e=_0xf0569a;_0x483fe5[_0x43f16e('0x187f')]({'title':_0x43f16e('0x777'),'msg':_0x5b3a3d[_0x43f16e('0x1402')]});});}_0x19c799[_0x4db189('0xc75')](_0x4db189('0x12d0'),function(){var _0x47b5c2=_0x4db189;_0x10147f[_0x47b5c2('0x2629')](_0x47b5c2('0x1af1')),_0x10147f[_0x47b5c2('0x2629')](_0x47b5c2('0x1947')),_0x10147f['removeAllListeners'](_0x47b5c2('0x3d2')),_0x10147f[_0x47b5c2('0x2629')]('user:update'),_0x10147f[_0x47b5c2('0x2629')]('userVoiceQueue:remove'),_0x10147f['removeAllListeners'](_0x47b5c2('0x77e'));});}const _0xc7a929=_0x19841f;function _0x1930dd(){var _0x44cea1=_0x1a8446;return{'status':{'registered':_0x44cea1('0x1'),'unregistered':_0x44cea1('0x15cb'),'lagged':_0x44cea1('0x15cb'),'reachable':_0x44cea1('0x1'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x44cea1('0x17')},'state':{'unknown':_0x44cea1('0xc98'),'not_inuse':_0x44cea1('0x1670'),'inuse':_0x44cea1('0x15a1'),'busy':_0x44cea1('0xb2'),'invalid':_0x44cea1('0xc98'),'unavailable':_0x44cea1('0xc98'),'ringing':_0x44cea1('0x1dac'),'ringinuse':_0x44cea1('0x1dac'),'onhold':_0x44cea1('0xcf5')},'channelStatus':{'ring':_0x44cea1('0x1dac'),'up':_0x44cea1('0xe58'),'hangup':_0x44cea1('0x182a')},'channelStatusOut':{'ring':_0x44cea1('0x15d9'),'up':_0x44cea1('0xe58'),'hangup':_0x44cea1('0x182a')}};}const _0x15286f=_0x1930dd;_0x4834ea['$inject']=[_0x1a8446('0x51'),'$state','socket'];function _0x4834ea(_0x4d4925,_0x5cc18b,_0x5dc9fd){var _0x4cfe15=_0x1a8446,_0xd752b4=this;_0x5dc9fd['disconnect'](),_0x5dc9fd['connect'](),_0xd752b4[_0x4cfe15('0xe5c')]=0x0;switch(_0x5cc18b[_0x4cfe15('0x4cb')][_0x4cfe15('0x25d6')]){case _0x4cfe15('0x17a8'):_0xd752b4['selectedTab']=0x0;break;case _0x4cfe15('0x1054'):_0xd752b4[_0x4cfe15('0xe5c')]=0x1;break;case _0x4cfe15('0x383'):_0xd752b4[_0x4cfe15('0xe5c')]=0x2;break;default:_0xd752b4[_0x4cfe15('0xe5c')]=0x0,_0x5cc18b['go']('app.mail.realtime.agents');}_0x4d4925[_0x4cfe15('0x1ccf')](_0x4cfe15('0xf1a'),function(_0x353a5e,_0x46a2ec){var _0x4ac5c4=_0x4cfe15;if(_0x353a5e!==_0x46a2ec)switch(_0x353a5e){case 0x0:_0x5cc18b['go'](_0x4ac5c4('0x17a8'));break;case 0x1:_0x5cc18b['go'](_0x4ac5c4('0x1054'));break;case 0x2:_0x5cc18b['go'](_0x4ac5c4('0x383'));break;default:_0x5cc18b['go'](_0x4ac5c4('0x17a8'));}});}const _0x279d29=_0x4834ea;_0x909866[_0x1a8446('0x1e33')]=['$stateProvider'];function _0x909866(_0x2b48e0){var _0x2dcb5d=_0x1a8446;_0x2b48e0['state']('app.mail.realtime',{'url':_0x2dcb5d('0x22d4'),'views':{'content@app':{'templateUrl':_0x5be2b7,'controller':_0x2dcb5d('0xfee')}},'resolve':{'userProfile':[_0x2dcb5d('0x1d16'),_0x2dcb5d('0x1dfd'),function _0x591ab5(_0x5ccda4,_0x7d3507){var _0x56717a=_0x2dcb5d;return _0x7d3507['hasRole']('admin')?null:_0x5ccda4['resolve'](_0x56717a('0x567'),{'fields':'id,name,crudPermissions','id':_0x7d3507[_0x56717a('0xacc')]()[_0x56717a('0x2168')]});}],'userProfileSection':[_0x2dcb5d('0x1d16'),_0x2dcb5d('0x1dfd'),function _0x23de82(_0x5d28fe,_0x1610c0){var _0x4f24a0=_0x2dcb5d;return _0x1610c0['hasRole'](_0x4f24a0('0x178b'))?null:_0x5d28fe[_0x4f24a0('0x149f')](_0x4f24a0('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1610c0[_0x4f24a0('0xacc')]()[_0x4f24a0('0x2168')],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})['state'](_0x2dcb5d('0x17a8'),{'url':_0x2dcb5d('0x141f'),'controller':'AgentsMailRealtimeController\x20as\x20vm','templateUrl':_0x2168ea,'resolve':{'pauses':['apiResolver',function _0x5816c8(_0x2fe984){var _0x2f55a7=_0x2dcb5d;return _0x2fe984['resolve'](_0x2f55a7('0x56b'),{'nolimit':!![]});}],'agents':[_0x2dcb5d('0x1d16'),'Auth',function _0x99875e(_0x1f6ae6,_0x1f66fc){var _0xe68eb8=_0x2dcb5d;return _0x1f66fc[_0xe68eb8('0x26e8')]('admin')?_0x1f6ae6[_0xe68eb8('0x149f')](_0xe68eb8('0xde4'),{'fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':_0xe68eb8('0xeff'),'sort':_0xe68eb8('0x18e5'),'nolimit':!![]}):_0x1f6ae6[_0xe68eb8('0x149f')]('userProfile@getResources',{'id':_0x1f66fc[_0xe68eb8('0xacc')]()[_0xe68eb8('0x2168')],'section':_0xe68eb8('0x91a'),'fields':_0xe68eb8('0x515'),'role':'agent','sort':_0xe68eb8('0x18e5'),'nolimit':!![]});}],'userProfile':[_0x2dcb5d('0x1d16'),_0x2dcb5d('0x1dfd'),function _0x11ed31(_0x1f7391,_0x22b7dc){var _0x1931cc=_0x2dcb5d;return _0x22b7dc[_0x1931cc('0x26e8')](_0x1931cc('0x178b'))?null:_0x1f7391['resolve'](_0x1931cc('0x567'),{'fields':_0x1931cc('0x1bb0'),'id':_0x22b7dc[_0x1931cc('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x2dcb5d('0x1d16'),_0x2dcb5d('0x1dfd'),function _0x1a134f(_0x143dec,_0x2f75b0){var _0x1dd7bb=_0x2dcb5d;return _0x2f75b0[_0x1dd7bb('0x26e8')]('admin')?null:_0x143dec['resolve'](_0x1dd7bb('0x89e'),{'fields':_0x1dd7bb('0xe6a'),'userProfileId':_0x2f75b0[_0x1dd7bb('0xacc')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x2dcb5d('0x1d16'),function _0x523f14(_0x22aad7){var _0x20cfec=_0x2dcb5d;return _0x22aad7[_0x20cfec('0x149f')](_0x20cfec('0x1809'));}]},'authenticate':!![],'permissionId':0x262})[_0x2dcb5d('0xb46')](_0x2dcb5d('0x1054'),{'url':'/queues','controller':'QueuesMailRealtimeController\x20as\x20vm','templateUrl':_0x44fcdf,'resolve':{'queues':[_0x2dcb5d('0x1d16'),'Auth',function _0x58da95(_0x3dc81b,_0x395af0){var _0x3c0168=_0x2dcb5d;return _0x395af0[_0x3c0168('0x26e8')](_0x3c0168('0x178b'))?_0x3dc81b['resolve'](_0x3c0168('0x1cd'),{'type':_0x3c0168('0x4b8'),'sort':_0x3c0168('0xd82'),'limit':0xa,'offset':0x0}):_0x3dc81b['resolve'](_0x3c0168('0x49a'),{'id':_0x395af0[_0x3c0168('0xacc')]()[_0x3c0168('0x2168')],'section':_0x3c0168('0xafe'),'channel':_0x3c0168('0x14c5'),'type':'inbound','sort':_0x3c0168('0xd82'),'limit':0xa,'page':0x1});}],'userProfile':[_0x2dcb5d('0x1d16'),_0x2dcb5d('0x1dfd'),function _0x5dde50(_0x4b24c7,_0x2a968b){var _0x2f8959=_0x2dcb5d;return _0x2a968b[_0x2f8959('0x26e8')](_0x2f8959('0x178b'))?null:_0x4b24c7[_0x2f8959('0x149f')](_0x2f8959('0x567'),{'fields':_0x2f8959('0x1bb0'),'id':_0x2a968b[_0x2f8959('0xacc')]()[_0x2f8959('0x2168')]});}],'userProfileSection':[_0x2dcb5d('0x1d16'),_0x2dcb5d('0x1dfd'),function _0x383e8f(_0x211e0f,_0x3c1130){var _0xe4e6b0=_0x2dcb5d;return _0x3c1130[_0xe4e6b0('0x26e8')](_0xe4e6b0('0x178b'))?null:_0x211e0f[_0xe4e6b0('0x149f')](_0xe4e6b0('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3c1130[_0xe4e6b0('0xacc')]()[_0xe4e6b0('0x2168')],'sectionId':0x259});}],'rpcQueues':['apiResolver',function _0xde7391(_0x109d9d){return _0x109d9d['resolve']('rpc@getMailQueues');}]},'authenticate':!![],'permissionId':0x262})[_0x2dcb5d('0xb46')]('app.mail.realtime.accounts',{'url':_0x2dcb5d('0xecd'),'controller':_0x2dcb5d('0x498'),'templateUrl':_0x2c72b1,'resolve':{'mailAccounts':['apiResolver',_0x2dcb5d('0x1dfd'),function _0x41e253(_0xf6ae9e,_0xa71fa3){var _0x13532a=_0x2dcb5d;return _0xa71fa3['hasRole']('admin')?_0xf6ae9e[_0x13532a('0x149f')](_0x13532a('0x2418'),{'sort':_0x13532a('0xd82'),'limit':0xa,'offset':0x0}):_0xf6ae9e[_0x13532a('0x149f')](_0x13532a('0x49a'),{'id':_0xa71fa3[_0x13532a('0xacc')]()['userProfileId'],'section':'MailAccounts','sort':_0x13532a('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2dcb5d('0x1d16'),_0x2dcb5d('0x1dfd'),function _0x479160(_0x288261,_0x230489){var _0x596792=_0x2dcb5d;return _0x230489['hasRole'](_0x596792('0x178b'))?null:_0x288261[_0x596792('0x149f')](_0x596792('0x567'),{'fields':_0x596792('0x1bb0'),'id':_0x230489[_0x596792('0xacc')]()[_0x596792('0x2168')]});}],'userProfileSection':['apiResolver',_0x2dcb5d('0x1dfd'),function _0x3daea4(_0x116a64,_0x28ac07){var _0x1de0d3=_0x2dcb5d;return _0x28ac07['hasRole'](_0x1de0d3('0x178b'))?null:_0x116a64[_0x1de0d3('0x149f')](_0x1de0d3('0x89e'),{'fields':_0x1de0d3('0xe6a'),'userProfileId':_0x28ac07[_0x1de0d3('0xacc')]()[_0x1de0d3('0x2168')],'sectionId':0x25a});}],'rpcMailAccounts':[_0x2dcb5d('0x1d16'),function _0x4d2754(_0x5ed6b3){var _0x5e32f7=_0x2dcb5d;return _0x5ed6b3['resolve'](_0x5e32f7('0x1780'));}]},'authenticate':!![],'permissionId':0x262});}angular['module'](_0x1a8446('0xaa8'),[])[_0x1a8446('0x1b14')](_0x909866)[_0x1a8446('0x780')](_0x1a8446('0x1c14'),_0x18985e)[_0x1a8446('0x780')](_0x1a8446('0x1553'),_0xc7a929)[_0x1a8446('0x1be9')](_0x1a8446('0x5b4'),_0x15286f)[_0x1a8446('0x780')](_0x1a8446('0x156d'),_0x279d29);const _0x2ec378=_0x4fb511['p']+'src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues-[chunkhash].html',_0x24891b=_0x4fb511['p']+_0x1a8446('0x22c8'),_0x43ca18=_0x4fb511['p']+_0x1a8446('0xb29'),_0x505fc2=_0x4fb511['p']+_0x1a8446('0x21eb'),_0x1adc8f=_0x4fb511['p']+_0x1a8446('0x62a');_0x2079f2['$inject']=[_0x1a8446('0x51'),'$state','$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'mailAccounts',_0x1a8446('0xb86'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x2079f2(_0x2b3134,_0x205fd1,_0x4364e5,_0x51ebb8,_0x50fbbe,_0x5cf8d1,_0x21682f,_0x4fe6ed,_0x54b0b5,_0x40ccd6,_0x904827,_0x1969ca,_0x256f58,_0x5ee3bc){var _0x2e5a5f=_0x1a8446,_0x546b15=this;_0x546b15['currentUser']=_0x904827[_0x2e5a5f('0xacc')](),_0x546b15[_0x2e5a5f('0x4c6')]=[],_0x546b15[_0x2e5a5f('0x143f')]=_0x256f58,_0x546b15[_0x2e5a5f('0x1202')]=_0x1969ca,_0x546b15[_0x2e5a5f('0xada')]=_0x5ee3bc,_0x546b15['hasModulePermissions']={},_0x546b15[_0x2e5a5f('0x1d53')]=_0x546b15['setting']&&_0x546b15['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x546b15[_0x2e5a5f('0x110a')]=_0x2e5a5f('0x1e8'),_0x546b15[_0x2e5a5f('0xb86')]=angular[_0x2e5a5f('0x20a')](_0x54b0b5),_0x546b15['mailAccounts']=_0x4fe6ed,_0x546b15[_0x2e5a5f('0xbc7')]=![];!_0x546b15['mailAccount']&&(_0x546b15[_0x2e5a5f('0xb86')]={'active':!![],'cservice':_0x2e5a5f('0x1ed9'),'cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x546b15[_0x2e5a5f('0x110a')]=_0x2e5a5f('0x102d'),_0x546b15['newMailAccount']=!![]);_0x205fd1[_0x2e5a5f('0x25cf')]['id']&&(_0x546b15[_0x2e5a5f('0xb86')][_0x2e5a5f('0x2307')]=_0x205fd1[_0x2e5a5f('0x25cf')]['id']);_0x546b15['addNewMailAccount']=_0x4fc52e,_0x546b15[_0x2e5a5f('0x1fbd')]=_0x26787d,_0x546b15[_0x2e5a5f('0xfa0')]=_0x132eb7,_0x546b15[_0x2e5a5f('0xc09')]=_0x53fedb,_0x546b15['closeDialog']=_0x18b440,_0x904827[_0x2e5a5f('0x26e8')](_0x2e5a5f('0x178b'))?_0x40ccd6[_0x2e5a5f('0x26b4')][_0x2e5a5f('0x2122')]({'fields':_0x2e5a5f('0x17fe'),'sort':_0x2e5a5f('0x25d6')})[_0x2e5a5f('0x1dc2')][_0x2e5a5f('0xaa5')](function(_0x1e3440){var _0x1a871f=_0x2e5a5f;_0x546b15['lists']=_0x1e3440[_0x1a871f('0x580')]||[];})[_0x2e5a5f('0x253d')](function(_0x4b6756){var _0x30d44a=_0x2e5a5f;_0x21682f[_0x30d44a('0x187f')]({'title':_0x4b6756[_0x30d44a('0x2fa')]?'API:'+_0x4b6756[_0x30d44a('0x2fa')]+_0x30d44a('0x169e')+_0x4b6756[_0x30d44a('0x24df')]:_0x30d44a('0x1adf'),'msg':_0x4b6756[_0x30d44a('0x10fd')]?JSON['stringify'](_0x4b6756[_0x30d44a('0x10fd')]):_0x4b6756[_0x30d44a('0x684')]()});}):_0x40ccd6[_0x2e5a5f('0x26b4')][_0x2e5a5f('0x2122')]({'fields':_0x2e5a5f('0x17fe'),'sort':'name'})['$promise'][_0x2e5a5f('0xaa5')](function(_0x3b2a33){var _0x25200d=_0x2e5a5f;_0x546b15[_0x25200d('0x1126')]=_0x3b2a33['rows']||[];})[_0x2e5a5f('0xaa5')](function(){var _0x5e37ce=_0x2e5a5f;return _0x40ccd6[_0x5e37ce('0x1a50')]['get']({'userProfileId':_0x546b15[_0x5e37ce('0x7fc')]['userProfileId'],'sectionId':0x12d})[_0x5e37ce('0x1dc2')];})['then'](function(_0x343141){var _0x3de558=_0x2e5a5f,_0x11713f=_0x343141&&_0x343141['rows']?_0x343141[_0x3de558('0x580')][0x0]:null;if(!_0x11713f){var _0x4afd5c=[],_0x4f31f2=null;_0x546b15[_0x3de558('0xb86')]&&(_0x4f31f2=_0x51538b()[_0x3de558('0xe9e')](_0x546b15[_0x3de558('0x1126')],{'id':Number(_0x546b15[_0x3de558('0xb86')][_0x3de558('0xee0')])}));for(var _0x4893c8=0x0;_0x4893c8<_0x546b15[_0x3de558('0x1126')][_0x3de558('0x2587')];_0x4893c8++){_0x4f31f2&&_0x546b15['lists'][_0x4893c8]['id']===_0x4f31f2['id']&&(_0x546b15[_0x3de558('0x1126')][_0x4893c8][_0x3de558('0x12eb')]=![],_0x4afd5c[_0x3de558('0x1599')](_0x546b15[_0x3de558('0x1126')][_0x4893c8]));}_0x546b15[_0x3de558('0x1126')]=_0x4afd5c;}else{if(!_0x11713f[_0x3de558('0x26cc')])return _0x40ccd6[_0x3de558('0x249a')][_0x3de558('0x2122')]({'sectionId':_0x11713f['id']})[_0x3de558('0x1dc2')][_0x3de558('0xaa5')](function(_0x1bf006){var _0x18bca6=_0x3de558,_0x382b3c=_0x51538b()[_0x18bca6('0x1246')](_0x1bf006['rows'],function(_0x29ec69){var _0x279605=_0x18bca6;return _0x51538b()[_0x279605('0xe9e')](_0x546b15[_0x279605('0x1126')],{'id':_0x29ec69[_0x279605('0xbcd')]});}),_0x3932c1=null;_0x546b15[_0x18bca6('0xb86')]&&(_0x3932c1=_0x51538b()[_0x18bca6('0xe9e')](_0x546b15['lists'],{'id':Number(_0x546b15[_0x18bca6('0xb86')][_0x18bca6('0xee0')])}));if(_0x3932c1&&!_0x51538b()[_0x18bca6('0x2c2')](_0x382b3c,['id',_0x3932c1['id']])){var _0x579d9c=_0x51538b()[_0x18bca6('0xe9e')](_0x546b15[_0x18bca6('0x1126')],{'id':_0x3932c1['id']});_0x579d9c['canSelect']=![],_0x382b3c[_0x18bca6('0x1599')](_0x579d9c);}_0x546b15[_0x18bca6('0x1126')]=_0x382b3c;});}})[_0x2e5a5f('0x253d')](function(_0xb4b63b){var _0x1b8945=_0x2e5a5f;_0x21682f[_0x1b8945('0x187f')]({'title':_0xb4b63b[_0x1b8945('0x2fa')]?_0x1b8945('0x16c2')+_0xb4b63b[_0x1b8945('0x2fa')]+_0x1b8945('0x169e')+_0xb4b63b[_0x1b8945('0x24df')]:_0x1b8945('0x177f'),'msg':_0xb4b63b[_0x1b8945('0x10fd')]?JSON[_0x1b8945('0xa48')](_0xb4b63b[_0x1b8945('0x10fd')]):_0xb4b63b[_0x1b8945('0x684')]()});});function _0x4fc52e(){var _0xb5497d=_0x2e5a5f;_0x546b15[_0xb5497d('0x4c6')]=[],_0x40ccd6['mailAccount'][_0xb5497d('0x242b')](_0x546b15[_0xb5497d('0xb86')])[_0xb5497d('0x1dc2')][_0xb5497d('0xaa5')](function(_0x2cc569){var _0x5cd883=_0xb5497d;_0x546b15['mailAccounts'][_0x5cd883('0x6ee')](_0x2cc569[_0x5cd883('0x256a')]()),_0x21682f[_0x5cd883('0xe10')]({'title':_0x5cd883('0x62e'),'msg':_0x546b15[_0x5cd883('0xb86')][_0x5cd883('0x25d6')]?_0x546b15[_0x5cd883('0xb86')][_0x5cd883('0x25d6')]+_0x5cd883('0xdca'):''}),_0x18b440(_0x2cc569);})[_0xb5497d('0x253d')](function(_0x14a7cc){var _0x4644f8=_0xb5497d;if(_0x14a7cc['data']&&_0x14a7cc['data'][_0x4644f8('0x4c6')]&&_0x14a7cc[_0x4644f8('0x10fd')][_0x4644f8('0x4c6')][_0x4644f8('0x2587')]){_0x546b15['errors']=_0x14a7cc[_0x4644f8('0x10fd')][_0x4644f8('0x4c6')]||[{'message':_0x14a7cc[_0x4644f8('0x684')](),'type':'api.mailAccount.save'}];for(var _0x220e4b=0x0;_0x220e4b<_0x14a7cc[_0x4644f8('0x10fd')]['errors'][_0x4644f8('0x2587')];_0x220e4b+=0x1){_0x21682f['error']({'title':_0x14a7cc[_0x4644f8('0x10fd')]['errors'][_0x220e4b][_0x4644f8('0x6c8')],'msg':_0x14a7cc[_0x4644f8('0x10fd')]['errors'][_0x220e4b][_0x4644f8('0x1402')]});}}else _0x21682f[_0x4644f8('0x187f')]({'title':_0x14a7cc[_0x4644f8('0x2fa')]?_0x4644f8('0x16c2')+_0x14a7cc[_0x4644f8('0x2fa')]+'\x20-\x20'+_0x14a7cc['statusText']:_0x4644f8('0x27a8'),'msg':_0x14a7cc['data']?JSON[_0x4644f8('0xa48')](_0x14a7cc['data'][_0x4644f8('0x1402')]):_0x14a7cc['toString']()});});}function _0x26787d(){var _0x11140b=_0x2e5a5f;_0x546b15['errors']=[],_0x40ccd6['mailAccount']['update']({'id':_0x546b15[_0x11140b('0xb86')]['id']},_0x546b15[_0x11140b('0xb86')])[_0x11140b('0x1dc2')][_0x11140b('0xaa5')](function(_0x592802){var _0x40af8c=_0x11140b,_0x5657a9=_0x51538b()[_0x40af8c('0xe9e')](_0x546b15['mailAccounts'],{'id':_0x592802['id']});_0x5657a9&&_0x51538b()[_0x40af8c('0x283c')](_0x5657a9,_0x51538b()[_0x40af8c('0x104e')](_0x592802['toJSON'](),_0x51538b()[_0x40af8c('0x9f2')](_0x5657a9))),_0x21682f['success']({'title':_0x40af8c('0x820'),'msg':_0x546b15[_0x40af8c('0xb86')][_0x40af8c('0x25d6')]?_0x546b15['mailAccount'][_0x40af8c('0x25d6')]+_0x40af8c('0x20bf'):''}),_0x18b440(_0x592802);})['catch'](function(_0x5e4ae1){var _0x1a18d8=_0x11140b;if(_0x5e4ae1[_0x1a18d8('0x10fd')]&&_0x5e4ae1[_0x1a18d8('0x10fd')]['errors']&&_0x5e4ae1[_0x1a18d8('0x10fd')][_0x1a18d8('0x4c6')][_0x1a18d8('0x2587')]){_0x546b15[_0x1a18d8('0x4c6')]=_0x5e4ae1[_0x1a18d8('0x10fd')][_0x1a18d8('0x4c6')]||[{'message':_0x5e4ae1[_0x1a18d8('0x684')](),'type':_0x1a18d8('0x1ad0')}];for(var _0x281049=0x0;_0x281049<_0x5e4ae1['data'][_0x1a18d8('0x4c6')][_0x1a18d8('0x2587')];_0x281049++){_0x21682f[_0x1a18d8('0x187f')]({'title':_0x5e4ae1['data'][_0x1a18d8('0x4c6')][_0x281049][_0x1a18d8('0x6c8')],'msg':_0x5e4ae1[_0x1a18d8('0x10fd')][_0x1a18d8('0x4c6')][_0x281049][_0x1a18d8('0x1402')]});}}else _0x21682f[_0x1a18d8('0x187f')]({'title':_0x5e4ae1[_0x1a18d8('0x2fa')]?_0x1a18d8('0x16c2')+_0x5e4ae1[_0x1a18d8('0x2fa')]+_0x1a18d8('0x169e')+_0x5e4ae1['statusText']:_0x1a18d8('0x1ad0'),'msg':_0x5e4ae1[_0x1a18d8('0x10fd')]?JSON[_0x1a18d8('0xa48')](_0x5e4ae1[_0x1a18d8('0x10fd')]['message']):_0x5e4ae1[_0x1a18d8('0x684')]()});});}function _0x132eb7(_0x223d16){var _0xef7494=_0x2e5a5f;if(_0x546b15[_0xef7494('0xb86')]['service'])return _0x21682f[_0xef7494('0x187f')]({'title':'Mail\x20Account\x20not\x20deleted!','msg':_0xef7494('0xf9f')});_0x546b15[_0xef7494('0x4c6')]=[];var _0x1201bf=_0x51ebb8[_0xef7494('0x281e')]()[_0xef7494('0x110a')](_0xef7494('0x12a3'))[_0xef7494('0x15af')](_0xef7494('0x81'))[_0xef7494('0x5b5')]('Delete\x20MailAccount')['ok'](_0xef7494('0x1e76'))[_0xef7494('0x2030')]('Cancel')['targetEvent'](_0x223d16);_0x51ebb8[_0xef7494('0x1e6d')](_0x1201bf)[_0xef7494('0xaa5')](function(){var _0x8885c9=_0xef7494;_0x40ccd6[_0x8885c9('0xb86')]['delete']({'id':_0x546b15[_0x8885c9('0xb86')]['id']})['$promise']['then'](function(){var _0x22dd9f=_0x8885c9;_0x51538b()['remove'](_0x546b15['mailAccounts'],{'id':_0x546b15[_0x22dd9f('0xb86')]['id']}),_0x21682f[_0x22dd9f('0xe10')]({'title':_0x22dd9f('0x1c68'),'msg':(_0x546b15[_0x22dd9f('0xb86')][_0x22dd9f('0x25d6')]||_0x22dd9f('0xb86'))+'\x20has\x20been\x20deleted!'}),_0x18b440(_0x546b15['mailAccount']);})['catch'](function(_0x36c1ff){var _0x524365=_0x8885c9;if(_0x36c1ff[_0x524365('0x10fd')]&&_0x36c1ff['data'][_0x524365('0x4c6')]&&_0x36c1ff[_0x524365('0x10fd')][_0x524365('0x4c6')]['length']){_0x546b15['errors']=_0x36c1ff[_0x524365('0x10fd')][_0x524365('0x4c6')]||[{'message':_0x36c1ff[_0x524365('0x684')](),'type':_0x524365('0x11d7')}];for(var _0x4e72af=0x0;_0x4e72af<_0x36c1ff[_0x524365('0x10fd')][_0x524365('0x4c6')][_0x524365('0x2587')];_0x4e72af++){_0x21682f['error']({'title':_0x36c1ff['data'][_0x524365('0x4c6')][_0x4e72af][_0x524365('0x6c8')],'msg':_0x36c1ff[_0x524365('0x10fd')][_0x524365('0x4c6')][_0x4e72af][_0x524365('0x1402')]});}}else _0x21682f['error']({'title':_0x36c1ff[_0x524365('0x2fa')]?'API:'+_0x36c1ff[_0x524365('0x2fa')]+_0x524365('0x169e')+_0x36c1ff[_0x524365('0x24df')]:_0x524365('0x11d7'),'msg':_0x36c1ff[_0x524365('0x10fd')]?JSON['stringify'](_0x36c1ff[_0x524365('0x10fd')][_0x524365('0x1402')]):_0x36c1ff['message']||_0x36c1ff['toString']()});});},function(){});}function _0x53fedb(_0x710fb2){return _0x710fb2===null?undefined:new Date(_0x710fb2);}function _0x18b440(_0x4cd1ae){var _0x2104f6=_0x2e5a5f;_0x51ebb8[_0x2104f6('0x1120')](_0x4cd1ae);}}const _0x56b481=_0x2079f2,_0xeb4d79=_0x4fb511['p']+_0x1a8446('0x1e36'),_0x4988c1=_0x4fb511['p']+_0x1a8446('0x868'),_0x19ff20=_0x4fb511['p']+_0x1a8446('0x2009'),_0x4df058=_0x4fb511['p']+_0x1a8446('0x1e0d'),_0x21dfb7=_0x4fb511['p']+_0x1a8446('0xe12'),_0x5bc2f2=_0x4fb511['p']+_0x1a8446('0x1ff1'),_0x2d83bb=_0x4fb511['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html',_0xc93114=_0x4fb511['p']+_0x1a8446('0x486'),_0x127d23=_0x4fb511['p']+_0x1a8446('0x200c'),_0x332094=_0x4fb511['p']+_0x1a8446('0x1710');_0x56052c[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'toasty',_0x1a8446('0x1dfd')];var _0x34365d={'agent':_0xeb4d79,'autoreply':_0x4988c1,'close':_0x19ff20,'gotoif':_0x4df058,'gotop':_0x21dfb7,'interval':_0x5bc2f2,'noop':_0x2d83bb,'queue':_0xc93114,'system':_0x127d23,'tag':_0x332094};function _0x56052c(_0xdc9aaf,_0x417ef9,_0xe7d4e2,_0x32c878,_0x5383b9){var _0x1c479b=_0x1a8446,_0x1bbc82=this;_0x1bbc82[_0x1c479b('0x7fc')]=_0x5383b9[_0x1c479b('0xacc')](),_0x1bbc82['mailAccount']={},_0x1bbc82[_0x1c479b('0x5f0')]={'count':0x0,'rows':[]},_0x1bbc82['selectedMailAccountApps']=[],_0x1bbc82['crudPermissions'],_0x1bbc82[_0x1c479b('0x582')]={'sort':_0x1c479b('0x13f2')},_0x1bbc82[_0x1c479b('0x27b0')]=_0x51538b()['reject'](_0x51538b()['sortBy']([{'app':'Interval','appType':_0x1c479b('0x1c21'),'types':[_0x1c479b('0x1b43'),_0x1c479b('0x113b'),'list'],'fields':[],'isApp':![]},{'app':_0x1c479b('0x27ca'),'appType':_0x1c479b('0x27ca'),'type':_0x1c479b('0x27ca'),'icon':_0x1c479b('0x1892'),'interval':_0x1c479b('0x1ac6'),'required':!![],'isApp':!![],'fields':[{'title':_0x1c479b('0xfba'),'name':_0x1c479b('0x12f4'),'type':'text','param':0x0}]},{'app':_0x1c479b('0x5da'),'appType':_0x1c479b('0x5da'),'type':'system','icon':_0x1c479b('0x1892'),'interval':_0x1c479b('0x1ac6'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x1c479b('0x147e'),'field':{'name':'variable','key':_0x1c479b('0x25d6')},'route':'variable','filters':{'fields':_0x1c479b('0x17fe'),'sort':_0x1c479b('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x1c479b('0x23a0'),'name':_0x1c479b('0xd7b'),'type':_0x1c479b('0xb37'),'required':!![],'param':0x0},{'title':_0x1c479b('0x1093'),'name':'variable','type':_0x1c479b('0xd4d'),'values':_0x1c479b('0x147e'),'value':_0x1c479b('0x23d4'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x1c479b('0xfeb')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x1c479b('0x1141'),'appType':_0x1c479b('0x1141'),'type':'goto','icon':_0x1c479b('0x1892'),'interval':_0x1c479b('0x1ac6'),'isApp':!![],'fields':[{'title':_0x1c479b('0x2722'),'name':_0x1c479b('0x13f2'),'type':_0x1c479b('0x219a'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x1c479b('0x3cb'),'appType':_0x1c479b('0x3cb'),'type':_0x1c479b('0x3cb'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x1c479b('0x27e6'),'name':_0x1c479b('0xe77'),'type':_0x1c479b('0xb37'),'required':!![],'param':0x0},{'title':'truepriority','name':'truepriority','type':_0x1c479b('0x219a'),'min':0x1,'required':!![],'param':0x1},{'title':_0x1c479b('0x222b'),'name':_0x1c479b('0x222b'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x1c479b('0xe26'),'foreignKey':_0x1c479b('0xbd4'),'type':_0x1c479b('0xe26'),'icon':_0x1c479b('0x1892'),'interval':_0x1c479b('0x1ac6'),'isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x1c479b('0xe26'),'key':_0x1c479b('0x25d6')},'route':_0x1c479b('0x21c6'),'filters':{'fields':_0x1c479b('0x21e2'),'sort':_0x1c479b('0x25d6'),'nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':_0x1c479b('0x145c'),'name':_0x1c479b('0xe26'),'type':'apiselect','values':_0x1c479b('0x4d7'),'value':'queue.name','option':_0x1c479b('0x1766'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x1c479b('0xc45'),'name':_0x1c479b('0x23c0'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x1c479b('0xeff'),'appType':_0x1c479b('0xeff'),'type':'agent','foreignKey':'UserId','icon':_0x1c479b('0x1892'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x1c479b('0x1717'),'field':{'name':_0x1c479b('0xeff'),'key':_0x1c479b('0x25d6')},'route':_0x1c479b('0x272b'),'filters':{'fields':'id,name','sort':'name','nolimit':!![],'role':_0x1c479b('0xeff')},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x1c479b('0xeff'),'type':'apiselect','values':_0x1c479b('0x1717'),'value':'agent.name','option':_0x1c479b('0x11cf'),'required':!![],'param':0x0},{'title':_0x1c479b('0xc45'),'name':'timeout','type':_0x1c479b('0x219a'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':_0x1c479b('0x1b05'),'type':_0x1c479b('0x1b05'),'icon':_0x1c479b('0x1892'),'interval':_0x1c479b('0x1ac6'),'isApp':!![],'fields':[{'title':_0x1c479b('0x11b6'),'name':_0x1c479b('0x11b6'),'type':_0x1c479b('0xbff'),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':_0x1c479b('0xc90'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x1c479b('0x1f3a'),'name':'text','type':'html','required':!![],'param':0x1}]},{'app':_0x1c479b('0x21d0'),'appType':'close','type':'close','icon':_0x1c479b('0x1892'),'interval':_0x1c479b('0x1ac6'),'isApp':!![],'fields':[{'title':_0x1c479b('0x2010'),'name':'disposition','type':'text','required':!![],'param':0x0}]},{'app':'tag','appType':_0x1c479b('0x38f'),'type':_0x1c479b('0x38f'),'foreignKey':_0x1c479b('0x2028'),'icon':_0x1c479b('0x1892'),'interval':_0x1c479b('0x1ac6'),'isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x1c479b('0x38f'),'key':_0x1c479b('0x25d6')},'route':'tag','filters':{'fields':_0x1c479b('0x17fe'),'sort':_0x1c479b('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x1c479b('0x4e7'),'name':_0x1c479b('0x38f'),'type':'apiselect','values':_0x1c479b('0x523'),'value':'tag.name','option':_0x1c479b('0x17df'),'required':!![],'param':0x0}]}],['app']),{'isApp':![]}),_0x1bbc82[_0x1c479b('0x2334')]={'group':{'name':_0x1c479b('0xdf0'),'pull':_0x1c479b('0x1ae5')},'animation':0x64,'sort':![]},_0x1bbc82[_0x1c479b('0x209b')]={'group':{'name':_0x1c479b('0x1603'),'put':_0x1c479b('0xdf0')},'animation':0x64,'onAdd':function _0x4716a6(_0x528c19){var _0x2c8213=_0x1c479b;_0x62f260(_0x528c19,_0x528c19[_0x2c8213('0x1b3d')]);},'onSort':function _0x3497ea(){_0x50a2ee();}},_0x1bbc82[_0x1c479b('0x2e')]=_0x5d0499,_0x1bbc82[_0x1c479b('0x1416')]=_0x51ff02,_0x1bbc82['getMailAccountApps']=_0x326cd1,_0x1bbc82[_0x1c479b('0x224c')]=_0x62f260,_0x1bbc82['editInterval']=_0x1e4140,_0x1bbc82[_0x1c479b('0x2823')]=_0x38b8d5,_0x1bbc82['deleteSelectedMailAccountApps']=_0x558882,_0x1bbc82['rewriteRouting']=_0x50a2ee,_0x1bbc82['getIntervals']=_0x34e324;function _0x5d0499(_0x1776d9,_0x19cec8){var _0x2abb34=_0x1c479b;_0x1bbc82[_0x2abb34('0xb86')]=_0x1776d9,_0x1bbc82['crudPermissions']=typeof _0x19cec8!=='undefined'?_0x19cec8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1bbc82[_0x2abb34('0x209b')]['disabled']=!_0x1bbc82[_0x2abb34('0xada')][_0x2abb34('0x1c1d')]?!![]:![],_0x1bbc82[_0x2abb34('0x582')]['id']=_0x1776d9['id'],_0x1bbc82[_0x2abb34('0x582')][_0x2abb34('0x26a1')]=!![],_0x1bbc82[_0x2abb34('0x582')]['nolimit']=!![],_0x1bbc82[_0x2abb34('0x1898')](),_0x1bbc82['getIntervals']();}function _0x51ff02(_0x1d07f0,_0x2c72a3,_0x5c1e68){var _0x47005d=_0x1c479b,_0x5956f2=_0x417ef9['confirm']()['title'](_0x47005d('0x912'))[_0x47005d('0x102e')](_0x47005d('0x389')+_0x1d07f0[_0x47005d('0x9eb')]+'
'+'\x20will\x20be\x20deleted.')[_0x47005d('0x5b5')](_0x47005d('0x21a3'))['targetEvent'](_0x5c1e68)['ok']('OK')[_0x47005d('0x2030')](_0x47005d('0x2410'));_0x417ef9['show'](_0x5956f2)[_0x47005d('0xaa5')](function(){var _0x1cfdfd=_0x47005d;_0x1bbc82[_0x1cfdfd('0x5f0')][_0x1cfdfd('0x580')][_0x1cfdfd('0x1280')](_0x2c72a3,0x1),_0x50a2ee();},function(){var _0x163209=_0x47005d;console[_0x163209('0x18d5')](_0x163209('0x2410'));});}function _0x62f260(_0x2388a7,_0x1e20fd){var _0x215df9=_0x1c479b;if(_0x1bbc82[_0x215df9('0x5f0')][_0x215df9('0x580')][_0x215df9('0x2587')]){var _0x1f7abe=_0x1bbc82[_0x215df9('0x5f0')][_0x215df9('0x580')][_0x1e20fd]?_0x1bbc82[_0x215df9('0x5f0')]['rows'][_0x1e20fd]:_0x1bbc82['mailAccountApps']['rows'][0x0],_0x2c68ae=(_0x1f7abe[_0x215df9('0xe6d')]||_0x1f7abe[_0x215df9('0x9eb')])[_0x215df9('0xcf6')]();_0x417ef9[_0x215df9('0x1e6d')]({'controller':_0x215df9('0x14f8')['concat'](_0x2c68ae,_0x215df9('0x1f76')),'controllerAs':'vm','templateUrl':_0x34365d[_0x2c68ae],'parent':angular[_0x215df9('0x1aa8')](_0xe7d4e2['body']),'targetEvent':_0x2388a7,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x1f7abe,'mailAccount':_0x1bbc82['mailAccount'],'crudPermissions':_0x1bbc82[_0x215df9('0xada')]}})[_0x215df9('0xaa5')](function(_0x9ec463){var _0x337d9a=_0x215df9;_0x9ec463&&(_0x9ec463['id']?_0x1bbc82['mailAccountApps'][_0x337d9a('0x580')][_0x1e20fd]=_0x9ec463:_0x1bbc82['mailAccountApps'][_0x337d9a('0x580')][_0x337d9a('0x1280')](_0x1e20fd,0x0,_0x9ec463),_0x50a2ee());})['catch'](function(_0x37ca69){var _0x39f352=_0x215df9;_0x37ca69&&_0x32c878[_0x39f352('0x187f')]({'title':_0x37ca69['status']?_0x39f352('0x16c2')+_0x37ca69[_0x39f352('0x2fa')]+_0x39f352('0x169e')+_0x37ca69[_0x39f352('0x24df')]:'SYSTEM:EDITMODALSHOW','msg':_0x37ca69[_0x39f352('0x10fd')]?JSON[_0x39f352('0xa48')](_0x37ca69[_0x39f352('0x10fd')]):_0x37ca69[_0x39f352('0x684')]()});});}}function _0x1e4140(_0x440ea2,_0x221f31){var _0x207aa4=_0x1c479b;if(_0x1bbc82[_0x207aa4('0x5f0')][_0x207aa4('0x580')]['length']){var _0x392290=_0x1bbc82[_0x207aa4('0x5f0')][_0x207aa4('0x580')][_0x221f31]?_0x1bbc82[_0x207aa4('0x5f0')][_0x207aa4('0x580')][_0x221f31]:_0x1bbc82[_0x207aa4('0x5f0')][_0x207aa4('0x580')][0x0];_0x417ef9[_0x207aa4('0x1e6d')]({'controller':_0x207aa4('0x2f'),'controllerAs':'vm','templateUrl':_0x5bc2f2,'parent':angular[_0x207aa4('0x1aa8')](_0xe7d4e2[_0x207aa4('0x54c')]),'targetEvent':_0x440ea2,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x392290[_0x207aa4('0x1c21')],'IntervalId':_0x392290['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x1bbc82[_0x207aa4('0xada')]}})[_0x207aa4('0xaa5')](function(_0x4e708f){var _0x36315e=_0x207aa4;_0x4e708f&&(_0x392290[_0x36315e('0x1c21')]=_0x4e708f[_0x36315e('0x1c21')]||_0x36315e('0x1ac6'),_0x392290[_0x36315e('0x1f8c')]=_0x4e708f[_0x36315e('0x1f8c')]||null,_0x50a2ee());});}}function _0x50a2ee(){var _0x2b321c=_0x1c479b,_0x4912dc=0x1,_0x5c3e34=[];for(var _0x5e1443=0x0;_0x5e1443<_0x1bbc82[_0x2b321c('0x5f0')]['rows'][_0x2b321c('0x2587')];_0x5e1443++){var _0x2ab641=_0x1bbc82['mailAccountApps'][_0x2b321c('0x580')][_0x5e1443],_0x4e68a9=[],_0x36e206=[];_0x2ab641[_0x2b321c('0x2568')]=_0x2ab641['interval']!==_0x2b321c('0x1ac6')?[_0x2ab641['interval']]:_0x2ab641[_0x2b321c('0x1f8c')]?_0x51538b()[_0x2b321c('0x1246')](_0x51538b()[_0x2b321c('0xdb7')](_0x1bbc82['intervals']['rows'],{'IntervalId':_0x2ab641[_0x2b321c('0x1f8c')]}),_0x2b321c('0x1c21')):[],_0x2ab641[_0x2b321c('0x19cd')]=_0x1bbc82[_0x2b321c('0xb86')][_0x2b321c('0x19cd')],_0x2ab641[_0x2b321c('0x1990')]=_0x1bbc82[_0x2b321c('0xb86')][_0x2b321c('0x1990')],_0x2ab641['type']&&(_0x2ab641['type']=_0x2ab641[_0x2b321c('0x6c8')]['toLowerCase']()),_0x2ab641['priority']=_0x4e68a9[_0x2b321c('0x2587')]?_0x51538b()[_0x2b321c('0x23f4')](_0x4e68a9)[_0x2b321c('0x13f2')]+0x1:_0x4912dc,_0x4912dc=(_0x36e206[_0x2b321c('0x2587')]?_0x51538b()[_0x2b321c('0x23f4')](_0x36e206)[_0x2b321c('0x13f2')]:_0x2ab641[_0x2b321c('0x13f2')])+0x1,_0x5c3e34=_0x51538b()[_0x2b321c('0x9e4')](_0x5c3e34,_0x4e68a9,[_0x2ab641],_0x36e206);}_0xdc9aaf[_0x2b321c('0xb86')][_0x2b321c('0x12e')]({'id':_0x1bbc82[_0x2b321c('0xb86')]['id']},_0x51538b()[_0x2b321c('0x181f')](_0x5c3e34,_0x2b321c('0x13f2')))['$promise'][_0x2b321c('0xaa5')](function(_0x31ea3a){var _0x2e218f=_0x2b321c;_0x1bbc82['mailAccountApps'][_0x2e218f('0x580')]=_0x31ea3a[_0x2e218f('0x580')];})['catch'](function(_0x56ea70){var _0x235a5b=_0x2b321c;console[_0x235a5b('0x187f')](_0x56ea70);});}function _0x506dc2(_0x4fe135){_0x1bbc82['mailAccountApps']=_0x4fe135||{'count':0x0,'rows':[]};}function _0x34e324(){var _0x55f689=_0x1c479b;return _0xdc9aaf[_0x55f689('0x1c21')][_0x55f689('0x2122')]({'fields':_0x55f689('0x1487')})[_0x55f689('0x1dc2')][_0x55f689('0xaa5')](function(_0x4cfb4a){var _0x3a1c04=_0x55f689;_0x1bbc82[_0x3a1c04('0x2568')]=_0x4cfb4a;})[_0x55f689('0x253d')](function(_0x6b2436){console['error'](_0x6b2436);});}function _0x326cd1(){var _0x2ff758=_0x1c479b;_0x1bbc82['promise']=_0xdc9aaf[_0x2ff758('0xb86')]['getApplications'](_0x1bbc82[_0x2ff758('0x582')],_0x506dc2)[_0x2ff758('0x1dc2')];}function _0x38b8d5(_0x78fa83){var _0xa9ef3e=_0x1c479b;_0x51538b()[_0xa9ef3e('0xf6d')](_0x1bbc82['mailAccountApps'][_0xa9ef3e('0x580')],{'id':_0x78fa83['id']}),_0x50a2ee(),_0x32c878[_0xa9ef3e('0xe10')]({'title':_0xa9ef3e('0x1446'),'msg':_0x78fa83[_0xa9ef3e('0x9eb')]?_0x78fa83['app']+'\x20has\x20been\x20deleted!':''});}function _0x558882(_0xe802b6){var _0x539d82=_0x1c479b,_0x4203ed=_0x417ef9[_0x539d82('0x281e')]()['title'](_0x539d82('0x1190'))['htmlContent'](_0x539d82('0x389')+_0x1bbc82[_0x539d82('0x979')][_0x539d82('0x2587')]+_0x539d82('0x1443')+_0x539d82('0x210d'))[_0x539d82('0x5b5')](_0x539d82('0x2845'))['targetEvent'](_0xe802b6)['ok']('OK')[_0x539d82('0x2030')](_0x539d82('0x2410'));_0x417ef9['show'](_0x4203ed)[_0x539d82('0xaa5')](function(){var _0x2b8f47=_0x539d82;_0x1bbc82[_0x2b8f47('0x979')]['forEach'](function(_0x11fa85){var _0x3a4359=_0x2b8f47;_0x51538b()[_0x3a4359('0xf6d')](_0x1bbc82['mailAccountApps'][_0x3a4359('0x580')],{'id':_0x11fa85['id']});}),_0x1bbc82[_0x2b8f47('0x979')]=[],_0x50a2ee();});}}const _0x2d96e0=_0x56052c;_0x3a2cbc[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0xb86'),'mailAccounts',_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x3a2cbc(_0x9b34fa,_0x5ef707,_0x238cee,_0xeaf456,_0x20a4ef,_0x4d53eb,_0x5deb27,_0x4bb82e,_0x5437da,_0x102448){var _0x5e4d7a=_0x1a8446,_0x4f832a=this;_0x4f832a['currentUser']=_0x5437da[_0x5e4d7a('0xacc')](),_0x4f832a[_0x5e4d7a('0xb86')]=_0x20a4ef,_0x4f832a[_0x5e4d7a('0xada')]=_0x102448,_0x4f832a['realtime']=_0x5deb27,_0x4f832a[_0x5e4d7a('0x1a30')]=[],_0x4f832a['allowedItems']=[],_0x4f832a[_0x5e4d7a('0xbf7')]=[],_0x4f832a[_0x5e4d7a('0x215b')]=[],_0x4f832a[_0x5e4d7a('0x214a')]=[],_0x4f832a[_0x5e4d7a('0xc54')]=![],_0x4f832a[_0x5e4d7a('0x2318')]=_0x47fa88,_0x4f832a[_0x5e4d7a('0x17bb')]=_0x45803f,_0x4f832a[_0x5e4d7a('0x2023')]=_0x455464,_0x4f832a[_0x5e4d7a('0x1c23')]={'readOnly':!_0x4f832a['crudPermissions'][_0x5e4d7a('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5e4d7a('0x25d6'),'line1':'fullname','line2':[_0x5e4d7a('0x25d6'),_0x5e4d7a('0x1b0d')],'line3':'','labelAll':_0x4bb82e[_0x5e4d7a('0x213f')]('MAIL.ALL_AGENTS'),'labelSelected':_0x4bb82e[_0x5e4d7a('0x213f')](_0x5e4d7a('0x63c')),'transferCallback':function _0x4757a0(){var _0x42d046=_0x5e4d7a,_0x243a0b=_0x51538b()[_0x42d046('0x9ef')](_0x4f832a[_0x42d046('0x214a')],_0x4f832a[_0x42d046('0xbf7')],'id');_0x4f832a[_0x42d046('0xc54')]=_0x51538b()[_0x42d046('0x116b')](_0x243a0b)?![]:!![];}};function _0x47fa88(){var _0x331e1a=_0x5e4d7a;return _0x5437da[_0x331e1a('0x26e8')]('admin')?_0x54349f()[_0x331e1a('0x253d')](function(_0x1238fd){var _0xb683a9=_0x331e1a;_0x238cee['error']({'title':_0x1238fd[_0xb683a9('0x2fa')]?_0xb683a9('0x16c2')+_0x1238fd[_0xb683a9('0x2fa')]+_0xb683a9('0x169e')+_0x1238fd[_0xb683a9('0x24df')]:_0xb683a9('0x14c6'),'msg':_0x1238fd[_0xb683a9('0x2fa')]?JSON['stringify'](_0x1238fd[_0xb683a9('0x10fd')]):_0x1238fd['toString']()});}):_0x5b22fd()[_0x331e1a('0xaa5')](function(_0x1e66e5){var _0x47997d=_0x331e1a;return _0x4f832a[_0x47997d('0x224d')]=_0x1e66e5,_0x54349f();})[_0x331e1a('0x253d')](function(_0x4368d1){var _0x5cd28b=_0x331e1a;_0x238cee[_0x5cd28b('0x187f')]({'title':_0x4368d1[_0x5cd28b('0x2fa')]?'API:'+_0x4368d1[_0x5cd28b('0x2fa')]+_0x5cd28b('0x169e')+_0x4368d1[_0x5cd28b('0x24df')]:'SYSTEM:GET_AGENTS','msg':_0x4368d1[_0x5cd28b('0x2fa')]?JSON[_0x5cd28b('0xa48')](_0x4368d1[_0x5cd28b('0x10fd')]):_0x4368d1['toString']()});});}function _0x5b22fd(){return _0x5ef707(function(_0x46d9ef,_0x230a10){var _0x441114=a0_0x1149;_0xeaf456[_0x441114('0x1a50')]['get']({'userProfileId':_0x4f832a[_0x441114('0x7fc')]['userProfileId'],'name':_0x441114('0x91a')})[_0x441114('0x1dc2')][_0x441114('0xaa5')](function(_0x73724b){var _0x460a5c=_0x441114,_0x3a71e7=_0x73724b&&_0x73724b[_0x460a5c('0x580')]?_0x73724b['rows'][0x0]:null;_0x46d9ef(_0x3a71e7);})[_0x441114('0x253d')](function(_0x110de6){_0x230a10(_0x110de6);});});}function _0x54349f(){return _0x5ef707(function(_0x3a0267,_0xc8ecd0){var _0x2e94ed=a0_0x1149;return _0x1b4db5()[_0x2e94ed('0xaa5')](function(_0x76c897){var _0x2633a5=_0x2e94ed;return _0x4f832a[_0x2633a5('0x1a30')]=_0x76c897[_0x2633a5('0x580')]?_0x76c897['rows']:[],_0x5437da[_0x2633a5('0x26e8')](_0x2633a5('0x178b'))?_0x76c897:_0x4f832a[_0x2633a5('0x224d')]?_0x4f832a[_0x2633a5('0x224d')][_0x2633a5('0x26cc')]?_0x76c897:_0x3ced33():null;})['then'](function(_0x9239e3){var _0x4fc702=_0x2e94ed,_0x131a77=_0x9239e3&&_0x9239e3[_0x4fc702('0x580')]?_0x9239e3[_0x4fc702('0x580')]:[];return _0x4f832a[_0x4fc702('0x11b9')]=_0x51538b()[_0x4fc702('0x1246')](_0x131a77,function(_0x171fcc){var _0x159301=_0x4fc702;return _0x51538b()[_0x159301('0xe9e')](_0x4f832a[_0x159301('0x1a30')],{'id':_0x5437da[_0x159301('0x26e8')](_0x159301('0x178b'))||_0x4f832a['section'][_0x159301('0x26cc')]?_0x171fcc['id']:_0x171fcc[_0x159301('0xbcd')]});}),_0x4f832a[_0x4fc702('0x215b')]=angular[_0x4fc702('0x20a')](_0x4f832a[_0x4fc702('0x11b9')]),_0x4f832a[_0x4fc702('0x1a30')][_0x4fc702('0x15b5')](function(_0x3ca3ce){var _0x5345d0=_0x4fc702,_0x2a3f38=_0x51538b()[_0x5345d0('0xe9e')](_0x4f832a['allowedItems'],{'id':_0x3ca3ce['id']});_0x5437da[_0x5345d0('0x26e8')](_0x5345d0('0x178b'))?_0x3ca3ce[_0x5345d0('0x145d')]=!![]:_0x3ca3ce[_0x5345d0('0x145d')]=typeof _0x2a3f38!==_0x5345d0('0x1574')?!![]:![];}),_0x404bbd();})[_0x2e94ed('0xaa5')](function(_0x26510b){var _0x4a78cc=_0x2e94ed,_0x1fc71a=_0x26510b&&_0x26510b['rows']?_0x26510b[_0x4a78cc('0x580')]:[];_0x4f832a[_0x4a78cc('0xbf7')]=_0x51538b()['map'](_0x1fc71a,function(_0x6ab41e){var _0x482b66=_0x4a78cc,_0x58885e=_0x51538b()[_0x482b66('0xe9e')](_0x4f832a['items'],{'id':_0x6ab41e['id']});return _0x58885e[_0x482b66('0x2234')]=_0x6ab41e[_0x482b66('0x1853')]?_0x482b66('0x17b0')+_0x6ab41e[_0x482b66('0x1853')][_0x482b66('0x2234')]:'',_0x58885e[_0x482b66('0x1b0d')]=typeof _0x6ab41e[_0x482b66('0x1b0d')]!==_0x482b66('0x1574')?'<'+_0x6ab41e[_0x482b66('0x1b0d')]+'>':'',_0x58885e;}),_0x4f832a['startingSelectedItems']=angular[_0x4a78cc('0x20a')](_0x4f832a[_0x4a78cc('0xbf7')]),_0x4f832a[_0x4a78cc('0x1c23')][_0x4a78cc('0xbf7')]=_0x4f832a[_0x4a78cc('0xbf7')],_0x4f832a[_0x4a78cc('0x1c23')][_0x4a78cc('0x1a30')]=_0x51538b()['differenceBy'](_0x4f832a[_0x4a78cc('0x11b9')],_0x4f832a['dualMultiselectOptions'][_0x4a78cc('0xbf7')],'id'),_0x3a0267();})[_0x2e94ed('0x253d')](function(_0x171e42){_0xc8ecd0(_0x171e42);});});}function _0x3ced33(){return _0x5ef707(function(_0x5b7d54,_0x76c2fd){var _0x7741ee=a0_0x1149;return _0xeaf456[_0x7741ee('0x249a')][_0x7741ee('0x2122')]({'sectionId':_0x4f832a[_0x7741ee('0x224d')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x2f8d09){_0x5b7d54(_0x2f8d09);})[_0x7741ee('0x253d')](function(_0x33d060){_0x76c2fd(_0x33d060);});});}function _0x404bbd(){return _0x5ef707(function(_0x534850,_0x4e564e){var _0x1c873d=a0_0x1149;return _0xeaf456[_0x1c873d('0xb86')]['getAgents']({'id':_0x4f832a[_0x1c873d('0xb86')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x1c873d('0xeff')})[_0x1c873d('0x1dc2')][_0x1c873d('0xaa5')](function(_0x3c2b5b){_0x534850(_0x3c2b5b);})['catch'](function(_0x12b62c){_0x4e564e(_0x12b62c);});});}function _0x1b4db5(){return _0x5ef707(function(_0x35a4e3,_0x42a2b4){var _0x26a57f=a0_0x1149;return _0xeaf456['user']['get']({'fields':_0x26a57f('0x283f'),'nolimit':!![],'role':_0x26a57f('0xeff')})[_0x26a57f('0x1dc2')][_0x26a57f('0xaa5')](function(_0x3e53ac){_0x35a4e3(_0x3e53ac);})[_0x26a57f('0x253d')](function(_0x5a4ebc){_0x42a2b4(_0x5a4ebc);});});}function _0x2c32ba(_0x13493d){return _0x5ef707(function(_0x23855f,_0x50f6f9){var _0x4267cd=a0_0x1149;_0x51538b()[_0x4267cd('0x116b')](_0x13493d)?_0x23855f():_0xeaf456['mailAccount'][_0x4267cd('0x26b1')]({'id':_0x4f832a[_0x4267cd('0xb86')]['id'],'ids':_0x51538b()[_0x4267cd('0x1246')](_0x13493d,'id')})[_0x4267cd('0x1dc2')][_0x4267cd('0xaa5')](function(){_0x23855f();})[_0x4267cd('0x253d')](function(_0x3c0752){_0x50f6f9(_0x3c0752);});});}function _0x471281(_0x6b9396){return _0x5ef707(function(_0x569077,_0x43f09b){var _0x40cb3a=a0_0x1149;_0x51538b()[_0x40cb3a('0x116b')](_0x6b9396)?_0x569077():_0xeaf456['mailAccount'][_0x40cb3a('0x258e')]({'id':_0x4f832a[_0x40cb3a('0xb86')]['id'],'ids':_0x51538b()[_0x40cb3a('0x1246')](_0x6b9396,'id')})[_0x40cb3a('0x1dc2')][_0x40cb3a('0xaa5')](function(){_0x569077();})[_0x40cb3a('0x253d')](function(_0x1d8bf5){_0x43f09b(_0x1d8bf5);});});}function _0x45803f(){var _0x31ba6c=_0x5e4d7a,_0x179c27=_0x51538b()[_0x31ba6c('0x1ebb')](_0x4f832a[_0x31ba6c('0x214a')],_0x4f832a[_0x31ba6c('0xbf7')],'id'),_0x256d38=_0x51538b()['differenceBy'](_0x4f832a['selectedItems'],_0x4f832a[_0x31ba6c('0x214a')],'id');return _0x471281(_0x179c27)[_0x31ba6c('0xaa5')](function(){return _0x2c32ba(_0x256d38);})[_0x31ba6c('0xaa5')](function(){var _0xfa88e9=_0x31ba6c;_0x4f832a['pendingChanges']=![],_0x4f832a[_0xfa88e9('0x215b')]=angular['copy'](_0x4f832a[_0xfa88e9('0x11b9')]),_0x4f832a[_0xfa88e9('0x214a')]=angular[_0xfa88e9('0x20a')](_0x4f832a[_0xfa88e9('0xbf7')]),_0x238cee['success']({'title':_0xfa88e9('0x2eb'),'msg':_0xfa88e9('0xc60')});})[_0x31ba6c('0x253d')](function(_0xdca368){var _0x30c299=_0x31ba6c;_0x238cee[_0x30c299('0x187f')]({'title':_0xdca368[_0x30c299('0x2fa')]?_0x30c299('0x16c2')+_0xdca368['status']+_0x30c299('0x169e')+_0xdca368['statusText']:_0x30c299('0x2281'),'msg':_0xdca368[_0x30c299('0x2fa')]?JSON['stringify'](_0xdca368[_0x30c299('0x10fd')]):_0xdca368['toString']()});});}function _0x455464(){_0x9b34fa['hide']();}}const _0x4ccbb6=_0x3a2cbc;_0xa75464[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1d70'),_0x1a8446('0xb86'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0xa75464(_0x49eae8,_0x435055,_0xfe516c,_0x58ce6e,_0x54e3ea,_0x5ca0da,_0x3b1d04,_0x126597){var _0x210471=_0x1a8446,_0xc93195=this;_0xc93195[_0x210471('0x7fc')]=_0x3b1d04[_0x210471('0xacc')](),_0xc93195['errors']=[],_0xc93195[_0x210471('0x110a')]=_0x210471('0x770')+(_0x58ce6e['appType']||_0x58ce6e[_0x210471('0x9eb')])['toUpperCase'](),_0xc93195['agent']=angular[_0x210471('0x20a')](_0x58ce6e),_0xc93195[_0x210471('0xada')]=_0x126597,_0xc93195[_0x210471('0x9f0')]={};if(_0xc93195[_0x210471('0xeff')]['appdata'])switch(_0xc93195[_0x210471('0xeff')][_0x210471('0xe6d')]?_0xc93195['agent'][_0x210471('0xe6d')][_0x210471('0xcf6')]():_0xc93195[_0x210471('0xeff')][_0x210471('0x9eb')][_0x210471('0xcf6')]()){case'custom':break;case _0x210471('0x67c'):{var _0x29ced8=_0xc93195[_0x210471('0xeff')]['appdata'][_0x210471('0x1a39')](',');_0xc93195[_0x210471('0xeff')][_0x210471('0x24ec')]=_0x29ced8[0x0],_0xc93195[_0x210471('0xeff')][_0x210471('0x1938')]=_0x29ced8[0x1],_0xc93195['agent'][_0x210471('0x273')]=_0x29ced8[_0x210471('0x19aa')](0x2,_0x29ced8[_0x210471('0x2587')])[_0x210471('0x19c4')](',');}break;case'amazonlex':{var _0x7445ea=_0xc93195['agent'][_0x210471('0x124b')][_0x210471('0x1a39')](',');_0xc93195[_0x210471('0xeff')][_0x210471('0xc07')]=_0x7445ea[0x0],_0xc93195[_0x210471('0xeff')][_0x210471('0x15f9')]=_0x7445ea[0x1],_0xc93195[_0x210471('0xeff')][_0x210471('0xa9a')]=_0x7445ea[0x2],_0xc93195[_0x210471('0xeff')][_0x210471('0x18ee')]=_0x7445ea[0x3],_0xc93195[_0x210471('0xeff')]['welcomemessage']=_0x7445ea[_0x210471('0x19aa')](0x4,_0x7445ea[_0x210471('0x2587')])[_0x210471('0x19c4')](',');}break;case _0x210471('0x1b05'):{var _0x245f97=_0xc93195[_0x210471('0xeff')]['appdata'][_0x210471('0x1a39')](',');_0xc93195[_0x210471('0xeff')]['times']=isNaN(_0x245f97[0x0])?_0x245f97[0x0]:parseInt(_0x245f97[0x0],0xa),_0xc93195[_0x210471('0xeff')]['text']=_0x245f97[_0x210471('0x19aa')](0x1,_0x245f97['length'])[_0x210471('0x19c4')](',');}break;case'message':_0xc93195[_0x210471('0xeff')][_0x210471('0xb37')]=_0xc93195[_0x210471('0xeff')][_0x210471('0x124b')];break;case _0x210471('0x282c'):_0xc93195['agent']['name']=_0xc93195['agent']['appdata'][_0x210471('0x1a39')]('=')[0x0],_0xc93195[_0x210471('0xeff')][_0x210471('0x12f4')]=_0xc93195[_0x210471('0xeff')][_0x210471('0x124b')]['split']('=')[0x1];break;case _0x210471('0x2067'):_0xc93195['agent'][_0x210471('0x24b9')]=_0xc93195[_0x210471('0xeff')][_0x210471('0x124b')];break;default:{var _0x936a16=_0xc93195[_0x210471('0xeff')]['appdata'][_0x210471('0x1a39')](',');_0xc93195[_0x210471('0xeff')][_0x210471('0xeff')]=_0x51538b()[_0x210471('0x116b')](_0x936a16[0x0])?_0x936a16[0x0]:isNaN(_0x936a16[0x0])?_0x936a16[0x0]:parseInt(_0x936a16[0x0],0xa),_0xc93195[_0x210471('0xeff')]['timeout']=_0x51538b()['isEmpty'](_0x936a16[0x1])?_0x936a16[0x1]:isNaN(_0x936a16[0x1])?_0x936a16[0x1]:parseInt(_0x936a16[0x1],0xa);}break;}else _0xc93195['agent']['timeout']=0x1e;_0xc93195[_0x210471('0xeff')][_0x210471('0x6c8')]&&_0xc93195['agent'][_0x210471('0x6c8')][_0x210471('0xcf6')]()==='outbound'&&_0xc93195['agent'][_0x210471('0xe6d')][_0x210471('0xcf6')]()===_0x210471('0x1e7f')&&(_0xc93195['agent'][_0x210471('0x1b8f')]=_0xc93195[_0x210471('0xeff')][_0x210471('0x1a46')]?_0xc93195[_0x210471('0xeff')][_0x210471('0x1a46')][_0x210471('0x1a39')]('$')[0x0]:undefined,_0xc93195['agent'][_0x210471('0xeed')]=_0xc93195[_0x210471('0xeff')][_0x210471('0x514')]?'CALLERID(all)='+_0xc93195[_0x210471('0xeff')]['callerID']:undefined);_0xc93195[_0x210471('0x945')]=_0xa68d57,_0xc93195[_0x210471('0x2023')]=_0x58a866,_0x3b1d04[_0x210471('0x26e8')](_0x210471('0x178b'))?_0x5ca0da[_0x210471('0x272b')][_0x210471('0x2122')]({'fields':'id,name','sort':_0x210471('0x25d6'),'nolimit':_0x210471('0x1c5c'),'role':_0x210471('0xeff')})[_0x210471('0x1dc2')][_0x210471('0xaa5')](function(_0x4acac8){var _0x4c5069=_0x210471;_0xc93195[_0x4c5069('0x1717')]=_0x4acac8[_0x4c5069('0x580')]||[];})[_0x210471('0x253d')](function(_0x570965){var _0x2de1e0=_0x210471;_0xfe516c[_0x2de1e0('0x187f')]({'title':_0x570965[_0x2de1e0('0x2fa')]?_0x2de1e0('0x16c2')+_0x570965[_0x2de1e0('0x2fa')]+'\x20-\x20'+_0x570965[_0x2de1e0('0x24df')]:_0x2de1e0('0x14c6'),'msg':_0x570965[_0x2de1e0('0x10fd')]?JSON[_0x2de1e0('0xa48')](_0x570965[_0x2de1e0('0x10fd')]):_0x570965[_0x2de1e0('0x684')]()});}):_0x5ca0da[_0x210471('0x272b')][_0x210471('0x2122')]({'fields':_0x210471('0x17fe'),'sort':_0x210471('0x25d6'),'nolimit':_0x210471('0x1c5c'),'role':_0x210471('0xeff')})[_0x210471('0x1dc2')]['then'](function(_0x31a08d){var _0x474fc3=_0x210471;_0xc93195[_0x474fc3('0x1717')]=_0x31a08d[_0x474fc3('0x580')]||[];})[_0x210471('0xaa5')](function(){var _0x34ab99=_0x210471;return _0x5ca0da['userProfileSection'][_0x34ab99('0x2122')]({'userProfileId':_0xc93195['currentUser']['userProfileId'],'sectionId':0xca})[_0x34ab99('0x1dc2')];})['then'](function(_0xc149cc){var _0x571fb4=_0x210471,_0x585423=_0xc149cc&&_0xc149cc[_0x571fb4('0x580')]?_0xc149cc[_0x571fb4('0x580')][0x0]:null;if(!_0x585423){var _0x24de03=[],_0x1aa888=null;_0xc93195['agent']&&(_0x1aa888=_0x51538b()[_0x571fb4('0xe9e')](_0xc93195[_0x571fb4('0x1717')],{'name':_0xc93195[_0x571fb4('0xeff')]['agent']}));for(var _0x174e26=0x0;_0x174e26<_0xc93195[_0x571fb4('0x1717')]['length'];_0x174e26++){_0x1aa888&&_0xc93195[_0x571fb4('0x1717')][_0x174e26]['id']===_0x1aa888['id']&&(_0xc93195['agents'][_0x174e26][_0x571fb4('0x12eb')]=![],_0x24de03[_0x571fb4('0x1599')](_0xc93195[_0x571fb4('0x1717')][_0x174e26]));}_0xc93195[_0x571fb4('0x1717')]=_0x24de03;}else{if(!_0x585423[_0x571fb4('0x26cc')])return _0x5ca0da[_0x571fb4('0x249a')]['get']({'sectionId':_0x585423['id']})[_0x571fb4('0x1dc2')][_0x571fb4('0xaa5')](function(_0x5005e9){var _0x237072=_0x571fb4,_0x58eef7=_0x51538b()[_0x237072('0x1246')](_0x5005e9['rows'],function(_0x563bda){var _0x5eec72=_0x237072;return _0x51538b()[_0x5eec72('0xe9e')](_0xc93195[_0x5eec72('0x1717')],{'id':_0x563bda[_0x5eec72('0xbcd')]});}),_0x202496=null;_0xc93195['agent']&&(_0x202496=_0x51538b()[_0x237072('0xe9e')](_0xc93195[_0x237072('0x1717')],{'name':_0xc93195[_0x237072('0xeff')][_0x237072('0xeff')]}));if(_0x202496&&!_0x51538b()[_0x237072('0x2c2')](_0x58eef7,['id',_0x202496['id']])){var _0x1b3c7c=_0x51538b()[_0x237072('0xe9e')](_0xc93195[_0x237072('0x1717')],{'id':_0x202496['id']});_0x1b3c7c[_0x237072('0x12eb')]=![],_0x58eef7[_0x237072('0x1599')](_0x1b3c7c);}_0xc93195[_0x237072('0x1717')]=_0x58eef7;});}})[_0x210471('0x253d')](function(_0x3ba221){var _0x6c84f7=_0x210471;_0xfe516c['error']({'title':_0x3ba221[_0x6c84f7('0x2fa')]?_0x6c84f7('0x16c2')+_0x3ba221[_0x6c84f7('0x2fa')]+'\x20-\x20'+_0x3ba221[_0x6c84f7('0x24df')]:_0x6c84f7('0x1a3b'),'msg':_0x3ba221['data']?JSON['stringify'](_0x3ba221['data']):_0x3ba221['toString']()});});function _0xa68d57(){var _0x4ad303=_0x210471;_0xc93195['errors']=[];var _0x5a90c3=[];_0xc93195[_0x4ad303('0xeff')]['type']&&_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0x6c8')][_0x4ad303('0xcf6')]()===_0x4ad303('0x19d1')&&_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0xe6d')]===_0x4ad303('0x8da')&&(_0xc93195['agent'][_0x4ad303('0x1a46')]=_0x54e3ea[_0x4ad303('0x888')]?(_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0x1b8f')]||'')+_0x4ad303('0x117e')+_0x54e3ea[_0x4ad303('0x888')]+'}':(_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0x1b8f')]||'')+'${EXTEN}',_0x54e3ea[_0x4ad303('0x1e0f')]!==_0x4ad303('0x117')?_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0x1b36')]['indexOf'](_0x4ad303('0x266a'))<0x0&&(_0xc93195[_0x4ad303('0xeff')]['options']+='U(xcally-mixmonitor-context)'):_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0x1b36')]=_0xc93195[_0x4ad303('0xeff')]['options'][_0x4ad303('0x170d')]('U(xcally-mixmonitor-context)',''));var _0x40f7b5=_0x51538b()[_0x4ad303('0xe9e')](_0xc93195[_0x4ad303('0x1717')],{'name':_0xc93195[_0x4ad303('0xeff')]['agent']});_0x40f7b5&&(_0xc93195['agent'][_0x4ad303('0x1037')]=_0x40f7b5['id']);if(_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0xe6d')]&&_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0xe6d')]===_0x4ad303('0x113b')){}else switch((_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0x9eb')]||_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0xe6d')])[_0x4ad303('0xcf6')]()){case _0x4ad303('0x282c'):_0xc93195['agent'][_0x4ad303('0x124b')]=_0xc93195['agent'][_0x4ad303('0x25d6')]+'='+_0xc93195[_0x4ad303('0xeff')][_0x4ad303('0x12f4')];break;case _0x4ad303('0x113b'):break;default:_0x5a90c3[0x0]=_0xc93195['agent'][_0x4ad303('0xeff')],_0x5a90c3[0x1]=_0xc93195['agent'][_0x4ad303('0x23c0')],_0xc93195[_0x4ad303('0xeff')]['appdata']=_0x5a90c3['join'](',');}_0x58a866(_0xc93195[_0x4ad303('0xeff')]);}function _0x58a866(_0x56bac9){var _0x5dc8fa=_0x210471;_0x49eae8[_0x5dc8fa('0x1120')](_0x56bac9);}}const _0x279ccc=_0xa75464;_0x2203c6[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d70'),'mailAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x2203c6(_0x48dc00,_0x2ca6c1,_0x449661,_0x508026,_0x525a7e,_0x474dec,_0x945bbf,_0xf2791f){var _0x2e8392=_0x1a8446,_0x27b8e1=this;_0x27b8e1[_0x2e8392('0x7fc')]=_0x945bbf[_0x2e8392('0xacc')](),_0x27b8e1[_0x2e8392('0x4c6')]=[],_0x27b8e1[_0x2e8392('0x110a')]=_0x2e8392('0x770')+(_0x508026['appType']||_0x508026['app'])[_0x2e8392('0x1d08')](),_0x27b8e1[_0x2e8392('0x1b05')]=angular[_0x2e8392('0x20a')](_0x508026),_0x27b8e1[_0x2e8392('0xada')]=_0xf2791f,_0x27b8e1[_0x2e8392('0x9f0')]={};if(_0x27b8e1[_0x2e8392('0x1b05')]['appdata'])switch(_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0xe6d')]?_0x27b8e1['autoreply'][_0x2e8392('0xe6d')]['toLowerCase']():_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x9eb')][_0x2e8392('0xcf6')]()){case _0x2e8392('0x113b'):break;case'dialogflow':{var _0x527044=_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x124b')]['split'](',');_0x27b8e1['autoreply'][_0x2e8392('0x24ec')]=_0x527044[0x0],_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x1938')]=_0x527044[0x1],_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x273')]=_0x527044[_0x2e8392('0x19aa')](0x2,_0x527044[_0x2e8392('0x2587')])[_0x2e8392('0x19c4')](',');}break;case _0x2e8392('0x3f5'):{var _0x510cb9=_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x124b')][_0x2e8392('0x1a39')](',');_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0xc07')]=_0x510cb9[0x0],_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x15f9')]=_0x510cb9[0x1],_0x27b8e1['autoreply'][_0x2e8392('0xa9a')]=_0x510cb9[0x2],_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x18ee')]=_0x510cb9[0x3],_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x273')]=_0x510cb9[_0x2e8392('0x19aa')](0x4,_0x510cb9[_0x2e8392('0x2587')])['join'](',');}break;case'autoreply':{var _0x5377af=_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x124b')]['split'](',');_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x11b6')]=isNaN(_0x5377af[0x0])?_0x5377af[0x0]:parseInt(_0x5377af[0x0],0xa),_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0xb37')]=_0x5377af[_0x2e8392('0x19aa')](0x1,_0x5377af[_0x2e8392('0x2587')])[_0x2e8392('0x19c4')](',');}break;case _0x2e8392('0x1402'):_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0xb37')]=_0x27b8e1[_0x2e8392('0x1b05')]['appdata'];break;case'set':_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x25d6')]=_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x124b')]['split']('=')[0x0],_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x12f4')]=_0x27b8e1[_0x2e8392('0x1b05')]['appdata']['split']('=')[0x1];break;case _0x2e8392('0x2067'):_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x24b9')]=_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x124b')];break;default:{var _0x4ac6b5=_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x124b')][_0x2e8392('0x1a39')](',');_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x11b6')]=_0x51538b()[_0x2e8392('0x116b')](_0x4ac6b5[0x0])?_0x4ac6b5[0x0]:isNaN(_0x4ac6b5[0x0])?_0x4ac6b5[0x0]:parseInt(_0x4ac6b5[0x0],0xa),_0x27b8e1[_0x2e8392('0x1b05')]['text']=_0x51538b()['isEmpty'](_0x4ac6b5[0x1])?_0x4ac6b5[0x1]:isNaN(_0x4ac6b5[0x1])?_0x4ac6b5[0x1]:parseInt(_0x4ac6b5[0x1],0xa);}break;}else _0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x11b6')]=0x1;_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x6c8')]&&_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0x6c8')][_0x2e8392('0xcf6')]()===_0x2e8392('0x19d1')&&_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0xe6d')]['toLowerCase']()===_0x2e8392('0x1e7f')&&(_0x27b8e1['autoreply']['prefix']=_0x27b8e1[_0x2e8392('0x1b05')]['phone']?_0x27b8e1[_0x2e8392('0x1b05')]['phone'][_0x2e8392('0x1a39')]('$')[0x0]:undefined,_0x27b8e1[_0x2e8392('0x1b05')][_0x2e8392('0xeed')]=_0x27b8e1[_0x2e8392('0x1b05')]['callerID']?_0x2e8392('0x23d8')+_0x27b8e1['autoreply'][_0x2e8392('0x514')]:undefined);_0x27b8e1[_0x2e8392('0x945')]=_0x497e3f,_0x27b8e1[_0x2e8392('0x2023')]=_0x56ed03;function _0x497e3f(){var _0x3e893b=_0x2e8392;_0x27b8e1[_0x3e893b('0x4c6')]=[];var _0x33ff2e=[];_0x27b8e1[_0x3e893b('0x1b05')]['type']&&_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0x6c8')][_0x3e893b('0xcf6')]()===_0x3e893b('0x19d1')&&_0x27b8e1['autoreply'][_0x3e893b('0xe6d')]==='outboundDial'&&(_0x27b8e1[_0x3e893b('0x1b05')]['phone']=_0x525a7e[_0x3e893b('0x888')]?(_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0x1b8f')]||'')+'${EXTEN:'+_0x525a7e[_0x3e893b('0x888')]+'}':(_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0x1b8f')]||'')+_0x3e893b('0x1f87'),_0x525a7e['recordingFormat']!==_0x3e893b('0x117')?_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0x1b36')][_0x3e893b('0x1f38')](_0x3e893b('0x266a'))<0x0&&(_0x27b8e1[_0x3e893b('0x1b05')]['options']+=_0x3e893b('0x266a')):_0x27b8e1[_0x3e893b('0x1b05')]['options']=_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0x1b36')]['replace'](_0x3e893b('0x266a'),''));if(_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0xe6d')]&&_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0xe6d')]==='custom'){}else switch((_0x27b8e1[_0x3e893b('0x1b05')]['app']||_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0xe6d')])[_0x3e893b('0xcf6')]()){case _0x3e893b('0x282c'):_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0x124b')]=_0x27b8e1[_0x3e893b('0x1b05')]['name']+'='+_0x27b8e1[_0x3e893b('0x1b05')]['value'];break;case _0x3e893b('0x113b'):break;default:_0x33ff2e[0x0]=_0x27b8e1['autoreply']['times'],_0x33ff2e[0x1]=_0x27b8e1['autoreply'][_0x3e893b('0xb37')],_0x27b8e1[_0x3e893b('0x1b05')][_0x3e893b('0x124b')]=_0x33ff2e[_0x3e893b('0x19c4')](',');}_0x56ed03(_0x27b8e1['autoreply']);}function _0x56ed03(_0x551b99){var _0x3ca894=_0x2e8392;_0x48dc00[_0x3ca894('0x1120')](_0x551b99);}}const _0x47b479=_0x2203c6;_0x2c61a6[_0x1a8446('0x1e33')]=['$mdDialog','$q','toasty',_0x1a8446('0x1d70'),'mailAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x2c61a6(_0x3410b3,_0x2afe6c,_0x4a4b75,_0x2f5bfd,_0x411a7b,_0x1156da,_0x447090,_0x3ab396){var _0x36c1ac=_0x1a8446,_0x3ca5eb=this;_0x3ca5eb['currentUser']=_0x447090[_0x36c1ac('0xacc')](),_0x3ca5eb['errors']=[],_0x3ca5eb[_0x36c1ac('0x110a')]=_0x36c1ac('0x770')+(_0x2f5bfd['appType']||_0x2f5bfd[_0x36c1ac('0x9eb')])[_0x36c1ac('0x1d08')](),_0x3ca5eb[_0x36c1ac('0x21d0')]=angular[_0x36c1ac('0x20a')](_0x2f5bfd),_0x3ca5eb['crudPermissions']=_0x3ab396,_0x3ca5eb[_0x36c1ac('0x9f0')]={};if(_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x124b')])switch(_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0xe6d')]?_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0xe6d')][_0x36c1ac('0xcf6')]():_0x3ca5eb['close'][_0x36c1ac('0x9eb')][_0x36c1ac('0xcf6')]()){case'custom':break;case _0x36c1ac('0x67c'):{var _0x1ad4f7=_0x3ca5eb['close'][_0x36c1ac('0x124b')]['split'](',');_0x3ca5eb['close'][_0x36c1ac('0x24ec')]=_0x1ad4f7[0x0],_0x3ca5eb['close'][_0x36c1ac('0x1938')]=_0x1ad4f7[0x1],_0x3ca5eb['close'][_0x36c1ac('0x273')]=_0x1ad4f7[_0x36c1ac('0x19aa')](0x2,_0x1ad4f7[_0x36c1ac('0x2587')])[_0x36c1ac('0x19c4')](',');}break;case _0x36c1ac('0x3f5'):{var _0xadc31a=_0x3ca5eb['close'][_0x36c1ac('0x124b')]['split'](',');_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0xc07')]=_0xadc31a[0x0],_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x15f9')]=_0xadc31a[0x1],_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0xa9a')]=_0xadc31a[0x2],_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x18ee')]=_0xadc31a[0x3],_0x3ca5eb['close'][_0x36c1ac('0x273')]=_0xadc31a[_0x36c1ac('0x19aa')](0x4,_0xadc31a[_0x36c1ac('0x2587')])[_0x36c1ac('0x19c4')](',');}break;case _0x36c1ac('0x1b05'):{var _0x211afe=_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x124b')]['split'](',');_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x11b6')]=isNaN(_0x211afe[0x0])?_0x211afe[0x0]:parseInt(_0x211afe[0x0],0xa),_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0xb37')]=_0x211afe[_0x36c1ac('0x19aa')](0x1,_0x211afe[_0x36c1ac('0x2587')])[_0x36c1ac('0x19c4')](',');}break;case _0x36c1ac('0x1402'):_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0xb37')]=_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x124b')];break;case _0x36c1ac('0x282c'):_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x25d6')]=_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x124b')]['split']('=')[0x0],_0x3ca5eb['close'][_0x36c1ac('0x12f4')]=_0x3ca5eb[_0x36c1ac('0x21d0')]['appdata'][_0x36c1ac('0x1a39')]('=')[0x1];break;case _0x36c1ac('0x2067'):_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x24b9')]=_0x3ca5eb[_0x36c1ac('0x21d0')]['appdata'];break;default:{var _0x4d2281=_0x3ca5eb[_0x36c1ac('0x21d0')]['appdata']['split'](',');_0x3ca5eb['close']['disposition']=_0x51538b()[_0x36c1ac('0x116b')](_0x4d2281[0x0])?_0x4d2281[0x0]:isNaN(_0x4d2281[0x0])?_0x4d2281[0x0]:parseInt(_0x4d2281[0x0],0xa);}break;}else{}_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x6c8')]&&_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x6c8')][_0x36c1ac('0xcf6')]()===_0x36c1ac('0x19d1')&&_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0xe6d')][_0x36c1ac('0xcf6')]()===_0x36c1ac('0x1e7f')&&(_0x3ca5eb['close']['prefix']=_0x3ca5eb[_0x36c1ac('0x21d0')]['phone']?_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x1a46')][_0x36c1ac('0x1a39')]('$')[0x0]:undefined,_0x3ca5eb['close'][_0x36c1ac('0xeed')]=_0x3ca5eb[_0x36c1ac('0x21d0')]['callerID']?'CALLERID(all)='+_0x3ca5eb[_0x36c1ac('0x21d0')][_0x36c1ac('0x514')]:undefined);_0x3ca5eb[_0x36c1ac('0x945')]=_0x2a04fd,_0x3ca5eb[_0x36c1ac('0x2023')]=_0x4f3099;function _0x2a04fd(){var _0x4ace6b=_0x36c1ac;_0x3ca5eb['errors']=[];var _0x482843=[];_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x6c8')]&&_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x6c8')][_0x4ace6b('0xcf6')]()===_0x4ace6b('0x19d1')&&_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0xe6d')]===_0x4ace6b('0x8da')&&(_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x1a46')]=_0x411a7b[_0x4ace6b('0x888')]?(_0x3ca5eb['close']['prefix']||'')+_0x4ace6b('0x117e')+_0x411a7b[_0x4ace6b('0x888')]+'}':(_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x1b8f')]||'')+_0x4ace6b('0x1f87'),_0x411a7b['recordingFormat']!=='none'?_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x1b36')][_0x4ace6b('0x1f38')](_0x4ace6b('0x266a'))<0x0&&(_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x1b36')]+=_0x4ace6b('0x266a')):_0x3ca5eb[_0x4ace6b('0x21d0')]['options']=_0x3ca5eb['close'][_0x4ace6b('0x1b36')][_0x4ace6b('0x170d')](_0x4ace6b('0x266a'),''));if(_0x3ca5eb['close'][_0x4ace6b('0xe6d')]&&_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0xe6d')]===_0x4ace6b('0x113b')){}else switch((_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x9eb')]||_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0xe6d')])[_0x4ace6b('0xcf6')]()){case _0x4ace6b('0x282c'):_0x3ca5eb['close'][_0x4ace6b('0x124b')]=_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x25d6')]+'='+_0x3ca5eb[_0x4ace6b('0x21d0')][_0x4ace6b('0x12f4')];break;case _0x4ace6b('0x113b'):break;default:_0x482843[0x0]=_0x3ca5eb[_0x4ace6b('0x21d0')]['disposition'],_0x3ca5eb['close'][_0x4ace6b('0x124b')]=_0x482843[_0x4ace6b('0x19c4')](',');}_0x4f3099(_0x3ca5eb[_0x4ace6b('0x21d0')]);}function _0x4f3099(_0x5172f4){var _0x47ae4e=_0x36c1ac;_0x3410b3[_0x47ae4e('0x1120')](_0x5172f4);}}const _0x43705e=_0x2c61a6;_0x247c77[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d70'),_0x1a8446('0xb86'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x247c77(_0x50e794,_0x4c6cdb,_0x4149dd,_0x52631a,_0x32d46e,_0xc06e82,_0x159961,_0xf57c4b){var _0x38de66=_0x1a8446,_0x4606e2=this;_0x4606e2[_0x38de66('0x7fc')]=_0x159961[_0x38de66('0xacc')](),_0x4606e2['errors']=[],_0x4606e2[_0x38de66('0x110a')]=_0x38de66('0x770')+(_0x52631a[_0x38de66('0xe6d')]||_0x52631a[_0x38de66('0x9eb')])[_0x38de66('0x1d08')](),_0x4606e2[_0x38de66('0x3cb')]=angular[_0x38de66('0x20a')](_0x52631a),_0x4606e2[_0x38de66('0xada')]=_0xf57c4b,_0x4606e2[_0x38de66('0x9f0')]={};if(_0x4606e2['gotoif'][_0x38de66('0x124b')])switch(_0x4606e2[_0x38de66('0x3cb')]['appType']?_0x4606e2['gotoif'][_0x38de66('0xe6d')][_0x38de66('0xcf6')]():_0x4606e2['gotoif'][_0x38de66('0x9eb')][_0x38de66('0xcf6')]()){case _0x38de66('0x113b'):break;case _0x38de66('0x67c'):{var _0x368da0=_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x124b')][_0x38de66('0x1a39')](',');_0x4606e2[_0x38de66('0x3cb')]['key']=_0x368da0[0x0],_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x1938')]=_0x368da0[0x1],_0x4606e2[_0x38de66('0x3cb')]['welcomemessage']=_0x368da0['slice'](0x2,_0x368da0[_0x38de66('0x2587')])[_0x38de66('0x19c4')](',');}break;case _0x38de66('0x3f5'):{var _0x41e2f9=_0x4606e2['gotoif'][_0x38de66('0x124b')][_0x38de66('0x1a39')](',');_0x4606e2['gotoif']['accesskeyid']=_0x41e2f9[0x0],_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x15f9')]=_0x41e2f9[0x1],_0x4606e2[_0x38de66('0x3cb')]['lexregion']=_0x41e2f9[0x2],_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x18ee')]=_0x41e2f9[0x3],_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x273')]=_0x41e2f9[_0x38de66('0x19aa')](0x4,_0x41e2f9[_0x38de66('0x2587')])[_0x38de66('0x19c4')](',');}break;case _0x38de66('0x1b05'):{var _0x4ef73e=_0x4606e2['gotoif'][_0x38de66('0x124b')][_0x38de66('0x1a39')](',');_0x4606e2['gotoif'][_0x38de66('0x11b6')]=isNaN(_0x4ef73e[0x0])?_0x4ef73e[0x0]:parseInt(_0x4ef73e[0x0],0xa),_0x4606e2['gotoif'][_0x38de66('0xb37')]=_0x4ef73e[_0x38de66('0x19aa')](0x1,_0x4ef73e[_0x38de66('0x2587')])['join'](',');}break;case'message':_0x4606e2[_0x38de66('0x3cb')]['text']=_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x124b')];break;case _0x38de66('0x282c'):_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x25d6')]=_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x124b')][_0x38de66('0x1a39')]('=')[0x0],_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x12f4')]=_0x4606e2['gotoif'][_0x38de66('0x124b')][_0x38de66('0x1a39')]('=')[0x1];break;case'agi':_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x24b9')]=_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x124b')];break;default:{var _0x4510f8=_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x124b')][_0x38de66('0x1a39')](',');_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0xe77')]=_0x51538b()[_0x38de66('0x116b')](_0x4510f8[0x0])?_0x4510f8[0x0]:isNaN(_0x4510f8[0x0])?_0x4510f8[0x0]:parseInt(_0x4510f8[0x0],0xa),_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x13ba')]=_0x51538b()[_0x38de66('0x116b')](_0x4510f8[0x1])?_0x4510f8[0x1]:isNaN(_0x4510f8[0x1])?_0x4510f8[0x1]:parseInt(_0x4510f8[0x1],0xa),_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x222b')]=_0x51538b()['isEmpty'](_0x4510f8[0x2])?_0x4510f8[0x2]:isNaN(_0x4510f8[0x2])?_0x4510f8[0x2]:parseInt(_0x4510f8[0x2],0xa);}break;}else{}_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x6c8')]&&_0x4606e2['gotoif'][_0x38de66('0x6c8')]['toLowerCase']()==='outbound'&&_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0xe6d')][_0x38de66('0xcf6')]()===_0x38de66('0x1e7f')&&(_0x4606e2['gotoif'][_0x38de66('0x1b8f')]=_0x4606e2['gotoif'][_0x38de66('0x1a46')]?_0x4606e2['gotoif'][_0x38de66('0x1a46')][_0x38de66('0x1a39')]('$')[0x0]:undefined,_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0xeed')]=_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x514')]?_0x38de66('0x23d8')+_0x4606e2[_0x38de66('0x3cb')][_0x38de66('0x514')]:undefined);_0x4606e2[_0x38de66('0x945')]=_0x3395fc,_0x4606e2[_0x38de66('0x2023')]=_0x2fe15b;function _0x3395fc(){var _0x16486f=_0x38de66;_0x4606e2[_0x16486f('0x4c6')]=[];var _0x4f0b85=[];_0x4606e2[_0x16486f('0x3cb')]['type']&&_0x4606e2['gotoif'][_0x16486f('0x6c8')]['toLowerCase']()===_0x16486f('0x19d1')&&_0x4606e2[_0x16486f('0x3cb')]['appType']===_0x16486f('0x8da')&&(_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0x1a46')]=_0x32d46e['cutdigits']?(_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0x1b8f')]||'')+_0x16486f('0x117e')+_0x32d46e[_0x16486f('0x888')]+'}':(_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0x1b8f')]||'')+_0x16486f('0x1f87'),_0x32d46e[_0x16486f('0x1e0f')]!==_0x16486f('0x117')?_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0x1b36')]['indexOf'](_0x16486f('0x266a'))<0x0&&(_0x4606e2['gotoif']['options']+='U(xcally-mixmonitor-context)'):_0x4606e2[_0x16486f('0x3cb')]['options']=_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0x1b36')][_0x16486f('0x170d')](_0x16486f('0x266a'),''));if(_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0xe6d')]&&_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0xe6d')]==='custom'){}else switch((_0x4606e2[_0x16486f('0x3cb')]['app']||_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0xe6d')])[_0x16486f('0xcf6')]()){case _0x16486f('0x282c'):_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0x124b')]=_0x4606e2[_0x16486f('0x3cb')]['name']+'='+_0x4606e2['gotoif'][_0x16486f('0x12f4')];break;case _0x16486f('0x113b'):break;default:_0x4f0b85[0x0]=_0x4606e2[_0x16486f('0x3cb')]['condition'],_0x4f0b85[0x1]=_0x4606e2['gotoif']['truepriority'],_0x4f0b85[0x2]=_0x4606e2[_0x16486f('0x3cb')][_0x16486f('0x222b')],_0x4606e2['gotoif'][_0x16486f('0x124b')]=_0x4f0b85['join'](',');}_0x2fe15b(_0x4606e2['gotoif']);}function _0x2fe15b(_0x23f543){_0x50e794['hide'](_0x23f543);}}const _0x25409f=_0x247c77;_0x5c2be4[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d70'),_0x1a8446('0xb86'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x5c2be4(_0x395adf,_0x31c35e,_0x541ee3,_0x5727f3,_0x47bca,_0x3675bd,_0x2ff24d,_0x2b3b4e){var _0x503fea=_0x1a8446,_0x4f8006=this;_0x4f8006[_0x503fea('0x7fc')]=_0x2ff24d['getCurrentUser'](),_0x4f8006[_0x503fea('0x4c6')]=[],_0x4f8006['title']=_0x503fea('0x770')+(_0x5727f3[_0x503fea('0xe6d')]||_0x5727f3[_0x503fea('0x9eb')])[_0x503fea('0x1d08')](),_0x4f8006[_0x503fea('0x1141')]=angular[_0x503fea('0x20a')](_0x5727f3),_0x4f8006[_0x503fea('0xada')]=_0x2b3b4e,_0x4f8006[_0x503fea('0x9f0')]={};if(_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x124b')])switch(_0x4f8006[_0x503fea('0x1141')][_0x503fea('0xe6d')]?_0x4f8006['gotop'][_0x503fea('0xe6d')]['toLowerCase']():_0x4f8006['gotop']['app'][_0x503fea('0xcf6')]()){case _0x503fea('0x113b'):break;case'dialogflow':{var _0x1ff8df=_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x124b')][_0x503fea('0x1a39')](',');_0x4f8006[_0x503fea('0x1141')]['key']=_0x1ff8df[0x0],_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x1938')]=_0x1ff8df[0x1],_0x4f8006['gotop'][_0x503fea('0x273')]=_0x1ff8df[_0x503fea('0x19aa')](0x2,_0x1ff8df[_0x503fea('0x2587')])[_0x503fea('0x19c4')](',');}break;case _0x503fea('0x3f5'):{var _0x496c76=_0x4f8006['gotop'][_0x503fea('0x124b')][_0x503fea('0x1a39')](',');_0x4f8006['gotop'][_0x503fea('0xc07')]=_0x496c76[0x0],_0x4f8006['gotop'][_0x503fea('0x15f9')]=_0x496c76[0x1],_0x4f8006[_0x503fea('0x1141')][_0x503fea('0xa9a')]=_0x496c76[0x2],_0x4f8006['gotop'][_0x503fea('0x18ee')]=_0x496c76[0x3],_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x273')]=_0x496c76[_0x503fea('0x19aa')](0x4,_0x496c76[_0x503fea('0x2587')])[_0x503fea('0x19c4')](',');}break;case'autoreply':{var _0x4d385c=_0x4f8006[_0x503fea('0x1141')]['appdata'][_0x503fea('0x1a39')](',');_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x11b6')]=isNaN(_0x4d385c[0x0])?_0x4d385c[0x0]:parseInt(_0x4d385c[0x0],0xa),_0x4f8006[_0x503fea('0x1141')]['text']=_0x4d385c[_0x503fea('0x19aa')](0x1,_0x4d385c[_0x503fea('0x2587')])['join'](',');}break;case _0x503fea('0x1402'):_0x4f8006[_0x503fea('0x1141')]['text']=_0x4f8006['gotop']['appdata'];break;case _0x503fea('0x282c'):_0x4f8006[_0x503fea('0x1141')]['name']=_0x4f8006[_0x503fea('0x1141')]['appdata'][_0x503fea('0x1a39')]('=')[0x0],_0x4f8006['gotop']['value']=_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x124b')][_0x503fea('0x1a39')]('=')[0x1];break;case _0x503fea('0x2067'):_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x24b9')]=_0x4f8006['gotop'][_0x503fea('0x124b')];break;default:{var _0xc2372=_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x124b')][_0x503fea('0x1a39')](',');_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x13f2')]=_0x51538b()[_0x503fea('0x116b')](_0xc2372[0x0])?_0xc2372[0x0]:isNaN(_0xc2372[0x0])?_0xc2372[0x0]:parseInt(_0xc2372[0x0],0xa);}break;}else{}_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x6c8')]&&_0x4f8006['gotop'][_0x503fea('0x6c8')][_0x503fea('0xcf6')]()==='outbound'&&_0x4f8006[_0x503fea('0x1141')]['appType'][_0x503fea('0xcf6')]()===_0x503fea('0x1e7f')&&(_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x1b8f')]=_0x4f8006['gotop']['phone']?_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x1a46')]['split']('$')[0x0]:undefined,_0x4f8006[_0x503fea('0x1141')][_0x503fea('0xeed')]=_0x4f8006[_0x503fea('0x1141')][_0x503fea('0x514')]?_0x503fea('0x23d8')+_0x4f8006['gotop'][_0x503fea('0x514')]:undefined);_0x4f8006['saveMailAccountApp']=_0x18f65a,_0x4f8006[_0x503fea('0x2023')]=_0x5cae65;function _0x18f65a(){var _0x3ffc8f=_0x503fea;_0x4f8006[_0x3ffc8f('0x4c6')]=[];var _0x19266f=[];_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x6c8')]&&_0x4f8006['gotop']['type']['toLowerCase']()===_0x3ffc8f('0x19d1')&&_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0xe6d')]===_0x3ffc8f('0x8da')&&(_0x4f8006['gotop'][_0x3ffc8f('0x1a46')]=_0x47bca[_0x3ffc8f('0x888')]?(_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x1b8f')]||'')+'${EXTEN:'+_0x47bca[_0x3ffc8f('0x888')]+'}':(_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x1b8f')]||'')+_0x3ffc8f('0x1f87'),_0x47bca['recordingFormat']!==_0x3ffc8f('0x117')?_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x1b36')][_0x3ffc8f('0x1f38')](_0x3ffc8f('0x266a'))<0x0&&(_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x1b36')]+=_0x3ffc8f('0x266a')):_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x1b36')]=_0x4f8006['gotop'][_0x3ffc8f('0x1b36')]['replace'](_0x3ffc8f('0x266a'),''));if(_0x4f8006[_0x3ffc8f('0x1141')]['appType']&&_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0xe6d')]===_0x3ffc8f('0x113b')){}else switch((_0x4f8006[_0x3ffc8f('0x1141')]['app']||_0x4f8006[_0x3ffc8f('0x1141')]['appType'])['toLowerCase']()){case _0x3ffc8f('0x282c'):_0x4f8006['gotop']['appdata']=_0x4f8006['gotop'][_0x3ffc8f('0x25d6')]+'='+_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x12f4')];break;case _0x3ffc8f('0x113b'):break;default:_0x19266f[0x0]=_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x13f2')],_0x4f8006[_0x3ffc8f('0x1141')][_0x3ffc8f('0x124b')]=_0x19266f['join'](',');}_0x5cae65(_0x4f8006[_0x3ffc8f('0x1141')]);}function _0x5cae65(_0x54a677){_0x395adf['hide'](_0x54a677);}}const _0x2ef190=_0x5c2be4;_0x891db5['$inject']=[_0x1a8446('0x145b'),'$mdDialog',_0x1a8446('0x2658'),'IndexFactory',_0x1a8446('0x1c21'),_0x1a8446('0x2568'),'toasty',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x891db5(_0x325bf7,_0x135af3,_0x36843a,_0x178665,_0x1dce24,_0xdf39b6,_0x4cb9da,_0x401952,_0x1e9565,_0x52ca67){var _0x464c96=_0x1a8446,_0x570592=this;_0x570592['currentUser']=_0x1e9565[_0x464c96('0xacc')](),_0x570592[_0x464c96('0x4c6')]=[],_0x570592[_0x464c96('0x110a')]=_0x464c96('0x14b0'),_0x570592['interval']=angular['copy'](_0x1dce24),_0x570592[_0x464c96('0x2568')]=_0xdf39b6,_0x570592[_0x464c96('0x740')]=![],_0x570592[_0x464c96('0x11e9')]=[_0x464c96('0x1b43'),_0x464c96('0x113b'),'list'],_0x570592['crudPermissions']=_0x52ca67,_0x570592[_0x464c96('0xbe6')]=_0x178665[_0x464c96('0x1529')](),_0x570592[_0x464c96('0x21a9')]=_0x178665[_0x464c96('0x23fa')](),_0x570592[_0x464c96('0x672')]=_0x178665['getMonthName'](),_0x570592[_0x464c96('0x1469')]=_0x178665['getDaysOfMonth']();if(!_0x570592[_0x464c96('0x1c21')])_0x570592['interval']={'interval':_0x464c96('0x1ac6')},_0x570592['type']=_0x464c96('0x1b43'),_0x570592[_0x464c96('0x110a')]=_0x464c96('0x11d5'),_0x570592[_0x464c96('0x740')]=!![];else{if(_0x570592[_0x464c96('0x1c21')][_0x464c96('0x1c21')]!==_0x464c96('0x1ac6')){_0x570592['type']='custom';var _0x424107=_0x570592[_0x464c96('0x1c21')][_0x464c96('0x1c21')][_0x464c96('0x1a39')](','),_0x583acc=_0x424107[0x0],_0x4a9297=_0x424107[0x1],_0x265116=_0x424107[0x2],_0x32a17e=_0x424107[0x3];if(_0x583acc!=='*'){var _0x4ef229=_0x583acc[_0x464c96('0x1a39')]('-')[0x0],_0x26e7ea=_0x583acc[_0x464c96('0x1a39')]('-')[0x1],_0x4dadf7;_0x4dadf7=new Date(),_0x4dadf7[_0x464c96('0x807')](Number(_0x4ef229['split'](':')[0x0])),_0x4dadf7[_0x464c96('0xb43')](Number(_0x4ef229[_0x464c96('0x1a39')](':')[0x1])),_0x570592[_0x464c96('0x1ee7')]=_0x4dadf7,_0x4dadf7=new Date(),_0x4dadf7[_0x464c96('0x807')](Number(_0x26e7ea[_0x464c96('0x1a39')](':')[0x0])),_0x4dadf7['setMinutes'](Number(_0x26e7ea[_0x464c96('0x1a39')](':')[0x1])),_0x570592[_0x464c96('0x815')]=_0x4dadf7;}_0x4a9297!=='*'&&(_0x570592[_0x464c96('0x1fa3')]=_0x4a9297['split']('-')[0x0],_0x570592[_0x464c96('0xc93')]=_0x4a9297[_0x464c96('0x1a39')]('-')[0x1]),_0x265116!=='*'&&(_0x570592[_0x464c96('0x19d0')]=_0x265116['split']('-')[0x0],_0x570592[_0x464c96('0x2c3')]=_0x265116[_0x464c96('0x1a39')]('-')[0x1]),_0x32a17e!=='*'&&(_0x570592[_0x464c96('0xcf9')]=_0x32a17e['split']('-')[0x0],_0x570592[_0x464c96('0x125f')]=_0x32a17e[_0x464c96('0x1a39')]('-')[0x1]);}else _0x570592['type']='always';}_0x325bf7[_0x464c96('0x25cf')]['id']&&!_0x570592[_0x464c96('0x1c21')][_0x464c96('0xe45')]&&(_0x570592['interval']['IntervalId']=_0x325bf7['params']['id']);_0x570592[_0x464c96('0x1c21')][_0x464c96('0x1f8c')]&&_0x570592[_0x464c96('0x1c21')][_0x464c96('0xe45')]&&(_0x570592[_0x464c96('0x6c8')]=_0x464c96('0x2334'));_0x570592[_0x464c96('0x152a')]=_0x59324b,_0x570592[_0x464c96('0x1570')]=_0x56cb2d,_0x570592[_0x464c96('0x2023')]=_0x3f28fe;_0x570592[_0x464c96('0x1c21')]['application']&&(_0x1e9565[_0x464c96('0x26e8')](_0x464c96('0x178b'))?_0x401952[_0x464c96('0x1c21')][_0x464c96('0x2122')]({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})[_0x464c96('0x1dc2')][_0x464c96('0xaa5')](function(_0x3bf9cb){_0x570592['intervals']=_0x3bf9cb['rows']||[];})[_0x464c96('0x253d')](function(_0x24199d){var _0x34219f=_0x464c96;_0x4cb9da[_0x34219f('0x187f')]({'title':_0x24199d[_0x34219f('0x2fa')]?_0x34219f('0x16c2')+_0x24199d['status']+_0x34219f('0x169e')+_0x24199d[_0x34219f('0x24df')]:_0x34219f('0x3b0'),'msg':_0x24199d[_0x34219f('0x10fd')]?JSON['stringify'](_0x24199d[_0x34219f('0x10fd')]):_0x24199d[_0x34219f('0x684')]()});}):_0x401952[_0x464c96('0x1c21')]['get']({'fields':_0x464c96('0x1a33'),'IntervalId':'null','nolimit':!![]})[_0x464c96('0x1dc2')][_0x464c96('0xaa5')](function(_0xe70b47){var _0x368f70=_0x464c96;_0x570592['intervals']=_0xe70b47[_0x368f70('0x580')]||[];})[_0x464c96('0xaa5')](function(){var _0x2c33ce=_0x464c96;return _0x401952['userProfileSection'][_0x2c33ce('0x2122')]({'userProfileId':_0x570592[_0x2c33ce('0x7fc')]['userProfileId'],'sectionId':0x3ec})[_0x2c33ce('0x1dc2')];})[_0x464c96('0xaa5')](function(_0xb4526f){var _0x5063d7=_0x464c96,_0x44092c=_0xb4526f&&_0xb4526f[_0x5063d7('0x580')]?_0xb4526f[_0x5063d7('0x580')][0x0]:null;if(!_0x44092c)_0x570592[_0x5063d7('0x2568')]=[];else{if(!_0x44092c['autoAssociation'])return _0x401952['userProfileResource'][_0x5063d7('0x2122')]({'sectionId':_0x44092c['id']})[_0x5063d7('0x1dc2')]['then'](function(_0x4e37c0){var _0x5b08f3=_0x5063d7,_0x47012c=_0x4e37c0&&_0x4e37c0['rows']?_0x4e37c0[_0x5b08f3('0x580')]:[],_0xed062b=[],_0x86753d=null;_0x570592[_0x5b08f3('0x1c21')]&&(_0x86753d=_0x51538b()[_0x5b08f3('0xe9e')](_0x570592['intervals'],{'name':_0x570592[_0x5b08f3('0x1c21')][_0x5b08f3('0x1f8c')]})),_0x86753d&&!_0x51538b()['some'](_0x47012c,[_0x5b08f3('0xbcd'),_0x86753d['id']])&&_0x570592[_0x5b08f3('0x2568')][_0x5b08f3('0x15b5')](function(_0x16659f){var _0x2bad91=_0x5b08f3;_0x16659f['id']===_0x86753d['id']&&(_0x16659f[_0x2bad91('0x12eb')]=![],_0xed062b[_0x2bad91('0x1599')](_0x16659f));}),_0x570592[_0x5b08f3('0x2568')]=_0xed062b;});}})[_0x464c96('0x253d')](function(_0xad6ccd){var _0x79aef=_0x464c96;_0x4cb9da[_0x79aef('0x187f')]({'title':_0xad6ccd[_0x79aef('0x2fa')]?'API:'+_0xad6ccd[_0x79aef('0x2fa')]+_0x79aef('0x169e')+_0xad6ccd[_0x79aef('0x24df')]:_0x79aef('0x3b0'),'msg':_0xad6ccd[_0x79aef('0x10fd')]?JSON[_0x79aef('0xa48')](_0xad6ccd[_0x79aef('0x10fd')]):_0xad6ccd[_0x79aef('0x684')]()});}));function _0xcffe89(){var _0x5af911=_0x464c96;switch(_0x570592['type']){case _0x5af911('0x1b43'):case _0x5af911('0x2334'):return'*,*,*,*';case _0x5af911('0x113b'):{var _0x111465=[];if(_0x570592[_0x5af911('0x1ee7')]!=='*'&&_0x570592['timeRangeFrom']&&_0x570592[_0x5af911('0x815')]){var _0x48d2ee=(_0x570592['timeRangeFrom'][_0x5af911('0x6a2')]()<0xa?'0':'')+_0x570592[_0x5af911('0x1ee7')]['getHours']()+':'+((_0x570592[_0x5af911('0x1ee7')][_0x5af911('0x13a6')]()<0xa?'0':'')+_0x570592[_0x5af911('0x1ee7')][_0x5af911('0x13a6')]()),_0x4d079f=(_0x570592[_0x5af911('0x815')][_0x5af911('0x6a2')]()<0xa?'0':'')+_0x570592[_0x5af911('0x815')][_0x5af911('0x6a2')]()+':'+((_0x570592[_0x5af911('0x815')][_0x5af911('0x13a6')]()<0xa?'0':'')+_0x570592[_0x5af911('0x815')][_0x5af911('0x13a6')]());_0x111465[_0x5af911('0x1599')](_0x48d2ee+'-'+_0x4d079f);}else _0x111465[_0x5af911('0x1599')]('*');return _0x570592[_0x5af911('0x1fa3')]?_0x570592['dayOfWeekTo']?_0x111465[_0x5af911('0x1599')](_0x570592[_0x5af911('0x1fa3')]+'-'+_0x570592[_0x5af911('0xc93')]):_0x111465[_0x5af911('0x1599')](_0x570592[_0x5af911('0x1fa3')]):_0x111465[_0x5af911('0x1599')]('*'),_0x570592[_0x5af911('0x19d0')]?_0x570592['monthDayTo']?_0x111465[_0x5af911('0x1599')](_0x570592['monthDayFrom']+'-'+_0x570592[_0x5af911('0x2c3')]):_0x111465[_0x5af911('0x1599')](_0x570592['monthDayFrom']):_0x111465[_0x5af911('0x1599')]('*'),_0x570592[_0x5af911('0xcf9')]?_0x570592[_0x5af911('0x125f')]?_0x111465['push'](_0x570592['monthFrom']+'-'+_0x570592[_0x5af911('0x125f')]):_0x111465[_0x5af911('0x1599')](_0x570592[_0x5af911('0xcf9')]):_0x111465['push']('*'),_0x111465[_0x5af911('0x19c4')]();}}}function _0x59324b(){var _0x58e46a=_0x464c96;_0x570592[_0x58e46a('0x4c6')]=[],_0x570592[_0x58e46a('0x1c21')][_0x58e46a('0x1c21')]=_0xcffe89(),_0x401952['interval'][_0x58e46a('0x242b')](_0x570592['interval'])[_0x58e46a('0x1dc2')][_0x58e46a('0xaa5')](function(_0x45e1de){var _0x131416=_0x58e46a;_0x570592[_0x131416('0x2568')][_0x131416('0x1599')](_0x45e1de),_0x4cb9da[_0x131416('0xe10')]({'title':'Interval\x20properly\x20created','msg':_0x570592['interval']['name']?_0x570592['interval']['name']+'\x20has\x20been\x20created!':''}),_0x3f28fe();})['catch'](function(_0x2a9aec){var _0x42ac73=_0x58e46a;console[_0x42ac73('0x187f')](_0x2a9aec),_0x570592[_0x42ac73('0x4c6')]=_0x2a9aec[_0x42ac73('0x10fd')][_0x42ac73('0x4c6')]||[{'message':_0x2a9aec[_0x42ac73('0x684')](),'type':_0x42ac73('0xbd7')}];});}function _0x56cb2d(){var _0x56f5af=_0x464c96;_0x570592['errors']=[],_0x570592['interval'][_0x56f5af('0x1c21')]=_0xcffe89(),_0x570592[_0x56f5af('0x1c21')][_0x56f5af('0xe45')]?(_0x570592[_0x56f5af('0x6c8')]!=='list'&&(_0x570592[_0x56f5af('0x1c21')][_0x56f5af('0x1f8c')]=null),_0x3f28fe(_0x570592[_0x56f5af('0x1c21')])):_0x401952[_0x56f5af('0x1c21')][_0x56f5af('0x264e')]({'id':_0x570592[_0x56f5af('0x1c21')]['id']},_0x570592['interval'])[_0x56f5af('0x1dc2')][_0x56f5af('0xaa5')](function(_0x591f90){var _0x158600=_0x56f5af,_0x3732c6=_0x51538b()[_0x158600('0xe9e')](_0x570592[_0x158600('0x2568')],{'id':_0x591f90['id']});_0x3732c6&&_0x51538b()[_0x158600('0x283c')](_0x3732c6,_0x591f90),_0x4cb9da[_0x158600('0xe10')]({'title':'Interval\x20properly\x20saved!','msg':'Interval\x20has\x20been\x20saved!'}),_0x3f28fe();})[_0x56f5af('0x253d')](function(_0x345ec7){var _0x26872e=_0x56f5af;console['error'](_0x345ec7),_0x570592[_0x26872e('0x4c6')]=_0x345ec7['data'][_0x26872e('0x4c6')]||[{'message':_0x345ec7[_0x26872e('0x684')](),'type':_0x26872e('0x83d')}];});}function _0x3f28fe(_0x1939ad){var _0x1ac555=_0x464c96;_0x135af3[_0x1ac555('0x1120')](_0x1939ad);}}const _0x3c526b=_0x891db5;_0x44d922[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d70'),'mailAccount','api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x44d922(_0x4c6050,_0x53125a,_0x17573e,_0x5f49c8,_0x32c76e,_0x5b19b8,_0x58f22c,_0x59f4c3){var _0x508e40=_0x1a8446,_0x71721f=this;_0x71721f[_0x508e40('0x7fc')]=_0x58f22c[_0x508e40('0xacc')](),_0x71721f[_0x508e40('0x4c6')]=[],_0x71721f[_0x508e40('0x110a')]=_0x508e40('0x770')+(_0x5f49c8[_0x508e40('0xe6d')]||_0x5f49c8[_0x508e40('0x9eb')])[_0x508e40('0x1d08')](),_0x71721f[_0x508e40('0x27ca')]=angular[_0x508e40('0x20a')](_0x5f49c8),_0x71721f[_0x508e40('0xada')]=_0x59f4c3,_0x71721f[_0x508e40('0x9f0')]={};if(_0x71721f['noop']['appdata'])switch(_0x71721f[_0x508e40('0x27ca')][_0x508e40('0xe6d')]?_0x71721f[_0x508e40('0x27ca')]['appType'][_0x508e40('0xcf6')]():_0x71721f['noop'][_0x508e40('0x9eb')][_0x508e40('0xcf6')]()){case _0x508e40('0x113b'):break;case'dialogflow':{var _0x1fdc04=_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x124b')][_0x508e40('0x1a39')](',');_0x71721f[_0x508e40('0x27ca')]['key']=_0x1fdc04[0x0],_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x1938')]=_0x1fdc04[0x1],_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x273')]=_0x1fdc04[_0x508e40('0x19aa')](0x2,_0x1fdc04[_0x508e40('0x2587')])[_0x508e40('0x19c4')](',');}break;case _0x508e40('0x3f5'):{var _0xa0705e=_0x71721f[_0x508e40('0x27ca')]['appdata'][_0x508e40('0x1a39')](',');_0x71721f[_0x508e40('0x27ca')][_0x508e40('0xc07')]=_0xa0705e[0x0],_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x15f9')]=_0xa0705e[0x1],_0x71721f[_0x508e40('0x27ca')][_0x508e40('0xa9a')]=_0xa0705e[0x2],_0x71721f[_0x508e40('0x27ca')]['botname']=_0xa0705e[0x3],_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x273')]=_0xa0705e[_0x508e40('0x19aa')](0x4,_0xa0705e['length'])[_0x508e40('0x19c4')](',');}break;case _0x508e40('0x1b05'):{var _0x351752=_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x124b')][_0x508e40('0x1a39')](',');_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x11b6')]=isNaN(_0x351752[0x0])?_0x351752[0x0]:parseInt(_0x351752[0x0],0xa),_0x71721f[_0x508e40('0x27ca')][_0x508e40('0xb37')]=_0x351752[_0x508e40('0x19aa')](0x1,_0x351752['length'])[_0x508e40('0x19c4')](',');}break;case _0x508e40('0x1402'):_0x71721f[_0x508e40('0x27ca')]['text']=_0x71721f['noop'][_0x508e40('0x124b')];break;case _0x508e40('0x282c'):_0x71721f[_0x508e40('0x27ca')]['name']=_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x124b')]['split']('=')[0x0],_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x12f4')]=_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x124b')][_0x508e40('0x1a39')]('=')[0x1];break;case'agi':_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x24b9')]=_0x71721f[_0x508e40('0x27ca')]['appdata'];break;default:{var _0xd9700a=_0x71721f[_0x508e40('0x27ca')]['appdata'][_0x508e40('0x1a39')](',');_0x71721f['noop'][_0x508e40('0x12f4')]=_0x51538b()['isEmpty'](_0xd9700a[0x0])?_0xd9700a[0x0]:isNaN(_0xd9700a[0x0])?_0xd9700a[0x0]:parseInt(_0xd9700a[0x0],0xa);}break;}else{}_0x71721f['noop'][_0x508e40('0x6c8')]&&_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x6c8')][_0x508e40('0xcf6')]()===_0x508e40('0x19d1')&&_0x71721f[_0x508e40('0x27ca')][_0x508e40('0xe6d')][_0x508e40('0xcf6')]()===_0x508e40('0x1e7f')&&(_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x1b8f')]=_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x1a46')]?_0x71721f['noop'][_0x508e40('0x1a46')][_0x508e40('0x1a39')]('$')[0x0]:undefined,_0x71721f[_0x508e40('0x27ca')]['callerId']=_0x71721f[_0x508e40('0x27ca')]['callerID']?_0x508e40('0x23d8')+_0x71721f[_0x508e40('0x27ca')][_0x508e40('0x514')]:undefined);_0x71721f[_0x508e40('0x945')]=_0x3f7f2a,_0x71721f['closeDialog']=_0x404dbc;function _0x3f7f2a(){var _0x5c010b=_0x508e40;_0x71721f['errors']=[];var _0x3892ca=[];_0x71721f['noop'][_0x5c010b('0x6c8')]&&_0x71721f['noop']['type'][_0x5c010b('0xcf6')]()===_0x5c010b('0x19d1')&&_0x71721f[_0x5c010b('0x27ca')]['appType']===_0x5c010b('0x8da')&&(_0x71721f[_0x5c010b('0x27ca')][_0x5c010b('0x1a46')]=_0x32c76e['cutdigits']?(_0x71721f[_0x5c010b('0x27ca')][_0x5c010b('0x1b8f')]||'')+_0x5c010b('0x117e')+_0x32c76e['cutdigits']+'}':(_0x71721f['noop'][_0x5c010b('0x1b8f')]||'')+_0x5c010b('0x1f87'),_0x32c76e['recordingFormat']!=='none'?_0x71721f['noop'][_0x5c010b('0x1b36')][_0x5c010b('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x71721f[_0x5c010b('0x27ca')]['options']+=_0x5c010b('0x266a')):_0x71721f[_0x5c010b('0x27ca')][_0x5c010b('0x1b36')]=_0x71721f[_0x5c010b('0x27ca')]['options'][_0x5c010b('0x170d')](_0x5c010b('0x266a'),''));if(_0x71721f['noop'][_0x5c010b('0xe6d')]&&_0x71721f['noop'][_0x5c010b('0xe6d')]===_0x5c010b('0x113b')){}else switch((_0x71721f['noop']['app']||_0x71721f[_0x5c010b('0x27ca')][_0x5c010b('0xe6d')])['toLowerCase']()){case _0x5c010b('0x282c'):_0x71721f[_0x5c010b('0x27ca')][_0x5c010b('0x124b')]=_0x71721f['noop'][_0x5c010b('0x25d6')]+'='+_0x71721f[_0x5c010b('0x27ca')]['value'];break;case _0x5c010b('0x113b'):break;default:_0x3892ca[0x0]=_0x71721f['noop']['value'],_0x71721f[_0x5c010b('0x27ca')][_0x5c010b('0x124b')]=_0x3892ca[_0x5c010b('0x19c4')](',');}_0x404dbc(_0x71721f[_0x5c010b('0x27ca')]);}function _0x404dbc(_0x315f94){_0x4c6050['hide'](_0x315f94);}}const _0x5918d2=_0x44d922;_0x594780[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty','mailAccountApp',_0x1a8446('0xb86'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x594780(_0x523b61,_0x5f511b,_0x39fb0a,_0x3e4de7,_0x5e3e54,_0x752ab7,_0x36a02f,_0x189be2){var _0x7b5907=_0x1a8446,_0x35471d=this;_0x35471d[_0x7b5907('0x7fc')]=_0x36a02f[_0x7b5907('0xacc')](),_0x35471d['errors']=[],_0x35471d[_0x7b5907('0x110a')]=_0x7b5907('0x770')+(_0x3e4de7[_0x7b5907('0xe6d')]||_0x3e4de7['app'])['toUpperCase'](),_0x35471d[_0x7b5907('0xe26')]=angular[_0x7b5907('0x20a')](_0x3e4de7),_0x35471d[_0x7b5907('0xada')]=_0x189be2,_0x35471d[_0x7b5907('0x9f0')]={};if(_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x124b')])switch(_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0xe6d')]?_0x35471d[_0x7b5907('0xe26')]['appType']['toLowerCase']():_0x35471d[_0x7b5907('0xe26')]['app']['toLowerCase']()){case _0x7b5907('0x113b'):break;case _0x7b5907('0x67c'):{var _0x301f81=_0x35471d[_0x7b5907('0xe26')]['appdata'][_0x7b5907('0x1a39')](',');_0x35471d['queue']['key']=_0x301f81[0x0],_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x1938')]=_0x301f81[0x1],_0x35471d['queue']['welcomemessage']=_0x301f81[_0x7b5907('0x19aa')](0x2,_0x301f81['length'])[_0x7b5907('0x19c4')](',');}break;case'amazonlex':{var _0x2f033e=_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x124b')][_0x7b5907('0x1a39')](',');_0x35471d[_0x7b5907('0xe26')]['accesskeyid']=_0x2f033e[0x0],_0x35471d[_0x7b5907('0xe26')]['secretaccesskey']=_0x2f033e[0x1],_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0xa9a')]=_0x2f033e[0x2],_0x35471d['queue'][_0x7b5907('0x18ee')]=_0x2f033e[0x3],_0x35471d['queue'][_0x7b5907('0x273')]=_0x2f033e['slice'](0x4,_0x2f033e[_0x7b5907('0x2587')])[_0x7b5907('0x19c4')](',');}break;case'autoreply':{var _0x87a125=_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x124b')]['split'](',');_0x35471d['queue'][_0x7b5907('0x11b6')]=isNaN(_0x87a125[0x0])?_0x87a125[0x0]:parseInt(_0x87a125[0x0],0xa),_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0xb37')]=_0x87a125['slice'](0x1,_0x87a125[_0x7b5907('0x2587')])[_0x7b5907('0x19c4')](',');}break;case _0x7b5907('0x1402'):_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0xb37')]=_0x35471d[_0x7b5907('0xe26')]['appdata'];break;case'set':_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x25d6')]=_0x35471d[_0x7b5907('0xe26')]['appdata']['split']('=')[0x0],_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x12f4')]=_0x35471d[_0x7b5907('0xe26')]['appdata'][_0x7b5907('0x1a39')]('=')[0x1];break;case _0x7b5907('0x2067'):_0x35471d[_0x7b5907('0xe26')]['project']=_0x35471d['queue'][_0x7b5907('0x124b')];break;default:{var _0x3566d0=_0x35471d['queue'][_0x7b5907('0x124b')]['split'](',');_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0xe26')]=_0x51538b()[_0x7b5907('0x116b')](_0x3566d0[0x0])?_0x3566d0[0x0]:isNaN(_0x3566d0[0x0])?_0x3566d0[0x0]:parseInt(_0x3566d0[0x0],0xa),_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x23c0')]=_0x51538b()[_0x7b5907('0x116b')](_0x3566d0[0x1])?_0x3566d0[0x1]:isNaN(_0x3566d0[0x1])?_0x3566d0[0x1]:parseInt(_0x3566d0[0x1],0xa);}break;}else _0x35471d[_0x7b5907('0xe26')][_0x7b5907('0xe26')]=0x12c,_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x23c0')]=0x12c;_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x6c8')]&&_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x6c8')][_0x7b5907('0xcf6')]()===_0x7b5907('0x19d1')&&_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0xe6d')][_0x7b5907('0xcf6')]()===_0x7b5907('0x1e7f')&&(_0x35471d[_0x7b5907('0xe26')]['prefix']=_0x35471d['queue'][_0x7b5907('0x1a46')]?_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0x1a46')]['split']('$')[0x0]:undefined,_0x35471d[_0x7b5907('0xe26')][_0x7b5907('0xeed')]=_0x35471d['queue'][_0x7b5907('0x514')]?'CALLERID(all)='+_0x35471d[_0x7b5907('0xe26')]['callerID']:undefined);_0x35471d[_0x7b5907('0x945')]=_0x2df7c5,_0x35471d[_0x7b5907('0x2023')]=_0x2d9b35,_0x36a02f[_0x7b5907('0x26e8')](_0x7b5907('0x178b'))?_0x752ab7[_0x7b5907('0x21c6')][_0x7b5907('0x2122')]({'fields':_0x7b5907('0x21e2'),'sort':_0x7b5907('0x25d6'),'nolimit':_0x7b5907('0x1c5c')})[_0x7b5907('0x1dc2')][_0x7b5907('0xaa5')](function(_0x205a12){_0x35471d['queues']=_0x205a12['rows']||[];})[_0x7b5907('0x253d')](function(_0x23ea48){var _0x525aa7=_0x7b5907;_0x39fb0a[_0x525aa7('0x187f')]({'title':_0x23ea48['status']?_0x525aa7('0x16c2')+_0x23ea48['status']+_0x525aa7('0x169e')+_0x23ea48['statusText']:_0x525aa7('0x773'),'msg':_0x23ea48[_0x525aa7('0x10fd')]?JSON[_0x525aa7('0xa48')](_0x23ea48['data']):_0x23ea48['toString']()});}):_0x752ab7[_0x7b5907('0x21c6')][_0x7b5907('0x2122')]({'fields':_0x7b5907('0x21e2'),'sort':_0x7b5907('0x25d6'),'nolimit':'true'})[_0x7b5907('0x1dc2')]['then'](function(_0x13f252){var _0x4ce779=_0x7b5907;_0x35471d[_0x4ce779('0x4d7')]=_0x13f252['rows']||[];})[_0x7b5907('0xaa5')](function(){var _0x793759=_0x7b5907;return _0x752ab7[_0x793759('0x1a50')][_0x793759('0x2122')]({'userProfileId':_0x35471d[_0x793759('0x7fc')][_0x793759('0x2168')],'sectionId':0x259})[_0x793759('0x1dc2')];})[_0x7b5907('0xaa5')](function(_0x1298cb){var _0x1c15fd=_0x7b5907,_0x15b6a0=_0x1298cb&&_0x1298cb['rows']?_0x1298cb[_0x1c15fd('0x580')][0x0]:null;if(!_0x15b6a0){var _0x3cff69=[],_0x47a78b=null;_0x35471d['queue']&&(_0x47a78b=_0x51538b()[_0x1c15fd('0xe9e')](_0x35471d['queues'],{'name':_0x35471d[_0x1c15fd('0xe26')]['queue']}));for(var _0x29ad10=0x0;_0x29ad10<_0x35471d['queues'][_0x1c15fd('0x2587')];_0x29ad10++){_0x47a78b&&_0x35471d['queues'][_0x29ad10]['id']===_0x47a78b['id']&&(_0x35471d[_0x1c15fd('0x4d7')][_0x29ad10][_0x1c15fd('0x12eb')]=![],_0x3cff69[_0x1c15fd('0x1599')](_0x35471d[_0x1c15fd('0x4d7')][_0x29ad10]));}_0x35471d[_0x1c15fd('0x4d7')]=_0x3cff69;}else{if(!_0x15b6a0['autoAssociation'])return _0x752ab7['userProfileResource'][_0x1c15fd('0x2122')]({'sectionId':_0x15b6a0['id']})[_0x1c15fd('0x1dc2')][_0x1c15fd('0xaa5')](function(_0x15ff00){var _0x2d708a=_0x1c15fd,_0x5ec58f=_0x51538b()[_0x2d708a('0x1246')](_0x15ff00[_0x2d708a('0x580')],function(_0x205b7c){var _0x56847c=_0x2d708a;return _0x51538b()[_0x56847c('0xe9e')](_0x35471d['queues'],{'id':_0x205b7c[_0x56847c('0xbcd')]});}),_0x47d929=null;_0x35471d['queue']&&(_0x47d929=_0x51538b()['find'](_0x35471d[_0x2d708a('0x4d7')],{'name':_0x35471d[_0x2d708a('0xe26')][_0x2d708a('0xe26')]}));if(_0x47d929&&!_0x51538b()[_0x2d708a('0x2c2')](_0x5ec58f,['id',_0x47d929['id']])){var _0xf3f5e8=_0x51538b()[_0x2d708a('0xe9e')](_0x35471d[_0x2d708a('0x4d7')],{'id':_0x47d929['id']});_0xf3f5e8[_0x2d708a('0x12eb')]=![],_0x5ec58f[_0x2d708a('0x1599')](_0xf3f5e8);}_0x35471d['queues']=_0x5ec58f;});}})[_0x7b5907('0x253d')](function(_0x35f212){var _0x506c51=_0x7b5907;_0x39fb0a[_0x506c51('0x187f')]({'title':_0x35f212[_0x506c51('0x2fa')]?_0x506c51('0x16c2')+_0x35f212[_0x506c51('0x2fa')]+_0x506c51('0x169e')+_0x35f212[_0x506c51('0x24df')]:'SYSTEM:GETqueues','msg':_0x35f212[_0x506c51('0x10fd')]?JSON[_0x506c51('0xa48')](_0x35f212['data']):_0x35f212['toString']()});});function _0x2df7c5(){var _0x4524b1=_0x7b5907;_0x35471d[_0x4524b1('0x4c6')]=[];var _0x4b8176=[];_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x6c8')]&&_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x6c8')]['toLowerCase']()===_0x4524b1('0x19d1')&&_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0xe6d')]==='outboundDial'&&(_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x1a46')]=_0x5e3e54[_0x4524b1('0x888')]?(_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x1b8f')]||'')+_0x4524b1('0x117e')+_0x5e3e54[_0x4524b1('0x888')]+'}':(_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x1b8f')]||'')+_0x4524b1('0x1f87'),_0x5e3e54[_0x4524b1('0x1e0f')]!==_0x4524b1('0x117')?_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x1b36')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x35471d[_0x4524b1('0xe26')]['options']+=_0x4524b1('0x266a')):_0x35471d[_0x4524b1('0xe26')]['options']=_0x35471d['queue'][_0x4524b1('0x1b36')][_0x4524b1('0x170d')](_0x4524b1('0x266a'),''));var _0x425359=_0x51538b()[_0x4524b1('0xe9e')](_0x35471d[_0x4524b1('0x4d7')],{'name':_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0xe26')]});_0x425359&&(_0x35471d[_0x4524b1('0xe26')][_0x51538b()[_0x4524b1('0x1b56')](_0x4524b1('0x14c5'))+_0x4524b1('0x2097')]=_0x425359['id']);if(_0x35471d['queue'][_0x4524b1('0xe6d')]&&_0x35471d[_0x4524b1('0xe26')]['appType']===_0x4524b1('0x113b')){}else switch((_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x9eb')]||_0x35471d['queue'][_0x4524b1('0xe6d')])[_0x4524b1('0xcf6')]()){case _0x4524b1('0x282c'):_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x124b')]=_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x25d6')]+'='+_0x35471d['queue'][_0x4524b1('0x12f4')];break;case'custom':break;default:_0x4b8176[0x0]=_0x35471d['queue']['queue'],_0x4b8176[0x1]=_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x23c0')],_0x35471d[_0x4524b1('0xe26')][_0x4524b1('0x124b')]=_0x4b8176[_0x4524b1('0x19c4')](',');}_0x2d9b35(_0x35471d[_0x4524b1('0xe26')]);}function _0x2d9b35(_0x217442){var _0x47531b=_0x7b5907;_0x523b61[_0x47531b('0x1120')](_0x217442);}}const _0x205cb2=_0x594780;_0xf62a8b[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),'mailAccountApp',_0x1a8446('0xb86'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0xf62a8b(_0x4ca420,_0x37a775,_0x188d4c,_0x14ee5d,_0x2dcd99,_0x4ff9d3,_0x5ecf50,_0x35320e){var _0x13510d=_0x1a8446,_0x340f93=this;_0x340f93['currentUser']=_0x5ecf50['getCurrentUser'](),_0x340f93[_0x13510d('0x4c6')]=[],_0x340f93['title']=_0x13510d('0x770')+(_0x14ee5d[_0x13510d('0xe6d')]||_0x14ee5d[_0x13510d('0x9eb')])[_0x13510d('0x1d08')](),_0x340f93[_0x13510d('0x5da')]=angular['copy'](_0x14ee5d),_0x340f93[_0x13510d('0xada')]=_0x35320e,_0x340f93[_0x13510d('0x9f0')]={};if(_0x340f93[_0x13510d('0x5da')][_0x13510d('0x124b')])switch(_0x340f93['system'][_0x13510d('0xe6d')]?_0x340f93['system'][_0x13510d('0xe6d')][_0x13510d('0xcf6')]():_0x340f93[_0x13510d('0x5da')][_0x13510d('0x9eb')][_0x13510d('0xcf6')]()){case'custom':break;case _0x13510d('0x67c'):{var _0x55a86f=_0x340f93[_0x13510d('0x5da')]['appdata']['split'](',');_0x340f93[_0x13510d('0x5da')][_0x13510d('0x24ec')]=_0x55a86f[0x0],_0x340f93[_0x13510d('0x5da')][_0x13510d('0x1938')]=_0x55a86f[0x1],_0x340f93['system'][_0x13510d('0x273')]=_0x55a86f['slice'](0x2,_0x55a86f['length'])[_0x13510d('0x19c4')](',');}break;case'amazonlex':{var _0x14b7bb=_0x340f93[_0x13510d('0x5da')][_0x13510d('0x124b')][_0x13510d('0x1a39')](',');_0x340f93[_0x13510d('0x5da')]['accesskeyid']=_0x14b7bb[0x0],_0x340f93['system'][_0x13510d('0x15f9')]=_0x14b7bb[0x1],_0x340f93[_0x13510d('0x5da')][_0x13510d('0xa9a')]=_0x14b7bb[0x2],_0x340f93[_0x13510d('0x5da')][_0x13510d('0x18ee')]=_0x14b7bb[0x3],_0x340f93[_0x13510d('0x5da')][_0x13510d('0x273')]=_0x14b7bb[_0x13510d('0x19aa')](0x4,_0x14b7bb['length'])['join'](',');}break;case _0x13510d('0x1b05'):{var _0x3377f2=_0x340f93[_0x13510d('0x5da')][_0x13510d('0x124b')][_0x13510d('0x1a39')](',');_0x340f93[_0x13510d('0x5da')][_0x13510d('0x11b6')]=isNaN(_0x3377f2[0x0])?_0x3377f2[0x0]:parseInt(_0x3377f2[0x0],0xa),_0x340f93[_0x13510d('0x5da')][_0x13510d('0xb37')]=_0x3377f2['slice'](0x1,_0x3377f2[_0x13510d('0x2587')])[_0x13510d('0x19c4')](',');}break;case'message':_0x340f93[_0x13510d('0x5da')][_0x13510d('0xb37')]=_0x340f93[_0x13510d('0x5da')][_0x13510d('0x124b')];break;case _0x13510d('0x282c'):_0x340f93[_0x13510d('0x5da')][_0x13510d('0x25d6')]=_0x340f93['system'][_0x13510d('0x124b')]['split']('=')[0x0],_0x340f93['system'][_0x13510d('0x12f4')]=_0x340f93['system'][_0x13510d('0x124b')][_0x13510d('0x1a39')]('=')[0x1];break;case _0x13510d('0x2067'):_0x340f93[_0x13510d('0x5da')][_0x13510d('0x24b9')]=_0x340f93[_0x13510d('0x5da')][_0x13510d('0x124b')];break;default:{var _0x94866c=_0x340f93[_0x13510d('0x5da')][_0x13510d('0x124b')][_0x13510d('0x1a39')](',');_0x340f93['system'][_0x13510d('0xd7b')]=_0x51538b()[_0x13510d('0x116b')](_0x94866c[0x0])?_0x94866c[0x0]:isNaN(_0x94866c[0x0])?_0x94866c[0x0]:parseInt(_0x94866c[0x0],0xa),_0x340f93[_0x13510d('0x5da')][_0x13510d('0x14e7')]=_0x51538b()['isEmpty'](_0x94866c[0x1])?_0x94866c[0x1]:isNaN(_0x94866c[0x1])?_0x94866c[0x1]:parseInt(_0x94866c[0x1],0xa);}break;}else _0x340f93[_0x13510d('0x5da')]['variable']='';_0x340f93[_0x13510d('0x5da')]['type']&&_0x340f93['system'][_0x13510d('0x6c8')][_0x13510d('0xcf6')]()===_0x13510d('0x19d1')&&_0x340f93[_0x13510d('0x5da')]['appType']['toLowerCase']()===_0x13510d('0x1e7f')&&(_0x340f93['system']['prefix']=_0x340f93[_0x13510d('0x5da')][_0x13510d('0x1a46')]?_0x340f93[_0x13510d('0x5da')][_0x13510d('0x1a46')][_0x13510d('0x1a39')]('$')[0x0]:undefined,_0x340f93['system'][_0x13510d('0xeed')]=_0x340f93[_0x13510d('0x5da')]['callerID']?_0x13510d('0x23d8')+_0x340f93[_0x13510d('0x5da')][_0x13510d('0x514')]:undefined);_0x340f93[_0x13510d('0x945')]=_0x2927bc,_0x340f93[_0x13510d('0x2023')]=_0x245f56,_0x5ecf50[_0x13510d('0x26e8')]('admin')?_0x4ff9d3[_0x13510d('0x14e7')][_0x13510d('0x2122')]({'fields':_0x13510d('0x17fe'),'sort':_0x13510d('0x25d6'),'nolimit':_0x13510d('0x1c5c')})['$promise'][_0x13510d('0xaa5')](function(_0x1ee55b){var _0x2b7bbc=_0x13510d;_0x340f93['variables']=_0x1ee55b[_0x2b7bbc('0x580')]||[];})[_0x13510d('0x253d')](function(_0x506c20){var _0x2b16aa=_0x13510d;_0x188d4c[_0x2b16aa('0x187f')]({'title':_0x506c20['status']?_0x2b16aa('0x16c2')+_0x506c20['status']+'\x20-\x20'+_0x506c20[_0x2b16aa('0x24df')]:'SYSTEM:GET_VARIABLES','msg':_0x506c20[_0x2b16aa('0x10fd')]?JSON[_0x2b16aa('0xa48')](_0x506c20[_0x2b16aa('0x10fd')]):_0x506c20[_0x2b16aa('0x684')]()});}):_0x4ff9d3['variable']['get']({'fields':_0x13510d('0x17fe'),'sort':_0x13510d('0x25d6'),'nolimit':'true'})[_0x13510d('0x1dc2')][_0x13510d('0xaa5')](function(_0x333702){_0x340f93['variables']=_0x333702['rows']||[];})[_0x13510d('0xaa5')](function(){var _0x259d50=_0x13510d;return _0x4ff9d3[_0x259d50('0x1a50')][_0x259d50('0x2122')]({'userProfileId':_0x340f93[_0x259d50('0x7fc')][_0x259d50('0x2168')],'sectionId':0x3f4})[_0x259d50('0x1dc2')];})['then'](function(_0x16a019){var _0x221e53=_0x13510d,_0x5744cc=_0x16a019&&_0x16a019[_0x221e53('0x580')]?_0x16a019[_0x221e53('0x580')][0x0]:null;if(!_0x5744cc){var _0x121b47=[],_0x51aa9b=null;_0x340f93[_0x221e53('0x5da')]&&(_0x51aa9b=_0x51538b()[_0x221e53('0xe9e')](_0x340f93[_0x221e53('0x147e')],{'name':_0x340f93[_0x221e53('0x5da')]['variable']}));for(var _0x58081f=0x0;_0x58081f<_0x340f93[_0x221e53('0x147e')][_0x221e53('0x2587')];_0x58081f++){_0x51aa9b&&_0x340f93[_0x221e53('0x147e')][_0x58081f]['id']===_0x51aa9b['id']&&(_0x340f93[_0x221e53('0x147e')][_0x58081f][_0x221e53('0x12eb')]=![],_0x121b47[_0x221e53('0x1599')](_0x340f93['variables'][_0x58081f]));}_0x340f93[_0x221e53('0x147e')]=_0x121b47;}else{if(!_0x5744cc[_0x221e53('0x26cc')])return _0x4ff9d3['userProfileResource'][_0x221e53('0x2122')]({'sectionId':_0x5744cc['id']})['$promise'][_0x221e53('0xaa5')](function(_0x4979fb){var _0x4b93f3=_0x221e53,_0x44aee4=_0x51538b()[_0x4b93f3('0x1246')](_0x4979fb['rows'],function(_0x1fa085){var _0x3ffa73=_0x4b93f3;return _0x51538b()[_0x3ffa73('0xe9e')](_0x340f93[_0x3ffa73('0x147e')],{'id':_0x1fa085[_0x3ffa73('0xbcd')]});}),_0x59859d=null;_0x340f93[_0x4b93f3('0x5da')]&&(_0x59859d=_0x51538b()[_0x4b93f3('0xe9e')](_0x340f93[_0x4b93f3('0x147e')],{'name':_0x340f93[_0x4b93f3('0x5da')][_0x4b93f3('0x14e7')]}));if(_0x59859d&&!_0x51538b()[_0x4b93f3('0x2c2')](_0x44aee4,['id',_0x59859d['id']])){var _0x1eb1f7=_0x51538b()[_0x4b93f3('0xe9e')](_0x340f93[_0x4b93f3('0x147e')],{'id':_0x59859d['id']});_0x1eb1f7[_0x4b93f3('0x12eb')]=![],_0x44aee4[_0x4b93f3('0x1599')](_0x1eb1f7);}_0x340f93[_0x4b93f3('0x147e')]=_0x44aee4;});}})[_0x13510d('0x253d')](function(_0x4a9ec2){var _0x4524ac=_0x13510d;_0x188d4c[_0x4524ac('0x187f')]({'title':_0x4a9ec2['status']?_0x4524ac('0x16c2')+_0x4a9ec2[_0x4524ac('0x2fa')]+_0x4524ac('0x169e')+_0x4a9ec2[_0x4524ac('0x24df')]:_0x4524ac('0xb4d'),'msg':_0x4a9ec2[_0x4524ac('0x10fd')]?JSON['stringify'](_0x4a9ec2[_0x4524ac('0x10fd')]):_0x4a9ec2[_0x4524ac('0x684')]()});});function _0x2927bc(){var _0x464b7c=_0x13510d;_0x340f93[_0x464b7c('0x4c6')]=[];var _0x225838=[];_0x340f93['system'][_0x464b7c('0x6c8')]&&_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0x6c8')]['toLowerCase']()==='outbound'&&_0x340f93['system'][_0x464b7c('0xe6d')]===_0x464b7c('0x8da')&&(_0x340f93['system'][_0x464b7c('0x1a46')]=_0x2dcd99[_0x464b7c('0x888')]?(_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0x1b8f')]||'')+'${EXTEN:'+_0x2dcd99[_0x464b7c('0x888')]+'}':(_0x340f93['system'][_0x464b7c('0x1b8f')]||'')+'${EXTEN}',_0x2dcd99[_0x464b7c('0x1e0f')]!=='none'?_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0x1b36')][_0x464b7c('0x1f38')](_0x464b7c('0x266a'))<0x0&&(_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0x1b36')]=_0x340f93['system'][_0x464b7c('0x1b36')]['replace'](_0x464b7c('0x266a'),''));if(_0x340f93[_0x464b7c('0x5da')]['appType']&&_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0xe6d')]===_0x464b7c('0x113b')){}else switch((_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0x9eb')]||_0x340f93['system'][_0x464b7c('0xe6d')])[_0x464b7c('0xcf6')]()){case _0x464b7c('0x282c'):_0x340f93[_0x464b7c('0x5da')]['appdata']=_0x340f93[_0x464b7c('0x5da')]['name']+'='+_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0x12f4')];break;case _0x464b7c('0x113b'):break;default:_0x225838[0x0]=_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0xd7b')],_0x225838[0x1]=_0x340f93[_0x464b7c('0x5da')][_0x464b7c('0x14e7')],_0x340f93['system'][_0x464b7c('0x124b')]=_0x225838[_0x464b7c('0x19c4')](',');}_0x245f56(_0x340f93[_0x464b7c('0x5da')]);}function _0x245f56(_0x2c9b0b){var _0xbebbf8=_0x13510d;_0x4ca420[_0xbebbf8('0x1120')](_0x2c9b0b);}}const _0x2ac649=_0xf62a8b;_0x54fd72[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d70'),_0x1a8446('0xb86'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x54fd72(_0x38c2b8,_0x1fa2ae,_0x33d296,_0x4daf4a,_0x43d9ce,_0x4401e8,_0x1c8448,_0x228c99){var _0x1ac49b=_0x1a8446,_0x33c316=this;_0x33c316['currentUser']=_0x1c8448[_0x1ac49b('0xacc')](),_0x33c316[_0x1ac49b('0x4c6')]=[],_0x33c316[_0x1ac49b('0x110a')]='MAIL.EDIT_'+(_0x4daf4a['appType']||_0x4daf4a[_0x1ac49b('0x9eb')])[_0x1ac49b('0x1d08')](),_0x33c316[_0x1ac49b('0x38f')]=angular['copy'](_0x4daf4a),_0x33c316[_0x1ac49b('0xada')]=_0x228c99,_0x33c316[_0x1ac49b('0x9f0')]={};if(_0x33c316['tag'][_0x1ac49b('0x124b')])switch(_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0xe6d')]?_0x33c316['tag'][_0x1ac49b('0xe6d')]['toLowerCase']():_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x9eb')][_0x1ac49b('0xcf6')]()){case _0x1ac49b('0x113b'):break;case _0x1ac49b('0x67c'):{var _0x2502eb=_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x124b')][_0x1ac49b('0x1a39')](',');_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x24ec')]=_0x2502eb[0x0],_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x1938')]=_0x2502eb[0x1],_0x33c316[_0x1ac49b('0x38f')]['welcomemessage']=_0x2502eb[_0x1ac49b('0x19aa')](0x2,_0x2502eb['length'])['join'](',');}break;case'amazonlex':{var _0x23f21a=_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x124b')][_0x1ac49b('0x1a39')](',');_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0xc07')]=_0x23f21a[0x0],_0x33c316[_0x1ac49b('0x38f')]['secretaccesskey']=_0x23f21a[0x1],_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0xa9a')]=_0x23f21a[0x2],_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x18ee')]=_0x23f21a[0x3],_0x33c316['tag'][_0x1ac49b('0x273')]=_0x23f21a[_0x1ac49b('0x19aa')](0x4,_0x23f21a[_0x1ac49b('0x2587')])[_0x1ac49b('0x19c4')](',');}break;case _0x1ac49b('0x1b05'):{var _0x25d4d0=_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x124b')]['split'](',');_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x11b6')]=isNaN(_0x25d4d0[0x0])?_0x25d4d0[0x0]:parseInt(_0x25d4d0[0x0],0xa),_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0xb37')]=_0x25d4d0[_0x1ac49b('0x19aa')](0x1,_0x25d4d0['length'])['join'](',');}break;case _0x1ac49b('0x1402'):_0x33c316[_0x1ac49b('0x38f')]['text']=_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x124b')];break;case _0x1ac49b('0x282c'):_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x25d6')]=_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x124b')]['split']('=')[0x0],_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x12f4')]=_0x33c316['tag'][_0x1ac49b('0x124b')][_0x1ac49b('0x1a39')]('=')[0x1];break;case _0x1ac49b('0x2067'):_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x24b9')]=_0x33c316[_0x1ac49b('0x38f')]['appdata'];break;default:{var _0x2772e6=_0x33c316['tag']['appdata'][_0x1ac49b('0x1a39')](',');_0x33c316['tag'][_0x1ac49b('0x38f')]=_0x51538b()[_0x1ac49b('0x116b')](_0x2772e6[0x0])?_0x2772e6[0x0]:isNaN(_0x2772e6[0x0])?_0x2772e6[0x0]:parseInt(_0x2772e6[0x0],0xa);}break;}else{}_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x6c8')]&&_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x6c8')][_0x1ac49b('0xcf6')]()==='outbound'&&_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0xe6d')][_0x1ac49b('0xcf6')]()==='outbounddial'&&(_0x33c316[_0x1ac49b('0x38f')]['prefix']=_0x33c316['tag'][_0x1ac49b('0x1a46')]?_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0x1a46')]['split']('$')[0x0]:undefined,_0x33c316[_0x1ac49b('0x38f')][_0x1ac49b('0xeed')]=_0x33c316[_0x1ac49b('0x38f')]['callerID']?_0x1ac49b('0x23d8')+_0x33c316['tag'][_0x1ac49b('0x514')]:undefined);_0x33c316['saveMailAccountApp']=_0x212a6a,_0x33c316[_0x1ac49b('0x2023')]=_0x170fc6,_0x1c8448[_0x1ac49b('0x26e8')](_0x1ac49b('0x178b'))?_0x4401e8[_0x1ac49b('0x38f')]['get']({'fields':_0x1ac49b('0x17fe'),'sort':_0x1ac49b('0x25d6'),'nolimit':_0x1ac49b('0x1c5c')})[_0x1ac49b('0x1dc2')][_0x1ac49b('0xaa5')](function(_0x2b4b5b){var _0x8c6dea=_0x1ac49b;_0x33c316[_0x8c6dea('0x523')]=_0x2b4b5b[_0x8c6dea('0x580')]||[];})[_0x1ac49b('0x253d')](function(_0x2bd505){var _0x45eef3=_0x1ac49b;_0x33d296[_0x45eef3('0x187f')]({'title':_0x2bd505[_0x45eef3('0x2fa')]?_0x45eef3('0x16c2')+_0x2bd505[_0x45eef3('0x2fa')]+'\x20-\x20'+_0x2bd505[_0x45eef3('0x24df')]:_0x45eef3('0x37c'),'msg':_0x2bd505['data']?JSON[_0x45eef3('0xa48')](_0x2bd505[_0x45eef3('0x10fd')]):_0x2bd505['toString']()});}):_0x4401e8[_0x1ac49b('0x38f')][_0x1ac49b('0x2122')]({'fields':_0x1ac49b('0x17fe'),'sort':'name','nolimit':'true'})[_0x1ac49b('0x1dc2')][_0x1ac49b('0xaa5')](function(_0x37fd4b){var _0x1f9828=_0x1ac49b;_0x33c316[_0x1f9828('0x523')]=_0x37fd4b[_0x1f9828('0x580')]||[];})[_0x1ac49b('0xaa5')](function(){var _0x5732d1=_0x1ac49b;return _0x4401e8[_0x5732d1('0x1a50')][_0x5732d1('0x2122')]({'userProfileId':_0x33c316[_0x5732d1('0x7fc')][_0x5732d1('0x2168')],'sectionId':0x3f0})['$promise'];})['then'](function(_0x4cc501){var _0x5a9b08=_0x1ac49b,_0x47d023=_0x4cc501&&_0x4cc501[_0x5a9b08('0x580')]?_0x4cc501[_0x5a9b08('0x580')][0x0]:null;if(!_0x47d023){var _0x287f78=[],_0x507f43=null;_0x33c316[_0x5a9b08('0x38f')]&&(_0x507f43=_0x51538b()[_0x5a9b08('0xe9e')](_0x33c316['tags'],{'name':_0x33c316[_0x5a9b08('0x38f')][_0x5a9b08('0x38f')]}));for(var _0x2fab9d=0x0;_0x2fab9d<_0x33c316['tags'][_0x5a9b08('0x2587')];_0x2fab9d++){_0x507f43&&_0x33c316[_0x5a9b08('0x523')][_0x2fab9d]['id']===_0x507f43['id']&&(_0x33c316['tags'][_0x2fab9d]['canSelect']=![],_0x287f78[_0x5a9b08('0x1599')](_0x33c316['tags'][_0x2fab9d]));}_0x33c316['tags']=_0x287f78;}else{if(!_0x47d023[_0x5a9b08('0x26cc')])return _0x4401e8[_0x5a9b08('0x249a')][_0x5a9b08('0x2122')]({'sectionId':_0x47d023['id']})[_0x5a9b08('0x1dc2')][_0x5a9b08('0xaa5')](function(_0xdbaca1){var _0x5a862e=_0x5a9b08,_0x377a0c=_0x51538b()[_0x5a862e('0x1246')](_0xdbaca1[_0x5a862e('0x580')],function(_0x18c37a){var _0x3462e0=_0x5a862e;return _0x51538b()[_0x3462e0('0xe9e')](_0x33c316[_0x3462e0('0x523')],{'id':_0x18c37a['resourceId']});}),_0x5f8f16=null;_0x33c316[_0x5a862e('0x38f')]&&(_0x5f8f16=_0x51538b()[_0x5a862e('0xe9e')](_0x33c316['tags'],{'name':_0x33c316[_0x5a862e('0x38f')][_0x5a862e('0x38f')]}));if(_0x5f8f16&&!_0x51538b()['some'](_0x377a0c,['id',_0x5f8f16['id']])){var _0x2ff337=_0x51538b()[_0x5a862e('0xe9e')](_0x33c316[_0x5a862e('0x523')],{'id':_0x5f8f16['id']});_0x2ff337['canSelect']=![],_0x377a0c['push'](_0x2ff337);}_0x33c316[_0x5a862e('0x523')]=_0x377a0c;});}})['catch'](function(_0x18b62c){var _0x48644c=_0x1ac49b;_0x33d296['error']({'title':_0x18b62c[_0x48644c('0x2fa')]?_0x48644c('0x16c2')+_0x18b62c[_0x48644c('0x2fa')]+'\x20-\x20'+_0x18b62c['statusText']:_0x48644c('0x25e'),'msg':_0x18b62c[_0x48644c('0x10fd')]?JSON[_0x48644c('0xa48')](_0x18b62c[_0x48644c('0x10fd')]):_0x18b62c[_0x48644c('0x684')]()});});function _0x212a6a(){var _0x53f1bc=_0x1ac49b;_0x33c316[_0x53f1bc('0x4c6')]=[];var _0x2441be=[];_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x6c8')]&&_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x6c8')][_0x53f1bc('0xcf6')]()===_0x53f1bc('0x19d1')&&_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0xe6d')]==='outboundDial'&&(_0x33c316[_0x53f1bc('0x38f')]['phone']=_0x43d9ce['cutdigits']?(_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x1b8f')]||'')+_0x53f1bc('0x117e')+_0x43d9ce[_0x53f1bc('0x888')]+'}':(_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x1b8f')]||'')+'${EXTEN}',_0x43d9ce[_0x53f1bc('0x1e0f')]!=='none'?_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x1b36')]['indexOf'](_0x53f1bc('0x266a'))<0x0&&(_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x1b36')]+=_0x53f1bc('0x266a')):_0x33c316['tag'][_0x53f1bc('0x1b36')]=_0x33c316['tag'][_0x53f1bc('0x1b36')]['replace']('U(xcally-mixmonitor-context)',''));var _0x6fb59e=_0x51538b()[_0x53f1bc('0xe9e')](_0x33c316[_0x53f1bc('0x523')],{'name':_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x38f')]});_0x6fb59e&&(_0x33c316['tag'][_0x53f1bc('0x2028')]=_0x6fb59e['id']);if(_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0xe6d')]&&_0x33c316[_0x53f1bc('0x38f')]['appType']==='custom'){}else switch((_0x33c316['tag'][_0x53f1bc('0x9eb')]||_0x33c316[_0x53f1bc('0x38f')]['appType'])[_0x53f1bc('0xcf6')]()){case _0x53f1bc('0x282c'):_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x124b')]=_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x25d6')]+'='+_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x12f4')];break;case'custom':break;default:_0x2441be[0x0]=_0x33c316['tag'][_0x53f1bc('0x38f')],_0x33c316[_0x53f1bc('0x38f')][_0x53f1bc('0x124b')]=_0x2441be[_0x53f1bc('0x19c4')](',');}_0x170fc6(_0x33c316[_0x53f1bc('0x38f')]);}function _0x170fc6(_0x4ed57a){var _0x3810a8=_0x1ac49b;_0x38c2b8[_0x3810a8('0x1120')](_0x4ed57a);}}const _0x1b0e84=_0x54fd72;_0x49a763[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x49a763(_0x223d14,_0x3ade92,_0x293a45,_0x14a5bd,_0x7bc6a3,_0x3202f6,_0x1e06df,_0x1e0e0a,_0x38e5c7,_0xbac973,_0x359d5b){var _0x1e685a=_0x1a8446,_0x3bb63c=this;_0x3bb63c[_0x1e685a('0x7fc')]=_0x359d5b[_0x1e685a('0xacc')](),_0x3bb63c[_0x1e685a('0xb86')]={},_0x3bb63c[_0x1e685a('0x82e')]={'count':0x0,'rows':[]},_0x3bb63c[_0x1e685a('0x1fb4')]=[],_0x3bb63c['crudPermissions'],_0x3bb63c['query']={'read':_0x1e685a('0x1ed9'),'closed':'null','sort':'-createdAt','includeAll':_0x1e685a('0x1c5c'),'limit':0xa,'page':0x1},_0x3bb63c[_0x1e685a('0x2e')]=_0x448564,_0x3bb63c[_0x1e685a('0x1416')]=_0x3560dc,_0x3bb63c['mailInteractionDownload']=_0x5ebcea,_0x3bb63c[_0x1e685a('0xe10')]=_0x456ae1,_0x3bb63c[_0x1e685a('0x11b0')]=_0xc4ab74,_0x3bb63c['spymailInteraction']=_0x28acf2,_0x3bb63c['openAdvancedSearch']=_0x427e52,_0x3bb63c[_0x1e685a('0xf11')]=_0x2999f1,_0x3bb63c['deleteMailAccountInteraction']=_0x586503,_0x3bb63c[_0x1e685a('0x2250')]=_0x5ee220;function _0x448564(_0x6cdc0c,_0x35c3e2){var _0x38b5b1=_0x1e685a;_0x3bb63c[_0x38b5b1('0xb86')]=_0x6cdc0c,_0x3bb63c[_0x38b5b1('0xada')]=typeof _0x35c3e2!==_0x38b5b1('0x1574')?_0x35c3e2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3bb63c[_0x38b5b1('0x582')][_0x38b5b1('0x2307')]=_0x3bb63c['mailAccount']['id'],_0x3bb63c[_0x38b5b1('0xd67')]={'fields':_0x5b16b8()},_0x135462();}function _0x135462(){var _0x12ed3b=_0x1e685a;return _0xbac973[_0x12ed3b('0x38f')][_0x12ed3b('0x2122')]()[_0x12ed3b('0x1dc2')][_0x12ed3b('0xaa5')](function(_0x190a7a){var _0x4f7cbb=_0x12ed3b;_0x3bb63c[_0x4f7cbb('0x523')]=_0x190a7a||{'count':0x0,'rows':[]};})['then'](function(){var _0x1c7c70=_0x12ed3b;return _0xbac973['mailSubstatus']['get']({'nolimit':!![]})['$promise'][_0x1c7c70('0xaa5')](function(_0x50244d){var _0x48ab86=_0x1c7c70;_0x3bb63c[_0x48ab86('0x68')]=_0x50244d||{'count':0x0,'rows':[]};});})['then'](function(){var _0x1a51d2=_0x12ed3b;_0x3bb63c[_0x1a51d2('0x168c')]=_0x4a687d();});}function _0x4a687d(){var _0xc5b3fa=_0x1e685a;return[{'name':_0xc5b3fa('0x12f1'),'key':_0xc5b3fa('0x24a1'),'type':_0xc5b3fa('0xb87'),'label':_0xc5b3fa('0xf3d')},{'name':'Messages','key':_0xc5b3fa('0x7b7'),'type':_0xc5b3fa('0xbff'),'label':_0xc5b3fa('0x1da2'),'customOptions':[{'value':0x0,'translate':_0xc5b3fa('0x320')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0xc5b3fa('0x20c4')}]},{'name':_0xc5b3fa('0x26ae'),'key':_0xc5b3fa('0x1cbd'),'type':'select','label':_0xc5b3fa('0x617'),'customOptions':[{'value':0x0,'translate':_0xc5b3fa('0x166e')},{'value':0x1,'translate':_0xc5b3fa('0x73b')},{'value':null,'translate':_0xc5b3fa('0x20c4')}]},{'name':'Substatus','key':_0xc5b3fa('0x74e'),'type':_0xc5b3fa('0xbff'),'label':_0xc5b3fa('0x1fb6'),'options':_0x3bb63c[_0xc5b3fa('0x68')][_0xc5b3fa('0x580')],'customOptions':[{'value':_0xc5b3fa('0x1ed9'),'translate':_0xc5b3fa('0x1bf4')},{'value':undefined,'translate':_0xc5b3fa('0x20c4')}],'ngValue':_0xc5b3fa('0x25d6'),'ngIf':'closed\x20===\x200'},{'name':_0xc5b3fa('0x521'),'key':_0xc5b3fa('0x1037'),'type':_0xc5b3fa('0xbff'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0xc5b3fa('0x1ed9'),'translate':_0xc5b3fa('0x1a1c')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0xc5b3fa('0x4e7'),'key':_0xc5b3fa('0x38f'),'type':'multiselect','label':_0xc5b3fa('0x6a6'),'options':_0x3bb63c[_0xc5b3fa('0x523')][_0xc5b3fa('0x580')],'placeholder':_0xc5b3fa('0x1161')}];}function _0x5b16b8(){var _0x140280=_0x1e685a;return[{'name':'Id','column':'id','type':_0x140280('0x219a')},{'name':'Contact','column':_0x140280('0x1dc'),'type':'autocomplete','options':{'searchFields':[_0x140280('0x24c1'),_0x140280('0x351'),_0x140280('0x1f69')],'route':{'model':_0x140280('0xdbd'),'action':'get','params':{'fields':_0x140280('0x14ba'),'Contact':_0x140280('0x1bfb'),'nolimit':!![]}},'extraOperators':[_0x140280('0x2082')],'excludedOperators':[_0x140280('0x13f7')]}},{'name':'Subject','column':_0x140280('0x2101'),'type':_0x140280('0xb37'),'options':{'excludedOperators':[_0x140280('0x221d'),'$ne']}},{'name':'Body','column':_0x140280('0xc2'),'type':_0x140280('0xb37'),'options':{'excludedOperators':['$eq','$ne']}},{'name':'Status','column':_0x140280('0x1cbd'),'type':'select','values':[{'id':0x0,'translate':_0x140280('0x166e')},{'id':0x1,'translate':_0x140280('0x73b')}],'options':{'excludedOperators':[_0x140280('0x13f7')]}},{'name':_0x140280('0x511'),'column':_0x140280('0x74e'),'type':'multiselect','options':{'field':_0x140280('0x25d6'),'route':{'model':_0x140280('0x13b1'),'action':_0x140280('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x140280('0x930')]}},{'name':_0x140280('0x521'),'column':_0x140280('0x21b9'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x140280('0x272b'),'action':_0x140280('0x2122'),'params':{'role':_0x140280('0xeff'),'fields':_0x140280('0x25ff'),'nolimit':!![]}},'searchFields':['fullname',_0x140280('0x25d6')],'extraOperators':[_0x140280('0x2082')],'excludedOperators':[_0x140280('0x13f7')]}},{'name':'Tags','column':_0x140280('0x4e7'),'type':_0x140280('0x2468'),'options':{'route':{'model':'tag','action':_0x140280('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x140280('0x12f1'),'column':_0x140280('0x24a1'),'type':'date','options':{'excludedOperators':[_0x140280('0x13f7')]}},{'name':_0x140280('0x120b'),'column':_0x140280('0x1551'),'type':_0x140280('0xbff'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x140280('0x320')}],'options':{'excludedOperators':[_0x140280('0x13f7')]}}];}function _0x427e52(){var _0xcfc1c9=_0x1e685a;_0x1e06df[_0xcfc1c9('0x1e6d')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0xcfc1c9('0x1aa8')](_0x1e0e0a[_0xcfc1c9('0x54c')]),'clickOutsideToClose':![],'locals':{'fields':_0x3bb63c['advancedSearch'][_0xcfc1c9('0x13a')],'color':undefined,'storagePath':_0xcfc1c9('0x2463')},'fullscreen':!![]})[_0xcfc1c9('0xaa5')](function(_0x5a3b1c){var _0x380ec2=_0xcfc1c9;_0x3bb63c[_0x380ec2('0x582')][_0x380ec2('0x1785')]=_0x5a3b1c===![]?undefined:_0x5a3b1c;if(_0x3bb63c[_0x380ec2('0x582')][_0x380ec2('0x1785')])_0x3bb63c[_0x380ec2('0x582')][_0x380ec2('0x1785')]+=_0x380ec2('0x175e')+_0x3bb63c['mailAccount']['id']+']',_0xc4ab74();else _0x5a3b1c===![]&&_0xc4ab74();})[_0xcfc1c9('0x253d')](function(_0x2088d8){var _0x2b3d68=_0xcfc1c9;_0x38e5c7[_0x2b3d68('0x187f')]({'title':_0x2b3d68('0x208b'),'msg':_0x2088d8['data']?JSON[_0x2b3d68('0xa48')](_0x2088d8[_0x2b3d68('0x10fd')][_0x2b3d68('0x1402')]):_0x2088d8[_0x2b3d68('0x684')]()});});}function _0x5ebcea(_0x448ac6,_0x393b55,_0x335abf){var _0x166f45=_0x1e685a;return _0xbac973[_0x166f45('0x1117')]['download']({'id':_0x448ac6['id'],'exists':!![],'attachments':_0x335abf})['$promise']['then'](function(_0x2e249e){var _0x3790c9=_0x166f45,_0x1a2bf7=[_0x2e249e['buffer']],_0x1309e4='interaction'+_0x448ac6['id'],_0xab1b75=new Blob(_0x1a2bf7,{'type':_0x2e249e[_0x3790c9('0x6c8')]});_0x1309e4='mail-interaction'+_0x448ac6['id']+_0x3790c9('0x966');var _0x13df19=window[_0x3790c9('0x12aa')][_0x3790c9('0x531')]('a');_0x13df19[_0x3790c9('0x107b')]('href',URL['createObjectURL'](_0xab1b75)),_0x13df19['setAttribute'](_0x3790c9('0x1cf9'),_0x1309e4),document['body'][_0x3790c9('0x1315')](_0x13df19),_0x13df19['click']();})[_0x166f45('0x253d')](function(_0x2259fe){var _0x1a320f=_0x166f45;if(_0x2259fe['data']&&_0x2259fe[_0x1a320f('0x10fd')][_0x1a320f('0x4c6')]&&_0x2259fe[_0x1a320f('0x10fd')][_0x1a320f('0x4c6')]['length'])for(var _0x409483=0x0;_0x409483<_0x2259fe['data'][_0x1a320f('0x4c6')]['length'];_0x409483+=0x1){_0x38e5c7[_0x1a320f('0x187f')]({'title':_0x2259fe['data']['errors'][_0x409483]['type'],'msg':_0x2259fe[_0x1a320f('0x10fd')][_0x1a320f('0x4c6')][_0x409483][_0x1a320f('0x1402')]});}else _0x38e5c7[_0x1a320f('0x187f')]({'title':_0x2259fe[_0x1a320f('0x2fa')]?_0x1a320f('0x16c2')+_0x2259fe[_0x1a320f('0x2fa')]+_0x1a320f('0x169e')+_0x2259fe[_0x1a320f('0x24df')]:_0x1a320f('0x27a8'),'msg':_0x2259fe['data']?JSON['stringify'](_0x2259fe['data']['message']):_0x2259fe[_0x1a320f('0x684')]()});});}function _0x3560dc(_0x526912,_0x283444){var _0x48b37f=_0x1e685a,_0x18e2f7=_0x1e06df[_0x48b37f('0x281e')]()[_0x48b37f('0x110a')](_0x48b37f('0x625'))[_0x48b37f('0x102e')](_0x48b37f('0x389')+(_0x526912[_0x48b37f('0x25d6')]||_0x526912['id']&&_0x51538b()[_0x48b37f('0x1791')](_0x48b37f('0x11a4'))+_0x526912['id']||'interaction')+_0x48b37f('0x697')+'\x20will\x20be\x20deleted.')[_0x48b37f('0x5b5')](_0x48b37f('0x22ae'))[_0x48b37f('0x116d')](_0x283444)['ok']('OK')[_0x48b37f('0x2030')](_0x48b37f('0x2410'));_0x1e06df[_0x48b37f('0x1e6d')](_0x18e2f7)['then'](function(){_0x586503(_0x526912);},function(){var _0x10bb69=_0x48b37f;console[_0x10bb69('0x18d5')](_0x10bb69('0x2410'));});}function _0x456ae1(_0x13fad0){var _0x2bf3ed=_0x1e685a;_0x3bb63c['mailAccountInteractions']=_0x13fad0||{'count':0x0,'rows':[]};for(var _0x5a8694=0x0;_0x5a8694<_0x3bb63c[_0x2bf3ed('0x82e')]['rows'][_0x2bf3ed('0x2587')];_0x5a8694+=0x1){var _0x5ea7db=_0x3bb63c[_0x2bf3ed('0x82e')][_0x2bf3ed('0x580')][_0x5a8694];_0x4b49d5(_0x5ea7db),_0x5ea7db['Owner']['name']=_0x62e735(_0x5ea7db);}}function _0xc4ab74(){var _0x45f0cf=_0x1e685a;_0x3bb63c['query']['offset']=(_0x3bb63c['query'][_0x45f0cf('0x41')]-0x1)*_0x3bb63c[_0x45f0cf('0x582')]['limit'],_0x3bb63c['promise']=_0xbac973['mailInteraction']['get'](_0x3bb63c[_0x45f0cf('0x582')],_0x456ae1)['$promise'];}function _0x28acf2(_0x27d108,_0x26bbe5){var _0x2f7762=_0x1e685a;_0x1e06df[_0x2f7762('0x1e6d')]({'controller':_0x2f7762('0x1fdf'),'controllerAs':'vm','templateUrl':_0x451de2,'parent':angular[_0x2f7762('0x1aa8')](_0x1e0e0a['body']),'targetEvent':_0x27d108,'clickOutsideToClose':!![],'onShowing':function _0x28152e(_0x402c86){var _0xecfd20=_0x2f7762;_0x402c86['vm'][_0xecfd20('0x2e')]({'id':0x1,'channel':_0xecfd20('0x14c5'),'interaction':_0x26bbe5,'spy':!![]},_0x3ade92[_0xecfd20('0x24a3')]['vm']['setting']);}});}function _0x586503(_0x31bb1a){var _0x5b7b6a=_0x1e685a;_0xbac973[_0x5b7b6a('0x1117')]['delete']({'id':_0x31bb1a['id']})['$promise'][_0x5b7b6a('0xaa5')](function(){var _0x48b135=_0x5b7b6a;_0x51538b()[_0x48b135('0xf6d')](_0x3bb63c[_0x48b135('0x82e')]['rows'],{'id':_0x31bb1a['id']}),_0x3bb63c[_0x48b135('0x82e')][_0x48b135('0xd15')]-=0x1,!_0x3bb63c[_0x48b135('0x82e')]['rows']['length']&&_0xc4ab74(),_0x38e5c7['success']({'title':_0x48b135('0xd35'),'msg':_0x31bb1a[_0x48b135('0x25d6')]?_0x31bb1a[_0x48b135('0x25d6')]+_0x48b135('0xcd9'):''});})[_0x5b7b6a('0x253d')](function(_0x46e862){var _0x597e1b=_0x5b7b6a;if(_0x46e862[_0x597e1b('0x10fd')]&&_0x46e862[_0x597e1b('0x10fd')][_0x597e1b('0x4c6')]&&_0x46e862['data'][_0x597e1b('0x4c6')][_0x597e1b('0x2587')]){_0x3bb63c['errors']=_0x46e862[_0x597e1b('0x10fd')][_0x597e1b('0x4c6')]||[{'message':_0x46e862[_0x597e1b('0x684')](),'type':_0x597e1b('0x64b')}];for(var _0x1b96c0=0x0;_0x1b96c0<_0x46e862[_0x597e1b('0x10fd')]['errors'][_0x597e1b('0x2587')];_0x1b96c0++){_0x38e5c7['error']({'title':_0x46e862[_0x597e1b('0x10fd')][_0x597e1b('0x4c6')][_0x1b96c0][_0x597e1b('0x6c8')],'msg':_0x46e862[_0x597e1b('0x10fd')]['errors'][_0x1b96c0][_0x597e1b('0x1402')]});}}else _0x38e5c7[_0x597e1b('0x187f')]({'title':_0x46e862[_0x597e1b('0x2fa')]?_0x597e1b('0x16c2')+_0x46e862['status']+_0x597e1b('0x169e')+_0x46e862[_0x597e1b('0x24df')]:'SYSTEM:GETmailAccount','msg':_0x46e862[_0x597e1b('0x10fd')]?JSON[_0x597e1b('0xa48')](_0x46e862[_0x597e1b('0x10fd')][_0x597e1b('0x1402')]):_0x46e862['message']||_0x46e862['toString']()});});}function _0x2999f1(){var _0x39f26a=_0x1e685a,_0x42afbc=angular['copy'](_0x3bb63c[_0x39f26a('0x1fb4')]);return _0x3bb63c[_0x39f26a('0x1fb4')]=[],_0x42afbc;}function _0x5ee220(_0x360749){var _0x4c8796=_0x1e685a,_0x4c9eae=_0x1e06df['confirm']()['title'](_0x4c8796('0x8e7'))[_0x4c8796('0x102e')](''+_0x3bb63c[_0x4c8796('0x1fb4')]['length']+_0x4c8796('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4c8796('0x1d8c'))[_0x4c8796('0x116d')](_0x360749)['ok']('OK')[_0x4c8796('0x2030')]('CANCEL');_0x1e06df[_0x4c8796('0x1e6d')](_0x4c9eae)[_0x4c8796('0xaa5')](function(){var _0x26ff60=_0x4c8796;_0x3bb63c[_0x26ff60('0x1fb4')][_0x26ff60('0x15b5')](function(_0x58e711){_0x586503(_0x58e711);}),_0x3bb63c[_0x26ff60('0x1fb4')]=[];});}function _0x4b49d5(_0x38276f){var _0x4f821f=_0x1e685a;if(!_0x51538b()[_0x4f821f('0x116b')](_0x38276f['to'])&&!_0x51538b()[_0x4f821f('0x13d6')](_0x38276f['to'],_0x3bb63c['mailAccount']['email']))_0x38276f[_0x4f821f('0x4e0')]=_0x38276f['to'][_0x4f821f('0x1a39')]('\x20<')[0x0],_0x38276f[_0x4f821f('0x1420')]=_0x38276f['to'][_0x4f821f('0x1a39')]('<')[_0x4f821f('0x21b')]()['split']('>')[0x0];else _0x38276f[_0x4f821f('0x1dc')]?(_0x38276f[_0x4f821f('0x4e0')]=(_0x38276f['Contact']['firstName']||'')+'\x20'+(_0x38276f['Contact'][_0x4f821f('0x351')]||''),_0x38276f[_0x4f821f('0x1420')]=_0x38276f[_0x4f821f('0x1dc')][_0x4f821f('0x1f69')]||''):_0x38276f[_0x4f821f('0x4e0')]=_0x7bc6a3[_0x4f821f('0x213f')](_0x4f821f('0x243f'));}function _0x62e735(_0x167a30){var _0x1df058=_0x1e685a;if(_0x167a30[_0x1df058('0x1037')])return _0x167a30['UserId']===_0x3bb63c['currentUser']['id']?_0x7bc6a3[_0x1df058('0x213f')]('DASHBOARDS.ME'):_0x167a30['Owner'][_0x1df058('0x18e5')]+'\x20<'+_0x167a30['Owner'][_0x1df058('0x1b0d')]+'>';return _0x7bc6a3['instant']('DASHBOARDS.NOT_ASSIGNED');}var _0x4ed586=!![],_0x1bf0ac=0x1;_0x3ade92[_0x1e685a('0x1ccf')]('vm_dc.query.filter',function(_0x33d540,_0x4118fc){var _0xf1d775=_0x1e685a;_0x4ed586?_0x3202f6(function(){_0x4ed586=![];}):(!_0x4118fc&&(_0x1bf0ac=_0x3bb63c['query']['page']),_0x33d540!==_0x4118fc&&(_0x3bb63c[_0xf1d775('0x582')][_0xf1d775('0x41')]=0x1),!_0x33d540&&(_0x3bb63c[_0xf1d775('0x582')][_0xf1d775('0x41')]=_0x1bf0ac),_0xc4ab74());});}const _0x165530=_0x49a763,_0x402385=_0x4fb511['p']+_0x1a8446('0x1d73');_0x3c9980['$inject']=[_0x1a8446('0x95f'),'$scope',_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x3c9980(_0x1c9c3f,_0x3c71f9,_0x2a7849,_0xcb8765,_0x47f27c,_0x2f5a95,_0x49615e,_0x3d49dc,_0x532c91,_0x2f305c,_0x289cfc){var _0x2f9127=_0x1a8446,_0x4aa69e=this;_0x4aa69e[_0x2f9127('0x7fc')]=_0x289cfc['getCurrentUser'](),_0x4aa69e[_0x2f9127('0xb86')]={},_0x4aa69e[_0x2f9127('0x1988')]={'count':0x0,'rows':[]},_0x4aa69e[_0x2f9127('0x1bc8')]=[],_0x4aa69e['crudPermissions'],_0x4aa69e['query']={'fields':_0x2f9127('0x22e7'),'limit':0xa,'page':0x1},_0x4aa69e[_0x2f9127('0x2e')]=_0x56f956,_0x4aa69e[_0x2f9127('0x1416')]=_0x11266d,_0x4aa69e[_0x2f9127('0xe10')]=_0x5f121a,_0x4aa69e[_0x2f9127('0x108e')]=_0x44a590,_0x4aa69e['createOrEditMailAccountMailCannedAnswer']=_0xe830e8,_0x4aa69e[_0x2f9127('0x1221')]=_0x9dbd85,_0x4aa69e[_0x2f9127('0x54')]=_0x156e54,_0x4aa69e[_0x2f9127('0x3d7')]=_0x5e17f4;function _0x56f956(_0x447c51,_0xebefe1){var _0x4d2aa7=_0x2f9127;_0x4aa69e[_0x4d2aa7('0xb86')]=_0x447c51,_0x4aa69e[_0x4d2aa7('0xada')]=typeof _0xebefe1!==_0x4d2aa7('0x1574')?_0xebefe1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4aa69e[_0x4d2aa7('0x582')][_0x4d2aa7('0x2307')]=_0x4aa69e[_0x4d2aa7('0xb86')]['id'],_0x4aa69e['query']['id']=_0x4aa69e[_0x4d2aa7('0xb86')]['id'],_0x44a590();}function _0x11266d(_0x22ef9a,_0x5cfe3d){var _0x588165=_0x2f9127,_0x2057c4=_0x49615e['confirm']()[_0x588165('0x110a')](_0x588165('0x125b'))[_0x588165('0x102e')](_0x588165('0x389')+(_0x22ef9a[_0x588165('0x25d6')]||_0x22ef9a['id']&&_0x51538b()[_0x588165('0x1791')](_0x588165('0x1d2a'))+_0x22ef9a['id']||'mailCannedAnswer')+_0x588165('0x697')+'\x20will\x20be\x20deleted.')[_0x588165('0x5b5')](_0x588165('0x226c'))[_0x588165('0x116d')](_0x5cfe3d)['ok']('OK')[_0x588165('0x2030')](_0x588165('0x2410'));_0x49615e[_0x588165('0x1e6d')](_0x2057c4)['then'](function(){_0x156e54(_0x22ef9a);},function(){var _0x21d459=_0x588165;console[_0x21d459('0x18d5')](_0x21d459('0x2410'));});}function _0x5f121a(_0x3c7e95){var _0x4736ae=_0x2f9127;_0x4aa69e[_0x4736ae('0x1988')]=_0x3c7e95||{'count':0x0,'rows':[]};}function _0x44a590(){var _0x54cf83=_0x2f9127;_0x4aa69e['query'][_0x54cf83('0x8b1')]=(_0x4aa69e[_0x54cf83('0x582')]['page']-0x1)*_0x4aa69e[_0x54cf83('0x582')]['limit'],_0x4aa69e[_0x54cf83('0x159a')]=_0x2f305c['mailAccount']['getAnswers'](_0x4aa69e[_0x54cf83('0x582')],_0x5f121a)[_0x54cf83('0x1dc2')];}function _0xe830e8(_0xb6086f,_0x1ee55e){var _0x28614e=_0x2f9127;_0x49615e[_0x28614e('0x1e6d')]({'controller':_0x28614e('0x6bd'),'controllerAs':'vm','templateUrl':_0x402385,'parent':angular['element'](_0x3d49dc[_0x28614e('0x54c')]),'targetEvent':_0xb6086f,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x4aa69e[_0x28614e('0xb86')],'mailCannedAnswer':_0x1ee55e,'mailCannedAnswers':_0x4aa69e[_0x28614e('0x1988')][_0x28614e('0x580')],'license':null,'setting':null,'crudPermissions':_0x4aa69e[_0x28614e('0xada')]}});}function _0x156e54(_0x2b8af2){var _0x1c2cf5=_0x2f9127;_0x2f305c['cannedAnswer'][_0x1c2cf5('0x926')]({'id':_0x2b8af2['id']})[_0x1c2cf5('0x1dc2')]['then'](function(){var _0x28dd36=_0x1c2cf5;_0x51538b()['remove'](_0x4aa69e[_0x28dd36('0x1988')][_0x28dd36('0x580')],{'id':_0x2b8af2['id']}),_0x4aa69e[_0x28dd36('0x1988')][_0x28dd36('0xd15')]-=0x1,!_0x4aa69e[_0x28dd36('0x1988')][_0x28dd36('0x580')][_0x28dd36('0x2587')]&&_0x44a590(),_0x532c91[_0x28dd36('0xe10')]({'title':'MailCannedAnswer\x20deleted!','msg':_0x2b8af2[_0x28dd36('0x25d6')]?_0x2b8af2[_0x28dd36('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x1c2cf5('0x253d')](function(_0x16d5e9){var _0x4cdd60=_0x1c2cf5;if(_0x16d5e9['data']&&_0x16d5e9[_0x4cdd60('0x10fd')][_0x4cdd60('0x4c6')]&&_0x16d5e9[_0x4cdd60('0x10fd')][_0x4cdd60('0x4c6')]['length']){_0x4aa69e[_0x4cdd60('0x4c6')]=_0x16d5e9[_0x4cdd60('0x10fd')][_0x4cdd60('0x4c6')]||[{'message':_0x16d5e9[_0x4cdd60('0x684')](),'type':_0x4cdd60('0x64b')}];for(var _0xb808b7=0x0;_0xb808b7<_0x16d5e9[_0x4cdd60('0x10fd')][_0x4cdd60('0x4c6')]['length'];_0xb808b7++){_0x532c91['error']({'title':_0x16d5e9[_0x4cdd60('0x10fd')][_0x4cdd60('0x4c6')][_0xb808b7][_0x4cdd60('0x6c8')],'msg':_0x16d5e9[_0x4cdd60('0x10fd')]['errors'][_0xb808b7][_0x4cdd60('0x1402')]});}}else _0x532c91[_0x4cdd60('0x187f')]({'title':_0x16d5e9['status']?_0x4cdd60('0x16c2')+_0x16d5e9['status']+_0x4cdd60('0x169e')+_0x16d5e9[_0x4cdd60('0x24df')]:_0x4cdd60('0x64b'),'msg':_0x16d5e9[_0x4cdd60('0x10fd')]?JSON[_0x4cdd60('0xa48')](_0x16d5e9['data'][_0x4cdd60('0x1402')]):_0x16d5e9[_0x4cdd60('0x1402')]||_0x16d5e9[_0x4cdd60('0x684')]()});});}function _0x9dbd85(){var _0x2b6958=_0x2f9127,_0x3f98a6=angular[_0x2b6958('0x20a')](_0x4aa69e['selectedMailAccountMailCannedAnswers']);return _0x4aa69e[_0x2b6958('0x1bc8')]=[],_0x3f98a6;}function _0x5e17f4(_0x2069e6){var _0x49d341=_0x2f9127,_0xc4ca67=_0x49615e[_0x49d341('0x281e')]()[_0x49d341('0x110a')](_0x49d341('0x1275'))[_0x49d341('0x102e')](_0x49d341('0x389')+_0x4aa69e[_0x49d341('0x1bc8')][_0x49d341('0x2587')]+_0x49d341('0x1443')+_0x49d341('0x210d'))['ariaLabel']('delete\x20mailCannedAnswers')[_0x49d341('0x116d')](_0x2069e6)['ok']('OK')['cancel'](_0x49d341('0x2410'));_0x49615e[_0x49d341('0x1e6d')](_0xc4ca67)['then'](function(){var _0x20f020=_0x49d341;_0x4aa69e[_0x20f020('0x1bc8')][_0x20f020('0x15b5')](function(_0x5b2652){_0x156e54(_0x5b2652);}),_0x4aa69e[_0x20f020('0x1bc8')]=[];});}var _0x536ac3=!![],_0x450010=0x1;_0x3c71f9[_0x2f9127('0x1ccf')](_0x2f9127('0x74c'),function(_0x3f2c55,_0x216152){var _0x2a2d3e=_0x2f9127;_0x536ac3?_0x2f5a95(function(){_0x536ac3=![];}):(!_0x216152&&(_0x450010=_0x4aa69e[_0x2a2d3e('0x582')][_0x2a2d3e('0x41')]),_0x3f2c55!==_0x216152&&(_0x4aa69e[_0x2a2d3e('0x582')]['page']=0x1),!_0x3f2c55&&(_0x4aa69e[_0x2a2d3e('0x582')][_0x2a2d3e('0x41')]=_0x450010),_0x44a590());});}const _0x3dbc6b=_0x3c9980;_0x276952['$inject']=['$scope',_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty',_0x1a8446('0x138a'),_0x1a8446('0x1b9e'),_0x1a8446('0x157'),'Auth',_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x276952(_0x41b585,_0x565e8f,_0x2048ba,_0x4c526b,_0x5262fc,_0x1dc9dd,_0xffeeba,_0x1d63f7,_0x4c5e40,_0xd4c7e0,_0x2484a1,_0x28061c,_0x291149,_0x487aab){var _0x259c9c=_0x1a8446,_0xd3110=this;_0xd3110[_0x259c9c('0x7fc')]=_0x2484a1['getCurrentUser'](),_0xd3110[_0x259c9c('0x4c6')]=[],_0xd3110[_0x259c9c('0x143f')]=_0x291149,_0xd3110[_0x259c9c('0x1202')]=_0x28061c,_0xd3110['crudPermissions']=_0x487aab,_0xd3110[_0x259c9c('0x9f0')]={},_0xd3110[_0x259c9c('0x1d53')]=_0xd3110[_0x259c9c('0x143f')]&&_0xd3110['setting'][_0x259c9c('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xd3110['title']=_0x259c9c('0xeea'),_0xd3110[_0x259c9c('0x1b9e')]=angular['copy'](_0x4c5e40),_0xd3110[_0x259c9c('0x138a')]=_0x1d63f7,_0xd3110[_0x259c9c('0x26f5')]=![];!_0xd3110[_0x259c9c('0x1b9e')]&&(_0xd3110[_0x259c9c('0x1b9e')]={},_0xd3110['title']=_0x259c9c('0x6c0'),_0xd3110[_0x259c9c('0x26f5')]=!![]);_0x565e8f[_0x259c9c('0x25cf')]['id']&&(_0xd3110[_0x259c9c('0x1b9e')][_0x259c9c('0x2307')]=_0x565e8f[_0x259c9c('0x25cf')]['id']);_0xd3110[_0x259c9c('0x1ba9')]=_0x4ef1be,_0xd3110['saveMailCannedAnswer']=_0x2b907a,_0xd3110[_0x259c9c('0x250e')]=_0x37eeaf,_0xd3110[_0x259c9c('0xc09')]=_0x4f2518,_0xd3110['closeDialog']=_0x2ef783;function _0x4ef1be(){var _0xe1fb69=_0x259c9c;_0xd3110[_0xe1fb69('0x4c6')]=[],_0xd4c7e0[_0xe1fb69('0x1a53')]['save'](_0xd3110[_0xe1fb69('0x1b9e')])[_0xe1fb69('0x1dc2')][_0xe1fb69('0xaa5')](function(_0x1e7c08){var _0x5220ed=_0xe1fb69;_0xd3110[_0x5220ed('0x138a')]['unshift'](_0x1e7c08[_0x5220ed('0x256a')]()),_0xffeeba[_0x5220ed('0xe10')]({'title':_0x5220ed('0x281c'),'msg':_0xd3110['mailCannedAnswer'][_0x5220ed('0x25d6')]?_0xd3110['mailCannedAnswer']['name']+_0x5220ed('0xdca'):''}),_0x2ef783(_0x1e7c08);})[_0xe1fb69('0x253d')](function(_0x2b4d01){var _0x4d71e0=_0xe1fb69;if(_0x2b4d01['data']&&_0x2b4d01['data']['errors']&&_0x2b4d01[_0x4d71e0('0x10fd')][_0x4d71e0('0x4c6')][_0x4d71e0('0x2587')]){_0xd3110[_0x4d71e0('0x4c6')]=_0x2b4d01[_0x4d71e0('0x10fd')][_0x4d71e0('0x4c6')]||[{'message':_0x2b4d01[_0x4d71e0('0x684')](),'type':_0x4d71e0('0x262b')}];for(var _0x4eb866=0x0;_0x4eb866<_0x2b4d01[_0x4d71e0('0x10fd')][_0x4d71e0('0x4c6')][_0x4d71e0('0x2587')];_0x4eb866+=0x1){_0xffeeba[_0x4d71e0('0x187f')]({'title':_0x2b4d01[_0x4d71e0('0x10fd')][_0x4d71e0('0x4c6')][_0x4eb866][_0x4d71e0('0x6c8')],'msg':_0x2b4d01[_0x4d71e0('0x10fd')][_0x4d71e0('0x4c6')][_0x4eb866][_0x4d71e0('0x1402')]});}}else _0xffeeba[_0x4d71e0('0x187f')]({'title':_0x2b4d01['status']?_0x4d71e0('0x16c2')+_0x2b4d01[_0x4d71e0('0x2fa')]+'\x20-\x20'+_0x2b4d01[_0x4d71e0('0x24df')]:_0x4d71e0('0x262b'),'msg':_0x2b4d01[_0x4d71e0('0x10fd')]?JSON[_0x4d71e0('0xa48')](_0x2b4d01[_0x4d71e0('0x10fd')][_0x4d71e0('0x1402')]):_0x2b4d01[_0x4d71e0('0x684')]()});});}function _0x2b907a(){var _0x10be1a=_0x259c9c;_0xd3110[_0x10be1a('0x4c6')]=[],_0xd4c7e0[_0x10be1a('0x1a53')][_0x10be1a('0x264e')]({'id':_0xd3110[_0x10be1a('0x1b9e')]['id']},_0xd3110[_0x10be1a('0x1b9e')])['$promise'][_0x10be1a('0xaa5')](function(_0x3e8586){var _0x328e94=_0x10be1a,_0x220365=_0x51538b()['find'](_0xd3110['mailCannedAnswers'],{'id':_0x3e8586['id']});_0x220365&&_0x51538b()[_0x328e94('0x283c')](_0x220365,_0x51538b()[_0x328e94('0x104e')](_0x3e8586[_0x328e94('0x256a')](),_0x51538b()[_0x328e94('0x9f2')](_0x220365))),_0xffeeba[_0x328e94('0xe10')]({'title':_0x328e94('0x19'),'msg':_0xd3110[_0x328e94('0x1b9e')][_0x328e94('0x25d6')]?_0xd3110[_0x328e94('0x1b9e')]['name']+'\x20has\x20been\x20saved!':''}),_0x2ef783(_0x3e8586);})['catch'](function(_0x19cdb6){var _0x15c052=_0x10be1a;if(_0x19cdb6[_0x15c052('0x10fd')]&&_0x19cdb6[_0x15c052('0x10fd')][_0x15c052('0x4c6')]&&_0x19cdb6[_0x15c052('0x10fd')]['errors']['length']){_0xd3110['errors']=_0x19cdb6[_0x15c052('0x10fd')][_0x15c052('0x4c6')]||[{'message':_0x19cdb6['toString'](),'type':_0x15c052('0x583')}];for(var _0x57b4b8=0x0;_0x57b4b8<_0x19cdb6[_0x15c052('0x10fd')]['errors'][_0x15c052('0x2587')];_0x57b4b8++){_0xffeeba['error']({'title':_0x19cdb6['data']['errors'][_0x57b4b8][_0x15c052('0x6c8')],'msg':_0x19cdb6[_0x15c052('0x10fd')]['errors'][_0x57b4b8][_0x15c052('0x1402')]});}}else _0xffeeba[_0x15c052('0x187f')]({'title':_0x19cdb6[_0x15c052('0x2fa')]?_0x15c052('0x16c2')+_0x19cdb6['status']+_0x15c052('0x169e')+_0x19cdb6[_0x15c052('0x24df')]:_0x15c052('0x583'),'msg':_0x19cdb6[_0x15c052('0x10fd')]?JSON[_0x15c052('0xa48')](_0x19cdb6[_0x15c052('0x10fd')]['message']):_0x19cdb6[_0x15c052('0x684')]()});});}function _0x37eeaf(_0x53524c){var _0x9943ac=_0x259c9c;_0xd3110[_0x9943ac('0x4c6')]=[];var _0x3d818f=_0x4c526b[_0x9943ac('0x281e')]()[_0x9943ac('0x110a')]('Are\x20you\x20sure?')[_0x9943ac('0x15af')]('The\x20mailCannedAnswer\x20will\x20be\x20deleted.')[_0x9943ac('0x5b5')]('Delete\x20MailCannedAnswer')['ok'](_0x9943ac('0x1e76'))['cancel'](_0x9943ac('0x9c6'))['targetEvent'](_0x53524c);_0x4c526b[_0x9943ac('0x1e6d')](_0x3d818f)['then'](function(){var _0x3f513c=_0x9943ac;_0xd4c7e0['cannedAnswer'][_0x3f513c('0x926')]({'id':_0xd3110[_0x3f513c('0x1b9e')]['id']})[_0x3f513c('0x1dc2')][_0x3f513c('0xaa5')](function(){var _0x4e11a8=_0x3f513c;_0x51538b()[_0x4e11a8('0xf6d')](_0xd3110[_0x4e11a8('0x138a')],{'id':_0xd3110[_0x4e11a8('0x1b9e')]['id']}),_0xffeeba[_0x4e11a8('0xe10')]({'title':'MailCannedAnswer\x20properly\x20deleted!','msg':(_0xd3110[_0x4e11a8('0x1b9e')][_0x4e11a8('0x25d6')]||_0x4e11a8('0x1b9e'))+_0x4e11a8('0xcd9')}),_0x2ef783(_0xd3110['mailCannedAnswer']);})[_0x3f513c('0x253d')](function(_0x2c14fa){var _0x13bff4=_0x3f513c;if(_0x2c14fa[_0x13bff4('0x10fd')]&&_0x2c14fa[_0x13bff4('0x10fd')][_0x13bff4('0x4c6')]&&_0x2c14fa['data'][_0x13bff4('0x4c6')]['length']){_0xd3110[_0x13bff4('0x4c6')]=_0x2c14fa[_0x13bff4('0x10fd')]['errors']||[{'message':_0x2c14fa[_0x13bff4('0x684')](),'type':_0x13bff4('0xa2a')}];for(var _0x5894b0=0x0;_0x5894b0<_0x2c14fa['data'][_0x13bff4('0x4c6')][_0x13bff4('0x2587')];_0x5894b0++){_0xffeeba['error']({'title':_0x2c14fa[_0x13bff4('0x10fd')][_0x13bff4('0x4c6')][_0x5894b0][_0x13bff4('0x6c8')],'msg':_0x2c14fa['data'][_0x13bff4('0x4c6')][_0x5894b0][_0x13bff4('0x1402')]});}}else _0xffeeba[_0x13bff4('0x187f')]({'title':_0x2c14fa[_0x13bff4('0x2fa')]?_0x13bff4('0x16c2')+_0x2c14fa[_0x13bff4('0x2fa')]+_0x13bff4('0x169e')+_0x2c14fa[_0x13bff4('0x24df')]:_0x13bff4('0xa2a'),'msg':_0x2c14fa['data']?JSON['stringify'](_0x2c14fa[_0x13bff4('0x10fd')]['message']):_0x2c14fa[_0x13bff4('0x1402')]||_0x2c14fa['toString']()});});},function(){});}function _0x4f2518(_0x4db4fa){return _0x4db4fa===null?undefined:new Date(_0x4db4fa);}function _0x2ef783(_0x5af047){var _0xfb6eb3=_0x259c9c;_0x4c526b[_0xfb6eb3('0x1120')](_0x5af047);}}const _0x27250a=_0x276952;_0x16934a[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'api',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x16934a(_0x42a3cd,_0x13239c,_0x51c2a0,_0x11238f,_0x594cd0,_0x3f68a7,_0x42fb98,_0x69bf1d,_0x191198,_0x1fec24,_0x15358){var _0x23a94a=_0x1a8446,_0x5b18d8=this;_0x5b18d8['currentUser']=_0x15358[_0x23a94a('0xacc')](),_0x5b18d8['dispositions']={'count':0x0,'rows':[]},_0x5b18d8[_0x23a94a('0x3b5')]=[],_0x5b18d8[_0x23a94a('0xada')],_0x5b18d8['levels']={'first':'1st','second':'2nd','third':_0x23a94a('0x14f3')},_0x5b18d8[_0x23a94a('0x582')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x23a94a('0xd82'),'limit':0xa,'page':0x1},_0x5b18d8[_0x23a94a('0x2e')]=_0x1931a1,_0x5b18d8[_0x23a94a('0x1416')]=_0xe058f5,_0x5b18d8[_0x23a94a('0xe10')]=_0x4e16a5,_0x5b18d8[_0x23a94a('0x24b7')]=_0xb3eefa,_0x5b18d8['createOrEditDisposition']=_0x4ad267,_0x5b18d8[_0x23a94a('0xb52')]=_0x19e1b8,_0x5b18d8[_0x23a94a('0xae4')]=_0x204eeb,_0x5b18d8[_0x23a94a('0x1c3c')]=_0x59d593,_0x5b18d8[_0x23a94a('0x83f')]=_0x4387a1,_0x5b18d8[_0x23a94a('0x11a1')]=_0x328f1b;function _0x1931a1(_0x389564,_0x48e19f){var _0x3c257c=_0x23a94a;_0x5b18d8['mailAccount']=_0x389564||{},_0x5b18d8[_0x3c257c('0xada')]=typeof _0x48e19f!=='undefined'?_0x48e19f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5b18d8[_0x3c257c('0x582')][_0x3c257c('0x2307')]=_0x5b18d8[_0x3c257c('0xb86')]['id'],_0x5b18d8[_0x3c257c('0x582')]['id']=_0x5b18d8['mailAccount']['id'],_0xb3eefa();}function _0x4ad267(_0x5384ec,_0x5b7c2f){var _0x32756a=_0x23a94a;_0x594cd0[_0x32756a('0x1e6d')]({'controller':_0x32756a('0xccf'),'controllerAs':'vm','templateUrl':_0x56dea9,'parent':angular[_0x32756a('0x1aa8')](_0x3f68a7[_0x32756a('0x54c')]),'targetEvent':_0x5384ec,'clickOutsideToClose':!![],'locals':{'disposition':_0x5b7c2f,'dispositions':_0x5b18d8[_0x32756a('0xa9')]['rows'],'model':{'id':_0x5b18d8['mailAccount']['id'],'field':_0x32756a('0x2307')},'license':null,'setting':null,'crudPermissions':_0x5b18d8[_0x32756a('0xada')]}})[_0x32756a('0xaa5')](function(_0x186931){if(_0x186931)_0xb3eefa();});}function _0xe058f5(_0x3121be,_0x7be305){var _0x3111ac=_0x23a94a,_0x3fb9af=_0x51538b()[_0x3111ac('0x2c2')](_0x5b18d8['dispositions'][_0x3111ac('0x580')],[_0x3111ac('0x2733'),_0x3121be['id']]),_0x1653df=_0x594cd0[_0x3111ac('0x281e')]()[_0x3111ac('0x110a')](_0x69bf1d[_0x3111ac('0x213f')](_0x3111ac('0x2498')))['content'](_0x69bf1d['instant'](_0x3111ac('0xbdf')+(_0x3fb9af?_0x3111ac('0x1528'):_0x3111ac('0x20c8')),{'name':_0x3121be[_0x3111ac('0x25d6')]}))[_0x3111ac('0x5b5')](_0x3111ac('0x1493'))[_0x3111ac('0x116d')](_0x7be305)['ok']('OK')[_0x3111ac('0x2030')](_0x69bf1d[_0x3111ac('0x213f')](_0x3111ac('0x1dd8')));_0x594cd0[_0x3111ac('0x1e6d')](_0x1653df)[_0x3111ac('0xaa5')](function(){_0x19e1b8(_0x3121be);});}function _0x4e16a5(_0x459401){_0x5b18d8['dispositions']=_0x459401||{'count':0x0,'rows':[]};}function _0xb3eefa(){var _0x3218ea=_0x23a94a;_0x5b18d8['query'][_0x3218ea('0x8b1')]=(_0x5b18d8['query'][_0x3218ea('0x41')]-0x1)*_0x5b18d8[_0x3218ea('0x582')][_0x3218ea('0xf4d')],_0x5b18d8[_0x3218ea('0x159a')]=_0x191198[_0x3218ea('0xb86')]['getDispositions'](_0x5b18d8[_0x3218ea('0x582')],_0x4e16a5)[_0x3218ea('0x1dc2')];}function _0x19e1b8(_0x6e93da){var _0x2af626=_0x23a94a;_0x191198[_0x2af626('0x106e')][_0x2af626('0x926')]({'id':_0x6e93da['id']})[_0x2af626('0x1dc2')]['then'](function(){var _0x1acc3c=_0x2af626;_0xb3eefa(),_0x1fec24[_0x1acc3c('0xe10')]({'title':_0x69bf1d['instant'](_0x1acc3c('0x26dd'))});})['catch'](function(_0x20fe2e){var _0x4b0e51=_0x2af626;if(_0x20fe2e[_0x4b0e51('0x10fd')]&&_0x20fe2e['data']['errors']&&_0x20fe2e['data'][_0x4b0e51('0x4c6')][_0x4b0e51('0x2587')]){_0x5b18d8['errors']=_0x20fe2e[_0x4b0e51('0x10fd')][_0x4b0e51('0x4c6')]||[{'message':_0x20fe2e['toString'](),'type':'SYSTEM:DELETEdisposition'}];for(var _0x27f002=0x0;_0x27f002<_0x20fe2e[_0x4b0e51('0x10fd')][_0x4b0e51('0x4c6')]['length'];_0x27f002++){_0x1fec24['error']({'title':_0x20fe2e[_0x4b0e51('0x10fd')][_0x4b0e51('0x4c6')][_0x27f002][_0x4b0e51('0x6c8')],'msg':_0x20fe2e['data'][_0x4b0e51('0x4c6')][_0x27f002][_0x4b0e51('0x1402')]});}}else _0x1fec24['error']({'title':_0x20fe2e[_0x4b0e51('0x2fa')]?'API:'+_0x20fe2e[_0x4b0e51('0x2fa')]+'\x20-\x20'+_0x20fe2e[_0x4b0e51('0x24df')]:'SYSTEM:DELETEdisposition','msg':_0x20fe2e[_0x4b0e51('0x10fd')]?JSON[_0x4b0e51('0xa48')](_0x20fe2e['data'][_0x4b0e51('0x1402')]):_0x20fe2e[_0x4b0e51('0x1402')]||_0x20fe2e[_0x4b0e51('0x684')]()});});}function _0x204eeb(){var _0x48cf77=_0x23a94a,_0x424704=angular[_0x48cf77('0x20a')](_0x5b18d8['selectedDispositions']);return _0x5b18d8[_0x48cf77('0x3b5')]=[],_0x424704;}function _0x59d593(_0x42327b){var _0x1f9417=_0x23a94a,_0x2bcd18=_0x594cd0[_0x1f9417('0x281e')]()[_0x1f9417('0x110a')](_0x69bf1d['instant'](_0x1f9417('0x18f0')))['content'](_0x69bf1d[_0x1f9417('0x213f')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x5b18d8[_0x1f9417('0x3b5')][_0x1f9417('0x2587')]}))[_0x1f9417('0x5b5')](_0x1f9417('0x2803'))[_0x1f9417('0x116d')](_0x42327b)['ok']('OK')[_0x1f9417('0x2030')](_0x69bf1d[_0x1f9417('0x213f')](_0x1f9417('0x1dd8')));_0x594cd0[_0x1f9417('0x1e6d')](_0x2bcd18)[_0x1f9417('0xaa5')](function(){var _0x12725a=_0x1f9417;_0x5b18d8[_0x12725a('0x3b5')][_0x12725a('0x15b5')](function(_0x16c5e4){_0x19e1b8(_0x16c5e4);}),_0x5b18d8[_0x12725a('0x3b5')]=[];});}function _0x4387a1(){var _0x4721ac=_0x23a94a;_0x5b18d8[_0x4721ac('0x3b5')]=[];}function _0x328f1b(){var _0x5c7b8a=_0x23a94a;_0x5b18d8[_0x5c7b8a('0x3b5')]=_0x5b18d8[_0x5c7b8a('0xa9')][_0x5c7b8a('0x580')];}var _0xa7f6c2=!![],_0x17a5c9=0x1;_0x42a3cd[_0x23a94a('0x1ccf')](_0x23a94a('0x74c'),function(_0x2e797b,_0x2f318b){var _0x2b69fe=_0x23a94a;_0xa7f6c2?_0x42fb98(function(){_0xa7f6c2=![];}):(!_0x2f318b&&(_0x17a5c9=_0x5b18d8['query'][_0x2b69fe('0x41')]),_0x2e797b!==_0x2f318b&&(_0x5b18d8[_0x2b69fe('0x582')]['page']=0x1),!_0x2e797b&&(_0x5b18d8[_0x2b69fe('0x582')]['page']=_0x17a5c9),_0xb3eefa());});}const _0x4e823b=_0x16934a,_0x9df172=_0x4fb511['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0x16b072[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'mailAccount',_0x1a8446('0x1a50')];function _0x16b072(_0x4c1d2c,_0x5d91a2,_0x4c1b7c,_0x35396f,_0x322149,_0x2477e7,_0x8dad79,_0x321b6c,_0xdd18ba,_0x245d5c,_0x5e312f,_0x581c0a){var _0x4ea349=_0x1a8446,_0x4ec15e=this;_0x4ec15e[_0x4ea349('0x7fc')]=_0x245d5c['getCurrentUser'](),_0x4ec15e[_0x4ea349('0x1202')]=_0x2477e7,_0x4ec15e[_0x4ea349('0x143f')]=_0x8dad79,_0x4ec15e['passwordPattern']=_0x4ec15e[_0x4ea349('0x143f')][_0x4ea349('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4ec15e[_0x4ea349('0x18cc')]=_0x5d91a2['protocol']()+_0x4ea349('0x356')+_0x5d91a2[_0x4ea349('0x160c')](),_0x4ec15e[_0x4ea349('0xb86')]=_0x5e312f||_0x4c1d2c[_0x4ea349('0x25cf')]['mailAccount']||{},_0x4ec15e[_0x4ea349('0x1a50')]=_0x581c0a&&_0x581c0a['count']==0x1?_0x581c0a[_0x4ea349('0x580')][0x0]:null,_0x4ec15e[_0x4ea349('0xada')]=_0x245d5c[_0x4ea349('0xffd')](_0x4ec15e[_0x4ea349('0x1a50')]?_0x4ec15e['userProfileSection']['crudPermissions']:null),_0x4ec15e[_0x4ea349('0x9f0')]={},_0x4ec15e[_0x4ea349('0xe5c')]=_0x4c1d2c[_0x4ea349('0x25cf')]['tab']||0x0,_0x4ec15e['gotogoto']=_0x531c2b,_0x4ec15e[_0x4ea349('0x16a5')]=_0x204ee9,_0x4ec15e[_0x4ea349('0xc10')]=_0xdd18ba['info'],_0x4ec15e[_0x4ea349('0x11e3')]=_0x39c1ac,_0x4ec15e['saveMailAccount']=_0x34d888,_0x245d5c['hasRole']('admin')?_0x321b6c[_0x4ea349('0x26b4')][_0x4ea349('0x2122')]({'fields':'id,name','sort':'name'})[_0x4ea349('0x1dc2')][_0x4ea349('0xaa5')](function(_0x22b076){var _0xd631fc=_0x4ea349;_0x4ec15e[_0xd631fc('0x1126')]=_0x22b076[_0xd631fc('0x580')]||[];})[_0x4ea349('0x253d')](function(_0x91ecdd){var _0x36bfcb=_0x4ea349;_0xdd18ba[_0x36bfcb('0x187f')]({'title':_0x91ecdd[_0x36bfcb('0x2fa')]?_0x36bfcb('0x16c2')+_0x91ecdd['status']+_0x36bfcb('0x169e')+_0x91ecdd['statusText']:'SYSTEM:GET_LISTS','msg':_0x91ecdd['data']?JSON[_0x36bfcb('0xa48')](_0x91ecdd[_0x36bfcb('0x10fd')]):_0x91ecdd[_0x36bfcb('0x684')]()});}):_0x321b6c['cmList'][_0x4ea349('0x2122')]({'fields':_0x4ea349('0x17fe'),'sort':'name'})[_0x4ea349('0x1dc2')]['then'](function(_0x5d2943){var _0x2628d5=_0x4ea349;_0x4ec15e[_0x2628d5('0x1126')]=_0x5d2943[_0x2628d5('0x580')]||[];})[_0x4ea349('0xaa5')](function(){var _0x557ed2=_0x4ea349;return _0x321b6c['userProfileSection'][_0x557ed2('0x2122')]({'userProfileId':_0x4ec15e[_0x557ed2('0x7fc')][_0x557ed2('0x2168')],'sectionId':0x12d})[_0x557ed2('0x1dc2')];})[_0x4ea349('0xaa5')](function(_0x2ce58d){var _0x503741=_0x4ea349,_0x4de1fe=_0x2ce58d&&_0x2ce58d[_0x503741('0x580')]?_0x2ce58d[_0x503741('0x580')][0x0]:null;if(!_0x4de1fe){var _0x167d20=[],_0x468c98=null;_0x4ec15e[_0x503741('0xb86')]&&(_0x468c98=_0x51538b()[_0x503741('0xe9e')](_0x4ec15e[_0x503741('0x1126')],{'id':Number(_0x4ec15e['mailAccount'][_0x503741('0xee0')])}));for(var _0x1e6e05=0x0;_0x1e6e05<_0x4ec15e[_0x503741('0x1126')][_0x503741('0x2587')];_0x1e6e05++){_0x468c98&&_0x4ec15e[_0x503741('0x1126')][_0x1e6e05]['id']===_0x468c98['id']&&(_0x4ec15e['lists'][_0x1e6e05][_0x503741('0x12eb')]=![],_0x167d20[_0x503741('0x1599')](_0x4ec15e[_0x503741('0x1126')][_0x1e6e05]));}_0x4ec15e[_0x503741('0x1126')]=_0x167d20;}else{if(!_0x4de1fe[_0x503741('0x26cc')])return _0x321b6c['userProfileResource'][_0x503741('0x2122')]({'sectionId':_0x4de1fe['id']})[_0x503741('0x1dc2')]['then'](function(_0x1952a1){var _0x1d2d7e=_0x503741,_0x25ebd9=_0x51538b()[_0x1d2d7e('0x1246')](_0x1952a1['rows'],function(_0x5ade49){var _0x1065c8=_0x1d2d7e;return _0x51538b()['find'](_0x4ec15e[_0x1065c8('0x1126')],{'id':_0x5ade49['resourceId']});}),_0x5a5c4a=null;_0x4ec15e[_0x1d2d7e('0xb86')]&&(_0x5a5c4a=_0x51538b()[_0x1d2d7e('0xe9e')](_0x4ec15e[_0x1d2d7e('0x1126')],{'id':Number(_0x4ec15e[_0x1d2d7e('0xb86')][_0x1d2d7e('0xee0')])}));if(_0x5a5c4a&&!_0x51538b()[_0x1d2d7e('0x2c2')](_0x25ebd9,['id',_0x5a5c4a['id']])){var _0x4286a7=_0x51538b()[_0x1d2d7e('0xe9e')](_0x4ec15e[_0x1d2d7e('0x1126')],{'id':_0x5a5c4a['id']});_0x4286a7[_0x1d2d7e('0x12eb')]=![],_0x25ebd9[_0x1d2d7e('0x1599')](_0x4286a7);}_0x4ec15e[_0x1d2d7e('0x1126')]=_0x25ebd9;});}})[_0x4ea349('0x253d')](function(_0x5365a9){var _0x153118=_0x4ea349;_0xdd18ba[_0x153118('0x187f')]({'title':_0x5365a9[_0x153118('0x2fa')]?'API:'+_0x5365a9[_0x153118('0x2fa')]+'\x20-\x20'+_0x5365a9['statusText']:_0x153118('0x177f'),'msg':_0x5365a9[_0x153118('0x10fd')]?JSON['stringify'](_0x5365a9['data']):_0x5365a9[_0x153118('0x684')]()});}),_0x245d5c[_0x4ea349('0x26e8')]('admin')?_0x321b6c[_0x4ea349('0x167c')]['get']({'fields':_0x4ea349('0xb22'),'sort':_0x4ea349('0x25d6'),'nolimit':_0x4ea349('0x1c5c')})[_0x4ea349('0x1dc2')][_0x4ea349('0xaa5')](function(_0x42efcd){var _0x480e87=_0x4ea349;_0x4ec15e[_0x480e87('0x2457')]=_0x42efcd[_0x480e87('0x580')]||[];})[_0x4ea349('0x253d')](function(_0x2bfa56){var _0x54996e=_0x4ea349;_0xdd18ba[_0x54996e('0x187f')]({'title':_0x2bfa56['status']?_0x54996e('0x16c2')+_0x2bfa56[_0x54996e('0x2fa')]+'\x20-\x20'+_0x2bfa56['statusText']:_0x54996e('0xc8'),'msg':_0x2bfa56['data']?JSON[_0x54996e('0xa48')](_0x2bfa56[_0x54996e('0x10fd')]):_0x2bfa56[_0x54996e('0x684')]()});}):_0x321b6c[_0x4ea349('0x167c')][_0x4ea349('0x2122')]({'fields':_0x4ea349('0xb22'),'sort':_0x4ea349('0x25d6'),'nolimit':_0x4ea349('0x1c5c')})['$promise'][_0x4ea349('0xaa5')](function(_0x1dde07){var _0x2403d4=_0x4ea349;_0x4ec15e[_0x2403d4('0x2457')]=_0x1dde07['rows']||[];})[_0x4ea349('0xaa5')](function(){var _0x4f0305=_0x4ea349;return _0x321b6c['userProfileSection']['get']({'userProfileId':_0x4ec15e[_0x4f0305('0x7fc')][_0x4f0305('0x2168')],'sectionId':0x3ed})['$promise'];})[_0x4ea349('0xaa5')](function(_0x5c0076){var _0x52436d=_0x4ea349,_0x17de3d=_0x5c0076&&_0x5c0076[_0x52436d('0x580')]?_0x5c0076[_0x52436d('0x580')][0x0]:null;if(!_0x17de3d)_0x4ec15e['pauses']=[];else{if(!_0x17de3d[_0x52436d('0x26cc')])return _0x321b6c['userProfileResource']['get']({'sectionId':_0x17de3d['id']})[_0x52436d('0x1dc2')][_0x52436d('0xaa5')](function(_0x157d79){var _0x29d90f=_0x52436d,_0x17b08c=_0x51538b()[_0x29d90f('0x1246')](_0x157d79[_0x29d90f('0x580')],function(_0x1c16ad){var _0x4cc619=_0x29d90f;return _0x51538b()[_0x4cc619('0xe9e')](_0x4ec15e[_0x4cc619('0x2457')],{'id':_0x1c16ad['resourceId']});});_0x4ec15e[_0x29d90f('0x2457')][_0x29d90f('0x15b5')](function(_0x5a21eb){var _0x32a389=_0x29d90f;!_0x51538b()[_0x32a389('0x2c2')](_0x17b08c,['id',_0x5a21eb['id']])&&(_0x5a21eb['canSelect']=![]),_0x17b08c['push'](_0x5a21eb);}),_0x4ec15e[_0x29d90f('0x2457')]=_0x17b08c;});}})[_0x4ea349('0x253d')](function(_0x3c8339){var _0x21e7de=_0x4ea349;_0xdd18ba[_0x21e7de('0x187f')]({'title':_0x3c8339[_0x21e7de('0x2fa')]?_0x21e7de('0x16c2')+_0x3c8339[_0x21e7de('0x2fa')]+_0x21e7de('0x169e')+_0x3c8339[_0x21e7de('0x24df')]:'SYSTEM:GETpauses','msg':_0x3c8339[_0x21e7de('0x10fd')]?JSON[_0x21e7de('0xa48')](_0x3c8339[_0x21e7de('0x10fd')]):_0x3c8339[_0x21e7de('0x684')]()});});function _0x531c2b(){var _0x138439=_0x4ea349;if(_0x245d5c['hasRole'](_0x138439('0x178b')))_0x4c1d2c['go'](_0x138439('0x383'),{});else return _0x321b6c[_0x138439('0x1a50')][_0x138439('0x2122')]({'userProfileId':_0x245d5c[_0x138439('0xacc')]()[_0x138439('0x2168')],'sectionId':0x262})[_0x138439('0x1dc2')][_0x138439('0xaa5')](function(_0x40e83d){var _0x36f561=_0x138439,_0x1e47e8=_0x40e83d&&_0x40e83d[_0x36f561('0x580')]?_0x40e83d[_0x36f561('0x580')][0x0]:null;_0x1e47e8&&_0x1e47e8[_0x36f561('0xbd3')]?_0x4c1d2c['go']('app.mail.realtime.accounts',{}):_0xdd18ba[_0x36f561('0x3a1')]({'title':_0x322149[_0x36f561('0x213f')](_0x36f561('0x1aab')),'msg':_0x322149[_0x36f561('0x213f')](_0x36f561('0x251c'))});})[_0x138439('0x253d')](function(_0x3087f3){var _0x30904f=_0x138439;_0xdd18ba['error']({'title':_0x3087f3[_0x30904f('0x2fa')]?_0x30904f('0x16c2')+_0x3087f3['status']+'\x20-\x20'+_0x3087f3[_0x30904f('0x24df')]:_0x30904f('0x21d5'),'msg':_0x3087f3[_0x30904f('0x2fa')]?JSON[_0x30904f('0xa48')](_0x3087f3[_0x30904f('0x10fd')]):_0x3087f3[_0x30904f('0x684')]()});});}function _0x204ee9(_0x49eae6,_0x3e3d23){var _0x15f771=_0x4ea349;_0x4c1b7c[_0x15f771('0x1e6d')]({'controller':_0x15f771('0xa6'),'controllerAs':'vm','templateUrl':_0x9df172,'parent':angular['element'](_0x35396f['body']),'targetEvent':_0x3e3d23,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x49eae6,'mailAccounts':_0x4ec15e['mailAccounts']?_0x4ec15e[_0x15f771('0x172d')][_0x15f771('0x580')]:[],'crudPermissions':_0x4ec15e[_0x15f771('0xada')],'realtime':![]}});}function _0x39c1ac(){var _0x19ed46=_0x4ea349;_0x4c1d2c['go']('app.mail.mailAccounts',{},{'reload':_0x19ed46('0x6f1')});}function _0x34d888(){var _0x4d610d=_0x4ea349;_0x321b6c['mailAccount'][_0x4d610d('0x264e')]({'id':_0x4ec15e['mailAccount']['id']},_0x4ec15e[_0x4d610d('0xb86')])[_0x4d610d('0x1dc2')][_0x4d610d('0xaa5')](function(){var _0x3daebd=_0x4d610d;_0xdd18ba[_0x3daebd('0xe10')]({'title':_0x3daebd('0x1494'),'msg':_0x4ec15e[_0x3daebd('0xb86')]['name']?_0x4ec15e[_0x3daebd('0xb86')][_0x3daebd('0x25d6')]+'\x20has\x20been\x20updated!':''});})[_0x4d610d('0x253d')](function(_0x4c2308){var _0x51c301=_0x4d610d;_0xdd18ba[_0x51c301('0x187f')]({'title':_0x4c2308['status']?_0x51c301('0x16c2')+_0x4c2308['status']+'\x20-\x20'+_0x4c2308[_0x51c301('0x24df')]:_0x51c301('0x64b'),'msg':_0x4c2308['data']?JSON[_0x51c301('0xa48')](_0x4c2308[_0x51c301('0x10fd')]):_0x4c2308[_0x51c301('0x684')]()});});}}const _0xaf05c1=_0x16b072,_0x378b16=_0x4fb511['p']+_0x1a8446('0xfe8');_0x2a3187[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window','$state',_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x172d'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x2a3187(_0x3a3ede,_0x57d5ca,_0x1c304e,_0x12661e,_0x367adc,_0x292d23,_0x595d70,_0xaa590a,_0x7f7e0f,_0xdc27a3,_0x21c0d1,_0x210a11,_0x15ee17,_0x3f2424,_0x435bfc,_0x5b5ea3,_0x14867a){var _0x21d9e5=_0x1a8446,_0x5b2a43=this;_0x5b2a43[_0x21d9e5('0x1202')]=_0x5b5ea3,_0x5b2a43[_0x21d9e5('0x143f')]=_0x14867a,_0x5b2a43['currentUser']=_0x435bfc[_0x21d9e5('0xacc')](),_0x5b2a43[_0x21d9e5('0x172d')]=_0x7f7e0f||{'count':0x0,'rows':[]},_0x5b2a43[_0x21d9e5('0x1e97')]=_0xdc27a3,_0x5b2a43[_0x21d9e5('0x1a50')]=_0x21c0d1&&_0x21c0d1[_0x21d9e5('0xd15')]==0x1?_0x21c0d1[_0x21d9e5('0x580')][0x0]:null,_0x5b2a43[_0x21d9e5('0xada')]=_0x435bfc[_0x21d9e5('0xffd')](_0x5b2a43[_0x21d9e5('0x1a50')]?_0x5b2a43[_0x21d9e5('0x1a50')][_0x21d9e5('0xada')]:null),_0x5b2a43['table']=_0x21d9e5('0x172d'),_0x5b2a43['listOrder']='',_0x5b2a43['listOrderAsc']=null,_0x5b2a43[_0x21d9e5('0x1c90')]=[],_0x5b2a43[_0x21d9e5('0x582')]={'fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x21d9e5('0xd82'),'limit':0xa,'page':0x1},_0x5b2a43['arraycservice']=_0x51538b()[_0x21d9e5('0x184a')]([{'option':_0x21d9e5('0x27aa'),'value':_0x21d9e5('0x1ed9')},{'option':_0x21d9e5('0x12c4'),'value':_0x21d9e5('0x973')},{'option':_0x21d9e5('0x10ec'),'value':_0x21d9e5('0x165a')},{'option':_0x21d9e5('0x2229'),'value':_0x21d9e5('0x18ac')},{'option':'Outlook365','value':'\x27outlook365\x27'}],function(_0x36f7ef){var _0x6ecf82=_0x21d9e5;return _0x51538b()[_0x6ecf82('0x170d')](_0x36f7ef['value'],new RegExp('\x27','g'),'');}),_0x5b2a43[_0x21d9e5('0xe91')]=_0x51538b()[_0x21d9e5('0x184a')]([{'option':_0x21d9e5('0x27aa'),'value':'null'},{'option':_0x21d9e5('0x12c4'),'value':_0x21d9e5('0x973')},{'option':_0x21d9e5('0x10ec'),'value':'\x27hotmail\x27'},{'option':'Yahoo','value':_0x21d9e5('0x18ac')},{'option':_0x21d9e5('0x175f'),'value':_0x21d9e5('0x2f6')}],function(_0x34c96b){var _0x536d22=_0x21d9e5;return _0x51538b()[_0x536d22('0x170d')](_0x34c96b[_0x536d22('0x12f4')],new RegExp('\x27','g'),'');}),_0x5b2a43[_0x21d9e5('0x1330')]=_0x51538b()[_0x21d9e5('0x184a')]([{'option':_0x21d9e5('0x27aa'),'value':_0x21d9e5('0x1ed9')},{'option':_0x21d9e5('0x12c4'),'value':_0x21d9e5('0x973')},{'option':'Hotmail','value':_0x21d9e5('0x165a')},{'option':'Yahoo','value':'\x27yahoo\x27'},{'option':'Outlook365','value':'\x27outlook365\x27'}],function(_0x72355a){var _0x1fbaa6=_0x21d9e5;return _0x51538b()['replace'](_0x72355a[_0x1fbaa6('0x12f4')],new RegExp('\x27','g'),'');}),_0x5b2a43[_0x21d9e5('0x1927')]=_0xa55319,_0x5b2a43['verifysmtpverifysmtp']=_0x3844cd,_0x5b2a43[_0x21d9e5('0x2500')]=_0xf73867,_0x5b2a43[_0x21d9e5('0x2389')]=_0x10ece2,_0x5b2a43[_0x21d9e5('0x16a5')]=_0xa1ff02,_0x5b2a43[_0x21d9e5('0x271')]=_0x1f071d,_0x5b2a43[_0x21d9e5('0xe10')]=_0xf596d7,_0x5b2a43['getMailAccounts']=_0x2c6b04,_0x5b2a43[_0x21d9e5('0x1faa')]=_0x1b6c67,_0x5b2a43['deleteMailAccount']=_0xf3d720,_0x5b2a43['exportSelectedMailAccounts']=_0x173349,_0x5b2a43[_0x21d9e5('0x1097')]=_0x3e2eae,_0x5b2a43[_0x21d9e5('0xd45')]=_0x1c2d29,_0x5b2a43[_0x21d9e5('0x2e0')]=_0x27d39b,_0x435bfc[_0x21d9e5('0x26e8')]('admin')?_0x210a11[_0x21d9e5('0x26b4')][_0x21d9e5('0x2122')]({'fields':_0x21d9e5('0x17fe'),'sort':'name'})['$promise'][_0x21d9e5('0xaa5')](function(_0x551a90){var _0x3f8841=_0x21d9e5;_0x5b2a43[_0x3f8841('0x1126')]=_0x551a90[_0x3f8841('0x580')]||[];})['catch'](function(_0x4102f5){var _0x394474=_0x21d9e5;_0x3f2424[_0x394474('0x187f')]({'title':_0x4102f5[_0x394474('0x2fa')]?_0x394474('0x16c2')+_0x4102f5[_0x394474('0x2fa')]+_0x394474('0x169e')+_0x4102f5[_0x394474('0x24df')]:'SYSTEM:GET_LISTS','msg':_0x4102f5[_0x394474('0x10fd')]?JSON[_0x394474('0xa48')](_0x4102f5[_0x394474('0x10fd')]):_0x4102f5[_0x394474('0x684')]()});}):_0x210a11['cmList'][_0x21d9e5('0x2122')]({'fields':_0x21d9e5('0x17fe'),'sort':'name'})[_0x21d9e5('0x1dc2')]['then'](function(_0x3d359c){var _0x4e019d=_0x21d9e5;_0x5b2a43[_0x4e019d('0x1126')]=_0x3d359c[_0x4e019d('0x580')]||[];})['then'](function(){var _0x2bfb79=_0x21d9e5;return _0x210a11['userProfileSection']['get']({'userProfileId':_0x5b2a43[_0x2bfb79('0x7fc')][_0x2bfb79('0x2168')],'sectionId':0x12d})[_0x2bfb79('0x1dc2')];})[_0x21d9e5('0xaa5')](function(_0x1b5fd3){var _0x1e0fab=_0x21d9e5,_0x29de4d=_0x1b5fd3&&_0x1b5fd3['rows']?_0x1b5fd3[_0x1e0fab('0x580')][0x0]:null;if(!_0x29de4d){var _0x57936c=[],_0x521e3d=null;_0x5b2a43[_0x1e0fab('0xb86')]&&(_0x521e3d=_0x51538b()['find'](_0x5b2a43[_0x1e0fab('0x1126')],{'id':Number(_0x5b2a43['mailAccount'][_0x1e0fab('0xee0')])}));for(var _0x22f61c=0x0;_0x22f61c<_0x5b2a43['lists'][_0x1e0fab('0x2587')];_0x22f61c++){_0x521e3d&&_0x5b2a43['lists'][_0x22f61c]['id']===_0x521e3d['id']&&(_0x5b2a43[_0x1e0fab('0x1126')][_0x22f61c][_0x1e0fab('0x12eb')]=![],_0x57936c[_0x1e0fab('0x1599')](_0x5b2a43[_0x1e0fab('0x1126')][_0x22f61c]));}_0x5b2a43[_0x1e0fab('0x1126')]=_0x57936c;}else{if(!_0x29de4d['autoAssociation'])return _0x210a11[_0x1e0fab('0x249a')][_0x1e0fab('0x2122')]({'sectionId':_0x29de4d['id']})[_0x1e0fab('0x1dc2')]['then'](function(_0x3172e6){var _0x498dee=_0x1e0fab,_0x1dfcf9=_0x51538b()['map'](_0x3172e6[_0x498dee('0x580')],function(_0x18145d){var _0x95384c=_0x498dee;return _0x51538b()[_0x95384c('0xe9e')](_0x5b2a43[_0x95384c('0x1126')],{'id':_0x18145d[_0x95384c('0xbcd')]});}),_0x273649=null;_0x5b2a43[_0x498dee('0xb86')]&&(_0x273649=_0x51538b()['find'](_0x5b2a43[_0x498dee('0x1126')],{'id':Number(_0x5b2a43[_0x498dee('0xb86')][_0x498dee('0xee0')])}));if(_0x273649&&!_0x51538b()[_0x498dee('0x2c2')](_0x1dfcf9,['id',_0x273649['id']])){var _0x439331=_0x51538b()[_0x498dee('0xe9e')](_0x5b2a43['lists'],{'id':_0x273649['id']});_0x439331['canSelect']=![],_0x1dfcf9[_0x498dee('0x1599')](_0x439331);}_0x5b2a43[_0x498dee('0x1126')]=_0x1dfcf9;});}})[_0x21d9e5('0x253d')](function(_0x3b06d1){var _0x5f4814=_0x21d9e5;_0x3f2424[_0x5f4814('0x187f')]({'title':_0x3b06d1['status']?_0x5f4814('0x16c2')+_0x3b06d1[_0x5f4814('0x2fa')]+_0x5f4814('0x169e')+_0x3b06d1[_0x5f4814('0x24df')]:'SYSTEM:GETlists','msg':_0x3b06d1[_0x5f4814('0x10fd')]?JSON[_0x5f4814('0xa48')](_0x3b06d1['data']):_0x3b06d1[_0x5f4814('0x684')]()});});function _0xa55319(_0x5c8b56){var _0x26e6fd=_0x21d9e5;_0x1c304e['go'](_0x26e6fd('0xd9'),{'id':_0x5c8b56['id'],'mailAccount':_0x5c8b56,'crudPermissions':_0x5b2a43[_0x26e6fd('0xada')]});}function _0x3844cd(_0x44878f){var _0x4cd875=_0x21d9e5;if(_0x44878f&&_0x44878f['id'])return _0x210a11[_0x4cd875('0xb86')][_0x4cd875('0x2361')]({'id':_0x44878f['id']})[_0x4cd875('0x1dc2')][_0x4cd875('0xaa5')](function(){var _0x246b19=_0x4cd875;_0x3f2424[_0x246b19('0xe10')]({'title':_0x246b19('0x1a54'),'msg':_0x246b19('0x2633')});})['catch'](function(_0x4f9717){var _0x3d6cc2=_0x4cd875;_0x3f2424[_0x3d6cc2('0x187f')]({'title':_0x3d6cc2('0x1a54'),'msg':_0x4f9717[_0x3d6cc2('0x10fd')]?JSON[_0x3d6cc2('0xa48')](_0x4f9717['data']):_0x4f9717[_0x3d6cc2('0x684')]()});});else _0x3f2424['error']({'title':_0x4cd875('0x1a54'),'msg':'Smpt\x20id\x20unknown'});}function _0xf73867(_0x29b529){var _0x705587=_0x21d9e5;_0x1c304e['go'](_0x705587('0xd9'),{'id':_0x29b529['id'],'tab':0x7});}function _0x10ece2(){var _0x417e88=_0x21d9e5;if(_0x435bfc[_0x417e88('0x26e8')](_0x417e88('0x178b')))_0x1c304e['go']('app.mail.realtime.accounts',{});else return _0x210a11['userProfileSection'][_0x417e88('0x2122')]({'userProfileId':_0x435bfc[_0x417e88('0xacc')]()[_0x417e88('0x2168')],'sectionId':0x262})[_0x417e88('0x1dc2')]['then'](function(_0x40ad08){var _0x28fa33=_0x417e88,_0x5d2b37=_0x40ad08&&_0x40ad08[_0x28fa33('0x580')]?_0x40ad08['rows'][0x0]:null;_0x5d2b37&&_0x5d2b37['enabled']?_0x1c304e['go'](_0x28fa33('0x383'),{}):_0x3f2424[_0x28fa33('0x3a1')]({'title':_0xaa590a[_0x28fa33('0x213f')](_0x28fa33('0x1aab')),'msg':_0xaa590a[_0x28fa33('0x213f')](_0x28fa33('0x251c'))});})[_0x417e88('0x253d')](function(_0x3f0205){var _0x2f5f02=_0x417e88;_0x3f2424[_0x2f5f02('0x187f')]({'title':_0x3f0205[_0x2f5f02('0x2fa')]?_0x2f5f02('0x16c2')+_0x3f0205[_0x2f5f02('0x2fa')]+_0x2f5f02('0x169e')+_0x3f0205[_0x2f5f02('0x24df')]:_0x2f5f02('0x21d5'),'msg':_0x3f0205['status']?JSON[_0x2f5f02('0xa48')](_0x3f0205[_0x2f5f02('0x10fd')]):_0x3f0205['toString']()});});}function _0xa1ff02(_0x3e18d0,_0xa4e8c6){var _0x3c2a22=_0x21d9e5;_0x367adc[_0x3c2a22('0x1e6d')]({'controller':_0x3c2a22('0xa6'),'controllerAs':'vm','templateUrl':_0x9df172,'parent':angular[_0x3c2a22('0x1aa8')](_0x292d23[_0x3c2a22('0x54c')]),'targetEvent':_0xa4e8c6,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x3e18d0,'mailAccounts':_0x5b2a43[_0x3c2a22('0x172d')]?_0x5b2a43[_0x3c2a22('0x172d')][_0x3c2a22('0x580')]:[],'crudPermissions':_0x5b2a43[_0x3c2a22('0xada')],'realtime':![]}});}function _0x1f071d(_0x37ee6c,_0x27b32d){var _0x7c39e8=_0x21d9e5,_0xa572c1=_0x367adc['confirm']()[_0x7c39e8('0x110a')](_0x7c39e8('0x88d')+_0x51538b()[_0x7c39e8('0x196a')](_0x7c39e8('0xb86'))+'?')[_0x7c39e8('0x102e')](_0x7c39e8('0x389')+(_0x37ee6c[_0x7c39e8('0x25d6')]||_0x7c39e8('0xb86'))+_0x7c39e8('0x697')+_0x7c39e8('0x210d'))[_0x7c39e8('0x5b5')]('delete\x20mailAccount')[_0x7c39e8('0x116d')](_0x27b32d)['ok']('OK')[_0x7c39e8('0x2030')]('CANCEL');_0x367adc[_0x7c39e8('0x1e6d')](_0xa572c1)[_0x7c39e8('0xaa5')](function(){_0xf3d720(_0x37ee6c);},function(){var _0xfdd120=_0x7c39e8;console[_0xfdd120('0x18d5')](_0xfdd120('0x2410'));});}var _0x32d0d0=!![],_0x3606a=0x1;_0x3a3ede['$watch'](_0x21d9e5('0x1788'),function(_0x66155f,_0x5c9ba0){var _0xa3646f=_0x21d9e5;_0x32d0d0?_0x595d70(function(){_0x32d0d0=![];}):(!_0x5c9ba0&&(_0x3606a=_0x5b2a43[_0xa3646f('0x582')][_0xa3646f('0x41')]),_0x66155f!==_0x5c9ba0&&(_0x5b2a43[_0xa3646f('0x582')][_0xa3646f('0x41')]=0x1),!_0x66155f&&(_0x5b2a43[_0xa3646f('0x582')][_0xa3646f('0x41')]=_0x3606a),_0x5b2a43['getMailAccounts']());});function _0xf596d7(_0xd1eb26){var _0x43d9a5=_0x21d9e5;_0x5b2a43[_0x43d9a5('0x172d')]=_0xd1eb26||{'count':0x0,'rows':[]};}function _0x2c6b04(){var _0x5d35a7=_0x21d9e5;_0x5b2a43[_0x5d35a7('0x582')][_0x5d35a7('0x8b1')]=(_0x5b2a43[_0x5d35a7('0x582')]['page']-0x1)*_0x5b2a43[_0x5d35a7('0x582')][_0x5d35a7('0xf4d')],_0x435bfc[_0x5d35a7('0x26e8')](_0x5d35a7('0x178b'))?_0x5b2a43[_0x5d35a7('0x159a')]=_0x210a11[_0x5d35a7('0xb86')][_0x5d35a7('0x2122')](_0x5b2a43[_0x5d35a7('0x582')],_0xf596d7)[_0x5d35a7('0x1dc2')]:(_0x5b2a43[_0x5d35a7('0x582')]['id']=_0x5b2a43['userProfile']['id'],_0x5b2a43['query'][_0x5d35a7('0x224d')]=_0x5d35a7('0x5b2'),_0x5b2a43[_0x5d35a7('0x159a')]=_0x210a11[_0x5d35a7('0x1e97')][_0x5d35a7('0x1cf1')](_0x5b2a43[_0x5d35a7('0x582')],_0xf596d7)[_0x5d35a7('0x1dc2')]);}function _0x1b6c67(_0x4835ba,_0x13ac88){var _0x101bd2=_0x21d9e5;_0x367adc['show']({'controller':'CreateOrEditMailAccountDialogController','controllerAs':'vm','templateUrl':_0x378b16,'parent':angular[_0x101bd2('0x1aa8')](_0x292d23[_0x101bd2('0x54c')]),'targetEvent':_0x4835ba,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x13ac88,'mailAccounts':_0x5b2a43[_0x101bd2('0x172d')][_0x101bd2('0x580')],'license':_0x5b2a43[_0x101bd2('0x1202')],'setting':_0x5b2a43[_0x101bd2('0x143f')],'crudPermissions':_0x5b2a43[_0x101bd2('0xada')]}});}function _0xf3d720(_0x5728a7){var _0x31cd62=_0x21d9e5;if(_0x5728a7['service'])return _0x3f2424[_0x31cd62('0x187f')]({'title':'Mail\x20Account\x20not\x20deleted!','msg':_0x31cd62('0xf9f')});_0x210a11[_0x31cd62('0xb86')]['delete']({'id':_0x5728a7['id']})[_0x31cd62('0x1dc2')][_0x31cd62('0xaa5')](function(){var _0x1ac87d=_0x31cd62;_0x51538b()[_0x1ac87d('0xf6d')](_0x5b2a43[_0x1ac87d('0x172d')][_0x1ac87d('0x580')],{'id':_0x5728a7['id']}),_0x5b2a43[_0x1ac87d('0x172d')]['count']-=0x1,!_0x5b2a43['mailAccounts']['rows'][_0x1ac87d('0x2587')]&&_0x5b2a43[_0x1ac87d('0x1fb2')](),_0x3f2424[_0x1ac87d('0xe10')]({'title':_0x51538b()[_0x1ac87d('0x196a')](_0x1ac87d('0xb61'))+'\x20deleted!','msg':_0x5728a7[_0x1ac87d('0x25d6')]?_0x5728a7[_0x1ac87d('0x25d6')]+_0x1ac87d('0xcd9'):''});})[_0x31cd62('0x253d')](function(_0x385e40){var _0x536d07=_0x31cd62;if(_0x385e40['data']&&_0x385e40[_0x536d07('0x10fd')][_0x536d07('0x4c6')]&&_0x385e40[_0x536d07('0x10fd')]['errors'][_0x536d07('0x2587')]){_0x5b2a43[_0x536d07('0x4c6')]=_0x385e40[_0x536d07('0x10fd')][_0x536d07('0x4c6')]||[{'message':_0x385e40['toString'](),'type':_0x536d07('0x1ed0')}];for(var _0x387f70=0x0;_0x387f70<_0x385e40[_0x536d07('0x10fd')][_0x536d07('0x4c6')]['length'];_0x387f70++){_0x3f2424[_0x536d07('0x187f')]({'title':_0x385e40[_0x536d07('0x10fd')][_0x536d07('0x4c6')][_0x387f70][_0x536d07('0x6c8')],'msg':_0x385e40['data'][_0x536d07('0x4c6')][_0x387f70][_0x536d07('0x1402')]});}}else _0x3f2424['error']({'title':_0x385e40[_0x536d07('0x2fa')]?_0x536d07('0x16c2')+_0x385e40[_0x536d07('0x2fa')]+_0x536d07('0x169e')+_0x385e40[_0x536d07('0x24df')]:'SYSTEM:DELETEmailAccount','msg':_0x385e40[_0x536d07('0x10fd')]?JSON[_0x536d07('0xa48')](_0x385e40[_0x536d07('0x10fd')][_0x536d07('0x1402')]):_0x385e40[_0x536d07('0x1402')]||_0x385e40['toString']()});});}function _0x173349(){var _0xefd769=_0x21d9e5,_0x4d7aea=angular[_0xefd769('0x20a')](_0x5b2a43[_0xefd769('0x1c90')]);return _0x5b2a43[_0xefd769('0x1c90')]=[],_0x4d7aea;}function _0x3e2eae(_0x3d2a6f){var _0x4e0a12=_0x21d9e5,_0x489dcf=_0x367adc[_0x4e0a12('0x281e')]()[_0x4e0a12('0x110a')](_0x4e0a12('0x1648'))[_0x4e0a12('0x102e')](_0x4e0a12('0x389')+_0x5b2a43[_0x4e0a12('0x1c90')][_0x4e0a12('0x2587')]+'\x20selected'+_0x4e0a12('0x210d'))[_0x4e0a12('0x5b5')]('delete\x20MailAccounts')[_0x4e0a12('0x116d')](_0x3d2a6f)['ok']('OK')[_0x4e0a12('0x2030')](_0x4e0a12('0x2410'));_0x367adc[_0x4e0a12('0x1e6d')](_0x489dcf)['then'](function(){var _0x3d88d4=_0x4e0a12;_0x5b2a43[_0x3d88d4('0x1c90')][_0x3d88d4('0x15b5')](function(_0x5ac552){_0xf3d720(_0x5ac552);}),_0x5b2a43[_0x3d88d4('0x1c90')]=[];});}function _0x1c2d29(){var _0x5da1ab=_0x21d9e5;_0x5b2a43[_0x5da1ab('0x1c90')]=[];}function _0x27d39b(){var _0x1d2af0=_0x21d9e5;_0x5b2a43[_0x1d2af0('0x1c90')]=_0x5b2a43[_0x1d2af0('0x172d')][_0x1d2af0('0x580')];}}const _0x272e3d=_0x2a3187;_0xa5ff82[_0x1a8446('0x1e33')]=['$scope','$state','$location','$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x1073'),'mailQueue',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),'crudPermissions'];function _0xa5ff82(_0x3da988,_0x11d2df,_0x55e676,_0x3b8649,_0x15c5b3,_0x2615f2,_0x3f42c1,_0x2c780e,_0x5bdf40,_0x24e0f0,_0x4b28d5,_0x4d4834,_0x5f3334,_0x1af813){var _0x3e24cb=_0x1a8446,_0x5baf26=this;_0x5baf26[_0x3e24cb('0x7fc')]=_0x4b28d5[_0x3e24cb('0xacc')](),_0x5baf26[_0x3e24cb('0x4c6')]=[],_0x5baf26[_0x3e24cb('0x143f')]=_0x5f3334,_0x5baf26[_0x3e24cb('0x1202')]=_0x4d4834,_0x5baf26[_0x3e24cb('0xada')]=_0x1af813,_0x5baf26[_0x3e24cb('0x9f0')]={},_0x5baf26[_0x3e24cb('0x1d53')]=_0x5baf26[_0x3e24cb('0x143f')]&&_0x5baf26['setting'][_0x3e24cb('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5baf26['title']=_0x3e24cb('0x3ed'),_0x5baf26[_0x3e24cb('0x21c6')]=angular['copy'](_0x5bdf40),_0x5baf26['mailQueues']=_0x2c780e,_0x5baf26['newMailQueue']=![];!_0x5baf26[_0x3e24cb('0x21c6')]&&(_0x5baf26[_0x3e24cb('0x21c6')]={'strategy':_0x3e24cb('0x258'),'timeout':0xa},_0x5baf26[_0x3e24cb('0x110a')]=_0x3e24cb('0x1293'),_0x5baf26[_0x3e24cb('0xb81')]=!![]);_0x5baf26[_0x3e24cb('0x22f2')]=_0x5c2227,_0x5baf26[_0x3e24cb('0xef7')]=_0x5b1f0c,_0x5baf26[_0x3e24cb('0x1f73')]=_0x2eddcf,_0x5baf26[_0x3e24cb('0xc09')]=_0x18a542,_0x5baf26[_0x3e24cb('0x2023')]=_0x592ac8;function _0x5c2227(){var _0x32adc2=_0x3e24cb;_0x5baf26[_0x32adc2('0x4c6')]=[],_0x24e0f0['mailQueue'][_0x32adc2('0x242b')](_0x5baf26[_0x32adc2('0x21c6')])['$promise']['then'](function(_0x3344fc){var _0x172a67=_0x32adc2;_0x5baf26['mailQueues'][_0x172a67('0x6ee')](_0x3344fc[_0x172a67('0x256a')]()),_0x3f42c1[_0x172a67('0xe10')]({'title':_0x172a67('0x23a4'),'msg':_0x5baf26[_0x172a67('0x21c6')][_0x172a67('0x25d6')]?_0x5baf26[_0x172a67('0x21c6')][_0x172a67('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x592ac8(_0x3344fc);})[_0x32adc2('0x253d')](function(_0x5ec918){var _0x1033ea=_0x32adc2;if(_0x5ec918['data']&&_0x5ec918[_0x1033ea('0x10fd')][_0x1033ea('0x4c6')]&&_0x5ec918['data'][_0x1033ea('0x4c6')]['length']){_0x5baf26[_0x1033ea('0x4c6')]=_0x5ec918[_0x1033ea('0x10fd')]['errors']||[{'message':_0x5ec918[_0x1033ea('0x684')](),'type':'api.mailQueue.save'}];for(var _0x30aefd=0x0;_0x30aefd<_0x5ec918[_0x1033ea('0x10fd')][_0x1033ea('0x4c6')][_0x1033ea('0x2587')];_0x30aefd+=0x1){_0x3f42c1['error']({'title':_0x5ec918[_0x1033ea('0x10fd')][_0x1033ea('0x4c6')][_0x30aefd][_0x1033ea('0x6c8')],'msg':_0x5ec918['data'][_0x1033ea('0x4c6')][_0x30aefd][_0x1033ea('0x1402')]});}}else _0x3f42c1[_0x1033ea('0x187f')]({'title':_0x5ec918['status']?_0x1033ea('0x16c2')+_0x5ec918[_0x1033ea('0x2fa')]+_0x1033ea('0x169e')+_0x5ec918['statusText']:'api.mailQueue.save','msg':_0x5ec918['data']?JSON[_0x1033ea('0xa48')](_0x5ec918['data'][_0x1033ea('0x1402')]):_0x5ec918[_0x1033ea('0x684')]()});});}function _0x5b1f0c(){var _0x3f290b=_0x3e24cb;_0x5baf26[_0x3f290b('0x4c6')]=[],_0x24e0f0[_0x3f290b('0x21c6')][_0x3f290b('0x264e')]({'id':_0x5baf26['mailQueue']['id']},_0x5baf26[_0x3f290b('0x21c6')])[_0x3f290b('0x1dc2')]['then'](function(_0x20b76c){var _0x51d621=_0x3f290b,_0x5538a0=_0x51538b()['find'](_0x5baf26[_0x51d621('0x1073')],{'id':_0x20b76c['id']});_0x5538a0&&_0x51538b()[_0x51d621('0x283c')](_0x5538a0,_0x51538b()[_0x51d621('0x104e')](_0x20b76c[_0x51d621('0x256a')](),_0x51538b()[_0x51d621('0x9f2')](_0x5538a0))),_0x3f42c1[_0x51d621('0xe10')]({'title':_0x51d621('0x11e0'),'msg':_0x5baf26[_0x51d621('0x21c6')][_0x51d621('0x25d6')]?_0x5baf26[_0x51d621('0x21c6')][_0x51d621('0x25d6')]+_0x51d621('0x20bf'):''}),_0x592ac8(_0x20b76c);})['catch'](function(_0x11b278){var _0xee697c=_0x3f290b;if(_0x11b278['data']&&_0x11b278[_0xee697c('0x10fd')][_0xee697c('0x4c6')]&&_0x11b278['data'][_0xee697c('0x4c6')]['length']){_0x5baf26[_0xee697c('0x4c6')]=_0x11b278['data'][_0xee697c('0x4c6')]||[{'message':_0x11b278[_0xee697c('0x684')](),'type':_0xee697c('0x2517')}];for(var _0x1b9877=0x0;_0x1b9877<_0x11b278[_0xee697c('0x10fd')][_0xee697c('0x4c6')]['length'];_0x1b9877++){_0x3f42c1['error']({'title':_0x11b278[_0xee697c('0x10fd')][_0xee697c('0x4c6')][_0x1b9877]['type'],'msg':_0x11b278[_0xee697c('0x10fd')][_0xee697c('0x4c6')][_0x1b9877][_0xee697c('0x1402')]});}}else _0x3f42c1[_0xee697c('0x187f')]({'title':_0x11b278[_0xee697c('0x2fa')]?_0xee697c('0x16c2')+_0x11b278[_0xee697c('0x2fa')]+'\x20-\x20'+_0x11b278[_0xee697c('0x24df')]:'api.mailQueue.update','msg':_0x11b278[_0xee697c('0x10fd')]?JSON[_0xee697c('0xa48')](_0x11b278[_0xee697c('0x10fd')]['message']):_0x11b278[_0xee697c('0x684')]()});});}function _0x2eddcf(_0x578c1c){var _0x3a5ca4=_0x3e24cb;_0x5baf26[_0x3a5ca4('0x4c6')]=[];var _0x47b4ef=_0x3b8649[_0x3a5ca4('0x281e')]()['title'](_0x3a5ca4('0x12a3'))['content'](_0x3a5ca4('0x16e6'))[_0x3a5ca4('0x5b5')]('Delete\x20MailQueue')['ok'](_0x3a5ca4('0x1e76'))[_0x3a5ca4('0x2030')](_0x3a5ca4('0x9c6'))[_0x3a5ca4('0x116d')](_0x578c1c);_0x3b8649['show'](_0x47b4ef)[_0x3a5ca4('0xaa5')](function(){var _0x1d5425=_0x3a5ca4;_0x24e0f0['mailQueue'][_0x1d5425('0x926')]({'id':_0x5baf26[_0x1d5425('0x21c6')]['id']})[_0x1d5425('0x1dc2')][_0x1d5425('0xaa5')](function(){var _0xf0d187=_0x1d5425;_0x51538b()['remove'](_0x5baf26[_0xf0d187('0x1073')],{'id':_0x5baf26[_0xf0d187('0x21c6')]['id']}),_0x3f42c1[_0xf0d187('0xe10')]({'title':_0xf0d187('0x1066'),'msg':(_0x5baf26[_0xf0d187('0x21c6')][_0xf0d187('0x25d6')]||_0xf0d187('0x21c6'))+_0xf0d187('0xcd9')}),_0x592ac8(_0x5baf26[_0xf0d187('0x21c6')]);})[_0x1d5425('0x253d')](function(_0x9cdd9a){var _0x5e46cd=_0x1d5425;if(_0x9cdd9a[_0x5e46cd('0x10fd')]&&_0x9cdd9a['data'][_0x5e46cd('0x4c6')]&&_0x9cdd9a[_0x5e46cd('0x10fd')][_0x5e46cd('0x4c6')][_0x5e46cd('0x2587')]){_0x5baf26['errors']=_0x9cdd9a[_0x5e46cd('0x10fd')][_0x5e46cd('0x4c6')]||[{'message':_0x9cdd9a['toString'](),'type':_0x5e46cd('0xd71')}];for(var _0x4ecedf=0x0;_0x4ecedf<_0x9cdd9a[_0x5e46cd('0x10fd')][_0x5e46cd('0x4c6')]['length'];_0x4ecedf++){_0x3f42c1[_0x5e46cd('0x187f')]({'title':_0x9cdd9a[_0x5e46cd('0x10fd')]['errors'][_0x4ecedf]['type'],'msg':_0x9cdd9a[_0x5e46cd('0x10fd')][_0x5e46cd('0x4c6')][_0x4ecedf][_0x5e46cd('0x1402')]});}}else _0x3f42c1['error']({'title':_0x9cdd9a[_0x5e46cd('0x2fa')]?'API:'+_0x9cdd9a[_0x5e46cd('0x2fa')]+'\x20-\x20'+_0x9cdd9a[_0x5e46cd('0x24df')]:_0x5e46cd('0xd71'),'msg':_0x9cdd9a[_0x5e46cd('0x10fd')]?JSON[_0x5e46cd('0xa48')](_0x9cdd9a[_0x5e46cd('0x10fd')]['message']):_0x9cdd9a[_0x5e46cd('0x1402')]||_0x9cdd9a['toString']()});});},function(){});}function _0x18a542(_0x2f4efd){return _0x2f4efd===null?undefined:new Date(_0x2f4efd);}function _0x592ac8(_0x43b47d){var _0x1b33bf=_0x3e24cb;_0x3b8649[_0x1b33bf('0x1120')](_0x43b47d);}}const _0x981b6d=_0xa5ff82;_0x483f72['$inject']=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x21c6'),_0x1a8446('0x1073'),_0x1a8446('0x4f3'),'$translate',_0x1a8446('0x1dfd'),'crudPermissions'];function _0x483f72(_0x43b2b5,_0x5d80da,_0xdc2803,_0x5ed998,_0x1bc802,_0x22bf51,_0x48b03f,_0x4eff15,_0x231851,_0x801155){var _0xe60723=_0x1a8446,_0x350236=this;_0x350236[_0xe60723('0x7fc')]=_0x231851['getCurrentUser'](),_0x350236[_0xe60723('0x21c6')]=_0x1bc802,_0x350236[_0xe60723('0xada')]=_0x801155,_0x350236[_0xe60723('0x4f3')]=_0x48b03f,_0x350236['items']=[],_0x350236[_0xe60723('0x11b9')]=[],_0x350236[_0xe60723('0xbf7')]=[],_0x350236[_0xe60723('0x215b')]=[],_0x350236[_0xe60723('0x214a')]=[],_0x350236['pendingChanges']=![],_0x350236['onInit']=_0x5aac42,_0x350236[_0xe60723('0x17bb')]=_0x2bedb9,_0x350236[_0xe60723('0x2023')]=_0x16ed29,_0x350236[_0xe60723('0x1c23')]={'readOnly':!_0x350236[_0xe60723('0xada')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xe60723('0x25d6'),'line1':'fullname','line2':[_0xe60723('0x25d6'),_0xe60723('0x1b0d')],'line3':'','labelAll':_0x4eff15[_0xe60723('0x213f')]('MAIL.ALL_AGENTS'),'labelSelected':_0x4eff15[_0xe60723('0x213f')](_0xe60723('0x63c')),'transferCallback':function _0x4bf48c(){var _0x6458c5=_0xe60723,_0x5a67df=_0x51538b()[_0x6458c5('0x9ef')](_0x350236[_0x6458c5('0x214a')],_0x350236['selectedItems'],'id');_0x350236[_0x6458c5('0xc54')]=_0x51538b()['isEmpty'](_0x5a67df)?![]:!![];}};function _0x5aac42(){var _0x29b2c2=_0xe60723;return _0x231851[_0x29b2c2('0x26e8')]('admin')?_0x35f494()[_0x29b2c2('0x253d')](function(_0x3e2093){var _0x5cf84d=_0x29b2c2;_0xdc2803[_0x5cf84d('0x187f')]({'title':_0x3e2093[_0x5cf84d('0x2fa')]?_0x5cf84d('0x16c2')+_0x3e2093['status']+'\x20-\x20'+_0x3e2093[_0x5cf84d('0x24df')]:_0x5cf84d('0x14c6'),'msg':_0x3e2093[_0x5cf84d('0x2fa')]?JSON['stringify'](_0x3e2093['data']):_0x3e2093[_0x5cf84d('0x684')]()});}):_0x24ec5d()['then'](function(_0x39eb0d){var _0x4e0f72=_0x29b2c2;return _0x350236[_0x4e0f72('0x224d')]=_0x39eb0d,_0x35f494();})[_0x29b2c2('0x253d')](function(_0x2149f6){var _0x1142ba=_0x29b2c2;_0xdc2803[_0x1142ba('0x187f')]({'title':_0x2149f6[_0x1142ba('0x2fa')]?_0x1142ba('0x16c2')+_0x2149f6['status']+_0x1142ba('0x169e')+_0x2149f6['statusText']:_0x1142ba('0x14c6'),'msg':_0x2149f6[_0x1142ba('0x2fa')]?JSON['stringify'](_0x2149f6[_0x1142ba('0x10fd')]):_0x2149f6[_0x1142ba('0x684')]()});});}function _0x24ec5d(){return _0x5d80da(function(_0x118c12,_0x52dc62){var _0x4465e1=a0_0x1149;_0x5ed998['userProfileSection'][_0x4465e1('0x2122')]({'userProfileId':_0x350236[_0x4465e1('0x7fc')][_0x4465e1('0x2168')],'name':_0x4465e1('0x91a')})[_0x4465e1('0x1dc2')][_0x4465e1('0xaa5')](function(_0x3724ea){var _0x7bf54f=_0x4465e1,_0x2b5bb6=_0x3724ea&&_0x3724ea[_0x7bf54f('0x580')]?_0x3724ea[_0x7bf54f('0x580')][0x0]:null;_0x118c12(_0x2b5bb6);})['catch'](function(_0x3205bc){_0x52dc62(_0x3205bc);});});}function _0x35f494(){return _0x5d80da(function(_0xe60883,_0x50019f){var _0x26e5be=a0_0x1149;return _0x935186()['then'](function(_0xf0392b){var _0x5abf0c=a0_0x1149;return _0x350236[_0x5abf0c('0x1a30')]=_0xf0392b[_0x5abf0c('0x580')]?_0xf0392b[_0x5abf0c('0x580')]:[],_0x231851[_0x5abf0c('0x26e8')](_0x5abf0c('0x178b'))?_0xf0392b:_0x350236[_0x5abf0c('0x224d')]?_0x350236[_0x5abf0c('0x224d')]['autoAssociation']?_0xf0392b:_0x3afaa3():null;})[_0x26e5be('0xaa5')](function(_0x997f18){var _0x10f90b=_0x26e5be,_0x414b32=_0x997f18&&_0x997f18['rows']?_0x997f18[_0x10f90b('0x580')]:[];return _0x350236[_0x10f90b('0x11b9')]=_0x51538b()[_0x10f90b('0x1246')](_0x414b32,function(_0x36dc8e){var _0x14778c=_0x10f90b;return _0x51538b()['find'](_0x350236['items'],{'id':_0x231851[_0x14778c('0x26e8')](_0x14778c('0x178b'))||_0x350236[_0x14778c('0x224d')][_0x14778c('0x26cc')]?_0x36dc8e['id']:_0x36dc8e['resourceId']});}),_0x350236['startingAllowedItems']=angular['copy'](_0x350236[_0x10f90b('0x11b9')]),_0x350236[_0x10f90b('0x1a30')]['forEach'](function(_0x41c601){var _0x326542=_0x10f90b,_0x1f91f6=_0x51538b()[_0x326542('0xe9e')](_0x350236[_0x326542('0x11b9')],{'id':_0x41c601['id']});_0x231851[_0x326542('0x26e8')](_0x326542('0x178b'))?_0x41c601[_0x326542('0x145d')]=!![]:_0x41c601[_0x326542('0x145d')]=typeof _0x1f91f6!==_0x326542('0x1574')?!![]:![];}),_0x47b811();})[_0x26e5be('0xaa5')](function(_0x739d84){var _0x548dec=_0x26e5be,_0x5f22ef=_0x739d84&&_0x739d84[_0x548dec('0x580')]?_0x739d84['rows']:[];_0x350236[_0x548dec('0xbf7')]=_0x51538b()[_0x548dec('0x1246')](_0x5f22ef,function(_0xbc30a2){var _0x21a225=_0x548dec,_0x415aa3=_0x51538b()[_0x21a225('0xe9e')](_0x350236[_0x21a225('0x1a30')],{'id':_0xbc30a2['id']});return _0x415aa3[_0x21a225('0x2234')]=_0xbc30a2['UserMailQueue']?_0x21a225('0x17b0')+_0xbc30a2[_0x21a225('0x1fc7')]['penalty']:'',_0x415aa3[_0x21a225('0x1b0d')]=typeof _0xbc30a2[_0x21a225('0x1b0d')]!==_0x21a225('0x1574')?'<'+_0xbc30a2['internal']+'>':'',_0x415aa3;}),_0x350236['startingSelectedItems']=angular['copy'](_0x350236[_0x548dec('0xbf7')]),_0x350236['dualMultiselectOptions'][_0x548dec('0xbf7')]=_0x350236[_0x548dec('0xbf7')],_0x350236[_0x548dec('0x1c23')][_0x548dec('0x1a30')]=_0x51538b()[_0x548dec('0x1ebb')](_0x350236['allowedItems'],_0x350236['dualMultiselectOptions'][_0x548dec('0xbf7')],'id'),_0xe60883();})[_0x26e5be('0x253d')](function(_0x3d0781){_0x50019f(_0x3d0781);});});}function _0x3afaa3(){return _0x5d80da(function(_0x4db8fb,_0x2ef777){var _0x357daf=a0_0x1149;return _0x5ed998[_0x357daf('0x249a')][_0x357daf('0x2122')]({'sectionId':_0x350236[_0x357daf('0x224d')]['id'],'nolimit':!![]})[_0x357daf('0x1dc2')][_0x357daf('0xaa5')](function(_0x3c63b6){_0x4db8fb(_0x3c63b6);})['catch'](function(_0x13d960){_0x2ef777(_0x13d960);});});}function _0x47b811(){return _0x5d80da(function(_0x1326b2,_0x59e146){var _0x4b04bc=a0_0x1149;return _0x5ed998[_0x4b04bc('0x21c6')][_0x4b04bc('0x1483')]({'id':_0x350236[_0x4b04bc('0x21c6')]['id'],'fields':_0x4b04bc('0x283f'),'nolimit':!![],'role':_0x4b04bc('0xeff')})[_0x4b04bc('0x1dc2')]['then'](function(_0x21056f){_0x1326b2(_0x21056f);})[_0x4b04bc('0x253d')](function(_0x46a0df){_0x59e146(_0x46a0df);});});}function _0x935186(){return _0x5d80da(function(_0x26e253,_0x29f0f2){var _0x2f0c10=a0_0x1149;return _0x5ed998['user'][_0x2f0c10('0x2122')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x2f0c10('0xeff')})[_0x2f0c10('0x1dc2')][_0x2f0c10('0xaa5')](function(_0x58556f){_0x26e253(_0x58556f);})[_0x2f0c10('0x253d')](function(_0xf96d63){_0x29f0f2(_0xf96d63);});});}function _0x4e6a3f(_0x455843){return _0x5d80da(function(_0x58202d,_0x1ce93a){var _0x23d492=a0_0x1149;_0x51538b()[_0x23d492('0x116b')](_0x455843)?_0x58202d():_0x5ed998[_0x23d492('0x21c6')][_0x23d492('0x26b1')]({'id':_0x350236[_0x23d492('0x21c6')]['id'],'ids':_0x51538b()[_0x23d492('0x1246')](_0x455843,'id')})[_0x23d492('0x1dc2')][_0x23d492('0xaa5')](function(){_0x58202d();})[_0x23d492('0x253d')](function(_0x508251){_0x1ce93a(_0x508251);});});}function _0x5cf609(_0x5b4875){return _0x5d80da(function(_0x5f10b2,_0x220049){var _0x51c0b7=a0_0x1149;_0x51538b()[_0x51c0b7('0x116b')](_0x5b4875)?_0x5f10b2():_0x5ed998[_0x51c0b7('0x21c6')][_0x51c0b7('0x258e')]({'id':_0x350236[_0x51c0b7('0x21c6')]['id'],'ids':_0x51538b()[_0x51c0b7('0x1246')](_0x5b4875,'id')})[_0x51c0b7('0x1dc2')][_0x51c0b7('0xaa5')](function(){_0x5f10b2();})[_0x51c0b7('0x253d')](function(_0x2a742e){_0x220049(_0x2a742e);});});}function _0x2bedb9(){var _0x52a3cc=_0xe60723,_0x5a3a98=_0x51538b()['differenceBy'](_0x350236[_0x52a3cc('0x214a')],_0x350236[_0x52a3cc('0xbf7')],'id'),_0x3f3129=_0x51538b()[_0x52a3cc('0x1ebb')](_0x350236[_0x52a3cc('0xbf7')],_0x350236[_0x52a3cc('0x214a')],'id');return _0x5cf609(_0x5a3a98)[_0x52a3cc('0xaa5')](function(){return _0x4e6a3f(_0x3f3129);})[_0x52a3cc('0xaa5')](function(){var _0x5e9bb0=_0x52a3cc;_0x350236['pendingChanges']=![],_0x350236[_0x5e9bb0('0x215b')]=angular[_0x5e9bb0('0x20a')](_0x350236[_0x5e9bb0('0x11b9')]),_0x350236[_0x5e9bb0('0x214a')]=angular[_0x5e9bb0('0x20a')](_0x350236[_0x5e9bb0('0xbf7')]),_0xdc2803[_0x5e9bb0('0xe10')]({'title':_0x5e9bb0('0x2eb'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x52a3cc('0x253d')](function(_0x2c391a){var _0x435404=_0x52a3cc;_0xdc2803['error']({'title':_0x2c391a[_0x435404('0x2fa')]?_0x435404('0x16c2')+_0x2c391a['status']+_0x435404('0x169e')+_0x2c391a[_0x435404('0x24df')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x2c391a['status']?JSON[_0x435404('0xa48')](_0x2c391a[_0x435404('0x10fd')]):_0x2c391a[_0x435404('0x684')]()});});}function _0x16ed29(){_0x43b2b5['hide']();}}const _0x55993c=_0x483f72;_0x1fba83[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x21c6'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x1fba83(_0x25ed05,_0x127203,_0xa8dd32,_0x19946a,_0x122224,_0x1d5bcd,_0x1aa9a9,_0x4d3d2a){var _0x402a10=_0x1a8446,_0x4cf0e2=this;_0x4cf0e2[_0x402a10('0x7fc')]=_0x1aa9a9[_0x402a10('0xacc')](),_0x4cf0e2[_0x402a10('0x21c6')]=_0x122224,_0x4cf0e2[_0x402a10('0xada')]=_0x4d3d2a,_0x4cf0e2[_0x402a10('0x1a30')]=[],_0x4cf0e2[_0x402a10('0x11b9')]=[],_0x4cf0e2['selectedItems']=[],_0x4cf0e2[_0x402a10('0x215b')]=[],_0x4cf0e2['startingSelectedItems']=[],_0x4cf0e2['pendingChanges']=![],_0x4cf0e2[_0x402a10('0x1c23')]={'readOnly':!_0x4cf0e2[_0x402a10('0xada')][_0x402a10('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x402a10('0x25d6'),'line1':_0x402a10('0x25d6'),'line2':'','line3':'','labelAll':_0x1d5bcd[_0x402a10('0x213f')]('MAIL.ALL_TEAMS'),'labelSelected':_0x1d5bcd[_0x402a10('0x213f')](_0x402a10('0x10f5')),'transferCallback':function _0x24f75b(){var _0x41be09=_0x402a10,_0x18f685=_0x51538b()['xorBy'](_0x4cf0e2[_0x41be09('0x214a')],_0x4cf0e2[_0x41be09('0xbf7')],'id');_0x4cf0e2[_0x41be09('0xc54')]=_0x51538b()['isEmpty'](_0x18f685)?![]:!![];}},_0x4cf0e2[_0x402a10('0x2318')]=_0x152ff9,_0x4cf0e2[_0x402a10('0x2507')]=_0x33f0df,_0x4cf0e2[_0x402a10('0x2023')]=_0x85083f;function _0x152ff9(){var _0x436f20=_0x402a10;return _0x1aa9a9[_0x436f20('0x26e8')](_0x436f20('0x178b'))?_0x5a5094()[_0x436f20('0x253d')](function(_0xbe0bc7){var _0x4a8254=_0x436f20;_0xa8dd32[_0x4a8254('0x187f')]({'title':_0xbe0bc7[_0x4a8254('0x2fa')]?'API:'+_0xbe0bc7[_0x4a8254('0x2fa')]+_0x4a8254('0x169e')+_0xbe0bc7[_0x4a8254('0x24df')]:_0x4a8254('0x4b3'),'msg':_0xbe0bc7[_0x4a8254('0x2fa')]?JSON[_0x4a8254('0xa48')](_0xbe0bc7[_0x4a8254('0x10fd')]):_0xbe0bc7['toString']()});}):_0x13ffa7()[_0x436f20('0xaa5')](function(_0xc2a40c){var _0x290e7e=_0x436f20;return _0x4cf0e2[_0x290e7e('0x224d')]=_0xc2a40c,_0x5a5094();})[_0x436f20('0x253d')](function(_0xab1fbf){var _0x373ca4=_0x436f20;_0xa8dd32[_0x373ca4('0x187f')]({'title':_0xab1fbf[_0x373ca4('0x2fa')]?_0x373ca4('0x16c2')+_0xab1fbf[_0x373ca4('0x2fa')]+_0x373ca4('0x169e')+_0xab1fbf[_0x373ca4('0x24df')]:'SYSTEM:GET_TEAMS','msg':_0xab1fbf[_0x373ca4('0x2fa')]?JSON[_0x373ca4('0xa48')](_0xab1fbf[_0x373ca4('0x10fd')]):_0xab1fbf[_0x373ca4('0x684')]()});});}function _0x13ffa7(){return _0x127203(function(_0x205c3b,_0x1c0f45){var _0x4f5832=a0_0x1149;_0x19946a[_0x4f5832('0x1a50')][_0x4f5832('0x2122')]({'userProfileId':_0x4cf0e2[_0x4f5832('0x7fc')]['userProfileId'],'name':_0x4f5832('0x10ee')})['$promise']['then'](function(_0x23f706){var _0x8464dc=_0x4f5832,_0x29d9d8=_0x23f706&&_0x23f706[_0x8464dc('0x580')]?_0x23f706[_0x8464dc('0x580')][0x0]:null;_0x205c3b(_0x29d9d8);})['catch'](function(_0x50c06c){_0x1c0f45(_0x50c06c);});});}function _0x5a5094(){return _0x127203(function(_0x2cb289,_0x348f8d){var _0x317acc=a0_0x1149;return _0x3037ab()[_0x317acc('0xaa5')](function(_0x4261ae){var _0x2908d9=_0x317acc;return _0x4cf0e2[_0x2908d9('0x1a30')]=_0x4261ae[_0x2908d9('0x580')]?_0x4261ae[_0x2908d9('0x580')]:[],_0x1aa9a9[_0x2908d9('0x26e8')]('admin')?_0x4261ae:_0x4cf0e2[_0x2908d9('0x224d')]?_0x4cf0e2['section'][_0x2908d9('0x26cc')]?_0x4261ae:_0x113e1c():null;})[_0x317acc('0xaa5')](function(_0x314bf2){var _0x41c084=_0x317acc,_0x23d95a=_0x314bf2&&_0x314bf2['rows']?_0x314bf2[_0x41c084('0x580')]:[];return _0x4cf0e2[_0x41c084('0x11b9')]=_0x51538b()[_0x41c084('0x1246')](_0x23d95a,function(_0x40f6bc){var _0x36c2fb=_0x41c084;return _0x51538b()[_0x36c2fb('0xe9e')](_0x4cf0e2['items'],{'id':_0x1aa9a9[_0x36c2fb('0x26e8')](_0x36c2fb('0x178b'))||_0x4cf0e2[_0x36c2fb('0x224d')][_0x36c2fb('0x26cc')]?_0x40f6bc['id']:_0x40f6bc['resourceId']});}),_0x4cf0e2[_0x41c084('0x1a30')][_0x41c084('0x15b5')](function(_0x5843de){var _0x5ecad1=_0x41c084,_0x1c4704=_0x51538b()[_0x5ecad1('0xe9e')](_0x4cf0e2[_0x5ecad1('0x11b9')],{'id':_0x5843de['id']});_0x1aa9a9['hasRole'](_0x5ecad1('0x178b'))?_0x5843de[_0x5ecad1('0x145d')]=!![]:_0x5843de[_0x5ecad1('0x145d')]=typeof _0x1c4704!==_0x5ecad1('0x1574')?!![]:![];}),_0xf54943();})[_0x317acc('0xaa5')](function(_0x598588){var _0x56b9ad=_0x317acc,_0x15e7de=_0x598588&&_0x598588[_0x56b9ad('0x580')]?_0x598588[_0x56b9ad('0x580')]:[];_0x4cf0e2[_0x56b9ad('0xbf7')]=_0x51538b()[_0x56b9ad('0x1246')](_0x15e7de,function(_0x5c7605){var _0xb1dd1f=_0x56b9ad;return _0x51538b()['find'](_0x4cf0e2[_0xb1dd1f('0x1a30')],{'id':_0x5c7605['id']});}),_0x4cf0e2[_0x56b9ad('0x214a')]=angular[_0x56b9ad('0x20a')](_0x4cf0e2['selectedItems']),_0x4cf0e2[_0x56b9ad('0x1c23')][_0x56b9ad('0xbf7')]=_0x4cf0e2[_0x56b9ad('0xbf7')],_0x4cf0e2[_0x56b9ad('0x1c23')][_0x56b9ad('0x1a30')]=_0x51538b()['differenceBy'](_0x4cf0e2['allowedItems'],_0x4cf0e2[_0x56b9ad('0x1c23')]['selectedItems'],'id'),_0x2cb289();})[_0x317acc('0x253d')](function(_0x20768e){_0x348f8d(_0x20768e);});});}function _0x113e1c(){return _0x127203(function(_0x4054bb,_0x235ad5){var _0x24ff87=a0_0x1149;return _0x19946a[_0x24ff87('0x249a')]['get']({'sectionId':_0x4cf0e2[_0x24ff87('0x224d')]['id'],'nolimit':!![]})[_0x24ff87('0x1dc2')][_0x24ff87('0xaa5')](function(_0x4704b9){_0x4054bb(_0x4704b9);})['catch'](function(_0xc33619){_0x235ad5(_0xc33619);});});}function _0xf54943(){return _0x127203(function(_0x1179ba,_0x5cc3a6){var _0x280430=a0_0x1149;return _0x19946a['mailQueue'][_0x280430('0x1067')]({'id':_0x4cf0e2[_0x280430('0x21c6')]['id'],'fields':_0x280430('0x17fe'),'nolimit':!![]})[_0x280430('0x1dc2')][_0x280430('0xaa5')](function(_0x4a32cc){_0x1179ba(_0x4a32cc);})[_0x280430('0x253d')](function(_0x4febe2){_0x5cc3a6(_0x4febe2);});});}function _0x3037ab(){return _0x127203(function(_0x544d9e,_0x11b0c3){var _0x23c632=a0_0x1149;return _0x19946a[_0x23c632('0x257c')][_0x23c632('0x2122')]({'fields':_0x23c632('0x17fe'),'nolimit':!![]})[_0x23c632('0x1dc2')][_0x23c632('0xaa5')](function(_0x4035fe){_0x544d9e(_0x4035fe);})[_0x23c632('0x253d')](function(_0x263255){_0x11b0c3(_0x263255);});});}function _0x4caf4f(_0x464692){return _0x127203(function(_0xa7eb03,_0x12523e){var _0x20a497=a0_0x1149;_0x51538b()[_0x20a497('0x116b')](_0x464692)?_0xa7eb03():_0x19946a[_0x20a497('0x21c6')][_0x20a497('0x2479')]({'id':_0x4cf0e2[_0x20a497('0x21c6')]['id'],'ids':_0x51538b()[_0x20a497('0x1246')](_0x464692,'id')})[_0x20a497('0x1dc2')]['then'](function(){_0xa7eb03();})['catch'](function(_0x4137ff){_0x12523e(_0x4137ff);});});}function _0x47d30c(_0x4be1a2){return _0x127203(function(_0x21e850,_0x2fb409){var _0x3283e8=a0_0x1149;_0x51538b()[_0x3283e8('0x116b')](_0x4be1a2)?_0x21e850():_0x19946a[_0x3283e8('0x21c6')][_0x3283e8('0x24b0')]({'id':_0x4cf0e2['mailQueue']['id'],'ids':_0x51538b()[_0x3283e8('0x1246')](_0x4be1a2,'id')})[_0x3283e8('0x1dc2')][_0x3283e8('0xaa5')](function(){_0x21e850();})['catch'](function(_0x58c687){_0x2fb409(_0x58c687);});});}function _0x33f0df(){var _0x57368e=_0x402a10,_0x9b3283=_0x51538b()[_0x57368e('0x1ebb')](_0x4cf0e2[_0x57368e('0x214a')],_0x4cf0e2[_0x57368e('0xbf7')],'id'),_0x310241=_0x51538b()[_0x57368e('0x1ebb')](_0x4cf0e2[_0x57368e('0xbf7')],_0x4cf0e2[_0x57368e('0x214a')],'id');return _0x47d30c(_0x9b3283)[_0x57368e('0xaa5')](function(){return _0x4caf4f(_0x310241);})['then'](function(){var _0xa3aaad=_0x57368e;_0x4cf0e2[_0xa3aaad('0xc54')]=![],_0x4cf0e2[_0xa3aaad('0x215b')]=angular['copy'](_0x4cf0e2[_0xa3aaad('0x11b9')]),_0x4cf0e2[_0xa3aaad('0x214a')]=angular[_0xa3aaad('0x20a')](_0x4cf0e2[_0xa3aaad('0xbf7')]),_0xa8dd32[_0xa3aaad('0xe10')]({'title':'SUCCESS','msg':_0xa3aaad('0x1e1f')});})['catch'](function(_0x2dae55){var _0x47cc86=_0x57368e;_0xa8dd32[_0x47cc86('0x187f')]({'title':_0x2dae55[_0x47cc86('0x2fa')]?'API:'+_0x2dae55[_0x47cc86('0x2fa')]+_0x47cc86('0x169e')+_0x2dae55['statusText']:_0x47cc86('0x2281'),'msg':_0x2dae55[_0x47cc86('0x2fa')]?JSON[_0x47cc86('0xa48')](_0x2dae55[_0x47cc86('0x10fd')]):_0x2dae55['toString']()});});}function _0x85083f(){_0x25ed05['hide']();}}const _0x414ef5=_0x1fba83,_0x28625c=_0x4fb511['p']+_0x1a8446('0x9f4');_0x42b253[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x21c6'),_0x1a8446('0x1a50')];function _0x42b253(_0x5df031,_0x22d4f1,_0x3c0e7a,_0xde8ba7,_0x49fb6d,_0x5cb92e,_0x5537e2,_0x1cf0ac,_0x32a4ce,_0x280168,_0x4c5865,_0x5ca06b){var _0x4fd322=_0x1a8446,_0x5b32d6=this;_0x5b32d6[_0x4fd322('0x7fc')]=_0x280168['getCurrentUser'](),_0x5b32d6[_0x4fd322('0x1202')]=_0x5cb92e,_0x5b32d6['setting']=_0x5537e2,_0x5b32d6['passwordPattern']=_0x5b32d6[_0x4fd322('0x143f')][_0x4fd322('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b32d6['location']=_0x22d4f1[_0x4fd322('0x1cc2')]()+_0x4fd322('0x356')+_0x22d4f1['host'](),_0x5b32d6[_0x4fd322('0x21c6')]=_0x4c5865||_0x5df031[_0x4fd322('0x25cf')]['mailQueue']||{},_0x5b32d6[_0x4fd322('0x1a50')]=_0x5ca06b&&_0x5ca06b[_0x4fd322('0xd15')]==0x1?_0x5ca06b['rows'][0x0]:null,_0x5b32d6[_0x4fd322('0xada')]=_0x280168[_0x4fd322('0xffd')](_0x5b32d6[_0x4fd322('0x1a50')]?_0x5b32d6[_0x4fd322('0x1a50')][_0x4fd322('0xada')]:null),_0x5b32d6[_0x4fd322('0x9f0')]={},_0x5b32d6[_0x4fd322('0xe5c')]=_0x5df031[_0x4fd322('0x25cf')][_0x4fd322('0x25c2')]||0x0,_0x5b32d6[_0x4fd322('0x158f')]=_0x5675ae,_0x5b32d6['agentadddialog']=_0x35df4e,_0x5b32d6[_0x4fd322('0xc10')]=_0x32a4ce[_0x4fd322('0x3a1')],_0x5b32d6[_0x4fd322('0x250f')]=_0x72ee76,_0x5b32d6[_0x4fd322('0xef7')]=_0x3fbee3;function _0x5675ae(_0x29ca58,_0x10581e){var _0x4ceb46=_0x4fd322;_0x3c0e7a['show']({'controller':_0x4ceb46('0xa2f'),'controllerAs':'vm','templateUrl':_0x28625c,'parent':angular[_0x4ceb46('0x1aa8')](_0xde8ba7['body']),'targetEvent':_0x10581e,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x29ca58,'mailQueues':_0x5b32d6[_0x4ceb46('0x1073')]?_0x5b32d6[_0x4ceb46('0x1073')][_0x4ceb46('0x580')]:[],'crudPermissions':_0x5b32d6[_0x4ceb46('0xada')]}});}function _0x35df4e(_0x2037d6,_0x14fcd1){var _0x526b44=_0x4fd322;_0x3c0e7a[_0x526b44('0x1e6d')]({'controller':_0x526b44('0x4ee'),'controllerAs':'vm','templateUrl':_0x43f284,'parent':angular[_0x526b44('0x1aa8')](_0xde8ba7[_0x526b44('0x54c')]),'targetEvent':_0x14fcd1,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x2037d6,'mailQueues':_0x5b32d6['mailQueues']?_0x5b32d6[_0x526b44('0x1073')][_0x526b44('0x580')]:[],'crudPermissions':_0x5b32d6[_0x526b44('0xada')],'realtime':![]}});}function _0x72ee76(){var _0x6cd9e1=_0x4fd322;_0x5df031['go']('app.mail.mailQueues',{},{'reload':_0x6cd9e1('0x14fd')});}function _0x3fbee3(){var _0x4fa193=_0x4fd322;_0x1cf0ac[_0x4fa193('0x21c6')][_0x4fa193('0x264e')]({'id':_0x5b32d6[_0x4fa193('0x21c6')]['id']},_0x5b32d6[_0x4fa193('0x21c6')])['$promise']['then'](function(){var _0x31292a=_0x4fa193;_0x32a4ce['success']({'title':_0x31292a('0x9cc'),'msg':_0x5b32d6[_0x31292a('0x21c6')][_0x31292a('0x25d6')]?_0x5b32d6['mailQueue'][_0x31292a('0x25d6')]+_0x31292a('0x1734'):''});})[_0x4fa193('0x253d')](function(_0x1a86ab){var _0x420d0f=_0x4fa193;_0x32a4ce[_0x420d0f('0x187f')]({'title':_0x1a86ab[_0x420d0f('0x2fa')]?'API:'+_0x1a86ab[_0x420d0f('0x2fa')]+_0x420d0f('0x169e')+_0x1a86ab['statusText']:'SYSTEM:GETmailQueue','msg':_0x1a86ab['data']?JSON['stringify'](_0x1a86ab[_0x420d0f('0x10fd')]):_0x1a86ab[_0x420d0f('0x684')]()});});}}const _0x56c927=_0x42b253;_0x39d89c[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),'mailQueues',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x39d89c(_0x598d44,_0x535ec6,_0x426152,_0x35175c,_0x1f1745,_0x44cff2,_0x536171,_0x49c36b,_0x5d7ac1,_0x249e2e,_0x313b77,_0x22e846,_0x1ae606,_0x58dd11,_0x48774d,_0x4114a6,_0x78d92b){var _0x503b4b=_0x1a8446,_0x4229b4=this;_0x4229b4[_0x503b4b('0x1202')]=_0x4114a6,_0x4229b4[_0x503b4b('0x143f')]=_0x78d92b,_0x4229b4[_0x503b4b('0x7fc')]=_0x48774d['getCurrentUser'](),_0x4229b4[_0x503b4b('0x1073')]=_0x5d7ac1||{'count':0x0,'rows':[]},_0x4229b4[_0x503b4b('0x1e97')]=_0x249e2e,_0x4229b4[_0x503b4b('0x1a50')]=_0x313b77&&_0x313b77[_0x503b4b('0xd15')]==0x1?_0x313b77['rows'][0x0]:null,_0x4229b4[_0x503b4b('0xada')]=_0x48774d['parseCrudPermissions'](_0x4229b4[_0x503b4b('0x1a50')]?_0x4229b4[_0x503b4b('0x1a50')][_0x503b4b('0xada')]:null),_0x4229b4['table']=_0x503b4b('0x1073'),_0x4229b4[_0x503b4b('0x164')]='',_0x4229b4[_0x503b4b('0x8cc')]=null,_0x4229b4['selectedMailQueues']=[],_0x4229b4['query']={'fields':_0x503b4b('0x698'),'sort':_0x503b4b('0xd82'),'channel':_0x503b4b('0x14c5'),'limit':0xa,'page':0x1},_0x4229b4['arraystrategy']=_0x51538b()[_0x503b4b('0x184a')]([{'option':_0x503b4b('0x263b'),'value':_0x503b4b('0x12ea')},{'option':'RR\x20Memory','value':_0x503b4b('0x2576')}],function(_0x35cffe){return _0x51538b()['replace'](_0x35cffe['value'],new RegExp('\x27','g'),'');}),_0x4229b4['editstate']=_0x57e259,_0x4229b4[_0x503b4b('0x158f')]=_0x58258e,_0x4229b4['agentadddialog']=_0x51037c,_0x4229b4[_0x503b4b('0x271')]=_0x2e9f42,_0x4229b4[_0x503b4b('0x2389')]=_0x4ee75d,_0x4229b4[_0x503b4b('0xe10')]=_0x3c01ea,_0x4229b4[_0x503b4b('0x2777')]=_0x4c0752,_0x4229b4[_0x503b4b('0x2027')]=_0x50b870,_0x4229b4[_0x503b4b('0x1f73')]=_0x37e447,_0x4229b4['exportSelectedMailQueues']=_0x1a2380,_0x4229b4[_0x503b4b('0x4cc')]=_0x2b317e,_0x4229b4[_0x503b4b('0x5e6')]=_0x169dba,_0x4229b4[_0x503b4b('0x2640')]=_0x51e305;function _0x57e259(_0x5a039f){_0x426152['go']('app.mail.mailQueues.edit',{'id':_0x5a039f['id'],'mailQueue':_0x5a039f,'crudPermissions':_0x4229b4['crudPermissions']});}function _0x58258e(_0x13476e,_0x5ccbf6){var _0x100a7d=_0x503b4b;_0x1f1745[_0x100a7d('0x1e6d')]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x28625c,'parent':angular['element'](_0x44cff2[_0x100a7d('0x54c')]),'targetEvent':_0x5ccbf6,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x13476e,'mailQueues':_0x4229b4[_0x100a7d('0x1073')]?_0x4229b4[_0x100a7d('0x1073')]['rows']:[],'crudPermissions':_0x4229b4[_0x100a7d('0xada')]}});}function _0x51037c(_0xd7dd6f,_0x28e69e){var _0x34133f=_0x503b4b;_0x1f1745[_0x34133f('0x1e6d')]({'controller':_0x34133f('0x4ee'),'controllerAs':'vm','templateUrl':_0x43f284,'parent':angular['element'](_0x44cff2[_0x34133f('0x54c')]),'targetEvent':_0x28e69e,'clickOutsideToClose':!![],'locals':{'mailQueue':_0xd7dd6f,'mailQueues':_0x4229b4[_0x34133f('0x1073')]?_0x4229b4[_0x34133f('0x1073')]['rows']:[],'crudPermissions':_0x4229b4[_0x34133f('0xada')],'realtime':![]}});}function _0x2e9f42(_0x138481,_0x5cdf95){var _0x1d8ad3=_0x503b4b,_0x51f4b1=_0x1f1745[_0x1d8ad3('0x281e')]()['title'](_0x1d8ad3('0x88d')+_0x51538b()['startCase'](_0x1d8ad3('0x21c6'))+'?')[_0x1d8ad3('0x102e')](_0x1d8ad3('0x389')+(_0x138481['name']||_0x1d8ad3('0x21c6'))+_0x1d8ad3('0x697')+_0x1d8ad3('0x210d'))[_0x1d8ad3('0x5b5')](_0x1d8ad3('0x2596'))[_0x1d8ad3('0x116d')](_0x5cdf95)['ok']('OK')[_0x1d8ad3('0x2030')](_0x1d8ad3('0x2410'));_0x1f1745['show'](_0x51f4b1)['then'](function(){_0x37e447(_0x138481);},function(){var _0x1c7248=_0x1d8ad3;console['log'](_0x1c7248('0x2410'));});}function _0x4ee75d(){var _0x3ed947=_0x503b4b;if(_0x48774d[_0x3ed947('0x26e8')](_0x3ed947('0x178b')))_0x426152['go'](_0x3ed947('0x1054'),{});else return _0x22e846['userProfileSection'][_0x3ed947('0x2122')]({'userProfileId':_0x48774d['getCurrentUser']()['userProfileId'],'sectionId':0x262})['$promise'][_0x3ed947('0xaa5')](function(_0x120d57){var _0xcb22ad=_0x3ed947,_0x2d2667=_0x120d57&&_0x120d57['rows']?_0x120d57[_0xcb22ad('0x580')][0x0]:null;_0x2d2667&&_0x2d2667[_0xcb22ad('0xbd3')]?_0x426152['go'](_0xcb22ad('0x1054'),{}):_0x58dd11[_0xcb22ad('0x3a1')]({'title':_0x49c36b[_0xcb22ad('0x213f')](_0xcb22ad('0x1aab')),'msg':_0x49c36b[_0xcb22ad('0x213f')](_0xcb22ad('0x251c'))});})['catch'](function(_0x134b4a){var _0x43ff5e=_0x3ed947;_0x58dd11['error']({'title':_0x134b4a[_0x43ff5e('0x2fa')]?'API:'+_0x134b4a[_0x43ff5e('0x2fa')]+_0x43ff5e('0x169e')+_0x134b4a[_0x43ff5e('0x24df')]:_0x43ff5e('0x21d5'),'msg':_0x134b4a[_0x43ff5e('0x2fa')]?JSON[_0x43ff5e('0xa48')](_0x134b4a[_0x43ff5e('0x10fd')]):_0x134b4a[_0x43ff5e('0x684')]()});});}var _0x1d618c=!![],_0x2450a6=0x1;_0x598d44[_0x503b4b('0x1ccf')](_0x503b4b('0x1788'),function(_0x36a360,_0x2328d8){var _0x5569f2=_0x503b4b;_0x1d618c?_0x536171(function(){_0x1d618c=![];}):(!_0x2328d8&&(_0x2450a6=_0x4229b4[_0x5569f2('0x582')][_0x5569f2('0x41')]),_0x36a360!==_0x2328d8&&(_0x4229b4[_0x5569f2('0x582')][_0x5569f2('0x41')]=0x1),!_0x36a360&&(_0x4229b4[_0x5569f2('0x582')][_0x5569f2('0x41')]=_0x2450a6),_0x4229b4[_0x5569f2('0x2777')]());});function _0x3c01ea(_0x47ed07){_0x4229b4['mailQueues']=_0x47ed07||{'count':0x0,'rows':[]};}function _0x4c0752(){var _0x357417=_0x503b4b;_0x4229b4[_0x357417('0x582')][_0x357417('0x8b1')]=(_0x4229b4[_0x357417('0x582')][_0x357417('0x41')]-0x1)*_0x4229b4['query'][_0x357417('0xf4d')],_0x48774d[_0x357417('0x26e8')](_0x357417('0x178b'))?_0x4229b4['promise']=_0x22e846[_0x357417('0x21c6')][_0x357417('0x2122')](_0x4229b4[_0x357417('0x582')],_0x3c01ea)[_0x357417('0x1dc2')]:(_0x4229b4[_0x357417('0x582')]['id']=_0x4229b4[_0x357417('0x1e97')]['id'],_0x4229b4[_0x357417('0x582')]['section']='MailQueues',_0x4229b4[_0x357417('0x159a')]=_0x22e846[_0x357417('0x1e97')][_0x357417('0x1cf1')](_0x4229b4[_0x357417('0x582')],_0x3c01ea)[_0x357417('0x1dc2')]);}function _0x50b870(_0x4c6bd9,_0x1e67a4){var _0x127995=_0x503b4b;_0x1f1745[_0x127995('0x1e6d')]({'controller':_0x127995('0x1e52'),'controllerAs':'vm','templateUrl':_0x2d4212,'parent':angular['element'](_0x44cff2[_0x127995('0x54c')]),'targetEvent':_0x4c6bd9,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x1e67a4,'mailQueues':_0x4229b4[_0x127995('0x1073')]['rows'],'license':_0x4229b4['license'],'setting':_0x4229b4[_0x127995('0x143f')],'crudPermissions':_0x4229b4[_0x127995('0xada')]}});}function _0x37e447(_0x3e223e){var _0x280b72=_0x503b4b;_0x22e846['mailQueue'][_0x280b72('0x926')]({'id':_0x3e223e['id']})[_0x280b72('0x1dc2')][_0x280b72('0xaa5')](function(){var _0x3a25db=_0x280b72;_0x51538b()[_0x3a25db('0xf6d')](_0x4229b4['mailQueues'][_0x3a25db('0x580')],{'id':_0x3e223e['id']}),_0x4229b4[_0x3a25db('0x1073')][_0x3a25db('0xd15')]-=0x1,!_0x4229b4[_0x3a25db('0x1073')][_0x3a25db('0x580')][_0x3a25db('0x2587')]&&_0x4229b4[_0x3a25db('0x2777')](),_0x58dd11[_0x3a25db('0xe10')]({'title':_0x51538b()[_0x3a25db('0x196a')]('MailQueue')+_0x3a25db('0x8bb'),'msg':_0x3e223e[_0x3a25db('0x25d6')]?_0x3e223e['name']+_0x3a25db('0xcd9'):''});})[_0x280b72('0x253d')](function(_0x48fc83){var _0x51c92d=_0x280b72;if(_0x48fc83[_0x51c92d('0x10fd')]&&_0x48fc83[_0x51c92d('0x10fd')]['errors']&&_0x48fc83[_0x51c92d('0x10fd')][_0x51c92d('0x4c6')][_0x51c92d('0x2587')]){_0x4229b4['errors']=_0x48fc83['data'][_0x51c92d('0x4c6')]||[{'message':_0x48fc83[_0x51c92d('0x684')](),'type':_0x51c92d('0x13e6')}];for(var _0x2d4270=0x0;_0x2d4270<_0x48fc83[_0x51c92d('0x10fd')][_0x51c92d('0x4c6')][_0x51c92d('0x2587')];_0x2d4270++){_0x58dd11[_0x51c92d('0x187f')]({'title':_0x48fc83[_0x51c92d('0x10fd')]['errors'][_0x2d4270][_0x51c92d('0x6c8')],'msg':_0x48fc83[_0x51c92d('0x10fd')][_0x51c92d('0x4c6')][_0x2d4270][_0x51c92d('0x1402')]});}}else _0x58dd11[_0x51c92d('0x187f')]({'title':_0x48fc83[_0x51c92d('0x2fa')]?'API:'+_0x48fc83[_0x51c92d('0x2fa')]+_0x51c92d('0x169e')+_0x48fc83[_0x51c92d('0x24df')]:_0x51c92d('0x13e6'),'msg':_0x48fc83[_0x51c92d('0x10fd')]?JSON[_0x51c92d('0xa48')](_0x48fc83['data'][_0x51c92d('0x1402')]):_0x48fc83[_0x51c92d('0x1402')]||_0x48fc83[_0x51c92d('0x684')]()});});}function _0x1a2380(){var _0x2bb885=_0x503b4b,_0x3af66b=angular['copy'](_0x4229b4[_0x2bb885('0x1e7b')]);return _0x4229b4[_0x2bb885('0x1e7b')]=[],_0x3af66b;}function _0x2b317e(_0x205108){var _0x197f6d=_0x503b4b,_0x54ff54=_0x1f1745[_0x197f6d('0x281e')]()[_0x197f6d('0x110a')](_0x197f6d('0x1177'))['htmlContent'](_0x197f6d('0x389')+_0x4229b4[_0x197f6d('0x1e7b')][_0x197f6d('0x2587')]+'\x20selected
'+_0x197f6d('0x210d'))['ariaLabel'](_0x197f6d('0x727'))['targetEvent'](_0x205108)['ok']('OK')[_0x197f6d('0x2030')](_0x197f6d('0x2410'));_0x1f1745[_0x197f6d('0x1e6d')](_0x54ff54)['then'](function(){var _0x1dbefc=_0x197f6d;_0x4229b4[_0x1dbefc('0x1e7b')]['forEach'](function(_0x4635d1){_0x37e447(_0x4635d1);}),_0x4229b4[_0x1dbefc('0x1e7b')]=[];});}function _0x169dba(){var _0x318cc0=_0x503b4b;_0x4229b4[_0x318cc0('0x1e7b')]=[];}function _0x51e305(){var _0x2fe7aa=_0x503b4b;_0x4229b4[_0x2fe7aa('0x1e7b')]=_0x4229b4['mailQueues'][_0x2fe7aa('0x580')];}}const _0x898be4=_0x39d89c;_0x4852cc['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x3fc'),'mailSubstatus',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x4852cc(_0x398c99,_0x574ef6,_0x137fb5,_0x463639,_0x35e0ae,_0x55dc6d,_0xc0e9fc,_0x124b2e,_0x47eb7a,_0x1fedef,_0xbd9655,_0x3200c1,_0x54fc7a,_0x36ee00){var _0x86b45=_0x1a8446,_0xc3249d=this;_0xc3249d[_0x86b45('0x7fc')]=_0xbd9655[_0x86b45('0xacc')](),_0xc3249d[_0x86b45('0x4c6')]=[],_0xc3249d[_0x86b45('0x143f')]=_0x54fc7a,_0xc3249d[_0x86b45('0x1202')]=_0x3200c1,_0xc3249d[_0x86b45('0xada')]=_0x36ee00,_0xc3249d['hasModulePermissions']={},_0xc3249d[_0x86b45('0x1d53')]=_0xc3249d[_0x86b45('0x143f')]&&_0xc3249d['setting'][_0x86b45('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xc3249d[_0x86b45('0x110a')]=_0x86b45('0x1d75'),_0xc3249d['mailSubstatus']=angular['copy'](_0x47eb7a),_0xc3249d[_0x86b45('0x3fc')]=_0x124b2e,_0xc3249d[_0x86b45('0x1b76')]=![];!_0xc3249d[_0x86b45('0x13b1')]&&(_0xc3249d[_0x86b45('0x13b1')]={},_0xc3249d[_0x86b45('0x110a')]='MAIL.NEW_MAILSUBSTATUS',_0xc3249d[_0x86b45('0x1b76')]=!![]);_0xc3249d['addNewMailSubstatus']=_0x532fc0,_0xc3249d[_0x86b45('0x3ab')]=_0x2e5e9b,_0xc3249d['deleteMailSubstatus']=_0x444e8b,_0xc3249d[_0x86b45('0xc09')]=_0xdc3e04,_0xc3249d[_0x86b45('0x2023')]=_0x54bb23;function _0x532fc0(){var _0x3ed528=_0x86b45;_0xc3249d[_0x3ed528('0x4c6')]=[],_0x1fedef[_0x3ed528('0x13b1')][_0x3ed528('0x242b')](_0xc3249d['mailSubstatus'])[_0x3ed528('0x1dc2')]['then'](function(_0x3400a2){var _0x2dc52f=_0x3ed528;_0xc3249d[_0x2dc52f('0x3fc')][_0x2dc52f('0x6ee')](_0x3400a2[_0x2dc52f('0x256a')]()),_0xc0e9fc['success']({'title':_0x2dc52f('0x1a5d'),'msg':_0xc3249d[_0x2dc52f('0x13b1')][_0x2dc52f('0x25d6')]?_0xc3249d[_0x2dc52f('0x13b1')][_0x2dc52f('0x25d6')]+_0x2dc52f('0xdca'):''}),_0x54bb23(_0x3400a2);})[_0x3ed528('0x253d')](function(_0x21f96e){var _0x142e60=_0x3ed528;if(_0x21f96e['data']&&_0x21f96e['data'][_0x142e60('0x4c6')]&&_0x21f96e[_0x142e60('0x10fd')]['errors']['length']){_0xc3249d[_0x142e60('0x4c6')]=_0x21f96e[_0x142e60('0x10fd')][_0x142e60('0x4c6')]||[{'message':_0x21f96e[_0x142e60('0x684')](),'type':'api.mailSubstatus.save'}];for(var _0x1ae51d=0x0;_0x1ae51d<_0x21f96e['data'][_0x142e60('0x4c6')][_0x142e60('0x2587')];_0x1ae51d+=0x1){_0xc0e9fc[_0x142e60('0x187f')]({'title':_0x21f96e[_0x142e60('0x10fd')][_0x142e60('0x4c6')][_0x1ae51d][_0x142e60('0x6c8')],'msg':_0x21f96e[_0x142e60('0x10fd')][_0x142e60('0x4c6')][_0x1ae51d][_0x142e60('0x1402')]});}}else _0xc0e9fc[_0x142e60('0x187f')]({'title':_0x21f96e[_0x142e60('0x2fa')]?_0x142e60('0x16c2')+_0x21f96e[_0x142e60('0x2fa')]+'\x20-\x20'+_0x21f96e[_0x142e60('0x24df')]:_0x142e60('0x1fe9'),'msg':_0x21f96e['data']?JSON[_0x142e60('0xa48')](_0x21f96e[_0x142e60('0x10fd')][_0x142e60('0x1402')]):_0x21f96e[_0x142e60('0x684')]()});});}function _0x2e5e9b(){var _0x26d4fe=_0x86b45;_0xc3249d[_0x26d4fe('0x4c6')]=[],_0x1fedef[_0x26d4fe('0x13b1')][_0x26d4fe('0x264e')]({'id':_0xc3249d[_0x26d4fe('0x13b1')]['id']},_0xc3249d[_0x26d4fe('0x13b1')])['$promise']['then'](function(_0x166f08){var _0x4c2997=_0x26d4fe,_0x47a79d=_0x51538b()[_0x4c2997('0xe9e')](_0xc3249d['mailSubtatuses'],{'id':_0x166f08['id']});_0x47a79d&&_0x51538b()[_0x4c2997('0x283c')](_0x47a79d,_0x51538b()['pick'](_0x166f08[_0x4c2997('0x256a')](),_0x51538b()['keys'](_0x47a79d))),_0xc0e9fc[_0x4c2997('0xe10')]({'title':_0x4c2997('0x11e4'),'msg':_0xc3249d[_0x4c2997('0x13b1')][_0x4c2997('0x25d6')]?_0xc3249d[_0x4c2997('0x13b1')][_0x4c2997('0x25d6')]+_0x4c2997('0x20bf'):''}),_0x54bb23(_0x166f08);})[_0x26d4fe('0x253d')](function(_0x5d5b4b){var _0x4d8c95=_0x26d4fe;if(_0x5d5b4b[_0x4d8c95('0x10fd')]&&_0x5d5b4b[_0x4d8c95('0x10fd')][_0x4d8c95('0x4c6')]&&_0x5d5b4b[_0x4d8c95('0x10fd')]['errors']['length']){_0xc3249d['errors']=_0x5d5b4b[_0x4d8c95('0x10fd')][_0x4d8c95('0x4c6')]||[{'message':_0x5d5b4b[_0x4d8c95('0x684')](),'type':'api.mailSubstatus.update'}];for(var _0x302287=0x0;_0x302287<_0x5d5b4b['data'][_0x4d8c95('0x4c6')][_0x4d8c95('0x2587')];_0x302287++){_0xc0e9fc[_0x4d8c95('0x187f')]({'title':_0x5d5b4b['data'][_0x4d8c95('0x4c6')][_0x302287][_0x4d8c95('0x6c8')],'msg':_0x5d5b4b['data']['errors'][_0x302287][_0x4d8c95('0x1402')]});}}else _0xc0e9fc[_0x4d8c95('0x187f')]({'title':_0x5d5b4b[_0x4d8c95('0x2fa')]?_0x4d8c95('0x16c2')+_0x5d5b4b['status']+_0x4d8c95('0x169e')+_0x5d5b4b['statusText']:'api.mailSubstatus.update','msg':_0x5d5b4b[_0x4d8c95('0x10fd')]?JSON[_0x4d8c95('0xa48')](_0x5d5b4b[_0x4d8c95('0x10fd')][_0x4d8c95('0x1402')]):_0x5d5b4b[_0x4d8c95('0x684')]()});});}function _0x444e8b(_0x395e32){var _0x2f4a48=_0x86b45;_0xc3249d[_0x2f4a48('0x4c6')]=[];var _0x192208=_0x463639[_0x2f4a48('0x281e')]()['title'](_0x2f4a48('0x12a3'))['content'](_0x2f4a48('0x2292'))[_0x2f4a48('0x5b5')](_0x2f4a48('0x171e'))['ok'](_0x2f4a48('0x1e76'))[_0x2f4a48('0x2030')](_0x2f4a48('0x9c6'))['targetEvent'](_0x395e32);_0x463639['show'](_0x192208)[_0x2f4a48('0xaa5')](function(){var _0x59977e=_0x2f4a48;_0x1fedef['mailSubstatus'][_0x59977e('0x926')]({'id':_0xc3249d[_0x59977e('0x13b1')]['id']})[_0x59977e('0x1dc2')][_0x59977e('0xaa5')](function(){var _0x3762a0=_0x59977e;_0x51538b()[_0x3762a0('0xf6d')](_0xc3249d[_0x3762a0('0x3fc')],{'id':_0xc3249d[_0x3762a0('0x13b1')]['id']}),_0xc0e9fc['success']({'title':_0x3762a0('0x1d24'),'msg':(_0xc3249d[_0x3762a0('0x13b1')][_0x3762a0('0x25d6')]||_0x3762a0('0x13b1'))+_0x3762a0('0xcd9')}),_0x54bb23(_0xc3249d[_0x3762a0('0x13b1')]);})['catch'](function(_0x2d348a){var _0x4aa8ba=_0x59977e;if(_0x2d348a[_0x4aa8ba('0x10fd')]&&_0x2d348a[_0x4aa8ba('0x10fd')][_0x4aa8ba('0x4c6')]&&_0x2d348a[_0x4aa8ba('0x10fd')]['errors'][_0x4aa8ba('0x2587')]){_0xc3249d['errors']=_0x2d348a['data'][_0x4aa8ba('0x4c6')]||[{'message':_0x2d348a['toString'](),'type':_0x4aa8ba('0x1af7')}];for(var _0x2d20ad=0x0;_0x2d20ad<_0x2d348a['data']['errors']['length'];_0x2d20ad++){_0xc0e9fc[_0x4aa8ba('0x187f')]({'title':_0x2d348a[_0x4aa8ba('0x10fd')][_0x4aa8ba('0x4c6')][_0x2d20ad][_0x4aa8ba('0x6c8')],'msg':_0x2d348a[_0x4aa8ba('0x10fd')][_0x4aa8ba('0x4c6')][_0x2d20ad]['message']});}}else _0xc0e9fc[_0x4aa8ba('0x187f')]({'title':_0x2d348a[_0x4aa8ba('0x2fa')]?'API:'+_0x2d348a[_0x4aa8ba('0x2fa')]+_0x4aa8ba('0x169e')+_0x2d348a['statusText']:_0x4aa8ba('0x1af7'),'msg':_0x2d348a[_0x4aa8ba('0x10fd')]?JSON['stringify'](_0x2d348a[_0x4aa8ba('0x10fd')][_0x4aa8ba('0x1402')]):_0x2d348a[_0x4aa8ba('0x1402')]||_0x2d348a[_0x4aa8ba('0x684')]()});});},function(){});}function _0xdc3e04(_0x1f6f84){return _0x1f6f84===null?undefined:new Date(_0x1f6f84);}function _0x54bb23(_0x5a314a){var _0x2bacf4=_0x86b45;_0x463639[_0x2bacf4('0x1120')](_0x5a314a);}}const _0x1dc5ca=_0x4852cc,_0x4ffa77=_0x4fb511['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog-[chunkhash].html';_0x4d672e[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x3fc'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'license','setting'];function _0x4d672e(_0x3ed2b0,_0x477826,_0x264a1a,_0x38658f,_0x571ffa,_0x11246e,_0x262d70,_0x1a3cc6,_0x517b59,_0x4ed676,_0x49b72f,_0x336999,_0x535a90,_0x40c3cd,_0x323951,_0x14a24b,_0x3cc492){var _0x1f5fc8=_0x1a8446,_0xd84bf9=this;_0xd84bf9[_0x1f5fc8('0x1202')]=_0x14a24b,_0xd84bf9[_0x1f5fc8('0x143f')]=_0x3cc492,_0xd84bf9[_0x1f5fc8('0x7fc')]=_0x323951[_0x1f5fc8('0xacc')](),_0xd84bf9['mailSubtatuses']=_0x517b59||{'count':0x0,'rows':[]},_0xd84bf9[_0x1f5fc8('0x1e97')]=_0x4ed676,_0xd84bf9[_0x1f5fc8('0x1a50')]=_0x49b72f&&_0x49b72f[_0x1f5fc8('0xd15')]==0x1?_0x49b72f[_0x1f5fc8('0x580')][0x0]:null,_0xd84bf9[_0x1f5fc8('0xada')]=_0x323951[_0x1f5fc8('0xffd')](_0xd84bf9[_0x1f5fc8('0x1a50')]?_0xd84bf9['userProfileSection'][_0x1f5fc8('0xada')]:null),_0xd84bf9['table']='mailSubtatuses',_0xd84bf9[_0x1f5fc8('0x164')]='',_0xd84bf9[_0x1f5fc8('0x8cc')]=null,_0xd84bf9[_0x1f5fc8('0x1d4a')]=[],_0xd84bf9['query']={'fields':_0x1f5fc8('0x1798'),'sort':_0x1f5fc8('0xd82'),'limit':0xa,'page':0x1},_0xd84bf9[_0x1f5fc8('0x1960')]=_0x5c9e2e,_0xd84bf9[_0x1f5fc8('0x271')]=_0x1dd8f8,_0xd84bf9[_0x1f5fc8('0xe10')]=_0x1570a4,_0xd84bf9[_0x1f5fc8('0xa38')]=_0x4f345b,_0xd84bf9['createOrEditMailSubstatus']=_0x157280,_0xd84bf9[_0x1f5fc8('0x15fa')]=_0x2e065f,_0xd84bf9['exportSelectedMailSubstatuses']=_0x475661,_0xd84bf9[_0x1f5fc8('0x222d')]=_0x2fcf52,_0xd84bf9['deselectMailSubstatuses']=_0x3c80a1,_0xd84bf9[_0x1f5fc8('0x1ae7')]=_0x42a1fe;function _0x5c9e2e(_0x227ed5,_0x5d66c5){var _0x432925=_0x1f5fc8;_0x571ffa[_0x432925('0x1e6d')]({'controller':'CreateOrEditMailSubstatusDialogController','controllerAs':'vm','templateUrl':_0x4ffa77,'parent':angular[_0x432925('0x1aa8')](_0x11246e['body']),'targetEvent':_0x5d66c5,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x227ed5,'mailSubtatuses':_0xd84bf9[_0x432925('0x3fc')][_0x432925('0x580')],'license':_0xd84bf9['license'],'setting':null,'crudPermissions':_0xd84bf9[_0x432925('0xada')]}});}function _0x1dd8f8(_0x4c2ada,_0x482946){var _0x35092a=_0x1f5fc8,_0x926154=_0x571ffa['confirm']()[_0x35092a('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x35092a('0x196a')]('mailSubstatus')+'?')['htmlContent'](_0x35092a('0x389')+(_0x4c2ada[_0x35092a('0x25d6')]||_0x35092a('0x13b1'))+'
'+_0x35092a('0x210d'))[_0x35092a('0x5b5')](_0x35092a('0x829'))[_0x35092a('0x116d')](_0x482946)['ok']('OK')[_0x35092a('0x2030')](_0x35092a('0x2410'));_0x571ffa[_0x35092a('0x1e6d')](_0x926154)[_0x35092a('0xaa5')](function(){_0x2e065f(_0x4c2ada);},function(){var _0x7b2ee8=_0x35092a;console[_0x7b2ee8('0x18d5')](_0x7b2ee8('0x2410'));});}var _0x3a9bb0=!![],_0x2dcc41=0x1;_0x3ed2b0[_0x1f5fc8('0x1ccf')]('vm.query.filter',function(_0x31b6ca,_0x5135ab){var _0xe38c19=_0x1f5fc8;_0x3a9bb0?_0x262d70(function(){_0x3a9bb0=![];}):(!_0x5135ab&&(_0x2dcc41=_0xd84bf9[_0xe38c19('0x582')]['page']),_0x31b6ca!==_0x5135ab&&(_0xd84bf9[_0xe38c19('0x582')][_0xe38c19('0x41')]=0x1),!_0x31b6ca&&(_0xd84bf9[_0xe38c19('0x582')][_0xe38c19('0x41')]=_0x2dcc41),_0xd84bf9['getMailSubstatuses']());});function _0x1570a4(_0x2488c6){var _0x568d38=_0x1f5fc8;_0xd84bf9[_0x568d38('0x3fc')]=_0x2488c6||{'count':0x0,'rows':[]};}function _0x4f345b(){var _0x312c2c=_0x1f5fc8;_0xd84bf9[_0x312c2c('0x582')][_0x312c2c('0x8b1')]=(_0xd84bf9[_0x312c2c('0x582')][_0x312c2c('0x41')]-0x1)*_0xd84bf9[_0x312c2c('0x582')][_0x312c2c('0xf4d')],_0x323951[_0x312c2c('0x26e8')](_0x312c2c('0x178b'))?_0xd84bf9[_0x312c2c('0x159a')]=_0x336999['mailSubstatus'][_0x312c2c('0x2122')](_0xd84bf9['query'],_0x1570a4)[_0x312c2c('0x1dc2')]:(_0xd84bf9[_0x312c2c('0x582')]['id']=_0xd84bf9[_0x312c2c('0x1e97')]['id'],_0xd84bf9[_0x312c2c('0x582')]['section']=_0x312c2c('0x2821'),_0xd84bf9[_0x312c2c('0x159a')]=_0x336999[_0x312c2c('0x1e97')][_0x312c2c('0x1cf1')](_0xd84bf9[_0x312c2c('0x582')],_0x1570a4)['$promise']);}function _0x157280(_0x15d11c,_0x451536){var _0x4d1375=_0x1f5fc8;_0x571ffa['show']({'controller':'CreateOrEditMailSubstatusDialogController','controllerAs':'vm','templateUrl':_0x4ffa77,'parent':angular[_0x4d1375('0x1aa8')](_0x11246e[_0x4d1375('0x54c')]),'targetEvent':_0x15d11c,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x451536,'mailSubtatuses':_0xd84bf9['mailSubtatuses']['rows'],'license':_0xd84bf9[_0x4d1375('0x1202')],'setting':_0xd84bf9[_0x4d1375('0x143f')],'crudPermissions':_0xd84bf9[_0x4d1375('0xada')]}});}function _0x2e065f(_0xbe599a){var _0xf1ee93=_0x1f5fc8;_0x336999[_0xf1ee93('0x13b1')][_0xf1ee93('0x926')]({'id':_0xbe599a['id']})[_0xf1ee93('0x1dc2')][_0xf1ee93('0xaa5')](function(){var _0x45c407=_0xf1ee93;_0x51538b()['remove'](_0xd84bf9['mailSubtatuses'][_0x45c407('0x580')],{'id':_0xbe599a['id']}),_0xd84bf9['mailSubtatuses']['count']-=0x1,!_0xd84bf9['mailSubtatuses']['rows'][_0x45c407('0x2587')]&&_0xd84bf9[_0x45c407('0xa38')](),_0x40c3cd[_0x45c407('0xe10')]({'title':_0x51538b()[_0x45c407('0x196a')](_0x45c407('0x247'))+_0x45c407('0x8bb'),'msg':_0xbe599a[_0x45c407('0x25d6')]?_0xbe599a[_0x45c407('0x25d6')]+_0x45c407('0xcd9'):''});})[_0xf1ee93('0x253d')](function(_0x36f6f3){var _0x559832=_0xf1ee93;if(_0x36f6f3[_0x559832('0x10fd')]&&_0x36f6f3[_0x559832('0x10fd')][_0x559832('0x4c6')]&&_0x36f6f3['data']['errors'][_0x559832('0x2587')]){_0xd84bf9[_0x559832('0x4c6')]=_0x36f6f3[_0x559832('0x10fd')][_0x559832('0x4c6')]||[{'message':_0x36f6f3[_0x559832('0x684')](),'type':_0x559832('0x953')}];for(var _0x2e7dad=0x0;_0x2e7dad<_0x36f6f3['data']['errors'][_0x559832('0x2587')];_0x2e7dad++){_0x40c3cd['error']({'title':_0x36f6f3[_0x559832('0x10fd')]['errors'][_0x2e7dad]['type'],'msg':_0x36f6f3[_0x559832('0x10fd')][_0x559832('0x4c6')][_0x2e7dad][_0x559832('0x1402')]});}}else _0x40c3cd['error']({'title':_0x36f6f3[_0x559832('0x2fa')]?_0x559832('0x16c2')+_0x36f6f3[_0x559832('0x2fa')]+_0x559832('0x169e')+_0x36f6f3[_0x559832('0x24df')]:'SYSTEM:DELETEmailSubstatus','msg':_0x36f6f3[_0x559832('0x10fd')]?JSON[_0x559832('0xa48')](_0x36f6f3['data'][_0x559832('0x1402')]):_0x36f6f3[_0x559832('0x1402')]||_0x36f6f3[_0x559832('0x684')]()});});}function _0x475661(){var _0x42a9cb=_0x1f5fc8,_0x265a82=angular['copy'](_0xd84bf9['selectedMailSubstatuses']);return _0xd84bf9[_0x42a9cb('0x1d4a')]=[],_0x265a82;}function _0x2fcf52(_0x1366c2){var _0x38f655=_0x1f5fc8,_0x1cb0de=_0x571ffa[_0x38f655('0x281e')]()[_0x38f655('0x110a')](_0x38f655('0xef1'))[_0x38f655('0x102e')](_0x38f655('0x389')+_0xd84bf9[_0x38f655('0x1d4a')]['length']+_0x38f655('0x1443')+'\x20will\x20be\x20deleted.')[_0x38f655('0x5b5')](_0x38f655('0x1932'))[_0x38f655('0x116d')](_0x1366c2)['ok']('OK')[_0x38f655('0x2030')]('CANCEL');_0x571ffa[_0x38f655('0x1e6d')](_0x1cb0de)[_0x38f655('0xaa5')](function(){var _0x38feaf=_0x38f655;_0xd84bf9[_0x38feaf('0x1d4a')][_0x38feaf('0x15b5')](function(_0x299577){_0x2e065f(_0x299577);}),_0xd84bf9[_0x38feaf('0x1d4a')]=[];});}function _0x3c80a1(){var _0x144f61=_0x1f5fc8;_0xd84bf9[_0x144f61('0x1d4a')]=[];}function _0x42a1fe(){var _0x5dcbf9=_0x1f5fc8;_0xd84bf9['selectedMailSubstatuses']=_0xd84bf9['mailSubtatuses'][_0x5dcbf9('0x580')];}}const _0x4ce348=_0x4d672e;_0x2eb399[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x2eb399(_0x45ec05,_0x2de78a){var _0x5602b9=_0x1a8446;_0x45ec05[_0x5602b9('0xb46')](_0x5602b9('0xa3d'),{'abstract':!![],'url':_0x5602b9('0x3f')})['state']('app.mail.mailQueues',{'url':'/mailQueues','views':{'content@app':{'templateUrl':_0x2ec378,'controller':'MailQueuesController\x20as\x20vm'}},'resolve':{'mailQueues':[_0x5602b9('0x1d16'),_0x5602b9('0x1dfd'),function _0x2fff1e(_0x14f7c0,_0x4849d7){var _0x6cccd0=_0x5602b9;return _0x4849d7['hasRole']('admin')?_0x14f7c0[_0x6cccd0('0x149f')]('mailQueue@get',{'fields':_0x6cccd0('0x698'),'sort':_0x6cccd0('0xd82'),'channel':_0x6cccd0('0x14c5'),'limit':0xa,'offset':0x0}):_0x14f7c0[_0x6cccd0('0x149f')](_0x6cccd0('0x49a'),{'id':_0x4849d7[_0x6cccd0('0xacc')]()[_0x6cccd0('0x2168')],'section':_0x6cccd0('0xafe'),'fields':_0x6cccd0('0x698'),'sort':_0x6cccd0('0xd82'),'channel':_0x6cccd0('0x14c5'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5602b9('0x1d16'),'Auth',function _0x54ffcc(_0x4163ec,_0x597aa2){var _0x2bc0e8=_0x5602b9;return _0x597aa2[_0x2bc0e8('0x26e8')](_0x2bc0e8('0x178b'))?null:_0x4163ec[_0x2bc0e8('0x149f')](_0x2bc0e8('0x567'),{'fields':_0x2bc0e8('0x1bb0'),'id':_0x597aa2[_0x2bc0e8('0xacc')]()[_0x2bc0e8('0x2168')]});}],'userProfileSection':[_0x5602b9('0x1d16'),_0x5602b9('0x1dfd'),function _0x254cc5(_0x3b3106,_0xf7554f){var _0x30d49c=_0x5602b9;return _0xf7554f[_0x30d49c('0x26e8')]('admin')?null:_0x3b3106[_0x30d49c('0x149f')](_0x30d49c('0x89e'),{'fields':_0x30d49c('0xe6a'),'userProfileId':_0xf7554f['getCurrentUser']()[_0x30d49c('0x2168')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':'mail'})[_0x5602b9('0xb46')](_0x5602b9('0x27fa'),{'url':_0x5602b9('0xad'),'params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x24891b,'controller':_0x5602b9('0x89d')}},'resolve':{'mailQueue':[_0x5602b9('0x1d16'),_0x5602b9('0x703'),function _0x5b1e12(_0x1672b9,_0x22bd9e){var _0x3f86a8=_0x5602b9;return _0x1672b9['resolve'](_0x3f86a8('0x1cd'),{'fields':_0x3f86a8('0x698'),'id':_0x22bd9e['id']});}],'userProfileSection':[_0x5602b9('0x1d16'),_0x5602b9('0x1dfd'),function _0x5e134f(_0x51dd95,_0x5e8f1d){var _0x383734=_0x5602b9;return _0x51dd95['resolve'](_0x383734('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5e8f1d[_0x383734('0xacc')]()[_0x383734('0x2168')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x5602b9('0x14c5')})[_0x5602b9('0xb46')](_0x5602b9('0x6f1'),{'url':_0x5602b9('0xe50'),'views':{'content@app':{'templateUrl':_0x43ca18,'controller':'MailAccountsController\x20as\x20vm'}},'resolve':{'mailAccounts':[_0x5602b9('0x1d16'),_0x5602b9('0x1dfd'),function _0x28db3c(_0x54d6a0,_0x4cc51f){var _0x55badd=_0x5602b9;return _0x4cc51f[_0x55badd('0x26e8')](_0x55badd('0x178b'))?_0x54d6a0[_0x55badd('0x149f')]('mailAccount@get',{'fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x54d6a0['resolve'](_0x55badd('0x49a'),{'id':_0x4cc51f['getCurrentUser']()[_0x55badd('0x2168')],'section':'MailAccounts','fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x55badd('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5602b9('0x1d16'),_0x5602b9('0x1dfd'),function _0x3b5d9f(_0x2e08c0,_0x5af636){var _0x2cd3d8=_0x5602b9;return _0x5af636[_0x2cd3d8('0x26e8')](_0x2cd3d8('0x178b'))?null:_0x2e08c0[_0x2cd3d8('0x149f')](_0x2cd3d8('0x567'),{'fields':_0x2cd3d8('0x1bb0'),'id':_0x5af636[_0x2cd3d8('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x5602b9('0x1d16'),_0x5602b9('0x1dfd'),function _0x19a3d0(_0x3c00c7,_0x5a8bb1){var _0xa7ac5d=_0x5602b9;return _0x5a8bb1[_0xa7ac5d('0x26e8')](_0xa7ac5d('0x178b'))?null:_0x3c00c7[_0xa7ac5d('0x149f')](_0xa7ac5d('0x89e'),{'fields':_0xa7ac5d('0xe6a'),'userProfileId':_0x5a8bb1[_0xa7ac5d('0xacc')]()[_0xa7ac5d('0x2168')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':'mail'})[_0x5602b9('0xb46')](_0x5602b9('0xd9'),{'url':_0x5602b9('0xad'),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x505fc2,'controller':_0x5602b9('0x2707')}},'resolve':{'mailAccount':[_0x5602b9('0x1d16'),'$stateParams',function _0x5bbbfa(_0x5f2a66,_0x572c41){var _0x3230a9=_0x5602b9;return _0x5f2a66['resolve'](_0x3230a9('0x2418'),{'fields':_0x3230a9('0x2016'),'id':_0x572c41['id']});}],'userProfileSection':[_0x5602b9('0x1d16'),'Auth',function _0x1ebd88(_0xbaea28,_0x519c4e){var _0x17d1e1=_0x5602b9;return _0xbaea28[_0x17d1e1('0x149f')](_0x17d1e1('0x89e'),{'fields':_0x17d1e1('0xe6a'),'userProfileId':_0x519c4e['getCurrentUser']()[_0x17d1e1('0x2168')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x5602b9('0x14c5')})['state']('app.mail.mailSubtatuses',{'url':_0x5602b9('0x19f4'),'views':{'content@app':{'templateUrl':_0x1adc8f,'controller':_0x5602b9('0xbf0')}},'resolve':{'mailSubtatuses':[_0x5602b9('0x1d16'),function _0x3b7d43(_0x493789){var _0x597192=_0x5602b9;return _0x493789['resolve'](_0x597192('0x140f'),{'fields':_0x597192('0x1798'),'sort':_0x597192('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5602b9('0x1d16'),_0x5602b9('0x1dfd'),function _0x2f240f(_0x2c0f7f,_0x1bf67b){var _0x459d00=_0x5602b9;return _0x1bf67b[_0x459d00('0x26e8')](_0x459d00('0x178b'))?null:_0x2c0f7f['resolve']('userProfile@get',{'fields':_0x459d00('0x1bb0'),'id':_0x1bf67b[_0x459d00('0xacc')]()[_0x459d00('0x2168')]});}],'userProfileSection':[_0x5602b9('0x1d16'),'Auth',function _0x499fa6(_0x26941f,_0x4ba64a){var _0x2a29d9=_0x5602b9;return _0x4ba64a[_0x2a29d9('0x26e8')]('admin')?null:_0x26941f[_0x2a29d9('0x149f')]('userProfileSection@get',{'fields':_0x2a29d9('0xe6a'),'userProfileId':_0x4ba64a[_0x2a29d9('0xacc')]()[_0x2a29d9('0x2168')],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':_0x5602b9('0x14c5')}),_0x2de78a[_0x5602b9('0x1de5')]('app/main/apps/mail');}angular[_0x1a8446('0x1f8d')](_0x1a8446('0xa3d'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),'mdColorPicker',_0x1a8446('0x23ee'),'ng-sortable','ngAria',_0x1a8446('0x110'),_0x1a8446('0xd2d'),_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),'material.components.expansionPanels',_0x1a8446('0x1320'),_0x1a8446('0x775'),_0x1a8446('0xaa8')])['config'](_0x2eb399)[_0x1a8446('0x780')](_0x1a8446('0x3e1'),_0x56b481)[_0x1a8446('0x780')](_0x1a8446('0x4fb'),_0x2d96e0)[_0x1a8446('0x780')](_0x1a8446('0xa6'),_0x4ccbb6)['controller'](_0x1a8446('0x8f'),_0x279ccc)['controller']('EditMailAccountAppautoreplyDialogController',_0x47b479)[_0x1a8446('0x780')](_0x1a8446('0x282a'),_0x43705e)[_0x1a8446('0x780')](_0x1a8446('0x1ea5'),_0x25409f)[_0x1a8446('0x780')](_0x1a8446('0x21e6'),_0x2ef190)[_0x1a8446('0x780')]('EditMailAccountAppintervalDialogController',_0x3c526b)[_0x1a8446('0x780')](_0x1a8446('0x20a4'),_0x5918d2)[_0x1a8446('0x780')](_0x1a8446('0x2155'),_0x205cb2)[_0x1a8446('0x780')](_0x1a8446('0x2595'),_0x2ac649)[_0x1a8446('0x780')](_0x1a8446('0x932'),_0x1b0e84)['controller'](_0x1a8446('0x11bb'),_0x165530)[_0x1a8446('0x780')](_0x1a8446('0xc5b'),_0x3dbc6b)[_0x1a8446('0x780')](_0x1a8446('0x6bd'),_0x27250a)[_0x1a8446('0x780')]('MailAccountDispositionsController',_0x4e823b)['controller']('MailAccountController',_0xaf05c1)[_0x1a8446('0x780')]('MailAccountsController',_0x272e3d)[_0x1a8446('0x780')](_0x1a8446('0x1e52'),_0x981b6d)[_0x1a8446('0x780')](_0x1a8446('0x4ee'),_0x55993c)[_0x1a8446('0x780')](_0x1a8446('0xa2f'),_0x414ef5)[_0x1a8446('0x780')](_0x1a8446('0x2655'),_0x56c927)[_0x1a8446('0x780')](_0x1a8446('0x574'),_0x898be4)[_0x1a8446('0x780')](_0x1a8446('0x5f5'),_0x1dc5ca)[_0x1a8446('0x780')](_0x1a8446('0x1a9'),_0x4ce348);const _0x29cc9d=_0x4fb511['p']+_0x1a8446('0x1652'),_0x4253c0=_0x4fb511['p']+_0x1a8446('0x1d9'),_0x253ad8=_0x4fb511['p']+_0x1a8446('0xb1');_0x485662[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$q',_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x24ea'),'pauses','agents',_0x1a8446('0x1f1d'),_0x1a8446('0x157'),_0x1a8446('0xe74'),'toasty','helperClasses',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'$interval'];function _0x485662(_0x56d065,_0x42cf67,_0x268772,_0x35881c,_0x499d26,_0x10183b,_0x3a7878,_0x31d9cc,_0x47eed4,_0x2c2517,_0x51bd7b,_0x248248,_0x1a28dc,_0x5a98be,_0x213b28,_0x3d4ebd,_0x2e0e6c,_0x1a37fd){var _0x503064=_0x1a8446,_0x5372bb=this,_0x5379db=['userpic',_0x503064('0x175'),_0x503064('0x2340'),_0x503064('0x1ce0'),_0x503064('0x25f0'),_0x503064('0x1ce0'),'internal',_0x503064('0xdf8'),'chatPause',_0x503064('0xc8f'),_0x503064('0x21f'),'smsPause',_0x503064('0x231a'),'faxPause',_0x503064('0x2519'),_0x503064('0xe55'),_0x503064('0x1b1c'),_0x503064('0x18d6'),_0x503064('0x26cb'),_0x503064('0xce'),'faxCapacity',_0x503064('0x607'),_0x503064('0x275a'),_0x503064('0x24fb'),_0x503064('0x1382'),'whatsappCurrentCapacity',_0x503064('0xea8'),_0x503064('0xeb4'),_0x503064('0x293'),_0x503064('0x4c3'),_0x503064('0x24d1'),_0x503064('0x1579'),'faxStatus',_0x503064('0x1e0'),_0x503064('0x748'),_0x503064('0x26e5'),_0x503064('0xd27'),'smsStatusTime',_0x503064('0x166b'),_0x503064('0xa0a'),_0x503064('0x1ddc'),_0x503064('0xe26'),_0x503064('0x14d3'),_0x503064('0x14c3'),_0x503064('0x1b72'),_0x503064('0x1253')],_0x2d99d8=['chatPause',_0x503064('0xc8f'),'mailPause',_0x503064('0x462'),_0x503064('0x231a'),_0x503064('0x135b'),_0x503064('0x2519'),_0x503064('0x175')];_0x5372bb[_0x503064('0x7fc')]=_0x3d4ebd[_0x503064('0xacc')](),_0x5372bb[_0x503064('0x38b')]=['ringing',_0x503064('0x1028'),_0x503064('0xa1e'),_0x503064('0x9a5'),_0x503064('0x2509')],_0x5372bb[_0x503064('0x2457')]=_0x3a7878||{'count':0x0,'rows':[]},_0x5372bb[_0x503064('0x1202')]=_0x2e0e6c,_0x5372bb[_0x503064('0x1e97')]=_0x5a98be,_0x5372bb[_0x503064('0x1a50')]=_0x213b28&&_0x213b28[_0x503064('0xd15')]==0x1?_0x213b28['rows'][0x0]:null,_0x5372bb[_0x503064('0xada')]=_0x3d4ebd[_0x503064('0xffd')](_0x5372bb[_0x503064('0x1a50')]?_0x5372bb['userProfileSection']['crudPermissions']:null),_0x5372bb[_0x503064('0x1717')]=_0x31d9cc?_0x51538b()[_0x503064('0x184a')](_0x31d9cc[_0x503064('0x580')]?_0x31d9cc[_0x503064('0x580')]:[],'id'):{},_0x5372bb[_0x503064('0x1f1d')]=_0x47eed4?_0x51538b()['keyBy'](_0x47eed4['rows']?_0x47eed4[_0x503064('0x580')]:[],'id'):{},_0x5372bb[_0x503064('0xd28')]={},_0x5372bb[_0x503064('0x259c')]=![],_0x5372bb[_0x503064('0x1536')]=[],_0x5372bb['agentInternal']={};for(var _0x3c4feb in _0x5372bb[_0x503064('0x1717')]){typeof _0x5372bb['agents'][_0x3c4feb]!==_0x503064('0x1574')&&(_0x5372bb['agents'][_0x3c4feb][_0x503064('0x2e')]=!![]);}_0x5372bb[_0x503064('0x582')]={'limit':0xa,'page':0x1,'order':_0x503064('0x18e5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x5372bb[_0x503064('0x1bc9')]=_0x556bc8,_0x5372bb[_0x503064('0x1931')]=_0x105d72,_0x5372bb[_0x503064('0x167c')]=_0x1c0e89,_0x5372bb[_0x503064('0x15e8')]=_0x1eb05b,_0x5372bb[_0x503064('0x18ba')]=_0x3face2,_0x5372bb[_0x503064('0xf42')]=_0xa42cd3,_0x5372bb[_0x503064('0x1b')]=_0x22603d,_0x5372bb[_0x503064('0x11c')]=_0x4ad2a6,_0x5372bb[_0x503064('0x2608')]=_0x2f94c1,_0x5372bb[_0x503064('0x1592')]=_0x462ae1,_0x5372bb['onSave']=_0x281443,_0x5372bb[_0x503064('0x4f1')]=_0x5be2da,_0x5372bb[_0x503064('0x2318')]=_0x2dc656,_0x5372bb[_0x503064('0xe9b')]=_0x59ddda,_0x5372bb[_0x503064('0xd53')]=_0xf9251e,_0x5372bb['screenRecording']=_0x275cbe,_0x51bd7b['on']('user:save',_0x5372bb[_0x503064('0x1a4b')]),_0x51bd7b['on'](_0x503064('0x15fb'),_0x5372bb[_0x503064('0x4f1')]),_0x51bd7b['on'](_0x503064('0x25ea'),_0x5372bb[_0x503064('0xe9b')]),_0x51bd7b['on'](_0x503064('0x2728'),_0x5372bb['onComplete']),_0x2dc656();var _0x451b3e=_0x1a37fd(function(){var _0x5c8cfe=_0x503064;_0x5372bb[_0x5c8cfe('0x259c')]&&(_0x5372bb['load']=![],_0x2dc656());},0x3e7);function _0x2dc656(){var _0x56280d=_0x503064;_0x5372bb['load']=![];var _0x178b2e=_0x42cf67[_0x56280d('0x213b')]();_0x5372bb[_0x56280d('0x159a')]=_0x178b2e[_0x56280d('0x159a')],_0x5372bb['filteredAgents']=[],_0x5372bb[_0x56280d('0x1536')]=[],_0x51538b()[_0x56280d('0x143e')](_0x5372bb[_0x56280d('0x1717')],function(_0xe1a0a0,_0x44d52e){var _0x5d18b4=_0x56280d;_0x5372bb['rpcAgents'][_0x44d52e]&&_0x51538b()[_0x5d18b4('0x283c')](_0xe1a0a0,_0x51538b()['pick'](_0x51538b()[_0x5d18b4('0x245')](_0x5372bb[_0x5d18b4('0x1f1d')][_0x44d52e],_0x2d99d8),_0x5379db)),_0x22603d(_0xe1a0a0),_0xe1a0a0[_0x5d18b4('0x175')]?(_0x5372bb[_0x5d18b4('0x1d77')][_0x5d18b4('0x1599')](_0xe1a0a0),_0x5372bb[_0x5d18b4('0x21f2')][_0xe1a0a0[_0x5d18b4('0x1b0d')]]=_0x44d52e):_0xe1a0a0['globalStatusTime']=_0x51538b()[_0x5d18b4('0x228e')](_0x420d43()()[_0x5d18b4('0x1f27')]('x'));});_0x5372bb[_0x56280d('0x582')][_0x56280d('0x107')]&&_0x51538b()[_0x56280d('0xf6d')](_0x5372bb[_0x56280d('0x1d77')],function(_0x2d3a25){var _0x3d7563=_0x56280d;return _0x2d3a25['globalStatus']!==_0x5372bb[_0x3d7563('0x582')]['globalStatusFilter'];});_0x5372bb[_0x56280d('0x582')][_0x56280d('0x1bfd')]&&_0x51538b()[_0x56280d('0xf6d')](_0x5372bb['filteredAgents'],function(_0x287986){var _0x157339=_0x56280d;return _0x287986[_0x157339('0x25f0')]!==_0x5372bb[_0x157339('0x582')]['pauseTypeFilter'];});_0x5372bb[_0x56280d('0x582')][_0x56280d('0xdb7')]&&_0x51538b()['remove'](_0x5372bb['filteredAgents'],function(_0x12b792){var _0x530614=_0x56280d;return _0x12b792['fullname'][_0x530614('0xcf6')]()['indexOf'](_0x5372bb[_0x530614('0x582')][_0x530614('0xdb7')][_0x530614('0xcf6')]())<0x0;});_0x5372bb[_0x56280d('0x1d77')]=_0x5df09c(_0x5372bb[_0x56280d('0x1d77')]);var _0x80a2d5=(_0x5372bb['query'][_0x56280d('0x41')]-0x1)*_0x5372bb[_0x56280d('0x582')][_0x56280d('0xf4d')];_0x5372bb[_0x56280d('0xd28')]=_0x51538b()['drop'](_0x5372bb[_0x56280d('0x1d77')],_0x80a2d5)[_0x56280d('0x19aa')](0x0,_0x5372bb[_0x56280d('0x582')]['limit']);for(var _0x462e73=0x0;_0x462e73<_0x5372bb[_0x56280d('0xd28')][_0x56280d('0x2587')];_0x462e73+=0x1){_0x5372bb[_0x56280d('0x1536')][_0x56280d('0x1599')](_0x5372bb[_0x56280d('0xd28')][_0x462e73]['id']);}_0x178b2e[_0x56280d('0x149f')](),_0x5372bb[_0x56280d('0x259c')]=!![];}function _0x281443(_0x518f07){var _0xfa40c=_0x503064;_0x5372bb[_0xfa40c('0x1717')][_0x518f07['id']]&&(_0x51538b()[_0xfa40c('0x283c')](_0x5372bb[_0xfa40c('0x1717')][_0x518f07['id']],_0x51538b()[_0xfa40c('0x104e')](_0x51538b()[_0xfa40c('0x245')](_0x518f07,_0x2d99d8),_0x5379db)),_0x51538b()[_0xfa40c('0x283c')](_0x5372bb[_0xfa40c('0x1f1d')][_0x518f07['id']],_0x51538b()[_0xfa40c('0x104e')](_0x51538b()['omit'](_0x518f07,_0x2d99d8),_0x5379db)),_0x22603d(_0x5372bb[_0xfa40c('0x1717')][_0x518f07['id']]));}function _0x5be2da(_0x357d9e){var _0x3a0e00=_0x503064;_0x5372bb['agents'][_0x357d9e['id']]&&(_0x51538b()[_0x3a0e00('0x283c')](_0x5372bb[_0x3a0e00('0x1717')][_0x357d9e['id']],_0x51538b()['pick'](_0x357d9e,_0x5379db)),_0x51538b()[_0x3a0e00('0x283c')](_0x5372bb[_0x3a0e00('0x1f1d')][_0x357d9e['id']],_0x51538b()[_0x3a0e00('0x104e')](_0x357d9e,_0x5379db)),_0x357d9e[_0x3a0e00('0x1ce0')]&&(_0x5372bb['agents'][_0x357d9e['id']][_0x3a0e00('0x920')]=_0x357d9e[_0x3a0e00('0x1ce0')],_0x5372bb['rpcAgents'][_0x357d9e['id']]['globalStatusTime']=_0x357d9e[_0x3a0e00('0x1ce0')]),_0x22603d(_0x5372bb[_0x3a0e00('0x1717')][_0x357d9e['id']]));}function _0x59ddda(_0x5ec774){var _0x58079b=_0x503064;_0x5372bb[_0x58079b('0x1717')][_0x5372bb['agentInternal'][_0x5ec774['destaccountcode']]]&&(_0x51538b()[_0x58079b('0x283c')](_0x5372bb['agents'][_0x5372bb[_0x58079b('0x21f2')][_0x5ec774[_0x58079b('0x2525')]]],_0x51538b()[_0x58079b('0x104e')](_0x5ec774,['queue',_0x58079b('0x14d3')])),_0x51538b()[_0x58079b('0x283c')](_0x5372bb['rpcAgents'][_0x5372bb['agentInternal'][_0x5ec774[_0x58079b('0x2525')]]],_0x51538b()[_0x58079b('0x104e')](_0x5ec774,['queue','destconnectedlinenum'])));}function _0xf9251e(_0x30144b){var _0x16c76a=_0x503064;_0x5372bb[_0x16c76a('0x1717')][_0x5372bb[_0x16c76a('0x21f2')][_0x30144b[_0x16c76a('0x2525')]]]&&(_0x5372bb[_0x16c76a('0x1717')][_0x5372bb['agentInternal'][_0x30144b['destaccountcode']]]=_0x51538b()[_0x16c76a('0x245')](_0x5372bb[_0x16c76a('0x1717')][_0x5372bb[_0x16c76a('0x21f2')][_0x30144b[_0x16c76a('0x2525')]]],[_0x16c76a('0xe26'),'destconnectedlinenum']),_0x5372bb['rpcAgents'][_0x5372bb['agentInternal'][_0x30144b[_0x16c76a('0x2525')]]]=_0x51538b()['omit'](_0x5372bb['rpcAgents'][_0x5372bb['agentInternal'][_0x30144b['destaccountcode']]],[_0x16c76a('0xe26'),_0x16c76a('0x14d3')]));}function _0x556bc8(_0x15e1fa){var _0x3dadd6=_0x503064;return _0x2c2517[_0x3dadd6('0x272b')][_0x3dadd6('0x1bc9')]({'id':_0x15e1fa['id'],'device':_0x3dadd6('0x4f3'),'agent_id':_0x15e1fa['id'],'agent_name':_0x15e1fa['name']})[_0x3dadd6('0x1dc2')][_0x3dadd6('0xaa5')](function(){var _0x58e705=_0x3dadd6;_0x248248[_0x58e705('0xe10')]({'title':_0x58e705('0x1cdb'),'msg':_0x15e1fa['fullname']+_0x58e705('0x2039')}),_0x5372bb[_0x58e705('0x1717')][_0x15e1fa['id']]&&(_0x5372bb['agents'][_0x15e1fa['id']][_0x58e705('0x175')]=![]),_0x5372bb[_0x58e705('0x1f1d')][_0x15e1fa['id']]&&(_0x5372bb[_0x58e705('0x1f1d')][_0x15e1fa['id']][_0x58e705('0x175')]=![]),_0x2dc656();})[_0x3dadd6('0x253d')](function(_0x3d7d88){var _0x563b45=_0x3dadd6;_0x248248[_0x563b45('0x187f')]({'title':_0x3d7d88['status']?_0x563b45('0x16c2')+_0x3d7d88[_0x563b45('0x2fa')]+'\x20-\x20'+_0x3d7d88[_0x563b45('0x24df')]:_0x563b45('0xb8c'),'msg':_0x3d7d88['data']?JSON['stringify'](_0x3d7d88[_0x563b45('0x10fd')]['message']):_0x3d7d88[_0x563b45('0x684')]()});});}function _0x1c0e89(_0x2a7ce2,_0x26e649){var _0x2f0c77=_0x503064;return _0x2c2517['user'][_0x2f0c77('0x167c')]({'id':_0x2a7ce2['id'],'type':_0x26e649})[_0x2f0c77('0x1dc2')][_0x2f0c77('0xaa5')](function(_0x2ba803){var _0x4ba387=_0x2f0c77;_0x5372bb[_0x4ba387('0x1717')][_0x2a7ce2['id']]&&_0x51538b()[_0x4ba387('0x283c')](_0x5372bb['agents'][_0x2a7ce2['id']],_0x51538b()[_0x4ba387('0x104e')](_0x2ba803,_0x5379db)),_0x5372bb[_0x4ba387('0x1f1d')][_0x2a7ce2['id']]&&_0x51538b()[_0x4ba387('0x283c')](_0x5372bb[_0x4ba387('0x1f1d')][_0x2a7ce2['id']],_0x51538b()[_0x4ba387('0x104e')](_0x2ba803,_0x5379db)),_0x22603d(_0x5372bb[_0x4ba387('0x1717')][_0x2a7ce2['id']]);})['catch'](function(_0x50367e){var _0x49f839=_0x2f0c77;_0x248248['error']({'title':_0x50367e[_0x49f839('0x2fa')]?_0x49f839('0x16c2')+_0x50367e['status']+_0x49f839('0x169e')+_0x50367e[_0x49f839('0x24df')]:_0x49f839('0xb8c'),'msg':_0x50367e['data']?JSON['stringify'](_0x50367e[_0x49f839('0x10fd')][_0x49f839('0x1402')]):_0x50367e[_0x49f839('0x684')]()});});}function _0x1eb05b(_0x3fceb5){var _0x53f8a1=_0x503064;return _0x2c2517[_0x53f8a1('0x272b')][_0x53f8a1('0x297')]({'id':_0x3fceb5['id']})[_0x53f8a1('0x1dc2')][_0x53f8a1('0xaa5')](function(_0x194b75){var _0x1cca42=_0x53f8a1;_0x5372bb['agents'][_0x3fceb5['id']]&&_0x51538b()[_0x1cca42('0x283c')](_0x5372bb['agents'][_0x3fceb5['id']],_0x51538b()['pick'](_0x194b75,_0x5379db)),_0x5372bb['rpcAgents'][_0x3fceb5['id']]&&_0x51538b()[_0x1cca42('0x283c')](_0x5372bb[_0x1cca42('0x1f1d')][_0x3fceb5['id']],_0x51538b()[_0x1cca42('0x104e')](_0x194b75,_0x5379db)),_0x22603d(_0x5372bb[_0x1cca42('0x1717')][_0x3fceb5['id']]);})['catch'](function(_0x365625){var _0x297228=_0x53f8a1;_0x248248[_0x297228('0x187f')]({'title':_0x365625[_0x297228('0x2fa')]?'API:'+_0x365625[_0x297228('0x2fa')]+'\x20-\x20'+_0x365625['statusText']:_0x297228('0xb8c'),'msg':_0x365625[_0x297228('0x10fd')]?JSON[_0x297228('0xa48')](_0x365625[_0x297228('0x10fd')]['message']):_0x365625[_0x297228('0x684')]()});});}function _0x3face2(_0x57b629){var _0x13a1e8=_0x503064;_0x35881c[_0x13a1e8('0x1e6d')](_0x35881c[_0x13a1e8('0xc10')]()['clickOutsideToClose'](!![])['title'](_0x13a1e8('0x17e'))[_0x13a1e8('0x102e')](_0x13a1e8('0x9b3'))['ok']('Ok')[_0x13a1e8('0x116d')](_0x57b629));}function _0x105d72(_0x1cc193,_0x1b4e4b){var _0x81f48=_0x503064;_0x35881c['show']({'controller':_0x81f48('0x1200'),'controllerAs':'vm','templateUrl':_0x3a2df9,'parent':angular['element'](_0x499d26[_0x81f48('0x54c')]),'targetEvent':_0x1b4e4b,'clickOutsideToClose':!![],'locals':{'agent':_0x1cc193,'agents':[],'channel':_0x81f48('0x18da'),'direction':_0x81f48('0x4b8'),'crudPermissions':_0x5372bb[_0x81f48('0xada')]}});}function _0x4ad2a6(_0x17e6d3){var _0x5bbb1a=_0x503064;return _0x17e6d3===_0x5bbb1a('0x167c')||_0x17e6d3==='*pause';}function _0x2f94c1(_0x2d63c4){return _0x2d63c4==='pause';}function _0x462ae1(_0x503790){return _0x503790==='*pause';}function _0x26d59f(_0x4dd9e2){var _0x514724=_0x503064;return _0x4dd9e2==='idle'||_0x4dd9e2===_0x514724('0x15fd')||_0x4dd9e2==='unavailable'||_0x4dd9e2===_0x514724('0xb02')||_0x51538b()['isNil'](_0x4dd9e2);}function _0xa42cd3(_0x2c2884,_0x247ebb){var _0x4e0f1f=_0x503064;if(_0x247ebb===_0x4e0f1f('0x1b9')){if(_0x2c2884[_0x247ebb+_0x4e0f1f('0x26ae')]!=='idle')return _0x2c2884[_0x247ebb+_0x4e0f1f('0x26ae')];if(_0x2c2884[_0x247ebb+_0x4e0f1f('0x1bcd')])return _0x2c2884[_0x247ebb+_0x4e0f1f('0x26ae')]=_0x4e0f1f('0x167c'),'pause';return _0x4e0f1f('0x135e');}else{if(_0x2c2884[_0x247ebb+_0x4e0f1f('0x1bcd')])return _0x2c2884[_0x247ebb+'Status']=_0x4e0f1f('0x167c'),_0x4e0f1f('0x167c');return _0x2c2884[_0x247ebb+'Status'];}}function _0x22603d(_0x4eefdc){var _0x11adf9=_0x503064,_0x3278c2=_0x11adf9('0x15fd');if(_0x51538b()[_0x11adf9('0x2ed')]([_0xa42cd3(_0x4eefdc,_0x11adf9('0x1b9')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x20f9')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x14c5')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x170')),_0xa42cd3(_0x4eefdc,'sms'),_0xa42cd3(_0x4eefdc,_0x11adf9('0x220d')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x16c4'))],_0x4ad2a6))_0x3278c2=_0x11adf9('0x167c');else{if(_0x51538b()[_0x11adf9('0x2c2')]([_0xa42cd3(_0x4eefdc,_0x11adf9('0x1b9')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x20f9')),_0xa42cd3(_0x4eefdc,'mail'),_0xa42cd3(_0x4eefdc,_0x11adf9('0x170')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x18da')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x220d')),_0xa42cd3(_0x4eefdc,'fax')],_0x4ad2a6))_0x3278c2=_0x11adf9('0xa7d');else _0x51538b()[_0x11adf9('0x2ed')]([_0xa42cd3(_0x4eefdc,_0x11adf9('0x1b9')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x20f9')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x14c5')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x170')),_0xa42cd3(_0x4eefdc,'sms'),_0xa42cd3(_0x4eefdc,_0x11adf9('0x220d')),_0xa42cd3(_0x4eefdc,_0x11adf9('0x16c4'))],_0x26d59f)?_0x3278c2=_0x11adf9('0x135e'):_0x3278c2=_0x11adf9('0xa1e');}_0x4eefdc[_0x11adf9('0x151c')]!==_0x3278c2&&(_0x4eefdc[_0x11adf9('0x151c')]=_0x3278c2,_0x4eefdc[_0x11adf9('0x2e')]?(_0x4eefdc[_0x11adf9('0x2e')]=![],_0x4eefdc[_0x11adf9('0x920')]=_0x4ad2a6(_0x3278c2)?_0x51538b()[_0x11adf9('0x228e')](_0x420d43()(_0x4eefdc[_0x11adf9('0x1ce0')])[_0x11adf9('0x1f27')]('x')):_0x51538b()[_0x11adf9('0x4c2')]([_0x4eefdc[_0x11adf9('0x1ddc')],_0x4eefdc[_0x11adf9('0x748')],_0x4eefdc[_0x11adf9('0xd27')],_0x4eefdc['smsStatusTime'],_0x4eefdc['whatsappStatusTime'],_0x4eefdc[_0x11adf9('0x26e5')],_0x4eefdc[_0x11adf9('0xa0a')]])):_0x4eefdc[_0x11adf9('0x920')]=_0x51538b()[_0x11adf9('0x228e')](_0x420d43()()[_0x11adf9('0x1f27')]('x')));}function _0x5df09c(_0x155ac5){var _0x4755b2=_0x503064,_0x16826b=_0x51538b()[_0x4755b2('0x6e8')](_0x5372bb[_0x4755b2('0x582')][_0x4755b2('0x1536')],'-')?_0x4755b2('0x71c'):_0x4755b2('0x14b9');return _0x51538b()[_0x4755b2('0x271d')](_0x155ac5,[_0x5372bb[_0x4755b2('0x582')][_0x4755b2('0x1536')]['replace']('-','')],[_0x16826b]);}function _0xaf54c3(){var _0xbb163=_0x503064;_0x451b3e&&(_0x1a37fd[_0xbb163('0x2030')](_0x451b3e),_0x451b3e=null);}function _0x275cbe(_0x404bfa,_0x5d1dff){var _0x437486=_0x503064;return _0x2c2517[_0x437486('0x272b')][_0x437486('0x264e')]({'id':_0x404bfa['id']},{'screenrecording':_0x5d1dff})[_0x437486('0x1dc2')][_0x437486('0x253d')](function(_0x130e7e){var _0x34aeef=_0x437486;_0x248248[_0x34aeef('0x187f')]({'title':_0x130e7e[_0x34aeef('0x2fa')]?_0x34aeef('0x16c2')+_0x130e7e[_0x34aeef('0x2fa')]+_0x34aeef('0x169e')+_0x130e7e[_0x34aeef('0x24df')]:_0x34aeef('0x11e6'),'msg':_0x130e7e[_0x34aeef('0x10fd')]?JSON[_0x34aeef('0xa48')](_0x130e7e[_0x34aeef('0x10fd')][_0x34aeef('0x1402')]):_0x130e7e[_0x34aeef('0x684')]()});});}_0x56d065[_0x503064('0xc75')](_0x503064('0x12d0'),function(){var _0x5df6fc=_0x503064;_0x51bd7b[_0x5df6fc('0x2629')](_0x5df6fc('0x1acf')),_0x51bd7b[_0x5df6fc('0x2629')](_0x5df6fc('0x15fb')),_0x51bd7b[_0x5df6fc('0x2629')](_0x5df6fc('0x25ea')),_0x51bd7b[_0x5df6fc('0x2629')]('user:agentcomplete'),_0xaf54c3();});}const _0x3dfb7c=_0x485662,_0x25d6b5=_0x4fb511['p']+'src/js/modules/main/apps/sms/views/smsQueues/create/dialog.html/dialog-[chunkhash].html',_0x451976=_0x4fb511['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0x450c3c[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$q',_0x1a8446('0x39b'),_0x1a8446('0x21b3'),'queues',_0x1a8446('0x1f2f'),'api',_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x450c3c(_0x87cdab,_0xbc2954,_0xb4d363,_0x27aad7,_0x21d777,_0x3b6b56,_0x6f2a0f,_0x5ce6e3,_0x453092,_0x51b196,_0x52e775,_0x309fb6,_0xcb6a9d,_0x41e495){var _0x1459e6=_0x1a8446,_0x503095=this,_0x51e7a1=[_0x1459e6('0x2226'),_0x1459e6('0x1ade'),_0x1459e6('0xd3d'),'talking','pTalking',_0x1459e6('0x301'),'message',_0x1459e6('0x1b71'),'dialMethod',_0x1459e6('0x4a6'),_0x1459e6('0x16ce')];_0x503095[_0x1459e6('0x7fc')]=_0x41e495['getCurrentUser'](),_0x503095[_0x1459e6('0xd15')]=_0x6f2a0f['count']?_0x6f2a0f[_0x1459e6('0xd15')]:0x0,_0x503095['queues']=_0x6f2a0f?_0x51538b()[_0x1459e6('0x184a')](_0x6f2a0f[_0x1459e6('0x580')]?_0x6f2a0f['rows']:[],'id'):{},_0x503095['rpcQueues']=_0x5ce6e3?_0x51538b()['keyBy'](_0x5ce6e3[_0x1459e6('0x580')]?_0x5ce6e3[_0x1459e6('0x580')]:[],'id'):{},_0x503095[_0x1459e6('0x1e97')]=_0x309fb6,_0x503095[_0x1459e6('0x1a50')]=_0xcb6a9d&&_0xcb6a9d[_0x1459e6('0xd15')]==0x1?_0xcb6a9d[_0x1459e6('0x580')][0x0]:null,_0x503095[_0x1459e6('0xada')]=_0x41e495['parseCrudPermissions'](_0x503095['userProfileSection']?_0x503095[_0x1459e6('0x1a50')][_0x1459e6('0xada')]:null);_0x41e495[_0x1459e6('0x26e8')](_0x1459e6('0x178b'))?_0x503095[_0x1459e6('0x582')]={'type':_0x1459e6('0x4b8'),'sort':_0x1459e6('0xd82'),'limit':0xa,'page':0x1}:_0x503095['query']={'id':_0x503095[_0x1459e6('0x7fc')]['id'],'channel':'sms','type':_0x1459e6('0x4b8'),'sort':_0x1459e6('0xd82'),'limit':0xa,'page':0x1};_0x503095[_0x1459e6('0xe10')]=_0x159c51,_0x503095['getQueues']=_0x102083,_0x503095['createOrEditSmsQueue']=_0x20d8ca,_0x503095[_0x1459e6('0x101f')]=_0x1cbdf7,_0x503095[_0x1459e6('0x19b3')]=_0x25555f,_0x503095[_0x1459e6('0x1a4b')]=_0x50be88,_0x503095[_0x1459e6('0x22a5')]=_0x52b104,_0x503095[_0x1459e6('0x6d4')]=_0x5a78e7,_0x503095['onPause']=_0x520274,_0x503095[_0x1459e6('0x24d2')]=_0x5cb3b8,_0x503095['onLogout']=_0x1d7f10,_0x503095[_0x1459e6('0x141')]=_0x943c84,_0x503095[_0x1459e6('0x1536')]=[],_0x51538b()[_0x1459e6('0x143e')](_0x503095[_0x1459e6('0x4d7')],function(_0x6466be){var _0x3fd110=_0x1459e6;_0x503095[_0x3fd110('0x1536')]['push'](_0x6466be['id']);}),_0x51b196['on'](_0x1459e6('0x2099'),_0x503095[_0x1459e6('0x1a4b')]),_0x51b196['on'](_0x1459e6('0xe9d'),_0x503095['onSaveMember']),_0x51b196['on'](_0x1459e6('0x1d1a'),_0x503095[_0x1459e6('0x6d4')]),_0x51b196['on'](_0x1459e6('0x15fb'),_0x503095['onPause']),_0x51b196['on'](_0x1459e6('0x10ac'),_0x503095[_0x1459e6('0x10c6')]),_0x51b196['on']('userVoiceQueue:save',_0x503095[_0x1459e6('0x24d2')]);function _0x943c84(){var _0x3d6e69=_0x1459e6,_0x1f59c9=[];return _0x51538b()[_0x3d6e69('0x143e')](_0x503095[_0x3d6e69('0x4d7')],function(_0x291173,_0x10789c){var _0x28155e=_0x3d6e69;_0x291173['paused']=0x0,_0x291173[_0x28155e('0xe81')]=0x0,_0x503095[_0x28155e('0x4d7')][_0x10789c]['agents']={},_0x1f59c9[_0x28155e('0x1599')](_0x453092[_0x28155e('0x14a6')][_0x28155e('0xc8e')]({'id':_0x10789c})[_0x28155e('0x1dc2')]),_0x503095[_0x28155e('0x1f2f')][_0x10789c]&&_0x51538b()[_0x28155e('0x283c')](_0x291173,_0x51538b()[_0x28155e('0x104e')](_0x503095[_0x28155e('0x1f2f')][_0x10789c],_0x51e7a1));}),_0x27aad7[_0x3d6e69('0xa15')](_0x1f59c9)['then'](function(_0x45e6cb){var _0x9e8c27=_0x3d6e69;for(var _0x214777=0x0;_0x214777<_0x45e6cb[_0x9e8c27('0x2587')];_0x214777+=0x1){for(var _0x5a7ce9=0x0;_0x5a7ce9<_0x45e6cb[_0x214777][_0x9e8c27('0x580')]['length'];_0x5a7ce9++){_0x45e6cb[_0x214777]['rows'][_0x5a7ce9]['paused']&&_0x503095[_0x9e8c27('0x4d7')][_0x45e6cb[_0x214777]['rows'][_0x5a7ce9][_0x9e8c27('0x2486')]][_0x9e8c27('0x16ce')]++,_0x503095['queues'][_0x45e6cb[_0x214777][_0x9e8c27('0x580')][_0x5a7ce9][_0x9e8c27('0x2486')]][_0x9e8c27('0xe81')]++,_0x503095[_0x9e8c27('0x4d7')][_0x45e6cb[_0x214777][_0x9e8c27('0x580')][_0x5a7ce9][_0x9e8c27('0x2486')]][_0x9e8c27('0x1717')][_0x45e6cb[_0x214777]['rows'][_0x5a7ce9][_0x9e8c27('0x1037')]]=_0x45e6cb[_0x214777]['rows'][_0x5a7ce9]['SmsQueueId'];}}})[_0x3d6e69('0x253d')](function(_0x5d87ce){console['error'](_0x5d87ce);});}function _0x50be88(_0x395a97){var _0x378664=_0x1459e6;_0x503095[_0x378664('0x4d7')][_0x395a97['id']]&&_0x51538b()[_0x378664('0x283c')](_0x503095['queues'][_0x395a97['id']],_0x51538b()['pick'](_0x395a97,_0x51e7a1));}function _0x52b104(_0x36dd9a){var _0x1f9d27=_0x1459e6;_0x503095[_0x1f9d27('0x4d7')][_0x36dd9a['SmsQueueId']]&&_0x503095['queues'][_0x36dd9a[_0x1f9d27('0x2486')]]['loggedInDb']++;}function _0x5a78e7(_0x6bed6e){var _0xfd1ece=_0x1459e6;_0x503095[_0xfd1ece('0x4d7')][_0x6bed6e[_0xfd1ece('0x2486')]]&&_0x503095['queues'][_0x6bed6e[_0xfd1ece('0x2486')]]['loggedInDb']--;}function _0x520274(_0x2fa5aa){var _0x2bd7a2=_0x1459e6;console[_0x2bd7a2('0x18d5')](_0x2bd7a2('0x2511'),_0x2fa5aa);if(_0x2fa5aa['voicePause'])_0x51538b()[_0x2bd7a2('0x143e')](_0x503095['queues'],function(_0x4628dd){var _0x338cd1=_0x2bd7a2;_0x4628dd[_0x338cd1('0x1717')][_0x2fa5aa['id']]&&(_0x4628dd[_0x338cd1('0x16ce')]+=0x1,console['log'](_0x338cd1('0x167c')));});else!_0x2fa5aa['voicePause']&&_0x51538b()['forIn'](_0x503095[_0x2bd7a2('0x4d7')],function(_0x1d8717){var _0x52bf9c=_0x2bd7a2;_0x1d8717[_0x52bf9c('0x1717')][_0x2fa5aa['id']]&&(_0x1d8717[_0x52bf9c('0x16ce')]>0x0&&(_0x1d8717[_0x52bf9c('0x16ce')]-=0x1,console['log']('unpause')));});}function _0x5cb3b8(_0x4b04d1){var _0x5e31b7=_0x1459e6;console[_0x5e31b7('0x18d5')](_0x5e31b7('0x1044'),_0x4b04d1),_0x503095[_0x5e31b7('0x4d7')][_0x4b04d1[_0x5e31b7('0x2486')]]&&(_0x503095['queues'][_0x4b04d1[_0x5e31b7('0x2486')]][_0x5e31b7('0xe81')]+=0x1,_0x503095[_0x5e31b7('0x4d7')][_0x4b04d1['SmsQueueId']][_0x5e31b7('0x1717')][_0x4b04d1[_0x5e31b7('0x1037')]]=_0x4b04d1[_0x5e31b7('0x2486')]);}function _0x1d7f10(_0x10e52f){var _0x2193ee=_0x1459e6;console['log'](_0x2193ee('0x10c6'),_0x10e52f),_0x503095[_0x2193ee('0x4d7')][_0x10e52f['SmsQueueId']]&&_0x503095[_0x2193ee('0x4d7')][_0x10e52f[_0x2193ee('0x2486')]][_0x2193ee('0xe81')]>0x0&&(_0x503095[_0x2193ee('0x4d7')][_0x10e52f[_0x2193ee('0x2486')]]['loggedInDb']-=0x1,delete _0x503095[_0x2193ee('0x4d7')][_0x10e52f[_0x2193ee('0x2486')]][_0x2193ee('0x1717')][_0x10e52f[_0x2193ee('0x1037')]]);}var _0x58b40d=!![],_0x50d6d4=0x1;_0x87cdab[_0x1459e6('0x1ccf')](_0x1459e6('0x1788'),function(_0x20a65e,_0x896de3){var _0x116a9d=_0x1459e6;_0x58b40d?_0xbc2954(function(){_0x58b40d=![];}):(!_0x896de3&&(_0x50d6d4=_0x503095[_0x116a9d('0x582')][_0x116a9d('0x41')]),_0x20a65e!==_0x896de3&&(_0x503095[_0x116a9d('0x582')][_0x116a9d('0x41')]=0x1),!_0x20a65e&&(_0x503095[_0x116a9d('0x582')][_0x116a9d('0x41')]=_0x50d6d4),_0x503095['getQueues']());});function _0x159c51(_0x5a2525){var _0x468853=_0x1459e6;_0x503095[_0x468853('0xd15')]=_0x5a2525[_0x468853('0xd15')],_0x503095['queues']=_0x5a2525?_0x51538b()[_0x468853('0x184a')](_0x5a2525[_0x468853('0x580')]?_0x5a2525[_0x468853('0x580')]:[],'id'):{};if(_0x5a2525[_0x468853('0x580')]){_0x503095[_0x468853('0x1536')]=[];for(var _0x544189=0x0;_0x544189<_0x5a2525[_0x468853('0x580')][_0x468853('0x2587')];_0x544189++){_0x503095['order']['push'](_0x5a2525[_0x468853('0x580')][_0x544189]['id']);}}_0x943c84();}function _0x102083(){var _0x25c6fb=_0x1459e6;_0x503095[_0x25c6fb('0x582')][_0x25c6fb('0x8b1')]=(_0x503095[_0x25c6fb('0x582')][_0x25c6fb('0x41')]-0x1)*_0x503095[_0x25c6fb('0x582')]['limit'],_0x41e495[_0x25c6fb('0x26e8')](_0x25c6fb('0x178b'))?_0x503095['promise']=_0x453092[_0x25c6fb('0x14a6')][_0x25c6fb('0x2122')](_0x503095[_0x25c6fb('0x582')],_0x159c51)['$promise']:(_0x503095[_0x25c6fb('0x582')]['id']=_0x503095[_0x25c6fb('0x1e97')]['id'],_0x503095[_0x25c6fb('0x582')]['section']=_0x25c6fb('0x1af'),_0x503095['promise']=_0x453092[_0x25c6fb('0x1e97')][_0x25c6fb('0x1cf1')](_0x503095[_0x25c6fb('0x582')],_0x159c51)[_0x25c6fb('0x1dc2')]);}function _0x20d8ca(_0x2bc848,_0x1f7e0a){var _0x45dbc6=_0x1459e6;_0xb4d363[_0x45dbc6('0x1e6d')]({'controller':'CreateOrEditSmsQueueDialogController','controllerAs':'vm','templateUrl':_0x25d6b5,'parent':angular[_0x45dbc6('0x1aa8')](_0x21d777[_0x45dbc6('0x54c')]),'targetEvent':_0x2bc848,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x1f7e0a,'smsQueues':_0x51538b()[_0x45dbc6('0x3c5')](_0x503095[_0x45dbc6('0x4d7')]),'license':null,'setting':null,'crudPermissions':_0x503095[_0x45dbc6('0xada')]}});}function _0x1cbdf7(_0x44194e,_0x2552bf){var _0x3942a2=_0x1459e6;_0xb4d363['show']({'controller':_0x3942a2('0x95e'),'controllerAs':'vm','templateUrl':_0x451976,'parent':angular['element'](_0x21d777[_0x3942a2('0x54c')]),'targetEvent':_0x44194e,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x2552bf,'smsQueues':_0x503095[_0x3942a2('0x4d7')]?_0x503095[_0x3942a2('0x4d7')][_0x3942a2('0x580')]:[],'realtime':![],'crudPermissions':_0x503095[_0x3942a2('0xada')]}});}function _0x25555f(_0x2da32d){var _0x279a54=_0x1459e6;return _0x453092['smsQueue'][_0x279a54('0x264e')](_0x2da32d)['$promise'][_0x279a54('0xaa5')](function(){var _0x2088fb=_0x279a54;_0x52e775[_0x2088fb('0xe10')]({'title':_0x2088fb('0x2758'),'msg':_0x2da32d[_0x2088fb('0x25d6')]?_0x2da32d[_0x2088fb('0x25d6')]+_0x2088fb('0x1734'):''});})[_0x279a54('0x253d')](function(_0x3bf50d){var _0x45b7e6=_0x279a54;_0x52e775[_0x45b7e6('0x187f')]({'title':_0x45b7e6('0x777'),'msg':_0x3bf50d[_0x45b7e6('0x1402')]});});}_0x87cdab[_0x1459e6('0xc75')](_0x1459e6('0x12d0'),function(){var _0x24d404=_0x1459e6;_0x51b196[_0x24d404('0x2629')]('sms_queue:save'),_0x51b196[_0x24d404('0x2629')](_0x24d404('0x1d1a')),_0x51b196[_0x24d404('0x2629')](_0x24d404('0xe9d')),_0x51b196['removeAllListeners']('user:update'),_0x51b196['removeAllListeners'](_0x24d404('0x10ac')),_0x51b196['removeAllListeners']('userVoiceQueue:save');});}const _0x4f0b23=_0x450c3c;function _0x27b36a(){var _0x1e7a03=_0x1a8446;return{'status':{'registered':_0x1e7a03('0x1'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x1e7a03('0x15cb'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x1e7a03('0x17')},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x1e7a03('0x1670'),'inuse':_0x1e7a03('0x15a1'),'busy':_0x1e7a03('0xb2'),'invalid':_0x1e7a03('0xc98'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x1e7a03('0x1dac'),'onhold':_0x1e7a03('0xcf5')},'channelStatus':{'ring':_0x1e7a03('0x1dac'),'up':_0x1e7a03('0xe58'),'hangup':_0x1e7a03('0x182a')},'channelStatusOut':{'ring':_0x1e7a03('0x15d9'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x1e7a03('0x182a')}};}const _0x4ba44d=_0x27b36a;_0x2a59ef[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0xe74')];function _0x2a59ef(_0x2b94ca,_0x256876,_0x178239){var _0x5d1c13=_0x1a8446,_0x228a9c=this;_0x178239[_0x5d1c13('0x18d1')](),_0x178239[_0x5d1c13('0x16dc')](),_0x228a9c[_0x5d1c13('0xe5c')]=0x0;switch(_0x256876[_0x5d1c13('0x4cb')][_0x5d1c13('0x25d6')]){case'app.sms.realtime.agents':_0x228a9c['selectedTab']=0x0;break;case _0x5d1c13('0xfae'):_0x228a9c['selectedTab']=0x1;break;default:_0x228a9c['selectedTab']=0x0,_0x256876['go'](_0x5d1c13('0x1b89'));}_0x2b94ca[_0x5d1c13('0x1ccf')]('vm.selectedTab',function(_0x2b2f73,_0x52d142){var _0x5a22e8=_0x5d1c13;if(_0x2b2f73!==_0x52d142)switch(_0x2b2f73){case 0x0:_0x256876['go']('app.sms.realtime.agents');break;case 0x1:_0x256876['go'](_0x5a22e8('0xfae'));break;default:_0x256876['go'](_0x5a22e8('0x1b89'));}});}const _0xd7ce95=_0x2a59ef;_0x28baf9['$inject']=[_0x1a8446('0x2ce')];function _0x28baf9(_0x5d35f5){var _0x574851=_0x1a8446;_0x5d35f5['state'](_0x574851('0x8ee'),{'url':_0x574851('0x22d4'),'views':{'content@app':{'templateUrl':_0x29cc9d,'controller':_0x574851('0x1c9b')}},'resolve':{'userProfile':[_0x574851('0x1d16'),_0x574851('0x1dfd'),function _0x3ebd16(_0x38ad50,_0x491db3){var _0x49c1ec=_0x574851;return _0x491db3[_0x49c1ec('0x26e8')]('admin')?null:_0x38ad50['resolve'](_0x49c1ec('0x567'),{'fields':_0x49c1ec('0x1bb0'),'id':_0x491db3[_0x49c1ec('0xacc')]()[_0x49c1ec('0x2168')]});}],'userProfileSection':[_0x574851('0x1d16'),_0x574851('0x1dfd'),function _0x531f04(_0x27fb4d,_0x1f6e08){var _0x2fdfab=_0x574851;return _0x1f6e08[_0x2fdfab('0x26e8')](_0x2fdfab('0x178b'))?null:_0x27fb4d[_0x2fdfab('0x149f')]('userProfileSection@get',{'fields':_0x2fdfab('0xe6a'),'userProfileId':_0x1f6e08[_0x2fdfab('0xacc')]()[_0x2fdfab('0x2168')],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})[_0x574851('0xb46')](_0x574851('0x1b89'),{'url':'/agents','controller':_0x574851('0x10c7'),'templateUrl':_0x4253c0,'resolve':{'pauses':[_0x574851('0x1d16'),function _0x45aa5e(_0x5bd506){var _0x4b78e4=_0x574851;return _0x5bd506[_0x4b78e4('0x149f')]('pause@get',{'nolimit':!![]});}],'agents':[_0x574851('0x1d16'),_0x574851('0x1dfd'),function _0x45687f(_0x3216a5,_0x47cbb0){var _0x1d7f01=_0x574851;return _0x47cbb0['hasRole'](_0x1d7f01('0x178b'))?_0x3216a5[_0x1d7f01('0x149f')]('user@get',{'fields':_0x1d7f01('0x515'),'role':_0x1d7f01('0xeff'),'sort':_0x1d7f01('0x18e5'),'nolimit':!![]}):_0x3216a5['resolve'](_0x1d7f01('0x49a'),{'id':_0x47cbb0[_0x1d7f01('0xacc')]()[_0x1d7f01('0x2168')],'section':_0x1d7f01('0x91a'),'fields':_0x1d7f01('0x515'),'role':'agent','sort':'fullname','nolimit':!![]});}],'userProfile':[_0x574851('0x1d16'),'Auth',function _0x46d459(_0x1a9d56,_0xe29bf0){var _0x562e97=_0x574851;return _0xe29bf0['hasRole']('admin')?null:_0x1a9d56[_0x562e97('0x149f')](_0x562e97('0x567'),{'fields':_0x562e97('0x1bb0'),'id':_0xe29bf0[_0x562e97('0xacc')]()[_0x562e97('0x2168')]});}],'userProfileSection':[_0x574851('0x1d16'),_0x574851('0x1dfd'),function _0x4a51cf(_0x2ed036,_0x30dff0){var _0x204006=_0x574851;return _0x30dff0[_0x204006('0x26e8')]('admin')?null:_0x2ed036[_0x204006('0x149f')](_0x204006('0x89e'),{'fields':_0x204006('0xe6a'),'userProfileId':_0x30dff0[_0x204006('0xacc')]()[_0x204006('0x2168')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function _0x1854b3(_0x2b1a12){var _0x23367f=_0x574851;return _0x2b1a12[_0x23367f('0x149f')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x2c6})['state']('app.sms.realtime.queues',{'url':'/queues','controller':'QueuesSmsRealtimeController\x20as\x20vm','templateUrl':_0x253ad8,'resolve':{'queues':['apiResolver',_0x574851('0x1dfd'),function _0x162b7e(_0x3b333c,_0x5b2063){var _0x125a36=_0x574851;return _0x5b2063[_0x125a36('0x26e8')](_0x125a36('0x178b'))?_0x3b333c[_0x125a36('0x149f')](_0x125a36('0xaf5'),{'type':_0x125a36('0x4b8'),'sort':_0x125a36('0xd82'),'limit':0xa,'offset':0x0}):_0x3b333c[_0x125a36('0x149f')](_0x125a36('0x49a'),{'id':_0x5b2063[_0x125a36('0xacc')]()[_0x125a36('0x2168')],'section':_0x125a36('0x1af'),'channel':'sms','type':_0x125a36('0x4b8'),'sort':_0x125a36('0xd82'),'limit':0xa,'page':0x1});}],'userProfile':[_0x574851('0x1d16'),'Auth',function _0x4b4c54(_0x55c282,_0x2308e2){var _0x3aac4c=_0x574851;return _0x2308e2[_0x3aac4c('0x26e8')](_0x3aac4c('0x178b'))?null:_0x55c282['resolve']('userProfile@get',{'fields':_0x3aac4c('0x1bb0'),'id':_0x2308e2['getCurrentUser']()[_0x3aac4c('0x2168')]});}],'userProfileSection':[_0x574851('0x1d16'),_0x574851('0x1dfd'),function _0x3f63cd(_0x2353cc,_0x3e61de){var _0x22a7a3=_0x574851;return _0x3e61de[_0x22a7a3('0x26e8')](_0x22a7a3('0x178b'))?null:_0x2353cc[_0x22a7a3('0x149f')](_0x22a7a3('0x89e'),{'fields':_0x22a7a3('0xe6a'),'userProfileId':_0x3e61de[_0x22a7a3('0xacc')]()['userProfileId'],'sectionId':0x2bd});}],'rpcQueues':[_0x574851('0x1d16'),function _0x254311(_0x265d8b){var _0x1fde35=_0x574851;return _0x265d8b[_0x1fde35('0x149f')](_0x1fde35('0xa34'));}]},'authenticate':!![],'permissionId':0x2c6});}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x8ee'),[])[_0x1a8446('0x1b14')](_0x28baf9)[_0x1a8446('0x780')](_0x1a8446('0x1e27'),_0x3dfb7c)['controller']('QueuesSmsRealtimeController',_0x4f0b23)[_0x1a8446('0x1be9')](_0x1a8446('0x5b4'),_0x4ba44d)[_0x1a8446('0x780')](_0x1a8446('0x4'),_0xd7ce95);const _0x3f4033=_0x4fb511['p']+'src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues-[chunkhash].html',_0x3f13cc=_0x4fb511['p']+_0x1a8446('0x1231'),_0x231d09=_0x4fb511['p']+_0x1a8446('0x1164'),_0x3164ce=_0x4fb511['p']+_0x1a8446('0x154b');_0x4d7e1f[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x18a1'),_0x1a8446('0x1658'),'api','Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x4d7e1f(_0x2fc771,_0x4fef0c,_0x533f70,_0x251076,_0x5f2dbf,_0x4feb06,_0x4f9833,_0x3a47ae,_0x207dfa,_0x3d3662,_0x570649,_0x1e3eab,_0x179d07,_0x515ddb){var _0x2329e6=_0x1a8446,_0x22b32c=this;_0x22b32c[_0x2329e6('0x7fc')]=_0x570649[_0x2329e6('0xacc')](),_0x22b32c[_0x2329e6('0x4c6')]=[],_0x22b32c['setting']=_0x179d07,_0x22b32c[_0x2329e6('0x1202')]=_0x1e3eab,_0x22b32c[_0x2329e6('0xada')]=_0x515ddb,_0x22b32c['hasModulePermissions']={},_0x22b32c['passwordPattern']=_0x22b32c[_0x2329e6('0x143f')]&&_0x22b32c['setting'][_0x2329e6('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x22b32c[_0x2329e6('0x110a')]=_0x2329e6('0xfb'),_0x22b32c[_0x2329e6('0x1658')]=angular[_0x2329e6('0x20a')](_0x207dfa),_0x22b32c[_0x2329e6('0x18a1')]=_0x3a47ae,_0x22b32c[_0x2329e6('0x2012')]=![];!_0x22b32c['smsAccount']&&(_0x22b32c[_0x2329e6('0x1658')]={'remote':_0x533f70[_0x2329e6('0x1cc2')]()+_0x2329e6('0x356')+_0x533f70[_0x2329e6('0x160c')]()+(_0x533f70[_0x2329e6('0x191')]()?':'+_0x533f70[_0x2329e6('0x191')]():''),'type':'twilio','waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x22b32c[_0x2329e6('0x110a')]='SMS.NEW_SMSACCOUNT',_0x22b32c[_0x2329e6('0x2012')]=!![]);_0x4fef0c[_0x2329e6('0x25cf')]['id']&&(_0x22b32c[_0x2329e6('0x1658')]['SmsAccountId']=_0x4fef0c[_0x2329e6('0x25cf')]['id']);_0x22b32c[_0x2329e6('0x1acc')]=_0x4c6d2a,_0x22b32c[_0x2329e6('0xba3')]=_0x469483,_0x22b32c[_0x2329e6('0x44d')]=_0x32d4f4,_0x22b32c[_0x2329e6('0xc09')]=_0x110d91,_0x22b32c[_0x2329e6('0x2023')]=_0x3a5674,_0x570649[_0x2329e6('0x26e8')](_0x2329e6('0x178b'))?_0x3d3662[_0x2329e6('0x26b4')][_0x2329e6('0x2122')]({'fields':_0x2329e6('0x17fe'),'sort':'name'})[_0x2329e6('0x1dc2')][_0x2329e6('0xaa5')](function(_0x334b39){var _0x6d99ea=_0x2329e6;_0x22b32c['lists']=_0x334b39[_0x6d99ea('0x580')]||[];})['catch'](function(_0x6a526b){var _0xb8a2ff=_0x2329e6;_0x4f9833[_0xb8a2ff('0x187f')]({'title':_0x6a526b['status']?_0xb8a2ff('0x16c2')+_0x6a526b[_0xb8a2ff('0x2fa')]+'\x20-\x20'+_0x6a526b[_0xb8a2ff('0x24df')]:_0xb8a2ff('0x1adf'),'msg':_0x6a526b[_0xb8a2ff('0x10fd')]?JSON['stringify'](_0x6a526b[_0xb8a2ff('0x10fd')]):_0x6a526b['toString']()});}):_0x3d3662[_0x2329e6('0x26b4')][_0x2329e6('0x2122')]({'fields':'id,name','sort':'name'})[_0x2329e6('0x1dc2')][_0x2329e6('0xaa5')](function(_0xb8f377){var _0x3fbd64=_0x2329e6;_0x22b32c[_0x3fbd64('0x1126')]=_0xb8f377[_0x3fbd64('0x580')]||[];})['then'](function(){var _0x2ad049=_0x2329e6;return _0x3d3662[_0x2ad049('0x1a50')]['get']({'userProfileId':_0x22b32c[_0x2ad049('0x7fc')][_0x2ad049('0x2168')],'sectionId':0x12d})['$promise'];})[_0x2329e6('0xaa5')](function(_0x2066d){var _0x172cbb=_0x2329e6,_0x826f22=_0x2066d&&_0x2066d[_0x172cbb('0x580')]?_0x2066d[_0x172cbb('0x580')][0x0]:null;if(!_0x826f22){var _0x4973d6=[],_0x1f3a61=null;_0x22b32c[_0x172cbb('0x1658')]&&(_0x1f3a61=_0x51538b()[_0x172cbb('0xe9e')](_0x22b32c[_0x172cbb('0x1126')],{'id':Number(_0x22b32c['smsAccount']['ListId'])}));for(var _0x5e8814=0x0;_0x5e8814<_0x22b32c[_0x172cbb('0x1126')][_0x172cbb('0x2587')];_0x5e8814++){_0x1f3a61&&_0x22b32c[_0x172cbb('0x1126')][_0x5e8814]['id']===_0x1f3a61['id']&&(_0x22b32c['lists'][_0x5e8814][_0x172cbb('0x12eb')]=![],_0x4973d6[_0x172cbb('0x1599')](_0x22b32c[_0x172cbb('0x1126')][_0x5e8814]));}_0x22b32c[_0x172cbb('0x1126')]=_0x4973d6;}else{if(!_0x826f22[_0x172cbb('0x26cc')])return _0x3d3662[_0x172cbb('0x249a')][_0x172cbb('0x2122')]({'sectionId':_0x826f22['id']})[_0x172cbb('0x1dc2')]['then'](function(_0x56c825){var _0x5ab0cb=_0x172cbb,_0x592a5b=_0x51538b()[_0x5ab0cb('0x1246')](_0x56c825[_0x5ab0cb('0x580')],function(_0x4fad8e){var _0x4f44d7=_0x5ab0cb;return _0x51538b()[_0x4f44d7('0xe9e')](_0x22b32c[_0x4f44d7('0x1126')],{'id':_0x4fad8e['resourceId']});}),_0x1e7f6f=null;_0x22b32c[_0x5ab0cb('0x1658')]&&(_0x1e7f6f=_0x51538b()[_0x5ab0cb('0xe9e')](_0x22b32c[_0x5ab0cb('0x1126')],{'id':Number(_0x22b32c[_0x5ab0cb('0x1658')][_0x5ab0cb('0xee0')])}));if(_0x1e7f6f&&!_0x51538b()['some'](_0x592a5b,['id',_0x1e7f6f['id']])){var _0x53682d=_0x51538b()['find'](_0x22b32c[_0x5ab0cb('0x1126')],{'id':_0x1e7f6f['id']});_0x53682d[_0x5ab0cb('0x12eb')]=![],_0x592a5b[_0x5ab0cb('0x1599')](_0x53682d);}_0x22b32c[_0x5ab0cb('0x1126')]=_0x592a5b;});}})[_0x2329e6('0x253d')](function(_0xa6c55a){var _0x3bc5b2=_0x2329e6;_0x4f9833[_0x3bc5b2('0x187f')]({'title':_0xa6c55a[_0x3bc5b2('0x2fa')]?_0x3bc5b2('0x16c2')+_0xa6c55a['status']+_0x3bc5b2('0x169e')+_0xa6c55a[_0x3bc5b2('0x24df')]:_0x3bc5b2('0x177f'),'msg':_0xa6c55a[_0x3bc5b2('0x10fd')]?JSON[_0x3bc5b2('0xa48')](_0xa6c55a[_0x3bc5b2('0x10fd')]):_0xa6c55a[_0x3bc5b2('0x684')]()});});function _0x4c6d2a(){var _0x5334cd=_0x2329e6;_0x22b32c[_0x5334cd('0x4c6')]=[],_0x3d3662[_0x5334cd('0x1658')][_0x5334cd('0x242b')](_0x22b32c[_0x5334cd('0x1658')])[_0x5334cd('0x1dc2')]['then'](function(_0x25e477){var _0x483478=_0x5334cd;_0x22b32c['smsAccounts']['unshift'](_0x25e477[_0x483478('0x256a')]()),_0x4f9833[_0x483478('0xe10')]({'title':_0x483478('0x2560'),'msg':_0x22b32c[_0x483478('0x1658')][_0x483478('0x25d6')]?_0x22b32c[_0x483478('0x1658')][_0x483478('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x3a5674(_0x25e477);})[_0x5334cd('0x253d')](function(_0x2faa21){var _0x2951e6=_0x5334cd;if(_0x2faa21[_0x2951e6('0x10fd')]&&_0x2faa21[_0x2951e6('0x10fd')][_0x2951e6('0x4c6')]&&_0x2faa21[_0x2951e6('0x10fd')]['errors']['length']){_0x22b32c[_0x2951e6('0x4c6')]=_0x2faa21[_0x2951e6('0x10fd')][_0x2951e6('0x4c6')]||[{'message':_0x2faa21[_0x2951e6('0x684')](),'type':_0x2951e6('0x2147')}];for(var _0x3ef717=0x0;_0x3ef717<_0x2faa21[_0x2951e6('0x10fd')][_0x2951e6('0x4c6')][_0x2951e6('0x2587')];_0x3ef717+=0x1){_0x4f9833[_0x2951e6('0x187f')]({'title':_0x2faa21[_0x2951e6('0x10fd')][_0x2951e6('0x4c6')][_0x3ef717]['type'],'msg':_0x2faa21['data']['errors'][_0x3ef717][_0x2951e6('0x1402')]});}}else _0x4f9833[_0x2951e6('0x187f')]({'title':_0x2faa21[_0x2951e6('0x2fa')]?'API:'+_0x2faa21[_0x2951e6('0x2fa')]+_0x2951e6('0x169e')+_0x2faa21[_0x2951e6('0x24df')]:_0x2951e6('0x2147'),'msg':_0x2faa21[_0x2951e6('0x10fd')]?JSON[_0x2951e6('0xa48')](_0x2faa21[_0x2951e6('0x10fd')]['message']):_0x2faa21[_0x2951e6('0x684')]()});});}function _0x469483(){var _0x25b766=_0x2329e6;_0x22b32c['errors']=[],_0x3d3662[_0x25b766('0x1658')]['update']({'id':_0x22b32c[_0x25b766('0x1658')]['id']},_0x22b32c['smsAccount'])[_0x25b766('0x1dc2')]['then'](function(_0x56c518){var _0x3ece83=_0x25b766,_0x304473=_0x51538b()[_0x3ece83('0xe9e')](_0x22b32c[_0x3ece83('0x18a1')],{'id':_0x56c518['id']});_0x304473&&_0x51538b()[_0x3ece83('0x283c')](_0x304473,_0x51538b()[_0x3ece83('0x104e')](_0x56c518[_0x3ece83('0x256a')](),_0x51538b()['keys'](_0x304473))),_0x4f9833['success']({'title':_0x3ece83('0x1353'),'msg':_0x22b32c[_0x3ece83('0x1658')][_0x3ece83('0x25d6')]?_0x22b32c[_0x3ece83('0x1658')][_0x3ece83('0x25d6')]+_0x3ece83('0x20bf'):''}),_0x3a5674(_0x56c518);})[_0x25b766('0x253d')](function(_0x27960b){var _0x83a8e1=_0x25b766;if(_0x27960b[_0x83a8e1('0x10fd')]&&_0x27960b[_0x83a8e1('0x10fd')][_0x83a8e1('0x4c6')]&&_0x27960b['data'][_0x83a8e1('0x4c6')][_0x83a8e1('0x2587')]){_0x22b32c[_0x83a8e1('0x4c6')]=_0x27960b[_0x83a8e1('0x10fd')][_0x83a8e1('0x4c6')]||[{'message':_0x27960b[_0x83a8e1('0x684')](),'type':_0x83a8e1('0xd32')}];for(var _0x5cc526=0x0;_0x5cc526<_0x27960b['data'][_0x83a8e1('0x4c6')][_0x83a8e1('0x2587')];_0x5cc526++){_0x4f9833[_0x83a8e1('0x187f')]({'title':_0x27960b[_0x83a8e1('0x10fd')][_0x83a8e1('0x4c6')][_0x5cc526][_0x83a8e1('0x6c8')],'msg':_0x27960b[_0x83a8e1('0x10fd')][_0x83a8e1('0x4c6')][_0x5cc526][_0x83a8e1('0x1402')]});}}else _0x4f9833[_0x83a8e1('0x187f')]({'title':_0x27960b['status']?_0x83a8e1('0x16c2')+_0x27960b[_0x83a8e1('0x2fa')]+'\x20-\x20'+_0x27960b[_0x83a8e1('0x24df')]:'api.smsAccount.update','msg':_0x27960b[_0x83a8e1('0x10fd')]?JSON[_0x83a8e1('0xa48')](_0x27960b['data'][_0x83a8e1('0x1402')]):_0x27960b[_0x83a8e1('0x684')]()});});}function _0x32d4f4(_0x2e32d3){var _0x5ad257=_0x2329e6;_0x22b32c['errors']=[];var _0x4f0e4a=_0x251076['confirm']()['title'](_0x5ad257('0x12a3'))[_0x5ad257('0x15af')](_0x5ad257('0x1325'))['ariaLabel']('Delete\x20SmsAccount')['ok']('Delete')['cancel'](_0x5ad257('0x9c6'))[_0x5ad257('0x116d')](_0x2e32d3);_0x251076[_0x5ad257('0x1e6d')](_0x4f0e4a)[_0x5ad257('0xaa5')](function(){var _0x22c6bb=_0x5ad257;_0x3d3662['smsAccount']['delete']({'id':_0x22b32c[_0x22c6bb('0x1658')]['id']})['$promise'][_0x22c6bb('0xaa5')](function(){var _0x407017=_0x22c6bb;_0x51538b()[_0x407017('0xf6d')](_0x22b32c[_0x407017('0x18a1')],{'id':_0x22b32c[_0x407017('0x1658')]['id']}),_0x4f9833[_0x407017('0xe10')]({'title':_0x407017('0x2756'),'msg':(_0x22b32c[_0x407017('0x1658')][_0x407017('0x25d6')]||_0x407017('0x1658'))+_0x407017('0xcd9')}),_0x3a5674(_0x22b32c['smsAccount']);})[_0x22c6bb('0x253d')](function(_0x449159){var _0x1612a9=_0x22c6bb;if(_0x449159[_0x1612a9('0x10fd')]&&_0x449159[_0x1612a9('0x10fd')][_0x1612a9('0x4c6')]&&_0x449159[_0x1612a9('0x10fd')]['errors'][_0x1612a9('0x2587')]){_0x22b32c[_0x1612a9('0x4c6')]=_0x449159['data'][_0x1612a9('0x4c6')]||[{'message':_0x449159['toString'](),'type':_0x1612a9('0xbe8')}];for(var _0x241ae4=0x0;_0x241ae4<_0x449159['data'][_0x1612a9('0x4c6')]['length'];_0x241ae4++){_0x4f9833[_0x1612a9('0x187f')]({'title':_0x449159['data'][_0x1612a9('0x4c6')][_0x241ae4][_0x1612a9('0x6c8')],'msg':_0x449159[_0x1612a9('0x10fd')][_0x1612a9('0x4c6')][_0x241ae4][_0x1612a9('0x1402')]});}}else _0x4f9833[_0x1612a9('0x187f')]({'title':_0x449159[_0x1612a9('0x2fa')]?_0x1612a9('0x16c2')+_0x449159[_0x1612a9('0x2fa')]+_0x1612a9('0x169e')+_0x449159[_0x1612a9('0x24df')]:_0x1612a9('0xbe8'),'msg':_0x449159['data']?JSON[_0x1612a9('0xa48')](_0x449159['data'][_0x1612a9('0x1402')]):_0x449159['message']||_0x449159['toString']()});});},function(){});}function _0x110d91(_0x16a771){return _0x16a771===null?undefined:new Date(_0x16a771);}function _0x3a5674(_0x3257a8){var _0x17316d=_0x2329e6;_0x251076[_0x17316d('0x1120')](_0x3257a8);}}const _0x26661d=_0x4d7e1f,_0x2c8f5f=_0x4fb511['p']+_0x1a8446('0x20ab'),_0x4a07ae=_0x4fb511['p']+_0x1a8446('0x247e'),_0x4de00b=_0x4fb511['p']+_0x1a8446('0x18fa'),_0x4e3f0d=_0x4fb511['p']+_0x1a8446('0x19ae'),_0x1f3583=_0x4fb511['p']+_0x1a8446('0x11be'),_0x4c4619=_0x4fb511['p']+_0x1a8446('0xdf2'),_0x358b69=_0x4fb511['p']+_0x1a8446('0x1ccb'),_0x58d354=_0x4fb511['p']+_0x1a8446('0x1cbc'),_0xb2aef3=_0x4fb511['p']+_0x1a8446('0x23bc'),_0x5cd7cd=_0x4fb511['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html',_0x622262=_0x4fb511['p']+_0x1a8446('0x22f8'),_0x502822=_0x4fb511['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html';_0x5f77ef[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];var _0x4bf557={'agent':_0x2c8f5f,'amazonlex':_0x4a07ae,'autoreply':_0x4de00b,'close':_0x4e3f0d,'dialogflow':_0x1f3583,'gotoif':_0x4c4619,'gotop':_0x358b69,'interval':_0x58d354,'noop':_0xb2aef3,'queue':_0x5cd7cd,'system':_0x622262,'tag':_0x502822};function _0x5f77ef(_0x28706f,_0x3361a4,_0x2f233b,_0x530e3f,_0xc70b09){var _0x3331e0=_0x1a8446,_0x3bf761=this;_0x3bf761['currentUser']=_0xc70b09[_0x3331e0('0xacc')](),_0x3bf761[_0x3331e0('0x1658')]={},_0x3bf761[_0x3331e0('0x1f85')]={'count':0x0,'rows':[]},_0x3bf761[_0x3331e0('0x1b7c')]=[],_0x3bf761[_0x3331e0('0xada')],_0x3bf761['query']={'sort':_0x3331e0('0x13f2')},_0x3bf761['apps']=_0x51538b()[_0x3331e0('0xaee')](_0x51538b()['sortBy']([{'app':_0x3331e0('0x260f'),'appType':_0x3331e0('0x1c21'),'types':[_0x3331e0('0x1b43'),'custom',_0x3331e0('0x2334')],'fields':[],'isApp':![]},{'app':_0x3331e0('0x27ca'),'appType':_0x3331e0('0x27ca'),'type':_0x3331e0('0x27ca'),'icon':_0x3331e0('0x1892'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x3331e0('0xfba'),'name':_0x3331e0('0x12f4'),'type':_0x3331e0('0xb37'),'param':0x0}]},{'app':_0x3331e0('0x5da'),'appType':_0x3331e0('0x5da'),'type':_0x3331e0('0x5da'),'icon':'icon-apps','interval':_0x3331e0('0x1ac6'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x3331e0('0x147e'),'field':{'name':_0x3331e0('0x14e7'),'key':_0x3331e0('0x25d6')},'route':_0x3331e0('0x14e7'),'filters':{'fields':_0x3331e0('0x17fe'),'sort':_0x3331e0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x3331e0('0x23a0'),'name':_0x3331e0('0xd7b'),'type':_0x3331e0('0xb37'),'required':!![],'param':0x0},{'title':_0x3331e0('0x1093'),'name':'variable','type':_0x3331e0('0xd4d'),'values':_0x3331e0('0x147e'),'value':_0x3331e0('0x23d4'),'option':_0x3331e0('0x23d4'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x3331e0('0x1141'),'appType':'gotop','type':_0x3331e0('0x2781'),'icon':_0x3331e0('0x1892'),'interval':_0x3331e0('0x1ac6'),'isApp':!![],'fields':[{'title':_0x3331e0('0x2722'),'name':_0x3331e0('0x13f2'),'type':_0x3331e0('0x219a'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x3331e0('0x3cb'),'appType':_0x3331e0('0x3cb'),'type':'gotoif','icon':_0x3331e0('0x1892'),'interval':_0x3331e0('0x1ac6'),'isApp':!![],'fields':[{'title':_0x3331e0('0x27e6'),'name':_0x3331e0('0xe77'),'type':'text','required':!![],'param':0x0},{'title':'truepriority','name':_0x3331e0('0x13ba'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x3331e0('0x222b'),'name':_0x3331e0('0x222b'),'type':_0x3331e0('0x219a'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x3331e0('0xe26'),'appType':_0x3331e0('0xe26'),'foreignKey':_0x3331e0('0x2486'),'type':_0x3331e0('0xe26'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x3331e0('0x4d7'),'field':{'name':'queue','key':'name'},'route':_0x3331e0('0x14a6'),'filters':{'fields':_0x3331e0('0x21e2'),'sort':_0x3331e0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':_0x3331e0('0x145c'),'name':'queue','type':'apiselect','values':_0x3331e0('0x4d7'),'value':_0x3331e0('0x1766'),'option':_0x3331e0('0x1766'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x3331e0('0xc45'),'name':_0x3331e0('0x23c0'),'type':_0x3331e0('0x219a'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x3331e0('0xeff'),'appType':_0x3331e0('0xeff'),'type':_0x3331e0('0xeff'),'foreignKey':_0x3331e0('0x1037'),'icon':_0x3331e0('0x1892'),'interval':_0x3331e0('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x3331e0('0x1717'),'field':{'name':_0x3331e0('0xeff'),'key':_0x3331e0('0x25d6')},'route':_0x3331e0('0x272b'),'filters':{'fields':'id,name','sort':_0x3331e0('0x25d6'),'nolimit':!![],'role':_0x3331e0('0xeff')},'permissions':{'section':0xca}}],'fields':[{'title':_0x3331e0('0x521'),'name':_0x3331e0('0xeff'),'type':_0x3331e0('0xd4d'),'values':'agents','value':_0x3331e0('0x11cf'),'option':_0x3331e0('0x11cf'),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x3331e0('0x1b05'),'appType':_0x3331e0('0x1b05'),'type':_0x3331e0('0x1b05'),'icon':'icon-apps','interval':_0x3331e0('0x1ac6'),'isApp':!![],'fields':[{'title':_0x3331e0('0x11b6'),'name':'times','type':_0x3331e0('0xbff'),'defaultValue':'1','values':[{'option':_0x3331e0('0x1774'),'value':'1'},{'option':_0x3331e0('0xc90'),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0x3331e0('0xb37'),'type':_0x3331e0('0x1b88'),'required':!![],'param':0x1}]},{'app':_0x3331e0('0x21d0'),'appType':_0x3331e0('0x21d0'),'type':_0x3331e0('0x21d0'),'icon':_0x3331e0('0x1892'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3331e0('0x2010'),'name':_0x3331e0('0x106e'),'type':'text','required':!![],'param':0x0}]},{'app':_0x3331e0('0x38f'),'appType':'tag','type':'tag','foreignKey':'TagId','icon':_0x3331e0('0x1892'),'interval':_0x3331e0('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x3331e0('0x523'),'field':{'name':_0x3331e0('0x38f'),'key':_0x3331e0('0x25d6')},'route':_0x3331e0('0x38f'),'filters':{'fields':_0x3331e0('0x17fe'),'sort':_0x3331e0('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3331e0('0x4e7'),'name':'tag','type':'apiselect','values':_0x3331e0('0x523'),'value':_0x3331e0('0x17df'),'option':_0x3331e0('0x17df'),'required':!![],'param':0x0}]},{'app':_0x3331e0('0x67c'),'appType':_0x3331e0('0x67c'),'type':_0x3331e0('0x67c'),'icon':_0x3331e0('0x1892'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3331e0('0x1aa3'),'name':_0x3331e0('0x24ec'),'type':_0x3331e0('0xb37'),'required':!![],'param':0x0},{'title':_0x3331e0('0x1938'),'name':'language','type':_0x3331e0('0xbff'),'defaultValue':_0x3331e0('0x1921'),'values':[{'option':_0x3331e0('0xc2b'),'value':_0x3331e0('0x1de')},{'option':_0x3331e0('0x195a'),'value':_0x3331e0('0x1921')},{'option':_0x3331e0('0x6ab'),'value':_0x3331e0('0x2a3')},{'option':'Italian','value':_0x3331e0('0x1b6f')},{'option':_0x3331e0('0x13bd'),'value':'\x27es\x27'},{'option':_0x3331e0('0x701'),'value':_0x3331e0('0x27f0')},{'option':_0x3331e0('0x89b'),'value':_0x3331e0('0x14b8')},{'option':_0x3331e0('0x75'),'value':_0x3331e0('0xef2')},{'option':_0x3331e0('0x260d'),'value':_0x3331e0('0x1a3a')},{'option':_0x3331e0('0x18c5'),'value':_0x3331e0('0xa45')},{'option':'Norwegian','value':'\x27no\x27'},{'option':_0x3331e0('0x26fe'),'value':_0x3331e0('0x11c5')},{'option':_0x3331e0('0xf74'),'value':_0x3331e0('0x2526')},{'option':_0x3331e0('0x16cb'),'value':_0x3331e0('0x614')},{'option':_0x3331e0('0x18b'),'value':_0x3331e0('0x652')},{'option':_0x3331e0('0x1b87'),'value':_0x3331e0('0x2582')},{'option':_0x3331e0('0x172b'),'value':_0x3331e0('0x201e')},{'option':_0x3331e0('0x1e51'),'value':_0x3331e0('0x2072')},{'option':_0x3331e0('0xeb8'),'value':_0x3331e0('0xc82')},{'option':'Chinese\x20(Traditional)','value':_0x3331e0('0x6fe')}],'required':!![],'param':0x1},{'title':_0x3331e0('0x273'),'name':_0x3331e0('0x273'),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x3331e0('0x3f5'),'appType':_0x3331e0('0x3f5'),'type':_0x3331e0('0x3f5'),'icon':_0x3331e0('0x1892'),'interval':_0x3331e0('0x1ac6'),'isApp':!![],'fields':[{'title':_0x3331e0('0xc07'),'name':_0x3331e0('0xc07'),'type':_0x3331e0('0xb37'),'required':!![],'param':0x0},{'title':_0x3331e0('0x15f9'),'name':_0x3331e0('0x15f9'),'type':'text','required':!![],'param':0x1},{'title':_0x3331e0('0xa9a'),'name':_0x3331e0('0xa9a'),'type':_0x3331e0('0xbff'),'defaultValue':_0x3331e0('0x22e'),'values':[{'option':_0x3331e0('0x234d'),'value':_0x3331e0('0x22e')},{'option':_0x3331e0('0x438'),'value':_0x3331e0('0x1fe1')},{'option':_0x3331e0('0x16a1'),'value':_0x3331e0('0xbc4')},{'option':_0x3331e0('0x1339'),'value':_0x3331e0('0x1b6b')}],'required':!![],'param':0x2},{'title':_0x3331e0('0x18ee'),'name':'botname','type':_0x3331e0('0xb37'),'required':!![],'param':0x3},{'title':_0x3331e0('0x273'),'name':_0x3331e0('0x273'),'type':_0x3331e0('0x1b88'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x3331e0('0x9eb')]),{'isApp':![]}),_0x3bf761[_0x3331e0('0x2334')]={'group':{'name':_0x3331e0('0xdf0'),'pull':_0x3331e0('0x1ae5')},'animation':0x64,'sort':![]},_0x3bf761[_0x3331e0('0x209b')]={'group':{'name':_0x3331e0('0x1603'),'put':'opt1'},'animation':0x64,'onAdd':function _0x53b4c8(_0x5e2c74){_0x7d4160(_0x5e2c74,_0x5e2c74['newIndex']);},'onSort':function _0x240c64(){_0x3adca4();}},_0x3bf761[_0x3331e0('0x2e')]=_0x29b45c,_0x3bf761['deleteConfirm']=_0x4a9c6b,_0x3bf761['getSmsAccountApps']=_0x4677b3,_0x3bf761[_0x3331e0('0x87d')]=_0x7d4160,_0x3bf761[_0x3331e0('0x1e6')]=_0x2c09a0,_0x3bf761[_0x3331e0('0x1add')]=_0x44e0b9,_0x3bf761['deleteSelectedSmsAccountApps']=_0x464e01,_0x3bf761[_0x3331e0('0x1f31')]=_0x3adca4,_0x3bf761['getIntervals']=_0x25d1e8;function _0x29b45c(_0x5a318f,_0x1add67){var _0x6ff1f5=_0x3331e0;_0x3bf761[_0x6ff1f5('0x1658')]=_0x5a318f,_0x3bf761[_0x6ff1f5('0xada')]=typeof _0x1add67!==_0x6ff1f5('0x1574')?_0x1add67:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3bf761['applications'][_0x6ff1f5('0x2686')]=!_0x3bf761[_0x6ff1f5('0xada')][_0x6ff1f5('0x1c1d')]?!![]:![],_0x3bf761[_0x6ff1f5('0x582')]['id']=_0x5a318f['id'],_0x3bf761[_0x6ff1f5('0x582')][_0x6ff1f5('0x26a1')]=!![],_0x3bf761['query']['nolimit']=!![],_0x3bf761[_0x6ff1f5('0xba4')](),_0x3bf761[_0x6ff1f5('0x1f55')]();}function _0x4a9c6b(_0x5c5d1e,_0x3ee49b,_0x43f8be){var _0x3dbe32=_0x3331e0,_0x13e024=_0x3361a4[_0x3dbe32('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x3dbe32('0x102e')](_0x3dbe32('0x389')+_0x5c5d1e[_0x3dbe32('0x9eb')]+_0x3dbe32('0x697')+_0x3dbe32('0x210d'))[_0x3dbe32('0x5b5')](_0x3dbe32('0x21a3'))[_0x3dbe32('0x116d')](_0x43f8be)['ok']('OK')[_0x3dbe32('0x2030')](_0x3dbe32('0x2410'));_0x3361a4[_0x3dbe32('0x1e6d')](_0x13e024)[_0x3dbe32('0xaa5')](function(){var _0x4d9a53=_0x3dbe32;_0x3bf761[_0x4d9a53('0x1f85')]['rows'][_0x4d9a53('0x1280')](_0x3ee49b,0x1),_0x3adca4();},function(){console['log']('CANCEL');});}function _0x7d4160(_0x2afe54,_0x104765){var _0x50ad94=_0x3331e0;if(_0x3bf761[_0x50ad94('0x1f85')][_0x50ad94('0x580')][_0x50ad94('0x2587')]){var _0xfde031=_0x3bf761[_0x50ad94('0x1f85')][_0x50ad94('0x580')][_0x104765]?_0x3bf761[_0x50ad94('0x1f85')][_0x50ad94('0x580')][_0x104765]:_0x3bf761[_0x50ad94('0x1f85')][_0x50ad94('0x580')][0x0],_0x82fac5=(_0xfde031['appType']||_0xfde031[_0x50ad94('0x9eb')])[_0x50ad94('0xcf6')]();_0x3361a4[_0x50ad94('0x1e6d')]({'controller':_0x50ad94('0x48a')[_0x50ad94('0x9e4')](_0x82fac5,'DialogController'),'controllerAs':'vm','templateUrl':_0x4bf557[_0x82fac5],'parent':angular[_0x50ad94('0x1aa8')](_0x2f233b[_0x50ad94('0x54c')]),'targetEvent':_0x2afe54,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0xfde031,'smsAccount':_0x3bf761['smsAccount'],'crudPermissions':_0x3bf761[_0x50ad94('0xada')]}})['then'](function(_0x32c202){var _0x373f8e=_0x50ad94;_0x32c202&&(_0x32c202['id']?_0x3bf761[_0x373f8e('0x1f85')]['rows'][_0x104765]=_0x32c202:_0x3bf761[_0x373f8e('0x1f85')][_0x373f8e('0x580')][_0x373f8e('0x1280')](_0x104765,0x0,_0x32c202),_0x3adca4());})[_0x50ad94('0x253d')](function(_0x509f14){var _0x5aa40b=_0x50ad94;_0x509f14&&_0x530e3f[_0x5aa40b('0x187f')]({'title':_0x509f14['status']?_0x5aa40b('0x16c2')+_0x509f14[_0x5aa40b('0x2fa')]+_0x5aa40b('0x169e')+_0x509f14[_0x5aa40b('0x24df')]:'SYSTEM:EDITMODALSHOW','msg':_0x509f14['data']?JSON[_0x5aa40b('0xa48')](_0x509f14[_0x5aa40b('0x10fd')]):_0x509f14[_0x5aa40b('0x684')]()});});}}function _0x2c09a0(_0x30631d,_0x43015a){var _0xa18431=_0x3331e0;if(_0x3bf761['smsAccountApps'][_0xa18431('0x580')][_0xa18431('0x2587')]){var _0xdf640a=_0x3bf761['smsAccountApps'][_0xa18431('0x580')][_0x43015a]?_0x3bf761[_0xa18431('0x1f85')][_0xa18431('0x580')][_0x43015a]:_0x3bf761[_0xa18431('0x1f85')]['rows'][0x0];_0x3361a4['show']({'controller':_0xa18431('0x21ab'),'controllerAs':'vm','templateUrl':_0x58d354,'parent':angular['element'](_0x2f233b[_0xa18431('0x54c')]),'targetEvent':_0x30631d,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xdf640a[_0xa18431('0x1c21')],'IntervalId':_0xdf640a[_0xa18431('0x1f8c')],'application':!![]},'intervals':[],'crudPermissions':_0x3bf761[_0xa18431('0xada')]}})[_0xa18431('0xaa5')](function(_0x3d0d34){var _0x3f9388=_0xa18431;_0x3d0d34&&(_0xdf640a['interval']=_0x3d0d34['interval']||_0x3f9388('0x1ac6'),_0xdf640a['IntervalId']=_0x3d0d34[_0x3f9388('0x1f8c')]||null,_0x3adca4());});}}function _0x3adca4(){var _0x57bd66=_0x3331e0,_0x394cb4=0x1,_0x34da87=[];for(var _0x153daa=0x0;_0x153daa<_0x3bf761[_0x57bd66('0x1f85')][_0x57bd66('0x580')][_0x57bd66('0x2587')];_0x153daa++){var _0x5838eb=_0x3bf761[_0x57bd66('0x1f85')]['rows'][_0x153daa],_0x3cff45=[],_0x40d215=[];_0x5838eb['intervals']=_0x5838eb[_0x57bd66('0x1c21')]!==_0x57bd66('0x1ac6')?[_0x5838eb['interval']]:_0x5838eb['IntervalId']?_0x51538b()[_0x57bd66('0x1246')](_0x51538b()['filter'](_0x3bf761[_0x57bd66('0x2568')]['rows'],{'IntervalId':_0x5838eb[_0x57bd66('0x1f8c')]}),_0x57bd66('0x1c21')):[],_0x5838eb['context']=_0x3bf761['smsAccount'][_0x57bd66('0x19cd')],_0x5838eb[_0x57bd66('0x1990')]=_0x3bf761['smsAccount'][_0x57bd66('0x1990')],_0x5838eb[_0x57bd66('0x6c8')]&&(_0x5838eb[_0x57bd66('0x6c8')]=_0x5838eb[_0x57bd66('0x6c8')]['toLowerCase']()),_0x5838eb[_0x57bd66('0x13f2')]=_0x3cff45[_0x57bd66('0x2587')]?_0x51538b()[_0x57bd66('0x23f4')](_0x3cff45)[_0x57bd66('0x13f2')]+0x1:_0x394cb4,_0x394cb4=(_0x40d215[_0x57bd66('0x2587')]?_0x51538b()[_0x57bd66('0x23f4')](_0x40d215)[_0x57bd66('0x13f2')]:_0x5838eb[_0x57bd66('0x13f2')])+0x1,_0x34da87=_0x51538b()['concat'](_0x34da87,_0x3cff45,[_0x5838eb],_0x40d215);}_0x28706f[_0x57bd66('0x1658')][_0x57bd66('0x12e')]({'id':_0x3bf761['smsAccount']['id']},_0x51538b()[_0x57bd66('0x181f')](_0x34da87,'priority'))[_0x57bd66('0x1dc2')]['then'](function(_0x3d4b42){var _0x2e2917=_0x57bd66;_0x3bf761[_0x2e2917('0x1f85')]['rows']=_0x3d4b42[_0x2e2917('0x580')];})[_0x57bd66('0x253d')](function(_0x4b1928){var _0x534749=_0x57bd66;console[_0x534749('0x187f')](_0x4b1928);});}function _0x372ae6(_0xc89322){var _0x4cf64c=_0x3331e0;_0x3bf761[_0x4cf64c('0x1f85')]=_0xc89322||{'count':0x0,'rows':[]};}function _0x25d1e8(){var _0x59d2eb=_0x3331e0;return _0x28706f[_0x59d2eb('0x1c21')][_0x59d2eb('0x2122')]({'fields':_0x59d2eb('0x1487')})[_0x59d2eb('0x1dc2')][_0x59d2eb('0xaa5')](function(_0x2024a9){_0x3bf761['intervals']=_0x2024a9;})[_0x59d2eb('0x253d')](function(_0x59ba6c){var _0x4dc287=_0x59d2eb;console[_0x4dc287('0x187f')](_0x59ba6c);});}function _0x4677b3(){var _0x5560be=_0x3331e0;_0x3bf761[_0x5560be('0x159a')]=_0x28706f[_0x5560be('0x1658')][_0x5560be('0x185c')](_0x3bf761[_0x5560be('0x582')],_0x372ae6)[_0x5560be('0x1dc2')];}function _0x44e0b9(_0x4224aa){var _0x1d8b4c=_0x3331e0;_0x51538b()[_0x1d8b4c('0xf6d')](_0x3bf761[_0x1d8b4c('0x1f85')]['rows'],{'id':_0x4224aa['id']}),_0x3adca4(),_0x530e3f[_0x1d8b4c('0xe10')]({'title':'App\x20deleted!','msg':_0x4224aa[_0x1d8b4c('0x9eb')]?_0x4224aa[_0x1d8b4c('0x9eb')]+'\x20has\x20been\x20deleted!':''});}function _0x464e01(_0x10a6dd){var _0xc7e3f0=_0x3331e0,_0x42f0a1=_0x3361a4[_0xc7e3f0('0x281e')]()['title'](_0xc7e3f0('0x1190'))[_0xc7e3f0('0x102e')](_0xc7e3f0('0x389')+_0x3bf761[_0xc7e3f0('0x1b7c')][_0xc7e3f0('0x2587')]+_0xc7e3f0('0x1443')+_0xc7e3f0('0x210d'))['ariaLabel'](_0xc7e3f0('0x2845'))['targetEvent'](_0x10a6dd)['ok']('OK')[_0xc7e3f0('0x2030')](_0xc7e3f0('0x2410'));_0x3361a4[_0xc7e3f0('0x1e6d')](_0x42f0a1)[_0xc7e3f0('0xaa5')](function(){var _0x7a00ee=_0xc7e3f0;_0x3bf761[_0x7a00ee('0x1b7c')][_0x7a00ee('0x15b5')](function(_0xe339e3){var _0xc2060=_0x7a00ee;_0x51538b()[_0xc2060('0xf6d')](_0x3bf761[_0xc2060('0x1f85')][_0xc2060('0x580')],{'id':_0xe339e3['id']});}),_0x3bf761[_0x7a00ee('0x1b7c')]=[],_0x3adca4();});}}const _0x4b9cfb=_0x5f77ef;_0x4e7455[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'api',_0x1a8446('0x1658'),'smsAccounts',_0x1a8446('0x4f3'),'$translate',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x4e7455(_0x495bda,_0xb8f17e,_0x1bae3f,_0x14ac7f,_0x4466e0,_0x2d2d4d,_0x46e17b,_0x1b050a,_0x24d446,_0x3d3360){var _0x312a5a=_0x1a8446,_0xb4cfa2=this;_0xb4cfa2[_0x312a5a('0x7fc')]=_0x24d446['getCurrentUser'](),_0xb4cfa2[_0x312a5a('0x1658')]=_0x4466e0,_0xb4cfa2['crudPermissions']=_0x3d3360,_0xb4cfa2[_0x312a5a('0x4f3')]=_0x46e17b,_0xb4cfa2[_0x312a5a('0x1a30')]=[],_0xb4cfa2[_0x312a5a('0x11b9')]=[],_0xb4cfa2[_0x312a5a('0xbf7')]=[],_0xb4cfa2[_0x312a5a('0x215b')]=[],_0xb4cfa2[_0x312a5a('0x214a')]=[],_0xb4cfa2[_0x312a5a('0xc54')]=![],_0xb4cfa2[_0x312a5a('0x2318')]=_0x380f06,_0xb4cfa2[_0x312a5a('0x17bb')]=_0x2d73,_0xb4cfa2['closeDialog']=_0x11cc51,_0xb4cfa2[_0x312a5a('0x1c23')]={'readOnly':!_0xb4cfa2[_0x312a5a('0xada')][_0x312a5a('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x312a5a('0x18e5'),'line2':[_0x312a5a('0x25d6'),'internal'],'line3':'','labelAll':_0x1b050a[_0x312a5a('0x213f')]('SMS.ALL_AGENTS'),'labelSelected':_0x1b050a[_0x312a5a('0x213f')](_0x312a5a('0x2142')),'transferCallback':function _0x25337d(){var _0x3e1408=_0x312a5a,_0x41441b=_0x51538b()[_0x3e1408('0x9ef')](_0xb4cfa2[_0x3e1408('0x214a')],_0xb4cfa2[_0x3e1408('0xbf7')],'id');_0xb4cfa2[_0x3e1408('0xc54')]=_0x51538b()[_0x3e1408('0x116b')](_0x41441b)?![]:!![];}};function _0x380f06(){var _0x59e672=_0x312a5a;return _0x24d446[_0x59e672('0x26e8')]('admin')?_0x1c093c()['catch'](function(_0x2d0a42){var _0x117d0b=_0x59e672;_0x1bae3f[_0x117d0b('0x187f')]({'title':_0x2d0a42[_0x117d0b('0x2fa')]?_0x117d0b('0x16c2')+_0x2d0a42[_0x117d0b('0x2fa')]+_0x117d0b('0x169e')+_0x2d0a42['statusText']:_0x117d0b('0x14c6'),'msg':_0x2d0a42[_0x117d0b('0x2fa')]?JSON[_0x117d0b('0xa48')](_0x2d0a42[_0x117d0b('0x10fd')]):_0x2d0a42[_0x117d0b('0x684')]()});}):_0x1eb556()[_0x59e672('0xaa5')](function(_0x2ee8b6){var _0x434b1f=_0x59e672;return _0xb4cfa2[_0x434b1f('0x224d')]=_0x2ee8b6,_0x1c093c();})[_0x59e672('0x253d')](function(_0x3f5228){var _0xe6c82b=_0x59e672;_0x1bae3f[_0xe6c82b('0x187f')]({'title':_0x3f5228[_0xe6c82b('0x2fa')]?_0xe6c82b('0x16c2')+_0x3f5228[_0xe6c82b('0x2fa')]+_0xe6c82b('0x169e')+_0x3f5228[_0xe6c82b('0x24df')]:'SYSTEM:GET_AGENTS','msg':_0x3f5228['status']?JSON[_0xe6c82b('0xa48')](_0x3f5228[_0xe6c82b('0x10fd')]):_0x3f5228[_0xe6c82b('0x684')]()});});}function _0x1eb556(){return _0xb8f17e(function(_0x54b623,_0x5d40d4){var _0x424d58=a0_0x1149;_0x14ac7f[_0x424d58('0x1a50')][_0x424d58('0x2122')]({'userProfileId':_0xb4cfa2[_0x424d58('0x7fc')][_0x424d58('0x2168')],'name':_0x424d58('0x91a')})[_0x424d58('0x1dc2')][_0x424d58('0xaa5')](function(_0x4d7d0e){var _0x77510c=_0x424d58,_0x118ef0=_0x4d7d0e&&_0x4d7d0e[_0x77510c('0x580')]?_0x4d7d0e['rows'][0x0]:null;_0x54b623(_0x118ef0);})[_0x424d58('0x253d')](function(_0x5cddc1){_0x5d40d4(_0x5cddc1);});});}function _0x1c093c(){return _0xb8f17e(function(_0x1aa1dd,_0x4fd06e){var _0x4c0c08=a0_0x1149;return _0x5c0369()['then'](function(_0x44e8a8){var _0x593776=a0_0x1149;return _0xb4cfa2[_0x593776('0x1a30')]=_0x44e8a8[_0x593776('0x580')]?_0x44e8a8[_0x593776('0x580')]:[],_0x24d446[_0x593776('0x26e8')](_0x593776('0x178b'))?_0x44e8a8:_0xb4cfa2[_0x593776('0x224d')]?_0xb4cfa2[_0x593776('0x224d')][_0x593776('0x26cc')]?_0x44e8a8:_0x2026d8():null;})[_0x4c0c08('0xaa5')](function(_0x4c69d8){var _0xa2139b=_0x4c0c08,_0x1d072a=_0x4c69d8&&_0x4c69d8[_0xa2139b('0x580')]?_0x4c69d8[_0xa2139b('0x580')]:[];return _0xb4cfa2['allowedItems']=_0x51538b()[_0xa2139b('0x1246')](_0x1d072a,function(_0x14e96a){var _0x314ef1=_0xa2139b;return _0x51538b()[_0x314ef1('0xe9e')](_0xb4cfa2[_0x314ef1('0x1a30')],{'id':_0x24d446[_0x314ef1('0x26e8')](_0x314ef1('0x178b'))||_0xb4cfa2[_0x314ef1('0x224d')][_0x314ef1('0x26cc')]?_0x14e96a['id']:_0x14e96a[_0x314ef1('0xbcd')]});}),_0xb4cfa2[_0xa2139b('0x215b')]=angular['copy'](_0xb4cfa2[_0xa2139b('0x11b9')]),_0xb4cfa2[_0xa2139b('0x1a30')]['forEach'](function(_0x1786bd){var _0x398366=_0xa2139b,_0x213857=_0x51538b()['find'](_0xb4cfa2[_0x398366('0x11b9')],{'id':_0x1786bd['id']});_0x24d446[_0x398366('0x26e8')]('admin')?_0x1786bd[_0x398366('0x145d')]=!![]:_0x1786bd[_0x398366('0x145d')]=typeof _0x213857!=='undefined'?!![]:![];}),_0x397648();})[_0x4c0c08('0xaa5')](function(_0x136e3c){var _0x41e6f9=_0x4c0c08,_0x1b76cf=_0x136e3c&&_0x136e3c[_0x41e6f9('0x580')]?_0x136e3c[_0x41e6f9('0x580')]:[];_0xb4cfa2[_0x41e6f9('0xbf7')]=_0x51538b()[_0x41e6f9('0x1246')](_0x1b76cf,function(_0x351bbb){var _0x21ad1b=_0x41e6f9,_0x4afa9c=_0x51538b()['find'](_0xb4cfa2['items'],{'id':_0x351bbb['id']});return _0x4afa9c[_0x21ad1b('0x2234')]=_0x351bbb[_0x21ad1b('0x835')]?'penalty\x20'+_0x351bbb[_0x21ad1b('0x835')][_0x21ad1b('0x2234')]:'',_0x4afa9c[_0x21ad1b('0x1b0d')]=typeof _0x351bbb[_0x21ad1b('0x1b0d')]!==_0x21ad1b('0x1574')?'<'+_0x351bbb[_0x21ad1b('0x1b0d')]+'>':'',_0x4afa9c;}),_0xb4cfa2['startingSelectedItems']=angular[_0x41e6f9('0x20a')](_0xb4cfa2['selectedItems']),_0xb4cfa2[_0x41e6f9('0x1c23')][_0x41e6f9('0xbf7')]=_0xb4cfa2['selectedItems'],_0xb4cfa2['dualMultiselectOptions'][_0x41e6f9('0x1a30')]=_0x51538b()['differenceBy'](_0xb4cfa2[_0x41e6f9('0x11b9')],_0xb4cfa2[_0x41e6f9('0x1c23')][_0x41e6f9('0xbf7')],'id'),_0x1aa1dd();})[_0x4c0c08('0x253d')](function(_0x4c7393){_0x4fd06e(_0x4c7393);});});}function _0x2026d8(){return _0xb8f17e(function(_0x2e763d,_0x250cb9){var _0x51ab20=a0_0x1149;return _0x14ac7f['userProfileResource']['get']({'sectionId':_0xb4cfa2[_0x51ab20('0x224d')]['id'],'nolimit':!![]})[_0x51ab20('0x1dc2')][_0x51ab20('0xaa5')](function(_0xd1e303){_0x2e763d(_0xd1e303);})['catch'](function(_0x5606c0){_0x250cb9(_0x5606c0);});});}function _0x397648(){return _0xb8f17e(function(_0xd095dc,_0xc31f44){var _0x53f94c=a0_0x1149;return _0x14ac7f['smsAccount'][_0x53f94c('0x1483')]({'id':_0xb4cfa2['smsAccount']['id'],'fields':_0x53f94c('0x283f'),'nolimit':!![],'role':_0x53f94c('0xeff')})[_0x53f94c('0x1dc2')][_0x53f94c('0xaa5')](function(_0xf166cc){_0xd095dc(_0xf166cc);})['catch'](function(_0x22e5c8){_0xc31f44(_0x22e5c8);});});}function _0x5c0369(){return _0xb8f17e(function(_0xdc7519,_0x93e9b1){var _0x3658af=a0_0x1149;return _0x14ac7f[_0x3658af('0x272b')][_0x3658af('0x2122')]({'fields':_0x3658af('0x283f'),'nolimit':!![],'role':'agent'})[_0x3658af('0x1dc2')][_0x3658af('0xaa5')](function(_0x5d6e8e){_0xdc7519(_0x5d6e8e);})[_0x3658af('0x253d')](function(_0x12ddc6){_0x93e9b1(_0x12ddc6);});});}function _0x1b8ad5(_0xbba271){return _0xb8f17e(function(_0xe72b3d,_0x3528c6){var _0x22bfdb=a0_0x1149;_0x51538b()[_0x22bfdb('0x116b')](_0xbba271)?_0xe72b3d():_0x14ac7f[_0x22bfdb('0x1658')][_0x22bfdb('0x26b1')]({'id':_0xb4cfa2[_0x22bfdb('0x1658')]['id'],'ids':_0x51538b()['map'](_0xbba271,'id')})[_0x22bfdb('0x1dc2')][_0x22bfdb('0xaa5')](function(){_0xe72b3d();})['catch'](function(_0x47ef95){_0x3528c6(_0x47ef95);});});}function _0x52afab(_0xc9776c){return _0xb8f17e(function(_0xbcb754,_0xe667c7){var _0x5537b6=a0_0x1149;_0x51538b()[_0x5537b6('0x116b')](_0xc9776c)?_0xbcb754():_0x14ac7f[_0x5537b6('0x1658')][_0x5537b6('0x258e')]({'id':_0xb4cfa2[_0x5537b6('0x1658')]['id'],'ids':_0x51538b()[_0x5537b6('0x1246')](_0xc9776c,'id')})[_0x5537b6('0x1dc2')][_0x5537b6('0xaa5')](function(){_0xbcb754();})[_0x5537b6('0x253d')](function(_0x165419){_0xe667c7(_0x165419);});});}function _0x2d73(){var _0x3cfd1e=_0x312a5a,_0x2fff7d=_0x51538b()[_0x3cfd1e('0x1ebb')](_0xb4cfa2[_0x3cfd1e('0x214a')],_0xb4cfa2[_0x3cfd1e('0xbf7')],'id'),_0x38c041=_0x51538b()[_0x3cfd1e('0x1ebb')](_0xb4cfa2[_0x3cfd1e('0xbf7')],_0xb4cfa2[_0x3cfd1e('0x214a')],'id');return _0x52afab(_0x2fff7d)[_0x3cfd1e('0xaa5')](function(){return _0x1b8ad5(_0x38c041);})[_0x3cfd1e('0xaa5')](function(){var _0xb80c2e=_0x3cfd1e;_0xb4cfa2[_0xb80c2e('0xc54')]=![],_0xb4cfa2[_0xb80c2e('0x215b')]=angular['copy'](_0xb4cfa2[_0xb80c2e('0x11b9')]),_0xb4cfa2[_0xb80c2e('0x214a')]=angular['copy'](_0xb4cfa2[_0xb80c2e('0xbf7')]),_0x1bae3f[_0xb80c2e('0xe10')]({'title':_0xb80c2e('0x2eb'),'msg':_0xb80c2e('0xc60')});})[_0x3cfd1e('0x253d')](function(_0x10a46a){var _0x1ec7eb=_0x3cfd1e;_0x1bae3f[_0x1ec7eb('0x187f')]({'title':_0x10a46a[_0x1ec7eb('0x2fa')]?'API:'+_0x10a46a[_0x1ec7eb('0x2fa')]+_0x1ec7eb('0x169e')+_0x10a46a['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x10a46a[_0x1ec7eb('0x2fa')]?JSON[_0x1ec7eb('0xa48')](_0x10a46a[_0x1ec7eb('0x10fd')]):_0x10a46a[_0x1ec7eb('0x684')]()});});}function _0x11cc51(){var _0xd4b4a8=_0x312a5a;_0x495bda[_0xd4b4a8('0x1120')]();}}const _0x3d116d=_0x4e7455;_0x34f15b[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d1b'),_0x1a8446('0x1658'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x34f15b(_0x130aa4,_0x27a03b,_0x213d10,_0x2b344e,_0x3e6bf3,_0x2e7fc1,_0x8f1929,_0x4c15af){var _0x5b1454=_0x1a8446,_0x49803a=this;_0x49803a[_0x5b1454('0x7fc')]=_0x8f1929[_0x5b1454('0xacc')](),_0x49803a['errors']=[],_0x49803a[_0x5b1454('0x110a')]=_0x5b1454('0x207c')+(_0x2b344e[_0x5b1454('0xe6d')]||_0x2b344e[_0x5b1454('0x9eb')])[_0x5b1454('0x1d08')](),_0x49803a[_0x5b1454('0xeff')]=angular['copy'](_0x2b344e),_0x49803a[_0x5b1454('0xada')]=_0x4c15af,_0x49803a['hasModulePermissions']={};if(_0x49803a['agent']['appdata'])switch(_0x49803a[_0x5b1454('0xeff')]['appType']?_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0xe6d')][_0x5b1454('0xcf6')]():_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x9eb')][_0x5b1454('0xcf6')]()){case _0x5b1454('0x113b'):break;case _0x5b1454('0x67c'):{var _0x4ab558=_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x124b')][_0x5b1454('0x1a39')](',');_0x49803a['agent']['key']=_0x4ab558[0x0],_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x1938')]=_0x4ab558[0x1],_0x49803a[_0x5b1454('0xeff')]['welcomemessage']=_0x4ab558[_0x5b1454('0x19aa')](0x2,_0x4ab558[_0x5b1454('0x2587')])[_0x5b1454('0x19c4')](',');}break;case _0x5b1454('0x3f5'):{var _0xcfca5f=_0x49803a[_0x5b1454('0xeff')]['appdata'][_0x5b1454('0x1a39')](',');_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0xc07')]=_0xcfca5f[0x0],_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x15f9')]=_0xcfca5f[0x1],_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0xa9a')]=_0xcfca5f[0x2],_0x49803a['agent'][_0x5b1454('0x18ee')]=_0xcfca5f[0x3],_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x273')]=_0xcfca5f['slice'](0x4,_0xcfca5f[_0x5b1454('0x2587')])[_0x5b1454('0x19c4')](',');}break;case _0x5b1454('0x1b05'):{var _0x43cc7d=_0x49803a[_0x5b1454('0xeff')]['appdata'][_0x5b1454('0x1a39')](',');_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x11b6')]=isNaN(_0x43cc7d[0x0])?_0x43cc7d[0x0]:parseInt(_0x43cc7d[0x0],0xa),_0x49803a[_0x5b1454('0xeff')]['text']=_0x43cc7d['slice'](0x1,_0x43cc7d[_0x5b1454('0x2587')])['join'](',');}break;case'message':_0x49803a[_0x5b1454('0xeff')]['text']=_0x49803a[_0x5b1454('0xeff')]['appdata'];break;case _0x5b1454('0x282c'):_0x49803a['agent'][_0x5b1454('0x25d6')]=_0x49803a['agent'][_0x5b1454('0x124b')][_0x5b1454('0x1a39')]('=')[0x0],_0x49803a[_0x5b1454('0xeff')]['value']=_0x49803a[_0x5b1454('0xeff')]['appdata'][_0x5b1454('0x1a39')]('=')[0x1];break;case _0x5b1454('0x2067'):_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x24b9')]=_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x124b')];break;default:{var _0x58efd4=_0x49803a[_0x5b1454('0xeff')]['appdata'][_0x5b1454('0x1a39')](',');_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0xeff')]=_0x51538b()[_0x5b1454('0x116b')](_0x58efd4[0x0])?_0x58efd4[0x0]:isNaN(_0x58efd4[0x0])?_0x58efd4[0x0]:parseInt(_0x58efd4[0x0],0xa),_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x23c0')]=_0x51538b()[_0x5b1454('0x116b')](_0x58efd4[0x1])?_0x58efd4[0x1]:isNaN(_0x58efd4[0x1])?_0x58efd4[0x1]:parseInt(_0x58efd4[0x1],0xa);}break;}else _0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x23c0')]=0x1e;_0x49803a['agent']['type']&&_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x6c8')]['toLowerCase']()===_0x5b1454('0x19d1')&&_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0xe6d')][_0x5b1454('0xcf6')]()===_0x5b1454('0x1e7f')&&(_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x1b8f')]=_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x1a46')]?_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x1a46')][_0x5b1454('0x1a39')]('$')[0x0]:undefined,_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0xeed')]=_0x49803a[_0x5b1454('0xeff')][_0x5b1454('0x514')]?_0x5b1454('0x23d8')+_0x49803a[_0x5b1454('0xeff')]['callerID']:undefined);_0x49803a['saveSmsAccountApp']=_0x3fe82e,_0x49803a[_0x5b1454('0x2023')]=_0x4882dc,_0x8f1929[_0x5b1454('0x26e8')](_0x5b1454('0x178b'))?_0x2e7fc1[_0x5b1454('0x272b')][_0x5b1454('0x2122')]({'fields':'id,name','sort':_0x5b1454('0x25d6'),'nolimit':_0x5b1454('0x1c5c'),'role':'agent'})['$promise'][_0x5b1454('0xaa5')](function(_0x5b245d){var _0x495fce=_0x5b1454;_0x49803a[_0x495fce('0x1717')]=_0x5b245d[_0x495fce('0x580')]||[];})[_0x5b1454('0x253d')](function(_0x54160b){var _0x25ed68=_0x5b1454;_0x213d10[_0x25ed68('0x187f')]({'title':_0x54160b['status']?_0x25ed68('0x16c2')+_0x54160b['status']+_0x25ed68('0x169e')+_0x54160b['statusText']:_0x25ed68('0x14c6'),'msg':_0x54160b['data']?JSON[_0x25ed68('0xa48')](_0x54160b['data']):_0x54160b[_0x25ed68('0x684')]()});}):_0x2e7fc1[_0x5b1454('0x272b')][_0x5b1454('0x2122')]({'fields':_0x5b1454('0x17fe'),'sort':_0x5b1454('0x25d6'),'nolimit':_0x5b1454('0x1c5c'),'role':_0x5b1454('0xeff')})[_0x5b1454('0x1dc2')]['then'](function(_0x24010c){_0x49803a['agents']=_0x24010c['rows']||[];})[_0x5b1454('0xaa5')](function(){var _0x1b37e4=_0x5b1454;return _0x2e7fc1[_0x1b37e4('0x1a50')]['get']({'userProfileId':_0x49803a[_0x1b37e4('0x7fc')]['userProfileId'],'sectionId':0xca})[_0x1b37e4('0x1dc2')];})['then'](function(_0x29f2ab){var _0x431e29=_0x5b1454,_0x1c21d3=_0x29f2ab&&_0x29f2ab[_0x431e29('0x580')]?_0x29f2ab['rows'][0x0]:null;if(!_0x1c21d3){var _0x584008=[],_0x366eac=null;_0x49803a['agent']&&(_0x366eac=_0x51538b()[_0x431e29('0xe9e')](_0x49803a[_0x431e29('0x1717')],{'name':_0x49803a[_0x431e29('0xeff')][_0x431e29('0xeff')]}));for(var _0xcbdca7=0x0;_0xcbdca7<_0x49803a[_0x431e29('0x1717')][_0x431e29('0x2587')];_0xcbdca7++){_0x366eac&&_0x49803a[_0x431e29('0x1717')][_0xcbdca7]['id']===_0x366eac['id']&&(_0x49803a[_0x431e29('0x1717')][_0xcbdca7][_0x431e29('0x12eb')]=![],_0x584008[_0x431e29('0x1599')](_0x49803a[_0x431e29('0x1717')][_0xcbdca7]));}_0x49803a[_0x431e29('0x1717')]=_0x584008;}else{if(!_0x1c21d3['autoAssociation'])return _0x2e7fc1['userProfileResource']['get']({'sectionId':_0x1c21d3['id']})[_0x431e29('0x1dc2')][_0x431e29('0xaa5')](function(_0x1884f6){var _0x2298e9=_0x431e29,_0x48a45e=_0x51538b()[_0x2298e9('0x1246')](_0x1884f6[_0x2298e9('0x580')],function(_0x2e87a6){var _0x562e66=_0x2298e9;return _0x51538b()['find'](_0x49803a[_0x562e66('0x1717')],{'id':_0x2e87a6[_0x562e66('0xbcd')]});}),_0x14e21a=null;_0x49803a[_0x2298e9('0xeff')]&&(_0x14e21a=_0x51538b()['find'](_0x49803a[_0x2298e9('0x1717')],{'name':_0x49803a['agent'][_0x2298e9('0xeff')]}));if(_0x14e21a&&!_0x51538b()[_0x2298e9('0x2c2')](_0x48a45e,['id',_0x14e21a['id']])){var _0x32fec7=_0x51538b()[_0x2298e9('0xe9e')](_0x49803a['agents'],{'id':_0x14e21a['id']});_0x32fec7[_0x2298e9('0x12eb')]=![],_0x48a45e[_0x2298e9('0x1599')](_0x32fec7);}_0x49803a[_0x2298e9('0x1717')]=_0x48a45e;});}})[_0x5b1454('0x253d')](function(_0x1057b3){var _0x334c36=_0x5b1454;_0x213d10[_0x334c36('0x187f')]({'title':_0x1057b3[_0x334c36('0x2fa')]?_0x334c36('0x16c2')+_0x1057b3[_0x334c36('0x2fa')]+_0x334c36('0x169e')+_0x1057b3[_0x334c36('0x24df')]:_0x334c36('0x1a3b'),'msg':_0x1057b3[_0x334c36('0x10fd')]?JSON['stringify'](_0x1057b3[_0x334c36('0x10fd')]):_0x1057b3['toString']()});});function _0x3fe82e(){var _0x36ccae=_0x5b1454;_0x49803a[_0x36ccae('0x4c6')]=[];var _0x5ec453=[];_0x49803a[_0x36ccae('0xeff')]['type']&&_0x49803a[_0x36ccae('0xeff')]['type'][_0x36ccae('0xcf6')]()===_0x36ccae('0x19d1')&&_0x49803a['agent'][_0x36ccae('0xe6d')]===_0x36ccae('0x8da')&&(_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x1a46')]=_0x3e6bf3[_0x36ccae('0x888')]?(_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x1b8f')]||'')+_0x36ccae('0x117e')+_0x3e6bf3[_0x36ccae('0x888')]+'}':(_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x1b8f')]||'')+_0x36ccae('0x1f87'),_0x3e6bf3[_0x36ccae('0x1e0f')]!==_0x36ccae('0x117')?_0x49803a['agent'][_0x36ccae('0x1b36')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x49803a['agent'][_0x36ccae('0x1b36')]+=_0x36ccae('0x266a')):_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x1b36')]=_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x1b36')][_0x36ccae('0x170d')](_0x36ccae('0x266a'),''));var _0x18dde3=_0x51538b()[_0x36ccae('0xe9e')](_0x49803a['agents'],{'name':_0x49803a['agent'][_0x36ccae('0xeff')]});_0x18dde3&&(_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x1037')]=_0x18dde3['id']);if(_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0xe6d')]&&_0x49803a['agent'][_0x36ccae('0xe6d')]===_0x36ccae('0x113b')){}else switch((_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x9eb')]||_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0xe6d')])['toLowerCase']()){case _0x36ccae('0x282c'):_0x49803a[_0x36ccae('0xeff')]['appdata']=_0x49803a['agent'][_0x36ccae('0x25d6')]+'='+_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x12f4')];break;case'custom':break;default:_0x5ec453[0x0]=_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0xeff')],_0x5ec453[0x1]=_0x49803a['agent']['timeout'],_0x49803a[_0x36ccae('0xeff')][_0x36ccae('0x124b')]=_0x5ec453[_0x36ccae('0x19c4')](',');}_0x4882dc(_0x49803a[_0x36ccae('0xeff')]);}function _0x4882dc(_0x55bd33){_0x130aa4['hide'](_0x55bd33);}}const _0x2e3799=_0x34f15b;_0x11ba1c[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'smsAccountApp',_0x1a8446('0x1658'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x11ba1c(_0xa2ed9,_0x25c5c1,_0x294558,_0x26fadf,_0x12acc7,_0x269a16,_0x4407c3,_0x10e3dd){var _0x6c1ccc=_0x1a8446,_0x460ff5=this;_0x460ff5[_0x6c1ccc('0x7fc')]=_0x4407c3['getCurrentUser'](),_0x460ff5['errors']=[],_0x460ff5[_0x6c1ccc('0x110a')]=_0x6c1ccc('0x207c')+(_0x26fadf[_0x6c1ccc('0xe6d')]||_0x26fadf['app'])[_0x6c1ccc('0x1d08')](),_0x460ff5[_0x6c1ccc('0x3f5')]=angular[_0x6c1ccc('0x20a')](_0x26fadf),_0x460ff5[_0x6c1ccc('0xada')]=_0x10e3dd,_0x460ff5[_0x6c1ccc('0x9f0')]={};if(_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x124b')])switch(_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xe6d')]?_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xe6d')][_0x6c1ccc('0xcf6')]():_0x460ff5['amazonlex']['app']['toLowerCase']()){case _0x6c1ccc('0x113b'):break;case _0x6c1ccc('0x67c'):{var _0x454a96=_0x460ff5['amazonlex'][_0x6c1ccc('0x124b')][_0x6c1ccc('0x1a39')](',');_0x460ff5['amazonlex']['key']=_0x454a96[0x0],_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x1938')]=_0x454a96[0x1],_0x460ff5['amazonlex'][_0x6c1ccc('0x273')]=_0x454a96[_0x6c1ccc('0x19aa')](0x2,_0x454a96['length'])[_0x6c1ccc('0x19c4')](',');}break;case _0x6c1ccc('0x3f5'):{var _0x547800=_0x460ff5['amazonlex']['appdata']['split'](',');_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xc07')]=_0x547800[0x0],_0x460ff5[_0x6c1ccc('0x3f5')]['secretaccesskey']=_0x547800[0x1],_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xa9a')]=_0x547800[0x2],_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x18ee')]=_0x547800[0x3],_0x460ff5['amazonlex'][_0x6c1ccc('0x273')]=_0x547800[_0x6c1ccc('0x19aa')](0x4,_0x547800[_0x6c1ccc('0x2587')])[_0x6c1ccc('0x19c4')](',');}break;case'autoreply':{var _0x5b410d=_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x124b')][_0x6c1ccc('0x1a39')](',');_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x11b6')]=isNaN(_0x5b410d[0x0])?_0x5b410d[0x0]:parseInt(_0x5b410d[0x0],0xa),_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xb37')]=_0x5b410d['slice'](0x1,_0x5b410d[_0x6c1ccc('0x2587')])[_0x6c1ccc('0x19c4')](',');}break;case'message':_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xb37')]=_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x124b')];break;case _0x6c1ccc('0x282c'):_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x25d6')]=_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x124b')]['split']('=')[0x0],_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x12f4')]=_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x124b')]['split']('=')[0x1];break;case _0x6c1ccc('0x2067'):_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x24b9')]=_0x460ff5['amazonlex'][_0x6c1ccc('0x124b')];break;default:{var _0x1c04b8=_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x124b')][_0x6c1ccc('0x1a39')](',');_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xc07')]=_0x51538b()[_0x6c1ccc('0x116b')](_0x1c04b8[0x0])?_0x1c04b8[0x0]:isNaN(_0x1c04b8[0x0])?_0x1c04b8[0x0]:parseInt(_0x1c04b8[0x0],0xa),_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x15f9')]=_0x51538b()['isEmpty'](_0x1c04b8[0x1])?_0x1c04b8[0x1]:isNaN(_0x1c04b8[0x1])?_0x1c04b8[0x1]:parseInt(_0x1c04b8[0x1],0xa),_0x460ff5[_0x6c1ccc('0x3f5')]['lexregion']=_0x51538b()[_0x6c1ccc('0x116b')](_0x1c04b8[0x2])?_0x1c04b8[0x2]:isNaN(_0x1c04b8[0x2])?_0x1c04b8[0x2]:parseInt(_0x1c04b8[0x2],0xa),_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x18ee')]=_0x51538b()[_0x6c1ccc('0x116b')](_0x1c04b8[0x3])?_0x1c04b8[0x3]:isNaN(_0x1c04b8[0x3])?_0x1c04b8[0x3]:parseInt(_0x1c04b8[0x3],0xa),_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x273')]=_0x51538b()[_0x6c1ccc('0x116b')](_0x1c04b8[0x4])?_0x1c04b8[0x4]:isNaN(_0x1c04b8[0x4])?_0x1c04b8[0x4]:parseInt(_0x1c04b8[0x4],0xa);}break;}else _0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xa9a')]=_0x6c1ccc('0x21fd');_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x6c8')]&&_0x460ff5[_0x6c1ccc('0x3f5')]['type'][_0x6c1ccc('0xcf6')]()===_0x6c1ccc('0x19d1')&&_0x460ff5[_0x6c1ccc('0x3f5')]['appType'][_0x6c1ccc('0xcf6')]()===_0x6c1ccc('0x1e7f')&&(_0x460ff5['amazonlex'][_0x6c1ccc('0x1b8f')]=_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x1a46')]?_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x1a46')][_0x6c1ccc('0x1a39')]('$')[0x0]:undefined,_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0xeed')]=_0x460ff5[_0x6c1ccc('0x3f5')][_0x6c1ccc('0x514')]?_0x6c1ccc('0x23d8')+_0x460ff5[_0x6c1ccc('0x3f5')]['callerID']:undefined);_0x460ff5['saveSmsAccountApp']=_0x31dc95,_0x460ff5[_0x6c1ccc('0x2023')]=_0x43ccf2;function _0x31dc95(){var _0x4014a4=_0x6c1ccc;_0x460ff5[_0x4014a4('0x4c6')]=[];var _0x58c364=[];_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0x6c8')]&&_0x460ff5[_0x4014a4('0x3f5')]['type'][_0x4014a4('0xcf6')]()===_0x4014a4('0x19d1')&&_0x460ff5[_0x4014a4('0x3f5')]['appType']==='outboundDial'&&(_0x460ff5['amazonlex'][_0x4014a4('0x1a46')]=_0x12acc7[_0x4014a4('0x888')]?(_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0x1b8f')]||'')+'${EXTEN:'+_0x12acc7['cutdigits']+'}':(_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0x1b8f')]||'')+_0x4014a4('0x1f87'),_0x12acc7[_0x4014a4('0x1e0f')]!=='none'?_0x460ff5['amazonlex'][_0x4014a4('0x1b36')][_0x4014a4('0x1f38')](_0x4014a4('0x266a'))<0x0&&(_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0x1b36')]+=_0x4014a4('0x266a')):_0x460ff5[_0x4014a4('0x3f5')]['options']=_0x460ff5[_0x4014a4('0x3f5')]['options']['replace'](_0x4014a4('0x266a'),''));if(_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0xe6d')]&&_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0xe6d')]===_0x4014a4('0x113b')){}else switch((_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0x9eb')]||_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0xe6d')])[_0x4014a4('0xcf6')]()){case _0x4014a4('0x282c'):_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0x124b')]=_0x460ff5['amazonlex']['name']+'='+_0x460ff5['amazonlex'][_0x4014a4('0x12f4')];break;case _0x4014a4('0x113b'):break;default:_0x58c364[0x0]=_0x460ff5['amazonlex'][_0x4014a4('0xc07')],_0x58c364[0x1]=_0x460ff5[_0x4014a4('0x3f5')]['secretaccesskey'],_0x58c364[0x2]=_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0xa9a')],_0x58c364[0x3]=_0x460ff5[_0x4014a4('0x3f5')][_0x4014a4('0x18ee')],_0x58c364[0x4]=_0x460ff5[_0x4014a4('0x3f5')]['welcomemessage'],_0x460ff5[_0x4014a4('0x3f5')]['appdata']=_0x58c364[_0x4014a4('0x19c4')](',');}_0x43ccf2(_0x460ff5['amazonlex']);}function _0x43ccf2(_0x4a17cc){_0xa2ed9['hide'](_0x4a17cc);}}const _0x5e36e2=_0x11ba1c;_0xdc7510[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1d1b'),_0x1a8446('0x1658'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0xdc7510(_0x7b27a5,_0xc76a85,_0x5c50c8,_0x11ef72,_0x3a8264,_0x23b4f4,_0x1f011c,_0x77a77b){var _0x4eafb6=_0x1a8446,_0x466445=this;_0x466445[_0x4eafb6('0x7fc')]=_0x1f011c[_0x4eafb6('0xacc')](),_0x466445[_0x4eafb6('0x4c6')]=[],_0x466445[_0x4eafb6('0x110a')]=_0x4eafb6('0x207c')+(_0x11ef72[_0x4eafb6('0xe6d')]||_0x11ef72[_0x4eafb6('0x9eb')])[_0x4eafb6('0x1d08')](),_0x466445['autoreply']=angular[_0x4eafb6('0x20a')](_0x11ef72),_0x466445[_0x4eafb6('0xada')]=_0x77a77b,_0x466445[_0x4eafb6('0x9f0')]={};if(_0x466445['autoreply'][_0x4eafb6('0x124b')])switch(_0x466445['autoreply']['appType']?_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0xe6d')]['toLowerCase']():_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x9eb')][_0x4eafb6('0xcf6')]()){case'custom':break;case _0x4eafb6('0x67c'):{var _0x225b5=_0x466445['autoreply'][_0x4eafb6('0x124b')]['split'](',');_0x466445['autoreply']['key']=_0x225b5[0x0],_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x1938')]=_0x225b5[0x1],_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x273')]=_0x225b5[_0x4eafb6('0x19aa')](0x2,_0x225b5[_0x4eafb6('0x2587')])[_0x4eafb6('0x19c4')](',');}break;case _0x4eafb6('0x3f5'):{var _0x214f13=_0x466445['autoreply']['appdata'][_0x4eafb6('0x1a39')](',');_0x466445['autoreply']['accesskeyid']=_0x214f13[0x0],_0x466445['autoreply'][_0x4eafb6('0x15f9')]=_0x214f13[0x1],_0x466445['autoreply'][_0x4eafb6('0xa9a')]=_0x214f13[0x2],_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x18ee')]=_0x214f13[0x3],_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x273')]=_0x214f13[_0x4eafb6('0x19aa')](0x4,_0x214f13['length'])[_0x4eafb6('0x19c4')](',');}break;case'autoreply':{var _0x29416c=_0x466445['autoreply'][_0x4eafb6('0x124b')][_0x4eafb6('0x1a39')](',');_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x11b6')]=isNaN(_0x29416c[0x0])?_0x29416c[0x0]:parseInt(_0x29416c[0x0],0xa),_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0xb37')]=_0x29416c[_0x4eafb6('0x19aa')](0x1,_0x29416c[_0x4eafb6('0x2587')])[_0x4eafb6('0x19c4')](',');}break;case _0x4eafb6('0x1402'):_0x466445['autoreply']['text']=_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x124b')];break;case _0x4eafb6('0x282c'):_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x25d6')]=_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x124b')][_0x4eafb6('0x1a39')]('=')[0x0],_0x466445[_0x4eafb6('0x1b05')]['value']=_0x466445['autoreply'][_0x4eafb6('0x124b')][_0x4eafb6('0x1a39')]('=')[0x1];break;case _0x4eafb6('0x2067'):_0x466445[_0x4eafb6('0x1b05')]['project']=_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x124b')];break;default:{var _0x1242ab=_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x124b')][_0x4eafb6('0x1a39')](',');_0x466445['autoreply'][_0x4eafb6('0x11b6')]=_0x51538b()[_0x4eafb6('0x116b')](_0x1242ab[0x0])?_0x1242ab[0x0]:isNaN(_0x1242ab[0x0])?_0x1242ab[0x0]:parseInt(_0x1242ab[0x0],0xa),_0x466445[_0x4eafb6('0x1b05')]['text']=_0x51538b()['isEmpty'](_0x1242ab[0x1])?_0x1242ab[0x1]:isNaN(_0x1242ab[0x1])?_0x1242ab[0x1]:parseInt(_0x1242ab[0x1],0xa);}}else _0x466445['autoreply'][_0x4eafb6('0x11b6')]=0x1;_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x6c8')]&&_0x466445[_0x4eafb6('0x1b05')]['type'][_0x4eafb6('0xcf6')]()===_0x4eafb6('0x19d1')&&_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0xe6d')]['toLowerCase']()===_0x4eafb6('0x1e7f')&&(_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x1b8f')]=_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x1a46')]?_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x1a46')][_0x4eafb6('0x1a39')]('$')[0x0]:undefined,_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0xeed')]=_0x466445[_0x4eafb6('0x1b05')][_0x4eafb6('0x514')]?_0x4eafb6('0x23d8')+_0x466445['autoreply'][_0x4eafb6('0x514')]:undefined);_0x466445[_0x4eafb6('0xcff')]=_0x4e2946,_0x466445[_0x4eafb6('0x2023')]=_0x1c952f;function _0x4e2946(){var _0x4d6f80=_0x4eafb6;_0x466445[_0x4d6f80('0x4c6')]=[];var _0x1474af=[];_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x6c8')]&&_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x6c8')]['toLowerCase']()===_0x4d6f80('0x19d1')&&_0x466445[_0x4d6f80('0x1b05')]['appType']==='outboundDial'&&(_0x466445['autoreply']['phone']=_0x3a8264[_0x4d6f80('0x888')]?(_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x1b8f')]||'')+'${EXTEN:'+_0x3a8264[_0x4d6f80('0x888')]+'}':(_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x1b8f')]||'')+_0x4d6f80('0x1f87'),_0x3a8264[_0x4d6f80('0x1e0f')]!==_0x4d6f80('0x117')?_0x466445['autoreply'][_0x4d6f80('0x1b36')][_0x4d6f80('0x1f38')](_0x4d6f80('0x266a'))<0x0&&(_0x466445[_0x4d6f80('0x1b05')]['options']+='U(xcally-mixmonitor-context)'):_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x1b36')]=_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x1b36')][_0x4d6f80('0x170d')](_0x4d6f80('0x266a'),''));if(_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0xe6d')]&&_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0xe6d')]===_0x4d6f80('0x113b')){}else switch((_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x9eb')]||_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0xe6d')])[_0x4d6f80('0xcf6')]()){case _0x4d6f80('0x282c'):_0x466445['autoreply'][_0x4d6f80('0x124b')]=_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x25d6')]+'='+_0x466445['autoreply'][_0x4d6f80('0x12f4')];break;case'custom':break;default:_0x1474af[0x0]=_0x466445[_0x4d6f80('0x1b05')]['times'],_0x1474af[0x1]=_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0xb37')],_0x466445[_0x4d6f80('0x1b05')][_0x4d6f80('0x124b')]=_0x1474af[_0x4d6f80('0x19c4')](',');}_0x1c952f(_0x466445[_0x4d6f80('0x1b05')]);}function _0x1c952f(_0x3d8be0){var _0x2ce53c=_0x4eafb6;_0x7b27a5[_0x2ce53c('0x1120')](_0x3d8be0);}}const _0x433670=_0xdc7510;_0x18c26c['$inject']=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x1d1b'),_0x1a8446('0x1658'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x18c26c(_0x430b09,_0x811705,_0x161d00,_0x2408ea,_0x2ffbb1,_0x3e072a,_0x791871,_0x322175){var _0xda108f=_0x1a8446,_0x1395db=this;_0x1395db[_0xda108f('0x7fc')]=_0x791871[_0xda108f('0xacc')](),_0x1395db[_0xda108f('0x4c6')]=[],_0x1395db['title']=_0xda108f('0x207c')+(_0x2408ea['appType']||_0x2408ea[_0xda108f('0x9eb')])[_0xda108f('0x1d08')](),_0x1395db[_0xda108f('0x21d0')]=angular['copy'](_0x2408ea),_0x1395db['crudPermissions']=_0x322175,_0x1395db['hasModulePermissions']={};if(_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x124b')])switch(_0x1395db[_0xda108f('0x21d0')][_0xda108f('0xe6d')]?_0x1395db['close'][_0xda108f('0xe6d')][_0xda108f('0xcf6')]():_0x1395db['close']['app'][_0xda108f('0xcf6')]()){case'custom':break;case _0xda108f('0x67c'):{var _0x189d67=_0x1395db[_0xda108f('0x21d0')]['appdata'][_0xda108f('0x1a39')](',');_0x1395db['close'][_0xda108f('0x24ec')]=_0x189d67[0x0],_0x1395db['close']['language']=_0x189d67[0x1],_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x273')]=_0x189d67[_0xda108f('0x19aa')](0x2,_0x189d67[_0xda108f('0x2587')])[_0xda108f('0x19c4')](',');}break;case _0xda108f('0x3f5'):{var _0x118d69=_0x1395db['close'][_0xda108f('0x124b')]['split'](',');_0x1395db['close'][_0xda108f('0xc07')]=_0x118d69[0x0],_0x1395db[_0xda108f('0x21d0')]['secretaccesskey']=_0x118d69[0x1],_0x1395db[_0xda108f('0x21d0')]['lexregion']=_0x118d69[0x2],_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x18ee')]=_0x118d69[0x3],_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x273')]=_0x118d69[_0xda108f('0x19aa')](0x4,_0x118d69[_0xda108f('0x2587')])['join'](',');}break;case _0xda108f('0x1b05'):{var _0x2c4bcf=_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x124b')]['split'](',');_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x11b6')]=isNaN(_0x2c4bcf[0x0])?_0x2c4bcf[0x0]:parseInt(_0x2c4bcf[0x0],0xa),_0x1395db['close'][_0xda108f('0xb37')]=_0x2c4bcf['slice'](0x1,_0x2c4bcf[_0xda108f('0x2587')])[_0xda108f('0x19c4')](',');}break;case'message':_0x1395db[_0xda108f('0x21d0')]['text']=_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x124b')];break;case _0xda108f('0x282c'):_0x1395db[_0xda108f('0x21d0')]['name']=_0x1395db[_0xda108f('0x21d0')]['appdata'][_0xda108f('0x1a39')]('=')[0x0],_0x1395db[_0xda108f('0x21d0')]['value']=_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x124b')][_0xda108f('0x1a39')]('=')[0x1];break;case _0xda108f('0x2067'):_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x24b9')]=_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x124b')];break;default:{var _0x42c2ad=_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x124b')][_0xda108f('0x1a39')](',');_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x106e')]=_0x51538b()['isEmpty'](_0x42c2ad[0x0])?_0x42c2ad[0x0]:isNaN(_0x42c2ad[0x0])?_0x42c2ad[0x0]:parseInt(_0x42c2ad[0x0],0xa);}break;}else{}_0x1395db['close']['type']&&_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x6c8')][_0xda108f('0xcf6')]()==='outbound'&&_0x1395db[_0xda108f('0x21d0')][_0xda108f('0xe6d')][_0xda108f('0xcf6')]()===_0xda108f('0x1e7f')&&(_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x1b8f')]=_0x1395db['close'][_0xda108f('0x1a46')]?_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x1a46')][_0xda108f('0x1a39')]('$')[0x0]:undefined,_0x1395db[_0xda108f('0x21d0')][_0xda108f('0xeed')]=_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x514')]?_0xda108f('0x23d8')+_0x1395db[_0xda108f('0x21d0')][_0xda108f('0x514')]:undefined);_0x1395db[_0xda108f('0xcff')]=_0x27c1bb,_0x1395db[_0xda108f('0x2023')]=_0x50bfae;function _0x27c1bb(){var _0x49f920=_0xda108f;_0x1395db[_0x49f920('0x4c6')]=[];var _0x4c4ae4=[];_0x1395db[_0x49f920('0x21d0')][_0x49f920('0x6c8')]&&_0x1395db['close'][_0x49f920('0x6c8')][_0x49f920('0xcf6')]()==='outbound'&&_0x1395db['close'][_0x49f920('0xe6d')]==='outboundDial'&&(_0x1395db[_0x49f920('0x21d0')][_0x49f920('0x1a46')]=_0x2ffbb1[_0x49f920('0x888')]?(_0x1395db[_0x49f920('0x21d0')][_0x49f920('0x1b8f')]||'')+_0x49f920('0x117e')+_0x2ffbb1['cutdigits']+'}':(_0x1395db[_0x49f920('0x21d0')]['prefix']||'')+'${EXTEN}',_0x2ffbb1[_0x49f920('0x1e0f')]!==_0x49f920('0x117')?_0x1395db[_0x49f920('0x21d0')][_0x49f920('0x1b36')][_0x49f920('0x1f38')](_0x49f920('0x266a'))<0x0&&(_0x1395db[_0x49f920('0x21d0')]['options']+=_0x49f920('0x266a')):_0x1395db[_0x49f920('0x21d0')][_0x49f920('0x1b36')]=_0x1395db['close'][_0x49f920('0x1b36')][_0x49f920('0x170d')](_0x49f920('0x266a'),''));if(_0x1395db[_0x49f920('0x21d0')][_0x49f920('0xe6d')]&&_0x1395db['close']['appType']===_0x49f920('0x113b')){}else switch((_0x1395db[_0x49f920('0x21d0')]['app']||_0x1395db[_0x49f920('0x21d0')][_0x49f920('0xe6d')])[_0x49f920('0xcf6')]()){case _0x49f920('0x282c'):_0x1395db[_0x49f920('0x21d0')][_0x49f920('0x124b')]=_0x1395db['close'][_0x49f920('0x25d6')]+'='+_0x1395db[_0x49f920('0x21d0')][_0x49f920('0x12f4')];break;case _0x49f920('0x113b'):break;default:_0x4c4ae4[0x0]=_0x1395db['close']['disposition'],_0x1395db[_0x49f920('0x21d0')][_0x49f920('0x124b')]=_0x4c4ae4['join'](',');}_0x50bfae(_0x1395db['close']);}function _0x50bfae(_0x498d42){var _0x3f5e5d=_0xda108f;_0x430b09[_0x3f5e5d('0x1120')](_0x498d42);}}const _0x5381d8=_0x18c26c;_0x3d10f3[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty','smsAccountApp',_0x1a8446('0x1658'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x3d10f3(_0x34b615,_0x39cc76,_0x4860e2,_0x63d2fd,_0x3f7765,_0x338933,_0x54a00f,_0x3b9c52){var _0xd6cbb8=_0x1a8446,_0x224843=this;_0x224843[_0xd6cbb8('0x7fc')]=_0x54a00f['getCurrentUser'](),_0x224843['errors']=[],_0x224843[_0xd6cbb8('0x110a')]=_0xd6cbb8('0x207c')+(_0x63d2fd['appType']||_0x63d2fd[_0xd6cbb8('0x9eb')])[_0xd6cbb8('0x1d08')](),_0x224843[_0xd6cbb8('0x67c')]=angular[_0xd6cbb8('0x20a')](_0x63d2fd),_0x224843['crudPermissions']=_0x3b9c52,_0x224843[_0xd6cbb8('0x9f0')]={};if(_0x224843['dialogflow'][_0xd6cbb8('0x124b')])switch(_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0xe6d')]?_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0xe6d')]['toLowerCase']():_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x9eb')][_0xd6cbb8('0xcf6')]()){case _0xd6cbb8('0x113b'):break;case _0xd6cbb8('0x67c'):{var _0x5c979a=_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x124b')][_0xd6cbb8('0x1a39')](',');_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x24ec')]=_0x5c979a[0x0],_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x1938')]=_0x5c979a[0x1],_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x273')]=_0x5c979a[_0xd6cbb8('0x19aa')](0x2,_0x5c979a[_0xd6cbb8('0x2587')])['join'](',');}break;case _0xd6cbb8('0x3f5'):{var _0x4139bd=_0x224843['dialogflow'][_0xd6cbb8('0x124b')][_0xd6cbb8('0x1a39')](',');_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0xc07')]=_0x4139bd[0x0],_0x224843['dialogflow'][_0xd6cbb8('0x15f9')]=_0x4139bd[0x1],_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0xa9a')]=_0x4139bd[0x2],_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x18ee')]=_0x4139bd[0x3],_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x273')]=_0x4139bd[_0xd6cbb8('0x19aa')](0x4,_0x4139bd[_0xd6cbb8('0x2587')])[_0xd6cbb8('0x19c4')](',');}break;case'autoreply':{var _0x49fff9=_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x124b')][_0xd6cbb8('0x1a39')](',');_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x11b6')]=isNaN(_0x49fff9[0x0])?_0x49fff9[0x0]:parseInt(_0x49fff9[0x0],0xa),_0x224843[_0xd6cbb8('0x67c')]['text']=_0x49fff9['slice'](0x1,_0x49fff9[_0xd6cbb8('0x2587')])[_0xd6cbb8('0x19c4')](',');}break;case'message':_0x224843['dialogflow'][_0xd6cbb8('0xb37')]=_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x124b')];break;case _0xd6cbb8('0x282c'):_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x25d6')]=_0x224843['dialogflow'][_0xd6cbb8('0x124b')]['split']('=')[0x0],_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x12f4')]=_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x124b')][_0xd6cbb8('0x1a39')]('=')[0x1];break;case _0xd6cbb8('0x2067'):_0x224843[_0xd6cbb8('0x67c')]['project']=_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x124b')];break;default:{var _0x2a7ec3=_0x224843['dialogflow']['appdata'][_0xd6cbb8('0x1a39')](',');_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x24ec')]=_0x51538b()[_0xd6cbb8('0x116b')](_0x2a7ec3[0x0])?_0x2a7ec3[0x0]:isNaN(_0x2a7ec3[0x0])?_0x2a7ec3[0x0]:parseInt(_0x2a7ec3[0x0],0xa),_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x1938')]=_0x51538b()[_0xd6cbb8('0x116b')](_0x2a7ec3[0x1])?_0x2a7ec3[0x1]:isNaN(_0x2a7ec3[0x1])?_0x2a7ec3[0x1]:parseInt(_0x2a7ec3[0x1],0xa),_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x273')]=_0x51538b()['isEmpty'](_0x2a7ec3[0x2])?_0x2a7ec3[0x2]:isNaN(_0x2a7ec3[0x2])?_0x2a7ec3[0x2]:parseInt(_0x2a7ec3[0x2],0xa);}break;}else _0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x1938')]='en';_0x224843['dialogflow']['type']&&_0x224843['dialogflow'][_0xd6cbb8('0x6c8')][_0xd6cbb8('0xcf6')]()===_0xd6cbb8('0x19d1')&&_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0xe6d')][_0xd6cbb8('0xcf6')]()===_0xd6cbb8('0x1e7f')&&(_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x1b8f')]=_0x224843['dialogflow']['phone']?_0x224843[_0xd6cbb8('0x67c')]['phone']['split']('$')[0x0]:undefined,_0x224843[_0xd6cbb8('0x67c')]['callerId']=_0x224843[_0xd6cbb8('0x67c')][_0xd6cbb8('0x514')]?_0xd6cbb8('0x23d8')+_0x224843[_0xd6cbb8('0x67c')]['callerID']:undefined);_0x224843['saveSmsAccountApp']=_0x23dbc1,_0x224843[_0xd6cbb8('0x2023')]=_0x2a133a;function _0x23dbc1(){var _0x19ce4b=_0xd6cbb8;_0x224843['errors']=[];var _0x40eb7d=[];_0x224843['dialogflow'][_0x19ce4b('0x6c8')]&&_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x6c8')]['toLowerCase']()===_0x19ce4b('0x19d1')&&_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0xe6d')]==='outboundDial'&&(_0x224843[_0x19ce4b('0x67c')]['phone']=_0x3f7765[_0x19ce4b('0x888')]?(_0x224843['dialogflow'][_0x19ce4b('0x1b8f')]||'')+_0x19ce4b('0x117e')+_0x3f7765[_0x19ce4b('0x888')]+'}':(_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x1b8f')]||'')+'${EXTEN}',_0x3f7765[_0x19ce4b('0x1e0f')]!==_0x19ce4b('0x117')?_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x1b36')][_0x19ce4b('0x1f38')](_0x19ce4b('0x266a'))<0x0&&(_0x224843[_0x19ce4b('0x67c')]['options']+=_0x19ce4b('0x266a')):_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x1b36')]=_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x1b36')][_0x19ce4b('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0xe6d')]&&_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0xe6d')]===_0x19ce4b('0x113b')){}else switch((_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x9eb')]||_0x224843['dialogflow']['appType'])[_0x19ce4b('0xcf6')]()){case _0x19ce4b('0x282c'):_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x124b')]=_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x25d6')]+'='+_0x224843[_0x19ce4b('0x67c')]['value'];break;case _0x19ce4b('0x113b'):break;default:_0x40eb7d[0x0]=_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x24ec')],_0x40eb7d[0x1]=_0x224843[_0x19ce4b('0x67c')][_0x19ce4b('0x1938')],_0x40eb7d[0x2]=_0x224843[_0x19ce4b('0x67c')]['welcomemessage'],_0x224843['dialogflow'][_0x19ce4b('0x124b')]=_0x40eb7d[_0x19ce4b('0x19c4')](',');}_0x2a133a(_0x224843[_0x19ce4b('0x67c')]);}function _0x2a133a(_0x3db9a7){var _0x3b55d0=_0xd6cbb8;_0x34b615[_0x3b55d0('0x1120')](_0x3db9a7);}}const _0x143400=_0x3d10f3;_0x5f1bb0[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d1b'),_0x1a8446('0x1658'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x5f1bb0(_0x2c2c89,_0x2bef53,_0x4a1516,_0x4a6a45,_0x25cfc1,_0x268b62,_0xc4b746,_0x3e88d9){var _0x1c310c=_0x1a8446,_0x5b1510=this;_0x5b1510['currentUser']=_0xc4b746[_0x1c310c('0xacc')](),_0x5b1510[_0x1c310c('0x4c6')]=[],_0x5b1510[_0x1c310c('0x110a')]=_0x1c310c('0x207c')+(_0x4a6a45[_0x1c310c('0xe6d')]||_0x4a6a45[_0x1c310c('0x9eb')])[_0x1c310c('0x1d08')](),_0x5b1510[_0x1c310c('0x3cb')]=angular[_0x1c310c('0x20a')](_0x4a6a45),_0x5b1510[_0x1c310c('0xada')]=_0x3e88d9,_0x5b1510['hasModulePermissions']={};if(_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x124b')])switch(_0x5b1510['gotoif'][_0x1c310c('0xe6d')]?_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0xe6d')][_0x1c310c('0xcf6')]():_0x5b1510['gotoif'][_0x1c310c('0x9eb')][_0x1c310c('0xcf6')]()){case _0x1c310c('0x113b'):break;case _0x1c310c('0x67c'):{var _0x36d66d=_0x5b1510['gotoif']['appdata'][_0x1c310c('0x1a39')](',');_0x5b1510['gotoif'][_0x1c310c('0x24ec')]=_0x36d66d[0x0],_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x1938')]=_0x36d66d[0x1],_0x5b1510['gotoif'][_0x1c310c('0x273')]=_0x36d66d[_0x1c310c('0x19aa')](0x2,_0x36d66d[_0x1c310c('0x2587')])['join'](',');}break;case'amazonlex':{var _0x595b1e=_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x124b')][_0x1c310c('0x1a39')](',');_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0xc07')]=_0x595b1e[0x0],_0x5b1510[_0x1c310c('0x3cb')]['secretaccesskey']=_0x595b1e[0x1],_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0xa9a')]=_0x595b1e[0x2],_0x5b1510['gotoif'][_0x1c310c('0x18ee')]=_0x595b1e[0x3],_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x273')]=_0x595b1e['slice'](0x4,_0x595b1e[_0x1c310c('0x2587')])[_0x1c310c('0x19c4')](',');}break;case _0x1c310c('0x1b05'):{var _0x25cdbb=_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x124b')][_0x1c310c('0x1a39')](',');_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x11b6')]=isNaN(_0x25cdbb[0x0])?_0x25cdbb[0x0]:parseInt(_0x25cdbb[0x0],0xa),_0x5b1510[_0x1c310c('0x3cb')]['text']=_0x25cdbb[_0x1c310c('0x19aa')](0x1,_0x25cdbb[_0x1c310c('0x2587')])[_0x1c310c('0x19c4')](',');}break;case'message':_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0xb37')]=_0x5b1510['gotoif'][_0x1c310c('0x124b')];break;case _0x1c310c('0x282c'):_0x5b1510['gotoif']['name']=_0x5b1510[_0x1c310c('0x3cb')]['appdata'][_0x1c310c('0x1a39')]('=')[0x0],_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x12f4')]=_0x5b1510['gotoif'][_0x1c310c('0x124b')][_0x1c310c('0x1a39')]('=')[0x1];break;case _0x1c310c('0x2067'):_0x5b1510[_0x1c310c('0x3cb')]['project']=_0x5b1510['gotoif']['appdata'];break;default:{var _0x5da933=_0x5b1510[_0x1c310c('0x3cb')]['appdata']['split'](',');_0x5b1510['gotoif']['condition']=_0x51538b()[_0x1c310c('0x116b')](_0x5da933[0x0])?_0x5da933[0x0]:isNaN(_0x5da933[0x0])?_0x5da933[0x0]:parseInt(_0x5da933[0x0],0xa),_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x13ba')]=_0x51538b()[_0x1c310c('0x116b')](_0x5da933[0x1])?_0x5da933[0x1]:isNaN(_0x5da933[0x1])?_0x5da933[0x1]:parseInt(_0x5da933[0x1],0xa),_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x222b')]=_0x51538b()[_0x1c310c('0x116b')](_0x5da933[0x2])?_0x5da933[0x2]:isNaN(_0x5da933[0x2])?_0x5da933[0x2]:parseInt(_0x5da933[0x2],0xa);}break;}else{}_0x5b1510['gotoif'][_0x1c310c('0x6c8')]&&_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x6c8')][_0x1c310c('0xcf6')]()===_0x1c310c('0x19d1')&&_0x5b1510['gotoif']['appType'][_0x1c310c('0xcf6')]()==='outbounddial'&&(_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x1b8f')]=_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x1a46')]?_0x5b1510['gotoif'][_0x1c310c('0x1a46')][_0x1c310c('0x1a39')]('$')[0x0]:undefined,_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0xeed')]=_0x5b1510['gotoif'][_0x1c310c('0x514')]?_0x1c310c('0x23d8')+_0x5b1510[_0x1c310c('0x3cb')][_0x1c310c('0x514')]:undefined);_0x5b1510[_0x1c310c('0xcff')]=_0x3d4399,_0x5b1510['closeDialog']=_0x21c44e;function _0x3d4399(){var _0x19ecaf=_0x1c310c;_0x5b1510[_0x19ecaf('0x4c6')]=[];var _0x3662a4=[];_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x6c8')]&&_0x5b1510['gotoif']['type'][_0x19ecaf('0xcf6')]()===_0x19ecaf('0x19d1')&&_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0xe6d')]==='outboundDial'&&(_0x5b1510[_0x19ecaf('0x3cb')]['phone']=_0x25cfc1['cutdigits']?(_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x1b8f')]||'')+'${EXTEN:'+_0x25cfc1[_0x19ecaf('0x888')]+'}':(_0x5b1510[_0x19ecaf('0x3cb')]['prefix']||'')+_0x19ecaf('0x1f87'),_0x25cfc1['recordingFormat']!=='none'?_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x1b36')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x1b36')]+=_0x19ecaf('0x266a')):_0x5b1510['gotoif'][_0x19ecaf('0x1b36')]=_0x5b1510['gotoif'][_0x19ecaf('0x1b36')][_0x19ecaf('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x5b1510[_0x19ecaf('0x3cb')]['appType']&&_0x5b1510[_0x19ecaf('0x3cb')]['appType']==='custom'){}else switch((_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x9eb')]||_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0xe6d')])[_0x19ecaf('0xcf6')]()){case _0x19ecaf('0x282c'):_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x124b')]=_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x25d6')]+'='+_0x5b1510['gotoif'][_0x19ecaf('0x12f4')];break;case _0x19ecaf('0x113b'):break;default:_0x3662a4[0x0]=_0x5b1510['gotoif']['condition'],_0x3662a4[0x1]=_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x13ba')],_0x3662a4[0x2]=_0x5b1510['gotoif']['falsepriority'],_0x5b1510[_0x19ecaf('0x3cb')][_0x19ecaf('0x124b')]=_0x3662a4[_0x19ecaf('0x19c4')](',');}_0x21c44e(_0x5b1510[_0x19ecaf('0x3cb')]);}function _0x21c44e(_0x299392){var _0x292926=_0x1c310c;_0x2c2c89[_0x292926('0x1120')](_0x299392);}}const _0x13970d=_0x5f1bb0;_0x4fa174[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'smsAccountApp',_0x1a8446('0x1658'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x4fa174(_0x226145,_0x21b2a7,_0x3c4e40,_0x21dd5b,_0x171114,_0x1f5acb,_0x4c3c38,_0x140b21){var _0x1003f5=_0x1a8446,_0x522427=this;_0x522427[_0x1003f5('0x7fc')]=_0x4c3c38[_0x1003f5('0xacc')](),_0x522427[_0x1003f5('0x4c6')]=[],_0x522427[_0x1003f5('0x110a')]='SMS.EDIT_'+(_0x21dd5b[_0x1003f5('0xe6d')]||_0x21dd5b[_0x1003f5('0x9eb')])[_0x1003f5('0x1d08')](),_0x522427[_0x1003f5('0x1141')]=angular['copy'](_0x21dd5b),_0x522427[_0x1003f5('0xada')]=_0x140b21,_0x522427[_0x1003f5('0x9f0')]={};if(_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x124b')])switch(_0x522427[_0x1003f5('0x1141')][_0x1003f5('0xe6d')]?_0x522427[_0x1003f5('0x1141')][_0x1003f5('0xe6d')]['toLowerCase']():_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x9eb')][_0x1003f5('0xcf6')]()){case _0x1003f5('0x113b'):break;case _0x1003f5('0x67c'):{var _0x1a6295=_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x124b')][_0x1003f5('0x1a39')](',');_0x522427['gotop'][_0x1003f5('0x24ec')]=_0x1a6295[0x0],_0x522427['gotop']['language']=_0x1a6295[0x1],_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x273')]=_0x1a6295[_0x1003f5('0x19aa')](0x2,_0x1a6295[_0x1003f5('0x2587')])[_0x1003f5('0x19c4')](',');}break;case _0x1003f5('0x3f5'):{var _0x5d73f6=_0x522427['gotop'][_0x1003f5('0x124b')][_0x1003f5('0x1a39')](',');_0x522427[_0x1003f5('0x1141')]['accesskeyid']=_0x5d73f6[0x0],_0x522427['gotop'][_0x1003f5('0x15f9')]=_0x5d73f6[0x1],_0x522427[_0x1003f5('0x1141')][_0x1003f5('0xa9a')]=_0x5d73f6[0x2],_0x522427['gotop']['botname']=_0x5d73f6[0x3],_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x273')]=_0x5d73f6[_0x1003f5('0x19aa')](0x4,_0x5d73f6[_0x1003f5('0x2587')])[_0x1003f5('0x19c4')](',');}break;case'autoreply':{var _0x35ec6f=_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x124b')][_0x1003f5('0x1a39')](',');_0x522427[_0x1003f5('0x1141')]['times']=isNaN(_0x35ec6f[0x0])?_0x35ec6f[0x0]:parseInt(_0x35ec6f[0x0],0xa),_0x522427[_0x1003f5('0x1141')][_0x1003f5('0xb37')]=_0x35ec6f[_0x1003f5('0x19aa')](0x1,_0x35ec6f[_0x1003f5('0x2587')])['join'](',');}break;case _0x1003f5('0x1402'):_0x522427['gotop'][_0x1003f5('0xb37')]=_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x124b')];break;case'set':_0x522427['gotop'][_0x1003f5('0x25d6')]=_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x124b')]['split']('=')[0x0],_0x522427['gotop'][_0x1003f5('0x12f4')]=_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x124b')][_0x1003f5('0x1a39')]('=')[0x1];break;case _0x1003f5('0x2067'):_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x24b9')]=_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x124b')];break;default:{var _0x557cd6=_0x522427[_0x1003f5('0x1141')]['appdata'][_0x1003f5('0x1a39')](',');_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x13f2')]=_0x51538b()[_0x1003f5('0x116b')](_0x557cd6[0x0])?_0x557cd6[0x0]:isNaN(_0x557cd6[0x0])?_0x557cd6[0x0]:parseInt(_0x557cd6[0x0],0xa);}break;}else{}_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x6c8')]&&_0x522427[_0x1003f5('0x1141')]['type'][_0x1003f5('0xcf6')]()==='outbound'&&_0x522427[_0x1003f5('0x1141')][_0x1003f5('0xe6d')][_0x1003f5('0xcf6')]()===_0x1003f5('0x1e7f')&&(_0x522427['gotop'][_0x1003f5('0x1b8f')]=_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x1a46')]?_0x522427[_0x1003f5('0x1141')][_0x1003f5('0x1a46')]['split']('$')[0x0]:undefined,_0x522427[_0x1003f5('0x1141')][_0x1003f5('0xeed')]=_0x522427[_0x1003f5('0x1141')]['callerID']?_0x1003f5('0x23d8')+_0x522427[_0x1003f5('0x1141')]['callerID']:undefined);_0x522427[_0x1003f5('0xcff')]=_0x66ebe8,_0x522427[_0x1003f5('0x2023')]=_0x1ec5b4;function _0x66ebe8(){var _0x1783b2=_0x1003f5;_0x522427['errors']=[];var _0x521e94=[];_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x6c8')]&&_0x522427[_0x1783b2('0x1141')]['type'][_0x1783b2('0xcf6')]()===_0x1783b2('0x19d1')&&_0x522427[_0x1783b2('0x1141')][_0x1783b2('0xe6d')]===_0x1783b2('0x8da')&&(_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x1a46')]=_0x171114[_0x1783b2('0x888')]?(_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x1b8f')]||'')+_0x1783b2('0x117e')+_0x171114[_0x1783b2('0x888')]+'}':(_0x522427[_0x1783b2('0x1141')]['prefix']||'')+'${EXTEN}',_0x171114[_0x1783b2('0x1e0f')]!==_0x1783b2('0x117')?_0x522427['gotop']['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x1b36')]+=_0x1783b2('0x266a')):_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x1b36')]=_0x522427['gotop'][_0x1783b2('0x1b36')][_0x1783b2('0x170d')](_0x1783b2('0x266a'),''));if(_0x522427['gotop'][_0x1783b2('0xe6d')]&&_0x522427[_0x1783b2('0x1141')][_0x1783b2('0xe6d')]===_0x1783b2('0x113b')){}else switch((_0x522427[_0x1783b2('0x1141')]['app']||_0x522427[_0x1783b2('0x1141')][_0x1783b2('0xe6d')])['toLowerCase']()){case _0x1783b2('0x282c'):_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x124b')]=_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x25d6')]+'='+_0x522427['gotop']['value'];break;case _0x1783b2('0x113b'):break;default:_0x521e94[0x0]=_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x13f2')],_0x522427[_0x1783b2('0x1141')][_0x1783b2('0x124b')]=_0x521e94[_0x1783b2('0x19c4')](',');}_0x1ec5b4(_0x522427[_0x1783b2('0x1141')]);}function _0x1ec5b4(_0xfc2d8c){var _0x16dec3=_0x1003f5;_0x226145[_0x16dec3('0x1120')](_0xfc2d8c);}}const _0x445f73=_0x4fa174;_0x4191df[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$mdDialog','$mdToast','IndexFactory','interval','intervals',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x4191df(_0x3f9380,_0x391043,_0x4c010d,_0x56eb19,_0x287c2f,_0x1cbc24,_0x27272e,_0x447719,_0x10f1dc,_0xcc268d){var _0x1f9d56=_0x1a8446,_0x1f67eb=this;_0x1f67eb[_0x1f9d56('0x7fc')]=_0x10f1dc[_0x1f9d56('0xacc')](),_0x1f67eb[_0x1f9d56('0x4c6')]=[],_0x1f67eb['title']=_0x1f9d56('0x14b0'),_0x1f67eb['interval']=angular['copy'](_0x287c2f),_0x1f67eb[_0x1f9d56('0x2568')]=_0x1cbc24,_0x1f67eb[_0x1f9d56('0x740')]=![],_0x1f67eb[_0x1f9d56('0x11e9')]=[_0x1f9d56('0x1b43'),'custom',_0x1f9d56('0x2334')],_0x1f67eb[_0x1f9d56('0xada')]=_0xcc268d,_0x1f67eb['daysOfWeek']=_0x56eb19['getDaysOfWeek'](),_0x1f67eb[_0x1f9d56('0x21a9')]=_0x56eb19[_0x1f9d56('0x23fa')](),_0x1f67eb[_0x1f9d56('0x672')]=_0x56eb19[_0x1f9d56('0x2225')](),_0x1f67eb[_0x1f9d56('0x1469')]=_0x56eb19['getDaysOfMonth']();if(!_0x1f67eb[_0x1f9d56('0x1c21')])_0x1f67eb['interval']={'interval':_0x1f9d56('0x1ac6')},_0x1f67eb[_0x1f9d56('0x6c8')]=_0x1f9d56('0x1b43'),_0x1f67eb[_0x1f9d56('0x110a')]=_0x1f9d56('0x11d5'),_0x1f67eb[_0x1f9d56('0x740')]=!![];else{if(_0x1f67eb[_0x1f9d56('0x1c21')][_0x1f9d56('0x1c21')]!=='*,*,*,*'){_0x1f67eb[_0x1f9d56('0x6c8')]=_0x1f9d56('0x113b');var _0x58c116=_0x1f67eb[_0x1f9d56('0x1c21')][_0x1f9d56('0x1c21')][_0x1f9d56('0x1a39')](','),_0x51e511=_0x58c116[0x0],_0x4a58b1=_0x58c116[0x1],_0x46d4c9=_0x58c116[0x2],_0x3c15f7=_0x58c116[0x3];if(_0x51e511!=='*'){var _0x8484f8=_0x51e511['split']('-')[0x0],_0xf6f4c6=_0x51e511[_0x1f9d56('0x1a39')]('-')[0x1],_0x4930f0;_0x4930f0=new Date(),_0x4930f0[_0x1f9d56('0x807')](Number(_0x8484f8[_0x1f9d56('0x1a39')](':')[0x0])),_0x4930f0[_0x1f9d56('0xb43')](Number(_0x8484f8[_0x1f9d56('0x1a39')](':')[0x1])),_0x1f67eb[_0x1f9d56('0x1ee7')]=_0x4930f0,_0x4930f0=new Date(),_0x4930f0[_0x1f9d56('0x807')](Number(_0xf6f4c6['split'](':')[0x0])),_0x4930f0[_0x1f9d56('0xb43')](Number(_0xf6f4c6[_0x1f9d56('0x1a39')](':')[0x1])),_0x1f67eb['timeRangeTo']=_0x4930f0;}_0x4a58b1!=='*'&&(_0x1f67eb[_0x1f9d56('0x1fa3')]=_0x4a58b1[_0x1f9d56('0x1a39')]('-')[0x0],_0x1f67eb['dayOfWeekTo']=_0x4a58b1[_0x1f9d56('0x1a39')]('-')[0x1]),_0x46d4c9!=='*'&&(_0x1f67eb[_0x1f9d56('0x19d0')]=_0x46d4c9[_0x1f9d56('0x1a39')]('-')[0x0],_0x1f67eb[_0x1f9d56('0x2c3')]=_0x46d4c9[_0x1f9d56('0x1a39')]('-')[0x1]),_0x3c15f7!=='*'&&(_0x1f67eb[_0x1f9d56('0xcf9')]=_0x3c15f7[_0x1f9d56('0x1a39')]('-')[0x0],_0x1f67eb[_0x1f9d56('0x125f')]=_0x3c15f7[_0x1f9d56('0x1a39')]('-')[0x1]);}else _0x1f67eb[_0x1f9d56('0x6c8')]='always';}_0x3f9380[_0x1f9d56('0x25cf')]['id']&&!_0x1f67eb['interval'][_0x1f9d56('0xe45')]&&(_0x1f67eb[_0x1f9d56('0x1c21')][_0x1f9d56('0x1f8c')]=_0x3f9380[_0x1f9d56('0x25cf')]['id']);_0x1f67eb[_0x1f9d56('0x1c21')][_0x1f9d56('0x1f8c')]&&_0x1f67eb[_0x1f9d56('0x1c21')]['application']&&(_0x1f67eb[_0x1f9d56('0x6c8')]='list');_0x1f67eb[_0x1f9d56('0x152a')]=_0x435895,_0x1f67eb[_0x1f9d56('0x1570')]=_0x292e9b,_0x1f67eb[_0x1f9d56('0x2023')]=_0x27c7a8;_0x1f67eb[_0x1f9d56('0x1c21')]['application']&&(_0x10f1dc[_0x1f9d56('0x26e8')](_0x1f9d56('0x178b'))?_0x447719[_0x1f9d56('0x1c21')][_0x1f9d56('0x2122')]({'fields':_0x1f9d56('0x1a33'),'IntervalId':_0x1f9d56('0x1ed9'),'nolimit':!![]})['$promise'][_0x1f9d56('0xaa5')](function(_0x289f3a){var _0x491214=_0x1f9d56;_0x1f67eb[_0x491214('0x2568')]=_0x289f3a['rows']||[];})[_0x1f9d56('0x253d')](function(_0x28903b){var _0x13da4c=_0x1f9d56;_0x27272e[_0x13da4c('0x187f')]({'title':_0x28903b[_0x13da4c('0x2fa')]?_0x13da4c('0x16c2')+_0x28903b[_0x13da4c('0x2fa')]+_0x13da4c('0x169e')+_0x28903b[_0x13da4c('0x24df')]:_0x13da4c('0x3b0'),'msg':_0x28903b[_0x13da4c('0x10fd')]?JSON[_0x13da4c('0xa48')](_0x28903b[_0x13da4c('0x10fd')]):_0x28903b[_0x13da4c('0x684')]()});}):_0x447719[_0x1f9d56('0x1c21')]['get']({'fields':_0x1f9d56('0x1a33'),'IntervalId':_0x1f9d56('0x1ed9'),'nolimit':!![]})[_0x1f9d56('0x1dc2')][_0x1f9d56('0xaa5')](function(_0x447ee5){var _0x1dc54a=_0x1f9d56;_0x1f67eb[_0x1dc54a('0x2568')]=_0x447ee5[_0x1dc54a('0x580')]||[];})['then'](function(){var _0x5acf9b=_0x1f9d56;return _0x447719[_0x5acf9b('0x1a50')][_0x5acf9b('0x2122')]({'userProfileId':_0x1f67eb['currentUser'][_0x5acf9b('0x2168')],'sectionId':0x3ec})[_0x5acf9b('0x1dc2')];})[_0x1f9d56('0xaa5')](function(_0x18e656){var _0x38a723=_0x1f9d56,_0x185813=_0x18e656&&_0x18e656[_0x38a723('0x580')]?_0x18e656[_0x38a723('0x580')][0x0]:null;if(!_0x185813)_0x1f67eb[_0x38a723('0x2568')]=[];else{if(!_0x185813[_0x38a723('0x26cc')])return _0x447719[_0x38a723('0x249a')][_0x38a723('0x2122')]({'sectionId':_0x185813['id']})[_0x38a723('0x1dc2')][_0x38a723('0xaa5')](function(_0x2ff095){var _0x1840ef=_0x38a723,_0x389cc5=_0x2ff095&&_0x2ff095[_0x1840ef('0x580')]?_0x2ff095['rows']:[],_0x58eace=[],_0x2d8a65=null;_0x1f67eb['interval']&&(_0x2d8a65=_0x51538b()[_0x1840ef('0xe9e')](_0x1f67eb[_0x1840ef('0x2568')],{'name':_0x1f67eb['interval']['IntervalId']})),_0x2d8a65&&!_0x51538b()[_0x1840ef('0x2c2')](_0x389cc5,[_0x1840ef('0xbcd'),_0x2d8a65['id']])&&_0x1f67eb[_0x1840ef('0x2568')][_0x1840ef('0x15b5')](function(_0x56d422){var _0x1525d3=_0x1840ef;_0x56d422['id']===_0x2d8a65['id']&&(_0x56d422[_0x1525d3('0x12eb')]=![],_0x58eace[_0x1525d3('0x1599')](_0x56d422));}),_0x1f67eb[_0x1840ef('0x2568')]=_0x58eace;});}})[_0x1f9d56('0x253d')](function(_0x41abc0){var _0x2f5403=_0x1f9d56;_0x27272e[_0x2f5403('0x187f')]({'title':_0x41abc0['status']?_0x2f5403('0x16c2')+_0x41abc0[_0x2f5403('0x2fa')]+_0x2f5403('0x169e')+_0x41abc0[_0x2f5403('0x24df')]:_0x2f5403('0x3b0'),'msg':_0x41abc0[_0x2f5403('0x10fd')]?JSON[_0x2f5403('0xa48')](_0x41abc0['data']):_0x41abc0['toString']()});}));function _0x9ff613(){var _0x2e19fd=_0x1f9d56;switch(_0x1f67eb[_0x2e19fd('0x6c8')]){case _0x2e19fd('0x1b43'):case'list':return _0x2e19fd('0x1ac6');case'custom':{var _0x21cfe7=[];if(_0x1f67eb[_0x2e19fd('0x1ee7')]!=='*'&&_0x1f67eb[_0x2e19fd('0x1ee7')]&&_0x1f67eb['timeRangeTo']){var _0x1ebc6c=(_0x1f67eb[_0x2e19fd('0x1ee7')][_0x2e19fd('0x6a2')]()<0xa?'0':'')+_0x1f67eb[_0x2e19fd('0x1ee7')][_0x2e19fd('0x6a2')]()+':'+((_0x1f67eb['timeRangeFrom']['getMinutes']()<0xa?'0':'')+_0x1f67eb[_0x2e19fd('0x1ee7')][_0x2e19fd('0x13a6')]()),_0x425c48=(_0x1f67eb['timeRangeTo']['getHours']()<0xa?'0':'')+_0x1f67eb['timeRangeTo'][_0x2e19fd('0x6a2')]()+':'+((_0x1f67eb[_0x2e19fd('0x815')][_0x2e19fd('0x13a6')]()<0xa?'0':'')+_0x1f67eb[_0x2e19fd('0x815')][_0x2e19fd('0x13a6')]());_0x21cfe7[_0x2e19fd('0x1599')](_0x1ebc6c+'-'+_0x425c48);}else _0x21cfe7[_0x2e19fd('0x1599')]('*');return _0x1f67eb['dayOfWeekFrom']?_0x1f67eb['dayOfWeekTo']?_0x21cfe7[_0x2e19fd('0x1599')](_0x1f67eb['dayOfWeekFrom']+'-'+_0x1f67eb[_0x2e19fd('0xc93')]):_0x21cfe7['push'](_0x1f67eb[_0x2e19fd('0x1fa3')]):_0x21cfe7[_0x2e19fd('0x1599')]('*'),_0x1f67eb['monthDayFrom']?_0x1f67eb['monthDayTo']?_0x21cfe7[_0x2e19fd('0x1599')](_0x1f67eb[_0x2e19fd('0x19d0')]+'-'+_0x1f67eb[_0x2e19fd('0x2c3')]):_0x21cfe7[_0x2e19fd('0x1599')](_0x1f67eb['monthDayFrom']):_0x21cfe7[_0x2e19fd('0x1599')]('*'),_0x1f67eb[_0x2e19fd('0xcf9')]?_0x1f67eb[_0x2e19fd('0x125f')]?_0x21cfe7[_0x2e19fd('0x1599')](_0x1f67eb[_0x2e19fd('0xcf9')]+'-'+_0x1f67eb[_0x2e19fd('0x125f')]):_0x21cfe7[_0x2e19fd('0x1599')](_0x1f67eb[_0x2e19fd('0xcf9')]):_0x21cfe7['push']('*'),_0x21cfe7[_0x2e19fd('0x19c4')]();}}}function _0x435895(){var _0x2deee4=_0x1f9d56;_0x1f67eb[_0x2deee4('0x4c6')]=[],_0x1f67eb['interval'][_0x2deee4('0x1c21')]=_0x9ff613(),_0x447719['interval']['save'](_0x1f67eb[_0x2deee4('0x1c21')])[_0x2deee4('0x1dc2')][_0x2deee4('0xaa5')](function(_0x490b2e){var _0x17aed8=_0x2deee4;_0x1f67eb[_0x17aed8('0x2568')][_0x17aed8('0x1599')](_0x490b2e),_0x27272e[_0x17aed8('0xe10')]({'title':'Interval\x20properly\x20created','msg':_0x1f67eb[_0x17aed8('0x1c21')][_0x17aed8('0x25d6')]?_0x1f67eb[_0x17aed8('0x1c21')][_0x17aed8('0x25d6')]+_0x17aed8('0xdca'):''}),_0x27c7a8();})[_0x2deee4('0x253d')](function(_0x217f5f){var _0x400de1=_0x2deee4;console[_0x400de1('0x187f')](_0x217f5f),_0x1f67eb['errors']=_0x217f5f[_0x400de1('0x10fd')][_0x400de1('0x4c6')]||[{'message':_0x217f5f[_0x400de1('0x684')](),'type':_0x400de1('0xbd7')}];});}function _0x292e9b(){var _0x5a2b70=_0x1f9d56;_0x1f67eb[_0x5a2b70('0x4c6')]=[],_0x1f67eb[_0x5a2b70('0x1c21')][_0x5a2b70('0x1c21')]=_0x9ff613(),_0x1f67eb['interval'][_0x5a2b70('0xe45')]?(_0x1f67eb[_0x5a2b70('0x6c8')]!==_0x5a2b70('0x2334')&&(_0x1f67eb['interval'][_0x5a2b70('0x1f8c')]=null),_0x27c7a8(_0x1f67eb[_0x5a2b70('0x1c21')])):_0x447719[_0x5a2b70('0x1c21')]['update']({'id':_0x1f67eb[_0x5a2b70('0x1c21')]['id']},_0x1f67eb[_0x5a2b70('0x1c21')])['$promise']['then'](function(_0xf17335){var _0x26d123=_0x5a2b70,_0x3d5fd3=_0x51538b()[_0x26d123('0xe9e')](_0x1f67eb['intervals'],{'id':_0xf17335['id']});_0x3d5fd3&&_0x51538b()[_0x26d123('0x283c')](_0x3d5fd3,_0xf17335),_0x27272e[_0x26d123('0xe10')]({'title':_0x26d123('0x68b'),'msg':_0x26d123('0x257d')}),_0x27c7a8();})[_0x5a2b70('0x253d')](function(_0x1aef33){var _0x381a40=_0x5a2b70;console[_0x381a40('0x187f')](_0x1aef33),_0x1f67eb[_0x381a40('0x4c6')]=_0x1aef33['data'][_0x381a40('0x4c6')]||[{'message':_0x1aef33['toString'](),'type':'api.interval.update'}];});}function _0x27c7a8(_0xaf1749){var _0x2ab838=_0x1f9d56;_0x391043[_0x2ab838('0x1120')](_0xaf1749);}}const _0x4036ad=_0x4191df;_0x39a632[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d1b'),'smsAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x39a632(_0x30a779,_0xc982c0,_0x5209a6,_0x26b274,_0x503d2d,_0x4f84e0,_0x240cdd,_0x5595e8){var _0x3c684e=_0x1a8446,_0x116696=this;_0x116696['currentUser']=_0x240cdd[_0x3c684e('0xacc')](),_0x116696[_0x3c684e('0x4c6')]=[],_0x116696[_0x3c684e('0x110a')]=_0x3c684e('0x207c')+(_0x26b274['appType']||_0x26b274[_0x3c684e('0x9eb')])['toUpperCase'](),_0x116696[_0x3c684e('0x27ca')]=angular[_0x3c684e('0x20a')](_0x26b274),_0x116696[_0x3c684e('0xada')]=_0x5595e8,_0x116696[_0x3c684e('0x9f0')]={};if(_0x116696[_0x3c684e('0x27ca')]['appdata'])switch(_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0xe6d')]?_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0xe6d')][_0x3c684e('0xcf6')]():_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x9eb')]['toLowerCase']()){case _0x3c684e('0x113b'):break;case _0x3c684e('0x67c'):{var _0x10fb3f=_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x124b')][_0x3c684e('0x1a39')](',');_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x24ec')]=_0x10fb3f[0x0],_0x116696['noop'][_0x3c684e('0x1938')]=_0x10fb3f[0x1],_0x116696['noop'][_0x3c684e('0x273')]=_0x10fb3f['slice'](0x2,_0x10fb3f['length'])['join'](',');}break;case'amazonlex':{var _0x197635=_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x124b')][_0x3c684e('0x1a39')](',');_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0xc07')]=_0x197635[0x0],_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x15f9')]=_0x197635[0x1],_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0xa9a')]=_0x197635[0x2],_0x116696[_0x3c684e('0x27ca')]['botname']=_0x197635[0x3],_0x116696['noop'][_0x3c684e('0x273')]=_0x197635[_0x3c684e('0x19aa')](0x4,_0x197635[_0x3c684e('0x2587')])['join'](',');}break;case _0x3c684e('0x1b05'):{var _0x91fe5d=_0x116696[_0x3c684e('0x27ca')]['appdata']['split'](',');_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x11b6')]=isNaN(_0x91fe5d[0x0])?_0x91fe5d[0x0]:parseInt(_0x91fe5d[0x0],0xa),_0x116696[_0x3c684e('0x27ca')]['text']=_0x91fe5d['slice'](0x1,_0x91fe5d[_0x3c684e('0x2587')])['join'](',');}break;case'message':_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0xb37')]=_0x116696['noop'][_0x3c684e('0x124b')];break;case _0x3c684e('0x282c'):_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x25d6')]=_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x124b')]['split']('=')[0x0],_0x116696[_0x3c684e('0x27ca')]['value']=_0x116696['noop'][_0x3c684e('0x124b')][_0x3c684e('0x1a39')]('=')[0x1];break;case'agi':_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x24b9')]=_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x124b')];break;default:{var _0x4d53c3=_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x124b')][_0x3c684e('0x1a39')](',');_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x12f4')]=_0x51538b()[_0x3c684e('0x116b')](_0x4d53c3[0x0])?_0x4d53c3[0x0]:isNaN(_0x4d53c3[0x0])?_0x4d53c3[0x0]:parseInt(_0x4d53c3[0x0],0xa);}break;}else{}_0x116696['noop'][_0x3c684e('0x6c8')]&&_0x116696[_0x3c684e('0x27ca')]['type'][_0x3c684e('0xcf6')]()===_0x3c684e('0x19d1')&&_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0xe6d')][_0x3c684e('0xcf6')]()===_0x3c684e('0x1e7f')&&(_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x1b8f')]=_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x1a46')]?_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x1a46')][_0x3c684e('0x1a39')]('$')[0x0]:undefined,_0x116696[_0x3c684e('0x27ca')]['callerId']=_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x514')]?'CALLERID(all)='+_0x116696[_0x3c684e('0x27ca')][_0x3c684e('0x514')]:undefined);_0x116696[_0x3c684e('0xcff')]=_0x20baff,_0x116696[_0x3c684e('0x2023')]=_0x336b95;function _0x20baff(){var _0xee9ca=_0x3c684e;_0x116696[_0xee9ca('0x4c6')]=[];var _0xd08faa=[];_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0x6c8')]&&_0x116696[_0xee9ca('0x27ca')]['type'][_0xee9ca('0xcf6')]()===_0xee9ca('0x19d1')&&_0x116696['noop'][_0xee9ca('0xe6d')]===_0xee9ca('0x8da')&&(_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0x1a46')]=_0x503d2d[_0xee9ca('0x888')]?(_0x116696[_0xee9ca('0x27ca')]['prefix']||'')+_0xee9ca('0x117e')+_0x503d2d['cutdigits']+'}':(_0x116696['noop']['prefix']||'')+'${EXTEN}',_0x503d2d['recordingFormat']!==_0xee9ca('0x117')?_0x116696['noop'][_0xee9ca('0x1b36')][_0xee9ca('0x1f38')](_0xee9ca('0x266a'))<0x0&&(_0x116696['noop']['options']+=_0xee9ca('0x266a')):_0x116696[_0xee9ca('0x27ca')]['options']=_0x116696[_0xee9ca('0x27ca')]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0xe6d')]&&_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0xe6d')]===_0xee9ca('0x113b')){}else switch((_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0x9eb')]||_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0xe6d')])[_0xee9ca('0xcf6')]()){case'set':_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0x124b')]=_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0x25d6')]+'='+_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0x12f4')];break;case'custom':break;default:_0xd08faa[0x0]=_0x116696['noop'][_0xee9ca('0x12f4')],_0x116696[_0xee9ca('0x27ca')][_0xee9ca('0x124b')]=_0xd08faa[_0xee9ca('0x19c4')](',');}_0x336b95(_0x116696[_0xee9ca('0x27ca')]);}function _0x336b95(_0x498a72){var _0x367055=_0x3c684e;_0x30a779[_0x367055('0x1120')](_0x498a72);}}const _0x1997e0=_0x39a632;_0x36a66e[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d1b'),_0x1a8446('0x1658'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x36a66e(_0x36180b,_0x3b20d8,_0x1d8f30,_0x4ee5e0,_0x22dd4a,_0x2c1604,_0x469b2e,_0x1abc70){var _0x466de1=_0x1a8446,_0x3d75f8=this;_0x3d75f8[_0x466de1('0x7fc')]=_0x469b2e[_0x466de1('0xacc')](),_0x3d75f8[_0x466de1('0x4c6')]=[],_0x3d75f8[_0x466de1('0x110a')]='SMS.EDIT_'+(_0x4ee5e0['appType']||_0x4ee5e0[_0x466de1('0x9eb')])[_0x466de1('0x1d08')](),_0x3d75f8[_0x466de1('0xe26')]=angular[_0x466de1('0x20a')](_0x4ee5e0),_0x3d75f8[_0x466de1('0xada')]=_0x1abc70,_0x3d75f8[_0x466de1('0x9f0')]={};if(_0x3d75f8[_0x466de1('0xe26')]['appdata'])switch(_0x3d75f8[_0x466de1('0xe26')]['appType']?_0x3d75f8[_0x466de1('0xe26')]['appType'][_0x466de1('0xcf6')]():_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x9eb')][_0x466de1('0xcf6')]()){case _0x466de1('0x113b'):break;case'dialogflow':{var _0x511063=_0x3d75f8['queue'][_0x466de1('0x124b')][_0x466de1('0x1a39')](',');_0x3d75f8['queue']['key']=_0x511063[0x0],_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x1938')]=_0x511063[0x1],_0x3d75f8['queue'][_0x466de1('0x273')]=_0x511063[_0x466de1('0x19aa')](0x2,_0x511063['length'])[_0x466de1('0x19c4')](',');}break;case _0x466de1('0x3f5'):{var _0x3e914e=_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x124b')][_0x466de1('0x1a39')](',');_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0xc07')]=_0x3e914e[0x0],_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x15f9')]=_0x3e914e[0x1],_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0xa9a')]=_0x3e914e[0x2],_0x3d75f8[_0x466de1('0xe26')]['botname']=_0x3e914e[0x3],_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x273')]=_0x3e914e[_0x466de1('0x19aa')](0x4,_0x3e914e[_0x466de1('0x2587')])[_0x466de1('0x19c4')](',');}break;case _0x466de1('0x1b05'):{var _0x2639c9=_0x3d75f8['queue'][_0x466de1('0x124b')][_0x466de1('0x1a39')](',');_0x3d75f8[_0x466de1('0xe26')]['times']=isNaN(_0x2639c9[0x0])?_0x2639c9[0x0]:parseInt(_0x2639c9[0x0],0xa),_0x3d75f8['queue'][_0x466de1('0xb37')]=_0x2639c9['slice'](0x1,_0x2639c9[_0x466de1('0x2587')])[_0x466de1('0x19c4')](',');}break;case _0x466de1('0x1402'):_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0xb37')]=_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x124b')];break;case _0x466de1('0x282c'):_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x25d6')]=_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x124b')][_0x466de1('0x1a39')]('=')[0x0],_0x3d75f8['queue'][_0x466de1('0x12f4')]=_0x3d75f8[_0x466de1('0xe26')]['appdata'][_0x466de1('0x1a39')]('=')[0x1];break;case'agi':_0x3d75f8['queue']['project']=_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x124b')];break;default:{var _0x309243=_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x124b')][_0x466de1('0x1a39')](',');_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0xe26')]=_0x51538b()[_0x466de1('0x116b')](_0x309243[0x0])?_0x309243[0x0]:isNaN(_0x309243[0x0])?_0x309243[0x0]:parseInt(_0x309243[0x0],0xa),_0x3d75f8[_0x466de1('0xe26')]['timeout']=_0x51538b()[_0x466de1('0x116b')](_0x309243[0x1])?_0x309243[0x1]:isNaN(_0x309243[0x1])?_0x309243[0x1]:parseInt(_0x309243[0x1],0xa);}break;}else _0x3d75f8[_0x466de1('0xe26')]['queue']=0x12c,_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x23c0')]=0x12c;_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x6c8')]&&_0x3d75f8[_0x466de1('0xe26')]['type'][_0x466de1('0xcf6')]()===_0x466de1('0x19d1')&&_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0xe6d')][_0x466de1('0xcf6')]()===_0x466de1('0x1e7f')&&(_0x3d75f8['queue'][_0x466de1('0x1b8f')]=_0x3d75f8['queue']['phone']?_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0x1a46')][_0x466de1('0x1a39')]('$')[0x0]:undefined,_0x3d75f8[_0x466de1('0xe26')][_0x466de1('0xeed')]=_0x3d75f8['queue'][_0x466de1('0x514')]?_0x466de1('0x23d8')+_0x3d75f8[_0x466de1('0xe26')]['callerID']:undefined);_0x3d75f8['saveSmsAccountApp']=_0x3e4ced,_0x3d75f8[_0x466de1('0x2023')]=_0x3a6ed4,_0x469b2e[_0x466de1('0x26e8')](_0x466de1('0x178b'))?_0x2c1604[_0x466de1('0x14a6')][_0x466de1('0x2122')]({'fields':_0x466de1('0x21e2'),'sort':'name','nolimit':_0x466de1('0x1c5c')})['$promise'][_0x466de1('0xaa5')](function(_0x21b1f6){var _0x1bb7d0=_0x466de1;_0x3d75f8['queues']=_0x21b1f6[_0x1bb7d0('0x580')]||[];})[_0x466de1('0x253d')](function(_0x52236c){var _0x423804=_0x466de1;_0x1d8f30[_0x423804('0x187f')]({'title':_0x52236c[_0x423804('0x2fa')]?_0x423804('0x16c2')+_0x52236c[_0x423804('0x2fa')]+_0x423804('0x169e')+_0x52236c[_0x423804('0x24df')]:_0x423804('0x773'),'msg':_0x52236c[_0x423804('0x10fd')]?JSON['stringify'](_0x52236c[_0x423804('0x10fd')]):_0x52236c[_0x423804('0x684')]()});}):_0x2c1604[_0x466de1('0x14a6')][_0x466de1('0x2122')]({'fields':_0x466de1('0x21e2'),'sort':_0x466de1('0x25d6'),'nolimit':_0x466de1('0x1c5c')})[_0x466de1('0x1dc2')]['then'](function(_0x3fbaa3){var _0x320fb9=_0x466de1;_0x3d75f8[_0x320fb9('0x4d7')]=_0x3fbaa3[_0x320fb9('0x580')]||[];})['then'](function(){var _0x2e2ad9=_0x466de1;return _0x2c1604['userProfileSection'][_0x2e2ad9('0x2122')]({'userProfileId':_0x3d75f8[_0x2e2ad9('0x7fc')][_0x2e2ad9('0x2168')],'sectionId':0x2bd})[_0x2e2ad9('0x1dc2')];})[_0x466de1('0xaa5')](function(_0x32fa9f){var _0x39319d=_0x466de1,_0x571e32=_0x32fa9f&&_0x32fa9f[_0x39319d('0x580')]?_0x32fa9f['rows'][0x0]:null;if(!_0x571e32){var _0x4b288c=[],_0x506ab1=null;_0x3d75f8[_0x39319d('0xe26')]&&(_0x506ab1=_0x51538b()['find'](_0x3d75f8[_0x39319d('0x4d7')],{'name':_0x3d75f8[_0x39319d('0xe26')]['queue']}));for(var _0x7834cb=0x0;_0x7834cb<_0x3d75f8[_0x39319d('0x4d7')][_0x39319d('0x2587')];_0x7834cb++){_0x506ab1&&_0x3d75f8[_0x39319d('0x4d7')][_0x7834cb]['id']===_0x506ab1['id']&&(_0x3d75f8[_0x39319d('0x4d7')][_0x7834cb][_0x39319d('0x12eb')]=![],_0x4b288c[_0x39319d('0x1599')](_0x3d75f8[_0x39319d('0x4d7')][_0x7834cb]));}_0x3d75f8[_0x39319d('0x4d7')]=_0x4b288c;}else{if(!_0x571e32[_0x39319d('0x26cc')])return _0x2c1604[_0x39319d('0x249a')][_0x39319d('0x2122')]({'sectionId':_0x571e32['id']})['$promise'][_0x39319d('0xaa5')](function(_0x7b873d){var _0x557854=_0x39319d,_0x222c43=_0x51538b()[_0x557854('0x1246')](_0x7b873d['rows'],function(_0x25953c){var _0x1e3da5=_0x557854;return _0x51538b()['find'](_0x3d75f8[_0x1e3da5('0x4d7')],{'id':_0x25953c[_0x1e3da5('0xbcd')]});}),_0x1f7bba=null;_0x3d75f8[_0x557854('0xe26')]&&(_0x1f7bba=_0x51538b()['find'](_0x3d75f8[_0x557854('0x4d7')],{'name':_0x3d75f8[_0x557854('0xe26')][_0x557854('0xe26')]}));if(_0x1f7bba&&!_0x51538b()[_0x557854('0x2c2')](_0x222c43,['id',_0x1f7bba['id']])){var _0x54084d=_0x51538b()[_0x557854('0xe9e')](_0x3d75f8[_0x557854('0x4d7')],{'id':_0x1f7bba['id']});_0x54084d[_0x557854('0x12eb')]=![],_0x222c43[_0x557854('0x1599')](_0x54084d);}_0x3d75f8['queues']=_0x222c43;});}})[_0x466de1('0x253d')](function(_0x1afcd8){var _0x1ed0a8=_0x466de1;_0x1d8f30['error']({'title':_0x1afcd8[_0x1ed0a8('0x2fa')]?_0x1ed0a8('0x16c2')+_0x1afcd8[_0x1ed0a8('0x2fa')]+_0x1ed0a8('0x169e')+_0x1afcd8[_0x1ed0a8('0x24df')]:_0x1ed0a8('0x278e'),'msg':_0x1afcd8['data']?JSON['stringify'](_0x1afcd8[_0x1ed0a8('0x10fd')]):_0x1afcd8[_0x1ed0a8('0x684')]()});});function _0x3e4ced(){var _0x240f63=_0x466de1;_0x3d75f8[_0x240f63('0x4c6')]=[];var _0x3493c2=[];_0x3d75f8['queue'][_0x240f63('0x6c8')]&&_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x6c8')]['toLowerCase']()===_0x240f63('0x19d1')&&_0x3d75f8[_0x240f63('0xe26')]['appType']===_0x240f63('0x8da')&&(_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x1a46')]=_0x22dd4a[_0x240f63('0x888')]?(_0x3d75f8[_0x240f63('0xe26')]['prefix']||'')+_0x240f63('0x117e')+_0x22dd4a[_0x240f63('0x888')]+'}':(_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x1b8f')]||'')+_0x240f63('0x1f87'),_0x22dd4a[_0x240f63('0x1e0f')]!==_0x240f63('0x117')?_0x3d75f8[_0x240f63('0xe26')]['options'][_0x240f63('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x1b36')]+=_0x240f63('0x266a')):_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x1b36')]=_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x1b36')][_0x240f63('0x170d')](_0x240f63('0x266a'),''));var _0x29f146=_0x51538b()['find'](_0x3d75f8[_0x240f63('0x4d7')],{'name':_0x3d75f8['queue'][_0x240f63('0xe26')]});_0x29f146&&(_0x3d75f8[_0x240f63('0xe26')][_0x51538b()[_0x240f63('0x1b56')]('sms')+_0x240f63('0x2097')]=_0x29f146['id']);if(_0x3d75f8['queue'][_0x240f63('0xe6d')]&&_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0xe6d')]===_0x240f63('0x113b')){}else switch((_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x9eb')]||_0x3d75f8['queue'][_0x240f63('0xe6d')])[_0x240f63('0xcf6')]()){case'set':_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x124b')]=_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x25d6')]+'='+_0x3d75f8[_0x240f63('0xe26')][_0x240f63('0x12f4')];break;case _0x240f63('0x113b'):break;default:_0x3493c2[0x0]=_0x3d75f8[_0x240f63('0xe26')]['queue'],_0x3493c2[0x1]=_0x3d75f8[_0x240f63('0xe26')]['timeout'],_0x3d75f8[_0x240f63('0xe26')]['appdata']=_0x3493c2[_0x240f63('0x19c4')](',');}_0x3a6ed4(_0x3d75f8['queue']);}function _0x3a6ed4(_0x283ad8){var _0x6eb0de=_0x466de1;_0x36180b[_0x6eb0de('0x1120')](_0x283ad8);}}const _0x4e8d86=_0x36a66e;_0x29fc15[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x1d1b'),_0x1a8446('0x1658'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x29fc15(_0xfa2687,_0x47283e,_0x27cc9,_0x4f756a,_0x51ee44,_0x275a75,_0x19ffe3,_0x2fea4a){var _0x47944d=_0x1a8446,_0x35546f=this;_0x35546f['currentUser']=_0x19ffe3[_0x47944d('0xacc')](),_0x35546f[_0x47944d('0x4c6')]=[],_0x35546f[_0x47944d('0x110a')]=_0x47944d('0x207c')+(_0x4f756a[_0x47944d('0xe6d')]||_0x4f756a[_0x47944d('0x9eb')])[_0x47944d('0x1d08')](),_0x35546f[_0x47944d('0x5da')]=angular[_0x47944d('0x20a')](_0x4f756a),_0x35546f[_0x47944d('0xada')]=_0x2fea4a,_0x35546f[_0x47944d('0x9f0')]={};if(_0x35546f[_0x47944d('0x5da')][_0x47944d('0x124b')])switch(_0x35546f[_0x47944d('0x5da')]['appType']?_0x35546f[_0x47944d('0x5da')][_0x47944d('0xe6d')][_0x47944d('0xcf6')]():_0x35546f[_0x47944d('0x5da')][_0x47944d('0x9eb')]['toLowerCase']()){case'custom':break;case _0x47944d('0x67c'):{var _0x382340=_0x35546f[_0x47944d('0x5da')][_0x47944d('0x124b')][_0x47944d('0x1a39')](',');_0x35546f[_0x47944d('0x5da')][_0x47944d('0x24ec')]=_0x382340[0x0],_0x35546f[_0x47944d('0x5da')][_0x47944d('0x1938')]=_0x382340[0x1],_0x35546f[_0x47944d('0x5da')][_0x47944d('0x273')]=_0x382340['slice'](0x2,_0x382340[_0x47944d('0x2587')])[_0x47944d('0x19c4')](',');}break;case'amazonlex':{var _0x3bda24=_0x35546f[_0x47944d('0x5da')][_0x47944d('0x124b')][_0x47944d('0x1a39')](',');_0x35546f['system']['accesskeyid']=_0x3bda24[0x0],_0x35546f[_0x47944d('0x5da')]['secretaccesskey']=_0x3bda24[0x1],_0x35546f['system'][_0x47944d('0xa9a')]=_0x3bda24[0x2],_0x35546f[_0x47944d('0x5da')][_0x47944d('0x18ee')]=_0x3bda24[0x3],_0x35546f['system']['welcomemessage']=_0x3bda24[_0x47944d('0x19aa')](0x4,_0x3bda24['length'])[_0x47944d('0x19c4')](',');}break;case _0x47944d('0x1b05'):{var _0x2cb1ba=_0x35546f['system'][_0x47944d('0x124b')][_0x47944d('0x1a39')](',');_0x35546f[_0x47944d('0x5da')][_0x47944d('0x11b6')]=isNaN(_0x2cb1ba[0x0])?_0x2cb1ba[0x0]:parseInt(_0x2cb1ba[0x0],0xa),_0x35546f['system']['text']=_0x2cb1ba[_0x47944d('0x19aa')](0x1,_0x2cb1ba[_0x47944d('0x2587')])['join'](',');}break;case'message':_0x35546f[_0x47944d('0x5da')][_0x47944d('0xb37')]=_0x35546f['system'][_0x47944d('0x124b')];break;case _0x47944d('0x282c'):_0x35546f[_0x47944d('0x5da')][_0x47944d('0x25d6')]=_0x35546f[_0x47944d('0x5da')][_0x47944d('0x124b')][_0x47944d('0x1a39')]('=')[0x0],_0x35546f[_0x47944d('0x5da')][_0x47944d('0x12f4')]=_0x35546f[_0x47944d('0x5da')][_0x47944d('0x124b')][_0x47944d('0x1a39')]('=')[0x1];break;case _0x47944d('0x2067'):_0x35546f[_0x47944d('0x5da')][_0x47944d('0x24b9')]=_0x35546f[_0x47944d('0x5da')][_0x47944d('0x124b')];break;default:{var _0x3a0a4b=_0x35546f['system'][_0x47944d('0x124b')]['split'](',');_0x35546f[_0x47944d('0x5da')][_0x47944d('0xd7b')]=_0x51538b()[_0x47944d('0x116b')](_0x3a0a4b[0x0])?_0x3a0a4b[0x0]:isNaN(_0x3a0a4b[0x0])?_0x3a0a4b[0x0]:parseInt(_0x3a0a4b[0x0],0xa),_0x35546f[_0x47944d('0x5da')][_0x47944d('0x14e7')]=_0x51538b()[_0x47944d('0x116b')](_0x3a0a4b[0x1])?_0x3a0a4b[0x1]:isNaN(_0x3a0a4b[0x1])?_0x3a0a4b[0x1]:parseInt(_0x3a0a4b[0x1],0xa);}break;}else _0x35546f['system'][_0x47944d('0x14e7')]='';_0x35546f[_0x47944d('0x5da')]['type']&&_0x35546f[_0x47944d('0x5da')][_0x47944d('0x6c8')][_0x47944d('0xcf6')]()==='outbound'&&_0x35546f[_0x47944d('0x5da')][_0x47944d('0xe6d')][_0x47944d('0xcf6')]()===_0x47944d('0x1e7f')&&(_0x35546f[_0x47944d('0x5da')][_0x47944d('0x1b8f')]=_0x35546f[_0x47944d('0x5da')]['phone']?_0x35546f[_0x47944d('0x5da')][_0x47944d('0x1a46')]['split']('$')[0x0]:undefined,_0x35546f[_0x47944d('0x5da')]['callerId']=_0x35546f[_0x47944d('0x5da')][_0x47944d('0x514')]?_0x47944d('0x23d8')+_0x35546f['system'][_0x47944d('0x514')]:undefined);_0x35546f['saveSmsAccountApp']=_0x3e8cc3,_0x35546f[_0x47944d('0x2023')]=_0x31dfe9,_0x19ffe3[_0x47944d('0x26e8')](_0x47944d('0x178b'))?_0x275a75[_0x47944d('0x14e7')][_0x47944d('0x2122')]({'fields':_0x47944d('0x17fe'),'sort':_0x47944d('0x25d6'),'nolimit':_0x47944d('0x1c5c')})['$promise']['then'](function(_0x2c3e9d){var _0x55043e=_0x47944d;_0x35546f[_0x55043e('0x147e')]=_0x2c3e9d['rows']||[];})[_0x47944d('0x253d')](function(_0x27e74b){var _0x4866f9=_0x47944d;_0x27cc9[_0x4866f9('0x187f')]({'title':_0x27e74b[_0x4866f9('0x2fa')]?'API:'+_0x27e74b[_0x4866f9('0x2fa')]+_0x4866f9('0x169e')+_0x27e74b[_0x4866f9('0x24df')]:'SYSTEM:GET_VARIABLES','msg':_0x27e74b[_0x4866f9('0x10fd')]?JSON[_0x4866f9('0xa48')](_0x27e74b[_0x4866f9('0x10fd')]):_0x27e74b[_0x4866f9('0x684')]()});}):_0x275a75[_0x47944d('0x14e7')][_0x47944d('0x2122')]({'fields':_0x47944d('0x17fe'),'sort':'name','nolimit':_0x47944d('0x1c5c')})[_0x47944d('0x1dc2')][_0x47944d('0xaa5')](function(_0x2ee2d9){var _0x237ec0=_0x47944d;_0x35546f[_0x237ec0('0x147e')]=_0x2ee2d9[_0x237ec0('0x580')]||[];})['then'](function(){var _0x550bbd=_0x47944d;return _0x275a75[_0x550bbd('0x1a50')]['get']({'userProfileId':_0x35546f[_0x550bbd('0x7fc')][_0x550bbd('0x2168')],'sectionId':0x3f4})[_0x550bbd('0x1dc2')];})[_0x47944d('0xaa5')](function(_0x311bcb){var _0x5664b1=_0x47944d,_0x536341=_0x311bcb&&_0x311bcb['rows']?_0x311bcb['rows'][0x0]:null;if(!_0x536341){var _0x2dbca9=[],_0x656868=null;_0x35546f['system']&&(_0x656868=_0x51538b()['find'](_0x35546f[_0x5664b1('0x147e')],{'name':_0x35546f['system'][_0x5664b1('0x14e7')]}));for(var _0x4c1a0b=0x0;_0x4c1a0b<_0x35546f[_0x5664b1('0x147e')][_0x5664b1('0x2587')];_0x4c1a0b++){_0x656868&&_0x35546f['variables'][_0x4c1a0b]['id']===_0x656868['id']&&(_0x35546f[_0x5664b1('0x147e')][_0x4c1a0b][_0x5664b1('0x12eb')]=![],_0x2dbca9['push'](_0x35546f['variables'][_0x4c1a0b]));}_0x35546f[_0x5664b1('0x147e')]=_0x2dbca9;}else{if(!_0x536341[_0x5664b1('0x26cc')])return _0x275a75[_0x5664b1('0x249a')][_0x5664b1('0x2122')]({'sectionId':_0x536341['id']})['$promise']['then'](function(_0x47ba6e){var _0x239faa=_0x5664b1,_0x5f1db3=_0x51538b()[_0x239faa('0x1246')](_0x47ba6e['rows'],function(_0x56ad6c){var _0x5e3173=_0x239faa;return _0x51538b()['find'](_0x35546f[_0x5e3173('0x147e')],{'id':_0x56ad6c[_0x5e3173('0xbcd')]});}),_0x87f32e=null;_0x35546f['system']&&(_0x87f32e=_0x51538b()[_0x239faa('0xe9e')](_0x35546f['variables'],{'name':_0x35546f[_0x239faa('0x5da')][_0x239faa('0x14e7')]}));if(_0x87f32e&&!_0x51538b()[_0x239faa('0x2c2')](_0x5f1db3,['id',_0x87f32e['id']])){var _0x35dabc=_0x51538b()[_0x239faa('0xe9e')](_0x35546f['variables'],{'id':_0x87f32e['id']});_0x35dabc['canSelect']=![],_0x5f1db3[_0x239faa('0x1599')](_0x35dabc);}_0x35546f[_0x239faa('0x147e')]=_0x5f1db3;});}})['catch'](function(_0x3b4e12){var _0x823e40=_0x47944d;_0x27cc9[_0x823e40('0x187f')]({'title':_0x3b4e12[_0x823e40('0x2fa')]?_0x823e40('0x16c2')+_0x3b4e12[_0x823e40('0x2fa')]+'\x20-\x20'+_0x3b4e12[_0x823e40('0x24df')]:_0x823e40('0xb4d'),'msg':_0x3b4e12['data']?JSON['stringify'](_0x3b4e12[_0x823e40('0x10fd')]):_0x3b4e12[_0x823e40('0x684')]()});});function _0x3e8cc3(){var _0x1158bf=_0x47944d;_0x35546f[_0x1158bf('0x4c6')]=[];var _0x32cf23=[];_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0x6c8')]&&_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0x6c8')][_0x1158bf('0xcf6')]()===_0x1158bf('0x19d1')&&_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0xe6d')]===_0x1158bf('0x8da')&&(_0x35546f[_0x1158bf('0x5da')]['phone']=_0x51ee44[_0x1158bf('0x888')]?(_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0x1b8f')]||'')+_0x1158bf('0x117e')+_0x51ee44[_0x1158bf('0x888')]+'}':(_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0x1b8f')]||'')+_0x1158bf('0x1f87'),_0x51ee44[_0x1158bf('0x1e0f')]!==_0x1158bf('0x117')?_0x35546f[_0x1158bf('0x5da')]['options'][_0x1158bf('0x1f38')](_0x1158bf('0x266a'))<0x0&&(_0x35546f['system'][_0x1158bf('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x35546f['system']['options']=_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0x1b36')][_0x1158bf('0x170d')](_0x1158bf('0x266a'),''));if(_0x35546f['system']['appType']&&_0x35546f['system'][_0x1158bf('0xe6d')]===_0x1158bf('0x113b')){}else switch((_0x35546f['system'][_0x1158bf('0x9eb')]||_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0xe6d')])[_0x1158bf('0xcf6')]()){case _0x1158bf('0x282c'):_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0x124b')]=_0x35546f['system']['name']+'='+_0x35546f['system'][_0x1158bf('0x12f4')];break;case _0x1158bf('0x113b'):break;default:_0x32cf23[0x0]=_0x35546f[_0x1158bf('0x5da')][_0x1158bf('0xd7b')],_0x32cf23[0x1]=_0x35546f[_0x1158bf('0x5da')]['variable'],_0x35546f[_0x1158bf('0x5da')]['appdata']=_0x32cf23[_0x1158bf('0x19c4')](',');}_0x31dfe9(_0x35546f[_0x1158bf('0x5da')]);}function _0x31dfe9(_0x49edaf){var _0x5c5caa=_0x47944d;_0xfa2687[_0x5c5caa('0x1120')](_0x49edaf);}}const _0x4a40aa=_0x29fc15;_0x2b598d[_0x1a8446('0x1e33')]=['$mdDialog','$q','toasty',_0x1a8446('0x1d1b'),'smsAccount','api','Auth',_0x1a8446('0xada')];function _0x2b598d(_0x4ffff0,_0x51ffe8,_0x47d64c,_0x28b721,_0x56c91a,_0x5de191,_0x4fa659,_0x25c8c2){var _0xff02f8=_0x1a8446,_0x2d1e47=this;_0x2d1e47[_0xff02f8('0x7fc')]=_0x4fa659[_0xff02f8('0xacc')](),_0x2d1e47[_0xff02f8('0x4c6')]=[],_0x2d1e47[_0xff02f8('0x110a')]=_0xff02f8('0x207c')+(_0x28b721[_0xff02f8('0xe6d')]||_0x28b721[_0xff02f8('0x9eb')])[_0xff02f8('0x1d08')](),_0x2d1e47[_0xff02f8('0x38f')]=angular[_0xff02f8('0x20a')](_0x28b721),_0x2d1e47['crudPermissions']=_0x25c8c2,_0x2d1e47[_0xff02f8('0x9f0')]={};if(_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x124b')])switch(_0x2d1e47['tag'][_0xff02f8('0xe6d')]?_0x2d1e47['tag'][_0xff02f8('0xe6d')][_0xff02f8('0xcf6')]():_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x9eb')][_0xff02f8('0xcf6')]()){case _0xff02f8('0x113b'):break;case'dialogflow':{var _0x2cbbd9=_0x2d1e47['tag'][_0xff02f8('0x124b')]['split'](',');_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x24ec')]=_0x2cbbd9[0x0],_0x2d1e47['tag']['language']=_0x2cbbd9[0x1],_0x2d1e47['tag'][_0xff02f8('0x273')]=_0x2cbbd9[_0xff02f8('0x19aa')](0x2,_0x2cbbd9['length'])[_0xff02f8('0x19c4')](',');}break;case'amazonlex':{var _0x4597cd=_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x124b')][_0xff02f8('0x1a39')](',');_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0xc07')]=_0x4597cd[0x0],_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x15f9')]=_0x4597cd[0x1],_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0xa9a')]=_0x4597cd[0x2],_0x2d1e47[_0xff02f8('0x38f')]['botname']=_0x4597cd[0x3],_0x2d1e47[_0xff02f8('0x38f')]['welcomemessage']=_0x4597cd[_0xff02f8('0x19aa')](0x4,_0x4597cd[_0xff02f8('0x2587')])['join'](',');}break;case _0xff02f8('0x1b05'):{var _0x383f17=_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x124b')][_0xff02f8('0x1a39')](',');_0x2d1e47[_0xff02f8('0x38f')]['times']=isNaN(_0x383f17[0x0])?_0x383f17[0x0]:parseInt(_0x383f17[0x0],0xa),_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0xb37')]=_0x383f17[_0xff02f8('0x19aa')](0x1,_0x383f17[_0xff02f8('0x2587')])[_0xff02f8('0x19c4')](',');}break;case _0xff02f8('0x1402'):_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0xb37')]=_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x124b')];break;case _0xff02f8('0x282c'):_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x25d6')]=_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x124b')][_0xff02f8('0x1a39')]('=')[0x0],_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x12f4')]=_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x124b')][_0xff02f8('0x1a39')]('=')[0x1];break;case _0xff02f8('0x2067'):_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x24b9')]=_0x2d1e47[_0xff02f8('0x38f')]['appdata'];break;default:{var _0x1184ab=_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x124b')][_0xff02f8('0x1a39')](',');_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x38f')]=_0x51538b()['isEmpty'](_0x1184ab[0x0])?_0x1184ab[0x0]:isNaN(_0x1184ab[0x0])?_0x1184ab[0x0]:parseInt(_0x1184ab[0x0],0xa);}break;}else{}_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x6c8')]&&_0x2d1e47[_0xff02f8('0x38f')]['type'][_0xff02f8('0xcf6')]()==='outbound'&&_0x2d1e47['tag'][_0xff02f8('0xe6d')]['toLowerCase']()===_0xff02f8('0x1e7f')&&(_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x1b8f')]=_0x2d1e47[_0xff02f8('0x38f')]['phone']?_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x1a46')][_0xff02f8('0x1a39')]('$')[0x0]:undefined,_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0xeed')]=_0x2d1e47[_0xff02f8('0x38f')][_0xff02f8('0x514')]?_0xff02f8('0x23d8')+_0x2d1e47['tag'][_0xff02f8('0x514')]:undefined);_0x2d1e47[_0xff02f8('0xcff')]=_0x3297de,_0x2d1e47[_0xff02f8('0x2023')]=_0x2ee10d,_0x4fa659[_0xff02f8('0x26e8')](_0xff02f8('0x178b'))?_0x5de191[_0xff02f8('0x38f')]['get']({'fields':'id,name','sort':_0xff02f8('0x25d6'),'nolimit':_0xff02f8('0x1c5c')})['$promise'][_0xff02f8('0xaa5')](function(_0x48f2d2){_0x2d1e47['tags']=_0x48f2d2['rows']||[];})[_0xff02f8('0x253d')](function(_0x4e4610){var _0x6438da=_0xff02f8;_0x47d64c[_0x6438da('0x187f')]({'title':_0x4e4610[_0x6438da('0x2fa')]?_0x6438da('0x16c2')+_0x4e4610[_0x6438da('0x2fa')]+_0x6438da('0x169e')+_0x4e4610[_0x6438da('0x24df')]:_0x6438da('0x37c'),'msg':_0x4e4610['data']?JSON['stringify'](_0x4e4610[_0x6438da('0x10fd')]):_0x4e4610[_0x6438da('0x684')]()});}):_0x5de191['tag'][_0xff02f8('0x2122')]({'fields':'id,name','sort':_0xff02f8('0x25d6'),'nolimit':_0xff02f8('0x1c5c')})[_0xff02f8('0x1dc2')][_0xff02f8('0xaa5')](function(_0xf1e635){var _0x5f3f88=_0xff02f8;_0x2d1e47[_0x5f3f88('0x523')]=_0xf1e635[_0x5f3f88('0x580')]||[];})[_0xff02f8('0xaa5')](function(){var _0xdf10c3=_0xff02f8;return _0x5de191['userProfileSection'][_0xdf10c3('0x2122')]({'userProfileId':_0x2d1e47[_0xdf10c3('0x7fc')][_0xdf10c3('0x2168')],'sectionId':0x3f0})[_0xdf10c3('0x1dc2')];})[_0xff02f8('0xaa5')](function(_0xc2527d){var _0x436fab=_0xff02f8,_0x1a26c6=_0xc2527d&&_0xc2527d[_0x436fab('0x580')]?_0xc2527d[_0x436fab('0x580')][0x0]:null;if(!_0x1a26c6){var _0x238c9f=[],_0x44ffb2=null;_0x2d1e47[_0x436fab('0x38f')]&&(_0x44ffb2=_0x51538b()[_0x436fab('0xe9e')](_0x2d1e47[_0x436fab('0x523')],{'name':_0x2d1e47[_0x436fab('0x38f')][_0x436fab('0x38f')]}));for(var _0x5e7ba9=0x0;_0x5e7ba9<_0x2d1e47[_0x436fab('0x523')][_0x436fab('0x2587')];_0x5e7ba9++){_0x44ffb2&&_0x2d1e47[_0x436fab('0x523')][_0x5e7ba9]['id']===_0x44ffb2['id']&&(_0x2d1e47[_0x436fab('0x523')][_0x5e7ba9]['canSelect']=![],_0x238c9f['push'](_0x2d1e47['tags'][_0x5e7ba9]));}_0x2d1e47[_0x436fab('0x523')]=_0x238c9f;}else{if(!_0x1a26c6[_0x436fab('0x26cc')])return _0x5de191['userProfileResource'][_0x436fab('0x2122')]({'sectionId':_0x1a26c6['id']})['$promise'][_0x436fab('0xaa5')](function(_0x25098f){var _0x4b5e1a=_0x436fab,_0x2d950d=_0x51538b()[_0x4b5e1a('0x1246')](_0x25098f[_0x4b5e1a('0x580')],function(_0x3f45e8){var _0x1f3cad=_0x4b5e1a;return _0x51538b()[_0x1f3cad('0xe9e')](_0x2d1e47['tags'],{'id':_0x3f45e8[_0x1f3cad('0xbcd')]});}),_0x356633=null;_0x2d1e47['tag']&&(_0x356633=_0x51538b()[_0x4b5e1a('0xe9e')](_0x2d1e47[_0x4b5e1a('0x523')],{'name':_0x2d1e47[_0x4b5e1a('0x38f')]['tag']}));if(_0x356633&&!_0x51538b()[_0x4b5e1a('0x2c2')](_0x2d950d,['id',_0x356633['id']])){var _0x228863=_0x51538b()['find'](_0x2d1e47[_0x4b5e1a('0x523')],{'id':_0x356633['id']});_0x228863['canSelect']=![],_0x2d950d[_0x4b5e1a('0x1599')](_0x228863);}_0x2d1e47[_0x4b5e1a('0x523')]=_0x2d950d;});}})[_0xff02f8('0x253d')](function(_0x188c50){var _0x5319b0=_0xff02f8;_0x47d64c[_0x5319b0('0x187f')]({'title':_0x188c50[_0x5319b0('0x2fa')]?_0x5319b0('0x16c2')+_0x188c50['status']+'\x20-\x20'+_0x188c50['statusText']:'SYSTEM:GETtags','msg':_0x188c50[_0x5319b0('0x10fd')]?JSON[_0x5319b0('0xa48')](_0x188c50[_0x5319b0('0x10fd')]):_0x188c50[_0x5319b0('0x684')]()});});function _0x3297de(){var _0x1e586b=_0xff02f8;_0x2d1e47[_0x1e586b('0x4c6')]=[];var _0x7544f1=[];_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0x6c8')]&&_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0x6c8')]['toLowerCase']()===_0x1e586b('0x19d1')&&_0x2d1e47[_0x1e586b('0x38f')]['appType']===_0x1e586b('0x8da')&&(_0x2d1e47[_0x1e586b('0x38f')]['phone']=_0x56c91a[_0x1e586b('0x888')]?(_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0x1b8f')]||'')+_0x1e586b('0x117e')+_0x56c91a[_0x1e586b('0x888')]+'}':(_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0x1b8f')]||'')+'${EXTEN}',_0x56c91a[_0x1e586b('0x1e0f')]!==_0x1e586b('0x117')?_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0x1b36')][_0x1e586b('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2d1e47[_0x1e586b('0x38f')]['options']+='U(xcally-mixmonitor-context)'):_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0x1b36')]=_0x2d1e47[_0x1e586b('0x38f')]['options'][_0x1e586b('0x170d')](_0x1e586b('0x266a'),''));var _0x5f38fc=_0x51538b()['find'](_0x2d1e47['tags'],{'name':_0x2d1e47[_0x1e586b('0x38f')]['tag']});_0x5f38fc&&(_0x2d1e47[_0x1e586b('0x38f')]['TagId']=_0x5f38fc['id']);if(_0x2d1e47[_0x1e586b('0x38f')]['appType']&&_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0xe6d')]===_0x1e586b('0x113b')){}else switch((_0x2d1e47[_0x1e586b('0x38f')]['app']||_0x2d1e47['tag'][_0x1e586b('0xe6d')])[_0x1e586b('0xcf6')]()){case'set':_0x2d1e47['tag'][_0x1e586b('0x124b')]=_0x2d1e47[_0x1e586b('0x38f')]['name']+'='+_0x2d1e47[_0x1e586b('0x38f')]['value'];break;case'custom':break;default:_0x7544f1[0x0]=_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0x38f')],_0x2d1e47[_0x1e586b('0x38f')][_0x1e586b('0x124b')]=_0x7544f1[_0x1e586b('0x19c4')](',');}_0x2ee10d(_0x2d1e47['tag']);}function _0x2ee10d(_0x25d1d4){var _0xec9d5a=_0xff02f8;_0x4ffff0[_0xec9d5a('0x1120')](_0x25d1d4);}}const _0x1811f6=_0x2b598d;_0x473697['$inject']=['$cookies',_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x473697(_0x5b3624,_0x30ffc3,_0x36e1e6,_0x2281e5,_0x36b31a,_0x3441ea,_0x432325,_0x132b20,_0x1d0851,_0x502bbb,_0x440a72){var _0x11a5a8=_0x1a8446,_0x535d09=this;_0x535d09[_0x11a5a8('0x7fc')]=_0x440a72[_0x11a5a8('0xacc')](),_0x535d09[_0x11a5a8('0x1658')]={},_0x535d09['smsAccountInteractions']={'count':0x0,'rows':[]},_0x535d09['selectedSmsAccountInteractions']=[],_0x535d09[_0x11a5a8('0xada')],_0x535d09['query']={'read':_0x11a5a8('0x1ed9'),'closed':_0x11a5a8('0x1ed9'),'sort':_0x11a5a8('0xa19'),'includeAll':_0x11a5a8('0x1c5c'),'limit':0xa,'page':0x1},_0x535d09[_0x11a5a8('0x2e')]=_0x2f05c0,_0x535d09[_0x11a5a8('0x1416')]=_0xe44bd3,_0x535d09[_0x11a5a8('0x22c0')]=_0x1c6d5d,_0x535d09[_0x11a5a8('0xe10')]=_0x5c287c,_0x535d09['getSmsAccountInteractions']=_0x42bc66,_0x535d09[_0x11a5a8('0x19b1')]=_0x13e80a,_0x535d09[_0x11a5a8('0x226e')]=_0x18d101,_0x535d09[_0x11a5a8('0x38')]=_0x263bc3,_0x535d09[_0x11a5a8('0x1fc3')]=_0x7d54ac,_0x535d09['deleteSelectedSmsAccountInteractions']=_0x513551;function _0x2f05c0(_0x5ac990,_0x41998d){var _0x544575=_0x11a5a8;_0x535d09[_0x544575('0x1658')]=_0x5ac990,_0x535d09[_0x544575('0xada')]=typeof _0x41998d!==_0x544575('0x1574')?_0x41998d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x535d09[_0x544575('0x582')]['SmsAccountId']=_0x535d09[_0x544575('0x1658')]['id'],_0x535d09[_0x544575('0xd67')]={'fields':_0x29af71()},_0x1ad538();}function _0x1ad538(){var _0x2fef69=_0x11a5a8;return _0x502bbb['tag'][_0x2fef69('0x2122')]()[_0x2fef69('0x1dc2')]['then'](function(_0x9f3898){_0x535d09['tags']=_0x9f3898||{'count':0x0,'rows':[]};})[_0x2fef69('0xaa5')](function(){var _0x7088fd=_0x2fef69;_0x535d09[_0x7088fd('0x168c')]=_0x388cb4();});}function _0x388cb4(){var _0x63be11=_0x11a5a8;return[{'name':_0x63be11('0x12f1'),'key':_0x63be11('0x24a1'),'type':_0x63be11('0xb87'),'label':_0x63be11('0xf3d')},{'name':_0x63be11('0x1cd2'),'key':_0x63be11('0x7b7'),'type':'select','label':_0x63be11('0x1da2'),'customOptions':[{'value':0x0,'translate':_0x63be11('0x320')},{'value':0x1,'translate':_0x63be11('0xdc4')},{'value':null,'translate':_0x63be11('0x20c4')}]},{'name':_0x63be11('0x26ae'),'key':_0x63be11('0x1cbd'),'type':_0x63be11('0xbff'),'label':_0x63be11('0x617'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x63be11('0x73b')},{'value':null,'translate':_0x63be11('0x20c4')}]},{'name':_0x63be11('0x521'),'key':_0x63be11('0x1037'),'type':'select','label':_0x63be11('0x162f'),'customOptions':[{'value':_0x63be11('0x1ed9'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x63be11('0x20c4')}]},{'name':_0x63be11('0x4e7'),'key':_0x63be11('0x38f'),'type':_0x63be11('0x2468'),'label':_0x63be11('0x6a6'),'options':_0x535d09[_0x63be11('0x523')][_0x63be11('0x580')],'placeholder':_0x63be11('0x1161')}];}function _0x29af71(){var _0x1dd408=_0x11a5a8;return[{'name':'Id','column':'id','type':'number'},{'name':_0x1dd408('0x1dc'),'column':_0x1dd408('0x1dc'),'type':_0x1dd408('0x7e6'),'options':{'searchFields':[_0x1dd408('0x24c1'),_0x1dd408('0x351'),_0x1dd408('0x1f69')],'route':{'model':_0x1dd408('0xdbd'),'action':_0x1dd408('0x2122'),'params':{'fields':_0x1dd408('0x14ba'),'Contact':_0x1dd408('0x1bfb'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x1dd408('0x13f7')]}},{'name':'Subject','column':'subject','type':_0x1dd408('0xb37'),'options':{'excludedOperators':['$eq',_0x1dd408('0x13f7')]}},{'name':_0x1dd408('0x1e4'),'column':'plainBody','type':_0x1dd408('0xb37'),'options':{'excludedOperators':[_0x1dd408('0x221d'),'$ne']}},{'name':_0x1dd408('0x26ae'),'column':_0x1dd408('0x1cbd'),'type':_0x1dd408('0xbff'),'values':[{'id':0x0,'translate':_0x1dd408('0x166e')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x1dd408('0x13f7')]}},{'name':_0x1dd408('0x521'),'column':'User','type':_0x1dd408('0x7e6'),'options':{'table':'i','route':{'model':'user','action':_0x1dd408('0x2122'),'params':{'role':_0x1dd408('0xeff'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname',_0x1dd408('0x25d6')],'extraOperators':[_0x1dd408('0x2082')],'excludedOperators':['$ne']}},{'name':_0x1dd408('0x67f'),'column':_0x1dd408('0x4e7'),'type':_0x1dd408('0x2468'),'options':{'route':{'model':_0x1dd408('0x38f'),'action':_0x1dd408('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x1dd408('0x930')]}},{'name':'Start\x20Date','column':_0x1dd408('0x24a1'),'type':'date','options':{'excludedOperators':[_0x1dd408('0x13f7')]}},{'name':_0x1dd408('0x120b'),'column':'unreadMessages','type':_0x1dd408('0xbff'),'values':[{'id':0x1,'translate':_0x1dd408('0xdc4')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x1dd408('0x13f7')]}}];}function _0x18d101(){var _0xe7313c=_0x11a5a8;_0x432325[_0xe7313c('0x1e6d')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x38b699,'parent':angular['element'](_0x132b20['body']),'clickOutsideToClose':![],'locals':{'fields':_0x535d09['advancedSearch'][_0xe7313c('0x13a')],'color':undefined,'storagePath':_0xe7313c('0x201c')},'fullscreen':!![]})[_0xe7313c('0xaa5')](function(_0x26c1a6){var _0x3f48e5=_0xe7313c;_0x535d09[_0x3f48e5('0x582')][_0x3f48e5('0x1785')]=_0x26c1a6===![]?undefined:_0x26c1a6;if(_0x535d09[_0x3f48e5('0x582')][_0x3f48e5('0x1785')])_0x42bc66();else _0x26c1a6===![]&&_0x42bc66();})[_0xe7313c('0x253d')](function(_0x488ecf){var _0x275c87=_0xe7313c;_0x1d0851[_0x275c87('0x187f')]({'title':'ERROR','msg':_0x488ecf['data']?JSON[_0x275c87('0xa48')](_0x488ecf['data'][_0x275c87('0x1402')]):_0x488ecf['toString']()});});}function _0x1c6d5d(_0x561b5e,_0x27fd48,_0x921cac){var _0x23f3a0=_0x11a5a8;return _0x502bbb['smsInteraction'][_0x23f3a0('0x1cf9')]({'id':_0x561b5e['id'],'exists':!![],'attachments':_0x921cac})[_0x23f3a0('0x1dc2')][_0x23f3a0('0xaa5')](function(_0x52db47){var _0x613e4a=_0x23f3a0,_0x16a623=[_0x52db47[_0x613e4a('0x1bf1')]],_0x4461bd=_0x613e4a('0x1d86')+_0x561b5e['id'],_0x137cf8=new Blob(_0x16a623,{'type':_0x52db47[_0x613e4a('0x6c8')]});_0x4461bd=_0x613e4a('0xbce')+_0x561b5e['id']+_0x613e4a('0x966');var _0x3d7dc8=window[_0x613e4a('0x12aa')]['createElement']('a');_0x3d7dc8[_0x613e4a('0x107b')](_0x613e4a('0x18ae'),URL[_0x613e4a('0x1e56')](_0x137cf8)),_0x3d7dc8[_0x613e4a('0x107b')]('download',_0x4461bd),document['body'][_0x613e4a('0x1315')](_0x3d7dc8),_0x3d7dc8[_0x613e4a('0x467')]();})[_0x23f3a0('0x253d')](function(_0x425594){var _0x49c053=_0x23f3a0;if(_0x425594[_0x49c053('0x10fd')]&&_0x425594['data'][_0x49c053('0x4c6')]&&_0x425594['data'][_0x49c053('0x4c6')][_0x49c053('0x2587')])for(var _0x4ea4ee=0x0;_0x4ea4ee<_0x425594[_0x49c053('0x10fd')][_0x49c053('0x4c6')]['length'];_0x4ea4ee+=0x1){_0x1d0851[_0x49c053('0x187f')]({'title':_0x425594['data'][_0x49c053('0x4c6')][_0x4ea4ee][_0x49c053('0x6c8')],'msg':_0x425594[_0x49c053('0x10fd')][_0x49c053('0x4c6')][_0x4ea4ee][_0x49c053('0x1402')]});}else _0x1d0851['error']({'title':_0x425594[_0x49c053('0x2fa')]?_0x49c053('0x16c2')+_0x425594[_0x49c053('0x2fa')]+_0x49c053('0x169e')+_0x425594[_0x49c053('0x24df')]:_0x49c053('0x2147'),'msg':_0x425594['data']?JSON[_0x49c053('0xa48')](_0x425594[_0x49c053('0x10fd')][_0x49c053('0x1402')]):_0x425594['toString']()});});}function _0xe44bd3(_0x17fc6a,_0x58e692){var _0x59ea1e=_0x11a5a8,_0x52bfc7=_0x432325[_0x59ea1e('0x281e')]()[_0x59ea1e('0x110a')](_0x59ea1e('0x625'))['htmlContent'](_0x59ea1e('0x389')+(_0x17fc6a[_0x59ea1e('0x25d6')]||_0x17fc6a['id']&&_0x51538b()[_0x59ea1e('0x1791')](_0x59ea1e('0x11a4'))+_0x17fc6a['id']||_0x59ea1e('0x1d86'))+'
'+_0x59ea1e('0x210d'))[_0x59ea1e('0x5b5')]('delete\x20interaction')[_0x59ea1e('0x116d')](_0x58e692)['ok']('OK')[_0x59ea1e('0x2030')]('CANCEL');_0x432325[_0x59ea1e('0x1e6d')](_0x52bfc7)[_0x59ea1e('0xaa5')](function(){_0x7d54ac(_0x17fc6a);},function(){var _0x73488d=_0x59ea1e;console['log'](_0x73488d('0x2410'));});}function _0x5c287c(_0x5ea473){var _0x5512d1=_0x11a5a8;_0x535d09['smsAccountInteractions']=_0x5ea473||{'count':0x0,'rows':[]};for(var _0x3bac48=0x0;_0x3bac48<_0x535d09['smsAccountInteractions'][_0x5512d1('0x580')][_0x5512d1('0x2587')];_0x3bac48+=0x1){var _0x589bcb=_0x535d09[_0x5512d1('0x23d5')][_0x5512d1('0x580')][_0x3bac48];_0x15eb18(_0x589bcb),_0x589bcb[_0x5512d1('0x40')][_0x5512d1('0x25d6')]=_0x1e74e6(_0x589bcb);}}function _0x42bc66(){var _0x251aa3=_0x11a5a8;_0x535d09[_0x251aa3('0x582')][_0x251aa3('0x8b1')]=(_0x535d09[_0x251aa3('0x582')]['page']-0x1)*_0x535d09[_0x251aa3('0x582')]['limit'],_0x535d09[_0x251aa3('0x159a')]=_0x502bbb[_0x251aa3('0x6da')][_0x251aa3('0x2122')](_0x535d09['query'],_0x5c287c)[_0x251aa3('0x1dc2')];}function _0x13e80a(_0x5d4318,_0x39d70b){var _0x2cc252=_0x11a5a8;_0x432325[_0x2cc252('0x1e6d')]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x451de2,'parent':angular[_0x2cc252('0x1aa8')](_0x132b20[_0x2cc252('0x54c')]),'targetEvent':_0x5d4318,'clickOutsideToClose':!![],'onShowing':function _0xdc1df3(_0xf63782){var _0x1c2cd0=_0x2cc252;_0xf63782['vm'][_0x1c2cd0('0x2e')]({'id':0x1,'channel':_0x1c2cd0('0x18da'),'interaction':_0x39d70b,'spy':!![]},_0x30ffc3[_0x1c2cd0('0x24a3')]['vm'][_0x1c2cd0('0x143f')]);}});}function _0x7d54ac(_0x175540){var _0x1e2a8b=_0x11a5a8;_0x502bbb[_0x1e2a8b('0x6da')][_0x1e2a8b('0x926')]({'id':_0x175540['id']})[_0x1e2a8b('0x1dc2')][_0x1e2a8b('0xaa5')](function(){var _0x5586b9=_0x1e2a8b;_0x51538b()['remove'](_0x535d09['smsAccountInteractions'][_0x5586b9('0x580')],{'id':_0x175540['id']}),_0x535d09['smsAccountInteractions']['count']-=0x1,!_0x535d09[_0x5586b9('0x23d5')][_0x5586b9('0x580')][_0x5586b9('0x2587')]&&_0x42bc66(),_0x1d0851[_0x5586b9('0xe10')]({'title':_0x5586b9('0xd35'),'msg':_0x175540['name']?_0x175540[_0x5586b9('0x25d6')]+_0x5586b9('0xcd9'):''});})[_0x1e2a8b('0x253d')](function(_0x4454d1){var _0x49340c=_0x1e2a8b;if(_0x4454d1[_0x49340c('0x10fd')]&&_0x4454d1[_0x49340c('0x10fd')][_0x49340c('0x4c6')]&&_0x4454d1[_0x49340c('0x10fd')]['errors'][_0x49340c('0x2587')]){_0x535d09[_0x49340c('0x4c6')]=_0x4454d1[_0x49340c('0x10fd')][_0x49340c('0x4c6')]||[{'message':_0x4454d1[_0x49340c('0x684')](),'type':'SYSTEM:GETsmsAccount'}];for(var _0x53293c=0x0;_0x53293c<_0x4454d1[_0x49340c('0x10fd')][_0x49340c('0x4c6')][_0x49340c('0x2587')];_0x53293c++){_0x1d0851[_0x49340c('0x187f')]({'title':_0x4454d1['data']['errors'][_0x53293c][_0x49340c('0x6c8')],'msg':_0x4454d1[_0x49340c('0x10fd')][_0x49340c('0x4c6')][_0x53293c][_0x49340c('0x1402')]});}}else _0x1d0851['error']({'title':_0x4454d1[_0x49340c('0x2fa')]?'API:'+_0x4454d1[_0x49340c('0x2fa')]+'\x20-\x20'+_0x4454d1[_0x49340c('0x24df')]:_0x49340c('0x14d5'),'msg':_0x4454d1['data']?JSON[_0x49340c('0xa48')](_0x4454d1['data'][_0x49340c('0x1402')]):_0x4454d1[_0x49340c('0x1402')]||_0x4454d1[_0x49340c('0x684')]()});});}function _0x263bc3(){var _0x4188df=_0x11a5a8,_0x1fc872=angular[_0x4188df('0x20a')](_0x535d09[_0x4188df('0x85a')]);return _0x535d09[_0x4188df('0x85a')]=[],_0x1fc872;}function _0x513551(_0x5f09d5){var _0x3e11b5=_0x11a5a8,_0x47644a=_0x432325[_0x3e11b5('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')[_0x3e11b5('0x102e')](''+_0x535d09['selectedSmsAccountInteractions'][_0x3e11b5('0x2587')]+_0x3e11b5('0x1443')+_0x3e11b5('0x210d'))[_0x3e11b5('0x5b5')]('delete\x20interactions')[_0x3e11b5('0x116d')](_0x5f09d5)['ok']('OK')[_0x3e11b5('0x2030')](_0x3e11b5('0x2410'));_0x432325[_0x3e11b5('0x1e6d')](_0x47644a)[_0x3e11b5('0xaa5')](function(){var _0x1789c2=_0x3e11b5;_0x535d09[_0x1789c2('0x85a')][_0x1789c2('0x15b5')](function(_0x34ea38){_0x7d54ac(_0x34ea38);}),_0x535d09[_0x1789c2('0x85a')]=[];});}function _0x15eb18(_0x11db39){var _0x528db8=_0x11a5a8;_0x11db39['Contact']?(_0x11db39[_0x528db8('0x4e0')]=(_0x11db39[_0x528db8('0x1dc')][_0x528db8('0x24c1')]||'')+'\x20'+(_0x11db39[_0x528db8('0x1dc')][_0x528db8('0x351')]||''),_0x11db39[_0x528db8('0x1420')]=_0x11db39[_0x528db8('0x1dc')][_0x528db8('0x1125')]):_0x11db39[_0x528db8('0x4e0')]=_0x36b31a[_0x528db8('0x213f')](_0x528db8('0x22f7'));}function _0x1e74e6(_0x118401){var _0x146379=_0x11a5a8;if(_0x118401[_0x146379('0x1037')])return _0x118401['UserId']===_0x535d09[_0x146379('0x7fc')]['id']?_0x36b31a[_0x146379('0x213f')](_0x146379('0x1855')):_0x118401['Owner'][_0x146379('0x18e5')]+'\x20<'+_0x118401[_0x146379('0x40')][_0x146379('0x1b0d')]+'>';return _0x36b31a[_0x146379('0x213f')](_0x146379('0x1a1c'));}var _0x47cc94=!![],_0x4c1051=0x1;_0x30ffc3[_0x11a5a8('0x1ccf')](_0x11a5a8('0x74c'),function(_0x3a7438,_0x29568e){var _0x674eb9=_0x11a5a8;_0x47cc94?_0x3441ea(function(){_0x47cc94=![];}):(!_0x29568e&&(_0x4c1051=_0x535d09[_0x674eb9('0x582')][_0x674eb9('0x41')]),_0x3a7438!==_0x29568e&&(_0x535d09['query']['page']=0x1),!_0x3a7438&&(_0x535d09[_0x674eb9('0x582')]['page']=_0x4c1051),_0x42bc66());});}const _0x169449=_0x473697,_0x2065a8=_0x4fb511['p']+_0x1a8446('0x194d');_0x108c49[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),'$state','$q',_0x1a8446('0xcb3'),'$timeout',_0x1a8446('0x2378'),'$document','toasty','api',_0x1a8446('0x1dfd')];function _0x108c49(_0x49b971,_0x4c9f1a,_0x5c621f,_0x2535d2,_0xb402fd,_0x175c43,_0x386402,_0x38e781,_0x5bac25,_0x454fe7,_0x355696){var _0x20ca00=_0x1a8446,_0x5186c5=this;_0x5186c5['currentUser']=_0x355696[_0x20ca00('0xacc')](),_0x5186c5['smsAccount']={},_0x5186c5[_0x20ca00('0x3a8')]={'count':0x0,'rows':[]},_0x5186c5[_0x20ca00('0x283b')]=[],_0x5186c5[_0x20ca00('0xada')],_0x5186c5[_0x20ca00('0x582')]={'fields':_0x20ca00('0x22e7'),'limit':0xa,'page':0x1},_0x5186c5[_0x20ca00('0x2e')]=_0x1ecd13,_0x5186c5[_0x20ca00('0x1416')]=_0x5d0ba6,_0x5186c5[_0x20ca00('0xe10')]=_0x406db7,_0x5186c5['getSmsAccountSmsCannedAnswers']=_0x5e3655,_0x5186c5['createOrEditSmsAccountSmsCannedAnswer']=_0xd3d458,_0x5186c5[_0x20ca00('0x123f')]=_0x16c5e2,_0x5186c5['deleteSmsAccountSmsCannedAnswer']=_0x30ca2c,_0x5186c5[_0x20ca00('0x148e')]=_0x54081d;function _0x1ecd13(_0x251e5c,_0x17250e){var _0x29a960=_0x20ca00;_0x5186c5[_0x29a960('0x1658')]=_0x251e5c,_0x5186c5[_0x29a960('0xada')]=typeof _0x17250e!=='undefined'?_0x17250e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5186c5[_0x29a960('0x582')][_0x29a960('0xaa0')]=_0x5186c5[_0x29a960('0x1658')]['id'],_0x5186c5[_0x29a960('0x582')]['id']=_0x5186c5[_0x29a960('0x1658')]['id'],_0x5e3655();}function _0x5d0ba6(_0x291e74,_0xb74c3e){var _0x5ebf63=_0x20ca00,_0x565f0e=_0x386402[_0x5ebf63('0x281e')]()[_0x5ebf63('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20smsCannedAnswer?')[_0x5ebf63('0x102e')](_0x5ebf63('0x389')+(_0x291e74[_0x5ebf63('0x25d6')]||_0x291e74['id']&&_0x51538b()['upperFirst'](_0x5ebf63('0x1380'))+_0x291e74['id']||_0x5ebf63('0x22c9'))+''+_0x5ebf63('0x210d'))[_0x5ebf63('0x5b5')]('delete\x20smsCannedAnswer')[_0x5ebf63('0x116d')](_0xb74c3e)['ok']('OK')[_0x5ebf63('0x2030')]('CANCEL');_0x386402['show'](_0x565f0e)[_0x5ebf63('0xaa5')](function(){_0x30ca2c(_0x291e74);},function(){var _0x39294d=_0x5ebf63;console[_0x39294d('0x18d5')]('CANCEL');});}function _0x406db7(_0x3ec07c){_0x5186c5['smsAccountSmsCannedAnswers']=_0x3ec07c||{'count':0x0,'rows':[]};}function _0x5e3655(){var _0x5a92e9=_0x20ca00;_0x5186c5['query'][_0x5a92e9('0x8b1')]=(_0x5186c5[_0x5a92e9('0x582')][_0x5a92e9('0x41')]-0x1)*_0x5186c5['query'][_0x5a92e9('0xf4d')],_0x5186c5[_0x5a92e9('0x159a')]=_0x454fe7[_0x5a92e9('0x1658')][_0x5a92e9('0x1720')](_0x5186c5['query'],_0x406db7)[_0x5a92e9('0x1dc2')];}function _0xd3d458(_0x27cd88,_0x2cedb3){var _0x1539c4=_0x20ca00;_0x386402[_0x1539c4('0x1e6d')]({'controller':'CreateOrEditSmsCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x2065a8,'parent':angular[_0x1539c4('0x1aa8')](_0x38e781['body']),'targetEvent':_0x27cd88,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x5186c5[_0x1539c4('0x1658')],'smsCannedAnswer':_0x2cedb3,'smsCannedAnswers':_0x5186c5['smsAccountSmsCannedAnswers']['rows'],'license':null,'setting':null,'crudPermissions':_0x5186c5[_0x1539c4('0xada')]}});}function _0x30ca2c(_0x211318){var _0x27c6fe=_0x20ca00;_0x454fe7['cannedAnswer'][_0x27c6fe('0x926')]({'id':_0x211318['id']})[_0x27c6fe('0x1dc2')][_0x27c6fe('0xaa5')](function(){var _0x6df02c=_0x27c6fe;_0x51538b()[_0x6df02c('0xf6d')](_0x5186c5[_0x6df02c('0x3a8')]['rows'],{'id':_0x211318['id']}),_0x5186c5[_0x6df02c('0x3a8')][_0x6df02c('0xd15')]-=0x1,!_0x5186c5['smsAccountSmsCannedAnswers'][_0x6df02c('0x580')][_0x6df02c('0x2587')]&&_0x5e3655(),_0x5bac25[_0x6df02c('0xe10')]({'title':'SmsCannedAnswer\x20deleted!','msg':_0x211318[_0x6df02c('0x25d6')]?_0x211318['name']+'\x20has\x20been\x20deleted!':''});})[_0x27c6fe('0x253d')](function(_0x578bc5){var _0x113dd4=_0x27c6fe;if(_0x578bc5[_0x113dd4('0x10fd')]&&_0x578bc5['data']['errors']&&_0x578bc5[_0x113dd4('0x10fd')][_0x113dd4('0x4c6')]['length']){_0x5186c5[_0x113dd4('0x4c6')]=_0x578bc5[_0x113dd4('0x10fd')][_0x113dd4('0x4c6')]||[{'message':_0x578bc5[_0x113dd4('0x684')](),'type':'SYSTEM:GETsmsAccount'}];for(var _0x4a9ba2=0x0;_0x4a9ba2<_0x578bc5['data'][_0x113dd4('0x4c6')][_0x113dd4('0x2587')];_0x4a9ba2++){_0x5bac25[_0x113dd4('0x187f')]({'title':_0x578bc5[_0x113dd4('0x10fd')]['errors'][_0x4a9ba2]['type'],'msg':_0x578bc5[_0x113dd4('0x10fd')][_0x113dd4('0x4c6')][_0x4a9ba2][_0x113dd4('0x1402')]});}}else _0x5bac25[_0x113dd4('0x187f')]({'title':_0x578bc5[_0x113dd4('0x2fa')]?_0x113dd4('0x16c2')+_0x578bc5[_0x113dd4('0x2fa')]+_0x113dd4('0x169e')+_0x578bc5[_0x113dd4('0x24df')]:_0x113dd4('0x14d5'),'msg':_0x578bc5['data']?JSON[_0x113dd4('0xa48')](_0x578bc5['data']['message']):_0x578bc5['message']||_0x578bc5[_0x113dd4('0x684')]()});});}function _0x16c5e2(){var _0x1e5252=_0x20ca00,_0x5f015c=angular[_0x1e5252('0x20a')](_0x5186c5['selectedSmsAccountSmsCannedAnswers']);return _0x5186c5[_0x1e5252('0x283b')]=[],_0x5f015c;}function _0x54081d(_0x36246c){var _0x4671c3=_0x20ca00,_0x4b0926=_0x386402[_0x4671c3('0x281e')]()[_0x4671c3('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsCannedAnswers?')[_0x4671c3('0x102e')](''+_0x5186c5['selectedSmsAccountSmsCannedAnswers']['length']+_0x4671c3('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4671c3('0x185'))[_0x4671c3('0x116d')](_0x36246c)['ok']('OK')[_0x4671c3('0x2030')](_0x4671c3('0x2410'));_0x386402[_0x4671c3('0x1e6d')](_0x4b0926)[_0x4671c3('0xaa5')](function(){var _0x48125a=_0x4671c3;_0x5186c5[_0x48125a('0x283b')]['forEach'](function(_0x35e832){_0x30ca2c(_0x35e832);}),_0x5186c5[_0x48125a('0x283b')]=[];});}var _0x7ee043=!![],_0x307404=0x1;_0x4c9f1a[_0x20ca00('0x1ccf')](_0x20ca00('0x74c'),function(_0x4c5452,_0x371d9a){var _0x15c270=_0x20ca00;_0x7ee043?_0x175c43(function(){_0x7ee043=![];}):(!_0x371d9a&&(_0x307404=_0x5186c5[_0x15c270('0x582')][_0x15c270('0x41')]),_0x4c5452!==_0x371d9a&&(_0x5186c5[_0x15c270('0x582')][_0x15c270('0x41')]=0x1),!_0x4c5452&&(_0x5186c5[_0x15c270('0x582')][_0x15c270('0x41')]=_0x307404),_0x5e3655());});}const _0x144e69=_0x108c49;_0x1ab291['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate','toasty',_0x1a8446('0x12c7'),_0x1a8446('0x22c9'),_0x1a8446('0x157'),'Auth','license','setting',_0x1a8446('0xada')];function _0x1ab291(_0x4cce1b,_0x437a79,_0x451180,_0x56e6eb,_0x3dfe7b,_0x293b25,_0x5176ef,_0xf5f242,_0xcca77d,_0xbf1af4,_0x1220a4,_0x587648,_0x556004,_0x3ac061){var _0x38a355=_0x1a8446,_0x5a3924=this;_0x5a3924[_0x38a355('0x7fc')]=_0x1220a4[_0x38a355('0xacc')](),_0x5a3924[_0x38a355('0x4c6')]=[],_0x5a3924[_0x38a355('0x143f')]=_0x556004,_0x5a3924[_0x38a355('0x1202')]=_0x587648,_0x5a3924['crudPermissions']=_0x3ac061,_0x5a3924[_0x38a355('0x9f0')]={},_0x5a3924['passwordPattern']=_0x5a3924[_0x38a355('0x143f')]&&_0x5a3924[_0x38a355('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5a3924[_0x38a355('0x110a')]=_0x38a355('0x1d12'),_0x5a3924[_0x38a355('0x22c9')]=angular[_0x38a355('0x20a')](_0xcca77d),_0x5a3924['smsCannedAnswers']=_0xf5f242,_0x5a3924[_0x38a355('0xc35')]=![];!_0x5a3924['smsCannedAnswer']&&(_0x5a3924['smsCannedAnswer']={},_0x5a3924[_0x38a355('0x110a')]=_0x38a355('0x18aa'),_0x5a3924[_0x38a355('0xc35')]=!![]);_0x437a79[_0x38a355('0x25cf')]['id']&&(_0x5a3924['smsCannedAnswer'][_0x38a355('0xaa0')]=_0x437a79[_0x38a355('0x25cf')]['id']);_0x5a3924[_0x38a355('0x17ff')]=_0x13c7eb,_0x5a3924['saveSmsCannedAnswer']=_0x164989,_0x5a3924[_0x38a355('0x2846')]=_0x45d142,_0x5a3924[_0x38a355('0xc09')]=_0x551a41,_0x5a3924[_0x38a355('0x2023')]=_0x4fb362;function _0x13c7eb(){var _0x24736d=_0x38a355;_0x5a3924[_0x24736d('0x4c6')]=[],_0xbf1af4[_0x24736d('0x1a53')][_0x24736d('0x242b')](_0x5a3924[_0x24736d('0x22c9')])[_0x24736d('0x1dc2')][_0x24736d('0xaa5')](function(_0x95883a){var _0x28c1e7=_0x24736d;_0x5a3924[_0x28c1e7('0x12c7')][_0x28c1e7('0x6ee')](_0x95883a[_0x28c1e7('0x256a')]()),_0x5176ef[_0x28c1e7('0xe10')]({'title':_0x28c1e7('0x4e2'),'msg':_0x5a3924[_0x28c1e7('0x22c9')][_0x28c1e7('0x25d6')]?_0x5a3924['smsCannedAnswer'][_0x28c1e7('0x25d6')]+_0x28c1e7('0xdca'):''}),_0x4fb362(_0x95883a);})['catch'](function(_0x7ef798){var _0x56697d=_0x24736d;if(_0x7ef798[_0x56697d('0x10fd')]&&_0x7ef798['data'][_0x56697d('0x4c6')]&&_0x7ef798['data'][_0x56697d('0x4c6')][_0x56697d('0x2587')]){_0x5a3924[_0x56697d('0x4c6')]=_0x7ef798['data']['errors']||[{'message':_0x7ef798[_0x56697d('0x684')](),'type':_0x56697d('0x262b')}];for(var _0x5438d9=0x0;_0x5438d9<_0x7ef798['data'][_0x56697d('0x4c6')][_0x56697d('0x2587')];_0x5438d9+=0x1){_0x5176ef['error']({'title':_0x7ef798[_0x56697d('0x10fd')][_0x56697d('0x4c6')][_0x5438d9][_0x56697d('0x6c8')],'msg':_0x7ef798['data'][_0x56697d('0x4c6')][_0x5438d9][_0x56697d('0x1402')]});}}else _0x5176ef[_0x56697d('0x187f')]({'title':_0x7ef798[_0x56697d('0x2fa')]?_0x56697d('0x16c2')+_0x7ef798['status']+'\x20-\x20'+_0x7ef798[_0x56697d('0x24df')]:'api.cannedAnswer.save','msg':_0x7ef798[_0x56697d('0x10fd')]?JSON[_0x56697d('0xa48')](_0x7ef798[_0x56697d('0x10fd')][_0x56697d('0x1402')]):_0x7ef798[_0x56697d('0x684')]()});});}function _0x164989(){var _0x339492=_0x38a355;_0x5a3924[_0x339492('0x4c6')]=[],_0xbf1af4['cannedAnswer'][_0x339492('0x264e')]({'id':_0x5a3924[_0x339492('0x22c9')]['id']},_0x5a3924[_0x339492('0x22c9')])[_0x339492('0x1dc2')]['then'](function(_0x23f90e){var _0x1f0fca=_0x339492,_0xee4e17=_0x51538b()[_0x1f0fca('0xe9e')](_0x5a3924[_0x1f0fca('0x12c7')],{'id':_0x23f90e['id']});_0xee4e17&&_0x51538b()[_0x1f0fca('0x283c')](_0xee4e17,_0x51538b()['pick'](_0x23f90e[_0x1f0fca('0x256a')](),_0x51538b()[_0x1f0fca('0x9f2')](_0xee4e17))),_0x5176ef[_0x1f0fca('0xe10')]({'title':_0x1f0fca('0x19ea'),'msg':_0x5a3924[_0x1f0fca('0x22c9')]['name']?_0x5a3924[_0x1f0fca('0x22c9')][_0x1f0fca('0x25d6')]+_0x1f0fca('0x20bf'):''}),_0x4fb362(_0x23f90e);})[_0x339492('0x253d')](function(_0xcb3ff9){var _0x2edcf5=_0x339492;if(_0xcb3ff9[_0x2edcf5('0x10fd')]&&_0xcb3ff9['data']['errors']&&_0xcb3ff9[_0x2edcf5('0x10fd')][_0x2edcf5('0x4c6')][_0x2edcf5('0x2587')]){_0x5a3924[_0x2edcf5('0x4c6')]=_0xcb3ff9[_0x2edcf5('0x10fd')][_0x2edcf5('0x4c6')]||[{'message':_0xcb3ff9[_0x2edcf5('0x684')](),'type':'api.cannedAnswer.update'}];for(var _0x5261b5=0x0;_0x5261b5<_0xcb3ff9[_0x2edcf5('0x10fd')][_0x2edcf5('0x4c6')]['length'];_0x5261b5++){_0x5176ef['error']({'title':_0xcb3ff9[_0x2edcf5('0x10fd')]['errors'][_0x5261b5][_0x2edcf5('0x6c8')],'msg':_0xcb3ff9[_0x2edcf5('0x10fd')]['errors'][_0x5261b5][_0x2edcf5('0x1402')]});}}else _0x5176ef[_0x2edcf5('0x187f')]({'title':_0xcb3ff9[_0x2edcf5('0x2fa')]?_0x2edcf5('0x16c2')+_0xcb3ff9[_0x2edcf5('0x2fa')]+_0x2edcf5('0x169e')+_0xcb3ff9[_0x2edcf5('0x24df')]:'api.cannedAnswer.update','msg':_0xcb3ff9[_0x2edcf5('0x10fd')]?JSON[_0x2edcf5('0xa48')](_0xcb3ff9[_0x2edcf5('0x10fd')][_0x2edcf5('0x1402')]):_0xcb3ff9[_0x2edcf5('0x684')]()});});}function _0x45d142(_0x570fb6){var _0x3ff893=_0x38a355;_0x5a3924[_0x3ff893('0x4c6')]=[];var _0x5ac55d=_0x56e6eb[_0x3ff893('0x281e')]()[_0x3ff893('0x110a')]('Are\x20you\x20sure?')[_0x3ff893('0x15af')](_0x3ff893('0x619'))[_0x3ff893('0x5b5')](_0x3ff893('0x1e11'))['ok']('Delete')['cancel'](_0x3ff893('0x9c6'))[_0x3ff893('0x116d')](_0x570fb6);_0x56e6eb['show'](_0x5ac55d)[_0x3ff893('0xaa5')](function(){var _0x25e903=_0x3ff893;_0xbf1af4[_0x25e903('0x1a53')][_0x25e903('0x926')]({'id':_0x5a3924[_0x25e903('0x22c9')]['id']})[_0x25e903('0x1dc2')]['then'](function(){var _0x53ef67=_0x25e903;_0x51538b()[_0x53ef67('0xf6d')](_0x5a3924['smsCannedAnswers'],{'id':_0x5a3924['smsCannedAnswer']['id']}),_0x5176ef[_0x53ef67('0xe10')]({'title':_0x53ef67('0x7d4'),'msg':(_0x5a3924[_0x53ef67('0x22c9')][_0x53ef67('0x25d6')]||_0x53ef67('0x22c9'))+_0x53ef67('0xcd9')}),_0x4fb362(_0x5a3924['smsCannedAnswer']);})[_0x25e903('0x253d')](function(_0x5234ec){var _0x1d3c8a=_0x25e903;if(_0x5234ec[_0x1d3c8a('0x10fd')]&&_0x5234ec[_0x1d3c8a('0x10fd')]['errors']&&_0x5234ec['data'][_0x1d3c8a('0x4c6')][_0x1d3c8a('0x2587')]){_0x5a3924[_0x1d3c8a('0x4c6')]=_0x5234ec[_0x1d3c8a('0x10fd')][_0x1d3c8a('0x4c6')]||[{'message':_0x5234ec['toString'](),'type':_0x1d3c8a('0xa2a')}];for(var _0x53192b=0x0;_0x53192b<_0x5234ec[_0x1d3c8a('0x10fd')][_0x1d3c8a('0x4c6')][_0x1d3c8a('0x2587')];_0x53192b++){_0x5176ef[_0x1d3c8a('0x187f')]({'title':_0x5234ec[_0x1d3c8a('0x10fd')][_0x1d3c8a('0x4c6')][_0x53192b][_0x1d3c8a('0x6c8')],'msg':_0x5234ec[_0x1d3c8a('0x10fd')][_0x1d3c8a('0x4c6')][_0x53192b][_0x1d3c8a('0x1402')]});}}else _0x5176ef[_0x1d3c8a('0x187f')]({'title':_0x5234ec['status']?_0x1d3c8a('0x16c2')+_0x5234ec[_0x1d3c8a('0x2fa')]+_0x1d3c8a('0x169e')+_0x5234ec[_0x1d3c8a('0x24df')]:_0x1d3c8a('0xa2a'),'msg':_0x5234ec[_0x1d3c8a('0x10fd')]?JSON[_0x1d3c8a('0xa48')](_0x5234ec[_0x1d3c8a('0x10fd')][_0x1d3c8a('0x1402')]):_0x5234ec[_0x1d3c8a('0x1402')]||_0x5234ec['toString']()});});},function(){});}function _0x551a41(_0xdb5276){return _0xdb5276===null?undefined:new Date(_0xdb5276);}function _0x4fb362(_0x4426ec){var _0x2d0aba=_0x38a355;_0x56e6eb[_0x2d0aba('0x1120')](_0x4426ec);}}const _0x1e98e2=_0x1ab291;_0x21f01f[_0x1a8446('0x1e33')]=['$scope','$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),'$translate',_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x21f01f(_0x2da6b0,_0x5598ca,_0x49732f,_0x68a7a6,_0x1940d8,_0x55c7e2,_0x405243,_0x26b75c,_0x416565,_0x13f48b,_0xd44a4d){var _0x241488=_0x1a8446,_0x38d4c1=this;_0x38d4c1['currentUser']=_0xd44a4d[_0x241488('0xacc')](),_0x38d4c1[_0x241488('0xa9')]={'count':0x0,'rows':[]},_0x38d4c1[_0x241488('0x3b5')]=[],_0x38d4c1[_0x241488('0xada')],_0x38d4c1[_0x241488('0x1c30')]={'first':_0x241488('0xee7'),'second':_0x241488('0x20e2'),'third':_0x241488('0x14f3')},_0x38d4c1[_0x241488('0x582')]={'fields':_0x241488('0x11a9'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x38d4c1[_0x241488('0x2e')]=_0x2c3cc9,_0x38d4c1[_0x241488('0x1416')]=_0x581473,_0x38d4c1[_0x241488('0xe10')]=_0x391c12,_0x38d4c1['getDispositions']=_0x5642ad,_0x38d4c1[_0x241488('0x707')]=_0x24cb03,_0x38d4c1[_0x241488('0xb52')]=_0xb04f46,_0x38d4c1[_0x241488('0xae4')]=_0x4cbb06,_0x38d4c1['deleteSelectedDispositions']=_0xb789e0,_0x38d4c1['deselectDispositions']=_0xa95c66,_0x38d4c1[_0x241488('0x11a1')]=_0x5f056e;function _0x2c3cc9(_0x18afe0,_0x291d4c){var _0x31acd4=_0x241488;_0x38d4c1[_0x31acd4('0x1658')]=_0x18afe0||{},_0x38d4c1['crudPermissions']=typeof _0x291d4c!==_0x31acd4('0x1574')?_0x291d4c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x38d4c1[_0x31acd4('0x582')]['SmsAccountId']=_0x38d4c1[_0x31acd4('0x1658')]['id'],_0x38d4c1['query']['id']=_0x38d4c1[_0x31acd4('0x1658')]['id'],_0x5642ad();}function _0x24cb03(_0x22e678,_0x43ca22){var _0x2acc75=_0x241488;_0x1940d8[_0x2acc75('0x1e6d')]({'controller':_0x2acc75('0xccf'),'controllerAs':'vm','templateUrl':_0x56dea9,'parent':angular[_0x2acc75('0x1aa8')](_0x55c7e2[_0x2acc75('0x54c')]),'targetEvent':_0x22e678,'clickOutsideToClose':!![],'locals':{'disposition':_0x43ca22,'dispositions':_0x38d4c1['dispositions']['rows'],'model':{'id':_0x38d4c1[_0x2acc75('0x1658')]['id'],'field':_0x2acc75('0xaa0')},'license':null,'setting':null,'crudPermissions':_0x38d4c1[_0x2acc75('0xada')]}})[_0x2acc75('0xaa5')](function(_0x2772d0){if(_0x2772d0)_0x5642ad();});}function _0x581473(_0x223f1b,_0x46836b){var _0x4a214b=_0x241488,_0x173ad0=_0x51538b()[_0x4a214b('0x2c2')](_0x38d4c1[_0x4a214b('0xa9')][_0x4a214b('0x580')],[_0x4a214b('0x2733'),_0x223f1b['id']]),_0x26c209=_0x1940d8[_0x4a214b('0x281e')]()[_0x4a214b('0x110a')](_0x26b75c[_0x4a214b('0x213f')](_0x4a214b('0x2498')))[_0x4a214b('0x15af')](_0x26b75c[_0x4a214b('0x213f')](_0x4a214b('0xbdf')+(_0x173ad0?_0x4a214b('0x1528'):_0x4a214b('0x20c8')),{'name':_0x223f1b[_0x4a214b('0x25d6')]}))[_0x4a214b('0x5b5')](_0x4a214b('0x1493'))[_0x4a214b('0x116d')](_0x46836b)['ok']('OK')[_0x4a214b('0x2030')](_0x26b75c[_0x4a214b('0x213f')](_0x4a214b('0x1dd8')));_0x1940d8[_0x4a214b('0x1e6d')](_0x26c209)[_0x4a214b('0xaa5')](function(){_0xb04f46(_0x223f1b);});}function _0x391c12(_0x47f7aa){var _0x1de002=_0x241488;_0x38d4c1[_0x1de002('0xa9')]=_0x47f7aa||{'count':0x0,'rows':[]};}function _0x5642ad(){var _0x2ffbd3=_0x241488;_0x38d4c1['query'][_0x2ffbd3('0x8b1')]=(_0x38d4c1['query'][_0x2ffbd3('0x41')]-0x1)*_0x38d4c1[_0x2ffbd3('0x582')][_0x2ffbd3('0xf4d')],_0x38d4c1[_0x2ffbd3('0x159a')]=_0x416565['smsAccount'][_0x2ffbd3('0x24b7')](_0x38d4c1['query'],_0x391c12)[_0x2ffbd3('0x1dc2')];}function _0xb04f46(_0x10ab77){var _0x27ef94=_0x241488;_0x416565[_0x27ef94('0x106e')][_0x27ef94('0x926')]({'id':_0x10ab77['id']})[_0x27ef94('0x1dc2')]['then'](function(){var _0x1c0b44=_0x27ef94;_0x5642ad(),_0x13f48b[_0x1c0b44('0xe10')]({'title':_0x26b75c[_0x1c0b44('0x213f')](_0x1c0b44('0x26dd'))});})[_0x27ef94('0x253d')](function(_0x10e563){var _0x457035=_0x27ef94;if(_0x10e563[_0x457035('0x10fd')]&&_0x10e563[_0x457035('0x10fd')]['errors']&&_0x10e563[_0x457035('0x10fd')]['errors'][_0x457035('0x2587')]){_0x38d4c1[_0x457035('0x4c6')]=_0x10e563[_0x457035('0x10fd')]['errors']||[{'message':_0x10e563[_0x457035('0x684')](),'type':_0x457035('0x28a')}];for(var _0x2e616d=0x0;_0x2e616d<_0x10e563[_0x457035('0x10fd')][_0x457035('0x4c6')]['length'];_0x2e616d++){_0x13f48b[_0x457035('0x187f')]({'title':_0x10e563[_0x457035('0x10fd')][_0x457035('0x4c6')][_0x2e616d]['type'],'msg':_0x10e563[_0x457035('0x10fd')][_0x457035('0x4c6')][_0x2e616d]['message']});}}else _0x13f48b[_0x457035('0x187f')]({'title':_0x10e563[_0x457035('0x2fa')]?_0x457035('0x16c2')+_0x10e563['status']+_0x457035('0x169e')+_0x10e563[_0x457035('0x24df')]:_0x457035('0x28a'),'msg':_0x10e563[_0x457035('0x10fd')]?JSON[_0x457035('0xa48')](_0x10e563['data'][_0x457035('0x1402')]):_0x10e563[_0x457035('0x1402')]||_0x10e563[_0x457035('0x684')]()});});}function _0x4cbb06(){var _0x4c31b2=_0x241488,_0x58d666=angular[_0x4c31b2('0x20a')](_0x38d4c1[_0x4c31b2('0x3b5')]);return _0x38d4c1[_0x4c31b2('0x3b5')]=[],_0x58d666;}function _0xb789e0(_0x3faba2){var _0x16f928=_0x241488,_0x5c43e0=_0x1940d8['confirm']()[_0x16f928('0x110a')](_0x26b75c[_0x16f928('0x213f')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x16f928('0x15af')](_0x26b75c['instant'](_0x16f928('0x8f7'),{'total':_0x38d4c1[_0x16f928('0x3b5')][_0x16f928('0x2587')]}))[_0x16f928('0x5b5')](_0x16f928('0x2803'))['targetEvent'](_0x3faba2)['ok']('OK')['cancel'](_0x26b75c[_0x16f928('0x213f')](_0x16f928('0x1dd8')));_0x1940d8['show'](_0x5c43e0)[_0x16f928('0xaa5')](function(){var _0x285e44=_0x16f928;_0x38d4c1[_0x285e44('0x3b5')][_0x285e44('0x15b5')](function(_0x19a97f){_0xb04f46(_0x19a97f);}),_0x38d4c1[_0x285e44('0x3b5')]=[];});}function _0xa95c66(){var _0x3b6b3d=_0x241488;_0x38d4c1[_0x3b6b3d('0x3b5')]=[];}function _0x5f056e(){var _0xbf0ade=_0x241488;_0x38d4c1[_0xbf0ade('0x3b5')]=_0x38d4c1[_0xbf0ade('0xa9')][_0xbf0ade('0x580')];}var _0x5c1048=!![],_0x2807e0=0x1;_0x2da6b0[_0x241488('0x1ccf')](_0x241488('0x74c'),function(_0x5aa47a,_0x20b4a5){var _0x37a472=_0x241488;_0x5c1048?_0x405243(function(){_0x5c1048=![];}):(!_0x20b4a5&&(_0x2807e0=_0x38d4c1['query']['page']),_0x5aa47a!==_0x20b4a5&&(_0x38d4c1[_0x37a472('0x582')][_0x37a472('0x41')]=0x1),!_0x5aa47a&&(_0x38d4c1['query'][_0x37a472('0x41')]=_0x2807e0),_0x5642ad());});}const _0x1da231=_0x21f01f,_0x27ca43=_0x4fb511['p']+_0x1a8446('0xc78');_0x2f4edb[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth','smsAccount',_0x1a8446('0x1a50')];function _0x2f4edb(_0x1a0dd0,_0x285fc4,_0x5c9d57,_0x48f828,_0xd39723,_0x5a5e0f,_0x2c74a3,_0x3917ce,_0x30d443,_0x323ca9,_0x58a8a6,_0x57d3a0){var _0x199054=_0x1a8446,_0x354f1f=this;_0x354f1f['currentUser']=_0x323ca9[_0x199054('0xacc')](),_0x354f1f[_0x199054('0x1202')]=_0x5a5e0f,_0x354f1f['setting']=_0x2c74a3,_0x354f1f[_0x199054('0x1d53')]=_0x354f1f[_0x199054('0x143f')][_0x199054('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x354f1f[_0x199054('0x18cc')]=_0x285fc4[_0x199054('0x1cc2')]()+_0x199054('0x356')+_0x285fc4[_0x199054('0x160c')](),_0x354f1f[_0x199054('0x1658')]=_0x58a8a6||_0x1a0dd0[_0x199054('0x25cf')][_0x199054('0x1658')]||{},_0x354f1f[_0x199054('0x1a50')]=_0x57d3a0&&_0x57d3a0[_0x199054('0xd15')]==0x1?_0x57d3a0['rows'][0x0]:null,_0x354f1f['crudPermissions']=_0x323ca9[_0x199054('0xffd')](_0x354f1f['userProfileSection']?_0x354f1f[_0x199054('0x1a50')]['crudPermissions']:null),_0x354f1f[_0x199054('0x9f0')]={},_0x354f1f[_0x199054('0xe5c')]=_0x1a0dd0[_0x199054('0x25cf')][_0x199054('0x25c2')]||0x0,_0x354f1f[_0x199054('0x16a5')]=_0x457eb2,_0x354f1f[_0x199054('0xc10')]=_0x30d443[_0x199054('0x3a1')],_0x354f1f[_0x199054('0x1d2b')]=_0xdc1078,_0x354f1f['saveSmsAccount']=_0x72c038,_0x323ca9[_0x199054('0x26e8')](_0x199054('0x178b'))?_0x3917ce['cmList']['get']({'fields':'id,name','sort':_0x199054('0x25d6')})[_0x199054('0x1dc2')]['then'](function(_0x4c710b){_0x354f1f['lists']=_0x4c710b['rows']||[];})[_0x199054('0x253d')](function(_0x2820b5){var _0x1f9a0f=_0x199054;_0x30d443[_0x1f9a0f('0x187f')]({'title':_0x2820b5[_0x1f9a0f('0x2fa')]?_0x1f9a0f('0x16c2')+_0x2820b5[_0x1f9a0f('0x2fa')]+_0x1f9a0f('0x169e')+_0x2820b5[_0x1f9a0f('0x24df')]:_0x1f9a0f('0x1adf'),'msg':_0x2820b5[_0x1f9a0f('0x10fd')]?JSON[_0x1f9a0f('0xa48')](_0x2820b5[_0x1f9a0f('0x10fd')]):_0x2820b5['toString']()});}):_0x3917ce[_0x199054('0x26b4')][_0x199054('0x2122')]({'fields':_0x199054('0x17fe'),'sort':_0x199054('0x25d6')})[_0x199054('0x1dc2')][_0x199054('0xaa5')](function(_0x3cfb9f){var _0x4c44a2=_0x199054;_0x354f1f['lists']=_0x3cfb9f[_0x4c44a2('0x580')]||[];})[_0x199054('0xaa5')](function(){var _0x16bcfd=_0x199054;return _0x3917ce[_0x16bcfd('0x1a50')]['get']({'userProfileId':_0x354f1f[_0x16bcfd('0x7fc')][_0x16bcfd('0x2168')],'sectionId':0x12d})[_0x16bcfd('0x1dc2')];})['then'](function(_0x4edbf9){var _0x550d43=_0x199054,_0xc532ec=_0x4edbf9&&_0x4edbf9[_0x550d43('0x580')]?_0x4edbf9[_0x550d43('0x580')][0x0]:null;if(!_0xc532ec){var _0x614fac=[],_0x2c5960=null;_0x354f1f[_0x550d43('0x1658')]&&(_0x2c5960=_0x51538b()[_0x550d43('0xe9e')](_0x354f1f['lists'],{'id':Number(_0x354f1f[_0x550d43('0x1658')]['ListId'])}));for(var _0xff70ee=0x0;_0xff70ee<_0x354f1f[_0x550d43('0x1126')][_0x550d43('0x2587')];_0xff70ee++){_0x2c5960&&_0x354f1f['lists'][_0xff70ee]['id']===_0x2c5960['id']&&(_0x354f1f['lists'][_0xff70ee][_0x550d43('0x12eb')]=![],_0x614fac[_0x550d43('0x1599')](_0x354f1f[_0x550d43('0x1126')][_0xff70ee]));}_0x354f1f['lists']=_0x614fac;}else{if(!_0xc532ec['autoAssociation'])return _0x3917ce[_0x550d43('0x249a')][_0x550d43('0x2122')]({'sectionId':_0xc532ec['id']})[_0x550d43('0x1dc2')][_0x550d43('0xaa5')](function(_0x2a98e9){var _0x2d4edf=_0x550d43,_0x25cb1f=_0x51538b()[_0x2d4edf('0x1246')](_0x2a98e9['rows'],function(_0x2c04cf){var _0x2c4c20=_0x2d4edf;return _0x51538b()[_0x2c4c20('0xe9e')](_0x354f1f['lists'],{'id':_0x2c04cf[_0x2c4c20('0xbcd')]});}),_0x3cdd62=null;_0x354f1f['smsAccount']&&(_0x3cdd62=_0x51538b()['find'](_0x354f1f['lists'],{'id':Number(_0x354f1f[_0x2d4edf('0x1658')][_0x2d4edf('0xee0')])}));if(_0x3cdd62&&!_0x51538b()[_0x2d4edf('0x2c2')](_0x25cb1f,['id',_0x3cdd62['id']])){var _0xea0868=_0x51538b()[_0x2d4edf('0xe9e')](_0x354f1f['lists'],{'id':_0x3cdd62['id']});_0xea0868[_0x2d4edf('0x12eb')]=![],_0x25cb1f[_0x2d4edf('0x1599')](_0xea0868);}_0x354f1f['lists']=_0x25cb1f;});}})[_0x199054('0x253d')](function(_0xca3cad){var _0x41c380=_0x199054;_0x30d443[_0x41c380('0x187f')]({'title':_0xca3cad[_0x41c380('0x2fa')]?_0x41c380('0x16c2')+_0xca3cad[_0x41c380('0x2fa')]+'\x20-\x20'+_0xca3cad['statusText']:'SYSTEM:GETlists','msg':_0xca3cad['data']?JSON[_0x41c380('0xa48')](_0xca3cad['data']):_0xca3cad[_0x41c380('0x684')]()});}),_0x323ca9['hasRole'](_0x199054('0x178b'))?_0x3917ce['pause']['get']({'fields':_0x199054('0xb22'),'sort':_0x199054('0x25d6'),'nolimit':_0x199054('0x1c5c')})[_0x199054('0x1dc2')]['then'](function(_0x740d0){var _0x22e506=_0x199054;_0x354f1f[_0x22e506('0x2457')]=_0x740d0[_0x22e506('0x580')]||[];})['catch'](function(_0x30a164){var _0x3ce818=_0x199054;_0x30d443[_0x3ce818('0x187f')]({'title':_0x30a164[_0x3ce818('0x2fa')]?_0x3ce818('0x16c2')+_0x30a164[_0x3ce818('0x2fa')]+'\x20-\x20'+_0x30a164[_0x3ce818('0x24df')]:_0x3ce818('0xc8'),'msg':_0x30a164[_0x3ce818('0x10fd')]?JSON[_0x3ce818('0xa48')](_0x30a164[_0x3ce818('0x10fd')]):_0x30a164[_0x3ce818('0x684')]()});}):_0x3917ce[_0x199054('0x167c')][_0x199054('0x2122')]({'fields':_0x199054('0xb22'),'sort':_0x199054('0x25d6'),'nolimit':'true'})[_0x199054('0x1dc2')][_0x199054('0xaa5')](function(_0x30be00){var _0x1041b3=_0x199054;_0x354f1f[_0x1041b3('0x2457')]=_0x30be00[_0x1041b3('0x580')]||[];})[_0x199054('0xaa5')](function(){var _0x39f056=_0x199054;return _0x3917ce['userProfileSection'][_0x39f056('0x2122')]({'userProfileId':_0x354f1f[_0x39f056('0x7fc')][_0x39f056('0x2168')],'sectionId':0x3ed})[_0x39f056('0x1dc2')];})[_0x199054('0xaa5')](function(_0x2ec7e7){var _0x50ff42=_0x199054,_0x190a1c=_0x2ec7e7&&_0x2ec7e7['rows']?_0x2ec7e7['rows'][0x0]:null;if(!_0x190a1c)_0x354f1f[_0x50ff42('0x2457')]=[];else{if(!_0x190a1c[_0x50ff42('0x26cc')])return _0x3917ce[_0x50ff42('0x249a')]['get']({'sectionId':_0x190a1c['id']})[_0x50ff42('0x1dc2')][_0x50ff42('0xaa5')](function(_0x16e124){var _0x12621c=_0x50ff42,_0x46eab6=_0x51538b()[_0x12621c('0x1246')](_0x16e124[_0x12621c('0x580')],function(_0x38ab1e){var _0x530828=_0x12621c;return _0x51538b()[_0x530828('0xe9e')](_0x354f1f[_0x530828('0x2457')],{'id':_0x38ab1e[_0x530828('0xbcd')]});});_0x354f1f[_0x12621c('0x2457')][_0x12621c('0x15b5')](function(_0x388423){var _0x217242=_0x12621c;!_0x51538b()[_0x217242('0x2c2')](_0x46eab6,['id',_0x388423['id']])&&(_0x388423[_0x217242('0x12eb')]=![]),_0x46eab6[_0x217242('0x1599')](_0x388423);}),_0x354f1f[_0x12621c('0x2457')]=_0x46eab6;});}})[_0x199054('0x253d')](function(_0x37c3a5){var _0x28b8dd=_0x199054;_0x30d443[_0x28b8dd('0x187f')]({'title':_0x37c3a5['status']?'API:'+_0x37c3a5[_0x28b8dd('0x2fa')]+_0x28b8dd('0x169e')+_0x37c3a5[_0x28b8dd('0x24df')]:_0x28b8dd('0xe71'),'msg':_0x37c3a5[_0x28b8dd('0x10fd')]?JSON[_0x28b8dd('0xa48')](_0x37c3a5[_0x28b8dd('0x10fd')]):_0x37c3a5[_0x28b8dd('0x684')]()});});function _0x457eb2(_0x2e30ba,_0x23d18d){var _0x446057=_0x199054;_0x5c9d57[_0x446057('0x1e6d')]({'controller':_0x446057('0xe6f'),'controllerAs':'vm','templateUrl':_0x27ca43,'parent':angular[_0x446057('0x1aa8')](_0x48f828[_0x446057('0x54c')]),'targetEvent':_0x23d18d,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x2e30ba,'smsAccounts':_0x354f1f[_0x446057('0x18a1')]?_0x354f1f[_0x446057('0x18a1')][_0x446057('0x580')]:[],'crudPermissions':_0x354f1f[_0x446057('0xada')],'realtime':![]}});}function _0xdc1078(){var _0x4b4dd1=_0x199054;_0x1a0dd0['go']('app.sms.smsAccounts',{},{'reload':_0x4b4dd1('0x27e7')});}function _0x72c038(){var _0x3340ef=_0x199054;_0x3917ce[_0x3340ef('0x1658')]['update']({'id':_0x354f1f[_0x3340ef('0x1658')]['id']},_0x354f1f[_0x3340ef('0x1658')])[_0x3340ef('0x1dc2')][_0x3340ef('0xaa5')](function(){var _0x530e9c=_0x3340ef;_0x30d443['success']({'title':_0x530e9c('0x5e1'),'msg':_0x354f1f[_0x530e9c('0x1658')]['name']?_0x354f1f[_0x530e9c('0x1658')][_0x530e9c('0x25d6')]+_0x530e9c('0x1734'):''});})[_0x3340ef('0x253d')](function(_0x4be700){var _0xab8093=_0x3340ef;_0x30d443[_0xab8093('0x187f')]({'title':_0x4be700['status']?'API:'+_0x4be700[_0xab8093('0x2fa')]+_0xab8093('0x169e')+_0x4be700[_0xab8093('0x24df')]:_0xab8093('0x14d5'),'msg':_0x4be700[_0xab8093('0x10fd')]?JSON['stringify'](_0x4be700[_0xab8093('0x10fd')]):_0x4be700[_0xab8093('0x684')]()});});}}const _0x2481db=_0x2f4edb,_0xf322cd=_0x4fb511['p']+_0x1a8446('0x1e4c');_0x527786[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),'$translate',_0x1a8446('0x18a1'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x527786(_0x2e7f82,_0x4313f2,_0x194d52,_0x45ccca,_0x1042f3,_0x2cbb68,_0x1a2e7e,_0x57c79e,_0x5e2760,_0x5a07bc,_0x11bc9c,_0x50cf14,_0x228696,_0x16e49e,_0x5a9af5,_0x19f46c,_0x5aff0e){var _0x470549=_0x1a8446,_0x72f5e1=this;_0x72f5e1[_0x470549('0x1202')]=_0x19f46c,_0x72f5e1['setting']=_0x5aff0e,_0x72f5e1[_0x470549('0x7fc')]=_0x5a9af5['getCurrentUser'](),_0x72f5e1[_0x470549('0x18a1')]=_0x5e2760||{'count':0x0,'rows':[]},_0x72f5e1['userProfile']=_0x5a07bc,_0x72f5e1[_0x470549('0x1a50')]=_0x11bc9c&&_0x11bc9c[_0x470549('0xd15')]==0x1?_0x11bc9c[_0x470549('0x580')][0x0]:null,_0x72f5e1[_0x470549('0xada')]=_0x5a9af5['parseCrudPermissions'](_0x72f5e1[_0x470549('0x1a50')]?_0x72f5e1[_0x470549('0x1a50')][_0x470549('0xada')]:null),_0x72f5e1[_0x470549('0x12b6')]=_0x470549('0x18a1'),_0x72f5e1[_0x470549('0x164')]='',_0x72f5e1[_0x470549('0x8cc')]=null,_0x72f5e1[_0x470549('0x2138')]=[],_0x72f5e1[_0x470549('0x582')]={'fields':_0x470549('0x1f23'),'sort':_0x470549('0xd82'),'limit':0xa,'page':0x1},_0x72f5e1['arraytype']=_0x51538b()[_0x470549('0x184a')]([{'option':_0x470549('0x231b'),'value':_0x470549('0x1617')},{'option':_0x470549('0x5'),'value':_0x470549('0x1056')},{'option':_0x470549('0x527'),'value':_0x470549('0xf9b')},{'option':_0x470549('0x1377'),'value':_0x470549('0x7b3')},{'option':'Plivo','value':'\x27plivo\x27'},{'option':_0x470549('0x50f'),'value':'\x27infobip\x27'},{'option':'Clickatell','value':_0x470549('0x218a')},{'option':_0x470549('0x1e6a'),'value':_0x470549('0x1c0b')},{'option':_0x470549('0x218f'),'value':_0x470549('0x1f05')}],function(_0xe77de0){var _0x334496=_0x470549;return _0x51538b()[_0x334496('0x170d')](_0xe77de0[_0x334496('0x12f4')],new RegExp('\x27','g'),'');}),_0x72f5e1[_0x470549('0x259e')]=_0x51538b()[_0x470549('0x184a')]([{'option':_0x470549('0x1496'),'value':_0x470549('0x2131')},{'option':_0x470549('0x19c'),'value':_0x470549('0x680')},{'option':_0x470549('0x461'),'value':'\x27GP\x27'}],function(_0x5e696e){var _0x5040b1=_0x470549;return _0x51538b()[_0x5040b1('0x170d')](_0x5e696e[_0x5040b1('0x12f4')],new RegExp('\x27','g'),'');}),_0x72f5e1['editstate']=_0x318d67,_0x72f5e1[_0x470549('0x2500')]=_0x2fc257,_0x72f5e1[_0x470549('0x16a5')]=_0x31d5f7,_0x72f5e1['deleteconfirm']=_0x5ea074,_0x72f5e1[_0x470549('0xe10')]=_0x4c74f8,_0x72f5e1[_0x470549('0x2741')]=_0x511ece,_0x72f5e1[_0x470549('0x1ac3')]=_0x452d7f,_0x72f5e1['deleteSmsAccount']=_0x16ba53,_0x72f5e1[_0x470549('0x235f')]=_0x145870,_0x72f5e1['deleteSelectedSmsAccounts']=_0x1f75db,_0x72f5e1['deselectSmsAccounts']=_0x4c9749,_0x72f5e1[_0x470549('0x16ac')]=_0x547b8c,_0x5a9af5[_0x470549('0x26e8')]('admin')?_0x50cf14[_0x470549('0x26b4')][_0x470549('0x2122')]({'fields':_0x470549('0x17fe'),'sort':_0x470549('0x25d6')})[_0x470549('0x1dc2')]['then'](function(_0x305030){var _0x1562fc=_0x470549;_0x72f5e1[_0x1562fc('0x1126')]=_0x305030[_0x1562fc('0x580')]||[];})[_0x470549('0x253d')](function(_0xbf7f7){var _0x128b0f=_0x470549;_0x16e49e[_0x128b0f('0x187f')]({'title':_0xbf7f7[_0x128b0f('0x2fa')]?_0x128b0f('0x16c2')+_0xbf7f7[_0x128b0f('0x2fa')]+'\x20-\x20'+_0xbf7f7['statusText']:'SYSTEM:GET_LISTS','msg':_0xbf7f7[_0x128b0f('0x10fd')]?JSON[_0x128b0f('0xa48')](_0xbf7f7[_0x128b0f('0x10fd')]):_0xbf7f7[_0x128b0f('0x684')]()});}):_0x50cf14[_0x470549('0x26b4')][_0x470549('0x2122')]({'fields':_0x470549('0x17fe'),'sort':_0x470549('0x25d6')})[_0x470549('0x1dc2')][_0x470549('0xaa5')](function(_0x35021d){var _0x558deb=_0x470549;_0x72f5e1[_0x558deb('0x1126')]=_0x35021d['rows']||[];})[_0x470549('0xaa5')](function(){var _0x47b92c=_0x470549;return _0x50cf14[_0x47b92c('0x1a50')][_0x47b92c('0x2122')]({'userProfileId':_0x72f5e1[_0x47b92c('0x7fc')][_0x47b92c('0x2168')],'sectionId':0x12d})[_0x47b92c('0x1dc2')];})['then'](function(_0x108949){var _0x1cac4e=_0x470549,_0xdb1321=_0x108949&&_0x108949[_0x1cac4e('0x580')]?_0x108949[_0x1cac4e('0x580')][0x0]:null;if(!_0xdb1321){var _0x1d4bba=[],_0x25fe93=null;_0x72f5e1[_0x1cac4e('0x1658')]&&(_0x25fe93=_0x51538b()[_0x1cac4e('0xe9e')](_0x72f5e1[_0x1cac4e('0x1126')],{'id':Number(_0x72f5e1[_0x1cac4e('0x1658')][_0x1cac4e('0xee0')])}));for(var _0x375b72=0x0;_0x375b72<_0x72f5e1[_0x1cac4e('0x1126')][_0x1cac4e('0x2587')];_0x375b72++){_0x25fe93&&_0x72f5e1[_0x1cac4e('0x1126')][_0x375b72]['id']===_0x25fe93['id']&&(_0x72f5e1[_0x1cac4e('0x1126')][_0x375b72][_0x1cac4e('0x12eb')]=![],_0x1d4bba['push'](_0x72f5e1['lists'][_0x375b72]));}_0x72f5e1['lists']=_0x1d4bba;}else{if(!_0xdb1321[_0x1cac4e('0x26cc')])return _0x50cf14[_0x1cac4e('0x249a')][_0x1cac4e('0x2122')]({'sectionId':_0xdb1321['id']})[_0x1cac4e('0x1dc2')][_0x1cac4e('0xaa5')](function(_0x1c9527){var _0x1a618e=_0x1cac4e,_0x4d6dae=_0x51538b()['map'](_0x1c9527[_0x1a618e('0x580')],function(_0xfd48cc){var _0x3b8e3b=_0x1a618e;return _0x51538b()[_0x3b8e3b('0xe9e')](_0x72f5e1[_0x3b8e3b('0x1126')],{'id':_0xfd48cc[_0x3b8e3b('0xbcd')]});}),_0x55fefb=null;_0x72f5e1['smsAccount']&&(_0x55fefb=_0x51538b()[_0x1a618e('0xe9e')](_0x72f5e1[_0x1a618e('0x1126')],{'id':Number(_0x72f5e1[_0x1a618e('0x1658')][_0x1a618e('0xee0')])}));if(_0x55fefb&&!_0x51538b()['some'](_0x4d6dae,['id',_0x55fefb['id']])){var _0x4e54ba=_0x51538b()[_0x1a618e('0xe9e')](_0x72f5e1['lists'],{'id':_0x55fefb['id']});_0x4e54ba['canSelect']=![],_0x4d6dae[_0x1a618e('0x1599')](_0x4e54ba);}_0x72f5e1[_0x1a618e('0x1126')]=_0x4d6dae;});}})[_0x470549('0x253d')](function(_0x34f16a){var _0x1bb688=_0x470549;_0x16e49e[_0x1bb688('0x187f')]({'title':_0x34f16a[_0x1bb688('0x2fa')]?_0x1bb688('0x16c2')+_0x34f16a['status']+'\x20-\x20'+_0x34f16a[_0x1bb688('0x24df')]:_0x1bb688('0x177f'),'msg':_0x34f16a[_0x1bb688('0x10fd')]?JSON['stringify'](_0x34f16a[_0x1bb688('0x10fd')]):_0x34f16a[_0x1bb688('0x684')]()});});function _0x318d67(_0x247abf){var _0x1bd218=_0x470549;_0x194d52['go'](_0x1bd218('0x20ea'),{'id':_0x247abf['id'],'smsAccount':_0x247abf,'crudPermissions':_0x72f5e1[_0x1bd218('0xada')]});}function _0x2fc257(_0x9095ad){var _0x2d930e=_0x470549;_0x194d52['go'](_0x2d930e('0x20ea'),{'id':_0x9095ad['id'],'tab':0x5});}function _0x31d5f7(_0x4f535a,_0x50639a){var _0x50cee5=_0x470549;_0x1042f3[_0x50cee5('0x1e6d')]({'controller':_0x50cee5('0xe6f'),'controllerAs':'vm','templateUrl':_0x27ca43,'parent':angular['element'](_0x2cbb68[_0x50cee5('0x54c')]),'targetEvent':_0x50639a,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x4f535a,'smsAccounts':_0x72f5e1[_0x50cee5('0x18a1')]?_0x72f5e1[_0x50cee5('0x18a1')][_0x50cee5('0x580')]:[],'crudPermissions':_0x72f5e1[_0x50cee5('0xada')],'realtime':![]}});}function _0x5ea074(_0x1c9b04,_0x3cc1bf){var _0xf9b5f0=_0x470549,_0x3ab2f4=_0x1042f3[_0xf9b5f0('0x281e')]()['title'](_0xf9b5f0('0x88d')+_0x51538b()['startCase'](_0xf9b5f0('0x1658'))+'?')['htmlContent'](''+(_0x1c9b04['name']||_0xf9b5f0('0x1658'))+_0xf9b5f0('0x697')+_0xf9b5f0('0x210d'))[_0xf9b5f0('0x5b5')](_0xf9b5f0('0x2035'))[_0xf9b5f0('0x116d')](_0x3cc1bf)['ok']('OK')[_0xf9b5f0('0x2030')]('CANCEL');_0x1042f3['show'](_0x3ab2f4)[_0xf9b5f0('0xaa5')](function(){_0x16ba53(_0x1c9b04);},function(){var _0x4b90bb=_0xf9b5f0;console[_0x4b90bb('0x18d5')](_0x4b90bb('0x2410'));});}var _0x35208b=!![],_0x11a7d7=0x1;_0x2e7f82[_0x470549('0x1ccf')]('vm.query.filter',function(_0x338df2,_0x2e589b){var _0x4cb867=_0x470549;_0x35208b?_0x1a2e7e(function(){_0x35208b=![];}):(!_0x2e589b&&(_0x11a7d7=_0x72f5e1[_0x4cb867('0x582')]['page']),_0x338df2!==_0x2e589b&&(_0x72f5e1[_0x4cb867('0x582')][_0x4cb867('0x41')]=0x1),!_0x338df2&&(_0x72f5e1[_0x4cb867('0x582')][_0x4cb867('0x41')]=_0x11a7d7),_0x72f5e1[_0x4cb867('0x2741')]());});function _0x4c74f8(_0x45f9bb){var _0x543074=_0x470549;_0x72f5e1[_0x543074('0x18a1')]=_0x45f9bb||{'count':0x0,'rows':[]};}function _0x511ece(){var _0x46d975=_0x470549;_0x72f5e1[_0x46d975('0x582')][_0x46d975('0x8b1')]=(_0x72f5e1[_0x46d975('0x582')][_0x46d975('0x41')]-0x1)*_0x72f5e1[_0x46d975('0x582')][_0x46d975('0xf4d')],_0x5a9af5[_0x46d975('0x26e8')]('admin')?_0x72f5e1[_0x46d975('0x159a')]=_0x50cf14[_0x46d975('0x1658')][_0x46d975('0x2122')](_0x72f5e1[_0x46d975('0x582')],_0x4c74f8)[_0x46d975('0x1dc2')]:(_0x72f5e1[_0x46d975('0x582')]['id']=_0x72f5e1[_0x46d975('0x1e97')]['id'],_0x72f5e1[_0x46d975('0x582')][_0x46d975('0x224d')]=_0x46d975('0x10d9'),_0x72f5e1[_0x46d975('0x159a')]=_0x50cf14['userProfile']['getResources'](_0x72f5e1[_0x46d975('0x582')],_0x4c74f8)[_0x46d975('0x1dc2')]);}function _0x452d7f(_0x1782f8,_0x4a39d2){var _0x59f6e0=_0x470549;_0x1042f3[_0x59f6e0('0x1e6d')]({'controller':'CreateOrEditSmsAccountDialogController','controllerAs':'vm','templateUrl':_0xf322cd,'parent':angular['element'](_0x2cbb68['body']),'targetEvent':_0x1782f8,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x4a39d2,'smsAccounts':_0x72f5e1[_0x59f6e0('0x18a1')][_0x59f6e0('0x580')],'license':_0x72f5e1['license'],'setting':_0x72f5e1[_0x59f6e0('0x143f')],'crudPermissions':_0x72f5e1[_0x59f6e0('0xada')]}});}function _0x16ba53(_0x143f26){var _0x10d13f=_0x470549;_0x50cf14[_0x10d13f('0x1658')]['delete']({'id':_0x143f26['id']})[_0x10d13f('0x1dc2')][_0x10d13f('0xaa5')](function(){var _0xba372c=_0x10d13f;_0x51538b()['remove'](_0x72f5e1[_0xba372c('0x18a1')][_0xba372c('0x580')],{'id':_0x143f26['id']}),_0x72f5e1[_0xba372c('0x18a1')][_0xba372c('0xd15')]-=0x1,!_0x72f5e1[_0xba372c('0x18a1')][_0xba372c('0x580')][_0xba372c('0x2587')]&&_0x72f5e1[_0xba372c('0x2741')](),_0x16e49e[_0xba372c('0xe10')]({'title':_0x51538b()[_0xba372c('0x196a')]('SmsAccount')+_0xba372c('0x8bb'),'msg':_0x143f26[_0xba372c('0x25d6')]?_0x143f26[_0xba372c('0x25d6')]+_0xba372c('0xcd9'):''});})[_0x10d13f('0x253d')](function(_0x299f15){var _0x17c7c3=_0x10d13f;if(_0x299f15[_0x17c7c3('0x10fd')]&&_0x299f15['data']['errors']&&_0x299f15[_0x17c7c3('0x10fd')][_0x17c7c3('0x4c6')]['length']){_0x72f5e1[_0x17c7c3('0x4c6')]=_0x299f15[_0x17c7c3('0x10fd')][_0x17c7c3('0x4c6')]||[{'message':_0x299f15[_0x17c7c3('0x684')](),'type':'SYSTEM:DELETEsmsAccount'}];for(var _0x196741=0x0;_0x196741<_0x299f15['data'][_0x17c7c3('0x4c6')]['length'];_0x196741++){_0x16e49e[_0x17c7c3('0x187f')]({'title':_0x299f15[_0x17c7c3('0x10fd')][_0x17c7c3('0x4c6')][_0x196741][_0x17c7c3('0x6c8')],'msg':_0x299f15[_0x17c7c3('0x10fd')][_0x17c7c3('0x4c6')][_0x196741][_0x17c7c3('0x1402')]});}}else _0x16e49e[_0x17c7c3('0x187f')]({'title':_0x299f15['status']?_0x17c7c3('0x16c2')+_0x299f15[_0x17c7c3('0x2fa')]+_0x17c7c3('0x169e')+_0x299f15['statusText']:_0x17c7c3('0x22e2'),'msg':_0x299f15[_0x17c7c3('0x10fd')]?JSON[_0x17c7c3('0xa48')](_0x299f15[_0x17c7c3('0x10fd')][_0x17c7c3('0x1402')]):_0x299f15[_0x17c7c3('0x1402')]||_0x299f15[_0x17c7c3('0x684')]()});});}function _0x145870(){var _0x145e61=_0x470549,_0x588839=angular[_0x145e61('0x20a')](_0x72f5e1['selectedSmsAccounts']);return _0x72f5e1['selectedSmsAccounts']=[],_0x588839;}function _0x1f75db(_0x32adff){var _0x545e2f=_0x470549,_0x380fed=_0x1042f3[_0x545e2f('0x281e')]()[_0x545e2f('0x110a')](_0x545e2f('0x204e'))[_0x545e2f('0x102e')](_0x545e2f('0x389')+_0x72f5e1[_0x545e2f('0x2138')][_0x545e2f('0x2587')]+_0x545e2f('0x1443')+_0x545e2f('0x210d'))[_0x545e2f('0x5b5')]('delete\x20SmsAccounts')[_0x545e2f('0x116d')](_0x32adff)['ok']('OK')[_0x545e2f('0x2030')](_0x545e2f('0x2410'));_0x1042f3[_0x545e2f('0x1e6d')](_0x380fed)[_0x545e2f('0xaa5')](function(){var _0x29d72b=_0x545e2f;_0x72f5e1['selectedSmsAccounts']['forEach'](function(_0x25856f){_0x16ba53(_0x25856f);}),_0x72f5e1[_0x29d72b('0x2138')]=[];});}function _0x4c9749(){var _0x35d186=_0x470549;_0x72f5e1[_0x35d186('0x2138')]=[];}function _0x547b8c(){var _0x537385=_0x470549;_0x72f5e1[_0x537385('0x2138')]=_0x72f5e1['smsAccounts'][_0x537385('0x580')];}}const _0x225703=_0x527786;_0x91567f['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'smsQueues','smsQueue',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),'crudPermissions'];function _0x91567f(_0x13dacb,_0x4a8591,_0x11abe1,_0xd71fef,_0x584393,_0x5c32d9,_0x5a015b,_0x2a60db,_0x4a943b,_0x1a577c,_0xf81b98,_0x4f59c0,_0x82b0f2,_0xe0a307){var _0x3477bc=_0x1a8446,_0x3792f9=this;_0x3792f9[_0x3477bc('0x7fc')]=_0xf81b98[_0x3477bc('0xacc')](),_0x3792f9[_0x3477bc('0x4c6')]=[],_0x3792f9[_0x3477bc('0x143f')]=_0x82b0f2,_0x3792f9[_0x3477bc('0x1202')]=_0x4f59c0,_0x3792f9[_0x3477bc('0xada')]=_0xe0a307,_0x3792f9[_0x3477bc('0x9f0')]={},_0x3792f9[_0x3477bc('0x1d53')]=_0x3792f9[_0x3477bc('0x143f')]&&_0x3792f9['setting'][_0x3477bc('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3792f9[_0x3477bc('0x110a')]='SMS.EDIT_SMSQUEUE',_0x3792f9['smsQueue']=angular[_0x3477bc('0x20a')](_0x4a943b),_0x3792f9[_0x3477bc('0x145')]=_0x2a60db,_0x3792f9[_0x3477bc('0x1fb9')]=![];!_0x3792f9['smsQueue']&&(_0x3792f9['smsQueue']={'strategy':'beepall','timeout':0xa},_0x3792f9[_0x3477bc('0x110a')]=_0x3477bc('0xd0a'),_0x3792f9[_0x3477bc('0x1fb9')]=!![]);_0x3792f9[_0x3477bc('0x264d')]=_0xd2242,_0x3792f9['saveSmsQueue']=_0x4e27b9,_0x3792f9[_0x3477bc('0x22b7')]=_0x3825b6,_0x3792f9[_0x3477bc('0xc09')]=_0x3b17f0,_0x3792f9[_0x3477bc('0x2023')]=_0xd839a2;function _0xd2242(){var _0x807b2c=_0x3477bc;_0x3792f9[_0x807b2c('0x4c6')]=[],_0x1a577c[_0x807b2c('0x14a6')]['save'](_0x3792f9[_0x807b2c('0x14a6')])['$promise'][_0x807b2c('0xaa5')](function(_0x2a1a35){var _0x411723=_0x807b2c;_0x3792f9['smsQueues']['unshift'](_0x2a1a35[_0x411723('0x256a')]()),_0x5a015b[_0x411723('0xe10')]({'title':_0x411723('0xe80'),'msg':_0x3792f9[_0x411723('0x14a6')][_0x411723('0x25d6')]?_0x3792f9[_0x411723('0x14a6')]['name']+_0x411723('0xdca'):''}),_0xd839a2(_0x2a1a35);})[_0x807b2c('0x253d')](function(_0xd119e){var _0x3084eb=_0x807b2c;if(_0xd119e[_0x3084eb('0x10fd')]&&_0xd119e[_0x3084eb('0x10fd')][_0x3084eb('0x4c6')]&&_0xd119e[_0x3084eb('0x10fd')][_0x3084eb('0x4c6')][_0x3084eb('0x2587')]){_0x3792f9[_0x3084eb('0x4c6')]=_0xd119e[_0x3084eb('0x10fd')][_0x3084eb('0x4c6')]||[{'message':_0xd119e['toString'](),'type':'api.smsQueue.save'}];for(var _0x4c04ff=0x0;_0x4c04ff<_0xd119e[_0x3084eb('0x10fd')][_0x3084eb('0x4c6')][_0x3084eb('0x2587')];_0x4c04ff+=0x1){_0x5a015b['error']({'title':_0xd119e[_0x3084eb('0x10fd')][_0x3084eb('0x4c6')][_0x4c04ff][_0x3084eb('0x6c8')],'msg':_0xd119e['data'][_0x3084eb('0x4c6')][_0x4c04ff][_0x3084eb('0x1402')]});}}else _0x5a015b[_0x3084eb('0x187f')]({'title':_0xd119e['status']?_0x3084eb('0x16c2')+_0xd119e['status']+_0x3084eb('0x169e')+_0xd119e[_0x3084eb('0x24df')]:_0x3084eb('0x24de'),'msg':_0xd119e['data']?JSON[_0x3084eb('0xa48')](_0xd119e[_0x3084eb('0x10fd')][_0x3084eb('0x1402')]):_0xd119e[_0x3084eb('0x684')]()});});}function _0x4e27b9(){var _0x3f2e30=_0x3477bc;_0x3792f9['errors']=[],_0x1a577c[_0x3f2e30('0x14a6')][_0x3f2e30('0x264e')]({'id':_0x3792f9[_0x3f2e30('0x14a6')]['id']},_0x3792f9[_0x3f2e30('0x14a6')])[_0x3f2e30('0x1dc2')][_0x3f2e30('0xaa5')](function(_0x4be613){var _0x4346ca=_0x3f2e30,_0x37c8cc=_0x51538b()[_0x4346ca('0xe9e')](_0x3792f9['smsQueues'],{'id':_0x4be613['id']});_0x37c8cc&&_0x51538b()[_0x4346ca('0x283c')](_0x37c8cc,_0x51538b()[_0x4346ca('0x104e')](_0x4be613[_0x4346ca('0x256a')](),_0x51538b()['keys'](_0x37c8cc))),_0x5a015b[_0x4346ca('0xe10')]({'title':_0x4346ca('0x26ef'),'msg':_0x3792f9[_0x4346ca('0x14a6')][_0x4346ca('0x25d6')]?_0x3792f9[_0x4346ca('0x14a6')][_0x4346ca('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0xd839a2(_0x4be613);})['catch'](function(_0x2e8546){var _0x314cd6=_0x3f2e30;if(_0x2e8546[_0x314cd6('0x10fd')]&&_0x2e8546[_0x314cd6('0x10fd')][_0x314cd6('0x4c6')]&&_0x2e8546[_0x314cd6('0x10fd')][_0x314cd6('0x4c6')][_0x314cd6('0x2587')]){_0x3792f9[_0x314cd6('0x4c6')]=_0x2e8546['data']['errors']||[{'message':_0x2e8546['toString'](),'type':_0x314cd6('0x1d63')}];for(var _0x4f9f3f=0x0;_0x4f9f3f<_0x2e8546[_0x314cd6('0x10fd')][_0x314cd6('0x4c6')][_0x314cd6('0x2587')];_0x4f9f3f++){_0x5a015b[_0x314cd6('0x187f')]({'title':_0x2e8546['data'][_0x314cd6('0x4c6')][_0x4f9f3f][_0x314cd6('0x6c8')],'msg':_0x2e8546[_0x314cd6('0x10fd')][_0x314cd6('0x4c6')][_0x4f9f3f][_0x314cd6('0x1402')]});}}else _0x5a015b[_0x314cd6('0x187f')]({'title':_0x2e8546[_0x314cd6('0x2fa')]?_0x314cd6('0x16c2')+_0x2e8546[_0x314cd6('0x2fa')]+_0x314cd6('0x169e')+_0x2e8546[_0x314cd6('0x24df')]:_0x314cd6('0x1d63'),'msg':_0x2e8546[_0x314cd6('0x10fd')]?JSON['stringify'](_0x2e8546['data'][_0x314cd6('0x1402')]):_0x2e8546[_0x314cd6('0x684')]()});});}function _0x3825b6(_0x1e6454){var _0x33c875=_0x3477bc;_0x3792f9[_0x33c875('0x4c6')]=[];var _0x44f334=_0xd71fef['confirm']()[_0x33c875('0x110a')](_0x33c875('0x12a3'))['content'](_0x33c875('0x1fb0'))[_0x33c875('0x5b5')]('Delete\x20SmsQueue')['ok'](_0x33c875('0x1e76'))[_0x33c875('0x2030')](_0x33c875('0x9c6'))['targetEvent'](_0x1e6454);_0xd71fef[_0x33c875('0x1e6d')](_0x44f334)['then'](function(){var _0x486a81=_0x33c875;_0x1a577c[_0x486a81('0x14a6')][_0x486a81('0x926')]({'id':_0x3792f9[_0x486a81('0x14a6')]['id']})[_0x486a81('0x1dc2')]['then'](function(){var _0x3df199=_0x486a81;_0x51538b()[_0x3df199('0xf6d')](_0x3792f9[_0x3df199('0x145')],{'id':_0x3792f9[_0x3df199('0x14a6')]['id']}),_0x5a015b[_0x3df199('0xe10')]({'title':_0x3df199('0xd1c'),'msg':(_0x3792f9[_0x3df199('0x14a6')][_0x3df199('0x25d6')]||'smsQueue')+_0x3df199('0xcd9')}),_0xd839a2(_0x3792f9[_0x3df199('0x14a6')]);})[_0x486a81('0x253d')](function(_0x58739a){var _0x116d82=_0x486a81;if(_0x58739a[_0x116d82('0x10fd')]&&_0x58739a[_0x116d82('0x10fd')]['errors']&&_0x58739a[_0x116d82('0x10fd')][_0x116d82('0x4c6')]['length']){_0x3792f9[_0x116d82('0x4c6')]=_0x58739a['data'][_0x116d82('0x4c6')]||[{'message':_0x58739a['toString'](),'type':_0x116d82('0xc12')}];for(var _0x2ec4ae=0x0;_0x2ec4ae<_0x58739a[_0x116d82('0x10fd')]['errors']['length'];_0x2ec4ae++){_0x5a015b['error']({'title':_0x58739a[_0x116d82('0x10fd')][_0x116d82('0x4c6')][_0x2ec4ae][_0x116d82('0x6c8')],'msg':_0x58739a[_0x116d82('0x10fd')]['errors'][_0x2ec4ae]['message']});}}else _0x5a015b[_0x116d82('0x187f')]({'title':_0x58739a[_0x116d82('0x2fa')]?_0x116d82('0x16c2')+_0x58739a[_0x116d82('0x2fa')]+_0x116d82('0x169e')+_0x58739a[_0x116d82('0x24df')]:'api.smsQueue.delete','msg':_0x58739a[_0x116d82('0x10fd')]?JSON[_0x116d82('0xa48')](_0x58739a[_0x116d82('0x10fd')]['message']):_0x58739a[_0x116d82('0x1402')]||_0x58739a[_0x116d82('0x684')]()});});},function(){});}function _0x3b17f0(_0x1ad485){return _0x1ad485===null?undefined:new Date(_0x1ad485);}function _0xd839a2(_0x33bbd0){var _0x578157=_0x3477bc;_0xd71fef[_0x578157('0x1120')](_0x33bbd0);}}const _0x5155bd=_0x91567f;_0x3ec5a6['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x14a6'),_0x1a8446('0x145'),_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),'Auth',_0x1a8446('0xada')];function _0x3ec5a6(_0x53689d,_0x3b2737,_0x11796d,_0x336b42,_0x1a2a49,_0x3ff65e,_0x1112e9,_0x48c51c,_0x437e85,_0x2acc87){var _0x3b27c9=_0x1a8446,_0xace92a=this;_0xace92a[_0x3b27c9('0x7fc')]=_0x437e85[_0x3b27c9('0xacc')](),_0xace92a[_0x3b27c9('0x14a6')]=_0x1a2a49,_0xace92a['crudPermissions']=_0x2acc87,_0xace92a[_0x3b27c9('0x4f3')]=_0x1112e9,_0xace92a[_0x3b27c9('0x1a30')]=[],_0xace92a[_0x3b27c9('0x11b9')]=[],_0xace92a[_0x3b27c9('0xbf7')]=[],_0xace92a[_0x3b27c9('0x215b')]=[],_0xace92a[_0x3b27c9('0x214a')]=[],_0xace92a[_0x3b27c9('0xc54')]=![],_0xace92a['onInit']=_0x3972cf,_0xace92a['saveAgents']=_0x5eaaca,_0xace92a['closeDialog']=_0x2a84a1,_0xace92a[_0x3b27c9('0x1c23')]={'readOnly':!_0xace92a[_0x3b27c9('0xada')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x3b27c9('0x18e5'),'line2':[_0x3b27c9('0x25d6'),_0x3b27c9('0x1b0d')],'line3':'','labelAll':_0x48c51c[_0x3b27c9('0x213f')](_0x3b27c9('0x1f00')),'labelSelected':_0x48c51c['instant'](_0x3b27c9('0x2142')),'transferCallback':function _0x2a9f16(){var _0x4bde94=_0x3b27c9,_0x3f8d6a=_0x51538b()[_0x4bde94('0x9ef')](_0xace92a[_0x4bde94('0x214a')],_0xace92a['selectedItems'],'id');_0xace92a[_0x4bde94('0xc54')]=_0x51538b()['isEmpty'](_0x3f8d6a)?![]:!![];}};function _0x3972cf(){var _0x5ad3f4=_0x3b27c9;return _0x437e85[_0x5ad3f4('0x26e8')](_0x5ad3f4('0x178b'))?_0x2f804c()[_0x5ad3f4('0x253d')](function(_0x251b19){var _0x4ecf93=_0x5ad3f4;_0x11796d[_0x4ecf93('0x187f')]({'title':_0x251b19[_0x4ecf93('0x2fa')]?_0x4ecf93('0x16c2')+_0x251b19[_0x4ecf93('0x2fa')]+_0x4ecf93('0x169e')+_0x251b19[_0x4ecf93('0x24df')]:'SYSTEM:GET_AGENTS','msg':_0x251b19[_0x4ecf93('0x2fa')]?JSON[_0x4ecf93('0xa48')](_0x251b19[_0x4ecf93('0x10fd')]):_0x251b19[_0x4ecf93('0x684')]()});}):_0x132211()[_0x5ad3f4('0xaa5')](function(_0x527740){var _0x18c4fa=_0x5ad3f4;return _0xace92a[_0x18c4fa('0x224d')]=_0x527740,_0x2f804c();})[_0x5ad3f4('0x253d')](function(_0x51f85b){var _0x5408ac=_0x5ad3f4;_0x11796d['error']({'title':_0x51f85b[_0x5408ac('0x2fa')]?_0x5408ac('0x16c2')+_0x51f85b[_0x5408ac('0x2fa')]+_0x5408ac('0x169e')+_0x51f85b['statusText']:_0x5408ac('0x14c6'),'msg':_0x51f85b[_0x5408ac('0x2fa')]?JSON[_0x5408ac('0xa48')](_0x51f85b['data']):_0x51f85b[_0x5408ac('0x684')]()});});}function _0x132211(){return _0x3b2737(function(_0x6a592,_0x20a3c0){var _0x5dae55=a0_0x1149;_0x336b42[_0x5dae55('0x1a50')][_0x5dae55('0x2122')]({'userProfileId':_0xace92a['currentUser'][_0x5dae55('0x2168')],'name':_0x5dae55('0x91a')})['$promise'][_0x5dae55('0xaa5')](function(_0x4ab5a3){var _0x322637=_0x5dae55,_0x3b457a=_0x4ab5a3&&_0x4ab5a3[_0x322637('0x580')]?_0x4ab5a3['rows'][0x0]:null;_0x6a592(_0x3b457a);})[_0x5dae55('0x253d')](function(_0x38c14c){_0x20a3c0(_0x38c14c);});});}function _0x2f804c(){return _0x3b2737(function(_0xfaf7cd,_0x35c42e){var _0x55b756=a0_0x1149;return _0x27405d()[_0x55b756('0xaa5')](function(_0xa80c09){var _0x32207e=_0x55b756;return _0xace92a[_0x32207e('0x1a30')]=_0xa80c09['rows']?_0xa80c09[_0x32207e('0x580')]:[],_0x437e85[_0x32207e('0x26e8')](_0x32207e('0x178b'))?_0xa80c09:_0xace92a['section']?_0xace92a['section'][_0x32207e('0x26cc')]?_0xa80c09:_0x185afc():null;})[_0x55b756('0xaa5')](function(_0x3da081){var _0x2f5411=_0x55b756,_0x1e1783=_0x3da081&&_0x3da081[_0x2f5411('0x580')]?_0x3da081[_0x2f5411('0x580')]:[];return _0xace92a[_0x2f5411('0x11b9')]=_0x51538b()[_0x2f5411('0x1246')](_0x1e1783,function(_0x38aabe){var _0x312c93=_0x2f5411;return _0x51538b()[_0x312c93('0xe9e')](_0xace92a['items'],{'id':_0x437e85['hasRole'](_0x312c93('0x178b'))||_0xace92a[_0x312c93('0x224d')][_0x312c93('0x26cc')]?_0x38aabe['id']:_0x38aabe['resourceId']});}),_0xace92a[_0x2f5411('0x215b')]=angular['copy'](_0xace92a[_0x2f5411('0x11b9')]),_0xace92a['items'][_0x2f5411('0x15b5')](function(_0xd6cc0d){var _0x800db6=_0x2f5411,_0x5bd83d=_0x51538b()[_0x800db6('0xe9e')](_0xace92a[_0x800db6('0x11b9')],{'id':_0xd6cc0d['id']});_0x437e85['hasRole'](_0x800db6('0x178b'))?_0xd6cc0d[_0x800db6('0x145d')]=!![]:_0xd6cc0d[_0x800db6('0x145d')]=typeof _0x5bd83d!==_0x800db6('0x1574')?!![]:![];}),_0x35238e();})[_0x55b756('0xaa5')](function(_0x446f0b){var _0x1e987d=_0x55b756,_0x12d948=_0x446f0b&&_0x446f0b[_0x1e987d('0x580')]?_0x446f0b['rows']:[];_0xace92a[_0x1e987d('0xbf7')]=_0x51538b()[_0x1e987d('0x1246')](_0x12d948,function(_0x364219){var _0x15edef=_0x1e987d,_0x480fed=_0x51538b()['find'](_0xace92a[_0x15edef('0x1a30')],{'id':_0x364219['id']});return _0x480fed['penalty']=_0x364219[_0x15edef('0x7d1')]?_0x15edef('0x17b0')+_0x364219[_0x15edef('0x7d1')][_0x15edef('0x2234')]:'',_0x480fed[_0x15edef('0x1b0d')]=typeof _0x364219[_0x15edef('0x1b0d')]!==_0x15edef('0x1574')?'<'+_0x364219['internal']+'>':'',_0x480fed;}),_0xace92a['startingSelectedItems']=angular[_0x1e987d('0x20a')](_0xace92a[_0x1e987d('0xbf7')]),_0xace92a[_0x1e987d('0x1c23')][_0x1e987d('0xbf7')]=_0xace92a[_0x1e987d('0xbf7')],_0xace92a[_0x1e987d('0x1c23')][_0x1e987d('0x1a30')]=_0x51538b()[_0x1e987d('0x1ebb')](_0xace92a[_0x1e987d('0x11b9')],_0xace92a[_0x1e987d('0x1c23')][_0x1e987d('0xbf7')],'id'),_0xfaf7cd();})['catch'](function(_0x482477){_0x35c42e(_0x482477);});});}function _0x185afc(){return _0x3b2737(function(_0x127567,_0x34f4a6){var _0x1cf843=a0_0x1149;return _0x336b42['userProfileResource']['get']({'sectionId':_0xace92a[_0x1cf843('0x224d')]['id'],'nolimit':!![]})['$promise'][_0x1cf843('0xaa5')](function(_0x55fe80){_0x127567(_0x55fe80);})[_0x1cf843('0x253d')](function(_0x3d6428){_0x34f4a6(_0x3d6428);});});}function _0x35238e(){return _0x3b2737(function(_0x3a3886,_0x4ab7f4){var _0x3c189f=a0_0x1149;return _0x336b42[_0x3c189f('0x14a6')][_0x3c189f('0x1483')]({'id':_0xace92a[_0x3c189f('0x14a6')]['id'],'fields':_0x3c189f('0x283f'),'nolimit':!![],'role':_0x3c189f('0xeff')})[_0x3c189f('0x1dc2')][_0x3c189f('0xaa5')](function(_0xa8b683){_0x3a3886(_0xa8b683);})['catch'](function(_0x3ab7f7){_0x4ab7f4(_0x3ab7f7);});});}function _0x27405d(){return _0x3b2737(function(_0x83848e,_0x3cdb4d){var _0x21c5f7=a0_0x1149;return _0x336b42[_0x21c5f7('0x272b')]['get']({'fields':_0x21c5f7('0x283f'),'nolimit':!![],'role':'agent'})[_0x21c5f7('0x1dc2')][_0x21c5f7('0xaa5')](function(_0x2ae04c){_0x83848e(_0x2ae04c);})[_0x21c5f7('0x253d')](function(_0x495ba8){_0x3cdb4d(_0x495ba8);});});}function _0x3961ff(_0x4dcd53){return _0x3b2737(function(_0x53ba1d,_0x3adbeb){var _0x374ff9=a0_0x1149;_0x51538b()[_0x374ff9('0x116b')](_0x4dcd53)?_0x53ba1d():_0x336b42[_0x374ff9('0x14a6')]['addAgents']({'id':_0xace92a[_0x374ff9('0x14a6')]['id'],'ids':_0x51538b()[_0x374ff9('0x1246')](_0x4dcd53,'id')})['$promise'][_0x374ff9('0xaa5')](function(){_0x53ba1d();})[_0x374ff9('0x253d')](function(_0x341ca8){_0x3adbeb(_0x341ca8);});});}function _0x5dff76(_0x261e6b){return _0x3b2737(function(_0x32a7cc,_0x47d368){var _0x182ed1=a0_0x1149;_0x51538b()[_0x182ed1('0x116b')](_0x261e6b)?_0x32a7cc():_0x336b42[_0x182ed1('0x14a6')][_0x182ed1('0x258e')]({'id':_0xace92a[_0x182ed1('0x14a6')]['id'],'ids':_0x51538b()[_0x182ed1('0x1246')](_0x261e6b,'id')})[_0x182ed1('0x1dc2')][_0x182ed1('0xaa5')](function(){_0x32a7cc();})[_0x182ed1('0x253d')](function(_0x53e797){_0x47d368(_0x53e797);});});}function _0x5eaaca(){var _0x36b1e2=_0x3b27c9,_0x36e254=_0x51538b()[_0x36b1e2('0x1ebb')](_0xace92a[_0x36b1e2('0x214a')],_0xace92a[_0x36b1e2('0xbf7')],'id'),_0xf621e2=_0x51538b()[_0x36b1e2('0x1ebb')](_0xace92a[_0x36b1e2('0xbf7')],_0xace92a[_0x36b1e2('0x214a')],'id');return _0x5dff76(_0x36e254)['then'](function(){return _0x3961ff(_0xf621e2);})[_0x36b1e2('0xaa5')](function(){var _0x4c559b=_0x36b1e2;_0xace92a[_0x4c559b('0xc54')]=![],_0xace92a[_0x4c559b('0x215b')]=angular[_0x4c559b('0x20a')](_0xace92a[_0x4c559b('0x11b9')]),_0xace92a['startingSelectedItems']=angular['copy'](_0xace92a[_0x4c559b('0xbf7')]),_0x11796d[_0x4c559b('0xe10')]({'title':'SUCCESS','msg':_0x4c559b('0xc60')});})[_0x36b1e2('0x253d')](function(_0x4120cf){var _0x234aad=_0x36b1e2;_0x11796d[_0x234aad('0x187f')]({'title':_0x4120cf[_0x234aad('0x2fa')]?_0x234aad('0x16c2')+_0x4120cf[_0x234aad('0x2fa')]+_0x234aad('0x169e')+_0x4120cf[_0x234aad('0x24df')]:_0x234aad('0x2281'),'msg':_0x4120cf[_0x234aad('0x2fa')]?JSON[_0x234aad('0xa48')](_0x4120cf[_0x234aad('0x10fd')]):_0x4120cf['toString']()});});}function _0x2a84a1(){var _0xc4d543=_0x3b27c9;_0x53689d[_0xc4d543('0x1120')]();}}const _0x109e4b=_0x3ec5a6;_0x956f61[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),'smsQueue',_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x956f61(_0x272a5b,_0x3882ba,_0x318f54,_0x437975,_0x1c31cd,_0x3e0db9,_0x528c1f,_0x5cedee){var _0x3b1d4f=_0x1a8446,_0x448def=this;_0x448def['currentUser']=_0x528c1f['getCurrentUser'](),_0x448def[_0x3b1d4f('0x14a6')]=_0x1c31cd,_0x448def[_0x3b1d4f('0xada')]=_0x5cedee,_0x448def[_0x3b1d4f('0x1a30')]=[],_0x448def[_0x3b1d4f('0x11b9')]=[],_0x448def['selectedItems']=[],_0x448def[_0x3b1d4f('0x215b')]=[],_0x448def[_0x3b1d4f('0x214a')]=[],_0x448def[_0x3b1d4f('0xc54')]=![],_0x448def['dualMultiselectOptions']={'readOnly':!_0x448def[_0x3b1d4f('0xada')][_0x3b1d4f('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x3b1d4f('0x25d6'),'line2':'','line3':'','labelAll':_0x3e0db9['instant'](_0x3b1d4f('0x21c')),'labelSelected':_0x3e0db9[_0x3b1d4f('0x213f')]('SMS.SELECTED_TEAMS'),'transferCallback':function _0x4e7316(){var _0x59a93b=_0x3b1d4f,_0x50ffbe=_0x51538b()[_0x59a93b('0x9ef')](_0x448def[_0x59a93b('0x214a')],_0x448def[_0x59a93b('0xbf7')],'id');_0x448def[_0x59a93b('0xc54')]=_0x51538b()[_0x59a93b('0x116b')](_0x50ffbe)?![]:!![];}},_0x448def[_0x3b1d4f('0x2318')]=_0x23d39e,_0x448def['saveTeams']=_0x18aced,_0x448def[_0x3b1d4f('0x2023')]=_0x294208;function _0x23d39e(){var _0x247708=_0x3b1d4f;return _0x528c1f['hasRole'](_0x247708('0x178b'))?_0x4c54d4()[_0x247708('0x253d')](function(_0x12e944){var _0x1a11e1=_0x247708;_0x318f54[_0x1a11e1('0x187f')]({'title':_0x12e944[_0x1a11e1('0x2fa')]?_0x1a11e1('0x16c2')+_0x12e944[_0x1a11e1('0x2fa')]+'\x20-\x20'+_0x12e944[_0x1a11e1('0x24df')]:_0x1a11e1('0x4b3'),'msg':_0x12e944[_0x1a11e1('0x2fa')]?JSON[_0x1a11e1('0xa48')](_0x12e944[_0x1a11e1('0x10fd')]):_0x12e944[_0x1a11e1('0x684')]()});}):_0x5207cb()[_0x247708('0xaa5')](function(_0xd89032){var _0x20bc9a=_0x247708;return _0x448def[_0x20bc9a('0x224d')]=_0xd89032,_0x4c54d4();})['catch'](function(_0x13628){var _0xabc0bb=_0x247708;_0x318f54['error']({'title':_0x13628[_0xabc0bb('0x2fa')]?_0xabc0bb('0x16c2')+_0x13628['status']+_0xabc0bb('0x169e')+_0x13628[_0xabc0bb('0x24df')]:'SYSTEM:GET_TEAMS','msg':_0x13628['status']?JSON[_0xabc0bb('0xa48')](_0x13628[_0xabc0bb('0x10fd')]):_0x13628[_0xabc0bb('0x684')]()});});}function _0x5207cb(){return _0x3882ba(function(_0x5fbb59,_0x39152f){var _0x3ea093=a0_0x1149;_0x437975[_0x3ea093('0x1a50')][_0x3ea093('0x2122')]({'userProfileId':_0x448def[_0x3ea093('0x7fc')][_0x3ea093('0x2168')],'name':'Teams'})[_0x3ea093('0x1dc2')]['then'](function(_0x27f7a7){var _0x2be29a=_0x3ea093,_0x2e2b4f=_0x27f7a7&&_0x27f7a7[_0x2be29a('0x580')]?_0x27f7a7[_0x2be29a('0x580')][0x0]:null;_0x5fbb59(_0x2e2b4f);})[_0x3ea093('0x253d')](function(_0x2efb5d){_0x39152f(_0x2efb5d);});});}function _0x4c54d4(){return _0x3882ba(function(_0x502923,_0x179835){var _0x25be72=a0_0x1149;return _0x5dc0ed()[_0x25be72('0xaa5')](function(_0x7a9385){var _0x45f62f=_0x25be72;return _0x448def[_0x45f62f('0x1a30')]=_0x7a9385[_0x45f62f('0x580')]?_0x7a9385['rows']:[],_0x528c1f[_0x45f62f('0x26e8')](_0x45f62f('0x178b'))?_0x7a9385:_0x448def[_0x45f62f('0x224d')]?_0x448def[_0x45f62f('0x224d')]['autoAssociation']?_0x7a9385:_0x1fc30b():null;})[_0x25be72('0xaa5')](function(_0xe83f45){var _0x222307=_0x25be72,_0x2d14fe=_0xe83f45&&_0xe83f45['rows']?_0xe83f45[_0x222307('0x580')]:[];return _0x448def[_0x222307('0x11b9')]=_0x51538b()['map'](_0x2d14fe,function(_0x70acd7){var _0x3edc98=_0x222307;return _0x51538b()[_0x3edc98('0xe9e')](_0x448def[_0x3edc98('0x1a30')],{'id':_0x528c1f[_0x3edc98('0x26e8')]('admin')||_0x448def['section']['autoAssociation']?_0x70acd7['id']:_0x70acd7[_0x3edc98('0xbcd')]});}),_0x448def['items'][_0x222307('0x15b5')](function(_0x2a14d5){var _0x4e2f38=_0x222307,_0x70c324=_0x51538b()[_0x4e2f38('0xe9e')](_0x448def['allowedItems'],{'id':_0x2a14d5['id']});_0x528c1f['hasRole'](_0x4e2f38('0x178b'))?_0x2a14d5[_0x4e2f38('0x145d')]=!![]:_0x2a14d5[_0x4e2f38('0x145d')]=typeof _0x70c324!==_0x4e2f38('0x1574')?!![]:![];}),_0x5964ab();})[_0x25be72('0xaa5')](function(_0x4fa466){var _0x14939b=_0x25be72,_0x71d334=_0x4fa466&&_0x4fa466[_0x14939b('0x580')]?_0x4fa466[_0x14939b('0x580')]:[];_0x448def['selectedItems']=_0x51538b()['map'](_0x71d334,function(_0x46d6f3){return _0x51538b()['find'](_0x448def['items'],{'id':_0x46d6f3['id']});}),_0x448def[_0x14939b('0x214a')]=angular[_0x14939b('0x20a')](_0x448def[_0x14939b('0xbf7')]),_0x448def['dualMultiselectOptions']['selectedItems']=_0x448def[_0x14939b('0xbf7')],_0x448def['dualMultiselectOptions'][_0x14939b('0x1a30')]=_0x51538b()[_0x14939b('0x1ebb')](_0x448def[_0x14939b('0x11b9')],_0x448def[_0x14939b('0x1c23')]['selectedItems'],'id'),_0x502923();})[_0x25be72('0x253d')](function(_0x510fa0){_0x179835(_0x510fa0);});});}function _0x1fc30b(){return _0x3882ba(function(_0x40e4ac,_0x1e7a26){var _0x59ae37=a0_0x1149;return _0x437975[_0x59ae37('0x249a')]['get']({'sectionId':_0x448def[_0x59ae37('0x224d')]['id'],'nolimit':!![]})['$promise'][_0x59ae37('0xaa5')](function(_0x1628b4){_0x40e4ac(_0x1628b4);})[_0x59ae37('0x253d')](function(_0xb52cdf){_0x1e7a26(_0xb52cdf);});});}function _0x5964ab(){return _0x3882ba(function(_0xd934ae,_0x3879fd){var _0x592dc7=a0_0x1149;return _0x437975[_0x592dc7('0x14a6')]['getTeams']({'id':_0x448def[_0x592dc7('0x14a6')]['id'],'fields':_0x592dc7('0x17fe'),'nolimit':!![]})['$promise'][_0x592dc7('0xaa5')](function(_0x1095bf){_0xd934ae(_0x1095bf);})[_0x592dc7('0x253d')](function(_0x484c51){_0x3879fd(_0x484c51);});});}function _0x5dc0ed(){return _0x3882ba(function(_0x28cc80,_0x1f620c){var _0x2a2097=a0_0x1149;return _0x437975[_0x2a2097('0x257c')]['get']({'fields':_0x2a2097('0x17fe'),'nolimit':!![]})[_0x2a2097('0x1dc2')][_0x2a2097('0xaa5')](function(_0x259fdf){_0x28cc80(_0x259fdf);})[_0x2a2097('0x253d')](function(_0x551280){_0x1f620c(_0x551280);});});}function _0x190061(_0x4a5a95){return _0x3882ba(function(_0x131049,_0x2b2d19){var _0x36d607=a0_0x1149;_0x51538b()['isEmpty'](_0x4a5a95)?_0x131049():_0x437975[_0x36d607('0x14a6')][_0x36d607('0x2479')]({'id':_0x448def[_0x36d607('0x14a6')]['id'],'ids':_0x51538b()['map'](_0x4a5a95,'id')})[_0x36d607('0x1dc2')][_0x36d607('0xaa5')](function(){_0x131049();})[_0x36d607('0x253d')](function(_0x27f9fc){_0x2b2d19(_0x27f9fc);});});}function _0x141037(_0x31fe04){return _0x3882ba(function(_0x17ddc9,_0x3ddb14){var _0x5f5342=a0_0x1149;_0x51538b()[_0x5f5342('0x116b')](_0x31fe04)?_0x17ddc9():_0x437975[_0x5f5342('0x14a6')][_0x5f5342('0x24b0')]({'id':_0x448def[_0x5f5342('0x14a6')]['id'],'ids':_0x51538b()[_0x5f5342('0x1246')](_0x31fe04,'id')})[_0x5f5342('0x1dc2')][_0x5f5342('0xaa5')](function(){_0x17ddc9();})[_0x5f5342('0x253d')](function(_0xe4be4a){_0x3ddb14(_0xe4be4a);});});}function _0x18aced(){var _0x1a1b7e=_0x3b1d4f,_0x310223=_0x51538b()['differenceBy'](_0x448def['startingSelectedItems'],_0x448def[_0x1a1b7e('0xbf7')],'id'),_0x4ff246=_0x51538b()[_0x1a1b7e('0x1ebb')](_0x448def[_0x1a1b7e('0xbf7')],_0x448def[_0x1a1b7e('0x214a')],'id');return _0x141037(_0x310223)['then'](function(){return _0x190061(_0x4ff246);})[_0x1a1b7e('0xaa5')](function(){var _0x9946df=_0x1a1b7e;_0x448def[_0x9946df('0xc54')]=![],_0x448def['startingAllowedItems']=angular[_0x9946df('0x20a')](_0x448def['allowedItems']),_0x448def[_0x9946df('0x214a')]=angular[_0x9946df('0x20a')](_0x448def[_0x9946df('0xbf7')]),_0x318f54[_0x9946df('0xe10')]({'title':_0x9946df('0x2eb'),'msg':'Teams\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0x51c211){var _0x14164e=_0x1a1b7e;_0x318f54['error']({'title':_0x51c211[_0x14164e('0x2fa')]?_0x14164e('0x16c2')+_0x51c211[_0x14164e('0x2fa')]+_0x14164e('0x169e')+_0x51c211['statusText']:_0x14164e('0x2281'),'msg':_0x51c211[_0x14164e('0x2fa')]?JSON[_0x14164e('0xa48')](_0x51c211[_0x14164e('0x10fd')]):_0x51c211['toString']()});});}function _0x294208(){_0x272a5b['hide']();}}const _0x34427a=_0x956f61,_0x5ee5d1=_0x4fb511['p']+_0x1a8446('0x25be');_0x4c2cde[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth','smsQueue',_0x1a8446('0x1a50')];function _0x4c2cde(_0x4663eb,_0x3c5ff1,_0xff8b23,_0x4b5243,_0x55e07c,_0x3c292e,_0xe59e4c,_0x515e48,_0x1841f6,_0x34b948,_0x516e16,_0x34c38c){var _0x2b2a0b=_0x1a8446,_0x26ce83=this;_0x26ce83[_0x2b2a0b('0x7fc')]=_0x34b948[_0x2b2a0b('0xacc')](),_0x26ce83[_0x2b2a0b('0x1202')]=_0x3c292e,_0x26ce83[_0x2b2a0b('0x143f')]=_0xe59e4c,_0x26ce83['passwordPattern']=_0x26ce83['setting'][_0x2b2a0b('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x26ce83[_0x2b2a0b('0x18cc')]=_0x3c5ff1[_0x2b2a0b('0x1cc2')]()+_0x2b2a0b('0x356')+_0x3c5ff1[_0x2b2a0b('0x160c')](),_0x26ce83[_0x2b2a0b('0x14a6')]=_0x516e16||_0x4663eb[_0x2b2a0b('0x25cf')][_0x2b2a0b('0x14a6')]||{},_0x26ce83[_0x2b2a0b('0x1a50')]=_0x34c38c&&_0x34c38c[_0x2b2a0b('0xd15')]==0x1?_0x34c38c[_0x2b2a0b('0x580')][0x0]:null,_0x26ce83[_0x2b2a0b('0xada')]=_0x34b948['parseCrudPermissions'](_0x26ce83['userProfileSection']?_0x26ce83[_0x2b2a0b('0x1a50')][_0x2b2a0b('0xada')]:null),_0x26ce83[_0x2b2a0b('0x9f0')]={},_0x26ce83[_0x2b2a0b('0xe5c')]=_0x4663eb[_0x2b2a0b('0x25cf')][_0x2b2a0b('0x25c2')]||0x0,_0x26ce83[_0x2b2a0b('0x158f')]=_0x590bb6,_0x26ce83['agentadddialog']=_0x2ccbb1,_0x26ce83[_0x2b2a0b('0xc10')]=_0x1841f6['info'],_0x26ce83[_0x2b2a0b('0xf1d')]=_0x3e19f5,_0x26ce83[_0x2b2a0b('0x13f0')]=_0x44780e;function _0x590bb6(_0x299030,_0x2834e8){var _0x37e245=_0x2b2a0b;_0xff8b23[_0x37e245('0x1e6d')]({'controller':_0x37e245('0x1a75'),'controllerAs':'vm','templateUrl':_0x5ee5d1,'parent':angular[_0x37e245('0x1aa8')](_0x4b5243['body']),'targetEvent':_0x2834e8,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x299030,'smsQueues':_0x26ce83[_0x37e245('0x145')]?_0x26ce83['smsQueues'][_0x37e245('0x580')]:[],'crudPermissions':_0x26ce83[_0x37e245('0xada')]}});}function _0x2ccbb1(_0xc9a858,_0x433e97){var _0xf9e3a3=_0x2b2a0b;_0xff8b23[_0xf9e3a3('0x1e6d')]({'controller':_0xf9e3a3('0x95e'),'controllerAs':'vm','templateUrl':_0x451976,'parent':angular[_0xf9e3a3('0x1aa8')](_0x4b5243[_0xf9e3a3('0x54c')]),'targetEvent':_0x433e97,'clickOutsideToClose':!![],'locals':{'smsQueue':_0xc9a858,'smsQueues':_0x26ce83[_0xf9e3a3('0x145')]?_0x26ce83[_0xf9e3a3('0x145')][_0xf9e3a3('0x580')]:[],'crudPermissions':_0x26ce83[_0xf9e3a3('0xada')],'realtime':![]}});}function _0x3e19f5(){var _0x5f1799=_0x2b2a0b;_0x4663eb['go'](_0x5f1799('0x113c'),{},{'reload':'app.sms.smsQueues'});}function _0x44780e(){var _0x2109d5=_0x2b2a0b;_0x515e48['smsQueue'][_0x2109d5('0x264e')]({'id':_0x26ce83[_0x2109d5('0x14a6')]['id']},_0x26ce83['smsQueue'])['$promise'][_0x2109d5('0xaa5')](function(){var _0x2740f7=_0x2109d5;_0x1841f6['success']({'title':_0x2740f7('0x16ba'),'msg':_0x26ce83['smsQueue'][_0x2740f7('0x25d6')]?_0x26ce83['smsQueue'][_0x2740f7('0x25d6')]+_0x2740f7('0x1734'):''});})['catch'](function(_0x2b2d00){var _0x3ca921=_0x2109d5;_0x1841f6[_0x3ca921('0x187f')]({'title':_0x2b2d00[_0x3ca921('0x2fa')]?_0x3ca921('0x16c2')+_0x2b2d00[_0x3ca921('0x2fa')]+_0x3ca921('0x169e')+_0x2b2d00[_0x3ca921('0x24df')]:_0x3ca921('0x985'),'msg':_0x2b2d00[_0x3ca921('0x10fd')]?JSON[_0x3ca921('0xa48')](_0x2b2d00['data']):_0x2b2d00[_0x3ca921('0x684')]()});});}}const _0x22941d=_0x4c2cde;_0xcbc24[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),'$document','$timeout','$translate',_0x1a8446('0x145'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0xcbc24(_0x4314fe,_0x2f0dba,_0x4975b6,_0x48f0ee,_0x1f4d86,_0x7a6af8,_0x163b73,_0xde1535,_0xbea4b7,_0x147931,_0x8bb4f0,_0x7a9b6e,_0x583238,_0x366046,_0x4d0374,_0x56e303,_0xd86960){var _0x2965ef=_0x1a8446,_0x2664a2=this;_0x2664a2[_0x2965ef('0x1202')]=_0x56e303,_0x2664a2['setting']=_0xd86960,_0x2664a2[_0x2965ef('0x7fc')]=_0x4d0374[_0x2965ef('0xacc')](),_0x2664a2['smsQueues']=_0xbea4b7||{'count':0x0,'rows':[]},_0x2664a2[_0x2965ef('0x1e97')]=_0x147931,_0x2664a2[_0x2965ef('0x1a50')]=_0x8bb4f0&&_0x8bb4f0[_0x2965ef('0xd15')]==0x1?_0x8bb4f0['rows'][0x0]:null,_0x2664a2[_0x2965ef('0xada')]=_0x4d0374['parseCrudPermissions'](_0x2664a2[_0x2965ef('0x1a50')]?_0x2664a2[_0x2965ef('0x1a50')][_0x2965ef('0xada')]:null),_0x2664a2[_0x2965ef('0x12b6')]=_0x2965ef('0x145'),_0x2664a2[_0x2965ef('0x164')]='',_0x2664a2[_0x2965ef('0x8cc')]=null,_0x2664a2[_0x2965ef('0x1af8')]=[],_0x2664a2[_0x2965ef('0x582')]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x2965ef('0xd82'),'channel':'sms','limit':0xa,'page':0x1},_0x2664a2[_0x2965ef('0x2501')]=_0x51538b()[_0x2965ef('0x184a')]([{'option':_0x2965ef('0x263b'),'value':_0x2965ef('0x12ea')},{'option':_0x2965ef('0x232a'),'value':_0x2965ef('0x2576')}],function(_0x1701f8){var _0x1baf86=_0x2965ef;return _0x51538b()[_0x1baf86('0x170d')](_0x1701f8[_0x1baf86('0x12f4')],new RegExp('\x27','g'),'');}),_0x2664a2[_0x2965ef('0x1927')]=_0x58f0e4,_0x2664a2[_0x2965ef('0x158f')]=_0x521171,_0x2664a2['agentadddialog']=_0x88ae2,_0x2664a2['deleteconfirm']=_0x4ca08b,_0x2664a2[_0x2965ef('0x2389')]=_0x44ea5e,_0x2664a2[_0x2965ef('0xe10')]=_0x289feb,_0x2664a2[_0x2965ef('0x256d')]=_0x54a9e3,_0x2664a2[_0x2965ef('0x2390')]=_0x2881a8,_0x2664a2[_0x2965ef('0x22b7')]=_0x33de6c,_0x2664a2['exportSelectedSmsQueues']=_0x416713,_0x2664a2[_0x2965ef('0x24eb')]=_0x270ce6,_0x2664a2[_0x2965ef('0x1466')]=_0x3e4833,_0x2664a2[_0x2965ef('0x14ad')]=_0x10a15e;function _0x58f0e4(_0xded42e){var _0x582f41=_0x2965ef;_0x4975b6['go'](_0x582f41('0x2197'),{'id':_0xded42e['id'],'smsQueue':_0xded42e,'crudPermissions':_0x2664a2[_0x582f41('0xada')]});}function _0x521171(_0xfb6e39,_0x54b617){var _0x1e1a01=_0x2965ef;_0x1f4d86[_0x1e1a01('0x1e6d')]({'controller':_0x1e1a01('0x1a75'),'controllerAs':'vm','templateUrl':_0x5ee5d1,'parent':angular[_0x1e1a01('0x1aa8')](_0x7a6af8[_0x1e1a01('0x54c')]),'targetEvent':_0x54b617,'clickOutsideToClose':!![],'locals':{'smsQueue':_0xfb6e39,'smsQueues':_0x2664a2[_0x1e1a01('0x145')]?_0x2664a2[_0x1e1a01('0x145')][_0x1e1a01('0x580')]:[],'crudPermissions':_0x2664a2[_0x1e1a01('0xada')]}});}function _0x88ae2(_0x512356,_0x741f7f){var _0x283a6f=_0x2965ef;_0x1f4d86[_0x283a6f('0x1e6d')]({'controller':_0x283a6f('0x95e'),'controllerAs':'vm','templateUrl':_0x451976,'parent':angular[_0x283a6f('0x1aa8')](_0x7a6af8['body']),'targetEvent':_0x741f7f,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x512356,'smsQueues':_0x2664a2['smsQueues']?_0x2664a2[_0x283a6f('0x145')][_0x283a6f('0x580')]:[],'crudPermissions':_0x2664a2[_0x283a6f('0xada')],'realtime':![]}});}function _0x4ca08b(_0x409fa3,_0x45ac3c){var _0x34b558=_0x2965ef,_0x2f32a9=_0x1f4d86[_0x34b558('0x281e')]()[_0x34b558('0x110a')](_0x34b558('0x88d')+_0x51538b()[_0x34b558('0x196a')](_0x34b558('0x14a6'))+'?')[_0x34b558('0x102e')](_0x34b558('0x389')+(_0x409fa3[_0x34b558('0x25d6')]||_0x34b558('0x14a6'))+_0x34b558('0x697')+_0x34b558('0x210d'))[_0x34b558('0x5b5')]('delete\x20smsQueue')[_0x34b558('0x116d')](_0x45ac3c)['ok']('OK')[_0x34b558('0x2030')](_0x34b558('0x2410'));_0x1f4d86[_0x34b558('0x1e6d')](_0x2f32a9)['then'](function(){_0x33de6c(_0x409fa3);},function(){var _0x2fa75d=_0x34b558;console[_0x2fa75d('0x18d5')](_0x2fa75d('0x2410'));});}function _0x44ea5e(){var _0x195eee=_0x2965ef;if(_0x4d0374[_0x195eee('0x26e8')](_0x195eee('0x178b')))_0x4975b6['go'](_0x195eee('0xfae'),{});else return _0x7a9b6e['userProfileSection'][_0x195eee('0x2122')]({'userProfileId':_0x4d0374[_0x195eee('0xacc')]()[_0x195eee('0x2168')],'sectionId':0x2c6})[_0x195eee('0x1dc2')]['then'](function(_0x4720cc){var _0x89c912=_0x195eee,_0x309212=_0x4720cc&&_0x4720cc[_0x89c912('0x580')]?_0x4720cc[_0x89c912('0x580')][0x0]:null;_0x309212&&_0x309212[_0x89c912('0xbd3')]?_0x4975b6['go'](_0x89c912('0xfae'),{}):_0x366046['info']({'title':_0xde1535[_0x89c912('0x213f')](_0x89c912('0x1aab')),'msg':_0xde1535['instant'](_0x89c912('0x251c'))});})['catch'](function(_0xb9f348){var _0x5dd49b=_0x195eee;_0x366046[_0x5dd49b('0x187f')]({'title':_0xb9f348[_0x5dd49b('0x2fa')]?'API:'+_0xb9f348['status']+_0x5dd49b('0x169e')+_0xb9f348[_0x5dd49b('0x24df')]:_0x5dd49b('0x21d5'),'msg':_0xb9f348[_0x5dd49b('0x2fa')]?JSON[_0x5dd49b('0xa48')](_0xb9f348[_0x5dd49b('0x10fd')]):_0xb9f348['toString']()});});}var _0x1d69c4=!![],_0x4d528c=0x1;_0x4314fe['$watch'](_0x2965ef('0x1788'),function(_0x55ede6,_0x222aee){var _0x37e378=_0x2965ef;_0x1d69c4?_0x163b73(function(){_0x1d69c4=![];}):(!_0x222aee&&(_0x4d528c=_0x2664a2[_0x37e378('0x582')]['page']),_0x55ede6!==_0x222aee&&(_0x2664a2[_0x37e378('0x582')][_0x37e378('0x41')]=0x1),!_0x55ede6&&(_0x2664a2['query'][_0x37e378('0x41')]=_0x4d528c),_0x2664a2[_0x37e378('0x256d')]());});function _0x289feb(_0x199366){var _0x4f1620=_0x2965ef;_0x2664a2[_0x4f1620('0x145')]=_0x199366||{'count':0x0,'rows':[]};}function _0x54a9e3(){var _0x55a6f6=_0x2965ef;_0x2664a2['query']['offset']=(_0x2664a2[_0x55a6f6('0x582')][_0x55a6f6('0x41')]-0x1)*_0x2664a2[_0x55a6f6('0x582')]['limit'],_0x4d0374[_0x55a6f6('0x26e8')]('admin')?_0x2664a2[_0x55a6f6('0x159a')]=_0x7a9b6e[_0x55a6f6('0x14a6')][_0x55a6f6('0x2122')](_0x2664a2['query'],_0x289feb)[_0x55a6f6('0x1dc2')]:(_0x2664a2['query']['id']=_0x2664a2[_0x55a6f6('0x1e97')]['id'],_0x2664a2[_0x55a6f6('0x582')][_0x55a6f6('0x224d')]=_0x55a6f6('0x1af'),_0x2664a2['promise']=_0x7a9b6e[_0x55a6f6('0x1e97')]['getResources'](_0x2664a2['query'],_0x289feb)[_0x55a6f6('0x1dc2')]);}function _0x2881a8(_0x50c5ff,_0xd7fb46){var _0x41425d=_0x2965ef;_0x1f4d86[_0x41425d('0x1e6d')]({'controller':_0x41425d('0x792'),'controllerAs':'vm','templateUrl':_0x25d6b5,'parent':angular[_0x41425d('0x1aa8')](_0x7a6af8[_0x41425d('0x54c')]),'targetEvent':_0x50c5ff,'clickOutsideToClose':!![],'locals':{'smsQueue':_0xd7fb46,'smsQueues':_0x2664a2[_0x41425d('0x145')]['rows'],'license':_0x2664a2[_0x41425d('0x1202')],'setting':_0x2664a2[_0x41425d('0x143f')],'crudPermissions':_0x2664a2[_0x41425d('0xada')]}});}function _0x33de6c(_0x49d83d){var _0xd64a08=_0x2965ef;_0x7a9b6e['smsQueue'][_0xd64a08('0x926')]({'id':_0x49d83d['id']})[_0xd64a08('0x1dc2')][_0xd64a08('0xaa5')](function(){var _0x4be6f5=_0xd64a08;_0x51538b()[_0x4be6f5('0xf6d')](_0x2664a2[_0x4be6f5('0x145')][_0x4be6f5('0x580')],{'id':_0x49d83d['id']}),_0x2664a2[_0x4be6f5('0x145')]['count']-=0x1,!_0x2664a2['smsQueues'][_0x4be6f5('0x580')][_0x4be6f5('0x2587')]&&_0x2664a2[_0x4be6f5('0x256d')](),_0x366046[_0x4be6f5('0xe10')]({'title':_0x51538b()[_0x4be6f5('0x196a')](_0x4be6f5('0x59c'))+_0x4be6f5('0x8bb'),'msg':_0x49d83d[_0x4be6f5('0x25d6')]?_0x49d83d[_0x4be6f5('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0xd64a08('0x253d')](function(_0x2515b0){var _0x56ca32=_0xd64a08;if(_0x2515b0[_0x56ca32('0x10fd')]&&_0x2515b0['data'][_0x56ca32('0x4c6')]&&_0x2515b0[_0x56ca32('0x10fd')]['errors']['length']){_0x2664a2[_0x56ca32('0x4c6')]=_0x2515b0[_0x56ca32('0x10fd')][_0x56ca32('0x4c6')]||[{'message':_0x2515b0['toString'](),'type':'SYSTEM:DELETEsmsQueue'}];for(var _0x441b45=0x0;_0x441b45<_0x2515b0['data'][_0x56ca32('0x4c6')][_0x56ca32('0x2587')];_0x441b45++){_0x366046[_0x56ca32('0x187f')]({'title':_0x2515b0[_0x56ca32('0x10fd')][_0x56ca32('0x4c6')][_0x441b45]['type'],'msg':_0x2515b0[_0x56ca32('0x10fd')][_0x56ca32('0x4c6')][_0x441b45][_0x56ca32('0x1402')]});}}else _0x366046[_0x56ca32('0x187f')]({'title':_0x2515b0[_0x56ca32('0x2fa')]?'API:'+_0x2515b0[_0x56ca32('0x2fa')]+_0x56ca32('0x169e')+_0x2515b0[_0x56ca32('0x24df')]:_0x56ca32('0x19a8'),'msg':_0x2515b0[_0x56ca32('0x10fd')]?JSON[_0x56ca32('0xa48')](_0x2515b0['data'][_0x56ca32('0x1402')]):_0x2515b0[_0x56ca32('0x1402')]||_0x2515b0[_0x56ca32('0x684')]()});});}function _0x416713(){var _0x5b5174=_0x2965ef,_0x59783c=angular[_0x5b5174('0x20a')](_0x2664a2[_0x5b5174('0x1af8')]);return _0x2664a2[_0x5b5174('0x1af8')]=[],_0x59783c;}function _0x270ce6(_0x4685aa){var _0x517db4=_0x2965ef,_0x435f15=_0x1f4d86[_0x517db4('0x281e')]()[_0x517db4('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?')[_0x517db4('0x102e')](''+_0x2664a2[_0x517db4('0x1af8')][_0x517db4('0x2587')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x517db4('0x5b5')](_0x517db4('0x15a7'))[_0x517db4('0x116d')](_0x4685aa)['ok']('OK')[_0x517db4('0x2030')]('CANCEL');_0x1f4d86[_0x517db4('0x1e6d')](_0x435f15)[_0x517db4('0xaa5')](function(){var _0x215dc7=_0x517db4;_0x2664a2[_0x215dc7('0x1af8')][_0x215dc7('0x15b5')](function(_0xe66f85){_0x33de6c(_0xe66f85);}),_0x2664a2[_0x215dc7('0x1af8')]=[];});}function _0x3e4833(){var _0x4e1452=_0x2965ef;_0x2664a2[_0x4e1452('0x1af8')]=[];}function _0x10a15e(){var _0x2c3ba4=_0x2965ef;_0x2664a2[_0x2c3ba4('0x1af8')]=_0x2664a2['smsQueues'][_0x2c3ba4('0x580')];}}const _0x24594d=_0xcbc24;_0x185d34[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x185d34(_0x4a8fb1,_0x202003){var _0x454edc=_0x1a8446;_0x4a8fb1[_0x454edc('0xb46')]('app.sms',{'abstract':!![],'url':_0x454edc('0xd9c')})[_0x454edc('0xb46')](_0x454edc('0x113c'),{'url':'/smsQueues','views':{'content@app':{'templateUrl':_0x3f4033,'controller':_0x454edc('0x454')}},'resolve':{'smsQueues':[_0x454edc('0x1d16'),_0x454edc('0x1dfd'),function _0x3dd79b(_0x22d622,_0xf9ce5e){var _0x2851fa=_0x454edc;return _0xf9ce5e[_0x2851fa('0x26e8')](_0x2851fa('0x178b'))?_0x22d622[_0x2851fa('0x149f')](_0x2851fa('0xaf5'),{'fields':_0x2851fa('0x698'),'sort':_0x2851fa('0xd82'),'channel':_0x2851fa('0x18da'),'limit':0xa,'offset':0x0}):_0x22d622[_0x2851fa('0x149f')](_0x2851fa('0x49a'),{'id':_0xf9ce5e[_0x2851fa('0xacc')]()[_0x2851fa('0x2168')],'section':_0x2851fa('0x1af'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x2851fa('0xd82'),'channel':_0x2851fa('0x18da'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x454edc('0x1d16'),'Auth',function _0x2ade13(_0x4a45fb,_0x13dd52){var _0x4d0d76=_0x454edc;return _0x13dd52[_0x4d0d76('0x26e8')](_0x4d0d76('0x178b'))?null:_0x4a45fb[_0x4d0d76('0x149f')](_0x4d0d76('0x567'),{'fields':_0x4d0d76('0x1bb0'),'id':_0x13dd52['getCurrentUser']()[_0x4d0d76('0x2168')]});}],'userProfileSection':[_0x454edc('0x1d16'),_0x454edc('0x1dfd'),function _0xf805dc(_0x563e50,_0x6a8878){var _0x2c6003=_0x454edc;return _0x6a8878['hasRole'](_0x2c6003('0x178b'))?null:_0x563e50['resolve'](_0x2c6003('0x89e'),{'fields':_0x2c6003('0xe6a'),'userProfileId':_0x6a8878[_0x2c6003('0xacc')]()[_0x2c6003('0x2168')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x454edc('0x18da')})[_0x454edc('0xb46')](_0x454edc('0x2197'),{'url':_0x454edc('0xad'),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3f13cc,'controller':'SmsQueueController\x20as\x20vm'}},'resolve':{'smsQueue':['apiResolver',_0x454edc('0x703'),function _0x451cb7(_0xb71a22,_0x904405){var _0x2d5066=_0x454edc;return _0xb71a22[_0x2d5066('0x149f')](_0x2d5066('0xaf5'),{'fields':_0x2d5066('0x698'),'id':_0x904405['id']});}],'userProfileSection':[_0x454edc('0x1d16'),_0x454edc('0x1dfd'),function _0x45cb25(_0x46dd87,_0x3b5cdb){var _0x14bdc0=_0x454edc;return _0x46dd87[_0x14bdc0('0x149f')](_0x14bdc0('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3b5cdb[_0x14bdc0('0xacc')]()[_0x14bdc0('0x2168')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x454edc('0x18da')})[_0x454edc('0xb46')]('app.sms.smsAccounts',{'url':_0x454edc('0x2692'),'views':{'content@app':{'templateUrl':_0x231d09,'controller':_0x454edc('0x23e1')}},'resolve':{'smsAccounts':['apiResolver','Auth',function _0x193daf(_0x2a85ea,_0xf53f2b){var _0x42e84c=_0x454edc;return _0xf53f2b[_0x42e84c('0x26e8')]('admin')?_0x2a85ea[_0x42e84c('0x149f')](_0x42e84c('0x171a'),{'fields':_0x42e84c('0x1f23'),'sort':_0x42e84c('0xd82'),'limit':0xa,'offset':0x0}):_0x2a85ea[_0x42e84c('0x149f')](_0x42e84c('0x49a'),{'id':_0xf53f2b['getCurrentUser']()['userProfileId'],'section':_0x42e84c('0x10d9'),'fields':_0x42e84c('0x1f23'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x454edc('0x1dfd'),function _0x5d3681(_0x23bbb0,_0x2c86be){var _0x15a343=_0x454edc;return _0x2c86be['hasRole']('admin')?null:_0x23bbb0['resolve']('userProfile@get',{'fields':_0x15a343('0x1bb0'),'id':_0x2c86be[_0x15a343('0xacc')]()[_0x15a343('0x2168')]});}],'userProfileSection':[_0x454edc('0x1d16'),_0x454edc('0x1dfd'),function _0x3a773f(_0x4be3e1,_0x3f1999){var _0x224664=_0x454edc;return _0x3f1999[_0x224664('0x26e8')]('admin')?null:_0x4be3e1[_0x224664('0x149f')](_0x224664('0x89e'),{'fields':_0x224664('0xe6a'),'userProfileId':_0x3f1999['getCurrentUser']()['userProfileId'],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':'sms'})[_0x454edc('0xb46')](_0x454edc('0x20ea'),{'url':_0x454edc('0xad'),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3164ce,'controller':'SmsAccountController\x20as\x20vm'}},'resolve':{'smsAccount':[_0x454edc('0x1d16'),_0x454edc('0x703'),function _0x3afaf5(_0x5aba13,_0x25a70e){var _0x42fdcc=_0x454edc;return _0x5aba13['resolve']('smsAccount@get',{'fields':_0x42fdcc('0x1f23'),'id':_0x25a70e['id']});}],'userProfileSection':[_0x454edc('0x1d16'),'Auth',function _0x2743a2(_0x409c1f,_0x2a7b7c){var _0x3194d6=_0x454edc;return _0x409c1f[_0x3194d6('0x149f')](_0x3194d6('0x89e'),{'fields':_0x3194d6('0xe6a'),'userProfileId':_0x2a7b7c[_0x3194d6('0xacc')]()[_0x3194d6('0x2168')],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':'sms'}),_0x202003[_0x454edc('0x1de5')](_0x454edc('0x18e2'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x162'),['ngCsv',_0x1a8446('0x1472'),'md.data.table','flow',_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),_0x1a8446('0x150f'),'ngAnimate',_0x1a8446('0xd2d'),_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),'mwFormUtils',_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),_0x1a8446('0x1320'),_0x1a8446('0x775'),_0x1a8446('0x8ee')])[_0x1a8446('0x1b14')](_0x185d34)[_0x1a8446('0x780')](_0x1a8446('0x1cc0'),_0x26661d)[_0x1a8446('0x780')]('SmsAccountActionsController',_0x4b9cfb)[_0x1a8446('0x780')]('SmsAccountagentaddController',_0x3d116d)['controller'](_0x1a8446('0x2011'),_0x2e3799)[_0x1a8446('0x780')](_0x1a8446('0x2224'),_0x5e36e2)[_0x1a8446('0x780')](_0x1a8446('0x23ab'),_0x433670)[_0x1a8446('0x780')](_0x1a8446('0x1477'),_0x5381d8)['controller'](_0x1a8446('0x22a9'),_0x143400)[_0x1a8446('0x780')](_0x1a8446('0x211c'),_0x13970d)['controller'](_0x1a8446('0x60a'),_0x445f73)[_0x1a8446('0x780')](_0x1a8446('0x21ab'),_0x4036ad)[_0x1a8446('0x780')](_0x1a8446('0x2666'),_0x1997e0)[_0x1a8446('0x780')](_0x1a8446('0x21e7'),_0x4e8d86)[_0x1a8446('0x780')](_0x1a8446('0x1639'),_0x4a40aa)[_0x1a8446('0x780')](_0x1a8446('0x100'),_0x1811f6)[_0x1a8446('0x780')](_0x1a8446('0x19e7'),_0x169449)[_0x1a8446('0x780')](_0x1a8446('0x265c'),_0x144e69)['controller'](_0x1a8446('0x26ea'),_0x1e98e2)[_0x1a8446('0x780')]('SmsAccountDispositionsController',_0x1da231)[_0x1a8446('0x780')](_0x1a8446('0x73d'),_0x2481db)[_0x1a8446('0x780')]('SmsAccountsController',_0x225703)[_0x1a8446('0x780')]('CreateOrEditSmsQueueDialogController',_0x5155bd)[_0x1a8446('0x780')](_0x1a8446('0x95e'),_0x109e4b)[_0x1a8446('0x780')]('SmsQueueteamaddController',_0x34427a)[_0x1a8446('0x780')]('SmsQueueController',_0x22941d)[_0x1a8446('0x780')](_0x1a8446('0x24'),_0x24594d);const _0x53d1c6=_0x4fb511['p']+_0x1a8446('0xf99'),_0x48e427=_0x4fb511['p']+_0x1a8446('0x115a'),_0x118987=_0x4fb511['p']+'src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view-[chunkhash].html';_0x4e95f3[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$q',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$filter',_0x1a8446('0x2457'),_0x1a8446('0x1717'),_0x1a8446('0x1f1d'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0x5b4'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x21b3')];function _0x4e95f3(_0x3743eb,_0x58e0ae,_0x5907e3,_0x2621ea,_0x3f0fd8,_0x4f31da,_0x2f1203,_0x5b37db,_0x2e09c5,_0x1b9292,_0xbe9076,_0x195213,_0x3d5eb0,_0x7683f6,_0x49b269,_0x28fade,_0xb7101b,_0x3c6db6){var _0x2d8f67=_0x1a8446,_0x3d26f6=this,_0x4db386=[_0x2d8f67('0x1af3'),_0x2d8f67('0x175'),'lastLoginAt',_0x2d8f67('0x1ce0'),_0x2d8f67('0x25f0'),'lastPauseAt',_0x2d8f67('0x1b0d'),_0x2d8f67('0xdf8'),_0x2d8f67('0x1f36'),_0x2d8f67('0xc8f'),_0x2d8f67('0x21f'),_0x2d8f67('0x462'),'whatsappPause',_0x2d8f67('0x135b'),_0x2d8f67('0x2519'),_0x2d8f67('0xe55'),'openchannelCapacity','mailCapacity',_0x2d8f67('0x26cb'),'whatsappCapacity',_0x2d8f67('0x6ed'),_0x2d8f67('0x607'),_0x2d8f67('0x275a'),_0x2d8f67('0x24fb'),'smsCurrentCapacity',_0x2d8f67('0x26c8'),_0x2d8f67('0xea8'),_0x2d8f67('0xeb4'),_0x2d8f67('0x293'),_0x2d8f67('0x4c3'),_0x2d8f67('0x24d1'),_0x2d8f67('0x1579'),_0x2d8f67('0x19d2'),_0x2d8f67('0x1e0'),_0x2d8f67('0x748'),'openchannelStatusTime',_0x2d8f67('0xd27'),_0x2d8f67('0x1561'),_0x2d8f67('0x166b'),_0x2d8f67('0xa0a'),'voiceStatusTime',_0x2d8f67('0xe26'),'destconnectedlinenum','screenrecording',_0x2d8f67('0x1b72'),'phoneBarEnableAutomaticScreenRecording'],_0x55e929=['chatPause',_0x2d8f67('0xc8f'),_0x2d8f67('0x21f'),_0x2d8f67('0x462'),_0x2d8f67('0x231a'),_0x2d8f67('0x135b'),_0x2d8f67('0x2519'),_0x2d8f67('0x175')];_0x3d26f6['currentUser']=_0x28fade['getCurrentUser'](),_0x3d26f6[_0x2d8f67('0x38b')]=[_0x2d8f67('0xb02'),_0x2d8f67('0x1028'),_0x2d8f67('0xa1e'),'onhold',_0x2d8f67('0x2509')],_0x3d26f6[_0x2d8f67('0x2457')]=_0x2f1203||{'count':0x0,'rows':[]},_0x3d26f6[_0x2d8f67('0x1202')]=_0xb7101b,_0x3d26f6[_0x2d8f67('0x1e97')]=_0x7683f6,_0x3d26f6[_0x2d8f67('0x1a50')]=_0x49b269&&_0x49b269['count']==0x1?_0x49b269['rows'][0x0]:null,_0x3d26f6['crudPermissions']=_0x28fade[_0x2d8f67('0xffd')](_0x3d26f6[_0x2d8f67('0x1a50')]?_0x3d26f6[_0x2d8f67('0x1a50')][_0x2d8f67('0xada')]:null),_0x3d26f6['agents']=_0x5b37db?_0x51538b()['keyBy'](_0x5b37db[_0x2d8f67('0x580')]?_0x5b37db['rows']:[],'id'):{},_0x3d26f6[_0x2d8f67('0x1f1d')]=_0x2e09c5?_0x51538b()['keyBy'](_0x2e09c5[_0x2d8f67('0x580')]?_0x2e09c5[_0x2d8f67('0x580')]:[],'id'):{},_0x3d26f6[_0x2d8f67('0xd28')]={},_0x3d26f6[_0x2d8f67('0x259c')]=![],_0x3d26f6[_0x2d8f67('0x1536')]=[],_0x3d26f6['agentInternal']={};for(var _0x5161a5 in _0x3d26f6['agents']){typeof _0x3d26f6[_0x2d8f67('0x1717')][_0x5161a5]!==_0x2d8f67('0x1574')&&(_0x3d26f6[_0x2d8f67('0x1717')][_0x5161a5][_0x2d8f67('0x2e')]=!![]);}_0x3d26f6['query']={'limit':0xa,'page':0x1,'order':_0x2d8f67('0x18e5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x3d26f6[_0x2d8f67('0x1bc9')]=_0x9c607e,_0x3d26f6['queueAdd']=_0x4be21c,_0x3d26f6['pause']=_0xd515f8,_0x3d26f6[_0x2d8f67('0x15e8')]=_0x49a954,_0x3d26f6[_0x2d8f67('0x18ba')]=_0x834920,_0x3d26f6[_0x2d8f67('0xf42')]=_0x30a230,_0x3d26f6['getAgentGlobalStatus']=_0x259617,_0x3d26f6['isPause']=_0x2eea52,_0x3d26f6[_0x2d8f67('0x2608')]=_0x55da87,_0x3d26f6[_0x2d8f67('0x1592')]=_0x23c581,_0x3d26f6['onSave']=_0x25cde4,_0x3d26f6[_0x2d8f67('0x4f1')]=_0xb70f6b,_0x3d26f6[_0x2d8f67('0x2318')]=_0x3e060c,_0x3d26f6[_0x2d8f67('0xe9b')]=_0x54acbd,_0x3d26f6[_0x2d8f67('0xd53')]=_0x2bda18,_0x3d26f6[_0x2d8f67('0x15eb')]=_0x34ff80,_0xbe9076['on'](_0x2d8f67('0x1acf'),_0x3d26f6[_0x2d8f67('0x1a4b')]),_0xbe9076['on'](_0x2d8f67('0x15fb'),_0x3d26f6['onUpdate']),_0xbe9076['on'](_0x2d8f67('0x25ea'),_0x3d26f6[_0x2d8f67('0xe9b')]),_0xbe9076['on'](_0x2d8f67('0x2728'),_0x3d26f6['onComplete']),_0x3e060c();var _0x2ff681=_0x3c6db6(function(){var _0x3b9de2=_0x2d8f67;_0x3d26f6[_0x3b9de2('0x259c')]&&(_0x3d26f6[_0x3b9de2('0x259c')]=![],_0x3e060c());},0x3e7);function _0x3e060c(){var _0x3a23ea=_0x2d8f67;_0x3d26f6[_0x3a23ea('0x259c')]=![];var _0x412b58=_0x58e0ae[_0x3a23ea('0x213b')]();_0x3d26f6[_0x3a23ea('0x159a')]=_0x412b58[_0x3a23ea('0x159a')],_0x3d26f6[_0x3a23ea('0x1d77')]=[],_0x3d26f6[_0x3a23ea('0x1536')]=[],_0x51538b()[_0x3a23ea('0x143e')](_0x3d26f6['agents'],function(_0x20fd3b,_0x5148db){var _0x515948=_0x3a23ea;_0x3d26f6[_0x515948('0x1f1d')][_0x5148db]&&_0x51538b()[_0x515948('0x283c')](_0x20fd3b,_0x51538b()[_0x515948('0x104e')](_0x51538b()[_0x515948('0x245')](_0x3d26f6[_0x515948('0x1f1d')][_0x5148db],_0x55e929),_0x4db386)),_0x259617(_0x20fd3b),_0x20fd3b[_0x515948('0x175')]?(_0x3d26f6['filteredAgents']['push'](_0x20fd3b),_0x3d26f6['agentInternal'][_0x20fd3b[_0x515948('0x1b0d')]]=_0x5148db):_0x20fd3b[_0x515948('0x920')]=_0x51538b()[_0x515948('0x228e')](_0x420d43()()['format']('x'));});_0x3d26f6[_0x3a23ea('0x582')][_0x3a23ea('0x107')]&&_0x51538b()[_0x3a23ea('0xf6d')](_0x3d26f6['filteredAgents'],function(_0xc046d6){var _0x257b0b=_0x3a23ea;return _0xc046d6[_0x257b0b('0x151c')]!==_0x3d26f6[_0x257b0b('0x582')][_0x257b0b('0x107')];});_0x3d26f6[_0x3a23ea('0x582')][_0x3a23ea('0x1bfd')]&&_0x51538b()['remove'](_0x3d26f6[_0x3a23ea('0x1d77')],function(_0x28aa53){var _0x3c7da1=_0x3a23ea;return _0x28aa53[_0x3c7da1('0x25f0')]!==_0x3d26f6[_0x3c7da1('0x582')][_0x3c7da1('0x1bfd')];});_0x3d26f6[_0x3a23ea('0x582')][_0x3a23ea('0xdb7')]&&_0x51538b()[_0x3a23ea('0xf6d')](_0x3d26f6[_0x3a23ea('0x1d77')],function(_0x39cd4b){var _0x5c4cf0=_0x3a23ea;return _0x39cd4b[_0x5c4cf0('0x18e5')]['toLowerCase']()['indexOf'](_0x3d26f6['query'][_0x5c4cf0('0xdb7')][_0x5c4cf0('0xcf6')]())<0x0;});_0x3d26f6[_0x3a23ea('0x1d77')]=_0x125afe(_0x3d26f6[_0x3a23ea('0x1d77')]);var _0x3a3ecb=(_0x3d26f6['query'][_0x3a23ea('0x41')]-0x1)*_0x3d26f6[_0x3a23ea('0x582')][_0x3a23ea('0xf4d')];_0x3d26f6['paginatedAgents']=_0x51538b()[_0x3a23ea('0x485')](_0x3d26f6[_0x3a23ea('0x1d77')],_0x3a3ecb)[_0x3a23ea('0x19aa')](0x0,_0x3d26f6['query']['limit']);for(var _0xb2486b=0x0;_0xb2486b<_0x3d26f6[_0x3a23ea('0xd28')]['length'];_0xb2486b+=0x1){_0x3d26f6[_0x3a23ea('0x1536')][_0x3a23ea('0x1599')](_0x3d26f6[_0x3a23ea('0xd28')][_0xb2486b]['id']);}_0x412b58[_0x3a23ea('0x149f')](),_0x3d26f6[_0x3a23ea('0x259c')]=!![];}function _0x25cde4(_0x19ac5a){var _0x31a665=_0x2d8f67;_0x3d26f6[_0x31a665('0x1717')][_0x19ac5a['id']]&&(_0x51538b()[_0x31a665('0x283c')](_0x3d26f6[_0x31a665('0x1717')][_0x19ac5a['id']],_0x51538b()['pick'](_0x51538b()['omit'](_0x19ac5a,_0x55e929),_0x4db386)),_0x51538b()['merge'](_0x3d26f6[_0x31a665('0x1f1d')][_0x19ac5a['id']],_0x51538b()[_0x31a665('0x104e')](_0x51538b()[_0x31a665('0x245')](_0x19ac5a,_0x55e929),_0x4db386)),_0x259617(_0x3d26f6[_0x31a665('0x1717')][_0x19ac5a['id']]));}function _0xb70f6b(_0x473aeb){var _0x5b6efe=_0x2d8f67;_0x3d26f6[_0x5b6efe('0x1717')][_0x473aeb['id']]&&(_0x51538b()[_0x5b6efe('0x283c')](_0x3d26f6[_0x5b6efe('0x1717')][_0x473aeb['id']],_0x51538b()[_0x5b6efe('0x104e')](_0x473aeb,_0x4db386)),_0x51538b()[_0x5b6efe('0x283c')](_0x3d26f6[_0x5b6efe('0x1f1d')][_0x473aeb['id']],_0x51538b()['pick'](_0x473aeb,_0x4db386)),_0x473aeb['lastPauseAt']&&(_0x3d26f6[_0x5b6efe('0x1717')][_0x473aeb['id']][_0x5b6efe('0x920')]=_0x473aeb[_0x5b6efe('0x1ce0')],_0x3d26f6[_0x5b6efe('0x1f1d')][_0x473aeb['id']][_0x5b6efe('0x920')]=_0x473aeb[_0x5b6efe('0x1ce0')]),_0x259617(_0x3d26f6['agents'][_0x473aeb['id']]));}function _0x54acbd(_0x594850){var _0x71b67f=_0x2d8f67;_0x3d26f6[_0x71b67f('0x1717')][_0x3d26f6['agentInternal'][_0x594850[_0x71b67f('0x2525')]]]&&(_0x51538b()[_0x71b67f('0x283c')](_0x3d26f6[_0x71b67f('0x1717')][_0x3d26f6[_0x71b67f('0x21f2')][_0x594850[_0x71b67f('0x2525')]]],_0x51538b()[_0x71b67f('0x104e')](_0x594850,[_0x71b67f('0xe26'),_0x71b67f('0x14d3')])),_0x51538b()[_0x71b67f('0x283c')](_0x3d26f6['rpcAgents'][_0x3d26f6[_0x71b67f('0x21f2')][_0x594850[_0x71b67f('0x2525')]]],_0x51538b()[_0x71b67f('0x104e')](_0x594850,[_0x71b67f('0xe26'),_0x71b67f('0x14d3')])));}function _0x2bda18(_0x528aba){var _0x344579=_0x2d8f67;_0x3d26f6['agents'][_0x3d26f6[_0x344579('0x21f2')][_0x528aba[_0x344579('0x2525')]]]&&(_0x3d26f6['agents'][_0x3d26f6[_0x344579('0x21f2')][_0x528aba[_0x344579('0x2525')]]]=_0x51538b()[_0x344579('0x245')](_0x3d26f6['agents'][_0x3d26f6[_0x344579('0x21f2')][_0x528aba['destaccountcode']]],[_0x344579('0xe26'),_0x344579('0x14d3')]),_0x3d26f6[_0x344579('0x1f1d')][_0x3d26f6['agentInternal'][_0x528aba[_0x344579('0x2525')]]]=_0x51538b()[_0x344579('0x245')](_0x3d26f6[_0x344579('0x1f1d')][_0x3d26f6[_0x344579('0x21f2')][_0x528aba[_0x344579('0x2525')]]],[_0x344579('0xe26'),'destconnectedlinenum']));}function _0x9c607e(_0x48f27b){var _0x4d2173=_0x2d8f67;return _0x1b9292[_0x4d2173('0x272b')][_0x4d2173('0x1bc9')]({'id':_0x48f27b['id'],'device':_0x4d2173('0x4f3'),'agent_id':_0x48f27b['id'],'agent_name':_0x48f27b[_0x4d2173('0x25d6')]})['$promise'][_0x4d2173('0xaa5')](function(){var _0x317102=_0x4d2173;_0x195213[_0x317102('0xe10')]({'title':_0x317102('0x1cdb'),'msg':_0x48f27b[_0x317102('0x18e5')]+_0x317102('0x2039')}),_0x3d26f6[_0x317102('0x1717')][_0x48f27b['id']]&&(_0x3d26f6['agents'][_0x48f27b['id']][_0x317102('0x175')]=![]),_0x3d26f6[_0x317102('0x1f1d')][_0x48f27b['id']]&&(_0x3d26f6[_0x317102('0x1f1d')][_0x48f27b['id']][_0x317102('0x175')]=![]),_0x3e060c();})['catch'](function(_0x56d21a){var _0xb97942=_0x4d2173;_0x195213[_0xb97942('0x187f')]({'title':_0x56d21a[_0xb97942('0x2fa')]?_0xb97942('0x16c2')+_0x56d21a[_0xb97942('0x2fa')]+'\x20-\x20'+_0x56d21a[_0xb97942('0x24df')]:_0xb97942('0xb8c'),'msg':_0x56d21a[_0xb97942('0x10fd')]?JSON['stringify'](_0x56d21a[_0xb97942('0x10fd')]['message']):_0x56d21a[_0xb97942('0x684')]()});});}function _0xd515f8(_0x1fc185,_0x329475){var _0x27ad84=_0x2d8f67;return _0x1b9292[_0x27ad84('0x272b')][_0x27ad84('0x167c')]({'id':_0x1fc185['id'],'type':_0x329475})['$promise'][_0x27ad84('0xaa5')](function(_0x30931d){var _0x7d3d74=_0x27ad84;_0x3d26f6['agents'][_0x1fc185['id']]&&_0x51538b()[_0x7d3d74('0x283c')](_0x3d26f6[_0x7d3d74('0x1717')][_0x1fc185['id']],_0x51538b()[_0x7d3d74('0x104e')](_0x30931d,_0x4db386)),_0x3d26f6['rpcAgents'][_0x1fc185['id']]&&_0x51538b()['merge'](_0x3d26f6[_0x7d3d74('0x1f1d')][_0x1fc185['id']],_0x51538b()[_0x7d3d74('0x104e')](_0x30931d,_0x4db386)),_0x259617(_0x3d26f6[_0x7d3d74('0x1717')][_0x1fc185['id']]);})['catch'](function(_0x30d01e){var _0xf3fc2e=_0x27ad84;_0x195213[_0xf3fc2e('0x187f')]({'title':_0x30d01e[_0xf3fc2e('0x2fa')]?_0xf3fc2e('0x16c2')+_0x30d01e[_0xf3fc2e('0x2fa')]+_0xf3fc2e('0x169e')+_0x30d01e[_0xf3fc2e('0x24df')]:'api.staff.save','msg':_0x30d01e[_0xf3fc2e('0x10fd')]?JSON[_0xf3fc2e('0xa48')](_0x30d01e['data'][_0xf3fc2e('0x1402')]):_0x30d01e[_0xf3fc2e('0x684')]()});});}function _0x49a954(_0x416156){var _0x35d954=_0x2d8f67;return _0x1b9292[_0x35d954('0x272b')][_0x35d954('0x297')]({'id':_0x416156['id']})['$promise'][_0x35d954('0xaa5')](function(_0x3dc1ff){var _0x27c554=_0x35d954;_0x3d26f6[_0x27c554('0x1717')][_0x416156['id']]&&_0x51538b()['merge'](_0x3d26f6[_0x27c554('0x1717')][_0x416156['id']],_0x51538b()[_0x27c554('0x104e')](_0x3dc1ff,_0x4db386)),_0x3d26f6['rpcAgents'][_0x416156['id']]&&_0x51538b()[_0x27c554('0x283c')](_0x3d26f6[_0x27c554('0x1f1d')][_0x416156['id']],_0x51538b()[_0x27c554('0x104e')](_0x3dc1ff,_0x4db386)),_0x259617(_0x3d26f6[_0x27c554('0x1717')][_0x416156['id']]);})[_0x35d954('0x253d')](function(_0x514f88){var _0x28f662=_0x35d954;_0x195213[_0x28f662('0x187f')]({'title':_0x514f88[_0x28f662('0x2fa')]?_0x28f662('0x16c2')+_0x514f88[_0x28f662('0x2fa')]+_0x28f662('0x169e')+_0x514f88[_0x28f662('0x24df')]:_0x28f662('0xb8c'),'msg':_0x514f88['data']?JSON[_0x28f662('0xa48')](_0x514f88[_0x28f662('0x10fd')]['message']):_0x514f88[_0x28f662('0x684')]()});});}function _0x834920(_0x19ae89){var _0x4b8787=_0x2d8f67;_0x2621ea[_0x4b8787('0x1e6d')](_0x2621ea['alert']()[_0x4b8787('0x22b9')](!![])[_0x4b8787('0x110a')](_0x4b8787('0x17e'))[_0x4b8787('0x102e')](_0x4b8787('0x9b3'))['ok']('Ok')[_0x4b8787('0x116d')](_0x19ae89));}function _0x4be21c(_0x912722,_0x1209b3){var _0x2d010e=_0x2d8f67;_0x2621ea['show']({'controller':_0x2d010e('0x1200'),'controllerAs':'vm','templateUrl':_0x3a2df9,'parent':angular[_0x2d010e('0x1aa8')](_0x3f0fd8['body']),'targetEvent':_0x1209b3,'clickOutsideToClose':!![],'locals':{'agent':_0x912722,'agents':[],'channel':'openchannel','direction':_0x2d010e('0x4b8'),'crudPermissions':_0x3d26f6[_0x2d010e('0xada')]}});}function _0x2eea52(_0x4518dd){var _0x349d61=_0x2d8f67;return _0x4518dd===_0x349d61('0x167c')||_0x4518dd===_0x349d61('0xa7d');}function _0x55da87(_0x2e57bf){var _0x30713e=_0x2d8f67;return _0x2e57bf===_0x30713e('0x167c');}function _0x23c581(_0x2fa675){var _0x7d9b44=_0x2d8f67;return _0x2fa675===_0x7d9b44('0xa7d');}function _0x4a5d64(_0x5a2e0e){var _0x194ee2=_0x2d8f67;return _0x5a2e0e==='idle'||_0x5a2e0e===_0x194ee2('0x15fd')||_0x5a2e0e==='unavailable'||_0x5a2e0e===_0x194ee2('0xb02')||_0x51538b()[_0x194ee2('0x89a')](_0x5a2e0e);}function _0x30a230(_0x416c19,_0x5b4e30){var _0x4e5f06=_0x2d8f67;if(_0x5b4e30===_0x4e5f06('0x1b9')){if(_0x416c19[_0x5b4e30+_0x4e5f06('0x26ae')]!==_0x4e5f06('0x135e'))return _0x416c19[_0x5b4e30+_0x4e5f06('0x26ae')];if(_0x416c19[_0x5b4e30+_0x4e5f06('0x1bcd')])return _0x416c19[_0x5b4e30+_0x4e5f06('0x26ae')]=_0x4e5f06('0x167c'),_0x4e5f06('0x167c');return _0x4e5f06('0x135e');}else{if(_0x416c19[_0x5b4e30+_0x4e5f06('0x1bcd')])return _0x416c19[_0x5b4e30+_0x4e5f06('0x26ae')]=_0x4e5f06('0x167c'),_0x4e5f06('0x167c');return _0x416c19[_0x5b4e30+'Status'];}}function _0x259617(_0x5d4bcd){var _0x11b817=_0x2d8f67,_0x266f9d='unknown';if(_0x51538b()['every']([_0x30a230(_0x5d4bcd,_0x11b817('0x1b9')),_0x30a230(_0x5d4bcd,_0x11b817('0x20f9')),_0x30a230(_0x5d4bcd,_0x11b817('0x14c5')),_0x30a230(_0x5d4bcd,_0x11b817('0x170')),_0x30a230(_0x5d4bcd,'sms'),_0x30a230(_0x5d4bcd,_0x11b817('0x220d')),_0x30a230(_0x5d4bcd,_0x11b817('0x16c4'))],_0x2eea52))_0x266f9d=_0x11b817('0x167c');else{if(_0x51538b()[_0x11b817('0x2c2')]([_0x30a230(_0x5d4bcd,'voice'),_0x30a230(_0x5d4bcd,'chat'),_0x30a230(_0x5d4bcd,'mail'),_0x30a230(_0x5d4bcd,'openchannel'),_0x30a230(_0x5d4bcd,_0x11b817('0x18da')),_0x30a230(_0x5d4bcd,_0x11b817('0x220d')),_0x30a230(_0x5d4bcd,_0x11b817('0x16c4'))],_0x2eea52))_0x266f9d=_0x11b817('0xa7d');else _0x51538b()['every']([_0x30a230(_0x5d4bcd,_0x11b817('0x1b9')),_0x30a230(_0x5d4bcd,_0x11b817('0x20f9')),_0x30a230(_0x5d4bcd,_0x11b817('0x14c5')),_0x30a230(_0x5d4bcd,'openchannel'),_0x30a230(_0x5d4bcd,_0x11b817('0x18da')),_0x30a230(_0x5d4bcd,'whatsapp'),_0x30a230(_0x5d4bcd,_0x11b817('0x16c4'))],_0x4a5d64)?_0x266f9d=_0x11b817('0x135e'):_0x266f9d=_0x11b817('0xa1e');}_0x5d4bcd[_0x11b817('0x151c')]!==_0x266f9d&&(_0x5d4bcd['globalStatus']=_0x266f9d,_0x5d4bcd['init']?(_0x5d4bcd[_0x11b817('0x2e')]=![],_0x5d4bcd['globalStatusTime']=_0x2eea52(_0x266f9d)?_0x51538b()[_0x11b817('0x228e')](_0x420d43()(_0x5d4bcd[_0x11b817('0x1ce0')])[_0x11b817('0x1f27')]('x')):_0x51538b()[_0x11b817('0x4c2')]([_0x5d4bcd[_0x11b817('0x1ddc')],_0x5d4bcd['chatStatusTime'],_0x5d4bcd[_0x11b817('0xd27')],_0x5d4bcd[_0x11b817('0x1561')],_0x5d4bcd[_0x11b817('0x166b')],_0x5d4bcd['openchannelStatusTime'],_0x5d4bcd[_0x11b817('0xa0a')]])):_0x5d4bcd[_0x11b817('0x920')]=_0x51538b()['toNumber'](_0x420d43()()['format']('x')));}function _0x125afe(_0x10da60){var _0x459334=_0x2d8f67,_0x4c95d0=_0x51538b()[_0x459334('0x6e8')](_0x3d26f6[_0x459334('0x582')]['order'],'-')?_0x459334('0x71c'):_0x459334('0x14b9');return _0x51538b()[_0x459334('0x271d')](_0x10da60,[_0x3d26f6['query'][_0x459334('0x1536')][_0x459334('0x170d')]('-','')],[_0x4c95d0]);}function _0x433721(){_0x2ff681&&(_0x3c6db6['cancel'](_0x2ff681),_0x2ff681=null);}function _0x34ff80(_0x22a4a7,_0x1dfd00){var _0x3fe36c=_0x2d8f67;return _0x1b9292[_0x3fe36c('0x272b')][_0x3fe36c('0x264e')]({'id':_0x22a4a7['id']},{'screenrecording':_0x1dfd00})['$promise'][_0x3fe36c('0x253d')](function(_0x3fe3c1){var _0xb1c79c=_0x3fe36c;_0x195213[_0xb1c79c('0x187f')]({'title':_0x3fe3c1[_0xb1c79c('0x2fa')]?_0xb1c79c('0x16c2')+_0x3fe3c1[_0xb1c79c('0x2fa')]+_0xb1c79c('0x169e')+_0x3fe3c1['statusText']:'api.user.update','msg':_0x3fe3c1[_0xb1c79c('0x10fd')]?JSON[_0xb1c79c('0xa48')](_0x3fe3c1['data'][_0xb1c79c('0x1402')]):_0x3fe3c1['toString']()});});}_0x3743eb[_0x2d8f67('0xc75')](_0x2d8f67('0x12d0'),function(){var _0x21082b=_0x2d8f67;_0xbe9076[_0x21082b('0x2629')](_0x21082b('0x1acf')),_0xbe9076[_0x21082b('0x2629')]('user:update'),_0xbe9076[_0x21082b('0x2629')](_0x21082b('0x25ea')),_0xbe9076['removeAllListeners']('user:agentcomplete'),_0x433721();});}const _0x4b8d9e=_0x4e95f3,_0x3da0ad=_0x4fb511['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.html/dialog-[chunkhash].html',_0x4398e3=_0x4fb511['p']+_0x1a8446('0x157f');_0x26833b[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$q',_0x1a8446('0x39b'),_0x1a8446('0x21b3'),'queues','rpcQueues','api','socket',_0x1a8446('0x2a4'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x26833b(_0x17af59,_0x2a5a76,_0x6c17c4,_0x3bf86e,_0x149088,_0x4bcec2,_0x285696,_0x5ecdb7,_0x15cb45,_0xa2cd57,_0x4ea33e,_0xaf21f4,_0x430f56,_0x581fd9){var _0x247231=_0x1a8446,_0x1c4a5e=this,_0x25f097=[_0x247231('0x2226'),_0x247231('0x1ade'),_0x247231('0xd3d'),_0x247231('0xf01'),_0x247231('0x1a56'),_0x247231('0x301'),_0x247231('0x1402'),'dialActive',_0x247231('0x1ba1'),_0x247231('0x4a6'),'paused'];_0x1c4a5e[_0x247231('0x7fc')]=_0x581fd9['getCurrentUser'](),_0x1c4a5e[_0x247231('0xd15')]=_0x285696[_0x247231('0xd15')]?_0x285696[_0x247231('0xd15')]:0x0,_0x1c4a5e['queues']=_0x285696?_0x51538b()['keyBy'](_0x285696['rows']?_0x285696['rows']:[],'id'):{},_0x1c4a5e[_0x247231('0x1f2f')]=_0x5ecdb7?_0x51538b()[_0x247231('0x184a')](_0x5ecdb7['rows']?_0x5ecdb7[_0x247231('0x580')]:[],'id'):{},_0x1c4a5e[_0x247231('0x1e97')]=_0xaf21f4,_0x1c4a5e[_0x247231('0x1a50')]=_0x430f56&&_0x430f56[_0x247231('0xd15')]==0x1?_0x430f56[_0x247231('0x580')][0x0]:null,_0x1c4a5e[_0x247231('0xada')]=_0x581fd9[_0x247231('0xffd')](_0x1c4a5e[_0x247231('0x1a50')]?_0x1c4a5e[_0x247231('0x1a50')]['crudPermissions']:null);_0x581fd9[_0x247231('0x26e8')](_0x247231('0x178b'))?_0x1c4a5e[_0x247231('0x582')]={'type':_0x247231('0x4b8'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x1c4a5e[_0x247231('0x582')]={'id':_0x1c4a5e[_0x247231('0x7fc')]['id'],'channel':_0x247231('0x170'),'type':_0x247231('0x4b8'),'sort':_0x247231('0xd82'),'limit':0xa,'page':0x1};_0x1c4a5e['success']=_0x1e0a80,_0x1c4a5e[_0x247231('0x1e87')]=_0x15c559,_0x1c4a5e[_0x247231('0xc0c')]=_0x3e8004,_0x1c4a5e[_0x247231('0x101f')]=_0x434013,_0x1c4a5e[_0x247231('0x19b3')]=_0x55a8e4,_0x1c4a5e['onSave']=_0x32bcbe,_0x1c4a5e['onSaveMember']=_0x24e211,_0x1c4a5e[_0x247231('0x6d4')]=_0x2d6893,_0x1c4a5e[_0x247231('0x2511')]=_0x4ece3c,_0x1c4a5e[_0x247231('0x24d2')]=_0x50da4c,_0x1c4a5e[_0x247231('0x10c6')]=_0xc5477,_0x1c4a5e[_0x247231('0x141')]=_0x520c1b,_0x1c4a5e['order']=[],_0x51538b()[_0x247231('0x143e')](_0x1c4a5e[_0x247231('0x4d7')],function(_0x39e2d9){var _0x1618d3=_0x247231;_0x1c4a5e[_0x1618d3('0x1536')][_0x1618d3('0x1599')](_0x39e2d9['id']);}),_0xa2cd57['on']('openchannel_queue:save',_0x1c4a5e[_0x247231('0x1a4b')]),_0xa2cd57['on'](_0x247231('0x132d'),_0x1c4a5e['onSaveMember']),_0xa2cd57['on'](_0x247231('0x18dc'),_0x1c4a5e[_0x247231('0x6d4')]),_0xa2cd57['on'](_0x247231('0x15fb'),_0x1c4a5e[_0x247231('0x2511')]),_0xa2cd57['on'](_0x247231('0x10ac'),_0x1c4a5e[_0x247231('0x10c6')]),_0xa2cd57['on']('userVoiceQueue:save',_0x1c4a5e['onLogin']);function _0x520c1b(){var _0x322393=_0x247231,_0xc73b9=[];return _0x51538b()[_0x322393('0x143e')](_0x1c4a5e[_0x322393('0x4d7')],function(_0x24372b,_0x457aef){var _0x15f542=_0x322393;_0x24372b[_0x15f542('0x16ce')]=0x0,_0x24372b['loggedInDb']=0x0,_0x1c4a5e['queues'][_0x457aef]['agents']={},_0xc73b9['push'](_0x15cb45[_0x15f542('0x21b2')][_0x15f542('0xc8e')]({'id':_0x457aef})[_0x15f542('0x1dc2')]),_0x1c4a5e[_0x15f542('0x1f2f')][_0x457aef]&&_0x51538b()[_0x15f542('0x283c')](_0x24372b,_0x51538b()[_0x15f542('0x104e')](_0x1c4a5e[_0x15f542('0x1f2f')][_0x457aef],_0x25f097));}),_0x3bf86e['all'](_0xc73b9)['then'](function(_0x4d2f0e){var _0xeed0e8=_0x322393;for(var _0x2ee3b7=0x0;_0x2ee3b7<_0x4d2f0e[_0xeed0e8('0x2587')];_0x2ee3b7+=0x1){for(var _0x4bf948=0x0;_0x4bf948<_0x4d2f0e[_0x2ee3b7][_0xeed0e8('0x580')][_0xeed0e8('0x2587')];_0x4bf948++){_0x4d2f0e[_0x2ee3b7][_0xeed0e8('0x580')][_0x4bf948][_0xeed0e8('0x16ce')]&&_0x1c4a5e[_0xeed0e8('0x4d7')][_0x4d2f0e[_0x2ee3b7]['rows'][_0x4bf948][_0xeed0e8('0x564')]][_0xeed0e8('0x16ce')]++,_0x1c4a5e[_0xeed0e8('0x4d7')][_0x4d2f0e[_0x2ee3b7][_0xeed0e8('0x580')][_0x4bf948]['OpenchannelQueueId']][_0xeed0e8('0xe81')]++,_0x1c4a5e[_0xeed0e8('0x4d7')][_0x4d2f0e[_0x2ee3b7]['rows'][_0x4bf948][_0xeed0e8('0x564')]][_0xeed0e8('0x1717')][_0x4d2f0e[_0x2ee3b7][_0xeed0e8('0x580')][_0x4bf948][_0xeed0e8('0x1037')]]=_0x4d2f0e[_0x2ee3b7][_0xeed0e8('0x580')][_0x4bf948][_0xeed0e8('0x564')];}}})['catch'](function(_0x1971d6){var _0x1cd1cd=_0x322393;console[_0x1cd1cd('0x187f')](_0x1971d6);});}function _0x32bcbe(_0x5886f6){var _0x2ec318=_0x247231;_0x1c4a5e['queues'][_0x5886f6['id']]&&_0x51538b()[_0x2ec318('0x283c')](_0x1c4a5e[_0x2ec318('0x4d7')][_0x5886f6['id']],_0x51538b()[_0x2ec318('0x104e')](_0x5886f6,_0x25f097));}function _0x24e211(_0x3e30eb){var _0x40c19c=_0x247231;_0x1c4a5e[_0x40c19c('0x4d7')][_0x3e30eb[_0x40c19c('0x564')]]&&_0x1c4a5e[_0x40c19c('0x4d7')][_0x3e30eb[_0x40c19c('0x564')]][_0x40c19c('0xe81')]++;}function _0x2d6893(_0x3cf210){var _0x33aa95=_0x247231;_0x1c4a5e[_0x33aa95('0x4d7')][_0x3cf210[_0x33aa95('0x564')]]&&_0x1c4a5e[_0x33aa95('0x4d7')][_0x3cf210['OpenchannelQueueId']][_0x33aa95('0xe81')]--;}function _0x4ece3c(_0x16ca2f){var _0x279e7e=_0x247231;console[_0x279e7e('0x18d5')](_0x279e7e('0x2511'),_0x16ca2f);if(_0x16ca2f[_0x279e7e('0x2519')])_0x51538b()[_0x279e7e('0x143e')](_0x1c4a5e['queues'],function(_0x2b8dcf){var _0x37d06c=_0x279e7e;_0x2b8dcf[_0x37d06c('0x1717')][_0x16ca2f['id']]&&(_0x2b8dcf[_0x37d06c('0x16ce')]+=0x1,console[_0x37d06c('0x18d5')](_0x37d06c('0x167c')));});else!_0x16ca2f['voicePause']&&_0x51538b()[_0x279e7e('0x143e')](_0x1c4a5e[_0x279e7e('0x4d7')],function(_0x24713b){var _0x1d609c=_0x279e7e;_0x24713b['agents'][_0x16ca2f['id']]&&(_0x24713b['paused']>0x0&&(_0x24713b[_0x1d609c('0x16ce')]-=0x1,console[_0x1d609c('0x18d5')]('unpause')));});}function _0x50da4c(_0xec707e){var _0xd46d=_0x247231;console[_0xd46d('0x18d5')](_0xd46d('0x1044'),_0xec707e),_0x1c4a5e['queues'][_0xec707e[_0xd46d('0x564')]]&&(_0x1c4a5e[_0xd46d('0x4d7')][_0xec707e[_0xd46d('0x564')]]['loggedInDb']+=0x1,_0x1c4a5e[_0xd46d('0x4d7')][_0xec707e[_0xd46d('0x564')]][_0xd46d('0x1717')][_0xec707e[_0xd46d('0x1037')]]=_0xec707e[_0xd46d('0x564')]);}function _0xc5477(_0x1b3357){var _0x534c44=_0x247231;console[_0x534c44('0x18d5')](_0x534c44('0x10c6'),_0x1b3357),_0x1c4a5e['queues'][_0x1b3357[_0x534c44('0x564')]]&&_0x1c4a5e[_0x534c44('0x4d7')][_0x1b3357[_0x534c44('0x564')]]['loggedInDb']>0x0&&(_0x1c4a5e['queues'][_0x1b3357[_0x534c44('0x564')]][_0x534c44('0xe81')]-=0x1,delete _0x1c4a5e[_0x534c44('0x4d7')][_0x1b3357[_0x534c44('0x564')]][_0x534c44('0x1717')][_0x1b3357['UserId']]);}var _0x1f70e3=!![],_0x9405d9=0x1;_0x17af59['$watch'](_0x247231('0x1788'),function(_0x295c8d,_0x31a232){var _0x309f05=_0x247231;_0x1f70e3?_0x2a5a76(function(){_0x1f70e3=![];}):(!_0x31a232&&(_0x9405d9=_0x1c4a5e[_0x309f05('0x582')]['page']),_0x295c8d!==_0x31a232&&(_0x1c4a5e['query']['page']=0x1),!_0x295c8d&&(_0x1c4a5e[_0x309f05('0x582')][_0x309f05('0x41')]=_0x9405d9),_0x1c4a5e[_0x309f05('0x1e87')]());});function _0x1e0a80(_0x116171){var _0x149fd7=_0x247231;_0x1c4a5e[_0x149fd7('0xd15')]=_0x116171[_0x149fd7('0xd15')],_0x1c4a5e[_0x149fd7('0x4d7')]=_0x116171?_0x51538b()[_0x149fd7('0x184a')](_0x116171[_0x149fd7('0x580')]?_0x116171['rows']:[],'id'):{};if(_0x116171[_0x149fd7('0x580')]){_0x1c4a5e[_0x149fd7('0x1536')]=[];for(var _0xc53974=0x0;_0xc53974<_0x116171['rows']['length'];_0xc53974++){_0x1c4a5e['order'][_0x149fd7('0x1599')](_0x116171[_0x149fd7('0x580')][_0xc53974]['id']);}}_0x520c1b();}function _0x15c559(){var _0x24fa4e=_0x247231;_0x1c4a5e[_0x24fa4e('0x582')]['offset']=(_0x1c4a5e[_0x24fa4e('0x582')][_0x24fa4e('0x41')]-0x1)*_0x1c4a5e['query'][_0x24fa4e('0xf4d')],_0x581fd9['hasRole'](_0x24fa4e('0x178b'))?_0x1c4a5e[_0x24fa4e('0x159a')]=_0x15cb45[_0x24fa4e('0x21b2')][_0x24fa4e('0x2122')](_0x1c4a5e[_0x24fa4e('0x582')],_0x1e0a80)[_0x24fa4e('0x1dc2')]:(_0x1c4a5e[_0x24fa4e('0x582')]['id']=_0x1c4a5e['userProfile']['id'],_0x1c4a5e[_0x24fa4e('0x582')][_0x24fa4e('0x224d')]='OpenchannelQueues',_0x1c4a5e[_0x24fa4e('0x159a')]=_0x15cb45[_0x24fa4e('0x1e97')]['getResources'](_0x1c4a5e[_0x24fa4e('0x582')],_0x1e0a80)[_0x24fa4e('0x1dc2')]);}function _0x3e8004(_0x59b7fe,_0x4c555b){var _0x593660=_0x247231;_0x6c17c4[_0x593660('0x1e6d')]({'controller':_0x593660('0x2266'),'controllerAs':'vm','templateUrl':_0x3da0ad,'parent':angular['element'](_0x149088[_0x593660('0x54c')]),'targetEvent':_0x59b7fe,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x4c555b,'openchannelQueues':_0x51538b()[_0x593660('0x3c5')](_0x1c4a5e[_0x593660('0x4d7')]),'license':null,'setting':null,'crudPermissions':_0x1c4a5e[_0x593660('0xada')]}});}function _0x434013(_0x59ed81,_0x85cac1){var _0x5a8eb1=_0x247231;_0x6c17c4[_0x5a8eb1('0x1e6d')]({'controller':_0x5a8eb1('0x25f2'),'controllerAs':'vm','templateUrl':_0x4398e3,'parent':angular['element'](_0x149088[_0x5a8eb1('0x54c')]),'targetEvent':_0x59ed81,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x85cac1,'openchannelQueues':_0x1c4a5e[_0x5a8eb1('0x4d7')]?_0x1c4a5e[_0x5a8eb1('0x4d7')][_0x5a8eb1('0x580')]:[],'realtime':![],'crudPermissions':_0x1c4a5e[_0x5a8eb1('0xada')]}});}function _0x55a8e4(_0x2ee892){var _0x744333=_0x247231;return _0x15cb45[_0x744333('0x21b2')][_0x744333('0x264e')](_0x2ee892)['$promise'][_0x744333('0xaa5')](function(){var _0x37b9d9=_0x744333;_0x4ea33e[_0x37b9d9('0xe10')]({'title':'Queue\x20properly\x20updated!','msg':_0x2ee892[_0x37b9d9('0x25d6')]?_0x2ee892[_0x37b9d9('0x25d6')]+'\x20has\x20been\x20updated!':''});})[_0x744333('0x253d')](function(_0x5e6a52){var _0x133eee=_0x744333;_0x4ea33e[_0x133eee('0x187f')]({'title':_0x133eee('0x777'),'msg':_0x5e6a52[_0x133eee('0x1402')]});});}_0x17af59[_0x247231('0xc75')](_0x247231('0x12d0'),function(){var _0x3bb550=_0x247231;_0xa2cd57[_0x3bb550('0x2629')](_0x3bb550('0x206c')),_0xa2cd57[_0x3bb550('0x2629')](_0x3bb550('0x18dc')),_0xa2cd57[_0x3bb550('0x2629')](_0x3bb550('0x132d')),_0xa2cd57[_0x3bb550('0x2629')](_0x3bb550('0x15fb')),_0xa2cd57[_0x3bb550('0x2629')]('userVoiceQueue:remove'),_0xa2cd57['removeAllListeners'](_0x3bb550('0x77e'));});}const _0x4edd0a=_0x26833b;function _0xaa316a(){var _0x1b6de2=_0x1a8446;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x1b6de2('0x15cb'),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0x1b6de2('0x1'),'unreachable':_0x1b6de2('0x15cb'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x1b6de2('0xc98'),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x1b6de2('0x15a1'),'busy':_0x1b6de2('0xb2'),'invalid':_0x1b6de2('0xc98'),'unavailable':_0x1b6de2('0xc98'),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x1b6de2('0x1dac'),'onhold':_0x1b6de2('0xcf5')},'channelStatus':{'ring':_0x1b6de2('0x1dac'),'up':_0x1b6de2('0xe58'),'hangup':_0x1b6de2('0x182a')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x1b6de2('0xe58'),'hangup':_0x1b6de2('0x182a')}};}const _0x11d292=_0xaa316a;_0x2cb02b['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0xe74')];function _0x2cb02b(_0x11a244,_0x55a9d6,_0x18f6cc){var _0x2fde75=_0x1a8446,_0xbac7af=this;_0x18f6cc[_0x2fde75('0x18d1')](),_0x18f6cc[_0x2fde75('0x16dc')](),_0xbac7af[_0x2fde75('0xe5c')]=0x0;switch(_0x55a9d6['current'][_0x2fde75('0x25d6')]){case _0x2fde75('0x18fd'):_0xbac7af[_0x2fde75('0xe5c')]=0x0;break;case _0x2fde75('0x1335'):_0xbac7af['selectedTab']=0x1;break;default:_0xbac7af[_0x2fde75('0xe5c')]=0x0,_0x55a9d6['go'](_0x2fde75('0x18fd'));}_0x11a244['$watch'](_0x2fde75('0xf1a'),function(_0x5d55d8,_0x11e057){var _0x5761a8=_0x2fde75;if(_0x5d55d8!==_0x11e057)switch(_0x5d55d8){case 0x0:_0x55a9d6['go']('app.openchannel.realtime.agents');break;case 0x1:_0x55a9d6['go'](_0x5761a8('0x1335'));break;default:_0x55a9d6['go'](_0x5761a8('0x18fd'));}});}const _0x56b624=_0x2cb02b;_0x21ca60[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x21ca60(_0x36d1df){var _0x37e9bf=_0x1a8446;_0x36d1df['state'](_0x37e9bf('0x36b'),{'url':_0x37e9bf('0x22d4'),'views':{'content@app':{'templateUrl':_0x53d1c6,'controller':_0x37e9bf('0x1453')}},'resolve':{'userProfile':[_0x37e9bf('0x1d16'),'Auth',function _0x9ddd50(_0x4c208f,_0x335966){var _0xe31606=_0x37e9bf;return _0x335966[_0xe31606('0x26e8')](_0xe31606('0x178b'))?null:_0x4c208f[_0xe31606('0x149f')](_0xe31606('0x567'),{'fields':_0xe31606('0x1bb0'),'id':_0x335966[_0xe31606('0xacc')]()[_0xe31606('0x2168')]});}],'userProfileSection':['apiResolver',_0x37e9bf('0x1dfd'),function _0x217838(_0xb7cd95,_0x8cba34){var _0x442bde=_0x37e9bf;return _0x8cba34[_0x442bde('0x26e8')]('admin')?null:_0xb7cd95['resolve'](_0x442bde('0x89e'),{'fields':_0x442bde('0xe6a'),'userProfileId':_0x8cba34['getCurrentUser']()[_0x442bde('0x2168')],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})['state'](_0x37e9bf('0x18fd'),{'url':_0x37e9bf('0x141f'),'controller':_0x37e9bf('0x1b2c'),'templateUrl':_0x48e427,'resolve':{'pauses':[_0x37e9bf('0x1d16'),function _0x39e6db(_0x1d8635){var _0x173597=_0x37e9bf;return _0x1d8635['resolve'](_0x173597('0x56b'),{'nolimit':!![]});}],'agents':[_0x37e9bf('0x1d16'),_0x37e9bf('0x1dfd'),function _0x29e772(_0x3326c1,_0x3b943f){var _0xd70c5f=_0x37e9bf;return _0x3b943f[_0xd70c5f('0x26e8')](_0xd70c5f('0x178b'))?_0x3326c1[_0xd70c5f('0x149f')](_0xd70c5f('0xde4'),{'fields':_0xd70c5f('0x515'),'role':_0xd70c5f('0xeff'),'sort':_0xd70c5f('0x18e5'),'nolimit':!![]}):_0x3326c1[_0xd70c5f('0x149f')](_0xd70c5f('0x49a'),{'id':_0x3b943f[_0xd70c5f('0xacc')]()[_0xd70c5f('0x2168')],'section':_0xd70c5f('0x91a'),'fields':_0xd70c5f('0x515'),'role':_0xd70c5f('0xeff'),'sort':_0xd70c5f('0x18e5'),'nolimit':!![]});}],'userProfile':['apiResolver','Auth',function _0x26332e(_0x5cbd78,_0x52f44a){var _0x5d9e51=_0x37e9bf;return _0x52f44a[_0x5d9e51('0x26e8')](_0x5d9e51('0x178b'))?null:_0x5cbd78[_0x5d9e51('0x149f')](_0x5d9e51('0x567'),{'fields':_0x5d9e51('0x1bb0'),'id':_0x52f44a['getCurrentUser']()[_0x5d9e51('0x2168')]});}],'userProfileSection':[_0x37e9bf('0x1d16'),'Auth',function _0x405071(_0x5812e5,_0x145608){var _0x3f7829=_0x37e9bf;return _0x145608[_0x3f7829('0x26e8')](_0x3f7829('0x178b'))?null:_0x5812e5[_0x3f7829('0x149f')](_0x3f7829('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x145608['getCurrentUser']()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x37e9bf('0x1d16'),function _0x1cabb6(_0x193321){var _0x4147b5=_0x37e9bf;return _0x193321[_0x4147b5('0x149f')](_0x4147b5('0x1809'));}]},'authenticate':!![],'permissionId':0x32a})[_0x37e9bf('0xb46')](_0x37e9bf('0x1335'),{'url':'/queues','controller':_0x37e9bf('0x284f'),'templateUrl':_0x118987,'resolve':{'queues':['apiResolver','Auth',function _0x44d464(_0x307fa3,_0x3dad99){var _0x341efc=_0x37e9bf;return _0x3dad99[_0x341efc('0x26e8')](_0x341efc('0x178b'))?_0x307fa3[_0x341efc('0x149f')]('openchannelQueue@get',{'type':_0x341efc('0x4b8'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x307fa3['resolve'](_0x341efc('0x49a'),{'id':_0x3dad99[_0x341efc('0xacc')]()[_0x341efc('0x2168')],'section':'OpenchannelQueues','channel':_0x341efc('0x170'),'type':_0x341efc('0x4b8'),'sort':_0x341efc('0xd82'),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver','Auth',function _0x17804b(_0x26f1bd,_0x35c1cc){var _0x9fd960=_0x37e9bf;return _0x35c1cc[_0x9fd960('0x26e8')](_0x9fd960('0x178b'))?null:_0x26f1bd[_0x9fd960('0x149f')](_0x9fd960('0x567'),{'fields':_0x9fd960('0x1bb0'),'id':_0x35c1cc[_0x9fd960('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x37e9bf('0x1d16'),_0x37e9bf('0x1dfd'),function _0x32e9ca(_0x28d276,_0x1259ea){var _0x35e578=_0x37e9bf;return _0x1259ea[_0x35e578('0x26e8')](_0x35e578('0x178b'))?null:_0x28d276[_0x35e578('0x149f')](_0x35e578('0x89e'),{'fields':_0x35e578('0xe6a'),'userProfileId':_0x1259ea[_0x35e578('0xacc')]()[_0x35e578('0x2168')],'sectionId':0x321});}],'rpcQueues':['apiResolver',function _0x56a631(_0x2ee5d9){var _0x188604=_0x37e9bf;return _0x2ee5d9[_0x188604('0x149f')](_0x188604('0x1d85'));}]},'authenticate':!![],'permissionId':0x32a});}angular['module'](_0x1a8446('0x36b'),[])[_0x1a8446('0x1b14')](_0x21ca60)['controller']('AgentsOpenchannelRealtimeController',_0x4b8d9e)[_0x1a8446('0x780')](_0x1a8446('0x1fc6'),_0x4edd0a)[_0x1a8446('0x1be9')]('helperClasses',_0x11d292)[_0x1a8446('0x780')]('OpenchannelRealtimeController',_0x56b624);const _0x1e0595=_0x4fb511['p']+_0x1a8446('0x2742'),_0x3ef898=_0x4fb511['p']+_0x1a8446('0x1ae0'),_0x235931=_0x4fb511['p']+_0x1a8446('0x95a'),_0x16529b=_0x4fb511['p']+_0x1a8446('0x237e');_0x399a20['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'openchannelAccounts',_0x1a8446('0x2566'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x399a20(_0x495534,_0x2a0d61,_0x11ce87,_0x2de45c,_0xe303b7,_0x480a93,_0x4ef67c,_0x482fa2,_0x205369,_0x56066c,_0x1edede,_0x186e89,_0x49ad4e,_0x5d064d){var _0x427c13=_0x1a8446,_0x340ba5=this;_0x340ba5[_0x427c13('0x7fc')]=_0x1edede[_0x427c13('0xacc')](),_0x340ba5[_0x427c13('0x4c6')]=[],_0x340ba5[_0x427c13('0x143f')]=_0x49ad4e,_0x340ba5[_0x427c13('0x1202')]=_0x186e89,_0x340ba5[_0x427c13('0xada')]=_0x5d064d,_0x340ba5[_0x427c13('0x9f0')]={},_0x340ba5[_0x427c13('0x1d53')]=_0x340ba5[_0x427c13('0x143f')]&&_0x340ba5[_0x427c13('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x340ba5['title']=_0x427c13('0x19a5'),_0x340ba5['openchannelAccount']=angular[_0x427c13('0x20a')](_0x205369),_0x340ba5['openchannelAccounts']=_0x482fa2,_0x340ba5[_0x427c13('0x1591')]=![];!_0x340ba5[_0x427c13('0x2566')]&&(_0x340ba5['openchannelAccount']={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x340ba5[_0x427c13('0x110a')]=_0x427c13('0x23ef'),_0x340ba5[_0x427c13('0x1591')]=!![]);_0x2a0d61['params']['id']&&(_0x340ba5[_0x427c13('0x2566')][_0x427c13('0x62c')]=_0x2a0d61[_0x427c13('0x25cf')]['id']);_0x340ba5[_0x427c13('0x13ef')]=_0x5ce84b,_0x340ba5[_0x427c13('0x43d')]=_0x44819a,_0x340ba5[_0x427c13('0x1fea')]=_0x45c514,_0x340ba5['getDateFromString']=_0x353028,_0x340ba5[_0x427c13('0x2023')]=_0x4b2702,_0x1edede[_0x427c13('0x26e8')](_0x427c13('0x178b'))?_0x56066c[_0x427c13('0x26b4')][_0x427c13('0x2122')]({'fields':_0x427c13('0x17fe'),'sort':_0x427c13('0x25d6')})[_0x427c13('0x1dc2')][_0x427c13('0xaa5')](function(_0x1a9ce3){var _0x43e629=_0x427c13;_0x340ba5[_0x43e629('0x1126')]=_0x1a9ce3[_0x43e629('0x580')]||[];})[_0x427c13('0x253d')](function(_0x20b76e){var _0x42fe5d=_0x427c13;_0x4ef67c[_0x42fe5d('0x187f')]({'title':_0x20b76e[_0x42fe5d('0x2fa')]?_0x42fe5d('0x16c2')+_0x20b76e[_0x42fe5d('0x2fa')]+_0x42fe5d('0x169e')+_0x20b76e[_0x42fe5d('0x24df')]:'SYSTEM:GET_LISTS','msg':_0x20b76e['data']?JSON[_0x42fe5d('0xa48')](_0x20b76e['data']):_0x20b76e[_0x42fe5d('0x684')]()});}):_0x56066c[_0x427c13('0x26b4')]['get']({'fields':_0x427c13('0x17fe'),'sort':'name'})[_0x427c13('0x1dc2')]['then'](function(_0x3e59df){var _0x2a259a=_0x427c13;_0x340ba5[_0x2a259a('0x1126')]=_0x3e59df[_0x2a259a('0x580')]||[];})['then'](function(){var _0x24686a=_0x427c13;return _0x56066c[_0x24686a('0x1a50')]['get']({'userProfileId':_0x340ba5['currentUser']['userProfileId'],'sectionId':0x12d})[_0x24686a('0x1dc2')];})[_0x427c13('0xaa5')](function(_0x3a73bc){var _0x83803a=_0x427c13,_0x405bc6=_0x3a73bc&&_0x3a73bc[_0x83803a('0x580')]?_0x3a73bc['rows'][0x0]:null;if(!_0x405bc6){var _0x4c88a3=[],_0x3a1953=null;_0x340ba5['openchannelAccount']&&(_0x3a1953=_0x51538b()[_0x83803a('0xe9e')](_0x340ba5[_0x83803a('0x1126')],{'id':Number(_0x340ba5[_0x83803a('0x2566')][_0x83803a('0xee0')])}));for(var _0x4e1ed1=0x0;_0x4e1ed1<_0x340ba5[_0x83803a('0x1126')][_0x83803a('0x2587')];_0x4e1ed1++){_0x3a1953&&_0x340ba5['lists'][_0x4e1ed1]['id']===_0x3a1953['id']&&(_0x340ba5[_0x83803a('0x1126')][_0x4e1ed1][_0x83803a('0x12eb')]=![],_0x4c88a3[_0x83803a('0x1599')](_0x340ba5[_0x83803a('0x1126')][_0x4e1ed1]));}_0x340ba5[_0x83803a('0x1126')]=_0x4c88a3;}else{if(!_0x405bc6[_0x83803a('0x26cc')])return _0x56066c['userProfileResource'][_0x83803a('0x2122')]({'sectionId':_0x405bc6['id']})['$promise'][_0x83803a('0xaa5')](function(_0x25eeb8){var _0x4f39b4=_0x83803a,_0x1169d6=_0x51538b()[_0x4f39b4('0x1246')](_0x25eeb8['rows'],function(_0x1bc075){var _0x47d51d=_0x4f39b4;return _0x51538b()[_0x47d51d('0xe9e')](_0x340ba5[_0x47d51d('0x1126')],{'id':_0x1bc075[_0x47d51d('0xbcd')]});}),_0x677c91=null;_0x340ba5[_0x4f39b4('0x2566')]&&(_0x677c91=_0x51538b()[_0x4f39b4('0xe9e')](_0x340ba5[_0x4f39b4('0x1126')],{'id':Number(_0x340ba5['openchannelAccount'][_0x4f39b4('0xee0')])}));if(_0x677c91&&!_0x51538b()[_0x4f39b4('0x2c2')](_0x1169d6,['id',_0x677c91['id']])){var _0x16eac3=_0x51538b()['find'](_0x340ba5[_0x4f39b4('0x1126')],{'id':_0x677c91['id']});_0x16eac3[_0x4f39b4('0x12eb')]=![],_0x1169d6['push'](_0x16eac3);}_0x340ba5[_0x4f39b4('0x1126')]=_0x1169d6;});}})[_0x427c13('0x253d')](function(_0x5b1ff3){var _0x12f378=_0x427c13;_0x4ef67c['error']({'title':_0x5b1ff3[_0x12f378('0x2fa')]?'API:'+_0x5b1ff3[_0x12f378('0x2fa')]+'\x20-\x20'+_0x5b1ff3[_0x12f378('0x24df')]:_0x12f378('0x177f'),'msg':_0x5b1ff3[_0x12f378('0x10fd')]?JSON[_0x12f378('0xa48')](_0x5b1ff3['data']):_0x5b1ff3[_0x12f378('0x684')]()});});function _0x5ce84b(){var _0x35a3c5=_0x427c13;_0x340ba5['errors']=[],_0x56066c[_0x35a3c5('0x2566')]['save'](_0x340ba5[_0x35a3c5('0x2566')])[_0x35a3c5('0x1dc2')][_0x35a3c5('0xaa5')](function(_0x44d18a){var _0x1852d3=_0x35a3c5;_0x340ba5[_0x1852d3('0x23f0')][_0x1852d3('0x6ee')](_0x44d18a[_0x1852d3('0x256a')]()),_0x4ef67c['success']({'title':_0x1852d3('0xceb'),'msg':_0x340ba5[_0x1852d3('0x2566')][_0x1852d3('0x25d6')]?_0x340ba5[_0x1852d3('0x2566')][_0x1852d3('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x4b2702(_0x44d18a);})[_0x35a3c5('0x253d')](function(_0x246d8b){var _0x4e42c1=_0x35a3c5;if(_0x246d8b[_0x4e42c1('0x10fd')]&&_0x246d8b[_0x4e42c1('0x10fd')][_0x4e42c1('0x4c6')]&&_0x246d8b[_0x4e42c1('0x10fd')][_0x4e42c1('0x4c6')][_0x4e42c1('0x2587')]){_0x340ba5[_0x4e42c1('0x4c6')]=_0x246d8b[_0x4e42c1('0x10fd')][_0x4e42c1('0x4c6')]||[{'message':_0x246d8b[_0x4e42c1('0x684')](),'type':_0x4e42c1('0x13f3')}];for(var _0x305c34=0x0;_0x305c34<_0x246d8b[_0x4e42c1('0x10fd')][_0x4e42c1('0x4c6')][_0x4e42c1('0x2587')];_0x305c34+=0x1){_0x4ef67c[_0x4e42c1('0x187f')]({'title':_0x246d8b[_0x4e42c1('0x10fd')][_0x4e42c1('0x4c6')][_0x305c34][_0x4e42c1('0x6c8')],'msg':_0x246d8b[_0x4e42c1('0x10fd')]['errors'][_0x305c34][_0x4e42c1('0x1402')]});}}else _0x4ef67c[_0x4e42c1('0x187f')]({'title':_0x246d8b[_0x4e42c1('0x2fa')]?_0x4e42c1('0x16c2')+_0x246d8b['status']+_0x4e42c1('0x169e')+_0x246d8b[_0x4e42c1('0x24df')]:_0x4e42c1('0x13f3'),'msg':_0x246d8b[_0x4e42c1('0x10fd')]?JSON[_0x4e42c1('0xa48')](_0x246d8b[_0x4e42c1('0x10fd')]['message']):_0x246d8b[_0x4e42c1('0x684')]()});});}function _0x44819a(){var _0x260e8b=_0x427c13;_0x340ba5[_0x260e8b('0x4c6')]=[],_0x56066c[_0x260e8b('0x2566')][_0x260e8b('0x264e')]({'id':_0x340ba5[_0x260e8b('0x2566')]['id']},_0x340ba5[_0x260e8b('0x2566')])[_0x260e8b('0x1dc2')][_0x260e8b('0xaa5')](function(_0x1f8fb4){var _0xc5fd4=_0x260e8b,_0x35a817=_0x51538b()[_0xc5fd4('0xe9e')](_0x340ba5['openchannelAccounts'],{'id':_0x1f8fb4['id']});_0x35a817&&_0x51538b()[_0xc5fd4('0x283c')](_0x35a817,_0x51538b()['pick'](_0x1f8fb4[_0xc5fd4('0x256a')](),_0x51538b()[_0xc5fd4('0x9f2')](_0x35a817))),_0x4ef67c['success']({'title':_0xc5fd4('0xb17'),'msg':_0x340ba5[_0xc5fd4('0x2566')]['name']?_0x340ba5['openchannelAccount'][_0xc5fd4('0x25d6')]+_0xc5fd4('0x20bf'):''}),_0x4b2702(_0x1f8fb4);})['catch'](function(_0x97c337){var _0x2745bd=_0x260e8b;if(_0x97c337[_0x2745bd('0x10fd')]&&_0x97c337[_0x2745bd('0x10fd')]['errors']&&_0x97c337['data'][_0x2745bd('0x4c6')][_0x2745bd('0x2587')]){_0x340ba5['errors']=_0x97c337['data']['errors']||[{'message':_0x97c337[_0x2745bd('0x684')](),'type':_0x2745bd('0x885')}];for(var _0x2b9232=0x0;_0x2b9232<_0x97c337[_0x2745bd('0x10fd')][_0x2745bd('0x4c6')][_0x2745bd('0x2587')];_0x2b9232++){_0x4ef67c[_0x2745bd('0x187f')]({'title':_0x97c337[_0x2745bd('0x10fd')][_0x2745bd('0x4c6')][_0x2b9232]['type'],'msg':_0x97c337[_0x2745bd('0x10fd')]['errors'][_0x2b9232][_0x2745bd('0x1402')]});}}else _0x4ef67c[_0x2745bd('0x187f')]({'title':_0x97c337[_0x2745bd('0x2fa')]?_0x2745bd('0x16c2')+_0x97c337[_0x2745bd('0x2fa')]+'\x20-\x20'+_0x97c337['statusText']:'api.openchannelAccount.update','msg':_0x97c337[_0x2745bd('0x10fd')]?JSON[_0x2745bd('0xa48')](_0x97c337[_0x2745bd('0x10fd')]['message']):_0x97c337['toString']()});});}function _0x45c514(_0x3e759d){var _0xa2241f=_0x427c13;_0x340ba5[_0xa2241f('0x4c6')]=[];var _0x4f8cbd=_0x2de45c[_0xa2241f('0x281e')]()[_0xa2241f('0x110a')](_0xa2241f('0x12a3'))['content'](_0xa2241f('0x1d44'))[_0xa2241f('0x5b5')](_0xa2241f('0x105c'))['ok'](_0xa2241f('0x1e76'))[_0xa2241f('0x2030')](_0xa2241f('0x9c6'))['targetEvent'](_0x3e759d);_0x2de45c['show'](_0x4f8cbd)[_0xa2241f('0xaa5')](function(){var _0xae5595=_0xa2241f;_0x56066c[_0xae5595('0x2566')]['delete']({'id':_0x340ba5['openchannelAccount']['id']})[_0xae5595('0x1dc2')]['then'](function(){var _0x4fc7e5=_0xae5595;_0x51538b()[_0x4fc7e5('0xf6d')](_0x340ba5['openchannelAccounts'],{'id':_0x340ba5[_0x4fc7e5('0x2566')]['id']}),_0x4ef67c[_0x4fc7e5('0xe10')]({'title':_0x4fc7e5('0x593'),'msg':(_0x340ba5[_0x4fc7e5('0x2566')][_0x4fc7e5('0x25d6')]||_0x4fc7e5('0x2566'))+'\x20has\x20been\x20deleted!'}),_0x4b2702(_0x340ba5[_0x4fc7e5('0x2566')]);})[_0xae5595('0x253d')](function(_0x2ad4b4){var _0xc29cd2=_0xae5595;if(_0x2ad4b4[_0xc29cd2('0x10fd')]&&_0x2ad4b4[_0xc29cd2('0x10fd')][_0xc29cd2('0x4c6')]&&_0x2ad4b4['data'][_0xc29cd2('0x4c6')][_0xc29cd2('0x2587')]){_0x340ba5[_0xc29cd2('0x4c6')]=_0x2ad4b4['data']['errors']||[{'message':_0x2ad4b4[_0xc29cd2('0x684')](),'type':_0xc29cd2('0x2493')}];for(var _0x2f65c8=0x0;_0x2f65c8<_0x2ad4b4['data'][_0xc29cd2('0x4c6')][_0xc29cd2('0x2587')];_0x2f65c8++){_0x4ef67c[_0xc29cd2('0x187f')]({'title':_0x2ad4b4[_0xc29cd2('0x10fd')][_0xc29cd2('0x4c6')][_0x2f65c8][_0xc29cd2('0x6c8')],'msg':_0x2ad4b4[_0xc29cd2('0x10fd')][_0xc29cd2('0x4c6')][_0x2f65c8][_0xc29cd2('0x1402')]});}}else _0x4ef67c[_0xc29cd2('0x187f')]({'title':_0x2ad4b4['status']?_0xc29cd2('0x16c2')+_0x2ad4b4[_0xc29cd2('0x2fa')]+'\x20-\x20'+_0x2ad4b4[_0xc29cd2('0x24df')]:_0xc29cd2('0x2493'),'msg':_0x2ad4b4[_0xc29cd2('0x10fd')]?JSON[_0xc29cd2('0xa48')](_0x2ad4b4[_0xc29cd2('0x10fd')][_0xc29cd2('0x1402')]):_0x2ad4b4[_0xc29cd2('0x1402')]||_0x2ad4b4[_0xc29cd2('0x684')]()});});},function(){});}function _0x353028(_0x168780){return _0x168780===null?undefined:new Date(_0x168780);}function _0x4b2702(_0x2ebe8f){var _0x1e7658=_0x427c13;_0x2de45c[_0x1e7658('0x1120')](_0x2ebe8f);}}const _0x2f0112=_0x399a20,_0x14eef1=_0x4fb511['p']+_0x1a8446('0x3c0'),_0x2f8f51=_0x4fb511['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html',_0x25970f=_0x4fb511['p']+_0x1a8446('0x2288'),_0x4a3ca7=_0x4fb511['p']+_0x1a8446('0x56'),_0x7cbd08=_0x4fb511['p']+_0x1a8446('0x99c'),_0x2ce664=_0x4fb511['p']+_0x1a8446('0x57b'),_0xbbf4a6=_0x4fb511['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html',_0x5609cc=_0x4fb511['p']+_0x1a8446('0xc51'),_0x3f368d=_0x4fb511['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html',_0x47db77=_0x4fb511['p']+_0x1a8446('0x9d6');_0x726680[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];var _0x1b3a87={'agent':_0x14eef1,'autoreply':_0x2f8f51,'close':_0x25970f,'gotoif':_0x4a3ca7,'gotop':_0x7cbd08,'interval':_0x2ce664,'noop':_0xbbf4a6,'queue':_0x5609cc,'system':_0x3f368d,'tag':_0x47db77};function _0x726680(_0x41067c,_0x3b6de2,_0x522829,_0x44914a,_0x2716ab){var _0x4dd7d8=_0x1a8446,_0x4c5a3b=this;_0x4c5a3b['currentUser']=_0x2716ab['getCurrentUser'](),_0x4c5a3b[_0x4dd7d8('0x2566')]={},_0x4c5a3b['openchannelAccountApps']={'count':0x0,'rows':[]},_0x4c5a3b[_0x4dd7d8('0xa1d')]=[],_0x4c5a3b[_0x4dd7d8('0xada')],_0x4c5a3b['query']={'sort':'priority'},_0x4c5a3b[_0x4dd7d8('0x27b0')]=_0x51538b()[_0x4dd7d8('0xaee')](_0x51538b()['sortBy']([{'app':_0x4dd7d8('0x67c'),'appType':_0x4dd7d8('0x67c'),'type':_0x4dd7d8('0x67c'),'icon':_0x4dd7d8('0x1892'),'interval':_0x4dd7d8('0x1ac6'),'isApp':!![],'fields':[{'title':_0x4dd7d8('0x1aa3'),'name':_0x4dd7d8('0x24ec'),'type':_0x4dd7d8('0xb37'),'required':!![],'param':0x0},{'title':_0x4dd7d8('0x1938'),'name':_0x4dd7d8('0x1938'),'type':'select','defaultValue':_0x4dd7d8('0x1921'),'values':[{'option':_0x4dd7d8('0xc2b'),'value':'\x27da\x27'},{'option':_0x4dd7d8('0x195a'),'value':_0x4dd7d8('0x1921')},{'option':_0x4dd7d8('0x6ab'),'value':_0x4dd7d8('0x2a3')},{'option':_0x4dd7d8('0x1c42'),'value':_0x4dd7d8('0x1b6f')},{'option':'Spanish','value':_0x4dd7d8('0x263d')},{'option':_0x4dd7d8('0x701'),'value':_0x4dd7d8('0x27f0')},{'option':_0x4dd7d8('0x89b'),'value':_0x4dd7d8('0x14b8')},{'option':_0x4dd7d8('0x75'),'value':_0x4dd7d8('0xef2')},{'option':_0x4dd7d8('0x260d'),'value':_0x4dd7d8('0x1a3a')},{'option':_0x4dd7d8('0x18c5'),'value':'\x27nl\x27'},{'option':'Norwegian','value':'\x27no\x27'},{'option':_0x4dd7d8('0x26fe'),'value':_0x4dd7d8('0x11c5')},{'option':_0x4dd7d8('0xf74'),'value':_0x4dd7d8('0x2526')},{'option':_0x4dd7d8('0x16cb'),'value':'\x27ru\x27'},{'option':_0x4dd7d8('0x18b'),'value':_0x4dd7d8('0x652')},{'option':_0x4dd7d8('0x1b87'),'value':_0x4dd7d8('0x2582')},{'option':_0x4dd7d8('0x172b'),'value':_0x4dd7d8('0x201e')},{'option':'Chinese\x20(Simplified)','value':_0x4dd7d8('0x2072')},{'option':_0x4dd7d8('0xeb8'),'value':_0x4dd7d8('0xc82')},{'option':'Chinese\x20(Traditional)','value':_0x4dd7d8('0x6fe')}],'required':!![],'param':0x1},{'title':_0x4dd7d8('0x273'),'name':_0x4dd7d8('0x273'),'type':_0x4dd7d8('0x1b88'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x4dd7d8('0x3f5'),'appType':'amazonlex','type':_0x4dd7d8('0x3f5'),'icon':'icon-apps','interval':_0x4dd7d8('0x1ac6'),'isApp':!![],'fields':[{'title':_0x4dd7d8('0xc07'),'name':'accesskeyid','type':'text','required':!![],'param':0x0},{'title':_0x4dd7d8('0x15f9'),'name':'secretaccesskey','type':_0x4dd7d8('0xb37'),'required':!![],'param':0x1},{'title':_0x4dd7d8('0xa9a'),'name':_0x4dd7d8('0xa9a'),'type':_0x4dd7d8('0xbff'),'defaultValue':_0x4dd7d8('0x22e'),'values':[{'option':_0x4dd7d8('0x234d'),'value':_0x4dd7d8('0x22e')},{'option':_0x4dd7d8('0x438'),'value':_0x4dd7d8('0x1fe1')},{'option':_0x4dd7d8('0x16a1'),'value':_0x4dd7d8('0xbc4')},{'option':_0x4dd7d8('0x1339'),'value':_0x4dd7d8('0x1b6b')}],'required':!![],'param':0x2},{'title':'botname','name':_0x4dd7d8('0x18ee'),'type':_0x4dd7d8('0xb37'),'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x4dd7d8('0x273'),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':'Interval','appType':'interval','types':[_0x4dd7d8('0x1b43'),'custom',_0x4dd7d8('0x2334')],'fields':[],'isApp':![]},{'app':_0x4dd7d8('0x27ca'),'appType':'noop','type':'noop','icon':'icon-apps','interval':_0x4dd7d8('0x1ac6'),'required':!![],'isApp':!![],'fields':[{'title':_0x4dd7d8('0xfba'),'name':'value','type':'text','param':0x0}]},{'app':_0x4dd7d8('0x5da'),'appType':_0x4dd7d8('0x5da'),'type':'system','icon':_0x4dd7d8('0x1892'),'interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':_0x4dd7d8('0x147e'),'field':{'name':_0x4dd7d8('0x14e7'),'key':'name'},'route':'variable','filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x4dd7d8('0x23a0'),'name':_0x4dd7d8('0xd7b'),'type':_0x4dd7d8('0xb37'),'required':!![],'param':0x0},{'title':'Variable','name':'variable','type':'apiselect','values':_0x4dd7d8('0x147e'),'value':_0x4dd7d8('0x23d4'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x4dd7d8('0x1141'),'appType':_0x4dd7d8('0x1141'),'type':'goto','icon':_0x4dd7d8('0x1892'),'interval':_0x4dd7d8('0x1ac6'),'isApp':!![],'fields':[{'title':_0x4dd7d8('0x2722'),'name':_0x4dd7d8('0x13f2'),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x4dd7d8('0x3cb'),'appType':'gotoif','type':_0x4dd7d8('0x3cb'),'icon':_0x4dd7d8('0x1892'),'interval':_0x4dd7d8('0x1ac6'),'isApp':!![],'fields':[{'title':_0x4dd7d8('0x27e6'),'name':_0x4dd7d8('0xe77'),'type':'text','required':!![],'param':0x0},{'title':_0x4dd7d8('0x13ba'),'name':_0x4dd7d8('0x13ba'),'type':_0x4dd7d8('0x219a'),'min':0x1,'required':!![],'param':0x1},{'title':_0x4dd7d8('0x222b'),'name':_0x4dd7d8('0x222b'),'type':_0x4dd7d8('0x219a'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x4dd7d8('0xe26'),'appType':_0x4dd7d8('0xe26'),'foreignKey':'OpenchannelQueueId','type':_0x4dd7d8('0xe26'),'icon':_0x4dd7d8('0x1892'),'interval':_0x4dd7d8('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x4dd7d8('0x4d7'),'field':{'name':_0x4dd7d8('0xe26'),'key':_0x4dd7d8('0x25d6')},'route':_0x4dd7d8('0x21b2'),'filters':{'fields':_0x4dd7d8('0x21e2'),'sort':_0x4dd7d8('0x25d6'),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':'Queue','name':_0x4dd7d8('0xe26'),'type':_0x4dd7d8('0xd4d'),'values':'queues','value':_0x4dd7d8('0x1766'),'option':_0x4dd7d8('0x1766'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x4dd7d8('0x23c0'),'type':'number','max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x4dd7d8('0xeff'),'appType':_0x4dd7d8('0xeff'),'type':_0x4dd7d8('0xeff'),'foreignKey':_0x4dd7d8('0x1037'),'icon':_0x4dd7d8('0x1892'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x4dd7d8('0x1717'),'field':{'name':'agent','key':_0x4dd7d8('0x25d6')},'route':'user','filters':{'fields':'id,name','sort':'name','role':_0x4dd7d8('0xeff'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x4dd7d8('0x521'),'name':'agent','type':_0x4dd7d8('0xd4d'),'values':_0x4dd7d8('0x1717'),'value':'agent.name','option':'agent.name','required':!![],'param':0x0},{'title':_0x4dd7d8('0xc45'),'name':_0x4dd7d8('0x23c0'),'type':_0x4dd7d8('0x219a'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x4dd7d8('0x1b05'),'appType':_0x4dd7d8('0x1b05'),'type':'autoreply','icon':_0x4dd7d8('0x1892'),'interval':_0x4dd7d8('0x1ac6'),'isApp':!![],'fields':[{'title':_0x4dd7d8('0x11b6'),'name':'times','type':'select','defaultValue':'1','values':[{'option':_0x4dd7d8('0x1774'),'value':'1'},{'option':_0x4dd7d8('0xc90'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x4dd7d8('0x1f3a'),'name':_0x4dd7d8('0xb37'),'type':_0x4dd7d8('0x1b88'),'required':!![],'param':0x1}]},{'app':_0x4dd7d8('0x21d0'),'appType':_0x4dd7d8('0x21d0'),'type':_0x4dd7d8('0x21d0'),'icon':_0x4dd7d8('0x1892'),'interval':_0x4dd7d8('0x1ac6'),'isApp':!![],'fields':[{'title':'Disposition','name':_0x4dd7d8('0x106e'),'type':_0x4dd7d8('0xb37'),'required':!![],'param':0x0}]},{'app':_0x4dd7d8('0x38f'),'appType':'tag','type':_0x4dd7d8('0x38f'),'foreignKey':_0x4dd7d8('0x2028'),'icon':_0x4dd7d8('0x1892'),'interval':_0x4dd7d8('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x4dd7d8('0x523'),'field':{'name':'tag','key':_0x4dd7d8('0x25d6')},'route':_0x4dd7d8('0x38f'),'filters':{'fields':_0x4dd7d8('0x17fe'),'sort':_0x4dd7d8('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x4dd7d8('0x4e7'),'name':_0x4dd7d8('0x38f'),'type':_0x4dd7d8('0xd4d'),'values':_0x4dd7d8('0x523'),'value':_0x4dd7d8('0x17df'),'option':'tag.name','required':!![],'param':0x0}]}],[_0x4dd7d8('0x9eb')]),{'isApp':![]}),_0x4c5a3b['list']={'group':{'name':_0x4dd7d8('0xdf0'),'pull':'clone'},'animation':0x64,'sort':![]},_0x4c5a3b[_0x4dd7d8('0x209b')]={'group':{'name':_0x4dd7d8('0x1603'),'put':_0x4dd7d8('0xdf0')},'animation':0x64,'onAdd':function _0x7226c(_0x431431){var _0x36e49c=_0x4dd7d8;_0x5d64f0(_0x431431,_0x431431[_0x36e49c('0x1b3d')]);},'onSort':function _0x3f8b1d(){_0x3f207e();}},_0x4c5a3b[_0x4dd7d8('0x2e')]=_0x200b52,_0x4c5a3b[_0x4dd7d8('0x1416')]=_0x542c26,_0x4c5a3b[_0x4dd7d8('0x1e93')]=_0x1e8b4f,_0x4c5a3b[_0x4dd7d8('0xa14')]=_0x5d64f0,_0x4c5a3b[_0x4dd7d8('0x1e6')]=_0x2c392c,_0x4c5a3b[_0x4dd7d8('0xf78')]=_0xb2c3c5,_0x4c5a3b[_0x4dd7d8('0x3ae')]=_0x546bbc,_0x4c5a3b['rewriteRouting']=_0x3f207e,_0x4c5a3b[_0x4dd7d8('0x1f55')]=_0x47b8e3;function _0x200b52(_0x34d36a,_0x43765c){var _0x9c9e34=_0x4dd7d8;_0x4c5a3b['openchannelAccount']=_0x34d36a,_0x4c5a3b[_0x9c9e34('0xada')]=typeof _0x43765c!==_0x9c9e34('0x1574')?_0x43765c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4c5a3b[_0x9c9e34('0x209b')]['disabled']=!_0x4c5a3b[_0x9c9e34('0xada')][_0x9c9e34('0x1c1d')]?!![]:![],_0x4c5a3b[_0x9c9e34('0x582')]['id']=_0x34d36a['id'],_0x4c5a3b['query'][_0x9c9e34('0x26a1')]=!![],_0x4c5a3b[_0x9c9e34('0x582')][_0x9c9e34('0x86a')]=!![],_0x4c5a3b[_0x9c9e34('0x1e93')](),_0x4c5a3b['getIntervals']();}function _0x542c26(_0x5c8997,_0x56869a,_0x49397c){var _0xa7e33c=_0x4dd7d8,_0x4fac9e=_0x3b6de2[_0xa7e33c('0x281e')]()[_0xa7e33c('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0xa7e33c('0x102e')](_0xa7e33c('0x389')+_0x5c8997[_0xa7e33c('0x9eb')]+''+_0xa7e33c('0x210d'))['ariaLabel']('delete\x20application')['targetEvent'](_0x49397c)['ok']('OK')[_0xa7e33c('0x2030')](_0xa7e33c('0x2410'));_0x3b6de2[_0xa7e33c('0x1e6d')](_0x4fac9e)[_0xa7e33c('0xaa5')](function(){var _0x4668c2=_0xa7e33c;_0x4c5a3b[_0x4668c2('0x788')][_0x4668c2('0x580')][_0x4668c2('0x1280')](_0x56869a,0x1),_0x3f207e();},function(){var _0x498415=_0xa7e33c;console['log'](_0x498415('0x2410'));});}function _0x5d64f0(_0x272179,_0x3d1623){var _0x3c3ab1=_0x4dd7d8;if(_0x4c5a3b[_0x3c3ab1('0x788')][_0x3c3ab1('0x580')][_0x3c3ab1('0x2587')]){var _0x431d9f=_0x4c5a3b[_0x3c3ab1('0x788')]['rows'][_0x3d1623]?_0x4c5a3b[_0x3c3ab1('0x788')][_0x3c3ab1('0x580')][_0x3d1623]:_0x4c5a3b[_0x3c3ab1('0x788')][_0x3c3ab1('0x580')][0x0],_0x1a8246=(_0x431d9f[_0x3c3ab1('0xe6d')]||_0x431d9f[_0x3c3ab1('0x9eb')])[_0x3c3ab1('0xcf6')]();_0x3b6de2[_0x3c3ab1('0x1e6d')]({'controller':_0x3c3ab1('0x1c58')['concat'](_0x1a8246,'DialogController'),'controllerAs':'vm','templateUrl':_0x1b3a87[_0x1a8246],'parent':angular[_0x3c3ab1('0x1aa8')](_0x522829[_0x3c3ab1('0x54c')]),'targetEvent':_0x272179,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x431d9f,'openchannelAccount':_0x4c5a3b[_0x3c3ab1('0x2566')],'crudPermissions':_0x4c5a3b[_0x3c3ab1('0xada')]}})['then'](function(_0x5f5bf0){var _0x594493=_0x3c3ab1;_0x5f5bf0&&(_0x5f5bf0['id']?_0x4c5a3b[_0x594493('0x788')][_0x594493('0x580')][_0x3d1623]=_0x5f5bf0:_0x4c5a3b[_0x594493('0x788')][_0x594493('0x580')][_0x594493('0x1280')](_0x3d1623,0x0,_0x5f5bf0),_0x3f207e());})[_0x3c3ab1('0x253d')](function(_0x3b9e5b){var _0x4dabeb=_0x3c3ab1;_0x3b9e5b&&_0x44914a[_0x4dabeb('0x187f')]({'title':_0x3b9e5b['status']?_0x4dabeb('0x16c2')+_0x3b9e5b[_0x4dabeb('0x2fa')]+'\x20-\x20'+_0x3b9e5b[_0x4dabeb('0x24df')]:_0x4dabeb('0x26b6'),'msg':_0x3b9e5b[_0x4dabeb('0x10fd')]?JSON[_0x4dabeb('0xa48')](_0x3b9e5b['data']):_0x3b9e5b[_0x4dabeb('0x684')]()});});}}function _0x2c392c(_0x5cd397,_0x563bfd){var _0x1511cb=_0x4dd7d8;if(_0x4c5a3b[_0x1511cb('0x788')]['rows'][_0x1511cb('0x2587')]){var _0xd59391=_0x4c5a3b['openchannelAccountApps'][_0x1511cb('0x580')][_0x563bfd]?_0x4c5a3b[_0x1511cb('0x788')][_0x1511cb('0x580')][_0x563bfd]:_0x4c5a3b['openchannelAccountApps']['rows'][0x0];_0x3b6de2[_0x1511cb('0x1e6d')]({'controller':_0x1511cb('0x7e7'),'controllerAs':'vm','templateUrl':_0x2ce664,'parent':angular['element'](_0x522829[_0x1511cb('0x54c')]),'targetEvent':_0x5cd397,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xd59391[_0x1511cb('0x1c21')],'IntervalId':_0xd59391[_0x1511cb('0x1f8c')],'application':!![]},'intervals':[],'crudPermissions':_0x4c5a3b[_0x1511cb('0xada')]}})[_0x1511cb('0xaa5')](function(_0x45e820){var _0x54bf51=_0x1511cb;_0x45e820&&(_0xd59391[_0x54bf51('0x1c21')]=_0x45e820[_0x54bf51('0x1c21')]||'*,*,*,*',_0xd59391[_0x54bf51('0x1f8c')]=_0x45e820[_0x54bf51('0x1f8c')]||null,_0x3f207e());});}}function _0x3f207e(){var _0x35e49d=_0x4dd7d8,_0xe48c02=0x1,_0x15fa05=[];for(var _0x4dc8c7=0x0;_0x4dc8c7<_0x4c5a3b[_0x35e49d('0x788')][_0x35e49d('0x580')][_0x35e49d('0x2587')];_0x4dc8c7++){var _0x48dec4=_0x4c5a3b[_0x35e49d('0x788')][_0x35e49d('0x580')][_0x4dc8c7],_0x36d6d4=[],_0x109995=[];_0x48dec4[_0x35e49d('0x2568')]=_0x48dec4[_0x35e49d('0x1c21')]!==_0x35e49d('0x1ac6')?[_0x48dec4[_0x35e49d('0x1c21')]]:_0x48dec4['IntervalId']?_0x51538b()[_0x35e49d('0x1246')](_0x51538b()['filter'](_0x4c5a3b[_0x35e49d('0x2568')][_0x35e49d('0x580')],{'IntervalId':_0x48dec4[_0x35e49d('0x1f8c')]}),'interval'):[],_0x48dec4[_0x35e49d('0x19cd')]=_0x4c5a3b[_0x35e49d('0x2566')]['context'],_0x48dec4[_0x35e49d('0x1990')]=_0x4c5a3b['openchannelAccount'][_0x35e49d('0x1990')],_0x48dec4[_0x35e49d('0x6c8')]&&(_0x48dec4[_0x35e49d('0x6c8')]=_0x48dec4['type'][_0x35e49d('0xcf6')]()),_0x48dec4[_0x35e49d('0x13f2')]=_0x36d6d4[_0x35e49d('0x2587')]?_0x51538b()[_0x35e49d('0x23f4')](_0x36d6d4)[_0x35e49d('0x13f2')]+0x1:_0xe48c02,_0xe48c02=(_0x109995['length']?_0x51538b()[_0x35e49d('0x23f4')](_0x109995)['priority']:_0x48dec4['priority'])+0x1,_0x15fa05=_0x51538b()[_0x35e49d('0x9e4')](_0x15fa05,_0x36d6d4,[_0x48dec4],_0x109995);}_0x41067c['openchannelAccount']['addApplications']({'id':_0x4c5a3b[_0x35e49d('0x2566')]['id']},_0x51538b()[_0x35e49d('0x181f')](_0x15fa05,_0x35e49d('0x13f2')))[_0x35e49d('0x1dc2')][_0x35e49d('0xaa5')](function(_0x9c710b){var _0x270f06=_0x35e49d;_0x4c5a3b[_0x270f06('0x788')]['rows']=_0x9c710b[_0x270f06('0x580')];})[_0x35e49d('0x253d')](function(_0xd49dc){var _0x1ebaab=_0x35e49d;console[_0x1ebaab('0x187f')](_0xd49dc);});}function _0x236d41(_0x47d1a4){_0x4c5a3b['openchannelAccountApps']=_0x47d1a4||{'count':0x0,'rows':[]};}function _0x47b8e3(){var _0x20d013=_0x4dd7d8;return _0x41067c[_0x20d013('0x1c21')][_0x20d013('0x2122')]({'fields':_0x20d013('0x1487')})[_0x20d013('0x1dc2')][_0x20d013('0xaa5')](function(_0x25152d){var _0x43a9e2=_0x20d013;_0x4c5a3b[_0x43a9e2('0x2568')]=_0x25152d;})[_0x20d013('0x253d')](function(_0x775578){var _0x4c5390=_0x20d013;console[_0x4c5390('0x187f')](_0x775578);});}function _0x1e8b4f(){var _0x5b0b07=_0x4dd7d8;_0x4c5a3b['promise']=_0x41067c[_0x5b0b07('0x2566')][_0x5b0b07('0x185c')](_0x4c5a3b[_0x5b0b07('0x582')],_0x236d41)[_0x5b0b07('0x1dc2')];}function _0xb2c3c5(_0x4aa9ce){var _0x358d13=_0x4dd7d8;_0x51538b()[_0x358d13('0xf6d')](_0x4c5a3b[_0x358d13('0x788')]['rows'],{'id':_0x4aa9ce['id']}),_0x3f207e(),_0x44914a[_0x358d13('0xe10')]({'title':'App\x20deleted!','msg':_0x4aa9ce['app']?_0x4aa9ce[_0x358d13('0x9eb')]+_0x358d13('0xcd9'):''});}function _0x546bbc(_0x35697d){var _0xef061e=_0x4dd7d8,_0x37fda0=_0x3b6de2[_0xef061e('0x281e')]()[_0xef061e('0x110a')](_0xef061e('0x1190'))[_0xef061e('0x102e')](_0xef061e('0x389')+_0x4c5a3b[_0xef061e('0xa1d')][_0xef061e('0x2587')]+_0xef061e('0x1443')+_0xef061e('0x210d'))['ariaLabel'](_0xef061e('0x2845'))['targetEvent'](_0x35697d)['ok']('OK')['cancel'](_0xef061e('0x2410'));_0x3b6de2['show'](_0x37fda0)[_0xef061e('0xaa5')](function(){var _0x467c03=_0xef061e;_0x4c5a3b['selectedOpenchannelAccountApps'][_0x467c03('0x15b5')](function(_0x29359c){var _0x424a04=_0x467c03;_0x51538b()[_0x424a04('0xf6d')](_0x4c5a3b[_0x424a04('0x788')]['rows'],{'id':_0x29359c['id']});}),_0x4c5a3b[_0x467c03('0xa1d')]=[],_0x3f207e();});}}const _0x157042=_0x726680;_0x173a1e['$inject']=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x157'),_0x1a8446('0x2566'),_0x1a8446('0x23f0'),_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x173a1e(_0x32442f,_0x5038e4,_0x5d1654,_0x354835,_0x48dd4a,_0xa3de57,_0x4fd8d6,_0x4826b2,_0x2536fa,_0x510fab){var _0xa4d12b=_0x1a8446,_0xb0a246=this;_0xb0a246['currentUser']=_0x2536fa[_0xa4d12b('0xacc')](),_0xb0a246[_0xa4d12b('0x2566')]=_0x48dd4a,_0xb0a246[_0xa4d12b('0xada')]=_0x510fab,_0xb0a246[_0xa4d12b('0x4f3')]=_0x4fd8d6,_0xb0a246[_0xa4d12b('0x1a30')]=[],_0xb0a246[_0xa4d12b('0x11b9')]=[],_0xb0a246[_0xa4d12b('0xbf7')]=[],_0xb0a246[_0xa4d12b('0x215b')]=[],_0xb0a246['startingSelectedItems']=[],_0xb0a246['pendingChanges']=![],_0xb0a246['onInit']=_0x190451,_0xb0a246[_0xa4d12b('0x17bb')]=_0x683d99,_0xb0a246['closeDialog']=_0x518231,_0xb0a246['dualMultiselectOptions']={'readOnly':!_0xb0a246[_0xa4d12b('0xada')][_0xa4d12b('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0xa4d12b('0x18e5'),'line2':[_0xa4d12b('0x25d6'),'internal'],'line3':'','labelAll':_0x4826b2[_0xa4d12b('0x213f')](_0xa4d12b('0x2417')),'labelSelected':_0x4826b2[_0xa4d12b('0x213f')](_0xa4d12b('0xe94')),'transferCallback':function _0xc990a0(){var _0xb56695=_0xa4d12b,_0x9ae32c=_0x51538b()[_0xb56695('0x9ef')](_0xb0a246[_0xb56695('0x214a')],_0xb0a246['selectedItems'],'id');_0xb0a246[_0xb56695('0xc54')]=_0x51538b()['isEmpty'](_0x9ae32c)?![]:!![];}};function _0x190451(){var _0x568a5a=_0xa4d12b;return _0x2536fa[_0x568a5a('0x26e8')](_0x568a5a('0x178b'))?_0x59ba6f()[_0x568a5a('0x253d')](function(_0x5e18fd){var _0x43651c=_0x568a5a;_0x5d1654[_0x43651c('0x187f')]({'title':_0x5e18fd[_0x43651c('0x2fa')]?_0x43651c('0x16c2')+_0x5e18fd[_0x43651c('0x2fa')]+_0x43651c('0x169e')+_0x5e18fd['statusText']:'SYSTEM:GET_AGENTS','msg':_0x5e18fd[_0x43651c('0x2fa')]?JSON[_0x43651c('0xa48')](_0x5e18fd['data']):_0x5e18fd[_0x43651c('0x684')]()});}):_0x265eb6()[_0x568a5a('0xaa5')](function(_0x103501){var _0x2aee77=_0x568a5a;return _0xb0a246[_0x2aee77('0x224d')]=_0x103501,_0x59ba6f();})['catch'](function(_0x3574bc){var _0xcd5ecc=_0x568a5a;_0x5d1654[_0xcd5ecc('0x187f')]({'title':_0x3574bc[_0xcd5ecc('0x2fa')]?_0xcd5ecc('0x16c2')+_0x3574bc['status']+'\x20-\x20'+_0x3574bc[_0xcd5ecc('0x24df')]:'SYSTEM:GET_AGENTS','msg':_0x3574bc['status']?JSON[_0xcd5ecc('0xa48')](_0x3574bc[_0xcd5ecc('0x10fd')]):_0x3574bc[_0xcd5ecc('0x684')]()});});}function _0x265eb6(){return _0x5038e4(function(_0x56b15f,_0x552292){var _0x586b74=a0_0x1149;_0x354835['userProfileSection'][_0x586b74('0x2122')]({'userProfileId':_0xb0a246['currentUser'][_0x586b74('0x2168')],'name':_0x586b74('0x91a')})[_0x586b74('0x1dc2')]['then'](function(_0x5b87c1){var _0x4b6dfe=_0x586b74,_0x3b2e9f=_0x5b87c1&&_0x5b87c1[_0x4b6dfe('0x580')]?_0x5b87c1['rows'][0x0]:null;_0x56b15f(_0x3b2e9f);})[_0x586b74('0x253d')](function(_0x45cb5b){_0x552292(_0x45cb5b);});});}function _0x59ba6f(){return _0x5038e4(function(_0x439994,_0x21a8db){var _0x3812c4=a0_0x1149;return _0x2fb6a3()[_0x3812c4('0xaa5')](function(_0x20aaa6){var _0x182c6a=_0x3812c4;return _0xb0a246[_0x182c6a('0x1a30')]=_0x20aaa6[_0x182c6a('0x580')]?_0x20aaa6['rows']:[],_0x2536fa[_0x182c6a('0x26e8')](_0x182c6a('0x178b'))?_0x20aaa6:_0xb0a246[_0x182c6a('0x224d')]?_0xb0a246[_0x182c6a('0x224d')]['autoAssociation']?_0x20aaa6:_0x403be5():null;})['then'](function(_0x321d74){var _0x2d21a0=_0x3812c4,_0x503017=_0x321d74&&_0x321d74[_0x2d21a0('0x580')]?_0x321d74[_0x2d21a0('0x580')]:[];return _0xb0a246[_0x2d21a0('0x11b9')]=_0x51538b()['map'](_0x503017,function(_0x1912f9){var _0x406512=_0x2d21a0;return _0x51538b()[_0x406512('0xe9e')](_0xb0a246[_0x406512('0x1a30')],{'id':_0x2536fa[_0x406512('0x26e8')]('admin')||_0xb0a246[_0x406512('0x224d')][_0x406512('0x26cc')]?_0x1912f9['id']:_0x1912f9[_0x406512('0xbcd')]});}),_0xb0a246[_0x2d21a0('0x215b')]=angular[_0x2d21a0('0x20a')](_0xb0a246[_0x2d21a0('0x11b9')]),_0xb0a246['items'][_0x2d21a0('0x15b5')](function(_0x37dfef){var _0x1f9a0b=_0x2d21a0,_0x4df787=_0x51538b()['find'](_0xb0a246[_0x1f9a0b('0x11b9')],{'id':_0x37dfef['id']});_0x2536fa[_0x1f9a0b('0x26e8')]('admin')?_0x37dfef['isValid']=!![]:_0x37dfef[_0x1f9a0b('0x145d')]=typeof _0x4df787!==_0x1f9a0b('0x1574')?!![]:![];}),_0x21fb2a();})[_0x3812c4('0xaa5')](function(_0x2125b7){var _0x41b448=_0x3812c4,_0x1b4100=_0x2125b7&&_0x2125b7['rows']?_0x2125b7[_0x41b448('0x580')]:[];_0xb0a246[_0x41b448('0xbf7')]=_0x51538b()[_0x41b448('0x1246')](_0x1b4100,function(_0x38f4be){var _0xffccc9=_0x41b448,_0x2ec950=_0x51538b()[_0xffccc9('0xe9e')](_0xb0a246[_0xffccc9('0x1a30')],{'id':_0x38f4be['id']});return _0x2ec950['penalty']=_0x38f4be[_0xffccc9('0x204b')]?_0xffccc9('0x17b0')+_0x38f4be[_0xffccc9('0x204b')][_0xffccc9('0x2234')]:'',_0x2ec950['internal']=typeof _0x38f4be[_0xffccc9('0x1b0d')]!==_0xffccc9('0x1574')?'<'+_0x38f4be[_0xffccc9('0x1b0d')]+'>':'',_0x2ec950;}),_0xb0a246[_0x41b448('0x214a')]=angular[_0x41b448('0x20a')](_0xb0a246[_0x41b448('0xbf7')]),_0xb0a246[_0x41b448('0x1c23')][_0x41b448('0xbf7')]=_0xb0a246[_0x41b448('0xbf7')],_0xb0a246[_0x41b448('0x1c23')][_0x41b448('0x1a30')]=_0x51538b()[_0x41b448('0x1ebb')](_0xb0a246[_0x41b448('0x11b9')],_0xb0a246[_0x41b448('0x1c23')][_0x41b448('0xbf7')],'id'),_0x439994();})[_0x3812c4('0x253d')](function(_0x1b483c){_0x21a8db(_0x1b483c);});});}function _0x403be5(){return _0x5038e4(function(_0x5aca8d,_0x2b04af){var _0x29f88c=a0_0x1149;return _0x354835[_0x29f88c('0x249a')]['get']({'sectionId':_0xb0a246[_0x29f88c('0x224d')]['id'],'nolimit':!![]})[_0x29f88c('0x1dc2')][_0x29f88c('0xaa5')](function(_0x1e1693){_0x5aca8d(_0x1e1693);})['catch'](function(_0x297c56){_0x2b04af(_0x297c56);});});}function _0x21fb2a(){return _0x5038e4(function(_0x3f87ef,_0x2d6efe){var _0x47fc27=a0_0x1149;return _0x354835[_0x47fc27('0x2566')][_0x47fc27('0x1483')]({'id':_0xb0a246[_0x47fc27('0x2566')]['id'],'fields':_0x47fc27('0x283f'),'nolimit':!![],'role':_0x47fc27('0xeff')})[_0x47fc27('0x1dc2')]['then'](function(_0x5eb006){_0x3f87ef(_0x5eb006);})[_0x47fc27('0x253d')](function(_0x2ac6de){_0x2d6efe(_0x2ac6de);});});}function _0x2fb6a3(){return _0x5038e4(function(_0x3fa921,_0x296677){var _0xf19cac=a0_0x1149;return _0x354835[_0xf19cac('0x272b')][_0xf19cac('0x2122')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0xf19cac('0x1dc2')][_0xf19cac('0xaa5')](function(_0x20248c){_0x3fa921(_0x20248c);})[_0xf19cac('0x253d')](function(_0x4a2661){_0x296677(_0x4a2661);});});}function _0x1ba09c(_0x3db5b1){return _0x5038e4(function(_0x50884b,_0x328df5){var _0x530bb8=a0_0x1149;_0x51538b()[_0x530bb8('0x116b')](_0x3db5b1)?_0x50884b():_0x354835['openchannelAccount'][_0x530bb8('0x26b1')]({'id':_0xb0a246[_0x530bb8('0x2566')]['id'],'ids':_0x51538b()[_0x530bb8('0x1246')](_0x3db5b1,'id')})[_0x530bb8('0x1dc2')][_0x530bb8('0xaa5')](function(){_0x50884b();})[_0x530bb8('0x253d')](function(_0x3b1869){_0x328df5(_0x3b1869);});});}function _0x44c4f9(_0x4844ff){return _0x5038e4(function(_0x52d4d9,_0x48d891){var _0x40d2a7=a0_0x1149;_0x51538b()[_0x40d2a7('0x116b')](_0x4844ff)?_0x52d4d9():_0x354835[_0x40d2a7('0x2566')][_0x40d2a7('0x258e')]({'id':_0xb0a246[_0x40d2a7('0x2566')]['id'],'ids':_0x51538b()['map'](_0x4844ff,'id')})[_0x40d2a7('0x1dc2')][_0x40d2a7('0xaa5')](function(){_0x52d4d9();})[_0x40d2a7('0x253d')](function(_0x3e89a2){_0x48d891(_0x3e89a2);});});}function _0x683d99(){var _0x54cfab=_0xa4d12b,_0x5ee342=_0x51538b()['differenceBy'](_0xb0a246['startingSelectedItems'],_0xb0a246[_0x54cfab('0xbf7')],'id'),_0x42eeea=_0x51538b()[_0x54cfab('0x1ebb')](_0xb0a246[_0x54cfab('0xbf7')],_0xb0a246['startingSelectedItems'],'id');return _0x44c4f9(_0x5ee342)[_0x54cfab('0xaa5')](function(){return _0x1ba09c(_0x42eeea);})[_0x54cfab('0xaa5')](function(){var _0x1de460=_0x54cfab;_0xb0a246[_0x1de460('0xc54')]=![],_0xb0a246[_0x1de460('0x215b')]=angular[_0x1de460('0x20a')](_0xb0a246['allowedItems']),_0xb0a246[_0x1de460('0x214a')]=angular[_0x1de460('0x20a')](_0xb0a246[_0x1de460('0xbf7')]),_0x5d1654['success']({'title':_0x1de460('0x2eb'),'msg':_0x1de460('0xc60')});})[_0x54cfab('0x253d')](function(_0x2f7a05){var _0x337746=_0x54cfab;_0x5d1654['error']({'title':_0x2f7a05[_0x337746('0x2fa')]?_0x337746('0x16c2')+_0x2f7a05[_0x337746('0x2fa')]+_0x337746('0x169e')+_0x2f7a05[_0x337746('0x24df')]:_0x337746('0x2281'),'msg':_0x2f7a05[_0x337746('0x2fa')]?JSON[_0x337746('0xa48')](_0x2f7a05[_0x337746('0x10fd')]):_0x2f7a05[_0x337746('0x684')]()});});}function _0x518231(){_0x32442f['hide']();}}const _0x235006=_0x173a1e;_0x24cfbb[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'openchannelAccountApp',_0x1a8446('0x2566'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x24cfbb(_0x3fb139,_0xae54e9,_0x4435e0,_0x28f22e,_0x1439db,_0x347ed6,_0x4f6bc2,_0x475044){var _0x371066=_0x1a8446,_0x2cbe8e=this;_0x2cbe8e['currentUser']=_0x4f6bc2[_0x371066('0xacc')](),_0x2cbe8e['errors']=[],_0x2cbe8e[_0x371066('0x110a')]='OPENCHANNEL.EDIT_'+(_0x28f22e['appType']||_0x28f22e[_0x371066('0x9eb')])[_0x371066('0x1d08')](),_0x2cbe8e[_0x371066('0xeff')]=angular[_0x371066('0x20a')](_0x28f22e),_0x2cbe8e[_0x371066('0xada')]=_0x475044,_0x2cbe8e['hasModulePermissions']={};if(_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x124b')])switch(_0x2cbe8e[_0x371066('0xeff')][_0x371066('0xe6d')]?_0x2cbe8e['agent'][_0x371066('0xe6d')]['toLowerCase']():_0x2cbe8e['agent']['app'][_0x371066('0xcf6')]()){case'custom':break;case _0x371066('0x67c'):{var _0x435c79=_0x2cbe8e['agent']['appdata'][_0x371066('0x1a39')](',');_0x2cbe8e[_0x371066('0xeff')]['key']=_0x435c79[0x0],_0x2cbe8e[_0x371066('0xeff')]['language']=_0x435c79[0x1],_0x2cbe8e[_0x371066('0xeff')]['welcomemessage']=_0x435c79[_0x371066('0x19aa')](0x2,_0x435c79[_0x371066('0x2587')])[_0x371066('0x19c4')](',');}break;case _0x371066('0x3f5'):{var _0x1fd0d4=_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x124b')][_0x371066('0x1a39')](',');_0x2cbe8e[_0x371066('0xeff')]['accesskeyid']=_0x1fd0d4[0x0],_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x15f9')]=_0x1fd0d4[0x1],_0x2cbe8e[_0x371066('0xeff')][_0x371066('0xa9a')]=_0x1fd0d4[0x2],_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x18ee')]=_0x1fd0d4[0x3],_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x273')]=_0x1fd0d4['slice'](0x4,_0x1fd0d4[_0x371066('0x2587')])[_0x371066('0x19c4')](',');}break;case _0x371066('0x1b05'):{var _0x2ec6a5=_0x2cbe8e['agent'][_0x371066('0x124b')][_0x371066('0x1a39')](',');_0x2cbe8e[_0x371066('0xeff')]['times']=isNaN(_0x2ec6a5[0x0])?_0x2ec6a5[0x0]:parseInt(_0x2ec6a5[0x0],0xa),_0x2cbe8e['agent']['text']=_0x2ec6a5['slice'](0x1,_0x2ec6a5[_0x371066('0x2587')])[_0x371066('0x19c4')](',');}break;case'message':_0x2cbe8e['agent'][_0x371066('0xb37')]=_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x124b')];break;case _0x371066('0x282c'):_0x2cbe8e['agent'][_0x371066('0x25d6')]=_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x124b')][_0x371066('0x1a39')]('=')[0x0],_0x2cbe8e[_0x371066('0xeff')]['value']=_0x2cbe8e['agent']['appdata'][_0x371066('0x1a39')]('=')[0x1];break;case _0x371066('0x2067'):_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x24b9')]=_0x2cbe8e['agent'][_0x371066('0x124b')];break;default:{var _0x1d0cc3=_0x2cbe8e['agent'][_0x371066('0x124b')]['split'](',');_0x2cbe8e['agent'][_0x371066('0xeff')]=_0x51538b()[_0x371066('0x116b')](_0x1d0cc3[0x0])?_0x1d0cc3[0x0]:isNaN(_0x1d0cc3[0x0])?_0x1d0cc3[0x0]:parseInt(_0x1d0cc3[0x0],0xa),_0x2cbe8e[_0x371066('0xeff')]['timeout']=_0x51538b()[_0x371066('0x116b')](_0x1d0cc3[0x1])?_0x1d0cc3[0x1]:isNaN(_0x1d0cc3[0x1])?_0x1d0cc3[0x1]:parseInt(_0x1d0cc3[0x1],0xa);}break;}else _0x2cbe8e[_0x371066('0xeff')]['timeout']=0x1e;_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x6c8')]&&_0x2cbe8e['agent'][_0x371066('0x6c8')][_0x371066('0xcf6')]()===_0x371066('0x19d1')&&_0x2cbe8e['agent']['appType'][_0x371066('0xcf6')]()===_0x371066('0x1e7f')&&(_0x2cbe8e['agent'][_0x371066('0x1b8f')]=_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x1a46')]?_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x1a46')][_0x371066('0x1a39')]('$')[0x0]:undefined,_0x2cbe8e[_0x371066('0xeff')][_0x371066('0xeed')]=_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x514')]?'CALLERID(all)='+_0x2cbe8e[_0x371066('0xeff')][_0x371066('0x514')]:undefined);_0x2cbe8e[_0x371066('0x9c1')]=_0x51bb57,_0x2cbe8e[_0x371066('0x2023')]=_0x2dff87,_0x4f6bc2['hasRole'](_0x371066('0x178b'))?_0x347ed6[_0x371066('0x272b')][_0x371066('0x2122')]({'fields':_0x371066('0x17fe'),'sort':_0x371066('0x25d6'),'role':_0x371066('0xeff'),'nolimit':_0x371066('0x1c5c')})[_0x371066('0x1dc2')][_0x371066('0xaa5')](function(_0x4d7cea){var _0x113a3c=_0x371066;_0x2cbe8e[_0x113a3c('0x1717')]=_0x4d7cea['rows']||[];})[_0x371066('0x253d')](function(_0x2c04f8){var _0x4e9f2b=_0x371066;_0x4435e0[_0x4e9f2b('0x187f')]({'title':_0x2c04f8[_0x4e9f2b('0x2fa')]?_0x4e9f2b('0x16c2')+_0x2c04f8[_0x4e9f2b('0x2fa')]+_0x4e9f2b('0x169e')+_0x2c04f8[_0x4e9f2b('0x24df')]:_0x4e9f2b('0x14c6'),'msg':_0x2c04f8[_0x4e9f2b('0x10fd')]?JSON[_0x4e9f2b('0xa48')](_0x2c04f8[_0x4e9f2b('0x10fd')]):_0x2c04f8[_0x4e9f2b('0x684')]()});}):_0x347ed6[_0x371066('0x272b')][_0x371066('0x2122')]({'fields':_0x371066('0x17fe'),'sort':_0x371066('0x25d6'),'role':_0x371066('0xeff'),'nolimit':'true'})['$promise'][_0x371066('0xaa5')](function(_0x247bcc){var _0x92a08e=_0x371066;_0x2cbe8e[_0x92a08e('0x1717')]=_0x247bcc[_0x92a08e('0x580')]||[];})[_0x371066('0xaa5')](function(){var _0x150d5b=_0x371066;return _0x347ed6[_0x150d5b('0x1a50')][_0x150d5b('0x2122')]({'userProfileId':_0x2cbe8e[_0x150d5b('0x7fc')][_0x150d5b('0x2168')],'sectionId':0xca})[_0x150d5b('0x1dc2')];})['then'](function(_0x320344){var _0x2a64bb=_0x371066,_0x2ac577=_0x320344&&_0x320344[_0x2a64bb('0x580')]?_0x320344[_0x2a64bb('0x580')][0x0]:null;if(!_0x2ac577){var _0x259f49=[],_0x2d2498=null;_0x2cbe8e[_0x2a64bb('0xeff')]&&(_0x2d2498=_0x51538b()[_0x2a64bb('0xe9e')](_0x2cbe8e['agents'],{'name':_0x2cbe8e[_0x2a64bb('0xeff')]['agent']}));for(var _0x1ab432=0x0;_0x1ab432<_0x2cbe8e['agents'][_0x2a64bb('0x2587')];_0x1ab432++){_0x2d2498&&_0x2cbe8e[_0x2a64bb('0x1717')][_0x1ab432]['id']===_0x2d2498['id']&&(_0x2cbe8e['agents'][_0x1ab432][_0x2a64bb('0x12eb')]=![],_0x259f49[_0x2a64bb('0x1599')](_0x2cbe8e[_0x2a64bb('0x1717')][_0x1ab432]));}_0x2cbe8e[_0x2a64bb('0x1717')]=_0x259f49;}else{if(!_0x2ac577[_0x2a64bb('0x26cc')])return _0x347ed6[_0x2a64bb('0x249a')][_0x2a64bb('0x2122')]({'sectionId':_0x2ac577['id']})[_0x2a64bb('0x1dc2')][_0x2a64bb('0xaa5')](function(_0x3a7306){var _0x18814a=_0x2a64bb,_0x39582d=_0x51538b()[_0x18814a('0x1246')](_0x3a7306[_0x18814a('0x580')],function(_0x21a6d1){var _0x2afb67=_0x18814a;return _0x51538b()[_0x2afb67('0xe9e')](_0x2cbe8e[_0x2afb67('0x1717')],{'id':_0x21a6d1['resourceId']});}),_0x5f6711=null;_0x2cbe8e['agent']&&(_0x5f6711=_0x51538b()['find'](_0x2cbe8e[_0x18814a('0x1717')],{'name':_0x2cbe8e[_0x18814a('0xeff')]['agent']}));if(_0x5f6711&&!_0x51538b()[_0x18814a('0x2c2')](_0x39582d,['id',_0x5f6711['id']])){var _0x250a19=_0x51538b()[_0x18814a('0xe9e')](_0x2cbe8e[_0x18814a('0x1717')],{'id':_0x5f6711['id']});_0x250a19[_0x18814a('0x12eb')]=![],_0x39582d['push'](_0x250a19);}_0x2cbe8e[_0x18814a('0x1717')]=_0x39582d;});}})[_0x371066('0x253d')](function(_0x18cc00){var _0x6dc36c=_0x371066;_0x4435e0['error']({'title':_0x18cc00[_0x6dc36c('0x2fa')]?_0x6dc36c('0x16c2')+_0x18cc00[_0x6dc36c('0x2fa')]+_0x6dc36c('0x169e')+_0x18cc00['statusText']:_0x6dc36c('0x1a3b'),'msg':_0x18cc00[_0x6dc36c('0x10fd')]?JSON['stringify'](_0x18cc00['data']):_0x18cc00['toString']()});});function _0x51bb57(){var _0x3f5241=_0x371066;_0x2cbe8e[_0x3f5241('0x4c6')]=[];var _0x36fd27=[];_0x2cbe8e[_0x3f5241('0xeff')]['type']&&_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x6c8')][_0x3f5241('0xcf6')]()===_0x3f5241('0x19d1')&&_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0xe6d')]===_0x3f5241('0x8da')&&(_0x2cbe8e[_0x3f5241('0xeff')]['phone']=_0x1439db['cutdigits']?(_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x1b8f')]||'')+_0x3f5241('0x117e')+_0x1439db[_0x3f5241('0x888')]+'}':(_0x2cbe8e['agent'][_0x3f5241('0x1b8f')]||'')+'${EXTEN}',_0x1439db[_0x3f5241('0x1e0f')]!=='none'?_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x1b36')][_0x3f5241('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x1b36')]+=_0x3f5241('0x266a')):_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x1b36')]=_0x2cbe8e['agent']['options'][_0x3f5241('0x170d')]('U(xcally-mixmonitor-context)',''));var _0x15ebb5=_0x51538b()[_0x3f5241('0xe9e')](_0x2cbe8e['agents'],{'name':_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0xeff')]});_0x15ebb5&&(_0x2cbe8e[_0x3f5241('0xeff')]['UserId']=_0x15ebb5['id']);if(_0x2cbe8e['agent'][_0x3f5241('0xe6d')]&&_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0xe6d')]===_0x3f5241('0x113b')){}else switch((_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x9eb')]||_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0xe6d')])[_0x3f5241('0xcf6')]()){case _0x3f5241('0x282c'):_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x124b')]=_0x2cbe8e[_0x3f5241('0xeff')]['name']+'='+_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x12f4')];break;case'custom':break;default:_0x36fd27[0x0]=_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0xeff')],_0x36fd27[0x1]=_0x2cbe8e['agent'][_0x3f5241('0x23c0')],_0x2cbe8e[_0x3f5241('0xeff')][_0x3f5241('0x124b')]=_0x36fd27[_0x3f5241('0x19c4')](',');}_0x2dff87(_0x2cbe8e[_0x3f5241('0xeff')]);}function _0x2dff87(_0x3416a5){var _0x3210fb=_0x371066;_0x3fb139[_0x3210fb('0x1120')](_0x3416a5);}}const _0x35108d=_0x24cfbb;_0x34af99['$inject']=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x8a2'),_0x1a8446('0x2566'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x34af99(_0x439958,_0xba8e12,_0x298366,_0x476d15,_0x6cf14e,_0x4d9988,_0x3a9198,_0x182de9){var _0x693c49=_0x1a8446,_0x3c1eb6=this;_0x3c1eb6[_0x693c49('0x7fc')]=_0x3a9198[_0x693c49('0xacc')](),_0x3c1eb6['errors']=[],_0x3c1eb6['title']=_0x693c49('0x1906')+(_0x476d15[_0x693c49('0xe6d')]||_0x476d15['app'])[_0x693c49('0x1d08')](),_0x3c1eb6[_0x693c49('0x3f5')]=angular[_0x693c49('0x20a')](_0x476d15),_0x3c1eb6['crudPermissions']=_0x182de9,_0x3c1eb6[_0x693c49('0x9f0')]={};if(_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x124b')])switch(_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0xe6d')]?_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0xe6d')][_0x693c49('0xcf6')]():_0x3c1eb6[_0x693c49('0x3f5')]['app'][_0x693c49('0xcf6')]()){case _0x693c49('0x113b'):break;case _0x693c49('0x67c'):{var _0x15915b=_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x124b')]['split'](',');_0x3c1eb6['amazonlex']['key']=_0x15915b[0x0],_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x1938')]=_0x15915b[0x1],_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x273')]=_0x15915b[_0x693c49('0x19aa')](0x2,_0x15915b[_0x693c49('0x2587')])[_0x693c49('0x19c4')](',');}break;case _0x693c49('0x3f5'):{var _0x2dd765=_0x3c1eb6['amazonlex'][_0x693c49('0x124b')][_0x693c49('0x1a39')](',');_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0xc07')]=_0x2dd765[0x0],_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x15f9')]=_0x2dd765[0x1],_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0xa9a')]=_0x2dd765[0x2],_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x18ee')]=_0x2dd765[0x3],_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x273')]=_0x2dd765[_0x693c49('0x19aa')](0x4,_0x2dd765[_0x693c49('0x2587')])[_0x693c49('0x19c4')](',');}break;case _0x693c49('0x1b05'):{var _0x5ec3a0=_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x124b')]['split'](',');_0x3c1eb6['amazonlex'][_0x693c49('0x11b6')]=isNaN(_0x5ec3a0[0x0])?_0x5ec3a0[0x0]:parseInt(_0x5ec3a0[0x0],0xa),_0x3c1eb6[_0x693c49('0x3f5')]['text']=_0x5ec3a0[_0x693c49('0x19aa')](0x1,_0x5ec3a0[_0x693c49('0x2587')])[_0x693c49('0x19c4')](',');}break;case _0x693c49('0x1402'):_0x3c1eb6['amazonlex'][_0x693c49('0xb37')]=_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x124b')];break;case _0x693c49('0x282c'):_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x25d6')]=_0x3c1eb6['amazonlex'][_0x693c49('0x124b')]['split']('=')[0x0],_0x3c1eb6['amazonlex']['value']=_0x3c1eb6[_0x693c49('0x3f5')]['appdata']['split']('=')[0x1];break;case _0x693c49('0x2067'):_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x24b9')]=_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x124b')];break;default:{var _0x199129=_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x124b')]['split'](',');_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0xc07')]=_0x51538b()['isEmpty'](_0x199129[0x0])?_0x199129[0x0]:isNaN(_0x199129[0x0])?_0x199129[0x0]:parseInt(_0x199129[0x0],0xa),_0x3c1eb6['amazonlex'][_0x693c49('0x15f9')]=_0x51538b()[_0x693c49('0x116b')](_0x199129[0x1])?_0x199129[0x1]:isNaN(_0x199129[0x1])?_0x199129[0x1]:parseInt(_0x199129[0x1],0xa),_0x3c1eb6['amazonlex'][_0x693c49('0xa9a')]=_0x51538b()['isEmpty'](_0x199129[0x2])?_0x199129[0x2]:isNaN(_0x199129[0x2])?_0x199129[0x2]:parseInt(_0x199129[0x2],0xa),_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x18ee')]=_0x51538b()[_0x693c49('0x116b')](_0x199129[0x3])?_0x199129[0x3]:isNaN(_0x199129[0x3])?_0x199129[0x3]:parseInt(_0x199129[0x3],0xa),_0x3c1eb6['amazonlex']['welcomemessage']=_0x51538b()[_0x693c49('0x116b')](_0x199129[0x4])?_0x199129[0x4]:isNaN(_0x199129[0x4])?_0x199129[0x4]:parseInt(_0x199129[0x4],0xa);}break;}else _0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0xa9a')]=_0x693c49('0x21fd');_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x6c8')]&&_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x6c8')][_0x693c49('0xcf6')]()==='outbound'&&_0x3c1eb6['amazonlex']['appType']['toLowerCase']()==='outbounddial'&&(_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0x1b8f')]=_0x3c1eb6[_0x693c49('0x3f5')]['phone']?_0x3c1eb6[_0x693c49('0x3f5')]['phone'][_0x693c49('0x1a39')]('$')[0x0]:undefined,_0x3c1eb6[_0x693c49('0x3f5')][_0x693c49('0xeed')]=_0x3c1eb6[_0x693c49('0x3f5')]['callerID']?_0x693c49('0x23d8')+_0x3c1eb6[_0x693c49('0x3f5')]['callerID']:undefined);_0x3c1eb6['saveOpenchannelAccountApp']=_0x49697b,_0x3c1eb6[_0x693c49('0x2023')]=_0x5e1558;function _0x49697b(){var _0x554009=_0x693c49;_0x3c1eb6[_0x554009('0x4c6')]=[];var _0x5dd3de=[];_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x6c8')]&&_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x6c8')][_0x554009('0xcf6')]()==='outbound'&&_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0xe6d')]===_0x554009('0x8da')&&(_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x1a46')]=_0x6cf14e[_0x554009('0x888')]?(_0x3c1eb6['amazonlex']['prefix']||'')+_0x554009('0x117e')+_0x6cf14e[_0x554009('0x888')]+'}':(_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x1b8f')]||'')+_0x554009('0x1f87'),_0x6cf14e[_0x554009('0x1e0f')]!==_0x554009('0x117')?_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x1b36')]['indexOf'](_0x554009('0x266a'))<0x0&&(_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x1b36')]+=_0x554009('0x266a')):_0x3c1eb6[_0x554009('0x3f5')]['options']=_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x1b36')][_0x554009('0x170d')](_0x554009('0x266a'),''));if(_0x3c1eb6['amazonlex'][_0x554009('0xe6d')]&&_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0xe6d')]===_0x554009('0x113b')){}else switch((_0x3c1eb6[_0x554009('0x3f5')]['app']||_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0xe6d')])['toLowerCase']()){case _0x554009('0x282c'):_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x124b')]=_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x25d6')]+'='+_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x12f4')];break;case _0x554009('0x113b'):break;default:_0x5dd3de[0x0]=_0x3c1eb6[_0x554009('0x3f5')]['accesskeyid'],_0x5dd3de[0x1]=_0x3c1eb6[_0x554009('0x3f5')]['secretaccesskey'],_0x5dd3de[0x2]=_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0xa9a')],_0x5dd3de[0x3]=_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x18ee')],_0x5dd3de[0x4]=_0x3c1eb6['amazonlex']['welcomemessage'],_0x3c1eb6[_0x554009('0x3f5')][_0x554009('0x124b')]=_0x5dd3de[_0x554009('0x19c4')](',');}_0x5e1558(_0x3c1eb6[_0x554009('0x3f5')]);}function _0x5e1558(_0xfa5728){var _0x24ae21=_0x693c49;_0x439958[_0x24ae21('0x1120')](_0xfa5728);}}const _0x2673d0=_0x34af99;_0x519448[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x8a2'),_0x1a8446('0x2566'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x519448(_0x5a0b54,_0x756777,_0x2b5e1c,_0x2456cc,_0x3370ea,_0x431d65,_0x237cd2,_0x565d89){var _0x18e4e8=_0x1a8446,_0x2e300b=this;_0x2e300b[_0x18e4e8('0x7fc')]=_0x237cd2['getCurrentUser'](),_0x2e300b[_0x18e4e8('0x4c6')]=[],_0x2e300b[_0x18e4e8('0x110a')]=_0x18e4e8('0x1906')+(_0x2456cc['appType']||_0x2456cc[_0x18e4e8('0x9eb')])[_0x18e4e8('0x1d08')](),_0x2e300b[_0x18e4e8('0x1b05')]=angular[_0x18e4e8('0x20a')](_0x2456cc),_0x2e300b[_0x18e4e8('0xada')]=_0x565d89,_0x2e300b['hasModulePermissions']={};if(_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x124b')])switch(_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0xe6d')]?_0x2e300b['autoreply'][_0x18e4e8('0xe6d')][_0x18e4e8('0xcf6')]():_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x9eb')][_0x18e4e8('0xcf6')]()){case'custom':break;case _0x18e4e8('0x67c'):{var _0x16a41d=_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x124b')][_0x18e4e8('0x1a39')](',');_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x24ec')]=_0x16a41d[0x0],_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x1938')]=_0x16a41d[0x1],_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x273')]=_0x16a41d['slice'](0x2,_0x16a41d[_0x18e4e8('0x2587')])[_0x18e4e8('0x19c4')](',');}break;case _0x18e4e8('0x3f5'):{var _0xe2e5a4=_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x124b')]['split'](',');_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0xc07')]=_0xe2e5a4[0x0],_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x15f9')]=_0xe2e5a4[0x1],_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0xa9a')]=_0xe2e5a4[0x2],_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x18ee')]=_0xe2e5a4[0x3],_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x273')]=_0xe2e5a4[_0x18e4e8('0x19aa')](0x4,_0xe2e5a4[_0x18e4e8('0x2587')])[_0x18e4e8('0x19c4')](',');}break;case'autoreply':{var _0x13c7b9=_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x124b')][_0x18e4e8('0x1a39')](',');_0x2e300b['autoreply'][_0x18e4e8('0x11b6')]=isNaN(_0x13c7b9[0x0])?_0x13c7b9[0x0]:parseInt(_0x13c7b9[0x0],0xa),_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0xb37')]=_0x13c7b9['slice'](0x1,_0x13c7b9[_0x18e4e8('0x2587')])['join'](',');}break;case'message':_0x2e300b['autoreply'][_0x18e4e8('0xb37')]=_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x124b')];break;case _0x18e4e8('0x282c'):_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x25d6')]=_0x2e300b['autoreply']['appdata'][_0x18e4e8('0x1a39')]('=')[0x0],_0x2e300b['autoreply']['value']=_0x2e300b[_0x18e4e8('0x1b05')]['appdata'][_0x18e4e8('0x1a39')]('=')[0x1];break;case _0x18e4e8('0x2067'):_0x2e300b[_0x18e4e8('0x1b05')]['project']=_0x2e300b[_0x18e4e8('0x1b05')]['appdata'];break;default:{var _0xfb1873=_0x2e300b['autoreply'][_0x18e4e8('0x124b')][_0x18e4e8('0x1a39')](',');_0x2e300b[_0x18e4e8('0x1b05')]['times']=_0x51538b()[_0x18e4e8('0x116b')](_0xfb1873[0x0])?_0xfb1873[0x0]:isNaN(_0xfb1873[0x0])?_0xfb1873[0x0]:parseInt(_0xfb1873[0x0],0xa),_0x2e300b['autoreply'][_0x18e4e8('0xb37')]=_0x51538b()[_0x18e4e8('0x116b')](_0xfb1873[0x1])?_0xfb1873[0x1]:isNaN(_0xfb1873[0x1])?_0xfb1873[0x1]:parseInt(_0xfb1873[0x1],0xa);}break;}else _0x2e300b['autoreply']['times']=0x1;_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x6c8')]&&_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x6c8')][_0x18e4e8('0xcf6')]()===_0x18e4e8('0x19d1')&&_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0xe6d')][_0x18e4e8('0xcf6')]()===_0x18e4e8('0x1e7f')&&(_0x2e300b[_0x18e4e8('0x1b05')]['prefix']=_0x2e300b['autoreply']['phone']?_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x1a46')]['split']('$')[0x0]:undefined,_0x2e300b[_0x18e4e8('0x1b05')]['callerId']=_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x514')]?_0x18e4e8('0x23d8')+_0x2e300b[_0x18e4e8('0x1b05')][_0x18e4e8('0x514')]:undefined);_0x2e300b['saveOpenchannelAccountApp']=_0x5dde87,_0x2e300b[_0x18e4e8('0x2023')]=_0x31524a;function _0x5dde87(){var _0x539d7d=_0x18e4e8;_0x2e300b[_0x539d7d('0x4c6')]=[];var _0x581991=[];_0x2e300b['autoreply'][_0x539d7d('0x6c8')]&&_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0x6c8')][_0x539d7d('0xcf6')]()===_0x539d7d('0x19d1')&&_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0xe6d')]===_0x539d7d('0x8da')&&(_0x2e300b['autoreply'][_0x539d7d('0x1a46')]=_0x3370ea['cutdigits']?(_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0x1b8f')]||'')+_0x539d7d('0x117e')+_0x3370ea[_0x539d7d('0x888')]+'}':(_0x2e300b['autoreply'][_0x539d7d('0x1b8f')]||'')+_0x539d7d('0x1f87'),_0x3370ea[_0x539d7d('0x1e0f')]!=='none'?_0x2e300b[_0x539d7d('0x1b05')]['options'][_0x539d7d('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2e300b[_0x539d7d('0x1b05')]['options']+=_0x539d7d('0x266a')):_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0x1b36')]=_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0x1b36')][_0x539d7d('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x2e300b[_0x539d7d('0x1b05')]['appType']&&_0x2e300b[_0x539d7d('0x1b05')]['appType']==='custom'){}else switch((_0x2e300b[_0x539d7d('0x1b05')]['app']||_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0xe6d')])[_0x539d7d('0xcf6')]()){case'set':_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0x124b')]=_0x2e300b[_0x539d7d('0x1b05')]['name']+'='+_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0x12f4')];break;case'custom':break;default:_0x581991[0x0]=_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0x11b6')],_0x581991[0x1]=_0x2e300b[_0x539d7d('0x1b05')][_0x539d7d('0xb37')],_0x2e300b[_0x539d7d('0x1b05')]['appdata']=_0x581991[_0x539d7d('0x19c4')](',');}_0x31524a(_0x2e300b[_0x539d7d('0x1b05')]);}function _0x31524a(_0x498400){var _0x51d5df=_0x18e4e8;_0x5a0b54[_0x51d5df('0x1120')](_0x498400);}}const _0x5a66de=_0x519448;_0x5631a9['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'openchannelAccountApp',_0x1a8446('0x2566'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x5631a9(_0x194cbf,_0xa2d0cc,_0x57e4a2,_0x5b172f,_0x52210a,_0x57ea7c,_0x592107,_0x40d21e){var _0x19872a=_0x1a8446,_0x38a72c=this;_0x38a72c['currentUser']=_0x592107[_0x19872a('0xacc')](),_0x38a72c[_0x19872a('0x4c6')]=[],_0x38a72c[_0x19872a('0x110a')]='OPENCHANNEL.EDIT_'+(_0x5b172f[_0x19872a('0xe6d')]||_0x5b172f['app'])['toUpperCase'](),_0x38a72c[_0x19872a('0x21d0')]=angular[_0x19872a('0x20a')](_0x5b172f),_0x38a72c['crudPermissions']=_0x40d21e,_0x38a72c[_0x19872a('0x9f0')]={};if(_0x38a72c['close']['appdata'])switch(_0x38a72c['close'][_0x19872a('0xe6d')]?_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0xe6d')][_0x19872a('0xcf6')]():_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x9eb')][_0x19872a('0xcf6')]()){case'custom':break;case _0x19872a('0x67c'):{var _0x1a3430=_0x38a72c['close'][_0x19872a('0x124b')][_0x19872a('0x1a39')](',');_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x24ec')]=_0x1a3430[0x0],_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x1938')]=_0x1a3430[0x1],_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x273')]=_0x1a3430['slice'](0x2,_0x1a3430['length'])[_0x19872a('0x19c4')](',');}break;case _0x19872a('0x3f5'):{var _0x480bae=_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x124b')][_0x19872a('0x1a39')](',');_0x38a72c['close']['accesskeyid']=_0x480bae[0x0],_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x15f9')]=_0x480bae[0x1],_0x38a72c['close'][_0x19872a('0xa9a')]=_0x480bae[0x2],_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x18ee')]=_0x480bae[0x3],_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x273')]=_0x480bae['slice'](0x4,_0x480bae[_0x19872a('0x2587')])[_0x19872a('0x19c4')](',');}break;case _0x19872a('0x1b05'):{var _0x19143a=_0x38a72c['close'][_0x19872a('0x124b')][_0x19872a('0x1a39')](',');_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x11b6')]=isNaN(_0x19143a[0x0])?_0x19143a[0x0]:parseInt(_0x19143a[0x0],0xa),_0x38a72c['close'][_0x19872a('0xb37')]=_0x19143a[_0x19872a('0x19aa')](0x1,_0x19143a[_0x19872a('0x2587')])[_0x19872a('0x19c4')](',');}break;case _0x19872a('0x1402'):_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0xb37')]=_0x38a72c['close'][_0x19872a('0x124b')];break;case _0x19872a('0x282c'):_0x38a72c['close'][_0x19872a('0x25d6')]=_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x124b')]['split']('=')[0x0],_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x12f4')]=_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x124b')]['split']('=')[0x1];break;case _0x19872a('0x2067'):_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x24b9')]=_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x124b')];break;default:{var _0x14b1a4=_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x124b')]['split'](',');_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x106e')]=_0x51538b()[_0x19872a('0x116b')](_0x14b1a4[0x0])?_0x14b1a4[0x0]:isNaN(_0x14b1a4[0x0])?_0x14b1a4[0x0]:parseInt(_0x14b1a4[0x0],0xa);}break;}else{}_0x38a72c['close']['type']&&_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x6c8')][_0x19872a('0xcf6')]()===_0x19872a('0x19d1')&&_0x38a72c['close']['appType'][_0x19872a('0xcf6')]()===_0x19872a('0x1e7f')&&(_0x38a72c['close'][_0x19872a('0x1b8f')]=_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x1a46')]?_0x38a72c[_0x19872a('0x21d0')][_0x19872a('0x1a46')][_0x19872a('0x1a39')]('$')[0x0]:undefined,_0x38a72c['close'][_0x19872a('0xeed')]=_0x38a72c['close'][_0x19872a('0x514')]?'CALLERID(all)='+_0x38a72c[_0x19872a('0x21d0')]['callerID']:undefined);_0x38a72c[_0x19872a('0x9c1')]=_0x276b47,_0x38a72c['closeDialog']=_0x12c45e;function _0x276b47(){var _0xed3452=_0x19872a;_0x38a72c[_0xed3452('0x4c6')]=[];var _0x3d0629=[];_0x38a72c[_0xed3452('0x21d0')][_0xed3452('0x6c8')]&&_0x38a72c[_0xed3452('0x21d0')]['type']['toLowerCase']()===_0xed3452('0x19d1')&&_0x38a72c[_0xed3452('0x21d0')][_0xed3452('0xe6d')]===_0xed3452('0x8da')&&(_0x38a72c[_0xed3452('0x21d0')][_0xed3452('0x1a46')]=_0x52210a[_0xed3452('0x888')]?(_0x38a72c['close'][_0xed3452('0x1b8f')]||'')+_0xed3452('0x117e')+_0x52210a[_0xed3452('0x888')]+'}':(_0x38a72c[_0xed3452('0x21d0')][_0xed3452('0x1b8f')]||'')+'${EXTEN}',_0x52210a[_0xed3452('0x1e0f')]!==_0xed3452('0x117')?_0x38a72c['close']['options']['indexOf'](_0xed3452('0x266a'))<0x0&&(_0x38a72c[_0xed3452('0x21d0')][_0xed3452('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x38a72c[_0xed3452('0x21d0')]['options']=_0x38a72c[_0xed3452('0x21d0')]['options'][_0xed3452('0x170d')](_0xed3452('0x266a'),''));if(_0x38a72c[_0xed3452('0x21d0')]['appType']&&_0x38a72c[_0xed3452('0x21d0')]['appType']===_0xed3452('0x113b')){}else switch((_0x38a72c[_0xed3452('0x21d0')][_0xed3452('0x9eb')]||_0x38a72c[_0xed3452('0x21d0')]['appType'])[_0xed3452('0xcf6')]()){case'set':_0x38a72c['close'][_0xed3452('0x124b')]=_0x38a72c['close']['name']+'='+_0x38a72c[_0xed3452('0x21d0')][_0xed3452('0x12f4')];break;case'custom':break;default:_0x3d0629[0x0]=_0x38a72c[_0xed3452('0x21d0')]['disposition'],_0x38a72c['close'][_0xed3452('0x124b')]=_0x3d0629[_0xed3452('0x19c4')](',');}_0x12c45e(_0x38a72c[_0xed3452('0x21d0')]);}function _0x12c45e(_0x185d62){_0x194cbf['hide'](_0x185d62);}}const _0x27dd7d=_0x5631a9;_0xf20f0e[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x8a2'),'openchannelAccount',_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0xf20f0e(_0x20bd7e,_0x123b90,_0x78f04c,_0x84f3ee,_0x288da6,_0x451ac4,_0x20e498,_0x45ebd0){var _0xb46a81=_0x1a8446,_0x51eded=this;_0x51eded['currentUser']=_0x20e498['getCurrentUser'](),_0x51eded[_0xb46a81('0x4c6')]=[],_0x51eded['title']=_0xb46a81('0x1906')+(_0x84f3ee[_0xb46a81('0xe6d')]||_0x84f3ee[_0xb46a81('0x9eb')])[_0xb46a81('0x1d08')](),_0x51eded[_0xb46a81('0x67c')]=angular[_0xb46a81('0x20a')](_0x84f3ee),_0x51eded[_0xb46a81('0xada')]=_0x45ebd0,_0x51eded[_0xb46a81('0x9f0')]={};if(_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x124b')])switch(_0x51eded['dialogflow'][_0xb46a81('0xe6d')]?_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0xe6d')]['toLowerCase']():_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x9eb')]['toLowerCase']()){case'custom':break;case _0xb46a81('0x67c'):{var _0x26823f=_0x51eded['dialogflow']['appdata'][_0xb46a81('0x1a39')](',');_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x24ec')]=_0x26823f[0x0],_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x1938')]=_0x26823f[0x1],_0x51eded['dialogflow'][_0xb46a81('0x273')]=_0x26823f[_0xb46a81('0x19aa')](0x2,_0x26823f[_0xb46a81('0x2587')])['join'](',');}break;case _0xb46a81('0x3f5'):{var _0x5dbf65=_0x51eded['dialogflow']['appdata']['split'](',');_0x51eded['dialogflow']['accesskeyid']=_0x5dbf65[0x0],_0x51eded['dialogflow'][_0xb46a81('0x15f9')]=_0x5dbf65[0x1],_0x51eded['dialogflow']['lexregion']=_0x5dbf65[0x2],_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x18ee')]=_0x5dbf65[0x3],_0x51eded['dialogflow'][_0xb46a81('0x273')]=_0x5dbf65[_0xb46a81('0x19aa')](0x4,_0x5dbf65[_0xb46a81('0x2587')])[_0xb46a81('0x19c4')](',');}break;case _0xb46a81('0x1b05'):{var _0x484c3b=_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x124b')][_0xb46a81('0x1a39')](',');_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x11b6')]=isNaN(_0x484c3b[0x0])?_0x484c3b[0x0]:parseInt(_0x484c3b[0x0],0xa),_0x51eded[_0xb46a81('0x67c')]['text']=_0x484c3b[_0xb46a81('0x19aa')](0x1,_0x484c3b[_0xb46a81('0x2587')])[_0xb46a81('0x19c4')](',');}break;case _0xb46a81('0x1402'):_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0xb37')]=_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x124b')];break;case _0xb46a81('0x282c'):_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x25d6')]=_0x51eded['dialogflow']['appdata'][_0xb46a81('0x1a39')]('=')[0x0],_0x51eded['dialogflow'][_0xb46a81('0x12f4')]=_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x124b')][_0xb46a81('0x1a39')]('=')[0x1];break;case _0xb46a81('0x2067'):_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x24b9')]=_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x124b')];break;default:{var _0x254d97=_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x124b')][_0xb46a81('0x1a39')](',');_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x24ec')]=_0x51538b()[_0xb46a81('0x116b')](_0x254d97[0x0])?_0x254d97[0x0]:isNaN(_0x254d97[0x0])?_0x254d97[0x0]:parseInt(_0x254d97[0x0],0xa),_0x51eded['dialogflow'][_0xb46a81('0x1938')]=_0x51538b()[_0xb46a81('0x116b')](_0x254d97[0x1])?_0x254d97[0x1]:isNaN(_0x254d97[0x1])?_0x254d97[0x1]:parseInt(_0x254d97[0x1],0xa),_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x273')]=_0x51538b()[_0xb46a81('0x116b')](_0x254d97[0x2])?_0x254d97[0x2]:isNaN(_0x254d97[0x2])?_0x254d97[0x2]:parseInt(_0x254d97[0x2],0xa);}break;}else _0x51eded['dialogflow'][_0xb46a81('0x1938')]='en';_0x51eded['dialogflow']['type']&&_0x51eded['dialogflow'][_0xb46a81('0x6c8')][_0xb46a81('0xcf6')]()===_0xb46a81('0x19d1')&&_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0xe6d')][_0xb46a81('0xcf6')]()===_0xb46a81('0x1e7f')&&(_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x1b8f')]=_0x51eded['dialogflow'][_0xb46a81('0x1a46')]?_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x1a46')][_0xb46a81('0x1a39')]('$')[0x0]:undefined,_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0xeed')]=_0x51eded['dialogflow'][_0xb46a81('0x514')]?_0xb46a81('0x23d8')+_0x51eded[_0xb46a81('0x67c')][_0xb46a81('0x514')]:undefined);_0x51eded[_0xb46a81('0x9c1')]=_0x41e9fd,_0x51eded['closeDialog']=_0x5d78c2;function _0x41e9fd(){var _0x2a65e9=_0xb46a81;_0x51eded[_0x2a65e9('0x4c6')]=[];var _0xe67e9b=[];_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0x6c8')]&&_0x51eded['dialogflow'][_0x2a65e9('0x6c8')][_0x2a65e9('0xcf6')]()===_0x2a65e9('0x19d1')&&_0x51eded['dialogflow'][_0x2a65e9('0xe6d')]===_0x2a65e9('0x8da')&&(_0x51eded['dialogflow']['phone']=_0x288da6[_0x2a65e9('0x888')]?(_0x51eded['dialogflow'][_0x2a65e9('0x1b8f')]||'')+'${EXTEN:'+_0x288da6[_0x2a65e9('0x888')]+'}':(_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0x1b8f')]||'')+_0x2a65e9('0x1f87'),_0x288da6[_0x2a65e9('0x1e0f')]!==_0x2a65e9('0x117')?_0x51eded['dialogflow'][_0x2a65e9('0x1b36')][_0x2a65e9('0x1f38')](_0x2a65e9('0x266a'))<0x0&&(_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x51eded[_0x2a65e9('0x67c')]['options']=_0x51eded[_0x2a65e9('0x67c')]['options'][_0x2a65e9('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0xe6d')]&&_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0xe6d')]===_0x2a65e9('0x113b')){}else switch((_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0x9eb')]||_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0xe6d')])[_0x2a65e9('0xcf6')]()){case _0x2a65e9('0x282c'):_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0x124b')]=_0x51eded['dialogflow'][_0x2a65e9('0x25d6')]+'='+_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0x12f4')];break;case _0x2a65e9('0x113b'):break;default:_0xe67e9b[0x0]=_0x51eded['dialogflow'][_0x2a65e9('0x24ec')],_0xe67e9b[0x1]=_0x51eded['dialogflow'][_0x2a65e9('0x1938')],_0xe67e9b[0x2]=_0x51eded[_0x2a65e9('0x67c')][_0x2a65e9('0x273')],_0x51eded['dialogflow'][_0x2a65e9('0x124b')]=_0xe67e9b[_0x2a65e9('0x19c4')](',');}_0x5d78c2(_0x51eded[_0x2a65e9('0x67c')]);}function _0x5d78c2(_0x139267){var _0x514922=_0xb46a81;_0x20bd7e[_0x514922('0x1120')](_0x139267);}}const _0x2ae3d8=_0xf20f0e;_0x2c43bb[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty','openchannelAccountApp',_0x1a8446('0x2566'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x2c43bb(_0x4a8232,_0x396087,_0xfd5d8,_0x338ad5,_0x11e908,_0x205d55,_0x22b1d6,_0x36581c){var _0x157774=_0x1a8446,_0x5643ae=this;_0x5643ae[_0x157774('0x7fc')]=_0x22b1d6['getCurrentUser'](),_0x5643ae['errors']=[],_0x5643ae[_0x157774('0x110a')]=_0x157774('0x1906')+(_0x338ad5[_0x157774('0xe6d')]||_0x338ad5[_0x157774('0x9eb')])[_0x157774('0x1d08')](),_0x5643ae[_0x157774('0x3cb')]=angular[_0x157774('0x20a')](_0x338ad5),_0x5643ae['crudPermissions']=_0x36581c,_0x5643ae['hasModulePermissions']={};if(_0x5643ae[_0x157774('0x3cb')][_0x157774('0x124b')])switch(_0x5643ae[_0x157774('0x3cb')]['appType']?_0x5643ae[_0x157774('0x3cb')][_0x157774('0xe6d')][_0x157774('0xcf6')]():_0x5643ae[_0x157774('0x3cb')][_0x157774('0x9eb')][_0x157774('0xcf6')]()){case _0x157774('0x113b'):break;case _0x157774('0x67c'):{var _0x33e1e1=_0x5643ae['gotoif']['appdata'][_0x157774('0x1a39')](',');_0x5643ae['gotoif'][_0x157774('0x24ec')]=_0x33e1e1[0x0],_0x5643ae[_0x157774('0x3cb')][_0x157774('0x1938')]=_0x33e1e1[0x1],_0x5643ae[_0x157774('0x3cb')]['welcomemessage']=_0x33e1e1[_0x157774('0x19aa')](0x2,_0x33e1e1[_0x157774('0x2587')])[_0x157774('0x19c4')](',');}break;case _0x157774('0x3f5'):{var _0x21c9cf=_0x5643ae[_0x157774('0x3cb')][_0x157774('0x124b')]['split'](',');_0x5643ae['gotoif'][_0x157774('0xc07')]=_0x21c9cf[0x0],_0x5643ae['gotoif']['secretaccesskey']=_0x21c9cf[0x1],_0x5643ae[_0x157774('0x3cb')][_0x157774('0xa9a')]=_0x21c9cf[0x2],_0x5643ae['gotoif'][_0x157774('0x18ee')]=_0x21c9cf[0x3],_0x5643ae[_0x157774('0x3cb')][_0x157774('0x273')]=_0x21c9cf['slice'](0x4,_0x21c9cf[_0x157774('0x2587')])[_0x157774('0x19c4')](',');}break;case'autoreply':{var _0x2851e0=_0x5643ae[_0x157774('0x3cb')]['appdata'][_0x157774('0x1a39')](',');_0x5643ae['gotoif'][_0x157774('0x11b6')]=isNaN(_0x2851e0[0x0])?_0x2851e0[0x0]:parseInt(_0x2851e0[0x0],0xa),_0x5643ae[_0x157774('0x3cb')][_0x157774('0xb37')]=_0x2851e0[_0x157774('0x19aa')](0x1,_0x2851e0[_0x157774('0x2587')])[_0x157774('0x19c4')](',');}break;case _0x157774('0x1402'):_0x5643ae[_0x157774('0x3cb')]['text']=_0x5643ae[_0x157774('0x3cb')][_0x157774('0x124b')];break;case _0x157774('0x282c'):_0x5643ae[_0x157774('0x3cb')][_0x157774('0x25d6')]=_0x5643ae[_0x157774('0x3cb')][_0x157774('0x124b')][_0x157774('0x1a39')]('=')[0x0],_0x5643ae[_0x157774('0x3cb')][_0x157774('0x12f4')]=_0x5643ae[_0x157774('0x3cb')][_0x157774('0x124b')][_0x157774('0x1a39')]('=')[0x1];break;case _0x157774('0x2067'):_0x5643ae[_0x157774('0x3cb')]['project']=_0x5643ae[_0x157774('0x3cb')][_0x157774('0x124b')];break;default:{var _0x58a81d=_0x5643ae[_0x157774('0x3cb')]['appdata'][_0x157774('0x1a39')](',');_0x5643ae[_0x157774('0x3cb')]['condition']=_0x51538b()[_0x157774('0x116b')](_0x58a81d[0x0])?_0x58a81d[0x0]:isNaN(_0x58a81d[0x0])?_0x58a81d[0x0]:parseInt(_0x58a81d[0x0],0xa),_0x5643ae[_0x157774('0x3cb')]['truepriority']=_0x51538b()[_0x157774('0x116b')](_0x58a81d[0x1])?_0x58a81d[0x1]:isNaN(_0x58a81d[0x1])?_0x58a81d[0x1]:parseInt(_0x58a81d[0x1],0xa),_0x5643ae[_0x157774('0x3cb')][_0x157774('0x222b')]=_0x51538b()[_0x157774('0x116b')](_0x58a81d[0x2])?_0x58a81d[0x2]:isNaN(_0x58a81d[0x2])?_0x58a81d[0x2]:parseInt(_0x58a81d[0x2],0xa);}break;}else{}_0x5643ae['gotoif'][_0x157774('0x6c8')]&&_0x5643ae['gotoif'][_0x157774('0x6c8')]['toLowerCase']()===_0x157774('0x19d1')&&_0x5643ae[_0x157774('0x3cb')][_0x157774('0xe6d')][_0x157774('0xcf6')]()===_0x157774('0x1e7f')&&(_0x5643ae['gotoif']['prefix']=_0x5643ae[_0x157774('0x3cb')][_0x157774('0x1a46')]?_0x5643ae[_0x157774('0x3cb')][_0x157774('0x1a46')][_0x157774('0x1a39')]('$')[0x0]:undefined,_0x5643ae[_0x157774('0x3cb')][_0x157774('0xeed')]=_0x5643ae[_0x157774('0x3cb')][_0x157774('0x514')]?'CALLERID(all)='+_0x5643ae[_0x157774('0x3cb')][_0x157774('0x514')]:undefined);_0x5643ae[_0x157774('0x9c1')]=_0x4b0734,_0x5643ae[_0x157774('0x2023')]=_0x5e50c8;function _0x4b0734(){var _0x15b8d9=_0x157774;_0x5643ae[_0x15b8d9('0x4c6')]=[];var _0x208934=[];_0x5643ae['gotoif'][_0x15b8d9('0x6c8')]&&_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x6c8')][_0x15b8d9('0xcf6')]()===_0x15b8d9('0x19d1')&&_0x5643ae[_0x15b8d9('0x3cb')]['appType']===_0x15b8d9('0x8da')&&(_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x1a46')]=_0x11e908[_0x15b8d9('0x888')]?(_0x5643ae[_0x15b8d9('0x3cb')]['prefix']||'')+_0x15b8d9('0x117e')+_0x11e908['cutdigits']+'}':(_0x5643ae['gotoif'][_0x15b8d9('0x1b8f')]||'')+_0x15b8d9('0x1f87'),_0x11e908[_0x15b8d9('0x1e0f')]!==_0x15b8d9('0x117')?_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x1b36')][_0x15b8d9('0x1f38')](_0x15b8d9('0x266a'))<0x0&&(_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x1b36')]=_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x1b36')][_0x15b8d9('0x170d')](_0x15b8d9('0x266a'),''));if(_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0xe6d')]&&_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0xe6d')]===_0x15b8d9('0x113b')){}else switch((_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x9eb')]||_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0xe6d')])['toLowerCase']()){case _0x15b8d9('0x282c'):_0x5643ae['gotoif']['appdata']=_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x25d6')]+'='+_0x5643ae['gotoif'][_0x15b8d9('0x12f4')];break;case _0x15b8d9('0x113b'):break;default:_0x208934[0x0]=_0x5643ae['gotoif'][_0x15b8d9('0xe77')],_0x208934[0x1]=_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x13ba')],_0x208934[0x2]=_0x5643ae[_0x15b8d9('0x3cb')][_0x15b8d9('0x222b')],_0x5643ae[_0x15b8d9('0x3cb')]['appdata']=_0x208934[_0x15b8d9('0x19c4')](',');}_0x5e50c8(_0x5643ae[_0x15b8d9('0x3cb')]);}function _0x5e50c8(_0x2a4817){var _0x456c30=_0x157774;_0x4a8232[_0x456c30('0x1120')](_0x2a4817);}}const _0x352078=_0x2c43bb;_0xd03a54[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x8a2'),_0x1a8446('0x2566'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0xd03a54(_0x1ad6ad,_0x1c1f58,_0x27fff8,_0x1a627d,_0x5ca5f3,_0x339849,_0x3db24c,_0x5cc9e7){var _0x502f5b=_0x1a8446,_0x24ebe3=this;_0x24ebe3['currentUser']=_0x3db24c[_0x502f5b('0xacc')](),_0x24ebe3['errors']=[],_0x24ebe3['title']=_0x502f5b('0x1906')+(_0x1a627d[_0x502f5b('0xe6d')]||_0x1a627d[_0x502f5b('0x9eb')])[_0x502f5b('0x1d08')](),_0x24ebe3[_0x502f5b('0x1141')]=angular['copy'](_0x1a627d),_0x24ebe3['crudPermissions']=_0x5cc9e7,_0x24ebe3['hasModulePermissions']={};if(_0x24ebe3['gotop'][_0x502f5b('0x124b')])switch(_0x24ebe3[_0x502f5b('0x1141')]['appType']?_0x24ebe3['gotop'][_0x502f5b('0xe6d')][_0x502f5b('0xcf6')]():_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x9eb')][_0x502f5b('0xcf6')]()){case'custom':break;case _0x502f5b('0x67c'):{var _0x50b327=_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x124b')]['split'](',');_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x24ec')]=_0x50b327[0x0],_0x24ebe3['gotop'][_0x502f5b('0x1938')]=_0x50b327[0x1],_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x273')]=_0x50b327[_0x502f5b('0x19aa')](0x2,_0x50b327[_0x502f5b('0x2587')])[_0x502f5b('0x19c4')](',');}break;case _0x502f5b('0x3f5'):{var _0x4a4180=_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x124b')][_0x502f5b('0x1a39')](',');_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0xc07')]=_0x4a4180[0x0],_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x15f9')]=_0x4a4180[0x1],_0x24ebe3[_0x502f5b('0x1141')]['lexregion']=_0x4a4180[0x2],_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x18ee')]=_0x4a4180[0x3],_0x24ebe3[_0x502f5b('0x1141')]['welcomemessage']=_0x4a4180[_0x502f5b('0x19aa')](0x4,_0x4a4180[_0x502f5b('0x2587')])[_0x502f5b('0x19c4')](',');}break;case'autoreply':{var _0x47ac2a=_0x24ebe3['gotop']['appdata'][_0x502f5b('0x1a39')](',');_0x24ebe3['gotop'][_0x502f5b('0x11b6')]=isNaN(_0x47ac2a[0x0])?_0x47ac2a[0x0]:parseInt(_0x47ac2a[0x0],0xa),_0x24ebe3['gotop'][_0x502f5b('0xb37')]=_0x47ac2a[_0x502f5b('0x19aa')](0x1,_0x47ac2a['length'])[_0x502f5b('0x19c4')](',');}break;case'message':_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0xb37')]=_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x124b')];break;case _0x502f5b('0x282c'):_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x25d6')]=_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x124b')][_0x502f5b('0x1a39')]('=')[0x0],_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x12f4')]=_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x124b')][_0x502f5b('0x1a39')]('=')[0x1];break;case _0x502f5b('0x2067'):_0x24ebe3[_0x502f5b('0x1141')]['project']=_0x24ebe3['gotop'][_0x502f5b('0x124b')];break;default:{var _0xf74e47=_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x124b')][_0x502f5b('0x1a39')](',');_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x13f2')]=_0x51538b()['isEmpty'](_0xf74e47[0x0])?_0xf74e47[0x0]:isNaN(_0xf74e47[0x0])?_0xf74e47[0x0]:parseInt(_0xf74e47[0x0],0xa);}break;}else{}_0x24ebe3['gotop'][_0x502f5b('0x6c8')]&&_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x6c8')][_0x502f5b('0xcf6')]()===_0x502f5b('0x19d1')&&_0x24ebe3[_0x502f5b('0x1141')]['appType'][_0x502f5b('0xcf6')]()===_0x502f5b('0x1e7f')&&(_0x24ebe3['gotop'][_0x502f5b('0x1b8f')]=_0x24ebe3[_0x502f5b('0x1141')]['phone']?_0x24ebe3[_0x502f5b('0x1141')]['phone'][_0x502f5b('0x1a39')]('$')[0x0]:undefined,_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0xeed')]=_0x24ebe3['gotop']['callerID']?_0x502f5b('0x23d8')+_0x24ebe3[_0x502f5b('0x1141')][_0x502f5b('0x514')]:undefined);_0x24ebe3[_0x502f5b('0x9c1')]=_0x2d708c,_0x24ebe3[_0x502f5b('0x2023')]=_0x2758d2;function _0x2d708c(){var _0x4ec457=_0x502f5b;_0x24ebe3[_0x4ec457('0x4c6')]=[];var _0x46738a=[];_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x6c8')]&&_0x24ebe3['gotop']['type'][_0x4ec457('0xcf6')]()===_0x4ec457('0x19d1')&&_0x24ebe3['gotop']['appType']===_0x4ec457('0x8da')&&(_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x1a46')]=_0x5ca5f3['cutdigits']?(_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x1b8f')]||'')+_0x4ec457('0x117e')+_0x5ca5f3[_0x4ec457('0x888')]+'}':(_0x24ebe3[_0x4ec457('0x1141')]['prefix']||'')+_0x4ec457('0x1f87'),_0x5ca5f3['recordingFormat']!==_0x4ec457('0x117')?_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x1b36')][_0x4ec457('0x1f38')](_0x4ec457('0x266a'))<0x0&&(_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x1b36')]+=_0x4ec457('0x266a')):_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x1b36')]=_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x1b36')][_0x4ec457('0x170d')](_0x4ec457('0x266a'),''));if(_0x24ebe3['gotop'][_0x4ec457('0xe6d')]&&_0x24ebe3['gotop'][_0x4ec457('0xe6d')]==='custom'){}else switch((_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x9eb')]||_0x24ebe3[_0x4ec457('0x1141')]['appType'])[_0x4ec457('0xcf6')]()){case'set':_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x124b')]=_0x24ebe3['gotop'][_0x4ec457('0x25d6')]+'='+_0x24ebe3[_0x4ec457('0x1141')]['value'];break;case _0x4ec457('0x113b'):break;default:_0x46738a[0x0]=_0x24ebe3[_0x4ec457('0x1141')]['priority'],_0x24ebe3[_0x4ec457('0x1141')][_0x4ec457('0x124b')]=_0x46738a[_0x4ec457('0x19c4')](',');}_0x2758d2(_0x24ebe3[_0x4ec457('0x1141')]);}function _0x2758d2(_0x4f4448){var _0x2a0634=_0x502f5b;_0x1ad6ad[_0x2a0634('0x1120')](_0x4f4448);}}const _0xf6eadb=_0xd03a54;_0x51667c[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x197b'),'interval',_0x1a8446('0x2568'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x51667c(_0x101cd3,_0x54a7d8,_0x111726,_0x295cb2,_0x475831,_0x3ef0ab,_0x581823,_0x591cb2,_0xf17c84,_0x272d9e){var _0x5bbd47=_0x1a8446,_0x35aaa9=this;_0x35aaa9[_0x5bbd47('0x7fc')]=_0xf17c84[_0x5bbd47('0xacc')](),_0x35aaa9[_0x5bbd47('0x4c6')]=[],_0x35aaa9['title']=_0x5bbd47('0x14b0'),_0x35aaa9[_0x5bbd47('0x1c21')]=angular[_0x5bbd47('0x20a')](_0x475831),_0x35aaa9['intervals']=_0x3ef0ab,_0x35aaa9[_0x5bbd47('0x740')]=![],_0x35aaa9['types']=['always',_0x5bbd47('0x113b'),'list'],_0x35aaa9[_0x5bbd47('0xada')]=_0x272d9e,_0x35aaa9['daysOfWeek']=_0x295cb2[_0x5bbd47('0x1529')](),_0x35aaa9[_0x5bbd47('0x21a9')]=_0x295cb2[_0x5bbd47('0x23fa')](),_0x35aaa9[_0x5bbd47('0x672')]=_0x295cb2['getMonthName'](),_0x35aaa9[_0x5bbd47('0x1469')]=_0x295cb2[_0x5bbd47('0x74a')]();if(!_0x35aaa9[_0x5bbd47('0x1c21')])_0x35aaa9['interval']={'interval':_0x5bbd47('0x1ac6')},_0x35aaa9[_0x5bbd47('0x6c8')]=_0x5bbd47('0x1b43'),_0x35aaa9[_0x5bbd47('0x110a')]='TOOLS.NEW_INTERVAL',_0x35aaa9[_0x5bbd47('0x740')]=!![];else{if(_0x35aaa9[_0x5bbd47('0x1c21')][_0x5bbd47('0x1c21')]!==_0x5bbd47('0x1ac6')){_0x35aaa9[_0x5bbd47('0x6c8')]=_0x5bbd47('0x113b');var _0x1bc9be=_0x35aaa9[_0x5bbd47('0x1c21')]['interval'][_0x5bbd47('0x1a39')](','),_0x2f32df=_0x1bc9be[0x0],_0x19a133=_0x1bc9be[0x1],_0x1d9c78=_0x1bc9be[0x2],_0x5668df=_0x1bc9be[0x3];if(_0x2f32df!=='*'){var _0x4f805d=_0x2f32df['split']('-')[0x0],_0x6c47ff=_0x2f32df[_0x5bbd47('0x1a39')]('-')[0x1],_0x5522c3;_0x5522c3=new Date(),_0x5522c3[_0x5bbd47('0x807')](Number(_0x4f805d[_0x5bbd47('0x1a39')](':')[0x0])),_0x5522c3[_0x5bbd47('0xb43')](Number(_0x4f805d[_0x5bbd47('0x1a39')](':')[0x1])),_0x35aaa9['timeRangeFrom']=_0x5522c3,_0x5522c3=new Date(),_0x5522c3[_0x5bbd47('0x807')](Number(_0x6c47ff[_0x5bbd47('0x1a39')](':')[0x0])),_0x5522c3[_0x5bbd47('0xb43')](Number(_0x6c47ff[_0x5bbd47('0x1a39')](':')[0x1])),_0x35aaa9[_0x5bbd47('0x815')]=_0x5522c3;}_0x19a133!=='*'&&(_0x35aaa9[_0x5bbd47('0x1fa3')]=_0x19a133[_0x5bbd47('0x1a39')]('-')[0x0],_0x35aaa9[_0x5bbd47('0xc93')]=_0x19a133[_0x5bbd47('0x1a39')]('-')[0x1]),_0x1d9c78!=='*'&&(_0x35aaa9[_0x5bbd47('0x19d0')]=_0x1d9c78[_0x5bbd47('0x1a39')]('-')[0x0],_0x35aaa9[_0x5bbd47('0x2c3')]=_0x1d9c78[_0x5bbd47('0x1a39')]('-')[0x1]),_0x5668df!=='*'&&(_0x35aaa9[_0x5bbd47('0xcf9')]=_0x5668df[_0x5bbd47('0x1a39')]('-')[0x0],_0x35aaa9[_0x5bbd47('0x125f')]=_0x5668df[_0x5bbd47('0x1a39')]('-')[0x1]);}else _0x35aaa9['type']=_0x5bbd47('0x1b43');}_0x101cd3[_0x5bbd47('0x25cf')]['id']&&!_0x35aaa9[_0x5bbd47('0x1c21')]['application']&&(_0x35aaa9[_0x5bbd47('0x1c21')][_0x5bbd47('0x1f8c')]=_0x101cd3[_0x5bbd47('0x25cf')]['id']);_0x35aaa9[_0x5bbd47('0x1c21')]['IntervalId']&&_0x35aaa9[_0x5bbd47('0x1c21')][_0x5bbd47('0xe45')]&&(_0x35aaa9[_0x5bbd47('0x6c8')]='list');_0x35aaa9[_0x5bbd47('0x152a')]=_0x5b3ef2,_0x35aaa9[_0x5bbd47('0x1570')]=_0x476b63,_0x35aaa9[_0x5bbd47('0x2023')]=_0x5c691e;_0x35aaa9[_0x5bbd47('0x1c21')]['application']&&(_0xf17c84['hasRole'](_0x5bbd47('0x178b'))?_0x591cb2[_0x5bbd47('0x1c21')][_0x5bbd47('0x2122')]({'fields':_0x5bbd47('0x1a33'),'IntervalId':'null','nolimit':!![]})[_0x5bbd47('0x1dc2')][_0x5bbd47('0xaa5')](function(_0x517e9a){var _0x345f3f=_0x5bbd47;_0x35aaa9[_0x345f3f('0x2568')]=_0x517e9a[_0x345f3f('0x580')]||[];})[_0x5bbd47('0x253d')](function(_0x116bdc){var _0x38c349=_0x5bbd47;_0x581823[_0x38c349('0x187f')]({'title':_0x116bdc['status']?'API:'+_0x116bdc[_0x38c349('0x2fa')]+_0x38c349('0x169e')+_0x116bdc[_0x38c349('0x24df')]:_0x38c349('0x3b0'),'msg':_0x116bdc['data']?JSON[_0x38c349('0xa48')](_0x116bdc['data']):_0x116bdc[_0x38c349('0x684')]()});}):_0x591cb2[_0x5bbd47('0x1c21')][_0x5bbd47('0x2122')]({'fields':_0x5bbd47('0x1a33'),'IntervalId':'null','nolimit':!![]})[_0x5bbd47('0x1dc2')][_0x5bbd47('0xaa5')](function(_0x19c327){var _0x18c51e=_0x5bbd47;_0x35aaa9[_0x18c51e('0x2568')]=_0x19c327[_0x18c51e('0x580')]||[];})[_0x5bbd47('0xaa5')](function(){var _0x386c63=_0x5bbd47;return _0x591cb2['userProfileSection'][_0x386c63('0x2122')]({'userProfileId':_0x35aaa9[_0x386c63('0x7fc')][_0x386c63('0x2168')],'sectionId':0x3ec})[_0x386c63('0x1dc2')];})[_0x5bbd47('0xaa5')](function(_0x29a3d7){var _0x59b274=_0x5bbd47,_0x52a982=_0x29a3d7&&_0x29a3d7[_0x59b274('0x580')]?_0x29a3d7['rows'][0x0]:null;if(!_0x52a982)_0x35aaa9[_0x59b274('0x2568')]=[];else{if(!_0x52a982['autoAssociation'])return _0x591cb2[_0x59b274('0x249a')]['get']({'sectionId':_0x52a982['id']})[_0x59b274('0x1dc2')][_0x59b274('0xaa5')](function(_0x1ececf){var _0x525e92=_0x59b274,_0x304aac=_0x1ececf&&_0x1ececf[_0x525e92('0x580')]?_0x1ececf['rows']:[],_0x26ba4c=[],_0x4a6160=null;_0x35aaa9[_0x525e92('0x1c21')]&&(_0x4a6160=_0x51538b()[_0x525e92('0xe9e')](_0x35aaa9[_0x525e92('0x2568')],{'name':_0x35aaa9[_0x525e92('0x1c21')]['IntervalId']})),_0x4a6160&&!_0x51538b()[_0x525e92('0x2c2')](_0x304aac,[_0x525e92('0xbcd'),_0x4a6160['id']])&&_0x35aaa9[_0x525e92('0x2568')][_0x525e92('0x15b5')](function(_0x4a5ce5){var _0x2ce909=_0x525e92;_0x4a5ce5['id']===_0x4a6160['id']&&(_0x4a5ce5[_0x2ce909('0x12eb')]=![],_0x26ba4c[_0x2ce909('0x1599')](_0x4a5ce5));}),_0x35aaa9[_0x525e92('0x2568')]=_0x26ba4c;});}})[_0x5bbd47('0x253d')](function(_0x39bcb0){var _0xa5886d=_0x5bbd47;_0x581823['error']({'title':_0x39bcb0['status']?_0xa5886d('0x16c2')+_0x39bcb0[_0xa5886d('0x2fa')]+_0xa5886d('0x169e')+_0x39bcb0[_0xa5886d('0x24df')]:_0xa5886d('0x3b0'),'msg':_0x39bcb0[_0xa5886d('0x10fd')]?JSON[_0xa5886d('0xa48')](_0x39bcb0[_0xa5886d('0x10fd')]):_0x39bcb0[_0xa5886d('0x684')]()});}));function _0x24d861(){var _0x205e41=_0x5bbd47;switch(_0x35aaa9['type']){case _0x205e41('0x1b43'):case _0x205e41('0x2334'):return'*,*,*,*';case _0x205e41('0x113b'):{var _0x21397e=[];if(_0x35aaa9['timeRangeFrom']!=='*'&&_0x35aaa9[_0x205e41('0x1ee7')]&&_0x35aaa9[_0x205e41('0x815')]){var _0x426f38=(_0x35aaa9[_0x205e41('0x1ee7')]['getHours']()<0xa?'0':'')+_0x35aaa9[_0x205e41('0x1ee7')][_0x205e41('0x6a2')]()+':'+((_0x35aaa9[_0x205e41('0x1ee7')][_0x205e41('0x13a6')]()<0xa?'0':'')+_0x35aaa9[_0x205e41('0x1ee7')]['getMinutes']()),_0x83a425=(_0x35aaa9['timeRangeTo'][_0x205e41('0x6a2')]()<0xa?'0':'')+_0x35aaa9[_0x205e41('0x815')][_0x205e41('0x6a2')]()+':'+((_0x35aaa9['timeRangeTo'][_0x205e41('0x13a6')]()<0xa?'0':'')+_0x35aaa9[_0x205e41('0x815')]['getMinutes']());_0x21397e[_0x205e41('0x1599')](_0x426f38+'-'+_0x83a425);}else _0x21397e[_0x205e41('0x1599')]('*');return _0x35aaa9[_0x205e41('0x1fa3')]?_0x35aaa9[_0x205e41('0xc93')]?_0x21397e['push'](_0x35aaa9['dayOfWeekFrom']+'-'+_0x35aaa9[_0x205e41('0xc93')]):_0x21397e[_0x205e41('0x1599')](_0x35aaa9[_0x205e41('0x1fa3')]):_0x21397e['push']('*'),_0x35aaa9[_0x205e41('0x19d0')]?_0x35aaa9[_0x205e41('0x2c3')]?_0x21397e[_0x205e41('0x1599')](_0x35aaa9[_0x205e41('0x19d0')]+'-'+_0x35aaa9[_0x205e41('0x2c3')]):_0x21397e[_0x205e41('0x1599')](_0x35aaa9[_0x205e41('0x19d0')]):_0x21397e[_0x205e41('0x1599')]('*'),_0x35aaa9[_0x205e41('0xcf9')]?_0x35aaa9['monthTo']?_0x21397e[_0x205e41('0x1599')](_0x35aaa9[_0x205e41('0xcf9')]+'-'+_0x35aaa9[_0x205e41('0x125f')]):_0x21397e['push'](_0x35aaa9['monthFrom']):_0x21397e[_0x205e41('0x1599')]('*'),_0x21397e[_0x205e41('0x19c4')]();}}}function _0x5b3ef2(){var _0x446a81=_0x5bbd47;_0x35aaa9[_0x446a81('0x4c6')]=[],_0x35aaa9[_0x446a81('0x1c21')]['interval']=_0x24d861(),_0x591cb2['interval'][_0x446a81('0x242b')](_0x35aaa9[_0x446a81('0x1c21')])[_0x446a81('0x1dc2')][_0x446a81('0xaa5')](function(_0x273727){var _0x2eaa12=_0x446a81;_0x35aaa9[_0x2eaa12('0x2568')][_0x2eaa12('0x1599')](_0x273727),_0x581823['success']({'title':'Interval\x20properly\x20created','msg':_0x35aaa9[_0x2eaa12('0x1c21')][_0x2eaa12('0x25d6')]?_0x35aaa9[_0x2eaa12('0x1c21')][_0x2eaa12('0x25d6')]+_0x2eaa12('0xdca'):''}),_0x5c691e();})['catch'](function(_0x1127fe){var _0x2e5ba4=_0x446a81;console[_0x2e5ba4('0x187f')](_0x1127fe),_0x35aaa9[_0x2e5ba4('0x4c6')]=_0x1127fe[_0x2e5ba4('0x10fd')][_0x2e5ba4('0x4c6')]||[{'message':_0x1127fe[_0x2e5ba4('0x684')](),'type':'api.interval.save'}];});}function _0x476b63(){var _0x399816=_0x5bbd47;_0x35aaa9[_0x399816('0x4c6')]=[],_0x35aaa9[_0x399816('0x1c21')]['interval']=_0x24d861(),_0x35aaa9[_0x399816('0x1c21')][_0x399816('0xe45')]?(_0x35aaa9[_0x399816('0x6c8')]!==_0x399816('0x2334')&&(_0x35aaa9[_0x399816('0x1c21')][_0x399816('0x1f8c')]=null),_0x5c691e(_0x35aaa9[_0x399816('0x1c21')])):_0x591cb2[_0x399816('0x1c21')][_0x399816('0x264e')]({'id':_0x35aaa9['interval']['id']},_0x35aaa9['interval'])['$promise'][_0x399816('0xaa5')](function(_0x528c6a){var _0x367b8e=_0x399816,_0x4620df=_0x51538b()['find'](_0x35aaa9[_0x367b8e('0x2568')],{'id':_0x528c6a['id']});_0x4620df&&_0x51538b()['merge'](_0x4620df,_0x528c6a),_0x581823[_0x367b8e('0xe10')]({'title':_0x367b8e('0x68b'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x5c691e();})[_0x399816('0x253d')](function(_0x183dc9){var _0x60a7c6=_0x399816;console[_0x60a7c6('0x187f')](_0x183dc9),_0x35aaa9['errors']=_0x183dc9['data'][_0x60a7c6('0x4c6')]||[{'message':_0x183dc9[_0x60a7c6('0x684')](),'type':_0x60a7c6('0x83d')}];});}function _0x5c691e(_0x108f2e){_0x54a7d8['hide'](_0x108f2e);}}const _0x3ad0c6=_0x51667c;_0x3455d2[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x8a2'),_0x1a8446('0x2566'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x3455d2(_0x25e17c,_0x38fb68,_0x4bbf82,_0x4694b9,_0x483480,_0x16fde7,_0x5268b8,_0x30a9ac){var _0x27de70=_0x1a8446,_0x3dfe3e=this;_0x3dfe3e[_0x27de70('0x7fc')]=_0x5268b8['getCurrentUser'](),_0x3dfe3e[_0x27de70('0x4c6')]=[],_0x3dfe3e['title']=_0x27de70('0x1906')+(_0x4694b9[_0x27de70('0xe6d')]||_0x4694b9[_0x27de70('0x9eb')])[_0x27de70('0x1d08')](),_0x3dfe3e['noop']=angular[_0x27de70('0x20a')](_0x4694b9),_0x3dfe3e[_0x27de70('0xada')]=_0x30a9ac,_0x3dfe3e[_0x27de70('0x9f0')]={};if(_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x124b')])switch(_0x3dfe3e[_0x27de70('0x27ca')]['appType']?_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0xe6d')][_0x27de70('0xcf6')]():_0x3dfe3e[_0x27de70('0x27ca')]['app'][_0x27de70('0xcf6')]()){case'custom':break;case'dialogflow':{var _0xea1e29=_0x3dfe3e[_0x27de70('0x27ca')]['appdata']['split'](',');_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x24ec')]=_0xea1e29[0x0],_0x3dfe3e[_0x27de70('0x27ca')]['language']=_0xea1e29[0x1],_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x273')]=_0xea1e29[_0x27de70('0x19aa')](0x2,_0xea1e29[_0x27de70('0x2587')])[_0x27de70('0x19c4')](',');}break;case _0x27de70('0x3f5'):{var _0x1664fe=_0x3dfe3e['noop']['appdata'][_0x27de70('0x1a39')](',');_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0xc07')]=_0x1664fe[0x0],_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x15f9')]=_0x1664fe[0x1],_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0xa9a')]=_0x1664fe[0x2],_0x3dfe3e['noop']['botname']=_0x1664fe[0x3],_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x273')]=_0x1664fe[_0x27de70('0x19aa')](0x4,_0x1664fe['length'])[_0x27de70('0x19c4')](',');}break;case'autoreply':{var _0xb03303=_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x124b')]['split'](',');_0x3dfe3e[_0x27de70('0x27ca')]['times']=isNaN(_0xb03303[0x0])?_0xb03303[0x0]:parseInt(_0xb03303[0x0],0xa),_0x3dfe3e['noop'][_0x27de70('0xb37')]=_0xb03303[_0x27de70('0x19aa')](0x1,_0xb03303[_0x27de70('0x2587')])['join'](',');}break;case'message':_0x3dfe3e['noop'][_0x27de70('0xb37')]=_0x3dfe3e['noop']['appdata'];break;case'set':_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x25d6')]=_0x3dfe3e[_0x27de70('0x27ca')]['appdata'][_0x27de70('0x1a39')]('=')[0x0],_0x3dfe3e[_0x27de70('0x27ca')]['value']=_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x124b')][_0x27de70('0x1a39')]('=')[0x1];break;case'agi':_0x3dfe3e['noop']['project']=_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x124b')];break;default:{var _0x356bbf=_0x3dfe3e['noop'][_0x27de70('0x124b')][_0x27de70('0x1a39')](',');_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x12f4')]=_0x51538b()['isEmpty'](_0x356bbf[0x0])?_0x356bbf[0x0]:isNaN(_0x356bbf[0x0])?_0x356bbf[0x0]:parseInt(_0x356bbf[0x0],0xa);}break;}else{}_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x6c8')]&&_0x3dfe3e['noop']['type'][_0x27de70('0xcf6')]()==='outbound'&&_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0xe6d')][_0x27de70('0xcf6')]()===_0x27de70('0x1e7f')&&(_0x3dfe3e['noop'][_0x27de70('0x1b8f')]=_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x1a46')]?_0x3dfe3e[_0x27de70('0x27ca')][_0x27de70('0x1a46')][_0x27de70('0x1a39')]('$')[0x0]:undefined,_0x3dfe3e['noop'][_0x27de70('0xeed')]=_0x3dfe3e['noop'][_0x27de70('0x514')]?_0x27de70('0x23d8')+_0x3dfe3e[_0x27de70('0x27ca')]['callerID']:undefined);_0x3dfe3e[_0x27de70('0x9c1')]=_0xf43088,_0x3dfe3e['closeDialog']=_0x2be45d;function _0xf43088(){var _0x3d584b=_0x27de70;_0x3dfe3e[_0x3d584b('0x4c6')]=[];var _0xa8dd92=[];_0x3dfe3e['noop'][_0x3d584b('0x6c8')]&&_0x3dfe3e['noop'][_0x3d584b('0x6c8')][_0x3d584b('0xcf6')]()==='outbound'&&_0x3dfe3e[_0x3d584b('0x27ca')]['appType']==='outboundDial'&&(_0x3dfe3e[_0x3d584b('0x27ca')][_0x3d584b('0x1a46')]=_0x483480[_0x3d584b('0x888')]?(_0x3dfe3e['noop'][_0x3d584b('0x1b8f')]||'')+'${EXTEN:'+_0x483480[_0x3d584b('0x888')]+'}':(_0x3dfe3e[_0x3d584b('0x27ca')]['prefix']||'')+_0x3d584b('0x1f87'),_0x483480[_0x3d584b('0x1e0f')]!==_0x3d584b('0x117')?_0x3dfe3e[_0x3d584b('0x27ca')]['options'][_0x3d584b('0x1f38')](_0x3d584b('0x266a'))<0x0&&(_0x3dfe3e[_0x3d584b('0x27ca')][_0x3d584b('0x1b36')]+=_0x3d584b('0x266a')):_0x3dfe3e[_0x3d584b('0x27ca')][_0x3d584b('0x1b36')]=_0x3dfe3e['noop'][_0x3d584b('0x1b36')]['replace'](_0x3d584b('0x266a'),''));if(_0x3dfe3e[_0x3d584b('0x27ca')][_0x3d584b('0xe6d')]&&_0x3dfe3e['noop']['appType']===_0x3d584b('0x113b')){}else switch((_0x3dfe3e[_0x3d584b('0x27ca')]['app']||_0x3dfe3e[_0x3d584b('0x27ca')]['appType'])[_0x3d584b('0xcf6')]()){case _0x3d584b('0x282c'):_0x3dfe3e[_0x3d584b('0x27ca')][_0x3d584b('0x124b')]=_0x3dfe3e[_0x3d584b('0x27ca')][_0x3d584b('0x25d6')]+'='+_0x3dfe3e[_0x3d584b('0x27ca')][_0x3d584b('0x12f4')];break;case _0x3d584b('0x113b'):break;default:_0xa8dd92[0x0]=_0x3dfe3e[_0x3d584b('0x27ca')][_0x3d584b('0x12f4')],_0x3dfe3e[_0x3d584b('0x27ca')]['appdata']=_0xa8dd92[_0x3d584b('0x19c4')](',');}_0x2be45d(_0x3dfe3e[_0x3d584b('0x27ca')]);}function _0x2be45d(_0x54b414){var _0xc7f924=_0x27de70;_0x25e17c[_0xc7f924('0x1120')](_0x54b414);}}const _0x1ae063=_0x3455d2;_0x154b1f[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x8a2'),_0x1a8446('0x2566'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x154b1f(_0x1fba13,_0x54c9ac,_0x5f0d41,_0x550016,_0x33d6b1,_0x4f26e4,_0x5f0032,_0x451088){var _0x1c9dad=_0x1a8446,_0x38edd4=this;_0x38edd4[_0x1c9dad('0x7fc')]=_0x5f0032[_0x1c9dad('0xacc')](),_0x38edd4[_0x1c9dad('0x4c6')]=[],_0x38edd4[_0x1c9dad('0x110a')]=_0x1c9dad('0x1906')+(_0x550016[_0x1c9dad('0xe6d')]||_0x550016[_0x1c9dad('0x9eb')])['toUpperCase'](),_0x38edd4[_0x1c9dad('0xe26')]=angular[_0x1c9dad('0x20a')](_0x550016),_0x38edd4[_0x1c9dad('0xada')]=_0x451088,_0x38edd4[_0x1c9dad('0x9f0')]={};if(_0x38edd4[_0x1c9dad('0xe26')]['appdata'])switch(_0x38edd4['queue'][_0x1c9dad('0xe6d')]?_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0xe6d')][_0x1c9dad('0xcf6')]():_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x9eb')][_0x1c9dad('0xcf6')]()){case _0x1c9dad('0x113b'):break;case'dialogflow':{var _0x148681=_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x124b')][_0x1c9dad('0x1a39')](',');_0x38edd4['queue'][_0x1c9dad('0x24ec')]=_0x148681[0x0],_0x38edd4[_0x1c9dad('0xe26')]['language']=_0x148681[0x1],_0x38edd4['queue'][_0x1c9dad('0x273')]=_0x148681['slice'](0x2,_0x148681['length'])[_0x1c9dad('0x19c4')](',');}break;case'amazonlex':{var _0x46a0a0=_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x124b')][_0x1c9dad('0x1a39')](',');_0x38edd4['queue'][_0x1c9dad('0xc07')]=_0x46a0a0[0x0],_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x15f9')]=_0x46a0a0[0x1],_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0xa9a')]=_0x46a0a0[0x2],_0x38edd4[_0x1c9dad('0xe26')]['botname']=_0x46a0a0[0x3],_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x273')]=_0x46a0a0[_0x1c9dad('0x19aa')](0x4,_0x46a0a0[_0x1c9dad('0x2587')])[_0x1c9dad('0x19c4')](',');}break;case _0x1c9dad('0x1b05'):{var _0x57cab7=_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x124b')][_0x1c9dad('0x1a39')](',');_0x38edd4['queue'][_0x1c9dad('0x11b6')]=isNaN(_0x57cab7[0x0])?_0x57cab7[0x0]:parseInt(_0x57cab7[0x0],0xa),_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0xb37')]=_0x57cab7['slice'](0x1,_0x57cab7['length'])[_0x1c9dad('0x19c4')](',');}break;case _0x1c9dad('0x1402'):_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0xb37')]=_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x124b')];break;case _0x1c9dad('0x282c'):_0x38edd4[_0x1c9dad('0xe26')]['name']=_0x38edd4['queue'][_0x1c9dad('0x124b')][_0x1c9dad('0x1a39')]('=')[0x0],_0x38edd4['queue'][_0x1c9dad('0x12f4')]=_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x124b')][_0x1c9dad('0x1a39')]('=')[0x1];break;case'agi':_0x38edd4['queue'][_0x1c9dad('0x24b9')]=_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x124b')];break;default:{var _0x2d1059=_0x38edd4[_0x1c9dad('0xe26')]['appdata'][_0x1c9dad('0x1a39')](',');_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0xe26')]=_0x51538b()[_0x1c9dad('0x116b')](_0x2d1059[0x0])?_0x2d1059[0x0]:isNaN(_0x2d1059[0x0])?_0x2d1059[0x0]:parseInt(_0x2d1059[0x0],0xa),_0x38edd4['queue'][_0x1c9dad('0x23c0')]=_0x51538b()[_0x1c9dad('0x116b')](_0x2d1059[0x1])?_0x2d1059[0x1]:isNaN(_0x2d1059[0x1])?_0x2d1059[0x1]:parseInt(_0x2d1059[0x1],0xa);}break;}else _0x38edd4['queue'][_0x1c9dad('0xe26')]=0x12c,_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x23c0')]=0x12c;_0x38edd4[_0x1c9dad('0xe26')]['type']&&_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x6c8')][_0x1c9dad('0xcf6')]()===_0x1c9dad('0x19d1')&&_0x38edd4['queue'][_0x1c9dad('0xe6d')]['toLowerCase']()==='outbounddial'&&(_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x1b8f')]=_0x38edd4[_0x1c9dad('0xe26')]['phone']?_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x1a46')]['split']('$')[0x0]:undefined,_0x38edd4['queue'][_0x1c9dad('0xeed')]=_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x514')]?_0x1c9dad('0x23d8')+_0x38edd4[_0x1c9dad('0xe26')][_0x1c9dad('0x514')]:undefined);_0x38edd4[_0x1c9dad('0x9c1')]=_0x1023fc,_0x38edd4['closeDialog']=_0x1f1906,_0x5f0032['hasRole']('admin')?_0x4f26e4[_0x1c9dad('0x21b2')]['get']({'fields':'id,name,type','sort':_0x1c9dad('0x25d6'),'nolimit':_0x1c9dad('0x1c5c')})[_0x1c9dad('0x1dc2')][_0x1c9dad('0xaa5')](function(_0x2cd482){var _0x499097=_0x1c9dad;_0x38edd4[_0x499097('0x4d7')]=_0x2cd482[_0x499097('0x580')]||[];})[_0x1c9dad('0x253d')](function(_0x357f76){var _0x37b0e7=_0x1c9dad;_0x5f0d41[_0x37b0e7('0x187f')]({'title':_0x357f76[_0x37b0e7('0x2fa')]?_0x37b0e7('0x16c2')+_0x357f76[_0x37b0e7('0x2fa')]+_0x37b0e7('0x169e')+_0x357f76['statusText']:_0x37b0e7('0x773'),'msg':_0x357f76['data']?JSON[_0x37b0e7('0xa48')](_0x357f76[_0x37b0e7('0x10fd')]):_0x357f76[_0x37b0e7('0x684')]()});}):_0x4f26e4[_0x1c9dad('0x21b2')][_0x1c9dad('0x2122')]({'fields':_0x1c9dad('0x21e2'),'sort':_0x1c9dad('0x25d6'),'nolimit':_0x1c9dad('0x1c5c')})[_0x1c9dad('0x1dc2')][_0x1c9dad('0xaa5')](function(_0x25769b){var _0x16e1eb=_0x1c9dad;_0x38edd4[_0x16e1eb('0x4d7')]=_0x25769b[_0x16e1eb('0x580')]||[];})[_0x1c9dad('0xaa5')](function(){var _0xfdd1=_0x1c9dad;return _0x4f26e4[_0xfdd1('0x1a50')][_0xfdd1('0x2122')]({'userProfileId':_0x38edd4[_0xfdd1('0x7fc')][_0xfdd1('0x2168')],'sectionId':0x321})[_0xfdd1('0x1dc2')];})[_0x1c9dad('0xaa5')](function(_0x2360c7){var _0x56110d=_0x1c9dad,_0xe24526=_0x2360c7&&_0x2360c7[_0x56110d('0x580')]?_0x2360c7[_0x56110d('0x580')][0x0]:null;if(!_0xe24526){var _0x7a211c=[],_0x878945=null;_0x38edd4['queue']&&(_0x878945=_0x51538b()[_0x56110d('0xe9e')](_0x38edd4['queues'],{'name':_0x38edd4['queue']['queue']}));for(var _0x21ebe8=0x0;_0x21ebe8<_0x38edd4[_0x56110d('0x4d7')][_0x56110d('0x2587')];_0x21ebe8++){_0x878945&&_0x38edd4[_0x56110d('0x4d7')][_0x21ebe8]['id']===_0x878945['id']&&(_0x38edd4[_0x56110d('0x4d7')][_0x21ebe8][_0x56110d('0x12eb')]=![],_0x7a211c[_0x56110d('0x1599')](_0x38edd4['queues'][_0x21ebe8]));}_0x38edd4[_0x56110d('0x4d7')]=_0x7a211c;}else{if(!_0xe24526[_0x56110d('0x26cc')])return _0x4f26e4[_0x56110d('0x249a')][_0x56110d('0x2122')]({'sectionId':_0xe24526['id']})[_0x56110d('0x1dc2')][_0x56110d('0xaa5')](function(_0x1446d0){var _0x7e10f6=_0x56110d,_0x336a7c=_0x51538b()[_0x7e10f6('0x1246')](_0x1446d0[_0x7e10f6('0x580')],function(_0x57c76d){var _0x11615f=_0x7e10f6;return _0x51538b()[_0x11615f('0xe9e')](_0x38edd4[_0x11615f('0x4d7')],{'id':_0x57c76d[_0x11615f('0xbcd')]});}),_0x15b099=null;_0x38edd4[_0x7e10f6('0xe26')]&&(_0x15b099=_0x51538b()[_0x7e10f6('0xe9e')](_0x38edd4['queues'],{'name':_0x38edd4[_0x7e10f6('0xe26')][_0x7e10f6('0xe26')]}));if(_0x15b099&&!_0x51538b()[_0x7e10f6('0x2c2')](_0x336a7c,['id',_0x15b099['id']])){var _0x20b1ee=_0x51538b()['find'](_0x38edd4[_0x7e10f6('0x4d7')],{'id':_0x15b099['id']});_0x20b1ee[_0x7e10f6('0x12eb')]=![],_0x336a7c[_0x7e10f6('0x1599')](_0x20b1ee);}_0x38edd4['queues']=_0x336a7c;});}})['catch'](function(_0x35f2ce){var _0x33f5fe=_0x1c9dad;_0x5f0d41[_0x33f5fe('0x187f')]({'title':_0x35f2ce[_0x33f5fe('0x2fa')]?'API:'+_0x35f2ce['status']+_0x33f5fe('0x169e')+_0x35f2ce[_0x33f5fe('0x24df')]:_0x33f5fe('0x278e'),'msg':_0x35f2ce[_0x33f5fe('0x10fd')]?JSON['stringify'](_0x35f2ce[_0x33f5fe('0x10fd')]):_0x35f2ce[_0x33f5fe('0x684')]()});});function _0x1023fc(){var _0x367fe9=_0x1c9dad;_0x38edd4[_0x367fe9('0x4c6')]=[];var _0x1a83cd=[];_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0x6c8')]&&_0x38edd4['queue'][_0x367fe9('0x6c8')][_0x367fe9('0xcf6')]()===_0x367fe9('0x19d1')&&_0x38edd4[_0x367fe9('0xe26')]['appType']===_0x367fe9('0x8da')&&(_0x38edd4[_0x367fe9('0xe26')]['phone']=_0x33d6b1[_0x367fe9('0x888')]?(_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0x1b8f')]||'')+_0x367fe9('0x117e')+_0x33d6b1[_0x367fe9('0x888')]+'}':(_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0x1b8f')]||'')+_0x367fe9('0x1f87'),_0x33d6b1[_0x367fe9('0x1e0f')]!==_0x367fe9('0x117')?_0x38edd4['queue']['options'][_0x367fe9('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x38edd4['queue'][_0x367fe9('0x1b36')]+=_0x367fe9('0x266a')):_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0x1b36')]=_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0x1b36')]['replace'](_0x367fe9('0x266a'),''));var _0x2461c3=_0x51538b()[_0x367fe9('0xe9e')](_0x38edd4['queues'],{'name':_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0xe26')]});_0x2461c3&&(_0x38edd4[_0x367fe9('0xe26')][_0x51538b()[_0x367fe9('0x1b56')](_0x367fe9('0xed1'))+_0x367fe9('0x2097')]=_0x2461c3['id']);if(_0x38edd4[_0x367fe9('0xe26')]['appType']&&_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0xe6d')]==='custom'){}else switch((_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0x9eb')]||_0x38edd4[_0x367fe9('0xe26')]['appType'])['toLowerCase']()){case _0x367fe9('0x282c'):_0x38edd4['queue'][_0x367fe9('0x124b')]=_0x38edd4[_0x367fe9('0xe26')]['name']+'='+_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0x12f4')];break;case _0x367fe9('0x113b'):break;default:_0x1a83cd[0x0]=_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0xe26')],_0x1a83cd[0x1]=_0x38edd4[_0x367fe9('0xe26')][_0x367fe9('0x23c0')],_0x38edd4[_0x367fe9('0xe26')]['appdata']=_0x1a83cd[_0x367fe9('0x19c4')](',');}_0x1f1906(_0x38edd4[_0x367fe9('0xe26')]);}function _0x1f1906(_0x4663ad){var _0x263be3=_0x1c9dad;_0x1fba13[_0x263be3('0x1120')](_0x4663ad);}}const _0xc7cff5=_0x154b1f;_0x115746['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x8a2'),_0x1a8446('0x2566'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x115746(_0x4ec200,_0x3f4346,_0x45128f,_0x4f94bf,_0xf473c,_0x593530,_0x6db777,_0x5df4a2){var _0x3f4488=_0x1a8446,_0x3f0d0b=this;_0x3f0d0b[_0x3f4488('0x7fc')]=_0x6db777[_0x3f4488('0xacc')](),_0x3f0d0b[_0x3f4488('0x4c6')]=[],_0x3f0d0b[_0x3f4488('0x110a')]='OPENCHANNEL.EDIT_'+(_0x4f94bf[_0x3f4488('0xe6d')]||_0x4f94bf[_0x3f4488('0x9eb')])[_0x3f4488('0x1d08')](),_0x3f0d0b[_0x3f4488('0x5da')]=angular[_0x3f4488('0x20a')](_0x4f94bf),_0x3f0d0b[_0x3f4488('0xada')]=_0x5df4a2,_0x3f0d0b[_0x3f4488('0x9f0')]={};if(_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x124b')])switch(_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0xe6d')]?_0x3f0d0b['system'][_0x3f4488('0xe6d')][_0x3f4488('0xcf6')]():_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x9eb')][_0x3f4488('0xcf6')]()){case _0x3f4488('0x113b'):break;case _0x3f4488('0x67c'):{var _0x58089c=_0x3f0d0b[_0x3f4488('0x5da')]['appdata'][_0x3f4488('0x1a39')](',');_0x3f0d0b['system'][_0x3f4488('0x24ec')]=_0x58089c[0x0],_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x1938')]=_0x58089c[0x1],_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x273')]=_0x58089c[_0x3f4488('0x19aa')](0x2,_0x58089c[_0x3f4488('0x2587')])[_0x3f4488('0x19c4')](',');}break;case _0x3f4488('0x3f5'):{var _0x547d8a=_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x124b')][_0x3f4488('0x1a39')](',');_0x3f0d0b[_0x3f4488('0x5da')]['accesskeyid']=_0x547d8a[0x0],_0x3f0d0b['system']['secretaccesskey']=_0x547d8a[0x1],_0x3f0d0b['system'][_0x3f4488('0xa9a')]=_0x547d8a[0x2],_0x3f0d0b[_0x3f4488('0x5da')]['botname']=_0x547d8a[0x3],_0x3f0d0b['system'][_0x3f4488('0x273')]=_0x547d8a[_0x3f4488('0x19aa')](0x4,_0x547d8a[_0x3f4488('0x2587')])['join'](',');}break;case _0x3f4488('0x1b05'):{var _0x59d83e=_0x3f0d0b[_0x3f4488('0x5da')]['appdata'][_0x3f4488('0x1a39')](',');_0x3f0d0b[_0x3f4488('0x5da')]['times']=isNaN(_0x59d83e[0x0])?_0x59d83e[0x0]:parseInt(_0x59d83e[0x0],0xa),_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0xb37')]=_0x59d83e[_0x3f4488('0x19aa')](0x1,_0x59d83e['length'])[_0x3f4488('0x19c4')](',');}break;case _0x3f4488('0x1402'):_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0xb37')]=_0x3f0d0b[_0x3f4488('0x5da')]['appdata'];break;case _0x3f4488('0x282c'):_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x25d6')]=_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x124b')]['split']('=')[0x0],_0x3f0d0b['system'][_0x3f4488('0x12f4')]=_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x124b')][_0x3f4488('0x1a39')]('=')[0x1];break;case _0x3f4488('0x2067'):_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x24b9')]=_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x124b')];break;default:{var _0x3b6dd6=_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x124b')]['split'](',');_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0xd7b')]=_0x51538b()['isEmpty'](_0x3b6dd6[0x0])?_0x3b6dd6[0x0]:isNaN(_0x3b6dd6[0x0])?_0x3b6dd6[0x0]:parseInt(_0x3b6dd6[0x0],0xa),_0x3f0d0b[_0x3f4488('0x5da')]['variable']=_0x51538b()[_0x3f4488('0x116b')](_0x3b6dd6[0x1])?_0x3b6dd6[0x1]:isNaN(_0x3b6dd6[0x1])?_0x3b6dd6[0x1]:parseInt(_0x3b6dd6[0x1],0xa);}break;}else _0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x14e7')]='';_0x3f0d0b['system']['type']&&_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x6c8')][_0x3f4488('0xcf6')]()==='outbound'&&_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0xe6d')][_0x3f4488('0xcf6')]()===_0x3f4488('0x1e7f')&&(_0x3f0d0b[_0x3f4488('0x5da')]['prefix']=_0x3f0d0b['system']['phone']?_0x3f0d0b[_0x3f4488('0x5da')][_0x3f4488('0x1a46')]['split']('$')[0x0]:undefined,_0x3f0d0b[_0x3f4488('0x5da')]['callerId']=_0x3f0d0b['system']['callerID']?'CALLERID(all)='+_0x3f0d0b['system'][_0x3f4488('0x514')]:undefined);_0x3f0d0b[_0x3f4488('0x9c1')]=_0x595c58,_0x3f0d0b[_0x3f4488('0x2023')]=_0x5d88dc,_0x6db777[_0x3f4488('0x26e8')](_0x3f4488('0x178b'))?_0x593530[_0x3f4488('0x14e7')][_0x3f4488('0x2122')]({'fields':_0x3f4488('0x17fe'),'sort':'name','nolimit':_0x3f4488('0x1c5c')})['$promise'][_0x3f4488('0xaa5')](function(_0x4e928a){var _0x1d00fe=_0x3f4488;_0x3f0d0b['variables']=_0x4e928a[_0x1d00fe('0x580')]||[];})[_0x3f4488('0x253d')](function(_0xb9f7c4){var _0x38b92=_0x3f4488;_0x45128f[_0x38b92('0x187f')]({'title':_0xb9f7c4[_0x38b92('0x2fa')]?_0x38b92('0x16c2')+_0xb9f7c4[_0x38b92('0x2fa')]+_0x38b92('0x169e')+_0xb9f7c4[_0x38b92('0x24df')]:_0x38b92('0x18e0'),'msg':_0xb9f7c4[_0x38b92('0x10fd')]?JSON[_0x38b92('0xa48')](_0xb9f7c4[_0x38b92('0x10fd')]):_0xb9f7c4[_0x38b92('0x684')]()});}):_0x593530[_0x3f4488('0x14e7')]['get']({'fields':_0x3f4488('0x17fe'),'sort':_0x3f4488('0x25d6'),'nolimit':_0x3f4488('0x1c5c')})[_0x3f4488('0x1dc2')][_0x3f4488('0xaa5')](function(_0x3bed9e){var _0x22075d=_0x3f4488;_0x3f0d0b[_0x22075d('0x147e')]=_0x3bed9e[_0x22075d('0x580')]||[];})['then'](function(){var _0x22105f=_0x3f4488;return _0x593530[_0x22105f('0x1a50')][_0x22105f('0x2122')]({'userProfileId':_0x3f0d0b[_0x22105f('0x7fc')][_0x22105f('0x2168')],'sectionId':0x3f4})[_0x22105f('0x1dc2')];})[_0x3f4488('0xaa5')](function(_0x9e90e4){var _0x5f4e6e=_0x3f4488,_0xeb3c84=_0x9e90e4&&_0x9e90e4['rows']?_0x9e90e4[_0x5f4e6e('0x580')][0x0]:null;if(!_0xeb3c84){var _0x56250f=[],_0x266a4f=null;_0x3f0d0b[_0x5f4e6e('0x5da')]&&(_0x266a4f=_0x51538b()[_0x5f4e6e('0xe9e')](_0x3f0d0b[_0x5f4e6e('0x147e')],{'name':_0x3f0d0b[_0x5f4e6e('0x5da')]['variable']}));for(var _0x15a3f6=0x0;_0x15a3f6<_0x3f0d0b[_0x5f4e6e('0x147e')]['length'];_0x15a3f6++){_0x266a4f&&_0x3f0d0b[_0x5f4e6e('0x147e')][_0x15a3f6]['id']===_0x266a4f['id']&&(_0x3f0d0b[_0x5f4e6e('0x147e')][_0x15a3f6][_0x5f4e6e('0x12eb')]=![],_0x56250f[_0x5f4e6e('0x1599')](_0x3f0d0b[_0x5f4e6e('0x147e')][_0x15a3f6]));}_0x3f0d0b[_0x5f4e6e('0x147e')]=_0x56250f;}else{if(!_0xeb3c84[_0x5f4e6e('0x26cc')])return _0x593530['userProfileResource']['get']({'sectionId':_0xeb3c84['id']})['$promise'][_0x5f4e6e('0xaa5')](function(_0x20a887){var _0x397a59=_0x5f4e6e,_0x5ad670=_0x51538b()[_0x397a59('0x1246')](_0x20a887['rows'],function(_0x1e8d22){var _0x442020=_0x397a59;return _0x51538b()[_0x442020('0xe9e')](_0x3f0d0b[_0x442020('0x147e')],{'id':_0x1e8d22['resourceId']});}),_0x400215=null;_0x3f0d0b[_0x397a59('0x5da')]&&(_0x400215=_0x51538b()['find'](_0x3f0d0b[_0x397a59('0x147e')],{'name':_0x3f0d0b[_0x397a59('0x5da')][_0x397a59('0x14e7')]}));if(_0x400215&&!_0x51538b()[_0x397a59('0x2c2')](_0x5ad670,['id',_0x400215['id']])){var _0x5e73c0=_0x51538b()[_0x397a59('0xe9e')](_0x3f0d0b[_0x397a59('0x147e')],{'id':_0x400215['id']});_0x5e73c0[_0x397a59('0x12eb')]=![],_0x5ad670['push'](_0x5e73c0);}_0x3f0d0b[_0x397a59('0x147e')]=_0x5ad670;});}})[_0x3f4488('0x253d')](function(_0x3b6786){var _0x1e9862=_0x3f4488;_0x45128f[_0x1e9862('0x187f')]({'title':_0x3b6786[_0x1e9862('0x2fa')]?'API:'+_0x3b6786['status']+_0x1e9862('0x169e')+_0x3b6786['statusText']:'SYSTEM:GETvariables','msg':_0x3b6786[_0x1e9862('0x10fd')]?JSON['stringify'](_0x3b6786[_0x1e9862('0x10fd')]):_0x3b6786[_0x1e9862('0x684')]()});});function _0x595c58(){var _0x7694a2=_0x3f4488;_0x3f0d0b['errors']=[];var _0x402a38=[];_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0x6c8')]&&_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0x6c8')][_0x7694a2('0xcf6')]()===_0x7694a2('0x19d1')&&_0x3f0d0b[_0x7694a2('0x5da')]['appType']==='outboundDial'&&(_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0x1a46')]=_0xf473c[_0x7694a2('0x888')]?(_0x3f0d0b['system'][_0x7694a2('0x1b8f')]||'')+_0x7694a2('0x117e')+_0xf473c[_0x7694a2('0x888')]+'}':(_0x3f0d0b[_0x7694a2('0x5da')]['prefix']||'')+_0x7694a2('0x1f87'),_0xf473c[_0x7694a2('0x1e0f')]!==_0x7694a2('0x117')?_0x3f0d0b[_0x7694a2('0x5da')]['options'][_0x7694a2('0x1f38')](_0x7694a2('0x266a'))<0x0&&(_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0x1b36')]+=_0x7694a2('0x266a')):_0x3f0d0b[_0x7694a2('0x5da')]['options']=_0x3f0d0b[_0x7694a2('0x5da')]['options'][_0x7694a2('0x170d')](_0x7694a2('0x266a'),''));if(_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0xe6d')]&&_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0xe6d')]==='custom'){}else switch((_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0x9eb')]||_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0xe6d')])['toLowerCase']()){case _0x7694a2('0x282c'):_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0x124b')]=_0x3f0d0b[_0x7694a2('0x5da')]['name']+'='+_0x3f0d0b[_0x7694a2('0x5da')][_0x7694a2('0x12f4')];break;case _0x7694a2('0x113b'):break;default:_0x402a38[0x0]=_0x3f0d0b[_0x7694a2('0x5da')]['command'],_0x402a38[0x1]=_0x3f0d0b[_0x7694a2('0x5da')]['variable'],_0x3f0d0b[_0x7694a2('0x5da')]['appdata']=_0x402a38[_0x7694a2('0x19c4')](',');}_0x5d88dc(_0x3f0d0b[_0x7694a2('0x5da')]);}function _0x5d88dc(_0x664766){var _0x128b44=_0x3f4488;_0x4ec200[_0x128b44('0x1120')](_0x664766);}}const _0x5047e7=_0x115746;_0x1828c5[_0x1a8446('0x1e33')]=['$mdDialog','$q','toasty',_0x1a8446('0x8a2'),_0x1a8446('0x2566'),'api',_0x1a8446('0x1dfd'),'crudPermissions'];function _0x1828c5(_0x59b951,_0x15c813,_0x4ea540,_0x13724a,_0x2be319,_0x2221b9,_0x28daca,_0x5b978c){var _0x5f3e5a=_0x1a8446,_0x4e8794=this;_0x4e8794[_0x5f3e5a('0x7fc')]=_0x28daca[_0x5f3e5a('0xacc')](),_0x4e8794[_0x5f3e5a('0x4c6')]=[],_0x4e8794[_0x5f3e5a('0x110a')]=_0x5f3e5a('0x1906')+(_0x13724a['appType']||_0x13724a['app'])[_0x5f3e5a('0x1d08')](),_0x4e8794[_0x5f3e5a('0x38f')]=angular['copy'](_0x13724a),_0x4e8794[_0x5f3e5a('0xada')]=_0x5b978c,_0x4e8794[_0x5f3e5a('0x9f0')]={};if(_0x4e8794[_0x5f3e5a('0x38f')]['appdata'])switch(_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0xe6d')]?_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0xe6d')][_0x5f3e5a('0xcf6')]():_0x4e8794['tag'][_0x5f3e5a('0x9eb')]['toLowerCase']()){case _0x5f3e5a('0x113b'):break;case _0x5f3e5a('0x67c'):{var _0x2afd30=_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x124b')]['split'](',');_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x24ec')]=_0x2afd30[0x0],_0x4e8794['tag'][_0x5f3e5a('0x1938')]=_0x2afd30[0x1],_0x4e8794['tag'][_0x5f3e5a('0x273')]=_0x2afd30[_0x5f3e5a('0x19aa')](0x2,_0x2afd30['length'])['join'](',');}break;case _0x5f3e5a('0x3f5'):{var _0x9e45f0=_0x4e8794[_0x5f3e5a('0x38f')]['appdata'][_0x5f3e5a('0x1a39')](',');_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0xc07')]=_0x9e45f0[0x0],_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x15f9')]=_0x9e45f0[0x1],_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0xa9a')]=_0x9e45f0[0x2],_0x4e8794[_0x5f3e5a('0x38f')]['botname']=_0x9e45f0[0x3],_0x4e8794['tag'][_0x5f3e5a('0x273')]=_0x9e45f0[_0x5f3e5a('0x19aa')](0x4,_0x9e45f0[_0x5f3e5a('0x2587')])['join'](',');}break;case _0x5f3e5a('0x1b05'):{var _0x299cb1=_0x4e8794[_0x5f3e5a('0x38f')]['appdata']['split'](',');_0x4e8794['tag'][_0x5f3e5a('0x11b6')]=isNaN(_0x299cb1[0x0])?_0x299cb1[0x0]:parseInt(_0x299cb1[0x0],0xa),_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0xb37')]=_0x299cb1[_0x5f3e5a('0x19aa')](0x1,_0x299cb1['length'])[_0x5f3e5a('0x19c4')](',');}break;case _0x5f3e5a('0x1402'):_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0xb37')]=_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x124b')];break;case _0x5f3e5a('0x282c'):_0x4e8794[_0x5f3e5a('0x38f')]['name']=_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x124b')][_0x5f3e5a('0x1a39')]('=')[0x0],_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x12f4')]=_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x124b')][_0x5f3e5a('0x1a39')]('=')[0x1];break;case'agi':_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x24b9')]=_0x4e8794[_0x5f3e5a('0x38f')]['appdata'];break;default:{var _0x46e543=_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x124b')]['split'](',');_0x4e8794['tag'][_0x5f3e5a('0x38f')]=_0x51538b()[_0x5f3e5a('0x116b')](_0x46e543[0x0])?_0x46e543[0x0]:isNaN(_0x46e543[0x0])?_0x46e543[0x0]:parseInt(_0x46e543[0x0],0xa);}break;}else{}_0x4e8794['tag']['type']&&_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x6c8')][_0x5f3e5a('0xcf6')]()==='outbound'&&_0x4e8794[_0x5f3e5a('0x38f')]['appType'][_0x5f3e5a('0xcf6')]()===_0x5f3e5a('0x1e7f')&&(_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x1b8f')]=_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x1a46')]?_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x1a46')][_0x5f3e5a('0x1a39')]('$')[0x0]:undefined,_0x4e8794[_0x5f3e5a('0x38f')]['callerId']=_0x4e8794[_0x5f3e5a('0x38f')]['callerID']?_0x5f3e5a('0x23d8')+_0x4e8794[_0x5f3e5a('0x38f')][_0x5f3e5a('0x514')]:undefined);_0x4e8794[_0x5f3e5a('0x9c1')]=_0x461d6f,_0x4e8794[_0x5f3e5a('0x2023')]=_0x106ced,_0x28daca['hasRole']('admin')?_0x2221b9[_0x5f3e5a('0x38f')][_0x5f3e5a('0x2122')]({'fields':_0x5f3e5a('0x17fe'),'sort':_0x5f3e5a('0x25d6'),'nolimit':_0x5f3e5a('0x1c5c')})[_0x5f3e5a('0x1dc2')]['then'](function(_0x5b75ab){var _0x49abbe=_0x5f3e5a;_0x4e8794[_0x49abbe('0x523')]=_0x5b75ab['rows']||[];})[_0x5f3e5a('0x253d')](function(_0x4546b0){var _0x5ceeb3=_0x5f3e5a;_0x4ea540[_0x5ceeb3('0x187f')]({'title':_0x4546b0[_0x5ceeb3('0x2fa')]?_0x5ceeb3('0x16c2')+_0x4546b0[_0x5ceeb3('0x2fa')]+_0x5ceeb3('0x169e')+_0x4546b0['statusText']:_0x5ceeb3('0x37c'),'msg':_0x4546b0[_0x5ceeb3('0x10fd')]?JSON[_0x5ceeb3('0xa48')](_0x4546b0['data']):_0x4546b0[_0x5ceeb3('0x684')]()});}):_0x2221b9['tag']['get']({'fields':_0x5f3e5a('0x17fe'),'sort':_0x5f3e5a('0x25d6'),'nolimit':_0x5f3e5a('0x1c5c')})[_0x5f3e5a('0x1dc2')][_0x5f3e5a('0xaa5')](function(_0x32f2d8){var _0x43f51c=_0x5f3e5a;_0x4e8794[_0x43f51c('0x523')]=_0x32f2d8[_0x43f51c('0x580')]||[];})[_0x5f3e5a('0xaa5')](function(){var _0xad86e9=_0x5f3e5a;return _0x2221b9['userProfileSection'][_0xad86e9('0x2122')]({'userProfileId':_0x4e8794[_0xad86e9('0x7fc')][_0xad86e9('0x2168')],'sectionId':0x3f0})[_0xad86e9('0x1dc2')];})[_0x5f3e5a('0xaa5')](function(_0x3984c3){var _0x23752f=_0x5f3e5a,_0x1caad8=_0x3984c3&&_0x3984c3[_0x23752f('0x580')]?_0x3984c3[_0x23752f('0x580')][0x0]:null;if(!_0x1caad8){var _0x5738ad=[],_0x5c77ea=null;_0x4e8794[_0x23752f('0x38f')]&&(_0x5c77ea=_0x51538b()[_0x23752f('0xe9e')](_0x4e8794[_0x23752f('0x523')],{'name':_0x4e8794[_0x23752f('0x38f')]['tag']}));for(var _0x116e56=0x0;_0x116e56<_0x4e8794[_0x23752f('0x523')][_0x23752f('0x2587')];_0x116e56++){_0x5c77ea&&_0x4e8794[_0x23752f('0x523')][_0x116e56]['id']===_0x5c77ea['id']&&(_0x4e8794[_0x23752f('0x523')][_0x116e56][_0x23752f('0x12eb')]=![],_0x5738ad[_0x23752f('0x1599')](_0x4e8794['tags'][_0x116e56]));}_0x4e8794[_0x23752f('0x523')]=_0x5738ad;}else{if(!_0x1caad8[_0x23752f('0x26cc')])return _0x2221b9[_0x23752f('0x249a')][_0x23752f('0x2122')]({'sectionId':_0x1caad8['id']})[_0x23752f('0x1dc2')]['then'](function(_0x2bf3e){var _0x21e685=_0x23752f,_0x49e044=_0x51538b()['map'](_0x2bf3e[_0x21e685('0x580')],function(_0x57d89f){var _0x258f40=_0x21e685;return _0x51538b()[_0x258f40('0xe9e')](_0x4e8794[_0x258f40('0x523')],{'id':_0x57d89f['resourceId']});}),_0x83df6b=null;_0x4e8794[_0x21e685('0x38f')]&&(_0x83df6b=_0x51538b()[_0x21e685('0xe9e')](_0x4e8794[_0x21e685('0x523')],{'name':_0x4e8794[_0x21e685('0x38f')]['tag']}));if(_0x83df6b&&!_0x51538b()['some'](_0x49e044,['id',_0x83df6b['id']])){var _0x3960b4=_0x51538b()[_0x21e685('0xe9e')](_0x4e8794[_0x21e685('0x523')],{'id':_0x83df6b['id']});_0x3960b4['canSelect']=![],_0x49e044[_0x21e685('0x1599')](_0x3960b4);}_0x4e8794[_0x21e685('0x523')]=_0x49e044;});}})['catch'](function(_0x5c7895){var _0x149e29=_0x5f3e5a;_0x4ea540[_0x149e29('0x187f')]({'title':_0x5c7895[_0x149e29('0x2fa')]?_0x149e29('0x16c2')+_0x5c7895[_0x149e29('0x2fa')]+_0x149e29('0x169e')+_0x5c7895[_0x149e29('0x24df')]:_0x149e29('0x25e'),'msg':_0x5c7895[_0x149e29('0x10fd')]?JSON[_0x149e29('0xa48')](_0x5c7895['data']):_0x5c7895['toString']()});});function _0x461d6f(){var _0x315d0a=_0x5f3e5a;_0x4e8794[_0x315d0a('0x4c6')]=[];var _0x51e20d=[];_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x6c8')]&&_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x6c8')][_0x315d0a('0xcf6')]()===_0x315d0a('0x19d1')&&_0x4e8794[_0x315d0a('0x38f')]['appType']===_0x315d0a('0x8da')&&(_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x1a46')]=_0x2be319[_0x315d0a('0x888')]?(_0x4e8794['tag'][_0x315d0a('0x1b8f')]||'')+_0x315d0a('0x117e')+_0x2be319['cutdigits']+'}':(_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x1b8f')]||'')+'${EXTEN}',_0x2be319[_0x315d0a('0x1e0f')]!==_0x315d0a('0x117')?_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x1b36')][_0x315d0a('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x1b36')]+=_0x315d0a('0x266a')):_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x1b36')]=_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x1b36')][_0x315d0a('0x170d')](_0x315d0a('0x266a'),''));var _0xb43e10=_0x51538b()['find'](_0x4e8794[_0x315d0a('0x523')],{'name':_0x4e8794['tag'][_0x315d0a('0x38f')]});_0xb43e10&&(_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x2028')]=_0xb43e10['id']);if(_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0xe6d')]&&_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0xe6d')]==='custom'){}else switch((_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x9eb')]||_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0xe6d')])[_0x315d0a('0xcf6')]()){case _0x315d0a('0x282c'):_0x4e8794['tag'][_0x315d0a('0x124b')]=_0x4e8794[_0x315d0a('0x38f')]['name']+'='+_0x4e8794['tag'][_0x315d0a('0x12f4')];break;case _0x315d0a('0x113b'):break;default:_0x51e20d[0x0]=_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x38f')],_0x4e8794[_0x315d0a('0x38f')][_0x315d0a('0x124b')]=_0x51e20d[_0x315d0a('0x19c4')](',');}_0x106ced(_0x4e8794[_0x315d0a('0x38f')]);}function _0x106ced(_0xc50454){var _0x5569a5=_0x5f3e5a;_0x59b951[_0x5569a5('0x1120')](_0xc50454);}}const _0x29343e=_0x1828c5;_0x32fb83[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),'$state','$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'toasty',_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x32fb83(_0x93ff9,_0x312b01,_0x3bf3ff,_0x186690,_0x5dc66d,_0x3dd1fa,_0x39d515,_0x4dadbb,_0x3a4195,_0x12ab07,_0x52cf19){var _0x1526f5=_0x1a8446,_0x3587fa=this;_0x3587fa[_0x1526f5('0x7fc')]=_0x52cf19[_0x1526f5('0xacc')](),_0x3587fa['openchannelAccount']={},_0x3587fa[_0x1526f5('0xe02')]={'count':0x0,'rows':[]},_0x3587fa[_0x1526f5('0x53b')]=[],_0x3587fa[_0x1526f5('0xada')],_0x3587fa[_0x1526f5('0x582')]={'read':_0x1526f5('0x1ed9'),'closed':'null','sort':_0x1526f5('0xa19'),'includeAll':_0x1526f5('0x1c5c'),'limit':0xa,'page':0x1},_0x3587fa[_0x1526f5('0x2e')]=_0x19a00a,_0x3587fa[_0x1526f5('0x1416')]=_0x227c08,_0x3587fa[_0x1526f5('0x173b')]=_0x2900d4,_0x3587fa[_0x1526f5('0xe10')]=_0xbac847,_0x3587fa[_0x1526f5('0x2656')]=_0x120013,_0x3587fa[_0x1526f5('0x1ad7')]=_0x1bba48,_0x3587fa['openAdvancedSearch']=_0x12e8de,_0x3587fa[_0x1526f5('0x13c4')]=_0x3f2d3a,_0x3587fa[_0x1526f5('0x8a7')]=_0x3f339d,_0x3587fa[_0x1526f5('0x1a0b')]=_0x23d0c8;function _0x19a00a(_0x36e5fc,_0x3164ed){var _0x27392f=_0x1526f5;_0x3587fa[_0x27392f('0x2566')]=_0x36e5fc,_0x3587fa[_0x27392f('0xada')]=typeof _0x3164ed!==_0x27392f('0x1574')?_0x3164ed:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3587fa[_0x27392f('0x582')][_0x27392f('0x62c')]=_0x3587fa[_0x27392f('0x2566')]['id'],_0x3587fa['advancedSearch']={'fields':_0x559ecc()},_0x5cf7ec();}function _0x5cf7ec(){var _0x13f1d7=_0x1526f5;return _0x12ab07[_0x13f1d7('0x38f')]['get']()['$promise'][_0x13f1d7('0xaa5')](function(_0x473588){var _0x57d207=_0x13f1d7;_0x3587fa[_0x57d207('0x523')]=_0x473588||{'count':0x0,'rows':[]};})[_0x13f1d7('0xaa5')](function(){var _0x5c9e34=_0x13f1d7;_0x3587fa[_0x5c9e34('0x168c')]=_0x48a96a();});}function _0x48a96a(){var _0x21e981=_0x1526f5;return[{'name':_0x21e981('0x12f1'),'key':_0x21e981('0x24a1'),'type':_0x21e981('0xb87'),'label':_0x21e981('0xf3d')},{'name':_0x21e981('0x1cd2'),'key':'read','type':_0x21e981('0xbff'),'label':_0x21e981('0x1da2'),'customOptions':[{'value':0x0,'translate':_0x21e981('0x320')},{'value':0x1,'translate':_0x21e981('0xdc4')},{'value':null,'translate':_0x21e981('0x20c4')}]},{'name':'Status','key':_0x21e981('0x1cbd'),'type':_0x21e981('0xbff'),'label':_0x21e981('0x617'),'customOptions':[{'value':0x0,'translate':_0x21e981('0x166e')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x21e981('0x521'),'key':'UserId','type':_0x21e981('0xbff'),'label':_0x21e981('0x162f'),'customOptions':[{'value':_0x21e981('0x1ed9'),'translate':_0x21e981('0x1a1c')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x21e981('0x4e7'),'key':_0x21e981('0x38f'),'type':'multiselect','label':_0x21e981('0x6a6'),'options':_0x3587fa[_0x21e981('0x523')]['rows'],'placeholder':_0x21e981('0x1161')}];}function _0x559ecc(){var _0x7c95fc=_0x1526f5;return[{'name':'Id','column':'id','type':_0x7c95fc('0x219a')},{'name':_0x7c95fc('0x1dc'),'column':_0x7c95fc('0x1dc'),'type':_0x7c95fc('0x7e6'),'options':{'searchFields':[_0x7c95fc('0x24c1'),_0x7c95fc('0x351'),_0x7c95fc('0x1f69')],'route':{'model':_0x7c95fc('0xdbd'),'action':_0x7c95fc('0x2122'),'params':{'fields':'id,firstName,lastName,email','Contact':'@autocomplete','nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x7c95fc('0x716'),'column':_0x7c95fc('0x2101'),'type':_0x7c95fc('0xb37'),'options':{'excludedOperators':[_0x7c95fc('0x221d'),_0x7c95fc('0x13f7')]}},{'name':_0x7c95fc('0x1e4'),'column':_0x7c95fc('0xc2'),'type':_0x7c95fc('0xb37'),'options':{'excludedOperators':[_0x7c95fc('0x221d'),_0x7c95fc('0x13f7')]}},{'name':'Status','column':_0x7c95fc('0x1cbd'),'type':'select','values':[{'id':0x0,'translate':_0x7c95fc('0x166e')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x7c95fc('0x13f7')]}},{'name':_0x7c95fc('0x521'),'column':_0x7c95fc('0x21b9'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x7c95fc('0x272b'),'action':'get','params':{'role':_0x7c95fc('0xeff'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x7c95fc('0x18e5'),_0x7c95fc('0x25d6')],'extraOperators':[_0x7c95fc('0x2082')],'excludedOperators':[_0x7c95fc('0x13f7')]}},{'name':'Tags','column':_0x7c95fc('0x4e7'),'type':_0x7c95fc('0x2468'),'options':{'route':{'model':_0x7c95fc('0x38f'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x7c95fc('0x930')]}},{'name':_0x7c95fc('0x12f1'),'column':'createdAt','type':'date','options':{'excludedOperators':['$ne']}},{'name':_0x7c95fc('0x120b'),'column':_0x7c95fc('0x1551'),'type':_0x7c95fc('0xbff'),'values':[{'id':0x1,'translate':_0x7c95fc('0xdc4')},{'id':0x0,'translate':_0x7c95fc('0x320')}],'options':{'excludedOperators':[_0x7c95fc('0x13f7')]}}];}function _0x12e8de(){var _0x590225=_0x1526f5;_0x39d515['show']({'controller':_0x590225('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0x590225('0x1aa8')](_0x4dadbb[_0x590225('0x54c')]),'clickOutsideToClose':![],'locals':{'fields':_0x3587fa[_0x590225('0xd67')][_0x590225('0x13a')],'color':undefined,'storagePath':'openchannel.openchannelAccounts'},'fullscreen':!![]})['then'](function(_0x58e02a){var _0x5721f2=_0x590225;_0x3587fa[_0x5721f2('0x582')]['search']=_0x58e02a===![]?undefined:_0x58e02a;if(_0x3587fa[_0x5721f2('0x582')][_0x5721f2('0x1785')])_0x120013();else _0x58e02a===![]&&_0x120013();})['catch'](function(_0x58d679){var _0x168682=_0x590225;_0x3a4195[_0x168682('0x187f')]({'title':_0x168682('0x208b'),'msg':_0x58d679['data']?JSON[_0x168682('0xa48')](_0x58d679[_0x168682('0x10fd')][_0x168682('0x1402')]):_0x58d679['toString']()});});}function _0x2900d4(_0x2c2889,_0x262d0c,_0x18c913){var _0x245635=_0x1526f5;return _0x12ab07['openchannelInteraction'][_0x245635('0x1cf9')]({'id':_0x2c2889['id'],'exists':!![],'attachments':_0x18c913})[_0x245635('0x1dc2')][_0x245635('0xaa5')](function(_0x345206){var _0x47f0fd=_0x245635,_0x4b6611=[_0x345206[_0x47f0fd('0x1bf1')]],_0x2abd4b=_0x47f0fd('0x1d86')+_0x2c2889['id'],_0x50c3d0=new Blob(_0x4b6611,{'type':_0x345206['type']});_0x2abd4b=_0x47f0fd('0x1895')+_0x2c2889['id']+_0x47f0fd('0x966');var _0x460426=window[_0x47f0fd('0x12aa')][_0x47f0fd('0x531')]('a');_0x460426[_0x47f0fd('0x107b')](_0x47f0fd('0x18ae'),URL[_0x47f0fd('0x1e56')](_0x50c3d0)),_0x460426[_0x47f0fd('0x107b')](_0x47f0fd('0x1cf9'),_0x2abd4b),document[_0x47f0fd('0x54c')][_0x47f0fd('0x1315')](_0x460426),_0x460426[_0x47f0fd('0x467')]();})[_0x245635('0x253d')](function(_0x35c80b){var _0xf19f6f=_0x245635;if(_0x35c80b[_0xf19f6f('0x10fd')]&&_0x35c80b[_0xf19f6f('0x10fd')][_0xf19f6f('0x4c6')]&&_0x35c80b[_0xf19f6f('0x10fd')]['errors'][_0xf19f6f('0x2587')])for(var _0x583205=0x0;_0x583205<_0x35c80b[_0xf19f6f('0x10fd')][_0xf19f6f('0x4c6')][_0xf19f6f('0x2587')];_0x583205+=0x1){_0x3a4195[_0xf19f6f('0x187f')]({'title':_0x35c80b[_0xf19f6f('0x10fd')][_0xf19f6f('0x4c6')][_0x583205][_0xf19f6f('0x6c8')],'msg':_0x35c80b['data']['errors'][_0x583205][_0xf19f6f('0x1402')]});}else _0x3a4195['error']({'title':_0x35c80b[_0xf19f6f('0x2fa')]?'API:'+_0x35c80b[_0xf19f6f('0x2fa')]+_0xf19f6f('0x169e')+_0x35c80b[_0xf19f6f('0x24df')]:_0xf19f6f('0x13f3'),'msg':_0x35c80b[_0xf19f6f('0x10fd')]?JSON[_0xf19f6f('0xa48')](_0x35c80b[_0xf19f6f('0x10fd')]['message']):_0x35c80b[_0xf19f6f('0x684')]()});});}function _0x227c08(_0x5067bd,_0x1f83eb){var _0x265cc5=_0x1526f5,_0x4a4741=_0x39d515[_0x265cc5('0x281e')]()[_0x265cc5('0x110a')](_0x265cc5('0x625'))[_0x265cc5('0x102e')](_0x265cc5('0x389')+(_0x5067bd[_0x265cc5('0x25d6')]||_0x5067bd['id']&&_0x51538b()['upperFirst'](_0x265cc5('0x11a4'))+_0x5067bd['id']||'interaction')+_0x265cc5('0x697')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x265cc5('0x22ae'))[_0x265cc5('0x116d')](_0x1f83eb)['ok']('OK')[_0x265cc5('0x2030')](_0x265cc5('0x2410'));_0x39d515[_0x265cc5('0x1e6d')](_0x4a4741)[_0x265cc5('0xaa5')](function(){_0x3f339d(_0x5067bd);},function(){var _0x4529b2=_0x265cc5;console[_0x4529b2('0x18d5')](_0x4529b2('0x2410'));});}function _0xbac847(_0x3ca137){var _0x3eab8f=_0x1526f5;_0x3587fa['openchannelAccountInteractions']=_0x3ca137||{'count':0x0,'rows':[]};for(var _0x3bccd1=0x0;_0x3bccd1<_0x3587fa[_0x3eab8f('0xe02')][_0x3eab8f('0x580')][_0x3eab8f('0x2587')];_0x3bccd1+=0x1){var _0x2df03a=_0x3587fa[_0x3eab8f('0xe02')][_0x3eab8f('0x580')][_0x3bccd1];_0x419068(_0x2df03a),_0x2df03a[_0x3eab8f('0x40')][_0x3eab8f('0x25d6')]=_0x2cd4ff(_0x2df03a);}}function _0x120013(){var _0x4f57a8=_0x1526f5;_0x3587fa[_0x4f57a8('0x582')][_0x4f57a8('0x8b1')]=(_0x3587fa[_0x4f57a8('0x582')]['page']-0x1)*_0x3587fa['query'][_0x4f57a8('0xf4d')],_0x3587fa[_0x4f57a8('0x159a')]=_0x12ab07[_0x4f57a8('0x97d')][_0x4f57a8('0x2122')](_0x3587fa['query'],_0xbac847)['$promise'];}function _0x1bba48(_0x159212,_0x13b914){var _0x57ff94=_0x1526f5;_0x39d515[_0x57ff94('0x1e6d')]({'controller':_0x57ff94('0x1fdf'),'controllerAs':'vm','templateUrl':_0x451de2,'parent':angular[_0x57ff94('0x1aa8')](_0x4dadbb[_0x57ff94('0x54c')]),'targetEvent':_0x159212,'clickOutsideToClose':!![],'onShowing':function _0x5e6fdc(_0x5948f5){var _0x6e631b=_0x57ff94;_0x5948f5['vm']['init']({'id':0x1,'channel':_0x6e631b('0x170'),'interaction':_0x13b914,'spy':!![]},_0x312b01[_0x6e631b('0x24a3')]['vm'][_0x6e631b('0x143f')]);}});}function _0x3f339d(_0x3f4c54){var _0xe34e3a=_0x1526f5;_0x12ab07['openchannelInteraction'][_0xe34e3a('0x926')]({'id':_0x3f4c54['id']})[_0xe34e3a('0x1dc2')][_0xe34e3a('0xaa5')](function(){var _0x501f5b=_0xe34e3a;_0x51538b()[_0x501f5b('0xf6d')](_0x3587fa[_0x501f5b('0xe02')][_0x501f5b('0x580')],{'id':_0x3f4c54['id']}),_0x3587fa[_0x501f5b('0xe02')][_0x501f5b('0xd15')]-=0x1,!_0x3587fa['openchannelAccountInteractions']['rows'][_0x501f5b('0x2587')]&&_0x120013(),_0x3a4195[_0x501f5b('0xe10')]({'title':_0x501f5b('0xd35'),'msg':_0x3f4c54[_0x501f5b('0x25d6')]?_0x3f4c54['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x39b650){var _0xdc71f5=_0xe34e3a;if(_0x39b650[_0xdc71f5('0x10fd')]&&_0x39b650[_0xdc71f5('0x10fd')]['errors']&&_0x39b650[_0xdc71f5('0x10fd')][_0xdc71f5('0x4c6')][_0xdc71f5('0x2587')]){_0x3587fa[_0xdc71f5('0x4c6')]=_0x39b650[_0xdc71f5('0x10fd')][_0xdc71f5('0x4c6')]||[{'message':_0x39b650[_0xdc71f5('0x684')](),'type':_0xdc71f5('0x85d')}];for(var _0xd7f143=0x0;_0xd7f143<_0x39b650[_0xdc71f5('0x10fd')][_0xdc71f5('0x4c6')]['length'];_0xd7f143++){_0x3a4195[_0xdc71f5('0x187f')]({'title':_0x39b650[_0xdc71f5('0x10fd')][_0xdc71f5('0x4c6')][_0xd7f143]['type'],'msg':_0x39b650[_0xdc71f5('0x10fd')][_0xdc71f5('0x4c6')][_0xd7f143]['message']});}}else _0x3a4195[_0xdc71f5('0x187f')]({'title':_0x39b650['status']?_0xdc71f5('0x16c2')+_0x39b650[_0xdc71f5('0x2fa')]+_0xdc71f5('0x169e')+_0x39b650[_0xdc71f5('0x24df')]:_0xdc71f5('0x85d'),'msg':_0x39b650['data']?JSON['stringify'](_0x39b650[_0xdc71f5('0x10fd')][_0xdc71f5('0x1402')]):_0x39b650['message']||_0x39b650[_0xdc71f5('0x684')]()});});}function _0x3f2d3a(){var _0x50b448=_0x1526f5,_0x30d1c6=angular[_0x50b448('0x20a')](_0x3587fa[_0x50b448('0x53b')]);return _0x3587fa[_0x50b448('0x53b')]=[],_0x30d1c6;}function _0x23d0c8(_0x4789ae){var _0x561d24=_0x1526f5,_0x4c913a=_0x39d515[_0x561d24('0x281e')]()[_0x561d24('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')['htmlContent'](_0x561d24('0x389')+_0x3587fa[_0x561d24('0x53b')][_0x561d24('0x2587')]+'\x20selected'+_0x561d24('0x210d'))['ariaLabel'](_0x561d24('0x1d8c'))[_0x561d24('0x116d')](_0x4789ae)['ok']('OK')['cancel'](_0x561d24('0x2410'));_0x39d515[_0x561d24('0x1e6d')](_0x4c913a)[_0x561d24('0xaa5')](function(){var _0x351c57=_0x561d24;_0x3587fa[_0x351c57('0x53b')][_0x351c57('0x15b5')](function(_0x2b547f){_0x3f339d(_0x2b547f);}),_0x3587fa['selectedOpenchannelAccountInteractions']=[];});}function _0x419068(_0x2ea441){var _0x15558d=_0x1526f5;if(_0x2ea441[_0x15558d('0x1911')])_0x2ea441[_0x15558d('0x4e0')]=_0x2ea441[_0x15558d('0x1911')];else _0x2ea441['Contact']?_0x2ea441[_0x15558d('0x4e0')]=(_0x2ea441['Contact']['firstName']||'')+'\x20'+(_0x2ea441[_0x15558d('0x1dc')][_0x15558d('0x351')]||''):_0x2ea441[_0x15558d('0x4e0')]=_0x5dc66d[_0x15558d('0x213f')](_0x15558d('0xf1c'));}function _0x2cd4ff(_0x3713f0){var _0x14a9f6=_0x1526f5;if(_0x3713f0[_0x14a9f6('0x1037')])return _0x3713f0[_0x14a9f6('0x1037')]===_0x3587fa[_0x14a9f6('0x7fc')]['id']?_0x5dc66d[_0x14a9f6('0x213f')]('DASHBOARDS.ME'):_0x3713f0[_0x14a9f6('0x40')][_0x14a9f6('0x18e5')]+'\x20<'+_0x3713f0[_0x14a9f6('0x40')]['internal']+'>';return _0x5dc66d[_0x14a9f6('0x213f')](_0x14a9f6('0x1a1c'));}var _0x26964f=!![],_0x282b0c=0x1;_0x312b01['$watch'](_0x1526f5('0x74c'),function(_0x262fc6,_0x3c3b9c){var _0x3efe2e=_0x1526f5;_0x26964f?_0x3dd1fa(function(){_0x26964f=![];}):(!_0x3c3b9c&&(_0x282b0c=_0x3587fa[_0x3efe2e('0x582')][_0x3efe2e('0x41')]),_0x262fc6!==_0x3c3b9c&&(_0x3587fa[_0x3efe2e('0x582')][_0x3efe2e('0x41')]=0x1),!_0x262fc6&&(_0x3587fa[_0x3efe2e('0x582')][_0x3efe2e('0x41')]=_0x282b0c),_0x120013());});}const _0x28f72e=_0x32fb83,_0x4ce081=_0x4fb511['p']+_0x1a8446('0x10e9');_0x111cc6['$inject']=['$cookies',_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),'$timeout',_0x1a8446('0x2378'),'$document',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x111cc6(_0xbfa6e,_0x2f6b9a,_0xd7509d,_0x4f6d0d,_0x87684b,_0x2ec12a,_0x2ce44e,_0x54e668,_0x1e839d,_0x8fefa7,_0x20dbe6){var _0xcf3432=_0x1a8446,_0x435e58=this;_0x435e58[_0xcf3432('0x7fc')]=_0x20dbe6[_0xcf3432('0xacc')](),_0x435e58[_0xcf3432('0x2566')]={},_0x435e58[_0xcf3432('0xbcf')]={'count':0x0,'rows':[]},_0x435e58[_0xcf3432('0x21cf')]=[],_0x435e58[_0xcf3432('0xada')],_0x435e58['query']={'fields':_0xcf3432('0x22e7'),'limit':0xa,'page':0x1},_0x435e58[_0xcf3432('0x2e')]=_0x2dda0a,_0x435e58[_0xcf3432('0x1416')]=_0x2f5733,_0x435e58[_0xcf3432('0xe10')]=_0x46531a,_0x435e58[_0xcf3432('0x70e')]=_0x38676e,_0x435e58[_0xcf3432('0x1aee')]=_0x3a2424,_0x435e58[_0xcf3432('0xf1f')]=_0x110174,_0x435e58[_0xcf3432('0x23a9')]=_0x384346,_0x435e58[_0xcf3432('0x23ca')]=_0x142f9f;function _0x2dda0a(_0x55f8f6,_0x36143d){var _0x1070b3=_0xcf3432;_0x435e58[_0x1070b3('0x2566')]=_0x55f8f6,_0x435e58['crudPermissions']=typeof _0x36143d!=='undefined'?_0x36143d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x435e58[_0x1070b3('0x582')][_0x1070b3('0x62c')]=_0x435e58[_0x1070b3('0x2566')]['id'],_0x435e58[_0x1070b3('0x582')]['id']=_0x435e58[_0x1070b3('0x2566')]['id'],_0x38676e();}function _0x2f5733(_0x2bc34d,_0xca66c3){var _0xce0926=_0xcf3432,_0x2fd09b=_0x2ce44e['confirm']()['title'](_0xce0926('0x1faf'))[_0xce0926('0x102e')](''+(_0x2bc34d[_0xce0926('0x25d6')]||_0x2bc34d['id']&&_0x51538b()[_0xce0926('0x1791')](_0xce0926('0x180e'))+_0x2bc34d['id']||_0xce0926('0x7f0'))+_0xce0926('0x697')+_0xce0926('0x210d'))[_0xce0926('0x5b5')]('delete\x20openchannelCannedAnswer')['targetEvent'](_0xca66c3)['ok']('OK')[_0xce0926('0x2030')](_0xce0926('0x2410'));_0x2ce44e[_0xce0926('0x1e6d')](_0x2fd09b)[_0xce0926('0xaa5')](function(){_0x384346(_0x2bc34d);},function(){var _0x296198=_0xce0926;console[_0x296198('0x18d5')](_0x296198('0x2410'));});}function _0x46531a(_0x8dc313){_0x435e58['openchannelAccountOpenchannelCannedAnswers']=_0x8dc313||{'count':0x0,'rows':[]};}function _0x38676e(){var _0x154f38=_0xcf3432;_0x435e58[_0x154f38('0x582')]['offset']=(_0x435e58[_0x154f38('0x582')][_0x154f38('0x41')]-0x1)*_0x435e58['query'][_0x154f38('0xf4d')],_0x435e58[_0x154f38('0x159a')]=_0x8fefa7[_0x154f38('0x2566')][_0x154f38('0x1720')](_0x435e58[_0x154f38('0x582')],_0x46531a)[_0x154f38('0x1dc2')];}function _0x3a2424(_0x2dcd9d,_0x3429b2){var _0x36af7c=_0xcf3432;_0x2ce44e[_0x36af7c('0x1e6d')]({'controller':'CreateOrEditOpenchannelCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x4ce081,'parent':angular[_0x36af7c('0x1aa8')](_0x54e668[_0x36af7c('0x54c')]),'targetEvent':_0x2dcd9d,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x435e58[_0x36af7c('0x2566')],'openchannelCannedAnswer':_0x3429b2,'openchannelCannedAnswers':_0x435e58[_0x36af7c('0xbcf')][_0x36af7c('0x580')],'license':null,'setting':null,'crudPermissions':_0x435e58[_0x36af7c('0xada')]}});}function _0x384346(_0x578282){var _0x2c553d=_0xcf3432;_0x8fefa7[_0x2c553d('0x1a53')][_0x2c553d('0x926')]({'id':_0x578282['id']})['$promise'][_0x2c553d('0xaa5')](function(){var _0x1d7067=_0x2c553d;_0x51538b()['remove'](_0x435e58[_0x1d7067('0xbcf')][_0x1d7067('0x580')],{'id':_0x578282['id']}),_0x435e58['openchannelAccountOpenchannelCannedAnswers'][_0x1d7067('0xd15')]-=0x1,!_0x435e58[_0x1d7067('0xbcf')][_0x1d7067('0x580')]['length']&&_0x38676e(),_0x1e839d['success']({'title':_0x1d7067('0x719'),'msg':_0x578282[_0x1d7067('0x25d6')]?_0x578282[_0x1d7067('0x25d6')]+_0x1d7067('0xcd9'):''});})[_0x2c553d('0x253d')](function(_0x1a8fdf){var _0x316e04=_0x2c553d;if(_0x1a8fdf['data']&&_0x1a8fdf[_0x316e04('0x10fd')]['errors']&&_0x1a8fdf[_0x316e04('0x10fd')]['errors'][_0x316e04('0x2587')]){_0x435e58['errors']=_0x1a8fdf['data'][_0x316e04('0x4c6')]||[{'message':_0x1a8fdf[_0x316e04('0x684')](),'type':_0x316e04('0x85d')}];for(var _0x3784d0=0x0;_0x3784d0<_0x1a8fdf[_0x316e04('0x10fd')][_0x316e04('0x4c6')]['length'];_0x3784d0++){_0x1e839d[_0x316e04('0x187f')]({'title':_0x1a8fdf[_0x316e04('0x10fd')][_0x316e04('0x4c6')][_0x3784d0][_0x316e04('0x6c8')],'msg':_0x1a8fdf[_0x316e04('0x10fd')]['errors'][_0x3784d0][_0x316e04('0x1402')]});}}else _0x1e839d[_0x316e04('0x187f')]({'title':_0x1a8fdf[_0x316e04('0x2fa')]?_0x316e04('0x16c2')+_0x1a8fdf[_0x316e04('0x2fa')]+'\x20-\x20'+_0x1a8fdf[_0x316e04('0x24df')]:_0x316e04('0x85d'),'msg':_0x1a8fdf['data']?JSON[_0x316e04('0xa48')](_0x1a8fdf['data'][_0x316e04('0x1402')]):_0x1a8fdf['message']||_0x1a8fdf[_0x316e04('0x684')]()});});}function _0x110174(){var _0x528222=_0xcf3432,_0x537576=angular[_0x528222('0x20a')](_0x435e58[_0x528222('0x21cf')]);return _0x435e58[_0x528222('0x21cf')]=[],_0x537576;}function _0x142f9f(_0xfcb4a9){var _0x13a4da=_0xcf3432,_0x5501a2=_0x2ce44e['confirm']()['title'](_0x13a4da('0x5f7'))[_0x13a4da('0x102e')](_0x13a4da('0x389')+_0x435e58['selectedOpenchannelAccountOpenchannelCannedAnswers'][_0x13a4da('0x2587')]+_0x13a4da('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x13a4da('0x2555'))[_0x13a4da('0x116d')](_0xfcb4a9)['ok']('OK')[_0x13a4da('0x2030')]('CANCEL');_0x2ce44e[_0x13a4da('0x1e6d')](_0x5501a2)[_0x13a4da('0xaa5')](function(){var _0x452288=_0x13a4da;_0x435e58[_0x452288('0x21cf')][_0x452288('0x15b5')](function(_0x171ff8){_0x384346(_0x171ff8);}),_0x435e58['selectedOpenchannelAccountOpenchannelCannedAnswers']=[];});}var _0x5b2e4e=!![],_0x516980=0x1;_0x2f6b9a[_0xcf3432('0x1ccf')]('vm_dc.query.filter',function(_0x4976ba,_0x524833){var _0x5555b5=_0xcf3432;_0x5b2e4e?_0x2ec12a(function(){_0x5b2e4e=![];}):(!_0x524833&&(_0x516980=_0x435e58[_0x5555b5('0x582')][_0x5555b5('0x41')]),_0x4976ba!==_0x524833&&(_0x435e58['query'][_0x5555b5('0x41')]=0x1),!_0x4976ba&&(_0x435e58[_0x5555b5('0x582')]['page']=_0x516980),_0x38676e());});}const _0x232c2c=_0x111cc6;_0x2a674f['$inject']=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x26a2'),_0x1a8446('0x7f0'),_0x1a8446('0x157'),'Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f'),'crudPermissions'];function _0x2a674f(_0x50a1d6,_0x4a28c8,_0x54d7dc,_0x31acc0,_0x3cc396,_0x339cad,_0x51a26f,_0x2fd4f9,_0x1156f9,_0x269b4f,_0x5e8046,_0x46b490,_0x24dd92,_0x425d6e){var _0x5a2a5e=_0x1a8446,_0x76c49f=this;_0x76c49f[_0x5a2a5e('0x7fc')]=_0x5e8046[_0x5a2a5e('0xacc')](),_0x76c49f[_0x5a2a5e('0x4c6')]=[],_0x76c49f[_0x5a2a5e('0x143f')]=_0x24dd92,_0x76c49f[_0x5a2a5e('0x1202')]=_0x46b490,_0x76c49f['crudPermissions']=_0x425d6e,_0x76c49f[_0x5a2a5e('0x9f0')]={},_0x76c49f['passwordPattern']=_0x76c49f[_0x5a2a5e('0x143f')]&&_0x76c49f[_0x5a2a5e('0x143f')][_0x5a2a5e('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x76c49f['title']='OPENCHANNEL.EDIT_OPENCHANNELCANNEDANSWER',_0x76c49f[_0x5a2a5e('0x7f0')]=angular['copy'](_0x1156f9),_0x76c49f[_0x5a2a5e('0x26a2')]=_0x2fd4f9,_0x76c49f[_0x5a2a5e('0x142b')]=![];!_0x76c49f['openchannelCannedAnswer']&&(_0x76c49f[_0x5a2a5e('0x7f0')]={},_0x76c49f[_0x5a2a5e('0x110a')]='OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER',_0x76c49f['newOpenchannelCannedAnswer']=!![]);_0x4a28c8[_0x5a2a5e('0x25cf')]['id']&&(_0x76c49f[_0x5a2a5e('0x7f0')][_0x5a2a5e('0x62c')]=_0x4a28c8[_0x5a2a5e('0x25cf')]['id']);_0x76c49f[_0x5a2a5e('0xb35')]=_0x5c78ac,_0x76c49f[_0x5a2a5e('0x8c3')]=_0x10c7ed,_0x76c49f[_0x5a2a5e('0xfd9')]=_0x342057,_0x76c49f['getDateFromString']=_0x41d2c7,_0x76c49f[_0x5a2a5e('0x2023')]=_0x12f17d;function _0x5c78ac(){var _0x7c6409=_0x5a2a5e;_0x76c49f['errors']=[],_0x269b4f['cannedAnswer'][_0x7c6409('0x242b')](_0x76c49f[_0x7c6409('0x7f0')])[_0x7c6409('0x1dc2')][_0x7c6409('0xaa5')](function(_0x23ec11){var _0x3c9648=_0x7c6409;_0x76c49f[_0x3c9648('0x26a2')][_0x3c9648('0x6ee')](_0x23ec11['toJSON']()),_0x51a26f[_0x3c9648('0xe10')]({'title':_0x3c9648('0x2491'),'msg':_0x76c49f[_0x3c9648('0x7f0')]['name']?_0x76c49f[_0x3c9648('0x7f0')][_0x3c9648('0x25d6')]+_0x3c9648('0xdca'):''}),_0x12f17d(_0x23ec11);})[_0x7c6409('0x253d')](function(_0x4bad8c){var _0x416326=_0x7c6409;if(_0x4bad8c[_0x416326('0x10fd')]&&_0x4bad8c[_0x416326('0x10fd')][_0x416326('0x4c6')]&&_0x4bad8c[_0x416326('0x10fd')][_0x416326('0x4c6')][_0x416326('0x2587')]){_0x76c49f[_0x416326('0x4c6')]=_0x4bad8c[_0x416326('0x10fd')][_0x416326('0x4c6')]||[{'message':_0x4bad8c[_0x416326('0x684')](),'type':_0x416326('0x262b')}];for(var _0x171286=0x0;_0x171286<_0x4bad8c['data'][_0x416326('0x4c6')][_0x416326('0x2587')];_0x171286+=0x1){_0x51a26f['error']({'title':_0x4bad8c[_0x416326('0x10fd')][_0x416326('0x4c6')][_0x171286][_0x416326('0x6c8')],'msg':_0x4bad8c[_0x416326('0x10fd')]['errors'][_0x171286][_0x416326('0x1402')]});}}else _0x51a26f['error']({'title':_0x4bad8c[_0x416326('0x2fa')]?_0x416326('0x16c2')+_0x4bad8c['status']+'\x20-\x20'+_0x4bad8c[_0x416326('0x24df')]:_0x416326('0x262b'),'msg':_0x4bad8c[_0x416326('0x10fd')]?JSON[_0x416326('0xa48')](_0x4bad8c[_0x416326('0x10fd')][_0x416326('0x1402')]):_0x4bad8c[_0x416326('0x684')]()});});}function _0x10c7ed(){var _0x451438=_0x5a2a5e;_0x76c49f[_0x451438('0x4c6')]=[],_0x269b4f[_0x451438('0x1a53')][_0x451438('0x264e')]({'id':_0x76c49f['openchannelCannedAnswer']['id']},_0x76c49f[_0x451438('0x7f0')])[_0x451438('0x1dc2')][_0x451438('0xaa5')](function(_0x234371){var _0x38f64f=_0x451438,_0x2f2f2d=_0x51538b()['find'](_0x76c49f['openchannelCannedAnswers'],{'id':_0x234371['id']});_0x2f2f2d&&_0x51538b()[_0x38f64f('0x283c')](_0x2f2f2d,_0x51538b()[_0x38f64f('0x104e')](_0x234371[_0x38f64f('0x256a')](),_0x51538b()[_0x38f64f('0x9f2')](_0x2f2f2d))),_0x51a26f['success']({'title':'OpenchannelCannedAnswer\x20properly\x20saved!','msg':_0x76c49f[_0x38f64f('0x7f0')][_0x38f64f('0x25d6')]?_0x76c49f[_0x38f64f('0x7f0')]['name']+'\x20has\x20been\x20saved!':''}),_0x12f17d(_0x234371);})[_0x451438('0x253d')](function(_0x41f5cc){var _0x16aa9f=_0x451438;if(_0x41f5cc[_0x16aa9f('0x10fd')]&&_0x41f5cc['data'][_0x16aa9f('0x4c6')]&&_0x41f5cc['data']['errors'][_0x16aa9f('0x2587')]){_0x76c49f[_0x16aa9f('0x4c6')]=_0x41f5cc[_0x16aa9f('0x10fd')]['errors']||[{'message':_0x41f5cc[_0x16aa9f('0x684')](),'type':_0x16aa9f('0x583')}];for(var _0x26df02=0x0;_0x26df02<_0x41f5cc[_0x16aa9f('0x10fd')][_0x16aa9f('0x4c6')][_0x16aa9f('0x2587')];_0x26df02++){_0x51a26f[_0x16aa9f('0x187f')]({'title':_0x41f5cc[_0x16aa9f('0x10fd')]['errors'][_0x26df02][_0x16aa9f('0x6c8')],'msg':_0x41f5cc['data'][_0x16aa9f('0x4c6')][_0x26df02]['message']});}}else _0x51a26f[_0x16aa9f('0x187f')]({'title':_0x41f5cc[_0x16aa9f('0x2fa')]?'API:'+_0x41f5cc[_0x16aa9f('0x2fa')]+_0x16aa9f('0x169e')+_0x41f5cc['statusText']:'api.cannedAnswer.update','msg':_0x41f5cc[_0x16aa9f('0x10fd')]?JSON[_0x16aa9f('0xa48')](_0x41f5cc['data'][_0x16aa9f('0x1402')]):_0x41f5cc['toString']()});});}function _0x342057(_0x4a2fe2){var _0xdf2905=_0x5a2a5e;_0x76c49f['errors']=[];var _0x450e7e=_0x31acc0[_0xdf2905('0x281e')]()[_0xdf2905('0x110a')](_0xdf2905('0x12a3'))[_0xdf2905('0x15af')](_0xdf2905('0x377'))['ariaLabel'](_0xdf2905('0xca9'))['ok'](_0xdf2905('0x1e76'))[_0xdf2905('0x2030')]('Cancel')[_0xdf2905('0x116d')](_0x4a2fe2);_0x31acc0[_0xdf2905('0x1e6d')](_0x450e7e)['then'](function(){var _0x114a7e=_0xdf2905;_0x269b4f[_0x114a7e('0x1a53')]['delete']({'id':_0x76c49f[_0x114a7e('0x7f0')]['id']})[_0x114a7e('0x1dc2')][_0x114a7e('0xaa5')](function(){var _0x22ae81=_0x114a7e;_0x51538b()[_0x22ae81('0xf6d')](_0x76c49f[_0x22ae81('0x26a2')],{'id':_0x76c49f[_0x22ae81('0x7f0')]['id']}),_0x51a26f['success']({'title':_0x22ae81('0x2734'),'msg':(_0x76c49f['openchannelCannedAnswer']['name']||_0x22ae81('0x7f0'))+_0x22ae81('0xcd9')}),_0x12f17d(_0x76c49f[_0x22ae81('0x7f0')]);})[_0x114a7e('0x253d')](function(_0x21d353){var _0x320b41=_0x114a7e;if(_0x21d353['data']&&_0x21d353[_0x320b41('0x10fd')]['errors']&&_0x21d353[_0x320b41('0x10fd')][_0x320b41('0x4c6')][_0x320b41('0x2587')]){_0x76c49f[_0x320b41('0x4c6')]=_0x21d353[_0x320b41('0x10fd')][_0x320b41('0x4c6')]||[{'message':_0x21d353[_0x320b41('0x684')](),'type':_0x320b41('0xa2a')}];for(var _0x1f83b0=0x0;_0x1f83b0<_0x21d353[_0x320b41('0x10fd')][_0x320b41('0x4c6')][_0x320b41('0x2587')];_0x1f83b0++){_0x51a26f[_0x320b41('0x187f')]({'title':_0x21d353[_0x320b41('0x10fd')][_0x320b41('0x4c6')][_0x1f83b0][_0x320b41('0x6c8')],'msg':_0x21d353[_0x320b41('0x10fd')][_0x320b41('0x4c6')][_0x1f83b0]['message']});}}else _0x51a26f[_0x320b41('0x187f')]({'title':_0x21d353[_0x320b41('0x2fa')]?_0x320b41('0x16c2')+_0x21d353[_0x320b41('0x2fa')]+'\x20-\x20'+_0x21d353[_0x320b41('0x24df')]:'api.cannedAnswer.delete','msg':_0x21d353[_0x320b41('0x10fd')]?JSON[_0x320b41('0xa48')](_0x21d353[_0x320b41('0x10fd')]['message']):_0x21d353[_0x320b41('0x1402')]||_0x21d353['toString']()});});},function(){});}function _0x41d2c7(_0x1fc876){return _0x1fc876===null?undefined:new Date(_0x1fc876);}function _0x12f17d(_0x12610c){var _0x284827=_0x5a2a5e;_0x31acc0[_0x284827('0x1120')](_0x12610c);}}const _0x42969b=_0x2a674f;_0x1f9358[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window','$state',_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x1f9358(_0x3ce2eb,_0x21b901,_0x1efc65,_0x174bba,_0x774d33,_0x30779b,_0x30487a,_0x10159d,_0x39afad,_0x51ab24,_0x5ce4ae){var _0x17f846=_0x1a8446,_0x44edb9=this;_0x44edb9[_0x17f846('0x7fc')]=_0x5ce4ae[_0x17f846('0xacc')](),_0x44edb9[_0x17f846('0xa9')]={'count':0x0,'rows':[]},_0x44edb9[_0x17f846('0x3b5')]=[],_0x44edb9['crudPermissions'],_0x44edb9['levels']={'first':_0x17f846('0xee7'),'second':'2nd','third':_0x17f846('0x14f3')},_0x44edb9[_0x17f846('0x582')]={'fields':_0x17f846('0x11a9'),'sort':_0x17f846('0xd82'),'limit':0xa,'page':0x1},_0x44edb9[_0x17f846('0x2e')]=_0x38451d,_0x44edb9[_0x17f846('0x1416')]=_0x305efa,_0x44edb9[_0x17f846('0xe10')]=_0x1c5819,_0x44edb9[_0x17f846('0x24b7')]=_0x53d26a,_0x44edb9[_0x17f846('0x707')]=_0x1a0037,_0x44edb9[_0x17f846('0xb52')]=_0x7ac9d7,_0x44edb9[_0x17f846('0xae4')]=_0x117cb7,_0x44edb9[_0x17f846('0x1c3c')]=_0x27aedf,_0x44edb9['deselectDispositions']=_0x9d8c03,_0x44edb9['selectAllDispositions']=_0x454459;function _0x38451d(_0x419858,_0x39bf06){var _0x58c312=_0x17f846;_0x44edb9[_0x58c312('0x2566')]=_0x419858||{},_0x44edb9[_0x58c312('0xada')]=typeof _0x39bf06!==_0x58c312('0x1574')?_0x39bf06:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x44edb9[_0x58c312('0x582')][_0x58c312('0x62c')]=_0x44edb9['openchannelAccount']['id'],_0x44edb9['query']['id']=_0x44edb9[_0x58c312('0x2566')]['id'],_0x53d26a();}function _0x1a0037(_0x119a51,_0x3d020e){var _0x1dc0cd=_0x17f846;_0x774d33[_0x1dc0cd('0x1e6d')]({'controller':_0x1dc0cd('0xccf'),'controllerAs':'vm','templateUrl':_0x56dea9,'parent':angular['element'](_0x30779b[_0x1dc0cd('0x54c')]),'targetEvent':_0x119a51,'clickOutsideToClose':!![],'locals':{'disposition':_0x3d020e,'dispositions':_0x44edb9['dispositions'][_0x1dc0cd('0x580')],'model':{'id':_0x44edb9[_0x1dc0cd('0x2566')]['id'],'field':'OpenchannelAccountId'},'license':null,'setting':null,'crudPermissions':_0x44edb9[_0x1dc0cd('0xada')]}})[_0x1dc0cd('0xaa5')](function(_0x5adfe0){if(_0x5adfe0)_0x53d26a();});}function _0x305efa(_0x1508b5,_0x5f40fd){var _0xbf4ff1=_0x17f846,_0x3e3e92=_0x51538b()[_0xbf4ff1('0x2c2')](_0x44edb9[_0xbf4ff1('0xa9')][_0xbf4ff1('0x580')],[_0xbf4ff1('0x2733'),_0x1508b5['id']]),_0x17e5d4=_0x774d33['confirm']()[_0xbf4ff1('0x110a')](_0x10159d[_0xbf4ff1('0x213f')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0xbf4ff1('0x15af')](_0x10159d['instant'](_0xbf4ff1('0xbdf')+(_0x3e3e92?_0xbf4ff1('0x1528'):_0xbf4ff1('0x20c8')),{'name':_0x1508b5[_0xbf4ff1('0x25d6')]}))[_0xbf4ff1('0x5b5')](_0xbf4ff1('0x1493'))[_0xbf4ff1('0x116d')](_0x5f40fd)['ok']('OK')[_0xbf4ff1('0x2030')](_0x10159d[_0xbf4ff1('0x213f')](_0xbf4ff1('0x1dd8')));_0x774d33['show'](_0x17e5d4)[_0xbf4ff1('0xaa5')](function(){_0x7ac9d7(_0x1508b5);});}function _0x1c5819(_0x366624){var _0xd16a0c=_0x17f846;_0x44edb9[_0xd16a0c('0xa9')]=_0x366624||{'count':0x0,'rows':[]};}function _0x53d26a(){var _0x4a61b4=_0x17f846;_0x44edb9[_0x4a61b4('0x582')][_0x4a61b4('0x8b1')]=(_0x44edb9[_0x4a61b4('0x582')]['page']-0x1)*_0x44edb9[_0x4a61b4('0x582')][_0x4a61b4('0xf4d')],_0x44edb9['promise']=_0x39afad[_0x4a61b4('0x2566')]['getDispositions'](_0x44edb9[_0x4a61b4('0x582')],_0x1c5819)[_0x4a61b4('0x1dc2')];}function _0x7ac9d7(_0x25016f){var _0x5741f=_0x17f846;_0x39afad[_0x5741f('0x106e')][_0x5741f('0x926')]({'id':_0x25016f['id']})['$promise'][_0x5741f('0xaa5')](function(){var _0x19e9a9=_0x5741f;_0x53d26a(),_0x51ab24[_0x19e9a9('0xe10')]({'title':_0x10159d[_0x19e9a9('0x213f')](_0x19e9a9('0x26dd'))});})[_0x5741f('0x253d')](function(_0x1a3890){var _0x57d117=_0x5741f;if(_0x1a3890['data']&&_0x1a3890['data'][_0x57d117('0x4c6')]&&_0x1a3890['data'][_0x57d117('0x4c6')][_0x57d117('0x2587')]){_0x44edb9[_0x57d117('0x4c6')]=_0x1a3890['data'][_0x57d117('0x4c6')]||[{'message':_0x1a3890[_0x57d117('0x684')](),'type':'SYSTEM:DELETEdisposition'}];for(var _0x6deb24=0x0;_0x6deb24<_0x1a3890[_0x57d117('0x10fd')]['errors'][_0x57d117('0x2587')];_0x6deb24++){_0x51ab24[_0x57d117('0x187f')]({'title':_0x1a3890[_0x57d117('0x10fd')]['errors'][_0x6deb24][_0x57d117('0x6c8')],'msg':_0x1a3890[_0x57d117('0x10fd')][_0x57d117('0x4c6')][_0x6deb24][_0x57d117('0x1402')]});}}else _0x51ab24[_0x57d117('0x187f')]({'title':_0x1a3890[_0x57d117('0x2fa')]?_0x57d117('0x16c2')+_0x1a3890[_0x57d117('0x2fa')]+_0x57d117('0x169e')+_0x1a3890['statusText']:_0x57d117('0x28a'),'msg':_0x1a3890[_0x57d117('0x10fd')]?JSON[_0x57d117('0xa48')](_0x1a3890[_0x57d117('0x10fd')][_0x57d117('0x1402')]):_0x1a3890[_0x57d117('0x1402')]||_0x1a3890[_0x57d117('0x684')]()});});}function _0x117cb7(){var _0x3d009d=angular['copy'](_0x44edb9['selectedDispositions']);return _0x44edb9['selectedDispositions']=[],_0x3d009d;}function _0x27aedf(_0x12205a){var _0x1425c3=_0x17f846,_0x23e468=_0x774d33[_0x1425c3('0x281e')]()[_0x1425c3('0x110a')](_0x10159d[_0x1425c3('0x213f')](_0x1425c3('0x18f0')))['content'](_0x10159d['instant']('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x44edb9[_0x1425c3('0x3b5')]['length']}))['ariaLabel'](_0x1425c3('0x2803'))[_0x1425c3('0x116d')](_0x12205a)['ok']('OK')[_0x1425c3('0x2030')](_0x10159d['instant']('TOOLS.CANCEL'));_0x774d33[_0x1425c3('0x1e6d')](_0x23e468)[_0x1425c3('0xaa5')](function(){var _0x4ebe17=_0x1425c3;_0x44edb9[_0x4ebe17('0x3b5')][_0x4ebe17('0x15b5')](function(_0x2d1932){_0x7ac9d7(_0x2d1932);}),_0x44edb9[_0x4ebe17('0x3b5')]=[];});}function _0x9d8c03(){_0x44edb9['selectedDispositions']=[];}function _0x454459(){var _0x10b597=_0x17f846;_0x44edb9[_0x10b597('0x3b5')]=_0x44edb9['dispositions'][_0x10b597('0x580')];}var _0x4a9d50=!![],_0x5906e2=0x1;_0x3ce2eb['$watch'](_0x17f846('0x74c'),function(_0x457e3f,_0x4fc572){var _0x901d7b=_0x17f846;_0x4a9d50?_0x30487a(function(){_0x4a9d50=![];}):(!_0x4fc572&&(_0x5906e2=_0x44edb9[_0x901d7b('0x582')][_0x901d7b('0x41')]),_0x457e3f!==_0x4fc572&&(_0x44edb9[_0x901d7b('0x582')]['page']=0x1),!_0x457e3f&&(_0x44edb9[_0x901d7b('0x582')][_0x901d7b('0x41')]=_0x5906e2),_0x53d26a());});}const _0x228fef=_0x1f9358,_0x4808a1=_0x4fb511['p']+_0x1a8446('0x2654');_0x1cb56b['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate','license',_0x1a8446('0x143f'),'api',_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x2566'),'userProfileSection'];function _0x1cb56b(_0x46f066,_0x4207d9,_0x458284,_0x463076,_0x3aa4fb,_0x48e2e2,_0x3db145,_0x3c325c,_0xaffc39,_0xb9b800,_0x95828d,_0x29b2d3){var _0x23a70f=_0x1a8446,_0x184ff8=this;_0x184ff8[_0x23a70f('0x7fc')]=_0xb9b800['getCurrentUser'](),_0x184ff8['license']=_0x48e2e2,_0x184ff8[_0x23a70f('0x143f')]=_0x3db145,_0x184ff8['passwordPattern']=_0x184ff8[_0x23a70f('0x143f')][_0x23a70f('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x184ff8[_0x23a70f('0x18cc')]=_0x4207d9['protocol']()+'://'+_0x4207d9[_0x23a70f('0x160c')](),_0x184ff8[_0x23a70f('0x2566')]=_0x95828d||_0x46f066['params'][_0x23a70f('0x2566')]||{},_0x184ff8[_0x23a70f('0x1a50')]=_0x29b2d3&&_0x29b2d3[_0x23a70f('0xd15')]==0x1?_0x29b2d3[_0x23a70f('0x580')][0x0]:null,_0x184ff8[_0x23a70f('0xada')]=_0xb9b800['parseCrudPermissions'](_0x184ff8[_0x23a70f('0x1a50')]?_0x184ff8['userProfileSection'][_0x23a70f('0xada')]:null),_0x184ff8['hasModulePermissions']={},_0x184ff8[_0x23a70f('0xe5c')]=_0x46f066['params'][_0x23a70f('0x25c2')]||0x0,_0x184ff8[_0x23a70f('0x16a5')]=_0x4e422e,_0x184ff8[_0x23a70f('0xc10')]=_0xaffc39[_0x23a70f('0x3a1')],_0x184ff8[_0x23a70f('0x15f1')]=_0x55c758,_0x184ff8[_0x23a70f('0x43d')]=_0xd9ad71,_0xb9b800['hasRole'](_0x23a70f('0x178b'))?_0x3c325c['cmList'][_0x23a70f('0x2122')]({'fields':_0x23a70f('0x17fe'),'sort':_0x23a70f('0x25d6')})[_0x23a70f('0x1dc2')][_0x23a70f('0xaa5')](function(_0x2e3aba){var _0x546a7e=_0x23a70f;_0x184ff8[_0x546a7e('0x1126')]=_0x2e3aba['rows']||[];})[_0x23a70f('0x253d')](function(_0x5ed593){var _0x4e7e1e=_0x23a70f;_0xaffc39[_0x4e7e1e('0x187f')]({'title':_0x5ed593['status']?_0x4e7e1e('0x16c2')+_0x5ed593[_0x4e7e1e('0x2fa')]+_0x4e7e1e('0x169e')+_0x5ed593[_0x4e7e1e('0x24df')]:_0x4e7e1e('0x1adf'),'msg':_0x5ed593[_0x4e7e1e('0x10fd')]?JSON[_0x4e7e1e('0xa48')](_0x5ed593[_0x4e7e1e('0x10fd')]):_0x5ed593['toString']()});}):_0x3c325c[_0x23a70f('0x26b4')][_0x23a70f('0x2122')]({'fields':_0x23a70f('0x17fe'),'sort':_0x23a70f('0x25d6')})[_0x23a70f('0x1dc2')][_0x23a70f('0xaa5')](function(_0x5d63f6){var _0x18487b=_0x23a70f;_0x184ff8[_0x18487b('0x1126')]=_0x5d63f6[_0x18487b('0x580')]||[];})[_0x23a70f('0xaa5')](function(){var _0x5ecb9c=_0x23a70f;return _0x3c325c['userProfileSection'][_0x5ecb9c('0x2122')]({'userProfileId':_0x184ff8['currentUser'][_0x5ecb9c('0x2168')],'sectionId':0x12d})['$promise'];})[_0x23a70f('0xaa5')](function(_0x2d17ef){var _0x35491c=_0x23a70f,_0x4cc416=_0x2d17ef&&_0x2d17ef[_0x35491c('0x580')]?_0x2d17ef[_0x35491c('0x580')][0x0]:null;if(!_0x4cc416){var _0x4eb8e6=[],_0x361e36=null;_0x184ff8[_0x35491c('0x2566')]&&(_0x361e36=_0x51538b()[_0x35491c('0xe9e')](_0x184ff8[_0x35491c('0x1126')],{'id':Number(_0x184ff8['openchannelAccount'][_0x35491c('0xee0')])}));for(var _0x442783=0x0;_0x442783<_0x184ff8[_0x35491c('0x1126')]['length'];_0x442783++){_0x361e36&&_0x184ff8[_0x35491c('0x1126')][_0x442783]['id']===_0x361e36['id']&&(_0x184ff8[_0x35491c('0x1126')][_0x442783][_0x35491c('0x12eb')]=![],_0x4eb8e6[_0x35491c('0x1599')](_0x184ff8['lists'][_0x442783]));}_0x184ff8[_0x35491c('0x1126')]=_0x4eb8e6;}else{if(!_0x4cc416['autoAssociation'])return _0x3c325c[_0x35491c('0x249a')][_0x35491c('0x2122')]({'sectionId':_0x4cc416['id']})[_0x35491c('0x1dc2')][_0x35491c('0xaa5')](function(_0x4221df){var _0x1f0e5e=_0x35491c,_0x5e538a=_0x51538b()[_0x1f0e5e('0x1246')](_0x4221df[_0x1f0e5e('0x580')],function(_0x216aad){var _0x30b492=_0x1f0e5e;return _0x51538b()['find'](_0x184ff8[_0x30b492('0x1126')],{'id':_0x216aad[_0x30b492('0xbcd')]});}),_0x500078=null;_0x184ff8[_0x1f0e5e('0x2566')]&&(_0x500078=_0x51538b()[_0x1f0e5e('0xe9e')](_0x184ff8['lists'],{'id':Number(_0x184ff8[_0x1f0e5e('0x2566')][_0x1f0e5e('0xee0')])}));if(_0x500078&&!_0x51538b()['some'](_0x5e538a,['id',_0x500078['id']])){var _0x98280c=_0x51538b()[_0x1f0e5e('0xe9e')](_0x184ff8[_0x1f0e5e('0x1126')],{'id':_0x500078['id']});_0x98280c[_0x1f0e5e('0x12eb')]=![],_0x5e538a[_0x1f0e5e('0x1599')](_0x98280c);}_0x184ff8[_0x1f0e5e('0x1126')]=_0x5e538a;});}})[_0x23a70f('0x253d')](function(_0x2149eb){var _0x35691f=_0x23a70f;_0xaffc39[_0x35691f('0x187f')]({'title':_0x2149eb[_0x35691f('0x2fa')]?_0x35691f('0x16c2')+_0x2149eb['status']+_0x35691f('0x169e')+_0x2149eb['statusText']:_0x35691f('0x177f'),'msg':_0x2149eb[_0x35691f('0x10fd')]?JSON[_0x35691f('0xa48')](_0x2149eb['data']):_0x2149eb[_0x35691f('0x684')]()});}),_0x3c325c['cmContact'][_0x23a70f('0x3e7')]({'id':_0x184ff8['openchannelAccount'][_0x23a70f('0xee0')]})['$promise'][_0x23a70f('0xaa5')](function(_0x38b15c){var _0x4c850a=_0x23a70f;_0x184ff8[_0x4c850a('0x13a')]=[],_0x38b15c=_0x51538b()[_0x4c850a('0x3c5')](_0x38b15c[_0x4c850a('0x256a')]());var _0x54e790=['id',_0x4c850a('0x24a1'),_0x4c850a('0x19f3'),_0x4c850a('0x250'),_0x4c850a('0x300'),_0x4c850a('0xee0'),_0x4c850a('0x1dc7')];for(var _0x3f87bb=0x0;_0x3f87bb<_0x38b15c[_0x4c850a('0x2587')];_0x3f87bb++){!_0x51538b()[_0x4c850a('0x13d6')](_0x54e790,_0x38b15c[_0x3f87bb]['columnName'])&&_0x184ff8[_0x4c850a('0x13a')][_0x4c850a('0x1599')](_0x38b15c[_0x3f87bb]);}})['catch'](function(_0x445d45){var _0x1b823f=_0x23a70f;_0xaffc39[_0x1b823f('0x187f')]({'title':_0x445d45[_0x1b823f('0x2fa')]?_0x1b823f('0x16c2')+_0x445d45[_0x1b823f('0x2fa')]+_0x1b823f('0x169e')+_0x445d45['statusText']:_0x1b823f('0x5eb'),'msg':_0x445d45[_0x1b823f('0x10fd')]?JSON[_0x1b823f('0xa48')](_0x445d45[_0x1b823f('0x10fd')]):_0x445d45[_0x1b823f('0x684')]()});}),_0xb9b800['hasRole'](_0x23a70f('0x178b'))?_0x3c325c[_0x23a70f('0x167c')][_0x23a70f('0x2122')]({'fields':'name,id','sort':_0x23a70f('0x25d6'),'nolimit':_0x23a70f('0x1c5c')})[_0x23a70f('0x1dc2')][_0x23a70f('0xaa5')](function(_0x5be704){var _0x306362=_0x23a70f;_0x184ff8[_0x306362('0x2457')]=_0x5be704[_0x306362('0x580')]||[];})[_0x23a70f('0x253d')](function(_0x1637b1){var _0x156a7a=_0x23a70f;_0xaffc39['error']({'title':_0x1637b1[_0x156a7a('0x2fa')]?'API:'+_0x1637b1['status']+_0x156a7a('0x169e')+_0x1637b1['statusText']:_0x156a7a('0xc8'),'msg':_0x1637b1[_0x156a7a('0x10fd')]?JSON[_0x156a7a('0xa48')](_0x1637b1[_0x156a7a('0x10fd')]):_0x1637b1[_0x156a7a('0x684')]()});}):_0x3c325c['pause'][_0x23a70f('0x2122')]({'fields':'name,id','sort':_0x23a70f('0x25d6'),'nolimit':_0x23a70f('0x1c5c')})['$promise']['then'](function(_0x7f8cb0){var _0x5b648a=_0x23a70f;_0x184ff8[_0x5b648a('0x2457')]=_0x7f8cb0[_0x5b648a('0x580')]||[];})['then'](function(){var _0x178292=_0x23a70f;return _0x3c325c[_0x178292('0x1a50')]['get']({'userProfileId':_0x184ff8[_0x178292('0x7fc')][_0x178292('0x2168')],'sectionId':0x3ed})['$promise'];})[_0x23a70f('0xaa5')](function(_0x3ddcce){var _0x11526b=_0x23a70f,_0x38001=_0x3ddcce&&_0x3ddcce[_0x11526b('0x580')]?_0x3ddcce[_0x11526b('0x580')][0x0]:null;if(!_0x38001)_0x184ff8['pauses']=[];else{if(!_0x38001[_0x11526b('0x26cc')])return _0x3c325c[_0x11526b('0x249a')][_0x11526b('0x2122')]({'sectionId':_0x38001['id']})['$promise'][_0x11526b('0xaa5')](function(_0x1f2500){var _0x307859=_0x11526b,_0x367f3f=_0x51538b()[_0x307859('0x1246')](_0x1f2500[_0x307859('0x580')],function(_0x315172){var _0x175287=_0x307859;return _0x51538b()[_0x175287('0xe9e')](_0x184ff8[_0x175287('0x2457')],{'id':_0x315172['resourceId']});});_0x184ff8[_0x307859('0x2457')][_0x307859('0x15b5')](function(_0x34835b){var _0x3ae610=_0x307859;!_0x51538b()[_0x3ae610('0x2c2')](_0x367f3f,['id',_0x34835b['id']])&&(_0x34835b[_0x3ae610('0x12eb')]=![]),_0x367f3f[_0x3ae610('0x1599')](_0x34835b);}),_0x184ff8[_0x307859('0x2457')]=_0x367f3f;});}})[_0x23a70f('0x253d')](function(_0x3227f4){var _0x20ffff=_0x23a70f;_0xaffc39['error']({'title':_0x3227f4[_0x20ffff('0x2fa')]?'API:'+_0x3227f4[_0x20ffff('0x2fa')]+_0x20ffff('0x169e')+_0x3227f4[_0x20ffff('0x24df')]:_0x20ffff('0xe71'),'msg':_0x3227f4['data']?JSON[_0x20ffff('0xa48')](_0x3227f4['data']):_0x3227f4[_0x20ffff('0x684')]()});});function _0x4e422e(_0x536b07,_0x394255){var _0x4f34e9=_0x23a70f;_0x458284[_0x4f34e9('0x1e6d')]({'controller':_0x4f34e9('0x2041'),'controllerAs':'vm','templateUrl':_0x4808a1,'parent':angular[_0x4f34e9('0x1aa8')](_0x463076[_0x4f34e9('0x54c')]),'targetEvent':_0x394255,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x536b07,'openchannelAccounts':_0x184ff8[_0x4f34e9('0x23f0')]?_0x184ff8[_0x4f34e9('0x23f0')][_0x4f34e9('0x580')]:[],'crudPermissions':_0x184ff8['crudPermissions'],'realtime':![]}});}function _0x55c758(){var _0x1c497e=_0x23a70f;_0x46f066['go'](_0x1c497e('0x1f2a'),{},{'reload':_0x1c497e('0x1f2a')});}function _0xd9ad71(){var _0x35262f=_0x23a70f;_0x3c325c['openchannelAccount'][_0x35262f('0x264e')]({'id':_0x184ff8['openchannelAccount']['id']},_0x184ff8[_0x35262f('0x2566')])[_0x35262f('0x1dc2')][_0x35262f('0xaa5')](function(){var _0x11780d=_0x35262f;_0xaffc39[_0x11780d('0xe10')]({'title':_0x11780d('0x744'),'msg':_0x184ff8[_0x11780d('0x2566')][_0x11780d('0x25d6')]?_0x184ff8[_0x11780d('0x2566')]['name']+'\x20has\x20been\x20updated!':''});})[_0x35262f('0x253d')](function(_0x597aa8){var _0x4ddea5=_0x35262f;_0xaffc39['error']({'title':_0x597aa8[_0x4ddea5('0x2fa')]?_0x4ddea5('0x16c2')+_0x597aa8[_0x4ddea5('0x2fa')]+'\x20-\x20'+_0x597aa8[_0x4ddea5('0x24df')]:_0x4ddea5('0x85d'),'msg':_0x597aa8['data']?JSON[_0x4ddea5('0xa48')](_0x597aa8[_0x4ddea5('0x10fd')]):_0x597aa8[_0x4ddea5('0x684')]()});});}}const _0x108ecf=_0x1cb56b,_0x3a032c=_0x4fb511['p']+_0x1a8446('0x12b4');_0x5f10d0[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'openchannelAccounts',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x5f10d0(_0x1c9063,_0x1d1990,_0x3bef45,_0x461a08,_0x5d9862,_0x480876,_0x257959,_0x4ae8cf,_0x1b5203,_0x47b784,_0x356b03,_0x4ed872,_0x2a4021,_0x231e22,_0x1a119e,_0x3a6d6e,_0x2c2e94){var _0x14cc23=_0x1a8446,_0x5e955f=this;_0x5e955f[_0x14cc23('0x1202')]=_0x3a6d6e,_0x5e955f[_0x14cc23('0x143f')]=_0x2c2e94,_0x5e955f[_0x14cc23('0x7fc')]=_0x1a119e[_0x14cc23('0xacc')](),_0x5e955f[_0x14cc23('0x23f0')]=_0x1b5203||{'count':0x0,'rows':[]},_0x5e955f[_0x14cc23('0x1e97')]=_0x47b784,_0x5e955f[_0x14cc23('0x1a50')]=_0x356b03&&_0x356b03['count']==0x1?_0x356b03[_0x14cc23('0x580')][0x0]:null,_0x5e955f[_0x14cc23('0xada')]=_0x1a119e[_0x14cc23('0xffd')](_0x5e955f[_0x14cc23('0x1a50')]?_0x5e955f['userProfileSection']['crudPermissions']:null),_0x5e955f[_0x14cc23('0x12b6')]=_0x14cc23('0x23f0'),_0x5e955f[_0x14cc23('0x164')]='',_0x5e955f[_0x14cc23('0x8cc')]=null,_0x5e955f[_0x14cc23('0x765')]=[],_0x5e955f['query']={'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x14cc23('0xd82'),'limit':0xa,'page':0x1},_0x5e955f[_0x14cc23('0x1927')]=_0x37d226,_0x5e955f['interactionsgoto']=_0x2c2fed,_0x5e955f[_0x14cc23('0x16a5')]=_0xaaff6b,_0x5e955f[_0x14cc23('0x271')]=_0xe60cbd,_0x5e955f[_0x14cc23('0xe10')]=_0x2156bc,_0x5e955f[_0x14cc23('0x1a97')]=_0x2d09e6,_0x5e955f[_0x14cc23('0x1cb0')]=_0x1086f4,_0x5e955f['deleteOpenchannelAccount']=_0x1d6cb4,_0x5e955f[_0x14cc23('0x126f')]=_0x55e38d,_0x5e955f[_0x14cc23('0x24fc')]=_0x21d4d1,_0x5e955f['deselectOpenchannelAccounts']=_0x2b35ab,_0x5e955f[_0x14cc23('0xfc2')]=_0x4e629c,_0x1a119e[_0x14cc23('0x26e8')](_0x14cc23('0x178b'))?_0x4ed872[_0x14cc23('0x26b4')][_0x14cc23('0x2122')]({'fields':_0x14cc23('0x17fe'),'sort':'name'})['$promise'][_0x14cc23('0xaa5')](function(_0x1c391e){var _0x460a84=_0x14cc23;_0x5e955f[_0x460a84('0x1126')]=_0x1c391e['rows']||[];})[_0x14cc23('0x253d')](function(_0x381ad8){var _0x45a544=_0x14cc23;_0x231e22[_0x45a544('0x187f')]({'title':_0x381ad8['status']?_0x45a544('0x16c2')+_0x381ad8[_0x45a544('0x2fa')]+'\x20-\x20'+_0x381ad8['statusText']:'SYSTEM:GET_LISTS','msg':_0x381ad8['data']?JSON[_0x45a544('0xa48')](_0x381ad8[_0x45a544('0x10fd')]):_0x381ad8[_0x45a544('0x684')]()});}):_0x4ed872[_0x14cc23('0x26b4')][_0x14cc23('0x2122')]({'fields':_0x14cc23('0x17fe'),'sort':_0x14cc23('0x25d6')})[_0x14cc23('0x1dc2')]['then'](function(_0x4937a1){var _0x324ab9=_0x14cc23;_0x5e955f[_0x324ab9('0x1126')]=_0x4937a1['rows']||[];})[_0x14cc23('0xaa5')](function(){var _0x593f58=_0x14cc23;return _0x4ed872['userProfileSection'][_0x593f58('0x2122')]({'userProfileId':_0x5e955f[_0x593f58('0x7fc')][_0x593f58('0x2168')],'sectionId':0x12d})[_0x593f58('0x1dc2')];})[_0x14cc23('0xaa5')](function(_0x284062){var _0x542007=_0x14cc23,_0x4ce2d4=_0x284062&&_0x284062[_0x542007('0x580')]?_0x284062[_0x542007('0x580')][0x0]:null;if(!_0x4ce2d4){var _0x49f603=[],_0x48ccd2=null;_0x5e955f[_0x542007('0x2566')]&&(_0x48ccd2=_0x51538b()[_0x542007('0xe9e')](_0x5e955f['lists'],{'id':Number(_0x5e955f[_0x542007('0x2566')][_0x542007('0xee0')])}));for(var _0x55d484=0x0;_0x55d484<_0x5e955f[_0x542007('0x1126')][_0x542007('0x2587')];_0x55d484++){_0x48ccd2&&_0x5e955f[_0x542007('0x1126')][_0x55d484]['id']===_0x48ccd2['id']&&(_0x5e955f['lists'][_0x55d484][_0x542007('0x12eb')]=![],_0x49f603['push'](_0x5e955f['lists'][_0x55d484]));}_0x5e955f[_0x542007('0x1126')]=_0x49f603;}else{if(!_0x4ce2d4[_0x542007('0x26cc')])return _0x4ed872[_0x542007('0x249a')][_0x542007('0x2122')]({'sectionId':_0x4ce2d4['id']})[_0x542007('0x1dc2')]['then'](function(_0xcd0cc3){var _0x3fa609=_0x542007,_0x14966c=_0x51538b()[_0x3fa609('0x1246')](_0xcd0cc3['rows'],function(_0x2063b9){var _0x2a249d=_0x3fa609;return _0x51538b()[_0x2a249d('0xe9e')](_0x5e955f[_0x2a249d('0x1126')],{'id':_0x2063b9['resourceId']});}),_0x3a156d=null;_0x5e955f[_0x3fa609('0x2566')]&&(_0x3a156d=_0x51538b()[_0x3fa609('0xe9e')](_0x5e955f[_0x3fa609('0x1126')],{'id':Number(_0x5e955f[_0x3fa609('0x2566')][_0x3fa609('0xee0')])}));if(_0x3a156d&&!_0x51538b()[_0x3fa609('0x2c2')](_0x14966c,['id',_0x3a156d['id']])){var _0x190e99=_0x51538b()[_0x3fa609('0xe9e')](_0x5e955f[_0x3fa609('0x1126')],{'id':_0x3a156d['id']});_0x190e99[_0x3fa609('0x12eb')]=![],_0x14966c[_0x3fa609('0x1599')](_0x190e99);}_0x5e955f[_0x3fa609('0x1126')]=_0x14966c;});}})[_0x14cc23('0x253d')](function(_0x32e48e){var _0x54e448=_0x14cc23;_0x231e22[_0x54e448('0x187f')]({'title':_0x32e48e['status']?_0x54e448('0x16c2')+_0x32e48e[_0x54e448('0x2fa')]+_0x54e448('0x169e')+_0x32e48e[_0x54e448('0x24df')]:_0x54e448('0x177f'),'msg':_0x32e48e[_0x54e448('0x10fd')]?JSON[_0x54e448('0xa48')](_0x32e48e[_0x54e448('0x10fd')]):_0x32e48e['toString']()});});function _0x37d226(_0x29fcde){var _0x179837=_0x14cc23;_0x3bef45['go'](_0x179837('0x1ef8'),{'id':_0x29fcde['id'],'openchannelAccount':_0x29fcde,'crudPermissions':_0x5e955f['crudPermissions']});}function _0x2c2fed(_0x45d271){_0x3bef45['go']('app.openchannel.openchannelAccounts.edit',{'id':_0x45d271['id'],'tab':0x5});}function _0xaaff6b(_0x2e4e4e,_0x108d3d){var _0x3e4759=_0x14cc23;_0x5d9862[_0x3e4759('0x1e6d')]({'controller':_0x3e4759('0x2041'),'controllerAs':'vm','templateUrl':_0x4808a1,'parent':angular[_0x3e4759('0x1aa8')](_0x480876[_0x3e4759('0x54c')]),'targetEvent':_0x108d3d,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x2e4e4e,'openchannelAccounts':_0x5e955f['openchannelAccounts']?_0x5e955f[_0x3e4759('0x23f0')][_0x3e4759('0x580')]:[],'crudPermissions':_0x5e955f['crudPermissions'],'realtime':![]}});}function _0xe60cbd(_0x241f5f,_0x30ab63){var _0x2a8fd7=_0x14cc23,_0x2afdf3=_0x5d9862[_0x2a8fd7('0x281e')]()[_0x2a8fd7('0x110a')](_0x2a8fd7('0x88d')+_0x51538b()[_0x2a8fd7('0x196a')](_0x2a8fd7('0x2566'))+'?')['htmlContent'](''+(_0x241f5f[_0x2a8fd7('0x25d6')]||_0x2a8fd7('0x2566'))+_0x2a8fd7('0x697')+_0x2a8fd7('0x210d'))[_0x2a8fd7('0x5b5')](_0x2a8fd7('0x92c'))[_0x2a8fd7('0x116d')](_0x30ab63)['ok']('OK')[_0x2a8fd7('0x2030')](_0x2a8fd7('0x2410'));_0x5d9862[_0x2a8fd7('0x1e6d')](_0x2afdf3)[_0x2a8fd7('0xaa5')](function(){_0x1d6cb4(_0x241f5f);},function(){var _0x4294c8=_0x2a8fd7;console['log'](_0x4294c8('0x2410'));});}var _0xaf7d=!![],_0x26f9ce=0x1;_0x1c9063[_0x14cc23('0x1ccf')]('vm.query.filter',function(_0x2e1246,_0x1a0416){var _0x3f6604=_0x14cc23;_0xaf7d?_0x257959(function(){_0xaf7d=![];}):(!_0x1a0416&&(_0x26f9ce=_0x5e955f[_0x3f6604('0x582')][_0x3f6604('0x41')]),_0x2e1246!==_0x1a0416&&(_0x5e955f[_0x3f6604('0x582')][_0x3f6604('0x41')]=0x1),!_0x2e1246&&(_0x5e955f[_0x3f6604('0x582')][_0x3f6604('0x41')]=_0x26f9ce),_0x5e955f[_0x3f6604('0x1a97')]());});function _0x2156bc(_0x36e23e){var _0x5815d5=_0x14cc23;_0x5e955f[_0x5815d5('0x23f0')]=_0x36e23e||{'count':0x0,'rows':[]};}function _0x2d09e6(){var _0x4b71c3=_0x14cc23;_0x5e955f['query'][_0x4b71c3('0x8b1')]=(_0x5e955f[_0x4b71c3('0x582')][_0x4b71c3('0x41')]-0x1)*_0x5e955f[_0x4b71c3('0x582')][_0x4b71c3('0xf4d')],_0x1a119e[_0x4b71c3('0x26e8')]('admin')?_0x5e955f[_0x4b71c3('0x159a')]=_0x4ed872[_0x4b71c3('0x2566')][_0x4b71c3('0x2122')](_0x5e955f[_0x4b71c3('0x582')],_0x2156bc)[_0x4b71c3('0x1dc2')]:(_0x5e955f[_0x4b71c3('0x582')]['id']=_0x5e955f['userProfile']['id'],_0x5e955f[_0x4b71c3('0x582')][_0x4b71c3('0x224d')]='OpenchannelAccounts',_0x5e955f[_0x4b71c3('0x159a')]=_0x4ed872[_0x4b71c3('0x1e97')][_0x4b71c3('0x1cf1')](_0x5e955f[_0x4b71c3('0x582')],_0x2156bc)[_0x4b71c3('0x1dc2')]);}function _0x1086f4(_0x1e58af,_0x61504e){var _0x38c1dd=_0x14cc23;_0x5d9862[_0x38c1dd('0x1e6d')]({'controller':_0x38c1dd('0x7b0'),'controllerAs':'vm','templateUrl':_0x3a032c,'parent':angular[_0x38c1dd('0x1aa8')](_0x480876[_0x38c1dd('0x54c')]),'targetEvent':_0x1e58af,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x61504e,'openchannelAccounts':_0x5e955f['openchannelAccounts'][_0x38c1dd('0x580')],'license':_0x5e955f[_0x38c1dd('0x1202')],'setting':_0x5e955f[_0x38c1dd('0x143f')],'crudPermissions':_0x5e955f[_0x38c1dd('0xada')]}});}function _0x1d6cb4(_0x3aee62){var _0x51b202=_0x14cc23;_0x4ed872[_0x51b202('0x2566')]['delete']({'id':_0x3aee62['id']})[_0x51b202('0x1dc2')][_0x51b202('0xaa5')](function(){var _0xe4fe1c=_0x51b202;_0x51538b()[_0xe4fe1c('0xf6d')](_0x5e955f[_0xe4fe1c('0x23f0')][_0xe4fe1c('0x580')],{'id':_0x3aee62['id']}),_0x5e955f[_0xe4fe1c('0x23f0')][_0xe4fe1c('0xd15')]-=0x1,!_0x5e955f[_0xe4fe1c('0x23f0')][_0xe4fe1c('0x580')]['length']&&_0x5e955f['getOpenchannelAccounts'](),_0x231e22['success']({'title':_0x51538b()[_0xe4fe1c('0x196a')](_0xe4fe1c('0x415'))+_0xe4fe1c('0x8bb'),'msg':_0x3aee62['name']?_0x3aee62[_0xe4fe1c('0x25d6')]+_0xe4fe1c('0xcd9'):''});})['catch'](function(_0x46e1b5){var _0x55b483=_0x51b202;if(_0x46e1b5[_0x55b483('0x10fd')]&&_0x46e1b5[_0x55b483('0x10fd')][_0x55b483('0x4c6')]&&_0x46e1b5[_0x55b483('0x10fd')][_0x55b483('0x4c6')][_0x55b483('0x2587')]){_0x5e955f['errors']=_0x46e1b5[_0x55b483('0x10fd')]['errors']||[{'message':_0x46e1b5['toString'](),'type':_0x55b483('0x26c2')}];for(var _0x52184b=0x0;_0x52184b<_0x46e1b5[_0x55b483('0x10fd')][_0x55b483('0x4c6')][_0x55b483('0x2587')];_0x52184b++){_0x231e22[_0x55b483('0x187f')]({'title':_0x46e1b5[_0x55b483('0x10fd')][_0x55b483('0x4c6')][_0x52184b][_0x55b483('0x6c8')],'msg':_0x46e1b5[_0x55b483('0x10fd')]['errors'][_0x52184b][_0x55b483('0x1402')]});}}else _0x231e22['error']({'title':_0x46e1b5[_0x55b483('0x2fa')]?_0x55b483('0x16c2')+_0x46e1b5[_0x55b483('0x2fa')]+_0x55b483('0x169e')+_0x46e1b5[_0x55b483('0x24df')]:'SYSTEM:DELETEopenchannelAccount','msg':_0x46e1b5[_0x55b483('0x10fd')]?JSON[_0x55b483('0xa48')](_0x46e1b5['data']['message']):_0x46e1b5[_0x55b483('0x1402')]||_0x46e1b5['toString']()});});}function _0x55e38d(){var _0xe78a9d=angular['copy'](_0x5e955f['selectedOpenchannelAccounts']);return _0x5e955f['selectedOpenchannelAccounts']=[],_0xe78a9d;}function _0x21d4d1(_0x5c7e4c){var _0x3d8524=_0x14cc23,_0x346a52=_0x5d9862[_0x3d8524('0x281e')]()[_0x3d8524('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelAccounts?')[_0x3d8524('0x102e')](_0x3d8524('0x389')+_0x5e955f['selectedOpenchannelAccounts'][_0x3d8524('0x2587')]+_0x3d8524('0x1443')+_0x3d8524('0x210d'))['ariaLabel']('delete\x20OpenchannelAccounts')[_0x3d8524('0x116d')](_0x5c7e4c)['ok']('OK')[_0x3d8524('0x2030')](_0x3d8524('0x2410'));_0x5d9862[_0x3d8524('0x1e6d')](_0x346a52)['then'](function(){var _0x40f531=_0x3d8524;_0x5e955f[_0x40f531('0x765')][_0x40f531('0x15b5')](function(_0x2a116d){_0x1d6cb4(_0x2a116d);}),_0x5e955f[_0x40f531('0x765')]=[];});}function _0x2b35ab(){_0x5e955f['selectedOpenchannelAccounts']=[];}function _0x4e629c(){_0x5e955f['selectedOpenchannelAccounts']=_0x5e955f['openchannelAccounts']['rows'];}}const _0x3ed16b=_0x5f10d0;_0x3c94d0[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state','$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x1901'),_0x1a8446('0x21b2'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x3c94d0(_0x59c70c,_0x4c7ecb,_0x2bed9f,_0x5c098f,_0x3df1cf,_0x12444e,_0x2f2b22,_0x34dad4,_0x1eedaa,_0x235f8f,_0x7108c4,_0x4e0d7e,_0x1dc03e,_0x377b44){var _0xb6bc56=_0x1a8446,_0x20c484=this;_0x20c484[_0xb6bc56('0x7fc')]=_0x7108c4[_0xb6bc56('0xacc')](),_0x20c484['errors']=[],_0x20c484[_0xb6bc56('0x143f')]=_0x1dc03e,_0x20c484[_0xb6bc56('0x1202')]=_0x4e0d7e,_0x20c484['crudPermissions']=_0x377b44,_0x20c484[_0xb6bc56('0x9f0')]={},_0x20c484['passwordPattern']=_0x20c484[_0xb6bc56('0x143f')]&&_0x20c484[_0xb6bc56('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20c484[_0xb6bc56('0x110a')]=_0xb6bc56('0xa7e'),_0x20c484[_0xb6bc56('0x21b2')]=angular[_0xb6bc56('0x20a')](_0x1eedaa),_0x20c484[_0xb6bc56('0x1901')]=_0x34dad4,_0x20c484[_0xb6bc56('0x1636')]=![];!_0x20c484[_0xb6bc56('0x21b2')]&&(_0x20c484['openchannelQueue']={'strategy':_0xb6bc56('0x258'),'timeout':0xa},_0x20c484[_0xb6bc56('0x110a')]='OPENCHANNEL.NEW_OPENCHANNELQUEUE',_0x20c484['newOpenchannelQueue']=!![]);_0x20c484[_0xb6bc56('0x1479')]=_0x2cce53,_0x20c484[_0xb6bc56('0x6d3')]=_0x5d2673,_0x20c484[_0xb6bc56('0x1631')]=_0x314ed9,_0x20c484[_0xb6bc56('0xc09')]=_0x16977e,_0x20c484[_0xb6bc56('0x2023')]=_0x57ce53;function _0x2cce53(){var _0x10b9b3=_0xb6bc56;_0x20c484[_0x10b9b3('0x4c6')]=[],_0x235f8f[_0x10b9b3('0x21b2')][_0x10b9b3('0x242b')](_0x20c484[_0x10b9b3('0x21b2')])['$promise'][_0x10b9b3('0xaa5')](function(_0x1a62e1){var _0x3a27ad=_0x10b9b3;_0x20c484[_0x3a27ad('0x1901')][_0x3a27ad('0x6ee')](_0x1a62e1[_0x3a27ad('0x256a')]()),_0x2f2b22['success']({'title':'OpenchannelQueue\x20properly\x20created','msg':_0x20c484[_0x3a27ad('0x21b2')]['name']?_0x20c484['openchannelQueue'][_0x3a27ad('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x57ce53(_0x1a62e1);})[_0x10b9b3('0x253d')](function(_0x3f4d38){var _0x1f9a03=_0x10b9b3;if(_0x3f4d38[_0x1f9a03('0x10fd')]&&_0x3f4d38[_0x1f9a03('0x10fd')][_0x1f9a03('0x4c6')]&&_0x3f4d38['data'][_0x1f9a03('0x4c6')][_0x1f9a03('0x2587')]){_0x20c484[_0x1f9a03('0x4c6')]=_0x3f4d38[_0x1f9a03('0x10fd')][_0x1f9a03('0x4c6')]||[{'message':_0x3f4d38['toString'](),'type':_0x1f9a03('0x77d')}];for(var _0x19ef89=0x0;_0x19ef89<_0x3f4d38['data'][_0x1f9a03('0x4c6')][_0x1f9a03('0x2587')];_0x19ef89+=0x1){_0x2f2b22[_0x1f9a03('0x187f')]({'title':_0x3f4d38['data'][_0x1f9a03('0x4c6')][_0x19ef89]['type'],'msg':_0x3f4d38['data'][_0x1f9a03('0x4c6')][_0x19ef89][_0x1f9a03('0x1402')]});}}else _0x2f2b22[_0x1f9a03('0x187f')]({'title':_0x3f4d38['status']?_0x1f9a03('0x16c2')+_0x3f4d38[_0x1f9a03('0x2fa')]+_0x1f9a03('0x169e')+_0x3f4d38['statusText']:'api.openchannelQueue.save','msg':_0x3f4d38['data']?JSON[_0x1f9a03('0xa48')](_0x3f4d38[_0x1f9a03('0x10fd')]['message']):_0x3f4d38[_0x1f9a03('0x684')]()});});}function _0x5d2673(){var _0x191ead=_0xb6bc56;_0x20c484[_0x191ead('0x4c6')]=[],_0x235f8f[_0x191ead('0x21b2')][_0x191ead('0x264e')]({'id':_0x20c484[_0x191ead('0x21b2')]['id']},_0x20c484[_0x191ead('0x21b2')])[_0x191ead('0x1dc2')][_0x191ead('0xaa5')](function(_0x5b5b9f){var _0x4a762f=_0x191ead,_0x38dfb7=_0x51538b()[_0x4a762f('0xe9e')](_0x20c484['openchannelQueues'],{'id':_0x5b5b9f['id']});_0x38dfb7&&_0x51538b()[_0x4a762f('0x283c')](_0x38dfb7,_0x51538b()[_0x4a762f('0x104e')](_0x5b5b9f[_0x4a762f('0x256a')](),_0x51538b()[_0x4a762f('0x9f2')](_0x38dfb7))),_0x2f2b22[_0x4a762f('0xe10')]({'title':_0x4a762f('0x1e24'),'msg':_0x20c484[_0x4a762f('0x21b2')][_0x4a762f('0x25d6')]?_0x20c484[_0x4a762f('0x21b2')][_0x4a762f('0x25d6')]+_0x4a762f('0x20bf'):''}),_0x57ce53(_0x5b5b9f);})[_0x191ead('0x253d')](function(_0x371216){var _0x1f40b3=_0x191ead;if(_0x371216[_0x1f40b3('0x10fd')]&&_0x371216[_0x1f40b3('0x10fd')][_0x1f40b3('0x4c6')]&&_0x371216[_0x1f40b3('0x10fd')][_0x1f40b3('0x4c6')]['length']){_0x20c484['errors']=_0x371216[_0x1f40b3('0x10fd')][_0x1f40b3('0x4c6')]||[{'message':_0x371216['toString'](),'type':_0x1f40b3('0x153d')}];for(var _0x214268=0x0;_0x214268<_0x371216[_0x1f40b3('0x10fd')][_0x1f40b3('0x4c6')][_0x1f40b3('0x2587')];_0x214268++){_0x2f2b22[_0x1f40b3('0x187f')]({'title':_0x371216['data'][_0x1f40b3('0x4c6')][_0x214268]['type'],'msg':_0x371216[_0x1f40b3('0x10fd')][_0x1f40b3('0x4c6')][_0x214268]['message']});}}else _0x2f2b22[_0x1f40b3('0x187f')]({'title':_0x371216[_0x1f40b3('0x2fa')]?_0x1f40b3('0x16c2')+_0x371216['status']+_0x1f40b3('0x169e')+_0x371216[_0x1f40b3('0x24df')]:'api.openchannelQueue.update','msg':_0x371216['data']?JSON[_0x1f40b3('0xa48')](_0x371216[_0x1f40b3('0x10fd')]['message']):_0x371216['toString']()});});}function _0x314ed9(_0x124ee7){var _0x3a1aab=_0xb6bc56;_0x20c484[_0x3a1aab('0x4c6')]=[];var _0x26a0db=_0x5c098f[_0x3a1aab('0x281e')]()[_0x3a1aab('0x110a')]('Are\x20you\x20sure?')[_0x3a1aab('0x15af')](_0x3a1aab('0x1f3d'))[_0x3a1aab('0x5b5')](_0x3a1aab('0x2324'))['ok'](_0x3a1aab('0x1e76'))[_0x3a1aab('0x2030')](_0x3a1aab('0x9c6'))[_0x3a1aab('0x116d')](_0x124ee7);_0x5c098f[_0x3a1aab('0x1e6d')](_0x26a0db)[_0x3a1aab('0xaa5')](function(){var _0x2dad58=_0x3a1aab;_0x235f8f['openchannelQueue']['delete']({'id':_0x20c484['openchannelQueue']['id']})[_0x2dad58('0x1dc2')][_0x2dad58('0xaa5')](function(){var _0x354282=_0x2dad58;_0x51538b()[_0x354282('0xf6d')](_0x20c484[_0x354282('0x1901')],{'id':_0x20c484['openchannelQueue']['id']}),_0x2f2b22[_0x354282('0xe10')]({'title':_0x354282('0x12e1'),'msg':(_0x20c484[_0x354282('0x21b2')]['name']||_0x354282('0x21b2'))+_0x354282('0xcd9')}),_0x57ce53(_0x20c484[_0x354282('0x21b2')]);})[_0x2dad58('0x253d')](function(_0xb4b24c){var _0x12f4b6=_0x2dad58;if(_0xb4b24c[_0x12f4b6('0x10fd')]&&_0xb4b24c['data'][_0x12f4b6('0x4c6')]&&_0xb4b24c['data']['errors'][_0x12f4b6('0x2587')]){_0x20c484['errors']=_0xb4b24c[_0x12f4b6('0x10fd')][_0x12f4b6('0x4c6')]||[{'message':_0xb4b24c['toString'](),'type':_0x12f4b6('0x9ae')}];for(var _0x1e0ee1=0x0;_0x1e0ee1<_0xb4b24c[_0x12f4b6('0x10fd')][_0x12f4b6('0x4c6')][_0x12f4b6('0x2587')];_0x1e0ee1++){_0x2f2b22[_0x12f4b6('0x187f')]({'title':_0xb4b24c[_0x12f4b6('0x10fd')][_0x12f4b6('0x4c6')][_0x1e0ee1][_0x12f4b6('0x6c8')],'msg':_0xb4b24c['data'][_0x12f4b6('0x4c6')][_0x1e0ee1][_0x12f4b6('0x1402')]});}}else _0x2f2b22[_0x12f4b6('0x187f')]({'title':_0xb4b24c[_0x12f4b6('0x2fa')]?_0x12f4b6('0x16c2')+_0xb4b24c[_0x12f4b6('0x2fa')]+_0x12f4b6('0x169e')+_0xb4b24c[_0x12f4b6('0x24df')]:'api.openchannelQueue.delete','msg':_0xb4b24c[_0x12f4b6('0x10fd')]?JSON[_0x12f4b6('0xa48')](_0xb4b24c[_0x12f4b6('0x10fd')]['message']):_0xb4b24c[_0x12f4b6('0x1402')]||_0xb4b24c['toString']()});});},function(){});}function _0x16977e(_0x5131b8){return _0x5131b8===null?undefined:new Date(_0x5131b8);}function _0x57ce53(_0x27cbd6){_0x5c098f['hide'](_0x27cbd6);}}const _0x346463=_0x3c94d0;_0x104e79[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),'api',_0x1a8446('0x21b2'),_0x1a8446('0x1901'),_0x1a8446('0x4f3'),'$translate',_0x1a8446('0x1dfd'),'crudPermissions'];function _0x104e79(_0x41294d,_0x4797a4,_0xfc6eab,_0x3bdfcc,_0x20ccfe,_0xc756e2,_0x4f51fa,_0x3e7495,_0xe33d6f,_0x4ba69b){var _0x2f384c=_0x1a8446,_0x32b08a=this;_0x32b08a[_0x2f384c('0x7fc')]=_0xe33d6f[_0x2f384c('0xacc')](),_0x32b08a[_0x2f384c('0x21b2')]=_0x20ccfe,_0x32b08a[_0x2f384c('0xada')]=_0x4ba69b,_0x32b08a['realtime']=_0x4f51fa,_0x32b08a[_0x2f384c('0x1a30')]=[],_0x32b08a[_0x2f384c('0x11b9')]=[],_0x32b08a['selectedItems']=[],_0x32b08a['startingAllowedItems']=[],_0x32b08a['startingSelectedItems']=[],_0x32b08a[_0x2f384c('0xc54')]=![],_0x32b08a[_0x2f384c('0x2318')]=_0x14e813,_0x32b08a[_0x2f384c('0x17bb')]=_0x1353e9,_0x32b08a[_0x2f384c('0x2023')]=_0x5e158c,_0x32b08a[_0x2f384c('0x1c23')]={'readOnly':!_0x32b08a[_0x2f384c('0xada')][_0x2f384c('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2f384c('0x25d6'),'line1':'fullname','line2':[_0x2f384c('0x25d6'),_0x2f384c('0x1b0d')],'line3':'','labelAll':_0x3e7495[_0x2f384c('0x213f')](_0x2f384c('0x2417')),'labelSelected':_0x3e7495[_0x2f384c('0x213f')](_0x2f384c('0xe94')),'transferCallback':function _0x32ff45(){var _0x2c191d=_0x2f384c,_0xa891c5=_0x51538b()[_0x2c191d('0x9ef')](_0x32b08a[_0x2c191d('0x214a')],_0x32b08a['selectedItems'],'id');_0x32b08a[_0x2c191d('0xc54')]=_0x51538b()[_0x2c191d('0x116b')](_0xa891c5)?![]:!![];}};function _0x14e813(){var _0x284511=_0x2f384c;return _0xe33d6f[_0x284511('0x26e8')](_0x284511('0x178b'))?_0x2bf361()[_0x284511('0x253d')](function(_0x1ccb29){var _0x57dd8e=_0x284511;_0xfc6eab[_0x57dd8e('0x187f')]({'title':_0x1ccb29[_0x57dd8e('0x2fa')]?'API:'+_0x1ccb29[_0x57dd8e('0x2fa')]+'\x20-\x20'+_0x1ccb29[_0x57dd8e('0x24df')]:_0x57dd8e('0x14c6'),'msg':_0x1ccb29['status']?JSON[_0x57dd8e('0xa48')](_0x1ccb29[_0x57dd8e('0x10fd')]):_0x1ccb29[_0x57dd8e('0x684')]()});}):_0x6334d3()['then'](function(_0x23b7bb){return _0x32b08a['section']=_0x23b7bb,_0x2bf361();})[_0x284511('0x253d')](function(_0x406802){var _0x12dfb6=_0x284511;_0xfc6eab['error']({'title':_0x406802['status']?'API:'+_0x406802[_0x12dfb6('0x2fa')]+_0x12dfb6('0x169e')+_0x406802[_0x12dfb6('0x24df')]:_0x12dfb6('0x14c6'),'msg':_0x406802['status']?JSON[_0x12dfb6('0xa48')](_0x406802['data']):_0x406802[_0x12dfb6('0x684')]()});});}function _0x6334d3(){return _0x4797a4(function(_0x238d83,_0x41067b){var _0x56a3b1=a0_0x1149;_0x3bdfcc[_0x56a3b1('0x1a50')][_0x56a3b1('0x2122')]({'userProfileId':_0x32b08a['currentUser']['userProfileId'],'name':_0x56a3b1('0x91a')})[_0x56a3b1('0x1dc2')]['then'](function(_0x56ae2a){var _0x175ea8=_0x56a3b1,_0x4a520d=_0x56ae2a&&_0x56ae2a['rows']?_0x56ae2a[_0x175ea8('0x580')][0x0]:null;_0x238d83(_0x4a520d);})[_0x56a3b1('0x253d')](function(_0x3263c8){_0x41067b(_0x3263c8);});});}function _0x2bf361(){return _0x4797a4(function(_0x467c6b,_0x22fbd4){var _0x3cb989=a0_0x1149;return _0x366771()[_0x3cb989('0xaa5')](function(_0x301047){var _0x45d01b=_0x3cb989;return _0x32b08a[_0x45d01b('0x1a30')]=_0x301047['rows']?_0x301047[_0x45d01b('0x580')]:[],_0xe33d6f[_0x45d01b('0x26e8')](_0x45d01b('0x178b'))?_0x301047:_0x32b08a[_0x45d01b('0x224d')]?_0x32b08a[_0x45d01b('0x224d')][_0x45d01b('0x26cc')]?_0x301047:_0x337633():null;})[_0x3cb989('0xaa5')](function(_0xbc54cf){var _0x3fa943=_0x3cb989,_0x5a5d84=_0xbc54cf&&_0xbc54cf[_0x3fa943('0x580')]?_0xbc54cf[_0x3fa943('0x580')]:[];return _0x32b08a[_0x3fa943('0x11b9')]=_0x51538b()[_0x3fa943('0x1246')](_0x5a5d84,function(_0xc91d2a){var _0x114962=_0x3fa943;return _0x51538b()['find'](_0x32b08a[_0x114962('0x1a30')],{'id':_0xe33d6f['hasRole'](_0x114962('0x178b'))||_0x32b08a[_0x114962('0x224d')]['autoAssociation']?_0xc91d2a['id']:_0xc91d2a[_0x114962('0xbcd')]});}),_0x32b08a[_0x3fa943('0x215b')]=angular[_0x3fa943('0x20a')](_0x32b08a['allowedItems']),_0x32b08a[_0x3fa943('0x1a30')]['forEach'](function(_0x30f43c){var _0x575918=_0x3fa943,_0x405e1c=_0x51538b()[_0x575918('0xe9e')](_0x32b08a[_0x575918('0x11b9')],{'id':_0x30f43c['id']});_0xe33d6f['hasRole'](_0x575918('0x178b'))?_0x30f43c[_0x575918('0x145d')]=!![]:_0x30f43c['isValid']=typeof _0x405e1c!==_0x575918('0x1574')?!![]:![];}),_0x1a1b41();})[_0x3cb989('0xaa5')](function(_0x31b600){var _0x1cef47=_0x3cb989,_0x43270c=_0x31b600&&_0x31b600[_0x1cef47('0x580')]?_0x31b600[_0x1cef47('0x580')]:[];_0x32b08a[_0x1cef47('0xbf7')]=_0x51538b()[_0x1cef47('0x1246')](_0x43270c,function(_0x229b95){var _0x3530e0=_0x1cef47,_0x423ea4=_0x51538b()[_0x3530e0('0xe9e')](_0x32b08a['items'],{'id':_0x229b95['id']});return _0x423ea4[_0x3530e0('0x2234')]=_0x229b95[_0x3530e0('0x155b')]?_0x3530e0('0x17b0')+_0x229b95['UserOpenchannelQueue']['penalty']:'',_0x423ea4[_0x3530e0('0x1b0d')]=typeof _0x229b95[_0x3530e0('0x1b0d')]!==_0x3530e0('0x1574')?'<'+_0x229b95[_0x3530e0('0x1b0d')]+'>':'',_0x423ea4;}),_0x32b08a[_0x1cef47('0x214a')]=angular[_0x1cef47('0x20a')](_0x32b08a['selectedItems']),_0x32b08a[_0x1cef47('0x1c23')][_0x1cef47('0xbf7')]=_0x32b08a[_0x1cef47('0xbf7')],_0x32b08a[_0x1cef47('0x1c23')][_0x1cef47('0x1a30')]=_0x51538b()[_0x1cef47('0x1ebb')](_0x32b08a['allowedItems'],_0x32b08a[_0x1cef47('0x1c23')][_0x1cef47('0xbf7')],'id'),_0x467c6b();})[_0x3cb989('0x253d')](function(_0x30768a){_0x22fbd4(_0x30768a);});});}function _0x337633(){return _0x4797a4(function(_0x29a186,_0x3842a7){var _0x3c7cb5=a0_0x1149;return _0x3bdfcc[_0x3c7cb5('0x249a')][_0x3c7cb5('0x2122')]({'sectionId':_0x32b08a[_0x3c7cb5('0x224d')]['id'],'nolimit':!![]})[_0x3c7cb5('0x1dc2')][_0x3c7cb5('0xaa5')](function(_0x123968){_0x29a186(_0x123968);})[_0x3c7cb5('0x253d')](function(_0x25d92d){_0x3842a7(_0x25d92d);});});}function _0x1a1b41(){return _0x4797a4(function(_0x28bc54,_0x47049f){var _0x50f121=a0_0x1149;return _0x3bdfcc[_0x50f121('0x21b2')][_0x50f121('0x1483')]({'id':_0x32b08a[_0x50f121('0x21b2')]['id'],'fields':_0x50f121('0x283f'),'nolimit':!![],'role':'agent'})[_0x50f121('0x1dc2')][_0x50f121('0xaa5')](function(_0x3ece14){_0x28bc54(_0x3ece14);})[_0x50f121('0x253d')](function(_0x5c429f){_0x47049f(_0x5c429f);});});}function _0x366771(){return _0x4797a4(function(_0x51c127,_0x5b8b9f){var _0x14b045=a0_0x1149;return _0x3bdfcc['user'][_0x14b045('0x2122')]({'fields':_0x14b045('0x283f'),'nolimit':!![],'role':_0x14b045('0xeff')})[_0x14b045('0x1dc2')][_0x14b045('0xaa5')](function(_0x232d86){_0x51c127(_0x232d86);})[_0x14b045('0x253d')](function(_0x56c065){_0x5b8b9f(_0x56c065);});});}function _0x18b016(_0x247ffc){return _0x4797a4(function(_0x436462,_0x2d28bb){var _0x37e691=a0_0x1149;_0x51538b()[_0x37e691('0x116b')](_0x247ffc)?_0x436462():_0x3bdfcc['openchannelQueue']['addAgents']({'id':_0x32b08a[_0x37e691('0x21b2')]['id'],'ids':_0x51538b()[_0x37e691('0x1246')](_0x247ffc,'id')})['$promise'][_0x37e691('0xaa5')](function(){_0x436462();})[_0x37e691('0x253d')](function(_0x3e88ff){_0x2d28bb(_0x3e88ff);});});}function _0x1f9441(_0x22a6df){return _0x4797a4(function(_0x6bc339,_0xa83aa){var _0x951108=a0_0x1149;_0x51538b()[_0x951108('0x116b')](_0x22a6df)?_0x6bc339():_0x3bdfcc[_0x951108('0x21b2')][_0x951108('0x258e')]({'id':_0x32b08a[_0x951108('0x21b2')]['id'],'ids':_0x51538b()[_0x951108('0x1246')](_0x22a6df,'id')})['$promise'][_0x951108('0xaa5')](function(){_0x6bc339();})[_0x951108('0x253d')](function(_0x32bdb6){_0xa83aa(_0x32bdb6);});});}function _0x1353e9(){var _0x570638=_0x2f384c,_0x52cfa1=_0x51538b()[_0x570638('0x1ebb')](_0x32b08a[_0x570638('0x214a')],_0x32b08a[_0x570638('0xbf7')],'id'),_0x1ea072=_0x51538b()[_0x570638('0x1ebb')](_0x32b08a[_0x570638('0xbf7')],_0x32b08a[_0x570638('0x214a')],'id');return _0x1f9441(_0x52cfa1)[_0x570638('0xaa5')](function(){return _0x18b016(_0x1ea072);})[_0x570638('0xaa5')](function(){var _0x5be321=_0x570638;_0x32b08a[_0x5be321('0xc54')]=![],_0x32b08a[_0x5be321('0x215b')]=angular['copy'](_0x32b08a[_0x5be321('0x11b9')]),_0x32b08a['startingSelectedItems']=angular[_0x5be321('0x20a')](_0x32b08a[_0x5be321('0xbf7')]),_0xfc6eab[_0x5be321('0xe10')]({'title':_0x5be321('0x2eb'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x570638('0x253d')](function(_0x2be6c6){var _0x5a21b2=_0x570638;_0xfc6eab[_0x5a21b2('0x187f')]({'title':_0x2be6c6[_0x5a21b2('0x2fa')]?_0x5a21b2('0x16c2')+_0x2be6c6[_0x5a21b2('0x2fa')]+_0x5a21b2('0x169e')+_0x2be6c6[_0x5a21b2('0x24df')]:_0x5a21b2('0x2281'),'msg':_0x2be6c6[_0x5a21b2('0x2fa')]?JSON[_0x5a21b2('0xa48')](_0x2be6c6[_0x5a21b2('0x10fd')]):_0x2be6c6[_0x5a21b2('0x684')]()});});}function _0x5e158c(){var _0x31adc8=_0x2f384c;_0x41294d[_0x31adc8('0x1120')]();}}const _0x30c574=_0x104e79;_0x329d33[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),'openchannelQueue',_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x329d33(_0x1be961,_0x1e4ecd,_0x19734e,_0x5bd8b3,_0x5aa9e6,_0x292da5,_0x1a11a6,_0x251a94){var _0x459097=_0x1a8446,_0x5675c2=this;_0x5675c2[_0x459097('0x7fc')]=_0x1a11a6[_0x459097('0xacc')](),_0x5675c2['openchannelQueue']=_0x5aa9e6,_0x5675c2[_0x459097('0xada')]=_0x251a94,_0x5675c2['items']=[],_0x5675c2['allowedItems']=[],_0x5675c2['selectedItems']=[],_0x5675c2[_0x459097('0x215b')]=[],_0x5675c2[_0x459097('0x214a')]=[],_0x5675c2[_0x459097('0xc54')]=![],_0x5675c2[_0x459097('0x1c23')]={'readOnly':!_0x5675c2['crudPermissions'][_0x459097('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x459097('0x25d6'),'line1':'name','line2':'','line3':'','labelAll':_0x292da5[_0x459097('0x213f')](_0x459097('0x17da')),'labelSelected':_0x292da5['instant']('OPENCHANNEL.SELECTED_TEAMS'),'transferCallback':function _0x4d22e5(){var _0x56da62=_0x459097,_0x381257=_0x51538b()[_0x56da62('0x9ef')](_0x5675c2['startingSelectedItems'],_0x5675c2['selectedItems'],'id');_0x5675c2[_0x56da62('0xc54')]=_0x51538b()['isEmpty'](_0x381257)?![]:!![];}},_0x5675c2[_0x459097('0x2318')]=_0x186332,_0x5675c2['saveTeams']=_0x4f9240,_0x5675c2[_0x459097('0x2023')]=_0x1512ab;function _0x186332(){var _0x35da5f=_0x459097;return _0x1a11a6[_0x35da5f('0x26e8')](_0x35da5f('0x178b'))?_0x39293b()[_0x35da5f('0x253d')](function(_0xa478e7){var _0x4d3642=_0x35da5f;_0x19734e['error']({'title':_0xa478e7[_0x4d3642('0x2fa')]?_0x4d3642('0x16c2')+_0xa478e7[_0x4d3642('0x2fa')]+_0x4d3642('0x169e')+_0xa478e7[_0x4d3642('0x24df')]:_0x4d3642('0x4b3'),'msg':_0xa478e7['status']?JSON[_0x4d3642('0xa48')](_0xa478e7[_0x4d3642('0x10fd')]):_0xa478e7[_0x4d3642('0x684')]()});}):_0xe8aa3f()[_0x35da5f('0xaa5')](function(_0x104057){return _0x5675c2['section']=_0x104057,_0x39293b();})[_0x35da5f('0x253d')](function(_0x1df813){var _0x445969=_0x35da5f;_0x19734e[_0x445969('0x187f')]({'title':_0x1df813['status']?_0x445969('0x16c2')+_0x1df813['status']+_0x445969('0x169e')+_0x1df813[_0x445969('0x24df')]:_0x445969('0x4b3'),'msg':_0x1df813[_0x445969('0x2fa')]?JSON[_0x445969('0xa48')](_0x1df813[_0x445969('0x10fd')]):_0x1df813['toString']()});});}function _0xe8aa3f(){return _0x1e4ecd(function(_0x57163b,_0x29e148){var _0xd9c397=a0_0x1149;_0x5bd8b3[_0xd9c397('0x1a50')][_0xd9c397('0x2122')]({'userProfileId':_0x5675c2[_0xd9c397('0x7fc')][_0xd9c397('0x2168')],'name':_0xd9c397('0x10ee')})[_0xd9c397('0x1dc2')][_0xd9c397('0xaa5')](function(_0x3e8b8c){var _0x5b1791=_0xd9c397,_0x4273fb=_0x3e8b8c&&_0x3e8b8c[_0x5b1791('0x580')]?_0x3e8b8c[_0x5b1791('0x580')][0x0]:null;_0x57163b(_0x4273fb);})[_0xd9c397('0x253d')](function(_0x8ebb59){_0x29e148(_0x8ebb59);});});}function _0x39293b(){return _0x1e4ecd(function(_0x1bb5b6,_0x438bea){var _0xa492b8=a0_0x1149;return _0x139515()[_0xa492b8('0xaa5')](function(_0x338952){var _0x5dbf37=_0xa492b8;return _0x5675c2[_0x5dbf37('0x1a30')]=_0x338952['rows']?_0x338952['rows']:[],_0x1a11a6[_0x5dbf37('0x26e8')]('admin')?_0x338952:_0x5675c2[_0x5dbf37('0x224d')]?_0x5675c2[_0x5dbf37('0x224d')]['autoAssociation']?_0x338952:_0x4c59ad():null;})[_0xa492b8('0xaa5')](function(_0x47dbe1){var _0x5ef820=_0xa492b8,_0x4d8eee=_0x47dbe1&&_0x47dbe1[_0x5ef820('0x580')]?_0x47dbe1[_0x5ef820('0x580')]:[];return _0x5675c2['allowedItems']=_0x51538b()[_0x5ef820('0x1246')](_0x4d8eee,function(_0x1180fc){var _0x46b308=_0x5ef820;return _0x51538b()[_0x46b308('0xe9e')](_0x5675c2[_0x46b308('0x1a30')],{'id':_0x1a11a6[_0x46b308('0x26e8')]('admin')||_0x5675c2[_0x46b308('0x224d')][_0x46b308('0x26cc')]?_0x1180fc['id']:_0x1180fc[_0x46b308('0xbcd')]});}),_0x5675c2[_0x5ef820('0x1a30')][_0x5ef820('0x15b5')](function(_0x41a2b5){var _0x2c99e1=_0x5ef820,_0x47aed7=_0x51538b()[_0x2c99e1('0xe9e')](_0x5675c2[_0x2c99e1('0x11b9')],{'id':_0x41a2b5['id']});_0x1a11a6['hasRole'](_0x2c99e1('0x178b'))?_0x41a2b5[_0x2c99e1('0x145d')]=!![]:_0x41a2b5[_0x2c99e1('0x145d')]=typeof _0x47aed7!==_0x2c99e1('0x1574')?!![]:![];}),_0x3c096d();})[_0xa492b8('0xaa5')](function(_0x1d8b4f){var _0x290fa8=_0xa492b8,_0x3d3572=_0x1d8b4f&&_0x1d8b4f[_0x290fa8('0x580')]?_0x1d8b4f['rows']:[];_0x5675c2[_0x290fa8('0xbf7')]=_0x51538b()[_0x290fa8('0x1246')](_0x3d3572,function(_0x4dab4c){var _0x457301=_0x290fa8;return _0x51538b()['find'](_0x5675c2[_0x457301('0x1a30')],{'id':_0x4dab4c['id']});}),_0x5675c2[_0x290fa8('0x214a')]=angular[_0x290fa8('0x20a')](_0x5675c2[_0x290fa8('0xbf7')]),_0x5675c2['dualMultiselectOptions'][_0x290fa8('0xbf7')]=_0x5675c2[_0x290fa8('0xbf7')],_0x5675c2[_0x290fa8('0x1c23')]['items']=_0x51538b()[_0x290fa8('0x1ebb')](_0x5675c2[_0x290fa8('0x11b9')],_0x5675c2[_0x290fa8('0x1c23')][_0x290fa8('0xbf7')],'id'),_0x1bb5b6();})['catch'](function(_0x145019){_0x438bea(_0x145019);});});}function _0x4c59ad(){return _0x1e4ecd(function(_0x54fa3e,_0x4c54c8){var _0x305148=a0_0x1149;return _0x5bd8b3['userProfileResource'][_0x305148('0x2122')]({'sectionId':_0x5675c2['section']['id'],'nolimit':!![]})[_0x305148('0x1dc2')][_0x305148('0xaa5')](function(_0x25c126){_0x54fa3e(_0x25c126);})[_0x305148('0x253d')](function(_0x52e151){_0x4c54c8(_0x52e151);});});}function _0x3c096d(){return _0x1e4ecd(function(_0x4f995f,_0x175892){var _0x4d5130=a0_0x1149;return _0x5bd8b3['openchannelQueue'][_0x4d5130('0x1067')]({'id':_0x5675c2[_0x4d5130('0x21b2')]['id'],'fields':_0x4d5130('0x17fe'),'nolimit':!![]})['$promise'][_0x4d5130('0xaa5')](function(_0x4ead6b){_0x4f995f(_0x4ead6b);})['catch'](function(_0xe4afd3){_0x175892(_0xe4afd3);});});}function _0x139515(){return _0x1e4ecd(function(_0x3d7aea,_0x39ff31){var _0x3755d7=a0_0x1149;return _0x5bd8b3['team'][_0x3755d7('0x2122')]({'fields':'id,name','nolimit':!![]})[_0x3755d7('0x1dc2')][_0x3755d7('0xaa5')](function(_0x327972){_0x3d7aea(_0x327972);})['catch'](function(_0x463c60){_0x39ff31(_0x463c60);});});}function _0x16e09a(_0x400cf2){return _0x1e4ecd(function(_0x136d07,_0x20e654){var _0x15f34f=a0_0x1149;_0x51538b()[_0x15f34f('0x116b')](_0x400cf2)?_0x136d07():_0x5bd8b3[_0x15f34f('0x21b2')]['addTeams']({'id':_0x5675c2['openchannelQueue']['id'],'ids':_0x51538b()[_0x15f34f('0x1246')](_0x400cf2,'id')})[_0x15f34f('0x1dc2')]['then'](function(){_0x136d07();})[_0x15f34f('0x253d')](function(_0x32e525){_0x20e654(_0x32e525);});});}function _0x23be43(_0x54d679){return _0x1e4ecd(function(_0x2abe99,_0x4bf454){var _0xb9a815=a0_0x1149;_0x51538b()[_0xb9a815('0x116b')](_0x54d679)?_0x2abe99():_0x5bd8b3[_0xb9a815('0x21b2')][_0xb9a815('0x24b0')]({'id':_0x5675c2[_0xb9a815('0x21b2')]['id'],'ids':_0x51538b()[_0xb9a815('0x1246')](_0x54d679,'id')})[_0xb9a815('0x1dc2')]['then'](function(){_0x2abe99();})[_0xb9a815('0x253d')](function(_0x21bc14){_0x4bf454(_0x21bc14);});});}function _0x4f9240(){var _0x180bfc=_0x459097,_0x508762=_0x51538b()[_0x180bfc('0x1ebb')](_0x5675c2[_0x180bfc('0x214a')],_0x5675c2[_0x180bfc('0xbf7')],'id'),_0x4067f2=_0x51538b()[_0x180bfc('0x1ebb')](_0x5675c2[_0x180bfc('0xbf7')],_0x5675c2[_0x180bfc('0x214a')],'id');return _0x23be43(_0x508762)[_0x180bfc('0xaa5')](function(){return _0x16e09a(_0x4067f2);})[_0x180bfc('0xaa5')](function(){var _0x227d7f=_0x180bfc;_0x5675c2[_0x227d7f('0xc54')]=![],_0x5675c2[_0x227d7f('0x215b')]=angular[_0x227d7f('0x20a')](_0x5675c2[_0x227d7f('0x11b9')]),_0x5675c2[_0x227d7f('0x214a')]=angular[_0x227d7f('0x20a')](_0x5675c2[_0x227d7f('0xbf7')]),_0x19734e[_0x227d7f('0xe10')]({'title':_0x227d7f('0x2eb'),'msg':_0x227d7f('0x1e1f')});})['catch'](function(_0x264480){var _0x3474dd=_0x180bfc;_0x19734e[_0x3474dd('0x187f')]({'title':_0x264480[_0x3474dd('0x2fa')]?_0x3474dd('0x16c2')+_0x264480[_0x3474dd('0x2fa')]+'\x20-\x20'+_0x264480[_0x3474dd('0x24df')]:_0x3474dd('0x2281'),'msg':_0x264480[_0x3474dd('0x2fa')]?JSON[_0x3474dd('0xa48')](_0x264480[_0x3474dd('0x10fd')]):_0x264480[_0x3474dd('0x684')]()});});}function _0x1512ab(){var _0x2edab4=_0x459097;_0x1be961[_0x2edab4('0x1120')]();}}const _0x133471=_0x329d33,_0x34653d=_0x4fb511['p']+_0x1a8446('0x119');_0x2fde21['$inject']=['$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate','license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x21b2'),'userProfileSection'];function _0x2fde21(_0x13b654,_0x1b8a5c,_0x53259e,_0x30f4b4,_0x24ecd7,_0x2b242e,_0x598108,_0x9bfaa2,_0x3ccbd5,_0x2bc3b7,_0x557418,_0x41ce07){var _0x4e7291=_0x1a8446,_0x1e88ff=this;_0x1e88ff[_0x4e7291('0x7fc')]=_0x2bc3b7[_0x4e7291('0xacc')](),_0x1e88ff[_0x4e7291('0x1202')]=_0x2b242e,_0x1e88ff[_0x4e7291('0x143f')]=_0x598108,_0x1e88ff[_0x4e7291('0x1d53')]=_0x1e88ff[_0x4e7291('0x143f')][_0x4e7291('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e88ff[_0x4e7291('0x18cc')]=_0x1b8a5c[_0x4e7291('0x1cc2')]()+'://'+_0x1b8a5c[_0x4e7291('0x160c')](),_0x1e88ff[_0x4e7291('0x21b2')]=_0x557418||_0x13b654[_0x4e7291('0x25cf')][_0x4e7291('0x21b2')]||{},_0x1e88ff[_0x4e7291('0x1a50')]=_0x41ce07&&_0x41ce07[_0x4e7291('0xd15')]==0x1?_0x41ce07[_0x4e7291('0x580')][0x0]:null,_0x1e88ff[_0x4e7291('0xada')]=_0x2bc3b7[_0x4e7291('0xffd')](_0x1e88ff[_0x4e7291('0x1a50')]?_0x1e88ff[_0x4e7291('0x1a50')][_0x4e7291('0xada')]:null),_0x1e88ff[_0x4e7291('0x9f0')]={},_0x1e88ff['selectedTab']=_0x13b654[_0x4e7291('0x25cf')][_0x4e7291('0x25c2')]||0x0,_0x1e88ff[_0x4e7291('0x158f')]=_0x3794b2,_0x1e88ff[_0x4e7291('0x16a5')]=_0x17be48,_0x1e88ff['alert']=_0x3ccbd5[_0x4e7291('0x3a1')],_0x1e88ff[_0x4e7291('0x9c')]=_0x45eec8,_0x1e88ff['saveOpenchannelQueue']=_0x3931c5;function _0x3794b2(_0x339535,_0x49fcab){var _0xb0a9f9=_0x4e7291;_0x53259e[_0xb0a9f9('0x1e6d')]({'controller':_0xb0a9f9('0x200f'),'controllerAs':'vm','templateUrl':_0x34653d,'parent':angular[_0xb0a9f9('0x1aa8')](_0x30f4b4['body']),'targetEvent':_0x49fcab,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x339535,'openchannelQueues':_0x1e88ff['openchannelQueues']?_0x1e88ff[_0xb0a9f9('0x1901')][_0xb0a9f9('0x580')]:[],'crudPermissions':_0x1e88ff[_0xb0a9f9('0xada')]}});}function _0x17be48(_0x89d5c0,_0x3bfa75){var _0x2fa6dd=_0x4e7291;_0x53259e['show']({'controller':'OpenchannelQueueagentaddController','controllerAs':'vm','templateUrl':_0x4398e3,'parent':angular[_0x2fa6dd('0x1aa8')](_0x30f4b4['body']),'targetEvent':_0x3bfa75,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x89d5c0,'openchannelQueues':_0x1e88ff[_0x2fa6dd('0x1901')]?_0x1e88ff[_0x2fa6dd('0x1901')]['rows']:[],'crudPermissions':_0x1e88ff[_0x2fa6dd('0xada')],'realtime':![]}});}function _0x45eec8(){var _0x27d6bc=_0x4e7291;_0x13b654['go'](_0x27d6bc('0x274a'),{},{'reload':_0x27d6bc('0x274a')});}function _0x3931c5(){var _0x3e5c67=_0x4e7291;_0x9bfaa2['openchannelQueue'][_0x3e5c67('0x264e')]({'id':_0x1e88ff[_0x3e5c67('0x21b2')]['id']},_0x1e88ff['openchannelQueue'])[_0x3e5c67('0x1dc2')][_0x3e5c67('0xaa5')](function(){var _0x568f3e=_0x3e5c67;_0x3ccbd5[_0x568f3e('0xe10')]({'title':_0x568f3e('0x17c7'),'msg':_0x1e88ff[_0x568f3e('0x21b2')][_0x568f3e('0x25d6')]?_0x1e88ff[_0x568f3e('0x21b2')]['name']+_0x568f3e('0x1734'):''});})[_0x3e5c67('0x253d')](function(_0x38e099){var _0x55721c=_0x3e5c67;_0x3ccbd5[_0x55721c('0x187f')]({'title':_0x38e099[_0x55721c('0x2fa')]?_0x55721c('0x16c2')+_0x38e099['status']+_0x55721c('0x169e')+_0x38e099['statusText']:'SYSTEM:GETopenchannelQueue','msg':_0x38e099[_0x55721c('0x10fd')]?JSON[_0x55721c('0xa48')](_0x38e099[_0x55721c('0x10fd')]):_0x38e099['toString']()});});}}const _0xc67729=_0x2fde21;_0x1a4d85[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav','$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x1901'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),'toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x1a4d85(_0x10d793,_0x43cab0,_0xf30eb4,_0x293a10,_0x3c0477,_0x3c8d83,_0x33563d,_0x4a9ec5,_0x4a8a8b,_0x1ebbf6,_0x1e7065,_0x27b25f,_0x39ab5d,_0x24e5b7,_0xb881a3,_0x3ffe55,_0xd9c0da){var _0x4b13d1=_0x1a8446,_0x263f2b=this;_0x263f2b[_0x4b13d1('0x1202')]=_0x3ffe55,_0x263f2b[_0x4b13d1('0x143f')]=_0xd9c0da,_0x263f2b[_0x4b13d1('0x7fc')]=_0xb881a3[_0x4b13d1('0xacc')](),_0x263f2b['openchannelQueues']=_0x4a8a8b||{'count':0x0,'rows':[]},_0x263f2b[_0x4b13d1('0x1e97')]=_0x1ebbf6,_0x263f2b[_0x4b13d1('0x1a50')]=_0x1e7065&&_0x1e7065[_0x4b13d1('0xd15')]==0x1?_0x1e7065[_0x4b13d1('0x580')][0x0]:null,_0x263f2b[_0x4b13d1('0xada')]=_0xb881a3[_0x4b13d1('0xffd')](_0x263f2b[_0x4b13d1('0x1a50')]?_0x263f2b['userProfileSection'][_0x4b13d1('0xada')]:null),_0x263f2b[_0x4b13d1('0x12b6')]=_0x4b13d1('0x1901'),_0x263f2b[_0x4b13d1('0x164')]='',_0x263f2b[_0x4b13d1('0x8cc')]=null,_0x263f2b[_0x4b13d1('0x4cd')]=[],_0x263f2b[_0x4b13d1('0x582')]={'fields':_0x4b13d1('0x698'),'sort':_0x4b13d1('0xd82'),'channel':'openchannel','limit':0xa,'page':0x1},_0x263f2b[_0x4b13d1('0x2501')]=_0x51538b()[_0x4b13d1('0x184a')]([{'option':_0x4b13d1('0x263b'),'value':'\x27beepall\x27'},{'option':'RR\x20Memory','value':_0x4b13d1('0x2576')}],function(_0x24cd6e){var _0x314a51=_0x4b13d1;return _0x51538b()['replace'](_0x24cd6e[_0x314a51('0x12f4')],new RegExp('\x27','g'),'');}),_0x263f2b[_0x4b13d1('0x1927')]=_0x313719,_0x263f2b['teamadddialog']=_0x21adf3,_0x263f2b[_0x4b13d1('0x16a5')]=_0x18469b,_0x263f2b[_0x4b13d1('0x271')]=_0x355472,_0x263f2b[_0x4b13d1('0x2389')]=_0x481a41,_0x263f2b[_0x4b13d1('0xe10')]=_0x23d285,_0x263f2b[_0x4b13d1('0x446')]=_0x576b17,_0x263f2b[_0x4b13d1('0xc0c')]=_0x2bc346,_0x263f2b[_0x4b13d1('0x1631')]=_0x218a2f,_0x263f2b['exportSelectedOpenchannelQueues']=_0x23f371,_0x263f2b[_0x4b13d1('0x1074')]=_0x37fc8d,_0x263f2b['deselectOpenchannelQueues']=_0x4262d6,_0x263f2b['selectAllOpenchannelQueues']=_0x32166f;function _0x313719(_0x4a47b7){var _0x4a4602=_0x4b13d1;_0xf30eb4['go'](_0x4a4602('0xbed'),{'id':_0x4a47b7['id'],'openchannelQueue':_0x4a47b7,'crudPermissions':_0x263f2b[_0x4a4602('0xada')]});}function _0x21adf3(_0x17ef19,_0x4cabff){var _0x36c96a=_0x4b13d1;_0x3c0477[_0x36c96a('0x1e6d')]({'controller':_0x36c96a('0x200f'),'controllerAs':'vm','templateUrl':_0x34653d,'parent':angular[_0x36c96a('0x1aa8')](_0x3c8d83[_0x36c96a('0x54c')]),'targetEvent':_0x4cabff,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x17ef19,'openchannelQueues':_0x263f2b[_0x36c96a('0x1901')]?_0x263f2b['openchannelQueues'][_0x36c96a('0x580')]:[],'crudPermissions':_0x263f2b[_0x36c96a('0xada')]}});}function _0x18469b(_0x4f716e,_0xe85853){var _0x41be71=_0x4b13d1;_0x3c0477[_0x41be71('0x1e6d')]({'controller':_0x41be71('0x25f2'),'controllerAs':'vm','templateUrl':_0x4398e3,'parent':angular['element'](_0x3c8d83[_0x41be71('0x54c')]),'targetEvent':_0xe85853,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x4f716e,'openchannelQueues':_0x263f2b[_0x41be71('0x1901')]?_0x263f2b[_0x41be71('0x1901')][_0x41be71('0x580')]:[],'crudPermissions':_0x263f2b[_0x41be71('0xada')],'realtime':![]}});}function _0x355472(_0x16db3e,_0xb92811){var _0x4c7504=_0x4b13d1,_0x4e87d7=_0x3c0477['confirm']()[_0x4c7504('0x110a')](_0x4c7504('0x88d')+_0x51538b()[_0x4c7504('0x196a')](_0x4c7504('0x21b2'))+'?')[_0x4c7504('0x102e')](_0x4c7504('0x389')+(_0x16db3e[_0x4c7504('0x25d6')]||_0x4c7504('0x21b2'))+_0x4c7504('0x697')+_0x4c7504('0x210d'))[_0x4c7504('0x5b5')](_0x4c7504('0x1696'))['targetEvent'](_0xb92811)['ok']('OK')[_0x4c7504('0x2030')](_0x4c7504('0x2410'));_0x3c0477[_0x4c7504('0x1e6d')](_0x4e87d7)[_0x4c7504('0xaa5')](function(){_0x218a2f(_0x16db3e);},function(){var _0x5969be=_0x4c7504;console[_0x5969be('0x18d5')](_0x5969be('0x2410'));});}function _0x481a41(){var _0x1ad0b5=_0x4b13d1;if(_0xb881a3[_0x1ad0b5('0x26e8')](_0x1ad0b5('0x178b')))_0xf30eb4['go']('app.openchannel.realtime.queues',{});else return _0x27b25f[_0x1ad0b5('0x1a50')][_0x1ad0b5('0x2122')]({'userProfileId':_0xb881a3[_0x1ad0b5('0xacc')]()[_0x1ad0b5('0x2168')],'sectionId':0x32a})['$promise']['then'](function(_0x18095f){var _0x1dc9ec=_0x1ad0b5,_0x21b40b=_0x18095f&&_0x18095f['rows']?_0x18095f['rows'][0x0]:null;_0x21b40b&&_0x21b40b['enabled']?_0xf30eb4['go'](_0x1dc9ec('0x1335'),{}):_0x24e5b7[_0x1dc9ec('0x3a1')]({'title':_0x4a9ec5[_0x1dc9ec('0x213f')](_0x1dc9ec('0x1aab')),'msg':_0x4a9ec5[_0x1dc9ec('0x213f')](_0x1dc9ec('0x251c'))});})[_0x1ad0b5('0x253d')](function(_0x2559d4){var _0x2563a6=_0x1ad0b5;_0x24e5b7[_0x2563a6('0x187f')]({'title':_0x2559d4[_0x2563a6('0x2fa')]?_0x2563a6('0x16c2')+_0x2559d4['status']+'\x20-\x20'+_0x2559d4['statusText']:_0x2563a6('0x21d5'),'msg':_0x2559d4['status']?JSON['stringify'](_0x2559d4[_0x2563a6('0x10fd')]):_0x2559d4[_0x2563a6('0x684')]()});});}var _0x40b993=!![],_0x275e19=0x1;_0x10d793[_0x4b13d1('0x1ccf')](_0x4b13d1('0x1788'),function(_0x132ed8,_0x5bacb9){var _0x295f8d=_0x4b13d1;_0x40b993?_0x33563d(function(){_0x40b993=![];}):(!_0x5bacb9&&(_0x275e19=_0x263f2b['query'][_0x295f8d('0x41')]),_0x132ed8!==_0x5bacb9&&(_0x263f2b[_0x295f8d('0x582')]['page']=0x1),!_0x132ed8&&(_0x263f2b['query']['page']=_0x275e19),_0x263f2b['getOpenchannelQueues']());});function _0x23d285(_0x541632){_0x263f2b['openchannelQueues']=_0x541632||{'count':0x0,'rows':[]};}function _0x576b17(){var _0x405eda=_0x4b13d1;_0x263f2b[_0x405eda('0x582')][_0x405eda('0x8b1')]=(_0x263f2b[_0x405eda('0x582')][_0x405eda('0x41')]-0x1)*_0x263f2b[_0x405eda('0x582')][_0x405eda('0xf4d')],_0xb881a3[_0x405eda('0x26e8')]('admin')?_0x263f2b[_0x405eda('0x159a')]=_0x27b25f['openchannelQueue']['get'](_0x263f2b[_0x405eda('0x582')],_0x23d285)['$promise']:(_0x263f2b[_0x405eda('0x582')]['id']=_0x263f2b[_0x405eda('0x1e97')]['id'],_0x263f2b[_0x405eda('0x582')]['section']=_0x405eda('0x171c'),_0x263f2b[_0x405eda('0x159a')]=_0x27b25f[_0x405eda('0x1e97')]['getResources'](_0x263f2b[_0x405eda('0x582')],_0x23d285)['$promise']);}function _0x2bc346(_0x1184fb,_0x2f95cf){var _0x15e49f=_0x4b13d1;_0x3c0477[_0x15e49f('0x1e6d')]({'controller':_0x15e49f('0x2266'),'controllerAs':'vm','templateUrl':_0x3da0ad,'parent':angular[_0x15e49f('0x1aa8')](_0x3c8d83[_0x15e49f('0x54c')]),'targetEvent':_0x1184fb,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2f95cf,'openchannelQueues':_0x263f2b[_0x15e49f('0x1901')][_0x15e49f('0x580')],'license':_0x263f2b[_0x15e49f('0x1202')],'setting':_0x263f2b[_0x15e49f('0x143f')],'crudPermissions':_0x263f2b[_0x15e49f('0xada')]}});}function _0x218a2f(_0x39facc){var _0x458c47=_0x4b13d1;_0x27b25f[_0x458c47('0x21b2')][_0x458c47('0x926')]({'id':_0x39facc['id']})[_0x458c47('0x1dc2')]['then'](function(){var _0x1071c5=_0x458c47;_0x51538b()['remove'](_0x263f2b[_0x1071c5('0x1901')][_0x1071c5('0x580')],{'id':_0x39facc['id']}),_0x263f2b[_0x1071c5('0x1901')][_0x1071c5('0xd15')]-=0x1,!_0x263f2b[_0x1071c5('0x1901')][_0x1071c5('0x580')][_0x1071c5('0x2587')]&&_0x263f2b[_0x1071c5('0x446')](),_0x24e5b7['success']({'title':_0x51538b()[_0x1071c5('0x196a')]('OpenchannelQueue')+'\x20deleted!','msg':_0x39facc[_0x1071c5('0x25d6')]?_0x39facc[_0x1071c5('0x25d6')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x133f6b){var _0xe2be67=_0x458c47;if(_0x133f6b['data']&&_0x133f6b[_0xe2be67('0x10fd')][_0xe2be67('0x4c6')]&&_0x133f6b[_0xe2be67('0x10fd')][_0xe2be67('0x4c6')][_0xe2be67('0x2587')]){_0x263f2b['errors']=_0x133f6b['data'][_0xe2be67('0x4c6')]||[{'message':_0x133f6b[_0xe2be67('0x684')](),'type':'SYSTEM:DELETEopenchannelQueue'}];for(var _0x36a83c=0x0;_0x36a83c<_0x133f6b[_0xe2be67('0x10fd')][_0xe2be67('0x4c6')][_0xe2be67('0x2587')];_0x36a83c++){_0x24e5b7[_0xe2be67('0x187f')]({'title':_0x133f6b['data'][_0xe2be67('0x4c6')][_0x36a83c][_0xe2be67('0x6c8')],'msg':_0x133f6b['data'][_0xe2be67('0x4c6')][_0x36a83c][_0xe2be67('0x1402')]});}}else _0x24e5b7[_0xe2be67('0x187f')]({'title':_0x133f6b[_0xe2be67('0x2fa')]?_0xe2be67('0x16c2')+_0x133f6b[_0xe2be67('0x2fa')]+_0xe2be67('0x169e')+_0x133f6b[_0xe2be67('0x24df')]:'SYSTEM:DELETEopenchannelQueue','msg':_0x133f6b[_0xe2be67('0x10fd')]?JSON[_0xe2be67('0xa48')](_0x133f6b[_0xe2be67('0x10fd')][_0xe2be67('0x1402')]):_0x133f6b[_0xe2be67('0x1402')]||_0x133f6b[_0xe2be67('0x684')]()});});}function _0x23f371(){var _0x26e82b=_0x4b13d1,_0x2bed90=angular[_0x26e82b('0x20a')](_0x263f2b[_0x26e82b('0x4cd')]);return _0x263f2b[_0x26e82b('0x4cd')]=[],_0x2bed90;}function _0x37fc8d(_0x15b9c1){var _0x4402ba=_0x4b13d1,_0x5c430e=_0x3c0477[_0x4402ba('0x281e')]()[_0x4402ba('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelQueues?')[_0x4402ba('0x102e')](_0x4402ba('0x389')+_0x263f2b['selectedOpenchannelQueues'][_0x4402ba('0x2587')]+_0x4402ba('0x1443')+_0x4402ba('0x210d'))[_0x4402ba('0x5b5')]('delete\x20OpenchannelQueues')['targetEvent'](_0x15b9c1)['ok']('OK')[_0x4402ba('0x2030')](_0x4402ba('0x2410'));_0x3c0477['show'](_0x5c430e)[_0x4402ba('0xaa5')](function(){var _0x154c88=_0x4402ba;_0x263f2b[_0x154c88('0x4cd')]['forEach'](function(_0x33007b){_0x218a2f(_0x33007b);}),_0x263f2b[_0x154c88('0x4cd')]=[];});}function _0x4262d6(){var _0x4283f8=_0x4b13d1;_0x263f2b[_0x4283f8('0x4cd')]=[];}function _0x32166f(){var _0x36a09d=_0x4b13d1;_0x263f2b['selectedOpenchannelQueues']=_0x263f2b[_0x36a09d('0x1901')]['rows'];}}const _0x215d34=_0x1a4d85;_0x146a4b[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),'$translatePartialLoaderProvider'];function _0x146a4b(_0x1ed807,_0x1479b3){var _0x11bf20=_0x1a8446;_0x1ed807[_0x11bf20('0xb46')]('app.openchannel',{'abstract':!![],'url':_0x11bf20('0x22e4')})[_0x11bf20('0xb46')](_0x11bf20('0x274a'),{'url':_0x11bf20('0x9fe'),'views':{'content@app':{'templateUrl':_0x1e0595,'controller':_0x11bf20('0xd6')}},'resolve':{'openchannelQueues':[_0x11bf20('0x1d16'),_0x11bf20('0x1dfd'),function _0x4fcff5(_0x4db09e,_0x57dbab){var _0x25ff4e=_0x11bf20;return _0x57dbab[_0x25ff4e('0x26e8')](_0x25ff4e('0x178b'))?_0x4db09e[_0x25ff4e('0x149f')](_0x25ff4e('0x236e'),{'fields':_0x25ff4e('0x698'),'sort':_0x25ff4e('0xd82'),'channel':_0x25ff4e('0x170'),'limit':0xa,'offset':0x0}):_0x4db09e[_0x25ff4e('0x149f')](_0x25ff4e('0x49a'),{'id':_0x57dbab[_0x25ff4e('0xacc')]()['userProfileId'],'section':_0x25ff4e('0x171c'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':'openchannel','limit':0xa,'offset':0x0});}],'userProfile':[_0x11bf20('0x1d16'),'Auth',function _0x143c5c(_0x7cf3d3,_0x1b9bf7){var _0x463732=_0x11bf20;return _0x1b9bf7[_0x463732('0x26e8')]('admin')?null:_0x7cf3d3[_0x463732('0x149f')]('userProfile@get',{'fields':_0x463732('0x1bb0'),'id':_0x1b9bf7['getCurrentUser']()[_0x463732('0x2168')]});}],'userProfileSection':[_0x11bf20('0x1d16'),_0x11bf20('0x1dfd'),function _0x2ae8c6(_0x3abdad,_0x5af237){var _0x107e15=_0x11bf20;return _0x5af237[_0x107e15('0x26e8')](_0x107e15('0x178b'))?null:_0x3abdad[_0x107e15('0x149f')](_0x107e15('0x89e'),{'fields':_0x107e15('0xe6a'),'userProfileId':_0x5af237['getCurrentUser']()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':'openchannel'})[_0x11bf20('0xb46')](_0x11bf20('0xbed'),{'url':'/:id?tab','params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3ef898,'controller':_0x11bf20('0x1c3b')}},'resolve':{'openchannelQueue':[_0x11bf20('0x1d16'),'$stateParams',function _0x3d30b1(_0x105793,_0x440e74){var _0xe7a8d0=_0x11bf20;return _0x105793[_0xe7a8d0('0x149f')](_0xe7a8d0('0x236e'),{'fields':_0xe7a8d0('0x698'),'id':_0x440e74['id']});}],'userProfileSection':[_0x11bf20('0x1d16'),_0x11bf20('0x1dfd'),function _0x3145bd(_0x3d54fb,_0x55c97f){var _0x572cce=_0x11bf20;return _0x3d54fb['resolve'](_0x572cce('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x55c97f[_0x572cce('0xacc')]()[_0x572cce('0x2168')],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':'openchannel'})[_0x11bf20('0xb46')](_0x11bf20('0x1f2a'),{'url':_0x11bf20('0x283d'),'views':{'content@app':{'templateUrl':_0x235931,'controller':'OpenchannelAccountsController\x20as\x20vm'}},'resolve':{'openchannelAccounts':[_0x11bf20('0x1d16'),_0x11bf20('0x1dfd'),function _0x3793ab(_0x4aaef9,_0x27bad5){var _0x56d89b=_0x11bf20;return _0x27bad5[_0x56d89b('0x26e8')](_0x56d89b('0x178b'))?_0x4aaef9[_0x56d89b('0x149f')](_0x56d89b('0x190e'),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x56d89b('0xd82'),'limit':0xa,'offset':0x0}):_0x4aaef9[_0x56d89b('0x149f')]('userProfile@getResources',{'id':_0x27bad5['getCurrentUser']()[_0x56d89b('0x2168')],'section':_0x56d89b('0x271b'),'fields':_0x56d89b('0x1d82'),'sort':_0x56d89b('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x11bf20('0x1d16'),_0x11bf20('0x1dfd'),function _0x26285e(_0x2c6972,_0x49a597){var _0x5a9228=_0x11bf20;return _0x49a597['hasRole'](_0x5a9228('0x178b'))?null:_0x2c6972['resolve'](_0x5a9228('0x567'),{'fields':_0x5a9228('0x1bb0'),'id':_0x49a597[_0x5a9228('0xacc')]()[_0x5a9228('0x2168')]});}],'userProfileSection':[_0x11bf20('0x1d16'),_0x11bf20('0x1dfd'),function _0x3032e5(_0x458add,_0x43bc92){var _0x2713f6=_0x11bf20;return _0x43bc92[_0x2713f6('0x26e8')](_0x2713f6('0x178b'))?null:_0x458add[_0x2713f6('0x149f')](_0x2713f6('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x43bc92['getCurrentUser']()[_0x2713f6('0x2168')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0x11bf20('0x170')})[_0x11bf20('0xb46')]('app.openchannel.openchannelAccounts.edit',{'url':_0x11bf20('0xad'),'params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x16529b,'controller':_0x11bf20('0x3b8')}},'resolve':{'openchannelAccount':[_0x11bf20('0x1d16'),_0x11bf20('0x703'),function _0x2a6dfa(_0x39756f,_0x576493){var _0x33d25b=_0x11bf20;return _0x39756f['resolve'](_0x33d25b('0x190e'),{'fields':_0x33d25b('0x1d82'),'id':_0x576493['id']});}],'userProfileSection':[_0x11bf20('0x1d16'),_0x11bf20('0x1dfd'),function _0x5e4d79(_0x499f91,_0x2e7c46){var _0x131812=_0x11bf20;return _0x499f91[_0x131812('0x149f')]('userProfileSection@get',{'fields':_0x131812('0xe6a'),'userProfileId':_0x2e7c46['getCurrentUser']()[_0x131812('0x2168')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':'openchannel'}),_0x1479b3[_0x11bf20('0x1de5')](_0x11bf20('0x231c'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x6ac'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),'flow',_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),_0x1a8446('0x150f'),_0x1a8446('0x110'),'mdPickers','mwFormBuilder',_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),_0x1a8446('0x112'),'angular-cron-jobs','ngEmbed',_0x1a8446('0x14c'),_0x1a8446('0x2830'),_0x1a8446('0x1320'),_0x1a8446('0x775'),_0x1a8446('0x36b')])[_0x1a8446('0x1b14')](_0x146a4b)['controller'](_0x1a8446('0x7b0'),_0x2f0112)[_0x1a8446('0x780')](_0x1a8446('0x74d'),_0x157042)[_0x1a8446('0x780')](_0x1a8446('0x2041'),_0x235006)[_0x1a8446('0x780')]('EditOpenchannelAccountAppagentDialogController',_0x35108d)['controller'](_0x1a8446('0x1008'),_0x2673d0)[_0x1a8446('0x780')](_0x1a8446('0x1c7f'),_0x5a66de)[_0x1a8446('0x780')](_0x1a8446('0x27e'),_0x27dd7d)[_0x1a8446('0x780')](_0x1a8446('0x2638'),_0x2ae3d8)['controller']('EditOpenchannelAccountAppgotoifDialogController',_0x352078)[_0x1a8446('0x780')](_0x1a8446('0x152b'),_0xf6eadb)[_0x1a8446('0x780')]('EditOpenchannelAccountAppintervalDialogController',_0x3ad0c6)['controller'](_0x1a8446('0x2619'),_0x1ae063)['controller'](_0x1a8446('0x1b2a'),_0xc7cff5)[_0x1a8446('0x780')]('EditOpenchannelAccountAppsystemDialogController',_0x5047e7)['controller'](_0x1a8446('0x393'),_0x29343e)[_0x1a8446('0x780')](_0x1a8446('0x48'),_0x28f72e)['controller']('OpenchannelAccountOpenchannelCannedAnswersController',_0x232c2c)[_0x1a8446('0x780')]('CreateOrEditOpenchannelCannedAnswerDialogController',_0x42969b)['controller'](_0x1a8446('0x1cda'),_0x228fef)[_0x1a8446('0x780')](_0x1a8446('0x1f18'),_0x108ecf)[_0x1a8446('0x780')](_0x1a8446('0x1516'),_0x3ed16b)[_0x1a8446('0x780')](_0x1a8446('0x2266'),_0x346463)['controller']('OpenchannelQueueagentaddController',_0x30c574)[_0x1a8446('0x780')](_0x1a8446('0x200f'),_0x133471)[_0x1a8446('0x780')]('OpenchannelQueueController',_0xc67729)[_0x1a8446('0x780')](_0x1a8446('0x64d'),_0x215d34);const _0x6e41ca=_0x4fb511['p']+'src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues-[chunkhash].html',_0x5ac7aa=_0x4fb511['p']+_0x1a8446('0x1f19'),_0x18a843=_0x4fb511['p']+'src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html/faxAccounts-[chunkhash].html',_0x309acc=_0x4fb511['p']+_0x1a8446('0x17ec'),_0x4a13ee=_0x4fb511['p']+_0x1a8446('0x161c'),_0x21807e=_0x4fb511['p']+_0x1a8446('0x798'),_0x130ab2=_0x4fb511['p']+_0x1a8446('0x2219'),_0x42f857=_0x4fb511['p']+_0x1a8446('0x108b'),_0x1483fd=_0x4fb511['p']+_0x1a8446('0x12bc');_0x12465d[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x145b'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0xf2c'),_0x1a8446('0x1411'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x12465d(_0x2835da,_0x19b4f4,_0x39b082,_0x50f642,_0x56f352,_0x577962,_0x745e49,_0x2ca9a4,_0x15c359,_0x4c40e8,_0xc5c148,_0x42ab9c,_0x44659d){var _0x2ca859=_0x1a8446,_0xfab5ca=this;_0xfab5ca[_0x2ca859('0x7fc')]=_0x44659d['getCurrentUser'](),_0xfab5ca[_0x2ca859('0xd15')]=_0x15c359&&_0x15c359[_0x2ca859('0xd15')]?_0x15c359['count']:0x0,_0xfab5ca[_0x2ca859('0xf2c')]=_0x15c359?_0x51538b()[_0x2ca859('0x184a')](_0x15c359['rows']?_0x15c359[_0x2ca859('0x580')]:[],'id'):{},_0xfab5ca[_0x2ca859('0x1411')]=_0x4c40e8?_0x51538b()['keyBy'](_0x4c40e8[_0x2ca859('0x580')]?_0x4c40e8['rows']:[],'id'):{},_0xfab5ca['userProfile']=_0xc5c148,_0xfab5ca[_0x2ca859('0x1a50')]=_0x42ab9c&&_0x42ab9c[_0x2ca859('0xd15')]==0x1?_0x42ab9c['rows'][0x0]:null,_0xfab5ca[_0x2ca859('0xada')]=_0x44659d[_0x2ca859('0xffd')](_0xfab5ca['userProfileSection']?_0xfab5ca[_0x2ca859('0x1a50')]['crudPermissions']:null),_0xfab5ca['query']={'sort':_0x2ca859('0x1282'),'limit':0xa,'page':0x1},_0xfab5ca['success']=_0x6c8c87,_0xfab5ca[_0x2ca859('0x141')]=_0x51b597,_0xfab5ca[_0x2ca859('0x1a9b')]=_0x380a8d,_0xfab5ca[_0x2ca859('0x1a4b')]=_0x45e8fc,_0xfab5ca[_0x2ca859('0x724')]=_0x10235e,_0xfab5ca[_0x2ca859('0x783')]=_0x54833a,_0xfab5ca[_0x2ca859('0x1536')]=[],_0x51538b()[_0x2ca859('0x143e')](_0xfab5ca[_0x2ca859('0xf2c')],function(_0x2de5db){var _0x2c4358=_0x2ca859;_0xfab5ca[_0x2c4358('0x1536')][_0x2c4358('0x1599')](_0x2de5db['id']);}),_0x745e49['on']('faxAccount:save',_0xfab5ca[_0x2ca859('0x1a4b')]),_0x745e49['on'](_0x2ca859('0x26b3'),_0xfab5ca[_0x2ca859('0x1a4b')]),_0x745e49['on'](_0x2ca859('0x1cc9'),_0xfab5ca['onFaxMessageSave']);function _0x51b597(){var _0x111dcb=_0x2ca859;_0x51538b()[_0x111dcb('0x143e')](_0xfab5ca['faxAccounts'],function(_0x109f1c,_0x3e2459){var _0x22d1bd=_0x111dcb;_0xfab5ca[_0x22d1bd('0x1411')][_0x3e2459]&&_0x51538b()[_0x22d1bd('0x283c')](_0x109f1c,_0xfab5ca[_0x22d1bd('0x1411')][_0x3e2459]);}),_0x51538b()[_0x111dcb('0x143e')](_0xfab5ca[_0x111dcb('0xf2c')],function(_0x5e7537,_0x278ed9){var _0x56af76=_0x111dcb,_0x19d0cc={'id':_0x278ed9,'sort':_0x56af76('0x133a'),'direction':'in','limit':0x1,'offset':0x0,'$gte':'createdAt,'+_0x420d43()()['startOf'](_0x56af76('0xa7c'))[_0x56af76('0x1f27')](_0x56af76('0x1463'))};_0x577962[_0x56af76('0x1f6a')][_0x56af76('0xbe0')](_0x19d0cc)[_0x56af76('0x1dc2')][_0x56af76('0xaa5')](function(_0x15e503){var _0x47aaba=_0x56af76;return _0x15e503&&(_0x5e7537['in']=_0x15e503[_0x47aaba('0xd15')]||0x0,_0x5e7537[_0x47aaba('0x27f5')]=_0x15e503[_0x47aaba('0x580')]&&_0x15e503[_0x47aaba('0x580')][_0x47aaba('0x2587')]?_0x15e503[_0x47aaba('0x580')][0x0][_0x47aaba('0x24a1')]:undefined),_0x19d0cc['direction']=_0x47aaba('0xdb'),_0x577962[_0x47aaba('0x1f6a')][_0x47aaba('0xbe0')](_0x19d0cc)[_0x47aaba('0x1dc2')];})[_0x56af76('0xaa5')](function(_0xd9d44a){var _0x398159=_0x56af76;_0xd9d44a&&(_0x5e7537[_0x398159('0xdb')]=_0xd9d44a['count']||0x0,_0x5e7537['lastOut']=_0xd9d44a[_0x398159('0x580')]&&_0xd9d44a[_0x398159('0x580')][_0x398159('0x2587')]?_0xd9d44a['rows'][0x0][_0x398159('0x24a1')]:undefined);})['catch'](function(_0x3bbc50){var _0x5e54d9=_0x56af76;console[_0x5e54d9('0x18d5')](_0x3bbc50);});});}function _0x45e8fc(_0x572eaf){var _0x5d6173=_0x2ca859;_0xfab5ca['faxAccounts'][_0x572eaf['id']]&&_0x51538b()[_0x5d6173('0x283c')](_0xfab5ca['faxAccounts'][_0x572eaf['id']],_0x572eaf);}function _0x10235e(_0x589a20){var _0x1f3857=_0x2ca859;_0xfab5ca[_0x1f3857('0xf2c')][_0x589a20['FaxAccountId']]&&(_0x589a20[_0x1f3857('0x1108')]=='in'?(_0xfab5ca[_0x1f3857('0xf2c')][_0x589a20[_0x1f3857('0x16a8')]]['in']+=0x1,_0xfab5ca[_0x1f3857('0xf2c')][_0x589a20[_0x1f3857('0x16a8')]][_0x1f3857('0x27f5')]=_0x589a20[_0x1f3857('0x24a1')]):(_0xfab5ca['faxAccounts'][_0x589a20['FaxAccountId']][_0x1f3857('0xdb')]+=0x1,_0xfab5ca['faxAccounts'][_0x589a20['FaxAccountId']][_0x1f3857('0xc6a')]=_0x589a20[_0x1f3857('0x24a1')]));}function _0x54833a(_0x5c14b5,_0x4d03cf){var _0x34ce0f=_0x2ca859;_0x56f352['go'](_0x34ce0f('0xfa5'),{'id':_0x4d03cf['id'],'faxAccount':_0x4d03cf});}var _0x4d854d=!![],_0x2bc95a=0x1;_0x2835da[_0x2ca859('0x1ccf')]('vm.query.filter',function(_0x54a681,_0x337acb){var _0xa833a5=_0x2ca859;_0x4d854d?_0x19b4f4(function(){_0x4d854d=![];}):(!_0x337acb&&(_0x2bc95a=_0xfab5ca[_0xa833a5('0x582')][_0xa833a5('0x41')]),_0x54a681!==_0x337acb&&(_0xfab5ca[_0xa833a5('0x582')]['page']=0x1),!_0x54a681&&(_0xfab5ca[_0xa833a5('0x582')][_0xa833a5('0x41')]=_0x2bc95a),_0xfab5ca['getFaxAccounts']());});function _0x6c8c87(_0x43b2bf){var _0x4040a8=_0x2ca859;_0xfab5ca['faxAccounts']=_0x43b2bf?_0x51538b()[_0x4040a8('0x184a')](_0x43b2bf[_0x4040a8('0x580')]?_0x43b2bf[_0x4040a8('0x580')]:[],'id'):{};if(_0x43b2bf['rows']){_0xfab5ca[_0x4040a8('0x1536')]=[];for(var _0x5c1426=0x0;_0x5c1426<_0x43b2bf['rows'][_0x4040a8('0x2587')];_0x5c1426++){_0xfab5ca[_0x4040a8('0x1536')][_0x4040a8('0x1599')](_0x43b2bf[_0x4040a8('0x580')][_0x5c1426]['id']);}}_0x51b597();}function _0x380a8d(){var _0x5d8937=_0x2ca859;_0xfab5ca[_0x5d8937('0x582')][_0x5d8937('0x8b1')]=(_0xfab5ca['query'][_0x5d8937('0x41')]-0x1)*_0xfab5ca['query'][_0x5d8937('0xf4d')],_0x44659d['hasRole'](_0x5d8937('0x178b'))?_0xfab5ca[_0x5d8937('0x159a')]=_0x577962[_0x5d8937('0x1f6a')]['get'](_0xfab5ca['query'],_0x6c8c87)[_0x5d8937('0x1dc2')]:(_0xfab5ca[_0x5d8937('0x582')]['id']=_0xfab5ca[_0x5d8937('0x1e97')]['id'],_0xfab5ca[_0x5d8937('0x582')][_0x5d8937('0x224d')]=_0x5d8937('0xd5'),_0xfab5ca[_0x5d8937('0x159a')]=_0x577962[_0x5d8937('0x1e97')][_0x5d8937('0x1cf1')](_0xfab5ca[_0x5d8937('0x582')],_0x6c8c87)[_0x5d8937('0x1dc2')]);}_0x2835da[_0x2ca859('0xc75')]('$destroy',function(){var _0x109a16=_0x2ca859;_0x745e49[_0x109a16('0x2629')]('faxAccount:save'),_0x745e49[_0x109a16('0x2629')]('faxAccount:update'),_0x745e49[_0x109a16('0x2629')](_0x109a16('0x1cc9'));});}const _0x535b5d=_0x12465d;_0x26775b['$inject']=[_0x1a8446('0x51'),'$q',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x24ea'),'pauses',_0x1a8446('0x1717'),'rpcAgents',_0x1a8446('0x157'),'socket',_0x1a8446('0x2a4'),_0x1a8446('0x5b4'),_0x1a8446('0x1e97'),'userProfileSection','Auth',_0x1a8446('0x1202'),_0x1a8446('0x21b3')];function _0x26775b(_0x4a067b,_0x13a0be,_0x2587d1,_0x2e45c9,_0x54080c,_0x127e17,_0xc589f,_0x53eae2,_0x525b69,_0x29d470,_0x5c49e7,_0x24adc0,_0x30ea0c,_0x31b4a2,_0x25252d,_0x1ab1e8,_0x11b963,_0x1d7428){var _0x1a2e5b=_0x1a8446,_0x1a4dbe=this,_0x5eff63=[_0x1a2e5b('0x1af3'),_0x1a2e5b('0x175'),_0x1a2e5b('0x2340'),_0x1a2e5b('0x1ce0'),_0x1a2e5b('0x25f0'),_0x1a2e5b('0x1ce0'),_0x1a2e5b('0x1b0d'),_0x1a2e5b('0xdf8'),_0x1a2e5b('0x1f36'),'openchannelPause',_0x1a2e5b('0x21f'),'smsPause',_0x1a2e5b('0x231a'),'faxPause',_0x1a2e5b('0x2519'),_0x1a2e5b('0xe55'),'openchannelCapacity',_0x1a2e5b('0x18d6'),_0x1a2e5b('0x26cb'),'whatsappCapacity',_0x1a2e5b('0x6ed'),_0x1a2e5b('0x607'),_0x1a2e5b('0x275a'),_0x1a2e5b('0x24fb'),_0x1a2e5b('0x1382'),_0x1a2e5b('0x26c8'),_0x1a2e5b('0xea8'),_0x1a2e5b('0xeb4'),_0x1a2e5b('0x293'),_0x1a2e5b('0x4c3'),_0x1a2e5b('0x24d1'),_0x1a2e5b('0x1579'),_0x1a2e5b('0x19d2'),'voiceStatus',_0x1a2e5b('0x748'),_0x1a2e5b('0x26e5'),_0x1a2e5b('0xd27'),_0x1a2e5b('0x1561'),_0x1a2e5b('0x166b'),_0x1a2e5b('0xa0a'),_0x1a2e5b('0x1ddc'),'queue',_0x1a2e5b('0x14d3'),_0x1a2e5b('0x14c3'),_0x1a2e5b('0x1b72'),'phoneBarEnableAutomaticScreenRecording'],_0x47d552=[_0x1a2e5b('0x1f36'),'openchannelPause','mailPause',_0x1a2e5b('0x462'),_0x1a2e5b('0x231a'),'faxPause',_0x1a2e5b('0x2519'),_0x1a2e5b('0x175')];_0x1a4dbe[_0x1a2e5b('0x7fc')]=_0x1ab1e8[_0x1a2e5b('0xacc')](),_0x1a4dbe['availableStates']=[_0x1a2e5b('0xb02'),_0x1a2e5b('0x1028'),_0x1a2e5b('0xa1e'),'onhold',_0x1a2e5b('0x2509')],_0x1a4dbe[_0x1a2e5b('0x2457')]=_0xc589f||{'count':0x0,'rows':[]},_0x1a4dbe[_0x1a2e5b('0x1202')]=_0x11b963,_0x1a4dbe[_0x1a2e5b('0x1e97')]=_0x31b4a2,_0x1a4dbe[_0x1a2e5b('0x1a50')]=_0x25252d&&_0x25252d[_0x1a2e5b('0xd15')]==0x1?_0x25252d[_0x1a2e5b('0x580')][0x0]:null,_0x1a4dbe['crudPermissions']=_0x1ab1e8['parseCrudPermissions'](_0x1a4dbe[_0x1a2e5b('0x1a50')]?_0x1a4dbe['userProfileSection'][_0x1a2e5b('0xada')]:null),_0x1a4dbe['agents']=_0x53eae2?_0x51538b()[_0x1a2e5b('0x184a')](_0x53eae2[_0x1a2e5b('0x580')]?_0x53eae2[_0x1a2e5b('0x580')]:[],'id'):{},_0x1a4dbe['rpcAgents']=_0x525b69?_0x51538b()['keyBy'](_0x525b69[_0x1a2e5b('0x580')]?_0x525b69[_0x1a2e5b('0x580')]:[],'id'):{},_0x1a4dbe[_0x1a2e5b('0xd28')]={},_0x1a4dbe[_0x1a2e5b('0x259c')]=![],_0x1a4dbe['order']=[],_0x1a4dbe[_0x1a2e5b('0x21f2')]={};for(var _0x2873fe in _0x1a4dbe[_0x1a2e5b('0x1717')]){typeof _0x1a4dbe[_0x1a2e5b('0x1717')][_0x2873fe]!==_0x1a2e5b('0x1574')&&(_0x1a4dbe[_0x1a2e5b('0x1717')][_0x2873fe][_0x1a2e5b('0x2e')]=!![]);}_0x1a4dbe[_0x1a2e5b('0x582')]={'limit':0xa,'page':0x1,'order':_0x1a2e5b('0x18e5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x1a4dbe[_0x1a2e5b('0x1bc9')]=_0x1b2557,_0x1a4dbe[_0x1a2e5b('0x1931')]=_0x1f72e2,_0x1a4dbe[_0x1a2e5b('0x167c')]=_0x399adf,_0x1a4dbe[_0x1a2e5b('0x15e8')]=_0x2f9fd5,_0x1a4dbe[_0x1a2e5b('0x18ba')]=_0x3f76fb,_0x1a4dbe[_0x1a2e5b('0xf42')]=_0x31da22,_0x1a4dbe['getAgentGlobalStatus']=_0x5b29fa,_0x1a4dbe[_0x1a2e5b('0x11c')]=_0x1a1841,_0x1a4dbe['checkPause']=_0xae17ee,_0x1a4dbe[_0x1a2e5b('0x1592')]=_0x2c09f4,_0x1a4dbe[_0x1a2e5b('0x1a4b')]=_0x2d30c0,_0x1a4dbe['onUpdate']=_0x2aff8e,_0x1a4dbe[_0x1a2e5b('0x2318')]=_0x1ba0db,_0x1a4dbe[_0x1a2e5b('0xe9b')]=_0x322c82,_0x1a4dbe[_0x1a2e5b('0xd53')]=_0x4c2921,_0x1a4dbe[_0x1a2e5b('0x15eb')]=_0x166433,_0x5c49e7['on'](_0x1a2e5b('0x1acf'),_0x1a4dbe[_0x1a2e5b('0x1a4b')]),_0x5c49e7['on'](_0x1a2e5b('0x15fb'),_0x1a4dbe['onUpdate']),_0x5c49e7['on'](_0x1a2e5b('0x25ea'),_0x1a4dbe[_0x1a2e5b('0xe9b')]),_0x5c49e7['on'](_0x1a2e5b('0x2728'),_0x1a4dbe[_0x1a2e5b('0xd53')]),_0x1ba0db();var _0xb97099=_0x1d7428(function(){_0x1a4dbe['load']&&(_0x1a4dbe['load']=![],_0x1ba0db());},0x3e7);function _0x1ba0db(){var _0x27886f=_0x1a2e5b;_0x1a4dbe['load']=![];var _0x1268cd=_0x13a0be[_0x27886f('0x213b')]();_0x1a4dbe[_0x27886f('0x159a')]=_0x1268cd[_0x27886f('0x159a')],_0x1a4dbe[_0x27886f('0x1d77')]=[],_0x1a4dbe[_0x27886f('0x1536')]=[],_0x51538b()[_0x27886f('0x143e')](_0x1a4dbe[_0x27886f('0x1717')],function(_0x1befda,_0x25f15f){var _0x3ffcc7=_0x27886f;_0x1a4dbe[_0x3ffcc7('0x1f1d')][_0x25f15f]&&_0x51538b()[_0x3ffcc7('0x283c')](_0x1befda,_0x51538b()[_0x3ffcc7('0x104e')](_0x51538b()[_0x3ffcc7('0x245')](_0x1a4dbe[_0x3ffcc7('0x1f1d')][_0x25f15f],_0x47d552),_0x5eff63)),_0x5b29fa(_0x1befda),_0x1befda[_0x3ffcc7('0x175')]?(_0x1a4dbe[_0x3ffcc7('0x1d77')]['push'](_0x1befda),_0x1a4dbe[_0x3ffcc7('0x21f2')][_0x1befda[_0x3ffcc7('0x1b0d')]]=_0x25f15f):_0x1befda[_0x3ffcc7('0x920')]=_0x51538b()[_0x3ffcc7('0x228e')](_0x420d43()()[_0x3ffcc7('0x1f27')]('x'));});_0x1a4dbe[_0x27886f('0x582')][_0x27886f('0x107')]&&_0x51538b()['remove'](_0x1a4dbe[_0x27886f('0x1d77')],function(_0x5546d5){var _0x3a5243=_0x27886f;return _0x5546d5[_0x3a5243('0x151c')]!==_0x1a4dbe[_0x3a5243('0x582')][_0x3a5243('0x107')];});_0x1a4dbe[_0x27886f('0x582')][_0x27886f('0x1bfd')]&&_0x51538b()[_0x27886f('0xf6d')](_0x1a4dbe[_0x27886f('0x1d77')],function(_0xf37fa5){var _0x1848f8=_0x27886f;return _0xf37fa5['pauseType']!==_0x1a4dbe[_0x1848f8('0x582')][_0x1848f8('0x1bfd')];});_0x1a4dbe[_0x27886f('0x582')][_0x27886f('0xdb7')]&&_0x51538b()['remove'](_0x1a4dbe[_0x27886f('0x1d77')],function(_0x174874){var _0xf69dd4=_0x27886f;return _0x174874['fullname'][_0xf69dd4('0xcf6')]()['indexOf'](_0x1a4dbe['query'][_0xf69dd4('0xdb7')][_0xf69dd4('0xcf6')]())<0x0;});_0x1a4dbe[_0x27886f('0x1d77')]=_0x2084fc(_0x1a4dbe[_0x27886f('0x1d77')]);var _0x1f1510=(_0x1a4dbe[_0x27886f('0x582')][_0x27886f('0x41')]-0x1)*_0x1a4dbe[_0x27886f('0x582')][_0x27886f('0xf4d')];_0x1a4dbe[_0x27886f('0xd28')]=_0x51538b()[_0x27886f('0x485')](_0x1a4dbe[_0x27886f('0x1d77')],_0x1f1510)['slice'](0x0,_0x1a4dbe[_0x27886f('0x582')][_0x27886f('0xf4d')]);for(var _0x26916b=0x0;_0x26916b<_0x1a4dbe[_0x27886f('0xd28')][_0x27886f('0x2587')];_0x26916b+=0x1){_0x1a4dbe[_0x27886f('0x1536')][_0x27886f('0x1599')](_0x1a4dbe[_0x27886f('0xd28')][_0x26916b]['id']);}_0x1268cd[_0x27886f('0x149f')](),_0x1a4dbe[_0x27886f('0x259c')]=!![];}function _0x2d30c0(_0x71071e){var _0xbbb9b4=_0x1a2e5b;_0x1a4dbe[_0xbbb9b4('0x1717')][_0x71071e['id']]&&(_0x51538b()[_0xbbb9b4('0x283c')](_0x1a4dbe['agents'][_0x71071e['id']],_0x51538b()[_0xbbb9b4('0x104e')](_0x51538b()[_0xbbb9b4('0x245')](_0x71071e,_0x47d552),_0x5eff63)),_0x51538b()[_0xbbb9b4('0x283c')](_0x1a4dbe['rpcAgents'][_0x71071e['id']],_0x51538b()[_0xbbb9b4('0x104e')](_0x51538b()[_0xbbb9b4('0x245')](_0x71071e,_0x47d552),_0x5eff63)),_0x5b29fa(_0x1a4dbe[_0xbbb9b4('0x1717')][_0x71071e['id']]));}function _0x2aff8e(_0x249b0d){var _0x580a84=_0x1a2e5b;_0x1a4dbe['agents'][_0x249b0d['id']]&&(_0x51538b()[_0x580a84('0x283c')](_0x1a4dbe[_0x580a84('0x1717')][_0x249b0d['id']],_0x51538b()[_0x580a84('0x104e')](_0x249b0d,_0x5eff63)),_0x51538b()[_0x580a84('0x283c')](_0x1a4dbe[_0x580a84('0x1f1d')][_0x249b0d['id']],_0x51538b()[_0x580a84('0x104e')](_0x249b0d,_0x5eff63)),_0x249b0d[_0x580a84('0x1ce0')]&&(_0x1a4dbe[_0x580a84('0x1717')][_0x249b0d['id']][_0x580a84('0x920')]=_0x249b0d[_0x580a84('0x1ce0')],_0x1a4dbe[_0x580a84('0x1f1d')][_0x249b0d['id']]['globalStatusTime']=_0x249b0d[_0x580a84('0x1ce0')]),_0x5b29fa(_0x1a4dbe['agents'][_0x249b0d['id']]));}function _0x322c82(_0x34ebce){var _0x368d1e=_0x1a2e5b;_0x1a4dbe[_0x368d1e('0x1717')][_0x1a4dbe[_0x368d1e('0x21f2')][_0x34ebce['destaccountcode']]]&&(_0x51538b()['merge'](_0x1a4dbe[_0x368d1e('0x1717')][_0x1a4dbe['agentInternal'][_0x34ebce[_0x368d1e('0x2525')]]],_0x51538b()['pick'](_0x34ebce,[_0x368d1e('0xe26'),_0x368d1e('0x14d3')])),_0x51538b()[_0x368d1e('0x283c')](_0x1a4dbe[_0x368d1e('0x1f1d')][_0x1a4dbe[_0x368d1e('0x21f2')][_0x34ebce[_0x368d1e('0x2525')]]],_0x51538b()[_0x368d1e('0x104e')](_0x34ebce,[_0x368d1e('0xe26'),'destconnectedlinenum'])));}function _0x4c2921(_0x537757){var _0x3d1df4=_0x1a2e5b;_0x1a4dbe['agents'][_0x1a4dbe[_0x3d1df4('0x21f2')][_0x537757[_0x3d1df4('0x2525')]]]&&(_0x1a4dbe[_0x3d1df4('0x1717')][_0x1a4dbe['agentInternal'][_0x537757[_0x3d1df4('0x2525')]]]=_0x51538b()[_0x3d1df4('0x245')](_0x1a4dbe['agents'][_0x1a4dbe[_0x3d1df4('0x21f2')][_0x537757[_0x3d1df4('0x2525')]]],[_0x3d1df4('0xe26'),'destconnectedlinenum']),_0x1a4dbe[_0x3d1df4('0x1f1d')][_0x1a4dbe[_0x3d1df4('0x21f2')][_0x537757[_0x3d1df4('0x2525')]]]=_0x51538b()['omit'](_0x1a4dbe[_0x3d1df4('0x1f1d')][_0x1a4dbe[_0x3d1df4('0x21f2')][_0x537757[_0x3d1df4('0x2525')]]],[_0x3d1df4('0xe26'),_0x3d1df4('0x14d3')]));}function _0x1b2557(_0x3e7a48){var _0xbbd112=_0x1a2e5b;return _0x29d470[_0xbbd112('0x272b')]['logout']({'id':_0x3e7a48['id'],'device':_0xbbd112('0x4f3'),'agent_id':_0x3e7a48['id'],'agent_name':_0x3e7a48[_0xbbd112('0x25d6')]})[_0xbbd112('0x1dc2')]['then'](function(){var _0x305d17=_0xbbd112;_0x24adc0[_0x305d17('0xe10')]({'title':_0x305d17('0x1cdb'),'msg':_0x3e7a48[_0x305d17('0x18e5')]+'\x20\x20properly\x20logout'}),_0x1a4dbe[_0x305d17('0x1717')][_0x3e7a48['id']]&&(_0x1a4dbe[_0x305d17('0x1717')][_0x3e7a48['id']][_0x305d17('0x175')]=![]),_0x1a4dbe[_0x305d17('0x1f1d')][_0x3e7a48['id']]&&(_0x1a4dbe[_0x305d17('0x1f1d')][_0x3e7a48['id']]['online']=![]),_0x1ba0db();})[_0xbbd112('0x253d')](function(_0x2511dc){var _0x5831d8=_0xbbd112;_0x24adc0[_0x5831d8('0x187f')]({'title':_0x2511dc[_0x5831d8('0x2fa')]?_0x5831d8('0x16c2')+_0x2511dc[_0x5831d8('0x2fa')]+_0x5831d8('0x169e')+_0x2511dc['statusText']:_0x5831d8('0xb8c'),'msg':_0x2511dc[_0x5831d8('0x10fd')]?JSON[_0x5831d8('0xa48')](_0x2511dc[_0x5831d8('0x10fd')][_0x5831d8('0x1402')]):_0x2511dc['toString']()});});}function _0x399adf(_0xede6d5,_0x3c7841){var _0x2ff812=_0x1a2e5b;return _0x29d470['user'][_0x2ff812('0x167c')]({'id':_0xede6d5['id'],'type':_0x3c7841})[_0x2ff812('0x1dc2')][_0x2ff812('0xaa5')](function(_0xd3da9f){var _0x5891ca=_0x2ff812;_0x1a4dbe[_0x5891ca('0x1717')][_0xede6d5['id']]&&_0x51538b()[_0x5891ca('0x283c')](_0x1a4dbe[_0x5891ca('0x1717')][_0xede6d5['id']],_0x51538b()[_0x5891ca('0x104e')](_0xd3da9f,_0x5eff63)),_0x1a4dbe[_0x5891ca('0x1f1d')][_0xede6d5['id']]&&_0x51538b()['merge'](_0x1a4dbe[_0x5891ca('0x1f1d')][_0xede6d5['id']],_0x51538b()[_0x5891ca('0x104e')](_0xd3da9f,_0x5eff63)),_0x5b29fa(_0x1a4dbe[_0x5891ca('0x1717')][_0xede6d5['id']]);})[_0x2ff812('0x253d')](function(_0xd07087){var _0x1dfb8b=_0x2ff812;_0x24adc0[_0x1dfb8b('0x187f')]({'title':_0xd07087['status']?'API:'+_0xd07087[_0x1dfb8b('0x2fa')]+_0x1dfb8b('0x169e')+_0xd07087[_0x1dfb8b('0x24df')]:_0x1dfb8b('0xb8c'),'msg':_0xd07087[_0x1dfb8b('0x10fd')]?JSON[_0x1dfb8b('0xa48')](_0xd07087['data']['message']):_0xd07087['toString']()});});}function _0x2f9fd5(_0x24d144){var _0x31690a=_0x1a2e5b;return _0x29d470[_0x31690a('0x272b')][_0x31690a('0x297')]({'id':_0x24d144['id']})[_0x31690a('0x1dc2')][_0x31690a('0xaa5')](function(_0x46a273){var _0x19f336=_0x31690a;_0x1a4dbe['agents'][_0x24d144['id']]&&_0x51538b()[_0x19f336('0x283c')](_0x1a4dbe[_0x19f336('0x1717')][_0x24d144['id']],_0x51538b()[_0x19f336('0x104e')](_0x46a273,_0x5eff63)),_0x1a4dbe['rpcAgents'][_0x24d144['id']]&&_0x51538b()[_0x19f336('0x283c')](_0x1a4dbe[_0x19f336('0x1f1d')][_0x24d144['id']],_0x51538b()[_0x19f336('0x104e')](_0x46a273,_0x5eff63)),_0x5b29fa(_0x1a4dbe[_0x19f336('0x1717')][_0x24d144['id']]);})[_0x31690a('0x253d')](function(_0x28ee4b){var _0x2355f1=_0x31690a;_0x24adc0['error']({'title':_0x28ee4b['status']?_0x2355f1('0x16c2')+_0x28ee4b['status']+_0x2355f1('0x169e')+_0x28ee4b['statusText']:'api.staff.save','msg':_0x28ee4b[_0x2355f1('0x10fd')]?JSON[_0x2355f1('0xa48')](_0x28ee4b[_0x2355f1('0x10fd')]['message']):_0x28ee4b[_0x2355f1('0x684')]()});});}function _0x3f76fb(_0x20623c){var _0x116274=_0x1a2e5b;_0x2e45c9['show'](_0x2e45c9[_0x116274('0xc10')]()['clickOutsideToClose'](!![])[_0x116274('0x110a')](_0x116274('0x17e'))['htmlContent'](_0x116274('0x9b3'))['ok']('Ok')[_0x116274('0x116d')](_0x20623c));}function _0x1f72e2(_0x380d0f,_0x48c8de){var _0x3a5146=_0x1a2e5b;_0x2e45c9[_0x3a5146('0x1e6d')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x3a2df9,'parent':angular[_0x3a5146('0x1aa8')](_0x54080c[_0x3a5146('0x54c')]),'targetEvent':_0x48c8de,'clickOutsideToClose':!![],'locals':{'agent':_0x380d0f,'agents':[],'channel':'fax','direction':_0x3a5146('0x4b8'),'crudPermissions':_0x1a4dbe['crudPermissions']}});}function _0x1a1841(_0x2ae435){var _0x413de3=_0x1a2e5b;return _0x2ae435===_0x413de3('0x167c')||_0x2ae435===_0x413de3('0xa7d');}function _0xae17ee(_0x5adaea){var _0x32a0f9=_0x1a2e5b;return _0x5adaea===_0x32a0f9('0x167c');}function _0x2c09f4(_0x57cb40){var _0x100343=_0x1a2e5b;return _0x57cb40===_0x100343('0xa7d');}function _0x4d57d0(_0x25eb52){var _0x42c8be=_0x1a2e5b;return _0x25eb52===_0x42c8be('0x135e')||_0x25eb52===_0x42c8be('0x15fd')||_0x25eb52===_0x42c8be('0x2296')||_0x25eb52==='ringing'||_0x51538b()[_0x42c8be('0x89a')](_0x25eb52);}function _0x31da22(_0x19fa87,_0x356283){var _0x445305=_0x1a2e5b;if(_0x356283==='voice'){if(_0x19fa87[_0x356283+_0x445305('0x26ae')]!==_0x445305('0x135e'))return _0x19fa87[_0x356283+'Status'];if(_0x19fa87[_0x356283+'Pause'])return _0x19fa87[_0x356283+_0x445305('0x26ae')]=_0x445305('0x167c'),'pause';return _0x445305('0x135e');}else{if(_0x19fa87[_0x356283+_0x445305('0x1bcd')])return _0x19fa87[_0x356283+'Status']=_0x445305('0x167c'),_0x445305('0x167c');return _0x19fa87[_0x356283+_0x445305('0x26ae')];}}function _0x5b29fa(_0xe51454){var _0x5abcc8=_0x1a2e5b,_0x45ef5f=_0x5abcc8('0x15fd');if(_0x51538b()[_0x5abcc8('0x2ed')]([_0x31da22(_0xe51454,_0x5abcc8('0x1b9')),_0x31da22(_0xe51454,'chat'),_0x31da22(_0xe51454,_0x5abcc8('0x14c5')),_0x31da22(_0xe51454,_0x5abcc8('0x170')),_0x31da22(_0xe51454,_0x5abcc8('0x18da')),_0x31da22(_0xe51454,'whatsapp'),_0x31da22(_0xe51454,_0x5abcc8('0x16c4'))],_0x1a1841))_0x45ef5f=_0x5abcc8('0x167c');else{if(_0x51538b()[_0x5abcc8('0x2c2')]([_0x31da22(_0xe51454,'voice'),_0x31da22(_0xe51454,_0x5abcc8('0x20f9')),_0x31da22(_0xe51454,_0x5abcc8('0x14c5')),_0x31da22(_0xe51454,'openchannel'),_0x31da22(_0xe51454,_0x5abcc8('0x18da')),_0x31da22(_0xe51454,_0x5abcc8('0x220d')),_0x31da22(_0xe51454,_0x5abcc8('0x16c4'))],_0x1a1841))_0x45ef5f='*pause';else _0x51538b()[_0x5abcc8('0x2ed')]([_0x31da22(_0xe51454,_0x5abcc8('0x1b9')),_0x31da22(_0xe51454,'chat'),_0x31da22(_0xe51454,_0x5abcc8('0x14c5')),_0x31da22(_0xe51454,_0x5abcc8('0x170')),_0x31da22(_0xe51454,'sms'),_0x31da22(_0xe51454,_0x5abcc8('0x220d')),_0x31da22(_0xe51454,_0x5abcc8('0x16c4'))],_0x4d57d0)?_0x45ef5f=_0x5abcc8('0x135e'):_0x45ef5f='busy';}_0xe51454[_0x5abcc8('0x151c')]!==_0x45ef5f&&(_0xe51454['globalStatus']=_0x45ef5f,_0xe51454[_0x5abcc8('0x2e')]?(_0xe51454['init']=![],_0xe51454['globalStatusTime']=_0x1a1841(_0x45ef5f)?_0x51538b()[_0x5abcc8('0x228e')](_0x420d43()(_0xe51454[_0x5abcc8('0x1ce0')])[_0x5abcc8('0x1f27')]('x')):_0x51538b()['max']([_0xe51454[_0x5abcc8('0x1ddc')],_0xe51454['chatStatusTime'],_0xe51454[_0x5abcc8('0xd27')],_0xe51454['smsStatusTime'],_0xe51454[_0x5abcc8('0x166b')],_0xe51454['openchannelStatusTime'],_0xe51454[_0x5abcc8('0xa0a')]])):_0xe51454[_0x5abcc8('0x920')]=_0x51538b()['toNumber'](_0x420d43()()[_0x5abcc8('0x1f27')]('x')));}function _0x2084fc(_0x366515){var _0x301485=_0x1a2e5b,_0x419b1e=_0x51538b()[_0x301485('0x6e8')](_0x1a4dbe[_0x301485('0x582')]['order'],'-')?_0x301485('0x71c'):'asc';return _0x51538b()[_0x301485('0x271d')](_0x366515,[_0x1a4dbe[_0x301485('0x582')][_0x301485('0x1536')][_0x301485('0x170d')]('-','')],[_0x419b1e]);}function _0x29b511(){var _0x361b29=_0x1a2e5b;_0xb97099&&(_0x1d7428[_0x361b29('0x2030')](_0xb97099),_0xb97099=null);}function _0x166433(_0x4b1b5e,_0x4ddbe0){var _0x322213=_0x1a2e5b;return _0x29d470[_0x322213('0x272b')][_0x322213('0x264e')]({'id':_0x4b1b5e['id']},{'screenrecording':_0x4ddbe0})[_0x322213('0x1dc2')][_0x322213('0x253d')](function(_0x460bde){var _0x3a2628=_0x322213;_0x24adc0['error']({'title':_0x460bde['status']?_0x3a2628('0x16c2')+_0x460bde[_0x3a2628('0x2fa')]+_0x3a2628('0x169e')+_0x460bde['statusText']:_0x3a2628('0x11e6'),'msg':_0x460bde['data']?JSON['stringify'](_0x460bde[_0x3a2628('0x10fd')][_0x3a2628('0x1402')]):_0x460bde[_0x3a2628('0x684')]()});});}_0x4a067b[_0x1a2e5b('0xc75')](_0x1a2e5b('0x12d0'),function(){var _0x14f327=_0x1a2e5b;_0x5c49e7[_0x14f327('0x2629')](_0x14f327('0x1acf')),_0x5c49e7['removeAllListeners'](_0x14f327('0x15fb')),_0x5c49e7[_0x14f327('0x2629')](_0x14f327('0x25ea')),_0x5c49e7[_0x14f327('0x2629')](_0x14f327('0x2728')),_0x29b511();});}const _0x2dd786=_0x26775b,_0x25aefa=_0x4fb511['p']+_0x1a8446('0x1457'),_0x1539a4=_0x4fb511['p']+_0x1a8446('0xf7f');_0x2fb6c6[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$q','$document',_0x1a8446('0x21b3'),_0x1a8446('0x4d7'),_0x1a8446('0x1f2f'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),'userProfile',_0x1a8446('0x1a50'),'Auth'];function _0x2fb6c6(_0x3370e4,_0x380b7c,_0x27d56f,_0x5202d6,_0x26b13e,_0x153d91,_0x43fb36,_0x21e933,_0x3076cb,_0x6ee43,_0x1667f1,_0x2cd5a4,_0x49f854,_0x3593c9){var _0x43040f=_0x1a8446,_0x1c9957=this,_0x213e13=[_0x43040f('0x2226'),'available',_0x43040f('0xd3d'),_0x43040f('0xf01'),'pTalking',_0x43040f('0x301'),_0x43040f('0x1402'),_0x43040f('0x1b71'),_0x43040f('0x1ba1'),_0x43040f('0x4a6'),_0x43040f('0x16ce')];_0x1c9957[_0x43040f('0x7fc')]=_0x3593c9[_0x43040f('0xacc')](),_0x1c9957[_0x43040f('0xd15')]=_0x43fb36['count']?_0x43fb36['count']:0x0,_0x1c9957[_0x43040f('0x4d7')]=_0x43fb36?_0x51538b()[_0x43040f('0x184a')](_0x43fb36[_0x43040f('0x580')]?_0x43fb36[_0x43040f('0x580')]:[],'id'):{},_0x1c9957[_0x43040f('0x1f2f')]=_0x21e933?_0x51538b()[_0x43040f('0x184a')](_0x21e933[_0x43040f('0x580')]?_0x21e933[_0x43040f('0x580')]:[],'id'):{},_0x1c9957['userProfile']=_0x2cd5a4,_0x1c9957[_0x43040f('0x1a50')]=_0x49f854&&_0x49f854['count']==0x1?_0x49f854[_0x43040f('0x580')][0x0]:null,_0x1c9957[_0x43040f('0xada')]=_0x3593c9['parseCrudPermissions'](_0x1c9957[_0x43040f('0x1a50')]?_0x1c9957['userProfileSection'][_0x43040f('0xada')]:null);_0x3593c9[_0x43040f('0x26e8')](_0x43040f('0x178b'))?_0x1c9957['query']={'type':'inbound','sort':_0x43040f('0xd82'),'limit':0xa,'page':0x1}:_0x1c9957[_0x43040f('0x582')]={'id':_0x1c9957[_0x43040f('0x7fc')]['id'],'channel':_0x43040f('0x16c4'),'type':_0x43040f('0x4b8'),'sort':_0x43040f('0xd82'),'limit':0xa,'page':0x1};_0x1c9957[_0x43040f('0xe10')]=_0x441f50,_0x1c9957[_0x43040f('0x1e87')]=_0x24277f,_0x1c9957[_0x43040f('0x277a')]=_0x109532,_0x1c9957[_0x43040f('0x101f')]=_0x478570,_0x1c9957[_0x43040f('0x19b3')]=_0xa054c2,_0x1c9957[_0x43040f('0x1a4b')]=_0x48d7ad,_0x1c9957['onSaveMember']=_0x3aaf1e,_0x1c9957['onRemoveMember']=_0x4a0bac,_0x1c9957[_0x43040f('0x2511')]=_0xcf34d3,_0x1c9957[_0x43040f('0x24d2')]=_0x465974,_0x1c9957[_0x43040f('0x10c6')]=_0x43f4e0,_0x1c9957[_0x43040f('0x141')]=_0x3db49b,_0x1c9957[_0x43040f('0x1536')]=[],_0x51538b()[_0x43040f('0x143e')](_0x1c9957['queues'],function(_0x26561b){var _0xd5c85=_0x43040f;_0x1c9957['order'][_0xd5c85('0x1599')](_0x26561b['id']);}),_0x6ee43['on'](_0x43040f('0x1e03'),_0x1c9957[_0x43040f('0x1a4b')]),_0x6ee43['on'](_0x43040f('0x699'),_0x1c9957[_0x43040f('0x22a5')]),_0x6ee43['on'](_0x43040f('0x1e19'),_0x1c9957[_0x43040f('0x6d4')]),_0x6ee43['on'](_0x43040f('0x15fb'),_0x1c9957['onPause']),_0x6ee43['on'](_0x43040f('0x10ac'),_0x1c9957[_0x43040f('0x10c6')]),_0x6ee43['on']('userVoiceQueue:save',_0x1c9957[_0x43040f('0x24d2')]);function _0x3db49b(){var _0x120cfb=_0x43040f,_0x5e2c91=[];return _0x51538b()['forIn'](_0x1c9957[_0x120cfb('0x4d7')],function(_0x723099,_0x1c79bb){var _0x51c2c3=_0x120cfb;_0x723099[_0x51c2c3('0x16ce')]=0x0,_0x723099[_0x51c2c3('0xe81')]=0x0,_0x1c9957[_0x51c2c3('0x4d7')][_0x1c79bb][_0x51c2c3('0x1717')]={},_0x5e2c91[_0x51c2c3('0x1599')](_0x3076cb[_0x51c2c3('0xaf9')]['getMembers']({'id':_0x1c79bb})[_0x51c2c3('0x1dc2')]),_0x1c9957[_0x51c2c3('0x1f2f')][_0x1c79bb]&&_0x51538b()[_0x51c2c3('0x283c')](_0x723099,_0x51538b()[_0x51c2c3('0x104e')](_0x1c9957[_0x51c2c3('0x1f2f')][_0x1c79bb],_0x213e13));}),_0x5202d6[_0x120cfb('0xa15')](_0x5e2c91)['then'](function(_0x14ff9d){var _0x1800c1=_0x120cfb;for(var _0x3eec8a=0x0;_0x3eec8a<_0x14ff9d[_0x1800c1('0x2587')];_0x3eec8a+=0x1){for(var _0xc24929=0x0;_0xc24929<_0x14ff9d[_0x3eec8a][_0x1800c1('0x580')][_0x1800c1('0x2587')];_0xc24929++){_0x14ff9d[_0x3eec8a][_0x1800c1('0x580')][_0xc24929][_0x1800c1('0x16ce')]&&_0x1c9957['queues'][_0x14ff9d[_0x3eec8a][_0x1800c1('0x580')][_0xc24929]['FaxQueueId']][_0x1800c1('0x16ce')]++,_0x1c9957['queues'][_0x14ff9d[_0x3eec8a]['rows'][_0xc24929][_0x1800c1('0x6b5')]][_0x1800c1('0xe81')]++,_0x1c9957[_0x1800c1('0x4d7')][_0x14ff9d[_0x3eec8a]['rows'][_0xc24929][_0x1800c1('0x6b5')]][_0x1800c1('0x1717')][_0x14ff9d[_0x3eec8a][_0x1800c1('0x580')][_0xc24929][_0x1800c1('0x1037')]]=_0x14ff9d[_0x3eec8a][_0x1800c1('0x580')][_0xc24929][_0x1800c1('0x6b5')];}}})['catch'](function(_0x3c7048){var _0x3fea94=_0x120cfb;console[_0x3fea94('0x187f')](_0x3c7048);});}function _0x48d7ad(_0xe8511e){var _0xfb2997=_0x43040f;_0x1c9957[_0xfb2997('0x4d7')][_0xe8511e['id']]&&_0x51538b()[_0xfb2997('0x283c')](_0x1c9957[_0xfb2997('0x4d7')][_0xe8511e['id']],_0x51538b()[_0xfb2997('0x104e')](_0xe8511e,_0x213e13));}function _0x3aaf1e(_0x1529bf){var _0x35462d=_0x43040f;_0x1c9957[_0x35462d('0x4d7')][_0x1529bf[_0x35462d('0x6b5')]]&&_0x1c9957[_0x35462d('0x4d7')][_0x1529bf[_0x35462d('0x6b5')]]['loggedInDb']++;}function _0x4a0bac(_0x1dd150){var _0x58ffb5=_0x43040f;_0x1c9957['queues'][_0x1dd150['FaxQueueId']]&&_0x1c9957[_0x58ffb5('0x4d7')][_0x1dd150[_0x58ffb5('0x6b5')]][_0x58ffb5('0xe81')]--;}function _0xcf34d3(_0x145fa5){var _0x545e22=_0x43040f;console['log'](_0x545e22('0x2511'),_0x145fa5);if(_0x145fa5[_0x545e22('0x2519')])_0x51538b()[_0x545e22('0x143e')](_0x1c9957[_0x545e22('0x4d7')],function(_0x816e9d){var _0x32770a=_0x545e22;_0x816e9d['agents'][_0x145fa5['id']]&&(_0x816e9d[_0x32770a('0x16ce')]+=0x1,console[_0x32770a('0x18d5')](_0x32770a('0x167c')));});else!_0x145fa5['voicePause']&&_0x51538b()[_0x545e22('0x143e')](_0x1c9957['queues'],function(_0x247692){var _0x18349f=_0x545e22;_0x247692['agents'][_0x145fa5['id']]&&(_0x247692[_0x18349f('0x16ce')]>0x0&&(_0x247692[_0x18349f('0x16ce')]-=0x1,console['log'](_0x18349f('0x297'))));});}function _0x465974(_0x559be2){var _0x5c8e40=_0x43040f;console[_0x5c8e40('0x18d5')]('onLogged',_0x559be2),_0x1c9957[_0x5c8e40('0x4d7')][_0x559be2[_0x5c8e40('0x6b5')]]&&(_0x1c9957[_0x5c8e40('0x4d7')][_0x559be2[_0x5c8e40('0x6b5')]][_0x5c8e40('0xe81')]+=0x1,_0x1c9957[_0x5c8e40('0x4d7')][_0x559be2[_0x5c8e40('0x6b5')]][_0x5c8e40('0x1717')][_0x559be2[_0x5c8e40('0x1037')]]=_0x559be2[_0x5c8e40('0x6b5')]);}function _0x43f4e0(_0x10a30d){var _0x220acb=_0x43040f;console[_0x220acb('0x18d5')](_0x220acb('0x10c6'),_0x10a30d),_0x1c9957[_0x220acb('0x4d7')][_0x10a30d[_0x220acb('0x6b5')]]&&_0x1c9957[_0x220acb('0x4d7')][_0x10a30d[_0x220acb('0x6b5')]][_0x220acb('0xe81')]>0x0&&(_0x1c9957['queues'][_0x10a30d[_0x220acb('0x6b5')]][_0x220acb('0xe81')]-=0x1,delete _0x1c9957[_0x220acb('0x4d7')][_0x10a30d[_0x220acb('0x6b5')]][_0x220acb('0x1717')][_0x10a30d[_0x220acb('0x1037')]]);}var _0x1a7e95=!![],_0x3ca341=0x1;_0x3370e4[_0x43040f('0x1ccf')](_0x43040f('0x1788'),function(_0x4446cc,_0x545a88){var _0x3d6e6b=_0x43040f;_0x1a7e95?_0x380b7c(function(){_0x1a7e95=![];}):(!_0x545a88&&(_0x3ca341=_0x1c9957[_0x3d6e6b('0x582')][_0x3d6e6b('0x41')]),_0x4446cc!==_0x545a88&&(_0x1c9957[_0x3d6e6b('0x582')][_0x3d6e6b('0x41')]=0x1),!_0x4446cc&&(_0x1c9957['query'][_0x3d6e6b('0x41')]=_0x3ca341),_0x1c9957['getQueues']());});function _0x441f50(_0x3f8df0){var _0x796e37=_0x43040f;_0x1c9957[_0x796e37('0xd15')]=_0x3f8df0['count'],_0x1c9957[_0x796e37('0x4d7')]=_0x3f8df0?_0x51538b()[_0x796e37('0x184a')](_0x3f8df0[_0x796e37('0x580')]?_0x3f8df0[_0x796e37('0x580')]:[],'id'):{};if(_0x3f8df0[_0x796e37('0x580')]){_0x1c9957['order']=[];for(var _0x424b78=0x0;_0x424b78<_0x3f8df0['rows'][_0x796e37('0x2587')];_0x424b78++){_0x1c9957['order'][_0x796e37('0x1599')](_0x3f8df0[_0x796e37('0x580')][_0x424b78]['id']);}}_0x3db49b();}function _0x24277f(){var _0x4e51b8=_0x43040f;_0x1c9957[_0x4e51b8('0x582')][_0x4e51b8('0x8b1')]=(_0x1c9957['query']['page']-0x1)*_0x1c9957[_0x4e51b8('0x582')][_0x4e51b8('0xf4d')],_0x3593c9[_0x4e51b8('0x26e8')](_0x4e51b8('0x178b'))?_0x1c9957[_0x4e51b8('0x159a')]=_0x3076cb[_0x4e51b8('0xaf9')][_0x4e51b8('0x2122')](_0x1c9957[_0x4e51b8('0x582')],_0x441f50)['$promise']:(_0x1c9957['query']['id']=_0x1c9957['userProfile']['id'],_0x1c9957['query'][_0x4e51b8('0x224d')]=_0x4e51b8('0x615'),_0x1c9957[_0x4e51b8('0x159a')]=_0x3076cb[_0x4e51b8('0x1e97')][_0x4e51b8('0x1cf1')](_0x1c9957[_0x4e51b8('0x582')],_0x441f50)[_0x4e51b8('0x1dc2')]);}function _0x109532(_0x138424,_0x419d46){var _0x33e2c2=_0x43040f;_0x27d56f[_0x33e2c2('0x1e6d')]({'controller':_0x33e2c2('0x1029'),'controllerAs':'vm','templateUrl':_0x1539a4,'parent':angular[_0x33e2c2('0x1aa8')](_0x26b13e[_0x33e2c2('0x54c')]),'targetEvent':_0x138424,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x419d46,'faxQueues':_0x51538b()['values'](_0x1c9957[_0x33e2c2('0x4d7')]),'license':null,'setting':null,'crudPermissions':_0x1c9957['crudPermissions']}});}function _0x478570(_0x5b2f7b,_0x510434){var _0x4bb4fe=_0x43040f;_0x27d56f['show']({'controller':_0x4bb4fe('0x1954'),'controllerAs':'vm','templateUrl':_0x25aefa,'parent':angular[_0x4bb4fe('0x1aa8')](_0x26b13e[_0x4bb4fe('0x54c')]),'targetEvent':_0x5b2f7b,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x510434,'faxQueues':_0x1c9957[_0x4bb4fe('0x4d7')]?_0x1c9957[_0x4bb4fe('0x4d7')][_0x4bb4fe('0x580')]:[],'realtime':![],'crudPermissions':_0x1c9957['crudPermissions']}});}function _0xa054c2(_0x6b64c3){var _0xf1d14a=_0x43040f;return _0x3076cb['faxQueue'][_0xf1d14a('0x264e')](_0x6b64c3)[_0xf1d14a('0x1dc2')]['then'](function(){var _0x1c688b=_0xf1d14a;_0x1667f1[_0x1c688b('0xe10')]({'title':_0x1c688b('0x2758'),'msg':_0x6b64c3[_0x1c688b('0x25d6')]?_0x6b64c3['name']+_0x1c688b('0x1734'):''});})[_0xf1d14a('0x253d')](function(_0x1fe93a){var _0xa2fce6=_0xf1d14a;_0x1667f1[_0xa2fce6('0x187f')]({'title':_0xa2fce6('0x777'),'msg':_0x1fe93a[_0xa2fce6('0x1402')]});});}_0x3370e4[_0x43040f('0xc75')](_0x43040f('0x12d0'),function(){var _0x2b7897=_0x43040f;_0x6ee43[_0x2b7897('0x2629')](_0x2b7897('0x1e03')),_0x6ee43[_0x2b7897('0x2629')]('userFaxQueue:remove'),_0x6ee43[_0x2b7897('0x2629')](_0x2b7897('0x699')),_0x6ee43[_0x2b7897('0x2629')]('user:update'),_0x6ee43[_0x2b7897('0x2629')](_0x2b7897('0x10ac')),_0x6ee43[_0x2b7897('0x2629')]('userVoiceQueue:save');});}const _0x351c05=_0x2fb6c6;function _0x11ded4(){var _0x14639b=_0x1a8446;return{'status':{'registered':_0x14639b('0x1'),'unregistered':_0x14639b('0x15cb'),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0x14639b('0x1'),'unreachable':_0x14639b('0x15cb'),'unknown':_0x14639b('0x17')},'state':{'unknown':_0x14639b('0xc98'),'not_inuse':_0x14639b('0x1670'),'inuse':_0x14639b('0x15a1'),'busy':_0x14639b('0xb2'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x14639b('0x1dac'),'ringinuse':_0x14639b('0x1dac'),'onhold':_0x14639b('0xcf5')},'channelStatus':{'ring':_0x14639b('0x1dac'),'up':_0x14639b('0xe58'),'hangup':_0x14639b('0x182a')},'channelStatusOut':{'ring':_0x14639b('0x15d9'),'up':_0x14639b('0xe58'),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x393717=_0x11ded4;_0x4a83dc[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0xe74')];function _0x4a83dc(_0xef48cb,_0x20eb8c,_0x3eed85){var _0x2e5822=_0x1a8446,_0x211ffc=this;_0x3eed85['disconnect'](),_0x3eed85[_0x2e5822('0x16dc')](),_0x211ffc['selectedTab']=0x0;switch(_0x20eb8c[_0x2e5822('0x4cb')][_0x2e5822('0x25d6')]){case _0x2e5822('0x14ea'):_0x211ffc[_0x2e5822('0xe5c')]=0x0;break;case _0x2e5822('0x656'):_0x211ffc[_0x2e5822('0xe5c')]=0x1;break;case'app.fax.realtime.queues':_0x211ffc[_0x2e5822('0xe5c')]=0x2;break;case'app.fax.realtime.accounts':_0x211ffc['selectedTab']=0x3;break;default:_0x211ffc['selectedTab']=0x0,_0x20eb8c['go'](_0x2e5822('0x14ea'));}_0xef48cb[_0x2e5822('0x1ccf')](_0x2e5822('0xf1a'),function(_0x2067e1,_0x287e18){var _0xccefa0=_0x2e5822;if(_0x2067e1!==_0x287e18)switch(_0x2067e1){case 0x0:_0x20eb8c['go'](_0xccefa0('0x14ea'));break;case 0x1:_0x20eb8c['go'](_0xccefa0('0x656'));break;case 0x2:_0x20eb8c['go']('app.fax.realtime.queues');break;case 0x3:_0x20eb8c['go'](_0xccefa0('0x2171'));break;default:_0x20eb8c['go']('app.fax.realtime.agents');}});}const _0x576ead=_0x4a83dc;_0x10c233[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x1bc2'),_0x1a8446('0x1058'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x5b4'),_0x1a8446('0x145b'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x10c233(_0x149cef,_0x57f4b8,_0x1e0944,_0x291ca6,_0xda6aff,_0x12a16e,_0x3aca0d,_0x3c142b,_0x256af4,_0xee12de,_0x5bd11d,_0x49516f){var _0x3c479e=_0x1a8446,_0x3a80bc=this,_0x37d78e=['status',_0x3c479e('0xca0'),_0x3c479e('0x15b4'),'host','port',_0x3c479e('0x1b0d'),_0x3c479e('0xb46'),_0x3c479e('0x2fa')];_0x3a80bc[_0x3c479e('0x7fc')]=_0x49516f[_0x3c479e('0xacc')](),_0x3a80bc[_0x3c479e('0xd15')]=_0x291ca6['count'],_0x3a80bc[_0x3c479e('0x1bc2')]=_0x291ca6?_0x291ca6['rows']:[],_0x3a80bc[_0x3c479e('0x1058')]=_0xda6aff?_0xda6aff[_0x3c479e('0x580')]?_0xda6aff[_0x3c479e('0x580')]:[]:[],_0x3a80bc[_0x3c479e('0x582')]={'fields':_0x3c479e('0x17fe'),'active':!![],'sort':'-updatedAt','limit':0xa,'page':0x1},_0x3a80bc['statusClass']=_0x3c142b[_0x3c479e('0x2fa')],_0x3a80bc[_0x3c479e('0x242a')]=_0x3c142b[_0x3c479e('0xb46')],_0x3a80bc[_0x3c479e('0x1e97')]=_0xee12de,_0x3a80bc[_0x3c479e('0x1a50')]=_0x5bd11d&&_0x5bd11d[_0x3c479e('0xd15')]==0x1?_0x5bd11d[_0x3c479e('0x580')][0x0]:null,_0x3a80bc[_0x3c479e('0xada')]=_0x49516f[_0x3c479e('0xffd')](_0x3a80bc[_0x3c479e('0x1a50')]?_0x3a80bc['userProfileSection']['crudPermissions']:null),_0x3a80bc[_0x3c479e('0xe10')]=_0x3d3c3a,_0x3a80bc[_0x3c479e('0x141')]=_0xf4a4a1,_0x3a80bc['showInfo']=_0x54e7a7,_0x3a80bc[_0x3c479e('0xa79')]=_0x13f3d8,_0x3a80bc[_0x3c479e('0x1216')]=_0x444b1e,_0x3a80bc[_0x3c479e('0x1a4b')]=_0x331100,_0x3aca0d['on'](_0x3c479e('0xbef'),_0x3a80bc['onSave']);function _0xf4a4a1(){var _0x1df1b1=_0x3c479e,_0x5a8188;for(var _0x34e05f=0x0;_0x34e05f<_0x3a80bc['trunks'][_0x1df1b1('0x2587')];_0x34e05f+=0x1){_0x5a8188=_0x51538b()[_0x1df1b1('0xedc')](_0x3a80bc['rpcTrunks'],['id',_0x3a80bc['trunks'][_0x34e05f]['id']]),_0x5a8188>=0x0&&_0x51538b()[_0x1df1b1('0x283c')](_0x3a80bc[_0x1df1b1('0x1bc2')][_0x34e05f],_0x51538b()[_0x1df1b1('0x104e')](_0x3a80bc[_0x1df1b1('0x1058')][_0x5a8188],_0x37d78e));}}function _0x54e7a7(_0x49843b){var _0x533b0d=_0x3c479e;_0x1e0944[_0x533b0d('0x1e6d')](_0x1e0944[_0x533b0d('0xc10')]()[_0x533b0d('0x22b9')](!![])[_0x533b0d('0x110a')](_0x533b0d('0x17e'))['htmlContent'](_0x533b0d('0x9b3'))['ok']('Ok')[_0x533b0d('0x116d')](_0x49843b));}function _0x5c903f(_0x5e8c05,_0x2c3a99,_0x570bca){var _0x491e1a=_0x3c479e;_0x2c3a99>=0x0&&_0x51538b()[_0x491e1a('0x283c')](_0x5e8c05[_0x2c3a99],_0x51538b()[_0x491e1a('0x104e')](_0x570bca,_0x37d78e));}function _0x331100(_0x4a57d4){var _0x4b90a5=_0x3c479e,_0x51e16f=_0x51538b()[_0x4b90a5('0xedc')](_0x3a80bc[_0x4b90a5('0x1bc2')],['id',_0x4a57d4['id']]),_0x379d9f=_0x51538b()['findIndex'](_0x3a80bc['rpcTrunks'],['id',_0x4a57d4['id']]);_0x5c903f(_0x3a80bc[_0x4b90a5('0x1bc2')],_0x51e16f,_0x4a57d4),_0x5c903f(_0x3a80bc['rpcTrunks'],_0x379d9f,_0x4a57d4);}var _0x374439=!![],_0x1512bf=0x1;_0x149cef[_0x3c479e('0x1ccf')](_0x3c479e('0x1788'),function(_0x18de7b,_0x400028){var _0x4a83df=_0x3c479e;_0x374439?_0x57f4b8(function(){_0x374439=![];}):(!_0x400028&&(_0x1512bf=_0x3a80bc[_0x4a83df('0x582')][_0x4a83df('0x41')]),_0x18de7b!==_0x400028&&(_0x3a80bc[_0x4a83df('0x582')][_0x4a83df('0x41')]=0x1),!_0x18de7b&&(_0x3a80bc[_0x4a83df('0x582')]['page']=_0x1512bf),_0x3a80bc[_0x4a83df('0xa79')]());});function _0x3d3c3a(_0x79c05){var _0x46feb1=_0x3c479e;_0x3a80bc[_0x46feb1('0xd15')]=_0x79c05[_0x46feb1('0xd15')],_0x3a80bc[_0x46feb1('0x1bc2')]=_0x79c05?_0x79c05[_0x46feb1('0x580')]?_0x79c05[_0x46feb1('0x580')]:[]:[],_0xf4a4a1();}function _0x13f3d8(){var _0x504ac2=_0x3c479e;_0x3a80bc[_0x504ac2('0x582')][_0x504ac2('0x8b1')]=(_0x3a80bc[_0x504ac2('0x582')][_0x504ac2('0x41')]-0x1)*_0x3a80bc[_0x504ac2('0x582')]['limit'],_0x49516f[_0x504ac2('0x26e8')](_0x504ac2('0x178b'))?_0x3a80bc['promise']=_0x12a16e[_0x504ac2('0x1651')][_0x504ac2('0x2122')](_0x3a80bc[_0x504ac2('0x582')],_0x3d3c3a)['$promise']:(_0x3a80bc[_0x504ac2('0x582')]['id']=_0x3a80bc[_0x504ac2('0x1e97')]['id'],_0x3a80bc[_0x504ac2('0x582')][_0x504ac2('0x224d')]=_0x504ac2('0x1e84'),_0x3a80bc[_0x504ac2('0x159a')]=_0x12a16e[_0x504ac2('0x1e97')][_0x504ac2('0x1cf1')](_0x3a80bc['query'],_0x3d3c3a)[_0x504ac2('0x1dc2')]);}_0x149cef['$on'](_0x3c479e('0x12d0'),function(){var _0x1675cc=_0x3c479e;_0x3aca0d[_0x1675cc('0x2629')]('trunk:save');});function _0x444b1e(_0x49fc52,_0x20a0d2){var _0xfd0a5c=_0x3c479e;_0x256af4['go'](_0xfd0a5c('0x15b'),{'id':_0x20a0d2['id']});}}const _0x58ea9f=_0x10c233;_0x17ba48[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x17ba48(_0x574e24){var _0x185357=_0x1a8446;_0x574e24['state'](_0x185357('0x1b81'),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x4a13ee,'controller':_0x185357('0x647')}},'resolve':{'userProfile':[_0x185357('0x1d16'),_0x185357('0x1dfd'),function _0x56146a(_0x1f2620,_0x3ad0d7){var _0x5dc2eb=_0x185357;return _0x3ad0d7[_0x5dc2eb('0x26e8')](_0x5dc2eb('0x178b'))?null:_0x1f2620[_0x5dc2eb('0x149f')](_0x5dc2eb('0x567'),{'fields':'id,name,crudPermissions','id':_0x3ad0d7[_0x5dc2eb('0xacc')]()[_0x5dc2eb('0x2168')]});}],'userProfileSection':['apiResolver',_0x185357('0x1dfd'),function _0x1ef634(_0x528098,_0x2cb03b){var _0x486dc4=_0x185357;return _0x2cb03b['hasRole'](_0x486dc4('0x178b'))?null:_0x528098[_0x486dc4('0x149f')](_0x486dc4('0x89e'),{'fields':_0x486dc4('0xe6a'),'userProfileId':_0x2cb03b['getCurrentUser']()[_0x486dc4('0x2168')],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})[_0x185357('0xb46')](_0x185357('0x14ea'),{'url':_0x185357('0x141f'),'controller':_0x185357('0x246e'),'templateUrl':_0x21807e,'resolve':{'pauses':[_0x185357('0x1d16'),function _0x40a1d1(_0x1dd7e3){var _0x3f7656=_0x185357;return _0x1dd7e3[_0x3f7656('0x149f')]('pause@get',{'nolimit':!![]});}],'agents':['apiResolver',_0x185357('0x1dfd'),function _0x141ce2(_0x57fa88,_0xc5e37c){var _0x2c223d=_0x185357;return _0xc5e37c[_0x2c223d('0x26e8')](_0x2c223d('0x178b'))?_0x57fa88[_0x2c223d('0x149f')]('user@get',{'fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':_0x2c223d('0xeff'),'sort':_0x2c223d('0x18e5'),'nolimit':!![]}):_0x57fa88[_0x2c223d('0x149f')](_0x2c223d('0x49a'),{'id':_0xc5e37c[_0x2c223d('0xacc')]()[_0x2c223d('0x2168')],'section':_0x2c223d('0x91a'),'fields':_0x2c223d('0x515'),'role':'agent','sort':'fullname','nolimit':!![]});}],'userProfile':[_0x185357('0x1d16'),_0x185357('0x1dfd'),function _0x59c33f(_0xa96250,_0x574648){var _0x3a170c=_0x185357;return _0x574648[_0x3a170c('0x26e8')](_0x3a170c('0x178b'))?null:_0xa96250[_0x3a170c('0x149f')]('userProfile@get',{'fields':_0x3a170c('0x1bb0'),'id':_0x574648[_0x3a170c('0xacc')]()[_0x3a170c('0x2168')]});}],'userProfileSection':[_0x185357('0x1d16'),_0x185357('0x1dfd'),function _0x5d9468(_0x2c22ba,_0x35e34d){var _0x53b25b=_0x185357;return _0x35e34d['hasRole']('admin')?null:_0x2c22ba[_0x53b25b('0x149f')](_0x53b25b('0x89e'),{'fields':_0x53b25b('0xe6a'),'userProfileId':_0x35e34d[_0x53b25b('0xacc')]()[_0x53b25b('0x2168')],'sectionId':0xca});}],'rpcAgents':[_0x185357('0x1d16'),function _0x56ad0b(_0x3b66d0){return _0x3b66d0['resolve']('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x38e})[_0x185357('0xb46')](_0x185357('0x656'),{'url':_0x185357('0x274d'),'controller':'TrunksFaxRealtimeController\x20as\x20vm','templateUrl':_0x130ab2,'resolve':{'trunks':[_0x185357('0x1d16'),_0x185357('0x1dfd'),function _0x2e2a33(_0x4688e6,_0x34ab01){var _0x523436=_0x185357;return _0x34ab01['hasRole']('admin')?_0x4688e6[_0x523436('0x149f')](_0x523436('0x17ef'),{'fields':'id,name','active':!![],'sort':_0x523436('0xd82'),'limit':0xa,'offset':0x0}):_0x4688e6[_0x523436('0x149f')](_0x523436('0x49a'),{'id':_0x34ab01[_0x523436('0xacc')]()[_0x523436('0x2168')],'section':_0x523436('0x1e84'),'fields':'id,name','active':!![],'sort':_0x523436('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x185357('0x1d16'),'Auth',function _0x13929a(_0x3130c7,_0x5f3099){var _0x43c944=_0x185357;return _0x5f3099[_0x43c944('0x26e8')](_0x43c944('0x178b'))?null:_0x3130c7['resolve'](_0x43c944('0x567'),{'fields':_0x43c944('0x1bb0'),'id':_0x5f3099[_0x43c944('0xacc')]()[_0x43c944('0x2168')]});}],'userProfileSection':[_0x185357('0x1d16'),'Auth',function _0x428ef1(_0x57e8fd,_0xc09d78){var _0x1a47c9=_0x185357;return _0xc09d78['hasRole'](_0x1a47c9('0x178b'))?null:_0x57e8fd['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xc09d78[_0x1a47c9('0xacc')]()[_0x1a47c9('0x2168')],'sectionId':0x3f3});}],'rpcTrunks':[_0x185357('0x1d16'),function _0x5c5d80(_0x262b85){var _0x4801a3=_0x185357;return _0x262b85[_0x4801a3('0x149f')](_0x4801a3('0x965'));}]},'authenticate':!![],'permissionId':0x38e})['state'](_0x185357('0x1c0f'),{'url':_0x185357('0x1d17'),'controller':'QueuesFaxRealtimeController\x20as\x20vm','templateUrl':_0x42f857,'resolve':{'queues':[_0x185357('0x1d16'),_0x185357('0x1dfd'),function _0x239a00(_0x3f5f00,_0x2c86bb){var _0x54262d=_0x185357;return _0x2c86bb['hasRole']('admin')?_0x3f5f00['resolve']('faxQueue@get',{'type':_0x54262d('0x4b8'),'sort':_0x54262d('0xd82'),'limit':0xa,'offset':0x0}):_0x3f5f00[_0x54262d('0x149f')](_0x54262d('0x49a'),{'id':_0x2c86bb['getCurrentUser']()[_0x54262d('0x2168')],'section':_0x54262d('0x615'),'channel':_0x54262d('0x16c4'),'type':_0x54262d('0x4b8'),'sort':_0x54262d('0xd82'),'limit':0xa,'page':0x1});}],'userProfile':[_0x185357('0x1d16'),'Auth',function _0x39744a(_0x4877d0,_0x201668){var _0x3ae77f=_0x185357;return _0x201668[_0x3ae77f('0x26e8')](_0x3ae77f('0x178b'))?null:_0x4877d0['resolve'](_0x3ae77f('0x567'),{'fields':_0x3ae77f('0x1bb0'),'id':_0x201668[_0x3ae77f('0xacc')]()[_0x3ae77f('0x2168')]});}],'userProfileSection':[_0x185357('0x1d16'),_0x185357('0x1dfd'),function _0x2a8310(_0x1d80da,_0x1d704d){var _0x53b2a5=_0x185357;return _0x1d704d[_0x53b2a5('0x26e8')](_0x53b2a5('0x178b'))?null:_0x1d80da[_0x53b2a5('0x149f')](_0x53b2a5('0x89e'),{'fields':_0x53b2a5('0xe6a'),'userProfileId':_0x1d704d[_0x53b2a5('0xacc')]()['userProfileId'],'sectionId':0x385});}],'rpcQueues':['apiResolver',function _0x546f6d(_0x54ea52){var _0x1bb7c1=_0x185357;return _0x54ea52[_0x1bb7c1('0x149f')](_0x1bb7c1('0x648'));}]},'authenticate':!![],'permissionId':0x38e})[_0x185357('0xb46')]('app.fax.realtime.accounts',{'url':_0x185357('0xecd'),'controller':'FaxAccountsRealtimeController\x20as\x20vm','templateUrl':_0x1483fd,'resolve':{'faxAccounts':[_0x185357('0x1d16'),_0x185357('0x1dfd'),function _0x298d17(_0x1feb2a,_0x5a93a4){var _0x44850e=_0x185357;return _0x5a93a4[_0x44850e('0x26e8')]('admin')?_0x1feb2a['resolve'](_0x44850e('0xbf2'),{'sort':_0x44850e('0xd82'),'limit':0xa,'offset':0x0}):_0x1feb2a[_0x44850e('0x149f')]('userProfile@getResources',{'id':_0x5a93a4[_0x44850e('0xacc')]()['userProfileId'],'section':_0x44850e('0xd5'),'sort':_0x44850e('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x185357('0x1d16'),_0x185357('0x1dfd'),function _0x2be2b4(_0x1ff4f1,_0x1b0d34){var _0xab59e9=_0x185357;return _0x1b0d34[_0xab59e9('0x26e8')](_0xab59e9('0x178b'))?null:_0x1ff4f1['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x1b0d34[_0xab59e9('0xacc')]()[_0xab59e9('0x2168')]});}],'userProfileSection':['apiResolver',_0x185357('0x1dfd'),function _0x28f89d(_0x10aa51,_0x3be196){var _0x36960f=_0x185357;return _0x3be196['hasRole'](_0x36960f('0x178b'))?null:_0x10aa51[_0x36960f('0x149f')](_0x36960f('0x89e'),{'fields':_0x36960f('0xe6a'),'userProfileId':_0x3be196['getCurrentUser']()[_0x36960f('0x2168')],'sectionId':0x386});}],'rpcFaxAccounts':[_0x185357('0x1d16'),function _0x223f72(_0xf68807){var _0x1d13af=_0x185357;return _0xf68807[_0x1d13af('0x149f')](_0x1d13af('0x265a'));}]},'authenticate':!![],'permissionId':0x38e});}angular['module'](_0x1a8446('0x1b81'),[])['config'](_0x17ba48)[_0x1a8446('0x780')]('FaxAccountsRealtimeController',_0x535b5d)[_0x1a8446('0x780')](_0x1a8446('0x161a'),_0x2dd786)[_0x1a8446('0x780')](_0x1a8446('0x1ed'),_0x351c05)[_0x1a8446('0x1be9')](_0x1a8446('0x5b4'),_0x393717)[_0x1a8446('0x780')](_0x1a8446('0xc76'),_0x576ead)['controller'](_0x1a8446('0x16bd'),_0x58ea9f),_0xc5c9d[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q','$translate','toasty',_0x1a8446('0xf2c'),_0x1a8446('0x1f6a'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0xc5c9d(_0x515a30,_0x2d3ee6,_0x28ad7c,_0x40772b,_0x831e04,_0x2b9341,_0x47f10a,_0x5e4737,_0x2f987c,_0x12a8f5,_0x34c957,_0x295484,_0xd5e18a,_0x4ca67d){var _0x5b26b7=_0x1a8446,_0x21d426=this;_0x21d426[_0x5b26b7('0x7fc')]=_0x34c957[_0x5b26b7('0xacc')](),_0x21d426[_0x5b26b7('0x4c6')]=[],_0x21d426['setting']=_0xd5e18a,_0x21d426[_0x5b26b7('0x1202')]=_0x295484,_0x21d426[_0x5b26b7('0xada')]=_0x4ca67d,_0x21d426[_0x5b26b7('0x9f0')]={},_0x21d426[_0x5b26b7('0x1d53')]=_0x21d426[_0x5b26b7('0x143f')]&&_0x21d426[_0x5b26b7('0x143f')][_0x5b26b7('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x21d426[_0x5b26b7('0x110a')]=_0x5b26b7('0x16be'),_0x21d426[_0x5b26b7('0x1f6a')]=angular['copy'](_0x2f987c),_0x21d426['faxAccounts']=_0x5e4737,_0x21d426[_0x5b26b7('0x575')]=![];!_0x21d426[_0x5b26b7('0x1f6a')]&&(_0x21d426[_0x5b26b7('0x1f6a')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x21d426[_0x5b26b7('0x110a')]=_0x5b26b7('0x26fd'),_0x21d426['newFaxAccount']=!![]);_0x2d3ee6[_0x5b26b7('0x25cf')]['id']&&(_0x21d426[_0x5b26b7('0x1f6a')][_0x5b26b7('0x16a8')]=_0x2d3ee6[_0x5b26b7('0x25cf')]['id']);_0x21d426['addNewFaxAccount']=_0x40f684,_0x21d426[_0x5b26b7('0x1c89')]=_0x349906,_0x21d426[_0x5b26b7('0x147c')]=_0x40c674,_0x21d426[_0x5b26b7('0xc09')]=_0x48f06c,_0x21d426['closeDialog']=_0x3d15aa,_0x34c957[_0x5b26b7('0x26e8')](_0x5b26b7('0x178b'))?_0x12a8f5[_0x5b26b7('0x1651')][_0x5b26b7('0x2122')]({'fields':_0x5b26b7('0x17fe'),'sort':_0x5b26b7('0x25d6')})[_0x5b26b7('0x1dc2')][_0x5b26b7('0xaa5')](function(_0x483fa7){var _0x1f70c6=_0x5b26b7;_0x21d426['trunks']=_0x483fa7[_0x1f70c6('0x580')]||[];})[_0x5b26b7('0x253d')](function(_0x16ea8c){var _0x598b39=_0x5b26b7;_0x47f10a[_0x598b39('0x187f')]({'title':_0x16ea8c[_0x598b39('0x2fa')]?_0x598b39('0x16c2')+_0x16ea8c[_0x598b39('0x2fa')]+_0x598b39('0x169e')+_0x16ea8c[_0x598b39('0x24df')]:'SYSTEM:GET_TRUNKS','msg':_0x16ea8c[_0x598b39('0x10fd')]?JSON[_0x598b39('0xa48')](_0x16ea8c[_0x598b39('0x10fd')]):_0x16ea8c['toString']()});}):_0x12a8f5['trunk'][_0x5b26b7('0x2122')]({'fields':_0x5b26b7('0x17fe'),'sort':_0x5b26b7('0x25d6')})[_0x5b26b7('0x1dc2')][_0x5b26b7('0xaa5')](function(_0x36e385){var _0x562306=_0x5b26b7;_0x21d426[_0x562306('0x1bc2')]=_0x36e385[_0x562306('0x580')]||[];})[_0x5b26b7('0xaa5')](function(){var _0x5306f5=_0x5b26b7;return _0x12a8f5[_0x5306f5('0x1a50')][_0x5306f5('0x2122')]({'userProfileId':_0x21d426['currentUser'][_0x5306f5('0x2168')],'sectionId':0x3f3})['$promise'];})['then'](function(_0x4587d2){var _0x4fde5a=_0x5b26b7,_0x208f8a=_0x4587d2&&_0x4587d2[_0x4fde5a('0x580')]?_0x4587d2[_0x4fde5a('0x580')][0x0]:null;if(!_0x208f8a){var _0x3e4800=[],_0x23d8e5=null;_0x21d426[_0x4fde5a('0x1f6a')]&&(_0x23d8e5=_0x51538b()[_0x4fde5a('0xe9e')](_0x21d426['trunks'],{'id':Number(_0x21d426['faxAccount']['TrunkId'])}));for(var _0x202fcf=0x0;_0x202fcf<_0x21d426['trunks']['length'];_0x202fcf++){_0x23d8e5&&_0x21d426[_0x4fde5a('0x1bc2')][_0x202fcf]['id']===_0x23d8e5['id']&&(_0x21d426[_0x4fde5a('0x1bc2')][_0x202fcf][_0x4fde5a('0x12eb')]=![],_0x3e4800[_0x4fde5a('0x1599')](_0x21d426[_0x4fde5a('0x1bc2')][_0x202fcf]));}_0x21d426[_0x4fde5a('0x1bc2')]=_0x3e4800;}else{if(!_0x208f8a['autoAssociation'])return _0x12a8f5['userProfileResource'][_0x4fde5a('0x2122')]({'sectionId':_0x208f8a['id']})[_0x4fde5a('0x1dc2')]['then'](function(_0x1cf9fe){var _0x4b53b7=_0x4fde5a,_0xb630a=_0x51538b()[_0x4b53b7('0x1246')](_0x1cf9fe[_0x4b53b7('0x580')],function(_0x402d81){var _0x4a307c=_0x4b53b7;return _0x51538b()[_0x4a307c('0xe9e')](_0x21d426['trunks'],{'id':_0x402d81[_0x4a307c('0xbcd')]});}),_0x15a0f5=null;_0x21d426['faxAccount']&&(_0x15a0f5=_0x51538b()[_0x4b53b7('0xe9e')](_0x21d426[_0x4b53b7('0x1bc2')],{'id':Number(_0x21d426[_0x4b53b7('0x1f6a')][_0x4b53b7('0x808')])}));if(_0x15a0f5&&!_0x51538b()[_0x4b53b7('0x2c2')](_0xb630a,['id',_0x15a0f5['id']])){var _0x24bb21=_0x51538b()[_0x4b53b7('0xe9e')](_0x21d426[_0x4b53b7('0x1bc2')],{'id':_0x15a0f5['id']});_0x24bb21[_0x4b53b7('0x12eb')]=![],_0xb630a['push'](_0x24bb21);}_0x21d426[_0x4b53b7('0x1bc2')]=_0xb630a;});}})['catch'](function(_0x2585cb){var _0x1f2763=_0x5b26b7;_0x47f10a[_0x1f2763('0x187f')]({'title':_0x2585cb[_0x1f2763('0x2fa')]?'API:'+_0x2585cb['status']+'\x20-\x20'+_0x2585cb[_0x1f2763('0x24df')]:_0x1f2763('0x117a'),'msg':_0x2585cb[_0x1f2763('0x10fd')]?JSON['stringify'](_0x2585cb[_0x1f2763('0x10fd')]):_0x2585cb[_0x1f2763('0x684')]()});}),_0x34c957[_0x5b26b7('0x26e8')](_0x5b26b7('0x178b'))?_0x12a8f5[_0x5b26b7('0x26b4')][_0x5b26b7('0x2122')]({'fields':_0x5b26b7('0x17fe'),'sort':_0x5b26b7('0x25d6')})[_0x5b26b7('0x1dc2')]['then'](function(_0x5468a0){var _0x12509c=_0x5b26b7;_0x21d426[_0x12509c('0x1126')]=_0x5468a0[_0x12509c('0x580')]||[];})[_0x5b26b7('0x253d')](function(_0x2c0274){var _0x10cd1b=_0x5b26b7;_0x47f10a['error']({'title':_0x2c0274[_0x10cd1b('0x2fa')]?_0x10cd1b('0x16c2')+_0x2c0274[_0x10cd1b('0x2fa')]+_0x10cd1b('0x169e')+_0x2c0274[_0x10cd1b('0x24df')]:_0x10cd1b('0x1adf'),'msg':_0x2c0274[_0x10cd1b('0x10fd')]?JSON[_0x10cd1b('0xa48')](_0x2c0274[_0x10cd1b('0x10fd')]):_0x2c0274[_0x10cd1b('0x684')]()});}):_0x12a8f5['cmList'][_0x5b26b7('0x2122')]({'fields':_0x5b26b7('0x17fe'),'sort':_0x5b26b7('0x25d6')})[_0x5b26b7('0x1dc2')]['then'](function(_0x12b370){var _0x498283=_0x5b26b7;_0x21d426[_0x498283('0x1126')]=_0x12b370[_0x498283('0x580')]||[];})['then'](function(){var _0x49ecbb=_0x5b26b7;return _0x12a8f5[_0x49ecbb('0x1a50')][_0x49ecbb('0x2122')]({'userProfileId':_0x21d426[_0x49ecbb('0x7fc')][_0x49ecbb('0x2168')],'sectionId':0x12d})[_0x49ecbb('0x1dc2')];})['then'](function(_0x1a6b25){var _0x1f2d4a=_0x5b26b7,_0x18243f=_0x1a6b25&&_0x1a6b25['rows']?_0x1a6b25[_0x1f2d4a('0x580')][0x0]:null;if(!_0x18243f){var _0x3e5d80=[],_0x36667b=null;_0x21d426[_0x1f2d4a('0x1f6a')]&&(_0x36667b=_0x51538b()[_0x1f2d4a('0xe9e')](_0x21d426[_0x1f2d4a('0x1126')],{'id':Number(_0x21d426[_0x1f2d4a('0x1f6a')][_0x1f2d4a('0xee0')])}));for(var _0x16c64c=0x0;_0x16c64c<_0x21d426['lists']['length'];_0x16c64c++){_0x36667b&&_0x21d426[_0x1f2d4a('0x1126')][_0x16c64c]['id']===_0x36667b['id']&&(_0x21d426[_0x1f2d4a('0x1126')][_0x16c64c]['canSelect']=![],_0x3e5d80[_0x1f2d4a('0x1599')](_0x21d426[_0x1f2d4a('0x1126')][_0x16c64c]));}_0x21d426[_0x1f2d4a('0x1126')]=_0x3e5d80;}else{if(!_0x18243f['autoAssociation'])return _0x12a8f5[_0x1f2d4a('0x249a')][_0x1f2d4a('0x2122')]({'sectionId':_0x18243f['id']})[_0x1f2d4a('0x1dc2')][_0x1f2d4a('0xaa5')](function(_0x1ef5c6){var _0x1a0741=_0x1f2d4a,_0x557fb7=_0x51538b()[_0x1a0741('0x1246')](_0x1ef5c6[_0x1a0741('0x580')],function(_0x3e1730){var _0x48be5f=_0x1a0741;return _0x51538b()[_0x48be5f('0xe9e')](_0x21d426[_0x48be5f('0x1126')],{'id':_0x3e1730[_0x48be5f('0xbcd')]});}),_0x38e711=null;_0x21d426[_0x1a0741('0x1f6a')]&&(_0x38e711=_0x51538b()[_0x1a0741('0xe9e')](_0x21d426[_0x1a0741('0x1126')],{'id':Number(_0x21d426[_0x1a0741('0x1f6a')][_0x1a0741('0xee0')])}));if(_0x38e711&&!_0x51538b()[_0x1a0741('0x2c2')](_0x557fb7,['id',_0x38e711['id']])){var _0x5007fd=_0x51538b()[_0x1a0741('0xe9e')](_0x21d426[_0x1a0741('0x1126')],{'id':_0x38e711['id']});_0x5007fd[_0x1a0741('0x12eb')]=![],_0x557fb7['push'](_0x5007fd);}_0x21d426[_0x1a0741('0x1126')]=_0x557fb7;});}})[_0x5b26b7('0x253d')](function(_0xe286ff){var _0x198560=_0x5b26b7;_0x47f10a[_0x198560('0x187f')]({'title':_0xe286ff[_0x198560('0x2fa')]?'API:'+_0xe286ff[_0x198560('0x2fa')]+_0x198560('0x169e')+_0xe286ff['statusText']:_0x198560('0x177f'),'msg':_0xe286ff['data']?JSON[_0x198560('0xa48')](_0xe286ff['data']):_0xe286ff[_0x198560('0x684')]()});});function _0x40f684(){var _0x210a98=_0x5b26b7;_0x21d426[_0x210a98('0x4c6')]=[],_0x12a8f5['faxAccount'][_0x210a98('0x1f0d')](_0x21d426[_0x210a98('0x1f6a')])[_0x210a98('0x1dc2')][_0x210a98('0xaa5')](function(_0x5da2bd){var _0x246541=_0x210a98;_0x21d426[_0x246541('0xf2c')]['unshift'](_0x5da2bd[_0x246541('0x256a')]()),_0x47f10a['success']({'title':_0x246541('0x39e'),'msg':_0x21d426[_0x246541('0x1f6a')][_0x246541('0x25d6')]?_0x21d426['faxAccount']['name']+'\x20has\x20been\x20created!':''}),_0x3d15aa(_0x5da2bd);})[_0x210a98('0x253d')](function(_0x56fdce){var _0x13c5a1=_0x210a98;if(_0x56fdce[_0x13c5a1('0x10fd')]&&_0x56fdce['data'][_0x13c5a1('0x4c6')]&&_0x56fdce['data'][_0x13c5a1('0x4c6')]['length']){_0x21d426[_0x13c5a1('0x4c6')]=_0x56fdce[_0x13c5a1('0x10fd')][_0x13c5a1('0x4c6')]||[{'message':_0x56fdce[_0x13c5a1('0x684')](),'type':_0x13c5a1('0x506')}];for(var _0x27cfe0=0x0;_0x27cfe0<_0x56fdce[_0x13c5a1('0x10fd')]['errors'][_0x13c5a1('0x2587')];_0x27cfe0+=0x1){_0x47f10a[_0x13c5a1('0x187f')]({'title':_0x56fdce[_0x13c5a1('0x10fd')]['errors'][_0x27cfe0]['type'],'msg':_0x56fdce[_0x13c5a1('0x10fd')][_0x13c5a1('0x4c6')][_0x27cfe0][_0x13c5a1('0x1402')]});}}else _0x47f10a[_0x13c5a1('0x187f')]({'title':_0x56fdce[_0x13c5a1('0x2fa')]?_0x13c5a1('0x16c2')+_0x56fdce[_0x13c5a1('0x2fa')]+'\x20-\x20'+_0x56fdce[_0x13c5a1('0x24df')]:_0x13c5a1('0x506'),'msg':_0x56fdce[_0x13c5a1('0x10fd')]?JSON[_0x13c5a1('0xa48')](_0x56fdce['data']['message']):_0x56fdce[_0x13c5a1('0x684')]()});});}function _0x349906(){var _0x5412a9=_0x5b26b7;_0x21d426[_0x5412a9('0x4c6')]=[],_0x12a8f5[_0x5412a9('0x1f6a')]['updateAccountApplications'](_0x21d426[_0x5412a9('0x1f6a')])[_0x5412a9('0x1dc2')][_0x5412a9('0xaa5')](function(_0x2d01ab){var _0x1ad9ee=_0x5412a9,_0x4e2047=_0x51538b()['find'](_0x21d426[_0x1ad9ee('0xf2c')],{'id':_0x2d01ab['id']});_0x4e2047&&_0x51538b()[_0x1ad9ee('0x283c')](_0x4e2047,_0x51538b()[_0x1ad9ee('0x104e')](_0x2d01ab[_0x1ad9ee('0x256a')](),_0x51538b()['keys'](_0x4e2047))),_0x47f10a['success']({'title':'FaxAccount\x20properly\x20saved!','msg':_0x21d426[_0x1ad9ee('0x1f6a')][_0x1ad9ee('0x25d6')]?_0x21d426['faxAccount'][_0x1ad9ee('0x25d6')]+_0x1ad9ee('0x20bf'):''}),_0x3d15aa(_0x2d01ab);})['catch'](function(_0x14046a){var _0x1f272c=_0x5412a9;if(_0x14046a[_0x1f272c('0x10fd')]&&_0x14046a[_0x1f272c('0x10fd')]['errors']&&_0x14046a[_0x1f272c('0x10fd')]['errors'][_0x1f272c('0x2587')]){_0x21d426[_0x1f272c('0x4c6')]=_0x14046a[_0x1f272c('0x10fd')][_0x1f272c('0x4c6')]||[{'message':_0x14046a[_0x1f272c('0x684')](),'type':'api.faxAccount.update'}];for(var _0x5db454=0x0;_0x5db454<_0x14046a[_0x1f272c('0x10fd')][_0x1f272c('0x4c6')][_0x1f272c('0x2587')];_0x5db454++){_0x47f10a[_0x1f272c('0x187f')]({'title':_0x14046a[_0x1f272c('0x10fd')][_0x1f272c('0x4c6')][_0x5db454][_0x1f272c('0x6c8')],'msg':_0x14046a['data'][_0x1f272c('0x4c6')][_0x5db454]['message']});}}else _0x47f10a[_0x1f272c('0x187f')]({'title':_0x14046a[_0x1f272c('0x2fa')]?_0x1f272c('0x16c2')+_0x14046a[_0x1f272c('0x2fa')]+_0x1f272c('0x169e')+_0x14046a[_0x1f272c('0x24df')]:_0x1f272c('0x264'),'msg':_0x14046a[_0x1f272c('0x10fd')]?JSON[_0x1f272c('0xa48')](_0x14046a[_0x1f272c('0x10fd')][_0x1f272c('0x1402')]):_0x14046a[_0x1f272c('0x684')]()});});}function _0x40c674(_0x154794){var _0x50a82a=_0x5b26b7;_0x21d426[_0x50a82a('0x4c6')]=[];var _0x46e334=_0x40772b['confirm']()['title']('Are\x20you\x20sure?')[_0x50a82a('0x15af')](_0x50a82a('0x849'))['ariaLabel'](_0x50a82a('0x261c'))['ok'](_0x50a82a('0x1e76'))[_0x50a82a('0x2030')]('Cancel')[_0x50a82a('0x116d')](_0x154794);_0x40772b[_0x50a82a('0x1e6d')](_0x46e334)[_0x50a82a('0xaa5')](function(){var _0x4b7f42=_0x50a82a;_0x12a8f5['faxAccount'][_0x4b7f42('0x926')]({'id':_0x21d426[_0x4b7f42('0x1f6a')]['id']})['$promise'][_0x4b7f42('0xaa5')](function(){var _0xf547a2=_0x4b7f42;_0x51538b()[_0xf547a2('0xf6d')](_0x21d426[_0xf547a2('0xf2c')],{'id':_0x21d426[_0xf547a2('0x1f6a')]['id']}),_0x47f10a['success']({'title':_0xf547a2('0x1d8f'),'msg':(_0x21d426[_0xf547a2('0x1f6a')][_0xf547a2('0x25d6')]||_0xf547a2('0x1f6a'))+'\x20has\x20been\x20deleted!'}),_0x3d15aa(_0x21d426['faxAccount']);})['catch'](function(_0x38c0cd){var _0x310759=_0x4b7f42;if(_0x38c0cd['data']&&_0x38c0cd[_0x310759('0x10fd')]['errors']&&_0x38c0cd[_0x310759('0x10fd')][_0x310759('0x4c6')][_0x310759('0x2587')]){_0x21d426['errors']=_0x38c0cd[_0x310759('0x10fd')][_0x310759('0x4c6')]||[{'message':_0x38c0cd[_0x310759('0x684')](),'type':_0x310759('0xe43')}];for(var _0x3d43d4=0x0;_0x3d43d4<_0x38c0cd[_0x310759('0x10fd')]['errors']['length'];_0x3d43d4++){_0x47f10a[_0x310759('0x187f')]({'title':_0x38c0cd[_0x310759('0x10fd')][_0x310759('0x4c6')][_0x3d43d4][_0x310759('0x6c8')],'msg':_0x38c0cd[_0x310759('0x10fd')][_0x310759('0x4c6')][_0x3d43d4][_0x310759('0x1402')]});}}else _0x47f10a[_0x310759('0x187f')]({'title':_0x38c0cd['status']?'API:'+_0x38c0cd[_0x310759('0x2fa')]+'\x20-\x20'+_0x38c0cd['statusText']:_0x310759('0xe43'),'msg':_0x38c0cd['data']?JSON[_0x310759('0xa48')](_0x38c0cd['data'][_0x310759('0x1402')]):_0x38c0cd[_0x310759('0x1402')]||_0x38c0cd[_0x310759('0x684')]()});});},function(){});}function _0x48f06c(_0x4952f4){return _0x4952f4===null?undefined:new Date(_0x4952f4);}function _0x3d15aa(_0x5a284f){var _0x2404a9=_0x5b26b7;_0x40772b[_0x2404a9('0x1120')](_0x5a284f);}}const _0x5e5ee8=_0xc5c9d,_0x4af863=_0x4fb511['p']+_0x1a8446('0x21ae'),_0x557fc5=_0x4fb511['p']+_0x1a8446('0x24db'),_0x14d707=_0x4fb511['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html',_0x10ad8a=_0x4fb511['p']+_0x1a8446('0xcb8'),_0x5b1ee6=_0x4fb511['p']+_0x1a8446('0x1e6e'),_0x5366e8=_0x4fb511['p']+_0x1a8446('0xedd'),_0x7301b1=_0x4fb511['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html',_0x342d92=_0x4fb511['p']+_0x1a8446('0x109b'),_0x362ff9=_0x4fb511['p']+_0x1a8446('0xe2');_0x22d11a[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),'$mdDialog','$document','toasty',_0x1a8446('0x1dfd')];var _0xd6f8c4={'agent':_0x4af863,'close':_0x557fc5,'gotoif':_0x14d707,'gotop':_0x10ad8a,'interval':_0x5b1ee6,'noop':_0x5366e8,'queue':_0x7301b1,'system':_0x342d92,'tag':_0x362ff9};function _0x22d11a(_0x536248,_0x4b7220,_0x586337,_0x824417,_0xe4ac31){var _0x3931cc=_0x1a8446,_0x124e34=this;_0x124e34[_0x3931cc('0x7fc')]=_0xe4ac31['getCurrentUser'](),_0x124e34[_0x3931cc('0x1f6a')]={},_0x124e34[_0x3931cc('0xa5c')]={'count':0x0,'rows':[]},_0x124e34[_0x3931cc('0xd54')]=[],_0x124e34[_0x3931cc('0xada')],_0x124e34[_0x3931cc('0x582')]={'sort':'priority'},_0x124e34['apps']=_0x51538b()['reject'](_0x51538b()['sortBy']([{'app':_0x3931cc('0x260f'),'appType':_0x3931cc('0x1c21'),'types':[_0x3931cc('0x1b43'),_0x3931cc('0x113b'),_0x3931cc('0x2334')],'fields':[],'isApp':![]},{'app':_0x3931cc('0x27ca'),'appType':'noop','type':_0x3931cc('0x27ca'),'icon':_0x3931cc('0x1892'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x3931cc('0xfba'),'name':_0x3931cc('0x12f4'),'type':_0x3931cc('0xb37'),'param':0x0}]},{'app':_0x3931cc('0x5da'),'appType':_0x3931cc('0x5da'),'type':_0x3931cc('0x5da'),'icon':_0x3931cc('0x1892'),'interval':_0x3931cc('0x1ac6'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x3931cc('0x14e7'),'key':_0x3931cc('0x25d6')},'route':_0x3931cc('0x14e7'),'filters':{'fields':'id,name','sort':_0x3931cc('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x3931cc('0x23a0'),'name':_0x3931cc('0xd7b'),'type':_0x3931cc('0xb37'),'required':!![],'param':0x0},{'title':_0x3931cc('0x1093'),'name':_0x3931cc('0x14e7'),'type':_0x3931cc('0xd4d'),'values':'variables','value':_0x3931cc('0x23d4'),'option':_0x3931cc('0x23d4'),'defaultValues':[{'value':'\x27\x27','option':_0x3931cc('0xfeb')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x3931cc('0x1141'),'appType':_0x3931cc('0x1141'),'type':_0x3931cc('0x2781'),'icon':_0x3931cc('0x1892'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3931cc('0x2722'),'name':_0x3931cc('0x13f2'),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x3931cc('0x3cb'),'appType':_0x3931cc('0x3cb'),'type':_0x3931cc('0x3cb'),'icon':_0x3931cc('0x1892'),'interval':_0x3931cc('0x1ac6'),'isApp':!![],'fields':[{'title':'Condition','name':_0x3931cc('0xe77'),'type':_0x3931cc('0xb37'),'required':!![],'param':0x0},{'title':'truepriority','name':_0x3931cc('0x13ba'),'type':_0x3931cc('0x219a'),'min':0x1,'required':!![],'param':0x1},{'title':_0x3931cc('0x222b'),'name':_0x3931cc('0x222b'),'type':_0x3931cc('0x219a'),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x3931cc('0xe26'),'foreignKey':'FaxQueueId','type':_0x3931cc('0xe26'),'icon':_0x3931cc('0x1892'),'interval':_0x3931cc('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x3931cc('0x4d7'),'field':{'name':_0x3931cc('0xe26'),'key':'name'},'route':'faxQueue','filters':{'fields':'id,name,type','sort':_0x3931cc('0x25d6'),'nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':_0x3931cc('0x145c'),'name':'queue','type':_0x3931cc('0xd4d'),'values':_0x3931cc('0x4d7'),'value':_0x3931cc('0x1766'),'option':_0x3931cc('0x1766'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x3931cc('0xc45'),'name':_0x3931cc('0x23c0'),'type':'number','max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x3931cc('0xeff'),'appType':_0x3931cc('0xeff'),'type':_0x3931cc('0xeff'),'foreignKey':'UserId','icon':_0x3931cc('0x1892'),'interval':_0x3931cc('0x1ac6'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x3931cc('0xeff'),'key':'name'},'route':_0x3931cc('0x272b'),'filters':{'fields':'id,name','sort':_0x3931cc('0x25d6'),'role':_0x3931cc('0xeff'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x3931cc('0x521'),'name':_0x3931cc('0xeff'),'type':_0x3931cc('0xd4d'),'values':_0x3931cc('0x1717'),'value':'agent.name','option':_0x3931cc('0x11cf'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x3931cc('0x23c0'),'type':_0x3931cc('0x219a'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x3931cc('0x21d0'),'appType':'close','type':_0x3931cc('0x21d0'),'icon':_0x3931cc('0x1892'),'interval':_0x3931cc('0x1ac6'),'isApp':!![],'fields':[{'title':_0x3931cc('0x2010'),'name':_0x3931cc('0x106e'),'type':_0x3931cc('0xb37'),'required':!![],'param':0x0}]},{'app':'tag','appType':_0x3931cc('0x38f'),'type':'tag','foreignKey':_0x3931cc('0x2028'),'icon':_0x3931cc('0x1892'),'interval':_0x3931cc('0x1ac6'),'isApp':!![],'extraApi':[{'name':_0x3931cc('0x523'),'field':{'name':_0x3931cc('0x38f'),'key':_0x3931cc('0x25d6')},'route':_0x3931cc('0x38f'),'filters':{'fields':_0x3931cc('0x17fe'),'sort':_0x3931cc('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':_0x3931cc('0x38f'),'type':'apiselect','values':'tags','value':_0x3931cc('0x17df'),'option':_0x3931cc('0x17df'),'required':!![],'param':0x0}]}],[_0x3931cc('0x9eb')]),{'isApp':![]}),_0x124e34[_0x3931cc('0x2334')]={'group':{'name':_0x3931cc('0xdf0'),'pull':_0x3931cc('0x1ae5')},'animation':0x64,'sort':![]},_0x124e34[_0x3931cc('0x209b')]={'group':{'name':'opt2','put':'opt1'},'animation':0x64,'onAdd':function _0x4b8881(_0x5dfdbf){_0x15d916(_0x5dfdbf,_0x5dfdbf['newIndex']);},'onSort':function _0x3650c7(){_0x54e207();}},_0x124e34[_0x3931cc('0x2e')]=_0x15a809,_0x124e34[_0x3931cc('0x1416')]=_0x23d9da,_0x124e34[_0x3931cc('0x2524')]=_0x42755c,_0x124e34[_0x3931cc('0x1773')]=_0x15d916,_0x124e34[_0x3931cc('0x1e6')]=_0x564661,_0x124e34[_0x3931cc('0xb82')]=_0x1a8acc,_0x124e34['deleteSelectedFaxAccountApps']=_0x43ee51,_0x124e34[_0x3931cc('0x1f31')]=_0x54e207,_0x124e34['getIntervals']=_0x3fc504;function _0x15a809(_0x52b39d,_0x3cf9d3){var _0x5f4d82=_0x3931cc;_0x124e34[_0x5f4d82('0x1f6a')]=_0x52b39d,_0x124e34[_0x5f4d82('0xada')]=typeof _0x3cf9d3!==_0x5f4d82('0x1574')?_0x3cf9d3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x124e34['applications']['disabled']=!_0x124e34[_0x5f4d82('0xada')]['canEdit']?!![]:![],_0x124e34[_0x5f4d82('0x582')]['id']=_0x52b39d['id'],_0x124e34[_0x5f4d82('0x582')][_0x5f4d82('0x26a1')]=!![],_0x124e34[_0x5f4d82('0x582')][_0x5f4d82('0x86a')]=!![],_0x124e34[_0x5f4d82('0x2524')](),_0x124e34[_0x5f4d82('0x1f55')]();}function _0x23d9da(_0x406578,_0x4f9f49,_0x39e748){var _0xf04912=_0x3931cc,_0x9229d3=_0x4b7220[_0xf04912('0x281e')]()[_0xf04912('0x110a')](_0xf04912('0x912'))[_0xf04912('0x102e')](_0xf04912('0x389')+_0x406578[_0xf04912('0x9eb')]+_0xf04912('0x697')+_0xf04912('0x210d'))[_0xf04912('0x5b5')](_0xf04912('0x21a3'))[_0xf04912('0x116d')](_0x39e748)['ok']('OK')[_0xf04912('0x2030')](_0xf04912('0x2410'));_0x4b7220[_0xf04912('0x1e6d')](_0x9229d3)['then'](function(){var _0x99e504=_0xf04912;_0x124e34[_0x99e504('0xa5c')][_0x99e504('0x580')][_0x99e504('0x1280')](_0x4f9f49,0x1),_0x54e207();},function(){var _0x4dafd7=_0xf04912;console[_0x4dafd7('0x18d5')](_0x4dafd7('0x2410'));});}function _0x15d916(_0x52c6f8,_0x5a3caa){var _0x306a50=_0x3931cc;if(_0x124e34['faxAccountApps']['rows'][_0x306a50('0x2587')]){var _0x484a3f=_0x124e34[_0x306a50('0xa5c')]['rows'][_0x5a3caa]?_0x124e34[_0x306a50('0xa5c')]['rows'][_0x5a3caa]:_0x124e34['faxAccountApps']['rows'][0x0],_0x4073a3=(_0x484a3f[_0x306a50('0xe6d')]||_0x484a3f['app'])['toLowerCase']();_0x4b7220[_0x306a50('0x1e6d')]({'controller':_0x306a50('0xcfc')[_0x306a50('0x9e4')](_0x4073a3,_0x306a50('0x1f76')),'controllerAs':'vm','templateUrl':_0xd6f8c4[_0x4073a3],'parent':angular[_0x306a50('0x1aa8')](_0x586337[_0x306a50('0x54c')]),'targetEvent':_0x52c6f8,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x484a3f,'faxAccount':_0x124e34[_0x306a50('0x1f6a')],'crudPermissions':_0x124e34['crudPermissions']}})[_0x306a50('0xaa5')](function(_0x311321){var _0x27a424=_0x306a50;_0x311321&&(_0x311321['id']?_0x124e34[_0x27a424('0xa5c')][_0x27a424('0x580')][_0x5a3caa]=_0x311321:_0x124e34[_0x27a424('0xa5c')][_0x27a424('0x580')][_0x27a424('0x1280')](_0x5a3caa,0x0,_0x311321),_0x54e207());})[_0x306a50('0x253d')](function(_0x5e1049){var _0x49833a=_0x306a50;_0x5e1049&&_0x824417[_0x49833a('0x187f')]({'title':_0x5e1049[_0x49833a('0x2fa')]?_0x49833a('0x16c2')+_0x5e1049[_0x49833a('0x2fa')]+_0x49833a('0x169e')+_0x5e1049[_0x49833a('0x24df')]:_0x49833a('0x26b6'),'msg':_0x5e1049[_0x49833a('0x10fd')]?JSON[_0x49833a('0xa48')](_0x5e1049[_0x49833a('0x10fd')]):_0x5e1049[_0x49833a('0x684')]()});});}}function _0x564661(_0x5e4da6,_0x4f5f78){var _0x4ec4e0=_0x3931cc;if(_0x124e34[_0x4ec4e0('0xa5c')]['rows'][_0x4ec4e0('0x2587')]){var _0x4e27a9=_0x124e34[_0x4ec4e0('0xa5c')][_0x4ec4e0('0x580')][_0x4f5f78]?_0x124e34[_0x4ec4e0('0xa5c')][_0x4ec4e0('0x580')][_0x4f5f78]:_0x124e34[_0x4ec4e0('0xa5c')]['rows'][0x0];_0x4b7220['show']({'controller':_0x4ec4e0('0xe07'),'controllerAs':'vm','templateUrl':_0x5b1ee6,'parent':angular[_0x4ec4e0('0x1aa8')](_0x586337[_0x4ec4e0('0x54c')]),'targetEvent':_0x5e4da6,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x4e27a9[_0x4ec4e0('0x1c21')],'IntervalId':_0x4e27a9[_0x4ec4e0('0x1f8c')],'application':!![]},'intervals':[],'crudPermissions':_0x124e34[_0x4ec4e0('0xada')]}})[_0x4ec4e0('0xaa5')](function(_0xe61f34){var _0x422a0a=_0x4ec4e0;_0xe61f34&&(_0x4e27a9['interval']=_0xe61f34[_0x422a0a('0x1c21')]||'*,*,*,*',_0x4e27a9[_0x422a0a('0x1f8c')]=_0xe61f34['IntervalId']||null,_0x54e207());});}}function _0x54e207(){var _0x49b232=_0x3931cc,_0x2c46b9=0x1,_0x29322a=[];for(var _0x48a42b=0x0;_0x48a42b<_0x124e34[_0x49b232('0xa5c')][_0x49b232('0x580')][_0x49b232('0x2587')];_0x48a42b++){var _0x197190=_0x124e34[_0x49b232('0xa5c')][_0x49b232('0x580')][_0x48a42b],_0x418ddc=[],_0x295ff6=[];_0x197190[_0x49b232('0x2568')]=_0x197190[_0x49b232('0x1c21')]!=='*,*,*,*'?[_0x197190[_0x49b232('0x1c21')]]:_0x197190[_0x49b232('0x1f8c')]?_0x51538b()[_0x49b232('0x1246')](_0x51538b()['filter'](_0x124e34[_0x49b232('0x2568')]['rows'],{'IntervalId':_0x197190[_0x49b232('0x1f8c')]}),'interval'):[],_0x197190[_0x49b232('0x19cd')]=_0x124e34[_0x49b232('0x1f6a')]['context'],_0x197190['exten']=_0x124e34[_0x49b232('0x1f6a')]['exten'],_0x197190[_0x49b232('0x6c8')]&&(_0x197190[_0x49b232('0x6c8')]=_0x197190[_0x49b232('0x6c8')][_0x49b232('0xcf6')]()),_0x197190[_0x49b232('0x13f2')]=_0x418ddc[_0x49b232('0x2587')]?_0x51538b()[_0x49b232('0x23f4')](_0x418ddc)[_0x49b232('0x13f2')]+0x1:_0x2c46b9,_0x2c46b9=(_0x295ff6[_0x49b232('0x2587')]?_0x51538b()[_0x49b232('0x23f4')](_0x295ff6)[_0x49b232('0x13f2')]:_0x197190[_0x49b232('0x13f2')])+0x1,_0x29322a=_0x51538b()['concat'](_0x29322a,_0x418ddc,[_0x197190],_0x295ff6);}_0x536248[_0x49b232('0x1f6a')][_0x49b232('0x12e')]({'id':_0x124e34[_0x49b232('0x1f6a')]['id']},_0x51538b()['sortBy'](_0x29322a,'priority'))['$promise'][_0x49b232('0xaa5')](function(_0x1ae7a5){var _0x438217=_0x49b232;_0x124e34[_0x438217('0xa5c')][_0x438217('0x580')]=_0x1ae7a5['rows'];})['catch'](function(_0x5e6948){console['error'](_0x5e6948);});}function _0x22130e(_0x323cc6){_0x124e34['faxAccountApps']=_0x323cc6||{'count':0x0,'rows':[]};}function _0x3fc504(){var _0x3e5e1b=_0x3931cc;return _0x536248[_0x3e5e1b('0x1c21')]['get']({'fields':_0x3e5e1b('0x1487')})[_0x3e5e1b('0x1dc2')][_0x3e5e1b('0xaa5')](function(_0x11ae00){var _0x48e197=_0x3e5e1b;_0x124e34[_0x48e197('0x2568')]=_0x11ae00;})[_0x3e5e1b('0x253d')](function(_0x2d0ef0){var _0x571606=_0x3e5e1b;console[_0x571606('0x187f')](_0x2d0ef0);});}function _0x42755c(){var _0x4a031c=_0x3931cc;_0x124e34['promise']=_0x536248[_0x4a031c('0x1f6a')]['getApplications'](_0x124e34[_0x4a031c('0x582')],_0x22130e)['$promise'];}function _0x1a8acc(_0x1873c2){var _0x53b6ab=_0x3931cc;_0x51538b()[_0x53b6ab('0xf6d')](_0x124e34[_0x53b6ab('0xa5c')]['rows'],{'id':_0x1873c2['id']}),_0x54e207(),_0x824417[_0x53b6ab('0xe10')]({'title':_0x53b6ab('0x1446'),'msg':_0x1873c2[_0x53b6ab('0x9eb')]?_0x1873c2[_0x53b6ab('0x9eb')]+_0x53b6ab('0xcd9'):''});}function _0x43ee51(_0x280a5a){var _0x2f2336=_0x3931cc,_0x4d9a09=_0x4b7220[_0x2f2336('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x2f2336('0x102e')](''+_0x124e34[_0x2f2336('0xd54')][_0x2f2336('0x2587')]+_0x2f2336('0x1443')+_0x2f2336('0x210d'))[_0x2f2336('0x5b5')](_0x2f2336('0x2845'))[_0x2f2336('0x116d')](_0x280a5a)['ok']('OK')[_0x2f2336('0x2030')](_0x2f2336('0x2410'));_0x4b7220[_0x2f2336('0x1e6d')](_0x4d9a09)[_0x2f2336('0xaa5')](function(){var _0x147e79=_0x2f2336;_0x124e34[_0x147e79('0xd54')][_0x147e79('0x15b5')](function(_0x115e32){var _0x5bb59a=_0x147e79;_0x51538b()['remove'](_0x124e34[_0x5bb59a('0xa5c')]['rows'],{'id':_0x115e32['id']});}),_0x124e34[_0x147e79('0xd54')]=[],_0x54e207();});}}const _0x3b3183=_0x22d11a;_0x163586['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1f6a'),_0x1a8446('0xf2c'),'realtime',_0x1a8446('0xcb3'),'Auth','crudPermissions'];function _0x163586(_0x8f450,_0x57e55b,_0x1a066c,_0x18ccf0,_0x3e2a12,_0x21d47c,_0x47d63d,_0x417d35,_0x2d0f01,_0x5cfd70){var _0x36bca0=_0x1a8446,_0x2f186a=this;_0x2f186a[_0x36bca0('0x7fc')]=_0x2d0f01[_0x36bca0('0xacc')](),_0x2f186a[_0x36bca0('0x1f6a')]=_0x3e2a12,_0x2f186a['crudPermissions']=_0x5cfd70,_0x2f186a[_0x36bca0('0x4f3')]=_0x47d63d,_0x2f186a[_0x36bca0('0x1a30')]=[],_0x2f186a[_0x36bca0('0x11b9')]=[],_0x2f186a[_0x36bca0('0xbf7')]=[],_0x2f186a[_0x36bca0('0x215b')]=[],_0x2f186a[_0x36bca0('0x214a')]=[],_0x2f186a[_0x36bca0('0xc54')]=![],_0x2f186a[_0x36bca0('0x2318')]=_0xd0751d,_0x2f186a[_0x36bca0('0x17bb')]=_0x25309b,_0x2f186a[_0x36bca0('0x2023')]=_0x25dc42,_0x2f186a[_0x36bca0('0x1c23')]={'readOnly':!_0x2f186a[_0x36bca0('0xada')][_0x36bca0('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x36bca0('0x25d6'),'line1':'fullname','line2':[_0x36bca0('0x25d6'),'internal'],'line3':'','labelAll':_0x417d35[_0x36bca0('0x213f')](_0x36bca0('0x193b')),'labelSelected':_0x417d35[_0x36bca0('0x213f')](_0x36bca0('0x1c2a')),'transferCallback':function _0x1a4df6(){var _0x291ef4=_0x36bca0,_0x2bd749=_0x51538b()[_0x291ef4('0x9ef')](_0x2f186a[_0x291ef4('0x214a')],_0x2f186a[_0x291ef4('0xbf7')],'id');_0x2f186a['pendingChanges']=_0x51538b()[_0x291ef4('0x116b')](_0x2bd749)?![]:!![];}};function _0xd0751d(){var _0x1cc821=_0x36bca0;return _0x2d0f01[_0x1cc821('0x26e8')]('admin')?_0x3ee1b5()['catch'](function(_0x5416ea){var _0x2a7737=_0x1cc821;_0x1a066c[_0x2a7737('0x187f')]({'title':_0x5416ea[_0x2a7737('0x2fa')]?'API:'+_0x5416ea[_0x2a7737('0x2fa')]+_0x2a7737('0x169e')+_0x5416ea[_0x2a7737('0x24df')]:_0x2a7737('0x14c6'),'msg':_0x5416ea[_0x2a7737('0x2fa')]?JSON[_0x2a7737('0xa48')](_0x5416ea[_0x2a7737('0x10fd')]):_0x5416ea[_0x2a7737('0x684')]()});}):_0x4dd95b()[_0x1cc821('0xaa5')](function(_0x43e046){var _0x286250=_0x1cc821;return _0x2f186a[_0x286250('0x224d')]=_0x43e046,_0x3ee1b5();})[_0x1cc821('0x253d')](function(_0x2e94fb){var _0x14a195=_0x1cc821;_0x1a066c[_0x14a195('0x187f')]({'title':_0x2e94fb['status']?_0x14a195('0x16c2')+_0x2e94fb[_0x14a195('0x2fa')]+'\x20-\x20'+_0x2e94fb['statusText']:_0x14a195('0x14c6'),'msg':_0x2e94fb[_0x14a195('0x2fa')]?JSON[_0x14a195('0xa48')](_0x2e94fb[_0x14a195('0x10fd')]):_0x2e94fb[_0x14a195('0x684')]()});});}function _0x4dd95b(){return _0x57e55b(function(_0x30d141,_0x1572fe){var _0x51a541=a0_0x1149;_0x18ccf0['userProfileSection'][_0x51a541('0x2122')]({'userProfileId':_0x2f186a[_0x51a541('0x7fc')][_0x51a541('0x2168')],'name':_0x51a541('0x91a')})['$promise']['then'](function(_0x49f1bb){var _0x56dd61=_0x51a541,_0x4f5470=_0x49f1bb&&_0x49f1bb[_0x56dd61('0x580')]?_0x49f1bb['rows'][0x0]:null;_0x30d141(_0x4f5470);})[_0x51a541('0x253d')](function(_0x8e5e28){_0x1572fe(_0x8e5e28);});});}function _0x3ee1b5(){return _0x57e55b(function(_0x99a823,_0x1ced7b){var _0x17521c=a0_0x1149;return _0x1c7a36()[_0x17521c('0xaa5')](function(_0x5a0606){var _0x42cc69=_0x17521c;return _0x2f186a['items']=_0x5a0606['rows']?_0x5a0606['rows']:[],_0x2d0f01[_0x42cc69('0x26e8')](_0x42cc69('0x178b'))?_0x5a0606:_0x2f186a[_0x42cc69('0x224d')]?_0x2f186a['section'][_0x42cc69('0x26cc')]?_0x5a0606:_0x3e903c():null;})['then'](function(_0x48ba1e){var _0x7f8adb=_0x17521c,_0x4b5d23=_0x48ba1e&&_0x48ba1e[_0x7f8adb('0x580')]?_0x48ba1e[_0x7f8adb('0x580')]:[];return _0x2f186a[_0x7f8adb('0x11b9')]=_0x51538b()['map'](_0x4b5d23,function(_0x48458d){var _0x20bad6=_0x7f8adb;return _0x51538b()[_0x20bad6('0xe9e')](_0x2f186a['items'],{'id':_0x2d0f01['hasRole'](_0x20bad6('0x178b'))||_0x2f186a['section'][_0x20bad6('0x26cc')]?_0x48458d['id']:_0x48458d['resourceId']});}),_0x2f186a['startingAllowedItems']=angular[_0x7f8adb('0x20a')](_0x2f186a[_0x7f8adb('0x11b9')]),_0x2f186a[_0x7f8adb('0x1a30')]['forEach'](function(_0x5e0992){var _0x7f4461=_0x7f8adb,_0x44fbdc=_0x51538b()[_0x7f4461('0xe9e')](_0x2f186a[_0x7f4461('0x11b9')],{'id':_0x5e0992['id']});_0x2d0f01[_0x7f4461('0x26e8')](_0x7f4461('0x178b'))?_0x5e0992[_0x7f4461('0x145d')]=!![]:_0x5e0992[_0x7f4461('0x145d')]=typeof _0x44fbdc!==_0x7f4461('0x1574')?!![]:![];}),_0x29f83d();})[_0x17521c('0xaa5')](function(_0x10a2a5){var _0x5ab4a8=_0x17521c,_0x329d55=_0x10a2a5&&_0x10a2a5['rows']?_0x10a2a5[_0x5ab4a8('0x580')]:[];_0x2f186a[_0x5ab4a8('0xbf7')]=_0x51538b()[_0x5ab4a8('0x1246')](_0x329d55,function(_0x3ac743){var _0x1e8ac3=_0x5ab4a8,_0x1251dd=_0x51538b()[_0x1e8ac3('0xe9e')](_0x2f186a[_0x1e8ac3('0x1a30')],{'id':_0x3ac743['id']});return _0x1251dd[_0x1e8ac3('0x2234')]=_0x3ac743['UserFaxAccount']?_0x1e8ac3('0x17b0')+_0x3ac743[_0x1e8ac3('0x235d')][_0x1e8ac3('0x2234')]:'',_0x1251dd['internal']=typeof _0x3ac743[_0x1e8ac3('0x1b0d')]!==_0x1e8ac3('0x1574')?'<'+_0x3ac743[_0x1e8ac3('0x1b0d')]+'>':'',_0x1251dd;}),_0x2f186a[_0x5ab4a8('0x214a')]=angular['copy'](_0x2f186a['selectedItems']),_0x2f186a[_0x5ab4a8('0x1c23')][_0x5ab4a8('0xbf7')]=_0x2f186a[_0x5ab4a8('0xbf7')],_0x2f186a[_0x5ab4a8('0x1c23')][_0x5ab4a8('0x1a30')]=_0x51538b()[_0x5ab4a8('0x1ebb')](_0x2f186a[_0x5ab4a8('0x11b9')],_0x2f186a[_0x5ab4a8('0x1c23')]['selectedItems'],'id'),_0x99a823();})[_0x17521c('0x253d')](function(_0x330676){_0x1ced7b(_0x330676);});});}function _0x3e903c(){return _0x57e55b(function(_0x3206d3,_0x2db99d){var _0x2751d2=a0_0x1149;return _0x18ccf0[_0x2751d2('0x249a')][_0x2751d2('0x2122')]({'sectionId':_0x2f186a[_0x2751d2('0x224d')]['id'],'nolimit':!![]})[_0x2751d2('0x1dc2')][_0x2751d2('0xaa5')](function(_0x5c89b7){_0x3206d3(_0x5c89b7);})['catch'](function(_0x3d9063){_0x2db99d(_0x3d9063);});});}function _0x29f83d(){return _0x57e55b(function(_0xafff2a,_0x20e1bc){var _0x5d67d3=a0_0x1149;return _0x18ccf0['faxAccount'][_0x5d67d3('0x1483')]({'id':_0x2f186a[_0x5d67d3('0x1f6a')]['id'],'fields':_0x5d67d3('0x283f'),'nolimit':!![],'role':'agent'})[_0x5d67d3('0x1dc2')][_0x5d67d3('0xaa5')](function(_0x493036){_0xafff2a(_0x493036);})[_0x5d67d3('0x253d')](function(_0x306c45){_0x20e1bc(_0x306c45);});});}function _0x1c7a36(){return _0x57e55b(function(_0x47e28e,_0x3090d2){var _0x314871=a0_0x1149;return _0x18ccf0[_0x314871('0x272b')][_0x314871('0x2122')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x314871('0xeff')})[_0x314871('0x1dc2')]['then'](function(_0x27699c){_0x47e28e(_0x27699c);})['catch'](function(_0x431351){_0x3090d2(_0x431351);});});}function _0x2c5c26(_0x459ede){return _0x57e55b(function(_0x2ac512,_0x4836be){var _0xd0681d=a0_0x1149;_0x51538b()[_0xd0681d('0x116b')](_0x459ede)?_0x2ac512():_0x18ccf0[_0xd0681d('0x1f6a')][_0xd0681d('0x26b1')]({'id':_0x2f186a['faxAccount']['id'],'ids':_0x51538b()[_0xd0681d('0x1246')](_0x459ede,'id')})[_0xd0681d('0x1dc2')][_0xd0681d('0xaa5')](function(){_0x2ac512();})[_0xd0681d('0x253d')](function(_0x13a687){_0x4836be(_0x13a687);});});}function _0xad20c1(_0x3f01eb){return _0x57e55b(function(_0x3c4514,_0x1d0a90){var _0x24258a=a0_0x1149;_0x51538b()[_0x24258a('0x116b')](_0x3f01eb)?_0x3c4514():_0x18ccf0[_0x24258a('0x1f6a')][_0x24258a('0x258e')]({'id':_0x2f186a[_0x24258a('0x1f6a')]['id'],'ids':_0x51538b()[_0x24258a('0x1246')](_0x3f01eb,'id')})[_0x24258a('0x1dc2')]['then'](function(){_0x3c4514();})[_0x24258a('0x253d')](function(_0x49dc46){_0x1d0a90(_0x49dc46);});});}function _0x25309b(){var _0x407701=_0x36bca0,_0x2440f4=_0x51538b()[_0x407701('0x1ebb')](_0x2f186a[_0x407701('0x214a')],_0x2f186a[_0x407701('0xbf7')],'id'),_0x2220b9=_0x51538b()[_0x407701('0x1ebb')](_0x2f186a['selectedItems'],_0x2f186a[_0x407701('0x214a')],'id');return _0xad20c1(_0x2440f4)['then'](function(){return _0x2c5c26(_0x2220b9);})[_0x407701('0xaa5')](function(){var _0xc9765e=_0x407701;_0x2f186a[_0xc9765e('0xc54')]=![],_0x2f186a[_0xc9765e('0x215b')]=angular[_0xc9765e('0x20a')](_0x2f186a['allowedItems']),_0x2f186a[_0xc9765e('0x214a')]=angular[_0xc9765e('0x20a')](_0x2f186a[_0xc9765e('0xbf7')]),_0x1a066c['success']({'title':_0xc9765e('0x2eb'),'msg':_0xc9765e('0xc60')});})[_0x407701('0x253d')](function(_0x16c867){var _0x527b7c=_0x407701;_0x1a066c[_0x527b7c('0x187f')]({'title':_0x16c867[_0x527b7c('0x2fa')]?_0x527b7c('0x16c2')+_0x16c867['status']+_0x527b7c('0x169e')+_0x16c867[_0x527b7c('0x24df')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x16c867[_0x527b7c('0x2fa')]?JSON[_0x527b7c('0xa48')](_0x16c867[_0x527b7c('0x10fd')]):_0x16c867[_0x527b7c('0x684')]()});});}function _0x25dc42(){_0x8f450['hide']();}}const _0x3ddf84=_0x163586;_0x2204fd[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0xaf0'),'faxAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x2204fd(_0xce7c56,_0x1c2347,_0x4016a2,_0x3ee249,_0x3634e2,_0x2db407,_0x5ea11e,_0x275f9d){var _0x462eb3=_0x1a8446,_0x38356d=this;_0x38356d[_0x462eb3('0x7fc')]=_0x5ea11e[_0x462eb3('0xacc')](),_0x38356d['errors']=[],_0x38356d[_0x462eb3('0x110a')]=_0x462eb3('0x18d9')+(_0x3ee249['appType']||_0x3ee249[_0x462eb3('0x9eb')])[_0x462eb3('0x1d08')](),_0x38356d[_0x462eb3('0xeff')]=angular['copy'](_0x3ee249),_0x38356d[_0x462eb3('0xada')]=_0x275f9d,_0x38356d[_0x462eb3('0x9f0')]={};if(_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x124b')])switch(_0x38356d['agent'][_0x462eb3('0xe6d')]?_0x38356d[_0x462eb3('0xeff')]['appType'][_0x462eb3('0xcf6')]():_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x9eb')][_0x462eb3('0xcf6')]()){case _0x462eb3('0x113b'):break;case _0x462eb3('0x67c'):{var _0x21849c=_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x124b')][_0x462eb3('0x1a39')](',');_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x24ec')]=_0x21849c[0x0],_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x1938')]=_0x21849c[0x1],_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x273')]=_0x21849c['slice'](0x2,_0x21849c['length'])[_0x462eb3('0x19c4')](',');}break;case _0x462eb3('0x3f5'):{var _0x332b05=_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x124b')]['split'](',');_0x38356d[_0x462eb3('0xeff')]['accesskeyid']=_0x332b05[0x0],_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x15f9')]=_0x332b05[0x1],_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0xa9a')]=_0x332b05[0x2],_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x18ee')]=_0x332b05[0x3],_0x38356d['agent'][_0x462eb3('0x273')]=_0x332b05[_0x462eb3('0x19aa')](0x4,_0x332b05[_0x462eb3('0x2587')])[_0x462eb3('0x19c4')](',');}break;case _0x462eb3('0x1b05'):{var _0x4af836=_0x38356d[_0x462eb3('0xeff')]['appdata'][_0x462eb3('0x1a39')](',');_0x38356d['agent']['times']=isNaN(_0x4af836[0x0])?_0x4af836[0x0]:parseInt(_0x4af836[0x0],0xa),_0x38356d['agent'][_0x462eb3('0xb37')]=_0x4af836[_0x462eb3('0x19aa')](0x1,_0x4af836[_0x462eb3('0x2587')])[_0x462eb3('0x19c4')](',');}break;case'message':_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0xb37')]=_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x124b')];break;case _0x462eb3('0x282c'):_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x25d6')]=_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x124b')][_0x462eb3('0x1a39')]('=')[0x0],_0x38356d[_0x462eb3('0xeff')]['value']=_0x38356d['agent']['appdata']['split']('=')[0x1];break;case _0x462eb3('0x2067'):_0x38356d['agent'][_0x462eb3('0x24b9')]=_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x124b')];break;default:{var _0x13772a=_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x124b')][_0x462eb3('0x1a39')](',');_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0xeff')]=_0x51538b()[_0x462eb3('0x116b')](_0x13772a[0x0])?_0x13772a[0x0]:isNaN(_0x13772a[0x0])?_0x13772a[0x0]:parseInt(_0x13772a[0x0],0xa),_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x23c0')]=_0x51538b()['isEmpty'](_0x13772a[0x1])?_0x13772a[0x1]:isNaN(_0x13772a[0x1])?_0x13772a[0x1]:parseInt(_0x13772a[0x1],0xa);}break;}else _0x38356d[_0x462eb3('0xeff')]['timeout']=0x1e;_0x38356d['agent'][_0x462eb3('0x6c8')]&&_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x6c8')][_0x462eb3('0xcf6')]()===_0x462eb3('0x19d1')&&_0x38356d['agent'][_0x462eb3('0xe6d')][_0x462eb3('0xcf6')]()===_0x462eb3('0x1e7f')&&(_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x1b8f')]=_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x1a46')]?_0x38356d[_0x462eb3('0xeff')]['phone'][_0x462eb3('0x1a39')]('$')[0x0]:undefined,_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0xeed')]=_0x38356d[_0x462eb3('0xeff')]['callerID']?_0x462eb3('0x23d8')+_0x38356d[_0x462eb3('0xeff')][_0x462eb3('0x514')]:undefined);_0x38356d[_0x462eb3('0x14f6')]=_0x19864b,_0x38356d[_0x462eb3('0x2023')]=_0x1f38d8,_0x5ea11e['hasRole'](_0x462eb3('0x178b'))?_0x2db407['user'][_0x462eb3('0x2122')]({'fields':_0x462eb3('0x17fe'),'sort':'name','role':_0x462eb3('0xeff'),'nolimit':_0x462eb3('0x1c5c')})[_0x462eb3('0x1dc2')]['then'](function(_0x5da524){var _0x1ca629=_0x462eb3;_0x38356d[_0x1ca629('0x1717')]=_0x5da524[_0x1ca629('0x580')]||[];})[_0x462eb3('0x253d')](function(_0x4a7d18){var _0x3d3ede=_0x462eb3;_0x4016a2[_0x3d3ede('0x187f')]({'title':_0x4a7d18['status']?_0x3d3ede('0x16c2')+_0x4a7d18[_0x3d3ede('0x2fa')]+_0x3d3ede('0x169e')+_0x4a7d18[_0x3d3ede('0x24df')]:_0x3d3ede('0x14c6'),'msg':_0x4a7d18['data']?JSON[_0x3d3ede('0xa48')](_0x4a7d18['data']):_0x4a7d18[_0x3d3ede('0x684')]()});}):_0x2db407[_0x462eb3('0x272b')]['get']({'fields':_0x462eb3('0x17fe'),'sort':_0x462eb3('0x25d6'),'role':_0x462eb3('0xeff'),'nolimit':_0x462eb3('0x1c5c')})[_0x462eb3('0x1dc2')][_0x462eb3('0xaa5')](function(_0xaaf6f9){var _0x17dc9c=_0x462eb3;_0x38356d[_0x17dc9c('0x1717')]=_0xaaf6f9[_0x17dc9c('0x580')]||[];})[_0x462eb3('0xaa5')](function(){var _0x31bf49=_0x462eb3;return _0x2db407[_0x31bf49('0x1a50')]['get']({'userProfileId':_0x38356d[_0x31bf49('0x7fc')][_0x31bf49('0x2168')],'sectionId':0xca})[_0x31bf49('0x1dc2')];})[_0x462eb3('0xaa5')](function(_0x41e30d){var _0x2eab79=_0x462eb3,_0x5aaaf3=_0x41e30d&&_0x41e30d[_0x2eab79('0x580')]?_0x41e30d[_0x2eab79('0x580')][0x0]:null;if(!_0x5aaaf3){var _0x464e40=[],_0x4812e8=null;_0x38356d[_0x2eab79('0xeff')]&&(_0x4812e8=_0x51538b()[_0x2eab79('0xe9e')](_0x38356d[_0x2eab79('0x1717')],{'name':_0x38356d[_0x2eab79('0xeff')][_0x2eab79('0xeff')]}));for(var _0x412069=0x0;_0x412069<_0x38356d[_0x2eab79('0x1717')][_0x2eab79('0x2587')];_0x412069++){_0x4812e8&&_0x38356d[_0x2eab79('0x1717')][_0x412069]['id']===_0x4812e8['id']&&(_0x38356d[_0x2eab79('0x1717')][_0x412069][_0x2eab79('0x12eb')]=![],_0x464e40['push'](_0x38356d['agents'][_0x412069]));}_0x38356d[_0x2eab79('0x1717')]=_0x464e40;}else{if(!_0x5aaaf3[_0x2eab79('0x26cc')])return _0x2db407[_0x2eab79('0x249a')]['get']({'sectionId':_0x5aaaf3['id']})[_0x2eab79('0x1dc2')][_0x2eab79('0xaa5')](function(_0x1bb36d){var _0x45dd60=_0x2eab79,_0x5109c0=_0x51538b()[_0x45dd60('0x1246')](_0x1bb36d[_0x45dd60('0x580')],function(_0x5b1b24){var _0xc2c312=_0x45dd60;return _0x51538b()[_0xc2c312('0xe9e')](_0x38356d[_0xc2c312('0x1717')],{'id':_0x5b1b24[_0xc2c312('0xbcd')]});}),_0x20b16e=null;_0x38356d[_0x45dd60('0xeff')]&&(_0x20b16e=_0x51538b()[_0x45dd60('0xe9e')](_0x38356d[_0x45dd60('0x1717')],{'name':_0x38356d['agent'][_0x45dd60('0xeff')]}));if(_0x20b16e&&!_0x51538b()[_0x45dd60('0x2c2')](_0x5109c0,['id',_0x20b16e['id']])){var _0x177d07=_0x51538b()['find'](_0x38356d['agents'],{'id':_0x20b16e['id']});_0x177d07[_0x45dd60('0x12eb')]=![],_0x5109c0[_0x45dd60('0x1599')](_0x177d07);}_0x38356d['agents']=_0x5109c0;});}})[_0x462eb3('0x253d')](function(_0x4f1538){var _0x226597=_0x462eb3;_0x4016a2[_0x226597('0x187f')]({'title':_0x4f1538[_0x226597('0x2fa')]?_0x226597('0x16c2')+_0x4f1538[_0x226597('0x2fa')]+_0x226597('0x169e')+_0x4f1538['statusText']:_0x226597('0x1a3b'),'msg':_0x4f1538['data']?JSON[_0x226597('0xa48')](_0x4f1538['data']):_0x4f1538[_0x226597('0x684')]()});});function _0x19864b(){var _0x8b6127=_0x462eb3;_0x38356d[_0x8b6127('0x4c6')]=[];var _0x9da50d=[];_0x38356d['agent']['type']&&_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0x6c8')]['toLowerCase']()==='outbound'&&_0x38356d['agent'][_0x8b6127('0xe6d')]===_0x8b6127('0x8da')&&(_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0x1a46')]=_0x3634e2[_0x8b6127('0x888')]?(_0x38356d['agent']['prefix']||'')+_0x8b6127('0x117e')+_0x3634e2[_0x8b6127('0x888')]+'}':(_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0x1b8f')]||'')+_0x8b6127('0x1f87'),_0x3634e2[_0x8b6127('0x1e0f')]!==_0x8b6127('0x117')?_0x38356d['agent'][_0x8b6127('0x1b36')][_0x8b6127('0x1f38')](_0x8b6127('0x266a'))<0x0&&(_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0x1b36')]+=_0x8b6127('0x266a')):_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0x1b36')]=_0x38356d['agent'][_0x8b6127('0x1b36')]['replace']('U(xcally-mixmonitor-context)',''));var _0x5372d1=_0x51538b()[_0x8b6127('0xe9e')](_0x38356d['agents'],{'name':_0x38356d[_0x8b6127('0xeff')]['agent']});_0x5372d1&&(_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0x1037')]=_0x5372d1['id']);if(_0x38356d['agent'][_0x8b6127('0xe6d')]&&_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0xe6d')]===_0x8b6127('0x113b')){}else switch((_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0x9eb')]||_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0xe6d')])[_0x8b6127('0xcf6')]()){case _0x8b6127('0x282c'):_0x38356d[_0x8b6127('0xeff')]['appdata']=_0x38356d[_0x8b6127('0xeff')][_0x8b6127('0x25d6')]+'='+_0x38356d['agent'][_0x8b6127('0x12f4')];break;case _0x8b6127('0x113b'):break;default:_0x9da50d[0x0]=_0x38356d[_0x8b6127('0xeff')]['agent'],_0x9da50d[0x1]=_0x38356d[_0x8b6127('0xeff')]['timeout'],_0x38356d[_0x8b6127('0xeff')]['appdata']=_0x9da50d['join'](',');}_0x1f38d8(_0x38356d[_0x8b6127('0xeff')]);}function _0x1f38d8(_0x2d8d9e){var _0xcc0c63=_0x462eb3;_0xce7c56[_0xcc0c63('0x1120')](_0x2d8d9e);}}const _0x2c118f=_0x2204fd;_0x3c802f['$inject']=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0xaf0'),'faxAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x3c802f(_0x5eae93,_0x9c00a3,_0x45f8a5,_0x1ee5a1,_0x275060,_0x273ac4,_0x3c375e,_0xbd8e97){var _0x17f2f7=_0x1a8446,_0x1c7b63=this;_0x1c7b63[_0x17f2f7('0x7fc')]=_0x3c375e[_0x17f2f7('0xacc')](),_0x1c7b63['errors']=[],_0x1c7b63[_0x17f2f7('0x110a')]=_0x17f2f7('0x18d9')+(_0x1ee5a1[_0x17f2f7('0xe6d')]||_0x1ee5a1[_0x17f2f7('0x9eb')])[_0x17f2f7('0x1d08')](),_0x1c7b63[_0x17f2f7('0x21d0')]=angular[_0x17f2f7('0x20a')](_0x1ee5a1),_0x1c7b63['crudPermissions']=_0xbd8e97,_0x1c7b63[_0x17f2f7('0x9f0')]={};if(_0x1c7b63['close']['appdata'])switch(_0x1c7b63['close']['appType']?_0x1c7b63[_0x17f2f7('0x21d0')]['appType'][_0x17f2f7('0xcf6')]():_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x9eb')]['toLowerCase']()){case _0x17f2f7('0x113b'):break;case _0x17f2f7('0x67c'):{var _0x559615=_0x1c7b63[_0x17f2f7('0x21d0')]['appdata'][_0x17f2f7('0x1a39')](',');_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x24ec')]=_0x559615[0x0],_0x1c7b63[_0x17f2f7('0x21d0')]['language']=_0x559615[0x1],_0x1c7b63['close'][_0x17f2f7('0x273')]=_0x559615[_0x17f2f7('0x19aa')](0x2,_0x559615[_0x17f2f7('0x2587')])[_0x17f2f7('0x19c4')](',');}break;case _0x17f2f7('0x3f5'):{var _0x5e9709=_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x124b')][_0x17f2f7('0x1a39')](',');_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0xc07')]=_0x5e9709[0x0],_0x1c7b63[_0x17f2f7('0x21d0')]['secretaccesskey']=_0x5e9709[0x1],_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0xa9a')]=_0x5e9709[0x2],_0x1c7b63['close'][_0x17f2f7('0x18ee')]=_0x5e9709[0x3],_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x273')]=_0x5e9709[_0x17f2f7('0x19aa')](0x4,_0x5e9709[_0x17f2f7('0x2587')])[_0x17f2f7('0x19c4')](',');}break;case _0x17f2f7('0x1b05'):{var _0x43c8af=_0x1c7b63['close'][_0x17f2f7('0x124b')]['split'](',');_0x1c7b63[_0x17f2f7('0x21d0')]['times']=isNaN(_0x43c8af[0x0])?_0x43c8af[0x0]:parseInt(_0x43c8af[0x0],0xa),_0x1c7b63['close']['text']=_0x43c8af[_0x17f2f7('0x19aa')](0x1,_0x43c8af['length'])[_0x17f2f7('0x19c4')](',');}break;case _0x17f2f7('0x1402'):_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0xb37')]=_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x124b')];break;case _0x17f2f7('0x282c'):_0x1c7b63[_0x17f2f7('0x21d0')]['name']=_0x1c7b63[_0x17f2f7('0x21d0')]['appdata'][_0x17f2f7('0x1a39')]('=')[0x0],_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x12f4')]=_0x1c7b63[_0x17f2f7('0x21d0')]['appdata'][_0x17f2f7('0x1a39')]('=')[0x1];break;case'agi':_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x24b9')]=_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x124b')];break;default:{var _0x423c01=_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x124b')]['split'](',');_0x1c7b63['close'][_0x17f2f7('0x106e')]=_0x51538b()['isEmpty'](_0x423c01[0x0])?_0x423c01[0x0]:isNaN(_0x423c01[0x0])?_0x423c01[0x0]:parseInt(_0x423c01[0x0],0xa);}break;}else{}_0x1c7b63[_0x17f2f7('0x21d0')]['type']&&_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x6c8')][_0x17f2f7('0xcf6')]()===_0x17f2f7('0x19d1')&&_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0xe6d')][_0x17f2f7('0xcf6')]()==='outbounddial'&&(_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x1b8f')]=_0x1c7b63['close'][_0x17f2f7('0x1a46')]?_0x1c7b63[_0x17f2f7('0x21d0')][_0x17f2f7('0x1a46')][_0x17f2f7('0x1a39')]('$')[0x0]:undefined,_0x1c7b63[_0x17f2f7('0x21d0')]['callerId']=_0x1c7b63[_0x17f2f7('0x21d0')]['callerID']?_0x17f2f7('0x23d8')+_0x1c7b63['close']['callerID']:undefined);_0x1c7b63[_0x17f2f7('0x14f6')]=_0x2ec6ee,_0x1c7b63[_0x17f2f7('0x2023')]=_0x23258d;function _0x2ec6ee(){var _0x708d4=_0x17f2f7;_0x1c7b63[_0x708d4('0x4c6')]=[];var _0x1a1569=[];_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0x6c8')]&&_0x1c7b63['close'][_0x708d4('0x6c8')]['toLowerCase']()===_0x708d4('0x19d1')&&_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0xe6d')]==='outboundDial'&&(_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0x1a46')]=_0x275060['cutdigits']?(_0x1c7b63['close'][_0x708d4('0x1b8f')]||'')+_0x708d4('0x117e')+_0x275060[_0x708d4('0x888')]+'}':(_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0x1b8f')]||'')+_0x708d4('0x1f87'),_0x275060['recordingFormat']!==_0x708d4('0x117')?_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0x1b36')][_0x708d4('0x1f38')](_0x708d4('0x266a'))<0x0&&(_0x1c7b63[_0x708d4('0x21d0')]['options']+=_0x708d4('0x266a')):_0x1c7b63['close']['options']=_0x1c7b63['close'][_0x708d4('0x1b36')][_0x708d4('0x170d')](_0x708d4('0x266a'),''));if(_0x1c7b63[_0x708d4('0x21d0')]['appType']&&_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0xe6d')]===_0x708d4('0x113b')){}else switch((_0x1c7b63['close'][_0x708d4('0x9eb')]||_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0xe6d')])[_0x708d4('0xcf6')]()){case _0x708d4('0x282c'):_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0x124b')]=_0x1c7b63['close'][_0x708d4('0x25d6')]+'='+_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0x12f4')];break;case _0x708d4('0x113b'):break;default:_0x1a1569[0x0]=_0x1c7b63[_0x708d4('0x21d0')][_0x708d4('0x106e')],_0x1c7b63[_0x708d4('0x21d0')]['appdata']=_0x1a1569[_0x708d4('0x19c4')](',');}_0x23258d(_0x1c7b63[_0x708d4('0x21d0')]);}function _0x23258d(_0x336a1a){var _0x51d689=_0x17f2f7;_0x5eae93[_0x51d689('0x1120')](_0x336a1a);}}const _0xe73426=_0x3c802f;_0x331688[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0xaf0'),_0x1a8446('0x1f6a'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x331688(_0x3612e6,_0x2d83d7,_0x459199,_0x4f1dfa,_0x1455ef,_0x3a0e2e,_0x293304,_0x2ac435){var _0x2f9a3d=_0x1a8446,_0x517ccc=this;_0x517ccc[_0x2f9a3d('0x7fc')]=_0x293304['getCurrentUser'](),_0x517ccc[_0x2f9a3d('0x4c6')]=[],_0x517ccc[_0x2f9a3d('0x110a')]=_0x2f9a3d('0x18d9')+(_0x4f1dfa[_0x2f9a3d('0xe6d')]||_0x4f1dfa['app'])[_0x2f9a3d('0x1d08')](),_0x517ccc[_0x2f9a3d('0x3cb')]=angular[_0x2f9a3d('0x20a')](_0x4f1dfa),_0x517ccc[_0x2f9a3d('0xada')]=_0x2ac435,_0x517ccc[_0x2f9a3d('0x9f0')]={};if(_0x517ccc['gotoif']['appdata'])switch(_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0xe6d')]?_0x517ccc[_0x2f9a3d('0x3cb')]['appType'][_0x2f9a3d('0xcf6')]():_0x517ccc['gotoif'][_0x2f9a3d('0x9eb')][_0x2f9a3d('0xcf6')]()){case _0x2f9a3d('0x113b'):break;case _0x2f9a3d('0x67c'):{var _0x7d73a4=_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x124b')][_0x2f9a3d('0x1a39')](',');_0x517ccc[_0x2f9a3d('0x3cb')]['key']=_0x7d73a4[0x0],_0x517ccc['gotoif']['language']=_0x7d73a4[0x1],_0x517ccc['gotoif'][_0x2f9a3d('0x273')]=_0x7d73a4['slice'](0x2,_0x7d73a4[_0x2f9a3d('0x2587')])[_0x2f9a3d('0x19c4')](',');}break;case _0x2f9a3d('0x3f5'):{var _0x4b03de=_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x124b')][_0x2f9a3d('0x1a39')](',');_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0xc07')]=_0x4b03de[0x0],_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x15f9')]=_0x4b03de[0x1],_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0xa9a')]=_0x4b03de[0x2],_0x517ccc['gotoif']['botname']=_0x4b03de[0x3],_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x273')]=_0x4b03de[_0x2f9a3d('0x19aa')](0x4,_0x4b03de['length'])['join'](',');}break;case _0x2f9a3d('0x1b05'):{var _0x1045b6=_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x124b')][_0x2f9a3d('0x1a39')](',');_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x11b6')]=isNaN(_0x1045b6[0x0])?_0x1045b6[0x0]:parseInt(_0x1045b6[0x0],0xa),_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0xb37')]=_0x1045b6['slice'](0x1,_0x1045b6['length'])[_0x2f9a3d('0x19c4')](',');}break;case'message':_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0xb37')]=_0x517ccc[_0x2f9a3d('0x3cb')]['appdata'];break;case _0x2f9a3d('0x282c'):_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x25d6')]=_0x517ccc[_0x2f9a3d('0x3cb')]['appdata']['split']('=')[0x0],_0x517ccc[_0x2f9a3d('0x3cb')]['value']=_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x124b')][_0x2f9a3d('0x1a39')]('=')[0x1];break;case _0x2f9a3d('0x2067'):_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x24b9')]=_0x517ccc['gotoif']['appdata'];break;default:{var _0x22f62a=_0x517ccc[_0x2f9a3d('0x3cb')]['appdata'][_0x2f9a3d('0x1a39')](',');_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0xe77')]=_0x51538b()[_0x2f9a3d('0x116b')](_0x22f62a[0x0])?_0x22f62a[0x0]:isNaN(_0x22f62a[0x0])?_0x22f62a[0x0]:parseInt(_0x22f62a[0x0],0xa),_0x517ccc['gotoif'][_0x2f9a3d('0x13ba')]=_0x51538b()[_0x2f9a3d('0x116b')](_0x22f62a[0x1])?_0x22f62a[0x1]:isNaN(_0x22f62a[0x1])?_0x22f62a[0x1]:parseInt(_0x22f62a[0x1],0xa),_0x517ccc[_0x2f9a3d('0x3cb')]['falsepriority']=_0x51538b()[_0x2f9a3d('0x116b')](_0x22f62a[0x2])?_0x22f62a[0x2]:isNaN(_0x22f62a[0x2])?_0x22f62a[0x2]:parseInt(_0x22f62a[0x2],0xa);}break;}else{}_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x6c8')]&&_0x517ccc['gotoif'][_0x2f9a3d('0x6c8')]['toLowerCase']()===_0x2f9a3d('0x19d1')&&_0x517ccc[_0x2f9a3d('0x3cb')]['appType'][_0x2f9a3d('0xcf6')]()===_0x2f9a3d('0x1e7f')&&(_0x517ccc[_0x2f9a3d('0x3cb')]['prefix']=_0x517ccc[_0x2f9a3d('0x3cb')]['phone']?_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x1a46')][_0x2f9a3d('0x1a39')]('$')[0x0]:undefined,_0x517ccc['gotoif']['callerId']=_0x517ccc[_0x2f9a3d('0x3cb')][_0x2f9a3d('0x514')]?_0x2f9a3d('0x23d8')+_0x517ccc['gotoif']['callerID']:undefined);_0x517ccc[_0x2f9a3d('0x14f6')]=_0x5580f0,_0x517ccc[_0x2f9a3d('0x2023')]=_0x317a5b;function _0x5580f0(){var _0x31a56e=_0x2f9a3d;_0x517ccc[_0x31a56e('0x4c6')]=[];var _0x3b80b3=[];_0x517ccc[_0x31a56e('0x3cb')]['type']&&_0x517ccc['gotoif'][_0x31a56e('0x6c8')]['toLowerCase']()===_0x31a56e('0x19d1')&&_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0xe6d')]===_0x31a56e('0x8da')&&(_0x517ccc['gotoif']['phone']=_0x1455ef[_0x31a56e('0x888')]?(_0x517ccc['gotoif']['prefix']||'')+_0x31a56e('0x117e')+_0x1455ef['cutdigits']+'}':(_0x517ccc['gotoif']['prefix']||'')+_0x31a56e('0x1f87'),_0x1455ef[_0x31a56e('0x1e0f')]!==_0x31a56e('0x117')?_0x517ccc['gotoif'][_0x31a56e('0x1b36')][_0x31a56e('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x517ccc['gotoif'][_0x31a56e('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x517ccc['gotoif'][_0x31a56e('0x1b36')]=_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0x1b36')][_0x31a56e('0x170d')](_0x31a56e('0x266a'),''));if(_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0xe6d')]&&_0x517ccc[_0x31a56e('0x3cb')]['appType']==='custom'){}else switch((_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0x9eb')]||_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0xe6d')])[_0x31a56e('0xcf6')]()){case _0x31a56e('0x282c'):_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0x124b')]=_0x517ccc['gotoif'][_0x31a56e('0x25d6')]+'='+_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0x12f4')];break;case'custom':break;default:_0x3b80b3[0x0]=_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0xe77')],_0x3b80b3[0x1]=_0x517ccc['gotoif']['truepriority'],_0x3b80b3[0x2]=_0x517ccc[_0x31a56e('0x3cb')][_0x31a56e('0x222b')],_0x517ccc[_0x31a56e('0x3cb')]['appdata']=_0x3b80b3['join'](',');}_0x317a5b(_0x517ccc[_0x31a56e('0x3cb')]);}function _0x317a5b(_0x28efc4){_0x3612e6['hide'](_0x28efc4);}}const _0x4d0722=_0x331688;_0x243cc5[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0xaf0'),_0x1a8446('0x1f6a'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x243cc5(_0x13aef7,_0x53cb16,_0x4f79f4,_0x3bea22,_0x57de99,_0x4225c7,_0x5c629a,_0xe1c5a0){var _0x3ac0f1=_0x1a8446,_0x51b2c1=this;_0x51b2c1[_0x3ac0f1('0x7fc')]=_0x5c629a[_0x3ac0f1('0xacc')](),_0x51b2c1[_0x3ac0f1('0x4c6')]=[],_0x51b2c1[_0x3ac0f1('0x110a')]='FAX.EDIT_'+(_0x3bea22[_0x3ac0f1('0xe6d')]||_0x3bea22[_0x3ac0f1('0x9eb')])[_0x3ac0f1('0x1d08')](),_0x51b2c1['gotop']=angular[_0x3ac0f1('0x20a')](_0x3bea22),_0x51b2c1[_0x3ac0f1('0xada')]=_0xe1c5a0,_0x51b2c1[_0x3ac0f1('0x9f0')]={};if(_0x51b2c1['gotop'][_0x3ac0f1('0x124b')])switch(_0x51b2c1['gotop'][_0x3ac0f1('0xe6d')]?_0x51b2c1['gotop'][_0x3ac0f1('0xe6d')][_0x3ac0f1('0xcf6')]():_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x9eb')]['toLowerCase']()){case _0x3ac0f1('0x113b'):break;case _0x3ac0f1('0x67c'):{var _0x4b126d=_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x124b')][_0x3ac0f1('0x1a39')](',');_0x51b2c1['gotop'][_0x3ac0f1('0x24ec')]=_0x4b126d[0x0],_0x51b2c1['gotop']['language']=_0x4b126d[0x1],_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x273')]=_0x4b126d[_0x3ac0f1('0x19aa')](0x2,_0x4b126d[_0x3ac0f1('0x2587')])[_0x3ac0f1('0x19c4')](',');}break;case _0x3ac0f1('0x3f5'):{var _0x119c67=_0x51b2c1[_0x3ac0f1('0x1141')]['appdata']['split'](',');_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0xc07')]=_0x119c67[0x0],_0x51b2c1['gotop'][_0x3ac0f1('0x15f9')]=_0x119c67[0x1],_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0xa9a')]=_0x119c67[0x2],_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x18ee')]=_0x119c67[0x3],_0x51b2c1['gotop']['welcomemessage']=_0x119c67['slice'](0x4,_0x119c67[_0x3ac0f1('0x2587')])[_0x3ac0f1('0x19c4')](',');}break;case'autoreply':{var _0x473357=_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x124b')][_0x3ac0f1('0x1a39')](',');_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x11b6')]=isNaN(_0x473357[0x0])?_0x473357[0x0]:parseInt(_0x473357[0x0],0xa),_0x51b2c1[_0x3ac0f1('0x1141')]['text']=_0x473357[_0x3ac0f1('0x19aa')](0x1,_0x473357[_0x3ac0f1('0x2587')])[_0x3ac0f1('0x19c4')](',');}break;case _0x3ac0f1('0x1402'):_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0xb37')]=_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x124b')];break;case _0x3ac0f1('0x282c'):_0x51b2c1[_0x3ac0f1('0x1141')]['name']=_0x51b2c1['gotop'][_0x3ac0f1('0x124b')][_0x3ac0f1('0x1a39')]('=')[0x0],_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x12f4')]=_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x124b')][_0x3ac0f1('0x1a39')]('=')[0x1];break;case _0x3ac0f1('0x2067'):_0x51b2c1[_0x3ac0f1('0x1141')]['project']=_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x124b')];break;default:{var _0x41f44e=_0x51b2c1['gotop'][_0x3ac0f1('0x124b')][_0x3ac0f1('0x1a39')](',');_0x51b2c1['gotop'][_0x3ac0f1('0x13f2')]=_0x51538b()[_0x3ac0f1('0x116b')](_0x41f44e[0x0])?_0x41f44e[0x0]:isNaN(_0x41f44e[0x0])?_0x41f44e[0x0]:parseInt(_0x41f44e[0x0],0xa);}break;}else{}_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x6c8')]&&_0x51b2c1[_0x3ac0f1('0x1141')]['type'][_0x3ac0f1('0xcf6')]()==='outbound'&&_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0xe6d')][_0x3ac0f1('0xcf6')]()==='outbounddial'&&(_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x1b8f')]=_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x1a46')]?_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x1a46')][_0x3ac0f1('0x1a39')]('$')[0x0]:undefined,_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0xeed')]=_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x514')]?_0x3ac0f1('0x23d8')+_0x51b2c1[_0x3ac0f1('0x1141')][_0x3ac0f1('0x514')]:undefined);_0x51b2c1[_0x3ac0f1('0x14f6')]=_0x4a89a1,_0x51b2c1[_0x3ac0f1('0x2023')]=_0x12cf12;function _0x4a89a1(){var _0x2e3271=_0x3ac0f1;_0x51b2c1[_0x2e3271('0x4c6')]=[];var _0x188f01=[];_0x51b2c1[_0x2e3271('0x1141')][_0x2e3271('0x6c8')]&&_0x51b2c1['gotop'][_0x2e3271('0x6c8')][_0x2e3271('0xcf6')]()===_0x2e3271('0x19d1')&&_0x51b2c1['gotop'][_0x2e3271('0xe6d')]===_0x2e3271('0x8da')&&(_0x51b2c1[_0x2e3271('0x1141')]['phone']=_0x57de99[_0x2e3271('0x888')]?(_0x51b2c1[_0x2e3271('0x1141')][_0x2e3271('0x1b8f')]||'')+_0x2e3271('0x117e')+_0x57de99[_0x2e3271('0x888')]+'}':(_0x51b2c1[_0x2e3271('0x1141')][_0x2e3271('0x1b8f')]||'')+'${EXTEN}',_0x57de99[_0x2e3271('0x1e0f')]!==_0x2e3271('0x117')?_0x51b2c1[_0x2e3271('0x1141')][_0x2e3271('0x1b36')]['indexOf'](_0x2e3271('0x266a'))<0x0&&(_0x51b2c1[_0x2e3271('0x1141')]['options']+=_0x2e3271('0x266a')):_0x51b2c1[_0x2e3271('0x1141')][_0x2e3271('0x1b36')]=_0x51b2c1[_0x2e3271('0x1141')]['options'][_0x2e3271('0x170d')](_0x2e3271('0x266a'),''));if(_0x51b2c1['gotop'][_0x2e3271('0xe6d')]&&_0x51b2c1[_0x2e3271('0x1141')]['appType']==='custom'){}else switch((_0x51b2c1[_0x2e3271('0x1141')][_0x2e3271('0x9eb')]||_0x51b2c1['gotop'][_0x2e3271('0xe6d')])[_0x2e3271('0xcf6')]()){case _0x2e3271('0x282c'):_0x51b2c1[_0x2e3271('0x1141')]['appdata']=_0x51b2c1['gotop'][_0x2e3271('0x25d6')]+'='+_0x51b2c1['gotop'][_0x2e3271('0x12f4')];break;case'custom':break;default:_0x188f01[0x0]=_0x51b2c1[_0x2e3271('0x1141')][_0x2e3271('0x13f2')],_0x51b2c1['gotop'][_0x2e3271('0x124b')]=_0x188f01[_0x2e3271('0x19c4')](',');}_0x12cf12(_0x51b2c1['gotop']);}function _0x12cf12(_0x14fe3f){var _0x110250=_0x3ac0f1;_0x13aef7[_0x110250('0x1120')](_0x14fe3f);}}const _0xddb61c=_0x243cc5;_0x3264cb['$inject']=['$state',_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x197b'),_0x1a8446('0x1c21'),_0x1a8446('0x2568'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x3264cb(_0x51e53f,_0xfc0114,_0x5c933a,_0x34b6cc,_0x1a4608,_0x32147d,_0x576927,_0x3974f4,_0x5cce54,_0x4805c1){var _0x32e2f0=_0x1a8446,_0x25af33=this;_0x25af33[_0x32e2f0('0x7fc')]=_0x5cce54['getCurrentUser'](),_0x25af33[_0x32e2f0('0x4c6')]=[],_0x25af33[_0x32e2f0('0x110a')]=_0x32e2f0('0x14b0'),_0x25af33[_0x32e2f0('0x1c21')]=angular['copy'](_0x1a4608),_0x25af33[_0x32e2f0('0x2568')]=_0x32147d,_0x25af33[_0x32e2f0('0x740')]=![],_0x25af33['types']=['always',_0x32e2f0('0x113b'),_0x32e2f0('0x2334')],_0x25af33[_0x32e2f0('0xada')]=_0x4805c1,_0x25af33[_0x32e2f0('0xbe6')]=_0x34b6cc[_0x32e2f0('0x1529')](),_0x25af33[_0x32e2f0('0x21a9')]=_0x34b6cc[_0x32e2f0('0x23fa')](),_0x25af33[_0x32e2f0('0x672')]=_0x34b6cc[_0x32e2f0('0x2225')](),_0x25af33[_0x32e2f0('0x1469')]=_0x34b6cc[_0x32e2f0('0x74a')]();if(!_0x25af33[_0x32e2f0('0x1c21')])_0x25af33['interval']={'interval':_0x32e2f0('0x1ac6')},_0x25af33['type']='always',_0x25af33[_0x32e2f0('0x110a')]=_0x32e2f0('0x11d5'),_0x25af33[_0x32e2f0('0x740')]=!![];else{if(_0x25af33[_0x32e2f0('0x1c21')][_0x32e2f0('0x1c21')]!==_0x32e2f0('0x1ac6')){_0x25af33[_0x32e2f0('0x6c8')]=_0x32e2f0('0x113b');var _0x3e6793=_0x25af33[_0x32e2f0('0x1c21')][_0x32e2f0('0x1c21')][_0x32e2f0('0x1a39')](','),_0xbec347=_0x3e6793[0x0],_0x2b557d=_0x3e6793[0x1],_0x5a7ffc=_0x3e6793[0x2],_0x1ad6cb=_0x3e6793[0x3];if(_0xbec347!=='*'){var _0x1ad1a1=_0xbec347['split']('-')[0x0],_0x5e10b2=_0xbec347[_0x32e2f0('0x1a39')]('-')[0x1],_0x413b8c;_0x413b8c=new Date(),_0x413b8c['setHours'](Number(_0x1ad1a1['split'](':')[0x0])),_0x413b8c[_0x32e2f0('0xb43')](Number(_0x1ad1a1['split'](':')[0x1])),_0x25af33[_0x32e2f0('0x1ee7')]=_0x413b8c,_0x413b8c=new Date(),_0x413b8c[_0x32e2f0('0x807')](Number(_0x5e10b2[_0x32e2f0('0x1a39')](':')[0x0])),_0x413b8c['setMinutes'](Number(_0x5e10b2[_0x32e2f0('0x1a39')](':')[0x1])),_0x25af33[_0x32e2f0('0x815')]=_0x413b8c;}_0x2b557d!=='*'&&(_0x25af33[_0x32e2f0('0x1fa3')]=_0x2b557d[_0x32e2f0('0x1a39')]('-')[0x0],_0x25af33[_0x32e2f0('0xc93')]=_0x2b557d[_0x32e2f0('0x1a39')]('-')[0x1]),_0x5a7ffc!=='*'&&(_0x25af33[_0x32e2f0('0x19d0')]=_0x5a7ffc['split']('-')[0x0],_0x25af33[_0x32e2f0('0x2c3')]=_0x5a7ffc[_0x32e2f0('0x1a39')]('-')[0x1]),_0x1ad6cb!=='*'&&(_0x25af33['monthFrom']=_0x1ad6cb['split']('-')[0x0],_0x25af33['monthTo']=_0x1ad6cb[_0x32e2f0('0x1a39')]('-')[0x1]);}else _0x25af33[_0x32e2f0('0x6c8')]=_0x32e2f0('0x1b43');}_0x51e53f[_0x32e2f0('0x25cf')]['id']&&!_0x25af33[_0x32e2f0('0x1c21')]['application']&&(_0x25af33[_0x32e2f0('0x1c21')][_0x32e2f0('0x1f8c')]=_0x51e53f['params']['id']);_0x25af33[_0x32e2f0('0x1c21')][_0x32e2f0('0x1f8c')]&&_0x25af33['interval'][_0x32e2f0('0xe45')]&&(_0x25af33[_0x32e2f0('0x6c8')]=_0x32e2f0('0x2334'));_0x25af33['addNewInterval']=_0x306733,_0x25af33['saveInterval']=_0x3ae412,_0x25af33[_0x32e2f0('0x2023')]=_0x1f7384;_0x25af33[_0x32e2f0('0x1c21')][_0x32e2f0('0xe45')]&&(_0x5cce54[_0x32e2f0('0x26e8')](_0x32e2f0('0x178b'))?_0x3974f4['interval'][_0x32e2f0('0x2122')]({'fields':_0x32e2f0('0x1a33'),'IntervalId':_0x32e2f0('0x1ed9'),'nolimit':!![]})[_0x32e2f0('0x1dc2')]['then'](function(_0x2430a6){var _0x1540c1=_0x32e2f0;_0x25af33[_0x1540c1('0x2568')]=_0x2430a6[_0x1540c1('0x580')]||[];})[_0x32e2f0('0x253d')](function(_0x36916b){var _0x1897d0=_0x32e2f0;_0x576927['error']({'title':_0x36916b[_0x1897d0('0x2fa')]?_0x1897d0('0x16c2')+_0x36916b[_0x1897d0('0x2fa')]+_0x1897d0('0x169e')+_0x36916b['statusText']:_0x1897d0('0x3b0'),'msg':_0x36916b['data']?JSON['stringify'](_0x36916b[_0x1897d0('0x10fd')]):_0x36916b[_0x1897d0('0x684')]()});}):_0x3974f4[_0x32e2f0('0x1c21')][_0x32e2f0('0x2122')]({'fields':_0x32e2f0('0x1a33'),'IntervalId':_0x32e2f0('0x1ed9'),'nolimit':!![]})['$promise'][_0x32e2f0('0xaa5')](function(_0x89fd22){var _0x5cd8e6=_0x32e2f0;_0x25af33[_0x5cd8e6('0x2568')]=_0x89fd22['rows']||[];})[_0x32e2f0('0xaa5')](function(){var _0x21402e=_0x32e2f0;return _0x3974f4[_0x21402e('0x1a50')][_0x21402e('0x2122')]({'userProfileId':_0x25af33[_0x21402e('0x7fc')]['userProfileId'],'sectionId':0x3ec})[_0x21402e('0x1dc2')];})[_0x32e2f0('0xaa5')](function(_0x1f7bd3){var _0x2289b0=_0x32e2f0,_0x243777=_0x1f7bd3&&_0x1f7bd3[_0x2289b0('0x580')]?_0x1f7bd3[_0x2289b0('0x580')][0x0]:null;if(!_0x243777)_0x25af33[_0x2289b0('0x2568')]=[];else{if(!_0x243777['autoAssociation'])return _0x3974f4[_0x2289b0('0x249a')]['get']({'sectionId':_0x243777['id']})[_0x2289b0('0x1dc2')][_0x2289b0('0xaa5')](function(_0x308973){var _0x542064=_0x2289b0,_0x5e54aa=_0x308973&&_0x308973['rows']?_0x308973[_0x542064('0x580')]:[],_0x1f56bb=[],_0x125822=null;_0x25af33[_0x542064('0x1c21')]&&(_0x125822=_0x51538b()[_0x542064('0xe9e')](_0x25af33[_0x542064('0x2568')],{'name':_0x25af33['interval'][_0x542064('0x1f8c')]})),_0x125822&&!_0x51538b()[_0x542064('0x2c2')](_0x5e54aa,['resourceId',_0x125822['id']])&&_0x25af33[_0x542064('0x2568')][_0x542064('0x15b5')](function(_0x3e0e30){var _0x544f87=_0x542064;_0x3e0e30['id']===_0x125822['id']&&(_0x3e0e30['canSelect']=![],_0x1f56bb[_0x544f87('0x1599')](_0x3e0e30));}),_0x25af33[_0x542064('0x2568')]=_0x1f56bb;});}})[_0x32e2f0('0x253d')](function(_0x3af3bb){var _0x50e1f9=_0x32e2f0;_0x576927[_0x50e1f9('0x187f')]({'title':_0x3af3bb[_0x50e1f9('0x2fa')]?'API:'+_0x3af3bb[_0x50e1f9('0x2fa')]+_0x50e1f9('0x169e')+_0x3af3bb['statusText']:_0x50e1f9('0x3b0'),'msg':_0x3af3bb[_0x50e1f9('0x10fd')]?JSON[_0x50e1f9('0xa48')](_0x3af3bb[_0x50e1f9('0x10fd')]):_0x3af3bb[_0x50e1f9('0x684')]()});}));function _0x19a64a(){var _0x210eba=_0x32e2f0;switch(_0x25af33[_0x210eba('0x6c8')]){case _0x210eba('0x1b43'):case _0x210eba('0x2334'):return _0x210eba('0x1ac6');case _0x210eba('0x113b'):{var _0x16a794=[];if(_0x25af33['timeRangeFrom']!=='*'&&_0x25af33[_0x210eba('0x1ee7')]&&_0x25af33['timeRangeTo']){var _0x1aa429=(_0x25af33[_0x210eba('0x1ee7')][_0x210eba('0x6a2')]()<0xa?'0':'')+_0x25af33[_0x210eba('0x1ee7')][_0x210eba('0x6a2')]()+':'+((_0x25af33[_0x210eba('0x1ee7')]['getMinutes']()<0xa?'0':'')+_0x25af33[_0x210eba('0x1ee7')][_0x210eba('0x13a6')]()),_0xd1e4e9=(_0x25af33[_0x210eba('0x815')][_0x210eba('0x6a2')]()<0xa?'0':'')+_0x25af33[_0x210eba('0x815')][_0x210eba('0x6a2')]()+':'+((_0x25af33[_0x210eba('0x815')][_0x210eba('0x13a6')]()<0xa?'0':'')+_0x25af33[_0x210eba('0x815')]['getMinutes']());_0x16a794[_0x210eba('0x1599')](_0x1aa429+'-'+_0xd1e4e9);}else _0x16a794[_0x210eba('0x1599')]('*');return _0x25af33['dayOfWeekFrom']?_0x25af33[_0x210eba('0xc93')]?_0x16a794[_0x210eba('0x1599')](_0x25af33[_0x210eba('0x1fa3')]+'-'+_0x25af33[_0x210eba('0xc93')]):_0x16a794[_0x210eba('0x1599')](_0x25af33['dayOfWeekFrom']):_0x16a794[_0x210eba('0x1599')]('*'),_0x25af33['monthDayFrom']?_0x25af33[_0x210eba('0x2c3')]?_0x16a794[_0x210eba('0x1599')](_0x25af33[_0x210eba('0x19d0')]+'-'+_0x25af33[_0x210eba('0x2c3')]):_0x16a794[_0x210eba('0x1599')](_0x25af33['monthDayFrom']):_0x16a794[_0x210eba('0x1599')]('*'),_0x25af33['monthFrom']?_0x25af33[_0x210eba('0x125f')]?_0x16a794[_0x210eba('0x1599')](_0x25af33['monthFrom']+'-'+_0x25af33[_0x210eba('0x125f')]):_0x16a794[_0x210eba('0x1599')](_0x25af33[_0x210eba('0xcf9')]):_0x16a794[_0x210eba('0x1599')]('*'),_0x16a794[_0x210eba('0x19c4')]();}}}function _0x306733(){var _0x42db4f=_0x32e2f0;_0x25af33[_0x42db4f('0x4c6')]=[],_0x25af33['interval'][_0x42db4f('0x1c21')]=_0x19a64a(),_0x3974f4[_0x42db4f('0x1c21')][_0x42db4f('0x242b')](_0x25af33[_0x42db4f('0x1c21')])['$promise'][_0x42db4f('0xaa5')](function(_0xbf0449){var _0x664c96=_0x42db4f;_0x25af33['intervals']['push'](_0xbf0449),_0x576927[_0x664c96('0xe10')]({'title':'Interval\x20properly\x20created','msg':_0x25af33['interval'][_0x664c96('0x25d6')]?_0x25af33['interval'][_0x664c96('0x25d6')]+_0x664c96('0xdca'):''}),_0x1f7384();})[_0x42db4f('0x253d')](function(_0x230fde){var _0x5793bf=_0x42db4f;console[_0x5793bf('0x187f')](_0x230fde),_0x25af33[_0x5793bf('0x4c6')]=_0x230fde['data'][_0x5793bf('0x4c6')]||[{'message':_0x230fde['toString'](),'type':_0x5793bf('0xbd7')}];});}function _0x3ae412(){var _0x2479a6=_0x32e2f0;_0x25af33[_0x2479a6('0x4c6')]=[],_0x25af33[_0x2479a6('0x1c21')][_0x2479a6('0x1c21')]=_0x19a64a(),_0x25af33[_0x2479a6('0x1c21')][_0x2479a6('0xe45')]?(_0x25af33[_0x2479a6('0x6c8')]!==_0x2479a6('0x2334')&&(_0x25af33[_0x2479a6('0x1c21')][_0x2479a6('0x1f8c')]=null),_0x1f7384(_0x25af33[_0x2479a6('0x1c21')])):_0x3974f4[_0x2479a6('0x1c21')][_0x2479a6('0x264e')]({'id':_0x25af33['interval']['id']},_0x25af33[_0x2479a6('0x1c21')])['$promise'][_0x2479a6('0xaa5')](function(_0x1adef1){var _0x6d0e3f=_0x2479a6,_0xc43a7b=_0x51538b()['find'](_0x25af33[_0x6d0e3f('0x2568')],{'id':_0x1adef1['id']});_0xc43a7b&&_0x51538b()[_0x6d0e3f('0x283c')](_0xc43a7b,_0x1adef1),_0x576927[_0x6d0e3f('0xe10')]({'title':_0x6d0e3f('0x68b'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x1f7384();})[_0x2479a6('0x253d')](function(_0x36375c){var _0x32c818=_0x2479a6;console[_0x32c818('0x187f')](_0x36375c),_0x25af33['errors']=_0x36375c['data'][_0x32c818('0x4c6')]||[{'message':_0x36375c[_0x32c818('0x684')](),'type':_0x32c818('0x83d')}];});}function _0x1f7384(_0x2ab5e4){_0xfc0114['hide'](_0x2ab5e4);}}const _0x2927ea=_0x3264cb;_0x197cb6[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0xaf0'),_0x1a8446('0x1f6a'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x197cb6(_0xd870fb,_0x3b3f83,_0x2e1992,_0x49bf5e,_0x1be9ba,_0x5d3f18,_0x28ddf0,_0x5c46c0){var _0x215255=_0x1a8446,_0x1e75ee=this;_0x1e75ee['currentUser']=_0x28ddf0['getCurrentUser'](),_0x1e75ee[_0x215255('0x4c6')]=[],_0x1e75ee[_0x215255('0x110a')]=_0x215255('0x18d9')+(_0x49bf5e[_0x215255('0xe6d')]||_0x49bf5e[_0x215255('0x9eb')])[_0x215255('0x1d08')](),_0x1e75ee[_0x215255('0x27ca')]=angular[_0x215255('0x20a')](_0x49bf5e),_0x1e75ee['crudPermissions']=_0x5c46c0,_0x1e75ee['hasModulePermissions']={};if(_0x1e75ee['noop'][_0x215255('0x124b')])switch(_0x1e75ee[_0x215255('0x27ca')][_0x215255('0xe6d')]?_0x1e75ee[_0x215255('0x27ca')]['appType'][_0x215255('0xcf6')]():_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x9eb')][_0x215255('0xcf6')]()){case'custom':break;case _0x215255('0x67c'):{var _0x218f48=_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x124b')][_0x215255('0x1a39')](',');_0x1e75ee['noop'][_0x215255('0x24ec')]=_0x218f48[0x0],_0x1e75ee['noop'][_0x215255('0x1938')]=_0x218f48[0x1],_0x1e75ee['noop']['welcomemessage']=_0x218f48[_0x215255('0x19aa')](0x2,_0x218f48[_0x215255('0x2587')])[_0x215255('0x19c4')](',');}break;case _0x215255('0x3f5'):{var _0xfc1513=_0x1e75ee[_0x215255('0x27ca')]['appdata'][_0x215255('0x1a39')](',');_0x1e75ee[_0x215255('0x27ca')]['accesskeyid']=_0xfc1513[0x0],_0x1e75ee['noop'][_0x215255('0x15f9')]=_0xfc1513[0x1],_0x1e75ee[_0x215255('0x27ca')][_0x215255('0xa9a')]=_0xfc1513[0x2],_0x1e75ee['noop'][_0x215255('0x18ee')]=_0xfc1513[0x3],_0x1e75ee['noop'][_0x215255('0x273')]=_0xfc1513['slice'](0x4,_0xfc1513[_0x215255('0x2587')])[_0x215255('0x19c4')](',');}break;case _0x215255('0x1b05'):{var _0x3b8e6e=_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x124b')][_0x215255('0x1a39')](',');_0x1e75ee['noop'][_0x215255('0x11b6')]=isNaN(_0x3b8e6e[0x0])?_0x3b8e6e[0x0]:parseInt(_0x3b8e6e[0x0],0xa),_0x1e75ee['noop'][_0x215255('0xb37')]=_0x3b8e6e['slice'](0x1,_0x3b8e6e[_0x215255('0x2587')])[_0x215255('0x19c4')](',');}break;case'message':_0x1e75ee['noop'][_0x215255('0xb37')]=_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x124b')];break;case'set':_0x1e75ee['noop']['name']=_0x1e75ee['noop'][_0x215255('0x124b')][_0x215255('0x1a39')]('=')[0x0],_0x1e75ee[_0x215255('0x27ca')]['value']=_0x1e75ee[_0x215255('0x27ca')]['appdata'][_0x215255('0x1a39')]('=')[0x1];break;case _0x215255('0x2067'):_0x1e75ee[_0x215255('0x27ca')]['project']=_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x124b')];break;default:{var _0x2d3b6d=_0x1e75ee['noop'][_0x215255('0x124b')]['split'](',');_0x1e75ee[_0x215255('0x27ca')]['value']=_0x51538b()[_0x215255('0x116b')](_0x2d3b6d[0x0])?_0x2d3b6d[0x0]:isNaN(_0x2d3b6d[0x0])?_0x2d3b6d[0x0]:parseInt(_0x2d3b6d[0x0],0xa);}break;}else{}_0x1e75ee['noop']['type']&&_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x6c8')]['toLowerCase']()==='outbound'&&_0x1e75ee[_0x215255('0x27ca')][_0x215255('0xe6d')][_0x215255('0xcf6')]()===_0x215255('0x1e7f')&&(_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x1b8f')]=_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x1a46')]?_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x1a46')][_0x215255('0x1a39')]('$')[0x0]:undefined,_0x1e75ee[_0x215255('0x27ca')][_0x215255('0xeed')]=_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x514')]?_0x215255('0x23d8')+_0x1e75ee[_0x215255('0x27ca')][_0x215255('0x514')]:undefined);_0x1e75ee[_0x215255('0x14f6')]=_0x9c0489,_0x1e75ee[_0x215255('0x2023')]=_0x13161e;function _0x9c0489(){var _0x2fb050=_0x215255;_0x1e75ee[_0x2fb050('0x4c6')]=[];var _0x49e146=[];_0x1e75ee['noop'][_0x2fb050('0x6c8')]&&_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0x6c8')][_0x2fb050('0xcf6')]()===_0x2fb050('0x19d1')&&_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0xe6d')]===_0x2fb050('0x8da')&&(_0x1e75ee['noop'][_0x2fb050('0x1a46')]=_0x1be9ba[_0x2fb050('0x888')]?(_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0x1b8f')]||'')+_0x2fb050('0x117e')+_0x1be9ba['cutdigits']+'}':(_0x1e75ee['noop'][_0x2fb050('0x1b8f')]||'')+_0x2fb050('0x1f87'),_0x1be9ba[_0x2fb050('0x1e0f')]!==_0x2fb050('0x117')?_0x1e75ee[_0x2fb050('0x27ca')]['options'][_0x2fb050('0x1f38')](_0x2fb050('0x266a'))<0x0&&(_0x1e75ee[_0x2fb050('0x27ca')]['options']+=_0x2fb050('0x266a')):_0x1e75ee['noop']['options']=_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0x1b36')][_0x2fb050('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0xe6d')]&&_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0xe6d')]===_0x2fb050('0x113b')){}else switch((_0x1e75ee['noop']['app']||_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0xe6d')])[_0x2fb050('0xcf6')]()){case _0x2fb050('0x282c'):_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0x124b')]=_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0x25d6')]+'='+_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0x12f4')];break;case _0x2fb050('0x113b'):break;default:_0x49e146[0x0]=_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0x12f4')],_0x1e75ee[_0x2fb050('0x27ca')][_0x2fb050('0x124b')]=_0x49e146['join'](',');}_0x13161e(_0x1e75ee['noop']);}function _0x13161e(_0x41a9b9){_0xd870fb['hide'](_0x41a9b9);}}const _0x16ba5d=_0x197cb6;_0x55f8a7[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty','faxAccountApp',_0x1a8446('0x1f6a'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x55f8a7(_0x4b98fa,_0x5e7ea3,_0x4c8be5,_0x4af632,_0xff8776,_0x1027a3,_0x57839a,_0x396a53){var _0x4052c8=_0x1a8446,_0x5cf8b4=this;_0x5cf8b4[_0x4052c8('0x7fc')]=_0x57839a[_0x4052c8('0xacc')](),_0x5cf8b4[_0x4052c8('0x4c6')]=[],_0x5cf8b4['title']=_0x4052c8('0x18d9')+(_0x4af632[_0x4052c8('0xe6d')]||_0x4af632['app'])[_0x4052c8('0x1d08')](),_0x5cf8b4[_0x4052c8('0xe26')]=angular[_0x4052c8('0x20a')](_0x4af632),_0x5cf8b4[_0x4052c8('0xada')]=_0x396a53,_0x5cf8b4[_0x4052c8('0x9f0')]={};if(_0x5cf8b4['queue']['appdata'])switch(_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0xe6d')]?_0x5cf8b4['queue'][_0x4052c8('0xe6d')]['toLowerCase']():_0x5cf8b4['queue']['app'][_0x4052c8('0xcf6')]()){case'custom':break;case'dialogflow':{var _0x37c278=_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x124b')][_0x4052c8('0x1a39')](',');_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x24ec')]=_0x37c278[0x0],_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x1938')]=_0x37c278[0x1],_0x5cf8b4['queue'][_0x4052c8('0x273')]=_0x37c278['slice'](0x2,_0x37c278[_0x4052c8('0x2587')])[_0x4052c8('0x19c4')](',');}break;case _0x4052c8('0x3f5'):{var _0x2168b8=_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x124b')]['split'](',');_0x5cf8b4['queue'][_0x4052c8('0xc07')]=_0x2168b8[0x0],_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x15f9')]=_0x2168b8[0x1],_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0xa9a')]=_0x2168b8[0x2],_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x18ee')]=_0x2168b8[0x3],_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x273')]=_0x2168b8[_0x4052c8('0x19aa')](0x4,_0x2168b8[_0x4052c8('0x2587')])[_0x4052c8('0x19c4')](',');}break;case'autoreply':{var _0x4e6fee=_0x5cf8b4['queue']['appdata'][_0x4052c8('0x1a39')](',');_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x11b6')]=isNaN(_0x4e6fee[0x0])?_0x4e6fee[0x0]:parseInt(_0x4e6fee[0x0],0xa),_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0xb37')]=_0x4e6fee['slice'](0x1,_0x4e6fee[_0x4052c8('0x2587')])['join'](',');}break;case _0x4052c8('0x1402'):_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0xb37')]=_0x5cf8b4[_0x4052c8('0xe26')]['appdata'];break;case _0x4052c8('0x282c'):_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x25d6')]=_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x124b')][_0x4052c8('0x1a39')]('=')[0x0],_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x12f4')]=_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x124b')]['split']('=')[0x1];break;case _0x4052c8('0x2067'):_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x24b9')]=_0x5cf8b4[_0x4052c8('0xe26')]['appdata'];break;default:{var _0x466af7=_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x124b')]['split'](',');_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0xe26')]=_0x51538b()[_0x4052c8('0x116b')](_0x466af7[0x0])?_0x466af7[0x0]:isNaN(_0x466af7[0x0])?_0x466af7[0x0]:parseInt(_0x466af7[0x0],0xa),_0x5cf8b4['queue']['timeout']=_0x51538b()[_0x4052c8('0x116b')](_0x466af7[0x1])?_0x466af7[0x1]:isNaN(_0x466af7[0x1])?_0x466af7[0x1]:parseInt(_0x466af7[0x1],0xa);}break;}else _0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0xe26')]=0x12c,_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x23c0')]=0x12c;_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x6c8')]&&_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x6c8')][_0x4052c8('0xcf6')]()==='outbound'&&_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0xe6d')][_0x4052c8('0xcf6')]()===_0x4052c8('0x1e7f')&&(_0x5cf8b4['queue']['prefix']=_0x5cf8b4[_0x4052c8('0xe26')]['phone']?_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x1a46')][_0x4052c8('0x1a39')]('$')[0x0]:undefined,_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0xeed')]=_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x514')]?_0x4052c8('0x23d8')+_0x5cf8b4[_0x4052c8('0xe26')][_0x4052c8('0x514')]:undefined);_0x5cf8b4[_0x4052c8('0x14f6')]=_0x418461,_0x5cf8b4[_0x4052c8('0x2023')]=_0xf3fd,_0x57839a[_0x4052c8('0x26e8')](_0x4052c8('0x178b'))?_0x1027a3[_0x4052c8('0xaf9')][_0x4052c8('0x2122')]({'fields':_0x4052c8('0x21e2'),'sort':_0x4052c8('0x25d6'),'nolimit':_0x4052c8('0x1c5c')})[_0x4052c8('0x1dc2')][_0x4052c8('0xaa5')](function(_0x1b4e6f){var _0x3034a5=_0x4052c8;_0x5cf8b4[_0x3034a5('0x4d7')]=_0x1b4e6f['rows']||[];})[_0x4052c8('0x253d')](function(_0x57e617){var _0x1ccc6d=_0x4052c8;_0x4c8be5[_0x1ccc6d('0x187f')]({'title':_0x57e617[_0x1ccc6d('0x2fa')]?'API:'+_0x57e617[_0x1ccc6d('0x2fa')]+_0x1ccc6d('0x169e')+_0x57e617[_0x1ccc6d('0x24df')]:_0x1ccc6d('0x773'),'msg':_0x57e617['data']?JSON[_0x1ccc6d('0xa48')](_0x57e617['data']):_0x57e617[_0x1ccc6d('0x684')]()});}):_0x1027a3['faxQueue'][_0x4052c8('0x2122')]({'fields':_0x4052c8('0x21e2'),'sort':_0x4052c8('0x25d6'),'nolimit':_0x4052c8('0x1c5c')})[_0x4052c8('0x1dc2')]['then'](function(_0x25b7fe){var _0xcd99bb=_0x4052c8;_0x5cf8b4[_0xcd99bb('0x4d7')]=_0x25b7fe[_0xcd99bb('0x580')]||[];})['then'](function(){var _0x5671a0=_0x4052c8;return _0x1027a3['userProfileSection'][_0x5671a0('0x2122')]({'userProfileId':_0x5cf8b4[_0x5671a0('0x7fc')][_0x5671a0('0x2168')],'sectionId':0x385})[_0x5671a0('0x1dc2')];})[_0x4052c8('0xaa5')](function(_0x2cb2d3){var _0x1009a0=_0x4052c8,_0x5c71b1=_0x2cb2d3&&_0x2cb2d3[_0x1009a0('0x580')]?_0x2cb2d3['rows'][0x0]:null;if(!_0x5c71b1){var _0x1a7e9a=[],_0x52b685=null;_0x5cf8b4[_0x1009a0('0xe26')]&&(_0x52b685=_0x51538b()[_0x1009a0('0xe9e')](_0x5cf8b4['queues'],{'name':_0x5cf8b4['queue'][_0x1009a0('0xe26')]}));for(var _0x5e3ee3=0x0;_0x5e3ee3<_0x5cf8b4['queues'][_0x1009a0('0x2587')];_0x5e3ee3++){_0x52b685&&_0x5cf8b4['queues'][_0x5e3ee3]['id']===_0x52b685['id']&&(_0x5cf8b4[_0x1009a0('0x4d7')][_0x5e3ee3]['canSelect']=![],_0x1a7e9a[_0x1009a0('0x1599')](_0x5cf8b4[_0x1009a0('0x4d7')][_0x5e3ee3]));}_0x5cf8b4[_0x1009a0('0x4d7')]=_0x1a7e9a;}else{if(!_0x5c71b1[_0x1009a0('0x26cc')])return _0x1027a3[_0x1009a0('0x249a')][_0x1009a0('0x2122')]({'sectionId':_0x5c71b1['id']})[_0x1009a0('0x1dc2')][_0x1009a0('0xaa5')](function(_0xf71843){var _0xd92996=_0x1009a0,_0x23076a=_0x51538b()[_0xd92996('0x1246')](_0xf71843[_0xd92996('0x580')],function(_0x2a164a){var _0x208d44=_0xd92996;return _0x51538b()[_0x208d44('0xe9e')](_0x5cf8b4['queues'],{'id':_0x2a164a[_0x208d44('0xbcd')]});}),_0x27915d=null;_0x5cf8b4[_0xd92996('0xe26')]&&(_0x27915d=_0x51538b()[_0xd92996('0xe9e')](_0x5cf8b4['queues'],{'name':_0x5cf8b4['queue']['queue']}));if(_0x27915d&&!_0x51538b()[_0xd92996('0x2c2')](_0x23076a,['id',_0x27915d['id']])){var _0x310a16=_0x51538b()[_0xd92996('0xe9e')](_0x5cf8b4[_0xd92996('0x4d7')],{'id':_0x27915d['id']});_0x310a16[_0xd92996('0x12eb')]=![],_0x23076a[_0xd92996('0x1599')](_0x310a16);}_0x5cf8b4[_0xd92996('0x4d7')]=_0x23076a;});}})[_0x4052c8('0x253d')](function(_0x5d730c){var _0x1e7df3=_0x4052c8;_0x4c8be5[_0x1e7df3('0x187f')]({'title':_0x5d730c[_0x1e7df3('0x2fa')]?_0x1e7df3('0x16c2')+_0x5d730c['status']+_0x1e7df3('0x169e')+_0x5d730c['statusText']:_0x1e7df3('0x278e'),'msg':_0x5d730c[_0x1e7df3('0x10fd')]?JSON[_0x1e7df3('0xa48')](_0x5d730c[_0x1e7df3('0x10fd')]):_0x5d730c['toString']()});});function _0x418461(){var _0xe0b4ff=_0x4052c8;_0x5cf8b4['errors']=[];var _0x13e9a0=[];_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x6c8')]&&_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x6c8')][_0xe0b4ff('0xcf6')]()===_0xe0b4ff('0x19d1')&&_0x5cf8b4[_0xe0b4ff('0xe26')]['appType']===_0xe0b4ff('0x8da')&&(_0x5cf8b4['queue'][_0xe0b4ff('0x1a46')]=_0xff8776[_0xe0b4ff('0x888')]?(_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x1b8f')]||'')+_0xe0b4ff('0x117e')+_0xff8776[_0xe0b4ff('0x888')]+'}':(_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x1b8f')]||'')+_0xe0b4ff('0x1f87'),_0xff8776[_0xe0b4ff('0x1e0f')]!==_0xe0b4ff('0x117')?_0x5cf8b4['queue']['options'][_0xe0b4ff('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x1b36')]+=_0xe0b4ff('0x266a')):_0x5cf8b4['queue'][_0xe0b4ff('0x1b36')]=_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x1b36')][_0xe0b4ff('0x170d')](_0xe0b4ff('0x266a'),''));var _0x5792dc=_0x51538b()[_0xe0b4ff('0xe9e')](_0x5cf8b4[_0xe0b4ff('0x4d7')],{'name':_0x5cf8b4[_0xe0b4ff('0xe26')]['queue']});_0x5792dc&&(_0x5cf8b4['queue'][_0x51538b()[_0xe0b4ff('0x1b56')](_0xe0b4ff('0x16c4'))+_0xe0b4ff('0x2097')]=_0x5792dc['id']);if(_0x5cf8b4['queue']['appType']&&_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0xe6d')]===_0xe0b4ff('0x113b')){}else switch((_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x9eb')]||_0x5cf8b4['queue'][_0xe0b4ff('0xe6d')])[_0xe0b4ff('0xcf6')]()){case _0xe0b4ff('0x282c'):_0x5cf8b4['queue'][_0xe0b4ff('0x124b')]=_0x5cf8b4['queue'][_0xe0b4ff('0x25d6')]+'='+_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x12f4')];break;case _0xe0b4ff('0x113b'):break;default:_0x13e9a0[0x0]=_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0xe26')],_0x13e9a0[0x1]=_0x5cf8b4[_0xe0b4ff('0xe26')][_0xe0b4ff('0x23c0')],_0x5cf8b4['queue'][_0xe0b4ff('0x124b')]=_0x13e9a0[_0xe0b4ff('0x19c4')](',');}_0xf3fd(_0x5cf8b4[_0xe0b4ff('0xe26')]);}function _0xf3fd(_0x176416){_0x4b98fa['hide'](_0x176416);}}const _0x62bb67=_0x55f8a7;_0x229733[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0xaf0'),'faxAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x229733(_0x2481e8,_0x4e5cb5,_0x44295f,_0xea13c5,_0x53e186,_0x1161c7,_0xdb3733,_0x135c80){var _0x10f673=_0x1a8446,_0x2cedbb=this;_0x2cedbb[_0x10f673('0x7fc')]=_0xdb3733['getCurrentUser'](),_0x2cedbb[_0x10f673('0x4c6')]=[],_0x2cedbb['title']=_0x10f673('0x18d9')+(_0xea13c5[_0x10f673('0xe6d')]||_0xea13c5['app'])[_0x10f673('0x1d08')](),_0x2cedbb[_0x10f673('0x5da')]=angular[_0x10f673('0x20a')](_0xea13c5),_0x2cedbb[_0x10f673('0xada')]=_0x135c80,_0x2cedbb['hasModulePermissions']={};if(_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x124b')])switch(_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0xe6d')]?_0x2cedbb['system'][_0x10f673('0xe6d')]['toLowerCase']():_0x2cedbb[_0x10f673('0x5da')]['app'][_0x10f673('0xcf6')]()){case _0x10f673('0x113b'):break;case _0x10f673('0x67c'):{var _0x4f065c=_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x124b')][_0x10f673('0x1a39')](',');_0x2cedbb['system'][_0x10f673('0x24ec')]=_0x4f065c[0x0],_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x1938')]=_0x4f065c[0x1],_0x2cedbb[_0x10f673('0x5da')]['welcomemessage']=_0x4f065c[_0x10f673('0x19aa')](0x2,_0x4f065c[_0x10f673('0x2587')])['join'](',');}break;case _0x10f673('0x3f5'):{var _0x2d1a5f=_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x124b')]['split'](',');_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0xc07')]=_0x2d1a5f[0x0],_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x15f9')]=_0x2d1a5f[0x1],_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0xa9a')]=_0x2d1a5f[0x2],_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x18ee')]=_0x2d1a5f[0x3],_0x2cedbb['system'][_0x10f673('0x273')]=_0x2d1a5f[_0x10f673('0x19aa')](0x4,_0x2d1a5f['length'])[_0x10f673('0x19c4')](',');}break;case _0x10f673('0x1b05'):{var _0x175393=_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x124b')][_0x10f673('0x1a39')](',');_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x11b6')]=isNaN(_0x175393[0x0])?_0x175393[0x0]:parseInt(_0x175393[0x0],0xa),_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0xb37')]=_0x175393['slice'](0x1,_0x175393[_0x10f673('0x2587')])[_0x10f673('0x19c4')](',');}break;case _0x10f673('0x1402'):_0x2cedbb['system']['text']=_0x2cedbb['system']['appdata'];break;case _0x10f673('0x282c'):_0x2cedbb['system'][_0x10f673('0x25d6')]=_0x2cedbb['system'][_0x10f673('0x124b')]['split']('=')[0x0],_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x12f4')]=_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x124b')][_0x10f673('0x1a39')]('=')[0x1];break;case _0x10f673('0x2067'):_0x2cedbb[_0x10f673('0x5da')]['project']=_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x124b')];break;default:{var _0x420e50=_0x2cedbb['system'][_0x10f673('0x124b')][_0x10f673('0x1a39')](',');_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0xd7b')]=_0x51538b()[_0x10f673('0x116b')](_0x420e50[0x0])?_0x420e50[0x0]:isNaN(_0x420e50[0x0])?_0x420e50[0x0]:parseInt(_0x420e50[0x0],0xa),_0x2cedbb['system'][_0x10f673('0x14e7')]=_0x51538b()[_0x10f673('0x116b')](_0x420e50[0x1])?_0x420e50[0x1]:isNaN(_0x420e50[0x1])?_0x420e50[0x1]:parseInt(_0x420e50[0x1],0xa);}}else _0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x14e7')]='';_0x2cedbb[_0x10f673('0x5da')]['type']&&_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x6c8')][_0x10f673('0xcf6')]()===_0x10f673('0x19d1')&&_0x2cedbb[_0x10f673('0x5da')]['appType'][_0x10f673('0xcf6')]()===_0x10f673('0x1e7f')&&(_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x1b8f')]=_0x2cedbb['system']['phone']?_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x1a46')]['split']('$')[0x0]:undefined,_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0xeed')]=_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x514')]?_0x10f673('0x23d8')+_0x2cedbb[_0x10f673('0x5da')][_0x10f673('0x514')]:undefined);_0x2cedbb[_0x10f673('0x14f6')]=_0x79a584,_0x2cedbb['closeDialog']=_0x32b173,_0xdb3733[_0x10f673('0x26e8')](_0x10f673('0x178b'))?_0x1161c7['variable']['get']({'fields':_0x10f673('0x17fe'),'sort':_0x10f673('0x25d6'),'nolimit':_0x10f673('0x1c5c')})[_0x10f673('0x1dc2')][_0x10f673('0xaa5')](function(_0x40f130){var _0x2233c8=_0x10f673;_0x2cedbb[_0x2233c8('0x147e')]=_0x40f130['rows']||[];})[_0x10f673('0x253d')](function(_0x1371c5){var _0x45a797=_0x10f673;_0x44295f[_0x45a797('0x187f')]({'title':_0x1371c5[_0x45a797('0x2fa')]?_0x45a797('0x16c2')+_0x1371c5['status']+_0x45a797('0x169e')+_0x1371c5[_0x45a797('0x24df')]:_0x45a797('0x18e0'),'msg':_0x1371c5['data']?JSON[_0x45a797('0xa48')](_0x1371c5[_0x45a797('0x10fd')]):_0x1371c5[_0x45a797('0x684')]()});}):_0x1161c7[_0x10f673('0x14e7')][_0x10f673('0x2122')]({'fields':_0x10f673('0x17fe'),'sort':_0x10f673('0x25d6'),'nolimit':'true'})[_0x10f673('0x1dc2')][_0x10f673('0xaa5')](function(_0x24f4b9){var _0x49a5ba=_0x10f673;_0x2cedbb[_0x49a5ba('0x147e')]=_0x24f4b9[_0x49a5ba('0x580')]||[];})[_0x10f673('0xaa5')](function(){var _0x126b38=_0x10f673;return _0x1161c7[_0x126b38('0x1a50')]['get']({'userProfileId':_0x2cedbb['currentUser'][_0x126b38('0x2168')],'sectionId':0x3f4})[_0x126b38('0x1dc2')];})[_0x10f673('0xaa5')](function(_0x5289cb){var _0x2f99cd=_0x10f673,_0x4c31ca=_0x5289cb&&_0x5289cb[_0x2f99cd('0x580')]?_0x5289cb['rows'][0x0]:null;if(!_0x4c31ca){var _0x6c26ad=[],_0x3bdaf4=null;_0x2cedbb[_0x2f99cd('0x5da')]&&(_0x3bdaf4=_0x51538b()[_0x2f99cd('0xe9e')](_0x2cedbb[_0x2f99cd('0x147e')],{'name':_0x2cedbb[_0x2f99cd('0x5da')][_0x2f99cd('0x14e7')]}));for(var _0x42b251=0x0;_0x42b251<_0x2cedbb[_0x2f99cd('0x147e')][_0x2f99cd('0x2587')];_0x42b251++){_0x3bdaf4&&_0x2cedbb[_0x2f99cd('0x147e')][_0x42b251]['id']===_0x3bdaf4['id']&&(_0x2cedbb[_0x2f99cd('0x147e')][_0x42b251][_0x2f99cd('0x12eb')]=![],_0x6c26ad[_0x2f99cd('0x1599')](_0x2cedbb[_0x2f99cd('0x147e')][_0x42b251]));}_0x2cedbb[_0x2f99cd('0x147e')]=_0x6c26ad;}else{if(!_0x4c31ca['autoAssociation'])return _0x1161c7[_0x2f99cd('0x249a')]['get']({'sectionId':_0x4c31ca['id']})[_0x2f99cd('0x1dc2')][_0x2f99cd('0xaa5')](function(_0x583ced){var _0x34d5e7=_0x2f99cd,_0x3a09b0=_0x51538b()[_0x34d5e7('0x1246')](_0x583ced['rows'],function(_0x3093c5){var _0x4221b1=_0x34d5e7;return _0x51538b()[_0x4221b1('0xe9e')](_0x2cedbb[_0x4221b1('0x147e')],{'id':_0x3093c5[_0x4221b1('0xbcd')]});}),_0xe3b9c1=null;_0x2cedbb[_0x34d5e7('0x5da')]&&(_0xe3b9c1=_0x51538b()[_0x34d5e7('0xe9e')](_0x2cedbb[_0x34d5e7('0x147e')],{'name':_0x2cedbb[_0x34d5e7('0x5da')][_0x34d5e7('0x14e7')]}));if(_0xe3b9c1&&!_0x51538b()['some'](_0x3a09b0,['id',_0xe3b9c1['id']])){var _0x4984bd=_0x51538b()[_0x34d5e7('0xe9e')](_0x2cedbb[_0x34d5e7('0x147e')],{'id':_0xe3b9c1['id']});_0x4984bd['canSelect']=![],_0x3a09b0[_0x34d5e7('0x1599')](_0x4984bd);}_0x2cedbb['variables']=_0x3a09b0;});}})['catch'](function(_0x5ba273){var _0xafe38d=_0x10f673;_0x44295f['error']({'title':_0x5ba273[_0xafe38d('0x2fa')]?_0xafe38d('0x16c2')+_0x5ba273['status']+_0xafe38d('0x169e')+_0x5ba273[_0xafe38d('0x24df')]:_0xafe38d('0xb4d'),'msg':_0x5ba273[_0xafe38d('0x10fd')]?JSON[_0xafe38d('0xa48')](_0x5ba273[_0xafe38d('0x10fd')]):_0x5ba273[_0xafe38d('0x684')]()});});function _0x79a584(){var _0x7201ca=_0x10f673;_0x2cedbb[_0x7201ca('0x4c6')]=[];var _0xcd0dca=[];_0x2cedbb['system']['type']&&_0x2cedbb['system'][_0x7201ca('0x6c8')][_0x7201ca('0xcf6')]()===_0x7201ca('0x19d1')&&_0x2cedbb[_0x7201ca('0x5da')][_0x7201ca('0xe6d')]==='outboundDial'&&(_0x2cedbb['system'][_0x7201ca('0x1a46')]=_0x53e186[_0x7201ca('0x888')]?(_0x2cedbb[_0x7201ca('0x5da')]['prefix']||'')+_0x7201ca('0x117e')+_0x53e186['cutdigits']+'}':(_0x2cedbb[_0x7201ca('0x5da')][_0x7201ca('0x1b8f')]||'')+_0x7201ca('0x1f87'),_0x53e186[_0x7201ca('0x1e0f')]!==_0x7201ca('0x117')?_0x2cedbb['system'][_0x7201ca('0x1b36')][_0x7201ca('0x1f38')](_0x7201ca('0x266a'))<0x0&&(_0x2cedbb[_0x7201ca('0x5da')][_0x7201ca('0x1b36')]+='U(xcally-mixmonitor-context)'):_0x2cedbb[_0x7201ca('0x5da')][_0x7201ca('0x1b36')]=_0x2cedbb[_0x7201ca('0x5da')]['options'][_0x7201ca('0x170d')](_0x7201ca('0x266a'),''));if(_0x2cedbb[_0x7201ca('0x5da')]['appType']&&_0x2cedbb[_0x7201ca('0x5da')][_0x7201ca('0xe6d')]===_0x7201ca('0x113b')){}else switch((_0x2cedbb['system'][_0x7201ca('0x9eb')]||_0x2cedbb['system'][_0x7201ca('0xe6d')])[_0x7201ca('0xcf6')]()){case _0x7201ca('0x282c'):_0x2cedbb[_0x7201ca('0x5da')][_0x7201ca('0x124b')]=_0x2cedbb['system']['name']+'='+_0x2cedbb[_0x7201ca('0x5da')]['value'];break;case'custom':break;default:_0xcd0dca[0x0]=_0x2cedbb[_0x7201ca('0x5da')]['command'],_0xcd0dca[0x1]=_0x2cedbb[_0x7201ca('0x5da')][_0x7201ca('0x14e7')],_0x2cedbb['system'][_0x7201ca('0x124b')]=_0xcd0dca[_0x7201ca('0x19c4')](',');}_0x32b173(_0x2cedbb[_0x7201ca('0x5da')]);}function _0x32b173(_0x3d4ae8){var _0x215b4a=_0x10f673;_0x2481e8[_0x215b4a('0x1120')](_0x3d4ae8);}}const _0x437550=_0x229733;_0x599e24[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0xaf0'),'faxAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x599e24(_0x8505c0,_0x12eb12,_0x39be40,_0x5b9838,_0x41ce2e,_0xacde6e,_0x30767e,_0xf14c5f){var _0x40ee07=_0x1a8446,_0x158b16=this;_0x158b16[_0x40ee07('0x7fc')]=_0x30767e[_0x40ee07('0xacc')](),_0x158b16[_0x40ee07('0x4c6')]=[],_0x158b16['title']=_0x40ee07('0x18d9')+(_0x5b9838[_0x40ee07('0xe6d')]||_0x5b9838[_0x40ee07('0x9eb')])['toUpperCase'](),_0x158b16[_0x40ee07('0x38f')]=angular[_0x40ee07('0x20a')](_0x5b9838),_0x158b16['crudPermissions']=_0xf14c5f,_0x158b16['hasModulePermissions']={};if(_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x124b')])switch(_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0xe6d')]?_0x158b16['tag']['appType'][_0x40ee07('0xcf6')]():_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x9eb')][_0x40ee07('0xcf6')]()){case'custom':break;case'dialogflow':{var _0x526ca2=_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x124b')][_0x40ee07('0x1a39')](',');_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x24ec')]=_0x526ca2[0x0],_0x158b16[_0x40ee07('0x38f')]['language']=_0x526ca2[0x1],_0x158b16[_0x40ee07('0x38f')]['welcomemessage']=_0x526ca2[_0x40ee07('0x19aa')](0x2,_0x526ca2[_0x40ee07('0x2587')])[_0x40ee07('0x19c4')](',');}break;case'amazonlex':{var _0xb06716=_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x124b')][_0x40ee07('0x1a39')](',');_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0xc07')]=_0xb06716[0x0],_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x15f9')]=_0xb06716[0x1],_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0xa9a')]=_0xb06716[0x2],_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x18ee')]=_0xb06716[0x3],_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x273')]=_0xb06716[_0x40ee07('0x19aa')](0x4,_0xb06716[_0x40ee07('0x2587')])[_0x40ee07('0x19c4')](',');}break;case _0x40ee07('0x1b05'):{var _0x1fdee9=_0x158b16[_0x40ee07('0x38f')]['appdata'][_0x40ee07('0x1a39')](',');_0x158b16['tag'][_0x40ee07('0x11b6')]=isNaN(_0x1fdee9[0x0])?_0x1fdee9[0x0]:parseInt(_0x1fdee9[0x0],0xa),_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0xb37')]=_0x1fdee9[_0x40ee07('0x19aa')](0x1,_0x1fdee9[_0x40ee07('0x2587')])[_0x40ee07('0x19c4')](',');}break;case'message':_0x158b16['tag'][_0x40ee07('0xb37')]=_0x158b16['tag']['appdata'];break;case _0x40ee07('0x282c'):_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x25d6')]=_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x124b')][_0x40ee07('0x1a39')]('=')[0x0],_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x12f4')]=_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x124b')]['split']('=')[0x1];break;case'agi':_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x24b9')]=_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x124b')];break;default:{var _0x30d292=_0x158b16['tag'][_0x40ee07('0x124b')][_0x40ee07('0x1a39')](',');_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x38f')]=_0x51538b()['isEmpty'](_0x30d292[0x0])?_0x30d292[0x0]:isNaN(_0x30d292[0x0])?_0x30d292[0x0]:parseInt(_0x30d292[0x0],0xa);}break;}else{}_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x6c8')]&&_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x6c8')][_0x40ee07('0xcf6')]()===_0x40ee07('0x19d1')&&_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0xe6d')]['toLowerCase']()===_0x40ee07('0x1e7f')&&(_0x158b16['tag']['prefix']=_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x1a46')]?_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x1a46')][_0x40ee07('0x1a39')]('$')[0x0]:undefined,_0x158b16[_0x40ee07('0x38f')]['callerId']=_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x514')]?'CALLERID(all)='+_0x158b16[_0x40ee07('0x38f')][_0x40ee07('0x514')]:undefined);_0x158b16['saveFaxAccountApp']=_0x708af8,_0x158b16['closeDialog']=_0x110dd9,_0x30767e[_0x40ee07('0x26e8')](_0x40ee07('0x178b'))?_0xacde6e[_0x40ee07('0x38f')]['get']({'fields':_0x40ee07('0x17fe'),'sort':_0x40ee07('0x25d6'),'nolimit':_0x40ee07('0x1c5c')})['$promise']['then'](function(_0x29ec05){_0x158b16['tags']=_0x29ec05['rows']||[];})[_0x40ee07('0x253d')](function(_0xd6218a){var _0xfe2e1f=_0x40ee07;_0x39be40[_0xfe2e1f('0x187f')]({'title':_0xd6218a[_0xfe2e1f('0x2fa')]?'API:'+_0xd6218a['status']+_0xfe2e1f('0x169e')+_0xd6218a[_0xfe2e1f('0x24df')]:_0xfe2e1f('0x37c'),'msg':_0xd6218a[_0xfe2e1f('0x10fd')]?JSON[_0xfe2e1f('0xa48')](_0xd6218a['data']):_0xd6218a['toString']()});}):_0xacde6e['tag'][_0x40ee07('0x2122')]({'fields':_0x40ee07('0x17fe'),'sort':_0x40ee07('0x25d6'),'nolimit':_0x40ee07('0x1c5c')})['$promise'][_0x40ee07('0xaa5')](function(_0x14e5bc){_0x158b16['tags']=_0x14e5bc['rows']||[];})['then'](function(){var _0x3a5f0=_0x40ee07;return _0xacde6e['userProfileSection'][_0x3a5f0('0x2122')]({'userProfileId':_0x158b16['currentUser'][_0x3a5f0('0x2168')],'sectionId':0x3f0})[_0x3a5f0('0x1dc2')];})['then'](function(_0x593fbd){var _0x42c7ef=_0x40ee07,_0x4c92c8=_0x593fbd&&_0x593fbd[_0x42c7ef('0x580')]?_0x593fbd[_0x42c7ef('0x580')][0x0]:null;if(!_0x4c92c8){var _0x3a9668=[],_0x7f7532=null;_0x158b16[_0x42c7ef('0x38f')]&&(_0x7f7532=_0x51538b()[_0x42c7ef('0xe9e')](_0x158b16[_0x42c7ef('0x523')],{'name':_0x158b16['tag'][_0x42c7ef('0x38f')]}));for(var _0x207b56=0x0;_0x207b56<_0x158b16[_0x42c7ef('0x523')][_0x42c7ef('0x2587')];_0x207b56++){_0x7f7532&&_0x158b16['tags'][_0x207b56]['id']===_0x7f7532['id']&&(_0x158b16[_0x42c7ef('0x523')][_0x207b56][_0x42c7ef('0x12eb')]=![],_0x3a9668[_0x42c7ef('0x1599')](_0x158b16['tags'][_0x207b56]));}_0x158b16[_0x42c7ef('0x523')]=_0x3a9668;}else{if(!_0x4c92c8[_0x42c7ef('0x26cc')])return _0xacde6e['userProfileResource'][_0x42c7ef('0x2122')]({'sectionId':_0x4c92c8['id']})['$promise'][_0x42c7ef('0xaa5')](function(_0x496736){var _0x3a6460=_0x42c7ef,_0x2e165c=_0x51538b()[_0x3a6460('0x1246')](_0x496736[_0x3a6460('0x580')],function(_0x5615c3){var _0x3ddd79=_0x3a6460;return _0x51538b()[_0x3ddd79('0xe9e')](_0x158b16[_0x3ddd79('0x523')],{'id':_0x5615c3[_0x3ddd79('0xbcd')]});}),_0x5239d8=null;_0x158b16['tag']&&(_0x5239d8=_0x51538b()[_0x3a6460('0xe9e')](_0x158b16[_0x3a6460('0x523')],{'name':_0x158b16[_0x3a6460('0x38f')][_0x3a6460('0x38f')]}));if(_0x5239d8&&!_0x51538b()['some'](_0x2e165c,['id',_0x5239d8['id']])){var _0x16686e=_0x51538b()['find'](_0x158b16[_0x3a6460('0x523')],{'id':_0x5239d8['id']});_0x16686e[_0x3a6460('0x12eb')]=![],_0x2e165c[_0x3a6460('0x1599')](_0x16686e);}_0x158b16[_0x3a6460('0x523')]=_0x2e165c;});}})[_0x40ee07('0x253d')](function(_0x275de4){var _0x531446=_0x40ee07;_0x39be40['error']({'title':_0x275de4[_0x531446('0x2fa')]?_0x531446('0x16c2')+_0x275de4[_0x531446('0x2fa')]+_0x531446('0x169e')+_0x275de4[_0x531446('0x24df')]:'SYSTEM:GETtags','msg':_0x275de4[_0x531446('0x10fd')]?JSON[_0x531446('0xa48')](_0x275de4['data']):_0x275de4['toString']()});});function _0x708af8(){var _0x304c66=_0x40ee07;_0x158b16[_0x304c66('0x4c6')]=[];var _0x1d511e=[];_0x158b16[_0x304c66('0x38f')][_0x304c66('0x6c8')]&&_0x158b16[_0x304c66('0x38f')][_0x304c66('0x6c8')][_0x304c66('0xcf6')]()===_0x304c66('0x19d1')&&_0x158b16['tag'][_0x304c66('0xe6d')]===_0x304c66('0x8da')&&(_0x158b16['tag']['phone']=_0x41ce2e[_0x304c66('0x888')]?(_0x158b16[_0x304c66('0x38f')][_0x304c66('0x1b8f')]||'')+_0x304c66('0x117e')+_0x41ce2e[_0x304c66('0x888')]+'}':(_0x158b16[_0x304c66('0x38f')][_0x304c66('0x1b8f')]||'')+'${EXTEN}',_0x41ce2e['recordingFormat']!==_0x304c66('0x117')?_0x158b16[_0x304c66('0x38f')]['options']['indexOf'](_0x304c66('0x266a'))<0x0&&(_0x158b16['tag'][_0x304c66('0x1b36')]+=_0x304c66('0x266a')):_0x158b16[_0x304c66('0x38f')]['options']=_0x158b16['tag'][_0x304c66('0x1b36')][_0x304c66('0x170d')](_0x304c66('0x266a'),''));var _0x454d77=_0x51538b()['find'](_0x158b16[_0x304c66('0x523')],{'name':_0x158b16['tag'][_0x304c66('0x38f')]});_0x454d77&&(_0x158b16[_0x304c66('0x38f')][_0x304c66('0x2028')]=_0x454d77['id']);if(_0x158b16['tag'][_0x304c66('0xe6d')]&&_0x158b16[_0x304c66('0x38f')][_0x304c66('0xe6d')]==='custom'){}else switch((_0x158b16['tag'][_0x304c66('0x9eb')]||_0x158b16[_0x304c66('0x38f')]['appType'])[_0x304c66('0xcf6')]()){case'set':_0x158b16[_0x304c66('0x38f')][_0x304c66('0x124b')]=_0x158b16[_0x304c66('0x38f')][_0x304c66('0x25d6')]+'='+_0x158b16[_0x304c66('0x38f')][_0x304c66('0x12f4')];break;case _0x304c66('0x113b'):break;default:_0x1d511e[0x0]=_0x158b16['tag'][_0x304c66('0x38f')],_0x158b16[_0x304c66('0x38f')][_0x304c66('0x124b')]=_0x1d511e[_0x304c66('0x19c4')](',');}_0x110dd9(_0x158b16[_0x304c66('0x38f')]);}function _0x110dd9(_0x89cb6c){var _0xa9b950=_0x40ee07;_0x8505c0[_0xa9b950('0x1120')](_0x89cb6c);}}const _0x2d7fa1=_0x599e24;_0xc685b4[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),'$state',_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'api','toasty',_0x1a8446('0x1dfd')];function _0xc685b4(_0x1ec134,_0x34af0e,_0x3d50c1,_0x165553,_0x5cc44d,_0xe64d69,_0x2a6acf,_0x1a000d,_0x31a481,_0x4dfc2f,_0x1c6389){var _0x53e253=_0x1a8446,_0x5865f3=this;_0x5865f3[_0x53e253('0x7fc')]=_0x1c6389[_0x53e253('0xacc')](),_0x5865f3['dispositions']={'count':0x0,'rows':[]},_0x5865f3[_0x53e253('0x3b5')]=[],_0x5865f3['crudPermissions'],_0x5865f3['levels']={'first':'1st','second':_0x53e253('0x20e2'),'third':_0x53e253('0x14f3')},_0x5865f3[_0x53e253('0x582')]={'fields':_0x53e253('0x11a9'),'sort':_0x53e253('0xd82'),'limit':0xa,'page':0x1},_0x5865f3[_0x53e253('0x2e')]=_0x30ade0,_0x5865f3[_0x53e253('0x1416')]=_0x3cc64f,_0x5865f3[_0x53e253('0xe10')]=_0x48758e,_0x5865f3[_0x53e253('0x24b7')]=_0x501f6b,_0x5865f3[_0x53e253('0x707')]=_0x9de30,_0x5865f3[_0x53e253('0xb52')]=_0x529726,_0x5865f3[_0x53e253('0xae4')]=_0x1feaad,_0x5865f3['deleteSelectedDispositions']=_0x58a095,_0x5865f3[_0x53e253('0x83f')]=_0x5ea61c,_0x5865f3['selectAllDispositions']=_0x393b50;function _0x30ade0(_0x145cc4,_0x344361){var _0x134458=_0x53e253;_0x5865f3['faxAccount']=_0x145cc4||{},_0x5865f3[_0x134458('0xada')]=typeof _0x344361!=='undefined'?_0x344361:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5865f3[_0x134458('0x582')][_0x134458('0x16a8')]=_0x5865f3[_0x134458('0x1f6a')]['id'],_0x5865f3[_0x134458('0x582')]['id']=_0x5865f3[_0x134458('0x1f6a')]['id'],_0x501f6b();}function _0x9de30(_0x200187,_0x3067ed){var _0x379c0f=_0x53e253;_0x5cc44d[_0x379c0f('0x1e6d')]({'controller':_0x379c0f('0xccf'),'controllerAs':'vm','templateUrl':_0x56dea9,'parent':angular[_0x379c0f('0x1aa8')](_0xe64d69[_0x379c0f('0x54c')]),'targetEvent':_0x200187,'clickOutsideToClose':!![],'locals':{'disposition':_0x3067ed,'dispositions':_0x5865f3[_0x379c0f('0xa9')][_0x379c0f('0x580')],'model':{'id':_0x5865f3[_0x379c0f('0x1f6a')]['id'],'field':_0x379c0f('0x16a8')},'license':null,'setting':null,'crudPermissions':_0x5865f3[_0x379c0f('0xada')]}})[_0x379c0f('0xaa5')](function(_0x297308){if(_0x297308)_0x501f6b();});}function _0x3cc64f(_0x453169,_0xe8df24){var _0x5e9747=_0x53e253,_0x3695b8=_0x51538b()[_0x5e9747('0x2c2')](_0x5865f3['dispositions'][_0x5e9747('0x580')],[_0x5e9747('0x2733'),_0x453169['id']]),_0x93c8cb=_0x5cc44d['confirm']()[_0x5e9747('0x110a')](_0x1a000d[_0x5e9747('0x213f')](_0x5e9747('0x2498')))[_0x5e9747('0x15af')](_0x1a000d[_0x5e9747('0x213f')]('TOOLS.NOTIFICATIONS.'+(_0x3695b8?_0x5e9747('0x1528'):_0x5e9747('0x20c8')),{'name':_0x453169['name']}))[_0x5e9747('0x5b5')](_0x5e9747('0x1493'))[_0x5e9747('0x116d')](_0xe8df24)['ok']('OK')[_0x5e9747('0x2030')](_0x1a000d['instant'](_0x5e9747('0x1dd8')));_0x5cc44d['show'](_0x93c8cb)[_0x5e9747('0xaa5')](function(){_0x529726(_0x453169);});}function _0x48758e(_0x371653){var _0x48df95=_0x53e253;_0x5865f3[_0x48df95('0xa9')]=_0x371653||{'count':0x0,'rows':[]};}function _0x501f6b(){var _0x4ee809=_0x53e253;_0x5865f3[_0x4ee809('0x582')][_0x4ee809('0x8b1')]=(_0x5865f3[_0x4ee809('0x582')]['page']-0x1)*_0x5865f3[_0x4ee809('0x582')][_0x4ee809('0xf4d')],_0x5865f3['promise']=_0x31a481[_0x4ee809('0x1f6a')][_0x4ee809('0x24b7')](_0x5865f3[_0x4ee809('0x582')],_0x48758e)[_0x4ee809('0x1dc2')];}function _0x529726(_0x45d36c){var _0x570488=_0x53e253;_0x31a481['disposition'][_0x570488('0x926')]({'id':_0x45d36c['id']})[_0x570488('0x1dc2')][_0x570488('0xaa5')](function(){var _0x2ef182=_0x570488;_0x501f6b(),_0x4dfc2f[_0x2ef182('0xe10')]({'title':_0x1a000d[_0x2ef182('0x213f')](_0x2ef182('0x26dd'))});})[_0x570488('0x253d')](function(_0x81dc60){var _0x163bcc=_0x570488;if(_0x81dc60[_0x163bcc('0x10fd')]&&_0x81dc60[_0x163bcc('0x10fd')][_0x163bcc('0x4c6')]&&_0x81dc60[_0x163bcc('0x10fd')][_0x163bcc('0x4c6')]['length']){_0x5865f3[_0x163bcc('0x4c6')]=_0x81dc60[_0x163bcc('0x10fd')][_0x163bcc('0x4c6')]||[{'message':_0x81dc60['toString'](),'type':_0x163bcc('0x28a')}];for(var _0x1f3c08=0x0;_0x1f3c08<_0x81dc60[_0x163bcc('0x10fd')]['errors'][_0x163bcc('0x2587')];_0x1f3c08++){_0x4dfc2f[_0x163bcc('0x187f')]({'title':_0x81dc60[_0x163bcc('0x10fd')][_0x163bcc('0x4c6')][_0x1f3c08]['type'],'msg':_0x81dc60['data'][_0x163bcc('0x4c6')][_0x1f3c08][_0x163bcc('0x1402')]});}}else _0x4dfc2f[_0x163bcc('0x187f')]({'title':_0x81dc60[_0x163bcc('0x2fa')]?_0x163bcc('0x16c2')+_0x81dc60[_0x163bcc('0x2fa')]+_0x163bcc('0x169e')+_0x81dc60[_0x163bcc('0x24df')]:_0x163bcc('0x28a'),'msg':_0x81dc60['data']?JSON[_0x163bcc('0xa48')](_0x81dc60[_0x163bcc('0x10fd')][_0x163bcc('0x1402')]):_0x81dc60['message']||_0x81dc60['toString']()});});}function _0x1feaad(){var _0x311de8=_0x53e253,_0x197739=angular[_0x311de8('0x20a')](_0x5865f3[_0x311de8('0x3b5')]);return _0x5865f3[_0x311de8('0x3b5')]=[],_0x197739;}function _0x58a095(_0x2f43be){var _0x4e055d=_0x53e253,_0x5eb36c=_0x5cc44d[_0x4e055d('0x281e')]()[_0x4e055d('0x110a')](_0x1a000d[_0x4e055d('0x213f')](_0x4e055d('0x18f0')))[_0x4e055d('0x15af')](_0x1a000d[_0x4e055d('0x213f')](_0x4e055d('0x8f7'),{'total':_0x5865f3[_0x4e055d('0x3b5')][_0x4e055d('0x2587')]}))[_0x4e055d('0x5b5')](_0x4e055d('0x2803'))[_0x4e055d('0x116d')](_0x2f43be)['ok']('OK')[_0x4e055d('0x2030')](_0x1a000d[_0x4e055d('0x213f')](_0x4e055d('0x1dd8')));_0x5cc44d['show'](_0x5eb36c)['then'](function(){var _0x7f335=_0x4e055d;_0x5865f3[_0x7f335('0x3b5')]['forEach'](function(_0xc435bd){_0x529726(_0xc435bd);}),_0x5865f3['selectedDispositions']=[];});}function _0x5ea61c(){var _0x1ea717=_0x53e253;_0x5865f3[_0x1ea717('0x3b5')]=[];}function _0x393b50(){var _0x2fb173=_0x53e253;_0x5865f3[_0x2fb173('0x3b5')]=_0x5865f3[_0x2fb173('0xa9')][_0x2fb173('0x580')];}var _0x2440b1=!![],_0x11f5f2=0x1;_0x1ec134['$watch'](_0x53e253('0x74c'),function(_0xa1a95e,_0x4f238a){var _0xf1f63f=_0x53e253;_0x2440b1?_0x2a6acf(function(){_0x2440b1=![];}):(!_0x4f238a&&(_0x11f5f2=_0x5865f3[_0xf1f63f('0x582')][_0xf1f63f('0x41')]),_0xa1a95e!==_0x4f238a&&(_0x5865f3[_0xf1f63f('0x582')]['page']=0x1),!_0xa1a95e&&(_0x5865f3['query']['page']=_0x11f5f2),_0x501f6b());});}const _0x2c5996=_0xc685b4;_0x476870[_0x1a8446('0x1e33')]=['$cookies',_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x1dfd')];function _0x476870(_0x1de6b2,_0x27179d,_0x23703c,_0x5a8662,_0x3f36af,_0x261a7,_0x2b397c,_0x1a90ef,_0x5342f2,_0x136f6b,_0x5690b){var _0x9bc964=_0x1a8446,_0x47a3a6=this;_0x47a3a6['currentUser']=_0x5690b['getCurrentUser'](),_0x47a3a6[_0x9bc964('0x1f6a')]={},_0x47a3a6[_0x9bc964('0xe32')]={'count':0x0,'rows':[]},_0x47a3a6[_0x9bc964('0xf4c')]=[],_0x47a3a6[_0x9bc964('0xada')],_0x47a3a6[_0x9bc964('0x582')]={'read':_0x9bc964('0x1ed9'),'closed':_0x9bc964('0x1ed9'),'sort':_0x9bc964('0xa19'),'includeAll':_0x9bc964('0x1c5c'),'limit':0xa,'page':0x1},_0x47a3a6[_0x9bc964('0x2e')]=_0x3ab998,_0x47a3a6['deleteConfirm']=_0x3e2a65,_0x47a3a6[_0x9bc964('0x1bda')]=_0x463813,_0x47a3a6['success']=_0x280aeb,_0x47a3a6[_0x9bc964('0x1cba')]=_0x28e6ed,_0x47a3a6[_0x9bc964('0x25b6')]=_0x596c8e,_0x47a3a6['openAdvancedSearch']=_0x30739c,_0x47a3a6[_0x9bc964('0xa26')]=_0x2f8dc6,_0x47a3a6[_0x9bc964('0x5ea')]=_0x2910bc,_0x47a3a6[_0x9bc964('0x1ce3')]=_0x49e837;function _0x3ab998(_0x332c3e,_0x50736f){var _0x4dc73a=_0x9bc964;_0x47a3a6[_0x4dc73a('0x1f6a')]=_0x332c3e,_0x47a3a6[_0x4dc73a('0xada')]=typeof _0x50736f!==_0x4dc73a('0x1574')?_0x50736f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x47a3a6[_0x4dc73a('0x582')][_0x4dc73a('0x16a8')]=_0x47a3a6[_0x4dc73a('0x1f6a')]['id'],_0x47a3a6[_0x4dc73a('0xd67')]={'fields':_0x38063b()},_0x34cf30();}function _0x34cf30(){var _0x23b749=_0x9bc964;return _0x136f6b[_0x23b749('0x38f')][_0x23b749('0x2122')]()[_0x23b749('0x1dc2')][_0x23b749('0xaa5')](function(_0x5739aa){var _0x3b1151=_0x23b749;_0x47a3a6[_0x3b1151('0x523')]=_0x5739aa||{'count':0x0,'rows':[]};})[_0x23b749('0xaa5')](function(){var _0x142c95=_0x23b749;_0x47a3a6[_0x142c95('0x168c')]=_0x346a64();});}function _0x346a64(){var _0x1d3dcb=_0x9bc964;return[{'name':_0x1d3dcb('0x12f1'),'key':'createdAt','type':'date','label':_0x1d3dcb('0xf3d')},{'name':'Messages','key':'read','type':_0x1d3dcb('0xbff'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x1d3dcb('0xdc4')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x1d3dcb('0x26ae'),'key':_0x1d3dcb('0x1cbd'),'type':'select','label':_0x1d3dcb('0x617'),'customOptions':[{'value':0x0,'translate':_0x1d3dcb('0x166e')},{'value':0x1,'translate':_0x1d3dcb('0x73b')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Agent','key':_0x1d3dcb('0x1037'),'type':_0x1d3dcb('0xbff'),'label':_0x1d3dcb('0x162f'),'customOptions':[{'value':_0x1d3dcb('0x1ed9'),'translate':_0x1d3dcb('0x1a1c')},{'value':undefined,'translate':_0x1d3dcb('0x20c4')}]},{'name':_0x1d3dcb('0x4e7'),'key':'tag','type':_0x1d3dcb('0x2468'),'label':_0x1d3dcb('0x6a6'),'options':_0x47a3a6['tags'][_0x1d3dcb('0x580')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x38063b(){var _0x5d3c32=_0x9bc964;return[{'name':'Id','column':'id','type':_0x5d3c32('0x219a')},{'name':_0x5d3c32('0x1dc'),'column':'Contact','type':_0x5d3c32('0x7e6'),'options':{'searchFields':[_0x5d3c32('0x24c1'),_0x5d3c32('0x351'),_0x5d3c32('0x1f69')],'route':{'model':'cmContact','action':_0x5d3c32('0x2122'),'params':{'fields':_0x5d3c32('0x14ba'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x5d3c32('0x13f7')]}},{'name':_0x5d3c32('0x716'),'column':_0x5d3c32('0x2101'),'type':_0x5d3c32('0xb37'),'options':{'excludedOperators':[_0x5d3c32('0x221d'),_0x5d3c32('0x13f7')]}},{'name':'Body','column':_0x5d3c32('0xc2'),'type':_0x5d3c32('0xb37'),'options':{'excludedOperators':[_0x5d3c32('0x221d'),_0x5d3c32('0x13f7')]}},{'name':_0x5d3c32('0x26ae'),'column':_0x5d3c32('0x1cbd'),'type':_0x5d3c32('0xbff'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x5d3c32('0x73b')}],'options':{'excludedOperators':[_0x5d3c32('0x13f7')]}},{'name':_0x5d3c32('0x521'),'column':_0x5d3c32('0x21b9'),'type':_0x5d3c32('0x7e6'),'options':{'table':'i','route':{'model':'user','action':_0x5d3c32('0x2122'),'params':{'role':_0x5d3c32('0xeff'),'fields':_0x5d3c32('0x25ff'),'nolimit':!![]}},'searchFields':[_0x5d3c32('0x18e5'),'name'],'extraOperators':[_0x5d3c32('0x2082')],'excludedOperators':[_0x5d3c32('0x13f7')]}},{'name':_0x5d3c32('0x67f'),'column':_0x5d3c32('0x4e7'),'type':_0x5d3c32('0x2468'),'options':{'route':{'model':_0x5d3c32('0x38f'),'action':_0x5d3c32('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5d3c32('0x930')]}},{'name':_0x5d3c32('0x12f1'),'column':_0x5d3c32('0x24a1'),'type':'date','options':{'excludedOperators':[_0x5d3c32('0x13f7')]}},{'name':_0x5d3c32('0x120b'),'column':_0x5d3c32('0x1551'),'type':_0x5d3c32('0xbff'),'values':[{'id':0x1,'translate':_0x5d3c32('0xdc4')},{'id':0x0,'translate':_0x5d3c32('0x320')}],'options':{'excludedOperators':[_0x5d3c32('0x13f7')]}}];}function _0x30739c(){var _0x4ae5be=_0x9bc964;_0x2b397c[_0x4ae5be('0x1e6d')]({'controller':_0x4ae5be('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0x4ae5be('0x1aa8')](_0x1a90ef['body']),'clickOutsideToClose':![],'locals':{'fields':_0x47a3a6[_0x4ae5be('0xd67')][_0x4ae5be('0x13a')],'color':undefined,'storagePath':_0x4ae5be('0x1eb3')},'fullscreen':!![]})[_0x4ae5be('0xaa5')](function(_0x50d23e){var _0xe03416=_0x4ae5be;_0x47a3a6['query']['search']=_0x50d23e===![]?undefined:_0x50d23e;if(_0x47a3a6['query'][_0xe03416('0x1785')])_0x28e6ed();else _0x50d23e===![]&&_0x28e6ed();})['catch'](function(_0x458bd9){var _0x481273=_0x4ae5be;_0x5342f2['error']({'title':'ERROR','msg':_0x458bd9[_0x481273('0x10fd')]?JSON['stringify'](_0x458bd9[_0x481273('0x10fd')][_0x481273('0x1402')]):_0x458bd9['toString']()});});}function _0x463813(_0x45cc07,_0x4a1596,_0x47f75f){var _0xd8344d=_0x9bc964;return _0x136f6b[_0xd8344d('0x927')][_0xd8344d('0x1cf9')]({'id':_0x45cc07['id'],'exists':!![],'attachments':_0x47f75f})[_0xd8344d('0x1dc2')][_0xd8344d('0xaa5')](function(_0x362e19){var _0x2ba4b9=_0xd8344d,_0x4218fe=[_0x362e19[_0x2ba4b9('0x1bf1')]],_0x35d823='interaction'+_0x45cc07['id'],_0x28b765=new Blob(_0x4218fe,{'type':_0x362e19[_0x2ba4b9('0x6c8')]});_0x35d823=_0x2ba4b9('0x1250')+_0x45cc07['id']+_0x2ba4b9('0x966');var _0x1faeb7=window[_0x2ba4b9('0x12aa')][_0x2ba4b9('0x531')]('a');_0x1faeb7[_0x2ba4b9('0x107b')](_0x2ba4b9('0x18ae'),URL[_0x2ba4b9('0x1e56')](_0x28b765)),_0x1faeb7['setAttribute'](_0x2ba4b9('0x1cf9'),_0x35d823),document[_0x2ba4b9('0x54c')][_0x2ba4b9('0x1315')](_0x1faeb7),_0x1faeb7['click']();})[_0xd8344d('0x253d')](function(_0x1d30c7){var _0x251156=_0xd8344d;if(_0x1d30c7[_0x251156('0x10fd')]&&_0x1d30c7[_0x251156('0x10fd')][_0x251156('0x4c6')]&&_0x1d30c7[_0x251156('0x10fd')][_0x251156('0x4c6')][_0x251156('0x2587')])for(var _0x29b23e=0x0;_0x29b23e<_0x1d30c7[_0x251156('0x10fd')][_0x251156('0x4c6')]['length'];_0x29b23e+=0x1){_0x5342f2[_0x251156('0x187f')]({'title':_0x1d30c7['data'][_0x251156('0x4c6')][_0x29b23e][_0x251156('0x6c8')],'msg':_0x1d30c7['data'][_0x251156('0x4c6')][_0x29b23e][_0x251156('0x1402')]});}else _0x5342f2[_0x251156('0x187f')]({'title':_0x1d30c7[_0x251156('0x2fa')]?_0x251156('0x16c2')+_0x1d30c7[_0x251156('0x2fa')]+'\x20-\x20'+_0x1d30c7[_0x251156('0x24df')]:_0x251156('0x506'),'msg':_0x1d30c7[_0x251156('0x10fd')]?JSON[_0x251156('0xa48')](_0x1d30c7['data'][_0x251156('0x1402')]):_0x1d30c7[_0x251156('0x684')]()});});}function _0x3e2a65(_0x5d18a4,_0x23b37e){var _0xfe7c70=_0x9bc964,_0x17dd5e=_0x2b397c[_0xfe7c70('0x281e')]()[_0xfe7c70('0x110a')](_0xfe7c70('0x625'))[_0xfe7c70('0x102e')](_0xfe7c70('0x389')+(_0x5d18a4[_0xfe7c70('0x25d6')]||_0x5d18a4['id']&&_0x51538b()[_0xfe7c70('0x1791')](_0xfe7c70('0x11a4'))+_0x5d18a4['id']||_0xfe7c70('0x1d86'))+_0xfe7c70('0x697')+'\x20will\x20be\x20deleted.')[_0xfe7c70('0x5b5')](_0xfe7c70('0x22ae'))[_0xfe7c70('0x116d')](_0x23b37e)['ok']('OK')[_0xfe7c70('0x2030')](_0xfe7c70('0x2410'));_0x2b397c[_0xfe7c70('0x1e6d')](_0x17dd5e)['then'](function(){_0x2910bc(_0x5d18a4);},function(){var _0x16d327=_0xfe7c70;console[_0x16d327('0x18d5')](_0x16d327('0x2410'));});}function _0x280aeb(_0xa2541c){var _0x54db1a=_0x9bc964;_0x47a3a6[_0x54db1a('0xe32')]=_0xa2541c||{'count':0x0,'rows':[]};for(var _0x469b21=0x0;_0x469b21<_0x47a3a6['faxAccountInteractions'][_0x54db1a('0x580')][_0x54db1a('0x2587')];_0x469b21+=0x1){var _0x2060f0=_0x47a3a6[_0x54db1a('0xe32')][_0x54db1a('0x580')][_0x469b21];_0x489bae(_0x2060f0),_0x2060f0[_0x54db1a('0x40')][_0x54db1a('0x25d6')]=_0x43695b(_0x2060f0);}}function _0x28e6ed(){var _0x1fc05a=_0x9bc964;_0x47a3a6['query'][_0x1fc05a('0x8b1')]=(_0x47a3a6[_0x1fc05a('0x582')][_0x1fc05a('0x41')]-0x1)*_0x47a3a6[_0x1fc05a('0x582')][_0x1fc05a('0xf4d')],_0x47a3a6[_0x1fc05a('0x159a')]=_0x136f6b[_0x1fc05a('0x927')][_0x1fc05a('0x2122')](_0x47a3a6[_0x1fc05a('0x582')],_0x280aeb)[_0x1fc05a('0x1dc2')];}function _0x596c8e(_0x278d52,_0x2b2033){var _0x478882=_0x9bc964;_0x2b397c[_0x478882('0x1e6d')]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x451de2,'parent':angular[_0x478882('0x1aa8')](_0x1a90ef['body']),'targetEvent':_0x278d52,'clickOutsideToClose':!![],'onShowing':function _0x1e2446(_0x16e0e){var _0x4f3f7e=_0x478882;_0x16e0e['vm']['init']({'id':0x1,'channel':_0x4f3f7e('0x16c4'),'interaction':_0x2b2033,'spy':!![]},_0x27179d[_0x4f3f7e('0x24a3')]['vm'][_0x4f3f7e('0x143f')]);}});}function _0x2910bc(_0x3b4158){var _0x30a4a0=_0x9bc964;_0x136f6b[_0x30a4a0('0x927')][_0x30a4a0('0x926')]({'id':_0x3b4158['id']})['$promise'][_0x30a4a0('0xaa5')](function(){var _0x20b9ed=_0x30a4a0;_0x51538b()[_0x20b9ed('0xf6d')](_0x47a3a6[_0x20b9ed('0xe32')]['rows'],{'id':_0x3b4158['id']}),_0x47a3a6['faxAccountInteractions'][_0x20b9ed('0xd15')]-=0x1,!_0x47a3a6['faxAccountInteractions'][_0x20b9ed('0x580')][_0x20b9ed('0x2587')]&&_0x28e6ed(),_0x5342f2[_0x20b9ed('0xe10')]({'title':_0x20b9ed('0xd35'),'msg':_0x3b4158['name']?_0x3b4158[_0x20b9ed('0x25d6')]+_0x20b9ed('0xcd9'):''});})['catch'](function(_0x15c204){var _0x13634f=_0x30a4a0;if(_0x15c204[_0x13634f('0x10fd')]&&_0x15c204['data'][_0x13634f('0x4c6')]&&_0x15c204[_0x13634f('0x10fd')][_0x13634f('0x4c6')][_0x13634f('0x2587')]){_0x47a3a6[_0x13634f('0x4c6')]=_0x15c204[_0x13634f('0x10fd')][_0x13634f('0x4c6')]||[{'message':_0x15c204['toString'](),'type':_0x13634f('0x2256')}];for(var _0x1c18a7=0x0;_0x1c18a7<_0x15c204[_0x13634f('0x10fd')][_0x13634f('0x4c6')]['length'];_0x1c18a7++){_0x5342f2[_0x13634f('0x187f')]({'title':_0x15c204['data'][_0x13634f('0x4c6')][_0x1c18a7][_0x13634f('0x6c8')],'msg':_0x15c204[_0x13634f('0x10fd')][_0x13634f('0x4c6')][_0x1c18a7][_0x13634f('0x1402')]});}}else _0x5342f2[_0x13634f('0x187f')]({'title':_0x15c204['status']?_0x13634f('0x16c2')+_0x15c204[_0x13634f('0x2fa')]+'\x20-\x20'+_0x15c204['statusText']:'SYSTEM:GETfaxAccount','msg':_0x15c204[_0x13634f('0x10fd')]?JSON[_0x13634f('0xa48')](_0x15c204[_0x13634f('0x10fd')]['message']):_0x15c204[_0x13634f('0x1402')]||_0x15c204[_0x13634f('0x684')]()});});}function _0x2f8dc6(){var _0x2926a0=_0x9bc964,_0x17101b=angular[_0x2926a0('0x20a')](_0x47a3a6[_0x2926a0('0xf4c')]);return _0x47a3a6[_0x2926a0('0xf4c')]=[],_0x17101b;}function _0x49e837(_0xad1a0){var _0x15713a=_0x9bc964,_0x35710e=_0x2b397c[_0x15713a('0x281e')]()['title'](_0x15713a('0x8e7'))[_0x15713a('0x102e')](_0x15713a('0x389')+_0x47a3a6['selectedFaxAccountInteractions'][_0x15713a('0x2587')]+'\x20selected'+_0x15713a('0x210d'))[_0x15713a('0x5b5')](_0x15713a('0x1d8c'))[_0x15713a('0x116d')](_0xad1a0)['ok']('OK')['cancel'](_0x15713a('0x2410'));_0x2b397c[_0x15713a('0x1e6d')](_0x35710e)['then'](function(){var _0x42b252=_0x15713a;_0x47a3a6[_0x42b252('0xf4c')][_0x42b252('0x15b5')](function(_0xfa5255){_0x2910bc(_0xfa5255);}),_0x47a3a6[_0x42b252('0xf4c')]=[];});}function _0x489bae(_0x531420){var _0x20d340=_0x9bc964;_0x531420[_0x20d340('0x1dc')]?(_0x531420[_0x20d340('0x4e0')]=(_0x531420[_0x20d340('0x1dc')][_0x20d340('0x24c1')]||'')+'\x20'+(_0x531420[_0x20d340('0x1dc')][_0x20d340('0x351')]||''),_0x531420[_0x20d340('0x1420')]=_0x531420[_0x20d340('0x1dc')][_0x20d340('0x16c4')]):_0x531420[_0x20d340('0x4e0')]=_0x3f36af[_0x20d340('0x213f')](_0x20d340('0x22f7'));}function _0x43695b(_0x30b79d){var _0x4b6cc1=_0x9bc964;if(_0x30b79d[_0x4b6cc1('0x1037')])return _0x30b79d[_0x4b6cc1('0x1037')]===_0x47a3a6[_0x4b6cc1('0x7fc')]['id']?_0x3f36af[_0x4b6cc1('0x213f')](_0x4b6cc1('0x1855')):_0x30b79d[_0x4b6cc1('0x40')][_0x4b6cc1('0x18e5')]+'\x20<'+_0x30b79d[_0x4b6cc1('0x40')][_0x4b6cc1('0x1b0d')]+'>';return _0x3f36af['instant'](_0x4b6cc1('0x1a1c'));}var _0x144a14=!![],_0x263af2=0x1;_0x27179d[_0x9bc964('0x1ccf')](_0x9bc964('0x74c'),function(_0x23f980,_0x3df680){var _0x11024d=_0x9bc964;_0x144a14?_0x261a7(function(){_0x144a14=![];}):(!_0x3df680&&(_0x263af2=_0x47a3a6[_0x11024d('0x582')][_0x11024d('0x41')]),_0x23f980!==_0x3df680&&(_0x47a3a6[_0x11024d('0x582')]['page']=0x1),!_0x23f980&&(_0x47a3a6[_0x11024d('0x582')][_0x11024d('0x41')]=_0x263af2),_0x28e6ed());});}const _0x54f130=_0x476870,_0x198eaf=_0x4fb511['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0x2b1970['$inject']=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$document',_0x1a8446('0xcb3'),_0x1a8446('0x1202'),'setting',_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1f6a'),_0x1a8446('0x1a50')];function _0x2b1970(_0x514070,_0x286e7c,_0x3e4017,_0x2cdc88,_0x955f81,_0x291bb0,_0x2f8330,_0x5554f8,_0x34905c,_0x11914c,_0x51b022,_0x12fd55){var _0x2d80cd=_0x1a8446,_0x42db24=this;_0x42db24['currentUser']=_0x11914c[_0x2d80cd('0xacc')](),_0x42db24[_0x2d80cd('0x1202')]=_0x291bb0,_0x42db24[_0x2d80cd('0x143f')]=_0x2f8330,_0x42db24['passwordPattern']=_0x42db24[_0x2d80cd('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x42db24[_0x2d80cd('0x18cc')]=_0x286e7c[_0x2d80cd('0x1cc2')]()+_0x2d80cd('0x356')+_0x286e7c[_0x2d80cd('0x160c')](),_0x42db24[_0x2d80cd('0x1f6a')]=_0x51b022||_0x514070[_0x2d80cd('0x25cf')][_0x2d80cd('0x1f6a')]||{},_0x42db24['userProfileSection']=_0x12fd55&&_0x12fd55[_0x2d80cd('0xd15')]==0x1?_0x12fd55[_0x2d80cd('0x580')][0x0]:null,_0x42db24[_0x2d80cd('0xada')]=_0x11914c[_0x2d80cd('0xffd')](_0x42db24['userProfileSection']?_0x42db24[_0x2d80cd('0x1a50')]['crudPermissions']:null),_0x42db24['hasModulePermissions']={},_0x42db24['selectedTab']=_0x514070[_0x2d80cd('0x25cf')]['tab']||0x0,_0x42db24[_0x2d80cd('0x7ba')]=_0x4a3146,_0x42db24[_0x2d80cd('0x16a5')]=_0xeb9862,_0x42db24['alert']=_0x34905c[_0x2d80cd('0x3a1')],_0x42db24[_0x2d80cd('0x2660')]=_0x1583a1,_0x42db24['saveFaxAccount']=_0x4fb5f2,_0x11914c[_0x2d80cd('0x26e8')](_0x2d80cd('0x178b'))?_0x5554f8[_0x2d80cd('0x1651')][_0x2d80cd('0x2122')]({'fields':'id,name','sort':_0x2d80cd('0x25d6')})[_0x2d80cd('0x1dc2')][_0x2d80cd('0xaa5')](function(_0x1bad6d){var _0x2f6197=_0x2d80cd;_0x42db24[_0x2f6197('0x1bc2')]=_0x1bad6d[_0x2f6197('0x580')]||[];})[_0x2d80cd('0x253d')](function(_0x1d747a){var _0x560010=_0x2d80cd;_0x34905c[_0x560010('0x187f')]({'title':_0x1d747a['status']?_0x560010('0x16c2')+_0x1d747a[_0x560010('0x2fa')]+_0x560010('0x169e')+_0x1d747a[_0x560010('0x24df')]:_0x560010('0x298'),'msg':_0x1d747a['data']?JSON[_0x560010('0xa48')](_0x1d747a[_0x560010('0x10fd')]):_0x1d747a[_0x560010('0x684')]()});}):_0x5554f8[_0x2d80cd('0x1651')][_0x2d80cd('0x2122')]({'fields':_0x2d80cd('0x17fe'),'sort':_0x2d80cd('0x25d6')})[_0x2d80cd('0x1dc2')][_0x2d80cd('0xaa5')](function(_0x569910){_0x42db24['trunks']=_0x569910['rows']||[];})[_0x2d80cd('0xaa5')](function(){var _0x571370=_0x2d80cd;return _0x5554f8['userProfileSection'][_0x571370('0x2122')]({'userProfileId':_0x42db24[_0x571370('0x7fc')][_0x571370('0x2168')],'sectionId':0x3f3})[_0x571370('0x1dc2')];})['then'](function(_0x11e794){var _0x3d57dc=_0x2d80cd,_0x34f07c=_0x11e794&&_0x11e794[_0x3d57dc('0x580')]?_0x11e794[_0x3d57dc('0x580')][0x0]:null;if(!_0x34f07c){var _0x4db920=[],_0x68ad77=null;_0x42db24['faxAccount']&&(_0x68ad77=_0x51538b()['find'](_0x42db24[_0x3d57dc('0x1bc2')],{'id':Number(_0x42db24[_0x3d57dc('0x1f6a')][_0x3d57dc('0x808')])}));for(var _0x3f35f0=0x0;_0x3f35f0<_0x42db24[_0x3d57dc('0x1bc2')]['length'];_0x3f35f0++){_0x68ad77&&_0x42db24[_0x3d57dc('0x1bc2')][_0x3f35f0]['id']===_0x68ad77['id']&&(_0x42db24[_0x3d57dc('0x1bc2')][_0x3f35f0][_0x3d57dc('0x12eb')]=![],_0x4db920['push'](_0x42db24[_0x3d57dc('0x1bc2')][_0x3f35f0]));}_0x42db24[_0x3d57dc('0x1bc2')]=_0x4db920;}else{if(!_0x34f07c['autoAssociation'])return _0x5554f8[_0x3d57dc('0x249a')][_0x3d57dc('0x2122')]({'sectionId':_0x34f07c['id']})[_0x3d57dc('0x1dc2')][_0x3d57dc('0xaa5')](function(_0x53351e){var _0x4e1c0d=_0x3d57dc,_0x4e9294=_0x51538b()[_0x4e1c0d('0x1246')](_0x53351e[_0x4e1c0d('0x580')],function(_0xbc1878){var _0x49e43a=_0x4e1c0d;return _0x51538b()[_0x49e43a('0xe9e')](_0x42db24['trunks'],{'id':_0xbc1878[_0x49e43a('0xbcd')]});}),_0xc24d93=null;_0x42db24[_0x4e1c0d('0x1f6a')]&&(_0xc24d93=_0x51538b()[_0x4e1c0d('0xe9e')](_0x42db24[_0x4e1c0d('0x1bc2')],{'id':Number(_0x42db24[_0x4e1c0d('0x1f6a')]['TrunkId'])}));if(_0xc24d93&&!_0x51538b()[_0x4e1c0d('0x2c2')](_0x4e9294,['id',_0xc24d93['id']])){var _0x340718=_0x51538b()[_0x4e1c0d('0xe9e')](_0x42db24[_0x4e1c0d('0x1bc2')],{'id':_0xc24d93['id']});_0x340718[_0x4e1c0d('0x12eb')]=![],_0x4e9294['push'](_0x340718);}_0x42db24[_0x4e1c0d('0x1bc2')]=_0x4e9294;});}})['catch'](function(_0x20a23d){var _0x174ef1=_0x2d80cd;_0x34905c[_0x174ef1('0x187f')]({'title':_0x20a23d[_0x174ef1('0x2fa')]?_0x174ef1('0x16c2')+_0x20a23d[_0x174ef1('0x2fa')]+_0x174ef1('0x169e')+_0x20a23d['statusText']:'SYSTEM:GETtrunks','msg':_0x20a23d[_0x174ef1('0x10fd')]?JSON[_0x174ef1('0xa48')](_0x20a23d[_0x174ef1('0x10fd')]):_0x20a23d[_0x174ef1('0x684')]()});}),_0x11914c[_0x2d80cd('0x26e8')]('admin')?_0x5554f8['cmList'][_0x2d80cd('0x2122')]({'fields':_0x2d80cd('0x17fe'),'sort':'name'})[_0x2d80cd('0x1dc2')]['then'](function(_0x2f12fd){var _0xaaa51b=_0x2d80cd;_0x42db24[_0xaaa51b('0x1126')]=_0x2f12fd[_0xaaa51b('0x580')]||[];})[_0x2d80cd('0x253d')](function(_0xe90d92){var _0x5c8b55=_0x2d80cd;_0x34905c[_0x5c8b55('0x187f')]({'title':_0xe90d92[_0x5c8b55('0x2fa')]?'API:'+_0xe90d92[_0x5c8b55('0x2fa')]+_0x5c8b55('0x169e')+_0xe90d92[_0x5c8b55('0x24df')]:_0x5c8b55('0x1adf'),'msg':_0xe90d92[_0x5c8b55('0x10fd')]?JSON['stringify'](_0xe90d92[_0x5c8b55('0x10fd')]):_0xe90d92[_0x5c8b55('0x684')]()});}):_0x5554f8[_0x2d80cd('0x26b4')]['get']({'fields':'id,name','sort':_0x2d80cd('0x25d6')})['$promise'][_0x2d80cd('0xaa5')](function(_0x54831a){var _0x4860b6=_0x2d80cd;_0x42db24[_0x4860b6('0x1126')]=_0x54831a[_0x4860b6('0x580')]||[];})[_0x2d80cd('0xaa5')](function(){var _0x5901f4=_0x2d80cd;return _0x5554f8[_0x5901f4('0x1a50')][_0x5901f4('0x2122')]({'userProfileId':_0x42db24[_0x5901f4('0x7fc')]['userProfileId'],'sectionId':0x12d})[_0x5901f4('0x1dc2')];})['then'](function(_0x570987){var _0x3d5ee4=_0x2d80cd,_0x68a339=_0x570987&&_0x570987[_0x3d5ee4('0x580')]?_0x570987[_0x3d5ee4('0x580')][0x0]:null;if(!_0x68a339){var _0x293ebf=[],_0x4ed6a6=null;_0x42db24[_0x3d5ee4('0x1f6a')]&&(_0x4ed6a6=_0x51538b()[_0x3d5ee4('0xe9e')](_0x42db24[_0x3d5ee4('0x1126')],{'id':Number(_0x42db24['faxAccount'][_0x3d5ee4('0xee0')])}));for(var _0x2606b9=0x0;_0x2606b9<_0x42db24[_0x3d5ee4('0x1126')][_0x3d5ee4('0x2587')];_0x2606b9++){_0x4ed6a6&&_0x42db24[_0x3d5ee4('0x1126')][_0x2606b9]['id']===_0x4ed6a6['id']&&(_0x42db24[_0x3d5ee4('0x1126')][_0x2606b9]['canSelect']=![],_0x293ebf['push'](_0x42db24[_0x3d5ee4('0x1126')][_0x2606b9]));}_0x42db24['lists']=_0x293ebf;}else{if(!_0x68a339['autoAssociation'])return _0x5554f8[_0x3d5ee4('0x249a')][_0x3d5ee4('0x2122')]({'sectionId':_0x68a339['id']})[_0x3d5ee4('0x1dc2')]['then'](function(_0x396c37){var _0x2dd9e2=_0x3d5ee4,_0x27d30f=_0x51538b()['map'](_0x396c37['rows'],function(_0x49c7f7){var _0x594cbc=a0_0x1149;return _0x51538b()[_0x594cbc('0xe9e')](_0x42db24[_0x594cbc('0x1126')],{'id':_0x49c7f7[_0x594cbc('0xbcd')]});}),_0x45ad89=null;_0x42db24['faxAccount']&&(_0x45ad89=_0x51538b()[_0x2dd9e2('0xe9e')](_0x42db24['lists'],{'id':Number(_0x42db24[_0x2dd9e2('0x1f6a')]['ListId'])}));if(_0x45ad89&&!_0x51538b()[_0x2dd9e2('0x2c2')](_0x27d30f,['id',_0x45ad89['id']])){var _0x2795a1=_0x51538b()[_0x2dd9e2('0xe9e')](_0x42db24[_0x2dd9e2('0x1126')],{'id':_0x45ad89['id']});_0x2795a1['canSelect']=![],_0x27d30f['push'](_0x2795a1);}_0x42db24[_0x2dd9e2('0x1126')]=_0x27d30f;});}})[_0x2d80cd('0x253d')](function(_0x183248){var _0x1ba742=_0x2d80cd;_0x34905c[_0x1ba742('0x187f')]({'title':_0x183248[_0x1ba742('0x2fa')]?_0x1ba742('0x16c2')+_0x183248[_0x1ba742('0x2fa')]+'\x20-\x20'+_0x183248[_0x1ba742('0x24df')]:_0x1ba742('0x177f'),'msg':_0x183248[_0x1ba742('0x10fd')]?JSON['stringify'](_0x183248[_0x1ba742('0x10fd')]):_0x183248[_0x1ba742('0x684')]()});}),_0x11914c[_0x2d80cd('0x26e8')]('admin')?_0x5554f8[_0x2d80cd('0x167c')]['get']({'fields':_0x2d80cd('0xb22'),'sort':_0x2d80cd('0x25d6'),'nolimit':_0x2d80cd('0x1c5c')})[_0x2d80cd('0x1dc2')][_0x2d80cd('0xaa5')](function(_0x5d7db4){var _0x19aef9=_0x2d80cd;_0x42db24['pauses']=_0x5d7db4[_0x19aef9('0x580')]||[];})[_0x2d80cd('0x253d')](function(_0x9c484e){var _0x2dd0bc=_0x2d80cd;_0x34905c[_0x2dd0bc('0x187f')]({'title':_0x9c484e[_0x2dd0bc('0x2fa')]?_0x2dd0bc('0x16c2')+_0x9c484e[_0x2dd0bc('0x2fa')]+'\x20-\x20'+_0x9c484e[_0x2dd0bc('0x24df')]:_0x2dd0bc('0xc8'),'msg':_0x9c484e[_0x2dd0bc('0x10fd')]?JSON[_0x2dd0bc('0xa48')](_0x9c484e['data']):_0x9c484e[_0x2dd0bc('0x684')]()});}):_0x5554f8['pause'][_0x2d80cd('0x2122')]({'fields':'name,id','sort':'name','nolimit':'true'})['$promise'][_0x2d80cd('0xaa5')](function(_0x1d128e){var _0x28c265=_0x2d80cd;_0x42db24['pauses']=_0x1d128e[_0x28c265('0x580')]||[];})['then'](function(){var _0x224073=_0x2d80cd;return _0x5554f8['userProfileSection'][_0x224073('0x2122')]({'userProfileId':_0x42db24[_0x224073('0x7fc')][_0x224073('0x2168')],'sectionId':0x3ed})[_0x224073('0x1dc2')];})[_0x2d80cd('0xaa5')](function(_0x32d979){var _0x24a18a=_0x2d80cd,_0x18a0f4=_0x32d979&&_0x32d979['rows']?_0x32d979[_0x24a18a('0x580')][0x0]:null;if(!_0x18a0f4)_0x42db24[_0x24a18a('0x2457')]=[];else{if(!_0x18a0f4[_0x24a18a('0x26cc')])return _0x5554f8['userProfileResource']['get']({'sectionId':_0x18a0f4['id']})[_0x24a18a('0x1dc2')]['then'](function(_0x430ea5){var _0x5f008f=_0x24a18a,_0x439ccb=_0x51538b()[_0x5f008f('0x1246')](_0x430ea5[_0x5f008f('0x580')],function(_0x1bfd87){var _0x51e81d=_0x5f008f;return _0x51538b()[_0x51e81d('0xe9e')](_0x42db24[_0x51e81d('0x2457')],{'id':_0x1bfd87[_0x51e81d('0xbcd')]});});_0x42db24['pauses'][_0x5f008f('0x15b5')](function(_0x223c20){var _0x11e6fe=_0x5f008f;!_0x51538b()[_0x11e6fe('0x2c2')](_0x439ccb,['id',_0x223c20['id']])&&(_0x223c20[_0x11e6fe('0x12eb')]=![]),_0x439ccb[_0x11e6fe('0x1599')](_0x223c20);}),_0x42db24[_0x5f008f('0x2457')]=_0x439ccb;});}})['catch'](function(_0x4f5ead){var _0x1f4b49=_0x2d80cd;_0x34905c['error']({'title':_0x4f5ead['status']?'API:'+_0x4f5ead[_0x1f4b49('0x2fa')]+_0x1f4b49('0x169e')+_0x4f5ead[_0x1f4b49('0x24df')]:'SYSTEM:GETpauses','msg':_0x4f5ead['data']?JSON[_0x1f4b49('0xa48')](_0x4f5ead['data']):_0x4f5ead['toString']()});});function _0x4a3146(){var _0x561696=_0x2d80cd;if(_0x11914c[_0x561696('0x26e8')](_0x561696('0x178b')))_0x514070['go'](_0x561696('0x2171'),{});else return _0x5554f8['userProfileSection'][_0x561696('0x2122')]({'userProfileId':_0x11914c[_0x561696('0xacc')]()[_0x561696('0x2168')],'sectionId':0x38e})[_0x561696('0x1dc2')]['then'](function(_0x24b2cd){var _0x31af10=_0x561696,_0x931328=_0x24b2cd&&_0x24b2cd[_0x31af10('0x580')]?_0x24b2cd[_0x31af10('0x580')][0x0]:null;_0x931328&&_0x931328[_0x31af10('0xbd3')]?_0x514070['go']('app.fax.realtime.accounts',{}):_0x34905c[_0x31af10('0x3a1')]({'title':_0x955f81[_0x31af10('0x213f')](_0x31af10('0x1aab')),'msg':_0x955f81[_0x31af10('0x213f')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x561696('0x253d')](function(_0x3608d6){var _0x35930a=_0x561696;_0x34905c[_0x35930a('0x187f')]({'title':_0x3608d6['status']?_0x35930a('0x16c2')+_0x3608d6['status']+_0x35930a('0x169e')+_0x3608d6[_0x35930a('0x24df')]:_0x35930a('0x21d5'),'msg':_0x3608d6[_0x35930a('0x2fa')]?JSON[_0x35930a('0xa48')](_0x3608d6['data']):_0x3608d6['toString']()});});}function _0xeb9862(_0xc205e1,_0x280cb1){var _0x5e94f8=_0x2d80cd;_0x3e4017['show']({'controller':_0x5e94f8('0x216'),'controllerAs':'vm','templateUrl':_0x198eaf,'parent':angular[_0x5e94f8('0x1aa8')](_0x2cdc88[_0x5e94f8('0x54c')]),'targetEvent':_0x280cb1,'clickOutsideToClose':!![],'locals':{'faxAccount':_0xc205e1,'faxAccounts':_0x42db24['faxAccounts']?_0x42db24['faxAccounts'][_0x5e94f8('0x580')]:[],'crudPermissions':_0x42db24[_0x5e94f8('0xada')],'realtime':![]}});}function _0x1583a1(){var _0x335990=_0x2d80cd;_0x514070['go']('app.fax.faxAccounts',{},{'reload':_0x335990('0x702')});}function _0x4fb5f2(){var _0x5f5d64=_0x2d80cd;_0x5554f8[_0x5f5d64('0x1f6a')][_0x5f5d64('0x25bf')](_0x42db24[_0x5f5d64('0x1f6a')])[_0x5f5d64('0x1dc2')]['then'](function(){var _0x37830a=_0x5f5d64;_0x34905c['success']({'title':'FaxAccount\x20updated!','msg':_0x42db24[_0x37830a('0x1f6a')][_0x37830a('0x25d6')]?_0x42db24[_0x37830a('0x1f6a')]['name']+_0x37830a('0x1734'):''});})[_0x5f5d64('0x253d')](function(_0x4b9600){var _0x469f91=_0x5f5d64;_0x34905c[_0x469f91('0x187f')]({'title':_0x4b9600[_0x469f91('0x2fa')]?_0x469f91('0x16c2')+_0x4b9600[_0x469f91('0x2fa')]+_0x469f91('0x169e')+_0x4b9600['statusText']:'SYSTEM:GETfaxAccount','msg':_0x4b9600['data']?JSON[_0x469f91('0xa48')](_0x4b9600[_0x469f91('0x10fd')]):_0x4b9600[_0x469f91('0x684')]()});});}}const _0x3756f0=_0x2b1970,_0x5b8324=_0x4fb511['p']+_0x1a8446('0x1294');_0x77204b[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document','$timeout',_0x1a8446('0xcb3'),'faxAccounts',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x1202'),'setting'];function _0x77204b(_0x2e3e34,_0x311245,_0x4c4de6,_0x1e19d0,_0x116d6a,_0x373e09,_0x50330f,_0x2583bc,_0x477206,_0x17f862,_0x48cfda,_0x2485b3,_0x4c590d,_0x4fbffa,_0x179155,_0x385f09,_0x373323){var _0x4758f0=_0x1a8446,_0x2a1346=this;_0x2a1346[_0x4758f0('0x1202')]=_0x385f09,_0x2a1346['setting']=_0x373323,_0x2a1346[_0x4758f0('0x7fc')]=_0x179155['getCurrentUser'](),_0x2a1346[_0x4758f0('0xf2c')]=_0x477206||{'count':0x0,'rows':[]},_0x2a1346[_0x4758f0('0x1e97')]=_0x17f862,_0x2a1346['userProfileSection']=_0x48cfda&&_0x48cfda['count']==0x1?_0x48cfda[_0x4758f0('0x580')][0x0]:null,_0x2a1346[_0x4758f0('0xada')]=_0x179155[_0x4758f0('0xffd')](_0x2a1346[_0x4758f0('0x1a50')]?_0x2a1346[_0x4758f0('0x1a50')][_0x4758f0('0xada')]:null),_0x2a1346[_0x4758f0('0x12b6')]=_0x4758f0('0xf2c'),_0x2a1346[_0x4758f0('0x164')]='',_0x2a1346[_0x4758f0('0x8cc')]=null,_0x2a1346[_0x4758f0('0xd51')]=[],_0x2a1346[_0x4758f0('0x582')]={'fields':_0x4758f0('0x853'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2a1346[_0x4758f0('0x3a0')]=_0x51538b()[_0x4758f0('0x184a')]([{'option':_0x4758f0('0x98d'),'value':'\x27yes\x27'},{'option':'no','value':_0x4758f0('0x539')}],function(_0xcc4f41){var _0x135370=_0x4758f0;return _0x51538b()[_0x135370('0x170d')](_0xcc4f41[_0x135370('0x12f4')],new RegExp('\x27','g'),'');}),_0x2a1346['arrayminrate']=_0x51538b()[_0x4758f0('0x184a')]([{'option':_0x4758f0('0xf5e'),'value':_0x4758f0('0x7ee')},{'option':_0x4758f0('0x1398'),'value':_0x4758f0('0x6ec')},{'option':_0x4758f0('0xb31'),'value':_0x4758f0('0xcb4')},{'option':_0x4758f0('0xe4a'),'value':'\x279600\x27'},{'option':_0x4758f0('0x142d'),'value':_0x4758f0('0x1845')},{'option':_0x4758f0('0x67d'),'value':_0x4758f0('0x10cf')}],function(_0xcfd950){var _0x599546=_0x4758f0;return _0x51538b()[_0x599546('0x170d')](_0xcfd950[_0x599546('0x12f4')],new RegExp('\x27','g'),'');}),_0x2a1346[_0x4758f0('0x27b')]=_0x51538b()['keyBy']([{'option':_0x4758f0('0xf5e'),'value':'\x272400\x27'},{'option':_0x4758f0('0x1398'),'value':_0x4758f0('0x6ec')},{'option':_0x4758f0('0xb31'),'value':'\x277200\x27'},{'option':_0x4758f0('0xe4a'),'value':'\x279600\x27'},{'option':_0x4758f0('0x142d'),'value':_0x4758f0('0x1845')},{'option':'14400','value':'\x2714400\x27'}],function(_0x3defeb){var _0x36b73f=_0x4758f0;return _0x51538b()[_0x36b73f('0x170d')](_0x3defeb[_0x36b73f('0x12f4')],new RegExp('\x27','g'),'');}),_0x2a1346[_0x4758f0('0x153')]=_0x51538b()['keyBy']([{'option':_0x4758f0('0x1a48'),'value':_0x4758f0('0x104a')},{'option':_0x4758f0('0x3c2'),'value':_0x4758f0('0x11f1')},{'option':'DADHI','value':_0x4758f0('0x734')},{'option':_0x4758f0('0x1511'),'value':'\x27KHOMP\x27'}],function(_0x26896a){var _0x3419da=_0x4758f0;return _0x51538b()[_0x3419da('0x170d')](_0x26896a[_0x3419da('0x12f4')],new RegExp('\x27','g'),'');}),_0x2a1346[_0x4758f0('0x1927')]=_0x2cc826,_0x2a1346[_0x4758f0('0x2500')]=_0x5d7d9f,_0x2a1346['gotorealtimegoto']=_0xb1c3fe,_0x2a1346[_0x4758f0('0x16a5')]=_0x1e5495,_0x2a1346[_0x4758f0('0x271')]=_0x30419e,_0x2a1346[_0x4758f0('0xe10')]=_0x46bbbd,_0x2a1346[_0x4758f0('0x1a9b')]=_0x41111d,_0x2a1346[_0x4758f0('0x10ae')]=_0x16310d,_0x2a1346[_0x4758f0('0x147c')]=_0x30984d,_0x2a1346[_0x4758f0('0xfcb')]=_0x231eb0,_0x2a1346['deleteSelectedFaxAccounts']=_0x404864,_0x2a1346['deselectFaxAccounts']=_0x360ac1,_0x2a1346['selectAllFaxAccounts']=_0x370d9b,_0x179155['hasRole'](_0x4758f0('0x178b'))?_0x2485b3[_0x4758f0('0x1651')][_0x4758f0('0x2122')]({'fields':'id,name','sort':_0x4758f0('0x25d6')})[_0x4758f0('0x1dc2')][_0x4758f0('0xaa5')](function(_0x5b8dd7){var _0x13a942=_0x4758f0;_0x2a1346['trunks']=_0x5b8dd7[_0x13a942('0x580')]||[];})[_0x4758f0('0x253d')](function(_0x257022){var _0x279a9f=_0x4758f0;_0x4fbffa[_0x279a9f('0x187f')]({'title':_0x257022[_0x279a9f('0x2fa')]?_0x279a9f('0x16c2')+_0x257022['status']+_0x279a9f('0x169e')+_0x257022['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x257022[_0x279a9f('0x10fd')]?JSON[_0x279a9f('0xa48')](_0x257022[_0x279a9f('0x10fd')]):_0x257022['toString']()});}):_0x2485b3['trunk'][_0x4758f0('0x2122')]({'fields':'id,name','sort':_0x4758f0('0x25d6')})[_0x4758f0('0x1dc2')][_0x4758f0('0xaa5')](function(_0x563c68){var _0x195150=_0x4758f0;_0x2a1346[_0x195150('0x1bc2')]=_0x563c68[_0x195150('0x580')]||[];})['then'](function(){var _0x433063=_0x4758f0;return _0x2485b3['userProfileSection'][_0x433063('0x2122')]({'userProfileId':_0x2a1346[_0x433063('0x7fc')]['userProfileId'],'sectionId':0x3f3})['$promise'];})[_0x4758f0('0xaa5')](function(_0x5e03eb){var _0x22c597=_0x4758f0,_0x4ff875=_0x5e03eb&&_0x5e03eb[_0x22c597('0x580')]?_0x5e03eb[_0x22c597('0x580')][0x0]:null;if(!_0x4ff875){var _0x520b9c=[],_0x296db0=[];_0x2a1346['faxAccounts']['rows'][_0x22c597('0x15b5')](function(_0xda7e0f){var _0x2f40ae=_0x22c597,_0x247ecd=_0x51538b()[_0x2f40ae('0xe9e')](_0x2a1346[_0x2f40ae('0x1bc2')],{'id':Number(_0xda7e0f[_0x2f40ae('0x808')])});_0x296db0[_0x2f40ae('0x1599')](_0x247ecd);});for(var _0x9733cd=0x0;_0x9733cd<_0x2a1346['trunks'][_0x22c597('0x2587')];_0x9733cd++){var _0x146f4b=_0x51538b()[_0x22c597('0x2c2')](_0x296db0,{'id':_0x2a1346[_0x22c597('0x1bc2')][_0x9733cd]['id']});_0x146f4b&&(_0x2a1346['trunks'][_0x9733cd][_0x22c597('0x12eb')]=![],_0x520b9c[_0x22c597('0x1599')](_0x2a1346[_0x22c597('0x1bc2')][_0x9733cd]));}_0x2a1346['trunks']=_0x520b9c;}else{if(!_0x4ff875[_0x22c597('0x26cc')])return _0x2485b3[_0x22c597('0x249a')][_0x22c597('0x2122')]({'sectionId':_0x4ff875['id']})['$promise'][_0x22c597('0xaa5')](function(_0x195291){var _0x45ba5e=_0x22c597,_0x49354b=_0x51538b()[_0x45ba5e('0x1246')](_0x195291[_0x45ba5e('0x580')],function(_0x42b10a){var _0x2faa38=_0x45ba5e;return _0x51538b()[_0x2faa38('0xe9e')](_0x2a1346[_0x2faa38('0x1bc2')],{'id':_0x42b10a[_0x2faa38('0xbcd')]});}),_0x5a94f2=null;_0x5a94f2=[],_0x2a1346[_0x45ba5e('0xf2c')]['rows'][_0x45ba5e('0x15b5')](function(_0x519619){var _0x5edaec=_0x45ba5e,_0x3478b0=_0x51538b()[_0x5edaec('0xe9e')](_0x2a1346[_0x5edaec('0x1bc2')],{'id':Number(_0x519619[_0x5edaec('0x808')])});_0x5a94f2['push'](_0x3478b0);}),!_0x51538b()[_0x45ba5e('0x116b')](_0x5a94f2)&&_0x5a94f2[_0x45ba5e('0x15b5')](function(_0x24c732){var _0x238274=_0x45ba5e;if(!_0x51538b()[_0x238274('0x2c2')](_0x49354b,['id',_0x24c732['id']])){var _0x4d5801=_0x51538b()[_0x238274('0xe9e')](_0x2a1346[_0x238274('0x1bc2')],{'id':_0x24c732['id']});_0x4d5801[_0x238274('0x12eb')]=![],_0x49354b['push'](_0x4d5801);}}),_0x2a1346['trunks']=_0x49354b;});}})[_0x4758f0('0x253d')](function(_0x4364a6){var _0x50774b=_0x4758f0;_0x4fbffa['error']({'title':_0x4364a6[_0x50774b('0x2fa')]?_0x50774b('0x16c2')+_0x4364a6[_0x50774b('0x2fa')]+_0x50774b('0x169e')+_0x4364a6['statusText']:_0x50774b('0x117a'),'msg':_0x4364a6[_0x50774b('0x10fd')]?JSON[_0x50774b('0xa48')](_0x4364a6[_0x50774b('0x10fd')]):_0x4364a6[_0x50774b('0x684')]()});}),_0x179155[_0x4758f0('0x26e8')](_0x4758f0('0x178b'))?_0x2485b3[_0x4758f0('0x26b4')][_0x4758f0('0x2122')]({'fields':_0x4758f0('0x17fe'),'sort':_0x4758f0('0x25d6')})[_0x4758f0('0x1dc2')]['then'](function(_0x1519d6){var _0x3c32a8=_0x4758f0;_0x2a1346[_0x3c32a8('0x1126')]=_0x1519d6[_0x3c32a8('0x580')]||[];})['catch'](function(_0x447308){var _0x2908d0=_0x4758f0;_0x4fbffa['error']({'title':_0x447308[_0x2908d0('0x2fa')]?_0x2908d0('0x16c2')+_0x447308[_0x2908d0('0x2fa')]+_0x2908d0('0x169e')+_0x447308['statusText']:_0x2908d0('0x1adf'),'msg':_0x447308[_0x2908d0('0x10fd')]?JSON['stringify'](_0x447308[_0x2908d0('0x10fd')]):_0x447308[_0x2908d0('0x684')]()});}):_0x2485b3[_0x4758f0('0x26b4')][_0x4758f0('0x2122')]({'fields':_0x4758f0('0x17fe'),'sort':_0x4758f0('0x25d6')})[_0x4758f0('0x1dc2')]['then'](function(_0x47499f){var _0x105341=_0x4758f0;_0x2a1346[_0x105341('0x1126')]=_0x47499f['rows']||[];})[_0x4758f0('0xaa5')](function(){var _0x2ce381=_0x4758f0;return _0x2485b3[_0x2ce381('0x1a50')][_0x2ce381('0x2122')]({'userProfileId':_0x2a1346[_0x2ce381('0x7fc')]['userProfileId'],'sectionId':0x12d})[_0x2ce381('0x1dc2')];})[_0x4758f0('0xaa5')](function(_0x128c15){var _0x44d309=_0x4758f0,_0x38275f=_0x128c15&&_0x128c15[_0x44d309('0x580')]?_0x128c15[_0x44d309('0x580')][0x0]:null;if(!_0x38275f){var _0x212bd5=[],_0x79cbfa=null;_0x2a1346[_0x44d309('0x1f6a')]&&(_0x79cbfa=_0x51538b()['find'](_0x2a1346[_0x44d309('0x1126')],{'id':Number(_0x2a1346[_0x44d309('0x1f6a')][_0x44d309('0xee0')])}));for(var _0x5bf823=0x0;_0x5bf823<_0x2a1346['lists'][_0x44d309('0x2587')];_0x5bf823++){_0x79cbfa&&_0x2a1346[_0x44d309('0x1126')][_0x5bf823]['id']===_0x79cbfa['id']&&(_0x2a1346[_0x44d309('0x1126')][_0x5bf823]['canSelect']=![],_0x212bd5[_0x44d309('0x1599')](_0x2a1346[_0x44d309('0x1126')][_0x5bf823]));}_0x2a1346[_0x44d309('0x1126')]=_0x212bd5;}else{if(!_0x38275f[_0x44d309('0x26cc')])return _0x2485b3['userProfileResource']['get']({'sectionId':_0x38275f['id']})[_0x44d309('0x1dc2')]['then'](function(_0x2b1a05){var _0x20ab4f=_0x44d309,_0x445dd9=_0x51538b()[_0x20ab4f('0x1246')](_0x2b1a05['rows'],function(_0x31ef6b){var _0x3ad04f=_0x20ab4f;return _0x51538b()['find'](_0x2a1346[_0x3ad04f('0x1126')],{'id':_0x31ef6b['resourceId']});}),_0x2d0ba2=null;_0x2a1346['faxAccount']&&(_0x2d0ba2=_0x51538b()[_0x20ab4f('0xe9e')](_0x2a1346['lists'],{'id':Number(_0x2a1346[_0x20ab4f('0x1f6a')][_0x20ab4f('0xee0')])}));if(_0x2d0ba2&&!_0x51538b()['some'](_0x445dd9,['id',_0x2d0ba2['id']])){var _0x56fcee=_0x51538b()[_0x20ab4f('0xe9e')](_0x2a1346['lists'],{'id':_0x2d0ba2['id']});_0x56fcee[_0x20ab4f('0x12eb')]=![],_0x445dd9[_0x20ab4f('0x1599')](_0x56fcee);}_0x2a1346[_0x20ab4f('0x1126')]=_0x445dd9;});}})['catch'](function(_0xf42a9f){var _0x3b8bc3=_0x4758f0;_0x4fbffa[_0x3b8bc3('0x187f')]({'title':_0xf42a9f['status']?_0x3b8bc3('0x16c2')+_0xf42a9f['status']+_0x3b8bc3('0x169e')+_0xf42a9f[_0x3b8bc3('0x24df')]:_0x3b8bc3('0x177f'),'msg':_0xf42a9f[_0x3b8bc3('0x10fd')]?JSON[_0x3b8bc3('0xa48')](_0xf42a9f[_0x3b8bc3('0x10fd')]):_0xf42a9f['toString']()});});function _0x2cc826(_0x51a91c){var _0x47a888=_0x4758f0;_0x4c4de6['go'](_0x47a888('0xfa5'),{'id':_0x51a91c['id'],'faxAccount':_0x51a91c,'crudPermissions':_0x2a1346[_0x47a888('0xada')]});}function _0x5d7d9f(_0x332e30){var _0x10e12d=_0x4758f0;_0x4c4de6['go'](_0x10e12d('0xfa5'),{'id':_0x332e30['id'],'tab':0x5});}function _0xb1c3fe(){var _0x36bbba=_0x4758f0;if(_0x179155[_0x36bbba('0x26e8')](_0x36bbba('0x178b')))_0x4c4de6['go']('app.fax.realtime.accounts',{});else return _0x2485b3[_0x36bbba('0x1a50')][_0x36bbba('0x2122')]({'userProfileId':_0x179155['getCurrentUser']()[_0x36bbba('0x2168')],'sectionId':0x38e})[_0x36bbba('0x1dc2')]['then'](function(_0x4bdbf4){var _0x5aab2a=_0x36bbba,_0x370380=_0x4bdbf4&&_0x4bdbf4[_0x5aab2a('0x580')]?_0x4bdbf4[_0x5aab2a('0x580')][0x0]:null;_0x370380&&_0x370380['enabled']?_0x4c4de6['go'](_0x5aab2a('0x2171'),{}):_0x4fbffa['info']({'title':_0x2583bc[_0x5aab2a('0x213f')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x2583bc['instant'](_0x5aab2a('0x251c'))});})['catch'](function(_0x41e7a5){var _0x6cd25c=_0x36bbba;_0x4fbffa['error']({'title':_0x41e7a5[_0x6cd25c('0x2fa')]?'API:'+_0x41e7a5[_0x6cd25c('0x2fa')]+'\x20-\x20'+_0x41e7a5['statusText']:_0x6cd25c('0x21d5'),'msg':_0x41e7a5[_0x6cd25c('0x2fa')]?JSON[_0x6cd25c('0xa48')](_0x41e7a5[_0x6cd25c('0x10fd')]):_0x41e7a5[_0x6cd25c('0x684')]()});});}function _0x1e5495(_0x1cada0,_0x32ab28){var _0x283731=_0x4758f0;_0x116d6a['show']({'controller':_0x283731('0x216'),'controllerAs':'vm','templateUrl':_0x198eaf,'parent':angular[_0x283731('0x1aa8')](_0x373e09[_0x283731('0x54c')]),'targetEvent':_0x32ab28,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x1cada0,'faxAccounts':_0x2a1346[_0x283731('0xf2c')]?_0x2a1346[_0x283731('0xf2c')][_0x283731('0x580')]:[],'crudPermissions':_0x2a1346['crudPermissions'],'realtime':![]}});}function _0x30419e(_0xd72351,_0x41d8ad){var _0x3a4a26=_0x4758f0,_0x33f641=_0x116d6a['confirm']()[_0x3a4a26('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x3a4a26('0x196a')](_0x3a4a26('0x1f6a'))+'?')[_0x3a4a26('0x102e')](_0x3a4a26('0x389')+(_0xd72351['name']||'faxAccount')+_0x3a4a26('0x697')+_0x3a4a26('0x210d'))[_0x3a4a26('0x5b5')]('delete\x20faxAccount')['targetEvent'](_0x41d8ad)['ok']('OK')[_0x3a4a26('0x2030')]('CANCEL');_0x116d6a[_0x3a4a26('0x1e6d')](_0x33f641)[_0x3a4a26('0xaa5')](function(){_0x30984d(_0xd72351);},function(){var _0x5be41c=_0x3a4a26;console['log'](_0x5be41c('0x2410'));});}var _0x5f4a66=!![],_0x4456f5=0x1;_0x2e3e34['$watch']('vm.query.filter',function(_0x22c48a,_0x401b90){var _0x21b86b=_0x4758f0;_0x5f4a66?_0x50330f(function(){_0x5f4a66=![];}):(!_0x401b90&&(_0x4456f5=_0x2a1346[_0x21b86b('0x582')][_0x21b86b('0x41')]),_0x22c48a!==_0x401b90&&(_0x2a1346[_0x21b86b('0x582')]['page']=0x1),!_0x22c48a&&(_0x2a1346[_0x21b86b('0x582')]['page']=_0x4456f5),_0x2a1346[_0x21b86b('0x1a9b')]());});function _0x46bbbd(_0x447f65){var _0x380ac0=_0x4758f0;_0x2a1346[_0x380ac0('0xf2c')]=_0x447f65||{'count':0x0,'rows':[]};}function _0x41111d(){var _0x34ea65=_0x4758f0;_0x2a1346[_0x34ea65('0x582')][_0x34ea65('0x8b1')]=(_0x2a1346[_0x34ea65('0x582')][_0x34ea65('0x41')]-0x1)*_0x2a1346[_0x34ea65('0x582')]['limit'],_0x179155[_0x34ea65('0x26e8')](_0x34ea65('0x178b'))?_0x2a1346[_0x34ea65('0x159a')]=_0x2485b3['faxAccount'][_0x34ea65('0x2122')](_0x2a1346[_0x34ea65('0x582')],_0x46bbbd)[_0x34ea65('0x1dc2')]:(_0x2a1346[_0x34ea65('0x582')]['id']=_0x2a1346[_0x34ea65('0x1e97')]['id'],_0x2a1346[_0x34ea65('0x582')][_0x34ea65('0x224d')]=_0x34ea65('0xd5'),_0x2a1346[_0x34ea65('0x159a')]=_0x2485b3[_0x34ea65('0x1e97')][_0x34ea65('0x1cf1')](_0x2a1346[_0x34ea65('0x582')],_0x46bbbd)[_0x34ea65('0x1dc2')]);}function _0x16310d(_0x1799f4,_0xaf8518){var _0x15a440=_0x4758f0;_0x116d6a[_0x15a440('0x1e6d')]({'controller':_0x15a440('0x1011'),'controllerAs':'vm','templateUrl':_0x5b8324,'parent':angular[_0x15a440('0x1aa8')](_0x373e09[_0x15a440('0x54c')]),'targetEvent':_0x1799f4,'clickOutsideToClose':!![],'locals':{'faxAccount':_0xaf8518,'faxAccounts':_0x2a1346[_0x15a440('0xf2c')][_0x15a440('0x580')],'license':_0x2a1346[_0x15a440('0x1202')],'setting':_0x2a1346['setting'],'crudPermissions':_0x2a1346['crudPermissions']}});}function _0x30984d(_0x30b336){var _0x5708b0=_0x4758f0;_0x2485b3[_0x5708b0('0x1f6a')][_0x5708b0('0x926')]({'id':_0x30b336['id']})['$promise'][_0x5708b0('0xaa5')](function(){var _0x3cf804=_0x5708b0;_0x51538b()[_0x3cf804('0xf6d')](_0x2a1346[_0x3cf804('0xf2c')][_0x3cf804('0x580')],{'id':_0x30b336['id']}),_0x2a1346[_0x3cf804('0xf2c')][_0x3cf804('0xd15')]-=0x1,!_0x2a1346[_0x3cf804('0xf2c')][_0x3cf804('0x580')]['length']&&_0x2a1346[_0x3cf804('0x1a9b')](),_0x4fbffa[_0x3cf804('0xe10')]({'title':_0x51538b()[_0x3cf804('0x196a')]('FaxAccount')+_0x3cf804('0x8bb'),'msg':_0x30b336[_0x3cf804('0x25d6')]?_0x30b336[_0x3cf804('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x5708b0('0x253d')](function(_0x219268){var _0x1c4375=_0x5708b0;if(_0x219268[_0x1c4375('0x10fd')]&&_0x219268[_0x1c4375('0x10fd')][_0x1c4375('0x4c6')]&&_0x219268['data'][_0x1c4375('0x4c6')][_0x1c4375('0x2587')]){_0x2a1346[_0x1c4375('0x4c6')]=_0x219268[_0x1c4375('0x10fd')]['errors']||[{'message':_0x219268[_0x1c4375('0x684')](),'type':'SYSTEM:DELETEfaxAccount'}];for(var _0x313bef=0x0;_0x313bef<_0x219268[_0x1c4375('0x10fd')][_0x1c4375('0x4c6')]['length'];_0x313bef++){_0x4fbffa[_0x1c4375('0x187f')]({'title':_0x219268['data'][_0x1c4375('0x4c6')][_0x313bef][_0x1c4375('0x6c8')],'msg':_0x219268[_0x1c4375('0x10fd')][_0x1c4375('0x4c6')][_0x313bef]['message']});}}else _0x4fbffa['error']({'title':_0x219268[_0x1c4375('0x2fa')]?_0x1c4375('0x16c2')+_0x219268['status']+_0x1c4375('0x169e')+_0x219268[_0x1c4375('0x24df')]:_0x1c4375('0x1eab'),'msg':_0x219268[_0x1c4375('0x10fd')]?JSON[_0x1c4375('0xa48')](_0x219268['data'][_0x1c4375('0x1402')]):_0x219268[_0x1c4375('0x1402')]||_0x219268['toString']()});});}function _0x231eb0(){var _0x29e19b=_0x4758f0,_0x338f1a=angular[_0x29e19b('0x20a')](_0x2a1346['selectedFaxAccounts']);return _0x2a1346['selectedFaxAccounts']=[],_0x338f1a;}function _0x404864(_0x19d263){var _0x4e6cf1=_0x4758f0,_0x400b62=_0x116d6a['confirm']()['title'](_0x4e6cf1('0x1c33'))['htmlContent'](_0x4e6cf1('0x389')+_0x2a1346[_0x4e6cf1('0xd51')]['length']+'\x20selected'+_0x4e6cf1('0x210d'))[_0x4e6cf1('0x5b5')]('delete\x20FaxAccounts')[_0x4e6cf1('0x116d')](_0x19d263)['ok']('OK')['cancel']('CANCEL');_0x116d6a[_0x4e6cf1('0x1e6d')](_0x400b62)[_0x4e6cf1('0xaa5')](function(){var _0x5e09bb=_0x4e6cf1;_0x2a1346[_0x5e09bb('0xd51')][_0x5e09bb('0x15b5')](function(_0x5932b8){_0x30984d(_0x5932b8);}),_0x2a1346[_0x5e09bb('0xd51')]=[];});}function _0x360ac1(){_0x2a1346['selectedFaxAccounts']=[];}function _0x370d9b(){var _0x37c752=_0x4758f0;_0x2a1346[_0x37c752('0xd51')]=_0x2a1346['faxAccounts'][_0x37c752('0x580')];}}const _0x532172=_0x77204b;_0x8d5fdf[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0xc6'),_0x1a8446('0xaf9'),'api',_0x1a8446('0x1dfd'),'license','setting','crudPermissions'];function _0x8d5fdf(_0x1d5f10,_0x3bc362,_0x44568d,_0x39afb1,_0x59d133,_0x3aa13e,_0x1b3acc,_0x5a72a2,_0x22299d,_0x2ce274,_0x3c38eb,_0xe2daef,_0x21f226,_0x5ae65c){var _0x546bc2=_0x1a8446,_0x3089a7=this;_0x3089a7[_0x546bc2('0x7fc')]=_0x3c38eb[_0x546bc2('0xacc')](),_0x3089a7['errors']=[],_0x3089a7['setting']=_0x21f226,_0x3089a7[_0x546bc2('0x1202')]=_0xe2daef,_0x3089a7[_0x546bc2('0xada')]=_0x5ae65c,_0x3089a7[_0x546bc2('0x9f0')]={},_0x3089a7[_0x546bc2('0x1d53')]=_0x3089a7['setting']&&_0x3089a7['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3089a7['title']='FAX.EDIT_FAXQUEUE',_0x3089a7[_0x546bc2('0xaf9')]=angular['copy'](_0x22299d),_0x3089a7[_0x546bc2('0xc6')]=_0x5a72a2,_0x3089a7[_0x546bc2('0x1cf8')]=![];!_0x3089a7[_0x546bc2('0xaf9')]&&(_0x3089a7[_0x546bc2('0xaf9')]={'strategy':_0x546bc2('0x258'),'timeout':0xa},_0x3089a7[_0x546bc2('0x110a')]='FAX.NEW_FAXQUEUE',_0x3089a7[_0x546bc2('0x1cf8')]=!![]);_0x3089a7[_0x546bc2('0x197f')]=_0x5ab51e,_0x3089a7[_0x546bc2('0x597')]=_0x432eb0,_0x3089a7['deleteFaxQueue']=_0x1bbfaa,_0x3089a7[_0x546bc2('0xc09')]=_0x14310f,_0x3089a7['closeDialog']=_0x2dd040;function _0x5ab51e(){var _0x2a0611=_0x546bc2;_0x3089a7[_0x2a0611('0x4c6')]=[],_0x2ce274[_0x2a0611('0xaf9')]['save'](_0x3089a7[_0x2a0611('0xaf9')])[_0x2a0611('0x1dc2')][_0x2a0611('0xaa5')](function(_0x4bf1f1){var _0x24c570=_0x2a0611;_0x3089a7[_0x24c570('0xc6')][_0x24c570('0x6ee')](_0x4bf1f1[_0x24c570('0x256a')]()),_0x1b3acc[_0x24c570('0xe10')]({'title':_0x24c570('0x7a8'),'msg':_0x3089a7[_0x24c570('0xaf9')][_0x24c570('0x25d6')]?_0x3089a7[_0x24c570('0xaf9')]['name']+_0x24c570('0xdca'):''}),_0x2dd040(_0x4bf1f1);})[_0x2a0611('0x253d')](function(_0x17396d){var _0x221523=_0x2a0611;if(_0x17396d[_0x221523('0x10fd')]&&_0x17396d[_0x221523('0x10fd')]['errors']&&_0x17396d[_0x221523('0x10fd')][_0x221523('0x4c6')]['length']){_0x3089a7[_0x221523('0x4c6')]=_0x17396d['data']['errors']||[{'message':_0x17396d['toString'](),'type':_0x221523('0xcd')}];for(var _0x2a03b6=0x0;_0x2a03b6<_0x17396d[_0x221523('0x10fd')][_0x221523('0x4c6')][_0x221523('0x2587')];_0x2a03b6+=0x1){_0x1b3acc[_0x221523('0x187f')]({'title':_0x17396d['data'][_0x221523('0x4c6')][_0x2a03b6]['type'],'msg':_0x17396d['data'][_0x221523('0x4c6')][_0x2a03b6][_0x221523('0x1402')]});}}else _0x1b3acc['error']({'title':_0x17396d['status']?_0x221523('0x16c2')+_0x17396d['status']+_0x221523('0x169e')+_0x17396d['statusText']:_0x221523('0xcd'),'msg':_0x17396d[_0x221523('0x10fd')]?JSON['stringify'](_0x17396d['data']['message']):_0x17396d[_0x221523('0x684')]()});});}function _0x432eb0(){var _0x211c84=_0x546bc2;_0x3089a7[_0x211c84('0x4c6')]=[],_0x2ce274[_0x211c84('0xaf9')][_0x211c84('0x264e')]({'id':_0x3089a7[_0x211c84('0xaf9')]['id']},_0x3089a7['faxQueue'])[_0x211c84('0x1dc2')][_0x211c84('0xaa5')](function(_0x27075b){var _0x1686c3=_0x211c84,_0xe54cdd=_0x51538b()[_0x1686c3('0xe9e')](_0x3089a7[_0x1686c3('0xc6')],{'id':_0x27075b['id']});_0xe54cdd&&_0x51538b()[_0x1686c3('0x283c')](_0xe54cdd,_0x51538b()[_0x1686c3('0x104e')](_0x27075b['toJSON'](),_0x51538b()['keys'](_0xe54cdd))),_0x1b3acc[_0x1686c3('0xe10')]({'title':_0x1686c3('0x983'),'msg':_0x3089a7['faxQueue']['name']?_0x3089a7[_0x1686c3('0xaf9')][_0x1686c3('0x25d6')]+_0x1686c3('0x20bf'):''}),_0x2dd040(_0x27075b);})[_0x211c84('0x253d')](function(_0x108d87){var _0x5997dd=_0x211c84;if(_0x108d87[_0x5997dd('0x10fd')]&&_0x108d87[_0x5997dd('0x10fd')][_0x5997dd('0x4c6')]&&_0x108d87[_0x5997dd('0x10fd')][_0x5997dd('0x4c6')][_0x5997dd('0x2587')]){_0x3089a7[_0x5997dd('0x4c6')]=_0x108d87[_0x5997dd('0x10fd')]['errors']||[{'message':_0x108d87[_0x5997dd('0x684')](),'type':'api.faxQueue.update'}];for(var _0x8852bf=0x0;_0x8852bf<_0x108d87['data'][_0x5997dd('0x4c6')][_0x5997dd('0x2587')];_0x8852bf++){_0x1b3acc['error']({'title':_0x108d87[_0x5997dd('0x10fd')][_0x5997dd('0x4c6')][_0x8852bf]['type'],'msg':_0x108d87[_0x5997dd('0x10fd')]['errors'][_0x8852bf][_0x5997dd('0x1402')]});}}else _0x1b3acc[_0x5997dd('0x187f')]({'title':_0x108d87['status']?_0x5997dd('0x16c2')+_0x108d87['status']+_0x5997dd('0x169e')+_0x108d87[_0x5997dd('0x24df')]:_0x5997dd('0xa2e'),'msg':_0x108d87[_0x5997dd('0x10fd')]?JSON[_0x5997dd('0xa48')](_0x108d87[_0x5997dd('0x10fd')][_0x5997dd('0x1402')]):_0x108d87[_0x5997dd('0x684')]()});});}function _0x1bbfaa(_0x305e77){var _0x5450b4=_0x546bc2;_0x3089a7[_0x5450b4('0x4c6')]=[];var _0x56dd31=_0x39afb1[_0x5450b4('0x281e')]()['title'](_0x5450b4('0x12a3'))[_0x5450b4('0x15af')](_0x5450b4('0x1d78'))[_0x5450b4('0x5b5')](_0x5450b4('0x24c4'))['ok']('Delete')[_0x5450b4('0x2030')]('Cancel')[_0x5450b4('0x116d')](_0x305e77);_0x39afb1['show'](_0x56dd31)[_0x5450b4('0xaa5')](function(){var _0x221b87=_0x5450b4;_0x2ce274[_0x221b87('0xaf9')][_0x221b87('0x926')]({'id':_0x3089a7[_0x221b87('0xaf9')]['id']})['$promise'][_0x221b87('0xaa5')](function(){var _0x50d463=_0x221b87;_0x51538b()[_0x50d463('0xf6d')](_0x3089a7[_0x50d463('0xc6')],{'id':_0x3089a7[_0x50d463('0xaf9')]['id']}),_0x1b3acc[_0x50d463('0xe10')]({'title':_0x50d463('0x18f3'),'msg':(_0x3089a7[_0x50d463('0xaf9')]['name']||_0x50d463('0xaf9'))+'\x20has\x20been\x20deleted!'}),_0x2dd040(_0x3089a7[_0x50d463('0xaf9')]);})[_0x221b87('0x253d')](function(_0xd47156){var _0x4d2eb0=_0x221b87;if(_0xd47156['data']&&_0xd47156['data']['errors']&&_0xd47156[_0x4d2eb0('0x10fd')][_0x4d2eb0('0x4c6')][_0x4d2eb0('0x2587')]){_0x3089a7[_0x4d2eb0('0x4c6')]=_0xd47156[_0x4d2eb0('0x10fd')]['errors']||[{'message':_0xd47156[_0x4d2eb0('0x684')](),'type':_0x4d2eb0('0x1864')}];for(var _0x484b23=0x0;_0x484b23<_0xd47156[_0x4d2eb0('0x10fd')]['errors']['length'];_0x484b23++){_0x1b3acc[_0x4d2eb0('0x187f')]({'title':_0xd47156['data'][_0x4d2eb0('0x4c6')][_0x484b23][_0x4d2eb0('0x6c8')],'msg':_0xd47156['data']['errors'][_0x484b23][_0x4d2eb0('0x1402')]});}}else _0x1b3acc[_0x4d2eb0('0x187f')]({'title':_0xd47156[_0x4d2eb0('0x2fa')]?_0x4d2eb0('0x16c2')+_0xd47156[_0x4d2eb0('0x2fa')]+_0x4d2eb0('0x169e')+_0xd47156[_0x4d2eb0('0x24df')]:_0x4d2eb0('0x1864'),'msg':_0xd47156[_0x4d2eb0('0x10fd')]?JSON['stringify'](_0xd47156[_0x4d2eb0('0x10fd')][_0x4d2eb0('0x1402')]):_0xd47156[_0x4d2eb0('0x1402')]||_0xd47156[_0x4d2eb0('0x684')]()});});},function(){});}function _0x14310f(_0xcbd040){return _0xcbd040===null?undefined:new Date(_0xcbd040);}function _0x2dd040(_0x5ec15a){var _0x1e6a2f=_0x546bc2;_0x39afb1[_0x1e6a2f('0x1120')](_0x5ec15a);}}const _0xef7f4d=_0x8d5fdf;_0x229ef6[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'api','faxQueue','faxQueues',_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),'Auth','crudPermissions'];function _0x229ef6(_0x4ad671,_0x36cf98,_0x2e6cfd,_0x128e3e,_0x416d9d,_0x549468,_0x43899b,_0x9ed78c,_0x449d39,_0x3f1fe8){var _0x3ffb44=_0x1a8446,_0x33af06=this;_0x33af06[_0x3ffb44('0x7fc')]=_0x449d39[_0x3ffb44('0xacc')](),_0x33af06[_0x3ffb44('0xaf9')]=_0x416d9d,_0x33af06[_0x3ffb44('0xada')]=_0x3f1fe8,_0x33af06['realtime']=_0x43899b,_0x33af06[_0x3ffb44('0x1a30')]=[],_0x33af06[_0x3ffb44('0x11b9')]=[],_0x33af06[_0x3ffb44('0xbf7')]=[],_0x33af06[_0x3ffb44('0x215b')]=[],_0x33af06[_0x3ffb44('0x214a')]=[],_0x33af06['pendingChanges']=![],_0x33af06[_0x3ffb44('0x2318')]=_0x226673,_0x33af06[_0x3ffb44('0x17bb')]=_0x40dc76,_0x33af06[_0x3ffb44('0x2023')]=_0x4e14f6,_0x33af06['dualMultiselectOptions']={'readOnly':!_0x33af06['crudPermissions'][_0x3ffb44('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3ffb44('0x25d6'),'line1':_0x3ffb44('0x18e5'),'line2':[_0x3ffb44('0x25d6'),'internal'],'line3':'','labelAll':_0x9ed78c[_0x3ffb44('0x213f')](_0x3ffb44('0x193b')),'labelSelected':_0x9ed78c[_0x3ffb44('0x213f')](_0x3ffb44('0x1c2a')),'transferCallback':function _0x2d2e93(){var _0x2bf64b=_0x3ffb44,_0x16ae30=_0x51538b()[_0x2bf64b('0x9ef')](_0x33af06[_0x2bf64b('0x214a')],_0x33af06[_0x2bf64b('0xbf7')],'id');_0x33af06[_0x2bf64b('0xc54')]=_0x51538b()[_0x2bf64b('0x116b')](_0x16ae30)?![]:!![];}};function _0x226673(){var _0x48a13c=_0x3ffb44;return _0x449d39[_0x48a13c('0x26e8')](_0x48a13c('0x178b'))?_0x220d3e()[_0x48a13c('0x253d')](function(_0xe8bd40){var _0x541199=_0x48a13c;_0x2e6cfd[_0x541199('0x187f')]({'title':_0xe8bd40[_0x541199('0x2fa')]?_0x541199('0x16c2')+_0xe8bd40[_0x541199('0x2fa')]+_0x541199('0x169e')+_0xe8bd40[_0x541199('0x24df')]:_0x541199('0x14c6'),'msg':_0xe8bd40[_0x541199('0x2fa')]?JSON[_0x541199('0xa48')](_0xe8bd40['data']):_0xe8bd40['toString']()});}):_0x37bb1b()[_0x48a13c('0xaa5')](function(_0x2f26b9){var _0x2b224d=_0x48a13c;return _0x33af06[_0x2b224d('0x224d')]=_0x2f26b9,_0x220d3e();})[_0x48a13c('0x253d')](function(_0x2d7b74){var _0x2ae84c=_0x48a13c;_0x2e6cfd['error']({'title':_0x2d7b74[_0x2ae84c('0x2fa')]?_0x2ae84c('0x16c2')+_0x2d7b74[_0x2ae84c('0x2fa')]+_0x2ae84c('0x169e')+_0x2d7b74[_0x2ae84c('0x24df')]:_0x2ae84c('0x14c6'),'msg':_0x2d7b74['status']?JSON[_0x2ae84c('0xa48')](_0x2d7b74['data']):_0x2d7b74['toString']()});});}function _0x37bb1b(){return _0x36cf98(function(_0x549b6f,_0x39b9e8){var _0x9ca47b=a0_0x1149;_0x128e3e[_0x9ca47b('0x1a50')][_0x9ca47b('0x2122')]({'userProfileId':_0x33af06[_0x9ca47b('0x7fc')][_0x9ca47b('0x2168')],'name':_0x9ca47b('0x91a')})[_0x9ca47b('0x1dc2')]['then'](function(_0x74acc2){var _0x2e5ae3=_0x9ca47b,_0x173e89=_0x74acc2&&_0x74acc2['rows']?_0x74acc2[_0x2e5ae3('0x580')][0x0]:null;_0x549b6f(_0x173e89);})[_0x9ca47b('0x253d')](function(_0x26ec69){_0x39b9e8(_0x26ec69);});});}function _0x220d3e(){return _0x36cf98(function(_0x588df0,_0x391d41){var _0x561b91=a0_0x1149;return _0x249e8a()[_0x561b91('0xaa5')](function(_0x210368){var _0x298754=_0x561b91;return _0x33af06[_0x298754('0x1a30')]=_0x210368[_0x298754('0x580')]?_0x210368['rows']:[],_0x449d39[_0x298754('0x26e8')]('admin')?_0x210368:_0x33af06[_0x298754('0x224d')]?_0x33af06[_0x298754('0x224d')][_0x298754('0x26cc')]?_0x210368:_0x4d9e6c():null;})[_0x561b91('0xaa5')](function(_0x1d6970){var _0x5aa1a9=_0x561b91,_0x4cd71b=_0x1d6970&&_0x1d6970[_0x5aa1a9('0x580')]?_0x1d6970[_0x5aa1a9('0x580')]:[];return _0x33af06[_0x5aa1a9('0x11b9')]=_0x51538b()[_0x5aa1a9('0x1246')](_0x4cd71b,function(_0x553207){var _0x5844cc=_0x5aa1a9;return _0x51538b()['find'](_0x33af06['items'],{'id':_0x449d39[_0x5844cc('0x26e8')](_0x5844cc('0x178b'))||_0x33af06[_0x5844cc('0x224d')][_0x5844cc('0x26cc')]?_0x553207['id']:_0x553207[_0x5844cc('0xbcd')]});}),_0x33af06[_0x5aa1a9('0x215b')]=angular[_0x5aa1a9('0x20a')](_0x33af06[_0x5aa1a9('0x11b9')]),_0x33af06[_0x5aa1a9('0x1a30')][_0x5aa1a9('0x15b5')](function(_0x238407){var _0x15d632=_0x5aa1a9,_0x2b8d60=_0x51538b()[_0x15d632('0xe9e')](_0x33af06['allowedItems'],{'id':_0x238407['id']});_0x449d39['hasRole'](_0x15d632('0x178b'))?_0x238407[_0x15d632('0x145d')]=!![]:_0x238407['isValid']=typeof _0x2b8d60!==_0x15d632('0x1574')?!![]:![];}),_0x59d745();})[_0x561b91('0xaa5')](function(_0x2ff912){var _0x2cf3a7=_0x561b91,_0x1e5b55=_0x2ff912&&_0x2ff912['rows']?_0x2ff912[_0x2cf3a7('0x580')]:[];_0x33af06['selectedItems']=_0x51538b()[_0x2cf3a7('0x1246')](_0x1e5b55,function(_0x25c571){var _0x65a1e4=_0x2cf3a7,_0x49f8a0=_0x51538b()[_0x65a1e4('0xe9e')](_0x33af06[_0x65a1e4('0x1a30')],{'id':_0x25c571['id']});return _0x49f8a0[_0x65a1e4('0x2234')]=_0x25c571[_0x65a1e4('0x35b')]?_0x65a1e4('0x17b0')+_0x25c571[_0x65a1e4('0x35b')]['penalty']:'',_0x49f8a0[_0x65a1e4('0x1b0d')]=typeof _0x25c571['internal']!==_0x65a1e4('0x1574')?'<'+_0x25c571[_0x65a1e4('0x1b0d')]+'>':'',_0x49f8a0;}),_0x33af06[_0x2cf3a7('0x214a')]=angular[_0x2cf3a7('0x20a')](_0x33af06[_0x2cf3a7('0xbf7')]),_0x33af06[_0x2cf3a7('0x1c23')][_0x2cf3a7('0xbf7')]=_0x33af06['selectedItems'],_0x33af06[_0x2cf3a7('0x1c23')][_0x2cf3a7('0x1a30')]=_0x51538b()[_0x2cf3a7('0x1ebb')](_0x33af06[_0x2cf3a7('0x11b9')],_0x33af06[_0x2cf3a7('0x1c23')]['selectedItems'],'id'),_0x588df0();})[_0x561b91('0x253d')](function(_0x533d43){_0x391d41(_0x533d43);});});}function _0x4d9e6c(){return _0x36cf98(function(_0x1eabfa,_0xc8c540){var _0x9f57a8=a0_0x1149;return _0x128e3e[_0x9f57a8('0x249a')]['get']({'sectionId':_0x33af06[_0x9f57a8('0x224d')]['id'],'nolimit':!![]})[_0x9f57a8('0x1dc2')][_0x9f57a8('0xaa5')](function(_0x413214){_0x1eabfa(_0x413214);})[_0x9f57a8('0x253d')](function(_0x4a0699){_0xc8c540(_0x4a0699);});});}function _0x59d745(){return _0x36cf98(function(_0x6cb7ae,_0x3f6828){var _0x254a9c=a0_0x1149;return _0x128e3e[_0x254a9c('0xaf9')][_0x254a9c('0x1483')]({'id':_0x33af06[_0x254a9c('0xaf9')]['id'],'fields':_0x254a9c('0x283f'),'nolimit':!![],'role':_0x254a9c('0xeff')})[_0x254a9c('0x1dc2')]['then'](function(_0x443c21){_0x6cb7ae(_0x443c21);})[_0x254a9c('0x253d')](function(_0x569b17){_0x3f6828(_0x569b17);});});}function _0x249e8a(){return _0x36cf98(function(_0x1bab5c,_0x170ee8){var _0x1f0cee=a0_0x1149;return _0x128e3e[_0x1f0cee('0x272b')][_0x1f0cee('0x2122')]({'fields':_0x1f0cee('0x283f'),'nolimit':!![],'role':_0x1f0cee('0xeff')})[_0x1f0cee('0x1dc2')][_0x1f0cee('0xaa5')](function(_0x5928fe){_0x1bab5c(_0x5928fe);})['catch'](function(_0x78dfb8){_0x170ee8(_0x78dfb8);});});}function _0x18d57e(_0x440042){return _0x36cf98(function(_0x186970,_0x55a646){var _0x181cce=a0_0x1149;_0x51538b()[_0x181cce('0x116b')](_0x440042)?_0x186970():_0x128e3e[_0x181cce('0xaf9')][_0x181cce('0x26b1')]({'id':_0x33af06[_0x181cce('0xaf9')]['id'],'ids':_0x51538b()[_0x181cce('0x1246')](_0x440042,'id')})[_0x181cce('0x1dc2')]['then'](function(){_0x186970();})[_0x181cce('0x253d')](function(_0x17b3b7){_0x55a646(_0x17b3b7);});});}function _0x32fa50(_0x212b30){return _0x36cf98(function(_0xb7282d,_0x32171d){var _0x5a5dbe=a0_0x1149;_0x51538b()[_0x5a5dbe('0x116b')](_0x212b30)?_0xb7282d():_0x128e3e['faxQueue']['removeAgents']({'id':_0x33af06[_0x5a5dbe('0xaf9')]['id'],'ids':_0x51538b()[_0x5a5dbe('0x1246')](_0x212b30,'id')})[_0x5a5dbe('0x1dc2')][_0x5a5dbe('0xaa5')](function(){_0xb7282d();})[_0x5a5dbe('0x253d')](function(_0x28f456){_0x32171d(_0x28f456);});});}function _0x40dc76(){var _0x456a46=_0x3ffb44,_0x1dd550=_0x51538b()[_0x456a46('0x1ebb')](_0x33af06[_0x456a46('0x214a')],_0x33af06[_0x456a46('0xbf7')],'id'),_0x20244f=_0x51538b()['differenceBy'](_0x33af06[_0x456a46('0xbf7')],_0x33af06[_0x456a46('0x214a')],'id');return _0x32fa50(_0x1dd550)[_0x456a46('0xaa5')](function(){return _0x18d57e(_0x20244f);})[_0x456a46('0xaa5')](function(){var _0x551212=_0x456a46;_0x33af06['pendingChanges']=![],_0x33af06['startingAllowedItems']=angular[_0x551212('0x20a')](_0x33af06['allowedItems']),_0x33af06['startingSelectedItems']=angular[_0x551212('0x20a')](_0x33af06[_0x551212('0xbf7')]),_0x2e6cfd['success']({'title':'SUCCESS','msg':_0x551212('0xc60')});})[_0x456a46('0x253d')](function(_0x461991){var _0x4a92ec=_0x456a46;_0x2e6cfd[_0x4a92ec('0x187f')]({'title':_0x461991[_0x4a92ec('0x2fa')]?_0x4a92ec('0x16c2')+_0x461991['status']+'\x20-\x20'+_0x461991[_0x4a92ec('0x24df')]:_0x4a92ec('0x2281'),'msg':_0x461991[_0x4a92ec('0x2fa')]?JSON[_0x4a92ec('0xa48')](_0x461991[_0x4a92ec('0x10fd')]):_0x461991['toString']()});});}function _0x4e14f6(){var _0x54dc85=_0x3ffb44;_0x4ad671[_0x54dc85('0x1120')]();}}const _0x6821=_0x229ef6;_0x5dc65d['$inject']=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0xaf9'),_0x1a8446('0xcb3'),'Auth',_0x1a8446('0xada')];function _0x5dc65d(_0x418703,_0x115678,_0x548b3f,_0x5dfea2,_0x52e251,_0x221127,_0x2aad7c,_0x3d951b){var _0x2831e2=_0x1a8446,_0x44ca59=this;_0x44ca59[_0x2831e2('0x7fc')]=_0x2aad7c[_0x2831e2('0xacc')](),_0x44ca59[_0x2831e2('0xaf9')]=_0x52e251,_0x44ca59[_0x2831e2('0xada')]=_0x3d951b,_0x44ca59[_0x2831e2('0x1a30')]=[],_0x44ca59[_0x2831e2('0x11b9')]=[],_0x44ca59[_0x2831e2('0xbf7')]=[],_0x44ca59[_0x2831e2('0x215b')]=[],_0x44ca59[_0x2831e2('0x214a')]=[],_0x44ca59[_0x2831e2('0xc54')]=![],_0x44ca59[_0x2831e2('0x1c23')]={'readOnly':!_0x44ca59[_0x2831e2('0xada')][_0x2831e2('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'name','line2':'','line3':'','labelAll':_0x221127['instant'](_0x2831e2('0x17e7')),'labelSelected':_0x221127[_0x2831e2('0x213f')]('FAX.SELECTED_TEAMS'),'transferCallback':function _0x1dcf24(){var _0x4e0bfa=_0x2831e2,_0x146df0=_0x51538b()['xorBy'](_0x44ca59[_0x4e0bfa('0x214a')],_0x44ca59[_0x4e0bfa('0xbf7')],'id');_0x44ca59[_0x4e0bfa('0xc54')]=_0x51538b()['isEmpty'](_0x146df0)?![]:!![];}},_0x44ca59[_0x2831e2('0x2318')]=_0x8a0910,_0x44ca59[_0x2831e2('0x2507')]=_0xdd74,_0x44ca59[_0x2831e2('0x2023')]=_0x133b20;function _0x8a0910(){var _0x1c91b5=_0x2831e2;return _0x2aad7c[_0x1c91b5('0x26e8')](_0x1c91b5('0x178b'))?_0x4198f2()['catch'](function(_0x1764d1){var _0x23dae5=_0x1c91b5;_0x548b3f[_0x23dae5('0x187f')]({'title':_0x1764d1[_0x23dae5('0x2fa')]?_0x23dae5('0x16c2')+_0x1764d1['status']+_0x23dae5('0x169e')+_0x1764d1[_0x23dae5('0x24df')]:_0x23dae5('0x4b3'),'msg':_0x1764d1[_0x23dae5('0x2fa')]?JSON[_0x23dae5('0xa48')](_0x1764d1[_0x23dae5('0x10fd')]):_0x1764d1[_0x23dae5('0x684')]()});}):_0x5a797f()[_0x1c91b5('0xaa5')](function(_0x9f2d){var _0x267a60=_0x1c91b5;return _0x44ca59[_0x267a60('0x224d')]=_0x9f2d,_0x4198f2();})[_0x1c91b5('0x253d')](function(_0x4b4486){var _0x15354d=_0x1c91b5;_0x548b3f['error']({'title':_0x4b4486[_0x15354d('0x2fa')]?'API:'+_0x4b4486['status']+'\x20-\x20'+_0x4b4486['statusText']:_0x15354d('0x4b3'),'msg':_0x4b4486[_0x15354d('0x2fa')]?JSON[_0x15354d('0xa48')](_0x4b4486[_0x15354d('0x10fd')]):_0x4b4486[_0x15354d('0x684')]()});});}function _0x5a797f(){return _0x115678(function(_0x55520d,_0x9b937f){var _0x3b5153=a0_0x1149;_0x5dfea2[_0x3b5153('0x1a50')][_0x3b5153('0x2122')]({'userProfileId':_0x44ca59['currentUser'][_0x3b5153('0x2168')],'name':_0x3b5153('0x10ee')})[_0x3b5153('0x1dc2')]['then'](function(_0x38c7db){var _0x1b2f1c=_0x3b5153,_0x193b22=_0x38c7db&&_0x38c7db[_0x1b2f1c('0x580')]?_0x38c7db[_0x1b2f1c('0x580')][0x0]:null;_0x55520d(_0x193b22);})[_0x3b5153('0x253d')](function(_0x2b6737){_0x9b937f(_0x2b6737);});});}function _0x4198f2(){return _0x115678(function(_0x5411f2,_0x2c6090){var _0x93e480=a0_0x1149;return _0x3d8c98()[_0x93e480('0xaa5')](function(_0xa43966){var _0x507ef3=_0x93e480;return _0x44ca59['items']=_0xa43966[_0x507ef3('0x580')]?_0xa43966[_0x507ef3('0x580')]:[],_0x2aad7c[_0x507ef3('0x26e8')](_0x507ef3('0x178b'))?_0xa43966:_0x44ca59[_0x507ef3('0x224d')]?_0x44ca59[_0x507ef3('0x224d')][_0x507ef3('0x26cc')]?_0xa43966:_0x5cc2c9():null;})[_0x93e480('0xaa5')](function(_0x3f73b7){var _0x4c276f=_0x93e480,_0x303252=_0x3f73b7&&_0x3f73b7[_0x4c276f('0x580')]?_0x3f73b7[_0x4c276f('0x580')]:[];return _0x44ca59[_0x4c276f('0x11b9')]=_0x51538b()['map'](_0x303252,function(_0x301c79){var _0x5a4d65=_0x4c276f;return _0x51538b()[_0x5a4d65('0xe9e')](_0x44ca59['items'],{'id':_0x2aad7c[_0x5a4d65('0x26e8')](_0x5a4d65('0x178b'))||_0x44ca59['section'][_0x5a4d65('0x26cc')]?_0x301c79['id']:_0x301c79[_0x5a4d65('0xbcd')]});}),_0x44ca59[_0x4c276f('0x1a30')][_0x4c276f('0x15b5')](function(_0x2fa27a){var _0x54a121=_0x4c276f,_0x4953af=_0x51538b()[_0x54a121('0xe9e')](_0x44ca59[_0x54a121('0x11b9')],{'id':_0x2fa27a['id']});_0x2aad7c[_0x54a121('0x26e8')](_0x54a121('0x178b'))?_0x2fa27a[_0x54a121('0x145d')]=!![]:_0x2fa27a[_0x54a121('0x145d')]=typeof _0x4953af!=='undefined'?!![]:![];}),_0x37869c();})['then'](function(_0x75d1bf){var _0x2e9792=_0x93e480,_0x1f0ea1=_0x75d1bf&&_0x75d1bf['rows']?_0x75d1bf[_0x2e9792('0x580')]:[];_0x44ca59[_0x2e9792('0xbf7')]=_0x51538b()[_0x2e9792('0x1246')](_0x1f0ea1,function(_0x417c46){var _0x45fae7=_0x2e9792;return _0x51538b()[_0x45fae7('0xe9e')](_0x44ca59[_0x45fae7('0x1a30')],{'id':_0x417c46['id']});}),_0x44ca59[_0x2e9792('0x214a')]=angular[_0x2e9792('0x20a')](_0x44ca59[_0x2e9792('0xbf7')]),_0x44ca59[_0x2e9792('0x1c23')]['selectedItems']=_0x44ca59[_0x2e9792('0xbf7')],_0x44ca59[_0x2e9792('0x1c23')][_0x2e9792('0x1a30')]=_0x51538b()[_0x2e9792('0x1ebb')](_0x44ca59['allowedItems'],_0x44ca59[_0x2e9792('0x1c23')]['selectedItems'],'id'),_0x5411f2();})['catch'](function(_0x4bca66){_0x2c6090(_0x4bca66);});});}function _0x5cc2c9(){return _0x115678(function(_0x575fd3,_0x4d7b6f){var _0xc04b0d=a0_0x1149;return _0x5dfea2[_0xc04b0d('0x249a')][_0xc04b0d('0x2122')]({'sectionId':_0x44ca59[_0xc04b0d('0x224d')]['id'],'nolimit':!![]})[_0xc04b0d('0x1dc2')][_0xc04b0d('0xaa5')](function(_0x5e749c){_0x575fd3(_0x5e749c);})[_0xc04b0d('0x253d')](function(_0x3db3ac){_0x4d7b6f(_0x3db3ac);});});}function _0x37869c(){return _0x115678(function(_0x462f8e,_0x881deb){var _0x1bef5c=a0_0x1149;return _0x5dfea2['faxQueue']['getTeams']({'id':_0x44ca59[_0x1bef5c('0xaf9')]['id'],'fields':_0x1bef5c('0x17fe'),'nolimit':!![]})['$promise'][_0x1bef5c('0xaa5')](function(_0x20e390){_0x462f8e(_0x20e390);})['catch'](function(_0x2c206e){_0x881deb(_0x2c206e);});});}function _0x3d8c98(){return _0x115678(function(_0x4ca09d,_0x31ee68){var _0x4d08ac=a0_0x1149;return _0x5dfea2[_0x4d08ac('0x257c')][_0x4d08ac('0x2122')]({'fields':'id,name','nolimit':!![]})[_0x4d08ac('0x1dc2')][_0x4d08ac('0xaa5')](function(_0x8e8037){_0x4ca09d(_0x8e8037);})[_0x4d08ac('0x253d')](function(_0x11a7c3){_0x31ee68(_0x11a7c3);});});}function _0x2b1312(_0x4666a6){return _0x115678(function(_0x5c4abd,_0x49243f){var _0x2a6ac1=a0_0x1149;_0x51538b()[_0x2a6ac1('0x116b')](_0x4666a6)?_0x5c4abd():_0x5dfea2[_0x2a6ac1('0xaf9')]['addTeams']({'id':_0x44ca59[_0x2a6ac1('0xaf9')]['id'],'ids':_0x51538b()[_0x2a6ac1('0x1246')](_0x4666a6,'id')})[_0x2a6ac1('0x1dc2')][_0x2a6ac1('0xaa5')](function(){_0x5c4abd();})[_0x2a6ac1('0x253d')](function(_0x182e6b){_0x49243f(_0x182e6b);});});}function _0x45bb55(_0x1c88ec){return _0x115678(function(_0x6142eb,_0x62ffc8){var _0x284d58=a0_0x1149;_0x51538b()[_0x284d58('0x116b')](_0x1c88ec)?_0x6142eb():_0x5dfea2[_0x284d58('0xaf9')][_0x284d58('0x24b0')]({'id':_0x44ca59[_0x284d58('0xaf9')]['id'],'ids':_0x51538b()[_0x284d58('0x1246')](_0x1c88ec,'id')})[_0x284d58('0x1dc2')][_0x284d58('0xaa5')](function(){_0x6142eb();})['catch'](function(_0xe84e09){_0x62ffc8(_0xe84e09);});});}function _0xdd74(){var _0x2a64d1=_0x2831e2,_0x37fce9=_0x51538b()['differenceBy'](_0x44ca59[_0x2a64d1('0x214a')],_0x44ca59[_0x2a64d1('0xbf7')],'id'),_0x413f07=_0x51538b()['differenceBy'](_0x44ca59[_0x2a64d1('0xbf7')],_0x44ca59[_0x2a64d1('0x214a')],'id');return _0x45bb55(_0x37fce9)[_0x2a64d1('0xaa5')](function(){return _0x2b1312(_0x413f07);})[_0x2a64d1('0xaa5')](function(){var _0x13d2b2=_0x2a64d1;_0x44ca59[_0x13d2b2('0xc54')]=![],_0x44ca59['startingAllowedItems']=angular[_0x13d2b2('0x20a')](_0x44ca59[_0x13d2b2('0x11b9')]),_0x44ca59[_0x13d2b2('0x214a')]=angular[_0x13d2b2('0x20a')](_0x44ca59[_0x13d2b2('0xbf7')]),_0x548b3f[_0x13d2b2('0xe10')]({'title':_0x13d2b2('0x2eb'),'msg':_0x13d2b2('0x1e1f')});})[_0x2a64d1('0x253d')](function(_0x27f43c){var _0x38d0d9=_0x2a64d1;_0x548b3f['error']({'title':_0x27f43c[_0x38d0d9('0x2fa')]?_0x38d0d9('0x16c2')+_0x27f43c[_0x38d0d9('0x2fa')]+_0x38d0d9('0x169e')+_0x27f43c['statusText']:_0x38d0d9('0x2281'),'msg':_0x27f43c[_0x38d0d9('0x2fa')]?JSON[_0x38d0d9('0xa48')](_0x27f43c[_0x38d0d9('0x10fd')]):_0x27f43c[_0x38d0d9('0x684')]()});});}function _0x133b20(){var _0x1e3d30=_0x2831e2;_0x418703[_0x1e3d30('0x1120')]();}}const _0x2d79a1=_0x5dc65d,_0x3e9062=_0x4fb511['p']+_0x1a8446('0x21ad');_0x5d9b42[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$document','$translate',_0x1a8446('0x1202'),'setting',_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0xaf9'),_0x1a8446('0x1a50')];function _0x5d9b42(_0x44b91f,_0x5a5cc0,_0x22187c,_0x57b263,_0x8081e9,_0x435d4e,_0x38da8e,_0x1653fd,_0x3bb0cc,_0x3a249a,_0x4ef9bc,_0x230f2a){var _0x31ee74=_0x1a8446,_0x234f29=this;_0x234f29[_0x31ee74('0x7fc')]=_0x3a249a[_0x31ee74('0xacc')](),_0x234f29[_0x31ee74('0x1202')]=_0x435d4e,_0x234f29[_0x31ee74('0x143f')]=_0x38da8e,_0x234f29[_0x31ee74('0x1d53')]=_0x234f29['setting'][_0x31ee74('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x234f29['location']=_0x5a5cc0[_0x31ee74('0x1cc2')]()+_0x31ee74('0x356')+_0x5a5cc0[_0x31ee74('0x160c')](),_0x234f29[_0x31ee74('0xaf9')]=_0x4ef9bc||_0x44b91f[_0x31ee74('0x25cf')][_0x31ee74('0xaf9')]||{},_0x234f29['userProfileSection']=_0x230f2a&&_0x230f2a[_0x31ee74('0xd15')]==0x1?_0x230f2a['rows'][0x0]:null,_0x234f29['crudPermissions']=_0x3a249a[_0x31ee74('0xffd')](_0x234f29[_0x31ee74('0x1a50')]?_0x234f29[_0x31ee74('0x1a50')][_0x31ee74('0xada')]:null),_0x234f29[_0x31ee74('0x9f0')]={},_0x234f29[_0x31ee74('0xe5c')]=_0x44b91f[_0x31ee74('0x25cf')][_0x31ee74('0x25c2')]||0x0,_0x234f29[_0x31ee74('0x158f')]=_0x5cad13,_0x234f29[_0x31ee74('0x16a5')]=_0x192bc0,_0x234f29[_0x31ee74('0xc10')]=_0x3bb0cc['info'],_0x234f29[_0x31ee74('0x23ae')]=_0x5a609e,_0x234f29[_0x31ee74('0x597')]=_0x2aedd9;function _0x5cad13(_0x4e6e27,_0x3efb5a){var _0x34b9a3=_0x31ee74;_0x22187c[_0x34b9a3('0x1e6d')]({'controller':_0x34b9a3('0x1568'),'controllerAs':'vm','templateUrl':_0x3e9062,'parent':angular[_0x34b9a3('0x1aa8')](_0x57b263[_0x34b9a3('0x54c')]),'targetEvent':_0x3efb5a,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x4e6e27,'faxQueues':_0x234f29[_0x34b9a3('0xc6')]?_0x234f29['faxQueues']['rows']:[],'crudPermissions':_0x234f29[_0x34b9a3('0xada')]}});}function _0x192bc0(_0x27c8ca,_0x5d4f92){var _0x2e0380=_0x31ee74;_0x22187c[_0x2e0380('0x1e6d')]({'controller':_0x2e0380('0x1954'),'controllerAs':'vm','templateUrl':_0x25aefa,'parent':angular[_0x2e0380('0x1aa8')](_0x57b263['body']),'targetEvent':_0x5d4f92,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x27c8ca,'faxQueues':_0x234f29[_0x2e0380('0xc6')]?_0x234f29[_0x2e0380('0xc6')][_0x2e0380('0x580')]:[],'crudPermissions':_0x234f29[_0x2e0380('0xada')],'realtime':![]}});}function _0x5a609e(){var _0x496891=_0x31ee74;_0x44b91f['go'](_0x496891('0x185d'),{},{'reload':'app.fax.faxQueues'});}function _0x2aedd9(){var _0x408f36=_0x31ee74;_0x1653fd[_0x408f36('0xaf9')][_0x408f36('0x264e')]({'id':_0x234f29[_0x408f36('0xaf9')]['id']},_0x234f29[_0x408f36('0xaf9')])['$promise'][_0x408f36('0xaa5')](function(){var _0x2a0729=_0x408f36;_0x3bb0cc[_0x2a0729('0xe10')]({'title':_0x2a0729('0x1e59'),'msg':_0x234f29[_0x2a0729('0xaf9')][_0x2a0729('0x25d6')]?_0x234f29[_0x2a0729('0xaf9')]['name']+_0x2a0729('0x1734'):''});})[_0x408f36('0x253d')](function(_0x1b2969){var _0x267fb2=_0x408f36;_0x3bb0cc[_0x267fb2('0x187f')]({'title':_0x1b2969['status']?_0x267fb2('0x16c2')+_0x1b2969[_0x267fb2('0x2fa')]+_0x267fb2('0x169e')+_0x1b2969[_0x267fb2('0x24df')]:_0x267fb2('0x2107'),'msg':_0x1b2969['data']?JSON['stringify'](_0x1b2969['data']):_0x1b2969[_0x267fb2('0x684')]()});});}}const _0x4f63c8=_0x5d9b42;_0x1de5ba['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),'$state',_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'faxQueues',_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x1de5ba(_0x4feeea,_0x282a16,_0x4dd373,_0x5bc0a1,_0x5b16ad,_0x2708e0,_0x3501af,_0x507f07,_0x530002,_0x32a0c7,_0x52752d,_0x4a12b6,_0x637e29,_0xc4a923,_0x33fb2c,_0x3b0420,_0x42d4a6){var _0x5d0e86=_0x1a8446,_0x30fd1b=this;_0x30fd1b[_0x5d0e86('0x1202')]=_0x3b0420,_0x30fd1b[_0x5d0e86('0x143f')]=_0x42d4a6,_0x30fd1b[_0x5d0e86('0x7fc')]=_0x33fb2c[_0x5d0e86('0xacc')](),_0x30fd1b[_0x5d0e86('0xc6')]=_0x530002||{'count':0x0,'rows':[]},_0x30fd1b[_0x5d0e86('0x1e97')]=_0x32a0c7,_0x30fd1b[_0x5d0e86('0x1a50')]=_0x52752d&&_0x52752d[_0x5d0e86('0xd15')]==0x1?_0x52752d['rows'][0x0]:null,_0x30fd1b[_0x5d0e86('0xada')]=_0x33fb2c['parseCrudPermissions'](_0x30fd1b[_0x5d0e86('0x1a50')]?_0x30fd1b[_0x5d0e86('0x1a50')][_0x5d0e86('0xada')]:null),_0x30fd1b[_0x5d0e86('0x12b6')]=_0x5d0e86('0xc6'),_0x30fd1b[_0x5d0e86('0x164')]='',_0x30fd1b[_0x5d0e86('0x8cc')]=null,_0x30fd1b[_0x5d0e86('0x7aa')]=[],_0x30fd1b[_0x5d0e86('0x582')]={'fields':_0x5d0e86('0x698'),'sort':_0x5d0e86('0xd82'),'channel':'fax','limit':0xa,'page':0x1},_0x30fd1b[_0x5d0e86('0x2501')]=_0x51538b()[_0x5d0e86('0x184a')]([{'option':_0x5d0e86('0x263b'),'value':'\x27beepall\x27'},{'option':'RR\x20Memory','value':_0x5d0e86('0x2576')}],function(_0xf3df99){var _0x5780be=_0x5d0e86;return _0x51538b()[_0x5780be('0x170d')](_0xf3df99[_0x5780be('0x12f4')],new RegExp('\x27','g'),'');}),_0x30fd1b[_0x5d0e86('0x1927')]=_0x420f95,_0x30fd1b[_0x5d0e86('0x158f')]=_0x2026b2,_0x30fd1b['agentadddialog']=_0x49a637,_0x30fd1b[_0x5d0e86('0x271')]=_0x2454e2,_0x30fd1b[_0x5d0e86('0x2389')]=_0x1d2feb,_0x30fd1b[_0x5d0e86('0xe10')]=_0x50e139,_0x30fd1b[_0x5d0e86('0x1a35')]=_0x292b09,_0x30fd1b['createOrEditFaxQueue']=_0x5af75e,_0x30fd1b[_0x5d0e86('0x947')]=_0x444a60,_0x30fd1b[_0x5d0e86('0x9aa')]=_0x2ed16d,_0x30fd1b[_0x5d0e86('0xa04')]=_0x52e240,_0x30fd1b[_0x5d0e86('0x1611')]=_0x4f5bfb,_0x30fd1b['selectAllFaxQueues']=_0x2e693e;function _0x420f95(_0x3e3dac){var _0x5946a0=_0x5d0e86;_0x4dd373['go'](_0x5946a0('0xdab'),{'id':_0x3e3dac['id'],'faxQueue':_0x3e3dac,'crudPermissions':_0x30fd1b[_0x5946a0('0xada')]});}function _0x2026b2(_0x1626b3,_0x1d0478){var _0x3c2347=_0x5d0e86;_0x5b16ad[_0x3c2347('0x1e6d')]({'controller':_0x3c2347('0x1568'),'controllerAs':'vm','templateUrl':_0x3e9062,'parent':angular[_0x3c2347('0x1aa8')](_0x2708e0[_0x3c2347('0x54c')]),'targetEvent':_0x1d0478,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x1626b3,'faxQueues':_0x30fd1b[_0x3c2347('0xc6')]?_0x30fd1b[_0x3c2347('0xc6')][_0x3c2347('0x580')]:[],'crudPermissions':_0x30fd1b[_0x3c2347('0xada')]}});}function _0x49a637(_0x1745a6,_0x5754ef){var _0xeb013a=_0x5d0e86;_0x5b16ad[_0xeb013a('0x1e6d')]({'controller':_0xeb013a('0x1954'),'controllerAs':'vm','templateUrl':_0x25aefa,'parent':angular[_0xeb013a('0x1aa8')](_0x2708e0[_0xeb013a('0x54c')]),'targetEvent':_0x5754ef,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x1745a6,'faxQueues':_0x30fd1b[_0xeb013a('0xc6')]?_0x30fd1b[_0xeb013a('0xc6')][_0xeb013a('0x580')]:[],'crudPermissions':_0x30fd1b[_0xeb013a('0xada')],'realtime':![]}});}function _0x2454e2(_0x5867fc,_0x31ac1d){var _0x595c24=_0x5d0e86,_0x3b5cf4=_0x5b16ad[_0x595c24('0x281e')]()['title'](_0x595c24('0x88d')+_0x51538b()[_0x595c24('0x196a')]('faxQueue')+'?')[_0x595c24('0x102e')](_0x595c24('0x389')+(_0x5867fc['name']||'faxQueue')+_0x595c24('0x697')+_0x595c24('0x210d'))[_0x595c24('0x5b5')](_0x595c24('0xeb2'))['targetEvent'](_0x31ac1d)['ok']('OK')[_0x595c24('0x2030')](_0x595c24('0x2410'));_0x5b16ad[_0x595c24('0x1e6d')](_0x3b5cf4)[_0x595c24('0xaa5')](function(){_0x444a60(_0x5867fc);},function(){var _0x53ee55=_0x595c24;console[_0x53ee55('0x18d5')](_0x53ee55('0x2410'));});}function _0x1d2feb(){var _0x5f561c=_0x5d0e86;if(_0x33fb2c[_0x5f561c('0x26e8')]('admin'))_0x4dd373['go'](_0x5f561c('0x1c0f'),{});else return _0x4a12b6[_0x5f561c('0x1a50')][_0x5f561c('0x2122')]({'userProfileId':_0x33fb2c[_0x5f561c('0xacc')]()[_0x5f561c('0x2168')],'sectionId':0x38e})['$promise'][_0x5f561c('0xaa5')](function(_0x5a1a6e){var _0x33dcb5=_0x5f561c,_0x3ae815=_0x5a1a6e&&_0x5a1a6e[_0x33dcb5('0x580')]?_0x5a1a6e['rows'][0x0]:null;_0x3ae815&&_0x3ae815[_0x33dcb5('0xbd3')]?_0x4dd373['go'](_0x33dcb5('0x1c0f'),{}):_0xc4a923[_0x33dcb5('0x3a1')]({'title':_0x507f07[_0x33dcb5('0x213f')](_0x33dcb5('0x1aab')),'msg':_0x507f07[_0x33dcb5('0x213f')](_0x33dcb5('0x251c'))});})[_0x5f561c('0x253d')](function(_0x5c1a38){var _0x293cb8=_0x5f561c;_0xc4a923[_0x293cb8('0x187f')]({'title':_0x5c1a38[_0x293cb8('0x2fa')]?_0x293cb8('0x16c2')+_0x5c1a38['status']+_0x293cb8('0x169e')+_0x5c1a38['statusText']:'USERPROFILE:GET_SECTION','msg':_0x5c1a38[_0x293cb8('0x2fa')]?JSON[_0x293cb8('0xa48')](_0x5c1a38[_0x293cb8('0x10fd')]):_0x5c1a38[_0x293cb8('0x684')]()});});}var _0x4271b4=!![],_0x19e04b=0x1;_0x4feeea['$watch'](_0x5d0e86('0x1788'),function(_0x3f361f,_0x630e4b){var _0x1e5047=_0x5d0e86;_0x4271b4?_0x3501af(function(){_0x4271b4=![];}):(!_0x630e4b&&(_0x19e04b=_0x30fd1b[_0x1e5047('0x582')][_0x1e5047('0x41')]),_0x3f361f!==_0x630e4b&&(_0x30fd1b['query']['page']=0x1),!_0x3f361f&&(_0x30fd1b['query'][_0x1e5047('0x41')]=_0x19e04b),_0x30fd1b[_0x1e5047('0x1a35')]());});function _0x50e139(_0x15210b){var _0x19e26f=_0x5d0e86;_0x30fd1b[_0x19e26f('0xc6')]=_0x15210b||{'count':0x0,'rows':[]};}function _0x292b09(){var _0x304774=_0x5d0e86;_0x30fd1b[_0x304774('0x582')][_0x304774('0x8b1')]=(_0x30fd1b[_0x304774('0x582')][_0x304774('0x41')]-0x1)*_0x30fd1b['query'][_0x304774('0xf4d')],_0x33fb2c[_0x304774('0x26e8')](_0x304774('0x178b'))?_0x30fd1b['promise']=_0x4a12b6[_0x304774('0xaf9')][_0x304774('0x2122')](_0x30fd1b[_0x304774('0x582')],_0x50e139)[_0x304774('0x1dc2')]:(_0x30fd1b['query']['id']=_0x30fd1b[_0x304774('0x1e97')]['id'],_0x30fd1b['query'][_0x304774('0x224d')]='FaxQueues',_0x30fd1b[_0x304774('0x159a')]=_0x4a12b6[_0x304774('0x1e97')][_0x304774('0x1cf1')](_0x30fd1b['query'],_0x50e139)[_0x304774('0x1dc2')]);}function _0x5af75e(_0x5583e7,_0x3564b9){var _0x309f8a=_0x5d0e86;_0x5b16ad[_0x309f8a('0x1e6d')]({'controller':_0x309f8a('0x1029'),'controllerAs':'vm','templateUrl':_0x1539a4,'parent':angular[_0x309f8a('0x1aa8')](_0x2708e0[_0x309f8a('0x54c')]),'targetEvent':_0x5583e7,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3564b9,'faxQueues':_0x30fd1b['faxQueues'][_0x309f8a('0x580')],'license':_0x30fd1b['license'],'setting':_0x30fd1b[_0x309f8a('0x143f')],'crudPermissions':_0x30fd1b[_0x309f8a('0xada')]}});}function _0x444a60(_0x3f72ee){var _0x5903f1=_0x5d0e86;_0x4a12b6['faxQueue']['delete']({'id':_0x3f72ee['id']})[_0x5903f1('0x1dc2')]['then'](function(){var _0x8a39d6=_0x5903f1;_0x51538b()['remove'](_0x30fd1b[_0x8a39d6('0xc6')]['rows'],{'id':_0x3f72ee['id']}),_0x30fd1b[_0x8a39d6('0xc6')][_0x8a39d6('0xd15')]-=0x1,!_0x30fd1b[_0x8a39d6('0xc6')][_0x8a39d6('0x580')][_0x8a39d6('0x2587')]&&_0x30fd1b['getFaxQueues'](),_0xc4a923[_0x8a39d6('0xe10')]({'title':_0x51538b()['startCase']('FaxQueue')+'\x20deleted!','msg':_0x3f72ee['name']?_0x3f72ee[_0x8a39d6('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x5903f1('0x253d')](function(_0x1851ae){var _0x595bf9=_0x5903f1;if(_0x1851ae['data']&&_0x1851ae['data']['errors']&&_0x1851ae[_0x595bf9('0x10fd')][_0x595bf9('0x4c6')]['length']){_0x30fd1b[_0x595bf9('0x4c6')]=_0x1851ae[_0x595bf9('0x10fd')][_0x595bf9('0x4c6')]||[{'message':_0x1851ae[_0x595bf9('0x684')](),'type':'SYSTEM:DELETEfaxQueue'}];for(var _0x44e4cb=0x0;_0x44e4cb<_0x1851ae['data'][_0x595bf9('0x4c6')][_0x595bf9('0x2587')];_0x44e4cb++){_0xc4a923[_0x595bf9('0x187f')]({'title':_0x1851ae[_0x595bf9('0x10fd')][_0x595bf9('0x4c6')][_0x44e4cb][_0x595bf9('0x6c8')],'msg':_0x1851ae[_0x595bf9('0x10fd')]['errors'][_0x44e4cb][_0x595bf9('0x1402')]});}}else _0xc4a923[_0x595bf9('0x187f')]({'title':_0x1851ae[_0x595bf9('0x2fa')]?_0x595bf9('0x16c2')+_0x1851ae[_0x595bf9('0x2fa')]+_0x595bf9('0x169e')+_0x1851ae[_0x595bf9('0x24df')]:_0x595bf9('0x21cd'),'msg':_0x1851ae[_0x595bf9('0x10fd')]?JSON[_0x595bf9('0xa48')](_0x1851ae[_0x595bf9('0x10fd')][_0x595bf9('0x1402')]):_0x1851ae[_0x595bf9('0x1402')]||_0x1851ae[_0x595bf9('0x684')]()});});}function _0x2ed16d(){var _0xfbd812=_0x5d0e86,_0x41da33=angular[_0xfbd812('0x20a')](_0x30fd1b[_0xfbd812('0x7aa')]);return _0x30fd1b['selectedFaxQueues']=[],_0x41da33;}function _0x52e240(_0x34d342){var _0x2ad131=_0x5d0e86,_0x80908c=_0x5b16ad['confirm']()[_0x2ad131('0x110a')](_0x2ad131('0x2578'))[_0x2ad131('0x102e')](''+_0x30fd1b[_0x2ad131('0x7aa')][_0x2ad131('0x2587')]+_0x2ad131('0x1443')+'\x20will\x20be\x20deleted.')[_0x2ad131('0x5b5')](_0x2ad131('0x2710'))['targetEvent'](_0x34d342)['ok']('OK')[_0x2ad131('0x2030')](_0x2ad131('0x2410'));_0x5b16ad[_0x2ad131('0x1e6d')](_0x80908c)[_0x2ad131('0xaa5')](function(){var _0x1bce60=_0x2ad131;_0x30fd1b[_0x1bce60('0x7aa')][_0x1bce60('0x15b5')](function(_0x2b0217){_0x444a60(_0x2b0217);}),_0x30fd1b[_0x1bce60('0x7aa')]=[];});}function _0x4f5bfb(){_0x30fd1b['selectedFaxQueues']=[];}function _0x2e693e(){var _0x213407=_0x5d0e86;_0x30fd1b['selectedFaxQueues']=_0x30fd1b['faxQueues'][_0x213407('0x580')];}}const _0x3e5e34=_0x1de5ba;_0x972823['$inject']=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x972823(_0x2cc200,_0x4d699f){var _0x3be098=_0x1a8446;_0x2cc200[_0x3be098('0xb46')](_0x3be098('0x872'),{'abstract':!![],'url':_0x3be098('0x1366')})[_0x3be098('0xb46')](_0x3be098('0x185d'),{'url':'/faxQueues','views':{'content@app':{'templateUrl':_0x6e41ca,'controller':'FaxQueuesController\x20as\x20vm'}},'resolve':{'faxQueues':[_0x3be098('0x1d16'),_0x3be098('0x1dfd'),function _0x30c9b0(_0x2361f7,_0xe3025a){var _0x5efa9b=_0x3be098;return _0xe3025a[_0x5efa9b('0x26e8')]('admin')?_0x2361f7[_0x5efa9b('0x149f')](_0x5efa9b('0x1f57'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x5efa9b('0xd82'),'channel':'fax','limit':0xa,'offset':0x0}):_0x2361f7[_0x5efa9b('0x149f')](_0x5efa9b('0x49a'),{'id':_0xe3025a[_0x5efa9b('0xacc')]()[_0x5efa9b('0x2168')],'section':'FaxQueues','fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x5efa9b('0xd82'),'channel':_0x5efa9b('0x16c4'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3be098('0x1d16'),_0x3be098('0x1dfd'),function _0x30ffc9(_0x514da9,_0x3a74f8){var _0x519837=_0x3be098;return _0x3a74f8['hasRole'](_0x519837('0x178b'))?null:_0x514da9['resolve'](_0x519837('0x567'),{'fields':_0x519837('0x1bb0'),'id':_0x3a74f8[_0x519837('0xacc')]()[_0x519837('0x2168')]});}],'userProfileSection':[_0x3be098('0x1d16'),_0x3be098('0x1dfd'),function _0x89a1f8(_0x2c502a,_0x5304a9){var _0x261ff0=_0x3be098;return _0x5304a9[_0x261ff0('0x26e8')](_0x261ff0('0x178b'))?null:_0x2c502a[_0x261ff0('0x149f')](_0x261ff0('0x89e'),{'fields':_0x261ff0('0xe6a'),'userProfileId':_0x5304a9[_0x261ff0('0xacc')]()['userProfileId'],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x3be098('0x16c4')})['state'](_0x3be098('0xdab'),{'url':_0x3be098('0xad'),'params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5ac7aa,'controller':_0x3be098('0xd01')}},'resolve':{'faxQueue':[_0x3be098('0x1d16'),'$stateParams',function _0x39cee1(_0x5365c7,_0x57daf2){var _0x4d0af0=_0x3be098;return _0x5365c7[_0x4d0af0('0x149f')](_0x4d0af0('0x1f57'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x57daf2['id']});}],'userProfileSection':['apiResolver',_0x3be098('0x1dfd'),function _0x4d71c4(_0x1c3ed0,_0x3439f2){var _0x1557aa=_0x3be098;return _0x1c3ed0[_0x1557aa('0x149f')]('userProfileSection@get',{'fields':_0x1557aa('0xe6a'),'userProfileId':_0x3439f2[_0x1557aa('0xacc')]()[_0x1557aa('0x2168')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x3be098('0x16c4')})[_0x3be098('0xb46')](_0x3be098('0x702'),{'url':'/faxAccounts','views':{'content@app':{'templateUrl':_0x18a843,'controller':_0x3be098('0x16eb')}},'resolve':{'faxAccounts':[_0x3be098('0x1d16'),_0x3be098('0x1dfd'),function _0x1e1c91(_0x517e4f,_0x4b8ce8){var _0x5c3e28=_0x3be098;return _0x4b8ce8[_0x5c3e28('0x26e8')](_0x5c3e28('0x178b'))?_0x517e4f[_0x5c3e28('0x149f')](_0x5c3e28('0xbf2'),{'fields':_0x5c3e28('0x853'),'sort':_0x5c3e28('0xd82'),'limit':0xa,'offset':0x0}):_0x517e4f[_0x5c3e28('0x149f')](_0x5c3e28('0x49a'),{'id':_0x4b8ce8[_0x5c3e28('0xacc')]()['userProfileId'],'section':_0x5c3e28('0xd5'),'fields':'createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x5c3e28('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x18ad8d(_0x23b87b,_0x443482){var _0x3f1528=_0x3be098;return _0x443482['hasRole'](_0x3f1528('0x178b'))?null:_0x23b87b[_0x3f1528('0x149f')](_0x3f1528('0x567'),{'fields':'id,name,crudPermissions','id':_0x443482['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x3be098('0x1dfd'),function _0x2ba142(_0x333edf,_0x5311b7){var _0x288b2c=_0x3be098;return _0x5311b7[_0x288b2c('0x26e8')](_0x288b2c('0x178b'))?null:_0x333edf[_0x288b2c('0x149f')](_0x288b2c('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5311b7[_0x288b2c('0xacc')]()[_0x288b2c('0x2168')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x3be098('0x16c4')})[_0x3be098('0xb46')]('app.fax.faxAccounts.edit',{'url':'/:id?tab','params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x309acc,'controller':_0x3be098('0x197d')}},'resolve':{'faxAccount':[_0x3be098('0x1d16'),_0x3be098('0x703'),function _0x45a808(_0xe181a,_0x37dfa2){var _0x545cae=_0x3be098;return _0xe181a[_0x545cae('0x149f')](_0x545cae('0xbf2'),{'fields':_0x545cae('0x853'),'id':_0x37dfa2['id']});}],'userProfileSection':['apiResolver',_0x3be098('0x1dfd'),function _0xab6d93(_0x353f43,_0x111d4c){var _0x253d32=_0x3be098;return _0x353f43[_0x253d32('0x149f')](_0x253d32('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x111d4c['getCurrentUser']()['userProfileId'],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x3be098('0x16c4')}),_0x4d699f[_0x3be098('0x1de5')](_0x3be098('0x12a1'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x872'),[_0x1a8446('0x1308'),'ngPassword',_0x1a8446('0x1d87'),'flow',_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),_0x1a8446('0x150f'),_0x1a8446('0x110'),_0x1a8446('0xd2d'),'mwFormBuilder',_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),_0x1a8446('0x1320'),_0x1a8446('0x775'),_0x1a8446('0x1b81')])['config'](_0x972823)[_0x1a8446('0x780')](_0x1a8446('0x1011'),_0x5e5ee8)[_0x1a8446('0x780')](_0x1a8446('0x2178'),_0x3b3183)['controller'](_0x1a8446('0x216'),_0x3ddf84)['controller'](_0x1a8446('0x10e2'),_0x2c118f)[_0x1a8446('0x780')](_0x1a8446('0x30a'),_0xe73426)['controller'](_0x1a8446('0xf54'),_0x4d0722)[_0x1a8446('0x780')](_0x1a8446('0x15b3'),_0xddb61c)[_0x1a8446('0x780')](_0x1a8446('0xe07'),_0x2927ea)['controller'](_0x1a8446('0xb0d'),_0x16ba5d)[_0x1a8446('0x780')](_0x1a8446('0x15dc'),_0x62bb67)[_0x1a8446('0x780')]('EditFaxAccountAppsystemDialogController',_0x437550)[_0x1a8446('0x780')](_0x1a8446('0x2128'),_0x2d7fa1)[_0x1a8446('0x780')]('FaxAccountDispositionsController',_0x2c5996)['controller']('FaxAccountInteractionsController',_0x54f130)[_0x1a8446('0x780')](_0x1a8446('0x1395'),_0x3756f0)[_0x1a8446('0x780')](_0x1a8446('0xa1'),_0x532172)[_0x1a8446('0x780')](_0x1a8446('0x1029'),_0xef7f4d)[_0x1a8446('0x780')](_0x1a8446('0x1954'),_0x6821)[_0x1a8446('0x780')](_0x1a8446('0x1568'),_0x2d79a1)[_0x1a8446('0x780')](_0x1a8446('0x4d2'),_0x4f63c8)[_0x1a8446('0x780')](_0x1a8446('0x2075'),_0x3e5e34);const _0x2ce331=_0x4fb511['p']+_0x1a8446('0x183d');_0x160423[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$translate','$q',_0x1a8446('0x2a4'),_0x1a8446('0xa9'),_0x1a8446('0x106e'),_0x1a8446('0x1fa6'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions',_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x160423(_0x182053,_0x589786,_0x377888,_0x40e573,_0x10482c,_0xa85cc8,_0x52a51f,_0x57d55b,_0xcc7e61,_0x29397b,_0x25dbed,_0x8a27ef){var _0x4bd25d=_0x1a8446,_0x3faacc=this;_0x3faacc[_0x4bd25d('0x7fc')]=_0xcc7e61[_0x4bd25d('0xacc')](),_0x3faacc[_0x4bd25d('0x106e')]=angular[_0x4bd25d('0x20a')](_0xa85cc8),_0x3faacc['dispositions']=angular['copy'](_0x10482c),_0x3faacc['setting']=_0x8a27ef,_0x3faacc[_0x4bd25d('0x1202')]=_0x25dbed,_0x3faacc['crudPermissions']=_0x29397b,_0x3faacc['newDisposition']=![],_0x3faacc[_0x4bd25d('0x4c6')]=[];!_0x3faacc[_0x4bd25d('0x106e')]?(_0x3faacc[_0x4bd25d('0x106e')]={'level':_0x4bd25d('0xe75')},_0x3faacc[_0x4bd25d('0x1a57')]=!![]):_0x4c2ae4();if(_0x52a51f){var _0x190374=_0x52a51f[_0x4bd25d('0x5f2')];_0x3faacc[_0x4bd25d('0x106e')][_0x190374]=_0x52a51f['id'];}_0x3faacc[_0x4bd25d('0x26c0')]=_0x25ea8f,_0x3faacc['addNewDisposition']=_0x3ea600,_0x3faacc[_0x4bd25d('0x254b')]=_0x195148,_0x3faacc[_0x4bd25d('0xb52')]=_0x1c569b,_0x3faacc[_0x4bd25d('0x2200')]=_0xd0511,_0x3faacc['closeDialog']=_0x2fa181;function _0x4c2ae4(){var _0x54eac4=_0x4bd25d;if(_0x3faacc[_0x54eac4('0x106e')][_0x54eac4('0x2066')]===_0x54eac4('0xe75'))return;_0x3faacc[_0x54eac4('0x1890')]=_0x51538b()[_0x54eac4('0xe9e')](_0x3faacc[_0x54eac4('0xa9')],['id',_0x3faacc[_0x54eac4('0x106e')][_0x54eac4('0x2733')]]);if(!_0x3faacc[_0x54eac4('0x1890')]){_0x2362d3()['then'](function(){var _0xe0ccaa=_0x54eac4;for(var _0x19071c=0x0;_0x19071c<_0x3faacc[_0xe0ccaa('0xdce')][_0xe0ccaa('0x2587')];_0x19071c++){var _0xcb8c68=_0x3faacc[_0xe0ccaa('0xdce')][_0x19071c];if(_0xcb8c68['id']===_0x3faacc['disposition']['ParentId']){_0xd8421a(_0xcb8c68),_0xcb8c68['canSelect']=![],_0x3faacc[_0xe0ccaa('0xa9')]['push'](_0xcb8c68);break;}}});return;}_0xd8421a(_0x3faacc[_0x54eac4('0x1890')]);}function _0x2362d3(){return _0x377888(function(_0x391c8c,_0x34f7a8){var _0x1bee02=a0_0x1149;_0x57d55b[_0x1bee02('0x106e')][_0x1bee02('0x2122')]({'fields':_0x1bee02('0x1ce2'),'sort':'id','nolimit':_0x1bee02('0x1c5c')})[_0x1bee02('0x1dc2')][_0x1bee02('0xaa5')](function(_0x25cd75){var _0x402c7d=_0x1bee02;_0x3faacc['allDispositions']=_0x25cd75[_0x402c7d('0x580')]||[],_0x391c8c();})[_0x1bee02('0x253d')](function(_0x474a7e){_0x34f7a8(_0x474a7e);});});}function _0xd8421a(_0x364b7c){var _0x10e659=_0x4bd25d;_0x364b7c[_0x10e659('0x2066')]===_0x10e659('0xe75')?_0x3faacc[_0x10e659('0x207e')]=_0x364b7c:(_0x3faacc[_0x10e659('0x1314')]=!![],_0x3faacc['secondLevelDisposition']=_0x364b7c,_0x3faacc[_0x10e659('0x207e')]=_0x51538b()[_0x10e659('0xe9e')](_0x3faacc[_0x10e659('0xa9')],['id',_0x3faacc[_0x10e659('0x1219')]['ParentId']]),!_0x3faacc['firstLevelDisposition']&&_0x2362d3()[_0x10e659('0xaa5')](function(){var _0x54ff44=_0x10e659;_0x3faacc[_0x54ff44('0x207e')]=_0x51538b()[_0x54ff44('0xe9e')](_0x3faacc[_0x54ff44('0xdce')],['id',_0x3faacc[_0x54ff44('0x1219')][_0x54ff44('0x2733')]]),_0x3faacc[_0x54ff44('0x207e')][_0x54ff44('0x12eb')]=![],_0x3faacc[_0x54ff44('0xa9')][_0x54ff44('0x1599')](_0x3faacc[_0x54ff44('0x207e')]);}));}function _0xd0511(_0x399e14){var _0x492930=_0x4bd25d;_0x399e14===_0x492930('0xe75')?(_0x3faacc[_0x492930('0x207e')]=undefined,_0x3faacc[_0x492930('0x1219')]=undefined,_0x3faacc['anySecondLevelDisposition']=![]):_0x3faacc[_0x492930('0x1219')]=undefined;}function _0x25ea8f(){var _0xf84d8=_0x4bd25d;_0x3faacc[_0xf84d8('0x1219')]=undefined,_0x3faacc[_0xf84d8('0x1314')]=_0x51538b()[_0xf84d8('0x2c2')](_0x3faacc[_0xf84d8('0xa9')],function(_0x1cc7a7){var _0x2acb23=_0xf84d8;return _0x1cc7a7[_0x2acb23('0x2733')]===_0x3faacc[_0x2acb23('0x207e')]['id']&&_0x1cc7a7['id']!=_0x3faacc[_0x2acb23('0x106e')]['id'];});}function _0x3ea600(){var _0x559ded=_0x4bd25d;_0x3faacc[_0x559ded('0x4c6')]=[];if(_0x3faacc['secondLevelDisposition'])_0x3faacc[_0x559ded('0x106e')]['ParentId']=_0x3faacc[_0x559ded('0x1219')]['id'],_0x3faacc['disposition'][_0x559ded('0x2066')]=_0x559ded('0x10db');else _0x3faacc['firstLevelDisposition']&&(_0x3faacc[_0x559ded('0x106e')][_0x559ded('0x2733')]=_0x3faacc[_0x559ded('0x207e')]['id'],_0x3faacc[_0x559ded('0x106e')][_0x559ded('0x2066')]=_0x559ded('0xeca'));_0x57d55b['disposition']['save'](_0x3faacc[_0x559ded('0x106e')])[_0x559ded('0x1dc2')][_0x559ded('0xaa5')](function(_0x508315){var _0x478a7f=_0x559ded;_0x3faacc['dispositions'][_0x478a7f('0x6ee')](_0x508315[_0x478a7f('0x256a')]()),_0x40e573[_0x478a7f('0xe10')]({'title':_0x589786['instant'](_0x478a7f('0x24f8'))}),_0x2fa181(!![]);})[_0x559ded('0x253d')](function(_0xcbecfc){var _0x583cfa=_0x559ded;if(_0xcbecfc[_0x583cfa('0x10fd')]&&_0xcbecfc['data']['errors']&&_0xcbecfc[_0x583cfa('0x10fd')][_0x583cfa('0x4c6')][_0x583cfa('0x2587')]){_0x3faacc[_0x583cfa('0x4c6')]=_0xcbecfc[_0x583cfa('0x10fd')][_0x583cfa('0x4c6')]||[{'message':_0xcbecfc[_0x583cfa('0x684')](),'type':_0x583cfa('0x18a3')}];for(var _0x318ad0=0x0;_0x318ad0<_0xcbecfc['data'][_0x583cfa('0x4c6')][_0x583cfa('0x2587')];_0x318ad0+=0x1){_0x40e573[_0x583cfa('0x187f')]({'title':_0xcbecfc[_0x583cfa('0x10fd')][_0x583cfa('0x4c6')][_0x318ad0][_0x583cfa('0x6c8')],'msg':_0xcbecfc[_0x583cfa('0x10fd')]['errors'][_0x318ad0]['message']});}}else _0x40e573[_0x583cfa('0x187f')]({'title':_0xcbecfc[_0x583cfa('0x2fa')]?_0x583cfa('0x16c2')+_0xcbecfc[_0x583cfa('0x2fa')]+_0x583cfa('0x169e')+_0xcbecfc['statusText']:_0x583cfa('0x18a3'),'msg':_0xcbecfc[_0x583cfa('0x10fd')]?JSON[_0x583cfa('0xa48')](_0xcbecfc[_0x583cfa('0x10fd')][_0x583cfa('0x1402')]):_0xcbecfc[_0x583cfa('0x684')]()});});}function _0x195148(){var _0x219641=_0x4bd25d;_0x3faacc[_0x219641('0x4c6')]=[];if(_0x3faacc[_0x219641('0x1219')])_0x3faacc['disposition'][_0x219641('0x2733')]=_0x3faacc[_0x219641('0x1219')]['id'],_0x3faacc[_0x219641('0x106e')][_0x219641('0x2066')]='third';else _0x3faacc[_0x219641('0x207e')]&&(_0x3faacc[_0x219641('0x106e')]['ParentId']=_0x3faacc['firstLevelDisposition']['id'],_0x3faacc[_0x219641('0x106e')][_0x219641('0x2066')]=_0x219641('0xeca'));_0x57d55b[_0x219641('0x106e')][_0x219641('0x264e')]({'id':_0x3faacc[_0x219641('0x106e')]['id']},_0x3faacc[_0x219641('0x106e')])[_0x219641('0x1dc2')][_0x219641('0xaa5')](function(_0x285ce2){var _0x5bba6e=_0x219641,_0x206abb=_0x51538b()[_0x5bba6e('0xe9e')](_0x3faacc[_0x5bba6e('0xa9')],{'id':_0x285ce2['id']});_0x206abb&&_0x51538b()['merge'](_0x206abb,_0x51538b()[_0x5bba6e('0x104e')](_0x285ce2[_0x5bba6e('0x256a')](),_0x51538b()[_0x5bba6e('0x9f2')](_0x206abb))),_0x40e573[_0x5bba6e('0xe10')]({'title':_0x589786[_0x5bba6e('0x213f')](_0x5bba6e('0x1882'))}),_0x2fa181(!![]);})[_0x219641('0x253d')](function(_0x1fdce7){var _0x5082d2=_0x219641;if(_0x1fdce7[_0x5082d2('0x10fd')]&&_0x1fdce7[_0x5082d2('0x10fd')][_0x5082d2('0x4c6')]&&_0x1fdce7['data'][_0x5082d2('0x4c6')][_0x5082d2('0x2587')]){_0x3faacc[_0x5082d2('0x4c6')]=_0x1fdce7[_0x5082d2('0x10fd')][_0x5082d2('0x4c6')]||[{'message':_0x1fdce7[_0x5082d2('0x684')](),'type':'api.disposition.update'}];for(var _0x42be59=0x0;_0x42be59<_0x1fdce7['data']['errors']['length'];_0x42be59++){_0x40e573[_0x5082d2('0x187f')]({'title':_0x1fdce7[_0x5082d2('0x10fd')][_0x5082d2('0x4c6')][_0x42be59]['type'],'msg':_0x1fdce7[_0x5082d2('0x10fd')][_0x5082d2('0x4c6')][_0x42be59][_0x5082d2('0x1402')]});}}else _0x40e573[_0x5082d2('0x187f')]({'title':_0x1fdce7[_0x5082d2('0x2fa')]?_0x5082d2('0x16c2')+_0x1fdce7[_0x5082d2('0x2fa')]+_0x5082d2('0x169e')+_0x1fdce7[_0x5082d2('0x24df')]:_0x5082d2('0xe1d'),'msg':_0x1fdce7['data']?JSON[_0x5082d2('0xa48')](_0x1fdce7[_0x5082d2('0x10fd')]['message']):_0x1fdce7['toString']()});});}function _0x1c569b(_0xa6751c){var _0x4b9a60=_0x4bd25d;_0x3faacc[_0x4b9a60('0x4c6')]=[];var _0x379446=_0x51538b()[_0x4b9a60('0x2c2')](_0x3faacc[_0x4b9a60('0xa9')],['ParentId',_0x3faacc[_0x4b9a60('0x106e')]['id']]),_0x2950d4=_0x182053[_0x4b9a60('0x281e')]({'skipHide':!![]})['title'](_0x589786[_0x4b9a60('0x213f')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x4b9a60('0x15af')](_0x589786[_0x4b9a60('0x213f')](_0x4b9a60('0xbdf')+(_0x379446?_0x4b9a60('0x1528'):_0x4b9a60('0x20c8')),{'name':_0x3faacc[_0x4b9a60('0x106e')]['name']}))[_0x4b9a60('0x5b5')](_0x4b9a60('0x1493'))['ok'](_0x589786[_0x4b9a60('0x213f')](_0x4b9a60('0x2076')))[_0x4b9a60('0x2030')](_0x589786[_0x4b9a60('0x213f')](_0x4b9a60('0x1dd8')))[_0x4b9a60('0x116d')](_0xa6751c);_0x182053['show'](_0x2950d4)[_0x4b9a60('0xaa5')](function(){var _0x2da101=_0x4b9a60;_0x57d55b[_0x2da101('0x106e')][_0x2da101('0x926')]({'id':_0x3faacc[_0x2da101('0x106e')]['id']})['$promise'][_0x2da101('0xaa5')](function(){var _0x592639=_0x2da101;_0x40e573[_0x592639('0xe10')]({'title':_0x589786['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')}),_0x2fa181(!![]);})[_0x2da101('0x253d')](function(_0xa94a14){var _0x2f19a5=_0x2da101;if(_0xa94a14[_0x2f19a5('0x10fd')]&&_0xa94a14[_0x2f19a5('0x10fd')][_0x2f19a5('0x4c6')]&&_0xa94a14[_0x2f19a5('0x10fd')][_0x2f19a5('0x4c6')][_0x2f19a5('0x2587')]){_0x3faacc['errors']=_0xa94a14[_0x2f19a5('0x10fd')][_0x2f19a5('0x4c6')]||[{'message':_0xa94a14[_0x2f19a5('0x684')](),'type':_0x2f19a5('0x1dfb')}];for(var _0xfa616=0x0;_0xfa616<_0xa94a14[_0x2f19a5('0x10fd')][_0x2f19a5('0x4c6')][_0x2f19a5('0x2587')];_0xfa616++){_0x40e573[_0x2f19a5('0x187f')]({'title':_0xa94a14['data'][_0x2f19a5('0x4c6')][_0xfa616][_0x2f19a5('0x6c8')],'msg':_0xa94a14['data']['errors'][_0xfa616][_0x2f19a5('0x1402')]});}}else _0x40e573[_0x2f19a5('0x187f')]({'title':_0xa94a14[_0x2f19a5('0x2fa')]?_0x2f19a5('0x16c2')+_0xa94a14[_0x2f19a5('0x2fa')]+_0x2f19a5('0x169e')+_0xa94a14['statusText']:_0x2f19a5('0x1dfb'),'msg':_0xa94a14[_0x2f19a5('0x10fd')]?JSON[_0x2f19a5('0xa48')](_0xa94a14['data'][_0x2f19a5('0x1402')]):_0xa94a14['message']||_0xa94a14[_0x2f19a5('0x684')]()});});});}function _0x2fa181(_0x44f4cf){var _0x45de4f=_0x4bd25d;_0x182053[_0x45de4f('0x1120')](_0x44f4cf);}}const _0x1b1f35=_0x160423;_0x32a0de[_0x1a8446('0x1e33')]=['$scope','$window','$state',_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'dispositions',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x32a0de(_0x2dedbb,_0x5bb8b1,_0x331f11,_0x47f155,_0x16e523,_0x4c3b0d,_0x2d3e4a,_0x445dff,_0x6abf0a,_0x50a959,_0x435796,_0x3cc98a,_0x285d71,_0x30c454,_0x5cbaf8,_0x9f22d6){var _0x2e3073=_0x1a8446,_0x5f0bea=this;_0x5f0bea[_0x2e3073('0x1202')]=_0x5cbaf8,_0x5f0bea[_0x2e3073('0x143f')]=_0x9f22d6,_0x5f0bea[_0x2e3073('0x7fc')]=_0x30c454[_0x2e3073('0xacc')](),_0x5f0bea[_0x2e3073('0xa9')]=_0x6abf0a||{'count':0x0,'rows':[]},_0x5f0bea[_0x2e3073('0x1e97')]=_0x50a959,_0x5f0bea[_0x2e3073('0x1a50')]=_0x435796&&_0x435796[_0x2e3073('0xd15')]==0x1?_0x435796[_0x2e3073('0x580')][0x0]:null,_0x5f0bea['crudPermissions']=_0x30c454[_0x2e3073('0xffd')](_0x5f0bea[_0x2e3073('0x1a50')]?_0x5f0bea[_0x2e3073('0x1a50')][_0x2e3073('0xada')]:null),_0x5f0bea[_0x2e3073('0x3b5')]=[],_0x5f0bea[_0x2e3073('0x1c30')]={'first':_0x2e3073('0xee7'),'second':_0x2e3073('0x20e2'),'third':_0x2e3073('0x14f3')},_0x5f0bea[_0x2e3073('0x582')]={'fields':_0x2e3073('0x11a9'),'sort':_0x2e3073('0xd82'),'MailAccountId':_0x2e3073('0x1ed9'),'FaxAccountId':_0x2e3073('0x1ed9'),'SmsAccountId':'null','OpenchannelAccountId':_0x2e3073('0x1ed9'),'ChatWebsiteId':_0x2e3073('0x1ed9'),'WhatsappAccountId':'null','ListId':_0x2e3073('0x1ed9'),'limit':0xa,'page':0x1},_0x5f0bea[_0x2e3073('0x271')]=_0x5d2645,_0x5f0bea[_0x2e3073('0xe10')]=_0x8a035a,_0x5f0bea[_0x2e3073('0x24b7')]=_0x24a29d,_0x5f0bea['createOrEditDisposition']=_0x4726fb,_0x5f0bea[_0x2e3073('0xb52')]=_0x2d1cdc,_0x5f0bea[_0x2e3073('0xae4')]=_0x16febe,_0x5f0bea[_0x2e3073('0x1c3c')]=_0x3847cb,_0x5f0bea[_0x2e3073('0x83f')]=_0x10f61a,_0x5f0bea['selectAllDispositions']=_0x4a707e;function _0x4726fb(_0x9b359c,_0x3bb678){var _0x1ecbbb=_0x2e3073;_0x16e523[_0x1ecbbb('0x1e6d')]({'controller':_0x1ecbbb('0xccf'),'controllerAs':'vm','templateUrl':_0x56dea9,'parent':angular['element'](_0x4c3b0d[_0x1ecbbb('0x54c')]),'targetEvent':_0x9b359c,'clickOutsideToClose':!![],'locals':{'disposition':_0x3bb678,'dispositions':_0x5f0bea[_0x1ecbbb('0xa9')][_0x1ecbbb('0x580')],'model':null,'license':_0x5f0bea['license'],'setting':_0x5f0bea[_0x1ecbbb('0x143f')],'crudPermissions':_0x5f0bea['crudPermissions']}})[_0x1ecbbb('0xaa5')](function(_0x149f03){if(_0x149f03===!![])_0x24a29d();});}function _0x5d2645(_0x1acbb4,_0x4a9598){var _0x25dd7b=_0x2e3073,_0x1fc843=_0x51538b()[_0x25dd7b('0x2c2')](_0x5f0bea[_0x25dd7b('0xa9')]['rows'],[_0x25dd7b('0x2733'),_0x1acbb4['id']]),_0x24456a=_0x16e523[_0x25dd7b('0x281e')]()['title'](_0x445dff[_0x25dd7b('0x213f')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))['content'](_0x445dff[_0x25dd7b('0x213f')]('TOOLS.NOTIFICATIONS.'+(_0x1fc843?_0x25dd7b('0x1528'):_0x25dd7b('0x20c8')),{'name':_0x1acbb4[_0x25dd7b('0x25d6')]}))[_0x25dd7b('0x5b5')](_0x25dd7b('0x1493'))[_0x25dd7b('0x116d')](_0x4a9598)['ok']('OK')[_0x25dd7b('0x2030')](_0x445dff[_0x25dd7b('0x213f')]('TOOLS.CANCEL'));_0x16e523['show'](_0x24456a)[_0x25dd7b('0xaa5')](function(){_0x2d1cdc(_0x1acbb4);});}function _0x8a035a(_0x394112){var _0x2fc1bc=_0x2e3073;_0x5f0bea[_0x2fc1bc('0xa9')]=_0x394112||{'count':0x0,'rows':[]};}function _0x24a29d(){var _0x5bbfd4=_0x2e3073;_0x5f0bea[_0x5bbfd4('0x582')]['offset']=(_0x5f0bea[_0x5bbfd4('0x582')]['page']-0x1)*_0x5f0bea[_0x5bbfd4('0x582')][_0x5bbfd4('0xf4d')],_0x30c454[_0x5bbfd4('0xcf2')]()?_0x5f0bea[_0x5bbfd4('0x159a')]=_0x3cc98a[_0x5bbfd4('0x106e')][_0x5bbfd4('0x2122')](_0x5f0bea['query'],_0x8a035a)['$promise']:(_0x5f0bea[_0x5bbfd4('0x582')]['id']=_0x5f0bea[_0x5bbfd4('0x1e97')]['id'],_0x5f0bea[_0x5bbfd4('0x582')][_0x5bbfd4('0x224d')]=_0x5bbfd4('0x38d'),_0x5f0bea['promise']=_0x3cc98a['userProfile'][_0x5bbfd4('0x1cf1')](_0x5f0bea[_0x5bbfd4('0x582')],_0x8a035a)['$promise']);}function _0x2d1cdc(_0x760f60){var _0x214e0c=_0x2e3073;_0x3cc98a['disposition'][_0x214e0c('0x926')]({'id':_0x760f60['id']})[_0x214e0c('0x1dc2')]['then'](function(){var _0x4b2083=_0x214e0c;_0x24a29d(),_0x285d71[_0x4b2083('0xe10')]({'title':_0x445dff[_0x4b2083('0x213f')](_0x4b2083('0x26dd'))});})['catch'](function(_0x1ffbf5){var _0x2db427=_0x214e0c;if(_0x1ffbf5['data']&&_0x1ffbf5[_0x2db427('0x10fd')][_0x2db427('0x4c6')]&&_0x1ffbf5[_0x2db427('0x10fd')]['errors']['length']){_0x5f0bea[_0x2db427('0x4c6')]=_0x1ffbf5[_0x2db427('0x10fd')][_0x2db427('0x4c6')]||[{'message':_0x1ffbf5[_0x2db427('0x684')](),'type':_0x2db427('0x28a')}];for(var _0xb833c7=0x0;_0xb833c7<_0x1ffbf5[_0x2db427('0x10fd')][_0x2db427('0x4c6')][_0x2db427('0x2587')];_0xb833c7++){_0x285d71[_0x2db427('0x187f')]({'title':_0x1ffbf5['data'][_0x2db427('0x4c6')][_0xb833c7]['type'],'msg':_0x1ffbf5[_0x2db427('0x10fd')]['errors'][_0xb833c7][_0x2db427('0x1402')]});}}else _0x285d71['error']({'title':_0x1ffbf5[_0x2db427('0x2fa')]?_0x2db427('0x16c2')+_0x1ffbf5['status']+_0x2db427('0x169e')+_0x1ffbf5[_0x2db427('0x24df')]:'SYSTEM:DELETEdisposition','msg':_0x1ffbf5[_0x2db427('0x10fd')]?JSON[_0x2db427('0xa48')](_0x1ffbf5[_0x2db427('0x10fd')]['message']):_0x1ffbf5[_0x2db427('0x1402')]||_0x1ffbf5[_0x2db427('0x684')]()});});}function _0x16febe(){var _0x4d2221=_0x2e3073,_0x40746f=angular['copy'](_0x5f0bea[_0x4d2221('0x3b5')]);return _0x5f0bea[_0x4d2221('0x3b5')]=[],_0x40746f;}function _0x3847cb(_0x1e7884){var _0x3ae4f3=_0x2e3073,_0x3fe6f5=_0x16e523[_0x3ae4f3('0x281e')]()[_0x3ae4f3('0x110a')](_0x445dff[_0x3ae4f3('0x213f')](_0x3ae4f3('0x18f0')))[_0x3ae4f3('0x15af')](_0x445dff[_0x3ae4f3('0x213f')](_0x3ae4f3('0x8f7'),{'total':_0x5f0bea[_0x3ae4f3('0x3b5')][_0x3ae4f3('0x2587')]}))[_0x3ae4f3('0x5b5')]('Delete\x20dispositions')[_0x3ae4f3('0x116d')](_0x1e7884)['ok']('OK')[_0x3ae4f3('0x2030')](_0x445dff[_0x3ae4f3('0x213f')](_0x3ae4f3('0x1dd8')));_0x16e523[_0x3ae4f3('0x1e6d')](_0x3fe6f5)[_0x3ae4f3('0xaa5')](function(){var _0x378289=_0x3ae4f3;_0x5f0bea[_0x378289('0x3b5')][_0x378289('0x15b5')](function(_0x212408){_0x2d1cdc(_0x212408);}),_0x5f0bea['selectedDispositions']=[];});}function _0x10f61a(){var _0x430cdf=_0x2e3073;_0x5f0bea[_0x430cdf('0x3b5')]=[];}function _0x4a707e(){var _0x517d7c=_0x2e3073;_0x5f0bea[_0x517d7c('0x3b5')]=_0x5f0bea['dispositions'][_0x517d7c('0x580')];}var _0x52e159=!![],_0x15de73=0x1;_0x2dedbb['$watch'](_0x2e3073('0x1788'),function(_0x21c63d,_0x51654e){var _0x445842=_0x2e3073;_0x52e159?_0x2d3e4a(function(){_0x52e159=![];}):(!_0x51654e&&(_0x15de73=_0x5f0bea[_0x445842('0x582')]['page']),_0x21c63d!==_0x51654e&&(_0x5f0bea[_0x445842('0x582')][_0x445842('0x41')]=0x1),!_0x21c63d&&(_0x5f0bea['query']['page']=_0x15de73),_0x24a29d());});}const _0x1fff10=_0x32a0de;_0x179e84[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x179e84(_0x461c86){var _0x100d0b=_0x1a8446;_0x461c86['state'](_0x100d0b('0x194f'),{'url':_0x100d0b('0x216b'),'views':{'content@app':{'templateUrl':_0x2ce331,'controller':_0x100d0b('0x232e')}},'resolve':{'dispositions':[_0x100d0b('0x1d16'),_0x100d0b('0x1dfd'),function _0x320900(_0x47a2f5,_0x1826df){var _0x364527=_0x100d0b;return _0x1826df[_0x364527('0x26e8')](_0x364527('0x178b'))?_0x47a2f5['resolve'](_0x364527('0xa42'),{'fields':_0x364527('0x11a9'),'sort':_0x364527('0xd82'),'MailAccountId':_0x364527('0x1ed9'),'FaxAccountId':_0x364527('0x1ed9'),'SmsAccountId':_0x364527('0x1ed9'),'OpenchannelAccountId':_0x364527('0x1ed9'),'ChatWebsiteId':_0x364527('0x1ed9'),'WhatsappAccountId':_0x364527('0x1ed9'),'ListId':_0x364527('0x1ed9'),'limit':0xa,'offset':0x0}):_0x47a2f5[_0x364527('0x149f')](_0x364527('0x49a'),{'id':_0x1826df[_0x364527('0xacc')]()['userProfileId'],'section':_0x364527('0x38d'),'fields':_0x364527('0x11a9'),'sort':_0x364527('0xd82'),'MailAccountId':_0x364527('0x1ed9'),'FaxAccountId':_0x364527('0x1ed9'),'SmsAccountId':_0x364527('0x1ed9'),'OpenchannelAccountId':_0x364527('0x1ed9'),'ChatWebsiteId':_0x364527('0x1ed9'),'WhatsappAccountId':'null','ListId':_0x364527('0x1ed9'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x100d0b('0x1d16'),_0x100d0b('0x1dfd'),function _0x26f152(_0xea0f39,_0x3c794d){var _0x508cbd=_0x100d0b;return _0x3c794d[_0x508cbd('0x26e8')](_0x508cbd('0x178b'))?null:_0xea0f39[_0x508cbd('0x149f')]('userProfile@get',{'fields':_0x508cbd('0x1bb0'),'id':_0x3c794d[_0x508cbd('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x100d0b('0x1d16'),_0x100d0b('0x1dfd'),function _0x50c9de(_0x470dcd,_0x1fa865){var _0x4180e4=_0x100d0b;return _0x1fa865[_0x4180e4('0x26e8')](_0x4180e4('0x178b'))?null:_0x470dcd[_0x4180e4('0x149f')]('userProfileSection@get',{'fields':_0x4180e4('0xe6a'),'userProfileId':_0x1fa865['getCurrentUser']()[_0x4180e4('0x2168')],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':_0x100d0b('0x111e')});}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x194f'),[])[_0x1a8446('0x1b14')](_0x179e84)['controller'](_0x1a8446('0xccf'),_0x1b1f35)[_0x1a8446('0x780')]('DispositionsController',_0x1fff10);const _0x27fd73=_0x4fb511['p']+_0x1a8446('0x13d7'),_0x636b8=_0x4fb511['p']+_0x1a8446('0xe6e');_0x44c5a8['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x44'),'trigger',_0x1a8446('0x157'),'Auth','license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x44c5a8(_0x233b73,_0x57e657,_0x171ddd,_0x304ddd,_0x2cb08b,_0x28ca5c,_0x735620,_0x3823fe,_0x42fdfd,_0x5dc483){var _0x481d4f=_0x1a8446,_0x1c4e9c=this;_0x1c4e9c['currentUser']=_0x735620[_0x481d4f('0xacc')](),_0x1c4e9c[_0x481d4f('0x2624')]=angular['copy'](_0x2cb08b),_0x1c4e9c[_0x481d4f('0x44')]=angular['copy'](_0x304ddd),_0x1c4e9c['setting']=_0x42fdfd,_0x1c4e9c[_0x481d4f('0x1202')]=_0x3823fe,_0x1c4e9c[_0x481d4f('0xada')]=_0x5dc483,_0x1c4e9c[_0x481d4f('0x234f')]=![],_0x1c4e9c[_0x481d4f('0x4c6')]=[];!_0x1c4e9c[_0x481d4f('0x2624')]&&(_0x1c4e9c['trigger']={'channel':_0x481d4f('0x1b9')},_0x1c4e9c['newTrigger']=!![]);_0x1c4e9c[_0x481d4f('0x1fd2')]=_0x430e16,_0x1c4e9c['saveTrigger']=_0xa9c05f,_0x1c4e9c[_0x481d4f('0x19c1')]=_0x414224,_0x1c4e9c[_0x481d4f('0x2023')]=_0x2c355d;function _0x430e16(){var _0x26d021=_0x481d4f;_0x1c4e9c[_0x26d021('0x4c6')]=[],_0x28ca5c[_0x26d021('0x2624')][_0x26d021('0x242b')](_0x1c4e9c[_0x26d021('0x2624')])[_0x26d021('0x1dc2')][_0x26d021('0xaa5')](function(_0x1a7936){var _0x31c5d1=_0x26d021;_0x1c4e9c[_0x31c5d1('0x44')][_0x31c5d1('0x6ee')](_0x1a7936['toJSON']()),_0x171ddd[_0x31c5d1('0xe10')]({'title':_0x57e657[_0x31c5d1('0x213f')](_0x31c5d1('0x64'))}),_0x2c355d(_0x1c4e9c[_0x31c5d1('0x44')]);})[_0x26d021('0x253d')](function(_0x2f5f61){var _0x2365ff=_0x26d021;if(_0x2f5f61[_0x2365ff('0x10fd')]&&_0x2f5f61[_0x2365ff('0x10fd')][_0x2365ff('0x4c6')]&&_0x2f5f61[_0x2365ff('0x10fd')][_0x2365ff('0x4c6')]['length']){_0x1c4e9c[_0x2365ff('0x4c6')]=_0x2f5f61[_0x2365ff('0x10fd')][_0x2365ff('0x4c6')]||[{'message':_0x2f5f61['toString'](),'type':'api.trigger.save'}];for(var _0x2b5766=0x0;_0x2b5766<_0x2f5f61['data']['errors'][_0x2365ff('0x2587')];_0x2b5766+=0x1){_0x171ddd[_0x2365ff('0x187f')]({'title':_0x2f5f61['data']['errors'][_0x2b5766]['type'],'msg':_0x2f5f61['data'][_0x2365ff('0x4c6')][_0x2b5766]['message']});}}else _0x171ddd[_0x2365ff('0x187f')]({'title':_0x2f5f61[_0x2365ff('0x2fa')]?_0x2365ff('0x16c2')+_0x2f5f61[_0x2365ff('0x2fa')]+'\x20-\x20'+_0x2f5f61[_0x2365ff('0x24df')]:_0x2365ff('0x107a'),'msg':_0x2f5f61['data']?JSON[_0x2365ff('0xa48')](_0x2f5f61[_0x2365ff('0x10fd')][_0x2365ff('0x1402')]):_0x2f5f61[_0x2365ff('0x684')]()});});}function _0xa9c05f(){var _0x340e03=_0x481d4f;_0x1c4e9c['errors']=[],_0x28ca5c[_0x340e03('0x2624')][_0x340e03('0x264e')]({'id':_0x1c4e9c[_0x340e03('0x2624')]['id']},_0x1c4e9c[_0x340e03('0x2624')])[_0x340e03('0x1dc2')]['then'](function(){var _0x51e9a1=_0x340e03;_0x1c4e9c[_0x51e9a1('0x44')]=_0x51538b()[_0x51e9a1('0x1246')](_0x1c4e9c['triggers'],function(_0x11fafb){var _0x462655=_0x51e9a1;if(_0x11fafb['id']===_0x1c4e9c['trigger']['id'])return _0x1c4e9c[_0x462655('0x2624')];else return _0x11fafb;}),_0x171ddd[_0x51e9a1('0xe10')]({'title':_0x57e657[_0x51e9a1('0x213f')](_0x51e9a1('0x2718'))}),_0x2c355d(_0x1c4e9c[_0x51e9a1('0x44')]);})['catch'](function(_0x3c8dd6){var _0x537149=_0x340e03;if(_0x3c8dd6[_0x537149('0x10fd')]&&_0x3c8dd6[_0x537149('0x10fd')][_0x537149('0x4c6')]&&_0x3c8dd6['data'][_0x537149('0x4c6')][_0x537149('0x2587')]){_0x1c4e9c[_0x537149('0x4c6')]=_0x3c8dd6['data'][_0x537149('0x4c6')]||[{'message':_0x3c8dd6[_0x537149('0x684')](),'type':'api.trigger.update'}];for(var _0x511755=0x0;_0x511755<_0x3c8dd6['data']['errors'][_0x537149('0x2587')];_0x511755++){_0x171ddd[_0x537149('0x187f')]({'title':_0x3c8dd6[_0x537149('0x10fd')][_0x537149('0x4c6')][_0x511755]['type'],'msg':_0x3c8dd6[_0x537149('0x10fd')]['errors'][_0x511755][_0x537149('0x1402')]});}}else _0x171ddd[_0x537149('0x187f')]({'title':_0x3c8dd6[_0x537149('0x2fa')]?_0x537149('0x16c2')+_0x3c8dd6['status']+_0x537149('0x169e')+_0x3c8dd6[_0x537149('0x24df')]:_0x537149('0x25ad'),'msg':_0x3c8dd6[_0x537149('0x10fd')]?JSON[_0x537149('0xa48')](_0x3c8dd6[_0x537149('0x10fd')][_0x537149('0x1402')]):_0x3c8dd6['toString']()});});}function _0x414224(_0xcad9be){var _0x578591=_0x481d4f;_0x1c4e9c[_0x578591('0x4c6')]=[];var _0x27d5e5=_0x233b73[_0x578591('0x281e')]({'skipHide':!![]})[_0x578591('0x110a')](_0x57e657[_0x578591('0x213f')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE'))[_0x578591('0x15af')](_0x57e657[_0x578591('0x213f')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE',{'name':_0x1c4e9c[_0x578591('0x2624')][_0x578591('0x25d6')]}))[_0x578591('0x5b5')](_0x578591('0x84e'))['ok'](_0x57e657[_0x578591('0x213f')]('TOOLS.DELETE'))[_0x578591('0x2030')](_0x57e657['instant'](_0x578591('0x1dd8')))[_0x578591('0x116d')](_0xcad9be);_0x233b73[_0x578591('0x1e6d')](_0x27d5e5)[_0x578591('0xaa5')](function(){var _0x901e61=_0x578591;_0x28ca5c[_0x901e61('0x2624')][_0x901e61('0x926')]({'id':_0x1c4e9c[_0x901e61('0x2624')]['id']})['$promise'][_0x901e61('0xaa5')](function(){var _0x57aca2=_0x901e61;_0x1c4e9c[_0x57aca2('0x44')]=_0x51538b()[_0x57aca2('0xdb7')](_0x1c4e9c[_0x57aca2('0x44')],function(_0x4f5ff8){var _0x4f9a43=_0x57aca2;return _0x4f5ff8['id']!==_0x1c4e9c[_0x4f9a43('0x2624')]['id'];}),_0x171ddd['success']({'title':_0x57e657['instant']('TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE')}),_0x2c355d(_0x1c4e9c[_0x57aca2('0x44')]);})[_0x901e61('0x253d')](function(_0x3c9a55){var _0x5b9d1b=_0x901e61;if(_0x3c9a55['data']&&_0x3c9a55[_0x5b9d1b('0x10fd')]['errors']&&_0x3c9a55[_0x5b9d1b('0x10fd')][_0x5b9d1b('0x4c6')][_0x5b9d1b('0x2587')]){_0x1c4e9c[_0x5b9d1b('0x4c6')]=_0x3c9a55[_0x5b9d1b('0x10fd')][_0x5b9d1b('0x4c6')]||[{'message':_0x3c9a55[_0x5b9d1b('0x684')](),'type':_0x5b9d1b('0x23ec')}];for(var _0x35eb8b=0x0;_0x35eb8b<_0x3c9a55[_0x5b9d1b('0x10fd')][_0x5b9d1b('0x4c6')][_0x5b9d1b('0x2587')];_0x35eb8b++){_0x171ddd[_0x5b9d1b('0x187f')]({'title':_0x3c9a55[_0x5b9d1b('0x10fd')][_0x5b9d1b('0x4c6')][_0x35eb8b][_0x5b9d1b('0x6c8')],'msg':_0x3c9a55[_0x5b9d1b('0x10fd')]['errors'][_0x35eb8b][_0x5b9d1b('0x1402')]});}}else _0x171ddd[_0x5b9d1b('0x187f')]({'title':_0x3c9a55[_0x5b9d1b('0x2fa')]?_0x5b9d1b('0x16c2')+_0x3c9a55[_0x5b9d1b('0x2fa')]+_0x5b9d1b('0x169e')+_0x3c9a55[_0x5b9d1b('0x24df')]:_0x5b9d1b('0x23ec'),'msg':_0x3c9a55[_0x5b9d1b('0x10fd')]?JSON[_0x5b9d1b('0xa48')](_0x3c9a55['data'][_0x5b9d1b('0x1402')]):_0x3c9a55[_0x5b9d1b('0x1402')]||_0x3c9a55['toString']()});});},function(){});}function _0x2c355d(_0x10ed74){var _0xf5b448=_0x481d4f;_0x233b73[_0xf5b448('0x1120')](_0x10ed74);}}const _0x4df97f=_0x44c5a8,_0x15e832=_0x4fb511['p']+_0x1a8446('0x976');_0x3ab6a1['$inject']=[_0x1a8446('0x51'),_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'toasty',_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x3ab6a1(_0x12686a,_0x405a1a,_0x4dc53b,_0x2126c8,_0x4e6e40,_0x3f32e9,_0x4f8efc,_0x2b08d9){var _0x40ac57=_0x1a8446,_0x3fdf36=this;_0x3fdf36['currentUser']=_0x2b08d9[_0x40ac57('0xacc')](),_0x3fdf36['trigger']={},_0x3fdf36['triggerActions']={'count':0x0,'rows':[]},_0x3fdf36[_0x40ac57('0x2597')]=[],_0x3fdf36['query']={'fields':'id,action,contact,data1,data2,data3,data4,data5,data6,data7,createdAt,updatedAt','limit':0xa,'page':0x1},_0x3fdf36[_0x40ac57('0x14d7')]={'zendesk':_0x40ac57('0x110b'),'salesforce':_0x40ac57('0x1a00'),'sugarcrm':'SugarCRM','freshdesk':_0x40ac57('0x3ea'),'desk':_0x40ac57('0xf26'),'zoho':'Zoho','vtiger':'vTiger','dynamics365':_0x40ac57('0x2388'),'servicenow':_0x40ac57('0x2085'),'freshsales':_0x40ac57('0x18a6')},_0x3fdf36[_0x40ac57('0x26d9')]={0x0:_0x40ac57('0x1a8f'),0x1:_0x40ac57('0x22d5'),0x2:_0x40ac57('0x1d50')},_0x3fdf36[_0x40ac57('0x2318')]=_0x48420f,_0x3fdf36[_0x40ac57('0xe10')]=_0x4081ae,_0x3fdf36[_0x40ac57('0x1c59')]=_0x3ddd01,_0x3fdf36[_0x40ac57('0x20ed')]=_0x252261,_0x3fdf36['exportSelectedTriggerActions']=_0x5511ec,_0x3fdf36[_0x40ac57('0x1416')]=_0x211a2e,_0x3fdf36[_0x40ac57('0xcc0')]=_0x3382da;function _0x48420f(_0x2d3838,_0x169c33){var _0x1cd622=_0x40ac57;_0x3fdf36[_0x1cd622('0x2624')]=_0x2d3838,_0x3fdf36[_0x1cd622('0xada')]=typeof _0x169c33!=='undefined'?_0x169c33:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3fdf36[_0x1cd622('0x582')][_0x1cd622('0x1fd4')]=_0x3fdf36[_0x1cd622('0x2624')]['id'],_0x3fdf36[_0x1cd622('0x582')]['id']=_0x3fdf36['trigger']['id'],_0x3ddd01();}function _0x135bdc(){var _0x11f25c=_0x40ac57;_0x2b08d9[_0x11f25c('0xcf2')]()?_0x4f8efc[_0x11f25c('0x26b4')][_0x11f25c('0x2122')]({'fields':_0x11f25c('0x17fe'),'sort':_0x11f25c('0x25d6'),'nolimit':'true'})[_0x11f25c('0x1dc2')][_0x11f25c('0xaa5')](function(_0x33c18e){var _0x3f9981=_0x11f25c;_0x3fdf36[_0x3f9981('0x1126')]=_0x33c18e[_0x3f9981('0x580')]||[];})[_0x11f25c('0x253d')](function(_0x255909){var _0x2d6775=_0x11f25c;_0x3f32e9['error']({'title':_0x255909[_0x2d6775('0x2fa')]?_0x2d6775('0x16c2')+_0x255909[_0x2d6775('0x2fa')]+_0x2d6775('0x169e')+_0x255909[_0x2d6775('0x24df')]:_0x2d6775('0x1adf'),'msg':_0x255909[_0x2d6775('0x10fd')]?JSON['stringify'](_0x255909['data']):_0x255909[_0x2d6775('0x684')]()});}):_0x4f8efc[_0x11f25c('0x26b4')][_0x11f25c('0x2122')]({'fields':'id,name','sort':'name','nolimit':_0x11f25c('0x1c5c')})[_0x11f25c('0x1dc2')][_0x11f25c('0xaa5')](function(_0x3fbe3a){var _0x5f2713=_0x11f25c;_0x3fdf36[_0x5f2713('0x1126')]=_0x3fbe3a[_0x5f2713('0x580')]||[];})['then'](function(){var _0x52aac2=_0x11f25c;return _0x4f8efc[_0x52aac2('0x1a50')][_0x52aac2('0x2122')]({'userProfileId':_0x3fdf36[_0x52aac2('0x7fc')][_0x52aac2('0x2168')],'sectionId':0x12d})['$promise'];})[_0x11f25c('0xaa5')](function(_0x2fd190){var _0x218fbd=_0x11f25c,_0x2125c8=_0x2fd190&&_0x2fd190['rows']?_0x2fd190[_0x218fbd('0x580')][0x0]:null;if(!_0x2125c8){var _0x436f2f=[],_0x27a79e=[];_0x3fdf36[_0x218fbd('0x1ac4')][_0x218fbd('0x580')][_0x218fbd('0x15b5')](function(_0x2f1392){var _0x3d7fc1=_0x218fbd;if(_0x2f1392[_0x3d7fc1('0xb08')]==='contactManager'){var _0x111572=_0x51538b()[_0x3d7fc1('0xe9e')](_0x3fdf36[_0x3d7fc1('0x1126')],{'id':Number(_0x2f1392[_0x3d7fc1('0x228')])});_0x27a79e[_0x3d7fc1('0x1599')](_0x111572);}});for(var _0x40ecac=0x0;_0x40ecac<_0x3fdf36[_0x218fbd('0x1126')]['length'];_0x40ecac++){var _0x579e78=_0x51538b()[_0x218fbd('0x2c2')](_0x27a79e,{'id':_0x3fdf36[_0x218fbd('0x1126')][_0x40ecac]['id']});_0x579e78&&(_0x3fdf36[_0x218fbd('0x1126')][_0x40ecac][_0x218fbd('0x12eb')]=![],_0x436f2f['push'](_0x3fdf36[_0x218fbd('0x1126')][_0x40ecac]));}_0x3fdf36[_0x218fbd('0x1126')]=_0x436f2f;}else{if(!_0x2125c8[_0x218fbd('0x26cc')])return _0x4f8efc[_0x218fbd('0x249a')]['get']({'sectionId':_0x2125c8['id']})[_0x218fbd('0x1dc2')][_0x218fbd('0xaa5')](function(_0x87d925){var _0xcbd94a=_0x218fbd,_0x518e5e=_0x51538b()[_0xcbd94a('0x1246')](_0x87d925[_0xcbd94a('0x580')],function(_0x37cda5){var _0x13a904=_0xcbd94a;return _0x51538b()['find'](_0x3fdf36[_0x13a904('0x1126')],{'id':_0x37cda5[_0x13a904('0xbcd')]});}),_0x226cee=null;_0x226cee=[],_0x3fdf36[_0xcbd94a('0x1ac4')]['rows'][_0xcbd94a('0x15b5')](function(_0xdfbf35){var _0x355ad0=_0xcbd94a;if(_0xdfbf35[_0x355ad0('0xb08')]===_0x355ad0('0x70f')){var _0x39de7f=_0x51538b()[_0x355ad0('0xe9e')](_0x3fdf36[_0x355ad0('0x1126')],{'id':Number(_0xdfbf35[_0x355ad0('0x228')])});_0x226cee[_0x355ad0('0x1599')](_0x39de7f);}}),!_0x51538b()['isEmpty'](_0x226cee)&&_0x226cee['forEach'](function(_0x5e1c7f){var _0x35becf=_0xcbd94a;if(!_0x51538b()[_0x35becf('0x2c2')](_0x518e5e,['id',_0x5e1c7f['id']])){var _0x59f5fb=_0x51538b()[_0x35becf('0xe9e')](_0x3fdf36[_0x35becf('0x1126')],{'id':_0x5e1c7f['id']});_0x59f5fb[_0x35becf('0x12eb')]=![],_0x518e5e['push'](_0x59f5fb);}}),_0x3fdf36[_0xcbd94a('0x1126')]=_0x518e5e;});}})['catch'](function(_0x479beb){var _0x1e68a7=_0x11f25c;_0x3f32e9[_0x1e68a7('0x187f')]({'title':_0x479beb[_0x1e68a7('0x2fa')]?_0x1e68a7('0x16c2')+_0x479beb[_0x1e68a7('0x2fa')]+_0x1e68a7('0x169e')+_0x479beb[_0x1e68a7('0x24df')]:'SYSTEM:GETlists','msg':_0x479beb[_0x1e68a7('0x10fd')]?JSON['stringify'](_0x479beb[_0x1e68a7('0x10fd')]):_0x479beb[_0x1e68a7('0x684')]()});});}function _0x2df714(){var _0x132e29=_0x40ac57,_0x5206eb=_0x51538b()(_0x3fdf36['triggerActions'][_0x132e29('0x580')])[_0x132e29('0x1246')](function(_0x4908ff){var _0x368ff3=_0x132e29;return _0x4908ff[_0x368ff3('0xb08')]===_0x368ff3('0x15a')?_0x4908ff['data1']:undefined;})[_0x132e29('0x1c9e')]()[_0x132e29('0x764')]()[_0x132e29('0x12f4')]();_0x5206eb[_0x132e29('0x15b5')](function(_0x5d2567){var _0x10c2d1=_0x132e29,_0x1cf541=_0x5d2567+_0x10c2d1('0x177e');if(!_0x3fdf36[_0x1cf541]){var _0x3901e5=_0x10c2d1('0xadc')+_0x51538b()[_0x10c2d1('0x196a')](_0x5d2567)+'Account';_0x4f8efc[_0x3901e5][_0x10c2d1('0x2122')]({'fields':_0x10c2d1('0x17fe'),'sort':'id','nolimit':_0x10c2d1('0x1c5c')})[_0x10c2d1('0x1dc2')][_0x10c2d1('0xaa5')](function(_0xc42dc9){_0x3fdf36[_0x1cf541]=_0xc42dc9['rows']||[];})['catch'](function(_0x4b7f88){var _0x21697c=_0x10c2d1;_0x3f32e9[_0x21697c('0x187f')]({'title':_0x4b7f88[_0x21697c('0x2fa')]?'API:'+_0x4b7f88[_0x21697c('0x2fa')]+_0x21697c('0x169e')+_0x4b7f88['statusText']:_0x21697c('0xa2c')+_0x1cf541['toUpperCase']()+_0x21697c('0x1b85'),'msg':_0x4b7f88[_0x21697c('0x10fd')]?JSON[_0x21697c('0xa48')](_0x4b7f88[_0x21697c('0x10fd')]):_0x4b7f88[_0x21697c('0x684')]()});});}});}function _0xb59d91(){var _0xaa8e9f=_0x40ac57;_0x2b08d9[_0xaa8e9f('0xcf2')]()?_0x4f8efc[_0xaa8e9f('0x285c')][_0xaa8e9f('0x2122')]({'fields':'id,name','sort':'name','nolimit':_0xaa8e9f('0x1c5c')})[_0xaa8e9f('0x1dc2')][_0xaa8e9f('0xaa5')](function(_0x48e519){var _0x3f6abc=_0xaa8e9f;_0x3fdf36[_0x3f6abc('0x8d1')]=_0x48e519[_0x3f6abc('0x580')]||[];})[_0xaa8e9f('0x253d')](function(_0x290a40){var _0x2ed92b=_0xaa8e9f;_0x3f32e9['error']({'title':_0x290a40['status']?'API:'+_0x290a40['status']+_0x2ed92b('0x169e')+_0x290a40[_0x2ed92b('0x24df')]:'SYSTEM:GET_PROJECTS','msg':_0x290a40[_0x2ed92b('0x10fd')]?JSON['stringify'](_0x290a40['data']):_0x290a40['toString']()});}):_0x4f8efc['jscriptyProject'][_0xaa8e9f('0x2122')]({'fields':'id,name','sort':_0xaa8e9f('0x25d6'),'nolimit':'true'})['$promise']['then'](function(_0x67bef3){var _0x93c3b5=_0xaa8e9f;_0x3fdf36[_0x93c3b5('0x8d1')]=_0x67bef3['rows']||[];})['then'](function(){var _0x4ec35b=_0xaa8e9f;return _0x4f8efc['userProfileSection'][_0x4ec35b('0x2122')]({'userProfileId':_0x3fdf36['currentUser'][_0x4ec35b('0x2168')],'sectionId':0x6a5})[_0x4ec35b('0x1dc2')];})[_0xaa8e9f('0xaa5')](function(_0x5e2569){var _0x191881=_0xaa8e9f,_0xcd7ca3=_0x5e2569&&_0x5e2569[_0x191881('0x580')]?_0x5e2569['rows'][0x0]:null;if(!_0xcd7ca3){var _0x3da832=[],_0x31f900=[];_0x3fdf36[_0x191881('0x1ac4')][_0x191881('0x580')]['forEach'](function(_0x3a0c37){var _0x412692=_0x191881;if(_0x3a0c37[_0x412692('0xb08')]===_0x412692('0x1886')){var _0x39035f=_0x51538b()[_0x412692('0xe9e')](_0x3fdf36[_0x412692('0x8d1')],{'id':Number(_0x3a0c37['data1'])});_0x31f900[_0x412692('0x1599')](_0x39035f);}});for(var _0x337b8c=0x0;_0x337b8c<_0x3fdf36[_0x191881('0x8d1')][_0x191881('0x2587')];_0x337b8c++){var _0x4bf556=_0x51538b()[_0x191881('0x2c2')](_0x31f900,{'id':_0x3fdf36[_0x191881('0x8d1')][_0x337b8c]['id']});_0x4bf556&&(_0x3fdf36[_0x191881('0x8d1')][_0x337b8c][_0x191881('0x12eb')]=![],_0x3da832['push'](_0x3fdf36[_0x191881('0x8d1')][_0x337b8c]));}_0x3fdf36[_0x191881('0x8d1')]=_0x3da832;}else{if(!_0xcd7ca3[_0x191881('0x26cc')])return _0x4f8efc[_0x191881('0x249a')]['get']({'sectionId':_0xcd7ca3['id']})[_0x191881('0x1dc2')]['then'](function(_0x52d2d8){var _0x558a0f=_0x191881,_0x4063c9=_0x51538b()[_0x558a0f('0x1246')](_0x52d2d8[_0x558a0f('0x580')],function(_0x1a0e78){var _0x1cff1e=_0x558a0f;return _0x51538b()[_0x1cff1e('0xe9e')](_0x3fdf36[_0x1cff1e('0x8d1')],{'id':_0x1a0e78[_0x1cff1e('0xbcd')]});}),_0x583285=null;_0x583285=[],_0x3fdf36['triggerActions']['rows'][_0x558a0f('0x15b5')](function(_0x2b4995){var _0x2a510f=_0x558a0f;if(_0x2b4995[_0x2a510f('0xb08')]===_0x2a510f('0x1886')){var _0x58f604=_0x51538b()[_0x2a510f('0xe9e')](_0x3fdf36[_0x2a510f('0x8d1')],{'id':Number(_0x2b4995[_0x2a510f('0x228')])});_0x583285['push'](_0x58f604);}}),!_0x51538b()[_0x558a0f('0x116b')](_0x583285)&&_0x583285['forEach'](function(_0x13ffff){var _0x363c62=_0x558a0f;if(!_0x51538b()['some'](_0x4063c9,['id',_0x13ffff['id']])){var _0x51a844=_0x51538b()[_0x363c62('0xe9e')](_0x3fdf36[_0x363c62('0x8d1')],{'id':_0x13ffff['id']});_0x51a844[_0x363c62('0x12eb')]=![],_0x4063c9[_0x363c62('0x1599')](_0x51a844);}}),_0x3fdf36['projects']=_0x4063c9;});}})[_0xaa8e9f('0x253d')](function(_0x48adfe){var _0x51d993=_0xaa8e9f;_0x3f32e9[_0x51d993('0x187f')]({'title':_0x48adfe[_0x51d993('0x2fa')]?_0x51d993('0x16c2')+_0x48adfe['status']+_0x51d993('0x169e')+_0x48adfe[_0x51d993('0x24df')]:_0x51d993('0x19d7'),'msg':_0x48adfe[_0x51d993('0x10fd')]?JSON[_0x51d993('0xa48')](_0x48adfe[_0x51d993('0x10fd')]):_0x48adfe[_0x51d993('0x684')]()});});}function _0x45fb22(){var _0x40ffe1=_0x40ac57;_0x2b08d9['isAdmin']()?_0x4f8efc[_0x40ffe1('0x11f6')][_0x40ffe1('0x2122')]({'fields':_0x40ffe1('0x17fe'),'sort':'id','nolimit':'true'})[_0x40ffe1('0x1dc2')][_0x40ffe1('0xaa5')](function(_0x1f8566){var _0x1e463d=_0x40ffe1;_0x3fdf36[_0x1e463d('0x900')]=_0x1f8566[_0x1e463d('0x580')]||[];})[_0x40ffe1('0x253d')](function(_0x67ec87){var _0x559dbe=_0x40ffe1;_0x3f32e9['error']({'title':_0x67ec87[_0x559dbe('0x2fa')]?'API:'+_0x67ec87[_0x559dbe('0x2fa')]+'\x20-\x20'+_0x67ec87[_0x559dbe('0x24df')]:_0x559dbe('0x26f1'),'msg':_0x67ec87[_0x559dbe('0x10fd')]?JSON['stringify'](_0x67ec87[_0x559dbe('0x10fd')]):_0x67ec87['toString']()});}):_0x4f8efc['template'][_0x40ffe1('0x2122')]({'fields':'id,name','sort':'id','nolimit':_0x40ffe1('0x1c5c')})[_0x40ffe1('0x1dc2')][_0x40ffe1('0xaa5')](function(_0x183709){var _0x2190bc=_0x40ffe1;_0x3fdf36[_0x2190bc('0x900')]=_0x183709[_0x2190bc('0x580')]||[];})[_0x40ffe1('0xaa5')](function(){var _0x14a4be=_0x40ffe1;return _0x4f8efc[_0x14a4be('0x1a50')][_0x14a4be('0x2122')]({'userProfileId':_0x3fdf36['currentUser'][_0x14a4be('0x2168')],'sectionId':0x3f1})[_0x14a4be('0x1dc2')];})[_0x40ffe1('0xaa5')](function(_0x582ab6){var _0x5e915b=_0x40ffe1,_0x20787d=_0x582ab6&&_0x582ab6[_0x5e915b('0x580')]?_0x582ab6[_0x5e915b('0x580')][0x0]:null;if(!_0x20787d){var _0x45999b=[],_0x5b92b2=[];_0x3fdf36[_0x5e915b('0x1ac4')]['rows'][_0x5e915b('0x15b5')](function(_0xbb2d67){var _0x1ae31f=_0x5e915b;if(_0x51538b()[_0x1ae31f('0x13d6')]([_0x1ae31f('0xe92'),_0x1ae31f('0xa39')],_0xbb2d67[_0x1ae31f('0xb08')])){var _0x504631=_0x51538b()[_0x1ae31f('0xe9e')](_0x3fdf36[_0x1ae31f('0x900')],{'id':Number(_0xbb2d67['data2'])});_0x5b92b2[_0x1ae31f('0x1599')](_0x504631);}});for(var _0x30f799=0x0;_0x30f799<_0x3fdf36[_0x5e915b('0x900')][_0x5e915b('0x2587')];_0x30f799++){var _0x21f574=_0x51538b()[_0x5e915b('0x2c2')](_0x5b92b2,{'id':_0x3fdf36[_0x5e915b('0x900')][_0x30f799]['id']});_0x21f574&&(_0x3fdf36[_0x5e915b('0x900')][_0x30f799][_0x5e915b('0x12eb')]=![],_0x45999b[_0x5e915b('0x1599')](_0x3fdf36[_0x5e915b('0x900')][_0x30f799]));}_0x3fdf36[_0x5e915b('0x900')]=_0x45999b;}else{if(!_0x20787d['autoAssociation'])return _0x4f8efc[_0x5e915b('0x249a')][_0x5e915b('0x2122')]({'sectionId':_0x20787d['id']})[_0x5e915b('0x1dc2')][_0x5e915b('0xaa5')](function(_0x3c5874){var _0x2c5f75=_0x5e915b,_0x5ab0c3=_0x51538b()[_0x2c5f75('0x1246')](_0x3c5874[_0x2c5f75('0x580')],function(_0xfdc73b){var _0xbdc689=_0x2c5f75;return _0x51538b()[_0xbdc689('0xe9e')](_0x3fdf36[_0xbdc689('0x900')],{'id':_0xfdc73b[_0xbdc689('0xbcd')]});}),_0x28836b=null;_0x28836b=[],_0x3fdf36[_0x2c5f75('0x1ac4')][_0x2c5f75('0x580')][_0x2c5f75('0x15b5')](function(_0x491c58){var _0x4f2adb=_0x2c5f75;if(_0x51538b()['includes']([_0x4f2adb('0xe92'),_0x4f2adb('0xa39')],_0x491c58[_0x4f2adb('0xb08')])){var _0xee992d=_0x51538b()[_0x4f2adb('0xe9e')](_0x3fdf36[_0x4f2adb('0x900')],{'id':Number(_0x491c58['data2'])});_0x28836b[_0x4f2adb('0x1599')](_0xee992d);}}),!_0x51538b()[_0x2c5f75('0x116b')](_0x28836b)&&_0x28836b[_0x2c5f75('0x15b5')](function(_0x403314){var _0x4b7236=_0x2c5f75;if(!_0x51538b()[_0x4b7236('0x2c2')](_0x5ab0c3,['id',_0x403314['id']])){var _0x5af0bf=_0x51538b()[_0x4b7236('0xe9e')](_0x3fdf36[_0x4b7236('0x900')],{'id':_0x403314['id']});_0x5af0bf['canSelect']=![],_0x5ab0c3[_0x4b7236('0x1599')](_0x5af0bf);}}),_0x3fdf36[_0x2c5f75('0x900')]=_0x5ab0c3;});}})['catch'](function(_0x4e1d50){var _0x5818f0=_0x40ffe1;_0x3f32e9[_0x5818f0('0x187f')]({'title':_0x4e1d50[_0x5818f0('0x2fa')]?_0x5818f0('0x16c2')+_0x4e1d50[_0x5818f0('0x2fa')]+_0x5818f0('0x169e')+_0x4e1d50[_0x5818f0('0x24df')]:_0x5818f0('0x26f1'),'msg':_0x4e1d50['data']?JSON['stringify'](_0x4e1d50['data']):_0x4e1d50['toString']()});});}function _0x14f8b8(){var _0x41464d=_0x40ac57;if(_0x51538b()[_0x41464d('0x2c2')](_0x3fdf36[_0x41464d('0x1ac4')][_0x41464d('0x580')],[_0x41464d('0xb08'),_0x41464d('0x70f')])){if(!_0x3fdf36[_0x41464d('0x1126')])_0x135bdc();}_0x51538b()[_0x41464d('0x2c2')](_0x3fdf36[_0x41464d('0x1ac4')]['rows'],[_0x41464d('0xb08'),'integration'])&&_0x2df714();if(_0x51538b()[_0x41464d('0x2c2')](_0x3fdf36[_0x41464d('0x1ac4')]['rows'],function(_0xc0ec63){var _0x581b51=_0x41464d;return _0x51538b()[_0x581b51('0x13d6')]([_0x581b51('0xe92'),_0x581b51('0xa39')],_0xc0ec63[_0x581b51('0xb08')]);})){if(!_0x3fdf36[_0x41464d('0x900')])_0x45fb22();}if(_0x51538b()[_0x41464d('0x2c2')](_0x3fdf36[_0x41464d('0x1ac4')][_0x41464d('0x580')],['action',_0x41464d('0x1886')])){if(!_0x3fdf36['projects'])_0xb59d91();}}function _0x4081ae(_0x594858){_0x3fdf36['triggerActions']=_0x594858||{'count':0x0,'rows':[]},_0x14f8b8();}function _0x3ddd01(){var _0x15e740=_0x40ac57;_0x3fdf36[_0x15e740('0x582')]['offset']=(_0x3fdf36[_0x15e740('0x582')][_0x15e740('0x41')]-0x1)*_0x3fdf36[_0x15e740('0x582')][_0x15e740('0xf4d')],_0x3fdf36[_0x15e740('0x159a')]=_0x4f8efc['trigger'][_0x15e740('0x136c')](_0x3fdf36[_0x15e740('0x582')],_0x4081ae)[_0x15e740('0x1dc2')];}function _0x252261(_0x156eff,_0x5193db){var _0x3e7283=_0x40ac57;_0x2126c8[_0x3e7283('0x1e6d')]({'controller':'CreateOrEditActionDialogController','controllerAs':'vm','templateUrl':_0x15e832,'parent':angular[_0x3e7283('0x1aa8')](_0x4e6e40[_0x3e7283('0x54c')]),'targetEvent':_0x156eff,'clickOutsideToClose':!![],'locals':{'trigger':_0x3fdf36[_0x3e7283('0x2624')],'action':_0x5193db,'actions':_0x3fdf36['triggerActions'][_0x3e7283('0x580')],'license':null,'setting':null,'crudPermissions':_0x3fdf36[_0x3e7283('0xada')]}})[_0x3e7283('0xaa5')](function(_0x59864c){var _0x2dabfb=_0x3e7283;_0x59864c&&(_0x3fdf36[_0x2dabfb('0x1ac4')]={'count':_0x59864c[_0x2dabfb('0x2587')],'rows':_0x59864c},_0x14f8b8());});}function _0x211a2e(_0x4427d1,_0x16d87a){var _0x3216db=_0x40ac57,_0x566c86=_0x2126c8[_0x3216db('0x281e')]()[_0x3216db('0x110a')](_0x405a1a[_0x3216db('0x213f')]('TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE'))['ariaLabel']('Delete\x20action')[_0x3216db('0x116d')](_0x16d87a)['ok']('OK')['cancel'](_0x405a1a[_0x3216db('0x213f')](_0x3216db('0x1dd8')));_0x2126c8['show'](_0x566c86)[_0x3216db('0xaa5')](function(){_0x5b7c3d(_0x4427d1,!![]);});}function _0x5b7c3d(_0x500863,_0x2ecb7b){var _0x617919=_0x40ac57;_0x4f8efc[_0x617919('0xb08')][_0x617919('0x926')]({'id':_0x500863['id']})[_0x617919('0x1dc2')]['then'](function(){var _0x30d54d=_0x617919;_0x3ddd01(),_0x2ecb7b&&_0x3f32e9[_0x30d54d('0xe10')]({'title':_0x405a1a[_0x30d54d('0x213f')](_0x30d54d('0x1bb3'))});})[_0x617919('0x253d')](function(_0x17f3ee){var _0x3a6388=_0x617919;if(_0x17f3ee['data']&&_0x17f3ee['data'][_0x3a6388('0x4c6')]&&_0x17f3ee[_0x3a6388('0x10fd')][_0x3a6388('0x4c6')]['length']){_0x3fdf36['errors']=_0x17f3ee[_0x3a6388('0x10fd')][_0x3a6388('0x4c6')]||[{'message':_0x17f3ee['toString'](),'type':'SYSTEM:GETtrigger'}];for(var _0x933ccb=0x0;_0x933ccb<_0x17f3ee[_0x3a6388('0x10fd')][_0x3a6388('0x4c6')][_0x3a6388('0x2587')];_0x933ccb++){_0x3f32e9[_0x3a6388('0x187f')]({'title':_0x17f3ee[_0x3a6388('0x10fd')][_0x3a6388('0x4c6')][_0x933ccb]['type'],'msg':_0x17f3ee[_0x3a6388('0x10fd')][_0x3a6388('0x4c6')][_0x933ccb][_0x3a6388('0x1402')]});}}else _0x3f32e9[_0x3a6388('0x187f')]({'title':_0x17f3ee[_0x3a6388('0x2fa')]?_0x3a6388('0x16c2')+_0x17f3ee['status']+_0x3a6388('0x169e')+_0x17f3ee[_0x3a6388('0x24df')]:_0x3a6388('0x165f'),'msg':_0x17f3ee[_0x3a6388('0x10fd')]?JSON[_0x3a6388('0xa48')](_0x17f3ee[_0x3a6388('0x10fd')][_0x3a6388('0x1402')]):_0x17f3ee[_0x3a6388('0x1402')]||_0x17f3ee[_0x3a6388('0x684')]()});});}function _0x5511ec(){var _0x50e9bc=_0x40ac57,_0x9007c6=angular['copy'](_0x3fdf36['selectedTriggerActions']);return _0x3fdf36[_0x50e9bc('0x2597')]=[],_0x9007c6;}function _0x3382da(_0x3b4b75){var _0x333300=_0x40ac57,_0xb4f1fe=_0x2126c8[_0x333300('0x281e')]()[_0x333300('0x110a')](_0x405a1a['instant'](_0x333300('0x2413')))[_0x333300('0x15af')](_0x405a1a['instant'](_0x333300('0x1833'),{'total':_0x3fdf36['selectedTriggerActions'][_0x333300('0x2587')]}))[_0x333300('0x5b5')]('Delete\x20actions')[_0x333300('0x116d')](_0x3b4b75)['ok']('OK')[_0x333300('0x2030')](_0x405a1a['instant'](_0x333300('0x1dd8')));_0x2126c8['show'](_0xb4f1fe)[_0x333300('0xaa5')](function(){var _0x3d1d41=_0x333300;_0x3fdf36['selectedTriggerActions'][_0x3d1d41('0x15b5')](function(_0x52a9e8){_0x5b7c3d(_0x52a9e8);}),_0x3fdf36['selectedTriggerActions']=[],_0x3f32e9[_0x3d1d41('0xe10')]({'title':_0x405a1a[_0x3d1d41('0x213f')](_0x3d1d41('0x1c36'))});});}var _0x283f2f=!![],_0x54fd1a=0x1;_0x12686a['$watch'](_0x40ac57('0x74c'),function(_0x46baed,_0x3e0dbe){var _0x4b6cf2=_0x40ac57;_0x283f2f?_0x4dc53b(function(){_0x283f2f=![];}):(!_0x3e0dbe&&(_0x54fd1a=_0x3fdf36[_0x4b6cf2('0x582')]['page']),_0x46baed!==_0x3e0dbe&&(_0x3fdf36[_0x4b6cf2('0x582')]['page']=0x1),!_0x46baed&&(_0x3fdf36[_0x4b6cf2('0x582')][_0x4b6cf2('0x41')]=_0x54fd1a),_0x3ddd01());});}const _0x10b75c=_0x3ab6a1;_0x343117['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x2378'),_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x1e41'),'action',_0x1a8446('0x2624'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x343117(_0x2a73bf,_0x14bfa3,_0x366c8e,_0x382f2a,_0x4e1919,_0x34b268,_0x5bab4e,_0x5dfd07,_0x5597d2,_0x98d84e,_0x14a559,_0x511ab2){var _0x23ac2d=_0x1a8446,_0x216413=this;_0x216413[_0x23ac2d('0x7fc')]=_0x5597d2['getCurrentUser'](),_0x216413[_0x23ac2d('0xb08')]=angular[_0x23ac2d('0x20a')](_0x34b268),_0x216413[_0x23ac2d('0x1e41')]=angular[_0x23ac2d('0x20a')](_0x4e1919),_0x216413['setting']=_0x14a559,_0x216413[_0x23ac2d('0x1202')]=_0x98d84e,_0x216413[_0x23ac2d('0xada')]=_0x511ab2,_0x216413[_0x23ac2d('0x2853')]=![],_0x216413[_0x23ac2d('0x4c6')]=[],_0x216413[_0x23ac2d('0x2624')]=angular[_0x23ac2d('0x20a')](_0x5bab4e);!_0x216413['action']&&(_0x216413[_0x23ac2d('0xb08')]={},_0x216413[_0x23ac2d('0x2853')]=!![]);_0x216413[_0x23ac2d('0xb08')][_0x23ac2d('0x1fd4')]=_0x2a73bf[_0x23ac2d('0x25cf')]['id']||undefined,_0x216413[_0x23ac2d('0x1000')]=['phone','mobile',_0x23ac2d('0x16c4')],_0x216413[_0x23ac2d('0x2349')]=_0x5532f7,_0x216413[_0x23ac2d('0x35a')]=_0x1b89df,_0x216413['deleteAction']=_0x5e8258,_0x216413[_0x23ac2d('0x403')]=_0x3f7267,_0x216413[_0x23ac2d('0x1e00')]=_0x14f7bc,_0x216413[_0x23ac2d('0x1be8')]=_0x50b31f,_0x216413['onActionSelection']=_0x13e85b,_0x216413[_0x23ac2d('0x8ac')]=_0x1ce612,_0x216413['onListSelection']=_0x181b96,_0x216413[_0x23ac2d('0x25fd')]=_0x3216d7,_0x216413[_0x23ac2d('0x150')]=_0x3a2bcd,_0x216413[_0x23ac2d('0x81f')]=_0x354ef7,_0x216413[_0x23ac2d('0x2023')]=_0x3f1a6b;function _0x3f7267(){var _0x380e3d=_0x23ac2d;_0x5597d2[_0x380e3d('0x9f0')](_0x380e3d('0x1a1f'))[_0x380e3d('0xaa5')](function(_0x39b989){var _0x5c131f=_0x380e3d;_0x216413[_0x5c131f('0x16c6')]=_0x39b989;})[_0x380e3d('0x253d')](function(_0x20d857){var _0x1da762=_0x380e3d;_0x382f2a[_0x1da762('0x187f')]({'title':_0x20d857[_0x1da762('0x2fa')]?_0x1da762('0x16c2')+_0x20d857[_0x1da762('0x2fa')]+'\x20-\x20'+_0x20d857[_0x1da762('0x24df')]:_0x1da762('0x2537'),'msg':_0x20d857['data']?JSON[_0x1da762('0xa48')](_0x20d857['data']):_0x20d857[_0x1da762('0x684')]()});});if(_0x216413['action'][_0x380e3d('0xb08')])_0x27b805();}function _0x14f7bc(){var _0x404528=_0x23ac2d,_0x3965bf=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x5597d2[_0x404528('0x162c')](_0x3965bf)[_0x404528('0xaa5')](function(_0x256795){var _0x6c76ef=_0x404528;_0x216413[_0x6c76ef('0x24b1')]=_0x51538b()[_0x6c76ef('0x283c')](_0x216413[_0x6c76ef('0x24b1')],_0x256795);})[_0x404528('0x253d')](function(_0x26b618){var _0x5bbb4e=_0x404528;_0x382f2a['error']({'title':_0x26b618['status']?_0x5bbb4e('0x16c2')+_0x26b618[_0x5bbb4e('0x2fa')]+_0x5bbb4e('0x169e')+_0x26b618['statusText']:_0x5bbb4e('0x821'),'msg':_0x26b618['data']?JSON[_0x5bbb4e('0xa48')](_0x26b618['data']):_0x26b618['toString']()});});}function _0x50b31f(){var _0xa8bc21=_0x23ac2d;if(!_0x216413[_0xa8bc21('0x2853')])_0x5711bc();}function _0xce84ce(){var _0x1d4eef=_0x23ac2d;_0x5597d2[_0x1d4eef('0xcf2')]()?_0x5dfd07[_0x1d4eef('0x26b4')][_0x1d4eef('0x2122')]({'fields':_0x1d4eef('0x17fe'),'sort':'name','nolimit':'true'})[_0x1d4eef('0x1dc2')][_0x1d4eef('0xaa5')](function(_0x11d670){var _0x236ffd=_0x1d4eef;_0x216413[_0x236ffd('0x1126')]=_0x11d670[_0x236ffd('0x580')]||[];})[_0x1d4eef('0x253d')](function(_0x10d4b6){var _0x444874=_0x1d4eef;_0x382f2a[_0x444874('0x187f')]({'title':_0x10d4b6[_0x444874('0x2fa')]?_0x444874('0x16c2')+_0x10d4b6['status']+_0x444874('0x169e')+_0x10d4b6[_0x444874('0x24df')]:_0x444874('0x1adf'),'msg':_0x10d4b6[_0x444874('0x10fd')]?JSON[_0x444874('0xa48')](_0x10d4b6[_0x444874('0x10fd')]):_0x10d4b6['toString']()});}):_0x5dfd07[_0x1d4eef('0x26b4')][_0x1d4eef('0x2122')]({'fields':_0x1d4eef('0x17fe'),'sort':_0x1d4eef('0x25d6'),'nolimit':_0x1d4eef('0x1c5c')})[_0x1d4eef('0x1dc2')][_0x1d4eef('0xaa5')](function(_0x2b2a7a){var _0x145cfd=_0x1d4eef;_0x216413['lists']=_0x2b2a7a[_0x145cfd('0x580')]||[];})[_0x1d4eef('0xaa5')](function(){var _0x2ae83a=_0x1d4eef;return _0x5dfd07[_0x2ae83a('0x1a50')][_0x2ae83a('0x2122')]({'userProfileId':_0x216413[_0x2ae83a('0x7fc')][_0x2ae83a('0x2168')],'sectionId':0x12d})[_0x2ae83a('0x1dc2')];})[_0x1d4eef('0xaa5')](function(_0x2c0e58){var _0x489e09=_0x1d4eef,_0xc7826f=_0x2c0e58&&_0x2c0e58[_0x489e09('0x580')]?_0x2c0e58[_0x489e09('0x580')][0x0]:null;if(!_0xc7826f){var _0x23b574=[],_0xc8fea5=[];_0x216413[_0x489e09('0x1ac4')][_0x489e09('0x580')]['forEach'](function(_0x3b9097){var _0x264efb=_0x489e09;if(_0x3b9097[_0x264efb('0xb08')]===_0x264efb('0x70f')){var _0x499670=_0x51538b()[_0x264efb('0xe9e')](_0x216413[_0x264efb('0x1126')],{'id':Number(_0x3b9097[_0x264efb('0x228')])});_0xc8fea5[_0x264efb('0x1599')](_0x499670);}});for(var _0x391e86=0x0;_0x391e86<_0x216413[_0x489e09('0x1126')][_0x489e09('0x2587')];_0x391e86++){var _0x1b8bf0=_0x51538b()[_0x489e09('0x2c2')](_0xc8fea5,{'id':_0x216413[_0x489e09('0x1126')][_0x391e86]['id']});_0x1b8bf0&&(_0x216413[_0x489e09('0x1126')][_0x391e86][_0x489e09('0x12eb')]=![],_0x23b574[_0x489e09('0x1599')](_0x216413[_0x489e09('0x1126')][_0x391e86]));}_0x216413['lists']=_0x23b574;}else{if(!_0xc7826f[_0x489e09('0x26cc')])return _0x5dfd07['userProfileResource'][_0x489e09('0x2122')]({'sectionId':_0xc7826f['id']})[_0x489e09('0x1dc2')][_0x489e09('0xaa5')](function(_0x311183){var _0x4db350=_0x489e09,_0x54bc18=_0x51538b()[_0x4db350('0x1246')](_0x311183[_0x4db350('0x580')],function(_0x52ed79){var _0x4d8155=_0x4db350;return _0x51538b()[_0x4d8155('0xe9e')](_0x216413[_0x4d8155('0x1126')],{'id':_0x52ed79[_0x4d8155('0xbcd')]});}),_0x40e895=null;_0x40e895=[],_0x216413[_0x4db350('0x1ac4')][_0x4db350('0x580')][_0x4db350('0x15b5')](function(_0x2895fc){var _0x42c11b=_0x4db350;if(_0x2895fc[_0x42c11b('0xb08')]===_0x42c11b('0x70f')){var _0x5c699b=_0x51538b()[_0x42c11b('0xe9e')](_0x216413[_0x42c11b('0x1126')],{'id':Number(_0x2895fc[_0x42c11b('0x228')])});_0x40e895['push'](_0x5c699b);}}),!_0x51538b()[_0x4db350('0x116b')](_0x40e895)&&_0x40e895[_0x4db350('0x15b5')](function(_0x493f46){var _0x37af86=_0x4db350;if(!_0x51538b()[_0x37af86('0x2c2')](_0x54bc18,['id',_0x493f46['id']])){var _0x104f72=_0x51538b()[_0x37af86('0xe9e')](_0x216413[_0x37af86('0x1126')],{'id':_0x493f46['id']});_0x104f72[_0x37af86('0x12eb')]=![],_0x54bc18[_0x37af86('0x1599')](_0x104f72);}}),_0x216413[_0x4db350('0x1126')]=_0x54bc18;});}})[_0x1d4eef('0x253d')](function(_0xd60b7e){var _0x45fbf2=_0x1d4eef;_0x382f2a[_0x45fbf2('0x187f')]({'title':_0xd60b7e[_0x45fbf2('0x2fa')]?_0x45fbf2('0x16c2')+_0xd60b7e[_0x45fbf2('0x2fa')]+'\x20-\x20'+_0xd60b7e[_0x45fbf2('0x24df')]:_0x45fbf2('0x177f'),'msg':_0xd60b7e[_0x45fbf2('0x10fd')]?JSON['stringify'](_0xd60b7e['data']):_0xd60b7e[_0x45fbf2('0x684')]()});});}function _0x24b872(){var _0x26a2af=_0x23ac2d;_0x5dfd07[_0x26a2af('0xdbd')]['describe']({})['$promise']['then'](function(_0x1d93ac){var _0xc2571f=_0x26a2af;_0x216413['contactFields']=[],_0x216413[_0xc2571f('0x2')]=[];var _0x17523b=_0x51538b()['values'](_0x1d93ac[_0xc2571f('0x256a')]());for(var _0x131762=0x0;_0x131762<_0x17523b[_0xc2571f('0x2587')];_0x131762++){if(_0x51538b()[_0xc2571f('0x13d6')](_0x216413['allowedStandardFields'],_0x17523b[_0x131762][_0xc2571f('0x2547')]))_0x216413[_0xc2571f('0x475')]['push'](_0x17523b[_0x131762]);else{if(_0x51538b()[_0xc2571f('0x6e8')](_0x17523b[_0x131762][_0xc2571f('0x2547')],_0xc2571f('0x7a5'))){if(_0x17523b[_0x131762][_0xc2571f('0x113b')]['type']===_0xc2571f('0xb37'))_0x216413[_0xc2571f('0x2')][_0xc2571f('0x1599')](_0x17523b[_0x131762]);}}}})[_0x26a2af('0x253d')](function(_0x540a68){var _0x2a91fe=_0x26a2af;_0x382f2a[_0x2a91fe('0x187f')]({'title':_0x540a68[_0x2a91fe('0x2fa')]?_0x2a91fe('0x16c2')+_0x540a68[_0x2a91fe('0x2fa')]+_0x2a91fe('0x169e')+_0x540a68['statusText']:_0x2a91fe('0x29c'),'msg':_0x540a68['data']?JSON['stringify'](_0x540a68['data']):_0x540a68[_0x2a91fe('0x684')]()});});}function _0x5711bc(){var _0x2be676=_0x23ac2d;_0x5dfd07['cmList']['getCustomFields']({'id':_0x216413[_0x2be676('0xb08')][_0x2be676('0x228')],'ListId':_0x216413[_0x2be676('0xb08')][_0x2be676('0x228')]})[_0x2be676('0x1dc2')][_0x2be676('0xaa5')](function(_0x31b854){var _0x4bb395=_0x2be676;_0x216413[_0x4bb395('0x622')]=_0x51538b()[_0x4bb395('0xdb7')](_0x31b854['rows'],[_0x4bb395('0x6c8'),_0x4bb395('0xb37')]),_0x216413[_0x4bb395('0x622')][_0x4bb395('0x15b5')](function(_0x555a40){var _0x5be6d6=_0x4bb395;_0x555a40[_0x5be6d6('0x2547')]='cf_'+_0x555a40['id'];});})[_0x2be676('0x253d')](function(_0x59cf11){var _0x280046=_0x2be676;_0x382f2a[_0x280046('0x187f')]({'title':_0x59cf11['status']?'API:'+_0x59cf11[_0x280046('0x2fa')]+_0x280046('0x169e')+_0x59cf11[_0x280046('0x24df')]:_0x280046('0x1a16'),'msg':_0x59cf11[_0x280046('0x10fd')]?JSON['stringify'](_0x59cf11[_0x280046('0x10fd')]):_0x59cf11[_0x280046('0x684')]()});});}function _0x14a7a4(){var _0x1fb2b2=_0x23ac2d;_0x5597d2[_0x1fb2b2('0xcf2')]()?_0x5dfd07[_0x1fb2b2('0x285c')][_0x1fb2b2('0x2122')]({'fields':_0x1fb2b2('0x17fe'),'sort':_0x1fb2b2('0x25d6'),'nolimit':_0x1fb2b2('0x1c5c')})[_0x1fb2b2('0x1dc2')]['then'](function(_0x22aee6){var _0x40b812=_0x1fb2b2;_0x216413[_0x40b812('0x8d1')]=_0x22aee6[_0x40b812('0x580')]||[];})['catch'](function(_0x104aba){var _0x2163bd=_0x1fb2b2;_0x382f2a['error']({'title':_0x104aba[_0x2163bd('0x2fa')]?_0x2163bd('0x16c2')+_0x104aba[_0x2163bd('0x2fa')]+'\x20-\x20'+_0x104aba[_0x2163bd('0x24df')]:_0x2163bd('0x25d'),'msg':_0x104aba[_0x2163bd('0x10fd')]?JSON['stringify'](_0x104aba[_0x2163bd('0x10fd')]):_0x104aba['toString']()});}):_0x5dfd07[_0x1fb2b2('0x285c')]['get']({'fields':_0x1fb2b2('0x17fe'),'sort':'name','nolimit':_0x1fb2b2('0x1c5c')})[_0x1fb2b2('0x1dc2')][_0x1fb2b2('0xaa5')](function(_0x72796b){var _0x32bb97=_0x1fb2b2;_0x216413[_0x32bb97('0x8d1')]=_0x72796b[_0x32bb97('0x580')]||[];})['then'](function(){var _0x4399df=_0x1fb2b2;return _0x5dfd07[_0x4399df('0x1a50')][_0x4399df('0x2122')]({'userProfileId':_0x216413[_0x4399df('0x7fc')]['userProfileId'],'sectionId':0x6a5})[_0x4399df('0x1dc2')];})[_0x1fb2b2('0xaa5')](function(_0x63a5af){var _0x982210=_0x1fb2b2,_0x2b4ccf=_0x63a5af&&_0x63a5af[_0x982210('0x580')]?_0x63a5af[_0x982210('0x580')][0x0]:null;if(!_0x2b4ccf){var _0x36277c=[],_0x429feb=[];_0x216413[_0x982210('0x1ac4')][_0x982210('0x580')][_0x982210('0x15b5')](function(_0x50db45){var _0x20ae74=_0x982210;if(_0x50db45[_0x20ae74('0xb08')]===_0x20ae74('0x1886')){var _0xf9d791=_0x51538b()['find'](_0x216413[_0x20ae74('0x8d1')],{'id':Number(_0x50db45[_0x20ae74('0x228')])});_0x429feb[_0x20ae74('0x1599')](_0xf9d791);}});for(var _0x67ed9d=0x0;_0x67ed9d<_0x216413[_0x982210('0x8d1')]['length'];_0x67ed9d++){var _0x7a6316=_0x51538b()['some'](_0x429feb,{'id':_0x216413[_0x982210('0x8d1')][_0x67ed9d]['id']});_0x7a6316&&(_0x216413[_0x982210('0x8d1')][_0x67ed9d][_0x982210('0x12eb')]=![],_0x36277c['push'](_0x216413[_0x982210('0x8d1')][_0x67ed9d]));}_0x216413[_0x982210('0x8d1')]=_0x36277c;}else{if(!_0x2b4ccf[_0x982210('0x26cc')])return _0x5dfd07[_0x982210('0x249a')]['get']({'sectionId':_0x2b4ccf['id']})[_0x982210('0x1dc2')][_0x982210('0xaa5')](function(_0x15a96a){var _0x57b799=_0x982210,_0x4c09d0=_0x51538b()[_0x57b799('0x1246')](_0x15a96a[_0x57b799('0x580')],function(_0x1df472){var _0x1b6d8a=_0x57b799;return _0x51538b()[_0x1b6d8a('0xe9e')](_0x216413[_0x1b6d8a('0x8d1')],{'id':_0x1df472[_0x1b6d8a('0xbcd')]});}),_0x325255=null;_0x325255=[],_0x216413['triggerActions'][_0x57b799('0x580')][_0x57b799('0x15b5')](function(_0x29c909){var _0x123dd4=_0x57b799;if(_0x29c909[_0x123dd4('0xb08')]==='jscripty'){var _0x208695=_0x51538b()[_0x123dd4('0xe9e')](_0x216413['projects'],{'id':Number(_0x29c909[_0x123dd4('0x228')])});_0x325255['push'](_0x208695);}}),!_0x51538b()['isEmpty'](_0x325255)&&_0x325255[_0x57b799('0x15b5')](function(_0x48c046){var _0x2884a8=_0x57b799;if(!_0x51538b()['some'](_0x4c09d0,['id',_0x48c046['id']])){var _0x32517a=_0x51538b()['find'](_0x216413[_0x2884a8('0x8d1')],{'id':_0x48c046['id']});_0x32517a[_0x2884a8('0x12eb')]=![],_0x4c09d0['push'](_0x32517a);}}),_0x216413['projects']=_0x4c09d0;});}})['catch'](function(_0x54aaa5){var _0x33742d=_0x1fb2b2;_0x382f2a[_0x33742d('0x187f')]({'title':_0x54aaa5['status']?_0x33742d('0x16c2')+_0x54aaa5[_0x33742d('0x2fa')]+'\x20-\x20'+_0x54aaa5[_0x33742d('0x24df')]:_0x33742d('0x19d7'),'msg':_0x54aaa5['data']?JSON[_0x33742d('0xa48')](_0x54aaa5[_0x33742d('0x10fd')]):_0x54aaa5[_0x33742d('0x684')]()});});}function _0x226203(){var _0x4cfede=_0x23ac2d;_0x5597d2[_0x4cfede('0xcf2')]()?_0x5dfd07[_0x4cfede('0x11f6')][_0x4cfede('0x2122')]({'fields':'id,name','sort':'id','nolimit':_0x4cfede('0x1c5c')})['$promise'][_0x4cfede('0xaa5')](function(_0x28eb7b){var _0x7b7765=_0x4cfede;_0x216413[_0x7b7765('0x900')]=_0x28eb7b[_0x7b7765('0x580')]||[];})[_0x4cfede('0x253d')](function(_0x382fe5){var _0x59a1e1=_0x4cfede;_0x382f2a[_0x59a1e1('0x187f')]({'title':_0x382fe5[_0x59a1e1('0x2fa')]?_0x59a1e1('0x16c2')+_0x382fe5[_0x59a1e1('0x2fa')]+'\x20-\x20'+_0x382fe5['statusText']:'SYSTEM:GET_TEMPLATES','msg':_0x382fe5[_0x59a1e1('0x10fd')]?JSON[_0x59a1e1('0xa48')](_0x382fe5[_0x59a1e1('0x10fd')]):_0x382fe5[_0x59a1e1('0x684')]()});}):_0x5dfd07['template'][_0x4cfede('0x2122')]({'fields':_0x4cfede('0x17fe'),'sort':'id','nolimit':_0x4cfede('0x1c5c')})[_0x4cfede('0x1dc2')][_0x4cfede('0xaa5')](function(_0x3bcd7e){var _0xc2f38=_0x4cfede;_0x216413[_0xc2f38('0x900')]=_0x3bcd7e[_0xc2f38('0x580')]||[];})[_0x4cfede('0xaa5')](function(){var _0x43dcbe=_0x4cfede;return _0x5dfd07['userProfileSection'][_0x43dcbe('0x2122')]({'userProfileId':_0x216413[_0x43dcbe('0x7fc')][_0x43dcbe('0x2168')],'sectionId':0x3f1})[_0x43dcbe('0x1dc2')];})[_0x4cfede('0xaa5')](function(_0x36d5db){var _0x4ea357=_0x4cfede,_0x25d9d0=_0x36d5db&&_0x36d5db[_0x4ea357('0x580')]?_0x36d5db[_0x4ea357('0x580')][0x0]:null;if(!_0x25d9d0){var _0x36c829=[],_0x14c7cc=[];_0x216413[_0x4ea357('0x1ac4')]['rows'][_0x4ea357('0x15b5')](function(_0x5ce290){var _0x1b73c4=_0x4ea357;if(_0x51538b()[_0x1b73c4('0x13d6')]([_0x1b73c4('0xe92'),'browser'],_0x5ce290[_0x1b73c4('0xb08')])){var _0x2c37b7=_0x51538b()['find'](_0x216413[_0x1b73c4('0x900')],{'id':Number(_0x5ce290[_0x1b73c4('0x19f9')])});_0x14c7cc[_0x1b73c4('0x1599')](_0x2c37b7);}});for(var _0x5a784f=0x0;_0x5a784f<_0x216413[_0x4ea357('0x900')]['length'];_0x5a784f++){var _0x5a3e7a=_0x51538b()['some'](_0x14c7cc,{'id':_0x216413[_0x4ea357('0x900')][_0x5a784f]['id']});_0x5a3e7a&&(_0x216413[_0x4ea357('0x900')][_0x5a784f]['canSelect']=![],_0x36c829[_0x4ea357('0x1599')](_0x216413[_0x4ea357('0x900')][_0x5a784f]));}_0x216413[_0x4ea357('0x900')]=_0x36c829;}else{if(!_0x25d9d0[_0x4ea357('0x26cc')])return _0x5dfd07[_0x4ea357('0x249a')][_0x4ea357('0x2122')]({'sectionId':_0x25d9d0['id']})[_0x4ea357('0x1dc2')][_0x4ea357('0xaa5')](function(_0x5e6133){var _0x54cc53=_0x4ea357,_0x4fbc7a=_0x51538b()['map'](_0x5e6133['rows'],function(_0x225baa){var _0x2c10c7=a0_0x1149;return _0x51538b()[_0x2c10c7('0xe9e')](_0x216413[_0x2c10c7('0x900')],{'id':_0x225baa[_0x2c10c7('0xbcd')]});}),_0x2edd6b=null;_0x2edd6b=[],_0x216413['triggerActions']['rows']['forEach'](function(_0x32c382){var _0x404d32=a0_0x1149;if(_0x51538b()['includes']([_0x404d32('0xe92'),_0x404d32('0xa39')],_0x32c382[_0x404d32('0xb08')])){var _0x5d0d65=_0x51538b()[_0x404d32('0xe9e')](_0x216413['templates'],{'id':Number(_0x32c382[_0x404d32('0x19f9')])});_0x2edd6b[_0x404d32('0x1599')](_0x5d0d65);}}),!_0x51538b()[_0x54cc53('0x116b')](_0x2edd6b)&&_0x2edd6b[_0x54cc53('0x15b5')](function(_0x51cabb){var _0x1b4e70=_0x54cc53;if(!_0x51538b()['some'](_0x4fbc7a,['id',_0x51cabb['id']])){var _0x18c6dc=_0x51538b()[_0x1b4e70('0xe9e')](_0x216413[_0x1b4e70('0x900')],{'id':_0x51cabb['id']});_0x18c6dc[_0x1b4e70('0x12eb')]=![],_0x4fbc7a[_0x1b4e70('0x1599')](_0x18c6dc);}}),_0x216413[_0x54cc53('0x900')]=_0x4fbc7a;});}})['catch'](function(_0x3e7735){var _0x564ff7=_0x4cfede;_0x382f2a['error']({'title':_0x3e7735['status']?'API:'+_0x3e7735[_0x564ff7('0x2fa')]+_0x564ff7('0x169e')+_0x3e7735[_0x564ff7('0x24df')]:'SYSTEM:GET_TEMPLATES','msg':_0x3e7735[_0x564ff7('0x10fd')]?JSON[_0x564ff7('0xa48')](_0x3e7735[_0x564ff7('0x10fd')]):_0x3e7735[_0x564ff7('0x684')]()});});}function _0x4fd861(){var _0x19061e=_0x23ac2d;switch(_0x216413[_0x19061e('0xb08')][_0x19061e('0x228')]){case _0x19061e('0x114f'):return _0x216413[_0x19061e('0x24b1')][0x515];case _0x19061e('0x2538'):return _0x216413['hasSectionPermissions'][0x516];case _0x19061e('0x18f2'):return _0x216413[_0x19061e('0x24b1')][0x519];case'freshdesk':return _0x216413[_0x19061e('0x24b1')][0x517];case _0x19061e('0xd78'):return _0x216413[_0x19061e('0x24b1')][0x51a];case _0x19061e('0x32c'):return _0x216413[_0x19061e('0x24b1')][0x51b];case _0x19061e('0x11ad'):return _0x216413[_0x19061e('0x24b1')][0x51c];case _0x19061e('0x1d81'):return _0x216413[_0x19061e('0x24b1')][0x51d];case'servicenow':return _0x216413['hasSectionPermissions'][0x51e];case _0x19061e('0x188'):return _0x216413[_0x19061e('0x24b1')][0x51f];}}function _0x594d17(){var _0x3e37ea=_0x23ac2d;_0x216413[_0x3e37ea('0xb08')][_0x3e37ea('0x228')]=undefined,_0x216413[_0x3e37ea('0xb08')][_0x3e37ea('0x19f9')]=undefined,_0x216413[_0x3e37ea('0xb08')]['data3']=undefined,_0x216413[_0x3e37ea('0xb08')][_0x3e37ea('0x11eb')]=undefined,_0x216413[_0x3e37ea('0xb08')]['data5']=_0x216413[_0x3e37ea('0xb08')]['action']===_0x3e37ea('0x280e')?0x5:undefined;}function _0x27b805(){var _0x577510=_0x23ac2d;switch(_0x216413[_0x577510('0xb08')][_0x577510('0xb08')]){case _0x577510('0x70f'):if(!_0x216413[_0x577510('0x1126')])_0xce84ce();if(!_0x216413[_0x577510('0x475')])_0x24b872();_0x216413['action'][_0x577510('0x9fc')]=_0x216413[_0x577510('0xb08')][_0x577510('0x9fc')]?_0x216413[_0x577510('0xb08')][_0x577510('0x9fc')]['split'](','):[_0x577510('0x1a46')];if(_0x216413['action'][_0x577510('0x19f9')]==='1'&&!_0x216413[_0x577510('0xb08')][_0x577510('0x11eb')])_0x216413['action'][_0x577510('0x11eb')]=_0x577510('0x1a46');break;case'jscripty':if(!_0x216413['projects'])_0x14a7a4();break;case'urlForward':if(!_0x216413[_0x577510('0xb08')][_0x577510('0xecf')])_0x216413[_0x577510('0xb08')][_0x577510('0xecf')]=0x5;break;}}function _0x13e85b(){_0x594d17(),_0x27b805();}function _0x1ce612(){var _0xe2cb32=_0x23ac2d;_0x216413[_0xe2cb32('0xb08')][_0xe2cb32('0x19f9')]=undefined,_0x216413[_0xe2cb32('0xb08')][_0xe2cb32('0x9fc')]=undefined,_0x216413[_0xe2cb32('0xb08')]['isIntegrationDisabled']=_0x216413[_0xe2cb32('0x2853')]?![]:!_0x4fd861();var _0x2edd8c=_0xe2cb32('0xadc')+_0x51538b()[_0xe2cb32('0x1b56')](_0x216413[_0xe2cb32('0xb08')][_0xe2cb32('0x228')])+_0xe2cb32('0x75a');_0x5dfd07[_0x2edd8c][_0xe2cb32('0x2122')]({'fields':'id,name','sort':'id','nolimit':_0xe2cb32('0x1c5c')})[_0xe2cb32('0x1dc2')][_0xe2cb32('0xaa5')](function(_0x3b08ef){var _0x59d623=_0xe2cb32;_0x216413[_0x59d623('0x1b93')]=_0x3b08ef[_0x59d623('0x580')]||[];})[_0xe2cb32('0x253d')](function(_0x57dacc){var _0x4a3caf=_0xe2cb32;_0x382f2a['error']({'title':_0x57dacc[_0x4a3caf('0x2fa')]?_0x4a3caf('0x16c2')+_0x57dacc['status']+_0x4a3caf('0x169e')+_0x57dacc[_0x4a3caf('0x24df')]:_0x4a3caf('0xa2c')+_0x216413[_0x4a3caf('0xb08')]['data1'][_0x4a3caf('0x1d08')]()+_0x4a3caf('0x1b85'),'msg':_0x57dacc[_0x4a3caf('0x10fd')]?JSON[_0x4a3caf('0xa48')](_0x57dacc[_0x4a3caf('0x10fd')]):_0x57dacc[_0x4a3caf('0x684')]()});});}function _0x181b96(){_0x5711bc();}function _0x3216d7(){var _0x20bde8=_0x23ac2d;if(_0x216413['action'][_0x20bde8('0x228')]==='0'&&!_0x216413[_0x20bde8('0x900')])_0x226203();}function _0x3a2bcd(){var _0x55b678=_0x23ac2d;if(_0x216413[_0x55b678('0xb08')]['data2']==='0')_0x216413[_0x55b678('0xb08')]['data4']=undefined;if(!_0x216413[_0x55b678('0xb08')][_0x55b678('0x11eb')]&&_0x216413[_0x55b678('0xb08')][_0x55b678('0x19f9')]==='1')_0x216413[_0x55b678('0xb08')][_0x55b678('0x11eb')]=_0x55b678('0x1a46');}function _0x354ef7(){var _0x12b596=_0x23ac2d;_0x216413[_0x12b596('0xb08')][_0x12b596('0x9fc')]=undefined;var _0x33dd4a=_0x12b596('0xadc')+_0x51538b()[_0x12b596('0x1b56')](_0x216413[_0x12b596('0xb08')]['data1'])+_0x12b596('0xde7');_0x5dfd07[_0x33dd4a][_0x12b596('0x2122')]({'fields':_0x12b596('0x26c7'),'sort':'id','nolimit':_0x12b596('0x1c5c')})[_0x12b596('0x1dc2')]['then'](function(_0x4af98c){var _0x33464b=_0x12b596;_0x216413[_0x33464b('0x555')]=_0x4af98c[_0x33464b('0x580')]||[];})[_0x12b596('0x253d')](function(_0x720c5b){var _0x3a7068=_0x12b596;_0x382f2a[_0x3a7068('0x187f')]({'title':_0x720c5b[_0x3a7068('0x2fa')]?_0x3a7068('0x16c2')+_0x720c5b['status']+_0x3a7068('0x169e')+_0x720c5b[_0x3a7068('0x24df')]:_0x3a7068('0xa2c')+_0x216413['action'][_0x3a7068('0x228')][_0x3a7068('0x1d08')]()+_0x3a7068('0x26e9'),'msg':_0x720c5b[_0x3a7068('0x10fd')]?JSON[_0x3a7068('0xa48')](_0x720c5b[_0x3a7068('0x10fd')]):_0x720c5b[_0x3a7068('0x684')]()});});}function _0x4a0908(){var _0x211d17=_0x23ac2d,_0x2b4075=angular[_0x211d17('0x20a')](_0x216413[_0x211d17('0xb08')]);if(_0x51538b()['isArray'](_0x2b4075[_0x211d17('0x9fc')]))_0x2b4075[_0x211d17('0x9fc')]=_0x216413[_0x211d17('0xb08')][_0x211d17('0x9fc')]['join'](',');return _0x2b4075;}function _0x5532f7(){var _0x4f2ce1=_0x23ac2d;_0x216413['errors']=[];var _0x1391f7=_0x4a0908();_0x5dfd07['trigger'][_0x4f2ce1('0x165b')]({'id':_0x2a73bf[_0x4f2ce1('0x25cf')]['id']},_0x1391f7)[_0x4f2ce1('0x1dc2')]['then'](function(_0x1cc35a){var _0x2455aa=_0x4f2ce1;_0x216413[_0x2455aa('0x1e41')][_0x2455aa('0x6ee')](_0x1cc35a[_0x2455aa('0x256a')]()),_0x382f2a[_0x2455aa('0xe10')]({'title':_0x366c8e[_0x2455aa('0x213f')](_0x2455aa('0x24d'))}),_0x3f1a6b(_0x216413[_0x2455aa('0x1e41')]);})['catch'](function(_0x4c234a){var _0x3cfc8d=_0x4f2ce1;if(_0x4c234a[_0x3cfc8d('0x10fd')]&&_0x4c234a[_0x3cfc8d('0x10fd')][_0x3cfc8d('0x4c6')]&&_0x4c234a[_0x3cfc8d('0x10fd')]['errors']['length']){_0x216413['errors']=_0x4c234a['data']['errors']||[{'message':_0x4c234a[_0x3cfc8d('0x684')](),'type':_0x3cfc8d('0x1b4a')}];for(var _0x4e21f7=0x0;_0x4e21f7<_0x4c234a[_0x3cfc8d('0x10fd')][_0x3cfc8d('0x4c6')][_0x3cfc8d('0x2587')];_0x4e21f7+=0x1){_0x382f2a[_0x3cfc8d('0x187f')]({'title':_0x4c234a['data'][_0x3cfc8d('0x4c6')][_0x4e21f7][_0x3cfc8d('0x6c8')],'msg':_0x4c234a[_0x3cfc8d('0x10fd')]['errors'][_0x4e21f7]['message']});}}else _0x382f2a[_0x3cfc8d('0x187f')]({'title':_0x4c234a[_0x3cfc8d('0x2fa')]?_0x3cfc8d('0x16c2')+_0x4c234a['status']+_0x3cfc8d('0x169e')+_0x4c234a['statusText']:_0x3cfc8d('0x1b4a'),'msg':_0x4c234a[_0x3cfc8d('0x10fd')]?JSON['stringify'](_0x4c234a[_0x3cfc8d('0x10fd')][_0x3cfc8d('0x1402')]):_0x4c234a['toString']()});});}function _0x1b89df(){var _0x4ccbc1=_0x23ac2d;_0x216413[_0x4ccbc1('0x4c6')]=[];var _0x4e03a8=_0x4a0908();_0x5dfd07[_0x4ccbc1('0xb08')][_0x4ccbc1('0x264e')]({'id':_0x4e03a8['id']},_0x4e03a8)['$promise']['then'](function(){var _0x10d269=_0x4ccbc1;_0x216413['actions']=_0x51538b()[_0x10d269('0x1246')](_0x216413[_0x10d269('0x1e41')],function(_0x30fe72){if(_0x30fe72['id']===_0x4e03a8['id'])return _0x4e03a8;else return _0x30fe72;}),_0x382f2a[_0x10d269('0xe10')]({'title':_0x366c8e[_0x10d269('0x213f')]('TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE')}),_0x3f1a6b(_0x216413[_0x10d269('0x1e41')]);})['catch'](function(_0x4b706b){var _0x12b9b0=_0x4ccbc1;if(_0x4b706b[_0x12b9b0('0x10fd')]&&_0x4b706b['data'][_0x12b9b0('0x4c6')]&&_0x4b706b[_0x12b9b0('0x10fd')]['errors'][_0x12b9b0('0x2587')]){_0x216413[_0x12b9b0('0x4c6')]=_0x4b706b['data'][_0x12b9b0('0x4c6')]||[{'message':_0x4b706b[_0x12b9b0('0x684')](),'type':_0x12b9b0('0x1620')}];for(var _0x5372c2=0x0;_0x5372c2<_0x4b706b[_0x12b9b0('0x10fd')][_0x12b9b0('0x4c6')][_0x12b9b0('0x2587')];_0x5372c2++){_0x382f2a[_0x12b9b0('0x187f')]({'title':_0x4b706b['data']['errors'][_0x5372c2][_0x12b9b0('0x6c8')],'msg':_0x4b706b[_0x12b9b0('0x10fd')][_0x12b9b0('0x4c6')][_0x5372c2][_0x12b9b0('0x1402')]});}}else _0x382f2a[_0x12b9b0('0x187f')]({'title':_0x4b706b[_0x12b9b0('0x2fa')]?_0x12b9b0('0x16c2')+_0x4b706b[_0x12b9b0('0x2fa')]+_0x12b9b0('0x169e')+_0x4b706b[_0x12b9b0('0x24df')]:_0x12b9b0('0x1620'),'msg':_0x4b706b[_0x12b9b0('0x10fd')]?JSON['stringify'](_0x4b706b['data']['message']):_0x4b706b['toString']()});});}function _0x5e8258(_0x5dd0fa){var _0x4cc80a=_0x23ac2d;_0x216413['errors']=[];var _0x2492e5=_0x14bfa3['confirm']({'skipHide':!![]})['title'](_0x366c8e['instant']('TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE'))['ariaLabel']('Delete\x20action')['ok'](_0x366c8e[_0x4cc80a('0x213f')](_0x4cc80a('0x2076')))[_0x4cc80a('0x2030')](_0x366c8e['instant'](_0x4cc80a('0x1dd8')))['targetEvent'](_0x5dd0fa);_0x14bfa3['show'](_0x2492e5)[_0x4cc80a('0xaa5')](function(){var _0x255ad3=_0x4cc80a;_0x5dfd07['action'][_0x255ad3('0x926')]({'id':_0x216413[_0x255ad3('0xb08')]['id']})[_0x255ad3('0x1dc2')][_0x255ad3('0xaa5')](function(){var _0xabe47a=_0x255ad3;_0x216413[_0xabe47a('0x1e41')]=_0x51538b()[_0xabe47a('0xdb7')](_0x216413[_0xabe47a('0x1e41')],function(_0x328784){var _0x27cca6=_0xabe47a;return _0x328784['id']!==_0x216413[_0x27cca6('0xb08')]['id'];}),_0x382f2a['success']({'title':_0x366c8e[_0xabe47a('0x213f')]('TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE')}),_0x3f1a6b(_0x216413[_0xabe47a('0x1e41')]);})[_0x255ad3('0x253d')](function(_0x611611){var _0x1ae114=_0x255ad3;if(_0x611611[_0x1ae114('0x10fd')]&&_0x611611[_0x1ae114('0x10fd')][_0x1ae114('0x4c6')]&&_0x611611[_0x1ae114('0x10fd')][_0x1ae114('0x4c6')][_0x1ae114('0x2587')]){_0x216413[_0x1ae114('0x4c6')]=_0x611611[_0x1ae114('0x10fd')][_0x1ae114('0x4c6')]||[{'message':_0x611611['toString'](),'type':'api.action.delete'}];for(var _0x540a5d=0x0;_0x540a5d<_0x611611[_0x1ae114('0x10fd')][_0x1ae114('0x4c6')][_0x1ae114('0x2587')];_0x540a5d++){_0x382f2a[_0x1ae114('0x187f')]({'title':_0x611611[_0x1ae114('0x10fd')][_0x1ae114('0x4c6')][_0x540a5d][_0x1ae114('0x6c8')],'msg':_0x611611[_0x1ae114('0x10fd')][_0x1ae114('0x4c6')][_0x540a5d][_0x1ae114('0x1402')]});}}else _0x382f2a[_0x1ae114('0x187f')]({'title':_0x611611['status']?_0x1ae114('0x16c2')+_0x611611['status']+'\x20-\x20'+_0x611611[_0x1ae114('0x24df')]:'api.action.delete','msg':_0x611611['data']?JSON[_0x1ae114('0xa48')](_0x611611[_0x1ae114('0x10fd')]['message']):_0x611611[_0x1ae114('0x1402')]||_0x611611[_0x1ae114('0x684')]()});});},function(){});}function _0x3f1a6b(_0x23488b){_0x14bfa3['hide'](_0x23488b);}}const _0x43489f=_0x343117,_0x5639bc=_0x4fb511['p']+_0x1a8446('0x2856');_0x4487f8[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$q',_0x1a8446('0xcb3'),'$timeout',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x4487f8(_0x132995,_0x539363,_0x1fc846,_0x4ba3c0,_0x27fdd5,_0xefb3d9,_0xa98e57,_0x591a1e,_0x32dad8){var _0xfe17ee=_0x1a8446,_0x568d16=this;_0x568d16[_0xfe17ee('0x7fc')]=_0x32dad8[_0xfe17ee('0xacc')](),_0x568d16[_0xfe17ee('0x2624')]={},_0x568d16[_0xfe17ee('0x24aa')]={'count':0x0,'rows':[]},_0x568d16[_0xfe17ee('0x119a')]=[],_0x568d16[_0xfe17ee('0x582')]={'fields':'id,field,operator,value,createdAt,updatedAt','limit':0xa,'page':0x1},_0x568d16[_0xfe17ee('0x13a')]={'queue':_0xfe17ee('0x145c'),'lastevent':_0xfe17ee('0x42f'),'routeId':_0xfe17ee('0x2863'),'agent':_0xfe17ee('0x521'),'account':_0xfe17ee('0x75a'),'interaction':_0xfe17ee('0x11'),'message':_0xfe17ee('0x4d8')},_0x568d16[_0xfe17ee('0x53')]={'abandoned':'Abandon','timeout':_0xfe17ee('0xc45'),'complete':'Hangup','rejected':'Reject','called':_0xfe17ee('0xa2b'),'connect':_0xfe17ee('0x1523'),'nosuchnumber':_0xfe17ee('0xfe'),'busy':_0xfe17ee('0x16df'),'noanswer':_0xfe17ee('0x3f0'),'congestion':_0xfe17ee('0x2482'),'agentreject':_0xfe17ee('0x11ae')},_0x568d16['messageStatuses']={'in':_0xfe17ee('0x17c1'),'out':_0xfe17ee('0x145e'),'accept':'Accepted','reject':_0xfe17ee('0x11a5')},_0x568d16[_0xfe17ee('0x2318')]=_0x344168,_0x568d16[_0xfe17ee('0xe10')]=_0x3660b6,_0x568d16[_0xfe17ee('0xe42')]=_0x50ac08,_0x568d16[_0xfe17ee('0x12f8')]=_0x2d5a72,_0x568d16[_0xfe17ee('0x1442')]=_0x4c30e1,_0x568d16[_0xfe17ee('0x1416')]=_0x56ac88,_0x568d16[_0xfe17ee('0x50')]=_0x24c09b;function _0x344168(_0x1f036f,_0x443edf){var _0x450af2=_0xfe17ee;_0x568d16[_0x450af2('0x2624')]=_0x1f036f,_0x568d16[_0x450af2('0xada')]=typeof _0x443edf!==_0x450af2('0x1574')?_0x443edf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x568d16[_0x450af2('0x582')][_0x450af2('0x225b')]=_0x568d16[_0x450af2('0x2624')]['id'],_0x568d16[_0x450af2('0x582')]['id']=_0x568d16[_0x450af2('0x2624')]['id'],_0x50ac08();}function _0xe1f155(){var _0x221cf8=_0xfe17ee,_0x2e9362=_0x568d16[_0x221cf8('0x2624')][_0x221cf8('0x119e')],_0x159c3b=_0x568d16[_0x221cf8('0x2624')][_0x221cf8('0x119e')]+_0x568d16['trigger'][_0x221cf8('0x119e')]===_0x221cf8('0x20f9')?_0x221cf8('0x43f'):_0x221cf8('0x177e'),_0x33f1c2=_0x568d16['trigger'][_0x221cf8('0x119e')]+(_0x568d16[_0x221cf8('0x2624')]['channel']===_0x221cf8('0x20f9')?_0x221cf8('0xf2b'):_0x221cf8('0x75a')),_0x40264d;switch(_0x568d16[_0x221cf8('0x2624')][_0x221cf8('0x119e')]){case _0x221cf8('0x20f9'):_0x40264d=0x1f6;break;case'fax':_0x40264d=0x386;break;case'mail':_0x40264d=0x25a;break;case _0x221cf8('0x170'):_0x40264d=0x322;break;case'sms':_0x40264d=0x2be;break;case _0x221cf8('0x220d'):_0x40264d=0x836;break;}_0x32dad8[_0x221cf8('0xcf2')]()?_0x591a1e[_0x33f1c2][_0x221cf8('0x2122')]({'fields':_0x221cf8('0x17fe'),'sort':'id','nolimit':'true'})[_0x221cf8('0x1dc2')][_0x221cf8('0xaa5')](function(_0x12887c){_0x568d16[_0x159c3b]=_0x12887c['rows']||[];})[_0x221cf8('0x253d')](function(_0x5a8489){var _0x1858b1=_0x221cf8;_0xa98e57['error']({'title':_0x5a8489[_0x1858b1('0x2fa')]?_0x1858b1('0x16c2')+_0x5a8489[_0x1858b1('0x2fa')]+_0x1858b1('0x169e')+_0x5a8489[_0x1858b1('0x24df')]:_0x1858b1('0xa2c')+_0x2e9362['toUpperCase']()+_0x2e9362==='chat'?'WEBSITES':_0x1858b1('0x1b85'),'msg':_0x5a8489[_0x1858b1('0x10fd')]?JSON[_0x1858b1('0xa48')](_0x5a8489[_0x1858b1('0x10fd')]):_0x5a8489[_0x1858b1('0x684')]()});}):_0x591a1e[_0x33f1c2][_0x221cf8('0x2122')]({'fields':'id,name','sort':'id','nolimit':_0x221cf8('0x1c5c')})[_0x221cf8('0x1dc2')]['then'](function(_0xe3306d){var _0x554c6b=_0x221cf8;_0x568d16[_0x159c3b]=_0xe3306d[_0x554c6b('0x580')]||[];})['then'](function(){var _0x904499=_0x221cf8;return _0x591a1e[_0x904499('0x1a50')][_0x904499('0x2122')]({'userProfileId':_0x568d16[_0x904499('0x7fc')][_0x904499('0x2168')],'sectionId':_0x40264d})[_0x904499('0x1dc2')];})['then'](function(_0x3fb83e){var _0x35d08e=_0x221cf8,_0xbc0040=_0x3fb83e&&_0x3fb83e[_0x35d08e('0x580')]?_0x3fb83e[_0x35d08e('0x580')][0x0]:null;if(!_0xbc0040){var _0x437d55=[],_0x83c32a=[];_0x568d16[_0x35d08e('0x24aa')][_0x35d08e('0x580')][_0x35d08e('0x15b5')](function(_0x39717d){var _0x457aaf=_0x35d08e;if(_0x39717d[_0x457aaf('0x5f2')]===_0x457aaf('0x5b')){var _0x5e64cc=_0x51538b()[_0x457aaf('0xe9e')](_0x568d16[_0x159c3b],{'id':Number(_0x39717d[_0x457aaf('0x12f4')])});_0x83c32a['push'](_0x5e64cc);}});for(var _0xd794f6=0x0;_0xd794f6<_0x568d16[_0x159c3b][_0x35d08e('0x2587')];_0xd794f6++){var _0x168a04=_0x51538b()[_0x35d08e('0x2c2')](_0x83c32a,{'id':_0x568d16[_0x159c3b][_0xd794f6]['id']});_0x168a04&&(_0x568d16[_0x159c3b][_0xd794f6]['canSelect']=![],_0x437d55[_0x35d08e('0x1599')](_0x568d16[_0x159c3b][_0xd794f6]));}_0x568d16[_0x159c3b]=_0x437d55;}else{if(!_0xbc0040[_0x35d08e('0x26cc')])return _0x591a1e[_0x35d08e('0x249a')]['get']({'sectionId':_0xbc0040['id']})['$promise'][_0x35d08e('0xaa5')](function(_0x31ef3e){var _0x15d352=_0x35d08e,_0x26d926=_0x51538b()[_0x15d352('0x1246')](_0x31ef3e[_0x15d352('0x580')],function(_0x24d63c){var _0x56a84e=_0x15d352;return _0x51538b()['find'](_0x568d16[_0x159c3b],{'id':_0x24d63c[_0x56a84e('0xbcd')]});}),_0x81b6b=null;_0x81b6b=[],_0x568d16[_0x15d352('0x24aa')][_0x15d352('0x580')][_0x15d352('0x15b5')](function(_0xea98e9){var _0x290739=_0x15d352;if(_0xea98e9['field']===_0x290739('0x5b')){var _0x580708=_0x51538b()['find'](_0x568d16[_0x159c3b],{'id':Number(_0xea98e9['value'])});_0x81b6b[_0x290739('0x1599')](_0x580708);}}),!_0x51538b()[_0x15d352('0x116b')](_0x81b6b)&&_0x81b6b[_0x15d352('0x15b5')](function(_0x1d2178){var _0x2ebf76=_0x15d352;if(!_0x51538b()[_0x2ebf76('0x2c2')](_0x26d926,['id',_0x1d2178['id']])){var _0x20277e=_0x51538b()[_0x2ebf76('0xe9e')](_0x568d16[_0x159c3b],{'id':_0x1d2178['id']});_0x20277e[_0x2ebf76('0x12eb')]=![],_0x26d926[_0x2ebf76('0x1599')](_0x20277e);}}),_0x568d16[_0x159c3b]=_0x26d926;});}})[_0x221cf8('0x253d')](function(_0x2dafb7){var _0x57809e=_0x221cf8;_0xa98e57[_0x57809e('0x187f')]({'title':_0x2dafb7[_0x57809e('0x2fa')]?'API:'+_0x2dafb7[_0x57809e('0x2fa')]+_0x57809e('0x169e')+_0x2dafb7['statusText']:_0x57809e('0xa2c')+_0x2e9362[_0x57809e('0x1d08')]()+_0x2e9362===_0x57809e('0x20f9')?_0x57809e('0x170e'):'ACCOUNTS','msg':_0x2dafb7[_0x57809e('0x10fd')]?JSON[_0x57809e('0xa48')](_0x2dafb7[_0x57809e('0x10fd')]):_0x2dafb7[_0x57809e('0x684')]()});});}function _0x414ee7(){var _0x1dfb53=_0xfe17ee,_0xc7b467=[{'id':0x191,'type':_0x1dfb53('0x4b8')},{'id':0x5dd,'type':_0x1dfb53('0x19d1')}],_0x2930b9=null;_0x32dad8[_0x1dfb53('0xcf2')]()?_0x591a1e[_0x1dfb53('0x1588')][_0x1dfb53('0x2122')]({'fields':'id,name,type','sort':_0x1dfb53('0x25d6'),'nolimit':_0x1dfb53('0x1c5c')})[_0x1dfb53('0x1dc2')][_0x1dfb53('0xaa5')](function(_0x35219d){var _0x1b4eb6=_0x1dfb53;_0x568d16[_0x1b4eb6('0x4d7')]=_0x35219d['rows']||[];})[_0x1dfb53('0x253d')](function(_0x576594){var _0x53a3ae=_0x1dfb53;_0xa98e57[_0x53a3ae('0x187f')]({'title':_0x576594[_0x53a3ae('0x2fa')]?_0x53a3ae('0x16c2')+_0x576594[_0x53a3ae('0x2fa')]+_0x53a3ae('0x169e')+_0x576594[_0x53a3ae('0x24df')]:_0x53a3ae('0x1e3d'),'msg':_0x576594[_0x53a3ae('0x10fd')]?JSON['stringify'](_0x576594[_0x53a3ae('0x10fd')]):_0x576594[_0x53a3ae('0x684')]()});}):_0x591a1e[_0x1dfb53('0x1588')]['get']({'fields':_0x1dfb53('0x21e2'),'sort':_0x1dfb53('0x25d6'),'nolimit':_0x1dfb53('0x1c5c')})['$promise'][_0x1dfb53('0xaa5')](function(_0x3102d0){var _0x132af7=_0x1dfb53;_0x2930b9=_0x3102d0[_0x132af7('0x580')]||[];})['then'](function(){var _0x38bd44=_0x1dfb53,_0x328fd1=[];for(var _0x52b83a=0x0;_0x52b83a<_0xc7b467['length'];_0x52b83a++){_0x328fd1[_0x38bd44('0x1599')](_0x591a1e[_0x38bd44('0x1a50')][_0x38bd44('0x2122')]({'userProfileId':_0x568d16[_0x38bd44('0x7fc')][_0x38bd44('0x2168')],'sectionId':_0xc7b467[_0x52b83a]['id']})[_0x38bd44('0x1dc2')]);}return _0x539363[_0x38bd44('0xa15')](_0x328fd1);})[_0x1dfb53('0xaa5')](function(_0x6513da){var _0x36be69=_0x1dfb53,_0x28b88f=_0x51538b()[_0x36be69('0x1246')](_0x6513da,function(_0x105efb){var _0x1a77c0=_0x36be69;return _0x105efb&&_0x105efb[_0x1a77c0('0x580')]?_0x105efb[_0x1a77c0('0x580')][0x0]:null;}),_0x1300e1=[],_0x2ac8d5=function _0x5ba6b5(_0x49f0e7){var _0x5b9f88=_0x36be69,_0x256735=_0x51538b()[_0x5b9f88('0xe9e')](_0x28b88f,[_0x5b9f88('0x10b8'),_0xc7b467[_0x49f0e7]['id']]);if(_0x256735){if(!_0x256735[_0x5b9f88('0x26cc')])_0x1300e1['push'](_0x591a1e[_0x5b9f88('0x249a')][_0x5b9f88('0x2122')]({'sectionId':_0x256735['id']})[_0x5b9f88('0x1dc2')]);else{var _0x2759e0=[];_0x2930b9[_0x5b9f88('0x15b5')](function(_0x497083){var _0x56ed8b=_0x5b9f88;_0x497083[_0x56ed8b('0x6c8')]===_0xc7b467[_0x49f0e7][_0x56ed8b('0x6c8')]&&_0x2759e0[_0x56ed8b('0x1599')](_0x497083);}),_0x1300e1[_0x5b9f88('0x1599')]({'rows':_0x2759e0,'count':_0x2759e0['length']});}}};for(var _0x4363d1=0x0;_0x4363d1<_0xc7b467[_0x36be69('0x2587')];_0x4363d1++){_0x2ac8d5(_0x4363d1);}return _0x539363[_0x36be69('0xa15')](_0x1300e1);})[_0x1dfb53('0xaa5')](function(_0x3b5921){var _0x392060=_0x1dfb53,_0x3b250d=[],_0x20ba1f=[];_0x568d16[_0x392060('0x24aa')][_0x392060('0x580')]['forEach'](function(_0x4d7fb0){var _0x36b32d=_0x392060;if(_0x4d7fb0[_0x36b32d('0x5f2')]===_0x36b32d('0xe26')){var _0x4a6dbd=_0x51538b()['find'](_0x2930b9,{'name':_0x4d7fb0['value']});_0x20ba1f['push'](_0x4a6dbd);}});for(var _0x2492c2=0x0;_0x2492c2<_0x3b5921[_0x392060('0x2587')];_0x2492c2++){var _0x3ee61c=_0x3b5921[_0x2492c2][_0x392060('0x580')]||[];_0x3ee61c[_0x392060('0x15b5')](function(_0x3e48f7){var _0x20e925=_0x392060;_0x3b250d[_0x20e925('0x1599')](_0x3e48f7);});}!_0x51538b()[_0x392060('0x116b')](_0x20ba1f)&&_0x20ba1f[_0x392060('0x15b5')](function(_0x8c86ad){var _0x5707dd=_0x392060;if(!_0x51538b()[_0x5707dd('0x2c2')](_0x3b250d,['resourceId',_0x8c86ad['id']])){var _0x4685d2=_0x51538b()[_0x5707dd('0xe9e')](_0x2930b9,{'id':_0x8c86ad['id']});_0x4685d2[_0x5707dd('0x12eb')]=![],_0x3b250d[_0x5707dd('0x1599')](_0x4685d2);}}),_0x568d16[_0x392060('0x4d7')]=_0x3b250d;})[_0x1dfb53('0x253d')](function(_0x3846b5){var _0x1a9736=_0x1dfb53;_0xa98e57[_0x1a9736('0x187f')]({'title':_0x3846b5[_0x1a9736('0x2fa')]?'API:'+_0x3846b5[_0x1a9736('0x2fa')]+_0x1a9736('0x169e')+_0x3846b5[_0x1a9736('0x24df')]:_0x1a9736('0x773'),'msg':_0x3846b5[_0x1a9736('0x10fd')]?JSON['stringify'](_0x3846b5[_0x1a9736('0x10fd')]):_0x3846b5[_0x1a9736('0x684')]()});});}function _0x11c35e(){var _0xd7ea1b=_0xfe17ee;_0x32dad8[_0xd7ea1b('0xcf2')]()?_0x591a1e[_0xd7ea1b('0x1361')][_0xd7ea1b('0x2122')]({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0xd7ea1b('0x1ed9'),'nolimit':'true'})[_0xd7ea1b('0x1dc2')][_0xd7ea1b('0xaa5')](function(_0x55f12f){var _0x1cdd43=_0xd7ea1b;_0x568d16[_0x1cdd43('0xe59')]=_0x55f12f[_0x1cdd43('0x580')]||[];})[_0xd7ea1b('0x253d')](function(_0x2fbd17){var _0x4f46f0=_0xd7ea1b;_0xa98e57['error']({'title':_0x2fbd17[_0x4f46f0('0x2fa')]?_0x4f46f0('0x16c2')+_0x2fbd17[_0x4f46f0('0x2fa')]+'\x20-\x20'+_0x2fbd17[_0x4f46f0('0x24df')]:_0x4f46f0('0x1f25'),'msg':_0x2fbd17[_0x4f46f0('0x10fd')]?JSON[_0x4f46f0('0xa48')](_0x2fbd17[_0x4f46f0('0x10fd')]):_0x2fbd17[_0x4f46f0('0x684')]()});}):_0x591a1e[_0xd7ea1b('0x1361')][_0xd7ea1b('0x2122')]({'fields':_0xd7ea1b('0x1ceb'),'type':_0xd7ea1b('0x19d1'),'VoiceExtensionId':_0xd7ea1b('0x1ed9'),'nolimit':_0xd7ea1b('0x1c5c')})[_0xd7ea1b('0x1dc2')][_0xd7ea1b('0xaa5')](function(_0x4262a6){var _0x38aeaf=_0xd7ea1b;_0x568d16[_0x38aeaf('0xe59')]=_0x4262a6[_0x38aeaf('0x580')]||[];})[_0xd7ea1b('0xaa5')](function(){var _0x2ca7fe=_0xd7ea1b;return _0x591a1e[_0x2ca7fe('0x1a50')]['get']({'userProfileId':_0x568d16['currentUser']['userProfileId'],'sectionId':0x193})[_0x2ca7fe('0x1dc2')];})[_0xd7ea1b('0xaa5')](function(_0xc219fd){var _0x134e3a=_0xd7ea1b,_0x2fb6f9=_0xc219fd&&_0xc219fd[_0x134e3a('0x580')]?_0xc219fd[_0x134e3a('0x580')][0x0]:null;if(!_0x2fb6f9){var _0x4ae574=[],_0x3ade3c=[];_0x568d16[_0x134e3a('0x24aa')][_0x134e3a('0x580')][_0x134e3a('0x15b5')](function(_0x3db26b){var _0x47a716=_0x134e3a;if(_0x3db26b[_0x47a716('0x5f2')]===_0x47a716('0x1f7c')){var _0x5ec0d8=_0x51538b()[_0x47a716('0xe9e')](_0x568d16[_0x47a716('0xe59')],{'id':Number(_0x3db26b[_0x47a716('0x12f4')])});_0x3ade3c[_0x47a716('0x1599')](_0x5ec0d8);}});for(var _0x4ad6e8=0x0;_0x4ad6e8<_0x568d16[_0x134e3a('0xe59')][_0x134e3a('0x2587')];_0x4ad6e8++){var _0x18e4be=_0x51538b()[_0x134e3a('0x2c2')](_0x3ade3c,{'id':_0x568d16['outboundRoutes'][_0x4ad6e8]['id']});_0x18e4be&&(_0x568d16[_0x134e3a('0xe59')][_0x4ad6e8][_0x134e3a('0x12eb')]=![],_0x4ae574['push'](_0x568d16[_0x134e3a('0xe59')][_0x4ad6e8]));}_0x568d16[_0x134e3a('0xe59')]=_0x4ae574;}else{if(!_0x2fb6f9['autoAssociation'])return _0x591a1e[_0x134e3a('0x249a')][_0x134e3a('0x2122')]({'sectionId':_0x2fb6f9['id']})[_0x134e3a('0x1dc2')]['then'](function(_0x168193){var _0x70fee9=_0x134e3a,_0x1d430f=_0x51538b()[_0x70fee9('0x1246')](_0x168193[_0x70fee9('0x580')],function(_0x3c3505){var _0x5436d5=_0x70fee9;return _0x51538b()['find'](_0x568d16[_0x5436d5('0xe59')],{'id':_0x3c3505[_0x5436d5('0xbcd')]});}),_0x1fccd5=null;_0x1fccd5=[],_0x568d16['triggerAllConditions'][_0x70fee9('0x580')][_0x70fee9('0x15b5')](function(_0x18392d){var _0x2b5406=_0x70fee9;if(_0x18392d['field']===_0x2b5406('0x1f7c')){var _0x3e6972=_0x51538b()[_0x2b5406('0xe9e')](_0x568d16[_0x2b5406('0xe59')],{'id':Number(_0x18392d[_0x2b5406('0x12f4')])});_0x1fccd5['push'](_0x3e6972);}}),!_0x51538b()['isEmpty'](_0x1fccd5)&&_0x1fccd5['forEach'](function(_0x4f530c){var _0x2e9da4=_0x70fee9;if(!_0x51538b()[_0x2e9da4('0x2c2')](_0x1d430f,['id',_0x4f530c['id']])){var _0x144c0c=_0x51538b()[_0x2e9da4('0xe9e')](_0x568d16[_0x2e9da4('0xe59')],{'id':_0x4f530c['id']});_0x144c0c[_0x2e9da4('0x12eb')]=![],_0x1d430f['push'](_0x144c0c);}}),_0x568d16[_0x70fee9('0xe59')]=_0x1d430f;});}})['catch'](function(_0x147eda){var _0x4e844c=_0xd7ea1b;_0xa98e57['error']({'title':_0x147eda[_0x4e844c('0x2fa')]?_0x4e844c('0x16c2')+_0x147eda['status']+_0x4e844c('0x169e')+_0x147eda[_0x4e844c('0x24df')]:_0x4e844c('0x1f25'),'msg':_0x147eda[_0x4e844c('0x10fd')]?JSON[_0x4e844c('0xa48')](_0x147eda[_0x4e844c('0x10fd')]):_0x147eda[_0x4e844c('0x684')]()});});}function _0xac8c66(){var _0x3ac2ef=_0xfe17ee;_0x32dad8[_0x3ac2ef('0xcf2')]()?_0x591a1e[_0x3ac2ef('0x272b')][_0x3ac2ef('0x2122')]({'fields':_0x3ac2ef('0x25ff'),'sort':'name','role':_0x3ac2ef('0xeff'),'nolimit':_0x3ac2ef('0x1c5c')})['$promise']['then'](function(_0x485e75){var _0x28b20e=_0x3ac2ef;_0x568d16[_0x28b20e('0x1717')]=_0x485e75[_0x28b20e('0x580')]||[];})[_0x3ac2ef('0x253d')](function(_0x54ec88){var _0x38b3a9=_0x3ac2ef;_0xa98e57['error']({'title':_0x54ec88['status']?_0x38b3a9('0x16c2')+_0x54ec88['status']+'\x20-\x20'+_0x54ec88[_0x38b3a9('0x24df')]:_0x38b3a9('0x14c6'),'msg':_0x54ec88[_0x38b3a9('0x10fd')]?JSON[_0x38b3a9('0xa48')](_0x54ec88[_0x38b3a9('0x10fd')]):_0x54ec88[_0x38b3a9('0x684')]()});}):_0x591a1e[_0x3ac2ef('0x272b')]['get']({'fields':_0x3ac2ef('0x25ff'),'sort':_0x3ac2ef('0x25d6'),'role':_0x3ac2ef('0xeff'),'nolimit':_0x3ac2ef('0x1c5c')})['$promise'][_0x3ac2ef('0xaa5')](function(_0x1cc2de){var _0x4a0cf7=_0x3ac2ef;_0x568d16[_0x4a0cf7('0x1717')]=_0x1cc2de[_0x4a0cf7('0x580')]||[];})[_0x3ac2ef('0xaa5')](function(){var _0x284231=_0x3ac2ef;return _0x591a1e[_0x284231('0x1a50')]['get']({'userProfileId':_0x568d16['currentUser'][_0x284231('0x2168')],'sectionId':0xca})[_0x284231('0x1dc2')];})[_0x3ac2ef('0xaa5')](function(_0x31c92c){var _0x319e6a=_0x3ac2ef,_0x144e33=_0x31c92c&&_0x31c92c[_0x319e6a('0x580')]?_0x31c92c[_0x319e6a('0x580')][0x0]:null;if(!_0x144e33){var _0x45a745=[],_0x4e8db8=[];_0x568d16[_0x319e6a('0x24aa')][_0x319e6a('0x580')][_0x319e6a('0x15b5')](function(_0x48b7a4){var _0x1b0def=_0x319e6a;if(_0x48b7a4[_0x1b0def('0x5f2')]==='agent'){var _0x332cd3=_0x51538b()[_0x1b0def('0xe9e')](_0x568d16[_0x1b0def('0x1717')],{'name':_0x48b7a4[_0x1b0def('0x12f4')]});_0x4e8db8[_0x1b0def('0x1599')](_0x332cd3);}});for(var _0x325ce6=0x0;_0x325ce6<_0x568d16['agents']['length'];_0x325ce6++){var _0x6e48c7=_0x51538b()['some'](_0x4e8db8,{'id':_0x568d16[_0x319e6a('0x1717')][_0x325ce6]['id']});_0x6e48c7&&(_0x568d16[_0x319e6a('0x1717')][_0x325ce6][_0x319e6a('0x12eb')]=![],_0x45a745[_0x319e6a('0x1599')](_0x568d16[_0x319e6a('0x1717')][_0x325ce6]));}_0x568d16[_0x319e6a('0x1717')]=_0x45a745;}else{if(!_0x144e33[_0x319e6a('0x26cc')])return _0x591a1e[_0x319e6a('0x249a')][_0x319e6a('0x2122')]({'sectionId':_0x144e33['id']})[_0x319e6a('0x1dc2')][_0x319e6a('0xaa5')](function(_0x36cd96){var _0x18d4c4=_0x319e6a,_0x22d738=_0x51538b()['map'](_0x36cd96['rows'],function(_0x50fcf7){var _0x2ddad2=a0_0x1149;return _0x51538b()['find'](_0x568d16['agents'],{'id':_0x50fcf7[_0x2ddad2('0xbcd')]});}),_0x35478a=null;_0x35478a=[],_0x568d16['triggerAllConditions'][_0x18d4c4('0x580')][_0x18d4c4('0x15b5')](function(_0x50941e){var _0x1922a5=_0x18d4c4;if(_0x50941e[_0x1922a5('0x5f2')]===_0x1922a5('0xeff')){var _0x58c57c=_0x51538b()['find'](_0x568d16[_0x1922a5('0x1717')],{'name':_0x50941e[_0x1922a5('0x12f4')]});_0x35478a[_0x1922a5('0x1599')](_0x58c57c);}}),!_0x51538b()[_0x18d4c4('0x116b')](_0x35478a)&&_0x35478a['forEach'](function(_0x446f86){var _0x48d4bc=_0x18d4c4;if(!_0x51538b()[_0x48d4bc('0x2c2')](_0x22d738,['id',_0x446f86['id']])){var _0x517c51=_0x51538b()[_0x48d4bc('0xe9e')](_0x568d16[_0x48d4bc('0x1717')],{'id':_0x446f86['id']});_0x517c51[_0x48d4bc('0x12eb')]=![],_0x22d738[_0x48d4bc('0x1599')](_0x517c51);}}),_0x568d16[_0x18d4c4('0x1717')]=_0x22d738;});}})[_0x3ac2ef('0x253d')](function(_0x53c199){var _0x44f903=_0x3ac2ef;_0xa98e57[_0x44f903('0x187f')]({'title':_0x53c199[_0x44f903('0x2fa')]?'API:'+_0x53c199[_0x44f903('0x2fa')]+_0x44f903('0x169e')+_0x53c199['statusText']:'SYSTEM:GET_AGENTS','msg':_0x53c199['data']?JSON[_0x44f903('0xa48')](_0x53c199[_0x44f903('0x10fd')]):_0x53c199[_0x44f903('0x684')]()});});}function _0x3ee427(){var _0x1cb236=_0xfe17ee;if(_0x568d16[_0x1cb236('0x2624')]['channel']==='voice'){if(_0x51538b()['some'](_0x568d16[_0x1cb236('0x24aa')][_0x1cb236('0x580')],[_0x1cb236('0x5f2'),_0x1cb236('0xe26')])){if(!_0x568d16[_0x1cb236('0x4d7')])_0x414ee7();}if(_0x51538b()[_0x1cb236('0x2c2')](_0x568d16['triggerAllConditions']['rows'],['field','routeId'])){if(!_0x568d16[_0x1cb236('0xe59')])_0x11c35e();}if(_0x51538b()[_0x1cb236('0x2c2')](_0x568d16[_0x1cb236('0x24aa')][_0x1cb236('0x580')],['field','agent'])){if(!_0x568d16[_0x1cb236('0x1717')])_0xac8c66();}}else _0xe1f155();}function _0x3660b6(_0x4664e9){_0x568d16['triggerAllConditions']=_0x4664e9||{'count':0x0,'rows':[]},_0x3ee427();}function _0x50ac08(){var _0x30c936=_0xfe17ee;_0x568d16[_0x30c936('0x582')]['offset']=(_0x568d16[_0x30c936('0x582')][_0x30c936('0x41')]-0x1)*_0x568d16[_0x30c936('0x582')]['limit'],_0x568d16[_0x30c936('0x159a')]=_0x591a1e[_0x30c936('0x2624')][_0x30c936('0xbb1')](_0x568d16[_0x30c936('0x582')],_0x3660b6)[_0x30c936('0x1dc2')];}function _0x2d5a72(_0x8ed7b1,_0xc6aa88){var _0xf02b03=_0xfe17ee;_0x27fdd5[_0xf02b03('0x1e6d')]({'controller':_0xf02b03('0x35e'),'controllerAs':'vm','templateUrl':_0x5639bc,'parent':angular[_0xf02b03('0x1aa8')](_0xefb3d9[_0xf02b03('0x54c')]),'targetEvent':_0x8ed7b1,'clickOutsideToClose':!![],'locals':{'trigger':_0x568d16['trigger'],'allCondition':_0xc6aa88,'allConditions':_0x568d16['triggerAllConditions'][_0xf02b03('0x580')],'license':null,'setting':null,'crudPermissions':_0x568d16['crudPermissions']}})['then'](function(_0x12f8b6){var _0x19e3fa=_0xf02b03;_0x12f8b6&&(_0x568d16[_0x19e3fa('0x24aa')]={'count':_0x12f8b6[_0x19e3fa('0x2587')],'rows':_0x12f8b6},_0x3ee427());});}function _0x56ac88(_0x31d326,_0x1565a8){var _0x5d31d1=_0xfe17ee,_0x5c1be5=_0x27fdd5[_0x5d31d1('0x281e')]()[_0x5d31d1('0x110a')](_0x1fc846[_0x5d31d1('0x213f')](_0x5d31d1('0x23e4')))[_0x5d31d1('0x5b5')]('Delete\x20condition')[_0x5d31d1('0x116d')](_0x1565a8)['ok']('OK')['cancel'](_0x1fc846[_0x5d31d1('0x213f')]('TOOLS.CANCEL'));_0x27fdd5[_0x5d31d1('0x1e6d')](_0x5c1be5)[_0x5d31d1('0xaa5')](function(){_0x49add7(_0x31d326,!![]);});}function _0x49add7(_0x311569,_0x216b6e){var _0x5e49ed=_0xfe17ee;_0x591a1e['condition'][_0x5e49ed('0x926')]({'id':_0x311569['id']})['$promise']['then'](function(){var _0x1e1267=_0x5e49ed;_0x50ac08(),_0x216b6e&&_0xa98e57[_0x1e1267('0xe10')]({'title':_0x1fc846[_0x1e1267('0x213f')](_0x1e1267('0x1d3a'))});})[_0x5e49ed('0x253d')](function(_0x277975){var _0x37f5f9=_0x5e49ed;if(_0x277975[_0x37f5f9('0x10fd')]&&_0x277975[_0x37f5f9('0x10fd')][_0x37f5f9('0x4c6')]&&_0x277975[_0x37f5f9('0x10fd')][_0x37f5f9('0x4c6')][_0x37f5f9('0x2587')]){_0x568d16[_0x37f5f9('0x4c6')]=_0x277975[_0x37f5f9('0x10fd')]['errors']||[{'message':_0x277975[_0x37f5f9('0x684')](),'type':_0x37f5f9('0x165f')}];for(var _0x5b3c32=0x0;_0x5b3c32<_0x277975[_0x37f5f9('0x10fd')]['errors'][_0x37f5f9('0x2587')];_0x5b3c32++){_0xa98e57[_0x37f5f9('0x187f')]({'title':_0x277975[_0x37f5f9('0x10fd')]['errors'][_0x5b3c32][_0x37f5f9('0x6c8')],'msg':_0x277975[_0x37f5f9('0x10fd')]['errors'][_0x5b3c32]['message']});}}else _0xa98e57[_0x37f5f9('0x187f')]({'title':_0x277975['status']?_0x37f5f9('0x16c2')+_0x277975[_0x37f5f9('0x2fa')]+'\x20-\x20'+_0x277975[_0x37f5f9('0x24df')]:_0x37f5f9('0x165f'),'msg':_0x277975[_0x37f5f9('0x10fd')]?JSON[_0x37f5f9('0xa48')](_0x277975[_0x37f5f9('0x10fd')][_0x37f5f9('0x1402')]):_0x277975['message']||_0x277975[_0x37f5f9('0x684')]()});});}function _0x4c30e1(){var _0x352138=_0xfe17ee,_0x356fff=angular[_0x352138('0x20a')](_0x568d16[_0x352138('0x119a')]);return _0x568d16[_0x352138('0x119a')]=[],_0x356fff;}function _0x24c09b(_0x46b06f){var _0x4feef6=_0xfe17ee,_0x462447=_0x27fdd5['confirm']()[_0x4feef6('0x110a')](_0x1fc846[_0x4feef6('0x213f')](_0x4feef6('0x22f6')))['content'](_0x1fc846['instant']('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE',{'total':_0x568d16[_0x4feef6('0x119a')]['length']}))[_0x4feef6('0x5b5')](_0x4feef6('0xf8e'))[_0x4feef6('0x116d')](_0x46b06f)['ok']('OK')[_0x4feef6('0x2030')](_0x1fc846[_0x4feef6('0x213f')](_0x4feef6('0x1dd8')));_0x27fdd5[_0x4feef6('0x1e6d')](_0x462447)[_0x4feef6('0xaa5')](function(){var _0xe6011f=_0x4feef6;_0x568d16[_0xe6011f('0x119a')]['forEach'](function(_0x1e48fd){_0x49add7(_0x1e48fd);}),_0x568d16[_0xe6011f('0x119a')]=[],_0xa98e57[_0xe6011f('0xe10')]({'title':_0x1fc846[_0xe6011f('0x213f')]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE')});});}var _0xfbccbd=!![],_0x5eec5a=0x1;_0x132995[_0xfe17ee('0x1ccf')](_0xfe17ee('0x74c'),function(_0x14942a,_0x544efc){var _0x5962b2=_0xfe17ee;_0xfbccbd?_0x4ba3c0(function(){_0xfbccbd=![];}):(!_0x544efc&&(_0x5eec5a=_0x568d16[_0x5962b2('0x582')]['page']),_0x14942a!==_0x544efc&&(_0x568d16[_0x5962b2('0x582')][_0x5962b2('0x41')]=0x1),!_0x14942a&&(_0x568d16[_0x5962b2('0x582')][_0x5962b2('0x41')]=_0x5eec5a),_0x50ac08());});}const _0x3b4824=_0x4487f8;_0x4c4396[_0x1a8446('0x1e33')]=['$scope','$state','$location','$mdDialog','$q','$translate',_0x1a8446('0x2a4'),'allconditions',_0x1a8446('0xfa3'),_0x1a8446('0x2624'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x4c4396(_0x4bde9d,_0x1a8ab0,_0x435393,_0x1b8414,_0x19dfa2,_0x372848,_0x16ef3b,_0x2cc1c3,_0x5d6646,_0x337c28,_0x25d4de,_0x82933c,_0x4d1e2f,_0x23f9fb,_0xedc9eb){var _0x5329b7=_0x1a8446,_0x222f29=this;_0x222f29[_0x5329b7('0x7fc')]=_0x82933c['getCurrentUser'](),_0x222f29[_0x5329b7('0x4c6')]=[],_0x222f29[_0x5329b7('0x143f')]=_0x23f9fb,_0x222f29[_0x5329b7('0x1202')]=_0x4d1e2f,_0x222f29[_0x5329b7('0xada')]=_0xedc9eb,_0x222f29[_0x5329b7('0x9f0')]={},_0x222f29['passwordPattern']=_0x222f29['setting']&&_0x222f29[_0x5329b7('0x143f')][_0x5329b7('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x222f29['title']=_0x5329b7('0x1bc'),_0x222f29[_0x5329b7('0xfa3')]=angular[_0x5329b7('0x20a')](_0x5d6646),_0x222f29[_0x5329b7('0x1a2c')]=_0x2cc1c3,_0x222f29[_0x5329b7('0x1407')]=![],_0x222f29[_0x5329b7('0x2624')]=angular['copy'](_0x337c28);!_0x222f29[_0x5329b7('0xfa3')]&&(_0x222f29[_0x5329b7('0xfa3')]={'field':'queue','operator':'equals','value':'in'},_0x222f29[_0x5329b7('0x110a')]='TOOLS.NEW_ALLCONDITION',_0x222f29[_0x5329b7('0x1407')]=!![]);_0x1a8ab0[_0x5329b7('0x25cf')]['id']&&(_0x222f29[_0x5329b7('0xfa3')][_0x5329b7('0x225b')]=_0x1a8ab0[_0x5329b7('0x25cf')]['id']);_0x222f29['addNewAllCondition']=_0x416323,_0x222f29['saveAllCondition']=_0xc2f8aa,_0x222f29['deleteAllCondition']=_0x2aa975,_0x222f29['getDateFromString']=_0x26d86e,_0x222f29[_0x5329b7('0x2023')]=_0x2f9938,_0x82933c[_0x5329b7('0x26e8')](_0x5329b7('0x178b'))?_0x25d4de[_0x5329b7('0x10f1')]['get']({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':'true'})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x34f11e){var _0x331046=_0x5329b7;_0x222f29['chatAccounts']=_0x34f11e[_0x331046('0x580')]||[];})['catch'](function(_0x37e403){var _0x528136=_0x5329b7;_0x16ef3b[_0x528136('0x187f')]({'title':_0x37e403[_0x528136('0x2fa')]?'API:'+_0x37e403[_0x528136('0x2fa')]+_0x528136('0x169e')+_0x37e403[_0x528136('0x24df')]:_0x528136('0xae7'),'msg':_0x37e403['data']?JSON[_0x528136('0xa48')](_0x37e403[_0x528136('0x10fd')]):_0x37e403[_0x528136('0x684')]()});}):_0x25d4de[_0x5329b7('0x10f1')][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x371aae){var _0x3584db=_0x5329b7;_0x222f29[_0x3584db('0x86c')]=_0x371aae['rows']||[];})[_0x5329b7('0xaa5')](function(){var _0x3efaa0=_0x5329b7;return _0x25d4de[_0x3efaa0('0x1a50')]['get']({'userProfileId':_0x222f29[_0x3efaa0('0x7fc')][_0x3efaa0('0x2168')],'sectionId':0x1f6})[_0x3efaa0('0x1dc2')];})[_0x5329b7('0xaa5')](function(_0x2e7229){var _0x5946d8=_0x5329b7,_0x466343=_0x2e7229&&_0x2e7229[_0x5946d8('0x580')]?_0x2e7229['rows'][0x0]:null;if(!_0x466343){var _0x1fcf3d=[],_0xf8c9f8=null;_0x222f29['allCondition']&&(_0xf8c9f8=_0x51538b()['find'](_0x222f29['chatAccounts'],{'id':Number(_0x222f29[_0x5946d8('0xfa3')][_0x5946d8('0x12f4')])}));for(var _0x32638d=0x0;_0x32638d<_0x222f29['chatAccounts'][_0x5946d8('0x2587')];_0x32638d++){_0xf8c9f8&&_0x222f29[_0x5946d8('0x86c')][_0x32638d]['id']===_0xf8c9f8['id']&&(_0x222f29[_0x5946d8('0x86c')][_0x32638d][_0x5946d8('0x12eb')]=![],_0x1fcf3d[_0x5946d8('0x1599')](_0x222f29[_0x5946d8('0x86c')][_0x32638d]));}_0x222f29['chatAccounts']=_0x1fcf3d;}else{if(!_0x466343['autoAssociation'])return _0x25d4de[_0x5946d8('0x249a')]['get']({'sectionId':_0x466343['id']})[_0x5946d8('0x1dc2')][_0x5946d8('0xaa5')](function(_0x363aca){var _0x1d277d=_0x5946d8,_0x4c7f39=_0x51538b()[_0x1d277d('0x1246')](_0x363aca[_0x1d277d('0x580')],function(_0x2cef48){var _0x373d73=_0x1d277d;return _0x51538b()[_0x373d73('0xe9e')](_0x222f29[_0x373d73('0x86c')],{'id':_0x2cef48['resourceId']});}),_0x3d9c89=null;_0x222f29[_0x1d277d('0xfa3')]&&(_0x3d9c89=_0x51538b()[_0x1d277d('0xe9e')](_0x222f29[_0x1d277d('0x86c')],{'id':Number(_0x222f29['allCondition'][_0x1d277d('0x12f4')])}));if(_0x3d9c89&&!_0x51538b()[_0x1d277d('0x2c2')](_0x4c7f39,['id',_0x3d9c89['id']])){var _0x18ae73=_0x51538b()[_0x1d277d('0xe9e')](_0x222f29['chatAccounts'],{'id':_0x3d9c89['id']});_0x18ae73[_0x1d277d('0x12eb')]=![],_0x4c7f39['push'](_0x18ae73);}_0x222f29[_0x1d277d('0x86c')]=_0x4c7f39;});}})[_0x5329b7('0x253d')](function(_0x5bae1e){var _0x575581=_0x5329b7;_0x16ef3b[_0x575581('0x187f')]({'title':_0x5bae1e['status']?_0x575581('0x16c2')+_0x5bae1e['status']+_0x575581('0x169e')+_0x5bae1e[_0x575581('0x24df')]:_0x575581('0xd30'),'msg':_0x5bae1e[_0x575581('0x10fd')]?JSON[_0x575581('0xa48')](_0x5bae1e['data']):_0x5bae1e['toString']()});}),_0x82933c[_0x5329b7('0x26e8')](_0x5329b7('0x178b'))?_0x25d4de['mailAccount'][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':'true'})[_0x5329b7('0x1dc2')]['then'](function(_0x2229f6){var _0x12d5cb=_0x5329b7;_0x222f29[_0x12d5cb('0x172d')]=_0x2229f6[_0x12d5cb('0x580')]||[];})[_0x5329b7('0x253d')](function(_0xdf2f3b){var _0x39b23c=_0x5329b7;_0x16ef3b['error']({'title':_0xdf2f3b[_0x39b23c('0x2fa')]?_0x39b23c('0x16c2')+_0xdf2f3b['status']+_0x39b23c('0x169e')+_0xdf2f3b[_0x39b23c('0x24df')]:_0x39b23c('0x2470'),'msg':_0xdf2f3b[_0x39b23c('0x10fd')]?JSON[_0x39b23c('0xa48')](_0xdf2f3b[_0x39b23c('0x10fd')]):_0xdf2f3b[_0x39b23c('0x684')]()});}):_0x25d4de[_0x5329b7('0xb86')][_0x5329b7('0x2122')]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x1e7886){var _0x57f036=_0x5329b7;_0x222f29[_0x57f036('0x172d')]=_0x1e7886[_0x57f036('0x580')]||[];})[_0x5329b7('0xaa5')](function(){var _0x1b4874=_0x5329b7;return _0x25d4de[_0x1b4874('0x1a50')][_0x1b4874('0x2122')]({'userProfileId':_0x222f29['currentUser'][_0x1b4874('0x2168')],'sectionId':0x25a})[_0x1b4874('0x1dc2')];})[_0x5329b7('0xaa5')](function(_0x6b105f){var _0x1fe549=_0x5329b7,_0x39b55a=_0x6b105f&&_0x6b105f['rows']?_0x6b105f['rows'][0x0]:null;if(!_0x39b55a){var _0x1ad6e9=[],_0x4df50c=null;_0x222f29[_0x1fe549('0xfa3')]&&(_0x4df50c=_0x51538b()[_0x1fe549('0xe9e')](_0x222f29[_0x1fe549('0x172d')],{'id':Number(_0x222f29[_0x1fe549('0xfa3')][_0x1fe549('0x12f4')])}));for(var _0x1f8d1f=0x0;_0x1f8d1f<_0x222f29[_0x1fe549('0x172d')][_0x1fe549('0x2587')];_0x1f8d1f++){_0x4df50c&&_0x222f29[_0x1fe549('0x172d')][_0x1f8d1f]['id']===_0x4df50c['id']&&(_0x222f29[_0x1fe549('0x172d')][_0x1f8d1f]['canSelect']=![],_0x1ad6e9[_0x1fe549('0x1599')](_0x222f29[_0x1fe549('0x172d')][_0x1f8d1f]));}_0x222f29[_0x1fe549('0x172d')]=_0x1ad6e9;}else{if(!_0x39b55a['autoAssociation'])return _0x25d4de['userProfileResource'][_0x1fe549('0x2122')]({'sectionId':_0x39b55a['id']})['$promise'][_0x1fe549('0xaa5')](function(_0x5e656e){var _0x172cdc=_0x1fe549,_0x22f21b=_0x51538b()[_0x172cdc('0x1246')](_0x5e656e['rows'],function(_0x3b2411){var _0x1cacab=_0x172cdc;return _0x51538b()['find'](_0x222f29[_0x1cacab('0x172d')],{'id':_0x3b2411[_0x1cacab('0xbcd')]});}),_0x1a8ccc=null;_0x222f29[_0x172cdc('0xfa3')]&&(_0x1a8ccc=_0x51538b()[_0x172cdc('0xe9e')](_0x222f29[_0x172cdc('0x172d')],{'id':Number(_0x222f29[_0x172cdc('0xfa3')][_0x172cdc('0x12f4')])}));if(_0x1a8ccc&&!_0x51538b()[_0x172cdc('0x2c2')](_0x22f21b,['id',_0x1a8ccc['id']])){var _0x503f0e=_0x51538b()[_0x172cdc('0xe9e')](_0x222f29[_0x172cdc('0x172d')],{'id':_0x1a8ccc['id']});_0x503f0e[_0x172cdc('0x12eb')]=![],_0x22f21b[_0x172cdc('0x1599')](_0x503f0e);}_0x222f29[_0x172cdc('0x172d')]=_0x22f21b;});}})[_0x5329b7('0x253d')](function(_0x3131e0){var _0x5035a9=_0x5329b7;_0x16ef3b['error']({'title':_0x3131e0[_0x5035a9('0x2fa')]?'API:'+_0x3131e0[_0x5035a9('0x2fa')]+_0x5035a9('0x169e')+_0x3131e0[_0x5035a9('0x24df')]:_0x5035a9('0x1ff3'),'msg':_0x3131e0[_0x5035a9('0x10fd')]?JSON[_0x5035a9('0xa48')](_0x3131e0[_0x5035a9('0x10fd')]):_0x3131e0[_0x5035a9('0x684')]()});}),_0x82933c[_0x5329b7('0x26e8')]('admin')?_0x25d4de[_0x5329b7('0x1658')]['get']({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':_0x5329b7('0x1c5c')})['$promise'][_0x5329b7('0xaa5')](function(_0x55cfed){var _0x1a97f4=_0x5329b7;_0x222f29['smsAccounts']=_0x55cfed[_0x1a97f4('0x580')]||[];})[_0x5329b7('0x253d')](function(_0x43359b){var _0x5a05f5=_0x5329b7;_0x16ef3b[_0x5a05f5('0x187f')]({'title':_0x43359b[_0x5a05f5('0x2fa')]?'API:'+_0x43359b['status']+_0x5a05f5('0x169e')+_0x43359b['statusText']:_0x5a05f5('0x26e6'),'msg':_0x43359b[_0x5a05f5('0x10fd')]?JSON['stringify'](_0x43359b[_0x5a05f5('0x10fd')]):_0x43359b[_0x5a05f5('0x684')]()});}):_0x25d4de[_0x5329b7('0x1658')][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':'true'})['$promise']['then'](function(_0x1dab1b){var _0x26a056=_0x5329b7;_0x222f29[_0x26a056('0x18a1')]=_0x1dab1b[_0x26a056('0x580')]||[];})[_0x5329b7('0xaa5')](function(){var _0x5acd77=_0x5329b7;return _0x25d4de[_0x5acd77('0x1a50')]['get']({'userProfileId':_0x222f29[_0x5acd77('0x7fc')][_0x5acd77('0x2168')],'sectionId':0x2be})[_0x5acd77('0x1dc2')];})[_0x5329b7('0xaa5')](function(_0x5dd490){var _0x15fd33=_0x5329b7,_0x25809d=_0x5dd490&&_0x5dd490['rows']?_0x5dd490[_0x15fd33('0x580')][0x0]:null;if(!_0x25809d){var _0x5c9d3f=[],_0x302460=null;_0x222f29['allCondition']&&(_0x302460=_0x51538b()[_0x15fd33('0xe9e')](_0x222f29[_0x15fd33('0x18a1')],{'id':Number(_0x222f29[_0x15fd33('0xfa3')][_0x15fd33('0x12f4')])}));for(var _0x42a272=0x0;_0x42a272<_0x222f29[_0x15fd33('0x18a1')][_0x15fd33('0x2587')];_0x42a272++){_0x302460&&_0x222f29[_0x15fd33('0x18a1')][_0x42a272]['id']===_0x302460['id']&&(_0x222f29[_0x15fd33('0x18a1')][_0x42a272][_0x15fd33('0x12eb')]=![],_0x5c9d3f[_0x15fd33('0x1599')](_0x222f29['smsAccounts'][_0x42a272]));}_0x222f29[_0x15fd33('0x18a1')]=_0x5c9d3f;}else{if(!_0x25809d[_0x15fd33('0x26cc')])return _0x25d4de[_0x15fd33('0x249a')]['get']({'sectionId':_0x25809d['id']})[_0x15fd33('0x1dc2')]['then'](function(_0x2f716d){var _0x166e5d=_0x15fd33,_0x254f97=_0x51538b()[_0x166e5d('0x1246')](_0x2f716d[_0x166e5d('0x580')],function(_0x4bdb4c){var _0x52010b=_0x166e5d;return _0x51538b()['find'](_0x222f29['smsAccounts'],{'id':_0x4bdb4c[_0x52010b('0xbcd')]});}),_0x5265fa=null;_0x222f29[_0x166e5d('0xfa3')]&&(_0x5265fa=_0x51538b()[_0x166e5d('0xe9e')](_0x222f29[_0x166e5d('0x18a1')],{'id':Number(_0x222f29['allCondition']['value'])}));if(_0x5265fa&&!_0x51538b()[_0x166e5d('0x2c2')](_0x254f97,['id',_0x5265fa['id']])){var _0x1bc587=_0x51538b()[_0x166e5d('0xe9e')](_0x222f29[_0x166e5d('0x18a1')],{'id':_0x5265fa['id']});_0x1bc587[_0x166e5d('0x12eb')]=![],_0x254f97[_0x166e5d('0x1599')](_0x1bc587);}_0x222f29[_0x166e5d('0x18a1')]=_0x254f97;});}})[_0x5329b7('0x253d')](function(_0x331890){var _0x37750f=_0x5329b7;_0x16ef3b[_0x37750f('0x187f')]({'title':_0x331890['status']?'API:'+_0x331890['status']+_0x37750f('0x169e')+_0x331890[_0x37750f('0x24df')]:_0x37750f('0x1e17'),'msg':_0x331890[_0x37750f('0x10fd')]?JSON[_0x37750f('0xa48')](_0x331890[_0x37750f('0x10fd')]):_0x331890[_0x37750f('0x684')]()});}),_0x82933c[_0x5329b7('0x26e8')]('admin')?_0x25d4de[_0x5329b7('0x26ac')]['get']({'fields':'id,name','sort':'id','nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x402a45){var _0x4162ef=_0x5329b7;_0x222f29[_0x4162ef('0x2613')]=_0x402a45[_0x4162ef('0x580')]||[];})['catch'](function(_0x182c62){var _0x398386=_0x5329b7;_0x16ef3b[_0x398386('0x187f')]({'title':_0x182c62[_0x398386('0x2fa')]?_0x398386('0x16c2')+_0x182c62[_0x398386('0x2fa')]+'\x20-\x20'+_0x182c62[_0x398386('0x24df')]:_0x398386('0x1504'),'msg':_0x182c62[_0x398386('0x10fd')]?JSON['stringify'](_0x182c62[_0x398386('0x10fd')]):_0x182c62['toString']()});}):_0x25d4de[_0x5329b7('0x26ac')][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x210779){var _0x220453=_0x5329b7;_0x222f29[_0x220453('0x2613')]=_0x210779[_0x220453('0x580')]||[];})['then'](function(){var _0xc89387=_0x5329b7;return _0x25d4de['userProfileSection'][_0xc89387('0x2122')]({'userProfileId':_0x222f29['currentUser'][_0xc89387('0x2168')],'sectionId':0x836})[_0xc89387('0x1dc2')];})[_0x5329b7('0xaa5')](function(_0x4e25a5){var _0x13dcf6=_0x5329b7,_0x48df2c=_0x4e25a5&&_0x4e25a5[_0x13dcf6('0x580')]?_0x4e25a5[_0x13dcf6('0x580')][0x0]:null;if(!_0x48df2c){var _0x23ae63=[],_0x1c7ce1=null;_0x222f29[_0x13dcf6('0xfa3')]&&(_0x1c7ce1=_0x51538b()['find'](_0x222f29[_0x13dcf6('0x2613')],{'id':Number(_0x222f29[_0x13dcf6('0xfa3')][_0x13dcf6('0x12f4')])}));for(var _0x58e8e4=0x0;_0x58e8e4<_0x222f29[_0x13dcf6('0x2613')]['length'];_0x58e8e4++){_0x1c7ce1&&_0x222f29['whatsappAccounts'][_0x58e8e4]['id']===_0x1c7ce1['id']&&(_0x222f29[_0x13dcf6('0x2613')][_0x58e8e4]['canSelect']=![],_0x23ae63[_0x13dcf6('0x1599')](_0x222f29['whatsappAccounts'][_0x58e8e4]));}_0x222f29['whatsappAccounts']=_0x23ae63;}else{if(!_0x48df2c['autoAssociation'])return _0x25d4de[_0x13dcf6('0x249a')]['get']({'sectionId':_0x48df2c['id']})[_0x13dcf6('0x1dc2')]['then'](function(_0x36e8da){var _0x1574bd=_0x13dcf6,_0x3a8fc0=_0x51538b()[_0x1574bd('0x1246')](_0x36e8da[_0x1574bd('0x580')],function(_0x50a7f9){var _0x1a9f06=_0x1574bd;return _0x51538b()[_0x1a9f06('0xe9e')](_0x222f29[_0x1a9f06('0x2613')],{'id':_0x50a7f9['resourceId']});}),_0x11933e=null;_0x222f29[_0x1574bd('0xfa3')]&&(_0x11933e=_0x51538b()[_0x1574bd('0xe9e')](_0x222f29[_0x1574bd('0x2613')],{'id':Number(_0x222f29['allCondition'][_0x1574bd('0x12f4')])}));if(_0x11933e&&!_0x51538b()[_0x1574bd('0x2c2')](_0x3a8fc0,['id',_0x11933e['id']])){var _0x39bc79=_0x51538b()['find'](_0x222f29['whatsappAccounts'],{'id':_0x11933e['id']});_0x39bc79[_0x1574bd('0x12eb')]=![],_0x3a8fc0['push'](_0x39bc79);}_0x222f29[_0x1574bd('0x2613')]=_0x3a8fc0;});}})['catch'](function(_0x3fbd73){var _0x356f3a=_0x5329b7;_0x16ef3b[_0x356f3a('0x187f')]({'title':_0x3fbd73[_0x356f3a('0x2fa')]?_0x356f3a('0x16c2')+_0x3fbd73['status']+_0x356f3a('0x169e')+_0x3fbd73[_0x356f3a('0x24df')]:_0x356f3a('0x1d05'),'msg':_0x3fbd73['data']?JSON['stringify'](_0x3fbd73[_0x356f3a('0x10fd')]):_0x3fbd73[_0x356f3a('0x684')]()});}),_0x82933c[_0x5329b7('0x26e8')](_0x5329b7('0x178b'))?_0x25d4de[_0x5329b7('0x1f6a')][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x402fb1){var _0x3c0b94=_0x5329b7;_0x222f29[_0x3c0b94('0xf2c')]=_0x402fb1[_0x3c0b94('0x580')]||[];})['catch'](function(_0x1b055b){var _0x18cb8a=_0x5329b7;_0x16ef3b['error']({'title':_0x1b055b[_0x18cb8a('0x2fa')]?_0x18cb8a('0x16c2')+_0x1b055b[_0x18cb8a('0x2fa')]+'\x20-\x20'+_0x1b055b[_0x18cb8a('0x24df')]:_0x18cb8a('0x240f'),'msg':_0x1b055b[_0x18cb8a('0x10fd')]?JSON[_0x18cb8a('0xa48')](_0x1b055b[_0x18cb8a('0x10fd')]):_0x1b055b[_0x18cb8a('0x684')]()});}):_0x25d4de[_0x5329b7('0x1f6a')]['get']({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':_0x5329b7('0x1c5c')})['$promise'][_0x5329b7('0xaa5')](function(_0x4593ac){var _0x3e88f2=_0x5329b7;_0x222f29[_0x3e88f2('0xf2c')]=_0x4593ac[_0x3e88f2('0x580')]||[];})['then'](function(){var _0x153831=_0x5329b7;return _0x25d4de[_0x153831('0x1a50')][_0x153831('0x2122')]({'userProfileId':_0x222f29[_0x153831('0x7fc')][_0x153831('0x2168')],'sectionId':0x386})[_0x153831('0x1dc2')];})[_0x5329b7('0xaa5')](function(_0x481457){var _0x1d6924=_0x5329b7,_0x3b2ebb=_0x481457&&_0x481457['rows']?_0x481457[_0x1d6924('0x580')][0x0]:null;if(!_0x3b2ebb){var _0x4e141e=[],_0x4366fd=null;_0x222f29[_0x1d6924('0xfa3')]&&(_0x4366fd=_0x51538b()[_0x1d6924('0xe9e')](_0x222f29[_0x1d6924('0xf2c')],{'id':Number(_0x222f29[_0x1d6924('0xfa3')]['value'])}));for(var _0x317f97=0x0;_0x317f97<_0x222f29[_0x1d6924('0xf2c')][_0x1d6924('0x2587')];_0x317f97++){_0x4366fd&&_0x222f29[_0x1d6924('0xf2c')][_0x317f97]['id']===_0x4366fd['id']&&(_0x222f29['faxAccounts'][_0x317f97]['canSelect']=![],_0x4e141e[_0x1d6924('0x1599')](_0x222f29[_0x1d6924('0xf2c')][_0x317f97]));}_0x222f29[_0x1d6924('0xf2c')]=_0x4e141e;}else{if(!_0x3b2ebb['autoAssociation'])return _0x25d4de['userProfileResource'][_0x1d6924('0x2122')]({'sectionId':_0x3b2ebb['id']})[_0x1d6924('0x1dc2')]['then'](function(_0x3cbf16){var _0x51461a=_0x1d6924,_0x2cf134=_0x51538b()[_0x51461a('0x1246')](_0x3cbf16[_0x51461a('0x580')],function(_0x179a7d){var _0x5e822f=_0x51461a;return _0x51538b()[_0x5e822f('0xe9e')](_0x222f29['faxAccounts'],{'id':_0x179a7d[_0x5e822f('0xbcd')]});}),_0x5e7ddf=null;_0x222f29['allCondition']&&(_0x5e7ddf=_0x51538b()[_0x51461a('0xe9e')](_0x222f29[_0x51461a('0xf2c')],{'id':Number(_0x222f29[_0x51461a('0xfa3')][_0x51461a('0x12f4')])}));if(_0x5e7ddf&&!_0x51538b()[_0x51461a('0x2c2')](_0x2cf134,['id',_0x5e7ddf['id']])){var _0x1b5e08=_0x51538b()['find'](_0x222f29[_0x51461a('0xf2c')],{'id':_0x5e7ddf['id']});_0x1b5e08[_0x51461a('0x12eb')]=![],_0x2cf134['push'](_0x1b5e08);}_0x222f29[_0x51461a('0xf2c')]=_0x2cf134;});}})[_0x5329b7('0x253d')](function(_0x4c2a79){var _0x131c11=_0x5329b7;_0x16ef3b[_0x131c11('0x187f')]({'title':_0x4c2a79[_0x131c11('0x2fa')]?'API:'+_0x4c2a79[_0x131c11('0x2fa')]+_0x131c11('0x169e')+_0x4c2a79[_0x131c11('0x24df')]:_0x131c11('0x3b3'),'msg':_0x4c2a79[_0x131c11('0x10fd')]?JSON[_0x131c11('0xa48')](_0x4c2a79[_0x131c11('0x10fd')]):_0x4c2a79['toString']()});}),_0x82933c[_0x5329b7('0x26e8')](_0x5329b7('0x178b'))?_0x25d4de[_0x5329b7('0x2566')][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')]['then'](function(_0xeed49a){var _0x2ca1df=_0x5329b7;_0x222f29[_0x2ca1df('0x23f0')]=_0xeed49a['rows']||[];})['catch'](function(_0x21321e){var _0x3deb74=_0x5329b7;_0x16ef3b[_0x3deb74('0x187f')]({'title':_0x21321e[_0x3deb74('0x2fa')]?_0x3deb74('0x16c2')+_0x21321e[_0x3deb74('0x2fa')]+_0x3deb74('0x169e')+_0x21321e[_0x3deb74('0x24df')]:'SYSTEM:GET_OPENCHANNELACCOUNTS','msg':_0x21321e[_0x3deb74('0x10fd')]?JSON['stringify'](_0x21321e[_0x3deb74('0x10fd')]):_0x21321e['toString']()});}):_0x25d4de[_0x5329b7('0x2566')][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x17fe'),'sort':'id','nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')]['then'](function(_0xa94d26){var _0x158fd2=_0x5329b7;_0x222f29['openchannelAccounts']=_0xa94d26[_0x158fd2('0x580')]||[];})['then'](function(){var _0xea7172=_0x5329b7;return _0x25d4de['userProfileSection'][_0xea7172('0x2122')]({'userProfileId':_0x222f29[_0xea7172('0x7fc')][_0xea7172('0x2168')],'sectionId':0x322})[_0xea7172('0x1dc2')];})[_0x5329b7('0xaa5')](function(_0x217049){var _0x184534=_0x5329b7,_0x96bf9=_0x217049&&_0x217049[_0x184534('0x580')]?_0x217049[_0x184534('0x580')][0x0]:null;if(!_0x96bf9){var _0x41fecb=[],_0xf0b3e2=null;_0x222f29[_0x184534('0xfa3')]&&(_0xf0b3e2=_0x51538b()[_0x184534('0xe9e')](_0x222f29[_0x184534('0x23f0')],{'id':Number(_0x222f29[_0x184534('0xfa3')]['value'])}));for(var _0x443ae2=0x0;_0x443ae2<_0x222f29[_0x184534('0x23f0')][_0x184534('0x2587')];_0x443ae2++){_0xf0b3e2&&_0x222f29['openchannelAccounts'][_0x443ae2]['id']===_0xf0b3e2['id']&&(_0x222f29[_0x184534('0x23f0')][_0x443ae2][_0x184534('0x12eb')]=![],_0x41fecb[_0x184534('0x1599')](_0x222f29['openchannelAccounts'][_0x443ae2]));}_0x222f29[_0x184534('0x23f0')]=_0x41fecb;}else{if(!_0x96bf9[_0x184534('0x26cc')])return _0x25d4de[_0x184534('0x249a')][_0x184534('0x2122')]({'sectionId':_0x96bf9['id']})[_0x184534('0x1dc2')][_0x184534('0xaa5')](function(_0x5f4e8c){var _0x1ad5f1=_0x184534,_0x2e67c7=_0x51538b()[_0x1ad5f1('0x1246')](_0x5f4e8c[_0x1ad5f1('0x580')],function(_0x19137d){var _0x5522b3=_0x1ad5f1;return _0x51538b()['find'](_0x222f29[_0x5522b3('0x23f0')],{'id':_0x19137d[_0x5522b3('0xbcd')]});}),_0x41d02d=null;_0x222f29[_0x1ad5f1('0xfa3')]&&(_0x41d02d=_0x51538b()[_0x1ad5f1('0xe9e')](_0x222f29[_0x1ad5f1('0x23f0')],{'id':Number(_0x222f29[_0x1ad5f1('0xfa3')][_0x1ad5f1('0x12f4')])}));if(_0x41d02d&&!_0x51538b()[_0x1ad5f1('0x2c2')](_0x2e67c7,['id',_0x41d02d['id']])){var _0x445fac=_0x51538b()[_0x1ad5f1('0xe9e')](_0x222f29[_0x1ad5f1('0x23f0')],{'id':_0x41d02d['id']});_0x445fac[_0x1ad5f1('0x12eb')]=![],_0x2e67c7['push'](_0x445fac);}_0x222f29['openchannelAccounts']=_0x2e67c7;});}})['catch'](function(_0x4d6296){var _0x56a30e=_0x5329b7;_0x16ef3b[_0x56a30e('0x187f')]({'title':_0x4d6296[_0x56a30e('0x2fa')]?_0x56a30e('0x16c2')+_0x4d6296[_0x56a30e('0x2fa')]+_0x56a30e('0x169e')+_0x4d6296[_0x56a30e('0x24df')]:_0x56a30e('0x74'),'msg':_0x4d6296[_0x56a30e('0x10fd')]?JSON[_0x56a30e('0xa48')](_0x4d6296[_0x56a30e('0x10fd')]):_0x4d6296[_0x56a30e('0x684')]()});});var _0x242b47=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x5329b7('0x19d1')}],_0x423309=null;_0x82933c['hasRole'](_0x5329b7('0x178b'))?_0x25d4de[_0x5329b7('0x1588')]['get']({'fields':_0x5329b7('0x21e2'),'sort':_0x5329b7('0x25d6'),'nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x324675){var _0x75dadd=_0x5329b7;_0x222f29[_0x75dadd('0x4d7')]=_0x324675[_0x75dadd('0x580')]||[];})[_0x5329b7('0x253d')](function(_0xa4839){var _0x449fc1=_0x5329b7;_0x16ef3b[_0x449fc1('0x187f')]({'title':_0xa4839[_0x449fc1('0x2fa')]?_0x449fc1('0x16c2')+_0xa4839[_0x449fc1('0x2fa')]+_0x449fc1('0x169e')+_0xa4839[_0x449fc1('0x24df')]:_0x449fc1('0x773'),'msg':_0xa4839['data']?JSON[_0x449fc1('0xa48')](_0xa4839[_0x449fc1('0x10fd')]):_0xa4839[_0x449fc1('0x684')]()});}):_0x25d4de[_0x5329b7('0x1588')][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x21e2'),'sort':_0x5329b7('0x25d6'),'nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')]['then'](function(_0x334531){var _0x501be9=_0x5329b7;_0x423309=_0x334531[_0x501be9('0x580')]||[];})[_0x5329b7('0xaa5')](function(){var _0x405541=_0x5329b7,_0x45998b=[];for(var _0x382bb5=0x0;_0x382bb5<_0x242b47[_0x405541('0x2587')];_0x382bb5++){_0x45998b[_0x405541('0x1599')](_0x25d4de[_0x405541('0x1a50')][_0x405541('0x2122')]({'userProfileId':_0x222f29[_0x405541('0x7fc')][_0x405541('0x2168')],'sectionId':_0x242b47[_0x382bb5]['id']})[_0x405541('0x1dc2')]);}return _0x19dfa2[_0x405541('0xa15')](_0x45998b);})[_0x5329b7('0xaa5')](function(_0x4df935){var _0x166635=_0x5329b7,_0x2b12f9=_0x51538b()[_0x166635('0x1246')](_0x4df935,function(_0x337f20){var _0x36058b=_0x166635;return _0x337f20&&_0x337f20['rows']?_0x337f20[_0x36058b('0x580')][0x0]:null;}),_0x237972=[],_0x33a976=function _0x5657cc(_0x2fd226){var _0x31d712=_0x166635,_0x16d2fe=_0x51538b()[_0x31d712('0xe9e')](_0x2b12f9,[_0x31d712('0x10b8'),_0x242b47[_0x2fd226]['id']]);if(_0x16d2fe){if(!_0x16d2fe[_0x31d712('0x26cc')])_0x237972[_0x31d712('0x1599')](_0x25d4de[_0x31d712('0x249a')][_0x31d712('0x2122')]({'sectionId':_0x16d2fe['id']})[_0x31d712('0x1dc2')]);else{var _0xf7e4a1=[];_0x423309[_0x31d712('0x15b5')](function(_0x653e89){var _0x30aa2b=_0x31d712;_0x653e89['type']===_0x242b47[_0x2fd226][_0x30aa2b('0x6c8')]&&_0xf7e4a1[_0x30aa2b('0x1599')](_0x653e89);}),_0x237972[_0x31d712('0x1599')]({'rows':_0xf7e4a1,'count':_0xf7e4a1[_0x31d712('0x2587')]});}}};for(var _0x67599f=0x0;_0x67599f<_0x242b47[_0x166635('0x2587')];_0x67599f++){_0x33a976(_0x67599f);}return _0x19dfa2['all'](_0x237972);})[_0x5329b7('0xaa5')](function(_0x316cdf){var _0x56142f=_0x5329b7,_0x55d3c0=[],_0x369f80=null;_0x222f29[_0x56142f('0xfa3')]&&(_0x369f80=_0x51538b()[_0x56142f('0xe9e')](_0x423309,{'name':_0x222f29[_0x56142f('0xfa3')][_0x56142f('0x12f4')]}));for(var _0x164088=0x0;_0x164088<_0x316cdf[_0x56142f('0x2587')];_0x164088++){var _0x289c83=_0x316cdf[_0x164088][_0x56142f('0x580')]||[];_0x289c83[_0x56142f('0x15b5')](function(_0x4b7f9d){var _0x58eaaf=_0x56142f;_0x55d3c0[_0x58eaaf('0x1599')](_0x4b7f9d);});}_0x369f80&&!_0x51538b()[_0x56142f('0x2c2')](_0x55d3c0,[_0x56142f('0xbcd'),_0x369f80['id']])&&_0x423309[_0x56142f('0x15b5')](function(_0x3c1804){var _0x327753=_0x56142f;_0x3c1804['id']===_0x369f80['id']&&(_0x3c1804['canSelect']=![],_0x55d3c0[_0x327753('0x1599')](_0x3c1804));}),_0x222f29[_0x56142f('0x4d7')]=_0x55d3c0;})[_0x5329b7('0x253d')](function(_0x81d8a3){var _0x230bde=_0x5329b7;_0x16ef3b[_0x230bde('0x187f')]({'title':_0x81d8a3[_0x230bde('0x2fa')]?_0x230bde('0x16c2')+_0x81d8a3[_0x230bde('0x2fa')]+_0x230bde('0x169e')+_0x81d8a3['statusText']:'SYSTEM:GETqueues','msg':_0x81d8a3['data']?JSON['stringify'](_0x81d8a3[_0x230bde('0x10fd')]):_0x81d8a3[_0x230bde('0x684')]()});}),_0x82933c[_0x5329b7('0x26e8')](_0x5329b7('0x178b'))?_0x25d4de[_0x5329b7('0x1361')][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x1ceb'),'type':_0x5329b7('0x19d1'),'VoiceExtensionId':_0x5329b7('0x1ed9'),'nolimit':'true'})['$promise'][_0x5329b7('0xaa5')](function(_0x37c5d1){var _0x9f597e=_0x5329b7;_0x222f29[_0x9f597e('0xe59')]=_0x37c5d1[_0x9f597e('0x580')]||[];})['catch'](function(_0x4ece31){var _0x3a487f=_0x5329b7;_0x16ef3b[_0x3a487f('0x187f')]({'title':_0x4ece31[_0x3a487f('0x2fa')]?_0x3a487f('0x16c2')+_0x4ece31[_0x3a487f('0x2fa')]+_0x3a487f('0x169e')+_0x4ece31[_0x3a487f('0x24df')]:_0x3a487f('0x1f25'),'msg':_0x4ece31[_0x3a487f('0x10fd')]?JSON[_0x3a487f('0xa48')](_0x4ece31[_0x3a487f('0x10fd')]):_0x4ece31[_0x3a487f('0x684')]()});}):_0x25d4de[_0x5329b7('0x1361')]['get']({'fields':_0x5329b7('0x1ceb'),'type':_0x5329b7('0x19d1'),'VoiceExtensionId':_0x5329b7('0x1ed9'),'nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x3c2df4){var _0x127c17=_0x5329b7;_0x222f29[_0x127c17('0xe59')]=_0x3c2df4['rows']||[];})['then'](function(){var _0x66c33d=_0x5329b7;return _0x25d4de[_0x66c33d('0x1a50')][_0x66c33d('0x2122')]({'userProfileId':_0x222f29['currentUser'][_0x66c33d('0x2168')],'sectionId':0x193})[_0x66c33d('0x1dc2')];})['then'](function(_0x4e628e){var _0x4b3c13=_0x5329b7,_0x4c0e91=_0x4e628e&&_0x4e628e[_0x4b3c13('0x580')]?_0x4e628e[_0x4b3c13('0x580')][0x0]:null;if(!_0x4c0e91){var _0x35b448=[],_0x97e2b6=null;_0x222f29[_0x4b3c13('0xfa3')]&&(_0x97e2b6=_0x51538b()[_0x4b3c13('0xe9e')](_0x222f29[_0x4b3c13('0xe59')],{'id':Number(_0x222f29[_0x4b3c13('0xfa3')][_0x4b3c13('0x12f4')])}));for(var _0x9066c7=0x0;_0x9066c7<_0x222f29[_0x4b3c13('0xe59')]['length'];_0x9066c7++){_0x97e2b6&&_0x222f29[_0x4b3c13('0xe59')][_0x9066c7]['id']===_0x97e2b6['id']&&(_0x222f29['outboundRoutes'][_0x9066c7]['canSelect']=![],_0x35b448[_0x4b3c13('0x1599')](_0x222f29[_0x4b3c13('0xe59')][_0x9066c7]));}_0x222f29[_0x4b3c13('0xe59')]=_0x35b448;}else{if(!_0x4c0e91[_0x4b3c13('0x26cc')])return _0x25d4de[_0x4b3c13('0x249a')][_0x4b3c13('0x2122')]({'sectionId':_0x4c0e91['id']})[_0x4b3c13('0x1dc2')]['then'](function(_0x1a5391){var _0x3fbd79=_0x4b3c13,_0x30beba=_0x51538b()[_0x3fbd79('0x1246')](_0x1a5391[_0x3fbd79('0x580')],function(_0x2382d2){var _0xc0b9b2=_0x3fbd79;return _0x51538b()[_0xc0b9b2('0xe9e')](_0x222f29['outboundRoutes'],{'id':_0x2382d2[_0xc0b9b2('0xbcd')]});}),_0x47328b=null;_0x222f29[_0x3fbd79('0xfa3')]&&(_0x47328b=_0x51538b()[_0x3fbd79('0xe9e')](_0x222f29['outboundRoutes'],{'id':Number(_0x222f29['allCondition'][_0x3fbd79('0x12f4')])}));if(_0x47328b&&!_0x51538b()[_0x3fbd79('0x2c2')](_0x30beba,['id',_0x47328b['id']])){var _0x593acb=_0x51538b()['find'](_0x222f29[_0x3fbd79('0xe59')],{'id':_0x47328b['id']});_0x593acb[_0x3fbd79('0x12eb')]=![],_0x30beba['push'](_0x593acb);}_0x222f29[_0x3fbd79('0xe59')]=_0x30beba;});}})[_0x5329b7('0x253d')](function(_0x2d2ca6){var _0x2f7585=_0x5329b7;_0x16ef3b[_0x2f7585('0x187f')]({'title':_0x2d2ca6[_0x2f7585('0x2fa')]?'API:'+_0x2d2ca6[_0x2f7585('0x2fa')]+_0x2f7585('0x169e')+_0x2d2ca6[_0x2f7585('0x24df')]:_0x2f7585('0x234c'),'msg':_0x2d2ca6[_0x2f7585('0x10fd')]?JSON['stringify'](_0x2d2ca6[_0x2f7585('0x10fd')]):_0x2d2ca6['toString']()});}),_0x82933c[_0x5329b7('0x26e8')](_0x5329b7('0x178b'))?_0x25d4de[_0x5329b7('0x272b')][_0x5329b7('0x2122')]({'fields':'id,name,fullname','sort':_0x5329b7('0x25d6'),'role':_0x5329b7('0xeff'),'nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x3409fd){var _0x2f1e0e=_0x5329b7;_0x222f29[_0x2f1e0e('0x1717')]=_0x3409fd['rows']||[];})[_0x5329b7('0x253d')](function(_0x56f47b){var _0x30f579=_0x5329b7;_0x16ef3b[_0x30f579('0x187f')]({'title':_0x56f47b[_0x30f579('0x2fa')]?_0x30f579('0x16c2')+_0x56f47b[_0x30f579('0x2fa')]+_0x30f579('0x169e')+_0x56f47b[_0x30f579('0x24df')]:_0x30f579('0x14c6'),'msg':_0x56f47b[_0x30f579('0x10fd')]?JSON['stringify'](_0x56f47b['data']):_0x56f47b[_0x30f579('0x684')]()});}):_0x25d4de['user'][_0x5329b7('0x2122')]({'fields':_0x5329b7('0x25ff'),'sort':_0x5329b7('0x25d6'),'role':_0x5329b7('0xeff'),'nolimit':_0x5329b7('0x1c5c')})[_0x5329b7('0x1dc2')][_0x5329b7('0xaa5')](function(_0x5bf206){var _0x2fda08=_0x5329b7;_0x222f29[_0x2fda08('0x1717')]=_0x5bf206[_0x2fda08('0x580')]||[];})['then'](function(){var _0x1bdbcb=_0x5329b7;return _0x25d4de[_0x1bdbcb('0x1a50')][_0x1bdbcb('0x2122')]({'userProfileId':_0x222f29['currentUser'][_0x1bdbcb('0x2168')],'sectionId':0xca})[_0x1bdbcb('0x1dc2')];})[_0x5329b7('0xaa5')](function(_0x1de85b){var _0x3a5ee1=_0x5329b7,_0x37067d=_0x1de85b&&_0x1de85b['rows']?_0x1de85b[_0x3a5ee1('0x580')][0x0]:null;if(!_0x37067d){var _0x5b63c6=[],_0x53cbd8=null;_0x222f29['allCondition']&&(_0x53cbd8=_0x51538b()[_0x3a5ee1('0xe9e')](_0x222f29['agents'],{'name':_0x222f29[_0x3a5ee1('0xfa3')]['value']}));for(var _0x43fe7f=0x0;_0x43fe7f<_0x222f29[_0x3a5ee1('0x1717')][_0x3a5ee1('0x2587')];_0x43fe7f++){_0x53cbd8&&_0x222f29[_0x3a5ee1('0x1717')][_0x43fe7f]['id']===_0x53cbd8['id']&&(_0x222f29[_0x3a5ee1('0x1717')][_0x43fe7f][_0x3a5ee1('0x12eb')]=![],_0x5b63c6[_0x3a5ee1('0x1599')](_0x222f29[_0x3a5ee1('0x1717')][_0x43fe7f]));}_0x222f29['agents']=_0x5b63c6;}else{if(!_0x37067d[_0x3a5ee1('0x26cc')])return _0x25d4de['userProfileResource'][_0x3a5ee1('0x2122')]({'sectionId':_0x37067d['id']})[_0x3a5ee1('0x1dc2')][_0x3a5ee1('0xaa5')](function(_0x38b89f){var _0x3ebb40=_0x3a5ee1,_0x594e4a=_0x51538b()['map'](_0x38b89f[_0x3ebb40('0x580')],function(_0x46ad42){var _0x2d4fb6=_0x3ebb40;return _0x51538b()['find'](_0x222f29[_0x2d4fb6('0x1717')],{'id':_0x46ad42['resourceId']});}),_0x4f6a5f=null;_0x222f29[_0x3ebb40('0xfa3')]&&(_0x4f6a5f=_0x51538b()[_0x3ebb40('0xe9e')](_0x222f29[_0x3ebb40('0x1717')],{'name':_0x222f29[_0x3ebb40('0xfa3')][_0x3ebb40('0x12f4')]}));if(_0x4f6a5f&&!_0x51538b()[_0x3ebb40('0x2c2')](_0x594e4a,['id',_0x4f6a5f['id']])){var _0x2f9bf9=_0x51538b()['find'](_0x222f29[_0x3ebb40('0x1717')],{'id':_0x4f6a5f['id']});_0x2f9bf9[_0x3ebb40('0x12eb')]=![],_0x594e4a[_0x3ebb40('0x1599')](_0x2f9bf9);}_0x222f29[_0x3ebb40('0x1717')]=_0x594e4a;});}})[_0x5329b7('0x253d')](function(_0x38af6c){var _0x515f36=_0x5329b7;_0x16ef3b[_0x515f36('0x187f')]({'title':_0x38af6c[_0x515f36('0x2fa')]?_0x515f36('0x16c2')+_0x38af6c[_0x515f36('0x2fa')]+_0x515f36('0x169e')+_0x38af6c[_0x515f36('0x24df')]:_0x515f36('0x1a3b'),'msg':_0x38af6c[_0x515f36('0x10fd')]?JSON[_0x515f36('0xa48')](_0x38af6c[_0x515f36('0x10fd')]):_0x38af6c['toString']()});});function _0x416323(){var _0x202956=_0x5329b7;_0x222f29[_0x202956('0x4c6')]=[],_0x25d4de[_0x202956('0x2624')][_0x202956('0x78')]({'id':_0x1a8ab0[_0x202956('0x25cf')]['id']},_0x222f29[_0x202956('0xfa3')])[_0x202956('0x1dc2')][_0x202956('0xaa5')](function(_0x5a6228){var _0x3fd9c2=_0x202956;_0x222f29[_0x3fd9c2('0x1a2c')]['unshift'](_0x5a6228[_0x3fd9c2('0x256a')]()),_0x16ef3b['success']({'title':'AllCondition\x20properly\x20created','msg':_0x222f29[_0x3fd9c2('0xfa3')][_0x3fd9c2('0x25d6')]?_0x222f29['allCondition'][_0x3fd9c2('0x25d6')]+_0x3fd9c2('0xdca'):''}),_0x2f9938(_0x5a6228);})[_0x202956('0x253d')](function(_0x5837ac){var _0x2f645c=_0x202956;if(_0x5837ac[_0x2f645c('0x10fd')]&&_0x5837ac[_0x2f645c('0x10fd')][_0x2f645c('0x4c6')]&&_0x5837ac[_0x2f645c('0x10fd')][_0x2f645c('0x4c6')][_0x2f645c('0x2587')]){_0x222f29['errors']=_0x5837ac['data'][_0x2f645c('0x4c6')]||[{'message':_0x5837ac['toString'](),'type':_0x2f645c('0x169')}];for(var _0x521f5f=0x0;_0x521f5f<_0x5837ac[_0x2f645c('0x10fd')][_0x2f645c('0x4c6')][_0x2f645c('0x2587')];_0x521f5f+=0x1){_0x16ef3b['error']({'title':_0x5837ac[_0x2f645c('0x10fd')][_0x2f645c('0x4c6')][_0x521f5f][_0x2f645c('0x6c8')],'msg':_0x5837ac['data'][_0x2f645c('0x4c6')][_0x521f5f]['message']});}}else _0x16ef3b[_0x2f645c('0x187f')]({'title':_0x5837ac['status']?_0x2f645c('0x16c2')+_0x5837ac['status']+_0x2f645c('0x169e')+_0x5837ac[_0x2f645c('0x24df')]:'api.condition.save','msg':_0x5837ac[_0x2f645c('0x10fd')]?JSON['stringify'](_0x5837ac['data']['message']):_0x5837ac[_0x2f645c('0x684')]()});});}function _0xc2f8aa(){var _0x1ae3e7=_0x5329b7;_0x222f29[_0x1ae3e7('0x4c6')]=[],_0x25d4de[_0x1ae3e7('0xe77')][_0x1ae3e7('0x264e')]({'id':_0x222f29['allCondition']['id']},_0x222f29[_0x1ae3e7('0xfa3')])[_0x1ae3e7('0x1dc2')][_0x1ae3e7('0xaa5')](function(_0x382579){var _0x486a67=_0x1ae3e7,_0x1c98c3=_0x51538b()[_0x486a67('0xe9e')](_0x222f29[_0x486a67('0x1a2c')],{'id':_0x382579['id']});_0x1c98c3&&_0x51538b()[_0x486a67('0x283c')](_0x1c98c3,_0x51538b()['pick'](_0x382579[_0x486a67('0x256a')](),_0x51538b()[_0x486a67('0x9f2')](_0x1c98c3))),_0x16ef3b[_0x486a67('0xe10')]({'title':'AllCondition\x20properly\x20saved!','msg':_0x222f29['allCondition'][_0x486a67('0x25d6')]?_0x222f29[_0x486a67('0xfa3')][_0x486a67('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x2f9938(_0x382579);})[_0x1ae3e7('0x253d')](function(_0x3ba4a1){var _0x29dcc5=_0x1ae3e7;if(_0x3ba4a1[_0x29dcc5('0x10fd')]&&_0x3ba4a1[_0x29dcc5('0x10fd')][_0x29dcc5('0x4c6')]&&_0x3ba4a1['data']['errors'][_0x29dcc5('0x2587')]){_0x222f29[_0x29dcc5('0x4c6')]=_0x3ba4a1[_0x29dcc5('0x10fd')][_0x29dcc5('0x4c6')]||[{'message':_0x3ba4a1['toString'](),'type':'api.condition.update'}];for(var _0x5cf8ae=0x0;_0x5cf8ae<_0x3ba4a1[_0x29dcc5('0x10fd')][_0x29dcc5('0x4c6')][_0x29dcc5('0x2587')];_0x5cf8ae++){_0x16ef3b[_0x29dcc5('0x187f')]({'title':_0x3ba4a1[_0x29dcc5('0x10fd')][_0x29dcc5('0x4c6')][_0x5cf8ae][_0x29dcc5('0x6c8')],'msg':_0x3ba4a1['data'][_0x29dcc5('0x4c6')][_0x5cf8ae][_0x29dcc5('0x1402')]});}}else _0x16ef3b[_0x29dcc5('0x187f')]({'title':_0x3ba4a1[_0x29dcc5('0x2fa')]?_0x29dcc5('0x16c2')+_0x3ba4a1['status']+'\x20-\x20'+_0x3ba4a1[_0x29dcc5('0x24df')]:_0x29dcc5('0x81d'),'msg':_0x3ba4a1[_0x29dcc5('0x10fd')]?JSON[_0x29dcc5('0xa48')](_0x3ba4a1[_0x29dcc5('0x10fd')][_0x29dcc5('0x1402')]):_0x3ba4a1[_0x29dcc5('0x684')]()});});}function _0x2aa975(_0x3c8a9e){var _0x5e71de=_0x5329b7;_0x222f29[_0x5e71de('0x4c6')]=[];var _0x19a83b=_0x1b8414[_0x5e71de('0x281e')]()['title'](_0x5e71de('0x12a3'))[_0x5e71de('0x15af')](_0x5e71de('0x12ff'))['ariaLabel'](_0x5e71de('0x275f'))['ok']('Delete')['cancel']('Cancel')['targetEvent'](_0x3c8a9e);_0x1b8414['show'](_0x19a83b)[_0x5e71de('0xaa5')](function(){var _0x172fe8=_0x5e71de;_0x25d4de[_0x172fe8('0xe77')][_0x172fe8('0x926')]({'id':_0x222f29['allCondition']['id']})[_0x172fe8('0x1dc2')][_0x172fe8('0xaa5')](function(){var _0x44ff61=_0x172fe8;_0x51538b()[_0x44ff61('0xf6d')](_0x222f29[_0x44ff61('0x1a2c')],{'id':_0x222f29[_0x44ff61('0xfa3')]['id']}),_0x16ef3b[_0x44ff61('0xe10')]({'title':_0x44ff61('0xe0d'),'msg':(_0x222f29[_0x44ff61('0xfa3')][_0x44ff61('0x25d6')]||_0x44ff61('0xfa3'))+_0x44ff61('0xcd9')}),_0x2f9938(_0x222f29[_0x44ff61('0xfa3')]);})['catch'](function(_0x58dd84){var _0x361875=_0x172fe8;if(_0x58dd84['data']&&_0x58dd84['data'][_0x361875('0x4c6')]&&_0x58dd84['data'][_0x361875('0x4c6')][_0x361875('0x2587')]){_0x222f29[_0x361875('0x4c6')]=_0x58dd84[_0x361875('0x10fd')]['errors']||[{'message':_0x58dd84['toString'](),'type':_0x361875('0x16f1')}];for(var _0x540e2c=0x0;_0x540e2c<_0x58dd84[_0x361875('0x10fd')][_0x361875('0x4c6')][_0x361875('0x2587')];_0x540e2c++){_0x16ef3b[_0x361875('0x187f')]({'title':_0x58dd84[_0x361875('0x10fd')]['errors'][_0x540e2c][_0x361875('0x6c8')],'msg':_0x58dd84[_0x361875('0x10fd')][_0x361875('0x4c6')][_0x540e2c][_0x361875('0x1402')]});}}else _0x16ef3b['error']({'title':_0x58dd84[_0x361875('0x2fa')]?_0x361875('0x16c2')+_0x58dd84['status']+'\x20-\x20'+_0x58dd84[_0x361875('0x24df')]:_0x361875('0x16f1'),'msg':_0x58dd84[_0x361875('0x10fd')]?JSON[_0x361875('0xa48')](_0x58dd84[_0x361875('0x10fd')][_0x361875('0x1402')]):_0x58dd84[_0x361875('0x1402')]||_0x58dd84[_0x361875('0x684')]()});});},function(){});}function _0x26d86e(_0x4c8124){return _0x4c8124===null?undefined:new Date(_0x4c8124);}function _0x2f9938(_0x572c52){_0x1b8414['hide'](_0x572c52);}}const _0x23f59e=_0x4c4396,_0x358783=_0x4fb511['p']+_0x1a8446('0x12d1');_0x2a7bd1[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x2a7bd1(_0x544476,_0x15ea3f,_0x51956a,_0x28b12e,_0x55e850,_0x551a9a,_0x2981d9,_0xb9ea93,_0x4257aa){var _0x1ce9d9=_0x1a8446,_0x2b1e56=this;_0x2b1e56[_0x1ce9d9('0x7fc')]=_0x4257aa[_0x1ce9d9('0xacc')](),_0x2b1e56[_0x1ce9d9('0x2624')]={},_0x2b1e56[_0x1ce9d9('0x186f')]={'count':0x0,'rows':[]},_0x2b1e56[_0x1ce9d9('0x1fc0')]=[],_0x2b1e56['query']={'fields':_0x1ce9d9('0x1e18'),'limit':0xa,'page':0x1},_0x2b1e56[_0x1ce9d9('0x13a')]={'queue':_0x1ce9d9('0x145c'),'lastevent':_0x1ce9d9('0x42f'),'routeId':_0x1ce9d9('0x2863'),'agent':_0x1ce9d9('0x521'),'account':'Account','interaction':'Interaction','message':_0x1ce9d9('0x4d8')},_0x2b1e56['callStatuses']={'abandoned':_0x1ce9d9('0x18ef'),'timeout':'Timeout','complete':_0x1ce9d9('0x85e'),'rejected':_0x1ce9d9('0x22a6'),'called':'Ring','connect':_0x1ce9d9('0x1523'),'nosuchnumber':_0x1ce9d9('0xfe'),'busy':_0x1ce9d9('0x16df'),'noanswer':_0x1ce9d9('0x3f0'),'congestion':_0x1ce9d9('0x2482'),'agentreject':_0x1ce9d9('0x11ae')},_0x2b1e56[_0x1ce9d9('0x1422')]={'in':_0x1ce9d9('0x17c1'),'out':'Outgoing','accept':'Accepted','reject':_0x1ce9d9('0x11a5')},_0x2b1e56[_0x1ce9d9('0x2318')]=_0x4385e6,_0x2b1e56[_0x1ce9d9('0xe10')]=_0xe9327f,_0x2b1e56[_0x1ce9d9('0x24f')]=_0x18f0dd,_0x2b1e56[_0x1ce9d9('0x1880')]=_0x509a90,_0x2b1e56[_0x1ce9d9('0x919')]=_0x15f17b,_0x2b1e56['deleteConfirm']=_0xbbd856,_0x2b1e56[_0x1ce9d9('0x3bd')]=_0x1e1b23,_0x2b1e56[_0x1ce9d9('0xb96')]=_0x28f2d4;function _0x4385e6(_0x51f659,_0x53fbba){var _0x170089=_0x1ce9d9;_0x2b1e56[_0x170089('0x2624')]=_0x51f659,_0x2b1e56[_0x170089('0xada')]=typeof _0x53fbba!=='undefined'?_0x53fbba:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2b1e56[_0x170089('0x582')][_0x170089('0x19fd')]=_0x2b1e56['trigger']['id'],_0x2b1e56[_0x170089('0x582')]['id']=_0x2b1e56[_0x170089('0x2624')]['id'],_0x18f0dd();}function _0x437144(){var _0x2d9a58=_0x1ce9d9,_0x4629ea=_0x2b1e56[_0x2d9a58('0x2624')][_0x2d9a58('0x119e')]+_0x2b1e56['trigger'][_0x2d9a58('0x119e')]===_0x2d9a58('0x20f9')?'Websites':'Accounts',_0x8d415c=_0x2b1e56[_0x2d9a58('0x2624')][_0x2d9a58('0x119e')]+(_0x2b1e56[_0x2d9a58('0x2624')]['channel']==='chat'?_0x2d9a58('0xf2b'):_0x2d9a58('0x75a')),_0x2f4fa3;switch(_0x2b1e56[_0x2d9a58('0x2624')][_0x2d9a58('0x119e')]){case _0x2d9a58('0x20f9'):_0x2f4fa3=0x1f6;break;case'fax':_0x2f4fa3=0x386;break;case'mail':_0x2f4fa3=0x25a;break;case'openchannel':_0x2f4fa3=0x322;break;case _0x2d9a58('0x18da'):_0x2f4fa3=0x2be;break;case'whatsapp':_0x2f4fa3=0x836;break;}if(_0x4257aa[_0x2d9a58('0xcf2')]()){var _0x23bae0=_0x2b1e56[_0x2d9a58('0x2624')][_0x2d9a58('0x119e')];_0xb9ea93[_0x8d415c][_0x2d9a58('0x2122')]({'fields':_0x2d9a58('0x17fe'),'sort':'id','nolimit':_0x2d9a58('0x1c5c')})['$promise'][_0x2d9a58('0xaa5')](function(_0x4bc28e){var _0x598ea8=_0x2d9a58;_0x2b1e56[_0x4629ea]=_0x4bc28e[_0x598ea8('0x580')]||[];})['catch'](function(_0x1e1cc0){var _0x1f1339=_0x2d9a58;_0x2981d9['error']({'title':_0x1e1cc0[_0x1f1339('0x2fa')]?'API:'+_0x1e1cc0[_0x1f1339('0x2fa')]+'\x20-\x20'+_0x1e1cc0['statusText']:_0x1f1339('0xa2c')+_0x23bae0[_0x1f1339('0x1d08')]()+_0x23bae0==='chat'?_0x1f1339('0x170e'):_0x1f1339('0x1b85'),'msg':_0x1e1cc0['data']?JSON[_0x1f1339('0xa48')](_0x1e1cc0['data']):_0x1e1cc0[_0x1f1339('0x684')]()});});}else{var _0x52ba7f=_0x2b1e56['trigger']['channel'];_0xb9ea93[_0x8d415c]['get']({'fields':_0x2d9a58('0x17fe'),'sort':'id','nolimit':'true'})[_0x2d9a58('0x1dc2')][_0x2d9a58('0xaa5')](function(_0x86b925){_0x2b1e56[_0x4629ea]=_0x86b925['rows']||[];})[_0x2d9a58('0xaa5')](function(){var _0x1309e8=_0x2d9a58;return _0xb9ea93[_0x1309e8('0x1a50')][_0x1309e8('0x2122')]({'userProfileId':_0x2b1e56[_0x1309e8('0x7fc')][_0x1309e8('0x2168')],'sectionId':_0x2f4fa3})[_0x1309e8('0x1dc2')];})[_0x2d9a58('0xaa5')](function(_0x4d5213){var _0x591556=_0x2d9a58,_0x2517ec=_0x4d5213&&_0x4d5213[_0x591556('0x580')]?_0x4d5213[_0x591556('0x580')][0x0]:null;if(!_0x2517ec){var _0x2b8e94=[],_0x5d1546=[];_0x2b1e56[_0x591556('0x186f')][_0x591556('0x580')][_0x591556('0x15b5')](function(_0x561ba5){var _0xdfebd1=_0x591556;if(_0x561ba5[_0xdfebd1('0x5f2')]===_0xdfebd1('0x5b')){var _0x18fc60=_0x51538b()[_0xdfebd1('0xe9e')](_0x2b1e56[_0x4629ea],{'id':Number(_0x561ba5[_0xdfebd1('0x12f4')])});_0x5d1546[_0xdfebd1('0x1599')](_0x18fc60);}});for(var _0x14397e=0x0;_0x14397e<_0x2b1e56[_0x4629ea][_0x591556('0x2587')];_0x14397e++){var _0x3d8627=_0x51538b()[_0x591556('0x2c2')](_0x5d1546,{'id':_0x2b1e56[_0x4629ea][_0x14397e]['id']});_0x3d8627&&(_0x2b1e56[_0x4629ea][_0x14397e][_0x591556('0x12eb')]=![],_0x2b8e94['push'](_0x2b1e56[_0x4629ea][_0x14397e]));}_0x2b1e56[_0x4629ea]=_0x2b8e94;}else{if(!_0x2517ec[_0x591556('0x26cc')])return _0xb9ea93[_0x591556('0x249a')][_0x591556('0x2122')]({'sectionId':_0x2517ec['id']})[_0x591556('0x1dc2')][_0x591556('0xaa5')](function(_0x350481){var _0x213aca=_0x591556,_0x8264cf=_0x51538b()[_0x213aca('0x1246')](_0x350481[_0x213aca('0x580')],function(_0x1bab4d){return _0x51538b()['find'](_0x2b1e56[_0x4629ea],{'id':_0x1bab4d['resourceId']});}),_0x29dc65=null;_0x29dc65=[],_0x2b1e56[_0x213aca('0x186f')][_0x213aca('0x580')]['forEach'](function(_0x49fc4c){var _0x37eae2=_0x213aca;if(_0x49fc4c['field']===_0x37eae2('0x5b')){var _0x4ac8ef=_0x51538b()[_0x37eae2('0xe9e')](_0x2b1e56[_0x4629ea],{'id':Number(_0x49fc4c['value'])});_0x29dc65[_0x37eae2('0x1599')](_0x4ac8ef);}}),!_0x51538b()[_0x213aca('0x116b')](_0x29dc65)&&_0x29dc65[_0x213aca('0x15b5')](function(_0x2c7001){var _0x1f3117=_0x213aca;if(!_0x51538b()['some'](_0x8264cf,['id',_0x2c7001['id']])){var _0x4012d3=_0x51538b()['find'](_0x2b1e56[_0x4629ea],{'id':_0x2c7001['id']});_0x4012d3[_0x1f3117('0x12eb')]=![],_0x8264cf[_0x1f3117('0x1599')](_0x4012d3);}}),_0x2b1e56[_0x4629ea]=_0x8264cf;});}})[_0x2d9a58('0x253d')](function(_0x4c0542){var _0x19fd73=_0x2d9a58;_0x2981d9['error']({'title':_0x4c0542[_0x19fd73('0x2fa')]?_0x19fd73('0x16c2')+_0x4c0542[_0x19fd73('0x2fa')]+_0x19fd73('0x169e')+_0x4c0542[_0x19fd73('0x24df')]:_0x19fd73('0xa2c')+_0x52ba7f[_0x19fd73('0x1d08')]()+_0x52ba7f===_0x19fd73('0x20f9')?_0x19fd73('0x170e'):_0x19fd73('0x1b85'),'msg':_0x4c0542[_0x19fd73('0x10fd')]?JSON['stringify'](_0x4c0542['data']):_0x4c0542['toString']()});});}}function _0x46b2b0(){var _0x4e52e5=_0x1ce9d9,_0x1b4fc3=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':'outbound'}],_0x45703b=null;_0x4257aa[_0x4e52e5('0xcf2')]()?_0xb9ea93[_0x4e52e5('0x1588')]['get']({'fields':_0x4e52e5('0x21e2'),'sort':'name','nolimit':_0x4e52e5('0x1c5c')})[_0x4e52e5('0x1dc2')][_0x4e52e5('0xaa5')](function(_0x162191){var _0x5340bd=_0x4e52e5;_0x2b1e56[_0x5340bd('0x4d7')]=_0x162191[_0x5340bd('0x580')]||[];})[_0x4e52e5('0x253d')](function(_0x19bf89){var _0x267820=_0x4e52e5;_0x2981d9[_0x267820('0x187f')]({'title':_0x19bf89[_0x267820('0x2fa')]?_0x267820('0x16c2')+_0x19bf89[_0x267820('0x2fa')]+'\x20-\x20'+_0x19bf89[_0x267820('0x24df')]:_0x267820('0x1e3d'),'msg':_0x19bf89['data']?JSON['stringify'](_0x19bf89['data']):_0x19bf89[_0x267820('0x684')]()});}):_0xb9ea93[_0x4e52e5('0x1588')]['get']({'fields':_0x4e52e5('0x21e2'),'sort':_0x4e52e5('0x25d6'),'nolimit':_0x4e52e5('0x1c5c')})['$promise']['then'](function(_0x5334dd){var _0x4f9c5d=_0x4e52e5;_0x45703b=_0x5334dd[_0x4f9c5d('0x580')]||[];})[_0x4e52e5('0xaa5')](function(){var _0x3b4666=_0x4e52e5,_0x57d383=[];for(var _0x3d6c88=0x0;_0x3d6c88<_0x1b4fc3[_0x3b4666('0x2587')];_0x3d6c88++){_0x57d383[_0x3b4666('0x1599')](_0xb9ea93[_0x3b4666('0x1a50')][_0x3b4666('0x2122')]({'userProfileId':_0x2b1e56[_0x3b4666('0x7fc')][_0x3b4666('0x2168')],'sectionId':_0x1b4fc3[_0x3d6c88]['id']})[_0x3b4666('0x1dc2')]);}return _0x15ea3f[_0x3b4666('0xa15')](_0x57d383);})[_0x4e52e5('0xaa5')](function(_0x56d4d2){var _0x1972c6=_0x4e52e5,_0x130de1=_0x51538b()[_0x1972c6('0x1246')](_0x56d4d2,function(_0x27212b){var _0x2117a5=_0x1972c6;return _0x27212b&&_0x27212b[_0x2117a5('0x580')]?_0x27212b[_0x2117a5('0x580')][0x0]:null;}),_0x23bd1b=[],_0x455bd5=function _0x3d60fc(_0x1d0c24){var _0x39b693=_0x1972c6,_0x2f193d=_0x51538b()[_0x39b693('0xe9e')](_0x130de1,[_0x39b693('0x10b8'),_0x1b4fc3[_0x1d0c24]['id']]);if(_0x2f193d){if(!_0x2f193d[_0x39b693('0x26cc')])_0x23bd1b['push'](_0xb9ea93[_0x39b693('0x249a')]['get']({'sectionId':_0x2f193d['id']})[_0x39b693('0x1dc2')]);else{var _0xd8d177=[];_0x45703b[_0x39b693('0x15b5')](function(_0x1068f3){var _0x10c245=_0x39b693;_0x1068f3[_0x10c245('0x6c8')]===_0x1b4fc3[_0x1d0c24][_0x10c245('0x6c8')]&&_0xd8d177[_0x10c245('0x1599')](_0x1068f3);}),_0x23bd1b['push']({'rows':_0xd8d177,'count':_0xd8d177[_0x39b693('0x2587')]});}}};for(var _0x565e03=0x0;_0x565e03<_0x1b4fc3[_0x1972c6('0x2587')];_0x565e03++){_0x455bd5(_0x565e03);}return _0x15ea3f[_0x1972c6('0xa15')](_0x23bd1b);})[_0x4e52e5('0xaa5')](function(_0x57ea2d){var _0x4d8f80=_0x4e52e5,_0x5940a0=[],_0x3a8da5=[];_0x2b1e56[_0x4d8f80('0x186f')][_0x4d8f80('0x580')][_0x4d8f80('0x15b5')](function(_0x186567){var _0x712ad0=_0x4d8f80;if(_0x186567['field']===_0x712ad0('0xe26')){var _0x396216=_0x51538b()[_0x712ad0('0xe9e')](_0x45703b,{'name':_0x186567[_0x712ad0('0x12f4')]});_0x3a8da5['push'](_0x396216);}});for(var _0x41b389=0x0;_0x41b389<_0x57ea2d[_0x4d8f80('0x2587')];_0x41b389++){var _0x22fbf7=_0x57ea2d[_0x41b389][_0x4d8f80('0x580')]||[];_0x22fbf7[_0x4d8f80('0x15b5')](function(_0x24fc27){var _0x1e020a=_0x4d8f80;_0x5940a0[_0x1e020a('0x1599')](_0x24fc27);});}!_0x51538b()[_0x4d8f80('0x116b')](_0x3a8da5)&&_0x3a8da5[_0x4d8f80('0x15b5')](function(_0x138386){var _0x367e84=_0x4d8f80;if(!_0x51538b()['some'](_0x5940a0,[_0x367e84('0xbcd'),_0x138386['id']])){var _0x332af5=_0x51538b()[_0x367e84('0xe9e')](_0x45703b,{'id':_0x138386['id']});_0x332af5['canSelect']=![],_0x5940a0[_0x367e84('0x1599')](_0x332af5);}}),_0x2b1e56[_0x4d8f80('0x4d7')]=_0x5940a0;})[_0x4e52e5('0x253d')](function(_0x2475c6){var _0x3b00c1=_0x4e52e5;_0x2981d9['error']({'title':_0x2475c6[_0x3b00c1('0x2fa')]?'API:'+_0x2475c6[_0x3b00c1('0x2fa')]+_0x3b00c1('0x169e')+_0x2475c6[_0x3b00c1('0x24df')]:_0x3b00c1('0x773'),'msg':_0x2475c6['data']?JSON[_0x3b00c1('0xa48')](_0x2475c6['data']):_0x2475c6[_0x3b00c1('0x684')]()});});}function _0x3c1e54(){var _0x578ffb=_0x1ce9d9;_0x4257aa['isAdmin']()?_0xb9ea93[_0x578ffb('0x1361')][_0x578ffb('0x2122')]({'fields':'id,exten','type':_0x578ffb('0x19d1'),'VoiceExtensionId':_0x578ffb('0x1ed9'),'nolimit':'true'})[_0x578ffb('0x1dc2')][_0x578ffb('0xaa5')](function(_0x162c64){var _0x4ae4ba=_0x578ffb;_0x2b1e56[_0x4ae4ba('0xe59')]=_0x162c64[_0x4ae4ba('0x580')]||[];})[_0x578ffb('0x253d')](function(_0x21c461){var _0x3bdeb7=_0x578ffb;_0x2981d9[_0x3bdeb7('0x187f')]({'title':_0x21c461['status']?_0x3bdeb7('0x16c2')+_0x21c461[_0x3bdeb7('0x2fa')]+_0x3bdeb7('0x169e')+_0x21c461[_0x3bdeb7('0x24df')]:_0x3bdeb7('0x1f25'),'msg':_0x21c461[_0x3bdeb7('0x10fd')]?JSON[_0x3bdeb7('0xa48')](_0x21c461['data']):_0x21c461['toString']()});}):_0xb9ea93[_0x578ffb('0x1361')][_0x578ffb('0x2122')]({'fields':_0x578ffb('0x1ceb'),'type':'outbound','VoiceExtensionId':_0x578ffb('0x1ed9'),'nolimit':_0x578ffb('0x1c5c')})[_0x578ffb('0x1dc2')]['then'](function(_0x44521c){var _0x4f044d=_0x578ffb;_0x2b1e56['outboundRoutes']=_0x44521c[_0x4f044d('0x580')]||[];})[_0x578ffb('0xaa5')](function(){var _0x2f1876=_0x578ffb;return _0xb9ea93[_0x2f1876('0x1a50')][_0x2f1876('0x2122')]({'userProfileId':_0x2b1e56[_0x2f1876('0x7fc')][_0x2f1876('0x2168')],'sectionId':0x193})['$promise'];})[_0x578ffb('0xaa5')](function(_0x1a473e){var _0x2b78f9=_0x578ffb,_0x55577a=_0x1a473e&&_0x1a473e[_0x2b78f9('0x580')]?_0x1a473e[_0x2b78f9('0x580')][0x0]:null;if(!_0x55577a){var _0x1c3254=[],_0x53a179=[];_0x2b1e56[_0x2b78f9('0x186f')]['rows'][_0x2b78f9('0x15b5')](function(_0x16763d){var _0x5cdb1f=_0x2b78f9;if(_0x16763d[_0x5cdb1f('0x5f2')]===_0x5cdb1f('0x1f7c')){var _0x20f893=_0x51538b()[_0x5cdb1f('0xe9e')](_0x2b1e56['outboundRoutes'],{'id':Number(_0x16763d[_0x5cdb1f('0x12f4')])});_0x53a179[_0x5cdb1f('0x1599')](_0x20f893);}});for(var _0x19f89b=0x0;_0x19f89b<_0x2b1e56[_0x2b78f9('0xe59')][_0x2b78f9('0x2587')];_0x19f89b++){var _0x50b2c3=_0x51538b()['some'](_0x53a179,{'id':_0x2b1e56[_0x2b78f9('0xe59')][_0x19f89b]['id']});_0x50b2c3&&(_0x2b1e56['outboundRoutes'][_0x19f89b][_0x2b78f9('0x12eb')]=![],_0x1c3254[_0x2b78f9('0x1599')](_0x2b1e56[_0x2b78f9('0xe59')][_0x19f89b]));}_0x2b1e56[_0x2b78f9('0xe59')]=_0x1c3254;}else{if(!_0x55577a[_0x2b78f9('0x26cc')])return _0xb9ea93[_0x2b78f9('0x249a')][_0x2b78f9('0x2122')]({'sectionId':_0x55577a['id']})[_0x2b78f9('0x1dc2')][_0x2b78f9('0xaa5')](function(_0x3597f0){var _0x32d028=_0x2b78f9,_0x2a92a2=_0x51538b()[_0x32d028('0x1246')](_0x3597f0[_0x32d028('0x580')],function(_0x31b407){var _0x43a272=_0x32d028;return _0x51538b()['find'](_0x2b1e56[_0x43a272('0xe59')],{'id':_0x31b407[_0x43a272('0xbcd')]});}),_0x55c228=null;_0x55c228=[],_0x2b1e56[_0x32d028('0x186f')][_0x32d028('0x580')]['forEach'](function(_0x424cf8){var _0x451c63=_0x32d028;if(_0x424cf8[_0x451c63('0x5f2')]===_0x451c63('0x1f7c')){var _0x47a03c=_0x51538b()['find'](_0x2b1e56['outboundRoutes'],{'id':Number(_0x424cf8[_0x451c63('0x12f4')])});_0x55c228[_0x451c63('0x1599')](_0x47a03c);}}),!_0x51538b()[_0x32d028('0x116b')](_0x55c228)&&_0x55c228[_0x32d028('0x15b5')](function(_0x4ef108){var _0x26893d=_0x32d028;if(!_0x51538b()[_0x26893d('0x2c2')](_0x2a92a2,['id',_0x4ef108['id']])){var _0x553f60=_0x51538b()[_0x26893d('0xe9e')](_0x2b1e56['outboundRoutes'],{'id':_0x4ef108['id']});_0x553f60['canSelect']=![],_0x2a92a2[_0x26893d('0x1599')](_0x553f60);}}),_0x2b1e56[_0x32d028('0xe59')]=_0x2a92a2;});}})[_0x578ffb('0x253d')](function(_0x39c4c1){var _0x160953=_0x578ffb;_0x2981d9['error']({'title':_0x39c4c1['status']?_0x160953('0x16c2')+_0x39c4c1[_0x160953('0x2fa')]+'\x20-\x20'+_0x39c4c1['statusText']:_0x160953('0x1f25'),'msg':_0x39c4c1[_0x160953('0x10fd')]?JSON[_0x160953('0xa48')](_0x39c4c1[_0x160953('0x10fd')]):_0x39c4c1[_0x160953('0x684')]()});});}function _0x5e8442(){var _0x2cbb61=_0x1ce9d9;_0x4257aa[_0x2cbb61('0xcf2')]()?_0xb9ea93[_0x2cbb61('0x272b')]['get']({'fields':'id,name,fullname','sort':'name','role':_0x2cbb61('0xeff'),'nolimit':_0x2cbb61('0x1c5c')})['$promise'][_0x2cbb61('0xaa5')](function(_0x42a995){var _0x25c644=_0x2cbb61;_0x2b1e56['agents']=_0x42a995[_0x25c644('0x580')]||[];})['catch'](function(_0x140888){var _0xe7afc2=_0x2cbb61;_0x2981d9['error']({'title':_0x140888[_0xe7afc2('0x2fa')]?_0xe7afc2('0x16c2')+_0x140888[_0xe7afc2('0x2fa')]+_0xe7afc2('0x169e')+_0x140888[_0xe7afc2('0x24df')]:_0xe7afc2('0x14c6'),'msg':_0x140888['data']?JSON[_0xe7afc2('0xa48')](_0x140888[_0xe7afc2('0x10fd')]):_0x140888['toString']()});}):_0xb9ea93[_0x2cbb61('0x272b')][_0x2cbb61('0x2122')]({'fields':'id,name,fullname','sort':_0x2cbb61('0x25d6'),'role':_0x2cbb61('0xeff'),'nolimit':_0x2cbb61('0x1c5c')})['$promise']['then'](function(_0x3c351b){var _0x282817=_0x2cbb61;_0x2b1e56[_0x282817('0x1717')]=_0x3c351b[_0x282817('0x580')]||[];})[_0x2cbb61('0xaa5')](function(){var _0x448bec=_0x2cbb61;return _0xb9ea93[_0x448bec('0x1a50')]['get']({'userProfileId':_0x2b1e56['currentUser'][_0x448bec('0x2168')],'sectionId':0xca})[_0x448bec('0x1dc2')];})[_0x2cbb61('0xaa5')](function(_0x12acf8){var _0x4aface=_0x2cbb61,_0x4d19df=_0x12acf8&&_0x12acf8[_0x4aface('0x580')]?_0x12acf8['rows'][0x0]:null;if(!_0x4d19df){var _0xdb4329=[],_0x6245bd=[];_0x2b1e56[_0x4aface('0x186f')]['rows'][_0x4aface('0x15b5')](function(_0x58fe87){var _0x1e6bef=_0x4aface;if(_0x58fe87[_0x1e6bef('0x5f2')]==='agent'){var _0x4ebe33=_0x51538b()[_0x1e6bef('0xe9e')](_0x2b1e56[_0x1e6bef('0x1717')],{'name':_0x58fe87[_0x1e6bef('0x12f4')]});_0x6245bd['push'](_0x4ebe33);}});for(var _0x2e230f=0x0;_0x2e230f<_0x2b1e56[_0x4aface('0x1717')][_0x4aface('0x2587')];_0x2e230f++){var _0x57b40c=_0x51538b()[_0x4aface('0x2c2')](_0x6245bd,{'id':_0x2b1e56[_0x4aface('0x1717')][_0x2e230f]['id']});_0x57b40c&&(_0x2b1e56['agents'][_0x2e230f]['canSelect']=![],_0xdb4329[_0x4aface('0x1599')](_0x2b1e56[_0x4aface('0x1717')][_0x2e230f]));}_0x2b1e56[_0x4aface('0x1717')]=_0xdb4329;}else{if(!_0x4d19df[_0x4aface('0x26cc')])return _0xb9ea93[_0x4aface('0x249a')][_0x4aface('0x2122')]({'sectionId':_0x4d19df['id']})['$promise'][_0x4aface('0xaa5')](function(_0x2c6fea){var _0x484f71=_0x4aface,_0x5d156a=_0x51538b()[_0x484f71('0x1246')](_0x2c6fea['rows'],function(_0x355559){var _0x405b35=_0x484f71;return _0x51538b()['find'](_0x2b1e56['agents'],{'id':_0x355559[_0x405b35('0xbcd')]});}),_0x3f54bc=null;_0x3f54bc=[],_0x2b1e56[_0x484f71('0x186f')]['rows'][_0x484f71('0x15b5')](function(_0x469ace){var _0x53e777=_0x484f71;if(_0x469ace[_0x53e777('0x5f2')]===_0x53e777('0xeff')){var _0x452368=_0x51538b()[_0x53e777('0xe9e')](_0x2b1e56[_0x53e777('0x1717')],{'name':_0x469ace['value']});_0x3f54bc['push'](_0x452368);}}),!_0x51538b()[_0x484f71('0x116b')](_0x3f54bc)&&_0x3f54bc[_0x484f71('0x15b5')](function(_0x37e004){var _0x310d12=_0x484f71;if(!_0x51538b()['some'](_0x5d156a,['id',_0x37e004['id']])){var _0x30c026=_0x51538b()[_0x310d12('0xe9e')](_0x2b1e56[_0x310d12('0x1717')],{'id':_0x37e004['id']});_0x30c026[_0x310d12('0x12eb')]=![],_0x5d156a[_0x310d12('0x1599')](_0x30c026);}}),_0x2b1e56['agents']=_0x5d156a;});}})[_0x2cbb61('0x253d')](function(_0x3fc559){var _0x352428=_0x2cbb61;_0x2981d9[_0x352428('0x187f')]({'title':_0x3fc559[_0x352428('0x2fa')]?_0x352428('0x16c2')+_0x3fc559[_0x352428('0x2fa')]+_0x352428('0x169e')+_0x3fc559[_0x352428('0x24df')]:_0x352428('0x14c6'),'msg':_0x3fc559[_0x352428('0x10fd')]?JSON[_0x352428('0xa48')](_0x3fc559[_0x352428('0x10fd')]):_0x3fc559[_0x352428('0x684')]()});});}function _0x44f1cc(){var _0x1c58a5=_0x1ce9d9;if(_0x2b1e56[_0x1c58a5('0x2624')][_0x1c58a5('0x119e')]===_0x1c58a5('0x1b9')){if(_0x51538b()['some'](_0x2b1e56[_0x1c58a5('0x186f')][_0x1c58a5('0x580')],[_0x1c58a5('0x5f2'),_0x1c58a5('0xe26')])){if(!_0x2b1e56[_0x1c58a5('0x4d7')])_0x46b2b0();}if(_0x51538b()[_0x1c58a5('0x2c2')](_0x2b1e56[_0x1c58a5('0x186f')][_0x1c58a5('0x580')],[_0x1c58a5('0x5f2'),_0x1c58a5('0x1f7c')])){if(!_0x2b1e56[_0x1c58a5('0xe59')])_0x3c1e54();}if(_0x51538b()[_0x1c58a5('0x2c2')](_0x2b1e56[_0x1c58a5('0x186f')][_0x1c58a5('0x580')],['field',_0x1c58a5('0xeff')])){if(!_0x2b1e56[_0x1c58a5('0x1717')])_0x5e8442();}}else _0x437144();}function _0xe9327f(_0x575412){var _0x1916ae=_0x1ce9d9;_0x2b1e56[_0x1916ae('0x186f')]=_0x575412||{'count':0x0,'rows':[]},_0x44f1cc();}function _0x18f0dd(){var _0x2d6ddb=_0x1ce9d9;_0x2b1e56[_0x2d6ddb('0x582')][_0x2d6ddb('0x8b1')]=(_0x2b1e56[_0x2d6ddb('0x582')][_0x2d6ddb('0x41')]-0x1)*_0x2b1e56['query'][_0x2d6ddb('0xf4d')],_0x2b1e56[_0x2d6ddb('0x159a')]=_0xb9ea93['trigger']['getAnyConditions'](_0x2b1e56[_0x2d6ddb('0x582')],_0xe9327f)[_0x2d6ddb('0x1dc2')];}function _0x509a90(_0xe90dfc,_0x5651e0){var _0x578339=_0x1ce9d9;_0x55e850[_0x578339('0x1e6d')]({'controller':_0x578339('0x233a'),'controllerAs':'vm','templateUrl':_0x358783,'parent':angular['element'](_0x551a9a['body']),'targetEvent':_0xe90dfc,'clickOutsideToClose':!![],'locals':{'trigger':_0x2b1e56[_0x578339('0x2624')],'anyCondition':_0x5651e0,'anyConditions':_0x2b1e56[_0x578339('0x186f')][_0x578339('0x580')],'license':null,'setting':null,'crudPermissions':_0x2b1e56[_0x578339('0xada')]}})['then'](function(_0x479c21){var _0x1a7e9b=_0x578339;_0x479c21&&(_0x2b1e56[_0x1a7e9b('0x186f')]={'count':_0x479c21[_0x1a7e9b('0x2587')],'rows':_0x479c21},_0x44f1cc());});}function _0xbbd856(_0x5eb1d2,_0xea78ed){var _0x361206=_0x1ce9d9,_0xbf54a4=_0x55e850[_0x361206('0x281e')]()[_0x361206('0x110a')](_0x51956a[_0x361206('0x213f')](_0x361206('0x23e4')))['ariaLabel']('Delete\x20condition')[_0x361206('0x116d')](_0xea78ed)['ok']('OK')['cancel'](_0x51956a[_0x361206('0x213f')](_0x361206('0x1dd8')));_0x55e850[_0x361206('0x1e6d')](_0xbf54a4)[_0x361206('0xaa5')](function(){_0x1e1b23(_0x5eb1d2,!![]);});}function _0x1e1b23(_0x12f347,_0x224f91){var _0x3d5e25=_0x1ce9d9;_0xb9ea93['condition'][_0x3d5e25('0x926')]({'id':_0x12f347['id']})['$promise'][_0x3d5e25('0xaa5')](function(){var _0x101352=_0x3d5e25;_0x18f0dd(),_0x224f91&&_0x2981d9[_0x101352('0xe10')]({'title':_0x51956a[_0x101352('0x213f')](_0x101352('0x1d3a'))});})[_0x3d5e25('0x253d')](function(_0x33ee32){var _0x479acc=_0x3d5e25;if(_0x33ee32['data']&&_0x33ee32[_0x479acc('0x10fd')][_0x479acc('0x4c6')]&&_0x33ee32[_0x479acc('0x10fd')][_0x479acc('0x4c6')][_0x479acc('0x2587')]){_0x2b1e56[_0x479acc('0x4c6')]=_0x33ee32[_0x479acc('0x10fd')][_0x479acc('0x4c6')]||[{'message':_0x33ee32[_0x479acc('0x684')](),'type':'SYSTEM:GETtrigger'}];for(var _0x26af5e=0x0;_0x26af5e<_0x33ee32[_0x479acc('0x10fd')][_0x479acc('0x4c6')][_0x479acc('0x2587')];_0x26af5e++){_0x2981d9['error']({'title':_0x33ee32['data'][_0x479acc('0x4c6')][_0x26af5e]['type'],'msg':_0x33ee32[_0x479acc('0x10fd')][_0x479acc('0x4c6')][_0x26af5e][_0x479acc('0x1402')]});}}else _0x2981d9[_0x479acc('0x187f')]({'title':_0x33ee32[_0x479acc('0x2fa')]?_0x479acc('0x16c2')+_0x33ee32[_0x479acc('0x2fa')]+_0x479acc('0x169e')+_0x33ee32['statusText']:_0x479acc('0x165f'),'msg':_0x33ee32[_0x479acc('0x10fd')]?JSON[_0x479acc('0xa48')](_0x33ee32['data']['message']):_0x33ee32['message']||_0x33ee32[_0x479acc('0x684')]()});});}function _0x15f17b(){var _0x3c87e1=_0x1ce9d9,_0x3b01af=angular['copy'](_0x2b1e56[_0x3c87e1('0x1fc0')]);return _0x2b1e56['selectedTriggerAnyConditions']=[],_0x3b01af;}function _0x28f2d4(_0x52ac1f){var _0x54d074=_0x1ce9d9,_0x38eec4=_0x55e850[_0x54d074('0x281e')]()[_0x54d074('0x110a')](_0x51956a[_0x54d074('0x213f')](_0x54d074('0x22f6')))[_0x54d074('0x15af')](_0x51956a[_0x54d074('0x213f')](_0x54d074('0x142a'),{'total':_0x2b1e56[_0x54d074('0x1fc0')]['length']}))[_0x54d074('0x5b5')](_0x54d074('0xf8e'))[_0x54d074('0x116d')](_0x52ac1f)['ok']('OK')[_0x54d074('0x2030')](_0x51956a['instant'](_0x54d074('0x1dd8')));_0x55e850['show'](_0x38eec4)[_0x54d074('0xaa5')](function(){var _0x16e9f6=_0x54d074;_0x2b1e56['selectedTriggerAnyConditions'][_0x16e9f6('0x15b5')](function(_0x58ebdc){_0x1e1b23(_0x58ebdc);}),_0x2b1e56[_0x16e9f6('0x1fc0')]=[],_0x2981d9[_0x16e9f6('0xe10')]({'title':_0x51956a['instant']('TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE')});});}var _0x44f775=!![],_0x820c15=0x1;_0x544476['$watch']('vm_dc.query.filter',function(_0x40c7cd,_0x1e4428){var _0x2a45bb=_0x1ce9d9;_0x44f775?_0x28b12e(function(){_0x44f775=![];}):(!_0x1e4428&&(_0x820c15=_0x2b1e56['query']['page']),_0x40c7cd!==_0x1e4428&&(_0x2b1e56[_0x2a45bb('0x582')][_0x2a45bb('0x41')]=0x1),!_0x40c7cd&&(_0x2b1e56[_0x2a45bb('0x582')][_0x2a45bb('0x41')]=_0x820c15),_0x18f0dd());});}const _0x3dcb3d=_0x2a7bd1;_0x58d3c7[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty',_0x1a8446('0x12df'),'allCondition',_0x1a8446('0x2624'),_0x1a8446('0x157'),'Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x58d3c7(_0x51c617,_0x3fd1d8,_0xd4cff,_0x17fd21,_0x1dea84,_0x4868c7,_0x3b00ca,_0x52e3ee,_0x4c0914,_0x221fa3,_0x2ed7cb,_0xe412df,_0x34dc78){var _0x5d48cf=_0x1a8446,_0xc21fd6=this;_0xc21fd6['currentUser']=_0x221fa3[_0x5d48cf('0xacc')](),_0xc21fd6[_0x5d48cf('0xfa3')]=angular[_0x5d48cf('0x20a')](_0x3b00ca),_0xc21fd6[_0x5d48cf('0x12df')]=angular['copy'](_0x4868c7),_0xc21fd6[_0x5d48cf('0x143f')]=_0xe412df,_0xc21fd6['license']=_0x2ed7cb,_0xc21fd6[_0x5d48cf('0xada')]=_0x34dc78,_0xc21fd6[_0x5d48cf('0x9f0')]={},_0xc21fd6[_0x5d48cf('0x1407')]=![],_0xc21fd6[_0x5d48cf('0x4c6')]=[],_0xc21fd6[_0x5d48cf('0x2624')]=angular[_0x5d48cf('0x20a')](_0x52e3ee);!_0xc21fd6[_0x5d48cf('0xfa3')]?(_0xc21fd6[_0x5d48cf('0xfa3')]={'operator':'equals'},_0xc21fd6[_0x5d48cf('0x1407')]=!![]):_0x44267f();_0xc21fd6[_0x5d48cf('0xfa3')][_0x5d48cf('0x225b')]=_0x51c617[_0x5d48cf('0x25cf')]['id']||undefined,_0xc21fd6[_0x5d48cf('0x53')]=[{'name':_0x5d48cf('0x18ef'),'value':_0x5d48cf('0x1f60')},{'name':_0x5d48cf('0xc45'),'value':_0x5d48cf('0x23c0')},{'name':'Hangup','value':_0x5d48cf('0x7b2')},{'name':_0x5d48cf('0x22a6'),'value':_0x5d48cf('0x2661')},{'name':_0x5d48cf('0xa2b'),'value':'called'},{'name':_0x5d48cf('0x1523'),'value':_0x5d48cf('0x16dc')},{'name':_0x5d48cf('0xfe'),'value':_0x5d48cf('0x1839')},{'name':'Busy','value':_0x5d48cf('0xa1e')},{'name':_0x5d48cf('0x3f0'),'value':'noanswer'},{'name':_0x5d48cf('0x2482'),'value':_0x5d48cf('0x2283')},{'name':_0x5d48cf('0x11ae'),'value':'agentreject'}],_0xc21fd6['onFieldSelection']=_0x2338d8,_0xc21fd6['addNewAllCondition']=_0x892a72,_0xc21fd6[_0x5d48cf('0x5cc')]=_0x306387,_0xc21fd6[_0x5d48cf('0x1bec')]=_0x1401b9,_0xc21fd6[_0x5d48cf('0x2023')]=_0x565667;function _0x3efcc2(){var _0x4ecbfe=_0x5d48cf,_0x5cb942=[{'id':0x191,'type':_0x4ecbfe('0x4b8')},{'id':0x5dd,'type':_0x4ecbfe('0x19d1')}],_0x6e581b=null;_0x221fa3[_0x4ecbfe('0xcf2')]()?_0x4c0914[_0x4ecbfe('0x1588')][_0x4ecbfe('0x2122')]({'fields':_0x4ecbfe('0x21e2'),'sort':'name','nolimit':_0x4ecbfe('0x1c5c')})[_0x4ecbfe('0x1dc2')][_0x4ecbfe('0xaa5')](function(_0x4d48a9){var _0x57fe5d=_0x4ecbfe;_0xc21fd6[_0x57fe5d('0x4d7')]=_0x4d48a9[_0x57fe5d('0x580')]||[];})[_0x4ecbfe('0x253d')](function(_0x55e59f){var _0x130801=_0x4ecbfe;_0x1dea84[_0x130801('0x187f')]({'title':_0x55e59f[_0x130801('0x2fa')]?_0x130801('0x16c2')+_0x55e59f[_0x130801('0x2fa')]+'\x20-\x20'+_0x55e59f['statusText']:_0x130801('0x1e3d'),'msg':_0x55e59f[_0x130801('0x10fd')]?JSON['stringify'](_0x55e59f[_0x130801('0x10fd')]):_0x55e59f[_0x130801('0x684')]()});}):_0x4c0914[_0x4ecbfe('0x1588')][_0x4ecbfe('0x2122')]({'fields':_0x4ecbfe('0x21e2'),'sort':_0x4ecbfe('0x25d6'),'nolimit':_0x4ecbfe('0x1c5c')})[_0x4ecbfe('0x1dc2')]['then'](function(_0x1c0b9d){_0x6e581b=_0x1c0b9d['rows']||[];})[_0x4ecbfe('0xaa5')](function(){var _0x2876cd=_0x4ecbfe,_0x62db12=[];for(var _0x4d0412=0x0;_0x4d0412<_0x5cb942[_0x2876cd('0x2587')];_0x4d0412++){_0x62db12[_0x2876cd('0x1599')](_0x4c0914[_0x2876cd('0x1a50')][_0x2876cd('0x2122')]({'userProfileId':_0xc21fd6[_0x2876cd('0x7fc')][_0x2876cd('0x2168')],'sectionId':_0x5cb942[_0x4d0412]['id']})[_0x2876cd('0x1dc2')]);}return _0xd4cff[_0x2876cd('0xa15')](_0x62db12);})[_0x4ecbfe('0xaa5')](function(_0x2122c8){var _0x14f54d=_0x4ecbfe,_0x3c379e=_0x51538b()[_0x14f54d('0x1246')](_0x2122c8,function(_0x5705c6){return _0x5705c6&&_0x5705c6['rows']?_0x5705c6['rows'][0x0]:null;}),_0x17b004=[],_0x49ded0=function _0x10a39a(_0x507fed){var _0x1132a9=_0x14f54d,_0xeaa773=_0x51538b()['find'](_0x3c379e,[_0x1132a9('0x10b8'),_0x5cb942[_0x507fed]['id']]);if(_0xeaa773){if(!_0xeaa773[_0x1132a9('0x26cc')])_0x17b004[_0x1132a9('0x1599')](_0x4c0914[_0x1132a9('0x249a')][_0x1132a9('0x2122')]({'sectionId':_0xeaa773['id']})[_0x1132a9('0x1dc2')]);else{var _0x5f369b=[];_0x6e581b[_0x1132a9('0x15b5')](function(_0x46ba61){var _0x76c667=_0x1132a9;_0x46ba61[_0x76c667('0x6c8')]===_0x5cb942[_0x507fed][_0x76c667('0x6c8')]&&_0x5f369b[_0x76c667('0x1599')](_0x46ba61);}),_0x17b004['push']({'rows':_0x5f369b,'count':_0x5f369b[_0x1132a9('0x2587')]});}}};for(var _0x2d75ca=0x0;_0x2d75ca<_0x5cb942[_0x14f54d('0x2587')];_0x2d75ca++){_0x49ded0(_0x2d75ca);}return _0xd4cff['all'](_0x17b004);})[_0x4ecbfe('0xaa5')](function(_0x12d436){var _0x468756=_0x4ecbfe,_0x4af086=[],_0x566e9c=[];_0xc21fd6[_0x468756('0xb1e')][_0x468756('0x580')][_0x468756('0x15b5')](function(_0x16c839){var _0x1f8fc7=_0x468756;if(_0x16c839[_0x1f8fc7('0x5f2')]===_0x1f8fc7('0xe26')){var _0x22dde0=_0x51538b()[_0x1f8fc7('0xe9e')](_0x6e581b,{'name':_0x16c839[_0x1f8fc7('0x12f4')]});_0x566e9c[_0x1f8fc7('0x1599')](_0x22dde0);}});for(var _0x2a329b=0x0;_0x2a329b<_0x12d436['length'];_0x2a329b++){var _0x3af93a=_0x12d436[_0x2a329b][_0x468756('0x580')]||[];_0x3af93a[_0x468756('0x15b5')](function(_0x36eaf0){_0x4af086['push'](_0x36eaf0);});}!_0x51538b()[_0x468756('0x116b')](_0x566e9c)&&_0x566e9c[_0x468756('0x15b5')](function(_0x1aabcf){var _0x6f1113=_0x468756;if(!_0x51538b()['some'](_0x4af086,[_0x6f1113('0xbcd'),_0x1aabcf['id']])){var _0x6cd8c7=_0x51538b()[_0x6f1113('0xe9e')](_0x6e581b,{'id':_0x1aabcf['id']});_0x6cd8c7[_0x6f1113('0x12eb')]=![],_0x4af086[_0x6f1113('0x1599')](_0x6cd8c7);}}),_0xc21fd6[_0x468756('0x4d7')]=_0x4af086;})[_0x4ecbfe('0x253d')](function(_0x2024b8){var _0x4e7a62=_0x4ecbfe;_0x1dea84[_0x4e7a62('0x187f')]({'title':_0x2024b8[_0x4e7a62('0x2fa')]?'API:'+_0x2024b8['status']+_0x4e7a62('0x169e')+_0x2024b8[_0x4e7a62('0x24df')]:'SYSTEM:GET_QUEUES','msg':_0x2024b8['data']?JSON[_0x4e7a62('0xa48')](_0x2024b8[_0x4e7a62('0x10fd')]):_0x2024b8['toString']()});});}function _0x2e7b17(){var _0x264b99=_0x5d48cf;_0x221fa3['isAdmin']()?_0x4c0914[_0x264b99('0x1361')][_0x264b99('0x2122')]({'fields':_0x264b99('0x1ceb'),'type':_0x264b99('0x19d1'),'VoiceExtensionId':_0x264b99('0x1ed9'),'nolimit':_0x264b99('0x1c5c')})['$promise'][_0x264b99('0xaa5')](function(_0x4560d2){var _0x271fd8=_0x264b99;_0xc21fd6[_0x271fd8('0xe59')]=_0x4560d2[_0x271fd8('0x580')]||[];})['catch'](function(_0x41efb6){var _0x6b5e61=_0x264b99;_0x1dea84['error']({'title':_0x41efb6['status']?_0x6b5e61('0x16c2')+_0x41efb6['status']+_0x6b5e61('0x169e')+_0x41efb6[_0x6b5e61('0x24df')]:_0x6b5e61('0x1f25'),'msg':_0x41efb6[_0x6b5e61('0x10fd')]?JSON[_0x6b5e61('0xa48')](_0x41efb6['data']):_0x41efb6[_0x6b5e61('0x684')]()});}):_0x4c0914[_0x264b99('0x1361')][_0x264b99('0x2122')]({'fields':'id,exten','type':_0x264b99('0x19d1'),'VoiceExtensionId':_0x264b99('0x1ed9'),'nolimit':_0x264b99('0x1c5c')})[_0x264b99('0x1dc2')][_0x264b99('0xaa5')](function(_0x2fe6cd){var _0x3882b8=_0x264b99;_0xc21fd6['outboundRoutes']=_0x2fe6cd[_0x3882b8('0x580')]||[];})[_0x264b99('0xaa5')](function(){var _0x54a66e=_0x264b99;return _0x4c0914[_0x54a66e('0x1a50')]['get']({'userProfileId':_0xc21fd6['currentUser'][_0x54a66e('0x2168')],'sectionId':0x193})[_0x54a66e('0x1dc2')];})['then'](function(_0x35c818){var _0x5e7cef=_0x264b99,_0xe186c6=_0x35c818&&_0x35c818[_0x5e7cef('0x580')]?_0x35c818[_0x5e7cef('0x580')][0x0]:null;if(!_0xe186c6){var _0xc1f6c7=[],_0x5e5363=[];_0xc21fd6[_0x5e7cef('0xb1e')][_0x5e7cef('0x580')][_0x5e7cef('0x15b5')](function(_0x5113ce){var _0x5bd34b=_0x5e7cef;if(_0x5113ce[_0x5bd34b('0x5f2')]===_0x5bd34b('0x1f7c')){var _0x171982=_0x51538b()[_0x5bd34b('0xe9e')](_0xc21fd6['outboundRoutes'],{'id':Number(_0x5113ce[_0x5bd34b('0x12f4')])});_0x5e5363[_0x5bd34b('0x1599')](_0x171982);}});for(var _0x30ecf2=0x0;_0x30ecf2<_0xc21fd6[_0x5e7cef('0xe59')]['length'];_0x30ecf2++){var _0x33d34b=_0x51538b()['some'](_0x5e5363,{'id':_0xc21fd6[_0x5e7cef('0xe59')][_0x30ecf2]['id']});_0x33d34b&&(_0xc21fd6[_0x5e7cef('0xe59')][_0x30ecf2][_0x5e7cef('0x12eb')]=![],_0xc1f6c7[_0x5e7cef('0x1599')](_0xc21fd6['outboundRoutes'][_0x30ecf2]));}_0xc21fd6[_0x5e7cef('0xe59')]=_0xc1f6c7;}else{if(!_0xe186c6[_0x5e7cef('0x26cc')])return _0x4c0914[_0x5e7cef('0x249a')][_0x5e7cef('0x2122')]({'sectionId':_0xe186c6['id']})[_0x5e7cef('0x1dc2')][_0x5e7cef('0xaa5')](function(_0x31679f){var _0x5c3b89=_0x5e7cef,_0x1ddf81=_0x51538b()[_0x5c3b89('0x1246')](_0x31679f['rows'],function(_0xdde132){var _0x18a481=_0x5c3b89;return _0x51538b()[_0x18a481('0xe9e')](_0xc21fd6[_0x18a481('0xe59')],{'id':_0xdde132[_0x18a481('0xbcd')]});}),_0x32805e=null;_0x32805e=[],_0xc21fd6[_0x5c3b89('0xb1e')][_0x5c3b89('0x580')][_0x5c3b89('0x15b5')](function(_0x1a63a5){var _0x36622e=_0x5c3b89;if(_0x1a63a5['field']===_0x36622e('0x1f7c')){var _0x59bfac=_0x51538b()[_0x36622e('0xe9e')](_0xc21fd6[_0x36622e('0xe59')],{'id':Number(_0x1a63a5['value'])});_0x32805e[_0x36622e('0x1599')](_0x59bfac);}}),!_0x51538b()[_0x5c3b89('0x116b')](_0x32805e)&&_0x32805e[_0x5c3b89('0x15b5')](function(_0x168d24){var _0x1acc90=_0x5c3b89;if(!_0x51538b()[_0x1acc90('0x2c2')](_0x1ddf81,['id',_0x168d24['id']])){var _0x2cade7=_0x51538b()[_0x1acc90('0xe9e')](_0xc21fd6[_0x1acc90('0xe59')],{'id':_0x168d24['id']});_0x2cade7[_0x1acc90('0x12eb')]=![],_0x1ddf81[_0x1acc90('0x1599')](_0x2cade7);}}),_0xc21fd6[_0x5c3b89('0xe59')]=_0x1ddf81;});}})[_0x264b99('0x253d')](function(_0x1d5da6){var _0x4c4c62=_0x264b99;_0x1dea84[_0x4c4c62('0x187f')]({'title':_0x1d5da6['status']?_0x4c4c62('0x16c2')+_0x1d5da6[_0x4c4c62('0x2fa')]+_0x4c4c62('0x169e')+_0x1d5da6[_0x4c4c62('0x24df')]:_0x4c4c62('0x1f25'),'msg':_0x1d5da6[_0x4c4c62('0x10fd')]?JSON[_0x4c4c62('0xa48')](_0x1d5da6[_0x4c4c62('0x10fd')]):_0x1d5da6[_0x4c4c62('0x684')]()});});}function _0x4d5d44(){var _0x4c0575=_0x5d48cf;_0x221fa3[_0x4c0575('0xcf2')]()?_0x4c0914['user'][_0x4c0575('0x2122')]({'fields':'id,name,fullname','sort':'name','role':'agent','nolimit':_0x4c0575('0x1c5c')})[_0x4c0575('0x1dc2')][_0x4c0575('0xaa5')](function(_0x1ac18d){var _0x850a57=_0x4c0575;_0xc21fd6[_0x850a57('0x1717')]=_0x1ac18d['rows']||[];})[_0x4c0575('0x253d')](function(_0x3c3d2c){var _0x40d98e=_0x4c0575;_0x1dea84['error']({'title':_0x3c3d2c[_0x40d98e('0x2fa')]?_0x40d98e('0x16c2')+_0x3c3d2c[_0x40d98e('0x2fa')]+_0x40d98e('0x169e')+_0x3c3d2c[_0x40d98e('0x24df')]:_0x40d98e('0x14c6'),'msg':_0x3c3d2c[_0x40d98e('0x10fd')]?JSON[_0x40d98e('0xa48')](_0x3c3d2c[_0x40d98e('0x10fd')]):_0x3c3d2c[_0x40d98e('0x684')]()});}):_0x4c0914[_0x4c0575('0x272b')][_0x4c0575('0x2122')]({'fields':_0x4c0575('0x25ff'),'sort':_0x4c0575('0x25d6'),'role':'agent','nolimit':_0x4c0575('0x1c5c')})['$promise'][_0x4c0575('0xaa5')](function(_0x2a0e3c){var _0xc9a68=_0x4c0575;_0xc21fd6['agents']=_0x2a0e3c[_0xc9a68('0x580')]||[];})[_0x4c0575('0xaa5')](function(){var _0x4d5db3=_0x4c0575;return _0x4c0914[_0x4d5db3('0x1a50')]['get']({'userProfileId':_0xc21fd6[_0x4d5db3('0x7fc')][_0x4d5db3('0x2168')],'sectionId':0xca})[_0x4d5db3('0x1dc2')];})[_0x4c0575('0xaa5')](function(_0x42c490){var _0x337e08=_0x4c0575,_0x3ccfe4=_0x42c490&&_0x42c490[_0x337e08('0x580')]?_0x42c490['rows'][0x0]:null;if(!_0x3ccfe4){var _0x5d47c2=[],_0x5b88c8=[];_0xc21fd6[_0x337e08('0xb1e')][_0x337e08('0x580')][_0x337e08('0x15b5')](function(_0x349598){var _0x4825c1=_0x337e08;if(_0x349598[_0x4825c1('0x5f2')]===_0x4825c1('0xeff')){var _0x1e9dd1=_0x51538b()[_0x4825c1('0xe9e')](_0xc21fd6[_0x4825c1('0x1717')],{'name':_0x349598[_0x4825c1('0x12f4')]});_0x5b88c8['push'](_0x1e9dd1);}});for(var _0x5c8363=0x0;_0x5c8363<_0xc21fd6[_0x337e08('0x1717')][_0x337e08('0x2587')];_0x5c8363++){var _0x1db075=_0x51538b()['some'](_0x5b88c8,{'id':_0xc21fd6[_0x337e08('0x1717')][_0x5c8363]['id']});_0x1db075&&(_0xc21fd6[_0x337e08('0x1717')][_0x5c8363]['canSelect']=![],_0x5d47c2['push'](_0xc21fd6[_0x337e08('0x1717')][_0x5c8363]));}_0xc21fd6[_0x337e08('0x1717')]=_0x5d47c2;}else{if(!_0x3ccfe4['autoAssociation'])return _0x4c0914['userProfileResource'][_0x337e08('0x2122')]({'sectionId':_0x3ccfe4['id']})[_0x337e08('0x1dc2')][_0x337e08('0xaa5')](function(_0x1b7f58){var _0x4c52ca=_0x337e08,_0x202366=_0x51538b()[_0x4c52ca('0x1246')](_0x1b7f58[_0x4c52ca('0x580')],function(_0x5a467e){var _0x3bb4b4=_0x4c52ca;return _0x51538b()['find'](_0xc21fd6['agents'],{'id':_0x5a467e[_0x3bb4b4('0xbcd')]});}),_0x28f534=null;_0x28f534=[],_0xc21fd6[_0x4c52ca('0xb1e')][_0x4c52ca('0x580')][_0x4c52ca('0x15b5')](function(_0x34acbf){var _0x53934a=_0x4c52ca;if(_0x34acbf[_0x53934a('0x5f2')]===_0x53934a('0xeff')){var _0x4a284a=_0x51538b()[_0x53934a('0xe9e')](_0xc21fd6[_0x53934a('0x1717')],{'name':_0x34acbf[_0x53934a('0x12f4')]});_0x28f534[_0x53934a('0x1599')](_0x4a284a);}}),!_0x51538b()[_0x4c52ca('0x116b')](_0x28f534)&&_0x28f534['forEach'](function(_0x34202d){var _0x7d0cd=_0x4c52ca;if(!_0x51538b()[_0x7d0cd('0x2c2')](_0x202366,['id',_0x34202d['id']])){var _0x18836d=_0x51538b()[_0x7d0cd('0xe9e')](_0xc21fd6['agents'],{'id':_0x34202d['id']});_0x18836d[_0x7d0cd('0x12eb')]=![],_0x202366[_0x7d0cd('0x1599')](_0x18836d);}}),_0xc21fd6[_0x4c52ca('0x1717')]=_0x202366;});}})[_0x4c0575('0x253d')](function(_0x343225){var _0x4e0663=_0x4c0575;_0x1dea84[_0x4e0663('0x187f')]({'title':_0x343225[_0x4e0663('0x2fa')]?'API:'+_0x343225[_0x4e0663('0x2fa')]+_0x4e0663('0x169e')+_0x343225[_0x4e0663('0x24df')]:'SYSTEM:GET_AGENTS','msg':_0x343225[_0x4e0663('0x10fd')]?JSON[_0x4e0663('0xa48')](_0x343225[_0x4e0663('0x10fd')]):_0x343225[_0x4e0663('0x684')]()});});}function _0xe90665(){var _0x1ffa37=_0x5d48cf,_0x1f5ee5=_0xc21fd6['trigger'][_0x1ffa37('0x119e')]+(_0xc21fd6[_0x1ffa37('0x2624')]['channel']==='chat'?_0x1ffa37('0xf2b'):'Account'),_0x5ec532;switch(_0xc21fd6[_0x1ffa37('0x2624')]['channel']){case _0x1ffa37('0x20f9'):_0x5ec532=0x1f6;break;case _0x1ffa37('0x16c4'):_0x5ec532=0x386;break;case _0x1ffa37('0x14c5'):_0x5ec532=0x25a;break;case'openchannel':_0x5ec532=0x322;break;case'sms':_0x5ec532=0x2be;break;case _0x1ffa37('0x220d'):_0x5ec532=0x836;break;}if(_0x221fa3[_0x1ffa37('0xcf2')]()){var _0x408a2a=_0xc21fd6['trigger'][_0x1ffa37('0x119e')];_0x4c0914[_0x1f5ee5][_0x1ffa37('0x2122')]({'fields':_0x1ffa37('0x17fe'),'sort':'id','nolimit':'true'})['$promise'][_0x1ffa37('0xaa5')](function(_0xa6c46a){var _0x495ed0=_0x1ffa37;_0xc21fd6[_0x495ed0('0x1b93')]=_0xa6c46a['rows']||[];})['catch'](function(_0x2c3f7d){var _0x1a5e95=_0x1ffa37;_0x1dea84[_0x1a5e95('0x187f')]({'title':_0x2c3f7d['status']?'API:'+_0x2c3f7d[_0x1a5e95('0x2fa')]+'\x20-\x20'+_0x2c3f7d[_0x1a5e95('0x24df')]:'SYSTEM:GET_'+_0x408a2a['toUpperCase']()+_0x408a2a==='chat'?_0x1a5e95('0x170e'):'ACCOUNTS','msg':_0x2c3f7d[_0x1a5e95('0x10fd')]?JSON['stringify'](_0x2c3f7d[_0x1a5e95('0x10fd')]):_0x2c3f7d[_0x1a5e95('0x684')]()});});}else _0x4c0914[_0x1f5ee5]['get']({'fields':_0x1ffa37('0x17fe'),'sort':'id','nolimit':_0x1ffa37('0x1c5c')})[_0x1ffa37('0x1dc2')][_0x1ffa37('0xaa5')](function(_0xaa15b5){var _0x226d86=_0x1ffa37;_0xc21fd6[_0x226d86('0x1b93')]=_0xaa15b5[_0x226d86('0x580')]||[];})[_0x1ffa37('0xaa5')](function(){var _0x57cac3=_0x1ffa37;return _0x4c0914[_0x57cac3('0x1a50')][_0x57cac3('0x2122')]({'userProfileId':_0xc21fd6['currentUser'][_0x57cac3('0x2168')],'sectionId':_0x5ec532})[_0x57cac3('0x1dc2')];})[_0x1ffa37('0xaa5')](function(_0x58df23){var _0x1a78fa=_0x1ffa37,_0x3d567d=_0x58df23&&_0x58df23['rows']?_0x58df23[_0x1a78fa('0x580')][0x0]:null;if(!_0x3d567d){var _0x10c8e0=[],_0x499490=[];_0xc21fd6[_0x1a78fa('0xb1e')][_0x1a78fa('0x580')][_0x1a78fa('0x15b5')](function(_0x112090){var _0x3e7af5=_0x1a78fa;if(_0x112090[_0x3e7af5('0x5f2')]==='account'){var _0x6bf4cf=_0x51538b()[_0x3e7af5('0xe9e')](_0xc21fd6[_0x3e7af5('0x1b93')],{'id':Number(_0x112090['value'])});_0x499490[_0x3e7af5('0x1599')](_0x6bf4cf);}});for(var _0x3a70cc=0x0;_0x3a70cc<_0xc21fd6[_0x1a78fa('0x1b93')][_0x1a78fa('0x2587')];_0x3a70cc++){var _0x2cad92=_0x51538b()[_0x1a78fa('0x2c2')](_0x499490,{'id':_0xc21fd6[_0x1a78fa('0x1b93')][_0x3a70cc]['id']});_0x2cad92&&(_0xc21fd6[_0x1a78fa('0x1b93')][_0x3a70cc][_0x1a78fa('0x12eb')]=![],_0x10c8e0[_0x1a78fa('0x1599')](_0xc21fd6['accounts'][_0x3a70cc]));}_0xc21fd6[_0x1a78fa('0x1b93')]=_0x10c8e0;}else{if(!_0x3d567d[_0x1a78fa('0x26cc')])return _0x4c0914[_0x1a78fa('0x249a')]['get']({'sectionId':_0x3d567d['id']})['$promise'][_0x1a78fa('0xaa5')](function(_0x55c249){var _0x3be00b=_0x1a78fa,_0x5be155=_0x51538b()[_0x3be00b('0x1246')](_0x55c249[_0x3be00b('0x580')],function(_0x77f11c){var _0x434828=_0x3be00b;return _0x51538b()[_0x434828('0xe9e')](_0xc21fd6[_0x434828('0x1b93')],{'id':_0x77f11c[_0x434828('0xbcd')]});}),_0xcd2263=null;_0xcd2263=[],_0xc21fd6[_0x3be00b('0xb1e')][_0x3be00b('0x580')][_0x3be00b('0x15b5')](function(_0x22497c){var _0x2ca02d=_0x3be00b;if(_0x22497c[_0x2ca02d('0x5f2')]==='account'){var _0x26f3a3=_0x51538b()['find'](_0xc21fd6[_0x2ca02d('0x1b93')],{'id':Number(_0x22497c[_0x2ca02d('0x12f4')])});_0xcd2263['push'](_0x26f3a3);}}),!_0x51538b()[_0x3be00b('0x116b')](_0xcd2263)&&_0xcd2263[_0x3be00b('0x15b5')](function(_0x108fe4){var _0x38d749=_0x3be00b;if(!_0x51538b()['some'](_0x5be155,['id',_0x108fe4['id']])){var _0x55cda5=_0x51538b()[_0x38d749('0xe9e')](_0xc21fd6[_0x38d749('0x1b93')],{'id':_0x108fe4['id']});_0x55cda5[_0x38d749('0x12eb')]=![],_0x5be155['push'](_0x55cda5);}}),_0xc21fd6[_0x3be00b('0x1b93')]=_0x5be155;});}})['catch'](function(_0x4d53da){var _0x48eede=_0x1ffa37,_0x2bcb66=_0xc21fd6[_0x48eede('0x2624')][_0x48eede('0x119e')];_0x1dea84[_0x48eede('0x187f')]({'title':_0x4d53da[_0x48eede('0x2fa')]?_0x48eede('0x16c2')+_0x4d53da[_0x48eede('0x2fa')]+_0x48eede('0x169e')+_0x4d53da[_0x48eede('0x24df')]:_0x48eede('0xa2c')+_0x2bcb66[_0x48eede('0x1d08')]()+_0x2bcb66==='chat'?'WEBSITES':_0x48eede('0x1b85'),'msg':_0x4d53da[_0x48eede('0x10fd')]?JSON[_0x48eede('0xa48')](_0x4d53da[_0x48eede('0x10fd')]):_0x4d53da[_0x48eede('0x684')]()});});}function _0x44267f(){var _0x38f677=_0x5d48cf;switch(_0xc21fd6['allCondition']['field']){case _0x38f677('0xe26'):if(!_0xc21fd6[_0x38f677('0x4d7')])_0x3efcc2();break;case _0x38f677('0x1f7c'):if(!_0xc21fd6[_0x38f677('0xe59')])_0x2e7b17();break;case _0x38f677('0xeff'):if(!_0xc21fd6['agents'])_0x4d5d44();break;case _0x38f677('0x5b'):_0xe90665();break;}}function _0x2338d8(){_0x44267f();}function _0x892a72(){var _0x4fff8f=_0x5d48cf;_0xc21fd6[_0x4fff8f('0x4c6')]=[],_0x4c0914[_0x4fff8f('0x2624')]['addAllCondition']({'id':_0x51c617[_0x4fff8f('0x25cf')]['id']},_0xc21fd6[_0x4fff8f('0xfa3')])[_0x4fff8f('0x1dc2')][_0x4fff8f('0xaa5')](function(_0x3a6b01){var _0x5e28b5=_0x4fff8f;_0xc21fd6[_0x5e28b5('0x12df')][_0x5e28b5('0x6ee')](_0x3a6b01[_0x5e28b5('0x256a')]()),_0x1dea84[_0x5e28b5('0xe10')]({'title':_0x17fd21[_0x5e28b5('0x213f')](_0x5e28b5('0x2577'))}),_0x565667(_0xc21fd6[_0x5e28b5('0x12df')]);})[_0x4fff8f('0x253d')](function(_0x5d947b){var _0x4945ab=_0x4fff8f;if(_0x5d947b['data']&&_0x5d947b[_0x4945ab('0x10fd')][_0x4945ab('0x4c6')]&&_0x5d947b['data']['errors']['length']){_0xc21fd6['errors']=_0x5d947b[_0x4945ab('0x10fd')][_0x4945ab('0x4c6')]||[{'message':_0x5d947b[_0x4945ab('0x684')](),'type':_0x4945ab('0x169')}];for(var _0x120934=0x0;_0x120934<_0x5d947b[_0x4945ab('0x10fd')][_0x4945ab('0x4c6')][_0x4945ab('0x2587')];_0x120934+=0x1){_0x1dea84[_0x4945ab('0x187f')]({'title':_0x5d947b[_0x4945ab('0x10fd')][_0x4945ab('0x4c6')][_0x120934][_0x4945ab('0x6c8')],'msg':_0x5d947b[_0x4945ab('0x10fd')][_0x4945ab('0x4c6')][_0x120934][_0x4945ab('0x1402')]});}}else _0x1dea84[_0x4945ab('0x187f')]({'title':_0x5d947b[_0x4945ab('0x2fa')]?_0x4945ab('0x16c2')+_0x5d947b[_0x4945ab('0x2fa')]+_0x4945ab('0x169e')+_0x5d947b[_0x4945ab('0x24df')]:_0x4945ab('0x169'),'msg':_0x5d947b[_0x4945ab('0x10fd')]?JSON[_0x4945ab('0xa48')](_0x5d947b['data'][_0x4945ab('0x1402')]):_0x5d947b['toString']()});});}function _0x306387(){var _0x13d6a6=_0x5d48cf;_0xc21fd6[_0x13d6a6('0x4c6')]=[],_0x4c0914[_0x13d6a6('0xe77')][_0x13d6a6('0x264e')]({'id':_0xc21fd6[_0x13d6a6('0xfa3')]['id']},_0xc21fd6[_0x13d6a6('0xfa3')])[_0x13d6a6('0x1dc2')][_0x13d6a6('0xaa5')](function(){var _0x37f426=_0x13d6a6;_0xc21fd6['allConditions']=_0x51538b()[_0x37f426('0x1246')](_0xc21fd6[_0x37f426('0x12df')],function(_0x15aabe){var _0x53edf8=_0x37f426;if(_0x15aabe['id']===_0xc21fd6[_0x53edf8('0xfa3')]['id'])return _0xc21fd6[_0x53edf8('0xfa3')];else return _0x15aabe;}),_0x1dea84[_0x37f426('0xe10')]({'title':_0x17fd21[_0x37f426('0x213f')]('TOOLS.NOTIFICATIONS.CONDITION_SAVED_SUCCESS_TITLE')}),_0x565667(_0xc21fd6[_0x37f426('0x12df')]);})['catch'](function(_0x530f9b){var _0x41a67c=_0x13d6a6;if(_0x530f9b[_0x41a67c('0x10fd')]&&_0x530f9b[_0x41a67c('0x10fd')][_0x41a67c('0x4c6')]&&_0x530f9b[_0x41a67c('0x10fd')][_0x41a67c('0x4c6')]['length']){_0xc21fd6[_0x41a67c('0x4c6')]=_0x530f9b[_0x41a67c('0x10fd')]['errors']||[{'message':_0x530f9b[_0x41a67c('0x684')](),'type':_0x41a67c('0x81d')}];for(var _0x4cfb0b=0x0;_0x4cfb0b<_0x530f9b[_0x41a67c('0x10fd')][_0x41a67c('0x4c6')][_0x41a67c('0x2587')];_0x4cfb0b++){_0x1dea84[_0x41a67c('0x187f')]({'title':_0x530f9b[_0x41a67c('0x10fd')][_0x41a67c('0x4c6')][_0x4cfb0b]['type'],'msg':_0x530f9b['data'][_0x41a67c('0x4c6')][_0x4cfb0b]['message']});}}else _0x1dea84[_0x41a67c('0x187f')]({'title':_0x530f9b[_0x41a67c('0x2fa')]?'API:'+_0x530f9b[_0x41a67c('0x2fa')]+_0x41a67c('0x169e')+_0x530f9b['statusText']:_0x41a67c('0x81d'),'msg':_0x530f9b[_0x41a67c('0x10fd')]?JSON[_0x41a67c('0xa48')](_0x530f9b[_0x41a67c('0x10fd')][_0x41a67c('0x1402')]):_0x530f9b[_0x41a67c('0x684')]()});});}function _0x1401b9(_0x1083f3){var _0x613e40=_0x5d48cf;_0xc21fd6[_0x613e40('0x4c6')]=[];var _0x128e63=_0x3fd1d8[_0x613e40('0x281e')]({'skipHide':!![]})[_0x613e40('0x110a')](_0x17fd21[_0x613e40('0x213f')]('TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE'))[_0x613e40('0x5b5')](_0x613e40('0x7c5'))['ok'](_0x17fd21['instant'](_0x613e40('0x2076')))[_0x613e40('0x2030')](_0x17fd21[_0x613e40('0x213f')]('TOOLS.CANCEL'))[_0x613e40('0x116d')](_0x1083f3);_0x3fd1d8[_0x613e40('0x1e6d')](_0x128e63)[_0x613e40('0xaa5')](function(){var _0x52c884=_0x613e40;_0x4c0914['condition'][_0x52c884('0x926')]({'id':_0xc21fd6[_0x52c884('0xfa3')]['id']})[_0x52c884('0x1dc2')][_0x52c884('0xaa5')](function(){var _0x19666c=_0x52c884;_0xc21fd6[_0x19666c('0x12df')]=_0x51538b()[_0x19666c('0xdb7')](_0xc21fd6[_0x19666c('0x12df')],function(_0x2b6fd1){var _0x290fd0=_0x19666c;return _0x2b6fd1['id']!==_0xc21fd6[_0x290fd0('0xfa3')]['id'];}),_0x1dea84['success']({'title':_0x17fd21[_0x19666c('0x213f')](_0x19666c('0x1d3a'))}),_0x565667(_0xc21fd6[_0x19666c('0x12df')]);})[_0x52c884('0x253d')](function(_0x3c94cb){var _0x3a809c=_0x52c884;if(_0x3c94cb[_0x3a809c('0x10fd')]&&_0x3c94cb['data'][_0x3a809c('0x4c6')]&&_0x3c94cb['data'][_0x3a809c('0x4c6')][_0x3a809c('0x2587')]){_0xc21fd6[_0x3a809c('0x4c6')]=_0x3c94cb[_0x3a809c('0x10fd')][_0x3a809c('0x4c6')]||[{'message':_0x3c94cb[_0x3a809c('0x684')](),'type':_0x3a809c('0x16f1')}];for(var _0x88cb5f=0x0;_0x88cb5f<_0x3c94cb[_0x3a809c('0x10fd')][_0x3a809c('0x4c6')][_0x3a809c('0x2587')];_0x88cb5f++){_0x1dea84[_0x3a809c('0x187f')]({'title':_0x3c94cb['data']['errors'][_0x88cb5f][_0x3a809c('0x6c8')],'msg':_0x3c94cb[_0x3a809c('0x10fd')]['errors'][_0x88cb5f][_0x3a809c('0x1402')]});}}else _0x1dea84[_0x3a809c('0x187f')]({'title':_0x3c94cb[_0x3a809c('0x2fa')]?'API:'+_0x3c94cb['status']+_0x3a809c('0x169e')+_0x3c94cb[_0x3a809c('0x24df')]:'api.condition.delete','msg':_0x3c94cb[_0x3a809c('0x10fd')]?JSON[_0x3a809c('0xa48')](_0x3c94cb['data'][_0x3a809c('0x1402')]):_0x3c94cb['message']||_0x3c94cb[_0x3a809c('0x684')]()});});},function(){});}function _0x565667(_0x1b4d41){_0x3fd1d8['hide'](_0x1b4d41);}}const _0x4b99ac=_0x58d3c7;_0x3e6aeb[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),'setting',_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x2624'),_0x1a8446('0x1a50')];function _0x3e6aeb(_0xb924fd,_0x544723,_0x3dfe3f,_0x289ba9,_0x200ecf,_0x513f3c,_0x1f5aa3,_0x32c7a7,_0x4fd983){var _0x155aa3=_0x1a8446,_0x14a81d=this;_0x14a81d['currentUser']=_0x1f5aa3[_0x155aa3('0xacc')](),_0x14a81d[_0x155aa3('0x1202')]=_0x3dfe3f,_0x14a81d['setting']=_0x289ba9,_0x14a81d[_0x155aa3('0x2624')]=_0x32c7a7||_0xb924fd[_0x155aa3('0x25cf')][_0x155aa3('0x2624')]||{},_0x14a81d[_0x155aa3('0xe5c')]=_0xb924fd[_0x155aa3('0x25cf')][_0x155aa3('0x25c2')]||0x0;_0xb924fd[_0x155aa3('0x25cf')]['crudPermissions']?_0x14a81d['crudPermissions']=_0xb924fd[_0x155aa3('0x25cf')][_0x155aa3('0xada')]:(_0x14a81d[_0x155aa3('0x1a50')]=_0x4fd983&&_0x4fd983[_0x155aa3('0xd15')]==0x1?_0x4fd983[_0x155aa3('0x580')][0x0]:null,_0x14a81d[_0x155aa3('0xada')]=_0x1f5aa3[_0x155aa3('0xffd')](_0x14a81d[_0x155aa3('0x1a50')]?_0x14a81d[_0x155aa3('0x1a50')][_0x155aa3('0xada')]:null));_0x14a81d['gotoTriggers']=_0x576ed5,_0x14a81d[_0x155aa3('0x2174')]=_0x59b7b4;function _0x576ed5(){var _0x1c756d=_0x155aa3;_0xb924fd['go'](_0x1c756d('0x8a0'),{},{'reload':'app.tools.triggers'});}function _0x59b7b4(){var _0x57ab89=_0x155aa3;_0x200ecf[_0x57ab89('0x2624')][_0x57ab89('0x264e')]({'id':_0x14a81d['trigger']['id']},_0x14a81d[_0x57ab89('0x2624')])['$promise'][_0x57ab89('0xaa5')](function(){var _0x21568c=_0x57ab89;_0x513f3c[_0x21568c('0xe10')]({'title':_0x544723[_0x21568c('0x213f')](_0x21568c('0x2718'))});})[_0x57ab89('0x253d')](function(_0x13a208){var _0x231efa=_0x57ab89;_0x513f3c[_0x231efa('0x187f')]({'title':_0x13a208[_0x231efa('0x2fa')]?'API:'+_0x13a208[_0x231efa('0x2fa')]+_0x231efa('0x169e')+_0x13a208['statusText']:'SYSTEM:GETtrigger','msg':_0x13a208[_0x231efa('0x10fd')]?JSON[_0x231efa('0xa48')](_0x13a208[_0x231efa('0x10fd')]):_0x13a208[_0x231efa('0x684')]()});});}}const _0x31e8ce=_0x3e6aeb,_0x36609e=_0x4fb511['p']+'src/js/modules/main/apps/tools/views/triggers/create/dialog.html/dialog-[chunkhash].html';_0x88e9f0[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'triggers',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x88e9f0(_0x385e52,_0x19c156,_0x5096c0,_0xd85a67,_0x3be965,_0x34d315,_0xfb094b,_0x40ddb9,_0x30e2f9,_0x1aba7f,_0x3d3840,_0x1f8396,_0xc3cf80,_0x301ec9){var _0x1692c6=_0x1a8446,_0x3645d0=this;_0x3645d0[_0x1692c6('0x1202')]=_0xc3cf80,_0x3645d0[_0x1692c6('0x143f')]=_0x301ec9,_0x3645d0[_0x1692c6('0x7fc')]=_0x1f8396[_0x1692c6('0xacc')](),_0x3645d0[_0x1692c6('0x44')]=_0xfb094b||{'count':0x0,'rows':[]},_0x3645d0[_0x1692c6('0x1e97')]=_0x40ddb9,_0x3645d0['userProfileSection']=_0x30e2f9&&_0x30e2f9[_0x1692c6('0xd15')]==0x1?_0x30e2f9['rows'][0x0]:null,_0x3645d0[_0x1692c6('0xada')]=_0x1f8396[_0x1692c6('0xffd')](_0x3645d0[_0x1692c6('0x1a50')]?_0x3645d0[_0x1692c6('0x1a50')][_0x1692c6('0xada')]:null),_0x3645d0[_0x1692c6('0x1fbf')]=[],_0x3645d0['query']={'fields':'id,name,channel,status,description,createdAt,updatedAt','sort':_0x1692c6('0xd82'),'limit':0xa,'page':0x1},_0x3645d0[_0x1692c6('0x199c')]=_0x765882,_0x3645d0[_0x1692c6('0x26ca')]=_0xf0af4a,_0x3645d0[_0x1692c6('0xe10')]=_0x150f17,_0x3645d0['getTriggers']=_0xc9fbdc,_0x3645d0['deleteconfirm']=_0x443d30,_0x3645d0[_0x1692c6('0x247c')]=_0x3fb1ba,_0x3645d0['deleteSelectedTriggers']=_0xc2b0be,_0x3645d0[_0x1692c6('0xf68')]=_0x262c1a,_0x3645d0['selectAllTriggers']=_0x235545;function _0x765882(_0x36678a){var _0x1fb2c7=_0x1692c6;_0x19c156['go'](_0x1fb2c7('0x9d1'),{'id':_0x36678a['id'],'trigger':_0x36678a,'crudPermissions':_0x3645d0[_0x1fb2c7('0xada')]});}function _0xf0af4a(_0x490ac2,_0x5d8b32){var _0x71033a=_0x1692c6;if(_0x3645d0[_0x71033a('0xada')]['readOnly']||_0x3645d0[_0x71033a('0xada')][_0x71033a('0x280')]&&!_0x3645d0['crudPermissions']['canEdit']){_0x765882(_0x5d8b32);return;}_0x5096c0[_0x71033a('0x1e6d')]({'controller':_0x71033a('0x18c1'),'controllerAs':'vm','templateUrl':_0x36609e,'parent':angular[_0x71033a('0x1aa8')](_0xd85a67[_0x71033a('0x54c')]),'targetEvent':_0x490ac2,'clickOutsideToClose':!![],'locals':{'trigger':_0x5d8b32,'triggers':_0x3645d0[_0x71033a('0x44')]['rows'],'license':_0x3645d0[_0x71033a('0x1202')],'setting':_0x3645d0[_0x71033a('0x143f')],'crudPermissions':_0x3645d0[_0x71033a('0xada')]}})['then'](function(_0x1d32aa){var _0x3978c2=_0x71033a;_0x1d32aa&&(_0x3645d0[_0x3978c2('0x44')]={'count':_0x1d32aa[_0x3978c2('0x2587')],'rows':_0x1d32aa});});}function _0x150f17(_0x6fe86){var _0x344e34=_0x1692c6;_0x3645d0[_0x344e34('0x44')]=_0x6fe86||{'count':0x0,'rows':[]};}function _0xc9fbdc(){var _0x596f7e=_0x1692c6;_0x3645d0[_0x596f7e('0x582')]['offset']=(_0x3645d0[_0x596f7e('0x582')][_0x596f7e('0x41')]-0x1)*_0x3645d0['query'][_0x596f7e('0xf4d')],_0x1f8396[_0x596f7e('0xcf2')]()?_0x3645d0[_0x596f7e('0x159a')]=_0x1aba7f[_0x596f7e('0x2624')][_0x596f7e('0x2122')](_0x3645d0[_0x596f7e('0x582')],_0x150f17)[_0x596f7e('0x1dc2')]:(_0x3645d0[_0x596f7e('0x582')]['id']=_0x3645d0[_0x596f7e('0x1e97')]['id'],_0x3645d0[_0x596f7e('0x582')][_0x596f7e('0x224d')]='Triggers',_0x3645d0[_0x596f7e('0x159a')]=_0x1aba7f[_0x596f7e('0x1e97')]['getResources'](_0x3645d0[_0x596f7e('0x582')],_0x150f17)[_0x596f7e('0x1dc2')]);}function _0x443d30(_0x220121,_0x36c99a){var _0x31c49e=_0x1692c6,_0x460b35=_0x5096c0[_0x31c49e('0x281e')]()['title'](_0x34d315['instant']('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE'))['content'](_0x34d315[_0x31c49e('0x213f')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE',{'name':_0x220121['name']}))[_0x31c49e('0x5b5')](_0x31c49e('0x84e'))[_0x31c49e('0x116d')](_0x36c99a)['ok']('OK')[_0x31c49e('0x2030')](_0x34d315['instant'](_0x31c49e('0x1dd8')));_0x5096c0[_0x31c49e('0x1e6d')](_0x460b35)[_0x31c49e('0xaa5')](function(){_0x25819e(_0x220121,!![]);});}function _0x25819e(_0x437987,_0x47d2c1){var _0x4a5169=_0x1692c6;_0x1aba7f[_0x4a5169('0x2624')][_0x4a5169('0x926')]({'id':_0x437987['id']})[_0x4a5169('0x1dc2')][_0x4a5169('0xaa5')](function(){var _0x274196=_0x4a5169;_0xc9fbdc(),_0x47d2c1&&_0x3d3840[_0x274196('0xe10')]({'title':_0x34d315[_0x274196('0x213f')](_0x274196('0x1ea3'))});})[_0x4a5169('0x253d')](function(_0xa84137){var _0x5bd22e=_0x4a5169;if(_0xa84137[_0x5bd22e('0x10fd')]&&_0xa84137[_0x5bd22e('0x10fd')][_0x5bd22e('0x4c6')]&&_0xa84137['data'][_0x5bd22e('0x4c6')]['length']){_0x3645d0['errors']=_0xa84137['data']['errors']||[{'message':_0xa84137[_0x5bd22e('0x684')](),'type':'SYSTEM:DELETEtrigger'}];for(var _0x1c9d32=0x0;_0x1c9d32<_0xa84137[_0x5bd22e('0x10fd')][_0x5bd22e('0x4c6')][_0x5bd22e('0x2587')];_0x1c9d32++){_0x3d3840['error']({'title':_0xa84137[_0x5bd22e('0x10fd')][_0x5bd22e('0x4c6')][_0x1c9d32][_0x5bd22e('0x6c8')],'msg':_0xa84137['data'][_0x5bd22e('0x4c6')][_0x1c9d32][_0x5bd22e('0x1402')]});}}else _0x3d3840[_0x5bd22e('0x187f')]({'title':_0xa84137[_0x5bd22e('0x2fa')]?_0x5bd22e('0x16c2')+_0xa84137['status']+_0x5bd22e('0x169e')+_0xa84137['statusText']:'SYSTEM:DELETEtrigger','msg':_0xa84137[_0x5bd22e('0x10fd')]?JSON[_0x5bd22e('0xa48')](_0xa84137[_0x5bd22e('0x10fd')][_0x5bd22e('0x1402')]):_0xa84137[_0x5bd22e('0x1402')]||_0xa84137[_0x5bd22e('0x684')]()});});}function _0x3fb1ba(){var _0x5d6968=_0x1692c6,_0x285eab=angular[_0x5d6968('0x20a')](_0x3645d0['selectedTriggers']);return _0x3645d0[_0x5d6968('0x1fbf')]=[],_0x285eab;}function _0xc2b0be(_0x40812a){var _0x2ce5cb=_0x1692c6,_0x30b6ab=_0x5096c0[_0x2ce5cb('0x281e')]()[_0x2ce5cb('0x110a')](_0x34d315['instant'](_0x2ce5cb('0x22f3')))[_0x2ce5cb('0x15af')](_0x34d315[_0x2ce5cb('0x213f')](_0x2ce5cb('0x13d'),{'total':_0x3645d0[_0x2ce5cb('0x1fbf')][_0x2ce5cb('0x2587')]}))['ariaLabel'](_0x2ce5cb('0x1abc'))[_0x2ce5cb('0x116d')](_0x40812a)['ok']('OK')[_0x2ce5cb('0x2030')](_0x34d315[_0x2ce5cb('0x213f')](_0x2ce5cb('0x1dd8')));_0x5096c0['show'](_0x30b6ab)[_0x2ce5cb('0xaa5')](function(){var _0x52f12d=_0x2ce5cb;_0x3645d0[_0x52f12d('0x1fbf')][_0x52f12d('0x15b5')](function(_0x3ab344){_0x25819e(_0x3ab344);}),_0x3645d0['selectedTriggers']=[],_0x3d3840[_0x52f12d('0xe10')]({'title':_0x34d315[_0x52f12d('0x213f')](_0x52f12d('0xf0f'))});});}function _0x262c1a(){var _0x8c80cd=_0x1692c6;_0x3645d0[_0x8c80cd('0x1fbf')]=[];}function _0x235545(){var _0x20734e=_0x1692c6;_0x3645d0['selectedTriggers']=_0x3645d0[_0x20734e('0x44')][_0x20734e('0x580')];}var _0x176dba=!![],_0x1458b3=0x1;_0x385e52[_0x1692c6('0x1ccf')](_0x1692c6('0x1788'),function(_0x3b9e48,_0xcc0aab){var _0x212b1f=_0x1692c6;_0x176dba?_0x3be965(function(){_0x176dba=![];}):(!_0xcc0aab&&(_0x1458b3=_0x3645d0[_0x212b1f('0x582')][_0x212b1f('0x41')]),_0x3b9e48!==_0xcc0aab&&(_0x3645d0[_0x212b1f('0x582')][_0x212b1f('0x41')]=0x1),!_0x3b9e48&&(_0x3645d0['query'][_0x212b1f('0x41')]=_0x1458b3),_0xc9fbdc());});}const _0x50453c=_0x88e9f0;_0x14c279[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x14c279(_0x2a1ae9){var _0x364dfc=_0x1a8446;_0x2a1ae9[_0x364dfc('0xb46')](_0x364dfc('0x8a0'),{'url':_0x364dfc('0x2221'),'views':{'content@app':{'templateUrl':_0x27fd73,'controller':_0x364dfc('0x5e2')}},'resolve':{'triggers':[_0x364dfc('0x1d16'),_0x364dfc('0x1dfd'),function _0x17eee5(_0x51d1ab,_0x963168){var _0x40b3a6=_0x364dfc;return _0x963168[_0x40b3a6('0x26e8')](_0x40b3a6('0x178b'))?_0x51d1ab['resolve'](_0x40b3a6('0x180d'),{'fields':'createdAt,updatedAt,id,name,channel,status,description','sort':_0x40b3a6('0xd82'),'limit':0xa,'offset':0x0}):_0x51d1ab[_0x40b3a6('0x149f')](_0x40b3a6('0x49a'),{'id':_0x963168[_0x40b3a6('0xacc')]()[_0x40b3a6('0x2168')],'section':_0x40b3a6('0x7b8'),'fields':_0x40b3a6('0x1569'),'sort':_0x40b3a6('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x364dfc('0x1d16'),_0x364dfc('0x1dfd'),function _0x5b8ca1(_0x419859,_0xf3fd14){var _0x52d6a6=_0x364dfc;return _0xf3fd14[_0x52d6a6('0x26e8')](_0x52d6a6('0x178b'))?null:_0x419859[_0x52d6a6('0x149f')](_0x52d6a6('0x567'),{'fields':_0x52d6a6('0x1bb0'),'id':_0xf3fd14[_0x52d6a6('0xacc')]()[_0x52d6a6('0x2168')]});}],'userProfileSection':[_0x364dfc('0x1d16'),_0x364dfc('0x1dfd'),function _0x1e9827(_0x1e3153,_0x239f82){var _0xbc55a4=_0x364dfc;return _0x239f82[_0xbc55a4('0x26e8')](_0xbc55a4('0x178b'))?null:_0x1e3153[_0xbc55a4('0x149f')]('userProfileSection@get',{'fields':_0xbc55a4('0xe6a'),'userProfileId':_0x239f82['getCurrentUser']()[_0xbc55a4('0x2168')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x364dfc('0x111e')})[_0x364dfc('0xb46')]('app.tools.triggers.edit',{'url':'/:id?tab','params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x636b8,'controller':_0x364dfc('0xb8d')}},'resolve':{'trigger':[_0x364dfc('0x1d16'),_0x364dfc('0x703'),function _0x26dc9f(_0x616c9f,_0x2f9c8c){var _0x1eee70=_0x364dfc;return _0x616c9f[_0x1eee70('0x149f')](_0x1eee70('0x180d'),{'fields':_0x1eee70('0x1569'),'id':_0x2f9c8c['id']});}],'userProfileSection':[_0x364dfc('0x1d16'),_0x364dfc('0x1dfd'),function _0x43ef63(_0x5648b5,_0x3f4c42){var _0x397d20=_0x364dfc;return _0x5648b5[_0x397d20('0x149f')](_0x397d20('0x89e'),{'fields':_0x397d20('0xe6a'),'userProfileId':_0x3f4c42[_0x397d20('0xacc')]()[_0x397d20('0x2168')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x364dfc('0x111e')});}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x8a0'),[])[_0x1a8446('0x1b14')](_0x14c279)[_0x1a8446('0x780')](_0x1a8446('0x18c1'),_0x4df97f)['controller']('TriggerActionsController',_0x10b75c)[_0x1a8446('0x780')]('CreateOrEditActionDialogController',_0x43489f)['controller'](_0x1a8446('0x12bd'),_0x3b4824)[_0x1a8446('0x780')](_0x1a8446('0x35e'),_0x23f59e)[_0x1a8446('0x780')](_0x1a8446('0x1c02'),_0x3dcb3d)[_0x1a8446('0x780')](_0x1a8446('0x233a'),_0x4b99ac)[_0x1a8446('0x780')]('TriggerController',_0x31e8ce)[_0x1a8446('0x780')](_0x1a8446('0x1b1a'),_0x50453c);const _0x499de4=_0x4fb511['p']+_0x1a8446('0x1090'),_0x531967=_0x4fb511['p']+_0x1a8446('0xd63'),_0x59bc42=_0x4fb511['p']+_0x1a8446('0xfaf'),_0x1aca63=_0x4fb511['p']+_0x1a8446('0x1852'),_0x1b78eb=_0x4fb511['p']+_0x1a8446('0x10fc'),_0x462e0b=_0x4fb511['p']+_0x1a8446('0x25e7'),_0xf64648=_0x4fb511['p']+_0x1a8446('0x1751'),_0x4acde6=_0x4fb511['p']+_0x1a8446('0x1942'),_0x22b47c=_0x4fb511['p']+'src/js/modules/main/apps/tools/views/tags/tags.html/tags-[chunkhash].html',_0x56900b=_0x4fb511['p']+'src/js/modules/main/apps/tools/views/templates/templates.html/templates-[chunkhash].html',_0x117f48=_0x4fb511['p']+_0x1a8446('0x2309'),_0x23e891=_0x4fb511['p']+_0x1a8446('0xab4'),_0x1eb6ee=_0x4fb511['p']+'src/js/modules/main/apps/tools/views/variables/variables.html/variables-[chunkhash].html',_0x47886e=_0x4fb511['p']+_0x1a8446('0x957');_0x496f72[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window','$state',_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),'$translate','cannedAnswers',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f')];function _0x496f72(_0x42c6cf,_0x5925e6,_0x4ed16f,_0x29f13d,_0x475ece,_0x3698e7,_0x3ab312,_0x2c9e4f,_0x38c02c,_0x3d1c4e,_0x13bdf3,_0x2bc384,_0x20a411,_0x1718fb,_0xcda5c,_0x403937,_0x29bd6b){var _0x1888c7=_0x1a8446,_0x28ab18=this;_0x28ab18[_0x1888c7('0x1202')]=_0x403937,_0x28ab18[_0x1888c7('0x143f')]=_0x29bd6b,_0x28ab18[_0x1888c7('0x7fc')]=_0xcda5c[_0x1888c7('0xacc')](),_0x28ab18[_0x1888c7('0x346')]=_0x38c02c||{'count':0x0,'rows':[]},_0x28ab18[_0x1888c7('0x1e97')]=_0x3d1c4e,_0x28ab18[_0x1888c7('0x1a50')]=_0x13bdf3&&_0x13bdf3[_0x1888c7('0xd15')]==0x1?_0x13bdf3['rows'][0x0]:null,_0x28ab18[_0x1888c7('0xada')]=_0xcda5c[_0x1888c7('0xffd')](_0x28ab18[_0x1888c7('0x1a50')]?_0x28ab18['userProfileSection'][_0x1888c7('0xada')]:null),_0x28ab18[_0x1888c7('0x12b6')]=_0x1888c7('0x346'),_0x28ab18[_0x1888c7('0x164')]='',_0x28ab18[_0x1888c7('0x8cc')]=null,_0x28ab18[_0x1888c7('0x2427')]=[],_0x28ab18['query']={'fields':'createdAt,updatedAt,id,key,value,description','sort':_0x1888c7('0xd82'),'MailAccountId':'null','FaxAccountId':_0x1888c7('0x1ed9'),'SmsAccountId':_0x1888c7('0x1ed9'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x1888c7('0x1ed9'),'limit':0xa,'page':0x1},_0x28ab18[_0x1888c7('0x1960')]=_0x464f1c,_0x28ab18[_0x1888c7('0x271')]=_0x4873be,_0x28ab18[_0x1888c7('0xe10')]=_0x4f7876,_0x28ab18[_0x1888c7('0x1d0b')]=_0x5f119b,_0x28ab18[_0x1888c7('0x18b7')]=_0x32dd8c,_0x28ab18[_0x1888c7('0x1bd1')]=_0x929d38,_0x28ab18[_0x1888c7('0x56e')]=_0x10b279,_0x28ab18[_0x1888c7('0x1a4c')]=_0x10c5e8,_0x28ab18['deselectCannedAnswers']=_0x156f9c,_0x28ab18[_0x1888c7('0x1140')]=_0xf5c771;function _0x464f1c(_0x34b560,_0x5d1db0){var _0x15df4c=_0x1888c7;_0x475ece[_0x15df4c('0x1e6d')]({'controller':'CreateOrEditCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x47886e,'parent':angular[_0x15df4c('0x1aa8')](_0x3698e7[_0x15df4c('0x54c')]),'targetEvent':_0x5d1db0,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x34b560,'cannedAnswers':_0x28ab18[_0x15df4c('0x346')]['rows'],'license':_0x28ab18[_0x15df4c('0x1202')],'setting':null,'crudPermissions':_0x28ab18[_0x15df4c('0xada')]}});}function _0x4873be(_0x2e33b1,_0x1c3fba){var _0x70039c=_0x1888c7,_0x4005de=_0x475ece[_0x70039c('0x281e')]()[_0x70039c('0x110a')](_0x70039c('0x88d')+_0x51538b()['startCase'](_0x70039c('0x1a53'))+'?')[_0x70039c('0x102e')](_0x70039c('0x389')+(_0x2e33b1[_0x70039c('0x25d6')]||_0x70039c('0x1a53'))+''+_0x70039c('0x210d'))[_0x70039c('0x5b5')](_0x70039c('0x1879'))[_0x70039c('0x116d')](_0x1c3fba)['ok']('OK')['cancel'](_0x70039c('0x2410'));_0x475ece[_0x70039c('0x1e6d')](_0x4005de)[_0x70039c('0xaa5')](function(){_0x929d38(_0x2e33b1);},function(){var _0x19b06c=_0x70039c;console[_0x19b06c('0x18d5')](_0x19b06c('0x2410'));});}var _0xc46b45=!![],_0x176cb3=0x1;_0x42c6cf[_0x1888c7('0x1ccf')](_0x1888c7('0x1788'),function(_0x4f1177,_0x55fd6a){var _0x1af592=_0x1888c7;_0xc46b45?_0x3ab312(function(){_0xc46b45=![];}):(!_0x55fd6a&&(_0x176cb3=_0x28ab18[_0x1af592('0x582')]['page']),_0x4f1177!==_0x55fd6a&&(_0x28ab18[_0x1af592('0x582')][_0x1af592('0x41')]=0x1),!_0x4f1177&&(_0x28ab18[_0x1af592('0x582')][_0x1af592('0x41')]=_0x176cb3),_0x28ab18['getCannedAnswers']());});function _0x4f7876(_0x440da2){var _0x25cb31=_0x1888c7;_0x28ab18[_0x25cb31('0x346')]=_0x440da2||{'count':0x0,'rows':[]};}function _0x5f119b(){var _0x53763c=_0x1888c7;_0x28ab18[_0x53763c('0x582')][_0x53763c('0x8b1')]=(_0x28ab18[_0x53763c('0x582')][_0x53763c('0x41')]-0x1)*_0x28ab18['query']['limit'],_0xcda5c[_0x53763c('0x26e8')]('admin')?_0x28ab18['promise']=_0x2bc384[_0x53763c('0x1a53')][_0x53763c('0x2122')](_0x28ab18[_0x53763c('0x582')],_0x4f7876)[_0x53763c('0x1dc2')]:(_0x28ab18[_0x53763c('0x582')]['id']=_0x28ab18[_0x53763c('0x1e97')]['id'],_0x28ab18['query'][_0x53763c('0x224d')]='CannedAnswers',_0x28ab18[_0x53763c('0x159a')]=_0x2bc384[_0x53763c('0x1e97')][_0x53763c('0x1cf1')](_0x28ab18[_0x53763c('0x582')],_0x4f7876)['$promise']);}function _0x32dd8c(_0x24553e,_0x3034ff){var _0x53576f=_0x1888c7;_0x475ece[_0x53576f('0x1e6d')]({'controller':_0x53576f('0x90c'),'controllerAs':'vm','templateUrl':_0x47886e,'parent':angular[_0x53576f('0x1aa8')](_0x3698e7[_0x53576f('0x54c')]),'targetEvent':_0x24553e,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x3034ff,'cannedAnswers':_0x28ab18[_0x53576f('0x346')][_0x53576f('0x580')],'license':_0x28ab18[_0x53576f('0x1202')],'setting':_0x28ab18['setting'],'crudPermissions':_0x28ab18['crudPermissions']}});}function _0x929d38(_0x445fb7){var _0x41b281=_0x1888c7;_0x2bc384[_0x41b281('0x1a53')][_0x41b281('0x926')]({'id':_0x445fb7['id']})['$promise'][_0x41b281('0xaa5')](function(){var _0x303350=_0x41b281;_0x51538b()[_0x303350('0xf6d')](_0x28ab18[_0x303350('0x346')]['rows'],{'id':_0x445fb7['id']}),_0x28ab18[_0x303350('0x346')]['count']-=0x1,!_0x28ab18[_0x303350('0x346')]['rows'][_0x303350('0x2587')]&&_0x28ab18[_0x303350('0x1d0b')](),_0x1718fb[_0x303350('0xe10')]({'title':_0x51538b()[_0x303350('0x196a')](_0x303350('0x10ce'))+_0x303350('0x8bb'),'msg':_0x445fb7[_0x303350('0x25d6')]?_0x445fb7[_0x303350('0x25d6')]+_0x303350('0xcd9'):''});})['catch'](function(_0x77e08b){var _0x43cd33=_0x41b281;if(_0x77e08b[_0x43cd33('0x10fd')]&&_0x77e08b[_0x43cd33('0x10fd')][_0x43cd33('0x4c6')]&&_0x77e08b[_0x43cd33('0x10fd')][_0x43cd33('0x4c6')][_0x43cd33('0x2587')]){_0x28ab18['errors']=_0x77e08b[_0x43cd33('0x10fd')][_0x43cd33('0x4c6')]||[{'message':_0x77e08b[_0x43cd33('0x684')](),'type':'SYSTEM:DELETEcannedAnswer'}];for(var _0x2759d1=0x0;_0x2759d1<_0x77e08b[_0x43cd33('0x10fd')][_0x43cd33('0x4c6')][_0x43cd33('0x2587')];_0x2759d1++){_0x1718fb[_0x43cd33('0x187f')]({'title':_0x77e08b[_0x43cd33('0x10fd')]['errors'][_0x2759d1][_0x43cd33('0x6c8')],'msg':_0x77e08b[_0x43cd33('0x10fd')][_0x43cd33('0x4c6')][_0x2759d1]['message']});}}else _0x1718fb[_0x43cd33('0x187f')]({'title':_0x77e08b[_0x43cd33('0x2fa')]?'API:'+_0x77e08b[_0x43cd33('0x2fa')]+_0x43cd33('0x169e')+_0x77e08b[_0x43cd33('0x24df')]:_0x43cd33('0x2120'),'msg':_0x77e08b[_0x43cd33('0x10fd')]?JSON[_0x43cd33('0xa48')](_0x77e08b[_0x43cd33('0x10fd')][_0x43cd33('0x1402')]):_0x77e08b[_0x43cd33('0x1402')]||_0x77e08b['toString']()});});}function _0x10b279(){var _0x255668=_0x1888c7,_0x1393cb=angular['copy'](_0x28ab18[_0x255668('0x2427')]);return _0x28ab18['selectedCannedAnswers']=[],_0x1393cb;}function _0x10c5e8(_0x158453){var _0x2b8198=_0x1888c7,_0x3915b4=_0x475ece[_0x2b8198('0x281e')]()[_0x2b8198('0x110a')](_0x2b8198('0x2160'))[_0x2b8198('0x102e')](_0x2b8198('0x389')+_0x28ab18[_0x2b8198('0x2427')]['length']+_0x2b8198('0x1443')+_0x2b8198('0x210d'))[_0x2b8198('0x5b5')](_0x2b8198('0xd5d'))[_0x2b8198('0x116d')](_0x158453)['ok']('OK')[_0x2b8198('0x2030')](_0x2b8198('0x2410'));_0x475ece[_0x2b8198('0x1e6d')](_0x3915b4)['then'](function(){var _0x2307c1=_0x2b8198;_0x28ab18[_0x2307c1('0x2427')]['forEach'](function(_0x5386f2){_0x929d38(_0x5386f2);}),_0x28ab18[_0x2307c1('0x2427')]=[];});}function _0x156f9c(){_0x28ab18['selectedCannedAnswers']=[];}function _0xf5c771(){var _0x554310=_0x1888c7;_0x28ab18[_0x554310('0x2427')]=_0x28ab18[_0x554310('0x346')]['rows'];}}const _0x5f4d38=_0x496f72;_0x8949cf[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'cannedAnswers',_0x1a8446('0x1a53'),_0x1a8446('0x157'),'Auth',_0x1a8446('0x1202'),'setting','crudPermissions'];function _0x8949cf(_0x27044e,_0x2e4d7c,_0x163ada,_0x4a987a,_0x1401d8,_0x1c928f,_0x31feeb,_0x399390,_0x2260bc,_0x5a693c,_0x2032cc,_0x398d73,_0x3e539b,_0x471736){var _0x21f531=_0x1a8446,_0xde88f4=this;_0xde88f4['currentUser']=_0x2032cc[_0x21f531('0xacc')](),_0xde88f4[_0x21f531('0x4c6')]=[],_0xde88f4[_0x21f531('0x143f')]=_0x3e539b,_0xde88f4[_0x21f531('0x1202')]=_0x398d73,_0xde88f4[_0x21f531('0xada')]=_0x471736,_0xde88f4['hasModulePermissions']={},_0xde88f4[_0x21f531('0x1d53')]=_0xde88f4[_0x21f531('0x143f')]&&_0xde88f4[_0x21f531('0x143f')][_0x21f531('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xde88f4[_0x21f531('0x110a')]=_0x21f531('0x401'),_0xde88f4[_0x21f531('0x1a53')]=angular[_0x21f531('0x20a')](_0x2260bc),_0xde88f4['cannedAnswers']=_0x399390,_0xde88f4['newCannedAnswer']=![];!_0xde88f4[_0x21f531('0x1a53')]&&(_0xde88f4[_0x21f531('0x1a53')]={},_0xde88f4[_0x21f531('0x110a')]=_0x21f531('0x27bc'),_0xde88f4[_0x21f531('0xdaf')]=!![]);_0xde88f4[_0x21f531('0x423')]=_0x6341a0,_0xde88f4['saveCannedAnswer']=_0x7b0caa,_0xde88f4[_0x21f531('0x1bd1')]=_0x3264fa,_0xde88f4['getDateFromString']=_0x8110c1,_0xde88f4[_0x21f531('0x2023')]=_0x165d3d;function _0x6341a0(){var _0x393918=_0x21f531;_0xde88f4[_0x393918('0x4c6')]=[],_0x5a693c[_0x393918('0x1a53')][_0x393918('0x242b')](_0xde88f4[_0x393918('0x1a53')])['$promise']['then'](function(_0x415820){var _0x463348=_0x393918;_0xde88f4[_0x463348('0x346')][_0x463348('0x6ee')](_0x415820[_0x463348('0x256a')]()),_0x31feeb[_0x463348('0xe10')]({'title':'CannedAnswer\x20properly\x20created','msg':_0xde88f4[_0x463348('0x1a53')]['name']?_0xde88f4[_0x463348('0x1a53')][_0x463348('0x25d6')]+_0x463348('0xdca'):''}),_0x165d3d(_0x415820);})['catch'](function(_0x2a731d){var _0x3cef2c=_0x393918;if(_0x2a731d[_0x3cef2c('0x10fd')]&&_0x2a731d[_0x3cef2c('0x10fd')]['errors']&&_0x2a731d[_0x3cef2c('0x10fd')][_0x3cef2c('0x4c6')]['length']){_0xde88f4[_0x3cef2c('0x4c6')]=_0x2a731d[_0x3cef2c('0x10fd')][_0x3cef2c('0x4c6')]||[{'message':_0x2a731d[_0x3cef2c('0x684')](),'type':_0x3cef2c('0x262b')}];for(var _0x36a253=0x0;_0x36a253<_0x2a731d[_0x3cef2c('0x10fd')][_0x3cef2c('0x4c6')][_0x3cef2c('0x2587')];_0x36a253+=0x1){_0x31feeb[_0x3cef2c('0x187f')]({'title':_0x2a731d['data'][_0x3cef2c('0x4c6')][_0x36a253][_0x3cef2c('0x6c8')],'msg':_0x2a731d[_0x3cef2c('0x10fd')][_0x3cef2c('0x4c6')][_0x36a253][_0x3cef2c('0x1402')]});}}else _0x31feeb['error']({'title':_0x2a731d[_0x3cef2c('0x2fa')]?'API:'+_0x2a731d[_0x3cef2c('0x2fa')]+_0x3cef2c('0x169e')+_0x2a731d[_0x3cef2c('0x24df')]:_0x3cef2c('0x262b'),'msg':_0x2a731d['data']?JSON['stringify'](_0x2a731d[_0x3cef2c('0x10fd')][_0x3cef2c('0x1402')]):_0x2a731d[_0x3cef2c('0x684')]()});});}function _0x7b0caa(){var _0x3dcced=_0x21f531;_0xde88f4[_0x3dcced('0x4c6')]=[],_0x5a693c['cannedAnswer']['update']({'id':_0xde88f4[_0x3dcced('0x1a53')]['id']},_0xde88f4[_0x3dcced('0x1a53')])[_0x3dcced('0x1dc2')][_0x3dcced('0xaa5')](function(_0x23daa9){var _0x5eb13e=_0x3dcced,_0x106e7c=_0x51538b()['find'](_0xde88f4[_0x5eb13e('0x346')],{'id':_0x23daa9['id']});_0x106e7c&&_0x51538b()[_0x5eb13e('0x283c')](_0x106e7c,_0x51538b()[_0x5eb13e('0x104e')](_0x23daa9['toJSON'](),_0x51538b()[_0x5eb13e('0x9f2')](_0x106e7c))),_0x31feeb[_0x5eb13e('0xe10')]({'title':_0x5eb13e('0x226a'),'msg':_0xde88f4[_0x5eb13e('0x1a53')][_0x5eb13e('0x25d6')]?_0xde88f4[_0x5eb13e('0x1a53')]['name']+'\x20has\x20been\x20saved!':''}),_0x165d3d(_0x23daa9);})[_0x3dcced('0x253d')](function(_0x1fdd7a){var _0x18e55a=_0x3dcced;if(_0x1fdd7a[_0x18e55a('0x10fd')]&&_0x1fdd7a[_0x18e55a('0x10fd')][_0x18e55a('0x4c6')]&&_0x1fdd7a[_0x18e55a('0x10fd')][_0x18e55a('0x4c6')][_0x18e55a('0x2587')]){_0xde88f4[_0x18e55a('0x4c6')]=_0x1fdd7a[_0x18e55a('0x10fd')][_0x18e55a('0x4c6')]||[{'message':_0x1fdd7a['toString'](),'type':_0x18e55a('0x583')}];for(var _0x271ea2=0x0;_0x271ea2<_0x1fdd7a['data'][_0x18e55a('0x4c6')][_0x18e55a('0x2587')];_0x271ea2++){_0x31feeb[_0x18e55a('0x187f')]({'title':_0x1fdd7a[_0x18e55a('0x10fd')][_0x18e55a('0x4c6')][_0x271ea2][_0x18e55a('0x6c8')],'msg':_0x1fdd7a['data'][_0x18e55a('0x4c6')][_0x271ea2][_0x18e55a('0x1402')]});}}else _0x31feeb[_0x18e55a('0x187f')]({'title':_0x1fdd7a[_0x18e55a('0x2fa')]?'API:'+_0x1fdd7a['status']+_0x18e55a('0x169e')+_0x1fdd7a[_0x18e55a('0x24df')]:_0x18e55a('0x583'),'msg':_0x1fdd7a[_0x18e55a('0x10fd')]?JSON[_0x18e55a('0xa48')](_0x1fdd7a[_0x18e55a('0x10fd')][_0x18e55a('0x1402')]):_0x1fdd7a[_0x18e55a('0x684')]()});});}function _0x3264fa(_0x12c736){var _0x5a3b28=_0x21f531;_0xde88f4[_0x5a3b28('0x4c6')]=[];var _0x111392=_0x4a987a[_0x5a3b28('0x281e')]()['title'](_0x5a3b28('0x12a3'))['content'](_0x5a3b28('0x9e3'))[_0x5a3b28('0x5b5')]('Delete\x20CannedAnswer')['ok'](_0x5a3b28('0x1e76'))['cancel']('Cancel')[_0x5a3b28('0x116d')](_0x12c736);_0x4a987a[_0x5a3b28('0x1e6d')](_0x111392)[_0x5a3b28('0xaa5')](function(){var _0x334336=_0x5a3b28;_0x5a693c[_0x334336('0x1a53')][_0x334336('0x926')]({'id':_0xde88f4[_0x334336('0x1a53')]['id']})[_0x334336('0x1dc2')][_0x334336('0xaa5')](function(){var _0x4403b3=_0x334336;_0x51538b()[_0x4403b3('0xf6d')](_0xde88f4[_0x4403b3('0x346')],{'id':_0xde88f4[_0x4403b3('0x1a53')]['id']}),_0x31feeb[_0x4403b3('0xe10')]({'title':'CannedAnswer\x20properly\x20deleted!','msg':(_0xde88f4[_0x4403b3('0x1a53')]['name']||'cannedAnswer')+_0x4403b3('0xcd9')}),_0x165d3d(_0xde88f4[_0x4403b3('0x1a53')]);})[_0x334336('0x253d')](function(_0x398312){var _0x215867=_0x334336;if(_0x398312[_0x215867('0x10fd')]&&_0x398312[_0x215867('0x10fd')][_0x215867('0x4c6')]&&_0x398312['data'][_0x215867('0x4c6')][_0x215867('0x2587')]){_0xde88f4['errors']=_0x398312[_0x215867('0x10fd')][_0x215867('0x4c6')]||[{'message':_0x398312[_0x215867('0x684')](),'type':_0x215867('0xa2a')}];for(var _0x421025=0x0;_0x421025<_0x398312[_0x215867('0x10fd')][_0x215867('0x4c6')][_0x215867('0x2587')];_0x421025++){_0x31feeb[_0x215867('0x187f')]({'title':_0x398312[_0x215867('0x10fd')]['errors'][_0x421025][_0x215867('0x6c8')],'msg':_0x398312[_0x215867('0x10fd')][_0x215867('0x4c6')][_0x421025][_0x215867('0x1402')]});}}else _0x31feeb[_0x215867('0x187f')]({'title':_0x398312[_0x215867('0x2fa')]?'API:'+_0x398312[_0x215867('0x2fa')]+_0x215867('0x169e')+_0x398312[_0x215867('0x24df')]:_0x215867('0xa2a'),'msg':_0x398312['data']?JSON[_0x215867('0xa48')](_0x398312[_0x215867('0x10fd')][_0x215867('0x1402')]):_0x398312[_0x215867('0x1402')]||_0x398312[_0x215867('0x684')]()});});},function(){});}function _0x8110c1(_0x202886){return _0x202886===null?undefined:new Date(_0x202886);}function _0x165d3d(_0x3e7d78){var _0x7d5f4f=_0x21f531;_0x4a987a[_0x7d5f4f('0x1120')](_0x3e7d78);}}const _0x5db9e4=_0x8949cf;_0x1a1229['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'customDashboards',_0x1a8446('0x2635'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x1a1229(_0x6933c2,_0xff72f6,_0x38ec75,_0x43145c,_0x5df7c9,_0x37750e,_0x2ea6d2,_0x2c3d09,_0x5b18bf,_0x9ba6cb,_0x4da97c,_0x14a77f,_0x3788bc,_0x31ae41){var _0x19c0fc=_0x1a8446,_0x2a7997=this;_0x2a7997[_0x19c0fc('0x7fc')]=_0x4da97c[_0x19c0fc('0xacc')](),_0x2a7997[_0x19c0fc('0x4c6')]=[],_0x2a7997[_0x19c0fc('0x143f')]=_0x3788bc,_0x2a7997[_0x19c0fc('0x1202')]=_0x14a77f,_0x2a7997[_0x19c0fc('0xada')]=_0x31ae41,_0x2a7997[_0x19c0fc('0x9f0')]={},_0x2a7997[_0x19c0fc('0x1d53')]=_0x2a7997[_0x19c0fc('0x143f')]&&_0x2a7997['setting'][_0x19c0fc('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a7997[_0x19c0fc('0x110a')]=_0x19c0fc('0x1587'),_0x2a7997['customDashboard']=angular['copy'](_0x5b18bf),_0x2a7997[_0x19c0fc('0x1f8b')]=_0x2c3d09,_0x2a7997[_0x19c0fc('0x1adb')]=![];!_0x2a7997[_0x19c0fc('0x2635')]&&(_0x2a7997['customDashboard']={},_0x2a7997[_0x19c0fc('0x110a')]=_0x19c0fc('0x1116'),_0x2a7997[_0x19c0fc('0x1adb')]=!![]);_0x2a7997['addNewCustomDashboard']=_0x42790a,_0x2a7997['saveCustomDashboard']=_0x43d3ea,_0x2a7997[_0x19c0fc('0x40a')]=_0x47aed0,_0x2a7997[_0x19c0fc('0xc09')]=_0xbe5594,_0x2a7997[_0x19c0fc('0x2023')]=_0x2162ed;function _0x42790a(){var _0x33e497=_0x19c0fc;_0x2a7997[_0x33e497('0x4c6')]=[],_0x9ba6cb[_0x33e497('0x55')][_0x33e497('0x242b')](_0x2a7997[_0x33e497('0x2635')])[_0x33e497('0x1dc2')]['then'](function(_0x38923d){var _0x255daa=_0x33e497;_0x2a7997[_0x255daa('0x1f8b')][_0x255daa('0x6ee')](_0x38923d[_0x255daa('0x256a')]()),_0x2ea6d2[_0x255daa('0xe10')]({'title':_0x255daa('0x1c85'),'msg':_0x2a7997[_0x255daa('0x2635')][_0x255daa('0x25d6')]?_0x2a7997[_0x255daa('0x2635')][_0x255daa('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x2162ed(_0x38923d);})['catch'](function(_0x328f1f){var _0x1ec967=_0x33e497;if(_0x328f1f['data']&&_0x328f1f[_0x1ec967('0x10fd')]['errors']&&_0x328f1f[_0x1ec967('0x10fd')][_0x1ec967('0x4c6')]['length']){_0x2a7997[_0x1ec967('0x4c6')]=_0x328f1f[_0x1ec967('0x10fd')][_0x1ec967('0x4c6')]||[{'message':_0x328f1f[_0x1ec967('0x684')](),'type':_0x1ec967('0x1589')}];for(var _0x437171=0x0;_0x437171<_0x328f1f['data']['errors'][_0x1ec967('0x2587')];_0x437171+=0x1){_0x2ea6d2[_0x1ec967('0x187f')]({'title':_0x328f1f[_0x1ec967('0x10fd')][_0x1ec967('0x4c6')][_0x437171][_0x1ec967('0x6c8')],'msg':_0x328f1f['data'][_0x1ec967('0x4c6')][_0x437171][_0x1ec967('0x1402')]});}}else _0x2ea6d2[_0x1ec967('0x187f')]({'title':_0x328f1f[_0x1ec967('0x2fa')]?'API:'+_0x328f1f[_0x1ec967('0x2fa')]+_0x1ec967('0x169e')+_0x328f1f[_0x1ec967('0x24df')]:_0x1ec967('0x1589'),'msg':_0x328f1f['data']?JSON[_0x1ec967('0xa48')](_0x328f1f[_0x1ec967('0x10fd')]['message']):_0x328f1f[_0x1ec967('0x684')]()});});}function _0x43d3ea(){var _0x3387d5=_0x19c0fc;_0x2a7997[_0x3387d5('0x4c6')]=[],_0x9ba6cb['dashboard']['update']({'id':_0x2a7997[_0x3387d5('0x2635')]['id']},_0x2a7997['customDashboard'])[_0x3387d5('0x1dc2')]['then'](function(_0x21d4b2){var _0x4b14b0=_0x3387d5,_0x19207a=_0x51538b()[_0x4b14b0('0xe9e')](_0x2a7997['customDashboards'],{'id':_0x21d4b2['id']});_0x19207a&&_0x51538b()['merge'](_0x19207a,_0x51538b()[_0x4b14b0('0x104e')](_0x21d4b2[_0x4b14b0('0x256a')](),_0x51538b()[_0x4b14b0('0x9f2')](_0x19207a))),_0x2ea6d2[_0x4b14b0('0xe10')]({'title':_0x4b14b0('0x253e'),'msg':_0x2a7997['customDashboard'][_0x4b14b0('0x25d6')]?_0x2a7997[_0x4b14b0('0x2635')]['name']+_0x4b14b0('0x20bf'):''}),_0x2162ed(_0x21d4b2);})[_0x3387d5('0x253d')](function(_0x3023d2){var _0x4714f2=_0x3387d5;if(_0x3023d2[_0x4714f2('0x10fd')]&&_0x3023d2[_0x4714f2('0x10fd')][_0x4714f2('0x4c6')]&&_0x3023d2['data'][_0x4714f2('0x4c6')]['length']){_0x2a7997[_0x4714f2('0x4c6')]=_0x3023d2[_0x4714f2('0x10fd')][_0x4714f2('0x4c6')]||[{'message':_0x3023d2[_0x4714f2('0x684')](),'type':_0x4714f2('0x1d7f')}];for(var _0x19e2fd=0x0;_0x19e2fd<_0x3023d2['data'][_0x4714f2('0x4c6')]['length'];_0x19e2fd++){_0x2ea6d2[_0x4714f2('0x187f')]({'title':_0x3023d2[_0x4714f2('0x10fd')][_0x4714f2('0x4c6')][_0x19e2fd][_0x4714f2('0x6c8')],'msg':_0x3023d2['data'][_0x4714f2('0x4c6')][_0x19e2fd]['message']});}}else _0x2ea6d2['error']({'title':_0x3023d2['status']?_0x4714f2('0x16c2')+_0x3023d2[_0x4714f2('0x2fa')]+_0x4714f2('0x169e')+_0x3023d2[_0x4714f2('0x24df')]:'api.dashboard.update','msg':_0x3023d2[_0x4714f2('0x10fd')]?JSON[_0x4714f2('0xa48')](_0x3023d2[_0x4714f2('0x10fd')][_0x4714f2('0x1402')]):_0x3023d2[_0x4714f2('0x684')]()});});}function _0x47aed0(_0x27f378){var _0x40f083=_0x19c0fc;_0x2a7997[_0x40f083('0x4c6')]=[];var _0x792465=_0x43145c[_0x40f083('0x281e')]()[_0x40f083('0x110a')](_0x40f083('0x12a3'))[_0x40f083('0x15af')](_0x40f083('0x1aed'))[_0x40f083('0x5b5')](_0x40f083('0x17f4'))['ok']('Delete')[_0x40f083('0x2030')](_0x40f083('0x9c6'))[_0x40f083('0x116d')](_0x27f378);_0x43145c[_0x40f083('0x1e6d')](_0x792465)[_0x40f083('0xaa5')](function(){var _0x4d7a55=_0x40f083;_0x9ba6cb[_0x4d7a55('0x55')][_0x4d7a55('0x926')]({'id':_0x2a7997[_0x4d7a55('0x2635')]['id']})[_0x4d7a55('0x1dc2')][_0x4d7a55('0xaa5')](function(){var _0x472aa0=_0x4d7a55;_0x51538b()['remove'](_0x2a7997[_0x472aa0('0x1f8b')],{'id':_0x2a7997[_0x472aa0('0x2635')]['id']}),_0x2ea6d2[_0x472aa0('0xe10')]({'title':_0x472aa0('0x1495'),'msg':(_0x2a7997[_0x472aa0('0x2635')][_0x472aa0('0x25d6')]||_0x472aa0('0x2635'))+_0x472aa0('0xcd9')}),_0x2162ed(_0x2a7997['customDashboard']);})[_0x4d7a55('0x253d')](function(_0x358ce3){var _0x9476fe=_0x4d7a55;if(_0x358ce3[_0x9476fe('0x10fd')]&&_0x358ce3[_0x9476fe('0x10fd')][_0x9476fe('0x4c6')]&&_0x358ce3[_0x9476fe('0x10fd')][_0x9476fe('0x4c6')]['length']){_0x2a7997[_0x9476fe('0x4c6')]=_0x358ce3['data'][_0x9476fe('0x4c6')]||[{'message':_0x358ce3['toString'](),'type':_0x9476fe('0x14f4')}];for(var _0x55c2e5=0x0;_0x55c2e5<_0x358ce3[_0x9476fe('0x10fd')][_0x9476fe('0x4c6')][_0x9476fe('0x2587')];_0x55c2e5++){_0x2ea6d2[_0x9476fe('0x187f')]({'title':_0x358ce3[_0x9476fe('0x10fd')][_0x9476fe('0x4c6')][_0x55c2e5][_0x9476fe('0x6c8')],'msg':_0x358ce3[_0x9476fe('0x10fd')]['errors'][_0x55c2e5][_0x9476fe('0x1402')]});}}else _0x2ea6d2[_0x9476fe('0x187f')]({'title':_0x358ce3[_0x9476fe('0x2fa')]?_0x9476fe('0x16c2')+_0x358ce3[_0x9476fe('0x2fa')]+_0x9476fe('0x169e')+_0x358ce3[_0x9476fe('0x24df')]:'api.dashboard.delete','msg':_0x358ce3[_0x9476fe('0x10fd')]?JSON[_0x9476fe('0xa48')](_0x358ce3[_0x9476fe('0x10fd')]['message']):_0x358ce3[_0x9476fe('0x1402')]||_0x358ce3[_0x9476fe('0x684')]()});});},function(){});}function _0xbe5594(_0x2e5d5f){return _0x2e5d5f===null?undefined:new Date(_0x2e5d5f);}function _0x2162ed(_0x32f8f3){var _0xa1e401=_0x19c0fc;_0x43145c[_0xa1e401('0x1120')](_0x32f8f3);}}const _0x296839=_0x1a1229,_0x56944f=_0x4fb511['p']+'src/js/modules/main/apps/tools/views/customDashboards/create/dialog.html/dialog-[chunkhash].html';_0x599c99[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x1f8b'),'userProfile',_0x1a8446('0x1a50'),'api','msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x599c99(_0x34a322,_0x16967d,_0x3bb07d,_0x4af934,_0x2f76ee,_0x338018,_0x2c3d1b,_0xfe2b44,_0xd6a177,_0x2db3bb,_0x28e7a4,_0x310af7,_0xa3493,_0x5dbb4f,_0x340d7b,_0x5720f5,_0x2e29f4){var _0x4458df=_0x1a8446,_0x35bfc5=this;_0x35bfc5[_0x4458df('0x1202')]=_0x5720f5,_0x35bfc5[_0x4458df('0x143f')]=_0x2e29f4,_0x35bfc5[_0x4458df('0x7fc')]=_0x340d7b[_0x4458df('0xacc')](),_0x35bfc5[_0x4458df('0x1f8b')]=_0xd6a177||{'count':0x0,'rows':[]},_0x35bfc5['userProfile']=_0x2db3bb,_0x35bfc5[_0x4458df('0x1a50')]=_0x28e7a4&&_0x28e7a4[_0x4458df('0xd15')]==0x1?_0x28e7a4[_0x4458df('0x580')][0x0]:null,_0x35bfc5['crudPermissions']=_0x340d7b[_0x4458df('0xffd')](_0x35bfc5[_0x4458df('0x1a50')]?_0x35bfc5[_0x4458df('0x1a50')][_0x4458df('0xada')]:null),_0x35bfc5[_0x4458df('0x12b6')]=_0x4458df('0x1f8b'),_0x35bfc5[_0x4458df('0x164')]='',_0x35bfc5[_0x4458df('0x8cc')]=null,_0x35bfc5[_0x4458df('0x17cb')]=[],_0x35bfc5['query']={'fields':_0x4458df('0x1798'),'sort':_0x4458df('0xd82'),'limit':0xa,'page':0x1},_0x35bfc5[_0x4458df('0x1927')]=_0x57058c,_0x35bfc5['gotodashboardgoto']=_0x4f1668,_0x35bfc5[_0x4458df('0x271')]=_0x244f0f,_0x35bfc5[_0x4458df('0xe10')]=_0x43f3e9,_0x35bfc5['getCustomDashboards']=_0x197f20,_0x35bfc5[_0x4458df('0xd8f')]=_0x23d9ae,_0x35bfc5[_0x4458df('0x40a')]=_0x1650fe,_0x35bfc5[_0x4458df('0x194c')]=_0xdccc9c,_0x35bfc5['deleteSelectedCustomDashboards']=_0x30dabb,_0x35bfc5[_0x4458df('0x15f5')]=_0x141928,_0x35bfc5[_0x4458df('0x1a4f')]=_0x3c6df6;function _0x57058c(_0x1d93fa){var _0x3a6e5d=_0x4458df;_0x3bb07d['go'](_0x3a6e5d('0x494'),{'id':_0x1d93fa['id'],'customDashboard':_0x1d93fa,'crudPermissions':_0x35bfc5[_0x3a6e5d('0xada')]});}function _0x4f1668(_0x1ef802){var _0x2b0692=_0x4458df;_0x3bb07d['go'](_0x2b0692('0x1775'),{'id':_0x1ef802['id']});}function _0x244f0f(_0x16f391,_0x7262b1){var _0x5b8e69=_0x4458df,_0x3110df=_0x2f76ee[_0x5b8e69('0x281e')]()[_0x5b8e69('0x110a')](_0x5b8e69('0x88d')+_0x51538b()[_0x5b8e69('0x196a')](_0x5b8e69('0x2635'))+'?')[_0x5b8e69('0x102e')](''+(_0x16f391[_0x5b8e69('0x25d6')]||'customDashboard')+_0x5b8e69('0x697')+_0x5b8e69('0x210d'))['ariaLabel'](_0x5b8e69('0x3d6'))[_0x5b8e69('0x116d')](_0x7262b1)['ok']('OK')['cancel'](_0x5b8e69('0x2410'));_0x2f76ee[_0x5b8e69('0x1e6d')](_0x3110df)[_0x5b8e69('0xaa5')](function(){_0x1650fe(_0x16f391);},function(){var _0xfec670=_0x5b8e69;console[_0xfec670('0x18d5')](_0xfec670('0x2410'));});}var _0x5d092c=!![],_0x38e376=0x1;_0x34a322[_0x4458df('0x1ccf')](_0x4458df('0x1788'),function(_0x2c200b,_0xbd41d5){var _0x3caa59=_0x4458df;_0x5d092c?_0x2c3d1b(function(){_0x5d092c=![];}):(!_0xbd41d5&&(_0x38e376=_0x35bfc5['query'][_0x3caa59('0x41')]),_0x2c200b!==_0xbd41d5&&(_0x35bfc5[_0x3caa59('0x582')][_0x3caa59('0x41')]=0x1),!_0x2c200b&&(_0x35bfc5['query'][_0x3caa59('0x41')]=_0x38e376),_0x35bfc5['getCustomDashboards']());});function _0x43f3e9(_0x22de15){var _0x32ad20=_0x4458df;_0x35bfc5[_0x32ad20('0x1f8b')]=_0x22de15||{'count':0x0,'rows':[]};}function _0x197f20(){var _0x5238cb=_0x4458df;_0x35bfc5[_0x5238cb('0x582')]['offset']=(_0x35bfc5[_0x5238cb('0x582')][_0x5238cb('0x41')]-0x1)*_0x35bfc5[_0x5238cb('0x582')][_0x5238cb('0xf4d')],_0x340d7b['hasRole'](_0x5238cb('0x178b'))?_0x35bfc5[_0x5238cb('0x159a')]=_0x310af7['dashboard'][_0x5238cb('0x2122')](_0x35bfc5[_0x5238cb('0x582')],_0x43f3e9)[_0x5238cb('0x1dc2')]:(_0x35bfc5[_0x5238cb('0x582')]['id']=_0x35bfc5[_0x5238cb('0x1e97')]['id'],_0x35bfc5['query']['section']=_0x5238cb('0x1148'),_0x35bfc5[_0x5238cb('0x159a')]=_0x310af7[_0x5238cb('0x1e97')]['getResources'](_0x35bfc5[_0x5238cb('0x582')],_0x43f3e9)[_0x5238cb('0x1dc2')]);}function _0x23d9ae(_0x1dc084,_0x56097d){var _0x68f719=_0x4458df;_0x2f76ee[_0x68f719('0x1e6d')]({'controller':_0x68f719('0xc6d'),'controllerAs':'vm','templateUrl':_0x56944f,'parent':angular[_0x68f719('0x1aa8')](_0x338018[_0x68f719('0x54c')]),'targetEvent':_0x1dc084,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x56097d,'customDashboards':_0x35bfc5[_0x68f719('0x1f8b')][_0x68f719('0x580')],'license':_0x35bfc5[_0x68f719('0x1202')],'setting':_0x35bfc5[_0x68f719('0x143f')],'crudPermissions':_0x35bfc5[_0x68f719('0xada')]}});}function _0x1650fe(_0x3a5bff){var _0x21ea0d=_0x4458df;_0x310af7[_0x21ea0d('0x55')][_0x21ea0d('0x926')]({'id':_0x3a5bff['id']})['$promise']['then'](function(){var _0x3da949=_0x21ea0d;_0x51538b()[_0x3da949('0xf6d')](_0x35bfc5[_0x3da949('0x1f8b')][_0x3da949('0x580')],{'id':_0x3a5bff['id']}),_0x35bfc5[_0x3da949('0x1f8b')][_0x3da949('0xd15')]-=0x1,!_0x35bfc5[_0x3da949('0x1f8b')][_0x3da949('0x580')][_0x3da949('0x2587')]&&_0x35bfc5['getCustomDashboards'](),_0x5dbb4f[_0x3da949('0xe10')]({'title':_0x51538b()[_0x3da949('0x196a')](_0x3da949('0x2864'))+'\x20deleted!','msg':_0x3a5bff[_0x3da949('0x25d6')]?_0x3a5bff[_0x3da949('0x25d6')]+_0x3da949('0xcd9'):''});})[_0x21ea0d('0x253d')](function(_0x17054d){var _0x30cfe0=_0x21ea0d;if(_0x17054d[_0x30cfe0('0x10fd')]&&_0x17054d['data'][_0x30cfe0('0x4c6')]&&_0x17054d[_0x30cfe0('0x10fd')]['errors'][_0x30cfe0('0x2587')]){_0x35bfc5[_0x30cfe0('0x4c6')]=_0x17054d['data'][_0x30cfe0('0x4c6')]||[{'message':_0x17054d[_0x30cfe0('0x684')](),'type':_0x30cfe0('0x1630')}];for(var _0x3a8627=0x0;_0x3a8627<_0x17054d[_0x30cfe0('0x10fd')][_0x30cfe0('0x4c6')][_0x30cfe0('0x2587')];_0x3a8627++){_0x5dbb4f[_0x30cfe0('0x187f')]({'title':_0x17054d[_0x30cfe0('0x10fd')]['errors'][_0x3a8627]['type'],'msg':_0x17054d[_0x30cfe0('0x10fd')][_0x30cfe0('0x4c6')][_0x3a8627][_0x30cfe0('0x1402')]});}}else _0x5dbb4f[_0x30cfe0('0x187f')]({'title':_0x17054d[_0x30cfe0('0x2fa')]?_0x30cfe0('0x16c2')+_0x17054d['status']+'\x20-\x20'+_0x17054d['statusText']:'SYSTEM:DELETEdashboard','msg':_0x17054d['data']?JSON[_0x30cfe0('0xa48')](_0x17054d['data'][_0x30cfe0('0x1402')]):_0x17054d[_0x30cfe0('0x1402')]||_0x17054d[_0x30cfe0('0x684')]()});});}function _0xdccc9c(){var _0x372593=_0x4458df,_0x123f00=angular[_0x372593('0x20a')](_0x35bfc5[_0x372593('0x17cb')]);return _0x35bfc5[_0x372593('0x17cb')]=[],_0x123f00;}function _0x30dabb(_0x137117){var _0x54e470=_0x4458df,_0x467178=_0x2f76ee[_0x54e470('0x281e')]()[_0x54e470('0x110a')](_0x54e470('0x2209'))[_0x54e470('0x102e')](_0x54e470('0x389')+_0x35bfc5[_0x54e470('0x17cb')][_0x54e470('0x2587')]+_0x54e470('0x1443')+_0x54e470('0x210d'))[_0x54e470('0x5b5')](_0x54e470('0x8cd'))[_0x54e470('0x116d')](_0x137117)['ok']('OK')[_0x54e470('0x2030')]('CANCEL');_0x2f76ee[_0x54e470('0x1e6d')](_0x467178)[_0x54e470('0xaa5')](function(){var _0x46096f=_0x54e470;_0x35bfc5[_0x46096f('0x17cb')]['forEach'](function(_0xb8be91){_0x1650fe(_0xb8be91);}),_0x35bfc5[_0x46096f('0x17cb')]=[];});}function _0x141928(){_0x35bfc5['selectedCustomDashboards']=[];}function _0x3c6df6(){var _0x3ae613=_0x4458df;_0x35bfc5['selectedCustomDashboards']=_0x35bfc5[_0x3ae613('0x1f8b')][_0x3ae613('0x580')];}}const _0xfa4a2=_0x599c99;_0x3cfb5b[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$state',_0x1a8446('0x2a4'),'api',_0x1a8446('0x2635'),_0x1a8446('0x1f8b'),_0x1a8446('0xcb3')];function _0x3cfb5b(_0x20a9ea,_0x322120,_0x53fa19,_0x1e6a2e,_0x5a9bdc,_0x51db32,_0x52df29){var _0x182023=_0x1a8446,_0x42e34d=this;_0x42e34d[_0x182023('0x1adb')]=!![],_0x42e34d[_0x182023('0x2635')]=angular[_0x182023('0x20a')](_0x5a9bdc),_0x42e34d[_0x182023('0x1f8b')]=_0x51db32,_0x42e34d[_0x182023('0x110a')]=_0x52df29[_0x182023('0x213f')](_0x182023('0x6b0'));_0x5a9bdc&&_0x5a9bdc[_0x182023('0x25d6')]&&(_0x42e34d[_0x182023('0x110a')]+=':\x20'+_0x5a9bdc[_0x182023('0x25d6')]);_0x42e34d[_0x182023('0x2371')]=_0x40dee9,_0x42e34d['closeDialog']=_0x58676f;function _0x40dee9(){var _0x5e9c83=_0x182023;return _0x1e6a2e[_0x5e9c83('0x55')][_0x5e9c83('0x1ae5')]({'id':_0x5a9bdc['id'],'includeAll':!![]},_0x42e34d[_0x5e9c83('0x2635')])[_0x5e9c83('0x1dc2')][_0x5e9c83('0xaa5')](function(_0x27f66b){var _0x403787=_0x5e9c83;_0x42e34d[_0x403787('0x1f8b')][_0x403787('0x6ee')](_0x27f66b[_0x403787('0x256a')]()),_0x53fa19[_0x403787('0xe10')]({'title':_0x403787('0xe39'),'msg':_0x42e34d[_0x403787('0x2635')][_0x403787('0x25d6')]?_0x42e34d[_0x403787('0x2635')][_0x403787('0x25d6')]+_0x403787('0x136'):''}),_0x322120['go'](_0x403787('0x494'),{'id':_0x27f66b['id']}),_0x58676f(_0x27f66b);})['catch'](function(_0x4b9c56){var _0x5b0d3f=_0x5e9c83;if(_0x4b9c56[_0x5b0d3f('0x10fd')]&&_0x4b9c56[_0x5b0d3f('0x10fd')][_0x5b0d3f('0x4c6')]&&_0x4b9c56['data'][_0x5b0d3f('0x4c6')][_0x5b0d3f('0x2587')]){_0x42e34d['errors']=_0x4b9c56[_0x5b0d3f('0x10fd')][_0x5b0d3f('0x4c6')]||[{'message':_0x4b9c56[_0x5b0d3f('0x684')](),'type':_0x5b0d3f('0x1379')}];for(var _0x5e80b0=0x0;_0x5e80b0<_0x4b9c56['data'][_0x5b0d3f('0x4c6')][_0x5b0d3f('0x2587')];_0x5e80b0+=0x1){_0x53fa19['error']({'title':_0x4b9c56['data']['errors'][_0x5e80b0]['type'],'msg':_0x4b9c56[_0x5b0d3f('0x10fd')]['errors'][_0x5e80b0]['message']});}}else _0x53fa19[_0x5b0d3f('0x187f')]({'title':_0x4b9c56[_0x5b0d3f('0x2fa')]?_0x5b0d3f('0x16c2')+_0x4b9c56[_0x5b0d3f('0x2fa')]+'\x20-\x20'+_0x4b9c56[_0x5b0d3f('0x24df')]:_0x5b0d3f('0x1379'),'msg':_0x4b9c56[_0x5b0d3f('0x10fd')]?JSON[_0x5b0d3f('0xa48')](_0x4b9c56['data']['message']):_0x4b9c56[_0x5b0d3f('0x684')]()});});}function _0x58676f(_0x5b3ee7){var _0x472a62=_0x182023;_0x20a9ea[_0x472a62('0x1120')](_0x5b3ee7);}}const _0x42443a=_0x3cfb5b,_0x3c268e=_0x4fb511['p']+'src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog-[chunkhash].html';_0x159608['$inject']=['$mdDialog','$document',_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0x157')];function _0x159608(_0x563203,_0x130333,_0x40f129,_0xcc388e,_0xbf289b){var _0x23a1e3=_0x1a8446,_0x3dadcf=this;_0x3dadcf[_0x23a1e3('0x2635')]={},_0x3dadcf[_0x23a1e3('0xac0')]=_0xbf289b['rpc'][_0x23a1e3('0x1c5f')]({'fields':'id,name'}),_0x3dadcf[_0x23a1e3('0x2e')]=_0x30642c,_0x3dadcf[_0x23a1e3('0x113f')]=_0x50ffbb,_0x3dadcf['deleteWidget']=_0x46c85b;function _0x30642c(_0x10ef5b,_0x96b227){var _0x5dabd9=_0x23a1e3;return _0x3dadcf['crudPermissions']=typeof _0x96b227!=='undefined'?_0x96b227:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3dadcf[_0x5dabd9('0x2635')]=_0x10ef5b,_0x3dadcf['customDashboard'][_0x5dabd9('0x2cb')]={'enabled':!![],'handle':_0x5dabd9('0x11ba'),'stop':_0x25c267},_0x3dadcf[_0x5dabd9('0x2635')][_0x5dabd9('0xa3e')]={'enabled':!![],'handle':_0x5dabd9('0x772'),'stop':_0x25c267},_0x3dadcf[_0x5dabd9('0x2635')][_0x5dabd9('0x219c')]=[],_0xbf289b[_0x5dabd9('0x55')][_0x5dabd9('0x1ad1')]({'id':_0x10ef5b['id']})['$promise']['then'](function(_0x564196){var _0x901ebb=_0x5dabd9;if(_0x564196&&_0x564196[_0x901ebb('0xd15')]&&_0x564196[_0x901ebb('0x580')])for(var _0x16a4f6=0x0;_0x16a4f6<_0x564196['rows']['length'];_0x16a4f6+=0x1){_0x564196['rows'][_0x16a4f6][_0x901ebb('0xac0')]=_0x3dadcf['voiceQueues'],_0x564196[_0x901ebb('0x580')][_0x16a4f6]['voiceQueuesSelected']=_0x51538b()[_0x901ebb('0x1246')](_0x3dadcf['voiceQueues'][_0x901ebb('0x580')],'id'),_0x564196['rows'][_0x16a4f6][_0x901ebb('0x9b')]=_0x901ebb('0xc2e')+_0x564196[_0x901ebb('0x580')][_0x16a4f6][_0x901ebb('0x6c8')]+_0x901ebb('0x2018')+_0x564196[_0x901ebb('0x580')][_0x16a4f6][_0x901ebb('0x6c8')]+_0x901ebb('0x273f'),_0x3dadcf[_0x901ebb('0x2635')]['widgets']['push'](_0x564196['rows'][_0x16a4f6]);}})[_0x5dabd9('0x253d')](function(_0x24127d){console['error'](_0x24127d);});}function _0x50ffbb(_0x1bd753){var _0x1973b4=_0x23a1e3;if(_0x1bd753&&_0x1bd753[_0x1973b4('0x470')])for(var _0x2ceca7=0x0;_0x2ceca7<_0x1bd753[_0x1973b4('0x470')][_0x1973b4('0x2587')];_0x2ceca7+=0x1){_0x1bd753[_0x1973b4('0x470')][_0x2ceca7]['name']===_0x1973b4('0xc88')&&(_0x1bd753[_0x1973b4('0xb0')]=_0x1bd753[_0x1973b4('0x470')][_0x2ceca7][_0x1973b4('0x6c8')]),_0x1bd753[_0x1bd753[_0x1973b4('0x470')][_0x2ceca7][_0x1973b4('0x25d6')]]=_0x1bd753['attrs'][_0x2ceca7][_0x1973b4('0x12f4')];}_0x563203[_0x1973b4('0x1e6d')]({'controller':'CreateOrEditDashboardItemDialogController','controllerAs':'vm','templateUrl':_0x3c268e,'parent':angular[_0x1973b4('0x1aa8')](_0x130333[_0x1973b4('0x54c')]),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x1bd753,'dashboard':_0x3dadcf[_0x1973b4('0x2635')][_0x1973b4('0x219c')],'license':null,'setting':null,'crudPermissions':_0x3dadcf[_0x1973b4('0xada')]}})[_0x1973b4('0xaa5')](function(_0xe65d7c){var _0x137d04=_0x1973b4;if(_0xe65d7c)for(var _0x4c55a3=0x0;_0x4c55a3<_0x3dadcf[_0x137d04('0x2635')][_0x137d04('0x219c')][_0x137d04('0x2587')];_0x4c55a3+=0x1){_0x3dadcf[_0x137d04('0x2635')][_0x137d04('0x219c')][_0x4c55a3]['id']===_0xe65d7c['id']&&(_0x3dadcf[_0x137d04('0x2635')][_0x137d04('0x219c')][_0x4c55a3][_0x137d04('0x470')]=_0xe65d7c[_0x137d04('0x470')],_0x3dadcf[_0x137d04('0x2635')][_0x137d04('0x219c')][_0x4c55a3]['voiceQueues']=_0x3dadcf[_0x137d04('0xac0')],_0x3dadcf[_0x137d04('0x2635')]['widgets'][_0x4c55a3]['voiceQueuesSelected']=_0x51538b()[_0x137d04('0x1246')](_0x3dadcf['voiceQueues'][_0x137d04('0x580')],'id'),_0x3dadcf[_0x137d04('0x2635')][_0x137d04('0x219c')][_0x4c55a3][_0x137d04('0x9b')]=_0x137d04('0xc2e')+_0x3dadcf['customDashboard'][_0x137d04('0x219c')][_0x4c55a3][_0x137d04('0x6c8')]+_0x137d04('0x2018')+_0x3dadcf[_0x137d04('0x2635')]['widgets'][_0x4c55a3][_0x137d04('0x6c8')]+_0x137d04('0x273f'));}});}function _0x46c85b(_0x21034f){var _0x407e64=_0x23a1e3,_0x101952=_0x563203[_0x407e64('0x281e')]()[_0x407e64('0x110a')]('Would\x20you\x20like\x20to\x20delete\x20'+_0x21034f[_0x407e64('0x110a')]+'?')[_0x407e64('0x447')]('')['ariaLabel']('Delete\x20Widget')['ok'](_0x407e64('0xd4a'))[_0x407e64('0x2030')]('NO');_0x563203['show'](_0x101952)[_0x407e64('0xaa5')](function(){var _0x427d5e=_0x407e64;return _0xbf289b[_0x427d5e('0xe7c')]['delete']({'id':_0x21034f['id']})[_0x427d5e('0x1dc2')][_0x427d5e('0xaa5')](function(){var _0x54fe41=_0x427d5e;_0x51538b()[_0x54fe41('0xf6d')](_0x3dadcf[_0x54fe41('0x2635')]['widgets'],{'id':_0x21034f['id']}),_0xcc388e[_0x54fe41('0xe10')]({'title':'Widget\x20deleted!','msg':_0x21034f[_0x54fe41('0x25d6')]?_0x21034f[_0x54fe41('0x25d6')]+_0x54fe41('0xcd9'):_0x54fe41('0x133d')});})[_0x427d5e('0x253d')](function(_0x1b6c35){var _0x505e89=_0x427d5e;if(_0x1b6c35[_0x505e89('0x10fd')]&&_0x1b6c35['data']['errors']&&_0x1b6c35[_0x505e89('0x10fd')]['errors'][_0x505e89('0x2587')]){_0x3dadcf['errors']=_0x1b6c35[_0x505e89('0x10fd')][_0x505e89('0x4c6')]||[{'message':_0x1b6c35['toString'](),'type':_0x505e89('0x24e9')}];for(var _0x165e19=0x0;_0x165e19<_0x1b6c35[_0x505e89('0x10fd')][_0x505e89('0x4c6')][_0x505e89('0x2587')];_0x165e19++){_0xcc388e[_0x505e89('0x187f')]({'title':_0x1b6c35['data']['errors'][_0x165e19][_0x505e89('0x6c8')],'msg':_0x1b6c35[_0x505e89('0x10fd')][_0x505e89('0x4c6')][_0x165e19][_0x505e89('0x1402')]});}}else _0xcc388e[_0x505e89('0x187f')]({'title':_0x1b6c35['status']?_0x505e89('0x16c2')+_0x1b6c35[_0x505e89('0x2fa')]+_0x505e89('0x169e')+_0x1b6c35[_0x505e89('0x24df')]:_0x505e89('0x1630'),'msg':_0x1b6c35['data']?JSON['stringify'](_0x1b6c35[_0x505e89('0x10fd')][_0x505e89('0x1402')]):_0x1b6c35[_0x505e89('0x1402')]||_0x1b6c35[_0x505e89('0x684')]()});console[_0x505e89('0x187f')](_0x1b6c35);});});}function _0x25c267(_0x1eb001,_0x5cc44c,_0x67e751){var _0x567fff=_0x23a1e3;return _0xbf289b['dashboardItem'][_0x567fff('0x264e')](_0x67e751)['$promise'][_0x567fff('0x253d')](function(_0x233009){console['error'](_0x233009);});}}const _0x4d22f9=_0x159608,_0x25c023=_0x4fb511['p']+_0x1a8446('0x715');_0x5203dd[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x55'),_0x1a8446('0x150c'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x5203dd(_0x29a1b2,_0x7b1373,_0x5a0687,_0x18cb54,_0x192b6d,_0x562daa,_0x24dbd6,_0x1e9c76,_0x39fc68,_0x5bae55,_0x578352,_0x11fedb,_0x4196c2,_0xff51da){var _0x5e87ec=_0x1a8446,_0x4bef1a=this;_0x4bef1a[_0x5e87ec('0x7fc')]=_0x578352[_0x5e87ec('0xacc')](),_0x4bef1a[_0x5e87ec('0x4c6')]=[],_0x4bef1a['setting']=_0x4196c2,_0x4bef1a[_0x5e87ec('0x1202')]=_0x11fedb,_0x4bef1a[_0x5e87ec('0xada')]=_0xff51da,_0x4bef1a['hasModulePermissions']={},_0x4bef1a[_0x5e87ec('0x1d53')]=_0x4bef1a[_0x5e87ec('0x143f')]&&_0x4bef1a[_0x5e87ec('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4bef1a[_0x5e87ec('0x110a')]=_0x5e87ec('0x2201'),_0x4bef1a[_0x5e87ec('0x150c')]=angular[_0x5e87ec('0x20a')](_0x39fc68),_0x4bef1a['dashboard']=_0x1e9c76,_0x4bef1a[_0x5e87ec('0x68f')]=![],_0x4bef1a['selectedReport']=[],_0x4bef1a['query']={'fields':'createdAt,updatedAt,id,name,description,table,parent,conditions,joins','limit':0xa,'page':0x1,'sort':'-updatedAt'};!_0x4bef1a[_0x5e87ec('0x150c')]?(_0x4bef1a[_0x5e87ec('0x150c')]={'type':'counter','attrUrl':'https://','attrHourFormat':_0x5e87ec('0x18c2'),'attrTimezone':'0.00','attrMetric':_0x5e87ec('0x1d71'),'attrSerie1':'total','attrSerie2':_0x5e87ec('0x1ed9'),'attrSerie3':_0x5e87ec('0x1ed9'),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':'#2196f3','background':'#ffffff'},_0x4bef1a['title']=_0x5e87ec('0x881'),_0x4bef1a[_0x5e87ec('0x68f')]=!![]):_0x4bef1a['dashboarditem'][_0x5e87ec('0x6c8')]=='web-report'&&(_0x4bef1a[_0x5e87ec('0x553')]=_0x4bef1a['dashboarditem'][_0x5e87ec('0xb0')]===_0x5e87ec('0x113b')?_0x5e87ec('0x16bc'):_0x5e87ec('0x1885'),_0x5bae55[_0x4bef1a[_0x5e87ec('0x553')]][_0x5e87ec('0x2122')]({'fields':_0x5e87ec('0xbbc')})[_0x5e87ec('0x1dc2')][_0x5e87ec('0xaa5')](function(_0x5115eb){var _0x1a3bee=_0x5e87ec;_0x4bef1a[_0x1a3bee('0x1dbb')]=_0x51538b()[_0x1a3bee('0xe9e')](_0x5115eb[_0x1a3bee('0x580')],{'id':_0x4bef1a[_0x1a3bee('0x150c')][_0x1a3bee('0xc88')]}),_0x4bef1a[_0x1a3bee('0x150c')]['report']=_0x4bef1a['currentReport'][_0x1a3bee('0x25d6')],_0x4bef1a['query'][_0x1a3bee('0x20a2')]=_0x4bef1a['currentReport'][_0x1a3bee('0x20a2')];}));_0x4bef1a['addNewDashboardItem']=_0x4fc70c,_0x4bef1a[_0x5e87ec('0x2393')]=_0x10d6e2,_0x4bef1a[_0x5e87ec('0x2029')]=_0x30ecb7,_0x4bef1a[_0x5e87ec('0xc09')]=_0x500222,_0x4bef1a[_0x5e87ec('0x1367')]=_0x58deee,_0x4bef1a['selectReport']=_0x20d4d3,_0x4bef1a['closeReportDialog']=_0x35b4a0,_0x4bef1a['searchReport']=_0x1d1c97,_0x4bef1a[_0x5e87ec('0x2023')]=_0x27d723,_0x5bae55[_0x5e87ec('0x37f')][_0x5e87ec('0x2122')]({})[_0x5e87ec('0x1dc2')][_0x5e87ec('0xaa5')](function(_0x1a04c4){var _0x5d8f75=_0x5e87ec;_0x4bef1a[_0x5d8f75('0xd39')]=_0x1a04c4[_0x5d8f75('0x580')]||[];})['catch'](function(_0x3b3ffe){var _0x312baa=_0x5e87ec;_0x24dbd6[_0x312baa('0x187f')]({'title':_0x3b3ffe[_0x312baa('0x2fa')]?_0x312baa('0x16c2')+_0x3b3ffe[_0x312baa('0x2fa')]+_0x312baa('0x169e')+_0x3b3ffe['statusText']:_0x312baa('0x216c'),'msg':_0x3b3ffe[_0x312baa('0x10fd')]?JSON[_0x312baa('0xa48')](_0x3b3ffe[_0x312baa('0x10fd')]):_0x3b3ffe['toString']()});});var _0x4c7dfd=[{'id':0x191,'type':_0x5e87ec('0x4b8')},{'id':0x5dd,'type':_0x5e87ec('0x19d1')}],_0x363be6=null;_0x578352[_0x5e87ec('0x26e8')](_0x5e87ec('0x178b'))?_0x5bae55['voiceQueue']['get']({'fields':_0x5e87ec('0x21e2'),'sort':'name','nolimit':_0x5e87ec('0x1c5c')})[_0x5e87ec('0x1dc2')]['then'](function(_0x460280){var _0x5d6e3f=_0x5e87ec;_0x4bef1a[_0x5d6e3f('0xac0')]=_0x460280[_0x5d6e3f('0x580')]||[];})['catch'](function(_0x3b4b88){var _0x81f2b0=_0x5e87ec;_0x24dbd6[_0x81f2b0('0x187f')]({'title':_0x3b4b88[_0x81f2b0('0x2fa')]?_0x81f2b0('0x16c2')+_0x3b4b88[_0x81f2b0('0x2fa')]+_0x81f2b0('0x169e')+_0x3b4b88['statusText']:'SYSTEM:GET_VOICEQUEUES','msg':_0x3b4b88[_0x81f2b0('0x10fd')]?JSON[_0x81f2b0('0xa48')](_0x3b4b88['data']):_0x3b4b88[_0x81f2b0('0x684')]()});}):_0x5bae55[_0x5e87ec('0x1588')][_0x5e87ec('0x2122')]({'fields':'id,name,type','sort':_0x5e87ec('0x25d6'),'nolimit':'true'})[_0x5e87ec('0x1dc2')][_0x5e87ec('0xaa5')](function(_0x50a02b){_0x363be6=_0x50a02b['rows']||[];})[_0x5e87ec('0xaa5')](function(){var _0x2fa844=_0x5e87ec,_0x47738e=[];for(var _0x17b322=0x0;_0x17b322<_0x4c7dfd['length'];_0x17b322++){_0x47738e['push'](_0x5bae55[_0x2fa844('0x1a50')][_0x2fa844('0x2122')]({'userProfileId':_0x4bef1a[_0x2fa844('0x7fc')]['userProfileId'],'sectionId':_0x4c7dfd[_0x17b322]['id']})[_0x2fa844('0x1dc2')]);}return _0x192b6d[_0x2fa844('0xa15')](_0x47738e);})[_0x5e87ec('0xaa5')](function(_0x12e31f){var _0x405dec=_0x5e87ec,_0x3db103=_0x51538b()['map'](_0x12e31f,function(_0x4200d8){var _0x571b40=a0_0x1149;return _0x4200d8&&_0x4200d8[_0x571b40('0x580')]?_0x4200d8[_0x571b40('0x580')][0x0]:null;}),_0x4b1c48=[],_0x148039=function _0x367b1f(_0x9000e5){var _0x3a37ca=a0_0x1149,_0x1cc6aa=_0x51538b()[_0x3a37ca('0xe9e')](_0x3db103,[_0x3a37ca('0x10b8'),_0x4c7dfd[_0x9000e5]['id']]);if(_0x1cc6aa){if(!_0x1cc6aa[_0x3a37ca('0x26cc')])_0x4b1c48['push'](_0x5bae55[_0x3a37ca('0x249a')]['get']({'sectionId':_0x1cc6aa['id']})[_0x3a37ca('0x1dc2')]);else{var _0x173a81=[];_0x363be6[_0x3a37ca('0x15b5')](function(_0x3c20c4){var _0x2e74b0=_0x3a37ca;_0x3c20c4[_0x2e74b0('0x6c8')]===_0x4c7dfd[_0x9000e5][_0x2e74b0('0x6c8')]&&_0x173a81[_0x2e74b0('0x1599')](_0x3c20c4);}),_0x4b1c48['push']({'rows':_0x173a81,'count':_0x173a81[_0x3a37ca('0x2587')]});}}};for(var _0x8d630=0x0;_0x8d630<_0x4c7dfd['length'];_0x8d630++){_0x148039(_0x8d630);}return _0x192b6d[_0x405dec('0xa15')](_0x4b1c48);})[_0x5e87ec('0xaa5')](function(_0xf5ea70){var _0x289a7f=_0x5e87ec,_0xa07c24=[],_0x219664=null;_0x4bef1a['dashboarditem']&&(_0x219664=_0x51538b()[_0x289a7f('0xe9e')](_0x363be6,{'id':Number(_0x4bef1a[_0x289a7f('0x150c')][_0x289a7f('0x86d')])}));for(var _0x51b7d6=0x0;_0x51b7d6<_0xf5ea70[_0x289a7f('0x2587')];_0x51b7d6++){var _0x11c55b=_0xf5ea70[_0x51b7d6][_0x289a7f('0x580')]||[];_0x11c55b[_0x289a7f('0x15b5')](function(_0x4a9c19){_0xa07c24['push'](_0x4a9c19);});}_0x219664&&!_0x51538b()[_0x289a7f('0x2c2')](_0xa07c24,[_0x289a7f('0xbcd'),_0x219664['id']])&&_0x363be6[_0x289a7f('0x15b5')](function(_0x6a4e3f){var _0x1425f3=_0x289a7f;_0x6a4e3f['id']===_0x219664['id']&&(_0x6a4e3f['canSelect']=![],_0xa07c24[_0x1425f3('0x1599')](_0x6a4e3f));}),_0x4bef1a[_0x289a7f('0xac0')]=_0xa07c24;})[_0x5e87ec('0x253d')](function(_0x3b7497){var _0x3ffab4=_0x5e87ec;_0x24dbd6[_0x3ffab4('0x187f')]({'title':_0x3b7497[_0x3ffab4('0x2fa')]?_0x3ffab4('0x16c2')+_0x3b7497['status']+_0x3ffab4('0x169e')+_0x3b7497[_0x3ffab4('0x24df')]:_0x3ffab4('0x1b25'),'msg':_0x3b7497[_0x3ffab4('0x10fd')]?JSON[_0x3ffab4('0xa48')](_0x3b7497[_0x3ffab4('0x10fd')]):_0x3b7497['toString']()});});function _0x4fc70c(){var _0x283511=_0x5e87ec;_0x4bef1a[_0x283511('0x4c6')]=[],_0x5bae55[_0x283511('0x55')][_0x283511('0x2308')]({'id':_0x7b1373['params']['id']},_0x4bef1a[_0x283511('0x150c')])[_0x283511('0x1dc2')][_0x283511('0xaa5')](function(_0x2ed8b8){var _0x7100d0=_0x283511;_0x4bef1a['dashboard'][_0x7100d0('0x6ee')](_0x2ed8b8[_0x7100d0('0x256a')]()),_0x24dbd6[_0x7100d0('0xe10')]({'title':_0x7100d0('0x277d'),'msg':_0x4bef1a[_0x7100d0('0x150c')][_0x7100d0('0x25d6')]?_0x4bef1a[_0x7100d0('0x150c')][_0x7100d0('0x25d6')]+_0x7100d0('0xdca'):''}),_0x27d723(_0x2ed8b8);})[_0x283511('0x253d')](function(_0x300dd7){var _0xe74c19=_0x283511;if(_0x300dd7[_0xe74c19('0x10fd')]&&_0x300dd7[_0xe74c19('0x10fd')][_0xe74c19('0x4c6')]&&_0x300dd7['data'][_0xe74c19('0x4c6')][_0xe74c19('0x2587')]){_0x4bef1a['errors']=_0x300dd7[_0xe74c19('0x10fd')][_0xe74c19('0x4c6')]||[{'message':_0x300dd7[_0xe74c19('0x684')](),'type':'api.dashboardItem.save'}];for(var _0x54e55b=0x0;_0x54e55b<_0x300dd7[_0xe74c19('0x10fd')]['errors'][_0xe74c19('0x2587')];_0x54e55b+=0x1){_0x24dbd6[_0xe74c19('0x187f')]({'title':_0x300dd7[_0xe74c19('0x10fd')][_0xe74c19('0x4c6')][_0x54e55b][_0xe74c19('0x6c8')],'msg':_0x300dd7[_0xe74c19('0x10fd')][_0xe74c19('0x4c6')][_0x54e55b]['message']});}}else _0x24dbd6[_0xe74c19('0x187f')]({'title':_0x300dd7[_0xe74c19('0x2fa')]?_0xe74c19('0x16c2')+_0x300dd7['status']+_0xe74c19('0x169e')+_0x300dd7[_0xe74c19('0x24df')]:_0xe74c19('0x26a6'),'msg':_0x300dd7[_0xe74c19('0x10fd')]?JSON[_0xe74c19('0xa48')](_0x300dd7['data'][_0xe74c19('0x1402')]):_0x300dd7[_0xe74c19('0x684')]()});});}function _0x10d6e2(){var _0x247b5f=_0x5e87ec;_0x4bef1a[_0x247b5f('0x4c6')]=[],_0x5bae55[_0x247b5f('0xe7c')][_0x247b5f('0x264e')]({'id':_0x4bef1a['dashboarditem']['id']},_0x4bef1a[_0x247b5f('0x150c')])[_0x247b5f('0x1dc2')][_0x247b5f('0xaa5')](function(_0x2d767c){var _0x534b3b=_0x247b5f,_0x3bf521=_0x51538b()[_0x534b3b('0xe9e')](_0x4bef1a[_0x534b3b('0x55')],{'id':_0x2d767c['id']});_0x3bf521&&_0x51538b()[_0x534b3b('0x283c')](_0x3bf521,_0x51538b()[_0x534b3b('0x104e')](_0x2d767c[_0x534b3b('0x256a')](),_0x51538b()[_0x534b3b('0x9f2')](_0x3bf521))),_0x24dbd6[_0x534b3b('0xe10')]({'title':_0x534b3b('0x10b2'),'msg':_0x4bef1a['dashboarditem'][_0x534b3b('0x25d6')]?_0x4bef1a[_0x534b3b('0x150c')]['name']+_0x534b3b('0x20bf'):''}),_0x27d723(_0x2d767c);})[_0x247b5f('0x253d')](function(_0x7c845d){var _0xd5aa2e=_0x247b5f;if(_0x7c845d[_0xd5aa2e('0x10fd')]&&_0x7c845d['data'][_0xd5aa2e('0x4c6')]&&_0x7c845d['data']['errors'][_0xd5aa2e('0x2587')]){_0x4bef1a[_0xd5aa2e('0x4c6')]=_0x7c845d[_0xd5aa2e('0x10fd')][_0xd5aa2e('0x4c6')]||[{'message':_0x7c845d[_0xd5aa2e('0x684')](),'type':_0xd5aa2e('0x663')}];for(var _0x3ed911=0x0;_0x3ed911<_0x7c845d['data']['errors']['length'];_0x3ed911++){_0x24dbd6[_0xd5aa2e('0x187f')]({'title':_0x7c845d[_0xd5aa2e('0x10fd')][_0xd5aa2e('0x4c6')][_0x3ed911][_0xd5aa2e('0x6c8')],'msg':_0x7c845d['data']['errors'][_0x3ed911][_0xd5aa2e('0x1402')]});}}else _0x24dbd6['error']({'title':_0x7c845d[_0xd5aa2e('0x2fa')]?_0xd5aa2e('0x16c2')+_0x7c845d['status']+_0xd5aa2e('0x169e')+_0x7c845d[_0xd5aa2e('0x24df')]:_0xd5aa2e('0x663'),'msg':_0x7c845d['data']?JSON[_0xd5aa2e('0xa48')](_0x7c845d[_0xd5aa2e('0x10fd')][_0xd5aa2e('0x1402')]):_0x7c845d[_0xd5aa2e('0x684')]()});});}function _0x30ecb7(_0x303495){var _0x349eae=_0x5e87ec;_0x4bef1a[_0x349eae('0x4c6')]=[];var _0x17177c=_0x18cb54[_0x349eae('0x281e')]()[_0x349eae('0x110a')](_0x349eae('0x12a3'))['content'](_0x349eae('0x940'))[_0x349eae('0x5b5')]('Delete\x20DashboardItem')['ok']('Delete')[_0x349eae('0x2030')](_0x349eae('0x9c6'))[_0x349eae('0x116d')](_0x303495);_0x18cb54[_0x349eae('0x1e6d')](_0x17177c)[_0x349eae('0xaa5')](function(){var _0x5245e=_0x349eae;_0x5bae55[_0x5245e('0xe7c')]['delete']({'id':_0x4bef1a['dashboarditem']['id']})[_0x5245e('0x1dc2')][_0x5245e('0xaa5')](function(){var _0x1969e2=_0x5245e;_0x51538b()[_0x1969e2('0xf6d')](_0x4bef1a[_0x1969e2('0x55')],{'id':_0x4bef1a[_0x1969e2('0x150c')]['id']}),_0x24dbd6[_0x1969e2('0xe10')]({'title':_0x1969e2('0x22b2'),'msg':(_0x4bef1a[_0x1969e2('0x150c')]['name']||'dashboarditem')+_0x1969e2('0xcd9')}),_0x27d723(_0x4bef1a[_0x1969e2('0x150c')]);})[_0x5245e('0x253d')](function(_0x3706c7){var _0x3740bb=_0x5245e;if(_0x3706c7[_0x3740bb('0x10fd')]&&_0x3706c7[_0x3740bb('0x10fd')][_0x3740bb('0x4c6')]&&_0x3706c7[_0x3740bb('0x10fd')][_0x3740bb('0x4c6')][_0x3740bb('0x2587')]){_0x4bef1a[_0x3740bb('0x4c6')]=_0x3706c7[_0x3740bb('0x10fd')][_0x3740bb('0x4c6')]||[{'message':_0x3706c7[_0x3740bb('0x684')](),'type':'api.dashboardItem.delete'}];for(var _0x49b066=0x0;_0x49b066<_0x3706c7[_0x3740bb('0x10fd')][_0x3740bb('0x4c6')]['length'];_0x49b066++){_0x24dbd6[_0x3740bb('0x187f')]({'title':_0x3706c7[_0x3740bb('0x10fd')]['errors'][_0x49b066][_0x3740bb('0x6c8')],'msg':_0x3706c7[_0x3740bb('0x10fd')][_0x3740bb('0x4c6')][_0x49b066][_0x3740bb('0x1402')]});}}else _0x24dbd6[_0x3740bb('0x187f')]({'title':_0x3706c7['status']?'API:'+_0x3706c7[_0x3740bb('0x2fa')]+_0x3740bb('0x169e')+_0x3706c7[_0x3740bb('0x24df')]:'api.dashboardItem.delete','msg':_0x3706c7[_0x3740bb('0x10fd')]?JSON['stringify'](_0x3706c7['data'][_0x3740bb('0x1402')]):_0x3706c7['message']||_0x3706c7[_0x3740bb('0x684')]()});});},function(){});}function _0x185735(){var _0x50151b=_0x5e87ec,_0x48f550={'core':{'multiple':![],'animation':!![],'error':function _0x2bd4a3(_0x7bd279){var _0x14bb9c=a0_0x1149;console[_0x14bb9c('0x187f')](_0x14bb9c('0x83e')+angular['toJson'](_0x7bd279));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0x4bef1a[_0x50151b('0x7fc')][_0x50151b('0x924')]!==_0x50151b('0x178b')?_0x5bae55['userProfileSection'][_0x50151b('0x2122')]({'fields':_0x50151b('0xe6a'),'userProfileId':_0x4bef1a[_0x50151b('0x7fc')][_0x50151b('0x2168')],'sectionId':0x4b3})[_0x50151b('0x1dc2')][_0x50151b('0xaa5')](function(_0x132605){var _0x4a24e4=_0x50151b;return _0x4bef1a[_0x4a24e4('0x1a50')]=_0x132605&&_0x132605[_0x4a24e4('0xd15')]==0x1?_0x132605[_0x4a24e4('0x580')][0x0]:null,_0x48f550;})[_0x50151b('0x253d')](function(_0x2789d5){var _0x2669af=_0x50151b;_0x24dbd6[_0x2669af('0x187f')]({'title':'ERROR','msg':_0x2789d5[_0x2669af('0x1402')]});}):_0x48f550;}function _0x3b602f(_0x55d89b){return _0x55d89b?{'loaded':_0x19286e,'select_node':_0x3ad97c}:{'loaded':_0x5a14c8,'select_node':_0x20e6e3};}function _0x3ad97c(_0x46d040,_0x16b17d){var _0x2e8214=_0x5e87ec;_0x4bef1a[_0x2e8214('0x1698')][_0x2e8214('0x2433')](!![])[_0x2e8214('0xacd')](),_0x4bef1a['treeDefaultInstance']['jstree'](!![])['close_all'](),_0x4bef1a[_0x2e8214('0x31c')]=_0x16b17d[_0x2e8214('0xdf1')],_0x4bef1a[_0x2e8214('0x31c')][_0x2e8214('0x113b')]=!![],_0x4bef1a['currentPath']=_0x4bef1a[_0x2e8214('0x135d')]['jstree'](!![])[_0x2e8214('0x801')](_0x4bef1a['currentNode'])[_0x2e8214('0x19c4')]('/\x20'),_0x4bef1a[_0x2e8214('0x553')]=_0x2e8214('0x16bc'),_0x4bef1a[_0x2e8214('0x582')]['parent']=_0x16b17d[_0x2e8214('0xdf1')]['id'],_0x58deee();}function _0x20e6e3(_0x4ebac0,_0x5e173b){var _0x57055c=_0x5e87ec;_0x4bef1a[_0x57055c('0x135d')][_0x57055c('0x2433')](!![])[_0x57055c('0xacd')](),_0x4bef1a[_0x57055c('0x135d')]['jstree'](!![])[_0x57055c('0x82c')](),_0x4bef1a[_0x57055c('0x31c')]=_0x5e173b['node'],_0x4bef1a[_0x57055c('0x31c')][_0x57055c('0x113b')]=![],_0x4bef1a['currentPath']=_0x4bef1a[_0x57055c('0x1698')][_0x57055c('0x2433')](!![])['get_path'](_0x4bef1a['currentNode'])[_0x57055c('0x19c4')]('/\x20'),_0x4bef1a[_0x57055c('0x553')]='analyticDefaultReport',_0x4bef1a[_0x57055c('0x582')]['parent']=_0x5e173b['node']['id'],_0x58deee();}function _0x19286e(){var _0xd2cc91=_0x5e87ec;if(!_0x4bef1a[_0xd2cc91('0x68f')]&&_0x4bef1a['apiName']==='analyticCustomReport'){var _0x4d169e=_0x4bef1a[_0xd2cc91('0x135d')]['jstree'](!![])[_0xd2cc91('0x22c1')](_0x4bef1a[_0xd2cc91('0x582')][_0xd2cc91('0x20a2')]);_0x3ad97c(null,{'node':_0x4d169e,'selected':_0x4d169e['id']});}}function _0x5a14c8(){var _0x342265=_0x5e87ec;if(!_0x4bef1a[_0x342265('0x68f')]&&_0x4bef1a[_0x342265('0x553')]===_0x342265('0x1885')){var _0x4a6bae=_0x4bef1a[_0x342265('0x1698')][_0x342265('0x2433')](!![])[_0x342265('0x22c1')](_0x4bef1a[_0x342265('0x582')][_0x342265('0x20a2')]);_0x20e6e3(null,{'node':_0x4a6bae,'selected':_0x4a6bae['id']});}}function _0x58deee(){var _0x402797=_0x5e87ec;_0x4bef1a[_0x402797('0x582')][_0x402797('0x8b1')]=(_0x4bef1a[_0x402797('0x582')]['page']-0x1)*_0x4bef1a[_0x402797('0x582')][_0x402797('0xf4d')];if(_0x4bef1a[_0x402797('0x553')]){if(_0x4bef1a['currentUser']['role']===_0x402797('0x178b'))_0x4bef1a[_0x402797('0x159a')]=_0x5bae55[_0x4bef1a[_0x402797('0x553')]][_0x402797('0x2122')](_0x4bef1a[_0x402797('0x582')],_0x265c19)[_0x402797('0x1dc2')];else{if(!_0x4bef1a[_0x402797('0x1a50')])return _0x265c19(null);else{if(_0x4bef1a[_0x402797('0x1a50')][_0x402797('0x26cc')])_0x4bef1a['promise']=_0x5bae55[_0x4bef1a['apiName']]['get'](_0x4bef1a[_0x402797('0x582')],_0x265c19)[_0x402797('0x1dc2')];else{var _0x576132=[];_0x4bef1a[_0x402797('0x159a')]=_0x5bae55[_0x4bef1a[_0x402797('0x553')]][_0x402797('0x2122')](_0x4bef1a['query'])[_0x402797('0x1dc2')][_0x402797('0xaa5')](function(_0x2cf8de){var _0x5ef130=_0x402797;return _0x576132=_0x2cf8de&&_0x2cf8de[_0x5ef130('0x580')]?_0x2cf8de[_0x5ef130('0x580')]:[],_0x576132[_0x5ef130('0x2587')]>0x0?_0x5bae55[_0x5ef130('0x249a')][_0x5ef130('0x2122')]({'sectionId':_0x4bef1a[_0x5ef130('0x1a50')]['id'],'type':_0x4bef1a[_0x5ef130('0x553')]==='analyticDefaultReport'?'DefaultReports':_0x5ef130('0x9de')})[_0x5ef130('0x1dc2')][_0x5ef130('0xaa5')](function(_0x509337){var _0x56781a=_0x5ef130,_0x45288a=_0x509337&&_0x509337[_0x56781a('0x580')]?_0x509337['rows']:[];if(_0x45288a[_0x56781a('0x2587')]>0x0){var _0x2e2a64=[];return _0x576132[_0x56781a('0x15b5')](function(_0x4b009e){var _0x37f6c3=_0x56781a,_0x507662=_0x51538b()[_0x37f6c3('0xe9e')](_0x45288a,['resourceId',_0x4b009e['id']]);if(_0x507662)_0x2e2a64[_0x37f6c3('0x1599')](_0x4b009e);}),_0x265c19({'count':_0x2e2a64['length'],'rows':_0x2e2a64});}else return _0x265c19(null);}):_0x265c19(null);})[_0x402797('0x253d')](function(_0x225205){var _0x5dc321=_0x402797;_0x24dbd6['error']({'title':_0x225205['status']?'API:'+_0x225205['status']+_0x5dc321('0x169e')+_0x225205[_0x5dc321('0x24df')]:'SYSTEM:GET_REPORTS','msg':_0x225205[_0x5dc321('0x10fd')]?JSON['stringify'](_0x225205[_0x5dc321('0x10fd')]):_0x225205[_0x5dc321('0x684')]()});});}}}}}function _0x265c19(_0xec13ad){var _0x3f674d=_0x5e87ec;_0x4bef1a[_0x3f674d('0x12ba')]=_0xec13ad||{'count':0x0,'rows':[]},!_0x4bef1a[_0x3f674d('0x68f')]&&_0x4bef1a[_0x3f674d('0x76c')][_0x3f674d('0x1599')](_0x51538b()[_0x3f674d('0xe9e')](_0x4bef1a['reports'][_0x3f674d('0x580')],{'id':_0x4bef1a['currentReport']['id']}));}function _0x1d1c97(){var _0x5541ce=_0x5e87ec;_0x4bef1a[_0x5541ce('0xbf9')]=_0x4bef1a[_0x5541ce('0xd39')][0x0]?angular[_0x5541ce('0x19c8')](_0x4bef1a[_0x5541ce('0xd39')][0x0][_0x5541ce('0x2647')]):[],_0x4bef1a[_0x5541ce('0x1ffc')]=_0x4bef1a[_0x5541ce('0xd39')][0x1]?angular[_0x5541ce('0x19c8')](_0x4bef1a['treeReports'][0x1]['tree']):[],_0x4bef1a[_0x5541ce('0xf2f')]=_0x185735(),_0x4bef1a['treeDefaultEvents']=_0x3b602f(![]),_0x4bef1a[_0x5541ce('0x1da9')]=_0x3b602f(!![]),_0x18cb54[_0x5541ce('0x1e6d')]({'controller':function _0x31ea44(){return _0x4bef1a;},'controllerAs':'vm','templateUrl':_0x25c023,'autoWrap':!![],'skipHide':!![]});}function _0x20d4d3(){var _0x56ebf3=_0x5e87ec;_0x4bef1a[_0x56ebf3('0x150c')][_0x56ebf3('0x1b8e')]=_0x4bef1a[_0x56ebf3('0x76c')][0x0]['name'],_0x4bef1a[_0x56ebf3('0x150c')]['attrReport']=_0x4bef1a['selectedReport'][0x0]['id'],_0x4bef1a['dashboarditem'][_0x56ebf3('0xb0')]=_0x4bef1a[_0x56ebf3('0x31c')][_0x56ebf3('0x113b')]?_0x56ebf3('0x113b'):_0x56ebf3('0x449');if(!_0x4bef1a[_0x56ebf3('0x68f')]){var _0x55aad8={'name':_0x56ebf3('0xc88'),'type':_0x4bef1a[_0x56ebf3('0x150c')][_0x56ebf3('0xb0')],'value':_0x4bef1a[_0x56ebf3('0x76c')][0x0]['id']};_0x4bef1a[_0x56ebf3('0x150c')][_0x56ebf3('0x470')][_0x56ebf3('0x1280')](_0x51538b()[_0x56ebf3('0xedc')](_0x4bef1a[_0x56ebf3('0x150c')][_0x56ebf3('0x470')],0x1,_0x55aad8));}_0x29a1b2[_0x56ebf3('0x599')][_0x56ebf3('0x1b8e')][_0x56ebf3('0x822')](),_0x18cb54[_0x56ebf3('0x1120')]();}function _0x35b4a0(){var _0xbfb0d1=_0x5e87ec;_0x18cb54[_0xbfb0d1('0x1120')]();}function _0x500222(_0x3c9539){return _0x3c9539===null?undefined:new Date(_0x3c9539);}function _0x27d723(_0x29cf87){_0x18cb54['hide'](_0x29cf87);}}const _0x10c01f=_0x5203dd,_0x58972d=_0x4fb511['p']+'src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html/clone-[chunkhash].html';_0x5b6aed[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$document',_0x1a8446('0xcb3'),'license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'customDashboard','userProfileSection'];function _0x5b6aed(_0xeabcf3,_0x4f274f,_0x5408dc,_0x46bff3,_0xfd07eb,_0x3dd18d,_0x478c0b,_0x3f1b32,_0x5561db,_0x6033b,_0x50077c,_0x3429a7){var _0x5d50c5=_0x1a8446,_0x21d5de=this;_0x21d5de[_0x5d50c5('0x7fc')]=_0x6033b['getCurrentUser'](),_0x21d5de[_0x5d50c5('0x1202')]=_0x3dd18d,_0x21d5de[_0x5d50c5('0x143f')]=_0x478c0b,_0x21d5de[_0x5d50c5('0x1d53')]=_0x21d5de['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x21d5de['location']=_0x4f274f['protocol']()+'://'+_0x4f274f[_0x5d50c5('0x160c')](),_0x21d5de[_0x5d50c5('0x2635')]=_0x50077c||_0xeabcf3[_0x5d50c5('0x25cf')][_0x5d50c5('0x2635')]||{},_0x21d5de[_0x5d50c5('0x1a50')]=_0x3429a7&&_0x3429a7[_0x5d50c5('0xd15')]==0x1?_0x3429a7[_0x5d50c5('0x580')][0x0]:null,_0x21d5de['crudPermissions']=_0x6033b[_0x5d50c5('0xffd')](_0x21d5de['userProfileSection']?_0x21d5de[_0x5d50c5('0x1a50')]['crudPermissions']:null),_0x21d5de['hasModulePermissions']={},_0x21d5de[_0x5d50c5('0xe5c')]=_0xeabcf3[_0x5d50c5('0x25cf')][_0x5d50c5('0x25c2')]||0x0,_0x21d5de[_0x5d50c5('0x16c1')]=_0xe8f2c5,_0x21d5de[_0x5d50c5('0x7ba')]=_0x22ae0b,_0x21d5de[_0x5d50c5('0xc10')]=_0x5561db[_0x5d50c5('0x3a1')],_0x21d5de[_0x5d50c5('0x1920')]=_0x57f761,_0x21d5de[_0x5d50c5('0x897')]=_0x535477;function _0xe8f2c5(_0x2154a7,_0x28b27d){var _0x451601=_0x5d50c5;_0x5408dc[_0x451601('0x1e6d')]({'controller':_0x451601('0x67'),'controllerAs':'vm','templateUrl':_0x58972d,'parent':angular[_0x451601('0x1aa8')](_0x46bff3[_0x451601('0x54c')]),'targetEvent':_0x28b27d,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x2154a7,'customDashboards':_0x21d5de[_0x451601('0x1f8b')]?_0x21d5de[_0x451601('0x1f8b')]['rows']:[],'crudPermissions':_0x21d5de[_0x451601('0xada')]}});}function _0x22ae0b(_0xf7fa9b){var _0x2f522b=_0x5d50c5;_0xeabcf3['go'](_0x2f522b('0x1775'),{'id':_0xf7fa9b['id']});}function _0x57f761(){var _0x3af0c9=_0x5d50c5;_0xeabcf3['go'](_0x3af0c9('0x154e'),{},{'reload':'app.tools.customDashboards'});}function _0x535477(){var _0x34179d=_0x5d50c5;_0x3f1b32[_0x34179d('0x55')][_0x34179d('0x264e')]({'id':_0x21d5de[_0x34179d('0x2635')]['id']},_0x21d5de[_0x34179d('0x2635')])[_0x34179d('0x1dc2')]['then'](function(){var _0x44a4fb=_0x34179d;_0x5561db[_0x44a4fb('0xe10')]({'title':_0x44a4fb('0xa6e'),'msg':_0x21d5de[_0x44a4fb('0x2635')][_0x44a4fb('0x25d6')]?_0x21d5de['customDashboard']['name']+_0x44a4fb('0x1734'):''});})['catch'](function(_0x2862b2){var _0x355caa=_0x34179d;_0x5561db[_0x355caa('0x187f')]({'title':_0x2862b2[_0x355caa('0x2fa')]?_0x355caa('0x16c2')+_0x2862b2[_0x355caa('0x2fa')]+_0x355caa('0x169e')+_0x2862b2[_0x355caa('0x24df')]:_0x355caa('0xd4'),'msg':_0x2862b2[_0x355caa('0x10fd')]?JSON['stringify'](_0x2862b2['data']):_0x2862b2[_0x355caa('0x684')]()});});}}const _0x22df7a=_0x5b6aed;_0x752055[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'intervals',_0x1a8446('0x1c21'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x752055(_0x43dcba,_0x4f3331,_0x149c5f,_0x273ebf,_0x2839f5,_0x4dbdd8,_0x4d732f,_0x626651,_0x310ab7,_0x3f4280,_0x5d8e6c,_0xee04c8,_0x4d5f76,_0x1ce32b){var _0x1e64cb=_0x1a8446,_0x2b8c8b=this;_0x2b8c8b[_0x1e64cb('0x7fc')]=_0x5d8e6c[_0x1e64cb('0xacc')](),_0x2b8c8b[_0x1e64cb('0x4c6')]=[],_0x2b8c8b['setting']=_0x4d5f76,_0x2b8c8b['license']=_0xee04c8,_0x2b8c8b['crudPermissions']=_0x1ce32b,_0x2b8c8b[_0x1e64cb('0x9f0')]={},_0x2b8c8b[_0x1e64cb('0x1d53')]=_0x2b8c8b[_0x1e64cb('0x143f')]&&_0x2b8c8b['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b8c8b[_0x1e64cb('0x110a')]=_0x1e64cb('0x14b0'),_0x2b8c8b['interval']=angular[_0x1e64cb('0x20a')](_0x310ab7),_0x2b8c8b[_0x1e64cb('0x2568')]=_0x626651,_0x2b8c8b[_0x1e64cb('0x740')]=![];!_0x2b8c8b[_0x1e64cb('0x1c21')]&&(_0x2b8c8b[_0x1e64cb('0x1c21')]={},_0x2b8c8b[_0x1e64cb('0x110a')]=_0x1e64cb('0x11d5'),_0x2b8c8b[_0x1e64cb('0x740')]=!![]);_0x2b8c8b['addNewInterval']=_0x1d4fab,_0x2b8c8b[_0x1e64cb('0x1570')]=_0x40a7b0,_0x2b8c8b[_0x1e64cb('0x253a')]=_0x1fd66c,_0x2b8c8b[_0x1e64cb('0xc09')]=_0x14faf6,_0x2b8c8b[_0x1e64cb('0x2023')]=_0xa30670;function _0x1d4fab(){var _0x2e57d8=_0x1e64cb;_0x2b8c8b[_0x2e57d8('0x4c6')]=[],_0x3f4280['interval'][_0x2e57d8('0x242b')](_0x2b8c8b[_0x2e57d8('0x1c21')])[_0x2e57d8('0x1dc2')][_0x2e57d8('0xaa5')](function(_0x8a4a6d){var _0x44ce70=_0x2e57d8;_0x2b8c8b[_0x44ce70('0x2568')][_0x44ce70('0x6ee')](_0x8a4a6d[_0x44ce70('0x256a')]()),_0x4d732f[_0x44ce70('0xe10')]({'title':_0x44ce70('0x1041'),'msg':_0x2b8c8b[_0x44ce70('0x1c21')][_0x44ce70('0x25d6')]?_0x2b8c8b[_0x44ce70('0x1c21')]['name']+_0x44ce70('0xdca'):''}),_0xa30670(_0x8a4a6d);})[_0x2e57d8('0x253d')](function(_0xfd7340){var _0x1b9768=_0x2e57d8;if(_0xfd7340[_0x1b9768('0x10fd')]&&_0xfd7340[_0x1b9768('0x10fd')][_0x1b9768('0x4c6')]&&_0xfd7340[_0x1b9768('0x10fd')]['errors'][_0x1b9768('0x2587')]){_0x2b8c8b[_0x1b9768('0x4c6')]=_0xfd7340[_0x1b9768('0x10fd')][_0x1b9768('0x4c6')]||[{'message':_0xfd7340[_0x1b9768('0x684')](),'type':'api.interval.save'}];for(var _0x1c5d6b=0x0;_0x1c5d6b<_0xfd7340['data'][_0x1b9768('0x4c6')][_0x1b9768('0x2587')];_0x1c5d6b+=0x1){_0x4d732f[_0x1b9768('0x187f')]({'title':_0xfd7340['data']['errors'][_0x1c5d6b]['type'],'msg':_0xfd7340[_0x1b9768('0x10fd')][_0x1b9768('0x4c6')][_0x1c5d6b][_0x1b9768('0x1402')]});}}else _0x4d732f[_0x1b9768('0x187f')]({'title':_0xfd7340[_0x1b9768('0x2fa')]?'API:'+_0xfd7340['status']+_0x1b9768('0x169e')+_0xfd7340['statusText']:'api.interval.save','msg':_0xfd7340[_0x1b9768('0x10fd')]?JSON[_0x1b9768('0xa48')](_0xfd7340[_0x1b9768('0x10fd')][_0x1b9768('0x1402')]):_0xfd7340[_0x1b9768('0x684')]()});});}function _0x40a7b0(){var _0xc064de=_0x1e64cb;_0x2b8c8b[_0xc064de('0x4c6')]=[],_0x3f4280[_0xc064de('0x1c21')][_0xc064de('0x264e')]({'id':_0x2b8c8b['interval']['id']},_0x2b8c8b[_0xc064de('0x1c21')])[_0xc064de('0x1dc2')][_0xc064de('0xaa5')](function(_0x356ce1){var _0x3b3468=_0xc064de,_0x53a90c=_0x51538b()[_0x3b3468('0xe9e')](_0x2b8c8b[_0x3b3468('0x2568')],{'id':_0x356ce1['id']});_0x53a90c&&_0x51538b()[_0x3b3468('0x283c')](_0x53a90c,_0x51538b()[_0x3b3468('0x104e')](_0x356ce1[_0x3b3468('0x256a')](),_0x51538b()['keys'](_0x53a90c))),_0x4d732f[_0x3b3468('0xe10')]({'title':_0x3b3468('0x68b'),'msg':_0x2b8c8b[_0x3b3468('0x1c21')][_0x3b3468('0x25d6')]?_0x2b8c8b[_0x3b3468('0x1c21')][_0x3b3468('0x25d6')]+_0x3b3468('0x20bf'):''}),_0xa30670(_0x356ce1);})[_0xc064de('0x253d')](function(_0x3b80c2){var _0x5ef65c=_0xc064de;if(_0x3b80c2[_0x5ef65c('0x10fd')]&&_0x3b80c2['data'][_0x5ef65c('0x4c6')]&&_0x3b80c2[_0x5ef65c('0x10fd')][_0x5ef65c('0x4c6')]['length']){_0x2b8c8b['errors']=_0x3b80c2[_0x5ef65c('0x10fd')][_0x5ef65c('0x4c6')]||[{'message':_0x3b80c2[_0x5ef65c('0x684')](),'type':_0x5ef65c('0x83d')}];for(var _0x551ae5=0x0;_0x551ae5<_0x3b80c2[_0x5ef65c('0x10fd')]['errors'][_0x5ef65c('0x2587')];_0x551ae5++){_0x4d732f['error']({'title':_0x3b80c2['data'][_0x5ef65c('0x4c6')][_0x551ae5][_0x5ef65c('0x6c8')],'msg':_0x3b80c2[_0x5ef65c('0x10fd')][_0x5ef65c('0x4c6')][_0x551ae5]['message']});}}else _0x4d732f[_0x5ef65c('0x187f')]({'title':_0x3b80c2[_0x5ef65c('0x2fa')]?_0x5ef65c('0x16c2')+_0x3b80c2[_0x5ef65c('0x2fa')]+'\x20-\x20'+_0x3b80c2[_0x5ef65c('0x24df')]:_0x5ef65c('0x83d'),'msg':_0x3b80c2[_0x5ef65c('0x10fd')]?JSON['stringify'](_0x3b80c2[_0x5ef65c('0x10fd')]['message']):_0x3b80c2[_0x5ef65c('0x684')]()});});}function _0x1fd66c(_0x4cfd70){var _0x392e18=_0x1e64cb;_0x2b8c8b[_0x392e18('0x4c6')]=[];var _0x16971a=_0x273ebf[_0x392e18('0x281e')]()['title'](_0x392e18('0x12a3'))[_0x392e18('0x15af')](_0x392e18('0x16f7'))[_0x392e18('0x5b5')](_0x392e18('0x392'))['ok'](_0x392e18('0x1e76'))[_0x392e18('0x2030')](_0x392e18('0x9c6'))['targetEvent'](_0x4cfd70);_0x273ebf[_0x392e18('0x1e6d')](_0x16971a)['then'](function(){var _0x30572b=_0x392e18;_0x3f4280[_0x30572b('0x1c21')]['delete']({'id':_0x2b8c8b[_0x30572b('0x1c21')]['id']})[_0x30572b('0x1dc2')][_0x30572b('0xaa5')](function(){var _0xa3c998=_0x30572b;_0x51538b()[_0xa3c998('0xf6d')](_0x2b8c8b[_0xa3c998('0x2568')],{'id':_0x2b8c8b[_0xa3c998('0x1c21')]['id']}),_0x4d732f[_0xa3c998('0xe10')]({'title':_0xa3c998('0x2331'),'msg':(_0x2b8c8b[_0xa3c998('0x1c21')][_0xa3c998('0x25d6')]||_0xa3c998('0x1c21'))+_0xa3c998('0xcd9')}),_0xa30670(_0x2b8c8b[_0xa3c998('0x1c21')]);})[_0x30572b('0x253d')](function(_0x13c42b){var _0x50c43d=_0x30572b;if(_0x13c42b[_0x50c43d('0x10fd')]&&_0x13c42b['data']['errors']&&_0x13c42b[_0x50c43d('0x10fd')][_0x50c43d('0x4c6')][_0x50c43d('0x2587')]){_0x2b8c8b[_0x50c43d('0x4c6')]=_0x13c42b['data'][_0x50c43d('0x4c6')]||[{'message':_0x13c42b['toString'](),'type':'api.interval.delete'}];for(var _0x541d21=0x0;_0x541d21<_0x13c42b[_0x50c43d('0x10fd')]['errors'][_0x50c43d('0x2587')];_0x541d21++){_0x4d732f[_0x50c43d('0x187f')]({'title':_0x13c42b[_0x50c43d('0x10fd')]['errors'][_0x541d21][_0x50c43d('0x6c8')],'msg':_0x13c42b[_0x50c43d('0x10fd')][_0x50c43d('0x4c6')][_0x541d21][_0x50c43d('0x1402')]});}}else _0x4d732f['error']({'title':_0x13c42b[_0x50c43d('0x2fa')]?_0x50c43d('0x16c2')+_0x13c42b[_0x50c43d('0x2fa')]+_0x50c43d('0x169e')+_0x13c42b['statusText']:'api.interval.delete','msg':_0x13c42b[_0x50c43d('0x10fd')]?JSON[_0x50c43d('0xa48')](_0x13c42b['data'][_0x50c43d('0x1402')]):_0x13c42b[_0x50c43d('0x1402')]||_0x13c42b[_0x50c43d('0x684')]()});});},function(){});}function _0x14faf6(_0x117e2d){return _0x117e2d===null?undefined:new Date(_0x117e2d);}function _0xa30670(_0x23b971){var _0x2369b0=_0x1e64cb;_0x273ebf[_0x2369b0('0x1120')](_0x23b971);}}const _0x597560=_0x752055;_0xba2d7f[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x2378'),_0x1a8446('0x2658'),_0x1a8446('0x197b'),_0x1a8446('0x1c21'),_0x1a8446('0x2568'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0xba2d7f(_0x2aeebc,_0xdf94ab,_0x5dc30d,_0xc8dcff,_0x12078a,_0x47c85b,_0x5ca17b,_0x19ee7a,_0x44b47e,_0x2e5843){var _0x1428b0=_0x1a8446,_0xc8b157=this;_0xc8b157[_0x1428b0('0x7fc')]=_0x44b47e[_0x1428b0('0xacc')](),_0xc8b157[_0x1428b0('0x4c6')]=[],_0xc8b157[_0x1428b0('0x110a')]=_0x1428b0('0x14b0'),_0xc8b157[_0x1428b0('0x1c21')]=angular[_0x1428b0('0x20a')](_0x12078a),_0xc8b157[_0x1428b0('0x2568')]=_0x47c85b,_0xc8b157[_0x1428b0('0x740')]=![],_0xc8b157[_0x1428b0('0x11e9')]=['always',_0x1428b0('0x113b')],_0xc8b157['crudPermissions']=_0x2e5843,_0xc8b157[_0x1428b0('0xbe6')]=_0xc8dcff[_0x1428b0('0x1529')](),_0xc8b157[_0x1428b0('0x21a9')]=_0xc8dcff[_0x1428b0('0x23fa')](),_0xc8b157[_0x1428b0('0x672')]=_0xc8dcff['getMonthName'](),_0xc8b157[_0x1428b0('0x1469')]=_0xc8dcff[_0x1428b0('0x74a')]();if(!_0xc8b157[_0x1428b0('0x1c21')])_0xc8b157[_0x1428b0('0x1c21')]={'interval':'*,*,*,*'},_0xc8b157[_0x1428b0('0x6c8')]=_0x1428b0('0x1b43'),_0xc8b157['title']='TOOLS.NEW_INTERVAL',_0xc8b157['newInterval']=!![];else{if(_0xc8b157[_0x1428b0('0x1c21')][_0x1428b0('0x1c21')]!==_0x1428b0('0x1ac6')){_0xc8b157['type']='custom';var _0x32f942=_0xc8b157[_0x1428b0('0x1c21')][_0x1428b0('0x1c21')][_0x1428b0('0x1a39')](','),_0xd6918b=_0x32f942[0x0],_0x3efd68=_0x32f942[0x1],_0xce3d16=_0x32f942[0x2],_0x5d844e=_0x32f942[0x3];if(_0xd6918b!=='*'){var _0x1eb315=_0xd6918b[_0x1428b0('0x1a39')]('-')[0x0],_0x40a39b=_0xd6918b[_0x1428b0('0x1a39')]('-')[0x1],_0x2a4c3e;_0x2a4c3e=new Date(),_0x2a4c3e[_0x1428b0('0x807')](Number(_0x1eb315[_0x1428b0('0x1a39')](':')[0x0])),_0x2a4c3e['setMinutes'](Number(_0x1eb315[_0x1428b0('0x1a39')](':')[0x1])),_0xc8b157['timeRangeFrom']=_0x2a4c3e,_0x2a4c3e=new Date(),_0x2a4c3e['setHours'](Number(_0x40a39b[_0x1428b0('0x1a39')](':')[0x0])),_0x2a4c3e[_0x1428b0('0xb43')](Number(_0x40a39b[_0x1428b0('0x1a39')](':')[0x1])),_0xc8b157[_0x1428b0('0x815')]=_0x2a4c3e;}_0x3efd68!=='*'&&(_0xc8b157[_0x1428b0('0x1fa3')]=_0x3efd68[_0x1428b0('0x1a39')]('-')[0x0],_0xc8b157[_0x1428b0('0xc93')]=_0x3efd68['split']('-')[0x1]),_0xce3d16!=='*'&&(_0xc8b157[_0x1428b0('0x19d0')]=_0xce3d16[_0x1428b0('0x1a39')]('-')[0x0],_0xc8b157[_0x1428b0('0x2c3')]=_0xce3d16[_0x1428b0('0x1a39')]('-')[0x1]),_0x5d844e!=='*'&&(_0xc8b157['monthFrom']=_0x5d844e[_0x1428b0('0x1a39')]('-')[0x0],_0xc8b157['monthTo']=_0x5d844e[_0x1428b0('0x1a39')]('-')[0x1]);}else _0xc8b157[_0x1428b0('0x6c8')]=_0x1428b0('0x1b43');}_0x2aeebc[_0x1428b0('0x25cf')]['id']&&!_0xc8b157[_0x1428b0('0x1c21')][_0x1428b0('0xe45')]&&(_0xc8b157['interval'][_0x1428b0('0x1f8c')]=_0x2aeebc[_0x1428b0('0x25cf')]['id']);_0xc8b157[_0x1428b0('0x1c21')][_0x1428b0('0x1f8c')]&&_0xc8b157[_0x1428b0('0x1c21')][_0x1428b0('0xe45')]&&(_0xc8b157[_0x1428b0('0x6c8')]=_0x1428b0('0x2334'));_0xc8b157['addNewInterval']=_0x1dc842,_0xc8b157[_0x1428b0('0x1570')]=_0x5232b3,_0xc8b157[_0x1428b0('0x2023')]=_0x5fc22a;_0xc8b157['interval'][_0x1428b0('0xe45')]&&(_0x44b47e['hasRole']('admin')?_0x19ee7a[_0x1428b0('0x1c21')][_0x1428b0('0x2122')]({'fields':_0x1428b0('0x1a33'),'IntervalId':_0x1428b0('0x1ed9'),'nolimit':!![]})[_0x1428b0('0x1dc2')][_0x1428b0('0xaa5')](function(_0x2d606c){var _0x59439e=_0x1428b0;_0xc8b157[_0x59439e('0x2568')]=_0x2d606c[_0x59439e('0x580')]||[];})[_0x1428b0('0x253d')](function(_0x475a9b){var _0x13523b=_0x1428b0;_0x5ca17b[_0x13523b('0x187f')]({'title':_0x475a9b[_0x13523b('0x2fa')]?_0x13523b('0x16c2')+_0x475a9b[_0x13523b('0x2fa')]+'\x20-\x20'+_0x475a9b['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x475a9b[_0x13523b('0x10fd')]?JSON[_0x13523b('0xa48')](_0x475a9b[_0x13523b('0x10fd')]):_0x475a9b[_0x13523b('0x684')]()});}):_0x19ee7a[_0x1428b0('0x1c21')][_0x1428b0('0x2122')]({'fields':_0x1428b0('0x1a33'),'IntervalId':_0x1428b0('0x1ed9'),'nolimit':!![]})[_0x1428b0('0x1dc2')][_0x1428b0('0xaa5')](function(_0x2fada0){var _0x1e9c9b=_0x1428b0;_0xc8b157[_0x1e9c9b('0x2568')]=_0x2fada0[_0x1e9c9b('0x580')]||[];})[_0x1428b0('0xaa5')](function(){var _0x59a88f=_0x1428b0;return _0x19ee7a[_0x59a88f('0x1a50')][_0x59a88f('0x2122')]({'userProfileId':_0xc8b157[_0x59a88f('0x7fc')][_0x59a88f('0x2168')],'sectionId':0x3ec})[_0x59a88f('0x1dc2')];})[_0x1428b0('0xaa5')](function(_0x33663d){var _0x30dbf0=_0x1428b0,_0x3a0d72=_0x33663d&&_0x33663d[_0x30dbf0('0x580')]?_0x33663d['rows'][0x0]:null;if(!_0x3a0d72)_0xc8b157[_0x30dbf0('0x2568')]=[];else{if(!_0x3a0d72[_0x30dbf0('0x26cc')])return _0x19ee7a[_0x30dbf0('0x249a')][_0x30dbf0('0x2122')]({'sectionId':_0x3a0d72['id']})[_0x30dbf0('0x1dc2')]['then'](function(_0x4f9610){var _0x2dcb09=_0x30dbf0,_0x5e28d3=_0x4f9610&&_0x4f9610[_0x2dcb09('0x580')]?_0x4f9610[_0x2dcb09('0x580')]:[],_0x5c4d5d=[],_0x3d3b96=null;_0xc8b157[_0x2dcb09('0x1c21')]&&(_0x3d3b96=_0x51538b()[_0x2dcb09('0xe9e')](_0xc8b157['intervals'],{'name':_0xc8b157[_0x2dcb09('0x1c21')][_0x2dcb09('0x1f8c')]})),_0x3d3b96&&!_0x51538b()['some'](_0x5e28d3,[_0x2dcb09('0xbcd'),_0x3d3b96['id']])&&_0xc8b157['intervals'][_0x2dcb09('0x15b5')](function(_0x5122b){var _0xb803dd=_0x2dcb09;_0x5122b['id']===_0x3d3b96['id']&&(_0x5122b['canSelect']=![],_0x5c4d5d[_0xb803dd('0x1599')](_0x5122b));}),_0xc8b157[_0x2dcb09('0x2568')]=_0x5c4d5d;});}})['catch'](function(_0x15b915){var _0x32b991=_0x1428b0;_0x5ca17b[_0x32b991('0x187f')]({'title':_0x15b915['status']?_0x32b991('0x16c2')+_0x15b915[_0x32b991('0x2fa')]+'\x20-\x20'+_0x15b915[_0x32b991('0x24df')]:_0x32b991('0x3b0'),'msg':_0x15b915['data']?JSON[_0x32b991('0xa48')](_0x15b915['data']):_0x15b915[_0x32b991('0x684')]()});}));function _0x143c09(){var _0x623fed=_0x1428b0;switch(_0xc8b157[_0x623fed('0x6c8')]){case _0x623fed('0x1b43'):case _0x623fed('0x2334'):return'*,*,*,*';case _0x623fed('0x113b'):{var _0x3c617e=[];if(_0xc8b157[_0x623fed('0x1ee7')]!=='*'&&_0xc8b157[_0x623fed('0x1ee7')]&&_0xc8b157['timeRangeTo']){var _0x3ecc4e=(_0xc8b157[_0x623fed('0x1ee7')][_0x623fed('0x6a2')]()<0xa?'0':'')+_0xc8b157[_0x623fed('0x1ee7')][_0x623fed('0x6a2')]()+':'+((_0xc8b157[_0x623fed('0x1ee7')][_0x623fed('0x13a6')]()<0xa?'0':'')+_0xc8b157['timeRangeFrom'][_0x623fed('0x13a6')]()),_0x7e3501=(_0xc8b157['timeRangeTo'][_0x623fed('0x6a2')]()<0xa?'0':'')+_0xc8b157[_0x623fed('0x815')][_0x623fed('0x6a2')]()+':'+((_0xc8b157[_0x623fed('0x815')][_0x623fed('0x13a6')]()<0xa?'0':'')+_0xc8b157[_0x623fed('0x815')][_0x623fed('0x13a6')]());_0x3c617e[_0x623fed('0x1599')](_0x3ecc4e+'-'+_0x7e3501);}else _0x3c617e[_0x623fed('0x1599')]('*');return _0xc8b157[_0x623fed('0x1fa3')]?_0xc8b157[_0x623fed('0xc93')]?_0x3c617e[_0x623fed('0x1599')](_0xc8b157[_0x623fed('0x1fa3')]+'-'+_0xc8b157['dayOfWeekTo']):_0x3c617e['push'](_0xc8b157['dayOfWeekFrom']):_0x3c617e[_0x623fed('0x1599')]('*'),_0xc8b157[_0x623fed('0x19d0')]?_0xc8b157[_0x623fed('0x2c3')]?_0x3c617e['push'](_0xc8b157[_0x623fed('0x19d0')]+'-'+_0xc8b157['monthDayTo']):_0x3c617e['push'](_0xc8b157[_0x623fed('0x19d0')]):_0x3c617e['push']('*'),_0xc8b157[_0x623fed('0xcf9')]?_0xc8b157[_0x623fed('0x125f')]?_0x3c617e[_0x623fed('0x1599')](_0xc8b157['monthFrom']+'-'+_0xc8b157[_0x623fed('0x125f')]):_0x3c617e[_0x623fed('0x1599')](_0xc8b157[_0x623fed('0xcf9')]):_0x3c617e[_0x623fed('0x1599')]('*'),_0x3c617e[_0x623fed('0x19c4')]();}}}function _0x1dc842(){var _0x187ef4=_0x1428b0;_0xc8b157[_0x187ef4('0x4c6')]=[],_0xc8b157[_0x187ef4('0x1c21')][_0x187ef4('0x1c21')]=_0x143c09(),_0x19ee7a[_0x187ef4('0x1c21')][_0x187ef4('0x242b')](_0xc8b157[_0x187ef4('0x1c21')])[_0x187ef4('0x1dc2')][_0x187ef4('0xaa5')](function(_0x62c5f4){var _0x19da97=_0x187ef4;_0xc8b157['intervals'][_0x19da97('0x1599')](_0x62c5f4),_0x5ca17b[_0x19da97('0xe10')]({'title':'Interval\x20properly\x20created','msg':_0xc8b157['interval'][_0x19da97('0x25d6')]?_0xc8b157[_0x19da97('0x1c21')][_0x19da97('0x25d6')]+_0x19da97('0xdca'):''}),_0x5fc22a();})[_0x187ef4('0x253d')](function(_0x50559b){var _0x30f494=_0x187ef4;console[_0x30f494('0x187f')](_0x50559b),_0xc8b157['errors']=_0x50559b[_0x30f494('0x10fd')]['errors']||[{'message':_0x50559b['toString'](),'type':_0x30f494('0xbd7')}];});}function _0x5232b3(){var _0x2d7041=_0x1428b0;_0xc8b157[_0x2d7041('0x4c6')]=[],_0xc8b157[_0x2d7041('0x1c21')]['interval']=_0x143c09(),_0xc8b157[_0x2d7041('0x1c21')]['application']?(_0xc8b157[_0x2d7041('0x6c8')]!==_0x2d7041('0x2334')&&(_0xc8b157[_0x2d7041('0x1c21')][_0x2d7041('0x1f8c')]=null),_0x5fc22a(_0xc8b157['interval'])):_0x19ee7a[_0x2d7041('0x1c21')]['update']({'id':_0xc8b157[_0x2d7041('0x1c21')]['id']},_0xc8b157[_0x2d7041('0x1c21')])['$promise'][_0x2d7041('0xaa5')](function(_0x168101){var _0x5924a1=_0x2d7041,_0x39a4d8=_0x51538b()[_0x5924a1('0xe9e')](_0xc8b157[_0x5924a1('0x2568')],{'id':_0x168101['id']});_0x39a4d8&&_0x51538b()[_0x5924a1('0x283c')](_0x39a4d8,_0x168101),_0x5ca17b[_0x5924a1('0xe10')]({'title':_0x5924a1('0x68b'),'msg':_0x5924a1('0x257d')}),_0x5fc22a();})[_0x2d7041('0x253d')](function(_0x4ce59e){var _0x4f9273=_0x2d7041;console['error'](_0x4ce59e),_0xc8b157[_0x4f9273('0x4c6')]=_0x4ce59e[_0x4f9273('0x10fd')][_0x4f9273('0x4c6')]||[{'message':_0x4ce59e[_0x4f9273('0x684')](),'type':_0x4f9273('0x83d')}];});}function _0x5fc22a(_0x169112){var _0x51a43b=_0x1428b0;_0xdf94ab[_0x51a43b('0x1120')](_0x169112);}}const _0x3e5893=_0xba2d7f,_0x2bb2b1=_0x4fb511['p']+_0x1a8446('0x19b');_0x3a389f[_0x1a8446('0x1e33')]=['$cookies',_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),'toasty',_0x1a8446('0x157'),'Auth'];function _0x3a389f(_0x59dfa2,_0x80be0c,_0xf6d08b,_0x43d7cf,_0x3f9881,_0x10d588,_0x5ae217,_0x3848d1,_0x22cac3,_0x22c458,_0x5d39d6){var _0x5bd097=_0x1a8446,_0x3d3786=this;_0x3d3786[_0x5bd097('0x7fc')]=_0x5d39d6['getCurrentUser'](),_0x3d3786[_0x5bd097('0x1c21')]={},_0x3d3786[_0x5bd097('0x3eb')]={'count':0x0,'rows':[]},_0x3d3786['selectedIntervalIntervals']=[],_0x3d3786[_0x5bd097('0xada')],_0x3d3786[_0x5bd097('0x1c0c')]={'animation':0x64,'onSort':function _0x1e7284(_0x56a068){var _0x3672c7=_0x5bd097;_0x22c458['interval'][_0x3672c7('0x1168')]({'id':_0x3d3786[_0x3672c7('0x1c21')]['id']},_0x56a068[_0x3672c7('0xcf0')])[_0x3672c7('0x1dc2')]['then'](function(_0x4ba1c3){var _0x345cba=_0x3672c7;_0x3d3786[_0x345cba('0x3eb')]['rows']=_0x4ba1c3;})[_0x3672c7('0x253d')](function(_0x4f859c){var _0x4cb67e=_0x3672c7;_0x22cac3['error']({'title':_0x4f859c['status']?_0x4cb67e('0x16c2')+_0x4f859c[_0x4cb67e('0x2fa')]+_0x4cb67e('0x169e')+_0x4f859c[_0x4cb67e('0x24df')]:_0x4cb67e('0x1704'),'msg':_0x4f859c['data']?JSON[_0x4cb67e('0xa48')](_0x4f859c['data']):_0x4f859c[_0x4cb67e('0x684')]()});});}},_0x3d3786[_0x5bd097('0x582')]={'fields':_0x5bd097('0x11bd'),'nolimit':_0x5bd097('0x1c5c'),'limit':0xa,'page':0x1},_0x3d3786[_0x5bd097('0x2e')]=_0x17bbaa,_0x3d3786['deleteConfirm']=_0x19f316,_0x3d3786['success']=_0x525dfb,_0x3d3786[_0x5bd097('0x5d')]=_0x3b69ff,_0x3d3786[_0x5bd097('0xabf')]=_0x22ab06,_0x3d3786[_0x5bd097('0x1560')]=_0x4fbd07,_0x3d3786['deleteIntervalInterval']=_0x1a8ab2,_0x3d3786[_0x5bd097('0x25c9')]=_0x23ac90;function _0x17bbaa(_0x3a55e7,_0x3dc854){var _0x1d7efe=_0x5bd097;_0x3d3786['interval']=_0x3a55e7,_0x3d3786['crudPermissions']=typeof _0x3dc854!==_0x1d7efe('0x1574')?_0x3dc854:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3d3786['sortableTable'][_0x1d7efe('0x2686')]=!_0x3d3786['crudPermissions']['canEdit']?!![]:![],_0x3d3786['query']['id']=_0x3d3786[_0x1d7efe('0x1c21')]['id'],_0x3b69ff();}function _0x19f316(_0x34a914,_0x3ed87a){var _0x57aff9=_0x5bd097,_0x309868=_0x5ae217[_0x57aff9('0x281e')]()[_0x57aff9('0x110a')](_0x57aff9('0x2531'))[_0x57aff9('0x102e')](_0x57aff9('0x389')+(_0x34a914[_0x57aff9('0x25d6')]||_0x34a914['id']&&_0x51538b()[_0x57aff9('0x1791')]('interval\x20#')+_0x34a914['id']||'interval')+_0x57aff9('0x697')+_0x57aff9('0x210d'))['ariaLabel'](_0x57aff9('0x164e'))[_0x57aff9('0x116d')](_0x3ed87a)['ok']('OK')[_0x57aff9('0x2030')]('CANCEL');_0x5ae217[_0x57aff9('0x1e6d')](_0x309868)[_0x57aff9('0xaa5')](function(){_0x1a8ab2(_0x34a914);},function(){var _0x1c9873=_0x57aff9;console[_0x1c9873('0x18d5')](_0x1c9873('0x2410'));});}function _0x525dfb(_0x318d66){var _0x4f279d=_0x5bd097;_0x3d3786[_0x4f279d('0x3eb')]=_0x318d66||{'count':0x0,'rows':[]};}function _0x3b69ff(){var _0x3e97df=_0x5bd097;_0x3d3786['query'][_0x3e97df('0x8b1')]=(_0x3d3786['query'][_0x3e97df('0x41')]-0x1)*_0x3d3786['query'][_0x3e97df('0xf4d')],_0x3d3786[_0x3e97df('0x159a')]=_0x22c458[_0x3e97df('0x1c21')][_0x3e97df('0x1f55')](_0x3d3786['query'],_0x525dfb)[_0x3e97df('0x1dc2')];}function _0x22ab06(_0x189ea1,_0x1993c0){var _0x53df9f=_0x5bd097;_0x5ae217[_0x53df9f('0x1e6d')]({'controller':_0x53df9f('0x12db'),'controllerAs':'vm','templateUrl':_0x2bb2b1,'parent':angular[_0x53df9f('0x1aa8')](_0x3848d1['body']),'targetEvent':_0x189ea1,'clickOutsideToClose':!![],'locals':{'interval':_0x1993c0,'intervals':_0x3d3786[_0x53df9f('0x3eb')]['rows'],'license':null,'setting':null,'crudPermissions':_0x3d3786[_0x53df9f('0xada')]}});}function _0x1a8ab2(_0x4fec3b){var _0x53d12b=_0x5bd097;_0x22c458[_0x53d12b('0x1c21')]['delete']({'id':_0x4fec3b['id']})['$promise']['then'](function(){var _0x17b871=_0x53d12b;_0x51538b()[_0x17b871('0xf6d')](_0x3d3786['intervalIntervals'][_0x17b871('0x580')],{'id':_0x4fec3b['id']}),_0x3d3786['intervalIntervals'][_0x17b871('0xd15')]-=0x1,!_0x3d3786[_0x17b871('0x3eb')]['rows'][_0x17b871('0x2587')]&&_0x3b69ff(),_0x22cac3[_0x17b871('0xe10')]({'title':_0x17b871('0x25f'),'msg':_0x4fec3b[_0x17b871('0x25d6')]?_0x4fec3b[_0x17b871('0x25d6')]+_0x17b871('0xcd9'):''});})[_0x53d12b('0x253d')](function(_0x1e572a){var _0x27fb18=_0x53d12b;if(_0x1e572a[_0x27fb18('0x10fd')]&&_0x1e572a[_0x27fb18('0x10fd')][_0x27fb18('0x4c6')]&&_0x1e572a[_0x27fb18('0x10fd')][_0x27fb18('0x4c6')]['length']){_0x3d3786[_0x27fb18('0x4c6')]=_0x1e572a[_0x27fb18('0x10fd')][_0x27fb18('0x4c6')]||[{'message':_0x1e572a[_0x27fb18('0x684')](),'type':_0x27fb18('0x2313')}];for(var _0x119777=0x0;_0x119777<_0x1e572a[_0x27fb18('0x10fd')][_0x27fb18('0x4c6')][_0x27fb18('0x2587')];_0x119777++){_0x22cac3['error']({'title':_0x1e572a[_0x27fb18('0x10fd')][_0x27fb18('0x4c6')][_0x119777][_0x27fb18('0x6c8')],'msg':_0x1e572a[_0x27fb18('0x10fd')][_0x27fb18('0x4c6')][_0x119777][_0x27fb18('0x1402')]});}}else _0x22cac3[_0x27fb18('0x187f')]({'title':_0x1e572a['status']?_0x27fb18('0x16c2')+_0x1e572a[_0x27fb18('0x2fa')]+'\x20-\x20'+_0x1e572a[_0x27fb18('0x24df')]:'SYSTEM:GETinterval','msg':_0x1e572a[_0x27fb18('0x10fd')]?JSON[_0x27fb18('0xa48')](_0x1e572a[_0x27fb18('0x10fd')]['message']):_0x1e572a['message']||_0x1e572a[_0x27fb18('0x684')]()});});}function _0x4fbd07(){var _0x220671=_0x5bd097,_0x54be8c=angular[_0x220671('0x20a')](_0x3d3786[_0x220671('0x1edf')]);return _0x3d3786[_0x220671('0x1edf')]=[],_0x54be8c;}function _0x23ac90(_0x29c32a){var _0x2d5b50=_0x5bd097,_0xe83130=_0x5ae217[_0x2d5b50('0x281e')]()[_0x2d5b50('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?')['htmlContent'](_0x2d5b50('0x389')+_0x3d3786['selectedIntervalIntervals'][_0x2d5b50('0x2587')]+_0x2d5b50('0x1443')+_0x2d5b50('0x210d'))[_0x2d5b50('0x5b5')]('delete\x20intervals')['targetEvent'](_0x29c32a)['ok']('OK')[_0x2d5b50('0x2030')](_0x2d5b50('0x2410'));_0x5ae217[_0x2d5b50('0x1e6d')](_0xe83130)[_0x2d5b50('0xaa5')](function(){var _0x5547b7=_0x2d5b50;_0x3d3786[_0x5547b7('0x1edf')][_0x5547b7('0x15b5')](function(_0x2b802c){_0x1a8ab2(_0x2b802c);}),_0x3d3786[_0x5547b7('0x1edf')]=[];});}var _0x2bbc81=!![],_0x10fb1e=0x1;_0x80be0c[_0x5bd097('0x1ccf')](_0x5bd097('0x74c'),function(_0x18b4fd,_0x168b7f){var _0x459690=_0x5bd097;_0x2bbc81?_0x10d588(function(){_0x2bbc81=![];}):(!_0x168b7f&&(_0x10fb1e=_0x3d3786[_0x459690('0x582')][_0x459690('0x41')]),_0x18b4fd!==_0x168b7f&&(_0x3d3786['query'][_0x459690('0x41')]=0x1),!_0x18b4fd&&(_0x3d3786[_0x459690('0x582')][_0x459690('0x41')]=_0x10fb1e),_0x3b69ff());});}const _0x173385=_0x3a389f;_0x303316[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1c21'),_0x1a8446('0x1a50')];function _0x303316(_0x2138e6,_0xe132c0,_0x4f11b4,_0x467b85,_0x4a2fc0,_0x478a8c,_0x8626c9,_0x318f88,_0x3a4e92,_0x248d1d,_0xad1d47,_0x589005){var _0x47eefd=_0x1a8446,_0x5a3325=this;_0x5a3325[_0x47eefd('0x7fc')]=_0x248d1d[_0x47eefd('0xacc')](),_0x5a3325['license']=_0x478a8c,_0x5a3325[_0x47eefd('0x143f')]=_0x8626c9,_0x5a3325[_0x47eefd('0x1d53')]=_0x5a3325[_0x47eefd('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5a3325[_0x47eefd('0x18cc')]=_0xe132c0[_0x47eefd('0x1cc2')]()+_0x47eefd('0x356')+_0xe132c0['host'](),_0x5a3325[_0x47eefd('0x1c21')]=_0xad1d47||_0x2138e6[_0x47eefd('0x25cf')][_0x47eefd('0x1c21')]||{},_0x5a3325['userProfileSection']=_0x589005&&_0x589005[_0x47eefd('0xd15')]==0x1?_0x589005[_0x47eefd('0x580')][0x0]:null,_0x5a3325[_0x47eefd('0xada')]=_0x248d1d[_0x47eefd('0xffd')](_0x5a3325[_0x47eefd('0x1a50')]?_0x5a3325[_0x47eefd('0x1a50')][_0x47eefd('0xada')]:null),_0x5a3325[_0x47eefd('0x9f0')]={},_0x5a3325[_0x47eefd('0xe5c')]=_0x2138e6[_0x47eefd('0x25cf')]['tab']||0x0,_0x5a3325[_0x47eefd('0xc10')]=_0x3a4e92[_0x47eefd('0x3a1')],_0x5a3325['gotoIntervals']=_0x1d0426,_0x5a3325[_0x47eefd('0x1570')]=_0x176174;function _0x1d0426(){var _0x3bd54a=_0x47eefd;_0x2138e6['go'](_0x3bd54a('0x14d'),{},{'reload':'app.tools.intervals'});}function _0x176174(){var _0x260efa=_0x47eefd;_0x318f88['interval']['update']({'id':_0x5a3325[_0x260efa('0x1c21')]['id']},_0x5a3325[_0x260efa('0x1c21')])[_0x260efa('0x1dc2')][_0x260efa('0xaa5')](function(){var _0x458f3e=_0x260efa;_0x3a4e92[_0x458f3e('0xe10')]({'title':_0x458f3e('0x15c5'),'msg':_0x5a3325['interval'][_0x458f3e('0x25d6')]?_0x5a3325['interval']['name']+_0x458f3e('0x1734'):''});})[_0x260efa('0x253d')](function(_0x2fdd58){var _0x7b9e8d=_0x260efa;_0x3a4e92[_0x7b9e8d('0x187f')]({'title':_0x2fdd58['status']?_0x7b9e8d('0x16c2')+_0x2fdd58[_0x7b9e8d('0x2fa')]+_0x7b9e8d('0x169e')+_0x2fdd58[_0x7b9e8d('0x24df')]:_0x7b9e8d('0x2313'),'msg':_0x2fdd58[_0x7b9e8d('0x10fd')]?JSON['stringify'](_0x2fdd58['data']):_0x2fdd58['toString']()});});}}const _0x2afee6=_0x303316,_0x580309=_0x4fb511['p']+_0x1a8446('0xcc2');_0x1a50ff[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),'$translate',_0x1a8446('0x2568'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),'Auth','license',_0x1a8446('0x143f')];function _0x1a50ff(_0x2d9edd,_0x13679a,_0x473874,_0x2fca4e,_0x5a7f19,_0x3f75fd,_0x20679f,_0x2a8cee,_0x20fe38,_0x2adf1d,_0x4a0f4b,_0x3bc5ef,_0x45e616,_0x1da757,_0x519210,_0x2b242a,_0x4902cc){var _0x4bfd0c=_0x1a8446,_0x29fba9=this;_0x29fba9[_0x4bfd0c('0x1202')]=_0x2b242a,_0x29fba9[_0x4bfd0c('0x143f')]=_0x4902cc,_0x29fba9[_0x4bfd0c('0x7fc')]=_0x519210[_0x4bfd0c('0xacc')](),_0x29fba9['intervals']=_0x20fe38||{'count':0x0,'rows':[]},_0x29fba9['userProfile']=_0x2adf1d,_0x29fba9[_0x4bfd0c('0x1a50')]=_0x4a0f4b&&_0x4a0f4b[_0x4bfd0c('0xd15')]==0x1?_0x4a0f4b[_0x4bfd0c('0x580')][0x0]:null,_0x29fba9[_0x4bfd0c('0xada')]=_0x519210[_0x4bfd0c('0xffd')](_0x29fba9['userProfileSection']?_0x29fba9[_0x4bfd0c('0x1a50')][_0x4bfd0c('0xada')]:null),_0x29fba9[_0x4bfd0c('0x12b6')]=_0x4bfd0c('0x2568'),_0x29fba9[_0x4bfd0c('0x164')]='',_0x29fba9['listOrderAsc']=null,_0x29fba9[_0x4bfd0c('0x1142')]=[],_0x29fba9[_0x4bfd0c('0x582')]={'fields':_0x4bfd0c('0x1798'),'sort':_0x4bfd0c('0xd82'),'IntervalId':'null','limit':0xa,'page':0x1},_0x29fba9[_0x4bfd0c('0x1927')]=_0x170bbf,_0x29fba9[_0x4bfd0c('0x271')]=_0x17b5f7,_0x29fba9[_0x4bfd0c('0xe10')]=_0x120ee2,_0x29fba9[_0x4bfd0c('0x1f55')]=_0x15fd6f,_0x29fba9[_0x4bfd0c('0x28c')]=_0x473a75,_0x29fba9[_0x4bfd0c('0x253a')]=_0x46716d,_0x29fba9['exportSelectedIntervals']=_0xf378c9,_0x29fba9[_0x4bfd0c('0x2e2')]=_0xa0c9b1,_0x29fba9['deselectIntervals']=_0x1dd3b5,_0x29fba9[_0x4bfd0c('0x42')]=_0x486714;function _0x170bbf(_0x321e32){var _0x430d61=_0x4bfd0c;_0x473874['go'](_0x430d61('0x11fc'),{'id':_0x321e32['id'],'interval':_0x321e32,'crudPermissions':_0x29fba9[_0x430d61('0xada')]});}function _0x17b5f7(_0x172ed9,_0x403f55){var _0x227111=_0x4bfd0c,_0x57ec0b=_0x5a7f19[_0x227111('0x281e')]()['title'](_0x227111('0x88d')+_0x51538b()['startCase'](_0x227111('0x1c21'))+'?')[_0x227111('0x102e')](_0x227111('0x389')+(_0x172ed9['name']||_0x227111('0x1c21'))+_0x227111('0x697')+_0x227111('0x210d'))[_0x227111('0x5b5')]('delete\x20interval')['targetEvent'](_0x403f55)['ok']('OK')[_0x227111('0x2030')](_0x227111('0x2410'));_0x5a7f19['show'](_0x57ec0b)[_0x227111('0xaa5')](function(){_0x46716d(_0x172ed9);},function(){var _0x363ac9=_0x227111;console['log'](_0x363ac9('0x2410'));});}var _0x42fd28=!![],_0x45e12c=0x1;_0x2d9edd['$watch']('vm.query.filter',function(_0x4cfe56,_0x3ac993){var _0x551f5e=_0x4bfd0c;_0x42fd28?_0x20679f(function(){_0x42fd28=![];}):(!_0x3ac993&&(_0x45e12c=_0x29fba9[_0x551f5e('0x582')][_0x551f5e('0x41')]),_0x4cfe56!==_0x3ac993&&(_0x29fba9[_0x551f5e('0x582')][_0x551f5e('0x41')]=0x1),!_0x4cfe56&&(_0x29fba9[_0x551f5e('0x582')][_0x551f5e('0x41')]=_0x45e12c),_0x29fba9['getIntervals']());});function _0x120ee2(_0x272cb3){_0x29fba9['intervals']=_0x272cb3||{'count':0x0,'rows':[]};}function _0x15fd6f(){var _0x194ceb=_0x4bfd0c;_0x29fba9[_0x194ceb('0x582')][_0x194ceb('0x8b1')]=(_0x29fba9[_0x194ceb('0x582')][_0x194ceb('0x41')]-0x1)*_0x29fba9[_0x194ceb('0x582')][_0x194ceb('0xf4d')],_0x519210[_0x194ceb('0x26e8')](_0x194ceb('0x178b'))?_0x29fba9[_0x194ceb('0x159a')]=_0x3bc5ef[_0x194ceb('0x1c21')][_0x194ceb('0x2122')](_0x29fba9[_0x194ceb('0x582')],_0x120ee2)[_0x194ceb('0x1dc2')]:(_0x29fba9[_0x194ceb('0x582')]['id']=_0x29fba9[_0x194ceb('0x1e97')]['id'],_0x29fba9[_0x194ceb('0x582')]['section']='Intervals',_0x29fba9[_0x194ceb('0x159a')]=_0x3bc5ef['userProfile'][_0x194ceb('0x1cf1')](_0x29fba9[_0x194ceb('0x582')],_0x120ee2)[_0x194ceb('0x1dc2')]);}function _0x473a75(_0x4b2d86,_0x48df9b){var _0x158249=_0x4bfd0c;_0x5a7f19[_0x158249('0x1e6d')]({'controller':_0x158249('0xa8a'),'controllerAs':'vm','templateUrl':_0x580309,'parent':angular[_0x158249('0x1aa8')](_0x3f75fd[_0x158249('0x54c')]),'targetEvent':_0x4b2d86,'clickOutsideToClose':!![],'locals':{'interval':_0x48df9b,'intervals':_0x29fba9[_0x158249('0x2568')][_0x158249('0x580')],'license':_0x29fba9[_0x158249('0x1202')],'setting':_0x29fba9[_0x158249('0x143f')],'crudPermissions':_0x29fba9[_0x158249('0xada')]}});}function _0x46716d(_0x27d0bf){var _0x4093d3=_0x4bfd0c;_0x3bc5ef['interval'][_0x4093d3('0x926')]({'id':_0x27d0bf['id']})[_0x4093d3('0x1dc2')][_0x4093d3('0xaa5')](function(){var _0x18902e=_0x4093d3;_0x51538b()[_0x18902e('0xf6d')](_0x29fba9[_0x18902e('0x2568')][_0x18902e('0x580')],{'id':_0x27d0bf['id']}),_0x29fba9[_0x18902e('0x2568')][_0x18902e('0xd15')]-=0x1,!_0x29fba9[_0x18902e('0x2568')][_0x18902e('0x580')][_0x18902e('0x2587')]&&_0x29fba9[_0x18902e('0x1f55')](),_0x1da757[_0x18902e('0xe10')]({'title':_0x51538b()[_0x18902e('0x196a')](_0x18902e('0x260f'))+'\x20deleted!','msg':_0x27d0bf[_0x18902e('0x25d6')]?_0x27d0bf[_0x18902e('0x25d6')]+_0x18902e('0xcd9'):''});})[_0x4093d3('0x253d')](function(_0x2e8f18){var _0x309960=_0x4093d3;if(_0x2e8f18[_0x309960('0x10fd')]&&_0x2e8f18['data']['errors']&&_0x2e8f18[_0x309960('0x10fd')][_0x309960('0x4c6')]['length']){_0x29fba9[_0x309960('0x4c6')]=_0x2e8f18[_0x309960('0x10fd')][_0x309960('0x4c6')]||[{'message':_0x2e8f18[_0x309960('0x684')](),'type':_0x309960('0x20a9')}];for(var _0x52a377=0x0;_0x52a377<_0x2e8f18[_0x309960('0x10fd')][_0x309960('0x4c6')][_0x309960('0x2587')];_0x52a377++){_0x1da757[_0x309960('0x187f')]({'title':_0x2e8f18[_0x309960('0x10fd')][_0x309960('0x4c6')][_0x52a377][_0x309960('0x6c8')],'msg':_0x2e8f18[_0x309960('0x10fd')][_0x309960('0x4c6')][_0x52a377][_0x309960('0x1402')]});}}else _0x1da757[_0x309960('0x187f')]({'title':_0x2e8f18[_0x309960('0x2fa')]?_0x309960('0x16c2')+_0x2e8f18[_0x309960('0x2fa')]+'\x20-\x20'+_0x2e8f18['statusText']:_0x309960('0x20a9'),'msg':_0x2e8f18[_0x309960('0x10fd')]?JSON[_0x309960('0xa48')](_0x2e8f18[_0x309960('0x10fd')][_0x309960('0x1402')]):_0x2e8f18[_0x309960('0x1402')]||_0x2e8f18[_0x309960('0x684')]()});});}function _0xf378c9(){var _0x5507d7=_0x4bfd0c,_0x9414e6=angular['copy'](_0x29fba9['selectedIntervals']);return _0x29fba9[_0x5507d7('0x1142')]=[],_0x9414e6;}function _0xa0c9b1(_0x1ed517){var _0x178a13=_0x4bfd0c,_0x2c7925=_0x5a7f19[_0x178a13('0x281e')]()['title'](_0x178a13('0x1eb7'))[_0x178a13('0x102e')](_0x178a13('0x389')+_0x29fba9[_0x178a13('0x1142')][_0x178a13('0x2587')]+'\x20selected'+_0x178a13('0x210d'))[_0x178a13('0x5b5')](_0x178a13('0x1271'))[_0x178a13('0x116d')](_0x1ed517)['ok']('OK')['cancel']('CANCEL');_0x5a7f19['show'](_0x2c7925)[_0x178a13('0xaa5')](function(){var _0x1e5d4f=_0x178a13;_0x29fba9['selectedIntervals']['forEach'](function(_0x1027e9){_0x46716d(_0x1027e9);}),_0x29fba9[_0x1e5d4f('0x1142')]=[];});}function _0x1dd3b5(){var _0x100278=_0x4bfd0c;_0x29fba9[_0x100278('0x1142')]=[];}function _0x486714(){var _0x5cbd33=_0x4bfd0c;_0x29fba9[_0x5cbd33('0x1142')]=_0x29fba9[_0x5cbd33('0x2568')][_0x5cbd33('0x580')];}}const _0x42d1ac=_0x1a50ff;_0x5f43ba[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty','pauses',_0x1a8446('0x167c'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x5f43ba(_0xd516db,_0x37c194,_0x24b7dd,_0x4a0b95,_0x1ce218,_0x22bfb4,_0x52ba83,_0x5b23e6,_0x39a1b5,_0x457220,_0x405a21,_0x434dcf,_0x21cb3d,_0x5af4d2){var _0x4d7242=_0x1a8446,_0x31b30d=this;_0x31b30d[_0x4d7242('0x7fc')]=_0x405a21[_0x4d7242('0xacc')](),_0x31b30d[_0x4d7242('0x4c6')]=[],_0x31b30d[_0x4d7242('0x143f')]=_0x21cb3d,_0x31b30d[_0x4d7242('0x1202')]=_0x434dcf,_0x31b30d['crudPermissions']=_0x5af4d2,_0x31b30d[_0x4d7242('0x9f0')]={},_0x31b30d[_0x4d7242('0x1d53')]=_0x31b30d[_0x4d7242('0x143f')]&&_0x31b30d[_0x4d7242('0x143f')][_0x4d7242('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x31b30d[_0x4d7242('0x110a')]=_0x4d7242('0x11d4'),_0x31b30d[_0x4d7242('0x167c')]=angular['copy'](_0x39a1b5),_0x31b30d[_0x4d7242('0x2457')]=_0x5b23e6,_0x31b30d['newPause']=![];!_0x31b30d[_0x4d7242('0x167c')]&&(_0x31b30d[_0x4d7242('0x167c')]={},_0x31b30d[_0x4d7242('0x110a')]=_0x4d7242('0x409'),_0x31b30d['newPause']=!![]);_0x31b30d['addNewPause']=_0x3827cb,_0x31b30d[_0x4d7242('0x2179')]=_0x2c0e2a,_0x31b30d[_0x4d7242('0x1f86')]=_0x15bbad,_0x31b30d[_0x4d7242('0xc09')]=_0x59be66,_0x31b30d['closeDialog']=_0x8bf287;function _0x3827cb(){var _0x161c80=_0x4d7242;_0x31b30d[_0x161c80('0x4c6')]=[],_0x457220[_0x161c80('0x167c')][_0x161c80('0x242b')](_0x31b30d[_0x161c80('0x167c')])['$promise']['then'](function(_0x3536f6){var _0x42b746=_0x161c80;_0x31b30d[_0x42b746('0x2457')]['unshift'](_0x3536f6['toJSON']()),_0x52ba83['success']({'title':_0x42b746('0x875'),'msg':_0x31b30d[_0x42b746('0x167c')][_0x42b746('0x25d6')]?_0x31b30d[_0x42b746('0x167c')][_0x42b746('0x25d6')]+_0x42b746('0xdca'):''}),_0x8bf287(_0x3536f6);})['catch'](function(_0x3c18f6){var _0x4a3310=_0x161c80;if(_0x3c18f6['data']&&_0x3c18f6[_0x4a3310('0x10fd')]['errors']&&_0x3c18f6[_0x4a3310('0x10fd')][_0x4a3310('0x4c6')][_0x4a3310('0x2587')]){_0x31b30d[_0x4a3310('0x4c6')]=_0x3c18f6['data'][_0x4a3310('0x4c6')]||[{'message':_0x3c18f6[_0x4a3310('0x684')](),'type':'api.pause.save'}];for(var _0x2c9b30=0x0;_0x2c9b30<_0x3c18f6[_0x4a3310('0x10fd')][_0x4a3310('0x4c6')]['length'];_0x2c9b30+=0x1){_0x52ba83['error']({'title':_0x3c18f6['data'][_0x4a3310('0x4c6')][_0x2c9b30][_0x4a3310('0x6c8')],'msg':_0x3c18f6['data']['errors'][_0x2c9b30]['message']});}}else _0x52ba83[_0x4a3310('0x187f')]({'title':_0x3c18f6['status']?_0x4a3310('0x16c2')+_0x3c18f6['status']+_0x4a3310('0x169e')+_0x3c18f6[_0x4a3310('0x24df')]:'api.pause.save','msg':_0x3c18f6['data']?JSON[_0x4a3310('0xa48')](_0x3c18f6['data'][_0x4a3310('0x1402')]):_0x3c18f6[_0x4a3310('0x684')]()});});}function _0x2c0e2a(){var _0x295770=_0x4d7242;_0x31b30d[_0x295770('0x4c6')]=[],_0x457220[_0x295770('0x167c')]['update']({'id':_0x31b30d[_0x295770('0x167c')]['id']},_0x31b30d['pause'])['$promise'][_0x295770('0xaa5')](function(_0x53b613){var _0x577fd6=_0x295770,_0x16b13f=_0x51538b()[_0x577fd6('0xe9e')](_0x31b30d[_0x577fd6('0x2457')],{'id':_0x53b613['id']});_0x16b13f&&_0x51538b()['merge'](_0x16b13f,_0x51538b()[_0x577fd6('0x104e')](_0x53b613['toJSON'](),_0x51538b()[_0x577fd6('0x9f2')](_0x16b13f))),_0x52ba83[_0x577fd6('0xe10')]({'title':'Pause\x20properly\x20saved!','msg':_0x31b30d['pause'][_0x577fd6('0x25d6')]?_0x31b30d[_0x577fd6('0x167c')][_0x577fd6('0x25d6')]+_0x577fd6('0x20bf'):''}),_0x8bf287(_0x53b613);})['catch'](function(_0x4d2b8b){var _0x2ba48d=_0x295770;if(_0x4d2b8b[_0x2ba48d('0x10fd')]&&_0x4d2b8b[_0x2ba48d('0x10fd')][_0x2ba48d('0x4c6')]&&_0x4d2b8b['data'][_0x2ba48d('0x4c6')][_0x2ba48d('0x2587')]){_0x31b30d[_0x2ba48d('0x4c6')]=_0x4d2b8b['data'][_0x2ba48d('0x4c6')]||[{'message':_0x4d2b8b[_0x2ba48d('0x684')](),'type':_0x2ba48d('0x260a')}];for(var _0xfc09c1=0x0;_0xfc09c1<_0x4d2b8b[_0x2ba48d('0x10fd')][_0x2ba48d('0x4c6')][_0x2ba48d('0x2587')];_0xfc09c1++){_0x52ba83[_0x2ba48d('0x187f')]({'title':_0x4d2b8b[_0x2ba48d('0x10fd')][_0x2ba48d('0x4c6')][_0xfc09c1][_0x2ba48d('0x6c8')],'msg':_0x4d2b8b['data'][_0x2ba48d('0x4c6')][_0xfc09c1][_0x2ba48d('0x1402')]});}}else _0x52ba83[_0x2ba48d('0x187f')]({'title':_0x4d2b8b[_0x2ba48d('0x2fa')]?_0x2ba48d('0x16c2')+_0x4d2b8b[_0x2ba48d('0x2fa')]+_0x2ba48d('0x169e')+_0x4d2b8b[_0x2ba48d('0x24df')]:_0x2ba48d('0x260a'),'msg':_0x4d2b8b[_0x2ba48d('0x10fd')]?JSON[_0x2ba48d('0xa48')](_0x4d2b8b[_0x2ba48d('0x10fd')]['message']):_0x4d2b8b['toString']()});});}function _0x15bbad(_0x25d742){var _0xc6c8bf=_0x4d7242;_0x31b30d[_0xc6c8bf('0x4c6')]=[];var _0x19937f=_0x4a0b95[_0xc6c8bf('0x281e')]()[_0xc6c8bf('0x110a')](_0xc6c8bf('0x12a3'))[_0xc6c8bf('0x15af')]('The\x20pause\x20will\x20be\x20deleted.')[_0xc6c8bf('0x5b5')](_0xc6c8bf('0x140a'))['ok'](_0xc6c8bf('0x1e76'))[_0xc6c8bf('0x2030')](_0xc6c8bf('0x9c6'))[_0xc6c8bf('0x116d')](_0x25d742);_0x4a0b95[_0xc6c8bf('0x1e6d')](_0x19937f)[_0xc6c8bf('0xaa5')](function(){var _0x563f27=_0xc6c8bf;_0x457220[_0x563f27('0x167c')]['delete']({'id':_0x31b30d[_0x563f27('0x167c')]['id']})[_0x563f27('0x1dc2')][_0x563f27('0xaa5')](function(){var _0x569b88=_0x563f27;_0x51538b()[_0x569b88('0xf6d')](_0x31b30d[_0x569b88('0x2457')],{'id':_0x31b30d[_0x569b88('0x167c')]['id']}),_0x52ba83['success']({'title':_0x569b88('0x6e1'),'msg':(_0x31b30d[_0x569b88('0x167c')][_0x569b88('0x25d6')]||_0x569b88('0x167c'))+_0x569b88('0xcd9')}),_0x8bf287(_0x31b30d[_0x569b88('0x167c')]);})[_0x563f27('0x253d')](function(_0x45f589){var _0x2ca30e=_0x563f27;if(_0x45f589[_0x2ca30e('0x10fd')]&&_0x45f589[_0x2ca30e('0x10fd')][_0x2ca30e('0x4c6')]&&_0x45f589['data'][_0x2ca30e('0x4c6')][_0x2ca30e('0x2587')]){_0x31b30d[_0x2ca30e('0x4c6')]=_0x45f589[_0x2ca30e('0x10fd')][_0x2ca30e('0x4c6')]||[{'message':_0x45f589[_0x2ca30e('0x684')](),'type':'api.pause.delete'}];for(var _0x5de1cd=0x0;_0x5de1cd<_0x45f589[_0x2ca30e('0x10fd')]['errors']['length'];_0x5de1cd++){_0x52ba83[_0x2ca30e('0x187f')]({'title':_0x45f589[_0x2ca30e('0x10fd')][_0x2ca30e('0x4c6')][_0x5de1cd][_0x2ca30e('0x6c8')],'msg':_0x45f589[_0x2ca30e('0x10fd')][_0x2ca30e('0x4c6')][_0x5de1cd][_0x2ca30e('0x1402')]});}}else _0x52ba83[_0x2ca30e('0x187f')]({'title':_0x45f589[_0x2ca30e('0x2fa')]?_0x2ca30e('0x16c2')+_0x45f589[_0x2ca30e('0x2fa')]+'\x20-\x20'+_0x45f589[_0x2ca30e('0x24df')]:'api.pause.delete','msg':_0x45f589['data']?JSON[_0x2ca30e('0xa48')](_0x45f589[_0x2ca30e('0x10fd')][_0x2ca30e('0x1402')]):_0x45f589[_0x2ca30e('0x1402')]||_0x45f589[_0x2ca30e('0x684')]()});});},function(){});}function _0x59be66(_0x540a52){return _0x540a52===null?undefined:new Date(_0x540a52);}function _0x8bf287(_0x56c2a0){_0x4a0b95['hide'](_0x56c2a0);}}const _0x30166e=_0x5f43ba,_0x1c7210=_0x4fb511['p']+_0x1a8446('0x154c');_0x37cf34[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x27bf'),'$state',_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x2457'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting'];function _0x37cf34(_0x3000cc,_0x304a29,_0x1bd039,_0x5d23dc,_0x33b731,_0x4fc68c,_0x3df6a9,_0x4e5438,_0xfbf4c2,_0x238c2f,_0x2da5a9,_0x46cd84,_0x39525d,_0x2761ca,_0x5b6759,_0x21ff6d,_0x348f77){var _0xe4a359=_0x1a8446,_0x47247f=this;_0x47247f['license']=_0x21ff6d,_0x47247f[_0xe4a359('0x143f')]=_0x348f77,_0x47247f[_0xe4a359('0x7fc')]=_0x5b6759[_0xe4a359('0xacc')](),_0x47247f[_0xe4a359('0x2457')]=_0xfbf4c2||{'count':0x0,'rows':[]},_0x47247f['userProfile']=_0x238c2f,_0x47247f[_0xe4a359('0x1a50')]=_0x2da5a9&&_0x2da5a9[_0xe4a359('0xd15')]==0x1?_0x2da5a9['rows'][0x0]:null,_0x47247f[_0xe4a359('0xada')]=_0x5b6759[_0xe4a359('0xffd')](_0x47247f['userProfileSection']?_0x47247f[_0xe4a359('0x1a50')][_0xe4a359('0xada')]:null),_0x47247f['table']=_0xe4a359('0x2457'),_0x47247f['listOrder']='',_0x47247f['listOrderAsc']=null,_0x47247f[_0xe4a359('0x1e63')]=[],_0x47247f[_0xe4a359('0x582')]={'fields':_0xe4a359('0x1798'),'sort':_0xe4a359('0xd82'),'limit':0xa,'page':0x1},_0x47247f[_0xe4a359('0x1960')]=_0x1af80f,_0x47247f['deleteconfirm']=_0x512b0d,_0x47247f[_0xe4a359('0xe10')]=_0x3ca5c1,_0x47247f[_0xe4a359('0x11f2')]=_0x756fa3,_0x47247f[_0xe4a359('0x1eb')]=_0x525b8e,_0x47247f[_0xe4a359('0x1f86')]=_0x13c9b7,_0x47247f[_0xe4a359('0x839')]=_0x12bb9c,_0x47247f[_0xe4a359('0x212a')]=_0x2cbeb7,_0x47247f['deselectPauses']=_0x1eaeec,_0x47247f[_0xe4a359('0xf59')]=_0x8b6340;function _0x1af80f(_0xfc5610,_0x362c3e){var _0x2639cb=_0xe4a359;_0x33b731[_0x2639cb('0x1e6d')]({'controller':_0x2639cb('0x2558'),'controllerAs':'vm','templateUrl':_0x1c7210,'parent':angular[_0x2639cb('0x1aa8')](_0x4fc68c['body']),'targetEvent':_0x362c3e,'clickOutsideToClose':!![],'locals':{'pause':_0xfc5610,'pauses':_0x47247f[_0x2639cb('0x2457')][_0x2639cb('0x580')],'license':_0x47247f[_0x2639cb('0x1202')],'setting':null,'crudPermissions':_0x47247f[_0x2639cb('0xada')]}});}function _0x512b0d(_0x2b0c6f,_0x5bcc34){var _0x317934=_0xe4a359,_0x203ba5=_0x33b731[_0x317934('0x281e')]()['title'](_0x317934('0x88d')+_0x51538b()[_0x317934('0x196a')]('pause')+'?')['htmlContent'](_0x317934('0x389')+(_0x2b0c6f['name']||_0x317934('0x167c'))+''+_0x317934('0x210d'))['ariaLabel'](_0x317934('0x15fe'))[_0x317934('0x116d')](_0x5bcc34)['ok']('OK')['cancel'](_0x317934('0x2410'));_0x33b731['show'](_0x203ba5)[_0x317934('0xaa5')](function(){_0x13c9b7(_0x2b0c6f);},function(){var _0x188a88=_0x317934;console[_0x188a88('0x18d5')](_0x188a88('0x2410'));});}var _0x3788fa=!![],_0x53b4af=0x1;_0x3000cc[_0xe4a359('0x1ccf')]('vm.query.filter',function(_0xb21148,_0x2d1819){var _0x1f9895=_0xe4a359;_0x3788fa?_0x3df6a9(function(){_0x3788fa=![];}):(!_0x2d1819&&(_0x53b4af=_0x47247f[_0x1f9895('0x582')][_0x1f9895('0x41')]),_0xb21148!==_0x2d1819&&(_0x47247f[_0x1f9895('0x582')]['page']=0x1),!_0xb21148&&(_0x47247f[_0x1f9895('0x582')][_0x1f9895('0x41')]=_0x53b4af),_0x47247f['getPauses']());});function _0x3ca5c1(_0x102096){var _0x1ef982=_0xe4a359;_0x47247f[_0x1ef982('0x2457')]=_0x102096||{'count':0x0,'rows':[]};}function _0x756fa3(){var _0x278c9b=_0xe4a359;_0x47247f[_0x278c9b('0x582')]['offset']=(_0x47247f[_0x278c9b('0x582')]['page']-0x1)*_0x47247f[_0x278c9b('0x582')]['limit'],_0x5b6759[_0x278c9b('0x26e8')](_0x278c9b('0x178b'))?_0x47247f[_0x278c9b('0x159a')]=_0x46cd84[_0x278c9b('0x167c')]['get'](_0x47247f['query'],_0x3ca5c1)['$promise']:(_0x47247f[_0x278c9b('0x582')]['id']=_0x47247f['userProfile']['id'],_0x47247f[_0x278c9b('0x582')][_0x278c9b('0x224d')]=_0x278c9b('0x1bbe'),_0x47247f[_0x278c9b('0x159a')]=_0x46cd84[_0x278c9b('0x1e97')][_0x278c9b('0x1cf1')](_0x47247f[_0x278c9b('0x582')],_0x3ca5c1)['$promise']);}function _0x525b8e(_0x57f7b3,_0x3bf09d){var _0x2056c4=_0xe4a359;_0x33b731['show']({'controller':_0x2056c4('0x2558'),'controllerAs':'vm','templateUrl':_0x1c7210,'parent':angular[_0x2056c4('0x1aa8')](_0x4fc68c[_0x2056c4('0x54c')]),'targetEvent':_0x57f7b3,'clickOutsideToClose':!![],'locals':{'pause':_0x3bf09d,'pauses':_0x47247f[_0x2056c4('0x2457')]['rows'],'license':_0x47247f[_0x2056c4('0x1202')],'setting':_0x47247f[_0x2056c4('0x143f')],'crudPermissions':_0x47247f[_0x2056c4('0xada')]}});}function _0x13c9b7(_0x4cf4d7){var _0x1a8198=_0xe4a359;_0x46cd84[_0x1a8198('0x167c')]['delete']({'id':_0x4cf4d7['id']})[_0x1a8198('0x1dc2')]['then'](function(){var _0x5cc059=_0x1a8198;_0x51538b()[_0x5cc059('0xf6d')](_0x47247f[_0x5cc059('0x2457')][_0x5cc059('0x580')],{'id':_0x4cf4d7['id']}),_0x47247f['pauses'][_0x5cc059('0xd15')]-=0x1,!_0x47247f[_0x5cc059('0x2457')][_0x5cc059('0x580')][_0x5cc059('0x2587')]&&_0x47247f['getPauses'](),_0x2761ca[_0x5cc059('0xe10')]({'title':_0x51538b()['startCase']('Pause')+_0x5cc059('0x8bb'),'msg':_0x4cf4d7['name']?_0x4cf4d7[_0x5cc059('0x25d6')]+_0x5cc059('0xcd9'):''});})['catch'](function(_0x4cba4a){var _0x2adb5d=_0x1a8198;if(_0x4cba4a['data']&&_0x4cba4a[_0x2adb5d('0x10fd')]['errors']&&_0x4cba4a['data'][_0x2adb5d('0x4c6')][_0x2adb5d('0x2587')]){_0x47247f[_0x2adb5d('0x4c6')]=_0x4cba4a['data'][_0x2adb5d('0x4c6')]||[{'message':_0x4cba4a['toString'](),'type':_0x2adb5d('0x9ec')}];for(var _0x114e8b=0x0;_0x114e8b<_0x4cba4a['data'][_0x2adb5d('0x4c6')][_0x2adb5d('0x2587')];_0x114e8b++){_0x2761ca[_0x2adb5d('0x187f')]({'title':_0x4cba4a[_0x2adb5d('0x10fd')]['errors'][_0x114e8b][_0x2adb5d('0x6c8')],'msg':_0x4cba4a[_0x2adb5d('0x10fd')][_0x2adb5d('0x4c6')][_0x114e8b]['message']});}}else _0x2761ca[_0x2adb5d('0x187f')]({'title':_0x4cba4a[_0x2adb5d('0x2fa')]?'API:'+_0x4cba4a['status']+'\x20-\x20'+_0x4cba4a[_0x2adb5d('0x24df')]:_0x2adb5d('0x9ec'),'msg':_0x4cba4a[_0x2adb5d('0x10fd')]?JSON[_0x2adb5d('0xa48')](_0x4cba4a[_0x2adb5d('0x10fd')]['message']):_0x4cba4a['message']||_0x4cba4a['toString']()});});}function _0x12bb9c(){var _0x5bcc3c=_0xe4a359,_0x1ad617=angular[_0x5bcc3c('0x20a')](_0x47247f['selectedPauses']);return _0x47247f['selectedPauses']=[],_0x1ad617;}function _0x2cbeb7(_0x406671){var _0x47fe85=_0xe4a359,_0x51d74c=_0x33b731[_0x47fe85('0x281e')]()[_0x47fe85('0x110a')](_0x47fe85('0x13b8'))[_0x47fe85('0x102e')](_0x47fe85('0x389')+_0x47247f['selectedPauses'][_0x47fe85('0x2587')]+_0x47fe85('0x1443')+'\x20will\x20be\x20deleted.')[_0x47fe85('0x5b5')](_0x47fe85('0x27d8'))[_0x47fe85('0x116d')](_0x406671)['ok']('OK')['cancel']('CANCEL');_0x33b731[_0x47fe85('0x1e6d')](_0x51d74c)['then'](function(){var _0x2f781f=_0x47fe85;_0x47247f[_0x2f781f('0x1e63')][_0x2f781f('0x15b5')](function(_0x1a5faa){_0x13c9b7(_0x1a5faa);}),_0x47247f[_0x2f781f('0x1e63')]=[];});}function _0x1eaeec(){var _0x192a11=_0xe4a359;_0x47247f[_0x192a11('0x1e63')]=[];}function _0x8b6340(){var _0x5f24ac=_0xe4a359;_0x47247f[_0x5f24ac('0x1e63')]=_0x47247f[_0x5f24ac('0x2457')][_0x5f24ac('0x580')];}}const _0x51dcdc=_0x37cf34,_0x4954d1=_0x4fb511['p']+_0x1a8446('0x16bf');_0x44f3bb[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x21f7'),_0x1a8446('0x2098'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),'crudPermissions'];function _0x44f3bb(_0x443b1b,_0x56bb12,_0x25bf64,_0x109b6f,_0x236c5e,_0x36c017,_0x12126b,_0x38c4d4,_0xe721d3,_0x2b23b2,_0x5f11c7,_0x17dedb,_0x2549dd,_0x44159){var _0x1cd575=_0x1a8446,_0x36b173=this;_0x36b173[_0x1cd575('0x7fc')]=_0x5f11c7[_0x1cd575('0xacc')](),_0x36b173[_0x1cd575('0x4c6')]=[],_0x36b173[_0x1cd575('0x143f')]=_0x2549dd,_0x36b173['license']=_0x17dedb,_0x36b173[_0x1cd575('0xada')]=_0x44159,_0x36b173['hasModulePermissions']={},_0x36b173[_0x1cd575('0x1d53')]=_0x36b173[_0x1cd575('0x143f')]&&_0x36b173[_0x1cd575('0x143f')][_0x1cd575('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x36b173['title']=_0x1cd575('0xfc5'),_0x36b173['schedule']=angular[_0x1cd575('0x20a')](_0xe721d3),_0x36b173[_0x1cd575('0x21f7')]=_0x38c4d4,_0x36b173[_0x1cd575('0x1225')]=![],_0x36b173['selectedReport']=[],_0x36b173[_0x1cd575('0x582')]={'fields':_0x1cd575('0x735'),'limit':0xa,'page':0x1,'sort':_0x1cd575('0xd82')};if(!_0x36b173[_0x1cd575('0x2098')])_0x36b173[_0x1cd575('0x2098')]={'output':_0x1cd575('0x749'),'active':!![],'startAt':new Date(),'endAt':new Date(Date['now']()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0x1cd575('0x4c1'),'subtractNumber':0x1,'subtractUnit':_0x1cd575('0x101'),'sendMail':![],'sendIfEmpty':!![]},_0x36b173['title']=_0x1cd575('0x6b8'),_0x36b173[_0x1cd575('0x1225')]=!![];else{_0x36b173[_0x1cd575('0x553')]=_0x36b173['schedule'][_0x1cd575('0xacf')]?'analyticDefaultReport':_0x1cd575('0x16bc');var _0x11e136=_0x36b173[_0x1cd575('0x2098')][_0x1cd575('0xacf')]?_0x36b173['schedule']['DefaultReportId']:_0x36b173[_0x1cd575('0x2098')]['CustomReportId'];_0x2b23b2[_0x36b173[_0x1cd575('0x553')]][_0x1cd575('0x2122')]({'fields':_0x1cd575('0xbbc')})[_0x1cd575('0x1dc2')]['then'](function(_0x4aa0c0){var _0x2d9ae7=_0x1cd575;_0x36b173[_0x2d9ae7('0x1dbb')]=_0x51538b()['find'](_0x4aa0c0['rows'],{'id':_0x11e136}),_0x36b173[_0x2d9ae7('0x2098')][_0x2d9ae7('0x1b8e')]=_0x36b173[_0x2d9ae7('0x1dbb')][_0x2d9ae7('0x25d6')],_0x36b173[_0x2d9ae7('0x582')]['parent']=_0x36b173[_0x2d9ae7('0x1dbb')]['parent'];});}_0x36b173[_0x1cd575('0x1c4')]=_0xe58b45,_0x36b173[_0x1cd575('0xa25')]=_0x32b21e,_0x36b173[_0x1cd575('0x1dba')]=_0x33ce34,_0x36b173[_0x1cd575('0xc09')]=_0x384c42,_0x36b173[_0x1cd575('0x1367')]=_0xa2186a,_0x36b173[_0x1cd575('0x20ca')]=_0xb9c7,_0x36b173['closeReportDialog']=_0x4abdde,_0x36b173[_0x1cd575('0xf04')]=_0x66769c,_0x36b173['closeDialog']=_0x133431,_0x2b23b2[_0x1cd575('0x37f')][_0x1cd575('0x2122')]({})[_0x1cd575('0x1dc2')][_0x1cd575('0xaa5')](function(_0x5d5c49){var _0xe10069=_0x1cd575;_0x36b173[_0xe10069('0xd39')]=_0x5d5c49[_0xe10069('0x580')]||[];})[_0x1cd575('0x253d')](function(_0x29980a){var _0x2002ad=_0x1cd575;_0x12126b['error']({'title':_0x29980a[_0x2002ad('0x2fa')]?_0x2002ad('0x16c2')+_0x29980a[_0x2002ad('0x2fa')]+'\x20-\x20'+_0x29980a['statusText']:'SYSTEM:GET_TREEREPORTS','msg':_0x29980a[_0x2002ad('0x10fd')]?JSON['stringify'](_0x29980a['data']):_0x29980a[_0x2002ad('0x684')]()});}),_0x5f11c7[_0x1cd575('0x26e8')](_0x1cd575('0x178b'))?_0x2b23b2[_0x1cd575('0xb86')][_0x1cd575('0x2122')]({'fields':_0x1cd575('0x17fe'),'sort':_0x1cd575('0x25d6')})['$promise'][_0x1cd575('0xaa5')](function(_0x3d5da9){var _0x4f5a01=_0x1cd575;_0x36b173[_0x4f5a01('0x172d')]=_0x3d5da9[_0x4f5a01('0x580')]||[];})['catch'](function(_0x54eac8){var _0x321caa=_0x1cd575;_0x12126b[_0x321caa('0x187f')]({'title':_0x54eac8[_0x321caa('0x2fa')]?'API:'+_0x54eac8[_0x321caa('0x2fa')]+'\x20-\x20'+_0x54eac8[_0x321caa('0x24df')]:_0x321caa('0x2470'),'msg':_0x54eac8[_0x321caa('0x10fd')]?JSON[_0x321caa('0xa48')](_0x54eac8[_0x321caa('0x10fd')]):_0x54eac8[_0x321caa('0x684')]()});}):_0x2b23b2[_0x1cd575('0xb86')][_0x1cd575('0x2122')]({'fields':_0x1cd575('0x17fe'),'sort':_0x1cd575('0x25d6')})[_0x1cd575('0x1dc2')][_0x1cd575('0xaa5')](function(_0x3912f6){var _0x214721=_0x1cd575;_0x36b173[_0x214721('0x172d')]=_0x3912f6[_0x214721('0x580')]||[];})[_0x1cd575('0xaa5')](function(){var _0x438f2f=_0x1cd575;return _0x2b23b2[_0x438f2f('0x1a50')][_0x438f2f('0x2122')]({'userProfileId':_0x36b173[_0x438f2f('0x7fc')]['userProfileId'],'sectionId':0x25a})['$promise'];})[_0x1cd575('0xaa5')](function(_0x5ba0f6){var _0x2094a0=_0x1cd575,_0x1f1173=_0x5ba0f6&&_0x5ba0f6[_0x2094a0('0x580')]?_0x5ba0f6['rows'][0x0]:null;if(!_0x1f1173){var _0xeb69ac=[],_0xb2d387=null;_0x36b173[_0x2094a0('0x2098')]&&(_0xb2d387=_0x51538b()[_0x2094a0('0xe9e')](_0x36b173['mailAccounts'],{'id':Number(_0x36b173[_0x2094a0('0x2098')][_0x2094a0('0x2307')])}));for(var _0x2f2505=0x0;_0x2f2505<_0x36b173['mailAccounts']['length'];_0x2f2505++){_0xb2d387&&_0x36b173[_0x2094a0('0x172d')][_0x2f2505]['id']===_0xb2d387['id']&&(_0x36b173[_0x2094a0('0x172d')][_0x2f2505][_0x2094a0('0x12eb')]=![],_0xeb69ac[_0x2094a0('0x1599')](_0x36b173[_0x2094a0('0x172d')][_0x2f2505]));}_0x36b173[_0x2094a0('0x172d')]=_0xeb69ac;}else{if(!_0x1f1173[_0x2094a0('0x26cc')])return _0x2b23b2[_0x2094a0('0x249a')]['get']({'sectionId':_0x1f1173['id']})[_0x2094a0('0x1dc2')]['then'](function(_0x4ba642){var _0x5375fc=_0x2094a0,_0x4dc87d=_0x51538b()[_0x5375fc('0x1246')](_0x4ba642[_0x5375fc('0x580')],function(_0x5f00f2){var _0x549458=_0x5375fc;return _0x51538b()[_0x549458('0xe9e')](_0x36b173[_0x549458('0x172d')],{'id':_0x5f00f2['resourceId']});}),_0x8dcfbd=null;_0x36b173['schedule']&&(_0x8dcfbd=_0x51538b()[_0x5375fc('0xe9e')](_0x36b173[_0x5375fc('0x172d')],{'id':Number(_0x36b173['schedule'][_0x5375fc('0x2307')])}));if(_0x8dcfbd&&!_0x51538b()[_0x5375fc('0x2c2')](_0x4dc87d,['id',_0x8dcfbd['id']])){var _0x1ace7e=_0x51538b()['find'](_0x36b173[_0x5375fc('0x172d')],{'id':_0x8dcfbd['id']});_0x1ace7e['canSelect']=![],_0x4dc87d[_0x5375fc('0x1599')](_0x1ace7e);}_0x36b173[_0x5375fc('0x172d')]=_0x4dc87d;});}})[_0x1cd575('0x253d')](function(_0xae85b6){var _0xc90576=_0x1cd575;_0x12126b[_0xc90576('0x187f')]({'title':_0xae85b6[_0xc90576('0x2fa')]?_0xc90576('0x16c2')+_0xae85b6[_0xc90576('0x2fa')]+'\x20-\x20'+_0xae85b6[_0xc90576('0x24df')]:_0xc90576('0x1ff3'),'msg':_0xae85b6[_0xc90576('0x10fd')]?JSON['stringify'](_0xae85b6[_0xc90576('0x10fd')]):_0xae85b6['toString']()});});function _0xe58b45(){var _0x4203a2=_0x1cd575;_0x36b173[_0x4203a2('0x4c6')]=[],_0x2b23b2['schedule']['save'](_0x36b173[_0x4203a2('0x2098')])[_0x4203a2('0x1dc2')][_0x4203a2('0xaa5')](function(_0x2d8732){var _0x5d5488=_0x4203a2;_0x36b173['schedules'][_0x5d5488('0x6ee')](_0x2d8732[_0x5d5488('0x256a')]()),_0x12126b[_0x5d5488('0xe10')]({'title':_0x5d5488('0x2690'),'msg':_0x36b173[_0x5d5488('0x2098')][_0x5d5488('0x25d6')]?_0x36b173[_0x5d5488('0x2098')][_0x5d5488('0x25d6')]+_0x5d5488('0xdca'):''}),_0x133431(_0x2d8732);})[_0x4203a2('0x253d')](function(_0x1e5893){var _0x1d9967=_0x4203a2;if(_0x1e5893[_0x1d9967('0x10fd')]&&_0x1e5893[_0x1d9967('0x10fd')]['errors']&&_0x1e5893[_0x1d9967('0x10fd')]['errors']['length']){_0x36b173[_0x1d9967('0x4c6')]=_0x1e5893[_0x1d9967('0x10fd')][_0x1d9967('0x4c6')]||[{'message':_0x1e5893[_0x1d9967('0x684')](),'type':_0x1d9967('0x1020')}];for(var _0x2ee923=0x0;_0x2ee923<_0x1e5893[_0x1d9967('0x10fd')][_0x1d9967('0x4c6')][_0x1d9967('0x2587')];_0x2ee923+=0x1){_0x12126b['error']({'title':_0x1e5893[_0x1d9967('0x10fd')]['errors'][_0x2ee923]['type'],'msg':_0x1e5893[_0x1d9967('0x10fd')][_0x1d9967('0x4c6')][_0x2ee923][_0x1d9967('0x1402')]});}}else _0x12126b['error']({'title':_0x1e5893[_0x1d9967('0x2fa')]?_0x1d9967('0x16c2')+_0x1e5893['status']+_0x1d9967('0x169e')+_0x1e5893['statusText']:_0x1d9967('0x1020'),'msg':_0x1e5893[_0x1d9967('0x10fd')]?JSON[_0x1d9967('0xa48')](_0x1e5893[_0x1d9967('0x10fd')][_0x1d9967('0x1402')]):_0x1e5893[_0x1d9967('0x684')]()});});}function _0x32b21e(){var _0x3df551=_0x1cd575;_0x36b173[_0x3df551('0x4c6')]=[],_0x2b23b2[_0x3df551('0x2098')]['update']({'id':_0x36b173['schedule']['id']},_0x36b173[_0x3df551('0x2098')])['$promise'][_0x3df551('0xaa5')](function(_0x5b42db){var _0x5eaa89=_0x3df551,_0x4382c2=_0x51538b()['find'](_0x36b173['schedules'],{'id':_0x5b42db['id']});_0x4382c2&&_0x51538b()[_0x5eaa89('0x283c')](_0x4382c2,_0x51538b()['pick'](_0x5b42db[_0x5eaa89('0x256a')](),_0x51538b()['keys'](_0x4382c2))),_0x12126b[_0x5eaa89('0xe10')]({'title':_0x5eaa89('0x25fc'),'msg':_0x36b173[_0x5eaa89('0x2098')][_0x5eaa89('0x25d6')]?_0x36b173[_0x5eaa89('0x2098')]['name']+_0x5eaa89('0x20bf'):''}),_0x133431(_0x5b42db);})[_0x3df551('0x253d')](function(_0x23c007){var _0xf4f9be=_0x3df551;if(_0x23c007['data']&&_0x23c007[_0xf4f9be('0x10fd')][_0xf4f9be('0x4c6')]&&_0x23c007[_0xf4f9be('0x10fd')][_0xf4f9be('0x4c6')][_0xf4f9be('0x2587')]){_0x36b173[_0xf4f9be('0x4c6')]=_0x23c007['data'][_0xf4f9be('0x4c6')]||[{'message':_0x23c007['toString'](),'type':_0xf4f9be('0x1f5')}];for(var _0x497950=0x0;_0x497950<_0x23c007[_0xf4f9be('0x10fd')][_0xf4f9be('0x4c6')][_0xf4f9be('0x2587')];_0x497950++){_0x12126b[_0xf4f9be('0x187f')]({'title':_0x23c007[_0xf4f9be('0x10fd')][_0xf4f9be('0x4c6')][_0x497950][_0xf4f9be('0x6c8')],'msg':_0x23c007['data'][_0xf4f9be('0x4c6')][_0x497950][_0xf4f9be('0x1402')]});}}else _0x12126b['error']({'title':_0x23c007[_0xf4f9be('0x2fa')]?_0xf4f9be('0x16c2')+_0x23c007['status']+_0xf4f9be('0x169e')+_0x23c007[_0xf4f9be('0x24df')]:_0xf4f9be('0x1f5'),'msg':_0x23c007[_0xf4f9be('0x10fd')]?JSON['stringify'](_0x23c007[_0xf4f9be('0x10fd')][_0xf4f9be('0x1402')]):_0x23c007[_0xf4f9be('0x684')]()});});}function _0x33ce34(_0x53a091){var _0x2acafd=_0x1cd575;_0x36b173['errors']=[];var _0x147ea8=_0x109b6f[_0x2acafd('0x281e')]()[_0x2acafd('0x110a')](_0x2acafd('0x12a3'))['content']('The\x20schedule\x20will\x20be\x20deleted.')[_0x2acafd('0x5b5')](_0x2acafd('0x1b96'))['ok'](_0x2acafd('0x1e76'))[_0x2acafd('0x2030')]('Cancel')[_0x2acafd('0x116d')](_0x53a091);_0x109b6f[_0x2acafd('0x1e6d')](_0x147ea8)[_0x2acafd('0xaa5')](function(){var _0x49aa64=_0x2acafd;_0x2b23b2[_0x49aa64('0x2098')]['delete']({'id':_0x36b173[_0x49aa64('0x2098')]['id']})[_0x49aa64('0x1dc2')][_0x49aa64('0xaa5')](function(){var _0x13edd2=_0x49aa64;_0x51538b()[_0x13edd2('0xf6d')](_0x36b173[_0x13edd2('0x21f7')],{'id':_0x36b173[_0x13edd2('0x2098')]['id']}),_0x12126b['success']({'title':_0x13edd2('0x13a2'),'msg':(_0x36b173[_0x13edd2('0x2098')][_0x13edd2('0x25d6')]||'schedule')+_0x13edd2('0xcd9')}),_0x133431(_0x36b173[_0x13edd2('0x2098')]);})[_0x49aa64('0x253d')](function(_0x40c324){var _0x382f48=_0x49aa64;if(_0x40c324[_0x382f48('0x10fd')]&&_0x40c324[_0x382f48('0x10fd')][_0x382f48('0x4c6')]&&_0x40c324[_0x382f48('0x10fd')][_0x382f48('0x4c6')][_0x382f48('0x2587')]){_0x36b173[_0x382f48('0x4c6')]=_0x40c324[_0x382f48('0x10fd')]['errors']||[{'message':_0x40c324[_0x382f48('0x684')](),'type':_0x382f48('0x11f')}];for(var _0x37ebad=0x0;_0x37ebad<_0x40c324[_0x382f48('0x10fd')][_0x382f48('0x4c6')][_0x382f48('0x2587')];_0x37ebad++){_0x12126b[_0x382f48('0x187f')]({'title':_0x40c324[_0x382f48('0x10fd')][_0x382f48('0x4c6')][_0x37ebad][_0x382f48('0x6c8')],'msg':_0x40c324['data'][_0x382f48('0x4c6')][_0x37ebad][_0x382f48('0x1402')]});}}else _0x12126b[_0x382f48('0x187f')]({'title':_0x40c324[_0x382f48('0x2fa')]?_0x382f48('0x16c2')+_0x40c324['status']+_0x382f48('0x169e')+_0x40c324['statusText']:_0x382f48('0x11f'),'msg':_0x40c324[_0x382f48('0x10fd')]?JSON[_0x382f48('0xa48')](_0x40c324['data']['message']):_0x40c324[_0x382f48('0x1402')]||_0x40c324['toString']()});});},function(){});}function _0x236568(){var _0x190855=_0x1cd575,_0x465e8a={'core':{'multiple':![],'animation':!![],'error':function _0x1f12bb(_0x3841d4){var _0x178854=a0_0x1149;console['error']('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular[_0x178854('0xfd8')](_0x3841d4));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0x36b173[_0x190855('0x7fc')]['role']!==_0x190855('0x178b')?_0x2b23b2[_0x190855('0x1a50')][_0x190855('0x2122')]({'fields':_0x190855('0xe6a'),'userProfileId':_0x36b173['currentUser']['userProfileId'],'sectionId':0x4b3})[_0x190855('0x1dc2')]['then'](function(_0x1b1811){var _0x27a456=_0x190855;return _0x36b173['userProfileSection']=_0x1b1811&&_0x1b1811[_0x27a456('0xd15')]==0x1?_0x1b1811['rows'][0x0]:null,_0x465e8a;})['catch'](function(_0x56ff52){var _0x4b4950=_0x190855;_0x12126b[_0x4b4950('0x187f')]({'title':_0x4b4950('0x208b'),'msg':_0x56ff52[_0x4b4950('0x1402')]});}):_0x465e8a;}function _0x7ab1ad(_0x2030a5){return _0x2030a5?{'loaded':_0x27a79c,'select_node':_0x1bc470}:{'loaded':_0x3fe8a7,'select_node':_0x2d5cb1};}function _0x1bc470(_0x3e5869,_0x4bf460){var _0x4bef9e=_0x1cd575;_0x36b173['treeDefaultInstance'][_0x4bef9e('0x2433')](!![])[_0x4bef9e('0xacd')](),_0x36b173[_0x4bef9e('0x1698')]['jstree'](!![])[_0x4bef9e('0x82c')](),_0x36b173['currentNode']=_0x4bf460['node'],_0x36b173[_0x4bef9e('0x31c')][_0x4bef9e('0x113b')]=!![],_0x36b173[_0x4bef9e('0x2451')]=_0x36b173[_0x4bef9e('0x135d')][_0x4bef9e('0x2433')](!![])[_0x4bef9e('0x801')](_0x36b173[_0x4bef9e('0x31c')])[_0x4bef9e('0x19c4')]('/\x20'),_0x36b173[_0x4bef9e('0x553')]=_0x4bef9e('0x16bc'),_0x36b173[_0x4bef9e('0x582')][_0x4bef9e('0x20a2')]=_0x4bf460[_0x4bef9e('0xdf1')]['id'],_0xa2186a();}function _0x2d5cb1(_0x2b7578,_0x4a8c13){var _0x4a353f=_0x1cd575;_0x36b173[_0x4a353f('0x135d')][_0x4a353f('0x2433')](!![])['deselect_all'](),_0x36b173[_0x4a353f('0x135d')][_0x4a353f('0x2433')](!![])[_0x4a353f('0x82c')](),_0x36b173[_0x4a353f('0x31c')]=_0x4a8c13[_0x4a353f('0xdf1')],_0x36b173[_0x4a353f('0x31c')]['custom']=![],_0x36b173['currentPath']=_0x36b173[_0x4a353f('0x1698')][_0x4a353f('0x2433')](!![])['get_path'](_0x36b173['currentNode'])[_0x4a353f('0x19c4')]('/\x20'),_0x36b173['apiName']='analyticDefaultReport',_0x36b173[_0x4a353f('0x582')][_0x4a353f('0x20a2')]=_0x4a8c13[_0x4a353f('0xdf1')]['id'],_0xa2186a();}function _0x27a79c(){var _0x306f1c=_0x1cd575;if(!_0x36b173[_0x306f1c('0x1225')]&&_0x36b173[_0x306f1c('0x553')]==='analyticCustomReport'){var _0x44b7c7=_0x36b173[_0x306f1c('0x135d')][_0x306f1c('0x2433')](!![])[_0x306f1c('0x22c1')](_0x36b173[_0x306f1c('0x582')][_0x306f1c('0x20a2')]);_0x1bc470(null,{'node':_0x44b7c7,'selected':_0x44b7c7['id']});}}function _0x3fe8a7(){var _0x232d2c=_0x1cd575;if(!_0x36b173[_0x232d2c('0x1225')]&&_0x36b173[_0x232d2c('0x553')]===_0x232d2c('0x1885')){var _0x32c57c=_0x36b173['treeDefaultInstance']['jstree'](!![])['get_node'](_0x36b173[_0x232d2c('0x582')][_0x232d2c('0x20a2')]);_0x2d5cb1(null,{'node':_0x32c57c,'selected':_0x32c57c['id']});}}function _0xa2186a(){var _0x52917c=_0x1cd575;_0x36b173[_0x52917c('0x582')][_0x52917c('0x8b1')]=(_0x36b173[_0x52917c('0x582')][_0x52917c('0x41')]-0x1)*_0x36b173[_0x52917c('0x582')][_0x52917c('0xf4d')];if(_0x36b173['apiName']){if(_0x36b173[_0x52917c('0x7fc')][_0x52917c('0x924')]==='admin')_0x36b173[_0x52917c('0x159a')]=_0x2b23b2[_0x36b173[_0x52917c('0x553')]][_0x52917c('0x2122')](_0x36b173[_0x52917c('0x582')],_0x2f57f0)[_0x52917c('0x1dc2')];else{if(!_0x36b173[_0x52917c('0x1a50')])return _0x2f57f0(null);else{if(_0x36b173[_0x52917c('0x1a50')][_0x52917c('0x26cc')])_0x36b173[_0x52917c('0x159a')]=_0x2b23b2[_0x36b173[_0x52917c('0x553')]][_0x52917c('0x2122')](_0x36b173[_0x52917c('0x582')],_0x2f57f0)[_0x52917c('0x1dc2')];else{var _0x3bc31e=[];_0x36b173[_0x52917c('0x159a')]=_0x2b23b2[_0x36b173['apiName']][_0x52917c('0x2122')](_0x36b173[_0x52917c('0x582')])['$promise']['then'](function(_0x24853e){var _0x38dd15=_0x52917c;return _0x3bc31e=_0x24853e&&_0x24853e[_0x38dd15('0x580')]?_0x24853e[_0x38dd15('0x580')]:[],_0x3bc31e[_0x38dd15('0x2587')]>0x0?_0x2b23b2[_0x38dd15('0x249a')]['get']({'sectionId':_0x36b173['userProfileSection']['id'],'type':_0x36b173[_0x38dd15('0x553')]==='analyticDefaultReport'?'DefaultReports':_0x38dd15('0x9de')})['$promise']['then'](function(_0x592f1e){var _0xe8e1b1=_0x38dd15,_0x4a50cf=_0x592f1e&&_0x592f1e[_0xe8e1b1('0x580')]?_0x592f1e['rows']:[];if(_0x4a50cf[_0xe8e1b1('0x2587')]>0x0){var _0x181ba3=[];return _0x3bc31e[_0xe8e1b1('0x15b5')](function(_0x410cfc){var _0x2ced6d=_0xe8e1b1,_0xaa5353=_0x51538b()[_0x2ced6d('0xe9e')](_0x4a50cf,[_0x2ced6d('0xbcd'),_0x410cfc['id']]);if(_0xaa5353)_0x181ba3['push'](_0x410cfc);}),_0x2f57f0({'count':_0x181ba3[_0xe8e1b1('0x2587')],'rows':_0x181ba3});}else return _0x2f57f0(null);}):_0x2f57f0(null);})[_0x52917c('0x253d')](function(_0x512c87){var _0x259148=_0x52917c;_0x12126b[_0x259148('0x187f')]({'title':_0x512c87[_0x259148('0x2fa')]?_0x259148('0x16c2')+_0x512c87[_0x259148('0x2fa')]+_0x259148('0x169e')+_0x512c87[_0x259148('0x24df')]:_0x259148('0xfd5'),'msg':_0x512c87[_0x259148('0x10fd')]?JSON[_0x259148('0xa48')](_0x512c87[_0x259148('0x10fd')]):_0x512c87['toString']()});});}}}}}function _0x2f57f0(_0x167bbc){var _0x562d9c=_0x1cd575;_0x36b173[_0x562d9c('0x12ba')]=_0x167bbc||{'count':0x0,'rows':[]},!_0x36b173[_0x562d9c('0x1225')]&&_0x36b173[_0x562d9c('0x76c')][_0x562d9c('0x1599')](_0x51538b()[_0x562d9c('0xe9e')](_0x36b173[_0x562d9c('0x12ba')][_0x562d9c('0x580')],{'id':_0x36b173[_0x562d9c('0x1dbb')]['id']}));}function _0x66769c(){var _0x4abbb1=_0x1cd575;_0x36b173[_0x4abbb1('0xbf9')]=_0x36b173[_0x4abbb1('0xd39')][0x0]?angular[_0x4abbb1('0x19c8')](_0x36b173[_0x4abbb1('0xd39')][0x0][_0x4abbb1('0x2647')]):[],_0x36b173['treeCustomData']=_0x36b173['treeReports'][0x1]?angular['fromJson'](_0x36b173[_0x4abbb1('0xd39')][0x1][_0x4abbb1('0x2647')]):[],_0x36b173[_0x4abbb1('0xf2f')]=_0x236568(),_0x36b173[_0x4abbb1('0x1a98')]=_0x7ab1ad(![]),_0x36b173[_0x4abbb1('0x1da9')]=_0x7ab1ad(!![]),_0x109b6f['show']({'controller':function _0x5f027b(){return _0x36b173;},'controllerAs':'vm','templateUrl':_0x4954d1,'autoWrap':!![],'skipHide':!![]});}function _0xb9c7(){var _0x33dfb6=_0x1cd575;_0x36b173[_0x33dfb6('0x2098')]['report']=_0x36b173[_0x33dfb6('0x76c')][0x0][_0x33dfb6('0x25d6')],_0x36b173[_0x33dfb6('0x31c')][_0x33dfb6('0x113b')]?(_0x36b173[_0x33dfb6('0x2098')][_0x33dfb6('0x1010')]=_0x36b173[_0x33dfb6('0x76c')][0x0]['id'],delete _0x36b173[_0x33dfb6('0x2098')][_0x33dfb6('0xacf')]):(_0x36b173[_0x33dfb6('0x2098')]['DefaultReportId']=_0x36b173['selectedReport'][0x0]['id'],delete _0x36b173[_0x33dfb6('0x2098')][_0x33dfb6('0x1010')]),_0x443b1b[_0x33dfb6('0x1846')][_0x33dfb6('0x1b8e')][_0x33dfb6('0x822')](),_0x109b6f[_0x33dfb6('0x1120')]();}function _0x4abdde(){var _0x35d53f=_0x1cd575;_0x109b6f[_0x35d53f('0x1120')]();}function _0x384c42(_0x55c8cb){return _0x55c8cb===null?undefined:new Date(_0x55c8cb);}function _0x133431(_0x1199fb){var _0x548e66=_0x1cd575;_0x109b6f[_0x548e66('0x1120')](_0x1199fb);}}const _0x21cae0=_0x44f3bb,_0x6b8a0c=_0x4fb511['p']+_0x1a8446('0x25af');_0x4d223f[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x21f7'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting'];function _0x4d223f(_0x2de693,_0xa3e8ab,_0x26d96d,_0x3dd935,_0xa3fc30,_0x524618,_0x1cff12,_0x59426d,_0x5443b8,_0x2185fd,_0x203e3d,_0x40fd82,_0x58f3f1,_0x4e7420,_0x270f71,_0x5314e6,_0x23bc0b){var _0x1e09ad=_0x1a8446,_0x25d9fe=this;_0x25d9fe[_0x1e09ad('0x1202')]=_0x5314e6,_0x25d9fe['setting']=_0x23bc0b,_0x25d9fe[_0x1e09ad('0x7fc')]=_0x270f71[_0x1e09ad('0xacc')](),_0x25d9fe[_0x1e09ad('0x21f7')]=_0x5443b8||{'count':0x0,'rows':[]},_0x25d9fe[_0x1e09ad('0x1e97')]=_0x2185fd,_0x25d9fe[_0x1e09ad('0x1a50')]=_0x203e3d&&_0x203e3d[_0x1e09ad('0xd15')]==0x1?_0x203e3d[_0x1e09ad('0x580')][0x0]:null,_0x25d9fe[_0x1e09ad('0xada')]=_0x270f71[_0x1e09ad('0xffd')](_0x25d9fe[_0x1e09ad('0x1a50')]?_0x25d9fe[_0x1e09ad('0x1a50')][_0x1e09ad('0xada')]:null),_0x25d9fe[_0x1e09ad('0x12b6')]='schedules',_0x25d9fe[_0x1e09ad('0x164')]='',_0x25d9fe['listOrderAsc']=null,_0x25d9fe[_0x1e09ad('0xbe3')]=[],_0x25d9fe[_0x1e09ad('0x582')]={'fields':_0x1e09ad('0xf22'),'sort':_0x1e09ad('0xd82'),'limit':0xa,'page':0x1},_0x25d9fe['arrayoutput']=_0x51538b()[_0x1e09ad('0x184a')]([{'option':_0x1e09ad('0x46e'),'value':_0x1e09ad('0x1101')},{'option':_0x1e09ad('0xb69'),'value':'\x27pdf\x27'},{'option':_0x1e09ad('0x2793'),'value':'\x27xlsx\x27'}],function(_0x21629){var _0x21ee08=_0x1e09ad;return _0x51538b()[_0x21ee08('0x170d')](_0x21629[_0x21ee08('0x12f4')],new RegExp('\x27','g'),'');}),_0x25d9fe['arraysubtractUnit']=_0x51538b()[_0x1e09ad('0x184a')]([{'option':_0x1e09ad('0x7c'),'value':'\x27minutes\x27'},{'option':'Hours','value':'\x27hours\x27'},{'option':'Days','value':_0x1e09ad('0x14c7')},{'option':_0x1e09ad('0x222f'),'value':_0x1e09ad('0x139f')},{'option':_0x1e09ad('0x3e'),'value':'\x27months\x27'},{'option':'Quarters','value':_0x1e09ad('0x178c')},{'option':_0x1e09ad('0xf62'),'value':'\x27years\x27'}],function(_0x56adb3){var _0x4b1dfd=_0x1e09ad;return _0x51538b()['replace'](_0x56adb3[_0x4b1dfd('0x12f4')],new RegExp('\x27','g'),'');}),_0x25d9fe[_0x1e09ad('0x1960')]=_0x3d4e3d,_0x25d9fe['runconfirm']=_0x5c07c1,_0x25d9fe[_0x1e09ad('0x271')]=_0x19f900,_0x25d9fe[_0x1e09ad('0xe10')]=_0x253b0c,_0x25d9fe[_0x1e09ad('0x18d2')]=_0x223fd7,_0x25d9fe[_0x1e09ad('0x28f')]=_0x1c5f3f,_0x25d9fe[_0x1e09ad('0x1dba')]=_0xfa657a,_0x25d9fe[_0x1e09ad('0x1dc9')]=_0x3667b1,_0x25d9fe[_0x1e09ad('0x22fa')]=_0x60e557,_0x25d9fe[_0x1e09ad('0xc2f')]=_0xdd05d9,_0x25d9fe[_0x1e09ad('0x9c5')]=_0x669893,_0x40fd82[_0x1e09ad('0x37f')]['get']({})[_0x1e09ad('0x1dc2')][_0x1e09ad('0xaa5')](function(_0x4b445a){var _0x538e27=_0x1e09ad;_0x25d9fe[_0x538e27('0xd39')]=_0x4b445a[_0x538e27('0x580')]||[];})[_0x1e09ad('0x253d')](function(_0xe26fa9){var _0xbff81a=_0x1e09ad;_0x4e7420['error']({'title':_0xe26fa9[_0xbff81a('0x2fa')]?_0xbff81a('0x16c2')+_0xe26fa9['status']+'\x20-\x20'+_0xe26fa9[_0xbff81a('0x24df')]:_0xbff81a('0x216c'),'msg':_0xe26fa9['data']?JSON[_0xbff81a('0xa48')](_0xe26fa9[_0xbff81a('0x10fd')]):_0xe26fa9[_0xbff81a('0x684')]()});}),_0x270f71[_0x1e09ad('0x26e8')](_0x1e09ad('0x178b'))?_0x40fd82['mailAccount'][_0x1e09ad('0x2122')]({'fields':_0x1e09ad('0x17fe'),'sort':_0x1e09ad('0x25d6')})[_0x1e09ad('0x1dc2')][_0x1e09ad('0xaa5')](function(_0x8c72fa){var _0x51702c=_0x1e09ad;_0x25d9fe['mailAccounts']=_0x8c72fa[_0x51702c('0x580')]||[];})[_0x1e09ad('0x253d')](function(_0x247bba){var _0x114c53=_0x1e09ad;_0x4e7420[_0x114c53('0x187f')]({'title':_0x247bba[_0x114c53('0x2fa')]?_0x114c53('0x16c2')+_0x247bba[_0x114c53('0x2fa')]+_0x114c53('0x169e')+_0x247bba[_0x114c53('0x24df')]:_0x114c53('0x2470'),'msg':_0x247bba['data']?JSON[_0x114c53('0xa48')](_0x247bba[_0x114c53('0x10fd')]):_0x247bba[_0x114c53('0x684')]()});}):_0x40fd82[_0x1e09ad('0xb86')][_0x1e09ad('0x2122')]({'fields':_0x1e09ad('0x17fe'),'sort':_0x1e09ad('0x25d6')})['$promise'][_0x1e09ad('0xaa5')](function(_0x1856e8){var _0x3d9822=_0x1e09ad;_0x25d9fe[_0x3d9822('0x172d')]=_0x1856e8[_0x3d9822('0x580')]||[];})[_0x1e09ad('0xaa5')](function(){var _0x25cf8c=_0x1e09ad;return _0x40fd82[_0x25cf8c('0x1a50')][_0x25cf8c('0x2122')]({'userProfileId':_0x25d9fe[_0x25cf8c('0x7fc')]['userProfileId'],'sectionId':0x25a})[_0x25cf8c('0x1dc2')];})[_0x1e09ad('0xaa5')](function(_0x1ac1d6){var _0x8915cc=_0x1e09ad,_0x2218fd=_0x1ac1d6&&_0x1ac1d6[_0x8915cc('0x580')]?_0x1ac1d6[_0x8915cc('0x580')][0x0]:null;if(!_0x2218fd){var _0x576a65=[],_0x244978=null;_0x25d9fe[_0x8915cc('0x2098')]&&(_0x244978=_0x51538b()[_0x8915cc('0xe9e')](_0x25d9fe['mailAccounts'],{'id':Number(_0x25d9fe[_0x8915cc('0x2098')][_0x8915cc('0x2307')])}));for(var _0x58e27e=0x0;_0x58e27e<_0x25d9fe[_0x8915cc('0x172d')][_0x8915cc('0x2587')];_0x58e27e++){_0x244978&&_0x25d9fe[_0x8915cc('0x172d')][_0x58e27e]['id']===_0x244978['id']&&(_0x25d9fe[_0x8915cc('0x172d')][_0x58e27e][_0x8915cc('0x12eb')]=![],_0x576a65['push'](_0x25d9fe[_0x8915cc('0x172d')][_0x58e27e]));}_0x25d9fe[_0x8915cc('0x172d')]=_0x576a65;}else{if(!_0x2218fd['autoAssociation'])return _0x40fd82[_0x8915cc('0x249a')][_0x8915cc('0x2122')]({'sectionId':_0x2218fd['id']})['$promise']['then'](function(_0x31b464){var _0x383b39=_0x8915cc,_0xbc18cb=_0x51538b()['map'](_0x31b464[_0x383b39('0x580')],function(_0x2e692a){var _0x648c6a=_0x383b39;return _0x51538b()[_0x648c6a('0xe9e')](_0x25d9fe[_0x648c6a('0x172d')],{'id':_0x2e692a[_0x648c6a('0xbcd')]});}),_0x321486=null;_0x25d9fe[_0x383b39('0x2098')]&&(_0x321486=_0x51538b()[_0x383b39('0xe9e')](_0x25d9fe[_0x383b39('0x172d')],{'id':Number(_0x25d9fe[_0x383b39('0x2098')]['MailAccountId'])}));if(_0x321486&&!_0x51538b()[_0x383b39('0x2c2')](_0xbc18cb,['id',_0x321486['id']])){var _0x5cc2b6=_0x51538b()['find'](_0x25d9fe['mailAccounts'],{'id':_0x321486['id']});_0x5cc2b6[_0x383b39('0x12eb')]=![],_0xbc18cb['push'](_0x5cc2b6);}_0x25d9fe[_0x383b39('0x172d')]=_0xbc18cb;});}})[_0x1e09ad('0x253d')](function(_0x354c9f){var _0x5363d2=_0x1e09ad;_0x4e7420[_0x5363d2('0x187f')]({'title':_0x354c9f['status']?_0x5363d2('0x16c2')+_0x354c9f[_0x5363d2('0x2fa')]+_0x5363d2('0x169e')+_0x354c9f[_0x5363d2('0x24df')]:_0x5363d2('0x1ff3'),'msg':_0x354c9f['data']?JSON['stringify'](_0x354c9f[_0x5363d2('0x10fd')]):_0x354c9f[_0x5363d2('0x684')]()});});function _0x3d4e3d(_0x38fefd,_0x3166ec){var _0x13bf33=_0x1e09ad;_0xa3fc30[_0x13bf33('0x1e6d')]({'controller':_0x13bf33('0x17bf'),'controllerAs':'vm','templateUrl':_0x6b8a0c,'parent':angular[_0x13bf33('0x1aa8')](_0x524618[_0x13bf33('0x54c')]),'targetEvent':_0x3166ec,'clickOutsideToClose':!![],'locals':{'schedule':_0x38fefd,'schedules':_0x25d9fe[_0x13bf33('0x21f7')][_0x13bf33('0x580')],'license':_0x25d9fe['license'],'setting':null,'crudPermissions':_0x25d9fe[_0x13bf33('0xada')]}});}function _0x5c07c1(_0x532e31,_0x8d1e03){var _0x40405b=_0x1e09ad,_0xce8398=_0xa3fc30[_0x40405b('0x281e')]()[_0x40405b('0x110a')](_0x40405b('0xcf'))['htmlContent'](''+(_0x532e31[_0x40405b('0x25d6')]||'schedule')+_0x40405b('0x697')+_0x40405b('0x1ac5'))['ariaLabel'](_0x40405b('0x1fe7'))[_0x40405b('0x116d')](_0x8d1e03)['ok']('OK')[_0x40405b('0x2030')](_0x40405b('0x2410'));_0xa3fc30['show'](_0xce8398)[_0x40405b('0xaa5')](function(){var _0x17dcce=_0x40405b;return _0x40fd82[_0x17dcce('0x2098')][_0x17dcce('0xd9f')]({'id':_0x532e31['id']})[_0x17dcce('0x1dc2')];},function(){var _0x531ccb=_0x40405b;console['log'](_0x531ccb('0x2410'));});}function _0x19f900(_0x272471,_0x3d8e7e){var _0x48794e=_0x1e09ad,_0x5b89f8=_0xa3fc30[_0x48794e('0x281e')]()[_0x48794e('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x48794e('0x196a')](_0x48794e('0x2098'))+'?')[_0x48794e('0x102e')](_0x48794e('0x389')+(_0x272471[_0x48794e('0x25d6')]||_0x48794e('0x2098'))+_0x48794e('0x697')+_0x48794e('0x210d'))[_0x48794e('0x5b5')](_0x48794e('0x1fe7'))['targetEvent'](_0x3d8e7e)['ok']('OK')[_0x48794e('0x2030')]('CANCEL');_0xa3fc30[_0x48794e('0x1e6d')](_0x5b89f8)[_0x48794e('0xaa5')](function(){_0xfa657a(_0x272471);},function(){var _0x8757d=_0x48794e;console['log'](_0x8757d('0x2410'));});}var _0x43ab63=!![],_0x143df6=0x1;_0x2de693[_0x1e09ad('0x1ccf')](_0x1e09ad('0x1788'),function(_0x316abb,_0x3322ba){var _0x1ac753=_0x1e09ad;_0x43ab63?_0x1cff12(function(){_0x43ab63=![];}):(!_0x3322ba&&(_0x143df6=_0x25d9fe[_0x1ac753('0x582')][_0x1ac753('0x41')]),_0x316abb!==_0x3322ba&&(_0x25d9fe[_0x1ac753('0x582')][_0x1ac753('0x41')]=0x1),!_0x316abb&&(_0x25d9fe[_0x1ac753('0x582')][_0x1ac753('0x41')]=_0x143df6),_0x25d9fe[_0x1ac753('0x18d2')]());});function _0x253b0c(_0x5a08bc){var _0x410e4a=_0x1e09ad;_0x25d9fe[_0x410e4a('0x21f7')]=_0x5a08bc||{'count':0x0,'rows':[]};}function _0x223fd7(){var _0x120d8f=_0x1e09ad;_0x25d9fe['query'][_0x120d8f('0x8b1')]=(_0x25d9fe[_0x120d8f('0x582')][_0x120d8f('0x41')]-0x1)*_0x25d9fe[_0x120d8f('0x582')]['limit'],_0x270f71[_0x120d8f('0x26e8')]('admin')?_0x25d9fe[_0x120d8f('0x159a')]=_0x40fd82['schedule']['get'](_0x25d9fe[_0x120d8f('0x582')],_0x253b0c)[_0x120d8f('0x1dc2')]:(_0x25d9fe[_0x120d8f('0x582')]['id']=_0x25d9fe[_0x120d8f('0x1e97')]['id'],_0x25d9fe['query'][_0x120d8f('0x224d')]=_0x120d8f('0x1a18'),_0x25d9fe['promise']=_0x40fd82[_0x120d8f('0x1e97')][_0x120d8f('0x1cf1')](_0x25d9fe[_0x120d8f('0x582')],_0x253b0c)[_0x120d8f('0x1dc2')]);}function _0x1c5f3f(_0x1e160,_0x47ffd4){var _0x4d72e3=_0x1e09ad;_0xa3fc30[_0x4d72e3('0x1e6d')]({'controller':_0x4d72e3('0x17bf'),'controllerAs':'vm','templateUrl':_0x6b8a0c,'parent':angular['element'](_0x524618[_0x4d72e3('0x54c')]),'targetEvent':_0x1e160,'clickOutsideToClose':!![],'locals':{'schedule':_0x47ffd4,'schedules':_0x25d9fe[_0x4d72e3('0x21f7')][_0x4d72e3('0x580')],'license':_0x25d9fe[_0x4d72e3('0x1202')],'setting':_0x25d9fe['setting'],'crudPermissions':_0x25d9fe[_0x4d72e3('0xada')]}});}function _0xfa657a(_0x2ebd01){var _0x165468=_0x1e09ad;_0x40fd82['schedule']['delete']({'id':_0x2ebd01['id']})[_0x165468('0x1dc2')][_0x165468('0xaa5')](function(){var _0x2472c2=_0x165468;_0x51538b()[_0x2472c2('0xf6d')](_0x25d9fe[_0x2472c2('0x21f7')][_0x2472c2('0x580')],{'id':_0x2ebd01['id']}),_0x25d9fe[_0x2472c2('0x21f7')][_0x2472c2('0xd15')]-=0x1,!_0x25d9fe[_0x2472c2('0x21f7')]['rows'][_0x2472c2('0x2587')]&&_0x25d9fe['getScheduler'](),_0x4e7420[_0x2472c2('0xe10')]({'title':_0x51538b()['startCase'](_0x2472c2('0x11ef'))+_0x2472c2('0x8bb'),'msg':_0x2ebd01[_0x2472c2('0x25d6')]?_0x2ebd01[_0x2472c2('0x25d6')]+_0x2472c2('0xcd9'):''});})[_0x165468('0x253d')](function(_0x2900df){var _0x27badf=_0x165468;if(_0x2900df[_0x27badf('0x10fd')]&&_0x2900df[_0x27badf('0x10fd')]['errors']&&_0x2900df[_0x27badf('0x10fd')]['errors'][_0x27badf('0x2587')]){_0x25d9fe['errors']=_0x2900df['data'][_0x27badf('0x4c6')]||[{'message':_0x2900df[_0x27badf('0x684')](),'type':_0x27badf('0x1f98')}];for(var _0x551f6a=0x0;_0x551f6a<_0x2900df[_0x27badf('0x10fd')][_0x27badf('0x4c6')][_0x27badf('0x2587')];_0x551f6a++){_0x4e7420[_0x27badf('0x187f')]({'title':_0x2900df[_0x27badf('0x10fd')][_0x27badf('0x4c6')][_0x551f6a][_0x27badf('0x6c8')],'msg':_0x2900df[_0x27badf('0x10fd')][_0x27badf('0x4c6')][_0x551f6a][_0x27badf('0x1402')]});}}else _0x4e7420['error']({'title':_0x2900df['status']?'API:'+_0x2900df['status']+_0x27badf('0x169e')+_0x2900df[_0x27badf('0x24df')]:'SYSTEM:DELETEschedule','msg':_0x2900df[_0x27badf('0x10fd')]?JSON[_0x27badf('0xa48')](_0x2900df[_0x27badf('0x10fd')][_0x27badf('0x1402')]):_0x2900df[_0x27badf('0x1402')]||_0x2900df[_0x27badf('0x684')]()});});}function _0x3667b1(){var _0x37d4df=_0x1e09ad,_0x19c781=angular[_0x37d4df('0x20a')](_0x25d9fe[_0x37d4df('0xbe3')]);return _0x25d9fe[_0x37d4df('0xbe3')]=[],_0x19c781;}function _0x60e557(_0x14918f){var _0x2c7649=_0x1e09ad,_0xdf48aa=_0xa3fc30['confirm']()['title'](_0x2c7649('0x60e'))[_0x2c7649('0x102e')](_0x2c7649('0x389')+_0x25d9fe[_0x2c7649('0xbe3')][_0x2c7649('0x2587')]+_0x2c7649('0x1443')+_0x2c7649('0x210d'))[_0x2c7649('0x5b5')](_0x2c7649('0x3bb'))[_0x2c7649('0x116d')](_0x14918f)['ok']('OK')[_0x2c7649('0x2030')]('CANCEL');_0xa3fc30['show'](_0xdf48aa)[_0x2c7649('0xaa5')](function(){var _0x21fdfa=_0x2c7649;_0x25d9fe[_0x21fdfa('0xbe3')][_0x21fdfa('0x15b5')](function(_0x479d0e){_0xfa657a(_0x479d0e);}),_0x25d9fe[_0x21fdfa('0xbe3')]=[];});}function _0xdd05d9(){_0x25d9fe['selectedScheduler']=[];}function _0x669893(){var _0x3d46c5=_0x1e09ad;_0x25d9fe[_0x3d46c5('0xbe3')]=_0x25d9fe['schedules']['rows'];}}const _0x1d05ba=_0x4d223f;_0x15a744['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty',_0x1a8446('0x7ca'),'sound',_0x1a8446('0x157'),'Auth','license',_0x1a8446('0x143f'),'crudPermissions'];function _0x15a744(_0x3fa798,_0x284bcf,_0x357c95,_0x501a69,_0x32f9a0,_0x77802a,_0x1cdd9c,_0x3c68f3,_0x449cb6,_0x520a2a,_0x24ff37,_0x37ac3a,_0x5da270,_0x42403f){var _0x58eb87=_0x1a8446,_0x29315f=this;_0x29315f[_0x58eb87('0x7fc')]=_0x24ff37[_0x58eb87('0xacc')](),_0x29315f[_0x58eb87('0x4c6')]=[],_0x29315f['setting']=_0x5da270,_0x29315f['license']=_0x37ac3a,_0x29315f['crudPermissions']=_0x42403f,_0x29315f[_0x58eb87('0x9f0')]={},_0x29315f[_0x58eb87('0x1d53')]=_0x29315f[_0x58eb87('0x143f')]&&_0x29315f['setting'][_0x58eb87('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x29315f[_0x58eb87('0x110a')]='TOOLS.EDIT_SOUND',_0x29315f[_0x58eb87('0x7d6')]=angular[_0x58eb87('0x20a')](_0x449cb6),_0x29315f[_0x58eb87('0x7ca')]=_0x3c68f3,_0x29315f[_0x58eb87('0xbb9')]=![];!_0x29315f['sound']&&(_0x29315f[_0x58eb87('0x7d6')]={},_0x29315f[_0x58eb87('0x110a')]=_0x58eb87('0x15e4'),_0x29315f['newSound']=!![]);_0x29315f['addNewSound']=_0x4fa27c,_0x29315f[_0x58eb87('0x372')]=_0x1db28a,_0x29315f[_0x58eb87('0x1bae')]=_0x1c66a7,_0x29315f[_0x58eb87('0xc09')]=_0x1d4a41,_0x29315f['closeDialog']=_0x5cc8ed;function _0x4fa27c(){var _0x58bb5b=_0x58eb87;_0x29315f[_0x58bb5b('0x4c6')]=[],_0x520a2a['sound'][_0x58bb5b('0x242b')](_0x29315f[_0x58bb5b('0x7d6')])['$promise'][_0x58bb5b('0xaa5')](function(_0x2198ed){var _0x116e2a=_0x58bb5b;_0x29315f[_0x116e2a('0x7ca')][_0x116e2a('0x6ee')](_0x2198ed[_0x116e2a('0x256a')]()),_0x1cdd9c[_0x116e2a('0xe10')]({'title':_0x116e2a('0x864'),'msg':_0x29315f[_0x116e2a('0x7d6')][_0x116e2a('0x25d6')]?_0x29315f[_0x116e2a('0x7d6')][_0x116e2a('0x25d6')]+_0x116e2a('0xdca'):''}),_0x5cc8ed(_0x2198ed);})[_0x58bb5b('0x253d')](function(_0x54d5ea){var _0x4d7735=_0x58bb5b;if(_0x54d5ea['data']&&_0x54d5ea['data']['errors']&&_0x54d5ea[_0x4d7735('0x10fd')][_0x4d7735('0x4c6')][_0x4d7735('0x2587')]){_0x29315f[_0x4d7735('0x4c6')]=_0x54d5ea[_0x4d7735('0x10fd')][_0x4d7735('0x4c6')]||[{'message':_0x54d5ea[_0x4d7735('0x684')](),'type':_0x4d7735('0x1ee4')}];for(var _0x37f7a4=0x0;_0x37f7a4<_0x54d5ea[_0x4d7735('0x10fd')][_0x4d7735('0x4c6')]['length'];_0x37f7a4+=0x1){_0x1cdd9c[_0x4d7735('0x187f')]({'title':_0x54d5ea[_0x4d7735('0x10fd')][_0x4d7735('0x4c6')][_0x37f7a4][_0x4d7735('0x6c8')],'msg':_0x54d5ea[_0x4d7735('0x10fd')]['errors'][_0x37f7a4][_0x4d7735('0x1402')]});}}else _0x1cdd9c[_0x4d7735('0x187f')]({'title':_0x54d5ea[_0x4d7735('0x2fa')]?_0x4d7735('0x16c2')+_0x54d5ea[_0x4d7735('0x2fa')]+'\x20-\x20'+_0x54d5ea[_0x4d7735('0x24df')]:_0x4d7735('0x1ee4'),'msg':_0x54d5ea[_0x4d7735('0x10fd')]?JSON[_0x4d7735('0xa48')](_0x54d5ea[_0x4d7735('0x10fd')][_0x4d7735('0x1402')]):_0x54d5ea[_0x4d7735('0x684')]()});});}function _0x1db28a(){var _0x4dd859=_0x58eb87;_0x29315f[_0x4dd859('0x4c6')]=[],_0x520a2a[_0x4dd859('0x7d6')][_0x4dd859('0x264e')]({'id':_0x29315f[_0x4dd859('0x7d6')]['id']},_0x29315f[_0x4dd859('0x7d6')])[_0x4dd859('0x1dc2')][_0x4dd859('0xaa5')](function(_0x497264){var _0xebc547=_0x4dd859,_0x472deb=_0x51538b()[_0xebc547('0xe9e')](_0x29315f[_0xebc547('0x7ca')],{'id':_0x497264['id']});_0x472deb&&_0x51538b()['merge'](_0x472deb,_0x51538b()[_0xebc547('0x104e')](_0x497264[_0xebc547('0x256a')](),_0x51538b()[_0xebc547('0x9f2')](_0x472deb))),_0x1cdd9c[_0xebc547('0xe10')]({'title':_0xebc547('0x161b'),'msg':_0x29315f[_0xebc547('0x7d6')][_0xebc547('0x25d6')]?_0x29315f[_0xebc547('0x7d6')][_0xebc547('0x25d6')]+_0xebc547('0x20bf'):''}),_0x5cc8ed(_0x497264);})[_0x4dd859('0x253d')](function(_0x49a223){var _0x270453=_0x4dd859;if(_0x49a223[_0x270453('0x10fd')]&&_0x49a223[_0x270453('0x10fd')][_0x270453('0x4c6')]&&_0x49a223[_0x270453('0x10fd')]['errors'][_0x270453('0x2587')]){_0x29315f['errors']=_0x49a223[_0x270453('0x10fd')][_0x270453('0x4c6')]||[{'message':_0x49a223[_0x270453('0x684')](),'type':_0x270453('0x352')}];for(var _0x5904a9=0x0;_0x5904a9<_0x49a223['data'][_0x270453('0x4c6')][_0x270453('0x2587')];_0x5904a9++){_0x1cdd9c[_0x270453('0x187f')]({'title':_0x49a223[_0x270453('0x10fd')]['errors'][_0x5904a9]['type'],'msg':_0x49a223['data'][_0x270453('0x4c6')][_0x5904a9]['message']});}}else _0x1cdd9c[_0x270453('0x187f')]({'title':_0x49a223[_0x270453('0x2fa')]?_0x270453('0x16c2')+_0x49a223['status']+_0x270453('0x169e')+_0x49a223[_0x270453('0x24df')]:_0x270453('0x352'),'msg':_0x49a223[_0x270453('0x10fd')]?JSON[_0x270453('0xa48')](_0x49a223[_0x270453('0x10fd')][_0x270453('0x1402')]):_0x49a223['toString']()});});}function _0x1c66a7(_0x57c979){var _0x461c62=_0x58eb87;_0x29315f[_0x461c62('0x4c6')]=[];var _0xc62b31=_0x501a69[_0x461c62('0x281e')]()['title'](_0x461c62('0x12a3'))[_0x461c62('0x15af')](_0x461c62('0x1812'))[_0x461c62('0x5b5')](_0x461c62('0xc14'))['ok'](_0x461c62('0x1e76'))[_0x461c62('0x2030')](_0x461c62('0x9c6'))['targetEvent'](_0x57c979);_0x501a69[_0x461c62('0x1e6d')](_0xc62b31)[_0x461c62('0xaa5')](function(){var _0x1acd45=_0x461c62;_0x520a2a[_0x1acd45('0x7d6')][_0x1acd45('0x926')]({'id':_0x29315f['sound']['id']})[_0x1acd45('0x1dc2')][_0x1acd45('0xaa5')](function(){var _0x25e27a=_0x1acd45;_0x51538b()['remove'](_0x29315f[_0x25e27a('0x7ca')],{'id':_0x29315f[_0x25e27a('0x7d6')]['id']}),_0x1cdd9c[_0x25e27a('0xe10')]({'title':_0x25e27a('0x2365'),'msg':(_0x29315f[_0x25e27a('0x7d6')][_0x25e27a('0x25d6')]||_0x25e27a('0x7d6'))+_0x25e27a('0xcd9')}),_0x5cc8ed(_0x29315f[_0x25e27a('0x7d6')]);})[_0x1acd45('0x253d')](function(_0x35f660){var _0x4be403=_0x1acd45;if(_0x35f660['data']&&_0x35f660[_0x4be403('0x10fd')][_0x4be403('0x4c6')]&&_0x35f660['data'][_0x4be403('0x4c6')]['length']){_0x29315f[_0x4be403('0x4c6')]=_0x35f660[_0x4be403('0x10fd')][_0x4be403('0x4c6')]||[{'message':_0x35f660[_0x4be403('0x684')](),'type':_0x4be403('0x1a96')}];for(var _0x52445d=0x0;_0x52445d<_0x35f660[_0x4be403('0x10fd')][_0x4be403('0x4c6')][_0x4be403('0x2587')];_0x52445d++){_0x1cdd9c[_0x4be403('0x187f')]({'title':_0x35f660[_0x4be403('0x10fd')][_0x4be403('0x4c6')][_0x52445d][_0x4be403('0x6c8')],'msg':_0x35f660[_0x4be403('0x10fd')][_0x4be403('0x4c6')][_0x52445d]['message']});}}else _0x1cdd9c[_0x4be403('0x187f')]({'title':_0x35f660[_0x4be403('0x2fa')]?_0x4be403('0x16c2')+_0x35f660[_0x4be403('0x2fa')]+_0x4be403('0x169e')+_0x35f660[_0x4be403('0x24df')]:_0x4be403('0x1a96'),'msg':_0x35f660['data']?JSON[_0x4be403('0xa48')](_0x35f660[_0x4be403('0x10fd')][_0x4be403('0x1402')]):_0x35f660[_0x4be403('0x1402')]||_0x35f660[_0x4be403('0x684')]()});});},function(){});}function _0x1d4a41(_0x2f7345){return _0x2f7345===null?undefined:new Date(_0x2f7345);}function _0x5cc8ed(_0x45d013){var _0x12044c=_0x58eb87;_0x501a69[_0x12044c('0x1120')](_0x45d013);}}const _0x1326a5=_0x15a744,_0x172c10=_0x4fb511['p']+_0x1a8446('0x230e'),_0x430a68=_0x4fb511['p']+_0x1a8446('0x1061');_0x1dc0ea[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x7ca'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'api','msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x1dc0ea(_0x5909fb,_0x157ca3,_0x3b153f,_0x26f68c,_0x314634,_0x1cbbac,_0x227027,_0x4ee716,_0x344e41,_0x360c56,_0x8ea161,_0x306824,_0x5f369e,_0x31a09e,_0x2b3665,_0x277ea9,_0x2d5736){var _0x4c19cf=_0x1a8446,_0x2c173d=this;_0x2c173d[_0x4c19cf('0x1202')]=_0x277ea9,_0x2c173d['setting']=_0x2d5736,_0x2c173d['currentUser']=_0x2b3665[_0x4c19cf('0xacc')](),_0x2c173d[_0x4c19cf('0x7ca')]=_0x344e41||{'count':0x0,'rows':[]},_0x2c173d[_0x4c19cf('0x1e97')]=_0x360c56,_0x2c173d[_0x4c19cf('0x1a50')]=_0x8ea161&&_0x8ea161[_0x4c19cf('0xd15')]==0x1?_0x8ea161[_0x4c19cf('0x580')][0x0]:null,_0x2c173d[_0x4c19cf('0xada')]=_0x2b3665[_0x4c19cf('0xffd')](_0x2c173d['userProfileSection']?_0x2c173d[_0x4c19cf('0x1a50')][_0x4c19cf('0xada')]:null),_0x2c173d[_0x4c19cf('0x12b6')]=_0x4c19cf('0x7ca'),_0x2c173d[_0x4c19cf('0x164')]='',_0x2c173d[_0x4c19cf('0x8cc')]=null,_0x2c173d[_0x4c19cf('0x1687')]=[],_0x2c173d[_0x4c19cf('0x582')]={'fields':_0x4c19cf('0xb01'),'sort':_0x4c19cf('0xd82'),'limit':0xa,'page':0x1},_0x2c173d['editdialog']=_0x1a064d,_0x2c173d[_0x4c19cf('0xe22')]=_0x1d6665,_0x2c173d['deleteconfirm']=_0x1b041d,_0x2c173d[_0x4c19cf('0xe10')]=_0x3a862f,_0x2c173d[_0x4c19cf('0x17f1')]=_0x38cced,_0x2c173d[_0x4c19cf('0x2465')]=_0x2636fc,_0x2c173d[_0x4c19cf('0x1bae')]=_0x3ef24b,_0x2c173d['exportSelectedSounds']=_0x5d9733,_0x2c173d[_0x4c19cf('0x114c')]=_0x54fb78,_0x2c173d[_0x4c19cf('0x20a1')]=_0xc6b9af,_0x2c173d['selectAllSounds']=_0x3eec0e,_0x2c173d[_0x4c19cf('0xb06')]=_0x2a824c;function _0x1a064d(_0xe22a11,_0x3383cd){var _0x36cea0=_0x4c19cf;_0x314634[_0x36cea0('0x1e6d')]({'controller':_0x36cea0('0x988'),'controllerAs':'vm','templateUrl':_0x172c10,'parent':angular['element'](_0x1cbbac[_0x36cea0('0x54c')]),'targetEvent':_0x3383cd,'clickOutsideToClose':!![],'locals':{'sound':_0xe22a11,'sounds':_0x2c173d[_0x36cea0('0x7ca')]['rows'],'license':_0x2c173d[_0x36cea0('0x1202')],'setting':null,'crudPermissions':_0x2c173d['crudPermissions']}});}function _0x1d6665(_0x4780a2){var _0x24a585=_0x4c19cf;return _0x306824['sound'][_0x24a585('0x1cf9')]({'id':_0x4780a2['id']})['$promise']['then'](function(_0xca4df4){var _0x2593b5=_0x24a585,_0x292ea4=[_0xca4df4['buffer']],_0xbd2bd0=_0x2593b5('0x1cf9'),_0x13bc97=new Blob(_0x292ea4,{'type':_0xca4df4[_0x2593b5('0x6c8')]});_0xbd2bd0=_0x4780a2[_0x2593b5('0xec7')]?_0x4780a2[_0x2593b5('0xff4')]+'.'+_0x4780a2['converted_format']:_0x4780a2[_0x2593b5('0xff4')];var _0x2483ff=window['document']['createElement']('a');_0x2483ff[_0x2593b5('0x107b')](_0x2593b5('0x18ae'),URL[_0x2593b5('0x1e56')](_0x13bc97)),_0x2483ff[_0x2593b5('0x107b')]('download',_0xbd2bd0),document[_0x2593b5('0x54c')][_0x2593b5('0x1315')](_0x2483ff),_0x2483ff[_0x2593b5('0x467')]();})['catch'](function(_0x1c4baa){var _0x36ed7a=_0x24a585;if(_0x1c4baa[_0x36ed7a('0x10fd')]&&_0x1c4baa[_0x36ed7a('0x10fd')]['errors']&&_0x1c4baa[_0x36ed7a('0x10fd')][_0x36ed7a('0x4c6')][_0x36ed7a('0x2587')])for(var _0x484f06=0x0;_0x484f06<_0x1c4baa[_0x36ed7a('0x10fd')][_0x36ed7a('0x4c6')]['length'];_0x484f06++){_0x31a09e[_0x36ed7a('0x187f')]({'title':_0x1c4baa[_0x36ed7a('0x10fd')]['errors'][_0x484f06][_0x36ed7a('0x6c8')],'msg':_0x1c4baa[_0x36ed7a('0x10fd')][_0x36ed7a('0x4c6')][_0x484f06][_0x36ed7a('0x1402')]});}else _0x31a09e[_0x36ed7a('0x187f')]({'title':_0x1c4baa[_0x36ed7a('0x2fa')]?_0x36ed7a('0x16c2')+_0x1c4baa['status']+_0x36ed7a('0x169e')+_0x1c4baa[_0x36ed7a('0x24df')]:'api.sound.save','msg':_0x1c4baa[_0x36ed7a('0x10fd')]?JSON[_0x36ed7a('0xa48')](_0x1c4baa[_0x36ed7a('0x10fd')][_0x36ed7a('0x1402')]):_0x1c4baa[_0x36ed7a('0x684')]()});});}function _0x1b041d(_0x23f19b,_0x4b163a){var _0x31de57=_0x4c19cf,_0xe41e56=_0x314634['confirm']()[_0x31de57('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x31de57('0x196a')]('sound')+'?')['htmlContent'](_0x31de57('0x389')+(_0x23f19b[_0x31de57('0x25d6')]||'sound')+_0x31de57('0x697')+_0x31de57('0x210d'))[_0x31de57('0x5b5')]('delete\x20sound')[_0x31de57('0x116d')](_0x4b163a)['ok']('OK')[_0x31de57('0x2030')](_0x31de57('0x2410'));_0x314634[_0x31de57('0x1e6d')](_0xe41e56)[_0x31de57('0xaa5')](function(){_0x3ef24b(_0x23f19b);},function(){var _0x2fe298=_0x31de57;console[_0x2fe298('0x18d5')](_0x2fe298('0x2410'));});}var _0x2af245=!![],_0x52450f=0x1;_0x5909fb['$watch'](_0x4c19cf('0x1788'),function(_0x23e059,_0x2b49dd){var _0x48e091=_0x4c19cf;_0x2af245?_0x227027(function(){_0x2af245=![];}):(!_0x2b49dd&&(_0x52450f=_0x2c173d['query'][_0x48e091('0x41')]),_0x23e059!==_0x2b49dd&&(_0x2c173d[_0x48e091('0x582')][_0x48e091('0x41')]=0x1),!_0x23e059&&(_0x2c173d[_0x48e091('0x582')][_0x48e091('0x41')]=_0x52450f),_0x2c173d[_0x48e091('0x17f1')]());});function _0x3a862f(_0x58672f){var _0x4a23a2=_0x4c19cf;_0x2c173d[_0x4a23a2('0x7ca')]=_0x58672f||{'count':0x0,'rows':[]};}function _0x38cced(){var _0x1cb5d6=_0x4c19cf;_0x2c173d[_0x1cb5d6('0x582')][_0x1cb5d6('0x8b1')]=(_0x2c173d[_0x1cb5d6('0x582')][_0x1cb5d6('0x41')]-0x1)*_0x2c173d['query'][_0x1cb5d6('0xf4d')],_0x2b3665[_0x1cb5d6('0x26e8')](_0x1cb5d6('0x178b'))?_0x2c173d[_0x1cb5d6('0x159a')]=_0x306824[_0x1cb5d6('0x7d6')][_0x1cb5d6('0x2122')](_0x2c173d[_0x1cb5d6('0x582')],_0x3a862f)['$promise']:(_0x2c173d[_0x1cb5d6('0x582')]['id']=_0x2c173d['userProfile']['id'],_0x2c173d['query'][_0x1cb5d6('0x224d')]=_0x1cb5d6('0x13da'),_0x2c173d[_0x1cb5d6('0x159a')]=_0x306824[_0x1cb5d6('0x1e97')][_0x1cb5d6('0x1cf1')](_0x2c173d[_0x1cb5d6('0x582')],_0x3a862f)[_0x1cb5d6('0x1dc2')]);}function _0x2636fc(_0x4da7b2,_0x3fa79e){var _0x59c160=_0x4c19cf;_0x314634[_0x59c160('0x1e6d')]({'controller':_0x59c160('0x988'),'controllerAs':'vm','templateUrl':_0x172c10,'parent':angular[_0x59c160('0x1aa8')](_0x1cbbac['body']),'targetEvent':_0x4da7b2,'clickOutsideToClose':!![],'locals':{'sound':_0x3fa79e,'sounds':_0x2c173d[_0x59c160('0x7ca')][_0x59c160('0x580')],'license':_0x2c173d['license'],'setting':_0x2c173d['setting'],'crudPermissions':_0x2c173d[_0x59c160('0xada')]}});}function _0x3ef24b(_0x5e52c6){var _0x3532f8=_0x4c19cf;_0x306824[_0x3532f8('0x7d6')][_0x3532f8('0x926')]({'id':_0x5e52c6['id']})[_0x3532f8('0x1dc2')][_0x3532f8('0xaa5')](function(){var _0x5010d5=_0x3532f8;_0x51538b()[_0x5010d5('0xf6d')](_0x2c173d['sounds'][_0x5010d5('0x580')],{'id':_0x5e52c6['id']}),_0x2c173d[_0x5010d5('0x7ca')]['count']-=0x1,!_0x2c173d[_0x5010d5('0x7ca')]['rows'][_0x5010d5('0x2587')]&&_0x2c173d[_0x5010d5('0x17f1')](),_0x31a09e['success']({'title':_0x51538b()['startCase']('Sound')+_0x5010d5('0x8bb'),'msg':_0x5e52c6[_0x5010d5('0x25d6')]?_0x5e52c6[_0x5010d5('0x25d6')]+_0x5010d5('0xcd9'):''});})[_0x3532f8('0x253d')](function(_0x437655){var _0x375141=_0x3532f8;if(_0x437655[_0x375141('0x10fd')]&&_0x437655[_0x375141('0x10fd')][_0x375141('0x4c6')]&&_0x437655[_0x375141('0x10fd')][_0x375141('0x4c6')][_0x375141('0x2587')]){_0x2c173d[_0x375141('0x4c6')]=_0x437655[_0x375141('0x10fd')][_0x375141('0x4c6')]||[{'message':_0x437655[_0x375141('0x684')](),'type':'SYSTEM:DELETEsound'}];for(var _0x2c951f=0x0;_0x2c951f<_0x437655[_0x375141('0x10fd')][_0x375141('0x4c6')][_0x375141('0x2587')];_0x2c951f++){_0x31a09e[_0x375141('0x187f')]({'title':_0x437655[_0x375141('0x10fd')][_0x375141('0x4c6')][_0x2c951f]['type'],'msg':_0x437655[_0x375141('0x10fd')][_0x375141('0x4c6')][_0x2c951f][_0x375141('0x1402')]});}}else _0x31a09e[_0x375141('0x187f')]({'title':_0x437655[_0x375141('0x2fa')]?'API:'+_0x437655[_0x375141('0x2fa')]+_0x375141('0x169e')+_0x437655[_0x375141('0x24df')]:_0x375141('0xff0'),'msg':_0x437655[_0x375141('0x10fd')]?JSON['stringify'](_0x437655[_0x375141('0x10fd')][_0x375141('0x1402')]):_0x437655[_0x375141('0x1402')]||_0x437655[_0x375141('0x684')]()});});}function _0x5d9733(){var _0x451e5b=_0x4c19cf,_0xb2ae0f=angular[_0x451e5b('0x20a')](_0x2c173d[_0x451e5b('0x1687')]);return _0x2c173d[_0x451e5b('0x1687')]=[],_0xb2ae0f;}function _0x54fb78(_0x397ae2){var _0x58b8af=_0x4c19cf,_0x32d9f4=_0x314634['confirm']()['title'](_0x58b8af('0x202'))[_0x58b8af('0x102e')](''+_0x2c173d[_0x58b8af('0x1687')][_0x58b8af('0x2587')]+'\x20selected'+_0x58b8af('0x210d'))[_0x58b8af('0x5b5')](_0x58b8af('0x2034'))[_0x58b8af('0x116d')](_0x397ae2)['ok']('OK')['cancel'](_0x58b8af('0x2410'));_0x314634[_0x58b8af('0x1e6d')](_0x32d9f4)[_0x58b8af('0xaa5')](function(){_0x2c173d['selectedSounds']['forEach'](function(_0x29ad8a){_0x3ef24b(_0x29ad8a);}),_0x2c173d['selectedSounds']=[];});}function _0xc6b9af(){var _0x3771ca=_0x4c19cf;_0x2c173d[_0x3771ca('0x1687')]=[];}function _0x3eec0e(){var _0x238e41=_0x4c19cf;_0x2c173d[_0x238e41('0x1687')]=_0x2c173d['sounds'][_0x238e41('0x580')];}function _0x2a824c(_0x472651){var _0x90c1ea=_0x4c19cf;_0x314634[_0x90c1ea('0x1e6d')]({'controller':'UploadSoundDialogController','controllerAs':'vm','templateUrl':_0x430a68,'parent':angular[_0x90c1ea('0x1aa8')](_0x1cbbac[_0x90c1ea('0x54c')]),'targetEvent':_0x472651,'clickOutsideToClose':!![],'locals':{'sounds':_0x2c173d[_0x90c1ea('0x7ca')][_0x90c1ea('0x580')]}});}}const _0x222b32=_0x1dc0ea;_0x155b7c['$inject']=[_0x1a8446('0x95f'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x7ca'),_0x1a8446('0x157'),'Auth'];function _0x155b7c(_0x115174,_0x351f21,_0x5ac834,_0x43cc43,_0x53c5fc,_0xbedd70){var _0x4a564f=_0x1a8446,_0x40b045=this,_0x14c6cf=0xf,_0x22192b=_0x14c6cf*0x400*0x400;_0x40b045[_0x4a564f('0x7fc')]=_0xbedd70[_0x4a564f('0xacc')](),_0x40b045[_0x4a564f('0x4c6')]=[],_0x40b045['title']='TOOLS.UPLOAD_SOUND',_0x40b045[_0x4a564f('0x7ca')]=_0x43cc43,_0x40b045[_0x4a564f('0x1dc3')]=[],_0x40b045[_0x4a564f('0x7bb')]='none',_0x40b045['sound']={},_0x40b045[_0x4a564f('0x1c88')]={'maxChunkRetries':0x1,'chunkSize':_0x22192b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x4a564f('0x10b7')},_0x40b045[_0x4a564f('0x27cd')]={'flow':{}},_0x40b045[_0x4a564f('0x258f')]=![],_0x40b045['fileAdded']=_0xab86a5,_0x40b045[_0x4a564f('0x158b')]=_0x468513,_0x40b045[_0x4a564f('0x1313')]=_0x157f5d,_0x40b045[_0x4a564f('0x1331')]=_0x22789a,_0x40b045[_0x4a564f('0x1626')]=_0x9ca084,_0x40b045[_0x4a564f('0x2023')]=_0x53f26f;function _0xab86a5(_0xd6a65){var _0x4c25e6=_0x4a564f,_0x552198=[_0x4c25e6('0x2715'),_0x4c25e6('0x1602'),_0x4c25e6('0x2172')];if(!_0x51538b()['includes'](_0x552198,_0xd6a65[_0x4c25e6('0x177a')]()))return _0x5ac834[_0x4c25e6('0x187f')]({'title':_0x4c25e6('0x7bf')+_0xd6a65[_0x4c25e6('0x177a')](),'msg':_0x4c25e6('0x88f')+_0x552198[_0x4c25e6('0x19c4')]()}),![];if(_0xd6a65['size']>_0x22192b)return _0x5ac834[_0x4c25e6('0x187f')]({'title':_0x4c25e6('0xfad'),'msg':_0x4c25e6('0x15dd')+_0x14c6cf+'MB'}),![];return _0x40b045[_0x4c25e6('0x7d6')]={'id':_0xd6a65[_0x4c25e6('0xd3c')],'file':_0xd6a65},_0x40b045[_0x4c25e6('0x1dc3')][_0x4c25e6('0x6ee')](_0x40b045['sound']),!![];}function _0x468513(){var _0x326b7e=_0x4a564f;_0x40b045['uploadState']='uploading',_0x40b045[_0x326b7e('0x27cd')][_0x326b7e('0xcba')][_0x326b7e('0x177d')][_0x326b7e('0xc71')]={'X-Requested-With':_0x326b7e('0x1888'),'Authorization':_0x326b7e('0x2070')+_0x115174[_0x326b7e('0x2122')]('motion.token')},_0x40b045['ngFlow'][_0x326b7e('0xcba')][_0x326b7e('0x177d')]['query']={'role':_0x40b045[_0x326b7e('0x7fc')][_0x326b7e('0x924')],'userProfileId':_0x40b045[_0x326b7e('0x7fc')][_0x326b7e('0x2168')]},_0x40b045[_0x326b7e('0x27cd')]['flow'][_0x326b7e('0x158b')]();}function _0x157f5d(_0x301127,_0x3cdef2){var _0x3e55ec=_0x4a564f;_0x40b045['sounds']['unshift'](JSON[_0x3e55ec('0x9b6')](_0x3cdef2)),angular[_0x3e55ec('0x15b5')](_0x40b045[_0x3e55ec('0x1dc3')],function(_0x576da2){var _0x3ba163=_0x3e55ec;if(_0x576da2['id']===_0x301127[_0x3ba163('0xd3c')]){var _0x423c5d=new FileReader();_0x423c5d[_0x3ba163('0xc21')](_0x576da2[_0x3ba163('0x1945')][_0x3ba163('0x1945')]),_0x423c5d[_0x3ba163('0x224e')]=function(_0x2a6522){var _0x1b08b0=_0x3ba163;_0x576da2['url']=_0x2a6522['target'][_0x1b08b0('0xcd6')];};}});}function _0x22789a(){var _0x2c1fe6=_0x4a564f;_0x40b045['ngFlow'][_0x2c1fe6('0xcba')][_0x2c1fe6('0x2030')](),_0x5ac834[_0x2c1fe6('0x187f')]({'title':_0x2c1fe6('0xa01'),'msg':_0x2c1fe6('0x199e')}),_0x40b045[_0x2c1fe6('0x7bb')]=_0x2c1fe6('0x40c');}function _0x9ca084(){var _0x4996cb=_0x4a564f;_0x40b045[_0x4996cb('0x7bb')]!==_0x4996cb('0x40c')&&(_0x40b045[_0x4996cb('0x7bb')]=_0x4996cb('0xf6c'),_0x5ac834[_0x4996cb('0xe10')]({'title':'Upload\x20completed','msg':_0x40b045[_0x4996cb('0x7d6')]['file'][_0x4996cb('0x25d6')]+_0x4996cb('0x1151')}));}function _0x53f26f(){_0x351f21['hide']();}}const _0xd4fb42=_0x155b7c;_0x37aac2[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x523'),_0x1a8446('0x38f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x37aac2(_0x5462e9,_0x38c523,_0x5db8a7,_0x50ddee,_0x250bc4,_0x417757,_0x20a089,_0x41c22e,_0x455eb9,_0x52f23a,_0x101a94,_0xce5df6,_0x4dfeea,_0x5334b7){var _0x528c36=_0x1a8446,_0x3c32ed=this;_0x3c32ed['currentUser']=_0x101a94[_0x528c36('0xacc')](),_0x3c32ed[_0x528c36('0x4c6')]=[],_0x3c32ed['setting']=_0x4dfeea,_0x3c32ed[_0x528c36('0x1202')]=_0xce5df6,_0x3c32ed['crudPermissions']=_0x5334b7,_0x3c32ed[_0x528c36('0x9f0')]={},_0x3c32ed[_0x528c36('0x1d53')]=_0x3c32ed[_0x528c36('0x143f')]&&_0x3c32ed[_0x528c36('0x143f')][_0x528c36('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c32ed[_0x528c36('0x110a')]=_0x528c36('0x81c'),_0x3c32ed[_0x528c36('0x38f')]=angular[_0x528c36('0x20a')](_0x455eb9),_0x3c32ed[_0x528c36('0x523')]=_0x41c22e,_0x3c32ed[_0x528c36('0x2112')]=![];!_0x3c32ed['tag']&&(_0x3c32ed['tag']={},_0x3c32ed[_0x528c36('0x110a')]='TOOLS.NEW_TAG',_0x3c32ed[_0x528c36('0x2112')]=!![]);_0x3c32ed[_0x528c36('0x892')]=_0x4aa174,_0x3c32ed[_0x528c36('0xbaf')]=_0x9ff9ee,_0x3c32ed['deleteTag']=_0x22f99d,_0x3c32ed[_0x528c36('0xc09')]=_0x1e22a4,_0x3c32ed[_0x528c36('0x2023')]=_0x178bba;function _0x4aa174(){var _0x76eb83=_0x528c36;_0x3c32ed[_0x76eb83('0x4c6')]=[],_0x52f23a['tag'][_0x76eb83('0x242b')](_0x3c32ed['tag'])[_0x76eb83('0x1dc2')][_0x76eb83('0xaa5')](function(_0x1e460c){var _0x39f52d=_0x76eb83;_0x3c32ed[_0x39f52d('0x523')][_0x39f52d('0x6ee')](_0x1e460c[_0x39f52d('0x256a')]()),_0x20a089[_0x39f52d('0xe10')]({'title':'Tag\x20properly\x20created','msg':_0x3c32ed[_0x39f52d('0x38f')]['name']?_0x3c32ed[_0x39f52d('0x38f')][_0x39f52d('0x25d6')]+_0x39f52d('0xdca'):''}),_0x178bba(_0x1e460c);})['catch'](function(_0x18bcd7){var _0x28310b=_0x76eb83;if(_0x18bcd7['data']&&_0x18bcd7['data'][_0x28310b('0x4c6')]&&_0x18bcd7['data'][_0x28310b('0x4c6')]['length']){_0x3c32ed['errors']=_0x18bcd7[_0x28310b('0x10fd')][_0x28310b('0x4c6')]||[{'message':_0x18bcd7['toString'](),'type':_0x28310b('0x247d')}];for(var _0x5432b9=0x0;_0x5432b9<_0x18bcd7['data']['errors'][_0x28310b('0x2587')];_0x5432b9+=0x1){_0x20a089['error']({'title':_0x18bcd7['data'][_0x28310b('0x4c6')][_0x5432b9][_0x28310b('0x6c8')],'msg':_0x18bcd7[_0x28310b('0x10fd')][_0x28310b('0x4c6')][_0x5432b9][_0x28310b('0x1402')]});}}else _0x20a089[_0x28310b('0x187f')]({'title':_0x18bcd7[_0x28310b('0x2fa')]?_0x28310b('0x16c2')+_0x18bcd7[_0x28310b('0x2fa')]+_0x28310b('0x169e')+_0x18bcd7[_0x28310b('0x24df')]:_0x28310b('0x247d'),'msg':_0x18bcd7['data']?JSON['stringify'](_0x18bcd7[_0x28310b('0x10fd')][_0x28310b('0x1402')]):_0x18bcd7['toString']()});});}function _0x9ff9ee(){var _0x545a83=_0x528c36;_0x3c32ed['errors']=[],_0x52f23a[_0x545a83('0x38f')][_0x545a83('0x264e')]({'id':_0x3c32ed[_0x545a83('0x38f')]['id']},_0x3c32ed['tag'])['$promise'][_0x545a83('0xaa5')](function(_0x35da28){var _0x5d7313=_0x545a83,_0x4f793a=_0x51538b()[_0x5d7313('0xe9e')](_0x3c32ed[_0x5d7313('0x523')],{'id':_0x35da28['id']});_0x4f793a&&_0x51538b()[_0x5d7313('0x283c')](_0x4f793a,_0x51538b()[_0x5d7313('0x104e')](_0x35da28[_0x5d7313('0x256a')](),_0x51538b()[_0x5d7313('0x9f2')](_0x4f793a))),_0x20a089[_0x5d7313('0xe10')]({'title':_0x5d7313('0x17c8'),'msg':_0x3c32ed['tag'][_0x5d7313('0x25d6')]?_0x3c32ed[_0x5d7313('0x38f')][_0x5d7313('0x25d6')]+_0x5d7313('0x20bf'):''}),_0x178bba(_0x35da28);})[_0x545a83('0x253d')](function(_0x32ef01){var _0x5c89c3=_0x545a83;if(_0x32ef01[_0x5c89c3('0x10fd')]&&_0x32ef01[_0x5c89c3('0x10fd')][_0x5c89c3('0x4c6')]&&_0x32ef01[_0x5c89c3('0x10fd')][_0x5c89c3('0x4c6')][_0x5c89c3('0x2587')]){_0x3c32ed[_0x5c89c3('0x4c6')]=_0x32ef01[_0x5c89c3('0x10fd')][_0x5c89c3('0x4c6')]||[{'message':_0x32ef01[_0x5c89c3('0x684')](),'type':_0x5c89c3('0xf3f')}];for(var _0x2585da=0x0;_0x2585da<_0x32ef01[_0x5c89c3('0x10fd')][_0x5c89c3('0x4c6')][_0x5c89c3('0x2587')];_0x2585da++){_0x20a089[_0x5c89c3('0x187f')]({'title':_0x32ef01['data'][_0x5c89c3('0x4c6')][_0x2585da][_0x5c89c3('0x6c8')],'msg':_0x32ef01[_0x5c89c3('0x10fd')]['errors'][_0x2585da]['message']});}}else _0x20a089[_0x5c89c3('0x187f')]({'title':_0x32ef01['status']?_0x5c89c3('0x16c2')+_0x32ef01[_0x5c89c3('0x2fa')]+_0x5c89c3('0x169e')+_0x32ef01[_0x5c89c3('0x24df')]:_0x5c89c3('0xf3f'),'msg':_0x32ef01['data']?JSON[_0x5c89c3('0xa48')](_0x32ef01[_0x5c89c3('0x10fd')][_0x5c89c3('0x1402')]):_0x32ef01[_0x5c89c3('0x684')]()});});}function _0x22f99d(_0xb3d67){var _0x45879b=_0x528c36;_0x3c32ed[_0x45879b('0x4c6')]=[];var _0x44153d=_0x50ddee['confirm']()[_0x45879b('0x110a')](_0x45879b('0x12a3'))['content'](_0x45879b('0x9c0'))[_0x45879b('0x5b5')]('Delete\x20Tag')['ok'](_0x45879b('0x1e76'))[_0x45879b('0x2030')](_0x45879b('0x9c6'))[_0x45879b('0x116d')](_0xb3d67);_0x50ddee[_0x45879b('0x1e6d')](_0x44153d)['then'](function(){var _0x254c08=_0x45879b;_0x52f23a[_0x254c08('0x38f')][_0x254c08('0x926')]({'id':_0x3c32ed[_0x254c08('0x38f')]['id']})['$promise'][_0x254c08('0xaa5')](function(){var _0x5ee5e3=_0x254c08;_0x51538b()[_0x5ee5e3('0xf6d')](_0x3c32ed['tags'],{'id':_0x3c32ed[_0x5ee5e3('0x38f')]['id']}),_0x20a089[_0x5ee5e3('0xe10')]({'title':_0x5ee5e3('0x1f2d'),'msg':(_0x3c32ed[_0x5ee5e3('0x38f')][_0x5ee5e3('0x25d6')]||_0x5ee5e3('0x38f'))+_0x5ee5e3('0xcd9')}),_0x178bba(_0x3c32ed[_0x5ee5e3('0x38f')]);})[_0x254c08('0x253d')](function(_0x360921){var _0x47555c=_0x254c08;if(_0x360921['data']&&_0x360921[_0x47555c('0x10fd')]['errors']&&_0x360921[_0x47555c('0x10fd')][_0x47555c('0x4c6')]['length']){_0x3c32ed[_0x47555c('0x4c6')]=_0x360921[_0x47555c('0x10fd')][_0x47555c('0x4c6')]||[{'message':_0x360921['toString'](),'type':_0x47555c('0x1827')}];for(var _0x1cad11=0x0;_0x1cad11<_0x360921[_0x47555c('0x10fd')][_0x47555c('0x4c6')][_0x47555c('0x2587')];_0x1cad11++){_0x20a089[_0x47555c('0x187f')]({'title':_0x360921['data'][_0x47555c('0x4c6')][_0x1cad11][_0x47555c('0x6c8')],'msg':_0x360921[_0x47555c('0x10fd')][_0x47555c('0x4c6')][_0x1cad11]['message']});}}else _0x20a089[_0x47555c('0x187f')]({'title':_0x360921[_0x47555c('0x2fa')]?_0x47555c('0x16c2')+_0x360921[_0x47555c('0x2fa')]+_0x47555c('0x169e')+_0x360921[_0x47555c('0x24df')]:_0x47555c('0x1827'),'msg':_0x360921[_0x47555c('0x10fd')]?JSON[_0x47555c('0xa48')](_0x360921[_0x47555c('0x10fd')]['message']):_0x360921[_0x47555c('0x1402')]||_0x360921[_0x47555c('0x684')]()});});},function(){});}function _0x1e22a4(_0xb1601){return _0xb1601===null?undefined:new Date(_0xb1601);}function _0x178bba(_0x2d03c1){var _0x71a37a=_0x528c36;_0x50ddee[_0x71a37a('0x1120')](_0x2d03c1);}}const _0x59b0ce=_0x37aac2,_0x5b4131=_0x4fb511['p']+_0x1a8446('0x1837');_0x565a1b['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x523'),'userProfile','userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x565a1b(_0x29209b,_0x38ddd3,_0x390acc,_0x151359,_0x556075,_0x55629c,_0x453180,_0x2fdc25,_0x111495,_0xca192c,_0x1140ac,_0x4781f5,_0x4d97fc,_0xbd008a,_0x433eab,_0x2ea4d7,_0x383519){var _0x368e64=_0x1a8446,_0x330bd8=this;_0x330bd8[_0x368e64('0x1202')]=_0x2ea4d7,_0x330bd8[_0x368e64('0x143f')]=_0x383519,_0x330bd8['currentUser']=_0x433eab[_0x368e64('0xacc')](),_0x330bd8[_0x368e64('0x523')]=_0x111495||{'count':0x0,'rows':[]},_0x330bd8[_0x368e64('0x1e97')]=_0xca192c,_0x330bd8[_0x368e64('0x1a50')]=_0x1140ac&&_0x1140ac[_0x368e64('0xd15')]==0x1?_0x1140ac[_0x368e64('0x580')][0x0]:null,_0x330bd8[_0x368e64('0xada')]=_0x433eab[_0x368e64('0xffd')](_0x330bd8['userProfileSection']?_0x330bd8[_0x368e64('0x1a50')]['crudPermissions']:null),_0x330bd8['table']='tags',_0x330bd8['listOrder']='',_0x330bd8[_0x368e64('0x8cc')]=null,_0x330bd8[_0x368e64('0x1373')]=[],_0x330bd8['query']={'fields':'createdAt,updatedAt,id,name,description,color','sort':_0x368e64('0xd82'),'limit':0xa,'page':0x1},_0x330bd8[_0x368e64('0x1960')]=_0x3efe60,_0x330bd8[_0x368e64('0x271')]=_0x16fcde,_0x330bd8['success']=_0x51031e,_0x330bd8[_0x368e64('0x195b')]=_0x13ce71,_0x330bd8[_0x368e64('0x630')]=_0x22281b,_0x330bd8['deleteTag']=_0x2f49e1,_0x330bd8[_0x368e64('0x2589')]=_0x3354f7,_0x330bd8[_0x368e64('0x10e7')]=_0xd1353a,_0x330bd8[_0x368e64('0x505')]=_0x3a70c8,_0x330bd8[_0x368e64('0x60')]=_0x23538e;function _0x3efe60(_0x597bb2,_0x4f8a73){var _0x46d299=_0x368e64;_0x556075['show']({'controller':_0x46d299('0x1f72'),'controllerAs':'vm','templateUrl':_0x5b4131,'parent':angular['element'](_0x55629c[_0x46d299('0x54c')]),'targetEvent':_0x4f8a73,'clickOutsideToClose':!![],'locals':{'tag':_0x597bb2,'tags':_0x330bd8['tags'][_0x46d299('0x580')],'license':_0x330bd8[_0x46d299('0x1202')],'setting':null,'crudPermissions':_0x330bd8['crudPermissions']}});}function _0x16fcde(_0x2fcd81,_0x5b14ae){var _0x37168d=_0x368e64,_0x450654=_0x556075['confirm']()[_0x37168d('0x110a')](_0x37168d('0x88d')+_0x51538b()['startCase']('tag')+'?')['htmlContent'](_0x37168d('0x389')+(_0x2fcd81['name']||_0x37168d('0x38f'))+_0x37168d('0x697')+_0x37168d('0x210d'))[_0x37168d('0x5b5')](_0x37168d('0x8e8'))[_0x37168d('0x116d')](_0x5b14ae)['ok']('OK')['cancel'](_0x37168d('0x2410'));_0x556075[_0x37168d('0x1e6d')](_0x450654)[_0x37168d('0xaa5')](function(){_0x2f49e1(_0x2fcd81);},function(){var _0x58180e=_0x37168d;console['log'](_0x58180e('0x2410'));});}var _0x2d9b43=!![],_0x432e6d=0x1;_0x29209b[_0x368e64('0x1ccf')]('vm.query.filter',function(_0x3a4bec,_0x36c7d3){var _0x235ee5=_0x368e64;_0x2d9b43?_0x453180(function(){_0x2d9b43=![];}):(!_0x36c7d3&&(_0x432e6d=_0x330bd8[_0x235ee5('0x582')][_0x235ee5('0x41')]),_0x3a4bec!==_0x36c7d3&&(_0x330bd8['query'][_0x235ee5('0x41')]=0x1),!_0x3a4bec&&(_0x330bd8[_0x235ee5('0x582')][_0x235ee5('0x41')]=_0x432e6d),_0x330bd8['getTags']());});function _0x51031e(_0x4366d3){var _0x3c8d44=_0x368e64;_0x330bd8[_0x3c8d44('0x523')]=_0x4366d3||{'count':0x0,'rows':[]};}function _0x13ce71(){var _0x5ca2ac=_0x368e64;_0x330bd8['query']['offset']=(_0x330bd8[_0x5ca2ac('0x582')][_0x5ca2ac('0x41')]-0x1)*_0x330bd8[_0x5ca2ac('0x582')][_0x5ca2ac('0xf4d')],_0x433eab[_0x5ca2ac('0x26e8')](_0x5ca2ac('0x178b'))?_0x330bd8['promise']=_0x4781f5[_0x5ca2ac('0x38f')][_0x5ca2ac('0x2122')](_0x330bd8[_0x5ca2ac('0x582')],_0x51031e)['$promise']:(_0x330bd8[_0x5ca2ac('0x582')]['id']=_0x330bd8['userProfile']['id'],_0x330bd8['query'][_0x5ca2ac('0x224d')]=_0x5ca2ac('0x67f'),_0x330bd8[_0x5ca2ac('0x159a')]=_0x4781f5[_0x5ca2ac('0x1e97')][_0x5ca2ac('0x1cf1')](_0x330bd8[_0x5ca2ac('0x582')],_0x51031e)[_0x5ca2ac('0x1dc2')]);}function _0x22281b(_0x4f5271,_0x381c70){var _0x4df48f=_0x368e64;_0x556075['show']({'controller':_0x4df48f('0x1f72'),'controllerAs':'vm','templateUrl':_0x5b4131,'parent':angular[_0x4df48f('0x1aa8')](_0x55629c[_0x4df48f('0x54c')]),'targetEvent':_0x4f5271,'clickOutsideToClose':!![],'locals':{'tag':_0x381c70,'tags':_0x330bd8[_0x4df48f('0x523')][_0x4df48f('0x580')],'license':_0x330bd8[_0x4df48f('0x1202')],'setting':_0x330bd8[_0x4df48f('0x143f')],'crudPermissions':_0x330bd8[_0x4df48f('0xada')]}});}function _0x2f49e1(_0xaeb2f3){var _0x328e7b=_0x368e64;_0x4781f5['tag'][_0x328e7b('0x926')]({'id':_0xaeb2f3['id']})[_0x328e7b('0x1dc2')]['then'](function(){var _0x13b0bc=_0x328e7b;_0x51538b()[_0x13b0bc('0xf6d')](_0x330bd8['tags'][_0x13b0bc('0x580')],{'id':_0xaeb2f3['id']}),_0x330bd8[_0x13b0bc('0x523')][_0x13b0bc('0xd15')]-=0x1,!_0x330bd8[_0x13b0bc('0x523')][_0x13b0bc('0x580')]['length']&&_0x330bd8['getTags'](),_0xbd008a['success']({'title':_0x51538b()[_0x13b0bc('0x196a')]('Tag')+_0x13b0bc('0x8bb'),'msg':_0xaeb2f3[_0x13b0bc('0x25d6')]?_0xaeb2f3[_0x13b0bc('0x25d6')]+_0x13b0bc('0xcd9'):''});})['catch'](function(_0x317526){var _0x97473f=_0x328e7b;if(_0x317526[_0x97473f('0x10fd')]&&_0x317526['data']['errors']&&_0x317526[_0x97473f('0x10fd')]['errors'][_0x97473f('0x2587')]){_0x330bd8[_0x97473f('0x4c6')]=_0x317526['data'][_0x97473f('0x4c6')]||[{'message':_0x317526[_0x97473f('0x684')](),'type':_0x97473f('0x246f')}];for(var _0x3622c2=0x0;_0x3622c2<_0x317526[_0x97473f('0x10fd')][_0x97473f('0x4c6')][_0x97473f('0x2587')];_0x3622c2++){_0xbd008a[_0x97473f('0x187f')]({'title':_0x317526[_0x97473f('0x10fd')]['errors'][_0x3622c2]['type'],'msg':_0x317526[_0x97473f('0x10fd')][_0x97473f('0x4c6')][_0x3622c2][_0x97473f('0x1402')]});}}else _0xbd008a[_0x97473f('0x187f')]({'title':_0x317526['status']?_0x97473f('0x16c2')+_0x317526[_0x97473f('0x2fa')]+'\x20-\x20'+_0x317526[_0x97473f('0x24df')]:'SYSTEM:DELETEtag','msg':_0x317526['data']?JSON[_0x97473f('0xa48')](_0x317526['data']['message']):_0x317526[_0x97473f('0x1402')]||_0x317526['toString']()});});}function _0x3354f7(){var _0x23c745=_0x368e64,_0x287fae=angular[_0x23c745('0x20a')](_0x330bd8[_0x23c745('0x1373')]);return _0x330bd8[_0x23c745('0x1373')]=[],_0x287fae;}function _0xd1353a(_0x597e64){var _0x29b00a=_0x368e64,_0x290694=_0x556075[_0x29b00a('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20tags?')[_0x29b00a('0x102e')](_0x29b00a('0x389')+_0x330bd8[_0x29b00a('0x1373')][_0x29b00a('0x2587')]+_0x29b00a('0x1443')+_0x29b00a('0x210d'))['ariaLabel'](_0x29b00a('0x1a03'))[_0x29b00a('0x116d')](_0x597e64)['ok']('OK')[_0x29b00a('0x2030')](_0x29b00a('0x2410'));_0x556075[_0x29b00a('0x1e6d')](_0x290694)[_0x29b00a('0xaa5')](function(){var _0x21c068=_0x29b00a;_0x330bd8['selectedTags'][_0x21c068('0x15b5')](function(_0x20fb2a){_0x2f49e1(_0x20fb2a);}),_0x330bd8[_0x21c068('0x1373')]=[];});}function _0x3a70c8(){var _0x29f19d=_0x368e64;_0x330bd8[_0x29f19d('0x1373')]=[];}function _0x23538e(){var _0x1d6467=_0x368e64;_0x330bd8[_0x1d6467('0x1373')]=_0x330bd8[_0x1d6467('0x523')][_0x1d6467('0x580')];}}const _0x3a9576=_0x565a1b;_0xb15a0e[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x900'),'template','api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0xb15a0e(_0x17bce3,_0x2c8cc6,_0x5796b0,_0x17b1c8,_0x34433d,_0x2c64a5,_0x1ebfc1,_0x659d69,_0x3f22a6,_0x47af59,_0x3c671f,_0x3f59a6,_0x203833,_0x44ed5d){var _0x38008e=_0x1a8446,_0x2519f4=this;_0x2519f4['currentUser']=_0x3c671f[_0x38008e('0xacc')](),_0x2519f4['errors']=[],_0x2519f4[_0x38008e('0x143f')]=_0x203833,_0x2519f4['license']=_0x3f59a6,_0x2519f4[_0x38008e('0xada')]=_0x44ed5d,_0x2519f4[_0x38008e('0x9f0')]={},_0x2519f4['passwordPattern']=_0x2519f4[_0x38008e('0x143f')]&&_0x2519f4[_0x38008e('0x143f')][_0x38008e('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2519f4[_0x38008e('0x110a')]='TOOLS.EDIT_TEMPLATE',_0x2519f4[_0x38008e('0x11f6')]=angular[_0x38008e('0x20a')](_0x3f22a6),_0x2519f4[_0x38008e('0x900')]=_0x659d69,_0x2519f4[_0x38008e('0x20de')]=![];!_0x2519f4[_0x38008e('0x11f6')]&&(_0x2519f4[_0x38008e('0x11f6')]={},_0x2519f4['title']=_0x38008e('0x1b38'),_0x2519f4[_0x38008e('0x20de')]=!![]);_0x2519f4[_0x38008e('0x1d15')]=_0x266722,_0x2519f4[_0x38008e('0x1318')]=_0x335ad4,_0x2519f4[_0x38008e('0x725')]=_0x4136a1,_0x2519f4['getDateFromString']=_0xdec2c2,_0x2519f4['closeDialog']=_0x4cc876;function _0x266722(){var _0x469a1d=_0x38008e;_0x2519f4[_0x469a1d('0x4c6')]=[],_0x47af59['template'][_0x469a1d('0x242b')](_0x2519f4[_0x469a1d('0x11f6')])[_0x469a1d('0x1dc2')][_0x469a1d('0xaa5')](function(_0x2aa372){var _0x7e5437=_0x469a1d;_0x2519f4['templates'][_0x7e5437('0x6ee')](_0x2aa372[_0x7e5437('0x256a')]()),_0x1ebfc1[_0x7e5437('0xe10')]({'title':_0x7e5437('0x23b5'),'msg':_0x2519f4['template'][_0x7e5437('0x25d6')]?_0x2519f4[_0x7e5437('0x11f6')][_0x7e5437('0x25d6')]+_0x7e5437('0xdca'):''}),_0x4cc876(_0x2aa372);})[_0x469a1d('0x253d')](function(_0x545c09){var _0x50d34c=_0x469a1d;if(_0x545c09[_0x50d34c('0x10fd')]&&_0x545c09[_0x50d34c('0x10fd')][_0x50d34c('0x4c6')]&&_0x545c09[_0x50d34c('0x10fd')][_0x50d34c('0x4c6')][_0x50d34c('0x2587')]){_0x2519f4['errors']=_0x545c09[_0x50d34c('0x10fd')][_0x50d34c('0x4c6')]||[{'message':_0x545c09[_0x50d34c('0x684')](),'type':_0x50d34c('0x220a')}];for(var _0x2e2f55=0x0;_0x2e2f55<_0x545c09[_0x50d34c('0x10fd')][_0x50d34c('0x4c6')][_0x50d34c('0x2587')];_0x2e2f55+=0x1){_0x1ebfc1[_0x50d34c('0x187f')]({'title':_0x545c09[_0x50d34c('0x10fd')]['errors'][_0x2e2f55][_0x50d34c('0x6c8')],'msg':_0x545c09[_0x50d34c('0x10fd')]['errors'][_0x2e2f55][_0x50d34c('0x1402')]});}}else _0x1ebfc1[_0x50d34c('0x187f')]({'title':_0x545c09[_0x50d34c('0x2fa')]?_0x50d34c('0x16c2')+_0x545c09[_0x50d34c('0x2fa')]+_0x50d34c('0x169e')+_0x545c09[_0x50d34c('0x24df')]:'api.template.save','msg':_0x545c09[_0x50d34c('0x10fd')]?JSON['stringify'](_0x545c09[_0x50d34c('0x10fd')][_0x50d34c('0x1402')]):_0x545c09['toString']()});});}function _0x335ad4(){var _0x9e2de=_0x38008e;_0x2519f4['errors']=[],_0x47af59[_0x9e2de('0x11f6')][_0x9e2de('0x264e')]({'id':_0x2519f4[_0x9e2de('0x11f6')]['id']},_0x2519f4[_0x9e2de('0x11f6')])[_0x9e2de('0x1dc2')][_0x9e2de('0xaa5')](function(_0x40a2be){var _0x2acfd7=_0x9e2de,_0x161a65=_0x51538b()[_0x2acfd7('0xe9e')](_0x2519f4['templates'],{'id':_0x40a2be['id']});_0x161a65&&_0x51538b()[_0x2acfd7('0x283c')](_0x161a65,_0x51538b()[_0x2acfd7('0x104e')](_0x40a2be[_0x2acfd7('0x256a')](),_0x51538b()[_0x2acfd7('0x9f2')](_0x161a65))),_0x1ebfc1['success']({'title':'Template\x20properly\x20saved!','msg':_0x2519f4[_0x2acfd7('0x11f6')][_0x2acfd7('0x25d6')]?_0x2519f4[_0x2acfd7('0x11f6')][_0x2acfd7('0x25d6')]+_0x2acfd7('0x20bf'):''}),_0x4cc876(_0x40a2be);})[_0x9e2de('0x253d')](function(_0x1fb072){var _0x5cc842=_0x9e2de;if(_0x1fb072['data']&&_0x1fb072['data'][_0x5cc842('0x4c6')]&&_0x1fb072['data']['errors'][_0x5cc842('0x2587')]){_0x2519f4['errors']=_0x1fb072[_0x5cc842('0x10fd')][_0x5cc842('0x4c6')]||[{'message':_0x1fb072[_0x5cc842('0x684')](),'type':_0x5cc842('0x1806')}];for(var _0x3e9a68=0x0;_0x3e9a68<_0x1fb072[_0x5cc842('0x10fd')][_0x5cc842('0x4c6')]['length'];_0x3e9a68++){_0x1ebfc1[_0x5cc842('0x187f')]({'title':_0x1fb072[_0x5cc842('0x10fd')]['errors'][_0x3e9a68][_0x5cc842('0x6c8')],'msg':_0x1fb072[_0x5cc842('0x10fd')]['errors'][_0x3e9a68][_0x5cc842('0x1402')]});}}else _0x1ebfc1[_0x5cc842('0x187f')]({'title':_0x1fb072[_0x5cc842('0x2fa')]?_0x5cc842('0x16c2')+_0x1fb072['status']+_0x5cc842('0x169e')+_0x1fb072[_0x5cc842('0x24df')]:_0x5cc842('0x1806'),'msg':_0x1fb072[_0x5cc842('0x10fd')]?JSON['stringify'](_0x1fb072[_0x5cc842('0x10fd')][_0x5cc842('0x1402')]):_0x1fb072[_0x5cc842('0x684')]()});});}function _0x4136a1(_0x2bb44b){var _0x37f334=_0x38008e;_0x2519f4['errors']=[];var _0x20ada0=_0x17b1c8['confirm']()[_0x37f334('0x110a')]('Are\x20you\x20sure?')[_0x37f334('0x15af')](_0x37f334('0x14b2'))['ariaLabel'](_0x37f334('0x1aa6'))['ok'](_0x37f334('0x1e76'))[_0x37f334('0x2030')]('Cancel')[_0x37f334('0x116d')](_0x2bb44b);_0x17b1c8[_0x37f334('0x1e6d')](_0x20ada0)[_0x37f334('0xaa5')](function(){var _0x48975f=_0x37f334;_0x47af59[_0x48975f('0x11f6')][_0x48975f('0x926')]({'id':_0x2519f4['template']['id']})[_0x48975f('0x1dc2')][_0x48975f('0xaa5')](function(){var _0x19a192=_0x48975f;_0x51538b()[_0x19a192('0xf6d')](_0x2519f4[_0x19a192('0x900')],{'id':_0x2519f4[_0x19a192('0x11f6')]['id']}),_0x1ebfc1['success']({'title':_0x19a192('0xf4f'),'msg':(_0x2519f4[_0x19a192('0x11f6')][_0x19a192('0x25d6')]||_0x19a192('0x11f6'))+_0x19a192('0xcd9')}),_0x4cc876(_0x2519f4[_0x19a192('0x11f6')]);})['catch'](function(_0x4ec6ae){var _0x2c7dfc=_0x48975f;if(_0x4ec6ae['data']&&_0x4ec6ae['data'][_0x2c7dfc('0x4c6')]&&_0x4ec6ae[_0x2c7dfc('0x10fd')][_0x2c7dfc('0x4c6')][_0x2c7dfc('0x2587')]){_0x2519f4[_0x2c7dfc('0x4c6')]=_0x4ec6ae['data']['errors']||[{'message':_0x4ec6ae[_0x2c7dfc('0x684')](),'type':_0x2c7dfc('0x1ae4')}];for(var _0x2a8029=0x0;_0x2a8029<_0x4ec6ae[_0x2c7dfc('0x10fd')][_0x2c7dfc('0x4c6')][_0x2c7dfc('0x2587')];_0x2a8029++){_0x1ebfc1['error']({'title':_0x4ec6ae[_0x2c7dfc('0x10fd')][_0x2c7dfc('0x4c6')][_0x2a8029][_0x2c7dfc('0x6c8')],'msg':_0x4ec6ae[_0x2c7dfc('0x10fd')]['errors'][_0x2a8029][_0x2c7dfc('0x1402')]});}}else _0x1ebfc1[_0x2c7dfc('0x187f')]({'title':_0x4ec6ae[_0x2c7dfc('0x2fa')]?_0x2c7dfc('0x16c2')+_0x4ec6ae[_0x2c7dfc('0x2fa')]+_0x2c7dfc('0x169e')+_0x4ec6ae[_0x2c7dfc('0x24df')]:_0x2c7dfc('0x1ae4'),'msg':_0x4ec6ae[_0x2c7dfc('0x10fd')]?JSON['stringify'](_0x4ec6ae[_0x2c7dfc('0x10fd')][_0x2c7dfc('0x1402')]):_0x4ec6ae[_0x2c7dfc('0x1402')]||_0x4ec6ae[_0x2c7dfc('0x684')]()});});},function(){});}function _0xdec2c2(_0x339760){return _0x339760===null?undefined:new Date(_0x339760);}function _0x4cc876(_0x4afaf9){_0x17b1c8['hide'](_0x4afaf9);}}const _0xeba532=_0xb15a0e,_0x5c4c10=_0x4fb511['p']+'src/js/modules/main/apps/tools/views/templates/create/dialog.html/dialog-[chunkhash].html';_0x4ef996[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document','$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x900'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f')];function _0x4ef996(_0xceccb5,_0x159e6a,_0x6a9d79,_0x216698,_0x12cd42,_0x331c82,_0x421812,_0x1039dc,_0x283452,_0x12d3ca,_0x25e08e,_0x1f72bf,_0x2d0de4,_0x42ad1a,_0x22ed4c,_0x3953e2,_0x2194fa){var _0x544887=_0x1a8446,_0x50483e=this;_0x50483e[_0x544887('0x1202')]=_0x3953e2,_0x50483e[_0x544887('0x143f')]=_0x2194fa,_0x50483e[_0x544887('0x7fc')]=_0x22ed4c[_0x544887('0xacc')](),_0x50483e[_0x544887('0x900')]=_0x283452||{'count':0x0,'rows':[]},_0x50483e[_0x544887('0x1e97')]=_0x12d3ca,_0x50483e[_0x544887('0x1a50')]=_0x25e08e&&_0x25e08e[_0x544887('0xd15')]==0x1?_0x25e08e[_0x544887('0x580')][0x0]:null,_0x50483e[_0x544887('0xada')]=_0x22ed4c['parseCrudPermissions'](_0x50483e['userProfileSection']?_0x50483e['userProfileSection']['crudPermissions']:null),_0x50483e[_0x544887('0x12b6')]='templates',_0x50483e[_0x544887('0x164')]='',_0x50483e[_0x544887('0x8cc')]=null,_0x50483e['selectedTemplates']=[],_0x50483e[_0x544887('0x582')]={'fields':_0x544887('0x9bd'),'sort':_0x544887('0xd82'),'limit':0xa,'page':0x1},_0x50483e[_0x544887('0x1960')]=_0x53ef72,_0x50483e[_0x544887('0x271')]=_0x44f88a,_0x50483e[_0x544887('0xe10')]=_0x5ef2a0,_0x50483e[_0x544887('0xc0')]=_0x5b5fbc,_0x50483e[_0x544887('0x5a4')]=_0x9f47e9,_0x50483e['deleteTemplate']=_0x2cc748,_0x50483e['exportSelectedTemplates']=_0x20f237,_0x50483e[_0x544887('0x1726')]=_0x41b83d,_0x50483e['deselectTemplates']=_0x12c2a3,_0x50483e['selectAllTemplates']=_0x14fb8c;function _0x53ef72(_0x202a51,_0x1ed9f6){var _0x5af8f9=_0x544887;_0x12cd42[_0x5af8f9('0x1e6d')]({'controller':_0x5af8f9('0x26fa'),'controllerAs':'vm','templateUrl':_0x5c4c10,'parent':angular[_0x5af8f9('0x1aa8')](_0x331c82[_0x5af8f9('0x54c')]),'targetEvent':_0x1ed9f6,'clickOutsideToClose':!![],'locals':{'template':_0x202a51,'templates':_0x50483e[_0x5af8f9('0x900')]['rows'],'license':_0x50483e[_0x5af8f9('0x1202')],'setting':null,'crudPermissions':_0x50483e['crudPermissions']}});}function _0x44f88a(_0x520eb1,_0x256867){var _0x5f2436=_0x544887,_0x44f5d6=_0x12cd42['confirm']()[_0x5f2436('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x5f2436('0x196a')]('template')+'?')[_0x5f2436('0x102e')](_0x5f2436('0x389')+(_0x520eb1[_0x5f2436('0x25d6')]||_0x5f2436('0x11f6'))+_0x5f2436('0x697')+_0x5f2436('0x210d'))[_0x5f2436('0x5b5')](_0x5f2436('0x27dd'))[_0x5f2436('0x116d')](_0x256867)['ok']('OK')[_0x5f2436('0x2030')]('CANCEL');_0x12cd42[_0x5f2436('0x1e6d')](_0x44f5d6)[_0x5f2436('0xaa5')](function(){_0x2cc748(_0x520eb1);},function(){var _0x440011=_0x5f2436;console['log'](_0x440011('0x2410'));});}var _0x1012d4=!![],_0xf392c=0x1;_0xceccb5['$watch']('vm.query.filter',function(_0x57bafd,_0x25a26e){var _0x541195=_0x544887;_0x1012d4?_0x421812(function(){_0x1012d4=![];}):(!_0x25a26e&&(_0xf392c=_0x50483e[_0x541195('0x582')][_0x541195('0x41')]),_0x57bafd!==_0x25a26e&&(_0x50483e[_0x541195('0x582')]['page']=0x1),!_0x57bafd&&(_0x50483e['query']['page']=_0xf392c),_0x50483e[_0x541195('0xc0')]());});function _0x5ef2a0(_0x103211){_0x50483e['templates']=_0x103211||{'count':0x0,'rows':[]};}function _0x5b5fbc(){var _0xc8c4fe=_0x544887;_0x50483e[_0xc8c4fe('0x582')][_0xc8c4fe('0x8b1')]=(_0x50483e['query']['page']-0x1)*_0x50483e[_0xc8c4fe('0x582')][_0xc8c4fe('0xf4d')],_0x22ed4c[_0xc8c4fe('0x26e8')](_0xc8c4fe('0x178b'))?_0x50483e[_0xc8c4fe('0x159a')]=_0x1f72bf[_0xc8c4fe('0x11f6')][_0xc8c4fe('0x2122')](_0x50483e['query'],_0x5ef2a0)[_0xc8c4fe('0x1dc2')]:(_0x50483e[_0xc8c4fe('0x582')]['id']=_0x50483e[_0xc8c4fe('0x1e97')]['id'],_0x50483e['query']['section']=_0xc8c4fe('0x2e6'),_0x50483e['promise']=_0x1f72bf['userProfile'][_0xc8c4fe('0x1cf1')](_0x50483e[_0xc8c4fe('0x582')],_0x5ef2a0)[_0xc8c4fe('0x1dc2')]);}function _0x9f47e9(_0x52e89b,_0x4cca44){var _0x1c83c0=_0x544887;_0x12cd42[_0x1c83c0('0x1e6d')]({'controller':_0x1c83c0('0x26fa'),'controllerAs':'vm','templateUrl':_0x5c4c10,'parent':angular[_0x1c83c0('0x1aa8')](_0x331c82[_0x1c83c0('0x54c')]),'targetEvent':_0x52e89b,'clickOutsideToClose':!![],'locals':{'template':_0x4cca44,'templates':_0x50483e[_0x1c83c0('0x900')][_0x1c83c0('0x580')],'license':_0x50483e[_0x1c83c0('0x1202')],'setting':_0x50483e[_0x1c83c0('0x143f')],'crudPermissions':_0x50483e[_0x1c83c0('0xada')]}});}function _0x2cc748(_0xcd9628){var _0x49a575=_0x544887;_0x1f72bf['template']['delete']({'id':_0xcd9628['id']})[_0x49a575('0x1dc2')][_0x49a575('0xaa5')](function(){var _0x24dd14=_0x49a575;_0x51538b()[_0x24dd14('0xf6d')](_0x50483e['templates'][_0x24dd14('0x580')],{'id':_0xcd9628['id']}),_0x50483e[_0x24dd14('0x900')]['count']-=0x1,!_0x50483e['templates'][_0x24dd14('0x580')][_0x24dd14('0x2587')]&&_0x50483e[_0x24dd14('0xc0')](),_0x42ad1a['success']({'title':_0x51538b()['startCase'](_0x24dd14('0x1ced'))+_0x24dd14('0x8bb'),'msg':_0xcd9628[_0x24dd14('0x25d6')]?_0xcd9628['name']+_0x24dd14('0xcd9'):''});})[_0x49a575('0x253d')](function(_0x2c8ac4){var _0x2a0292=_0x49a575;if(_0x2c8ac4[_0x2a0292('0x10fd')]&&_0x2c8ac4[_0x2a0292('0x10fd')][_0x2a0292('0x4c6')]&&_0x2c8ac4[_0x2a0292('0x10fd')][_0x2a0292('0x4c6')][_0x2a0292('0x2587')]){_0x50483e[_0x2a0292('0x4c6')]=_0x2c8ac4[_0x2a0292('0x10fd')][_0x2a0292('0x4c6')]||[{'message':_0x2c8ac4[_0x2a0292('0x684')](),'type':_0x2a0292('0xf07')}];for(var _0xf87c2c=0x0;_0xf87c2c<_0x2c8ac4['data']['errors'][_0x2a0292('0x2587')];_0xf87c2c++){_0x42ad1a[_0x2a0292('0x187f')]({'title':_0x2c8ac4[_0x2a0292('0x10fd')]['errors'][_0xf87c2c][_0x2a0292('0x6c8')],'msg':_0x2c8ac4['data'][_0x2a0292('0x4c6')][_0xf87c2c]['message']});}}else _0x42ad1a[_0x2a0292('0x187f')]({'title':_0x2c8ac4[_0x2a0292('0x2fa')]?_0x2a0292('0x16c2')+_0x2c8ac4[_0x2a0292('0x2fa')]+_0x2a0292('0x169e')+_0x2c8ac4[_0x2a0292('0x24df')]:'SYSTEM:DELETEtemplate','msg':_0x2c8ac4[_0x2a0292('0x10fd')]?JSON['stringify'](_0x2c8ac4[_0x2a0292('0x10fd')][_0x2a0292('0x1402')]):_0x2c8ac4[_0x2a0292('0x1402')]||_0x2c8ac4[_0x2a0292('0x684')]()});});}function _0x20f237(){var _0x86f73f=_0x544887,_0xe41dbb=angular[_0x86f73f('0x20a')](_0x50483e[_0x86f73f('0x1204')]);return _0x50483e[_0x86f73f('0x1204')]=[],_0xe41dbb;}function _0x41b83d(_0x3a262f){var _0x309c43=_0x544887,_0x25103e=_0x12cd42[_0x309c43('0x281e')]()['title'](_0x309c43('0x19ac'))[_0x309c43('0x102e')](_0x309c43('0x389')+_0x50483e[_0x309c43('0x1204')][_0x309c43('0x2587')]+_0x309c43('0x1443')+'\x20will\x20be\x20deleted.')[_0x309c43('0x5b5')](_0x309c43('0x359'))[_0x309c43('0x116d')](_0x3a262f)['ok']('OK')[_0x309c43('0x2030')](_0x309c43('0x2410'));_0x12cd42[_0x309c43('0x1e6d')](_0x25103e)[_0x309c43('0xaa5')](function(){var _0x3a3f82=_0x309c43;_0x50483e[_0x3a3f82('0x1204')]['forEach'](function(_0x541e16){_0x2cc748(_0x541e16);}),_0x50483e[_0x3a3f82('0x1204')]=[];});}function _0x12c2a3(){var _0x4e099a=_0x544887;_0x50483e[_0x4e099a('0x1204')]=[];}function _0x14fb8c(){var _0x47d69d=_0x544887;_0x50483e[_0x47d69d('0x1204')]=_0x50483e[_0x47d69d('0x900')][_0x47d69d('0x580')];}}const _0x54fe25=_0x4ef996;_0xa75943[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),'trunks',_0x1a8446('0x1651'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0xa75943(_0x3f4ac4,_0x16404e,_0x3b3bde,_0x3470bd,_0x45b3c8,_0x265e13,_0x2c04d9,_0x1b6683,_0x2ecd79,_0x4244c9,_0x21ab12,_0x3a7f4e,_0x1972c5,_0x34f396){var _0x5c0470=_0x1a8446,_0x2009f7=this;_0x2009f7[_0x5c0470('0x7fc')]=_0x21ab12['getCurrentUser'](),_0x2009f7[_0x5c0470('0x4c6')]=[],_0x2009f7[_0x5c0470('0x143f')]=_0x1972c5,_0x2009f7[_0x5c0470('0x1202')]=_0x3a7f4e,_0x2009f7[_0x5c0470('0xada')]=_0x34f396,_0x2009f7[_0x5c0470('0x9f0')]={},_0x2009f7[_0x5c0470('0x1d53')]=_0x2009f7[_0x5c0470('0x143f')]&&_0x2009f7[_0x5c0470('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2009f7[_0x5c0470('0x110a')]=_0x5c0470('0xaf1'),_0x2009f7[_0x5c0470('0x1651')]=angular[_0x5c0470('0x20a')](_0x2ecd79),_0x2009f7[_0x5c0470('0x1bc2')]=_0x1b6683,_0x2009f7[_0x5c0470('0x1c8f')]=![];!_0x2009f7[_0x5c0470('0x1651')]&&(_0x2009f7[_0x5c0470('0x1651')]={'active':!![],'type':_0x5c0470('0x120a'),'dtmfmode':_0x5c0470('0x998'),'qualify':_0x5c0470('0x98d'),'t38pt_udptl':'no'},_0x2009f7[_0x5c0470('0x110a')]=_0x5c0470('0x1cd1'),_0x2009f7[_0x5c0470('0x1c8f')]=!![]);_0x2009f7['addNewTrunk']=_0x17e772,_0x2009f7[_0x5c0470('0x76b')]=_0x1a56e0,_0x2009f7['deleteTrunk']=_0x2a1ca5,_0x2009f7[_0x5c0470('0xc09')]=_0x2b6d15,_0x2009f7[_0x5c0470('0x2023')]=_0x378860;function _0x17e772(){var _0xec274=_0x5c0470;_0x2009f7[_0xec274('0x4c6')]=[],_0x4244c9[_0xec274('0x1651')][_0xec274('0x242b')](_0x2009f7[_0xec274('0x1651')])[_0xec274('0x1dc2')][_0xec274('0xaa5')](function(_0x1b8937){var _0xf723e7=_0xec274;_0x2009f7[_0xf723e7('0x1bc2')][_0xf723e7('0x6ee')](_0x1b8937[_0xf723e7('0x256a')]()),_0x2c04d9[_0xf723e7('0xe10')]({'title':_0xf723e7('0xaf2'),'msg':_0x2009f7['trunk'][_0xf723e7('0x25d6')]?_0x2009f7['trunk']['name']+_0xf723e7('0xdca'):''}),_0x378860(_0x1b8937);})['catch'](function(_0x210333){var _0xa058b6=_0xec274;if(_0x210333[_0xa058b6('0x10fd')]&&_0x210333[_0xa058b6('0x10fd')][_0xa058b6('0x4c6')]&&_0x210333['data'][_0xa058b6('0x4c6')][_0xa058b6('0x2587')]){_0x2009f7[_0xa058b6('0x4c6')]=_0x210333[_0xa058b6('0x10fd')][_0xa058b6('0x4c6')]||[{'message':_0x210333['toString'](),'type':_0xa058b6('0xb88')}];for(var _0x37c81a=0x0;_0x37c81a<_0x210333[_0xa058b6('0x10fd')][_0xa058b6('0x4c6')][_0xa058b6('0x2587')];_0x37c81a+=0x1){_0x2c04d9[_0xa058b6('0x187f')]({'title':_0x210333[_0xa058b6('0x10fd')]['errors'][_0x37c81a][_0xa058b6('0x6c8')],'msg':_0x210333['data'][_0xa058b6('0x4c6')][_0x37c81a][_0xa058b6('0x1402')]});}}else _0x2c04d9[_0xa058b6('0x187f')]({'title':_0x210333[_0xa058b6('0x2fa')]?_0xa058b6('0x16c2')+_0x210333[_0xa058b6('0x2fa')]+'\x20-\x20'+_0x210333[_0xa058b6('0x24df')]:_0xa058b6('0xb88'),'msg':_0x210333[_0xa058b6('0x10fd')]?JSON[_0xa058b6('0xa48')](_0x210333[_0xa058b6('0x10fd')][_0xa058b6('0x1402')]):_0x210333[_0xa058b6('0x684')]()});});}function _0x1a56e0(){var _0x1a27e2=_0x5c0470;_0x2009f7[_0x1a27e2('0x4c6')]=[],_0x4244c9[_0x1a27e2('0x1651')][_0x1a27e2('0x264e')]({'id':_0x2009f7['trunk']['id']},_0x2009f7[_0x1a27e2('0x1651')])[_0x1a27e2('0x1dc2')]['then'](function(_0x38399a){var _0x5b1282=_0x1a27e2,_0x56670f=_0x51538b()[_0x5b1282('0xe9e')](_0x2009f7['trunks'],{'id':_0x38399a['id']});_0x56670f&&_0x51538b()['merge'](_0x56670f,_0x51538b()[_0x5b1282('0x104e')](_0x38399a[_0x5b1282('0x256a')](),_0x51538b()['keys'](_0x56670f))),_0x2c04d9[_0x5b1282('0xe10')]({'title':'Trunk\x20properly\x20saved!','msg':_0x2009f7[_0x5b1282('0x1651')][_0x5b1282('0x25d6')]?_0x2009f7[_0x5b1282('0x1651')][_0x5b1282('0x25d6')]+_0x5b1282('0x20bf'):''}),_0x378860(_0x38399a);})[_0x1a27e2('0x253d')](function(_0xf616ce){var _0xae1e68=_0x1a27e2;if(_0xf616ce[_0xae1e68('0x10fd')]&&_0xf616ce[_0xae1e68('0x10fd')][_0xae1e68('0x4c6')]&&_0xf616ce[_0xae1e68('0x10fd')]['errors'][_0xae1e68('0x2587')]){_0x2009f7[_0xae1e68('0x4c6')]=_0xf616ce[_0xae1e68('0x10fd')][_0xae1e68('0x4c6')]||[{'message':_0xf616ce[_0xae1e68('0x684')](),'type':_0xae1e68('0x8')}];for(var _0x3f2aec=0x0;_0x3f2aec<_0xf616ce[_0xae1e68('0x10fd')][_0xae1e68('0x4c6')]['length'];_0x3f2aec++){_0x2c04d9[_0xae1e68('0x187f')]({'title':_0xf616ce[_0xae1e68('0x10fd')][_0xae1e68('0x4c6')][_0x3f2aec][_0xae1e68('0x6c8')],'msg':_0xf616ce[_0xae1e68('0x10fd')][_0xae1e68('0x4c6')][_0x3f2aec]['message']});}}else _0x2c04d9[_0xae1e68('0x187f')]({'title':_0xf616ce[_0xae1e68('0x2fa')]?_0xae1e68('0x16c2')+_0xf616ce[_0xae1e68('0x2fa')]+_0xae1e68('0x169e')+_0xf616ce[_0xae1e68('0x24df')]:_0xae1e68('0x8'),'msg':_0xf616ce[_0xae1e68('0x10fd')]?JSON[_0xae1e68('0xa48')](_0xf616ce[_0xae1e68('0x10fd')][_0xae1e68('0x1402')]):_0xf616ce[_0xae1e68('0x684')]()});});}function _0x2a1ca5(_0x2f7400){var _0x49709c=_0x5c0470;_0x2009f7[_0x49709c('0x4c6')]=[];var _0xf1d3d2=_0x3470bd[_0x49709c('0x281e')]()[_0x49709c('0x110a')](_0x49709c('0x12a3'))[_0x49709c('0x15af')](_0x49709c('0xba1'))[_0x49709c('0x5b5')](_0x49709c('0x2115'))['ok']('Delete')[_0x49709c('0x2030')](_0x49709c('0x9c6'))['targetEvent'](_0x2f7400);_0x3470bd[_0x49709c('0x1e6d')](_0xf1d3d2)[_0x49709c('0xaa5')](function(){var _0x570e72=_0x49709c;_0x4244c9[_0x570e72('0x1651')][_0x570e72('0x926')]({'id':_0x2009f7['trunk']['id']})[_0x570e72('0x1dc2')][_0x570e72('0xaa5')](function(){var _0x44e63c=_0x570e72;_0x51538b()['remove'](_0x2009f7[_0x44e63c('0x1bc2')],{'id':_0x2009f7[_0x44e63c('0x1651')]['id']}),_0x2c04d9[_0x44e63c('0xe10')]({'title':'Trunk\x20properly\x20deleted!','msg':(_0x2009f7[_0x44e63c('0x1651')][_0x44e63c('0x25d6')]||'trunk')+_0x44e63c('0xcd9')}),_0x378860(_0x2009f7[_0x44e63c('0x1651')]);})[_0x570e72('0x253d')](function(_0x14a47f){var _0xe98ad9=_0x570e72;if(_0x14a47f[_0xe98ad9('0x10fd')]&&_0x14a47f['data'][_0xe98ad9('0x4c6')]&&_0x14a47f['data'][_0xe98ad9('0x4c6')][_0xe98ad9('0x2587')]){_0x2009f7[_0xe98ad9('0x4c6')]=_0x14a47f[_0xe98ad9('0x10fd')][_0xe98ad9('0x4c6')]||[{'message':_0x14a47f[_0xe98ad9('0x684')](),'type':_0xe98ad9('0x24cc')}];for(var _0x446ef0=0x0;_0x446ef0<_0x14a47f[_0xe98ad9('0x10fd')][_0xe98ad9('0x4c6')][_0xe98ad9('0x2587')];_0x446ef0++){_0x2c04d9[_0xe98ad9('0x187f')]({'title':_0x14a47f[_0xe98ad9('0x10fd')][_0xe98ad9('0x4c6')][_0x446ef0][_0xe98ad9('0x6c8')],'msg':_0x14a47f[_0xe98ad9('0x10fd')][_0xe98ad9('0x4c6')][_0x446ef0][_0xe98ad9('0x1402')]});}}else _0x2c04d9['error']({'title':_0x14a47f[_0xe98ad9('0x2fa')]?_0xe98ad9('0x16c2')+_0x14a47f[_0xe98ad9('0x2fa')]+_0xe98ad9('0x169e')+_0x14a47f[_0xe98ad9('0x24df')]:_0xe98ad9('0x24cc'),'msg':_0x14a47f['data']?JSON[_0xe98ad9('0xa48')](_0x14a47f[_0xe98ad9('0x10fd')]['message']):_0x14a47f[_0xe98ad9('0x1402')]||_0x14a47f[_0xe98ad9('0x684')]()});});},function(){});}function _0x2b6d15(_0x3c420e){return _0x3c420e===null?undefined:new Date(_0x3c420e);}function _0x378860(_0x3f2496){var _0x3f7b53=_0x5c0470;_0x3470bd[_0x3f7b53('0x1120')](_0x3f2496);}}const _0x26c2e6=_0xa75943;_0x5e1982[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$state',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1651'),_0x1a8446('0x1bc2'),_0x1a8446('0xcb3')];function _0x5e1982(_0x574a87,_0x5066b7,_0x5b3699,_0x28146c,_0x4ab4f3,_0xb5ad25,_0x395b81){var _0x38c2fd=_0x1a8446,_0x4afce5=this;_0x4afce5[_0x38c2fd('0x1c8f')]=!![],_0x4afce5[_0x38c2fd('0x1651')]=angular['copy'](_0x4ab4f3),_0x4afce5[_0x38c2fd('0x1bc2')]=_0xb5ad25,_0x4afce5[_0x38c2fd('0x110a')]=_0x395b81[_0x38c2fd('0x213f')](_0x38c2fd('0x215a'));_0x4ab4f3&&_0x4ab4f3['name']&&(_0x4afce5[_0x38c2fd('0x110a')]+=':\x20'+_0x4ab4f3[_0x38c2fd('0x25d6')]);_0x4afce5[_0x38c2fd('0x1405')]=_0x29ca5b,_0x4afce5[_0x38c2fd('0x2023')]=_0x48d807;function _0x29ca5b(){var _0x4d3aed=_0x38c2fd;return _0x28146c[_0x4d3aed('0x1651')][_0x4d3aed('0x1ae5')]({'id':_0x4ab4f3['id']},_0x4afce5['trunk'])['$promise']['then'](function(_0x3eee6c){var _0x118b78=_0x4d3aed;_0x4afce5[_0x118b78('0x1bc2')][_0x118b78('0x6ee')](_0x3eee6c['toJSON']()),_0x5b3699['success']({'title':_0x118b78('0x2725'),'msg':_0x4afce5['trunk'][_0x118b78('0x25d6')]?_0x4afce5[_0x118b78('0x1651')][_0x118b78('0x25d6')]+_0x118b78('0x136'):''}),_0x5066b7['go'](_0x118b78('0x15b'),{'id':_0x3eee6c['id']}),_0x48d807(_0x3eee6c);})[_0x4d3aed('0x253d')](function(_0x541712){var _0x5678da=_0x4d3aed;if(_0x541712[_0x5678da('0x10fd')]&&_0x541712['data']['errors']&&_0x541712[_0x5678da('0x10fd')][_0x5678da('0x4c6')][_0x5678da('0x2587')]){_0x4afce5['errors']=_0x541712[_0x5678da('0x10fd')][_0x5678da('0x4c6')]||[{'message':_0x541712[_0x5678da('0x684')](),'type':_0x5678da('0x1441')}];for(var _0x258ae6=0x0;_0x258ae6<_0x541712[_0x5678da('0x10fd')]['errors'][_0x5678da('0x2587')];_0x258ae6+=0x1){_0x5b3699['error']({'title':_0x541712[_0x5678da('0x10fd')][_0x5678da('0x4c6')][_0x258ae6]['type'],'msg':_0x541712[_0x5678da('0x10fd')][_0x5678da('0x4c6')][_0x258ae6]['message']});}}else _0x5b3699['error']({'title':_0x541712['status']?_0x5678da('0x16c2')+_0x541712[_0x5678da('0x2fa')]+'\x20-\x20'+_0x541712[_0x5678da('0x24df')]:_0x5678da('0x1441'),'msg':_0x541712[_0x5678da('0x10fd')]?JSON[_0x5678da('0xa48')](_0x541712[_0x5678da('0x10fd')][_0x5678da('0x1402')]):_0x541712[_0x5678da('0x684')]()});});}function _0x48d807(_0x41859c){var _0xfb09c9=_0x38c2fd;_0x574a87[_0xfb09c9('0x1120')](_0x41859c);}}const _0x19affb=_0x5e1982,_0x168e7f=_0x4fb511['p']+_0x1a8446('0x1178');_0xf71dff[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1651'),_0x1a8446('0x1a50')];function _0xf71dff(_0xd81af,_0x456813,_0x39d9c7,_0x4ef37e,_0x17499d,_0x57050d,_0x2e0701,_0x2863a7,_0x3ddcbd,_0x19a72a,_0xeab65e,_0x40af4d){var _0x323ade=_0x1a8446,_0x391014=this;_0x391014[_0x323ade('0x7fc')]=_0x19a72a[_0x323ade('0xacc')](),_0x391014[_0x323ade('0x1202')]=_0x57050d,_0x391014[_0x323ade('0x143f')]=_0x2e0701,_0x391014['passwordPattern']=_0x391014[_0x323ade('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x391014[_0x323ade('0x18cc')]=_0x456813[_0x323ade('0x1cc2')]()+'://'+_0x456813[_0x323ade('0x160c')](),_0x391014[_0x323ade('0x1651')]=_0xeab65e||_0xd81af[_0x323ade('0x25cf')][_0x323ade('0x1651')]||{},_0x391014[_0x323ade('0x1a50')]=_0x40af4d&&_0x40af4d[_0x323ade('0xd15')]==0x1?_0x40af4d['rows'][0x0]:null,_0x391014[_0x323ade('0xada')]=_0x19a72a[_0x323ade('0xffd')](_0x391014[_0x323ade('0x1a50')]?_0x391014[_0x323ade('0x1a50')][_0x323ade('0xada')]:null),_0x391014[_0x323ade('0x9f0')]={},_0x391014[_0x323ade('0xe5c')]=_0xd81af[_0x323ade('0x25cf')][_0x323ade('0x25c2')]||0x0,_0x391014[_0x323ade('0x7ba')]=_0x49cd39,_0x391014[_0x323ade('0x16c1')]=_0x2cc257,_0x391014[_0x323ade('0xc10')]=_0x3ddcbd['info'],_0x391014[_0x323ade('0x6b7')]=_0x385fc3,_0x391014[_0x323ade('0x76b')]=_0x61ca9,_0x19a72a[_0x323ade('0x26e8')](_0x323ade('0x178b'))?_0x2863a7[_0x323ade('0x68c')][_0x323ade('0x2122')]({'fields':_0x323ade('0x17fe'),'sort':_0x323ade('0x25d6')})[_0x323ade('0x1dc2')][_0x323ade('0xaa5')](function(_0x2456d3){var _0x1b46d0=_0x323ade;_0x391014[_0x1b46d0('0xdc5')]=_0x2456d3[_0x1b46d0('0x580')]||[];})[_0x323ade('0x253d')](function(_0x58cc06){var _0x5cba04=_0x323ade;_0x3ddcbd[_0x5cba04('0x187f')]({'title':_0x58cc06[_0x5cba04('0x2fa')]?'API:'+_0x58cc06[_0x5cba04('0x2fa')]+_0x5cba04('0x169e')+_0x58cc06[_0x5cba04('0x24df')]:_0x5cba04('0x1393'),'msg':_0x58cc06[_0x5cba04('0x10fd')]?JSON['stringify'](_0x58cc06['data']):_0x58cc06['toString']()});}):_0x2863a7[_0x323ade('0x68c')][_0x323ade('0x2122')]({'fields':_0x323ade('0x17fe'),'sort':_0x323ade('0x25d6')})[_0x323ade('0x1dc2')]['then'](function(_0x25af8){var _0x35d6bc=_0x323ade;_0x391014[_0x35d6bc('0xdc5')]=_0x25af8[_0x35d6bc('0x580')]||[];})[_0x323ade('0xaa5')](function(){var _0x3acc32=_0x323ade;return _0x2863a7['userProfileSection'][_0x3acc32('0x2122')]({'userProfileId':_0x391014['currentUser'][_0x3acc32('0x2168')],'sectionId':0x195})[_0x3acc32('0x1dc2')];})['then'](function(_0x5dde8e){var _0xa75c0b=_0x323ade,_0x4b81f0=_0x5dde8e&&_0x5dde8e['rows']?_0x5dde8e[_0xa75c0b('0x580')][0x0]:null;if(!_0x4b81f0)return _0x2863a7[_0xa75c0b('0x68c')][_0xa75c0b('0x2122')]({'fields':_0xa75c0b('0x17fe'),'sort':_0xa75c0b('0x25d6'),'defaultEntry':0x1})[_0xa75c0b('0x1dc2')][_0xa75c0b('0xaa5')](function(_0x3d00ff){var _0x147aca=_0xa75c0b;_0x391014[_0x147aca('0xdc5')]=_0x3d00ff[_0x147aca('0x580')]||[];});else{if(!_0x4b81f0[_0xa75c0b('0x26cc')])return _0x2863a7['userProfileResource'][_0xa75c0b('0x2122')]({'sectionId':_0x4b81f0['id']})['$promise'][_0xa75c0b('0xaa5')](function(_0x206aeb){var _0x4bc7d0=_0xa75c0b,_0xfe0c71=_0x51538b()[_0x4bc7d0('0x1246')](_0x206aeb[_0x4bc7d0('0x580')],function(_0x415360){var _0x38fcfb=_0x4bc7d0;return _0x51538b()[_0x38fcfb('0xe9e')](_0x391014[_0x38fcfb('0xdc5')],{'id':_0x415360['resourceId']});}),_0x4cb4fb=null;_0x391014[_0x4bc7d0('0x1651')]&&(_0x4cb4fb=_0x51538b()[_0x4bc7d0('0xe9e')](_0x391014[_0x4bc7d0('0xdc5')],{'name':_0x391014[_0x4bc7d0('0x1651')]['context']}));if(_0x4cb4fb&&!_0x51538b()['some'](_0xfe0c71,['id',_0x4cb4fb['id']])){var _0x2c0054=_0x51538b()[_0x4bc7d0('0xe9e')](_0x391014[_0x4bc7d0('0xdc5')],{'id':_0x4cb4fb['id']});_0x2c0054['canSelect']=![],_0xfe0c71[_0x4bc7d0('0x1599')](_0x2c0054);}_0x391014[_0x4bc7d0('0xdc5')]=_0xfe0c71;});}})[_0x323ade('0x253d')](function(_0x593056){var _0x5abdb3=_0x323ade;_0x3ddcbd[_0x5abdb3('0x187f')]({'title':_0x593056[_0x5abdb3('0x2fa')]?'API:'+_0x593056[_0x5abdb3('0x2fa')]+_0x5abdb3('0x169e')+_0x593056['statusText']:_0x5abdb3('0x2f7'),'msg':_0x593056[_0x5abdb3('0x10fd')]?JSON[_0x5abdb3('0xa48')](_0x593056[_0x5abdb3('0x10fd')]):_0x593056[_0x5abdb3('0x684')]()});});function _0x49cd39(){var _0x1447ae=_0x323ade;if(_0x19a72a[_0x1447ae('0x26e8')]('admin'))_0xd81af['go']('app.voice.realtime.trunks',{});else return _0x2863a7[_0x1447ae('0x1a50')][_0x1447ae('0x2122')]({'userProfileId':_0x19a72a['getCurrentUser']()[_0x1447ae('0x2168')],'sectionId':0x19b})[_0x1447ae('0x1dc2')]['then'](function(_0x48b4b0){var _0x594c5f=_0x1447ae,_0x1e2cc9=_0x48b4b0&&_0x48b4b0['rows']?_0x48b4b0['rows'][0x0]:null;_0x1e2cc9&&_0x1e2cc9['enabled']?_0xd81af['go'](_0x594c5f('0x15cc'),{}):_0x3ddcbd[_0x594c5f('0x3a1')]({'title':_0x17499d[_0x594c5f('0x213f')](_0x594c5f('0x1aab')),'msg':_0x17499d[_0x594c5f('0x213f')](_0x594c5f('0x251c'))});})[_0x1447ae('0x253d')](function(_0x41da4c){var _0x45886e=_0x1447ae;_0x3ddcbd[_0x45886e('0x187f')]({'title':_0x41da4c[_0x45886e('0x2fa')]?_0x45886e('0x16c2')+_0x41da4c['status']+_0x45886e('0x169e')+_0x41da4c[_0x45886e('0x24df')]:_0x45886e('0x21d5'),'msg':_0x41da4c[_0x45886e('0x2fa')]?JSON[_0x45886e('0xa48')](_0x41da4c[_0x45886e('0x10fd')]):_0x41da4c['toString']()});});}function _0x2cc257(_0x59040a,_0x2f5e46){var _0x1e94b7=_0x323ade;_0x39d9c7[_0x1e94b7('0x1e6d')]({'controller':'TrunkcloneController','controllerAs':'vm','templateUrl':_0x168e7f,'parent':angular[_0x1e94b7('0x1aa8')](_0x4ef37e[_0x1e94b7('0x54c')]),'targetEvent':_0x2f5e46,'clickOutsideToClose':!![],'locals':{'trunk':_0x59040a,'trunks':_0x391014['trunks']?_0x391014[_0x1e94b7('0x1bc2')][_0x1e94b7('0x580')]:[],'crudPermissions':_0x391014[_0x1e94b7('0xada')]}});}function _0x385fc3(){_0xd81af['go']('app.tools.trunks',{},{'reload':'app.tools.trunks'});}function _0x61ca9(){var _0x504795=_0x323ade;_0x2863a7[_0x504795('0x1651')][_0x504795('0x264e')]({'id':_0x391014[_0x504795('0x1651')]['id']},_0x391014['trunk'])['$promise'][_0x504795('0xaa5')](function(){var _0x399e1c=_0x504795;_0x3ddcbd[_0x399e1c('0xe10')]({'title':_0x399e1c('0x20e5'),'msg':_0x391014[_0x399e1c('0x1651')][_0x399e1c('0x25d6')]?_0x391014[_0x399e1c('0x1651')][_0x399e1c('0x25d6')]+_0x399e1c('0x1734'):''});})['catch'](function(_0xd8f7f5){var _0x28ec6f=_0x504795;_0x3ddcbd['error']({'title':_0xd8f7f5['status']?_0x28ec6f('0x16c2')+_0xd8f7f5[_0x28ec6f('0x2fa')]+_0x28ec6f('0x169e')+_0xd8f7f5[_0x28ec6f('0x24df')]:_0x28ec6f('0x25d3'),'msg':_0xd8f7f5[_0x28ec6f('0x10fd')]?JSON[_0x28ec6f('0xa48')](_0xd8f7f5[_0x28ec6f('0x10fd')]):_0xd8f7f5[_0x28ec6f('0x684')]()});});}}const _0x265f04=_0xf71dff,_0x51dcb2=_0x4fb511['p']+_0x1a8446('0x2523');_0x4afe17[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),'trunks',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x4afe17(_0x2cff34,_0x33d76a,_0x2a3dba,_0x1d41e4,_0x488df0,_0x881df8,_0x579baf,_0x3aa762,_0x49279f,_0x4af29d,_0x371951,_0x12a36a,_0x3a1cda,_0x10fa64,_0x276e1f,_0x3a4c40,_0x3d28fd){var _0x380c4d=_0x1a8446,_0x48f7e9=this;_0x48f7e9['license']=_0x3a4c40,_0x48f7e9['setting']=_0x3d28fd,_0x48f7e9[_0x380c4d('0x7fc')]=_0x276e1f['getCurrentUser'](),_0x48f7e9[_0x380c4d('0x1bc2')]=_0x49279f||{'count':0x0,'rows':[]},_0x48f7e9[_0x380c4d('0x1e97')]=_0x4af29d,_0x48f7e9[_0x380c4d('0x1a50')]=_0x371951&&_0x371951['count']==0x1?_0x371951['rows'][0x0]:null,_0x48f7e9[_0x380c4d('0xada')]=_0x276e1f[_0x380c4d('0xffd')](_0x48f7e9['userProfileSection']?_0x48f7e9[_0x380c4d('0x1a50')][_0x380c4d('0xada')]:null),_0x48f7e9[_0x380c4d('0x12b6')]='trunks',_0x48f7e9[_0x380c4d('0x164')]='',_0x48f7e9[_0x380c4d('0x8cc')]=null,_0x48f7e9[_0x380c4d('0xc13')]=[],_0x48f7e9[_0x380c4d('0x582')]={'fields':'createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields','sort':_0x380c4d('0xd82'),'limit':0xa,'page':0x1},_0x48f7e9['arraytype']=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x1cfe'),'value':_0x380c4d('0x2663')},{'option':'User','value':_0x380c4d('0xbd8')},{'option':'Peer','value':'\x27peer\x27'}],function(_0x22cea4){var _0x3f71d9=_0x380c4d;return _0x51538b()[_0x3f71d9('0x170d')](_0x22cea4['value'],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x10a8')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x998'),'value':_0x380c4d('0x10c5')},{'option':_0x380c4d('0x3a1'),'value':_0x380c4d('0xe49')},{'option':_0x380c4d('0x8f1'),'value':_0x380c4d('0x1185')},{'option':_0x380c4d('0x198d'),'value':_0x380c4d('0x27f1')},{'option':'auto','value':_0x380c4d('0x228c')}],function(_0x23ce41){var _0x186ce3=_0x380c4d;return _0x51538b()[_0x186ce3('0x170d')](_0x23ce41['value'],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x14de')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x623'),'value':_0x380c4d('0xc')},{'option':_0x380c4d('0x1427'),'value':'\x27comedia\x27'},{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x380c4d('0x539')},{'option':_0x380c4d('0x158d'),'value':'\x27never\x27'},{'option':_0x380c4d('0xbc0'),'value':_0x380c4d('0xc64')}],function(_0x3ac6b0){var _0x3fcb66=_0x380c4d;return _0x51538b()['replace'](_0x3ac6b0[_0x3fcb66('0x12f4')],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0xebb')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x98d'),'value':_0x380c4d('0x14cf')},{'option':'no','value':_0x380c4d('0x539')}],function(_0x5a5ed4){var _0x13d6bc=_0x380c4d;return _0x51538b()[_0x13d6bc('0x170d')](_0x5a5ed4['value'],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x140e')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x1a1d'),'value':_0x380c4d('0x24f7')},{'option':_0x380c4d('0x129'),'value':_0x380c4d('0x1dd5')},{'option':_0x380c4d('0x2172'),'value':_0x380c4d('0x3cc')},{'option':_0x380c4d('0x624'),'value':'\x27g723\x27'},{'option':_0x380c4d('0x111d'),'value':_0x380c4d('0x2379')},{'option':_0x380c4d('0x97f'),'value':_0x380c4d('0x259d')},{'option':'g729','value':_0x380c4d('0x2159')},{'option':_0x380c4d('0xf47'),'value':_0x380c4d('0x14a7')},{'option':_0x380c4d('0xd1d'),'value':_0x380c4d('0x2536')},{'option':_0x380c4d('0x1a7d'),'value':_0x380c4d('0x92f')}],function(_0x357223){var _0x4dec3d=_0x380c4d;return _0x51538b()[_0x4dec3d('0x170d')](_0x357223[_0x4dec3d('0x12f4')],new RegExp('\x27','g'),'');}),_0x48f7e9['arrayinsecure']=_0x51538b()['keyBy']([{'option':'port','value':_0x380c4d('0x2402')},{'option':'invite','value':_0x380c4d('0x72f')},{'option':_0x380c4d('0x2a6'),'value':_0x380c4d('0x2851')}],function(_0x51afc4){var _0x54f3b7=_0x380c4d;return _0x51538b()[_0x54f3b7('0x170d')](_0x51afc4[_0x54f3b7('0x12f4')],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x1122')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x98d'),'value':_0x380c4d('0x14cf')},{'option':'no','value':_0x380c4d('0x539')},{'option':_0x380c4d('0xfe3'),'value':_0x380c4d('0x1b54')},{'option':_0x380c4d('0x264e'),'value':_0x380c4d('0x1c29')}],function(_0x5c65c6){var _0x147f74=_0x380c4d;return _0x51538b()['replace'](_0x5c65c6[_0x147f74('0x12f4')],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x1b3e')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':'yes','value':_0x380c4d('0x14cf')},{'option':'no','value':_0x380c4d('0x539')}],function(_0x2b219b){var _0x5ab9d9=_0x380c4d;return _0x51538b()[_0x5ab9d9('0x170d')](_0x2b219b['value'],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0xf84')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':'yes','value':_0x380c4d('0x14cf')},{'option':'no','value':_0x380c4d('0x539')}],function(_0x25c3dc){var _0x32f626=_0x380c4d;return _0x51538b()[_0x32f626('0x170d')](_0x25c3dc[_0x32f626('0x12f4')],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x8a3')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x98d'),'value':_0x380c4d('0x14cf')},{'option':'no','value':_0x380c4d('0x539')}],function(_0xbfab36){var _0x3f64a2=_0x380c4d;return _0x51538b()[_0x3f64a2('0x170d')](_0xbfab36[_0x3f64a2('0x12f4')],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x7f')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x98d'),'value':'\x27yes\x27'},{'option':'no','value':_0x380c4d('0x539')},{'option':_0x380c4d('0x129d'),'value':_0x380c4d('0xbe5')}],function(_0x584ccc){var _0x532a5f=_0x380c4d;return _0x51538b()[_0x532a5f('0x170d')](_0x584ccc[_0x532a5f('0x12f4')],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x18b6')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x98d'),'value':_0x380c4d('0x14cf')},{'option':'no','value':_0x380c4d('0x539')}],function(_0x412e0b){var _0x2afe82=_0x380c4d;return _0x51538b()[_0x2afe82('0x170d')](_0x412e0b['value'],new RegExp('\x27','g'),'');}),_0x48f7e9['arraytransport']=_0x51538b()[_0x380c4d('0x184a')]([{'option':_0x380c4d('0x2723'),'value':_0x380c4d('0x2322')},{'option':'tcp','value':_0x380c4d('0xfb4')},{'option':'ws','value':_0x380c4d('0x127e')},{'option':_0x380c4d('0x15f2'),'value':_0x380c4d('0x1bd')},{'option':_0x380c4d('0x1bdc'),'value':'\x27tls\x27'}],function(_0x4cfea0){var _0x25272b=_0x380c4d;return _0x51538b()[_0x25272b('0x170d')](_0x4cfea0[_0x25272b('0x12f4')],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0xc65')]=_0x51538b()[_0x380c4d('0x184a')]([{'option':'Yes','value':_0x380c4d('0x14cf')},{'option':'No','value':_0x380c4d('0x539')},{'option':_0x380c4d('0xc90'),'value':_0x380c4d('0x1dc8')}],function(_0x5585b0){var _0x189db7=_0x380c4d;return _0x51538b()[_0x189db7('0x170d')](_0x5585b0['value'],new RegExp('\x27','g'),'');}),_0x48f7e9[_0x380c4d('0x1927')]=_0x5c3815,_0x48f7e9[_0x380c4d('0x16c1')]=_0x375075,_0x48f7e9[_0x380c4d('0x2389')]=_0x39ef36,_0x48f7e9[_0x380c4d('0x271')]=_0x20190e,_0x48f7e9[_0x380c4d('0xe10')]=_0x4a62a4,_0x48f7e9[_0x380c4d('0xa79')]=_0x305f39,_0x48f7e9[_0x380c4d('0x2b8')]=_0x39f2e6,_0x48f7e9[_0x380c4d('0x2381')]=_0x19ffc1,_0x48f7e9[_0x380c4d('0x304')]=_0x191704,_0x48f7e9['deleteSelectedTrunks']=_0x1557a1,_0x48f7e9[_0x380c4d('0x1558')]=_0x47e113,_0x48f7e9[_0x380c4d('0xb27')]=_0x331538;function _0x5c3815(_0x513c06){var _0x19bf0b=_0x380c4d;_0x2a3dba['go'](_0x19bf0b('0x15b'),{'id':_0x513c06['id'],'trunk':_0x513c06,'crudPermissions':_0x48f7e9['crudPermissions']});}function _0x375075(_0x3448df,_0x447ec3){var _0x1c02d9=_0x380c4d;_0x488df0[_0x1c02d9('0x1e6d')]({'controller':_0x1c02d9('0xaa'),'controllerAs':'vm','templateUrl':_0x168e7f,'parent':angular[_0x1c02d9('0x1aa8')](_0x881df8[_0x1c02d9('0x54c')]),'targetEvent':_0x447ec3,'clickOutsideToClose':!![],'locals':{'trunk':_0x3448df,'trunks':_0x48f7e9['trunks']?_0x48f7e9[_0x1c02d9('0x1bc2')][_0x1c02d9('0x580')]:[],'crudPermissions':_0x48f7e9[_0x1c02d9('0xada')]}});}function _0x39ef36(){var _0xf8bfb5=_0x380c4d;if(_0x276e1f[_0xf8bfb5('0x26e8')](_0xf8bfb5('0x178b')))_0x2a3dba['go'](_0xf8bfb5('0x15cc'),{});else return _0x12a36a[_0xf8bfb5('0x1a50')][_0xf8bfb5('0x2122')]({'userProfileId':_0x276e1f['getCurrentUser']()[_0xf8bfb5('0x2168')],'sectionId':0x19b})[_0xf8bfb5('0x1dc2')][_0xf8bfb5('0xaa5')](function(_0x430796){var _0x276dd4=_0xf8bfb5,_0x2e8061=_0x430796&&_0x430796[_0x276dd4('0x580')]?_0x430796[_0x276dd4('0x580')][0x0]:null;_0x2e8061&&_0x2e8061['enabled']?_0x2a3dba['go'](_0x276dd4('0x15cc'),{}):_0x10fa64[_0x276dd4('0x3a1')]({'title':_0x3aa762[_0x276dd4('0x213f')](_0x276dd4('0x1aab')),'msg':_0x3aa762['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})['catch'](function(_0x11a22a){var _0x446580=_0xf8bfb5;_0x10fa64[_0x446580('0x187f')]({'title':_0x11a22a[_0x446580('0x2fa')]?_0x446580('0x16c2')+_0x11a22a['status']+_0x446580('0x169e')+_0x11a22a[_0x446580('0x24df')]:_0x446580('0x21d5'),'msg':_0x11a22a[_0x446580('0x2fa')]?JSON[_0x446580('0xa48')](_0x11a22a['data']):_0x11a22a['toString']()});});}function _0x20190e(_0x542639,_0x5d87d2){var _0x2a0eb8=_0x380c4d,_0x4a2e9d=_0x488df0[_0x2a0eb8('0x281e')]()[_0x2a0eb8('0x110a')](_0x2a0eb8('0x88d')+_0x51538b()[_0x2a0eb8('0x196a')]('trunk')+'?')[_0x2a0eb8('0x102e')](_0x2a0eb8('0x389')+(_0x542639[_0x2a0eb8('0x25d6')]||_0x2a0eb8('0x1651'))+_0x2a0eb8('0x697')+_0x2a0eb8('0x210d'))[_0x2a0eb8('0x5b5')](_0x2a0eb8('0xea3'))[_0x2a0eb8('0x116d')](_0x5d87d2)['ok']('OK')['cancel'](_0x2a0eb8('0x2410'));_0x488df0['show'](_0x4a2e9d)[_0x2a0eb8('0xaa5')](function(){_0x19ffc1(_0x542639);},function(){var _0x1bb229=_0x2a0eb8;console['log'](_0x1bb229('0x2410'));});}var _0x27617a=!![],_0x32bd42=0x1;_0x2cff34[_0x380c4d('0x1ccf')](_0x380c4d('0x1788'),function(_0x2a7d19,_0x182527){var _0x40b275=_0x380c4d;_0x27617a?_0x579baf(function(){_0x27617a=![];}):(!_0x182527&&(_0x32bd42=_0x48f7e9['query'][_0x40b275('0x41')]),_0x2a7d19!==_0x182527&&(_0x48f7e9['query'][_0x40b275('0x41')]=0x1),!_0x2a7d19&&(_0x48f7e9[_0x40b275('0x582')]['page']=_0x32bd42),_0x48f7e9[_0x40b275('0xa79')]());});function _0x4a62a4(_0x35bda5){var _0x19c6ab=_0x380c4d;_0x48f7e9[_0x19c6ab('0x1bc2')]=_0x35bda5||{'count':0x0,'rows':[]};}function _0x305f39(){var _0x566e24=_0x380c4d;_0x48f7e9[_0x566e24('0x582')][_0x566e24('0x8b1')]=(_0x48f7e9[_0x566e24('0x582')]['page']-0x1)*_0x48f7e9[_0x566e24('0x582')][_0x566e24('0xf4d')],_0x276e1f[_0x566e24('0x26e8')](_0x566e24('0x178b'))?_0x48f7e9[_0x566e24('0x159a')]=_0x12a36a[_0x566e24('0x1651')][_0x566e24('0x2122')](_0x48f7e9['query'],_0x4a62a4)[_0x566e24('0x1dc2')]:(_0x48f7e9[_0x566e24('0x582')]['id']=_0x48f7e9[_0x566e24('0x1e97')]['id'],_0x48f7e9['query'][_0x566e24('0x224d')]=_0x566e24('0x1e84'),_0x48f7e9[_0x566e24('0x159a')]=_0x12a36a['userProfile'][_0x566e24('0x1cf1')](_0x48f7e9[_0x566e24('0x582')],_0x4a62a4)['$promise']);}function _0x39f2e6(_0x4a9022,_0x21ca54){var _0x5ed57f=_0x380c4d;_0x488df0[_0x5ed57f('0x1e6d')]({'controller':_0x5ed57f('0x21af'),'controllerAs':'vm','templateUrl':_0x51dcb2,'parent':angular['element'](_0x881df8[_0x5ed57f('0x54c')]),'targetEvent':_0x4a9022,'clickOutsideToClose':!![],'locals':{'trunk':_0x21ca54,'trunks':_0x48f7e9['trunks'][_0x5ed57f('0x580')],'license':_0x48f7e9['license'],'setting':_0x48f7e9[_0x5ed57f('0x143f')],'crudPermissions':_0x48f7e9[_0x5ed57f('0xada')]}});}function _0x19ffc1(_0x12e910){var _0x4e0dbe=_0x380c4d;_0x12a36a[_0x4e0dbe('0x1651')][_0x4e0dbe('0x926')]({'id':_0x12e910['id']})[_0x4e0dbe('0x1dc2')][_0x4e0dbe('0xaa5')](function(){var _0x3a02a6=_0x4e0dbe;_0x51538b()['remove'](_0x48f7e9[_0x3a02a6('0x1bc2')][_0x3a02a6('0x580')],{'id':_0x12e910['id']}),_0x48f7e9['trunks']['count']-=0x1,!_0x48f7e9[_0x3a02a6('0x1bc2')][_0x3a02a6('0x580')][_0x3a02a6('0x2587')]&&_0x48f7e9[_0x3a02a6('0xa79')](),_0x10fa64[_0x3a02a6('0xe10')]({'title':_0x51538b()[_0x3a02a6('0x196a')](_0x3a02a6('0x4a6'))+'\x20deleted!','msg':_0x12e910['name']?_0x12e910[_0x3a02a6('0x25d6')]+_0x3a02a6('0xcd9'):''});})[_0x4e0dbe('0x253d')](function(_0x267e0b){var _0x396a8d=_0x4e0dbe;if(_0x267e0b[_0x396a8d('0x10fd')]&&_0x267e0b['data'][_0x396a8d('0x4c6')]&&_0x267e0b[_0x396a8d('0x10fd')][_0x396a8d('0x4c6')]['length']){_0x48f7e9['errors']=_0x267e0b[_0x396a8d('0x10fd')][_0x396a8d('0x4c6')]||[{'message':_0x267e0b['toString'](),'type':_0x396a8d('0x16ab')}];for(var _0x1eee33=0x0;_0x1eee33<_0x267e0b[_0x396a8d('0x10fd')][_0x396a8d('0x4c6')][_0x396a8d('0x2587')];_0x1eee33++){_0x10fa64[_0x396a8d('0x187f')]({'title':_0x267e0b[_0x396a8d('0x10fd')][_0x396a8d('0x4c6')][_0x1eee33]['type'],'msg':_0x267e0b[_0x396a8d('0x10fd')][_0x396a8d('0x4c6')][_0x1eee33]['message']});}}else _0x10fa64[_0x396a8d('0x187f')]({'title':_0x267e0b[_0x396a8d('0x2fa')]?_0x396a8d('0x16c2')+_0x267e0b[_0x396a8d('0x2fa')]+'\x20-\x20'+_0x267e0b['statusText']:_0x396a8d('0x16ab'),'msg':_0x267e0b[_0x396a8d('0x10fd')]?JSON[_0x396a8d('0xa48')](_0x267e0b['data'][_0x396a8d('0x1402')]):_0x267e0b[_0x396a8d('0x1402')]||_0x267e0b[_0x396a8d('0x684')]()});});}function _0x191704(){var _0xe6067=_0x380c4d,_0x201956=angular[_0xe6067('0x20a')](_0x48f7e9[_0xe6067('0xc13')]);return _0x48f7e9[_0xe6067('0xc13')]=[],_0x201956;}function _0x1557a1(_0x871424){var _0x4858ef=_0x380c4d,_0x17f249=_0x488df0[_0x4858ef('0x281e')]()[_0x4858ef('0x110a')](_0x4858ef('0xd22'))[_0x4858ef('0x102e')](''+_0x48f7e9[_0x4858ef('0xc13')]['length']+_0x4858ef('0x1443')+_0x4858ef('0x210d'))[_0x4858ef('0x5b5')](_0x4858ef('0x26b'))['targetEvent'](_0x871424)['ok']('OK')[_0x4858ef('0x2030')](_0x4858ef('0x2410'));_0x488df0['show'](_0x17f249)[_0x4858ef('0xaa5')](function(){var _0x3e63fd=_0x4858ef;_0x48f7e9[_0x3e63fd('0xc13')]['forEach'](function(_0x50a5c0){_0x19ffc1(_0x50a5c0);}),_0x48f7e9['selectedTrunks']=[];});}function _0x47e113(){var _0x19ed74=_0x380c4d;_0x48f7e9[_0x19ed74('0xc13')]=[];}function _0x331538(){var _0x4c5fe6=_0x380c4d;_0x48f7e9['selectedTrunks']=_0x48f7e9[_0x4c5fe6('0x1bc2')][_0x4c5fe6('0x580')];}}const _0x2260bb=_0x4afe17;_0x52a995[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x147e'),'variable',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x52a995(_0x20a2a4,_0x172dd2,_0x3e6fb4,_0x4b673e,_0xf004ad,_0x1ccac9,_0xb5767,_0x1127d1,_0x48a370,_0x52fa7b,_0x41ac1e,_0x2f4df9,_0x8064e4,_0x870075){var _0x53c33e=_0x1a8446,_0x2d350d=this;_0x2d350d[_0x53c33e('0x7fc')]=_0x41ac1e[_0x53c33e('0xacc')](),_0x2d350d[_0x53c33e('0x4c6')]=[],_0x2d350d['setting']=_0x8064e4,_0x2d350d[_0x53c33e('0x1202')]=_0x2f4df9,_0x2d350d['crudPermissions']=_0x870075,_0x2d350d[_0x53c33e('0x9f0')]={},_0x2d350d[_0x53c33e('0x1d53')]=_0x2d350d['setting']&&_0x2d350d[_0x53c33e('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d350d[_0x53c33e('0x110a')]=_0x53c33e('0x1868'),_0x2d350d['variable']=angular[_0x53c33e('0x20a')](_0x48a370),_0x2d350d[_0x53c33e('0x147e')]=_0x1127d1,_0x2d350d[_0x53c33e('0x7a4')]=![];!_0x2d350d[_0x53c33e('0x14e7')]&&(_0x2d350d[_0x53c33e('0x14e7')]={},_0x2d350d[_0x53c33e('0x110a')]=_0x53c33e('0x20fa'),_0x2d350d[_0x53c33e('0x7a4')]=!![]);_0x2d350d['addNewVariable']=_0x1a48b6,_0x2d350d[_0x53c33e('0x611')]=_0x559686,_0x2d350d[_0x53c33e('0x299')]=_0x2afda3,_0x2d350d['getDateFromString']=_0x5246c9,_0x2d350d[_0x53c33e('0x2023')]=_0x304992;function _0x1a48b6(){var _0x5bd2d4=_0x53c33e;_0x2d350d[_0x5bd2d4('0x4c6')]=[],_0x52fa7b['variable']['save'](_0x2d350d[_0x5bd2d4('0x14e7')])[_0x5bd2d4('0x1dc2')][_0x5bd2d4('0xaa5')](function(_0x9582b6){var _0x3ed86f=_0x5bd2d4;_0x2d350d[_0x3ed86f('0x147e')][_0x3ed86f('0x6ee')](_0x9582b6[_0x3ed86f('0x256a')]()),_0xb5767[_0x3ed86f('0xe10')]({'title':_0x3ed86f('0x2222'),'msg':_0x2d350d[_0x3ed86f('0x14e7')][_0x3ed86f('0x25d6')]?_0x2d350d[_0x3ed86f('0x14e7')][_0x3ed86f('0x25d6')]+_0x3ed86f('0xdca'):''}),_0x304992(_0x9582b6);})[_0x5bd2d4('0x253d')](function(_0x503438){var _0x5058a5=_0x5bd2d4;if(_0x503438[_0x5058a5('0x10fd')]&&_0x503438[_0x5058a5('0x10fd')]['errors']&&_0x503438[_0x5058a5('0x10fd')][_0x5058a5('0x4c6')][_0x5058a5('0x2587')]){_0x2d350d[_0x5058a5('0x4c6')]=_0x503438[_0x5058a5('0x10fd')][_0x5058a5('0x4c6')]||[{'message':_0x503438['toString'](),'type':_0x5058a5('0x10bc')}];for(var _0x461582=0x0;_0x461582<_0x503438[_0x5058a5('0x10fd')][_0x5058a5('0x4c6')][_0x5058a5('0x2587')];_0x461582+=0x1){_0xb5767[_0x5058a5('0x187f')]({'title':_0x503438[_0x5058a5('0x10fd')]['errors'][_0x461582]['type'],'msg':_0x503438[_0x5058a5('0x10fd')][_0x5058a5('0x4c6')][_0x461582][_0x5058a5('0x1402')]});}}else _0xb5767[_0x5058a5('0x187f')]({'title':_0x503438[_0x5058a5('0x2fa')]?_0x5058a5('0x16c2')+_0x503438[_0x5058a5('0x2fa')]+'\x20-\x20'+_0x503438[_0x5058a5('0x24df')]:_0x5058a5('0x10bc'),'msg':_0x503438['data']?JSON[_0x5058a5('0xa48')](_0x503438[_0x5058a5('0x10fd')][_0x5058a5('0x1402')]):_0x503438[_0x5058a5('0x684')]()});});}function _0x559686(){var _0x49f19d=_0x53c33e;_0x2d350d[_0x49f19d('0x4c6')]=[],_0x52fa7b[_0x49f19d('0x14e7')][_0x49f19d('0x264e')]({'id':_0x2d350d[_0x49f19d('0x14e7')]['id']},_0x2d350d[_0x49f19d('0x14e7')])[_0x49f19d('0x1dc2')]['then'](function(_0x5f5a8b){var _0x44b5a7=_0x49f19d,_0x38a9ff=_0x51538b()[_0x44b5a7('0xe9e')](_0x2d350d['variables'],{'id':_0x5f5a8b['id']});_0x38a9ff&&_0x51538b()['merge'](_0x38a9ff,_0x51538b()[_0x44b5a7('0x104e')](_0x5f5a8b[_0x44b5a7('0x256a')](),_0x51538b()[_0x44b5a7('0x9f2')](_0x38a9ff))),_0xb5767[_0x44b5a7('0xe10')]({'title':_0x44b5a7('0xd84'),'msg':_0x2d350d['variable']['name']?_0x2d350d['variable'][_0x44b5a7('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x304992(_0x5f5a8b);})[_0x49f19d('0x253d')](function(_0x5b23e1){var _0x299630=_0x49f19d;if(_0x5b23e1[_0x299630('0x10fd')]&&_0x5b23e1['data'][_0x299630('0x4c6')]&&_0x5b23e1[_0x299630('0x10fd')]['errors'][_0x299630('0x2587')]){_0x2d350d[_0x299630('0x4c6')]=_0x5b23e1[_0x299630('0x10fd')]['errors']||[{'message':_0x5b23e1[_0x299630('0x684')](),'type':_0x299630('0x831')}];for(var _0x118f9f=0x0;_0x118f9f<_0x5b23e1['data'][_0x299630('0x4c6')][_0x299630('0x2587')];_0x118f9f++){_0xb5767[_0x299630('0x187f')]({'title':_0x5b23e1[_0x299630('0x10fd')]['errors'][_0x118f9f]['type'],'msg':_0x5b23e1['data'][_0x299630('0x4c6')][_0x118f9f][_0x299630('0x1402')]});}}else _0xb5767[_0x299630('0x187f')]({'title':_0x5b23e1[_0x299630('0x2fa')]?_0x299630('0x16c2')+_0x5b23e1[_0x299630('0x2fa')]+_0x299630('0x169e')+_0x5b23e1[_0x299630('0x24df')]:_0x299630('0x831'),'msg':_0x5b23e1[_0x299630('0x10fd')]?JSON[_0x299630('0xa48')](_0x5b23e1[_0x299630('0x10fd')][_0x299630('0x1402')]):_0x5b23e1[_0x299630('0x684')]()});});}function _0x2afda3(_0x5188a0){var _0x28583d=_0x53c33e;_0x2d350d[_0x28583d('0x4c6')]=[];var _0x89f00d=_0x4b673e[_0x28583d('0x281e')]()[_0x28583d('0x110a')]('Are\x20you\x20sure?')['content'](_0x28583d('0x208a'))[_0x28583d('0x5b5')](_0x28583d('0x1878'))['ok'](_0x28583d('0x1e76'))['cancel'](_0x28583d('0x9c6'))['targetEvent'](_0x5188a0);_0x4b673e[_0x28583d('0x1e6d')](_0x89f00d)['then'](function(){var _0x163084=_0x28583d;_0x52fa7b[_0x163084('0x14e7')][_0x163084('0x926')]({'id':_0x2d350d['variable']['id']})[_0x163084('0x1dc2')][_0x163084('0xaa5')](function(){var _0x1dd8dd=_0x163084;_0x51538b()['remove'](_0x2d350d[_0x1dd8dd('0x147e')],{'id':_0x2d350d[_0x1dd8dd('0x14e7')]['id']}),_0xb5767[_0x1dd8dd('0xe10')]({'title':_0x1dd8dd('0x27f2'),'msg':(_0x2d350d[_0x1dd8dd('0x14e7')][_0x1dd8dd('0x25d6')]||_0x1dd8dd('0x14e7'))+_0x1dd8dd('0xcd9')}),_0x304992(_0x2d350d[_0x1dd8dd('0x14e7')]);})['catch'](function(_0x12553f){var _0x481a3e=_0x163084;if(_0x12553f['data']&&_0x12553f[_0x481a3e('0x10fd')][_0x481a3e('0x4c6')]&&_0x12553f[_0x481a3e('0x10fd')][_0x481a3e('0x4c6')]['length']){_0x2d350d[_0x481a3e('0x4c6')]=_0x12553f[_0x481a3e('0x10fd')][_0x481a3e('0x4c6')]||[{'message':_0x12553f[_0x481a3e('0x684')](),'type':_0x481a3e('0x4a9')}];for(var _0x2d9c4b=0x0;_0x2d9c4b<_0x12553f['data'][_0x481a3e('0x4c6')][_0x481a3e('0x2587')];_0x2d9c4b++){_0xb5767[_0x481a3e('0x187f')]({'title':_0x12553f[_0x481a3e('0x10fd')]['errors'][_0x2d9c4b][_0x481a3e('0x6c8')],'msg':_0x12553f[_0x481a3e('0x10fd')][_0x481a3e('0x4c6')][_0x2d9c4b]['message']});}}else _0xb5767[_0x481a3e('0x187f')]({'title':_0x12553f[_0x481a3e('0x2fa')]?_0x481a3e('0x16c2')+_0x12553f[_0x481a3e('0x2fa')]+'\x20-\x20'+_0x12553f[_0x481a3e('0x24df')]:'api.variable.delete','msg':_0x12553f[_0x481a3e('0x10fd')]?JSON[_0x481a3e('0xa48')](_0x12553f['data'][_0x481a3e('0x1402')]):_0x12553f[_0x481a3e('0x1402')]||_0x12553f['toString']()});});},function(){});}function _0x5246c9(_0x2d73d4){return _0x2d73d4===null?undefined:new Date(_0x2d73d4);}function _0x304992(_0x4c5048){var _0x4af919=_0x53c33e;_0x4b673e[_0x4af919('0x1120')](_0x4c5048);}}const _0x45a0eb=_0x52a995,_0x3ee521=_0x4fb511['p']+_0x1a8446('0x1912');_0x3a5beb[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog','$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x147e'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'api',_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x3a5beb(_0x320cac,_0x5d1e48,_0x35b023,_0x54b18b,_0x53be94,_0x501a67,_0x806c81,_0x5ec2b1,_0x555611,_0x1032e3,_0x1848ff,_0x216532,_0x337e2b,_0x1c9cd2,_0x16291,_0x40124b,_0x2f9c1c){var _0x288566=_0x1a8446,_0x511611=this;_0x511611[_0x288566('0x1202')]=_0x40124b,_0x511611[_0x288566('0x143f')]=_0x2f9c1c,_0x511611['currentUser']=_0x16291[_0x288566('0xacc')](),_0x511611[_0x288566('0x147e')]=_0x555611||{'count':0x0,'rows':[]},_0x511611['userProfile']=_0x1032e3,_0x511611['userProfileSection']=_0x1848ff&&_0x1848ff[_0x288566('0xd15')]==0x1?_0x1848ff[_0x288566('0x580')][0x0]:null,_0x511611['crudPermissions']=_0x16291[_0x288566('0xffd')](_0x511611[_0x288566('0x1a50')]?_0x511611['userProfileSection'][_0x288566('0xada')]:null),_0x511611[_0x288566('0x12b6')]=_0x288566('0x147e'),_0x511611['listOrder']='',_0x511611[_0x288566('0x8cc')]=null,_0x511611['selectedVariables']=[],_0x511611[_0x288566('0x582')]={'fields':_0x288566('0x1798'),'sort':_0x288566('0xd82'),'limit':0xa,'page':0x1},_0x511611[_0x288566('0x1960')]=_0x223a78,_0x511611[_0x288566('0x271')]=_0x4b7bbe,_0x511611[_0x288566('0xe10')]=_0x4cc655,_0x511611[_0x288566('0x1dab')]=_0x21944a,_0x511611['createOrEditVariable']=_0x54b8d7,_0x511611[_0x288566('0x299')]=_0x4cbdbe,_0x511611['exportSelectedVariables']=_0x19ee96,_0x511611['deleteSelectedVariables']=_0x24d55a,_0x511611[_0x288566('0x14e4')]=_0x45ef7c,_0x511611['selectAllVariables']=_0x5663b3;function _0x223a78(_0x188347,_0x2d874c){var _0x3f5ca5=_0x288566;_0x53be94['show']({'controller':_0x3f5ca5('0x17aa'),'controllerAs':'vm','templateUrl':_0x3ee521,'parent':angular[_0x3f5ca5('0x1aa8')](_0x501a67[_0x3f5ca5('0x54c')]),'targetEvent':_0x2d874c,'clickOutsideToClose':!![],'locals':{'variable':_0x188347,'variables':_0x511611[_0x3f5ca5('0x147e')][_0x3f5ca5('0x580')],'license':_0x511611[_0x3f5ca5('0x1202')],'setting':null,'crudPermissions':_0x511611[_0x3f5ca5('0xada')]}});}function _0x4b7bbe(_0x10affe,_0x2923eb){var _0x4e8411=_0x288566,_0x2d7a3d=_0x53be94[_0x4e8411('0x281e')]()[_0x4e8411('0x110a')](_0x4e8411('0x88d')+_0x51538b()[_0x4e8411('0x196a')](_0x4e8411('0x14e7'))+'?')['htmlContent'](_0x4e8411('0x389')+(_0x10affe[_0x4e8411('0x25d6')]||_0x4e8411('0x14e7'))+_0x4e8411('0x697')+_0x4e8411('0x210d'))[_0x4e8411('0x5b5')]('delete\x20variable')[_0x4e8411('0x116d')](_0x2923eb)['ok']('OK')['cancel'](_0x4e8411('0x2410'));_0x53be94[_0x4e8411('0x1e6d')](_0x2d7a3d)[_0x4e8411('0xaa5')](function(){_0x4cbdbe(_0x10affe);},function(){console['log']('CANCEL');});}var _0x501f71=!![],_0x5e8a84=0x1;_0x320cac[_0x288566('0x1ccf')](_0x288566('0x1788'),function(_0x4cb749,_0x40395e){var _0x4e111f=_0x288566;_0x501f71?_0x806c81(function(){_0x501f71=![];}):(!_0x40395e&&(_0x5e8a84=_0x511611[_0x4e111f('0x582')][_0x4e111f('0x41')]),_0x4cb749!==_0x40395e&&(_0x511611[_0x4e111f('0x582')]['page']=0x1),!_0x4cb749&&(_0x511611[_0x4e111f('0x582')][_0x4e111f('0x41')]=_0x5e8a84),_0x511611[_0x4e111f('0x1dab')]());});function _0x4cc655(_0x335e03){var _0x402512=_0x288566;_0x511611[_0x402512('0x147e')]=_0x335e03||{'count':0x0,'rows':[]};}function _0x21944a(){var _0x3582d6=_0x288566;_0x511611[_0x3582d6('0x582')][_0x3582d6('0x8b1')]=(_0x511611[_0x3582d6('0x582')][_0x3582d6('0x41')]-0x1)*_0x511611[_0x3582d6('0x582')]['limit'],_0x16291['hasRole'](_0x3582d6('0x178b'))?_0x511611['promise']=_0x216532[_0x3582d6('0x14e7')][_0x3582d6('0x2122')](_0x511611[_0x3582d6('0x582')],_0x4cc655)[_0x3582d6('0x1dc2')]:(_0x511611['query']['id']=_0x511611[_0x3582d6('0x1e97')]['id'],_0x511611['query']['section']='Variables',_0x511611[_0x3582d6('0x159a')]=_0x216532['userProfile'][_0x3582d6('0x1cf1')](_0x511611[_0x3582d6('0x582')],_0x4cc655)[_0x3582d6('0x1dc2')]);}function _0x54b8d7(_0x336682,_0x16b80f){var _0x3e94f0=_0x288566;_0x53be94['show']({'controller':'CreateOrEditVariableDialogController','controllerAs':'vm','templateUrl':_0x3ee521,'parent':angular[_0x3e94f0('0x1aa8')](_0x501a67[_0x3e94f0('0x54c')]),'targetEvent':_0x336682,'clickOutsideToClose':!![],'locals':{'variable':_0x16b80f,'variables':_0x511611[_0x3e94f0('0x147e')]['rows'],'license':_0x511611[_0x3e94f0('0x1202')],'setting':_0x511611[_0x3e94f0('0x143f')],'crudPermissions':_0x511611[_0x3e94f0('0xada')]}});}function _0x4cbdbe(_0x3cbf56){var _0x35ef48=_0x288566;_0x216532[_0x35ef48('0x14e7')][_0x35ef48('0x926')]({'id':_0x3cbf56['id']})[_0x35ef48('0x1dc2')][_0x35ef48('0xaa5')](function(){var _0x5d3a76=_0x35ef48;_0x51538b()[_0x5d3a76('0xf6d')](_0x511611[_0x5d3a76('0x147e')][_0x5d3a76('0x580')],{'id':_0x3cbf56['id']}),_0x511611['variables']['count']-=0x1,!_0x511611[_0x5d3a76('0x147e')][_0x5d3a76('0x580')]['length']&&_0x511611[_0x5d3a76('0x1dab')](),_0x1c9cd2['success']({'title':_0x51538b()[_0x5d3a76('0x196a')]('Variable')+_0x5d3a76('0x8bb'),'msg':_0x3cbf56[_0x5d3a76('0x25d6')]?_0x3cbf56['name']+_0x5d3a76('0xcd9'):''});})[_0x35ef48('0x253d')](function(_0x330df7){var _0x292d28=_0x35ef48;if(_0x330df7[_0x292d28('0x10fd')]&&_0x330df7[_0x292d28('0x10fd')][_0x292d28('0x4c6')]&&_0x330df7[_0x292d28('0x10fd')][_0x292d28('0x4c6')]['length']){_0x511611[_0x292d28('0x4c6')]=_0x330df7[_0x292d28('0x10fd')]['errors']||[{'message':_0x330df7[_0x292d28('0x684')](),'type':_0x292d28('0x4af')}];for(var _0x537865=0x0;_0x537865<_0x330df7[_0x292d28('0x10fd')][_0x292d28('0x4c6')][_0x292d28('0x2587')];_0x537865++){_0x1c9cd2[_0x292d28('0x187f')]({'title':_0x330df7[_0x292d28('0x10fd')][_0x292d28('0x4c6')][_0x537865][_0x292d28('0x6c8')],'msg':_0x330df7[_0x292d28('0x10fd')][_0x292d28('0x4c6')][_0x537865][_0x292d28('0x1402')]});}}else _0x1c9cd2[_0x292d28('0x187f')]({'title':_0x330df7['status']?_0x292d28('0x16c2')+_0x330df7[_0x292d28('0x2fa')]+_0x292d28('0x169e')+_0x330df7[_0x292d28('0x24df')]:'SYSTEM:DELETEvariable','msg':_0x330df7[_0x292d28('0x10fd')]?JSON[_0x292d28('0xa48')](_0x330df7[_0x292d28('0x10fd')]['message']):_0x330df7[_0x292d28('0x1402')]||_0x330df7['toString']()});});}function _0x19ee96(){var _0x8e65be=_0x288566,_0xff024=angular[_0x8e65be('0x20a')](_0x511611[_0x8e65be('0xe6')]);return _0x511611['selectedVariables']=[],_0xff024;}function _0x24d55a(_0x20bcb){var _0x4c08fe=_0x288566,_0x3bad09=_0x53be94[_0x4c08fe('0x281e')]()[_0x4c08fe('0x110a')](_0x4c08fe('0x1c12'))[_0x4c08fe('0x102e')](_0x4c08fe('0x389')+_0x511611[_0x4c08fe('0xe6')][_0x4c08fe('0x2587')]+_0x4c08fe('0x1443')+_0x4c08fe('0x210d'))[_0x4c08fe('0x5b5')]('delete\x20Variables')[_0x4c08fe('0x116d')](_0x20bcb)['ok']('OK')[_0x4c08fe('0x2030')](_0x4c08fe('0x2410'));_0x53be94[_0x4c08fe('0x1e6d')](_0x3bad09)[_0x4c08fe('0xaa5')](function(){var _0x57ee97=_0x4c08fe;_0x511611[_0x57ee97('0xe6')][_0x57ee97('0x15b5')](function(_0x508c74){_0x4cbdbe(_0x508c74);}),_0x511611[_0x57ee97('0xe6')]=[];});}function _0x45ef7c(){var _0x38c2f6=_0x288566;_0x511611[_0x38c2f6('0xe6')]=[];}function _0x5663b3(){var _0x1ddf9f=_0x288566;_0x511611[_0x1ddf9f('0xe6')]=_0x511611['variables']['rows'];}}const _0x6026a7=_0x3a5beb;_0x316fa2[_0x1a8446('0x1e33')]=['$stateProvider',_0x1a8446('0x208f')];function _0x316fa2(_0x1fedb5,_0x5b4e4e){var _0x2550be=_0x1a8446;_0x1fedb5['state'](_0x2550be('0xb67'),{'abstract':!![],'url':_0x2550be('0x228f')})['state']('app.tools.cannedAnswers',{'url':_0x2550be('0x102'),'views':{'content@app':{'templateUrl':_0x499de4,'controller':_0x2550be('0x606')}},'resolve':{'cannedAnswers':['apiResolver','Auth',function _0x22cecf(_0x5da8d1,_0x1390d2){var _0x2280af=_0x2550be;return _0x1390d2[_0x2280af('0x26e8')](_0x2280af('0x178b'))?_0x5da8d1[_0x2280af('0x149f')](_0x2280af('0xc97'),{'fields':'createdAt,updatedAt,id,key,value,description','sort':'-updatedAt','MailAccountId':_0x2280af('0x1ed9'),'FaxAccountId':_0x2280af('0x1ed9'),'SmsAccountId':_0x2280af('0x1ed9'),'OpenchannelAccountId':_0x2280af('0x1ed9'),'ChatWebsiteId':_0x2280af('0x1ed9'),'limit':0xa,'offset':0x0}):_0x5da8d1[_0x2280af('0x149f')](_0x2280af('0x49a'),{'id':_0x1390d2[_0x2280af('0xacc')]()[_0x2280af('0x2168')],'section':_0x2280af('0x1459'),'fields':_0x2280af('0x22e7'),'sort':_0x2280af('0xd82'),'MailAccountId':_0x2280af('0x1ed9'),'FaxAccountId':_0x2280af('0x1ed9'),'SmsAccountId':_0x2280af('0x1ed9'),'OpenchannelAccountId':_0x2280af('0x1ed9'),'ChatWebsiteId':_0x2280af('0x1ed9'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2550be('0x1dfd'),function _0x3f5f2a(_0x1c762e,_0x1c3194){var _0x2a5d21=_0x2550be;return _0x1c3194['hasRole']('admin')?null:_0x1c762e[_0x2a5d21('0x149f')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x1c3194[_0x2a5d21('0xacc')]()[_0x2a5d21('0x2168')]});}],'userProfileSection':[_0x2550be('0x1d16'),'Auth',function _0x438581(_0x7be651,_0x5a2262){var _0x145e88=_0x2550be;return _0x5a2262['hasRole'](_0x145e88('0x178b'))?null:_0x7be651[_0x145e88('0x149f')](_0x145e88('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5a2262['getCurrentUser']()[_0x145e88('0x2168')],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0x154e'),{'url':_0x2550be('0x1a79'),'views':{'content@app':{'templateUrl':_0x531967,'controller':_0x2550be('0x9ff')}},'resolve':{'customDashboards':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x100844(_0x444319,_0x1a6c48){var _0x1908d6=_0x2550be;return _0x1a6c48['hasRole'](_0x1908d6('0x178b'))?_0x444319['resolve'](_0x1908d6('0xe13'),{'fields':_0x1908d6('0x1798'),'sort':_0x1908d6('0xd82'),'limit':0xa,'offset':0x0}):_0x444319[_0x1908d6('0x149f')]('userProfile@getResources',{'id':_0x1a6c48['getCurrentUser']()[_0x1908d6('0x2168')],'section':_0x1908d6('0x1148'),'fields':_0x1908d6('0x1798'),'sort':_0x1908d6('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x46de7d(_0x598b29,_0x4d2644){var _0x228b1f=_0x2550be;return _0x4d2644[_0x228b1f('0x26e8')](_0x228b1f('0x178b'))?null:_0x598b29['resolve'](_0x228b1f('0x567'),{'fields':_0x228b1f('0x1bb0'),'id':_0x4d2644[_0x228b1f('0xacc')]()[_0x228b1f('0x2168')]});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x4d7cef(_0x1eae51,_0x39aaf0){var _0x2be066=_0x2550be;return _0x39aaf0[_0x2be066('0x26e8')](_0x2be066('0x178b'))?null:_0x1eae51[_0x2be066('0x149f')](_0x2be066('0x89e'),{'fields':_0x2be066('0xe6a'),'userProfileId':_0x39aaf0['getCurrentUser']()['userProfileId'],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')]('app.tools.customDashboards.edit',{'url':_0x2550be('0xad'),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x59bc42,'controller':_0x2550be('0x794')}},'resolve':{'customDashboard':[_0x2550be('0x1d16'),_0x2550be('0x703'),function _0x4a2770(_0x225876,_0x4264e1){var _0x5dd3a0=_0x2550be;return _0x225876[_0x5dd3a0('0x149f')](_0x5dd3a0('0xe13'),{'fields':_0x5dd3a0('0x1798'),'id':_0x4264e1['id']});}],'userProfileSection':[_0x2550be('0x1d16'),'Auth',function _0x410bb7(_0x380fef,_0x255f64){var _0x3dac6f=_0x2550be;return _0x380fef['resolve'](_0x3dac6f('0x89e'),{'fields':_0x3dac6f('0xe6a'),'userProfileId':_0x255f64['getCurrentUser']()[_0x3dac6f('0x2168')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':'tools'})['state'](_0x2550be('0x14d'),{'url':_0x2550be('0x1e8d'),'views':{'content@app':{'templateUrl':_0x1aca63,'controller':'IntervalsController\x20as\x20vm'}},'resolve':{'intervals':['apiResolver',_0x2550be('0x1dfd'),function _0x2ab903(_0x608646,_0x21dcf2){var _0x40b17d=_0x2550be;return _0x21dcf2[_0x40b17d('0x26e8')]('admin')?_0x608646[_0x40b17d('0x149f')](_0x40b17d('0x2489'),{'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','IntervalId':_0x40b17d('0x1ed9'),'limit':0xa,'offset':0x0}):_0x608646[_0x40b17d('0x149f')]('userProfile@getResources',{'id':_0x21dcf2[_0x40b17d('0xacc')]()['userProfileId'],'section':_0x40b17d('0xb1b'),'fields':_0x40b17d('0x1798'),'sort':_0x40b17d('0xd82'),'IntervalId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x45e386(_0x1b03d5,_0x1cb952){var _0x1084a5=_0x2550be;return _0x1cb952['hasRole'](_0x1084a5('0x178b'))?null:_0x1b03d5[_0x1084a5('0x149f')](_0x1084a5('0x567'),{'fields':_0x1084a5('0x1bb0'),'id':_0x1cb952[_0x1084a5('0xacc')]()[_0x1084a5('0x2168')]});}],'userProfileSection':['apiResolver',_0x2550be('0x1dfd'),function _0x55c391(_0x2b5ab5,_0x412c5b){var _0x2b7393=_0x2550be;return _0x412c5b[_0x2b7393('0x26e8')]('admin')?null:_0x2b5ab5['resolve'](_0x2b7393('0x89e'),{'fields':_0x2b7393('0xe6a'),'userProfileId':_0x412c5b['getCurrentUser']()[_0x2b7393('0x2168')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0x11fc'),{'url':_0x2550be('0xad'),'params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1b78eb,'controller':_0x2550be('0x3d8')}},'resolve':{'interval':[_0x2550be('0x1d16'),'$stateParams',function _0x20aee9(_0x60cae1,_0x51220d){var _0x80e363=_0x2550be;return _0x60cae1[_0x80e363('0x149f')](_0x80e363('0x2489'),{'fields':_0x80e363('0x1798'),'id':_0x51220d['id']});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x4439ef(_0x285577,_0x219c13){var _0x4038bd=_0x2550be;return _0x285577[_0x4038bd('0x149f')](_0x4038bd('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x219c13[_0x4038bd('0xacc')]()[_0x4038bd('0x2168')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0x8ff'),{'url':_0x2550be('0x136b'),'views':{'content@app':{'templateUrl':_0x462e0b,'controller':'PausesController\x20as\x20vm'}},'resolve':{'pauses':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x4eea28(_0x25f303,_0x3364cd){var _0x3734ba=_0x2550be;return _0x3364cd[_0x3734ba('0x26e8')]('admin')?_0x25f303[_0x3734ba('0x149f')]('pause@get',{'fields':_0x3734ba('0x1798'),'sort':_0x3734ba('0xd82'),'limit':0xa,'offset':0x0}):_0x25f303[_0x3734ba('0x149f')]('userProfile@getResources',{'id':_0x3364cd[_0x3734ba('0xacc')]()['userProfileId'],'section':_0x3734ba('0x1bbe'),'fields':_0x3734ba('0x1798'),'sort':_0x3734ba('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2550be('0x1dfd'),function _0x365a58(_0x62749b,_0x4b52cb){var _0x4564f9=_0x2550be;return _0x4b52cb[_0x4564f9('0x26e8')](_0x4564f9('0x178b'))?null:_0x62749b[_0x4564f9('0x149f')](_0x4564f9('0x567'),{'fields':_0x4564f9('0x1bb0'),'id':_0x4b52cb[_0x4564f9('0xacc')]()[_0x4564f9('0x2168')]});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x33ef05(_0x52abe5,_0x369999){var _0x5564a0=_0x2550be;return _0x369999[_0x5564a0('0x26e8')]('admin')?null:_0x52abe5[_0x5564a0('0x149f')](_0x5564a0('0x89e'),{'fields':_0x5564a0('0xe6a'),'userProfileId':_0x369999[_0x5564a0('0xacc')]()[_0x5564a0('0x2168')],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x2550be('0x111e')})['state'](_0x2550be('0x1675'),{'url':_0x2550be('0xdf'),'views':{'content@app':{'templateUrl':_0xf64648,'controller':_0x2550be('0x238')}},'resolve':{'schedules':['apiResolver',_0x2550be('0x1dfd'),function _0x574b0a(_0x1eaef5,_0x381f0e){var _0x4f7e88=_0x2550be;return _0x381f0e[_0x4f7e88('0x26e8')]('admin')?_0x1eaef5[_0x4f7e88('0x149f')](_0x4f7e88('0xa72'),{'fields':_0x4f7e88('0xf22'),'sort':_0x4f7e88('0xd82'),'limit':0xa,'offset':0x0}):_0x1eaef5['resolve']('userProfile@getResources',{'id':_0x381f0e['getCurrentUser']()[_0x4f7e88('0x2168')],'section':_0x4f7e88('0x1a18'),'fields':_0x4f7e88('0xf22'),'sort':_0x4f7e88('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2550be('0x1d16'),'Auth',function _0x7bd91b(_0x592f07,_0x484ca9){var _0x1a865a=_0x2550be;return _0x484ca9[_0x1a865a('0x26e8')](_0x1a865a('0x178b'))?null:_0x592f07[_0x1a865a('0x149f')](_0x1a865a('0x567'),{'fields':_0x1a865a('0x1bb0'),'id':_0x484ca9[_0x1a865a('0xacc')]()[_0x1a865a('0x2168')]});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x25f668(_0x196c86,_0x33ee10){var _0x5f4c55=_0x2550be;return _0x33ee10[_0x5f4c55('0x26e8')](_0x5f4c55('0x178b'))?null:_0x196c86['resolve'](_0x5f4c55('0x89e'),{'fields':_0x5f4c55('0xe6a'),'userProfileId':_0x33ee10[_0x5f4c55('0xacc')]()[_0x5f4c55('0x2168')],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0x225a'),{'url':_0x2550be('0x671'),'views':{'content@app':{'templateUrl':_0x4acde6,'controller':_0x2550be('0x2025')}},'resolve':{'sounds':['apiResolver',_0x2550be('0x1dfd'),function _0xab0f04(_0x29353a,_0x339f99){var _0x270e44=_0x2550be;return _0x339f99[_0x270e44('0x26e8')](_0x270e44('0x178b'))?_0x29353a[_0x270e44('0x149f')](_0x270e44('0x1ea1'),{'fields':_0x270e44('0xb01'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x29353a['resolve']('userProfile@getResources',{'id':_0x339f99[_0x270e44('0xacc')]()[_0x270e44('0x2168')],'section':_0x270e44('0x13da'),'fields':_0x270e44('0xb01'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x352cb2(_0x2a5c48,_0x35cb70){var _0x1a070d=_0x2550be;return _0x35cb70[_0x1a070d('0x26e8')]('admin')?null:_0x2a5c48['resolve'](_0x1a070d('0x567'),{'fields':_0x1a070d('0x1bb0'),'id':_0x35cb70[_0x1a070d('0xacc')]()[_0x1a070d('0x2168')]});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x66b5ef(_0x1fe69d,_0x2c222b){var _0x42c151=_0x2550be;return _0x2c222b[_0x42c151('0x26e8')](_0x42c151('0x178b'))?null:_0x1fe69d[_0x42c151('0x149f')](_0x42c151('0x89e'),{'fields':_0x42c151('0xe6a'),'userProfileId':_0x2c222b[_0x42c151('0xacc')]()[_0x42c151('0x2168')],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0x14e2'),{'url':_0x2550be('0x1106'),'views':{'content@app':{'templateUrl':_0x22b47c,'controller':_0x2550be('0x1e0b')}},'resolve':{'tags':[_0x2550be('0x1d16'),'Auth',function _0x2a1b9a(_0x1a2b1c,_0x5a8902){var _0x4ca16f=_0x2550be;return _0x5a8902[_0x4ca16f('0x26e8')](_0x4ca16f('0x178b'))?_0x1a2b1c[_0x4ca16f('0x149f')]('tag@get',{'fields':_0x4ca16f('0x261d'),'sort':_0x4ca16f('0xd82'),'limit':0xa,'offset':0x0}):_0x1a2b1c[_0x4ca16f('0x149f')]('userProfile@getResources',{'id':_0x5a8902['getCurrentUser']()[_0x4ca16f('0x2168')],'section':_0x4ca16f('0x67f'),'fields':_0x4ca16f('0x261d'),'sort':_0x4ca16f('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x3f8aa9(_0x1a8615,_0x555704){var _0x232518=_0x2550be;return _0x555704[_0x232518('0x26e8')](_0x232518('0x178b'))?null:_0x1a8615[_0x232518('0x149f')](_0x232518('0x567'),{'fields':'id,name,crudPermissions','id':_0x555704[_0x232518('0xacc')]()[_0x232518('0x2168')]});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x156c63(_0x3ba436,_0x123a42){var _0xed7e97=_0x2550be;return _0x123a42[_0xed7e97('0x26e8')](_0xed7e97('0x178b'))?null:_0x3ba436['resolve'](_0xed7e97('0x89e'),{'fields':_0xed7e97('0xe6a'),'userProfileId':_0x123a42[_0xed7e97('0xacc')]()[_0xed7e97('0x2168')],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0x2419'),{'url':'/templates','views':{'content@app':{'templateUrl':_0x56900b,'controller':_0x2550be('0x39f')}},'resolve':{'templates':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x34a03f(_0x357196,_0x35890b){var _0x7c036f=_0x2550be;return _0x35890b[_0x7c036f('0x26e8')]('admin')?_0x357196['resolve']('template@get',{'fields':'createdAt,updatedAt,id,name,html,description','sort':_0x7c036f('0xd82'),'limit':0xa,'offset':0x0}):_0x357196['resolve'](_0x7c036f('0x49a'),{'id':_0x35890b['getCurrentUser']()['userProfileId'],'section':_0x7c036f('0x2e6'),'fields':_0x7c036f('0x9bd'),'sort':_0x7c036f('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2550be('0x1dfd'),function _0x4589b8(_0x24ede1,_0x1adbc8){var _0x22d24e=_0x2550be;return _0x1adbc8['hasRole'](_0x22d24e('0x178b'))?null:_0x24ede1['resolve'](_0x22d24e('0x567'),{'fields':'id,name,crudPermissions','id':_0x1adbc8[_0x22d24e('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x12e80d(_0x1da899,_0x359ba7){var _0x48085b=_0x2550be;return _0x359ba7['hasRole'](_0x48085b('0x178b'))?null:_0x1da899[_0x48085b('0x149f')](_0x48085b('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x359ba7[_0x48085b('0xacc')]()[_0x48085b('0x2168')],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0xdd9'),{'url':_0x2550be('0x274d'),'views':{'content@app':{'templateUrl':_0x117f48,'controller':'TrunksController\x20as\x20vm'}},'resolve':{'trunks':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x50e252(_0x5656dc,_0x3a7e1b){var _0x1c2555=_0x2550be;return _0x3a7e1b[_0x1c2555('0x26e8')]('admin')?_0x5656dc[_0x1c2555('0x149f')](_0x1c2555('0x17ef'),{'fields':'createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5656dc[_0x1c2555('0x149f')](_0x1c2555('0x49a'),{'id':_0x3a7e1b[_0x1c2555('0xacc')]()[_0x1c2555('0x2168')],'section':_0x1c2555('0x1e84'),'fields':_0x1c2555('0x1a9f'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2550be('0x1d16'),'Auth',function _0x59494d(_0x1ceedc,_0x3c8de0){var _0x53a8bc=_0x2550be;return _0x3c8de0[_0x53a8bc('0x26e8')](_0x53a8bc('0x178b'))?null:_0x1ceedc[_0x53a8bc('0x149f')]('userProfile@get',{'fields':_0x53a8bc('0x1bb0'),'id':_0x3c8de0[_0x53a8bc('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x11770a(_0x527735,_0x545d1b){var _0x9f0c85=_0x2550be;return _0x545d1b[_0x9f0c85('0x26e8')](_0x9f0c85('0x178b'))?null:_0x527735[_0x9f0c85('0x149f')](_0x9f0c85('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x545d1b[_0x9f0c85('0xacc')]()[_0x9f0c85('0x2168')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0x15b'),{'url':_0x2550be('0xad'),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x23e891,'controller':'TrunkController\x20as\x20vm'}},'resolve':{'trunk':[_0x2550be('0x1d16'),'$stateParams',function _0x4d4e57(_0x30be56,_0x2488af){var _0x202dc4=_0x2550be;return _0x30be56[_0x202dc4('0x149f')](_0x202dc4('0x17ef'),{'fields':_0x202dc4('0x1a9f'),'id':_0x2488af['id']});}],'userProfileSection':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x5c03dc(_0x77916e,_0x45d2a8){var _0x3eaa49=_0x2550be;return _0x77916e[_0x3eaa49('0x149f')](_0x3eaa49('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x45d2a8['getCurrentUser']()[_0x3eaa49('0x2168')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x2550be('0x111e')})[_0x2550be('0xb46')](_0x2550be('0x2532'),{'url':_0x2550be('0x26b2'),'views':{'content@app':{'templateUrl':_0x1eb6ee,'controller':'VariablesController\x20as\x20vm'}},'resolve':{'variables':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0x1403ec(_0x1fdb51,_0x24b6fa){var _0x4d2aa8=_0x2550be;return _0x24b6fa[_0x4d2aa8('0x26e8')](_0x4d2aa8('0x178b'))?_0x1fdb51[_0x4d2aa8('0x149f')](_0x4d2aa8('0x163c'),{'fields':_0x4d2aa8('0x1798'),'sort':_0x4d2aa8('0xd82'),'limit':0xa,'offset':0x0}):_0x1fdb51[_0x4d2aa8('0x149f')](_0x4d2aa8('0x49a'),{'id':_0x24b6fa['getCurrentUser']()[_0x4d2aa8('0x2168')],'section':_0x4d2aa8('0x4db'),'fields':_0x4d2aa8('0x1798'),'sort':_0x4d2aa8('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2550be('0x1d16'),_0x2550be('0x1dfd'),function _0xa325b4(_0x3e27ee,_0xb344dd){var _0x52de66=_0x2550be;return _0xb344dd[_0x52de66('0x26e8')](_0x52de66('0x178b'))?null:_0x3e27ee[_0x52de66('0x149f')](_0x52de66('0x567'),{'fields':_0x52de66('0x1bb0'),'id':_0xb344dd[_0x52de66('0xacc')]()[_0x52de66('0x2168')]});}],'userProfileSection':['apiResolver',_0x2550be('0x1dfd'),function _0x12e6fa(_0x1c8758,_0x18ca03){var _0x28bf02=_0x2550be;return _0x18ca03[_0x28bf02('0x26e8')](_0x28bf02('0x178b'))?null:_0x1c8758[_0x28bf02('0x149f')](_0x28bf02('0x89e'),{'fields':_0x28bf02('0xe6a'),'userProfileId':_0x18ca03[_0x28bf02('0xacc')]()['userProfileId'],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0x2550be('0x111e')}),_0x5b4e4e[_0x2550be('0x1de5')](_0x2550be('0x252'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0xb67'),['ngCsv',_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),'ngAria',_0x1a8446('0x110'),_0x1a8446('0xd2d'),'mwFormBuilder',_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),'chart.js',_0x1a8446('0x775'),_0x1a8446('0x194f'),_0x1a8446('0x8a0')])['config'](_0x316fa2)[_0x1a8446('0x780')](_0x1a8446('0x9a3'),_0x5f4d38)[_0x1a8446('0x780')]('CreateOrEditCannedAnswerDialogController',_0x5db9e4)[_0x1a8446('0x780')](_0x1a8446('0xc6d'),_0x296839)[_0x1a8446('0x780')]('CustomDashboardsController',_0xfa4a2)[_0x1a8446('0x780')](_0x1a8446('0x67'),_0x42443a)['controller'](_0x1a8446('0x13e4'),_0x4d22f9)[_0x1a8446('0x780')](_0x1a8446('0x1ab'),_0x10c01f)['controller'](_0x1a8446('0x1f3f'),_0x22df7a)[_0x1a8446('0x780')]('CreateOrEditIntervalDialogController',_0x597560)[_0x1a8446('0x780')](_0x1a8446('0x12db'),_0x3e5893)[_0x1a8446('0x780')]('IntervalIntervalsController',_0x173385)[_0x1a8446('0x780')]('IntervalController',_0x2afee6)[_0x1a8446('0x780')](_0x1a8446('0x22b6'),_0x42d1ac)[_0x1a8446('0x780')](_0x1a8446('0x2558'),_0x30166e)['controller'](_0x1a8446('0x730'),_0x51dcdc)[_0x1a8446('0x780')](_0x1a8446('0x17bf'),_0x21cae0)[_0x1a8446('0x780')]('SchedulesController',_0x1d05ba)[_0x1a8446('0x780')](_0x1a8446('0x988'),_0x1326a5)[_0x1a8446('0x780')]('SoundsController',_0x222b32)[_0x1a8446('0x780')](_0x1a8446('0x1169'),_0xd4fb42)['controller']('CreateOrEditTagDialogController',_0x59b0ce)[_0x1a8446('0x780')]('TagsController',_0x3a9576)['controller'](_0x1a8446('0x26fa'),_0xeba532)[_0x1a8446('0x780')](_0x1a8446('0x1c18'),_0x54fe25)[_0x1a8446('0x780')](_0x1a8446('0x21af'),_0x26c2e6)[_0x1a8446('0x780')](_0x1a8446('0xaa'),_0x19affb)[_0x1a8446('0x780')](_0x1a8446('0x113d'),_0x265f04)['controller'](_0x1a8446('0x40d'),_0x2260bb)[_0x1a8446('0x780')](_0x1a8446('0x17aa'),_0x45a0eb)['controller'](_0x1a8446('0x15ff'),_0x6026a7);const _0x429788=_0x4fb511['p']+'src/js/modules/main/apps/callysquare/views/projects/projects.html/projects-[chunkhash].html',_0x4cc464=_0x4fb511['p']+_0x1a8446('0x1d38');_0xa0a11f[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x27bf'),'$state','$q',_0x1a8446('0x1dfd'),'toasty','projects',_0x1a8446('0x24b9'),_0x1a8446('0x157'),_0x1a8446('0x174c'),_0x1a8446('0xada')];function _0xa0a11f(_0x1682ed,_0x4409ca,_0x32ac76,_0x2f2e2a,_0x420512,_0x4ca219,_0x178e78,_0x57322a,_0x5eae7a,_0x4cae76,_0x2a7578){var _0x35dbe3=_0x1a8446,_0x12eae1=this;_0x12eae1['errors']=[],_0x12eae1[_0x35dbe3('0x110a')]=_0x35dbe3('0x26e4'),_0x12eae1[_0x35dbe3('0xada')]=_0x2a7578,_0x12eae1['project']=angular[_0x35dbe3('0x20a')](_0x57322a),_0x12eae1['newWindow']=!![],_0x12eae1['projects']=_0x178e78,_0x12eae1[_0x35dbe3('0x16d3')]=![],_0x12eae1[_0x35dbe3('0x174c')]=_0x4cae76;!_0x12eae1[_0x35dbe3('0x24b9')]&&(_0x12eae1[_0x35dbe3('0x24b9')]={'name':'','description':''},_0x12eae1['title']=_0x35dbe3('0x1c2f'),_0x12eae1['newProject']=!![]);_0x12eae1[_0x35dbe3('0xc8d')]=_0x4a2790,_0x12eae1[_0x35dbe3('0x113a')]=_0x2469c4,_0x12eae1[_0x35dbe3('0xcc3')]=_0x4a382b,_0x12eae1[_0x35dbe3('0x2023')]=_0x132190;function _0x4a2790(){var _0xe4d168=_0x35dbe3;_0x12eae1['errors']=[],_0x5eae7a[_0xe4d168('0x37b')][_0xe4d168('0x242b')](_0x12eae1['project'])[_0xe4d168('0x1dc2')][_0xe4d168('0xaa5')](function(_0x3801ef){var _0x2b435d=_0xe4d168;return _0x5eae7a[_0x2b435d('0x272b')][_0x2b435d('0x1b3')]({'id':_0x420512['getCurrentUser']()['id'],'ids':[_0x3801ef['id']]})[_0x2b435d('0x1dc2')],_0x3801ef;})[_0xe4d168('0xaa5')](function(_0x21bf28){var _0x3fbcdd=_0xe4d168;_0x12eae1['projects'][_0x3fbcdd('0x6ee')](_0x21bf28),_0x4ca219[_0x3fbcdd('0xe10')]({'title':_0x3fbcdd('0x1ed8'),'msg':_0x12eae1[_0x3fbcdd('0x24b9')][_0x3fbcdd('0x25d6')]?_0x12eae1[_0x3fbcdd('0x24b9')][_0x3fbcdd('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x132190(_0x21bf28),_0x12eae1[_0x3fbcdd('0x174c')]&&(_0x12eae1[_0x3fbcdd('0xe0c')]?_0x4409ca[_0x3fbcdd('0xb4')](_0x3fbcdd('0x1132')+_0x21bf28['id'],_0x3fbcdd('0xf4e')):_0x32ac76['go'](_0x3fbcdd('0x1584'),{'id':_0x21bf28['id']}));})[_0xe4d168('0x253d')](function(_0x56a8ee){var _0x2774e1=_0xe4d168;if(_0x56a8ee[_0x2774e1('0x10fd')]&&_0x56a8ee['data'][_0x2774e1('0x4c6')]&&_0x56a8ee[_0x2774e1('0x10fd')][_0x2774e1('0x4c6')][_0x2774e1('0x2587')]){_0x12eae1['errors']=_0x56a8ee[_0x2774e1('0x10fd')][_0x2774e1('0x4c6')]||[{'message':_0x56a8ee[_0x2774e1('0x684')](),'type':'api.squareProject.save'}];for(var _0x4f0fd9=0x0;_0x4f0fd9<_0x56a8ee[_0x2774e1('0x10fd')][_0x2774e1('0x4c6')][_0x2774e1('0x2587')];_0x4f0fd9++){_0x4ca219[_0x2774e1('0x187f')]({'title':_0x56a8ee[_0x2774e1('0x10fd')]['errors'][_0x4f0fd9]['type'],'msg':_0x56a8ee[_0x2774e1('0x10fd')][_0x2774e1('0x4c6')][_0x4f0fd9]['message']});}}else _0x4ca219[_0x2774e1('0x187f')]({'title':_0x56a8ee[_0x2774e1('0x2fa')]?'API:'+_0x56a8ee[_0x2774e1('0x2fa')]+'\x20-\x20'+_0x56a8ee[_0x2774e1('0x24df')]:_0x2774e1('0xb9'),'msg':_0x56a8ee[_0x2774e1('0x10fd')]?JSON[_0x2774e1('0xa48')](_0x56a8ee[_0x2774e1('0x10fd')]['message']):_0x56a8ee['toString']()});});}function _0x2469c4(){var _0x142515=_0x35dbe3;_0x12eae1['errors']=[],_0x5eae7a['squareProject'][_0x142515('0x264e')]({'id':_0x12eae1[_0x142515('0x24b9')]['id']},_0x12eae1[_0x142515('0x24b9')])[_0x142515('0x1dc2')][_0x142515('0xaa5')](function(_0x358988){var _0x164526=_0x142515,_0x34bebb=_0x51538b()[_0x164526('0xe9e')](_0x12eae1[_0x164526('0x8d1')],{'id':_0x358988['id']});_0x34bebb&&_0x51538b()[_0x164526('0x283c')](_0x34bebb,_0x358988),_0x4ca219[_0x164526('0xe10')]({'title':'Project\x20properly\x20saved!','msg':_0x12eae1[_0x164526('0x24b9')][_0x164526('0x25d6')]?_0x12eae1['project'][_0x164526('0x25d6')]+_0x164526('0x20bf'):''}),_0x132190(_0x358988);})[_0x142515('0x253d')](function(_0xf40646){var _0x1dcd06=_0x142515;if(_0xf40646[_0x1dcd06('0x10fd')]&&_0xf40646[_0x1dcd06('0x10fd')][_0x1dcd06('0x4c6')]&&_0xf40646[_0x1dcd06('0x10fd')][_0x1dcd06('0x4c6')][_0x1dcd06('0x2587')]){_0x12eae1['errors']=_0xf40646['data'][_0x1dcd06('0x4c6')]||[{'message':_0xf40646[_0x1dcd06('0x684')](),'type':_0x1dcd06('0x7b9')}];for(var _0x56d0c3=0x0;_0x56d0c3<_0xf40646[_0x1dcd06('0x10fd')][_0x1dcd06('0x4c6')]['length'];_0x56d0c3++){_0x4ca219[_0x1dcd06('0x187f')]({'title':_0xf40646[_0x1dcd06('0x10fd')]['errors'][_0x56d0c3]['type'],'msg':_0xf40646[_0x1dcd06('0x10fd')]['errors'][_0x56d0c3][_0x1dcd06('0x1402')]});}}else _0x4ca219[_0x1dcd06('0x187f')]({'title':_0xf40646[_0x1dcd06('0x2fa')]?'API:'+_0xf40646[_0x1dcd06('0x2fa')]+_0x1dcd06('0x169e')+_0xf40646[_0x1dcd06('0x24df')]:_0x1dcd06('0x7b9'),'msg':_0xf40646[_0x1dcd06('0x10fd')]?JSON['stringify'](_0xf40646[_0x1dcd06('0x10fd')][_0x1dcd06('0x1402')]):_0xf40646[_0x1dcd06('0x684')]()});});}function _0x4a382b(){var _0x1a473c=_0x35dbe3;_0x12eae1[_0x1a473c('0x4c6')]=[];var _0x32bd64=_0x1682ed[_0x1a473c('0x281e')]()[_0x1a473c('0x110a')](_0x1a473c('0x12a3'))[_0x1a473c('0x15af')](_0x1a473c('0x1b5a'))[_0x1a473c('0x5b5')](_0x1a473c('0x1222'))['ok'](_0x1a473c('0x1e76'))[_0x1a473c('0x2030')]('Cancel')[_0x1a473c('0x116d')](event);_0x1682ed[_0x1a473c('0x1e6d')](_0x32bd64)['then'](function(){var _0x5fbb37=_0x1a473c;_0x5eae7a['squareProject']['delete']({'id':_0x12eae1[_0x5fbb37('0x24b9')]['id']})[_0x5fbb37('0x1dc2')][_0x5fbb37('0xaa5')](function(){var _0x45ac15=_0x5fbb37;return _0x5eae7a['squareProject'][_0x45ac15('0x282f')]({'id':_0x12eae1['project']['id']})[_0x45ac15('0x1dc2')];})[_0x5fbb37('0xaa5')](function(_0x54d930){var _0x45b4b2=_0x5fbb37,_0x190fe9=[],_0x4aa7ed=_0x54d930[_0x45b4b2('0x580')];for(var _0x4249f4=0x0;_0x4249f4<_0x4aa7ed[_0x45b4b2('0x2587')];_0x4249f4++){_0x190fe9[_0x45b4b2('0x1599')](_0x5eae7a[_0x45b4b2('0x272b')][_0x45b4b2('0x883')]({'id':_0x420512[_0x45b4b2('0xacc')]()['id'],'ids':[_0x12eae1['project']['id']]})['$promise']);}return _0x2f2e2a['all'](_0x190fe9);})[_0x5fbb37('0xaa5')](function(){var _0x2d1802=_0x5fbb37;_0x51538b()[_0x2d1802('0xf6d')](_0x12eae1['projects'],{'id':_0x12eae1[_0x2d1802('0x24b9')]['id']}),_0x4ca219[_0x2d1802('0xe10')]({'title':_0x2d1802('0x1d2c'),'msg':_0x12eae1[_0x2d1802('0x24b9')][_0x2d1802('0x25d6')]?_0x12eae1[_0x2d1802('0x24b9')]['name']+_0x2d1802('0xcd9'):''}),_0x132190(_0x12eae1['project']);})[_0x5fbb37('0x253d')](function(_0x4a3949){var _0x25c308=_0x5fbb37;console[_0x25c308('0x187f')](_0x4a3949),_0x12eae1[_0x25c308('0x4c6')]=_0x4a3949[_0x25c308('0x10fd')][_0x25c308('0x4c6')]||[{'message':_0x4a3949[_0x25c308('0x684')](),'type':_0x25c308('0x540')}];});},function(){});}function _0x132190(_0x434e8a){_0x1682ed['hide'](_0x434e8a);}}const _0x41a9e8=_0xa0a11f;_0x4594fb[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'ispeechAsrModel',_0x1a8446('0x7e1'),'googleAsrLanguage','ispeechTtsLanguage',_0x1a8446('0x26bd'),_0x1a8446('0x6d0'),_0x1a8446('0x2204'),'trunks',_0x1a8446('0x4d7'),'sounds','variables',_0x1a8446('0x2078'),_0x1a8446('0x8d1'),_0x1a8446('0xdc5'),_0x1a8446('0x2568'),_0x1a8446('0x172d'),_0x1a8446('0x900'),_0x1a8446('0x1126'),_0x1a8446('0x20db'),_0x1a8446('0x264b'),_0x1a8446('0x101d'),_0x1a8446('0x1672'),_0x1a8446('0x18a1'),_0x1a8446('0x2457'),'dialogFlowLanguage',_0x1a8446('0x2325'),'Auth',_0x1a8446('0xada')];function _0x4594fb(_0x379368,_0x29bbcd,_0x187771,_0xd337f,_0x4afc8a,_0xfac93b,_0x18c985,_0xbb044b,_0x5ac1b7,_0x1f284c,_0xa4a2d8,_0x39e2b6,_0x4338c2,_0x1ac00e,_0x1a4477,_0xea5bb5,_0x14dfb8,_0x5e41e8,_0x16cb61,_0x3ca59a,_0x33f0c8,_0x51506c,_0xbc1ed,_0x371768,_0x1a41c5,_0x34b5ad,_0x47f224,_0xa1d3bf,_0x12c5b0,_0x2c2d59,_0x5b01c7){var _0x4ed52b=_0x1a8446,_0x1ad842=this,_0x264991={'playback':[_0x4ed52b('0x11ee')],'answer':['timeout'],'menu':[_0x4ed52b('0x11ee'),_0x4ed52b('0x13d1'),_0x4ed52b('0x16d5'),_0x4ed52b('0x1b55')],'getdigits':[_0x4ed52b('0x11ee'),_0x4ed52b('0x1e7e'),_0x4ed52b('0x26a'),_0x4ed52b('0xc84'),_0x4ed52b('0x1b55')],'getsecretdigits':['file_id',_0x4ed52b('0x1e7e'),'mindigit',_0x4ed52b('0xc84'),_0x4ed52b('0x21ec'),_0x4ed52b('0x1b55')],'vswitch':['variable_id'],'database':[_0x4ed52b('0x170a'),_0x4ed52b('0x582')],'ext_dial':[_0x4ed52b('0x1081'),_0x4ed52b('0x1a46'),'timeout'],'set':[_0x4ed52b('0x1e7e')],'math':['variable_id'],'gotoc':[_0x4ed52b('0x19cd'),_0x4ed52b('0xc68'),_0x4ed52b('0x13f2')],'system':[_0x4ed52b('0xd7b')],'agi':[_0x4ed52b('0xd7b')],'gotoif':[_0x4ed52b('0xe77')],'saydigits':['digits'],'saynumber':[_0x4ed52b('0x219a')],'sayphonetic':['text'],'record':[_0x4ed52b('0x1945'),_0x4ed52b('0x23c0')],'goal':['goalname'],'dial':[_0x4ed52b('0x1dd7'),_0x4ed52b('0x23c0')],'queue':[_0x4ed52b('0x2697'),_0x4ed52b('0x23c0')],'callback':[_0x4ed52b('0x1055'),_0x4ed52b('0x25d6'),_0x4ed52b('0x1a46'),_0x4ed52b('0x6c3')],'gotoiftime':[_0x4ed52b('0x305')],'voicemail':['mailbox'],'subproject':[_0x4ed52b('0x736')],'sendSMS':['sms_account_id','to','sms_text'],'sendMail':[_0x4ed52b('0x34f'),'to'],'sendFax':['account_id','to',_0x4ed52b('0x21aa')],'google_cloud_tts':[_0x4ed52b('0x655'),_0x4ed52b('0x2020'),_0x4ed52b('0xb37')],'tts':[_0x4ed52b('0xb37')],'ispeechtts':[_0x4ed52b('0xb37'),'key',_0x4ed52b('0x181e')],'ispeechasr':[_0x4ed52b('0x24ec'),_0x4ed52b('0x23c0')],'custom_app':[_0x4ed52b('0xe45')],'googleasr':[_0x4ed52b('0x24ec'),_0x4ed52b('0x23c0')],'awspolly':[_0x4ed52b('0x87f'),'aws_secret_access_key',_0x4ed52b('0xb37'),_0x4ed52b('0x186d')],'lumenvoxtts':[_0x4ed52b('0xb37')],'sestektts':[_0x4ed52b('0xb37')],'lumenvoxasr':[_0x4ed52b('0xade')],'sestekasr':[_0x4ed52b('0xade')],'tildeasr':[_0x4ed52b('0x22f'),'appsecret','uri'],'login':['findBy'],'pause':[_0x4ed52b('0xe7a'),_0x4ed52b('0x9e5')],'unpause':[_0x4ed52b('0xe7a')],'logout':[_0x4ed52b('0xe7a')],'dialogflow':[_0x4ed52b('0x24ec'),_0x4ed52b('0xb37'),_0x4ed52b('0x994')],'awslex':[_0x4ed52b('0x87f'),_0x4ed52b('0x17b8'),_0x4ed52b('0x2162'),_0x4ed52b('0x68a'),_0x4ed52b('0xb37')],'sesteknda':[_0x4ed52b('0xb37'),'ndauth_url',_0x4ed52b('0x270a'),'password','ndassistant_url'],'restapi':[_0x4ed52b('0x2242'),'method'],'mrcpsynth':['text'],'mrcprecog':['grammar']},_0x504e1c={'queue':[_0x4ed52b('0x11ee')],'database':[_0x4ed52b('0x1e7e')],'pause':['pause_id']},_0x3084d7={'sendMail':['to','cc','bcc'],'voicemail':[_0x4ed52b('0x11cb')]};_0x1ad842['cellName']=_0x51506c[_0x4ed52b('0x15e6')],_0x1ad842[_0x4ed52b('0x1218')]=_0x51538b()[_0x4ed52b('0x1246')](_0x51506c[_0x4ed52b('0x1218')],function(_0x9211a9){var _0x1fc4e8=_0x4ed52b;return{'name':_0x9211a9[_0x1fc4e8('0x25d6')],'value':_0x9211a9[_0x1fc4e8('0x12f4')],'defaultValue':_0x504e1c[_0x1ad842[_0x1fc4e8('0x121f')]]&&_0x51538b()[_0x1fc4e8('0x13d6')](_0x504e1c[_0x1ad842[_0x1fc4e8('0x121f')]],_0x9211a9[_0x1fc4e8('0x25d6')]),'required':_0x264991[_0x1ad842[_0x1fc4e8('0x121f')]]&&_0x51538b()[_0x1fc4e8('0x13d6')](_0x264991[_0x1ad842[_0x1fc4e8('0x121f')]],_0x9211a9['name']),'help':_0x3084d7[_0x1ad842[_0x1fc4e8('0x121f')]]&&_0x51538b()['includes'](_0x3084d7[_0x1ad842['cellName']],_0x9211a9[_0x1fc4e8('0x25d6')])};}),_0x1ad842[_0x4ed52b('0x3c5')]={'authMethod':[{'value':'noauth','option':_0x4ed52b('0x2e4')},{'value':_0x4ed52b('0x65f'),'option':'HMAC'}],'answer':[{'value':_0x4ed52b('0x98d'),'option':_0x4ed52b('0x1b84')},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':_0x4ed52b('0x1b84')},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0x4ed52b('0x1402'),'option':_0x4ed52b('0x4d8')},{'value':_0x4ed52b('0x2105'),'option':_0x4ed52b('0x12fa')},{'value':_0x4ed52b('0xe21'),'option':_0x4ed52b('0x1a7f')},{'value':_0x4ed52b('0x122c'),'option':_0x4ed52b('0x743')}],'hiddendigitspos':[{'value':'first','option':_0x4ed52b('0x9a')},{'value':_0x4ed52b('0x23f4'),'option':_0x4ed52b('0xaca')}],'recordingFormat':[{'value':_0x4ed52b('0x2715'),'option':_0x4ed52b('0x25f8')},{'value':_0x4ed52b('0x2172'),'option':_0x4ed52b('0x1518')}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':_0x4ed52b('0x25cc'),'option':'Yes'},{'value':_0x4ed52b('0x569'),'option':'No'}],'model':_0xd337f,'ispeech_asr_language':_0x4afc8a,'ispeech_tts_language':_0x18c985,'languageCode':_0xbb044b,'ssmlGender':[{'value':'FEMALE','option':'Female'},{'value':_0x4ed52b('0x200a'),'option':'Male'}],'google_tts_language':_0x5ac1b7,'google_asr_language':_0xfac93b,'google_cloud_tts_text_type':[{'value':'text','option':_0x4ed52b('0x1f3a')},{'value':_0x4ed52b('0x3de'),'option':_0x4ed52b('0x776')}],'aws_polly_region':_0x1a41c5,'aws_polly_voice':_0x371768,'aws_text_type':[{'value':_0x4ed52b('0xb37'),'option':'Text'},{'value':_0x4ed52b('0x3de'),'option':_0x4ed52b('0x776')}],'callback_priority':[{'option':_0x4ed52b('0x1a3'),'value':0x4},{'option':'High','value':0x3},{'option':_0x4ed52b('0x1950'),'value':0x2},{'option':_0x4ed52b('0x23c4'),'value':0x1},{'option':_0x4ed52b('0x1be6'),'value':0x0}],'findBy':[{'value':_0x4ed52b('0x1b0d'),'option':_0x4ed52b('0x195')},{'value':_0x4ed52b('0x1a46'),'option':'Phone'},{'value':_0x4ed52b('0x1125'),'option':_0x4ed52b('0xeec')}],'dialogflow_language':_0xa1d3bf,'aws_lex_region':_0x12c5b0,'method':[{'value':'GET','option':_0x4ed52b('0x1050')},{'value':_0x4ed52b('0x1b1b'),'option':_0x4ed52b('0x1b1b')},{'value':_0x4ed52b('0x2243'),'option':_0x4ed52b('0x2243')},{'value':_0x4ed52b('0x413'),'option':_0x4ed52b('0x413')}]},_0x1ad842[_0x4ed52b('0xada')]=_0x5b01c7,_0x1ad842[_0x4ed52b('0x2318')]=_0xca1f2,_0x1ad842[_0x4ed52b('0x2023')]=_0x3164ff,_0x1ad842[_0x4ed52b('0x18eb')]=_0x1815e2;function _0xca1f2(){var _0x2bb907=_0x4ed52b;_0x2c2d59[_0x2bb907('0x26e8')](_0x2bb907('0x178b'))?_0x5a1caf():_0xf972e3();}function _0x1815e2(_0xf95114,_0x106a6b,_0x5dad11,_0x3a5ea6){var _0x5c4ea3=_0x4ed52b;return _0x51538b()[_0x5c4ea3('0x1246')](_0xf95114,function(_0x20cfaa){var _0x2e67a3=_0x5c4ea3;return{'value':_0x20cfaa[_0x106a6b],'option':_0x20cfaa[_0x5dad11],'group':_0x3a5ea6?_0x20cfaa[_0x3a5ea6]:undefined,'canSelect':typeof _0x20cfaa[_0x2e67a3('0x12eb')]!==_0x2e67a3('0x1574')?_0x20cfaa['canSelect']:!![]};});}function _0x437b4e(_0x3cf11b,_0x18bf1e,_0x25ea87,_0x4d2ca9){var _0x15ba52=_0x4ed52b,_0x4a6043=_0x51538b()[_0x15ba52('0xdb7')](_0x3cf11b,function(_0x4ea8d6){return _0x4ea8d6[_0x4d2ca9]===null;}),_0x183a06=[];return _0x51538b()['forEach'](_0x4a6043,function(_0x5280bf){var _0x2258a2=_0x15ba52;_0x183a06['push']({'value':_0x5280bf[_0x18bf1e],'option':_0x5280bf[_0x25ea87]});var _0x2d3394=_0x51538b()[_0x2258a2('0xdb7')](_0x3cf11b,function(_0x33b429){return _0x33b429[_0x4d2ca9]===_0x5280bf['id'];});_0x51538b()['forEach'](_0x2d3394,function(_0x3ddd19){var _0xb36866=_0x2258a2;_0x183a06[_0xb36866('0x1599')]({'value':_0x3ddd19[_0x18bf1e],'option':_0xb36866('0x169e')+_0x3ddd19[_0x25ea87]});});}),_0x183a06;}function _0x5a1caf(){var _0x3549ef=_0x4ed52b,_0x94036b={'sip_id':_0x1815e2(_0x1f284c,'id','fullname',_0x3549ef('0x924')),'trunk_name':_0x1815e2(_0xa4a2d8,_0x3549ef('0x25d6'),_0x3549ef('0x25d6')),'trunk_id':_0x1815e2(_0xa4a2d8,'id',_0x3549ef('0x25d6')),'queue_id':_0x1815e2(_0x39e2b6,'id',_0x3549ef('0x25d6')),'file_id':_0x1815e2(_0x4338c2,'id','name'),'variable_id':_0x1815e2(_0x1ac00e,'id',_0x3549ef('0x25d6')),'odbc_id':_0x1815e2(_0x1a4477,'id',_0x3549ef('0x25d6')),'project_id':_0x1815e2(_0xea5bb5,'id',_0x3549ef('0x25d6')),'context':_0x1815e2(_0x14dfb8,'id',_0x3549ef('0x25d6')),'interval_id':_0x437b4e(_0x5e41e8,'id','name',_0x3549ef('0x1f8c')),'account_id':_0x1815e2(_0x16cb61,'id',_0x3549ef('0x25d6')),'template_id':_0x1815e2(_0x3ca59a,'id',_0x3549ef('0x25d6')),'list_id':_0x1815e2(_0x33f0c8,'id','name'),'sms_account_id':_0x1815e2(_0x34b5ad,'id',_0x3549ef('0x25d6')),'pause_id':_0x1815e2(_0x47f224,'id',_0x3549ef('0x25d6'))},_0x395639=_0x51538b()[_0x3549ef('0x283c')](_0x1ad842[_0x3549ef('0x3c5')],_0x94036b);_0x1ad842['values']=_0x395639;}function _0xf972e3(){var _0x10b5c5=_0x4ed52b,_0x15f646=[_0x10b5c5('0x1dd7'),_0x10b5c5('0x1081'),_0x10b5c5('0x119c'),_0x10b5c5('0x2697'),_0x10b5c5('0x11ee'),_0x10b5c5('0x1e7e'),_0x10b5c5('0x170a'),_0x10b5c5('0x736'),_0x10b5c5('0x19cd'),'interval_id','account_id',_0x10b5c5('0x1953'),'list_id',_0x10b5c5('0xb5'),_0x10b5c5('0x9e5')];for(var _0x55cdae=0x0;_0x55cdae<_0x1ad842[_0x10b5c5('0x1218')][_0x10b5c5('0x2587')];_0x55cdae++){if(_0x51538b()[_0x10b5c5('0x13d6')](_0x15f646,_0x1ad842['attributes'][_0x55cdae][_0x10b5c5('0x25d6')]))switch(_0x1ad842['attributes'][_0x55cdae][_0x10b5c5('0x25d6')]){case _0x10b5c5('0x1dd7'):_0x39127d();break;case'trunk_name':_0x24a814();break;case'trunk_id':_0x516b60();break;case'queue_id':_0x2d187f();break;case _0x10b5c5('0x11ee'):_0x2d6847();break;case'variable_id':_0x4c6eeb();break;case _0x10b5c5('0x170a'):_0x501843();break;case _0x10b5c5('0x736'):_0x4912f2();break;case'context':_0x204772();break;case _0x10b5c5('0x305'):_0xe219dd();break;case _0x10b5c5('0x34f'):_0x5e4544();break;case _0x10b5c5('0x1953'):_0x5b358a();break;case _0x10b5c5('0x1055'):_0x3d3b75();break;case _0x10b5c5('0xb5'):_0x1094fe();break;case _0x10b5c5('0x9e5'):_0x423dfa();break;}}}function _0x39127d(){var _0x187a50=_0x4ed52b,_0x55d3b6=Number(_0x51538b()[_0x187a50('0xe9e')](_0x1ad842[_0x187a50('0x1218')],{'name':_0x187a50('0x1dd7')})[_0x187a50('0x12f4')]),_0x1805b5=_0x51538b()[_0x187a50('0x2c2')](_0x1f284c,{'id':_0x55d3b6});if(!_0x1805b5&&_0x55d3b6>0x0)return _0x29bbcd[_0x187a50('0x272b')][_0x187a50('0x2122')]({'id':_0x55d3b6,'fields':_0x187a50('0x27d2')})[_0x187a50('0x1dc2')][_0x187a50('0xaa5')](function(_0x15cdf8){var _0x12dc01=_0x187a50,_0x5d3b1f=_0x15cdf8[_0x12dc01('0x256a')]();_0x5d3b1f[_0x12dc01('0x12eb')]=![],_0x1f284c[_0x12dc01('0x1599')](_0x5d3b1f),_0x1ad842[_0x12dc01('0x3c5')][_0x12dc01('0x1dd7')]=_0x1815e2(_0x1f284c,'id',_0x12dc01('0x18e5'),_0x12dc01('0x924'));})[_0x187a50('0x253d')](function(_0x134336){var _0x14b590=_0x187a50;_0x187771['error']({'title':_0x134336[_0x14b590('0x2fa')]?_0x14b590('0x16c2')+_0x134336[_0x14b590('0x2fa')]+'\x20-\x20'+_0x134336['statusText']:'GET_USER','msg':_0x134336[_0x14b590('0x10fd')]?JSON[_0x14b590('0xa48')](_0x134336[_0x14b590('0x10fd')][_0x14b590('0x1402')]):_0x134336[_0x14b590('0x684')]()});});else _0x1ad842[_0x187a50('0x3c5')][_0x187a50('0x1dd7')]=_0x1815e2(_0x1f284c,'id','fullname',_0x187a50('0x924'));}function _0x3d3b75(){var _0x326792=_0x4ed52b,_0x5d46b3=Number(_0x51538b()[_0x326792('0xe9e')](_0x1ad842[_0x326792('0x1218')],{'name':'list_id'})[_0x326792('0x12f4')]),_0x203133=_0x51538b()[_0x326792('0x2c2')](_0x33f0c8,{'id':_0x5d46b3});if(!_0x203133&&_0x5d46b3>0x0)return _0x29bbcd[_0x326792('0x26b4')][_0x326792('0x2122')]({'id':_0x5d46b3,'fields':'id,name'})[_0x326792('0x1dc2')][_0x326792('0xaa5')](function(_0x2b142e){var _0x195d3d=_0x326792,_0x536889=_0x2b142e[_0x195d3d('0x256a')]();_0x536889[_0x195d3d('0x12eb')]=![],_0x33f0c8[_0x195d3d('0x1599')](_0x536889),_0x1ad842[_0x195d3d('0x3c5')][_0x195d3d('0x1055')]=_0x1815e2(_0x33f0c8,'id',_0x195d3d('0x25d6'));})['catch'](function(_0x4d395a){var _0x75b05e=_0x326792;_0x187771[_0x75b05e('0x187f')]({'title':_0x4d395a['status']?_0x75b05e('0x16c2')+_0x4d395a[_0x75b05e('0x2fa')]+_0x75b05e('0x169e')+_0x4d395a[_0x75b05e('0x24df')]:_0x75b05e('0x2383'),'msg':_0x4d395a[_0x75b05e('0x10fd')]?JSON[_0x75b05e('0xa48')](_0x4d395a[_0x75b05e('0x10fd')]['message']):_0x4d395a[_0x75b05e('0x684')]()});});else _0x1ad842['values'][_0x326792('0x1055')]=_0x1815e2(_0x33f0c8,'id',_0x326792('0x25d6'));}function _0x516b60(){var _0xcb3da6=_0x4ed52b,_0x401ed3=Number(_0x51538b()[_0xcb3da6('0xe9e')](_0x1ad842[_0xcb3da6('0x1218')],{'name':_0xcb3da6('0x119c')})[_0xcb3da6('0x12f4')]),_0x2a18a4=_0x51538b()[_0xcb3da6('0x2c2')](_0xa4a2d8,{'id':_0x401ed3});if(!_0x2a18a4&&_0x401ed3>0x0)return _0x29bbcd[_0xcb3da6('0x1651')][_0xcb3da6('0x2122')]({'id':_0x401ed3,'fields':'id,name'})[_0xcb3da6('0x1dc2')][_0xcb3da6('0xaa5')](function(_0x2fa6cf){var _0x3df51b=_0xcb3da6,_0x3ca928=_0x2fa6cf[_0x3df51b('0x256a')]();_0x3ca928[_0x3df51b('0x12eb')]=![],_0xa4a2d8[_0x3df51b('0x1599')](_0x3ca928),_0x1ad842[_0x3df51b('0x3c5')][_0x3df51b('0x119c')]=_0x1815e2(_0xa4a2d8,'id',_0x3df51b('0x25d6'));})['catch'](function(_0x51f43d){var _0x5e0fdd=_0xcb3da6;_0x187771[_0x5e0fdd('0x187f')]({'title':_0x51f43d[_0x5e0fdd('0x2fa')]?_0x5e0fdd('0x16c2')+_0x51f43d['status']+_0x5e0fdd('0x169e')+_0x51f43d['statusText']:_0x5e0fdd('0x13e0'),'msg':_0x51f43d['data']?JSON['stringify'](_0x51f43d['data'][_0x5e0fdd('0x1402')]):_0x51f43d[_0x5e0fdd('0x684')]()});});else _0x1ad842['values']['trunk_id']=_0x1815e2(_0xa4a2d8,'id',_0xcb3da6('0x25d6'));}function _0x24a814(){var _0x57aaf9=_0x4ed52b,_0x11900a=_0x51538b()[_0x57aaf9('0xe9e')](_0x1ad842[_0x57aaf9('0x1218')],{'name':_0x57aaf9('0x1081')})[_0x57aaf9('0x12f4')],_0x16c22d=_0x51538b()['some'](_0xa4a2d8,{'name':_0x11900a});if(!_0x16c22d&&_0x11900a)return _0x29bbcd[_0x57aaf9('0x1651')][_0x57aaf9('0x2122')]({'name':_0x11900a,'fields':_0x57aaf9('0x17fe')})['$promise'][_0x57aaf9('0xaa5')](function(_0x49340e){var _0x5530c0=_0x57aaf9;if(_0x49340e[_0x5530c0('0xd15')]>0x0&&_0x49340e['rows'][_0x5530c0('0x2587')]>0x0){var _0x33363f=_0x49340e['rows'][0x0];_0x33363f[_0x5530c0('0x12eb')]=![],_0xa4a2d8[_0x5530c0('0x1599')](_0x33363f),_0x1ad842[_0x5530c0('0x3c5')][_0x5530c0('0x1081')]=_0x1815e2(_0xa4a2d8,_0x5530c0('0x25d6'),_0x5530c0('0x25d6'));}})[_0x57aaf9('0x253d')](function(_0x1e8e5f){var _0x24bbbf=_0x57aaf9;_0x187771[_0x24bbbf('0x187f')]({'title':_0x1e8e5f['status']?_0x24bbbf('0x16c2')+_0x1e8e5f[_0x24bbbf('0x2fa')]+'\x20-\x20'+_0x1e8e5f['statusText']:_0x24bbbf('0x13e0'),'msg':_0x1e8e5f[_0x24bbbf('0x10fd')]?JSON[_0x24bbbf('0xa48')](_0x1e8e5f['data'][_0x24bbbf('0x1402')]):_0x1e8e5f[_0x24bbbf('0x684')]()});});else _0x1ad842[_0x57aaf9('0x3c5')][_0x57aaf9('0x1081')]=_0x1815e2(_0xa4a2d8,'name',_0x57aaf9('0x25d6'));}function _0x2d187f(){var _0x1af8cd=_0x4ed52b,_0x5cd9d6=Number(_0x51538b()['find'](_0x1ad842[_0x1af8cd('0x1218')],{'name':'queue_id'})['value']),_0x308345=_0x51538b()[_0x1af8cd('0x2c2')](_0x39e2b6,{'id':_0x5cd9d6});if(!_0x308345&&_0x5cd9d6>0x0)return _0x29bbcd[_0x1af8cd('0x1588')][_0x1af8cd('0x2122')]({'id':_0x5cd9d6,'fields':_0x1af8cd('0x17fe')})[_0x1af8cd('0x1dc2')][_0x1af8cd('0xaa5')](function(_0x45bc4a){var _0x1b9a22=_0x1af8cd,_0x35fa71=_0x45bc4a[_0x1b9a22('0x256a')]();_0x35fa71[_0x1b9a22('0x12eb')]=![],_0x39e2b6['push'](_0x35fa71),_0x1ad842[_0x1b9a22('0x3c5')][_0x1b9a22('0x2697')]=_0x1815e2(_0x39e2b6,'id',_0x1b9a22('0x25d6'));})[_0x1af8cd('0x253d')](function(_0x267182){var _0x47b1a1=_0x1af8cd;_0x187771[_0x47b1a1('0x187f')]({'title':_0x267182[_0x47b1a1('0x2fa')]?_0x47b1a1('0x16c2')+_0x267182[_0x47b1a1('0x2fa')]+'\x20-\x20'+_0x267182['statusText']:'GET_QUEUE','msg':_0x267182[_0x47b1a1('0x10fd')]?JSON[_0x47b1a1('0xa48')](_0x267182[_0x47b1a1('0x10fd')]['message']):_0x267182[_0x47b1a1('0x684')]()});});else _0x1ad842['values'][_0x1af8cd('0x2697')]=_0x1815e2(_0x39e2b6,'id',_0x1af8cd('0x25d6'));}function _0x2d6847(){var _0x2915c5=_0x4ed52b,_0x5dbc5b=Number(_0x51538b()['find'](_0x1ad842[_0x2915c5('0x1218')],{'name':'file_id'})[_0x2915c5('0x12f4')]),_0x1cd98b=_0x51538b()['some'](_0x4338c2,{'id':_0x5dbc5b});if(!_0x1cd98b&&_0x5dbc5b>0x0)return _0x29bbcd[_0x2915c5('0x7d6')][_0x2915c5('0x2122')]({'id':_0x5dbc5b,'fields':_0x2915c5('0x17fe')})['$promise']['then'](function(_0x5b0ee4){var _0x82cece=_0x2915c5,_0x40fa5d=_0x5b0ee4[_0x82cece('0x256a')]();_0x40fa5d[_0x82cece('0x12eb')]=![],_0x4338c2[_0x82cece('0x1599')](_0x40fa5d),_0x1ad842[_0x82cece('0x3c5')][_0x82cece('0x11ee')]=_0x1815e2(_0x4338c2,'id','name');})[_0x2915c5('0x253d')](function(_0x3b1374){var _0x2d8579=_0x2915c5;_0x187771['error']({'title':_0x3b1374['status']?_0x2d8579('0x16c2')+_0x3b1374[_0x2d8579('0x2fa')]+_0x2d8579('0x169e')+_0x3b1374['statusText']:_0x2d8579('0x4cf'),'msg':_0x3b1374['data']?JSON[_0x2d8579('0xa48')](_0x3b1374[_0x2d8579('0x10fd')][_0x2d8579('0x1402')]):_0x3b1374['toString']()});});else _0x1ad842['values'][_0x2915c5('0x11ee')]=_0x1815e2(_0x4338c2,'id',_0x2915c5('0x25d6'));}function _0x4c6eeb(){var _0x15657b=_0x4ed52b,_0x521a7f=Number(_0x51538b()['find'](_0x1ad842[_0x15657b('0x1218')],{'name':'variable_id'})[_0x15657b('0x12f4')]),_0x496d08=_0x51538b()[_0x15657b('0x2c2')](_0x1ac00e,{'id':_0x521a7f});if(!_0x496d08&&_0x521a7f>0x0)return _0x29bbcd[_0x15657b('0x14e7')][_0x15657b('0x2122')]({'id':_0x521a7f,'fields':_0x15657b('0x17fe')})['$promise'][_0x15657b('0xaa5')](function(_0x22d31f){var _0x5f23d3=_0x15657b,_0x43532b=_0x22d31f['toJSON']();_0x43532b[_0x5f23d3('0x12eb')]=![],_0x1ac00e[_0x5f23d3('0x1599')](_0x43532b),_0x1ad842[_0x5f23d3('0x3c5')][_0x5f23d3('0x1e7e')]=_0x1815e2(_0x1ac00e,'id',_0x5f23d3('0x25d6'));})['catch'](function(_0x244216){var _0x15792d=_0x15657b;_0x187771[_0x15792d('0x187f')]({'title':_0x244216[_0x15792d('0x2fa')]?_0x15792d('0x16c2')+_0x244216[_0x15792d('0x2fa')]+'\x20-\x20'+_0x244216[_0x15792d('0x24df')]:_0x15792d('0x1777'),'msg':_0x244216[_0x15792d('0x10fd')]?JSON[_0x15792d('0xa48')](_0x244216[_0x15792d('0x10fd')]['message']):_0x244216[_0x15792d('0x684')]()});});else _0x1ad842[_0x15657b('0x3c5')]['variable_id']=_0x1815e2(_0x1ac00e,'id',_0x15657b('0x25d6'));}function _0x501843(){var _0x1591eb=_0x4ed52b,_0x3b6554=Number(_0x51538b()[_0x1591eb('0xe9e')](_0x1ad842['attributes'],{'name':_0x1591eb('0x170a')})[_0x1591eb('0x12f4')]),_0x3c32dc=_0x51538b()[_0x1591eb('0x2c2')](_0x1a4477,{'id':_0x3b6554});if(!_0x3c32dc&&_0x3b6554>0x0)return _0x29bbcd[_0x1591eb('0x407')][_0x1591eb('0x2122')]({'id':_0x3b6554,'fields':'id,name'})[_0x1591eb('0x1dc2')][_0x1591eb('0xaa5')](function(_0x10f7e7){var _0x245046=_0x1591eb,_0x208257=_0x10f7e7[_0x245046('0x256a')]();_0x208257[_0x245046('0x12eb')]=![],_0x1a4477[_0x245046('0x1599')](_0x208257),_0x1ad842['values'][_0x245046('0x170a')]=_0x1815e2(_0x1a4477,'id','name');})[_0x1591eb('0x253d')](function(_0x517af8){var _0x3db090=_0x1591eb;_0x187771[_0x3db090('0x187f')]({'title':_0x517af8[_0x3db090('0x2fa')]?'API:'+_0x517af8['status']+_0x3db090('0x169e')+_0x517af8[_0x3db090('0x24df')]:_0x3db090('0x5dd'),'msg':_0x517af8[_0x3db090('0x10fd')]?JSON[_0x3db090('0xa48')](_0x517af8[_0x3db090('0x10fd')][_0x3db090('0x1402')]):_0x517af8[_0x3db090('0x684')]()});});else _0x1ad842[_0x1591eb('0x3c5')][_0x1591eb('0x170a')]=_0x1815e2(_0x1a4477,'id','name');}function _0x4912f2(){var _0x35a9a3=_0x4ed52b,_0x2d05ed=Number(_0x51538b()[_0x35a9a3('0xe9e')](_0x1ad842[_0x35a9a3('0x1218')],{'name':'project_id'})[_0x35a9a3('0x12f4')]),_0x1cbe76=_0x51538b()[_0x35a9a3('0x2c2')](_0xea5bb5,{'id':_0x2d05ed});if(!_0x1cbe76&&_0x2d05ed>0x0)return _0x29bbcd['squareProject'][_0x35a9a3('0x2122')]({'id':_0x2d05ed,'fields':'id,name'})['$promise'][_0x35a9a3('0xaa5')](function(_0x398a97){var _0x62cacc=_0x35a9a3,_0x3f6eb2=_0x398a97['toJSON']();_0x3f6eb2[_0x62cacc('0x12eb')]=![],_0xea5bb5[_0x62cacc('0x1599')](_0x3f6eb2),_0x1ad842['values']['project_id']=_0x1815e2(_0xea5bb5,'id','name');})[_0x35a9a3('0x253d')](function(_0x1697e6){var _0x152685=_0x35a9a3;_0x187771[_0x152685('0x187f')]({'title':_0x1697e6[_0x152685('0x2fa')]?_0x152685('0x16c2')+_0x1697e6[_0x152685('0x2fa')]+_0x152685('0x169e')+_0x1697e6[_0x152685('0x24df')]:_0x152685('0x2446'),'msg':_0x1697e6[_0x152685('0x10fd')]?JSON['stringify'](_0x1697e6[_0x152685('0x10fd')][_0x152685('0x1402')]):_0x1697e6[_0x152685('0x684')]()});});else _0x1ad842[_0x35a9a3('0x3c5')][_0x35a9a3('0x736')]=_0x1815e2(_0xea5bb5,'id','name');}function _0x204772(){var _0xbe4748=_0x4ed52b,_0x167455=Number(_0x51538b()[_0xbe4748('0xe9e')](_0x1ad842['attributes'],{'name':_0xbe4748('0x19cd')})['value']),_0x5ecbe5=_0x51538b()['some'](_0x14dfb8,{'id':_0x167455});if(!_0x5ecbe5&&_0x167455>0x0)return _0x29bbcd['voiceContext'][_0xbe4748('0x2122')]({'id':_0x167455,'fields':_0xbe4748('0x17fe')})['$promise'][_0xbe4748('0xaa5')](function(_0x43c9b3){var _0x1038c2=_0xbe4748,_0x392cc9=_0x43c9b3['toJSON']();_0x392cc9['canSelect']=![],_0x14dfb8['push'](_0x392cc9),_0x1ad842[_0x1038c2('0x3c5')]['context']=_0x1815e2(_0x14dfb8,'id','name');})[_0xbe4748('0x253d')](function(_0x17faa4){var _0x3d9f6f=_0xbe4748;_0x187771['error']({'title':_0x17faa4[_0x3d9f6f('0x2fa')]?_0x3d9f6f('0x16c2')+_0x17faa4[_0x3d9f6f('0x2fa')]+'\x20-\x20'+_0x17faa4[_0x3d9f6f('0x24df')]:_0x3d9f6f('0x25de'),'msg':_0x17faa4[_0x3d9f6f('0x10fd')]?JSON['stringify'](_0x17faa4['data'][_0x3d9f6f('0x1402')]):_0x17faa4[_0x3d9f6f('0x684')]()});});else _0x1ad842['values'][_0xbe4748('0x19cd')]=_0x1815e2(_0x14dfb8,'id',_0xbe4748('0x25d6'));}function _0xe219dd(){var _0x5ccaab=_0x4ed52b,_0x1b7406=Number(_0x51538b()['find'](_0x1ad842['attributes'],{'name':_0x5ccaab('0x305')})[_0x5ccaab('0x12f4')]),_0xde3f72=_0x51538b()['some'](_0x5e41e8,{'id':_0x1b7406});if(!_0xde3f72&&_0x1b7406>0x0)return _0x29bbcd['interval'][_0x5ccaab('0x2122')]({'id':_0x1b7406,'fields':_0x5ccaab('0x1d79')})['$promise'][_0x5ccaab('0xaa5')](function(_0x3e3ed3){var _0x2a00d2=_0x5ccaab,_0x4c31f3=_0x3e3ed3[_0x2a00d2('0x256a')]();_0x4c31f3[_0x2a00d2('0x12eb')]=![],_0x5e41e8['push'](_0x4c31f3),_0x1ad842[_0x2a00d2('0x3c5')][_0x2a00d2('0x305')]=_0x1815e2(_0x5e41e8,'id',_0x2a00d2('0x25d6'),_0x2a00d2('0x1f8c'));})['catch'](function(_0x1d78d2){var _0x178fad=_0x5ccaab;_0x187771[_0x178fad('0x187f')]({'title':_0x1d78d2['status']?'API:'+_0x1d78d2[_0x178fad('0x2fa')]+'\x20-\x20'+_0x1d78d2[_0x178fad('0x24df')]:'GET_INTERVAL','msg':_0x1d78d2[_0x178fad('0x10fd')]?JSON['stringify'](_0x1d78d2['data']['message']):_0x1d78d2[_0x178fad('0x684')]()});});else _0x1ad842['values'][_0x5ccaab('0x305')]=_0x1815e2(_0x5e41e8,'id',_0x5ccaab('0x25d6'),_0x5ccaab('0x1f8c'));}function _0x5e4544(){var _0x1ffa80=_0x4ed52b,_0x4accea=Number(_0x51538b()[_0x1ffa80('0xe9e')](_0x1ad842[_0x1ffa80('0x1218')],{'name':_0x1ffa80('0x34f')})['value']),_0x247310=_0x51538b()[_0x1ffa80('0x2c2')](_0x16cb61,{'id':_0x4accea});if(!_0x247310&&_0x4accea>0x0)return _0x29bbcd[_0x1ffa80('0xb86')][_0x1ffa80('0x2122')]({'id':_0x4accea,'fields':_0x1ffa80('0x17fe')})[_0x1ffa80('0x1dc2')]['then'](function(_0xe7a19e){var _0x148c8b=_0x1ffa80,_0x28ebac=_0xe7a19e[_0x148c8b('0x256a')]();_0x28ebac[_0x148c8b('0x12eb')]=![],_0x16cb61[_0x148c8b('0x1599')](_0x28ebac),_0x1ad842[_0x148c8b('0x3c5')][_0x148c8b('0x34f')]=_0x1815e2(_0x16cb61,'id','name');})[_0x1ffa80('0x253d')](function(_0x187344){var _0x12144e=_0x1ffa80;_0x187771['error']({'title':_0x187344[_0x12144e('0x2fa')]?_0x12144e('0x16c2')+_0x187344[_0x12144e('0x2fa')]+_0x12144e('0x169e')+_0x187344[_0x12144e('0x24df')]:_0x12144e('0x8b8'),'msg':_0x187344[_0x12144e('0x10fd')]?JSON['stringify'](_0x187344['data']['message']):_0x187344[_0x12144e('0x684')]()});});else _0x1ad842[_0x1ffa80('0x3c5')][_0x1ffa80('0x34f')]=_0x1815e2(_0x16cb61,'id','name');}function _0x1094fe(){var _0x3b2f4=_0x4ed52b,_0x15dfdd=Number(_0x51538b()[_0x3b2f4('0xe9e')](_0x1ad842[_0x3b2f4('0x1218')],{'name':'sms_account_id'})[_0x3b2f4('0x12f4')]),_0x5c5a56=_0x51538b()['some'](_0x34b5ad,{'id':_0x15dfdd});if(!_0x5c5a56&&_0x15dfdd>0x0)return _0x29bbcd[_0x3b2f4('0x1658')][_0x3b2f4('0x2122')]({'id':_0x15dfdd,'fields':_0x3b2f4('0x17fe')})['$promise'][_0x3b2f4('0xaa5')](function(_0x3388f6){var _0x1a71f3=_0x3b2f4,_0x1918f6=_0x3388f6[_0x1a71f3('0x256a')]();_0x1918f6['canSelect']=![],_0x34b5ad[_0x1a71f3('0x1599')](_0x1918f6),_0x1ad842[_0x1a71f3('0x3c5')]['sms_account_id']=_0x1815e2(_0x34b5ad,'id',_0x1a71f3('0x25d6'));})[_0x3b2f4('0x253d')](function(_0x4e1328){var _0x469513=_0x3b2f4;_0x187771['error']({'title':_0x4e1328['status']?'API:'+_0x4e1328[_0x469513('0x2fa')]+_0x469513('0x169e')+_0x4e1328[_0x469513('0x24df')]:_0x469513('0x2cf'),'msg':_0x4e1328[_0x469513('0x10fd')]?JSON[_0x469513('0xa48')](_0x4e1328[_0x469513('0x10fd')][_0x469513('0x1402')]):_0x4e1328[_0x469513('0x684')]()});});else _0x1ad842['values'][_0x3b2f4('0xb5')]=_0x1815e2(_0x34b5ad,'id',_0x3b2f4('0x25d6'));}function _0x5b358a(){var _0x3661da=_0x4ed52b,_0x3ce95e=Number(_0x51538b()[_0x3661da('0xe9e')](_0x1ad842[_0x3661da('0x1218')],{'name':_0x3661da('0x1953')})[_0x3661da('0x12f4')]),_0x371b11=_0x51538b()[_0x3661da('0x2c2')](_0x3ca59a,{'id':_0x3ce95e});if(!_0x371b11&&_0x3ce95e>0x0)return _0x29bbcd['template']['get']({'id':_0x3ce95e,'fields':'id,name'})[_0x3661da('0x1dc2')][_0x3661da('0xaa5')](function(_0x19ecd2){var _0x59a71b=_0x3661da,_0x588fd1=_0x19ecd2[_0x59a71b('0x256a')]();_0x588fd1[_0x59a71b('0x12eb')]=![],_0x3ca59a[_0x59a71b('0x1599')](_0x588fd1),_0x1ad842[_0x59a71b('0x3c5')][_0x59a71b('0x1953')]=_0x1815e2(_0x3ca59a,'id',_0x59a71b('0x25d6'));})[_0x3661da('0x253d')](function(_0x70bdaf){var _0x14d1a9=_0x3661da;_0x187771[_0x14d1a9('0x187f')]({'title':_0x70bdaf[_0x14d1a9('0x2fa')]?_0x14d1a9('0x16c2')+_0x70bdaf[_0x14d1a9('0x2fa')]+_0x14d1a9('0x169e')+_0x70bdaf[_0x14d1a9('0x24df')]:_0x14d1a9('0x213e'),'msg':_0x70bdaf['data']?JSON[_0x14d1a9('0xa48')](_0x70bdaf[_0x14d1a9('0x10fd')]['message']):_0x70bdaf[_0x14d1a9('0x684')]()});});else _0x1ad842['values'][_0x3661da('0x1953')]=_0x1815e2(_0x3ca59a,'id',_0x3661da('0x25d6'));}function _0x423dfa(){var _0x278d1f=_0x4ed52b,_0x36b053=Number(_0x51538b()['find'](_0x1ad842['attributes'],{'name':_0x278d1f('0x9e5')})[_0x278d1f('0x12f4')]),_0x5ea12e=_0x51538b()[_0x278d1f('0x2c2')](_0x47f224,{'id':_0x36b053});if(!_0x5ea12e&&_0x36b053>0x0)return _0x29bbcd[_0x278d1f('0x167c')]['get']({'id':_0x36b053,'fields':_0x278d1f('0x17fe')})[_0x278d1f('0x1dc2')][_0x278d1f('0xaa5')](function(_0xe08c58){var _0x56e917=_0x278d1f,_0x5ecd9f=_0xe08c58['toJSON']();_0x5ecd9f[_0x56e917('0x12eb')]=![],_0x47f224['push'](_0x5ecd9f),_0x1ad842[_0x56e917('0x3c5')][_0x56e917('0x9e5')]=_0x1815e2(_0x47f224,'id',_0x56e917('0x25d6'));})[_0x278d1f('0x253d')](function(_0x4c5f62){var _0x13cd02=_0x278d1f;_0x187771['error']({'title':_0x4c5f62[_0x13cd02('0x2fa')]?_0x13cd02('0x16c2')+_0x4c5f62[_0x13cd02('0x2fa')]+'\x20-\x20'+_0x4c5f62['statusText']:_0x13cd02('0x233e'),'msg':_0x4c5f62[_0x13cd02('0x10fd')]?JSON[_0x13cd02('0xa48')](_0x4c5f62[_0x13cd02('0x10fd')][_0x13cd02('0x1402')]):_0x4c5f62[_0x13cd02('0x684')]()});});else _0x1ad842[_0x278d1f('0x3c5')][_0x278d1f('0x9e5')]=_0x1815e2(_0x47f224,'id',_0x278d1f('0x25d6'));}function _0x3164ff(_0x1804df){var _0x22577e=_0x4ed52b;_0x1804df&&_0xbc1ed(_0x1ad842[_0x22577e('0x1218')]),_0x379368[_0x22577e('0x1120')]();}}const _0x3ad62d=_0x4594fb;function _0x469203(){var _0x3592a6=_0x1a8446;return{'require':_0x3592a6('0x26c3'),'link':function _0x45e063(_0x59dc0d,_0x56a425,_0x4ede6f,_0x406099){var _0x4f52b6=_0x3592a6;_0x406099['$parsers']['push'](function(_0x2b845c){return''+_0x2b845c;}),_0x406099['$formatters'][_0x4f52b6('0x1599')](function(_0x5adbb){return parseFloat(_0x5adbb);});}};}const _0x39fbdd=_0x469203;function _0x49bf00(){var _0x3a2679=_0x1a8446;return[{'value':'da','option':'Danish'},{'value':'en','option':'English'},{'value':'de','option':_0x3a2679('0x6ab')},{'value':'it','option':_0x3a2679('0x1c42')},{'value':'es','option':_0x3a2679('0x13bd')},{'value':'fr','option':_0x3a2679('0x701')},{'value':'id','option':'Indonesian'},{'value':'ja','option':_0x3a2679('0x75')},{'value':'ko','option':'Korean\x20(South\x20Korea)'},{'value':'nl','option':'Dutch'},{'value':'no','option':'Norwegian'},{'value':'pt','option':'Portuguese\x20(European)'},{'value':_0x3a2679('0x995'),'option':_0x3a2679('0xf74')},{'value':'ru','option':_0x3a2679('0x16cb')},{'value':'sv','option':_0x3a2679('0x18b')},{'value':'th','option':_0x3a2679('0x1b87')},{'value':'uk','option':_0x3a2679('0x172b')},{'value':_0x3a2679('0xad3'),'option':_0x3a2679('0x1e51')},{'value':_0x3a2679('0x1184'),'option':_0x3a2679('0xeb8')},{'value':_0x3a2679('0x1fe3'),'option':_0x3a2679('0x44f')}];}function _0x2702cc(){var _0x3c3f18=_0x1a8446;return[{'value':_0x3c3f18('0x3b7'),'option':_0x3c3f18('0x1857')},{'value':'cs-CZ','option':_0x3c3f18('0x275')},{'value':_0x3c3f18('0x2689'),'option':_0x3c3f18('0xcef')},{'value':'de-DE','option':_0x3c3f18('0x15e1')},{'value':_0x3c3f18('0x1649'),'option':'Greek\x20(Greece)'},{'value':_0x3c3f18('0x1bab'),'option':_0x3c3f18('0x80a')},{'value':'en-IN','option':_0x3c3f18('0xf14')},{'value':'en-GB','option':_0x3c3f18('0x1af4')},{'value':_0x3c3f18('0x1ea2'),'option':_0x3c3f18('0x1012')},{'value':'fi-FI','option':_0x3c3f18('0x1381')},{'value':'fil-PH','option':_0x3c3f18('0x148')},{'value':_0x3c3f18('0x2335'),'option':'French\x20(Canada)'},{'value':'fr-FR','option':_0x3c3f18('0x7f9')},{'value':_0x3c3f18('0xd77'),'option':_0x3c3f18('0x1d54')},{'value':_0x3c3f18('0x12c9'),'option':_0x3c3f18('0x1220')},{'value':'id-ID','option':'Indonesian\x20(Indonesia)'},{'value':_0x3c3f18('0xa11'),'option':'Italian\x20(Italy)'},{'value':'ja-JP','option':_0x3c3f18('0x27af')},{'value':_0x3c3f18('0x1b4c'),'option':_0x3c3f18('0x260d')},{'value':_0x3c3f18('0x519'),'option':_0x3c3f18('0xce1')},{'value':_0x3c3f18('0x178a'),'option':_0x3c3f18('0x76e')},{'value':'pl-PL','option':_0x3c3f18('0x914')},{'value':'pt-BR','option':'Portuguese\x20(Brazil)'},{'value':_0x3c3f18('0xb70'),'option':_0x3c3f18('0x27')},{'value':_0x3c3f18('0x1cbf'),'option':_0x3c3f18('0xc9c')},{'value':'sk-SK','option':_0x3c3f18('0x217f')},{'value':_0x3c3f18('0x2735'),'option':'Spanish\x20(Spain)'},{'value':_0x3c3f18('0x17f0'),'option':_0x3c3f18('0x1ee5')},{'value':'tr-TR','option':_0x3c3f18('0x2dd')},{'value':_0x3c3f18('0x1b23'),'option':_0x3c3f18('0xd68')},{'value':_0x3c3f18('0x11ce'),'option':'Vietnamese\x20(Vietnam)'}];}function _0x35748f(){var _0xb61a41=_0x1a8446;return[{'value':'af','option':_0xb61a41('0x4d1')},{'value':'sq','option':'Albanian'},{'value':'am','option':_0xb61a41('0x20e4')},{'value':'ar','option':_0xb61a41('0x1857')},{'value':'hy','option':_0xb61a41('0x1e28')},{'value':'az','option':_0xb61a41('0x27ec')},{'value':'eu','option':_0xb61a41('0x1b8')},{'value':'be','option':_0xb61a41('0x1e40')},{'value':'bn','option':_0xb61a41('0xeab')},{'value':'bh','option':'Bihari'},{'value':'bs','option':_0xb61a41('0x266d')},{'value':'br','option':_0xb61a41('0x21f5')},{'value':'bg','option':_0xb61a41('0x27c7')},{'value':'km','option':'Cambodian'},{'value':'ca','option':_0xb61a41('0xb25')},{'value':_0xb61a41('0xad3'),'option':_0xb61a41('0x1e51')},{'value':_0xb61a41('0x1fe3'),'option':'Chinese\x20(Traditional)'},{'value':'co','option':_0xb61a41('0xdb2')},{'value':'hr','option':_0xb61a41('0x1456')},{'value':'cs','option':_0xb61a41('0x1cbe')},{'value':'da','option':_0xb61a41('0xc2b')},{'value':'nl','option':_0xb61a41('0x18c5')},{'value':'en','option':_0xb61a41('0x195a')},{'value':'eo','option':_0xb61a41('0x96b')},{'value':'et','option':_0xb61a41('0x127c')},{'value':'fo','option':_0xb61a41('0xcbf')},{'value':'tl','option':_0xb61a41('0x19d4')},{'value':'fi','option':_0xb61a41('0x5e8')},{'value':'fr','option':_0xb61a41('0x701')},{'value':'fy','option':_0xb61a41('0x1ae')},{'value':'gl','option':_0xb61a41('0x2775')},{'value':'ka','option':_0xb61a41('0x1cf4')},{'value':'de','option':_0xb61a41('0x6ab')},{'value':'el','option':_0xb61a41('0x1bce')},{'value':'gn','option':_0xb61a41('0x66a')},{'value':'gu','option':_0xb61a41('0x1a87')},{'value':'xx-hacker','option':_0xb61a41('0xad1')},{'value':'ha','option':_0xb61a41('0x8a6')},{'value':'iw','option':_0xb61a41('0x1279')},{'value':'hi','option':'Hindi'},{'value':'hu','option':_0xb61a41('0x2494')},{'value':'is','option':_0xb61a41('0x25ec')},{'value':'id','option':_0xb61a41('0x89b')},{'value':'ia','option':_0xb61a41('0xd74')},{'value':'ga','option':_0xb61a41('0x12ac')},{'value':'it','option':_0xb61a41('0x1c42')},{'value':'jw','option':_0xb61a41('0xc67')},{'value':'ja','option':_0xb61a41('0x75')},{'value':'kn','option':_0xb61a41('0x1f91')},{'value':'kk','option':'Kazakh'},{'value':'rw','option':'Kinyarwanda'},{'value':'rn','option':_0xb61a41('0x1f5f')},{'value':_0xb61a41('0x1821'),'option':'Klingon'},{'value':'ku','option':'Kurdish'},{'value':'ko','option':_0xb61a41('0x14da')},{'value':'ky','option':_0xb61a41('0x1c4b')},{'value':'lo','option':_0xb61a41('0x1aa9')},{'value':'la','option':_0xb61a41('0x9c9')},{'value':'lv','option':'Latvian'},{'value':'ln','option':_0xb61a41('0x1ba5')},{'value':'lt','option':_0xb61a41('0x785')},{'value':'mk','option':_0xb61a41('0x513')},{'value':'mg','option':_0xb61a41('0x1b4d')},{'value':'ml','option':'Malayalam'},{'value':'mt','option':_0xb61a41('0x2679')},{'value':'mi','option':_0xb61a41('0x69c')},{'value':'mr','option':_0xb61a41('0x93b')},{'value':'mo','option':_0xb61a41('0x1ebf')},{'value':'mn','option':_0xb61a41('0x179')},{'value':_0xb61a41('0x1410'),'option':_0xb61a41('0x295')},{'value':'ne','option':_0xb61a41('0x6a1')},{'value':'no','option':_0xb61a41('0x2006')},{'value':'nn','option':'Norwegian\x20(Nynorsk)'},{'value':'oc','option':_0xb61a41('0xe63')},{'value':'or','option':_0xb61a41('0x1234')},{'value':'om','option':'Oromo'},{'value':'ps','option':_0xb61a41('0x1cb5')},{'value':'fa','option':_0xb61a41('0xe16')},{'value':'xx-pirate','option':_0xb61a41('0x1fd5')},{'value':'pl','option':'Polish'},{'value':_0xb61a41('0x17ca'),'option':'Portuguese\x20(Brazil)'},{'value':_0xb61a41('0xb70'),'option':'Portuguese\x20(Portugal)'},{'value':'pa','option':'Punjabi'},{'value':'qu','option':'Quechua'},{'value':'ro','option':_0xb61a41('0x963')},{'value':'rm','option':_0xb61a41('0xaa6')},{'value':'ru','option':_0xb61a41('0x16cb')},{'value':'gd','option':_0xb61a41('0x123e')},{'value':'sr','option':_0xb61a41('0x7c8')},{'value':'sh','option':_0xb61a41('0x1a06')},{'value':'st','option':'Sesotho'},{'value':'sn','option':_0xb61a41('0x79')},{'value':'sd','option':_0xb61a41('0x190c')},{'value':'si','option':_0xb61a41('0x26f0')},{'value':'sk','option':_0xb61a41('0x26ec')},{'value':'sl','option':'Slovenian'},{'value':'so','option':_0xb61a41('0x42c')},{'value':'es','option':_0xb61a41('0x13bd')},{'value':'su','option':_0xb61a41('0x24d0')},{'value':'sw','option':_0xb61a41('0xac1')},{'value':'sv','option':_0xb61a41('0x18b')},{'value':'tg','option':'Tajik'},{'value':'ta','option':_0xb61a41('0x27fe')},{'value':'tt','option':_0xb61a41('0x9ea')},{'value':'te','option':_0xb61a41('0x223')},{'value':'th','option':_0xb61a41('0x1b87')},{'value':'ti','option':_0xb61a41('0x2843')},{'value':'to','option':_0xb61a41('0x16dd')},{'value':'tr','option':'Turkish'},{'value':'tk','option':_0xb61a41('0x20a8')},{'value':'tw','option':_0xb61a41('0x128')},{'value':'ug','option':_0xb61a41('0x22f1')},{'value':'uk','option':_0xb61a41('0x172b')},{'value':'ur','option':_0xb61a41('0x1be7')},{'value':'uz','option':'Uzbek'},{'value':'vi','option':'Vietnamese'},{'value':'cy','option':'Welsh'},{'value':'xh','option':_0xb61a41('0x159c')},{'value':'yi','option':_0xb61a41('0x206a')},{'value':'yo','option':_0xb61a41('0xb66')},{'value':'zu','option':_0xb61a41('0xaaf')}];}function _0x53514f(){var _0x5173db=_0x1a8446;return[{'value':_0x5173db('0x1324'),'option':_0x5173db('0x252b')},{'value':_0x5173db('0x1fcc'),'option':_0x5173db('0x1f4e')},{'value':'hy-AM','option':'Armenian\x20(Armenia)'},{'value':'az-AZ','option':'Azerbaijani\x20(Azerbaijan)'},{'value':_0x5173db('0x103b'),'option':'Indonesian\x20(Indonesia)'},{'value':_0x5173db('0x275d'),'option':_0x5173db('0x1532')},{'value':_0x5173db('0x2348'),'option':_0x5173db('0xc9')},{'value':_0x5173db('0x8fe'),'option':_0x5173db('0x23f5')},{'value':_0x5173db('0x208d'),'option':_0x5173db('0x8dd')},{'value':_0x5173db('0xed2'),'option':_0x5173db('0x275')},{'value':_0x5173db('0x2689'),'option':_0x5173db('0xcef')},{'value':_0x5173db('0x1e3c'),'option':_0x5173db('0x10c8')},{'value':_0x5173db('0x1bab'),'option':_0x5173db('0x9d0')},{'value':'en-CA','option':_0x5173db('0x1fb1')},{'value':_0x5173db('0x2696'),'option':'English\x20(Ghana)'},{'value':_0x5173db('0x182e'),'option':_0x5173db('0x3aa')},{'value':_0x5173db('0x15fc'),'option':_0x5173db('0xf14')},{'value':_0x5173db('0x1310'),'option':_0x5173db('0x53a')},{'value':_0x5173db('0x26cd'),'option':_0x5173db('0x1128')},{'value':_0x5173db('0x176d'),'option':'English\x20(New\x20Zealand)'},{'value':'en-NG','option':'English\x20(Nigeria)'},{'value':_0x5173db('0x1451'),'option':'English\x20(Philippines)'},{'value':_0x5173db('0xc55'),'option':_0x5173db('0xd60')},{'value':_0x5173db('0x219d'),'option':_0x5173db('0x752')},{'value':_0x5173db('0x1ea2'),'option':_0x5173db('0x2205')},{'value':_0x5173db('0x271a'),'option':_0x5173db('0xb11')},{'value':_0x5173db('0x1598'),'option':'Spanish\x20(Bolivia)'},{'value':_0x5173db('0x1668'),'option':_0x5173db('0x309')},{'value':_0x5173db('0x14d0'),'option':_0x5173db('0x1251')},{'value':_0x5173db('0x1964'),'option':_0x5173db('0x2048')},{'value':_0x5173db('0x5fa'),'option':'Spanish\x20(Ecuador)'},{'value':'es-SV','option':_0x5173db('0x2798')},{'value':_0x5173db('0x2735'),'option':'Spanish\x20(Spain)'},{'value':_0x5173db('0x198'),'option':_0x5173db('0xdfb')},{'value':_0x5173db('0x482'),'option':_0x5173db('0x2a5')},{'value':_0x5173db('0x1dbd'),'option':'Spanish\x20(Honduras)'},{'value':_0x5173db('0x1f1'),'option':_0x5173db('0x9a8')},{'value':_0x5173db('0x21a2'),'option':_0x5173db('0x363')},{'value':_0x5173db('0x1f7f'),'option':_0x5173db('0x8f4')},{'value':_0x5173db('0xd7c'),'option':'Spanish\x20(Paraguay)'},{'value':_0x5173db('0x21c8'),'option':_0x5173db('0x1e3f')},{'value':_0x5173db('0x84a'),'option':_0x5173db('0x378')},{'value':'es-DO','option':_0x5173db('0x97b')},{'value':_0x5173db('0x2118'),'option':_0x5173db('0x1e57')},{'value':'es-VE','option':_0x5173db('0x1c3d')},{'value':_0x5173db('0xf7b'),'option':_0x5173db('0x488')},{'value':'fil-PH','option':'Filipino\x20(Philippines)'},{'value':'fr-CA','option':_0x5173db('0x1ae6')},{'value':_0x5173db('0x1c2e'),'option':_0x5173db('0x7f9')},{'value':_0x5173db('0x187e'),'option':_0x5173db('0x27e5')},{'value':'ka-GE','option':_0x5173db('0xac2')},{'value':_0x5173db('0x25bb'),'option':_0x5173db('0x139c')},{'value':_0x5173db('0x115e'),'option':_0x5173db('0x147a')},{'value':_0x5173db('0x406'),'option':_0x5173db('0x2014')},{'value':_0x5173db('0x825'),'option':_0x5173db('0xf8b')},{'value':'it-IT','option':'Italian\x20(Italy)'},{'value':_0x5173db('0x1be1'),'option':_0x5173db('0xca1')},{'value':_0x5173db('0x219b'),'option':_0x5173db('0x1e92')},{'value':_0x5173db('0xa5b'),'option':_0x5173db('0x1d32')},{'value':_0x5173db('0x25fa'),'option':_0x5173db('0x14b1')},{'value':_0x5173db('0x17d3'),'option':'Latvian\x20(Latvia)'},{'value':_0x5173db('0x9a9'),'option':'Lithuanian\x20(Lithuania)'},{'value':_0x5173db('0x12c9'),'option':_0x5173db('0x1220')},{'value':_0x5173db('0x1321'),'option':_0x5173db('0xc2d')},{'value':_0x5173db('0xca3'),'option':_0x5173db('0x2778')},{'value':_0x5173db('0x24c3'),'option':'Dutch\x20(Netherlands)'},{'value':_0x5173db('0xdf4'),'option':'Nepali\x20(Nepal)'},{'value':'nb-NO','option':'Norwegian\x20Bokmal\x20(Norway)'},{'value':_0x5173db('0x4f4'),'option':_0x5173db('0x914')},{'value':'pt-BR','option':_0x5173db('0x2411')},{'value':_0x5173db('0xb70'),'option':'Portuguese\x20(Portugal)'},{'value':_0x5173db('0x99f'),'option':_0x5173db('0x36')},{'value':_0x5173db('0x2232'),'option':_0x5173db('0x203f')},{'value':'sk-SK','option':_0x5173db('0x217f')},{'value':_0x5173db('0x17e3'),'option':_0x5173db('0x22c')},{'value':_0x5173db('0xa4a'),'option':_0x5173db('0x41d')},{'value':'sw-TZ','option':_0x5173db('0x203b')},{'value':_0x5173db('0x2461'),'option':'Swahili\x20(Kenya)'},{'value':_0x5173db('0x1b99'),'option':_0x5173db('0x1381')},{'value':_0x5173db('0x17f0'),'option':_0x5173db('0x1ee5')},{'value':_0x5173db('0x99d'),'option':_0x5173db('0x528')},{'value':_0x5173db('0xee6'),'option':_0x5173db('0x112c')},{'value':_0x5173db('0x51f'),'option':_0x5173db('0x1728')},{'value':_0x5173db('0xf49'),'option':_0x5173db('0x1745')},{'value':'te-IN','option':_0x5173db('0xafc')},{'value':_0x5173db('0x11ce'),'option':_0x5173db('0x7c0')},{'value':_0x5173db('0x1f34'),'option':_0x5173db('0x2dd')},{'value':_0x5173db('0x9c4'),'option':_0x5173db('0x1e37')},{'value':'ur-IN','option':_0x5173db('0x2612')},{'value':_0x5173db('0x1649'),'option':_0x5173db('0x8d5')},{'value':_0x5173db('0x79a'),'option':_0x5173db('0x239d')},{'value':_0x5173db('0x1cbf'),'option':_0x5173db('0xc9c')},{'value':_0x5173db('0x1907'),'option':_0x5173db('0x6cb')},{'value':_0x5173db('0x1b23'),'option':_0x5173db('0xd68')},{'value':_0x5173db('0xc3a'),'option':_0x5173db('0x1240')},{'value':_0x5173db('0x1795'),'option':_0x5173db('0x1d0d')},{'value':_0x5173db('0x826'),'option':_0x5173db('0x19e2')},{'value':_0x5173db('0x17fb'),'option':_0x5173db('0xc80')},{'value':_0x5173db('0x1188'),'option':'Arabic\x20(Bahrain)'},{'value':_0x5173db('0x677'),'option':_0x5173db('0x10e6')},{'value':_0x5173db('0x1269'),'option':_0x5173db('0x1d00')},{'value':_0x5173db('0x22b5'),'option':_0x5173db('0x157b')},{'value':'ar-KW','option':_0x5173db('0x10f0')},{'value':_0x5173db('0x19cc'),'option':_0x5173db('0xc2a')},{'value':_0x5173db('0x1dd9'),'option':_0x5173db('0x1c26')},{'value':'ar-OM','option':_0x5173db('0x132a')},{'value':_0x5173db('0x20b3'),'option':_0x5173db('0x3cd')},{'value':'ar-QA','option':_0x5173db('0x16e9')},{'value':_0x5173db('0x130'),'option':'Arabic\x20(Lebanon)'},{'value':_0x5173db('0x1741'),'option':'Arabic\x20(Egypt)'},{'value':_0x5173db('0x1bb'),'option':_0x5173db('0x13a1')},{'value':_0x5173db('0xd77'),'option':_0x5173db('0x1d54')},{'value':_0x5173db('0x17d6'),'option':_0x5173db('0x1df')},{'value':_0x5173db('0x1b4c'),'option':'Korean\x20(South\x20Korea)'},{'value':'cmn-Hant-TW','option':'Chinese,\x20Mandarin\x20(Traditional,\x20Taiwan)'},{'value':_0x5173db('0x1d99'),'option':'Chinese,\x20Cantonese\x20(Traditional,\x20Hong\x20Kong)'},{'value':_0x5173db('0xb38'),'option':_0x5173db('0x27af')},{'value':'cmn-Hans-HK','option':_0x5173db('0x2857')},{'value':'cmn-Hans-CN','option':_0x5173db('0x267d')}];}function _0x1f5826(){var _0x1dd897=_0x1a8446;return[{'value':'usenglishfemale','option':_0x1dd897('0x1bb5')},{'value':'usenglishmale','option':_0x1dd897('0x1191')},{'value':_0x1dd897('0x23'),'option':'UK\x20English\x20Female'},{'value':'ukenglishmale','option':_0x1dd897('0x1f3')},{'value':'auenglishfemale','option':_0x1dd897('0x20af')},{'value':_0x1dd897('0x21ff'),'option':_0x1dd897('0x135a')},{'value':_0x1dd897('0x1da4'),'option':_0x1dd897('0x103')},{'value':'chchinesefemale','option':_0x1dd897('0x4b1')},{'value':_0x1dd897('0xd55'),'option':'Chinese\x20Male'},{'value':_0x1dd897('0x1387'),'option':'Hong\x20Kong\x20Cantonese\x20Female'},{'value':'twchinesefemale','option':'Taiwan\x20Chinese\x20Female'},{'value':'jpjapanesefemale','option':_0x1dd897('0x2473')},{'value':_0x1dd897('0x276b'),'option':'Japanese\x20Male'},{'value':_0x1dd897('0x1b11'),'option':_0x1dd897('0x2422')},{'value':_0x1dd897('0x6d5'),'option':_0x1dd897('0x172c')},{'value':'caenglishfemale','option':_0x1dd897('0x993')},{'value':_0x1dd897('0x5c8'),'option':_0x1dd897('0x24fd')},{'value':_0x1dd897('0x1f50'),'option':'Brazilian\x20Portuguese\x20Female'},{'value':_0x1dd897('0x604'),'option':_0x1dd897('0x1fa4')},{'value':'eurportuguesemale','option':_0x1dd897('0x15a8')},{'value':_0x1dd897('0x238e'),'option':_0x1dd897('0x115b')},{'value':'eurspanishmale','option':'European\x20Spanish\x20Male'},{'value':_0x1dd897('0x99e'),'option':'European\x20Catalan\x20Female'},{'value':_0x1dd897('0x1227'),'option':_0x1dd897('0x1957')},{'value':_0x1dd897('0x260e'),'option':_0x1dd897('0x86e')},{'value':_0x1dd897('0x1772'),'option':_0x1dd897('0x2193')},{'value':_0x1dd897('0x24a6'),'option':_0x1dd897('0x198c')},{'value':'eurfrenchmale','option':_0x1dd897('0x251d')},{'value':_0x1dd897('0x278'),'option':'European\x20Norwegian\x20Female'},{'value':_0x1dd897('0x12ef'),'option':_0x1dd897('0x2298')},{'value':'eurpolishfemale','option':_0x1dd897('0x2516')},{'value':_0x1dd897('0x1d6e'),'option':_0x1dd897('0x3ca')},{'value':_0x1dd897('0x15c2'),'option':_0x1dd897('0x2529')},{'value':_0x1dd897('0x1396'),'option':_0x1dd897('0x1787')},{'value':_0x1dd897('0x891'),'option':'European\x20Turkish\x20Male'},{'value':_0x1dd897('0x10b9'),'option':_0x1dd897('0x131c')},{'value':_0x1dd897('0xc34'),'option':'European\x20German\x20Male'},{'value':_0x1dd897('0x25ed'),'option':_0x1dd897('0x18db')},{'value':'rurussianmale','option':_0x1dd897('0x19fa')},{'value':_0x1dd897('0x2364'),'option':_0x1dd897('0x9da')},{'value':'cafrenchfemale','option':_0x1dd897('0x13c0')},{'value':_0x1dd897('0xbb6'),'option':_0x1dd897('0x18ab')}];}function _0x3596d2(){var _0x1cbe11=_0x1a8446;return[{'value':_0x1cbe11('0x1ea2'),'option':'English\x20(US)'},{'value':_0x1cbe11('0x1641'),'option':_0x1cbe11('0x1fb1')},{'value':_0x1cbe11('0x182e'),'option':'English\x20(UK)'},{'value':'en-AU','option':_0x1cbe11('0x9d0')},{'value':_0x1cbe11('0x2735'),'option':'Spanish\x20(Spain)'},{'value':_0x1cbe11('0x1f1'),'option':_0x1cbe11('0x9a8')},{'value':_0x1cbe11('0xa11'),'option':'Italian\x20(Italy)\x20/\x20Finnish\x20(Finland)'},{'value':_0x1cbe11('0x1c2e'),'option':_0x1cbe11('0x10c8')},{'value':_0x1cbe11('0x2335'),'option':_0x1cbe11('0x1ae6')},{'value':_0x1cbe11('0x4f4'),'option':'Polish\x20(Poland)'},{'value':_0x1cbe11('0xb70'),'option':'Portuguese\x20(Portugal)'},{'value':_0x1cbe11('0x208d'),'option':'Catalan\x20(Catalan)'},{'value':_0x1cbe11('0x1fe3'),'option':_0x1cbe11('0x15d5')},{'value':_0x1cbe11('0x2689'),'option':_0x1cbe11('0xcef')},{'value':_0x1cbe11('0xb38'),'option':_0x1cbe11('0x27af')},{'value':'ko-KR','option':_0x1cbe11('0xabe')},{'value':_0x1cbe11('0x24c3'),'option':_0x1cbe11('0x15e1')},{'value':_0x1cbe11('0x178a'),'option':_0x1cbe11('0x76e')},{'value':_0x1cbe11('0x17ca'),'option':_0x1cbe11('0x2411')},{'value':_0x1cbe11('0x1cbf'),'option':_0x1cbe11('0xc9c')},{'value':_0x1cbe11('0x17f0'),'option':_0x1cbe11('0x1ee5')},{'value':_0x1cbe11('0xad3'),'option':_0x1cbe11('0x18e4')},{'value':_0x1cbe11('0x1184'),'option':'Chinese\x20(Hong\x20Kong)'}];}function _0x4144c5(){var _0x616c6e=_0x1a8446;return[{'value':'0','option':_0x616c6e('0x6d')},{'value':_0x616c6e('0xb87'),'option':_0x616c6e('0xe01')},{'value':_0x616c6e('0x255a'),'option':'US\x20Money'},{'value':_0x616c6e('0x1b30'),'option':_0x616c6e('0x1b49')},{'value':_0x616c6e('0x1d9f'),'option':'Numbers\x20to\x2099'},{'value':'numbersto999','option':_0x616c6e('0x85c')},{'value':_0x616c6e('0x50e'),'option':_0x616c6e('0x9d9')},{'value':_0x616c6e('0x1750'),'option':_0x616c6e('0x24a5')},{'value':_0x616c6e('0x904'),'option':_0x616c6e('0x1d4c')},{'value':'citystate','option':'US\x20City/States'}];}function _0x2d1734(){var _0x3d32d9=_0x1a8446;return[{'value':_0x3d32d9('0x261f'),'option':_0x3d32d9('0x13a4')},{'value':_0x3d32d9('0x10f9'),'option':_0x3d32d9('0x15b6')},{'value':_0x3d32d9('0x1786'),'option':_0x3d32d9('0x87a')},{'value':_0x3d32d9('0x183f'),'option':_0x3d32d9('0x901')},{'value':'Carmen','option':_0x3d32d9('0x1e2')},{'value':'Celine','option':_0x3d32d9('0x244')},{'value':_0x3d32d9('0x91e'),'option':_0x3d32d9('0x1322')},{'value':'Conchita','option':'Conchita\x20(Spanish,\x20Castilian,\x20Female)'},{'value':_0x3d32d9('0x1c7'),'option':_0x3d32d9('0x75b')},{'value':_0x3d32d9('0xb6c'),'option':_0x3d32d9('0x1632')},{'value':'Emma','option':_0x3d32d9('0xc52')},{'value':'Enrique','option':_0x3d32d9('0x2815')},{'value':'Ewa','option':_0x3d32d9('0x27cc')},{'value':_0x3d32d9('0x254d'),'option':_0x3d32d9('0x45a')},{'value':_0x3d32d9('0x250a'),'option':_0x3d32d9('0x20fd')},{'value':_0x3d32d9('0x25a0'),'option':'Giorgio\x20(Italian,\x20Male)'},{'value':_0x3d32d9('0x17f9'),'option':_0x3d32d9('0x1d26')},{'value':_0x3d32d9('0x26a9'),'option':'Hans\x20(German,\x20Male)'},{'value':_0x3d32d9('0x1145'),'option':'Ines\x20(Portuguese,\x20Female)'},{'value':'Ivy','option':'Ivy\x20(English,\x20US,\x20Female)'},{'value':'Jacek','option':'Jacek\x20(Polish,\x20Male)'},{'value':_0x3d32d9('0x7'),'option':_0x3d32d9('0x5af')},{'value':_0x3d32d9('0x241e'),'option':'Joanna\x20(English,\x20US,\x20Female)'},{'value':_0x3d32d9('0xa07'),'option':'Joey\x20(English,\x20US,\x20Male)'},{'value':_0x3d32d9('0x148f'),'option':_0x3d32d9('0x1077')},{'value':'Karl','option':_0x3d32d9('0xd66')},{'value':'Kendra','option':_0x3d32d9('0x2253')},{'value':_0x3d32d9('0xb3'),'option':_0x3d32d9('0x1110')},{'value':_0x3d32d9('0x9e9'),'option':_0x3d32d9('0xefb')},{'value':_0x3d32d9('0x26c6'),'option':_0x3d32d9('0x278c')},{'value':'Mads','option':_0x3d32d9('0x2351')},{'value':'Maja','option':_0x3d32d9('0x2b2')},{'value':_0x3d32d9('0x21bb'),'option':_0x3d32d9('0x357')},{'value':_0x3d32d9('0x2569'),'option':_0x3d32d9('0xa37')},{'value':'Maxim','option':'Maxim\x20(Russian,\x20Male)'},{'value':_0x3d32d9('0x157e'),'option':_0x3d32d9('0x16cc')},{'value':_0x3d32d9('0x6ca'),'option':_0x3d32d9('0x167e')},{'value':_0x3d32d9('0x2215'),'option':_0x3d32d9('0x9e2')},{'value':_0x3d32d9('0x492'),'option':'Nicole\x20(English,\x20Austrialian,\x20Female)'},{'value':_0x3d32d9('0xeac'),'option':'Penelope\x20(Spanish,\x20US,\x20Female)'},{'value':_0x3d32d9('0x142c'),'option':_0x3d32d9('0xc32')},{'value':_0x3d32d9('0x2553'),'option':'Ricardo\x20(Portuguese,\x20Brazilian,\x20Male)'},{'value':_0x3d32d9('0x15cf'),'option':'Ruben\x20(Dutch,\x20Male)'},{'value':_0x3d32d9('0x1d23'),'option':_0x3d32d9('0x1742')},{'value':_0x3d32d9('0x58'),'option':_0x3d32d9('0x723')},{'value':'Tatyana','option':_0x3d32d9('0x1fc2')},{'value':_0x3d32d9('0x14ee'),'option':_0x3d32d9('0x1f39')}];}function _0x11c223(){var _0x3f570b=_0x1a8446;return[{'value':_0x3f570b('0x21fd'),'option':_0x3f570b('0x234d')},{'value':_0x3f570b('0x1488'),'option':_0x3f570b('0x1ea')},{'value':_0x3f570b('0xbf6'),'option':_0x3f570b('0x2825')},{'value':_0x3f570b('0x128f'),'option':'US\x20West\x20(Oregon)'},{'value':_0x3f570b('0x1c41'),'option':_0x3f570b('0xc8b')},{'value':_0x3f570b('0x87'),'option':_0x3f570b('0x16a1')},{'value':_0x3f570b('0x17ed'),'option':_0x3f570b('0x23a7')},{'value':'eu-west-2','option':_0x3f570b('0x1512')},{'value':_0x3f570b('0x2641'),'option':_0x3f570b('0x1503')},{'value':_0x3f570b('0xb6b'),'option':_0x3f570b('0x2e9')},{'value':_0x3f570b('0xfdf'),'option':_0x3f570b('0x1339')},{'value':_0x3f570b('0x44a'),'option':_0x3f570b('0x1916')},{'value':_0x3f570b('0xc58'),'option':_0x3f570b('0x6e4')},{'value':_0x3f570b('0x2404'),'option':_0x3f570b('0x2471')},{'value':_0x3f570b('0x1fc4'),'option':_0x3f570b('0x3cf')}];}function _0xe96cc(){var _0xa723ce=_0x1a8446;return[{'value':_0xa723ce('0x21fd'),'option':'US\x20East\x20(N.\x20Virginia)'},{'value':_0xa723ce('0x128f'),'option':_0xa723ce('0x438')},{'value':'eu-west-1','option':_0xa723ce('0x16a1')},{'value':_0xa723ce('0xfdf'),'option':_0xa723ce('0x1339')}];}_0x1d8933['$inject']=['$mdDialog',_0x1a8446('0x2a4'),_0x1a8446('0x739'),_0x1a8446('0x264b')];function _0x1d8933(_0x10c58d,_0x27d9bd,_0x1902c5,_0x218192){var _0x7afe8b=_0x1a8446,_0x522810=this;_0x522810[_0x7afe8b('0x24b9')]={'preproduction':_0x1902c5};function _0xf68160(_0x32f091){var _0x5cf2d9=_0x7afe8b;_0x32f091?(_0x218192(_0x522810[_0x5cf2d9('0x24b9')][_0x5cf2d9('0xd03')]),_0x10c58d[_0x5cf2d9('0x1120')](_0x522810['project'][_0x5cf2d9('0xd03')])):_0x10c58d[_0x5cf2d9('0x1120')]();}_0x522810[_0x7afe8b('0x2023')]=_0xf68160;}const _0x75a9d=_0x1d8933;_0x72160[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x264b')];function _0x72160(_0x2256e2,_0x5cad67){var _0x2a0b34=_0x1a8446,_0x56f556=this,_0x5aaa45=0x5,_0x26e184=_0x5aaa45*0x400*0x400;_0x56f556[_0x2a0b34('0x4c6')]=[],_0x56f556[_0x2a0b34('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x26e184,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x56f556['ngFlow']={'flow':{}},_0x56f556[_0x2a0b34('0x258f')]=![],_0x56f556[_0x2a0b34('0x2023')]=_0x4c9ee6,_0x56f556[_0x2a0b34('0x20d1')]=_0x468362;function _0x468362(_0x2dad6a){var _0x2bb03a=_0x2a0b34;_0x56f556[_0x2bb03a('0x4c6')]=[];var _0x2f30be=['xml'];!_0x51538b()[_0x2bb03a('0x13d6')](_0x2f30be,_0x2dad6a[_0x2bb03a('0x177a')]())&&_0x56f556['errors']['push']({'message':_0x2bb03a('0x1daa')+_0x2dad6a[_0x2bb03a('0x177a')]()+_0x2bb03a('0x1e09')});_0x2dad6a[_0x2bb03a('0x9f9')]>_0x26e184&&_0x56f556['errors'][_0x2bb03a('0x1599')]({'message':_0x2bb03a('0xbc5')+_0x5aaa45+'MB'});if(!_0x56f556['errors'][_0x2bb03a('0x2587')]){var _0x534118=new FileReader();_0x534118[_0x2bb03a('0x224e')]=function(_0x229546){var _0x2e3f45=_0x2bb03a;_0x4c9ee6(_0x229546[_0x2e3f45('0xe2e')][_0x2e3f45('0xcd6')]);},_0x534118['readAsText'](_0x2dad6a[_0x2bb03a('0x1945')]);}}function _0x4c9ee6(_0x31dc9e){var _0x2963da=_0x2a0b34;_0x31dc9e?(_0x5cad67(_0x31dc9e),_0x2256e2['hide'](_0x31dc9e)):_0x2256e2[_0x2963da('0x1120')]();}}const _0x356f85=_0x72160;_0x5583a2[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x24b9'),'api'];function _0x5583a2(_0x58961b,_0x22d648,_0x45c54a,_0x459ed6){var _0x276b4a=_0x1a8446,_0x57c527=this;_0x57c527[_0x276b4a('0x24b9')]=_0x51538b()[_0x276b4a('0x1ae5')](_0x45c54a);function _0x5c364b(){var _0x1199e7=_0x276b4a;_0x57c527[_0x1199e7('0x4c6')]=[],_0x459ed6[_0x1199e7('0x37b')][_0x1199e7('0x264e')]({'id':_0x57c527['project']['id']},{'notes':_0x57c527['project'][_0x1199e7('0x2057')],'description':_0x57c527[_0x1199e7('0x24b9')][_0x1199e7('0x23d0')]})[_0x1199e7('0x1dc2')]['then'](function(_0x19e06a){var _0x2739bf=_0x1199e7;_0x22d648[_0x2739bf('0xe10')]({'title':_0x2739bf('0x18c'),'msg':_0x57c527['project'][_0x2739bf('0x25d6')]?_0x57c527[_0x2739bf('0x24b9')][_0x2739bf('0x25d6')]+_0x2739bf('0x1734'):''}),_0x58961b[_0x2739bf('0x1120')](_0x19e06a);})[_0x1199e7('0x253d')](function(_0x88f9d6){var _0x39278b=_0x1199e7;console[_0x39278b('0x187f')](_0x88f9d6),_0x57c527[_0x39278b('0x4c6')]=_0x88f9d6[_0x39278b('0x10fd')][_0x39278b('0x4c6')]||[{'message':_0x88f9d6[_0x39278b('0x684')](),'type':_0x39278b('0x7b9')}];});}function _0x2c2c5a(){var _0x1a41a2=_0x276b4a;_0x58961b[_0x1a41a2('0x1120')]();}_0x57c527[_0x276b4a('0x2023')]=_0x2c2c5a,_0x57c527['save']=_0x5c364b;}const _0x2ed062=_0x5583a2;_0x18c569['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x8d1'),'$window',_0x1a8446('0x145b')];function _0x18c569(_0x77a415,_0x249282,_0x3ec486,_0x44af1a,_0x55c2b9){var _0x33555b=this;_0x33555b['projects']=_0x3ec486,_0x33555b['id']='',_0x33555b['newWindow']=!![];function _0x1eb7f7(_0x2b0e6e){var _0x2f9c52=a0_0x1149;_0x33555b['errors']=[],_0x2b0e6e?(_0x77a415['hide'](),_0x33555b[_0x2f9c52('0xe0c')]?_0x44af1a[_0x2f9c52('0xb4')](_0x2f9c52('0x1132')+_0x33555b['id'],'_blank'):_0x55c2b9['go'](_0x2f9c52('0x1584'),{'id':_0x33555b['id']})):_0x77a415['hide']();}_0x33555b['closeDialog']=_0x1eb7f7;}const _0x29ab41=_0x18c569;_0x23e4e6[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x24b9'),_0x1a8446('0x8d1'),_0x1a8446('0xcb3')];function _0x23e4e6(_0x2ded19,_0x3a9fec,_0xc7fe66,_0x1bdc6b,_0x589de9,_0x557d38){var _0x20c223=_0x1a8446,_0x4d11b4=this;_0x4d11b4[_0x20c223('0x24b9')]=_0x1bdc6b,_0x4d11b4[_0x20c223('0x2234')]=0x0,_0x4d11b4[_0x20c223('0x1a30')]=[],_0x4d11b4[_0x20c223('0xbf7')]=[],_0x4d11b4[_0x20c223('0x2023')]=_0x2991c7,_0x4d11b4['dualMultiselectOptions']={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x20c223('0x25d6'),'line1':_0x20c223('0x18e5'),'line2':[_0x20c223('0x25d6'),_0x20c223('0x1b0d')],'line3':_0x20c223('0x2234'),'labelAll':_0x557d38[_0x20c223('0x213f')](_0x20c223('0x566')),'labelSelected':_0x557d38[_0x20c223('0x213f')](_0x20c223('0xe33')),'transferCallback':function _0x2e09c1(_0x8fe8d7,_0x1fbfdf){var _0xab27f6=_0x20c223;_0xc7fe66['squareProject'][_0x1fbfdf?_0xab27f6('0x131b'):_0xab27f6('0x1114')]({'id':_0x4d11b4['project']['id'],'ids':_0x51538b()[_0xab27f6('0x1246')](_0x8fe8d7,'id'),'penalty':_0x4d11b4['penalty']||0x0})['$promise'][_0xab27f6('0xaa5')](function(){var _0x21adde=_0xab27f6;_0x3a9fec[_0x21adde('0xe10')]({'title':'Project\x20properly\x20'+(_0x1fbfdf?'removed':'added'),'msg':_0x21adde('0xe0e')+(_0x1fbfdf?'removed':_0x21adde('0x590'))+'!'}),!_0x1fbfdf&&_0x24c900();})['catch'](function(_0x1330ef){var _0x333b21=_0xab27f6;_0x3a9fec[_0x333b21('0x187f')]({'title':_0x1330ef[_0x333b21('0x2fa')]?_0x333b21('0x16c2')+_0x1330ef[_0x333b21('0x2fa')]+_0x333b21('0x169e')+_0x1330ef[_0x333b21('0x24df')]:_0x333b21('0x1f52'),'msg':_0x1330ef['status']?JSON['stringify'](_0x1330ef['data']):_0x1330ef[_0x333b21('0x684')]()});});}};function _0x24c900(){var _0xee9271=_0x20c223;return _0xc7fe66[_0xee9271('0x37b')][_0xee9271('0x282f')]({'id':_0x4d11b4[_0xee9271('0x24b9')]['id'],'fields':_0xee9271('0x1f42'),'nolimit':!![],'role':'user'})[_0xee9271('0x1dc2')][_0xee9271('0xaa5')](function(_0x5623e6){var _0x230d8a=_0xee9271;return _0x4d11b4[_0x230d8a('0xbf7')]=_0x5623e6[_0x230d8a('0x580')]?_0x51538b()[_0x230d8a('0x1246')](_0x5623e6[_0x230d8a('0x580')],function(_0x2525a2){return _0x2525a2;}):[],_0x4d11b4[_0x230d8a('0x1c23')][_0x230d8a('0xbf7')]=_0x4d11b4[_0x230d8a('0xbf7')],_0xc7fe66['user'][_0x230d8a('0x2122')]({'fields':'id,fullname,name,internal','role':'user','nolimit':!![]})[_0x230d8a('0x1dc2')];})[_0xee9271('0xaa5')](function(_0x563652){var _0x32a1d4=_0xee9271;_0x4d11b4[_0x32a1d4('0x1a30')]=_0x563652[_0x32a1d4('0x580')]?_0x51538b()[_0x32a1d4('0x1246')](_0x563652[_0x32a1d4('0x580')],function(_0x353a34){return _0x353a34;}):[],_0x4d11b4[_0x32a1d4('0x1c23')][_0x32a1d4('0x1a30')]=_0x51538b()[_0x32a1d4('0x1ebb')](_0x4d11b4[_0x32a1d4('0x1a30')],_0x4d11b4[_0x32a1d4('0xbf7')],'id');})['catch'](function(_0x3f77b8){var _0x14c419=_0xee9271;_0x3a9fec['error']({'title':_0x3f77b8[_0x14c419('0x2fa')]?_0x14c419('0x16c2')+_0x3f77b8[_0x14c419('0x2fa')]+_0x14c419('0x169e')+_0x3f77b8[_0x14c419('0x24df')]:_0x14c419('0x232c'),'msg':_0x3f77b8[_0x14c419('0x2fa')]?JSON[_0x14c419('0xa48')](_0x3f77b8['data']):_0x3f77b8['toString']()});});}function _0x2991c7(){var _0x2197a6=_0x20c223;_0x2ded19[_0x2197a6('0x1120')]();}_0x24c900();}const _0x31543d=_0x23e4e6;_0x464bb5[_0x1a8446('0x1e33')]=['$mdDialog','toasty',_0x1a8446('0x24b9'),_0x1a8446('0x739'),'api',_0x1a8446('0x27bf'),_0x1a8446('0x145b')];function _0x464bb5(_0x310b6f,_0x1d2c80,_0x5623dd,_0x3928f7,_0x3ff4db,_0x19c435,_0x1177ba){var _0x491f07=_0x1a8446,_0x4d27d4=this;_0x4d27d4[_0x491f07('0x24b9')]=angular[_0x491f07('0x20a')](_0x5623dd),_0x4d27d4[_0x491f07('0x24b9')]['name']+=_0x491f07('0xa53'),_0x4d27d4[_0x491f07('0x24b9')][_0x491f07('0xd03')]=_0x3928f7,_0x4d27d4[_0x491f07('0xe0c')]=!![];function _0x132947(){var _0x5010f8=_0x491f07;delete _0x4d27d4[_0x5010f8('0x24b9')]['id'],_0x3ff4db[_0x5010f8('0x37b')][_0x5010f8('0x242b')](_0x4d27d4[_0x5010f8('0x24b9')])[_0x5010f8('0x1dc2')][_0x5010f8('0xaa5')](function(_0x1983e3){var _0x2863d3=_0x5010f8;_0x1d2c80[_0x2863d3('0xe10')]({'title':_0x2863d3('0x1ed8'),'msg':_0x4d27d4[_0x2863d3('0x24b9')]['name']?_0x4d27d4[_0x2863d3('0x24b9')][_0x2863d3('0x25d6')]+_0x2863d3('0xdca'):''}),_0x310b6f[_0x2863d3('0x1120')](_0x1983e3),_0x4d27d4[_0x2863d3('0xe0c')]?_0x19c435[_0x2863d3('0xb4')](_0x2863d3('0x1132')+_0x1983e3['id'],_0x2863d3('0xf4e')):_0x1177ba['go'](_0x2863d3('0x1584'),{'id':_0x1983e3['id']});})['catch'](function(_0x41030f){var _0x31528c=_0x5010f8;console[_0x31528c('0x187f')](_0x41030f),_0x4d27d4[_0x31528c('0x4c6')]=_0x41030f[_0x31528c('0x10fd')][_0x31528c('0x4c6')]||[{'message':_0x41030f['toString'](),'type':_0x31528c('0xb9')}];});}function _0x4c955b(){var _0x50ee7f=_0x491f07;_0x310b6f[_0x50ee7f('0x1120')]();}_0x4d27d4[_0x491f07('0x2023')]=_0x4c955b,_0x4d27d4[_0x491f07('0x242b')]=_0x132947;}const _0x571112=_0x464bb5,_0x406b09=_0x4fb511['p']+_0x1a8446('0x153e'),_0x50c03a=_0x4fb511['p']+_0x1a8446('0x17b'),_0x28d84e=_0x4fb511['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/open/open.html/open-[chunkhash].html',_0x398dcb=_0x4fb511['p']+_0x1a8446('0x27f7'),_0x1af425=_0x4fb511['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info-[chunkhash].html',_0x2e938c=_0x4fb511['p']+_0x1a8446('0x95b'),_0x2f5313=_0x4fb511['p']+_0x1a8446('0x7a0');_0x4c6595[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$document','$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),'project','users',_0x1a8446('0x1bc2'),_0x1a8446('0x4d7'),'sounds',_0x1a8446('0x147e'),'databases',_0x1a8446('0xdc5'),_0x1a8446('0x8d1'),_0x1a8446('0x2568'),_0x1a8446('0x172d'),_0x1a8446('0x900'),_0x1a8446('0x1126'),_0x1a8446('0x18a1'),_0x1a8446('0x2457'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];var _0x4dc678=window['EditorUi'],_0x23373c=window[_0x1a8446('0x1796')];function _0x4c6595(_0x3b31fa,_0x3aa160,_0x553b9,_0x5323a5,_0x23374b,_0x498c82,_0x1d69c5,_0x119467,_0x30afdc,_0x2b97cf,_0x3de7b8,_0x456af0,_0xb1b189,_0x5f58fc,_0x9b21bf,_0x4cdd02,_0x429d03,_0x369f00,_0x112e06,_0x2c31e2,_0x382bb7,_0x40aa8e,_0x1b28ae,_0x4bf739){var _0x4dd08b=_0x1a8446,_0x438150=this;_0x438150[_0x4dd08b('0x7fc')]=_0x4bf739[_0x4dd08b('0xacc')](),_0x438150[_0x4dd08b('0x24b9')]=_0x119467||{},_0x438150[_0x4dd08b('0x1a50')]=_0x1b28ae&&_0x1b28ae[_0x4dd08b('0xd15')]==0x1?_0x1b28ae[_0x4dd08b('0x580')][0x0]:null,_0x438150[_0x4dd08b('0xada')]=_0x4bf739[_0x4dd08b('0xffd')](_0x438150[_0x4dd08b('0x1a50')]?_0x438150[_0x4dd08b('0x1a50')][_0x4dd08b('0xada')]:null),_0x438150['onInit']=_0x32e0db,_0x438150[_0x4dd08b('0xc53')]=_0x591548,_0x438150[_0x4dd08b('0x1b44')]=_0x2f23ab,_0x438150[_0x4dd08b('0x16d3')]=_0xcbfda9,_0x438150[_0x4dd08b('0x666')]=_0x1a4319,_0x438150[_0x4dd08b('0xcb9')]=_0xe7d6fb,_0x438150[_0x4dd08b('0x7a4')]=_0x49a263,_0x438150[_0x4dd08b('0x2817')]=_0x4b9133,_0x438150[_0x4dd08b('0x17bc')]=_0x14c502,_0x438150['importXML']=_0x4d36c7,_0x438150[_0x4dd08b('0x1680')]=_0x23e035;function _0x32e0db(){var _0x5ccefb=_0x4dd08b,_0xddd0ba=new _0x4dc678(_0x438150,new _0x23373c(),document['getElementById']('geEditor'));_0xddd0ba[_0x5ccefb('0x17ae')](_0x438150[_0x5ccefb('0x24b9')]['preproduction'],_0x438150[_0x5ccefb('0x24b9')][_0x5ccefb('0x25d6')],_0x438150[_0x5ccefb('0x24b9')]);}function _0x2f23ab(_0x53cbc4,_0x1b69c6){var _0x907499=_0x4dd08b;_0x553b9[_0x907499('0x1e6d')]({'controller':_0x907499('0x1b07'),'controllerAs':'vm','templateUrl':_0x406b09,'parent':angular[_0x907499('0x1aa8')](_0x3aa160[_0x907499('0x54c')]),'clickOutsideToClose':!![],'locals':{'users':_0x30afdc[_0x907499('0x580')]||[],'trunks':_0x2b97cf['rows']||[],'queues':_0x3de7b8[_0x907499('0x580')]||[],'sounds':_0x456af0['rows']||[],'variables':_0xb1b189[_0x907499('0x580')]||[],'databases':_0x5f58fc[_0x907499('0x580')]||[],'contexts':_0x9b21bf[_0x907499('0x580')]||[],'projects':_0x4cdd02['rows']||[],'intervals':_0x429d03[_0x907499('0x580')]||[],'mailAccounts':_0x369f00[_0x907499('0x580')]||[],'smsAccounts':_0x382bb7[_0x907499('0x580')]||[],'pauses':_0x40aa8e[_0x907499('0x580')]||[],'templates':_0x112e06[_0x907499('0x580')]||[],'lists':_0x2c31e2[_0x907499('0x580')]||[],'cell':_0x53cbc4,'saveCallback':_0x1b69c6,'crudPermissions':_0x438150[_0x907499('0xada')]}});}function _0xcbfda9(_0x2de2b5){var _0x222416=_0x4dd08b;_0x553b9[_0x222416('0x1e6d')]({'controller':_0x222416('0x66'),'controllerAs':'vm','templateUrl':_0x50c03a,'parent':angular['element'](_0x3aa160[_0x222416('0x54c')]),'clickOutsideToClose':!![],'locals':{'project':_0x2de2b5,'projects':_0x4cdd02[_0x222416('0x580')],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x438150[_0x222416('0xada')]}});}function _0x1a4319(){var _0x16ea11=_0x4dd08b;_0x553b9[_0x16ea11('0x1e6d')]({'controller':'MxGraphOpenProjectController','controllerAs':'vm','templateUrl':_0x28d84e,'parent':angular[_0x16ea11('0x1aa8')](_0x3aa160[_0x16ea11('0x54c')]),'clickOutsideToClose':!![],'locals':{'projects':_0x4cdd02['rows']||[]}});}function _0xe7d6fb(_0x555269){var _0x15d796=_0x4dd08b;_0x553b9[_0x15d796('0x1e6d')]({'controller':_0x15d796('0x196b'),'controllerAs':'vm','templateUrl':_0x398dcb,'parent':angular[_0x15d796('0x1aa8')](_0x3aa160[_0x15d796('0x54c')]),'clickOutsideToClose':!![],'locals':{'project':_0x438150[_0x15d796('0x24b9')],'currentXML':_0x555269}})[_0x15d796('0xaa5')](function(_0x367fa3){var _0x578a3a=_0x15d796;_0x367fa3&&_0x4cdd02[_0x578a3a('0x580')][_0x578a3a('0x1599')](_0x367fa3);});}function _0x5e22b8(){return _0x5323a5(function(_0x4f9335,_0x15a639){var _0x5431d8=a0_0x1149;return _0x1d69c5['userProfileSection'][_0x5431d8('0x2122')]({'userProfileId':_0x438150[_0x5431d8('0x7fc')]['userProfileId'],'sectionId':0x3f4})['$promise'][_0x5431d8('0xaa5')](function(_0x25bea3){var _0x23c927=_0x5431d8,_0x4d6872=_0x25bea3[_0x23c927('0x580')]?_0x25bea3[_0x23c927('0x580')][0x0]:null,_0x5599e0=_0x4bf739[_0x23c927('0xffd')](_0x4d6872?_0x4d6872[_0x23c927('0xada')]:null);_0x4f9335(_0x5599e0);})[_0x5431d8('0x253d')](function(_0x2d9951){_0x15a639(_0x2d9951);});});}function _0x49a263(_0x18da9c){var _0x4f4af7=_0x4dd08b;return _0x5e22b8()[_0x4f4af7('0xaa5')](function(_0x2088e9){var _0x5d70fb=_0x4f4af7;_0x2088e9[_0x5d70fb('0x1c1d')]?_0x553b9[_0x5d70fb('0x1e6d')]({'controller':_0x5d70fb('0x17aa'),'controllerAs':'vm','templateUrl':_0x3ee521,'parent':angular[_0x5d70fb('0x1aa8')](_0x3aa160[_0x5d70fb('0x54c')]),'clickOutsideToClose':!![],'locals':{'variable':_0x18da9c,'variables':_0xb1b189[_0x5d70fb('0x580')],'license':null,'setting':null,'crudPermissions':_0x2088e9}}):_0x498c82[_0x5d70fb('0x3a1')]({'title':_0x23374b['instant'](_0x5d70fb('0x1aab')),'msg':_0x23374b['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE')});})[_0x4f4af7('0x253d')](function(_0x5c447f){var _0x53026e=_0x4f4af7;_0x498c82['error']({'title':_0x5c447f['status']?'API:'+_0x5c447f[_0x53026e('0x2fa')]+'\x20-\x20'+_0x5c447f[_0x53026e('0x24df')]:_0x53026e('0x3ba'),'msg':_0x5c447f[_0x53026e('0x10fd')]?JSON[_0x53026e('0xa48')](_0x5c447f['data']):_0x5c447f[_0x53026e('0x684')]()});});}function _0x4b9133(_0x2d0e91){var _0x54f3d4=_0x4dd08b;_0x553b9[_0x54f3d4('0x1e6d')]({'controller':_0x54f3d4('0xa55'),'controllerAs':'vm','templateUrl':_0x1af425,'parent':angular[_0x54f3d4('0x1aa8')](_0x3aa160[_0x54f3d4('0x54c')]),'targetEvent':_0x2d0e91,'clickOutsideToClose':!![],'locals':{'project':_0x438150[_0x54f3d4('0x24b9')]}})['then'](function(_0xe1c01d){var _0x5c83b3=_0x54f3d4;_0xe1c01d&&_0x51538b()[_0x5c83b3('0x283c')](_0x438150[_0x5c83b3('0x24b9')],_0xe1c01d);});}function _0x14c502(_0x1dd4d8,_0x43320a){var _0x29fa25=_0x4dd08b;_0x553b9[_0x29fa25('0x1e6d')]({'controller':_0x29fa25('0x19d8'),'controllerAs':'vm','templateUrl':_0x2e938c,'parent':angular[_0x29fa25('0x1aa8')](_0x3aa160[_0x29fa25('0x54c')]),'clickOutsideToClose':!![],'locals':{'currentXML':_0x1dd4d8,'saveCallback':_0x43320a}})[_0x29fa25('0xaa5')](function(_0x4e69c6){var _0x38193a=_0x29fa25;_0x4e69c6&&(_0x438150[_0x38193a('0x24b9')]['preproduction']=_0x4e69c6);});}function _0x4d36c7(_0x5e7346){var _0x3ecfb1=_0x4dd08b;_0x553b9[_0x3ecfb1('0x1e6d')]({'controller':_0x3ecfb1('0x1f9c'),'controllerAs':'vm','templateUrl':_0x2f5313,'parent':angular['element'](_0x3aa160['body']),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x5e7346}})[_0x3ecfb1('0xaa5')](function(_0x4207b3){var _0x566e15=_0x3ecfb1;_0x4207b3&&(_0x438150[_0x566e15('0x24b9')]['preproduction']=_0x4207b3);});}function _0x591548(_0x38dfd1,_0x5a352d){var _0x37c379=_0x4dd08b,_0x328bc9={'preproduction':_0x38dfd1};_0x5a352d&&(_0x328bc9[_0x37c379('0x20')]=_0x38dfd1),_0x1d69c5['squareProject']['update']({'id':_0x438150['project']['id']},_0x328bc9)['$promise']['then'](function(_0x26b80e){var _0x2162ca=_0x37c379;_0x498c82[_0x2162ca('0xe10')]({'title':_0x2162ca('0x199f')+(_0x5a352d?_0x2162ca('0x21be'):_0x2162ca('0x1072'))+'!','msg':_0x438150[_0x2162ca('0x24b9')][_0x2162ca('0x25d6')]?_0x438150['project']['name']+'\x20has\x20been\x20'+(_0x5a352d?_0x2162ca('0x21be'):'saved')+'!':''}),_0x438150[_0x2162ca('0x24b9')][_0x2162ca('0xd03')]=_0x26b80e[_0x2162ca('0xd03')];})[_0x37c379('0x253d')](function(_0x1be5fb){var _0x1647e8=_0x37c379;_0x498c82[_0x1647e8('0x187f')]({'title':_0x1be5fb[_0x1647e8('0x2fa')]?_0x1647e8('0x16c2')+_0x1be5fb[_0x1647e8('0x2fa')]+'\x20-\x20'+_0x1be5fb['statusText']:_0x1647e8('0x1424'),'msg':_0x1be5fb[_0x1647e8('0x10fd')]?JSON[_0x1647e8('0xa48')](_0x1be5fb[_0x1647e8('0x10fd')]):_0x1be5fb['toString']()});});}function _0x23e035(){var _0x2417fe=_0x4dd08b;_0x3b31fa['go']('app.callysquare.projects',{},{'reload':_0x2417fe('0x156b')});}}const _0x36a4d6=_0x4c6595;_0x5409ca[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x8d1'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0x2a4'),'Auth'];function _0x5409ca(_0x4679f3,_0xf2659a,_0x19c41c,_0x489e20,_0x22bc5a,_0x219112,_0x2efd56,_0x4758b1,_0x52d197,_0x1f1a39,_0x1188ed,_0x26ea5d,_0x372f85){var _0xe04d2c=_0x1a8446,_0x50661d=this;_0x50661d[_0xe04d2c('0x7fc')]=_0x372f85[_0xe04d2c('0xacc')](),_0x50661d[_0xe04d2c('0x8d1')]=_0x489e20||{'count':0x0,'rows':[]},_0x50661d['userProfile']=_0x22bc5a,_0x50661d[_0xe04d2c('0x1a50')]=_0x219112&&_0x219112['count']==0x1?_0x219112[_0xe04d2c('0x580')][0x0]:null,_0x50661d['crudPermissions']=_0x372f85[_0xe04d2c('0xffd')](_0x50661d[_0xe04d2c('0x1a50')]?_0x50661d[_0xe04d2c('0x1a50')][_0xe04d2c('0xada')]:null),_0x50661d[_0xe04d2c('0x12b6')]=_0xe04d2c('0x8d1'),_0x50661d['listOrder']='',_0x50661d[_0xe04d2c('0x8cc')]=null,_0x50661d[_0xe04d2c('0x97c')]=[],_0x50661d[_0xe04d2c('0x582')]={'fields':_0xe04d2c('0x25e8'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x50661d['editstate']=_0x24b361,_0x50661d[_0xe04d2c('0x271')]=_0x11ef57,_0x50661d['success']=_0x56cc61,_0x50661d[_0xe04d2c('0x237f')]=_0x2be3a0,_0x50661d[_0xe04d2c('0x15f3')]=_0x26f5e1,_0x50661d[_0xe04d2c('0xcc3')]=_0x2144c9,_0x50661d[_0xe04d2c('0x24dc')]=_0xe31b1,_0x50661d['deleteSelectedProjects']=_0x4debda,_0x50661d[_0xe04d2c('0x2af')]=_0x4eecba,_0x50661d[_0xe04d2c('0xf1')]=_0x163f68;function _0x24b361(_0x1aff05){var _0xcb243a=_0xe04d2c;_0xf2659a['go'](_0xcb243a('0x1584'),{'id':_0x1aff05['id'],'crudPermissions':_0x50661d['crudPermissions']});}function _0x11ef57(_0x147aa7,_0x5c3888){var _0x5aed0d=_0xe04d2c,_0x64b52a=_0x52d197[_0x5aed0d('0x281e')]()['title'](_0x5aed0d('0x251e'))[_0x5aed0d('0x102e')](_0x5aed0d('0x389')+_0x147aa7[_0x5aed0d('0x25d6')]+_0x5aed0d('0x697')+_0x5aed0d('0x210d'))[_0x5aed0d('0x5b5')](_0x5aed0d('0x2764'))[_0x5aed0d('0x116d')](_0x5c3888)['ok']('OK')[_0x5aed0d('0x2030')](_0x5aed0d('0x2410'));_0x52d197['show'](_0x64b52a)[_0x5aed0d('0xaa5')](function(){_0x2144c9(_0x147aa7);},function(){var _0x45adc7=_0x5aed0d;console[_0x45adc7('0x18d5')](_0x45adc7('0x2410'));});}var _0x141125=!![],_0x54b144=0x1;_0x4679f3[_0xe04d2c('0x1ccf')](_0xe04d2c('0x1788'),function(_0x1d91f9,_0x3b7126){var _0x13b441=_0xe04d2c;_0x141125?_0x1188ed(function(){_0x141125=![];}):(!_0x3b7126&&(_0x54b144=_0x50661d[_0x13b441('0x582')][_0x13b441('0x41')]),_0x1d91f9!==_0x3b7126&&(_0x50661d[_0x13b441('0x582')][_0x13b441('0x41')]=0x1),!_0x1d91f9&&(_0x50661d[_0x13b441('0x582')][_0x13b441('0x41')]=_0x54b144),_0x50661d['getProjects']());});function _0x56cc61(_0x36b0fb){var _0x9b2bd3=_0xe04d2c;_0x50661d[_0x9b2bd3('0x8d1')]=_0x36b0fb||{'count':0x0,'rows':[]};}function _0x2be3a0(){var _0x587e03=_0xe04d2c;_0x50661d['query']['offset']=(_0x50661d[_0x587e03('0x582')][_0x587e03('0x41')]-0x1)*_0x50661d['query'][_0x587e03('0xf4d')],_0x372f85[_0x587e03('0x26e8')](_0x587e03('0x178b'))?_0x50661d[_0x587e03('0x159a')]=_0x2efd56[_0x587e03('0x37b')][_0x587e03('0x2122')](_0x50661d[_0x587e03('0x582')],_0x56cc61)[_0x587e03('0x1dc2')]:(_0x50661d['query']['id']=_0x50661d[_0x587e03('0x1e97')]['id'],_0x50661d[_0x587e03('0x582')][_0x587e03('0x224d')]=_0x587e03('0x1fed'),_0x50661d[_0x587e03('0x159a')]=_0x2efd56['userProfile'][_0x587e03('0x1cf1')](_0x50661d['query'],_0x56cc61)[_0x587e03('0x1dc2')]);}function _0x26f5e1(_0x1eed39,_0x4e0df9){var _0x3b6c28=_0xe04d2c;_0x52d197[_0x3b6c28('0x1e6d')]({'controller':_0x3b6c28('0x66'),'controllerAs':'vm','templateUrl':_0x50c03a,'parent':angular[_0x3b6c28('0x1aa8')](_0x1f1a39['body']),'targetEvent':_0x1eed39,'clickOutsideToClose':!![],'locals':{'project':_0x4e0df9,'projects':_0x50661d[_0x3b6c28('0x8d1')]['rows'],'openFromEditor':null,'setting':null,'crudPermissions':_0x50661d[_0x3b6c28('0xada')]}});}function _0x2144c9(_0x52d473){var _0x1556b1=_0xe04d2c;_0x2efd56[_0x1556b1('0x37b')][_0x1556b1('0x926')]({'id':_0x52d473['id']})[_0x1556b1('0x1dc2')][_0x1556b1('0xaa5')](function(){var _0x2e5a86=_0x1556b1;_0x51538b()[_0x2e5a86('0xf6d')](_0x50661d[_0x2e5a86('0x8d1')][_0x2e5a86('0x580')],{'id':_0x52d473['id']}),_0x50661d['projects'][_0x2e5a86('0xd15')]-=0x1,!_0x50661d[_0x2e5a86('0x8d1')][_0x2e5a86('0x580')]['length']&&_0x50661d[_0x2e5a86('0x237f')](),_0x26ea5d['success']({'title':'Project\x20deleted!','msg':_0x52d473[_0x2e5a86('0x25d6')]?_0x52d473['name']+_0x2e5a86('0xcd9'):''});})['catch'](function(_0x5731d4){var _0x336e37=_0x1556b1;if(_0x5731d4[_0x336e37('0x10fd')]&&_0x5731d4[_0x336e37('0x10fd')][_0x336e37('0x4c6')]&&_0x5731d4[_0x336e37('0x10fd')][_0x336e37('0x4c6')]['length']){_0x50661d[_0x336e37('0x4c6')]=_0x5731d4['data'][_0x336e37('0x4c6')]||[{'message':_0x5731d4[_0x336e37('0x684')](),'type':_0x336e37('0x375')}];for(var _0x5f590f=0x0;_0x5f590f<_0x5731d4[_0x336e37('0x10fd')][_0x336e37('0x4c6')][_0x336e37('0x2587')];_0x5f590f++){_0x26ea5d[_0x336e37('0x187f')]({'title':_0x5731d4['data'][_0x336e37('0x4c6')][_0x5f590f][_0x336e37('0x6c8')],'msg':_0x5731d4[_0x336e37('0x10fd')][_0x336e37('0x4c6')][_0x5f590f][_0x336e37('0x1402')]});}}else _0x26ea5d['error']({'title':_0x5731d4[_0x336e37('0x2fa')]?_0x336e37('0x16c2')+_0x5731d4[_0x336e37('0x2fa')]+_0x336e37('0x169e')+_0x5731d4[_0x336e37('0x24df')]:_0x336e37('0x375'),'msg':_0x5731d4['data']?JSON['stringify'](_0x5731d4[_0x336e37('0x10fd')][_0x336e37('0x1402')]):_0x5731d4[_0x336e37('0x1402')]||_0x5731d4['toString']()});});}function _0xe31b1(){var _0xa9ea6c=_0xe04d2c,_0x508eff=angular[_0xa9ea6c('0x20a')](_0x50661d[_0xa9ea6c('0x97c')]);return _0x50661d['selectedProjects']=[],_0x508eff;}function _0x4debda(_0x5e0eca){var _0x3f9dce=_0xe04d2c,_0x26cf3f=_0x52d197[_0x3f9dce('0x281e')]()[_0x3f9dce('0x110a')](_0x3f9dce('0x34c'))[_0x3f9dce('0x102e')](_0x3f9dce('0x389')+_0x50661d[_0x3f9dce('0x97c')]['length']+_0x3f9dce('0x1443')+_0x3f9dce('0x210d'))['ariaLabel'](_0x3f9dce('0x1a7b'))['targetEvent'](_0x5e0eca)['ok']('OK')['cancel'](_0x3f9dce('0x2410'));_0x52d197[_0x3f9dce('0x1e6d')](_0x26cf3f)['then'](function(){var _0x3bdf50=_0x3f9dce;_0x50661d[_0x3bdf50('0x97c')][_0x3bdf50('0x15b5')](function(_0x423d53){_0x2144c9(_0x423d53);}),_0x50661d[_0x3bdf50('0x97c')]=[];});}function _0x4eecba(){var _0x24f115=_0xe04d2c;_0x50661d[_0x24f115('0x97c')]=[];}function _0x163f68(){var _0x244324=_0xe04d2c;_0x50661d['selectedProjects']=_0x50661d[_0x244324('0x8d1')][_0x244324('0x580')];}}const _0x20950a=_0x5409ca;_0x2227e6[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x2227e6(_0x57078d){var _0x43bf63=_0x1a8446;_0x57078d[_0x43bf63('0xb46')](_0x43bf63('0x156b'),{'url':_0x43bf63('0x1e22'),'views':{'content@app':{'templateUrl':_0x429788,'controller':_0x43bf63('0xb90')}},'resolve':{'projects':[_0x43bf63('0x1d16'),'Auth',function _0x1aebd7(_0x318fd3,_0xcc0257){var _0x1c10c7=_0x43bf63;return _0xcc0257[_0x1c10c7('0x26e8')]('admin')?_0x318fd3['resolve'](_0x1c10c7('0x1e39'),{'fields':_0x1c10c7('0x25e8'),'sort':_0x1c10c7('0x25d6'),'limit':0xa,'offset':0x0}):_0x318fd3[_0x1c10c7('0x149f')](_0x1c10c7('0x49a'),{'id':_0xcc0257[_0x1c10c7('0xacc')]()[_0x1c10c7('0x2168')],'section':_0x1c10c7('0x1fed'),'fields':_0x1c10c7('0x25e8'),'sort':'name','limit':0xa,'offset':0x0});}],'userProfile':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x36e3eb(_0x4a938a,_0x2281b7){var _0x59b8ff=_0x43bf63;return _0x4a938a[_0x59b8ff('0x149f')](_0x59b8ff('0x567'),{'fields':_0x59b8ff('0x1bb0'),'id':_0x2281b7[_0x59b8ff('0xacc')]()[_0x59b8ff('0x2168')]});}],'userProfileSection':[_0x43bf63('0x1d16'),'Auth',function _0x29763d(_0x1bf05a,_0x260f3c){var _0xaa0d0=_0x43bf63;return _0x1bf05a[_0xaa0d0('0x149f')]('userProfileSection@get',{'fields':_0xaa0d0('0xe6a'),'userProfileId':_0x260f3c[_0xaa0d0('0xacc')]()[_0xaa0d0('0x2168')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x43bf63('0x1c74')})['state'](_0x43bf63('0x1584'),{'url':_0x43bf63('0x1da5'),'views':{'content@app':{'templateUrl':_0x4cc464,'controller':'ProjectController\x20as\x20vm'}},'params':{'crudPermissions':undefined},'resolve':{'project':[_0x43bf63('0x1d16'),'$stateParams',function _0x307767(_0xe1c635,_0x320729){var _0x6038e2=_0x43bf63;return _0xe1c635[_0x6038e2('0x149f')]('squareProject@get',{'id':_0x320729['id']});}],'users':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x51ad13(_0x31655c,_0x25d288){var _0x271a95=_0x43bf63;return _0x25d288[_0x271a95('0x26e8')](_0x271a95('0x178b'))?_0x31655c[_0x271a95('0x149f')](_0x271a95('0xde4'),{'fields':_0x271a95('0x27d2'),'sort':_0x271a95('0x25d6'),'nolimit':!![]}):_0x31655c[_0x271a95('0x149f')](_0x271a95('0x49a'),{'id':_0x25d288[_0x271a95('0xacc')]()[_0x271a95('0x2168')],'section':_0x271a95('0x16b4'),'mergeResources':!![],'fields':'id,fullname,role','sort':_0x271a95('0x25d6'),'nolimit':!![]});}],'trunks':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x249e7a(_0x24a6cb,_0x40db9c){var _0x372d59=_0x43bf63;return _0x40db9c[_0x372d59('0x26e8')](_0x372d59('0x178b'))?_0x24a6cb[_0x372d59('0x149f')](_0x372d59('0x17ef'),{'fields':_0x372d59('0x17fe'),'sort':_0x372d59('0x25d6'),'nolimit':!![]}):_0x24a6cb[_0x372d59('0x149f')]('userProfile@getResources',{'id':_0x40db9c['getCurrentUser']()['userProfileId'],'section':'Trunks','fields':_0x372d59('0x17fe'),'sort':_0x372d59('0x25d6'),'nolimit':!![]});}],'queues':['apiResolver',_0x43bf63('0x1dfd'),function _0x169bc6(_0x1d3155,_0x158e4e){var _0x508b8c=_0x43bf63;return _0x158e4e[_0x508b8c('0x26e8')](_0x508b8c('0x178b'))?_0x1d3155[_0x508b8c('0x149f')](_0x508b8c('0x1b1'),{'type':'inbound','fields':'id,name','sort':_0x508b8c('0x25d6'),'nolimit':!![]}):_0x1d3155[_0x508b8c('0x149f')](_0x508b8c('0x49a'),{'id':_0x158e4e[_0x508b8c('0xacc')]()[_0x508b8c('0x2168')],'section':_0x508b8c('0x24cb'),'type':'inbound','fields':_0x508b8c('0x17fe'),'sort':'name','nolimit':!![]});}],'sounds':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x16eaca(_0x1acb74,_0x754669){var _0x5468c5=_0x43bf63;return _0x754669['hasRole'](_0x5468c5('0x178b'))?_0x1acb74[_0x5468c5('0x149f')](_0x5468c5('0x1ea1'),{'fields':_0x5468c5('0x17fe'),'sort':_0x5468c5('0x25d6'),'nolimit':!![]}):_0x1acb74[_0x5468c5('0x149f')](_0x5468c5('0x49a'),{'id':_0x754669[_0x5468c5('0xacc')]()[_0x5468c5('0x2168')],'section':'Sounds','fields':_0x5468c5('0x17fe'),'sort':_0x5468c5('0x25d6'),'nolimit':!![]});}],'variables':['apiResolver','Auth',function _0x3978e6(_0x155872,_0x26139c){var _0x50a971=_0x43bf63;return _0x26139c[_0x50a971('0x26e8')]('admin')?_0x155872[_0x50a971('0x149f')](_0x50a971('0x163c'),{'fields':_0x50a971('0x17fe'),'sort':_0x50a971('0x25d6'),'nolimit':!![]}):_0x155872['resolve']('userProfile@getResources',{'id':_0x26139c[_0x50a971('0xacc')]()['userProfileId'],'section':_0x50a971('0x4db'),'fields':_0x50a971('0x17fe'),'sort':_0x50a971('0x25d6'),'nolimit':!![]});}],'databases':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x517e29(_0xff121f,_0x881fd5){var _0x4ada0f=_0x43bf63;return _0x881fd5[_0x4ada0f('0x26e8')]('admin')?_0xff121f['resolve']('squareOdbc@get',{'fields':_0x4ada0f('0x17fe'),'sort':'name','nolimit':!![]}):_0xff121f['resolve'](_0x4ada0f('0x49a'),{'id':_0x881fd5['getCurrentUser']()[_0x4ada0f('0x2168')],'section':'ODBC','fields':_0x4ada0f('0x17fe'),'sort':_0x4ada0f('0x25d6'),'nolimit':!![]});}],'projects':['apiResolver',_0x43bf63('0x1dfd'),function _0x11707a(_0x2725e1,_0x10b4ac){var _0x208fb1=_0x43bf63;return _0x10b4ac['hasRole'](_0x208fb1('0x178b'))?_0x2725e1['resolve']('squareProject@get',{'fields':_0x208fb1('0x17fe'),'sort':_0x208fb1('0x25d6'),'nolimit':!![]}):_0x2725e1['resolve'](_0x208fb1('0x49a'),{'id':_0x10b4ac['getCurrentUser']()[_0x208fb1('0x2168')],'section':_0x208fb1('0x1fed'),'fields':_0x208fb1('0x17fe'),'sort':_0x208fb1('0x25d6'),'nolimit':!![]});}],'contexts':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x12674d(_0x324968,_0x1022e8){var _0x546d1d=_0x43bf63;return _0x1022e8[_0x546d1d('0x26e8')](_0x546d1d('0x178b'))?_0x324968[_0x546d1d('0x149f')](_0x546d1d('0x1f83'),{'fields':_0x546d1d('0x17fe'),'sort':_0x546d1d('0x25d6'),'nolimit':!![]}):_0x324968['resolve'](_0x546d1d('0x49a'),{'id':_0x1022e8['getCurrentUser']()[_0x546d1d('0x2168')],'section':_0x546d1d('0x215'),'fields':_0x546d1d('0x17fe'),'sort':_0x546d1d('0x25d6'),'nolimit':!![]});}],'intervals':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x399bf0(_0x5b8dde,_0x490cf6){var _0xff4161=_0x43bf63;return _0x490cf6[_0xff4161('0x26e8')](_0xff4161('0x178b'))?_0x5b8dde[_0xff4161('0x149f')](_0xff4161('0x2489'),{'fields':_0xff4161('0x1d79'),'sort':_0xff4161('0x25d6'),'nolimit':!![]}):_0x5b8dde[_0xff4161('0x149f')](_0xff4161('0x49a'),{'id':_0x490cf6[_0xff4161('0xacc')]()[_0xff4161('0x2168')],'section':'Intervals','fields':_0xff4161('0x1d79'),'sort':_0xff4161('0x25d6'),'nolimit':!![]});}],'mailAccounts':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x55c6ee(_0x31b145,_0x5573ee){var _0x436f84=_0x43bf63;return _0x5573ee[_0x436f84('0x26e8')](_0x436f84('0x178b'))?_0x31b145[_0x436f84('0x149f')](_0x436f84('0x2418'),{'fields':_0x436f84('0x17fe'),'sort':_0x436f84('0x25d6'),'nolimit':!![]}):_0x31b145['resolve'](_0x436f84('0x49a'),{'id':_0x5573ee[_0x436f84('0xacc')]()[_0x436f84('0x2168')],'section':_0x436f84('0x5b2'),'fields':_0x436f84('0x17fe'),'sort':_0x436f84('0x25d6'),'nolimit':!![]});}],'templates':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0xb97d3e(_0x120a93,_0x307f0c){var _0x512326=_0x43bf63;return _0x307f0c['hasRole'](_0x512326('0x178b'))?_0x120a93[_0x512326('0x149f')](_0x512326('0x2058'),{'fields':_0x512326('0x17fe'),'sort':'name','nolimit':!![]}):_0x120a93['resolve']('userProfile@getResources',{'id':_0x307f0c[_0x512326('0xacc')]()[_0x512326('0x2168')],'section':_0x512326('0x2e6'),'fields':'id,name','sort':'name','nolimit':!![]});}],'lists':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x172241(_0x501352,_0x468a45){var _0x350e95=_0x43bf63;return _0x468a45[_0x350e95('0x26e8')]('admin')?_0x501352[_0x350e95('0x149f')]('cmList@get',{'fields':'id,name','sort':_0x350e95('0x25d6'),'nolimit':!![]}):_0x501352['resolve'](_0x350e95('0x49a'),{'id':_0x468a45[_0x350e95('0xacc')]()[_0x350e95('0x2168')],'section':_0x350e95('0x1135'),'fields':_0x350e95('0x17fe'),'sort':_0x350e95('0x25d6'),'nolimit':!![]});}],'smsAccounts':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x4cb97b(_0x31fc34,_0x52c01c){var _0x1a037b=_0x43bf63;return _0x52c01c['hasRole'](_0x1a037b('0x178b'))?_0x31fc34['resolve'](_0x1a037b('0x171a'),{'fields':_0x1a037b('0x17fe'),'sort':_0x1a037b('0x25d6'),'nolimit':!![]}):_0x31fc34[_0x1a037b('0x149f')](_0x1a037b('0x49a'),{'id':_0x52c01c[_0x1a037b('0xacc')]()['userProfileId'],'section':_0x1a037b('0x10d9'),'fields':_0x1a037b('0x17fe'),'sort':_0x1a037b('0x25d6'),'nolimit':!![]});}],'pauses':['apiResolver',_0x43bf63('0x1dfd'),function _0x5309a4(_0x35fada,_0x5c65ed){var _0x474282=_0x43bf63;return _0x5c65ed['hasRole'](_0x474282('0x178b'))?_0x35fada[_0x474282('0x149f')](_0x474282('0x56b'),{'fields':_0x474282('0x17fe'),'sort':_0x474282('0x25d6'),'nolimit':!![]}):_0x35fada[_0x474282('0x149f')](_0x474282('0x49a'),{'id':_0x5c65ed[_0x474282('0xacc')]()[_0x474282('0x2168')],'section':'Pauses','fields':'id,name','sort':'name','nolimit':!![]});}],'userProfileSection':[_0x43bf63('0x1d16'),_0x43bf63('0x1dfd'),function _0x17b5b1(_0xcf5062,_0x121881){var _0x2b7b72=_0x43bf63;return _0xcf5062[_0x2b7b72('0x149f')](_0x2b7b72('0x89e'),{'fields':_0x2b7b72('0xe6a'),'userProfileId':_0x121881[_0x2b7b72('0xacc')]()['userProfileId'],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x43bf63('0x1c74')});}angular[_0x1a8446('0x1f8d')]('app.callysquare.projects',[])['config'](_0x2227e6)['controller']('CreateOrEditSquareProjectDialogController',_0x41a9e8)[_0x1a8446('0x780')](_0x1a8446('0x1b07'),_0x3ad62d)['directive'](_0x1a8446('0x1262'),_0x39fbdd)[_0x1a8446('0x1be9')](_0x1a8446('0x27c4'),_0x4144c5)[_0x1a8446('0x1be9')]('ispeechAsrLanguage',_0x3596d2)['factory'](_0x1a8446('0x464'),_0x1f5826)['factory']('googleCloudTtslanguageCode',_0x2702cc)[_0x1a8446('0x1be9')](_0x1a8446('0x6d0'),_0x35748f)[_0x1a8446('0x1be9')](_0x1a8446('0x117f'),_0x53514f)[_0x1a8446('0x1be9')](_0x1a8446('0x101d'),_0x2d1734)['factory'](_0x1a8446('0x1672'),_0x11c223)['factory'](_0x1a8446('0x2325'),_0xe96cc)[_0x1a8446('0x1be9')](_0x1a8446('0x1c4a'),_0x49bf00)[_0x1a8446('0x780')]('MxGraphEditXMLController',_0x75a9d)['controller'](_0x1a8446('0x1f9c'),_0x356f85)['controller'](_0x1a8446('0xa55'),_0x2ed062)[_0x1a8446('0x780')](_0x1a8446('0x2319'),_0x29ab41)[_0x1a8446('0x780')](_0x1a8446('0x189b'),_0x31543d)[_0x1a8446('0x780')]('MxGraphSaveProjectAsController',_0x571112)['controller']('ProjectController',_0x36a4d6)['controller'](_0x1a8446('0x2297'),_0x20950a);const _0xf5040=_0x4fb511['p']+'src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html/odbcs-[chunkhash].html',_0x40a3b5=_0x4fb511['p']+'src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings-[chunkhash].html';_0x584a88['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'odbcs',_0x1a8446('0xd91'),_0x1a8446('0x157'),'Auth','license',_0x1a8446('0x143f'),'crudPermissions'];function _0x584a88(_0x309153,_0x31add1,_0x281f89,_0x57d852,_0x14db0e,_0x16258d,_0x39f882,_0x52e228,_0x3ea6e0,_0xad3406,_0x44cff8,_0x1eecfc,_0x2cf303,_0x3c726c){var _0x2371df=_0x1a8446,_0xaa1c18=this;_0xaa1c18['currentUser']=_0x44cff8['getCurrentUser'](),_0xaa1c18[_0x2371df('0x4c6')]=[],_0xaa1c18[_0x2371df('0x143f')]=_0x2cf303,_0xaa1c18[_0x2371df('0x1202')]=_0x1eecfc,_0xaa1c18[_0x2371df('0xada')]=_0x3c726c,_0xaa1c18['hasModulePermissions']={},_0xaa1c18[_0x2371df('0x1d53')]=_0xaa1c18[_0x2371df('0x143f')]&&_0xaa1c18[_0x2371df('0x143f')][_0x2371df('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xaa1c18['title']=_0x2371df('0x294'),_0xaa1c18[_0x2371df('0xd91')]=angular['copy'](_0x3ea6e0),_0xaa1c18[_0x2371df('0xf9a')]=_0x52e228,_0xaa1c18[_0x2371df('0x1cad')]=![];!_0xaa1c18[_0x2371df('0xd91')]&&(_0xaa1c18[_0x2371df('0xd91')]={},_0xaa1c18[_0x2371df('0x110a')]=_0x2371df('0x1d10'),_0xaa1c18[_0x2371df('0x1cad')]=!![]);_0xaa1c18[_0x2371df('0xf92')]=_0x18ceca,_0xaa1c18[_0x2371df('0xd5a')]=_0x231452,_0xaa1c18[_0x2371df('0x20a6')]=_0x5449fc,_0xaa1c18[_0x2371df('0xc09')]=_0x5dbd78,_0xaa1c18[_0x2371df('0x2023')]=_0x33cc68;function _0x18ceca(){var _0x4dd837=_0x2371df;_0xaa1c18['errors']=[],_0xad3406[_0x4dd837('0x407')][_0x4dd837('0x242b')](_0xaa1c18[_0x4dd837('0xd91')])[_0x4dd837('0x1dc2')]['then'](function(_0x60a079){var _0x2b2562=_0x4dd837;_0xaa1c18[_0x2b2562('0xf9a')][_0x2b2562('0x6ee')](_0x60a079[_0x2b2562('0x256a')]()),_0x39f882[_0x2b2562('0xe10')]({'title':_0x2b2562('0xec5'),'msg':_0xaa1c18[_0x2b2562('0xd91')][_0x2b2562('0x25d6')]?_0xaa1c18[_0x2b2562('0xd91')]['name']+_0x2b2562('0xdca'):''}),_0x33cc68(_0x60a079);})['catch'](function(_0x53e0bd){var _0x50eeb3=_0x4dd837;if(_0x53e0bd['data']&&_0x53e0bd[_0x50eeb3('0x10fd')][_0x50eeb3('0x4c6')]&&_0x53e0bd[_0x50eeb3('0x10fd')][_0x50eeb3('0x4c6')][_0x50eeb3('0x2587')]){_0xaa1c18[_0x50eeb3('0x4c6')]=_0x53e0bd['data'][_0x50eeb3('0x4c6')]||[{'message':_0x53e0bd[_0x50eeb3('0x684')](),'type':_0x50eeb3('0x1752')}];for(var _0x183cb3=0x0;_0x183cb3<_0x53e0bd[_0x50eeb3('0x10fd')][_0x50eeb3('0x4c6')][_0x50eeb3('0x2587')];_0x183cb3+=0x1){_0x39f882[_0x50eeb3('0x187f')]({'title':_0x53e0bd[_0x50eeb3('0x10fd')][_0x50eeb3('0x4c6')][_0x183cb3][_0x50eeb3('0x6c8')],'msg':_0x53e0bd[_0x50eeb3('0x10fd')]['errors'][_0x183cb3][_0x50eeb3('0x1402')]});}}else _0x39f882[_0x50eeb3('0x187f')]({'title':_0x53e0bd[_0x50eeb3('0x2fa')]?_0x50eeb3('0x16c2')+_0x53e0bd['status']+'\x20-\x20'+_0x53e0bd[_0x50eeb3('0x24df')]:'api.squareOdbc.save','msg':_0x53e0bd[_0x50eeb3('0x10fd')]?JSON['stringify'](_0x53e0bd[_0x50eeb3('0x10fd')][_0x50eeb3('0x1402')]):_0x53e0bd[_0x50eeb3('0x684')]()});});}function _0x231452(){var _0x51c08c=_0x2371df;_0xaa1c18[_0x51c08c('0x4c6')]=[],_0xad3406[_0x51c08c('0x407')]['update']({'id':_0xaa1c18[_0x51c08c('0xd91')]['id']},_0xaa1c18[_0x51c08c('0xd91')])['$promise']['then'](function(_0x1f4843){var _0x56083c=_0x51c08c,_0xd83831=_0x51538b()[_0x56083c('0xe9e')](_0xaa1c18[_0x56083c('0xf9a')],{'id':_0x1f4843['id']});_0xd83831&&_0x51538b()[_0x56083c('0x283c')](_0xd83831,_0x51538b()['pick'](_0x1f4843[_0x56083c('0x256a')](),_0x51538b()[_0x56083c('0x9f2')](_0xd83831))),_0x39f882['success']({'title':_0x56083c('0xabd'),'msg':_0xaa1c18['odbc'][_0x56083c('0x25d6')]?_0xaa1c18[_0x56083c('0xd91')][_0x56083c('0x25d6')]+_0x56083c('0x20bf'):''}),_0x33cc68(_0x1f4843);})[_0x51c08c('0x253d')](function(_0x4f1c00){var _0x3ad08d=_0x51c08c;if(_0x4f1c00['data']&&_0x4f1c00[_0x3ad08d('0x10fd')]['errors']&&_0x4f1c00[_0x3ad08d('0x10fd')]['errors']['length']){_0xaa1c18[_0x3ad08d('0x4c6')]=_0x4f1c00[_0x3ad08d('0x10fd')]['errors']||[{'message':_0x4f1c00[_0x3ad08d('0x684')](),'type':'api.squareOdbc.update'}];for(var _0xd47a74=0x0;_0xd47a74<_0x4f1c00[_0x3ad08d('0x10fd')][_0x3ad08d('0x4c6')][_0x3ad08d('0x2587')];_0xd47a74++){_0x39f882[_0x3ad08d('0x187f')]({'title':_0x4f1c00[_0x3ad08d('0x10fd')]['errors'][_0xd47a74][_0x3ad08d('0x6c8')],'msg':_0x4f1c00[_0x3ad08d('0x10fd')][_0x3ad08d('0x4c6')][_0xd47a74][_0x3ad08d('0x1402')]});}}else _0x39f882[_0x3ad08d('0x187f')]({'title':_0x4f1c00[_0x3ad08d('0x2fa')]?_0x3ad08d('0x16c2')+_0x4f1c00[_0x3ad08d('0x2fa')]+_0x3ad08d('0x169e')+_0x4f1c00[_0x3ad08d('0x24df')]:_0x3ad08d('0x6a3'),'msg':_0x4f1c00[_0x3ad08d('0x10fd')]?JSON[_0x3ad08d('0xa48')](_0x4f1c00['data'][_0x3ad08d('0x1402')]):_0x4f1c00[_0x3ad08d('0x684')]()});});}function _0x5449fc(_0x5d46f6){var _0x3517f5=_0x2371df;_0xaa1c18[_0x3517f5('0x4c6')]=[];var _0x4c967c=_0x57d852['confirm']()['title'](_0x3517f5('0x12a3'))['content'](_0x3517f5('0x23cd'))[_0x3517f5('0x5b5')](_0x3517f5('0x20ec'))['ok'](_0x3517f5('0x1e76'))['cancel'](_0x3517f5('0x9c6'))['targetEvent'](_0x5d46f6);_0x57d852[_0x3517f5('0x1e6d')](_0x4c967c)['then'](function(){var _0x272479=_0x3517f5;_0xad3406[_0x272479('0x407')][_0x272479('0x926')]({'id':_0xaa1c18[_0x272479('0xd91')]['id']})[_0x272479('0x1dc2')][_0x272479('0xaa5')](function(){var _0x4a546b=_0x272479;_0x51538b()[_0x4a546b('0xf6d')](_0xaa1c18[_0x4a546b('0xf9a')],{'id':_0xaa1c18[_0x4a546b('0xd91')]['id']}),_0x39f882[_0x4a546b('0xe10')]({'title':'Odbc\x20properly\x20deleted!','msg':(_0xaa1c18[_0x4a546b('0xd91')]['name']||_0x4a546b('0xd91'))+'\x20has\x20been\x20deleted!'}),_0x33cc68(_0xaa1c18['odbc']);})[_0x272479('0x253d')](function(_0x27a7cb){var _0x4806df=_0x272479;if(_0x27a7cb['data']&&_0x27a7cb[_0x4806df('0x10fd')][_0x4806df('0x4c6')]&&_0x27a7cb['data'][_0x4806df('0x4c6')]['length']){_0xaa1c18[_0x4806df('0x4c6')]=_0x27a7cb['data'][_0x4806df('0x4c6')]||[{'message':_0x27a7cb[_0x4806df('0x684')](),'type':_0x4806df('0xe5')}];for(var _0x56d5cb=0x0;_0x56d5cb<_0x27a7cb['data'][_0x4806df('0x4c6')][_0x4806df('0x2587')];_0x56d5cb++){_0x39f882[_0x4806df('0x187f')]({'title':_0x27a7cb[_0x4806df('0x10fd')][_0x4806df('0x4c6')][_0x56d5cb][_0x4806df('0x6c8')],'msg':_0x27a7cb['data'][_0x4806df('0x4c6')][_0x56d5cb][_0x4806df('0x1402')]});}}else _0x39f882['error']({'title':_0x27a7cb[_0x4806df('0x2fa')]?_0x4806df('0x16c2')+_0x27a7cb[_0x4806df('0x2fa')]+_0x4806df('0x169e')+_0x27a7cb[_0x4806df('0x24df')]:_0x4806df('0xe5'),'msg':_0x27a7cb[_0x4806df('0x10fd')]?JSON['stringify'](_0x27a7cb[_0x4806df('0x10fd')]['message']):_0x27a7cb[_0x4806df('0x1402')]||_0x27a7cb[_0x4806df('0x684')]()});});},function(){});}function _0x5dbd78(_0x4d4cc5){return _0x4d4cc5===null?undefined:new Date(_0x4d4cc5);}function _0x33cc68(_0x4e9252){var _0x3b29ed=_0x2371df;_0x57d852[_0x3b29ed('0x1120')](_0x4e9252);}}const _0x5078de=_0x584a88,_0x5d4502=_0x4fb511['p']+'src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html/dialog-[chunkhash].html';_0x58a7ff[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0xf9a'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f')];function _0x58a7ff(_0x682a6a,_0x143e6f,_0x56ab83,_0x2ee1c7,_0x4f87fa,_0x4bb814,_0x18a860,_0x348d4b,_0x29c3e9,_0x56500d,_0x1bb775,_0x21f475,_0x2ac89c,_0x4cabc2,_0x1f7f1,_0x4a8652,_0x143eb1){var _0x269845=_0x1a8446,_0x3ebc3c=this;_0x3ebc3c[_0x269845('0x1202')]=_0x4a8652,_0x3ebc3c[_0x269845('0x143f')]=_0x143eb1,_0x3ebc3c[_0x269845('0x7fc')]=_0x1f7f1[_0x269845('0xacc')](),_0x3ebc3c[_0x269845('0xf9a')]=_0x29c3e9||{'count':0x0,'rows':[]},_0x3ebc3c[_0x269845('0x1e97')]=_0x56500d,_0x3ebc3c[_0x269845('0x1a50')]=_0x1bb775&&_0x1bb775[_0x269845('0xd15')]==0x1?_0x1bb775[_0x269845('0x580')][0x0]:null,_0x3ebc3c[_0x269845('0xada')]=_0x1f7f1[_0x269845('0xffd')](_0x3ebc3c['userProfileSection']?_0x3ebc3c[_0x269845('0x1a50')][_0x269845('0xada')]:null),_0x3ebc3c[_0x269845('0x12b6')]=_0x269845('0xf9a'),_0x3ebc3c[_0x269845('0x164')]='',_0x3ebc3c[_0x269845('0x8cc')]=null,_0x3ebc3c[_0x269845('0x1b9d')]=[],_0x3ebc3c[_0x269845('0x582')]={'fields':'createdAt,updatedAt,id,name,dsn,description','sort':_0x269845('0xd82'),'limit':0xa,'page':0x1},_0x3ebc3c[_0x269845('0x1960')]=_0x3759c1,_0x3ebc3c['testtestOdbc']=_0x2a2867,_0x3ebc3c[_0x269845('0x271')]=_0x3a1527,_0x3ebc3c[_0x269845('0xe10')]=_0x6d3f67,_0x3ebc3c[_0x269845('0x11da')]=_0x1779ec,_0x3ebc3c['createOrEditOdbc']=_0x10c9af,_0x3ebc3c[_0x269845('0x20a6')]=_0x5cfba7,_0x3ebc3c[_0x269845('0xdf5')]=_0x3802e1,_0x3ebc3c[_0x269845('0x1de0')]=_0x4d7b53,_0x3ebc3c[_0x269845('0x214b')]=_0x5035f3,_0x3ebc3c[_0x269845('0x2004')]=_0x5c1c1e;function _0x3759c1(_0x12c3b4,_0x22c48d){var _0x5ef045=_0x269845;_0x4f87fa['show']({'controller':'CreateOrEditOdbcDialogController','controllerAs':'vm','templateUrl':_0x5d4502,'parent':angular['element'](_0x4bb814['body']),'targetEvent':_0x22c48d,'clickOutsideToClose':!![],'locals':{'odbc':_0x12c3b4,'odbcs':_0x3ebc3c['odbcs'][_0x5ef045('0x580')],'license':_0x3ebc3c[_0x5ef045('0x1202')],'setting':null,'crudPermissions':_0x3ebc3c[_0x5ef045('0xada')]}});}function _0x2a2867(_0x55c749){var _0x3d4408=_0x269845;return _0x21f475[_0x3d4408('0x407')][_0x3d4408('0x42d')]({'id':_0x55c749['id']})[_0x3d4408('0x1dc2')][_0x3d4408('0xaa5')](function(){var _0x47d556=_0x3d4408;_0x4cabc2[_0x47d556('0xe10')]({'title':'Square\x20ODBC\x20properly\x20tested','msg':_0x47d556('0x2633')});})[_0x3d4408('0x253d')](function(_0x1bc054){var _0x1f0d2d=_0x3d4408;_0x4cabc2[_0x1f0d2d('0x187f')]({'title':'Square\x20ODBC\x20properly\x20tested','msg':_0x1bc054['data']?JSON[_0x1f0d2d('0xa48')](_0x1bc054[_0x1f0d2d('0x10fd')]):_0x1bc054[_0x1f0d2d('0x684')]()});});}function _0x3a1527(_0x528e37,_0x46a057){var _0x1e1a46=_0x269845,_0x29f344=_0x4f87fa['confirm']()[_0x1e1a46('0x110a')](_0x1e1a46('0x88d')+_0x51538b()['startCase']('odbc')+'?')[_0x1e1a46('0x102e')](_0x1e1a46('0x389')+(_0x528e37[_0x1e1a46('0x25d6')]||_0x1e1a46('0xd91'))+''+_0x1e1a46('0x210d'))[_0x1e1a46('0x5b5')](_0x1e1a46('0x201b'))[_0x1e1a46('0x116d')](_0x46a057)['ok']('OK')['cancel'](_0x1e1a46('0x2410'));_0x4f87fa[_0x1e1a46('0x1e6d')](_0x29f344)['then'](function(){_0x5cfba7(_0x528e37);},function(){var _0x35c3c6=_0x1e1a46;console[_0x35c3c6('0x18d5')](_0x35c3c6('0x2410'));});}var _0xff2620=!![],_0x29d288=0x1;_0x682a6a[_0x269845('0x1ccf')](_0x269845('0x1788'),function(_0x2f5490,_0x6a5542){var _0x586e7d=_0x269845;_0xff2620?_0x18a860(function(){_0xff2620=![];}):(!_0x6a5542&&(_0x29d288=_0x3ebc3c[_0x586e7d('0x582')][_0x586e7d('0x41')]),_0x2f5490!==_0x6a5542&&(_0x3ebc3c[_0x586e7d('0x582')][_0x586e7d('0x41')]=0x1),!_0x2f5490&&(_0x3ebc3c['query'][_0x586e7d('0x41')]=_0x29d288),_0x3ebc3c[_0x586e7d('0x11da')]());});function _0x6d3f67(_0x5d0373){_0x3ebc3c['odbcs']=_0x5d0373||{'count':0x0,'rows':[]};}function _0x1779ec(){var _0x232ada=_0x269845;_0x3ebc3c[_0x232ada('0x582')][_0x232ada('0x8b1')]=(_0x3ebc3c[_0x232ada('0x582')][_0x232ada('0x41')]-0x1)*_0x3ebc3c[_0x232ada('0x582')][_0x232ada('0xf4d')],_0x1f7f1[_0x232ada('0x26e8')]('admin')?_0x3ebc3c[_0x232ada('0x159a')]=_0x21f475['squareOdbc'][_0x232ada('0x2122')](_0x3ebc3c['query'],_0x6d3f67)[_0x232ada('0x1dc2')]:(_0x3ebc3c[_0x232ada('0x582')]['id']=_0x3ebc3c[_0x232ada('0x1e97')]['id'],_0x3ebc3c[_0x232ada('0x582')][_0x232ada('0x224d')]=_0x232ada('0x24a'),_0x3ebc3c[_0x232ada('0x159a')]=_0x21f475[_0x232ada('0x1e97')][_0x232ada('0x1cf1')](_0x3ebc3c[_0x232ada('0x582')],_0x6d3f67)[_0x232ada('0x1dc2')]);}function _0x10c9af(_0x2657b9,_0xfd06ae){var _0x2ebc52=_0x269845;_0x4f87fa[_0x2ebc52('0x1e6d')]({'controller':_0x2ebc52('0x2770'),'controllerAs':'vm','templateUrl':_0x5d4502,'parent':angular[_0x2ebc52('0x1aa8')](_0x4bb814[_0x2ebc52('0x54c')]),'targetEvent':_0x2657b9,'clickOutsideToClose':!![],'locals':{'odbc':_0xfd06ae,'odbcs':_0x3ebc3c[_0x2ebc52('0xf9a')][_0x2ebc52('0x580')],'license':_0x3ebc3c[_0x2ebc52('0x1202')],'setting':_0x3ebc3c[_0x2ebc52('0x143f')],'crudPermissions':_0x3ebc3c[_0x2ebc52('0xada')]}});}function _0x5cfba7(_0x9f6dc3){var _0x4a8df3=_0x269845;_0x21f475['squareOdbc'][_0x4a8df3('0x926')]({'id':_0x9f6dc3['id']})[_0x4a8df3('0x1dc2')][_0x4a8df3('0xaa5')](function(){var _0x411b08=_0x4a8df3;_0x51538b()[_0x411b08('0xf6d')](_0x3ebc3c[_0x411b08('0xf9a')]['rows'],{'id':_0x9f6dc3['id']}),_0x3ebc3c[_0x411b08('0xf9a')][_0x411b08('0xd15')]-=0x1,!_0x3ebc3c[_0x411b08('0xf9a')][_0x411b08('0x580')][_0x411b08('0x2587')]&&_0x3ebc3c[_0x411b08('0x11da')](),_0x4cabc2[_0x411b08('0xe10')]({'title':_0x51538b()[_0x411b08('0x196a')](_0x411b08('0x1f3e'))+_0x411b08('0x8bb'),'msg':_0x9f6dc3[_0x411b08('0x25d6')]?_0x9f6dc3[_0x411b08('0x25d6')]+_0x411b08('0xcd9'):''});})[_0x4a8df3('0x253d')](function(_0x38c60b){var _0x4b9581=_0x4a8df3;if(_0x38c60b['data']&&_0x38c60b[_0x4b9581('0x10fd')]['errors']&&_0x38c60b[_0x4b9581('0x10fd')][_0x4b9581('0x4c6')][_0x4b9581('0x2587')]){_0x3ebc3c[_0x4b9581('0x4c6')]=_0x38c60b[_0x4b9581('0x10fd')][_0x4b9581('0x4c6')]||[{'message':_0x38c60b[_0x4b9581('0x684')](),'type':_0x4b9581('0xecc')}];for(var _0x3446e7=0x0;_0x3446e7<_0x38c60b[_0x4b9581('0x10fd')][_0x4b9581('0x4c6')][_0x4b9581('0x2587')];_0x3446e7++){_0x4cabc2['error']({'title':_0x38c60b['data'][_0x4b9581('0x4c6')][_0x3446e7]['type'],'msg':_0x38c60b[_0x4b9581('0x10fd')][_0x4b9581('0x4c6')][_0x3446e7][_0x4b9581('0x1402')]});}}else _0x4cabc2[_0x4b9581('0x187f')]({'title':_0x38c60b[_0x4b9581('0x2fa')]?_0x4b9581('0x16c2')+_0x38c60b[_0x4b9581('0x2fa')]+_0x4b9581('0x169e')+_0x38c60b[_0x4b9581('0x24df')]:_0x4b9581('0xecc'),'msg':_0x38c60b['data']?JSON[_0x4b9581('0xa48')](_0x38c60b[_0x4b9581('0x10fd')][_0x4b9581('0x1402')]):_0x38c60b[_0x4b9581('0x1402')]||_0x38c60b['toString']()});});}function _0x3802e1(){var _0x5c6068=_0x269845,_0x3d24a2=angular[_0x5c6068('0x20a')](_0x3ebc3c['selectedODBC']);return _0x3ebc3c[_0x5c6068('0x1b9d')]=[],_0x3d24a2;}function _0x4d7b53(_0x9429a7){var _0x334682=_0x269845,_0xb7a204=_0x4f87fa[_0x334682('0x281e')]()[_0x334682('0x110a')](_0x334682('0x1e5f'))[_0x334682('0x102e')](_0x334682('0x389')+_0x3ebc3c[_0x334682('0x1b9d')][_0x334682('0x2587')]+_0x334682('0x1443')+_0x334682('0x210d'))['ariaLabel'](_0x334682('0x2769'))['targetEvent'](_0x9429a7)['ok']('OK')[_0x334682('0x2030')](_0x334682('0x2410'));_0x4f87fa[_0x334682('0x1e6d')](_0xb7a204)['then'](function(){var _0x104390=_0x334682;_0x3ebc3c[_0x104390('0x1b9d')][_0x104390('0x15b5')](function(_0x1abb4a){_0x5cfba7(_0x1abb4a);}),_0x3ebc3c['selectedODBC']=[];});}function _0x5035f3(){var _0x4cfae9=_0x269845;_0x3ebc3c[_0x4cfae9('0x1b9d')]=[];}function _0x5c1c1e(){var _0x1c48ed=_0x269845;_0x3ebc3c['selectedODBC']=_0x3ebc3c[_0x1c48ed('0xf9a')]['rows'];}}const _0x2cd747=_0x58a7ff;_0x473a87[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state','$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x586'),_0x1a8446('0xb9a'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x473a87(_0x22fd02,_0x4a7bb3,_0x26a690,_0x5330d4,_0x4f1bb2,_0x11222d,_0x4bdb5d,_0xc28c95,_0x2f8bc9,_0x5c1312,_0x5ccef9,_0xdee72c,_0x287f35,_0x3d7bc7){var _0x5ddc83=_0x1a8446,_0x83e02b=this;_0x83e02b['currentUser']=_0x5ccef9[_0x5ddc83('0xacc')](),_0x83e02b['errors']=[],_0x83e02b[_0x5ddc83('0x143f')]=_0x287f35,_0x83e02b[_0x5ddc83('0x1202')]=_0xdee72c,_0x83e02b['crudPermissions']=_0x3d7bc7,_0x83e02b[_0x5ddc83('0x9f0')]={},_0x83e02b['passwordPattern']=_0x83e02b[_0x5ddc83('0x143f')]&&_0x83e02b[_0x5ddc83('0x143f')][_0x5ddc83('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x83e02b[_0x5ddc83('0x110a')]=_0x5ddc83('0x2481'),_0x83e02b['squareRecording']=angular['copy'](_0x2f8bc9),_0x83e02b[_0x5ddc83('0x586')]=_0xc28c95,_0x83e02b[_0x5ddc83('0x428')]=![];!_0x83e02b[_0x5ddc83('0xb9a')]&&(_0x83e02b['squareRecording']={},_0x83e02b[_0x5ddc83('0x110a')]=_0x5ddc83('0xf32'),_0x83e02b[_0x5ddc83('0x428')]=!![]);_0x83e02b[_0x5ddc83('0x25b8')]=_0x473a24,_0x83e02b['saveSquareRecording']=_0x29e316,_0x83e02b[_0x5ddc83('0xef')]=_0x355298,_0x83e02b[_0x5ddc83('0xc09')]=_0x13c3e1,_0x83e02b['closeDialog']=_0x3cf73f;function _0x473a24(){var _0x66f067=_0x5ddc83;_0x83e02b['errors']=[],_0x5c1312[_0x66f067('0xb9a')][_0x66f067('0x242b')](_0x83e02b[_0x66f067('0xb9a')])['$promise'][_0x66f067('0xaa5')](function(_0x37a699){var _0x2f3c0=_0x66f067;_0x83e02b[_0x2f3c0('0x586')]['unshift'](_0x37a699[_0x2f3c0('0x256a')]()),_0x4bdb5d[_0x2f3c0('0xe10')]({'title':_0x2f3c0('0x19c6'),'msg':_0x83e02b[_0x2f3c0('0xb9a')][_0x2f3c0('0x25d6')]?_0x83e02b[_0x2f3c0('0xb9a')]['name']+_0x2f3c0('0xdca'):''}),_0x3cf73f(_0x37a699);})['catch'](function(_0x23398d){var _0x4a982b=_0x66f067;if(_0x23398d[_0x4a982b('0x10fd')]&&_0x23398d['data'][_0x4a982b('0x4c6')]&&_0x23398d[_0x4a982b('0x10fd')]['errors']['length']){_0x83e02b[_0x4a982b('0x4c6')]=_0x23398d[_0x4a982b('0x10fd')][_0x4a982b('0x4c6')]||[{'message':_0x23398d[_0x4a982b('0x684')](),'type':'api.squareRecording.save'}];for(var _0x168677=0x0;_0x168677<_0x23398d['data'][_0x4a982b('0x4c6')][_0x4a982b('0x2587')];_0x168677+=0x1){_0x4bdb5d['error']({'title':_0x23398d[_0x4a982b('0x10fd')][_0x4a982b('0x4c6')][_0x168677][_0x4a982b('0x6c8')],'msg':_0x23398d[_0x4a982b('0x10fd')][_0x4a982b('0x4c6')][_0x168677][_0x4a982b('0x1402')]});}}else _0x4bdb5d[_0x4a982b('0x187f')]({'title':_0x23398d[_0x4a982b('0x2fa')]?_0x4a982b('0x16c2')+_0x23398d[_0x4a982b('0x2fa')]+'\x20-\x20'+_0x23398d[_0x4a982b('0x24df')]:_0x4a982b('0x19f2'),'msg':_0x23398d[_0x4a982b('0x10fd')]?JSON[_0x4a982b('0xa48')](_0x23398d['data']['message']):_0x23398d['toString']()});});}function _0x29e316(){var _0x1f3b2c=_0x5ddc83;_0x83e02b[_0x1f3b2c('0x4c6')]=[],_0x5c1312[_0x1f3b2c('0xb9a')][_0x1f3b2c('0x264e')]({'id':_0x83e02b[_0x1f3b2c('0xb9a')]['id']},_0x83e02b[_0x1f3b2c('0xb9a')])[_0x1f3b2c('0x1dc2')][_0x1f3b2c('0xaa5')](function(_0x3acb57){var _0x47f032=_0x1f3b2c,_0x162de8=_0x51538b()[_0x47f032('0xe9e')](_0x83e02b[_0x47f032('0x586')],{'id':_0x3acb57['id']});_0x162de8&&_0x51538b()[_0x47f032('0x283c')](_0x162de8,_0x51538b()[_0x47f032('0x104e')](_0x3acb57[_0x47f032('0x256a')](),_0x51538b()[_0x47f032('0x9f2')](_0x162de8))),_0x4bdb5d[_0x47f032('0xe10')]({'title':'SquareRecording\x20properly\x20saved!','msg':_0x83e02b[_0x47f032('0xb9a')][_0x47f032('0x25d6')]?_0x83e02b[_0x47f032('0xb9a')][_0x47f032('0x25d6')]+_0x47f032('0x20bf'):''}),_0x3cf73f(_0x3acb57);})['catch'](function(_0x3eec4f){var _0x1f7dc0=_0x1f3b2c;if(_0x3eec4f[_0x1f7dc0('0x10fd')]&&_0x3eec4f['data'][_0x1f7dc0('0x4c6')]&&_0x3eec4f[_0x1f7dc0('0x10fd')]['errors'][_0x1f7dc0('0x2587')]){_0x83e02b['errors']=_0x3eec4f[_0x1f7dc0('0x10fd')]['errors']||[{'message':_0x3eec4f[_0x1f7dc0('0x684')](),'type':_0x1f7dc0('0xd5b')}];for(var _0x5b788e=0x0;_0x5b788e<_0x3eec4f[_0x1f7dc0('0x10fd')]['errors'][_0x1f7dc0('0x2587')];_0x5b788e++){_0x4bdb5d[_0x1f7dc0('0x187f')]({'title':_0x3eec4f[_0x1f7dc0('0x10fd')]['errors'][_0x5b788e][_0x1f7dc0('0x6c8')],'msg':_0x3eec4f['data'][_0x1f7dc0('0x4c6')][_0x5b788e]['message']});}}else _0x4bdb5d[_0x1f7dc0('0x187f')]({'title':_0x3eec4f['status']?'API:'+_0x3eec4f[_0x1f7dc0('0x2fa')]+_0x1f7dc0('0x169e')+_0x3eec4f[_0x1f7dc0('0x24df')]:_0x1f7dc0('0xd5b'),'msg':_0x3eec4f['data']?JSON['stringify'](_0x3eec4f[_0x1f7dc0('0x10fd')][_0x1f7dc0('0x1402')]):_0x3eec4f['toString']()});});}function _0x355298(_0x553e3f){var _0x17340f=_0x5ddc83;_0x83e02b['errors']=[];var _0x467ddf=_0x5330d4['confirm']()['title'](_0x17340f('0x12a3'))[_0x17340f('0x15af')](_0x17340f('0x199b'))[_0x17340f('0x5b5')](_0x17340f('0x126a'))['ok'](_0x17340f('0x1e76'))[_0x17340f('0x2030')](_0x17340f('0x9c6'))[_0x17340f('0x116d')](_0x553e3f);_0x5330d4[_0x17340f('0x1e6d')](_0x467ddf)[_0x17340f('0xaa5')](function(){var _0x284107=_0x17340f;_0x5c1312[_0x284107('0xb9a')][_0x284107('0x926')]({'id':_0x83e02b[_0x284107('0xb9a')]['id']})[_0x284107('0x1dc2')][_0x284107('0xaa5')](function(){var _0x385cd6=_0x284107;_0x51538b()['remove'](_0x83e02b[_0x385cd6('0x586')],{'id':_0x83e02b['squareRecording']['id']}),_0x4bdb5d[_0x385cd6('0xe10')]({'title':_0x385cd6('0x17ab'),'msg':(_0x83e02b['squareRecording']['name']||_0x385cd6('0xb9a'))+_0x385cd6('0xcd9')}),_0x3cf73f(_0x83e02b[_0x385cd6('0xb9a')]);})[_0x284107('0x253d')](function(_0x2fefce){var _0x265424=_0x284107;if(_0x2fefce[_0x265424('0x10fd')]&&_0x2fefce[_0x265424('0x10fd')]['errors']&&_0x2fefce['data'][_0x265424('0x4c6')][_0x265424('0x2587')]){_0x83e02b[_0x265424('0x4c6')]=_0x2fefce[_0x265424('0x10fd')][_0x265424('0x4c6')]||[{'message':_0x2fefce['toString'](),'type':'api.squareRecording.delete'}];for(var _0x20731d=0x0;_0x20731d<_0x2fefce[_0x265424('0x10fd')][_0x265424('0x4c6')]['length'];_0x20731d++){_0x4bdb5d[_0x265424('0x187f')]({'title':_0x2fefce[_0x265424('0x10fd')][_0x265424('0x4c6')][_0x20731d][_0x265424('0x6c8')],'msg':_0x2fefce[_0x265424('0x10fd')][_0x265424('0x4c6')][_0x20731d][_0x265424('0x1402')]});}}else _0x4bdb5d[_0x265424('0x187f')]({'title':_0x2fefce[_0x265424('0x2fa')]?'API:'+_0x2fefce[_0x265424('0x2fa')]+'\x20-\x20'+_0x2fefce[_0x265424('0x24df')]:_0x265424('0x17d'),'msg':_0x2fefce[_0x265424('0x10fd')]?JSON[_0x265424('0xa48')](_0x2fefce[_0x265424('0x10fd')]['message']):_0x2fefce['message']||_0x2fefce['toString']()});});},function(){});}function _0x13c3e1(_0x16e3e0){return _0x16e3e0===null?undefined:new Date(_0x16e3e0);}function _0x3cf73f(_0x45026d){_0x5330d4['hide'](_0x45026d);}}const _0x4168a9=_0x473a87,_0x4a8b7f=_0x4fb511['p']+_0x1a8446('0x1761');_0x473e57['$inject']=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x586'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x473e57(_0x54feaa,_0x331d43,_0x2379f4,_0x47636e,_0x12848e,_0xeecb15,_0x46fc53,_0x207957,_0x34dfab,_0x824514,_0x38fe32,_0x1c0665,_0x4c6639,_0x1baec2,_0x46308c,_0x4bc504,_0x311a6d){var _0x5314fe=_0x1a8446,_0x27cb26=this;_0x27cb26[_0x5314fe('0x1202')]=_0x4bc504,_0x27cb26[_0x5314fe('0x143f')]=_0x311a6d,_0x27cb26[_0x5314fe('0x7fc')]=_0x46308c[_0x5314fe('0xacc')](),_0x27cb26['squareRecordings']=_0x34dfab||{'count':0x0,'rows':[]},_0x27cb26[_0x5314fe('0x1e97')]=_0x824514,_0x27cb26[_0x5314fe('0x1a50')]=_0x38fe32&&_0x38fe32[_0x5314fe('0xd15')]==0x1?_0x38fe32[_0x5314fe('0x580')][0x0]:null,_0x27cb26[_0x5314fe('0xada')]=_0x46308c[_0x5314fe('0xffd')](_0x27cb26['userProfileSection']?_0x27cb26[_0x5314fe('0x1a50')]['crudPermissions']:null),_0x27cb26[_0x5314fe('0x12b6')]=_0x5314fe('0x586'),_0x27cb26[_0x5314fe('0x164')]='',_0x27cb26[_0x5314fe('0x8cc')]=null,_0x27cb26[_0x5314fe('0x2136')]=[],_0x27cb26[_0x5314fe('0x582')]={'fields':_0x5314fe('0x23c5'),'sort':_0x5314fe('0xd82'),'limit':0xa,'page':0x1},_0x27cb26[_0x5314fe('0xe22')]=_0x41bfbb,_0x27cb26[_0x5314fe('0x271')]=_0x138c78,_0x27cb26[_0x5314fe('0xe10')]=_0xa11ab7,_0x27cb26[_0x5314fe('0x1700')]=_0x1c42cc,_0x27cb26[_0x5314fe('0x1060')]=_0x50bc73,_0x27cb26[_0x5314fe('0xef')]=_0x280990,_0x27cb26[_0x5314fe('0xa5f')]=_0x5d571d,_0x27cb26[_0x5314fe('0xed6')]=_0x3a2ffa,_0x27cb26[_0x5314fe('0x612')]=_0x366653,_0x27cb26[_0x5314fe('0x2333')]=_0x5ac28d;function _0x41bfbb(_0x329dd2){var _0x67cd10=_0x5314fe;return _0x1c0665[_0x67cd10('0xb9a')][_0x67cd10('0x1cf9')]({'id':_0x329dd2['id']})[_0x67cd10('0x1dc2')][_0x67cd10('0xaa5')](function(_0x405f2a){var _0x55f484=_0x67cd10,_0x2ea5f1=[_0x405f2a[_0x55f484('0x1bf1')]],_0x3b6e5f='download',_0x55490b=new Blob(_0x2ea5f1,{'type':_0x405f2a[_0x55f484('0x6c8')]});_0x3b6e5f=_0x329dd2[_0x55f484('0x1a6')]+_0x329dd2[_0x55f484('0x1f27')];var _0xd2dc96=window['document']['createElement']('a');_0xd2dc96[_0x55f484('0x107b')](_0x55f484('0x18ae'),URL['createObjectURL'](_0x55490b)),_0xd2dc96['setAttribute']('download',_0x3b6e5f),document[_0x55f484('0x54c')]['appendChild'](_0xd2dc96),_0xd2dc96['click']();})[_0x67cd10('0x253d')](function(_0x3e8e58){var _0x471225=_0x67cd10;if(_0x3e8e58['data']&&_0x3e8e58[_0x471225('0x10fd')][_0x471225('0x4c6')]&&_0x3e8e58[_0x471225('0x10fd')]['errors'][_0x471225('0x2587')])for(var _0x16533f=0x0;_0x16533f<_0x3e8e58[_0x471225('0x10fd')][_0x471225('0x4c6')]['length'];_0x16533f++){_0x1baec2['error']({'title':_0x3e8e58['data'][_0x471225('0x4c6')][_0x16533f]['type'],'msg':_0x3e8e58[_0x471225('0x10fd')]['errors'][_0x16533f][_0x471225('0x1402')]});}else _0x1baec2['error']({'title':_0x3e8e58[_0x471225('0x2fa')]?'API:'+_0x3e8e58[_0x471225('0x2fa')]+_0x471225('0x169e')+_0x3e8e58[_0x471225('0x24df')]:'api.squareRecording.save','msg':_0x3e8e58[_0x471225('0x10fd')]?JSON[_0x471225('0xa48')](_0x3e8e58[_0x471225('0x10fd')][_0x471225('0x1402')]):_0x3e8e58[_0x471225('0x684')]()});});}function _0x138c78(_0x77abeb,_0xc555ad){var _0x31cf95=_0x5314fe,_0x4bdfef=_0x12848e[_0x31cf95('0x281e')]()[_0x31cf95('0x110a')](_0x31cf95('0x88d')+_0x51538b()[_0x31cf95('0x196a')](_0x31cf95('0xb9a'))+'?')[_0x31cf95('0x102e')](_0x31cf95('0x389')+(_0x77abeb['name']||_0x31cf95('0xb9a'))+_0x31cf95('0x697')+_0x31cf95('0x210d'))['ariaLabel'](_0x31cf95('0x248d'))[_0x31cf95('0x116d')](_0xc555ad)['ok']('OK')[_0x31cf95('0x2030')](_0x31cf95('0x2410'));_0x12848e['show'](_0x4bdfef)['then'](function(){_0x280990(_0x77abeb);},function(){var _0x69a857=_0x31cf95;console[_0x69a857('0x18d5')](_0x69a857('0x2410'));});}var _0x36cdfe=!![],_0x155d1b=0x1;_0x54feaa[_0x5314fe('0x1ccf')](_0x5314fe('0x1788'),function(_0x2d6ffa,_0x2cf5e0){var _0x4dd204=_0x5314fe;_0x36cdfe?_0x46fc53(function(){_0x36cdfe=![];}):(!_0x2cf5e0&&(_0x155d1b=_0x27cb26[_0x4dd204('0x582')][_0x4dd204('0x41')]),_0x2d6ffa!==_0x2cf5e0&&(_0x27cb26[_0x4dd204('0x582')][_0x4dd204('0x41')]=0x1),!_0x2d6ffa&&(_0x27cb26[_0x4dd204('0x582')][_0x4dd204('0x41')]=_0x155d1b),_0x27cb26[_0x4dd204('0x1700')]());});function _0xa11ab7(_0x2cfe0b){var _0x437f3c=_0x5314fe;_0x27cb26[_0x437f3c('0x586')]=_0x2cfe0b||{'count':0x0,'rows':[]};}function _0x1c42cc(){var _0x21c86=_0x5314fe;_0x27cb26[_0x21c86('0x582')]['offset']=(_0x27cb26['query']['page']-0x1)*_0x27cb26[_0x21c86('0x582')][_0x21c86('0xf4d')],_0x46308c[_0x21c86('0x26e8')](_0x21c86('0x178b'))?_0x27cb26[_0x21c86('0x159a')]=_0x1c0665['squareRecording']['get'](_0x27cb26[_0x21c86('0x582')],_0xa11ab7)[_0x21c86('0x1dc2')]:(_0x27cb26[_0x21c86('0x582')]['id']=_0x27cb26[_0x21c86('0x1e97')]['id'],_0x27cb26['query'][_0x21c86('0x224d')]=_0x21c86('0x22d'),_0x27cb26[_0x21c86('0x159a')]=_0x1c0665[_0x21c86('0x1e97')][_0x21c86('0x1cf1')](_0x27cb26[_0x21c86('0x582')],_0xa11ab7)[_0x21c86('0x1dc2')]);}function _0x50bc73(_0x34beee,_0x7ef83){var _0x24354b=_0x5314fe;_0x12848e[_0x24354b('0x1e6d')]({'controller':_0x24354b('0x222'),'controllerAs':'vm','templateUrl':_0x4a8b7f,'parent':angular['element'](_0xeecb15['body']),'targetEvent':_0x34beee,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x7ef83,'squareRecordings':_0x27cb26['squareRecordings'][_0x24354b('0x580')],'license':_0x27cb26[_0x24354b('0x1202')],'setting':_0x27cb26[_0x24354b('0x143f')],'crudPermissions':_0x27cb26[_0x24354b('0xada')]}});}function _0x280990(_0x32301f){var _0xad6b3b=_0x5314fe;_0x1c0665[_0xad6b3b('0xb9a')]['delete']({'id':_0x32301f['id']})['$promise'][_0xad6b3b('0xaa5')](function(){var _0x44c882=_0xad6b3b;_0x51538b()['remove'](_0x27cb26[_0x44c882('0x586')][_0x44c882('0x580')],{'id':_0x32301f['id']}),_0x27cb26['squareRecordings'][_0x44c882('0xd15')]-=0x1,!_0x27cb26['squareRecordings'][_0x44c882('0x580')][_0x44c882('0x2587')]&&_0x27cb26[_0x44c882('0x1700')](),_0x1baec2[_0x44c882('0xe10')]({'title':_0x51538b()[_0x44c882('0x196a')]('SquareRecording')+_0x44c882('0x8bb'),'msg':_0x32301f[_0x44c882('0x25d6')]?_0x32301f[_0x44c882('0x25d6')]+_0x44c882('0xcd9'):''});})[_0xad6b3b('0x253d')](function(_0x5b71be){var _0x474c1a=_0xad6b3b;if(_0x5b71be[_0x474c1a('0x10fd')]&&_0x5b71be[_0x474c1a('0x10fd')][_0x474c1a('0x4c6')]&&_0x5b71be[_0x474c1a('0x10fd')][_0x474c1a('0x4c6')][_0x474c1a('0x2587')]){_0x27cb26['errors']=_0x5b71be[_0x474c1a('0x10fd')][_0x474c1a('0x4c6')]||[{'message':_0x5b71be[_0x474c1a('0x684')](),'type':'SYSTEM:DELETEsquareRecording'}];for(var _0x1e425f=0x0;_0x1e425f<_0x5b71be[_0x474c1a('0x10fd')][_0x474c1a('0x4c6')][_0x474c1a('0x2587')];_0x1e425f++){_0x1baec2[_0x474c1a('0x187f')]({'title':_0x5b71be[_0x474c1a('0x10fd')][_0x474c1a('0x4c6')][_0x1e425f][_0x474c1a('0x6c8')],'msg':_0x5b71be[_0x474c1a('0x10fd')][_0x474c1a('0x4c6')][_0x1e425f][_0x474c1a('0x1402')]});}}else _0x1baec2[_0x474c1a('0x187f')]({'title':_0x5b71be[_0x474c1a('0x2fa')]?_0x474c1a('0x16c2')+_0x5b71be['status']+_0x474c1a('0x169e')+_0x5b71be[_0x474c1a('0x24df')]:'SYSTEM:DELETEsquareRecording','msg':_0x5b71be['data']?JSON[_0x474c1a('0xa48')](_0x5b71be[_0x474c1a('0x10fd')][_0x474c1a('0x1402')]):_0x5b71be['message']||_0x5b71be[_0x474c1a('0x684')]()});});}function _0x5d571d(){var _0x486424=_0x5314fe,_0x5cacc6=angular[_0x486424('0x20a')](_0x27cb26[_0x486424('0x2136')]);return _0x27cb26[_0x486424('0x2136')]=[],_0x5cacc6;}function _0x3a2ffa(_0x420932){var _0x30bfdc=_0x5314fe,_0x2ea6a6=_0x12848e[_0x30bfdc('0x281e')]()[_0x30bfdc('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20squareRecordings?')[_0x30bfdc('0x102e')](_0x30bfdc('0x389')+_0x27cb26['selectedSquareRecordings']['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x30bfdc('0x5b5')](_0x30bfdc('0x121a'))[_0x30bfdc('0x116d')](_0x420932)['ok']('OK')[_0x30bfdc('0x2030')](_0x30bfdc('0x2410'));_0x12848e['show'](_0x2ea6a6)['then'](function(){var _0x10577e=_0x30bfdc;_0x27cb26[_0x10577e('0x2136')][_0x10577e('0x15b5')](function(_0x1c3851){_0x280990(_0x1c3851);}),_0x27cb26['selectedSquareRecordings']=[];});}function _0x366653(){var _0x3ccac0=_0x5314fe;_0x27cb26[_0x3ccac0('0x2136')]=[];}function _0x5ac28d(){var _0x573d9a=_0x5314fe;_0x27cb26[_0x573d9a('0x2136')]=_0x27cb26[_0x573d9a('0x586')][_0x573d9a('0x580')];}}const _0x5c8b0e=_0x473e57;_0x317ae4['$inject']=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x317ae4(_0x3d5407,_0x500149){var _0x35968e=_0x1a8446;_0x3d5407['state']('app.callysquare',{'abstract':!![],'url':_0x35968e('0x18d3')})[_0x35968e('0xb46')](_0x35968e('0x4f5'),{'url':_0x35968e('0x2053'),'views':{'content@app':{'templateUrl':_0xf5040,'controller':_0x35968e('0x22fd')}},'resolve':{'odbcs':['apiResolver',_0x35968e('0x1dfd'),function _0x47a6df(_0x342ca4,_0x5136f3){var _0x323d43=_0x35968e;return _0x5136f3[_0x323d43('0x26e8')](_0x323d43('0x178b'))?_0x342ca4[_0x323d43('0x149f')](_0x323d43('0x1f0a'),{'fields':_0x323d43('0x814'),'sort':_0x323d43('0xd82'),'limit':0xa,'offset':0x0}):_0x342ca4[_0x323d43('0x149f')]('userProfile@getResources',{'id':_0x5136f3[_0x323d43('0xacc')]()[_0x323d43('0x2168')],'section':_0x323d43('0x24a'),'fields':_0x323d43('0x814'),'sort':_0x323d43('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x35968e('0x1dfd'),function _0x183384(_0x4ac26f,_0x3fae9f){var _0x4bd40b=_0x35968e;return _0x3fae9f[_0x4bd40b('0x26e8')](_0x4bd40b('0x178b'))?null:_0x4ac26f[_0x4bd40b('0x149f')](_0x4bd40b('0x567'),{'fields':_0x4bd40b('0x1bb0'),'id':_0x3fae9f[_0x4bd40b('0xacc')]()[_0x4bd40b('0x2168')]});}],'userProfileSection':['apiResolver',_0x35968e('0x1dfd'),function _0x55d3e7(_0x36d337,_0x35b377){var _0x3ed973=_0x35968e;return _0x35b377[_0x3ed973('0x26e8')](_0x3ed973('0x178b'))?null:_0x36d337[_0x3ed973('0x149f')](_0x3ed973('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x35b377['getCurrentUser']()[_0x3ed973('0x2168')],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':'callysquare'})[_0x35968e('0xb46')]('app.callysquare.squareRecordings',{'url':_0x35968e('0x17d0'),'views':{'content@app':{'templateUrl':_0x40a3b5,'controller':_0x35968e('0x1b3b')}},'resolve':{'squareRecordings':['apiResolver',_0x35968e('0x1dfd'),function _0x19d8a6(_0x2dc084,_0x410b7e){var _0x7dbdaa=_0x35968e;return _0x410b7e[_0x7dbdaa('0x26e8')](_0x7dbdaa('0x178b'))?_0x2dc084['resolve'](_0x7dbdaa('0x22c7'),{'fields':_0x7dbdaa('0x23c5'),'sort':_0x7dbdaa('0xd82'),'limit':0xa,'offset':0x0}):_0x2dc084[_0x7dbdaa('0x149f')](_0x7dbdaa('0x49a'),{'id':_0x410b7e['getCurrentUser']()[_0x7dbdaa('0x2168')],'section':_0x7dbdaa('0x22d'),'fields':'createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','sort':_0x7dbdaa('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x35968e('0x1d16'),_0x35968e('0x1dfd'),function _0x2cf0aa(_0x3eea1c,_0xcacb59){var _0x2b9b98=_0x35968e;return _0xcacb59[_0x2b9b98('0x26e8')](_0x2b9b98('0x178b'))?null:_0x3eea1c[_0x2b9b98('0x149f')]('userProfile@get',{'fields':_0x2b9b98('0x1bb0'),'id':_0xcacb59['getCurrentUser']()[_0x2b9b98('0x2168')]});}],'userProfileSection':[_0x35968e('0x1d16'),_0x35968e('0x1dfd'),function _0x3f96cc(_0x5cd07f,_0x597f9a){var _0x14a97f=_0x35968e;return _0x597f9a[_0x14a97f('0x26e8')]('admin')?null:_0x5cd07f['resolve']('userProfileSection@get',{'fields':_0x14a97f('0xe6a'),'userProfileId':_0x597f9a[_0x14a97f('0xacc')]()[_0x14a97f('0x2168')],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':_0x35968e('0x1c74')}),_0x500149['addPart'](_0x35968e('0x8e4'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x208c'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),'md.data.table','flow',_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),'ng-sortable',_0x1a8446('0x150f'),_0x1a8446('0x110'),'mdPickers',_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),'mwFormUtils',_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),'angularMaterialFormBuilder',_0x1a8446('0x2830'),'chart.js','angular.filter',_0x1a8446('0x156b')])[_0x1a8446('0x1b14')](_0x317ae4)[_0x1a8446('0x780')](_0x1a8446('0x2770'),_0x5078de)[_0x1a8446('0x780')](_0x1a8446('0xab'),_0x2cd747)[_0x1a8446('0x780')](_0x1a8446('0x222'),_0x4168a9)['controller'](_0x1a8446('0x636'),_0x5c8b0e);const _0x1a082e=_0x4fb511['p']+_0x1a8446('0x269c'),_0x1d53f8=_0x4fb511['p']+_0x1a8446('0x1bdd'),_0x396f6d=_0x4fb511['p']+'src/js/modules/main/apps/analytics/views/reports/reports.html/reports-[chunkhash].html',_0x59ebc2=_0x4fb511['p']+_0x1a8446('0x4e8');var _0x26c3d5=_0x4fb511(0xd5a);_0x78e2e0[_0x1a8446('0x1e33')]=[_0x1a8446('0x13a0'),'$mdDialog','toasty',_0x1a8446('0x1b8e'),'api','apiName',_0x1a8446('0x1ffc')];function _0x78e2e0(_0x4dc16a,_0x572ae8,_0x4eae3c,_0x3d8454,_0x41ac27,_0x2ad23f,_0x916b01){var _0x5a8586=_0x1a8446,_0x4e66e5=this;_0x4e66e5[_0x5a8586('0x4c6')]=[],_0x4e66e5[_0x5a8586('0x1b8e')]=angular[_0x5a8586('0x20a')](_0x3d8454),_0x4e66e5[_0x5a8586('0x1b8e')][_0x5a8586('0x25d6')]+='-copy',_0x4e66e5[_0x5a8586('0x1ffc')]=_0x916b01,_0x4e66e5[_0x5a8586('0x22d6')]={'core':{'multiple':![],'animation':!![],'error':function _0x4e8e37(_0x1c6961){var _0x589485=_0x5a8586;console[_0x589485('0x187f')](_0x589485('0x83e')+angular['toJson'](_0x1c6961));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x5a8586('0x159e')]},_0x4e66e5[_0x5a8586('0x1da9')]={'select_node':_0x348b0e},_0x4e66e5['copyReport']=_0x18c35f,_0x4e66e5[_0x5a8586('0x2023')]=_0x1025f1;function _0x18c35f(){var _0x5bfd3a=_0x5a8586;_0x4e66e5[_0x5bfd3a('0x4c6')]=[];var _0x4ed63a;_0x41ac27['analyticCustomReport'][_0x5bfd3a('0x242b')]({'name':_0x4e66e5['report'][_0x5bfd3a('0x25d6')],'description':_0x4e66e5[_0x5bfd3a('0x1b8e')][_0x5bfd3a('0x23d0')],'table':_0x4e66e5[_0x5bfd3a('0x1b8e')][_0x5bfd3a('0x12b6')],'conditions':_0x4e66e5[_0x5bfd3a('0x1b8e')][_0x5bfd3a('0x1ad5')],'joins':_0x4e66e5[_0x5bfd3a('0x1b8e')][_0x5bfd3a('0xd44')],'parent':_0x4e66e5[_0x5bfd3a('0x31c')]['id']})['$promise'][_0x5bfd3a('0xaa5')](function(_0x1a5489){var _0x401d4e=_0x5bfd3a;_0x4ed63a=_0x1a5489,_0x4eae3c[_0x401d4e('0xe10')]({'title':_0x401d4e('0x27a4'),'msg':_0x4e66e5[_0x401d4e('0x1b8e')]['name']?_0x4e66e5[_0x401d4e('0x1b8e')][_0x401d4e('0x25d6')]+_0x401d4e('0xd13'):''});var _0x5e8e2e={'fields':'field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]};return _0x5e8e2e[_0x2ad23f===_0x401d4e('0x16bc')?_0x401d4e('0x1010'):_0x401d4e('0xacf')]=_0x4e66e5[_0x401d4e('0x1b8e')]['id'],_0x41ac27['analyticFieldReport'][_0x401d4e('0x2122')](_0x5e8e2e)[_0x401d4e('0x1dc2')];})['then'](function(_0x437922){var _0x33483d=_0x5bfd3a,_0x1cee8b=_0x51538b()['map'](_0x437922[_0x33483d('0x580')],function(_0x340383){var _0x2b195b=_0x33483d;return _0x51538b()[_0x2b195b('0x5c5')]({},_0x340383,{'CustomReportId':_0x4ed63a['id']});});return _0x41ac27[_0x33483d('0x138d')]['bulkCreate'](_0x1cee8b)[_0x33483d('0x1dc2')];})[_0x5bfd3a('0xaa5')](function(){var _0x549e1b=_0x5bfd3a;_0x4eae3c[_0x549e1b('0xe10')]({'title':_0x549e1b('0x18f4'),'msg':_0x549e1b('0x20d7')}),_0x1025f1();})[_0x5bfd3a('0x253d')](function(_0x3cc073){var _0xe5fd0b=_0x5bfd3a;_0x4eae3c['error']({'title':_0x3cc073['status']?_0xe5fd0b('0x16c2')+_0x3cc073[_0xe5fd0b('0x2fa')]+'\x20-\x20'+_0x3cc073['statusText']:_0xe5fd0b('0x1a1a'),'msg':_0x3cc073[_0xe5fd0b('0x10fd')]?JSON[_0xe5fd0b('0xa48')](_0x3cc073[_0xe5fd0b('0x10fd')][_0xe5fd0b('0x1402')]):_0x3cc073['toString']()});});}function _0x348b0e(_0x583f46,_0x191fcf){var _0x49d993=_0x5a8586;_0x4e66e5[_0x49d993('0x31c')]=_0x191fcf[_0x49d993('0xdf1')];}function _0x1025f1(){var _0x598943=_0x5a8586;_0x572ae8[_0x598943('0x1120')]();}}const _0x45e1b6=_0x78e2e0;_0x188463[_0x1a8446('0x1e33')]=['$location','$mdDialog',_0x1a8446('0x2a4'),'reports','report',_0x1a8446('0x157'),_0x1a8446('0x553'),'currentNode',_0x1a8446('0x1dff'),_0x1a8446('0xada')];function _0x188463(_0x21c537,_0x1ca40d,_0x4da7aa,_0x4c1839,_0x1632bf,_0x202309,_0x160dd5,_0x3e77e8,_0x4c5f5d,_0x1e7cf4){var _0x8a8e3f=_0x1a8446,_0x1a86c3=this;_0x1a86c3[_0x8a8e3f('0x4c6')]=[],_0x1a86c3[_0x8a8e3f('0x47a')]=[],_0x1a86c3[_0x8a8e3f('0x110a')]='ANALYTICS.EDIT_REPORT',_0x1a86c3[_0x8a8e3f('0xada')]=_0x1e7cf4,_0x1a86c3[_0x8a8e3f('0x1b8e')]=angular[_0x8a8e3f('0x20a')](_0x1632bf),_0x1a86c3[_0x8a8e3f('0x12ba')]=_0x4c1839,_0x1a86c3[_0x8a8e3f('0x159b')]=![],_0x1a86c3[_0x8a8e3f('0x650')]=_0x4c5f5d[_0x8a8e3f('0x18eb')](),_0x1a86c3[_0x8a8e3f('0x124c')]=[{'key':_0x8a8e3f('0x19c4'),'value':_0x8a8e3f('0x162e')},{'key':_0x8a8e3f('0x2700'),'value':_0x8a8e3f('0x287')},{'key':_0x8a8e3f('0x6b6'),'value':_0x8a8e3f('0x136a')},{'key':_0x8a8e3f('0x1267'),'value':_0x8a8e3f('0xe8c')}];!_0x1a86c3[_0x8a8e3f('0x1b8e')]&&(_0x1a86c3['report']={'name':'','table':_0x8a8e3f('0x26c9'),'description':'','parent':_0x3e77e8['id']},_0x1a86c3[_0x8a8e3f('0x110a')]=_0x8a8e3f('0x2385'),_0x1a86c3['newReport']=!![]);_0x1a86c3[_0x8a8e3f('0x194a')]=_0x33bbe7,_0x1a86c3[_0x8a8e3f('0x7cd')]=_0x19266b,_0x1a86c3[_0x8a8e3f('0x1de2')]=_0x445245,_0x1a86c3[_0x8a8e3f('0x2023')]=_0x346eba,_0x1a86c3[_0x8a8e3f('0x254e')]=_0x4469ca,_0x1a86c3[_0x8a8e3f('0x3ee')]=_0x3e8f7c,_0x1a86c3[_0x8a8e3f('0x1450')]=_0x2f46f5;function _0x3e8f7c(_0x2bedfa){var _0x1cf86c=_0x8a8e3f;_0x1a86c3[_0x1cf86c('0x47a')][_0x1cf86c('0x1280')](_0x2bedfa,0x1);}function _0x2f46f5(_0x4c32fd,_0x5488a0,_0xd1a8a2){var _0x24195f=_0x8a8e3f,_0x1d5aef=_0x51538b()[_0x24195f('0xe9e')](_0x1a86c3[_0x24195f('0x650')],{'name':_0xd1a8a2});_0x1d5aef&&_0x1d5aef[_0x24195f('0x157')]&&_0x202309[_0x1d5aef[_0x24195f('0x157')]][_0x24195f('0x3e7')]()[_0x24195f('0x1dc2')][_0x24195f('0xaa5')](function(_0x29a3f2){var _0xec94f8=_0x24195f;_0x4c32fd[_0x5488a0]=_0x51538b()[_0xec94f8('0x1485')](_0x51538b()[_0xec94f8('0x9f2')](_0x29a3f2),['$promise',_0xec94f8('0xd92')]);})['catch'](function(_0x61724){console['error'](_0x61724);});}function _0x4469ca(_0x4bd2c4){var _0xe47fbd=_0x8a8e3f;_0x4bd2c4&&(delete _0x1a86c3['selectedItem'],_0x1a86c3[_0xe47fbd('0x47a')]['push'](_0x4bd2c4));}function _0x33bbe7(){var _0x3de938=_0x8a8e3f;_0x1a86c3[_0x3de938('0x4c6')]=[],_0x1a86c3[_0x3de938('0x1b8e')][_0x3de938('0xd44')]=_0x51538b()[_0x3de938('0x1246')](_0x1a86c3[_0x3de938('0x47a')]||[],function(_0x46e2b1){var _0x4a23a9=_0x3de938;return{'parentKey':_0x46e2b1['parentKey'],'foreignTable':_0x46e2b1['name'],'foreignKey':_0x46e2b1[_0x4a23a9('0x2753')],'type':_0x46e2b1['type'][_0x4a23a9('0xcf6')]()};}),_0x1a86c3[_0x3de938('0x1b8e')][_0x3de938('0xd44')]=JSON['stringify'](_0x1a86c3['report'][_0x3de938('0xd44')]),_0x202309[_0x160dd5][_0x3de938('0x242b')](_0x1a86c3['report'])[_0x3de938('0x1dc2')][_0x3de938('0xaa5')](function(_0x2e5b44){var _0xa0b163=_0x3de938;_0x1a86c3['reports'][_0xa0b163('0x6ee')](_0x2e5b44),_0x4da7aa['success']({'title':'Report\x20properly\x20created','msg':_0x1a86c3[_0xa0b163('0x1b8e')][_0xa0b163('0x25d6')]?_0x1a86c3[_0xa0b163('0x1b8e')][_0xa0b163('0x25d6')]+_0xa0b163('0xdca'):''}),_0x346eba();})[_0x3de938('0x253d')](function(_0x154519){var _0x3bbf17=_0x3de938;if(_0x154519[_0x3bbf17('0x10fd')]&&_0x154519[_0x3bbf17('0x10fd')]['errors']&&_0x154519[_0x3bbf17('0x10fd')][_0x3bbf17('0x4c6')][_0x3bbf17('0x2587')]){_0x1a86c3[_0x3bbf17('0x4c6')]=_0x154519[_0x3bbf17('0x10fd')][_0x3bbf17('0x4c6')]||[{'message':_0x154519[_0x3bbf17('0x684')](),'type':_0x3bbf17('0x2161')}];for(var _0x5ab7a2=0x0;_0x5ab7a2<_0x154519[_0x3bbf17('0x10fd')][_0x3bbf17('0x4c6')][_0x3bbf17('0x2587')];_0x5ab7a2++){_0x4da7aa['error']({'title':_0x154519[_0x3bbf17('0x10fd')][_0x3bbf17('0x4c6')][_0x5ab7a2][_0x3bbf17('0x6c8')],'msg':_0x154519['data'][_0x3bbf17('0x4c6')][_0x5ab7a2][_0x3bbf17('0x1402')]});}}else _0x4da7aa[_0x3bbf17('0x187f')]({'title':_0x154519[_0x3bbf17('0x2fa')]?_0x3bbf17('0x16c2')+_0x154519[_0x3bbf17('0x2fa')]+'\x20-\x20'+_0x154519[_0x3bbf17('0x24df')]:_0x3bbf17('0x2161'),'msg':_0x154519['data']?JSON[_0x3bbf17('0xa48')](_0x154519[_0x3bbf17('0x10fd')][_0x3bbf17('0x1402')]):_0x154519[_0x3bbf17('0x684')]()});});}function _0x19266b(){var _0x56e19a=_0x8a8e3f;_0x1a86c3[_0x56e19a('0x4c6')]=[],_0x202309[_0x160dd5][_0x56e19a('0x264e')]({'id':_0x1a86c3[_0x56e19a('0x1b8e')]['id']},_0x1a86c3[_0x56e19a('0x1b8e')])[_0x56e19a('0x1dc2')]['then'](function(_0x3f5f1e){var _0x2ccc1a=_0x56e19a,_0x45a665=_0x51538b()[_0x2ccc1a('0xe9e')](_0x1a86c3[_0x2ccc1a('0x12ba')],{'id':_0x3f5f1e['id']});_0x45a665&&_0x51538b()[_0x2ccc1a('0x283c')](_0x45a665,_0x3f5f1e),_0x4da7aa[_0x2ccc1a('0xe10')]({'title':_0x2ccc1a('0x1d61'),'msg':_0x1a86c3[_0x2ccc1a('0x1b8e')][_0x2ccc1a('0x25d6')]?_0x1a86c3['report']['name']+_0x2ccc1a('0x20bf'):''}),_0x346eba();})[_0x56e19a('0x253d')](function(_0x4f0ef4){var _0x9e2675=_0x56e19a;if(_0x4f0ef4[_0x9e2675('0x10fd')]&&_0x4f0ef4['data']['errors']&&_0x4f0ef4[_0x9e2675('0x10fd')][_0x9e2675('0x4c6')][_0x9e2675('0x2587')]){_0x1a86c3[_0x9e2675('0x4c6')]=_0x4f0ef4[_0x9e2675('0x10fd')][_0x9e2675('0x4c6')]||[{'message':_0x4f0ef4[_0x9e2675('0x684')](),'type':_0x9e2675('0xc89')}];for(var _0x8c7671=0x0;_0x8c7671<_0x4f0ef4[_0x9e2675('0x10fd')][_0x9e2675('0x4c6')][_0x9e2675('0x2587')];_0x8c7671++){_0x4da7aa[_0x9e2675('0x187f')]({'title':_0x4f0ef4[_0x9e2675('0x10fd')]['errors'][_0x8c7671][_0x9e2675('0x6c8')],'msg':_0x4f0ef4[_0x9e2675('0x10fd')]['errors'][_0x8c7671]['message']});}}else _0x4da7aa['error']({'title':_0x4f0ef4['status']?_0x9e2675('0x16c2')+_0x4f0ef4[_0x9e2675('0x2fa')]+_0x9e2675('0x169e')+_0x4f0ef4[_0x9e2675('0x24df')]:_0x9e2675('0xc89'),'msg':_0x4f0ef4['data']?JSON[_0x9e2675('0xa48')](_0x4f0ef4[_0x9e2675('0x10fd')]['message']):_0x4f0ef4[_0x9e2675('0x684')]()});});}function _0x445245(){var _0x4e8045=_0x8a8e3f;_0x1a86c3[_0x4e8045('0x4c6')]=[];var _0x3279b6=_0x1ca40d[_0x4e8045('0x281e')]()[_0x4e8045('0x110a')](_0x4e8045('0x12a3'))[_0x4e8045('0x15af')](_0x4e8045('0xc7e'))['ariaLabel']('Delete\x20Report')['ok'](_0x4e8045('0x1e76'))['cancel'](_0x4e8045('0x9c6'))[_0x4e8045('0x116d')](event);_0x1ca40d[_0x4e8045('0x1e6d')](_0x3279b6)[_0x4e8045('0xaa5')](function(){var _0x8152d9=_0x4e8045;_0x202309[_0x160dd5][_0x8152d9('0x926')]({'id':_0x1a86c3[_0x8152d9('0x1b8e')]['id']})[_0x8152d9('0x1dc2')][_0x8152d9('0xaa5')](function(){var _0x755c5d=_0x8152d9;_0x51538b()[_0x755c5d('0xf6d')](_0x1a86c3[_0x755c5d('0x12ba')],{'id':_0x1a86c3[_0x755c5d('0x1b8e')]['id']}),_0x4da7aa['success']({'title':_0x755c5d('0x1166'),'msg':_0x1a86c3['report'][_0x755c5d('0x25d6')]?_0x1a86c3[_0x755c5d('0x1b8e')][_0x755c5d('0x25d6')]+_0x755c5d('0xcd9'):''}),_0x346eba();})[_0x8152d9('0x253d')](function(_0x3654ac){var _0x2a4218=_0x8152d9;_0x1a86c3['errors']=_0x3654ac[_0x2a4218('0x10fd')]['errors']||[{'message':_0x3654ac[_0x2a4218('0x684')](),'type':_0x2a4218('0x17f8')}];});},function(){});}function _0x346eba(){_0x1ca40d['hide']();}}const _0x3b2ad6=_0x188463;_0xca893e[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x1dff'),_0x1a8446('0x2a4'),_0x1a8446('0x2484')];function _0xca893e(_0x379134,_0x10843d,_0x4a5196,_0x7f3989){var _0x203201=_0x1a8446,_0x4b49c9=this;_0x4b49c9[_0x203201('0x1b8e')]={},_0x4b49c9[_0x203201('0x1ad5')]=_0x7f3989[_0x203201('0x25e2')],_0x4b49c9['init']=_0x56f9e8,_0x4b49c9['addCondition']=_0x2b3b17,_0x4b49c9[_0x203201('0x2453')]=_0x311230,_0x4b49c9[_0x203201('0x1416')]=_0x1d2d66,_0x4b49c9[_0x203201('0x276e')]=_0x9ff0c2;function _0x56f9e8(_0x34032e,_0x1b4618){var _0xc3ef6a=_0x203201;_0x4b49c9[_0xc3ef6a('0x1b8e')]=_0x34032e,_0x4b49c9[_0xc3ef6a('0x1b8e')][_0xc3ef6a('0xe77')]=angular[_0xc3ef6a('0x19c8')](_0x34032e[_0xc3ef6a('0x1ad5')])||{'group':{'operator':_0xc3ef6a('0x20e6'),'rules':[]}},_0x4b49c9[_0xc3ef6a('0xada')]=typeof _0x1b4618!==_0xc3ef6a('0x1574')?_0x1b4618:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(var _0x22f7c4=0x0;_0x22f7c4<_0x4b49c9[_0xc3ef6a('0x1b8e')]['condition']['group'][_0xc3ef6a('0xc1e')]['length'];_0x22f7c4++){if(_0x4b49c9['report'][_0xc3ef6a('0xe77')][_0xc3ef6a('0x23ea')][_0xc3ef6a('0xc1e')][_0x22f7c4][_0xc3ef6a('0x5f2')]){var _0x417dd2=_0x4b49c9[_0xc3ef6a('0x1b8e')][_0xc3ef6a('0xe77')][_0xc3ef6a('0x23ea')][_0xc3ef6a('0xc1e')][_0x22f7c4][_0xc3ef6a('0x5f2')]['split']('.');_0x417dd2[_0xc3ef6a('0x2587')]===0x1&&(_0x4b49c9['report'][_0xc3ef6a('0xe77')][_0xc3ef6a('0x23ea')][_0xc3ef6a('0xc1e')][_0x22f7c4]['field']=_0x4b49c9['report']['table']+'.'+_0x4b49c9[_0xc3ef6a('0x1b8e')][_0xc3ef6a('0xe77')]['group']['rules'][_0x22f7c4][_0xc3ef6a('0x5f2')]);}}_0x10843d['getColumns'](_0x4b49c9[_0xc3ef6a('0x1b8e')][_0xc3ef6a('0x12b6')])[_0xc3ef6a('0xaa5')](function(_0xcb0205){var _0xf5ad19=_0xc3ef6a;_0x4b49c9[_0xf5ad19('0xe99')]=_0x51538b()[_0xf5ad19('0x1485')](_0x51538b()['keys'](_0xcb0205),[_0xf5ad19('0x1dc2'),_0xf5ad19('0xd92'),_0xf5ad19('0x24a1'),_0xf5ad19('0x19f3')]);})['catch'](function(_0x5e37d5){var _0x53b5a3=_0xc3ef6a;_0x4a5196[_0x53b5a3('0x187f')]({'title':_0x5e37d5[_0x53b5a3('0x2fa')]?_0x53b5a3('0x16c2')+_0x5e37d5[_0x53b5a3('0x2fa')]+_0x53b5a3('0x169e')+_0x5e37d5[_0x53b5a3('0x24df')]:'SYSTEM:DESCRIBE','msg':_0x5e37d5['data']?JSON[_0x53b5a3('0xa48')](_0x5e37d5[_0x53b5a3('0x10fd')]):_0x5e37d5[_0x53b5a3('0x684')]()});});}function _0x2b3b17(_0xf3ed2e){_0xf3ed2e['unshift']({'condition':'=','field':'','value':''});}function _0x311230(_0x2ef82e){_0x2ef82e['push']({'group':{'operator':'AND','rules':[]}});}function _0x1d2d66(_0x50d03f,_0x16ecb8,_0x53fa16){var _0x45f675=_0x203201,_0x2a5e46=_0x379134[_0x45f675('0x281e')]()[_0x45f675('0x110a')](_0x45f675('0x1480'))[_0x45f675('0x102e')]('The\x20item\x20will\x20be\x20deleted.')[_0x45f675('0x5b5')](_0x45f675('0xcd3'))[_0x45f675('0x116d')](_0x53fa16)['ok']('OK')[_0x45f675('0x2030')]('CANCEL');_0x379134['show'](_0x2a5e46)[_0x45f675('0xaa5')](function(){var _0x312fd1=_0x45f675;_0x50d03f[_0x312fd1('0x1280')](_0x16ecb8,0x1);},function(){console['log']('CANCEL');});}function _0x9ff0c2(_0x300d08){var _0x4bb536=_0x203201;return!_0x51538b()[_0x4bb536('0x13d6')](['IS\x20NULL',_0x4bb536('0x1615'),_0x4bb536('0x922'),_0x4bb536('0xe2a')],_0x300d08);}}const _0x23fd19=_0xca893e;_0x4be7d6[_0x1a8446('0x1e33')]=[_0x1a8446('0x157')];function _0x4be7d6(_0xa101b9){var _0x41b7f7=_0x1a8446,_0x5740e4={'cm_companies':_0x41b7f7('0x218'),'cm_contacts':_0x41b7f7('0xdbd'),'cm_hopper':'cmHopper','cm_hopper_final':_0x41b7f7('0x9c3'),'cm_hopper_history':_0x41b7f7('0xadd'),'cm_lists':_0x41b7f7('0x26b4'),'chat_websites':_0x41b7f7('0x10f1'),'chat_queues':_0x41b7f7('0x2837'),'chat_interactions':_0x41b7f7('0x1917'),'chat_messages':_0x41b7f7('0x200b'),'chat_offline_messages':_0x41b7f7('0x24ab'),'report_chat_queue':_0x41b7f7('0x264a'),'report_chat_transfer':_0x41b7f7('0x1e78'),'mail_accounts':_0x41b7f7('0xb86'),'mail_queues':_0x41b7f7('0x21c6'),'mail_interactions':'mailInteraction','mail_messages':'mailMessage','report_mail_queue':_0x41b7f7('0x1dce'),'report_mail_transfer':_0x41b7f7('0x1014'),'openchannel_accounts':'openchannelAccount','openchannel_queues':_0x41b7f7('0x21b2'),'openchannel_interactions':_0x41b7f7('0x97d'),'openchannel_messages':_0x41b7f7('0xc9a'),'report_openchannel_queue':_0x41b7f7('0x3d5'),'report_openchannel_transfer':'openchannelTransferReport','sms_accounts':'smsAccount','sms_queues':'smsQueue','sms_interactions':'smsInteraction','sms_messages':'smsMessage','report_sms_queue':_0x41b7f7('0x3d'),'report_sms_transfer':'smsTransferReport','fax_accounts':'faxAccount','fax_queues':_0x41b7f7('0xaf9'),'fax_interactions':_0x41b7f7('0x927'),'fax_messages':'faxMessage','report_fax_transfer':_0x41b7f7('0xe4'),'report_fax_queue':_0x41b7f7('0x3be'),'report_call':'voiceCallReport','report_agent':_0x41b7f7('0x188e'),'report_square':_0x41b7f7('0x8c5'),'report_member':_0x41b7f7('0x27b8'),'report_queue':_0x41b7f7('0x1ca0'),'report_square_details':'squareReportDetail','report_dial':_0x41b7f7('0x1f51'),'report_jscripty_sessions':_0x41b7f7('0x134a'),'report_jscripty_questions':_0x41b7f7('0x1082'),'report_jscripty_answers':_0x41b7f7('0x20ba'),'users':_0x41b7f7('0x272b'),'voice_recordings':_0x41b7f7('0x2366'),'cdr':_0x41b7f7('0x2749'),'whatsapp_accounts':'whatsappAccount','whatsapp_queues':'whatsappQueue','whatsapp_interactions':_0x41b7f7('0x2732'),'whatsapp_messages':'whatsappMessage','report_whatsapp_queue':_0x41b7f7('0xd94'),'report_whatsapp_transfer':_0x41b7f7('0x14f9')};return{'getMap':function _0x2c072b(){var _0x2e4b42=_0x41b7f7,_0x52ba34=[];return _0x51538b()[_0x2e4b42('0x143e')](_0x5740e4,function(_0x2b3e55,_0x36f265){_0x52ba34['push']({'name':_0x36f265,'api':_0x2b3e55});}),_0x52ba34;},'getColumns':function _0x446070(_0xdbd6df){var _0x22a690=_0x41b7f7,_0x3af279=_0x5740e4[_0xdbd6df];return _0xa101b9[_0x3af279]['describe']()[_0x22a690('0x1dc2')];}};}const _0x2f6c51=_0x4be7d6;_0x403973[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'toasty',_0x1a8446('0x1b8e'),_0x1a8446('0x238f'),'reportField',_0x1a8446('0xf5c'),_0x1a8446('0xe99'),_0x1a8446('0x2484'),_0x1a8446('0x157'),_0x1a8446('0xada')];function _0x403973(_0x4ecb3f,_0xa7dfcf,_0x49de88,_0x41d005,_0x5ba692,_0xbcc1d,_0x1052ba,_0x510f5e,_0x392c3b,_0x5a1e77,_0x1ffe87,_0x150817){var _0x771762=_0x1a8446,_0x2afbb0=this;_0x2afbb0[_0x771762('0x4c6')]=[],_0x2afbb0[_0x771762('0x110a')]='Edit\x20Report\x20Field',_0x2afbb0[_0x771762('0x1b8e')]=_0x5ba692,_0x2afbb0[_0x771762('0x163d')]=angular[_0x771762('0x20a')](_0x1052ba),_0x2afbb0[_0x771762('0x238f')]=_0xbcc1d,_0x2afbb0['metrics']=_0x510f5e,_0x2afbb0[_0x771762('0xe99')]=_0x392c3b,_0x2afbb0[_0x771762('0x2484')]=_0x5a1e77,_0x2afbb0[_0x771762('0x25a2')]=![],_0x2afbb0['crudPermissions']=_0x150817;if(!_0x2afbb0[_0x771762('0x163d')])_0x2afbb0['reportField']={'type':_0x771762('0x6c'),'function':null,'format':null,'groupBy':![],'orderBy':null},_0x2afbb0[_0x771762('0x110a')]='New\x20Report\x20Field',_0x2afbb0['newReportField']=!![];else{_0x2afbb0['reportField']['type']=_0x2afbb0[_0x771762('0x163d')][_0x771762('0x113b')]?'custom':_0x2afbb0[_0x771762('0x163d')][_0x771762('0x6f9')]?_0x771762('0x1bb2'):_0x771762('0x6c');if(_0x2afbb0[_0x771762('0x163d')][_0x771762('0x5f2')]&&!_0x2afbb0[_0x771762('0x163d')][_0x771762('0x113b')]&&_0x51538b()['isNil'](_0x2afbb0[_0x771762('0x163d')][_0x771762('0x6f9')])){var _0x5c754a=_0x2afbb0['reportField'][_0x771762('0x5f2')][_0x771762('0x1a39')]('.');_0x5c754a[_0x771762('0x2587')]===0x1&&(_0x2afbb0[_0x771762('0x163d')][_0x771762('0x5f2')]=_0x2afbb0[_0x771762('0x1b8e')][_0x771762('0x12b6')]+'.'+_0x2afbb0[_0x771762('0x163d')]['field']);}}_0x2afbb0[_0x771762('0xfb6')]=_0x4c69a8,_0x2afbb0[_0x771762('0x6e5')]=_0x1eb865,_0x2afbb0[_0x771762('0x70')]=_0x5dd5c8,_0x2afbb0['closeDialog']=_0x4c61d8;function _0x4c69a8(){var _0x581dd3=_0x771762;_0x2afbb0[_0x581dd3('0x4c6')]=[],_0x2afbb0[_0x581dd3('0x163d')][_0x581dd3('0x113b')]=_0x2afbb0[_0x581dd3('0x163d')][_0x581dd3('0x6c8')]==='custom',_0x2afbb0[_0x581dd3('0x163d')][_0x581dd3('0x6f9')]=_0x2afbb0[_0x581dd3('0x163d')][_0x581dd3('0x6c8')]===_0x581dd3('0x1bb2')?_0x2afbb0['reportField'][_0x581dd3('0x6f9')]:null,_0x2afbb0[_0x581dd3('0x163d')][_0x581dd3('0x1010')]=_0x2afbb0[_0x581dd3('0x1b8e')]['id'],_0x1ffe87['analyticFieldReport'][_0x581dd3('0x242b')](_0x2afbb0[_0x581dd3('0x163d')])[_0x581dd3('0x1dc2')][_0x581dd3('0xaa5')](function(_0x49d465){var _0x4bc66f=_0x581dd3;_0x2afbb0['reportFields'][_0x4bc66f('0x1599')](_0x49d465),_0x41d005[_0x4bc66f('0xe10')]({'title':_0x4bc66f('0x2354'),'msg':_0x2afbb0[_0x4bc66f('0x163d')]['field']?_0x2afbb0[_0x4bc66f('0x163d')][_0x4bc66f('0x5f2')]+_0x4bc66f('0xdca'):_0x2afbb0[_0x4bc66f('0x163d')]['type']+'\x20has\x20been\x20created!'}),_0x4c61d8();})[_0x581dd3('0x253d')](function(_0x198bd0){var _0x3f73fd=_0x581dd3;_0x2afbb0['errors']=_0x198bd0[_0x3f73fd('0x10fd')][_0x3f73fd('0x4c6')]||[{'message':_0x198bd0[_0x3f73fd('0x684')](),'type':_0x3f73fd('0x961')}];});}function _0x1eb865(){var _0x5b4629=_0x771762;_0x2afbb0[_0x5b4629('0x4c6')]=[],_0x2afbb0[_0x5b4629('0x163d')]['custom']=_0x2afbb0[_0x5b4629('0x163d')]['type']===_0x5b4629('0x113b'),_0x2afbb0['reportField'][_0x5b4629('0x6f9')]=_0x2afbb0['reportField'][_0x5b4629('0x6c8')]===_0x5b4629('0x1bb2')?_0x2afbb0[_0x5b4629('0x163d')][_0x5b4629('0x6f9')]:null,_0x1ffe87[_0x5b4629('0x138d')][_0x5b4629('0x264e')]({'id':_0x2afbb0[_0x5b4629('0x163d')]['id']},_0x2afbb0[_0x5b4629('0x163d')])['$promise'][_0x5b4629('0xaa5')](function(_0x1d34bd){var _0x4203d3=_0x5b4629,_0x165460=_0x51538b()[_0x4203d3('0xe9e')](_0x2afbb0[_0x4203d3('0x238f')],{'id':_0x1d34bd['id']});_0x165460&&_0x51538b()[_0x4203d3('0x283c')](_0x165460,_0x1d34bd),_0x41d005[_0x4203d3('0xe10')]({'title':_0x4203d3('0xa54'),'msg':_0x2afbb0[_0x4203d3('0x163d')]['field']?_0x2afbb0['reportField'][_0x4203d3('0x5f2')]+'\x20has\x20been\x20saved!':''}),_0x4c61d8();})[_0x5b4629('0x253d')](function(_0x58ee41){var _0x1b8d3b=_0x5b4629;_0x2afbb0[_0x1b8d3b('0x4c6')]=_0x58ee41[_0x1b8d3b('0x10fd')][_0x1b8d3b('0x4c6')]||[{'message':_0x58ee41[_0x1b8d3b('0x684')](),'type':_0x1b8d3b('0x578')}];});}function _0x5dd5c8(_0x3a275c){var _0x372c9f=_0x771762;_0x2afbb0[_0x372c9f('0x4c6')]=[];var _0x39fa7e=_0x49de88[_0x372c9f('0x281e')]()[_0x372c9f('0x110a')]('Are\x20you\x20sure?')[_0x372c9f('0x15af')](_0x372c9f('0x2839'))['ariaLabel']('Delete\x20Report')['ok'](_0x372c9f('0x1e76'))['cancel']('Cancel')[_0x372c9f('0x116d')](_0x3a275c);_0x49de88['show'](_0x39fa7e)['then'](function(){var _0x31009a=_0x372c9f;_0x1ffe87[_0x31009a('0x138d')][_0x31009a('0x926')]({'id':_0x2afbb0[_0x31009a('0x163d')]['id']})[_0x31009a('0x1dc2')][_0x31009a('0xaa5')](function(){var _0x367e27=_0x31009a;_0x51538b()[_0x367e27('0xf6d')](_0x2afbb0['reportFields'],{'id':_0x2afbb0[_0x367e27('0x163d')]['id']}),_0x41d005[_0x367e27('0xe10')]({'title':_0x367e27('0x2236'),'msg':_0x2afbb0[_0x367e27('0x163d')][_0x367e27('0x5f2')]?_0x2afbb0[_0x367e27('0x163d')][_0x367e27('0x5f2')]+'\x20has\x20been\x20deleted!':''}),_0x4c61d8();})[_0x31009a('0x253d')](function(_0x45c2e2){var _0x245147=_0x31009a;_0x2afbb0['errors']=_0x45c2e2[_0x245147('0x10fd')][_0x245147('0x4c6')]||[{'message':_0x45c2e2['toString'](),'type':_0x245147('0x6e7')}];});},function(){});}function _0x4c61d8(){_0x49de88['hide']();}}const _0x3d2b79=_0x403973,_0x1cfb6a=_0x4fb511['p']+'src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html/dialog-[chunkhash].html';_0x2f44da[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),'describeTable','sqlUtil',_0x1a8446('0xcb3')];function _0x2f44da(_0x328d19,_0x3c07e7,_0x57619c,_0x78222c,_0x1693a3,_0x57954c,_0x6f860a,_0x57b139,_0x245280,_0x26a190){var _0x2652d5=_0x1a8446,_0x401ba2=this;_0x401ba2[_0x2652d5('0x1b8e')]={},_0x401ba2[_0x2652d5('0x238f')]={'count':0x0,'rows':[]},_0x401ba2[_0x2652d5('0x25bc')]=_0x51538b()[_0x2652d5('0x184a')](_0x245280[_0x2652d5('0x3fa')],'value'),_0x401ba2['formats']=_0x51538b()['keyBy'](_0x245280[_0x2652d5('0x16ff')],_0x2652d5('0x12f4')),_0x401ba2[_0x2652d5('0x1663')]=_0x51538b()[_0x2652d5('0x184a')](_0x245280[_0x2652d5('0x2573')],_0x2652d5('0x12f4')),_0x401ba2['orderBy']=_0x51538b()[_0x2652d5('0x184a')](_0x245280[_0x2652d5('0x7e4')],_0x2652d5('0x12f4')),_0x401ba2[_0x2652d5('0x1ee1')]=[],_0x401ba2[_0x2652d5('0x582')]={'fields':_0x2652d5('0x2747'),'nolimit':!![]},_0x401ba2[_0x2652d5('0x1c0c')]={'animation':0x64,'onSort':function _0x50949a(_0x34bc98){var _0x326027=_0x2652d5;_0x6f860a[_0x326027('0x138d')][_0x326027('0x3f1')]({'id':_0x401ba2[_0x326027('0x1b8e')]['id']},_0x34bc98['models'])[_0x326027('0x1dc2')][_0x326027('0xaa5')](function(_0x58ad92){var _0x33acb4=_0x326027;_0x401ba2[_0x33acb4('0x238f')][_0x33acb4('0x580')]=_0x58ad92;})[_0x326027('0x253d')](function(_0x4e14a5){var _0x3cf60f=_0x326027;_0x57954c[_0x3cf60f('0x187f')]({'title':_0x4e14a5[_0x3cf60f('0x2fa')]?_0x3cf60f('0x16c2')+_0x4e14a5[_0x3cf60f('0x2fa')]+_0x3cf60f('0x169e')+_0x4e14a5['statusText']:_0x3cf60f('0x12e5')});});}},_0x401ba2[_0x2652d5('0x2e')]=_0x3f0dda,_0x401ba2[_0x2652d5('0x1416')]=_0x3e7fe4,_0x401ba2['success']=_0x5887a5,_0x401ba2[_0x2652d5('0x889')]=_0x3cf1e0,_0x401ba2[_0x2652d5('0xa47')]=_0x11ad88,_0x401ba2['deleteReportField']=_0x5cf6c5,_0x401ba2['deleteSelectedReportFields']=_0x431444,_0x401ba2[_0x2652d5('0x371')]=_0x3c59fd,_0x401ba2['getMetricValue']=_0x173fc1;function _0x3f0dda(_0x2a6809,_0x428f96){var _0x51870d=_0x2652d5;_0x401ba2[_0x51870d('0x1b8e')]=_0x2a6809,_0x401ba2['query'][_0x51870d('0x1010')]=_0x401ba2[_0x51870d('0x1b8e')]['id'],_0x401ba2[_0x51870d('0xada')]=typeof _0x428f96!==_0x51870d('0x1574')?_0x428f96:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x401ba2['sortableTable'][_0x51870d('0x2686')]=!_0x401ba2['crudPermissions']['canEdit']?!![]:![],_0x57b139['getColumns'](_0x401ba2['report']['table'])[_0x51870d('0xaa5')](function(_0x176f64){var _0xd7c044=_0x51870d;return _0x401ba2[_0xd7c044('0xe99')]=_0x51538b()[_0xd7c044('0x1485')](_0x51538b()[_0xd7c044('0x9f2')](_0x176f64),[_0xd7c044('0x1dc2'),_0xd7c044('0xd92')]),_0x6f860a[_0xd7c044('0x8b5')]['get']({'fields':'id,name,metric,table','nolimit':!![]})[_0xd7c044('0x1dc2')];})[_0x51870d('0xaa5')](function(_0x5c96bd){var _0x26fed3=_0x51870d;_0x401ba2[_0x26fed3('0xf5c')]=_0x5c96bd['rows'];})[_0x51870d('0x253d')](function(_0x1c3d78){var _0x4b0bf3=_0x51870d;_0x57954c[_0x4b0bf3('0x187f')]({'title':_0x1c3d78[_0x4b0bf3('0x2fa')]?_0x4b0bf3('0x16c2')+_0x1c3d78[_0x4b0bf3('0x2fa')]+_0x4b0bf3('0x169e')+_0x1c3d78[_0x4b0bf3('0x24df')]:_0x4b0bf3('0x565'),'msg':_0x1c3d78[_0x4b0bf3('0x10fd')]?JSON[_0x4b0bf3('0xa48')](_0x1c3d78[_0x4b0bf3('0x10fd')]):_0x1c3d78['toString']()});}),_0x401ba2[_0x51870d('0x889')]();}function _0x3e7fe4(_0x971181,_0x3151f3){var _0x4c7123=_0x2652d5,_0x3287d0=_0x78222c['confirm']()[_0x4c7123('0x110a')](_0x4c7123('0x27fc'))['htmlContent'](_0x4c7123('0x389')+_0x971181[_0x4c7123('0x5f2')]+'
'+_0x4c7123('0x210d'))[_0x4c7123('0x5b5')](_0x4c7123('0x1286'))[_0x4c7123('0x116d')](_0x3151f3)['ok']('OK')[_0x4c7123('0x2030')]('CANCEL');_0x78222c[_0x4c7123('0x1e6d')](_0x3287d0)[_0x4c7123('0xaa5')](function(){_0x5cf6c5(_0x971181);},function(){var _0x5e4496=_0x4c7123;console[_0x5e4496('0x18d5')]('CANCEL');});}var _0x1cfa45=!![];_0x3c07e7[_0x2652d5('0x1ccf')](_0x2652d5('0x7b'),function(){var _0x2c6abb=_0x2652d5;_0x1cfa45?_0x57619c(function(){_0x1cfa45=![];}):_0x401ba2[_0x2c6abb('0x889')]();});function _0x5887a5(_0x1a0442){var _0x1bc86d=_0x2652d5;_0x401ba2[_0x1bc86d('0x238f')]=_0x1a0442||{'count':0x0,'rows':[]};}function _0x3cf1e0(){var _0x18abd3=_0x2652d5;_0x401ba2[_0x18abd3('0x159a')]=_0x6f860a[_0x18abd3('0x138d')]['get'](_0x401ba2[_0x18abd3('0x582')],_0x5887a5)[_0x18abd3('0x1dc2')];}function _0x11ad88(_0xc32843,_0x40a2bc){var _0x4c58ae=_0x2652d5;_0x78222c[_0x4c58ae('0x1e6d')]({'controller':_0x4c58ae('0x27bb'),'controllerAs':'vm','templateUrl':_0x1cfb6a,'parent':angular[_0x4c58ae('0x1aa8')](_0x1693a3[_0x4c58ae('0x54c')]),'targetEvent':_0xc32843,'clickOutsideToClose':!![],'locals':{'report':_0x401ba2[_0x4c58ae('0x1b8e')],'reportField':_0x40a2bc,'reportFields':_0x401ba2[_0x4c58ae('0x238f')][_0x4c58ae('0x580')],'metrics':_0x401ba2[_0x4c58ae('0xf5c')],'columns':_0x401ba2[_0x4c58ae('0xe99')],'setting':null,'crudPermissions':_0x401ba2[_0x4c58ae('0xada')]}});}function _0x5cf6c5(_0x5a8f02){var _0x5131f1=_0x2652d5;_0x6f860a[_0x5131f1('0x138d')]['delete']({'id':_0x5a8f02['id']})[_0x5131f1('0x1dc2')][_0x5131f1('0xaa5')](function(){var _0x36ba21=_0x5131f1;_0x401ba2[_0x36ba21('0x1ee1')]=[],_0x51538b()[_0x36ba21('0xf6d')](_0x401ba2[_0x36ba21('0x238f')][_0x36ba21('0x580')],{'id':_0x5a8f02['id']}),_0x401ba2['reportFields'][_0x36ba21('0xd15')]-=0x1,!_0x401ba2[_0x36ba21('0x238f')][_0x36ba21('0x580')]['length']&&_0x401ba2['getReportFields'](),_0x57954c[_0x36ba21('0xe10')]({'title':'Field\x20deleted!','msg':_0x5a8f02[_0x36ba21('0x5f2')]?_0x5a8f02[_0x36ba21('0x5f2')]+_0x36ba21('0xcd9'):''});})['catch'](function(_0x192b3f){var _0x31fab0=_0x5131f1;_0x57954c['error']({'title':_0x192b3f['status']?_0x31fab0('0x16c2')+_0x192b3f['status']+_0x31fab0('0x169e')+_0x192b3f['statusText']:_0x31fab0('0x17ba'),'msg':_0x192b3f[_0x31fab0('0x10fd')]?JSON[_0x31fab0('0xa48')](_0x192b3f[_0x31fab0('0x10fd')]):_0x192b3f[_0x31fab0('0x684')]()});});}function _0x431444(_0x6f5566){var _0xb2da17=_0x2652d5,_0x4f28a2=_0x78222c[_0xb2da17('0x281e')]()[_0xb2da17('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')['htmlContent'](_0xb2da17('0x389')+_0x401ba2[_0xb2da17('0x1ee1')]['length']+_0xb2da17('0x1443')+_0xb2da17('0x210d'))['ariaLabel'](_0xb2da17('0xefc'))[_0xb2da17('0x116d')](_0x6f5566)['ok']('OK')[_0xb2da17('0x2030')](_0xb2da17('0x2410'));_0x78222c[_0xb2da17('0x1e6d')](_0x4f28a2)[_0xb2da17('0xaa5')](function(){var _0x46f77b=_0xb2da17;_0x401ba2[_0x46f77b('0x1ee1')][_0x46f77b('0x15b5')](function(_0x7d6582){_0x5cf6c5(_0x7d6582);}),_0x401ba2[_0x46f77b('0x1ee1')]=[];});}function _0x3c59fd(_0x56212b){var _0x1cc29b=_0x2652d5,_0x5744aa=_0x51538b()[_0x1cc29b('0xe9e')](_0x401ba2[_0x1cc29b('0xf5c')],{'id':_0x56212b});return _0x5744aa?_0x5744aa['name']:_0x26a190[_0x1cc29b('0x213f')](_0x1cc29b('0x240a'));}function _0x173fc1(_0x190c27){var _0x5089ef=_0x2652d5,_0x303c6e=_0x51538b()['find'](_0x401ba2['metrics'],{'id':_0x190c27});return _0x303c6e?_0x303c6e[_0x5089ef('0x1bb2')]:_0x26a190[_0x5089ef('0x213f')](_0x5089ef('0x240a'));}}const _0x1460ac=_0x2f44da;function _0x3b4bb5(){var _0x46f1a9=_0x1a8446,_0x56673b=[{'value':_0x46f1a9('0x15df'),'option':function _0x465e6e(_0x5cb7f5){return'SUM\x20('+_0x5cb7f5+')';}},{'value':_0x46f1a9('0xc48'),'option':function _0x35fea5(_0x48a8c0){var _0x425964=_0x46f1a9;return _0x425964('0x8bf')+_0x48a8c0+')';}},{'value':_0x46f1a9('0xa13'),'option':function _0x2737b6(_0x203032){return'COUNT\x20(DISTINCT\x20'+_0x203032+')';}},{'value':_0x46f1a9('0x1b4'),'option':function _0x23b5c5(_0x21cf20){var _0x53f6e1=_0x46f1a9;return _0x53f6e1('0x61b')+_0x21cf20+')';}},{'value':_0x46f1a9('0x1d58'),'option':function _0x2743f7(_0x33e625){return'MIN\x20('+_0x33e625+')';}},{'value':'AVG','option':function _0x4bc873(_0x1a0bb3){var _0x29a050=_0x46f1a9;return _0x29a050('0x63e')+_0x1a0bb3+')';}},{'value':_0x46f1a9('0x247b'),'option':function _0xade4(_0x5d99a8){var _0x11aebe=_0x46f1a9;return _0x11aebe('0x1a8e')+_0x5d99a8+')';}},{'value':'GROUP_CONCAT\x20ASC','option':function _0x1ad09b(_0x57866c){var _0x17759d=_0x46f1a9;return'GROUP_CONCAT\x20('+_0x57866c+_0x17759d('0xf66')+_0x57866c+_0x17759d('0x1e');}},{'value':_0x46f1a9('0xc4b'),'option':function _0x151d6e(_0x39d3c7){var _0x15f801=_0x46f1a9;return'GROUP_CONCAT\x20('+_0x39d3c7+'\x20ORDER\x20BY\x20'+_0x39d3c7+_0x15f801('0x210e');}}],_0x2ebfd6=[{'value':_0x46f1a9('0x2701'),'option':function _0x5358e0(_0x9938c){var _0x34923b=_0x46f1a9;return _0x34923b('0x19ec')+_0x9938c+')';}},{'value':'DATE','option':function _0x110a5a(_0x3b7529){var _0xb2de46=_0x46f1a9;return _0xb2de46('0x22ca')+_0x3b7529+')';}},{'value':_0x46f1a9('0x3b1'),'option':function _0x2ebf74(_0x20ebcc){var _0x4434b7=_0x46f1a9;return _0x4434b7('0x1581')+_0x20ebcc+')';}},{'value':'ROUND','option':function _0x2195d0(_0x63f913){var _0x264fb7=_0x46f1a9;return _0x264fb7('0x266')+_0x63f913+')';}},{'value':_0x46f1a9('0xf27'),'option':function _0x53ef54(_0x330abe){var _0x20c8e2=_0x46f1a9;return _0x20c8e2('0xa50')+_0x330abe+')';}}],_0x196382=[{'value':![],'option':function _0x5da8a1(){return'No';}},{'value':!![],'option':function _0x36dfb2(_0x492974){var _0x20ffed=_0x46f1a9;return _0x20ffed('0x2111')+_0x492974;}}],_0x4d29c3=[{'value':_0x46f1a9('0x257'),'option':function _0x26a3f4(_0x4b8485){var _0x16378c=_0x46f1a9;return _0x16378c('0x244f')+_0x4b8485+_0x16378c('0x178e');}},{'value':_0x46f1a9('0x79d'),'option':function _0x44778c(_0x3543bb){var _0x48aaa6=_0x46f1a9;return _0x48aaa6('0x244f')+_0x3543bb+_0x48aaa6('0x3a6');}}],_0x1858bd=['=','!=','<','<=','>','>=','LIKE','NOT\x20LIKE','IS\x20NULL',_0x46f1a9('0x1615'),_0x46f1a9('0x922'),'IS\x20NOT\x20EMPTY'];return{'getFunctions':_0x56673b,'getFormats':_0x2ebfd6,'getGroupBy':_0x196382,'getOrderBy':_0x4d29c3,'getConditions':_0x1858bd};}const _0x14eaa4=_0x3b4bb5;_0x54f617[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'toasty','api','report',_0x1a8446('0x1dfd'),_0x1a8446('0x1a50')];function _0x54f617(_0x481405,_0x19387b,_0x49b957,_0x564d9d,_0x5d2cd4,_0x55d635){var _0x23366c=_0x1a8446,_0x88953a=this;_0x88953a['report']=_0x564d9d||{},_0x88953a[_0x23366c('0x1a50')]=_0x55d635&&_0x55d635[_0x23366c('0xd15')]==0x1?_0x55d635[_0x23366c('0x580')][0x0]:null,_0x88953a[_0x23366c('0xada')]=_0x5d2cd4[_0x23366c('0xffd')](_0x88953a[_0x23366c('0x1a50')]?_0x88953a[_0x23366c('0x1a50')]['crudPermissions']:null),_0x88953a[_0x23366c('0xe5c')]=_0x481405[_0x23366c('0x25cf')][_0x23366c('0x25c2')]||0x0,_0x88953a[_0x23366c('0x1cab')]=_0x2ba857,_0x88953a[_0x23366c('0x7cd')]=_0x167889,_0x88953a[_0x23366c('0x61d')]=_0x18d944,_0x88953a[_0x23366c('0x1a28')]=_0x3d4fcb,_0x88953a[_0x23366c('0x1dca')]=_0x41bc19,_0x88953a[_0x23366c('0x4f')]=_0x25ab55,_0x88953a[_0x23366c('0xc46')]=_0x32655f;function _0x2ba857(){var _0x2fbebd=_0x23366c;_0x481405['go'](_0x2fbebd('0x10b1'),{},{'reload':'app.analytics.reports'});}function _0x167889(){var _0xce66a9=_0x23366c;_0x88953a[_0xce66a9('0x1b8e')]['conditions']=angular[_0xce66a9('0xfd8')](_0x88953a[_0xce66a9('0x1b8e')]['condition']),_0x49b957[_0xce66a9('0x16bc')][_0xce66a9('0x264e')]({'id':_0x88953a[_0xce66a9('0x1b8e')]['id']},_0x51538b()[_0xce66a9('0x245')](_0x88953a[_0xce66a9('0x1b8e')],_0xce66a9('0xd44')))[_0xce66a9('0x1dc2')][_0xce66a9('0xaa5')](function(){var _0x302a35=_0xce66a9;_0x19387b[_0x302a35('0xe10')]({'title':'Report\x20updated!','msg':_0x88953a['report'][_0x302a35('0x25d6')]?_0x88953a['report'][_0x302a35('0x25d6')]+_0x302a35('0x1734'):''});})[_0xce66a9('0x253d')](function(_0xaa3050){var _0x54e8f8=_0xce66a9;_0x19387b[_0x54e8f8('0x187f')]({'title':_0xaa3050[_0x54e8f8('0x2fa')]?_0x54e8f8('0x16c2')+_0xaa3050[_0x54e8f8('0x2fa')]+_0x54e8f8('0x169e')+_0xaa3050['statusText']:_0x54e8f8('0x2736'),'msg':_0xaa3050[_0x54e8f8('0x10fd')]?JSON[_0x54e8f8('0xa48')](_0xaa3050[_0x54e8f8('0x10fd')]):_0xaa3050['toString']()});});}function _0x18d944(){var _0x9f086d=_0x23366c;_0x88953a[_0x9f086d('0xe99')]=[],_0x88953a[_0x9f086d('0x580')]=[],_0x88953a[_0x9f086d('0x187f')]=![],_0x49b957[_0x9f086d('0x138d')]['get']({'fields':'field,alias','nolimit':!![],'CustomReportId':_0x88953a[_0x9f086d('0x1b8e')]['id']})[_0x9f086d('0x1dc2')]['then'](function(_0x3fd41e){var _0x3c1bf8=_0x9f086d;return _0x88953a[_0x3c1bf8('0xe99')]=_0x3fd41e?_0x3fd41e[_0x3c1bf8('0x580')]:[],_0x49b957[_0x3c1bf8('0x16bc')][_0x3c1bf8('0x1019')]({'id':_0x88953a[_0x3c1bf8('0x1b8e')]['id']})['$promise'];})[_0x9f086d('0xaa5')](function(_0x16d96d){_0x88953a['rows']=_0x16d96d;})[_0x9f086d('0x253d')](function(_0x44543a){var _0x591857=_0x9f086d;console[_0x591857('0x18d5')](_0x44543a),_0x88953a['error']={'title':_0x44543a[_0x591857('0x2fa')]?_0x591857('0x16c2')+_0x44543a[_0x591857('0x2fa')]+_0x591857('0x169e')+_0x44543a[_0x591857('0x24df')]:'SYSTEM:analyticFieldReport','msg':_0x44543a[_0x591857('0x10fd')]?_0x44543a[_0x591857('0x10fd')][_0x591857('0x1402')]:_0x44543a['toString'](),'sql':_0x44543a[_0x591857('0x10fd')]?_0x44543a[_0x591857('0x10fd')][_0x591857('0x20a2')]?_0x44543a[_0x591857('0x10fd')][_0x591857('0x20a2')][_0x591857('0x3e3')]:_0x591857('0x1afb'):_0x591857('0x1afb')},_0x19387b[_0x591857('0x187f')](_0x88953a[_0x591857('0x187f')]);});}function _0x32655f(_0x2f24e1,_0x425003){var _0x199e7b=_0x23366c;return _0x420d43()(_0x425003,'YYYY-MM-DDTHH:mm:ssZ',!![])['isValid']()&&(_0x425003=_0x420d43()(_0x425003,'')[_0x199e7b('0x1f27')]('YYYY-MM-DD\x20HH:mm:ss')),_0x425003;}function _0x3d4fcb(){var _0x2aab85=_0x23366c;return _0x88953a[_0x2aab85('0x16d6')]=_0x2aab85('0x2440'),_0x49b957[_0x2aab85('0x16bc')][_0x2aab85('0x582')]({'id':_0x88953a[_0x2aab85('0x1b8e')]['id']})[_0x2aab85('0x1dc2')][_0x2aab85('0xaa5')](function(_0x423c21){var _0x98de17=_0x2aab85;_0x88953a['queryResult']=_0x423c21[_0x98de17('0x3e3')];})[_0x2aab85('0x253d')](function(_0x30790e){var _0x4593e0=_0x2aab85;_0x88953a[_0x4593e0('0x16d6')]='',console[_0x4593e0('0x18d5')](_0x30790e),_0x88953a[_0x4593e0('0x187f')]={'title':_0x30790e[_0x4593e0('0x2fa')]?_0x4593e0('0x16c2')+_0x30790e[_0x4593e0('0x2fa')]+_0x4593e0('0x169e')+_0x30790e[_0x4593e0('0x24df')]:_0x4593e0('0xd8b'),'msg':_0x30790e[_0x4593e0('0x10fd')]?_0x30790e[_0x4593e0('0x10fd')][_0x4593e0('0x1402')]:_0x30790e[_0x4593e0('0x684')](),'sql':_0x30790e[_0x4593e0('0x10fd')]?_0x30790e[_0x4593e0('0x10fd')][_0x4593e0('0x20a2')]?_0x30790e[_0x4593e0('0x10fd')][_0x4593e0('0x20a2')][_0x4593e0('0x3e3')]:'NO\x20QUERY':_0x4593e0('0x1afb')},_0x19387b[_0x4593e0('0x187f')](_0x88953a[_0x4593e0('0x187f')]);});}function _0x41bc19(_0x4e5b24,_0x2b3639){var _0x17d762=_0x23366c;if(_0x25ab55(_0x4e5b24))return _0x51538b()[_0x17d762('0x1246')](_0x4e5b24,_0x2b3639)['join'](',');return'';}function _0x25ab55(_0x322160){var _0x3c3908=_0x23366c;return _0x51538b()[_0x3c3908('0x4f')](_0x322160);}}const _0x749fb7=_0x54f617;_0x384701[_0x1a8446('0x1e33')]=[_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'toasty',_0x1a8446('0x1b8e'),_0x1a8446('0x157'),_0x1a8446('0x553')];function _0x384701(_0x47dd20,_0x1611a,_0x2b4ed5,_0x36db16,_0x362eb6,_0x49a484){var _0xb58572=_0x1a8446,_0x450bc4=this;_0x450bc4[_0xb58572('0x4c6')]=[],_0x450bc4[_0xb58572('0x1b8e')]=angular['copy'](_0x36db16),_0x450bc4[_0xb58572('0xc46')]=_0x5547b9,_0x450bc4['closeDialog']=_0x186cf3,_0x2b0845();function _0x2b0845(){var _0x327e4d=_0xb58572;_0x450bc4[_0x327e4d('0xe99')]=[],_0x450bc4['rows']=[],_0x450bc4['error']=![];var _0x5bbf54={'fields':'field,alias','nolimit':!![]};_0x5bbf54[_0x49a484===_0x327e4d('0x16bc')?_0x327e4d('0x1010'):_0x327e4d('0xacf')]=_0x450bc4[_0x327e4d('0x1b8e')]['id'],_0x450bc4['promise']=_0x362eb6['analyticFieldReport'][_0x327e4d('0x2122')](_0x5bbf54)['$promise'][_0x327e4d('0xaa5')](function(_0x3063fb){var _0x4b4634=_0x327e4d;return _0x450bc4[_0x4b4634('0xe99')]=_0x3063fb?_0x3063fb[_0x4b4634('0x580')]:[],_0x362eb6[_0x49a484][_0x4b4634('0x1019')]({'id':_0x450bc4['report']['id']})[_0x4b4634('0x1dc2')];})[_0x327e4d('0xaa5')](function(_0x335696){var _0x4a69ed=_0x327e4d;_0x450bc4[_0x4a69ed('0x580')]=_0x335696;})[_0x327e4d('0x253d')](function(_0x185e6a){var _0x47abf0=_0x327e4d;console[_0x47abf0('0x18d5')](_0x185e6a),_0x450bc4[_0x47abf0('0x187f')]={'title':_0x185e6a[_0x47abf0('0x2fa')]?_0x47abf0('0x16c2')+_0x185e6a[_0x47abf0('0x2fa')]+'\x20-\x20'+_0x185e6a[_0x47abf0('0x24df')]:_0x47abf0('0xd8b'),'msg':_0x185e6a[_0x47abf0('0x10fd')]?_0x185e6a[_0x47abf0('0x10fd')][_0x47abf0('0x1402')]:_0x185e6a[_0x47abf0('0x684')](),'sql':_0x185e6a[_0x47abf0('0x10fd')]?_0x185e6a[_0x47abf0('0x10fd')]['parent']?_0x185e6a[_0x47abf0('0x10fd')][_0x47abf0('0x20a2')][_0x47abf0('0x3e3')]:_0x47abf0('0x1afb'):_0x47abf0('0x1afb')},_0x2b4ed5[_0x47abf0('0x187f')](_0x450bc4['error']);});}function _0x5547b9(_0x296794,_0x11ae6e){var _0x4b6acd=_0xb58572;return _0x420d43()(_0x11ae6e,_0x4b6acd('0x34'),!![])[_0x4b6acd('0x145d')]()&&(_0x11ae6e=_0x420d43()(_0x11ae6e,'')[_0x4b6acd('0x1f27')](_0x4b6acd('0x1463'))),_0x11ae6e;}function _0x186cf3(){var _0x1cc3b4=_0xb58572;_0x1611a[_0x1cc3b4('0x1120')]();}}const _0x1aa498=_0x384701,_0x1b486c=_0x4fb511['p']+_0x1a8446('0xf5f'),_0x59a9af=_0x4fb511['p']+_0x1a8446('0xde8'),_0x4a0ad8=_0x4fb511['p']+_0x1a8446('0x2dc'),_0x4c3690=_0x4fb511['p']+_0x1a8446('0x1a6a');_0x6a7f65['$inject']=['$scope','$timeout',_0x1a8446('0x39b'),_0x1a8446('0x2378'),'$state',_0x1a8446('0x27bf'),_0x1a8446('0xcb3'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0xd39'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x6a7f65(_0x235ca8,_0x1706b3,_0x43ee70,_0x50e8c2,_0xcfbe6,_0x4c9e69,_0x405e59,_0x18519a,_0xe376b2,_0x1ad8c5,_0x19d94f,_0x1e91a1,_0x720cbe){var _0x39ffce=_0x1a8446,_0x50e4e0=this;_0x50e4e0['currentUser']=_0x720cbe[_0x39ffce('0xacc')](),_0x50e4e0[_0x39ffce('0x12ba')]={'count':0x0,'rows':[]},_0x50e4e0[_0x39ffce('0x1e97')]=_0x18519a,_0x50e4e0[_0x39ffce('0x1a50')]=_0xe376b2&&_0xe376b2['count']==0x1?_0xe376b2[_0x39ffce('0x580')][0x0]:null,_0x50e4e0[_0x39ffce('0xada')]=_0x720cbe[_0x39ffce('0xffd')](_0x50e4e0['userProfileSection']?_0x50e4e0[_0x39ffce('0x1a50')][_0x39ffce('0xada')]:null),_0x50e4e0['selectedReports']=[],_0x50e4e0[_0x39ffce('0x582')]={'fields':_0x39ffce('0x735'),'limit':0xa,'page':0x1,'sort':_0x39ffce('0xd82')},_0x50e4e0[_0x39ffce('0x553')]=null,_0x50e4e0['currentPath']='',_0x50e4e0[_0x39ffce('0x197c')]=!![],_0x50e4e0[_0x39ffce('0x1927')]=_0x383160,_0x50e4e0['copydialog']=_0x48d6e2,_0x50e4e0['previewdialog']=_0x6aa957,_0x50e4e0['rundialog']=_0x302757,_0x50e4e0[_0x39ffce('0xa06')]=_0xb41d7a,_0x50e4e0[_0x39ffce('0x271')]=_0x48653a,_0x50e4e0[_0x39ffce('0xe10')]=_0x18743a,_0x50e4e0[_0x39ffce('0x1367')]=_0x231460,_0x50e4e0[_0x39ffce('0x2748')]=_0x159e9b,_0x50e4e0[_0x39ffce('0x1f13')]=_0x1be2b7,_0x50e4e0['deleteReport']=_0x49ab57,_0x50e4e0[_0x39ffce('0x1bac')]=_0x536185,_0x50e4e0[_0x39ffce('0x49c')]=_0x5d19d0,_0x50e4e0[_0x39ffce('0x9a0')]=_0x5c2988,_0x50e4e0[_0x39ffce('0x26f3')]=_0x540717,_0x50e4e0[_0x39ffce('0xbf9')]=_0x19d94f[_0x39ffce('0x580')][0x0]?angular['fromJson'](_0x19d94f[_0x39ffce('0x580')][0x0][_0x39ffce('0x2647')]):[],_0x50e4e0[_0x39ffce('0x1ffc')]=_0x19d94f[_0x39ffce('0x580')][0x1]?angular[_0x39ffce('0x19c8')](_0x19d94f[_0x39ffce('0x580')][0x1][_0x39ffce('0x2647')]):[],_0x50e4e0['treeDefaultConfig']=_0x223a53(![]),_0x50e4e0[_0x39ffce('0x22d6')]=_0x223a53(!![]),_0x50e4e0[_0x39ffce('0x1a98')]=_0x32500e(![]),_0x50e4e0['treeCustomEvents']=_0x32500e(!![]);function _0x383160(_0x1e85b0){var _0x20efc6=_0x39ffce;_0xcfbe6['go'](_0x20efc6('0x906'),{'id':_0x1e85b0['id'],'crudPermissions':_0x50e4e0[_0x20efc6('0xada')]});}function _0x48d6e2(_0x530f19,_0x510bf7){var _0xf65f93=_0x39ffce;_0x50e8c2[_0xf65f93('0x1e6d')]({'controller':_0xf65f93('0x733'),'controllerAs':'vm','templateUrl':_0x1b486c,'parent':angular[_0xf65f93('0x1aa8')](_0x43ee70[_0xf65f93('0x54c')]),'targetEvent':_0x510bf7,'clickOutsideToClose':!![],'locals':{'report':_0x530f19,'apiName':_0x50e4e0['apiName'],'treeCustomData':_0x50e4e0[_0xf65f93('0x135d')][_0xf65f93('0x2433')](!![])[_0xf65f93('0x1208')]('#')}})['finally'](function(){});}function _0x6aa957(_0x5733bd,_0x23db51){var _0x4e2f6f=_0x39ffce;_0x50e8c2['show']({'controller':_0x4e2f6f('0x14d4'),'controllerAs':'vm','templateUrl':_0x59a9af,'parent':angular['element'](_0x43ee70[_0x4e2f6f('0x54c')]),'targetEvent':_0x23db51,'clickOutsideToClose':!![],'locals':{'report':_0x5733bd,'apiName':_0x50e4e0['apiName']}});}function _0x302757(_0x45046e,_0x3be7ea){var _0x56099a=_0x39ffce;_0x50e8c2['show']({'controller':'RunReportDialogController','controllerAs':'vm','templateUrl':_0x4a0ad8,'parent':angular['element'](_0x43ee70[_0x56099a('0x54c')]),'targetEvent':_0x3be7ea,'clickOutsideToClose':!![],'locals':{'report':_0x45046e,'apiName':_0x50e4e0['apiName'],'currentPath':_0x50e4e0['currentPath']}});}function _0xb41d7a(_0x4a106f){var _0x2b22fd=_0x39ffce,_0x565673;_0x1ad8c5[_0x2b22fd('0x8b5')][_0x2b22fd('0x2122')]({'fields':_0x2b22fd('0x9b8'),'nolimit':!![]})[_0x2b22fd('0x1dc2')][_0x2b22fd('0xaa5')](function(_0x37e010){var _0xd18e5d=_0x2b22fd;_0x565673=_0x51538b()['keyBy'](_0x37e010[_0xd18e5d('0x580')],'id');var _0x7cc795={'fields':_0xd18e5d('0x1043'),'nolimit':!![]};return _0x7cc795[_0x50e4e0[_0xd18e5d('0x553')]===_0xd18e5d('0x16bc')?_0xd18e5d('0x1010'):_0xd18e5d('0xacf')]=_0x4a106f['id'],_0x1ad8c5[_0xd18e5d('0x138d')][_0xd18e5d('0x2122')](_0x7cc795)[_0xd18e5d('0x1dc2')];})[_0x2b22fd('0xaa5')](function(_0x303b2a){var _0xc1fe7b=_0x2b22fd;for(var _0x826da=0x0;_0x826da<_0x303b2a[_0xc1fe7b('0x580')][_0xc1fe7b('0x2587')];_0x826da+=0x1){_0x303b2a[_0xc1fe7b('0x580')][_0x826da][_0xc1fe7b('0x6f9')]&&(_0x303b2a[_0xc1fe7b('0x580')][_0x826da][_0xc1fe7b('0x5f2')]=_0x565673[_0x303b2a[_0xc1fe7b('0x580')][_0x826da][_0xc1fe7b('0x6f9')]]['metric'],_0x303b2a['rows'][_0x826da][_0xc1fe7b('0x113b')]=!![]),delete _0x303b2a[_0xc1fe7b('0x580')][_0x826da][_0xc1fe7b('0x6f9')];}var _0x4a4556=_0x4c9e69['document'][_0xc1fe7b('0x531')]('a');_0x4a4556[_0xc1fe7b('0x18ae')]=_0xc1fe7b('0x159')+_0x4c9e69['encodeURIComponent'](angular[_0xc1fe7b('0xfd8')]({'name':_0x4a106f['name'],'description':_0x4a106f[_0xc1fe7b('0x23d0')],'table':_0x4a106f[_0xc1fe7b('0x12b6')],'conditions':_0x4a106f[_0xc1fe7b('0x1ad5')],'joins':_0x4a106f['joins'],'fields':_0x303b2a[_0xc1fe7b('0x580')]})),_0x4a4556[_0xc1fe7b('0x1cf9')]=_0x4a106f[_0xc1fe7b('0x25d6')]+'.json',_0x4a4556[_0xc1fe7b('0xe2e')]=_0xc1fe7b('0x1ed4'),_0x4a4556[_0xc1fe7b('0x467')](),_0x1e91a1[_0xc1fe7b('0xe10')]({'title':'Report\x20downloaded!','msg':_0x4a106f[_0xc1fe7b('0x25d6')]?_0x4a106f[_0xc1fe7b('0x25d6')]+'\x20has\x20been\x20downloaded!':''});})[_0x2b22fd('0x253d')](function(_0x1084cf){var _0xe63b10=_0x2b22fd;_0x1e91a1[_0xe63b10('0x187f')]({'title':_0x1084cf[_0xe63b10('0x2fa')]?_0xe63b10('0x16c2')+_0x1084cf[_0xe63b10('0x2fa')]+_0xe63b10('0x169e')+_0x1084cf[_0xe63b10('0x24df')]:_0xe63b10('0xd18'),'msg':_0x1084cf['data']?JSON[_0xe63b10('0xa48')](_0x1084cf['data']):_0x1084cf['toString']()});});}function _0x48653a(_0x21ccb6,_0x51e1df){var _0x31d4a4=_0x39ffce,_0x4a3d73=_0x50e8c2[_0x31d4a4('0x281e')]()[_0x31d4a4('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20report?')['htmlContent'](_0x31d4a4('0x389')+_0x21ccb6[_0x31d4a4('0x25d6')]+_0x31d4a4('0x697')+_0x31d4a4('0x210d'))[_0x31d4a4('0x5b5')](_0x31d4a4('0x16a'))[_0x31d4a4('0x116d')](_0x51e1df)['ok']('OK')[_0x31d4a4('0x2030')](_0x31d4a4('0x2410'));_0x50e8c2[_0x31d4a4('0x1e6d')](_0x4a3d73)[_0x31d4a4('0xaa5')](function(){_0x49ab57(_0x21ccb6);},function(){var _0x3f33b2=_0x31d4a4;console[_0x3f33b2('0x18d5')](_0x3f33b2('0x2410'));});}var _0x48e471=!![],_0x4e9ffd=0x1;_0x235ca8[_0x39ffce('0x1ccf')](_0x39ffce('0x1788'),function(_0x170692,_0x4ce8f8){var _0x4041f0=_0x39ffce;_0x48e471?_0x1706b3(function(){_0x48e471=![];}):(!_0x4ce8f8&&(_0x4e9ffd=_0x50e4e0[_0x4041f0('0x582')][_0x4041f0('0x41')]),_0x170692!==_0x4ce8f8&&(_0x50e4e0[_0x4041f0('0x582')][_0x4041f0('0x41')]=0x1),!_0x170692&&(_0x50e4e0['query'][_0x4041f0('0x41')]=_0x4e9ffd),_0x50e4e0[_0x4041f0('0x1367')]());}),_0x235ca8[_0x39ffce('0x1ccf')](_0x39ffce('0x1bb7'),function(_0x53b07c){var _0x5e42a7=_0x39ffce;_0x50e4e0[_0x5e42a7('0x1698')]&&_0x50e4e0['treeDefaultInstance'][_0x5e42a7('0x2433')](!![])['search'](_0x53b07c),_0x50e4e0[_0x5e42a7('0x135d')]&&_0x50e4e0[_0x5e42a7('0x135d')][_0x5e42a7('0x2433')](!![])[_0x5e42a7('0x1785')](_0x53b07c);});function _0x18743a(_0x4a68fc){var _0x49cc73=_0x39ffce;_0x50e4e0[_0x49cc73('0x12ba')]=_0x4a68fc||{'count':0x0,'rows':[]};}function _0x231460(){var _0x4b4146=_0x39ffce;_0x50e4e0[_0x4b4146('0x582')][_0x4b4146('0x8b1')]=(_0x50e4e0[_0x4b4146('0x582')][_0x4b4146('0x41')]-0x1)*_0x50e4e0[_0x4b4146('0x582')][_0x4b4146('0xf4d')];if(_0x50e4e0['apiName']){if(_0x50e4e0[_0x4b4146('0x7fc')][_0x4b4146('0x924')]===_0x4b4146('0x178b')||_0x50e4e0[_0x4b4146('0x1a50')][_0x4b4146('0x26cc')])_0x50e4e0[_0x4b4146('0x159a')]=_0x1ad8c5[_0x50e4e0[_0x4b4146('0x553')]][_0x4b4146('0x2122')](_0x50e4e0[_0x4b4146('0x582')],_0x18743a)[_0x4b4146('0x1dc2')];else{var _0x18f71c=[];_0x50e4e0[_0x4b4146('0x159a')]=_0x1ad8c5[_0x50e4e0[_0x4b4146('0x553')]]['get'](_0x50e4e0[_0x4b4146('0x582')])[_0x4b4146('0x1dc2')][_0x4b4146('0xaa5')](function(_0x3620ae){var _0x5de37b=_0x4b4146;return _0x18f71c=_0x3620ae&&_0x3620ae['rows']?_0x3620ae[_0x5de37b('0x580')]:[],_0x18f71c[_0x5de37b('0x2587')]>0x0?_0x1ad8c5[_0x5de37b('0x249a')][_0x5de37b('0x2122')]({'sectionId':_0x50e4e0[_0x5de37b('0x1a50')]['id'],'type':_0x50e4e0[_0x5de37b('0x553')]==='analyticDefaultReport'?'DefaultReports':'CustomReports'})[_0x5de37b('0x1dc2')][_0x5de37b('0xaa5')](function(_0x255471){var _0x216f51=_0x5de37b,_0x41e17a=_0x255471&&_0x255471[_0x216f51('0x580')]?_0x255471[_0x216f51('0x580')]:[];if(_0x41e17a[_0x216f51('0x2587')]>0x0){var _0x4c6f57=[];return _0x18f71c[_0x216f51('0x15b5')](function(_0x5a9911){var _0x3622af=_0x216f51,_0x1757bc=_0x51538b()[_0x3622af('0xe9e')](_0x41e17a,[_0x3622af('0xbcd'),_0x5a9911['id']]);if(_0x1757bc)_0x4c6f57[_0x3622af('0x1599')](_0x5a9911);}),_0x18743a({'count':_0x4c6f57[_0x216f51('0x2587')],'rows':_0x4c6f57});}else return _0x18743a(null);}):_0x18743a(null);});}}}function _0x159e9b(_0x3ec358,_0x3bad95){var _0x694088=_0x39ffce;_0x50e8c2['show']({'controller':_0x694088('0x6aa'),'controllerAs':'vm','templateUrl':_0x4c3690,'parent':angular['element'](_0x43ee70[_0x694088('0x54c')]),'targetEvent':_0x3ec358,'clickOutsideToClose':!![],'locals':{'report':_0x3bad95,'reports':_0x50e4e0[_0x694088('0x12ba')][_0x694088('0x580')],'apiName':_0x50e4e0[_0x694088('0x553')],'currentNode':_0x50e4e0['currentNode'],'setting':null,'crudPermissions':_0x50e4e0[_0x694088('0xada')]}});}function _0x1be2b7(_0x2b623d){var _0xd1f1cc=_0x39ffce;if(_0x2b623d[_0xd1f1cc('0x1945')][_0xd1f1cc('0x6c8')]==='application/json'){var _0x5e11e2=new FileReader();_0x5e11e2[_0xd1f1cc('0x224e')]=function(_0x35009b){var _0x42b70b=_0xd1f1cc;console[_0x42b70b('0x18d5')](_0x35009b[_0x42b70b('0xe2e')][_0x42b70b('0xcd6')]);try{var _0x14279f=atob(_0x35009b[_0x42b70b('0xe2e')][_0x42b70b('0xcd6')][_0x42b70b('0x1a39')](',')[0x1]);_0x14279f=angular[_0x42b70b('0x19c8')](_0x14279f),_0x1ad8c5[_0x42b70b('0x16bc')][_0x42b70b('0x242b')]({'name':_0x14279f[_0x42b70b('0x25d6')],'description':_0x14279f[_0x42b70b('0x23d0')],'table':_0x14279f[_0x42b70b('0x12b6')],'conditions':_0x14279f['conditions'],'joins':_0x14279f[_0x42b70b('0xd44')],'parent':_0x50e4e0[_0x42b70b('0x31c')]['id']})['$promise'][_0x42b70b('0xaa5')](function(_0x33e19d){var _0x8e057=_0x42b70b;_0x50e4e0[_0x8e057('0x12ba')][_0x8e057('0x580')]['unshift'](_0x33e19d),_0x1e91a1[_0x8e057('0xe10')]({'title':_0x8e057('0x13b2'),'msg':_0x33e19d[_0x8e057('0x25d6')]?_0x33e19d[_0x8e057('0x25d6')]+_0x8e057('0x20bf'):''});var _0x36c083=_0x51538b()[_0x8e057('0x1246')](_0x14279f[_0x8e057('0x13a')],function(_0x25c6fd){var _0x1ca3c6=_0x8e057;return _0x51538b()[_0x1ca3c6('0x5c5')]({},_0x25c6fd,{'CustomReportId':_0x33e19d['id']});});return _0x1ad8c5[_0x8e057('0x138d')][_0x8e057('0x1e3b')](_0x36c083)['$promise'];})[_0x42b70b('0xaa5')](function(){var _0x559778=_0x42b70b;_0x1e91a1[_0x559778('0xe10')]({'title':_0x559778('0x570'),'msg':_0x559778('0xedb')});})[_0x42b70b('0x253d')](function(_0x40546f){var _0x46e222=_0x42b70b;_0x1e91a1[_0x46e222('0x187f')]({'title':_0x40546f['status']?_0x46e222('0x16c2')+_0x40546f[_0x46e222('0x2fa')]+_0x46e222('0x169e')+_0x40546f['statusText']:'SYSTEM:GETanalyticReport','msg':_0x40546f[_0x46e222('0x10fd')]?JSON['stringify'](_0x40546f[_0x46e222('0x10fd')]):_0x40546f[_0x46e222('0x684')]()});});}catch(_0xfc93c9){console['error'](_0xfc93c9),_0x1e91a1[_0x42b70b('0x187f')]({'title':_0x42b70b('0x10a3'),'msg':_0xfc93c9[_0x42b70b('0x684')]()});}},_0x5e11e2[_0xd1f1cc('0xc21')](_0x2b623d['file']);}else _0x1e91a1[_0xd1f1cc('0x187f')]({'title':_0xd1f1cc('0x47d'),'msg':_0xd1f1cc('0x4a3')});}function _0x49ab57(_0x58ac4d){var _0x254097=_0x39ffce;_0x50e4e0[_0x254097('0x553')]&&_0x1ad8c5[_0x50e4e0[_0x254097('0x553')]][_0x254097('0x926')]({'id':_0x58ac4d['id']})[_0x254097('0x1dc2')][_0x254097('0xaa5')](function(){var _0x41b759=_0x254097;_0x51538b()[_0x41b759('0xf6d')](_0x50e4e0[_0x41b759('0x12ba')][_0x41b759('0x580')],{'id':_0x58ac4d['id']}),_0x50e4e0[_0x41b759('0x12ba')][_0x41b759('0xd15')]-=0x1,!_0x50e4e0[_0x41b759('0x12ba')][_0x41b759('0x580')]['length']&&_0x50e4e0['getReports'](),_0x1e91a1[_0x41b759('0xe10')]({'title':_0x41b759('0x1b50'),'msg':_0x58ac4d[_0x41b759('0x25d6')]?_0x58ac4d[_0x41b759('0x25d6')]+_0x41b759('0xcd9'):''});})[_0x254097('0x253d')](function(_0x592f0e){var _0x23dd5f=_0x254097;if(_0x592f0e[_0x23dd5f('0x10fd')]&&_0x592f0e['data'][_0x23dd5f('0x4c6')]&&_0x592f0e['data'][_0x23dd5f('0x4c6')]['length']){_0x50e4e0[_0x23dd5f('0x4c6')]=_0x592f0e['data'][_0x23dd5f('0x4c6')]||[{'message':_0x592f0e[_0x23dd5f('0x684')](),'type':'api.analyticreport.delete'}];for(var _0x1a1d81=0x0;_0x1a1d81<_0x592f0e[_0x23dd5f('0x10fd')]['errors'][_0x23dd5f('0x2587')];_0x1a1d81++){_0x1e91a1[_0x23dd5f('0x187f')]({'title':_0x592f0e[_0x23dd5f('0x10fd')][_0x23dd5f('0x4c6')][_0x1a1d81]['type'],'msg':_0x592f0e[_0x23dd5f('0x10fd')][_0x23dd5f('0x4c6')][_0x1a1d81]['message']});}}else _0x1e91a1['error']({'title':_0x592f0e[_0x23dd5f('0x2fa')]?'API:'+_0x592f0e[_0x23dd5f('0x2fa')]+_0x23dd5f('0x169e')+_0x592f0e[_0x23dd5f('0x24df')]:'api.analyticreport.delete','msg':_0x592f0e[_0x23dd5f('0x10fd')]?JSON[_0x23dd5f('0xa48')](_0x592f0e[_0x23dd5f('0x10fd')][_0x23dd5f('0x1402')]):_0x592f0e[_0x23dd5f('0x1402')]||_0x592f0e[_0x23dd5f('0x684')]()});});}function _0x536185(){var _0x5b30a8=_0x39ffce,_0x361359=angular[_0x5b30a8('0x20a')](_0x50e4e0[_0x5b30a8('0x1f80')]);return _0x50e4e0[_0x5b30a8('0x1f80')]=[],_0x361359;}function _0x5d19d0(_0x45a02a){var _0x23cde7=_0x39ffce,_0x2671e8=_0x50e8c2['confirm']()[_0x23cde7('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20reports?')[_0x23cde7('0x102e')](_0x23cde7('0x389')+_0x50e4e0['selectedReports'][_0x23cde7('0x2587')]+'\x20selected
'+_0x23cde7('0x210d'))[_0x23cde7('0x5b5')](_0x23cde7('0x13de'))[_0x23cde7('0x116d')](_0x45a02a)['ok']('OK')[_0x23cde7('0x2030')]('CANCEL');_0x50e8c2[_0x23cde7('0x1e6d')](_0x2671e8)[_0x23cde7('0xaa5')](function(){var _0x2db7a8=_0x23cde7;_0x50e4e0['selectedReports'][_0x2db7a8('0x15b5')](function(_0x37ea69){_0x49ab57(_0x37ea69);}),_0x50e4e0[_0x2db7a8('0x1f80')]=[];});}function _0x5c2988(){var _0x312b3a=_0x39ffce;_0x50e4e0[_0x312b3a('0x1f80')]=[];}function _0x540717(){var _0x5b71cd=_0x39ffce;_0x50e4e0['selectedReports']=_0x50e4e0[_0x5b71cd('0x12ba')][_0x5b71cd('0x580')];}function _0x358370(_0x341d92,_0x4272f2){var _0x19b32b=_0x39ffce;_0x50e4e0[_0x19b32b('0x1698')]['jstree'](!![])[_0x19b32b('0xacd')](),_0x50e4e0['treeDefaultInstance'][_0x19b32b('0x2433')](!![])[_0x19b32b('0x82c')](),_0x50e4e0[_0x19b32b('0x31c')]=_0x4272f2['node'],_0x50e4e0['currentNode'][_0x19b32b('0x113b')]=!![],_0x50e4e0[_0x19b32b('0x2451')]=_0x50e4e0[_0x19b32b('0x135d')][_0x19b32b('0x2433')](!![])[_0x19b32b('0x801')](_0x50e4e0['currentNode'])[_0x19b32b('0x19c4')]('/\x20'),_0x50e4e0['apiName']=_0x19b32b('0x16bc'),_0x50e4e0[_0x19b32b('0x582')][_0x19b32b('0x20a2')]=_0x4272f2[_0x19b32b('0xdf1')]['id'],_0x231460();}function _0x5c538a(_0xc3423e,_0x190104){var _0x21c62a=_0x39ffce;_0x50e4e0['treeCustomInstance'][_0x21c62a('0x2433')](!![])[_0x21c62a('0xacd')](),_0x50e4e0[_0x21c62a('0x135d')][_0x21c62a('0x2433')](!![])[_0x21c62a('0x82c')](),_0x50e4e0['currentNode']=_0x190104['node'],_0x50e4e0[_0x21c62a('0x31c')]['custom']=![],_0x50e4e0[_0x21c62a('0x2451')]=_0x50e4e0[_0x21c62a('0x1698')][_0x21c62a('0x2433')](!![])[_0x21c62a('0x801')](_0x50e4e0[_0x21c62a('0x31c')])[_0x21c62a('0x19c4')]('/\x20'),_0x50e4e0[_0x21c62a('0x553')]='analyticDefaultReport',_0x50e4e0[_0x21c62a('0x582')][_0x21c62a('0x20a2')]=_0x190104[_0x21c62a('0xdf1')]['id'],_0x231460();}function _0x5d21bf(_0x25ac7e,_0x12b0ca){var _0x4e8d4d=_0x39ffce,_0x49702a=angular[_0x4e8d4d('0xfd8')](_0x50e4e0[_0x4e8d4d('0x135d')][_0x4e8d4d('0x2433')](!![])[_0x4e8d4d('0x1208')]('#'));_0x1ad8c5[_0x4e8d4d('0x37f')][_0x4e8d4d('0x264e')]({'id':0x2,'tree':_0x49702a})[_0x4e8d4d('0x1dc2')]['then'](function(){var _0x52f4a2=_0x4e8d4d;_0x19d94f[_0x52f4a2('0x580')][0x1]&&(_0x19d94f[_0x52f4a2('0x580')][0x1][_0x52f4a2('0x2647')]=_0x49702a),_0x1e91a1[_0x52f4a2('0xe10')]({'title':'Node\x20Updated','msg':_0x12b0ca[_0x52f4a2('0xdf1')][_0x52f4a2('0xb37')]?_0x12b0ca[_0x52f4a2('0xdf1')]['text']+_0x52f4a2('0x1734'):_0x52f4a2('0x3f6')});})[_0x4e8d4d('0x253d')](function(_0x255bb8){var _0x346e83=_0x4e8d4d;_0x1e91a1[_0x346e83('0x187f')]({'title':_0x255bb8[_0x346e83('0x2fa')]?_0x346e83('0x16c2')+_0x255bb8[_0x346e83('0x2fa')]+_0x346e83('0x169e')+_0x255bb8[_0x346e83('0x24df')]:_0x346e83('0xd29'),'msg':_0x255bb8[_0x346e83('0x10fd')]?JSON[_0x346e83('0xa48')](_0x255bb8['data']):_0x255bb8[_0x346e83('0x684')]()});});}function _0x223a53(_0x9c2093){var _0x503c31=_0x39ffce;return{'core':{'multiple':![],'animation':!![],'error':function _0x19c8bb(_0x3a97e8){var _0x11e730=a0_0x1149;console[_0x11e730('0x187f')](_0x11e730('0x83e')+angular[_0x11e730('0xfd8')](_0x3a97e8));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x9c2093?[_0x503c31('0x1e94'),_0x503c31('0x1509'),'search','state','wholerow']:[_0x503c31('0x1785'),'state',_0x503c31('0x159e')],'contextmenu':{'items':function _0x415dd9(_0x1931ed){var _0x20d34b=_0x503c31,_0x20d0e9={};return _0x50e4e0['crudPermissions'][_0x20d34b('0x1c1d')]&&_0x51538b()[_0x20d34b('0x26ee')](_0x20d0e9,{'create':{'label':_0x405e59['instant'](_0x20d34b('0x188f')),'action':function _0x53a051(){var _0xbc4baa=_0x20d34b;_0x1931ed=_0x50e4e0[_0xbc4baa('0x135d')][_0xbc4baa('0x2433')](!![])[_0xbc4baa('0x9e1')](_0x1931ed),_0x50e4e0['treeCustomInstance']['jstree'](!![])['edit'](_0x1931ed);}},'rename':{'_disabled':_0x1931ed[_0x20d34b('0x20a2')]==='#','label':_0x405e59[_0x20d34b('0x213f')]('ANALYTICS.RENAME'),'action':function _0x149343(){var _0x59f271=_0x20d34b;_0x50e4e0[_0x59f271('0x135d')][_0x59f271('0x2433')](!![])[_0x59f271('0x13df')](_0x1931ed);}}}),_0x50e4e0[_0x20d34b('0xada')][_0x20d34b('0x280')]&&_0x51538b()[_0x20d34b('0x26ee')](_0x20d0e9,{'remove':{'_disabled':_0x1931ed[_0x20d34b('0x20a2')]==='#','label':_0x405e59[_0x20d34b('0x213f')](_0x20d34b('0x45f')),'action':function _0x113e18(){var _0x51cdbd=_0x20d34b,_0x1867bb=_0x50e8c2[_0x51cdbd('0x281e')]()[_0x51cdbd('0x110a')](_0x51cdbd('0x1525'))[_0x51cdbd('0x102e')](_0x51cdbd('0x389')+(_0x1931ed[_0x51cdbd('0xb37')]?_0x1931ed[_0x51cdbd('0xb37')]:_0x51cdbd('0xf67'))+''+_0x51cdbd('0x174'))['ariaLabel'](_0x51cdbd('0x156a'))['ok']('OK')[_0x51cdbd('0x2030')](_0x51cdbd('0x2410'));_0x50e8c2[_0x51cdbd('0x1e6d')](_0x1867bb)[_0x51cdbd('0xaa5')](function(){var _0x7d2141=_0x51cdbd,_0x3e9567=_0x50e4e0[_0x7d2141('0x135d')][_0x7d2141('0x2433')](!![])[_0x7d2141('0x2832')](_0x1931ed);_0x3e9567=_0x50e4e0[_0x7d2141('0x135d')]['jstree'](!![])[_0x7d2141('0x22c1')](_0x3e9567),_0x50e4e0['treeCustomInstance'][_0x7d2141('0x2433')](!![])[_0x7d2141('0x2141')](_0x1931ed),_0x51c196([_0x1931ed['id']][_0x7d2141('0x9e4')](_0x1931ed['children_d']||[])),_0x50e4e0['treeCustomInstance'][_0x7d2141('0x2433')](!![])[_0x7d2141('0xe1')](_0x3e9567);});}}}),_0x20d0e9;}}};}function _0x51c196(_0x1d7666){var _0x528cf9=_0x39ffce;return _0x1ad8c5[_0x528cf9('0x16bc')][_0x528cf9('0x2122')]({'parent':_0x1d7666[_0x528cf9('0x19c4')](','),'fields':'id,name'})['$promise']['then'](function(_0x55a55d){var _0x3449a3=_0x528cf9;_0x55a55d&&_0x55a55d['rows']&&_0x55a55d[_0x3449a3('0x580')]['forEach'](function(_0x128e75){_0x49ab57(_0x128e75);});})[_0x528cf9('0x253d')](function(_0x1e7460){var _0xf7c7bc=_0x528cf9;_0x1e91a1[_0xf7c7bc('0x187f')]({'title':_0x1e7460[_0xf7c7bc('0x2fa')]?_0xf7c7bc('0x16c2')+_0x1e7460[_0xf7c7bc('0x2fa')]+_0xf7c7bc('0x169e')+_0x1e7460[_0xf7c7bc('0x24df')]:'SYSTEM:DELETEreportsByParents','msg':_0x1e7460['data']?JSON[_0xf7c7bc('0xa48')](_0x1e7460[_0xf7c7bc('0x10fd')]):_0x1e7460[_0xf7c7bc('0x684')]()});});}function _0x32500e(_0xc2ce1f){return _0xc2ce1f?{'create_node':_0x5d21bf,'rename_node':_0x5d21bf,'move_node':_0x5d21bf,'delete_node':_0x5d21bf,'select_node':_0x358370}:{'select_node':_0x5c538a};}}const _0x53e17a=_0x6a7f65,_0x32b861=_0x4fb511['p']+_0x1a8446('0x472');_0x58a334['$inject']=[_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),'report',_0x1a8446('0x157'),'apiName',_0x1a8446('0x39b'),'currentPath'];function _0x58a334(_0x30cde3,_0x1283f8,_0x584256,_0x1edaf1,_0xcc3c25,_0xd6a49c,_0x59a6af,_0xe1847f){var _0x34be0c=_0x1a8446,_0x5c628a=this;_0x5c628a['errors']=[],_0x5c628a[_0x34be0c('0x1b8e')]=angular['copy'](_0x1edaf1),_0x5c628a['export']={},_0x5c628a[_0x34be0c('0x246c')]=_0x21fb97,_0x5c628a[_0x34be0c('0x2023')]=_0xc68bf1,_0x5c628a['refreshDate']=_0x1ca8b2,_0x1ca8b2();function _0x1ca8b2(){var _0x21db68=_0x34be0c;_0x5c628a[_0x21db68('0x1bbb')]={'id':_0x5c628a[_0x21db68('0x1b8e')]['id'],'name':_0x5c628a[_0x21db68('0x1b8e')]['name'],'startDate':new Date(_0x420d43()()[_0x21db68('0x206d')](_0x21db68('0xa7c'))),'endDate':new Date(_0x420d43()()[_0x21db68('0x173a')](_0x21db68('0xa7c'))),'output':'xlsx','fullPath':_0xe1847f?_0xe1847f+'/'+_0x5c628a[_0x21db68('0x1b8e')]['name']:_0x5c628a[_0x21db68('0x1b8e')][_0x21db68('0x25d6')]};}function _0x21fb97(_0x1716d6){var _0x4b43d9=_0x34be0c;_0x5c628a[_0x4b43d9('0x4c6')]=[],_0x5c628a[_0x4b43d9('0x1d55')]=_0x51538b()[_0x4b43d9('0x26ee')]({},_0x5c628a[_0x4b43d9('0x1bbb')],{'startDate':_0x420d43()(_0x5c628a[_0x4b43d9('0x1bbb')][_0x4b43d9('0x10e')])[_0x4b43d9('0x1f27')](_0x4b43d9('0x1463')),'endDate':_0x420d43()(_0x5c628a[_0x4b43d9('0x1bbb')]['endDate'])['format'](_0x4b43d9('0x1463'))}),_0xcc3c25[_0xd6a49c][_0x4b43d9('0xd9f')](_0x5c628a[_0x4b43d9('0x1d55')])['$promise'][_0x4b43d9('0xaa5')](function(_0x24c60f){var _0x26989a=_0x4b43d9;_0x5c628a[_0x26989a('0x1bbb')][_0x26989a('0x18c0')]==='web'?_0x1283f8[_0x26989a('0x1e6d')]({'controller':'WebReportDialogController','controllerAs':'vm','templateUrl':_0x32b861,'parent':angular[_0x26989a('0x1aa8')](_0x59a6af[_0x26989a('0x54c')]),'targetEvent':_0x1716d6,'skipHide':!![],'locals':{'apiName':_0xd6a49c,'exportDate':_0x5c628a['exportDate'],'results':_0x24c60f},'resolve':{'columns':[_0x26989a('0x1d16'),function _0x3ef606(_0x4ea661){var _0x44c676=_0x26989a,_0x14d3a7={'fields':_0x44c676('0x18cf'),'nolimit':!![]};return _0x14d3a7[_0xd6a49c===_0x44c676('0x16bc')?_0x44c676('0x1010'):_0x44c676('0xacf')]=_0x5c628a[_0x44c676('0x1b8e')]['id'],_0x4ea661['resolve']('analyticFieldReport@get',_0x14d3a7);}]}}):(_0x584256[_0x26989a('0xe10')]({'title':_0x26989a('0xae1'),'msg':_0x5c628a[_0x26989a('0x1b8e')][_0x26989a('0x25d6')]?_0x5c628a[_0x26989a('0x1b8e')]['name']+'\x20has\x20been\x20run!':''}),_0xc68bf1());})['catch'](function(_0x3c3d63){var _0x526336=_0x4b43d9;_0x584256[_0x526336('0x187f')]({'title':_0x3c3d63[_0x526336('0x2fa')]?_0x526336('0x16c2')+_0x3c3d63[_0x526336('0x2fa')]+'\x20-\x20'+_0x3c3d63[_0x526336('0x24df')]:_0x526336('0x565'),'msg':_0x3c3d63[_0x526336('0x10fd')]?JSON['stringify'](_0x3c3d63[_0x526336('0x10fd')][_0x526336('0x1402')]):_0x3c3d63['toString']()});});}function _0xc68bf1(){var _0x4718fd=_0x34be0c;_0x1283f8[_0x4718fd('0x1120')]();}}const _0x3b1ccc=_0x58a334;_0x207973[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),'api',_0x1a8446('0xe99'),_0x1a8446('0xcdc'),_0x1a8446('0x553'),_0x1a8446('0x1d55')];function _0x207973(_0x5db77d,_0x736f58,_0x5f0864,_0x1ec833,_0x1b6bc4,_0x463bb3,_0x3c1a3c){var _0x19f2f7=_0x1a8446,_0x8a165a=this;_0x8a165a[_0x19f2f7('0x4c6')]=[],_0x8a165a[_0x19f2f7('0xe99')]=_0x1ec833?_0x1ec833[_0x19f2f7('0x580')]:[],_0x8a165a['results']=_0x1b6bc4||{'rows':[],'count':0x0},_0x8a165a['query']={'limit':0xa,'page':0x1},_0x8a165a[_0x19f2f7('0x2023')]=_0x259422,_0x8a165a['getResults']=_0x123f20,_0x8a165a[_0x19f2f7('0xc46')]=_0x16fd11;function _0x123f20(){var _0x131765=_0x19f2f7;_0x3c1a3c[_0x131765('0x8b1')]=(_0x8a165a[_0x131765('0x582')][_0x131765('0x41')]-0x1)*_0x8a165a[_0x131765('0x582')][_0x131765('0xf4d')],_0x3c1a3c[_0x131765('0xf4d')]=_0x8a165a[_0x131765('0x582')][_0x131765('0xf4d')],_0x8a165a['promise']=_0x5f0864[_0x463bb3]['run'](_0x3c1a3c,_0xfcde20)['$promise'];}function _0x16fd11(_0x31a5fd,_0x689581){var _0x4c9096=_0x19f2f7;return _0x420d43()(_0x689581,_0x4c9096('0x34'),!![])[_0x4c9096('0x145d')]()&&(_0x689581=_0x420d43()(_0x689581,'')[_0x4c9096('0x1f27')](_0x4c9096('0x1463'))),_0x689581;}function _0xfcde20(_0x1c81cd){_0x8a165a['results']=_0x1c81cd||{'count':0x0,'rows':[]};}function _0x259422(){var _0xab950a=_0x19f2f7;_0x5db77d[_0xab950a('0x1120')]();}}const _0x13ade6=_0x207973;_0xc9c709[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0xc9c709(_0x1b3e07){var _0x31a283=_0x1a8446;_0x1b3e07['state'](_0x31a283('0x10b1'),{'url':_0x31a283('0xba7'),'views':{'content@app':{'templateUrl':_0x396f6d,'controller':_0x31a283('0x22a')}},'resolve':{'treeReports':[_0x31a283('0x1d16'),function _0x5c534a(_0x2f9975){var _0x43e8da=_0x31a283;return _0x2f9975[_0x43e8da('0x149f')](_0x43e8da('0x179b'),{'fields':_0x43e8da('0x763'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x31a283('0x1d16'),_0x31a283('0x1dfd'),function _0x364728(_0x27bbc7,_0x5a85d1){var _0x37fcab=_0x31a283;return _0x27bbc7[_0x37fcab('0x149f')]('userProfile@get',{'fields':_0x37fcab('0x1bb0'),'id':_0x5a85d1[_0x37fcab('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x31a283('0x1d16'),'Auth',function _0x1ebbe1(_0x5b46cd,_0x4368c4){var _0x41f1c2=_0x31a283;return _0x5b46cd[_0x41f1c2('0x149f')](_0x41f1c2('0x89e'),{'fields':_0x41f1c2('0xe6a'),'userProfileId':_0x4368c4[_0x41f1c2('0xacc')]()[_0x41f1c2('0x2168')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x31a283('0xe5e')})[_0x31a283('0xb46')](_0x31a283('0x906'),{'url':_0x31a283('0xad'),'views':{'content@app':{'templateUrl':_0x59ebc2,'controller':'ReportController\x20as\x20vm'}},'resolve':{'report':[_0x31a283('0x1d16'),_0x31a283('0x703'),'$q',_0x31a283('0x1dff'),function _0x1113ab(_0x1c2284,_0x4db697,_0x5987a3,_0x4a8431){var _0x27a818=_0x31a283,_0x1b9d49;return _0x1c2284[_0x27a818('0x149f')](_0x27a818('0x118a'),{'fields':_0x27a818('0x2235'),'id':_0x4db697['id']})[_0x27a818('0xaa5')](function(_0x20f202){var _0x13a4d1=_0x27a818,_0x3bf4f2=[];_0x1b9d49=_0x20f202;if(_0x1b9d49[_0x13a4d1('0xd44')])try{_0x1b9d49[_0x13a4d1('0xd44')]=JSON[_0x13a4d1('0x9b6')](_0x1b9d49[_0x13a4d1('0xd44')]);for(var _0x53120e=0x0;_0x53120e<_0x1b9d49[_0x13a4d1('0xd44')][_0x13a4d1('0x2587')];_0x53120e+=0x1){_0x3bf4f2['push'](_0x4a8431[_0x13a4d1('0xd50')](_0x1b9d49['joins'][_0x53120e]['foreignTable']));}}catch(_0x17331e){console[_0x13a4d1('0x18d5')](_0x17331e);}return _0x5987a3[_0x13a4d1('0xa15')](_0x3bf4f2);})[_0x27a818('0xaa5')](function(_0x3b8cfd){var _0x1a5a9c=_0x27a818;for(var _0xbceec=0x0;_0xbceec<_0x3b8cfd[_0x1a5a9c('0x2587')];_0xbceec+=0x1){_0x1b9d49[_0x1a5a9c('0xd44')][_0xbceec][_0x1a5a9c('0x18b9')]=_0x51538b()[_0x1a5a9c('0x1485')](_0x51538b()[_0x1a5a9c('0x9f2')](_0x3b8cfd[_0xbceec]),[_0x1a5a9c('0x1dc2'),_0x1a5a9c('0xd92')]);}return _0x1b9d49;});}],'userProfileSection':[_0x31a283('0x1d16'),_0x31a283('0x1dfd'),function _0x271d28(_0x2c58e6,_0x251caa){var _0x233765=_0x31a283;return _0x2c58e6[_0x233765('0x149f')]('userProfileSection@get',{'fields':_0x233765('0xe6a'),'userProfileId':_0x251caa['getCurrentUser']()[_0x233765('0x2168')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x31a283('0xe5e')});}angular['module'](_0x1a8446('0x10b1'),['ngJsTree'])[_0x1a8446('0x1b14')](_0xc9c709)[_0x1a8446('0x780')]('CopyReportDialogController',_0x45e1b6)[_0x1a8446('0x780')]('CreateOrEditReportDialogController',_0x3b2ad6)['controller']('ReportConditionsController',_0x23fd19)[_0x1a8446('0x1be9')](_0x1a8446('0x1dff'),_0x2f6c51)[_0x1a8446('0x780')](_0x1a8446('0x27bb'),_0x3d2b79)[_0x1a8446('0x780')](_0x1a8446('0x12a8'),_0x1460ac)['factory']('sqlUtil',_0x14eaa4)[_0x1a8446('0x780')]('ReportController',_0x749fb7)[_0x1a8446('0x780')](_0x1a8446('0x14d4'),_0x1aa498)[_0x1a8446('0x780')](_0x1a8446('0x125a'),_0x53e17a)[_0x1a8446('0x780')](_0x1a8446('0x1a94'),_0x3b1ccc)['controller']('WebReportDialogController',_0x13ade6),_0xccd884['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location','$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x2336'),_0x1a8446('0x1cdc'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0xccd884(_0x27bf5a,_0x7dcd12,_0x1b1a8d,_0x4ffbd1,_0x334bab,_0x352ad4,_0x52ec8c,_0x11f9f1,_0x2166d9,_0x5affbc,_0x3cf257,_0x13abff,_0x4b2853,_0x4efaf6){var _0x1e049b=_0x1a8446,_0x16090b=this;_0x16090b['currentUser']=_0x3cf257['getCurrentUser'](),_0x16090b[_0x1e049b('0x4c6')]=[],_0x16090b['setting']=_0x4b2853,_0x16090b['license']=_0x13abff,_0x16090b[_0x1e049b('0xada')]=_0x4efaf6,_0x16090b[_0x1e049b('0x9f0')]={},_0x16090b[_0x1e049b('0x1d53')]=_0x16090b[_0x1e049b('0x143f')]&&_0x16090b['setting'][_0x1e049b('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x16090b[_0x1e049b('0x110a')]=_0x1e049b('0x1efa'),_0x16090b['extractedReport']=angular[_0x1e049b('0x20a')](_0x2166d9),_0x16090b['extractedReports']=_0x11f9f1,_0x16090b[_0x1e049b('0x14df')]=![];!_0x16090b[_0x1e049b('0x1cdc')]&&(_0x16090b[_0x1e049b('0x1cdc')]={},_0x16090b[_0x1e049b('0x110a')]='ANALYTICS.NEW_EXTRACTEDREPORT',_0x16090b[_0x1e049b('0x14df')]=!![]);_0x16090b[_0x1e049b('0x1e55')]=_0x711241,_0x16090b[_0x1e049b('0x14f2')]=_0xdbb1cc,_0x16090b[_0x1e049b('0x12f5')]=_0x3886c4,_0x16090b[_0x1e049b('0xc09')]=_0x174ed9,_0x16090b[_0x1e049b('0x2023')]=_0x3c1e0d;function _0x711241(){var _0x2cec27=_0x1e049b;_0x16090b['errors']=[],_0x5affbc[_0x2cec27('0x1d9d')][_0x2cec27('0x242b')](_0x16090b[_0x2cec27('0x1cdc')])[_0x2cec27('0x1dc2')][_0x2cec27('0xaa5')](function(_0x27555f){var _0x2accd3=_0x2cec27;_0x16090b[_0x2accd3('0x2336')][_0x2accd3('0x6ee')](_0x27555f[_0x2accd3('0x256a')]()),_0x52ec8c[_0x2accd3('0xe10')]({'title':_0x2accd3('0x2095'),'msg':_0x16090b[_0x2accd3('0x1cdc')][_0x2accd3('0x25d6')]?_0x16090b[_0x2accd3('0x1cdc')][_0x2accd3('0x25d6')]+_0x2accd3('0xdca'):''}),_0x3c1e0d(_0x27555f);})['catch'](function(_0x1cf346){var _0x2d3b79=_0x2cec27;if(_0x1cf346['data']&&_0x1cf346[_0x2d3b79('0x10fd')][_0x2d3b79('0x4c6')]&&_0x1cf346[_0x2d3b79('0x10fd')][_0x2d3b79('0x4c6')]['length']){_0x16090b['errors']=_0x1cf346[_0x2d3b79('0x10fd')][_0x2d3b79('0x4c6')]||[{'message':_0x1cf346[_0x2d3b79('0x684')](),'type':_0x2d3b79('0x1bbf')}];for(var _0x5cde21=0x0;_0x5cde21<_0x1cf346[_0x2d3b79('0x10fd')][_0x2d3b79('0x4c6')]['length'];_0x5cde21+=0x1){_0x52ec8c[_0x2d3b79('0x187f')]({'title':_0x1cf346[_0x2d3b79('0x10fd')]['errors'][_0x5cde21][_0x2d3b79('0x6c8')],'msg':_0x1cf346[_0x2d3b79('0x10fd')][_0x2d3b79('0x4c6')][_0x5cde21][_0x2d3b79('0x1402')]});}}else _0x52ec8c[_0x2d3b79('0x187f')]({'title':_0x1cf346['status']?'API:'+_0x1cf346['status']+_0x2d3b79('0x169e')+_0x1cf346[_0x2d3b79('0x24df')]:'api.analyticExtractedReport.save','msg':_0x1cf346['data']?JSON[_0x2d3b79('0xa48')](_0x1cf346[_0x2d3b79('0x10fd')][_0x2d3b79('0x1402')]):_0x1cf346[_0x2d3b79('0x684')]()});});}function _0xdbb1cc(){var _0x1fb2ac=_0x1e049b;_0x16090b[_0x1fb2ac('0x4c6')]=[],_0x5affbc[_0x1fb2ac('0x1d9d')][_0x1fb2ac('0x264e')]({'id':_0x16090b[_0x1fb2ac('0x1cdc')]['id']},_0x16090b[_0x1fb2ac('0x1cdc')])[_0x1fb2ac('0x1dc2')][_0x1fb2ac('0xaa5')](function(_0x311bb5){var _0x41df61=_0x1fb2ac,_0x3b4255=_0x51538b()[_0x41df61('0xe9e')](_0x16090b[_0x41df61('0x2336')],{'id':_0x311bb5['id']});_0x3b4255&&_0x51538b()[_0x41df61('0x283c')](_0x3b4255,_0x51538b()[_0x41df61('0x104e')](_0x311bb5[_0x41df61('0x256a')](),_0x51538b()[_0x41df61('0x9f2')](_0x3b4255))),_0x52ec8c['success']({'title':_0x41df61('0x14c0'),'msg':_0x16090b[_0x41df61('0x1cdc')]['name']?_0x16090b[_0x41df61('0x1cdc')][_0x41df61('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x3c1e0d(_0x311bb5);})[_0x1fb2ac('0x253d')](function(_0x2426f5){var _0x3cbd28=_0x1fb2ac;if(_0x2426f5['data']&&_0x2426f5[_0x3cbd28('0x10fd')][_0x3cbd28('0x4c6')]&&_0x2426f5[_0x3cbd28('0x10fd')][_0x3cbd28('0x4c6')][_0x3cbd28('0x2587')]){_0x16090b[_0x3cbd28('0x4c6')]=_0x2426f5[_0x3cbd28('0x10fd')][_0x3cbd28('0x4c6')]||[{'message':_0x2426f5[_0x3cbd28('0x684')](),'type':_0x3cbd28('0x226b')}];for(var _0x54c432=0x0;_0x54c432<_0x2426f5['data'][_0x3cbd28('0x4c6')][_0x3cbd28('0x2587')];_0x54c432++){_0x52ec8c['error']({'title':_0x2426f5['data'][_0x3cbd28('0x4c6')][_0x54c432][_0x3cbd28('0x6c8')],'msg':_0x2426f5[_0x3cbd28('0x10fd')][_0x3cbd28('0x4c6')][_0x54c432][_0x3cbd28('0x1402')]});}}else _0x52ec8c['error']({'title':_0x2426f5[_0x3cbd28('0x2fa')]?_0x3cbd28('0x16c2')+_0x2426f5[_0x3cbd28('0x2fa')]+_0x3cbd28('0x169e')+_0x2426f5[_0x3cbd28('0x24df')]:_0x3cbd28('0x226b'),'msg':_0x2426f5[_0x3cbd28('0x10fd')]?JSON[_0x3cbd28('0xa48')](_0x2426f5[_0x3cbd28('0x10fd')][_0x3cbd28('0x1402')]):_0x2426f5[_0x3cbd28('0x684')]()});});}function _0x3886c4(_0x481c7d){var _0x5e760f=_0x1e049b;_0x16090b['errors']=[];var _0x262526=_0x4ffbd1[_0x5e760f('0x281e')]()['title'](_0x5e760f('0x12a3'))['content'](_0x5e760f('0x867'))[_0x5e760f('0x5b5')](_0x5e760f('0x2719'))['ok'](_0x5e760f('0x1e76'))[_0x5e760f('0x2030')](_0x5e760f('0x9c6'))['targetEvent'](_0x481c7d);_0x4ffbd1[_0x5e760f('0x1e6d')](_0x262526)['then'](function(){var _0x3c8039=_0x5e760f;_0x5affbc[_0x3c8039('0x1d9d')]['delete']({'id':_0x16090b[_0x3c8039('0x1cdc')]['id']})['$promise'][_0x3c8039('0xaa5')](function(){var _0x505b25=_0x3c8039;_0x51538b()[_0x505b25('0xf6d')](_0x16090b[_0x505b25('0x2336')],{'id':_0x16090b['extractedReport']['id']}),_0x52ec8c['success']({'title':'ExtractedReport\x20properly\x20deleted!','msg':(_0x16090b[_0x505b25('0x1cdc')]['name']||_0x505b25('0x1cdc'))+'\x20has\x20been\x20deleted!'}),_0x3c1e0d(_0x16090b[_0x505b25('0x1cdc')]);})['catch'](function(_0x48ea52){var _0x5c1db2=_0x3c8039;if(_0x48ea52[_0x5c1db2('0x10fd')]&&_0x48ea52['data'][_0x5c1db2('0x4c6')]&&_0x48ea52['data']['errors'][_0x5c1db2('0x2587')]){_0x16090b['errors']=_0x48ea52['data'][_0x5c1db2('0x4c6')]||[{'message':_0x48ea52[_0x5c1db2('0x684')](),'type':'api.analyticExtractedReport.delete'}];for(var _0x5e6218=0x0;_0x5e6218<_0x48ea52[_0x5c1db2('0x10fd')][_0x5c1db2('0x4c6')][_0x5c1db2('0x2587')];_0x5e6218++){_0x52ec8c[_0x5c1db2('0x187f')]({'title':_0x48ea52[_0x5c1db2('0x10fd')]['errors'][_0x5e6218]['type'],'msg':_0x48ea52[_0x5c1db2('0x10fd')]['errors'][_0x5e6218][_0x5c1db2('0x1402')]});}}else _0x52ec8c[_0x5c1db2('0x187f')]({'title':_0x48ea52['status']?'API:'+_0x48ea52['status']+'\x20-\x20'+_0x48ea52[_0x5c1db2('0x24df')]:_0x5c1db2('0x1278'),'msg':_0x48ea52[_0x5c1db2('0x10fd')]?JSON[_0x5c1db2('0xa48')](_0x48ea52['data'][_0x5c1db2('0x1402')]):_0x48ea52[_0x5c1db2('0x1402')]||_0x48ea52[_0x5c1db2('0x684')]()});});},function(){});}function _0x174ed9(_0x432992){return _0x432992===null?undefined:new Date(_0x432992);}function _0x3c1e0d(_0x33a607){var _0x18c578=_0x1e049b;_0x4ffbd1[_0x18c578('0x1120')](_0x33a607);}}const _0x249ec9=_0xccd884,_0x47c63c=_0x4fb511['p']+'src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog-[chunkhash].html';_0x22c15d['$inject']=['$scope','$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x2336'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x22c15d(_0x4e74f7,_0x2ff330,_0x2c5bc3,_0x39f762,_0x20e97d,_0x35d7ab,_0x1b9935,_0x30e8f4,_0x38e031,_0x4fd786,_0xadac41,_0x43b5db,_0x4c2899,_0x36423e,_0x2bfc09,_0x217eda,_0x5e7158){var _0xc95312=_0x1a8446,_0x2d2dc9=this;_0x2d2dc9[_0xc95312('0x1202')]=_0x217eda,_0x2d2dc9['setting']=_0x5e7158,_0x2d2dc9['currentUser']=_0x2bfc09[_0xc95312('0xacc')](),_0x2d2dc9['extractedReports']=_0x38e031||{'count':0x0,'rows':[]},_0x2d2dc9['userProfile']=_0x4fd786,_0x2d2dc9[_0xc95312('0x1a50')]=_0xadac41&&_0xadac41[_0xc95312('0xd15')]==0x1?_0xadac41['rows'][0x0]:null,_0x2d2dc9[_0xc95312('0xada')]=_0x2bfc09[_0xc95312('0xffd')](_0x2d2dc9[_0xc95312('0x1a50')]?_0x2d2dc9['userProfileSection']['crudPermissions']:null),_0x2d2dc9[_0xc95312('0x12b6')]=_0xc95312('0x2336'),_0x2d2dc9['listOrder']='',_0x2d2dc9[_0xc95312('0x8cc')]=null,_0x2d2dc9[_0xc95312('0x7c4')]=[],_0x2d2dc9['query']={'fields':_0xc95312('0xcce'),'sort':_0xc95312('0xd82'),'limit':0xa,'page':0x1},_0x2d2dc9[_0xc95312('0x1960')]=_0x39cf52,_0x2d2dc9[_0xc95312('0xe22')]=_0x5bc161,_0x2d2dc9[_0xc95312('0x271')]=_0x3cae6,_0x2d2dc9[_0xc95312('0xe10')]=_0xe3e1f7,_0x2d2dc9[_0xc95312('0x1d65')]=_0x29b9bc,_0x2d2dc9[_0xc95312('0xd6c')]=_0x201711,_0x2d2dc9[_0xc95312('0x12f5')]=_0x424e01,_0x2d2dc9[_0xc95312('0x145a')]=_0x2d433c,_0x2d2dc9[_0xc95312('0x1d92')]=_0x14a78f,_0x2d2dc9[_0xc95312('0x1e05')]=_0x2cdcc2,_0x2d2dc9[_0xc95312('0x1b9c')]=_0xd00513;function _0x39cf52(_0xe7b02d,_0x5ccdc1){var _0x3a01ee=_0xc95312;_0x20e97d[_0x3a01ee('0x1e6d')]({'controller':'CreateOrEditExtractedReportDialogController','controllerAs':'vm','templateUrl':_0x47c63c,'parent':angular[_0x3a01ee('0x1aa8')](_0x35d7ab[_0x3a01ee('0x54c')]),'targetEvent':_0x5ccdc1,'clickOutsideToClose':!![],'locals':{'extractedReport':_0xe7b02d,'extractedReports':_0x2d2dc9[_0x3a01ee('0x2336')][_0x3a01ee('0x580')],'license':_0x2d2dc9['license'],'setting':null,'crudPermissions':_0x2d2dc9[_0x3a01ee('0xada')]}});}function _0x5bc161(_0x350700){var _0x40d7c8=_0xc95312;return _0x43b5db[_0x40d7c8('0x1d9d')]['download']({'id':_0x350700['id']})[_0x40d7c8('0x1dc2')][_0x40d7c8('0xaa5')](function(_0xbd491b){var _0x172a64=_0x40d7c8,_0x32dda1=[_0xbd491b[_0x172a64('0x1bf1')]],_0x153e56=_0x172a64('0x1cf9'),_0x38c430=new Blob(_0x32dda1,{'type':_0xbd491b[_0x172a64('0x6c8')]});_0x153e56=_0x350700[_0x172a64('0x1d14')];var _0x3fb0c3=window[_0x172a64('0x12aa')]['createElement']('a');_0x3fb0c3[_0x172a64('0x107b')](_0x172a64('0x18ae'),URL['createObjectURL'](_0x38c430)),_0x3fb0c3[_0x172a64('0x107b')](_0x172a64('0x1cf9'),_0x153e56),document[_0x172a64('0x54c')][_0x172a64('0x1315')](_0x3fb0c3),_0x3fb0c3[_0x172a64('0x467')]();})[_0x40d7c8('0x253d')](function(_0x6d8026){var _0x2c9b6f=_0x40d7c8;if(_0x6d8026[_0x2c9b6f('0x10fd')]&&_0x6d8026['data'][_0x2c9b6f('0x4c6')]&&_0x6d8026[_0x2c9b6f('0x10fd')]['errors'][_0x2c9b6f('0x2587')])for(var _0x8c9754=0x0;_0x8c9754<_0x6d8026[_0x2c9b6f('0x10fd')]['errors'][_0x2c9b6f('0x2587')];_0x8c9754++){_0x36423e[_0x2c9b6f('0x187f')]({'title':_0x6d8026[_0x2c9b6f('0x10fd')][_0x2c9b6f('0x4c6')][_0x8c9754][_0x2c9b6f('0x6c8')],'msg':_0x6d8026[_0x2c9b6f('0x10fd')][_0x2c9b6f('0x4c6')][_0x8c9754][_0x2c9b6f('0x1402')]});}else _0x36423e[_0x2c9b6f('0x187f')]({'title':_0x6d8026[_0x2c9b6f('0x2fa')]?_0x2c9b6f('0x16c2')+_0x6d8026['status']+_0x2c9b6f('0x169e')+_0x6d8026[_0x2c9b6f('0x24df')]:_0x2c9b6f('0x1bbf'),'msg':_0x6d8026[_0x2c9b6f('0x10fd')]?JSON[_0x2c9b6f('0xa48')](_0x6d8026[_0x2c9b6f('0x10fd')][_0x2c9b6f('0x1402')]):_0x6d8026[_0x2c9b6f('0x684')]()});});}function _0x3cae6(_0x274e46,_0x33cb5d){var _0x7cf9f2=_0xc95312,_0x5a65a8=_0x20e97d[_0x7cf9f2('0x281e')]()['title'](_0x7cf9f2('0x88d')+_0x51538b()[_0x7cf9f2('0x196a')]('extractedReport')+'?')['htmlContent'](_0x7cf9f2('0x389')+(_0x274e46[_0x7cf9f2('0x25d6')]||_0x7cf9f2('0x1cdc'))+''+'\x20will\x20be\x20deleted.')[_0x7cf9f2('0x5b5')]('delete\x20extractedReport')[_0x7cf9f2('0x116d')](_0x33cb5d)['ok']('OK')[_0x7cf9f2('0x2030')](_0x7cf9f2('0x2410'));_0x20e97d['show'](_0x5a65a8)[_0x7cf9f2('0xaa5')](function(){_0x424e01(_0x274e46);},function(){var _0x360ad4=_0x7cf9f2;console[_0x360ad4('0x18d5')]('CANCEL');});}var _0xd70c27=!![],_0x53a123=0x1;_0x4e74f7[_0xc95312('0x1ccf')](_0xc95312('0x1788'),function(_0x83e117,_0x33f544){var _0x5e6c8f=_0xc95312;_0xd70c27?_0x1b9935(function(){_0xd70c27=![];}):(!_0x33f544&&(_0x53a123=_0x2d2dc9['query'][_0x5e6c8f('0x41')]),_0x83e117!==_0x33f544&&(_0x2d2dc9[_0x5e6c8f('0x582')][_0x5e6c8f('0x41')]=0x1),!_0x83e117&&(_0x2d2dc9[_0x5e6c8f('0x582')][_0x5e6c8f('0x41')]=_0x53a123),_0x2d2dc9[_0x5e6c8f('0x1d65')]());});function _0xe3e1f7(_0x2ca7d6){var _0x3077ab=_0xc95312;_0x2d2dc9[_0x3077ab('0x2336')]=_0x2ca7d6||{'count':0x0,'rows':[]};}function _0x29b9bc(){var _0x4c1ea9=_0xc95312;_0x2d2dc9[_0x4c1ea9('0x582')][_0x4c1ea9('0x8b1')]=(_0x2d2dc9[_0x4c1ea9('0x582')][_0x4c1ea9('0x41')]-0x1)*_0x2d2dc9[_0x4c1ea9('0x582')][_0x4c1ea9('0xf4d')],_0x2bfc09[_0x4c1ea9('0x26e8')](_0x4c1ea9('0x178b'))?_0x2d2dc9[_0x4c1ea9('0x159a')]=_0x43b5db['analyticExtractedReport'][_0x4c1ea9('0x2122')](_0x2d2dc9[_0x4c1ea9('0x582')],_0xe3e1f7)[_0x4c1ea9('0x1dc2')]:(_0x2d2dc9['query']['id']=_0x2d2dc9[_0x4c1ea9('0x1e97')]['id'],_0x2d2dc9['query'][_0x4c1ea9('0x224d')]=_0x4c1ea9('0x1306'),_0x2d2dc9[_0x4c1ea9('0x159a')]=_0x43b5db[_0x4c1ea9('0x1e97')][_0x4c1ea9('0x1cf1')](_0x2d2dc9[_0x4c1ea9('0x582')],_0xe3e1f7)[_0x4c1ea9('0x1dc2')]);}function _0x201711(_0x501dd0,_0x4675c5){var _0x19d509=_0xc95312;_0x20e97d['show']({'controller':'CreateOrEditExtractedReportDialogController','controllerAs':'vm','templateUrl':_0x47c63c,'parent':angular[_0x19d509('0x1aa8')](_0x35d7ab[_0x19d509('0x54c')]),'targetEvent':_0x501dd0,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x4675c5,'extractedReports':_0x2d2dc9[_0x19d509('0x2336')][_0x19d509('0x580')],'license':_0x2d2dc9['license'],'setting':_0x2d2dc9[_0x19d509('0x143f')],'crudPermissions':_0x2d2dc9[_0x19d509('0xada')]}});}function _0x424e01(_0x591f47){var _0xb25896=_0xc95312;_0x43b5db['analyticExtractedReport']['delete']({'id':_0x591f47['id']})['$promise'][_0xb25896('0xaa5')](function(){var _0x53e231=_0xb25896;_0x51538b()[_0x53e231('0xf6d')](_0x2d2dc9[_0x53e231('0x2336')][_0x53e231('0x580')],{'id':_0x591f47['id']}),_0x2d2dc9[_0x53e231('0x2336')][_0x53e231('0xd15')]-=0x1,!_0x2d2dc9[_0x53e231('0x2336')][_0x53e231('0x580')][_0x53e231('0x2587')]&&_0x2d2dc9[_0x53e231('0x1d65')](),_0x36423e[_0x53e231('0xe10')]({'title':_0x51538b()[_0x53e231('0x196a')](_0x53e231('0x201a'))+_0x53e231('0x8bb'),'msg':_0x591f47[_0x53e231('0x25d6')]?_0x591f47[_0x53e231('0x25d6')]+_0x53e231('0xcd9'):''});})[_0xb25896('0x253d')](function(_0x35324c){var _0x3fc9f4=_0xb25896;if(_0x35324c[_0x3fc9f4('0x10fd')]&&_0x35324c[_0x3fc9f4('0x10fd')]['errors']&&_0x35324c['data'][_0x3fc9f4('0x4c6')][_0x3fc9f4('0x2587')]){_0x2d2dc9['errors']=_0x35324c['data'][_0x3fc9f4('0x4c6')]||[{'message':_0x35324c['toString'](),'type':_0x3fc9f4('0x1577')}];for(var _0x1ffa31=0x0;_0x1ffa31<_0x35324c[_0x3fc9f4('0x10fd')][_0x3fc9f4('0x4c6')][_0x3fc9f4('0x2587')];_0x1ffa31++){_0x36423e[_0x3fc9f4('0x187f')]({'title':_0x35324c[_0x3fc9f4('0x10fd')][_0x3fc9f4('0x4c6')][_0x1ffa31][_0x3fc9f4('0x6c8')],'msg':_0x35324c[_0x3fc9f4('0x10fd')][_0x3fc9f4('0x4c6')][_0x1ffa31][_0x3fc9f4('0x1402')]});}}else _0x36423e[_0x3fc9f4('0x187f')]({'title':_0x35324c['status']?'API:'+_0x35324c[_0x3fc9f4('0x2fa')]+_0x3fc9f4('0x169e')+_0x35324c[_0x3fc9f4('0x24df')]:'SYSTEM:DELETEanalyticExtractedReport','msg':_0x35324c[_0x3fc9f4('0x10fd')]?JSON['stringify'](_0x35324c['data'][_0x3fc9f4('0x1402')]):_0x35324c['message']||_0x35324c['toString']()});});}function _0x2d433c(){var _0x37516a=_0xc95312,_0x42aaa3=angular[_0x37516a('0x20a')](_0x2d2dc9[_0x37516a('0x7c4')]);return _0x2d2dc9['selectedExtractedReports']=[],_0x42aaa3;}function _0x14a78f(_0x5b7bed){var _0x3eeef0=_0xc95312,_0x1a4688=_0x20e97d['confirm']()[_0x3eeef0('0x110a')](_0x3eeef0('0x874'))[_0x3eeef0('0x102e')](''+_0x2d2dc9[_0x3eeef0('0x7c4')][_0x3eeef0('0x2587')]+_0x3eeef0('0x1443')+_0x3eeef0('0x210d'))['ariaLabel']('delete\x20ExtractedReports')['targetEvent'](_0x5b7bed)['ok']('OK')['cancel'](_0x3eeef0('0x2410'));_0x20e97d[_0x3eeef0('0x1e6d')](_0x1a4688)[_0x3eeef0('0xaa5')](function(){var _0x371dbc=_0x3eeef0;_0x2d2dc9[_0x371dbc('0x7c4')][_0x371dbc('0x15b5')](function(_0x4c4c47){_0x424e01(_0x4c4c47);}),_0x2d2dc9[_0x371dbc('0x7c4')]=[];});}function _0x2cdcc2(){var _0x143542=_0xc95312;_0x2d2dc9[_0x143542('0x7c4')]=[];}function _0xd00513(){var _0x2f1938=_0xc95312;_0x2d2dc9['selectedExtractedReports']=_0x2d2dc9['extractedReports'][_0x2f1938('0x580')];}}const _0x29d4bc=_0x22c15d;_0x42ab19['$inject']=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0xf5c'),_0x1a8446('0x1bb2'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x42ab19(_0x5b1a53,_0x1f40ea,_0x53e671,_0x38d1c4,_0x43e2e6,_0x158e36,_0x1dac9d,_0x5a1b15,_0x2edccc,_0x3ca10b,_0x58db92,_0x4a18e2,_0x973cc9,_0x858047){var _0xe1cdc5=_0x1a8446,_0x34cf64=this;_0x34cf64['currentUser']=_0x58db92[_0xe1cdc5('0xacc')](),_0x34cf64[_0xe1cdc5('0x4c6')]=[],_0x34cf64[_0xe1cdc5('0x143f')]=_0x973cc9,_0x34cf64[_0xe1cdc5('0x1202')]=_0x4a18e2,_0x34cf64[_0xe1cdc5('0xada')]=_0x858047,_0x34cf64[_0xe1cdc5('0x9f0')]={},_0x34cf64[_0xe1cdc5('0x1d53')]=_0x34cf64[_0xe1cdc5('0x143f')]&&_0x34cf64[_0xe1cdc5('0x143f')][_0xe1cdc5('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x34cf64['title']='ANALYTICS.EDIT_METRIC',_0x34cf64[_0xe1cdc5('0x1bb2')]=angular[_0xe1cdc5('0x20a')](_0x2edccc),_0x34cf64[_0xe1cdc5('0xf5c')]=_0x5a1b15,_0x34cf64[_0xe1cdc5('0xe1e')]=![];!_0x34cf64[_0xe1cdc5('0x1bb2')]&&(_0x34cf64['metric']={'table':_0xe1cdc5('0x26c9')},_0x34cf64[_0xe1cdc5('0x110a')]='ANALYTICS.NEW_METRIC',_0x34cf64[_0xe1cdc5('0xe1e')]=!![]);_0x34cf64['addNewMetric']=_0xae5cda,_0x34cf64[_0xe1cdc5('0x192a')]=_0x161e5d,_0x34cf64[_0xe1cdc5('0x10d0')]=_0x469e8a,_0x34cf64['getDateFromString']=_0x3c26ba,_0x34cf64[_0xe1cdc5('0x2023')]=_0x2fa5dd;function _0xae5cda(){var _0x4a8ca9=_0xe1cdc5;_0x34cf64[_0x4a8ca9('0x4c6')]=[],_0x3ca10b['analyticMetric'][_0x4a8ca9('0x242b')](_0x34cf64[_0x4a8ca9('0x1bb2')])['$promise'][_0x4a8ca9('0xaa5')](function(_0x578ba6){var _0x5cf235=_0x4a8ca9;_0x34cf64[_0x5cf235('0xf5c')][_0x5cf235('0x6ee')](_0x578ba6[_0x5cf235('0x256a')]()),_0x1dac9d[_0x5cf235('0xe10')]({'title':_0x5cf235('0x379'),'msg':_0x34cf64[_0x5cf235('0x1bb2')][_0x5cf235('0x25d6')]?_0x34cf64[_0x5cf235('0x1bb2')][_0x5cf235('0x25d6')]+_0x5cf235('0xdca'):''}),_0x2fa5dd(_0x578ba6);})[_0x4a8ca9('0x253d')](function(_0x397957){var _0x595fd8=_0x4a8ca9;if(_0x397957[_0x595fd8('0x10fd')]&&_0x397957[_0x595fd8('0x10fd')][_0x595fd8('0x4c6')]&&_0x397957[_0x595fd8('0x10fd')][_0x595fd8('0x4c6')]['length']){_0x34cf64[_0x595fd8('0x4c6')]=_0x397957[_0x595fd8('0x10fd')]['errors']||[{'message':_0x397957['toString'](),'type':_0x595fd8('0x15e3')}];for(var _0x4fd61a=0x0;_0x4fd61a<_0x397957[_0x595fd8('0x10fd')][_0x595fd8('0x4c6')][_0x595fd8('0x2587')];_0x4fd61a+=0x1){_0x1dac9d[_0x595fd8('0x187f')]({'title':_0x397957['data'][_0x595fd8('0x4c6')][_0x4fd61a]['type'],'msg':_0x397957[_0x595fd8('0x10fd')][_0x595fd8('0x4c6')][_0x4fd61a]['message']});}}else _0x1dac9d[_0x595fd8('0x187f')]({'title':_0x397957[_0x595fd8('0x2fa')]?_0x595fd8('0x16c2')+_0x397957[_0x595fd8('0x2fa')]+_0x595fd8('0x169e')+_0x397957[_0x595fd8('0x24df')]:_0x595fd8('0x15e3'),'msg':_0x397957[_0x595fd8('0x10fd')]?JSON[_0x595fd8('0xa48')](_0x397957[_0x595fd8('0x10fd')][_0x595fd8('0x1402')]):_0x397957[_0x595fd8('0x684')]()});});}function _0x161e5d(){var _0x478ba0=_0xe1cdc5;_0x34cf64[_0x478ba0('0x4c6')]=[],_0x3ca10b[_0x478ba0('0x8b5')][_0x478ba0('0x264e')]({'id':_0x34cf64[_0x478ba0('0x1bb2')]['id']},_0x34cf64['metric'])['$promise'][_0x478ba0('0xaa5')](function(_0x2a00f2){var _0x34d947=_0x478ba0,_0x20295c=_0x51538b()[_0x34d947('0xe9e')](_0x34cf64[_0x34d947('0xf5c')],{'id':_0x2a00f2['id']});_0x20295c&&_0x51538b()['merge'](_0x20295c,_0x51538b()[_0x34d947('0x104e')](_0x2a00f2['toJSON'](),_0x51538b()['keys'](_0x20295c))),_0x1dac9d['success']({'title':'Metric\x20properly\x20saved!','msg':_0x34cf64[_0x34d947('0x1bb2')][_0x34d947('0x25d6')]?_0x34cf64[_0x34d947('0x1bb2')][_0x34d947('0x25d6')]+_0x34d947('0x20bf'):''}),_0x2fa5dd(_0x2a00f2);})['catch'](function(_0x4924f5){var _0x2b5f7a=_0x478ba0;if(_0x4924f5[_0x2b5f7a('0x10fd')]&&_0x4924f5[_0x2b5f7a('0x10fd')][_0x2b5f7a('0x4c6')]&&_0x4924f5[_0x2b5f7a('0x10fd')][_0x2b5f7a('0x4c6')]['length']){_0x34cf64['errors']=_0x4924f5[_0x2b5f7a('0x10fd')][_0x2b5f7a('0x4c6')]||[{'message':_0x4924f5[_0x2b5f7a('0x684')](),'type':_0x2b5f7a('0xa62')}];for(var _0x3bf54a=0x0;_0x3bf54a<_0x4924f5[_0x2b5f7a('0x10fd')]['errors']['length'];_0x3bf54a++){_0x1dac9d['error']({'title':_0x4924f5[_0x2b5f7a('0x10fd')][_0x2b5f7a('0x4c6')][_0x3bf54a][_0x2b5f7a('0x6c8')],'msg':_0x4924f5['data'][_0x2b5f7a('0x4c6')][_0x3bf54a]['message']});}}else _0x1dac9d[_0x2b5f7a('0x187f')]({'title':_0x4924f5[_0x2b5f7a('0x2fa')]?_0x2b5f7a('0x16c2')+_0x4924f5[_0x2b5f7a('0x2fa')]+_0x2b5f7a('0x169e')+_0x4924f5[_0x2b5f7a('0x24df')]:_0x2b5f7a('0xa62'),'msg':_0x4924f5['data']?JSON[_0x2b5f7a('0xa48')](_0x4924f5[_0x2b5f7a('0x10fd')][_0x2b5f7a('0x1402')]):_0x4924f5[_0x2b5f7a('0x684')]()});});}function _0x469e8a(_0x114e6e){var _0x33d8e2=_0xe1cdc5;_0x34cf64[_0x33d8e2('0x4c6')]=[];var _0x43aa4c=_0x38d1c4[_0x33d8e2('0x281e')]()[_0x33d8e2('0x110a')](_0x33d8e2('0x12a3'))[_0x33d8e2('0x15af')]('The\x20metric\x20will\x20be\x20deleted.')[_0x33d8e2('0x5b5')](_0x33d8e2('0x13cf'))['ok'](_0x33d8e2('0x1e76'))[_0x33d8e2('0x2030')]('Cancel')[_0x33d8e2('0x116d')](_0x114e6e);_0x38d1c4[_0x33d8e2('0x1e6d')](_0x43aa4c)[_0x33d8e2('0xaa5')](function(){var _0x2411e2=_0x33d8e2;_0x3ca10b[_0x2411e2('0x8b5')][_0x2411e2('0x926')]({'id':_0x34cf64[_0x2411e2('0x1bb2')]['id']})['$promise'][_0x2411e2('0xaa5')](function(){var _0x275cf2=_0x2411e2;_0x51538b()[_0x275cf2('0xf6d')](_0x34cf64[_0x275cf2('0xf5c')],{'id':_0x34cf64[_0x275cf2('0x1bb2')]['id']}),_0x1dac9d['success']({'title':_0x275cf2('0xb58'),'msg':(_0x34cf64[_0x275cf2('0x1bb2')][_0x275cf2('0x25d6')]||_0x275cf2('0x1bb2'))+_0x275cf2('0xcd9')}),_0x2fa5dd(_0x34cf64[_0x275cf2('0x1bb2')]);})['catch'](function(_0x4dd51e){var _0x2fd266=_0x2411e2;if(_0x4dd51e['data']&&_0x4dd51e[_0x2fd266('0x10fd')]['errors']&&_0x4dd51e[_0x2fd266('0x10fd')]['errors'][_0x2fd266('0x2587')]){_0x34cf64[_0x2fd266('0x4c6')]=_0x4dd51e[_0x2fd266('0x10fd')][_0x2fd266('0x4c6')]||[{'message':_0x4dd51e[_0x2fd266('0x684')](),'type':_0x2fd266('0xd0')}];for(var _0x10b662=0x0;_0x10b662<_0x4dd51e[_0x2fd266('0x10fd')][_0x2fd266('0x4c6')]['length'];_0x10b662++){_0x1dac9d[_0x2fd266('0x187f')]({'title':_0x4dd51e['data'][_0x2fd266('0x4c6')][_0x10b662][_0x2fd266('0x6c8')],'msg':_0x4dd51e[_0x2fd266('0x10fd')][_0x2fd266('0x4c6')][_0x10b662]['message']});}}else _0x1dac9d['error']({'title':_0x4dd51e[_0x2fd266('0x2fa')]?'API:'+_0x4dd51e[_0x2fd266('0x2fa')]+_0x2fd266('0x169e')+_0x4dd51e[_0x2fd266('0x24df')]:_0x2fd266('0xd0'),'msg':_0x4dd51e['data']?JSON['stringify'](_0x4dd51e[_0x2fd266('0x10fd')][_0x2fd266('0x1402')]):_0x4dd51e[_0x2fd266('0x1402')]||_0x4dd51e[_0x2fd266('0x684')]()});});},function(){});}function _0x3c26ba(_0x4fe0cf){return _0x4fe0cf===null?undefined:new Date(_0x4fe0cf);}function _0x2fa5dd(_0x40babd){_0x38d1c4['hide'](_0x40babd);}}const _0x24c059=_0x42ab19,_0x2d22dd=_0x4fb511['p']+_0x1a8446('0x1642');_0x22ddb4[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),_0x1a8446('0xf5c'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x22ddb4(_0x526cf0,_0x5b7b16,_0x38c743,_0x232d5b,_0x231e95,_0x73e782,_0x1014e3,_0x1f7bc8,_0x55bb36,_0x3b6d82,_0x3b76ff,_0x22b767,_0x1e5421,_0x646b88,_0x3ff85c,_0x52b388,_0x96e6b1){var _0x45b967=_0x1a8446,_0x22579d=this;_0x22579d[_0x45b967('0x1202')]=_0x52b388,_0x22579d[_0x45b967('0x143f')]=_0x96e6b1,_0x22579d[_0x45b967('0x7fc')]=_0x3ff85c[_0x45b967('0xacc')](),_0x22579d[_0x45b967('0xf5c')]=_0x55bb36||{'count':0x0,'rows':[]},_0x22579d['userProfile']=_0x3b6d82,_0x22579d[_0x45b967('0x1a50')]=_0x3b76ff&&_0x3b76ff[_0x45b967('0xd15')]==0x1?_0x3b76ff['rows'][0x0]:null,_0x22579d[_0x45b967('0xada')]=_0x3ff85c[_0x45b967('0xffd')](_0x22579d['userProfileSection']?_0x22579d[_0x45b967('0x1a50')][_0x45b967('0xada')]:null),_0x22579d[_0x45b967('0x12b6')]=_0x45b967('0xf5c'),_0x22579d['listOrder']='',_0x22579d[_0x45b967('0x8cc')]=null,_0x22579d[_0x45b967('0xfbc')]=[],_0x22579d[_0x45b967('0x582')]={'fields':_0x45b967('0x1481'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x22579d['arraytable']=_0x51538b()[_0x45b967('0x184a')]([{'option':_0x45b967('0x80'),'value':_0x45b967('0x2377')},{'option':_0x45b967('0x7ab'),'value':_0x45b967('0x902')},{'option':_0x45b967('0x1a77'),'value':_0x45b967('0x166c')},{'option':_0x45b967('0x121e'),'value':'\x27chat_websites\x27'},{'option':_0x45b967('0x267a'),'value':_0x45b967('0x15ad')},{'option':'Chat\x20Messages','value':'\x27chat_messages\x27'},{'option':_0x45b967('0x7a7'),'value':'\x27chat_offline_messages\x27'},{'option':_0x45b967('0x22a1'),'value':_0x45b967('0x1490')},{'option':_0x45b967('0x23e7'),'value':'\x27report_chat_queue\x27'},{'option':'Chat\x20Report\x20Transfer','value':_0x45b967('0x1c39')},{'option':'Companies','value':'\x27cm_companies\x27'},{'option':_0x45b967('0x1144'),'value':'\x27cm_contacts\x27'},{'option':'CSquare\x20Report','value':'\x27report_square\x27'},{'option':'CSquare\x20Details\x20Report','value':_0x45b967('0x14f')},{'option':'Dial\x20Report','value':'\x27report_dial\x27'},{'option':_0x45b967('0x6cf'),'value':_0x45b967('0x2776')},{'option':_0x45b967('0x7e'),'value':_0x45b967('0x3e9')},{'option':_0x45b967('0x132e'),'value':'\x27cm_hopper_final\x27'},{'option':'Email\x20Account','value':_0x45b967('0x1625')},{'option':_0x45b967('0xe46'),'value':_0x45b967('0x2fd')},{'option':_0x45b967('0x1c3f'),'value':_0x45b967('0x16b3')},{'option':_0x45b967('0xc99'),'value':'\x27mail_queues\x27'},{'option':'Email\x20Report\x20Queue','value':'\x27report_mail_queue\x27'},{'option':'Email\x20Report\x20Transfer','value':_0x45b967('0xed7')},{'option':'Fax\x20Account','value':_0x45b967('0xa2d')},{'option':_0x45b967('0x14c4'),'value':_0x45b967('0x167a')},{'option':'Fax\x20Messages','value':_0x45b967('0x94c')},{'option':_0x45b967('0x1689'),'value':'\x27fax_queues\x27'},{'option':_0x45b967('0x3fb'),'value':_0x45b967('0x596')},{'option':_0x45b967('0xddd'),'value':'\x27report_fax_transfer\x27'},{'option':'Jscripty\x20Sessions','value':_0x45b967('0x1152')},{'option':'Jscripty\x20Questions','value':_0x45b967('0x38c')},{'option':_0x45b967('0x1ecb'),'value':_0x45b967('0x4b7')},{'option':_0x45b967('0x1135'),'value':'\x27cm_lists\x27'},{'option':_0x45b967('0x810'),'value':_0x45b967('0x28e')},{'option':_0x45b967('0x151'),'value':_0x45b967('0x65e')},{'option':_0x45b967('0xba2'),'value':_0x45b967('0x239c')},{'option':_0x45b967('0x2618'),'value':'\x27openchannel_messages\x27'},{'option':_0x45b967('0xfa'),'value':_0x45b967('0xe5b')},{'option':_0x45b967('0x1d60'),'value':_0x45b967('0x863')},{'option':_0x45b967('0x1c6f'),'value':_0x45b967('0x149d')},{'option':_0x45b967('0x1a81'),'value':_0x45b967('0x616')},{'option':_0x45b967('0x272d'),'value':_0x45b967('0x20f2')},{'option':_0x45b967('0x20d6'),'value':_0x45b967('0x2831')},{'option':_0x45b967('0x1bf2'),'value':_0x45b967('0x75e')},{'option':_0x45b967('0xd95'),'value':_0x45b967('0x1ef1')},{'option':_0x45b967('0x1bbc'),'value':'\x27report_sms_queue\x27'},{'option':_0x45b967('0x25df'),'value':'\x27report_sms_transfer\x27'},{'option':_0x45b967('0x16b4'),'value':_0x45b967('0x11fa')},{'option':_0x45b967('0x11b'),'value':_0x45b967('0x15d6')},{'option':_0x45b967('0x2306'),'value':'\x27whatsapp_accounts\x27'},{'option':'Whatsapp\x20Interaction','value':'\x27whatsapp_interactions\x27'},{'option':_0x45b967('0x90e'),'value':'\x27whatsapp_messages\x27'},{'option':_0x45b967('0xbfd'),'value':'\x27whatsapp_queues\x27'},{'option':'Whatsapp\x20Report\x20Queue','value':_0x45b967('0x1a9d')},{'option':'Whatsapp\x20Report\x20Transfer','value':_0x45b967('0x151b')}],function(_0x1ea474){var _0x3d8956=_0x45b967;return _0x51538b()[_0x3d8956('0x170d')](_0x1ea474[_0x3d8956('0x12f4')],new RegExp('\x27','g'),'');}),_0x22579d[_0x45b967('0x1960')]=_0x4bc04f,_0x22579d[_0x45b967('0x271')]=_0x145288,_0x22579d[_0x45b967('0xe10')]=_0x3d3e9e,_0x22579d['getMetrics']=_0x14a628,_0x22579d[_0x45b967('0x284a')]=_0x40a50a,_0x22579d[_0x45b967('0x10d0')]=_0x415bb8,_0x22579d['exportSelectedMetrics']=_0x5c212b,_0x22579d[_0x45b967('0x180a')]=_0x393d51,_0x22579d[_0x45b967('0x266f')]=_0x263af5,_0x22579d[_0x45b967('0x1d1d')]=_0x23b078;function _0x4bc04f(_0x432ffd,_0x2dca0d){var _0x5314d6=_0x45b967;_0x231e95['show']({'controller':_0x5314d6('0x14ef'),'controllerAs':'vm','templateUrl':_0x2d22dd,'parent':angular[_0x5314d6('0x1aa8')](_0x73e782[_0x5314d6('0x54c')]),'targetEvent':_0x2dca0d,'clickOutsideToClose':!![],'locals':{'metric':_0x432ffd,'metrics':_0x22579d[_0x5314d6('0xf5c')][_0x5314d6('0x580')],'license':_0x22579d[_0x5314d6('0x1202')],'setting':null,'crudPermissions':_0x22579d[_0x5314d6('0xada')]}});}function _0x145288(_0x345db9,_0x554a3a){var _0x3b7054=_0x45b967,_0x42ae97=_0x231e95[_0x3b7054('0x281e')]()[_0x3b7054('0x110a')](_0x3b7054('0x88d')+_0x51538b()[_0x3b7054('0x196a')](_0x3b7054('0x1bb2'))+'?')[_0x3b7054('0x102e')](''+(_0x345db9[_0x3b7054('0x25d6')]||_0x3b7054('0x1bb2'))+_0x3b7054('0x697')+_0x3b7054('0x210d'))[_0x3b7054('0x5b5')](_0x3b7054('0x16ee'))[_0x3b7054('0x116d')](_0x554a3a)['ok']('OK')[_0x3b7054('0x2030')]('CANCEL');_0x231e95[_0x3b7054('0x1e6d')](_0x42ae97)[_0x3b7054('0xaa5')](function(){_0x415bb8(_0x345db9);},function(){var _0x5bc901=_0x3b7054;console[_0x5bc901('0x18d5')](_0x5bc901('0x2410'));});}var _0xa02100=!![],_0x5c33db=0x1;_0x526cf0[_0x45b967('0x1ccf')](_0x45b967('0x1788'),function(_0x1b0655,_0x37c1ec){var _0xe26ad2=_0x45b967;_0xa02100?_0x1014e3(function(){_0xa02100=![];}):(!_0x37c1ec&&(_0x5c33db=_0x22579d[_0xe26ad2('0x582')][_0xe26ad2('0x41')]),_0x1b0655!==_0x37c1ec&&(_0x22579d[_0xe26ad2('0x582')]['page']=0x1),!_0x1b0655&&(_0x22579d[_0xe26ad2('0x582')][_0xe26ad2('0x41')]=_0x5c33db),_0x22579d[_0xe26ad2('0x253f')]());});function _0x3d3e9e(_0x1a7678){_0x22579d['metrics']=_0x1a7678||{'count':0x0,'rows':[]};}function _0x14a628(){var _0x16f8ac=_0x45b967;_0x22579d[_0x16f8ac('0x582')][_0x16f8ac('0x8b1')]=(_0x22579d[_0x16f8ac('0x582')][_0x16f8ac('0x41')]-0x1)*_0x22579d[_0x16f8ac('0x582')][_0x16f8ac('0xf4d')],_0x3ff85c[_0x16f8ac('0x26e8')](_0x16f8ac('0x178b'))?_0x22579d[_0x16f8ac('0x159a')]=_0x22b767[_0x16f8ac('0x8b5')][_0x16f8ac('0x2122')](_0x22579d['query'],_0x3d3e9e)[_0x16f8ac('0x1dc2')]:(_0x22579d[_0x16f8ac('0x582')]['id']=_0x22579d[_0x16f8ac('0x1e97')]['id'],_0x22579d[_0x16f8ac('0x582')][_0x16f8ac('0x224d')]='Metrics',_0x22579d['promise']=_0x22b767[_0x16f8ac('0x1e97')][_0x16f8ac('0x1cf1')](_0x22579d[_0x16f8ac('0x582')],_0x3d3e9e)[_0x16f8ac('0x1dc2')]);}function _0x40a50a(_0x5f0af7,_0x405aa3){var _0x468cea=_0x45b967;_0x231e95[_0x468cea('0x1e6d')]({'controller':_0x468cea('0x14ef'),'controllerAs':'vm','templateUrl':_0x2d22dd,'parent':angular[_0x468cea('0x1aa8')](_0x73e782[_0x468cea('0x54c')]),'targetEvent':_0x5f0af7,'clickOutsideToClose':!![],'locals':{'metric':_0x405aa3,'metrics':_0x22579d[_0x468cea('0xf5c')][_0x468cea('0x580')],'license':_0x22579d['license'],'setting':_0x22579d[_0x468cea('0x143f')],'crudPermissions':_0x22579d[_0x468cea('0xada')]}});}function _0x415bb8(_0x582715){var _0x4bfdcc=_0x45b967;_0x22b767['analyticMetric'][_0x4bfdcc('0x926')]({'id':_0x582715['id']})[_0x4bfdcc('0x1dc2')]['then'](function(){var _0xfbcf75=_0x4bfdcc;_0x51538b()[_0xfbcf75('0xf6d')](_0x22579d[_0xfbcf75('0xf5c')][_0xfbcf75('0x580')],{'id':_0x582715['id']}),_0x22579d[_0xfbcf75('0xf5c')][_0xfbcf75('0xd15')]-=0x1,!_0x22579d['metrics'][_0xfbcf75('0x580')][_0xfbcf75('0x2587')]&&_0x22579d[_0xfbcf75('0x253f')](),_0x646b88[_0xfbcf75('0xe10')]({'title':_0x51538b()[_0xfbcf75('0x196a')](_0xfbcf75('0x2ad'))+_0xfbcf75('0x8bb'),'msg':_0x582715[_0xfbcf75('0x25d6')]?_0x582715[_0xfbcf75('0x25d6')]+_0xfbcf75('0xcd9'):''});})[_0x4bfdcc('0x253d')](function(_0x369f30){var _0x5d5121=_0x4bfdcc;if(_0x369f30[_0x5d5121('0x10fd')]&&_0x369f30[_0x5d5121('0x10fd')][_0x5d5121('0x4c6')]&&_0x369f30[_0x5d5121('0x10fd')][_0x5d5121('0x4c6')][_0x5d5121('0x2587')]){_0x22579d['errors']=_0x369f30[_0x5d5121('0x10fd')]['errors']||[{'message':_0x369f30[_0x5d5121('0x684')](),'type':_0x5d5121('0x187b')}];for(var _0x3784f0=0x0;_0x3784f0<_0x369f30[_0x5d5121('0x10fd')][_0x5d5121('0x4c6')][_0x5d5121('0x2587')];_0x3784f0++){_0x646b88['error']({'title':_0x369f30[_0x5d5121('0x10fd')][_0x5d5121('0x4c6')][_0x3784f0][_0x5d5121('0x6c8')],'msg':_0x369f30['data'][_0x5d5121('0x4c6')][_0x3784f0][_0x5d5121('0x1402')]});}}else _0x646b88[_0x5d5121('0x187f')]({'title':_0x369f30[_0x5d5121('0x2fa')]?_0x5d5121('0x16c2')+_0x369f30['status']+_0x5d5121('0x169e')+_0x369f30[_0x5d5121('0x24df')]:_0x5d5121('0x187b'),'msg':_0x369f30['data']?JSON[_0x5d5121('0xa48')](_0x369f30[_0x5d5121('0x10fd')][_0x5d5121('0x1402')]):_0x369f30[_0x5d5121('0x1402')]||_0x369f30['toString']()});});}function _0x5c212b(){var _0x84c87=_0x45b967,_0x454e1b=angular['copy'](_0x22579d[_0x84c87('0xfbc')]);return _0x22579d[_0x84c87('0xfbc')]=[],_0x454e1b;}function _0x393d51(_0x52eb01){var _0x10e2e4=_0x45b967,_0x43b82a=_0x231e95[_0x10e2e4('0x281e')]()[_0x10e2e4('0x110a')](_0x10e2e4('0x20c2'))['htmlContent'](_0x10e2e4('0x389')+_0x22579d[_0x10e2e4('0xfbc')]['length']+_0x10e2e4('0x1443')+_0x10e2e4('0x210d'))[_0x10e2e4('0x5b5')](_0x10e2e4('0xf36'))[_0x10e2e4('0x116d')](_0x52eb01)['ok']('OK')['cancel'](_0x10e2e4('0x2410'));_0x231e95[_0x10e2e4('0x1e6d')](_0x43b82a)[_0x10e2e4('0xaa5')](function(){var _0x5cb5dd=_0x10e2e4;_0x22579d[_0x5cb5dd('0xfbc')][_0x5cb5dd('0x15b5')](function(_0x29e5eb){_0x415bb8(_0x29e5eb);}),_0x22579d[_0x5cb5dd('0xfbc')]=[];});}function _0x263af5(){_0x22579d['selectedMetrics']=[];}function _0x23b078(){var _0x4686ec=_0x45b967;_0x22579d[_0x4686ec('0xfbc')]=_0x22579d[_0x4686ec('0xf5c')][_0x4686ec('0x580')];}}const _0x8efa0=_0x22ddb4;_0x47f796[_0x1a8446('0x1e33')]=['$stateProvider',_0x1a8446('0x208f')];function _0x47f796(_0x3a3180,_0x32427d){var _0x27fa4e=_0x1a8446;_0x3a3180[_0x27fa4e('0xb46')](_0x27fa4e('0xc92'),{'abstract':!![],'url':_0x27fa4e('0x3dc')})[_0x27fa4e('0xb46')](_0x27fa4e('0x1722'),{'url':_0x27fa4e('0x1ca8'),'views':{'content@app':{'templateUrl':_0x1a082e,'controller':_0x27fa4e('0x1e0a')}},'resolve':{'metrics':[_0x27fa4e('0x1d16'),_0x27fa4e('0x1dfd'),function _0xf10b1b(_0x121cb8,_0x2400e7){var _0x356c01=_0x27fa4e;return _0x2400e7['hasRole'](_0x356c01('0x178b'))?_0x121cb8[_0x356c01('0x149f')](_0x356c01('0xcdb'),{'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x356c01('0xd82'),'limit':0xa,'offset':0x0}):_0x121cb8[_0x356c01('0x149f')](_0x356c01('0x49a'),{'id':_0x2400e7[_0x356c01('0xacc')]()['userProfileId'],'section':_0x356c01('0x2757'),'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x356c01('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x27fa4e('0x1d16'),_0x27fa4e('0x1dfd'),function _0x27fabf(_0x4fb26e,_0x362f9e){var _0x2bb7b3=_0x27fa4e;return _0x362f9e[_0x2bb7b3('0x26e8')]('admin')?null:_0x4fb26e['resolve'](_0x2bb7b3('0x567'),{'fields':'id,name,crudPermissions','id':_0x362f9e[_0x2bb7b3('0xacc')]()[_0x2bb7b3('0x2168')]});}],'userProfileSection':[_0x27fa4e('0x1d16'),_0x27fa4e('0x1dfd'),function _0x28294a(_0xad99f6,_0x10a972){var _0xacdca7=_0x27fa4e;return _0x10a972['hasRole'](_0xacdca7('0x178b'))?null:_0xad99f6[_0xacdca7('0x149f')](_0xacdca7('0x89e'),{'fields':_0xacdca7('0xe6a'),'userProfileId':_0x10a972['getCurrentUser']()[_0xacdca7('0x2168')],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':_0x27fa4e('0xe5e')})[_0x27fa4e('0xb46')](_0x27fa4e('0xd70'),{'url':_0x27fa4e('0x1949'),'views':{'content@app':{'templateUrl':_0x1d53f8,'controller':_0x27fa4e('0x1530')}},'resolve':{'extractedReports':[_0x27fa4e('0x1d16'),_0x27fa4e('0x1dfd'),function _0x1f332b(_0x5467da,_0x3c60ba){var _0x4d5b46=_0x27fa4e;return _0x3c60ba[_0x4d5b46('0x26e8')](_0x4d5b46('0x178b'))?_0x5467da['resolve'](_0x4d5b46('0x1f8a'),{'fields':_0x4d5b46('0xcce'),'sort':_0x4d5b46('0xd82'),'limit':0xa,'offset':0x0}):_0x5467da[_0x4d5b46('0x149f')](_0x4d5b46('0x49a'),{'id':_0x3c60ba[_0x4d5b46('0xacc')]()[_0x4d5b46('0x2168')],'section':_0x4d5b46('0x1306'),'fields':_0x4d5b46('0xcce'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x27fa4e('0x1dfd'),function _0x439ed5(_0x323d88,_0x5514aa){var _0x5a6c8a=_0x27fa4e;return _0x5514aa[_0x5a6c8a('0x26e8')]('admin')?null:_0x323d88[_0x5a6c8a('0x149f')](_0x5a6c8a('0x567'),{'fields':'id,name,crudPermissions','id':_0x5514aa[_0x5a6c8a('0xacc')]()[_0x5a6c8a('0x2168')]});}],'userProfileSection':['apiResolver',_0x27fa4e('0x1dfd'),function _0x180b32(_0x41e98c,_0x4f4496){var _0x3ec9b3=_0x27fa4e;return _0x4f4496['hasRole']('admin')?null:_0x41e98c[_0x3ec9b3('0x149f')](_0x3ec9b3('0x89e'),{'fields':_0x3ec9b3('0xe6a'),'userProfileId':_0x4f4496[_0x3ec9b3('0xacc')]()[_0x3ec9b3('0x2168')],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':'analytics'}),_0x32427d['addPart'](_0x27fa4e('0x1dc0'));}angular['module'](_0x1a8446('0xc92'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),'ngAria','ngAnimate','mdPickers',_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),'mwFormUtils',_0x1a8446('0x112'),_0x1a8446('0x2579'),'ngEmbed','angularMaterialFormBuilder','material.components.expansionPanels','chart.js','angular.filter','app.analytics.reports'])[_0x1a8446('0x1b14')](_0x47f796)[_0x1a8446('0x780')](_0x1a8446('0x394'),_0x249ec9)[_0x1a8446('0x780')](_0x1a8446('0x24f5'),_0x29d4bc)[_0x1a8446('0x780')](_0x1a8446('0x14ef'),_0x24c059)[_0x1a8446('0x780')](_0x1a8446('0x774'),_0x8efa0);const _0xb8d42c=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.html/zendeskAccounts-[chunkhash].html',_0x2263ed=_0x4fb511['p']+_0x1a8446('0x1c9c'),_0x448428=_0x4fb511['p']+_0x1a8446('0x1633'),_0x55a29c=_0x4fb511['p']+_0x1a8446('0x1e6f'),_0x2d367f=_0x4fb511['p']+_0x1a8446('0x1a31'),_0x5e0650=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view-[chunkhash].html',_0x4c9395=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts-[chunkhash].html',_0x43fddb=_0x4fb511['p']+_0x1a8446('0x1969'),_0x4af42a=_0x4fb511['p']+_0x1a8446('0x2317'),_0x2ae7b6=_0x4fb511['p']+_0x1a8446('0xc72'),_0x1cbbcc=_0x4fb511['p']+_0x1a8446('0x2766'),_0x4a0de0=_0x4fb511['p']+_0x1a8446('0x1ece'),_0x30b74d=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html/vtigerAccounts-[chunkhash].html',_0x3f824e=_0x4fb511['p']+_0x1a8446('0x46b'),_0x3c4f09=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts-[chunkhash].html',_0x6a0b6d=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.html/view-[chunkhash].html',_0x4b28c0=_0x4fb511['p']+_0x1a8446('0x1943'),_0xe30c1c=_0x4fb511['p']+_0x1a8446('0x840'),_0x511780=_0x4fb511['p']+_0x1a8446('0xcd8'),_0x40de8a=_0x4fb511['p']+_0x1a8446('0x246');_0x17fe31[_0x1a8446('0x1e33')]=['$scope','$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'deskAccounts',_0x1a8446('0x13e7'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),'crudPermissions'];function _0x17fe31(_0x452248,_0x1d5ebe,_0x4b6936,_0x4a55d3,_0x4bda17,_0x190f3d,_0x35a93e,_0x427019,_0x2c239c,_0x486b94,_0x191ed5,_0x479eed,_0xa4713c,_0x45b225){var _0x9caceb=_0x1a8446,_0x29cf3a=this;_0x29cf3a[_0x9caceb('0x7fc')]=_0x191ed5['getCurrentUser'](),_0x29cf3a[_0x9caceb('0x4c6')]=[],_0x29cf3a[_0x9caceb('0x143f')]=_0xa4713c,_0x29cf3a[_0x9caceb('0x1202')]=_0x479eed,_0x29cf3a[_0x9caceb('0xada')]=_0x45b225,_0x29cf3a[_0x9caceb('0x9f0')]={},_0x29cf3a['passwordPattern']=_0x29cf3a[_0x9caceb('0x143f')]&&_0x29cf3a[_0x9caceb('0x143f')][_0x9caceb('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x29cf3a['title']='INTEGRATIONS.EDIT_DESKACCOUNT',_0x29cf3a[_0x9caceb('0x13e7')]=angular[_0x9caceb('0x20a')](_0x2c239c),_0x29cf3a[_0x9caceb('0x249d')]=_0x427019,_0x29cf3a[_0x9caceb('0x47')]=![];!_0x29cf3a[_0x9caceb('0x13e7')]&&(_0x29cf3a['deskAccount']={'type':'integrationTab','authType':_0x9caceb('0x869'),'serverUrl':_0x4b6936[_0x9caceb('0x1cc2')]()+_0x9caceb('0x356')+_0x4b6936[_0x9caceb('0x160c')]()+(_0x4b6936['port']()?':'+_0x4b6936[_0x9caceb('0x191')]():'')},_0x29cf3a[_0x9caceb('0x110a')]='INTEGRATIONS.NEW_DESKACCOUNT',_0x29cf3a[_0x9caceb('0x47')]=!![]);_0x29cf3a[_0x9caceb('0x4d5')]=_0x309fa3,_0x29cf3a[_0x9caceb('0x325')]=_0x4cef85,_0x29cf3a[_0x9caceb('0xf96')]=_0x3e1f40,_0x29cf3a['getDateFromString']=_0x4fe8bd,_0x29cf3a[_0x9caceb('0x2023')]=_0x33f43f;function _0x309fa3(){var _0x28de82=_0x9caceb;_0x29cf3a[_0x28de82('0x4c6')]=[],_0x486b94[_0x28de82('0x340')][_0x28de82('0x242b')](_0x29cf3a['deskAccount'])[_0x28de82('0x1dc2')][_0x28de82('0xaa5')](function(_0x1ed9d7){var _0xd42d44=_0x28de82;_0x29cf3a['deskAccounts'][_0xd42d44('0x6ee')](_0x1ed9d7[_0xd42d44('0x256a')]()),_0x35a93e[_0xd42d44('0xe10')]({'title':_0xd42d44('0x1025'),'msg':_0x29cf3a[_0xd42d44('0x13e7')][_0xd42d44('0x25d6')]?_0x29cf3a[_0xd42d44('0x13e7')][_0xd42d44('0x25d6')]+_0xd42d44('0xdca'):''}),_0x33f43f(_0x1ed9d7);})[_0x28de82('0x253d')](function(_0x42f67c){var _0x33b2d5=_0x28de82;if(_0x42f67c[_0x33b2d5('0x10fd')]&&_0x42f67c[_0x33b2d5('0x10fd')][_0x33b2d5('0x4c6')]&&_0x42f67c['data'][_0x33b2d5('0x4c6')][_0x33b2d5('0x2587')]){_0x29cf3a[_0x33b2d5('0x4c6')]=_0x42f67c[_0x33b2d5('0x10fd')]['errors']||[{'message':_0x42f67c[_0x33b2d5('0x684')](),'type':_0x33b2d5('0x14b7')}];for(var _0x42aad3=0x0;_0x42aad3<_0x42f67c['data'][_0x33b2d5('0x4c6')][_0x33b2d5('0x2587')];_0x42aad3+=0x1){_0x35a93e[_0x33b2d5('0x187f')]({'title':_0x42f67c[_0x33b2d5('0x10fd')][_0x33b2d5('0x4c6')][_0x42aad3][_0x33b2d5('0x6c8')],'msg':_0x42f67c[_0x33b2d5('0x10fd')]['errors'][_0x42aad3][_0x33b2d5('0x1402')]});}}else _0x35a93e['error']({'title':_0x42f67c[_0x33b2d5('0x2fa')]?'API:'+_0x42f67c[_0x33b2d5('0x2fa')]+_0x33b2d5('0x169e')+_0x42f67c[_0x33b2d5('0x24df')]:'api.intDeskAccount.save','msg':_0x42f67c[_0x33b2d5('0x10fd')]?JSON[_0x33b2d5('0xa48')](_0x42f67c[_0x33b2d5('0x10fd')][_0x33b2d5('0x1402')]):_0x42f67c[_0x33b2d5('0x684')]()});});}function _0x4cef85(){var _0x11d39a=_0x9caceb;_0x29cf3a[_0x11d39a('0x4c6')]=[],_0x486b94['intDeskAccount']['update']({'id':_0x29cf3a[_0x11d39a('0x13e7')]['id']},_0x29cf3a[_0x11d39a('0x13e7')])['$promise'][_0x11d39a('0xaa5')](function(_0x44eb45){var _0x488274=_0x11d39a,_0x1bad26=_0x51538b()[_0x488274('0xe9e')](_0x29cf3a[_0x488274('0x249d')],{'id':_0x44eb45['id']});_0x1bad26&&_0x51538b()[_0x488274('0x283c')](_0x1bad26,_0x51538b()[_0x488274('0x104e')](_0x44eb45['toJSON'](),_0x51538b()[_0x488274('0x9f2')](_0x1bad26))),_0x35a93e['success']({'title':_0x488274('0x1685'),'msg':_0x29cf3a[_0x488274('0x13e7')]['name']?_0x29cf3a[_0x488274('0x13e7')][_0x488274('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x33f43f(_0x44eb45);})[_0x11d39a('0x253d')](function(_0x46ea3c){var _0x57a992=_0x11d39a;if(_0x46ea3c['data']&&_0x46ea3c[_0x57a992('0x10fd')]['errors']&&_0x46ea3c[_0x57a992('0x10fd')]['errors'][_0x57a992('0x2587')]){_0x29cf3a['errors']=_0x46ea3c[_0x57a992('0x10fd')][_0x57a992('0x4c6')]||[{'message':_0x46ea3c[_0x57a992('0x684')](),'type':_0x57a992('0x1736')}];for(var _0xe75e1a=0x0;_0xe75e1a<_0x46ea3c['data'][_0x57a992('0x4c6')][_0x57a992('0x2587')];_0xe75e1a++){_0x35a93e[_0x57a992('0x187f')]({'title':_0x46ea3c[_0x57a992('0x10fd')][_0x57a992('0x4c6')][_0xe75e1a][_0x57a992('0x6c8')],'msg':_0x46ea3c[_0x57a992('0x10fd')][_0x57a992('0x4c6')][_0xe75e1a]['message']});}}else _0x35a93e[_0x57a992('0x187f')]({'title':_0x46ea3c[_0x57a992('0x2fa')]?'API:'+_0x46ea3c[_0x57a992('0x2fa')]+'\x20-\x20'+_0x46ea3c['statusText']:_0x57a992('0x1736'),'msg':_0x46ea3c[_0x57a992('0x10fd')]?JSON[_0x57a992('0xa48')](_0x46ea3c[_0x57a992('0x10fd')][_0x57a992('0x1402')]):_0x46ea3c[_0x57a992('0x684')]()});});}function _0x3e1f40(_0x5329af){var _0xf25ef5=_0x9caceb;_0x29cf3a[_0xf25ef5('0x4c6')]=[];var _0x43c701=_0x4a55d3[_0xf25ef5('0x281e')]()[_0xf25ef5('0x110a')](_0xf25ef5('0x12a3'))[_0xf25ef5('0x15af')](_0xf25ef5('0x273c'))[_0xf25ef5('0x5b5')](_0xf25ef5('0x122e'))['ok']('Delete')['cancel']('Cancel')[_0xf25ef5('0x116d')](_0x5329af);_0x4a55d3['show'](_0x43c701)[_0xf25ef5('0xaa5')](function(){var _0x1c72b2=_0xf25ef5;_0x486b94[_0x1c72b2('0x340')][_0x1c72b2('0x926')]({'id':_0x29cf3a['deskAccount']['id']})[_0x1c72b2('0x1dc2')][_0x1c72b2('0xaa5')](function(){var _0x231744=_0x1c72b2;_0x51538b()[_0x231744('0xf6d')](_0x29cf3a[_0x231744('0x249d')],{'id':_0x29cf3a[_0x231744('0x13e7')]['id']}),_0x35a93e['success']({'title':_0x231744('0x905'),'msg':(_0x29cf3a[_0x231744('0x13e7')][_0x231744('0x25d6')]||_0x231744('0x13e7'))+'\x20has\x20been\x20deleted!'}),_0x33f43f(_0x29cf3a[_0x231744('0x13e7')]);})[_0x1c72b2('0x253d')](function(_0x548200){var _0x4f055b=_0x1c72b2;if(_0x548200['data']&&_0x548200[_0x4f055b('0x10fd')][_0x4f055b('0x4c6')]&&_0x548200[_0x4f055b('0x10fd')][_0x4f055b('0x4c6')][_0x4f055b('0x2587')]){_0x29cf3a[_0x4f055b('0x4c6')]=_0x548200[_0x4f055b('0x10fd')]['errors']||[{'message':_0x548200[_0x4f055b('0x684')](),'type':'api.intDeskAccount.delete'}];for(var _0x46e57f=0x0;_0x46e57f<_0x548200[_0x4f055b('0x10fd')][_0x4f055b('0x4c6')][_0x4f055b('0x2587')];_0x46e57f++){_0x35a93e[_0x4f055b('0x187f')]({'title':_0x548200['data']['errors'][_0x46e57f][_0x4f055b('0x6c8')],'msg':_0x548200[_0x4f055b('0x10fd')]['errors'][_0x46e57f]['message']});}}else _0x35a93e[_0x4f055b('0x187f')]({'title':_0x548200[_0x4f055b('0x2fa')]?_0x4f055b('0x16c2')+_0x548200[_0x4f055b('0x2fa')]+_0x4f055b('0x169e')+_0x548200['statusText']:_0x4f055b('0x890'),'msg':_0x548200[_0x4f055b('0x10fd')]?JSON[_0x4f055b('0xa48')](_0x548200[_0x4f055b('0x10fd')]['message']):_0x548200[_0x4f055b('0x1402')]||_0x548200['toString']()});});},function(){});}function _0x4fe8bd(_0x46389d){return _0x46389d===null?undefined:new Date(_0x46389d);}function _0x33f43f(_0x32c559){_0x4a55d3['hide'](_0x32c559);}}const _0x2511af=_0x17fe31,_0x2bf9e8=_0x4fb511['p']+_0x1a8446('0xab7');_0x514019[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x249d'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x1202'),'setting'];function _0x514019(_0x32b801,_0x245f38,_0x360f1b,_0x27895d,_0x5468bd,_0x5d8e43,_0x4e7f45,_0x39a26a,_0x27ec20,_0x282c69,_0x1e8084,_0x7de26c,_0x2e24df,_0x2185d6,_0x50aed9,_0x44b976,_0x406877){var _0x155ed5=_0x1a8446,_0x427c2c=this;_0x427c2c[_0x155ed5('0x1202')]=_0x44b976,_0x427c2c[_0x155ed5('0x143f')]=_0x406877,_0x427c2c[_0x155ed5('0x7fc')]=_0x50aed9[_0x155ed5('0xacc')](),_0x427c2c[_0x155ed5('0x249d')]=_0x27ec20||{'count':0x0,'rows':[]},_0x427c2c['userProfile']=_0x282c69,_0x427c2c[_0x155ed5('0x1a50')]=_0x1e8084&&_0x1e8084[_0x155ed5('0xd15')]==0x1?_0x1e8084[_0x155ed5('0x580')][0x0]:null,_0x427c2c[_0x155ed5('0xada')]=_0x50aed9['parseCrudPermissions'](_0x427c2c[_0x155ed5('0x1a50')]?_0x427c2c['userProfileSection']['crudPermissions']:null),_0x427c2c[_0x155ed5('0x12b6')]=_0x155ed5('0x249d'),_0x427c2c[_0x155ed5('0x164')]='',_0x427c2c[_0x155ed5('0x8cc')]=null,_0x427c2c[_0x155ed5('0x19ef')]=[],_0x427c2c[_0x155ed5('0x582')]={'fields':_0x155ed5('0xa59'),'limit':0xa,'page':0x1},_0x427c2c[_0x155ed5('0x1bee')]=_0x51538b()[_0x155ed5('0x184a')]([{'option':_0x155ed5('0x4e3'),'value':_0x155ed5('0x23f9')},{'option':'New_Tab','value':_0x155ed5('0x1e01')}],function(_0x2bdc49){var _0x2ac891=_0x155ed5;return _0x51538b()[_0x2ac891('0x170d')](_0x2bdc49[_0x2ac891('0x12f4')],new RegExp('\x27','g'),'');}),_0x427c2c['arrayauthType']=_0x51538b()[_0x155ed5('0x184a')]([{'option':_0x155ed5('0x1496'),'value':_0x155ed5('0x25a6')}],function(_0xbca77b){var _0xe9094d=_0x155ed5;return _0x51538b()[_0xe9094d('0x170d')](_0xbca77b[_0xe9094d('0x12f4')],new RegExp('\x27','g'),'');}),_0x427c2c[_0x155ed5('0x1927')]=_0x4c7c8f,_0x427c2c[_0x155ed5('0xa49')]=_0x241b9f,_0x427c2c['deleteconfirm']=_0x2e4cd8,_0x427c2c[_0x155ed5('0xe10')]=_0x29f788,_0x427c2c[_0x155ed5('0x252c')]=_0x3c5828,_0x427c2c['createOrEditDeskAccount']=_0x1faad6,_0x427c2c['deleteDeskAccount']=_0x5892ea,_0x427c2c[_0x155ed5('0xbac')]=_0x1bd53d,_0x427c2c['deleteSelectedDeskAccounts']=_0x3e32eb,_0x427c2c[_0x155ed5('0x1b02')]=_0x44d1f4,_0x427c2c[_0x155ed5('0xf20')]=_0x27b469;function _0x4c7c8f(_0x4f9fea){var _0x226267=_0x155ed5;_0x360f1b['go'](_0x226267('0xa12'),{'id':_0x4f9fea['id'],'deskAccount':_0x4f9fea,'crudPermissions':_0x427c2c['crudPermissions']});}function _0x241b9f(_0x52ec68){var _0x40b6af=_0x155ed5;return _0x7de26c[_0x40b6af('0x340')][_0x40b6af('0x1450')]({'id':_0x52ec68['id'],'test':!![]})['$promise'][_0x40b6af('0xaa5')](function(){var _0x393433=_0x40b6af;_0x2185d6[_0x393433('0xe10')]({'title':_0x393433('0xe03'),'msg':_0x393433('0x2633')});})[_0x40b6af('0x253d')](function(_0x3fdf17){var _0x58aaf2=_0x40b6af;_0x2185d6[_0x58aaf2('0x187f')]({'title':_0x58aaf2('0xe03'),'msg':_0x3fdf17[_0x58aaf2('0x10fd')]?_0x3fdf17[_0x58aaf2('0x10fd')][_0x58aaf2('0x1402')]?_0x3fdf17[_0x58aaf2('0x10fd')][_0x58aaf2('0x1402')]:JSON[_0x58aaf2('0xa48')](_0x3fdf17[_0x58aaf2('0x10fd')]):_0x3fdf17[_0x58aaf2('0x684')]()});});}function _0x2e4cd8(_0x22588a,_0x3098e7){var _0x466eca=_0x155ed5,_0x433c1a=_0x5468bd[_0x466eca('0x281e')]()[_0x466eca('0x110a')](_0x466eca('0x88d')+_0x51538b()[_0x466eca('0x196a')]('deskAccount')+'?')['htmlContent'](''+(_0x22588a['name']||_0x466eca('0x13e7'))+''+_0x466eca('0x210d'))['ariaLabel'](_0x466eca('0x1f0c'))['targetEvent'](_0x3098e7)['ok']('OK')[_0x466eca('0x2030')](_0x466eca('0x2410'));_0x5468bd[_0x466eca('0x1e6d')](_0x433c1a)[_0x466eca('0xaa5')](function(){_0x5892ea(_0x22588a);},function(){var _0x2dad2f=_0x466eca;console[_0x2dad2f('0x18d5')](_0x2dad2f('0x2410'));});}var _0x539f3c=!![],_0x45e24a=0x1;_0x32b801['$watch'](_0x155ed5('0x1788'),function(_0xa11c9b,_0x22b89b){var _0x28a507=_0x155ed5;_0x539f3c?_0x4e7f45(function(){_0x539f3c=![];}):(!_0x22b89b&&(_0x45e24a=_0x427c2c[_0x28a507('0x582')][_0x28a507('0x41')]),_0xa11c9b!==_0x22b89b&&(_0x427c2c[_0x28a507('0x582')]['page']=0x1),!_0xa11c9b&&(_0x427c2c[_0x28a507('0x582')][_0x28a507('0x41')]=_0x45e24a),_0x427c2c[_0x28a507('0x252c')]());});function _0x29f788(_0x4752d3){_0x427c2c['deskAccounts']=_0x4752d3||{'count':0x0,'rows':[]};}function _0x3c5828(){var _0xffe6e7=_0x155ed5;_0x427c2c[_0xffe6e7('0x582')][_0xffe6e7('0x8b1')]=(_0x427c2c['query'][_0xffe6e7('0x41')]-0x1)*_0x427c2c['query']['limit'],_0x50aed9[_0xffe6e7('0x26e8')](_0xffe6e7('0x178b'))?_0x427c2c[_0xffe6e7('0x159a')]=_0x7de26c[_0xffe6e7('0x340')][_0xffe6e7('0x2122')](_0x427c2c['query'],_0x29f788)[_0xffe6e7('0x1dc2')]:(_0x427c2c[_0xffe6e7('0x582')]['id']=_0x427c2c[_0xffe6e7('0x1e97')]['id'],_0x427c2c[_0xffe6e7('0x582')][_0xffe6e7('0x224d')]=_0xffe6e7('0x152d'),_0x427c2c[_0xffe6e7('0x159a')]=_0x7de26c['userProfile']['getResources'](_0x427c2c['query'],_0x29f788)['$promise']);}function _0x1faad6(_0x376de1,_0x59a1d1){var _0x195996=_0x155ed5;_0x5468bd[_0x195996('0x1e6d')]({'controller':'CreateOrEditDeskAccountDialogController','controllerAs':'vm','templateUrl':_0x2bf9e8,'parent':angular['element'](_0x5d8e43[_0x195996('0x54c')]),'targetEvent':_0x376de1,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x59a1d1,'deskAccounts':_0x427c2c[_0x195996('0x249d')][_0x195996('0x580')],'license':_0x427c2c[_0x195996('0x1202')],'setting':_0x427c2c[_0x195996('0x143f')],'crudPermissions':_0x427c2c[_0x195996('0xada')]}});}function _0x5892ea(_0x271ddd){var _0x1edea9=_0x155ed5;_0x7de26c['intDeskAccount'][_0x1edea9('0x926')]({'id':_0x271ddd['id']})[_0x1edea9('0x1dc2')]['then'](function(){var _0x1efeab=_0x1edea9;_0x51538b()['remove'](_0x427c2c[_0x1efeab('0x249d')]['rows'],{'id':_0x271ddd['id']}),_0x427c2c['deskAccounts'][_0x1efeab('0xd15')]-=0x1,!_0x427c2c[_0x1efeab('0x249d')][_0x1efeab('0x580')]['length']&&_0x427c2c[_0x1efeab('0x252c')](),_0x2185d6[_0x1efeab('0xe10')]({'title':_0x51538b()[_0x1efeab('0x196a')]('DeskAccount')+'\x20deleted!','msg':_0x271ddd[_0x1efeab('0x25d6')]?_0x271ddd[_0x1efeab('0x25d6')]+_0x1efeab('0xcd9'):''});})['catch'](function(_0x4355db){var _0x55a313=_0x1edea9;if(_0x4355db['data']&&_0x4355db[_0x55a313('0x10fd')][_0x55a313('0x4c6')]&&_0x4355db[_0x55a313('0x10fd')][_0x55a313('0x4c6')]['length']){_0x427c2c[_0x55a313('0x4c6')]=_0x4355db['data']['errors']||[{'message':_0x4355db[_0x55a313('0x684')](),'type':_0x55a313('0x24c2')}];for(var _0x2dba0c=0x0;_0x2dba0c<_0x4355db[_0x55a313('0x10fd')][_0x55a313('0x4c6')]['length'];_0x2dba0c++){_0x2185d6[_0x55a313('0x187f')]({'title':_0x4355db[_0x55a313('0x10fd')][_0x55a313('0x4c6')][_0x2dba0c][_0x55a313('0x6c8')],'msg':_0x4355db[_0x55a313('0x10fd')][_0x55a313('0x4c6')][_0x2dba0c]['message']});}}else _0x2185d6[_0x55a313('0x187f')]({'title':_0x4355db[_0x55a313('0x2fa')]?_0x55a313('0x16c2')+_0x4355db['status']+_0x55a313('0x169e')+_0x4355db[_0x55a313('0x24df')]:_0x55a313('0x24c2'),'msg':_0x4355db[_0x55a313('0x10fd')]?JSON[_0x55a313('0xa48')](_0x4355db[_0x55a313('0x10fd')][_0x55a313('0x1402')]):_0x4355db[_0x55a313('0x1402')]||_0x4355db['toString']()});});}function _0x1bd53d(){var _0x1ccac1=_0x155ed5,_0x27763f=angular[_0x1ccac1('0x20a')](_0x427c2c[_0x1ccac1('0x19ef')]);return _0x427c2c[_0x1ccac1('0x19ef')]=[],_0x27763f;}function _0x3e32eb(_0x2659fe){var _0x108513=_0x155ed5,_0x19b4cc=_0x5468bd[_0x108513('0x281e')]()[_0x108513('0x110a')](_0x108513('0x38a'))[_0x108513('0x102e')](_0x108513('0x389')+_0x427c2c[_0x108513('0x19ef')][_0x108513('0x2587')]+_0x108513('0x1443')+_0x108513('0x210d'))[_0x108513('0x5b5')](_0x108513('0x259f'))[_0x108513('0x116d')](_0x2659fe)['ok']('OK')['cancel'](_0x108513('0x2410'));_0x5468bd[_0x108513('0x1e6d')](_0x19b4cc)['then'](function(){var _0x41cc86=_0x108513;_0x427c2c['selectedDeskAccounts'][_0x41cc86('0x15b5')](function(_0x35fbf3){_0x5892ea(_0x35fbf3);}),_0x427c2c[_0x41cc86('0x19ef')]=[];});}function _0x44d1f4(){_0x427c2c['selectedDeskAccounts']=[];}function _0x27b469(){var _0x5dd28f=_0x155ed5;_0x427c2c['selectedDeskAccounts']=_0x427c2c[_0x5dd28f('0x249d')][_0x5dd28f('0x580')];}}const _0x19f827=_0x514019,_0x385955=_0x4fb511['p']+_0x1a8446('0x3c'),_0x4682a3=_0x4fb511['p']+_0x1a8446('0x1709');_0x508c9a[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$document',_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x508c9a(_0x3b5b5f,_0xb2f4d9,_0x2dc04a,_0x486a79,_0x334143){var _0x3c26be=_0x1a8446,_0x1b7e80=this;_0x1b7e80['currentUser']=_0x334143[_0x3c26be('0xacc')](),_0x1b7e80[_0x3c26be('0x13e7')]={},_0x1b7e80['deskConfiguration']={},_0x1b7e80['configurations']=[],_0x1b7e80[_0x3c26be('0xf39')]=-0x1,_0x1b7e80[_0x3c26be('0xada')],_0x1b7e80[_0x3c26be('0x2e')]=_0x26fa81,_0x1b7e80[_0x3c26be('0x1155')]=_0x37da79,_0x1b7e80['createOrEditDeskConfiguration']=_0x53f8ed,_0x1b7e80[_0x3c26be('0x2445')]=_0x738131,_0x1b7e80[_0x3c26be('0x1373')]=[],_0x1b7e80[_0x3c26be('0x1167')]=_0x502824,_0x2dc04a[_0x3c26be('0x38f')][_0x3c26be('0x2122')]({'nolimit':!![],'sort':_0x3c26be('0x25d6')})['$promise'][_0x3c26be('0xaa5')](function(_0x2a7f9b){var _0x437989=_0x3c26be;_0x1b7e80[_0x437989('0x523')]=_0x2a7f9b[_0x437989('0x580')]?_0x2a7f9b['rows']:[];})['catch'](function(_0x321bf9){var _0x39f97d=_0x3c26be;_0x486a79[_0x39f97d('0x187f')]({'title':_0x321bf9['status']?'API:'+_0x321bf9[_0x39f97d('0x2fa')]+_0x39f97d('0x169e')+_0x321bf9['statusText']:'SYSTEM:GETTAGS','msg':_0x321bf9[_0x39f97d('0x10fd')]?JSON[_0x39f97d('0xa48')](_0x321bf9[_0x39f97d('0x10fd')]):_0x321bf9[_0x39f97d('0x684')]()});});function _0x502824(){var _0x28b6cb=_0x3c26be;_0x2dc04a[_0x28b6cb('0x2062')]['setTags']({'id':_0x1b7e80[_0x28b6cb('0x1939')]['id'],'ids':_0x1b7e80[_0x28b6cb('0x1373')]})[_0x28b6cb('0x1dc2')][_0x28b6cb('0xaa5')](function(){var _0x557d2b=_0x28b6cb;_0x486a79['success']({'title':'Tags\x20set!','msg':_0x557d2b('0x3df')});})[_0x28b6cb('0x253d')](function(_0x7a5674){var _0x5a4eaf=_0x28b6cb;_0x486a79['error']({'title':_0x7a5674[_0x5a4eaf('0x2fa')]?_0x5a4eaf('0x16c2')+_0x7a5674[_0x5a4eaf('0x2fa')]+_0x5a4eaf('0x169e')+_0x7a5674[_0x5a4eaf('0x24df')]:'SYSTEM:ADDTAGS','msg':_0x7a5674[_0x5a4eaf('0x10fd')]?JSON[_0x5a4eaf('0xa48')](_0x7a5674[_0x5a4eaf('0x10fd')]):_0x7a5674['toString']()});});}function _0x26fa81(_0x4c80d9,_0x4111eb){var _0x5a802e=_0x3c26be;_0x1b7e80[_0x5a802e('0x13e7')]=_0x4c80d9,_0x1b7e80['crudPermissions']=typeof _0x4111eb!==_0x5a802e('0x1574')?_0x4111eb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2dc04a[_0x5a802e('0x340')]['getConfigurations']({'id':_0x1b7e80[_0x5a802e('0x13e7')]['id'],'sort':'-updatedAt'})[_0x5a802e('0x1dc2')][_0x5a802e('0xaa5')](function(_0x4833b7){var _0x2bd8a5=_0x5a802e;return _0x1b7e80[_0x2bd8a5('0x555')]=_0x4833b7[_0x2bd8a5('0x580')]?_0x4833b7['rows']:[],_0x1b7e80[_0x2bd8a5('0x555')][_0x2bd8a5('0x2587')]&&_0x1b7e80[_0x2bd8a5('0x1155')](0x0),_0x2dc04a['variable']['get']({'nolimit':!![],'sort':'name'})[_0x2bd8a5('0x1dc2')];})['then'](function(_0x1ba7d7){var _0x1027b2=_0x5a802e;_0x1b7e80[_0x1027b2('0x147e')]=_0x1ba7d7[_0x1027b2('0x580')]?_0x1ba7d7[_0x1027b2('0x580')]:[],_0x1b7e80[_0x1027b2('0x2032')]=_0x51538b()[_0x1027b2('0x184a')](_0x1b7e80[_0x1027b2('0x147e')],'id');})[_0x5a802e('0x253d')](function(_0xbf5aa4){var _0x31af08=_0x5a802e;_0x486a79[_0x31af08('0x187f')]({'title':_0xbf5aa4[_0x31af08('0x2fa')]?_0x31af08('0x16c2')+_0xbf5aa4['status']+_0x31af08('0x169e')+_0xbf5aa4[_0x31af08('0x24df')]:_0x31af08('0x24c9'),'msg':_0xbf5aa4['data']?JSON['stringify'](_0xbf5aa4[_0x31af08('0x10fd')]):_0xbf5aa4[_0x31af08('0x684')]()});});}function _0x37da79(_0x6cc9da){var _0x2e604b=_0x3c26be;_0x1b7e80[_0x2e604b('0x1939')]=_0x1b7e80[_0x2e604b('0x555')][_0x6cc9da],_0x1b7e80[_0x2e604b('0xf39')]=_0x6cc9da,_0x2dc04a[_0x2e604b('0x2062')][_0x2e604b('0xeba')]({'id':_0x1b7e80['deskConfiguration']['id']})[_0x2e604b('0x1dc2')][_0x2e604b('0xaa5')](function(_0x52e30f){var _0x4adc65=_0x2e604b;return _0x1b7e80[_0x4adc65('0xc3f')]=_0x52e30f['rows']?_0x52e30f[_0x4adc65('0x580')]:[],_0x2dc04a[_0x4adc65('0x2062')][_0x4adc65('0x2103')]({'id':_0x1b7e80['deskConfiguration']['id']})[_0x4adc65('0x1dc2')];})['then'](function(_0x1d5900){var _0x800ccb=_0x2e604b;return _0x1b7e80[_0x800ccb('0x27b9')]=_0x1d5900[_0x800ccb('0x580')]?_0x1d5900[_0x800ccb('0x580')]:[],_0x2dc04a['intDeskConfiguration']['getFields']({'id':_0x1b7e80['deskConfiguration']['id']})[_0x800ccb('0x1dc2')];})['then'](function(_0x2c7450){var _0x29109d=_0x2e604b;_0x1b7e80['fields']=_0x2c7450['rows']?_0x2c7450[_0x29109d('0x580')]:[];})[_0x2e604b('0x253d')](function(_0x2f8ef3){var _0x55f665=_0x2e604b;_0x486a79[_0x55f665('0x187f')]({'title':_0x2f8ef3['status']?_0x55f665('0x16c2')+_0x2f8ef3[_0x55f665('0x2fa')]+_0x55f665('0x169e')+_0x2f8ef3[_0x55f665('0x24df')]:'SYSTEM:GETConfigurations','msg':_0x2f8ef3[_0x55f665('0x10fd')]?JSON[_0x55f665('0xa48')](_0x2f8ef3[_0x55f665('0x10fd')]):_0x2f8ef3[_0x55f665('0x684')]()});}),_0x2dc04a[_0x2e604b('0x2062')][_0x2e604b('0x195b')]({'id':_0x1b7e80[_0x2e604b('0x1939')]['id']})[_0x2e604b('0x1dc2')][_0x2e604b('0xaa5')](function(_0x17159a){var _0x83d4e8=_0x2e604b;_0x1b7e80['selectedTags']=_0x17159a[_0x83d4e8('0x580')]?_0x51538b()['map'](_0x17159a['rows'],'id'):[];})['catch'](function(_0x2537dc){var _0x1bdf77=_0x2e604b;_0x486a79[_0x1bdf77('0x187f')]({'title':_0x2537dc[_0x1bdf77('0x2fa')]?_0x1bdf77('0x16c2')+_0x2537dc['status']+_0x1bdf77('0x169e')+_0x2537dc[_0x1bdf77('0x24df')]:_0x1bdf77('0xe67'),'msg':_0x2537dc['data']?JSON['stringify'](_0x2537dc[_0x1bdf77('0x10fd')]):_0x2537dc[_0x1bdf77('0x684')]()});});}function _0x53f8ed(_0x2de10e,_0x4ff665){var _0x493e25=_0x3c26be;_0x3b5b5f[_0x493e25('0x1e6d')]({'controller':_0x493e25('0x791'),'controllerAs':'vm','templateUrl':_0x385955,'parent':angular[_0x493e25('0x1aa8')](_0xb2f4d9[_0x493e25('0x54c')]),'targetEvent':_0x2de10e,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x4ff665,'configurations':_0x1b7e80[_0x493e25('0x555')],'license':null,'setting':null,'crudPermissions':_0x1b7e80[_0x493e25('0xada')]}})[_0x493e25('0x1889')](function(){var _0x5b704e=_0x493e25;_0x1b7e80[_0x5b704e('0x1155')](0x0);});}function _0x738131(_0x5a0915,_0x55512){var _0xb12a9=_0x3c26be,_0x352bb2=_0x3b5b5f[_0xb12a9('0x281e')]()[_0xb12a9('0x110a')](_0xb12a9('0x24e5'))[_0xb12a9('0x102e')](_0xb12a9('0x389')+(_0x55512[_0xb12a9('0x25d6')]||'deskConfiguration')+_0xb12a9('0x697')+_0xb12a9('0x210d'))[_0xb12a9('0x5b5')](_0xb12a9('0x581'))[_0xb12a9('0x116d')](_0x5a0915)['ok']('OK')[_0xb12a9('0x2030')](_0xb12a9('0x2410'));_0x3b5b5f[_0xb12a9('0x1e6d')](_0x352bb2)[_0xb12a9('0xaa5')](function(){var _0x26c1f5=_0xb12a9;_0x2dc04a[_0x26c1f5('0x2062')]['delete']({'id':_0x55512['id']})['$promise']['then'](function(){var _0x27f2c1=_0x26c1f5;_0x51538b()['remove'](_0x1b7e80[_0x27f2c1('0x555')],{'id':_0x55512['id']}),_0x486a79[_0x27f2c1('0xe10')]({'title':_0x27f2c1('0x1235'),'msg':_0x55512[_0x27f2c1('0x25d6')]?_0x55512[_0x27f2c1('0x25d6')]+_0x27f2c1('0xcd9'):''});})[_0x26c1f5('0x253d')](function(_0x3573c3){var _0x335bc7=_0x26c1f5;_0x486a79[_0x335bc7('0x187f')]({'title':_0x3573c3['status']?_0x335bc7('0x16c2')+_0x3573c3[_0x335bc7('0x2fa')]+_0x335bc7('0x169e')+_0x3573c3[_0x335bc7('0x24df')]:'SYSTEM:DELETECONFIGURATION','msg':_0x3573c3[_0x335bc7('0x10fd')]?JSON[_0x335bc7('0xa48')](_0x3573c3[_0x335bc7('0x10fd')]):_0x3573c3[_0x335bc7('0x684')]()});})[_0x26c1f5('0x1889')](function(){var _0x55f5e0=_0x26c1f5;_0x1b7e80[_0x55f5e0('0x1155')](0x0);});},function(){var _0x3ee0cc=_0xb12a9;console[_0x3ee0cc('0x18d5')](_0x3ee0cc('0x2410'));});}_0x1b7e80['selectedSubjects']=[],_0x1b7e80['createOrEditSubject']=_0x21dc30,_0x1b7e80[_0x3c26be('0x1e1e')]=_0x1bcf3e,_0x1b7e80['deleteSelectedSubjects']=_0x1512ef;function _0x21dc30(_0x492071,_0x3fa8b0){var _0x21b6d2=_0x3c26be;_0x3b5b5f[_0x21b6d2('0x1e6d')]({'controller':_0x21b6d2('0x2248'),'controllerAs':'vm','templateUrl':_0x4682a3,'parent':angular[_0x21b6d2('0x1aa8')](_0xb2f4d9[_0x21b6d2('0x54c')]),'targetEvent':_0x492071,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x3fa8b0,'items':_0x1b7e80['subjects'],'configuration':_0x1b7e80['deskConfiguration'],'account':_0x1b7e80[_0x21b6d2('0x13e7')],'license':null,'setting':null,'crudPermissions':_0x1b7e80[_0x21b6d2('0xada')]}});}function _0x35996a(_0x2890f9){var _0x3a1054=_0x3c26be;_0x2dc04a[_0x3a1054('0x2585')]['delete']({'id':_0x2890f9['id']})['$promise'][_0x3a1054('0xaa5')](function(){var _0x4ac73c=_0x3a1054;_0x51538b()[_0x4ac73c('0xf6d')](_0x1b7e80['subjects'],{'id':_0x2890f9['id']}),_0x486a79['success']({'title':_0x4ac73c('0xcad'),'msg':_0x4ac73c('0x1732')});})['catch'](function(_0x4bd168){var _0x31f73f=_0x3a1054;_0x486a79[_0x31f73f('0x187f')]({'title':_0x4bd168[_0x31f73f('0x2fa')]?_0x31f73f('0x16c2')+_0x4bd168[_0x31f73f('0x2fa')]+'\x20-\x20'+_0x4bd168[_0x31f73f('0x24df')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x4bd168[_0x31f73f('0x10fd')]?JSON['stringify'](_0x4bd168[_0x31f73f('0x10fd')]):_0x4bd168['toString']()});});}function _0x1bcf3e(_0x11ba4d,_0x48e4c1){var _0x1a2457=_0x3c26be,_0x457071=_0x3b5b5f['confirm']()['title'](_0x1a2457('0x16b5'))[_0x1a2457('0x102e')](_0x1a2457('0xd7')+_0x1a2457('0x210d'))[_0x1a2457('0x5b5')]('delete\x20subject')[_0x1a2457('0x116d')](_0x11ba4d)['ok']('OK')[_0x1a2457('0x2030')](_0x1a2457('0x2410'));_0x3b5b5f[_0x1a2457('0x1e6d')](_0x457071)[_0x1a2457('0xaa5')](function(){_0x35996a(_0x48e4c1);},function(){var _0x5825fe=_0x1a2457;console['log'](_0x5825fe('0x2410'));});}function _0x1512ef(_0x5ebfe5){var _0x56e658=_0x3c26be,_0x16c264=_0x3b5b5f[_0x56e658('0x281e')]()[_0x56e658('0x110a')](_0x56e658('0x6f0'))[_0x56e658('0x102e')](_0x56e658('0x389')+_0x1b7e80[_0x56e658('0xf7d')][_0x56e658('0x2587')]+_0x56e658('0x1443')+_0x56e658('0x210d'))[_0x56e658('0x5b5')](_0x56e658('0xfcd'))['targetEvent'](_0x5ebfe5)['ok']('OK')[_0x56e658('0x2030')]('CANCEL');_0x3b5b5f[_0x56e658('0x1e6d')](_0x16c264)[_0x56e658('0xaa5')](function(){var _0x28e8e1=_0x56e658;_0x1b7e80[_0x28e8e1('0xf7d')][_0x28e8e1('0x15b5')](function(_0x485634){_0x35996a(_0x485634);}),_0x1b7e80[_0x28e8e1('0xf7d')]=[];});}_0x1b7e80[_0x3c26be('0x1b51')]=[],_0x1b7e80[_0x3c26be('0x19db')]=_0x2a87c6,_0x1b7e80['deleteDescriptionConfirm']=_0x50e8ec,_0x1b7e80[_0x3c26be('0x416')]=_0x2f5721;function _0x2a87c6(_0x4419a1,_0x25e058){var _0x69c055=_0x3c26be;_0x3b5b5f[_0x69c055('0x1e6d')]({'controller':_0x69c055('0x2248'),'controllerAs':'vm','templateUrl':_0x4682a3,'parent':angular[_0x69c055('0x1aa8')](_0xb2f4d9[_0x69c055('0x54c')]),'targetEvent':_0x4419a1,'clickOutsideToClose':!![],'locals':{'type':_0x69c055('0x23d0'),'item':_0x25e058,'items':_0x1b7e80[_0x69c055('0x27b9')],'configuration':_0x1b7e80[_0x69c055('0x1939')],'account':_0x1b7e80[_0x69c055('0x13e7')],'license':null,'setting':null,'crudPermissions':_0x1b7e80[_0x69c055('0xada')]}});}function _0x4845c7(_0x3fa8f1){var _0xb4ad5b=_0x3c26be;_0x2dc04a[_0xb4ad5b('0x2585')]['delete']({'id':_0x3fa8f1['id']})['$promise']['then'](function(){var _0x4b213a=_0xb4ad5b;_0x51538b()[_0x4b213a('0xf6d')](_0x1b7e80[_0x4b213a('0x27b9')],{'id':_0x3fa8f1['id']}),_0x486a79['success']({'title':_0x4b213a('0x1d35'),'msg':_0x4b213a('0x266b')});})[_0xb4ad5b('0x253d')](function(_0xde412){var _0x3fccbc=_0xb4ad5b;_0x486a79[_0x3fccbc('0x187f')]({'title':_0xde412[_0x3fccbc('0x2fa')]?_0x3fccbc('0x16c2')+_0xde412[_0x3fccbc('0x2fa')]+_0x3fccbc('0x169e')+_0xde412[_0x3fccbc('0x24df')]:_0x3fccbc('0xdd7'),'msg':_0xde412[_0x3fccbc('0x10fd')]?JSON[_0x3fccbc('0xa48')](_0xde412['data']):_0xde412[_0x3fccbc('0x684')]()});});}function _0x50e8ec(_0x5cf6ed,_0x2618e5){var _0x1ee587=_0x3c26be,_0xb280ab=_0x3b5b5f['confirm']()['title'](_0x1ee587('0x19b6'))[_0x1ee587('0x102e')]('Description'+_0x1ee587('0x210d'))[_0x1ee587('0x5b5')](_0x1ee587('0x8b2'))[_0x1ee587('0x116d')](_0x5cf6ed)['ok']('OK')[_0x1ee587('0x2030')]('CANCEL');_0x3b5b5f[_0x1ee587('0x1e6d')](_0xb280ab)[_0x1ee587('0xaa5')](function(){_0x4845c7(_0x2618e5);},function(){var _0x460c22=_0x1ee587;console[_0x460c22('0x18d5')]('CANCEL');});}function _0x2f5721(_0xd88a6f){var _0x108be9=_0x3c26be,_0x2405e1=_0x3b5b5f[_0x108be9('0x281e')]()[_0x108be9('0x110a')](_0x108be9('0x12ce'))[_0x108be9('0x102e')](_0x108be9('0x389')+_0x1b7e80[_0x108be9('0x1b51')][_0x108be9('0x2587')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20descriptions')['targetEvent'](_0xd88a6f)['ok']('OK')[_0x108be9('0x2030')](_0x108be9('0x2410'));_0x3b5b5f[_0x108be9('0x1e6d')](_0x2405e1)[_0x108be9('0xaa5')](function(){var _0xfe3e37=_0x108be9;_0x1b7e80[_0xfe3e37('0x1b51')][_0xfe3e37('0x15b5')](function(_0x50252c){_0x4845c7(_0x50252c);}),_0x1b7e80[_0xfe3e37('0x1b51')]=[];});}_0x1b7e80[_0x3c26be('0x490')]=[],_0x1b7e80[_0x3c26be('0x1572')]=_0x452ccb,_0x1b7e80[_0x3c26be('0x353')]=_0xc95fd5,_0x1b7e80[_0x3c26be('0x261a')]=_0x3b84ec;function _0x452ccb(_0x51b871,_0x289e10){var _0x1ec617=_0x3c26be;_0x3b5b5f[_0x1ec617('0x1e6d')]({'controller':_0x1ec617('0x2248'),'controllerAs':'vm','templateUrl':_0x4682a3,'parent':angular[_0x1ec617('0x1aa8')](_0xb2f4d9[_0x1ec617('0x54c')]),'targetEvent':_0x51b871,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x289e10,'items':_0x1b7e80['fields'],'configuration':_0x1b7e80[_0x1ec617('0x1939')],'account':_0x1b7e80[_0x1ec617('0x13e7')],'license':null,'setting':null,'crudPermissions':_0x1b7e80[_0x1ec617('0xada')]}});}function _0x458e2a(_0x94e1e9){var _0x1e6072=_0x3c26be;_0x2dc04a[_0x1e6072('0x2585')][_0x1e6072('0x926')]({'id':_0x94e1e9['id']})[_0x1e6072('0x1dc2')][_0x1e6072('0xaa5')](function(){var _0x3b6a69=_0x1e6072;_0x51538b()[_0x3b6a69('0xf6d')](_0x1b7e80[_0x3b6a69('0x13a')],{'id':_0x94e1e9['id']}),_0x486a79[_0x3b6a69('0xe10')]({'title':_0x3b6a69('0x25e1'),'msg':'Field\x20has\x20been\x20deleted!'});})['catch'](function(_0x1a307d){var _0x2adb52=_0x1e6072;_0x486a79[_0x2adb52('0x187f')]({'title':_0x1a307d['status']?_0x2adb52('0x16c2')+_0x1a307d[_0x2adb52('0x2fa')]+_0x2adb52('0x169e')+_0x1a307d[_0x2adb52('0x24df')]:_0x2adb52('0xdd7'),'msg':_0x1a307d['data']?JSON['stringify'](_0x1a307d[_0x2adb52('0x10fd')]):_0x1a307d['toString']()});});}function _0xc95fd5(_0x10cc1d,_0x560d59){var _0x55affc=_0x3c26be,_0x141b52=_0x3b5b5f['confirm']()[_0x55affc('0x110a')](_0x55affc('0x27fc'))['htmlContent'](_0x55affc('0x455')+_0x55affc('0x210d'))[_0x55affc('0x5b5')](_0x55affc('0x1286'))[_0x55affc('0x116d')](_0x10cc1d)['ok']('OK')[_0x55affc('0x2030')](_0x55affc('0x2410'));_0x3b5b5f[_0x55affc('0x1e6d')](_0x141b52)['then'](function(){_0x458e2a(_0x560d59);},function(){var _0x11c39a=_0x55affc;console[_0x11c39a('0x18d5')](_0x11c39a('0x2410'));});}function _0x3b84ec(_0x2c52fa){var _0x103db2=_0x3c26be,_0x4a7a42=_0x3b5b5f[_0x103db2('0x281e')]()[_0x103db2('0x110a')](_0x103db2('0xf28'))['htmlContent'](_0x103db2('0x389')+_0x1b7e80[_0x103db2('0x490')][_0x103db2('0x2587')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x103db2('0x5b5')](_0x103db2('0xefc'))['targetEvent'](_0x2c52fa)['ok']('OK')['cancel']('CANCEL');_0x3b5b5f[_0x103db2('0x1e6d')](_0x4a7a42)[_0x103db2('0xaa5')](function(){var _0xfebea4=_0x103db2;_0x1b7e80['selectedFields'][_0xfebea4('0x15b5')](function(_0xd1a4bd){_0x458e2a(_0xd1a4bd);}),_0x1b7e80['selectedFields']=[];});}}const _0x5c2bfe=_0x508c9a;_0x463a2c[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'configurations',_0x1a8446('0x1939'),'api','Auth',_0x1a8446('0x1202'),'setting','crudPermissions'];function _0x463a2c(_0x3d85fb,_0x53f7d7,_0x2b5279,_0x21dfa5,_0x106768,_0x14ae52,_0x322a27,_0x430b1c,_0x547c85,_0x12277b,_0x5d4302,_0x1b2370,_0xe7d03f,_0x4388b2){var _0x1f5861=_0x1a8446,_0x4e7dd3=this;_0x4e7dd3[_0x1f5861('0x7fc')]=_0x5d4302[_0x1f5861('0xacc')](),_0x4e7dd3['errors']=[],_0x4e7dd3['setting']=_0xe7d03f,_0x4e7dd3[_0x1f5861('0x1202')]=_0x1b2370,_0x4e7dd3[_0x1f5861('0xada')]=_0x4388b2,_0x4e7dd3['hasModulePermissions']={},_0x4e7dd3['passwordPattern']=_0x4e7dd3[_0x1f5861('0x143f')]&&_0x4e7dd3[_0x1f5861('0x143f')][_0x1f5861('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4e7dd3['title']=_0x1f5861('0xe9f'),_0x4e7dd3[_0x1f5861('0x1939')]=angular[_0x1f5861('0x20a')](_0x547c85),_0x4e7dd3[_0x1f5861('0x555')]=_0x430b1c,_0x4e7dd3['newDeskConfiguration']=![];!_0x4e7dd3[_0x1f5861('0x1939')]&&(_0x4e7dd3['deskConfiguration']={'channel':'voice','type':_0x1f5861('0x4b8')},_0x4e7dd3[_0x1f5861('0x110a')]=_0x1f5861('0x22fc'),_0x4e7dd3[_0x1f5861('0x7db')]=!![]);_0x4e7dd3[_0x1f5861('0x25c8')]=_0x1fbe57,_0x4e7dd3['saveDeskConfiguration']=_0x198838,_0x4e7dd3['deleteDeskConfiguration']=_0x12c191,_0x4e7dd3[_0x1f5861('0xc09')]=_0x4a5c5f,_0x4e7dd3[_0x1f5861('0x2023')]=_0x2ddc0d;function _0x1fbe57(){var _0x24f4be=_0x1f5861;_0x4e7dd3['errors']=[],_0x12277b[_0x24f4be('0x340')][_0x24f4be('0x118f')]({'id':_0x53f7d7[_0x24f4be('0x25cf')]['id']},_0x4e7dd3[_0x24f4be('0x1939')])[_0x24f4be('0x1dc2')][_0x24f4be('0xaa5')](function(_0x4dafe6){var _0x4ded45=_0x24f4be;_0x4e7dd3[_0x4ded45('0x555')][_0x4ded45('0x6ee')](_0x4dafe6[_0x4ded45('0x256a')]()),_0x322a27[_0x4ded45('0xe10')]({'title':_0x4ded45('0x73a'),'msg':_0x4e7dd3[_0x4ded45('0x1939')][_0x4ded45('0x25d6')]?_0x4e7dd3[_0x4ded45('0x1939')][_0x4ded45('0x25d6')]+_0x4ded45('0xdca'):''}),_0x2ddc0d(_0x4dafe6);})['catch'](function(_0x1a1fb2){var _0x3fa1ea=_0x24f4be;if(_0x1a1fb2['data']&&_0x1a1fb2['data'][_0x3fa1ea('0x4c6')]&&_0x1a1fb2[_0x3fa1ea('0x10fd')][_0x3fa1ea('0x4c6')][_0x3fa1ea('0x2587')]){_0x4e7dd3['errors']=_0x1a1fb2[_0x3fa1ea('0x10fd')][_0x3fa1ea('0x4c6')]||[{'message':_0x1a1fb2[_0x3fa1ea('0x684')](),'type':'api.intDeskConfiguration.save'}];for(var _0x142084=0x0;_0x142084<_0x1a1fb2[_0x3fa1ea('0x10fd')][_0x3fa1ea('0x4c6')][_0x3fa1ea('0x2587')];_0x142084+=0x1){_0x322a27['error']({'title':_0x1a1fb2[_0x3fa1ea('0x10fd')]['errors'][_0x142084][_0x3fa1ea('0x6c8')],'msg':_0x1a1fb2[_0x3fa1ea('0x10fd')][_0x3fa1ea('0x4c6')][_0x142084][_0x3fa1ea('0x1402')]});}}else _0x322a27[_0x3fa1ea('0x187f')]({'title':_0x1a1fb2[_0x3fa1ea('0x2fa')]?_0x3fa1ea('0x16c2')+_0x1a1fb2[_0x3fa1ea('0x2fa')]+'\x20-\x20'+_0x1a1fb2['statusText']:_0x3fa1ea('0xa24'),'msg':_0x1a1fb2['data']?JSON[_0x3fa1ea('0xa48')](_0x1a1fb2[_0x3fa1ea('0x10fd')][_0x3fa1ea('0x1402')]):_0x1a1fb2[_0x3fa1ea('0x684')]()});});}function _0x198838(){var _0x45fd8f=_0x1f5861;_0x4e7dd3[_0x45fd8f('0x4c6')]=[],_0x12277b[_0x45fd8f('0x2062')][_0x45fd8f('0x264e')]({'id':_0x4e7dd3[_0x45fd8f('0x1939')]['id']},_0x4e7dd3[_0x45fd8f('0x1939')])[_0x45fd8f('0x1dc2')][_0x45fd8f('0xaa5')](function(_0x39b0a0){var _0x5ad8b8=_0x45fd8f,_0x557c30=_0x51538b()[_0x5ad8b8('0xe9e')](_0x4e7dd3[_0x5ad8b8('0x555')],{'id':_0x39b0a0['id']});_0x557c30&&_0x51538b()[_0x5ad8b8('0x283c')](_0x557c30,_0x51538b()[_0x5ad8b8('0x104e')](_0x39b0a0[_0x5ad8b8('0x256a')](),_0x51538b()[_0x5ad8b8('0x9f2')](_0x557c30))),_0x322a27[_0x5ad8b8('0xe10')]({'title':_0x5ad8b8('0x1925'),'msg':_0x4e7dd3[_0x5ad8b8('0x1939')][_0x5ad8b8('0x25d6')]?_0x4e7dd3[_0x5ad8b8('0x1939')][_0x5ad8b8('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x2ddc0d(_0x39b0a0);})['catch'](function(_0x284c2b){var _0x3c2e9c=_0x45fd8f;if(_0x284c2b[_0x3c2e9c('0x10fd')]&&_0x284c2b[_0x3c2e9c('0x10fd')][_0x3c2e9c('0x4c6')]&&_0x284c2b[_0x3c2e9c('0x10fd')][_0x3c2e9c('0x4c6')][_0x3c2e9c('0x2587')]){_0x4e7dd3[_0x3c2e9c('0x4c6')]=_0x284c2b[_0x3c2e9c('0x10fd')][_0x3c2e9c('0x4c6')]||[{'message':_0x284c2b['toString'](),'type':_0x3c2e9c('0xffa')}];for(var _0x17f54a=0x0;_0x17f54a<_0x284c2b[_0x3c2e9c('0x10fd')][_0x3c2e9c('0x4c6')][_0x3c2e9c('0x2587')];_0x17f54a++){_0x322a27[_0x3c2e9c('0x187f')]({'title':_0x284c2b['data'][_0x3c2e9c('0x4c6')][_0x17f54a][_0x3c2e9c('0x6c8')],'msg':_0x284c2b[_0x3c2e9c('0x10fd')][_0x3c2e9c('0x4c6')][_0x17f54a][_0x3c2e9c('0x1402')]});}}else _0x322a27[_0x3c2e9c('0x187f')]({'title':_0x284c2b['status']?_0x3c2e9c('0x16c2')+_0x284c2b[_0x3c2e9c('0x2fa')]+_0x3c2e9c('0x169e')+_0x284c2b['statusText']:_0x3c2e9c('0xffa'),'msg':_0x284c2b[_0x3c2e9c('0x10fd')]?JSON[_0x3c2e9c('0xa48')](_0x284c2b['data'][_0x3c2e9c('0x1402')]):_0x284c2b[_0x3c2e9c('0x684')]()});});}function _0x12c191(_0x546857){var _0xfc79d4=_0x1f5861;_0x4e7dd3[_0xfc79d4('0x4c6')]=[];var _0x4c5ee8=_0x21dfa5['confirm']()[_0xfc79d4('0x110a')]('Are\x20you\x20sure?')['content'](_0xfc79d4('0x12a4'))[_0xfc79d4('0x5b5')](_0xfc79d4('0x2680'))['ok'](_0xfc79d4('0x1e76'))[_0xfc79d4('0x2030')](_0xfc79d4('0x9c6'))['targetEvent'](_0x546857);_0x21dfa5['show'](_0x4c5ee8)[_0xfc79d4('0xaa5')](function(){var _0x39fca2=_0xfc79d4;_0x12277b['intDeskConfiguration'][_0x39fca2('0x926')]({'id':_0x4e7dd3[_0x39fca2('0x1939')]['id']})[_0x39fca2('0x1dc2')][_0x39fca2('0xaa5')](function(){var _0x1c6a09=_0x39fca2;_0x51538b()[_0x1c6a09('0xf6d')](_0x4e7dd3['configurations'],{'id':_0x4e7dd3['deskConfiguration']['id']}),_0x322a27[_0x1c6a09('0xe10')]({'title':_0x1c6a09('0x2071'),'msg':(_0x4e7dd3['deskConfiguration'][_0x1c6a09('0x25d6')]||_0x1c6a09('0x1939'))+'\x20has\x20been\x20deleted!'}),_0x2ddc0d(_0x4e7dd3[_0x1c6a09('0x1939')]);})[_0x39fca2('0x253d')](function(_0x4ccc5f){var _0x2dc5ae=_0x39fca2;if(_0x4ccc5f[_0x2dc5ae('0x10fd')]&&_0x4ccc5f[_0x2dc5ae('0x10fd')][_0x2dc5ae('0x4c6')]&&_0x4ccc5f[_0x2dc5ae('0x10fd')][_0x2dc5ae('0x4c6')][_0x2dc5ae('0x2587')]){_0x4e7dd3[_0x2dc5ae('0x4c6')]=_0x4ccc5f[_0x2dc5ae('0x10fd')][_0x2dc5ae('0x4c6')]||[{'message':_0x4ccc5f[_0x2dc5ae('0x684')](),'type':'api.intDeskConfiguration.delete'}];for(var _0x5e9892=0x0;_0x5e9892<_0x4ccc5f[_0x2dc5ae('0x10fd')][_0x2dc5ae('0x4c6')][_0x2dc5ae('0x2587')];_0x5e9892++){_0x322a27[_0x2dc5ae('0x187f')]({'title':_0x4ccc5f['data'][_0x2dc5ae('0x4c6')][_0x5e9892][_0x2dc5ae('0x6c8')],'msg':_0x4ccc5f[_0x2dc5ae('0x10fd')][_0x2dc5ae('0x4c6')][_0x5e9892][_0x2dc5ae('0x1402')]});}}else _0x322a27[_0x2dc5ae('0x187f')]({'title':_0x4ccc5f[_0x2dc5ae('0x2fa')]?_0x2dc5ae('0x16c2')+_0x4ccc5f[_0x2dc5ae('0x2fa')]+'\x20-\x20'+_0x4ccc5f[_0x2dc5ae('0x24df')]:'api.intDeskConfiguration.delete','msg':_0x4ccc5f['data']?JSON['stringify'](_0x4ccc5f['data'][_0x2dc5ae('0x1402')]):_0x4ccc5f[_0x2dc5ae('0x1402')]||_0x4ccc5f[_0x2dc5ae('0x684')]()});});},function(){});}function _0x4a5c5f(_0x2d6df7){return _0x2d6df7===null?undefined:new Date(_0x2d6df7);}function _0x2ddc0d(_0x5028ac){var _0x3e6bcf=_0x1f5861;_0x21dfa5[_0x3e6bcf('0x1120')](_0x5028ac);}}const _0x528762=_0x463a2c;_0x5863d8['$inject']=[_0x1a8446('0x51'),'$state','$location',_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x72'),_0x1a8446('0x1a30'),_0x1a8446('0x1a38'),_0x1a8446('0x5b'),_0x1a8446('0x6c8'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x5863d8(_0x5509d6,_0x2eda4e,_0x36e01e,_0x3450dd,_0x40615a,_0x32fb2d,_0x23efe2,_0x517ff2,_0x1135a4,_0x18957b,_0x105d7a,_0x2ee9c0,_0x27f0a2){var _0xc83687=_0x1a8446,_0x37e3a0=this;_0x37e3a0[_0xc83687('0x7fc')]=_0x2ee9c0[_0xc83687('0xacc')](),_0x37e3a0['errors']=[],_0x37e3a0[_0xc83687('0x110a')]='INTEGRATIONS.EDIT_'+_0x51538b()['toUpper'](_0x18957b),_0x37e3a0[_0xc83687('0x1a38')]=angular[_0xc83687('0x20a')](_0x517ff2),_0x37e3a0[_0xc83687('0x1a30')]=_0x23efe2,_0x37e3a0[_0xc83687('0x6c8')]=_0x18957b,_0x37e3a0[_0xc83687('0xada')]=_0x27f0a2,_0x37e3a0['newItem']=![];!_0x37e3a0[_0xc83687('0x1a38')]&&(_0x37e3a0[_0xc83687('0x1a38')]={'type':'string'},_0x37e3a0[_0xc83687('0x1a38')][_0x51538b()[_0xc83687('0x1b56')](_0x18957b)+'Id']=_0x32fb2d['id'],_0x37e3a0[_0xc83687('0x110a')]=_0xc83687('0x1502')+_0x51538b()[_0xc83687('0x1818')](_0x18957b),_0x37e3a0['newItem']=!![]);_0x37e3a0[_0xc83687('0x13fd')]=_0x4d9e7f,_0x37e3a0[_0xc83687('0x24c7')]=_0x104453,_0x37e3a0[_0xc83687('0x1994')]=_0x165a7b,_0x37e3a0[_0xc83687('0x1b0f')]=_0x3beb62,_0x37e3a0[_0xc83687('0x2023')]=_0x3d52ca,_0x105d7a[_0xc83687('0x14e7')][_0xc83687('0x2122')]({'nolimit':!![]})[_0xc83687('0x1dc2')][_0xc83687('0xaa5')](function(_0x372b04){var _0x41cd02=_0xc83687;return _0x37e3a0[_0x41cd02('0x147e')]=_0x372b04[_0x41cd02('0x580')]?_0x372b04[_0x41cd02('0x580')]:[],_0x105d7a['voiceAgentReport'][_0x41cd02('0x3e7')]()[_0x41cd02('0x1dc2')];})[_0xc83687('0xaa5')](function(_0x1921a3){var _0x5ec742=_0xc83687;return _0x37e3a0['voiceAgentReportColumns']=_0x51538b()[_0x5ec742('0x1485')](_0x51538b()[_0x5ec742('0x9f2')](_0x1921a3),[_0x5ec742('0x1dc2'),_0x5ec742('0xd92'),_0x5ec742('0x24a1'),_0x5ec742('0x19f3'),'sourceid']),_0x37e3a0[_0x5ec742('0x27a9')][_0x5ec742('0x1599')](_0x5ec742('0xef3')),_0x105d7a[_0x5ec742('0x1f51')]['describe']()[_0x5ec742('0x1dc2')];})[_0xc83687('0xaa5')](function(_0x30e1b4){var _0xc47ae8=_0xc83687;_0x37e3a0[_0xc47ae8('0xc69')]=_0x51538b()[_0xc47ae8('0x1485')](_0x51538b()[_0xc47ae8('0x9f2')](_0x30e1b4),[_0xc47ae8('0x1dc2'),'$resolved',_0xc47ae8('0x24a1'),'updatedAt','sourceid']),_0x37e3a0[_0xc47ae8('0xc69')][_0xc47ae8('0x1599')](_0xc47ae8('0xef3'));})[_0xc83687('0x253d')](function(_0x2722f0){var _0x3ea891=_0xc83687;_0x40615a[_0x3ea891('0x187f')]({'title':_0x2722f0[_0x3ea891('0x2fa')]?_0x3ea891('0x16c2')+_0x2722f0[_0x3ea891('0x2fa')]+'\x20-\x20'+_0x2722f0[_0x3ea891('0x24df')]:_0x3ea891('0x2652'),'msg':_0x2722f0['data']?JSON[_0x3ea891('0xa48')](_0x2722f0['data']):_0x2722f0[_0x3ea891('0x684')]()});}),_0x105d7a[_0xc83687('0x340')][_0xc83687('0x1450')]({'id':_0x1135a4['id'],'ticketType':_0x32fb2d[_0xc83687('0x1146')]?_0x32fb2d[_0xc83687('0x1146')]:undefined})[_0xc83687('0x1dc2')][_0xc83687('0xaa5')](function(_0x2e92bb){var _0x18c244=_0xc83687;_0x37e3a0['accountConnected']=!![],_0x37e3a0[_0x18c244('0x13a')]=_0x2e92bb[_0x18c244('0x580')]?_0x2e92bb['rows']:[],_0x37e3a0['item'][_0x18c244('0x1dfc')]&&(_0x37e3a0[_0x18c244('0x6fc')]=_0x51538b()[_0x18c244('0xe9e')](_0x37e3a0['fields'],{'id':_0x37e3a0[_0x18c244('0x1a38')]['idField']}));})[_0xc83687('0x253d')](function(_0x25d4d9){var _0x30cf35=_0xc83687;_0x37e3a0[_0x30cf35('0x722')]=![],console[_0x30cf35('0x187f')](_0x25d4d9);});function _0x4d9e7f(){var _0xcd1d50=_0xc83687;_0x37e3a0[_0xcd1d50('0x4c6')]=[],_0x37e3a0['customField']&&(_0x37e3a0['item']['idField']=_0x37e3a0['customField']['id'],_0x37e3a0[_0xcd1d50('0x1a38')][_0xcd1d50('0x1662')]=_0x37e3a0[_0xcd1d50('0x6fc')]['name'],_0x37e3a0[_0xcd1d50('0x1a38')][_0xcd1d50('0x6fc')]=_0x37e3a0['customField'][_0xcd1d50('0x113b')]),_0x105d7a[_0xcd1d50('0x2585')][_0xcd1d50('0x242b')](_0x37e3a0[_0xcd1d50('0x1a38')])[_0xcd1d50('0x1dc2')]['then'](function(_0x1e7575){var _0x3096f7=_0xcd1d50;_0x37e3a0[_0x3096f7('0x1a30')]['unshift'](_0x1e7575),_0x40615a[_0x3096f7('0xe10')]({'title':_0x51538b()[_0x3096f7('0x1b56')](_0x18957b)+_0x3096f7('0xbf5'),'msg':_0x51538b()[_0x3096f7('0x1b56')](_0x18957b)+_0x3096f7('0xdca')}),_0x3d52ca();})[_0xcd1d50('0x253d')](function(_0x5e42a6){var _0x299eb1=_0xcd1d50;console[_0x299eb1('0x187f')](_0x5e42a6),_0x37e3a0[_0x299eb1('0x4c6')]=_0x5e42a6[_0x299eb1('0x10fd')]['errors']||[{'message':_0x5e42a6[_0x299eb1('0x684')](),'type':_0x299eb1('0x23f')}];});}function _0x104453(){var _0x1d8684=_0xc83687;_0x37e3a0['errors']=[],_0x37e3a0['customField']&&(_0x37e3a0['item'][_0x1d8684('0x1dfc')]=_0x37e3a0[_0x1d8684('0x6fc')]['id'],_0x37e3a0['item'][_0x1d8684('0x1662')]=_0x37e3a0[_0x1d8684('0x6fc')]['name'],_0x37e3a0['item'][_0x1d8684('0x6fc')]=_0x37e3a0[_0x1d8684('0x6fc')]['custom']),_0x105d7a[_0x1d8684('0x2585')]['update']({'id':_0x37e3a0['item']['id']},_0x37e3a0['item'])[_0x1d8684('0x1dc2')][_0x1d8684('0xaa5')](function(_0x48ed88){var _0x20610c=_0x1d8684,_0x54748c=_0x51538b()['find'](_0x37e3a0[_0x20610c('0x1a30')],{'id':_0x48ed88['id']});_0x54748c&&_0x51538b()[_0x20610c('0x283c')](_0x54748c,_0x48ed88),_0x40615a[_0x20610c('0xe10')]({'title':_0x51538b()['capitalize'](_0x18957b)+_0x20610c('0x1c44'),'msg':_0x51538b()[_0x20610c('0x1b56')](_0x18957b)+_0x20610c('0x20bf')}),_0x3d52ca();})[_0x1d8684('0x253d')](function(_0x12c972){var _0x28c27e=_0x1d8684;console['error'](_0x12c972),_0x37e3a0[_0x28c27e('0x4c6')]=_0x12c972[_0x28c27e('0x10fd')][_0x28c27e('0x4c6')]||[{'message':_0x12c972[_0x28c27e('0x684')](),'type':_0x28c27e('0x2460')}];});}function _0x165a7b(_0xd9c2f0){var _0x2b2995=_0xc83687;_0x37e3a0['errors']=[];var _0x2953f2=_0x3450dd['confirm']()[_0x2b2995('0x110a')](_0x2b2995('0x12a3'))[_0x2b2995('0x15af')](_0x2b2995('0x318')+_0x18957b+_0x2b2995('0x210d'))[_0x2b2995('0x5b5')](_0x2b2995('0xf00')+_0x51538b()[_0x2b2995('0x1b56')](_0x18957b))['ok'](_0x2b2995('0x1e76'))[_0x2b2995('0x2030')](_0x2b2995('0x9c6'))['targetEvent'](_0xd9c2f0);_0x3450dd['show'](_0x2953f2)[_0x2b2995('0xaa5')](function(){var _0x466921=_0x2b2995;_0x105d7a[_0x466921('0x2585')][_0x466921('0x926')]({'id':_0x37e3a0[_0x466921('0x1a38')]['id']})[_0x466921('0x1dc2')][_0x466921('0xaa5')](function(){var _0x561424=_0x466921;_0x51538b()[_0x561424('0xf6d')](_0x37e3a0[_0x561424('0x1a30')],{'id':_0x37e3a0[_0x561424('0x1a38')]['id']}),_0x40615a[_0x561424('0xe10')]({'title':_0x51538b()['capitalize'](_0x18957b)+_0x561424('0x1e42'),'msg':_0x51538b()[_0x561424('0x1b56')](_0x18957b)+_0x561424('0xcd9')}),_0x3d52ca();})[_0x466921('0x253d')](function(_0x137fed){var _0x23b221=_0x466921;console[_0x23b221('0x187f')](_0x137fed),_0x37e3a0[_0x23b221('0x4c6')]=_0x137fed[_0x23b221('0x10fd')][_0x23b221('0x4c6')]||[{'message':_0x137fed[_0x23b221('0x684')](),'type':_0x23b221('0x37d')}];});},function(){});}function _0x3beb62(){var _0x28625f=_0xc83687;return _0x37e3a0[_0x28625f('0x1a38')]['variableName']!==undefined?_0x37e3a0['item']['variableName']:_0x28625f('0x2444');}function _0x3d52ca(){var _0x46e356=_0xc83687;_0x3450dd[_0x46e356('0x1120')]();}}const _0x29fa3d=_0x5863d8;_0x26c0be[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location','$mdDialog',_0x1a8446('0x39b'),'$translate',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),'toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x13e7'),_0x1a8446('0x1a50')];function _0x26c0be(_0xa8126f,_0x15b44d,_0x221739,_0x95b6c2,_0x56d0e1,_0x46a5e3,_0x85293b,_0x261c78,_0x12e2ce,_0x2a2729,_0xb643a9,_0x1cc85e){var _0x1f2f23=_0x1a8446,_0x156538=this;_0x156538['currentUser']=_0x2a2729[_0x1f2f23('0xacc')](),_0x156538[_0x1f2f23('0x1202')]=_0x46a5e3,_0x156538[_0x1f2f23('0x143f')]=_0x85293b,_0x156538[_0x1f2f23('0x1d53')]=_0x156538['setting'][_0x1f2f23('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x156538[_0x1f2f23('0x18cc')]=_0x15b44d[_0x1f2f23('0x1cc2')]()+_0x1f2f23('0x356')+_0x15b44d['host'](),_0x156538[_0x1f2f23('0x13e7')]=_0xb643a9||_0xa8126f[_0x1f2f23('0x25cf')][_0x1f2f23('0x13e7')]||{},_0x156538[_0x1f2f23('0x1a50')]=_0x1cc85e&&_0x1cc85e[_0x1f2f23('0xd15')]==0x1?_0x1cc85e[_0x1f2f23('0x580')][0x0]:null,_0x156538[_0x1f2f23('0xada')]=_0x2a2729[_0x1f2f23('0xffd')](_0x156538[_0x1f2f23('0x1a50')]?_0x156538['userProfileSection'][_0x1f2f23('0xada')]:null),_0x156538[_0x1f2f23('0x9f0')]={},_0x156538[_0x1f2f23('0xe5c')]=_0xa8126f[_0x1f2f23('0x25cf')][_0x1f2f23('0x25c2')]||0x0,_0x156538[_0x1f2f23('0xc10')]=_0x12e2ce[_0x1f2f23('0x3a1')],_0x156538[_0x1f2f23('0x111b')]=_0x435843,_0x156538[_0x1f2f23('0x325')]=_0x34335a;function _0x435843(){var _0x32124d=_0x1f2f23;_0xa8126f['go'](_0x32124d('0x1347'),{},{'reload':'app.integrations.deskAccounts'});}function _0x34335a(){var _0x2dad41=_0x1f2f23;_0x261c78['intDeskAccount'][_0x2dad41('0x264e')]({'id':_0x156538[_0x2dad41('0x13e7')]['id']},_0x156538[_0x2dad41('0x13e7')])[_0x2dad41('0x1dc2')]['then'](function(){var _0x300b44=_0x2dad41;_0x12e2ce[_0x300b44('0xe10')]({'title':_0x300b44('0x587'),'msg':_0x156538['deskAccount'][_0x300b44('0x25d6')]?_0x156538[_0x300b44('0x13e7')][_0x300b44('0x25d6')]+_0x300b44('0x1734'):''});})['catch'](function(_0x15ae20){var _0x2f4fc0=_0x2dad41;_0x12e2ce['error']({'title':_0x15ae20['status']?_0x2f4fc0('0x16c2')+_0x15ae20[_0x2f4fc0('0x2fa')]+_0x2f4fc0('0x169e')+_0x15ae20[_0x2f4fc0('0x24df')]:_0x2f4fc0('0x1993'),'msg':_0x15ae20[_0x2f4fc0('0x10fd')]?JSON[_0x2f4fc0('0xa48')](_0x15ae20[_0x2f4fc0('0x10fd')]):_0x15ae20[_0x2f4fc0('0x684')]()});});}}const _0x41e91d=_0x26c0be;_0xfc1b78[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x137e'),_0x1a8446('0x1cb2'),'api','Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0xfc1b78(_0x3a5bdf,_0x2abed4,_0x56e367,_0x1465e6,_0x8da34e,_0x5b2073,_0x59c86a,_0x53ca4e,_0xb412b4,_0x2a3349,_0x5605b6,_0x102adb,_0xe078be,_0x1aa799){var _0x38f5df=_0x1a8446,_0x4a93a8=this;_0x4a93a8[_0x38f5df('0x7fc')]=_0x5605b6[_0x38f5df('0xacc')](),_0x4a93a8[_0x38f5df('0x4c6')]=[],_0x4a93a8[_0x38f5df('0x143f')]=_0xe078be,_0x4a93a8[_0x38f5df('0x1202')]=_0x102adb,_0x4a93a8[_0x38f5df('0xada')]=_0x1aa799,_0x4a93a8[_0x38f5df('0x9f0')]={},_0x4a93a8[_0x38f5df('0x1d53')]=_0x4a93a8[_0x38f5df('0x143f')]&&_0x4a93a8[_0x38f5df('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a93a8[_0x38f5df('0x110a')]=_0x38f5df('0x20f'),_0x4a93a8[_0x38f5df('0x1cb2')]=angular[_0x38f5df('0x20a')](_0xb412b4),_0x4a93a8[_0x38f5df('0x137e')]=_0x53ca4e,_0x4a93a8[_0x38f5df('0x6b4')]=![];!_0x4a93a8[_0x38f5df('0x1cb2')]&&(_0x4a93a8['dynamics365Account']={'serverUrl':_0x56e367[_0x38f5df('0x1cc2')]()+_0x38f5df('0x356')+_0x56e367[_0x38f5df('0x160c')]()+(_0x56e367[_0x38f5df('0x191')]()?':'+_0x56e367['port']():'')},_0x4a93a8[_0x38f5df('0x110a')]='INTEGRATIONS.NEW_DYNAMICS365ACCOUNT',_0x4a93a8['newDynamics365Account']=!![]);_0x4a93a8[_0x38f5df('0xda7')]=_0x13dc7d,_0x4a93a8[_0x38f5df('0x1baa')]=_0x5d9c33,_0x4a93a8[_0x38f5df('0xd59')]=_0x1c4e43,_0x4a93a8[_0x38f5df('0xc09')]=_0x2d9145,_0x4a93a8[_0x38f5df('0x2023')]=_0x20a966;function _0x13dc7d(){var _0x298807=_0x38f5df;_0x4a93a8[_0x298807('0x4c6')]=[],_0x2a3349[_0x298807('0x754')][_0x298807('0x242b')](_0x4a93a8[_0x298807('0x1cb2')])[_0x298807('0x1dc2')][_0x298807('0xaa5')](function(_0x294b56){var _0x2a16f3=_0x298807;_0x4a93a8[_0x2a16f3('0x137e')][_0x2a16f3('0x6ee')](_0x294b56['toJSON']()),_0x59c86a['success']({'title':_0x2a16f3('0x22bb'),'msg':_0x4a93a8[_0x2a16f3('0x1cb2')][_0x2a16f3('0x25d6')]?_0x4a93a8[_0x2a16f3('0x1cb2')][_0x2a16f3('0x25d6')]+_0x2a16f3('0xdca'):''}),_0x20a966(_0x294b56);})['catch'](function(_0x2da335){var _0x1b7826=_0x298807;if(_0x2da335[_0x1b7826('0x10fd')]&&_0x2da335['data'][_0x1b7826('0x4c6')]&&_0x2da335['data'][_0x1b7826('0x4c6')][_0x1b7826('0x2587')]){_0x4a93a8[_0x1b7826('0x4c6')]=_0x2da335[_0x1b7826('0x10fd')][_0x1b7826('0x4c6')]||[{'message':_0x2da335['toString'](),'type':'api.intDynamics365Account.save'}];for(var _0x36f19d=0x0;_0x36f19d<_0x2da335[_0x1b7826('0x10fd')][_0x1b7826('0x4c6')][_0x1b7826('0x2587')];_0x36f19d+=0x1){_0x59c86a[_0x1b7826('0x187f')]({'title':_0x2da335[_0x1b7826('0x10fd')][_0x1b7826('0x4c6')][_0x36f19d][_0x1b7826('0x6c8')],'msg':_0x2da335['data'][_0x1b7826('0x4c6')][_0x36f19d][_0x1b7826('0x1402')]});}}else _0x59c86a[_0x1b7826('0x187f')]({'title':_0x2da335[_0x1b7826('0x2fa')]?_0x1b7826('0x16c2')+_0x2da335['status']+_0x1b7826('0x169e')+_0x2da335['statusText']:'api.intDynamics365Account.save','msg':_0x2da335[_0x1b7826('0x10fd')]?JSON[_0x1b7826('0xa48')](_0x2da335[_0x1b7826('0x10fd')][_0x1b7826('0x1402')]):_0x2da335[_0x1b7826('0x684')]()});});}function _0x5d9c33(){var _0x1a5730=_0x38f5df;_0x4a93a8[_0x1a5730('0x4c6')]=[],_0x2a3349[_0x1a5730('0x754')][_0x1a5730('0x264e')]({'id':_0x4a93a8[_0x1a5730('0x1cb2')]['id']},_0x4a93a8[_0x1a5730('0x1cb2')])[_0x1a5730('0x1dc2')]['then'](function(_0x5c774c){var _0x299465=_0x1a5730,_0x209176=_0x51538b()[_0x299465('0xe9e')](_0x4a93a8[_0x299465('0x137e')],{'id':_0x5c774c['id']});_0x209176&&_0x51538b()[_0x299465('0x283c')](_0x209176,_0x51538b()['pick'](_0x5c774c['toJSON'](),_0x51538b()[_0x299465('0x9f2')](_0x209176))),_0x59c86a[_0x299465('0xe10')]({'title':_0x299465('0x1a07'),'msg':_0x4a93a8[_0x299465('0x1cb2')][_0x299465('0x25d6')]?_0x4a93a8[_0x299465('0x1cb2')][_0x299465('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x20a966(_0x5c774c);})['catch'](function(_0x4bee16){var _0x3c24fe=_0x1a5730;if(_0x4bee16['data']&&_0x4bee16[_0x3c24fe('0x10fd')][_0x3c24fe('0x4c6')]&&_0x4bee16['data'][_0x3c24fe('0x4c6')][_0x3c24fe('0x2587')]){_0x4a93a8[_0x3c24fe('0x4c6')]=_0x4bee16[_0x3c24fe('0x10fd')]['errors']||[{'message':_0x4bee16['toString'](),'type':_0x3c24fe('0x2391')}];for(var _0x4e549d=0x0;_0x4e549d<_0x4bee16[_0x3c24fe('0x10fd')][_0x3c24fe('0x4c6')][_0x3c24fe('0x2587')];_0x4e549d++){_0x59c86a[_0x3c24fe('0x187f')]({'title':_0x4bee16['data']['errors'][_0x4e549d][_0x3c24fe('0x6c8')],'msg':_0x4bee16[_0x3c24fe('0x10fd')][_0x3c24fe('0x4c6')][_0x4e549d][_0x3c24fe('0x1402')]});}}else _0x59c86a[_0x3c24fe('0x187f')]({'title':_0x4bee16['status']?_0x3c24fe('0x16c2')+_0x4bee16['status']+_0x3c24fe('0x169e')+_0x4bee16[_0x3c24fe('0x24df')]:_0x3c24fe('0x2391'),'msg':_0x4bee16[_0x3c24fe('0x10fd')]?JSON['stringify'](_0x4bee16['data'][_0x3c24fe('0x1402')]):_0x4bee16[_0x3c24fe('0x684')]()});});}function _0x1c4e43(_0x217f26){var _0x4706b2=_0x38f5df;_0x4a93a8['errors']=[];var _0x567f32=_0x1465e6[_0x4706b2('0x281e')]()['title'](_0x4706b2('0x12a3'))[_0x4706b2('0x15af')](_0x4706b2('0x150e'))[_0x4706b2('0x5b5')](_0x4706b2('0x25'))['ok'](_0x4706b2('0x1e76'))[_0x4706b2('0x2030')](_0x4706b2('0x9c6'))[_0x4706b2('0x116d')](_0x217f26);_0x1465e6[_0x4706b2('0x1e6d')](_0x567f32)[_0x4706b2('0xaa5')](function(){var _0x247659=_0x4706b2;_0x2a3349[_0x247659('0x754')][_0x247659('0x926')]({'id':_0x4a93a8[_0x247659('0x1cb2')]['id']})[_0x247659('0x1dc2')]['then'](function(){var _0x4cf647=_0x247659;_0x51538b()[_0x4cf647('0xf6d')](_0x4a93a8[_0x4cf647('0x137e')],{'id':_0x4a93a8[_0x4cf647('0x1cb2')]['id']}),_0x59c86a[_0x4cf647('0xe10')]({'title':'Dynamics365Account\x20properly\x20deleted!','msg':(_0x4a93a8[_0x4cf647('0x1cb2')][_0x4cf647('0x25d6')]||_0x4cf647('0x1cb2'))+_0x4cf647('0xcd9')}),_0x20a966(_0x4a93a8[_0x4cf647('0x1cb2')]);})[_0x247659('0x253d')](function(_0x390de9){var _0x49ed4f=_0x247659;if(_0x390de9[_0x49ed4f('0x10fd')]&&_0x390de9['data'][_0x49ed4f('0x4c6')]&&_0x390de9[_0x49ed4f('0x10fd')][_0x49ed4f('0x4c6')][_0x49ed4f('0x2587')]){_0x4a93a8['errors']=_0x390de9['data'][_0x49ed4f('0x4c6')]||[{'message':_0x390de9[_0x49ed4f('0x684')](),'type':_0x49ed4f('0x23d3')}];for(var _0x2c9d1c=0x0;_0x2c9d1c<_0x390de9[_0x49ed4f('0x10fd')][_0x49ed4f('0x4c6')]['length'];_0x2c9d1c++){_0x59c86a['error']({'title':_0x390de9[_0x49ed4f('0x10fd')][_0x49ed4f('0x4c6')][_0x2c9d1c][_0x49ed4f('0x6c8')],'msg':_0x390de9[_0x49ed4f('0x10fd')]['errors'][_0x2c9d1c][_0x49ed4f('0x1402')]});}}else _0x59c86a[_0x49ed4f('0x187f')]({'title':_0x390de9[_0x49ed4f('0x2fa')]?_0x49ed4f('0x16c2')+_0x390de9[_0x49ed4f('0x2fa')]+_0x49ed4f('0x169e')+_0x390de9['statusText']:_0x49ed4f('0x23d3'),'msg':_0x390de9[_0x49ed4f('0x10fd')]?JSON['stringify'](_0x390de9[_0x49ed4f('0x10fd')][_0x49ed4f('0x1402')]):_0x390de9[_0x49ed4f('0x1402')]||_0x390de9[_0x49ed4f('0x684')]()});});},function(){});}function _0x2d9145(_0x27266e){return _0x27266e===null?undefined:new Date(_0x27266e);}function _0x20a966(_0x3c4265){var _0x2494f8=_0x38f5df;_0x1465e6[_0x2494f8('0x1120')](_0x3c4265);}}const _0x4eea89=_0xfc1b78,_0x33c570=_0x4fb511['p']+_0x1a8446('0x89f');_0x380be9[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),'dynamics365Accounts',_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x380be9(_0xc4fce0,_0x1fc618,_0x4bc03f,_0x19188b,_0x115e2f,_0x584a37,_0x940cea,_0x54173a,_0x446f2a,_0x3737c9,_0xa780c0,_0x466ac8,_0x4226bc,_0x46e103,_0x4a26a5,_0x1e4326,_0x2f6f1c){var _0x951e8b=_0x1a8446,_0x5251d0=this;_0x5251d0['license']=_0x1e4326,_0x5251d0['setting']=_0x2f6f1c,_0x5251d0[_0x951e8b('0x7fc')]=_0x4a26a5[_0x951e8b('0xacc')](),_0x5251d0['dynamics365Accounts']=_0x446f2a||{'count':0x0,'rows':[]},_0x5251d0[_0x951e8b('0x1e97')]=_0x3737c9,_0x5251d0['userProfileSection']=_0xa780c0&&_0xa780c0[_0x951e8b('0xd15')]==0x1?_0xa780c0[_0x951e8b('0x580')][0x0]:null,_0x5251d0[_0x951e8b('0xada')]=_0x4a26a5[_0x951e8b('0xffd')](_0x5251d0[_0x951e8b('0x1a50')]?_0x5251d0[_0x951e8b('0x1a50')]['crudPermissions']:null),_0x5251d0['table']=_0x951e8b('0x137e'),_0x5251d0[_0x951e8b('0x164')]='',_0x5251d0[_0x951e8b('0x8cc')]=null,_0x5251d0[_0x951e8b('0x1134')]=[],_0x5251d0['query']={'fields':_0x951e8b('0x1bc3'),'limit':0xa,'page':0x1},_0x5251d0['editstate']=_0x23df68,_0x5251d0[_0x951e8b('0xa49')]=_0x543d34,_0x5251d0[_0x951e8b('0x271')]=_0x133ac9,_0x5251d0[_0x951e8b('0xe10')]=_0x1ffb8d,_0x5251d0[_0x951e8b('0x96')]=_0x5b442a,_0x5251d0['createOrEditDynamics365Account']=_0x2dd9c6,_0x5251d0[_0x951e8b('0xd59')]=_0x3a28a8,_0x5251d0['exportSelectedDynamics365Accounts']=_0x100ddc,_0x5251d0[_0x951e8b('0x275c')]=_0xf33183,_0x5251d0['deselectDynamics365Accounts']=_0x8668af,_0x5251d0[_0x951e8b('0x2648')]=_0x4eb23b;function _0x23df68(_0x43112d){_0x4bc03f['go']('app.integrations.dynamics365Accounts.edit',{'id':_0x43112d['id'],'dynamics365Account':_0x43112d,'crudPermissions':_0x5251d0['crudPermissions']});}function _0x543d34(_0x28740a){var _0x51a106=_0x951e8b;return _0x466ac8[_0x51a106('0x754')]['getFields']({'id':_0x28740a['id'],'test':!![]})[_0x51a106('0x1dc2')][_0x51a106('0xaa5')](function(){var _0x3b9478=_0x51a106;_0x46e103[_0x3b9478('0xe10')]({'title':_0x3b9478('0xe24'),'msg':_0x3b9478('0x2633')});})[_0x51a106('0x253d')](function(_0x1d0f24){var _0x3f44a2=_0x51a106;_0x46e103[_0x3f44a2('0x187f')]({'title':'Dynamics365Account\x20properly\x20tested','msg':_0x1d0f24[_0x3f44a2('0x10fd')]?_0x1d0f24[_0x3f44a2('0x10fd')][_0x3f44a2('0x1402')]?_0x1d0f24[_0x3f44a2('0x10fd')][_0x3f44a2('0x1402')]:JSON[_0x3f44a2('0xa48')](_0x1d0f24['data']):_0x1d0f24[_0x3f44a2('0x684')]()});});}function _0x133ac9(_0x570b24,_0x24e928){var _0x5d7efe=_0x951e8b,_0xae36a2=_0x115e2f[_0x5d7efe('0x281e')]()[_0x5d7efe('0x110a')](_0x5d7efe('0x88d')+_0x51538b()[_0x5d7efe('0x196a')](_0x5d7efe('0x1cb2'))+'?')[_0x5d7efe('0x102e')](_0x5d7efe('0x389')+(_0x570b24[_0x5d7efe('0x25d6')]||'dynamics365Account')+_0x5d7efe('0x697')+_0x5d7efe('0x210d'))['ariaLabel'](_0x5d7efe('0xce5'))['targetEvent'](_0x24e928)['ok']('OK')[_0x5d7efe('0x2030')]('CANCEL');_0x115e2f[_0x5d7efe('0x1e6d')](_0xae36a2)[_0x5d7efe('0xaa5')](function(){_0x3a28a8(_0x570b24);},function(){var _0x1f5610=_0x5d7efe;console[_0x1f5610('0x18d5')](_0x1f5610('0x2410'));});}var _0x164f17=!![],_0x56454e=0x1;_0xc4fce0[_0x951e8b('0x1ccf')](_0x951e8b('0x1788'),function(_0x5c0f26,_0x5887b6){var _0x57cb14=_0x951e8b;_0x164f17?_0x940cea(function(){_0x164f17=![];}):(!_0x5887b6&&(_0x56454e=_0x5251d0[_0x57cb14('0x582')][_0x57cb14('0x41')]),_0x5c0f26!==_0x5887b6&&(_0x5251d0['query'][_0x57cb14('0x41')]=0x1),!_0x5c0f26&&(_0x5251d0['query']['page']=_0x56454e),_0x5251d0[_0x57cb14('0x96')]());});function _0x1ffb8d(_0xd03bc3){var _0x248d5c=_0x951e8b;_0x5251d0[_0x248d5c('0x137e')]=_0xd03bc3||{'count':0x0,'rows':[]};}function _0x5b442a(){var _0x3a65e3=_0x951e8b;_0x5251d0[_0x3a65e3('0x582')]['offset']=(_0x5251d0[_0x3a65e3('0x582')]['page']-0x1)*_0x5251d0[_0x3a65e3('0x582')][_0x3a65e3('0xf4d')],_0x4a26a5[_0x3a65e3('0x26e8')](_0x3a65e3('0x178b'))?_0x5251d0['promise']=_0x466ac8[_0x3a65e3('0x754')][_0x3a65e3('0x2122')](_0x5251d0[_0x3a65e3('0x582')],_0x1ffb8d)[_0x3a65e3('0x1dc2')]:(_0x5251d0[_0x3a65e3('0x582')]['id']=_0x5251d0[_0x3a65e3('0x1e97')]['id'],_0x5251d0[_0x3a65e3('0x582')][_0x3a65e3('0x224d')]=_0x3a65e3('0x264f'),_0x5251d0['promise']=_0x466ac8[_0x3a65e3('0x1e97')]['getResources'](_0x5251d0[_0x3a65e3('0x582')],_0x1ffb8d)[_0x3a65e3('0x1dc2')]);}function _0x2dd9c6(_0x4447d4,_0x436de5){var _0x573757=_0x951e8b;_0x115e2f[_0x573757('0x1e6d')]({'controller':_0x573757('0x1307'),'controllerAs':'vm','templateUrl':_0x33c570,'parent':angular[_0x573757('0x1aa8')](_0x584a37['body']),'targetEvent':_0x4447d4,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x436de5,'dynamics365Accounts':_0x5251d0[_0x573757('0x137e')][_0x573757('0x580')],'license':_0x5251d0[_0x573757('0x1202')],'setting':_0x5251d0['setting'],'crudPermissions':_0x5251d0[_0x573757('0xada')]}});}function _0x3a28a8(_0x7c545d){var _0x4398fa=_0x951e8b;_0x466ac8[_0x4398fa('0x754')][_0x4398fa('0x926')]({'id':_0x7c545d['id']})[_0x4398fa('0x1dc2')][_0x4398fa('0xaa5')](function(){var _0x134e06=_0x4398fa;_0x51538b()[_0x134e06('0xf6d')](_0x5251d0[_0x134e06('0x137e')][_0x134e06('0x580')],{'id':_0x7c545d['id']}),_0x5251d0[_0x134e06('0x137e')][_0x134e06('0xd15')]-=0x1,!_0x5251d0[_0x134e06('0x137e')][_0x134e06('0x580')][_0x134e06('0x2587')]&&_0x5251d0[_0x134e06('0x96')](),_0x46e103[_0x134e06('0xe10')]({'title':_0x51538b()[_0x134e06('0x196a')]('Dynamics365Account')+_0x134e06('0x8bb'),'msg':_0x7c545d[_0x134e06('0x25d6')]?_0x7c545d[_0x134e06('0x25d6')]+_0x134e06('0xcd9'):''});})[_0x4398fa('0x253d')](function(_0x359d5a){var _0x195ddd=_0x4398fa;if(_0x359d5a[_0x195ddd('0x10fd')]&&_0x359d5a[_0x195ddd('0x10fd')][_0x195ddd('0x4c6')]&&_0x359d5a[_0x195ddd('0x10fd')][_0x195ddd('0x4c6')][_0x195ddd('0x2587')]){_0x5251d0[_0x195ddd('0x4c6')]=_0x359d5a[_0x195ddd('0x10fd')][_0x195ddd('0x4c6')]||[{'message':_0x359d5a[_0x195ddd('0x684')](),'type':_0x195ddd('0x236b')}];for(var _0x40a266=0x0;_0x40a266<_0x359d5a[_0x195ddd('0x10fd')][_0x195ddd('0x4c6')][_0x195ddd('0x2587')];_0x40a266++){_0x46e103['error']({'title':_0x359d5a[_0x195ddd('0x10fd')][_0x195ddd('0x4c6')][_0x40a266][_0x195ddd('0x6c8')],'msg':_0x359d5a[_0x195ddd('0x10fd')]['errors'][_0x40a266][_0x195ddd('0x1402')]});}}else _0x46e103['error']({'title':_0x359d5a[_0x195ddd('0x2fa')]?'API:'+_0x359d5a[_0x195ddd('0x2fa')]+'\x20-\x20'+_0x359d5a[_0x195ddd('0x24df')]:'SYSTEM:DELETEintDynamics365Account','msg':_0x359d5a[_0x195ddd('0x10fd')]?JSON[_0x195ddd('0xa48')](_0x359d5a[_0x195ddd('0x10fd')][_0x195ddd('0x1402')]):_0x359d5a[_0x195ddd('0x1402')]||_0x359d5a[_0x195ddd('0x684')]()});});}function _0x100ddc(){var _0x410e71=_0x951e8b,_0x2f4f87=angular[_0x410e71('0x20a')](_0x5251d0[_0x410e71('0x1134')]);return _0x5251d0[_0x410e71('0x1134')]=[],_0x2f4f87;}function _0xf33183(_0x317db2){var _0x5f5b65=_0x951e8b,_0x963e79=_0x115e2f[_0x5f5b65('0x281e')]()[_0x5f5b65('0x110a')](_0x5f5b65('0x1f9'))[_0x5f5b65('0x102e')](_0x5f5b65('0x389')+_0x5251d0['selectedDynamics365Accounts'][_0x5f5b65('0x2587')]+'\x20selected'+_0x5f5b65('0x210d'))[_0x5f5b65('0x5b5')]('delete\x20Dynamics365Accounts')[_0x5f5b65('0x116d')](_0x317db2)['ok']('OK')['cancel'](_0x5f5b65('0x2410'));_0x115e2f[_0x5f5b65('0x1e6d')](_0x963e79)[_0x5f5b65('0xaa5')](function(){var _0x365070=_0x5f5b65;_0x5251d0['selectedDynamics365Accounts'][_0x365070('0x15b5')](function(_0x48b4fc){_0x3a28a8(_0x48b4fc);}),_0x5251d0[_0x365070('0x1134')]=[];});}function _0x8668af(){var _0x1a6ffa=_0x951e8b;_0x5251d0[_0x1a6ffa('0x1134')]=[];}function _0x4eb23b(){var _0x55053f=_0x951e8b;_0x5251d0['selectedDynamics365Accounts']=_0x5251d0[_0x55053f('0x137e')][_0x55053f('0x580')];}}const _0x791818=_0x380be9,_0x5a4d95=_0x4fb511['p']+_0x1a8446('0xbc6'),_0x3ab887=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x2e552b[_0x1a8446('0x1e33')]=['$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x2e552b(_0x588a0c,_0x251ae9,_0x4ed10d,_0x3142ca,_0x21472e){var _0x654e56=_0x1a8446,_0x11f018=this;_0x11f018['currentUser']=_0x21472e[_0x654e56('0xacc')](),_0x11f018[_0x654e56('0x1cb2')]={},_0x11f018[_0x654e56('0x232d')]={},_0x11f018[_0x654e56('0x555')]=[],_0x11f018['selectedDynamics365Configuration']=-0x1,_0x11f018['crudPermissions'],_0x11f018[_0x654e56('0x2e')]=_0x33f980,_0x11f018['getDynamics365Configuration']=_0x39d708,_0x11f018[_0x654e56('0x22e3')]=_0x167288,_0x11f018[_0x654e56('0x675')]=_0x3a0fce;function _0x33f980(_0x312cec,_0x4e285f){var _0x5a2778=_0x654e56;_0x11f018[_0x5a2778('0x1cb2')]=_0x312cec,_0x11f018[_0x5a2778('0xada')]=typeof _0x4e285f!==_0x5a2778('0x1574')?_0x4e285f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4ed10d[_0x5a2778('0x754')][_0x5a2778('0x281f')]({'id':_0x11f018[_0x5a2778('0x1cb2')]['id'],'sort':'-updatedAt'})[_0x5a2778('0x1dc2')]['then'](function(_0x5dde5d){var _0x55c404=_0x5a2778;return _0x11f018['configurations']=_0x5dde5d[_0x55c404('0x580')]?_0x5dde5d['rows']:[],_0x11f018[_0x55c404('0x555')][_0x55c404('0x2587')]&&_0x11f018[_0x55c404('0x18d8')](0x0),_0x4ed10d['variable'][_0x55c404('0x2122')]({'nolimit':!![],'sort':_0x55c404('0x25d6')})['$promise'];})['then'](function(_0x578d0f){var _0x320977=_0x5a2778;_0x11f018[_0x320977('0x147e')]=_0x578d0f[_0x320977('0x580')]?_0x578d0f[_0x320977('0x580')]:[],_0x11f018[_0x320977('0x2032')]=_0x51538b()[_0x320977('0x184a')](_0x11f018['variables'],'id');})['catch'](function(_0x50edc3){var _0x59e827=_0x5a2778;_0x3142ca[_0x59e827('0x187f')]({'title':_0x50edc3[_0x59e827('0x2fa')]?_0x59e827('0x16c2')+_0x50edc3[_0x59e827('0x2fa')]+_0x59e827('0x169e')+_0x50edc3[_0x59e827('0x24df')]:_0x59e827('0x24c9'),'msg':_0x50edc3[_0x59e827('0x10fd')]?JSON[_0x59e827('0xa48')](_0x50edc3[_0x59e827('0x10fd')]):_0x50edc3[_0x59e827('0x684')]()});});}function _0x39d708(_0x3b7626){var _0x38015c=_0x654e56;_0x11f018[_0x38015c('0x232d')]=_0x11f018['configurations'][_0x3b7626],_0x11f018[_0x38015c('0x1de4')]=_0x3b7626,_0x4ed10d[_0x38015c('0x196')][_0x38015c('0xeba')]({'id':_0x11f018[_0x38015c('0x232d')]['id']})[_0x38015c('0x1dc2')][_0x38015c('0xaa5')](function(_0x112d93){var _0x8b963a=_0x38015c;return _0x11f018[_0x8b963a('0xc3f')]=_0x112d93['rows']?_0x112d93[_0x8b963a('0x580')]:[],_0x4ed10d[_0x8b963a('0x196')][_0x8b963a('0x2103')]({'id':_0x11f018[_0x8b963a('0x232d')]['id']})['$promise'];})[_0x38015c('0xaa5')](function(_0x42d114){var _0x51ba8b=_0x38015c;return _0x11f018[_0x51ba8b('0x27b9')]=_0x42d114[_0x51ba8b('0x580')]?_0x42d114[_0x51ba8b('0x580')]:[],_0x4ed10d[_0x51ba8b('0x196')][_0x51ba8b('0x1450')]({'id':_0x11f018['dynamics365Configuration']['id']})[_0x51ba8b('0x1dc2')];})[_0x38015c('0xaa5')](function(_0x58ef1c){var _0x2a8ac0=_0x38015c;_0x11f018[_0x2a8ac0('0x13a')]=_0x58ef1c['rows']?_0x58ef1c[_0x2a8ac0('0x580')]:[];})[_0x38015c('0x253d')](function(_0x47d162){var _0xee7d56=_0x38015c;_0x3142ca[_0xee7d56('0x187f')]({'title':_0x47d162[_0xee7d56('0x2fa')]?_0xee7d56('0x16c2')+_0x47d162[_0xee7d56('0x2fa')]+_0xee7d56('0x169e')+_0x47d162['statusText']:_0xee7d56('0xd6d'),'msg':_0x47d162[_0xee7d56('0x10fd')]?JSON[_0xee7d56('0xa48')](_0x47d162[_0xee7d56('0x10fd')]):_0x47d162[_0xee7d56('0x684')]()});});}function _0x167288(_0x50dc36,_0x1d246d){var _0x2ab720=_0x654e56;_0x588a0c[_0x2ab720('0x1e6d')]({'controller':_0x2ab720('0x1fd8'),'controllerAs':'vm','templateUrl':_0x5a4d95,'parent':angular[_0x2ab720('0x1aa8')](_0x251ae9[_0x2ab720('0x54c')]),'targetEvent':_0x50dc36,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0x1d246d,'configurations':_0x11f018[_0x2ab720('0x555')],'license':null,'setting':null,'crudPermissions':_0x11f018[_0x2ab720('0xada')]}})['finally'](function(){_0x11f018['getDynamics365Configuration'](0x0);});}function _0x3a0fce(_0x5d4252,_0x4fd175){var _0x199ae5=_0x654e56,_0x22ae10=_0x588a0c['confirm']()[_0x199ae5('0x110a')](_0x199ae5('0x24cd'))[_0x199ae5('0x102e')](_0x199ae5('0x389')+(_0x4fd175[_0x199ae5('0x25d6')]||'dynamics365Configuration')+''+_0x199ae5('0x210d'))[_0x199ae5('0x5b5')](_0x199ae5('0x186e'))[_0x199ae5('0x116d')](_0x5d4252)['ok']('OK')['cancel'](_0x199ae5('0x2410'));_0x588a0c['show'](_0x22ae10)[_0x199ae5('0xaa5')](function(){var _0x2dde2b=_0x199ae5;_0x4ed10d['intDynamics365Configuration'][_0x2dde2b('0x926')]({'id':_0x4fd175['id']})[_0x2dde2b('0x1dc2')][_0x2dde2b('0xaa5')](function(){var _0x29a597=_0x2dde2b;_0x51538b()[_0x29a597('0xf6d')](_0x11f018[_0x29a597('0x555')],{'id':_0x4fd175['id']}),_0x3142ca[_0x29a597('0xe10')]({'title':_0x29a597('0xea6'),'msg':_0x4fd175['name']?_0x4fd175[_0x29a597('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x2dde2b('0x253d')](function(_0x2b9eed){var _0x3cf3c6=_0x2dde2b;_0x3142ca[_0x3cf3c6('0x187f')]({'title':_0x2b9eed[_0x3cf3c6('0x2fa')]?_0x3cf3c6('0x16c2')+_0x2b9eed['status']+_0x3cf3c6('0x169e')+_0x2b9eed['statusText']:_0x3cf3c6('0x2549'),'msg':_0x2b9eed[_0x3cf3c6('0x10fd')]?JSON[_0x3cf3c6('0xa48')](_0x2b9eed['data']):_0x2b9eed['toString']()});})[_0x2dde2b('0x1889')](function(){var _0x5cbf92=_0x2dde2b;_0x11f018[_0x5cbf92('0x18d8')](0x0);});},function(){var _0x217096=_0x199ae5;console['log'](_0x217096('0x2410'));});}_0x11f018['selectedSubjects']=[],_0x11f018[_0x654e56('0x21c5')]=_0x370141,_0x11f018[_0x654e56('0x1e1e')]=_0x2bed56,_0x11f018['deleteSelectedSubjects']=_0x3f1e7a;function _0x370141(_0x4d2d10,_0x45b9aa){var _0x89e4c9=_0x654e56;_0x588a0c['show']({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x3ab887,'parent':angular[_0x89e4c9('0x1aa8')](_0x251ae9[_0x89e4c9('0x54c')]),'targetEvent':_0x4d2d10,'clickOutsideToClose':!![],'locals':{'type':_0x89e4c9('0x2101'),'item':_0x45b9aa,'items':_0x11f018[_0x89e4c9('0xc3f')],'configuration':_0x11f018[_0x89e4c9('0x232d')],'account':_0x11f018[_0x89e4c9('0x1cb2')],'license':null,'setting':null,'crudPermissions':_0x11f018[_0x89e4c9('0xada')]}});}function _0x4e8aee(_0x4ebf74){var _0x5b1754=_0x654e56;_0x4ed10d[_0x5b1754('0x1d64')][_0x5b1754('0x926')]({'id':_0x4ebf74['id']})['$promise'][_0x5b1754('0xaa5')](function(){var _0x17ebca=_0x5b1754;_0x51538b()['remove'](_0x11f018['subjects'],{'id':_0x4ebf74['id']}),_0x3142ca[_0x17ebca('0xe10')]({'title':'Subject\x20deleted!','msg':_0x17ebca('0x1732')});})[_0x5b1754('0x253d')](function(_0x4fb36a){var _0x5663fc=_0x5b1754;_0x3142ca[_0x5663fc('0x187f')]({'title':_0x4fb36a[_0x5663fc('0x2fa')]?_0x5663fc('0x16c2')+_0x4fb36a[_0x5663fc('0x2fa')]+_0x5663fc('0x169e')+_0x4fb36a[_0x5663fc('0x24df')]:_0x5663fc('0xdd7'),'msg':_0x4fb36a[_0x5663fc('0x10fd')]?JSON[_0x5663fc('0xa48')](_0x4fb36a['data']):_0x4fb36a[_0x5663fc('0x684')]()});});}function _0x2bed56(_0x57a312,_0x379eed){var _0x242601=_0x654e56,_0x5b39ef=_0x588a0c[_0x242601('0x281e')]()[_0x242601('0x110a')](_0x242601('0x16b5'))[_0x242601('0x102e')](_0x242601('0xd7')+'\x20will\x20be\x20deleted.')[_0x242601('0x5b5')]('delete\x20subject')[_0x242601('0x116d')](_0x57a312)['ok']('OK')[_0x242601('0x2030')](_0x242601('0x2410'));_0x588a0c[_0x242601('0x1e6d')](_0x5b39ef)[_0x242601('0xaa5')](function(){_0x4e8aee(_0x379eed);},function(){var _0x5f1a64=_0x242601;console['log'](_0x5f1a64('0x2410'));});}function _0x3f1e7a(_0x5ad591){var _0x8eebff=_0x654e56,_0x40fd24=_0x588a0c[_0x8eebff('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x8eebff('0x102e')](_0x8eebff('0x389')+_0x11f018['selectedSubjects']['length']+_0x8eebff('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x8eebff('0xfcd'))[_0x8eebff('0x116d')](_0x5ad591)['ok']('OK')[_0x8eebff('0x2030')](_0x8eebff('0x2410'));_0x588a0c[_0x8eebff('0x1e6d')](_0x40fd24)[_0x8eebff('0xaa5')](function(){var _0x1b2028=_0x8eebff;_0x11f018[_0x1b2028('0xf7d')][_0x1b2028('0x15b5')](function(_0x3d0912){_0x4e8aee(_0x3d0912);}),_0x11f018[_0x1b2028('0xf7d')]=[];});}_0x11f018[_0x654e56('0x1b51')]=[],_0x11f018[_0x654e56('0x19db')]=_0x574acc,_0x11f018[_0x654e56('0x12af')]=_0x83e365,_0x11f018[_0x654e56('0x416')]=_0x2b9d82;function _0x574acc(_0x48c389,_0x2b80b5){var _0x4df9bc=_0x654e56;_0x588a0c[_0x4df9bc('0x1e6d')]({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x3ab887,'parent':angular['element'](_0x251ae9[_0x4df9bc('0x54c')]),'targetEvent':_0x48c389,'clickOutsideToClose':!![],'locals':{'type':_0x4df9bc('0x23d0'),'item':_0x2b80b5,'items':_0x11f018['descriptions'],'configuration':_0x11f018[_0x4df9bc('0x232d')],'account':_0x11f018[_0x4df9bc('0x1cb2')],'license':null,'setting':null,'crudPermissions':_0x11f018['crudPermissions']}});}function _0x2dcf6d(_0x2727cf){var _0x411154=_0x654e56;_0x4ed10d[_0x411154('0x1d64')][_0x411154('0x926')]({'id':_0x2727cf['id']})[_0x411154('0x1dc2')][_0x411154('0xaa5')](function(){var _0x483bcf=_0x411154;_0x51538b()[_0x483bcf('0xf6d')](_0x11f018[_0x483bcf('0x27b9')],{'id':_0x2727cf['id']}),_0x3142ca[_0x483bcf('0xe10')]({'title':'Description\x20deleted!','msg':_0x483bcf('0x266b')});})[_0x411154('0x253d')](function(_0x4731b7){var _0x29b1cd=_0x411154;_0x3142ca[_0x29b1cd('0x187f')]({'title':_0x4731b7['status']?'API:'+_0x4731b7[_0x29b1cd('0x2fa')]+'\x20-\x20'+_0x4731b7['statusText']:_0x29b1cd('0xdd7'),'msg':_0x4731b7[_0x29b1cd('0x10fd')]?JSON[_0x29b1cd('0xa48')](_0x4731b7[_0x29b1cd('0x10fd')]):_0x4731b7[_0x29b1cd('0x684')]()});});}function _0x83e365(_0x3dd065,_0x4ee735){var _0x20667f=_0x654e56,_0x4d3d69=_0x588a0c['confirm']()[_0x20667f('0x110a')](_0x20667f('0x19b6'))['htmlContent']('Description'+_0x20667f('0x210d'))['ariaLabel'](_0x20667f('0x8b2'))[_0x20667f('0x116d')](_0x3dd065)['ok']('OK')[_0x20667f('0x2030')]('CANCEL');_0x588a0c[_0x20667f('0x1e6d')](_0x4d3d69)['then'](function(){_0x2dcf6d(_0x4ee735);},function(){var _0x114a20=_0x20667f;console[_0x114a20('0x18d5')](_0x114a20('0x2410'));});}function _0x2b9d82(_0x2481f6){var _0x3c2c0a=_0x654e56,_0x2222ce=_0x588a0c['confirm']()[_0x3c2c0a('0x110a')](_0x3c2c0a('0x12ce'))[_0x3c2c0a('0x102e')](_0x3c2c0a('0x389')+_0x11f018[_0x3c2c0a('0x1b51')]['length']+_0x3c2c0a('0x1443')+_0x3c2c0a('0x210d'))[_0x3c2c0a('0x5b5')](_0x3c2c0a('0xcfb'))['targetEvent'](_0x2481f6)['ok']('OK')[_0x3c2c0a('0x2030')](_0x3c2c0a('0x2410'));_0x588a0c[_0x3c2c0a('0x1e6d')](_0x2222ce)[_0x3c2c0a('0xaa5')](function(){var _0x18347b=_0x3c2c0a;_0x11f018[_0x18347b('0x1b51')]['forEach'](function(_0x1fde0a){_0x2dcf6d(_0x1fde0a);}),_0x11f018['selectedDescriptions']=[];});}_0x11f018['selectedFields']=[],_0x11f018[_0x654e56('0x1572')]=_0x3b95b3,_0x11f018[_0x654e56('0x353')]=_0x279465,_0x11f018[_0x654e56('0x261a')]=_0x31af3a;function _0x3b95b3(_0xd83d6d,_0x1370ae){var _0x336541=_0x654e56;_0x588a0c[_0x336541('0x1e6d')]({'controller':_0x336541('0x1695'),'controllerAs':'vm','templateUrl':_0x3ab887,'parent':angular[_0x336541('0x1aa8')](_0x251ae9['body']),'targetEvent':_0xd83d6d,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x1370ae,'items':_0x11f018[_0x336541('0x13a')],'configuration':_0x11f018[_0x336541('0x232d')],'account':_0x11f018[_0x336541('0x1cb2')],'license':null,'setting':null,'crudPermissions':_0x11f018['crudPermissions']}});}function _0x48cab6(_0x38de0e){var _0x1d4e5e=_0x654e56;_0x4ed10d[_0x1d4e5e('0x1d64')][_0x1d4e5e('0x926')]({'id':_0x38de0e['id']})[_0x1d4e5e('0x1dc2')][_0x1d4e5e('0xaa5')](function(){var _0x567ebb=_0x1d4e5e;_0x51538b()['remove'](_0x11f018['fields'],{'id':_0x38de0e['id']}),_0x3142ca['success']({'title':'Field\x20deleted!','msg':_0x567ebb('0xb78')});})[_0x1d4e5e('0x253d')](function(_0x47da9a){var _0x621835=_0x1d4e5e;_0x3142ca[_0x621835('0x187f')]({'title':_0x47da9a[_0x621835('0x2fa')]?_0x621835('0x16c2')+_0x47da9a['status']+'\x20-\x20'+_0x47da9a['statusText']:_0x621835('0xdd7'),'msg':_0x47da9a['data']?JSON[_0x621835('0xa48')](_0x47da9a[_0x621835('0x10fd')]):_0x47da9a[_0x621835('0x684')]()});});}function _0x279465(_0x153d7e,_0x44cf11){var _0x5a0f85=_0x654e56,_0xbcf908=_0x588a0c[_0x5a0f85('0x281e')]()[_0x5a0f85('0x110a')](_0x5a0f85('0x27fc'))[_0x5a0f85('0x102e')](_0x5a0f85('0x455')+_0x5a0f85('0x210d'))[_0x5a0f85('0x5b5')]('delete\x20field')[_0x5a0f85('0x116d')](_0x153d7e)['ok']('OK')[_0x5a0f85('0x2030')](_0x5a0f85('0x2410'));_0x588a0c[_0x5a0f85('0x1e6d')](_0xbcf908)[_0x5a0f85('0xaa5')](function(){_0x48cab6(_0x44cf11);},function(){var _0x2a5805=_0x5a0f85;console['log'](_0x2a5805('0x2410'));});}function _0x31af3a(_0x3eea2e){var _0x1efb0c=_0x654e56,_0x39195c=_0x588a0c[_0x1efb0c('0x281e')]()[_0x1efb0c('0x110a')](_0x1efb0c('0xf28'))[_0x1efb0c('0x102e')](''+_0x11f018['selectedFields'][_0x1efb0c('0x2587')]+_0x1efb0c('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1efb0c('0xefc'))['targetEvent'](_0x3eea2e)['ok']('OK')[_0x1efb0c('0x2030')]('CANCEL');_0x588a0c[_0x1efb0c('0x1e6d')](_0x39195c)[_0x1efb0c('0xaa5')](function(){var _0x3114ef=_0x1efb0c;_0x11f018['selectedFields'][_0x3114ef('0x15b5')](function(_0x1364f7){_0x48cab6(_0x1364f7);}),_0x11f018['selectedFields']=[];});}}const _0x253177=_0x2e552b;_0xbed5bc['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x555'),'dynamics365Configuration',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0xbed5bc(_0x1ac5ef,_0x4bf6c4,_0x8a46f9,_0xf778c1,_0x150e9e,_0x46a921,_0x40e168,_0x49e9aa,_0xe1d8c8,_0x5b80f9,_0x4bc42d,_0x562d1a,_0x523957,_0x2b2fa2){var _0x5deaef=_0x1a8446,_0x217b1e=this;_0x217b1e['currentUser']=_0x4bc42d[_0x5deaef('0xacc')](),_0x217b1e[_0x5deaef('0x4c6')]=[],_0x217b1e['setting']=_0x523957,_0x217b1e['license']=_0x562d1a,_0x217b1e[_0x5deaef('0xada')]=_0x2b2fa2,_0x217b1e[_0x5deaef('0x9f0')]={},_0x217b1e[_0x5deaef('0x1d53')]=_0x217b1e['setting']&&_0x217b1e[_0x5deaef('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x217b1e[_0x5deaef('0x110a')]=_0x5deaef('0x26bf'),_0x217b1e[_0x5deaef('0x232d')]=angular['copy'](_0xe1d8c8),_0x217b1e['configurations']=_0x49e9aa,_0x217b1e['newDynamics365Configuration']=![];!_0x217b1e['dynamics365Configuration']&&(_0x217b1e[_0x5deaef('0x232d')]={'channel':_0x5deaef('0x1b9'),'type':_0x5deaef('0x4b8'),'ticketType':_0x5deaef('0xb9c')},_0x217b1e['title']='INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION',_0x217b1e[_0x5deaef('0x769')]=!![]);_0x217b1e['addNewDynamics365Configuration']=_0x255c1c,_0x217b1e[_0x5deaef('0x1cd7')]=_0x33a1b9,_0x217b1e['deleteDynamics365Configuration']=_0x523b55,_0x217b1e['getDateFromString']=_0x1f3ee8,_0x217b1e[_0x5deaef('0x2023')]=_0x5067f5;function _0x255c1c(){var _0xc60845=_0x5deaef;_0x217b1e[_0xc60845('0x4c6')]=[],_0x5b80f9[_0xc60845('0x754')]['addConfiguration']({'id':_0x4bf6c4[_0xc60845('0x25cf')]['id']},_0x217b1e[_0xc60845('0x232d')])[_0xc60845('0x1dc2')][_0xc60845('0xaa5')](function(_0x15ca88){var _0x465fd7=_0xc60845;_0x217b1e['configurations'][_0x465fd7('0x6ee')](_0x15ca88[_0x465fd7('0x256a')]()),_0x40e168[_0x465fd7('0xe10')]({'title':_0x465fd7('0x681'),'msg':_0x217b1e[_0x465fd7('0x232d')]['name']?_0x217b1e[_0x465fd7('0x232d')][_0x465fd7('0x25d6')]+_0x465fd7('0xdca'):''}),_0x5067f5(_0x15ca88);})[_0xc60845('0x253d')](function(_0x480058){var _0x4b00f6=_0xc60845;if(_0x480058[_0x4b00f6('0x10fd')]&&_0x480058[_0x4b00f6('0x10fd')][_0x4b00f6('0x4c6')]&&_0x480058[_0x4b00f6('0x10fd')][_0x4b00f6('0x4c6')][_0x4b00f6('0x2587')]){_0x217b1e['errors']=_0x480058[_0x4b00f6('0x10fd')][_0x4b00f6('0x4c6')]||[{'message':_0x480058[_0x4b00f6('0x684')](),'type':'api.intDynamics365Configuration.save'}];for(var _0xce8044=0x0;_0xce8044<_0x480058[_0x4b00f6('0x10fd')]['errors']['length'];_0xce8044+=0x1){_0x40e168['error']({'title':_0x480058['data'][_0x4b00f6('0x4c6')][_0xce8044]['type'],'msg':_0x480058[_0x4b00f6('0x10fd')]['errors'][_0xce8044][_0x4b00f6('0x1402')]});}}else _0x40e168['error']({'title':_0x480058[_0x4b00f6('0x2fa')]?_0x4b00f6('0x16c2')+_0x480058[_0x4b00f6('0x2fa')]+_0x4b00f6('0x169e')+_0x480058[_0x4b00f6('0x24df')]:_0x4b00f6('0x1fc8'),'msg':_0x480058[_0x4b00f6('0x10fd')]?JSON['stringify'](_0x480058['data']['message']):_0x480058[_0x4b00f6('0x684')]()});});}function _0x33a1b9(){var _0x415d25=_0x5deaef;_0x217b1e[_0x415d25('0x4c6')]=[],_0x5b80f9['intDynamics365Configuration'][_0x415d25('0x264e')]({'id':_0x217b1e[_0x415d25('0x232d')]['id']},_0x217b1e['dynamics365Configuration'])[_0x415d25('0x1dc2')]['then'](function(_0x130b8b){var _0x4d3d38=_0x415d25,_0x475fc7=_0x51538b()[_0x4d3d38('0xe9e')](_0x217b1e[_0x4d3d38('0x555')],{'id':_0x130b8b['id']});_0x475fc7&&_0x51538b()[_0x4d3d38('0x283c')](_0x475fc7,_0x51538b()['pick'](_0x130b8b['toJSON'](),_0x51538b()[_0x4d3d38('0x9f2')](_0x475fc7))),_0x40e168[_0x4d3d38('0xe10')]({'title':_0x4d3d38('0x12ed'),'msg':_0x217b1e[_0x4d3d38('0x232d')][_0x4d3d38('0x25d6')]?_0x217b1e['dynamics365Configuration'][_0x4d3d38('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x5067f5(_0x130b8b);})[_0x415d25('0x253d')](function(_0x17d8fc){var _0x122fdf=_0x415d25;if(_0x17d8fc[_0x122fdf('0x10fd')]&&_0x17d8fc['data'][_0x122fdf('0x4c6')]&&_0x17d8fc[_0x122fdf('0x10fd')]['errors'][_0x122fdf('0x2587')]){_0x217b1e['errors']=_0x17d8fc['data'][_0x122fdf('0x4c6')]||[{'message':_0x17d8fc['toString'](),'type':_0x122fdf('0xa7a')}];for(var _0xf370f8=0x0;_0xf370f8<_0x17d8fc[_0x122fdf('0x10fd')]['errors']['length'];_0xf370f8++){_0x40e168[_0x122fdf('0x187f')]({'title':_0x17d8fc[_0x122fdf('0x10fd')]['errors'][_0xf370f8][_0x122fdf('0x6c8')],'msg':_0x17d8fc[_0x122fdf('0x10fd')][_0x122fdf('0x4c6')][_0xf370f8][_0x122fdf('0x1402')]});}}else _0x40e168[_0x122fdf('0x187f')]({'title':_0x17d8fc[_0x122fdf('0x2fa')]?_0x122fdf('0x16c2')+_0x17d8fc[_0x122fdf('0x2fa')]+_0x122fdf('0x169e')+_0x17d8fc[_0x122fdf('0x24df')]:_0x122fdf('0xa7a'),'msg':_0x17d8fc[_0x122fdf('0x10fd')]?JSON[_0x122fdf('0xa48')](_0x17d8fc[_0x122fdf('0x10fd')]['message']):_0x17d8fc[_0x122fdf('0x684')]()});});}function _0x523b55(_0x48fb8b){var _0x4da3f2=_0x5deaef;_0x217b1e[_0x4da3f2('0x4c6')]=[];var _0x492dd8=_0xf778c1[_0x4da3f2('0x281e')]()[_0x4da3f2('0x110a')](_0x4da3f2('0x12a3'))[_0x4da3f2('0x15af')](_0x4da3f2('0xfd2'))[_0x4da3f2('0x5b5')](_0x4da3f2('0xb20'))['ok'](_0x4da3f2('0x1e76'))[_0x4da3f2('0x2030')](_0x4da3f2('0x9c6'))[_0x4da3f2('0x116d')](_0x48fb8b);_0xf778c1[_0x4da3f2('0x1e6d')](_0x492dd8)['then'](function(){var _0x162876=_0x4da3f2;_0x5b80f9[_0x162876('0x196')][_0x162876('0x926')]({'id':_0x217b1e['dynamics365Configuration']['id']})['$promise'][_0x162876('0xaa5')](function(){var _0x42459e=_0x162876;_0x51538b()[_0x42459e('0xf6d')](_0x217b1e['configurations'],{'id':_0x217b1e[_0x42459e('0x232d')]['id']}),_0x40e168[_0x42459e('0xe10')]({'title':_0x42459e('0xa93'),'msg':(_0x217b1e['dynamics365Configuration'][_0x42459e('0x25d6')]||'dynamics365Configuration')+_0x42459e('0xcd9')}),_0x5067f5(_0x217b1e['dynamics365Configuration']);})[_0x162876('0x253d')](function(_0x3de0e1){var _0x3d6f1a=_0x162876;if(_0x3de0e1[_0x3d6f1a('0x10fd')]&&_0x3de0e1[_0x3d6f1a('0x10fd')][_0x3d6f1a('0x4c6')]&&_0x3de0e1['data']['errors']['length']){_0x217b1e['errors']=_0x3de0e1[_0x3d6f1a('0x10fd')][_0x3d6f1a('0x4c6')]||[{'message':_0x3de0e1['toString'](),'type':_0x3d6f1a('0xfdb')}];for(var _0x3ae746=0x0;_0x3ae746<_0x3de0e1[_0x3d6f1a('0x10fd')][_0x3d6f1a('0x4c6')][_0x3d6f1a('0x2587')];_0x3ae746++){_0x40e168[_0x3d6f1a('0x187f')]({'title':_0x3de0e1['data'][_0x3d6f1a('0x4c6')][_0x3ae746][_0x3d6f1a('0x6c8')],'msg':_0x3de0e1[_0x3d6f1a('0x10fd')][_0x3d6f1a('0x4c6')][_0x3ae746][_0x3d6f1a('0x1402')]});}}else _0x40e168[_0x3d6f1a('0x187f')]({'title':_0x3de0e1['status']?'API:'+_0x3de0e1[_0x3d6f1a('0x2fa')]+_0x3d6f1a('0x169e')+_0x3de0e1[_0x3d6f1a('0x24df')]:_0x3d6f1a('0xfdb'),'msg':_0x3de0e1[_0x3d6f1a('0x10fd')]?JSON['stringify'](_0x3de0e1[_0x3d6f1a('0x10fd')][_0x3d6f1a('0x1402')]):_0x3de0e1[_0x3d6f1a('0x1402')]||_0x3de0e1[_0x3d6f1a('0x684')]()});});},function(){});}function _0x1f3ee8(_0x1adcf2){return _0x1adcf2===null?undefined:new Date(_0x1adcf2);}function _0x5067f5(_0x4d481a){var _0x2b66c8=_0x5deaef;_0xf778c1[_0x2b66c8('0x1120')](_0x4d481a);}}const _0x3b256c=_0xbed5bc;_0x2854fe[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x2a4'),'configuration','items','item','account','type','api','Auth',_0x1a8446('0xada')];function _0x2854fe(_0x14c78e,_0x2253dd,_0x29dd34,_0x2fb463,_0x4db528,_0x1a2aef,_0x45c7e1,_0x2cc18b,_0x5c3984,_0x31dd4e,_0xf714ad,_0x1a241f,_0xad66b8){var _0x4295be=_0x1a8446,_0xdc69af=this;_0xdc69af[_0x4295be('0x7fc')]=_0x1a241f[_0x4295be('0xacc')](),_0xdc69af[_0x4295be('0x4c6')]=[],_0xdc69af[_0x4295be('0x110a')]=_0x4295be('0x66b')+_0x51538b()[_0x4295be('0x1818')](_0x31dd4e),_0xdc69af['item']=angular[_0x4295be('0x20a')](_0x2cc18b),_0xdc69af[_0x4295be('0x1a30')]=_0x45c7e1,_0xdc69af[_0x4295be('0x6c8')]=_0x31dd4e,_0xdc69af[_0x4295be('0xada')]=_0xad66b8,_0xdc69af[_0x4295be('0x1891')]=![];!_0xdc69af[_0x4295be('0x1a38')]&&(_0xdc69af['item']={'type':_0x4295be('0x199')},_0xdc69af[_0x4295be('0x1a38')][_0x51538b()['capitalize'](_0x31dd4e)+'Id']=_0x1a2aef['id'],_0xdc69af[_0x4295be('0x110a')]=_0x4295be('0x1502')+_0x51538b()[_0x4295be('0x1818')](_0x31dd4e),_0xdc69af[_0x4295be('0x1891')]=!![]);_0xdc69af['addNewItem']=_0xdf9002,_0xdc69af[_0x4295be('0x24c7')]=_0x5ceb5d,_0xdc69af[_0x4295be('0x1994')]=_0x2f7616,_0xdc69af[_0x4295be('0x1b0f')]=_0x297fa4,_0xdc69af[_0x4295be('0x2023')]=_0x101015,_0xf714ad[_0x4295be('0x14e7')]['get']({'nolimit':!![]})['$promise']['then'](function(_0x271ab4){var _0x33a8bd=_0x4295be;return _0xdc69af[_0x33a8bd('0x147e')]=_0x271ab4[_0x33a8bd('0x580')]?_0x271ab4[_0x33a8bd('0x580')]:[],_0xf714ad[_0x33a8bd('0x188e')][_0x33a8bd('0x3e7')]()['$promise'];})[_0x4295be('0xaa5')](function(_0x5b7b74){var _0x2d35d5=_0x4295be;return _0xdc69af[_0x2d35d5('0x27a9')]=_0x51538b()[_0x2d35d5('0x1485')](_0x51538b()[_0x2d35d5('0x9f2')](_0x5b7b74),[_0x2d35d5('0x1dc2'),_0x2d35d5('0xd92'),_0x2d35d5('0x24a1'),_0x2d35d5('0x19f3'),'sourceid']),_0xdc69af[_0x2d35d5('0x27a9')][_0x2d35d5('0x1599')](_0x2d35d5('0xef3')),_0xf714ad[_0x2d35d5('0x1f51')]['describe']()[_0x2d35d5('0x1dc2')];})[_0x4295be('0xaa5')](function(_0x49e4d7){var _0x3e5556=_0x4295be;_0xdc69af[_0x3e5556('0xc69')]=_0x51538b()[_0x3e5556('0x1485')](_0x51538b()['keys'](_0x49e4d7),['$promise',_0x3e5556('0xd92'),_0x3e5556('0x24a1'),_0x3e5556('0x19f3'),_0x3e5556('0x129a')]),_0xdc69af[_0x3e5556('0xc69')]['push'](_0x3e5556('0xef3'));})[_0x4295be('0x253d')](function(_0x358140){var _0x29010e=_0x4295be;_0x4db528[_0x29010e('0x187f')]({'title':_0x358140[_0x29010e('0x2fa')]?_0x29010e('0x16c2')+_0x358140[_0x29010e('0x2fa')]+'\x20-\x20'+_0x358140[_0x29010e('0x24df')]:'SYSTEM:GETVARIABLES','msg':_0x358140[_0x29010e('0x10fd')]?JSON[_0x29010e('0xa48')](_0x358140[_0x29010e('0x10fd')]):_0x358140[_0x29010e('0x684')]()});}),_0xf714ad[_0x4295be('0x754')][_0x4295be('0x1450')]({'id':_0x5c3984['id'],'ticketType':_0x1a2aef[_0x4295be('0x1146')]?_0x1a2aef[_0x4295be('0x1146')]:undefined})[_0x4295be('0x1dc2')]['then'](function(_0x469e58){var _0x146bf5=_0x4295be;_0xdc69af[_0x146bf5('0x722')]=!![],_0xdc69af[_0x146bf5('0x13a')]=_0x469e58['rows']?_0x469e58[_0x146bf5('0x580')]:[],_0xdc69af[_0x146bf5('0x1a38')][_0x146bf5('0x1dfc')]&&(_0xdc69af['customField']=_0x51538b()[_0x146bf5('0xe9e')](_0xdc69af['fields'],{'id':_0xdc69af[_0x146bf5('0x1a38')][_0x146bf5('0x1dfc')]}));})['catch'](function(_0x21a1c0){var _0x137c9f=_0x4295be;_0xdc69af['accountConnected']=![],console[_0x137c9f('0x187f')](_0x21a1c0);});function _0xdf9002(){var _0x18a110=_0x4295be;_0xdc69af[_0x18a110('0x4c6')]=[],_0xdc69af[_0x18a110('0x6fc')]&&(_0xdc69af[_0x18a110('0x1a38')][_0x18a110('0x1dfc')]=_0xdc69af[_0x18a110('0x6fc')]['id'],_0xdc69af[_0x18a110('0x1a38')]['nameField']=_0xdc69af[_0x18a110('0x6fc')][_0x18a110('0x25d6')],_0xdc69af[_0x18a110('0x1a38')]['customField']=_0xdc69af[_0x18a110('0x6fc')][_0x18a110('0x113b')]),_0xf714ad[_0x18a110('0x1d64')][_0x18a110('0x242b')](_0xdc69af[_0x18a110('0x1a38')])[_0x18a110('0x1dc2')]['then'](function(_0x55cdb7){var _0x1807c6=_0x18a110;_0xdc69af[_0x1807c6('0x1a30')][_0x1807c6('0x6ee')](_0x55cdb7),_0x4db528[_0x1807c6('0xe10')]({'title':_0x51538b()[_0x1807c6('0x1b56')](_0x31dd4e)+_0x1807c6('0xbf5'),'msg':_0x51538b()[_0x1807c6('0x1b56')](_0x31dd4e)+_0x1807c6('0xdca')}),_0x101015();})[_0x18a110('0x253d')](function(_0x3431ac){var _0x117b9e=_0x18a110;console[_0x117b9e('0x187f')](_0x3431ac),_0xdc69af['errors']=_0x3431ac[_0x117b9e('0x10fd')]['errors']||[{'message':_0x3431ac[_0x117b9e('0x684')](),'type':_0x117b9e('0x23f')}];});}function _0x5ceb5d(){var _0x471d9c=_0x4295be;_0xdc69af['errors']=[],_0xdc69af[_0x471d9c('0x6fc')]&&(_0xdc69af['item'][_0x471d9c('0x1dfc')]=_0xdc69af[_0x471d9c('0x6fc')]['id'],_0xdc69af[_0x471d9c('0x1a38')][_0x471d9c('0x1662')]=_0xdc69af['customField'][_0x471d9c('0x25d6')],_0xdc69af[_0x471d9c('0x1a38')][_0x471d9c('0x6fc')]=_0xdc69af[_0x471d9c('0x6fc')][_0x471d9c('0x113b')]),_0xf714ad[_0x471d9c('0x1d64')][_0x471d9c('0x264e')]({'id':_0xdc69af[_0x471d9c('0x1a38')]['id']},_0xdc69af['item'])['$promise'][_0x471d9c('0xaa5')](function(_0x4d1974){var _0x4babc8=_0x471d9c,_0x2bcc76=_0x51538b()[_0x4babc8('0xe9e')](_0xdc69af[_0x4babc8('0x1a30')],{'id':_0x4d1974['id']});_0x2bcc76&&_0x51538b()[_0x4babc8('0x283c')](_0x2bcc76,_0x4d1974),_0x4db528[_0x4babc8('0xe10')]({'title':_0x51538b()[_0x4babc8('0x1b56')](_0x31dd4e)+_0x4babc8('0x1c44'),'msg':_0x51538b()[_0x4babc8('0x1b56')](_0x31dd4e)+_0x4babc8('0x20bf')}),_0x101015();})[_0x471d9c('0x253d')](function(_0x3e07a7){var _0x243d7c=_0x471d9c;console[_0x243d7c('0x187f')](_0x3e07a7),_0xdc69af[_0x243d7c('0x4c6')]=_0x3e07a7[_0x243d7c('0x10fd')][_0x243d7c('0x4c6')]||[{'message':_0x3e07a7[_0x243d7c('0x684')](),'type':_0x243d7c('0x2460')}];});}function _0x2f7616(_0x5afa6d){var _0x4522ce=_0x4295be;_0xdc69af[_0x4522ce('0x4c6')]=[];var _0x4af2a4=_0x2fb463[_0x4522ce('0x281e')]()[_0x4522ce('0x110a')]('Are\x20you\x20sure?')[_0x4522ce('0x15af')]('The\x20'+_0x31dd4e+_0x4522ce('0x210d'))[_0x4522ce('0x5b5')]('Delete\x20'+_0x51538b()[_0x4522ce('0x1b56')](_0x31dd4e))['ok'](_0x4522ce('0x1e76'))['cancel'](_0x4522ce('0x9c6'))[_0x4522ce('0x116d')](_0x5afa6d);_0x2fb463[_0x4522ce('0x1e6d')](_0x4af2a4)[_0x4522ce('0xaa5')](function(){var _0x39e360=_0x4522ce;_0xf714ad['intDynamics365Field'][_0x39e360('0x926')]({'id':_0xdc69af[_0x39e360('0x1a38')]['id']})[_0x39e360('0x1dc2')][_0x39e360('0xaa5')](function(){var _0x466a97=_0x39e360;_0x51538b()[_0x466a97('0xf6d')](_0xdc69af[_0x466a97('0x1a30')],{'id':_0xdc69af[_0x466a97('0x1a38')]['id']}),_0x4db528[_0x466a97('0xe10')]({'title':_0x51538b()[_0x466a97('0x1b56')](_0x31dd4e)+_0x466a97('0x1e42'),'msg':_0x51538b()[_0x466a97('0x1b56')](_0x31dd4e)+_0x466a97('0xcd9')}),_0x101015();})['catch'](function(_0x1f7297){var _0x33b3e7=_0x39e360;console['error'](_0x1f7297),_0xdc69af['errors']=_0x1f7297[_0x33b3e7('0x10fd')][_0x33b3e7('0x4c6')]||[{'message':_0x1f7297[_0x33b3e7('0x684')](),'type':_0x33b3e7('0x37d')}];});},function(){});}function _0x297fa4(){var _0x4e0c9f=_0x4295be;return _0xdc69af['item'][_0x4e0c9f('0x1e29')]!==undefined?_0xdc69af[_0x4e0c9f('0x1a38')][_0x4e0c9f('0x1e29')]:_0x4e0c9f('0x2444');}function _0x101015(){var _0x8bb0d=_0x4295be;_0x2fb463[_0x8bb0d('0x1120')]();}}const _0x2154f8=_0x2854fe;_0x2dc69b[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),'license','setting',_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1cb2'),_0x1a8446('0x1a50')];function _0x2dc69b(_0x448ffc,_0x58cb09,_0x824f93,_0x31dbe6,_0x23336b,_0x24934c,_0x50f056,_0x12f997,_0x6fa168,_0x58f226,_0x5c1c93,_0x13ac62){var _0x117c54=_0x1a8446,_0x43fd45=this;_0x43fd45[_0x117c54('0x7fc')]=_0x58f226[_0x117c54('0xacc')](),_0x43fd45[_0x117c54('0x1202')]=_0x24934c,_0x43fd45[_0x117c54('0x143f')]=_0x50f056,_0x43fd45[_0x117c54('0x1d53')]=_0x43fd45[_0x117c54('0x143f')][_0x117c54('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x43fd45[_0x117c54('0x18cc')]=_0x58cb09[_0x117c54('0x1cc2')]()+_0x117c54('0x356')+_0x58cb09[_0x117c54('0x160c')](),_0x43fd45[_0x117c54('0x1cb2')]=_0x5c1c93||_0x448ffc[_0x117c54('0x25cf')][_0x117c54('0x1cb2')]||{},_0x43fd45[_0x117c54('0x1a50')]=_0x13ac62&&_0x13ac62[_0x117c54('0xd15')]==0x1?_0x13ac62[_0x117c54('0x580')][0x0]:null,_0x43fd45[_0x117c54('0xada')]=_0x58f226[_0x117c54('0xffd')](_0x43fd45[_0x117c54('0x1a50')]?_0x43fd45[_0x117c54('0x1a50')][_0x117c54('0xada')]:null),_0x43fd45[_0x117c54('0x9f0')]={},_0x43fd45['selectedTab']=_0x448ffc[_0x117c54('0x25cf')][_0x117c54('0x25c2')]||0x0,_0x43fd45[_0x117c54('0xc10')]=_0x6fa168[_0x117c54('0x3a1')],_0x43fd45[_0x117c54('0x1902')]=_0x3dcedb,_0x43fd45['saveDynamics365Account']=_0x53fd60;function _0x3dcedb(){_0x448ffc['go']('app.integrations.dynamics365Accounts',{},{'reload':'app.integrations.dynamics365Accounts'});}function _0x53fd60(){var _0x4f1851=_0x117c54;_0x12f997[_0x4f1851('0x754')][_0x4f1851('0x264e')]({'id':_0x43fd45[_0x4f1851('0x1cb2')]['id']},_0x43fd45['dynamics365Account'])[_0x4f1851('0x1dc2')][_0x4f1851('0xaa5')](function(){var _0x1c0d60=_0x4f1851;_0x6fa168['success']({'title':_0x1c0d60('0x23e0'),'msg':_0x43fd45[_0x1c0d60('0x1cb2')][_0x1c0d60('0x25d6')]?_0x43fd45[_0x1c0d60('0x1cb2')][_0x1c0d60('0x25d6')]+_0x1c0d60('0x1734'):''});})['catch'](function(_0x1ef2b4){var _0x32703d=_0x4f1851;_0x6fa168[_0x32703d('0x187f')]({'title':_0x1ef2b4[_0x32703d('0x2fa')]?'API:'+_0x1ef2b4[_0x32703d('0x2fa')]+_0x32703d('0x169e')+_0x1ef2b4[_0x32703d('0x24df')]:_0x32703d('0x649'),'msg':_0x1ef2b4[_0x32703d('0x10fd')]?JSON['stringify'](_0x1ef2b4['data']):_0x1ef2b4['toString']()});});}}const _0x388197=_0x2dc69b;_0x52d01d[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location','$mdDialog','$q','$translate','toasty',_0x1a8446('0x79e'),_0x1a8446('0x1eec'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x52d01d(_0x38cb55,_0x481d97,_0x5a102b,_0x10849a,_0x299d59,_0x10823e,_0x3438ab,_0x49969d,_0x185a38,_0x4a4663,_0x2d85f7,_0x10c1e0,_0x40d6fc,_0x5993c7){var _0x4ffcc9=_0x1a8446,_0x242916=this;_0x242916['currentUser']=_0x2d85f7[_0x4ffcc9('0xacc')](),_0x242916['errors']=[],_0x242916['setting']=_0x40d6fc,_0x242916[_0x4ffcc9('0x1202')]=_0x10c1e0,_0x242916[_0x4ffcc9('0xada')]=_0x5993c7,_0x242916[_0x4ffcc9('0x9f0')]={},_0x242916[_0x4ffcc9('0x1d53')]=_0x242916[_0x4ffcc9('0x143f')]&&_0x242916['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x242916['title']=_0x4ffcc9('0x126e'),_0x242916[_0x4ffcc9('0x1eec')]=angular[_0x4ffcc9('0x20a')](_0x185a38),_0x242916[_0x4ffcc9('0x79e')]=_0x49969d,_0x242916['newFreshdeskAccount']=![];!_0x242916[_0x4ffcc9('0x1eec')]&&(_0x242916['freshdeskAccount']={'serverUrl':_0x5a102b[_0x4ffcc9('0x1cc2')]()+'://'+_0x5a102b['host']()+(_0x5a102b['port']()?':'+_0x5a102b[_0x4ffcc9('0x191')]():'')},_0x242916[_0x4ffcc9('0x110a')]='INTEGRATIONS.NEW_FRESHDESKACCOUNT',_0x242916[_0x4ffcc9('0x3c8')]=!![]);_0x242916[_0x4ffcc9('0xd64')]=_0x57a0ab,_0x242916[_0x4ffcc9('0x182')]=_0x260b70,_0x242916['deleteFreshdeskAccount']=_0x1d0057,_0x242916[_0x4ffcc9('0xc09')]=_0x5cc47a,_0x242916['closeDialog']=_0x1861c6;function _0x57a0ab(){var _0x183be9=_0x4ffcc9;_0x242916['errors']=[],_0x4a4663['intFreshdeskAccount'][_0x183be9('0x242b')](_0x242916['freshdeskAccount'])[_0x183be9('0x1dc2')]['then'](function(_0x483a15){var _0x34f1d6=_0x183be9;_0x242916[_0x34f1d6('0x79e')][_0x34f1d6('0x6ee')](_0x483a15['toJSON']()),_0x3438ab['success']({'title':_0x34f1d6('0x1182'),'msg':_0x242916['freshdeskAccount'][_0x34f1d6('0x25d6')]?_0x242916[_0x34f1d6('0x1eec')][_0x34f1d6('0x25d6')]+_0x34f1d6('0xdca'):''}),_0x1861c6(_0x483a15);})['catch'](function(_0x16a294){var _0xc4b329=_0x183be9;if(_0x16a294[_0xc4b329('0x10fd')]&&_0x16a294[_0xc4b329('0x10fd')][_0xc4b329('0x4c6')]&&_0x16a294[_0xc4b329('0x10fd')][_0xc4b329('0x4c6')][_0xc4b329('0x2587')]){_0x242916[_0xc4b329('0x4c6')]=_0x16a294[_0xc4b329('0x10fd')]['errors']||[{'message':_0x16a294[_0xc4b329('0x684')](),'type':_0xc4b329('0x16d9')}];for(var _0x11cf46=0x0;_0x11cf46<_0x16a294['data']['errors'][_0xc4b329('0x2587')];_0x11cf46+=0x1){_0x3438ab[_0xc4b329('0x187f')]({'title':_0x16a294['data']['errors'][_0x11cf46]['type'],'msg':_0x16a294[_0xc4b329('0x10fd')]['errors'][_0x11cf46][_0xc4b329('0x1402')]});}}else _0x3438ab['error']({'title':_0x16a294['status']?_0xc4b329('0x16c2')+_0x16a294[_0xc4b329('0x2fa')]+_0xc4b329('0x169e')+_0x16a294['statusText']:_0xc4b329('0x16d9'),'msg':_0x16a294[_0xc4b329('0x10fd')]?JSON[_0xc4b329('0xa48')](_0x16a294[_0xc4b329('0x10fd')]['message']):_0x16a294['toString']()});});}function _0x260b70(){var _0x511011=_0x4ffcc9;_0x242916['errors']=[],_0x4a4663[_0x511011('0x1ab2')]['update']({'id':_0x242916[_0x511011('0x1eec')]['id']},_0x242916[_0x511011('0x1eec')])[_0x511011('0x1dc2')][_0x511011('0xaa5')](function(_0x73d814){var _0x469a58=_0x511011,_0xc2fa99=_0x51538b()[_0x469a58('0xe9e')](_0x242916['freshdeskAccounts'],{'id':_0x73d814['id']});_0xc2fa99&&_0x51538b()[_0x469a58('0x283c')](_0xc2fa99,_0x51538b()[_0x469a58('0x104e')](_0x73d814[_0x469a58('0x256a')](),_0x51538b()[_0x469a58('0x9f2')](_0xc2fa99))),_0x3438ab[_0x469a58('0xe10')]({'title':'FreshdeskAccount\x20properly\x20saved!','msg':_0x242916['freshdeskAccount'][_0x469a58('0x25d6')]?_0x242916[_0x469a58('0x1eec')][_0x469a58('0x25d6')]+_0x469a58('0x20bf'):''}),_0x1861c6(_0x73d814);})[_0x511011('0x253d')](function(_0x5dc9d2){var _0x36a7fe=_0x511011;if(_0x5dc9d2[_0x36a7fe('0x10fd')]&&_0x5dc9d2[_0x36a7fe('0x10fd')][_0x36a7fe('0x4c6')]&&_0x5dc9d2['data'][_0x36a7fe('0x4c6')][_0x36a7fe('0x2587')]){_0x242916['errors']=_0x5dc9d2[_0x36a7fe('0x10fd')][_0x36a7fe('0x4c6')]||[{'message':_0x5dc9d2[_0x36a7fe('0x684')](),'type':_0x36a7fe('0x2474')}];for(var _0x3593e3=0x0;_0x3593e3<_0x5dc9d2[_0x36a7fe('0x10fd')]['errors']['length'];_0x3593e3++){_0x3438ab[_0x36a7fe('0x187f')]({'title':_0x5dc9d2[_0x36a7fe('0x10fd')]['errors'][_0x3593e3][_0x36a7fe('0x6c8')],'msg':_0x5dc9d2[_0x36a7fe('0x10fd')][_0x36a7fe('0x4c6')][_0x3593e3][_0x36a7fe('0x1402')]});}}else _0x3438ab[_0x36a7fe('0x187f')]({'title':_0x5dc9d2[_0x36a7fe('0x2fa')]?'API:'+_0x5dc9d2[_0x36a7fe('0x2fa')]+_0x36a7fe('0x169e')+_0x5dc9d2[_0x36a7fe('0x24df')]:_0x36a7fe('0x2474'),'msg':_0x5dc9d2[_0x36a7fe('0x10fd')]?JSON['stringify'](_0x5dc9d2[_0x36a7fe('0x10fd')][_0x36a7fe('0x1402')]):_0x5dc9d2[_0x36a7fe('0x684')]()});});}function _0x1d0057(_0x4a05b4){var _0x1977ab=_0x4ffcc9;_0x242916[_0x1977ab('0x4c6')]=[];var _0x4bc25=_0x10849a['confirm']()[_0x1977ab('0x110a')]('Are\x20you\x20sure?')['content'](_0x1977ab('0x2163'))[_0x1977ab('0x5b5')](_0x1977ab('0xdad'))['ok'](_0x1977ab('0x1e76'))[_0x1977ab('0x2030')](_0x1977ab('0x9c6'))[_0x1977ab('0x116d')](_0x4a05b4);_0x10849a[_0x1977ab('0x1e6d')](_0x4bc25)[_0x1977ab('0xaa5')](function(){var _0x202e70=_0x1977ab;_0x4a4663[_0x202e70('0x1ab2')]['delete']({'id':_0x242916['freshdeskAccount']['id']})[_0x202e70('0x1dc2')][_0x202e70('0xaa5')](function(){var _0x422958=_0x202e70;_0x51538b()[_0x422958('0xf6d')](_0x242916[_0x422958('0x79e')],{'id':_0x242916[_0x422958('0x1eec')]['id']}),_0x3438ab[_0x422958('0xe10')]({'title':_0x422958('0x29e'),'msg':(_0x242916[_0x422958('0x1eec')][_0x422958('0x25d6')]||'freshdeskAccount')+_0x422958('0xcd9')}),_0x1861c6(_0x242916[_0x422958('0x1eec')]);})[_0x202e70('0x253d')](function(_0x571ee1){var _0x5dae59=_0x202e70;if(_0x571ee1[_0x5dae59('0x10fd')]&&_0x571ee1[_0x5dae59('0x10fd')][_0x5dae59('0x4c6')]&&_0x571ee1[_0x5dae59('0x10fd')][_0x5dae59('0x4c6')][_0x5dae59('0x2587')]){_0x242916['errors']=_0x571ee1[_0x5dae59('0x10fd')]['errors']||[{'message':_0x571ee1[_0x5dae59('0x684')](),'type':_0x5dae59('0x1a37')}];for(var _0x148fb1=0x0;_0x148fb1<_0x571ee1[_0x5dae59('0x10fd')]['errors'][_0x5dae59('0x2587')];_0x148fb1++){_0x3438ab['error']({'title':_0x571ee1['data'][_0x5dae59('0x4c6')][_0x148fb1]['type'],'msg':_0x571ee1[_0x5dae59('0x10fd')]['errors'][_0x148fb1]['message']});}}else _0x3438ab[_0x5dae59('0x187f')]({'title':_0x571ee1[_0x5dae59('0x2fa')]?_0x5dae59('0x16c2')+_0x571ee1[_0x5dae59('0x2fa')]+'\x20-\x20'+_0x571ee1[_0x5dae59('0x24df')]:_0x5dae59('0x1a37'),'msg':_0x571ee1[_0x5dae59('0x10fd')]?JSON['stringify'](_0x571ee1[_0x5dae59('0x10fd')][_0x5dae59('0x1402')]):_0x571ee1[_0x5dae59('0x1402')]||_0x571ee1['toString']()});});},function(){});}function _0x5cc47a(_0x159547){return _0x159547===null?undefined:new Date(_0x159547);}function _0x1861c6(_0x4c1b3e){_0x10849a['hide'](_0x4c1b3e);}}const _0x3ce463=_0x52d01d,_0x272e9b=_0x4fb511['p']+_0x1a8446('0x198e'),_0x4ee6ee=_0x4fb511['p']+_0x1a8446('0x23d1');_0x1c6717['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x1c6717(_0x5981ae,_0x2971e5,_0x1b8d09,_0x19fdeb,_0x16a3b4){var _0x28de11=_0x1a8446,_0x55e8b3=this;_0x55e8b3[_0x28de11('0x7fc')]=_0x16a3b4[_0x28de11('0xacc')](),_0x55e8b3[_0x28de11('0x1eec')]={},_0x55e8b3[_0x28de11('0x24f0')]={},_0x55e8b3[_0x28de11('0x555')]=[],_0x55e8b3[_0x28de11('0xc0b')]=-0x1,_0x55e8b3[_0x28de11('0xada')],_0x55e8b3[_0x28de11('0x2e')]=_0xcc768f,_0x55e8b3[_0x28de11('0x20f4')]=_0x303f87,_0x55e8b3[_0x28de11('0x23f1')]=_0x52b2f6,_0x55e8b3[_0x28de11('0x55d')]=_0x10caed,_0x55e8b3[_0x28de11('0x1373')]=[],_0x55e8b3[_0x28de11('0x1167')]=_0x525103,_0x1b8d09['tag']['get']({'nolimit':!![],'sort':_0x28de11('0x25d6')})['$promise'][_0x28de11('0xaa5')](function(_0xdf51b8){var _0x51d231=_0x28de11;_0x55e8b3[_0x51d231('0x523')]=_0xdf51b8[_0x51d231('0x580')]?_0xdf51b8[_0x51d231('0x580')]:[];})[_0x28de11('0x253d')](function(_0x118909){var _0x33bc58=_0x28de11;_0x19fdeb['error']({'title':_0x118909['status']?_0x33bc58('0x16c2')+_0x118909[_0x33bc58('0x2fa')]+_0x33bc58('0x169e')+_0x118909['statusText']:_0x33bc58('0xe67'),'msg':_0x118909['data']?JSON[_0x33bc58('0xa48')](_0x118909[_0x33bc58('0x10fd')]):_0x118909[_0x33bc58('0x684')]()});});function _0x525103(){var _0x388057=_0x28de11;_0x1b8d09[_0x388057('0x1088')][_0x388057('0x2392')]({'id':_0x55e8b3[_0x388057('0x24f0')]['id'],'ids':_0x55e8b3[_0x388057('0x1373')]})['$promise'][_0x388057('0xaa5')](function(){var _0x5606bd=_0x388057;_0x19fdeb[_0x5606bd('0xe10')]({'title':_0x5606bd('0x30e'),'msg':_0x5606bd('0x3df')});})['catch'](function(_0x2c6ac0){var _0x6759e4=_0x388057;_0x19fdeb[_0x6759e4('0x187f')]({'title':_0x2c6ac0[_0x6759e4('0x2fa')]?_0x6759e4('0x16c2')+_0x2c6ac0[_0x6759e4('0x2fa')]+_0x6759e4('0x169e')+_0x2c6ac0[_0x6759e4('0x24df')]:_0x6759e4('0x3f8'),'msg':_0x2c6ac0[_0x6759e4('0x10fd')]?JSON[_0x6759e4('0xa48')](_0x2c6ac0[_0x6759e4('0x10fd')]):_0x2c6ac0[_0x6759e4('0x684')]()});});}function _0xcc768f(_0x4dd0dd,_0x227a00){var _0x1243bf=_0x28de11;_0x55e8b3[_0x1243bf('0x1eec')]=_0x4dd0dd,_0x55e8b3['crudPermissions']=typeof _0x227a00!==_0x1243bf('0x1574')?_0x227a00:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1b8d09[_0x1243bf('0x1ab2')]['getConfigurations']({'id':_0x55e8b3[_0x1243bf('0x1eec')]['id'],'sort':_0x1243bf('0xd82')})[_0x1243bf('0x1dc2')][_0x1243bf('0xaa5')](function(_0x597421){var _0xdea6e2=_0x1243bf;return _0x55e8b3[_0xdea6e2('0x555')]=_0x597421[_0xdea6e2('0x580')]?_0x597421['rows']:[],_0x55e8b3[_0xdea6e2('0x555')][_0xdea6e2('0x2587')]&&_0x55e8b3['getFreshdeskConfiguration'](0x0),_0x1b8d09[_0xdea6e2('0x14e7')][_0xdea6e2('0x2122')]({'nolimit':!![],'sort':_0xdea6e2('0x25d6')})[_0xdea6e2('0x1dc2')];})[_0x1243bf('0xaa5')](function(_0x5a34d5){var _0x2c1d25=_0x1243bf;_0x55e8b3[_0x2c1d25('0x147e')]=_0x5a34d5[_0x2c1d25('0x580')]?_0x5a34d5[_0x2c1d25('0x580')]:[],_0x55e8b3[_0x2c1d25('0x2032')]=_0x51538b()[_0x2c1d25('0x184a')](_0x55e8b3[_0x2c1d25('0x147e')],'id');})['catch'](function(_0x5f0e28){var _0x3f94c0=_0x1243bf;_0x19fdeb[_0x3f94c0('0x187f')]({'title':_0x5f0e28['status']?'API:'+_0x5f0e28[_0x3f94c0('0x2fa')]+'\x20-\x20'+_0x5f0e28[_0x3f94c0('0x24df')]:_0x3f94c0('0x24c9'),'msg':_0x5f0e28[_0x3f94c0('0x10fd')]?JSON[_0x3f94c0('0xa48')](_0x5f0e28[_0x3f94c0('0x10fd')]):_0x5f0e28['toString']()});});}function _0x303f87(_0x2d388c){var _0x30fa2d=_0x28de11;_0x55e8b3[_0x30fa2d('0x24f0')]=_0x55e8b3[_0x30fa2d('0x555')][_0x2d388c],_0x55e8b3[_0x30fa2d('0xc0b')]=_0x2d388c,_0x1b8d09[_0x30fa2d('0x1088')][_0x30fa2d('0xeba')]({'id':_0x55e8b3[_0x30fa2d('0x24f0')]['id']})[_0x30fa2d('0x1dc2')]['then'](function(_0x528135){var _0x239948=_0x30fa2d;return _0x55e8b3[_0x239948('0xc3f')]=_0x528135[_0x239948('0x580')]?_0x528135[_0x239948('0x580')]:[],_0x1b8d09[_0x239948('0x1088')][_0x239948('0x2103')]({'id':_0x55e8b3['freshdeskConfiguration']['id']})[_0x239948('0x1dc2')];})[_0x30fa2d('0xaa5')](function(_0x435d96){var _0x296022=_0x30fa2d;return _0x55e8b3['descriptions']=_0x435d96['rows']?_0x435d96[_0x296022('0x580')]:[],_0x1b8d09[_0x296022('0x1088')][_0x296022('0x1450')]({'id':_0x55e8b3[_0x296022('0x24f0')]['id']})['$promise'];})['then'](function(_0x18ddd1){var _0x11d88f=_0x30fa2d;_0x55e8b3[_0x11d88f('0x13a')]=_0x18ddd1['rows']?_0x18ddd1['rows']:[];})[_0x30fa2d('0x253d')](function(_0x45d621){var _0xd114fb=_0x30fa2d;_0x19fdeb[_0xd114fb('0x187f')]({'title':_0x45d621[_0xd114fb('0x2fa')]?_0xd114fb('0x16c2')+_0x45d621[_0xd114fb('0x2fa')]+_0xd114fb('0x169e')+_0x45d621[_0xd114fb('0x24df')]:_0xd114fb('0xd6d'),'msg':_0x45d621[_0xd114fb('0x10fd')]?JSON[_0xd114fb('0xa48')](_0x45d621[_0xd114fb('0x10fd')]):_0x45d621[_0xd114fb('0x684')]()});}),_0x1b8d09[_0x30fa2d('0x1088')][_0x30fa2d('0x195b')]({'id':_0x55e8b3[_0x30fa2d('0x24f0')]['id']})[_0x30fa2d('0x1dc2')][_0x30fa2d('0xaa5')](function(_0x594a92){var _0x40874d=_0x30fa2d;_0x55e8b3[_0x40874d('0x1373')]=_0x594a92[_0x40874d('0x580')]?_0x51538b()[_0x40874d('0x1246')](_0x594a92[_0x40874d('0x580')],'id'):[];})['catch'](function(_0x19fec8){var _0x548fa3=_0x30fa2d;_0x19fdeb[_0x548fa3('0x187f')]({'title':_0x19fec8[_0x548fa3('0x2fa')]?'API:'+_0x19fec8[_0x548fa3('0x2fa')]+_0x548fa3('0x169e')+_0x19fec8[_0x548fa3('0x24df')]:_0x548fa3('0xe67'),'msg':_0x19fec8[_0x548fa3('0x10fd')]?JSON[_0x548fa3('0xa48')](_0x19fec8[_0x548fa3('0x10fd')]):_0x19fec8[_0x548fa3('0x684')]()});});}function _0x52b2f6(_0x48bd61,_0x31fa6c){var _0x56af04=_0x28de11;_0x5981ae[_0x56af04('0x1e6d')]({'controller':_0x56af04('0xbd1'),'controllerAs':'vm','templateUrl':_0x272e9b,'parent':angular[_0x56af04('0x1aa8')](_0x2971e5['body']),'targetEvent':_0x48bd61,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x31fa6c,'configurations':_0x55e8b3[_0x56af04('0x555')],'license':null,'setting':null,'crudPermissions':_0x55e8b3[_0x56af04('0xada')]}})[_0x56af04('0x1889')](function(){var _0x4f7d17=_0x56af04;_0x55e8b3[_0x4f7d17('0x20f4')](0x0);});}function _0x10caed(_0x1a7cac,_0x589144){var _0xa15286=_0x28de11,_0x17c051=_0x5981ae['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshdeskConfiguration?')['htmlContent'](_0xa15286('0x389')+(_0x589144[_0xa15286('0x25d6')]||_0xa15286('0x24f0'))+_0xa15286('0x697')+_0xa15286('0x210d'))[_0xa15286('0x5b5')](_0xa15286('0x2328'))[_0xa15286('0x116d')](_0x1a7cac)['ok']('OK')['cancel'](_0xa15286('0x2410'));_0x5981ae[_0xa15286('0x1e6d')](_0x17c051)['then'](function(){var _0x1c48a8=_0xa15286;_0x1b8d09['intFreshdeskConfiguration']['delete']({'id':_0x589144['id']})[_0x1c48a8('0x1dc2')]['then'](function(){var _0x4c086c=_0x1c48a8;_0x51538b()['remove'](_0x55e8b3[_0x4c086c('0x555')],{'id':_0x589144['id']}),_0x19fdeb[_0x4c086c('0xe10')]({'title':'FreshdeskConfiguration\x20deleted!','msg':_0x589144[_0x4c086c('0x25d6')]?_0x589144['name']+_0x4c086c('0xcd9'):''});})[_0x1c48a8('0x253d')](function(_0x59bd5b){var _0x4da26c=_0x1c48a8;_0x19fdeb[_0x4da26c('0x187f')]({'title':_0x59bd5b[_0x4da26c('0x2fa')]?_0x4da26c('0x16c2')+_0x59bd5b['status']+_0x4da26c('0x169e')+_0x59bd5b['statusText']:_0x4da26c('0x2549'),'msg':_0x59bd5b[_0x4da26c('0x10fd')]?JSON[_0x4da26c('0xa48')](_0x59bd5b['data']):_0x59bd5b['toString']()});})[_0x1c48a8('0x1889')](function(){_0x55e8b3['getFreshdeskConfiguration'](0x0);});},function(){var _0x4a816f=_0xa15286;console[_0x4a816f('0x18d5')]('CANCEL');});}_0x55e8b3[_0x28de11('0xf7d')]=[],_0x55e8b3[_0x28de11('0x21c5')]=_0x24d163,_0x55e8b3['deleteSubjectConfirm']=_0x5a60ef,_0x55e8b3[_0x28de11('0x911')]=_0x252988;function _0x24d163(_0x466d24,_0x15232f){var _0x47bd84=_0x28de11;_0x5981ae['show']({'controller':'CreateOrEditFreshdeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x4ee6ee,'parent':angular[_0x47bd84('0x1aa8')](_0x2971e5[_0x47bd84('0x54c')]),'targetEvent':_0x466d24,'clickOutsideToClose':!![],'locals':{'type':_0x47bd84('0x2101'),'item':_0x15232f,'items':_0x55e8b3[_0x47bd84('0xc3f')],'configuration':_0x55e8b3['freshdeskConfiguration'],'account':_0x55e8b3['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x55e8b3[_0x47bd84('0xada')]}});}function _0x1533ce(_0xfc858f){var _0x5a8861=_0x28de11;_0x1b8d09[_0x5a8861('0x21d4')][_0x5a8861('0x926')]({'id':_0xfc858f['id']})['$promise'][_0x5a8861('0xaa5')](function(){var _0x5c8a75=_0x5a8861;_0x51538b()[_0x5c8a75('0xf6d')](_0x55e8b3[_0x5c8a75('0xc3f')],{'id':_0xfc858f['id']}),_0x19fdeb[_0x5c8a75('0xe10')]({'title':_0x5c8a75('0xcad'),'msg':_0x5c8a75('0x1732')});})[_0x5a8861('0x253d')](function(_0x302531){var _0x397a15=_0x5a8861;_0x19fdeb[_0x397a15('0x187f')]({'title':_0x302531[_0x397a15('0x2fa')]?_0x397a15('0x16c2')+_0x302531['status']+_0x397a15('0x169e')+_0x302531['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x302531[_0x397a15('0x10fd')]?JSON['stringify'](_0x302531[_0x397a15('0x10fd')]):_0x302531[_0x397a15('0x684')]()});});}function _0x5a60ef(_0x45c1f3,_0x585870){var _0x4671b2=_0x28de11,_0x336def=_0x5981ae[_0x4671b2('0x281e')]()[_0x4671b2('0x110a')](_0x4671b2('0x16b5'))[_0x4671b2('0x102e')]('Subject'+'\x20will\x20be\x20deleted.')[_0x4671b2('0x5b5')](_0x4671b2('0x25d5'))[_0x4671b2('0x116d')](_0x45c1f3)['ok']('OK')[_0x4671b2('0x2030')](_0x4671b2('0x2410'));_0x5981ae['show'](_0x336def)[_0x4671b2('0xaa5')](function(){_0x1533ce(_0x585870);},function(){var _0x340580=_0x4671b2;console['log'](_0x340580('0x2410'));});}function _0x252988(_0x1b51ca){var _0x35605b=_0x28de11,_0x355128=_0x5981ae[_0x35605b('0x281e')]()[_0x35605b('0x110a')](_0x35605b('0x6f0'))[_0x35605b('0x102e')](_0x35605b('0x389')+_0x55e8b3['selectedSubjects'][_0x35605b('0x2587')]+_0x35605b('0x1443')+_0x35605b('0x210d'))[_0x35605b('0x5b5')](_0x35605b('0xfcd'))['targetEvent'](_0x1b51ca)['ok']('OK')[_0x35605b('0x2030')]('CANCEL');_0x5981ae['show'](_0x355128)['then'](function(){var _0x143c1f=_0x35605b;_0x55e8b3['selectedSubjects'][_0x143c1f('0x15b5')](function(_0x23929f){_0x1533ce(_0x23929f);}),_0x55e8b3[_0x143c1f('0xf7d')]=[];});}_0x55e8b3[_0x28de11('0x1b51')]=[],_0x55e8b3[_0x28de11('0x19db')]=_0x12e4c2,_0x55e8b3[_0x28de11('0x12af')]=_0x1dda09,_0x55e8b3['deleteSelectedDescriptions']=_0xce19b5;function _0x12e4c2(_0x5eb3c0,_0x206875){var _0x199ea9=_0x28de11;_0x5981ae[_0x199ea9('0x1e6d')]({'controller':_0x199ea9('0x194e'),'controllerAs':'vm','templateUrl':_0x4ee6ee,'parent':angular['element'](_0x2971e5['body']),'targetEvent':_0x5eb3c0,'clickOutsideToClose':!![],'locals':{'type':_0x199ea9('0x23d0'),'item':_0x206875,'items':_0x55e8b3[_0x199ea9('0x27b9')],'configuration':_0x55e8b3[_0x199ea9('0x24f0')],'account':_0x55e8b3[_0x199ea9('0x1eec')],'license':null,'setting':null,'crudPermissions':_0x55e8b3[_0x199ea9('0xada')]}});}function _0x56c650(_0x180481){var _0x5c15fb=_0x28de11;_0x1b8d09[_0x5c15fb('0x21d4')][_0x5c15fb('0x926')]({'id':_0x180481['id']})[_0x5c15fb('0x1dc2')]['then'](function(){var _0x49ee25=_0x5c15fb;_0x51538b()[_0x49ee25('0xf6d')](_0x55e8b3[_0x49ee25('0x27b9')],{'id':_0x180481['id']}),_0x19fdeb[_0x49ee25('0xe10')]({'title':_0x49ee25('0x1d35'),'msg':_0x49ee25('0x266b')});})[_0x5c15fb('0x253d')](function(_0x153220){var _0x295daa=_0x5c15fb;_0x19fdeb[_0x295daa('0x187f')]({'title':_0x153220[_0x295daa('0x2fa')]?_0x295daa('0x16c2')+_0x153220['status']+_0x295daa('0x169e')+_0x153220[_0x295daa('0x24df')]:_0x295daa('0xdd7'),'msg':_0x153220['data']?JSON[_0x295daa('0xa48')](_0x153220[_0x295daa('0x10fd')]):_0x153220[_0x295daa('0x684')]()});});}function _0x1dda09(_0x19aa8c,_0x520c71){var _0x55c6a9=_0x28de11,_0x29c9c4=_0x5981ae[_0x55c6a9('0x281e')]()[_0x55c6a9('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0x55c6a9('0x102e')](_0x55c6a9('0x2534')+_0x55c6a9('0x210d'))[_0x55c6a9('0x5b5')](_0x55c6a9('0x8b2'))[_0x55c6a9('0x116d')](_0x19aa8c)['ok']('OK')[_0x55c6a9('0x2030')](_0x55c6a9('0x2410'));_0x5981ae['show'](_0x29c9c4)[_0x55c6a9('0xaa5')](function(){_0x56c650(_0x520c71);},function(){var _0x372eff=_0x55c6a9;console[_0x372eff('0x18d5')](_0x372eff('0x2410'));});}function _0xce19b5(_0x39d31e){var _0x598785=_0x28de11,_0x33fbb6=_0x5981ae[_0x598785('0x281e')]()[_0x598785('0x110a')](_0x598785('0x12ce'))[_0x598785('0x102e')](_0x598785('0x389')+_0x55e8b3['selectedDescriptions'][_0x598785('0x2587')]+_0x598785('0x1443')+_0x598785('0x210d'))[_0x598785('0x5b5')]('delete\x20descriptions')['targetEvent'](_0x39d31e)['ok']('OK')['cancel']('CANCEL');_0x5981ae[_0x598785('0x1e6d')](_0x33fbb6)['then'](function(){var _0xa9548c=_0x598785;_0x55e8b3[_0xa9548c('0x1b51')][_0xa9548c('0x15b5')](function(_0x2052e1){_0x56c650(_0x2052e1);}),_0x55e8b3[_0xa9548c('0x1b51')]=[];});}_0x55e8b3[_0x28de11('0x490')]=[],_0x55e8b3[_0x28de11('0x1572')]=_0x33225a,_0x55e8b3['deleteFieldConfirm']=_0xa65926,_0x55e8b3[_0x28de11('0x261a')]=_0x57301f;function _0x33225a(_0x481214,_0x2f1f3f){var _0x1509d3=_0x28de11;_0x5981ae[_0x1509d3('0x1e6d')]({'controller':_0x1509d3('0x194e'),'controllerAs':'vm','templateUrl':_0x4ee6ee,'parent':angular['element'](_0x2971e5[_0x1509d3('0x54c')]),'targetEvent':_0x481214,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x2f1f3f,'items':_0x55e8b3['fields'],'configuration':_0x55e8b3[_0x1509d3('0x24f0')],'account':_0x55e8b3[_0x1509d3('0x1eec')],'license':null,'setting':null,'crudPermissions':_0x55e8b3['crudPermissions']}});}function _0x379ce0(_0x4eeaa4){var _0x33a3a3=_0x28de11;_0x1b8d09[_0x33a3a3('0x21d4')][_0x33a3a3('0x926')]({'id':_0x4eeaa4['id']})[_0x33a3a3('0x1dc2')][_0x33a3a3('0xaa5')](function(){var _0x418fcc=_0x33a3a3;_0x51538b()[_0x418fcc('0xf6d')](_0x55e8b3['fields'],{'id':_0x4eeaa4['id']}),_0x19fdeb[_0x418fcc('0xe10')]({'title':_0x418fcc('0x25e1'),'msg':_0x418fcc('0xb78')});})[_0x33a3a3('0x253d')](function(_0x9c68c2){var _0x2e2756=_0x33a3a3;_0x19fdeb[_0x2e2756('0x187f')]({'title':_0x9c68c2[_0x2e2756('0x2fa')]?_0x2e2756('0x16c2')+_0x9c68c2[_0x2e2756('0x2fa')]+'\x20-\x20'+_0x9c68c2[_0x2e2756('0x24df')]:_0x2e2756('0xdd7'),'msg':_0x9c68c2[_0x2e2756('0x10fd')]?JSON[_0x2e2756('0xa48')](_0x9c68c2[_0x2e2756('0x10fd')]):_0x9c68c2[_0x2e2756('0x684')]()});});}function _0xa65926(_0x512fce,_0x46396c){var _0x4f0c6d=_0x28de11,_0x449a7b=_0x5981ae[_0x4f0c6d('0x281e')]()[_0x4f0c6d('0x110a')](_0x4f0c6d('0x27fc'))['htmlContent'](_0x4f0c6d('0x455')+_0x4f0c6d('0x210d'))[_0x4f0c6d('0x5b5')](_0x4f0c6d('0x1286'))[_0x4f0c6d('0x116d')](_0x512fce)['ok']('OK')[_0x4f0c6d('0x2030')](_0x4f0c6d('0x2410'));_0x5981ae['show'](_0x449a7b)['then'](function(){_0x379ce0(_0x46396c);},function(){var _0x157d58=_0x4f0c6d;console[_0x157d58('0x18d5')](_0x157d58('0x2410'));});}function _0x57301f(_0x1e76cd){var _0x3b7b0e=_0x28de11,_0x5d45dc=_0x5981ae[_0x3b7b0e('0x281e')]()[_0x3b7b0e('0x110a')](_0x3b7b0e('0xf28'))[_0x3b7b0e('0x102e')](_0x3b7b0e('0x389')+_0x55e8b3[_0x3b7b0e('0x490')][_0x3b7b0e('0x2587')]+_0x3b7b0e('0x1443')+'\x20will\x20be\x20deleted.')[_0x3b7b0e('0x5b5')](_0x3b7b0e('0xefc'))['targetEvent'](_0x1e76cd)['ok']('OK')['cancel'](_0x3b7b0e('0x2410'));_0x5981ae[_0x3b7b0e('0x1e6d')](_0x5d45dc)[_0x3b7b0e('0xaa5')](function(){var _0x49cd7d=_0x3b7b0e;_0x55e8b3['selectedFields'][_0x49cd7d('0x15b5')](function(_0x172e72){_0x379ce0(_0x172e72);}),_0x55e8b3['selectedFields']=[];});}}const _0x433462=_0x1c6717;_0x114463[_0x1a8446('0x1e33')]=['$scope','$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty',_0x1a8446('0x555'),_0x1a8446('0x24f0'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x114463(_0x5e9502,_0x2adff0,_0x11e214,_0x395244,_0x3f1d84,_0x7804a1,_0xba3646,_0x5349ae,_0x47909c,_0x45da39,_0x310d2d,_0x34e4a6,_0x3ccff0,_0xf1b495){var _0x2d2646=_0x1a8446,_0x1fed0f=this;_0x1fed0f['currentUser']=_0x310d2d[_0x2d2646('0xacc')](),_0x1fed0f[_0x2d2646('0x4c6')]=[],_0x1fed0f[_0x2d2646('0x143f')]=_0x3ccff0,_0x1fed0f[_0x2d2646('0x1202')]=_0x34e4a6,_0x1fed0f[_0x2d2646('0xada')]=_0xf1b495,_0x1fed0f[_0x2d2646('0x9f0')]={},_0x1fed0f['passwordPattern']=_0x1fed0f[_0x2d2646('0x143f')]&&_0x1fed0f[_0x2d2646('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1fed0f[_0x2d2646('0x110a')]=_0x2d2646('0x2044'),_0x1fed0f[_0x2d2646('0x24f0')]=angular[_0x2d2646('0x20a')](_0x47909c),_0x1fed0f[_0x2d2646('0x555')]=_0x5349ae,_0x1fed0f[_0x2d2646('0xd7d')]=![];!_0x1fed0f[_0x2d2646('0x24f0')]&&(_0x1fed0f[_0x2d2646('0x24f0')]={'channel':_0x2d2646('0x1b9'),'type':'inbound'},_0x1fed0f['title']=_0x2d2646('0x2794'),_0x1fed0f[_0x2d2646('0xd7d')]=!![]);_0x1fed0f['addNewFreshdeskConfiguration']=_0x22d4ce,_0x1fed0f['saveFreshdeskConfiguration']=_0x5a9fe3,_0x1fed0f[_0x2d2646('0x55d')]=_0x190931,_0x1fed0f[_0x2d2646('0xc09')]=_0x58662e,_0x1fed0f[_0x2d2646('0x2023')]=_0x536360;function _0x22d4ce(){var _0x22a927=_0x2d2646;_0x1fed0f[_0x22a927('0x4c6')]=[],_0x45da39[_0x22a927('0x1ab2')]['addConfiguration']({'id':_0x2adff0[_0x22a927('0x25cf')]['id']},_0x1fed0f['freshdeskConfiguration'])['$promise']['then'](function(_0xf10199){var _0x50961b=_0x22a927;_0x1fed0f[_0x50961b('0x555')][_0x50961b('0x6ee')](_0xf10199['toJSON']()),_0xba3646['success']({'title':_0x50961b('0x19e1'),'msg':_0x1fed0f['freshdeskConfiguration'][_0x50961b('0x25d6')]?_0x1fed0f['freshdeskConfiguration'][_0x50961b('0x25d6')]+_0x50961b('0xdca'):''}),_0x536360(_0xf10199);})['catch'](function(_0x14dd22){var _0x1ed2e5=_0x22a927;if(_0x14dd22[_0x1ed2e5('0x10fd')]&&_0x14dd22[_0x1ed2e5('0x10fd')]['errors']&&_0x14dd22[_0x1ed2e5('0x10fd')][_0x1ed2e5('0x4c6')]['length']){_0x1fed0f[_0x1ed2e5('0x4c6')]=_0x14dd22[_0x1ed2e5('0x10fd')][_0x1ed2e5('0x4c6')]||[{'message':_0x14dd22['toString'](),'type':_0x1ed2e5('0x22c4')}];for(var _0x429086=0x0;_0x429086<_0x14dd22[_0x1ed2e5('0x10fd')][_0x1ed2e5('0x4c6')]['length'];_0x429086+=0x1){_0xba3646[_0x1ed2e5('0x187f')]({'title':_0x14dd22[_0x1ed2e5('0x10fd')][_0x1ed2e5('0x4c6')][_0x429086][_0x1ed2e5('0x6c8')],'msg':_0x14dd22[_0x1ed2e5('0x10fd')][_0x1ed2e5('0x4c6')][_0x429086][_0x1ed2e5('0x1402')]});}}else _0xba3646[_0x1ed2e5('0x187f')]({'title':_0x14dd22[_0x1ed2e5('0x2fa')]?_0x1ed2e5('0x16c2')+_0x14dd22[_0x1ed2e5('0x2fa')]+'\x20-\x20'+_0x14dd22['statusText']:_0x1ed2e5('0x22c4'),'msg':_0x14dd22[_0x1ed2e5('0x10fd')]?JSON[_0x1ed2e5('0xa48')](_0x14dd22[_0x1ed2e5('0x10fd')][_0x1ed2e5('0x1402')]):_0x14dd22['toString']()});});}function _0x5a9fe3(){var _0x1cf36a=_0x2d2646;_0x1fed0f[_0x1cf36a('0x4c6')]=[],_0x45da39[_0x1cf36a('0x1088')][_0x1cf36a('0x264e')]({'id':_0x1fed0f[_0x1cf36a('0x24f0')]['id']},_0x1fed0f[_0x1cf36a('0x24f0')])['$promise'][_0x1cf36a('0xaa5')](function(_0xf3e43b){var _0x3ed5f6=_0x1cf36a,_0x41e560=_0x51538b()['find'](_0x1fed0f[_0x3ed5f6('0x555')],{'id':_0xf3e43b['id']});_0x41e560&&_0x51538b()[_0x3ed5f6('0x283c')](_0x41e560,_0x51538b()[_0x3ed5f6('0x104e')](_0xf3e43b[_0x3ed5f6('0x256a')](),_0x51538b()[_0x3ed5f6('0x9f2')](_0x41e560))),_0xba3646[_0x3ed5f6('0xe10')]({'title':_0x3ed5f6('0x11f8'),'msg':_0x1fed0f['freshdeskConfiguration'][_0x3ed5f6('0x25d6')]?_0x1fed0f['freshdeskConfiguration'][_0x3ed5f6('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x536360(_0xf3e43b);})[_0x1cf36a('0x253d')](function(_0x423caf){var _0x3f686a=_0x1cf36a;if(_0x423caf[_0x3f686a('0x10fd')]&&_0x423caf[_0x3f686a('0x10fd')]['errors']&&_0x423caf[_0x3f686a('0x10fd')][_0x3f686a('0x4c6')][_0x3f686a('0x2587')]){_0x1fed0f[_0x3f686a('0x4c6')]=_0x423caf[_0x3f686a('0x10fd')]['errors']||[{'message':_0x423caf[_0x3f686a('0x684')](),'type':_0x3f686a('0xed')}];for(var _0x4a9e4d=0x0;_0x4a9e4d<_0x423caf[_0x3f686a('0x10fd')][_0x3f686a('0x4c6')][_0x3f686a('0x2587')];_0x4a9e4d++){_0xba3646['error']({'title':_0x423caf['data'][_0x3f686a('0x4c6')][_0x4a9e4d]['type'],'msg':_0x423caf[_0x3f686a('0x10fd')]['errors'][_0x4a9e4d][_0x3f686a('0x1402')]});}}else _0xba3646[_0x3f686a('0x187f')]({'title':_0x423caf[_0x3f686a('0x2fa')]?_0x3f686a('0x16c2')+_0x423caf[_0x3f686a('0x2fa')]+_0x3f686a('0x169e')+_0x423caf[_0x3f686a('0x24df')]:_0x3f686a('0xed'),'msg':_0x423caf[_0x3f686a('0x10fd')]?JSON[_0x3f686a('0xa48')](_0x423caf[_0x3f686a('0x10fd')]['message']):_0x423caf['toString']()});});}function _0x190931(_0x2405a6){var _0x178bca=_0x2d2646;_0x1fed0f['errors']=[];var _0xd76c8a=_0x395244['confirm']()[_0x178bca('0x110a')](_0x178bca('0x12a3'))[_0x178bca('0x15af')]('The\x20freshdeskConfiguration\x20will\x20be\x20deleted.')['ariaLabel'](_0x178bca('0x310'))['ok'](_0x178bca('0x1e76'))[_0x178bca('0x2030')](_0x178bca('0x9c6'))[_0x178bca('0x116d')](_0x2405a6);_0x395244[_0x178bca('0x1e6d')](_0xd76c8a)['then'](function(){var _0x27366a=_0x178bca;_0x45da39[_0x27366a('0x1088')][_0x27366a('0x926')]({'id':_0x1fed0f[_0x27366a('0x24f0')]['id']})['$promise'][_0x27366a('0xaa5')](function(){var _0x107d0e=_0x27366a;_0x51538b()['remove'](_0x1fed0f[_0x107d0e('0x555')],{'id':_0x1fed0f[_0x107d0e('0x24f0')]['id']}),_0xba3646[_0x107d0e('0xe10')]({'title':_0x107d0e('0x1c19'),'msg':(_0x1fed0f[_0x107d0e('0x24f0')][_0x107d0e('0x25d6')]||'freshdeskConfiguration')+_0x107d0e('0xcd9')}),_0x536360(_0x1fed0f['freshdeskConfiguration']);})[_0x27366a('0x253d')](function(_0x59561a){var _0x58588b=_0x27366a;if(_0x59561a['data']&&_0x59561a[_0x58588b('0x10fd')][_0x58588b('0x4c6')]&&_0x59561a[_0x58588b('0x10fd')]['errors'][_0x58588b('0x2587')]){_0x1fed0f[_0x58588b('0x4c6')]=_0x59561a['data']['errors']||[{'message':_0x59561a[_0x58588b('0x684')](),'type':_0x58588b('0xeb9')}];for(var _0x57d6ed=0x0;_0x57d6ed<_0x59561a[_0x58588b('0x10fd')][_0x58588b('0x4c6')][_0x58588b('0x2587')];_0x57d6ed++){_0xba3646[_0x58588b('0x187f')]({'title':_0x59561a['data'][_0x58588b('0x4c6')][_0x57d6ed][_0x58588b('0x6c8')],'msg':_0x59561a[_0x58588b('0x10fd')][_0x58588b('0x4c6')][_0x57d6ed][_0x58588b('0x1402')]});}}else _0xba3646[_0x58588b('0x187f')]({'title':_0x59561a[_0x58588b('0x2fa')]?_0x58588b('0x16c2')+_0x59561a[_0x58588b('0x2fa')]+'\x20-\x20'+_0x59561a[_0x58588b('0x24df')]:_0x58588b('0xeb9'),'msg':_0x59561a[_0x58588b('0x10fd')]?JSON[_0x58588b('0xa48')](_0x59561a[_0x58588b('0x10fd')][_0x58588b('0x1402')]):_0x59561a[_0x58588b('0x1402')]||_0x59561a[_0x58588b('0x684')]()});});},function(){});}function _0x58662e(_0x456a98){return _0x456a98===null?undefined:new Date(_0x456a98);}function _0x536360(_0xbdb6d8){_0x395244['hide'](_0xbdb6d8);}}const _0x2a591d=_0x114463;_0x1bf33b['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x72'),_0x1a8446('0x1a30'),_0x1a8446('0x1a38'),_0x1a8446('0x5b'),'type','api','Auth',_0x1a8446('0xada')];function _0x1bf33b(_0x1723ce,_0x1592c4,_0x519a12,_0x3a6f38,_0x1cde55,_0x3781c5,_0x290d8f,_0x4ac581,_0x2f4837,_0x5842fe,_0x42ed9a,_0x244890,_0x18fe6d){var _0x332389=_0x1a8446,_0x3adb49=this;_0x3adb49[_0x332389('0x7fc')]=_0x244890[_0x332389('0xacc')](),_0x3adb49['errors']=[],_0x3adb49[_0x332389('0x110a')]=_0x332389('0x66b')+_0x51538b()[_0x332389('0x1818')](_0x5842fe),_0x3adb49['item']=angular[_0x332389('0x20a')](_0x4ac581),_0x3adb49[_0x332389('0x1a30')]=_0x290d8f,_0x3adb49[_0x332389('0x6c8')]=_0x5842fe,_0x3adb49[_0x332389('0xada')]=_0x18fe6d,_0x3adb49['newItem']=![];!_0x3adb49[_0x332389('0x1a38')]&&(_0x3adb49[_0x332389('0x1a38')]={'type':_0x332389('0x199')},_0x3adb49['item'][_0x51538b()[_0x332389('0x1b56')](_0x5842fe)+'Id']=_0x3781c5['id'],_0x3adb49[_0x332389('0x110a')]=_0x332389('0x1502')+_0x51538b()['toUpper'](_0x5842fe),_0x3adb49['newItem']=!![]);_0x3adb49[_0x332389('0x13fd')]=_0x5709fd,_0x3adb49[_0x332389('0x24c7')]=_0x575df5,_0x3adb49[_0x332389('0x1994')]=_0x4afbdc,_0x3adb49['getSelectedVariable']=_0x2c8c28,_0x3adb49[_0x332389('0x2023')]=_0x3f44bb,_0x42ed9a[_0x332389('0x14e7')][_0x332389('0x2122')]({'nolimit':!![]})['$promise'][_0x332389('0xaa5')](function(_0x556ad9){var _0x2f1afa=_0x332389;return _0x3adb49[_0x2f1afa('0x147e')]=_0x556ad9[_0x2f1afa('0x580')]?_0x556ad9[_0x2f1afa('0x580')]:[],_0x42ed9a[_0x2f1afa('0x188e')][_0x2f1afa('0x3e7')]()['$promise'];})[_0x332389('0xaa5')](function(_0x2e9433){var _0x3ecdcf=_0x332389;return _0x3adb49[_0x3ecdcf('0x27a9')]=_0x51538b()[_0x3ecdcf('0x1485')](_0x51538b()[_0x3ecdcf('0x9f2')](_0x2e9433),['$promise',_0x3ecdcf('0xd92'),_0x3ecdcf('0x24a1'),_0x3ecdcf('0x19f3'),_0x3ecdcf('0x129a')]),_0x3adb49[_0x3ecdcf('0x27a9')][_0x3ecdcf('0x1599')](_0x3ecdcf('0xef3')),_0x42ed9a['voiceDialReport'][_0x3ecdcf('0x3e7')]()[_0x3ecdcf('0x1dc2')];})['then'](function(_0xda0bec){var _0x5af6d5=_0x332389;_0x3adb49['voiceDialReportColumns']=_0x51538b()[_0x5af6d5('0x1485')](_0x51538b()['keys'](_0xda0bec),[_0x5af6d5('0x1dc2'),_0x5af6d5('0xd92'),_0x5af6d5('0x24a1'),_0x5af6d5('0x19f3'),'sourceid']),_0x3adb49[_0x5af6d5('0xc69')]['push'](_0x5af6d5('0xef3'));})[_0x332389('0x253d')](function(_0x21156d){var _0x367585=_0x332389;_0x1cde55[_0x367585('0x187f')]({'title':_0x21156d[_0x367585('0x2fa')]?_0x367585('0x16c2')+_0x21156d[_0x367585('0x2fa')]+'\x20-\x20'+_0x21156d['statusText']:_0x367585('0x2652'),'msg':_0x21156d[_0x367585('0x10fd')]?JSON['stringify'](_0x21156d[_0x367585('0x10fd')]):_0x21156d[_0x367585('0x684')]()});}),_0x42ed9a['intFreshdeskAccount'][_0x332389('0x1450')]({'id':_0x2f4837['id'],'ticketType':_0x3781c5[_0x332389('0x1146')]?_0x3781c5[_0x332389('0x1146')]:undefined})[_0x332389('0x1dc2')][_0x332389('0xaa5')](function(_0x4b8263){var _0x16cd90=_0x332389;_0x3adb49[_0x16cd90('0x722')]=!![],_0x3adb49['fields']=_0x4b8263[_0x16cd90('0x580')]?_0x4b8263[_0x16cd90('0x580')]:[],_0x3adb49[_0x16cd90('0x1a38')][_0x16cd90('0x1dfc')]&&(_0x3adb49[_0x16cd90('0x6fc')]=_0x51538b()[_0x16cd90('0xe9e')](_0x3adb49[_0x16cd90('0x13a')],{'id':_0x3adb49[_0x16cd90('0x1a38')][_0x16cd90('0x1dfc')]}));})[_0x332389('0x253d')](function(_0x1a27c0){var _0x1020d6=_0x332389;_0x3adb49[_0x1020d6('0x722')]=![],console[_0x1020d6('0x187f')](_0x1a27c0);});function _0x5709fd(){var _0x17eb84=_0x332389;_0x3adb49[_0x17eb84('0x4c6')]=[],_0x3adb49[_0x17eb84('0x6fc')]&&(_0x3adb49[_0x17eb84('0x1a38')][_0x17eb84('0x1dfc')]=_0x3adb49[_0x17eb84('0x6fc')]['id'],_0x3adb49['item'][_0x17eb84('0x1662')]=_0x3adb49[_0x17eb84('0x6fc')][_0x17eb84('0x25d6')],_0x3adb49[_0x17eb84('0x1a38')]['customField']=_0x3adb49[_0x17eb84('0x6fc')]['custom']),_0x42ed9a['intFreshdeskField'][_0x17eb84('0x242b')](_0x3adb49['item'])['$promise'][_0x17eb84('0xaa5')](function(_0x36af0d){var _0x106b0b=_0x17eb84;_0x3adb49['items']['unshift'](_0x36af0d),_0x1cde55['success']({'title':_0x51538b()['capitalize'](_0x5842fe)+_0x106b0b('0xbf5'),'msg':_0x51538b()['capitalize'](_0x5842fe)+_0x106b0b('0xdca')}),_0x3f44bb();})['catch'](function(_0x22bfa6){var _0x46c4c8=_0x17eb84;console['error'](_0x22bfa6),_0x3adb49[_0x46c4c8('0x4c6')]=_0x22bfa6[_0x46c4c8('0x10fd')]['errors']||[{'message':_0x22bfa6[_0x46c4c8('0x684')](),'type':_0x46c4c8('0x23f')}];});}function _0x575df5(){var _0xa58d67=_0x332389;_0x3adb49['errors']=[],_0x3adb49[_0xa58d67('0x6fc')]&&(_0x3adb49['item'][_0xa58d67('0x1dfc')]=_0x3adb49[_0xa58d67('0x6fc')]['id'],_0x3adb49[_0xa58d67('0x1a38')][_0xa58d67('0x1662')]=_0x3adb49[_0xa58d67('0x6fc')][_0xa58d67('0x25d6')],_0x3adb49[_0xa58d67('0x1a38')][_0xa58d67('0x6fc')]=_0x3adb49[_0xa58d67('0x6fc')][_0xa58d67('0x113b')]),_0x42ed9a['intFreshdeskField']['update']({'id':_0x3adb49[_0xa58d67('0x1a38')]['id']},_0x3adb49[_0xa58d67('0x1a38')])[_0xa58d67('0x1dc2')][_0xa58d67('0xaa5')](function(_0x2aa215){var _0x1396c9=_0xa58d67,_0x117415=_0x51538b()[_0x1396c9('0xe9e')](_0x3adb49[_0x1396c9('0x1a30')],{'id':_0x2aa215['id']});_0x117415&&_0x51538b()[_0x1396c9('0x283c')](_0x117415,_0x2aa215),_0x1cde55[_0x1396c9('0xe10')]({'title':_0x51538b()[_0x1396c9('0x1b56')](_0x5842fe)+_0x1396c9('0x1c44'),'msg':_0x51538b()[_0x1396c9('0x1b56')](_0x5842fe)+_0x1396c9('0x20bf')}),_0x3f44bb();})['catch'](function(_0x446aa1){var _0x565987=_0xa58d67;console['error'](_0x446aa1),_0x3adb49[_0x565987('0x4c6')]=_0x446aa1[_0x565987('0x10fd')][_0x565987('0x4c6')]||[{'message':_0x446aa1[_0x565987('0x684')](),'type':'api.intItem.update'}];});}function _0x4afbdc(_0xa8702f){var _0x3225f6=_0x332389;_0x3adb49[_0x3225f6('0x4c6')]=[];var _0x49fd0d=_0x3a6f38[_0x3225f6('0x281e')]()[_0x3225f6('0x110a')](_0x3225f6('0x12a3'))[_0x3225f6('0x15af')](_0x3225f6('0x318')+_0x5842fe+_0x3225f6('0x210d'))[_0x3225f6('0x5b5')](_0x3225f6('0xf00')+_0x51538b()[_0x3225f6('0x1b56')](_0x5842fe))['ok'](_0x3225f6('0x1e76'))[_0x3225f6('0x2030')](_0x3225f6('0x9c6'))['targetEvent'](_0xa8702f);_0x3a6f38[_0x3225f6('0x1e6d')](_0x49fd0d)[_0x3225f6('0xaa5')](function(){var _0x411166=_0x3225f6;_0x42ed9a[_0x411166('0x21d4')][_0x411166('0x926')]({'id':_0x3adb49[_0x411166('0x1a38')]['id']})['$promise']['then'](function(){var _0x102c41=_0x411166;_0x51538b()[_0x102c41('0xf6d')](_0x3adb49[_0x102c41('0x1a30')],{'id':_0x3adb49[_0x102c41('0x1a38')]['id']}),_0x1cde55[_0x102c41('0xe10')]({'title':_0x51538b()[_0x102c41('0x1b56')](_0x5842fe)+'\x20properly\x20deleted!','msg':_0x51538b()[_0x102c41('0x1b56')](_0x5842fe)+_0x102c41('0xcd9')}),_0x3f44bb();})[_0x411166('0x253d')](function(_0x298391){var _0x3fd00a=_0x411166;console[_0x3fd00a('0x187f')](_0x298391),_0x3adb49['errors']=_0x298391[_0x3fd00a('0x10fd')][_0x3fd00a('0x4c6')]||[{'message':_0x298391[_0x3fd00a('0x684')](),'type':'api.item.delete'}];});},function(){});}function _0x2c8c28(){var _0x576ee0=_0x332389;return _0x3adb49[_0x576ee0('0x1a38')][_0x576ee0('0x1e29')]!==undefined?_0x3adb49[_0x576ee0('0x1a38')]['variableName']:_0x576ee0('0x2444');}function _0x3f44bb(){_0x3a6f38['hide']();}}const _0x1c33dc=_0x1bf33b;_0x2c0123[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),'license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x1eec'),_0x1a8446('0x1a50')];function _0x2c0123(_0x175c8e,_0x5cfd98,_0x2d253a,_0x12f81e,_0x3cef53,_0x108864,_0x24166a,_0x39bd91,_0xa4d42d,_0x4bba3b,_0x31a393,_0x1cc6bf){var _0x2f4437=_0x1a8446,_0x55b5b7=this;_0x55b5b7[_0x2f4437('0x7fc')]=_0x4bba3b['getCurrentUser'](),_0x55b5b7[_0x2f4437('0x1202')]=_0x108864,_0x55b5b7[_0x2f4437('0x143f')]=_0x24166a,_0x55b5b7[_0x2f4437('0x1d53')]=_0x55b5b7[_0x2f4437('0x143f')][_0x2f4437('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x55b5b7[_0x2f4437('0x18cc')]=_0x5cfd98['protocol']()+_0x2f4437('0x356')+_0x5cfd98['host'](),_0x55b5b7[_0x2f4437('0x1eec')]=_0x31a393||_0x175c8e[_0x2f4437('0x25cf')][_0x2f4437('0x1eec')]||{},_0x55b5b7[_0x2f4437('0x1a50')]=_0x1cc6bf&&_0x1cc6bf[_0x2f4437('0xd15')]==0x1?_0x1cc6bf['rows'][0x0]:null,_0x55b5b7[_0x2f4437('0xada')]=_0x4bba3b[_0x2f4437('0xffd')](_0x55b5b7[_0x2f4437('0x1a50')]?_0x55b5b7[_0x2f4437('0x1a50')]['crudPermissions']:null),_0x55b5b7[_0x2f4437('0x9f0')]={},_0x55b5b7[_0x2f4437('0xe5c')]=_0x175c8e[_0x2f4437('0x25cf')]['tab']||0x0,_0x55b5b7[_0x2f4437('0xc10')]=_0xa4d42d[_0x2f4437('0x3a1')],_0x55b5b7[_0x2f4437('0x3ce')]=_0x95ec58,_0x55b5b7[_0x2f4437('0x182')]=_0x140294;function _0x95ec58(){var _0x1f6ece=_0x2f4437;_0x175c8e['go'](_0x1f6ece('0x1ba3'),{},{'reload':_0x1f6ece('0x1ba3')});}function _0x140294(){var _0x1de734=_0x2f4437;_0x39bd91[_0x1de734('0x1ab2')][_0x1de734('0x264e')]({'id':_0x55b5b7[_0x1de734('0x1eec')]['id']},_0x55b5b7[_0x1de734('0x1eec')])[_0x1de734('0x1dc2')][_0x1de734('0xaa5')](function(){var _0x52fe11=_0x1de734;_0xa4d42d['success']({'title':_0x52fe11('0x1cc'),'msg':_0x55b5b7['freshdeskAccount'][_0x52fe11('0x25d6')]?_0x55b5b7[_0x52fe11('0x1eec')][_0x52fe11('0x25d6')]+_0x52fe11('0x1734'):''});})[_0x1de734('0x253d')](function(_0x3f3b9a){var _0x351884=_0x1de734;_0xa4d42d[_0x351884('0x187f')]({'title':_0x3f3b9a[_0x351884('0x2fa')]?'API:'+_0x3f3b9a[_0x351884('0x2fa')]+_0x351884('0x169e')+_0x3f3b9a[_0x351884('0x24df')]:_0x351884('0xd0b'),'msg':_0x3f3b9a[_0x351884('0x10fd')]?JSON[_0x351884('0xa48')](_0x3f3b9a[_0x351884('0x10fd')]):_0x3f3b9a[_0x351884('0x684')]()});});}}const _0x3dde66=_0x2c0123,_0x2767a4=_0x4fb511['p']+_0x1a8446('0x1afe');_0x35f891[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document','$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x79e'),'userProfile','userProfileSection','api','msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x35f891(_0x11d81a,_0x126bdc,_0x33743f,_0x433cf2,_0x57ee0c,_0x32ee7b,_0x161f1b,_0x5c3542,_0x558a0a,_0x36b5fa,_0x45e1ee,_0x4c35af,_0xee3b0b,_0x9a51d9,_0x56bf23,_0x261911,_0x2f8f92){var _0x5cf0aa=_0x1a8446,_0x548972=this;_0x548972[_0x5cf0aa('0x1202')]=_0x261911,_0x548972[_0x5cf0aa('0x143f')]=_0x2f8f92,_0x548972['currentUser']=_0x56bf23[_0x5cf0aa('0xacc')](),_0x548972[_0x5cf0aa('0x79e')]=_0x558a0a||{'count':0x0,'rows':[]},_0x548972['userProfile']=_0x36b5fa,_0x548972[_0x5cf0aa('0x1a50')]=_0x45e1ee&&_0x45e1ee['count']==0x1?_0x45e1ee[_0x5cf0aa('0x580')][0x0]:null,_0x548972['crudPermissions']=_0x56bf23['parseCrudPermissions'](_0x548972[_0x5cf0aa('0x1a50')]?_0x548972[_0x5cf0aa('0x1a50')]['crudPermissions']:null),_0x548972[_0x5cf0aa('0x12b6')]=_0x5cf0aa('0x79e'),_0x548972[_0x5cf0aa('0x164')]='',_0x548972[_0x5cf0aa('0x8cc')]=null,_0x548972['selectedFreshdeskAccounts']=[],_0x548972[_0x5cf0aa('0x582')]={'fields':_0x5cf0aa('0x520'),'limit':0xa,'page':0x1},_0x548972[_0x5cf0aa('0x1927')]=_0x34d825,_0x548972['testtestintegrationaccount']=_0x46f881,_0x548972[_0x5cf0aa('0x271')]=_0x157521,_0x548972[_0x5cf0aa('0xe10')]=_0x3f507b,_0x548972['getFreshdeskAccounts']=_0x3047ef,_0x548972['createOrEditFreshdeskAccount']=_0x48546c,_0x548972[_0x5cf0aa('0x15c9')]=_0x58dfde,_0x548972[_0x5cf0aa('0x1919')]=_0x912312,_0x548972[_0x5cf0aa('0x910')]=_0x373daf,_0x548972[_0x5cf0aa('0x188a')]=_0x310222,_0x548972[_0x5cf0aa('0x13b3')]=_0x3b2280;function _0x34d825(_0x578528){var _0x2982d8=_0x5cf0aa;_0x33743f['go'](_0x2982d8('0x134f'),{'id':_0x578528['id'],'freshdeskAccount':_0x578528,'crudPermissions':_0x548972[_0x2982d8('0xada')]});}function _0x46f881(_0x26cee8){var _0x5e75dc=_0x5cf0aa;return _0x4c35af[_0x5e75dc('0x1ab2')][_0x5e75dc('0x1450')]({'id':_0x26cee8['id'],'test':!![]})[_0x5e75dc('0x1dc2')][_0x5e75dc('0xaa5')](function(){var _0x241edc=_0x5e75dc;_0x9a51d9[_0x241edc('0xe10')]({'title':_0x241edc('0x126'),'msg':'Connection\x20succeded!'});})[_0x5e75dc('0x253d')](function(_0x2d771){var _0x2fa737=_0x5e75dc;_0x9a51d9[_0x2fa737('0x187f')]({'title':'FreshdeskAccount\x20properly\x20tested','msg':_0x2d771[_0x2fa737('0x10fd')]?_0x2d771[_0x2fa737('0x10fd')]['message']?_0x2d771[_0x2fa737('0x10fd')][_0x2fa737('0x1402')]:JSON[_0x2fa737('0xa48')](_0x2d771[_0x2fa737('0x10fd')]):_0x2d771[_0x2fa737('0x684')]()});});}function _0x157521(_0x783c6,_0x28e10d){var _0x3a462d=_0x5cf0aa,_0x2b699d=_0x57ee0c[_0x3a462d('0x281e')]()[_0x3a462d('0x110a')](_0x3a462d('0x88d')+_0x51538b()[_0x3a462d('0x196a')](_0x3a462d('0x1eec'))+'?')[_0x3a462d('0x102e')](_0x3a462d('0x389')+(_0x783c6[_0x3a462d('0x25d6')]||_0x3a462d('0x1eec'))+_0x3a462d('0x697')+_0x3a462d('0x210d'))[_0x3a462d('0x5b5')]('delete\x20freshdeskAccount')[_0x3a462d('0x116d')](_0x28e10d)['ok']('OK')[_0x3a462d('0x2030')](_0x3a462d('0x2410'));_0x57ee0c[_0x3a462d('0x1e6d')](_0x2b699d)[_0x3a462d('0xaa5')](function(){_0x58dfde(_0x783c6);},function(){var _0x56eca6=_0x3a462d;console[_0x56eca6('0x18d5')](_0x56eca6('0x2410'));});}var _0x43cd62=!![],_0x1dda70=0x1;_0x11d81a['$watch'](_0x5cf0aa('0x1788'),function(_0x3cf5ab,_0xe9c207){var _0x1513d=_0x5cf0aa;_0x43cd62?_0x161f1b(function(){_0x43cd62=![];}):(!_0xe9c207&&(_0x1dda70=_0x548972['query'][_0x1513d('0x41')]),_0x3cf5ab!==_0xe9c207&&(_0x548972['query'][_0x1513d('0x41')]=0x1),!_0x3cf5ab&&(_0x548972[_0x1513d('0x582')]['page']=_0x1dda70),_0x548972['getFreshdeskAccounts']());});function _0x3f507b(_0x2ba0d5){var _0x4c0a52=_0x5cf0aa;_0x548972[_0x4c0a52('0x79e')]=_0x2ba0d5||{'count':0x0,'rows':[]};}function _0x3047ef(){var _0x2d3be7=_0x5cf0aa;_0x548972[_0x2d3be7('0x582')][_0x2d3be7('0x8b1')]=(_0x548972[_0x2d3be7('0x582')][_0x2d3be7('0x41')]-0x1)*_0x548972[_0x2d3be7('0x582')][_0x2d3be7('0xf4d')],_0x56bf23['hasRole'](_0x2d3be7('0x178b'))?_0x548972['promise']=_0x4c35af[_0x2d3be7('0x1ab2')]['get'](_0x548972['query'],_0x3f507b)[_0x2d3be7('0x1dc2')]:(_0x548972[_0x2d3be7('0x582')]['id']=_0x548972[_0x2d3be7('0x1e97')]['id'],_0x548972[_0x2d3be7('0x582')][_0x2d3be7('0x224d')]=_0x2d3be7('0x1194'),_0x548972[_0x2d3be7('0x159a')]=_0x4c35af[_0x2d3be7('0x1e97')][_0x2d3be7('0x1cf1')](_0x548972[_0x2d3be7('0x582')],_0x3f507b)[_0x2d3be7('0x1dc2')]);}function _0x48546c(_0x9e9ebc,_0x101a7c){var _0x5de8a7=_0x5cf0aa;_0x57ee0c[_0x5de8a7('0x1e6d')]({'controller':_0x5de8a7('0x5b9'),'controllerAs':'vm','templateUrl':_0x2767a4,'parent':angular[_0x5de8a7('0x1aa8')](_0x32ee7b[_0x5de8a7('0x54c')]),'targetEvent':_0x9e9ebc,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x101a7c,'freshdeskAccounts':_0x548972[_0x5de8a7('0x79e')]['rows'],'license':_0x548972[_0x5de8a7('0x1202')],'setting':_0x548972['setting'],'crudPermissions':_0x548972[_0x5de8a7('0xada')]}});}function _0x58dfde(_0x5ec9f6){var _0x34fd94=_0x5cf0aa;_0x4c35af[_0x34fd94('0x1ab2')][_0x34fd94('0x926')]({'id':_0x5ec9f6['id']})[_0x34fd94('0x1dc2')][_0x34fd94('0xaa5')](function(){var _0x1c3870=_0x34fd94;_0x51538b()['remove'](_0x548972['freshdeskAccounts'][_0x1c3870('0x580')],{'id':_0x5ec9f6['id']}),_0x548972[_0x1c3870('0x79e')]['count']-=0x1,!_0x548972[_0x1c3870('0x79e')][_0x1c3870('0x580')]['length']&&_0x548972[_0x1c3870('0x11d0')](),_0x9a51d9[_0x1c3870('0xe10')]({'title':_0x51538b()[_0x1c3870('0x196a')]('FreshdeskAccount')+_0x1c3870('0x8bb'),'msg':_0x5ec9f6[_0x1c3870('0x25d6')]?_0x5ec9f6[_0x1c3870('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x34fd94('0x253d')](function(_0x1205ee){var _0x346131=_0x34fd94;if(_0x1205ee['data']&&_0x1205ee[_0x346131('0x10fd')]['errors']&&_0x1205ee[_0x346131('0x10fd')]['errors'][_0x346131('0x2587')]){_0x548972[_0x346131('0x4c6')]=_0x1205ee['data'][_0x346131('0x4c6')]||[{'message':_0x1205ee[_0x346131('0x684')](),'type':_0x346131('0x92d')}];for(var _0x1e18dd=0x0;_0x1e18dd<_0x1205ee['data']['errors'][_0x346131('0x2587')];_0x1e18dd++){_0x9a51d9[_0x346131('0x187f')]({'title':_0x1205ee[_0x346131('0x10fd')][_0x346131('0x4c6')][_0x1e18dd][_0x346131('0x6c8')],'msg':_0x1205ee['data'][_0x346131('0x4c6')][_0x1e18dd]['message']});}}else _0x9a51d9[_0x346131('0x187f')]({'title':_0x1205ee[_0x346131('0x2fa')]?_0x346131('0x16c2')+_0x1205ee[_0x346131('0x2fa')]+'\x20-\x20'+_0x1205ee[_0x346131('0x24df')]:'SYSTEM:DELETEintFreshdeskAccount','msg':_0x1205ee[_0x346131('0x10fd')]?JSON[_0x346131('0xa48')](_0x1205ee[_0x346131('0x10fd')][_0x346131('0x1402')]):_0x1205ee[_0x346131('0x1402')]||_0x1205ee[_0x346131('0x684')]()});});}function _0x912312(){var _0x4a2e3c=_0x5cf0aa,_0x2a5094=angular[_0x4a2e3c('0x20a')](_0x548972[_0x4a2e3c('0x43c')]);return _0x548972[_0x4a2e3c('0x43c')]=[],_0x2a5094;}function _0x373daf(_0x2145eb){var _0x4572cc=_0x5cf0aa,_0x3acfb4=_0x57ee0c[_0x4572cc('0x281e')]()[_0x4572cc('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshdeskAccounts?')[_0x4572cc('0x102e')](''+_0x548972['selectedFreshdeskAccounts']['length']+_0x4572cc('0x1443')+_0x4572cc('0x210d'))[_0x4572cc('0x5b5')](_0x4572cc('0x181b'))[_0x4572cc('0x116d')](_0x2145eb)['ok']('OK')[_0x4572cc('0x2030')](_0x4572cc('0x2410'));_0x57ee0c[_0x4572cc('0x1e6d')](_0x3acfb4)[_0x4572cc('0xaa5')](function(){var _0x3eceb0=_0x4572cc;_0x548972[_0x3eceb0('0x43c')][_0x3eceb0('0x15b5')](function(_0x49bec3){_0x58dfde(_0x49bec3);}),_0x548972[_0x3eceb0('0x43c')]=[];});}function _0x310222(){var _0x37bbef=_0x5cf0aa;_0x548972[_0x37bbef('0x43c')]=[];}function _0x3b2280(){_0x548972['selectedFreshdeskAccounts']=_0x548972['freshdeskAccounts']['rows'];}}const _0x16cdb4=_0x35f891;_0x7edf9e[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty','freshsalesAccounts',_0x1a8446('0x13e3'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),'crudPermissions'];function _0x7edf9e(_0x360892,_0x370357,_0x434a90,_0x2bf86c,_0x3bb398,_0x4bc734,_0x11989d,_0x178d74,_0x5a26a5,_0xd74a63,_0x293f39,_0x76af34,_0x4bd87b,_0xdc704c){var _0x107106=_0x1a8446,_0x3fe654=this;_0x3fe654[_0x107106('0x7fc')]=_0x293f39[_0x107106('0xacc')](),_0x3fe654[_0x107106('0x4c6')]=[],_0x3fe654[_0x107106('0x143f')]=_0x4bd87b,_0x3fe654[_0x107106('0x1202')]=_0x76af34,_0x3fe654[_0x107106('0xada')]=_0xdc704c,_0x3fe654[_0x107106('0x9f0')]={},_0x3fe654[_0x107106('0x1d53')]=_0x3fe654['setting']&&_0x3fe654['setting'][_0x107106('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3fe654[_0x107106('0x110a')]=_0x107106('0x280b'),_0x3fe654[_0x107106('0x13e3')]=angular[_0x107106('0x20a')](_0x5a26a5),_0x3fe654['freshsalesAccounts']=_0x178d74,_0x3fe654['newFreshsalesAccount']=![];!_0x3fe654[_0x107106('0x13e3')]&&(_0x3fe654['freshsalesAccount']={'serverUrl':_0x434a90[_0x107106('0x1cc2')]()+_0x107106('0x356')+_0x434a90[_0x107106('0x160c')]()+(_0x434a90[_0x107106('0x191')]()?':'+_0x434a90['port']():'')},_0x3fe654[_0x107106('0x110a')]='INTEGRATIONS.NEW_FRESHSALESACCOUNT',_0x3fe654[_0x107106('0xddc')]=!![]);_0x3fe654['addNewFreshsalesAccount']=_0x459dde,_0x3fe654[_0x107106('0x327')]=_0xc590e0,_0x3fe654[_0x107106('0x18a9')]=_0x5214d2,_0x3fe654[_0x107106('0xc09')]=_0x3418a5,_0x3fe654[_0x107106('0x2023')]=_0x258d82;function _0x459dde(){var _0x22d697=_0x107106;_0x3fe654[_0x22d697('0x4c6')]=[],_0xd74a63[_0x22d697('0xc44')][_0x22d697('0x242b')](_0x3fe654['freshsalesAccount'])['$promise']['then'](function(_0x82eed3){var _0x29a7aa=_0x22d697;_0x3fe654['freshsalesAccounts'][_0x29a7aa('0x6ee')](_0x82eed3[_0x29a7aa('0x256a')]()),_0x11989d[_0x29a7aa('0xe10')]({'title':_0x29a7aa('0x27a1'),'msg':_0x3fe654[_0x29a7aa('0x13e3')]['name']?_0x3fe654[_0x29a7aa('0x13e3')][_0x29a7aa('0x25d6')]+_0x29a7aa('0xdca'):''}),_0x258d82(_0x82eed3);})[_0x22d697('0x253d')](function(_0x35971f){var _0x3f5274=_0x22d697;if(_0x35971f['data']&&_0x35971f[_0x3f5274('0x10fd')][_0x3f5274('0x4c6')]&&_0x35971f[_0x3f5274('0x10fd')][_0x3f5274('0x4c6')][_0x3f5274('0x2587')]){_0x3fe654['errors']=_0x35971f[_0x3f5274('0x10fd')][_0x3f5274('0x4c6')]||[{'message':_0x35971f[_0x3f5274('0x684')](),'type':_0x3f5274('0x706')}];for(var _0x58e621=0x0;_0x58e621<_0x35971f['data'][_0x3f5274('0x4c6')]['length'];_0x58e621+=0x1){_0x11989d[_0x3f5274('0x187f')]({'title':_0x35971f['data']['errors'][_0x58e621]['type'],'msg':_0x35971f[_0x3f5274('0x10fd')][_0x3f5274('0x4c6')][_0x58e621][_0x3f5274('0x1402')]});}}else _0x11989d[_0x3f5274('0x187f')]({'title':_0x35971f[_0x3f5274('0x2fa')]?_0x3f5274('0x16c2')+_0x35971f['status']+_0x3f5274('0x169e')+_0x35971f['statusText']:'api.intFreshsalesAccount.save','msg':_0x35971f[_0x3f5274('0x10fd')]?JSON[_0x3f5274('0xa48')](_0x35971f[_0x3f5274('0x10fd')][_0x3f5274('0x1402')]):_0x35971f[_0x3f5274('0x684')]()});});}function _0xc590e0(){var _0x1a302d=_0x107106;_0x3fe654['errors']=[],_0xd74a63[_0x1a302d('0xc44')][_0x1a302d('0x264e')]({'id':_0x3fe654[_0x1a302d('0x13e3')]['id']},_0x3fe654[_0x1a302d('0x13e3')])[_0x1a302d('0x1dc2')]['then'](function(_0x2f6964){var _0x461dcf=_0x1a302d,_0x436b16=_0x51538b()[_0x461dcf('0xe9e')](_0x3fe654[_0x461dcf('0x1d1e')],{'id':_0x2f6964['id']});_0x436b16&&_0x51538b()[_0x461dcf('0x283c')](_0x436b16,_0x51538b()['pick'](_0x2f6964[_0x461dcf('0x256a')](),_0x51538b()[_0x461dcf('0x9f2')](_0x436b16))),_0x11989d[_0x461dcf('0xe10')]({'title':_0x461dcf('0xd2a'),'msg':_0x3fe654['freshsalesAccount'][_0x461dcf('0x25d6')]?_0x3fe654[_0x461dcf('0x13e3')]['name']+_0x461dcf('0x20bf'):''}),_0x258d82(_0x2f6964);})[_0x1a302d('0x253d')](function(_0x5de93f){var _0x261555=_0x1a302d;if(_0x5de93f[_0x261555('0x10fd')]&&_0x5de93f['data'][_0x261555('0x4c6')]&&_0x5de93f[_0x261555('0x10fd')][_0x261555('0x4c6')][_0x261555('0x2587')]){_0x3fe654['errors']=_0x5de93f[_0x261555('0x10fd')][_0x261555('0x4c6')]||[{'message':_0x5de93f[_0x261555('0x684')](),'type':'api.intFreshsalesAccount.update'}];for(var _0x38ab50=0x0;_0x38ab50<_0x5de93f['data'][_0x261555('0x4c6')]['length'];_0x38ab50++){_0x11989d[_0x261555('0x187f')]({'title':_0x5de93f[_0x261555('0x10fd')]['errors'][_0x38ab50]['type'],'msg':_0x5de93f[_0x261555('0x10fd')][_0x261555('0x4c6')][_0x38ab50][_0x261555('0x1402')]});}}else _0x11989d[_0x261555('0x187f')]({'title':_0x5de93f[_0x261555('0x2fa')]?_0x261555('0x16c2')+_0x5de93f[_0x261555('0x2fa')]+'\x20-\x20'+_0x5de93f[_0x261555('0x24df')]:'api.intFreshsalesAccount.update','msg':_0x5de93f['data']?JSON['stringify'](_0x5de93f[_0x261555('0x10fd')]['message']):_0x5de93f['toString']()});});}function _0x5214d2(_0x89c895){var _0x3d4a5c=_0x107106;_0x3fe654[_0x3d4a5c('0x4c6')]=[];var _0x46ce50=_0x2bf86c[_0x3d4a5c('0x281e')]()['title']('Are\x20you\x20sure?')['content']('The\x20freshsalesAccount\x20will\x20be\x20deleted.')[_0x3d4a5c('0x5b5')](_0x3d4a5c('0x1013'))['ok'](_0x3d4a5c('0x1e76'))['cancel'](_0x3d4a5c('0x9c6'))['targetEvent'](_0x89c895);_0x2bf86c['show'](_0x46ce50)[_0x3d4a5c('0xaa5')](function(){var _0x1b5c2e=_0x3d4a5c;_0xd74a63[_0x1b5c2e('0xc44')][_0x1b5c2e('0x926')]({'id':_0x3fe654['freshsalesAccount']['id']})[_0x1b5c2e('0x1dc2')][_0x1b5c2e('0xaa5')](function(){var _0x254ec4=_0x1b5c2e;_0x51538b()[_0x254ec4('0xf6d')](_0x3fe654[_0x254ec4('0x1d1e')],{'id':_0x3fe654['freshsalesAccount']['id']}),_0x11989d[_0x254ec4('0xe10')]({'title':'FreshsalesAccount\x20properly\x20deleted!','msg':(_0x3fe654[_0x254ec4('0x13e3')][_0x254ec4('0x25d6')]||'freshsalesAccount')+_0x254ec4('0xcd9')}),_0x258d82(_0x3fe654[_0x254ec4('0x13e3')]);})[_0x1b5c2e('0x253d')](function(_0x19e1bd){var _0x418798=_0x1b5c2e;if(_0x19e1bd['data']&&_0x19e1bd[_0x418798('0x10fd')][_0x418798('0x4c6')]&&_0x19e1bd[_0x418798('0x10fd')][_0x418798('0x4c6')][_0x418798('0x2587')]){_0x3fe654[_0x418798('0x4c6')]=_0x19e1bd[_0x418798('0x10fd')][_0x418798('0x4c6')]||[{'message':_0x19e1bd['toString'](),'type':_0x418798('0x1ec9')}];for(var _0x5627dd=0x0;_0x5627dd<_0x19e1bd[_0x418798('0x10fd')][_0x418798('0x4c6')]['length'];_0x5627dd++){_0x11989d[_0x418798('0x187f')]({'title':_0x19e1bd[_0x418798('0x10fd')][_0x418798('0x4c6')][_0x5627dd]['type'],'msg':_0x19e1bd[_0x418798('0x10fd')]['errors'][_0x5627dd]['message']});}}else _0x11989d[_0x418798('0x187f')]({'title':_0x19e1bd[_0x418798('0x2fa')]?_0x418798('0x16c2')+_0x19e1bd['status']+_0x418798('0x169e')+_0x19e1bd[_0x418798('0x24df')]:_0x418798('0x1ec9'),'msg':_0x19e1bd[_0x418798('0x10fd')]?JSON['stringify'](_0x19e1bd['data'][_0x418798('0x1402')]):_0x19e1bd[_0x418798('0x1402')]||_0x19e1bd[_0x418798('0x684')]()});});},function(){});}function _0x3418a5(_0x16d82b){return _0x16d82b===null?undefined:new Date(_0x16d82b);}function _0x258d82(_0x17b3ee){var _0x5b4d48=_0x107106;_0x2bf86c[_0x5b4d48('0x1120')](_0x17b3ee);}}const _0x428a0c=_0x7edf9e,_0x2c5bc7=_0x4fb511['p']+_0x1a8446('0x422'),_0x39b9cb=_0x4fb511['p']+_0x1a8446('0x21ef');_0x3b0076[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x157'),'toasty',_0x1a8446('0x1dfd')];function _0x3b0076(_0x55032b,_0x5c2a51,_0x378bf5,_0x2fee36,_0x379ce2){var _0x2a5bde=_0x1a8446,_0x247973=this;_0x247973[_0x2a5bde('0x7fc')]=_0x379ce2[_0x2a5bde('0xacc')](),_0x247973[_0x2a5bde('0x13e3')]={},_0x247973[_0x2a5bde('0x1e2a')]={},_0x247973['configurations']=[],_0x247973[_0x2a5bde('0x8e0')]=-0x1,_0x247973['crudPermissions'],_0x247973[_0x2a5bde('0x2e')]=_0x22389b,_0x247973[_0x2a5bde('0x20da')]=_0x599b4f,_0x247973[_0x2a5bde('0x1d30')]=_0x881646,_0x247973[_0x2a5bde('0x76d')]=_0x3e441e;function _0x22389b(_0x3b1052,_0x14184a){var _0x455154=_0x2a5bde;_0x247973[_0x455154('0x13e3')]=_0x3b1052,_0x247973[_0x455154('0xada')]=typeof _0x14184a!=='undefined'?_0x14184a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x378bf5[_0x455154('0xc44')][_0x455154('0x281f')]({'id':_0x247973[_0x455154('0x13e3')]['id'],'sort':_0x455154('0xd82')})[_0x455154('0x1dc2')][_0x455154('0xaa5')](function(_0x123ad6){var _0x23cdc7=_0x455154;return _0x247973[_0x23cdc7('0x555')]=_0x123ad6[_0x23cdc7('0x580')]?_0x123ad6[_0x23cdc7('0x580')]:[],_0x247973[_0x23cdc7('0x555')][_0x23cdc7('0x2587')]&&_0x247973[_0x23cdc7('0x20da')](0x0),_0x378bf5['variable'][_0x23cdc7('0x2122')]({'nolimit':!![],'sort':_0x23cdc7('0x25d6')})[_0x23cdc7('0x1dc2')];})[_0x455154('0xaa5')](function(_0x2bb052){var _0x1787e1=_0x455154;_0x247973[_0x1787e1('0x147e')]=_0x2bb052[_0x1787e1('0x580')]?_0x2bb052[_0x1787e1('0x580')]:[],_0x247973[_0x1787e1('0x2032')]=_0x51538b()[_0x1787e1('0x184a')](_0x247973[_0x1787e1('0x147e')],'id');})[_0x455154('0x253d')](function(_0x238e58){var _0x9aa77d=_0x455154;_0x2fee36[_0x9aa77d('0x187f')]({'title':_0x238e58[_0x9aa77d('0x2fa')]?_0x9aa77d('0x16c2')+_0x238e58['status']+'\x20-\x20'+_0x238e58[_0x9aa77d('0x24df')]:_0x9aa77d('0x24c9'),'msg':_0x238e58['data']?JSON['stringify'](_0x238e58[_0x9aa77d('0x10fd')]):_0x238e58[_0x9aa77d('0x684')]()});});}function _0x599b4f(_0x13a281){var _0x5ccf84=_0x2a5bde;_0x247973[_0x5ccf84('0x1e2a')]=_0x247973[_0x5ccf84('0x555')][_0x13a281],_0x247973[_0x5ccf84('0x8e0')]=_0x13a281,_0x378bf5['intFreshsalesConfiguration']['getSubjects']({'id':_0x247973[_0x5ccf84('0x1e2a')]['id']})[_0x5ccf84('0x1dc2')][_0x5ccf84('0xaa5')](function(_0x27bf01){var _0x4d245b=_0x5ccf84;return _0x247973[_0x4d245b('0xc3f')]=_0x27bf01[_0x4d245b('0x580')]?_0x27bf01[_0x4d245b('0x580')]:[],_0x378bf5[_0x4d245b('0x13b7')][_0x4d245b('0x2103')]({'id':_0x247973['freshsalesConfiguration']['id']})[_0x4d245b('0x1dc2')];})[_0x5ccf84('0xaa5')](function(_0x54fc3f){var _0x1b8b20=_0x5ccf84;return _0x247973[_0x1b8b20('0x27b9')]=_0x54fc3f[_0x1b8b20('0x580')]?_0x54fc3f[_0x1b8b20('0x580')]:[],_0x378bf5[_0x1b8b20('0x13b7')]['getFields']({'id':_0x247973['freshsalesConfiguration']['id']})[_0x1b8b20('0x1dc2')];})['then'](function(_0x309f49){var _0xd16e88=_0x5ccf84;_0x247973[_0xd16e88('0x13a')]=_0x309f49[_0xd16e88('0x580')]?_0x309f49[_0xd16e88('0x580')]:[];})['catch'](function(_0x10091f){var _0x3bb9c0=_0x5ccf84;_0x2fee36[_0x3bb9c0('0x187f')]({'title':_0x10091f['status']?'API:'+_0x10091f[_0x3bb9c0('0x2fa')]+_0x3bb9c0('0x169e')+_0x10091f[_0x3bb9c0('0x24df')]:'SYSTEM:GETConfigurations','msg':_0x10091f[_0x3bb9c0('0x10fd')]?JSON[_0x3bb9c0('0xa48')](_0x10091f[_0x3bb9c0('0x10fd')]):_0x10091f[_0x3bb9c0('0x684')]()});});}function _0x881646(_0x4e05c5,_0x42aafd){var _0x488a79=_0x2a5bde;_0x55032b[_0x488a79('0x1e6d')]({'controller':'CreateOrEditFreshsalesConfigurationDialogController','controllerAs':'vm','templateUrl':_0x2c5bc7,'parent':angular[_0x488a79('0x1aa8')](_0x5c2a51[_0x488a79('0x54c')]),'targetEvent':_0x4e05c5,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x42aafd,'configurations':_0x247973['configurations'],'license':null,'setting':null,'crudPermissions':_0x247973[_0x488a79('0xada')]}})[_0x488a79('0x1889')](function(){var _0x2ba2a3=_0x488a79;_0x247973[_0x2ba2a3('0x20da')](0x0);});}function _0x3e441e(_0x20246d,_0x145162){var _0x389cd9=_0x2a5bde,_0x2f6a74=_0x55032b[_0x389cd9('0x281e')]()[_0x389cd9('0x110a')](_0x389cd9('0x2752'))['htmlContent'](_0x389cd9('0x389')+(_0x145162[_0x389cd9('0x25d6')]||_0x389cd9('0x1e2a'))+_0x389cd9('0x697')+_0x389cd9('0x210d'))[_0x389cd9('0x5b5')]('delete\x20freshsalesConfiguration')[_0x389cd9('0x116d')](_0x20246d)['ok']('OK')[_0x389cd9('0x2030')](_0x389cd9('0x2410'));_0x55032b[_0x389cd9('0x1e6d')](_0x2f6a74)[_0x389cd9('0xaa5')](function(){var _0x4935ff=_0x389cd9;_0x378bf5[_0x4935ff('0x13b7')]['delete']({'id':_0x145162['id']})[_0x4935ff('0x1dc2')][_0x4935ff('0xaa5')](function(){var _0x575787=_0x4935ff;_0x51538b()[_0x575787('0xf6d')](_0x247973[_0x575787('0x555')],{'id':_0x145162['id']}),_0x2fee36[_0x575787('0xe10')]({'title':_0x575787('0x5b1'),'msg':_0x145162['name']?_0x145162[_0x575787('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x4935ff('0x253d')](function(_0x3c63a5){var _0x28d22c=_0x4935ff;_0x2fee36[_0x28d22c('0x187f')]({'title':_0x3c63a5[_0x28d22c('0x2fa')]?'API:'+_0x3c63a5['status']+'\x20-\x20'+_0x3c63a5[_0x28d22c('0x24df')]:_0x28d22c('0x2549'),'msg':_0x3c63a5[_0x28d22c('0x10fd')]?JSON[_0x28d22c('0xa48')](_0x3c63a5[_0x28d22c('0x10fd')]):_0x3c63a5[_0x28d22c('0x684')]()});})[_0x4935ff('0x1889')](function(){var _0x1ad5c5=_0x4935ff;_0x247973[_0x1ad5c5('0x20da')](0x0);});},function(){var _0x2752a2=_0x389cd9;console[_0x2752a2('0x18d5')](_0x2752a2('0x2410'));});}_0x247973[_0x2a5bde('0xf7d')]=[],_0x247973[_0x2a5bde('0x21c5')]=_0x2fe719,_0x247973[_0x2a5bde('0x1e1e')]=_0x4bddbd,_0x247973['deleteSelectedSubjects']=_0x3e2a21;function _0x2fe719(_0x15c343,_0x1bb49b){var _0x272d07=_0x2a5bde;_0x55032b[_0x272d07('0x1e6d')]({'controller':_0x272d07('0x589'),'controllerAs':'vm','templateUrl':_0x39b9cb,'parent':angular[_0x272d07('0x1aa8')](_0x5c2a51[_0x272d07('0x54c')]),'targetEvent':_0x15c343,'clickOutsideToClose':!![],'locals':{'type':_0x272d07('0x2101'),'item':_0x1bb49b,'items':_0x247973[_0x272d07('0xc3f')],'configuration':_0x247973['freshsalesConfiguration'],'account':_0x247973['freshsalesAccount'],'license':null,'setting':null,'crudPermissions':_0x247973['crudPermissions']}});}function _0x5592e1(_0x5bfb0c){var _0x16761c=_0x2a5bde;_0x378bf5['intFreshsalesField'][_0x16761c('0x926')]({'id':_0x5bfb0c['id']})[_0x16761c('0x1dc2')][_0x16761c('0xaa5')](function(){var _0x53b9cc=_0x16761c;_0x51538b()[_0x53b9cc('0xf6d')](_0x247973[_0x53b9cc('0xc3f')],{'id':_0x5bfb0c['id']}),_0x2fee36['success']({'title':_0x53b9cc('0xcad'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x16761c('0x253d')](function(_0x45514e){var _0x4a17d3=_0x16761c;_0x2fee36[_0x4a17d3('0x187f')]({'title':_0x45514e[_0x4a17d3('0x2fa')]?_0x4a17d3('0x16c2')+_0x45514e[_0x4a17d3('0x2fa')]+'\x20-\x20'+_0x45514e[_0x4a17d3('0x24df')]:_0x4a17d3('0xdd7'),'msg':_0x45514e[_0x4a17d3('0x10fd')]?JSON[_0x4a17d3('0xa48')](_0x45514e[_0x4a17d3('0x10fd')]):_0x45514e[_0x4a17d3('0x684')]()});});}function _0x4bddbd(_0x43f4dd,_0x35876c){var _0x21f76e=_0x2a5bde,_0x21a28a=_0x55032b[_0x21f76e('0x281e')]()[_0x21f76e('0x110a')](_0x21f76e('0x16b5'))['htmlContent'](_0x21f76e('0xd7')+_0x21f76e('0x210d'))[_0x21f76e('0x5b5')](_0x21f76e('0x25d5'))[_0x21f76e('0x116d')](_0x43f4dd)['ok']('OK')[_0x21f76e('0x2030')](_0x21f76e('0x2410'));_0x55032b[_0x21f76e('0x1e6d')](_0x21a28a)[_0x21f76e('0xaa5')](function(){_0x5592e1(_0x35876c);},function(){console['log']('CANCEL');});}function _0x3e2a21(_0xbc3c0f){var _0x44bc41=_0x2a5bde,_0x3e44d4=_0x55032b[_0x44bc41('0x281e')]()[_0x44bc41('0x110a')](_0x44bc41('0x6f0'))[_0x44bc41('0x102e')](_0x44bc41('0x389')+_0x247973[_0x44bc41('0xf7d')][_0x44bc41('0x2587')]+_0x44bc41('0x1443')+_0x44bc41('0x210d'))[_0x44bc41('0x5b5')](_0x44bc41('0xfcd'))[_0x44bc41('0x116d')](_0xbc3c0f)['ok']('OK')[_0x44bc41('0x2030')](_0x44bc41('0x2410'));_0x55032b[_0x44bc41('0x1e6d')](_0x3e44d4)[_0x44bc41('0xaa5')](function(){var _0x5bc7b4=_0x44bc41;_0x247973[_0x5bc7b4('0xf7d')][_0x5bc7b4('0x15b5')](function(_0x2105dd){_0x5592e1(_0x2105dd);}),_0x247973[_0x5bc7b4('0xf7d')]=[];});}_0x247973[_0x2a5bde('0x1b51')]=[],_0x247973['createOrEditDescription']=_0x32105d,_0x247973[_0x2a5bde('0x12af')]=_0x5d1633,_0x247973[_0x2a5bde('0x416')]=_0x408b6c;function _0x32105d(_0x2742db,_0x163231){var _0x4b2af3=_0x2a5bde;_0x55032b[_0x4b2af3('0x1e6d')]({'controller':_0x4b2af3('0x589'),'controllerAs':'vm','templateUrl':_0x39b9cb,'parent':angular[_0x4b2af3('0x1aa8')](_0x5c2a51[_0x4b2af3('0x54c')]),'targetEvent':_0x2742db,'clickOutsideToClose':!![],'locals':{'type':_0x4b2af3('0x23d0'),'item':_0x163231,'items':_0x247973[_0x4b2af3('0x27b9')],'configuration':_0x247973[_0x4b2af3('0x1e2a')],'account':_0x247973['freshsalesAccount'],'license':null,'setting':null,'crudPermissions':_0x247973[_0x4b2af3('0xada')]}});}function _0x2ccec4(_0x13a443){var _0x24a09a=_0x2a5bde;_0x378bf5[_0x24a09a('0x414')][_0x24a09a('0x926')]({'id':_0x13a443['id']})[_0x24a09a('0x1dc2')][_0x24a09a('0xaa5')](function(){var _0x116d0c=_0x24a09a;_0x51538b()[_0x116d0c('0xf6d')](_0x247973[_0x116d0c('0x27b9')],{'id':_0x13a443['id']}),_0x2fee36['success']({'title':_0x116d0c('0x1d35'),'msg':_0x116d0c('0x266b')});})[_0x24a09a('0x253d')](function(_0x563dbc){var _0x12d725=_0x24a09a;_0x2fee36[_0x12d725('0x187f')]({'title':_0x563dbc['status']?'API:'+_0x563dbc[_0x12d725('0x2fa')]+_0x12d725('0x169e')+_0x563dbc['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x563dbc[_0x12d725('0x10fd')]?JSON[_0x12d725('0xa48')](_0x563dbc[_0x12d725('0x10fd')]):_0x563dbc[_0x12d725('0x684')]()});});}function _0x5d1633(_0x26432b,_0x3d1dcd){var _0x5dd365=_0x2a5bde,_0x2295a5=_0x55032b[_0x5dd365('0x281e')]()[_0x5dd365('0x110a')](_0x5dd365('0x19b6'))[_0x5dd365('0x102e')](_0x5dd365('0x2534')+'\x20will\x20be\x20deleted.')[_0x5dd365('0x5b5')](_0x5dd365('0x8b2'))[_0x5dd365('0x116d')](_0x26432b)['ok']('OK')[_0x5dd365('0x2030')](_0x5dd365('0x2410'));_0x55032b[_0x5dd365('0x1e6d')](_0x2295a5)[_0x5dd365('0xaa5')](function(){_0x2ccec4(_0x3d1dcd);},function(){var _0x5807f6=_0x5dd365;console['log'](_0x5807f6('0x2410'));});}function _0x408b6c(_0x465891){var _0x4cf63f=_0x2a5bde,_0x408934=_0x55032b['confirm']()[_0x4cf63f('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x4cf63f('0x102e')](_0x4cf63f('0x389')+_0x247973[_0x4cf63f('0x1b51')][_0x4cf63f('0x2587')]+_0x4cf63f('0x1443')+_0x4cf63f('0x210d'))[_0x4cf63f('0x5b5')](_0x4cf63f('0xcfb'))['targetEvent'](_0x465891)['ok']('OK')[_0x4cf63f('0x2030')](_0x4cf63f('0x2410'));_0x55032b['show'](_0x408934)[_0x4cf63f('0xaa5')](function(){var _0x11d7fc=_0x4cf63f;_0x247973[_0x11d7fc('0x1b51')]['forEach'](function(_0xfba06d){_0x2ccec4(_0xfba06d);}),_0x247973[_0x11d7fc('0x1b51')]=[];});}_0x247973[_0x2a5bde('0x490')]=[],_0x247973[_0x2a5bde('0x1572')]=_0x5dc064,_0x247973[_0x2a5bde('0x353')]=_0x3ebba5,_0x247973[_0x2a5bde('0x261a')]=_0x40f865;function _0x5dc064(_0x54d674,_0x579279){var _0x41944f=_0x2a5bde;_0x55032b[_0x41944f('0x1e6d')]({'controller':_0x41944f('0x589'),'controllerAs':'vm','templateUrl':_0x39b9cb,'parent':angular[_0x41944f('0x1aa8')](_0x5c2a51[_0x41944f('0x54c')]),'targetEvent':_0x54d674,'clickOutsideToClose':!![],'locals':{'type':_0x41944f('0x5f2'),'item':_0x579279,'items':_0x247973[_0x41944f('0x13a')],'configuration':_0x247973[_0x41944f('0x1e2a')],'account':_0x247973[_0x41944f('0x13e3')],'license':null,'setting':null,'crudPermissions':_0x247973['crudPermissions']}});}function _0x3c3eb6(_0x34014a){var _0x17eb58=_0x2a5bde;_0x378bf5[_0x17eb58('0x414')][_0x17eb58('0x926')]({'id':_0x34014a['id']})['$promise'][_0x17eb58('0xaa5')](function(){var _0x31fbba=_0x17eb58;_0x51538b()[_0x31fbba('0xf6d')](_0x247973['fields'],{'id':_0x34014a['id']}),_0x2fee36['success']({'title':_0x31fbba('0x25e1'),'msg':_0x31fbba('0xb78')});})[_0x17eb58('0x253d')](function(_0x3b8600){var _0x3662c1=_0x17eb58;_0x2fee36[_0x3662c1('0x187f')]({'title':_0x3b8600[_0x3662c1('0x2fa')]?_0x3662c1('0x16c2')+_0x3b8600[_0x3662c1('0x2fa')]+_0x3662c1('0x169e')+_0x3b8600[_0x3662c1('0x24df')]:_0x3662c1('0xdd7'),'msg':_0x3b8600[_0x3662c1('0x10fd')]?JSON['stringify'](_0x3b8600[_0x3662c1('0x10fd')]):_0x3b8600[_0x3662c1('0x684')]()});});}function _0x3ebba5(_0x2cef77,_0x10e807){var _0x3bb20c=_0x2a5bde,_0xe45d7f=_0x55032b[_0x3bb20c('0x281e')]()[_0x3bb20c('0x110a')](_0x3bb20c('0x27fc'))[_0x3bb20c('0x102e')](_0x3bb20c('0x455')+_0x3bb20c('0x210d'))[_0x3bb20c('0x5b5')](_0x3bb20c('0x1286'))['targetEvent'](_0x2cef77)['ok']('OK')['cancel'](_0x3bb20c('0x2410'));_0x55032b[_0x3bb20c('0x1e6d')](_0xe45d7f)[_0x3bb20c('0xaa5')](function(){_0x3c3eb6(_0x10e807);},function(){var _0x2c2c0b=_0x3bb20c;console[_0x2c2c0b('0x18d5')](_0x2c2c0b('0x2410'));});}function _0x40f865(_0x29223a){var _0x952307=_0x2a5bde,_0x322129=_0x55032b[_0x952307('0x281e')]()['title'](_0x952307('0xf28'))[_0x952307('0x102e')](_0x952307('0x389')+_0x247973[_0x952307('0x490')]['length']+'\x20selected'+_0x952307('0x210d'))[_0x952307('0x5b5')](_0x952307('0xefc'))['targetEvent'](_0x29223a)['ok']('OK')[_0x952307('0x2030')](_0x952307('0x2410'));_0x55032b['show'](_0x322129)[_0x952307('0xaa5')](function(){var _0x102b82=_0x952307;_0x247973['selectedFields'][_0x102b82('0x15b5')](function(_0x34e68e){_0x3c3eb6(_0x34e68e);}),_0x247973['selectedFields']=[];});}}const _0x47bf07=_0x3b0076;_0x38bfbb[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'configurations','freshsalesConfiguration',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting','crudPermissions'];function _0x38bfbb(_0x16a7a5,_0x101a97,_0x264a39,_0x4a67b2,_0x442b05,_0x5e2ed5,_0x1e5500,_0x445271,_0x3028bb,_0xc09844,_0x52bd4e,_0x1a0a4a,_0x3750b4,_0x4c5f23){var _0x11d02d=_0x1a8446,_0x5001ad=this;_0x5001ad[_0x11d02d('0x7fc')]=_0x52bd4e['getCurrentUser'](),_0x5001ad['errors']=[],_0x5001ad[_0x11d02d('0x143f')]=_0x3750b4,_0x5001ad[_0x11d02d('0x1202')]=_0x1a0a4a,_0x5001ad[_0x11d02d('0xada')]=_0x4c5f23,_0x5001ad[_0x11d02d('0x9f0')]={},_0x5001ad[_0x11d02d('0x1d53')]=_0x5001ad['setting']&&_0x5001ad['setting'][_0x11d02d('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5001ad[_0x11d02d('0x110a')]=_0x11d02d('0xcab'),_0x5001ad[_0x11d02d('0x1e2a')]=angular[_0x11d02d('0x20a')](_0x3028bb),_0x5001ad[_0x11d02d('0x555')]=_0x445271,_0x5001ad[_0x11d02d('0x65c')]=![];!_0x5001ad['freshsalesConfiguration']&&(_0x5001ad[_0x11d02d('0x1e2a')]={'channel':_0x11d02d('0x1b9'),'type':_0x11d02d('0x4b8')},_0x5001ad[_0x11d02d('0x110a')]=_0x11d02d('0x2653'),_0x5001ad[_0x11d02d('0x65c')]=!![]);_0x5001ad[_0x11d02d('0x1614')]=_0x546ac0,_0x5001ad[_0x11d02d('0x1e72')]=_0x40ced4,_0x5001ad[_0x11d02d('0x76d')]=_0x1735ef,_0x5001ad[_0x11d02d('0xc09')]=_0x68f8a7,_0x5001ad[_0x11d02d('0x2023')]=_0x30abff;function _0x546ac0(){var _0x17c38f=_0x11d02d;_0x5001ad[_0x17c38f('0x4c6')]=[],_0xc09844[_0x17c38f('0xc44')][_0x17c38f('0x118f')]({'id':_0x101a97[_0x17c38f('0x25cf')]['id']},_0x5001ad[_0x17c38f('0x1e2a')])[_0x17c38f('0x1dc2')][_0x17c38f('0xaa5')](function(_0x554e50){var _0x84f91c=_0x17c38f;_0x5001ad['configurations'][_0x84f91c('0x6ee')](_0x554e50[_0x84f91c('0x256a')]()),_0x1e5500[_0x84f91c('0xe10')]({'title':_0x84f91c('0x1f5b'),'msg':_0x5001ad[_0x84f91c('0x1e2a')][_0x84f91c('0x25d6')]?_0x5001ad[_0x84f91c('0x1e2a')][_0x84f91c('0x25d6')]+_0x84f91c('0xdca'):''}),_0x30abff(_0x554e50);})[_0x17c38f('0x253d')](function(_0xc227f1){var _0x1172d0=_0x17c38f;if(_0xc227f1[_0x1172d0('0x10fd')]&&_0xc227f1['data'][_0x1172d0('0x4c6')]&&_0xc227f1[_0x1172d0('0x10fd')]['errors'][_0x1172d0('0x2587')]){_0x5001ad[_0x1172d0('0x4c6')]=_0xc227f1[_0x1172d0('0x10fd')][_0x1172d0('0x4c6')]||[{'message':_0xc227f1[_0x1172d0('0x684')](),'type':_0x1172d0('0x149c')}];for(var _0x53f438=0x0;_0x53f438<_0xc227f1[_0x1172d0('0x10fd')][_0x1172d0('0x4c6')][_0x1172d0('0x2587')];_0x53f438+=0x1){_0x1e5500[_0x1172d0('0x187f')]({'title':_0xc227f1[_0x1172d0('0x10fd')][_0x1172d0('0x4c6')][_0x53f438][_0x1172d0('0x6c8')],'msg':_0xc227f1[_0x1172d0('0x10fd')][_0x1172d0('0x4c6')][_0x53f438][_0x1172d0('0x1402')]});}}else _0x1e5500[_0x1172d0('0x187f')]({'title':_0xc227f1[_0x1172d0('0x2fa')]?_0x1172d0('0x16c2')+_0xc227f1[_0x1172d0('0x2fa')]+_0x1172d0('0x169e')+_0xc227f1[_0x1172d0('0x24df')]:_0x1172d0('0x149c'),'msg':_0xc227f1['data']?JSON[_0x1172d0('0xa48')](_0xc227f1[_0x1172d0('0x10fd')][_0x1172d0('0x1402')]):_0xc227f1[_0x1172d0('0x684')]()});});}function _0x40ced4(){var _0x4894cd=_0x11d02d;_0x5001ad[_0x4894cd('0x4c6')]=[],_0xc09844[_0x4894cd('0x13b7')]['update']({'id':_0x5001ad[_0x4894cd('0x1e2a')]['id']},_0x5001ad[_0x4894cd('0x1e2a')])[_0x4894cd('0x1dc2')][_0x4894cd('0xaa5')](function(_0x1b02ca){var _0xc8e317=_0x4894cd,_0x4a7051=_0x51538b()[_0xc8e317('0xe9e')](_0x5001ad['configurations'],{'id':_0x1b02ca['id']});_0x4a7051&&_0x51538b()[_0xc8e317('0x283c')](_0x4a7051,_0x51538b()['pick'](_0x1b02ca[_0xc8e317('0x256a')](),_0x51538b()['keys'](_0x4a7051))),_0x1e5500[_0xc8e317('0xe10')]({'title':_0xc8e317('0x1b98'),'msg':_0x5001ad[_0xc8e317('0x1e2a')][_0xc8e317('0x25d6')]?_0x5001ad[_0xc8e317('0x1e2a')][_0xc8e317('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x30abff(_0x1b02ca);})[_0x4894cd('0x253d')](function(_0x502cdc){var _0x15a6e1=_0x4894cd;if(_0x502cdc['data']&&_0x502cdc[_0x15a6e1('0x10fd')]['errors']&&_0x502cdc[_0x15a6e1('0x10fd')]['errors'][_0x15a6e1('0x2587')]){_0x5001ad['errors']=_0x502cdc[_0x15a6e1('0x10fd')][_0x15a6e1('0x4c6')]||[{'message':_0x502cdc[_0x15a6e1('0x684')](),'type':_0x15a6e1('0x2423')}];for(var _0x346a7e=0x0;_0x346a7e<_0x502cdc['data'][_0x15a6e1('0x4c6')]['length'];_0x346a7e++){_0x1e5500[_0x15a6e1('0x187f')]({'title':_0x502cdc[_0x15a6e1('0x10fd')]['errors'][_0x346a7e]['type'],'msg':_0x502cdc[_0x15a6e1('0x10fd')][_0x15a6e1('0x4c6')][_0x346a7e][_0x15a6e1('0x1402')]});}}else _0x1e5500[_0x15a6e1('0x187f')]({'title':_0x502cdc[_0x15a6e1('0x2fa')]?'API:'+_0x502cdc['status']+_0x15a6e1('0x169e')+_0x502cdc['statusText']:_0x15a6e1('0x2423'),'msg':_0x502cdc[_0x15a6e1('0x10fd')]?JSON[_0x15a6e1('0xa48')](_0x502cdc[_0x15a6e1('0x10fd')][_0x15a6e1('0x1402')]):_0x502cdc[_0x15a6e1('0x684')]()});});}function _0x1735ef(_0xc165f5){var _0x37694f=_0x11d02d;_0x5001ad['errors']=[];var _0x41ce8c=_0x4a67b2['confirm']()[_0x37694f('0x110a')](_0x37694f('0x12a3'))[_0x37694f('0x15af')](_0x37694f('0x20f6'))['ariaLabel'](_0x37694f('0x11aa'))['ok'](_0x37694f('0x1e76'))[_0x37694f('0x2030')](_0x37694f('0x9c6'))[_0x37694f('0x116d')](_0xc165f5);_0x4a67b2['show'](_0x41ce8c)['then'](function(){var _0x27ca16=_0x37694f;_0xc09844[_0x27ca16('0x13b7')][_0x27ca16('0x926')]({'id':_0x5001ad[_0x27ca16('0x1e2a')]['id']})[_0x27ca16('0x1dc2')][_0x27ca16('0xaa5')](function(){var _0x378634=_0x27ca16;_0x51538b()[_0x378634('0xf6d')](_0x5001ad[_0x378634('0x555')],{'id':_0x5001ad['freshsalesConfiguration']['id']}),_0x1e5500['success']({'title':_0x378634('0xd87'),'msg':(_0x5001ad['freshsalesConfiguration']['name']||'freshsalesConfiguration')+_0x378634('0xcd9')}),_0x30abff(_0x5001ad[_0x378634('0x1e2a')]);})[_0x27ca16('0x253d')](function(_0x4a34d8){var _0x25ad88=_0x27ca16;if(_0x4a34d8[_0x25ad88('0x10fd')]&&_0x4a34d8[_0x25ad88('0x10fd')]['errors']&&_0x4a34d8[_0x25ad88('0x10fd')]['errors']['length']){_0x5001ad[_0x25ad88('0x4c6')]=_0x4a34d8[_0x25ad88('0x10fd')][_0x25ad88('0x4c6')]||[{'message':_0x4a34d8['toString'](),'type':_0x25ad88('0x1205')}];for(var _0x543d5f=0x0;_0x543d5f<_0x4a34d8[_0x25ad88('0x10fd')][_0x25ad88('0x4c6')][_0x25ad88('0x2587')];_0x543d5f++){_0x1e5500[_0x25ad88('0x187f')]({'title':_0x4a34d8[_0x25ad88('0x10fd')]['errors'][_0x543d5f][_0x25ad88('0x6c8')],'msg':_0x4a34d8['data'][_0x25ad88('0x4c6')][_0x543d5f]['message']});}}else _0x1e5500[_0x25ad88('0x187f')]({'title':_0x4a34d8[_0x25ad88('0x2fa')]?_0x25ad88('0x16c2')+_0x4a34d8[_0x25ad88('0x2fa')]+_0x25ad88('0x169e')+_0x4a34d8[_0x25ad88('0x24df')]:_0x25ad88('0x1205'),'msg':_0x4a34d8['data']?JSON[_0x25ad88('0xa48')](_0x4a34d8[_0x25ad88('0x10fd')][_0x25ad88('0x1402')]):_0x4a34d8[_0x25ad88('0x1402')]||_0x4a34d8[_0x25ad88('0x684')]()});});},function(){});}function _0x68f8a7(_0x115997){return _0x115997===null?undefined:new Date(_0x115997);}function _0x30abff(_0x5e9b02){var _0xe503b6=_0x11d02d;_0x4a67b2[_0xe503b6('0x1120')](_0x5e9b02);}}const _0x5e1403=_0x38bfbb;_0x477aee[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','toasty',_0x1a8446('0x72'),_0x1a8446('0x1a30'),_0x1a8446('0x1a38'),_0x1a8446('0x5b'),_0x1a8446('0x6c8'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x477aee(_0x4b3320,_0x2a3d0c,_0x451ebc,_0x5a9e83,_0x326071,_0x5b07e1,_0x439a0a,_0x3b59ea,_0x2cd5d9,_0x3046b0,_0x46ed88,_0xe20818,_0x35f8e4){var _0x5cb685=_0x1a8446,_0x2d41e2=this;_0x2d41e2[_0x5cb685('0x7fc')]=_0xe20818[_0x5cb685('0xacc')](),_0x2d41e2[_0x5cb685('0x4c6')]=[],_0x2d41e2[_0x5cb685('0x110a')]=_0x5cb685('0x66b')+_0x51538b()[_0x5cb685('0x1818')](_0x3046b0),_0x2d41e2[_0x5cb685('0x1a38')]=angular['copy'](_0x3b59ea),_0x2d41e2['items']=_0x439a0a,_0x2d41e2[_0x5cb685('0x6c8')]=_0x3046b0,_0x2d41e2['crudPermissions']=_0x35f8e4,_0x2d41e2[_0x5cb685('0x1891')]=![];!_0x2d41e2['item']&&(_0x2d41e2[_0x5cb685('0x1a38')]={'type':'string'},_0x2d41e2[_0x5cb685('0x1a38')][_0x51538b()['capitalize'](_0x3046b0)+'Id']=_0x5b07e1['id'],_0x2d41e2[_0x5cb685('0x110a')]='INTEGRATIONS.NEW_'+_0x51538b()[_0x5cb685('0x1818')](_0x3046b0),_0x2d41e2[_0x5cb685('0x1891')]=!![]);_0x2d41e2[_0x5cb685('0x13fd')]=_0x301c8d,_0x2d41e2['saveItem']=_0x2db533,_0x2d41e2[_0x5cb685('0x1994')]=_0x49d00d,_0x2d41e2[_0x5cb685('0x1b0f')]=_0x1b4c1f,_0x2d41e2['closeDialog']=_0x3ca2d6,_0x46ed88['variable'][_0x5cb685('0x2122')]({'nolimit':!![]})['$promise'][_0x5cb685('0xaa5')](function(_0x12ad10){var _0x2553fc=_0x5cb685;return _0x2d41e2['variables']=_0x12ad10[_0x2553fc('0x580')]?_0x12ad10[_0x2553fc('0x580')]:[],_0x46ed88[_0x2553fc('0x188e')][_0x2553fc('0x3e7')]()[_0x2553fc('0x1dc2')];})[_0x5cb685('0xaa5')](function(_0x36702d){var _0x5e32b5=_0x5cb685;return _0x2d41e2[_0x5e32b5('0x27a9')]=_0x51538b()[_0x5e32b5('0x1485')](_0x51538b()[_0x5e32b5('0x9f2')](_0x36702d),[_0x5e32b5('0x1dc2'),_0x5e32b5('0xd92'),'createdAt','updatedAt',_0x5e32b5('0x129a')]),_0x2d41e2[_0x5e32b5('0x27a9')][_0x5e32b5('0x1599')](_0x5e32b5('0xef3')),_0x46ed88[_0x5e32b5('0x1f51')][_0x5e32b5('0x3e7')]()[_0x5e32b5('0x1dc2')];})['then'](function(_0x34efcf){var _0x100b9d=_0x5cb685;_0x2d41e2[_0x100b9d('0xc69')]=_0x51538b()['difference'](_0x51538b()[_0x100b9d('0x9f2')](_0x34efcf),[_0x100b9d('0x1dc2'),'$resolved','createdAt','updatedAt','sourceid']),_0x2d41e2[_0x100b9d('0xc69')][_0x100b9d('0x1599')](_0x100b9d('0xef3'));})[_0x5cb685('0x253d')](function(_0x45ed19){var _0x31bf22=_0x5cb685;_0x326071[_0x31bf22('0x187f')]({'title':_0x45ed19['status']?_0x31bf22('0x16c2')+_0x45ed19[_0x31bf22('0x2fa')]+_0x31bf22('0x169e')+_0x45ed19[_0x31bf22('0x24df')]:'SYSTEM:GETVARIABLES','msg':_0x45ed19[_0x31bf22('0x10fd')]?JSON[_0x31bf22('0xa48')](_0x45ed19[_0x31bf22('0x10fd')]):_0x45ed19[_0x31bf22('0x684')]()});}),_0x46ed88[_0x5cb685('0xc44')]['getFields']({'id':_0x2cd5d9['id'],'ticketType':_0x5b07e1[_0x5cb685('0x1146')]?_0x5b07e1[_0x5cb685('0x1146')]:undefined})['$promise'][_0x5cb685('0xaa5')](function(_0x47d78f){var _0x523f54=_0x5cb685;_0x2d41e2[_0x523f54('0x722')]=!![],_0x2d41e2[_0x523f54('0x13a')]=_0x47d78f[_0x523f54('0x580')]?_0x47d78f[_0x523f54('0x580')]:[],_0x2d41e2[_0x523f54('0x1a38')][_0x523f54('0x1dfc')]&&(_0x2d41e2[_0x523f54('0x6fc')]=_0x51538b()[_0x523f54('0xe9e')](_0x2d41e2[_0x523f54('0x13a')],{'id':_0x2d41e2[_0x523f54('0x1a38')][_0x523f54('0x1dfc')]}));})[_0x5cb685('0x253d')](function(_0x446d18){var _0x52310a=_0x5cb685;_0x2d41e2[_0x52310a('0x722')]=![],console['error'](_0x446d18);});function _0x301c8d(){var _0x23b0b4=_0x5cb685;_0x2d41e2[_0x23b0b4('0x4c6')]=[],_0x2d41e2[_0x23b0b4('0x6fc')]&&(_0x2d41e2[_0x23b0b4('0x1a38')][_0x23b0b4('0x1dfc')]=_0x2d41e2[_0x23b0b4('0x6fc')]['id'],_0x2d41e2[_0x23b0b4('0x1a38')]['nameField']=_0x2d41e2[_0x23b0b4('0x6fc')][_0x23b0b4('0x25d6')],_0x2d41e2[_0x23b0b4('0x1a38')]['customField']=_0x2d41e2[_0x23b0b4('0x6fc')][_0x23b0b4('0x113b')]),_0x46ed88[_0x23b0b4('0x414')]['save'](_0x2d41e2['item'])[_0x23b0b4('0x1dc2')]['then'](function(_0x273d1e){var _0x25edfb=_0x23b0b4;_0x2d41e2[_0x25edfb('0x1a30')][_0x25edfb('0x6ee')](_0x273d1e),_0x326071['success']({'title':_0x51538b()[_0x25edfb('0x1b56')](_0x3046b0)+_0x25edfb('0xbf5'),'msg':_0x51538b()['capitalize'](_0x3046b0)+_0x25edfb('0xdca')}),_0x3ca2d6();})['catch'](function(_0xba7ccf){var _0x3eeb04=_0x23b0b4;console[_0x3eeb04('0x187f')](_0xba7ccf),_0x2d41e2['errors']=_0xba7ccf[_0x3eeb04('0x10fd')]['errors']||[{'message':_0xba7ccf[_0x3eeb04('0x684')](),'type':_0x3eeb04('0x23f')}];});}function _0x2db533(){var _0x1fdfe9=_0x5cb685;_0x2d41e2[_0x1fdfe9('0x4c6')]=[],_0x2d41e2['customField']&&(_0x2d41e2[_0x1fdfe9('0x1a38')]['idField']=_0x2d41e2[_0x1fdfe9('0x6fc')]['id'],_0x2d41e2['item']['nameField']=_0x2d41e2['customField'][_0x1fdfe9('0x25d6')],_0x2d41e2[_0x1fdfe9('0x1a38')]['customField']=_0x2d41e2['customField']['custom']),_0x46ed88['intFreshsalesField'][_0x1fdfe9('0x264e')]({'id':_0x2d41e2[_0x1fdfe9('0x1a38')]['id']},_0x2d41e2[_0x1fdfe9('0x1a38')])['$promise'][_0x1fdfe9('0xaa5')](function(_0x178095){var _0x510118=_0x1fdfe9,_0x157f46=_0x51538b()[_0x510118('0xe9e')](_0x2d41e2[_0x510118('0x1a30')],{'id':_0x178095['id']});_0x157f46&&_0x51538b()[_0x510118('0x283c')](_0x157f46,_0x178095),_0x326071[_0x510118('0xe10')]({'title':_0x51538b()[_0x510118('0x1b56')](_0x3046b0)+_0x510118('0x1c44'),'msg':_0x51538b()[_0x510118('0x1b56')](_0x3046b0)+_0x510118('0x20bf')}),_0x3ca2d6();})[_0x1fdfe9('0x253d')](function(_0x16ae3c){var _0x552f6a=_0x1fdfe9;console[_0x552f6a('0x187f')](_0x16ae3c),_0x2d41e2['errors']=_0x16ae3c[_0x552f6a('0x10fd')]['errors']||[{'message':_0x16ae3c[_0x552f6a('0x684')](),'type':'api.intItem.update'}];});}function _0x49d00d(_0x2036c6){var _0x37c924=_0x5cb685;_0x2d41e2[_0x37c924('0x4c6')]=[];var _0x3f8e8d=_0x5a9e83[_0x37c924('0x281e')]()[_0x37c924('0x110a')](_0x37c924('0x12a3'))['content']('The\x20'+_0x3046b0+_0x37c924('0x210d'))[_0x37c924('0x5b5')](_0x37c924('0xf00')+_0x51538b()[_0x37c924('0x1b56')](_0x3046b0))['ok'](_0x37c924('0x1e76'))[_0x37c924('0x2030')](_0x37c924('0x9c6'))[_0x37c924('0x116d')](_0x2036c6);_0x5a9e83[_0x37c924('0x1e6d')](_0x3f8e8d)[_0x37c924('0xaa5')](function(){var _0x3f29cb=_0x37c924;_0x46ed88[_0x3f29cb('0x414')]['delete']({'id':_0x2d41e2[_0x3f29cb('0x1a38')]['id']})[_0x3f29cb('0x1dc2')][_0x3f29cb('0xaa5')](function(){var _0x51617a=_0x3f29cb;_0x51538b()[_0x51617a('0xf6d')](_0x2d41e2[_0x51617a('0x1a30')],{'id':_0x2d41e2[_0x51617a('0x1a38')]['id']}),_0x326071['success']({'title':_0x51538b()[_0x51617a('0x1b56')](_0x3046b0)+_0x51617a('0x1e42'),'msg':_0x51538b()[_0x51617a('0x1b56')](_0x3046b0)+_0x51617a('0xcd9')}),_0x3ca2d6();})['catch'](function(_0x67fd6d){var _0x5239a4=_0x3f29cb;console['error'](_0x67fd6d),_0x2d41e2['errors']=_0x67fd6d[_0x5239a4('0x10fd')]['errors']||[{'message':_0x67fd6d[_0x5239a4('0x684')](),'type':_0x5239a4('0x37d')}];});},function(){});}function _0x1b4c1f(){var _0x35f507=_0x5cb685;return _0x2d41e2[_0x35f507('0x1a38')][_0x35f507('0x1e29')]!==undefined?_0x2d41e2[_0x35f507('0x1a38')]['variableName']:_0x35f507('0x2444');}function _0x3ca2d6(){var _0xe4f517=_0x5cb685;_0x5a9e83[_0xe4f517('0x1120')]();}}const _0x5c8a94=_0x477aee;_0x4b66bc[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),'setting',_0x1a8446('0x157'),'toasty','Auth',_0x1a8446('0x13e3'),_0x1a8446('0x1a50')];function _0x4b66bc(_0x405dff,_0x3f6b21,_0xbc2e15,_0x3b5342,_0x1dd84e,_0x40136a,_0x44a6a3,_0x321656,_0x2e4116,_0x21d682,_0xa8e17b,_0x674936){var _0x228bd2=_0x1a8446,_0x5ebee0=this;_0x5ebee0[_0x228bd2('0x7fc')]=_0x21d682[_0x228bd2('0xacc')](),_0x5ebee0[_0x228bd2('0x1202')]=_0x40136a,_0x5ebee0[_0x228bd2('0x143f')]=_0x44a6a3,_0x5ebee0[_0x228bd2('0x1d53')]=_0x5ebee0[_0x228bd2('0x143f')][_0x228bd2('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5ebee0[_0x228bd2('0x18cc')]=_0x3f6b21[_0x228bd2('0x1cc2')]()+_0x228bd2('0x356')+_0x3f6b21[_0x228bd2('0x160c')](),_0x5ebee0[_0x228bd2('0x13e3')]=_0xa8e17b||_0x405dff[_0x228bd2('0x25cf')][_0x228bd2('0x13e3')]||{},_0x5ebee0['userProfileSection']=_0x674936&&_0x674936['count']==0x1?_0x674936['rows'][0x0]:null,_0x5ebee0[_0x228bd2('0xada')]=_0x21d682[_0x228bd2('0xffd')](_0x5ebee0[_0x228bd2('0x1a50')]?_0x5ebee0['userProfileSection'][_0x228bd2('0xada')]:null),_0x5ebee0[_0x228bd2('0x9f0')]={},_0x5ebee0[_0x228bd2('0xe5c')]=_0x405dff['params'][_0x228bd2('0x25c2')]||0x0,_0x5ebee0[_0x228bd2('0xc10')]=_0x2e4116[_0x228bd2('0x3a1')],_0x5ebee0[_0x228bd2('0x16ad')]=_0xa7a8b0,_0x5ebee0['saveFreshsalesAccount']=_0x30aa63;function _0xa7a8b0(){var _0x4c7e81=_0x228bd2;_0x405dff['go'](_0x4c7e81('0x1d45'),{},{'reload':'app.integrations.freshsalesAccounts'});}function _0x30aa63(){var _0x581ff3=_0x228bd2;_0x321656[_0x581ff3('0xc44')]['update']({'id':_0x5ebee0[_0x581ff3('0x13e3')]['id']},_0x5ebee0[_0x581ff3('0x13e3')])['$promise'][_0x581ff3('0xaa5')](function(){var _0x328f5c=_0x581ff3;_0x2e4116['success']({'title':_0x328f5c('0x7c3'),'msg':_0x5ebee0[_0x328f5c('0x13e3')][_0x328f5c('0x25d6')]?_0x5ebee0[_0x328f5c('0x13e3')][_0x328f5c('0x25d6')]+_0x328f5c('0x1734'):''});})[_0x581ff3('0x253d')](function(_0x25b6ac){var _0x2366f4=_0x581ff3;_0x2e4116[_0x2366f4('0x187f')]({'title':_0x25b6ac[_0x2366f4('0x2fa')]?'API:'+_0x25b6ac['status']+_0x2366f4('0x169e')+_0x25b6ac[_0x2366f4('0x24df')]:_0x2366f4('0x32b'),'msg':_0x25b6ac['data']?JSON[_0x2366f4('0xa48')](_0x25b6ac[_0x2366f4('0x10fd')]):_0x25b6ac[_0x2366f4('0x684')]()});});}}const _0x3ab0d3=_0x4b66bc,_0x1243f2=_0x4fb511['p']+_0x1a8446('0x161f');_0x2efcd1['$inject']=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'freshsalesAccounts',_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x2efcd1(_0x712d5b,_0x43b3d3,_0x5f4d77,_0x1cfe9a,_0x235e4b,_0xc45f4c,_0xdcd7,_0x1c4765,_0x579999,_0x335de2,_0xab25da,_0x1484c0,_0x40191,_0x229090,_0xb9090a,_0x1d77cb,_0x4df242){var _0x5c2e95=_0x1a8446,_0x310cf0=this;_0x310cf0[_0x5c2e95('0x1202')]=_0x1d77cb,_0x310cf0[_0x5c2e95('0x143f')]=_0x4df242,_0x310cf0[_0x5c2e95('0x7fc')]=_0xb9090a['getCurrentUser'](),_0x310cf0[_0x5c2e95('0x1d1e')]=_0x579999||{'count':0x0,'rows':[]},_0x310cf0['userProfile']=_0x335de2,_0x310cf0[_0x5c2e95('0x1a50')]=_0xab25da&&_0xab25da[_0x5c2e95('0xd15')]==0x1?_0xab25da[_0x5c2e95('0x580')][0x0]:null,_0x310cf0[_0x5c2e95('0xada')]=_0xb9090a['parseCrudPermissions'](_0x310cf0[_0x5c2e95('0x1a50')]?_0x310cf0[_0x5c2e95('0x1a50')]['crudPermissions']:null),_0x310cf0[_0x5c2e95('0x12b6')]=_0x5c2e95('0x1d1e'),_0x310cf0['listOrder']='',_0x310cf0[_0x5c2e95('0x8cc')]=null,_0x310cf0[_0x5c2e95('0x13e')]=[],_0x310cf0[_0x5c2e95('0x582')]={'fields':_0x5c2e95('0x520'),'limit':0xa,'page':0x1},_0x310cf0[_0x5c2e95('0x1927')]=_0x195d53,_0x310cf0[_0x5c2e95('0xa49')]=_0x5c5004,_0x310cf0[_0x5c2e95('0x271')]=_0xf80409,_0x310cf0[_0x5c2e95('0xe10')]=_0x350c9b,_0x310cf0[_0x5c2e95('0x1ce1')]=_0x52684d,_0x310cf0[_0x5c2e95('0xe2c')]=_0x4d1c85,_0x310cf0[_0x5c2e95('0x18a9')]=_0x426887,_0x310cf0[_0x5c2e95('0x8ed')]=_0x22b5f0,_0x310cf0[_0x5c2e95('0x1236')]=_0x140ff6,_0x310cf0['deselectFreshsalesAccounts']=_0x2e15dd,_0x310cf0[_0x5c2e95('0x26df')]=_0x507578;function _0x195d53(_0x4bb75e){var _0x1b051a=_0x5c2e95;_0x5f4d77['go'](_0x1b051a('0xae2'),{'id':_0x4bb75e['id'],'freshsalesAccount':_0x4bb75e,'crudPermissions':_0x310cf0[_0x1b051a('0xada')]});}function _0x5c5004(_0x43ae0b){var _0x54f495=_0x5c2e95;return _0x1484c0[_0x54f495('0xc44')]['getFields']({'id':_0x43ae0b['id'],'test':!![]})[_0x54f495('0x1dc2')][_0x54f495('0xaa5')](function(){var _0x2f951c=_0x54f495;_0x229090['success']({'title':_0x2f951c('0xd40'),'msg':_0x2f951c('0x2633')});})[_0x54f495('0x253d')](function(_0x2c3f5f){var _0x57c485=_0x54f495;_0x229090[_0x57c485('0x187f')]({'title':'FreshsalesAccount\x20properly\x20tested','msg':_0x2c3f5f[_0x57c485('0x10fd')]?_0x2c3f5f[_0x57c485('0x10fd')]['message']?_0x2c3f5f[_0x57c485('0x10fd')][_0x57c485('0x1402')]:JSON[_0x57c485('0xa48')](_0x2c3f5f[_0x57c485('0x10fd')]):_0x2c3f5f[_0x57c485('0x684')]()});});}function _0xf80409(_0x1851f3,_0x22280e){var _0x1e51c9=_0x5c2e95,_0x2683ae=_0x235e4b[_0x1e51c9('0x281e')]()[_0x1e51c9('0x110a')](_0x1e51c9('0x88d')+_0x51538b()['startCase'](_0x1e51c9('0x13e3'))+'?')[_0x1e51c9('0x102e')](_0x1e51c9('0x389')+(_0x1851f3['name']||_0x1e51c9('0x13e3'))+_0x1e51c9('0x697')+_0x1e51c9('0x210d'))[_0x1e51c9('0x5b5')](_0x1e51c9('0x15c6'))[_0x1e51c9('0x116d')](_0x22280e)['ok']('OK')['cancel']('CANCEL');_0x235e4b[_0x1e51c9('0x1e6d')](_0x2683ae)[_0x1e51c9('0xaa5')](function(){_0x426887(_0x1851f3);},function(){var _0x33f4c0=_0x1e51c9;console['log'](_0x33f4c0('0x2410'));});}var _0x4d60f5=!![],_0x20d68a=0x1;_0x712d5b[_0x5c2e95('0x1ccf')](_0x5c2e95('0x1788'),function(_0xa0d143,_0xa2402d){var _0x496244=_0x5c2e95;_0x4d60f5?_0xdcd7(function(){_0x4d60f5=![];}):(!_0xa2402d&&(_0x20d68a=_0x310cf0[_0x496244('0x582')]['page']),_0xa0d143!==_0xa2402d&&(_0x310cf0[_0x496244('0x582')]['page']=0x1),!_0xa0d143&&(_0x310cf0[_0x496244('0x582')][_0x496244('0x41')]=_0x20d68a),_0x310cf0['getFreshsalesAccounts']());});function _0x350c9b(_0x580ada){var _0x1158e3=_0x5c2e95;_0x310cf0[_0x1158e3('0x1d1e')]=_0x580ada||{'count':0x0,'rows':[]};}function _0x52684d(){var _0x1eab9f=_0x5c2e95;_0x310cf0[_0x1eab9f('0x582')][_0x1eab9f('0x8b1')]=(_0x310cf0['query'][_0x1eab9f('0x41')]-0x1)*_0x310cf0['query'][_0x1eab9f('0xf4d')],_0xb9090a[_0x1eab9f('0x26e8')](_0x1eab9f('0x178b'))?_0x310cf0[_0x1eab9f('0x159a')]=_0x1484c0[_0x1eab9f('0xc44')][_0x1eab9f('0x2122')](_0x310cf0['query'],_0x350c9b)[_0x1eab9f('0x1dc2')]:(_0x310cf0[_0x1eab9f('0x582')]['id']=_0x310cf0[_0x1eab9f('0x1e97')]['id'],_0x310cf0[_0x1eab9f('0x582')][_0x1eab9f('0x224d')]='FreshsalesAccounts',_0x310cf0[_0x1eab9f('0x159a')]=_0x1484c0[_0x1eab9f('0x1e97')][_0x1eab9f('0x1cf1')](_0x310cf0['query'],_0x350c9b)['$promise']);}function _0x4d1c85(_0x35cddd,_0x1c5190){var _0x343224=_0x5c2e95;_0x235e4b[_0x343224('0x1e6d')]({'controller':_0x343224('0x26d6'),'controllerAs':'vm','templateUrl':_0x1243f2,'parent':angular[_0x343224('0x1aa8')](_0xc45f4c[_0x343224('0x54c')]),'targetEvent':_0x35cddd,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x1c5190,'freshsalesAccounts':_0x310cf0[_0x343224('0x1d1e')][_0x343224('0x580')],'license':_0x310cf0[_0x343224('0x1202')],'setting':_0x310cf0[_0x343224('0x143f')],'crudPermissions':_0x310cf0[_0x343224('0xada')]}});}function _0x426887(_0x59248d){var _0xa28775=_0x5c2e95;_0x1484c0['intFreshsalesAccount'][_0xa28775('0x926')]({'id':_0x59248d['id']})['$promise'][_0xa28775('0xaa5')](function(){var _0x279878=_0xa28775;_0x51538b()['remove'](_0x310cf0[_0x279878('0x1d1e')][_0x279878('0x580')],{'id':_0x59248d['id']}),_0x310cf0['freshsalesAccounts']['count']-=0x1,!_0x310cf0['freshsalesAccounts'][_0x279878('0x580')][_0x279878('0x2587')]&&_0x310cf0[_0x279878('0x1ce1')](),_0x229090[_0x279878('0xe10')]({'title':_0x51538b()['startCase']('FreshsalesAccount')+'\x20deleted!','msg':_0x59248d[_0x279878('0x25d6')]?_0x59248d['name']+_0x279878('0xcd9'):''});})[_0xa28775('0x253d')](function(_0x1933cb){var _0x5136cb=_0xa28775;if(_0x1933cb[_0x5136cb('0x10fd')]&&_0x1933cb[_0x5136cb('0x10fd')][_0x5136cb('0x4c6')]&&_0x1933cb[_0x5136cb('0x10fd')][_0x5136cb('0x4c6')][_0x5136cb('0x2587')]){_0x310cf0['errors']=_0x1933cb[_0x5136cb('0x10fd')][_0x5136cb('0x4c6')]||[{'message':_0x1933cb[_0x5136cb('0x684')](),'type':_0x5136cb('0xab8')}];for(var _0x2644e9=0x0;_0x2644e9<_0x1933cb[_0x5136cb('0x10fd')]['errors']['length'];_0x2644e9++){_0x229090[_0x5136cb('0x187f')]({'title':_0x1933cb[_0x5136cb('0x10fd')][_0x5136cb('0x4c6')][_0x2644e9][_0x5136cb('0x6c8')],'msg':_0x1933cb[_0x5136cb('0x10fd')][_0x5136cb('0x4c6')][_0x2644e9][_0x5136cb('0x1402')]});}}else _0x229090['error']({'title':_0x1933cb[_0x5136cb('0x2fa')]?'API:'+_0x1933cb[_0x5136cb('0x2fa')]+_0x5136cb('0x169e')+_0x1933cb[_0x5136cb('0x24df')]:_0x5136cb('0xab8'),'msg':_0x1933cb[_0x5136cb('0x10fd')]?JSON[_0x5136cb('0xa48')](_0x1933cb['data'][_0x5136cb('0x1402')]):_0x1933cb['message']||_0x1933cb[_0x5136cb('0x684')]()});});}function _0x22b5f0(){var _0x1a4296=_0x5c2e95,_0x2c5c4b=angular[_0x1a4296('0x20a')](_0x310cf0['selectedFreshsalesAccounts']);return _0x310cf0[_0x1a4296('0x13e')]=[],_0x2c5c4b;}function _0x140ff6(_0x116f30){var _0x5bfbfb=_0x5c2e95,_0x5efc31=_0x235e4b[_0x5bfbfb('0x281e')]()[_0x5bfbfb('0x110a')](_0x5bfbfb('0x334'))[_0x5bfbfb('0x102e')](''+_0x310cf0[_0x5bfbfb('0x13e')][_0x5bfbfb('0x2587')]+_0x5bfbfb('0x1443')+_0x5bfbfb('0x210d'))['ariaLabel'](_0x5bfbfb('0x77'))[_0x5bfbfb('0x116d')](_0x116f30)['ok']('OK')[_0x5bfbfb('0x2030')](_0x5bfbfb('0x2410'));_0x235e4b['show'](_0x5efc31)[_0x5bfbfb('0xaa5')](function(){var _0x2125e5=_0x5bfbfb;_0x310cf0[_0x2125e5('0x13e')][_0x2125e5('0x15b5')](function(_0x5b2907){_0x426887(_0x5b2907);}),_0x310cf0[_0x2125e5('0x13e')]=[];});}function _0x2e15dd(){var _0x4e1d8c=_0x5c2e95;_0x310cf0[_0x4e1d8c('0x13e')]=[];}function _0x507578(){var _0x56fb87=_0x5c2e95;_0x310cf0[_0x56fb87('0x13e')]=_0x310cf0[_0x56fb87('0x1d1e')][_0x56fb87('0x580')];}}const _0x1d343a=_0x2efcd1;_0x1c9e75[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty',_0x1a8446('0xbae'),'salesforceAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x1c9e75(_0x49c6d7,_0x42afc3,_0x1d23e8,_0x23bbc2,_0x29ac9a,_0x1184c7,_0x3ac218,_0x440f11,_0x44320b,_0x136828,_0x5245aa,_0x37d2a0,_0x2a9600,_0xe79d6d){var _0x53b8a1=_0x1a8446,_0xfb140e=this;_0xfb140e['currentUser']=_0x5245aa[_0x53b8a1('0xacc')](),_0xfb140e['errors']=[],_0xfb140e[_0x53b8a1('0x143f')]=_0x2a9600,_0xfb140e[_0x53b8a1('0x1202')]=_0x37d2a0,_0xfb140e['crudPermissions']=_0xe79d6d,_0xfb140e[_0x53b8a1('0x9f0')]={},_0xfb140e[_0x53b8a1('0x1d53')]=_0xfb140e['setting']&&_0xfb140e[_0x53b8a1('0x143f')][_0x53b8a1('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xfb140e[_0x53b8a1('0x110a')]=_0x53b8a1('0x21b8'),_0xfb140e[_0x53b8a1('0x285f')]=angular[_0x53b8a1('0x20a')](_0x44320b),_0xfb140e['salesforceAccounts']=_0x440f11,_0xfb140e[_0x53b8a1('0x2237')]=![];!_0xfb140e[_0x53b8a1('0x285f')]&&(_0xfb140e[_0x53b8a1('0x285f')]={'type':_0x53b8a1('0x165e'),'serverUrl':_0x1d23e8[_0x53b8a1('0x1cc2')]()+_0x53b8a1('0x356')+_0x1d23e8['host']()+(_0x1d23e8['port']()?':'+_0x1d23e8[_0x53b8a1('0x191')]():'')},_0xfb140e[_0x53b8a1('0x110a')]=_0x53b8a1('0x10b3'),_0xfb140e[_0x53b8a1('0x2237')]=!![]);_0xfb140e[_0x53b8a1('0x12e4')]=_0x539785,_0xfb140e[_0x53b8a1('0x6ea')]=_0x16d2c9,_0xfb140e[_0x53b8a1('0x1e12')]=_0xbc1de7,_0xfb140e[_0x53b8a1('0xc09')]=_0x4acfee,_0xfb140e['closeDialog']=_0x267c72;function _0x539785(){var _0x1de950=_0x53b8a1;_0xfb140e[_0x1de950('0x4c6')]=[],_0x136828['intSalesforceAccount'][_0x1de950('0x242b')](_0xfb140e[_0x1de950('0x285f')])[_0x1de950('0x1dc2')]['then'](function(_0x5aa0ac){var _0x4a2419=_0x1de950;_0xfb140e[_0x4a2419('0xbae')][_0x4a2419('0x6ee')](_0x5aa0ac[_0x4a2419('0x256a')]()),_0x3ac218[_0x4a2419('0xe10')]({'title':'SalesforceAccount\x20properly\x20created','msg':_0xfb140e['salesforceAccount'][_0x4a2419('0x25d6')]?_0xfb140e[_0x4a2419('0x285f')]['name']+_0x4a2419('0xdca'):''}),_0x267c72(_0x5aa0ac);})[_0x1de950('0x253d')](function(_0x54fd59){var _0x4de75f=_0x1de950;if(_0x54fd59[_0x4de75f('0x10fd')]&&_0x54fd59[_0x4de75f('0x10fd')][_0x4de75f('0x4c6')]&&_0x54fd59[_0x4de75f('0x10fd')][_0x4de75f('0x4c6')][_0x4de75f('0x2587')]){_0xfb140e[_0x4de75f('0x4c6')]=_0x54fd59[_0x4de75f('0x10fd')]['errors']||[{'message':_0x54fd59['toString'](),'type':_0x4de75f('0x2737')}];for(var _0x4fc131=0x0;_0x4fc131<_0x54fd59[_0x4de75f('0x10fd')]['errors'][_0x4de75f('0x2587')];_0x4fc131+=0x1){_0x3ac218['error']({'title':_0x54fd59[_0x4de75f('0x10fd')]['errors'][_0x4fc131][_0x4de75f('0x6c8')],'msg':_0x54fd59[_0x4de75f('0x10fd')][_0x4de75f('0x4c6')][_0x4fc131][_0x4de75f('0x1402')]});}}else _0x3ac218[_0x4de75f('0x187f')]({'title':_0x54fd59[_0x4de75f('0x2fa')]?_0x4de75f('0x16c2')+_0x54fd59[_0x4de75f('0x2fa')]+_0x4de75f('0x169e')+_0x54fd59[_0x4de75f('0x24df')]:'api.intSalesforceAccount.save','msg':_0x54fd59['data']?JSON[_0x4de75f('0xa48')](_0x54fd59['data'][_0x4de75f('0x1402')]):_0x54fd59[_0x4de75f('0x684')]()});});}function _0x16d2c9(){var _0x4b40d2=_0x53b8a1;_0xfb140e[_0x4b40d2('0x4c6')]=[],_0x136828[_0x4b40d2('0x14aa')][_0x4b40d2('0x264e')]({'id':_0xfb140e[_0x4b40d2('0x285f')]['id']},_0xfb140e[_0x4b40d2('0x285f')])[_0x4b40d2('0x1dc2')][_0x4b40d2('0xaa5')](function(_0x5d2757){var _0x37564b=_0x4b40d2,_0x1736f8=_0x51538b()[_0x37564b('0xe9e')](_0xfb140e[_0x37564b('0xbae')],{'id':_0x5d2757['id']});_0x1736f8&&_0x51538b()[_0x37564b('0x283c')](_0x1736f8,_0x51538b()[_0x37564b('0x104e')](_0x5d2757[_0x37564b('0x256a')](),_0x51538b()[_0x37564b('0x9f2')](_0x1736f8))),_0x3ac218[_0x37564b('0xe10')]({'title':_0x37564b('0x249b'),'msg':_0xfb140e[_0x37564b('0x285f')][_0x37564b('0x25d6')]?_0xfb140e[_0x37564b('0x285f')]['name']+_0x37564b('0x20bf'):''}),_0x267c72(_0x5d2757);})[_0x4b40d2('0x253d')](function(_0x258ae9){var _0x1ea05b=_0x4b40d2;if(_0x258ae9['data']&&_0x258ae9[_0x1ea05b('0x10fd')]['errors']&&_0x258ae9[_0x1ea05b('0x10fd')][_0x1ea05b('0x4c6')][_0x1ea05b('0x2587')]){_0xfb140e[_0x1ea05b('0x4c6')]=_0x258ae9[_0x1ea05b('0x10fd')][_0x1ea05b('0x4c6')]||[{'message':_0x258ae9[_0x1ea05b('0x684')](),'type':'api.intSalesforceAccount.update'}];for(var _0xa1f65d=0x0;_0xa1f65d<_0x258ae9[_0x1ea05b('0x10fd')][_0x1ea05b('0x4c6')][_0x1ea05b('0x2587')];_0xa1f65d++){_0x3ac218[_0x1ea05b('0x187f')]({'title':_0x258ae9[_0x1ea05b('0x10fd')]['errors'][_0xa1f65d]['type'],'msg':_0x258ae9['data']['errors'][_0xa1f65d][_0x1ea05b('0x1402')]});}}else _0x3ac218[_0x1ea05b('0x187f')]({'title':_0x258ae9[_0x1ea05b('0x2fa')]?_0x1ea05b('0x16c2')+_0x258ae9[_0x1ea05b('0x2fa')]+'\x20-\x20'+_0x258ae9[_0x1ea05b('0x24df')]:_0x1ea05b('0x123b'),'msg':_0x258ae9[_0x1ea05b('0x10fd')]?JSON['stringify'](_0x258ae9[_0x1ea05b('0x10fd')][_0x1ea05b('0x1402')]):_0x258ae9[_0x1ea05b('0x684')]()});});}function _0xbc1de7(_0x27fc9e){var _0x3a2d03=_0x53b8a1;_0xfb140e['errors']=[];var _0x369b9=_0x23bbc2[_0x3a2d03('0x281e')]()[_0x3a2d03('0x110a')]('Are\x20you\x20sure?')['content']('The\x20salesforceAccount\x20will\x20be\x20deleted.')[_0x3a2d03('0x5b5')](_0x3a2d03('0x278d'))['ok']('Delete')[_0x3a2d03('0x2030')](_0x3a2d03('0x9c6'))[_0x3a2d03('0x116d')](_0x27fc9e);_0x23bbc2['show'](_0x369b9)[_0x3a2d03('0xaa5')](function(){var _0x143540=_0x3a2d03;_0x136828[_0x143540('0x14aa')]['delete']({'id':_0xfb140e[_0x143540('0x285f')]['id']})['$promise']['then'](function(){var _0x1b2681=_0x143540;_0x51538b()[_0x1b2681('0xf6d')](_0xfb140e[_0x1b2681('0xbae')],{'id':_0xfb140e[_0x1b2681('0x285f')]['id']}),_0x3ac218[_0x1b2681('0xe10')]({'title':_0x1b2681('0x2274'),'msg':(_0xfb140e[_0x1b2681('0x285f')][_0x1b2681('0x25d6')]||_0x1b2681('0x285f'))+_0x1b2681('0xcd9')}),_0x267c72(_0xfb140e['salesforceAccount']);})[_0x143540('0x253d')](function(_0x10b0fc){var _0x238499=_0x143540;if(_0x10b0fc[_0x238499('0x10fd')]&&_0x10b0fc[_0x238499('0x10fd')][_0x238499('0x4c6')]&&_0x10b0fc[_0x238499('0x10fd')][_0x238499('0x4c6')][_0x238499('0x2587')]){_0xfb140e[_0x238499('0x4c6')]=_0x10b0fc[_0x238499('0x10fd')][_0x238499('0x4c6')]||[{'message':_0x10b0fc[_0x238499('0x684')](),'type':_0x238499('0xc1d')}];for(var _0x29a612=0x0;_0x29a612<_0x10b0fc[_0x238499('0x10fd')]['errors']['length'];_0x29a612++){_0x3ac218[_0x238499('0x187f')]({'title':_0x10b0fc[_0x238499('0x10fd')][_0x238499('0x4c6')][_0x29a612]['type'],'msg':_0x10b0fc[_0x238499('0x10fd')][_0x238499('0x4c6')][_0x29a612][_0x238499('0x1402')]});}}else _0x3ac218[_0x238499('0x187f')]({'title':_0x10b0fc[_0x238499('0x2fa')]?_0x238499('0x16c2')+_0x10b0fc['status']+_0x238499('0x169e')+_0x10b0fc['statusText']:'api.intSalesforceAccount.delete','msg':_0x10b0fc[_0x238499('0x10fd')]?JSON[_0x238499('0xa48')](_0x10b0fc[_0x238499('0x10fd')][_0x238499('0x1402')]):_0x10b0fc[_0x238499('0x1402')]||_0x10b0fc[_0x238499('0x684')]()});});},function(){});}function _0x4acfee(_0x322d73){return _0x322d73===null?undefined:new Date(_0x322d73);}function _0x267c72(_0x2f36e9){_0x23bbc2['hide'](_0x2f36e9);}}const _0x28e443=_0x1c9e75,_0x9c02ab=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html',_0x34b63d=_0x4fb511['p']+_0x1a8446('0x57f');_0x15d029[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),'api',_0x1a8446('0x2a4'),'Auth'];function _0x15d029(_0x1ee026,_0x46991c,_0x188e22,_0x46a713,_0x560fc9){var _0x5a663c=_0x1a8446,_0x3db1bd=this;_0x3db1bd[_0x5a663c('0x7fc')]=_0x560fc9['getCurrentUser'](),_0x3db1bd[_0x5a663c('0x285f')]={},_0x3db1bd[_0x5a663c('0x1a5e')]={},_0x3db1bd[_0x5a663c('0x555')]=[],_0x3db1bd[_0x5a663c('0xa')]=-0x1,_0x3db1bd[_0x5a663c('0xada')],_0x3db1bd['init']=_0x1c60eb,_0x3db1bd[_0x5a663c('0x16af')]=_0x246e60,_0x3db1bd[_0x5a663c('0x2862')]=_0x1e627d,_0x3db1bd['deleteSalesforceConfiguration']=_0x2d9934,_0x3db1bd[_0x5a663c('0x13d9')]=_0x22aa92;function _0x22aa92(){var _0x140a97=_0x5a663c;return _0x188e22['intSalesforceConfiguration']['update']({'id':_0x3db1bd[_0x140a97('0x1a5e')]['id']},_0x3db1bd[_0x140a97('0x1a5e')])[_0x140a97('0x1dc2')]['then'](function(){var _0x4348c1=_0x140a97;_0x46a713[_0x4348c1('0xe10')]({'title':_0x4348c1('0xed3'),'msg':'Module\x20has\x20been\x20updated!'});})[_0x140a97('0x253d')](function(_0x149805){var _0x2c47dc=_0x140a97;_0x46a713[_0x2c47dc('0x187f')]({'title':_0x149805['status']?_0x2c47dc('0x16c2')+_0x149805['status']+_0x2c47dc('0x169e')+_0x149805[_0x2c47dc('0x24df')]:_0x2c47dc('0x7e9'),'msg':_0x149805[_0x2c47dc('0x10fd')]?JSON[_0x2c47dc('0xa48')](_0x149805[_0x2c47dc('0x10fd')]):_0x149805['toString']()});});}function _0x1c60eb(_0x1898a3,_0xa15b41){var _0x3d6103=_0x5a663c;_0x3db1bd[_0x3d6103('0x285f')]=_0x1898a3,_0x3db1bd['crudPermissions']=typeof _0xa15b41!==_0x3d6103('0x1574')?_0xa15b41:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x188e22[_0x3d6103('0x14aa')][_0x3d6103('0x281f')]({'id':_0x3db1bd[_0x3d6103('0x285f')]['id'],'sort':_0x3d6103('0xd82')})[_0x3d6103('0x1dc2')][_0x3d6103('0xaa5')](function(_0x2145ba){var _0xdb03db=_0x3d6103;return _0x3db1bd[_0xdb03db('0x555')]=_0x2145ba[_0xdb03db('0x580')]?_0x2145ba[_0xdb03db('0x580')]:[],_0x3db1bd[_0xdb03db('0x555')]['length']&&_0x3db1bd[_0xdb03db('0x16af')](0x0),_0x188e22[_0xdb03db('0x14e7')][_0xdb03db('0x2122')]({'nolimit':!![],'sort':'name'})[_0xdb03db('0x1dc2')];})[_0x3d6103('0xaa5')](function(_0x10c3b7){var _0x20a0cf=_0x3d6103;_0x3db1bd[_0x20a0cf('0x147e')]=_0x10c3b7[_0x20a0cf('0x580')]?_0x10c3b7['rows']:[],_0x3db1bd['variablesById']=_0x51538b()[_0x20a0cf('0x184a')](_0x3db1bd[_0x20a0cf('0x147e')],'id');})[_0x3d6103('0x253d')](function(_0x309158){var _0x55a82e=_0x3d6103;_0x46a713[_0x55a82e('0x187f')]({'title':_0x309158['status']?_0x55a82e('0x16c2')+_0x309158[_0x55a82e('0x2fa')]+_0x55a82e('0x169e')+_0x309158[_0x55a82e('0x24df')]:'SYSTEM:GETCONFIGURATION','msg':_0x309158[_0x55a82e('0x10fd')]?JSON[_0x55a82e('0xa48')](_0x309158[_0x55a82e('0x10fd')]):_0x309158['toString']()});});}function _0x246e60(_0x1050fd){var _0x1e2c35=_0x5a663c;_0x3db1bd[_0x1e2c35('0x1a5e')]=_0x3db1bd[_0x1e2c35('0x555')][_0x1050fd],_0x3db1bd[_0x1e2c35('0xa')]=_0x1050fd,_0x188e22[_0x1e2c35('0x1429')][_0x1e2c35('0xeba')]({'id':_0x3db1bd[_0x1e2c35('0x1a5e')]['id']})[_0x1e2c35('0x1dc2')][_0x1e2c35('0xaa5')](function(_0x113306){var _0x4f85aa=_0x1e2c35;return _0x3db1bd[_0x4f85aa('0xc3f')]=_0x113306[_0x4f85aa('0x580')]?_0x113306[_0x4f85aa('0x580')]:[],_0x188e22[_0x4f85aa('0x1429')][_0x4f85aa('0x2103')]({'id':_0x3db1bd[_0x4f85aa('0x1a5e')]['id']})[_0x4f85aa('0x1dc2')];})['then'](function(_0x30d2b3){var _0x2b0d8c=_0x1e2c35;return _0x3db1bd[_0x2b0d8c('0x27b9')]=_0x30d2b3['rows']?_0x30d2b3[_0x2b0d8c('0x580')]:[],_0x188e22[_0x2b0d8c('0x1429')][_0x2b0d8c('0x1450')]({'id':_0x3db1bd['salesforceConfiguration']['id']})[_0x2b0d8c('0x1dc2')];})[_0x1e2c35('0xaa5')](function(_0x52751d){var _0x5b69d3=_0x1e2c35;_0x3db1bd[_0x5b69d3('0x13a')]=_0x52751d[_0x5b69d3('0x580')]?_0x52751d[_0x5b69d3('0x580')]:[];})[_0x1e2c35('0x253d')](function(_0x2c92ac){var _0x3c9200=_0x1e2c35;_0x46a713[_0x3c9200('0x187f')]({'title':_0x2c92ac[_0x3c9200('0x2fa')]?_0x3c9200('0x16c2')+_0x2c92ac['status']+_0x3c9200('0x169e')+_0x2c92ac[_0x3c9200('0x24df')]:_0x3c9200('0xd6d'),'msg':_0x2c92ac[_0x3c9200('0x10fd')]?JSON[_0x3c9200('0xa48')](_0x2c92ac[_0x3c9200('0x10fd')]):_0x2c92ac[_0x3c9200('0x684')]()});});}function _0x1e627d(_0x5a0c64,_0x25fca4){var _0x1ca879=_0x5a663c;_0x1ee026[_0x1ca879('0x1e6d')]({'controller':'CreateOrEditSalesforceConfigurationDialogController','controllerAs':'vm','templateUrl':_0x9c02ab,'parent':angular[_0x1ca879('0x1aa8')](_0x46991c[_0x1ca879('0x54c')]),'targetEvent':_0x5a0c64,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0x25fca4,'configurations':_0x3db1bd[_0x1ca879('0x555')],'license':null,'setting':null,'crudPermissions':_0x3db1bd['crudPermissions']}})['finally'](function(){_0x3db1bd['getSalesforceConfiguration'](0x0);});}function _0x2d9934(_0x512841,_0x32c8b6){var _0xbe3cb3=_0x5a663c,_0x395a9b=_0x1ee026['confirm']()[_0xbe3cb3('0x110a')](_0xbe3cb3('0x1d74'))[_0xbe3cb3('0x102e')](''+(_0x32c8b6[_0xbe3cb3('0x25d6')]||_0xbe3cb3('0x1a5e'))+_0xbe3cb3('0x697')+_0xbe3cb3('0x210d'))[_0xbe3cb3('0x5b5')](_0xbe3cb3('0x1b27'))[_0xbe3cb3('0x116d')](_0x512841)['ok']('OK')['cancel']('CANCEL');_0x1ee026['show'](_0x395a9b)[_0xbe3cb3('0xaa5')](function(){var _0x1a383d=_0xbe3cb3;_0x188e22[_0x1a383d('0x1429')][_0x1a383d('0x926')]({'id':_0x32c8b6['id']})[_0x1a383d('0x1dc2')][_0x1a383d('0xaa5')](function(){var _0x4f7537=_0x1a383d;_0x51538b()[_0x4f7537('0xf6d')](_0x3db1bd[_0x4f7537('0x555')],{'id':_0x32c8b6['id']}),_0x46a713[_0x4f7537('0xe10')]({'title':_0x4f7537('0x4ec'),'msg':_0x32c8b6['name']?_0x32c8b6[_0x4f7537('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x1a383d('0x253d')](function(_0x511a17){var _0x237396=_0x1a383d;_0x46a713[_0x237396('0x187f')]({'title':_0x511a17[_0x237396('0x2fa')]?_0x237396('0x16c2')+_0x511a17[_0x237396('0x2fa')]+_0x237396('0x169e')+_0x511a17['statusText']:_0x237396('0x2549'),'msg':_0x511a17[_0x237396('0x10fd')]?JSON[_0x237396('0xa48')](_0x511a17[_0x237396('0x10fd')]):_0x511a17[_0x237396('0x684')]()});})[_0x1a383d('0x1889')](function(){var _0x3f9355=_0x1a383d;_0x3db1bd[_0x3f9355('0x16af')](0x0);});},function(){var _0x4b9474=_0xbe3cb3;console[_0x4b9474('0x18d5')](_0x4b9474('0x2410'));});}_0x3db1bd['selectedSubjects']=[],_0x3db1bd[_0x5a663c('0x21c5')]=_0x44768f,_0x3db1bd[_0x5a663c('0x1e1e')]=_0x5dff00,_0x3db1bd[_0x5a663c('0x911')]=_0x9bf479;function _0x44768f(_0x3476dd,_0x50c25d){var _0x5944cd=_0x5a663c;_0x1ee026['show']({'controller':_0x5944cd('0x1b6e'),'controllerAs':'vm','templateUrl':_0x34b63d,'parent':angular[_0x5944cd('0x1aa8')](_0x46991c['body']),'targetEvent':_0x3476dd,'clickOutsideToClose':!![],'locals':{'type':_0x5944cd('0x2101'),'item':_0x50c25d,'items':_0x3db1bd[_0x5944cd('0xc3f')],'configuration':_0x3db1bd[_0x5944cd('0x1a5e')],'account':_0x3db1bd[_0x5944cd('0x285f')],'license':null,'setting':null,'crudPermissions':_0x3db1bd[_0x5944cd('0xada')]}});}function _0x578e8b(_0x4cde64){var _0x285c9f=_0x5a663c;_0x188e22[_0x285c9f('0xd3a')]['delete']({'id':_0x4cde64['id']})[_0x285c9f('0x1dc2')][_0x285c9f('0xaa5')](function(){var _0x4e6a38=_0x285c9f;_0x51538b()[_0x4e6a38('0xf6d')](_0x3db1bd[_0x4e6a38('0xc3f')],{'id':_0x4cde64['id']}),_0x46a713[_0x4e6a38('0xe10')]({'title':_0x4e6a38('0xcad'),'msg':_0x4e6a38('0x1732')});})['catch'](function(_0x5a85a4){var _0x4d7fe6=_0x285c9f;_0x46a713[_0x4d7fe6('0x187f')]({'title':_0x5a85a4[_0x4d7fe6('0x2fa')]?_0x4d7fe6('0x16c2')+_0x5a85a4[_0x4d7fe6('0x2fa')]+_0x4d7fe6('0x169e')+_0x5a85a4[_0x4d7fe6('0x24df')]:_0x4d7fe6('0xdd7'),'msg':_0x5a85a4[_0x4d7fe6('0x10fd')]?JSON['stringify'](_0x5a85a4['data']):_0x5a85a4['toString']()});});}function _0x5dff00(_0x5bd1b6,_0x3d4d65){var _0x776b05=_0x5a663c,_0x26e2b1=_0x1ee026[_0x776b05('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x776b05('0x102e')](_0x776b05('0xd7')+_0x776b05('0x210d'))[_0x776b05('0x5b5')](_0x776b05('0x25d5'))[_0x776b05('0x116d')](_0x5bd1b6)['ok']('OK')['cancel'](_0x776b05('0x2410'));_0x1ee026[_0x776b05('0x1e6d')](_0x26e2b1)[_0x776b05('0xaa5')](function(){_0x578e8b(_0x3d4d65);},function(){var _0x36a66d=_0x776b05;console[_0x36a66d('0x18d5')]('CANCEL');});}function _0x9bf479(_0xd9280a){var _0x453806=_0x5a663c,_0x2ba166=_0x1ee026[_0x453806('0x281e')]()[_0x453806('0x110a')](_0x453806('0x6f0'))[_0x453806('0x102e')](_0x453806('0x389')+_0x3db1bd[_0x453806('0xf7d')][_0x453806('0x2587')]+_0x453806('0x1443')+_0x453806('0x210d'))[_0x453806('0x5b5')](_0x453806('0xfcd'))[_0x453806('0x116d')](_0xd9280a)['ok']('OK')[_0x453806('0x2030')](_0x453806('0x2410'));_0x1ee026['show'](_0x2ba166)[_0x453806('0xaa5')](function(){var _0x3faf11=_0x453806;_0x3db1bd[_0x3faf11('0xf7d')]['forEach'](function(_0x1a6283){_0x578e8b(_0x1a6283);}),_0x3db1bd[_0x3faf11('0xf7d')]=[];});}_0x3db1bd[_0x5a663c('0x1b51')]=[],_0x3db1bd[_0x5a663c('0x19db')]=_0x30d12a,_0x3db1bd[_0x5a663c('0x12af')]=_0x470c76,_0x3db1bd[_0x5a663c('0x416')]=_0x1e800d;function _0x30d12a(_0x4e16f2,_0x3bfa3d){var _0x3153ad=_0x5a663c;_0x1ee026[_0x3153ad('0x1e6d')]({'controller':_0x3153ad('0x1b6e'),'controllerAs':'vm','templateUrl':_0x34b63d,'parent':angular['element'](_0x46991c['body']),'targetEvent':_0x4e16f2,'clickOutsideToClose':!![],'locals':{'type':_0x3153ad('0x23d0'),'item':_0x3bfa3d,'items':_0x3db1bd[_0x3153ad('0x27b9')],'configuration':_0x3db1bd[_0x3153ad('0x1a5e')],'account':_0x3db1bd['salesforceAccount'],'license':null,'setting':null,'crudPermissions':_0x3db1bd[_0x3153ad('0xada')]}});}function _0x4de187(_0x37adc5){var _0x174fdb=_0x5a663c;_0x188e22[_0x174fdb('0xd3a')][_0x174fdb('0x926')]({'id':_0x37adc5['id']})[_0x174fdb('0x1dc2')][_0x174fdb('0xaa5')](function(){var _0xc39ca2=_0x174fdb;_0x51538b()['remove'](_0x3db1bd[_0xc39ca2('0x27b9')],{'id':_0x37adc5['id']}),_0x46a713['success']({'title':_0xc39ca2('0x1d35'),'msg':_0xc39ca2('0x266b')});})[_0x174fdb('0x253d')](function(_0xeb77ea){var _0x594e75=_0x174fdb;_0x46a713[_0x594e75('0x187f')]({'title':_0xeb77ea['status']?_0x594e75('0x16c2')+_0xeb77ea[_0x594e75('0x2fa')]+_0x594e75('0x169e')+_0xeb77ea[_0x594e75('0x24df')]:_0x594e75('0xdd7'),'msg':_0xeb77ea[_0x594e75('0x10fd')]?JSON[_0x594e75('0xa48')](_0xeb77ea[_0x594e75('0x10fd')]):_0xeb77ea[_0x594e75('0x684')]()});});}function _0x470c76(_0x1d0e0f,_0x5e9e5d){var _0x3c88b6=_0x5a663c,_0x1e0663=_0x1ee026['confirm']()['title'](_0x3c88b6('0x19b6'))[_0x3c88b6('0x102e')](_0x3c88b6('0x2534')+_0x3c88b6('0x210d'))[_0x3c88b6('0x5b5')](_0x3c88b6('0x8b2'))[_0x3c88b6('0x116d')](_0x1d0e0f)['ok']('OK')[_0x3c88b6('0x2030')](_0x3c88b6('0x2410'));_0x1ee026[_0x3c88b6('0x1e6d')](_0x1e0663)[_0x3c88b6('0xaa5')](function(){_0x4de187(_0x5e9e5d);},function(){var _0x1ef92b=_0x3c88b6;console[_0x1ef92b('0x18d5')](_0x1ef92b('0x2410'));});}function _0x1e800d(_0x3b4aed){var _0x5c55c1=_0x5a663c,_0x4b84f3=_0x1ee026[_0x5c55c1('0x281e')]()[_0x5c55c1('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x5c55c1('0x102e')](_0x5c55c1('0x389')+_0x3db1bd[_0x5c55c1('0x1b51')]['length']+_0x5c55c1('0x1443')+_0x5c55c1('0x210d'))[_0x5c55c1('0x5b5')](_0x5c55c1('0xcfb'))['targetEvent'](_0x3b4aed)['ok']('OK')[_0x5c55c1('0x2030')](_0x5c55c1('0x2410'));_0x1ee026[_0x5c55c1('0x1e6d')](_0x4b84f3)[_0x5c55c1('0xaa5')](function(){var _0x54b6db=_0x5c55c1;_0x3db1bd[_0x54b6db('0x1b51')]['forEach'](function(_0x3db18c){_0x4de187(_0x3db18c);}),_0x3db1bd[_0x54b6db('0x1b51')]=[];});}_0x3db1bd[_0x5a663c('0x490')]=[],_0x3db1bd[_0x5a663c('0x1572')]=_0xf393a,_0x3db1bd[_0x5a663c('0x353')]=_0x27e6fc,_0x3db1bd['deleteSelectedFields']=_0x543047;function _0xf393a(_0x2bebcc,_0xdb448a){var _0x5f79e4=_0x5a663c;_0x1ee026['show']({'controller':'CreateOrEditSalesforceAccountItemDialogController','controllerAs':'vm','templateUrl':_0x34b63d,'parent':angular[_0x5f79e4('0x1aa8')](_0x46991c['body']),'targetEvent':_0x2bebcc,'clickOutsideToClose':!![],'locals':{'type':_0x5f79e4('0x5f2'),'item':_0xdb448a,'items':_0x3db1bd[_0x5f79e4('0x13a')],'configuration':_0x3db1bd[_0x5f79e4('0x1a5e')],'account':_0x3db1bd[_0x5f79e4('0x285f')],'license':null,'setting':null,'crudPermissions':_0x3db1bd[_0x5f79e4('0xada')]}});}function _0x232b8c(_0x5794ca){var _0xeabaac=_0x5a663c;_0x188e22['intSalesforceField']['delete']({'id':_0x5794ca['id']})['$promise'][_0xeabaac('0xaa5')](function(){var _0xfa84b8=_0xeabaac;_0x51538b()['remove'](_0x3db1bd[_0xfa84b8('0x13a')],{'id':_0x5794ca['id']}),_0x46a713[_0xfa84b8('0xe10')]({'title':_0xfa84b8('0x25e1'),'msg':_0xfa84b8('0xb78')});})['catch'](function(_0x18d00a){var _0x2e2b9e=_0xeabaac;_0x46a713[_0x2e2b9e('0x187f')]({'title':_0x18d00a[_0x2e2b9e('0x2fa')]?_0x2e2b9e('0x16c2')+_0x18d00a['status']+_0x2e2b9e('0x169e')+_0x18d00a[_0x2e2b9e('0x24df')]:_0x2e2b9e('0xdd7'),'msg':_0x18d00a[_0x2e2b9e('0x10fd')]?JSON[_0x2e2b9e('0xa48')](_0x18d00a[_0x2e2b9e('0x10fd')]):_0x18d00a[_0x2e2b9e('0x684')]()});});}function _0x27e6fc(_0x11a365,_0x271741){var _0x377dd9=_0x5a663c,_0x37b109=_0x1ee026[_0x377dd9('0x281e')]()[_0x377dd9('0x110a')](_0x377dd9('0x27fc'))[_0x377dd9('0x102e')](_0x377dd9('0x455')+_0x377dd9('0x210d'))['ariaLabel'](_0x377dd9('0x1286'))[_0x377dd9('0x116d')](_0x11a365)['ok']('OK')[_0x377dd9('0x2030')](_0x377dd9('0x2410'));_0x1ee026['show'](_0x37b109)[_0x377dd9('0xaa5')](function(){_0x232b8c(_0x271741);},function(){var _0xbc5bf7=_0x377dd9;console[_0xbc5bf7('0x18d5')](_0xbc5bf7('0x2410'));});}function _0x543047(_0x35ca94){var _0x3b1470=_0x5a663c,_0x53416e=_0x1ee026[_0x3b1470('0x281e')]()[_0x3b1470('0x110a')](_0x3b1470('0xf28'))[_0x3b1470('0x102e')](_0x3b1470('0x389')+_0x3db1bd[_0x3b1470('0x490')][_0x3b1470('0x2587')]+_0x3b1470('0x1443')+_0x3b1470('0x210d'))[_0x3b1470('0x5b5')](_0x3b1470('0xefc'))[_0x3b1470('0x116d')](_0x35ca94)['ok']('OK')[_0x3b1470('0x2030')]('CANCEL');_0x1ee026[_0x3b1470('0x1e6d')](_0x53416e)['then'](function(){var _0x2196f9=_0x3b1470;_0x3db1bd['selectedFields']['forEach'](function(_0x27eca0){_0x232b8c(_0x27eca0);}),_0x3db1bd[_0x2196f9('0x490')]=[];});}}const _0x21c0ca=_0x15d029;_0x46041e[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'configurations',_0x1a8446('0x1a5e'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x46041e(_0x45fc37,_0x4e903f,_0x50ab07,_0x4d31d2,_0x313a0d,_0x19441a,_0x2eb9e2,_0x113c36,_0x94144d,_0x16e8af,_0x1fd698,_0x306464,_0x15088a,_0x10465b){var _0x454dd8=_0x1a8446,_0x39dccb=this;_0x39dccb[_0x454dd8('0x7fc')]=_0x1fd698['getCurrentUser'](),_0x39dccb[_0x454dd8('0x4c6')]=[],_0x39dccb[_0x454dd8('0x143f')]=_0x15088a,_0x39dccb['license']=_0x306464,_0x39dccb['crudPermissions']=_0x10465b,_0x39dccb[_0x454dd8('0x9f0')]={},_0x39dccb[_0x454dd8('0x1d53')]=_0x39dccb[_0x454dd8('0x143f')]&&_0x39dccb[_0x454dd8('0x143f')][_0x454dd8('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x39dccb[_0x454dd8('0x110a')]='INTEGRATIONS.EDIT_SALESFORCECONFIGURATION',_0x39dccb[_0x454dd8('0x1a5e')]=angular[_0x454dd8('0x20a')](_0x94144d),_0x39dccb[_0x454dd8('0x555')]=_0x113c36,_0x39dccb[_0x454dd8('0x206b')]=![];!_0x39dccb['salesforceConfiguration']&&(_0x39dccb[_0x454dd8('0x1a5e')]={'channel':_0x454dd8('0x1b9'),'type':'inbound','ticketType':_0x454dd8('0xf8f')},_0x39dccb[_0x454dd8('0x110a')]=_0x454dd8('0x6b2'),_0x39dccb[_0x454dd8('0x206b')]=!![]);_0x39dccb['addNewSalesforceConfiguration']=_0x306b78,_0x39dccb[_0x454dd8('0x25f3')]=_0x238bfc,_0x39dccb[_0x454dd8('0x37')]=_0x36ad19,_0x39dccb['getDateFromString']=_0x429e46,_0x39dccb[_0x454dd8('0x2023')]=_0x10f1dd;function _0x306b78(){var _0x168bb2=_0x454dd8;_0x39dccb[_0x168bb2('0x4c6')]=[],_0x16e8af[_0x168bb2('0x14aa')][_0x168bb2('0x118f')]({'id':_0x4e903f[_0x168bb2('0x25cf')]['id']},_0x39dccb['salesforceConfiguration'])[_0x168bb2('0x1dc2')]['then'](function(_0x176a50){var _0x1d48f0=_0x168bb2;_0x39dccb[_0x1d48f0('0x555')][_0x1d48f0('0x6ee')](_0x176a50[_0x1d48f0('0x256a')]()),_0x2eb9e2[_0x1d48f0('0xe10')]({'title':_0x1d48f0('0x440'),'msg':_0x39dccb[_0x1d48f0('0x1a5e')][_0x1d48f0('0x25d6')]?_0x39dccb[_0x1d48f0('0x1a5e')]['name']+_0x1d48f0('0xdca'):''}),_0x10f1dd(_0x176a50);})[_0x168bb2('0x253d')](function(_0x4b4182){var _0x9fba1=_0x168bb2;if(_0x4b4182['data']&&_0x4b4182[_0x9fba1('0x10fd')][_0x9fba1('0x4c6')]&&_0x4b4182[_0x9fba1('0x10fd')][_0x9fba1('0x4c6')][_0x9fba1('0x2587')]){_0x39dccb[_0x9fba1('0x4c6')]=_0x4b4182['data'][_0x9fba1('0x4c6')]||[{'message':_0x4b4182['toString'](),'type':_0x9fba1('0x2810')}];for(var _0x17837c=0x0;_0x17837c<_0x4b4182[_0x9fba1('0x10fd')]['errors'][_0x9fba1('0x2587')];_0x17837c+=0x1){_0x2eb9e2[_0x9fba1('0x187f')]({'title':_0x4b4182[_0x9fba1('0x10fd')][_0x9fba1('0x4c6')][_0x17837c][_0x9fba1('0x6c8')],'msg':_0x4b4182['data']['errors'][_0x17837c][_0x9fba1('0x1402')]});}}else _0x2eb9e2[_0x9fba1('0x187f')]({'title':_0x4b4182['status']?_0x9fba1('0x16c2')+_0x4b4182[_0x9fba1('0x2fa')]+_0x9fba1('0x169e')+_0x4b4182[_0x9fba1('0x24df')]:_0x9fba1('0x2810'),'msg':_0x4b4182[_0x9fba1('0x10fd')]?JSON['stringify'](_0x4b4182[_0x9fba1('0x10fd')][_0x9fba1('0x1402')]):_0x4b4182[_0x9fba1('0x684')]()});});}function _0x238bfc(){var _0x3bc6dc=_0x454dd8;_0x39dccb['errors']=[],_0x16e8af[_0x3bc6dc('0x1429')]['update']({'id':_0x39dccb[_0x3bc6dc('0x1a5e')]['id']},_0x39dccb[_0x3bc6dc('0x1a5e')])[_0x3bc6dc('0x1dc2')]['then'](function(_0x451a08){var _0x1f712c=_0x3bc6dc,_0x24b257=_0x51538b()[_0x1f712c('0xe9e')](_0x39dccb[_0x1f712c('0x555')],{'id':_0x451a08['id']});_0x24b257&&_0x51538b()['merge'](_0x24b257,_0x51538b()[_0x1f712c('0x104e')](_0x451a08[_0x1f712c('0x256a')](),_0x51538b()[_0x1f712c('0x9f2')](_0x24b257))),_0x2eb9e2['success']({'title':_0x1f712c('0x1154'),'msg':_0x39dccb['salesforceConfiguration'][_0x1f712c('0x25d6')]?_0x39dccb['salesforceConfiguration'][_0x1f712c('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x10f1dd(_0x451a08);})['catch'](function(_0x532c6b){var _0x8ce68f=_0x3bc6dc;if(_0x532c6b['data']&&_0x532c6b[_0x8ce68f('0x10fd')][_0x8ce68f('0x4c6')]&&_0x532c6b[_0x8ce68f('0x10fd')][_0x8ce68f('0x4c6')][_0x8ce68f('0x2587')]){_0x39dccb[_0x8ce68f('0x4c6')]=_0x532c6b['data'][_0x8ce68f('0x4c6')]||[{'message':_0x532c6b[_0x8ce68f('0x684')](),'type':_0x8ce68f('0x266e')}];for(var _0x52c703=0x0;_0x52c703<_0x532c6b[_0x8ce68f('0x10fd')][_0x8ce68f('0x4c6')]['length'];_0x52c703++){_0x2eb9e2[_0x8ce68f('0x187f')]({'title':_0x532c6b[_0x8ce68f('0x10fd')][_0x8ce68f('0x4c6')][_0x52c703]['type'],'msg':_0x532c6b[_0x8ce68f('0x10fd')][_0x8ce68f('0x4c6')][_0x52c703][_0x8ce68f('0x1402')]});}}else _0x2eb9e2['error']({'title':_0x532c6b[_0x8ce68f('0x2fa')]?_0x8ce68f('0x16c2')+_0x532c6b[_0x8ce68f('0x2fa')]+_0x8ce68f('0x169e')+_0x532c6b[_0x8ce68f('0x24df')]:'api.intSalesforceConfiguration.update','msg':_0x532c6b[_0x8ce68f('0x10fd')]?JSON[_0x8ce68f('0xa48')](_0x532c6b['data'][_0x8ce68f('0x1402')]):_0x532c6b[_0x8ce68f('0x684')]()});});}function _0x36ad19(_0xa42276){var _0x29c8df=_0x454dd8;_0x39dccb['errors']=[];var _0x1e922b=_0x4d31d2[_0x29c8df('0x281e')]()[_0x29c8df('0x110a')](_0x29c8df('0x12a3'))[_0x29c8df('0x15af')](_0x29c8df('0x1cc3'))[_0x29c8df('0x5b5')]('Delete\x20SalesforceConfiguration')['ok'](_0x29c8df('0x1e76'))[_0x29c8df('0x2030')](_0x29c8df('0x9c6'))[_0x29c8df('0x116d')](_0xa42276);_0x4d31d2[_0x29c8df('0x1e6d')](_0x1e922b)['then'](function(){var _0x17926d=_0x29c8df;_0x16e8af['intSalesforceConfiguration'][_0x17926d('0x926')]({'id':_0x39dccb[_0x17926d('0x1a5e')]['id']})['$promise'][_0x17926d('0xaa5')](function(){var _0x14ced4=_0x17926d;_0x51538b()[_0x14ced4('0xf6d')](_0x39dccb['configurations'],{'id':_0x39dccb[_0x14ced4('0x1a5e')]['id']}),_0x2eb9e2[_0x14ced4('0xe10')]({'title':'SalesforceConfiguration\x20properly\x20deleted!','msg':(_0x39dccb['salesforceConfiguration']['name']||'salesforceConfiguration')+'\x20has\x20been\x20deleted!'}),_0x10f1dd(_0x39dccb[_0x14ced4('0x1a5e')]);})['catch'](function(_0x31fe7a){var _0x690a=_0x17926d;if(_0x31fe7a[_0x690a('0x10fd')]&&_0x31fe7a[_0x690a('0x10fd')][_0x690a('0x4c6')]&&_0x31fe7a[_0x690a('0x10fd')][_0x690a('0x4c6')]['length']){_0x39dccb['errors']=_0x31fe7a[_0x690a('0x10fd')][_0x690a('0x4c6')]||[{'message':_0x31fe7a[_0x690a('0x684')](),'type':_0x690a('0x259')}];for(var _0x1787b2=0x0;_0x1787b2<_0x31fe7a[_0x690a('0x10fd')][_0x690a('0x4c6')][_0x690a('0x2587')];_0x1787b2++){_0x2eb9e2[_0x690a('0x187f')]({'title':_0x31fe7a['data'][_0x690a('0x4c6')][_0x1787b2][_0x690a('0x6c8')],'msg':_0x31fe7a[_0x690a('0x10fd')]['errors'][_0x1787b2][_0x690a('0x1402')]});}}else _0x2eb9e2[_0x690a('0x187f')]({'title':_0x31fe7a['status']?_0x690a('0x16c2')+_0x31fe7a['status']+'\x20-\x20'+_0x31fe7a[_0x690a('0x24df')]:_0x690a('0x259'),'msg':_0x31fe7a[_0x690a('0x10fd')]?JSON[_0x690a('0xa48')](_0x31fe7a['data'][_0x690a('0x1402')]):_0x31fe7a[_0x690a('0x1402')]||_0x31fe7a[_0x690a('0x684')]()});});},function(){});}function _0x429e46(_0x1e2ea6){return _0x1e2ea6===null?undefined:new Date(_0x1e2ea6);}function _0x10f1dd(_0x370729){_0x4d31d2['hide'](_0x370729);}}const _0x2ca7bb=_0x46041e;_0x421574[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x72'),_0x1a8446('0x1a30'),_0x1a8446('0x1a38'),_0x1a8446('0x5b'),_0x1a8446('0x6c8'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x421574(_0x469db2,_0x3e8423,_0xf2591f,_0xf12ec7,_0x446fc3,_0x2c3a3b,_0x50c4aa,_0x3b18a3,_0x3a0c97,_0x10e9b8,_0x298e8c,_0x3c87fd,_0x1d0cb3){var _0x2cd47f=_0x1a8446,_0x1cb471=this;_0x1cb471[_0x2cd47f('0x7fc')]=_0x3c87fd[_0x2cd47f('0xacc')](),_0x1cb471[_0x2cd47f('0x4c6')]=[],_0x1cb471[_0x2cd47f('0x110a')]='INTEGRATIONS.EDIT_'+_0x51538b()[_0x2cd47f('0x1818')](_0x10e9b8),_0x1cb471[_0x2cd47f('0x1a38')]=angular[_0x2cd47f('0x20a')](_0x3b18a3),_0x1cb471[_0x2cd47f('0x1a30')]=_0x50c4aa,_0x1cb471[_0x2cd47f('0x6c8')]=_0x10e9b8,_0x1cb471[_0x2cd47f('0xada')]=_0x1d0cb3,_0x1cb471[_0x2cd47f('0x1891')]=![];!_0x1cb471[_0x2cd47f('0x1a38')]&&(_0x1cb471[_0x2cd47f('0x1a38')]={'type':_0x2cd47f('0x199')},_0x1cb471[_0x2cd47f('0x1a38')][_0x51538b()[_0x2cd47f('0x1b56')](_0x10e9b8)+'Id']=_0x2c3a3b['id'],_0x1cb471[_0x2cd47f('0x110a')]=_0x2cd47f('0x1502')+_0x51538b()[_0x2cd47f('0x1818')](_0x10e9b8),_0x1cb471[_0x2cd47f('0x1891')]=!![]);_0x1cb471[_0x2cd47f('0x13fd')]=_0xfbefae,_0x1cb471['saveItem']=_0x33bd11,_0x1cb471[_0x2cd47f('0x1994')]=_0x357396,_0x1cb471[_0x2cd47f('0x1b0f')]=_0x4ba89c,_0x1cb471['closeDialog']=_0x597e4a,_0x298e8c['variable'][_0x2cd47f('0x2122')]({'nolimit':!![]})[_0x2cd47f('0x1dc2')]['then'](function(_0x2e9704){var _0x5c2ff1=_0x2cd47f;return _0x1cb471[_0x5c2ff1('0x147e')]=_0x2e9704[_0x5c2ff1('0x580')]?_0x2e9704['rows']:[],_0x298e8c['voiceAgentReport'][_0x5c2ff1('0x3e7')]()[_0x5c2ff1('0x1dc2')];})[_0x2cd47f('0xaa5')](function(_0x14515b){var _0x54f0cf=_0x2cd47f;return _0x1cb471[_0x54f0cf('0x27a9')]=_0x51538b()[_0x54f0cf('0x1485')](_0x51538b()[_0x54f0cf('0x9f2')](_0x14515b),[_0x54f0cf('0x1dc2'),'$resolved','createdAt',_0x54f0cf('0x19f3'),'sourceid']),_0x1cb471[_0x54f0cf('0x27a9')]['push'](_0x54f0cf('0xef3')),_0x298e8c[_0x54f0cf('0x1f51')][_0x54f0cf('0x3e7')]()['$promise'];})[_0x2cd47f('0xaa5')](function(_0x575995){var _0x45bdb7=_0x2cd47f;_0x1cb471[_0x45bdb7('0xc69')]=_0x51538b()[_0x45bdb7('0x1485')](_0x51538b()[_0x45bdb7('0x9f2')](_0x575995),[_0x45bdb7('0x1dc2'),_0x45bdb7('0xd92'),'createdAt',_0x45bdb7('0x19f3'),_0x45bdb7('0x129a')]),_0x1cb471[_0x45bdb7('0xc69')][_0x45bdb7('0x1599')]('recordingURL');})['catch'](function(_0x5d953b){var _0xc5c7b7=_0x2cd47f;_0x446fc3[_0xc5c7b7('0x187f')]({'title':_0x5d953b[_0xc5c7b7('0x2fa')]?_0xc5c7b7('0x16c2')+_0x5d953b[_0xc5c7b7('0x2fa')]+_0xc5c7b7('0x169e')+_0x5d953b[_0xc5c7b7('0x24df')]:_0xc5c7b7('0x2652'),'msg':_0x5d953b['data']?JSON[_0xc5c7b7('0xa48')](_0x5d953b[_0xc5c7b7('0x10fd')]):_0x5d953b[_0xc5c7b7('0x684')]()});}),_0x298e8c[_0x2cd47f('0x14aa')][_0x2cd47f('0x1450')]({'id':_0x3a0c97['id'],'ticketType':_0x2c3a3b[_0x2cd47f('0x1146')]?_0x2c3a3b[_0x2cd47f('0x1146')]:undefined})[_0x2cd47f('0x1dc2')][_0x2cd47f('0xaa5')](function(_0x972cf4){var _0x20c71a=_0x2cd47f;_0x1cb471[_0x20c71a('0x722')]=!![],_0x1cb471[_0x20c71a('0x13a')]=_0x972cf4[_0x20c71a('0x580')]?_0x972cf4[_0x20c71a('0x580')]:[],_0x1cb471[_0x20c71a('0x1a38')][_0x20c71a('0x1dfc')]&&(_0x1cb471['customField']=_0x51538b()['find'](_0x1cb471[_0x20c71a('0x13a')],{'id':_0x1cb471[_0x20c71a('0x1a38')][_0x20c71a('0x1dfc')]}));})[_0x2cd47f('0x253d')](function(_0x529cc4){var _0x246eac=_0x2cd47f;_0x1cb471[_0x246eac('0x722')]=![],console[_0x246eac('0x187f')](_0x529cc4);});function _0xfbefae(){var _0x595d8b=_0x2cd47f;_0x1cb471['errors']=[],_0x1cb471[_0x595d8b('0x6fc')]&&(_0x1cb471[_0x595d8b('0x1a38')][_0x595d8b('0x1dfc')]=_0x1cb471[_0x595d8b('0x6fc')]['id'],_0x1cb471['item']['nameField']=_0x1cb471[_0x595d8b('0x6fc')][_0x595d8b('0x25d6')],_0x1cb471['item']['customField']=_0x1cb471['customField'][_0x595d8b('0x113b')]),_0x298e8c[_0x595d8b('0xd3a')][_0x595d8b('0x242b')](_0x1cb471[_0x595d8b('0x1a38')])['$promise'][_0x595d8b('0xaa5')](function(_0x1eff98){var _0x428c86=_0x595d8b;_0x1cb471['items']['unshift'](_0x1eff98),_0x446fc3[_0x428c86('0xe10')]({'title':_0x51538b()[_0x428c86('0x1b56')](_0x10e9b8)+_0x428c86('0xbf5'),'msg':_0x51538b()[_0x428c86('0x1b56')](_0x10e9b8)+'\x20has\x20been\x20created!'}),_0x597e4a();})['catch'](function(_0x2e3c81){var _0x3c2546=_0x595d8b;console[_0x3c2546('0x187f')](_0x2e3c81),_0x1cb471[_0x3c2546('0x4c6')]=_0x2e3c81[_0x3c2546('0x10fd')][_0x3c2546('0x4c6')]||[{'message':_0x2e3c81[_0x3c2546('0x684')](),'type':_0x3c2546('0x23f')}];});}function _0x33bd11(){var _0x422fb8=_0x2cd47f;_0x1cb471[_0x422fb8('0x4c6')]=[],_0x1cb471[_0x422fb8('0x6fc')]&&(_0x1cb471['item'][_0x422fb8('0x1dfc')]=_0x1cb471['customField']['id'],_0x1cb471[_0x422fb8('0x1a38')][_0x422fb8('0x1662')]=_0x1cb471[_0x422fb8('0x6fc')]['name'],_0x1cb471[_0x422fb8('0x1a38')][_0x422fb8('0x6fc')]=_0x1cb471[_0x422fb8('0x6fc')]['custom']),_0x298e8c[_0x422fb8('0xd3a')][_0x422fb8('0x264e')]({'id':_0x1cb471[_0x422fb8('0x1a38')]['id']},_0x1cb471[_0x422fb8('0x1a38')])[_0x422fb8('0x1dc2')][_0x422fb8('0xaa5')](function(_0x231f96){var _0x2c42cd=_0x422fb8,_0x571508=_0x51538b()[_0x2c42cd('0xe9e')](_0x1cb471[_0x2c42cd('0x1a30')],{'id':_0x231f96['id']});_0x571508&&_0x51538b()['merge'](_0x571508,_0x231f96),_0x446fc3[_0x2c42cd('0xe10')]({'title':_0x51538b()[_0x2c42cd('0x1b56')](_0x10e9b8)+'\x20properly\x20saved!','msg':_0x51538b()[_0x2c42cd('0x1b56')](_0x10e9b8)+_0x2c42cd('0x20bf')}),_0x597e4a();})[_0x422fb8('0x253d')](function(_0x433466){console['error'](_0x433466),_0x1cb471['errors']=_0x433466['data']['errors']||[{'message':_0x433466['toString'](),'type':'api.intItem.update'}];});}function _0x357396(_0x20d204){var _0x31dfc2=_0x2cd47f;_0x1cb471[_0x31dfc2('0x4c6')]=[];var _0x245fac=_0xf12ec7[_0x31dfc2('0x281e')]()[_0x31dfc2('0x110a')](_0x31dfc2('0x12a3'))[_0x31dfc2('0x15af')](_0x31dfc2('0x318')+_0x10e9b8+'\x20will\x20be\x20deleted.')[_0x31dfc2('0x5b5')](_0x31dfc2('0xf00')+_0x51538b()[_0x31dfc2('0x1b56')](_0x10e9b8))['ok']('Delete')[_0x31dfc2('0x2030')](_0x31dfc2('0x9c6'))['targetEvent'](_0x20d204);_0xf12ec7[_0x31dfc2('0x1e6d')](_0x245fac)['then'](function(){var _0x23e253=_0x31dfc2;_0x298e8c[_0x23e253('0xd3a')][_0x23e253('0x926')]({'id':_0x1cb471[_0x23e253('0x1a38')]['id']})['$promise']['then'](function(){var _0x14a5d9=_0x23e253;_0x51538b()[_0x14a5d9('0xf6d')](_0x1cb471[_0x14a5d9('0x1a30')],{'id':_0x1cb471[_0x14a5d9('0x1a38')]['id']}),_0x446fc3['success']({'title':_0x51538b()[_0x14a5d9('0x1b56')](_0x10e9b8)+_0x14a5d9('0x1e42'),'msg':_0x51538b()[_0x14a5d9('0x1b56')](_0x10e9b8)+'\x20has\x20been\x20deleted!'}),_0x597e4a();})[_0x23e253('0x253d')](function(_0x140bce){var _0x241588=_0x23e253;console[_0x241588('0x187f')](_0x140bce),_0x1cb471[_0x241588('0x4c6')]=_0x140bce[_0x241588('0x10fd')][_0x241588('0x4c6')]||[{'message':_0x140bce['toString'](),'type':'api.item.delete'}];});},function(){});}function _0x4ba89c(){var _0x336ada=_0x2cd47f;return _0x1cb471[_0x336ada('0x1a38')][_0x336ada('0x1e29')]!==undefined?_0x1cb471[_0x336ada('0x1a38')][_0x336ada('0x1e29')]:'Please\x20select\x20a\x20variable';}function _0x597e4a(){var _0x325e12=_0x2cd47f;_0xf12ec7[_0x325e12('0x1120')]();}}const _0x2e626b=_0x421574;_0x5a4730[_0x1a8446('0x1e33')]=['$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate',_0x1a8446('0x1202'),_0x1a8446('0x143f'),'api','toasty','Auth',_0x1a8446('0x285f'),_0x1a8446('0x1a50')];function _0x5a4730(_0x221bea,_0x556c77,_0x3fe6a0,_0x1f4446,_0x4ad48a,_0x4b1e32,_0x3fc8e9,_0xa0fece,_0x3e51e1,_0x24e78c,_0x2dba34,_0x57e980){var _0x159117=_0x1a8446,_0x3b6319=this;_0x3b6319['currentUser']=_0x24e78c[_0x159117('0xacc')](),_0x3b6319[_0x159117('0x1202')]=_0x4b1e32,_0x3b6319[_0x159117('0x143f')]=_0x3fc8e9,_0x3b6319[_0x159117('0x1d53')]=_0x3b6319['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3b6319[_0x159117('0x18cc')]=_0x556c77['protocol']()+_0x159117('0x356')+_0x556c77[_0x159117('0x160c')](),_0x3b6319[_0x159117('0x285f')]=_0x2dba34||_0x221bea[_0x159117('0x25cf')][_0x159117('0x285f')]||{},_0x3b6319[_0x159117('0x1a50')]=_0x57e980&&_0x57e980[_0x159117('0xd15')]==0x1?_0x57e980[_0x159117('0x580')][0x0]:null,_0x3b6319[_0x159117('0xada')]=_0x24e78c[_0x159117('0xffd')](_0x3b6319[_0x159117('0x1a50')]?_0x3b6319[_0x159117('0x1a50')][_0x159117('0xada')]:null),_0x3b6319[_0x159117('0x9f0')]={},_0x3b6319['selectedTab']=_0x221bea[_0x159117('0x25cf')]['tab']||0x0,_0x3b6319[_0x159117('0xc10')]=_0x3e51e1[_0x159117('0x3a1')],_0x3b6319[_0x159117('0x1fc5')]=_0x5c7368,_0x3b6319[_0x159117('0x6ea')]=_0x534499;function _0x5c7368(){var _0x3db073=_0x159117;_0x221bea['go'](_0x3db073('0x1030'),{},{'reload':_0x3db073('0x1030')});}function _0x534499(){var _0x221429=_0x159117;_0xa0fece[_0x221429('0x14aa')][_0x221429('0x264e')]({'id':_0x3b6319['salesforceAccount']['id']},_0x3b6319[_0x221429('0x285f')])[_0x221429('0x1dc2')][_0x221429('0xaa5')](function(){var _0x5504a5=_0x221429;_0x3e51e1[_0x5504a5('0xe10')]({'title':_0x5504a5('0x245d'),'msg':_0x3b6319[_0x5504a5('0x285f')]['name']?_0x3b6319[_0x5504a5('0x285f')][_0x5504a5('0x25d6')]+_0x5504a5('0x1734'):''});})[_0x221429('0x253d')](function(_0x42db92){var _0x58132c=_0x221429;_0x3e51e1[_0x58132c('0x187f')]({'title':_0x42db92['status']?_0x58132c('0x16c2')+_0x42db92[_0x58132c('0x2fa')]+_0x58132c('0x169e')+_0x42db92['statusText']:'SYSTEM:GETintSalesforceAccount','msg':_0x42db92[_0x58132c('0x10fd')]?JSON[_0x58132c('0xa48')](_0x42db92['data']):_0x42db92[_0x58132c('0x684')]()});});}}const _0xfc51d6=_0x5a4730,_0xa4e7f8=_0x4fb511['p']+_0x1a8446('0x243a');_0x5bbaec[_0x1a8446('0x1e33')]=['$scope','$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),_0x1a8446('0xbae'),_0x1a8446('0x1e97'),'userProfileSection','api',_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x5bbaec(_0x20724c,_0x37012f,_0x35f862,_0x2909d2,_0x44f2db,_0x3b35dc,_0x201b9e,_0x13235b,_0x1db31e,_0x381809,_0x49ba5f,_0x4d6ea6,_0xe1b32a,_0x20df3e,_0x1b8237,_0xc628cc,_0x1cd03a){var _0x4662be=_0x1a8446,_0x5c8082=this;_0x5c8082['license']=_0xc628cc,_0x5c8082[_0x4662be('0x143f')]=_0x1cd03a,_0x5c8082[_0x4662be('0x7fc')]=_0x1b8237['getCurrentUser'](),_0x5c8082['salesforceAccounts']=_0x1db31e||{'count':0x0,'rows':[]},_0x5c8082['userProfile']=_0x381809,_0x5c8082[_0x4662be('0x1a50')]=_0x49ba5f&&_0x49ba5f['count']==0x1?_0x49ba5f[_0x4662be('0x580')][0x0]:null,_0x5c8082[_0x4662be('0xada')]=_0x1b8237[_0x4662be('0xffd')](_0x5c8082[_0x4662be('0x1a50')]?_0x5c8082[_0x4662be('0x1a50')][_0x4662be('0xada')]:null),_0x5c8082[_0x4662be('0x12b6')]=_0x4662be('0xbae'),_0x5c8082[_0x4662be('0x164')]='',_0x5c8082[_0x4662be('0x8cc')]=null,_0x5c8082['selectedSalesforceAccounts']=[],_0x5c8082[_0x4662be('0x582')]={'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','limit':0xa,'page':0x1},_0x5c8082[_0x4662be('0x1bee')]=_0x51538b()[_0x4662be('0x184a')]([{'option':_0x4662be('0x4e3'),'value':_0x4662be('0x23f9')},{'option':_0x4662be('0x1a59'),'value':'\x27newTab\x27'}],function(_0x12da8b){var _0x20f3a3=_0x4662be;return _0x51538b()[_0x20f3a3('0x170d')](_0x12da8b[_0x20f3a3('0x12f4')],new RegExp('\x27','g'),'');}),_0x5c8082[_0x4662be('0x1927')]=_0x491874,_0x5c8082[_0x4662be('0xa49')]=_0x42613b,_0x5c8082[_0x4662be('0x271')]=_0x55a515,_0x5c8082['success']=_0x505d2d,_0x5c8082[_0x4662be('0x277')]=_0x24bcfa,_0x5c8082['createOrEditSalesforceAccount']=_0x56bae8,_0x5c8082[_0x4662be('0x1e12')]=_0x3d52c9,_0x5c8082[_0x4662be('0x2368')]=_0xdd7362,_0x5c8082[_0x4662be('0x10af')]=_0x3e3c0f,_0x5c8082[_0x4662be('0x27b4')]=_0x4784be,_0x5c8082['selectAllSalesforceAccounts']=_0x556eef;function _0x491874(_0x1cf394){var _0x4eee26=_0x4662be;_0x35f862['go'](_0x4eee26('0xad6'),{'id':_0x1cf394['id'],'salesforceAccount':_0x1cf394,'crudPermissions':_0x5c8082[_0x4eee26('0xada')]});}function _0x42613b(_0x542f75){var _0x5687dd=_0x4662be;return _0x4d6ea6[_0x5687dd('0x14aa')][_0x5687dd('0x1450')]({'id':_0x542f75['id'],'test':!![]})['$promise'][_0x5687dd('0xaa5')](function(){var _0x5288e5=_0x5687dd;_0x20df3e[_0x5288e5('0xe10')]({'title':'SalesforceAccount\x20properly\x20tested','msg':_0x5288e5('0x2633')});})[_0x5687dd('0x253d')](function(_0xf6671a){var _0x234e43=_0x5687dd;_0x20df3e[_0x234e43('0x187f')]({'title':'SalesforceAccount\x20properly\x20tested','msg':_0xf6671a[_0x234e43('0x10fd')]?_0xf6671a[_0x234e43('0x10fd')][_0x234e43('0x1402')]?_0xf6671a[_0x234e43('0x10fd')][_0x234e43('0x1402')]:JSON[_0x234e43('0xa48')](_0xf6671a['data']):_0xf6671a['toString']()});});}function _0x55a515(_0x4bd7e7,_0x5bf6a8){var _0x5c6028=_0x4662be,_0x43bb30=_0x44f2db[_0x5c6028('0x281e')]()[_0x5c6028('0x110a')](_0x5c6028('0x88d')+_0x51538b()[_0x5c6028('0x196a')](_0x5c6028('0x285f'))+'?')['htmlContent'](_0x5c6028('0x389')+(_0x4bd7e7[_0x5c6028('0x25d6')]||_0x5c6028('0x285f'))+_0x5c6028('0x697')+_0x5c6028('0x210d'))[_0x5c6028('0x5b5')](_0x5c6028('0x2b0'))[_0x5c6028('0x116d')](_0x5bf6a8)['ok']('OK')[_0x5c6028('0x2030')](_0x5c6028('0x2410'));_0x44f2db[_0x5c6028('0x1e6d')](_0x43bb30)[_0x5c6028('0xaa5')](function(){_0x3d52c9(_0x4bd7e7);},function(){var _0x15eb62=_0x5c6028;console[_0x15eb62('0x18d5')](_0x15eb62('0x2410'));});}var _0x46ed12=!![],_0x2e060c=0x1;_0x20724c[_0x4662be('0x1ccf')](_0x4662be('0x1788'),function(_0x2c0977,_0x34a69a){var _0x2f21b1=_0x4662be;_0x46ed12?_0x201b9e(function(){_0x46ed12=![];}):(!_0x34a69a&&(_0x2e060c=_0x5c8082[_0x2f21b1('0x582')][_0x2f21b1('0x41')]),_0x2c0977!==_0x34a69a&&(_0x5c8082[_0x2f21b1('0x582')][_0x2f21b1('0x41')]=0x1),!_0x2c0977&&(_0x5c8082[_0x2f21b1('0x582')][_0x2f21b1('0x41')]=_0x2e060c),_0x5c8082[_0x2f21b1('0x277')]());});function _0x505d2d(_0x5341d3){_0x5c8082['salesforceAccounts']=_0x5341d3||{'count':0x0,'rows':[]};}function _0x24bcfa(){var _0x3eda74=_0x4662be;_0x5c8082[_0x3eda74('0x582')]['offset']=(_0x5c8082['query'][_0x3eda74('0x41')]-0x1)*_0x5c8082[_0x3eda74('0x582')][_0x3eda74('0xf4d')],_0x1b8237[_0x3eda74('0x26e8')]('admin')?_0x5c8082[_0x3eda74('0x159a')]=_0x4d6ea6[_0x3eda74('0x14aa')][_0x3eda74('0x2122')](_0x5c8082[_0x3eda74('0x582')],_0x505d2d)[_0x3eda74('0x1dc2')]:(_0x5c8082[_0x3eda74('0x582')]['id']=_0x5c8082[_0x3eda74('0x1e97')]['id'],_0x5c8082[_0x3eda74('0x582')][_0x3eda74('0x224d')]=_0x3eda74('0x22b3'),_0x5c8082[_0x3eda74('0x159a')]=_0x4d6ea6['userProfile'][_0x3eda74('0x1cf1')](_0x5c8082[_0x3eda74('0x582')],_0x505d2d)['$promise']);}function _0x56bae8(_0x1f2b5a,_0x1cee79){var _0x11a4c1=_0x4662be;_0x44f2db[_0x11a4c1('0x1e6d')]({'controller':'CreateOrEditSalesforceAccountDialogController','controllerAs':'vm','templateUrl':_0xa4e7f8,'parent':angular['element'](_0x3b35dc[_0x11a4c1('0x54c')]),'targetEvent':_0x1f2b5a,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x1cee79,'salesforceAccounts':_0x5c8082[_0x11a4c1('0xbae')]['rows'],'license':_0x5c8082[_0x11a4c1('0x1202')],'setting':_0x5c8082[_0x11a4c1('0x143f')],'crudPermissions':_0x5c8082['crudPermissions']}});}function _0x3d52c9(_0x20981b){var _0x2a1f69=_0x4662be;_0x4d6ea6['intSalesforceAccount'][_0x2a1f69('0x926')]({'id':_0x20981b['id']})['$promise']['then'](function(){var _0x14d01b=_0x2a1f69;_0x51538b()['remove'](_0x5c8082[_0x14d01b('0xbae')][_0x14d01b('0x580')],{'id':_0x20981b['id']}),_0x5c8082['salesforceAccounts']['count']-=0x1,!_0x5c8082[_0x14d01b('0xbae')]['rows'][_0x14d01b('0x2587')]&&_0x5c8082[_0x14d01b('0x277')](),_0x20df3e['success']({'title':_0x51538b()[_0x14d01b('0x196a')](_0x14d01b('0x27c2'))+_0x14d01b('0x8bb'),'msg':_0x20981b['name']?_0x20981b[_0x14d01b('0x25d6')]+_0x14d01b('0xcd9'):''});})['catch'](function(_0x2985bc){var _0x4bed8c=_0x2a1f69;if(_0x2985bc[_0x4bed8c('0x10fd')]&&_0x2985bc[_0x4bed8c('0x10fd')][_0x4bed8c('0x4c6')]&&_0x2985bc['data'][_0x4bed8c('0x4c6')]['length']){_0x5c8082[_0x4bed8c('0x4c6')]=_0x2985bc[_0x4bed8c('0x10fd')][_0x4bed8c('0x4c6')]||[{'message':_0x2985bc[_0x4bed8c('0x684')](),'type':_0x4bed8c('0x164d')}];for(var _0x2550c5=0x0;_0x2550c5<_0x2985bc[_0x4bed8c('0x10fd')][_0x4bed8c('0x4c6')][_0x4bed8c('0x2587')];_0x2550c5++){_0x20df3e['error']({'title':_0x2985bc[_0x4bed8c('0x10fd')][_0x4bed8c('0x4c6')][_0x2550c5]['type'],'msg':_0x2985bc[_0x4bed8c('0x10fd')][_0x4bed8c('0x4c6')][_0x2550c5]['message']});}}else _0x20df3e[_0x4bed8c('0x187f')]({'title':_0x2985bc[_0x4bed8c('0x2fa')]?'API:'+_0x2985bc[_0x4bed8c('0x2fa')]+_0x4bed8c('0x169e')+_0x2985bc[_0x4bed8c('0x24df')]:_0x4bed8c('0x164d'),'msg':_0x2985bc['data']?JSON[_0x4bed8c('0xa48')](_0x2985bc[_0x4bed8c('0x10fd')][_0x4bed8c('0x1402')]):_0x2985bc['message']||_0x2985bc[_0x4bed8c('0x684')]()});});}function _0xdd7362(){var _0x4d080e=_0x4662be,_0x17cdfd=angular[_0x4d080e('0x20a')](_0x5c8082[_0x4d080e('0x1dd')]);return _0x5c8082[_0x4d080e('0x1dd')]=[],_0x17cdfd;}function _0x3e3c0f(_0x482f46){var _0x142aa9=_0x4662be,_0x2e6226=_0x44f2db['confirm']()[_0x142aa9('0x110a')](_0x142aa9('0x1a0e'))[_0x142aa9('0x102e')](''+_0x5c8082[_0x142aa9('0x1dd')][_0x142aa9('0x2587')]+_0x142aa9('0x1443')+_0x142aa9('0x210d'))['ariaLabel'](_0x142aa9('0x2362'))[_0x142aa9('0x116d')](_0x482f46)['ok']('OK')['cancel'](_0x142aa9('0x2410'));_0x44f2db[_0x142aa9('0x1e6d')](_0x2e6226)[_0x142aa9('0xaa5')](function(){var _0xd88416=_0x142aa9;_0x5c8082['selectedSalesforceAccounts'][_0xd88416('0x15b5')](function(_0x518c7d){_0x3d52c9(_0x518c7d);}),_0x5c8082[_0xd88416('0x1dd')]=[];});}function _0x4784be(){var _0x11fbe0=_0x4662be;_0x5c8082[_0x11fbe0('0x1dd')]=[];}function _0x556eef(){var _0x86b547=_0x4662be;_0x5c8082['selectedSalesforceAccounts']=_0x5c8082[_0x86b547('0xbae')]['rows'];}}const _0xf62fdb=_0x5bbaec;_0x150af8['$inject']=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x52'),_0x1a8446('0x2545'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license','setting',_0x1a8446('0xada')];function _0x150af8(_0x3dd807,_0x3e1ddf,_0x5e5529,_0x14878b,_0x395c0c,_0x44f282,_0x1facfd,_0x5cadf6,_0x4d3ac8,_0x48eb4a,_0x3bfc5d,_0xb7c7bc,_0xcee460,_0x2841a7){var _0x130907=_0x1a8446,_0x42ea30=this;_0x42ea30[_0x130907('0x7fc')]=_0x3bfc5d[_0x130907('0xacc')](),_0x42ea30[_0x130907('0x4c6')]=[],_0x42ea30[_0x130907('0x143f')]=_0xcee460,_0x42ea30[_0x130907('0x1202')]=_0xb7c7bc,_0x42ea30[_0x130907('0xada')]=_0x2841a7,_0x42ea30[_0x130907('0x9f0')]={},_0x42ea30[_0x130907('0x1d53')]=_0x42ea30['setting']&&_0x42ea30[_0x130907('0x143f')][_0x130907('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x42ea30['title']=_0x130907('0x404'),_0x42ea30[_0x130907('0x2545')]=angular[_0x130907('0x20a')](_0x4d3ac8),_0x42ea30['servicenowAccounts']=_0x5cadf6,_0x42ea30[_0x130907('0xd36')]=![];!_0x42ea30['servicenowAccount']&&(_0x42ea30['servicenowAccount']={'serverUrl':_0x5e5529[_0x130907('0x1cc2')]()+_0x130907('0x356')+_0x5e5529['host']()+(_0x5e5529[_0x130907('0x191')]()?':'+_0x5e5529['port']():'')},_0x42ea30[_0x130907('0x110a')]=_0x130907('0x1409'),_0x42ea30[_0x130907('0xd36')]=!![]);_0x42ea30[_0x130907('0x1541')]=_0x20b2ae,_0x42ea30['saveServicenowAccount']=_0x22b469,_0x42ea30[_0x130907('0xe2b')]=_0x40eaa9,_0x42ea30[_0x130907('0xc09')]=_0x316841,_0x42ea30[_0x130907('0x2023')]=_0x56a318;function _0x20b2ae(){var _0x57b391=_0x130907;_0x42ea30[_0x57b391('0x4c6')]=[],_0x48eb4a[_0x57b391('0x1291')]['save'](_0x42ea30[_0x57b391('0x2545')])[_0x57b391('0x1dc2')]['then'](function(_0x2f435a){var _0x387889=_0x57b391;_0x42ea30[_0x387889('0x52')]['unshift'](_0x2f435a[_0x387889('0x256a')]()),_0x1facfd['success']({'title':_0x387889('0x263c'),'msg':_0x42ea30['servicenowAccount']['name']?_0x42ea30[_0x387889('0x2545')]['name']+_0x387889('0xdca'):''}),_0x56a318(_0x2f435a);})[_0x57b391('0x253d')](function(_0x75c032){var _0x314ab8=_0x57b391;if(_0x75c032[_0x314ab8('0x10fd')]&&_0x75c032['data']['errors']&&_0x75c032['data'][_0x314ab8('0x4c6')]['length']){_0x42ea30[_0x314ab8('0x4c6')]=_0x75c032[_0x314ab8('0x10fd')][_0x314ab8('0x4c6')]||[{'message':_0x75c032[_0x314ab8('0x684')](),'type':'api.intServicenowAccount.save'}];for(var _0x1cfe2f=0x0;_0x1cfe2f<_0x75c032['data']['errors']['length'];_0x1cfe2f+=0x1){_0x1facfd[_0x314ab8('0x187f')]({'title':_0x75c032[_0x314ab8('0x10fd')]['errors'][_0x1cfe2f][_0x314ab8('0x6c8')],'msg':_0x75c032[_0x314ab8('0x10fd')]['errors'][_0x1cfe2f][_0x314ab8('0x1402')]});}}else _0x1facfd[_0x314ab8('0x187f')]({'title':_0x75c032['status']?_0x314ab8('0x16c2')+_0x75c032[_0x314ab8('0x2fa')]+_0x314ab8('0x169e')+_0x75c032[_0x314ab8('0x24df')]:_0x314ab8('0x6e'),'msg':_0x75c032[_0x314ab8('0x10fd')]?JSON[_0x314ab8('0xa48')](_0x75c032[_0x314ab8('0x10fd')]['message']):_0x75c032[_0x314ab8('0x684')]()});});}function _0x22b469(){var _0x536815=_0x130907;_0x42ea30['errors']=[],_0x48eb4a[_0x536815('0x1291')][_0x536815('0x264e')]({'id':_0x42ea30[_0x536815('0x2545')]['id']},_0x42ea30[_0x536815('0x2545')])[_0x536815('0x1dc2')][_0x536815('0xaa5')](function(_0x369c2f){var _0x26bf2b=_0x536815,_0x2900c6=_0x51538b()['find'](_0x42ea30[_0x26bf2b('0x52')],{'id':_0x369c2f['id']});_0x2900c6&&_0x51538b()[_0x26bf2b('0x283c')](_0x2900c6,_0x51538b()[_0x26bf2b('0x104e')](_0x369c2f[_0x26bf2b('0x256a')](),_0x51538b()['keys'](_0x2900c6))),_0x1facfd[_0x26bf2b('0xe10')]({'title':'ServicenowAccount\x20properly\x20saved!','msg':_0x42ea30[_0x26bf2b('0x2545')][_0x26bf2b('0x25d6')]?_0x42ea30[_0x26bf2b('0x2545')]['name']+_0x26bf2b('0x20bf'):''}),_0x56a318(_0x369c2f);})[_0x536815('0x253d')](function(_0x3b5fa8){var _0x1f5ab5=_0x536815;if(_0x3b5fa8[_0x1f5ab5('0x10fd')]&&_0x3b5fa8['data'][_0x1f5ab5('0x4c6')]&&_0x3b5fa8[_0x1f5ab5('0x10fd')][_0x1f5ab5('0x4c6')]['length']){_0x42ea30['errors']=_0x3b5fa8[_0x1f5ab5('0x10fd')][_0x1f5ab5('0x4c6')]||[{'message':_0x3b5fa8[_0x1f5ab5('0x684')](),'type':_0x1f5ab5('0x2295')}];for(var _0x20d9b4=0x0;_0x20d9b4<_0x3b5fa8[_0x1f5ab5('0x10fd')][_0x1f5ab5('0x4c6')][_0x1f5ab5('0x2587')];_0x20d9b4++){_0x1facfd[_0x1f5ab5('0x187f')]({'title':_0x3b5fa8['data']['errors'][_0x20d9b4][_0x1f5ab5('0x6c8')],'msg':_0x3b5fa8['data'][_0x1f5ab5('0x4c6')][_0x20d9b4][_0x1f5ab5('0x1402')]});}}else _0x1facfd[_0x1f5ab5('0x187f')]({'title':_0x3b5fa8[_0x1f5ab5('0x2fa')]?_0x1f5ab5('0x16c2')+_0x3b5fa8[_0x1f5ab5('0x2fa')]+'\x20-\x20'+_0x3b5fa8[_0x1f5ab5('0x24df')]:_0x1f5ab5('0x2295'),'msg':_0x3b5fa8['data']?JSON[_0x1f5ab5('0xa48')](_0x3b5fa8['data'][_0x1f5ab5('0x1402')]):_0x3b5fa8[_0x1f5ab5('0x684')]()});});}function _0x40eaa9(_0x1c89eb){var _0x8d9b69=_0x130907;_0x42ea30[_0x8d9b69('0x4c6')]=[];var _0xa07044=_0x14878b[_0x8d9b69('0x281e')]()[_0x8d9b69('0x110a')](_0x8d9b69('0x12a3'))[_0x8d9b69('0x15af')](_0x8d9b69('0x1cf0'))['ariaLabel'](_0x8d9b69('0x2157'))['ok'](_0x8d9b69('0x1e76'))['cancel'](_0x8d9b69('0x9c6'))[_0x8d9b69('0x116d')](_0x1c89eb);_0x14878b[_0x8d9b69('0x1e6d')](_0xa07044)[_0x8d9b69('0xaa5')](function(){var _0x271e3a=_0x8d9b69;_0x48eb4a[_0x271e3a('0x1291')][_0x271e3a('0x926')]({'id':_0x42ea30[_0x271e3a('0x2545')]['id']})[_0x271e3a('0x1dc2')][_0x271e3a('0xaa5')](function(){var _0x22cb27=_0x271e3a;_0x51538b()[_0x22cb27('0xf6d')](_0x42ea30[_0x22cb27('0x52')],{'id':_0x42ea30[_0x22cb27('0x2545')]['id']}),_0x1facfd[_0x22cb27('0xe10')]({'title':_0x22cb27('0xfdc'),'msg':(_0x42ea30[_0x22cb27('0x2545')][_0x22cb27('0x25d6')]||'servicenowAccount')+_0x22cb27('0xcd9')}),_0x56a318(_0x42ea30[_0x22cb27('0x2545')]);})[_0x271e3a('0x253d')](function(_0x313c0e){var _0x1e841d=_0x271e3a;if(_0x313c0e[_0x1e841d('0x10fd')]&&_0x313c0e[_0x1e841d('0x10fd')][_0x1e841d('0x4c6')]&&_0x313c0e[_0x1e841d('0x10fd')][_0x1e841d('0x4c6')][_0x1e841d('0x2587')]){_0x42ea30[_0x1e841d('0x4c6')]=_0x313c0e['data']['errors']||[{'message':_0x313c0e[_0x1e841d('0x684')](),'type':_0x1e841d('0x1417')}];for(var _0x3b4205=0x0;_0x3b4205<_0x313c0e['data'][_0x1e841d('0x4c6')][_0x1e841d('0x2587')];_0x3b4205++){_0x1facfd[_0x1e841d('0x187f')]({'title':_0x313c0e[_0x1e841d('0x10fd')][_0x1e841d('0x4c6')][_0x3b4205]['type'],'msg':_0x313c0e[_0x1e841d('0x10fd')][_0x1e841d('0x4c6')][_0x3b4205][_0x1e841d('0x1402')]});}}else _0x1facfd['error']({'title':_0x313c0e[_0x1e841d('0x2fa')]?_0x1e841d('0x16c2')+_0x313c0e['status']+'\x20-\x20'+_0x313c0e[_0x1e841d('0x24df')]:'api.intServicenowAccount.delete','msg':_0x313c0e[_0x1e841d('0x10fd')]?JSON['stringify'](_0x313c0e[_0x1e841d('0x10fd')][_0x1e841d('0x1402')]):_0x313c0e[_0x1e841d('0x1402')]||_0x313c0e[_0x1e841d('0x684')]()});});},function(){});}function _0x316841(_0x35d477){return _0x35d477===null?undefined:new Date(_0x35d477);}function _0x56a318(_0x4380f4){_0x14878b['hide'](_0x4380f4);}}const _0x7c8fe2=_0x150af8,_0x4a6ab7=_0x4fb511['p']+_0x1a8446('0x1e10'),_0x1649ae=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x26aab8['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth'];function _0x26aab8(_0x1fe126,_0x69d801,_0x4d8437,_0x1e880e,_0x274c38){var _0x22c080=_0x1a8446,_0x20fc98=this;_0x20fc98[_0x22c080('0x7fc')]=_0x274c38[_0x22c080('0xacc')](),_0x20fc98[_0x22c080('0x2545')]={},_0x20fc98[_0x22c080('0x142')]={},_0x20fc98[_0x22c080('0x555')]=[],_0x20fc98[_0x22c080('0x18a8')]=-0x1,_0x20fc98[_0x22c080('0xada')],_0x20fc98['init']=_0x2190a1,_0x20fc98[_0x22c080('0x16f3')]=_0x49928a,_0x20fc98[_0x22c080('0x16fb')]=_0xf95b77,_0x20fc98[_0x22c080('0x1111')]=_0x1f9fec;function _0x2190a1(_0x5502fa,_0x54c650){var _0x444349=_0x22c080;_0x20fc98[_0x444349('0x2545')]=_0x5502fa,_0x20fc98[_0x444349('0xada')]=typeof _0x54c650!==_0x444349('0x1574')?_0x54c650:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4d8437['intServicenowAccount']['getConfigurations']({'id':_0x20fc98['servicenowAccount']['id'],'sort':_0x444349('0xd82')})[_0x444349('0x1dc2')]['then'](function(_0x4c1e45){var _0x4240c0=_0x444349;return _0x20fc98[_0x4240c0('0x555')]=_0x4c1e45[_0x4240c0('0x580')]?_0x4c1e45[_0x4240c0('0x580')]:[],_0x20fc98['configurations'][_0x4240c0('0x2587')]&&_0x20fc98[_0x4240c0('0x16f3')](0x0),_0x4d8437[_0x4240c0('0x14e7')][_0x4240c0('0x2122')]({'nolimit':!![],'sort':_0x4240c0('0x25d6')})['$promise'];})['then'](function(_0x4349f3){var _0x917887=_0x444349;_0x20fc98[_0x917887('0x147e')]=_0x4349f3[_0x917887('0x580')]?_0x4349f3[_0x917887('0x580')]:[],_0x20fc98[_0x917887('0x2032')]=_0x51538b()[_0x917887('0x184a')](_0x20fc98[_0x917887('0x147e')],'id');})[_0x444349('0x253d')](function(_0x3f2b87){var _0x5bede5=_0x444349;_0x1e880e['error']({'title':_0x3f2b87['status']?_0x5bede5('0x16c2')+_0x3f2b87[_0x5bede5('0x2fa')]+'\x20-\x20'+_0x3f2b87['statusText']:_0x5bede5('0x24c9'),'msg':_0x3f2b87[_0x5bede5('0x10fd')]?JSON['stringify'](_0x3f2b87[_0x5bede5('0x10fd')]):_0x3f2b87['toString']()});});}function _0x49928a(_0x2005d1){var _0x475a64=_0x22c080;_0x20fc98[_0x475a64('0x142')]=_0x20fc98[_0x475a64('0x555')][_0x2005d1],_0x20fc98['selectedServicenowConfiguration']=_0x2005d1,_0x4d8437['intServicenowConfiguration']['getSubjects']({'id':_0x20fc98[_0x475a64('0x142')]['id']})[_0x475a64('0x1dc2')]['then'](function(_0x4ffe6b){var _0x1bee22=_0x475a64;return _0x20fc98[_0x1bee22('0xc3f')]=_0x4ffe6b[_0x1bee22('0x580')]?_0x4ffe6b[_0x1bee22('0x580')]:[],_0x4d8437[_0x1bee22('0x26e7')][_0x1bee22('0x2103')]({'id':_0x20fc98[_0x1bee22('0x142')]['id']})['$promise'];})[_0x475a64('0xaa5')](function(_0x210321){var _0x4eb9af=_0x475a64;return _0x20fc98[_0x4eb9af('0x27b9')]=_0x210321[_0x4eb9af('0x580')]?_0x210321['rows']:[],_0x4d8437['intServicenowConfiguration'][_0x4eb9af('0x1450')]({'id':_0x20fc98[_0x4eb9af('0x142')]['id']})[_0x4eb9af('0x1dc2')];})[_0x475a64('0xaa5')](function(_0x3e4de0){var _0x4591cd=_0x475a64;_0x20fc98[_0x4591cd('0x13a')]=_0x3e4de0[_0x4591cd('0x580')]?_0x3e4de0[_0x4591cd('0x580')]:[];})['catch'](function(_0x42ce23){var _0x1f2774=_0x475a64;_0x1e880e['error']({'title':_0x42ce23[_0x1f2774('0x2fa')]?'API:'+_0x42ce23[_0x1f2774('0x2fa')]+_0x1f2774('0x169e')+_0x42ce23[_0x1f2774('0x24df')]:_0x1f2774('0xd6d'),'msg':_0x42ce23['data']?JSON[_0x1f2774('0xa48')](_0x42ce23[_0x1f2774('0x10fd')]):_0x42ce23['toString']()});});}function _0xf95b77(_0x2a0c3f,_0x1af78c){var _0x29a245=_0x22c080;_0x1fe126[_0x29a245('0x1e6d')]({'controller':_0x29a245('0xe2d'),'controllerAs':'vm','templateUrl':_0x4a6ab7,'parent':angular[_0x29a245('0x1aa8')](_0x69d801[_0x29a245('0x54c')]),'targetEvent':_0x2a0c3f,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x1af78c,'configurations':_0x20fc98[_0x29a245('0x555')],'license':null,'setting':null,'crudPermissions':_0x20fc98[_0x29a245('0xada')]}})[_0x29a245('0x1889')](function(){var _0x1581b5=_0x29a245;_0x20fc98[_0x1581b5('0x16f3')](0x0);});}function _0x1f9fec(_0x242f25,_0x168cfe){var _0x4db3d4=_0x22c080,_0x9da66b=_0x1fe126[_0x4db3d4('0x281e')]()[_0x4db3d4('0x110a')](_0x4db3d4('0x1f4c'))[_0x4db3d4('0x102e')](_0x4db3d4('0x389')+(_0x168cfe['name']||_0x4db3d4('0x142'))+_0x4db3d4('0x697')+_0x4db3d4('0x210d'))['ariaLabel'](_0x4db3d4('0x204'))[_0x4db3d4('0x116d')](_0x242f25)['ok']('OK')['cancel'](_0x4db3d4('0x2410'));_0x1fe126['show'](_0x9da66b)['then'](function(){var _0x379b4b=_0x4db3d4;_0x4d8437['intServicenowConfiguration']['delete']({'id':_0x168cfe['id']})[_0x379b4b('0x1dc2')][_0x379b4b('0xaa5')](function(){var _0x4ed4ee=_0x379b4b;_0x51538b()['remove'](_0x20fc98['configurations'],{'id':_0x168cfe['id']}),_0x1e880e[_0x4ed4ee('0xe10')]({'title':_0x4ed4ee('0x19e9'),'msg':_0x168cfe['name']?_0x168cfe[_0x4ed4ee('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x379b4b('0x253d')](function(_0x4b4a49){var _0x25a261=_0x379b4b;_0x1e880e[_0x25a261('0x187f')]({'title':_0x4b4a49[_0x25a261('0x2fa')]?_0x25a261('0x16c2')+_0x4b4a49[_0x25a261('0x2fa')]+_0x25a261('0x169e')+_0x4b4a49['statusText']:_0x25a261('0x2549'),'msg':_0x4b4a49['data']?JSON[_0x25a261('0xa48')](_0x4b4a49[_0x25a261('0x10fd')]):_0x4b4a49[_0x25a261('0x684')]()});})[_0x379b4b('0x1889')](function(){_0x20fc98['getServicenowConfiguration'](0x0);});},function(){console['log']('CANCEL');});}_0x20fc98['selectedSubjects']=[],_0x20fc98[_0x22c080('0x21c5')]=_0x244984,_0x20fc98[_0x22c080('0x1e1e')]=_0x3d4994,_0x20fc98[_0x22c080('0x911')]=_0x3c587d;function _0x244984(_0x2ab53d,_0x292b66){var _0xa8dc1e=_0x22c080;_0x1fe126[_0xa8dc1e('0x1e6d')]({'controller':_0xa8dc1e('0x1dde'),'controllerAs':'vm','templateUrl':_0x1649ae,'parent':angular['element'](_0x69d801['body']),'targetEvent':_0x2ab53d,'clickOutsideToClose':!![],'locals':{'type':_0xa8dc1e('0x2101'),'item':_0x292b66,'items':_0x20fc98[_0xa8dc1e('0xc3f')],'configuration':_0x20fc98['servicenowConfiguration'],'account':_0x20fc98[_0xa8dc1e('0x2545')],'license':null,'setting':null,'crudPermissions':_0x20fc98['crudPermissions']}});}function _0x2e98a7(_0xf4aae0){var _0x2e1028=_0x22c080;_0x4d8437[_0x2e1028('0x36c')]['delete']({'id':_0xf4aae0['id']})['$promise'][_0x2e1028('0xaa5')](function(){var _0x225d30=_0x2e1028;_0x51538b()[_0x225d30('0xf6d')](_0x20fc98[_0x225d30('0xc3f')],{'id':_0xf4aae0['id']}),_0x1e880e[_0x225d30('0xe10')]({'title':_0x225d30('0xcad'),'msg':_0x225d30('0x1732')});})['catch'](function(_0x4d18cb){var _0x175b81=_0x2e1028;_0x1e880e['error']({'title':_0x4d18cb[_0x175b81('0x2fa')]?_0x175b81('0x16c2')+_0x4d18cb[_0x175b81('0x2fa')]+'\x20-\x20'+_0x4d18cb[_0x175b81('0x24df')]:_0x175b81('0xdd7'),'msg':_0x4d18cb[_0x175b81('0x10fd')]?JSON[_0x175b81('0xa48')](_0x4d18cb[_0x175b81('0x10fd')]):_0x4d18cb[_0x175b81('0x684')]()});});}function _0x3d4994(_0x33a318,_0x562764){var _0x12dd98=_0x22c080,_0x564b45=_0x1fe126[_0x12dd98('0x281e')]()['title'](_0x12dd98('0x16b5'))[_0x12dd98('0x102e')](_0x12dd98('0xd7')+_0x12dd98('0x210d'))['ariaLabel']('delete\x20subject')[_0x12dd98('0x116d')](_0x33a318)['ok']('OK')[_0x12dd98('0x2030')](_0x12dd98('0x2410'));_0x1fe126[_0x12dd98('0x1e6d')](_0x564b45)[_0x12dd98('0xaa5')](function(){_0x2e98a7(_0x562764);},function(){var _0x2c0839=_0x12dd98;console[_0x2c0839('0x18d5')](_0x2c0839('0x2410'));});}function _0x3c587d(_0x2f1f2b){var _0x255fbe=_0x22c080,_0x2742ac=_0x1fe126[_0x255fbe('0x281e')]()[_0x255fbe('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')['htmlContent'](_0x255fbe('0x389')+_0x20fc98[_0x255fbe('0xf7d')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x255fbe('0x5b5')]('delete\x20subjects')[_0x255fbe('0x116d')](_0x2f1f2b)['ok']('OK')[_0x255fbe('0x2030')](_0x255fbe('0x2410'));_0x1fe126[_0x255fbe('0x1e6d')](_0x2742ac)[_0x255fbe('0xaa5')](function(){var _0x332e85=_0x255fbe;_0x20fc98['selectedSubjects'][_0x332e85('0x15b5')](function(_0x22d9e2){_0x2e98a7(_0x22d9e2);}),_0x20fc98['selectedSubjects']=[];});}_0x20fc98[_0x22c080('0x1b51')]=[],_0x20fc98[_0x22c080('0x19db')]=_0x4b0a2b,_0x20fc98[_0x22c080('0x12af')]=_0x17b400,_0x20fc98[_0x22c080('0x416')]=_0x141da8;function _0x4b0a2b(_0x3a70eb,_0x2400e9){var _0x17c997=_0x22c080;_0x1fe126[_0x17c997('0x1e6d')]({'controller':_0x17c997('0x1dde'),'controllerAs':'vm','templateUrl':_0x1649ae,'parent':angular[_0x17c997('0x1aa8')](_0x69d801[_0x17c997('0x54c')]),'targetEvent':_0x3a70eb,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x2400e9,'items':_0x20fc98['descriptions'],'configuration':_0x20fc98['servicenowConfiguration'],'account':_0x20fc98[_0x17c997('0x2545')],'license':null,'setting':null,'crudPermissions':_0x20fc98[_0x17c997('0xada')]}});}function _0x81b46d(_0x26e61b){var _0x5a6a48=_0x22c080;_0x4d8437['intServicenowField'][_0x5a6a48('0x926')]({'id':_0x26e61b['id']})[_0x5a6a48('0x1dc2')][_0x5a6a48('0xaa5')](function(){var _0x1ddc76=_0x5a6a48;_0x51538b()[_0x1ddc76('0xf6d')](_0x20fc98['descriptions'],{'id':_0x26e61b['id']}),_0x1e880e['success']({'title':_0x1ddc76('0x1d35'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x5a6a48('0x253d')](function(_0x3e0b88){var _0x4ee6c8=_0x5a6a48;_0x1e880e[_0x4ee6c8('0x187f')]({'title':_0x3e0b88[_0x4ee6c8('0x2fa')]?_0x4ee6c8('0x16c2')+_0x3e0b88['status']+_0x4ee6c8('0x169e')+_0x3e0b88[_0x4ee6c8('0x24df')]:_0x4ee6c8('0xdd7'),'msg':_0x3e0b88[_0x4ee6c8('0x10fd')]?JSON[_0x4ee6c8('0xa48')](_0x3e0b88['data']):_0x3e0b88[_0x4ee6c8('0x684')]()});});}function _0x17b400(_0x150cb7,_0x21e5ec){var _0x2f97da=_0x22c080,_0x2db09f=_0x1fe126[_0x2f97da('0x281e')]()[_0x2f97da('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0x2f97da('0x102e')](_0x2f97da('0x2534')+_0x2f97da('0x210d'))[_0x2f97da('0x5b5')](_0x2f97da('0x8b2'))[_0x2f97da('0x116d')](_0x150cb7)['ok']('OK')[_0x2f97da('0x2030')](_0x2f97da('0x2410'));_0x1fe126['show'](_0x2db09f)[_0x2f97da('0xaa5')](function(){_0x81b46d(_0x21e5ec);},function(){var _0x5da05c=_0x2f97da;console[_0x5da05c('0x18d5')](_0x5da05c('0x2410'));});}function _0x141da8(_0x36a731){var _0x3311e8=_0x22c080,_0x38f9ea=_0x1fe126[_0x3311e8('0x281e')]()[_0x3311e8('0x110a')](_0x3311e8('0x12ce'))[_0x3311e8('0x102e')](_0x3311e8('0x389')+_0x20fc98[_0x3311e8('0x1b51')][_0x3311e8('0x2587')]+_0x3311e8('0x1443')+'\x20will\x20be\x20deleted.')[_0x3311e8('0x5b5')](_0x3311e8('0xcfb'))[_0x3311e8('0x116d')](_0x36a731)['ok']('OK')['cancel'](_0x3311e8('0x2410'));_0x1fe126[_0x3311e8('0x1e6d')](_0x38f9ea)[_0x3311e8('0xaa5')](function(){var _0x266424=_0x3311e8;_0x20fc98[_0x266424('0x1b51')][_0x266424('0x15b5')](function(_0x1d8bd0){_0x81b46d(_0x1d8bd0);}),_0x20fc98[_0x266424('0x1b51')]=[];});}_0x20fc98['selectedFields']=[],_0x20fc98[_0x22c080('0x1572')]=_0x3faefe,_0x20fc98[_0x22c080('0x353')]=_0x188161,_0x20fc98[_0x22c080('0x261a')]=_0x12545a;function _0x3faefe(_0x305132,_0x4296c6){var _0x5a6ecc=_0x22c080;_0x1fe126[_0x5a6ecc('0x1e6d')]({'controller':_0x5a6ecc('0x1dde'),'controllerAs':'vm','templateUrl':_0x1649ae,'parent':angular[_0x5a6ecc('0x1aa8')](_0x69d801[_0x5a6ecc('0x54c')]),'targetEvent':_0x305132,'clickOutsideToClose':!![],'locals':{'type':_0x5a6ecc('0x5f2'),'item':_0x4296c6,'items':_0x20fc98[_0x5a6ecc('0x13a')],'configuration':_0x20fc98[_0x5a6ecc('0x142')],'account':_0x20fc98[_0x5a6ecc('0x2545')],'license':null,'setting':null,'crudPermissions':_0x20fc98[_0x5a6ecc('0xada')]}});}function _0x5580b1(_0xc080af){var _0x5c3fd4=_0x22c080;_0x4d8437[_0x5c3fd4('0x36c')][_0x5c3fd4('0x926')]({'id':_0xc080af['id']})['$promise']['then'](function(){var _0x503b6a=_0x5c3fd4;_0x51538b()[_0x503b6a('0xf6d')](_0x20fc98[_0x503b6a('0x13a')],{'id':_0xc080af['id']}),_0x1e880e['success']({'title':_0x503b6a('0x25e1'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x5c3fd4('0x253d')](function(_0x5724b7){var _0x423c73=_0x5c3fd4;_0x1e880e['error']({'title':_0x5724b7[_0x423c73('0x2fa')]?_0x423c73('0x16c2')+_0x5724b7[_0x423c73('0x2fa')]+_0x423c73('0x169e')+_0x5724b7[_0x423c73('0x24df')]:_0x423c73('0xdd7'),'msg':_0x5724b7[_0x423c73('0x10fd')]?JSON[_0x423c73('0xa48')](_0x5724b7[_0x423c73('0x10fd')]):_0x5724b7[_0x423c73('0x684')]()});});}function _0x188161(_0x138164,_0x30265b){var _0x4fa3ad=_0x22c080,_0x57196f=_0x1fe126['confirm']()[_0x4fa3ad('0x110a')](_0x4fa3ad('0x27fc'))[_0x4fa3ad('0x102e')](_0x4fa3ad('0x455')+_0x4fa3ad('0x210d'))['ariaLabel'](_0x4fa3ad('0x1286'))[_0x4fa3ad('0x116d')](_0x138164)['ok']('OK')[_0x4fa3ad('0x2030')](_0x4fa3ad('0x2410'));_0x1fe126[_0x4fa3ad('0x1e6d')](_0x57196f)[_0x4fa3ad('0xaa5')](function(){_0x5580b1(_0x30265b);},function(){var _0x464cdc=_0x4fa3ad;console['log'](_0x464cdc('0x2410'));});}function _0x12545a(_0x357bcd){var _0x49d6c6=_0x22c080,_0xcff5f5=_0x1fe126['confirm']()[_0x49d6c6('0x110a')](_0x49d6c6('0xf28'))[_0x49d6c6('0x102e')](''+_0x20fc98[_0x49d6c6('0x490')]['length']+_0x49d6c6('0x1443')+_0x49d6c6('0x210d'))['ariaLabel'](_0x49d6c6('0xefc'))['targetEvent'](_0x357bcd)['ok']('OK')[_0x49d6c6('0x2030')]('CANCEL');_0x1fe126[_0x49d6c6('0x1e6d')](_0xcff5f5)[_0x49d6c6('0xaa5')](function(){var _0x1994ed=_0x49d6c6;_0x20fc98[_0x1994ed('0x490')][_0x1994ed('0x15b5')](function(_0x863585){_0x5580b1(_0x863585);}),_0x20fc98[_0x1994ed('0x490')]=[];});}}const _0x5b9dbd=_0x26aab8;_0x130789[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state','$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty',_0x1a8446('0x555'),_0x1a8446('0x142'),'api',_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x130789(_0x371774,_0x83c02f,_0x4b1d42,_0x4c11c5,_0x1b7617,_0x19c20a,_0x22feb9,_0x5c8f9c,_0x5222cc,_0x380f98,_0xa2426b,_0x3a7b26,_0x5b19fc,_0x56bb1a){var _0x4c2429=_0x1a8446,_0x680e07=this;_0x680e07[_0x4c2429('0x7fc')]=_0xa2426b[_0x4c2429('0xacc')](),_0x680e07[_0x4c2429('0x4c6')]=[],_0x680e07[_0x4c2429('0x143f')]=_0x5b19fc,_0x680e07['license']=_0x3a7b26,_0x680e07['crudPermissions']=_0x56bb1a,_0x680e07[_0x4c2429('0x9f0')]={},_0x680e07['passwordPattern']=_0x680e07[_0x4c2429('0x143f')]&&_0x680e07[_0x4c2429('0x143f')][_0x4c2429('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x680e07[_0x4c2429('0x110a')]=_0x4c2429('0x1cb3'),_0x680e07['servicenowConfiguration']=angular['copy'](_0x5222cc),_0x680e07['configurations']=_0x5c8f9c,_0x680e07['newServicenowConfiguration']=![];!_0x680e07[_0x4c2429('0x142')]&&(_0x680e07['servicenowConfiguration']={'channel':_0x4c2429('0x1b9'),'type':'inbound'},_0x680e07[_0x4c2429('0x110a')]=_0x4c2429('0x24bd'),_0x680e07[_0x4c2429('0x146d')]=!![]);_0x680e07[_0x4c2429('0x2360')]=_0x195575,_0x680e07['saveServicenowConfiguration']=_0x3cd89a,_0x680e07[_0x4c2429('0x1111')]=_0x281254,_0x680e07[_0x4c2429('0xc09')]=_0x1f6b05,_0x680e07[_0x4c2429('0x2023')]=_0x147c42;function _0x195575(){var _0x114c0e=_0x4c2429;_0x680e07[_0x114c0e('0x4c6')]=[],_0x380f98[_0x114c0e('0x1291')][_0x114c0e('0x118f')]({'id':_0x83c02f[_0x114c0e('0x25cf')]['id']},_0x680e07[_0x114c0e('0x142')])[_0x114c0e('0x1dc2')]['then'](function(_0x2933b0){var _0x30a57a=_0x114c0e;_0x680e07[_0x30a57a('0x555')][_0x30a57a('0x6ee')](_0x2933b0[_0x30a57a('0x256a')]()),_0x22feb9['success']({'title':_0x30a57a('0x1440'),'msg':_0x680e07[_0x30a57a('0x142')][_0x30a57a('0x25d6')]?_0x680e07[_0x30a57a('0x142')][_0x30a57a('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x147c42(_0x2933b0);})[_0x114c0e('0x253d')](function(_0x424f13){var _0x9651e2=_0x114c0e;if(_0x424f13[_0x9651e2('0x10fd')]&&_0x424f13[_0x9651e2('0x10fd')][_0x9651e2('0x4c6')]&&_0x424f13[_0x9651e2('0x10fd')][_0x9651e2('0x4c6')][_0x9651e2('0x2587')]){_0x680e07['errors']=_0x424f13[_0x9651e2('0x10fd')][_0x9651e2('0x4c6')]||[{'message':_0x424f13[_0x9651e2('0x684')](),'type':_0x9651e2('0xa91')}];for(var _0xc4f383=0x0;_0xc4f383<_0x424f13[_0x9651e2('0x10fd')]['errors'][_0x9651e2('0x2587')];_0xc4f383+=0x1){_0x22feb9[_0x9651e2('0x187f')]({'title':_0x424f13['data'][_0x9651e2('0x4c6')][_0xc4f383][_0x9651e2('0x6c8')],'msg':_0x424f13[_0x9651e2('0x10fd')]['errors'][_0xc4f383][_0x9651e2('0x1402')]});}}else _0x22feb9[_0x9651e2('0x187f')]({'title':_0x424f13[_0x9651e2('0x2fa')]?_0x9651e2('0x16c2')+_0x424f13[_0x9651e2('0x2fa')]+_0x9651e2('0x169e')+_0x424f13['statusText']:'api.intServicenowConfiguration.save','msg':_0x424f13[_0x9651e2('0x10fd')]?JSON[_0x9651e2('0xa48')](_0x424f13[_0x9651e2('0x10fd')][_0x9651e2('0x1402')]):_0x424f13[_0x9651e2('0x684')]()});});}function _0x3cd89a(){var _0x2704b1=_0x4c2429;_0x680e07[_0x2704b1('0x4c6')]=[],_0x380f98[_0x2704b1('0x26e7')][_0x2704b1('0x264e')]({'id':_0x680e07[_0x2704b1('0x142')]['id']},_0x680e07[_0x2704b1('0x142')])[_0x2704b1('0x1dc2')][_0x2704b1('0xaa5')](function(_0x165591){var _0x511673=_0x2704b1,_0x44a327=_0x51538b()[_0x511673('0xe9e')](_0x680e07['configurations'],{'id':_0x165591['id']});_0x44a327&&_0x51538b()[_0x511673('0x283c')](_0x44a327,_0x51538b()[_0x511673('0x104e')](_0x165591[_0x511673('0x256a')](),_0x51538b()[_0x511673('0x9f2')](_0x44a327))),_0x22feb9['success']({'title':_0x511673('0x2c0'),'msg':_0x680e07[_0x511673('0x142')][_0x511673('0x25d6')]?_0x680e07[_0x511673('0x142')][_0x511673('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x147c42(_0x165591);})[_0x2704b1('0x253d')](function(_0x45ebe6){var _0x4badb6=_0x2704b1;if(_0x45ebe6[_0x4badb6('0x10fd')]&&_0x45ebe6['data'][_0x4badb6('0x4c6')]&&_0x45ebe6[_0x4badb6('0x10fd')][_0x4badb6('0x4c6')]['length']){_0x680e07[_0x4badb6('0x4c6')]=_0x45ebe6[_0x4badb6('0x10fd')][_0x4badb6('0x4c6')]||[{'message':_0x45ebe6['toString'](),'type':_0x4badb6('0x2ab')}];for(var _0x4c050d=0x0;_0x4c050d<_0x45ebe6[_0x4badb6('0x10fd')][_0x4badb6('0x4c6')]['length'];_0x4c050d++){_0x22feb9[_0x4badb6('0x187f')]({'title':_0x45ebe6[_0x4badb6('0x10fd')]['errors'][_0x4c050d][_0x4badb6('0x6c8')],'msg':_0x45ebe6[_0x4badb6('0x10fd')][_0x4badb6('0x4c6')][_0x4c050d][_0x4badb6('0x1402')]});}}else _0x22feb9['error']({'title':_0x45ebe6[_0x4badb6('0x2fa')]?_0x4badb6('0x16c2')+_0x45ebe6[_0x4badb6('0x2fa')]+_0x4badb6('0x169e')+_0x45ebe6['statusText']:_0x4badb6('0x2ab'),'msg':_0x45ebe6['data']?JSON[_0x4badb6('0xa48')](_0x45ebe6[_0x4badb6('0x10fd')][_0x4badb6('0x1402')]):_0x45ebe6[_0x4badb6('0x684')]()});});}function _0x281254(_0x1d1c11){var _0x12305b=_0x4c2429;_0x680e07[_0x12305b('0x4c6')]=[];var _0x1a17cc=_0x4c11c5[_0x12305b('0x281e')]()[_0x12305b('0x110a')]('Are\x20you\x20sure?')[_0x12305b('0x15af')](_0x12305b('0x2355'))['ariaLabel'](_0x12305b('0x2782'))['ok'](_0x12305b('0x1e76'))[_0x12305b('0x2030')](_0x12305b('0x9c6'))['targetEvent'](_0x1d1c11);_0x4c11c5[_0x12305b('0x1e6d')](_0x1a17cc)[_0x12305b('0xaa5')](function(){var _0x18f3d9=_0x12305b;_0x380f98[_0x18f3d9('0x26e7')][_0x18f3d9('0x926')]({'id':_0x680e07[_0x18f3d9('0x142')]['id']})[_0x18f3d9('0x1dc2')][_0x18f3d9('0xaa5')](function(){var _0x3c845d=_0x18f3d9;_0x51538b()[_0x3c845d('0xf6d')](_0x680e07['configurations'],{'id':_0x680e07[_0x3c845d('0x142')]['id']}),_0x22feb9[_0x3c845d('0xe10')]({'title':_0x3c845d('0x4ba'),'msg':(_0x680e07['servicenowConfiguration'][_0x3c845d('0x25d6')]||_0x3c845d('0x142'))+_0x3c845d('0xcd9')}),_0x147c42(_0x680e07[_0x3c845d('0x142')]);})['catch'](function(_0x33cfec){var _0x587343=_0x18f3d9;if(_0x33cfec[_0x587343('0x10fd')]&&_0x33cfec[_0x587343('0x10fd')]['errors']&&_0x33cfec[_0x587343('0x10fd')][_0x587343('0x4c6')][_0x587343('0x2587')]){_0x680e07['errors']=_0x33cfec[_0x587343('0x10fd')][_0x587343('0x4c6')]||[{'message':_0x33cfec['toString'](),'type':'api.intServicenowConfiguration.delete'}];for(var _0x525556=0x0;_0x525556<_0x33cfec[_0x587343('0x10fd')][_0x587343('0x4c6')]['length'];_0x525556++){_0x22feb9[_0x587343('0x187f')]({'title':_0x33cfec[_0x587343('0x10fd')][_0x587343('0x4c6')][_0x525556][_0x587343('0x6c8')],'msg':_0x33cfec['data'][_0x587343('0x4c6')][_0x525556][_0x587343('0x1402')]});}}else _0x22feb9['error']({'title':_0x33cfec[_0x587343('0x2fa')]?_0x587343('0x16c2')+_0x33cfec[_0x587343('0x2fa')]+'\x20-\x20'+_0x33cfec['statusText']:'api.intServicenowConfiguration.delete','msg':_0x33cfec[_0x587343('0x10fd')]?JSON['stringify'](_0x33cfec[_0x587343('0x10fd')][_0x587343('0x1402')]):_0x33cfec[_0x587343('0x1402')]||_0x33cfec[_0x587343('0x684')]()});});},function(){});}function _0x1f6b05(_0x25ea3f){return _0x25ea3f===null?undefined:new Date(_0x25ea3f);}function _0x147c42(_0x1a923b){var _0x93a64a=_0x4c2429;_0x4c11c5[_0x93a64a('0x1120')](_0x1a923b);}}const _0x2ecdf1=_0x130789;_0x4d35ca[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'toasty',_0x1a8446('0x72'),_0x1a8446('0x1a30'),'item','account',_0x1a8446('0x6c8'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x4d35ca(_0x1a2590,_0x3acb9c,_0x553eb9,_0x3dda8f,_0x397ef2,_0x29daac,_0x461e13,_0x4bedf8,_0x56459c,_0x4f823b,_0x37c52a,_0x20888e,_0x11148a){var _0x4d25b5=_0x1a8446,_0x159616=this;_0x159616[_0x4d25b5('0x7fc')]=_0x20888e['getCurrentUser'](),_0x159616[_0x4d25b5('0x4c6')]=[],_0x159616[_0x4d25b5('0x110a')]=_0x4d25b5('0x66b')+_0x51538b()[_0x4d25b5('0x1818')](_0x4f823b),_0x159616['item']=angular[_0x4d25b5('0x20a')](_0x4bedf8),_0x159616[_0x4d25b5('0x1a30')]=_0x461e13,_0x159616['type']=_0x4f823b,_0x159616['crudPermissions']=_0x11148a,_0x159616[_0x4d25b5('0x1891')]=![];!_0x159616[_0x4d25b5('0x1a38')]&&(_0x159616[_0x4d25b5('0x1a38')]={'type':_0x4d25b5('0x199')},_0x159616['item'][_0x51538b()[_0x4d25b5('0x1b56')](_0x4f823b)+'Id']=_0x29daac['id'],_0x159616[_0x4d25b5('0x110a')]=_0x4d25b5('0x1502')+_0x51538b()['toUpper'](_0x4f823b),_0x159616['newItem']=!![]);_0x159616['addNewItem']=_0x5108a6,_0x159616[_0x4d25b5('0x24c7')]=_0x15849a,_0x159616[_0x4d25b5('0x1994')]=_0x1ab947,_0x159616[_0x4d25b5('0x1b0f')]=_0x583daf,_0x159616['closeDialog']=_0x4a0a56,_0x37c52a[_0x4d25b5('0x14e7')]['get']({'nolimit':!![]})[_0x4d25b5('0x1dc2')]['then'](function(_0x16f37d){var _0x447825=_0x4d25b5;return _0x159616[_0x447825('0x147e')]=_0x16f37d[_0x447825('0x580')]?_0x16f37d[_0x447825('0x580')]:[],_0x37c52a['voiceAgentReport'][_0x447825('0x3e7')]()['$promise'];})['then'](function(_0x1b54db){var _0x857294=_0x4d25b5;return _0x159616[_0x857294('0x27a9')]=_0x51538b()['difference'](_0x51538b()[_0x857294('0x9f2')](_0x1b54db),[_0x857294('0x1dc2'),'$resolved','createdAt',_0x857294('0x19f3'),_0x857294('0x129a')]),_0x159616[_0x857294('0x27a9')][_0x857294('0x1599')](_0x857294('0xef3')),_0x37c52a[_0x857294('0x1f51')][_0x857294('0x3e7')]()[_0x857294('0x1dc2')];})[_0x4d25b5('0xaa5')](function(_0x4f4887){var _0x3e0847=_0x4d25b5;_0x159616[_0x3e0847('0xc69')]=_0x51538b()[_0x3e0847('0x1485')](_0x51538b()[_0x3e0847('0x9f2')](_0x4f4887),[_0x3e0847('0x1dc2'),_0x3e0847('0xd92'),'createdAt','updatedAt',_0x3e0847('0x129a')]),_0x159616[_0x3e0847('0xc69')]['push'](_0x3e0847('0xef3'));})[_0x4d25b5('0x253d')](function(_0x5589a2){var _0x4db113=_0x4d25b5;_0x397ef2['error']({'title':_0x5589a2[_0x4db113('0x2fa')]?_0x4db113('0x16c2')+_0x5589a2[_0x4db113('0x2fa')]+_0x4db113('0x169e')+_0x5589a2['statusText']:_0x4db113('0x2652'),'msg':_0x5589a2[_0x4db113('0x10fd')]?JSON[_0x4db113('0xa48')](_0x5589a2[_0x4db113('0x10fd')]):_0x5589a2[_0x4db113('0x684')]()});}),_0x37c52a[_0x4d25b5('0x1291')][_0x4d25b5('0x1450')]({'id':_0x56459c['id'],'ticketType':_0x29daac[_0x4d25b5('0x1146')]?_0x29daac['ticketType']:undefined})[_0x4d25b5('0x1dc2')]['then'](function(_0x2a6e9d){var _0x54c717=_0x4d25b5;_0x159616[_0x54c717('0x722')]=!![],_0x159616['fields']=_0x2a6e9d[_0x54c717('0x580')]?_0x2a6e9d[_0x54c717('0x580')]:[],_0x159616[_0x54c717('0x1a38')][_0x54c717('0x1dfc')]&&(_0x159616['customField']=_0x51538b()[_0x54c717('0xe9e')](_0x159616[_0x54c717('0x13a')],{'id':_0x159616[_0x54c717('0x1a38')][_0x54c717('0x1dfc')]}));})[_0x4d25b5('0x253d')](function(_0x4b2332){var _0xad371c=_0x4d25b5;_0x159616['accountConnected']=![],console[_0xad371c('0x187f')](_0x4b2332);});function _0x5108a6(){var _0x3fe7c1=_0x4d25b5;_0x159616[_0x3fe7c1('0x4c6')]=[],_0x159616[_0x3fe7c1('0x6fc')]&&(_0x159616[_0x3fe7c1('0x1a38')][_0x3fe7c1('0x1dfc')]=_0x159616[_0x3fe7c1('0x6fc')]['id'],_0x159616[_0x3fe7c1('0x1a38')][_0x3fe7c1('0x1662')]=_0x159616[_0x3fe7c1('0x6fc')][_0x3fe7c1('0x25d6')],_0x159616[_0x3fe7c1('0x1a38')][_0x3fe7c1('0x6fc')]=_0x159616[_0x3fe7c1('0x6fc')][_0x3fe7c1('0x113b')]),_0x37c52a[_0x3fe7c1('0x36c')]['save'](_0x159616['item'])[_0x3fe7c1('0x1dc2')][_0x3fe7c1('0xaa5')](function(_0x1b384e){var _0x333467=_0x3fe7c1;_0x159616[_0x333467('0x1a30')][_0x333467('0x6ee')](_0x1b384e),_0x397ef2[_0x333467('0xe10')]({'title':_0x51538b()[_0x333467('0x1b56')](_0x4f823b)+_0x333467('0xbf5'),'msg':_0x51538b()['capitalize'](_0x4f823b)+_0x333467('0xdca')}),_0x4a0a56();})[_0x3fe7c1('0x253d')](function(_0x1c0f31){var _0x475b3b=_0x3fe7c1;console[_0x475b3b('0x187f')](_0x1c0f31),_0x159616[_0x475b3b('0x4c6')]=_0x1c0f31['data']['errors']||[{'message':_0x1c0f31[_0x475b3b('0x684')](),'type':_0x475b3b('0x23f')}];});}function _0x15849a(){var _0x1d4ce3=_0x4d25b5;_0x159616[_0x1d4ce3('0x4c6')]=[],_0x159616['customField']&&(_0x159616[_0x1d4ce3('0x1a38')][_0x1d4ce3('0x1dfc')]=_0x159616[_0x1d4ce3('0x6fc')]['id'],_0x159616[_0x1d4ce3('0x1a38')][_0x1d4ce3('0x1662')]=_0x159616[_0x1d4ce3('0x6fc')]['name'],_0x159616[_0x1d4ce3('0x1a38')]['customField']=_0x159616[_0x1d4ce3('0x6fc')][_0x1d4ce3('0x113b')]),_0x37c52a['intServicenowField'][_0x1d4ce3('0x264e')]({'id':_0x159616['item']['id']},_0x159616[_0x1d4ce3('0x1a38')])[_0x1d4ce3('0x1dc2')][_0x1d4ce3('0xaa5')](function(_0x262cc2){var _0x4fab21=_0x1d4ce3,_0x920d2e=_0x51538b()[_0x4fab21('0xe9e')](_0x159616['items'],{'id':_0x262cc2['id']});_0x920d2e&&_0x51538b()['merge'](_0x920d2e,_0x262cc2),_0x397ef2[_0x4fab21('0xe10')]({'title':_0x51538b()[_0x4fab21('0x1b56')](_0x4f823b)+_0x4fab21('0x1c44'),'msg':_0x51538b()[_0x4fab21('0x1b56')](_0x4f823b)+'\x20has\x20been\x20saved!'}),_0x4a0a56();})[_0x1d4ce3('0x253d')](function(_0x3d1faf){var _0x323ac3=_0x1d4ce3;console['error'](_0x3d1faf),_0x159616[_0x323ac3('0x4c6')]=_0x3d1faf[_0x323ac3('0x10fd')]['errors']||[{'message':_0x3d1faf[_0x323ac3('0x684')](),'type':_0x323ac3('0x2460')}];});}function _0x1ab947(_0x1c8eee){var _0x281dcd=_0x4d25b5;_0x159616[_0x281dcd('0x4c6')]=[];var _0x2dcc3d=_0x3dda8f[_0x281dcd('0x281e')]()[_0x281dcd('0x110a')]('Are\x20you\x20sure?')['content']('The\x20'+_0x4f823b+'\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20'+_0x51538b()[_0x281dcd('0x1b56')](_0x4f823b))['ok']('Delete')[_0x281dcd('0x2030')](_0x281dcd('0x9c6'))[_0x281dcd('0x116d')](_0x1c8eee);_0x3dda8f[_0x281dcd('0x1e6d')](_0x2dcc3d)[_0x281dcd('0xaa5')](function(){var _0x2e4ef1=_0x281dcd;_0x37c52a[_0x2e4ef1('0x36c')][_0x2e4ef1('0x926')]({'id':_0x159616[_0x2e4ef1('0x1a38')]['id']})[_0x2e4ef1('0x1dc2')][_0x2e4ef1('0xaa5')](function(){var _0x4dcdfb=_0x2e4ef1;_0x51538b()[_0x4dcdfb('0xf6d')](_0x159616[_0x4dcdfb('0x1a30')],{'id':_0x159616[_0x4dcdfb('0x1a38')]['id']}),_0x397ef2[_0x4dcdfb('0xe10')]({'title':_0x51538b()['capitalize'](_0x4f823b)+'\x20properly\x20deleted!','msg':_0x51538b()['capitalize'](_0x4f823b)+'\x20has\x20been\x20deleted!'}),_0x4a0a56();})[_0x2e4ef1('0x253d')](function(_0x374c54){var _0x250ac1=_0x2e4ef1;console[_0x250ac1('0x187f')](_0x374c54),_0x159616['errors']=_0x374c54['data'][_0x250ac1('0x4c6')]||[{'message':_0x374c54[_0x250ac1('0x684')](),'type':_0x250ac1('0x37d')}];});},function(){});}function _0x583daf(){var _0x345686=_0x4d25b5;return _0x159616['item']['variableName']!==undefined?_0x159616[_0x345686('0x1a38')][_0x345686('0x1e29')]:_0x345686('0x2444');}function _0x4a0a56(){_0x3dda8f['hide']();}}const _0x4d1036=_0x4d35ca;_0x5e5792[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$document',_0x1a8446('0xcb3'),'license',_0x1a8446('0x143f'),'api',_0x1a8446('0x2a4'),'Auth','servicenowAccount',_0x1a8446('0x1a50')];function _0x5e5792(_0xcfe8fb,_0x31c08f,_0x23bf2e,_0x39b9e3,_0x42e8ed,_0x344b95,_0x572c27,_0x17308b,_0x47f96a,_0x56ad01,_0x5179e3,_0x42caf2){var _0x12b7e4=_0x1a8446,_0x50d482=this;_0x50d482[_0x12b7e4('0x7fc')]=_0x56ad01[_0x12b7e4('0xacc')](),_0x50d482['license']=_0x344b95,_0x50d482[_0x12b7e4('0x143f')]=_0x572c27,_0x50d482[_0x12b7e4('0x1d53')]=_0x50d482['setting'][_0x12b7e4('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50d482[_0x12b7e4('0x18cc')]=_0x31c08f[_0x12b7e4('0x1cc2')]()+_0x12b7e4('0x356')+_0x31c08f[_0x12b7e4('0x160c')](),_0x50d482[_0x12b7e4('0x2545')]=_0x5179e3||_0xcfe8fb[_0x12b7e4('0x25cf')][_0x12b7e4('0x2545')]||{},_0x50d482[_0x12b7e4('0x1a50')]=_0x42caf2&&_0x42caf2[_0x12b7e4('0xd15')]==0x1?_0x42caf2[_0x12b7e4('0x580')][0x0]:null,_0x50d482[_0x12b7e4('0xada')]=_0x56ad01[_0x12b7e4('0xffd')](_0x50d482['userProfileSection']?_0x50d482['userProfileSection'][_0x12b7e4('0xada')]:null),_0x50d482['hasModulePermissions']={},_0x50d482[_0x12b7e4('0xe5c')]=_0xcfe8fb[_0x12b7e4('0x25cf')][_0x12b7e4('0x25c2')]||0x0,_0x50d482[_0x12b7e4('0xc10')]=_0x47f96a[_0x12b7e4('0x3a1')],_0x50d482['gotoServicenowAccounts']=_0x3b1aa7,_0x50d482[_0x12b7e4('0x451')]=_0x2a79d2;function _0x3b1aa7(){var _0x1c2c40=_0x12b7e4;_0xcfe8fb['go'](_0x1c2c40('0x8b9'),{},{'reload':'app.integrations.servicenowAccounts'});}function _0x2a79d2(){var _0x20bec6=_0x12b7e4;_0x17308b[_0x20bec6('0x1291')]['update']({'id':_0x50d482['servicenowAccount']['id']},_0x50d482['servicenowAccount'])[_0x20bec6('0x1dc2')][_0x20bec6('0xaa5')](function(){var _0x2188e8=_0x20bec6;_0x47f96a[_0x2188e8('0xe10')]({'title':'ServicenowAccount\x20updated!','msg':_0x50d482[_0x2188e8('0x2545')]['name']?_0x50d482[_0x2188e8('0x2545')][_0x2188e8('0x25d6')]+_0x2188e8('0x1734'):''});})['catch'](function(_0x48515d){var _0x504965=_0x20bec6;_0x47f96a['error']({'title':_0x48515d[_0x504965('0x2fa')]?_0x504965('0x16c2')+_0x48515d[_0x504965('0x2fa')]+'\x20-\x20'+_0x48515d['statusText']:'SYSTEM:GETintServicenowAccount','msg':_0x48515d[_0x504965('0x10fd')]?JSON['stringify'](_0x48515d[_0x504965('0x10fd')]):_0x48515d[_0x504965('0x684')]()});});}}const _0x4587a4=_0x5e5792,_0x257dd1=_0x4fb511['p']+_0x1a8446('0xdc9');_0x459d37[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),'$state',_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x52'),'userProfile','userProfileSection','api','msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting'];function _0x459d37(_0x50ab73,_0x4f7006,_0x23d296,_0x35d891,_0x574c00,_0x2ecee3,_0x495dc8,_0x31417e,_0x5be882,_0x277723,_0x3c7e4f,_0x3e509c,_0x2c1a23,_0x21fb99,_0x305db4,_0x125836,_0x39d6c1){var _0x685107=_0x1a8446,_0x267bb2=this;_0x267bb2[_0x685107('0x1202')]=_0x125836,_0x267bb2[_0x685107('0x143f')]=_0x39d6c1,_0x267bb2[_0x685107('0x7fc')]=_0x305db4[_0x685107('0xacc')](),_0x267bb2['servicenowAccounts']=_0x5be882||{'count':0x0,'rows':[]},_0x267bb2[_0x685107('0x1e97')]=_0x277723,_0x267bb2[_0x685107('0x1a50')]=_0x3c7e4f&&_0x3c7e4f[_0x685107('0xd15')]==0x1?_0x3c7e4f[_0x685107('0x580')][0x0]:null,_0x267bb2['crudPermissions']=_0x305db4[_0x685107('0xffd')](_0x267bb2['userProfileSection']?_0x267bb2['userProfileSection'][_0x685107('0xada')]:null),_0x267bb2[_0x685107('0x12b6')]=_0x685107('0x52'),_0x267bb2['listOrder']='',_0x267bb2[_0x685107('0x8cc')]=null,_0x267bb2[_0x685107('0x234b')]=[],_0x267bb2['query']={'fields':_0x685107('0x140'),'limit':0xa,'page':0x1},_0x267bb2[_0x685107('0x1927')]=_0x3e591f,_0x267bb2[_0x685107('0xa49')]=_0x578b65,_0x267bb2[_0x685107('0x271')]=_0x59d5dd,_0x267bb2[_0x685107('0xe10')]=_0x40c09d,_0x267bb2[_0x685107('0x1bad')]=_0x410217,_0x267bb2['createOrEditServicenowAccount']=_0x5b8b4d,_0x267bb2[_0x685107('0xe2b')]=_0x5802c0,_0x267bb2[_0x685107('0x1683')]=_0x2924a6,_0x267bb2[_0x685107('0xa95')]=_0xc1d976,_0x267bb2[_0x685107('0xb56')]=_0x59c5ef,_0x267bb2[_0x685107('0xaf8')]=_0x232350;function _0x3e591f(_0x39008d){var _0x3313e8=_0x685107;_0x23d296['go']('app.integrations.servicenowAccounts.edit',{'id':_0x39008d['id'],'servicenowAccount':_0x39008d,'crudPermissions':_0x267bb2[_0x3313e8('0xada')]});}function _0x578b65(_0x1bf957){var _0x342375=_0x685107;return _0x3e509c[_0x342375('0x1291')]['getFields']({'id':_0x1bf957['id'],'test':!![]})[_0x342375('0x1dc2')][_0x342375('0xaa5')](function(){var _0x21ba15=_0x342375;_0x21fb99[_0x21ba15('0xe10')]({'title':_0x21ba15('0x5b7'),'msg':_0x21ba15('0x2633')});})['catch'](function(_0x1415ff){var _0x308d2c=_0x342375;_0x21fb99['error']({'title':_0x308d2c('0x5b7'),'msg':_0x1415ff[_0x308d2c('0x10fd')]?_0x1415ff['data'][_0x308d2c('0x1402')]?_0x1415ff[_0x308d2c('0x10fd')][_0x308d2c('0x1402')]:JSON[_0x308d2c('0xa48')](_0x1415ff[_0x308d2c('0x10fd')]):_0x1415ff['toString']()});});}function _0x59d5dd(_0x2095ae,_0x3da6bd){var _0x21e764=_0x685107,_0x417e42=_0x574c00[_0x21e764('0x281e')]()[_0x21e764('0x110a')](_0x21e764('0x88d')+_0x51538b()['startCase'](_0x21e764('0x2545'))+'?')[_0x21e764('0x102e')](''+(_0x2095ae[_0x21e764('0x25d6')]||_0x21e764('0x2545'))+_0x21e764('0x697')+_0x21e764('0x210d'))['ariaLabel'](_0x21e764('0xcd5'))[_0x21e764('0x116d')](_0x3da6bd)['ok']('OK')[_0x21e764('0x2030')](_0x21e764('0x2410'));_0x574c00[_0x21e764('0x1e6d')](_0x417e42)[_0x21e764('0xaa5')](function(){_0x5802c0(_0x2095ae);},function(){var _0x46f7ff=_0x21e764;console[_0x46f7ff('0x18d5')](_0x46f7ff('0x2410'));});}var _0x462898=!![],_0xd6db55=0x1;_0x50ab73[_0x685107('0x1ccf')](_0x685107('0x1788'),function(_0x127666,_0x52f913){var _0x394c42=_0x685107;_0x462898?_0x495dc8(function(){_0x462898=![];}):(!_0x52f913&&(_0xd6db55=_0x267bb2[_0x394c42('0x582')]['page']),_0x127666!==_0x52f913&&(_0x267bb2[_0x394c42('0x582')][_0x394c42('0x41')]=0x1),!_0x127666&&(_0x267bb2['query'][_0x394c42('0x41')]=_0xd6db55),_0x267bb2[_0x394c42('0x1bad')]());});function _0x40c09d(_0x412c2f){var _0x521e1e=_0x685107;_0x267bb2[_0x521e1e('0x52')]=_0x412c2f||{'count':0x0,'rows':[]};}function _0x410217(){var _0x1fb726=_0x685107;_0x267bb2[_0x1fb726('0x582')]['offset']=(_0x267bb2[_0x1fb726('0x582')][_0x1fb726('0x41')]-0x1)*_0x267bb2[_0x1fb726('0x582')][_0x1fb726('0xf4d')],_0x305db4[_0x1fb726('0x26e8')](_0x1fb726('0x178b'))?_0x267bb2[_0x1fb726('0x159a')]=_0x3e509c[_0x1fb726('0x1291')][_0x1fb726('0x2122')](_0x267bb2[_0x1fb726('0x582')],_0x40c09d)[_0x1fb726('0x1dc2')]:(_0x267bb2[_0x1fb726('0x582')]['id']=_0x267bb2[_0x1fb726('0x1e97')]['id'],_0x267bb2['query']['section']='ServicenowAccounts',_0x267bb2[_0x1fb726('0x159a')]=_0x3e509c['userProfile'][_0x1fb726('0x1cf1')](_0x267bb2[_0x1fb726('0x582')],_0x40c09d)[_0x1fb726('0x1dc2')]);}function _0x5b8b4d(_0x172d87,_0x4c9dc4){var _0x52acd4=_0x685107;_0x574c00['show']({'controller':'CreateOrEditServicenowAccountDialogController','controllerAs':'vm','templateUrl':_0x257dd1,'parent':angular[_0x52acd4('0x1aa8')](_0x2ecee3[_0x52acd4('0x54c')]),'targetEvent':_0x172d87,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x4c9dc4,'servicenowAccounts':_0x267bb2[_0x52acd4('0x52')]['rows'],'license':_0x267bb2['license'],'setting':_0x267bb2['setting'],'crudPermissions':_0x267bb2[_0x52acd4('0xada')]}});}function _0x5802c0(_0x347fe2){var _0x58bf2b=_0x685107;_0x3e509c[_0x58bf2b('0x1291')][_0x58bf2b('0x926')]({'id':_0x347fe2['id']})[_0x58bf2b('0x1dc2')][_0x58bf2b('0xaa5')](function(){var _0x5ceedc=_0x58bf2b;_0x51538b()[_0x5ceedc('0xf6d')](_0x267bb2['servicenowAccounts']['rows'],{'id':_0x347fe2['id']}),_0x267bb2[_0x5ceedc('0x52')][_0x5ceedc('0xd15')]-=0x1,!_0x267bb2[_0x5ceedc('0x52')][_0x5ceedc('0x580')][_0x5ceedc('0x2587')]&&_0x267bb2[_0x5ceedc('0x1bad')](),_0x21fb99[_0x5ceedc('0xe10')]({'title':_0x51538b()['startCase'](_0x5ceedc('0x1ed2'))+'\x20deleted!','msg':_0x347fe2[_0x5ceedc('0x25d6')]?_0x347fe2[_0x5ceedc('0x25d6')]+_0x5ceedc('0xcd9'):''});})[_0x58bf2b('0x253d')](function(_0x4f486b){var _0xc26e82=_0x58bf2b;if(_0x4f486b[_0xc26e82('0x10fd')]&&_0x4f486b['data'][_0xc26e82('0x4c6')]&&_0x4f486b[_0xc26e82('0x10fd')][_0xc26e82('0x4c6')][_0xc26e82('0x2587')]){_0x267bb2[_0xc26e82('0x4c6')]=_0x4f486b[_0xc26e82('0x10fd')][_0xc26e82('0x4c6')]||[{'message':_0x4f486b[_0xc26e82('0x684')](),'type':'SYSTEM:DELETEintServicenowAccount'}];for(var _0x56e5cd=0x0;_0x56e5cd<_0x4f486b[_0xc26e82('0x10fd')][_0xc26e82('0x4c6')][_0xc26e82('0x2587')];_0x56e5cd++){_0x21fb99[_0xc26e82('0x187f')]({'title':_0x4f486b[_0xc26e82('0x10fd')][_0xc26e82('0x4c6')][_0x56e5cd]['type'],'msg':_0x4f486b['data'][_0xc26e82('0x4c6')][_0x56e5cd][_0xc26e82('0x1402')]});}}else _0x21fb99[_0xc26e82('0x187f')]({'title':_0x4f486b['status']?_0xc26e82('0x16c2')+_0x4f486b['status']+'\x20-\x20'+_0x4f486b[_0xc26e82('0x24df')]:_0xc26e82('0x1792'),'msg':_0x4f486b[_0xc26e82('0x10fd')]?JSON[_0xc26e82('0xa48')](_0x4f486b[_0xc26e82('0x10fd')]['message']):_0x4f486b[_0xc26e82('0x1402')]||_0x4f486b[_0xc26e82('0x684')]()});});}function _0x2924a6(){var _0x20d247=_0x685107,_0x427aa7=angular['copy'](_0x267bb2[_0x20d247('0x234b')]);return _0x267bb2[_0x20d247('0x234b')]=[],_0x427aa7;}function _0xc1d976(_0x3851e2){var _0x18ae63=_0x685107,_0xba2db6=_0x574c00[_0x18ae63('0x281e')]()[_0x18ae63('0x110a')](_0x18ae63('0x1dcd'))[_0x18ae63('0x102e')](''+_0x267bb2['selectedServicenowAccounts'][_0x18ae63('0x2587')]+'\x20selected'+_0x18ae63('0x210d'))['ariaLabel'](_0x18ae63('0x1e79'))['targetEvent'](_0x3851e2)['ok']('OK')[_0x18ae63('0x2030')](_0x18ae63('0x2410'));_0x574c00[_0x18ae63('0x1e6d')](_0xba2db6)[_0x18ae63('0xaa5')](function(){var _0x372df9=_0x18ae63;_0x267bb2['selectedServicenowAccounts'][_0x372df9('0x15b5')](function(_0x4ee285){_0x5802c0(_0x4ee285);}),_0x267bb2['selectedServicenowAccounts']=[];});}function _0x59c5ef(){var _0x5f53a3=_0x685107;_0x267bb2[_0x5f53a3('0x234b')]=[];}function _0x232350(){var _0x2584ca=_0x685107;_0x267bb2['selectedServicenowAccounts']=_0x267bb2[_0x2584ca('0x52')][_0x2584ca('0x580')];}}const _0x34e5bb=_0x459d37;_0x497623['$inject']=['$scope','$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'sugarcrmAccounts','sugarcrmAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x497623(_0x5a8406,_0x24434e,_0x48013c,_0xcf165e,_0x5de10a,_0x4f3018,_0x4bee08,_0x665473,_0x3292c0,_0x4efdec,_0x55c3ff,_0x5970f3,_0x28e9a5,_0x5d33fd){var _0x3d3b7b=_0x1a8446,_0x35196a=this;_0x35196a[_0x3d3b7b('0x7fc')]=_0x55c3ff[_0x3d3b7b('0xacc')](),_0x35196a[_0x3d3b7b('0x4c6')]=[],_0x35196a[_0x3d3b7b('0x143f')]=_0x28e9a5,_0x35196a['license']=_0x5970f3,_0x35196a[_0x3d3b7b('0xada')]=_0x5d33fd,_0x35196a[_0x3d3b7b('0x9f0')]={},_0x35196a[_0x3d3b7b('0x1d53')]=_0x35196a[_0x3d3b7b('0x143f')]&&_0x35196a[_0x3d3b7b('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x35196a['title']=_0x3d3b7b('0x110e'),_0x35196a[_0x3d3b7b('0x1803')]=angular[_0x3d3b7b('0x20a')](_0x3292c0),_0x35196a[_0x3d3b7b('0x8d3')]=_0x665473,_0x35196a[_0x3d3b7b('0x2583')]=![];!_0x35196a[_0x3d3b7b('0x1803')]&&(_0x35196a['sugarcrmAccount']={'serverUrl':_0x48013c[_0x3d3b7b('0x1cc2')]()+'://'+_0x48013c[_0x3d3b7b('0x160c')]()+(_0x48013c[_0x3d3b7b('0x191')]()?':'+_0x48013c[_0x3d3b7b('0x191')]():'')},_0x35196a['title']=_0x3d3b7b('0x273b'),_0x35196a['newSugarcrmAccount']=!![]);_0x35196a[_0x3d3b7b('0x2812')]=_0x3978ea,_0x35196a['saveSugarcrmAccount']=_0x3a3d11,_0x35196a[_0x3d3b7b('0x12e6')]=_0x360e25,_0x35196a[_0x3d3b7b('0xc09')]=_0x1cc4f8,_0x35196a[_0x3d3b7b('0x2023')]=_0x11b1b;function _0x3978ea(){var _0x1bea4d=_0x3d3b7b;_0x35196a[_0x1bea4d('0x4c6')]=[],_0x4efdec[_0x1bea4d('0x1619')][_0x1bea4d('0x242b')](_0x35196a['sugarcrmAccount'])['$promise'][_0x1bea4d('0xaa5')](function(_0x17e2f0){var _0x312828=_0x1bea4d;_0x35196a[_0x312828('0x8d3')][_0x312828('0x6ee')](_0x17e2f0['toJSON']()),_0x4bee08[_0x312828('0xe10')]({'title':_0x312828('0x27ab'),'msg':_0x35196a['sugarcrmAccount'][_0x312828('0x25d6')]?_0x35196a['sugarcrmAccount'][_0x312828('0x25d6')]+_0x312828('0xdca'):''}),_0x11b1b(_0x17e2f0);})['catch'](function(_0x200b68){var _0x21addf=_0x1bea4d;if(_0x200b68[_0x21addf('0x10fd')]&&_0x200b68[_0x21addf('0x10fd')]['errors']&&_0x200b68[_0x21addf('0x10fd')][_0x21addf('0x4c6')][_0x21addf('0x2587')]){_0x35196a[_0x21addf('0x4c6')]=_0x200b68['data'][_0x21addf('0x4c6')]||[{'message':_0x200b68[_0x21addf('0x684')](),'type':_0x21addf('0x1328')}];for(var _0x2ea4e1=0x0;_0x2ea4e1<_0x200b68[_0x21addf('0x10fd')][_0x21addf('0x4c6')]['length'];_0x2ea4e1+=0x1){_0x4bee08[_0x21addf('0x187f')]({'title':_0x200b68['data']['errors'][_0x2ea4e1]['type'],'msg':_0x200b68[_0x21addf('0x10fd')]['errors'][_0x2ea4e1][_0x21addf('0x1402')]});}}else _0x4bee08[_0x21addf('0x187f')]({'title':_0x200b68[_0x21addf('0x2fa')]?'API:'+_0x200b68[_0x21addf('0x2fa')]+_0x21addf('0x169e')+_0x200b68['statusText']:_0x21addf('0x1328'),'msg':_0x200b68[_0x21addf('0x10fd')]?JSON['stringify'](_0x200b68[_0x21addf('0x10fd')][_0x21addf('0x1402')]):_0x200b68[_0x21addf('0x684')]()});});}function _0x3a3d11(){var _0x37cd00=_0x3d3b7b;_0x35196a[_0x37cd00('0x4c6')]=[],_0x4efdec['intSugarcrmAccount'][_0x37cd00('0x264e')]({'id':_0x35196a[_0x37cd00('0x1803')]['id']},_0x35196a[_0x37cd00('0x1803')])[_0x37cd00('0x1dc2')][_0x37cd00('0xaa5')](function(_0x412b46){var _0x7bc06c=_0x37cd00,_0x430c64=_0x51538b()[_0x7bc06c('0xe9e')](_0x35196a[_0x7bc06c('0x8d3')],{'id':_0x412b46['id']});_0x430c64&&_0x51538b()[_0x7bc06c('0x283c')](_0x430c64,_0x51538b()['pick'](_0x412b46[_0x7bc06c('0x256a')](),_0x51538b()[_0x7bc06c('0x9f2')](_0x430c64))),_0x4bee08[_0x7bc06c('0xe10')]({'title':'SugarcrmAccount\x20properly\x20saved!','msg':_0x35196a[_0x7bc06c('0x1803')][_0x7bc06c('0x25d6')]?_0x35196a[_0x7bc06c('0x1803')][_0x7bc06c('0x25d6')]+_0x7bc06c('0x20bf'):''}),_0x11b1b(_0x412b46);})[_0x37cd00('0x253d')](function(_0x3a05f3){var _0x19edb6=_0x37cd00;if(_0x3a05f3[_0x19edb6('0x10fd')]&&_0x3a05f3[_0x19edb6('0x10fd')]['errors']&&_0x3a05f3['data'][_0x19edb6('0x4c6')]['length']){_0x35196a[_0x19edb6('0x4c6')]=_0x3a05f3['data'][_0x19edb6('0x4c6')]||[{'message':_0x3a05f3[_0x19edb6('0x684')](),'type':_0x19edb6('0x2421')}];for(var _0x5bc015=0x0;_0x5bc015<_0x3a05f3[_0x19edb6('0x10fd')][_0x19edb6('0x4c6')][_0x19edb6('0x2587')];_0x5bc015++){_0x4bee08[_0x19edb6('0x187f')]({'title':_0x3a05f3[_0x19edb6('0x10fd')]['errors'][_0x5bc015]['type'],'msg':_0x3a05f3[_0x19edb6('0x10fd')][_0x19edb6('0x4c6')][_0x5bc015][_0x19edb6('0x1402')]});}}else _0x4bee08[_0x19edb6('0x187f')]({'title':_0x3a05f3[_0x19edb6('0x2fa')]?_0x19edb6('0x16c2')+_0x3a05f3[_0x19edb6('0x2fa')]+_0x19edb6('0x169e')+_0x3a05f3['statusText']:_0x19edb6('0x2421'),'msg':_0x3a05f3[_0x19edb6('0x10fd')]?JSON[_0x19edb6('0xa48')](_0x3a05f3[_0x19edb6('0x10fd')][_0x19edb6('0x1402')]):_0x3a05f3['toString']()});});}function _0x360e25(_0x5a3633){var _0x49abeb=_0x3d3b7b;_0x35196a[_0x49abeb('0x4c6')]=[];var _0x445ddb=_0xcf165e[_0x49abeb('0x281e')]()['title']('Are\x20you\x20sure?')[_0x49abeb('0x15af')]('The\x20sugarcrmAccount\x20will\x20be\x20deleted.')[_0x49abeb('0x5b5')](_0x49abeb('0x1e99'))['ok'](_0x49abeb('0x1e76'))[_0x49abeb('0x2030')](_0x49abeb('0x9c6'))[_0x49abeb('0x116d')](_0x5a3633);_0xcf165e[_0x49abeb('0x1e6d')](_0x445ddb)[_0x49abeb('0xaa5')](function(){var _0x46f404=_0x49abeb;_0x4efdec[_0x46f404('0x1619')]['delete']({'id':_0x35196a[_0x46f404('0x1803')]['id']})[_0x46f404('0x1dc2')][_0x46f404('0xaa5')](function(){var _0x3ae9ed=_0x46f404;_0x51538b()[_0x3ae9ed('0xf6d')](_0x35196a[_0x3ae9ed('0x8d3')],{'id':_0x35196a['sugarcrmAccount']['id']}),_0x4bee08[_0x3ae9ed('0xe10')]({'title':'SugarcrmAccount\x20properly\x20deleted!','msg':(_0x35196a[_0x3ae9ed('0x1803')]['name']||_0x3ae9ed('0x1803'))+_0x3ae9ed('0xcd9')}),_0x11b1b(_0x35196a['sugarcrmAccount']);})['catch'](function(_0x4e01cc){var _0x23284f=_0x46f404;if(_0x4e01cc[_0x23284f('0x10fd')]&&_0x4e01cc['data']['errors']&&_0x4e01cc['data']['errors'][_0x23284f('0x2587')]){_0x35196a[_0x23284f('0x4c6')]=_0x4e01cc[_0x23284f('0x10fd')][_0x23284f('0x4c6')]||[{'message':_0x4e01cc[_0x23284f('0x684')](),'type':_0x23284f('0x205b')}];for(var _0x4e6e3a=0x0;_0x4e6e3a<_0x4e01cc[_0x23284f('0x10fd')][_0x23284f('0x4c6')][_0x23284f('0x2587')];_0x4e6e3a++){_0x4bee08['error']({'title':_0x4e01cc['data'][_0x23284f('0x4c6')][_0x4e6e3a][_0x23284f('0x6c8')],'msg':_0x4e01cc['data'][_0x23284f('0x4c6')][_0x4e6e3a][_0x23284f('0x1402')]});}}else _0x4bee08[_0x23284f('0x187f')]({'title':_0x4e01cc[_0x23284f('0x2fa')]?_0x23284f('0x16c2')+_0x4e01cc[_0x23284f('0x2fa')]+'\x20-\x20'+_0x4e01cc[_0x23284f('0x24df')]:_0x23284f('0x205b'),'msg':_0x4e01cc[_0x23284f('0x10fd')]?JSON[_0x23284f('0xa48')](_0x4e01cc[_0x23284f('0x10fd')][_0x23284f('0x1402')]):_0x4e01cc[_0x23284f('0x1402')]||_0x4e01cc[_0x23284f('0x684')]()});});},function(){});}function _0x1cc4f8(_0x32f01c){return _0x32f01c===null?undefined:new Date(_0x32f01c);}function _0x11b1b(_0x3e6704){var _0x271a01=_0x3d3b7b;_0xcf165e[_0x271a01('0x1120')](_0x3e6704);}}const _0x5bd787=_0x497623,_0x3f470c=_0x4fb511['p']+_0x1a8446('0xa20'),_0x4dbfe9=_0x4fb511['p']+_0x1a8446('0x6a');_0x304833[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x304833(_0x57d35a,_0x4e218c,_0x274b76,_0x3fccfa,_0x2fc1d9){var _0x584042=_0x1a8446,_0x3dc017=this;_0x3dc017[_0x584042('0x7fc')]=_0x2fc1d9[_0x584042('0xacc')](),_0x3dc017[_0x584042('0x1803')]={},_0x3dc017[_0x584042('0x1b0e')]={},_0x3dc017[_0x584042('0x555')]=[],_0x3dc017['selectedSugarcrmConfiguration']=-0x1,_0x3dc017[_0x584042('0xada')],_0x3dc017[_0x584042('0x2e')]=_0x1cb6b3,_0x3dc017[_0x584042('0x170b')]=_0x51f8b6,_0x3dc017[_0x584042('0x218e')]=_0x64d495,_0x3dc017['deleteSugarcrmConfiguration']=_0xbb6928;function _0x1cb6b3(_0xbb4950,_0x2ee0c5){var _0xab4c0d=_0x584042;_0x3dc017[_0xab4c0d('0x1803')]=_0xbb4950,_0x3dc017[_0xab4c0d('0xada')]=typeof _0x2ee0c5!==_0xab4c0d('0x1574')?_0x2ee0c5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x274b76[_0xab4c0d('0x1619')][_0xab4c0d('0x281f')]({'id':_0x3dc017[_0xab4c0d('0x1803')]['id'],'sort':'-updatedAt'})[_0xab4c0d('0x1dc2')][_0xab4c0d('0xaa5')](function(_0x19879b){var _0x269ab3=_0xab4c0d;return _0x3dc017[_0x269ab3('0x555')]=_0x19879b[_0x269ab3('0x580')]?_0x19879b[_0x269ab3('0x580')]:[],_0x3dc017['configurations']['length']&&_0x3dc017[_0x269ab3('0x170b')](0x0),_0x274b76['variable'][_0x269ab3('0x2122')]({'nolimit':!![],'sort':_0x269ab3('0x25d6')})[_0x269ab3('0x1dc2')];})[_0xab4c0d('0xaa5')](function(_0x10e756){var _0x247d46=_0xab4c0d;_0x3dc017[_0x247d46('0x147e')]=_0x10e756[_0x247d46('0x580')]?_0x10e756['rows']:[],_0x3dc017[_0x247d46('0x2032')]=_0x51538b()[_0x247d46('0x184a')](_0x3dc017[_0x247d46('0x147e')],'id');})[_0xab4c0d('0x253d')](function(_0x3c49ef){var _0x1c1b23=_0xab4c0d;_0x3fccfa[_0x1c1b23('0x187f')]({'title':_0x3c49ef[_0x1c1b23('0x2fa')]?_0x1c1b23('0x16c2')+_0x3c49ef[_0x1c1b23('0x2fa')]+_0x1c1b23('0x169e')+_0x3c49ef[_0x1c1b23('0x24df')]:_0x1c1b23('0x24c9'),'msg':_0x3c49ef['data']?JSON['stringify'](_0x3c49ef[_0x1c1b23('0x10fd')]):_0x3c49ef[_0x1c1b23('0x684')]()});});}function _0x51f8b6(_0x91665e){var _0x1c929e=_0x584042;_0x3dc017[_0x1c929e('0x1b0e')]=_0x3dc017[_0x1c929e('0x555')][_0x91665e],_0x3dc017[_0x1c929e('0x2505')]=_0x91665e,_0x274b76[_0x1c929e('0x2064')][_0x1c929e('0xeba')]({'id':_0x3dc017[_0x1c929e('0x1b0e')]['id']})[_0x1c929e('0x1dc2')][_0x1c929e('0xaa5')](function(_0x552347){var _0x2e98d4=_0x1c929e;return _0x3dc017[_0x2e98d4('0xc3f')]=_0x552347[_0x2e98d4('0x580')]?_0x552347['rows']:[],_0x274b76[_0x2e98d4('0x2064')][_0x2e98d4('0x2103')]({'id':_0x3dc017[_0x2e98d4('0x1b0e')]['id']})[_0x2e98d4('0x1dc2')];})[_0x1c929e('0xaa5')](function(_0x500e07){var _0x4f2efb=_0x1c929e;return _0x3dc017[_0x4f2efb('0x27b9')]=_0x500e07[_0x4f2efb('0x580')]?_0x500e07[_0x4f2efb('0x580')]:[],_0x274b76['intSugarcrmConfiguration'][_0x4f2efb('0x1450')]({'id':_0x3dc017['sugarcrmConfiguration']['id']})[_0x4f2efb('0x1dc2')];})[_0x1c929e('0xaa5')](function(_0x599b39){var _0x1bde23=_0x1c929e;_0x3dc017[_0x1bde23('0x13a')]=_0x599b39[_0x1bde23('0x580')]?_0x599b39[_0x1bde23('0x580')]:[];})['catch'](function(_0x187aff){var _0x1f80e9=_0x1c929e;_0x3fccfa['error']({'title':_0x187aff[_0x1f80e9('0x2fa')]?'API:'+_0x187aff[_0x1f80e9('0x2fa')]+_0x1f80e9('0x169e')+_0x187aff[_0x1f80e9('0x24df')]:_0x1f80e9('0xd6d'),'msg':_0x187aff['data']?JSON[_0x1f80e9('0xa48')](_0x187aff[_0x1f80e9('0x10fd')]):_0x187aff[_0x1f80e9('0x684')]()});});}function _0x64d495(_0x3bf598,_0x1b4ae9){var _0x423e8c=_0x584042;_0x57d35a[_0x423e8c('0x1e6d')]({'controller':'CreateOrEditSugarcrmConfigurationDialogController','controllerAs':'vm','templateUrl':_0x3f470c,'parent':angular[_0x423e8c('0x1aa8')](_0x4e218c[_0x423e8c('0x54c')]),'targetEvent':_0x3bf598,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x1b4ae9,'configurations':_0x3dc017[_0x423e8c('0x555')],'license':null,'setting':null,'crudPermissions':_0x3dc017[_0x423e8c('0xada')]}})[_0x423e8c('0x1889')](function(){var _0x1121ba=_0x423e8c;_0x3dc017[_0x1121ba('0x170b')](0x0);});}function _0xbb6928(_0x1cf5d2,_0x127238){var _0x54aba2=_0x584042,_0x3b6ab3=_0x57d35a['confirm']()['title'](_0x54aba2('0x974'))[_0x54aba2('0x102e')](_0x54aba2('0x389')+(_0x127238['name']||_0x54aba2('0x1b0e'))+_0x54aba2('0x697')+'\x20will\x20be\x20deleted.')[_0x54aba2('0x5b5')](_0x54aba2('0x169f'))[_0x54aba2('0x116d')](_0x1cf5d2)['ok']('OK')[_0x54aba2('0x2030')](_0x54aba2('0x2410'));_0x57d35a[_0x54aba2('0x1e6d')](_0x3b6ab3)[_0x54aba2('0xaa5')](function(){var _0x12c879=_0x54aba2;_0x274b76['intSugarcrmConfiguration'][_0x12c879('0x926')]({'id':_0x127238['id']})[_0x12c879('0x1dc2')][_0x12c879('0xaa5')](function(){var _0x3008a8=_0x12c879;_0x51538b()[_0x3008a8('0xf6d')](_0x3dc017[_0x3008a8('0x555')],{'id':_0x127238['id']}),_0x3fccfa[_0x3008a8('0xe10')]({'title':_0x3008a8('0x1b5b'),'msg':_0x127238[_0x3008a8('0x25d6')]?_0x127238['name']+_0x3008a8('0xcd9'):''});})['catch'](function(_0x5a26d6){var _0x1fb727=_0x12c879;_0x3fccfa['error']({'title':_0x5a26d6[_0x1fb727('0x2fa')]?_0x1fb727('0x16c2')+_0x5a26d6['status']+_0x1fb727('0x169e')+_0x5a26d6[_0x1fb727('0x24df')]:_0x1fb727('0x2549'),'msg':_0x5a26d6['data']?JSON['stringify'](_0x5a26d6['data']):_0x5a26d6[_0x1fb727('0x684')]()});})[_0x12c879('0x1889')](function(){var _0x5d2ce8=_0x12c879;_0x3dc017[_0x5d2ce8('0x170b')](0x0);});},function(){var _0x426bc0=_0x54aba2;console['log'](_0x426bc0('0x2410'));});}_0x3dc017[_0x584042('0xf7d')]=[],_0x3dc017[_0x584042('0x21c5')]=_0x22b403,_0x3dc017[_0x584042('0x1e1e')]=_0xf064ce,_0x3dc017['deleteSelectedSubjects']=_0x544a8b;function _0x22b403(_0x1131ba,_0x4a0b53){var _0x57c418=_0x584042;_0x57d35a['show']({'controller':_0x57c418('0x2c9'),'controllerAs':'vm','templateUrl':_0x4dbfe9,'parent':angular[_0x57c418('0x1aa8')](_0x4e218c['body']),'targetEvent':_0x1131ba,'clickOutsideToClose':!![],'locals':{'type':_0x57c418('0x2101'),'item':_0x4a0b53,'items':_0x3dc017['subjects'],'configuration':_0x3dc017['sugarcrmConfiguration'],'account':_0x3dc017[_0x57c418('0x1803')],'license':null,'setting':null,'crudPermissions':_0x3dc017[_0x57c418('0xada')]}});}function _0x511573(_0xb664c9){var _0x38a155=_0x584042;_0x274b76[_0x38a155('0x9a6')][_0x38a155('0x926')]({'id':_0xb664c9['id']})[_0x38a155('0x1dc2')][_0x38a155('0xaa5')](function(){var _0x58a644=_0x38a155;_0x51538b()[_0x58a644('0xf6d')](_0x3dc017[_0x58a644('0xc3f')],{'id':_0xb664c9['id']}),_0x3fccfa['success']({'title':_0x58a644('0xcad'),'msg':_0x58a644('0x1732')});})['catch'](function(_0x2a714c){var _0x231159=_0x38a155;_0x3fccfa[_0x231159('0x187f')]({'title':_0x2a714c[_0x231159('0x2fa')]?_0x231159('0x16c2')+_0x2a714c[_0x231159('0x2fa')]+_0x231159('0x169e')+_0x2a714c[_0x231159('0x24df')]:_0x231159('0xdd7'),'msg':_0x2a714c[_0x231159('0x10fd')]?JSON[_0x231159('0xa48')](_0x2a714c['data']):_0x2a714c[_0x231159('0x684')]()});});}function _0xf064ce(_0x313e1d,_0x4f6563){var _0x123832=_0x584042,_0xe0c5cb=_0x57d35a[_0x123832('0x281e')]()['title'](_0x123832('0x16b5'))['htmlContent']('Subject'+'\x20will\x20be\x20deleted.')[_0x123832('0x5b5')](_0x123832('0x25d5'))['targetEvent'](_0x313e1d)['ok']('OK')[_0x123832('0x2030')](_0x123832('0x2410'));_0x57d35a['show'](_0xe0c5cb)['then'](function(){_0x511573(_0x4f6563);},function(){var _0x6a1407=_0x123832;console['log'](_0x6a1407('0x2410'));});}function _0x544a8b(_0x516b17){var _0x4360f1=_0x584042,_0x44c87c=_0x57d35a[_0x4360f1('0x281e')]()[_0x4360f1('0x110a')](_0x4360f1('0x6f0'))[_0x4360f1('0x102e')](_0x4360f1('0x389')+_0x3dc017[_0x4360f1('0xf7d')]['length']+_0x4360f1('0x1443')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4360f1('0xfcd'))[_0x4360f1('0x116d')](_0x516b17)['ok']('OK')[_0x4360f1('0x2030')](_0x4360f1('0x2410'));_0x57d35a[_0x4360f1('0x1e6d')](_0x44c87c)[_0x4360f1('0xaa5')](function(){var _0x53965b=_0x4360f1;_0x3dc017[_0x53965b('0xf7d')][_0x53965b('0x15b5')](function(_0x507c5b){_0x511573(_0x507c5b);}),_0x3dc017[_0x53965b('0xf7d')]=[];});}_0x3dc017[_0x584042('0x1b51')]=[],_0x3dc017[_0x584042('0x19db')]=_0x515707,_0x3dc017['deleteDescriptionConfirm']=_0x5024da,_0x3dc017[_0x584042('0x416')]=_0x5efafb;function _0x515707(_0x477e8f,_0x12037e){var _0x2d36ec=_0x584042;_0x57d35a[_0x2d36ec('0x1e6d')]({'controller':_0x2d36ec('0x2c9'),'controllerAs':'vm','templateUrl':_0x4dbfe9,'parent':angular['element'](_0x4e218c[_0x2d36ec('0x54c')]),'targetEvent':_0x477e8f,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x12037e,'items':_0x3dc017[_0x2d36ec('0x27b9')],'configuration':_0x3dc017[_0x2d36ec('0x1b0e')],'account':_0x3dc017[_0x2d36ec('0x1803')],'license':null,'setting':null,'crudPermissions':_0x3dc017[_0x2d36ec('0xada')]}});}function _0x266ec0(_0x4c0a2c){var _0x145791=_0x584042;_0x274b76['intSugarcrmField'][_0x145791('0x926')]({'id':_0x4c0a2c['id']})['$promise'][_0x145791('0xaa5')](function(){var _0x23b16f=_0x145791;_0x51538b()['remove'](_0x3dc017[_0x23b16f('0x27b9')],{'id':_0x4c0a2c['id']}),_0x3fccfa[_0x23b16f('0xe10')]({'title':_0x23b16f('0x1d35'),'msg':_0x23b16f('0x266b')});})['catch'](function(_0xbbb7ca){var _0x247c14=_0x145791;_0x3fccfa['error']({'title':_0xbbb7ca[_0x247c14('0x2fa')]?'API:'+_0xbbb7ca[_0x247c14('0x2fa')]+_0x247c14('0x169e')+_0xbbb7ca[_0x247c14('0x24df')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0xbbb7ca[_0x247c14('0x10fd')]?JSON[_0x247c14('0xa48')](_0xbbb7ca[_0x247c14('0x10fd')]):_0xbbb7ca[_0x247c14('0x684')]()});});}function _0x5024da(_0x129e34,_0x470bc0){var _0x147dee=_0x584042,_0x390d6f=_0x57d35a[_0x147dee('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0x147dee('0x102e')](_0x147dee('0x2534')+_0x147dee('0x210d'))[_0x147dee('0x5b5')](_0x147dee('0x8b2'))[_0x147dee('0x116d')](_0x129e34)['ok']('OK')[_0x147dee('0x2030')](_0x147dee('0x2410'));_0x57d35a[_0x147dee('0x1e6d')](_0x390d6f)[_0x147dee('0xaa5')](function(){_0x266ec0(_0x470bc0);},function(){var _0x5236fc=_0x147dee;console[_0x5236fc('0x18d5')](_0x5236fc('0x2410'));});}function _0x5efafb(_0x29db38){var _0x5c13f7=_0x584042,_0xf9bc97=_0x57d35a['confirm']()[_0x5c13f7('0x110a')](_0x5c13f7('0x12ce'))[_0x5c13f7('0x102e')](_0x5c13f7('0x389')+_0x3dc017[_0x5c13f7('0x1b51')]['length']+'\x20selected'+_0x5c13f7('0x210d'))['ariaLabel'](_0x5c13f7('0xcfb'))[_0x5c13f7('0x116d')](_0x29db38)['ok']('OK')[_0x5c13f7('0x2030')]('CANCEL');_0x57d35a[_0x5c13f7('0x1e6d')](_0xf9bc97)[_0x5c13f7('0xaa5')](function(){var _0x9d8052=_0x5c13f7;_0x3dc017['selectedDescriptions']['forEach'](function(_0x4f840f){_0x266ec0(_0x4f840f);}),_0x3dc017[_0x9d8052('0x1b51')]=[];});}_0x3dc017[_0x584042('0x490')]=[],_0x3dc017[_0x584042('0x1572')]=_0x2e3fbf,_0x3dc017[_0x584042('0x353')]=_0x5064a4,_0x3dc017['deleteSelectedFields']=_0x1a01c3;function _0x2e3fbf(_0x52705c,_0x4cd00e){var _0x56fd6e=_0x584042;_0x57d35a[_0x56fd6e('0x1e6d')]({'controller':_0x56fd6e('0x2c9'),'controllerAs':'vm','templateUrl':_0x4dbfe9,'parent':angular[_0x56fd6e('0x1aa8')](_0x4e218c[_0x56fd6e('0x54c')]),'targetEvent':_0x52705c,'clickOutsideToClose':!![],'locals':{'type':_0x56fd6e('0x5f2'),'item':_0x4cd00e,'items':_0x3dc017[_0x56fd6e('0x13a')],'configuration':_0x3dc017[_0x56fd6e('0x1b0e')],'account':_0x3dc017[_0x56fd6e('0x1803')],'license':null,'setting':null,'crudPermissions':_0x3dc017['crudPermissions']}});}function _0xdeef41(_0x4e373b){var _0x3da087=_0x584042;_0x274b76[_0x3da087('0x9a6')][_0x3da087('0x926')]({'id':_0x4e373b['id']})[_0x3da087('0x1dc2')][_0x3da087('0xaa5')](function(){var _0x1cf6a3=_0x3da087;_0x51538b()[_0x1cf6a3('0xf6d')](_0x3dc017['fields'],{'id':_0x4e373b['id']}),_0x3fccfa[_0x1cf6a3('0xe10')]({'title':_0x1cf6a3('0x25e1'),'msg':_0x1cf6a3('0xb78')});})['catch'](function(_0x185525){var _0x31162a=_0x3da087;_0x3fccfa[_0x31162a('0x187f')]({'title':_0x185525['status']?_0x31162a('0x16c2')+_0x185525[_0x31162a('0x2fa')]+_0x31162a('0x169e')+_0x185525[_0x31162a('0x24df')]:_0x31162a('0xdd7'),'msg':_0x185525[_0x31162a('0x10fd')]?JSON[_0x31162a('0xa48')](_0x185525[_0x31162a('0x10fd')]):_0x185525[_0x31162a('0x684')]()});});}function _0x5064a4(_0x5a7ce2,_0x12dbc1){var _0xa33231=_0x584042,_0x1c3504=_0x57d35a[_0xa33231('0x281e')]()[_0xa33231('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0xa33231('0x102e')](_0xa33231('0x455')+_0xa33231('0x210d'))[_0xa33231('0x5b5')]('delete\x20field')[_0xa33231('0x116d')](_0x5a7ce2)['ok']('OK')[_0xa33231('0x2030')](_0xa33231('0x2410'));_0x57d35a['show'](_0x1c3504)[_0xa33231('0xaa5')](function(){_0xdeef41(_0x12dbc1);},function(){var _0x188e39=_0xa33231;console[_0x188e39('0x18d5')](_0x188e39('0x2410'));});}function _0x1a01c3(_0x36dc0f){var _0x1ded70=_0x584042,_0x2d0674=_0x57d35a['confirm']()['title'](_0x1ded70('0xf28'))[_0x1ded70('0x102e')](_0x1ded70('0x389')+_0x3dc017[_0x1ded70('0x490')]['length']+_0x1ded70('0x1443')+_0x1ded70('0x210d'))[_0x1ded70('0x5b5')](_0x1ded70('0xefc'))[_0x1ded70('0x116d')](_0x36dc0f)['ok']('OK')[_0x1ded70('0x2030')](_0x1ded70('0x2410'));_0x57d35a['show'](_0x2d0674)[_0x1ded70('0xaa5')](function(){var _0xef446c=_0x1ded70;_0x3dc017[_0xef446c('0x490')][_0xef446c('0x15b5')](function(_0x3667e4){_0xdeef41(_0x3667e4);}),_0x3dc017[_0xef446c('0x490')]=[];});}}const _0x1d2d71=_0x304833;_0x222843[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x555'),_0x1a8446('0x1b0e'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x222843(_0x2eb140,_0x28b03e,_0x2296eb,_0x4d819a,_0xe9be6b,_0x4d27cd,_0x346c86,_0x458f63,_0x549849,_0x3a2aea,_0xc47f8b,_0x38bbba,_0x1fbc88,_0x28d76d){var _0x28ef55=_0x1a8446,_0x2db44e=this;_0x2db44e[_0x28ef55('0x7fc')]=_0xc47f8b[_0x28ef55('0xacc')](),_0x2db44e[_0x28ef55('0x4c6')]=[],_0x2db44e[_0x28ef55('0x143f')]=_0x1fbc88,_0x2db44e[_0x28ef55('0x1202')]=_0x38bbba,_0x2db44e[_0x28ef55('0xada')]=_0x28d76d,_0x2db44e[_0x28ef55('0x9f0')]={},_0x2db44e[_0x28ef55('0x1d53')]=_0x2db44e[_0x28ef55('0x143f')]&&_0x2db44e[_0x28ef55('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2db44e[_0x28ef55('0x110a')]='INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION',_0x2db44e[_0x28ef55('0x1b0e')]=angular['copy'](_0x549849),_0x2db44e[_0x28ef55('0x555')]=_0x458f63,_0x2db44e[_0x28ef55('0x1af5')]=![];!_0x2db44e[_0x28ef55('0x1b0e')]&&(_0x2db44e[_0x28ef55('0x1b0e')]={'channel':_0x28ef55('0x1b9'),'type':_0x28ef55('0x4b8')},_0x2db44e['title']='INTEGRATIONS.NEW_SUGARCRMCONFIGURATION',_0x2db44e['newSugarcrmConfiguration']=!![]);_0x2db44e['addNewSugarcrmConfiguration']=_0x57a9c5,_0x2db44e[_0x28ef55('0x1e2b')]=_0x274ca8,_0x2db44e['deleteSugarcrmConfiguration']=_0x14f49d,_0x2db44e[_0x28ef55('0xc09')]=_0x3a6a1e,_0x2db44e[_0x28ef55('0x2023')]=_0x159737;function _0x57a9c5(){var _0x5e6f46=_0x28ef55;_0x2db44e['errors']=[],_0x3a2aea[_0x5e6f46('0x1619')]['addConfiguration']({'id':_0x28b03e[_0x5e6f46('0x25cf')]['id']},_0x2db44e[_0x5e6f46('0x1b0e')])[_0x5e6f46('0x1dc2')][_0x5e6f46('0xaa5')](function(_0x53cbae){var _0x28c940=_0x5e6f46;_0x2db44e['configurations'][_0x28c940('0x6ee')](_0x53cbae[_0x28c940('0x256a')]()),_0x346c86['success']({'title':'SugarcrmConfiguration\x20properly\x20created','msg':_0x2db44e[_0x28c940('0x1b0e')][_0x28c940('0x25d6')]?_0x2db44e[_0x28c940('0x1b0e')][_0x28c940('0x25d6')]+_0x28c940('0xdca'):''}),_0x159737(_0x53cbae);})[_0x5e6f46('0x253d')](function(_0x96c62f){var _0x35abbe=_0x5e6f46;if(_0x96c62f[_0x35abbe('0x10fd')]&&_0x96c62f[_0x35abbe('0x10fd')][_0x35abbe('0x4c6')]&&_0x96c62f['data'][_0x35abbe('0x4c6')][_0x35abbe('0x2587')]){_0x2db44e[_0x35abbe('0x4c6')]=_0x96c62f[_0x35abbe('0x10fd')][_0x35abbe('0x4c6')]||[{'message':_0x96c62f[_0x35abbe('0x684')](),'type':_0x35abbe('0x195d')}];for(var _0x3554f8=0x0;_0x3554f8<_0x96c62f[_0x35abbe('0x10fd')][_0x35abbe('0x4c6')][_0x35abbe('0x2587')];_0x3554f8+=0x1){_0x346c86['error']({'title':_0x96c62f[_0x35abbe('0x10fd')][_0x35abbe('0x4c6')][_0x3554f8][_0x35abbe('0x6c8')],'msg':_0x96c62f['data'][_0x35abbe('0x4c6')][_0x3554f8][_0x35abbe('0x1402')]});}}else _0x346c86[_0x35abbe('0x187f')]({'title':_0x96c62f[_0x35abbe('0x2fa')]?_0x35abbe('0x16c2')+_0x96c62f[_0x35abbe('0x2fa')]+_0x35abbe('0x169e')+_0x96c62f[_0x35abbe('0x24df')]:_0x35abbe('0x195d'),'msg':_0x96c62f['data']?JSON[_0x35abbe('0xa48')](_0x96c62f[_0x35abbe('0x10fd')][_0x35abbe('0x1402')]):_0x96c62f[_0x35abbe('0x684')]()});});}function _0x274ca8(){var _0x100611=_0x28ef55;_0x2db44e[_0x100611('0x4c6')]=[],_0x3a2aea[_0x100611('0x2064')][_0x100611('0x264e')]({'id':_0x2db44e[_0x100611('0x1b0e')]['id']},_0x2db44e[_0x100611('0x1b0e')])[_0x100611('0x1dc2')][_0x100611('0xaa5')](function(_0x263c53){var _0x4a7ee9=_0x100611,_0x3fdf84=_0x51538b()[_0x4a7ee9('0xe9e')](_0x2db44e[_0x4a7ee9('0x555')],{'id':_0x263c53['id']});_0x3fdf84&&_0x51538b()['merge'](_0x3fdf84,_0x51538b()['pick'](_0x263c53['toJSON'](),_0x51538b()[_0x4a7ee9('0x9f2')](_0x3fdf84))),_0x346c86[_0x4a7ee9('0xe10')]({'title':'SugarcrmConfiguration\x20properly\x20saved!','msg':_0x2db44e[_0x4a7ee9('0x1b0e')]['name']?_0x2db44e[_0x4a7ee9('0x1b0e')][_0x4a7ee9('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x159737(_0x263c53);})[_0x100611('0x253d')](function(_0x51636b){var _0x2c3720=_0x100611;if(_0x51636b[_0x2c3720('0x10fd')]&&_0x51636b[_0x2c3720('0x10fd')]['errors']&&_0x51636b[_0x2c3720('0x10fd')][_0x2c3720('0x4c6')][_0x2c3720('0x2587')]){_0x2db44e[_0x2c3720('0x4c6')]=_0x51636b[_0x2c3720('0x10fd')]['errors']||[{'message':_0x51636b['toString'](),'type':_0x2c3720('0x1199')}];for(var _0x19d08c=0x0;_0x19d08c<_0x51636b[_0x2c3720('0x10fd')][_0x2c3720('0x4c6')]['length'];_0x19d08c++){_0x346c86[_0x2c3720('0x187f')]({'title':_0x51636b[_0x2c3720('0x10fd')][_0x2c3720('0x4c6')][_0x19d08c]['type'],'msg':_0x51636b[_0x2c3720('0x10fd')][_0x2c3720('0x4c6')][_0x19d08c][_0x2c3720('0x1402')]});}}else _0x346c86[_0x2c3720('0x187f')]({'title':_0x51636b[_0x2c3720('0x2fa')]?_0x2c3720('0x16c2')+_0x51636b[_0x2c3720('0x2fa')]+'\x20-\x20'+_0x51636b['statusText']:_0x2c3720('0x1199'),'msg':_0x51636b[_0x2c3720('0x10fd')]?JSON[_0x2c3720('0xa48')](_0x51636b[_0x2c3720('0x10fd')][_0x2c3720('0x1402')]):_0x51636b[_0x2c3720('0x684')]()});});}function _0x14f49d(_0x342c6c){var _0x399868=_0x28ef55;_0x2db44e['errors']=[];var _0x1e823e=_0x4d819a[_0x399868('0x281e')]()[_0x399868('0x110a')]('Are\x20you\x20sure?')[_0x399868('0x15af')](_0x399868('0x18b3'))[_0x399868('0x5b5')](_0x399868('0x1264'))['ok'](_0x399868('0x1e76'))['cancel']('Cancel')['targetEvent'](_0x342c6c);_0x4d819a[_0x399868('0x1e6d')](_0x1e823e)[_0x399868('0xaa5')](function(){var _0x4fc8d4=_0x399868;_0x3a2aea[_0x4fc8d4('0x2064')]['delete']({'id':_0x2db44e['sugarcrmConfiguration']['id']})[_0x4fc8d4('0x1dc2')][_0x4fc8d4('0xaa5')](function(){var _0x302884=_0x4fc8d4;_0x51538b()[_0x302884('0xf6d')](_0x2db44e[_0x302884('0x555')],{'id':_0x2db44e[_0x302884('0x1b0e')]['id']}),_0x346c86[_0x302884('0xe10')]({'title':_0x302884('0xbb8'),'msg':(_0x2db44e['sugarcrmConfiguration']['name']||_0x302884('0x1b0e'))+_0x302884('0xcd9')}),_0x159737(_0x2db44e[_0x302884('0x1b0e')]);})[_0x4fc8d4('0x253d')](function(_0xae632a){var _0x16ebef=_0x4fc8d4;if(_0xae632a['data']&&_0xae632a[_0x16ebef('0x10fd')][_0x16ebef('0x4c6')]&&_0xae632a[_0x16ebef('0x10fd')][_0x16ebef('0x4c6')][_0x16ebef('0x2587')]){_0x2db44e[_0x16ebef('0x4c6')]=_0xae632a[_0x16ebef('0x10fd')]['errors']||[{'message':_0xae632a['toString'](),'type':_0x16ebef('0x14dd')}];for(var _0x50edb7=0x0;_0x50edb7<_0xae632a[_0x16ebef('0x10fd')][_0x16ebef('0x4c6')][_0x16ebef('0x2587')];_0x50edb7++){_0x346c86[_0x16ebef('0x187f')]({'title':_0xae632a[_0x16ebef('0x10fd')][_0x16ebef('0x4c6')][_0x50edb7][_0x16ebef('0x6c8')],'msg':_0xae632a[_0x16ebef('0x10fd')][_0x16ebef('0x4c6')][_0x50edb7][_0x16ebef('0x1402')]});}}else _0x346c86[_0x16ebef('0x187f')]({'title':_0xae632a[_0x16ebef('0x2fa')]?_0x16ebef('0x16c2')+_0xae632a[_0x16ebef('0x2fa')]+'\x20-\x20'+_0xae632a['statusText']:'api.intSugarcrmConfiguration.delete','msg':_0xae632a[_0x16ebef('0x10fd')]?JSON[_0x16ebef('0xa48')](_0xae632a[_0x16ebef('0x10fd')]['message']):_0xae632a[_0x16ebef('0x1402')]||_0xae632a[_0x16ebef('0x684')]()});});},function(){});}function _0x3a6a1e(_0xfa7b3a){return _0xfa7b3a===null?undefined:new Date(_0xfa7b3a);}function _0x159737(_0x5b969a){var _0x1c82de=_0x28ef55;_0x4d819a[_0x1c82de('0x1120')](_0x5b969a);}}const _0x35e412=_0x222843;_0x49d35c[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x72'),_0x1a8446('0x1a30'),_0x1a8446('0x1a38'),_0x1a8446('0x5b'),_0x1a8446('0x6c8'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x49d35c(_0x25a249,_0x783a28,_0x381521,_0xc92693,_0x278d35,_0x54a2c7,_0x28c6e6,_0x5e66e6,_0x140d75,_0x14403e,_0xba8233,_0x4d277e,_0x5c75b1){var _0x653ff1=_0x1a8446,_0x5f351=this;_0x5f351['currentUser']=_0x4d277e['getCurrentUser'](),_0x5f351[_0x653ff1('0x4c6')]=[],_0x5f351[_0x653ff1('0x110a')]=_0x653ff1('0x66b')+_0x51538b()[_0x653ff1('0x1818')](_0x14403e),_0x5f351[_0x653ff1('0x1a38')]=angular['copy'](_0x5e66e6),_0x5f351[_0x653ff1('0x1a30')]=_0x28c6e6,_0x5f351['type']=_0x14403e,_0x5f351[_0x653ff1('0xada')]=_0x5c75b1,_0x5f351[_0x653ff1('0x1891')]=![];!_0x5f351[_0x653ff1('0x1a38')]&&(_0x5f351['item']={'type':_0x653ff1('0x199')},_0x5f351[_0x653ff1('0x1a38')][_0x51538b()[_0x653ff1('0x1b56')](_0x14403e)+'Id']=_0x54a2c7['id'],_0x5f351['title']=_0x653ff1('0x1502')+_0x51538b()[_0x653ff1('0x1818')](_0x14403e),_0x5f351[_0x653ff1('0x1891')]=!![]);_0x5f351[_0x653ff1('0x13fd')]=_0x28b4c9,_0x5f351[_0x653ff1('0x24c7')]=_0x3a383e,_0x5f351[_0x653ff1('0x1994')]=_0x4947dc,_0x5f351[_0x653ff1('0x1b0f')]=_0x3500d1,_0x5f351[_0x653ff1('0x2023')]=_0x18f2bf,_0xba8233[_0x653ff1('0x14e7')]['get']({'nolimit':!![]})[_0x653ff1('0x1dc2')][_0x653ff1('0xaa5')](function(_0x36c594){var _0x4dba10=_0x653ff1;return _0x5f351[_0x4dba10('0x147e')]=_0x36c594[_0x4dba10('0x580')]?_0x36c594[_0x4dba10('0x580')]:[],_0xba8233['voiceAgentReport'][_0x4dba10('0x3e7')]()[_0x4dba10('0x1dc2')];})[_0x653ff1('0xaa5')](function(_0xad2cd3){var _0x3e3690=_0x653ff1;return _0x5f351[_0x3e3690('0x27a9')]=_0x51538b()[_0x3e3690('0x1485')](_0x51538b()[_0x3e3690('0x9f2')](_0xad2cd3),[_0x3e3690('0x1dc2'),_0x3e3690('0xd92'),_0x3e3690('0x24a1'),'updatedAt',_0x3e3690('0x129a')]),_0x5f351[_0x3e3690('0x27a9')][_0x3e3690('0x1599')](_0x3e3690('0xef3')),_0xba8233[_0x3e3690('0x1f51')][_0x3e3690('0x3e7')]()[_0x3e3690('0x1dc2')];})[_0x653ff1('0xaa5')](function(_0xf25d24){var _0x4c7ca4=_0x653ff1;_0x5f351[_0x4c7ca4('0xc69')]=_0x51538b()['difference'](_0x51538b()[_0x4c7ca4('0x9f2')](_0xf25d24),['$promise',_0x4c7ca4('0xd92'),_0x4c7ca4('0x24a1'),_0x4c7ca4('0x19f3'),_0x4c7ca4('0x129a')]),_0x5f351[_0x4c7ca4('0xc69')][_0x4c7ca4('0x1599')](_0x4c7ca4('0xef3'));})[_0x653ff1('0x253d')](function(_0x82a4d1){var _0x2f163c=_0x653ff1;_0x278d35['error']({'title':_0x82a4d1[_0x2f163c('0x2fa')]?'API:'+_0x82a4d1[_0x2f163c('0x2fa')]+_0x2f163c('0x169e')+_0x82a4d1[_0x2f163c('0x24df')]:_0x2f163c('0x2652'),'msg':_0x82a4d1['data']?JSON[_0x2f163c('0xa48')](_0x82a4d1['data']):_0x82a4d1[_0x2f163c('0x684')]()});}),_0xba8233[_0x653ff1('0x1619')][_0x653ff1('0x1450')]({'id':_0x140d75['id'],'ticketType':_0x54a2c7[_0x653ff1('0x1146')]?_0x54a2c7[_0x653ff1('0x1146')]:undefined})['$promise'][_0x653ff1('0xaa5')](function(_0x260cef){var _0x22f31a=_0x653ff1;_0x5f351['accountConnected']=!![],_0x5f351[_0x22f31a('0x13a')]=_0x260cef['rows']?_0x260cef['rows']:[],_0x5f351[_0x22f31a('0x1a38')][_0x22f31a('0x1dfc')]&&(_0x5f351[_0x22f31a('0x6fc')]=_0x51538b()[_0x22f31a('0xe9e')](_0x5f351['fields'],{'id':_0x5f351[_0x22f31a('0x1a38')][_0x22f31a('0x1dfc')]}));})[_0x653ff1('0x253d')](function(_0x359bd7){var _0x5f4a6f=_0x653ff1;_0x5f351[_0x5f4a6f('0x722')]=![],console[_0x5f4a6f('0x187f')](_0x359bd7);});function _0x28b4c9(){var _0x1fdd2d=_0x653ff1;_0x5f351[_0x1fdd2d('0x4c6')]=[],_0x5f351[_0x1fdd2d('0x6fc')]&&(_0x5f351[_0x1fdd2d('0x1a38')]['idField']=_0x5f351[_0x1fdd2d('0x6fc')]['id'],_0x5f351[_0x1fdd2d('0x1a38')][_0x1fdd2d('0x1662')]=_0x5f351['customField'][_0x1fdd2d('0x25d6')],_0x5f351[_0x1fdd2d('0x1a38')]['customField']=_0x5f351['customField'][_0x1fdd2d('0x113b')]),_0xba8233[_0x1fdd2d('0x9a6')][_0x1fdd2d('0x242b')](_0x5f351[_0x1fdd2d('0x1a38')])[_0x1fdd2d('0x1dc2')]['then'](function(_0x5b7f37){var _0x47e7f4=_0x1fdd2d;_0x5f351['items']['unshift'](_0x5b7f37),_0x278d35['success']({'title':_0x51538b()[_0x47e7f4('0x1b56')](_0x14403e)+'\x20properly\x20created','msg':_0x51538b()[_0x47e7f4('0x1b56')](_0x14403e)+'\x20has\x20been\x20created!'}),_0x18f2bf();})[_0x1fdd2d('0x253d')](function(_0x450434){var _0x872e74=_0x1fdd2d;console[_0x872e74('0x187f')](_0x450434),_0x5f351[_0x872e74('0x4c6')]=_0x450434[_0x872e74('0x10fd')][_0x872e74('0x4c6')]||[{'message':_0x450434[_0x872e74('0x684')](),'type':_0x872e74('0x23f')}];});}function _0x3a383e(){var _0x44a836=_0x653ff1;_0x5f351[_0x44a836('0x4c6')]=[],_0x5f351[_0x44a836('0x6fc')]&&(_0x5f351['item'][_0x44a836('0x1dfc')]=_0x5f351[_0x44a836('0x6fc')]['id'],_0x5f351[_0x44a836('0x1a38')]['nameField']=_0x5f351['customField']['name'],_0x5f351['item'][_0x44a836('0x6fc')]=_0x5f351[_0x44a836('0x6fc')][_0x44a836('0x113b')]),_0xba8233[_0x44a836('0x9a6')][_0x44a836('0x264e')]({'id':_0x5f351[_0x44a836('0x1a38')]['id']},_0x5f351[_0x44a836('0x1a38')])['$promise']['then'](function(_0x4e2824){var _0x26f96a=_0x44a836,_0x1a49fc=_0x51538b()[_0x26f96a('0xe9e')](_0x5f351[_0x26f96a('0x1a30')],{'id':_0x4e2824['id']});_0x1a49fc&&_0x51538b()[_0x26f96a('0x283c')](_0x1a49fc,_0x4e2824),_0x278d35[_0x26f96a('0xe10')]({'title':_0x51538b()[_0x26f96a('0x1b56')](_0x14403e)+_0x26f96a('0x1c44'),'msg':_0x51538b()[_0x26f96a('0x1b56')](_0x14403e)+_0x26f96a('0x20bf')}),_0x18f2bf();})['catch'](function(_0x3ffd2a){var _0x135656=_0x44a836;console['error'](_0x3ffd2a),_0x5f351[_0x135656('0x4c6')]=_0x3ffd2a[_0x135656('0x10fd')][_0x135656('0x4c6')]||[{'message':_0x3ffd2a[_0x135656('0x684')](),'type':_0x135656('0x2460')}];});}function _0x4947dc(_0x39a2c1){var _0x49006c=_0x653ff1;_0x5f351[_0x49006c('0x4c6')]=[];var _0x53e530=_0xc92693[_0x49006c('0x281e')]()['title'](_0x49006c('0x12a3'))[_0x49006c('0x15af')]('The\x20'+_0x14403e+_0x49006c('0x210d'))[_0x49006c('0x5b5')](_0x49006c('0xf00')+_0x51538b()['capitalize'](_0x14403e))['ok']('Delete')[_0x49006c('0x2030')](_0x49006c('0x9c6'))[_0x49006c('0x116d')](_0x39a2c1);_0xc92693['show'](_0x53e530)[_0x49006c('0xaa5')](function(){var _0x51bef0=_0x49006c;_0xba8233[_0x51bef0('0x9a6')]['delete']({'id':_0x5f351['item']['id']})[_0x51bef0('0x1dc2')][_0x51bef0('0xaa5')](function(){var _0x577c48=_0x51bef0;_0x51538b()[_0x577c48('0xf6d')](_0x5f351[_0x577c48('0x1a30')],{'id':_0x5f351[_0x577c48('0x1a38')]['id']}),_0x278d35[_0x577c48('0xe10')]({'title':_0x51538b()[_0x577c48('0x1b56')](_0x14403e)+_0x577c48('0x1e42'),'msg':_0x51538b()['capitalize'](_0x14403e)+'\x20has\x20been\x20deleted!'}),_0x18f2bf();})['catch'](function(_0xf87eed){var _0x8b6eeb=_0x51bef0;console['error'](_0xf87eed),_0x5f351[_0x8b6eeb('0x4c6')]=_0xf87eed[_0x8b6eeb('0x10fd')][_0x8b6eeb('0x4c6')]||[{'message':_0xf87eed[_0x8b6eeb('0x684')](),'type':_0x8b6eeb('0x37d')}];});},function(){});}function _0x3500d1(){var _0x5bd551=_0x653ff1;return _0x5f351[_0x5bd551('0x1a38')]['variableName']!==undefined?_0x5f351[_0x5bd551('0x1a38')][_0x5bd551('0x1e29')]:_0x5bd551('0x2444');}function _0x18f2bf(){var _0x429eb2=_0x653ff1;_0xc92693[_0x429eb2('0x1120')]();}}const _0x2cc43f=_0x49d35c;_0x142dbf['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate','license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1803'),_0x1a8446('0x1a50')];function _0x142dbf(_0x26d746,_0x14fcde,_0x5396f0,_0x1fc22f,_0x171090,_0x202858,_0x54b737,_0xe0707,_0x406da5,_0x12639b,_0x5765d2,_0x24963f){var _0x125f80=_0x1a8446,_0x3ce750=this;_0x3ce750[_0x125f80('0x7fc')]=_0x12639b[_0x125f80('0xacc')](),_0x3ce750[_0x125f80('0x1202')]=_0x202858,_0x3ce750[_0x125f80('0x143f')]=_0x54b737,_0x3ce750[_0x125f80('0x1d53')]=_0x3ce750['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ce750[_0x125f80('0x18cc')]=_0x14fcde['protocol']()+_0x125f80('0x356')+_0x14fcde[_0x125f80('0x160c')](),_0x3ce750[_0x125f80('0x1803')]=_0x5765d2||_0x26d746[_0x125f80('0x25cf')]['sugarcrmAccount']||{},_0x3ce750[_0x125f80('0x1a50')]=_0x24963f&&_0x24963f[_0x125f80('0xd15')]==0x1?_0x24963f[_0x125f80('0x580')][0x0]:null,_0x3ce750[_0x125f80('0xada')]=_0x12639b['parseCrudPermissions'](_0x3ce750[_0x125f80('0x1a50')]?_0x3ce750['userProfileSection']['crudPermissions']:null),_0x3ce750[_0x125f80('0x9f0')]={},_0x3ce750[_0x125f80('0xe5c')]=_0x26d746[_0x125f80('0x25cf')]['tab']||0x0,_0x3ce750[_0x125f80('0xc10')]=_0x406da5['info'],_0x3ce750[_0x125f80('0x1842')]=_0x222aed,_0x3ce750[_0x125f80('0x1428')]=_0x300217;function _0x222aed(){var _0x39fab=_0x125f80;_0x26d746['go'](_0x39fab('0x1656'),{},{'reload':_0x39fab('0x1656')});}function _0x300217(){var _0x114d2e=_0x125f80;_0xe0707[_0x114d2e('0x1619')][_0x114d2e('0x264e')]({'id':_0x3ce750[_0x114d2e('0x1803')]['id']},_0x3ce750['sugarcrmAccount'])[_0x114d2e('0x1dc2')][_0x114d2e('0xaa5')](function(){var _0x4e6c53=_0x114d2e;_0x406da5[_0x4e6c53('0xe10')]({'title':_0x4e6c53('0x104'),'msg':_0x3ce750['sugarcrmAccount'][_0x4e6c53('0x25d6')]?_0x3ce750['sugarcrmAccount'][_0x4e6c53('0x25d6')]+'\x20has\x20been\x20updated!':''});})[_0x114d2e('0x253d')](function(_0x12bddb){var _0x12b883=_0x114d2e;_0x406da5[_0x12b883('0x187f')]({'title':_0x12bddb[_0x12b883('0x2fa')]?_0x12b883('0x16c2')+_0x12bddb['status']+_0x12b883('0x169e')+_0x12bddb[_0x12b883('0x24df')]:'SYSTEM:GETintSugarcrmAccount','msg':_0x12bddb['data']?JSON[_0x12b883('0xa48')](_0x12bddb[_0x12b883('0x10fd')]):_0x12bddb[_0x12b883('0x684')]()});});}}const _0x5b9f16=_0x142dbf,_0x2f56a9=_0x4fb511['p']+_0x1a8446('0xe30');_0x373397[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),'sugarcrmAccounts','userProfile','userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'license','setting'];function _0x373397(_0x36cef6,_0x1ee208,_0x4893c1,_0x216738,_0x4e0b73,_0x5e9d72,_0x6e3168,_0x38d0b2,_0x2a3d10,_0x102925,_0xc91c5b,_0x255c9f,_0x4b1de1,_0x13a0f1,_0x44872e,_0x302ca2,_0x3ad97e){var _0x5e8e4d=_0x1a8446,_0x1c39be=this;_0x1c39be['license']=_0x302ca2,_0x1c39be[_0x5e8e4d('0x143f')]=_0x3ad97e,_0x1c39be[_0x5e8e4d('0x7fc')]=_0x44872e['getCurrentUser'](),_0x1c39be[_0x5e8e4d('0x8d3')]=_0x2a3d10||{'count':0x0,'rows':[]},_0x1c39be[_0x5e8e4d('0x1e97')]=_0x102925,_0x1c39be['userProfileSection']=_0xc91c5b&&_0xc91c5b[_0x5e8e4d('0xd15')]==0x1?_0xc91c5b[_0x5e8e4d('0x580')][0x0]:null,_0x1c39be[_0x5e8e4d('0xada')]=_0x44872e['parseCrudPermissions'](_0x1c39be['userProfileSection']?_0x1c39be[_0x5e8e4d('0x1a50')]['crudPermissions']:null),_0x1c39be[_0x5e8e4d('0x12b6')]=_0x5e8e4d('0x8d3'),_0x1c39be['listOrder']='',_0x1c39be[_0x5e8e4d('0x8cc')]=null,_0x1c39be[_0x5e8e4d('0x9dc')]=[],_0x1c39be[_0x5e8e4d('0x582')]={'fields':_0x5e8e4d('0x1808'),'limit':0xa,'page':0x1},_0x1c39be[_0x5e8e4d('0x1927')]=_0x2efe9b,_0x1c39be[_0x5e8e4d('0xa49')]=_0x146624,_0x1c39be[_0x5e8e4d('0x271')]=_0x235610,_0x1c39be['success']=_0x535da8,_0x1c39be[_0x5e8e4d('0x25ca')]=_0x2a5a57,_0x1c39be['createOrEditSugarcrmAccount']=_0x3f5f43,_0x1c39be[_0x5e8e4d('0x12e6')]=_0xb42a84,_0x1c39be['exportSelectedSugarcrmAccounts']=_0x21a07e,_0x1c39be[_0x5e8e4d('0x14d8')]=_0x33f6ed,_0x1c39be[_0x5e8e4d('0x1334')]=_0x26d004,_0x1c39be[_0x5e8e4d('0x26d5')]=_0x55cbdd;function _0x2efe9b(_0x46fb62){var _0x296e65=_0x5e8e4d;_0x4893c1['go'](_0x296e65('0x14f0'),{'id':_0x46fb62['id'],'sugarcrmAccount':_0x46fb62,'crudPermissions':_0x1c39be['crudPermissions']});}function _0x146624(_0x3381b0){var _0x52663f=_0x5e8e4d;return _0x255c9f['intSugarcrmAccount'][_0x52663f('0x1450')]({'id':_0x3381b0['id'],'test':!![]})[_0x52663f('0x1dc2')][_0x52663f('0xaa5')](function(){var _0x217d5e=_0x52663f;_0x13a0f1[_0x217d5e('0xe10')]({'title':'SugarcrmAccount\x20properly\x20tested','msg':_0x217d5e('0x2633')});})[_0x52663f('0x253d')](function(_0x54a735){var _0x582d57=_0x52663f;_0x13a0f1['error']({'title':_0x582d57('0x627'),'msg':_0x54a735[_0x582d57('0x10fd')]?_0x54a735[_0x582d57('0x10fd')][_0x582d57('0x1402')]?_0x54a735[_0x582d57('0x10fd')][_0x582d57('0x1402')]:JSON[_0x582d57('0xa48')](_0x54a735[_0x582d57('0x10fd')]):_0x54a735[_0x582d57('0x684')]()});});}function _0x235610(_0x249873,_0x26f301){var _0x3ba043=_0x5e8e4d,_0x3661e9=_0x4e0b73[_0x3ba043('0x281e')]()[_0x3ba043('0x110a')](_0x3ba043('0x88d')+_0x51538b()[_0x3ba043('0x196a')](_0x3ba043('0x1803'))+'?')[_0x3ba043('0x102e')](_0x3ba043('0x389')+(_0x249873['name']||_0x3ba043('0x1803'))+_0x3ba043('0x697')+_0x3ba043('0x210d'))[_0x3ba043('0x5b5')](_0x3ba043('0x13d4'))['targetEvent'](_0x26f301)['ok']('OK')[_0x3ba043('0x2030')](_0x3ba043('0x2410'));_0x4e0b73[_0x3ba043('0x1e6d')](_0x3661e9)['then'](function(){_0xb42a84(_0x249873);},function(){var _0x4f2cdc=_0x3ba043;console[_0x4f2cdc('0x18d5')](_0x4f2cdc('0x2410'));});}var _0x317fdc=!![],_0x2ed43a=0x1;_0x36cef6[_0x5e8e4d('0x1ccf')](_0x5e8e4d('0x1788'),function(_0x50b489,_0x20e10a){var _0x478b00=_0x5e8e4d;_0x317fdc?_0x6e3168(function(){_0x317fdc=![];}):(!_0x20e10a&&(_0x2ed43a=_0x1c39be[_0x478b00('0x582')][_0x478b00('0x41')]),_0x50b489!==_0x20e10a&&(_0x1c39be[_0x478b00('0x582')][_0x478b00('0x41')]=0x1),!_0x50b489&&(_0x1c39be[_0x478b00('0x582')]['page']=_0x2ed43a),_0x1c39be['getSugarcrmAccounts']());});function _0x535da8(_0x351c3a){var _0x53e0ed=_0x5e8e4d;_0x1c39be[_0x53e0ed('0x8d3')]=_0x351c3a||{'count':0x0,'rows':[]};}function _0x2a5a57(){var _0x334ccb=_0x5e8e4d;_0x1c39be['query'][_0x334ccb('0x8b1')]=(_0x1c39be[_0x334ccb('0x582')][_0x334ccb('0x41')]-0x1)*_0x1c39be['query'][_0x334ccb('0xf4d')],_0x44872e[_0x334ccb('0x26e8')]('admin')?_0x1c39be[_0x334ccb('0x159a')]=_0x255c9f[_0x334ccb('0x1619')][_0x334ccb('0x2122')](_0x1c39be[_0x334ccb('0x582')],_0x535da8)[_0x334ccb('0x1dc2')]:(_0x1c39be[_0x334ccb('0x582')]['id']=_0x1c39be[_0x334ccb('0x1e97')]['id'],_0x1c39be['query']['section']=_0x334ccb('0x387'),_0x1c39be[_0x334ccb('0x159a')]=_0x255c9f['userProfile'][_0x334ccb('0x1cf1')](_0x1c39be[_0x334ccb('0x582')],_0x535da8)['$promise']);}function _0x3f5f43(_0x363006,_0xdf43b0){var _0x3aaa77=_0x5e8e4d;_0x4e0b73['show']({'controller':'CreateOrEditSugarcrmAccountDialogController','controllerAs':'vm','templateUrl':_0x2f56a9,'parent':angular[_0x3aaa77('0x1aa8')](_0x5e9d72['body']),'targetEvent':_0x363006,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0xdf43b0,'sugarcrmAccounts':_0x1c39be[_0x3aaa77('0x8d3')][_0x3aaa77('0x580')],'license':_0x1c39be['license'],'setting':_0x1c39be['setting'],'crudPermissions':_0x1c39be['crudPermissions']}});}function _0xb42a84(_0x39a61e){var _0x2a889b=_0x5e8e4d;_0x255c9f[_0x2a889b('0x1619')][_0x2a889b('0x926')]({'id':_0x39a61e['id']})['$promise'][_0x2a889b('0xaa5')](function(){var _0x3d8e3b=_0x2a889b;_0x51538b()['remove'](_0x1c39be[_0x3d8e3b('0x8d3')][_0x3d8e3b('0x580')],{'id':_0x39a61e['id']}),_0x1c39be['sugarcrmAccounts'][_0x3d8e3b('0xd15')]-=0x1,!_0x1c39be[_0x3d8e3b('0x8d3')][_0x3d8e3b('0x580')][_0x3d8e3b('0x2587')]&&_0x1c39be[_0x3d8e3b('0x25ca')](),_0x13a0f1[_0x3d8e3b('0xe10')]({'title':_0x51538b()[_0x3d8e3b('0x196a')](_0x3d8e3b('0x183'))+_0x3d8e3b('0x8bb'),'msg':_0x39a61e[_0x3d8e3b('0x25d6')]?_0x39a61e['name']+'\x20has\x20been\x20deleted!':''});})[_0x2a889b('0x253d')](function(_0x1d5a55){var _0x283aa9=_0x2a889b;if(_0x1d5a55['data']&&_0x1d5a55['data']['errors']&&_0x1d5a55[_0x283aa9('0x10fd')]['errors'][_0x283aa9('0x2587')]){_0x1c39be[_0x283aa9('0x4c6')]=_0x1d5a55[_0x283aa9('0x10fd')][_0x283aa9('0x4c6')]||[{'message':_0x1d5a55[_0x283aa9('0x684')](),'type':_0x283aa9('0x9af')}];for(var _0x1de987=0x0;_0x1de987<_0x1d5a55[_0x283aa9('0x10fd')][_0x283aa9('0x4c6')]['length'];_0x1de987++){_0x13a0f1[_0x283aa9('0x187f')]({'title':_0x1d5a55[_0x283aa9('0x10fd')][_0x283aa9('0x4c6')][_0x1de987][_0x283aa9('0x6c8')],'msg':_0x1d5a55[_0x283aa9('0x10fd')][_0x283aa9('0x4c6')][_0x1de987][_0x283aa9('0x1402')]});}}else _0x13a0f1['error']({'title':_0x1d5a55[_0x283aa9('0x2fa')]?'API:'+_0x1d5a55[_0x283aa9('0x2fa')]+_0x283aa9('0x169e')+_0x1d5a55[_0x283aa9('0x24df')]:_0x283aa9('0x9af'),'msg':_0x1d5a55['data']?JSON['stringify'](_0x1d5a55[_0x283aa9('0x10fd')][_0x283aa9('0x1402')]):_0x1d5a55[_0x283aa9('0x1402')]||_0x1d5a55[_0x283aa9('0x684')]()});});}function _0x21a07e(){var _0x1e15e9=_0x5e8e4d,_0x29c944=angular[_0x1e15e9('0x20a')](_0x1c39be[_0x1e15e9('0x9dc')]);return _0x1c39be[_0x1e15e9('0x9dc')]=[],_0x29c944;}function _0x33f6ed(_0x4daf4f){var _0x2308be=_0x5e8e4d,_0x25387b=_0x4e0b73[_0x2308be('0x281e')]()['title'](_0x2308be('0x11a'))[_0x2308be('0x102e')](_0x2308be('0x389')+_0x1c39be[_0x2308be('0x9dc')][_0x2308be('0x2587')]+'\x20selected'+_0x2308be('0x210d'))[_0x2308be('0x5b5')](_0x2308be('0x281a'))[_0x2308be('0x116d')](_0x4daf4f)['ok']('OK')[_0x2308be('0x2030')](_0x2308be('0x2410'));_0x4e0b73['show'](_0x25387b)['then'](function(){var _0x32a4bd=_0x2308be;_0x1c39be[_0x32a4bd('0x9dc')][_0x32a4bd('0x15b5')](function(_0xe52951){_0xb42a84(_0xe52951);}),_0x1c39be['selectedSugarcrmAccounts']=[];});}function _0x26d004(){_0x1c39be['selectedSugarcrmAccounts']=[];}function _0x55cbdd(){var _0xe40c6a=_0x5e8e4d;_0x1c39be[_0xe40c6a('0x9dc')]=_0x1c39be[_0xe40c6a('0x8d3')][_0xe40c6a('0x580')];}}const _0xb22135=_0x373397;_0x4e900c[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x6bb'),_0x1a8446('0x661'),'api',_0x1a8446('0x1dfd'),'license','setting',_0x1a8446('0xada')];function _0x4e900c(_0x1c1086,_0x42381e,_0x3a3284,_0x269d2d,_0x426b05,_0x1ea3c4,_0x13106b,_0x16774b,_0xb0a306,_0x2d9c33,_0xeaadf9,_0x1881f9,_0x1318bc,_0x43e4e3){var _0x1c6c83=_0x1a8446,_0x29020f=this;_0x29020f[_0x1c6c83('0x7fc')]=_0xeaadf9[_0x1c6c83('0xacc')](),_0x29020f['errors']=[],_0x29020f[_0x1c6c83('0x143f')]=_0x1318bc,_0x29020f[_0x1c6c83('0x1202')]=_0x1881f9,_0x29020f['crudPermissions']=_0x43e4e3,_0x29020f[_0x1c6c83('0x9f0')]={},_0x29020f['passwordPattern']=_0x29020f[_0x1c6c83('0x143f')]&&_0x29020f[_0x1c6c83('0x143f')][_0x1c6c83('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x29020f[_0x1c6c83('0x110a')]='INTEGRATIONS.EDIT_VTIGERACCOUNT',_0x29020f['vtigerAccount']=angular['copy'](_0xb0a306),_0x29020f[_0x1c6c83('0x6bb')]=_0x16774b,_0x29020f['newVtigerAccount']=![];!_0x29020f['vtigerAccount']&&(_0x29020f[_0x1c6c83('0x661')]={'serverUrl':_0x3a3284[_0x1c6c83('0x1cc2')]()+_0x1c6c83('0x356')+_0x3a3284['host']()+(_0x3a3284['port']()?':'+_0x3a3284[_0x1c6c83('0x191')]():'')},_0x29020f[_0x1c6c83('0x110a')]='INTEGRATIONS.NEW_VTIGERACCOUNT',_0x29020f[_0x1c6c83('0x25ce')]=!![]);_0x29020f['addNewVtigerAccount']=_0x49834e,_0x29020f[_0x1c6c83('0x2514')]=_0x324fb3,_0x29020f['deleteVtigerAccount']=_0x21e0ec,_0x29020f['getDateFromString']=_0x2613d7,_0x29020f['closeDialog']=_0x512ffe;function _0x49834e(){var _0x572408=_0x1c6c83;_0x29020f[_0x572408('0x4c6')]=[],_0x2d9c33[_0x572408('0x116e')][_0x572408('0x242b')](_0x29020f['vtigerAccount'])[_0x572408('0x1dc2')][_0x572408('0xaa5')](function(_0x46cf8c){var _0x462c8e=_0x572408;_0x29020f['vtigerAccounts']['unshift'](_0x46cf8c[_0x462c8e('0x256a')]()),_0x13106b[_0x462c8e('0xe10')]({'title':_0x462c8e('0x1970'),'msg':_0x29020f[_0x462c8e('0x661')]['name']?_0x29020f[_0x462c8e('0x661')][_0x462c8e('0x25d6')]+_0x462c8e('0xdca'):''}),_0x512ffe(_0x46cf8c);})[_0x572408('0x253d')](function(_0x4df5c1){var _0x5ad701=_0x572408;if(_0x4df5c1[_0x5ad701('0x10fd')]&&_0x4df5c1[_0x5ad701('0x10fd')]['errors']&&_0x4df5c1[_0x5ad701('0x10fd')][_0x5ad701('0x4c6')][_0x5ad701('0x2587')]){_0x29020f[_0x5ad701('0x4c6')]=_0x4df5c1[_0x5ad701('0x10fd')][_0x5ad701('0x4c6')]||[{'message':_0x4df5c1['toString'](),'type':_0x5ad701('0x36e')}];for(var _0x2d8427=0x0;_0x2d8427<_0x4df5c1['data'][_0x5ad701('0x4c6')][_0x5ad701('0x2587')];_0x2d8427+=0x1){_0x13106b[_0x5ad701('0x187f')]({'title':_0x4df5c1[_0x5ad701('0x10fd')][_0x5ad701('0x4c6')][_0x2d8427][_0x5ad701('0x6c8')],'msg':_0x4df5c1[_0x5ad701('0x10fd')]['errors'][_0x2d8427][_0x5ad701('0x1402')]});}}else _0x13106b['error']({'title':_0x4df5c1[_0x5ad701('0x2fa')]?_0x5ad701('0x16c2')+_0x4df5c1[_0x5ad701('0x2fa')]+_0x5ad701('0x169e')+_0x4df5c1[_0x5ad701('0x24df')]:_0x5ad701('0x36e'),'msg':_0x4df5c1[_0x5ad701('0x10fd')]?JSON[_0x5ad701('0xa48')](_0x4df5c1['data']['message']):_0x4df5c1[_0x5ad701('0x684')]()});});}function _0x324fb3(){var _0x4f7b24=_0x1c6c83;_0x29020f[_0x4f7b24('0x4c6')]=[],_0x2d9c33['intVtigerAccount']['update']({'id':_0x29020f[_0x4f7b24('0x661')]['id']},_0x29020f[_0x4f7b24('0x661')])[_0x4f7b24('0x1dc2')][_0x4f7b24('0xaa5')](function(_0x5a7a2b){var _0x5da8e9=_0x4f7b24,_0x43dc2f=_0x51538b()['find'](_0x29020f[_0x5da8e9('0x6bb')],{'id':_0x5a7a2b['id']});_0x43dc2f&&_0x51538b()[_0x5da8e9('0x283c')](_0x43dc2f,_0x51538b()[_0x5da8e9('0x104e')](_0x5a7a2b[_0x5da8e9('0x256a')](),_0x51538b()[_0x5da8e9('0x9f2')](_0x43dc2f))),_0x13106b[_0x5da8e9('0xe10')]({'title':'VtigerAccount\x20properly\x20saved!','msg':_0x29020f[_0x5da8e9('0x661')][_0x5da8e9('0x25d6')]?_0x29020f[_0x5da8e9('0x661')][_0x5da8e9('0x25d6')]+_0x5da8e9('0x20bf'):''}),_0x512ffe(_0x5a7a2b);})[_0x4f7b24('0x253d')](function(_0x513fb0){var _0x3f99cd=_0x4f7b24;if(_0x513fb0[_0x3f99cd('0x10fd')]&&_0x513fb0[_0x3f99cd('0x10fd')][_0x3f99cd('0x4c6')]&&_0x513fb0[_0x3f99cd('0x10fd')][_0x3f99cd('0x4c6')][_0x3f99cd('0x2587')]){_0x29020f['errors']=_0x513fb0[_0x3f99cd('0x10fd')][_0x3f99cd('0x4c6')]||[{'message':_0x513fb0['toString'](),'type':'api.intVtigerAccount.update'}];for(var _0x292f97=0x0;_0x292f97<_0x513fb0['data']['errors'][_0x3f99cd('0x2587')];_0x292f97++){_0x13106b[_0x3f99cd('0x187f')]({'title':_0x513fb0[_0x3f99cd('0x10fd')][_0x3f99cd('0x4c6')][_0x292f97]['type'],'msg':_0x513fb0[_0x3f99cd('0x10fd')][_0x3f99cd('0x4c6')][_0x292f97][_0x3f99cd('0x1402')]});}}else _0x13106b[_0x3f99cd('0x187f')]({'title':_0x513fb0['status']?_0x3f99cd('0x16c2')+_0x513fb0[_0x3f99cd('0x2fa')]+_0x3f99cd('0x169e')+_0x513fb0[_0x3f99cd('0x24df')]:_0x3f99cd('0x7ef'),'msg':_0x513fb0[_0x3f99cd('0x10fd')]?JSON[_0x3f99cd('0xa48')](_0x513fb0[_0x3f99cd('0x10fd')]['message']):_0x513fb0[_0x3f99cd('0x684')]()});});}function _0x21e0ec(_0x47ac6e){var _0x33bc5a=_0x1c6c83;_0x29020f[_0x33bc5a('0x4c6')]=[];var _0x4d69e5=_0x269d2d[_0x33bc5a('0x281e')]()[_0x33bc5a('0x110a')]('Are\x20you\x20sure?')['content']('The\x20vtigerAccount\x20will\x20be\x20deleted.')[_0x33bc5a('0x5b5')](_0x33bc5a('0x109c'))['ok'](_0x33bc5a('0x1e76'))[_0x33bc5a('0x2030')]('Cancel')[_0x33bc5a('0x116d')](_0x47ac6e);_0x269d2d[_0x33bc5a('0x1e6d')](_0x4d69e5)['then'](function(){var _0x39b3dc=_0x33bc5a;_0x2d9c33['intVtigerAccount'][_0x39b3dc('0x926')]({'id':_0x29020f['vtigerAccount']['id']})[_0x39b3dc('0x1dc2')]['then'](function(){var _0x3b64cf=_0x39b3dc;_0x51538b()[_0x3b64cf('0xf6d')](_0x29020f[_0x3b64cf('0x6bb')],{'id':_0x29020f[_0x3b64cf('0x661')]['id']}),_0x13106b['success']({'title':_0x3b64cf('0x1765'),'msg':(_0x29020f[_0x3b64cf('0x661')]['name']||_0x3b64cf('0x661'))+_0x3b64cf('0xcd9')}),_0x512ffe(_0x29020f[_0x3b64cf('0x661')]);})['catch'](function(_0x507ed3){var _0x35e6b6=_0x39b3dc;if(_0x507ed3[_0x35e6b6('0x10fd')]&&_0x507ed3[_0x35e6b6('0x10fd')]['errors']&&_0x507ed3['data'][_0x35e6b6('0x4c6')][_0x35e6b6('0x2587')]){_0x29020f['errors']=_0x507ed3[_0x35e6b6('0x10fd')]['errors']||[{'message':_0x507ed3[_0x35e6b6('0x684')](),'type':_0x35e6b6('0x13eb')}];for(var _0x5f5943=0x0;_0x5f5943<_0x507ed3['data'][_0x35e6b6('0x4c6')][_0x35e6b6('0x2587')];_0x5f5943++){_0x13106b[_0x35e6b6('0x187f')]({'title':_0x507ed3['data'][_0x35e6b6('0x4c6')][_0x5f5943][_0x35e6b6('0x6c8')],'msg':_0x507ed3[_0x35e6b6('0x10fd')][_0x35e6b6('0x4c6')][_0x5f5943][_0x35e6b6('0x1402')]});}}else _0x13106b[_0x35e6b6('0x187f')]({'title':_0x507ed3[_0x35e6b6('0x2fa')]?_0x35e6b6('0x16c2')+_0x507ed3[_0x35e6b6('0x2fa')]+_0x35e6b6('0x169e')+_0x507ed3[_0x35e6b6('0x24df')]:'api.intVtigerAccount.delete','msg':_0x507ed3[_0x35e6b6('0x10fd')]?JSON[_0x35e6b6('0xa48')](_0x507ed3['data'][_0x35e6b6('0x1402')]):_0x507ed3['message']||_0x507ed3[_0x35e6b6('0x684')]()});});},function(){});}function _0x2613d7(_0x4b5d71){return _0x4b5d71===null?undefined:new Date(_0x4b5d71);}function _0x512ffe(_0x27eda5){_0x269d2d['hide'](_0x27eda5);}}const _0x21d067=_0x4e900c,_0x5c1773=_0x4fb511['p']+_0x1a8446('0x1693'),_0x1c6938=_0x4fb511['p']+_0x1a8446('0x1ae9');_0x2985e6['$inject']=['$mdDialog',_0x1a8446('0x39b'),'api',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x2985e6(_0x2df702,_0x104b4a,_0x2d1ce6,_0x333c7b,_0x132035){var _0x28b615=_0x1a8446,_0x3c443a=this;_0x3c443a[_0x28b615('0x7fc')]=_0x132035['getCurrentUser'](),_0x3c443a[_0x28b615('0x661')]={},_0x3c443a['vtigerConfiguration']={},_0x3c443a[_0x28b615('0x555')]=[],_0x3c443a[_0x28b615('0x227e')]=-0x1,_0x3c443a[_0x28b615('0xada')],_0x3c443a[_0x28b615('0x2e')]=_0x192397,_0x3c443a[_0x28b615('0xb3f')]=_0x4f92b8,_0x3c443a[_0x28b615('0xce8')]=_0x39c0cf,_0x3c443a[_0x28b615('0x660')]=_0x205cce;function _0x192397(_0x5d84d1,_0x359e09){var _0x3d8e89=_0x28b615;_0x3c443a[_0x3d8e89('0x661')]=_0x5d84d1,_0x3c443a[_0x3d8e89('0xada')]=typeof _0x359e09!==_0x3d8e89('0x1574')?_0x359e09:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2d1ce6[_0x3d8e89('0x116e')]['getConfigurations']({'id':_0x3c443a[_0x3d8e89('0x661')]['id'],'sort':'-updatedAt'})[_0x3d8e89('0x1dc2')][_0x3d8e89('0xaa5')](function(_0x252fcc){var _0x4cccf3=_0x3d8e89;return _0x3c443a[_0x4cccf3('0x555')]=_0x252fcc[_0x4cccf3('0x580')]?_0x252fcc[_0x4cccf3('0x580')]:[],_0x3c443a[_0x4cccf3('0x555')]['length']&&_0x3c443a[_0x4cccf3('0xb3f')](0x0),_0x2d1ce6[_0x4cccf3('0x14e7')][_0x4cccf3('0x2122')]({'nolimit':!![],'sort':_0x4cccf3('0x25d6')})['$promise'];})[_0x3d8e89('0xaa5')](function(_0x4504ec){var _0x2ecfbb=_0x3d8e89;_0x3c443a[_0x2ecfbb('0x147e')]=_0x4504ec[_0x2ecfbb('0x580')]?_0x4504ec['rows']:[],_0x3c443a[_0x2ecfbb('0x2032')]=_0x51538b()[_0x2ecfbb('0x184a')](_0x3c443a[_0x2ecfbb('0x147e')],'id');})['catch'](function(_0x5c2013){var _0x4c6474=_0x3d8e89;_0x333c7b[_0x4c6474('0x187f')]({'title':_0x5c2013[_0x4c6474('0x2fa')]?'API:'+_0x5c2013[_0x4c6474('0x2fa')]+'\x20-\x20'+_0x5c2013[_0x4c6474('0x24df')]:_0x4c6474('0x24c9'),'msg':_0x5c2013[_0x4c6474('0x10fd')]?JSON[_0x4c6474('0xa48')](_0x5c2013['data']):_0x5c2013['toString']()});});}function _0x4f92b8(_0x598c9a){var _0x1daec7=_0x28b615;_0x3c443a['vtigerConfiguration']=_0x3c443a['configurations'][_0x598c9a],_0x3c443a[_0x1daec7('0x227e')]=_0x598c9a,_0x2d1ce6[_0x1daec7('0x986')]['getSubjects']({'id':_0x3c443a[_0x1daec7('0x16a4')]['id']})[_0x1daec7('0x1dc2')]['then'](function(_0x347e5d){var _0xfeb964=_0x1daec7;return _0x3c443a[_0xfeb964('0xc3f')]=_0x347e5d[_0xfeb964('0x580')]?_0x347e5d[_0xfeb964('0x580')]:[],_0x2d1ce6[_0xfeb964('0x986')]['getDescriptions']({'id':_0x3c443a[_0xfeb964('0x16a4')]['id']})['$promise'];})[_0x1daec7('0xaa5')](function(_0x1a3851){var _0x55c214=_0x1daec7;return _0x3c443a['descriptions']=_0x1a3851['rows']?_0x1a3851[_0x55c214('0x580')]:[],_0x2d1ce6['intVtigerConfiguration'][_0x55c214('0x1450')]({'id':_0x3c443a[_0x55c214('0x16a4')]['id']})[_0x55c214('0x1dc2')];})[_0x1daec7('0xaa5')](function(_0x2b2566){var _0x1114e1=_0x1daec7;_0x3c443a[_0x1114e1('0x13a')]=_0x2b2566[_0x1114e1('0x580')]?_0x2b2566[_0x1114e1('0x580')]:[];})[_0x1daec7('0x253d')](function(_0x2ad086){var _0x4ab8f8=_0x1daec7;_0x333c7b[_0x4ab8f8('0x187f')]({'title':_0x2ad086[_0x4ab8f8('0x2fa')]?'API:'+_0x2ad086[_0x4ab8f8('0x2fa')]+_0x4ab8f8('0x169e')+_0x2ad086[_0x4ab8f8('0x24df')]:_0x4ab8f8('0xd6d'),'msg':_0x2ad086[_0x4ab8f8('0x10fd')]?JSON['stringify'](_0x2ad086[_0x4ab8f8('0x10fd')]):_0x2ad086['toString']()});});}function _0x39c0cf(_0x206ba2,_0x1db87d){var _0x3927f3=_0x28b615;_0x2df702[_0x3927f3('0x1e6d')]({'controller':_0x3927f3('0x152'),'controllerAs':'vm','templateUrl':_0x5c1773,'parent':angular[_0x3927f3('0x1aa8')](_0x104b4a[_0x3927f3('0x54c')]),'targetEvent':_0x206ba2,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x1db87d,'configurations':_0x3c443a['configurations'],'license':null,'setting':null,'crudPermissions':_0x3c443a['crudPermissions']}})['finally'](function(){_0x3c443a['getVtigerConfiguration'](0x0);});}function _0x205cce(_0x33b1f7,_0x725778){var _0x4fc213=_0x28b615,_0x40be0b=_0x2df702[_0x4fc213('0x281e')]()[_0x4fc213('0x110a')](_0x4fc213('0x2503'))[_0x4fc213('0x102e')](_0x4fc213('0x389')+(_0x725778['name']||_0x4fc213('0x16a4'))+_0x4fc213('0x697')+_0x4fc213('0x210d'))['ariaLabel'](_0x4fc213('0x5bb'))['targetEvent'](_0x33b1f7)['ok']('OK')['cancel'](_0x4fc213('0x2410'));_0x2df702['show'](_0x40be0b)[_0x4fc213('0xaa5')](function(){var _0x282636=_0x4fc213;_0x2d1ce6[_0x282636('0x986')][_0x282636('0x926')]({'id':_0x725778['id']})[_0x282636('0x1dc2')][_0x282636('0xaa5')](function(){var _0x213867=_0x282636;_0x51538b()[_0x213867('0xf6d')](_0x3c443a['configurations'],{'id':_0x725778['id']}),_0x333c7b[_0x213867('0xe10')]({'title':_0x213867('0xbe'),'msg':_0x725778['name']?_0x725778[_0x213867('0x25d6')]+_0x213867('0xcd9'):''});})['catch'](function(_0xb3dbc1){var _0x3067e3=_0x282636;_0x333c7b[_0x3067e3('0x187f')]({'title':_0xb3dbc1[_0x3067e3('0x2fa')]?_0x3067e3('0x16c2')+_0xb3dbc1[_0x3067e3('0x2fa')]+_0x3067e3('0x169e')+_0xb3dbc1[_0x3067e3('0x24df')]:_0x3067e3('0x2549'),'msg':_0xb3dbc1[_0x3067e3('0x10fd')]?JSON[_0x3067e3('0xa48')](_0xb3dbc1[_0x3067e3('0x10fd')]):_0xb3dbc1[_0x3067e3('0x684')]()});})[_0x282636('0x1889')](function(){var _0x325a20=_0x282636;_0x3c443a[_0x325a20('0xb3f')](0x0);});},function(){var _0x22bcd6=_0x4fc213;console[_0x22bcd6('0x18d5')]('CANCEL');});}_0x3c443a[_0x28b615('0xf7d')]=[],_0x3c443a[_0x28b615('0x21c5')]=_0x546e8d,_0x3c443a[_0x28b615('0x1e1e')]=_0x6eb286,_0x3c443a[_0x28b615('0x911')]=_0x1a4c11;function _0x546e8d(_0x380b60,_0x249dd8){var _0x1a2161=_0x28b615;_0x2df702[_0x1a2161('0x1e6d')]({'controller':_0x1a2161('0xf3'),'controllerAs':'vm','templateUrl':_0x1c6938,'parent':angular[_0x1a2161('0x1aa8')](_0x104b4a[_0x1a2161('0x54c')]),'targetEvent':_0x380b60,'clickOutsideToClose':!![],'locals':{'type':_0x1a2161('0x2101'),'item':_0x249dd8,'items':_0x3c443a[_0x1a2161('0xc3f')],'configuration':_0x3c443a['vtigerConfiguration'],'account':_0x3c443a[_0x1a2161('0x661')],'license':null,'setting':null,'crudPermissions':_0x3c443a[_0x1a2161('0xada')]}});}function _0x11eca3(_0x533e0c){var _0x22acac=_0x28b615;_0x2d1ce6[_0x22acac('0x1256')][_0x22acac('0x926')]({'id':_0x533e0c['id']})[_0x22acac('0x1dc2')][_0x22acac('0xaa5')](function(){var _0x572f41=_0x22acac;_0x51538b()[_0x572f41('0xf6d')](_0x3c443a['subjects'],{'id':_0x533e0c['id']}),_0x333c7b[_0x572f41('0xe10')]({'title':'Subject\x20deleted!','msg':_0x572f41('0x1732')});})[_0x22acac('0x253d')](function(_0x3e5c81){var _0x38a950=_0x22acac;_0x333c7b[_0x38a950('0x187f')]({'title':_0x3e5c81[_0x38a950('0x2fa')]?'API:'+_0x3e5c81[_0x38a950('0x2fa')]+_0x38a950('0x169e')+_0x3e5c81[_0x38a950('0x24df')]:_0x38a950('0xdd7'),'msg':_0x3e5c81[_0x38a950('0x10fd')]?JSON['stringify'](_0x3e5c81['data']):_0x3e5c81[_0x38a950('0x684')]()});});}function _0x6eb286(_0x1ee3df,_0x37ce4b){var _0x5391c8=_0x28b615,_0x32219d=_0x2df702['confirm']()['title'](_0x5391c8('0x16b5'))['htmlContent']('Subject'+_0x5391c8('0x210d'))[_0x5391c8('0x5b5')](_0x5391c8('0x25d5'))['targetEvent'](_0x1ee3df)['ok']('OK')[_0x5391c8('0x2030')](_0x5391c8('0x2410'));_0x2df702[_0x5391c8('0x1e6d')](_0x32219d)[_0x5391c8('0xaa5')](function(){_0x11eca3(_0x37ce4b);},function(){var _0x4b8758=_0x5391c8;console[_0x4b8758('0x18d5')](_0x4b8758('0x2410'));});}function _0x1a4c11(_0x165106){var _0x18af6a=_0x28b615,_0x5a0156=_0x2df702['confirm']()[_0x18af6a('0x110a')](_0x18af6a('0x6f0'))[_0x18af6a('0x102e')](_0x18af6a('0x389')+_0x3c443a[_0x18af6a('0xf7d')][_0x18af6a('0x2587')]+_0x18af6a('0x1443')+_0x18af6a('0x210d'))[_0x18af6a('0x5b5')](_0x18af6a('0xfcd'))[_0x18af6a('0x116d')](_0x165106)['ok']('OK')[_0x18af6a('0x2030')](_0x18af6a('0x2410'));_0x2df702[_0x18af6a('0x1e6d')](_0x5a0156)['then'](function(){var _0x3a4ec4=_0x18af6a;_0x3c443a[_0x3a4ec4('0xf7d')][_0x3a4ec4('0x15b5')](function(_0xc05428){_0x11eca3(_0xc05428);}),_0x3c443a[_0x3a4ec4('0xf7d')]=[];});}_0x3c443a[_0x28b615('0x1b51')]=[],_0x3c443a[_0x28b615('0x19db')]=_0x28dfbc,_0x3c443a[_0x28b615('0x12af')]=_0x2ad14d,_0x3c443a[_0x28b615('0x416')]=_0x54ea08;function _0x28dfbc(_0x5dc773,_0x3ebb05){var _0x21d6ad=_0x28b615;_0x2df702['show']({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0x1c6938,'parent':angular[_0x21d6ad('0x1aa8')](_0x104b4a['body']),'targetEvent':_0x5dc773,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x3ebb05,'items':_0x3c443a[_0x21d6ad('0x27b9')],'configuration':_0x3c443a[_0x21d6ad('0x16a4')],'account':_0x3c443a[_0x21d6ad('0x661')],'license':null,'setting':null,'crudPermissions':_0x3c443a[_0x21d6ad('0xada')]}});}function _0x5a9e2b(_0x5cb3c5){var _0x32505a=_0x28b615;_0x2d1ce6[_0x32505a('0x1256')][_0x32505a('0x926')]({'id':_0x5cb3c5['id']})[_0x32505a('0x1dc2')]['then'](function(){var _0x3331e6=_0x32505a;_0x51538b()['remove'](_0x3c443a[_0x3331e6('0x27b9')],{'id':_0x5cb3c5['id']}),_0x333c7b['success']({'title':'Description\x20deleted!','msg':_0x3331e6('0x266b')});})[_0x32505a('0x253d')](function(_0x8115b0){var _0x28c208=_0x32505a;_0x333c7b[_0x28c208('0x187f')]({'title':_0x8115b0[_0x28c208('0x2fa')]?_0x28c208('0x16c2')+_0x8115b0[_0x28c208('0x2fa')]+_0x28c208('0x169e')+_0x8115b0[_0x28c208('0x24df')]:_0x28c208('0xdd7'),'msg':_0x8115b0[_0x28c208('0x10fd')]?JSON[_0x28c208('0xa48')](_0x8115b0[_0x28c208('0x10fd')]):_0x8115b0[_0x28c208('0x684')]()});});}function _0x2ad14d(_0x14e6f7,_0x10e6b6){var _0x35b069=_0x28b615,_0x53073d=_0x2df702['confirm']()['title'](_0x35b069('0x19b6'))[_0x35b069('0x102e')]('Description'+_0x35b069('0x210d'))[_0x35b069('0x5b5')](_0x35b069('0x8b2'))['targetEvent'](_0x14e6f7)['ok']('OK')['cancel'](_0x35b069('0x2410'));_0x2df702[_0x35b069('0x1e6d')](_0x53073d)[_0x35b069('0xaa5')](function(){_0x5a9e2b(_0x10e6b6);},function(){var _0x60ac04=_0x35b069;console[_0x60ac04('0x18d5')](_0x60ac04('0x2410'));});}function _0x54ea08(_0x1a036b){var _0x43712f=_0x28b615,_0x3836bd=_0x2df702['confirm']()[_0x43712f('0x110a')](_0x43712f('0x12ce'))[_0x43712f('0x102e')](_0x43712f('0x389')+_0x3c443a[_0x43712f('0x1b51')][_0x43712f('0x2587')]+_0x43712f('0x1443')+'\x20will\x20be\x20deleted.')[_0x43712f('0x5b5')]('delete\x20descriptions')[_0x43712f('0x116d')](_0x1a036b)['ok']('OK')['cancel'](_0x43712f('0x2410'));_0x2df702[_0x43712f('0x1e6d')](_0x3836bd)[_0x43712f('0xaa5')](function(){var _0x2426ff=_0x43712f;_0x3c443a[_0x2426ff('0x1b51')][_0x2426ff('0x15b5')](function(_0x1ff222){_0x5a9e2b(_0x1ff222);}),_0x3c443a[_0x2426ff('0x1b51')]=[];});}_0x3c443a[_0x28b615('0x490')]=[],_0x3c443a['createOrEditField']=_0x3c9c8f,_0x3c443a[_0x28b615('0x353')]=_0x10acef,_0x3c443a['deleteSelectedFields']=_0x23fb1a;function _0x3c9c8f(_0x15b66c,_0x20dc24){var _0x2f63d1=_0x28b615;_0x2df702[_0x2f63d1('0x1e6d')]({'controller':_0x2f63d1('0xf3'),'controllerAs':'vm','templateUrl':_0x1c6938,'parent':angular[_0x2f63d1('0x1aa8')](_0x104b4a[_0x2f63d1('0x54c')]),'targetEvent':_0x15b66c,'clickOutsideToClose':!![],'locals':{'type':_0x2f63d1('0x5f2'),'item':_0x20dc24,'items':_0x3c443a[_0x2f63d1('0x13a')],'configuration':_0x3c443a[_0x2f63d1('0x16a4')],'account':_0x3c443a[_0x2f63d1('0x661')],'license':null,'setting':null,'crudPermissions':_0x3c443a['crudPermissions']}});}function _0x54b680(_0x3398eb){var _0x377da0=_0x28b615;_0x2d1ce6[_0x377da0('0x1256')][_0x377da0('0x926')]({'id':_0x3398eb['id']})['$promise'][_0x377da0('0xaa5')](function(){var _0x256f70=_0x377da0;_0x51538b()[_0x256f70('0xf6d')](_0x3c443a['fields'],{'id':_0x3398eb['id']}),_0x333c7b[_0x256f70('0xe10')]({'title':_0x256f70('0x25e1'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x377da0('0x253d')](function(_0x2b97e5){var _0x3520c1=_0x377da0;_0x333c7b[_0x3520c1('0x187f')]({'title':_0x2b97e5['status']?'API:'+_0x2b97e5[_0x3520c1('0x2fa')]+_0x3520c1('0x169e')+_0x2b97e5[_0x3520c1('0x24df')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x2b97e5['data']?JSON[_0x3520c1('0xa48')](_0x2b97e5[_0x3520c1('0x10fd')]):_0x2b97e5['toString']()});});}function _0x10acef(_0x5c8e4a,_0x58d8fc){var _0x4266dc=_0x28b615,_0x342c09=_0x2df702[_0x4266dc('0x281e')]()[_0x4266dc('0x110a')](_0x4266dc('0x27fc'))[_0x4266dc('0x102e')](_0x4266dc('0x455')+_0x4266dc('0x210d'))[_0x4266dc('0x5b5')](_0x4266dc('0x1286'))[_0x4266dc('0x116d')](_0x5c8e4a)['ok']('OK')[_0x4266dc('0x2030')](_0x4266dc('0x2410'));_0x2df702[_0x4266dc('0x1e6d')](_0x342c09)[_0x4266dc('0xaa5')](function(){_0x54b680(_0x58d8fc);},function(){var _0x4eaf0b=_0x4266dc;console['log'](_0x4eaf0b('0x2410'));});}function _0x23fb1a(_0x5e9d00){var _0x5c6472=_0x28b615,_0x2fa139=_0x2df702[_0x5c6472('0x281e')]()[_0x5c6472('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x5c6472('0x102e')](_0x5c6472('0x389')+_0x3c443a['selectedFields'][_0x5c6472('0x2587')]+_0x5c6472('0x1443')+_0x5c6472('0x210d'))[_0x5c6472('0x5b5')](_0x5c6472('0xefc'))[_0x5c6472('0x116d')](_0x5e9d00)['ok']('OK')['cancel']('CANCEL');_0x2df702['show'](_0x2fa139)[_0x5c6472('0xaa5')](function(){var _0x48dbfd=_0x5c6472;_0x3c443a[_0x48dbfd('0x490')]['forEach'](function(_0x23629a){_0x54b680(_0x23629a);}),_0x3c443a[_0x48dbfd('0x490')]=[];});}}const _0xb5011f=_0x2985e6;_0x30b988[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x555'),'vtigerConfiguration',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x30b988(_0x418e16,_0x22d8c4,_0x43ebe4,_0xe67705,_0x4bb84e,_0x47697a,_0x14754f,_0x511b26,_0x32c1d7,_0x1cd454,_0x20c613,_0x203892,_0x1330cb,_0x475a33){var _0x435a8b=_0x1a8446,_0x4e7d9b=this;_0x4e7d9b[_0x435a8b('0x7fc')]=_0x20c613[_0x435a8b('0xacc')](),_0x4e7d9b[_0x435a8b('0x4c6')]=[],_0x4e7d9b[_0x435a8b('0x143f')]=_0x1330cb,_0x4e7d9b[_0x435a8b('0x1202')]=_0x203892,_0x4e7d9b[_0x435a8b('0xada')]=_0x475a33,_0x4e7d9b[_0x435a8b('0x9f0')]={},_0x4e7d9b[_0x435a8b('0x1d53')]=_0x4e7d9b[_0x435a8b('0x143f')]&&_0x4e7d9b['setting'][_0x435a8b('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4e7d9b['title']=_0x435a8b('0x32'),_0x4e7d9b[_0x435a8b('0x16a4')]=angular[_0x435a8b('0x20a')](_0x32c1d7),_0x4e7d9b[_0x435a8b('0x555')]=_0x511b26,_0x4e7d9b['newVtigerConfiguration']=![];!_0x4e7d9b['vtigerConfiguration']&&(_0x4e7d9b['vtigerConfiguration']={'channel':_0x435a8b('0x1b9'),'type':_0x435a8b('0x4b8')},_0x4e7d9b[_0x435a8b('0x110a')]=_0x435a8b('0x7c1'),_0x4e7d9b['newVtigerConfiguration']=!![]);_0x4e7d9b[_0x435a8b('0xa41')]=_0xb7b6b1,_0x4e7d9b[_0x435a8b('0x28d')]=_0x12b554,_0x4e7d9b[_0x435a8b('0x660')]=_0x1dd694,_0x4e7d9b[_0x435a8b('0xc09')]=_0x55976f,_0x4e7d9b[_0x435a8b('0x2023')]=_0x21f772;function _0xb7b6b1(){var _0x13c3f3=_0x435a8b;_0x4e7d9b[_0x13c3f3('0x4c6')]=[],_0x1cd454[_0x13c3f3('0x116e')][_0x13c3f3('0x118f')]({'id':_0x22d8c4[_0x13c3f3('0x25cf')]['id']},_0x4e7d9b[_0x13c3f3('0x16a4')])[_0x13c3f3('0x1dc2')][_0x13c3f3('0xaa5')](function(_0x48c624){var _0xfb36b3=_0x13c3f3;_0x4e7d9b[_0xfb36b3('0x555')][_0xfb36b3('0x6ee')](_0x48c624[_0xfb36b3('0x256a')]()),_0x14754f[_0xfb36b3('0xe10')]({'title':'VtigerConfiguration\x20properly\x20created','msg':_0x4e7d9b[_0xfb36b3('0x16a4')][_0xfb36b3('0x25d6')]?_0x4e7d9b[_0xfb36b3('0x16a4')]['name']+_0xfb36b3('0xdca'):''}),_0x21f772(_0x48c624);})[_0x13c3f3('0x253d')](function(_0x30cc29){var _0x386cb4=_0x13c3f3;if(_0x30cc29[_0x386cb4('0x10fd')]&&_0x30cc29['data'][_0x386cb4('0x4c6')]&&_0x30cc29[_0x386cb4('0x10fd')]['errors'][_0x386cb4('0x2587')]){_0x4e7d9b['errors']=_0x30cc29['data']['errors']||[{'message':_0x30cc29[_0x386cb4('0x684')](),'type':'api.intVtigerConfiguration.save'}];for(var _0x225d67=0x0;_0x225d67<_0x30cc29[_0x386cb4('0x10fd')][_0x386cb4('0x4c6')][_0x386cb4('0x2587')];_0x225d67+=0x1){_0x14754f[_0x386cb4('0x187f')]({'title':_0x30cc29[_0x386cb4('0x10fd')][_0x386cb4('0x4c6')][_0x225d67][_0x386cb4('0x6c8')],'msg':_0x30cc29[_0x386cb4('0x10fd')][_0x386cb4('0x4c6')][_0x225d67][_0x386cb4('0x1402')]});}}else _0x14754f['error']({'title':_0x30cc29[_0x386cb4('0x2fa')]?_0x386cb4('0x16c2')+_0x30cc29[_0x386cb4('0x2fa')]+_0x386cb4('0x169e')+_0x30cc29[_0x386cb4('0x24df')]:_0x386cb4('0x1711'),'msg':_0x30cc29['data']?JSON[_0x386cb4('0xa48')](_0x30cc29['data']['message']):_0x30cc29['toString']()});});}function _0x12b554(){var _0x30302f=_0x435a8b;_0x4e7d9b[_0x30302f('0x4c6')]=[],_0x1cd454['intVtigerConfiguration'][_0x30302f('0x264e')]({'id':_0x4e7d9b['vtigerConfiguration']['id']},_0x4e7d9b[_0x30302f('0x16a4')])['$promise'][_0x30302f('0xaa5')](function(_0x5e9973){var _0x4d4f93=_0x30302f,_0x155c76=_0x51538b()[_0x4d4f93('0xe9e')](_0x4e7d9b[_0x4d4f93('0x555')],{'id':_0x5e9973['id']});_0x155c76&&_0x51538b()[_0x4d4f93('0x283c')](_0x155c76,_0x51538b()['pick'](_0x5e9973[_0x4d4f93('0x256a')](),_0x51538b()[_0x4d4f93('0x9f2')](_0x155c76))),_0x14754f[_0x4d4f93('0xe10')]({'title':_0x4d4f93('0x13d3'),'msg':_0x4e7d9b[_0x4d4f93('0x16a4')][_0x4d4f93('0x25d6')]?_0x4e7d9b[_0x4d4f93('0x16a4')][_0x4d4f93('0x25d6')]+_0x4d4f93('0x20bf'):''}),_0x21f772(_0x5e9973);})[_0x30302f('0x253d')](function(_0xe3b84a){var _0x12ad5c=_0x30302f;if(_0xe3b84a[_0x12ad5c('0x10fd')]&&_0xe3b84a[_0x12ad5c('0x10fd')][_0x12ad5c('0x4c6')]&&_0xe3b84a[_0x12ad5c('0x10fd')]['errors'][_0x12ad5c('0x2587')]){_0x4e7d9b['errors']=_0xe3b84a['data'][_0x12ad5c('0x4c6')]||[{'message':_0xe3b84a[_0x12ad5c('0x684')](),'type':_0x12ad5c('0x524')}];for(var _0x54bc74=0x0;_0x54bc74<_0xe3b84a[_0x12ad5c('0x10fd')]['errors'][_0x12ad5c('0x2587')];_0x54bc74++){_0x14754f[_0x12ad5c('0x187f')]({'title':_0xe3b84a[_0x12ad5c('0x10fd')][_0x12ad5c('0x4c6')][_0x54bc74]['type'],'msg':_0xe3b84a[_0x12ad5c('0x10fd')][_0x12ad5c('0x4c6')][_0x54bc74]['message']});}}else _0x14754f[_0x12ad5c('0x187f')]({'title':_0xe3b84a['status']?_0x12ad5c('0x16c2')+_0xe3b84a[_0x12ad5c('0x2fa')]+'\x20-\x20'+_0xe3b84a[_0x12ad5c('0x24df')]:_0x12ad5c('0x524'),'msg':_0xe3b84a[_0x12ad5c('0x10fd')]?JSON[_0x12ad5c('0xa48')](_0xe3b84a[_0x12ad5c('0x10fd')][_0x12ad5c('0x1402')]):_0xe3b84a['toString']()});});}function _0x1dd694(_0x855ec8){var _0x2c1851=_0x435a8b;_0x4e7d9b[_0x2c1851('0x4c6')]=[];var _0x56c383=_0xe67705['confirm']()[_0x2c1851('0x110a')]('Are\x20you\x20sure?')['content'](_0x2c1851('0xb84'))[_0x2c1851('0x5b5')](_0x2c1851('0x1274'))['ok'](_0x2c1851('0x1e76'))[_0x2c1851('0x2030')]('Cancel')[_0x2c1851('0x116d')](_0x855ec8);_0xe67705[_0x2c1851('0x1e6d')](_0x56c383)['then'](function(){var _0x2c4d3f=_0x2c1851;_0x1cd454[_0x2c4d3f('0x986')][_0x2c4d3f('0x926')]({'id':_0x4e7d9b['vtigerConfiguration']['id']})[_0x2c4d3f('0x1dc2')][_0x2c4d3f('0xaa5')](function(){var _0x505bb5=_0x2c4d3f;_0x51538b()[_0x505bb5('0xf6d')](_0x4e7d9b[_0x505bb5('0x555')],{'id':_0x4e7d9b['vtigerConfiguration']['id']}),_0x14754f[_0x505bb5('0xe10')]({'title':_0x505bb5('0x18d7'),'msg':(_0x4e7d9b[_0x505bb5('0x16a4')][_0x505bb5('0x25d6')]||_0x505bb5('0x16a4'))+'\x20has\x20been\x20deleted!'}),_0x21f772(_0x4e7d9b[_0x505bb5('0x16a4')]);})[_0x2c4d3f('0x253d')](function(_0x5bfce5){var _0x135747=_0x2c4d3f;if(_0x5bfce5['data']&&_0x5bfce5['data'][_0x135747('0x4c6')]&&_0x5bfce5[_0x135747('0x10fd')]['errors'][_0x135747('0x2587')]){_0x4e7d9b['errors']=_0x5bfce5[_0x135747('0x10fd')][_0x135747('0x4c6')]||[{'message':_0x5bfce5[_0x135747('0x684')](),'type':_0x135747('0x408')}];for(var _0x4d5a29=0x0;_0x4d5a29<_0x5bfce5[_0x135747('0x10fd')][_0x135747('0x4c6')]['length'];_0x4d5a29++){_0x14754f['error']({'title':_0x5bfce5['data'][_0x135747('0x4c6')][_0x4d5a29][_0x135747('0x6c8')],'msg':_0x5bfce5[_0x135747('0x10fd')][_0x135747('0x4c6')][_0x4d5a29]['message']});}}else _0x14754f[_0x135747('0x187f')]({'title':_0x5bfce5[_0x135747('0x2fa')]?_0x135747('0x16c2')+_0x5bfce5[_0x135747('0x2fa')]+'\x20-\x20'+_0x5bfce5[_0x135747('0x24df')]:'api.intVtigerConfiguration.delete','msg':_0x5bfce5[_0x135747('0x10fd')]?JSON[_0x135747('0xa48')](_0x5bfce5[_0x135747('0x10fd')][_0x135747('0x1402')]):_0x5bfce5['message']||_0x5bfce5[_0x135747('0x684')]()});});},function(){});}function _0x55976f(_0x47453f){return _0x47453f===null?undefined:new Date(_0x47453f);}function _0x21f772(_0x1f9b24){var _0x885f2b=_0x435a8b;_0xe67705[_0x885f2b('0x1120')](_0x1f9b24);}}const _0x267464=_0x30b988;_0x55810d[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x72'),_0x1a8446('0x1a30'),'item',_0x1a8446('0x5b'),_0x1a8446('0x6c8'),'api',_0x1a8446('0x1dfd'),'crudPermissions'];function _0x55810d(_0x454362,_0x26d316,_0x4bb40d,_0x59c47a,_0x584fcd,_0x3c685c,_0x370621,_0x3be6b8,_0x311081,_0x3f0510,_0x1f8a10,_0x4c732e,_0x3ce193){var _0x413c77=_0x1a8446,_0x41ec45=this;_0x41ec45['currentUser']=_0x4c732e[_0x413c77('0xacc')](),_0x41ec45['errors']=[],_0x41ec45[_0x413c77('0x110a')]='INTEGRATIONS.EDIT_'+_0x51538b()['toUpper'](_0x3f0510),_0x41ec45[_0x413c77('0x1a38')]=angular[_0x413c77('0x20a')](_0x3be6b8),_0x41ec45[_0x413c77('0x1a30')]=_0x370621,_0x41ec45[_0x413c77('0x6c8')]=_0x3f0510,_0x41ec45[_0x413c77('0xada')]=_0x3ce193,_0x41ec45[_0x413c77('0x1891')]=![];!_0x41ec45[_0x413c77('0x1a38')]&&(_0x41ec45['item']={'type':'string'},_0x41ec45[_0x413c77('0x1a38')][_0x51538b()['capitalize'](_0x3f0510)+'Id']=_0x3c685c['id'],_0x41ec45[_0x413c77('0x110a')]=_0x413c77('0x1502')+_0x51538b()[_0x413c77('0x1818')](_0x3f0510),_0x41ec45[_0x413c77('0x1891')]=!![]);_0x41ec45[_0x413c77('0x13fd')]=_0x1af424,_0x41ec45['saveItem']=_0x36c971,_0x41ec45['deleteItem']=_0x43b093,_0x41ec45[_0x413c77('0x1b0f')]=_0x5e0183,_0x41ec45[_0x413c77('0x2023')]=_0xe82282,_0x1f8a10['variable'][_0x413c77('0x2122')]({'nolimit':!![]})[_0x413c77('0x1dc2')][_0x413c77('0xaa5')](function(_0x2ae453){var _0x28b1ef=_0x413c77;return _0x41ec45[_0x28b1ef('0x147e')]=_0x2ae453[_0x28b1ef('0x580')]?_0x2ae453[_0x28b1ef('0x580')]:[],_0x1f8a10['voiceAgentReport'][_0x28b1ef('0x3e7')]()['$promise'];})[_0x413c77('0xaa5')](function(_0x431683){var _0x57ac65=_0x413c77;return _0x41ec45['voiceAgentReportColumns']=_0x51538b()['difference'](_0x51538b()[_0x57ac65('0x9f2')](_0x431683),[_0x57ac65('0x1dc2'),_0x57ac65('0xd92'),_0x57ac65('0x24a1'),'updatedAt',_0x57ac65('0x129a')]),_0x41ec45[_0x57ac65('0x27a9')][_0x57ac65('0x1599')](_0x57ac65('0xef3')),_0x1f8a10[_0x57ac65('0x1f51')][_0x57ac65('0x3e7')]()['$promise'];})[_0x413c77('0xaa5')](function(_0x16fd3a){var _0x206861=_0x413c77;_0x41ec45[_0x206861('0xc69')]=_0x51538b()[_0x206861('0x1485')](_0x51538b()[_0x206861('0x9f2')](_0x16fd3a),[_0x206861('0x1dc2'),_0x206861('0xd92'),_0x206861('0x24a1'),_0x206861('0x19f3'),_0x206861('0x129a')]),_0x41ec45[_0x206861('0xc69')][_0x206861('0x1599')](_0x206861('0xef3'));})['catch'](function(_0x1852de){var _0x131406=_0x413c77;_0x584fcd[_0x131406('0x187f')]({'title':_0x1852de['status']?_0x131406('0x16c2')+_0x1852de[_0x131406('0x2fa')]+_0x131406('0x169e')+_0x1852de[_0x131406('0x24df')]:_0x131406('0x2652'),'msg':_0x1852de[_0x131406('0x10fd')]?JSON[_0x131406('0xa48')](_0x1852de[_0x131406('0x10fd')]):_0x1852de[_0x131406('0x684')]()});}),_0x1f8a10[_0x413c77('0x116e')][_0x413c77('0x1450')]({'id':_0x311081['id'],'ticketType':_0x3c685c[_0x413c77('0x1146')]?_0x3c685c[_0x413c77('0x1146')]:undefined})['$promise']['then'](function(_0x1031b9){var _0x3f5615=_0x413c77;_0x41ec45[_0x3f5615('0x722')]=!![],_0x41ec45[_0x3f5615('0x13a')]=_0x1031b9[_0x3f5615('0x580')]?_0x1031b9['rows']:[],_0x41ec45[_0x3f5615('0x1a38')][_0x3f5615('0x1dfc')]&&(_0x41ec45['customField']=_0x51538b()[_0x3f5615('0xe9e')](_0x41ec45[_0x3f5615('0x13a')],{'id':_0x41ec45[_0x3f5615('0x1a38')]['idField']}));})[_0x413c77('0x253d')](function(_0x6d27f2){_0x41ec45['accountConnected']=![],console['error'](_0x6d27f2);});function _0x1af424(){var _0x2434b9=_0x413c77;_0x41ec45[_0x2434b9('0x4c6')]=[],_0x41ec45[_0x2434b9('0x6fc')]&&(_0x41ec45[_0x2434b9('0x1a38')]['idField']=_0x41ec45[_0x2434b9('0x6fc')]['id'],_0x41ec45[_0x2434b9('0x1a38')][_0x2434b9('0x1662')]=_0x41ec45[_0x2434b9('0x6fc')][_0x2434b9('0x25d6')],_0x41ec45[_0x2434b9('0x1a38')][_0x2434b9('0x6fc')]=_0x41ec45[_0x2434b9('0x6fc')][_0x2434b9('0x113b')]),_0x1f8a10[_0x2434b9('0x1256')][_0x2434b9('0x242b')](_0x41ec45[_0x2434b9('0x1a38')])[_0x2434b9('0x1dc2')][_0x2434b9('0xaa5')](function(_0x13bfde){var _0x41c88c=_0x2434b9;_0x41ec45[_0x41c88c('0x1a30')][_0x41c88c('0x6ee')](_0x13bfde),_0x584fcd[_0x41c88c('0xe10')]({'title':_0x51538b()[_0x41c88c('0x1b56')](_0x3f0510)+_0x41c88c('0xbf5'),'msg':_0x51538b()[_0x41c88c('0x1b56')](_0x3f0510)+_0x41c88c('0xdca')}),_0xe82282();})[_0x2434b9('0x253d')](function(_0x75a130){var _0x44b264=_0x2434b9;console['error'](_0x75a130),_0x41ec45[_0x44b264('0x4c6')]=_0x75a130[_0x44b264('0x10fd')][_0x44b264('0x4c6')]||[{'message':_0x75a130[_0x44b264('0x684')](),'type':_0x44b264('0x23f')}];});}function _0x36c971(){var _0xe8c85a=_0x413c77;_0x41ec45[_0xe8c85a('0x4c6')]=[],_0x41ec45['customField']&&(_0x41ec45['item']['idField']=_0x41ec45['customField']['id'],_0x41ec45[_0xe8c85a('0x1a38')]['nameField']=_0x41ec45[_0xe8c85a('0x6fc')][_0xe8c85a('0x25d6')],_0x41ec45[_0xe8c85a('0x1a38')][_0xe8c85a('0x6fc')]=_0x41ec45[_0xe8c85a('0x6fc')]['custom']),_0x1f8a10[_0xe8c85a('0x1256')][_0xe8c85a('0x264e')]({'id':_0x41ec45[_0xe8c85a('0x1a38')]['id']},_0x41ec45[_0xe8c85a('0x1a38')])['$promise'][_0xe8c85a('0xaa5')](function(_0x42cb58){var _0x17e1ca=_0xe8c85a,_0x1e0de3=_0x51538b()['find'](_0x41ec45[_0x17e1ca('0x1a30')],{'id':_0x42cb58['id']});_0x1e0de3&&_0x51538b()[_0x17e1ca('0x283c')](_0x1e0de3,_0x42cb58),_0x584fcd[_0x17e1ca('0xe10')]({'title':_0x51538b()[_0x17e1ca('0x1b56')](_0x3f0510)+_0x17e1ca('0x1c44'),'msg':_0x51538b()[_0x17e1ca('0x1b56')](_0x3f0510)+'\x20has\x20been\x20saved!'}),_0xe82282();})['catch'](function(_0xa5407c){var _0x4135df=_0xe8c85a;console[_0x4135df('0x187f')](_0xa5407c),_0x41ec45['errors']=_0xa5407c[_0x4135df('0x10fd')][_0x4135df('0x4c6')]||[{'message':_0xa5407c['toString'](),'type':_0x4135df('0x2460')}];});}function _0x43b093(_0xac583e){var _0x218651=_0x413c77;_0x41ec45[_0x218651('0x4c6')]=[];var _0x5da1e7=_0x59c47a[_0x218651('0x281e')]()[_0x218651('0x110a')](_0x218651('0x12a3'))[_0x218651('0x15af')](_0x218651('0x318')+_0x3f0510+'\x20will\x20be\x20deleted.')[_0x218651('0x5b5')](_0x218651('0xf00')+_0x51538b()[_0x218651('0x1b56')](_0x3f0510))['ok'](_0x218651('0x1e76'))['cancel'](_0x218651('0x9c6'))[_0x218651('0x116d')](_0xac583e);_0x59c47a['show'](_0x5da1e7)['then'](function(){var _0x403107=_0x218651;_0x1f8a10[_0x403107('0x1256')][_0x403107('0x926')]({'id':_0x41ec45['item']['id']})['$promise'][_0x403107('0xaa5')](function(){var _0x10e7c1=_0x403107;_0x51538b()[_0x10e7c1('0xf6d')](_0x41ec45[_0x10e7c1('0x1a30')],{'id':_0x41ec45[_0x10e7c1('0x1a38')]['id']}),_0x584fcd['success']({'title':_0x51538b()[_0x10e7c1('0x1b56')](_0x3f0510)+'\x20properly\x20deleted!','msg':_0x51538b()['capitalize'](_0x3f0510)+'\x20has\x20been\x20deleted!'}),_0xe82282();})[_0x403107('0x253d')](function(_0x4c418b){var _0x895ba9=_0x403107;console[_0x895ba9('0x187f')](_0x4c418b),_0x41ec45[_0x895ba9('0x4c6')]=_0x4c418b[_0x895ba9('0x10fd')][_0x895ba9('0x4c6')]||[{'message':_0x4c418b[_0x895ba9('0x684')](),'type':'api.item.delete'}];});},function(){});}function _0x5e0183(){var _0x45777a=_0x413c77;return _0x41ec45[_0x45777a('0x1a38')][_0x45777a('0x1e29')]!==undefined?_0x41ec45['item'][_0x45777a('0x1e29')]:'Please\x20select\x20a\x20variable';}function _0xe82282(){_0x59c47a['hide']();}}const _0x4d0ecc=_0x55810d;_0x30b02b[_0x1a8446('0x1e33')]=['$state','$location','$mdDialog','$document','$translate',_0x1a8446('0x1202'),'setting',_0x1a8446('0x157'),'toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x661'),_0x1a8446('0x1a50')];function _0x30b02b(_0x2e76ab,_0x3f87d1,_0x57cd80,_0x2637a1,_0x5848ed,_0x339cda,_0xbe8c2e,_0x3e651b,_0x292c54,_0x40c122,_0x4f202d,_0x29cc47){var _0x5e3c57=_0x1a8446,_0x1b8633=this;_0x1b8633[_0x5e3c57('0x7fc')]=_0x40c122['getCurrentUser'](),_0x1b8633[_0x5e3c57('0x1202')]=_0x339cda,_0x1b8633[_0x5e3c57('0x143f')]=_0xbe8c2e,_0x1b8633['passwordPattern']=_0x1b8633[_0x5e3c57('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1b8633[_0x5e3c57('0x18cc')]=_0x3f87d1[_0x5e3c57('0x1cc2')]()+_0x5e3c57('0x356')+_0x3f87d1[_0x5e3c57('0x160c')](),_0x1b8633[_0x5e3c57('0x661')]=_0x4f202d||_0x2e76ab[_0x5e3c57('0x25cf')][_0x5e3c57('0x661')]||{},_0x1b8633[_0x5e3c57('0x1a50')]=_0x29cc47&&_0x29cc47[_0x5e3c57('0xd15')]==0x1?_0x29cc47[_0x5e3c57('0x580')][0x0]:null,_0x1b8633[_0x5e3c57('0xada')]=_0x40c122[_0x5e3c57('0xffd')](_0x1b8633[_0x5e3c57('0x1a50')]?_0x1b8633[_0x5e3c57('0x1a50')][_0x5e3c57('0xada')]:null),_0x1b8633[_0x5e3c57('0x9f0')]={},_0x1b8633['selectedTab']=_0x2e76ab['params'][_0x5e3c57('0x25c2')]||0x0,_0x1b8633[_0x5e3c57('0xc10')]=_0x292c54[_0x5e3c57('0x3a1')],_0x1b8633['gotoVtigerAccounts']=_0x5d8a19,_0x1b8633['saveVtigerAccount']=_0x339f5c;function _0x5d8a19(){var _0x2f0321=_0x5e3c57;_0x2e76ab['go'](_0x2f0321('0x2424'),{},{'reload':_0x2f0321('0x2424')});}function _0x339f5c(){var _0x2e742=_0x5e3c57;_0x3e651b[_0x2e742('0x116e')][_0x2e742('0x264e')]({'id':_0x1b8633['vtigerAccount']['id']},_0x1b8633[_0x2e742('0x661')])[_0x2e742('0x1dc2')][_0x2e742('0xaa5')](function(){var _0x1f4486=_0x2e742;_0x292c54['success']({'title':_0x1f4486('0x19ee'),'msg':_0x1b8633[_0x1f4486('0x661')][_0x1f4486('0x25d6')]?_0x1b8633[_0x1f4486('0x661')][_0x1f4486('0x25d6')]+_0x1f4486('0x1734'):''});})['catch'](function(_0x3a2d16){var _0x4f7e9c=_0x2e742;_0x292c54[_0x4f7e9c('0x187f')]({'title':_0x3a2d16[_0x4f7e9c('0x2fa')]?_0x4f7e9c('0x16c2')+_0x3a2d16[_0x4f7e9c('0x2fa')]+_0x4f7e9c('0x169e')+_0x3a2d16[_0x4f7e9c('0x24df')]:_0x4f7e9c('0x8c7'),'msg':_0x3a2d16[_0x4f7e9c('0x10fd')]?JSON['stringify'](_0x3a2d16['data']):_0x3a2d16[_0x4f7e9c('0x684')]()});});}}const _0x1f8a0c=_0x30b02b,_0x52aa5c=_0x4fb511['p']+_0x1a8446('0x2192');_0xdfe677[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),'$mdSidenav',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x6bb'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),'toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0xdfe677(_0x48709f,_0x5a30ff,_0x589f53,_0x2e13f4,_0x436e63,_0x51d101,_0x59901c,_0x342e8f,_0x5ea9ba,_0x492f9d,_0x669806,_0x11974e,_0x1f0770,_0x3c7907,_0x526f9e,_0x3fb3e0,_0x1fba1e){var _0x42e429=_0x1a8446,_0x42ca74=this;_0x42ca74['license']=_0x3fb3e0,_0x42ca74[_0x42e429('0x143f')]=_0x1fba1e,_0x42ca74[_0x42e429('0x7fc')]=_0x526f9e[_0x42e429('0xacc')](),_0x42ca74['vtigerAccounts']=_0x5ea9ba||{'count':0x0,'rows':[]},_0x42ca74[_0x42e429('0x1e97')]=_0x492f9d,_0x42ca74[_0x42e429('0x1a50')]=_0x669806&&_0x669806[_0x42e429('0xd15')]==0x1?_0x669806[_0x42e429('0x580')][0x0]:null,_0x42ca74[_0x42e429('0xada')]=_0x526f9e[_0x42e429('0xffd')](_0x42ca74[_0x42e429('0x1a50')]?_0x42ca74[_0x42e429('0x1a50')][_0x42e429('0xada')]:null),_0x42ca74[_0x42e429('0x12b6')]=_0x42e429('0x6bb'),_0x42ca74['listOrder']='',_0x42ca74[_0x42e429('0x8cc')]=null,_0x42ca74[_0x42e429('0x91c')]=[],_0x42ca74['query']={'fields':_0x42e429('0x1f'),'limit':0xa,'page':0x1},_0x42ca74[_0x42e429('0x1927')]=_0x307e6a,_0x42ca74[_0x42e429('0xa49')]=_0x12c0bb,_0x42ca74[_0x42e429('0x271')]=_0x1f0df1,_0x42ca74['success']=_0x2a7016,_0x42ca74[_0x42e429('0xa0c')]=_0x246e94,_0x42ca74['createOrEditVtigerAccount']=_0x518caf,_0x42ca74['deleteVtigerAccount']=_0x5529f5,_0x42ca74['exportSelectedVtigerAccounts']=_0x6547e5,_0x42ca74[_0x42e429('0x1478')]=_0x5d01e3,_0x42ca74['deselectVtigerAccounts']=_0x16aec3,_0x42ca74[_0x42e429('0x16c5')]=_0x3a6ae6;function _0x307e6a(_0x12ab88){var _0x47e8c1=_0x42e429;_0x589f53['go']('app.integrations.vtigerAccounts.edit',{'id':_0x12ab88['id'],'vtigerAccount':_0x12ab88,'crudPermissions':_0x42ca74[_0x47e8c1('0xada')]});}function _0x12c0bb(_0x5767ff){var _0xdc948b=_0x42e429;return _0x11974e[_0xdc948b('0x116e')][_0xdc948b('0x1450')]({'id':_0x5767ff['id'],'test':!![]})['$promise'][_0xdc948b('0xaa5')](function(){var _0x46f0e9=_0xdc948b;_0x3c7907[_0x46f0e9('0xe10')]({'title':_0x46f0e9('0x14db'),'msg':_0x46f0e9('0x2633')});})['catch'](function(_0x12f868){var _0x29b04f=_0xdc948b;_0x3c7907[_0x29b04f('0x187f')]({'title':'VtigerAccount\x20properly\x20tested','msg':_0x12f868['data']?_0x12f868['data'][_0x29b04f('0x1402')]?_0x12f868[_0x29b04f('0x10fd')][_0x29b04f('0x1402')]:JSON[_0x29b04f('0xa48')](_0x12f868[_0x29b04f('0x10fd')]):_0x12f868[_0x29b04f('0x684')]()});});}function _0x1f0df1(_0x1209fd,_0x3251d7){var _0x250f8c=_0x42e429,_0x4a3847=_0x436e63['confirm']()['title'](_0x250f8c('0x88d')+_0x51538b()[_0x250f8c('0x196a')]('vtigerAccount')+'?')[_0x250f8c('0x102e')](_0x250f8c('0x389')+(_0x1209fd['name']||_0x250f8c('0x661'))+''+_0x250f8c('0x210d'))[_0x250f8c('0x5b5')]('delete\x20vtigerAccount')[_0x250f8c('0x116d')](_0x3251d7)['ok']('OK')[_0x250f8c('0x2030')](_0x250f8c('0x2410'));_0x436e63[_0x250f8c('0x1e6d')](_0x4a3847)[_0x250f8c('0xaa5')](function(){_0x5529f5(_0x1209fd);},function(){console['log']('CANCEL');});}var _0x283c04=!![],_0x4f60c9=0x1;_0x48709f[_0x42e429('0x1ccf')](_0x42e429('0x1788'),function(_0x2cdf92,_0x2276c6){var _0xf86cff=_0x42e429;_0x283c04?_0x59901c(function(){_0x283c04=![];}):(!_0x2276c6&&(_0x4f60c9=_0x42ca74[_0xf86cff('0x582')][_0xf86cff('0x41')]),_0x2cdf92!==_0x2276c6&&(_0x42ca74[_0xf86cff('0x582')][_0xf86cff('0x41')]=0x1),!_0x2cdf92&&(_0x42ca74[_0xf86cff('0x582')][_0xf86cff('0x41')]=_0x4f60c9),_0x42ca74[_0xf86cff('0xa0c')]());});function _0x2a7016(_0x20e7d7){_0x42ca74['vtigerAccounts']=_0x20e7d7||{'count':0x0,'rows':[]};}function _0x246e94(){var _0x41a019=_0x42e429;_0x42ca74[_0x41a019('0x582')]['offset']=(_0x42ca74['query'][_0x41a019('0x41')]-0x1)*_0x42ca74[_0x41a019('0x582')][_0x41a019('0xf4d')],_0x526f9e[_0x41a019('0x26e8')](_0x41a019('0x178b'))?_0x42ca74[_0x41a019('0x159a')]=_0x11974e[_0x41a019('0x116e')][_0x41a019('0x2122')](_0x42ca74['query'],_0x2a7016)['$promise']:(_0x42ca74[_0x41a019('0x582')]['id']=_0x42ca74[_0x41a019('0x1e97')]['id'],_0x42ca74[_0x41a019('0x582')]['section']=_0x41a019('0x1894'),_0x42ca74[_0x41a019('0x159a')]=_0x11974e['userProfile'][_0x41a019('0x1cf1')](_0x42ca74['query'],_0x2a7016)[_0x41a019('0x1dc2')]);}function _0x518caf(_0xb508fb,_0x4eeea7){var _0x4b0f81=_0x42e429;_0x436e63[_0x4b0f81('0x1e6d')]({'controller':'CreateOrEditVtigerAccountDialogController','controllerAs':'vm','templateUrl':_0x52aa5c,'parent':angular[_0x4b0f81('0x1aa8')](_0x51d101[_0x4b0f81('0x54c')]),'targetEvent':_0xb508fb,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x4eeea7,'vtigerAccounts':_0x42ca74[_0x4b0f81('0x6bb')][_0x4b0f81('0x580')],'license':_0x42ca74[_0x4b0f81('0x1202')],'setting':_0x42ca74[_0x4b0f81('0x143f')],'crudPermissions':_0x42ca74['crudPermissions']}});}function _0x5529f5(_0x596e9e){var _0x29578d=_0x42e429;_0x11974e['intVtigerAccount'][_0x29578d('0x926')]({'id':_0x596e9e['id']})[_0x29578d('0x1dc2')]['then'](function(){var _0x31906c=_0x29578d;_0x51538b()[_0x31906c('0xf6d')](_0x42ca74[_0x31906c('0x6bb')][_0x31906c('0x580')],{'id':_0x596e9e['id']}),_0x42ca74[_0x31906c('0x6bb')][_0x31906c('0xd15')]-=0x1,!_0x42ca74[_0x31906c('0x6bb')][_0x31906c('0x580')][_0x31906c('0x2587')]&&_0x42ca74[_0x31906c('0xa0c')](),_0x3c7907[_0x31906c('0xe10')]({'title':_0x51538b()[_0x31906c('0x196a')](_0x31906c('0x16f8'))+_0x31906c('0x8bb'),'msg':_0x596e9e[_0x31906c('0x25d6')]?_0x596e9e['name']+_0x31906c('0xcd9'):''});})[_0x29578d('0x253d')](function(_0x33d06e){var _0x41aa82=_0x29578d;if(_0x33d06e['data']&&_0x33d06e[_0x41aa82('0x10fd')][_0x41aa82('0x4c6')]&&_0x33d06e[_0x41aa82('0x10fd')][_0x41aa82('0x4c6')][_0x41aa82('0x2587')]){_0x42ca74[_0x41aa82('0x4c6')]=_0x33d06e[_0x41aa82('0x10fd')][_0x41aa82('0x4c6')]||[{'message':_0x33d06e[_0x41aa82('0x684')](),'type':'SYSTEM:DELETEintVtigerAccount'}];for(var _0x3b8aed=0x0;_0x3b8aed<_0x33d06e['data'][_0x41aa82('0x4c6')]['length'];_0x3b8aed++){_0x3c7907[_0x41aa82('0x187f')]({'title':_0x33d06e[_0x41aa82('0x10fd')][_0x41aa82('0x4c6')][_0x3b8aed][_0x41aa82('0x6c8')],'msg':_0x33d06e[_0x41aa82('0x10fd')][_0x41aa82('0x4c6')][_0x3b8aed]['message']});}}else _0x3c7907[_0x41aa82('0x187f')]({'title':_0x33d06e[_0x41aa82('0x2fa')]?'API:'+_0x33d06e['status']+_0x41aa82('0x169e')+_0x33d06e['statusText']:_0x41aa82('0xe83'),'msg':_0x33d06e['data']?JSON[_0x41aa82('0xa48')](_0x33d06e[_0x41aa82('0x10fd')][_0x41aa82('0x1402')]):_0x33d06e[_0x41aa82('0x1402')]||_0x33d06e['toString']()});});}function _0x6547e5(){var _0x1f7cb7=_0x42e429,_0x5a205c=angular[_0x1f7cb7('0x20a')](_0x42ca74[_0x1f7cb7('0x91c')]);return _0x42ca74['selectedVtigerAccounts']=[],_0x5a205c;}function _0x5d01e3(_0x1ac0bb){var _0xe50cee=_0x42e429,_0x5b2524=_0x436e63[_0xe50cee('0x281e')]()['title'](_0xe50cee('0xb91'))[_0xe50cee('0x102e')](_0xe50cee('0x389')+_0x42ca74['selectedVtigerAccounts'][_0xe50cee('0x2587')]+_0xe50cee('0x1443')+'\x20will\x20be\x20deleted.')[_0xe50cee('0x5b5')](_0xe50cee('0x1ec6'))[_0xe50cee('0x116d')](_0x1ac0bb)['ok']('OK')[_0xe50cee('0x2030')](_0xe50cee('0x2410'));_0x436e63[_0xe50cee('0x1e6d')](_0x5b2524)[_0xe50cee('0xaa5')](function(){var _0x5f32e0=_0xe50cee;_0x42ca74[_0x5f32e0('0x91c')][_0x5f32e0('0x15b5')](function(_0x1248ff){_0x5529f5(_0x1248ff);}),_0x42ca74['selectedVtigerAccounts']=[];});}function _0x16aec3(){var _0x41b338=_0x42e429;_0x42ca74[_0x41b338('0x91c')]=[];}function _0x3a6ae6(){var _0x28f2d1=_0x42e429;_0x42ca74[_0x28f2d1('0x91c')]=_0x42ca74[_0x28f2d1('0x6bb')][_0x28f2d1('0x580')];}}const _0x93aa96=_0xdfe677;_0x45ae91[_0x1a8446('0x1e33')]=['$scope','$state',_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x31e'),'zendeskAccount','api','Auth',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x45ae91(_0x1b86da,_0x17b5b0,_0x1d319f,_0x56e5aa,_0x56e189,_0x1f75f7,_0x43fe83,_0x5566e8,_0x14059d,_0x256190,_0x45d352,_0x33196e,_0x93b7e3,_0x5088be){var _0x12a9f1=_0x1a8446,_0xc88f=this;_0xc88f['currentUser']=_0x45d352[_0x12a9f1('0xacc')](),_0xc88f[_0x12a9f1('0x4c6')]=[],_0xc88f[_0x12a9f1('0x143f')]=_0x93b7e3,_0xc88f['license']=_0x33196e,_0xc88f[_0x12a9f1('0xada')]=_0x5088be,_0xc88f[_0x12a9f1('0x9f0')]={},_0xc88f[_0x12a9f1('0x1d53')]=_0xc88f['setting']&&_0xc88f[_0x12a9f1('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xc88f[_0x12a9f1('0x110a')]='INTEGRATIONS.EDIT_ZENDESKACCOUNT',_0xc88f[_0x12a9f1('0x1acd')]=angular[_0x12a9f1('0x20a')](_0x14059d),_0xc88f['zendeskAccounts']=_0x5566e8,_0xc88f[_0x12a9f1('0x1e02')]=![];!_0xc88f[_0x12a9f1('0x1acd')]&&(_0xc88f[_0x12a9f1('0x1acd')]={'type':_0x12a9f1('0x165e'),'authType':'password','serverUrl':_0x1d319f[_0x12a9f1('0x1cc2')]()+_0x12a9f1('0x356')+_0x1d319f[_0x12a9f1('0x160c')]()+(_0x1d319f['port']()?':'+_0x1d319f['port']():'')},_0xc88f['title']=_0x12a9f1('0xbd2'),_0xc88f['newZendeskAccount']=!![]);_0xc88f[_0x12a9f1('0x6cd')]=_0x45e439,_0xc88f[_0x12a9f1('0x1233')]=_0xb8f0cf,_0xc88f['deleteZendeskAccount']=_0x2fea7b,_0xc88f[_0x12a9f1('0xc09')]=_0x311af1,_0xc88f[_0x12a9f1('0x2023')]=_0x2e6e1a;function _0x45e439(){var _0x510ffe=_0x12a9f1;_0xc88f[_0x510ffe('0x4c6')]=[],_0x256190['intZendeskAccount']['save'](_0xc88f['zendeskAccount'])[_0x510ffe('0x1dc2')]['then'](function(_0x22ba84){var _0x85eb6=_0x510ffe;_0xc88f[_0x85eb6('0x31e')][_0x85eb6('0x6ee')](_0x22ba84[_0x85eb6('0x256a')]()),_0x43fe83['success']({'title':_0x85eb6('0x18c8'),'msg':_0xc88f[_0x85eb6('0x1acd')][_0x85eb6('0x25d6')]?_0xc88f[_0x85eb6('0x1acd')]['name']+_0x85eb6('0xdca'):''}),_0x2e6e1a(_0x22ba84);})[_0x510ffe('0x253d')](function(_0x4c4e35){var _0x2ac2d8=_0x510ffe;if(_0x4c4e35[_0x2ac2d8('0x10fd')]&&_0x4c4e35['data'][_0x2ac2d8('0x4c6')]&&_0x4c4e35[_0x2ac2d8('0x10fd')]['errors'][_0x2ac2d8('0x2587')]){_0xc88f['errors']=_0x4c4e35[_0x2ac2d8('0x10fd')][_0x2ac2d8('0x4c6')]||[{'message':_0x4c4e35['toString'](),'type':_0x2ac2d8('0x2cd')}];for(var _0x34acfe=0x0;_0x34acfe<_0x4c4e35['data'][_0x2ac2d8('0x4c6')]['length'];_0x34acfe+=0x1){_0x43fe83[_0x2ac2d8('0x187f')]({'title':_0x4c4e35['data'][_0x2ac2d8('0x4c6')][_0x34acfe]['type'],'msg':_0x4c4e35['data'][_0x2ac2d8('0x4c6')][_0x34acfe][_0x2ac2d8('0x1402')]});}}else _0x43fe83[_0x2ac2d8('0x187f')]({'title':_0x4c4e35[_0x2ac2d8('0x2fa')]?_0x2ac2d8('0x16c2')+_0x4c4e35[_0x2ac2d8('0x2fa')]+'\x20-\x20'+_0x4c4e35['statusText']:'api.intZendeskAccount.save','msg':_0x4c4e35['data']?JSON['stringify'](_0x4c4e35[_0x2ac2d8('0x10fd')]['message']):_0x4c4e35[_0x2ac2d8('0x684')]()});});}function _0xb8f0cf(){var _0xb996d3=_0x12a9f1;_0xc88f['errors']=[],_0x256190[_0xb996d3('0xac8')][_0xb996d3('0x264e')]({'id':_0xc88f[_0xb996d3('0x1acd')]['id']},_0xc88f['zendeskAccount'])[_0xb996d3('0x1dc2')][_0xb996d3('0xaa5')](function(_0x2e97d7){var _0x3aa4f0=_0xb996d3,_0x336de0=_0x51538b()[_0x3aa4f0('0xe9e')](_0xc88f[_0x3aa4f0('0x31e')],{'id':_0x2e97d7['id']});_0x336de0&&_0x51538b()[_0x3aa4f0('0x283c')](_0x336de0,_0x51538b()[_0x3aa4f0('0x104e')](_0x2e97d7[_0x3aa4f0('0x256a')](),_0x51538b()['keys'](_0x336de0))),_0x43fe83[_0x3aa4f0('0xe10')]({'title':_0x3aa4f0('0x2073'),'msg':_0xc88f[_0x3aa4f0('0x1acd')]['name']?_0xc88f[_0x3aa4f0('0x1acd')][_0x3aa4f0('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x2e6e1a(_0x2e97d7);})[_0xb996d3('0x253d')](function(_0x120fde){var _0x3f9166=_0xb996d3;if(_0x120fde['data']&&_0x120fde['data']['errors']&&_0x120fde['data'][_0x3f9166('0x4c6')][_0x3f9166('0x2587')]){_0xc88f[_0x3f9166('0x4c6')]=_0x120fde[_0x3f9166('0x10fd')]['errors']||[{'message':_0x120fde[_0x3f9166('0x684')](),'type':_0x3f9166('0x52b')}];for(var _0x515dab=0x0;_0x515dab<_0x120fde[_0x3f9166('0x10fd')][_0x3f9166('0x4c6')][_0x3f9166('0x2587')];_0x515dab++){_0x43fe83['error']({'title':_0x120fde[_0x3f9166('0x10fd')][_0x3f9166('0x4c6')][_0x515dab][_0x3f9166('0x6c8')],'msg':_0x120fde[_0x3f9166('0x10fd')][_0x3f9166('0x4c6')][_0x515dab][_0x3f9166('0x1402')]});}}else _0x43fe83[_0x3f9166('0x187f')]({'title':_0x120fde['status']?_0x3f9166('0x16c2')+_0x120fde[_0x3f9166('0x2fa')]+_0x3f9166('0x169e')+_0x120fde['statusText']:_0x3f9166('0x52b'),'msg':_0x120fde[_0x3f9166('0x10fd')]?JSON['stringify'](_0x120fde[_0x3f9166('0x10fd')][_0x3f9166('0x1402')]):_0x120fde[_0x3f9166('0x684')]()});});}function _0x2fea7b(_0x7457e2){var _0x660bac=_0x12a9f1;_0xc88f[_0x660bac('0x4c6')]=[];var _0x5b0a39=_0x56e5aa[_0x660bac('0x281e')]()['title'](_0x660bac('0x12a3'))[_0x660bac('0x15af')]('The\x20zendeskAccount\x20will\x20be\x20deleted.')[_0x660bac('0x5b5')]('Delete\x20ZendeskAccount')['ok'](_0x660bac('0x1e76'))[_0x660bac('0x2030')](_0x660bac('0x9c6'))[_0x660bac('0x116d')](_0x7457e2);_0x56e5aa[_0x660bac('0x1e6d')](_0x5b0a39)[_0x660bac('0xaa5')](function(){var _0x48b193=_0x660bac;_0x256190[_0x48b193('0xac8')][_0x48b193('0x926')]({'id':_0xc88f[_0x48b193('0x1acd')]['id']})['$promise'][_0x48b193('0xaa5')](function(){var _0x35ff1d=_0x48b193;_0x51538b()['remove'](_0xc88f[_0x35ff1d('0x31e')],{'id':_0xc88f[_0x35ff1d('0x1acd')]['id']}),_0x43fe83[_0x35ff1d('0xe10')]({'title':_0x35ff1d('0x2d0'),'msg':(_0xc88f[_0x35ff1d('0x1acd')][_0x35ff1d('0x25d6')]||'zendeskAccount')+_0x35ff1d('0xcd9')}),_0x2e6e1a(_0xc88f[_0x35ff1d('0x1acd')]);})[_0x48b193('0x253d')](function(_0x163fcf){var _0x5e2e31=_0x48b193;if(_0x163fcf[_0x5e2e31('0x10fd')]&&_0x163fcf[_0x5e2e31('0x10fd')][_0x5e2e31('0x4c6')]&&_0x163fcf[_0x5e2e31('0x10fd')][_0x5e2e31('0x4c6')][_0x5e2e31('0x2587')]){_0xc88f[_0x5e2e31('0x4c6')]=_0x163fcf[_0x5e2e31('0x10fd')][_0x5e2e31('0x4c6')]||[{'message':_0x163fcf[_0x5e2e31('0x684')](),'type':_0x5e2e31('0x917')}];for(var _0x1ed36e=0x0;_0x1ed36e<_0x163fcf[_0x5e2e31('0x10fd')][_0x5e2e31('0x4c6')][_0x5e2e31('0x2587')];_0x1ed36e++){_0x43fe83['error']({'title':_0x163fcf[_0x5e2e31('0x10fd')][_0x5e2e31('0x4c6')][_0x1ed36e][_0x5e2e31('0x6c8')],'msg':_0x163fcf[_0x5e2e31('0x10fd')][_0x5e2e31('0x4c6')][_0x1ed36e][_0x5e2e31('0x1402')]});}}else _0x43fe83[_0x5e2e31('0x187f')]({'title':_0x163fcf[_0x5e2e31('0x2fa')]?_0x5e2e31('0x16c2')+_0x163fcf[_0x5e2e31('0x2fa')]+_0x5e2e31('0x169e')+_0x163fcf[_0x5e2e31('0x24df')]:_0x5e2e31('0x917'),'msg':_0x163fcf['data']?JSON['stringify'](_0x163fcf['data']['message']):_0x163fcf['message']||_0x163fcf['toString']()});});},function(){});}function _0x311af1(_0x36c9f6){return _0x36c9f6===null?undefined:new Date(_0x36c9f6);}function _0x2e6e1a(_0x48d2d1){_0x56e5aa['hide'](_0x48d2d1);}}const _0x277f2d=_0x45ae91;_0x36d2b8['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x72'),'items',_0x1a8446('0x1a38'),_0x1a8446('0x5b'),_0x1a8446('0x6c8'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x36d2b8(_0x40873b,_0x491708,_0x2d8c74,_0x2016bc,_0x2475a3,_0x21afe0,_0x19e6b8,_0x34c5a2,_0x1c53df,_0x6564f7,_0x2a26c9,_0x160d3b,_0xa69e47){var _0x24424c=_0x1a8446,_0x409c7d=this;_0x409c7d[_0x24424c('0x7fc')]=_0x160d3b[_0x24424c('0xacc')](),_0x409c7d['errors']=[],_0x409c7d[_0x24424c('0x110a')]=_0x24424c('0x66b')+_0x51538b()[_0x24424c('0x1818')](_0x6564f7),_0x409c7d['item']=angular[_0x24424c('0x20a')](_0x34c5a2),_0x409c7d[_0x24424c('0x1a30')]=_0x19e6b8,_0x409c7d[_0x24424c('0x6c8')]=_0x6564f7,_0x409c7d[_0x24424c('0xada')]=_0xa69e47,_0x409c7d[_0x24424c('0x1891')]=![];!_0x409c7d[_0x24424c('0x1a38')]&&(_0x409c7d['item']={'type':_0x24424c('0x199')},_0x409c7d[_0x24424c('0x1a38')][_0x51538b()['capitalize'](_0x6564f7)+'Id']=_0x21afe0['id'],_0x409c7d[_0x24424c('0x110a')]=_0x24424c('0x1502')+_0x51538b()['toUpper'](_0x6564f7),_0x409c7d[_0x24424c('0x1891')]=!![]);_0x409c7d[_0x24424c('0x13fd')]=_0x1353e3,_0x409c7d[_0x24424c('0x24c7')]=_0x2a2047,_0x409c7d[_0x24424c('0x1994')]=_0x2e4b9b,_0x409c7d[_0x24424c('0x1b0f')]=_0x5f398d,_0x409c7d[_0x24424c('0x2023')]=_0x57a2d7,_0x2a26c9[_0x24424c('0x14e7')]['get']({'nolimit':!![]})[_0x24424c('0x1dc2')][_0x24424c('0xaa5')](function(_0x31ab55){var _0x5be964=_0x24424c;return _0x409c7d['variables']=_0x31ab55['rows']?_0x31ab55[_0x5be964('0x580')]:[],_0x2a26c9[_0x5be964('0x188e')][_0x5be964('0x3e7')]()['$promise'];})[_0x24424c('0xaa5')](function(_0x53eec6){var _0x55aa54=_0x24424c;return _0x409c7d[_0x55aa54('0x27a9')]=_0x51538b()[_0x55aa54('0x1485')](_0x51538b()[_0x55aa54('0x9f2')](_0x53eec6),[_0x55aa54('0x1dc2'),_0x55aa54('0xd92'),_0x55aa54('0x24a1'),_0x55aa54('0x19f3'),_0x55aa54('0x129a')]),_0x409c7d[_0x55aa54('0x27a9')][_0x55aa54('0x1599')](_0x55aa54('0xef3')),_0x2a26c9[_0x55aa54('0x1f51')]['describe']()['$promise'];})[_0x24424c('0xaa5')](function(_0x183453){var _0x6bd9cb=_0x24424c;_0x409c7d[_0x6bd9cb('0xc69')]=_0x51538b()['difference'](_0x51538b()[_0x6bd9cb('0x9f2')](_0x183453),[_0x6bd9cb('0x1dc2'),_0x6bd9cb('0xd92'),'createdAt',_0x6bd9cb('0x19f3'),_0x6bd9cb('0x129a')]),_0x409c7d['voiceDialReportColumns'][_0x6bd9cb('0x1599')](_0x6bd9cb('0xef3'));})[_0x24424c('0x253d')](function(_0x3f9e0a){var _0x46d52a=_0x24424c;_0x2475a3[_0x46d52a('0x187f')]({'title':_0x3f9e0a[_0x46d52a('0x2fa')]?_0x46d52a('0x16c2')+_0x3f9e0a[_0x46d52a('0x2fa')]+_0x46d52a('0x169e')+_0x3f9e0a[_0x46d52a('0x24df')]:'SYSTEM:GETVARIABLES','msg':_0x3f9e0a[_0x46d52a('0x10fd')]?JSON[_0x46d52a('0xa48')](_0x3f9e0a[_0x46d52a('0x10fd')]):_0x3f9e0a[_0x46d52a('0x684')]()});}),_0x2a26c9[_0x24424c('0xac8')][_0x24424c('0x1450')]({'id':_0x1c53df['id'],'ticketType':_0x21afe0[_0x24424c('0x1146')]?_0x21afe0[_0x24424c('0x1146')]:undefined})['$promise'][_0x24424c('0xaa5')](function(_0x24d8df){var _0x568d5f=_0x24424c;_0x409c7d[_0x568d5f('0x722')]=!![],_0x409c7d[_0x568d5f('0x13a')]=_0x24d8df['rows']?_0x24d8df[_0x568d5f('0x580')]:[],_0x409c7d[_0x568d5f('0x1a38')][_0x568d5f('0x1dfc')]&&(_0x409c7d[_0x568d5f('0x6fc')]=_0x51538b()[_0x568d5f('0xe9e')](_0x409c7d[_0x568d5f('0x13a')],{'id':_0x409c7d[_0x568d5f('0x1a38')][_0x568d5f('0x1dfc')]}));})[_0x24424c('0x253d')](function(_0x7a5302){var _0x1c6bca=_0x24424c;_0x409c7d[_0x1c6bca('0x722')]=![],console[_0x1c6bca('0x187f')](_0x7a5302);});function _0x1353e3(){var _0x575a0b=_0x24424c;_0x409c7d[_0x575a0b('0x4c6')]=[],_0x409c7d[_0x575a0b('0x6fc')]&&(_0x409c7d[_0x575a0b('0x1a38')][_0x575a0b('0x1dfc')]=_0x409c7d[_0x575a0b('0x6fc')]['id'],_0x409c7d['item'][_0x575a0b('0x1662')]=_0x409c7d[_0x575a0b('0x6fc')][_0x575a0b('0x25d6')],_0x409c7d[_0x575a0b('0x1a38')]['customField']=_0x409c7d[_0x575a0b('0x6fc')][_0x575a0b('0x113b')]),_0x2a26c9['intZendeskField'][_0x575a0b('0x242b')](_0x409c7d[_0x575a0b('0x1a38')])[_0x575a0b('0x1dc2')][_0x575a0b('0xaa5')](function(_0x427075){var _0x88aa23=_0x575a0b;_0x409c7d[_0x88aa23('0x1a30')]['unshift'](_0x427075),_0x2475a3[_0x88aa23('0xe10')]({'title':_0x51538b()['capitalize'](_0x6564f7)+'\x20properly\x20created','msg':_0x51538b()[_0x88aa23('0x1b56')](_0x6564f7)+_0x88aa23('0xdca')}),_0x57a2d7();})['catch'](function(_0x4ebb40){var _0x32dde7=_0x575a0b;console[_0x32dde7('0x187f')](_0x4ebb40),_0x409c7d['errors']=_0x4ebb40['data']['errors']||[{'message':_0x4ebb40[_0x32dde7('0x684')](),'type':_0x32dde7('0x23f')}];});}function _0x2a2047(){var _0x4c599e=_0x24424c;_0x409c7d[_0x4c599e('0x4c6')]=[],_0x409c7d[_0x4c599e('0x6fc')]&&(_0x409c7d['item']['idField']=_0x409c7d[_0x4c599e('0x6fc')]['id'],_0x409c7d[_0x4c599e('0x1a38')]['nameField']=_0x409c7d['customField'][_0x4c599e('0x25d6')],_0x409c7d[_0x4c599e('0x1a38')][_0x4c599e('0x6fc')]=_0x409c7d[_0x4c599e('0x6fc')][_0x4c599e('0x113b')]),_0x2a26c9[_0x4c599e('0x23e5')][_0x4c599e('0x264e')]({'id':_0x409c7d[_0x4c599e('0x1a38')]['id']},_0x409c7d[_0x4c599e('0x1a38')])[_0x4c599e('0x1dc2')][_0x4c599e('0xaa5')](function(_0x9348ab){var _0x43987c=_0x4c599e,_0x266bdc=_0x51538b()[_0x43987c('0xe9e')](_0x409c7d[_0x43987c('0x1a30')],{'id':_0x9348ab['id']});_0x266bdc&&_0x51538b()[_0x43987c('0x283c')](_0x266bdc,_0x9348ab),_0x2475a3[_0x43987c('0xe10')]({'title':_0x51538b()[_0x43987c('0x1b56')](_0x6564f7)+_0x43987c('0x1c44'),'msg':_0x51538b()[_0x43987c('0x1b56')](_0x6564f7)+'\x20has\x20been\x20saved!'}),_0x57a2d7();})[_0x4c599e('0x253d')](function(_0x302cdb){var _0xd5bf45=_0x4c599e;console[_0xd5bf45('0x187f')](_0x302cdb),_0x409c7d[_0xd5bf45('0x4c6')]=_0x302cdb[_0xd5bf45('0x10fd')][_0xd5bf45('0x4c6')]||[{'message':_0x302cdb['toString'](),'type':_0xd5bf45('0x2460')}];});}function _0x2e4b9b(_0x2fbe63){var _0x4cde3b=_0x24424c;_0x409c7d[_0x4cde3b('0x4c6')]=[];var _0x3fca20=_0x2016bc['confirm']()[_0x4cde3b('0x110a')](_0x4cde3b('0x12a3'))['content'](_0x4cde3b('0x318')+_0x6564f7+'\x20will\x20be\x20deleted.')[_0x4cde3b('0x5b5')](_0x4cde3b('0xf00')+_0x51538b()[_0x4cde3b('0x1b56')](_0x6564f7))['ok']('Delete')[_0x4cde3b('0x2030')](_0x4cde3b('0x9c6'))[_0x4cde3b('0x116d')](_0x2fbe63);_0x2016bc[_0x4cde3b('0x1e6d')](_0x3fca20)[_0x4cde3b('0xaa5')](function(){var _0x35ea93=_0x4cde3b;_0x2a26c9[_0x35ea93('0x23e5')][_0x35ea93('0x926')]({'id':_0x409c7d[_0x35ea93('0x1a38')]['id']})[_0x35ea93('0x1dc2')]['then'](function(){var _0x4a1790=_0x35ea93;_0x51538b()[_0x4a1790('0xf6d')](_0x409c7d[_0x4a1790('0x1a30')],{'id':_0x409c7d[_0x4a1790('0x1a38')]['id']}),_0x2475a3[_0x4a1790('0xe10')]({'title':_0x51538b()[_0x4a1790('0x1b56')](_0x6564f7)+_0x4a1790('0x1e42'),'msg':_0x51538b()['capitalize'](_0x6564f7)+_0x4a1790('0xcd9')}),_0x57a2d7();})[_0x35ea93('0x253d')](function(_0x21c18f){var _0x12c460=_0x35ea93;console[_0x12c460('0x187f')](_0x21c18f),_0x409c7d[_0x12c460('0x4c6')]=_0x21c18f[_0x12c460('0x10fd')]['errors']||[{'message':_0x21c18f[_0x12c460('0x684')](),'type':_0x12c460('0x37d')}];});},function(){});}function _0x5f398d(){var _0x32aff8=_0x24424c;return _0x409c7d[_0x32aff8('0x1a38')]['variableName']!==undefined?_0x409c7d['item'][_0x32aff8('0x1e29')]:_0x32aff8('0x2444');}function _0x57a2d7(){var _0x4f3f36=_0x24424c;_0x2016bc[_0x4f3f36('0x1120')]();}}const _0x200021=_0x36d2b8;_0xdfbc3e['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),'setting','api',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'zendeskAccount',_0x1a8446('0x1a50')];function _0xdfbc3e(_0xe38471,_0x139f52,_0x557d97,_0x161016,_0x22ff0e,_0x529d14,_0x24830c,_0x5ec4a3,_0x5e804a,_0x499237,_0x38fa24,_0x50771f){var _0x57d9da=_0x1a8446,_0x40e03f=this;_0x40e03f['currentUser']=_0x499237['getCurrentUser'](),_0x40e03f['license']=_0x529d14,_0x40e03f[_0x57d9da('0x143f')]=_0x24830c,_0x40e03f[_0x57d9da('0x1d53')]=_0x40e03f[_0x57d9da('0x143f')][_0x57d9da('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40e03f[_0x57d9da('0x18cc')]=_0x139f52[_0x57d9da('0x1cc2')]()+_0x57d9da('0x356')+_0x139f52[_0x57d9da('0x160c')](),_0x40e03f['zendeskAccount']=_0x38fa24||_0xe38471[_0x57d9da('0x25cf')][_0x57d9da('0x1acd')]||{},_0x40e03f[_0x57d9da('0x1a50')]=_0x50771f&&_0x50771f['count']==0x1?_0x50771f[_0x57d9da('0x580')][0x0]:null,_0x40e03f[_0x57d9da('0xada')]=_0x499237['parseCrudPermissions'](_0x40e03f['userProfileSection']?_0x40e03f[_0x57d9da('0x1a50')][_0x57d9da('0xada')]:null),_0x40e03f['hasModulePermissions']={},_0x40e03f[_0x57d9da('0xe5c')]=_0xe38471[_0x57d9da('0x25cf')]['tab']||0x0,_0x40e03f[_0x57d9da('0xc10')]=_0x5e804a['info'],_0x40e03f[_0x57d9da('0x250c')]=_0x1be821,_0x40e03f[_0x57d9da('0x1233')]=_0x386584;function _0x1be821(){var _0x41b400=_0x57d9da;_0xe38471['go'](_0x41b400('0x75f'),{},{'reload':_0x41b400('0x75f')});}function _0x386584(){var _0x36e962=_0x57d9da;_0x5ec4a3[_0x36e962('0xac8')][_0x36e962('0x264e')]({'id':_0x40e03f[_0x36e962('0x1acd')]['id']},_0x40e03f[_0x36e962('0x1acd')])[_0x36e962('0x1dc2')]['then'](function(){var _0x27b91f=_0x36e962;_0x5e804a[_0x27b91f('0xe10')]({'title':'ZendeskAccount\x20updated!','msg':_0x40e03f['zendeskAccount'][_0x27b91f('0x25d6')]?_0x40e03f[_0x27b91f('0x1acd')]['name']+_0x27b91f('0x1734'):''});})[_0x36e962('0x253d')](function(_0x1f8fe0){var _0x3996de=_0x36e962;_0x5e804a['error']({'title':_0x1f8fe0[_0x3996de('0x2fa')]?_0x3996de('0x16c2')+_0x1f8fe0[_0x3996de('0x2fa')]+_0x3996de('0x169e')+_0x1f8fe0[_0x3996de('0x24df')]:'SYSTEM:GETintZendeskAccount','msg':_0x1f8fe0[_0x3996de('0x10fd')]?JSON[_0x3996de('0xa48')](_0x1f8fe0[_0x3996de('0x10fd')]):_0x1f8fe0[_0x3996de('0x684')]()});});}}const _0x21c650=_0xdfbc3e,_0x140c9f=_0x4fb511['p']+_0x1a8446('0x14d2'),_0xbefa37=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x2c3185['$inject']=['$mdDialog',_0x1a8446('0x39b'),'api',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd')];function _0x2c3185(_0x38805a,_0x347bdd,_0x5d5fef,_0xaf0a55,_0x46e26f){var _0x100b4a=_0x1a8446,_0xa5e52a=this;_0xa5e52a[_0x100b4a('0x7fc')]=_0x46e26f[_0x100b4a('0xacc')](),_0xa5e52a[_0x100b4a('0x1acd')]={},_0xa5e52a[_0x100b4a('0x2855')]={},_0xa5e52a['zendeskConfigurations']=[],_0xa5e52a[_0x100b4a('0x1391')]=-0x1,_0xa5e52a['crudPermissions'],_0xa5e52a[_0x100b4a('0x2e')]=_0x349b1b,_0xa5e52a[_0x100b4a('0x19d5')]=_0x57d70b,_0xa5e52a[_0x100b4a('0x155a')]=_0x5f0bcf,_0xa5e52a[_0x100b4a('0x8db')]=_0x529756,_0xa5e52a[_0x100b4a('0x1373')]=[],_0xa5e52a[_0x100b4a('0x1167')]=_0x46387a,_0x5d5fef[_0x100b4a('0x38f')][_0x100b4a('0x2122')]({'nolimit':!![],'sort':'name'})[_0x100b4a('0x1dc2')]['then'](function(_0x3bd379){var _0x667ad1=_0x100b4a;_0xa5e52a[_0x667ad1('0x523')]=_0x3bd379[_0x667ad1('0x580')]?_0x3bd379[_0x667ad1('0x580')]:[];})[_0x100b4a('0x253d')](function(_0x43b33b){var _0x4a3c90=_0x100b4a;_0xaf0a55[_0x4a3c90('0x187f')]({'title':_0x43b33b[_0x4a3c90('0x2fa')]?_0x4a3c90('0x16c2')+_0x43b33b['status']+_0x4a3c90('0x169e')+_0x43b33b[_0x4a3c90('0x24df')]:_0x4a3c90('0xe67'),'msg':_0x43b33b['data']?JSON['stringify'](_0x43b33b[_0x4a3c90('0x10fd')]):_0x43b33b[_0x4a3c90('0x684')]()});});function _0x46387a(){var _0xff117c=_0x100b4a;_0x5d5fef[_0xff117c('0xf57')]['setTags']({'id':_0xa5e52a[_0xff117c('0x2855')]['id'],'ids':_0xa5e52a[_0xff117c('0x1373')]})[_0xff117c('0x1dc2')]['then'](function(){var _0x26be74=_0xff117c;_0xaf0a55[_0x26be74('0xe10')]({'title':_0x26be74('0x30e'),'msg':'Tags\x20has\x20been\x20set!'});})['catch'](function(_0x291119){var _0x28d431=_0xff117c;_0xaf0a55[_0x28d431('0x187f')]({'title':_0x291119[_0x28d431('0x2fa')]?_0x28d431('0x16c2')+_0x291119[_0x28d431('0x2fa')]+_0x28d431('0x169e')+_0x291119[_0x28d431('0x24df')]:_0x28d431('0x3f8'),'msg':_0x291119[_0x28d431('0x10fd')]?JSON[_0x28d431('0xa48')](_0x291119['data']):_0x291119['toString']()});});}function _0x349b1b(_0x7aeeeb,_0x481bfa){var _0x41985a=_0x100b4a;_0xa5e52a['zendeskAccount']=_0x7aeeeb,_0xa5e52a[_0x41985a('0xada')]=typeof _0x481bfa!==_0x41985a('0x1574')?_0x481bfa:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5d5fef[_0x41985a('0xac8')]['getConfigurations']({'id':_0xa5e52a[_0x41985a('0x1acd')]['id'],'sort':'-updatedAt'})[_0x41985a('0x1dc2')]['then'](function(_0x5b755e){var _0x2498b4=_0x41985a;return _0xa5e52a[_0x2498b4('0x5c9')]=_0x5b755e['rows']?_0x5b755e[_0x2498b4('0x580')]:[],_0xa5e52a[_0x2498b4('0x5c9')]['length']&&_0xa5e52a['getZendeskConfiguration'](0x0),_0x5d5fef[_0x2498b4('0x14e7')]['get']({'nolimit':!![],'sort':_0x2498b4('0x25d6')})[_0x2498b4('0x1dc2')];})['then'](function(_0x158e49){var _0x919d4e=_0x41985a;_0xa5e52a['variables']=_0x158e49['rows']?_0x158e49[_0x919d4e('0x580')]:[],_0xa5e52a[_0x919d4e('0x2032')]=_0x51538b()[_0x919d4e('0x184a')](_0xa5e52a[_0x919d4e('0x147e')],'id');})[_0x41985a('0x253d')](function(_0x574094){var _0x2604a2=_0x41985a;_0xaf0a55[_0x2604a2('0x187f')]({'title':_0x574094[_0x2604a2('0x2fa')]?_0x2604a2('0x16c2')+_0x574094[_0x2604a2('0x2fa')]+_0x2604a2('0x169e')+_0x574094[_0x2604a2('0x24df')]:_0x2604a2('0x24c9'),'msg':_0x574094[_0x2604a2('0x10fd')]?JSON[_0x2604a2('0xa48')](_0x574094[_0x2604a2('0x10fd')]):_0x574094[_0x2604a2('0x684')]()});});}function _0x57d70b(_0x562690){var _0x5b7af5=_0x100b4a;_0xa5e52a[_0x5b7af5('0x2855')]=_0xa5e52a[_0x5b7af5('0x5c9')][_0x562690],_0xa5e52a[_0x5b7af5('0x1391')]=_0x562690,_0x5d5fef['intZendeskConfiguration'][_0x5b7af5('0xeba')]({'id':_0xa5e52a[_0x5b7af5('0x2855')]['id']})['$promise'][_0x5b7af5('0xaa5')](function(_0x40e72e){var _0x570efb=_0x5b7af5;return _0xa5e52a[_0x570efb('0xc3f')]=_0x40e72e['rows']?_0x40e72e[_0x570efb('0x580')]:[],_0x5d5fef[_0x570efb('0xf57')]['getDescriptions']({'id':_0xa5e52a[_0x570efb('0x2855')]['id']})['$promise'];})['then'](function(_0x1da483){var _0x5027b7=_0x5b7af5;return _0xa5e52a[_0x5027b7('0x27b9')]=_0x1da483[_0x5027b7('0x580')]?_0x1da483[_0x5027b7('0x580')]:[],_0x5d5fef[_0x5027b7('0xf57')]['getFields']({'id':_0xa5e52a[_0x5027b7('0x2855')]['id']})[_0x5027b7('0x1dc2')];})['then'](function(_0xec6c95){var _0x3ef930=_0x5b7af5;_0xa5e52a[_0x3ef930('0x13a')]=_0xec6c95[_0x3ef930('0x580')]?_0xec6c95[_0x3ef930('0x580')]:[];})[_0x5b7af5('0x253d')](function(_0x2fff25){var _0x45f0f4=_0x5b7af5;_0xaf0a55[_0x45f0f4('0x187f')]({'title':_0x2fff25[_0x45f0f4('0x2fa')]?_0x45f0f4('0x16c2')+_0x2fff25['status']+_0x45f0f4('0x169e')+_0x2fff25[_0x45f0f4('0x24df')]:_0x45f0f4('0xd6d'),'msg':_0x2fff25[_0x45f0f4('0x10fd')]?JSON[_0x45f0f4('0xa48')](_0x2fff25['data']):_0x2fff25[_0x45f0f4('0x684')]()});}),_0x5d5fef['intZendeskConfiguration'][_0x5b7af5('0x195b')]({'id':_0xa5e52a[_0x5b7af5('0x2855')]['id']})[_0x5b7af5('0x1dc2')][_0x5b7af5('0xaa5')](function(_0x4b1af4){var _0x5b0819=_0x5b7af5;_0xa5e52a[_0x5b0819('0x1373')]=_0x4b1af4[_0x5b0819('0x580')]?_0x51538b()['map'](_0x4b1af4[_0x5b0819('0x580')],'id'):[];})[_0x5b7af5('0x253d')](function(_0x536cdf){var _0x470581=_0x5b7af5;_0xaf0a55[_0x470581('0x187f')]({'title':_0x536cdf[_0x470581('0x2fa')]?'API:'+_0x536cdf[_0x470581('0x2fa')]+_0x470581('0x169e')+_0x536cdf[_0x470581('0x24df')]:_0x470581('0xe67'),'msg':_0x536cdf[_0x470581('0x10fd')]?JSON[_0x470581('0xa48')](_0x536cdf[_0x470581('0x10fd')]):_0x536cdf[_0x470581('0x684')]()});});}function _0x5f0bcf(_0x222401,_0x2cb498){var _0x1a58f4=_0x100b4a;_0x38805a[_0x1a58f4('0x1e6d')]({'controller':_0x1a58f4('0xd04'),'controllerAs':'vm','templateUrl':_0x140c9f,'parent':angular[_0x1a58f4('0x1aa8')](_0x347bdd[_0x1a58f4('0x54c')]),'targetEvent':_0x222401,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x2cb498,'zendeskConfigurations':_0xa5e52a['zendeskConfigurations'],'license':null,'setting':null,'crudPermissions':_0xa5e52a[_0x1a58f4('0xada')]}})[_0x1a58f4('0x1889')](function(){var _0x26402f=_0x1a58f4;_0xa5e52a[_0x26402f('0x19d5')](0x0);});}function _0x529756(_0x44f5a4,_0x5e7f4){var _0x2592a7=_0x100b4a,_0x388748=_0x38805a[_0x2592a7('0x281e')]()[_0x2592a7('0x110a')](_0x2592a7('0x17b1'))[_0x2592a7('0x102e')](_0x2592a7('0x389')+(_0x5e7f4[_0x2592a7('0x25d6')]||'zendeskConfiguration')+_0x2592a7('0x697')+_0x2592a7('0x210d'))[_0x2592a7('0x5b5')](_0x2592a7('0x1f40'))[_0x2592a7('0x116d')](_0x44f5a4)['ok']('OK')[_0x2592a7('0x2030')]('CANCEL');_0x38805a[_0x2592a7('0x1e6d')](_0x388748)[_0x2592a7('0xaa5')](function(){var _0x5553c5=_0x2592a7;_0x5d5fef[_0x5553c5('0xf57')][_0x5553c5('0x926')]({'id':_0x5e7f4['id']})[_0x5553c5('0x1dc2')][_0x5553c5('0xaa5')](function(){var _0x5a945c=_0x5553c5;_0x51538b()[_0x5a945c('0xf6d')](_0xa5e52a[_0x5a945c('0x5c9')],{'id':_0x5e7f4['id']}),_0xaf0a55[_0x5a945c('0xe10')]({'title':_0x5a945c('0x1e4b'),'msg':_0x5e7f4[_0x5a945c('0x25d6')]?_0x5e7f4['name']+_0x5a945c('0xcd9'):''});})[_0x5553c5('0x253d')](function(_0x4c8021){var _0x5c6315=_0x5553c5;_0xaf0a55['error']({'title':_0x4c8021[_0x5c6315('0x2fa')]?_0x5c6315('0x16c2')+_0x4c8021['status']+'\x20-\x20'+_0x4c8021['statusText']:_0x5c6315('0x2549'),'msg':_0x4c8021[_0x5c6315('0x10fd')]?JSON[_0x5c6315('0xa48')](_0x4c8021[_0x5c6315('0x10fd')]):_0x4c8021[_0x5c6315('0x684')]()});})['finally'](function(){var _0x5c5395=_0x5553c5;_0xa5e52a[_0x5c5395('0x19d5')](0x0);});},function(){var _0x3e9e50=_0x2592a7;console[_0x3e9e50('0x18d5')]('CANCEL');});}_0xa5e52a[_0x100b4a('0xf7d')]=[],_0xa5e52a['createOrEditSubject']=_0x8b5fbd,_0xa5e52a[_0x100b4a('0x1e1e')]=_0x448213,_0xa5e52a['deleteSelectedSubjects']=_0xb6a706;function _0x8b5fbd(_0x35e51c,_0x1cbe14){var _0x2159cd=_0x100b4a;_0x38805a[_0x2159cd('0x1e6d')]({'controller':_0x2159cd('0x1d13'),'controllerAs':'vm','templateUrl':_0xbefa37,'parent':angular[_0x2159cd('0x1aa8')](_0x347bdd[_0x2159cd('0x54c')]),'targetEvent':_0x35e51c,'clickOutsideToClose':!![],'locals':{'type':_0x2159cd('0x2101'),'item':_0x1cbe14,'items':_0xa5e52a['subjects'],'configuration':_0xa5e52a[_0x2159cd('0x2855')],'account':_0xa5e52a[_0x2159cd('0x1acd')],'license':null,'setting':null,'crudPermissions':_0xa5e52a[_0x2159cd('0xada')]}});}function _0x8facb1(_0x4d40e1){var _0x1b3032=_0x100b4a;_0x5d5fef[_0x1b3032('0x23e5')][_0x1b3032('0x926')]({'id':_0x4d40e1['id']})['$promise'][_0x1b3032('0xaa5')](function(){var _0x31e24c=_0x1b3032;_0x51538b()['remove'](_0xa5e52a[_0x31e24c('0xc3f')],{'id':_0x4d40e1['id']}),_0xaf0a55[_0x31e24c('0xe10')]({'title':'Subject\x20deleted!','msg':_0x31e24c('0x1732')});})[_0x1b3032('0x253d')](function(_0x1f0d40){var _0x12aa6e=_0x1b3032;_0xaf0a55[_0x12aa6e('0x187f')]({'title':_0x1f0d40[_0x12aa6e('0x2fa')]?_0x12aa6e('0x16c2')+_0x1f0d40[_0x12aa6e('0x2fa')]+'\x20-\x20'+_0x1f0d40[_0x12aa6e('0x24df')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x1f0d40[_0x12aa6e('0x10fd')]?JSON[_0x12aa6e('0xa48')](_0x1f0d40[_0x12aa6e('0x10fd')]):_0x1f0d40[_0x12aa6e('0x684')]()});});}function _0x448213(_0x38223f,_0x5da392){var _0xace802=_0x100b4a,_0x13e844=_0x38805a[_0xace802('0x281e')]()[_0xace802('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')['htmlContent'](_0xace802('0xd7')+_0xace802('0x210d'))[_0xace802('0x5b5')](_0xace802('0x25d5'))[_0xace802('0x116d')](_0x38223f)['ok']('OK')[_0xace802('0x2030')](_0xace802('0x2410'));_0x38805a['show'](_0x13e844)['then'](function(){_0x8facb1(_0x5da392);},function(){var _0x255652=_0xace802;console['log'](_0x255652('0x2410'));});}function _0xb6a706(_0x5c2543){var _0x520968=_0x100b4a,_0x3e1516=_0x38805a['confirm']()[_0x520968('0x110a')](_0x520968('0x6f0'))[_0x520968('0x102e')](''+_0xa5e52a['selectedSubjects'][_0x520968('0x2587')]+_0x520968('0x1443')+'\x20will\x20be\x20deleted.')[_0x520968('0x5b5')](_0x520968('0xfcd'))['targetEvent'](_0x5c2543)['ok']('OK')[_0x520968('0x2030')](_0x520968('0x2410'));_0x38805a[_0x520968('0x1e6d')](_0x3e1516)[_0x520968('0xaa5')](function(){var _0x1eab09=_0x520968;_0xa5e52a[_0x1eab09('0xf7d')][_0x1eab09('0x15b5')](function(_0x4b328f){_0x8facb1(_0x4b328f);}),_0xa5e52a[_0x1eab09('0xf7d')]=[];});}_0xa5e52a['selectedDescriptions']=[],_0xa5e52a[_0x100b4a('0x19db')]=_0x4f4b45,_0xa5e52a[_0x100b4a('0x12af')]=_0x300987,_0xa5e52a[_0x100b4a('0x416')]=_0x12e9a7;function _0x4f4b45(_0x12e795,_0x4861ac){var _0x248d5b=_0x100b4a;_0x38805a[_0x248d5b('0x1e6d')]({'controller':_0x248d5b('0x1d13'),'controllerAs':'vm','templateUrl':_0xbefa37,'parent':angular['element'](_0x347bdd[_0x248d5b('0x54c')]),'targetEvent':_0x12e795,'clickOutsideToClose':!![],'locals':{'type':_0x248d5b('0x23d0'),'item':_0x4861ac,'items':_0xa5e52a[_0x248d5b('0x27b9')],'configuration':_0xa5e52a[_0x248d5b('0x2855')],'account':_0xa5e52a[_0x248d5b('0x1acd')],'license':null,'setting':null,'crudPermissions':_0xa5e52a[_0x248d5b('0xada')]}});}function _0x4bae50(_0x2b2f24){var _0x2e9a43=_0x100b4a;_0x5d5fef[_0x2e9a43('0x23e5')][_0x2e9a43('0x926')]({'id':_0x2b2f24['id']})[_0x2e9a43('0x1dc2')][_0x2e9a43('0xaa5')](function(){var _0x14d6e0=_0x2e9a43;_0x51538b()['remove'](_0xa5e52a[_0x14d6e0('0x27b9')],{'id':_0x2b2f24['id']}),_0xaf0a55[_0x14d6e0('0xe10')]({'title':_0x14d6e0('0x1d35'),'msg':_0x14d6e0('0x266b')});})[_0x2e9a43('0x253d')](function(_0x5c5b18){var _0x23763a=_0x2e9a43;_0xaf0a55[_0x23763a('0x187f')]({'title':_0x5c5b18[_0x23763a('0x2fa')]?'API:'+_0x5c5b18[_0x23763a('0x2fa')]+_0x23763a('0x169e')+_0x5c5b18[_0x23763a('0x24df')]:_0x23763a('0xdd7'),'msg':_0x5c5b18['data']?JSON[_0x23763a('0xa48')](_0x5c5b18[_0x23763a('0x10fd')]):_0x5c5b18[_0x23763a('0x684')]()});});}function _0x300987(_0x40f553,_0x4a3bac){var _0x4e66ff=_0x100b4a,_0x4226ee=_0x38805a[_0x4e66ff('0x281e')]()[_0x4e66ff('0x110a')](_0x4e66ff('0x19b6'))['htmlContent'](_0x4e66ff('0x2534')+'\x20will\x20be\x20deleted.')[_0x4e66ff('0x5b5')]('delete\x20description')['targetEvent'](_0x40f553)['ok']('OK')[_0x4e66ff('0x2030')](_0x4e66ff('0x2410'));_0x38805a[_0x4e66ff('0x1e6d')](_0x4226ee)[_0x4e66ff('0xaa5')](function(){_0x4bae50(_0x4a3bac);},function(){var _0x536b53=_0x4e66ff;console['log'](_0x536b53('0x2410'));});}function _0x12e9a7(_0x2bc685){var _0x341f48=_0x100b4a,_0x4bc35f=_0x38805a[_0x341f48('0x281e')]()[_0x341f48('0x110a')](_0x341f48('0x12ce'))[_0x341f48('0x102e')](''+_0xa5e52a['selectedDescriptions']['length']+_0x341f48('0x1443')+_0x341f48('0x210d'))[_0x341f48('0x5b5')](_0x341f48('0xcfb'))[_0x341f48('0x116d')](_0x2bc685)['ok']('OK')[_0x341f48('0x2030')](_0x341f48('0x2410'));_0x38805a[_0x341f48('0x1e6d')](_0x4bc35f)[_0x341f48('0xaa5')](function(){var _0x449423=_0x341f48;_0xa5e52a['selectedDescriptions'][_0x449423('0x15b5')](function(_0xf9b674){_0x4bae50(_0xf9b674);}),_0xa5e52a['selectedDescriptions']=[];});}_0xa5e52a[_0x100b4a('0x490')]=[],_0xa5e52a['createOrEditField']=_0x160e20,_0xa5e52a['deleteFieldConfirm']=_0x1714fa,_0xa5e52a[_0x100b4a('0x261a')]=_0x2e2e80;function _0x160e20(_0x18b50b,_0x375671){var _0x480ebc=_0x100b4a;_0x38805a[_0x480ebc('0x1e6d')]({'controller':'CreateOrEditZendeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0xbefa37,'parent':angular[_0x480ebc('0x1aa8')](_0x347bdd[_0x480ebc('0x54c')]),'targetEvent':_0x18b50b,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x375671,'items':_0xa5e52a[_0x480ebc('0x13a')],'configuration':_0xa5e52a[_0x480ebc('0x2855')],'account':_0xa5e52a[_0x480ebc('0x1acd')],'license':null,'setting':null,'crudPermissions':_0xa5e52a[_0x480ebc('0xada')]}});}function _0x55e181(_0x249270){var _0x159bd6=_0x100b4a;_0x5d5fef['intZendeskField'][_0x159bd6('0x926')]({'id':_0x249270['id']})[_0x159bd6('0x1dc2')][_0x159bd6('0xaa5')](function(){var _0x374232=_0x159bd6;_0x51538b()[_0x374232('0xf6d')](_0xa5e52a[_0x374232('0x13a')],{'id':_0x249270['id']}),_0xaf0a55['success']({'title':_0x374232('0x25e1'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x159bd6('0x253d')](function(_0x4dd2fb){var _0x2a1ea2=_0x159bd6;_0xaf0a55[_0x2a1ea2('0x187f')]({'title':_0x4dd2fb[_0x2a1ea2('0x2fa')]?_0x2a1ea2('0x16c2')+_0x4dd2fb['status']+_0x2a1ea2('0x169e')+_0x4dd2fb[_0x2a1ea2('0x24df')]:_0x2a1ea2('0xdd7'),'msg':_0x4dd2fb[_0x2a1ea2('0x10fd')]?JSON[_0x2a1ea2('0xa48')](_0x4dd2fb[_0x2a1ea2('0x10fd')]):_0x4dd2fb[_0x2a1ea2('0x684')]()});});}function _0x1714fa(_0x5ee9f6,_0xf0d395){var _0x4f7c50=_0x100b4a,_0x54d42b=_0x38805a['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x4f7c50('0x102e')](_0x4f7c50('0x455')+_0x4f7c50('0x210d'))[_0x4f7c50('0x5b5')](_0x4f7c50('0x1286'))['targetEvent'](_0x5ee9f6)['ok']('OK')[_0x4f7c50('0x2030')]('CANCEL');_0x38805a[_0x4f7c50('0x1e6d')](_0x54d42b)[_0x4f7c50('0xaa5')](function(){_0x55e181(_0xf0d395);},function(){var _0x421a42=_0x4f7c50;console[_0x421a42('0x18d5')](_0x421a42('0x2410'));});}function _0x2e2e80(_0x25043e){var _0x8af420=_0x100b4a,_0x1c2cbf=_0x38805a['confirm']()[_0x8af420('0x110a')](_0x8af420('0xf28'))[_0x8af420('0x102e')](''+_0xa5e52a[_0x8af420('0x490')]['length']+'\x20selected'+_0x8af420('0x210d'))[_0x8af420('0x5b5')](_0x8af420('0xefc'))[_0x8af420('0x116d')](_0x25043e)['ok']('OK')['cancel']('CANCEL');_0x38805a['show'](_0x1c2cbf)[_0x8af420('0xaa5')](function(){var _0x2a17ef=_0x8af420;_0xa5e52a[_0x2a17ef('0x490')][_0x2a17ef('0x15b5')](function(_0x53a5d0){_0x55e181(_0x53a5d0);}),_0xa5e52a[_0x2a17ef('0x490')]=[];});}}const _0x2ac488=_0x2c3185;_0x4a3191[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state','$location','$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x5c9'),_0x1a8446('0x2855'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x4a3191(_0x446e9e,_0x359476,_0x321595,_0x335830,_0x4ae60f,_0x1d4e74,_0x471ff4,_0x33875c,_0x102e0a,_0x334b51,_0x1db944,_0x2485b5,_0x23cb36,_0x15c0d4){var _0x3a246e=_0x1a8446,_0x2fa350=this;_0x2fa350[_0x3a246e('0x7fc')]=_0x1db944[_0x3a246e('0xacc')](),_0x2fa350['errors']=[],_0x2fa350[_0x3a246e('0x143f')]=_0x23cb36,_0x2fa350[_0x3a246e('0x1202')]=_0x2485b5,_0x2fa350[_0x3a246e('0xada')]=_0x15c0d4,_0x2fa350[_0x3a246e('0x9f0')]={},_0x2fa350[_0x3a246e('0x1d53')]=_0x2fa350[_0x3a246e('0x143f')]&&_0x2fa350[_0x3a246e('0x143f')][_0x3a246e('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2fa350['title']='INTEGRATIONS.EDIT_ZENDESKCONFIGURATION',_0x2fa350[_0x3a246e('0x2855')]=angular[_0x3a246e('0x20a')](_0x102e0a),_0x2fa350[_0x3a246e('0x5c9')]=_0x33875c,_0x2fa350[_0x3a246e('0x22fb')]=![];!_0x2fa350[_0x3a246e('0x2855')]&&(_0x2fa350[_0x3a246e('0x2855')]={'channel':_0x3a246e('0x1b9'),'type':_0x3a246e('0x4b8')},_0x2fa350[_0x3a246e('0x110a')]=_0x3a246e('0x110c'),_0x2fa350[_0x3a246e('0x22fb')]=!![]);_0x2fa350['addNewZendeskConfiguration']=_0x1d111e,_0x2fa350[_0x3a246e('0xc47')]=_0x4ee942,_0x2fa350[_0x3a246e('0x8db')]=_0x397f2e,_0x2fa350[_0x3a246e('0xc09')]=_0x1c8784,_0x2fa350[_0x3a246e('0x2023')]=_0x19bfed;function _0x1d111e(){var _0x24d2c1=_0x3a246e;_0x2fa350[_0x24d2c1('0x4c6')]=[],_0x334b51[_0x24d2c1('0xac8')][_0x24d2c1('0x118f')]({'id':_0x359476['params']['id']},_0x2fa350['zendeskConfiguration'])[_0x24d2c1('0x1dc2')][_0x24d2c1('0xaa5')](function(_0x2ec1b9){var _0x404b08=_0x24d2c1;_0x2fa350[_0x404b08('0x5c9')][_0x404b08('0x6ee')](_0x2ec1b9[_0x404b08('0x256a')]()),_0x471ff4['success']({'title':_0x404b08('0x880'),'msg':_0x2fa350[_0x404b08('0x2855')][_0x404b08('0x25d6')]?_0x2fa350['zendeskConfiguration'][_0x404b08('0x25d6')]+_0x404b08('0xdca'):''}),_0x19bfed(_0x2ec1b9);})[_0x24d2c1('0x253d')](function(_0x4ff0f7){var _0x191fae=_0x24d2c1;if(_0x4ff0f7[_0x191fae('0x10fd')]&&_0x4ff0f7[_0x191fae('0x10fd')]['errors']&&_0x4ff0f7[_0x191fae('0x10fd')][_0x191fae('0x4c6')][_0x191fae('0x2587')]){_0x2fa350[_0x191fae('0x4c6')]=_0x4ff0f7['data'][_0x191fae('0x4c6')]||[{'message':_0x4ff0f7[_0x191fae('0x684')](),'type':_0x191fae('0x1f58')}];for(var _0x218c8f=0x0;_0x218c8f<_0x4ff0f7[_0x191fae('0x10fd')]['errors']['length'];_0x218c8f+=0x1){_0x471ff4[_0x191fae('0x187f')]({'title':_0x4ff0f7['data'][_0x191fae('0x4c6')][_0x218c8f]['type'],'msg':_0x4ff0f7[_0x191fae('0x10fd')][_0x191fae('0x4c6')][_0x218c8f][_0x191fae('0x1402')]});}}else _0x471ff4[_0x191fae('0x187f')]({'title':_0x4ff0f7[_0x191fae('0x2fa')]?_0x191fae('0x16c2')+_0x4ff0f7['status']+_0x191fae('0x169e')+_0x4ff0f7['statusText']:_0x191fae('0x1f58'),'msg':_0x4ff0f7['data']?JSON[_0x191fae('0xa48')](_0x4ff0f7[_0x191fae('0x10fd')]['message']):_0x4ff0f7[_0x191fae('0x684')]()});});}function _0x4ee942(){var _0x4ff65e=_0x3a246e;_0x2fa350[_0x4ff65e('0x4c6')]=[],_0x334b51[_0x4ff65e('0xf57')][_0x4ff65e('0x264e')]({'id':_0x2fa350[_0x4ff65e('0x2855')]['id']},_0x2fa350[_0x4ff65e('0x2855')])[_0x4ff65e('0x1dc2')][_0x4ff65e('0xaa5')](function(_0x31b734){var _0xef0243=_0x4ff65e,_0x201529=_0x51538b()['find'](_0x2fa350[_0xef0243('0x5c9')],{'id':_0x31b734['id']});_0x201529&&_0x51538b()[_0xef0243('0x283c')](_0x201529,_0x51538b()[_0xef0243('0x104e')](_0x31b734[_0xef0243('0x256a')](),_0x51538b()[_0xef0243('0x9f2')](_0x201529))),_0x471ff4[_0xef0243('0xe10')]({'title':'ZendeskConfiguration\x20properly\x20saved!','msg':_0x2fa350[_0xef0243('0x2855')][_0xef0243('0x25d6')]?_0x2fa350[_0xef0243('0x2855')][_0xef0243('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x19bfed(_0x31b734);})[_0x4ff65e('0x253d')](function(_0x2d23a3){var _0x1fe2b4=_0x4ff65e;if(_0x2d23a3[_0x1fe2b4('0x10fd')]&&_0x2d23a3['data'][_0x1fe2b4('0x4c6')]&&_0x2d23a3['data'][_0x1fe2b4('0x4c6')][_0x1fe2b4('0x2587')]){_0x2fa350[_0x1fe2b4('0x4c6')]=_0x2d23a3['data']['errors']||[{'message':_0x2d23a3['toString'](),'type':_0x1fe2b4('0x4c7')}];for(var _0x4fe88c=0x0;_0x4fe88c<_0x2d23a3[_0x1fe2b4('0x10fd')][_0x1fe2b4('0x4c6')]['length'];_0x4fe88c++){_0x471ff4[_0x1fe2b4('0x187f')]({'title':_0x2d23a3[_0x1fe2b4('0x10fd')][_0x1fe2b4('0x4c6')][_0x4fe88c][_0x1fe2b4('0x6c8')],'msg':_0x2d23a3[_0x1fe2b4('0x10fd')][_0x1fe2b4('0x4c6')][_0x4fe88c][_0x1fe2b4('0x1402')]});}}else _0x471ff4[_0x1fe2b4('0x187f')]({'title':_0x2d23a3[_0x1fe2b4('0x2fa')]?_0x1fe2b4('0x16c2')+_0x2d23a3[_0x1fe2b4('0x2fa')]+'\x20-\x20'+_0x2d23a3['statusText']:_0x1fe2b4('0x4c7'),'msg':_0x2d23a3[_0x1fe2b4('0x10fd')]?JSON['stringify'](_0x2d23a3[_0x1fe2b4('0x10fd')]['message']):_0x2d23a3[_0x1fe2b4('0x684')]()});});}function _0x397f2e(_0x5bb208){var _0x578405=_0x3a246e;_0x2fa350[_0x578405('0x4c6')]=[];var _0x25222f=_0x335830['confirm']()[_0x578405('0x110a')]('Are\x20you\x20sure?')[_0x578405('0x15af')](_0x578405('0x1d01'))[_0x578405('0x5b5')](_0x578405('0x1706'))['ok'](_0x578405('0x1e76'))[_0x578405('0x2030')]('Cancel')[_0x578405('0x116d')](_0x5bb208);_0x335830['show'](_0x25222f)[_0x578405('0xaa5')](function(){var _0x2c0b61=_0x578405;_0x334b51[_0x2c0b61('0xf57')][_0x2c0b61('0x926')]({'id':_0x2fa350[_0x2c0b61('0x2855')]['id']})[_0x2c0b61('0x1dc2')][_0x2c0b61('0xaa5')](function(){var _0x19fa90=_0x2c0b61;_0x51538b()['remove'](_0x2fa350[_0x19fa90('0x5c9')],{'id':_0x2fa350[_0x19fa90('0x2855')]['id']}),_0x471ff4[_0x19fa90('0xe10')]({'title':'ZendeskConfiguration\x20properly\x20deleted!','msg':(_0x2fa350[_0x19fa90('0x2855')][_0x19fa90('0x25d6')]||_0x19fa90('0x2855'))+'\x20has\x20been\x20deleted!'}),_0x19bfed(_0x2fa350[_0x19fa90('0x2855')]);})[_0x2c0b61('0x253d')](function(_0x965fcc){var _0x94ee78=_0x2c0b61;if(_0x965fcc['data']&&_0x965fcc['data'][_0x94ee78('0x4c6')]&&_0x965fcc[_0x94ee78('0x10fd')][_0x94ee78('0x4c6')][_0x94ee78('0x2587')]){_0x2fa350['errors']=_0x965fcc[_0x94ee78('0x10fd')][_0x94ee78('0x4c6')]||[{'message':_0x965fcc['toString'](),'type':_0x94ee78('0xa08')}];for(var _0x4755db=0x0;_0x4755db<_0x965fcc[_0x94ee78('0x10fd')][_0x94ee78('0x4c6')][_0x94ee78('0x2587')];_0x4755db++){_0x471ff4[_0x94ee78('0x187f')]({'title':_0x965fcc[_0x94ee78('0x10fd')][_0x94ee78('0x4c6')][_0x4755db][_0x94ee78('0x6c8')],'msg':_0x965fcc['data'][_0x94ee78('0x4c6')][_0x4755db]['message']});}}else _0x471ff4[_0x94ee78('0x187f')]({'title':_0x965fcc[_0x94ee78('0x2fa')]?_0x94ee78('0x16c2')+_0x965fcc['status']+_0x94ee78('0x169e')+_0x965fcc[_0x94ee78('0x24df')]:_0x94ee78('0xa08'),'msg':_0x965fcc['data']?JSON[_0x94ee78('0xa48')](_0x965fcc[_0x94ee78('0x10fd')][_0x94ee78('0x1402')]):_0x965fcc[_0x94ee78('0x1402')]||_0x965fcc['toString']()});});},function(){});}function _0x1c8784(_0x5ca04e){return _0x5ca04e===null?undefined:new Date(_0x5ca04e);}function _0x19bfed(_0x26d6b5){_0x335830['hide'](_0x26d6b5);}}const _0x216cf6=_0x4a3191,_0x2510ca=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog-[chunkhash].html';_0x426ba5['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x31e'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x426ba5(_0x3a98ad,_0xffbd58,_0x17a8da,_0x48d1f6,_0x4d594c,_0x31cce9,_0x51bc6f,_0x4c7def,_0x21b656,_0x57a077,_0x141096,_0x3c9bc5,_0x3d7d25,_0x267525,_0x233c26,_0x25351f,_0x44cfad){var _0x32d01e=_0x1a8446,_0x151b1e=this;_0x151b1e['license']=_0x25351f,_0x151b1e[_0x32d01e('0x143f')]=_0x44cfad,_0x151b1e['currentUser']=_0x233c26[_0x32d01e('0xacc')](),_0x151b1e[_0x32d01e('0x31e')]=_0x21b656||{'count':0x0,'rows':[]},_0x151b1e[_0x32d01e('0x1e97')]=_0x57a077,_0x151b1e[_0x32d01e('0x1a50')]=_0x141096&&_0x141096[_0x32d01e('0xd15')]==0x1?_0x141096[_0x32d01e('0x580')][0x0]:null,_0x151b1e['crudPermissions']=_0x233c26[_0x32d01e('0xffd')](_0x151b1e['userProfileSection']?_0x151b1e[_0x32d01e('0x1a50')][_0x32d01e('0xada')]:null),_0x151b1e[_0x32d01e('0x12b6')]=_0x32d01e('0x31e'),_0x151b1e[_0x32d01e('0x164')]='',_0x151b1e[_0x32d01e('0x8cc')]=null,_0x151b1e[_0x32d01e('0xb0f')]=[],_0x151b1e['query']={'fields':_0x32d01e('0x8df'),'limit':0xa,'page':0x1},_0x151b1e[_0x32d01e('0x1bee')]=_0x51538b()[_0x32d01e('0x184a')]([{'option':_0x32d01e('0x4e3'),'value':_0x32d01e('0x23f9')},{'option':_0x32d01e('0x1a59'),'value':_0x32d01e('0x1e01')}],function(_0x3cba1d){var _0x52d5c6=_0x32d01e;return _0x51538b()[_0x52d5c6('0x170d')](_0x3cba1d[_0x52d5c6('0x12f4')],new RegExp('\x27','g'),'');}),_0x151b1e['arrayauthType']=_0x51538b()[_0x32d01e('0x184a')]([{'option':'Password','value':_0x32d01e('0xa6d')},{'option':_0x32d01e('0x24e8'),'value':_0x32d01e('0x2441')}],function(_0xef3748){var _0xd3fa7d=_0x32d01e;return _0x51538b()[_0xd3fa7d('0x170d')](_0xef3748[_0xd3fa7d('0x12f4')],new RegExp('\x27','g'),'');}),_0x151b1e['editstate']=_0x1f5f7b,_0x151b1e['testtestintegrationaccount']=_0x494530,_0x151b1e['deleteconfirm']=_0xfc958b,_0x151b1e['success']=_0x325617,_0x151b1e[_0x32d01e('0x15da')]=_0x3079f4,_0x151b1e[_0x32d01e('0x2483')]=_0x27c1ac,_0x151b1e['deleteZendeskAccount']=_0x2ba454,_0x151b1e[_0x32d01e('0x19b7')]=_0x5a3936,_0x151b1e['deleteSelectedZendeskAccounts']=_0xcd7eac,_0x151b1e[_0x32d01e('0x1d76')]=_0x5487b9,_0x151b1e[_0x32d01e('0x26a8')]=_0xf7cef3;function _0x1f5f7b(_0x1404d3){var _0x4313d0=_0x32d01e;_0x17a8da['go']('app.integrations.zendeskAccounts.edit',{'id':_0x1404d3['id'],'zendeskAccount':_0x1404d3,'crudPermissions':_0x151b1e[_0x4313d0('0xada')]});}function _0x494530(_0x1fba80){var _0x44d049=_0x32d01e;return _0x3c9bc5['intZendeskAccount'][_0x44d049('0x1450')]({'id':_0x1fba80['id'],'test':!![]})['$promise'][_0x44d049('0xaa5')](function(){var _0x56d678=_0x44d049;_0x267525['success']({'title':_0x56d678('0x2556'),'msg':_0x56d678('0x2633')});})[_0x44d049('0x253d')](function(_0x578105){var _0x2ecf86=_0x44d049;_0x267525[_0x2ecf86('0x187f')]({'title':_0x2ecf86('0x2556'),'msg':_0x578105[_0x2ecf86('0x10fd')]?_0x578105['data']['message']?_0x578105['data'][_0x2ecf86('0x1402')]:JSON['stringify'](_0x578105[_0x2ecf86('0x10fd')]):_0x578105['toString']()});});}function _0xfc958b(_0x13449c,_0x2f0a79){var _0x53ea75=_0x32d01e,_0x48a0d2=_0x4d594c[_0x53ea75('0x281e')]()[_0x53ea75('0x110a')](_0x53ea75('0x88d')+_0x51538b()[_0x53ea75('0x196a')](_0x53ea75('0x1acd'))+'?')[_0x53ea75('0x102e')](_0x53ea75('0x389')+(_0x13449c[_0x53ea75('0x25d6')]||_0x53ea75('0x1acd'))+_0x53ea75('0x697')+_0x53ea75('0x210d'))[_0x53ea75('0x5b5')](_0x53ea75('0x1e8e'))[_0x53ea75('0x116d')](_0x2f0a79)['ok']('OK')[_0x53ea75('0x2030')](_0x53ea75('0x2410'));_0x4d594c[_0x53ea75('0x1e6d')](_0x48a0d2)[_0x53ea75('0xaa5')](function(){_0x2ba454(_0x13449c);},function(){var _0x5983a6=_0x53ea75;console[_0x5983a6('0x18d5')](_0x5983a6('0x2410'));});}var _0x4fba25=!![],_0x151ab1=0x1;_0x3a98ad[_0x32d01e('0x1ccf')](_0x32d01e('0x1788'),function(_0x5d97b2,_0x5d1d0e){var _0x1ba1c8=_0x32d01e;_0x4fba25?_0x51bc6f(function(){_0x4fba25=![];}):(!_0x5d1d0e&&(_0x151ab1=_0x151b1e[_0x1ba1c8('0x582')]['page']),_0x5d97b2!==_0x5d1d0e&&(_0x151b1e['query']['page']=0x1),!_0x5d97b2&&(_0x151b1e[_0x1ba1c8('0x582')][_0x1ba1c8('0x41')]=_0x151ab1),_0x151b1e[_0x1ba1c8('0x15da')]());});function _0x325617(_0x1331c5){_0x151b1e['zendeskAccounts']=_0x1331c5||{'count':0x0,'rows':[]};}function _0x3079f4(){var _0x1e4ced=_0x32d01e;_0x151b1e[_0x1e4ced('0x582')]['offset']=(_0x151b1e[_0x1e4ced('0x582')][_0x1e4ced('0x41')]-0x1)*_0x151b1e[_0x1e4ced('0x582')][_0x1e4ced('0xf4d')],_0x233c26[_0x1e4ced('0x26e8')]('admin')?_0x151b1e[_0x1e4ced('0x159a')]=_0x3c9bc5[_0x1e4ced('0xac8')]['get'](_0x151b1e['query'],_0x325617)[_0x1e4ced('0x1dc2')]:(_0x151b1e['query']['id']=_0x151b1e[_0x1e4ced('0x1e97')]['id'],_0x151b1e[_0x1e4ced('0x582')]['section']='ZendeskAccounts',_0x151b1e[_0x1e4ced('0x159a')]=_0x3c9bc5['userProfile'][_0x1e4ced('0x1cf1')](_0x151b1e[_0x1e4ced('0x582')],_0x325617)['$promise']);}function _0x27c1ac(_0x77ffac,_0x1fb279){var _0x4ed38b=_0x32d01e;_0x4d594c[_0x4ed38b('0x1e6d')]({'controller':_0x4ed38b('0x20dd'),'controllerAs':'vm','templateUrl':_0x2510ca,'parent':angular[_0x4ed38b('0x1aa8')](_0x31cce9[_0x4ed38b('0x54c')]),'targetEvent':_0x77ffac,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x1fb279,'zendeskAccounts':_0x151b1e[_0x4ed38b('0x31e')][_0x4ed38b('0x580')],'license':_0x151b1e['license'],'setting':_0x151b1e['setting'],'crudPermissions':_0x151b1e[_0x4ed38b('0xada')]}});}function _0x2ba454(_0x41f0c6){var _0x7385b=_0x32d01e;_0x3c9bc5[_0x7385b('0xac8')][_0x7385b('0x926')]({'id':_0x41f0c6['id']})[_0x7385b('0x1dc2')]['then'](function(){var _0x2694ed=_0x7385b;_0x51538b()[_0x2694ed('0xf6d')](_0x151b1e[_0x2694ed('0x31e')][_0x2694ed('0x580')],{'id':_0x41f0c6['id']}),_0x151b1e[_0x2694ed('0x31e')][_0x2694ed('0xd15')]-=0x1,!_0x151b1e[_0x2694ed('0x31e')][_0x2694ed('0x580')]['length']&&_0x151b1e[_0x2694ed('0x15da')](),_0x267525[_0x2694ed('0xe10')]({'title':_0x51538b()['startCase'](_0x2694ed('0x243e'))+_0x2694ed('0x8bb'),'msg':_0x41f0c6[_0x2694ed('0x25d6')]?_0x41f0c6[_0x2694ed('0x25d6')]+_0x2694ed('0xcd9'):''});})[_0x7385b('0x253d')](function(_0x3d0059){var _0x2e22ee=_0x7385b;if(_0x3d0059[_0x2e22ee('0x10fd')]&&_0x3d0059[_0x2e22ee('0x10fd')][_0x2e22ee('0x4c6')]&&_0x3d0059[_0x2e22ee('0x10fd')]['errors'][_0x2e22ee('0x2587')]){_0x151b1e[_0x2e22ee('0x4c6')]=_0x3d0059['data']['errors']||[{'message':_0x3d0059['toString'](),'type':'SYSTEM:DELETEintZendeskAccount'}];for(var _0x1f8f54=0x0;_0x1f8f54<_0x3d0059[_0x2e22ee('0x10fd')][_0x2e22ee('0x4c6')][_0x2e22ee('0x2587')];_0x1f8f54++){_0x267525[_0x2e22ee('0x187f')]({'title':_0x3d0059[_0x2e22ee('0x10fd')][_0x2e22ee('0x4c6')][_0x1f8f54]['type'],'msg':_0x3d0059[_0x2e22ee('0x10fd')][_0x2e22ee('0x4c6')][_0x1f8f54][_0x2e22ee('0x1402')]});}}else _0x267525[_0x2e22ee('0x187f')]({'title':_0x3d0059[_0x2e22ee('0x2fa')]?'API:'+_0x3d0059[_0x2e22ee('0x2fa')]+_0x2e22ee('0x169e')+_0x3d0059[_0x2e22ee('0x24df')]:_0x2e22ee('0x5f6'),'msg':_0x3d0059['data']?JSON[_0x2e22ee('0xa48')](_0x3d0059['data'][_0x2e22ee('0x1402')]):_0x3d0059['message']||_0x3d0059['toString']()});});}function _0x5a3936(){var _0x268fdb=_0x32d01e,_0x36bf6d=angular[_0x268fdb('0x20a')](_0x151b1e[_0x268fdb('0xb0f')]);return _0x151b1e[_0x268fdb('0xb0f')]=[],_0x36bf6d;}function _0xcd7eac(_0x2dae71){var _0x29ee7d=_0x32d01e,_0x337af5=_0x4d594c[_0x29ee7d('0x281e')]()[_0x29ee7d('0x110a')](_0x29ee7d('0x11db'))['htmlContent'](_0x29ee7d('0x389')+_0x151b1e[_0x29ee7d('0xb0f')][_0x29ee7d('0x2587')]+_0x29ee7d('0x1443')+_0x29ee7d('0x210d'))[_0x29ee7d('0x5b5')](_0x29ee7d('0x11cd'))[_0x29ee7d('0x116d')](_0x2dae71)['ok']('OK')[_0x29ee7d('0x2030')](_0x29ee7d('0x2410'));_0x4d594c[_0x29ee7d('0x1e6d')](_0x337af5)[_0x29ee7d('0xaa5')](function(){var _0x120ec3=_0x29ee7d;_0x151b1e[_0x120ec3('0xb0f')][_0x120ec3('0x15b5')](function(_0x5509d7){_0x2ba454(_0x5509d7);}),_0x151b1e['selectedZendeskAccounts']=[];});}function _0x5487b9(){var _0x3dc7d5=_0x32d01e;_0x151b1e[_0x3dc7d5('0xb0f')]=[];}function _0xf7cef3(){var _0x1f22c4=_0x32d01e;_0x151b1e[_0x1f22c4('0xb0f')]=_0x151b1e[_0x1f22c4('0x31e')]['rows'];}}const _0x3339af=_0x426ba5;_0x4f6741[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state','$location',_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x1497'),_0x1a8446('0x1c5b'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),'crudPermissions'];function _0x4f6741(_0x1fe5e2,_0x2e590f,_0x8172c,_0x3f1408,_0x23ed9f,_0x4d9331,_0x58e069,_0x31b3db,_0x5edc34,_0xc7e467,_0x60216e,_0x1ba891,_0x1d7558,_0x2c2537){var _0x28f38e=_0x1a8446,_0x5d2c56=this;_0x5d2c56[_0x28f38e('0x7fc')]=_0x60216e[_0x28f38e('0xacc')](),_0x5d2c56[_0x28f38e('0x4c6')]=[],_0x5d2c56[_0x28f38e('0x143f')]=_0x1d7558,_0x5d2c56[_0x28f38e('0x1202')]=_0x1ba891,_0x5d2c56[_0x28f38e('0xada')]=_0x2c2537,_0x5d2c56[_0x28f38e('0x9f0')]={},_0x5d2c56[_0x28f38e('0x1d53')]=_0x5d2c56[_0x28f38e('0x143f')]&&_0x5d2c56[_0x28f38e('0x143f')][_0x28f38e('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5d2c56['title']=_0x28f38e('0x939'),_0x5d2c56[_0x28f38e('0x1c5b')]=angular[_0x28f38e('0x20a')](_0x5edc34),_0x5d2c56['zohoAccounts']=_0x31b3db,_0x5d2c56[_0x28f38e('0x2170')]=![];!_0x5d2c56[_0x28f38e('0x1c5b')]&&(_0x5d2c56[_0x28f38e('0x1c5b')]={'host':_0x28f38e('0x1259'),'zone':'EU','serverUrl':_0x8172c['protocol']()+_0x28f38e('0x356')+_0x8172c['host']()+(_0x8172c[_0x28f38e('0x191')]()?':'+_0x8172c[_0x28f38e('0x191')]():'')},_0x5d2c56[_0x28f38e('0x110a')]='INTEGRATIONS.NEW_ZOHOACCOUNT',_0x5d2c56['newZohoAccount']=!![]);_0x5d2c56[_0x28f38e('0xce3')]=_0x4e2400,_0x5d2c56[_0x28f38e('0x22dc')]=_0x31d1d2,_0x5d2c56[_0x28f38e('0x1815')]=_0x2e3c11,_0x5d2c56[_0x28f38e('0xc09')]=_0x2a72a1,_0x5d2c56['closeDialog']=_0xb9dcea;function _0x4e2400(){var _0x2338fa=_0x28f38e;_0x5d2c56['errors']=[],_0xc7e467['intZohoAccount'][_0x2338fa('0x242b')](_0x5d2c56[_0x2338fa('0x1c5b')])[_0x2338fa('0x1dc2')][_0x2338fa('0xaa5')](function(_0xc42cf2){var _0x20302b=_0x2338fa;_0x5d2c56['zohoAccounts'][_0x20302b('0x6ee')](_0xc42cf2['toJSON']()),_0x58e069['success']({'title':'ZohoAccount\x20properly\x20created','msg':_0x5d2c56[_0x20302b('0x1c5b')]['name']?_0x5d2c56[_0x20302b('0x1c5b')][_0x20302b('0x25d6')]+'\x20has\x20been\x20created!':''}),_0xb9dcea(_0xc42cf2);})[_0x2338fa('0x253d')](function(_0x41348b){var _0x13685a=_0x2338fa;if(_0x41348b['data']&&_0x41348b[_0x13685a('0x10fd')][_0x13685a('0x4c6')]&&_0x41348b[_0x13685a('0x10fd')][_0x13685a('0x4c6')][_0x13685a('0x2587')]){_0x5d2c56[_0x13685a('0x4c6')]=_0x41348b[_0x13685a('0x10fd')]['errors']||[{'message':_0x41348b['toString'](),'type':'api.intZohoAccount.save'}];for(var _0x4fc825=0x0;_0x4fc825<_0x41348b[_0x13685a('0x10fd')][_0x13685a('0x4c6')][_0x13685a('0x2587')];_0x4fc825+=0x1){_0x58e069[_0x13685a('0x187f')]({'title':_0x41348b[_0x13685a('0x10fd')]['errors'][_0x4fc825]['type'],'msg':_0x41348b[_0x13685a('0x10fd')][_0x13685a('0x4c6')][_0x4fc825][_0x13685a('0x1402')]});}}else _0x58e069[_0x13685a('0x187f')]({'title':_0x41348b[_0x13685a('0x2fa')]?_0x13685a('0x16c2')+_0x41348b['status']+_0x13685a('0x169e')+_0x41348b['statusText']:_0x13685a('0x1c53'),'msg':_0x41348b['data']?JSON[_0x13685a('0xa48')](_0x41348b[_0x13685a('0x10fd')][_0x13685a('0x1402')]):_0x41348b[_0x13685a('0x684')]()});});}function _0x31d1d2(){var _0x25c1ed=_0x28f38e;_0x5d2c56['errors']=[],_0xc7e467[_0x25c1ed('0x1c57')]['update']({'id':_0x5d2c56[_0x25c1ed('0x1c5b')]['id']},_0x5d2c56[_0x25c1ed('0x1c5b')])['$promise'][_0x25c1ed('0xaa5')](function(_0x2ee8f7){var _0x130997=_0x25c1ed,_0x2486c0=_0x51538b()['find'](_0x5d2c56[_0x130997('0x1497')],{'id':_0x2ee8f7['id']});_0x2486c0&&_0x51538b()[_0x130997('0x283c')](_0x2486c0,_0x51538b()[_0x130997('0x104e')](_0x2ee8f7[_0x130997('0x256a')](),_0x51538b()[_0x130997('0x9f2')](_0x2486c0))),_0x58e069['success']({'title':_0x130997('0x18e3'),'msg':_0x5d2c56[_0x130997('0x1c5b')][_0x130997('0x25d6')]?_0x5d2c56[_0x130997('0x1c5b')]['name']+_0x130997('0x20bf'):''}),_0xb9dcea(_0x2ee8f7);})[_0x25c1ed('0x253d')](function(_0x2364bf){var _0x426993=_0x25c1ed;if(_0x2364bf[_0x426993('0x10fd')]&&_0x2364bf[_0x426993('0x10fd')]['errors']&&_0x2364bf['data'][_0x426993('0x4c6')][_0x426993('0x2587')]){_0x5d2c56['errors']=_0x2364bf[_0x426993('0x10fd')][_0x426993('0x4c6')]||[{'message':_0x2364bf[_0x426993('0x684')](),'type':_0x426993('0xdbc')}];for(var _0x2b8fcf=0x0;_0x2b8fcf<_0x2364bf[_0x426993('0x10fd')]['errors'][_0x426993('0x2587')];_0x2b8fcf++){_0x58e069[_0x426993('0x187f')]({'title':_0x2364bf['data'][_0x426993('0x4c6')][_0x2b8fcf][_0x426993('0x6c8')],'msg':_0x2364bf[_0x426993('0x10fd')][_0x426993('0x4c6')][_0x2b8fcf][_0x426993('0x1402')]});}}else _0x58e069[_0x426993('0x187f')]({'title':_0x2364bf[_0x426993('0x2fa')]?_0x426993('0x16c2')+_0x2364bf['status']+_0x426993('0x169e')+_0x2364bf['statusText']:'api.intZohoAccount.update','msg':_0x2364bf[_0x426993('0x10fd')]?JSON[_0x426993('0xa48')](_0x2364bf[_0x426993('0x10fd')][_0x426993('0x1402')]):_0x2364bf[_0x426993('0x684')]()});});}function _0x2e3c11(_0x1a8677){var _0x41e181=_0x28f38e;_0x5d2c56[_0x41e181('0x4c6')]=[];var _0x4b41c5=_0x3f1408[_0x41e181('0x281e')]()[_0x41e181('0x110a')]('Are\x20you\x20sure?')[_0x41e181('0x15af')](_0x41e181('0x858'))[_0x41e181('0x5b5')](_0x41e181('0xa99'))['ok'](_0x41e181('0x1e76'))[_0x41e181('0x2030')](_0x41e181('0x9c6'))[_0x41e181('0x116d')](_0x1a8677);_0x3f1408[_0x41e181('0x1e6d')](_0x4b41c5)[_0x41e181('0xaa5')](function(){var _0x1d664a=_0x41e181;_0xc7e467[_0x1d664a('0x1c57')][_0x1d664a('0x926')]({'id':_0x5d2c56[_0x1d664a('0x1c5b')]['id']})['$promise']['then'](function(){var _0x33f947=_0x1d664a;_0x51538b()[_0x33f947('0xf6d')](_0x5d2c56[_0x33f947('0x1497')],{'id':_0x5d2c56[_0x33f947('0x1c5b')]['id']}),_0x58e069[_0x33f947('0xe10')]({'title':_0x33f947('0x16f'),'msg':(_0x5d2c56[_0x33f947('0x1c5b')][_0x33f947('0x25d6')]||'zohoAccount')+_0x33f947('0xcd9')}),_0xb9dcea(_0x5d2c56['zohoAccount']);})[_0x1d664a('0x253d')](function(_0x36790e){var _0x3cea48=_0x1d664a;if(_0x36790e['data']&&_0x36790e[_0x3cea48('0x10fd')][_0x3cea48('0x4c6')]&&_0x36790e[_0x3cea48('0x10fd')][_0x3cea48('0x4c6')][_0x3cea48('0x2587')]){_0x5d2c56['errors']=_0x36790e[_0x3cea48('0x10fd')][_0x3cea48('0x4c6')]||[{'message':_0x36790e[_0x3cea48('0x684')](),'type':'api.intZohoAccount.delete'}];for(var _0x2679a9=0x0;_0x2679a9<_0x36790e[_0x3cea48('0x10fd')][_0x3cea48('0x4c6')][_0x3cea48('0x2587')];_0x2679a9++){_0x58e069['error']({'title':_0x36790e[_0x3cea48('0x10fd')][_0x3cea48('0x4c6')][_0x2679a9][_0x3cea48('0x6c8')],'msg':_0x36790e[_0x3cea48('0x10fd')][_0x3cea48('0x4c6')][_0x2679a9][_0x3cea48('0x1402')]});}}else _0x58e069['error']({'title':_0x36790e[_0x3cea48('0x2fa')]?_0x3cea48('0x16c2')+_0x36790e[_0x3cea48('0x2fa')]+_0x3cea48('0x169e')+_0x36790e['statusText']:'api.intZohoAccount.delete','msg':_0x36790e['data']?JSON[_0x3cea48('0xa48')](_0x36790e[_0x3cea48('0x10fd')][_0x3cea48('0x1402')]):_0x36790e[_0x3cea48('0x1402')]||_0x36790e[_0x3cea48('0x684')]()});});},function(){});}function _0x2a72a1(_0x451ce7){return _0x451ce7===null?undefined:new Date(_0x451ce7);}function _0xb9dcea(_0x3ec89d){var _0x797da8=_0x28f38e;_0x3f1408[_0x797da8('0x1120')](_0x3ec89d);}}const _0x137071=_0x4f6741,_0x2e08ba=_0x4fb511['p']+_0x1a8446('0x2520'),_0x2e4bcb=_0x4fb511['p']+'src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x301001[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth'];function _0x301001(_0x333917,_0x47d72a,_0x3dc880,_0xcf2405,_0x45fc32){var _0x34625f=_0x1a8446,_0x166ca2=this;_0x166ca2[_0x34625f('0x7fc')]=_0x45fc32[_0x34625f('0xacc')](),_0x166ca2[_0x34625f('0x1c5b')]={},_0x166ca2[_0x34625f('0x7d9')]={},_0x166ca2[_0x34625f('0x555')]=[],_0x166ca2[_0x34625f('0x18fe')]=-0x1,_0x166ca2['crudPermissions'],_0x166ca2[_0x34625f('0x2e')]=_0xc9c0b0,_0x166ca2[_0x34625f('0x236d')]=_0x114fe8,_0x166ca2['createOrEditZohoConfiguration']=_0x3fcea3,_0x166ca2['deleteZohoConfiguration']=_0x28baa9,_0x166ca2['selectChangedAdvanced']=_0x4bab2;function _0x4bab2(){var _0x4daf21=_0x34625f;return _0x3dc880['intZohoConfiguration'][_0x4daf21('0x264e')]({'id':_0x166ca2['zohoConfiguration']['id']},_0x166ca2[_0x4daf21('0x7d9')])[_0x4daf21('0x1dc2')][_0x4daf21('0xaa5')](function(){var _0x2e1994=_0x4daf21;_0xcf2405[_0x2e1994('0xe10')]({'title':'Module\x20updated!','msg':_0x2e1994('0x1df7')});})[_0x4daf21('0x253d')](function(_0x42e3dd){var _0x2a048a=_0x4daf21;_0xcf2405[_0x2a048a('0x187f')]({'title':_0x42e3dd['status']?_0x2a048a('0x16c2')+_0x42e3dd[_0x2a048a('0x2fa')]+'\x20-\x20'+_0x42e3dd['statusText']:'SYSTEM:UPDATECONFIGURATIONFIELD','msg':_0x42e3dd[_0x2a048a('0x10fd')]?JSON[_0x2a048a('0xa48')](_0x42e3dd[_0x2a048a('0x10fd')]):_0x42e3dd[_0x2a048a('0x684')]()});});}function _0xc9c0b0(_0x2f78c9,_0x3b3d85){var _0x5ef1be=_0x34625f;_0x166ca2['zohoAccount']=_0x2f78c9,_0x166ca2[_0x5ef1be('0xada')]=typeof _0x3b3d85!==_0x5ef1be('0x1574')?_0x3b3d85:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3dc880['intZohoAccount']['getConfigurations']({'id':_0x166ca2[_0x5ef1be('0x1c5b')]['id'],'sort':_0x5ef1be('0xd82')})[_0x5ef1be('0x1dc2')][_0x5ef1be('0xaa5')](function(_0x5b9338){var _0xdd9515=_0x5ef1be;return _0x166ca2['configurations']=_0x5b9338[_0xdd9515('0x580')]?_0x5b9338[_0xdd9515('0x580')]:[],_0x166ca2['configurations'][_0xdd9515('0x2587')]&&_0x166ca2[_0xdd9515('0x236d')](0x0),_0x3dc880[_0xdd9515('0x14e7')][_0xdd9515('0x2122')]({'nolimit':!![],'sort':_0xdd9515('0x25d6')})[_0xdd9515('0x1dc2')];})[_0x5ef1be('0xaa5')](function(_0x5c28b6){var _0x32a1f7=_0x5ef1be;_0x166ca2[_0x32a1f7('0x147e')]=_0x5c28b6[_0x32a1f7('0x580')]?_0x5c28b6[_0x32a1f7('0x580')]:[],_0x166ca2[_0x32a1f7('0x2032')]=_0x51538b()[_0x32a1f7('0x184a')](_0x166ca2['variables'],'id');})[_0x5ef1be('0x253d')](function(_0x355cc4){var _0x1f700e=_0x5ef1be;_0xcf2405['error']({'title':_0x355cc4[_0x1f700e('0x2fa')]?_0x1f700e('0x16c2')+_0x355cc4[_0x1f700e('0x2fa')]+_0x1f700e('0x169e')+_0x355cc4[_0x1f700e('0x24df')]:_0x1f700e('0x24c9'),'msg':_0x355cc4[_0x1f700e('0x10fd')]?JSON['stringify'](_0x355cc4[_0x1f700e('0x10fd')]):_0x355cc4[_0x1f700e('0x684')]()});});}function _0x114fe8(_0x54caef){var _0x44cfa6=_0x34625f;_0x166ca2[_0x44cfa6('0x7d9')]=_0x166ca2[_0x44cfa6('0x555')][_0x54caef],_0x166ca2['selectedZohoConfiguration']=_0x54caef,_0x3dc880[_0x44cfa6('0x8f0')]['getSubjects']({'id':_0x166ca2['zohoConfiguration']['id']})[_0x44cfa6('0x1dc2')]['then'](function(_0x5504d4){var _0x3ed402=_0x44cfa6;return _0x166ca2[_0x3ed402('0xc3f')]=_0x5504d4['rows']?_0x5504d4[_0x3ed402('0x580')]:[],_0x3dc880[_0x3ed402('0x8f0')][_0x3ed402('0x2103')]({'id':_0x166ca2[_0x3ed402('0x7d9')]['id']})[_0x3ed402('0x1dc2')];})[_0x44cfa6('0xaa5')](function(_0x43bb70){var _0x4f03fa=_0x44cfa6;return _0x166ca2['descriptions']=_0x43bb70['rows']?_0x43bb70['rows']:[],_0x3dc880[_0x4f03fa('0x8f0')][_0x4f03fa('0x1450')]({'id':_0x166ca2[_0x4f03fa('0x7d9')]['id']})[_0x4f03fa('0x1dc2')];})['then'](function(_0x2ce8d5){var _0xbaf25b=_0x44cfa6;_0x166ca2[_0xbaf25b('0x13a')]=_0x2ce8d5[_0xbaf25b('0x580')]?_0x2ce8d5[_0xbaf25b('0x580')]:[];})[_0x44cfa6('0x253d')](function(_0x34afc4){var _0x197e32=_0x44cfa6;_0xcf2405[_0x197e32('0x187f')]({'title':_0x34afc4[_0x197e32('0x2fa')]?_0x197e32('0x16c2')+_0x34afc4['status']+'\x20-\x20'+_0x34afc4[_0x197e32('0x24df')]:'SYSTEM:GETConfigurations','msg':_0x34afc4[_0x197e32('0x10fd')]?JSON['stringify'](_0x34afc4[_0x197e32('0x10fd')]):_0x34afc4[_0x197e32('0x684')]()});});}function _0x3fcea3(_0x38e0a5,_0x46a61e){var _0x45a549=_0x34625f;_0x333917['show']({'controller':_0x45a549('0x1d4b'),'controllerAs':'vm','templateUrl':_0x2e08ba,'parent':angular[_0x45a549('0x1aa8')](_0x47d72a[_0x45a549('0x54c')]),'targetEvent':_0x38e0a5,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0x46a61e,'configurations':_0x166ca2['configurations'],'license':null,'setting':null,'crudPermissions':_0x166ca2[_0x45a549('0xada')]}})[_0x45a549('0x1889')](function(){var _0x5885d8=_0x45a549;_0x166ca2[_0x5885d8('0x236d')](0x0);});}function _0x28baa9(_0x1dd896,_0x427af3){var _0x337be7=_0x34625f,_0x4ddd72=_0x333917[_0x337be7('0x281e')]()[_0x337be7('0x110a')](_0x337be7('0x4ab'))['htmlContent'](''+(_0x427af3[_0x337be7('0x25d6')]||_0x337be7('0x7d9'))+_0x337be7('0x697')+_0x337be7('0x210d'))[_0x337be7('0x5b5')](_0x337be7('0x27df'))[_0x337be7('0x116d')](_0x1dd896)['ok']('OK')[_0x337be7('0x2030')](_0x337be7('0x2410'));_0x333917[_0x337be7('0x1e6d')](_0x4ddd72)[_0x337be7('0xaa5')](function(){var _0x5bae70=_0x337be7;_0x3dc880['intZohoConfiguration'][_0x5bae70('0x926')]({'id':_0x427af3['id']})['$promise'][_0x5bae70('0xaa5')](function(){var _0x519af9=_0x5bae70;_0x51538b()[_0x519af9('0xf6d')](_0x166ca2[_0x519af9('0x555')],{'id':_0x427af3['id']}),_0xcf2405[_0x519af9('0xe10')]({'title':'ZohoConfiguration\x20deleted!','msg':_0x427af3[_0x519af9('0x25d6')]?_0x427af3[_0x519af9('0x25d6')]+_0x519af9('0xcd9'):''});})[_0x5bae70('0x253d')](function(_0x1ed87c){var _0x2d40e6=_0x5bae70;_0xcf2405[_0x2d40e6('0x187f')]({'title':_0x1ed87c[_0x2d40e6('0x2fa')]?_0x2d40e6('0x16c2')+_0x1ed87c['status']+'\x20-\x20'+_0x1ed87c[_0x2d40e6('0x24df')]:_0x2d40e6('0x2549'),'msg':_0x1ed87c['data']?JSON[_0x2d40e6('0xa48')](_0x1ed87c[_0x2d40e6('0x10fd')]):_0x1ed87c[_0x2d40e6('0x684')]()});})['finally'](function(){var _0x4b71cc=_0x5bae70;_0x166ca2[_0x4b71cc('0x236d')](0x0);});},function(){var _0x1b7eea=_0x337be7;console[_0x1b7eea('0x18d5')](_0x1b7eea('0x2410'));});}_0x166ca2['selectedSubjects']=[],_0x166ca2[_0x34625f('0x21c5')]=_0x3db52c,_0x166ca2[_0x34625f('0x1e1e')]=_0x3e9948,_0x166ca2[_0x34625f('0x911')]=_0x950ad0;function _0x3db52c(_0x4ee58d,_0x10c66f){var _0x28efaf=_0x34625f;_0x333917[_0x28efaf('0x1e6d')]({'controller':_0x28efaf('0x33c'),'controllerAs':'vm','templateUrl':_0x2e4bcb,'parent':angular[_0x28efaf('0x1aa8')](_0x47d72a[_0x28efaf('0x54c')]),'targetEvent':_0x4ee58d,'clickOutsideToClose':!![],'locals':{'type':_0x28efaf('0x2101'),'item':_0x10c66f,'items':_0x166ca2['subjects'],'configuration':_0x166ca2['zohoConfiguration'],'account':_0x166ca2['zohoAccount'],'license':null,'setting':null,'crudPermissions':_0x166ca2[_0x28efaf('0xada')]}});}function _0x3389c0(_0x3708da){var _0x230292=_0x34625f;_0x3dc880['intZohoField'][_0x230292('0x926')]({'id':_0x3708da['id']})['$promise'][_0x230292('0xaa5')](function(){var _0x2bf5fe=_0x230292;_0x51538b()[_0x2bf5fe('0xf6d')](_0x166ca2['subjects'],{'id':_0x3708da['id']}),_0xcf2405[_0x2bf5fe('0xe10')]({'title':_0x2bf5fe('0xcad'),'msg':_0x2bf5fe('0x1732')});})[_0x230292('0x253d')](function(_0x3374a8){var _0xe32cfb=_0x230292;_0xcf2405[_0xe32cfb('0x187f')]({'title':_0x3374a8['status']?_0xe32cfb('0x16c2')+_0x3374a8[_0xe32cfb('0x2fa')]+_0xe32cfb('0x169e')+_0x3374a8[_0xe32cfb('0x24df')]:_0xe32cfb('0xdd7'),'msg':_0x3374a8[_0xe32cfb('0x10fd')]?JSON[_0xe32cfb('0xa48')](_0x3374a8[_0xe32cfb('0x10fd')]):_0x3374a8[_0xe32cfb('0x684')]()});});}function _0x3e9948(_0x2c71b4,_0x4ab5a8){var _0x94b175=_0x34625f,_0x44871e=_0x333917[_0x94b175('0x281e')]()[_0x94b175('0x110a')](_0x94b175('0x16b5'))[_0x94b175('0x102e')](_0x94b175('0xd7')+_0x94b175('0x210d'))[_0x94b175('0x5b5')]('delete\x20subject')[_0x94b175('0x116d')](_0x2c71b4)['ok']('OK')[_0x94b175('0x2030')](_0x94b175('0x2410'));_0x333917[_0x94b175('0x1e6d')](_0x44871e)[_0x94b175('0xaa5')](function(){_0x3389c0(_0x4ab5a8);},function(){var _0x42ad41=_0x94b175;console[_0x42ad41('0x18d5')](_0x42ad41('0x2410'));});}function _0x950ad0(_0x4c4d3f){var _0x1775c0=_0x34625f,_0x2f65a5=_0x333917[_0x1775c0('0x281e')]()[_0x1775c0('0x110a')](_0x1775c0('0x6f0'))['htmlContent'](_0x1775c0('0x389')+_0x166ca2[_0x1775c0('0xf7d')][_0x1775c0('0x2587')]+'\x20selected'+_0x1775c0('0x210d'))[_0x1775c0('0x5b5')](_0x1775c0('0xfcd'))[_0x1775c0('0x116d')](_0x4c4d3f)['ok']('OK')[_0x1775c0('0x2030')]('CANCEL');_0x333917['show'](_0x2f65a5)['then'](function(){var _0x1741a5=_0x1775c0;_0x166ca2[_0x1741a5('0xf7d')]['forEach'](function(_0x34b431){_0x3389c0(_0x34b431);}),_0x166ca2[_0x1741a5('0xf7d')]=[];});}_0x166ca2['selectedDescriptions']=[],_0x166ca2[_0x34625f('0x19db')]=_0x4e908d,_0x166ca2[_0x34625f('0x12af')]=_0x27f56e,_0x166ca2[_0x34625f('0x416')]=_0x4d23de;function _0x4e908d(_0x56028d,_0x15f5fb){var _0x50a19d=_0x34625f;_0x333917['show']({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0x2e4bcb,'parent':angular[_0x50a19d('0x1aa8')](_0x47d72a[_0x50a19d('0x54c')]),'targetEvent':_0x56028d,'clickOutsideToClose':!![],'locals':{'type':_0x50a19d('0x23d0'),'item':_0x15f5fb,'items':_0x166ca2['descriptions'],'configuration':_0x166ca2[_0x50a19d('0x7d9')],'account':_0x166ca2[_0x50a19d('0x1c5b')],'license':null,'setting':null,'crudPermissions':_0x166ca2[_0x50a19d('0xada')]}});}function _0x1d7705(_0x812f54){var _0x4810a9=_0x34625f;_0x3dc880[_0x4810a9('0x16a3')]['delete']({'id':_0x812f54['id']})['$promise'][_0x4810a9('0xaa5')](function(){var _0x1adc4b=_0x4810a9;_0x51538b()[_0x1adc4b('0xf6d')](_0x166ca2[_0x1adc4b('0x27b9')],{'id':_0x812f54['id']}),_0xcf2405['success']({'title':_0x1adc4b('0x1d35'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x4810a9('0x253d')](function(_0x127d92){var _0x3cb3bb=_0x4810a9;_0xcf2405['error']({'title':_0x127d92['status']?_0x3cb3bb('0x16c2')+_0x127d92[_0x3cb3bb('0x2fa')]+'\x20-\x20'+_0x127d92['statusText']:_0x3cb3bb('0xdd7'),'msg':_0x127d92[_0x3cb3bb('0x10fd')]?JSON[_0x3cb3bb('0xa48')](_0x127d92[_0x3cb3bb('0x10fd')]):_0x127d92[_0x3cb3bb('0x684')]()});});}function _0x27f56e(_0x30de09,_0x1d2f16){var _0x1bf77e=_0x34625f,_0x222e13=_0x333917['confirm']()[_0x1bf77e('0x110a')](_0x1bf77e('0x19b6'))['htmlContent']('Description'+'\x20will\x20be\x20deleted.')[_0x1bf77e('0x5b5')](_0x1bf77e('0x8b2'))[_0x1bf77e('0x116d')](_0x30de09)['ok']('OK')[_0x1bf77e('0x2030')](_0x1bf77e('0x2410'));_0x333917[_0x1bf77e('0x1e6d')](_0x222e13)[_0x1bf77e('0xaa5')](function(){_0x1d7705(_0x1d2f16);},function(){var _0x84c818=_0x1bf77e;console['log'](_0x84c818('0x2410'));});}function _0x4d23de(_0x564545){var _0x5cfbbf=_0x34625f,_0x3087e6=_0x333917['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x5cfbbf('0x102e')](_0x5cfbbf('0x389')+_0x166ca2['selectedDescriptions'][_0x5cfbbf('0x2587')]+_0x5cfbbf('0x1443')+_0x5cfbbf('0x210d'))[_0x5cfbbf('0x5b5')](_0x5cfbbf('0xcfb'))[_0x5cfbbf('0x116d')](_0x564545)['ok']('OK')[_0x5cfbbf('0x2030')](_0x5cfbbf('0x2410'));_0x333917[_0x5cfbbf('0x1e6d')](_0x3087e6)[_0x5cfbbf('0xaa5')](function(){var _0x361846=_0x5cfbbf;_0x166ca2[_0x361846('0x1b51')][_0x361846('0x15b5')](function(_0x3d68c7){_0x1d7705(_0x3d68c7);}),_0x166ca2[_0x361846('0x1b51')]=[];});}_0x166ca2[_0x34625f('0x490')]=[],_0x166ca2[_0x34625f('0x1572')]=_0x106fa6,_0x166ca2[_0x34625f('0x353')]=_0x1fc204,_0x166ca2['deleteSelectedFields']=_0x401ba5;function _0x106fa6(_0x43ac52,_0x54b15a){var _0x3f4238=_0x34625f;_0x333917[_0x3f4238('0x1e6d')]({'controller':_0x3f4238('0x33c'),'controllerAs':'vm','templateUrl':_0x2e4bcb,'parent':angular[_0x3f4238('0x1aa8')](_0x47d72a['body']),'targetEvent':_0x43ac52,'clickOutsideToClose':!![],'locals':{'type':_0x3f4238('0x5f2'),'item':_0x54b15a,'items':_0x166ca2[_0x3f4238('0x13a')],'configuration':_0x166ca2['zohoConfiguration'],'account':_0x166ca2[_0x3f4238('0x1c5b')],'license':null,'setting':null,'crudPermissions':_0x166ca2['crudPermissions']}});}function _0x320f1d(_0x2f1417){var _0x2270bf=_0x34625f;_0x3dc880['intZohoField']['delete']({'id':_0x2f1417['id']})[_0x2270bf('0x1dc2')]['then'](function(){var _0x5a7744=_0x2270bf;_0x51538b()[_0x5a7744('0xf6d')](_0x166ca2[_0x5a7744('0x13a')],{'id':_0x2f1417['id']}),_0xcf2405[_0x5a7744('0xe10')]({'title':_0x5a7744('0x25e1'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x2270bf('0x253d')](function(_0x9c234b){var _0x284bcd=_0x2270bf;_0xcf2405[_0x284bcd('0x187f')]({'title':_0x9c234b['status']?'API:'+_0x9c234b[_0x284bcd('0x2fa')]+_0x284bcd('0x169e')+_0x9c234b[_0x284bcd('0x24df')]:_0x284bcd('0xdd7'),'msg':_0x9c234b[_0x284bcd('0x10fd')]?JSON[_0x284bcd('0xa48')](_0x9c234b[_0x284bcd('0x10fd')]):_0x9c234b[_0x284bcd('0x684')]()});});}function _0x1fc204(_0x11af53,_0x5e8b10){var _0x45c90b=_0x34625f,_0x58c310=_0x333917[_0x45c90b('0x281e')]()[_0x45c90b('0x110a')](_0x45c90b('0x27fc'))['htmlContent']('Field'+'\x20will\x20be\x20deleted.')[_0x45c90b('0x5b5')]('delete\x20field')[_0x45c90b('0x116d')](_0x11af53)['ok']('OK')[_0x45c90b('0x2030')](_0x45c90b('0x2410'));_0x333917[_0x45c90b('0x1e6d')](_0x58c310)[_0x45c90b('0xaa5')](function(){_0x320f1d(_0x5e8b10);},function(){var _0x593b5f=_0x45c90b;console[_0x593b5f('0x18d5')](_0x593b5f('0x2410'));});}function _0x401ba5(_0x54a9da){var _0x661ab3=_0x34625f,_0x3502e5=_0x333917[_0x661ab3('0x281e')]()[_0x661ab3('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x661ab3('0x102e')](_0x661ab3('0x389')+_0x166ca2[_0x661ab3('0x490')][_0x661ab3('0x2587')]+'\x20selected'+_0x661ab3('0x210d'))['ariaLabel'](_0x661ab3('0xefc'))[_0x661ab3('0x116d')](_0x54a9da)['ok']('OK')[_0x661ab3('0x2030')](_0x661ab3('0x2410'));_0x333917['show'](_0x3502e5)[_0x661ab3('0xaa5')](function(){var _0x4d801c=_0x661ab3;_0x166ca2[_0x4d801c('0x490')][_0x4d801c('0x15b5')](function(_0x4c979a){_0x320f1d(_0x4c979a);}),_0x166ca2[_0x4d801c('0x490')]=[];});}}const _0x19c4d0=_0x301001;_0x5cb5d0[_0x1a8446('0x1e33')]=['$scope','$state',_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x555'),_0x1a8446('0x7d9'),'api','Auth','license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x5cb5d0(_0x1e0d9f,_0x26ff3f,_0x5d4df6,_0x3918b8,_0x491e81,_0x2084c1,_0x39fdc2,_0x1357f9,_0x4b5f3d,_0x16d752,_0x30d2a0,_0x22264e,_0x3abcfd,_0x152aae){var _0x3763b6=_0x1a8446,_0x2c185c=this;_0x2c185c['currentUser']=_0x30d2a0['getCurrentUser'](),_0x2c185c['errors']=[],_0x2c185c['setting']=_0x3abcfd,_0x2c185c[_0x3763b6('0x1202')]=_0x22264e,_0x2c185c[_0x3763b6('0xada')]=_0x152aae,_0x2c185c[_0x3763b6('0x9f0')]={},_0x2c185c[_0x3763b6('0x1d53')]=_0x2c185c[_0x3763b6('0x143f')]&&_0x2c185c['setting'][_0x3763b6('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c185c[_0x3763b6('0x110a')]=_0x3763b6('0x2339'),_0x2c185c[_0x3763b6('0x7d9')]=angular[_0x3763b6('0x20a')](_0x4b5f3d),_0x2c185c[_0x3763b6('0x555')]=_0x1357f9,_0x2c185c[_0x3763b6('0x252e')]=![];!_0x2c185c[_0x3763b6('0x7d9')]&&(_0x2c185c[_0x3763b6('0x7d9')]={'channel':_0x3763b6('0x1b9'),'type':'inbound'},_0x2c185c[_0x3763b6('0x110a')]='INTEGRATIONS.NEW_ZOHOCONFIGURATION',_0x2c185c['newZohoConfiguration']=!![]);_0x2c185c[_0x3763b6('0x1b22')]=_0x491860,_0x2c185c[_0x3763b6('0x2a1')]=_0x244b0d,_0x2c185c[_0x3763b6('0x16fe')]=_0x115119,_0x2c185c[_0x3763b6('0xc09')]=_0x30a3a3,_0x2c185c[_0x3763b6('0x2023')]=_0x2ea0d2;function _0x491860(){var _0x2ed82b=_0x3763b6;_0x2c185c['errors']=[],_0x16d752[_0x2ed82b('0x1c57')][_0x2ed82b('0x118f')]({'id':_0x26ff3f[_0x2ed82b('0x25cf')]['id']},_0x2c185c[_0x2ed82b('0x7d9')])[_0x2ed82b('0x1dc2')][_0x2ed82b('0xaa5')](function(_0x112ce0){var _0x71e6cb=_0x2ed82b;_0x2c185c[_0x71e6cb('0x555')][_0x71e6cb('0x6ee')](_0x112ce0[_0x71e6cb('0x256a')]()),_0x39fdc2['success']({'title':'ZohoConfiguration\x20properly\x20created','msg':_0x2c185c[_0x71e6cb('0x7d9')][_0x71e6cb('0x25d6')]?_0x2c185c[_0x71e6cb('0x7d9')][_0x71e6cb('0x25d6')]+_0x71e6cb('0xdca'):''}),_0x2ea0d2(_0x112ce0);})['catch'](function(_0x2c25de){var _0x5d9a3d=_0x2ed82b;if(_0x2c25de['data']&&_0x2c25de[_0x5d9a3d('0x10fd')][_0x5d9a3d('0x4c6')]&&_0x2c25de[_0x5d9a3d('0x10fd')][_0x5d9a3d('0x4c6')][_0x5d9a3d('0x2587')]){_0x2c185c[_0x5d9a3d('0x4c6')]=_0x2c25de['data']['errors']||[{'message':_0x2c25de[_0x5d9a3d('0x684')](),'type':'api.intZohoConfiguration.save'}];for(var _0x712ce8=0x0;_0x712ce8<_0x2c25de[_0x5d9a3d('0x10fd')][_0x5d9a3d('0x4c6')][_0x5d9a3d('0x2587')];_0x712ce8+=0x1){_0x39fdc2['error']({'title':_0x2c25de[_0x5d9a3d('0x10fd')][_0x5d9a3d('0x4c6')][_0x712ce8][_0x5d9a3d('0x6c8')],'msg':_0x2c25de['data'][_0x5d9a3d('0x4c6')][_0x712ce8][_0x5d9a3d('0x1402')]});}}else _0x39fdc2[_0x5d9a3d('0x187f')]({'title':_0x2c25de[_0x5d9a3d('0x2fa')]?_0x5d9a3d('0x16c2')+_0x2c25de['status']+_0x5d9a3d('0x169e')+_0x2c25de[_0x5d9a3d('0x24df')]:'api.intZohoConfiguration.save','msg':_0x2c25de[_0x5d9a3d('0x10fd')]?JSON[_0x5d9a3d('0xa48')](_0x2c25de[_0x5d9a3d('0x10fd')][_0x5d9a3d('0x1402')]):_0x2c25de['toString']()});});}function _0x244b0d(){var _0x532dbb=_0x3763b6;_0x2c185c['errors']=[],_0x16d752['intZohoConfiguration'][_0x532dbb('0x264e')]({'id':_0x2c185c[_0x532dbb('0x7d9')]['id']},_0x2c185c[_0x532dbb('0x7d9')])[_0x532dbb('0x1dc2')][_0x532dbb('0xaa5')](function(_0x12f276){var _0x3e81df=_0x532dbb,_0x5145a7=_0x51538b()['find'](_0x2c185c[_0x3e81df('0x555')],{'id':_0x12f276['id']});_0x5145a7&&_0x51538b()[_0x3e81df('0x283c')](_0x5145a7,_0x51538b()['pick'](_0x12f276[_0x3e81df('0x256a')](),_0x51538b()[_0x3e81df('0x9f2')](_0x5145a7))),_0x39fdc2[_0x3e81df('0xe10')]({'title':_0x3e81df('0x27b3'),'msg':_0x2c185c['zohoConfiguration'][_0x3e81df('0x25d6')]?_0x2c185c[_0x3e81df('0x7d9')][_0x3e81df('0x25d6')]+_0x3e81df('0x20bf'):''}),_0x2ea0d2(_0x12f276);})[_0x532dbb('0x253d')](function(_0x35b382){var _0xad84a=_0x532dbb;if(_0x35b382[_0xad84a('0x10fd')]&&_0x35b382[_0xad84a('0x10fd')][_0xad84a('0x4c6')]&&_0x35b382['data'][_0xad84a('0x4c6')][_0xad84a('0x2587')]){_0x2c185c[_0xad84a('0x4c6')]=_0x35b382[_0xad84a('0x10fd')]['errors']||[{'message':_0x35b382[_0xad84a('0x684')](),'type':_0xad84a('0x1542')}];for(var _0x44ffb9=0x0;_0x44ffb9<_0x35b382['data']['errors']['length'];_0x44ffb9++){_0x39fdc2[_0xad84a('0x187f')]({'title':_0x35b382[_0xad84a('0x10fd')][_0xad84a('0x4c6')][_0x44ffb9]['type'],'msg':_0x35b382[_0xad84a('0x10fd')]['errors'][_0x44ffb9][_0xad84a('0x1402')]});}}else _0x39fdc2[_0xad84a('0x187f')]({'title':_0x35b382['status']?_0xad84a('0x16c2')+_0x35b382[_0xad84a('0x2fa')]+_0xad84a('0x169e')+_0x35b382[_0xad84a('0x24df')]:_0xad84a('0x1542'),'msg':_0x35b382[_0xad84a('0x10fd')]?JSON[_0xad84a('0xa48')](_0x35b382[_0xad84a('0x10fd')][_0xad84a('0x1402')]):_0x35b382[_0xad84a('0x684')]()});});}function _0x115119(_0x483b3e){var _0x64931d=_0x3763b6;_0x2c185c[_0x64931d('0x4c6')]=[];var _0x452f7c=_0x3918b8['confirm']()['title'](_0x64931d('0x12a3'))['content']('The\x20zohoConfiguration\x20will\x20be\x20deleted.')[_0x64931d('0x5b5')](_0x64931d('0x1309'))['ok']('Delete')[_0x64931d('0x2030')](_0x64931d('0x9c6'))['targetEvent'](_0x483b3e);_0x3918b8[_0x64931d('0x1e6d')](_0x452f7c)[_0x64931d('0xaa5')](function(){var _0x4389c3=_0x64931d;_0x16d752['intZohoConfiguration']['delete']({'id':_0x2c185c[_0x4389c3('0x7d9')]['id']})['$promise'][_0x4389c3('0xaa5')](function(){var _0x5d3be9=_0x4389c3;_0x51538b()[_0x5d3be9('0xf6d')](_0x2c185c[_0x5d3be9('0x555')],{'id':_0x2c185c[_0x5d3be9('0x7d9')]['id']}),_0x39fdc2[_0x5d3be9('0xe10')]({'title':_0x5d3be9('0x1596'),'msg':(_0x2c185c[_0x5d3be9('0x7d9')][_0x5d3be9('0x25d6')]||_0x5d3be9('0x7d9'))+_0x5d3be9('0xcd9')}),_0x2ea0d2(_0x2c185c[_0x5d3be9('0x7d9')]);})[_0x4389c3('0x253d')](function(_0x1a093a){var _0x289376=_0x4389c3;if(_0x1a093a[_0x289376('0x10fd')]&&_0x1a093a[_0x289376('0x10fd')][_0x289376('0x4c6')]&&_0x1a093a[_0x289376('0x10fd')]['errors'][_0x289376('0x2587')]){_0x2c185c[_0x289376('0x4c6')]=_0x1a093a['data']['errors']||[{'message':_0x1a093a[_0x289376('0x684')](),'type':'api.intZohoConfiguration.delete'}];for(var _0x555bd6=0x0;_0x555bd6<_0x1a093a[_0x289376('0x10fd')]['errors'][_0x289376('0x2587')];_0x555bd6++){_0x39fdc2['error']({'title':_0x1a093a['data'][_0x289376('0x4c6')][_0x555bd6][_0x289376('0x6c8')],'msg':_0x1a093a[_0x289376('0x10fd')][_0x289376('0x4c6')][_0x555bd6]['message']});}}else _0x39fdc2[_0x289376('0x187f')]({'title':_0x1a093a[_0x289376('0x2fa')]?_0x289376('0x16c2')+_0x1a093a[_0x289376('0x2fa')]+_0x289376('0x169e')+_0x1a093a[_0x289376('0x24df')]:_0x289376('0x2117'),'msg':_0x1a093a[_0x289376('0x10fd')]?JSON[_0x289376('0xa48')](_0x1a093a['data'][_0x289376('0x1402')]):_0x1a093a['message']||_0x1a093a[_0x289376('0x684')]()});});},function(){});}function _0x30a3a3(_0x4c913f){return _0x4c913f===null?undefined:new Date(_0x4c913f);}function _0x2ea0d2(_0xd711bd){var _0x2db897=_0x3763b6;_0x3918b8[_0x2db897('0x1120')](_0xd711bd);}}const _0x223aca=_0x5cb5d0;_0x339194[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x72'),_0x1a8446('0x1a30'),_0x1a8446('0x1a38'),_0x1a8446('0x5b'),_0x1a8446('0x6c8'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x339194(_0x10b0e6,_0x5a3093,_0x12fdaf,_0x133a28,_0x45afeb,_0x580e1b,_0x40d18f,_0x45a5de,_0x5944ee,_0x2da4ec,_0x43545a,_0x59235d,_0xc973b8){var _0x48177a=_0x1a8446,_0x5f4ba2=this;_0x5f4ba2[_0x48177a('0x7fc')]=_0x59235d[_0x48177a('0xacc')](),_0x5f4ba2[_0x48177a('0x4c6')]=[],_0x5f4ba2[_0x48177a('0x110a')]=_0x48177a('0x66b')+_0x51538b()[_0x48177a('0x1818')](_0x2da4ec),_0x5f4ba2[_0x48177a('0x1a38')]=angular['copy'](_0x45a5de),_0x5f4ba2['items']=_0x40d18f,_0x5f4ba2[_0x48177a('0x6c8')]=_0x2da4ec,_0x5f4ba2[_0x48177a('0xada')]=_0xc973b8,_0x5f4ba2['newItem']=![];!_0x5f4ba2[_0x48177a('0x1a38')]&&(_0x5f4ba2[_0x48177a('0x1a38')]={'type':'string'},_0x5f4ba2['item'][_0x51538b()['capitalize'](_0x2da4ec)+'Id']=_0x580e1b['id'],_0x5f4ba2['title']='INTEGRATIONS.NEW_'+_0x51538b()[_0x48177a('0x1818')](_0x2da4ec),_0x5f4ba2[_0x48177a('0x1891')]=!![]);_0x5f4ba2[_0x48177a('0x13fd')]=_0x3bb5a3,_0x5f4ba2[_0x48177a('0x24c7')]=_0x4fb7fb,_0x5f4ba2[_0x48177a('0x1994')]=_0x584bc3,_0x5f4ba2['getSelectedVariable']=_0x55695d,_0x5f4ba2[_0x48177a('0x2023')]=_0x1d01fc,_0x43545a['variable']['get']({'nolimit':!![]})['$promise']['then'](function(_0x496c02){var _0x477fe3=_0x48177a;return _0x5f4ba2[_0x477fe3('0x147e')]=_0x496c02[_0x477fe3('0x580')]?_0x496c02[_0x477fe3('0x580')]:[],_0x43545a[_0x477fe3('0x188e')][_0x477fe3('0x3e7')]()[_0x477fe3('0x1dc2')];})[_0x48177a('0xaa5')](function(_0x53c193){var _0xc61769=_0x48177a;return _0x5f4ba2[_0xc61769('0x27a9')]=_0x51538b()[_0xc61769('0x1485')](_0x51538b()[_0xc61769('0x9f2')](_0x53c193),[_0xc61769('0x1dc2'),_0xc61769('0xd92'),_0xc61769('0x24a1'),_0xc61769('0x19f3'),_0xc61769('0x129a')]),_0x5f4ba2['voiceAgentReportColumns']['push'](_0xc61769('0xef3')),_0x43545a[_0xc61769('0x1f51')][_0xc61769('0x3e7')]()[_0xc61769('0x1dc2')];})[_0x48177a('0xaa5')](function(_0x151460){var _0x14072e=_0x48177a;_0x5f4ba2[_0x14072e('0xc69')]=_0x51538b()['difference'](_0x51538b()['keys'](_0x151460),['$promise',_0x14072e('0xd92'),_0x14072e('0x24a1'),_0x14072e('0x19f3'),'sourceid']),_0x5f4ba2[_0x14072e('0xc69')][_0x14072e('0x1599')](_0x14072e('0xef3'));})['catch'](function(_0x2fc2e8){var _0x3a6238=_0x48177a;_0x45afeb['error']({'title':_0x2fc2e8['status']?_0x3a6238('0x16c2')+_0x2fc2e8['status']+'\x20-\x20'+_0x2fc2e8['statusText']:_0x3a6238('0x2652'),'msg':_0x2fc2e8[_0x3a6238('0x10fd')]?JSON['stringify'](_0x2fc2e8['data']):_0x2fc2e8[_0x3a6238('0x684')]()});}),_0x43545a[_0x48177a('0x1c57')][_0x48177a('0x1450')]({'id':_0x5944ee['id'],'ticketType':_0x580e1b[_0x48177a('0x1146')]?_0x580e1b['ticketType']:undefined})[_0x48177a('0x1dc2')][_0x48177a('0xaa5')](function(_0x584453){var _0x1bc09c=_0x48177a;_0x5f4ba2[_0x1bc09c('0x722')]=!![],_0x5f4ba2[_0x1bc09c('0x13a')]=_0x584453[_0x1bc09c('0x580')]?_0x584453[_0x1bc09c('0x580')]:[],_0x5f4ba2[_0x1bc09c('0x1a38')][_0x1bc09c('0x1dfc')]&&(_0x5f4ba2[_0x1bc09c('0x6fc')]=_0x51538b()[_0x1bc09c('0xe9e')](_0x5f4ba2[_0x1bc09c('0x13a')],{'id':_0x5f4ba2[_0x1bc09c('0x1a38')]['idField']}));})[_0x48177a('0x253d')](function(_0x313d20){var _0x136124=_0x48177a;_0x5f4ba2[_0x136124('0x722')]=![],console[_0x136124('0x187f')](_0x313d20);});function _0x3bb5a3(){var _0x5ebe60=_0x48177a;_0x5f4ba2[_0x5ebe60('0x4c6')]=[],_0x5f4ba2[_0x5ebe60('0x6fc')]&&(_0x5f4ba2[_0x5ebe60('0x1a38')][_0x5ebe60('0x1dfc')]=_0x5f4ba2[_0x5ebe60('0x6fc')]['id'],_0x5f4ba2[_0x5ebe60('0x1a38')][_0x5ebe60('0x1662')]=_0x5f4ba2[_0x5ebe60('0x6fc')][_0x5ebe60('0x25d6')],_0x5f4ba2[_0x5ebe60('0x1a38')][_0x5ebe60('0x6fc')]=_0x5f4ba2[_0x5ebe60('0x6fc')][_0x5ebe60('0x113b')]),_0x43545a[_0x5ebe60('0x16a3')][_0x5ebe60('0x242b')](_0x5f4ba2[_0x5ebe60('0x1a38')])[_0x5ebe60('0x1dc2')][_0x5ebe60('0xaa5')](function(_0x1794e8){var _0x37583b=_0x5ebe60;_0x5f4ba2['items'][_0x37583b('0x6ee')](_0x1794e8),_0x45afeb['success']({'title':_0x51538b()[_0x37583b('0x1b56')](_0x2da4ec)+_0x37583b('0xbf5'),'msg':_0x51538b()['capitalize'](_0x2da4ec)+'\x20has\x20been\x20created!'}),_0x1d01fc();})[_0x5ebe60('0x253d')](function(_0x3fee20){var _0x5e5163=_0x5ebe60;console['error'](_0x3fee20),_0x5f4ba2[_0x5e5163('0x4c6')]=_0x3fee20[_0x5e5163('0x10fd')][_0x5e5163('0x4c6')]||[{'message':_0x3fee20[_0x5e5163('0x684')](),'type':'api.item.save'}];});}function _0x4fb7fb(){var _0x23b253=_0x48177a;_0x5f4ba2[_0x23b253('0x4c6')]=[],_0x5f4ba2[_0x23b253('0x6fc')]&&(_0x5f4ba2[_0x23b253('0x1a38')][_0x23b253('0x1dfc')]=_0x5f4ba2[_0x23b253('0x6fc')]['id'],_0x5f4ba2[_0x23b253('0x1a38')]['nameField']=_0x5f4ba2['customField']['name'],_0x5f4ba2[_0x23b253('0x1a38')]['customField']=_0x5f4ba2[_0x23b253('0x6fc')][_0x23b253('0x113b')]),_0x43545a['intZohoField'][_0x23b253('0x264e')]({'id':_0x5f4ba2[_0x23b253('0x1a38')]['id']},_0x5f4ba2[_0x23b253('0x1a38')])[_0x23b253('0x1dc2')]['then'](function(_0x28d4b8){var _0x2462f4=_0x23b253,_0x517d2d=_0x51538b()[_0x2462f4('0xe9e')](_0x5f4ba2[_0x2462f4('0x1a30')],{'id':_0x28d4b8['id']});_0x517d2d&&_0x51538b()[_0x2462f4('0x283c')](_0x517d2d,_0x28d4b8),_0x45afeb[_0x2462f4('0xe10')]({'title':_0x51538b()[_0x2462f4('0x1b56')](_0x2da4ec)+'\x20properly\x20saved!','msg':_0x51538b()[_0x2462f4('0x1b56')](_0x2da4ec)+_0x2462f4('0x20bf')}),_0x1d01fc();})[_0x23b253('0x253d')](function(_0x25f84c){var _0x1ced98=_0x23b253;console[_0x1ced98('0x187f')](_0x25f84c),_0x5f4ba2[_0x1ced98('0x4c6')]=_0x25f84c[_0x1ced98('0x10fd')][_0x1ced98('0x4c6')]||[{'message':_0x25f84c[_0x1ced98('0x684')](),'type':_0x1ced98('0x2460')}];});}function _0x584bc3(_0x500ab9){var _0x9553d3=_0x48177a;_0x5f4ba2['errors']=[];var _0xc4f352=_0x133a28['confirm']()[_0x9553d3('0x110a')]('Are\x20you\x20sure?')['content'](_0x9553d3('0x318')+_0x2da4ec+'\x20will\x20be\x20deleted.')[_0x9553d3('0x5b5')](_0x9553d3('0xf00')+_0x51538b()[_0x9553d3('0x1b56')](_0x2da4ec))['ok'](_0x9553d3('0x1e76'))['cancel'](_0x9553d3('0x9c6'))[_0x9553d3('0x116d')](_0x500ab9);_0x133a28['show'](_0xc4f352)[_0x9553d3('0xaa5')](function(){var _0xde87f=_0x9553d3;_0x43545a[_0xde87f('0x16a3')][_0xde87f('0x926')]({'id':_0x5f4ba2[_0xde87f('0x1a38')]['id']})[_0xde87f('0x1dc2')][_0xde87f('0xaa5')](function(){var _0x14387e=_0xde87f;_0x51538b()['remove'](_0x5f4ba2[_0x14387e('0x1a30')],{'id':_0x5f4ba2[_0x14387e('0x1a38')]['id']}),_0x45afeb[_0x14387e('0xe10')]({'title':_0x51538b()[_0x14387e('0x1b56')](_0x2da4ec)+_0x14387e('0x1e42'),'msg':_0x51538b()[_0x14387e('0x1b56')](_0x2da4ec)+'\x20has\x20been\x20deleted!'}),_0x1d01fc();})[_0xde87f('0x253d')](function(_0x3903d2){var _0xa8a42f=_0xde87f;console['error'](_0x3903d2),_0x5f4ba2[_0xa8a42f('0x4c6')]=_0x3903d2[_0xa8a42f('0x10fd')][_0xa8a42f('0x4c6')]||[{'message':_0x3903d2[_0xa8a42f('0x684')](),'type':_0xa8a42f('0x37d')}];});},function(){});}function _0x55695d(){var _0x967db7=_0x48177a;return _0x5f4ba2[_0x967db7('0x1a38')]['variableName']!==undefined?_0x5f4ba2['item']['variableName']:'Please\x20select\x20a\x20variable';}function _0x1d01fc(){var _0x5cccfc=_0x48177a;_0x133a28[_0x5cccfc('0x1120')]();}}const _0x4d7fa=_0x339194;_0x27e5ec['$inject']=['$state',_0x1a8446('0x13a0'),'$mdDialog',_0x1a8446('0x39b'),'$translate','license',_0x1a8446('0x143f'),'api',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'zohoAccount',_0x1a8446('0x1a50')];function _0x27e5ec(_0x4da196,_0x2a4acf,_0x50288d,_0x373450,_0x5d749d,_0x1fed88,_0x1a8110,_0x256bce,_0x1fce74,_0x419a32,_0xfe9d43,_0x13b29e){var _0x3397f5=_0x1a8446,_0x62c7f5=this;_0x62c7f5[_0x3397f5('0x7fc')]=_0x419a32['getCurrentUser'](),_0x62c7f5[_0x3397f5('0x1202')]=_0x1fed88,_0x62c7f5[_0x3397f5('0x143f')]=_0x1a8110,_0x62c7f5[_0x3397f5('0x1d53')]=_0x62c7f5[_0x3397f5('0x143f')][_0x3397f5('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x62c7f5[_0x3397f5('0x18cc')]=_0x2a4acf[_0x3397f5('0x1cc2')]()+_0x3397f5('0x356')+_0x2a4acf['host'](),_0x62c7f5[_0x3397f5('0x1c5b')]=_0xfe9d43||_0x4da196['params'][_0x3397f5('0x1c5b')]||{},_0x62c7f5[_0x3397f5('0x1a50')]=_0x13b29e&&_0x13b29e[_0x3397f5('0xd15')]==0x1?_0x13b29e[_0x3397f5('0x580')][0x0]:null,_0x62c7f5[_0x3397f5('0xada')]=_0x419a32[_0x3397f5('0xffd')](_0x62c7f5[_0x3397f5('0x1a50')]?_0x62c7f5[_0x3397f5('0x1a50')][_0x3397f5('0xada')]:null),_0x62c7f5[_0x3397f5('0x9f0')]={},_0x62c7f5[_0x3397f5('0xe5c')]=_0x4da196[_0x3397f5('0x25cf')]['tab']||0x0,_0x62c7f5[_0x3397f5('0xc10')]=_0x1fce74[_0x3397f5('0x3a1')],_0x62c7f5['gotoZohoAccounts']=_0x3361ef,_0x62c7f5[_0x3397f5('0x22dc')]=_0x1947dd;function _0x3361ef(){var _0x1b392b=_0x3397f5;_0x4da196['go'](_0x1b392b('0xf9'),{},{'reload':_0x1b392b('0xf9')});}function _0x1947dd(){var _0x2f90e0=_0x3397f5;_0x256bce[_0x2f90e0('0x1c57')]['update']({'id':_0x62c7f5[_0x2f90e0('0x1c5b')]['id']},_0x62c7f5['zohoAccount'])[_0x2f90e0('0x1dc2')][_0x2f90e0('0xaa5')](function(){var _0x1e8917=_0x2f90e0;_0x1fce74[_0x1e8917('0xe10')]({'title':_0x1e8917('0x3fe'),'msg':_0x62c7f5[_0x1e8917('0x1c5b')][_0x1e8917('0x25d6')]?_0x62c7f5['zohoAccount'][_0x1e8917('0x25d6')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x55f12c){var _0x5da577=_0x2f90e0;_0x1fce74[_0x5da577('0x187f')]({'title':_0x55f12c[_0x5da577('0x2fa')]?_0x5da577('0x16c2')+_0x55f12c['status']+_0x5da577('0x169e')+_0x55f12c[_0x5da577('0x24df')]:_0x5da577('0x2251'),'msg':_0x55f12c[_0x5da577('0x10fd')]?JSON[_0x5da577('0xa48')](_0x55f12c[_0x5da577('0x10fd')]):_0x55f12c[_0x5da577('0x684')]()});});}}const _0x2726b2=_0x27e5ec,_0x30c817=_0x4fb511['p']+_0x1a8446('0xc17');_0x3929bd[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),'$translate',_0x1a8446('0x1497'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),'toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x3929bd(_0x225609,_0xa5efbe,_0x5a2104,_0x37ff38,_0x143537,_0x1102bf,_0x79ce15,_0x3ec354,_0x433cd5,_0x2d4638,_0x259b82,_0xf20ebe,_0x295d1d,_0x2e99fb,_0xaad0c6,_0x129275,_0x18a5a5){var _0xaa581a=_0x1a8446,_0x59c134=this;_0x59c134[_0xaa581a('0x1202')]=_0x129275,_0x59c134[_0xaa581a('0x143f')]=_0x18a5a5,_0x59c134[_0xaa581a('0x7fc')]=_0xaad0c6[_0xaa581a('0xacc')](),_0x59c134[_0xaa581a('0x1497')]=_0x433cd5||{'count':0x0,'rows':[]},_0x59c134[_0xaa581a('0x1e97')]=_0x2d4638,_0x59c134['userProfileSection']=_0x259b82&&_0x259b82[_0xaa581a('0xd15')]==0x1?_0x259b82[_0xaa581a('0x580')][0x0]:null,_0x59c134[_0xaa581a('0xada')]=_0xaad0c6[_0xaa581a('0xffd')](_0x59c134[_0xaa581a('0x1a50')]?_0x59c134[_0xaa581a('0x1a50')]['crudPermissions']:null),_0x59c134[_0xaa581a('0x12b6')]=_0xaa581a('0x1497'),_0x59c134[_0xaa581a('0x164')]='',_0x59c134[_0xaa581a('0x8cc')]=null,_0x59c134['selectedZohoAccounts']=[],_0x59c134['query']={'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'page':0x1},_0x59c134['arrayhost']=_0x51538b()[_0xaa581a('0x184a')]([{'option':'zoho.com','value':'\x27zoho.com\x27'},{'option':_0xaa581a('0x150b'),'value':_0xaa581a('0xc23')}],function(_0x37c4d5){var _0x450b41=_0xaa581a;return _0x51538b()[_0x450b41('0x170d')](_0x37c4d5[_0x450b41('0x12f4')],new RegExp('\x27','g'),'');}),_0x59c134[_0xaa581a('0x732')]=_0x51538b()[_0xaa581a('0x184a')]([{'option':'US','value':_0xaa581a('0x19bd')},{'option':'AU','value':_0xaa581a('0x1575')},{'option':'EU','value':_0xaa581a('0x1bc4')},{'option':'IN','value':'\x27IN\x27'},{'option':'CN','value':_0xaa581a('0x1979')}],function(_0x1c7d9c){var _0x1b1aa5=_0xaa581a;return _0x51538b()[_0x1b1aa5('0x170d')](_0x1c7d9c[_0x1b1aa5('0x12f4')],new RegExp('\x27','g'),'');}),_0x59c134['editstate']=_0xb88714,_0x59c134[_0xaa581a('0xa49')]=_0xcedc68,_0x59c134[_0xaa581a('0x271')]=_0x4de66b,_0x59c134['success']=_0x564997,_0x59c134[_0xaa581a('0x1ca6')]=_0x3a2181,_0x59c134[_0xaa581a('0xcc1')]=_0x1257bd,_0x59c134[_0xaa581a('0x1815')]=_0x3bd298,_0x59c134[_0xaa581a('0x2110')]=_0x1a7a1d,_0x59c134['deleteSelectedZohoAccounts']=_0x45138d,_0x59c134[_0xaa581a('0x1c9f')]=_0x44600f,_0x59c134['selectAllZohoAccounts']=_0x46e872;function _0xb88714(_0x33eab9){var _0x4f8f2d=_0xaa581a;_0x5a2104['go'](_0x4f8f2d('0xb7e'),{'id':_0x33eab9['id'],'zohoAccount':_0x33eab9,'crudPermissions':_0x59c134['crudPermissions']});}function _0xcedc68(_0x1ddcaf){var _0x38d864=_0xaa581a;return _0xf20ebe['intZohoAccount']['getFields']({'id':_0x1ddcaf['id'],'test':!![]})[_0x38d864('0x1dc2')]['then'](function(){var _0x4163b3=_0x38d864;_0x2e99fb[_0x4163b3('0xe10')]({'title':_0x4163b3('0x11d2'),'msg':_0x4163b3('0x2633')});})[_0x38d864('0x253d')](function(_0x1bc320){var _0x57505d=_0x38d864;_0x2e99fb[_0x57505d('0x187f')]({'title':'ZohoAccount\x20properly\x20tested','msg':_0x1bc320['data']?_0x1bc320[_0x57505d('0x10fd')][_0x57505d('0x1402')]?_0x1bc320[_0x57505d('0x10fd')][_0x57505d('0x1402')]:JSON[_0x57505d('0xa48')](_0x1bc320['data']):_0x1bc320[_0x57505d('0x684')]()});});}function _0x4de66b(_0x3d6c25,_0xba6afb){var _0x560b4e=_0xaa581a,_0xda659b=_0x143537[_0x560b4e('0x281e')]()[_0x560b4e('0x110a')](_0x560b4e('0x88d')+_0x51538b()['startCase'](_0x560b4e('0x1c5b'))+'?')[_0x560b4e('0x102e')](''+(_0x3d6c25[_0x560b4e('0x25d6')]||_0x560b4e('0x1c5b'))+_0x560b4e('0x697')+_0x560b4e('0x210d'))[_0x560b4e('0x5b5')](_0x560b4e('0x245c'))[_0x560b4e('0x116d')](_0xba6afb)['ok']('OK')[_0x560b4e('0x2030')](_0x560b4e('0x2410'));_0x143537[_0x560b4e('0x1e6d')](_0xda659b)['then'](function(){_0x3bd298(_0x3d6c25);},function(){var _0x16d466=_0x560b4e;console['log'](_0x16d466('0x2410'));});}var _0x464a23=!![],_0x13a337=0x1;_0x225609[_0xaa581a('0x1ccf')]('vm.query.filter',function(_0x7544ff,_0x420534){var _0x59e41a=_0xaa581a;_0x464a23?_0x79ce15(function(){_0x464a23=![];}):(!_0x420534&&(_0x13a337=_0x59c134['query'][_0x59e41a('0x41')]),_0x7544ff!==_0x420534&&(_0x59c134[_0x59e41a('0x582')][_0x59e41a('0x41')]=0x1),!_0x7544ff&&(_0x59c134[_0x59e41a('0x582')][_0x59e41a('0x41')]=_0x13a337),_0x59c134[_0x59e41a('0x1ca6')]());});function _0x564997(_0x125bc5){var _0x535af9=_0xaa581a;_0x59c134[_0x535af9('0x1497')]=_0x125bc5||{'count':0x0,'rows':[]};}function _0x3a2181(){var _0x31b1bf=_0xaa581a;_0x59c134[_0x31b1bf('0x582')]['offset']=(_0x59c134[_0x31b1bf('0x582')][_0x31b1bf('0x41')]-0x1)*_0x59c134[_0x31b1bf('0x582')]['limit'],_0xaad0c6['hasRole'](_0x31b1bf('0x178b'))?_0x59c134[_0x31b1bf('0x159a')]=_0xf20ebe[_0x31b1bf('0x1c57')]['get'](_0x59c134[_0x31b1bf('0x582')],_0x564997)['$promise']:(_0x59c134[_0x31b1bf('0x582')]['id']=_0x59c134[_0x31b1bf('0x1e97')]['id'],_0x59c134[_0x31b1bf('0x582')][_0x31b1bf('0x224d')]='ZohoAccounts',_0x59c134['promise']=_0xf20ebe[_0x31b1bf('0x1e97')][_0x31b1bf('0x1cf1')](_0x59c134[_0x31b1bf('0x582')],_0x564997)['$promise']);}function _0x1257bd(_0x395eaa,_0x36e0ad){var _0x221115=_0xaa581a;_0x143537[_0x221115('0x1e6d')]({'controller':_0x221115('0x1df5'),'controllerAs':'vm','templateUrl':_0x30c817,'parent':angular[_0x221115('0x1aa8')](_0x1102bf[_0x221115('0x54c')]),'targetEvent':_0x395eaa,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0x36e0ad,'zohoAccounts':_0x59c134[_0x221115('0x1497')][_0x221115('0x580')],'license':_0x59c134[_0x221115('0x1202')],'setting':_0x59c134[_0x221115('0x143f')],'crudPermissions':_0x59c134[_0x221115('0xada')]}});}function _0x3bd298(_0x37d908){var _0x10e63b=_0xaa581a;_0xf20ebe[_0x10e63b('0x1c57')][_0x10e63b('0x926')]({'id':_0x37d908['id']})[_0x10e63b('0x1dc2')]['then'](function(){var _0x426414=_0x10e63b;_0x51538b()[_0x426414('0xf6d')](_0x59c134[_0x426414('0x1497')]['rows'],{'id':_0x37d908['id']}),_0x59c134[_0x426414('0x1497')][_0x426414('0xd15')]-=0x1,!_0x59c134['zohoAccounts'][_0x426414('0x580')]['length']&&_0x59c134['getZohoAccounts'](),_0x2e99fb[_0x426414('0xe10')]({'title':_0x51538b()[_0x426414('0x196a')]('ZohoAccount')+_0x426414('0x8bb'),'msg':_0x37d908['name']?_0x37d908[_0x426414('0x25d6')]+_0x426414('0xcd9'):''});})[_0x10e63b('0x253d')](function(_0x21ebda){var _0x3e8832=_0x10e63b;if(_0x21ebda[_0x3e8832('0x10fd')]&&_0x21ebda[_0x3e8832('0x10fd')][_0x3e8832('0x4c6')]&&_0x21ebda[_0x3e8832('0x10fd')]['errors'][_0x3e8832('0x2587')]){_0x59c134[_0x3e8832('0x4c6')]=_0x21ebda[_0x3e8832('0x10fd')][_0x3e8832('0x4c6')]||[{'message':_0x21ebda[_0x3e8832('0x684')](),'type':_0x3e8832('0x483')}];for(var _0x2bd402=0x0;_0x2bd402<_0x21ebda['data'][_0x3e8832('0x4c6')]['length'];_0x2bd402++){_0x2e99fb[_0x3e8832('0x187f')]({'title':_0x21ebda[_0x3e8832('0x10fd')][_0x3e8832('0x4c6')][_0x2bd402]['type'],'msg':_0x21ebda['data'][_0x3e8832('0x4c6')][_0x2bd402]['message']});}}else _0x2e99fb['error']({'title':_0x21ebda[_0x3e8832('0x2fa')]?_0x3e8832('0x16c2')+_0x21ebda[_0x3e8832('0x2fa')]+_0x3e8832('0x169e')+_0x21ebda[_0x3e8832('0x24df')]:_0x3e8832('0x483'),'msg':_0x21ebda[_0x3e8832('0x10fd')]?JSON[_0x3e8832('0xa48')](_0x21ebda[_0x3e8832('0x10fd')][_0x3e8832('0x1402')]):_0x21ebda[_0x3e8832('0x1402')]||_0x21ebda['toString']()});});}function _0x1a7a1d(){var _0x3ce034=_0xaa581a,_0x5ab198=angular['copy'](_0x59c134[_0x3ce034('0x877')]);return _0x59c134['selectedZohoAccounts']=[],_0x5ab198;}function _0x45138d(_0x141622){var _0x3763d9=_0xaa581a,_0xb87945=_0x143537['confirm']()[_0x3763d9('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zohoAccounts?')[_0x3763d9('0x102e')](_0x3763d9('0x389')+_0x59c134['selectedZohoAccounts'][_0x3763d9('0x2587')]+_0x3763d9('0x1443')+'\x20will\x20be\x20deleted.')[_0x3763d9('0x5b5')](_0x3763d9('0x12da'))['targetEvent'](_0x141622)['ok']('OK')[_0x3763d9('0x2030')]('CANCEL');_0x143537[_0x3763d9('0x1e6d')](_0xb87945)['then'](function(){var _0x1b5a86=_0x3763d9;_0x59c134[_0x1b5a86('0x877')][_0x1b5a86('0x15b5')](function(_0x2438a4){_0x3bd298(_0x2438a4);}),_0x59c134[_0x1b5a86('0x877')]=[];});}function _0x44600f(){var _0x4a6ad1=_0xaa581a;_0x59c134[_0x4a6ad1('0x877')]=[];}function _0x46e872(){var _0xfe2510=_0xaa581a;_0x59c134['selectedZohoAccounts']=_0x59c134[_0xfe2510('0x1497')][_0xfe2510('0x580')];}}const _0x18ee5c=_0x3929bd;_0x1ee951[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x1ee951(_0x5e4bf6,_0x412cb9){var _0xd6d680=_0x1a8446;_0x5e4bf6['state']('app.integrations',{'abstract':!![],'url':_0xd6d680('0x23c2')})['state'](_0xd6d680('0x75f'),{'url':'/zendeskAccounts','views':{'content@app':{'templateUrl':_0xb8d42c,'controller':_0xd6d680('0x1b53')}},'resolve':{'zendeskAccounts':[_0xd6d680('0x1d16'),'Auth',function _0x2161c7(_0x17285a,_0x234be9){var _0x15012b=_0xd6d680;return _0x234be9[_0x15012b('0x26e8')](_0x15012b('0x178b'))?_0x17285a[_0x15012b('0x149f')]('intZendeskAccount@get',{'fields':_0x15012b('0x8df'),'limit':0xa,'offset':0x0}):_0x17285a[_0x15012b('0x149f')](_0x15012b('0x49a'),{'id':_0x234be9[_0x15012b('0xacc')]()[_0x15012b('0x2168')],'section':'ZendeskAccounts','fields':_0x15012b('0x8df'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x5a411b(_0xdc41a5,_0xff66a5){var _0x44e522=_0xd6d680;return _0xff66a5[_0x44e522('0x26e8')]('admin')?null:_0xdc41a5['resolve'](_0x44e522('0x567'),{'fields':'id,name,crudPermissions','id':_0xff66a5[_0x44e522('0xacc')]()[_0x44e522('0x2168')]});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x2c474e(_0x161680,_0x532d6f){var _0x163e3c=_0xd6d680;return _0x532d6f[_0x163e3c('0x26e8')](_0x163e3c('0x178b'))?null:_0x161680[_0x163e3c('0x149f')](_0x163e3c('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x532d6f[_0x163e3c('0xacc')]()[_0x163e3c('0x2168')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':'integrations'})['state'](_0xd6d680('0x20d8'),{'url':_0xd6d680('0xad'),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2263ed,'controller':_0xd6d680('0x2616')}},'resolve':{'zendeskAccount':['apiResolver',_0xd6d680('0x703'),function _0x43b3d8(_0x49e0e7,_0x45b37e){var _0xa49d51=_0xd6d680;return _0x49e0e7[_0xa49d51('0x149f')]('intZendeskAccount@get',{'fields':_0xa49d51('0x8df'),'id':_0x45b37e['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x57d097(_0x424f01,_0xd260e){var _0x43add9=_0xd6d680;return _0x424f01[_0x43add9('0x149f')](_0x43add9('0x89e'),{'fields':_0x43add9('0xe6a'),'userProfileId':_0xd260e[_0x43add9('0xacc')]()[_0x43add9('0x2168')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')](_0xd6d680('0x1030'),{'url':_0xd6d680('0x1eb5'),'views':{'content@app':{'templateUrl':_0x448428,'controller':_0xd6d680('0x1d97')}},'resolve':{'salesforceAccounts':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x45008b(_0x4153f2,_0x5b6834){var _0x44cb92=_0xd6d680;return _0x5b6834[_0x44cb92('0x26e8')](_0x44cb92('0x178b'))?_0x4153f2[_0x44cb92('0x149f')](_0x44cb92('0x2565'),{'fields':_0x44cb92('0xccc'),'limit':0xa,'offset':0x0}):_0x4153f2[_0x44cb92('0x149f')]('userProfile@getResources',{'id':_0x5b6834[_0x44cb92('0xacc')]()[_0x44cb92('0x2168')],'section':_0x44cb92('0x22b3'),'fields':_0x44cb92('0xccc'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x412836(_0x4ff90e,_0x568cc6){var _0x3f692f=_0xd6d680;return _0x568cc6[_0x3f692f('0x26e8')]('admin')?null:_0x4ff90e[_0x3f692f('0x149f')](_0x3f692f('0x567'),{'fields':'id,name,crudPermissions','id':_0x568cc6[_0x3f692f('0xacc')]()['userProfileId']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x2d1003(_0x5be779,_0xf5799b){var _0x4964e0=_0xd6d680;return _0xf5799b['hasRole']('admin')?null:_0x5be779[_0x4964e0('0x149f')]('userProfileSection@get',{'fields':_0x4964e0('0xe6a'),'userProfileId':_0xf5799b[_0x4964e0('0xacc')]()['userProfileId'],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')]('app.integrations.salesforceAccounts.edit',{'url':_0xd6d680('0xad'),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x55a29c,'controller':_0xd6d680('0x2627')}},'resolve':{'salesforceAccount':[_0xd6d680('0x1d16'),_0xd6d680('0x703'),function _0x3736f8(_0x4075e8,_0x4275ad){var _0x273c38=_0xd6d680;return _0x4075e8[_0x273c38('0x149f')]('intSalesforceAccount@get',{'fields':_0x273c38('0xccc'),'id':_0x4275ad['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x319c3c(_0x32dd33,_0x37a2d6){var _0x1e103e=_0xd6d680;return _0x32dd33[_0x1e103e('0x149f')](_0x1e103e('0x89e'),{'fields':_0x1e103e('0xe6a'),'userProfileId':_0x37a2d6[_0x1e103e('0xacc')]()[_0x1e103e('0x2168')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')]('app.integrations.freshdeskAccounts',{'url':_0xd6d680('0x332'),'views':{'content@app':{'templateUrl':_0x2d367f,'controller':_0xd6d680('0x1feb')}},'resolve':{'freshdeskAccounts':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x50ff11(_0x15c671,_0x522a7a){var _0x486291=_0xd6d680;return _0x522a7a[_0x486291('0x26e8')](_0x486291('0x178b'))?_0x15c671[_0x486291('0x149f')]('intFreshdeskAccount@get',{'fields':_0x486291('0x520'),'limit':0xa,'offset':0x0}):_0x15c671[_0x486291('0x149f')](_0x486291('0x49a'),{'id':_0x522a7a['getCurrentUser']()[_0x486291('0x2168')],'section':_0x486291('0x1194'),'fields':_0x486291('0x520'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd6d680('0x1d16'),'Auth',function _0x56dba7(_0x31b3b7,_0x105f86){var _0x583471=_0xd6d680;return _0x105f86[_0x583471('0x26e8')](_0x583471('0x178b'))?null:_0x31b3b7['resolve'](_0x583471('0x567'),{'fields':_0x583471('0x1bb0'),'id':_0x105f86[_0x583471('0xacc')]()[_0x583471('0x2168')]});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x40296a(_0x1c5fe5,_0x16bd17){var _0x24c922=_0xd6d680;return _0x16bd17[_0x24c922('0x26e8')](_0x24c922('0x178b'))?null:_0x1c5fe5['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x16bd17['getCurrentUser']()[_0x24c922('0x2168')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')](_0xd6d680('0x134f'),{'url':_0xd6d680('0xad'),'params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5e0650,'controller':_0xd6d680('0x588')}},'resolve':{'freshdeskAccount':[_0xd6d680('0x1d16'),'$stateParams',function _0x2c09c2(_0x1fdc5d,_0x3301b3){var _0x4bee7d=_0xd6d680;return _0x1fdc5d['resolve'](_0x4bee7d('0x2356'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x3301b3['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x5f27da(_0x2d6d79,_0x286bf3){var _0x5f2fad=_0xd6d680;return _0x2d6d79['resolve'](_0x5f2fad('0x89e'),{'fields':_0x5f2fad('0xe6a'),'userProfileId':_0x286bf3[_0x5f2fad('0xacc')]()[_0x5f2fad('0x2168')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')]('app.integrations.sugarcrmAccounts',{'url':_0xd6d680('0xc25'),'views':{'content@app':{'templateUrl':_0x4c9395,'controller':_0xd6d680('0x19ba')}},'resolve':{'sugarcrmAccounts':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x305369(_0x4ff9b7,_0x4066aa){var _0xe98f42=_0xd6d680;return _0x4066aa[_0xe98f42('0x26e8')]('admin')?_0x4ff9b7[_0xe98f42('0x149f')](_0xe98f42('0x24f4'),{'fields':_0xe98f42('0x1808'),'limit':0xa,'offset':0x0}):_0x4ff9b7[_0xe98f42('0x149f')](_0xe98f42('0x49a'),{'id':_0x4066aa[_0xe98f42('0xacc')]()[_0xe98f42('0x2168')],'section':'SugarcrmAccounts','fields':_0xe98f42('0x1808'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x13dd90(_0x16c12a,_0x4874bf){var _0x2f00cc=_0xd6d680;return _0x4874bf['hasRole'](_0x2f00cc('0x178b'))?null:_0x16c12a['resolve']('userProfile@get',{'fields':_0x2f00cc('0x1bb0'),'id':_0x4874bf[_0x2f00cc('0xacc')]()[_0x2f00cc('0x2168')]});}],'userProfileSection':['apiResolver',_0xd6d680('0x1dfd'),function _0x5d085b(_0x3a5fb0,_0x1a8d5d){var _0x23e825=_0xd6d680;return _0x1a8d5d[_0x23e825('0x26e8')]('admin')?null:_0x3a5fb0['resolve']('userProfileSection@get',{'fields':_0x23e825('0xe6a'),'userProfileId':_0x1a8d5d[_0x23e825('0xacc')]()[_0x23e825('0x2168')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')]('app.integrations.sugarcrmAccounts.edit',{'url':'/:id?tab','params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x43fddb,'controller':_0xd6d680('0x2fc')}},'resolve':{'sugarcrmAccount':['apiResolver','$stateParams',function _0x446cfb(_0x422431,_0x3d5a07){var _0x3264b7=_0xd6d680;return _0x422431[_0x3264b7('0x149f')](_0x3264b7('0x24f4'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','id':_0x3d5a07['id']});}],'userProfileSection':['apiResolver','Auth',function _0x516b50(_0x304fab,_0x1aae19){var _0x481aff=_0xd6d680;return _0x304fab[_0x481aff('0x149f')](_0x481aff('0x89e'),{'fields':_0x481aff('0xe6a'),'userProfileId':_0x1aae19[_0x481aff('0xacc')]()['userProfileId'],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')]('app.integrations.deskAccounts',{'url':_0xd6d680('0x1863'),'views':{'content@app':{'templateUrl':_0x4af42a,'controller':'DeskAccountsController\x20as\x20vm'}},'resolve':{'deskAccounts':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x3f95cb(_0x41aaea,_0x473e78){var _0xa3cb2b=_0xd6d680;return _0x473e78['hasRole'](_0xa3cb2b('0x178b'))?_0x41aaea[_0xa3cb2b('0x149f')](_0xa3cb2b('0x2114'),{'fields':_0xa3cb2b('0xa59'),'limit':0xa,'offset':0x0}):_0x41aaea[_0xa3cb2b('0x149f')](_0xa3cb2b('0x49a'),{'id':_0x473e78[_0xa3cb2b('0xacc')]()[_0xa3cb2b('0x2168')],'section':_0xa3cb2b('0x152d'),'fields':_0xa3cb2b('0xa59'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x373160(_0xae8598,_0x26c6d2){var _0xed10b2=_0xd6d680;return _0x26c6d2[_0xed10b2('0x26e8')](_0xed10b2('0x178b'))?null:_0xae8598[_0xed10b2('0x149f')](_0xed10b2('0x567'),{'fields':_0xed10b2('0x1bb0'),'id':_0x26c6d2[_0xed10b2('0xacc')]()['userProfileId']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x1fc7d4(_0x22c327,_0x5121eb){var _0x461ea1=_0xd6d680;return _0x5121eb[_0x461ea1('0x26e8')](_0x461ea1('0x178b'))?null:_0x22c327['resolve'](_0x461ea1('0x89e'),{'fields':_0x461ea1('0xe6a'),'userProfileId':_0x5121eb['getCurrentUser']()[_0x461ea1('0x2168')],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')]('app.integrations.deskAccounts.edit',{'url':_0xd6d680('0xad'),'params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2ae7b6,'controller':'DeskAccountController\x20as\x20vm'}},'resolve':{'deskAccount':[_0xd6d680('0x1d16'),'$stateParams',function _0x483dd1(_0x202e4f,_0x31df22){var _0x483c31=_0xd6d680;return _0x202e4f[_0x483c31('0x149f')]('intDeskAccount@get',{'fields':_0x483c31('0xa59'),'id':_0x31df22['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),'Auth',function _0xfedc1e(_0x527ffa,_0x5e2d56){var _0x2887d9=_0xd6d680;return _0x527ffa[_0x2887d9('0x149f')]('userProfileSection@get',{'fields':_0x2887d9('0xe6a'),'userProfileId':_0x5e2d56[_0x2887d9('0xacc')]()[_0x2887d9('0x2168')],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')](_0xd6d680('0xf9'),{'url':_0xd6d680('0x12f2'),'views':{'content@app':{'templateUrl':_0x1cbbcc,'controller':_0xd6d680('0x7a2')}},'resolve':{'zohoAccounts':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x22497e(_0x4e366f,_0x587ae4){var _0x15542c=_0xd6d680;return _0x587ae4[_0x15542c('0x26e8')]('admin')?_0x4e366f['resolve'](_0x15542c('0x2811'),{'fields':_0x15542c('0x4ad'),'limit':0xa,'offset':0x0}):_0x4e366f[_0x15542c('0x149f')](_0x15542c('0x49a'),{'id':_0x587ae4[_0x15542c('0xacc')]()[_0x15542c('0x2168')],'section':_0x15542c('0x2586'),'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xd6d680('0x1dfd'),function _0x53921f(_0x2394a0,_0x4b39ad){var _0x23c515=_0xd6d680;return _0x4b39ad[_0x23c515('0x26e8')](_0x23c515('0x178b'))?null:_0x2394a0[_0x23c515('0x149f')]('userProfile@get',{'fields':_0x23c515('0x1bb0'),'id':_0x4b39ad[_0x23c515('0xacc')]()[_0x23c515('0x2168')]});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x4856e2(_0x234cb4,_0x469622){var _0xa105e9=_0xd6d680;return _0x469622[_0xa105e9('0x26e8')](_0xa105e9('0x178b'))?null:_0x234cb4[_0xa105e9('0x149f')](_0xa105e9('0x89e'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x469622[_0xa105e9('0xacc')]()[_0xa105e9('0x2168')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')](_0xd6d680('0xb7e'),{'url':_0xd6d680('0xad'),'params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4a0de0,'controller':_0xd6d680('0xb5f')}},'resolve':{'zohoAccount':[_0xd6d680('0x1d16'),_0xd6d680('0x703'),function _0x220547(_0x598c02,_0x17a49f){var _0x22431b=_0xd6d680;return _0x598c02[_0x22431b('0x149f')]('intZohoAccount@get',{'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','id':_0x17a49f['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x21b975(_0x2169cf,_0x48f841){var _0x3a2d94=_0xd6d680;return _0x2169cf[_0x3a2d94('0x149f')]('userProfileSection@get',{'fields':_0x3a2d94('0xe6a'),'userProfileId':_0x48f841[_0x3a2d94('0xacc')]()[_0x3a2d94('0x2168')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')](_0xd6d680('0x2424'),{'url':_0xd6d680('0x2196'),'views':{'content@app':{'templateUrl':_0x30b74d,'controller':_0xd6d680('0x227')}},'resolve':{'vtigerAccounts':[_0xd6d680('0x1d16'),'Auth',function _0x2003fc(_0x171ec4,_0x2faa3e){var _0x1855c9=_0xd6d680;return _0x2faa3e[_0x1855c9('0x26e8')](_0x1855c9('0x178b'))?_0x171ec4['resolve'](_0x1855c9('0x1606'),{'fields':_0x1855c9('0x1f'),'limit':0xa,'offset':0x0}):_0x171ec4[_0x1855c9('0x149f')](_0x1855c9('0x49a'),{'id':_0x2faa3e[_0x1855c9('0xacc')]()[_0x1855c9('0x2168')],'section':_0x1855c9('0x1894'),'fields':_0x1855c9('0x1f'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x509001(_0x3bcdbb,_0x97c41f){var _0x408138=_0xd6d680;return _0x97c41f['hasRole'](_0x408138('0x178b'))?null:_0x3bcdbb['resolve'](_0x408138('0x567'),{'fields':_0x408138('0x1bb0'),'id':_0x97c41f[_0x408138('0xacc')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0xd6d680('0x1dfd'),function _0x4e7e3a(_0x2e70fd,_0x121741){var _0x2d9caa=_0xd6d680;return _0x121741[_0x2d9caa('0x26e8')](_0x2d9caa('0x178b'))?null:_0x2e70fd[_0x2d9caa('0x149f')](_0x2d9caa('0x89e'),{'fields':_0x2d9caa('0xe6a'),'userProfileId':_0x121741[_0x2d9caa('0xacc')]()[_0x2d9caa('0x2168')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')](_0xd6d680('0x26'),{'url':'/:id?tab','params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3f824e,'controller':_0xd6d680('0x1d27')}},'resolve':{'vtigerAccount':[_0xd6d680('0x1d16'),_0xd6d680('0x703'),function _0x48e00d(_0x82a636,_0x47f697){var _0x2fa946=_0xd6d680;return _0x82a636[_0x2fa946('0x149f')](_0x2fa946('0x1606'),{'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','id':_0x47f697['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0xafe9ed(_0x4db9fd,_0x2cca35){var _0xb05987=_0xd6d680;return _0x4db9fd[_0xb05987('0x149f')](_0xb05987('0x89e'),{'fields':_0xb05987('0xe6a'),'userProfileId':_0x2cca35['getCurrentUser']()[_0xb05987('0x2168')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':'integrations'})[_0xd6d680('0xb46')](_0xd6d680('0x94'),{'url':_0xd6d680('0x8d6'),'views':{'content@app':{'templateUrl':_0x3c4f09,'controller':'Dynamics365AccountsController\x20as\x20vm'}},'resolve':{'dynamics365Accounts':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0xdcfca6(_0x50a4b2,_0x55ec25){var _0x2366c2=_0xd6d680;return _0x55ec25[_0x2366c2('0x26e8')](_0x2366c2('0x178b'))?_0x50a4b2[_0x2366c2('0x149f')](_0x2366c2('0xeeb'),{'fields':_0x2366c2('0x1bc3'),'limit':0xa,'offset':0x0}):_0x50a4b2[_0x2366c2('0x149f')]('userProfile@getResources',{'id':_0x55ec25[_0x2366c2('0xacc')]()['userProfileId'],'section':_0x2366c2('0x264f'),'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xd6d680('0x1dfd'),function _0x9f52b5(_0x14244d,_0x19ac5b){var _0x1feaca=_0xd6d680;return _0x19ac5b[_0x1feaca('0x26e8')]('admin')?null:_0x14244d[_0x1feaca('0x149f')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x19ac5b[_0x1feaca('0xacc')]()[_0x1feaca('0x2168')]});}],'userProfileSection':['apiResolver',_0xd6d680('0x1dfd'),function _0x33b6e4(_0x278898,_0x29491b){var _0x518311=_0xd6d680;return _0x29491b[_0x518311('0x26e8')]('admin')?null:_0x278898[_0x518311('0x149f')](_0x518311('0x89e'),{'fields':_0x518311('0xe6a'),'userProfileId':_0x29491b['getCurrentUser']()[_0x518311('0x2168')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')](_0xd6d680('0x361'),{'url':_0xd6d680('0xad'),'params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x6a0b6d,'controller':_0xd6d680('0x27d')}},'resolve':{'dynamics365Account':[_0xd6d680('0x1d16'),_0xd6d680('0x703'),function _0x4b8ae3(_0x111897,_0xea3139){var _0x5ac1d5=_0xd6d680;return _0x111897['resolve'](_0x5ac1d5('0xeeb'),{'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','id':_0xea3139['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x4e2b9e(_0x47df63,_0xa1c7e9){var _0x45d1a0=_0xd6d680;return _0x47df63['resolve']('userProfileSection@get',{'fields':_0x45d1a0('0xe6a'),'userProfileId':_0xa1c7e9[_0x45d1a0('0xacc')]()['userProfileId'],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0xd6d680('0x1f66')})['state']('app.integrations.servicenowAccounts',{'url':_0xd6d680('0x26d7'),'views':{'content@app':{'templateUrl':_0x4b28c0,'controller':_0xd6d680('0x20e0')}},'resolve':{'servicenowAccounts':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x3da4d0(_0x369601,_0x28f020){var _0x8a2fe1=_0xd6d680;return _0x28f020[_0x8a2fe1('0x26e8')]('admin')?_0x369601[_0x8a2fe1('0x149f')](_0x8a2fe1('0x17d9'),{'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'offset':0x0}):_0x369601[_0x8a2fe1('0x149f')]('userProfile@getResources',{'id':_0x28f020[_0x8a2fe1('0xacc')]()[_0x8a2fe1('0x2168')],'section':_0x8a2fe1('0x2622'),'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x44fd7e(_0x2e369e,_0x39172d){var _0x3fa585=_0xd6d680;return _0x39172d[_0x3fa585('0x26e8')](_0x3fa585('0x178b'))?null:_0x2e369e['resolve'](_0x3fa585('0x567'),{'fields':_0x3fa585('0x1bb0'),'id':_0x39172d[_0x3fa585('0xacc')]()[_0x3fa585('0x2168')]});}],'userProfileSection':['apiResolver','Auth',function _0x433488(_0x577c5d,_0x5e1eb6){var _0x59b783=_0xd6d680;return _0x5e1eb6[_0x59b783('0x26e8')](_0x59b783('0x178b'))?null:_0x577c5d[_0x59b783('0x149f')]('userProfileSection@get',{'fields':_0x59b783('0xe6a'),'userProfileId':_0x5e1eb6[_0x59b783('0xacc')]()[_0x59b783('0x2168')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0xd6d680('0x1f66')})['state'](_0xd6d680('0x12e3'),{'url':_0xd6d680('0xad'),'params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xe30c1c,'controller':_0xd6d680('0x1d42')}},'resolve':{'servicenowAccount':[_0xd6d680('0x1d16'),'$stateParams',function _0x2b7eda(_0x578514,_0x446564){var _0xf4524e=_0xd6d680;return _0x578514[_0xf4524e('0x149f')](_0xf4524e('0x17d9'),{'fields':_0xf4524e('0x140'),'id':_0x446564['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),'Auth',function _0x56fa07(_0x43fc90,_0x36a198){var _0x2e5fa6=_0xd6d680;return _0x43fc90[_0x2e5fa6('0x149f')](_0x2e5fa6('0x89e'),{'fields':_0x2e5fa6('0xe6a'),'userProfileId':_0x36a198['getCurrentUser']()[_0x2e5fa6('0x2168')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':'integrations'})[_0xd6d680('0xb46')]('app.integrations.freshsalesAccounts',{'url':'/freshsalesAccounts','views':{'content@app':{'templateUrl':_0x511780,'controller':'FreshsalesAccountsController\x20as\x20vm'}},'resolve':{'freshsalesAccounts':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x1902cd(_0x5ed9b8,_0x32b9f3){var _0x121446=_0xd6d680;return _0x32b9f3[_0x121446('0x26e8')](_0x121446('0x178b'))?_0x5ed9b8['resolve']('intFreshsalesAccount@get',{'fields':_0x121446('0x520'),'limit':0xa,'offset':0x0}):_0x5ed9b8['resolve'](_0x121446('0x49a'),{'id':_0x32b9f3[_0x121446('0xacc')]()['userProfileId'],'section':_0x121446('0x10a9'),'fields':_0x121446('0x520'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x42b57f(_0x17983c,_0x32da59){var _0x5c6361=_0xd6d680;return _0x32da59[_0x5c6361('0x26e8')](_0x5c6361('0x178b'))?null:_0x17983c[_0x5c6361('0x149f')](_0x5c6361('0x567'),{'fields':_0x5c6361('0x1bb0'),'id':_0x32da59['getCurrentUser']()[_0x5c6361('0x2168')]});}],'userProfileSection':[_0xd6d680('0x1d16'),'Auth',function _0x3bad61(_0x2b40f8,_0x3fe11f){var _0x4c7ca5=_0xd6d680;return _0x3fe11f[_0x4c7ca5('0x26e8')]('admin')?null:_0x2b40f8[_0x4c7ca5('0x149f')](_0x4c7ca5('0x89e'),{'fields':_0x4c7ca5('0xe6a'),'userProfileId':_0x3fe11f['getCurrentUser']()[_0x4c7ca5('0x2168')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0xd6d680('0x1f66')})[_0xd6d680('0xb46')](_0xd6d680('0xae2'),{'url':_0xd6d680('0xad'),'params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x40de8a,'controller':_0xd6d680('0x251a')}},'resolve':{'freshsalesAccount':[_0xd6d680('0x1d16'),_0xd6d680('0x703'),function _0x3c1b35(_0x5bba05,_0x462408){var _0x4a2cdc=_0xd6d680;return _0x5bba05['resolve'](_0x4a2cdc('0x1fb8'),{'fields':_0x4a2cdc('0x520'),'id':_0x462408['id']});}],'userProfileSection':[_0xd6d680('0x1d16'),_0xd6d680('0x1dfd'),function _0x32a30b(_0x57df0a,_0x479656){var _0x55b549=_0xd6d680;return _0x57df0a[_0x55b549('0x149f')](_0x55b549('0x89e'),{'fields':_0x55b549('0xe6a'),'userProfileId':_0x479656[_0x55b549('0xacc')]()[_0x55b549('0x2168')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0xd6d680('0x1f66')}),_0x412cb9[_0xd6d680('0x1de5')]('app/main/apps/integrations');}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x2ef'),[_0x1a8446('0x1308'),'ngPassword',_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),'ckeditor',_0x1a8446('0xb89'),_0x1a8446('0x150f'),'ngAnimate','mdPickers',_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),_0x1a8446('0x1320'),'angular.filter'])['config'](_0x1ee951)[_0x1a8446('0x780')](_0x1a8446('0x2f0'),_0x2511af)[_0x1a8446('0x780')](_0x1a8446('0x1601'),_0x19f827)['controller'](_0x1a8446('0x2685'),_0x5c2bfe)['controller'](_0x1a8446('0x791'),_0x528762)[_0x1a8446('0x780')](_0x1a8446('0x2248'),_0x29fa3d)[_0x1a8446('0x780')]('DeskAccountController',_0x41e91d)[_0x1a8446('0x780')](_0x1a8446('0x1307'),_0x4eea89)[_0x1a8446('0x780')](_0x1a8446('0x1001'),_0x791818)[_0x1a8446('0x780')](_0x1a8446('0x944'),_0x253177)[_0x1a8446('0x780')]('CreateOrEditDynamics365ConfigurationDialogController',_0x3b256c)[_0x1a8446('0x780')](_0x1a8446('0x1695'),_0x2154f8)[_0x1a8446('0x780')](_0x1a8446('0x19ed'),_0x388197)[_0x1a8446('0x780')]('CreateOrEditFreshdeskAccountDialogController',_0x3ce463)[_0x1a8446('0x780')]('FreshdeskAccountConfigurationsController',_0x433462)[_0x1a8446('0x780')](_0x1a8446('0xbd1'),_0x2a591d)[_0x1a8446('0x780')](_0x1a8446('0x194e'),_0x1c33dc)[_0x1a8446('0x780')](_0x1a8446('0x1ce6'),_0x3dde66)[_0x1a8446('0x780')](_0x1a8446('0x100b'),_0x16cdb4)[_0x1a8446('0x780')](_0x1a8446('0x26d6'),_0x428a0c)[_0x1a8446('0x780')]('FreshsalesAccountConfigurationsController',_0x47bf07)[_0x1a8446('0x780')](_0x1a8446('0xbd'),_0x5e1403)['controller'](_0x1a8446('0x589'),_0x5c8a94)[_0x1a8446('0x780')](_0x1a8446('0x500'),_0x3ab0d3)[_0x1a8446('0x780')]('FreshsalesAccountsController',_0x1d343a)[_0x1a8446('0x780')](_0x1a8446('0x1c10'),_0x28e443)[_0x1a8446('0x780')]('SalesforceAccountConfigurationsController',_0x21c0ca)[_0x1a8446('0x780')]('CreateOrEditSalesforceConfigurationDialogController',_0x2ca7bb)[_0x1a8446('0x780')](_0x1a8446('0x1b6e'),_0x2e626b)[_0x1a8446('0x780')](_0x1a8446('0xc6b'),_0xfc51d6)[_0x1a8446('0x780')]('SalesforceAccountsController',_0xf62fdb)[_0x1a8446('0x780')]('CreateOrEditServicenowAccountDialogController',_0x7c8fe2)[_0x1a8446('0x780')](_0x1a8446('0x1a1'),_0x5b9dbd)['controller'](_0x1a8446('0xe2d'),_0x2ecdf1)[_0x1a8446('0x780')](_0x1a8446('0x1dde'),_0x4d1036)[_0x1a8446('0x780')](_0x1a8446('0x167f'),_0x4587a4)['controller'](_0x1a8446('0x20ce'),_0x34e5bb)['controller'](_0x1a8446('0x1f3b'),_0x5bd787)[_0x1a8446('0x780')](_0x1a8446('0x1c79'),_0x1d2d71)[_0x1a8446('0x780')]('CreateOrEditSugarcrmConfigurationDialogController',_0x35e412)[_0x1a8446('0x780')](_0x1a8446('0x2c9'),_0x2cc43f)[_0x1a8446('0x780')](_0x1a8446('0x163e'),_0x5b9f16)[_0x1a8446('0x780')]('SugarcrmAccountsController',_0xb22135)['controller'](_0x1a8446('0xfbe'),_0x21d067)[_0x1a8446('0x780')]('VtigerAccountConfigurationsController',_0xb5011f)[_0x1a8446('0x780')]('CreateOrEditVtigerConfigurationDialogController',_0x267464)['controller']('CreateOrEditVtigerAccountItemDialogController',_0x4d0ecc)['controller'](_0x1a8446('0x1cac'),_0x1f8a0c)[_0x1a8446('0x780')](_0x1a8446('0xdff'),_0x93aa96)[_0x1a8446('0x780')](_0x1a8446('0x20dd'),_0x277f2d)[_0x1a8446('0x780')](_0x1a8446('0x1d13'),_0x200021)[_0x1a8446('0x780')](_0x1a8446('0x2797'),_0x21c650)[_0x1a8446('0x780')](_0x1a8446('0x1590'),_0x2ac488)[_0x1a8446('0x780')](_0x1a8446('0xd04'),_0x216cf6)[_0x1a8446('0x780')](_0x1a8446('0x193'),_0x3339af)['controller'](_0x1a8446('0x1df5'),_0x137071)[_0x1a8446('0x780')](_0x1a8446('0x1241'),_0x19c4d0)['controller'](_0x1a8446('0x1d4b'),_0x223aca)[_0x1a8446('0x780')](_0x1a8446('0x33c'),_0x4d7fa)['controller'](_0x1a8446('0x263a'),_0x2726b2)[_0x1a8446('0x780')]('ZohoAccountsController',_0x18ee5c);const _0x2322a0=_0x4fb511['p']+_0x1a8446('0x1660'),_0x5664d3=_0x4fb511['p']+_0x1a8446('0xe85'),_0x3b8d4f=_0x4fb511['p']+_0x1a8446('0x1937');_0x3d487f[_0x1a8446('0x1e33')]=[_0x1a8446('0x39b'),_0x1a8446('0x2378'),'$state',_0x1a8446('0x1202'),_0x1a8446('0x2a4'),'api'];function _0x3d487f(_0x5832fb,_0xcc582d,_0x5d56c7,_0x3ec1f5,_0x59af4d,_0x280392){var _0x149cf6=_0x1a8446,_0x2e337c=this;_0x2e337c[_0x149cf6('0x1202')]=_0x3ec1f5||{},_0x2e337c[_0x149cf6('0x1717')]=0x0,_0x2e337c[_0x149cf6('0x2204')]=0x0,_0x2e337c[_0x149cf6('0x395')]=0x0,_0x2e337c[_0x149cf6('0x1dcb')]=[{'name':_0x149cf6('0x1b9'),'icon':_0x149cf6('0x17bd')},{'name':_0x149cf6('0x20f9'),'icon':'icon-hangouts'},{'name':_0x149cf6('0x14c5'),'icon':'icon-email'},{'name':_0x149cf6('0x21c2'),'icon':_0x149cf6('0x1941')},{'name':_0x149cf6('0x16c4'),'icon':_0x149cf6('0x771')},{'name':_0x149cf6('0x170'),'icon':_0x149cf6('0x3')},{'name':_0x149cf6('0x220d'),'icon':_0x149cf6('0x538')}],_0x2e337c['modules']=[{'name':'cm','icon':_0x149cf6('0x2207')},{'name':_0x149cf6('0x24c8'),'icon':_0x149cf6('0x82a')},{'name':_0x149cf6('0x1886'),'icon':_0x149cf6('0x1a64')}],_0x2e337c[_0x149cf6('0xca7')]=[{'name':_0x149cf6('0x2834'),'icon':_0x149cf6('0x20d0')},{'name':_0x149cf6('0x142f'),'icon':_0x149cf6('0xda5')},{'name':'custom','icon':_0x149cf6('0x18a')},{'name':_0x149cf6('0x14c3'),'icon':_0x149cf6('0x124')},{'name':'ai','icon':'icon-text-to-speech'}],_0x2e337c[_0x149cf6('0x16fc')]=[{'name':_0x149cf6('0x1c74'),'icon':_0x149cf6('0xdc6'),'restart':!![],'label':_0x149cf6('0x1dcb'),'enabled':_0x149cf6('0x1b9')},{'name':'virtual','icon':'icon-dots-horizontal','restart':![],'label':'sessions','enabled':_0x149cf6('0x20f9')}],_0x2e337c[_0x149cf6('0x1ea6')]=[{'name':_0x149cf6('0x264e'),'icon':_0x149cf6('0xf83')}],_0x280392['user'][_0x149cf6('0x2122')]({'fields':'id','role':'agent','online':!![]})[_0x149cf6('0x1dc2')][_0x149cf6('0xaa5')](function(_0xa81281){var _0x1454e6=_0x149cf6;return _0x2e337c[_0x1454e6('0x1717')]=_0xa81281&&_0xa81281[_0x1454e6('0xd15')]?_0xa81281['count']:0x0,_0x280392[_0x1454e6('0x272b')][_0x1454e6('0x2122')]({'fields':'id','role':_0x1454e6('0x14e8')})['$promise'];})[_0x149cf6('0xaa5')](function(_0x143568){var _0x2090ea=_0x149cf6;return _0x2e337c[_0x2090ea('0x2204')]=_0x143568&&_0x143568['count']?_0x143568[_0x2090ea('0xd15')]:0x0,_0x280392[_0x2090ea('0x272b')]['get']({'fields':'id','role':_0x2090ea('0xb5b')})['$promise'];})['then'](function(_0x4ce64e){var _0x324a9d=_0x149cf6;_0x2e337c[_0x324a9d('0x395')]=_0x4ce64e&&_0x4ce64e['count']?_0x4ce64e['count']:0x0;})[_0x149cf6('0x253d')](function(_0x377b65){var _0x2f758f=_0x149cf6;console[_0x2f758f('0x18d5')](_0x377b65);});function _0x585635(_0x2f1061){var _0x279dc9=_0x149cf6;_0xcc582d[_0x279dc9('0x1e6d')]({'controller':'UpdateLicenseDialogController','controllerAs':'vm','templateUrl':_0x5664d3,'parent':angular[_0x279dc9('0x1aa8')](_0x5832fb[_0x279dc9('0x54c')]),'targetEvent':_0x2f1061,'clickOutsideToClose':!![],'locals':{'license':_0x3ec1f5}});}function _0x5a8e5a(_0x416eac){var _0x4ccfb8=_0x149cf6;_0xcc582d[_0x4ccfb8('0x1e6d')]({'controller':_0x4ccfb8('0x35f'),'controllerAs':'vm','templateUrl':_0x3b8d4f,'parent':angular['element'](_0x5832fb[_0x4ccfb8('0x54c')]),'targetEvent':_0x416eac,'clickOutsideToClose':!![],'locals':{'license':_0x3ec1f5,'channels':_0x2e337c[_0x4ccfb8('0x1dcb')],'modules':_0x2e337c[_0x4ccfb8('0x269')],'addons':_0x2e337c[_0x4ccfb8('0xca7')],'sessions':_0x2e337c[_0x4ccfb8('0x16fc')],'others':_0x2e337c[_0x4ccfb8('0x1ea6')]}});}function _0x56977d(){var _0x5dc256=_0x149cf6;_0x5d56c7['go'](_0x5dc256('0x2673'),{'tab':0x1});}_0x2e337c[_0x149cf6('0x2664')]=_0x5a8e5a,_0x2e337c[_0x149cf6('0x252a')]=_0x585635,_0x2e337c[_0x149cf6('0x2462')]=_0x56977d;}const _0x6fa9d6=_0x3d487f;_0x39ad5c[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x2a4'),'license',_0x1a8446('0x1dcb'),_0x1a8446('0x269'),_0x1a8446('0xca7'),_0x1a8446('0x16fc'),_0x1a8446('0x1ea6'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xcb3')];function _0x39ad5c(_0x177f23,_0x55d0d6,_0x27231a,_0x19cd33,_0x179021,_0x305dd9,_0x5680f8,_0x47f57d,_0x589ad6,_0x155866,_0x2f0b6f){var _0x5e5491=_0x1a8446,_0x1d53b8=this;_0x1d53b8[_0x5e5491('0x4c6')]=[],_0x1d53b8[_0x5e5491('0x272b')]=_0x155866[_0x5e5491('0xacc')](),_0x1d53b8[_0x5e5491('0x1202')]=angular[_0x5e5491('0x20a')](_0x27231a),_0x1d53b8[_0x5e5491('0x1dcb')]=_0x19cd33,_0x1d53b8['modules']=_0x179021,_0x1d53b8['addons']=_0x305dd9,_0x1d53b8[_0x5e5491('0x16fc')]=_0x5680f8,_0x1d53b8[_0x5e5491('0x1ea6')]=_0x47f57d,_0x1d53b8[_0x5e5491('0x1202')][_0x5e5491('0x25d6')]=_0x1d53b8[_0x5e5491('0x272b')][_0x5e5491('0x18e5')],_0x1d53b8['license']['email']=_0x1d53b8[_0x5e5491('0x272b')][_0x5e5491('0x1f69')],_0x1d53b8['sendRequest']=_0x2637c3,_0x1d53b8[_0x5e5491('0x2023')]=_0x209280;function _0x2637c3(){var _0x521a48=_0x5e5491;_0x1d53b8[_0x521a48('0x4c6')]=[],_0x1d53b8[_0x521a48('0x12b6')]=_0x521a48('0xcda');for(var _0x2b03be in _0x1d53b8[_0x521a48('0x1202')]){typeof _0x1d53b8[_0x521a48('0x1202')][_0x2b03be]!=='undefined'&&!_0x51538b()['includes'](['$promise',_0x521a48('0xd92')],_0x2b03be)&&(_0x27231a[_0x2b03be]===_0x1d53b8['license'][_0x2b03be]?_0x1d53b8[_0x521a48('0x12b6')]+='|'+_0x2b03be+'|'+(_0x27231a[_0x2b03be]!==undefined?_0x27231a[_0x2b03be]:'')+'|'+_0x1d53b8[_0x521a48('0x1202')][_0x2b03be]+'|\x0a':_0x1d53b8['table']+='|'+_0x2b03be+_0x521a48('0x13ca')+(_0x27231a[_0x2b03be]!==undefined?_0x27231a[_0x2b03be]:'')+_0x521a48('0xb54')+_0x1d53b8[_0x521a48('0x1202')][_0x2b03be]+_0x521a48('0x1245'));}_0x589ad6[_0x521a48('0x95c')][_0x521a48('0x242b')]({'key':_0x521a48('0x202d'),'summary':'Motion\x20License\x20Request','description':_0x1d53b8[_0x521a48('0x12b6')],'issuetype':_0x521a48('0x86')})[_0x521a48('0x1dc2')][_0x521a48('0xaa5')](function(){var _0x9a015=_0x521a48;_0x55d0d6[_0x9a015('0xe10')]({'title':_0x9a015('0x2127'),'msg':_0x2f0b6f['instant'](_0x9a015('0x1b4e')),'timeout':0x3a98}),_0x209280();})[_0x521a48('0x253d')](function(_0x381ae2){var _0x3b9fac=_0x521a48;console[_0x3b9fac('0x187f')](_0x381ae2),_0x1d53b8[_0x3b9fac('0x4c6')]=[{'message':_0x2f0b6f['instant'](_0x3b9fac('0x268')),'type':_0x3b9fac('0x1b08')}];});}function _0x209280(){_0x177f23['hide']();}}const _0x10c531=_0x39ad5c;_0x187116[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'toasty',_0x1a8446('0x1202'),_0x1a8446('0x157')];function _0x187116(_0x2b7915,_0x3a80f7,_0xeb1017,_0x1ee777){var _0x3f6a2c=_0x1a8446,_0xbd865a=this;_0xbd865a[_0x3f6a2c('0x4c6')]=[],_0xbd865a[_0x3f6a2c('0x1202')]=angular[_0x3f6a2c('0x20a')](_0xeb1017),_0xbd865a[_0x3f6a2c('0x161e')],_0xbd865a[_0x3f6a2c('0x252a')]=_0x33e3fb,_0xbd865a['closeDialog']=_0x15d231;function _0x33e3fb(){var _0x49492a=_0x3f6a2c;return _0x1ee777['license'][_0x49492a('0x264e')]({'id':0x1,'key':_0xbd865a[_0x49492a('0x161e')]})[_0x49492a('0x1dc2')][_0x49492a('0xaa5')](function(_0x19ace9){var _0x27c9c8=_0x49492a;_0x19ace9&&(_0x19ace9[_0x27c9c8('0x120')]?_0x3a80f7[_0x27c9c8('0x187f')]({'title':_0x27c9c8('0x2644'),'msg':_0x27c9c8('0x186a')}):_0x3a80f7[_0x27c9c8('0xe10')]({'title':'License\x20properly\x20updated!','msg':_0x27c9c8('0x1c43')}));})[_0x49492a('0x253d')](function(_0x2f84ef){var _0x562ef1=_0x49492a;_0x3a80f7[_0x562ef1('0x187f')]({'title':_0x2f84ef['status']?_0x562ef1('0x16c2')+_0x2f84ef[_0x562ef1('0x2fa')]+'\x20-\x20'+_0x2f84ef[_0x562ef1('0x24df')]:'SYSTEM:UPDATElicense','msg':_0x2f84ef[_0x562ef1('0x10fd')]?JSON[_0x562ef1('0xa48')](_0x2f84ef[_0x562ef1('0x10fd')]):_0x2f84ef[_0x562ef1('0x684')]()});});}function _0x15d231(){var _0x492a30=_0x3f6a2c;_0x2b7915[_0x492a30('0x1120')]();}}const _0x3f4425=_0x187116;_0xe69070[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0xe69070(_0x251a42){var _0x2cfd53=_0x1a8446;_0x251a42[_0x2cfd53('0xb46')](_0x2cfd53('0x1a49'),{'url':_0x2cfd53('0x22a0'),'views':{'content@app':{'templateUrl':_0x2322a0,'controller':_0x2cfd53('0x1e20')}},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'});}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x1a49'),[])[_0x1a8446('0x1b14')](_0xe69070)[_0x1a8446('0x780')]('LicenseController',_0x6fa9d6)[_0x1a8446('0x780')](_0x1a8446('0x35f'),_0x10c531)[_0x1a8446('0x780')](_0x1a8446('0x1667'),_0x3f4425);const _0x4c13f7=_0x4fb511['p']+_0x1a8446('0x1c28');_0x57c347[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x21b3'),_0x1a8446('0x2378'),'$state',_0x1a8446('0x5da'),_0x1a8446('0x1adc'),_0x1a8446('0x2a4'),_0x1a8446('0x157')];function _0x57c347(_0x1d1b72,_0x2a64f8,_0x28a131,_0x25efc3,_0x495209,_0x1b6b0d,_0x11f355,_0x5a7093){var _0xdb830c=_0x1a8446,_0x4e47c5=this,_0x3cf459=null;_0x4e47c5['system']=_0x495209||{},_0x4e47c5[_0xdb830c('0x1adc')]=_0x1b6b0d?_0x1b6b0d[_0xdb830c('0x580')]:[],_0x4e47c5[_0xdb830c('0xb6a')]=0x7,_0x4e47c5[_0xdb830c('0xe5c')]=_0x25efc3['params'][_0xdb830c('0x25c2')]||0x0,_0x4e47c5[_0xdb830c('0x1ad8')]=_0x39a9c4,_0x4e47c5['getProcesses']=_0x56efe8,_0x4e47c5[_0xdb830c('0x1e4e')]=_0x4f9fe5,_0x4e47c5[_0xdb830c('0x1183')]=_0x4e4274;function _0x4f9fe5(){var _0x44a9ae=_0xdb830c;_0x2a64f8[_0x44a9ae('0x2030')](_0x3cf459),_0x3cf459=null;}function _0x4e4274(_0x2b9bca,_0x599b3f,_0x3c5559){var _0x2f8c3e=_0xdb830c,_0x46afca=_0x28a131['confirm']()['title'](_0x2f8c3e('0x1bc0')+_0x599b3f+'?')[_0x2f8c3e('0x447')]('The\x20status\x20will\x20be\x20changed\x20to:\x20'+_0x3c5559['toUpperCase']())['ariaLabel'](_0x2f8c3e('0xd49'))[_0x2f8c3e('0x116d')](_0x2b9bca)['ok']('Ok')[_0x2f8c3e('0x2030')](_0x2f8c3e('0x9c6'));_0x28a131[_0x2f8c3e('0x1e6d')](_0x46afca)[_0x2f8c3e('0xaa5')](function(){var _0x4b78c4=_0x2f8c3e;return _0x5a7093[_0x4b78c4('0xb00')][_0x4b78c4('0x264e')]({'id':_0x599b3f,'status':_0x3c5559});})[_0x2f8c3e('0xaa5')](function(){_0x2a64f8(_0x4e47c5['getProcesses'],0x3e8,0x1);})['then'](function(){var _0x1ca89f=_0x2f8c3e;_0x11f355['success']({'title':'Process\x20updated!','msg':_0x1ca89f('0x1180')+_0x3c5559});});}function _0x39a9c4(){var _0x15e694=_0xdb830c;return _0x5a7093['system'][_0x15e694('0x2122')]()[_0x15e694('0x1dc2')][_0x15e694('0xaa5')](function(_0x448a4c){var _0x306118=_0x15e694;_0x51538b()[_0x306118('0x283c')](_0x4e47c5[_0x306118('0x5da')],_0x448a4c);})['catch'](_0x4e47c5[_0x15e694('0x1e4e')]);}function _0x56efe8(){var _0x1a532e=_0xdb830c;return _0x5a7093[_0x1a532e('0xb00')]['get']()[_0x1a532e('0x1dc2')][_0x1a532e('0xaa5')](function(_0x5e7dc2){var _0x443566=_0x1a532e;_0x51538b()[_0x443566('0x283c')](_0x4e47c5[_0x443566('0x1adc')],_0x5e7dc2?_0x5e7dc2[_0x443566('0x580')]:[]);})[_0x1a532e('0x253d')](_0x4e47c5[_0x1a532e('0x1e4e')]);}_0x3cf459=_0x2a64f8(_0x4e47c5[_0xdb830c('0x1ad8')],0x1388),_0x1d1b72['$on'](_0xdb830c('0x12d0'),function(){_0x4e47c5['cancelInterval']();});}const _0x593992=_0x57c347;_0x118498['$inject']=[_0x1a8446('0x2ce')];function _0x118498(_0xf80c1e){var _0x56185b=_0x1a8446;_0xf80c1e['state']('app.settings.system',{'url':'/system?tab','views':{'content@app':{'templateUrl':_0x4c13f7,'controller':_0x56185b('0x990')}},'resolve':{'system':['apiResolver',function _0xa6dab4(_0x2df8a0){var _0x5b8fab=_0x56185b;return _0x2df8a0['resolve'](_0x5b8fab('0x16ea'));}],'processes':[_0x56185b('0x1d16'),function _0x4f7a22(_0x2fbf22){var _0x5bb26b=_0x56185b;return _0x2fbf22[_0x5bb26b('0x149f')](_0x5bb26b('0x2792'));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x56185b('0xaa7')});}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x2673'),[])[_0x1a8446('0x1b14')](_0x118498)[_0x1a8446('0x780')](_0x1a8446('0x745'),_0x593992);const _0x275242=_0x4fb511['p']+'src/js/modules/main/apps/settings/views/updates/updates.html/updates-[chunkhash].html';_0x282909['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0x21b3'),_0x1a8446('0x27bf'),'$timeout',_0x1a8446('0x157')];function _0x282909(_0x27ba8b,_0x5f487a,_0x594258,_0x2f82da,_0x235525){var _0x1e8638=_0x1a8446,_0x14ff29=this;_0x14ff29[_0x1e8638('0x110a')]='SETTINGS.UPDATE',_0x14ff29[_0x1e8638('0x20e1')]=0x0,_0x14ff29[_0x1e8638('0x2594')]=!![],_0x14ff29[_0x1e8638('0x18c0')]='Waiting...',_0x14ff29['success']=!![],_0x14ff29['interval']=_0x5f487a(function(){var _0x983a44=_0x1e8638;_0x14ff29['progress']<0x5a&&(_0x14ff29[_0x983a44('0x20e1')]+=0x1);},0x3e8),_0x235525[_0x1e8638('0x2678')][_0x1e8638('0x50d')]()[_0x1e8638('0x1dc2')][_0x1e8638('0xaa5')](function(_0x5a3f16){var _0x3be7b8=_0x1e8638;return _0x14ff29[_0x3be7b8('0x18c0')]=_0x5a3f16[_0x3be7b8('0x18c0')]+'...',_0x235525[_0x3be7b8('0x2678')][_0x3be7b8('0xb6')]()['$promise'];})[_0x1e8638('0xaa5')](function(_0x566fea){var _0x149860=_0x1e8638;return _0x14ff29[_0x149860('0x18c0')]=_0x566fea[_0x149860('0x18c0')]+'...',_0x235525[_0x149860('0x2678')][_0x149860('0x8d8')]()['$promise'];})[_0x1e8638('0xaa5')](function(_0x508efc){var _0x5741f4=_0x1e8638;return _0x14ff29[_0x5741f4('0x18c0')]=_0x508efc[_0x5741f4('0x18c0')]+_0x5741f4('0x19d6'),_0x235525[_0x5741f4('0x2678')][_0x5741f4('0x15a9')]()['$promise'];})[_0x1e8638('0xaa5')](function(_0x183bbc){var _0x58b111=_0x1e8638;return _0x14ff29[_0x58b111('0x18c0')]=_0x183bbc[_0x58b111('0x18c0')]+'...',_0x235525[_0x58b111('0x2678')][_0x58b111('0x2d3')]()[_0x58b111('0x1dc2')];})[_0x1e8638('0xaa5')](function(){var _0x1948b8=_0x1e8638;_0x14ff29[_0x1948b8('0x18c0')]=_0x1948b8('0x14be'),_0x2f82da(function(){var _0x372e7e=_0x1948b8;_0x14ff29[_0x372e7e('0x16d7')]();},0x7530);})['catch'](function(_0x218e05){var _0x536567=_0x1e8638;_0x14ff29[_0x536567('0xe10')]=![],_0x14ff29[_0x536567('0x16d7')](),_0x14ff29[_0x536567('0x18c0')]=JSON['stringify'](_0x218e05);});function _0x457034(){var _0x1be5e7=_0x1e8638;angular[_0x1be5e7('0x21dc')](_0x14ff29[_0x1be5e7('0x1c21')])&&(_0x5f487a[_0x1be5e7('0x2030')](_0x14ff29[_0x1be5e7('0x1c21')]),_0x14ff29['interval']=undefined),_0x14ff29['progress']=0x64,_0x14ff29[_0x1be5e7('0x2594')]=![];}function _0x53b86d(){var _0xe3d66=_0x1e8638;_0x594258[_0xe3d66('0x18cc')][_0xe3d66('0xdf3')]();}function _0x18b2fc(){var _0x29d611=_0x1e8638;_0x27ba8b[_0x29d611('0x1120')]();}_0x14ff29[_0x1e8638('0x2023')]=_0x18b2fc,_0x14ff29[_0x1e8638('0xdf3')]=_0x53b86d,_0x14ff29['stopInterval']=_0x457034;}const _0x2f7d28=_0x282909,_0x45fed0=_0x4fb511['p']+_0x1a8446('0x1e7a');_0x20cef5['$inject']=[_0x1a8446('0x2378'),_0x1a8446('0x21b3'),_0x1a8446('0x39b'),'version'];function _0x20cef5(_0x41343e,_0x3b1050,_0xe7f56e,_0x39bc3e){var _0x13e00f=_0x1a8446,_0x175529=this;_0x175529[_0x13e00f('0x2678')]=_0x39bc3e||{};function _0x1c188e(_0x58545f){var _0x4d9dca=_0x13e00f,_0x1f739c=_0x41343e[_0x4d9dca('0x281e')]()[_0x4d9dca('0x110a')](_0x4d9dca('0x2000'))[_0x4d9dca('0x102e')](_0x4d9dca('0x987'))[_0x4d9dca('0x5b5')]('')[_0x4d9dca('0x116d')](_0x58545f)[_0x4d9dca('0x22b9')](!![])[_0x4d9dca('0x20a2')](angular[_0x4d9dca('0x1aa8')](_0xe7f56e[_0x4d9dca('0x54c')]))['ok'](_0x4d9dca('0x146c'))[_0x4d9dca('0x2030')](_0x4d9dca('0x148c'));_0x41343e[_0x4d9dca('0x1e6d')](_0x1f739c)['then'](function(){var _0x273244=_0x4d9dca;_0x41343e['show']({'controller':'UpdateDialogController','controllerAs':'vm','templateUrl':_0x45fed0,'parent':angular['element'](_0xe7f56e[_0x273244('0x54c')]),'targetEvent':_0x58545f,'clickOutsideToClose':![]});});}_0x175529[_0x13e00f('0xb50')]=_0x1c188e;}const _0x477cc1=_0x20cef5;_0x12b802['$inject']=[_0x1a8446('0x2ce')];function _0x12b802(_0x1d4d38){var _0x543631=_0x1a8446;_0x1d4d38['state'](_0x543631('0x10fa'),{'url':_0x543631('0xf4'),'views':{'content@app':{'templateUrl':_0x275242,'controller':_0x543631('0xdd5')}},'resolve':{'version':[_0x543631('0x1d16'),function _0x15ad57(_0x42b8bf){var _0x1ea11d=_0x543631;return _0x42b8bf[_0x1ea11d('0x149f')](_0x1ea11d('0x25d0'),{'latest':!![]});}],'userProfile':[_0x543631('0x1d16'),_0x543631('0x1dfd'),function _0x586dd6(_0x5a806a,_0x1a4e0b){var _0xed4d34=_0x543631;return _0x5a806a[_0xed4d34('0x149f')](_0xed4d34('0x567'),{'fields':'id,name,crudPermissions','id':_0x1a4e0b[_0xed4d34('0xacc')]()[_0xed4d34('0x2168')]});}],'userProfileSection':[_0x543631('0x1d16'),_0x543631('0x1dfd'),function _0x308fad(_0x188a7d,_0x122804){var _0x3c3707=_0x543631;return _0x188a7d[_0x3c3707('0x149f')](_0x3c3707('0x89e'),{'fields':_0x3c3707('0xe6a'),'userProfileId':_0x122804[_0x3c3707('0xacc')]()[_0x3c3707('0x2168')],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x543631('0xaa7')});}angular['module']('app.settings.updates',[])['config'](_0x12b802)['controller'](_0x1a8446('0x144b'),_0x2f7d28)[_0x1a8446('0x780')](_0x1a8446('0x345'),_0x477cc1);const _0x579726=_0x4fb511['p']+_0x1a8446('0x19e5'),_0x5f52d8=_0x4fb511['p']+'src/js/modules/main/apps/settings/views/smtps/smtps.html/smtps-[chunkhash].html',_0x133b1d=_0x4fb511['p']+_0x1a8446('0x1eed'),_0x22dce1=_0x4fb511['p']+_0x1a8446('0x2254'),_0x4a6a31=_0x4fb511['p']+_0x1a8446('0x1051'),_0x340a4d=_0x4fb511['p']+'src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.html/dialog-[chunkhash].html';_0x42abba[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x1965'),'api',_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x42abba(_0x35cfe0,_0x38bafd,_0x4d1d98,_0x2c7626,_0x3a089f,_0x5eb0dd,_0x4db54a,_0x2940d0,_0x4c94ee,_0x58f423,_0x5b4e2e,_0x3c1096,_0x5290c5,_0x408a03,_0x4a10e9){var _0x1d7dcd=_0x1a8446,_0x2f96f5=this;_0x2f96f5[_0x1d7dcd('0x1202')]=_0x408a03,_0x2f96f5[_0x1d7dcd('0x143f')]=_0x4a10e9,_0x2f96f5['currentUser']=_0x5290c5[_0x1d7dcd('0xacc')](),_0x2f96f5[_0x1d7dcd('0x1965')]=_0x4c94ee||{'count':0x0,'rows':[]},_0x2f96f5['table']=_0x1d7dcd('0x1965'),_0x2f96f5['listOrder']='',_0x2f96f5[_0x1d7dcd('0x8cc')]=null,_0x2f96f5[_0x1d7dcd('0x16a9')]=[],_0x2f96f5[_0x1d7dcd('0x582')]={'fields':_0x1d7dcd('0x166'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2f96f5[_0x1d7dcd('0x1582')]=_0x51538b()[_0x1d7dcd('0x184a')]([{'option':_0x1d7dcd('0x13dd'),'value':'\x27AmazonAWS\x27'}],function(_0xa41727){var _0x2d0206=_0x1d7dcd;return _0x51538b()[_0x2d0206('0x170d')](_0xa41727[_0x2d0206('0x12f4')],new RegExp('\x27','g'),'');}),_0x2f96f5['editdialog']=_0x415987,_0x2f96f5[_0x1d7dcd('0x271')]=_0x16c7f4,_0x2f96f5[_0x1d7dcd('0xe10')]=_0x2acd2e,_0x2f96f5[_0x1d7dcd('0x6bc')]=_0x1e6a6a,_0x2f96f5['createOrEditCloudProvider']=_0x4ad729,_0x2f96f5['deleteCloudProvider']=_0x37b194,_0x2f96f5[_0x1d7dcd('0x1e7d')]=_0xb4f9ac,_0x2f96f5[_0x1d7dcd('0x12e9')]=_0xf82d15,_0x2f96f5[_0x1d7dcd('0x221')]=_0x16c4b0,_0x2f96f5[_0x1d7dcd('0xdc8')]=_0x3abc2d;function _0x415987(_0x2544a2,_0x11d74f){var _0x4910dc=_0x1d7dcd;_0x3a089f['show']({'controller':_0x4910dc('0x21cb'),'controllerAs':'vm','templateUrl':_0x340a4d,'parent':angular['element'](_0x5eb0dd[_0x4910dc('0x54c')]),'targetEvent':_0x11d74f,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x2544a2,'cloudProviders':_0x2f96f5[_0x4910dc('0x1965')][_0x4910dc('0x580')],'license':_0x2f96f5[_0x4910dc('0x1202')],'setting':null,'crudPermissions':_0x2f96f5[_0x4910dc('0xada')]}});}function _0x16c7f4(_0x26e647,_0x5dcee){var _0x2b1e6a=_0x1d7dcd,_0x80283b=_0x3a089f[_0x2b1e6a('0x281e')]()[_0x2b1e6a('0x110a')](_0x2b1e6a('0x88d')+_0x51538b()['startCase']('cloudProvider')+'?')[_0x2b1e6a('0x102e')](''+(_0x26e647[_0x2b1e6a('0x25d6')]||_0x2b1e6a('0x60b'))+''+'\x20will\x20be\x20deleted.')[_0x2b1e6a('0x5b5')](_0x2b1e6a('0x2358'))[_0x2b1e6a('0x116d')](_0x5dcee)['ok']('OK')[_0x2b1e6a('0x2030')](_0x2b1e6a('0x2410'));_0x3a089f['show'](_0x80283b)[_0x2b1e6a('0xaa5')](function(){_0x37b194(_0x26e647);},function(){var _0x267081=_0x2b1e6a;console[_0x267081('0x18d5')](_0x267081('0x2410'));});}var _0x199ecf=!![],_0x16b2bf=0x1;_0x35cfe0[_0x1d7dcd('0x1ccf')](_0x1d7dcd('0x1788'),function(_0x223f60,_0x3c7f1a){var _0x3a5209=_0x1d7dcd;_0x199ecf?_0x4db54a(function(){_0x199ecf=![];}):(!_0x3c7f1a&&(_0x16b2bf=_0x2f96f5[_0x3a5209('0x582')]['page']),_0x223f60!==_0x3c7f1a&&(_0x2f96f5[_0x3a5209('0x582')][_0x3a5209('0x41')]=0x1),!_0x223f60&&(_0x2f96f5[_0x3a5209('0x582')][_0x3a5209('0x41')]=_0x16b2bf),_0x2f96f5[_0x3a5209('0x6bc')]());});function _0x2acd2e(_0x262c01){var _0x5d5fbc=_0x1d7dcd;_0x2f96f5[_0x5d5fbc('0x1965')]=_0x262c01||{'count':0x0,'rows':[]};}function _0x1e6a6a(){var _0x397f37=_0x1d7dcd;_0x2f96f5['query']['offset']=(_0x2f96f5[_0x397f37('0x582')][_0x397f37('0x41')]-0x1)*_0x2f96f5[_0x397f37('0x582')][_0x397f37('0xf4d')],_0x5290c5[_0x397f37('0x26e8')]('admin')?_0x2f96f5[_0x397f37('0x159a')]=_0x58f423['cloudProvider'][_0x397f37('0x2122')](_0x2f96f5['query'],_0x2acd2e)[_0x397f37('0x1dc2')]:(_0x2f96f5[_0x397f37('0x582')]['id']=_0x2f96f5[_0x397f37('0x1e97')]['id'],_0x2f96f5[_0x397f37('0x582')][_0x397f37('0x224d')]='AiTools',_0x2f96f5[_0x397f37('0x159a')]=_0x58f423[_0x397f37('0x1e97')]['getResources'](_0x2f96f5[_0x397f37('0x582')],_0x2acd2e)['$promise']);}function _0x4ad729(_0x133dac,_0x487f72){var _0x12b6b2=_0x1d7dcd;_0x3a089f['show']({'controller':_0x12b6b2('0x21cb'),'controllerAs':'vm','templateUrl':_0x340a4d,'parent':angular['element'](_0x5eb0dd[_0x12b6b2('0x54c')]),'targetEvent':_0x133dac,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x487f72,'cloudProviders':_0x2f96f5['cloudProviders']['rows'],'license':_0x2f96f5[_0x12b6b2('0x1202')],'setting':_0x2f96f5[_0x12b6b2('0x143f')],'crudPermissions':_0x2f96f5[_0x12b6b2('0xada')]}});}function _0x37b194(_0x25d604){var _0x545a4d=_0x1d7dcd;_0x58f423[_0x545a4d('0x60b')][_0x545a4d('0x926')]({'id':_0x25d604['id']})[_0x545a4d('0x1dc2')][_0x545a4d('0xaa5')](function(){var _0x29fcf2=_0x545a4d;_0x51538b()[_0x29fcf2('0xf6d')](_0x2f96f5['cloudProviders'][_0x29fcf2('0x580')],{'id':_0x25d604['id']}),_0x2f96f5[_0x29fcf2('0x1965')][_0x29fcf2('0xd15')]-=0x1,!_0x2f96f5[_0x29fcf2('0x1965')]['rows'][_0x29fcf2('0x2587')]&&_0x2f96f5[_0x29fcf2('0x6bc')](),_0x3c1096[_0x29fcf2('0xe10')]({'title':_0x51538b()[_0x29fcf2('0x196a')](_0x29fcf2('0x823'))+_0x29fcf2('0x8bb'),'msg':_0x25d604['name']?_0x25d604[_0x29fcf2('0x25d6')]+_0x29fcf2('0xcd9'):''});})[_0x545a4d('0x253d')](function(_0x2b5437){var _0x3b999e=_0x545a4d;if(_0x2b5437[_0x3b999e('0x10fd')]&&_0x2b5437[_0x3b999e('0x10fd')][_0x3b999e('0x4c6')]&&_0x2b5437[_0x3b999e('0x10fd')][_0x3b999e('0x4c6')][_0x3b999e('0x2587')]){_0x2f96f5[_0x3b999e('0x4c6')]=_0x2b5437[_0x3b999e('0x10fd')]['errors']||[{'message':_0x2b5437['toString'](),'type':_0x3b999e('0x13c6')}];for(var _0x2e621a=0x0;_0x2e621a<_0x2b5437[_0x3b999e('0x10fd')][_0x3b999e('0x4c6')][_0x3b999e('0x2587')];_0x2e621a++){_0x3c1096[_0x3b999e('0x187f')]({'title':_0x2b5437[_0x3b999e('0x10fd')][_0x3b999e('0x4c6')][_0x2e621a][_0x3b999e('0x6c8')],'msg':_0x2b5437[_0x3b999e('0x10fd')][_0x3b999e('0x4c6')][_0x2e621a][_0x3b999e('0x1402')]});}}else _0x3c1096[_0x3b999e('0x187f')]({'title':_0x2b5437[_0x3b999e('0x2fa')]?_0x3b999e('0x16c2')+_0x2b5437[_0x3b999e('0x2fa')]+_0x3b999e('0x169e')+_0x2b5437['statusText']:_0x3b999e('0x13c6'),'msg':_0x2b5437[_0x3b999e('0x10fd')]?JSON[_0x3b999e('0xa48')](_0x2b5437[_0x3b999e('0x10fd')][_0x3b999e('0x1402')]):_0x2b5437[_0x3b999e('0x1402')]||_0x2b5437[_0x3b999e('0x684')]()});});}function _0xb4f9ac(){var _0x3c7afb=_0x1d7dcd,_0x51fcba=angular[_0x3c7afb('0x20a')](_0x2f96f5[_0x3c7afb('0x16a9')]);return _0x2f96f5['selectedAiTools']=[],_0x51fcba;}function _0xf82d15(_0x331657){var _0x4ea612=_0x1d7dcd,_0x31ca16=_0x3a089f[_0x4ea612('0x281e')]()[_0x4ea612('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cloudProviders?')[_0x4ea612('0x102e')](_0x4ea612('0x389')+_0x2f96f5['selectedAiTools'][_0x4ea612('0x2587')]+_0x4ea612('0x1443')+_0x4ea612('0x210d'))['ariaLabel'](_0x4ea612('0xe70'))['targetEvent'](_0x331657)['ok']('OK')['cancel'](_0x4ea612('0x2410'));_0x3a089f[_0x4ea612('0x1e6d')](_0x31ca16)[_0x4ea612('0xaa5')](function(){var _0x46cf1c=_0x4ea612;_0x2f96f5[_0x46cf1c('0x16a9')][_0x46cf1c('0x15b5')](function(_0xbb54df){_0x37b194(_0xbb54df);}),_0x2f96f5[_0x46cf1c('0x16a9')]=[];});}function _0x16c4b0(){var _0x4a10d1=_0x1d7dcd;_0x2f96f5[_0x4a10d1('0x16a9')]=[];}function _0x3abc2d(){var _0x2d19ad=_0x1d7dcd;_0x2f96f5[_0x2d19ad('0x16a9')]=_0x2f96f5[_0x2d19ad('0x1965')][_0x2d19ad('0x580')];}}const _0x33fdd7=_0x42abba;_0x385687[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q','$translate','toasty',_0x1a8446('0x1965'),_0x1a8446('0x60b'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x385687(_0x2e022f,_0x278cae,_0x37c085,_0x3acb3e,_0x1d3368,_0x187741,_0x4ea1e9,_0x1a1d17,_0x49f078,_0x2adf9c,_0x490c35,_0x221c66,_0x4dc512){var _0xfe8f57=_0x1a8446,_0x417c59=this;_0x417c59[_0xfe8f57('0x7fc')]=_0x490c35[_0xfe8f57('0xacc')](),_0x417c59[_0xfe8f57('0x4c6')]=[],_0x417c59['setting']=_0x4dc512,_0x417c59[_0xfe8f57('0x1202')]=_0x221c66,_0x417c59[_0xfe8f57('0x9f0')]={},_0x417c59[_0xfe8f57('0x1d53')]=_0x417c59[_0xfe8f57('0x143f')]&&_0x417c59[_0xfe8f57('0x143f')][_0xfe8f57('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x417c59['title']=_0xfe8f57('0x1f8e'),_0x417c59[_0xfe8f57('0x60b')]=angular[_0xfe8f57('0x20a')](_0x49f078),_0x417c59['cloudProviders']=_0x1a1d17,_0x417c59[_0xfe8f57('0x25cd')]=![];!_0x417c59[_0xfe8f57('0x60b')]&&(_0x417c59[_0xfe8f57('0x60b')]={},_0x417c59[_0xfe8f57('0x110a')]=_0xfe8f57('0x7c9'),_0x417c59[_0xfe8f57('0x25cd')]=!![]);_0x417c59['addNewCloudProvider']=_0x3a4d39,_0x417c59['saveCloudProvider']=_0x2fcaf0,_0x417c59[_0xfe8f57('0x5a0')]=_0x333f23,_0x417c59[_0xfe8f57('0xc09')]=_0x4b0052,_0x417c59['closeDialog']=_0x48eda1;function _0x3a4d39(){var _0x3a7eae=_0xfe8f57;_0x417c59['errors']=[],_0x2adf9c[_0x3a7eae('0x60b')][_0x3a7eae('0x242b')](_0x417c59[_0x3a7eae('0x60b')])[_0x3a7eae('0x1dc2')]['then'](function(_0x273062){var _0x56b395=_0x3a7eae;_0x417c59[_0x56b395('0x1965')][_0x56b395('0x6ee')](_0x273062['toJSON']()),_0x4ea1e9[_0x56b395('0xe10')]({'title':_0x56b395('0x1a5a'),'msg':_0x417c59[_0x56b395('0x60b')][_0x56b395('0x25d6')]?_0x417c59['cloudProvider']['name']+'\x20has\x20been\x20created!':''}),_0x48eda1(_0x273062);})[_0x3a7eae('0x253d')](function(_0x495f38){var _0x2c2dc7=_0x3a7eae;if(_0x495f38[_0x2c2dc7('0x10fd')]&&_0x495f38['data'][_0x2c2dc7('0x4c6')]&&_0x495f38[_0x2c2dc7('0x10fd')]['errors']['length']){_0x417c59[_0x2c2dc7('0x4c6')]=_0x495f38[_0x2c2dc7('0x10fd')][_0x2c2dc7('0x4c6')]||[{'message':_0x495f38[_0x2c2dc7('0x684')](),'type':_0x2c2dc7('0x1af9')}];for(var _0x5a9636=0x0;_0x5a9636<_0x495f38[_0x2c2dc7('0x10fd')][_0x2c2dc7('0x4c6')]['length'];_0x5a9636+=0x1){_0x4ea1e9['error']({'title':_0x495f38[_0x2c2dc7('0x10fd')][_0x2c2dc7('0x4c6')][_0x5a9636][_0x2c2dc7('0x6c8')],'msg':_0x495f38[_0x2c2dc7('0x10fd')]['errors'][_0x5a9636][_0x2c2dc7('0x1402')]});}}else _0x4ea1e9[_0x2c2dc7('0x187f')]({'title':_0x495f38[_0x2c2dc7('0x2fa')]?_0x2c2dc7('0x16c2')+_0x495f38[_0x2c2dc7('0x2fa')]+_0x2c2dc7('0x169e')+_0x495f38['statusText']:_0x2c2dc7('0x1af9'),'msg':_0x495f38[_0x2c2dc7('0x10fd')]?JSON[_0x2c2dc7('0xa48')](_0x495f38['data'][_0x2c2dc7('0x1402')]):_0x495f38[_0x2c2dc7('0x684')]()});});}function _0x2fcaf0(){var _0x56dc51=_0xfe8f57;_0x417c59[_0x56dc51('0x4c6')]=[],_0x2adf9c['cloudProvider'][_0x56dc51('0x264e')]({'id':_0x417c59[_0x56dc51('0x60b')]['id']},_0x417c59[_0x56dc51('0x60b')])[_0x56dc51('0x1dc2')][_0x56dc51('0xaa5')](function(_0x43c955){var _0x31737d=_0x56dc51,_0x7b3b1e=_0x51538b()['find'](_0x417c59[_0x31737d('0x1965')],{'id':_0x43c955['id']});_0x7b3b1e&&_0x51538b()['merge'](_0x7b3b1e,_0x51538b()['pick'](_0x43c955['toJSON'](),_0x51538b()['keys'](_0x7b3b1e))),_0x4ea1e9[_0x31737d('0xe10')]({'title':_0x31737d('0xb32'),'msg':_0x417c59[_0x31737d('0x60b')]['name']?_0x417c59[_0x31737d('0x60b')][_0x31737d('0x25d6')]+_0x31737d('0x20bf'):''}),_0x48eda1(_0x43c955);})[_0x56dc51('0x253d')](function(_0x14447f){var _0x5cc8a0=_0x56dc51;if(_0x14447f[_0x5cc8a0('0x10fd')]&&_0x14447f[_0x5cc8a0('0x10fd')][_0x5cc8a0('0x4c6')]&&_0x14447f['data'][_0x5cc8a0('0x4c6')][_0x5cc8a0('0x2587')]){_0x417c59[_0x5cc8a0('0x4c6')]=_0x14447f[_0x5cc8a0('0x10fd')][_0x5cc8a0('0x4c6')]||[{'message':_0x14447f[_0x5cc8a0('0x684')](),'type':_0x5cc8a0('0x400')}];for(var _0x45746f=0x0;_0x45746f<_0x14447f[_0x5cc8a0('0x10fd')][_0x5cc8a0('0x4c6')][_0x5cc8a0('0x2587')];_0x45746f++){_0x4ea1e9[_0x5cc8a0('0x187f')]({'title':_0x14447f[_0x5cc8a0('0x10fd')][_0x5cc8a0('0x4c6')][_0x45746f][_0x5cc8a0('0x6c8')],'msg':_0x14447f[_0x5cc8a0('0x10fd')][_0x5cc8a0('0x4c6')][_0x45746f][_0x5cc8a0('0x1402')]});}}else _0x4ea1e9[_0x5cc8a0('0x187f')]({'title':_0x14447f[_0x5cc8a0('0x2fa')]?_0x5cc8a0('0x16c2')+_0x14447f[_0x5cc8a0('0x2fa')]+_0x5cc8a0('0x169e')+_0x14447f[_0x5cc8a0('0x24df')]:_0x5cc8a0('0x400'),'msg':_0x14447f['data']?JSON[_0x5cc8a0('0xa48')](_0x14447f['data'][_0x5cc8a0('0x1402')]):_0x14447f[_0x5cc8a0('0x684')]()});});}function _0x333f23(_0x26d387){var _0xe78166=_0xfe8f57;_0x417c59[_0xe78166('0x4c6')]=[];var _0x12488a=_0x3acb3e[_0xe78166('0x281e')]()[_0xe78166('0x110a')](_0xe78166('0x12a3'))[_0xe78166('0x15af')]('The\x20cloudProvider\x20will\x20be\x20deleted.')[_0xe78166('0x5b5')](_0xe78166('0xcd4'))['ok']('Delete')[_0xe78166('0x2030')](_0xe78166('0x9c6'))[_0xe78166('0x116d')](_0x26d387);_0x3acb3e[_0xe78166('0x1e6d')](_0x12488a)['then'](function(){var _0x5d42a3=_0xe78166;_0x2adf9c[_0x5d42a3('0x60b')][_0x5d42a3('0x926')]({'id':_0x417c59['cloudProvider']['id']})['$promise'][_0x5d42a3('0xaa5')](function(){var _0x5ed0e0=_0x5d42a3;_0x51538b()['remove'](_0x417c59[_0x5ed0e0('0x1965')],{'id':_0x417c59['cloudProvider']['id']}),_0x4ea1e9[_0x5ed0e0('0xe10')]({'title':_0x5ed0e0('0x239'),'msg':(_0x417c59[_0x5ed0e0('0x60b')][_0x5ed0e0('0x25d6')]||_0x5ed0e0('0x60b'))+_0x5ed0e0('0xcd9')}),_0x48eda1(_0x417c59['cloudProvider']);})[_0x5d42a3('0x253d')](function(_0x4e36d0){var _0x3a2f61=_0x5d42a3;if(_0x4e36d0[_0x3a2f61('0x10fd')]&&_0x4e36d0[_0x3a2f61('0x10fd')]['errors']&&_0x4e36d0[_0x3a2f61('0x10fd')][_0x3a2f61('0x4c6')][_0x3a2f61('0x2587')]){_0x417c59[_0x3a2f61('0x4c6')]=_0x4e36d0[_0x3a2f61('0x10fd')]['errors']||[{'message':_0x4e36d0[_0x3a2f61('0x684')](),'type':_0x3a2f61('0x13e9')}];for(var _0x5a22d7=0x0;_0x5a22d7<_0x4e36d0[_0x3a2f61('0x10fd')][_0x3a2f61('0x4c6')][_0x3a2f61('0x2587')];_0x5a22d7++){_0x4ea1e9['error']({'title':_0x4e36d0[_0x3a2f61('0x10fd')]['errors'][_0x5a22d7]['type'],'msg':_0x4e36d0['data'][_0x3a2f61('0x4c6')][_0x5a22d7][_0x3a2f61('0x1402')]});}}else _0x4ea1e9[_0x3a2f61('0x187f')]({'title':_0x4e36d0['status']?_0x3a2f61('0x16c2')+_0x4e36d0[_0x3a2f61('0x2fa')]+_0x3a2f61('0x169e')+_0x4e36d0[_0x3a2f61('0x24df')]:_0x3a2f61('0x13e9'),'msg':_0x4e36d0[_0x3a2f61('0x10fd')]?JSON['stringify'](_0x4e36d0['data'][_0x3a2f61('0x1402')]):_0x4e36d0[_0x3a2f61('0x1402')]||_0x4e36d0[_0x3a2f61('0x684')]()});});},function(){});}function _0x4b0052(_0x3e97e2){return _0x3e97e2===null?undefined:new Date(_0x3e97e2);}function _0x48eda1(_0x54d307){_0x3acb3e['hide'](_0x54d307);}}const _0x4ded53=_0x385687;_0xe9aa28[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate','toasty','customizations','customization','api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0xe9aa28(_0x27078f,_0x484e4d,_0x4cba25,_0x2ccd9f,_0x2cc5de,_0x115c8b,_0x3d68d1,_0x113f9d,_0x281d69,_0x2b37e9,_0x37fec4,_0xa2f19d,_0x442a6d,_0x13eac4){var _0x3f6d38=_0x1a8446,_0x5907a4=this;_0x5907a4[_0x3f6d38('0x7fc')]=_0x37fec4[_0x3f6d38('0xacc')](),_0x5907a4[_0x3f6d38('0x4c6')]=[],_0x5907a4[_0x3f6d38('0x143f')]=_0x442a6d,_0x5907a4[_0x3f6d38('0x1202')]=_0xa2f19d,_0x5907a4[_0x3f6d38('0xada')]=_0x13eac4,_0x5907a4[_0x3f6d38('0x9f0')]={},_0x5907a4[_0x3f6d38('0x1d53')]=_0x5907a4[_0x3f6d38('0x143f')]&&_0x5907a4['setting'][_0x3f6d38('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5907a4[_0x3f6d38('0x110a')]='SETTINGS.EDIT_CUSTOMIZATION',_0x5907a4[_0x3f6d38('0x1963')]=angular[_0x3f6d38('0x20a')](_0x281d69),_0x5907a4['customizations']=_0x113f9d,_0x5907a4[_0x3f6d38('0x1d88')]=![];!_0x5907a4[_0x3f6d38('0x1963')]&&(_0x5907a4['customization']={},_0x5907a4['title']=_0x3f6d38('0x256'),_0x5907a4[_0x3f6d38('0x1d88')]=!![]);_0x5907a4[_0x3f6d38('0x1e8f')]=_0x55c4b0,_0x5907a4['saveCustomization']=_0x11f81e,_0x5907a4[_0x3f6d38('0x1db7')]=_0x54b668,_0x5907a4[_0x3f6d38('0xc09')]=_0x55ea42,_0x5907a4[_0x3f6d38('0x2023')]=_0x15283b;function _0x55c4b0(){var _0x161352=_0x3f6d38;_0x5907a4[_0x161352('0x4c6')]=[],_0x2b37e9[_0x161352('0x143f')][_0x161352('0x242b')](_0x5907a4['customization'])['$promise'][_0x161352('0xaa5')](function(_0x5ab83e){var _0x2201b9=_0x161352;_0x5907a4['customizations'][_0x2201b9('0x6ee')](_0x5ab83e[_0x2201b9('0x256a')]()),_0x3d68d1[_0x2201b9('0xe10')]({'title':_0x2201b9('0x174e'),'msg':_0x5907a4[_0x2201b9('0x1963')][_0x2201b9('0x25d6')]?_0x5907a4[_0x2201b9('0x1963')][_0x2201b9('0x25d6')]+_0x2201b9('0xdca'):''}),_0x15283b(_0x5ab83e);})[_0x161352('0x253d')](function(_0x2544a0){var _0x53db5d=_0x161352;if(_0x2544a0[_0x53db5d('0x10fd')]&&_0x2544a0[_0x53db5d('0x10fd')][_0x53db5d('0x4c6')]&&_0x2544a0[_0x53db5d('0x10fd')]['errors'][_0x53db5d('0x2587')]){_0x5907a4['errors']=_0x2544a0[_0x53db5d('0x10fd')][_0x53db5d('0x4c6')]||[{'message':_0x2544a0[_0x53db5d('0x684')](),'type':_0x53db5d('0x16f9')}];for(var _0x32b5e7=0x0;_0x32b5e7<_0x2544a0[_0x53db5d('0x10fd')][_0x53db5d('0x4c6')]['length'];_0x32b5e7+=0x1){_0x3d68d1[_0x53db5d('0x187f')]({'title':_0x2544a0['data']['errors'][_0x32b5e7][_0x53db5d('0x6c8')],'msg':_0x2544a0[_0x53db5d('0x10fd')]['errors'][_0x32b5e7][_0x53db5d('0x1402')]});}}else _0x3d68d1[_0x53db5d('0x187f')]({'title':_0x2544a0[_0x53db5d('0x2fa')]?'API:'+_0x2544a0[_0x53db5d('0x2fa')]+_0x53db5d('0x169e')+_0x2544a0[_0x53db5d('0x24df')]:_0x53db5d('0x16f9'),'msg':_0x2544a0[_0x53db5d('0x10fd')]?JSON[_0x53db5d('0xa48')](_0x2544a0['data']['message']):_0x2544a0[_0x53db5d('0x684')]()});});}function _0x11f81e(){var _0x47d576=_0x3f6d38;_0x5907a4[_0x47d576('0x4c6')]=[],_0x2b37e9['setting'][_0x47d576('0x264e')]({'id':_0x5907a4['customization']['id']},_0x5907a4[_0x47d576('0x1963')])[_0x47d576('0x1dc2')]['then'](function(_0x531aac){var _0x1a63d4=_0x47d576,_0x43c708=_0x51538b()[_0x1a63d4('0xe9e')](_0x5907a4[_0x1a63d4('0x41f')],{'id':_0x531aac['id']});_0x43c708&&_0x51538b()[_0x1a63d4('0x283c')](_0x43c708,_0x51538b()['pick'](_0x531aac[_0x1a63d4('0x256a')](),_0x51538b()['keys'](_0x43c708))),_0x3d68d1['success']({'title':_0x1a63d4('0x24fa'),'msg':_0x5907a4['customization'][_0x1a63d4('0x25d6')]?_0x5907a4[_0x1a63d4('0x1963')][_0x1a63d4('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x15283b(_0x531aac);})[_0x47d576('0x253d')](function(_0x4af7a1){var _0x470e72=_0x47d576;if(_0x4af7a1[_0x470e72('0x10fd')]&&_0x4af7a1[_0x470e72('0x10fd')][_0x470e72('0x4c6')]&&_0x4af7a1['data']['errors'][_0x470e72('0x2587')]){_0x5907a4[_0x470e72('0x4c6')]=_0x4af7a1['data'][_0x470e72('0x4c6')]||[{'message':_0x4af7a1[_0x470e72('0x684')](),'type':'api.setting.update'}];for(var _0x2c78fa=0x0;_0x2c78fa<_0x4af7a1['data'][_0x470e72('0x4c6')][_0x470e72('0x2587')];_0x2c78fa++){_0x3d68d1[_0x470e72('0x187f')]({'title':_0x4af7a1['data'][_0x470e72('0x4c6')][_0x2c78fa][_0x470e72('0x6c8')],'msg':_0x4af7a1[_0x470e72('0x10fd')][_0x470e72('0x4c6')][_0x2c78fa][_0x470e72('0x1402')]});}}else _0x3d68d1[_0x470e72('0x187f')]({'title':_0x4af7a1[_0x470e72('0x2fa')]?_0x470e72('0x16c2')+_0x4af7a1[_0x470e72('0x2fa')]+_0x470e72('0x169e')+_0x4af7a1[_0x470e72('0x24df')]:_0x470e72('0x67b'),'msg':_0x4af7a1['data']?JSON['stringify'](_0x4af7a1[_0x470e72('0x10fd')][_0x470e72('0x1402')]):_0x4af7a1['toString']()});});}function _0x54b668(_0x5527d3){var _0x4f683c=_0x3f6d38;_0x5907a4[_0x4f683c('0x4c6')]=[];var _0x4073fa=_0x2ccd9f[_0x4f683c('0x281e')]()[_0x4f683c('0x110a')]('Are\x20you\x20sure?')['content'](_0x4f683c('0x1748'))['ariaLabel'](_0x4f683c('0xab6'))['ok'](_0x4f683c('0x1e76'))[_0x4f683c('0x2030')]('Cancel')[_0x4f683c('0x116d')](_0x5527d3);_0x2ccd9f[_0x4f683c('0x1e6d')](_0x4073fa)[_0x4f683c('0xaa5')](function(){var _0x5c177f=_0x4f683c;_0x2b37e9[_0x5c177f('0x143f')]['delete']({'id':_0x5907a4[_0x5c177f('0x1963')]['id']})['$promise'][_0x5c177f('0xaa5')](function(){var _0x13d1cf=_0x5c177f;_0x51538b()[_0x13d1cf('0xf6d')](_0x5907a4[_0x13d1cf('0x41f')],{'id':_0x5907a4[_0x13d1cf('0x1963')]['id']}),_0x3d68d1[_0x13d1cf('0xe10')]({'title':_0x13d1cf('0x1035'),'msg':(_0x5907a4['customization'][_0x13d1cf('0x25d6')]||_0x13d1cf('0x1963'))+_0x13d1cf('0xcd9')}),_0x15283b(_0x5907a4[_0x13d1cf('0x1963')]);})[_0x5c177f('0x253d')](function(_0x59588c){var _0x3db506=_0x5c177f;if(_0x59588c['data']&&_0x59588c['data'][_0x3db506('0x4c6')]&&_0x59588c[_0x3db506('0x10fd')][_0x3db506('0x4c6')][_0x3db506('0x2587')]){_0x5907a4[_0x3db506('0x4c6')]=_0x59588c[_0x3db506('0x10fd')][_0x3db506('0x4c6')]||[{'message':_0x59588c[_0x3db506('0x684')](),'type':_0x3db506('0x1ff0')}];for(var _0x95ca7e=0x0;_0x95ca7e<_0x59588c[_0x3db506('0x10fd')]['errors'][_0x3db506('0x2587')];_0x95ca7e++){_0x3d68d1[_0x3db506('0x187f')]({'title':_0x59588c['data'][_0x3db506('0x4c6')][_0x95ca7e]['type'],'msg':_0x59588c[_0x3db506('0x10fd')]['errors'][_0x95ca7e][_0x3db506('0x1402')]});}}else _0x3d68d1['error']({'title':_0x59588c['status']?_0x3db506('0x16c2')+_0x59588c['status']+_0x3db506('0x169e')+_0x59588c['statusText']:_0x3db506('0x1ff0'),'msg':_0x59588c[_0x3db506('0x10fd')]?JSON['stringify'](_0x59588c[_0x3db506('0x10fd')][_0x3db506('0x1402')]):_0x59588c[_0x3db506('0x1402')]||_0x59588c[_0x3db506('0x684')]()});});},function(){});}function _0x55ea42(_0x45b3ee){return _0x45b3ee===null?undefined:new Date(_0x45b3ee);}function _0x15283b(_0x1653ce){_0x2ccd9f['hide'](_0x1653ce);}}const _0x2d8240=_0xe9aa28;_0x15e396[_0x1a8446('0x1e33')]=[_0x1a8446('0x41f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1202'),_0x1a8446('0x1dfd')];function _0x15e396(_0xe5db4d,_0x1adcbf,_0x34e15e,_0xd8c2cb,_0xe9e367){var _0x238aa1=_0x1a8446,_0x47f8a2=this;_0x47f8a2[_0x238aa1('0x7fc')]=_0xe9e367['getCurrentUser'](),_0x47f8a2[_0x238aa1('0x1202')]=_0xd8c2cb,_0x47f8a2[_0x238aa1('0x41f')]=_0xe5db4d,_0x47f8a2['customization']={};_0x47f8a2[_0x238aa1('0x41f')]&&_0x47f8a2[_0x238aa1('0x41f')]['rows']&&_0x47f8a2[_0x238aa1('0x41f')]['rows'][_0x238aa1('0x2587')]&&(_0x47f8a2['customization']=_0x47f8a2[_0x238aa1('0x41f')][_0x238aa1('0x580')][0x0]);_0x47f8a2[_0x238aa1('0xcb1')]=_0x1fee02;function _0x1fee02(){var _0x1777a3=_0x238aa1;_0x47f8a2[_0x1777a3('0x1963')]['id']?_0x1adcbf['setting'][_0x1777a3('0x264e')]({'id':_0x47f8a2[_0x1777a3('0x1963')]['id']},_0x47f8a2['customization'])['$promise'][_0x1777a3('0xaa5')](function(){var _0x2d3668=_0x1777a3;_0x34e15e['success']({'title':_0x2d3668('0x246a'),'msg':_0x47f8a2[_0x2d3668('0x1963')]['name']?_0x47f8a2[_0x2d3668('0x1963')][_0x2d3668('0x25d6')]+_0x2d3668('0x1734'):''});})['catch'](function(_0x298090){var _0x1ae985=_0x1777a3;_0x34e15e[_0x1ae985('0x187f')]({'title':_0x298090[_0x1ae985('0x2fa')]?'API:'+_0x298090['status']+_0x1ae985('0x169e')+_0x298090['statusText']:'SYSTEM:GETsetting','msg':_0x298090['data']?JSON[_0x1ae985('0xa48')](_0x298090['data']):_0x298090[_0x1ae985('0x684')]()});}):_0x1adcbf[_0x1777a3('0x143f')][_0x1777a3('0x242b')](_0x47f8a2[_0x1777a3('0x1963')])['$promise']['then'](function(_0x7eadd3){var _0x12a8f8=_0x1777a3;_0x51538b()[_0x12a8f8('0x283c')](_0x47f8a2['customization'],_0x7eadd3),_0x34e15e[_0x12a8f8('0xe10')]({'title':_0x12a8f8('0x246a'),'msg':_0x47f8a2[_0x12a8f8('0x1963')][_0x12a8f8('0x25d6')]?_0x47f8a2[_0x12a8f8('0x1963')]['name']+'\x20has\x20been\x20updated!':''});})[_0x1777a3('0x253d')](function(_0x37397e){var _0x3fa1a2=_0x1777a3;_0x34e15e['error']({'title':_0x37397e['status']?_0x3fa1a2('0x16c2')+_0x37397e['status']+_0x3fa1a2('0x169e')+_0x37397e['statusText']:'SYSTEM:GETsetting','msg':_0x37397e['data']?JSON[_0x3fa1a2('0xa48')](_0x37397e['data']):_0x37397e[_0x3fa1a2('0x684')]()});});}}const _0xade327=_0x15e396;_0x5e4cd4[_0x1a8446('0x1e33')]=['$cookies',_0x1a8446('0x2a4')];function _0x5e4cd4(_0x391e50,_0x53c693){var _0x3e018c=_0x1a8446,_0x387685=this,_0x3de742=0x8,_0x282a1b=_0x3de742*0x400*0x400;_0x387685[_0x3e018c('0x1963')]={},_0x387685[_0x3e018c('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x282a1b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x387685[_0x3e018c('0x27cd')]={'flow':{}},_0x387685['dropping']=![],_0x387685[_0x3e018c('0x20d1')]=_0x1258fc,_0x387685[_0x3e018c('0x158b')]=_0x35b1b6,_0x387685[_0x3e018c('0x1313')]=_0x3360a4,_0x387685['init']=_0x54ee9e;function _0x54ee9e(_0x3f6c2f){var _0x3410=_0x3e018c;_0x387685['customization']=angular[_0x3410('0x20a')](_0x3f6c2f),_0x387685[_0x3410('0x1c88')][_0x3410('0xe2e')]=_0x3410('0xf8d')[_0x3410('0x170d')](_0x3410('0x128c'),_0x387685['customization']['id']),_0x387685['customization'][_0x3410('0x1b2d')]=[];}function _0x1258fc(_0x1e97f5){var _0x28c0b1=_0x3e018c,_0x414839=['png',_0x28c0b1('0x1085'),_0x28c0b1('0x64c')];if(!_0x51538b()[_0x28c0b1('0x13d6')](_0x414839,_0x1e97f5[_0x28c0b1('0x177a')]()))return _0x53c693[_0x28c0b1('0x187f')]({'title':_0x28c0b1('0x7bf')+_0x1e97f5[_0x28c0b1('0x177a')](),'msg':_0x28c0b1('0x88f')+_0x414839[_0x28c0b1('0x19c4')]()}),![];if(_0x1e97f5[_0x28c0b1('0x9f9')]>_0x282a1b)return _0x53c693['error']({'title':_0x28c0b1('0xfad'),'msg':_0x28c0b1('0x15dd')+_0x3de742+'MB'}),![];var _0x22761e={'id':_0x1e97f5['uniqueIdentifier'],'file':_0x1e97f5,'type':_0x28c0b1('0x10d')};return _0x387685[_0x28c0b1('0x1963')][_0x28c0b1('0x1b2d')]['unshift'](_0x22761e),!![];}function _0x35b1b6(){var _0x57587f=_0x3e018c;_0x387685['ngFlow']['flow'][_0x57587f('0x177d')][_0x57587f('0xc71')]={'X-Requested-With':_0x57587f('0x1888'),'Authorization':_0x57587f('0x2070')+_0x391e50[_0x57587f('0x2122')](_0x57587f('0x10f8'))},_0x387685['ngFlow'][_0x57587f('0xcba')][_0x57587f('0x158b')]();}function _0x3360a4(_0x2065ba){var _0x408c4e=_0x3e018c;angular['forEach'](_0x387685[_0x408c4e('0x1963')][_0x408c4e('0x1b2d')],function(_0x5542d4){var _0x5ec2eb=_0x408c4e;if(_0x5542d4['id']===_0x2065ba[_0x5ec2eb('0xd3c')]){var _0xdd6ed5=new FileReader();_0xdd6ed5[_0x5ec2eb('0xc21')](_0x5542d4[_0x5ec2eb('0x1945')][_0x5ec2eb('0x1945')]),_0xdd6ed5[_0x5ec2eb('0x224e')]=function(_0x490f65){var _0xeaf8ed=_0x5ec2eb;_0x5542d4[_0xeaf8ed('0x2242')]=_0x490f65[_0xeaf8ed('0xe2e')][_0xeaf8ed('0xcd6')];},_0x5542d4['type']='image';}});}}const _0x1ebfdd=_0x5e4cd4;_0x487222[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x2a4')];function _0x487222(_0x333140,_0x553034){var _0x55b24d=_0x1a8446,_0x4b51a7=this,_0x3d35bf=0x8,_0x28cb41=_0x3d35bf*0x400*0x400;_0x4b51a7[_0x55b24d('0x1963')]={},_0x4b51a7[_0x55b24d('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x28cb41,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4b51a7[_0x55b24d('0x27cd')]={'flow':{}},_0x4b51a7[_0x55b24d('0x258f')]=![],_0x4b51a7['fileAdded']=_0x383203,_0x4b51a7[_0x55b24d('0x158b')]=_0x496292,_0x4b51a7['fileSuccess']=_0x5b8d9b,_0x4b51a7['init']=_0x2f6f3d;function _0x2f6f3d(_0x4cdc62){var _0x30138b=_0x55b24d;_0x4b51a7['customization']=angular[_0x30138b('0x20a')](_0x4cdc62),_0x4b51a7[_0x30138b('0x1c88')][_0x30138b('0xe2e')]=_0x30138b('0x1cf7')[_0x30138b('0x170d')](_0x30138b('0x128c'),_0x4b51a7[_0x30138b('0x1963')]['id']),_0x4b51a7[_0x30138b('0x1963')][_0x30138b('0x1b2d')]=[];}function _0x383203(_0x5d0a14){var _0x5dcd40=_0x55b24d,_0x2c2533=[_0x5dcd40('0x981'),_0x5dcd40('0x1085')];if(!_0x51538b()[_0x5dcd40('0x13d6')](_0x2c2533,_0x5d0a14[_0x5dcd40('0x177a')]()))return _0x553034[_0x5dcd40('0x187f')]({'title':_0x5dcd40('0x7bf')+_0x5d0a14[_0x5dcd40('0x177a')](),'msg':_0x5dcd40('0x88f')+_0x2c2533[_0x5dcd40('0x19c4')]()}),![];if(_0x5d0a14[_0x5dcd40('0x9f9')]>_0x28cb41)return _0x553034[_0x5dcd40('0x187f')]({'title':_0x5dcd40('0xfad'),'msg':_0x5dcd40('0x15dd')+_0x3d35bf+'MB'}),![];var _0x57bad8={'id':_0x5d0a14[_0x5dcd40('0xd3c')],'file':_0x5d0a14,'type':_0x5dcd40('0x10d')};return _0x4b51a7[_0x5dcd40('0x1963')][_0x5dcd40('0x1b2d')][_0x5dcd40('0x6ee')](_0x57bad8),!![];}function _0x496292(){var _0x1de3db=_0x55b24d;_0x4b51a7['ngFlow'][_0x1de3db('0xcba')][_0x1de3db('0x177d')][_0x1de3db('0xc71')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x1de3db('0x2070')+_0x333140['get'](_0x1de3db('0x10f8'))},_0x4b51a7['ngFlow']['flow'][_0x1de3db('0x158b')]();}function _0x5b8d9b(_0x4cf250){var _0x1214ec=_0x55b24d;angular['forEach'](_0x4b51a7[_0x1214ec('0x1963')][_0x1214ec('0x1b2d')],function(_0x9bf30d){var _0x219890=_0x1214ec;if(_0x9bf30d['id']===_0x4cf250[_0x219890('0xd3c')]){var _0x173746=new FileReader();_0x173746['readAsDataURL'](_0x9bf30d[_0x219890('0x1945')]['file']),_0x173746['onload']=function(_0x19dfb5){var _0x55230d=_0x219890;_0x9bf30d[_0x55230d('0x2242')]=_0x19dfb5[_0x55230d('0xe2e')][_0x55230d('0xcd6')];},_0x9bf30d[_0x219890('0x6c8')]=_0x219890('0x1471');}});}}const _0x2c9bb0=_0x487222;_0x52cce0[_0x1a8446('0x1e33')]=['$cookies',_0x1a8446('0x2a4')];function _0x52cce0(_0x257d3c,_0x44da55){var _0x43e5cc=_0x1a8446,_0x78e6a0=this,_0x489a59=0x8,_0x21a8ef=_0x489a59*0x400*0x400;_0x78e6a0[_0x43e5cc('0x1963')]={},_0x78e6a0[_0x43e5cc('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x21a8ef,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x78e6a0[_0x43e5cc('0x27cd')]={'flow':{}},_0x78e6a0[_0x43e5cc('0x258f')]=![],_0x78e6a0[_0x43e5cc('0x20d1')]=_0x22eb14,_0x78e6a0[_0x43e5cc('0x158b')]=_0x1d0f8a,_0x78e6a0[_0x43e5cc('0x1313')]=_0x1cfe74,_0x78e6a0['init']=_0x6c4b54;function _0x6c4b54(_0x247c5a){var _0x5dcf70=_0x43e5cc;_0x78e6a0['customization']=angular[_0x5dcf70('0x20a')](_0x247c5a),_0x78e6a0[_0x5dcf70('0x1c88')][_0x5dcf70('0xe2e')]='/api/settings/1/logo_login'[_0x5dcf70('0x170d')](_0x5dcf70('0x128c'),_0x78e6a0[_0x5dcf70('0x1963')]['id']),_0x78e6a0[_0x5dcf70('0x1963')]['images']=[];}function _0x22eb14(_0x7bd794){var _0x14d3bf=_0x43e5cc,_0x8818e4=['png','jpg'];if(!_0x51538b()[_0x14d3bf('0x13d6')](_0x8818e4,_0x7bd794[_0x14d3bf('0x177a')]()))return _0x44da55['error']({'title':_0x14d3bf('0x7bf')+_0x7bd794[_0x14d3bf('0x177a')](),'msg':_0x14d3bf('0x88f')+_0x8818e4['join']()}),![];if(_0x7bd794['size']>_0x21a8ef)return _0x44da55['error']({'title':_0x14d3bf('0xfad'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x489a59+'MB'}),![];var _0x323e1a={'id':_0x7bd794[_0x14d3bf('0xd3c')],'file':_0x7bd794,'type':_0x14d3bf('0x10d')};return _0x78e6a0[_0x14d3bf('0x1963')]['images'][_0x14d3bf('0x6ee')](_0x323e1a),!![];}function _0x1d0f8a(){var _0x131ec2=_0x43e5cc;_0x78e6a0[_0x131ec2('0x27cd')][_0x131ec2('0xcba')][_0x131ec2('0x177d')][_0x131ec2('0xc71')]={'X-Requested-With':_0x131ec2('0x1888'),'Authorization':_0x131ec2('0x2070')+_0x257d3c[_0x131ec2('0x2122')](_0x131ec2('0x10f8'))},_0x78e6a0['ngFlow']['flow'][_0x131ec2('0x158b')]();}function _0x1cfe74(_0x4f874c){var _0xc717f7=_0x43e5cc;angular[_0xc717f7('0x15b5')](_0x78e6a0[_0xc717f7('0x1963')][_0xc717f7('0x1b2d')],function(_0x8e94e6){var _0xe7116=_0xc717f7;if(_0x8e94e6['id']===_0x4f874c['uniqueIdentifier']){var _0x2b2ef8=new FileReader();_0x2b2ef8[_0xe7116('0xc21')](_0x8e94e6[_0xe7116('0x1945')][_0xe7116('0x1945')]),_0x2b2ef8['onload']=function(_0x1bb0c1){var _0x50e7bc=_0xe7116;_0x8e94e6[_0x50e7bc('0x2242')]=_0x1bb0c1[_0x50e7bc('0xe2e')]['result'];},_0x8e94e6[_0xe7116('0x6c8')]=_0xe7116('0x1471');}});}}const _0x540f53=_0x52cce0;_0x3b11ce[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x2a4')];function _0x3b11ce(_0xb0b90f,_0x550df6){var _0x5d2773=_0x1a8446,_0x584ede=this,_0x44ff2e=0x8,_0x3c6bdf=_0x44ff2e*0x400*0x400;_0x584ede['customization']={},_0x584ede[_0x5d2773('0x1c88')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3c6bdf,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x584ede[_0x5d2773('0x27cd')]={'flow':{}},_0x584ede[_0x5d2773('0x258f')]=![],_0x584ede[_0x5d2773('0x20d1')]=_0x1f4e3b,_0x584ede[_0x5d2773('0x158b')]=_0x4735a5,_0x584ede[_0x5d2773('0x1313')]=_0x18f924,_0x584ede['init']=_0x26fd87;function _0x26fd87(_0x472261){var _0x1a9c37=_0x5d2773;_0x584ede['customization']=angular['copy'](_0x472261),_0x584ede[_0x1a9c37('0x1c88')][_0x1a9c37('0xe2e')]=_0x1a9c37('0x1376')[_0x1a9c37('0x170d')](_0x1a9c37('0x128c'),_0x584ede[_0x1a9c37('0x1963')]['id']),_0x584ede[_0x1a9c37('0x1963')]['images']=[];}function _0x1f4e3b(_0x30ed81){var _0x2978a0=_0x5d2773,_0x7ebc25=[_0x2978a0('0x981'),'jpg'];if(!_0x51538b()[_0x2978a0('0x13d6')](_0x7ebc25,_0x30ed81[_0x2978a0('0x177a')]()))return _0x550df6[_0x2978a0('0x187f')]({'title':'Invalid\x20extension:\x20'+_0x30ed81[_0x2978a0('0x177a')](),'msg':_0x2978a0('0x88f')+_0x7ebc25[_0x2978a0('0x19c4')]()}),![];if(_0x30ed81[_0x2978a0('0x9f9')]>_0x3c6bdf)return _0x550df6[_0x2978a0('0x187f')]({'title':_0x2978a0('0xfad'),'msg':_0x2978a0('0x15dd')+_0x44ff2e+'MB'}),![];var _0x500886={'id':_0x30ed81[_0x2978a0('0xd3c')],'file':_0x30ed81,'type':_0x2978a0('0x10d')};return _0x584ede[_0x2978a0('0x1963')][_0x2978a0('0x1b2d')]['unshift'](_0x500886),!![];}function _0x4735a5(){var _0x4295bc=_0x5d2773;_0x584ede['ngFlow']['flow'][_0x4295bc('0x177d')]['headers']={'X-Requested-With':_0x4295bc('0x1888'),'Authorization':_0x4295bc('0x2070')+_0xb0b90f[_0x4295bc('0x2122')](_0x4295bc('0x10f8'))},_0x584ede[_0x4295bc('0x27cd')][_0x4295bc('0xcba')][_0x4295bc('0x158b')]();}function _0x18f924(_0x48049a){var _0xf3696a=_0x5d2773;angular[_0xf3696a('0x15b5')](_0x584ede['customization'][_0xf3696a('0x1b2d')],function(_0x357799){var _0x18df9b=_0xf3696a;if(_0x357799['id']===_0x48049a[_0x18df9b('0xd3c')]){var _0x43d737=new FileReader();_0x43d737[_0x18df9b('0xc21')](_0x357799['file'][_0x18df9b('0x1945')]),_0x43d737[_0x18df9b('0x224e')]=function(_0x7cb0c0){var _0x61f33a=_0x18df9b;_0x357799[_0x61f33a('0x2242')]=_0x7cb0c0[_0x61f33a('0xe2e')]['result'];},_0x357799[_0x18df9b('0x6c8')]=_0x18df9b('0x1471');}});}}const _0x38bf4f=_0x3b11ce;_0x9d46d8[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),'$mdDialog','$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x45'),'general',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x9d46d8(_0x3fd5b2,_0x2d2dff,_0x463f15,_0x3729ed,_0xd223b6,_0x31d0f1,_0x222cda,_0xa727d1,_0x533f95,_0xd8b966,_0x36b7f2,_0x3caad1,_0x5da76b,_0x3eef57){var _0x139167=_0x1a8446,_0x4a387a=this;_0x4a387a[_0x139167('0x7fc')]=_0x36b7f2[_0x139167('0xacc')](),_0x4a387a['errors']=[],_0x4a387a[_0x139167('0x143f')]=_0x5da76b,_0x4a387a['license']=_0x3caad1,_0x4a387a[_0x139167('0xada')]=_0x3eef57,_0x4a387a[_0x139167('0x9f0')]={},_0x4a387a[_0x139167('0x1d53')]=_0x4a387a[_0x139167('0x143f')]&&_0x4a387a[_0x139167('0x143f')][_0x139167('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a387a['title']=_0x139167('0x1701'),_0x4a387a[_0x139167('0x22ce')]=angular[_0x139167('0x20a')](_0x533f95),_0x4a387a[_0x139167('0x45')]=_0xa727d1,_0x4a387a['newGeneral']=![];!_0x4a387a[_0x139167('0x22ce')]&&(_0x4a387a[_0x139167('0x22ce')]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':_0x139167('0x1d93'),'splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x139167('0x24cf'),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x4a387a[_0x139167('0x110a')]='SETTINGS.NEW_GENERAL',_0x4a387a[_0x139167('0x1834')]=!![]);_0x4a387a['addNewGeneral']=_0x588468,_0x4a387a['saveGeneral']=_0x3d831b,_0x4a387a[_0x139167('0x1473')]=_0x2f9b23,_0x4a387a[_0x139167('0xc09')]=_0x1aa7bc,_0x4a387a[_0x139167('0x2023')]=_0x567a20,_0xd8b966['cloudProvider'][_0x139167('0x2122')]({'fields':_0x139167('0x17fe'),'sort':'name','nolimit':'true'})[_0x139167('0x1dc2')]['then'](function(_0x5a4f38){var _0x5ecd88=_0x139167;_0x4a387a[_0x5ecd88('0x1965')]=_0x5a4f38[_0x5ecd88('0x580')]||[];})[_0x139167('0x253d')](function(_0x12f403){var _0xa8b82c=_0x139167;_0x222cda['error']({'title':_0x12f403['status']?_0xa8b82c('0x16c2')+_0x12f403[_0xa8b82c('0x2fa')]+_0xa8b82c('0x169e')+_0x12f403[_0xa8b82c('0x24df')]:'SYSTEM:GET_CLOUDPROVIDERS','msg':_0x12f403[_0xa8b82c('0x10fd')]?JSON[_0xa8b82c('0xa48')](_0x12f403[_0xa8b82c('0x10fd')]):_0x12f403[_0xa8b82c('0x684')]()});});function _0x588468(){var _0x2c2a4d=_0x139167;_0x4a387a['errors']=[],_0xd8b966[_0x2c2a4d('0x143f')][_0x2c2a4d('0x242b')](_0x4a387a[_0x2c2a4d('0x22ce')])['$promise'][_0x2c2a4d('0xaa5')](function(_0x373119){var _0x421f9a=_0x2c2a4d;_0x4a387a[_0x421f9a('0x45')][_0x421f9a('0x6ee')](_0x373119[_0x421f9a('0x256a')]()),_0x222cda[_0x421f9a('0xe10')]({'title':_0x421f9a('0x1562'),'msg':_0x4a387a[_0x421f9a('0x22ce')][_0x421f9a('0x25d6')]?_0x4a387a[_0x421f9a('0x22ce')][_0x421f9a('0x25d6')]+_0x421f9a('0xdca'):''}),_0x567a20(_0x373119);})[_0x2c2a4d('0x253d')](function(_0x4af595){var _0x19e4b7=_0x2c2a4d;if(_0x4af595[_0x19e4b7('0x10fd')]&&_0x4af595['data'][_0x19e4b7('0x4c6')]&&_0x4af595[_0x19e4b7('0x10fd')][_0x19e4b7('0x4c6')][_0x19e4b7('0x2587')]){_0x4a387a[_0x19e4b7('0x4c6')]=_0x4af595['data'][_0x19e4b7('0x4c6')]||[{'message':_0x4af595[_0x19e4b7('0x684')](),'type':'api.setting.save'}];for(var _0x39945e=0x0;_0x39945e<_0x4af595[_0x19e4b7('0x10fd')][_0x19e4b7('0x4c6')][_0x19e4b7('0x2587')];_0x39945e+=0x1){_0x222cda[_0x19e4b7('0x187f')]({'title':_0x4af595[_0x19e4b7('0x10fd')][_0x19e4b7('0x4c6')][_0x39945e]['type'],'msg':_0x4af595[_0x19e4b7('0x10fd')][_0x19e4b7('0x4c6')][_0x39945e]['message']});}}else _0x222cda['error']({'title':_0x4af595['status']?_0x19e4b7('0x16c2')+_0x4af595[_0x19e4b7('0x2fa')]+'\x20-\x20'+_0x4af595[_0x19e4b7('0x24df')]:'api.setting.save','msg':_0x4af595['data']?JSON[_0x19e4b7('0xa48')](_0x4af595[_0x19e4b7('0x10fd')]['message']):_0x4af595['toString']()});});}function _0x3d831b(){var _0x1297d0=_0x139167;_0x4a387a[_0x1297d0('0x4c6')]=[],_0xd8b966[_0x1297d0('0x143f')]['update']({'id':_0x4a387a[_0x1297d0('0x22ce')]['id']},_0x4a387a['general'])['$promise'][_0x1297d0('0xaa5')](function(_0x3ff7d){var _0x46b729=_0x1297d0,_0x3eee5f=_0x51538b()[_0x46b729('0xe9e')](_0x4a387a[_0x46b729('0x45')],{'id':_0x3ff7d['id']});_0x3eee5f&&_0x51538b()[_0x46b729('0x283c')](_0x3eee5f,_0x51538b()[_0x46b729('0x104e')](_0x3ff7d[_0x46b729('0x256a')](),_0x51538b()[_0x46b729('0x9f2')](_0x3eee5f))),_0x222cda['success']({'title':_0x46b729('0xb28'),'msg':_0x4a387a['general'][_0x46b729('0x25d6')]?_0x4a387a[_0x46b729('0x22ce')][_0x46b729('0x25d6')]+_0x46b729('0x20bf'):''}),_0x567a20(_0x3ff7d);})[_0x1297d0('0x253d')](function(_0x253c26){var _0x37282d=_0x1297d0;if(_0x253c26['data']&&_0x253c26['data'][_0x37282d('0x4c6')]&&_0x253c26['data'][_0x37282d('0x4c6')][_0x37282d('0x2587')]){_0x4a387a['errors']=_0x253c26[_0x37282d('0x10fd')][_0x37282d('0x4c6')]||[{'message':_0x253c26['toString'](),'type':'api.setting.update'}];for(var _0x2d4c06=0x0;_0x2d4c06<_0x253c26['data'][_0x37282d('0x4c6')][_0x37282d('0x2587')];_0x2d4c06++){_0x222cda['error']({'title':_0x253c26[_0x37282d('0x10fd')][_0x37282d('0x4c6')][_0x2d4c06]['type'],'msg':_0x253c26[_0x37282d('0x10fd')][_0x37282d('0x4c6')][_0x2d4c06][_0x37282d('0x1402')]});}}else _0x222cda[_0x37282d('0x187f')]({'title':_0x253c26[_0x37282d('0x2fa')]?_0x37282d('0x16c2')+_0x253c26['status']+'\x20-\x20'+_0x253c26[_0x37282d('0x24df')]:_0x37282d('0x67b'),'msg':_0x253c26[_0x37282d('0x10fd')]?JSON[_0x37282d('0xa48')](_0x253c26[_0x37282d('0x10fd')][_0x37282d('0x1402')]):_0x253c26[_0x37282d('0x684')]()});});}function _0x2f9b23(_0x218d90){var _0x2416a5=_0x139167;_0x4a387a['errors']=[];var _0x22f118=_0x3729ed['confirm']()[_0x2416a5('0x110a')](_0x2416a5('0x12a3'))['content'](_0x2416a5('0x1b78'))[_0x2416a5('0x5b5')]('Delete\x20General')['ok']('Delete')[_0x2416a5('0x2030')](_0x2416a5('0x9c6'))['targetEvent'](_0x218d90);_0x3729ed[_0x2416a5('0x1e6d')](_0x22f118)[_0x2416a5('0xaa5')](function(){var _0x4133d9=_0x2416a5;_0xd8b966['setting'][_0x4133d9('0x926')]({'id':_0x4a387a['general']['id']})[_0x4133d9('0x1dc2')][_0x4133d9('0xaa5')](function(){var _0x4902ce=_0x4133d9;_0x51538b()[_0x4902ce('0xf6d')](_0x4a387a['generals'],{'id':_0x4a387a[_0x4902ce('0x22ce')]['id']}),_0x222cda['success']({'title':_0x4902ce('0x11a0'),'msg':(_0x4a387a[_0x4902ce('0x22ce')][_0x4902ce('0x25d6')]||_0x4902ce('0x22ce'))+_0x4902ce('0xcd9')}),_0x567a20(_0x4a387a[_0x4902ce('0x22ce')]);})[_0x4133d9('0x253d')](function(_0x424c76){var _0x3afafd=_0x4133d9;if(_0x424c76[_0x3afafd('0x10fd')]&&_0x424c76[_0x3afafd('0x10fd')][_0x3afafd('0x4c6')]&&_0x424c76[_0x3afafd('0x10fd')][_0x3afafd('0x4c6')]['length']){_0x4a387a[_0x3afafd('0x4c6')]=_0x424c76[_0x3afafd('0x10fd')][_0x3afafd('0x4c6')]||[{'message':_0x424c76[_0x3afafd('0x684')](),'type':_0x3afafd('0x1ff0')}];for(var _0xac28e3=0x0;_0xac28e3<_0x424c76[_0x3afafd('0x10fd')][_0x3afafd('0x4c6')][_0x3afafd('0x2587')];_0xac28e3++){_0x222cda[_0x3afafd('0x187f')]({'title':_0x424c76[_0x3afafd('0x10fd')][_0x3afafd('0x4c6')][_0xac28e3][_0x3afafd('0x6c8')],'msg':_0x424c76['data'][_0x3afafd('0x4c6')][_0xac28e3]['message']});}}else _0x222cda[_0x3afafd('0x187f')]({'title':_0x424c76[_0x3afafd('0x2fa')]?'API:'+_0x424c76[_0x3afafd('0x2fa')]+_0x3afafd('0x169e')+_0x424c76['statusText']:_0x3afafd('0x1ff0'),'msg':_0x424c76[_0x3afafd('0x10fd')]?JSON['stringify'](_0x424c76['data'][_0x3afafd('0x1402')]):_0x424c76[_0x3afafd('0x1402')]||_0x424c76[_0x3afafd('0x684')]()});});},function(){});}function _0x1aa7bc(_0x1261e8){return _0x1261e8===null?undefined:new Date(_0x1261e8);}function _0x567a20(_0x2cc4ba){var _0x50328d=_0x139167;_0x3729ed[_0x50328d('0x1120')](_0x2cc4ba);}}const _0x4b56b6=_0x9d46d8;_0x5b39b7['$inject']=[_0x1a8446('0x45'),'api',_0x1a8446('0x2a4'),'license',_0x1a8446('0x1dfd')];function _0x5b39b7(_0x160653,_0xb0b6d1,_0x4e1f27,_0xef195b,_0xbf91b5){var _0x30b16a=_0x1a8446,_0x4bd5e3=this;_0x4bd5e3['currentUser']=_0xbf91b5['getCurrentUser'](),_0x4bd5e3['license']=_0xef195b,_0x4bd5e3[_0x30b16a('0x45')]=_0x160653,_0x4bd5e3[_0x30b16a('0x22ce')]={};_0x4bd5e3[_0x30b16a('0x45')]&&_0x4bd5e3[_0x30b16a('0x45')][_0x30b16a('0x580')]&&_0x4bd5e3['generals'][_0x30b16a('0x580')][_0x30b16a('0x2587')]&&(_0x4bd5e3['general']=_0x4bd5e3['generals']['rows'][0x0]);_0xb0b6d1[_0x30b16a('0x60b')][_0x30b16a('0x2122')]({'fields':'id,name','sort':_0x30b16a('0x25d6'),'nolimit':'true'})[_0x30b16a('0x1dc2')][_0x30b16a('0xaa5')](function(_0x3ed3dc){var _0xced257=_0x30b16a;_0x4bd5e3['cloudProviders']=_0x3ed3dc[_0xced257('0x580')]||[];})[_0x30b16a('0x253d')](function(_0x3cb542){var _0x12d655=_0x30b16a;_0x4e1f27['error']({'title':_0x3cb542[_0x12d655('0x2fa')]?'API:'+_0x3cb542['status']+_0x12d655('0x169e')+_0x3cb542['statusText']:_0x12d655('0x2151'),'msg':_0x3cb542['data']?JSON[_0x12d655('0xa48')](_0x3cb542['data']):_0x3cb542[_0x12d655('0x684')]()});}),_0x4bd5e3[_0x30b16a('0x17a6')]=_0x4ede51;function _0x4ede51(){var _0x297e8f=_0x30b16a;_0x4bd5e3[_0x297e8f('0x22ce')]['id']?_0xb0b6d1[_0x297e8f('0x143f')][_0x297e8f('0x264e')]({'id':_0x4bd5e3['general']['id']},_0x4bd5e3[_0x297e8f('0x22ce')])[_0x297e8f('0x1dc2')][_0x297e8f('0xaa5')](function(){var _0x38be49=_0x297e8f;_0x4e1f27['success']({'title':'General\x20updated!','msg':_0x4bd5e3['general'][_0x38be49('0x25d6')]?_0x4bd5e3[_0x38be49('0x22ce')][_0x38be49('0x25d6')]+'\x20has\x20been\x20updated!':''});})[_0x297e8f('0x253d')](function(_0x4390c1){var _0x39bf1a=_0x297e8f;_0x4e1f27['error']({'title':_0x4390c1['status']?'API:'+_0x4390c1[_0x39bf1a('0x2fa')]+_0x39bf1a('0x169e')+_0x4390c1[_0x39bf1a('0x24df')]:_0x39bf1a('0xb0c'),'msg':_0x4390c1[_0x39bf1a('0x10fd')]?JSON[_0x39bf1a('0xa48')](_0x4390c1['data']):_0x4390c1[_0x39bf1a('0x684')]()});}):_0xb0b6d1['setting'][_0x297e8f('0x242b')](_0x4bd5e3[_0x297e8f('0x22ce')])[_0x297e8f('0x1dc2')][_0x297e8f('0xaa5')](function(_0x51565d){var _0x1ee78e=_0x297e8f;_0x51538b()[_0x1ee78e('0x283c')](_0x4bd5e3['general'],_0x51565d),_0x4e1f27[_0x1ee78e('0xe10')]({'title':'General\x20updated!','msg':_0x4bd5e3[_0x1ee78e('0x22ce')][_0x1ee78e('0x25d6')]?_0x4bd5e3[_0x1ee78e('0x22ce')][_0x1ee78e('0x25d6')]+_0x1ee78e('0x1734'):''});})[_0x297e8f('0x253d')](function(_0xf7d496){var _0x2b3685=_0x297e8f;_0x4e1f27['error']({'title':_0xf7d496[_0x2b3685('0x2fa')]?_0x2b3685('0x16c2')+_0xf7d496[_0x2b3685('0x2fa')]+_0x2b3685('0x169e')+_0xf7d496[_0x2b3685('0x24df')]:_0x2b3685('0xb0c'),'msg':_0xf7d496[_0x2b3685('0x10fd')]?JSON['stringify'](_0xf7d496[_0x2b3685('0x10fd')]):_0xf7d496['toString']()});});}}const _0x165981=_0x5b39b7;_0x570fbb['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x1109'),_0x1a8446('0x97'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x570fbb(_0x1b50e0,_0x53c16a,_0x170d36,_0x427bd5,_0xea7b2a,_0x1db934,_0x284af1,_0x4e1d45,_0x2fdd54,_0xb3650a,_0x38752d,_0x3b401d,_0x1804e2){var _0xc95c4f=_0x1a8446,_0x107109=this;_0x107109['currentUser']=_0x38752d[_0xc95c4f('0xacc')](),_0x107109[_0xc95c4f('0x4c6')]=[],_0x107109[_0xc95c4f('0x143f')]=_0x1804e2,_0x107109[_0xc95c4f('0x1202')]=_0x3b401d,_0x107109[_0xc95c4f('0x9f0')]={},_0x107109[_0xc95c4f('0x1d53')]=_0x107109['setting']&&_0x107109[_0xc95c4f('0x143f')][_0xc95c4f('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x107109[_0xc95c4f('0x110a')]=_0xc95c4f('0x27a2'),_0x107109[_0xc95c4f('0x97')]=angular[_0xc95c4f('0x20a')](_0x2fdd54),_0x107109['networks']=_0x4e1d45,_0x107109[_0xc95c4f('0x2459')]=![];!_0x107109[_0xc95c4f('0x97')]&&(_0x107109['network']={'type':_0xc95c4f('0x1467')},_0x107109[_0xc95c4f('0x110a')]=_0xc95c4f('0xf7'),_0x107109[_0xc95c4f('0x2459')]=!![]);_0x107109[_0xc95c4f('0xa4d')]=_0x14ff71,_0x107109['saveNetwork']=_0x21eec9,_0x107109[_0xc95c4f('0x1905')]=_0x4e0fc5,_0x107109[_0xc95c4f('0xc09')]=_0x180223,_0x107109[_0xc95c4f('0x2023')]=_0x15a84b;function _0x14ff71(){var _0xa51400=_0xc95c4f;_0x107109[_0xa51400('0x4c6')]=[],_0xb3650a[_0xa51400('0x97')][_0xa51400('0x242b')](_0x107109[_0xa51400('0x97')])[_0xa51400('0x1dc2')]['then'](function(_0x4d1156){var _0x103167=_0xa51400;_0x107109[_0x103167('0x1109')][_0x103167('0x6ee')](_0x4d1156[_0x103167('0x256a')]()),_0x284af1[_0x103167('0xe10')]({'title':_0x103167('0x1db8'),'msg':_0x107109[_0x103167('0x97')][_0x103167('0x25d6')]?_0x107109[_0x103167('0x97')]['name']+_0x103167('0xdca'):''}),_0x15a84b(_0x4d1156);})[_0xa51400('0x253d')](function(_0x353b26){var _0x13de43=_0xa51400;if(_0x353b26[_0x13de43('0x10fd')]&&_0x353b26['data'][_0x13de43('0x4c6')]&&_0x353b26['data']['errors'][_0x13de43('0x2587')]){_0x107109[_0x13de43('0x4c6')]=_0x353b26[_0x13de43('0x10fd')][_0x13de43('0x4c6')]||[{'message':_0x353b26[_0x13de43('0x684')](),'type':_0x13de43('0x21ba')}];for(var _0x3a80a9=0x0;_0x3a80a9<_0x353b26[_0x13de43('0x10fd')][_0x13de43('0x4c6')]['length'];_0x3a80a9+=0x1){_0x284af1[_0x13de43('0x187f')]({'title':_0x353b26[_0x13de43('0x10fd')][_0x13de43('0x4c6')][_0x3a80a9][_0x13de43('0x6c8')],'msg':_0x353b26[_0x13de43('0x10fd')]['errors'][_0x3a80a9][_0x13de43('0x1402')]});}}else _0x284af1[_0x13de43('0x187f')]({'title':_0x353b26[_0x13de43('0x2fa')]?_0x13de43('0x16c2')+_0x353b26['status']+_0x13de43('0x169e')+_0x353b26['statusText']:'api.network.save','msg':_0x353b26[_0x13de43('0x10fd')]?JSON[_0x13de43('0xa48')](_0x353b26[_0x13de43('0x10fd')][_0x13de43('0x1402')]):_0x353b26[_0x13de43('0x684')]()});});}function _0x21eec9(){var _0x5e3cb9=_0xc95c4f;_0x107109[_0x5e3cb9('0x4c6')]=[],_0xb3650a[_0x5e3cb9('0x97')][_0x5e3cb9('0x264e')]({'id':_0x107109[_0x5e3cb9('0x97')]['id']},_0x107109[_0x5e3cb9('0x97')])[_0x5e3cb9('0x1dc2')][_0x5e3cb9('0xaa5')](function(_0xd924f4){var _0x588945=_0x5e3cb9,_0x5d9ad4=_0x51538b()['find'](_0x107109[_0x588945('0x1109')],{'id':_0xd924f4['id']});_0x5d9ad4&&_0x51538b()[_0x588945('0x283c')](_0x5d9ad4,_0x51538b()[_0x588945('0x104e')](_0xd924f4[_0x588945('0x256a')](),_0x51538b()[_0x588945('0x9f2')](_0x5d9ad4))),_0x284af1[_0x588945('0xe10')]({'title':_0x588945('0x190a'),'msg':_0x107109[_0x588945('0x97')][_0x588945('0x25d6')]?_0x107109[_0x588945('0x97')][_0x588945('0x25d6')]+_0x588945('0x20bf'):''}),_0x15a84b(_0xd924f4);})[_0x5e3cb9('0x253d')](function(_0x1f84e8){var _0x44cb1e=_0x5e3cb9;if(_0x1f84e8['data']&&_0x1f84e8['data']['errors']&&_0x1f84e8['data']['errors'][_0x44cb1e('0x2587')]){_0x107109[_0x44cb1e('0x4c6')]=_0x1f84e8[_0x44cb1e('0x10fd')][_0x44cb1e('0x4c6')]||[{'message':_0x1f84e8[_0x44cb1e('0x684')](),'type':'api.network.update'}];for(var _0x4e5d93=0x0;_0x4e5d93<_0x1f84e8[_0x44cb1e('0x10fd')][_0x44cb1e('0x4c6')][_0x44cb1e('0x2587')];_0x4e5d93++){_0x284af1['error']({'title':_0x1f84e8[_0x44cb1e('0x10fd')][_0x44cb1e('0x4c6')][_0x4e5d93][_0x44cb1e('0x6c8')],'msg':_0x1f84e8['data'][_0x44cb1e('0x4c6')][_0x4e5d93]['message']});}}else _0x284af1[_0x44cb1e('0x187f')]({'title':_0x1f84e8[_0x44cb1e('0x2fa')]?_0x44cb1e('0x16c2')+_0x1f84e8[_0x44cb1e('0x2fa')]+_0x44cb1e('0x169e')+_0x1f84e8[_0x44cb1e('0x24df')]:'api.network.update','msg':_0x1f84e8[_0x44cb1e('0x10fd')]?JSON['stringify'](_0x1f84e8[_0x44cb1e('0x10fd')][_0x44cb1e('0x1402')]):_0x1f84e8[_0x44cb1e('0x684')]()});});}function _0x4e0fc5(_0x895daf){var _0x52b97f=_0xc95c4f;_0x107109['errors']=[];var _0x4c60aa=_0x427bd5['confirm']()['title']('Are\x20you\x20sure?')['content'](_0x52b97f('0x27b1'))[_0x52b97f('0x5b5')]('Delete\x20Network')['ok']('Delete')[_0x52b97f('0x2030')](_0x52b97f('0x9c6'))[_0x52b97f('0x116d')](_0x895daf);_0x427bd5[_0x52b97f('0x1e6d')](_0x4c60aa)['then'](function(){var _0x4e0d71=_0x52b97f;_0xb3650a[_0x4e0d71('0x97')][_0x4e0d71('0x926')]({'id':_0x107109['network']['id']})[_0x4e0d71('0x1dc2')][_0x4e0d71('0xaa5')](function(){var _0x433d71=_0x4e0d71;_0x51538b()['remove'](_0x107109[_0x433d71('0x1109')],{'id':_0x107109[_0x433d71('0x97')]['id']}),_0x284af1[_0x433d71('0xe10')]({'title':_0x433d71('0x15a4'),'msg':(_0x107109['network'][_0x433d71('0x25d6')]||_0x433d71('0x97'))+'\x20has\x20been\x20deleted!'}),_0x15a84b(_0x107109[_0x433d71('0x97')]);})[_0x4e0d71('0x253d')](function(_0x7b5faf){var _0x21c31e=_0x4e0d71;if(_0x7b5faf[_0x21c31e('0x10fd')]&&_0x7b5faf[_0x21c31e('0x10fd')][_0x21c31e('0x4c6')]&&_0x7b5faf[_0x21c31e('0x10fd')]['errors'][_0x21c31e('0x2587')]){_0x107109[_0x21c31e('0x4c6')]=_0x7b5faf[_0x21c31e('0x10fd')][_0x21c31e('0x4c6')]||[{'message':_0x7b5faf[_0x21c31e('0x684')](),'type':_0x21c31e('0x9e7')}];for(var _0x1db8f4=0x0;_0x1db8f4<_0x7b5faf[_0x21c31e('0x10fd')][_0x21c31e('0x4c6')][_0x21c31e('0x2587')];_0x1db8f4++){_0x284af1[_0x21c31e('0x187f')]({'title':_0x7b5faf[_0x21c31e('0x10fd')][_0x21c31e('0x4c6')][_0x1db8f4]['type'],'msg':_0x7b5faf['data'][_0x21c31e('0x4c6')][_0x1db8f4][_0x21c31e('0x1402')]});}}else _0x284af1[_0x21c31e('0x187f')]({'title':_0x7b5faf[_0x21c31e('0x2fa')]?_0x21c31e('0x16c2')+_0x7b5faf[_0x21c31e('0x2fa')]+_0x21c31e('0x169e')+_0x7b5faf[_0x21c31e('0x24df')]:_0x21c31e('0x9e7'),'msg':_0x7b5faf[_0x21c31e('0x10fd')]?JSON[_0x21c31e('0xa48')](_0x7b5faf[_0x21c31e('0x10fd')][_0x21c31e('0x1402')]):_0x7b5faf[_0x21c31e('0x1402')]||_0x7b5faf[_0x21c31e('0x684')]()});});},function(){});}function _0x180223(_0x1e4081){return _0x1e4081===null?undefined:new Date(_0x1e4081);}function _0x15a84b(_0x8c8efc){var _0x4876c6=_0xc95c4f;_0x427bd5[_0x4876c6('0x1120')](_0x8c8efc);}}const _0x29f33d=_0x570fbb,_0x1e7a3f=_0x4fb511['p']+_0x1a8446('0x23bf');_0x2842c9['$inject']=['$scope','$window','$state',_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x1109'),_0x1a8446('0x157'),'msUtils',_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting'];function _0x2842c9(_0x53d57f,_0x3081f9,_0x53e933,_0x477167,_0x4bdeb6,_0x4852,_0x102429,_0x5eb8fb,_0x4eddb1,_0x19f1cc,_0x2d19d2,_0x1bd449,_0x5efa77,_0x33c9a8,_0x3d4b49){var _0x3bc826=_0x1a8446,_0x371599=this;_0x371599[_0x3bc826('0x1202')]=_0x33c9a8,_0x371599[_0x3bc826('0x143f')]=_0x3d4b49,_0x371599[_0x3bc826('0x7fc')]=_0x5efa77['getCurrentUser'](),_0x371599[_0x3bc826('0x1109')]=_0x4eddb1||{'count':0x0,'rows':[]},_0x371599['table']=_0x3bc826('0x1109'),_0x371599['listOrder']='',_0x371599['listOrderAsc']=null,_0x371599[_0x3bc826('0x2621')]=[],_0x371599['query']={'fields':_0x3bc826('0xfd'),'sort':_0x3bc826('0xd82'),'limit':0xa,'page':0x1},_0x371599['arraytype']=_0x51538b()[_0x3bc826('0x184a')]([{'option':_0x3bc826('0x501'),'value':_0x3bc826('0x44b')},{'option':_0x3bc826('0x1c35'),'value':_0x3bc826('0x1312')},{'option':_0x3bc826('0x1fc'),'value':_0x3bc826('0x1c2c')},{'option':_0x3bc826('0x78b'),'value':_0x3bc826('0x1156')}],function(_0xab5b99){var _0x4230c8=_0x3bc826;return _0x51538b()[_0x4230c8('0x170d')](_0xab5b99[_0x4230c8('0x12f4')],new RegExp('\x27','g'),'');}),_0x371599['editdialog']=_0x2b4e63,_0x371599[_0x3bc826('0x271')]=_0x3f41c8,_0x371599[_0x3bc826('0xe10')]=_0x427429,_0x371599['getNetworks']=_0x5e0825,_0x371599[_0x3bc826('0x22c5')]=_0x15de0a,_0x371599['deleteNetwork']=_0x12eab0,_0x371599[_0x3bc826('0x156f')]=_0x490b27,_0x371599[_0x3bc826('0x22bd')]=_0x48b92e,_0x371599[_0x3bc826('0xfe9')]=_0x2bab94,_0x371599[_0x3bc826('0x118')]=_0x35484d;function _0x2b4e63(_0xdc31b0,_0x502d37){var _0x4b8d4=_0x3bc826;_0x4bdeb6[_0x4b8d4('0x1e6d')]({'controller':_0x4b8d4('0xe9a'),'controllerAs':'vm','templateUrl':_0x1e7a3f,'parent':angular[_0x4b8d4('0x1aa8')](_0x4852[_0x4b8d4('0x54c')]),'targetEvent':_0x502d37,'clickOutsideToClose':!![],'locals':{'network':_0xdc31b0,'networks':_0x371599[_0x4b8d4('0x1109')]['rows'],'license':_0x371599[_0x4b8d4('0x1202')],'setting':null,'crudPermissions':_0x371599[_0x4b8d4('0xada')]}});}function _0x3f41c8(_0x28bf93,_0x11473a){var _0x2b7ba9=_0x3bc826,_0x54bc08=_0x4bdeb6[_0x2b7ba9('0x281e')]()[_0x2b7ba9('0x110a')](_0x2b7ba9('0x88d')+_0x51538b()['startCase']('network')+'?')[_0x2b7ba9('0x102e')](_0x2b7ba9('0x389')+(_0x28bf93[_0x2b7ba9('0x25d6')]||_0x2b7ba9('0x97'))+_0x2b7ba9('0x697')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x2b7ba9('0x21c1'))['targetEvent'](_0x11473a)['ok']('OK')[_0x2b7ba9('0x2030')]('CANCEL');_0x4bdeb6[_0x2b7ba9('0x1e6d')](_0x54bc08)[_0x2b7ba9('0xaa5')](function(){_0x12eab0(_0x28bf93);},function(){var _0x484e8d=_0x2b7ba9;console[_0x484e8d('0x18d5')]('CANCEL');});}var _0x4cf604=!![],_0x201d9a=0x1;_0x53d57f[_0x3bc826('0x1ccf')](_0x3bc826('0x1788'),function(_0x2263ff,_0x29b3fb){var _0x292d3f=_0x3bc826;_0x4cf604?_0x102429(function(){_0x4cf604=![];}):(!_0x29b3fb&&(_0x201d9a=_0x371599[_0x292d3f('0x582')][_0x292d3f('0x41')]),_0x2263ff!==_0x29b3fb&&(_0x371599[_0x292d3f('0x582')]['page']=0x1),!_0x2263ff&&(_0x371599[_0x292d3f('0x582')]['page']=_0x201d9a),_0x371599[_0x292d3f('0x1ba8')]());});function _0x427429(_0x71e90f){var _0x292e5b=_0x3bc826;_0x371599[_0x292e5b('0x1109')]=_0x71e90f||{'count':0x0,'rows':[]};}function _0x5e0825(){var _0x28e378=_0x3bc826;_0x371599[_0x28e378('0x582')]['offset']=(_0x371599[_0x28e378('0x582')][_0x28e378('0x41')]-0x1)*_0x371599['query'][_0x28e378('0xf4d')],_0x5efa77[_0x28e378('0x26e8')](_0x28e378('0x178b'))?_0x371599[_0x28e378('0x159a')]=_0x19f1cc[_0x28e378('0x97')]['get'](_0x371599[_0x28e378('0x582')],_0x427429)[_0x28e378('0x1dc2')]:(_0x371599[_0x28e378('0x582')]['id']=_0x371599[_0x28e378('0x1e97')]['id'],_0x371599['query'][_0x28e378('0x224d')]=_0x28e378('0x202b'),_0x371599[_0x28e378('0x159a')]=_0x19f1cc['userProfile']['getResources'](_0x371599['query'],_0x427429)[_0x28e378('0x1dc2')]);}function _0x15de0a(_0x12b08e,_0x3ca997){var _0x4d8304=_0x3bc826;_0x4bdeb6[_0x4d8304('0x1e6d')]({'controller':_0x4d8304('0xe9a'),'controllerAs':'vm','templateUrl':_0x1e7a3f,'parent':angular[_0x4d8304('0x1aa8')](_0x4852[_0x4d8304('0x54c')]),'targetEvent':_0x12b08e,'clickOutsideToClose':!![],'locals':{'network':_0x3ca997,'networks':_0x371599[_0x4d8304('0x1109')][_0x4d8304('0x580')],'license':_0x371599['license'],'setting':_0x371599['setting'],'crudPermissions':_0x371599[_0x4d8304('0xada')]}});}function _0x12eab0(_0x4f8cdc){var _0x43e8ec=_0x3bc826;_0x19f1cc[_0x43e8ec('0x97')][_0x43e8ec('0x926')]({'id':_0x4f8cdc['id']})['$promise'][_0x43e8ec('0xaa5')](function(){var _0x1bba4f=_0x43e8ec;_0x51538b()[_0x1bba4f('0xf6d')](_0x371599[_0x1bba4f('0x1109')][_0x1bba4f('0x580')],{'id':_0x4f8cdc['id']}),_0x371599[_0x1bba4f('0x1109')][_0x1bba4f('0xd15')]-=0x1,!_0x371599[_0x1bba4f('0x1109')][_0x1bba4f('0x580')][_0x1bba4f('0x2587')]&&_0x371599[_0x1bba4f('0x1ba8')](),_0x1bd449[_0x1bba4f('0xe10')]({'title':_0x51538b()[_0x1bba4f('0x196a')]('Network')+_0x1bba4f('0x8bb'),'msg':_0x4f8cdc['name']?_0x4f8cdc['name']+'\x20has\x20been\x20deleted!':''});})[_0x43e8ec('0x253d')](function(_0x16a6f3){var _0x3edece=_0x43e8ec;if(_0x16a6f3[_0x3edece('0x10fd')]&&_0x16a6f3[_0x3edece('0x10fd')]['errors']&&_0x16a6f3[_0x3edece('0x10fd')][_0x3edece('0x4c6')][_0x3edece('0x2587')]){_0x371599[_0x3edece('0x4c6')]=_0x16a6f3[_0x3edece('0x10fd')][_0x3edece('0x4c6')]||[{'message':_0x16a6f3['toString'](),'type':_0x3edece('0x847')}];for(var _0x5a8a32=0x0;_0x5a8a32<_0x16a6f3[_0x3edece('0x10fd')][_0x3edece('0x4c6')][_0x3edece('0x2587')];_0x5a8a32++){_0x1bd449[_0x3edece('0x187f')]({'title':_0x16a6f3[_0x3edece('0x10fd')]['errors'][_0x5a8a32][_0x3edece('0x6c8')],'msg':_0x16a6f3[_0x3edece('0x10fd')][_0x3edece('0x4c6')][_0x5a8a32][_0x3edece('0x1402')]});}}else _0x1bd449[_0x3edece('0x187f')]({'title':_0x16a6f3[_0x3edece('0x2fa')]?_0x3edece('0x16c2')+_0x16a6f3[_0x3edece('0x2fa')]+_0x3edece('0x169e')+_0x16a6f3[_0x3edece('0x24df')]:_0x3edece('0x847'),'msg':_0x16a6f3[_0x3edece('0x10fd')]?JSON[_0x3edece('0xa48')](_0x16a6f3[_0x3edece('0x10fd')][_0x3edece('0x1402')]):_0x16a6f3['message']||_0x16a6f3[_0x3edece('0x684')]()});});}function _0x490b27(){var _0x211c86=_0x3bc826,_0x5e4ffa=angular['copy'](_0x371599[_0x211c86('0x2621')]);return _0x371599[_0x211c86('0x2621')]=[],_0x5e4ffa;}function _0x48b92e(_0x88222){var _0x23dfce=_0x3bc826,_0x2809f9=_0x4bdeb6[_0x23dfce('0x281e')]()[_0x23dfce('0x110a')](_0x23dfce('0x1a1e'))['htmlContent'](_0x23dfce('0x389')+_0x371599[_0x23dfce('0x2621')][_0x23dfce('0x2587')]+_0x23dfce('0x1443')+'\x20will\x20be\x20deleted.')[_0x23dfce('0x5b5')](_0x23dfce('0xd0e'))[_0x23dfce('0x116d')](_0x88222)['ok']('OK')[_0x23dfce('0x2030')](_0x23dfce('0x2410'));_0x4bdeb6[_0x23dfce('0x1e6d')](_0x2809f9)[_0x23dfce('0xaa5')](function(){var _0x16417a=_0x23dfce;_0x371599[_0x16417a('0x2621')][_0x16417a('0x15b5')](function(_0x29ef52){_0x12eab0(_0x29ef52);}),_0x371599[_0x16417a('0x2621')]=[];});}function _0x2bab94(){var _0x20519d=_0x3bc826;_0x371599[_0x20519d('0x2621')]=[];}function _0x35484d(){var _0x429cbf=_0x3bc826;_0x371599['selectedNetworks']=_0x371599[_0x429cbf('0x1109')]['rows'];}}const _0x5b40ee=_0x2842c9;_0x484bd8[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q','$translate','toasty',_0x1a8446('0x1593'),_0x1a8446('0x24a2'),'api','Auth',_0x1a8446('0x1202'),'setting',_0x1a8446('0xada')];function _0x484bd8(_0x393e59,_0x5a22d9,_0x37382a,_0x26e17e,_0x475f72,_0x8a60d1,_0x1769ef,_0xaa654e,_0x47bd0d,_0x5b603c,_0x227846,_0xe0b117,_0x934908,_0x576dcd){var _0x3244ca=_0x1a8446,_0x170a62=this;_0x170a62[_0x3244ca('0x7fc')]=_0x227846[_0x3244ca('0xacc')](),_0x170a62['errors']=[],_0x170a62[_0x3244ca('0x143f')]=_0x934908,_0x170a62[_0x3244ca('0x1202')]=_0xe0b117,_0x170a62[_0x3244ca('0xada')]=_0x576dcd,_0x170a62[_0x3244ca('0x9f0')]={},_0x170a62['passwordPattern']=_0x170a62[_0x3244ca('0x143f')]&&_0x170a62[_0x3244ca('0x143f')][_0x3244ca('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x170a62['title']=_0x3244ca('0x7a9'),_0x170a62[_0x3244ca('0x24a2')]=angular[_0x3244ca('0x20a')](_0x47bd0d),_0x170a62[_0x3244ca('0x1593')]=_0xaa654e,_0x170a62[_0x3244ca('0x201d')]=![];!_0x170a62[_0x3244ca('0x24a2')]&&(_0x170a62[_0x3244ca('0x24a2')]={'service':!![]},_0x170a62['title']='SETTINGS.NEW_SMTP',_0x170a62['newSmtp']=!![]);_0x170a62[_0x3244ca('0x1dee')]=_0x530e46,_0x170a62[_0x3244ca('0xfa2')]=_0x5dd473,_0x170a62[_0x3244ca('0x1769')]=_0x4f020e,_0x170a62[_0x3244ca('0xc09')]=_0x23c87d,_0x170a62[_0x3244ca('0x2023')]=_0xc60ddf;function _0x530e46(){var _0x42bff5=_0x3244ca;_0x170a62[_0x42bff5('0x4c6')]=[],_0x5b603c[_0x42bff5('0xb86')][_0x42bff5('0x242b')](_0x170a62[_0x42bff5('0x24a2')])[_0x42bff5('0x1dc2')][_0x42bff5('0xaa5')](function(_0x8ad8ef){var _0x537e7f=_0x42bff5;_0x170a62[_0x537e7f('0x1593')][_0x537e7f('0x6ee')](_0x8ad8ef[_0x537e7f('0x256a')]()),_0x1769ef[_0x537e7f('0xe10')]({'title':_0x537e7f('0x5ef'),'msg':_0x170a62[_0x537e7f('0x24a2')][_0x537e7f('0x25d6')]?_0x170a62[_0x537e7f('0x24a2')][_0x537e7f('0x25d6')]+_0x537e7f('0xdca'):''}),_0xc60ddf(_0x8ad8ef);})['catch'](function(_0x340d89){var _0x1d6054=_0x42bff5;if(_0x340d89[_0x1d6054('0x10fd')]&&_0x340d89[_0x1d6054('0x10fd')]['errors']&&_0x340d89[_0x1d6054('0x10fd')][_0x1d6054('0x4c6')][_0x1d6054('0x2587')]){_0x170a62[_0x1d6054('0x4c6')]=_0x340d89[_0x1d6054('0x10fd')][_0x1d6054('0x4c6')]||[{'message':_0x340d89[_0x1d6054('0x684')](),'type':_0x1d6054('0x27a8')}];for(var _0x2950d7=0x0;_0x2950d7<_0x340d89[_0x1d6054('0x10fd')]['errors'][_0x1d6054('0x2587')];_0x2950d7+=0x1){_0x1769ef[_0x1d6054('0x187f')]({'title':_0x340d89[_0x1d6054('0x10fd')][_0x1d6054('0x4c6')][_0x2950d7][_0x1d6054('0x6c8')],'msg':_0x340d89[_0x1d6054('0x10fd')]['errors'][_0x2950d7][_0x1d6054('0x1402')]});}}else _0x1769ef['error']({'title':_0x340d89[_0x1d6054('0x2fa')]?'API:'+_0x340d89[_0x1d6054('0x2fa')]+_0x1d6054('0x169e')+_0x340d89[_0x1d6054('0x24df')]:_0x1d6054('0x27a8'),'msg':_0x340d89['data']?JSON[_0x1d6054('0xa48')](_0x340d89[_0x1d6054('0x10fd')][_0x1d6054('0x1402')]):_0x340d89['toString']()});});}function _0x5dd473(){var _0x481592=_0x3244ca;_0x170a62['errors']=[],_0x5b603c[_0x481592('0xb86')][_0x481592('0x264e')]({'id':_0x170a62['smtp']['id']},_0x170a62['smtp'])['$promise'][_0x481592('0xaa5')](function(_0x2ebebd){var _0x2c6a92=_0x481592,_0x37b1e9=_0x51538b()['find'](_0x170a62[_0x2c6a92('0x1593')],{'id':_0x2ebebd['id']});_0x37b1e9&&_0x51538b()[_0x2c6a92('0x283c')](_0x37b1e9,_0x51538b()[_0x2c6a92('0x104e')](_0x2ebebd[_0x2c6a92('0x256a')](),_0x51538b()[_0x2c6a92('0x9f2')](_0x37b1e9))),_0x1769ef['success']({'title':'Smtp\x20properly\x20saved!','msg':_0x170a62[_0x2c6a92('0x24a2')][_0x2c6a92('0x25d6')]?_0x170a62['smtp'][_0x2c6a92('0x25d6')]+_0x2c6a92('0x20bf'):''}),_0xc60ddf(_0x2ebebd);})[_0x481592('0x253d')](function(_0x376dd9){var _0x139bbf=_0x481592;if(_0x376dd9[_0x139bbf('0x10fd')]&&_0x376dd9[_0x139bbf('0x10fd')][_0x139bbf('0x4c6')]&&_0x376dd9[_0x139bbf('0x10fd')][_0x139bbf('0x4c6')][_0x139bbf('0x2587')]){_0x170a62[_0x139bbf('0x4c6')]=_0x376dd9[_0x139bbf('0x10fd')][_0x139bbf('0x4c6')]||[{'message':_0x376dd9[_0x139bbf('0x684')](),'type':_0x139bbf('0x1ad0')}];for(var _0x311699=0x0;_0x311699<_0x376dd9['data']['errors']['length'];_0x311699++){_0x1769ef[_0x139bbf('0x187f')]({'title':_0x376dd9['data'][_0x139bbf('0x4c6')][_0x311699][_0x139bbf('0x6c8')],'msg':_0x376dd9['data']['errors'][_0x311699][_0x139bbf('0x1402')]});}}else _0x1769ef[_0x139bbf('0x187f')]({'title':_0x376dd9['status']?_0x139bbf('0x16c2')+_0x376dd9[_0x139bbf('0x2fa')]+_0x139bbf('0x169e')+_0x376dd9[_0x139bbf('0x24df')]:_0x139bbf('0x1ad0'),'msg':_0x376dd9['data']?JSON[_0x139bbf('0xa48')](_0x376dd9['data'][_0x139bbf('0x1402')]):_0x376dd9['toString']()});});}function _0x4f020e(_0x2dea08){var _0x5d6c7b=_0x3244ca;_0x170a62['errors']=[];var _0x2abd59=_0x26e17e[_0x5d6c7b('0x281e')]()[_0x5d6c7b('0x110a')](_0x5d6c7b('0x12a3'))[_0x5d6c7b('0x15af')](_0x5d6c7b('0xaeb'))[_0x5d6c7b('0x5b5')]('Delete\x20Smtp')['ok']('Delete')[_0x5d6c7b('0x2030')](_0x5d6c7b('0x9c6'))['targetEvent'](_0x2dea08);_0x26e17e[_0x5d6c7b('0x1e6d')](_0x2abd59)[_0x5d6c7b('0xaa5')](function(){var _0x4276d6=_0x5d6c7b;_0x5b603c[_0x4276d6('0xb86')][_0x4276d6('0x926')]({'id':_0x170a62['smtp']['id']})[_0x4276d6('0x1dc2')][_0x4276d6('0xaa5')](function(){var _0x255858=_0x4276d6;_0x51538b()[_0x255858('0xf6d')](_0x170a62['smtps'],{'id':_0x170a62[_0x255858('0x24a2')]['id']}),_0x1769ef[_0x255858('0xe10')]({'title':_0x255858('0x1f04'),'msg':(_0x170a62['smtp']['name']||_0x255858('0x24a2'))+_0x255858('0xcd9')}),_0xc60ddf(_0x170a62[_0x255858('0x24a2')]);})['catch'](function(_0x1a07c1){var _0x1522fd=_0x4276d6;if(_0x1a07c1[_0x1522fd('0x10fd')]&&_0x1a07c1[_0x1522fd('0x10fd')][_0x1522fd('0x4c6')]&&_0x1a07c1['data'][_0x1522fd('0x4c6')][_0x1522fd('0x2587')]){_0x170a62[_0x1522fd('0x4c6')]=_0x1a07c1[_0x1522fd('0x10fd')]['errors']||[{'message':_0x1a07c1['toString'](),'type':_0x1522fd('0x11d7')}];for(var _0x4ed43f=0x0;_0x4ed43f<_0x1a07c1[_0x1522fd('0x10fd')]['errors'][_0x1522fd('0x2587')];_0x4ed43f++){_0x1769ef['error']({'title':_0x1a07c1[_0x1522fd('0x10fd')][_0x1522fd('0x4c6')][_0x4ed43f]['type'],'msg':_0x1a07c1[_0x1522fd('0x10fd')]['errors'][_0x4ed43f][_0x1522fd('0x1402')]});}}else _0x1769ef[_0x1522fd('0x187f')]({'title':_0x1a07c1[_0x1522fd('0x2fa')]?_0x1522fd('0x16c2')+_0x1a07c1[_0x1522fd('0x2fa')]+'\x20-\x20'+_0x1a07c1[_0x1522fd('0x24df')]:_0x1522fd('0x11d7'),'msg':_0x1a07c1[_0x1522fd('0x10fd')]?JSON[_0x1522fd('0xa48')](_0x1a07c1[_0x1522fd('0x10fd')]['message']):_0x1a07c1[_0x1522fd('0x1402')]||_0x1a07c1[_0x1522fd('0x684')]()});});},function(){});}function _0x23c87d(_0x2c650b){return _0x2c650b===null?undefined:new Date(_0x2c650b);}function _0xc60ddf(_0x171b16){var _0x163039=_0x3244ca;_0x26e17e[_0x163039('0x1120')](_0x171b16);}}const _0x20c483=_0x484bd8;_0x130ea9[_0x1a8446('0x1e33')]=[_0x1a8446('0x1593'),_0x1a8446('0x157'),'toasty','license',_0x1a8446('0x1dfd')];function _0x130ea9(_0x22e33b,_0x3bcd88,_0x3ea2b9,_0xaf68ec,_0x5ccb04){var _0x2064bb=_0x1a8446,_0x35938d=this;_0x35938d['currentUser']=_0x5ccb04['getCurrentUser'](),_0x35938d['license']=_0xaf68ec,_0x35938d[_0x2064bb('0x1593')]=_0x22e33b,_0x35938d[_0x2064bb('0x24a2')]={};_0x35938d[_0x2064bb('0x1593')]&&_0x35938d[_0x2064bb('0x1593')]['rows']&&_0x35938d[_0x2064bb('0x1593')][_0x2064bb('0x580')]['length']?_0x35938d[_0x2064bb('0x24a2')]=_0x35938d[_0x2064bb('0x1593')][_0x2064bb('0x580')][0x0]:_0x35938d[_0x2064bb('0x24a2')]={'service':!![],'Smtp':{'service':null}};_0x35938d[_0x2064bb('0xfa2')]=_0x4fcd43,_0x35938d[_0x2064bb('0x2361')]=_0x4a87d9;function _0x4a87d9(){var _0x39b092=_0x2064bb;_0x35938d['smtp']['id']&&_0x3bcd88['mailAccount'][_0x39b092('0x2361')]({'id':_0x35938d[_0x39b092('0x24a2')]['id']})[_0x39b092('0x1dc2')][_0x39b092('0xaa5')](function(){var _0x4321cf=_0x39b092;_0x3ea2b9[_0x4321cf('0xe10')]({'title':_0x4321cf('0x7e0'),'msg':_0x35938d[_0x4321cf('0x24a2')][_0x4321cf('0x25d6')]?_0x35938d[_0x4321cf('0x24a2')][_0x4321cf('0x25d6')]+_0x4321cf('0x2139'):''});})[_0x39b092('0x253d')](function(_0x409d90){var _0x31976f=_0x39b092;_0x3ea2b9[_0x31976f('0x187f')]({'title':_0x31976f('0x19c5'),'msg':_0x409d90[_0x31976f('0x10fd')]?JSON[_0x31976f('0xa48')](_0x409d90[_0x31976f('0x10fd')]):_0x409d90[_0x31976f('0x684')](),'timeout':0x2710});});}function _0x4fcd43(){var _0x561727=_0x2064bb;_0x35938d[_0x561727('0x24a2')]['id']?_0x3bcd88['mailAccount'][_0x561727('0x264e')]({'id':_0x35938d['smtp']['id']},_0x35938d['smtp'])[_0x561727('0x1dc2')][_0x561727('0xaa5')](function(){var _0xa555c8=_0x561727;_0x3ea2b9['success']({'title':_0xa555c8('0x2780'),'msg':_0x35938d['smtp'][_0xa555c8('0x25d6')]?_0x35938d[_0xa555c8('0x24a2')][_0xa555c8('0x25d6')]+_0xa555c8('0x1734'):''});})[_0x561727('0x253d')](function(_0x345470){var _0x5212cb=_0x561727;_0x3ea2b9[_0x5212cb('0x187f')]({'title':_0x345470[_0x5212cb('0x2fa')]?_0x5212cb('0x16c2')+_0x345470[_0x5212cb('0x2fa')]+'\x20-\x20'+_0x345470[_0x5212cb('0x24df')]:_0x5212cb('0x64b'),'msg':_0x345470['data']?JSON['stringify'](_0x345470[_0x5212cb('0x10fd')]):_0x345470[_0x5212cb('0x684')]()});}):_0x3bcd88[_0x561727('0xb86')][_0x561727('0x242b')](_0x35938d[_0x561727('0x24a2')])[_0x561727('0x1dc2')][_0x561727('0xaa5')](function(_0x3f1466){var _0x3505b4=_0x561727;_0x51538b()[_0x3505b4('0x283c')](_0x35938d['smtp'],_0x3f1466),_0x3ea2b9[_0x3505b4('0xe10')]({'title':'Smtp\x20updated!','msg':_0x35938d[_0x3505b4('0x24a2')][_0x3505b4('0x25d6')]?_0x35938d[_0x3505b4('0x24a2')][_0x3505b4('0x25d6')]+_0x3505b4('0x1734'):''});})['catch'](function(_0x54485b){var _0x49b772=_0x561727;_0x3ea2b9[_0x49b772('0x187f')]({'title':_0x54485b[_0x49b772('0x2fa')]?_0x49b772('0x16c2')+_0x54485b[_0x49b772('0x2fa')]+_0x49b772('0x169e')+_0x54485b[_0x49b772('0x24df')]:'SYSTEM:GETmailAccount','msg':_0x54485b[_0x49b772('0x10fd')]?JSON['stringify'](_0x54485b[_0x49b772('0x10fd')]):_0x54485b[_0x49b772('0x684')]()});});}}const _0x4f284c=_0x130ea9;_0x4e0b85[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),'$translatePartialLoaderProvider'];function _0x4e0b85(_0x2343b8,_0x29d048){var _0x56279d=_0x1a8446;_0x2343b8[_0x56279d('0xb46')](_0x56279d('0x280c'),{'abstract':!![],'url':_0x56279d('0x374')})[_0x56279d('0xb46')](_0x56279d('0x1c38'),{'url':_0x56279d('0x7e3'),'views':{'content@app':{'templateUrl':_0x579726,'controller':_0x56279d('0xdef')}},'resolve':{'generals':['apiResolver',function _0x35c6ba(_0x4245c9){var _0x1e03e1=_0x56279d;return _0x4245c9[_0x1e03e1('0x149f')](_0x1e03e1('0xda9'),{'fields':'createdAt,updatedAt,id,min_internal,securePassword,callRecordingEncryption,chatTimeout,phoneBarAutoUpdater,defaultScreenRecordingPath,phoneBarAutoUpdaterUrl,enableEmailPreview,split,splitSizeCsv,splitSizePdf,splitSizeXlsx,messagesAlignment,phoneBarRememberMeEnabled,rtlSupport,allowedLoginAttempts,blockDuration,loginMailFrequency,language,bucket,transcribe,transcribeRegion,transcribeAccountId,sentiment,sentimentRegion,sentimentAccountId,googleSsoEnabled,enforcePasswordHistory,passwordHistoryLimit','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'})['state']('app.settings.smtps',{'url':_0x56279d('0xe96'),'views':{'content@app':{'templateUrl':_0x5f52d8,'controller':_0x56279d('0xee2')}},'resolve':{'smtps':[_0x56279d('0x1d16'),function _0x509e95(_0x54e41f){var _0x5dfeb3=_0x56279d;return _0x54e41f[_0x5dfeb3('0x149f')](_0x5dfeb3('0x2418'),{'fields':_0x5dfeb3('0x1ce9'),'service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x56279d('0xaa7')})['state'](_0x56279d('0x1e31'),{'url':'/networks','views':{'content@app':{'templateUrl':_0x133b1d,'controller':_0x56279d('0x1389')}},'resolve':{'networks':['apiResolver',function _0x4003b3(_0x553030){var _0x40afed=_0x56279d;return _0x553030[_0x40afed('0x149f')](_0x40afed('0x646'),{'fields':_0x40afed('0xfd'),'sort':_0x40afed('0xd82'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x56279d('0xaa7')})[_0x56279d('0xb46')](_0x56279d('0x1dec'),{'url':_0x56279d('0x61'),'views':{'content@app':{'templateUrl':_0x22dce1,'controller':'CustomizationsController\x20as\x20vm'}},'resolve':{'customizations':[_0x56279d('0x1d16'),function _0xaebc63(_0x32459a){var _0x4f4ccc=_0x56279d;return _0x32459a[_0x4f4ccc('0x149f')]('setting@get',{'fields':'createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x56279d('0xaa7')})[_0x56279d('0xb46')](_0x56279d('0x12d6'),{'url':_0x56279d('0x11c9'),'views':{'content@app':{'templateUrl':_0x4a6a31,'controller':_0x56279d('0x1370')}},'resolve':{'cloudProviders':[_0x56279d('0x1d16'),function _0x237434(_0x32c2ec){var _0x2a1e26=_0x56279d;return _0x32c2ec[_0x2a1e26('0x149f')](_0x2a1e26('0x1b5c'),{'fields':_0x2a1e26('0x166'),'sort':_0x2a1e26('0xd82'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'}),_0x29d048[_0x56279d('0x1de5')](_0x56279d('0x21f8'));}angular[_0x1a8446('0x1f8d')]('app.settings',[_0x1a8446('0x1308'),'ngPassword',_0x1a8446('0x1d87'),'flow','mdColorPicker','ckeditor',_0x1a8446('0xb89'),_0x1a8446('0x150f'),'ngAnimate','mdPickers',_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),'ngclipboard',_0x1a8446('0x2579'),'ngEmbed','angularMaterialFormBuilder','material.components.expansionPanels',_0x1a8446('0x1320'),_0x1a8446('0x775'),'app.settings.updates',_0x1a8446('0x1a49'),'app.settings.system'])['config'](_0x4e0b85)[_0x1a8446('0x780')]('CloudProvidersController',_0x33fdd7)[_0x1a8446('0x780')]('CreateOrEditCloudProviderDialogController',_0x4ded53)['controller'](_0x1a8446('0x429'),_0x2d8240)[_0x1a8446('0x780')]('CustomizationsController',_0xade327)['controller'](_0x1a8446('0x25dc'),_0x1ebfdd)['controller'](_0x1a8446('0x35c'),_0x2c9bb0)['controller']('CustomizationlogologinController',_0x540f53)[_0x1a8446('0x780')]('CustomizationpreferredController',_0x38bf4f)[_0x1a8446('0x780')](_0x1a8446('0x1c37'),_0x4b56b6)[_0x1a8446('0x780')](_0x1a8446('0x19af'),_0x165981)[_0x1a8446('0x780')]('CreateOrEditNetworkDialogController',_0x29f33d)[_0x1a8446('0x780')](_0x1a8446('0xa3c'),_0x5b40ee)[_0x1a8446('0x780')](_0x1a8446('0x1ff6'),_0x20c483)['controller'](_0x1a8446('0xa97'),_0x4f284c);const _0x594dfc=_0x4fb511['p']+_0x1a8446('0x19be'),_0xd1bda8=_0x4fb511['p']+_0x1a8446('0xe78'),_0x5e925a=_0x4fb511['p']+_0x1a8446('0x2338'),_0x3f5651=_0x4fb511['p']+_0x1a8446('0x20b6'),_0x2fea24=_0x4fb511['p']+_0x1a8446('0x16e0'),_0x29f55e=_0x4fb511['p']+_0x1a8446('0x1f03'),_0x1cbce1=_0x4fb511['p']+'src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html/view-[chunkhash].html',_0x55e904=_0x4fb511['p']+_0x1a8446('0x78f');_0x27b014[_0x1a8446('0x1e33')]=['$scope','$timeout',_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$window',_0x1a8446('0xcb3'),_0x1a8446('0x157'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'Auth','socket',_0x1a8446('0x2a4'),'agents','dispositions'];function _0x27b014(_0x3e1cb2,_0x1a13e8,_0x30fbf9,_0x30fed7,_0x5c9d5f,_0x425a15,_0x4ae7cc,_0x33903e,_0x14c7aa,_0x17ddc3,_0xbc4a67,_0x4c4662,_0x548cee,_0x20258c){var _0x4bbee5=_0x1a8446,_0x378518=this;_0x378518[_0x4bbee5('0x7fc')]=_0x17ddc3[_0x4bbee5('0xacc')](),_0x378518['agents']=_0x548cee?_0x548cee:[],_0x378518[_0x4bbee5('0xa9')]=_0x20258c,_0x378518[_0x4bbee5('0x5e0')]={'count':0x0,'rows':[]},_0x378518['showTooltip']=![],_0x378518['refresh']=!![],_0x378518[_0x4bbee5('0x1e97')]=_0x33903e,_0x378518['userProfileSection']=_0x14c7aa&&_0x14c7aa[_0x4bbee5('0xd15')]==0x1?_0x14c7aa['rows'][0x0]:null,_0x378518['crudPermissions']=_0x17ddc3[_0x4bbee5('0xffd')](_0x378518[_0x4bbee5('0x1a50')]?_0x378518[_0x4bbee5('0x1a50')][_0x4bbee5('0xada')]:null),_0x378518['query']={'fields':_0x4bbee5('0x2260'),'type':_0x4bbee5('0x19d1'),'queuecallerexitreason':_0x4bbee5('0x52f')+','+'ABANDONED','sort':_0x4bbee5('0xd82'),'limit':0xa,'page':0x1},_0x378518[_0x4bbee5('0x1fb5')]=_0x12ac04,_0x378518[_0x4bbee5('0x1989')]=_0x3ab507,_0x378518[_0x4bbee5('0x257f')]=_0x44ae2f,_0x378518[_0x4bbee5('0xd3b')]=_0x4b7cc4,_0x378518['onSaveVoiceQueueReport']=_0x1f3a67,_0x378518[_0x4bbee5('0xdfd')]=_0xa50c72,_0xbc4a67[_0x4bbee5('0xa84')](_0x4bbee5('0x164c'),_0x378518[_0x4bbee5('0x1ecc')]),_0xbc4a67['on'](_0x4bbee5('0x5a1'),_0x378518['onUpdateVoiceQueueReport']),_0x577da9();function _0x577da9(){var _0x18b431=_0x4bbee5,_0x203855=_0x5c9d5f['localStorage']['getItem'](_0x18b431('0x15b9')+_0x378518['currentUser']['id']);if(_0x203855)_0x203855=JSON[_0x18b431('0x9b6')](_0x203855),_0x203855&&_0x203855[_0x18b431('0x582')]&&(_0x378518[_0x18b431('0x582')]=_0x51538b()[_0x18b431('0x283c')](_0x203855[_0x18b431('0x582')],_0x51538b()[_0x18b431('0x245')](_0x378518[_0x18b431('0x582')],[_0x18b431('0x1015'),'limit',_0x18b431('0x41')])),_0x378518[_0x18b431('0x582')]=_0x51538b()[_0x18b431('0x245')](_0x378518[_0x18b431('0x582')],_0x18b431('0xdb7')));else{var _0x2baff5={'$gte':_0x420d43()()['startOf'](_0x18b431('0xae9'))[_0x18b431('0x15db')](0x0,!![])[_0x18b431('0x1f27')](),'$lte':_0x420d43()()['endOf'](_0x18b431('0xae9'))[_0x18b431('0x15db')](0x0,!![])[_0x18b431('0x1f27')]()};_0x378518[_0x18b431('0x582')][_0x18b431('0x24a1')]=_0x2baff5;}_0x17ddc3[_0x18b431('0x26e8')](_0x18b431('0x178b'))?_0x4ae7cc['user'][_0x18b431('0x1e87')]({'id':_0x17ddc3['getCurrentUser']()['id'],'fields':_0x18b431('0x17fe'),'channel':_0x18b431('0x1b9'),'type':'outbound','nolimit':!![]})['$promise'][_0x18b431('0xaa5')](function(_0x1d4bfa){var _0x115855=_0x18b431;_0x378518['queues']=_0x1d4bfa||{'count':0x0,'rows':[]},_0x378518['queuesMap']=_0x51538b()[_0x115855('0xb6f')](_0x51538b()[_0x115855('0x184a')](_0x378518[_0x115855('0x4d7')][_0x115855('0x580')],_0x115855('0x25d6')),_0x115855('0x25d6'));})[_0x18b431('0x253d')](function(_0x49ac55){var _0x3d0482=_0x18b431;console[_0x3d0482('0x187f')](_0x49ac55);})[_0x18b431('0x1889')](function(){var _0xba603c=_0x18b431;_0x378518[_0xba603c('0x168c')]=_0x1a23d9(),_0x378518[_0xba603c('0x1fb5')]();}):_0x4ae7cc['userProfile']['getResources']({'id':_0x378518['currentUser'][_0x18b431('0x2168')],'section':'QueueCampaigns','channel':'voice','type':_0x18b431('0x19d1'),'sort':_0x18b431('0xd82'),'nolimit':!![]})[_0x18b431('0x1dc2')][_0x18b431('0xaa5')](function(_0x37be10){var _0x302e6b=_0x18b431;_0x378518[_0x302e6b('0x4d7')]=_0x37be10||{'count':0x0,'rows':[]},_0x378518['queuesMap']=_0x51538b()[_0x302e6b('0xb6f')](_0x51538b()['keyBy'](_0x378518['queues'][_0x302e6b('0x580')],_0x302e6b('0x25d6')),_0x302e6b('0x25d6'));})[_0x18b431('0x253d')](function(_0x5d8e08){var _0x3820d6=_0x18b431;console[_0x3820d6('0x187f')](_0x5d8e08);})[_0x18b431('0x1889')](function(){var _0x1f7ad1=_0x18b431;_0x378518[_0x1f7ad1('0x168c')]=_0x1a23d9(),_0x378518[_0x1f7ad1('0x1fb5')]();});}function _0x1a23d9(){var _0x45cc86=_0x4bbee5;return[{'name':'Start\x20Date','key':_0x45cc86('0x24a1'),'type':_0x45cc86('0xb87'),'label':_0x45cc86('0xf3d')},{'name':_0x45cc86('0x521'),'key':'lastAssignedTo','type':_0x45cc86('0xbff'),'label':_0x45cc86('0x162f'),'options':_0x378518['agents'][_0x45cc86('0x580')],'customOptions':[{'value':'\x27null\x27','translate':_0x45cc86('0x1a1c')},{'value':undefined,'translate':_0x45cc86('0x20c4')}]},{'name':_0x45cc86('0x2038'),'key':_0x45cc86('0xe26'),'type':_0x45cc86('0x2468'),'label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0x378518['queues'][_0x45cc86('0x580')]}];}function _0x12ac04(){var _0x431939=_0x4bbee5;_0x378518[_0x431939('0x6cc')]=![],_0x378518[_0x431939('0x4d7')][_0x431939('0xd15')]>0x0?(_0x378518[_0x431939('0x582')][_0x431939('0xe26')]=_0x378518['queues'][_0x431939('0xd15')]===0x1?_0x378518[_0x431939('0x4d7')][_0x431939('0x580')][0x0][_0x431939('0x25d6')]:_0x378518[_0x431939('0x582')]['queue'],_0x378518[_0x431939('0x582')]['offset']=(_0x378518[_0x431939('0x582')]['page']-0x1)*_0x378518[_0x431939('0x582')][_0x431939('0xf4d')],_0x5c9d5f['localStorage'][_0x431939('0xdbf')](_0x431939('0x15b9')+_0x378518[_0x431939('0x7fc')]['id'],JSON[_0x431939('0xa48')]({'query':_0x51538b()[_0x431939('0x245')](_0x378518['query'],'queue')})),_0x378518[_0x431939('0x159a')]=_0x4ae7cc['voiceQueueReport'][_0x431939('0xc04')](_0x378518[_0x431939('0x582')],_0x45212b)[_0x431939('0x1dc2')]):_0x45212b(null);}function _0x45212b(_0x354ba1){var _0x58fcb0=_0x4bbee5;_0x378518['abandonedCalls']=_0x354ba1||{'count':0x0,'rows':[]},_0x378518[_0x58fcb0('0x6cc')]=!![];}function _0x3ab507(){var _0xb5cecc=_0x4bbee5;_0x378518[_0xb5cecc('0x1d0e')]=![],_0x378518[_0xb5cecc('0x1fb5')]();}function _0x1f3a67(_0x752c96){var _0x5aa5ea=_0x4bbee5,_0x1e7de6='outbound';_0x752c96&&_0x378518[_0x5aa5ea('0x1492')]&&_0x752c96[_0x5aa5ea('0xe26')][_0x5aa5ea('0x6c8')]===_0x1e7de6&&_0x378518[_0x5aa5ea('0x1492')][_0x752c96['queue']]&&(_0x378518[_0x5aa5ea('0x1d0e')]=!![]);}function _0xa50c72(_0x50efff){var _0x1d25a6=_0x4bbee5;if(_0x50efff){var _0x7aee90=_0x51538b()['findIndex'](_0x378518['abandonedCalls'][_0x1d25a6('0x580')],['id',_0x50efff['id']]);_0x7aee90>=0x0&&_0x51538b()[_0x1d25a6('0x283c')](_0x378518[_0x1d25a6('0x5e0')][_0x1d25a6('0x580')][_0x7aee90],_0x50efff);}}function _0x44ae2f(_0x3f736f,_0x588281){var _0x30de0b=_0x4bbee5;_0x3f736f&&_0x4ae7cc[_0x30de0b('0x1ca0')][_0x30de0b('0x264e')]({'id':_0x3f736f['id'],'lastAssignedTo':_0x588281?_0x588281[_0x30de0b('0x25d6')]:null,'assigned':_0x588281?!![]:![]})[_0x30de0b('0x1dc2')]['catch'](function(_0x30ec72){var _0x5a7e0f=_0x30de0b;console[_0x5a7e0f('0x18d5')](_0x30ec72);});}function _0x4b7cc4(_0x3c9d02){var _0x20dabf=_0x4bbee5;_0x30fbf9[_0x20dabf('0x1e6d')]({'controller':_0x20dabf('0x1063'),'controllerAs':'vm','templateUrl':_0x55e904,'parent':angular['element'](_0x30fed7[_0x20dabf('0x54c')]),'targetEvent':_0x3c9d02,'resolve':{'globalDispositions':[_0x20dabf('0x1d16'),function _0x3e38ac(_0xe9728e){var _0x4e2ed0=_0x20dabf;return _0xe9728e[_0x4e2ed0('0x149f')]('disposition@get',{'MailAccountId':_0x4e2ed0('0x1ed9'),'FaxAccountId':_0x4e2ed0('0x1ed9'),'SmsAccountId':_0x4e2ed0('0x1ed9'),'WhatsappAccountId':_0x4e2ed0('0x1ed9'),'OpenchannelAccountId':_0x4e2ed0('0x1ed9'),'ChatWebsiteId':_0x4e2ed0('0x1ed9'),'ListId':_0x4e2ed0('0x1ed9')});}]},'locals':{'dispositions':_0x378518[_0x20dabf('0xa9')],'call':_0x3c9d02}})['then'](function(_0x51c99e){var _0x28e9db=_0x20dabf;if(_0x51c99e){var _0x51541c={'id':_0x3c9d02['id'],'disposition':_0x51c99e[_0x28e9db('0x2e5')]||null,'secondDisposition':_0x51c99e[_0x28e9db('0x1284')]||null,'thirdDisposition':_0x51c99e['thirdLevel']||null};_0x4ae7cc['voiceQueueReport'][_0x28e9db('0x264e')](_0x51541c)['$promise'][_0x28e9db('0x253d')](function(_0x440be9){var _0x1dcc18=_0x28e9db;console[_0x1dcc18('0x18d5')](_0x440be9);});}});}var _0x2d5f78=!![],_0x26b478=0x1;_0x3e1cb2['$watch'](_0x4bbee5('0x1788'),function(_0x5e0bff,_0x54f9f2){var _0x93f4a2=_0x4bbee5;_0x2d5f78?_0x1a13e8(function(){_0x2d5f78=![];}):(!_0x54f9f2&&(_0x26b478=_0x378518[_0x93f4a2('0x582')][_0x93f4a2('0x41')]),_0x5e0bff!==_0x54f9f2&&(_0x378518['query'][_0x93f4a2('0x41')]=0x1),!_0x5e0bff&&(_0x378518[_0x93f4a2('0x582')][_0x93f4a2('0x41')]=_0x26b478),_0x378518[_0x93f4a2('0x1fb5')]());}),_0x3e1cb2['$on'](_0x4bbee5('0x12d0'),function(){var _0xdb5299=_0x4bbee5;_0xbc4a67[_0xdb5299('0x2629')](_0xdb5299('0x164c')),_0xbc4a67[_0xdb5299('0x2629')](_0xdb5299('0x5a1'));});}const _0x5f36ac=_0x27b014;_0x148b86['$inject']=[_0x1a8446('0x51'),'$q',_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x24ea'),'pauses',_0x1a8446('0x1717'),'rpcAgents',_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),_0x1a8446('0x5b4'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'Auth',_0x1a8446('0x1202'),_0x1a8446('0x21b3')];function _0x148b86(_0x2c1ebe,_0x18dc3a,_0x2e2099,_0x4d2470,_0x20628e,_0x2fb08f,_0x225deb,_0x5f4215,_0x4f7781,_0xd1e02b,_0x582ba3,_0x500dc6,_0x469be4,_0x548ced,_0x23d149,_0x1617e5,_0x4818c0,_0x1c9f59){var _0x302580=_0x1a8446,_0x71b156=this,_0x23e743=[_0x302580('0x1af3'),_0x302580('0x175'),'lastLoginAt',_0x302580('0x1ce0'),_0x302580('0x25f0'),'lastPauseAt',_0x302580('0x1b0d'),_0x302580('0xdf8'),_0x302580('0x1f36'),_0x302580('0xc8f'),_0x302580('0x21f'),_0x302580('0x462'),_0x302580('0x231a'),_0x302580('0x135b'),_0x302580('0x2519'),_0x302580('0xe55'),_0x302580('0x1b1c'),_0x302580('0x18d6'),_0x302580('0x26cb'),_0x302580('0xce'),_0x302580('0x6ed'),_0x302580('0x607'),_0x302580('0x275a'),_0x302580('0x24fb'),_0x302580('0x1382'),_0x302580('0x26c8'),_0x302580('0xea8'),_0x302580('0xeb4'),'openchannelStatus','mailStatus',_0x302580('0x24d1'),_0x302580('0x1579'),_0x302580('0x19d2'),'voiceStatus',_0x302580('0x748'),_0x302580('0x26e5'),_0x302580('0xd27'),_0x302580('0x1561'),_0x302580('0x166b'),'faxStatusTime','voiceStatusTime',_0x302580('0xe26'),_0x302580('0x14d3'),_0x302580('0x14c3'),_0x302580('0x1b72'),_0x302580('0x1253')],_0x450472=['chatPause',_0x302580('0xc8f'),'mailPause',_0x302580('0x462'),_0x302580('0x231a'),_0x302580('0x135b'),'voicePause',_0x302580('0x175')];_0x71b156[_0x302580('0x7fc')]=_0x1617e5[_0x302580('0xacc')](),_0x71b156[_0x302580('0x38b')]=[_0x302580('0xb02'),_0x302580('0x1028'),_0x302580('0xa1e'),'onhold',_0x302580('0x2509')],_0x71b156[_0x302580('0x2457')]=_0x225deb||{'count':0x0,'rows':[]},_0x71b156[_0x302580('0x1202')]=_0x4818c0,_0x71b156[_0x302580('0x1e97')]=_0x548ced,_0x71b156[_0x302580('0x1a50')]=_0x23d149&&_0x23d149['count']==0x1?_0x23d149[_0x302580('0x580')][0x0]:null,_0x71b156[_0x302580('0xada')]=_0x1617e5['parseCrudPermissions'](_0x71b156['userProfileSection']?_0x71b156[_0x302580('0x1a50')][_0x302580('0xada')]:null),_0x71b156[_0x302580('0x1717')]=_0x5f4215?_0x51538b()[_0x302580('0x184a')](_0x5f4215[_0x302580('0x580')]?_0x5f4215['rows']:[],'id'):{},_0x71b156[_0x302580('0x1f1d')]=_0x4f7781?_0x51538b()['keyBy'](_0x4f7781[_0x302580('0x580')]?_0x4f7781[_0x302580('0x580')]:[],'id'):{},_0x71b156[_0x302580('0xd28')]={},_0x71b156[_0x302580('0x259c')]=![],_0x71b156[_0x302580('0x1536')]=[],_0x71b156[_0x302580('0x21f2')]={};for(var _0x421711 in _0x71b156[_0x302580('0x1717')]){typeof _0x71b156[_0x302580('0x1717')][_0x421711]!==_0x302580('0x1574')&&(_0x71b156[_0x302580('0x1717')][_0x421711][_0x302580('0x2e')]=!![]);}_0x71b156[_0x302580('0x582')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x71b156[_0x302580('0x1bc9')]=_0x215736,_0x71b156[_0x302580('0x1931')]=_0x255129,_0x71b156['pause']=_0x397de9,_0x71b156[_0x302580('0x15e8')]=_0x14fd2e,_0x71b156['showInfo']=_0xf61899,_0x71b156[_0x302580('0xf42')]=_0x43b202,_0x71b156[_0x302580('0x1b')]=_0x9e74f8,_0x71b156[_0x302580('0x11c')]=_0x3370bf,_0x71b156[_0x302580('0x2608')]=_0x10079c,_0x71b156[_0x302580('0x1592')]=_0x230074,_0x71b156[_0x302580('0x1a4b')]=_0x1959a,_0x71b156['onUpdate']=_0x314c9d,_0x71b156[_0x302580('0x2318')]=_0x4eff9c,_0x71b156[_0x302580('0xe9b')]=_0x575826,_0x71b156['onComplete']=_0x1998bb,_0x71b156['screenRecording']=_0x565333,_0x582ba3['on']('user:save',_0x71b156[_0x302580('0x1a4b')]),_0x582ba3['on'](_0x302580('0x15fb'),_0x71b156[_0x302580('0x4f1')]),_0x582ba3['on']('user:agentconnect',_0x71b156[_0x302580('0xe9b')]),_0x582ba3['on'](_0x302580('0x2728'),_0x71b156[_0x302580('0xd53')]),_0x4eff9c();var _0x45ee14=_0x1c9f59(function(){var _0x4e73d6=_0x302580;_0x71b156[_0x4e73d6('0x259c')]&&(_0x71b156[_0x4e73d6('0x259c')]=![],_0x4eff9c());},0x3e7);function _0x4eff9c(){var _0x410a69=_0x302580;_0x71b156[_0x410a69('0x259c')]=![];var _0x3cb02f=_0x18dc3a[_0x410a69('0x213b')]();_0x71b156[_0x410a69('0x159a')]=_0x3cb02f[_0x410a69('0x159a')],_0x71b156['filteredAgents']=[],_0x71b156[_0x410a69('0x1536')]=[],_0x51538b()[_0x410a69('0x143e')](_0x71b156[_0x410a69('0x1717')],function(_0x340286,_0x4c3285){var _0x25863a=_0x410a69;_0x71b156[_0x25863a('0x1f1d')][_0x4c3285]&&_0x51538b()[_0x25863a('0x283c')](_0x340286,_0x51538b()[_0x25863a('0x104e')](_0x51538b()[_0x25863a('0x245')](_0x71b156[_0x25863a('0x1f1d')][_0x4c3285],_0x450472),_0x23e743)),_0x9e74f8(_0x340286),_0x340286['online']?(_0x71b156[_0x25863a('0x1d77')][_0x25863a('0x1599')](_0x340286),_0x71b156[_0x25863a('0x21f2')][_0x340286[_0x25863a('0x1b0d')]]=_0x4c3285):_0x340286[_0x25863a('0x920')]=_0x51538b()[_0x25863a('0x228e')](_0x420d43()()['format']('x'));});_0x71b156[_0x410a69('0x582')]['globalStatusFilter']&&_0x51538b()[_0x410a69('0xf6d')](_0x71b156[_0x410a69('0x1d77')],function(_0x1f73e7){var _0x16ff11=_0x410a69;return _0x1f73e7['globalStatus']!==_0x71b156[_0x16ff11('0x582')][_0x16ff11('0x107')];});_0x71b156[_0x410a69('0x582')][_0x410a69('0x1bfd')]&&_0x51538b()[_0x410a69('0xf6d')](_0x71b156[_0x410a69('0x1d77')],function(_0x114d6d){var _0x21cbb5=_0x410a69;return _0x114d6d[_0x21cbb5('0x25f0')]!==_0x71b156[_0x21cbb5('0x582')][_0x21cbb5('0x1bfd')];});_0x71b156['query']['filter']&&_0x51538b()[_0x410a69('0xf6d')](_0x71b156[_0x410a69('0x1d77')],function(_0x58c5ac){var _0x9f2ab1=_0x410a69;return _0x58c5ac[_0x9f2ab1('0x18e5')][_0x9f2ab1('0xcf6')]()['indexOf'](_0x71b156[_0x9f2ab1('0x582')]['filter'][_0x9f2ab1('0xcf6')]())<0x0;});_0x71b156['filteredAgents']=_0x405685(_0x71b156[_0x410a69('0x1d77')]);var _0x4c5c71=(_0x71b156[_0x410a69('0x582')]['page']-0x1)*_0x71b156[_0x410a69('0x582')][_0x410a69('0xf4d')];_0x71b156[_0x410a69('0xd28')]=_0x51538b()['drop'](_0x71b156['filteredAgents'],_0x4c5c71)[_0x410a69('0x19aa')](0x0,_0x71b156['query'][_0x410a69('0xf4d')]);for(var _0x1dc4d6=0x0;_0x1dc4d6<_0x71b156['paginatedAgents'][_0x410a69('0x2587')];_0x1dc4d6+=0x1){_0x71b156[_0x410a69('0x1536')][_0x410a69('0x1599')](_0x71b156[_0x410a69('0xd28')][_0x1dc4d6]['id']);}_0x3cb02f[_0x410a69('0x149f')](),_0x71b156[_0x410a69('0x259c')]=!![];}function _0x1959a(_0x4a1deb){var _0x1e24b8=_0x302580;_0x71b156[_0x1e24b8('0x1717')][_0x4a1deb['id']]&&(_0x51538b()[_0x1e24b8('0x283c')](_0x71b156[_0x1e24b8('0x1717')][_0x4a1deb['id']],_0x51538b()[_0x1e24b8('0x104e')](_0x51538b()[_0x1e24b8('0x245')](_0x4a1deb,_0x450472),_0x23e743)),_0x51538b()[_0x1e24b8('0x283c')](_0x71b156['rpcAgents'][_0x4a1deb['id']],_0x51538b()[_0x1e24b8('0x104e')](_0x51538b()[_0x1e24b8('0x245')](_0x4a1deb,_0x450472),_0x23e743)),_0x9e74f8(_0x71b156[_0x1e24b8('0x1717')][_0x4a1deb['id']]));}function _0x314c9d(_0x4724f7){var _0x3bffb7=_0x302580;_0x71b156['agents'][_0x4724f7['id']]&&(_0x51538b()['merge'](_0x71b156[_0x3bffb7('0x1717')][_0x4724f7['id']],_0x51538b()['pick'](_0x4724f7,_0x23e743)),_0x51538b()[_0x3bffb7('0x283c')](_0x71b156[_0x3bffb7('0x1f1d')][_0x4724f7['id']],_0x51538b()[_0x3bffb7('0x104e')](_0x4724f7,_0x23e743)),_0x4724f7[_0x3bffb7('0x1ce0')]&&(_0x71b156[_0x3bffb7('0x1717')][_0x4724f7['id']]['globalStatusTime']=_0x4724f7[_0x3bffb7('0x1ce0')],_0x71b156[_0x3bffb7('0x1f1d')][_0x4724f7['id']][_0x3bffb7('0x920')]=_0x4724f7[_0x3bffb7('0x1ce0')]),_0x9e74f8(_0x71b156[_0x3bffb7('0x1717')][_0x4724f7['id']]));}function _0x575826(_0x4ecd05){var _0x2a3769=_0x302580;_0x71b156[_0x2a3769('0x1717')][_0x71b156[_0x2a3769('0x21f2')][_0x4ecd05[_0x2a3769('0x2525')]]]&&(_0x51538b()[_0x2a3769('0x283c')](_0x71b156[_0x2a3769('0x1717')][_0x71b156[_0x2a3769('0x21f2')][_0x4ecd05[_0x2a3769('0x2525')]]],_0x51538b()['pick'](_0x4ecd05,[_0x2a3769('0xe26'),_0x2a3769('0x14d3')])),_0x51538b()[_0x2a3769('0x283c')](_0x71b156[_0x2a3769('0x1f1d')][_0x71b156[_0x2a3769('0x21f2')][_0x4ecd05[_0x2a3769('0x2525')]]],_0x51538b()[_0x2a3769('0x104e')](_0x4ecd05,['queue',_0x2a3769('0x14d3')])));}function _0x1998bb(_0x42e813){var _0xa293d6=_0x302580;_0x71b156[_0xa293d6('0x1717')][_0x71b156['agentInternal'][_0x42e813[_0xa293d6('0x2525')]]]&&(_0x71b156[_0xa293d6('0x1717')][_0x71b156[_0xa293d6('0x21f2')][_0x42e813[_0xa293d6('0x2525')]]]=_0x51538b()['omit'](_0x71b156[_0xa293d6('0x1717')][_0x71b156[_0xa293d6('0x21f2')][_0x42e813['destaccountcode']]],[_0xa293d6('0xe26'),_0xa293d6('0x14d3')]),_0x71b156[_0xa293d6('0x1f1d')][_0x71b156[_0xa293d6('0x21f2')][_0x42e813['destaccountcode']]]=_0x51538b()[_0xa293d6('0x245')](_0x71b156['rpcAgents'][_0x71b156[_0xa293d6('0x21f2')][_0x42e813[_0xa293d6('0x2525')]]],[_0xa293d6('0xe26'),_0xa293d6('0x14d3')]));}function _0x215736(_0x45dd97){var _0x1515b7=_0x302580;return _0xd1e02b[_0x1515b7('0x272b')][_0x1515b7('0x1bc9')]({'id':_0x45dd97['id'],'device':_0x1515b7('0x4f3'),'agent_id':_0x45dd97['id'],'agent_name':_0x45dd97['name']})[_0x1515b7('0x1dc2')][_0x1515b7('0xaa5')](function(){var _0x2382ac=_0x1515b7;_0x500dc6[_0x2382ac('0xe10')]({'title':'Agent\x20logout','msg':_0x45dd97[_0x2382ac('0x18e5')]+_0x2382ac('0x2039')}),_0x71b156['agents'][_0x45dd97['id']]&&(_0x71b156[_0x2382ac('0x1717')][_0x45dd97['id']][_0x2382ac('0x175')]=![]),_0x71b156[_0x2382ac('0x1f1d')][_0x45dd97['id']]&&(_0x71b156[_0x2382ac('0x1f1d')][_0x45dd97['id']][_0x2382ac('0x175')]=![]),_0x4eff9c();})[_0x1515b7('0x253d')](function(_0x5a2a4c){var _0x419b42=_0x1515b7;_0x500dc6['error']({'title':_0x5a2a4c[_0x419b42('0x2fa')]?_0x419b42('0x16c2')+_0x5a2a4c[_0x419b42('0x2fa')]+_0x419b42('0x169e')+_0x5a2a4c[_0x419b42('0x24df')]:_0x419b42('0xb8c'),'msg':_0x5a2a4c[_0x419b42('0x10fd')]?JSON['stringify'](_0x5a2a4c['data'][_0x419b42('0x1402')]):_0x5a2a4c[_0x419b42('0x684')]()});});}function _0x397de9(_0x4783fb,_0x53b9b1){var _0x1bdb54=_0x302580;return _0xd1e02b[_0x1bdb54('0x272b')][_0x1bdb54('0x167c')]({'id':_0x4783fb['id'],'type':_0x53b9b1})[_0x1bdb54('0x1dc2')]['then'](function(_0x32eba8){var _0x3a4aea=_0x1bdb54;_0x71b156[_0x3a4aea('0x1717')][_0x4783fb['id']]&&_0x51538b()[_0x3a4aea('0x283c')](_0x71b156[_0x3a4aea('0x1717')][_0x4783fb['id']],_0x51538b()[_0x3a4aea('0x104e')](_0x32eba8,_0x23e743)),_0x71b156[_0x3a4aea('0x1f1d')][_0x4783fb['id']]&&_0x51538b()[_0x3a4aea('0x283c')](_0x71b156[_0x3a4aea('0x1f1d')][_0x4783fb['id']],_0x51538b()[_0x3a4aea('0x104e')](_0x32eba8,_0x23e743)),_0x9e74f8(_0x71b156[_0x3a4aea('0x1717')][_0x4783fb['id']]);})[_0x1bdb54('0x253d')](function(_0x688a16){var _0x296496=_0x1bdb54;_0x500dc6[_0x296496('0x187f')]({'title':_0x688a16[_0x296496('0x2fa')]?_0x296496('0x16c2')+_0x688a16['status']+_0x296496('0x169e')+_0x688a16['statusText']:'api.staff.save','msg':_0x688a16[_0x296496('0x10fd')]?JSON[_0x296496('0xa48')](_0x688a16['data'][_0x296496('0x1402')]):_0x688a16[_0x296496('0x684')]()});});}function _0x14fd2e(_0x202be8){var _0x26c728=_0x302580;return _0xd1e02b[_0x26c728('0x272b')][_0x26c728('0x297')]({'id':_0x202be8['id']})[_0x26c728('0x1dc2')][_0x26c728('0xaa5')](function(_0x473641){var _0x12decb=_0x26c728;_0x71b156['agents'][_0x202be8['id']]&&_0x51538b()[_0x12decb('0x283c')](_0x71b156[_0x12decb('0x1717')][_0x202be8['id']],_0x51538b()['pick'](_0x473641,_0x23e743)),_0x71b156['rpcAgents'][_0x202be8['id']]&&_0x51538b()[_0x12decb('0x283c')](_0x71b156[_0x12decb('0x1f1d')][_0x202be8['id']],_0x51538b()[_0x12decb('0x104e')](_0x473641,_0x23e743)),_0x9e74f8(_0x71b156[_0x12decb('0x1717')][_0x202be8['id']]);})[_0x26c728('0x253d')](function(_0x1a93d1){var _0x419d0a=_0x26c728;_0x500dc6[_0x419d0a('0x187f')]({'title':_0x1a93d1['status']?_0x419d0a('0x16c2')+_0x1a93d1[_0x419d0a('0x2fa')]+_0x419d0a('0x169e')+_0x1a93d1['statusText']:_0x419d0a('0xb8c'),'msg':_0x1a93d1[_0x419d0a('0x10fd')]?JSON['stringify'](_0x1a93d1[_0x419d0a('0x10fd')]['message']):_0x1a93d1[_0x419d0a('0x684')]()});});}function _0xf61899(_0x463471){var _0x25f207=_0x302580;_0x4d2470[_0x25f207('0x1e6d')](_0x4d2470[_0x25f207('0xc10')]()[_0x25f207('0x22b9')](!![])[_0x25f207('0x110a')]('Legend')[_0x25f207('0x102e')](_0x25f207('0x9b3'))['ok']('Ok')[_0x25f207('0x116d')](_0x463471));}function _0x255129(_0x18e91e,_0x2dfa78){var _0x3290d9=_0x302580;_0x4d2470[_0x3290d9('0x1e6d')]({'controller':_0x3290d9('0x1200'),'controllerAs':'vm','templateUrl':_0x3a2df9,'parent':angular['element'](_0x20628e[_0x3290d9('0x54c')]),'targetEvent':_0x2dfa78,'clickOutsideToClose':!![],'locals':{'agent':_0x18e91e,'agents':[],'channel':_0x3290d9('0x1b9'),'direction':'outbound','crudPermissions':_0x71b156[_0x3290d9('0xada')]}});}function _0x3370bf(_0x2ecae6){var _0x839941=_0x302580;return _0x2ecae6===_0x839941('0x167c')||_0x2ecae6==='*pause';}function _0x10079c(_0x283f8f){var _0x3f8c67=_0x302580;return _0x283f8f===_0x3f8c67('0x167c');}function _0x230074(_0x54045b){var _0x48d051=_0x302580;return _0x54045b===_0x48d051('0xa7d');}function _0xeb0b36(_0x4fa36b){var _0xee8a41=_0x302580;return _0x4fa36b===_0xee8a41('0x135e')||_0x4fa36b===_0xee8a41('0x15fd')||_0x4fa36b===_0xee8a41('0x2296')||_0x4fa36b==='ringing'||_0x51538b()[_0xee8a41('0x89a')](_0x4fa36b);}function _0x43b202(_0x36a150,_0x2ab7ef){var _0x3d8bad=_0x302580;if(_0x2ab7ef===_0x3d8bad('0x1b9')){if(_0x36a150[_0x2ab7ef+_0x3d8bad('0x26ae')]!==_0x3d8bad('0x135e'))return _0x36a150[_0x2ab7ef+_0x3d8bad('0x26ae')];if(_0x36a150[_0x2ab7ef+_0x3d8bad('0x1bcd')])return _0x36a150[_0x2ab7ef+_0x3d8bad('0x26ae')]=_0x3d8bad('0x167c'),'pause';return _0x3d8bad('0x135e');}else{if(_0x36a150[_0x2ab7ef+_0x3d8bad('0x1bcd')])return _0x36a150[_0x2ab7ef+_0x3d8bad('0x26ae')]=_0x3d8bad('0x167c'),'pause';return _0x36a150[_0x2ab7ef+_0x3d8bad('0x26ae')];}}function _0x9e74f8(_0xc22af4){var _0x2de842=_0x302580,_0x232b7d=_0x2de842('0x15fd');if(_0x51538b()[_0x2de842('0x2ed')]([_0x43b202(_0xc22af4,'voice'),_0x43b202(_0xc22af4,_0x2de842('0x20f9')),_0x43b202(_0xc22af4,_0x2de842('0x14c5')),_0x43b202(_0xc22af4,_0x2de842('0x170')),_0x43b202(_0xc22af4,_0x2de842('0x18da')),_0x43b202(_0xc22af4,'whatsapp'),_0x43b202(_0xc22af4,'fax')],_0x3370bf))_0x232b7d=_0x2de842('0x167c');else{if(_0x51538b()[_0x2de842('0x2c2')]([_0x43b202(_0xc22af4,_0x2de842('0x1b9')),_0x43b202(_0xc22af4,_0x2de842('0x20f9')),_0x43b202(_0xc22af4,_0x2de842('0x14c5')),_0x43b202(_0xc22af4,'openchannel'),_0x43b202(_0xc22af4,_0x2de842('0x18da')),_0x43b202(_0xc22af4,_0x2de842('0x220d')),_0x43b202(_0xc22af4,'fax')],_0x3370bf))_0x232b7d=_0x2de842('0xa7d');else _0x51538b()[_0x2de842('0x2ed')]([_0x43b202(_0xc22af4,_0x2de842('0x1b9')),_0x43b202(_0xc22af4,_0x2de842('0x20f9')),_0x43b202(_0xc22af4,_0x2de842('0x14c5')),_0x43b202(_0xc22af4,_0x2de842('0x170')),_0x43b202(_0xc22af4,'sms'),_0x43b202(_0xc22af4,_0x2de842('0x220d')),_0x43b202(_0xc22af4,_0x2de842('0x16c4'))],_0xeb0b36)?_0x232b7d='idle':_0x232b7d='busy';}_0xc22af4[_0x2de842('0x151c')]!==_0x232b7d&&(_0xc22af4['globalStatus']=_0x232b7d,_0xc22af4['init']?(_0xc22af4[_0x2de842('0x2e')]=![],_0xc22af4[_0x2de842('0x920')]=_0x3370bf(_0x232b7d)?_0x51538b()[_0x2de842('0x228e')](_0x420d43()(_0xc22af4[_0x2de842('0x1ce0')])[_0x2de842('0x1f27')]('x')):_0x51538b()[_0x2de842('0x4c2')]([_0xc22af4[_0x2de842('0x1ddc')],_0xc22af4[_0x2de842('0x748')],_0xc22af4[_0x2de842('0xd27')],_0xc22af4[_0x2de842('0x1561')],_0xc22af4[_0x2de842('0x166b')],_0xc22af4[_0x2de842('0x26e5')],_0xc22af4['faxStatusTime']])):_0xc22af4[_0x2de842('0x920')]=_0x51538b()[_0x2de842('0x228e')](_0x420d43()()['format']('x')));}function _0x405685(_0x24a838){var _0x2a937d=_0x302580,_0x142983=_0x51538b()['startsWith'](_0x71b156['query'][_0x2a937d('0x1536')],'-')?_0x2a937d('0x71c'):'asc';return _0x51538b()[_0x2a937d('0x271d')](_0x24a838,[_0x71b156['query'][_0x2a937d('0x1536')][_0x2a937d('0x170d')]('-','')],[_0x142983]);}function _0x164c36(){var _0x40b491=_0x302580;_0x45ee14&&(_0x1c9f59[_0x40b491('0x2030')](_0x45ee14),_0x45ee14=null);}function _0x565333(_0x3ee6d5,_0x15c36e){var _0x23d908=_0x302580;return _0xd1e02b[_0x23d908('0x272b')][_0x23d908('0x264e')]({'id':_0x3ee6d5['id']},{'screenrecording':_0x15c36e})['$promise'][_0x23d908('0x253d')](function(_0xf33453){var _0x33a8ea=_0x23d908;_0x500dc6[_0x33a8ea('0x187f')]({'title':_0xf33453['status']?_0x33a8ea('0x16c2')+_0xf33453[_0x33a8ea('0x2fa')]+'\x20-\x20'+_0xf33453[_0x33a8ea('0x24df')]:'api.user.update','msg':_0xf33453[_0x33a8ea('0x10fd')]?JSON['stringify'](_0xf33453[_0x33a8ea('0x10fd')]['message']):_0xf33453['toString']()});});}_0x2c1ebe['$on'](_0x302580('0x12d0'),function(){var _0x3ff445=_0x302580;_0x582ba3[_0x3ff445('0x2629')]('user:save'),_0x582ba3[_0x3ff445('0x2629')](_0x3ff445('0x15fb')),_0x582ba3[_0x3ff445('0x2629')](_0x3ff445('0x25ea')),_0x582ba3[_0x3ff445('0x2629')]('user:agentcomplete'),_0x164c36();});}const _0x372e2c=_0x148b86,_0x3f9737=_0x4fb511['p']+_0x1a8446('0xd85');_0x286561[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x21b3'),'rpcCampaigns',_0x1a8446('0x180b'),_0x1a8446('0x157'),'socket','userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x286561(_0x168e27,_0x5940c4,_0x3974bf,_0x323eab,_0x4a7f5b,_0x183ccf,_0x5a4269,_0x39159d,_0x549c45,_0x51f960,_0x49fa57,_0x4aba92){var _0x45343b=_0x1a8446,_0x43b437=this,_0x111b99=[_0x45343b('0x25d6'),'active',_0x45343b('0x1bdb'),'message',_0x45343b('0x301'),_0x45343b('0x1f8c'),_0x45343b('0x4da'),_0x45343b('0x4a6'),'TrunkId',_0x45343b('0x1ac'),_0x45343b('0x25a5'),_0x45343b('0x1ef9'),_0x45343b('0x23d0')];_0x43b437[_0x45343b('0x7fc')]=_0x4aba92[_0x45343b('0xacc')](),_0x43b437[_0x45343b('0xd15')]=_0x5a4269[_0x45343b('0xd15')],_0x43b437[_0x45343b('0x180b')]=_0x5a4269?_0x51538b()['keyBy'](_0x5a4269[_0x45343b('0x580')]?_0x5a4269['rows']:[],'id'):{},_0x43b437['rpcCampaigns']=_0x183ccf?_0x51538b()['keyBy'](_0x183ccf[_0x45343b('0x580')]?_0x183ccf['rows']:[],'id'):{},_0x43b437['userProfile']=_0x51f960,_0x43b437['userProfileSection']=_0x49fa57&&_0x49fa57['count']==0x1?_0x49fa57['rows'][0x0]:null,_0x43b437[_0x45343b('0xada')]=_0x4aba92[_0x45343b('0xffd')](_0x43b437['userProfileSection']?_0x43b437[_0x45343b('0x1a50')]['crudPermissions']:null),_0x43b437[_0x45343b('0x582')]={'sort':_0x45343b('0xd82'),'limit':0xa,'page':0x1},_0x43b437[_0x45343b('0xe10')]=_0x6e3f15,_0x43b437[_0x45343b('0x1d56')]=_0xf6d41e,_0x43b437[_0x45343b('0x1a4b')]=_0x47792f,_0x43b437[_0x45343b('0x141')]=_0x573b81,_0x43b437[_0x45343b('0x1e15')]=_0x48648b,_0x549c45[_0x45343b('0xa84')](_0x45343b('0x2637'),_0x43b437['onSave']),_0x43b437[_0x45343b('0x1c21')]=_0x4a7f5b(function(){},0x3e7);function _0x573b81(){var _0x440040=_0x45343b;_0x51538b()[_0x440040('0x143e')](_0x43b437[_0x440040('0x180b')],function(_0x47b9c0,_0x54d087){var _0x39c544=_0x440040;_0x43b437[_0x39c544('0x1436')][_0x54d087]&&_0x51538b()['merge'](_0x47b9c0,_0x51538b()[_0x39c544('0x104e')](_0x43b437[_0x39c544('0x1436')][_0x54d087],_0x111b99));});}function _0x47792f(_0x48ab26){var _0x1f49b1=_0x45343b;_0x43b437['campaigns'][_0x48ab26['id']]&&(_0x51538b()[_0x1f49b1('0x283c')](_0x43b437['campaigns'][_0x48ab26['id']],_0x51538b()[_0x1f49b1('0x104e')](_0x48ab26,_0x111b99)),_0x51538b()[_0x1f49b1('0x283c')](_0x43b437[_0x1f49b1('0x1436')][_0x48ab26['id']],_0x51538b()[_0x1f49b1('0x104e')](_0x48ab26,_0x111b99)));}var _0x1c3a79=!![],_0x491acb=0x1;_0x168e27[_0x45343b('0x1ccf')](_0x45343b('0x1788'),function(_0xb3ea63,_0x343f40){var _0xc43a10=_0x45343b;_0x1c3a79?_0x5940c4(function(){_0x1c3a79=![];}):(!_0x343f40&&(_0x491acb=_0x43b437[_0xc43a10('0x582')][_0xc43a10('0x41')]),_0xb3ea63!==_0x343f40&&(_0x43b437[_0xc43a10('0x582')][_0xc43a10('0x41')]=0x1),!_0xb3ea63&&(_0x43b437[_0xc43a10('0x582')][_0xc43a10('0x41')]=_0x491acb),_0x43b437['getCampaigns']());});function _0x6e3f15(_0x3d10bb){var _0x2ee58d=_0x45343b;_0x43b437[_0x2ee58d('0xd15')]=_0x3d10bb['count'],_0x43b437[_0x2ee58d('0x180b')]=_0x3d10bb?_0x51538b()[_0x2ee58d('0x184a')](_0x3d10bb[_0x2ee58d('0x580')]?_0x3d10bb[_0x2ee58d('0x580')]:[],'id'):{},_0x573b81();}function _0xf6d41e(){var _0x46effa=_0x45343b;_0x43b437['query'][_0x46effa('0x8b1')]=(_0x43b437[_0x46effa('0x582')]['page']-0x1)*_0x43b437['query'][_0x46effa('0xf4d')],_0x4aba92[_0x46effa('0x26e8')](_0x46effa('0x178b'))?_0x43b437[_0x46effa('0x159a')]=_0x39159d['campaign']['get'](_0x43b437[_0x46effa('0x582')],_0x6e3f15)[_0x46effa('0x1dc2')]:(_0x43b437['query']['id']=_0x43b437[_0x46effa('0x1e97')]['id'],_0x43b437['query'][_0x46effa('0x224d')]=_0x46effa('0x1a93'),_0x43b437['promise']=_0x39159d[_0x46effa('0x1e97')][_0x46effa('0x1cf1')](_0x43b437['query'],_0x6e3f15)['$promise']);}function _0x48648b(_0x94c5d8,_0x1a877a){var _0x44cb6f=_0x45343b;_0x3974bf[_0x44cb6f('0x1e6d')]({'controller':'CreateOrEditIvrCampaignDialogController','controllerAs':'vm','templateUrl':_0x3f9737,'parent':angular[_0x44cb6f('0x1aa8')](_0x323eab[_0x44cb6f('0x54c')]),'targetEvent':_0x94c5d8,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x1a877a,'ivrCampaigns':_0x51538b()['values'](_0x43b437[_0x44cb6f('0x180b')]),'license':null,'setting':null,'crudPermissions':_0x43b437[_0x44cb6f('0xada')]}});}_0x168e27[_0x45343b('0xc75')](_0x45343b('0x12d0'),function(){var _0x4cd9aa=_0x45343b;_0x549c45[_0x4cd9aa('0x2629')]('campaign:save'),_0x43b437[_0x4cd9aa('0x1c21')]&&_0x4a7f5b['cancel'](_0x43b437[_0x4cd9aa('0x1c21')]);});}const _0x29d185=_0x286561;_0xa58f7f['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x1717'),'queues','rpcVoiceQueuesChannels','api','socket',_0x1a8446('0x5b4'),'toasty',_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0xa58f7f(_0x5dcee9,_0x2410c3,_0x2fce2a,_0xbb562c,_0x432136,_0x5c5f01,_0x43c917,_0x15e6ce,_0x4871ac,_0x4e568d,_0x4dca39,_0x460074,_0x256f2d){var _0x242503=_0x1a8446,_0x390a6a=this;_0x390a6a[_0x242503('0x7fc')]=_0x256f2d[_0x242503('0xacc')](),_0x390a6a[_0x242503('0x1717')]=_0xbb562c||{'count':0x0,'rows':[]},_0x390a6a[_0x242503('0x4d7')]=_0x432136?_0x51538b()[_0x242503('0x184a')](_0x432136[_0x242503('0x580')]?_0x432136[_0x242503('0x580')]:[],'name'):{},_0x390a6a[_0x242503('0x20f0')]=_0x5c5f01?_0x51538b()[_0x242503('0x184a')](_0x5c5f01[_0x242503('0x580')]?_0x51538b()[_0x242503('0xdb7')](_0x5c5f01['rows'],{'type':'outbound'}):[],_0x242503('0x1a6')):{},_0x390a6a[_0x242503('0x2705')]={},_0x390a6a[_0x242503('0x1e97')]=_0x4dca39,_0x390a6a[_0x242503('0x1a50')]=_0x460074&&_0x460074['count']==0x1?_0x460074[_0x242503('0x580')][0x0]:null,_0x390a6a[_0x242503('0xada')]=_0x256f2d[_0x242503('0xffd')](_0x390a6a[_0x242503('0x1a50')]?_0x390a6a[_0x242503('0x1a50')][_0x242503('0xada')]:null),_0x390a6a[_0x242503('0x1b74')]={'limit':0xa,'page':0x1},_0x390a6a['getSize']=_0x3e16fd,_0x390a6a[_0x242503('0x141')]=_0x1ab667,_0x390a6a[_0x242503('0x1a4b')]=_0x324db0,_0x390a6a[_0x242503('0xc96')]=_0x53d1b3,_0x390a6a[_0x242503('0x1fef')]=_0x326bc9,_0x390a6a[_0x242503('0x24f1')]=_0x71bbb0,_0x390a6a[_0x242503('0x18f')]=_0x2c91ad,_0x15e6ce['on']('voice_queue_channel:save',_0x390a6a[_0x242503('0x1a4b')]),_0x15e6ce['on'](_0x242503('0x4d3'),_0x390a6a[_0x242503('0xc96')]);function _0x3e16fd(_0x217c04){var _0x342b17=_0x242503;return _0x51538b()[_0x342b17('0x9f9')](_0x217c04);}function _0x1ab667(){var _0x20a755=_0x242503;_0x51538b()['forIn'](_0x390a6a[_0x20a755('0x20f0')],function(_0x156745,_0x4a369b){var _0x49d704=_0x20a755;_0x51538b()['find'](_0x390a6a[_0x49d704('0x4d7')],{'name':_0x156745['name']})&&(_0x390a6a[_0x49d704('0x2705')][_0x4a369b]=_0x156745);});}function _0x324db0(_0x28922b){var _0x17de94=_0x242503;_0x28922b[_0x17de94('0x6c8')]==='outbound'&&(_0x51538b()['find'](_0x390a6a[_0x17de94('0x4d7')],{'name':_0x28922b[_0x17de94('0x25d6')]})&&(_0x390a6a[_0x17de94('0x2705')][_0x28922b[_0x17de94('0x1a6')]]=_0x28922b));}function _0x53d1b3(_0x22990a){var _0x24dfad=_0x242503;_0x390a6a[_0x24dfad('0x2705')][_0x22990a[_0x24dfad('0x1a6')]]&&delete _0x390a6a[_0x24dfad('0x2705')][_0x22990a['uniqueid']];}function _0x326bc9(_0xf263fa){var _0x25281d=_0x242503;return _0x43c917[_0x25281d('0xb5d')][_0x25281d('0x209d')]({'uniqueid':_0xf263fa})['$promise'][_0x25281d('0xaa5')](function(_0x150bba){var _0x25f5be=_0x25281d;_0x4e568d[_0x25f5be('0xe10')]({'title':_0x25f5be('0x239b')+_0xf263fa+_0x25f5be('0x10b0'),'msg':_0x150bba[_0x25f5be('0x1402')]||''});})[_0x25281d('0x253d')](function(_0x1564c0){var _0x40964a=_0x25281d;_0x4e568d['error']({'title':_0x1564c0[_0x40964a('0x2fa')]+_0x40964a('0x169e')+_0x1564c0[_0x40964a('0x24df')],'msg':JSON[_0x40964a('0xa48')](_0x1564c0['data'])||_0x1564c0[_0x40964a('0x1402')]['join']('\x20')});});}function _0x71bbb0(_0x4f8c79,_0x5067d1,_0x229c06){var _0x373b06=_0x242503;return _0x43c917[_0x373b06('0xb5d')][_0x373b06('0x5d0')]({'uniqueid':_0x4f8c79,'exten':_0x5067d1,'context':_0x229c06})['$promise']['then'](function(_0x3840bd){var _0x494452=_0x373b06;_0x4e568d[_0x494452('0xe10')]({'title':_0x494452('0x239b')+_0x4f8c79+_0x494452('0xc3'),'msg':_0x3840bd[_0x494452('0x1402')]||''});})['catch'](function(_0x2c0f4b){var _0x36e1f3=_0x373b06;_0x4e568d['error']({'title':_0x2c0f4b[_0x36e1f3('0x2fa')]+_0x36e1f3('0x169e')+_0x2c0f4b[_0x36e1f3('0x24df')],'msg':JSON[_0x36e1f3('0xa48')](_0x2c0f4b[_0x36e1f3('0x10fd')])||_0x2c0f4b[_0x36e1f3('0x1402')][_0x36e1f3('0x19c4')]('\x20')});});}function _0x2c91ad(_0x4f1f8e,_0x157ce2){var _0x537665=_0x242503,_0x1a1265=_0x2fce2a[_0x537665('0x19b8')]()[_0x537665('0x110a')](_0x537665('0x4d6'))['placeholder']('Number')[_0x537665('0x116d')](_0x4f1f8e)['ok']('Ok')[_0x537665('0x2030')](_0x537665('0x9c6'));return _0x2fce2a['show'](_0x1a1265)[_0x537665('0xaa5')](function(_0xb4a2d7){var _0x56a5a2=_0x537665;return _0x43c917[_0x56a5a2('0xb5d')][_0x56a5a2('0x5d0')]({'uniqueid':_0x157ce2,'exten':_0xb4a2d7})[_0x56a5a2('0x1dc2')];})[_0x537665('0xaa5')](function(_0x3aa170){var _0xb64bfe=_0x537665;_0x4e568d['success']({'title':'Channel\x20'+_0x157ce2+_0xb64bfe('0xc3'),'msg':_0x3aa170[_0xb64bfe('0x1402')]||''});})[_0x537665('0x253d')](function(_0x5ef543){var _0x4b6140=_0x537665;_0x4e568d[_0x4b6140('0x187f')]({'title':_0x5ef543[_0x4b6140('0x2fa')]+'\x20-\x20'+_0x5ef543[_0x4b6140('0x24df')],'msg':JSON[_0x4b6140('0xa48')](_0x5ef543[_0x4b6140('0x10fd')])||_0x5ef543['message']['join']('\x20')});});}_0x5dcee9[_0x242503('0xc75')](_0x242503('0x12d0'),function(){var _0x24b166=_0x242503;_0x15e6ce['removeAllListeners'](_0x24b166('0xbf1')),_0x15e6ce[_0x24b166('0x2629')](_0x24b166('0x4d3'));});}const _0x11ba31=_0xa58f7f;_0xc750c4[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x21b3'),_0x1a8446('0x4d7'),_0x1a8446('0x1f2f'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0xc750c4(_0x866ca9,_0x470120,_0x3b849e,_0x4c3de5,_0x5b00d9,_0x559227,_0x146790,_0x25dbe1,_0x579edd,_0x11ab8e){var _0x4d429c=_0x1a8446,_0x3f47ed=this,_0x56309d=[_0x4d429c('0x1d71'),'answered',_0x4d429c('0x1ac0'),'sumDuration',_0x4d429c('0xa1c'),'outboundNoAnswerCallsDay','outboundBusyCallsDay',_0x4d429c('0x860'),_0x4d429c('0xfcc'),_0x4d429c('0xafb'),_0x4d429c('0x213c'),_0x4d429c('0x2337'),_0x4d429c('0x1efc'),_0x4d429c('0x26d8'),_0x4d429c('0x1980'),'outboundReCallsDay','outboundRejectCallsDay'];_0x3f47ed['count']=_0x4c3de5[_0x4d429c('0xd15')],_0x3f47ed[_0x4d429c('0x4d7')]=_0x4c3de5?_0x51538b()[_0x4d429c('0x184a')](_0x4c3de5[_0x4d429c('0x580')]?_0x4c3de5['rows']:[],'id'):{},_0x3f47ed[_0x4d429c('0x1f2f')]=_0x5b00d9?_0x51538b()['keyBy'](_0x5b00d9[_0x4d429c('0x580')]?_0x5b00d9[_0x4d429c('0x580')]:[],'id'):{},_0x3f47ed[_0x4d429c('0x1e97')]=_0x25dbe1,_0x3f47ed['userProfileSection']=_0x579edd&&_0x579edd[_0x4d429c('0xd15')]==0x1?_0x579edd[_0x4d429c('0x580')][0x0]:null,_0x3f47ed[_0x4d429c('0xada')]=_0x11ab8e[_0x4d429c('0xffd')](_0x3f47ed[_0x4d429c('0x1a50')]?_0x3f47ed['userProfileSection'][_0x4d429c('0xada')]:null);_0x11ab8e['hasRole']('admin')?_0x3f47ed[_0x4d429c('0x582')]={'type':_0x4d429c('0x19d1'),'fields':_0x4d429c('0x17fe'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x3f47ed[_0x4d429c('0x582')]={'id':_0x11ab8e['getCurrentUser']()['id'],'channel':'voice','type':_0x4d429c('0x19d1'),'fields':_0x4d429c('0x17fe'),'sort':_0x4d429c('0xd82'),'limit':0xa,'page':0x1};_0x3f47ed[_0x4d429c('0xe10')]=_0x4cadc8,_0x3f47ed[_0x4d429c('0x1e87')]=_0x5c1551,_0x3f47ed[_0x4d429c('0x1a4b')]=_0x4bfc69,_0x3f47ed[_0x4d429c('0x141')]=_0x14ae81,_0x146790[_0x4d429c('0xa84')](_0x4d429c('0x46'),_0x3f47ed[_0x4d429c('0x1a4b')]),_0x3f47ed[_0x4d429c('0x1c21')]=_0x3b849e(function(){},0x3e7);function _0x14ae81(){var _0x46dfd4=_0x4d429c;_0x51538b()[_0x46dfd4('0x143e')](_0x3f47ed[_0x46dfd4('0x4d7')],function(_0x185046,_0x33d152){var _0x33e464=_0x46dfd4;_0x3f47ed['rpcQueues'][_0x33d152]&&_0x51538b()[_0x33e464('0x283c')](_0x185046,_0x51538b()[_0x33e464('0x104e')](_0x3f47ed['rpcQueues'][_0x33d152],_0x56309d));});}function _0x4bfc69(_0x4da834){var _0x3669cc=_0x4d429c;_0x3f47ed['queues'][_0x4da834['id']]&&_0x51538b()[_0x3669cc('0x283c')](_0x3f47ed[_0x3669cc('0x4d7')][_0x4da834['id']],_0x51538b()[_0x3669cc('0x104e')](_0x4da834,_0x56309d));}var _0x301670=!![],_0x4b6d1f=0x1;_0x866ca9[_0x4d429c('0x1ccf')]('vm.query.filter',function(_0x2245bf,_0x36386d){var _0x23faf9=_0x4d429c;_0x301670?_0x470120(function(){_0x301670=![];}):(!_0x36386d&&(_0x4b6d1f=_0x3f47ed['query']['page']),_0x2245bf!==_0x36386d&&(_0x3f47ed[_0x23faf9('0x582')][_0x23faf9('0x41')]=0x1),!_0x2245bf&&(_0x3f47ed['query'][_0x23faf9('0x41')]=_0x4b6d1f),_0x3f47ed[_0x23faf9('0x1e87')]());});function _0x4cadc8(_0x36e96d){var _0x2cdffb=_0x4d429c;_0x3f47ed[_0x2cdffb('0xd15')]=_0x36e96d[_0x2cdffb('0xd15')],_0x3f47ed[_0x2cdffb('0x4d7')]=_0x36e96d?_0x51538b()[_0x2cdffb('0x184a')](_0x36e96d[_0x2cdffb('0x580')]?_0x36e96d[_0x2cdffb('0x580')]:[],'id'):{},_0x14ae81();}function _0x5c1551(){var _0x32dffe=_0x4d429c;_0x3f47ed[_0x32dffe('0x582')][_0x32dffe('0x8b1')]=(_0x3f47ed[_0x32dffe('0x582')][_0x32dffe('0x41')]-0x1)*_0x3f47ed['query'][_0x32dffe('0xf4d')],_0x11ab8e[_0x32dffe('0x26e8')](_0x32dffe('0x178b'))?_0x3f47ed[_0x32dffe('0x159a')]=_0x559227['voiceQueue'][_0x32dffe('0x2122')](_0x3f47ed[_0x32dffe('0x582')],_0x4cadc8)[_0x32dffe('0x1dc2')]:(_0x3f47ed[_0x32dffe('0x582')]['id']=_0x3f47ed[_0x32dffe('0x1e97')]['id'],_0x3f47ed[_0x32dffe('0x582')][_0x32dffe('0x224d')]=_0x32dffe('0x3bf'),_0x3f47ed[_0x32dffe('0x159a')]=_0x559227[_0x32dffe('0x1e97')]['getResources'](_0x3f47ed['query'],_0x4cadc8)['$promise']);}_0x866ca9['$on'](_0x4d429c('0x12d0'),function(){var _0x3f65b8=_0x4d429c;_0x146790[_0x3f65b8('0x2629')](_0x3f65b8('0x46')),_0x3f47ed[_0x3f65b8('0x1c21')]&&_0x3b849e[_0x3f65b8('0x2030')](_0x3f47ed[_0x3f65b8('0x1c21')]);});}const _0x3402de=_0xc750c4,_0x3e1747=_0x4fb511['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html/dialog-[chunkhash].html',_0x425df1=_0x4fb511['p']+_0x1a8446('0x198f'),_0x36960d=_0x4fb511['p']+_0x1a8446('0x156');_0x4bb759[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x186b'),'$mdDialog','$q',_0x1a8446('0x39b'),_0x1a8446('0x21b3'),_0x1a8446('0x4d7'),_0x1a8446('0x1f2f'),_0x1a8446('0x157'),_0x1a8446('0xe74'),'toasty','userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x4bb759(_0x408be5,_0xeb4e51,_0x24850a,_0x1a76fa,_0x3e0703,_0x16bd1e,_0x4a4e63,_0x170bdc,_0x528520,_0x4af9ab,_0x41786f,_0x2a19b6,_0x138d41,_0x3472a1){var _0x2fd9e2=_0x1a8446,_0x47dc7f=this,_0xdf68d9=[_0x2fd9e2('0x2226'),_0x2fd9e2('0x1ade'),_0x2fd9e2('0xd3d'),_0x2fd9e2('0xf01'),_0x2fd9e2('0x1a56'),_0x2fd9e2('0x301'),'message',_0x2fd9e2('0x1b71'),'dialMethod','Trunk',_0x2fd9e2('0x16ce'),_0x2fd9e2('0xf77'),_0x2fd9e2('0xebc'),'erlangCalls',_0x2fd9e2('0x15ac'),_0x2fd9e2('0x1a21'),_0x2fd9e2('0xc4f'),_0x2fd9e2('0x41b'),_0x2fd9e2('0x1b5'),_0x2fd9e2('0x1c80'),_0x2fd9e2('0x25aa'),_0x2fd9e2('0xf13'),_0x2fd9e2('0x2755'),'predictiveIntervalDroppedCallsTimeout','predictiveIntervalDroppedCallsCallersExit',_0x2fd9e2('0x1486'),_0x2fd9e2('0x32a')];_0x47dc7f[_0x2fd9e2('0x7fc')]=_0x3472a1[_0x2fd9e2('0xacc')](),_0x47dc7f[_0x2fd9e2('0xd15')]=_0x4a4e63[_0x2fd9e2('0xd15')]?_0x4a4e63['count']:0x0,_0x47dc7f['queues']=_0x4a4e63?_0x51538b()[_0x2fd9e2('0x184a')](_0x4a4e63['rows']?_0x4a4e63[_0x2fd9e2('0x580')]:[],'id'):{},_0x47dc7f[_0x2fd9e2('0x1f2f')]=_0x170bdc?_0x51538b()[_0x2fd9e2('0x184a')](_0x170bdc[_0x2fd9e2('0x580')]?_0x170bdc['rows']:[],'id'):{},_0x47dc7f[_0x2fd9e2('0x1e97')]=_0x2a19b6,_0x47dc7f[_0x2fd9e2('0x1a50')]=_0x138d41&&_0x138d41['count']==0x1?_0x138d41[_0x2fd9e2('0x580')][0x0]:null,_0x47dc7f[_0x2fd9e2('0xada')]=_0x3472a1[_0x2fd9e2('0xffd')](_0x47dc7f[_0x2fd9e2('0x1a50')]?_0x47dc7f['userProfileSection']['crudPermissions']:null);_0x3472a1['hasRole'](_0x2fd9e2('0x178b'))?_0x47dc7f[_0x2fd9e2('0x582')]={'type':_0x2fd9e2('0x19d1'),'sort':_0x2fd9e2('0xd82'),'limit':0xa,'page':0x1}:_0x47dc7f['query']={'id':_0x47dc7f[_0x2fd9e2('0x7fc')]['id'],'channel':_0x2fd9e2('0x1b9'),'type':_0x2fd9e2('0x19d1'),'sort':_0x2fd9e2('0xd82'),'limit':0xa,'page':0x1};_0x47dc7f[_0x2fd9e2('0xe10')]=_0x39249c,_0x47dc7f['getQueues']=_0x5a5fa3,_0x47dc7f[_0x2fd9e2('0x4fe')]=_0x1eabe2,_0x47dc7f[_0x2fd9e2('0x1059')]=_0x18d9e0,_0x47dc7f[_0x2fd9e2('0x101f')]=_0x340506,_0x47dc7f[_0x2fd9e2('0x19b3')]=_0x3eaccb,_0x47dc7f['onSave']=_0x49f6fd,_0x47dc7f[_0x2fd9e2('0x22a5')]=_0x244bcc,_0x47dc7f[_0x2fd9e2('0x2511')]=_0x488fb4,_0x47dc7f[_0x2fd9e2('0x24d2')]=_0x31632f,_0x47dc7f[_0x2fd9e2('0x10c6')]=_0x3beb07,_0x47dc7f['$onInit']=_0x39cbca,_0x47dc7f[_0x2fd9e2('0x1536')]=[],_0x51538b()[_0x2fd9e2('0x143e')](_0x47dc7f[_0x2fd9e2('0x4d7')],function(_0x3599bc){_0x47dc7f['order']['push'](_0x3599bc['id']);}),_0x4af9ab[_0x2fd9e2('0xa84')](_0x2fd9e2('0x46'),_0x47dc7f['onSave']),_0x47dc7f[_0x2fd9e2('0x1c21')]=_0x16bd1e(function(){},0x3e7),_0x4af9ab['on']('userVoiceQueueRt:save',_0x47dc7f['onSaveMember']),_0x4af9ab['on'](_0x2fd9e2('0x15fb'),_0x47dc7f['onPause']),_0x4af9ab['on'](_0x2fd9e2('0x10ac'),_0x47dc7f[_0x2fd9e2('0x10c6')]),_0x4af9ab['on'](_0x2fd9e2('0x77e'),_0x47dc7f[_0x2fd9e2('0x24d2')]);function _0x39cbca(){var _0x1ee45b=_0x2fd9e2,_0x366d87=[];return _0x51538b()['forIn'](_0x47dc7f[_0x1ee45b('0x4d7')],function(_0x292321,_0x308eb1){var _0x4123b6=_0x1ee45b;_0x292321['paused']=0x0,_0x292321[_0x4123b6('0xe81')]=0x0,_0x47dc7f[_0x4123b6('0x4d7')][_0x308eb1][_0x4123b6('0x1717')]={},_0x366d87[_0x4123b6('0x1599')](_0x528520['voiceQueue'][_0x4123b6('0xc8e')]({'id':_0x308eb1})['$promise']),_0x47dc7f[_0x4123b6('0x1f2f')][_0x308eb1]&&_0x51538b()[_0x4123b6('0x283c')](_0x292321,_0x51538b()[_0x4123b6('0x104e')](_0x47dc7f['rpcQueues'][_0x308eb1],_0xdf68d9));}),_0x1a76fa['all'](_0x366d87)['then'](function(_0x237fd3){var _0x4b8b16=_0x1ee45b;for(var _0x5dfe6d=0x0;_0x5dfe6d<_0x237fd3[_0x4b8b16('0x2587')];_0x5dfe6d+=0x1){for(var _0x3a3619=0x0;_0x3a3619<_0x237fd3[_0x5dfe6d][_0x4b8b16('0x580')][_0x4b8b16('0x2587')];_0x3a3619++){_0x237fd3[_0x5dfe6d][_0x4b8b16('0x580')][_0x3a3619][_0x4b8b16('0x16ce')]&&_0x47dc7f[_0x4b8b16('0x4d7')][_0x237fd3[_0x5dfe6d][_0x4b8b16('0x580')][_0x3a3619][_0x4b8b16('0x2438')]]['paused']++,_0x47dc7f[_0x4b8b16('0x4d7')][_0x237fd3[_0x5dfe6d][_0x4b8b16('0x580')][_0x3a3619][_0x4b8b16('0x2438')]][_0x4b8b16('0xe81')]++,_0x47dc7f[_0x4b8b16('0x4d7')][_0x237fd3[_0x5dfe6d][_0x4b8b16('0x580')][_0x3a3619][_0x4b8b16('0x2438')]][_0x4b8b16('0x1717')][_0x237fd3[_0x5dfe6d][_0x4b8b16('0x580')][_0x3a3619][_0x4b8b16('0x1037')]]=_0x237fd3[_0x5dfe6d][_0x4b8b16('0x580')][_0x3a3619][_0x4b8b16('0x2438')];}}})[_0x1ee45b('0x253d')](function(_0x222704){var _0x40e4b9=_0x1ee45b;console[_0x40e4b9('0x187f')](_0x222704);});}function _0x49f6fd(_0x2f259c){var _0x18d071=_0x2fd9e2;_0x47dc7f['queues'][_0x2f259c['id']]&&(_0x51538b()['merge'](_0x47dc7f[_0x18d071('0x4d7')][_0x2f259c['id']],_0x51538b()['pick'](_0x2f259c,_0xdf68d9)),_0x51538b()[_0x18d071('0x89a')](_0x2f259c[_0x18d071('0xf77')])&&(_0x47dc7f[_0x18d071('0x4d7')][_0x2f259c['id']]['startPredictive']=undefined));}function _0x244bcc(_0x59574b){var _0x5bc678=_0x2fd9e2;_0x47dc7f[_0x5bc678('0x4d7')][_0x59574b[_0x5bc678('0x15a2')]]&&_0x47dc7f['queues'][_0x59574b[_0x5bc678('0x15a2')]][_0x5bc678('0xe81')]++;}function _0x488fb4(_0xd8fa10){var _0x306273=_0x2fd9e2;console[_0x306273('0x18d5')]('onPause',_0xd8fa10);if(_0xd8fa10[_0x306273('0x2519')])_0x51538b()[_0x306273('0x143e')](_0x47dc7f['queues'],function(_0x45679e){var _0x1bed34=_0x306273;_0x45679e[_0x1bed34('0x1717')][_0xd8fa10['id']]&&(_0x45679e[_0x1bed34('0x16ce')]+=0x1,console['log']('pause'));});else!_0xd8fa10['voicePause']&&_0x51538b()[_0x306273('0x143e')](_0x47dc7f['queues'],function(_0x50fb01){var _0x10ad0f=_0x306273;_0x50fb01[_0x10ad0f('0x1717')][_0xd8fa10['id']]&&(_0x50fb01[_0x10ad0f('0x16ce')]>0x0&&(_0x50fb01[_0x10ad0f('0x16ce')]-=0x1,console[_0x10ad0f('0x18d5')](_0x10ad0f('0x297'))));});}function _0x31632f(_0x41b7d0){var _0x2cdc49=_0x2fd9e2;console[_0x2cdc49('0x18d5')](_0x2cdc49('0x1044'),_0x41b7d0),_0x47dc7f[_0x2cdc49('0x4d7')][_0x41b7d0['VoiceQueueId']]&&(_0x47dc7f[_0x2cdc49('0x4d7')][_0x41b7d0[_0x2cdc49('0x2438')]][_0x2cdc49('0xe81')]+=0x1,_0x47dc7f['queues'][_0x41b7d0[_0x2cdc49('0x2438')]][_0x2cdc49('0x1717')][_0x41b7d0['UserId']]=_0x41b7d0[_0x2cdc49('0x2438')]);}function _0x3beb07(_0x158718){var _0x1c5535=_0x2fd9e2;console[_0x1c5535('0x18d5')]('onLogout',_0x158718),_0x47dc7f[_0x1c5535('0x4d7')][_0x158718[_0x1c5535('0x2438')]]&&_0x47dc7f[_0x1c5535('0x4d7')][_0x158718['VoiceQueueId']][_0x1c5535('0xe81')]>0x0&&(_0x47dc7f[_0x1c5535('0x4d7')][_0x158718[_0x1c5535('0x2438')]]['loggedInDb']-=0x1,delete _0x47dc7f[_0x1c5535('0x4d7')][_0x158718[_0x1c5535('0x2438')]][_0x1c5535('0x1717')][_0x158718[_0x1c5535('0x1037')]]);}var _0x5e9219=!![],_0x525da3=0x1;_0x408be5['$watch'](_0x2fd9e2('0x1788'),function(_0x107e85,_0x2d6c3a){var _0x300050=_0x2fd9e2;_0x5e9219?_0xeb4e51(function(){_0x5e9219=![];}):(!_0x2d6c3a&&(_0x525da3=_0x47dc7f[_0x300050('0x582')]['page']),_0x107e85!==_0x2d6c3a&&(_0x47dc7f[_0x300050('0x582')]['page']=0x1),!_0x107e85&&(_0x47dc7f[_0x300050('0x582')]['page']=_0x525da3),_0x47dc7f[_0x300050('0x1e87')]());});function _0x39249c(_0x56fc1e){var _0x327f97=_0x2fd9e2;_0x47dc7f[_0x327f97('0xd15')]=_0x56fc1e[_0x327f97('0xd15')],_0x47dc7f[_0x327f97('0x4d7')]=_0x56fc1e?_0x51538b()['keyBy'](_0x56fc1e[_0x327f97('0x580')]?_0x56fc1e[_0x327f97('0x580')]:[],'id'):{};if(_0x56fc1e[_0x327f97('0x580')]){_0x47dc7f[_0x327f97('0x1536')]=[];for(var _0x49080a=0x0;_0x49080a<_0x56fc1e[_0x327f97('0x580')]['length'];_0x49080a++){_0x47dc7f['order']['push'](_0x56fc1e[_0x327f97('0x580')][_0x49080a]['id']);}}_0x39cbca();}function _0x5a5fa3(){var _0x45a61a=_0x2fd9e2;_0x47dc7f[_0x45a61a('0x582')][_0x45a61a('0x8b1')]=(_0x47dc7f[_0x45a61a('0x582')][_0x45a61a('0x41')]-0x1)*_0x47dc7f['query']['limit'],_0x3472a1[_0x45a61a('0x26e8')](_0x45a61a('0x178b'))?_0x47dc7f[_0x45a61a('0x159a')]=_0x528520[_0x45a61a('0x1588')][_0x45a61a('0x2122')](_0x47dc7f[_0x45a61a('0x582')],_0x39249c)['$promise']:(_0x47dc7f[_0x45a61a('0x582')]['id']=_0x47dc7f[_0x45a61a('0x1e97')]['id'],_0x47dc7f['query'][_0x45a61a('0x224d')]=_0x45a61a('0x3bf'),_0x47dc7f[_0x45a61a('0x159a')]=_0x528520[_0x45a61a('0x1e97')][_0x45a61a('0x1cf1')](_0x47dc7f['query'],_0x39249c)[_0x45a61a('0x1dc2')]);}function _0x1eabe2(_0x471ed2,_0x448150){var _0x5f3826=_0x2fd9e2;_0x24850a[_0x5f3826('0x1e6d')]({'controller':_0x5f3826('0x47f'),'controllerAs':'vm','templateUrl':_0x3e1747,'parent':angular[_0x5f3826('0x1aa8')](_0x3e0703[_0x5f3826('0x54c')]),'targetEvent':_0x471ed2,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x448150,'queueCampaigns':_0x51538b()[_0x5f3826('0x3c5')](_0x47dc7f['queues']),'license':null,'setting':null,'crudPermissions':_0x47dc7f[_0x5f3826('0xada')]}});}function _0x18d9e0(_0x4da103,_0x877ef4){var _0x3e7b3c=_0x2fd9e2;_0x24850a[_0x3e7b3c('0x1e6d')]({'controller':'PredictiveQueueCampaignDialogController','controllerAs':'vm','templateUrl':_0x425df1,'parent':angular[_0x3e7b3c('0x1aa8')](_0x3e0703[_0x3e7b3c('0x54c')]),'targetEvent':_0x4da103,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x877ef4}});}function _0x340506(_0x9187ca,_0x560851){var _0x14e29a=_0x2fd9e2;_0x24850a['show']({'controller':_0x14e29a('0x2045'),'controllerAs':'vm','templateUrl':_0x36960d,'parent':angular[_0x14e29a('0x1aa8')](_0x3e0703[_0x14e29a('0x54c')]),'targetEvent':_0x9187ca,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x560851,'queueCampaigns':_0x47dc7f['queues']?_0x47dc7f[_0x14e29a('0x4d7')]['rows']:[],'realtime':!![],'crudPermissions':_0x47dc7f[_0x14e29a('0xada')]}});}function _0x3eaccb(_0x559fd9){var _0x4c37d4=_0x2fd9e2;return _0x528520['voiceQueue'][_0x4c37d4('0x264e')](_0x559fd9)[_0x4c37d4('0x1dc2')][_0x4c37d4('0xaa5')](function(){var _0x5287ad=_0x4c37d4;_0x41786f[_0x5287ad('0xe10')]({'title':'Queue\x20properly\x20updated!','msg':_0x559fd9['name']?_0x559fd9[_0x5287ad('0x25d6')]+'\x20has\x20been\x20updated!':''});})[_0x4c37d4('0x253d')](function(_0x3532a4){var _0x52c56c=_0x4c37d4;_0x41786f[_0x52c56c('0x187f')]({'title':_0x52c56c('0x777'),'msg':_0x3532a4['message']});});}_0x408be5[_0x2fd9e2('0xc75')](_0x2fd9e2('0x12d0'),function(){var _0xc5e179=_0x2fd9e2;_0x4af9ab['removeAllListeners'](_0xc5e179('0x46')),_0x47dc7f['interval']&&_0x16bd1e['cancel'](_0x47dc7f[_0xc5e179('0x1c21')]),_0x4af9ab[_0xc5e179('0x2629')](_0xc5e179('0x1eb9')),_0x4af9ab[_0xc5e179('0x2629')]('user:update'),_0x4af9ab['removeAllListeners']('userVoiceQueue:remove'),_0x4af9ab['removeAllListeners'](_0xc5e179('0x77e'));});}const _0x4be863=_0x4bb759;_0xf6c2c8[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),_0x1a8446('0x21b3'),_0x1a8446('0x239e')];function _0xf6c2c8(_0x5784bb,_0x20930f,_0x19a005){var _0xb8dbe4=_0x1a8446,_0x93d0d=this;_0x93d0d[_0xb8dbe4('0x239e')]=_0x19a005,_0x93d0d[_0xb8dbe4('0x70c')]=_0x12dd19,_0x93d0d[_0xb8dbe4('0x10e1')]=_0x4f4e7b,_0x93d0d[_0xb8dbe4('0x2023')]=_0x1db000;function _0x12dd19(_0x5762e4,_0xef326b){var _0x5ab77f=_0xb8dbe4;return _0x420d43()(_0x5762e4)[_0x5ab77f('0x202c')]('m',_0xef326b)[_0x5ab77f('0x1f27')](_0x5ab77f('0x18c2'));}function _0x4f4e7b(_0xb84da1){var _0x26d0b5=_0xb8dbe4;return _0x420d43()(_0xb84da1)[_0x26d0b5('0x1f27')](_0x26d0b5('0x18c2'));}function _0x1db000(){var _0x4b6265=_0xb8dbe4;_0x5784bb[_0x4b6265('0x1120')]();}}const _0x5f2662=_0xf6c2c8;function _0x590d23(){var _0x2fa110=_0x1a8446;return{'status':{'registered':_0x2fa110('0x1'),'unregistered':_0x2fa110('0x15cb'),'lagged':_0x2fa110('0x15cb'),'reachable':_0x2fa110('0x1'),'unreachable':_0x2fa110('0x15cb'),'unknown':_0x2fa110('0x17')},'state':{'unknown':_0x2fa110('0xc98'),'not_inuse':_0x2fa110('0x1670'),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x2fa110('0xb2'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x2fa110('0x1dac'),'ringinuse':_0x2fa110('0x1dac'),'onhold':_0x2fa110('0xcf5')},'channelStatus':{'ring':_0x2fa110('0x1dac'),'up':_0x2fa110('0xe58'),'hangup':_0x2fa110('0x182a')},'channelStatusOut':{'ring':_0x2fa110('0x15d9'),'up':_0x2fa110('0xe58'),'hangup':_0x2fa110('0x182a')}};}const _0x2df932=_0x590d23;_0xf2cca[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),_0x1a8446('0xe74')];function _0xf2cca(_0x48a402,_0x3c8c39,_0x23bdce){var _0x4d9e88=_0x1a8446,_0x2e36fd=this;_0x23bdce[_0x4d9e88('0x18d1')](),_0x23bdce[_0x4d9e88('0x16dc')](),_0x2e36fd[_0x4d9e88('0xe5c')]=0x0;switch(_0x3c8c39['current'][_0x4d9e88('0x25d6')]){case _0x4d9e88('0xdc1'):_0x2e36fd[_0x4d9e88('0xe5c')]=0x0;break;case _0x4d9e88('0xc3b'):_0x2e36fd[_0x4d9e88('0xe5c')]=0x1;break;case'app.motiondialer.realtime.queue_calls':_0x2e36fd[_0x4d9e88('0xe5c')]=0x2;break;case'app.motiondialer.realtime.abandonedcalls':_0x2e36fd[_0x4d9e88('0xe5c')]=0x3;break;case _0x4d9e88('0x16b8'):_0x2e36fd[_0x4d9e88('0xe5c')]=0x4;break;case _0x4d9e88('0x284d'):_0x2e36fd[_0x4d9e88('0xe5c')]=0x5;break;default:_0x2e36fd[_0x4d9e88('0xe5c')]=0x0,_0x3c8c39['go'](_0x4d9e88('0xdc1'));}_0x48a402[_0x4d9e88('0x1ccf')]('vm.selectedTab',function(_0xd5da57,_0x7afc6d){var _0x1771d5=_0x4d9e88;if(_0xd5da57!==_0x7afc6d)switch(_0xd5da57){case 0x0:_0x3c8c39['go'](_0x1771d5('0xdc1'));break;case 0x1:_0x3c8c39['go'](_0x1771d5('0xc3b'));break;case 0x2:_0x3c8c39['go']('app.motiondialer.realtime.queue_calls');break;case 0x3:_0x3c8c39['go'](_0x1771d5('0xf50'));break;case 0x4:_0x3c8c39['go'](_0x1771d5('0x16b8'));break;case 0x5:_0x3c8c39['go'](_0x1771d5('0x284d'));break;default:_0x3c8c39['go'](_0x1771d5('0xdc1'));}});}const _0x4fabf5=_0xf2cca;_0x42daac[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x42daac(_0x4ba79f){var _0x8f6b1c=_0x1a8446;_0x4ba79f[_0x8f6b1c('0xb46')](_0x8f6b1c('0x1dc5'),{'url':_0x8f6b1c('0x22d4'),'views':{'content@app':{'templateUrl':_0x594dfc,'controller':_0x8f6b1c('0x1f9f')}},'resolve':{'userProfile':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x5c6714(_0x40843b,_0x56e9e2){var _0x17e788=_0x8f6b1c;return _0x56e9e2[_0x17e788('0x26e8')]('admin')?null:_0x40843b['resolve']('userProfile@get',{'fields':_0x17e788('0x1bb0'),'id':_0x56e9e2[_0x17e788('0xacc')]()[_0x17e788('0x2168')]});}],'userProfileSection':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x2e0246(_0x438c42,_0x51dee7){var _0x102341=_0x8f6b1c;return _0x51dee7[_0x102341('0x26e8')](_0x102341('0x178b'))?null:_0x438c42[_0x102341('0x149f')](_0x102341('0x89e'),{'fields':_0x102341('0xe6a'),'userProfileId':_0x51dee7['getCurrentUser']()['userProfileId'],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x8f6b1c('0xb46')](_0x8f6b1c('0xdc1'),{'url':_0x8f6b1c('0x141f'),'controller':'AgentsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0xd1bda8,'resolve':{'pauses':[_0x8f6b1c('0x1d16'),function _0x208124(_0x136f61){var _0x468237=_0x8f6b1c;return _0x136f61['resolve'](_0x468237('0x56b'),{'nolimit':!![]});}],'agents':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x53f797(_0x25f850,_0xf49772){var _0x130628=_0x8f6b1c;return _0xf49772['hasRole']('admin')?_0x25f850['resolve'](_0x130628('0xde4'),{'fields':_0x130628('0x515'),'role':_0x130628('0xeff'),'sort':'fullname','nolimit':!![]}):_0x25f850[_0x130628('0x149f')](_0x130628('0x49a'),{'id':_0xf49772[_0x130628('0xacc')]()[_0x130628('0x2168')],'section':'Agents','fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':_0x130628('0xeff'),'sort':_0x130628('0x18e5'),'nolimit':!![]});}],'userProfile':[_0x8f6b1c('0x1d16'),'Auth',function _0x116f9b(_0x5d7436,_0xc2fcfe){var _0x58b8a9=_0x8f6b1c;return _0xc2fcfe[_0x58b8a9('0x26e8')]('admin')?null:_0x5d7436[_0x58b8a9('0x149f')](_0x58b8a9('0x567'),{'fields':'id,name,crudPermissions','id':_0xc2fcfe[_0x58b8a9('0xacc')]()[_0x58b8a9('0x2168')]});}],'userProfileSection':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x58b2c0(_0x5a8abc,_0x1c3484){var _0x2b972c=_0x8f6b1c;return _0x1c3484['hasRole']('admin')?null:_0x5a8abc[_0x2b972c('0x149f')]('userProfileSection@get',{'fields':_0x2b972c('0xe6a'),'userProfileId':_0x1c3484[_0x2b972c('0xacc')]()[_0x2b972c('0x2168')],'sectionId':0xca});}],'rpcAgents':[_0x8f6b1c('0x1d16'),function _0xdff6dd(_0x3135a0){var _0x2f9dc0=_0x8f6b1c;return _0x3135a0['resolve'](_0x2f9dc0('0x1809'));}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x8f6b1c('0xc3b'),{'url':_0x8f6b1c('0x1d17'),'controller':_0x8f6b1c('0x89c'),'templateUrl':_0x5e925a,'resolve':{'queues':[_0x8f6b1c('0x1d16'),'Auth',function _0x1f1f79(_0x3d619a,_0x5c1849){var _0x56d148=_0x8f6b1c;return _0x5c1849[_0x56d148('0x26e8')]('admin')?_0x3d619a[_0x56d148('0x149f')]('voiceQueue@get',{'type':_0x56d148('0x19d1'),'sort':_0x56d148('0xd82'),'limit':0xa,'offset':0x0}):_0x3d619a[_0x56d148('0x149f')](_0x56d148('0x49a'),{'id':_0x5c1849[_0x56d148('0xacc')]()[_0x56d148('0x2168')],'section':_0x56d148('0x3bf'),'channel':_0x56d148('0x1b9'),'type':_0x56d148('0x19d1'),'sort':_0x56d148('0xd82'),'limit':0xa,'page':0x1});}],'userProfile':[_0x8f6b1c('0x1d16'),'Auth',function _0x4e2b80(_0x3fc1e0,_0x27eab2){var _0x42ea32=_0x8f6b1c;return _0x27eab2[_0x42ea32('0x26e8')](_0x42ea32('0x178b'))?null:_0x3fc1e0[_0x42ea32('0x149f')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x27eab2[_0x42ea32('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x7e279c(_0x207f0c,_0x595a64){var _0x56797e=_0x8f6b1c;return _0x595a64[_0x56797e('0x26e8')](_0x56797e('0x178b'))?null:_0x207f0c['resolve']('userProfileSection@get',{'fields':_0x56797e('0xe6a'),'userProfileId':_0x595a64[_0x56797e('0xacc')]()['userProfileId'],'sectionId':0x5dd});}],'rpcQueues':[_0x8f6b1c('0x1d16'),function _0x3bed7d(_0x31afaf){var _0x1fd099=_0x8f6b1c;return _0x31afaf[_0x1fd099('0x149f')](_0x1fd099('0xf2d'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x8f6b1c('0xb46')](_0x8f6b1c('0x964'),{'url':_0x8f6b1c('0x1b33'),'controller':_0x8f6b1c('0x153c'),'templateUrl':_0x3f5651,'resolve':{'agents':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x2c6212(_0x513a74,_0x10173c){var _0xed3778=_0x8f6b1c;return _0x10173c['hasRole'](_0xed3778('0x178b'))?_0x513a74[_0xed3778('0x149f')]('user@get',{'fields':_0xed3778('0xd4f'),'role':'agent','nolimit':!![]}):_0x513a74[_0xed3778('0x149f')](_0xed3778('0x49a'),{'id':_0x10173c['getCurrentUser']()[_0xed3778('0x2168')],'section':'Agents','fields':_0xed3778('0xd4f'),'role':_0xed3778('0xeff'),'nolimit':!![]});}],'queues':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x18c614(_0x2cb6ed,_0x534b47){var _0x154bff=_0x8f6b1c;return _0x534b47[_0x154bff('0x26e8')](_0x154bff('0x178b'))?_0x2cb6ed['resolve'](_0x154bff('0x1b1'),{'type':_0x154bff('0x19d1'),'sort':'-updatedAt','nolimit':!![]}):_0x2cb6ed[_0x154bff('0x149f')](_0x154bff('0x49a'),{'id':_0x534b47[_0x154bff('0xacc')]()[_0x154bff('0x2168')],'section':_0x154bff('0x3bf'),'channel':_0x154bff('0x1b9'),'type':_0x154bff('0x19d1'),'sort':'-updatedAt','nolimit':!![]});}],'userProfile':['apiResolver',_0x8f6b1c('0x1dfd'),function _0x387e03(_0x12cd90,_0x5a01d2){var _0x357cbd=_0x8f6b1c;return _0x5a01d2['hasRole']('admin')?null:_0x12cd90[_0x357cbd('0x149f')](_0x357cbd('0x567'),{'fields':_0x357cbd('0x1bb0'),'id':_0x5a01d2[_0x357cbd('0xacc')]()[_0x357cbd('0x2168')]});}],'userProfileSection':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x42dddc(_0x2c4cc5,_0x19d3f5){var _0xd2224d=_0x8f6b1c;return _0x19d3f5['hasRole'](_0xd2224d('0x178b'))?null:_0x2c4cc5[_0xd2224d('0x149f')](_0xd2224d('0x89e'),{'fields':_0xd2224d('0xe6a'),'userProfileId':_0x19d3f5[_0xd2224d('0xacc')]()[_0xd2224d('0x2168')],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':['apiResolver',function _0x20684b(_0x24758e){var _0x401dcc=_0x8f6b1c;return _0x24758e[_0x401dcc('0x149f')]('rpc@getVoiceQueuesChannels');}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x8f6b1c('0xf50'),{'url':_0x8f6b1c('0x221b'),'controller':_0x8f6b1c('0x1d90'),'templateUrl':_0x2fea24,'resolve':{'agents':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x1e7c7f(_0x4bdaa1,_0x1a4b2c){var _0x28441a=_0x8f6b1c;return _0x1a4b2c[_0x28441a('0x26e8')]('admin')?_0x4bdaa1[_0x28441a('0x149f')](_0x28441a('0xde4'),{'fields':_0x28441a('0xd4f'),'role':'agent','nolimit':!![]}):_0x4bdaa1[_0x28441a('0x149f')]('userProfile@getResources',{'id':_0x1a4b2c['getCurrentUser']()[_0x28441a('0x2168')],'section':'Agents','fields':_0x28441a('0xd4f'),'role':_0x28441a('0xeff'),'nolimit':!![]});}],'queues':[_0x8f6b1c('0x1d16'),'Auth',function _0x5d6d6d(_0x24dedb,_0x932325){var _0x5183d0=_0x8f6b1c;return _0x932325[_0x5183d0('0x26e8')](_0x5183d0('0x178b'))?_0x24dedb[_0x5183d0('0x149f')](_0x5183d0('0x1b1'),{'type':_0x5183d0('0x19d1'),'sort':'-updatedAt','nolimit':!![]}):_0x24dedb[_0x5183d0('0x149f')]('userProfile@getResources',{'id':_0x932325[_0x5183d0('0xacc')]()['userProfileId'],'section':_0x5183d0('0x3bf'),'channel':_0x5183d0('0x1b9'),'type':'outbound','sort':_0x5183d0('0xd82'),'nolimit':!![]});}],'dispositions':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x259aea(_0x2f9bfb,_0x5aded7){var _0x53ad0e=_0x8f6b1c;return _0x5aded7[_0x53ad0e('0x26e8')]('admin')?_0x2f9bfb[_0x53ad0e('0x149f')](_0x53ad0e('0xa42'),{'fields':_0x53ad0e('0x2593'),'sort':_0x53ad0e('0xd82'),'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x53ad0e('0x1ed9'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x53ad0e('0x1ed9'),'ChatWebsiteId':'null','ListId':_0x53ad0e('0x1ed9'),'nolimit':!![]}):_0x2f9bfb['resolve']('userProfile@getResources',{'id':_0x5aded7['getCurrentUser']()[_0x53ad0e('0x2168')],'section':_0x53ad0e('0x38d'),'fields':_0x53ad0e('0x696'),'sort':_0x53ad0e('0xd82'),'MailAccountId':_0x53ad0e('0x1ed9'),'FaxAccountId':'null','SmsAccountId':_0x53ad0e('0x1ed9'),'WhatsappAccountId':_0x53ad0e('0x1ed9'),'OpenchannelAccountId':_0x53ad0e('0x1ed9'),'ChatWebsiteId':_0x53ad0e('0x1ed9'),'ListId':_0x53ad0e('0x1ed9'),'nolimit':!![]});}],'userProfile':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0xb73e38(_0x4846d9,_0xbe2841){var _0x1796ae=_0x8f6b1c;return _0xbe2841[_0x1796ae('0x26e8')](_0x1796ae('0x178b'))?null:_0x4846d9[_0x1796ae('0x149f')]('userProfile@get',{'fields':_0x1796ae('0x1bb0'),'id':_0xbe2841[_0x1796ae('0xacc')]()[_0x1796ae('0x2168')]});}],'userProfileSection':[_0x8f6b1c('0x1d16'),'Auth',function _0x482631(_0x4cf512,_0x40256c){var _0x5fadf=_0x8f6b1c;return _0x40256c[_0x5fadf('0x26e8')]('admin')?null:_0x4cf512['resolve'](_0x5fadf('0x89e'),{'fields':_0x5fadf('0xe6a'),'userProfileId':_0x40256c[_0x5fadf('0xacc')]()[_0x5fadf('0x2168')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})['state']('app.motiondialer.realtime.queue_params',{'url':_0x8f6b1c('0x15e2'),'controller':_0x8f6b1c('0x1e2d'),'templateUrl':_0x29f55e,'resolve':{'queues':['apiResolver',_0x8f6b1c('0x1dfd'),function _0x275445(_0xe01b7e,_0x49a6db){var _0x120606=_0x8f6b1c;return _0x49a6db['hasRole'](_0x120606('0x178b'))?_0xe01b7e[_0x120606('0x149f')]('voiceQueue@get',{'type':_0x120606('0x19d1'),'fields':'id,name','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0xe01b7e[_0x120606('0x149f')](_0x120606('0x49a'),{'id':_0x49a6db[_0x120606('0xacc')]()[_0x120606('0x2168')],'section':_0x120606('0x3bf'),'channel':_0x120606('0x1b9'),'type':'outbound','sort':_0x120606('0xd82'),'nolimit':!![]});}],'userProfile':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x1366a7(_0x5edcd1,_0x1ceafe){var _0x1ba975=_0x8f6b1c;return _0x1ceafe[_0x1ba975('0x26e8')](_0x1ba975('0x178b'))?null:_0x5edcd1[_0x1ba975('0x149f')](_0x1ba975('0x567'),{'fields':_0x1ba975('0x1bb0'),'id':_0x1ceafe[_0x1ba975('0xacc')]()[_0x1ba975('0x2168')]});}],'userProfileSection':[_0x8f6b1c('0x1d16'),'Auth',function _0x47852b(_0x547a80,_0x413435){var _0x197a2d=_0x8f6b1c;return _0x413435['hasRole'](_0x197a2d('0x178b'))?null:_0x547a80[_0x197a2d('0x149f')](_0x197a2d('0x89e'),{'fields':_0x197a2d('0xe6a'),'userProfileId':_0x413435[_0x197a2d('0xacc')]()['userProfileId'],'sectionId':0x5dd});}],'rpcQueues':[_0x8f6b1c('0x1d16'),function _0x3c5aa4(_0x541593){var _0x5f3e20=_0x8f6b1c;return _0x541593[_0x5f3e20('0x149f')](_0x5f3e20('0xf2d'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x8f6b1c('0xb46')](_0x8f6b1c('0x284d'),{'url':'/ivr_campaigns','controller':_0x8f6b1c('0x758'),'templateUrl':_0x1cbce1,'resolve':{'campaigns':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x41a204(_0xf07515,_0x3513b3){var _0x61ff6f=_0x8f6b1c;return _0x3513b3[_0x61ff6f('0x26e8')](_0x61ff6f('0x178b'))?_0xf07515['resolve'](_0x61ff6f('0x60c'),{'sort':_0x61ff6f('0xd82'),'limit':0xa,'offset':0x0}):_0xf07515[_0x61ff6f('0x149f')](_0x61ff6f('0x49a'),{'id':_0x3513b3[_0x61ff6f('0xacc')]()[_0x61ff6f('0x2168')],'section':_0x61ff6f('0x1a93'),'sort':_0x61ff6f('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x8f6b1c('0x1d16'),_0x8f6b1c('0x1dfd'),function _0x1aa157(_0x30aa17,_0x5ca1e9){var _0x11ee8a=_0x8f6b1c;return _0x5ca1e9[_0x11ee8a('0x26e8')](_0x11ee8a('0x178b'))?null:_0x30aa17[_0x11ee8a('0x149f')](_0x11ee8a('0x567'),{'fields':_0x11ee8a('0x1bb0'),'id':_0x5ca1e9[_0x11ee8a('0xacc')]()[_0x11ee8a('0x2168')]});}],'userProfileSection':['apiResolver','Auth',function _0xaf2dbc(_0x3afee9,_0xe75ef2){var _0x1261ca=_0x8f6b1c;return _0xe75ef2[_0x1261ca('0x26e8')]('admin')?null:_0x3afee9[_0x1261ca('0x149f')](_0x1261ca('0x89e'),{'fields':_0x1261ca('0xe6a'),'userProfileId':_0xe75ef2[_0x1261ca('0xacc')]()[_0x1261ca('0x2168')],'sectionId':0x5de});}],'rpcCampaigns':[_0x8f6b1c('0x1d16'),function _0x4f38b4(_0xd6dc65){var _0x47fc8f=_0x8f6b1c;return _0xd6dc65['resolve'](_0x47fc8f('0x1337'));}]},'authenticate':!![],'permissionId':0x5e6});}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x1dc5'),[])[_0x1a8446('0x1b14')](_0x42daac)[_0x1a8446('0x780')](_0x1a8446('0x1744'),_0x5f36ac)[_0x1a8446('0x780')]('AgentsMotionDialerRealtimeController',_0x372e2c)['controller'](_0x1a8446('0xcbb'),_0x29d185)['controller'](_0x1a8446('0x1036'),_0x11ba31)[_0x1a8446('0x780')](_0x1a8446('0x6f'),_0x3402de)[_0x1a8446('0x780')](_0x1a8446('0x160f'),_0x4be863)[_0x1a8446('0x780')](_0x1a8446('0x1c06'),_0x5f2662)[_0x1a8446('0x1be9')](_0x1a8446('0x5b4'),_0x2df932)[_0x1a8446('0x780')]('MotionDialerRealtimeController',_0x4fabf5);const _0xc08b2c=_0x4fb511['p']+_0x1a8446('0x27c0'),_0x3dd4df=_0x4fb511['p']+_0x1a8446('0x1ff2'),_0xd4e0ee=_0x4fb511['p']+_0x1a8446('0x201'),_0x286ecf=_0x4fb511['p']+_0x1a8446('0x728');_0x43a1bb[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty','ivrCampaigns',_0x1a8446('0x1181'),_0x1a8446('0x157'),'Auth','license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x43a1bb(_0x3241e9,_0x2aa73f,_0x406186,_0xda25e7,_0x2569ed,_0x51fbff,_0x4dd845,_0x148c22,_0x7dea0d,_0xbe97be,_0x41a8b8,_0x442add,_0x1b3841,_0x1a054f){var _0x58ac6e=_0x1a8446,_0x4e843b=this;_0x4e843b['currentUser']=_0x41a8b8[_0x58ac6e('0xacc')](),_0x4e843b['errors']=[],_0x4e843b[_0x58ac6e('0x143f')]=_0x1b3841,_0x4e843b['license']=_0x442add,_0x4e843b['crudPermissions']=_0x1a054f,_0x4e843b['hasModulePermissions']={},_0x4e843b[_0x58ac6e('0x1d53')]=_0x4e843b[_0x58ac6e('0x143f')]&&_0x4e843b['setting'][_0x58ac6e('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4e843b[_0x58ac6e('0x110a')]=_0x58ac6e('0x14a0'),_0x4e843b[_0x58ac6e('0x1181')]=angular['copy'](_0x7dea0d),_0x4e843b[_0x58ac6e('0x1ee9')]=_0x148c22,_0x4e843b[_0x58ac6e('0x2341')]=![];!_0x4e843b[_0x58ac6e('0x1181')]&&(_0x4e843b[_0x58ac6e('0x1181')]={'active':!![],'type':'ivr','dialCheckDuplicateType':_0x58ac6e('0x1b43'),'dialCutDigit':0x0,'limitCalls':0x1e,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialGlobalMaxRetry':0x4,'dialCongestionMaxRetry':0x3,'dialCongestionRetryFrequency':0x96,'dialBusyMaxRetry':0x3,'dialBusyRetryFrequency':0x96,'dialNoAnswerMaxRetry':0x3,'dialNoAnswerRetryFrequency':0x96,'dialNoSuchNumberMaxRetry':0x3,'dialNoSuchNumberRetryFrequency':0x96,'dialDropMaxRetry':0x3,'dialDropRetryFrequency':0x96,'dialAbandonedMaxRetry':0x3,'dialAbandonedRetryFrequency':0x96,'dialMachineMaxRetry':0x3,'dialMachineRetryFrequency':0x96,'dialAgentRejectMaxRetry':0x3,'dialAgentRejectRetryFrequency':0x96,'dialOrderByScheduledAt':_0x58ac6e('0x257'),'dialGlobalInterval':_0x58ac6e('0xdd2'),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x4e843b[_0x58ac6e('0x110a')]=_0x58ac6e('0x274c'),_0x4e843b[_0x58ac6e('0x2341')]=!![]);_0x4e843b[_0x58ac6e('0x1712')]=_0x1f5abd,_0x4e843b[_0x58ac6e('0x978')]=_0x9744b9,_0x4e843b['deleteIvrCampaign']=_0x249dea,_0x4e843b['getDateFromString']=_0x3142b2,_0x4e843b[_0x58ac6e('0x2023')]=_0x1abb91,_0x41a8b8['hasRole'](_0x58ac6e('0x178b'))?_0xbe97be[_0x58ac6e('0x1651')][_0x58ac6e('0x2122')]({'fields':_0x58ac6e('0x17fe'),'sort':_0x58ac6e('0x25d6'),'table':'true'})[_0x58ac6e('0x1dc2')][_0x58ac6e('0xaa5')](function(_0x449d20){var _0x286c30=_0x58ac6e;_0x4e843b[_0x286c30('0x1bc2')]=_0x449d20[_0x286c30('0x580')]||[];})['catch'](function(_0x1b4fb1){var _0x2aeb20=_0x58ac6e;_0x4dd845['error']({'title':_0x1b4fb1['status']?_0x2aeb20('0x16c2')+_0x1b4fb1[_0x2aeb20('0x2fa')]+_0x2aeb20('0x169e')+_0x1b4fb1['statusText']:_0x2aeb20('0x298'),'msg':_0x1b4fb1[_0x2aeb20('0x10fd')]?JSON[_0x2aeb20('0xa48')](_0x1b4fb1[_0x2aeb20('0x10fd')]):_0x1b4fb1[_0x2aeb20('0x684')]()});}):_0xbe97be[_0x58ac6e('0x1651')][_0x58ac6e('0x2122')]({'fields':_0x58ac6e('0x17fe'),'sort':_0x58ac6e('0x25d6'),'table':_0x58ac6e('0x1c5c')})[_0x58ac6e('0x1dc2')][_0x58ac6e('0xaa5')](function(_0xfe730e){var _0x26e393=_0x58ac6e;_0x4e843b[_0x26e393('0x1bc2')]=_0xfe730e[_0x26e393('0x580')]||[];})[_0x58ac6e('0xaa5')](function(){var _0x51e478=_0x58ac6e;return _0xbe97be[_0x51e478('0x1a50')][_0x51e478('0x2122')]({'userProfileId':_0x4e843b[_0x51e478('0x7fc')][_0x51e478('0x2168')],'sectionId':0x3f3})['$promise'];})['then'](function(_0x276b27){var _0x28f0f3=_0x58ac6e,_0x926085=_0x276b27&&_0x276b27[_0x28f0f3('0x580')]?_0x276b27[_0x28f0f3('0x580')][0x0]:null;if(!_0x926085)_0x4e843b[_0x28f0f3('0x1bc2')]=[];else{if(!_0x926085['autoAssociation'])return _0xbe97be[_0x28f0f3('0x249a')]['get']({'sectionId':_0x926085['id']})[_0x28f0f3('0x1dc2')][_0x28f0f3('0xaa5')](function(_0x2560bb){var _0x26983b=_0x28f0f3,_0x6414db=_0x51538b()[_0x26983b('0x1246')](_0x2560bb[_0x26983b('0x580')],function(_0x4b5dff){var _0x24cd65=_0x26983b;return _0x51538b()[_0x24cd65('0xe9e')](_0x4e843b[_0x24cd65('0x1bc2')],{'id':_0x4b5dff[_0x24cd65('0xbcd')]});});_0x4e843b['trunks']['forEach'](function(_0x35814b){var _0x14c281=_0x26983b;!_0x51538b()[_0x14c281('0x2c2')](_0x6414db,['id',_0x35814b['id']])&&(_0x35814b[_0x14c281('0x12eb')]=![]),_0x6414db[_0x14c281('0x1599')](_0x35814b);}),_0x4e843b[_0x26983b('0x1bc2')]=_0x6414db;});}})[_0x58ac6e('0x253d')](function(_0x5a1225){var _0x477bbd=_0x58ac6e;_0x4dd845[_0x477bbd('0x187f')]({'title':_0x5a1225['status']?'API:'+_0x5a1225[_0x477bbd('0x2fa')]+_0x477bbd('0x169e')+_0x5a1225[_0x477bbd('0x24df')]:_0x477bbd('0x117a'),'msg':_0x5a1225[_0x477bbd('0x10fd')]?JSON[_0x477bbd('0xa48')](_0x5a1225['data']):_0x5a1225[_0x477bbd('0x684')]()});}),_0x41a8b8[_0x58ac6e('0x26e8')](_0x58ac6e('0x178b'))?_0xbe97be[_0x58ac6e('0x37b')][_0x58ac6e('0x2122')]({'fields':_0x58ac6e('0x17fe'),'sort':_0x58ac6e('0x25d6')})['$promise'][_0x58ac6e('0xaa5')](function(_0xf98d65){var _0x2791c7=_0x58ac6e;_0x4e843b[_0x2791c7('0x8d1')]=_0xf98d65[_0x2791c7('0x580')]||[];})[_0x58ac6e('0x253d')](function(_0x19fff9){var _0x23beb5=_0x58ac6e;_0x4dd845[_0x23beb5('0x187f')]({'title':_0x19fff9[_0x23beb5('0x2fa')]?_0x23beb5('0x16c2')+_0x19fff9[_0x23beb5('0x2fa')]+_0x23beb5('0x169e')+_0x19fff9[_0x23beb5('0x24df')]:_0x23beb5('0x25d'),'msg':_0x19fff9[_0x23beb5('0x10fd')]?JSON[_0x23beb5('0xa48')](_0x19fff9[_0x23beb5('0x10fd')]):_0x19fff9[_0x23beb5('0x684')]()});}):_0xbe97be[_0x58ac6e('0x37b')]['get']({'fields':_0x58ac6e('0x17fe'),'sort':_0x58ac6e('0x25d6')})[_0x58ac6e('0x1dc2')][_0x58ac6e('0xaa5')](function(_0xa99d14){var _0x308d6f=_0x58ac6e;_0x4e843b[_0x308d6f('0x8d1')]=_0xa99d14[_0x308d6f('0x580')]||[];})[_0x58ac6e('0xaa5')](function(){var _0x1f065f=_0x58ac6e;return _0xbe97be[_0x1f065f('0x1a50')][_0x1f065f('0x2122')]({'userProfileId':_0x4e843b[_0x1f065f('0x7fc')]['userProfileId'],'sectionId':0x44f})['$promise'];})[_0x58ac6e('0xaa5')](function(_0x117d0c){var _0xc9ecd1=_0x58ac6e,_0x566504=_0x117d0c&&_0x117d0c['rows']?_0x117d0c[_0xc9ecd1('0x580')][0x0]:null;if(!_0x566504){var _0x385322=[],_0x27b3f5=null;_0x4e843b[_0xc9ecd1('0x1181')]&&(_0x27b3f5=_0x51538b()[_0xc9ecd1('0xe9e')](_0x4e843b[_0xc9ecd1('0x8d1')],{'id':Number(_0x4e843b[_0xc9ecd1('0x1181')]['SquareProjectId'])}));for(var _0xd8c34c=0x0;_0xd8c34c<_0x4e843b[_0xc9ecd1('0x8d1')][_0xc9ecd1('0x2587')];_0xd8c34c++){_0x27b3f5&&_0x4e843b['projects'][_0xd8c34c]['id']===_0x27b3f5['id']&&(_0x4e843b[_0xc9ecd1('0x8d1')][_0xd8c34c][_0xc9ecd1('0x12eb')]=![],_0x385322[_0xc9ecd1('0x1599')](_0x4e843b['projects'][_0xd8c34c]));}_0x4e843b[_0xc9ecd1('0x8d1')]=_0x385322;}else{if(!_0x566504[_0xc9ecd1('0x26cc')])return _0xbe97be[_0xc9ecd1('0x249a')][_0xc9ecd1('0x2122')]({'sectionId':_0x566504['id']})[_0xc9ecd1('0x1dc2')]['then'](function(_0x115454){var _0x534197=_0xc9ecd1,_0x21ea2b=_0x51538b()[_0x534197('0x1246')](_0x115454['rows'],function(_0x1df2d9){var _0xaedbd4=_0x534197;return _0x51538b()[_0xaedbd4('0xe9e')](_0x4e843b['projects'],{'id':_0x1df2d9[_0xaedbd4('0xbcd')]});}),_0x51ca5f=null;_0x4e843b['ivrCampaign']&&(_0x51ca5f=_0x51538b()[_0x534197('0xe9e')](_0x4e843b[_0x534197('0x8d1')],{'id':Number(_0x4e843b[_0x534197('0x1181')][_0x534197('0x4da')])}));if(_0x51ca5f&&!_0x51538b()[_0x534197('0x2c2')](_0x21ea2b,['id',_0x51ca5f['id']])){var _0x35afa8=_0x51538b()['find'](_0x4e843b[_0x534197('0x8d1')],{'id':_0x51ca5f['id']});_0x35afa8['canSelect']=![],_0x21ea2b['push'](_0x35afa8);}_0x4e843b[_0x534197('0x8d1')]=_0x21ea2b;});}})[_0x58ac6e('0x253d')](function(_0x3c3758){var _0x5258ac=_0x58ac6e;_0x4dd845[_0x5258ac('0x187f')]({'title':_0x3c3758['status']?'API:'+_0x3c3758[_0x5258ac('0x2fa')]+'\x20-\x20'+_0x3c3758[_0x5258ac('0x24df')]:_0x5258ac('0x19d7'),'msg':_0x3c3758[_0x5258ac('0x10fd')]?JSON[_0x5258ac('0xa48')](_0x3c3758[_0x5258ac('0x10fd')]):_0x3c3758[_0x5258ac('0x684')]()});}),_0x41a8b8[_0x58ac6e('0x26e8')](_0x58ac6e('0x178b'))?_0xbe97be[_0x58ac6e('0x1c21')][_0x58ac6e('0x2122')]({'fields':_0x58ac6e('0x17fe'),'sort':_0x58ac6e('0x25d6'),'IntervalId':'null'})[_0x58ac6e('0x1dc2')]['then'](function(_0x430ebb){var _0x5bf2f5=_0x58ac6e;_0x4e843b[_0x5bf2f5('0x1c21')]=_0x430ebb[_0x5bf2f5('0x580')]||[];})['catch'](function(_0x2583cb){var _0x496928=_0x58ac6e;_0x4dd845[_0x496928('0x187f')]({'title':_0x2583cb['status']?_0x496928('0x16c2')+_0x2583cb[_0x496928('0x2fa')]+_0x496928('0x169e')+_0x2583cb[_0x496928('0x24df')]:_0x496928('0x11a8'),'msg':_0x2583cb['data']?JSON[_0x496928('0xa48')](_0x2583cb[_0x496928('0x10fd')]):_0x2583cb[_0x496928('0x684')]()});}):_0xbe97be['interval'][_0x58ac6e('0x2122')]({'fields':'id,name','sort':_0x58ac6e('0x25d6'),'IntervalId':'null'})[_0x58ac6e('0x1dc2')][_0x58ac6e('0xaa5')](function(_0x2007a0){var _0x2bee8a=_0x58ac6e;_0x4e843b[_0x2bee8a('0x1c21')]=_0x2007a0[_0x2bee8a('0x580')]||[];})[_0x58ac6e('0xaa5')](function(){var _0x40f928=_0x58ac6e;return _0xbe97be[_0x40f928('0x1a50')][_0x40f928('0x2122')]({'userProfileId':_0x4e843b[_0x40f928('0x7fc')]['userProfileId'],'sectionId':0x3ec})[_0x40f928('0x1dc2')];})[_0x58ac6e('0xaa5')](function(_0x248b6d){var _0x28b79a=_0x58ac6e,_0x3f7216=_0x248b6d&&_0x248b6d['rows']?_0x248b6d[_0x28b79a('0x580')][0x0]:null;if(!_0x3f7216){var _0x208a97=[],_0x2838a5=null;_0x4e843b[_0x28b79a('0x1181')]&&(_0x2838a5=_0x51538b()[_0x28b79a('0xe9e')](_0x4e843b[_0x28b79a('0x1c21')],{'id':Number(_0x4e843b['ivrCampaign'][_0x28b79a('0x1f8c')])}));for(var _0x2c4a0a=0x0;_0x2c4a0a<_0x4e843b[_0x28b79a('0x1c21')][_0x28b79a('0x2587')];_0x2c4a0a++){_0x2838a5&&_0x4e843b['interval'][_0x2c4a0a]['id']===_0x2838a5['id']&&(_0x4e843b[_0x28b79a('0x1c21')][_0x2c4a0a]['canSelect']=![],_0x208a97[_0x28b79a('0x1599')](_0x4e843b['interval'][_0x2c4a0a]));}_0x4e843b[_0x28b79a('0x1c21')]=_0x208a97;}else{if(!_0x3f7216[_0x28b79a('0x26cc')])return _0xbe97be['userProfileResource'][_0x28b79a('0x2122')]({'sectionId':_0x3f7216['id']})[_0x28b79a('0x1dc2')][_0x28b79a('0xaa5')](function(_0x267a49){var _0x5dd310=_0x28b79a,_0x2e5d3c=_0x51538b()[_0x5dd310('0x1246')](_0x267a49[_0x5dd310('0x580')],function(_0x10572d){var _0x53971c=_0x5dd310;return _0x51538b()[_0x53971c('0xe9e')](_0x4e843b['interval'],{'id':_0x10572d[_0x53971c('0xbcd')]});}),_0x3b4232=null;_0x4e843b[_0x5dd310('0x1181')]&&(_0x3b4232=_0x51538b()[_0x5dd310('0xe9e')](_0x4e843b[_0x5dd310('0x1c21')],{'id':Number(_0x4e843b[_0x5dd310('0x1181')][_0x5dd310('0x1f8c')])}));if(_0x3b4232&&!_0x51538b()['some'](_0x2e5d3c,['id',_0x3b4232['id']])){var _0x33fe7d=_0x51538b()[_0x5dd310('0xe9e')](_0x4e843b[_0x5dd310('0x1c21')],{'id':_0x3b4232['id']});_0x33fe7d['canSelect']=![],_0x2e5d3c['push'](_0x33fe7d);}_0x4e843b[_0x5dd310('0x1c21')]=_0x2e5d3c;});}})['catch'](function(_0x5a8813){var _0x3df823=_0x58ac6e;_0x4dd845[_0x3df823('0x187f')]({'title':_0x5a8813[_0x3df823('0x2fa')]?'API:'+_0x5a8813['status']+_0x3df823('0x169e')+_0x5a8813['statusText']:_0x3df823('0x2313'),'msg':_0x5a8813['data']?JSON[_0x3df823('0xa48')](_0x5a8813[_0x3df823('0x10fd')]):_0x5a8813[_0x3df823('0x684')]()});});function _0x1f5abd(){var _0x5619ce=_0x58ac6e;_0x4e843b['errors']=[],_0xbe97be[_0x5619ce('0xe8d')][_0x5619ce('0x242b')](_0x4e843b[_0x5619ce('0x1181')])[_0x5619ce('0x1dc2')][_0x5619ce('0xaa5')](function(_0x452779){var _0x44dcd5=_0x5619ce;_0x4e843b[_0x44dcd5('0x1ee9')][_0x44dcd5('0x6ee')](_0x452779[_0x44dcd5('0x256a')]()),_0x4dd845[_0x44dcd5('0xe10')]({'title':'IvrCampaign\x20properly\x20created','msg':_0x4e843b['ivrCampaign'][_0x44dcd5('0x25d6')]?_0x4e843b[_0x44dcd5('0x1181')][_0x44dcd5('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x1abb91(_0x452779);})[_0x5619ce('0x253d')](function(_0x591a05){var _0x1c6b05=_0x5619ce;if(_0x591a05['data']&&_0x591a05[_0x1c6b05('0x10fd')][_0x1c6b05('0x4c6')]&&_0x591a05[_0x1c6b05('0x10fd')][_0x1c6b05('0x4c6')][_0x1c6b05('0x2587')]){_0x4e843b['errors']=_0x591a05[_0x1c6b05('0x10fd')]['errors']||[{'message':_0x591a05[_0x1c6b05('0x684')](),'type':_0x1c6b05('0x1fe2')}];for(var _0x2eb1af=0x0;_0x2eb1af<_0x591a05[_0x1c6b05('0x10fd')][_0x1c6b05('0x4c6')][_0x1c6b05('0x2587')];_0x2eb1af+=0x1){_0x4dd845[_0x1c6b05('0x187f')]({'title':_0x591a05['data']['errors'][_0x2eb1af][_0x1c6b05('0x6c8')],'msg':_0x591a05['data']['errors'][_0x2eb1af][_0x1c6b05('0x1402')]});}}else _0x4dd845[_0x1c6b05('0x187f')]({'title':_0x591a05['status']?_0x1c6b05('0x16c2')+_0x591a05['status']+_0x1c6b05('0x169e')+_0x591a05[_0x1c6b05('0x24df')]:_0x1c6b05('0x1fe2'),'msg':_0x591a05[_0x1c6b05('0x10fd')]?JSON[_0x1c6b05('0xa48')](_0x591a05[_0x1c6b05('0x10fd')][_0x1c6b05('0x1402')]):_0x591a05[_0x1c6b05('0x684')]()});});}function _0x9744b9(){var _0x5071f8=_0x58ac6e;_0x4e843b[_0x5071f8('0x4c6')]=[],_0xbe97be['campaign'][_0x5071f8('0x264e')]({'id':_0x4e843b[_0x5071f8('0x1181')]['id']},_0x4e843b['ivrCampaign'])[_0x5071f8('0x1dc2')][_0x5071f8('0xaa5')](function(_0x21d9ec){var _0x13cdc1=_0x5071f8,_0x25ff56=_0x51538b()['find'](_0x4e843b[_0x13cdc1('0x1ee9')],{'id':_0x21d9ec['id']});_0x25ff56&&_0x51538b()[_0x13cdc1('0x283c')](_0x25ff56,_0x51538b()[_0x13cdc1('0x104e')](_0x21d9ec[_0x13cdc1('0x256a')](),_0x51538b()[_0x13cdc1('0x9f2')](_0x25ff56))),_0x4dd845[_0x13cdc1('0xe10')]({'title':'IvrCampaign\x20properly\x20saved!','msg':_0x4e843b[_0x13cdc1('0x1181')][_0x13cdc1('0x25d6')]?_0x4e843b['ivrCampaign'][_0x13cdc1('0x25d6')]+_0x13cdc1('0x20bf'):''}),_0x1abb91(_0x21d9ec);})[_0x5071f8('0x253d')](function(_0xb3a280){var _0x2b763f=_0x5071f8;if(_0xb3a280[_0x2b763f('0x10fd')]&&_0xb3a280[_0x2b763f('0x10fd')][_0x2b763f('0x4c6')]&&_0xb3a280[_0x2b763f('0x10fd')][_0x2b763f('0x4c6')][_0x2b763f('0x2587')]){_0x4e843b[_0x2b763f('0x4c6')]=_0xb3a280['data'][_0x2b763f('0x4c6')]||[{'message':_0xb3a280['toString'](),'type':_0x2b763f('0x2761')}];for(var _0x4527b6=0x0;_0x4527b6<_0xb3a280[_0x2b763f('0x10fd')][_0x2b763f('0x4c6')][_0x2b763f('0x2587')];_0x4527b6++){_0x4dd845[_0x2b763f('0x187f')]({'title':_0xb3a280[_0x2b763f('0x10fd')][_0x2b763f('0x4c6')][_0x4527b6][_0x2b763f('0x6c8')],'msg':_0xb3a280[_0x2b763f('0x10fd')][_0x2b763f('0x4c6')][_0x4527b6][_0x2b763f('0x1402')]});}}else _0x4dd845['error']({'title':_0xb3a280[_0x2b763f('0x2fa')]?_0x2b763f('0x16c2')+_0xb3a280[_0x2b763f('0x2fa')]+_0x2b763f('0x169e')+_0xb3a280[_0x2b763f('0x24df')]:_0x2b763f('0x2761'),'msg':_0xb3a280[_0x2b763f('0x10fd')]?JSON['stringify'](_0xb3a280[_0x2b763f('0x10fd')][_0x2b763f('0x1402')]):_0xb3a280[_0x2b763f('0x684')]()});});}function _0x249dea(_0x2394ab){var _0x151a22=_0x58ac6e;_0x4e843b['errors']=[];var _0x520946=_0xda25e7[_0x151a22('0x281e')]()[_0x151a22('0x110a')](_0x151a22('0x12a3'))[_0x151a22('0x15af')]('The\x20ivrCampaign\x20will\x20be\x20deleted.')[_0x151a22('0x5b5')](_0x151a22('0x1884'))['ok'](_0x151a22('0x1e76'))[_0x151a22('0x2030')](_0x151a22('0x9c6'))[_0x151a22('0x116d')](_0x2394ab);_0xda25e7[_0x151a22('0x1e6d')](_0x520946)[_0x151a22('0xaa5')](function(){var _0x3adc92=_0x151a22;_0xbe97be['campaign'][_0x3adc92('0x926')]({'id':_0x4e843b[_0x3adc92('0x1181')]['id']})['$promise'][_0x3adc92('0xaa5')](function(){var _0x38054a=_0x3adc92;_0x51538b()[_0x38054a('0xf6d')](_0x4e843b[_0x38054a('0x1ee9')],{'id':_0x4e843b[_0x38054a('0x1181')]['id']}),_0x4dd845[_0x38054a('0xe10')]({'title':_0x38054a('0x1ace'),'msg':(_0x4e843b[_0x38054a('0x1181')]['name']||'ivrCampaign')+_0x38054a('0xcd9')}),_0x1abb91(_0x4e843b[_0x38054a('0x1181')]);})[_0x3adc92('0x253d')](function(_0x464b5c){var _0x470027=_0x3adc92;if(_0x464b5c[_0x470027('0x10fd')]&&_0x464b5c[_0x470027('0x10fd')]['errors']&&_0x464b5c['data'][_0x470027('0x4c6')][_0x470027('0x2587')]){_0x4e843b['errors']=_0x464b5c[_0x470027('0x10fd')][_0x470027('0x4c6')]||[{'message':_0x464b5c[_0x470027('0x684')](),'type':_0x470027('0x17cc')}];for(var _0x4de946=0x0;_0x4de946<_0x464b5c[_0x470027('0x10fd')][_0x470027('0x4c6')][_0x470027('0x2587')];_0x4de946++){_0x4dd845[_0x470027('0x187f')]({'title':_0x464b5c['data'][_0x470027('0x4c6')][_0x4de946]['type'],'msg':_0x464b5c[_0x470027('0x10fd')]['errors'][_0x4de946][_0x470027('0x1402')]});}}else _0x4dd845['error']({'title':_0x464b5c['status']?'API:'+_0x464b5c['status']+'\x20-\x20'+_0x464b5c['statusText']:_0x470027('0x17cc'),'msg':_0x464b5c[_0x470027('0x10fd')]?JSON[_0x470027('0xa48')](_0x464b5c[_0x470027('0x10fd')][_0x470027('0x1402')]):_0x464b5c[_0x470027('0x1402')]||_0x464b5c[_0x470027('0x684')]()});});},function(){});}function _0x3142b2(_0x573f78){return _0x573f78===null?undefined:new Date(_0x573f78);}function _0x1abb91(_0x212253){var _0x56d034=_0x58ac6e;_0xda25e7[_0x56d034('0x1120')](_0x212253);}}const _0x5a5829=_0x43a1bb;_0x37702b[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'api','ivrCampaign',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x37702b(_0x282ed9,_0x546793,_0x33b815,_0x300d8b,_0x23d170,_0x1da6f6,_0x495ff5,_0x2bd7e3,_0x377fb9){var _0x121a25=_0x1a8446,_0x21a89b=this;_0x21a89b[_0x121a25('0x7fc')]=_0x2bd7e3[_0x121a25('0xacc')](),_0x21a89b['ivrCampaign']=_0x23d170,_0x21a89b[_0x121a25('0xada')]=_0x377fb9,_0x21a89b[_0x121a25('0x1f4')]=_0x121a25('0x1588'),_0x21a89b[_0x121a25('0x1b10')]=_0x121a25('0x16a7'),_0x21a89b[_0x121a25('0x1669')]=_0x121a25('0x12ee'),_0x21a89b[_0x121a25('0x1a2a')]=_0x121a25('0x1585'),_0x21a89b[_0x121a25('0x1a30')]=[],_0x21a89b['allowedItems']=[],_0x21a89b[_0x121a25('0xbf7')]=[],_0x21a89b[_0x121a25('0x215b')]=[],_0x21a89b['startingSelectedItems']=[],_0x21a89b[_0x121a25('0xc54')]=![],_0x21a89b[_0x121a25('0x1aaa')]=![],_0x21a89b[_0x121a25('0x1c23')]={'readOnly':!_0x21a89b[_0x121a25('0xada')][_0x121a25('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':'name','line1':_0x121a25('0x25d6'),'line2':'','line3':'','labelAll':_0x1da6f6['instant']('MOTIONDIALER.ALL_LISTS'),'labelSelected':_0x1da6f6[_0x121a25('0x213f')](_0x121a25('0x67a')),'transferCallback':function _0x2f8e1f(){var _0x5a2e38=_0x121a25,_0x295adb=_0x51538b()[_0x5a2e38('0x9ef')](_0x21a89b[_0x5a2e38('0x214a')],_0x21a89b[_0x5a2e38('0xbf7')],'id');_0x21a89b['pendingChanges']=_0x51538b()[_0x5a2e38('0x116b')](_0x295adb)?![]:!![];}},_0x21a89b[_0x121a25('0x2318')]=_0x5976c1,_0x21a89b[_0x121a25('0x2ee')]=_0x131c75,_0x21a89b[_0x121a25('0x2023')]=_0x3d6d1a;function _0x5976c1(){var _0x115195=_0x121a25;return _0x2bd7e3[_0x115195('0x26e8')](_0x115195('0x178b'))?_0x1febe2()[_0x115195('0x253d')](function(_0x5ed416){var _0x4cb8f8=_0x115195;_0x33b815['error']({'title':_0x5ed416[_0x4cb8f8('0x2fa')]?_0x4cb8f8('0x16c2')+_0x5ed416[_0x4cb8f8('0x2fa')]+_0x4cb8f8('0x169e')+_0x5ed416[_0x4cb8f8('0x24df')]:_0x4cb8f8('0x1e49'),'msg':_0x5ed416[_0x4cb8f8('0x2fa')]?JSON[_0x4cb8f8('0xa48')](_0x5ed416[_0x4cb8f8('0x10fd')]):_0x5ed416[_0x4cb8f8('0x684')]()});}):_0x4e3c45()[_0x115195('0xaa5')](function(_0x2e8120){var _0x393620=_0x115195;return _0x21a89b[_0x393620('0x224d')]=_0x2e8120,_0x1febe2();})[_0x115195('0x253d')](function(_0x34f623){var _0x487a39=_0x115195;_0x33b815['error']({'title':_0x34f623[_0x487a39('0x2fa')]?_0x487a39('0x16c2')+_0x34f623['status']+_0x487a39('0x169e')+_0x34f623['statusText']:_0x487a39('0x1e49'),'msg':_0x34f623['status']?JSON[_0x487a39('0xa48')](_0x34f623[_0x487a39('0x10fd')]):_0x34f623[_0x487a39('0x684')]()});});}function _0x4e3c45(){return _0x546793(function(_0xb98aaf,_0x5a93dc){var _0x1936c7=a0_0x1149;_0x300d8b[_0x1936c7('0x1a50')][_0x1936c7('0x2122')]({'userProfileId':_0x21a89b[_0x1936c7('0x7fc')][_0x1936c7('0x2168')],'name':_0x1936c7('0x1135')})[_0x1936c7('0x1dc2')][_0x1936c7('0xaa5')](function(_0x296989){var _0x5bfcc4=_0x1936c7,_0x79198e=_0x296989&&_0x296989[_0x5bfcc4('0x580')]?_0x296989[_0x5bfcc4('0x580')][0x0]:null;_0xb98aaf(_0x79198e);})[_0x1936c7('0x253d')](function(_0x7a6528){_0x5a93dc(_0x7a6528);});});}function _0x1febe2(){return _0x546793(function(_0x28fd87,_0x48536a){var _0x1b7aa5=a0_0x1149;return _0x534b4f()['then'](function(_0x2644c5){var _0x3e47a6=a0_0x1149;return _0x21a89b['items']=_0x2644c5[_0x3e47a6('0x580')]?_0x2644c5[_0x3e47a6('0x580')]:[],_0x2bd7e3[_0x3e47a6('0x26e8')](_0x3e47a6('0x178b'))?_0x2644c5:_0x21a89b[_0x3e47a6('0x224d')]?_0x21a89b['section']['autoAssociation']?_0x2644c5:_0x440f00():null;})[_0x1b7aa5('0xaa5')](function(_0x31fc28){var _0x276e55=_0x1b7aa5,_0x56a8bc=_0x31fc28&&_0x31fc28[_0x276e55('0x580')]?_0x31fc28[_0x276e55('0x580')]:[];return _0x21a89b[_0x276e55('0x11b9')]=_0x51538b()[_0x276e55('0x1246')](_0x56a8bc,function(_0x326725){var _0x308e6b=_0x276e55;return _0x51538b()[_0x308e6b('0xe9e')](_0x21a89b['items'],{'id':_0x2bd7e3[_0x308e6b('0x26e8')](_0x308e6b('0x178b'))||_0x21a89b[_0x308e6b('0x224d')][_0x308e6b('0x26cc')]?_0x326725['id']:_0x326725[_0x308e6b('0xbcd')]});}),_0x21a89b[_0x276e55('0x215b')]=angular[_0x276e55('0x20a')](_0x21a89b[_0x276e55('0x11b9')]),_0x21a89b['items'][_0x276e55('0x15b5')](function(_0xc8a30b){var _0x282d2f=_0x276e55,_0x591f51=_0x51538b()[_0x282d2f('0xe9e')](_0x21a89b['allowedItems'],{'id':_0xc8a30b['id']});_0x21a89b[_0x282d2f('0x7fc')]['role']===_0x282d2f('0x178b')?_0xc8a30b[_0x282d2f('0x145d')]=!![]:_0xc8a30b[_0x282d2f('0x145d')]=typeof _0x591f51!==_0x282d2f('0x1574')?!![]:![];}),_0x38ac43();})[_0x1b7aa5('0xaa5')](function(_0x48a278){var _0x2d6180=_0x1b7aa5,_0x1eb8a1=_0x48a278&&_0x48a278['rows']?_0x48a278[_0x2d6180('0x580')]:[];_0x21a89b[_0x2d6180('0xbf7')]=_0x51538b()['map'](_0x1eb8a1,function(_0x5db64b){var _0x3b4336=_0x2d6180;return _0x51538b()[_0x3b4336('0xe9e')](_0x21a89b[_0x3b4336('0x1a30')],{'id':_0x5db64b['id']});}),_0x21a89b[_0x2d6180('0x214a')]=angular[_0x2d6180('0x20a')](_0x21a89b[_0x2d6180('0xbf7')]),_0x21a89b[_0x2d6180('0x1c23')][_0x2d6180('0xbf7')]=_0x21a89b[_0x2d6180('0xbf7')],_0x21a89b['dualMultiselectOptions'][_0x2d6180('0x1a30')]=_0x51538b()['differenceBy'](_0x21a89b[_0x2d6180('0x11b9')],_0x21a89b[_0x2d6180('0x1c23')][_0x2d6180('0xbf7')],'id'),_0x28fd87();})[_0x1b7aa5('0x253d')](function(_0x4b7311){_0x48536a(_0x4b7311);});});}function _0x440f00(){return _0x546793(function(_0x561621,_0x2a3870){var _0xd21091=a0_0x1149;return _0x300d8b[_0xd21091('0x249a')][_0xd21091('0x2122')]({'sectionId':_0x21a89b['section']['id'],'nolimit':!![]})['$promise'][_0xd21091('0xaa5')](function(_0x56444c){_0x561621(_0x56444c);})['catch'](function(_0x15ea54){_0x2a3870(_0x15ea54);});});}function _0x38ac43(){return _0x546793(function(_0x1a9044,_0x1970c7){var _0x4fdcbe=a0_0x1149,_0x11217d=_0x300d8b[_0x21a89b[_0x4fdcbe('0x1f4')]];return _0x11217d[_0x21a89b[_0x4fdcbe('0x1b10')]]({'id':_0x21a89b[_0x4fdcbe('0x1181')]['id'],'fields':_0x4fdcbe('0x17fe'),'nolimit':!![]})[_0x4fdcbe('0x1dc2')][_0x4fdcbe('0xaa5')](function(_0xda3838){_0x1a9044(_0xda3838);})['catch'](function(_0x189e85){_0x1970c7(_0x189e85);});});}function _0x534b4f(){return _0x546793(function(_0x4372cc,_0x5b0885){var _0x1e5b64=a0_0x1149;return _0x300d8b[_0x1e5b64('0x26b4')]['get']({'fields':_0x1e5b64('0x17fe'),'nolimit':!![]})[_0x1e5b64('0x1dc2')][_0x1e5b64('0xaa5')](function(_0x82b1a5){_0x4372cc(_0x82b1a5);})['catch'](function(_0x21e31a){_0x5b0885(_0x21e31a);});});}function _0x38c911(_0x1634e9){return _0x546793(function(_0x3e0d25,_0x1e13fb){var _0x54f273=a0_0x1149;if(_0x51538b()['isEmpty'](_0x1634e9))_0x3e0d25();else{var _0x19e4cd=_0x300d8b[_0x21a89b[_0x54f273('0x1f4')]];_0x19e4cd[_0x21a89b[_0x54f273('0x1669')]]({'id':_0x21a89b[_0x54f273('0x1181')]['id'],'ids':_0x51538b()[_0x54f273('0x1246')](_0x1634e9,'id')})[_0x54f273('0x1dc2')][_0x54f273('0xaa5')](function(){_0x3e0d25();})['catch'](function(_0x792042){_0x1e13fb(_0x792042);});}});}function _0xebbd64(_0x2c5f41){return _0x546793(function(_0x4bb028,_0x49d511){var _0x6c7f2a=a0_0x1149;if(_0x51538b()['isEmpty'](_0x2c5f41))_0x4bb028();else{var _0x3c4d9f=_0x300d8b[_0x21a89b[_0x6c7f2a('0x1f4')]];_0x3c4d9f[_0x21a89b[_0x6c7f2a('0x1a2a')]]({'id':_0x21a89b[_0x6c7f2a('0x1181')]['id'],'ids':_0x51538b()[_0x6c7f2a('0x1246')](_0x2c5f41,'id')})[_0x6c7f2a('0x1dc2')][_0x6c7f2a('0xaa5')](function(){_0x4bb028();})[_0x6c7f2a('0x253d')](function(_0x9b694a){_0x49d511(_0x9b694a);});}});}function _0x131c75(){var _0x1a8c82=_0x121a25;_0x21a89b[_0x1a8c82('0x1aaa')]=!![];var _0x2e062f=_0x51538b()['differenceBy'](_0x21a89b[_0x1a8c82('0x214a')],_0x21a89b['selectedItems'],'id'),_0x4f64bc=_0x51538b()[_0x1a8c82('0x1ebb')](_0x21a89b['selectedItems'],_0x21a89b[_0x1a8c82('0x214a')],'id');return _0xebbd64(_0x2e062f)[_0x1a8c82('0xaa5')](function(){return _0x38c911(_0x4f64bc);})['then'](function(){var _0x331e94=_0x1a8c82;_0x21a89b['pendingChanges']=![],_0x21a89b[_0x331e94('0x215b')]=angular[_0x331e94('0x20a')](_0x21a89b[_0x331e94('0x11b9')]),_0x21a89b[_0x331e94('0x214a')]=angular[_0x331e94('0x20a')](_0x21a89b['selectedItems']),_0x33b815[_0x331e94('0xe10')]({'title':'SUCCESS','msg':_0x331e94('0x15bb')});})[_0x1a8c82('0x253d')](function(_0x3a5312){var _0x5bd8a5=_0x1a8c82;_0x33b815[_0x5bd8a5('0x187f')]({'title':_0x3a5312[_0x5bd8a5('0x2fa')]?_0x5bd8a5('0x16c2')+_0x3a5312[_0x5bd8a5('0x2fa')]+_0x5bd8a5('0x169e')+_0x3a5312[_0x5bd8a5('0x24df')]:_0x5bd8a5('0x2281'),'msg':_0x3a5312[_0x5bd8a5('0x2fa')]?JSON[_0x5bd8a5('0xa48')](_0x3a5312[_0x5bd8a5('0x10fd')]):_0x3a5312[_0x5bd8a5('0x684')]()});})[_0x1a8c82('0x1889')](function(){_0x21a89b['loading']=![];});}function _0x3d6d1a(){var _0x3b6315=_0x121a25;_0x282ed9[_0x3b6315('0x1120')]();}}const _0x238387=_0x37702b;_0x22fe69['$inject']=[_0x1a8446('0x2378'),'$state','toasty',_0x1a8446('0x157'),_0x1a8446('0x1181'),_0x1a8446('0x1ee9'),'$translate'];function _0x22fe69(_0x297f79,_0x9d2a7,_0x32e380,_0x17bae2,_0x1756e4,_0x321d89,_0xdadd4c){var _0x322ee2=_0x1a8446,_0x524ff9=this;_0x524ff9[_0x322ee2('0x2341')]=!![],_0x524ff9[_0x322ee2('0x1181')]=angular[_0x322ee2('0x20a')](_0x1756e4),_0x524ff9[_0x322ee2('0x1ee9')]=_0x321d89,_0x524ff9['title']=_0xdadd4c[_0x322ee2('0x213f')](_0x322ee2('0x984'));_0x1756e4&&_0x1756e4[_0x322ee2('0x25d6')]&&(_0x524ff9[_0x322ee2('0x110a')]+=':\x20'+_0x1756e4[_0x322ee2('0x25d6')]);_0x524ff9[_0x322ee2('0x150a')]=_0x4e9a1a,_0x524ff9['closeDialog']=_0x1374bb;function _0x4e9a1a(){var _0x4ab552=_0x322ee2;return _0x17bae2['campaign']['clone']({'id':_0x1756e4['id']},_0x524ff9[_0x4ab552('0x1181')])[_0x4ab552('0x1dc2')][_0x4ab552('0xaa5')](function(_0x314fde){var _0x227d2c=_0x4ab552;_0x524ff9[_0x227d2c('0x1ee9')][_0x227d2c('0x6ee')](_0x314fde['toJSON']()),_0x32e380[_0x227d2c('0xe10')]({'title':'IvrCampaign\x20properly\x20cloned','msg':_0x524ff9[_0x227d2c('0x1181')]['name']?_0x524ff9[_0x227d2c('0x1181')]['name']+_0x227d2c('0x136'):''}),_0x9d2a7['go']('app.motiondialer.ivrCampaigns.edit',{'id':_0x314fde['id']}),_0x1374bb(_0x314fde);})[_0x4ab552('0x253d')](function(_0x4ed5c5){var _0x25ff97=_0x4ab552;if(_0x4ed5c5['data']&&_0x4ed5c5['data'][_0x25ff97('0x4c6')]&&_0x4ed5c5[_0x25ff97('0x10fd')]['errors'][_0x25ff97('0x2587')]){_0x524ff9[_0x25ff97('0x4c6')]=_0x4ed5c5[_0x25ff97('0x10fd')][_0x25ff97('0x4c6')]||[{'message':_0x4ed5c5['toString'](),'type':_0x25ff97('0x13be')}];for(var _0x13c467=0x0;_0x13c467<_0x4ed5c5[_0x25ff97('0x10fd')]['errors'][_0x25ff97('0x2587')];_0x13c467+=0x1){_0x32e380[_0x25ff97('0x187f')]({'title':_0x4ed5c5[_0x25ff97('0x10fd')]['errors'][_0x13c467][_0x25ff97('0x6c8')],'msg':_0x4ed5c5[_0x25ff97('0x10fd')][_0x25ff97('0x4c6')][_0x13c467][_0x25ff97('0x1402')]});}}else _0x32e380[_0x25ff97('0x187f')]({'title':_0x4ed5c5['status']?_0x25ff97('0x16c2')+_0x4ed5c5['status']+_0x25ff97('0x169e')+_0x4ed5c5[_0x25ff97('0x24df')]:_0x25ff97('0x13be'),'msg':_0x4ed5c5['data']?JSON[_0x25ff97('0xa48')](_0x4ed5c5['data'][_0x25ff97('0x1402')]):_0x4ed5c5['toString']()});});}function _0x1374bb(_0x3de18c){var _0x4b196a=_0x322ee2;_0x297f79[_0x4b196a('0x1120')](_0x3de18c);}}const _0x323dbe=_0x22fe69;_0x2c20ba[_0x1a8446('0x1e33')]=['$cookies',_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q','$translate',_0x1a8446('0x186b'),'$mdDialog','$document',_0x1a8446('0x2a4'),'api',_0x1a8446('0x1dfd')];function _0x2c20ba(_0x43bca4,_0x441934,_0x11bb38,_0x1b580a,_0x1dc72a,_0x384c2e,_0x32f81d,_0x2d641f,_0x2ee0e3,_0x142e12,_0x57c798){var _0x2f7ebc=_0x1a8446,_0x754ff2=this;_0x754ff2[_0x2f7ebc('0x7fc')]=_0x57c798['getCurrentUser'](),_0x754ff2[_0x2f7ebc('0x1181')]={},_0x754ff2[_0x2f7ebc('0xce0')]={'count':0x0,'rows':[]},_0x754ff2[_0x2f7ebc('0xb94')]=[],_0x754ff2['crudPermissions'],_0x754ff2['query']={'fields':_0x2f7ebc('0x1363'),'sort':_0x2f7ebc('0x133a'),'limit':0xa,'page':0x1},_0x754ff2[_0x2f7ebc('0x2e')]=_0xbe9f79,_0x754ff2[_0x2f7ebc('0x1416')]=_0x3000ec,_0x754ff2[_0x2f7ebc('0xe10')]=_0x59137e,_0x754ff2[_0x2f7ebc('0xc8a')]=_0x212355,_0x754ff2[_0x2f7ebc('0x600')]=_0x4fc6a5,_0x754ff2['deleteIvrCampaignHopperBlack']=_0x5c448e,_0x754ff2[_0x2f7ebc('0x2602')]=_0x2cbb45;function _0xbe9f79(_0x39d395,_0x37fc88){var _0xf14538=_0x2f7ebc;_0x754ff2[_0xf14538('0x1181')]=_0x39d395,_0x754ff2[_0xf14538('0xada')]=typeof _0x37fc88!==_0xf14538('0x1574')?_0x37fc88:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x754ff2['query'][_0xf14538('0x174d')]=_0x754ff2[_0xf14538('0x1181')]['id'],_0x754ff2[_0xf14538('0x582')]['id']=_0x754ff2['ivrCampaign']['id'],_0x212355();}function _0x3000ec(_0x5525da,_0x512e8a){var _0x1a88bb=_0x2f7ebc,_0x26db28=_0x32f81d['confirm']()[_0x1a88bb('0x110a')](_0x1a88bb('0x1b57'))['htmlContent'](_0x1a88bb('0x389')+(_0x5525da[_0x1a88bb('0x25d6')]||_0x5525da['id']&&_0x51538b()[_0x1a88bb('0x1791')](_0x1a88bb('0x22e1'))+_0x5525da['id']||_0x1a88bb('0x982'))+_0x1a88bb('0x697')+'\x20will\x20be\x20deleted.')[_0x1a88bb('0x5b5')](_0x1a88bb('0xff2'))['targetEvent'](_0x512e8a)['ok']('OK')[_0x1a88bb('0x2030')]('CANCEL');_0x32f81d[_0x1a88bb('0x1e6d')](_0x26db28)[_0x1a88bb('0xaa5')](function(){_0x5c448e(_0x5525da);},function(){var _0x1b4f36=_0x1a88bb;console[_0x1b4f36('0x18d5')](_0x1b4f36('0x2410'));});}function _0x59137e(_0x5bc581){var _0x4f2d39=_0x2f7ebc;_0x754ff2[_0x4f2d39('0xce0')]=_0x5bc581||{'count':0x0,'rows':[]};}function _0x212355(){var _0x1ba1c0=_0x2f7ebc;_0x754ff2['query']['offset']=(_0x754ff2[_0x1ba1c0('0x582')]['page']-0x1)*_0x754ff2['query']['limit'],_0x754ff2[_0x1ba1c0('0x159a')]=_0x142e12[_0x1ba1c0('0xe8d')][_0x1ba1c0('0x15e5')](_0x754ff2[_0x1ba1c0('0x582')],_0x59137e)[_0x1ba1c0('0x1dc2')];}function _0x5c448e(_0x48c16d){var _0x1c7890=_0x2f7ebc;_0x142e12[_0x1c7890('0x982')][_0x1c7890('0x926')]({'id':_0x48c16d['id']})['$promise'][_0x1c7890('0xaa5')](function(){var _0x3a493d=_0x1c7890;_0x51538b()[_0x3a493d('0xf6d')](_0x754ff2['ivrCampaignHopperBlacks'][_0x3a493d('0x580')],{'id':_0x48c16d['id']}),_0x754ff2['ivrCampaignHopperBlacks'][_0x3a493d('0xd15')]-=0x1,!_0x754ff2[_0x3a493d('0xce0')][_0x3a493d('0x580')][_0x3a493d('0x2587')]&&_0x212355(),_0x2ee0e3[_0x3a493d('0xe10')]({'title':'HopperBlack\x20deleted!','msg':_0x48c16d[_0x3a493d('0x25d6')]?_0x48c16d['name']+_0x3a493d('0xcd9'):''});})[_0x1c7890('0x253d')](function(_0x399c4e){var _0x5e34ec=_0x1c7890;if(_0x399c4e[_0x5e34ec('0x10fd')]&&_0x399c4e[_0x5e34ec('0x10fd')]['errors']&&_0x399c4e[_0x5e34ec('0x10fd')][_0x5e34ec('0x4c6')][_0x5e34ec('0x2587')]){_0x754ff2['errors']=_0x399c4e[_0x5e34ec('0x10fd')]['errors']||[{'message':_0x399c4e[_0x5e34ec('0x684')](),'type':'SYSTEM:GETcampaign'}];for(var _0x544d19=0x0;_0x544d19<_0x399c4e[_0x5e34ec('0x10fd')][_0x5e34ec('0x4c6')][_0x5e34ec('0x2587')];_0x544d19++){_0x2ee0e3[_0x5e34ec('0x187f')]({'title':_0x399c4e['data'][_0x5e34ec('0x4c6')][_0x544d19][_0x5e34ec('0x6c8')],'msg':_0x399c4e[_0x5e34ec('0x10fd')]['errors'][_0x544d19]['message']});}}else _0x2ee0e3['error']({'title':_0x399c4e[_0x5e34ec('0x2fa')]?_0x5e34ec('0x16c2')+_0x399c4e[_0x5e34ec('0x2fa')]+_0x5e34ec('0x169e')+_0x399c4e[_0x5e34ec('0x24df')]:_0x5e34ec('0x1d8d'),'msg':_0x399c4e[_0x5e34ec('0x10fd')]?JSON[_0x5e34ec('0xa48')](_0x399c4e[_0x5e34ec('0x10fd')][_0x5e34ec('0x1402')]):_0x399c4e[_0x5e34ec('0x1402')]||_0x399c4e['toString']()});});}function _0x4fc6a5(){var _0x42efb9=_0x2f7ebc,_0x95e256=angular[_0x42efb9('0x20a')](_0x754ff2[_0x42efb9('0xb94')]);return _0x754ff2[_0x42efb9('0xb94')]=[],_0x95e256;}function _0x2cbb45(_0x26d33a){var _0x34e9ce=_0x2f7ebc,_0x4a6f75=_0x32f81d['confirm']()[_0x34e9ce('0x110a')](_0x34e9ce('0x14ac'))['htmlContent'](_0x34e9ce('0x389')+_0x754ff2[_0x34e9ce('0xb94')]['length']+'\x20selected'+_0x34e9ce('0x210d'))[_0x34e9ce('0x5b5')](_0x34e9ce('0x249'))[_0x34e9ce('0x116d')](_0x26d33a)['ok']('OK')[_0x34e9ce('0x2030')](_0x34e9ce('0x2410'));_0x32f81d[_0x34e9ce('0x1e6d')](_0x4a6f75)[_0x34e9ce('0xaa5')](function(){var _0x2a8dbf=_0x34e9ce;_0x754ff2['selectedIvrCampaignHopperBlacks']['forEach'](function(_0x5f0521){_0x5c448e(_0x5f0521);}),_0x754ff2[_0x2a8dbf('0xb94')]=[];});}var _0x190405=!![],_0x2d5466=0x1;_0x441934[_0x2f7ebc('0x1ccf')]('vm_dc.query.filter',function(_0x43ed18,_0x70e9cc){var _0x5e3fee=_0x2f7ebc;_0x190405?_0x384c2e(function(){_0x190405=![];}):(!_0x70e9cc&&(_0x2d5466=_0x754ff2[_0x5e3fee('0x582')][_0x5e3fee('0x41')]),_0x43ed18!==_0x70e9cc&&(_0x754ff2[_0x5e3fee('0x582')][_0x5e3fee('0x41')]=0x1),!_0x43ed18&&(_0x754ff2['query']['page']=_0x2d5466),_0x212355());});}const _0x4a44fe=_0x2c20ba;_0x5da576[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'toasty',_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x5da576(_0x47ae22,_0x585461,_0x4d2a95,_0x4fd3a5,_0x4f1161,_0xafbdf5,_0x178572,_0x18113a,_0x51d6d3,_0x19e3d1,_0x166c02){var _0x3e9e64=_0x1a8446,_0x27c12e=this;_0x27c12e[_0x3e9e64('0x7fc')]=_0x166c02[_0x3e9e64('0xacc')](),_0x27c12e[_0x3e9e64('0x1cfb')]={},_0x27c12e[_0x3e9e64('0x1181')]={},_0x27c12e[_0x3e9e64('0x220')]={'count':0x0,'rows':[]},_0x27c12e['selectedIvrCampaignHopperFinals']=[],_0x27c12e[_0x3e9e64('0xada')],_0x27c12e['query']={'fields':_0x3e9e64('0x2186'),'sort':_0x3e9e64('0x133a'),'limit':0xa,'page':0x1},_0x27c12e['init']=_0x186905,_0x27c12e['deleteConfirm']=_0x3185f6,_0x27c12e[_0x3e9e64('0xe10')]=_0x180cf9,_0x27c12e[_0x3e9e64('0x1721')]=_0x27ef71,_0x27c12e[_0x3e9e64('0x17a')]=_0x1549b7,_0x27c12e[_0x3e9e64('0x796')]=_0x436e0c,_0x27c12e['deleteSelectedIvrCampaignHopperFinals']=_0x5d6f8e,_0x27c12e[_0x3e9e64('0x21b7')]=_0x2a416d,_0x27c12e['moveContactsIvrCampaignHopperFinal']=_0x5dc39d,_0x27c12e[_0x3e9e64('0x1137')]=_0x583f39,_0x27c12e[_0x3e9e64('0x43a')]=_0x105497,_0x27c12e['moveSelectedIvrCampaignHopperFinals']=_0xa76cdf;function _0x186905(_0x173c1e,_0x56b416){var _0x49c4a9=_0x3e9e64;_0x27c12e[_0x49c4a9('0x1181')]=_0x173c1e,_0x27c12e['crudPermissions']=typeof _0x56b416!==_0x49c4a9('0x1574')?_0x56b416:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x27c12e[_0x49c4a9('0x582')][_0x49c4a9('0x174d')]=_0x27c12e[_0x49c4a9('0x1181')]['id'],_0x27c12e['query']['id']=_0x27c12e[_0x49c4a9('0x1181')]['id'],_0x27ef71();}function _0x3185f6(_0x348f49,_0x5a5b83){var _0x58fe62=_0x3e9e64,_0x3aadb6=_0x178572[_0x58fe62('0x281e')]()[_0x58fe62('0x110a')](_0x58fe62('0x2373'))['htmlContent'](_0x58fe62('0x389')+(_0x348f49['name']||_0x348f49['id']&&_0x51538b()[_0x58fe62('0x1791')](_0x58fe62('0x2247'))+_0x348f49['id']||_0x58fe62('0x116'))+_0x58fe62('0x697')+_0x58fe62('0x210d'))[_0x58fe62('0x5b5')](_0x58fe62('0xf53'))['targetEvent'](_0x5a5b83)['ok']('OK')[_0x58fe62('0x2030')]('CANCEL');_0x178572[_0x58fe62('0x1e6d')](_0x3aadb6)[_0x58fe62('0xaa5')](function(){_0x436e0c(_0x348f49);},function(){var _0x3ef994=_0x58fe62;console['log'](_0x3ef994('0x2410'));});}function _0x180cf9(_0x29627e){_0x27c12e['ivrCampaignHopperFinals']=_0x29627e||{'count':0x0,'rows':[]};}function _0x27ef71(){var _0x32a1b1=_0x3e9e64;_0x27c12e[_0x32a1b1('0x582')][_0x32a1b1('0x8b1')]=(_0x27c12e['query'][_0x32a1b1('0x41')]-0x1)*_0x27c12e[_0x32a1b1('0x582')][_0x32a1b1('0xf4d')],_0x27c12e['promise']=_0x19e3d1[_0x32a1b1('0xe8d')]['getHopperFinals'](_0x27c12e['query'],_0x180cf9)[_0x32a1b1('0x1dc2')];}function _0x436e0c(_0x48b1e6){var _0x24d5e0=_0x3e9e64;_0x19e3d1[_0x24d5e0('0x116')][_0x24d5e0('0x926')]({'id':_0x48b1e6['id']})[_0x24d5e0('0x1dc2')]['then'](function(){var _0x28a66c=_0x24d5e0;_0x51538b()[_0x28a66c('0xf6d')](_0x27c12e[_0x28a66c('0x220')][_0x28a66c('0x580')],{'id':_0x48b1e6['id']}),_0x27c12e[_0x28a66c('0x220')][_0x28a66c('0xd15')]-=0x1,!_0x27c12e['ivrCampaignHopperFinals']['rows'][_0x28a66c('0x2587')]&&_0x27ef71(),_0x51d6d3[_0x28a66c('0xe10')]({'title':'HopperFinal\x20deleted!','msg':_0x48b1e6['name']?_0x48b1e6[_0x28a66c('0x25d6')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x9b1c0b){var _0x16d374=_0x24d5e0;if(_0x9b1c0b[_0x16d374('0x10fd')]&&_0x9b1c0b[_0x16d374('0x10fd')][_0x16d374('0x4c6')]&&_0x9b1c0b[_0x16d374('0x10fd')]['errors'][_0x16d374('0x2587')]){_0x27c12e[_0x16d374('0x4c6')]=_0x9b1c0b['data'][_0x16d374('0x4c6')]||[{'message':_0x9b1c0b[_0x16d374('0x684')](),'type':_0x16d374('0x1d8d')}];for(var _0x293ee0=0x0;_0x293ee0<_0x9b1c0b[_0x16d374('0x10fd')][_0x16d374('0x4c6')]['length'];_0x293ee0++){_0x51d6d3[_0x16d374('0x187f')]({'title':_0x9b1c0b[_0x16d374('0x10fd')][_0x16d374('0x4c6')][_0x293ee0][_0x16d374('0x6c8')],'msg':_0x9b1c0b[_0x16d374('0x10fd')][_0x16d374('0x4c6')][_0x293ee0][_0x16d374('0x1402')]});}}else _0x51d6d3[_0x16d374('0x187f')]({'title':_0x9b1c0b[_0x16d374('0x2fa')]?_0x16d374('0x16c2')+_0x9b1c0b['status']+_0x16d374('0x169e')+_0x9b1c0b[_0x16d374('0x24df')]:_0x16d374('0x1d8d'),'msg':_0x9b1c0b[_0x16d374('0x10fd')]?JSON[_0x16d374('0xa48')](_0x9b1c0b[_0x16d374('0x10fd')][_0x16d374('0x1402')]):_0x9b1c0b[_0x16d374('0x1402')]||_0x9b1c0b['toString']()});});}function _0x1549b7(){var _0x5ab227=_0x3e9e64,_0x136232=angular[_0x5ab227('0x20a')](_0x27c12e['selectedIvrCampaignHopperFinals']);return _0x27c12e[_0x5ab227('0x273e')]=[],_0x136232;}function _0x5d6f8e(_0xbb51a){var _0x3efc54=_0x3e9e64,_0x5c81dc=_0x178572[_0x3efc54('0x281e')]()['title'](_0x3efc54('0x1655'))[_0x3efc54('0x102e')](_0x3efc54('0x389')+_0x27c12e[_0x3efc54('0x273e')][_0x3efc54('0x2587')]+'\x20selected'+_0x3efc54('0x210d'))[_0x3efc54('0x5b5')](_0x3efc54('0x3b'))[_0x3efc54('0x116d')](_0xbb51a)['ok']('OK')[_0x3efc54('0x2030')](_0x3efc54('0x2410'));_0x178572[_0x3efc54('0x1e6d')](_0x5c81dc)[_0x3efc54('0xaa5')](function(){var _0xb79a92=_0x3efc54;_0x27c12e['selectedIvrCampaignHopperFinals'][_0xb79a92('0x15b5')](function(_0x578b26){_0x436e0c(_0x578b26);}),_0x27c12e['selectedIvrCampaignHopperFinals']=[];});}function _0x5dc39d(_0x5d7dd7){var _0xf99efe=_0x3e9e64;_0x19e3d1['cmHopperFinal'][_0xf99efe('0x9d7')]({'id':_0x27c12e[_0xf99efe('0x582')]['id'],'state':_0x5d7dd7})[_0xf99efe('0x1dc2')]['then'](function(_0xa8c7c3){var _0x3c5b1c=_0xf99efe;_0x51538b()[_0x3c5b1c('0x89a')](_0xa8c7c3)&&_0x51538b()['isNil'](_0xa8c7c3[0x0])?_0x51d6d3[_0x3c5b1c('0x3a1')]({'title':_0x3c5b1c('0xbd9'),'msg':'0'}):_0x51d6d3[_0x3c5b1c('0x3a1')]({'title':'Restored\x20Contacts','msg':JSON[_0x3c5b1c('0xa48')](_0xa8c7c3[0x0]['affectedRows'])});})[_0xf99efe('0x253d')](function(_0x5bc5ea){var _0x415c2e=_0xf99efe;_0x51d6d3['error']({'title':_0x5bc5ea[_0x415c2e('0x2fa')]?_0x415c2e('0x16c2')+_0x5bc5ea[_0x415c2e('0x2fa')]+'\x20-\x20'+_0x5bc5ea[_0x415c2e('0x24df')]:'SYSTEM:GETvoiceQueue','msg':_0x5bc5ea[_0x415c2e('0x10fd')]?JSON[_0x415c2e('0xa48')](_0x5bc5ea['data']['message']):_0x5bc5ea[_0x415c2e('0x1402')]||_0x5bc5ea[_0x415c2e('0x684')]()});});}function _0x583f39(_0x464ee1){var _0x2f5238=_0x3e9e64;_0x19e3d1[_0x2f5238('0x9c3')][_0x2f5238('0x1137')]({'id':_0x464ee1})['$promise'][_0x2f5238('0xaa5')](function(_0xf2c1d3){var _0x2d7235=_0x2f5238;_0x51538b()['merge'](_0x27c12e[_0x2d7235('0x1cfb')],_0xf2c1d3[0x0]);})['catch'](function(_0x4e261e){var _0x17f4bd=_0x2f5238;_0x51d6d3[_0x17f4bd('0x187f')]({'title':_0x4e261e[_0x17f4bd('0x2fa')]?_0x17f4bd('0x16c2')+_0x4e261e[_0x17f4bd('0x2fa')]+_0x17f4bd('0x169e')+_0x4e261e['statusText']:_0x17f4bd('0x1d8d'),'msg':_0x4e261e[_0x17f4bd('0x10fd')]?JSON[_0x17f4bd('0xa48')](_0x4e261e[_0x17f4bd('0x10fd')][_0x17f4bd('0x1402')]):_0x4e261e[_0x17f4bd('0x1402')]||_0x4e261e[_0x17f4bd('0x684')]()});});}function _0xa76cdf(_0x521c76){var _0x2cba27=_0x3e9e64,_0x4e387a=_0x178572[_0x2cba27('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?')[_0x2cba27('0x102e')]('\x20Contacts\x20selected'+_0x2cba27('0xa5d'))['ariaLabel']('Restore\x20Contacts')[_0x2cba27('0x116d')](_0x521c76)['ok']('OK')['cancel']('CANCEL');_0x178572[_0x2cba27('0x1e6d')](_0x4e387a)[_0x2cba27('0xaa5')](function(){var _0x3fcf30=_0x2cba27;_0x27c12e['selectedIvrCampaignHopperFinals'][_0x3fcf30('0x15b5')](function(_0x248e5d){_0x2a416d(_0x248e5d);}),_0x27c12e['selectedIvrCampaignHopperFinals']=[];});}function _0x105497(_0x4170d6,_0x5951e8){var _0x9e0fff=_0x3e9e64,_0x28326b=_0x178572['confirm']()[_0x9e0fff('0x110a')](_0x9e0fff('0x1e1a'))[_0x9e0fff('0x102e')](''+_0x9e0fff('0x1dc')+''+_0x9e0fff('0xa5d'))[_0x9e0fff('0x5b5')](_0x9e0fff('0x8ce'))['targetEvent'](_0x5951e8)['ok']('OK')[_0x9e0fff('0x2030')](_0x9e0fff('0x2410'));_0x178572['show'](_0x28326b)['then'](function(){_0x2a416d(_0x4170d6);},function(){var _0xadc673=_0x9e0fff;console[_0xadc673('0x18d5')](_0xadc673('0x2410'));});}function _0x58d979(_0x899a9c){var _0x217772=_0x3e9e64,_0x29d881={};return _0x29d881[_0x217772('0x1a46')]=_0x899a9c[_0x217772('0x1804')],_0x29d881[_0x217772('0x300')]=_0x420d43()()['format'](_0x217772('0x1463')),_0x29d881[_0x217772('0xd4e')]=0x0,_0x29d881[_0x217772('0x104f')]=0x0,_0x29d881[_0x217772('0x1b2')]=0x0,_0x29d881[_0x217772('0x2816')]=0x0,_0x29d881['ContactId']=_0x899a9c[_0x217772('0xb9e')],_0x29d881[_0x217772('0xee0')]=_0x899a9c[_0x217772('0xee0')],_0x29d881[_0x217772('0x1037')]=_0x899a9c['deleted']?null:_0x899a9c[_0x217772('0x1037')],_0x29d881[_0x217772('0x2438')]=_0x899a9c[_0x217772('0x2438')],_0x29d881[_0x217772('0x174d')]=_0x899a9c[_0x217772('0x174d')],_0x29d881[_0x217772('0x13f2')]=_0x899a9c[_0x217772('0x7dd')]?0x3:0x2,_0x29d881[_0x217772('0x7dd')]=_0x899a9c['recallme']?!![]:![],_0x29d881;}function _0xc13cf8(_0x5b2f23){var _0x56c31a=_0x3e9e64,_0x1942e4={};return _0x1942e4[_0x56c31a('0x1804')]=_0x5b2f23[_0x56c31a('0x1804')],_0x1942e4['calleridname']=_0x5b2f23['calleridname'],_0x1942e4[_0x56c31a('0x300')]=_0x420d43()()[_0x56c31a('0x1f27')](_0x56c31a('0x1463')),_0x1942e4[_0x56c31a('0xd4e')]=_0x5b2f23[_0x56c31a('0xd4e')],_0x1942e4[_0x56c31a('0x104f')]=_0x5b2f23[_0x56c31a('0x104f')],_0x1942e4['countnoanswerretry']=_0x5b2f23['countnoanswerretry'],_0x1942e4[_0x56c31a('0x2816')]=_0x5b2f23['countglobal'],_0x1942e4[_0x56c31a('0xb9e')]=_0x5b2f23['ContactId'],_0x1942e4[_0x56c31a('0xee0')]=_0x5b2f23[_0x56c31a('0xee0')],_0x1942e4[_0x56c31a('0x1037')]=_0x166c02[_0x56c31a('0xacc')]()['id'],_0x1942e4[_0x56c31a('0x2438')]=_0x5b2f23[_0x56c31a('0x2438')],_0x1942e4['CampaignId']=_0x5b2f23[_0x56c31a('0x174d')],_0x1942e4['editedat']=_0x420d43()()[_0x56c31a('0x1f27')](_0x56c31a('0x1463')),_0x1942e4[_0x56c31a('0x2646')]=!![],_0x1942e4['state']=0x19,_0x1942e4['statedesc']=_0x56c31a('0x272a'),_0x1942e4['campaign']=_0x5b2f23[_0x56c31a('0xe8d')],_0x1942e4['campaigntype']=_0x5b2f23['VoiceQueueId']?_0x56c31a('0xe26'):'ivr',_0x1942e4;}function _0x2a416d(_0x1c21e4){var _0x1215c6=_0x3e9e64;_0x19e3d1[_0x1215c6('0x9c3')]['checkContactHopper'](_0x1c21e4)[_0x1215c6('0x1dc2')][_0x1215c6('0xaa5')](function(_0x2132e4){var _0x7d3fc1=_0x1215c6;_0x51d6d3['info']({'title':_0x7d3fc1('0xd93'),'msg':'Contact\x20ID\x20'+_0x2132e4[_0x7d3fc1('0xb9e')]});})['catch'](function(_0x2ff4ec){var _0x297215=_0x1215c6;_0x2ff4ec[_0x297215('0x10fd')]===_0x297215('0xf31')?_0x19e3d1[_0x297215('0xe51')]['save'](_0x58d979(_0x1c21e4))['$promise']['then'](function(_0x2113df){var _0x29279d=_0x297215;_0x51d6d3['info']({'title':'Restored\x20Contact','msg':'Contact\x20ID\x20'+_0x2113df[_0x29279d('0xb9e')]}),_0x2113df[_0x29279d('0xb9e')]&&_0x19e3d1[_0x29279d('0xadd')][_0x29279d('0x242b')](_0xc13cf8(_0x1c21e4));})[_0x297215('0x253d')](function(_0x5a6323){var _0x43a3f3=_0x297215;!_0x51538b()[_0x43a3f3('0x89a')](_0x5a6323[_0x43a3f3('0x10fd')])&&_0x5a6323['data']['message']===_0x43a3f3('0x18f9')?_0x51d6d3[_0x43a3f3('0x3a1')]({'title':_0x43a3f3('0xd93'),'msg':_0x43a3f3('0xe65')+_0x1c21e4['ContactId']}):_0x51d6d3[_0x43a3f3('0x187f')]({'title':_0x5a6323[_0x43a3f3('0x2fa')]?_0x43a3f3('0x16c2')+_0x5a6323[_0x43a3f3('0x2fa')]+'\x20-\x20'+_0x5a6323[_0x43a3f3('0x24df')]:_0x43a3f3('0x1646'),'msg':_0x5a6323['data']?JSON[_0x43a3f3('0xa48')](_0x5a6323[_0x43a3f3('0x10fd')][_0x43a3f3('0x1402')]):_0x5a6323[_0x43a3f3('0x1402')]||_0x5a6323[_0x43a3f3('0x684')]()});}):_0x51d6d3['error']({'title':_0x2ff4ec[_0x297215('0x2fa')]?_0x297215('0x16c2')+_0x2ff4ec[_0x297215('0x2fa')]+_0x297215('0x169e')+_0x2ff4ec[_0x297215('0x24df')]:_0x297215('0x1646'),'msg':_0x2ff4ec['data']?JSON[_0x297215('0xa48')](_0x2ff4ec['data'][_0x297215('0x1402')]):_0x2ff4ec[_0x297215('0x1402')]||_0x2ff4ec[_0x297215('0x684')]()});});}var _0x4b3460=!![],_0x437d24=0x1;_0x585461[_0x3e9e64('0x1ccf')](_0x3e9e64('0x74c'),function(_0x2cd1f9,_0x175998){var _0x43b398=_0x3e9e64;_0x4b3460?_0xafbdf5(function(){_0x4b3460=![];}):(!_0x175998&&(_0x437d24=_0x27c12e[_0x43b398('0x582')][_0x43b398('0x41')]),_0x2cd1f9!==_0x175998&&(_0x27c12e[_0x43b398('0x582')]['page']=0x1),!_0x2cd1f9&&(_0x27c12e['query'][_0x43b398('0x41')]=_0x437d24),_0x27ef71());});}const _0x11f0d0=_0x5da576;_0x43774f[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),'$timeout',_0x1a8446('0x2378'),'$document','toasty',_0x1a8446('0x157'),'Auth'];function _0x43774f(_0x138eb9,_0x412e52,_0x4a45b8,_0x440a10,_0x49b11d,_0x42a7fe,_0x4ec5ee,_0x414597,_0x2fc9e9,_0x52671f,_0x528c28){var _0x1d830c=_0x1a8446,_0x3239a2=this;_0x3239a2['currentUser']=_0x528c28[_0x1d830c('0xacc')](),_0x3239a2[_0x1d830c('0x1181')]={},_0x3239a2[_0x1d830c('0x269e')]={'count':0x0,'rows':[]},_0x3239a2[_0x1d830c('0x10a6')]=[],_0x3239a2[_0x1d830c('0xada')],_0x3239a2[_0x1d830c('0x582')]={'fields':_0x1d830c('0x2230'),'sort':_0x1d830c('0x133a'),'limit':0xa,'page':0x1},_0x3239a2[_0x1d830c('0x2e')]=_0x502ec1,_0x3239a2[_0x1d830c('0x1416')]=_0x23e0a1,_0x3239a2[_0x1d830c('0xe10')]=_0x445dae,_0x3239a2['getIvrCampaignHopperHistories']=_0x3d92ca,_0x3239a2[_0x1d830c('0x24a0')]=_0x414755,_0x3239a2[_0x1d830c('0x10ea')]=_0x4748f2,_0x3239a2['deleteSelectedIvrCampaignHopperHistories']=_0x11636d;function _0x502ec1(_0x3dac24,_0x2a159e){var _0x2cf881=_0x1d830c;_0x3239a2[_0x2cf881('0x1181')]=_0x3dac24,_0x3239a2[_0x2cf881('0xada')]=typeof _0x2a159e!==_0x2cf881('0x1574')?_0x2a159e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3239a2[_0x2cf881('0x582')][_0x2cf881('0x174d')]=_0x3239a2[_0x2cf881('0x1181')]['id'],_0x3239a2[_0x2cf881('0x582')]['id']=_0x3239a2[_0x2cf881('0x1181')]['id'],_0x3d92ca();}function _0x23e0a1(_0x4ec245,_0x174fd9){var _0x1fb071=_0x1d830c,_0x518d06=_0x4ec5ee['confirm']()[_0x1fb071('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?')['htmlContent'](_0x1fb071('0x389')+(_0x4ec245[_0x1fb071('0x25d6')]||_0x4ec245['id']&&_0x51538b()[_0x1fb071('0x1791')](_0x1fb071('0x1fde'))+_0x4ec245['id']||_0x1fb071('0x11f7'))+_0x1fb071('0x697')+_0x1fb071('0x210d'))[_0x1fb071('0x5b5')](_0x1fb071('0x22a8'))[_0x1fb071('0x116d')](_0x174fd9)['ok']('OK')[_0x1fb071('0x2030')]('CANCEL');_0x4ec5ee[_0x1fb071('0x1e6d')](_0x518d06)[_0x1fb071('0xaa5')](function(){_0x4748f2(_0x4ec245);},function(){var _0x2c5fba=_0x1fb071;console[_0x2c5fba('0x18d5')]('CANCEL');});}function _0x445dae(_0x111a8b){var _0x704045=_0x1d830c;_0x3239a2[_0x704045('0x269e')]=_0x111a8b||{'count':0x0,'rows':[]};}function _0x3d92ca(){var _0x19f731=_0x1d830c;_0x3239a2[_0x19f731('0x582')]['offset']=(_0x3239a2['query'][_0x19f731('0x41')]-0x1)*_0x3239a2[_0x19f731('0x582')]['limit'],_0x3239a2['promise']=_0x52671f[_0x19f731('0xe8d')][_0x19f731('0x396')](_0x3239a2[_0x19f731('0x582')],_0x445dae)[_0x19f731('0x1dc2')];}function _0x4748f2(_0x218c99){var _0x1ceeac=_0x1d830c;_0x52671f[_0x1ceeac('0x11f7')][_0x1ceeac('0x926')]({'id':_0x218c99['id']})[_0x1ceeac('0x1dc2')][_0x1ceeac('0xaa5')](function(){var _0xe7510e=_0x1ceeac;_0x51538b()[_0xe7510e('0xf6d')](_0x3239a2[_0xe7510e('0x269e')]['rows'],{'id':_0x218c99['id']}),_0x3239a2[_0xe7510e('0x269e')][_0xe7510e('0xd15')]-=0x1,!_0x3239a2[_0xe7510e('0x269e')]['rows'][_0xe7510e('0x2587')]&&_0x3d92ca(),_0x2fc9e9[_0xe7510e('0xe10')]({'title':_0xe7510e('0x237b'),'msg':_0x218c99[_0xe7510e('0x25d6')]?_0x218c99[_0xe7510e('0x25d6')]+_0xe7510e('0xcd9'):''});})['catch'](function(_0x4681bb){var _0x1c49f3=_0x1ceeac;if(_0x4681bb[_0x1c49f3('0x10fd')]&&_0x4681bb[_0x1c49f3('0x10fd')]['errors']&&_0x4681bb[_0x1c49f3('0x10fd')][_0x1c49f3('0x4c6')]['length']){_0x3239a2[_0x1c49f3('0x4c6')]=_0x4681bb[_0x1c49f3('0x10fd')][_0x1c49f3('0x4c6')]||[{'message':_0x4681bb['toString'](),'type':_0x1c49f3('0x1d8d')}];for(var _0x117ba4=0x0;_0x117ba4<_0x4681bb[_0x1c49f3('0x10fd')][_0x1c49f3('0x4c6')][_0x1c49f3('0x2587')];_0x117ba4++){_0x2fc9e9['error']({'title':_0x4681bb[_0x1c49f3('0x10fd')]['errors'][_0x117ba4][_0x1c49f3('0x6c8')],'msg':_0x4681bb['data'][_0x1c49f3('0x4c6')][_0x117ba4][_0x1c49f3('0x1402')]});}}else _0x2fc9e9[_0x1c49f3('0x187f')]({'title':_0x4681bb['status']?_0x1c49f3('0x16c2')+_0x4681bb['status']+_0x1c49f3('0x169e')+_0x4681bb[_0x1c49f3('0x24df')]:_0x1c49f3('0x1d8d'),'msg':_0x4681bb[_0x1c49f3('0x10fd')]?JSON[_0x1c49f3('0xa48')](_0x4681bb[_0x1c49f3('0x10fd')][_0x1c49f3('0x1402')]):_0x4681bb['message']||_0x4681bb[_0x1c49f3('0x684')]()});});}function _0x414755(){var _0x5ad214=_0x1d830c,_0x2c6bd1=angular[_0x5ad214('0x20a')](_0x3239a2['selectedIvrCampaignHopperHistories']);return _0x3239a2['selectedIvrCampaignHopperHistories']=[],_0x2c6bd1;}function _0x11636d(_0x20a521){var _0x4c8772=_0x1d830c,_0x1fce3f=_0x4ec5ee[_0x4c8772('0x281e')]()['title'](_0x4c8772('0x24e7'))[_0x4c8772('0x102e')](''+_0x3239a2['selectedIvrCampaignHopperHistories'][_0x4c8772('0x2587')]+_0x4c8772('0x1443')+_0x4c8772('0x210d'))[_0x4c8772('0x5b5')](_0x4c8772('0xf87'))[_0x4c8772('0x116d')](_0x20a521)['ok']('OK')[_0x4c8772('0x2030')](_0x4c8772('0x2410'));_0x4ec5ee[_0x4c8772('0x1e6d')](_0x1fce3f)['then'](function(){var _0x532512=_0x4c8772;_0x3239a2[_0x532512('0x10a6')][_0x532512('0x15b5')](function(_0x4da283){_0x4748f2(_0x4da283);}),_0x3239a2[_0x532512('0x10a6')]=[];});}var _0x592eb9=!![],_0x1e055b=0x1;_0x412e52['$watch']('vm_dc.query.filter',function(_0x5bf0bc,_0x491f42){var _0x1df651=_0x1d830c;_0x592eb9?_0x42a7fe(function(){_0x592eb9=![];}):(!_0x491f42&&(_0x1e055b=_0x3239a2['query'][_0x1df651('0x41')]),_0x5bf0bc!==_0x491f42&&(_0x3239a2['query'][_0x1df651('0x41')]=0x1),!_0x5bf0bc&&(_0x3239a2[_0x1df651('0x582')][_0x1df651('0x41')]=_0x1e055b),_0x3d92ca());});}const _0x496b40=_0x43774f;_0x583c7e[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'toasty',_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x583c7e(_0x4bea95,_0x3585ed,_0x11a430,_0x6f86d3,_0x5ec41d,_0x493e52,_0xc90e42,_0x48ad0b,_0x41645d,_0x444611,_0xb45c53){var _0x370527=_0x1a8446,_0x4e4ce9=this;_0x4e4ce9['currentUser']=_0xb45c53[_0x370527('0xacc')](),_0x4e4ce9[_0x370527('0x1181')]={},_0x4e4ce9[_0x370527('0xae6')]={'count':0x0,'rows':[]},_0x4e4ce9[_0x370527('0xe4d')]=[],_0x4e4ce9[_0x370527('0xada')],_0x4e4ce9[_0x370527('0x582')]={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority','sort':_0x370527('0xd82'),'limit':0xa,'page':0x1},_0x4e4ce9['arraypriority']=_0x51538b()[_0x370527('0x184a')]([{'option':_0x370527('0x1a3'),'value':'\x274\x27'},{'option':_0x370527('0xaae'),'value':_0x370527('0x18b2')},{'option':'Medium','value':_0x370527('0x284')},{'option':_0x370527('0x23c4'),'value':_0x370527('0x17b7')},{'option':_0x370527('0x1be6'),'value':_0x370527('0x27b6')}],function(_0x27dbb1){var _0x13d7eb=_0x370527;return _0x51538b()[_0x13d7eb('0x170d')](_0x27dbb1[_0x13d7eb('0x12f4')],new RegExp('\x27','g'),'');}),_0x4e4ce9['init']=_0x20eb09,_0x4e4ce9['deleteConfirm']=_0x542895,_0x4e4ce9['success']=_0x5d3f67,_0x4e4ce9[_0x370527('0x168f')]=_0xe36af7,_0x4e4ce9[_0x370527('0x1230')]=_0x350a36,_0x4e4ce9['exportSelectedIvrCampaignHoppers']=_0x260105,_0x4e4ce9['deleteIvrCampaignHopper']=_0x359c20,_0x4e4ce9[_0x370527('0x7a')]=_0x50afc5,_0xb45c53['hasRole'](_0x370527('0x178b'))?_0x444611[_0x370527('0x272b')][_0x370527('0x2122')]({'fields':_0x370527('0x17fe'),'role':_0x370527('0xeff'),'sort':'name','nolimit':_0x370527('0x1c5c')})[_0x370527('0x1dc2')][_0x370527('0xaa5')](function(_0x536384){var _0x35b538=_0x370527;_0x4e4ce9['agents']=_0x536384[_0x35b538('0x580')]||[];})[_0x370527('0x253d')](function(_0x16a92d){var _0x5a4bff=_0x370527;_0x41645d[_0x5a4bff('0x187f')]({'title':_0x16a92d[_0x5a4bff('0x2fa')]?_0x5a4bff('0x16c2')+_0x16a92d[_0x5a4bff('0x2fa')]+_0x5a4bff('0x169e')+_0x16a92d[_0x5a4bff('0x24df')]:_0x5a4bff('0x14c6'),'msg':_0x16a92d[_0x5a4bff('0x10fd')]?JSON['stringify'](_0x16a92d['data']):_0x16a92d[_0x5a4bff('0x684')]()});}):_0x444611[_0x370527('0x272b')][_0x370527('0x2122')]({'fields':_0x370527('0x17fe'),'role':_0x370527('0xeff'),'sort':'name','nolimit':'true'})[_0x370527('0x1dc2')][_0x370527('0xaa5')](function(_0x55b1f2){var _0x4e538b=_0x370527;_0x4e4ce9[_0x4e538b('0x1717')]=_0x55b1f2['rows']||[];})[_0x370527('0xaa5')](function(){var _0xfec1b3=_0x370527;return _0x444611[_0xfec1b3('0x1a50')][_0xfec1b3('0x2122')]({'userProfileId':_0x4e4ce9[_0xfec1b3('0x7fc')][_0xfec1b3('0x2168')],'sectionId':0xca})[_0xfec1b3('0x1dc2')];})[_0x370527('0xaa5')](function(_0x13655a){var _0xf5b7=_0x370527,_0x51913c=_0x13655a&&_0x13655a[_0xf5b7('0x580')]?_0x13655a[_0xf5b7('0x580')][0x0]:null;if(!_0x51913c)_0x4e4ce9[_0xf5b7('0x1717')]=[];else{if(!_0x51913c[_0xf5b7('0x26cc')])return _0x444611[_0xf5b7('0x249a')][_0xf5b7('0x2122')]({'sectionId':_0x51913c['id']})['$promise'][_0xf5b7('0xaa5')](function(_0x480d4b){var _0x4a0b1e=_0xf5b7,_0x1947a4=_0x51538b()[_0x4a0b1e('0x1246')](_0x480d4b[_0x4a0b1e('0x580')],function(_0x2fb6cf){var _0x416c3b=_0x4a0b1e;return _0x51538b()['find'](_0x4e4ce9[_0x416c3b('0x1717')],{'id':_0x2fb6cf[_0x416c3b('0xbcd')]});});_0x4e4ce9[_0x4a0b1e('0x1717')][_0x4a0b1e('0x15b5')](function(_0x527f0b){var _0xaf1ed8=_0x4a0b1e;!_0x51538b()[_0xaf1ed8('0x2c2')](_0x1947a4,['id',_0x527f0b['id']])&&(_0x527f0b['canSelect']=![]),_0x1947a4['push'](_0x527f0b);}),_0x4e4ce9['agents']=_0x1947a4;});}})[_0x370527('0x253d')](function(_0x9c75f0){var _0x5c5871=_0x370527;_0x41645d['error']({'title':_0x9c75f0[_0x5c5871('0x2fa')]?'API:'+_0x9c75f0[_0x5c5871('0x2fa')]+_0x5c5871('0x169e')+_0x9c75f0['statusText']:'SYSTEM:GETagents','msg':_0x9c75f0['data']?JSON[_0x5c5871('0xa48')](_0x9c75f0['data']):_0x9c75f0[_0x5c5871('0x684')]()});});function _0x20eb09(_0x2e7fbb,_0x173369){var _0x470747=_0x370527;_0x4e4ce9[_0x470747('0x1181')]=_0x2e7fbb,_0x4e4ce9[_0x470747('0xada')]=typeof _0x173369!==_0x470747('0x1574')?_0x173369:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e4ce9[_0x470747('0x582')][_0x470747('0x174d')]=_0x4e4ce9[_0x470747('0x1181')]['id'],_0x4e4ce9[_0x470747('0x582')]['id']=_0x4e4ce9[_0x470747('0x1181')]['id'],_0xe36af7();}function _0x542895(_0x107931,_0x43a0b3){var _0x31fd95=_0x370527,_0x20532f=_0xc90e42[_0x31fd95('0x281e')]()[_0x31fd95('0x110a')](_0x31fd95('0x2005'))['htmlContent'](_0x31fd95('0x389')+(_0x107931['name']||_0x107931['id']&&_0x51538b()['upperFirst'](_0x31fd95('0x1317'))+_0x107931['id']||'hopper')+''+_0x31fd95('0x210d'))[_0x31fd95('0x5b5')](_0x31fd95('0x174a'))[_0x31fd95('0x116d')](_0x43a0b3)['ok']('OK')[_0x31fd95('0x2030')]('CANCEL');_0xc90e42['show'](_0x20532f)['then'](function(){_0x359c20(_0x107931);},function(){var _0x3c1c07=_0x31fd95;console[_0x3c1c07('0x18d5')]('CANCEL');});}function _0x5d3f67(_0x1c96a7){var _0x3c7e9e=_0x370527;_0x4e4ce9[_0x3c7e9e('0xae6')]=_0x1c96a7||{'count':0x0,'rows':[]};}function _0xe36af7(){var _0x2329cb=_0x370527;_0x4e4ce9['query']['offset']=(_0x4e4ce9[_0x2329cb('0x582')]['page']-0x1)*_0x4e4ce9[_0x2329cb('0x582')][_0x2329cb('0xf4d')],_0x4e4ce9[_0x2329cb('0x159a')]=_0x444611[_0x2329cb('0xe8d')][_0x2329cb('0xf48')](_0x4e4ce9[_0x2329cb('0x582')],_0x5d3f67)['$promise'];}function _0x350a36(_0x3e03d0,_0x127caf){var _0x710dda=_0x370527;_0xc90e42['show']({'controller':_0x710dda('0x3e8'),'controllerAs':'vm','templateUrl':_0x59ac84,'parent':angular['element'](_0x48ad0b['body']),'targetEvent':_0x3e03d0,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4e4ce9[_0x710dda('0x1181')],'hopper':_0x127caf,'hoppers':_0x4e4ce9[_0x710dda('0xae6')][_0x710dda('0x580')],'license':null,'setting':null,'crudPermissions':_0x4e4ce9[_0x710dda('0xada')]}});}function _0x359c20(_0x2f7f72){var _0x5f5aa7=_0x370527;_0x444611[_0x5f5aa7('0xe51')][_0x5f5aa7('0x926')]({'id':_0x2f7f72['id']})[_0x5f5aa7('0x1dc2')][_0x5f5aa7('0xaa5')](function(){var _0x2a7274=_0x5f5aa7;_0x51538b()[_0x2a7274('0xf6d')](_0x4e4ce9[_0x2a7274('0xae6')]['rows'],{'id':_0x2f7f72['id']}),_0x4e4ce9['ivrCampaignHoppers'][_0x2a7274('0xd15')]-=0x1,!_0x4e4ce9[_0x2a7274('0xae6')]['rows']['length']&&_0xe36af7(),_0x41645d[_0x2a7274('0xe10')]({'title':_0x2a7274('0xbf'),'msg':_0x2f7f72[_0x2a7274('0x25d6')]?_0x2f7f72[_0x2a7274('0x25d6')]+_0x2a7274('0xcd9'):''});})[_0x5f5aa7('0x253d')](function(_0x715618){var _0x3fd485=_0x5f5aa7;if(_0x715618['data']&&_0x715618[_0x3fd485('0x10fd')]['errors']&&_0x715618[_0x3fd485('0x10fd')][_0x3fd485('0x4c6')][_0x3fd485('0x2587')]){_0x4e4ce9['errors']=_0x715618[_0x3fd485('0x10fd')][_0x3fd485('0x4c6')]||[{'message':_0x715618['toString'](),'type':_0x3fd485('0x1d8d')}];for(var _0x5ef25b=0x0;_0x5ef25b<_0x715618[_0x3fd485('0x10fd')]['errors'][_0x3fd485('0x2587')];_0x5ef25b++){_0x41645d[_0x3fd485('0x187f')]({'title':_0x715618[_0x3fd485('0x10fd')]['errors'][_0x5ef25b][_0x3fd485('0x6c8')],'msg':_0x715618[_0x3fd485('0x10fd')][_0x3fd485('0x4c6')][_0x5ef25b]['message']});}}else _0x41645d[_0x3fd485('0x187f')]({'title':_0x715618[_0x3fd485('0x2fa')]?_0x3fd485('0x16c2')+_0x715618['status']+_0x3fd485('0x169e')+_0x715618[_0x3fd485('0x24df')]:'SYSTEM:GETcampaign','msg':_0x715618[_0x3fd485('0x10fd')]?JSON[_0x3fd485('0xa48')](_0x715618[_0x3fd485('0x10fd')][_0x3fd485('0x1402')]):_0x715618[_0x3fd485('0x1402')]||_0x715618[_0x3fd485('0x684')]()});});}function _0x260105(){var _0x1c14b0=_0x370527,_0x509f39=angular[_0x1c14b0('0x20a')](_0x4e4ce9[_0x1c14b0('0xe4d')]);return _0x4e4ce9[_0x1c14b0('0xe4d')]=[],_0x509f39;}function _0x50afc5(_0x3d6c27){var _0xa2c0d4=_0x370527,_0x437578=_0xc90e42[_0xa2c0d4('0x281e')]()['title'](_0xa2c0d4('0x23be'))['htmlContent'](_0xa2c0d4('0x389')+_0x4e4ce9['selectedIvrCampaignHoppers'][_0xa2c0d4('0x2587')]+_0xa2c0d4('0x1443')+_0xa2c0d4('0x210d'))['ariaLabel']('delete\x20hoppers')['targetEvent'](_0x3d6c27)['ok']('OK')['cancel'](_0xa2c0d4('0x2410'));_0xc90e42['show'](_0x437578)[_0xa2c0d4('0xaa5')](function(){var _0x2b8776=_0xa2c0d4;_0x4e4ce9[_0x2b8776('0xe4d')][_0x2b8776('0x15b5')](function(_0x234c1d){_0x359c20(_0x234c1d);}),_0x4e4ce9[_0x2b8776('0xe4d')]=[];});}var _0x4a6d26=!![],_0x475ab8=0x1;_0x3585ed[_0x370527('0x1ccf')]('vm_dc.query.filter',function(_0x39726e,_0x137dfe){var _0x117e41=_0x370527;_0x4a6d26?_0x493e52(function(){_0x4a6d26=![];}):(!_0x137dfe&&(_0x475ab8=_0x4e4ce9[_0x117e41('0x582')][_0x117e41('0x41')]),_0x39726e!==_0x137dfe&&(_0x4e4ce9[_0x117e41('0x582')][_0x117e41('0x41')]=0x1),!_0x39726e&&(_0x4e4ce9[_0x117e41('0x582')]['page']=_0x475ab8),_0xe36af7());});}const _0x1c847e=_0x583c7e;_0x23aea3[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),'toasty',_0x1a8446('0x10d1'),_0x1a8446('0x1621'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x23aea3(_0x42fa4e,_0x3e50ec,_0xfe270,_0x4d711b,_0x547482,_0x27f82b,_0x383bf6,_0x5d5d8b,_0x486130,_0xdccbd1,_0x18ada,_0x40e42d,_0x1c14c1,_0x1297ad){var _0x1604a2=_0x1a8446,_0x544392=this;_0x544392['currentUser']=_0x18ada[_0x1604a2('0xacc')](),_0x544392['errors']=[],_0x544392[_0x1604a2('0x143f')]=_0x1c14c1,_0x544392['license']=_0x40e42d,_0x544392[_0x1604a2('0xada')]=_0x1297ad,_0x544392['hasModulePermissions']={},_0x544392['passwordPattern']=_0x544392[_0x1604a2('0x143f')]&&_0x544392['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x544392['title']=_0x1604a2('0x1b94'),_0x544392['hopper']=angular[_0x1604a2('0x20a')](_0x486130),_0x544392[_0x1604a2('0x10d1')]=_0x5d5d8b,_0x544392[_0x1604a2('0xae8')]=![];!_0x544392[_0x1604a2('0x1621')]&&(_0x544392[_0x1604a2('0x1621')]={},_0x544392[_0x1604a2('0x110a')]=_0x1604a2('0x1123'),_0x544392[_0x1604a2('0xae8')]=!![]);_0x3e50ec[_0x1604a2('0x25cf')]['id']&&(_0x544392[_0x1604a2('0x1621')][_0x1604a2('0x174d')]=_0x3e50ec['params']['id']);_0x544392[_0x1604a2('0x2265')]=_0x3d7c85,_0x544392[_0x1604a2('0xf72')]=_0x31a67b,_0x544392[_0x1604a2('0x25a7')]=_0x31d017,_0x544392[_0x1604a2('0xc09')]=_0x47c461,_0x544392[_0x1604a2('0x2023')]=_0x4d21ff,_0x18ada['hasRole'](_0x1604a2('0x178b'))?_0xdccbd1[_0x1604a2('0x272b')][_0x1604a2('0x2122')]({'fields':_0x1604a2('0x17fe'),'role':_0x1604a2('0xeff'),'sort':'name','nolimit':_0x1604a2('0x1c5c')})['$promise'][_0x1604a2('0xaa5')](function(_0x13ef2f){var _0xba6a6=_0x1604a2;_0x544392[_0xba6a6('0x1717')]=_0x13ef2f['rows']||[];})[_0x1604a2('0x253d')](function(_0x1467f7){var _0xb68dd4=_0x1604a2;_0x383bf6['error']({'title':_0x1467f7[_0xb68dd4('0x2fa')]?_0xb68dd4('0x16c2')+_0x1467f7[_0xb68dd4('0x2fa')]+'\x20-\x20'+_0x1467f7[_0xb68dd4('0x24df')]:_0xb68dd4('0x14c6'),'msg':_0x1467f7[_0xb68dd4('0x10fd')]?JSON[_0xb68dd4('0xa48')](_0x1467f7[_0xb68dd4('0x10fd')]):_0x1467f7['toString']()});}):_0xdccbd1[_0x1604a2('0x272b')][_0x1604a2('0x2122')]({'fields':_0x1604a2('0x17fe'),'role':_0x1604a2('0xeff'),'sort':_0x1604a2('0x25d6'),'nolimit':'true'})[_0x1604a2('0x1dc2')]['then'](function(_0x8fd58b){var _0xd82f18=_0x1604a2;_0x544392[_0xd82f18('0x1717')]=_0x8fd58b[_0xd82f18('0x580')]||[];})[_0x1604a2('0xaa5')](function(){var _0x2e7e58=_0x1604a2;return _0xdccbd1[_0x2e7e58('0x1a50')]['get']({'userProfileId':_0x544392[_0x2e7e58('0x7fc')][_0x2e7e58('0x2168')],'sectionId':0xca})[_0x2e7e58('0x1dc2')];})[_0x1604a2('0xaa5')](function(_0x3e90af){var _0x31953d=_0x1604a2,_0x324489=_0x3e90af&&_0x3e90af[_0x31953d('0x580')]?_0x3e90af[_0x31953d('0x580')][0x0]:null;if(!_0x324489)_0x544392['agents']=[];else{if(!_0x324489['autoAssociation'])return _0xdccbd1[_0x31953d('0x249a')][_0x31953d('0x2122')]({'sectionId':_0x324489['id']})['$promise'][_0x31953d('0xaa5')](function(_0x56dd1c){var _0x2f3414=_0x31953d,_0x5c5c28=_0x51538b()[_0x2f3414('0x1246')](_0x56dd1c[_0x2f3414('0x580')],function(_0x2d8306){var _0x2c3a26=_0x2f3414;return _0x51538b()[_0x2c3a26('0xe9e')](_0x544392['agents'],{'id':_0x2d8306['resourceId']});});_0x544392[_0x2f3414('0x1717')][_0x2f3414('0x15b5')](function(_0x162b86){var _0x4fb250=_0x2f3414;!_0x51538b()[_0x4fb250('0x2c2')](_0x5c5c28,['id',_0x162b86['id']])&&(_0x162b86[_0x4fb250('0x12eb')]=![]),_0x5c5c28[_0x4fb250('0x1599')](_0x162b86);}),_0x544392[_0x2f3414('0x1717')]=_0x5c5c28;});}})[_0x1604a2('0x253d')](function(_0x8576cb){var _0x4c6a41=_0x1604a2;_0x383bf6[_0x4c6a41('0x187f')]({'title':_0x8576cb[_0x4c6a41('0x2fa')]?_0x4c6a41('0x16c2')+_0x8576cb[_0x4c6a41('0x2fa')]+_0x4c6a41('0x169e')+_0x8576cb['statusText']:'SYSTEM:GETagents','msg':_0x8576cb[_0x4c6a41('0x10fd')]?JSON[_0x4c6a41('0xa48')](_0x8576cb['data']):_0x8576cb[_0x4c6a41('0x684')]()});});function _0x3d7c85(){var _0x32e315=_0x1604a2;_0x544392[_0x32e315('0x4c6')]=[],_0xdccbd1['cmHopper']['save'](_0x544392[_0x32e315('0x1621')])[_0x32e315('0x1dc2')][_0x32e315('0xaa5')](function(_0x5bf1ad){var _0x18d76a=_0x32e315;_0x544392[_0x18d76a('0x10d1')][_0x18d76a('0x6ee')](_0x5bf1ad['toJSON']()),_0x383bf6['success']({'title':'Hopper\x20properly\x20created','msg':_0x544392[_0x18d76a('0x1621')][_0x18d76a('0x25d6')]?_0x544392[_0x18d76a('0x1621')][_0x18d76a('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x4d21ff(_0x5bf1ad);})[_0x32e315('0x253d')](function(_0x4ed64e){var _0x531e57=_0x32e315;if(_0x4ed64e[_0x531e57('0x10fd')]&&_0x4ed64e[_0x531e57('0x10fd')]['errors']&&_0x4ed64e[_0x531e57('0x10fd')]['errors'][_0x531e57('0x2587')]){_0x544392[_0x531e57('0x4c6')]=_0x4ed64e['data'][_0x531e57('0x4c6')]||[{'message':_0x4ed64e['toString'](),'type':'api.cmHopper.save'}];for(var _0x5d968e=0x0;_0x5d968e<_0x4ed64e['data'][_0x531e57('0x4c6')][_0x531e57('0x2587')];_0x5d968e+=0x1){_0x383bf6[_0x531e57('0x187f')]({'title':_0x4ed64e[_0x531e57('0x10fd')][_0x531e57('0x4c6')][_0x5d968e][_0x531e57('0x6c8')],'msg':_0x4ed64e['data'][_0x531e57('0x4c6')][_0x5d968e][_0x531e57('0x1402')]});}}else _0x383bf6[_0x531e57('0x187f')]({'title':_0x4ed64e[_0x531e57('0x2fa')]?_0x531e57('0x16c2')+_0x4ed64e[_0x531e57('0x2fa')]+_0x531e57('0x169e')+_0x4ed64e['statusText']:_0x531e57('0xc49'),'msg':_0x4ed64e['data']?JSON[_0x531e57('0xa48')](_0x4ed64e[_0x531e57('0x10fd')][_0x531e57('0x1402')]):_0x4ed64e['toString']()});});}function _0x31a67b(){var _0x4110b7=_0x1604a2;_0x544392[_0x4110b7('0x4c6')]=[];var _0x17e0a0,_0x2d3486,_0x493efe,_0xe813fd;_0x544392['hopper'][_0x4110b7('0x1037')]=_0x544392[_0x4110b7('0x1621')][_0x4110b7('0x7dd')]?_0x544392[_0x4110b7('0x1621')][_0x4110b7('0x1037')]:null,_0x544392[_0x4110b7('0x1621')][_0x4110b7('0x797')]=_0x18ada[_0x4110b7('0xacc')]()['id'],_0xdccbd1[_0x4110b7('0xe51')][_0x4110b7('0x2122')]({'id':_0x544392[_0x4110b7('0x1621')]['id'],'attributes':[_0x4110b7('0x300')]})['$promise'][_0x4110b7('0xaa5')](function(_0x5e0e9c){var _0x403a8b=_0x4110b7;_0x51538b()[_0x403a8b('0x89a')](_0x5e0e9c)||_0x51538b()[_0x403a8b('0x116b')](_0x5e0e9c)?_0x17e0a0=_0x420d43()()['format'](_0x403a8b('0x1463')):_0x17e0a0=_0x5e0e9c[_0x403a8b('0x300')];})['finally'](function(){var _0x42e9fc=_0x4110b7;_0xdccbd1[_0x42e9fc('0xe51')]['update']({'id':_0x544392[_0x42e9fc('0x1621')]['id']},_0x51538b()[_0x42e9fc('0x245')](_0x544392[_0x42e9fc('0x1621')],[_0x42e9fc('0x2438'),_0x42e9fc('0x174d'),'ContactId','ListId']))[_0x42e9fc('0x1dc2')][_0x42e9fc('0xaa5')](function(_0x2e462f){var _0x3434b8=_0x42e9fc;_0x2d3486=_0x2e462f,_0xdccbd1[_0x3434b8('0xdbd')][_0x3434b8('0x2122')]({'id':_0x2d3486[_0x3434b8('0xb9e')],'attributes':['firstName',_0x3434b8('0x351')]})['$promise'][_0x3434b8('0xaa5')](function(_0x20b746){var _0x3d941b=_0x3434b8;!_0x51538b()[_0x3d941b('0x89a')](_0x20b746)&&!_0x51538b()[_0x3d941b('0x89a')](_0x20b746['firstName'])&&(_0x493efe=_0x20b746[_0x3d941b('0x24c1')],!_0x51538b()[_0x3d941b('0x89a')](_0x20b746[_0x3d941b('0x351')])&&(_0x493efe+='\x20'+_0x20b746[_0x3d941b('0x351')]));})[_0x3434b8('0x253d')](function(){_0x493efe=undefined;})[_0x3434b8('0x1889')](function(){var _0x50522c=_0x3434b8;_0xdccbd1['campaign']['get']({'raw':![],'id':_0x2d3486[_0x50522c('0x174d')],'attributes':[_0x50522c('0x25d6')]})[_0x50522c('0x1dc2')][_0x50522c('0xaa5')](function(_0x1f0d69){var _0x30e293=_0x50522c;_0xe813fd=_0x1f0d69[_0x30e293('0x25d6')];})['catch'](function(){_0xe813fd=undefined;})[_0x50522c('0x1889')](function(){var _0x5c0da3=_0x50522c;_0xdccbd1[_0x5c0da3('0xadd')][_0x5c0da3('0x242b')]({'state':0x18,'statedesc':'Edited','scheduledat':_0x17e0a0,'calleridnum':_0x2d3486[_0x5c0da3('0x1a46')],'calleridname':_0x493efe,'campaigntype':_0x2d3486[_0x5c0da3('0x2438')]?_0x5c0da3('0xe26'):'ivr','campaign':_0xe813fd,'editedat':_0x420d43()()['format'](_0x5c0da3('0x1463')),'edited':!![],'ListId':_0x2d3486['ListId'],'UserId':_0x18ada[_0x5c0da3('0xacc')]()['id'],'VoiceQueueId':_0x2d3486[_0x5c0da3('0x2438')],'CampaignId':_0x2d3486[_0x5c0da3('0x174d')],'ContactId':_0x2d3486[_0x5c0da3('0xb9e')],'callback':_0x2d3486[_0x5c0da3('0x1dc1')],'callbackuniqueid':_0x2d3486['callbackuniqueid'],'countbusyretry':_0x2d3486[_0x5c0da3('0xd4e')],'countcongestionretry':_0x2d3486[_0x5c0da3('0x104f')],'countglobal':_0x2d3486[_0x5c0da3('0x2816')],'countnoanswerretry':_0x2d3486['countnoanswerretry'],'followuptime':_0x2d3486[_0x5c0da3('0x1343')],'recallme':_0x2d3486['recallme']});});});var _0x1dfaef=_0x51538b()[_0x3434b8('0xe9e')](_0x544392[_0x3434b8('0x10d1')],{'id':_0x2e462f['id']});_0x1dfaef&&_0x51538b()['merge'](_0x1dfaef,_0x51538b()[_0x3434b8('0x104e')](_0x2e462f[_0x3434b8('0x256a')](),_0x51538b()[_0x3434b8('0x9f2')](_0x1dfaef))),_0x383bf6[_0x3434b8('0xe10')]({'title':_0x3434b8('0x130e'),'msg':_0x544392['hopper'][_0x3434b8('0x25d6')]?_0x544392['hopper'][_0x3434b8('0x25d6')]+_0x3434b8('0x20bf'):''}),_0x4d21ff(_0x2e462f);})[_0x42e9fc('0x253d')](function(_0x19b339){var _0x572d3c=_0x42e9fc;if(_0x19b339[_0x572d3c('0x10fd')]&&_0x19b339[_0x572d3c('0x10fd')][_0x572d3c('0x4c6')]&&_0x19b339[_0x572d3c('0x10fd')][_0x572d3c('0x4c6')][_0x572d3c('0x2587')]){_0x544392[_0x572d3c('0x4c6')]=_0x19b339[_0x572d3c('0x10fd')][_0x572d3c('0x4c6')]||[{'message':_0x19b339[_0x572d3c('0x684')](),'type':'api.cmHopper.update'}];for(var _0x2de32d=0x0;_0x2de32d<_0x19b339[_0x572d3c('0x10fd')][_0x572d3c('0x4c6')][_0x572d3c('0x2587')];_0x2de32d++){_0x383bf6[_0x572d3c('0x187f')]({'title':_0x19b339[_0x572d3c('0x10fd')][_0x572d3c('0x4c6')][_0x2de32d][_0x572d3c('0x6c8')],'msg':_0x19b339[_0x572d3c('0x10fd')][_0x572d3c('0x4c6')][_0x2de32d][_0x572d3c('0x1402')]});}}else _0x383bf6['error']({'title':_0x19b339['status']?_0x572d3c('0x16c2')+_0x19b339[_0x572d3c('0x2fa')]+_0x572d3c('0x169e')+_0x19b339[_0x572d3c('0x24df')]:_0x572d3c('0x18fc'),'msg':_0x19b339[_0x572d3c('0x10fd')]?JSON[_0x572d3c('0xa48')](_0x19b339[_0x572d3c('0x10fd')][_0x572d3c('0x1402')]):_0x19b339[_0x572d3c('0x684')]()});});});}function _0x31d017(_0x37370f){var _0x3fe264=_0x1604a2;_0x544392[_0x3fe264('0x4c6')]=[];var _0x3ebf20=_0x4d711b['confirm']()[_0x3fe264('0x110a')](_0x3fe264('0x12a3'))[_0x3fe264('0x15af')]('The\x20hopper\x20will\x20be\x20deleted.')['ariaLabel'](_0x3fe264('0xff'))['ok'](_0x3fe264('0x1e76'))[_0x3fe264('0x2030')](_0x3fe264('0x9c6'))[_0x3fe264('0x116d')](_0x37370f);_0x4d711b['show'](_0x3ebf20)[_0x3fe264('0xaa5')](function(){var _0x3e0748=_0x3fe264;_0xdccbd1[_0x3e0748('0xe51')][_0x3e0748('0x926')]({'id':_0x544392[_0x3e0748('0x1621')]['id']})[_0x3e0748('0x1dc2')]['then'](function(){var _0x182dc3=_0x3e0748;_0x51538b()['remove'](_0x544392[_0x182dc3('0x10d1')],{'id':_0x544392[_0x182dc3('0x1621')]['id']}),_0x383bf6[_0x182dc3('0xe10')]({'title':_0x182dc3('0xccd'),'msg':(_0x544392['hopper'][_0x182dc3('0x25d6')]||'hopper')+_0x182dc3('0xcd9')}),_0x4d21ff(_0x544392['hopper']);})[_0x3e0748('0x253d')](function(_0x46fb06){var _0x39f3eb=_0x3e0748;if(_0x46fb06['data']&&_0x46fb06['data']['errors']&&_0x46fb06[_0x39f3eb('0x10fd')][_0x39f3eb('0x4c6')][_0x39f3eb('0x2587')]){_0x544392[_0x39f3eb('0x4c6')]=_0x46fb06[_0x39f3eb('0x10fd')][_0x39f3eb('0x4c6')]||[{'message':_0x46fb06[_0x39f3eb('0x684')](),'type':'api.cmHopper.delete'}];for(var _0x10bcae=0x0;_0x10bcae<_0x46fb06[_0x39f3eb('0x10fd')]['errors'][_0x39f3eb('0x2587')];_0x10bcae++){_0x383bf6[_0x39f3eb('0x187f')]({'title':_0x46fb06[_0x39f3eb('0x10fd')][_0x39f3eb('0x4c6')][_0x10bcae][_0x39f3eb('0x6c8')],'msg':_0x46fb06[_0x39f3eb('0x10fd')][_0x39f3eb('0x4c6')][_0x10bcae][_0x39f3eb('0x1402')]});}}else _0x383bf6[_0x39f3eb('0x187f')]({'title':_0x46fb06[_0x39f3eb('0x2fa')]?_0x39f3eb('0x16c2')+_0x46fb06[_0x39f3eb('0x2fa')]+_0x39f3eb('0x169e')+_0x46fb06[_0x39f3eb('0x24df')]:_0x39f3eb('0x20f8'),'msg':_0x46fb06['data']?JSON[_0x39f3eb('0xa48')](_0x46fb06[_0x39f3eb('0x10fd')][_0x39f3eb('0x1402')]):_0x46fb06[_0x39f3eb('0x1402')]||_0x46fb06['toString']()});});},function(){});}function _0x47c461(_0x1b56ea){return _0x1b56ea===null?undefined:new Date(_0x1b56ea);}function _0x4d21ff(_0xb7064c){var _0x100257=_0x1604a2;_0x4d711b[_0x100257('0x1120')](_0xb7064c);}}const _0x3f0925=_0x23aea3;_0x2e79dc['$inject']=['api',_0x1a8446('0x2a4')];function _0x2e79dc(_0x2fca56,_0x1c0d1e){var _0x42d232=_0x1a8446,_0x22e160=this;_0x22e160[_0x42d232('0x1181')]={},_0x22e160[_0x42d232('0x2e')]=_0x5c7dc9;function _0x5c7dc9(_0x19f1f7){var _0x216aa8=_0x42d232;_0x22e160[_0x216aa8('0x1181')]=_0x19f1f7,_0x2fca56[_0x216aa8('0xe51')]['get']({'limit':0x0,'CampaignId':_0x19f1f7['id']})[_0x216aa8('0x1dc2')][_0x216aa8('0xaa5')](function(_0x9e4d72){var _0x2f4761=_0x216aa8;return _0x22e160[_0x2f4761('0x1d71')]=_0x9e4d72[_0x2f4761('0xd15')]||0x0,_0x2fca56['cmHopper'][_0x2f4761('0x2122')]({'limit':0x0,'CampaignId':_0x19f1f7['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})['$promise'];})[_0x216aa8('0xaa5')](function(_0x2513a6){var _0x15056a=_0x216aa8;return _0x22e160[_0x15056a('0x1213')]=_0x2513a6['count']||0x0,_0x2fca56[_0x15056a('0x9c3')][_0x15056a('0x2122')]({'limit':0x0,'CampaignId':_0x19f1f7['id']})[_0x15056a('0x1dc2')];})['then'](function(_0x51dffd){var _0x55ed59=_0x216aa8;_0x22e160[_0x55ed59('0x1cbd')]=_0x51dffd[_0x55ed59('0xd15')]||0x0;})[_0x216aa8('0x253d')](function(_0x170454){var _0x4746c4=_0x216aa8;_0x1c0d1e[_0x4746c4('0x187f')]({'title':_0x170454['status']?'API:'+_0x170454['status']+_0x4746c4('0x169e')+_0x170454[_0x4746c4('0x24df')]:'SYSTEM:GETTAGS','msg':_0x170454['data']?JSON[_0x4746c4('0xa48')](_0x170454[_0x4746c4('0x10fd')]):_0x170454[_0x4746c4('0x684')]()});});}}const _0x3aa6b4=_0x2e79dc;_0x23a495[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x157'),'ivrCampaign',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x23a495(_0x4ca428,_0x48a010,_0x7dab43,_0x529b63,_0xd543cc,_0x4feb5a,_0x82aa5f,_0x1a7b8f,_0x9050b6){var _0x19e633=_0x1a8446,_0x12ba40=this;_0x12ba40[_0x19e633('0x7fc')]=_0x1a7b8f[_0x19e633('0xacc')](),_0x12ba40[_0x19e633('0x1181')]=_0xd543cc,_0x12ba40[_0x19e633('0xada')]=_0x9050b6,_0x12ba40[_0x19e633('0x1f4')]=_0x19e633('0xe8d'),_0x12ba40[_0x19e633('0x1b10')]=_0x19e633('0xcfd'),_0x12ba40[_0x19e633('0x1669')]=_0x19e633('0x161d'),_0x12ba40[_0x19e633('0x1a2a')]=_0x19e633('0xb97'),_0x12ba40[_0x19e633('0x1a30')]=[],_0x12ba40[_0x19e633('0x11b9')]=[],_0x12ba40[_0x19e633('0xbf7')]=[],_0x12ba40[_0x19e633('0x215b')]=[],_0x12ba40[_0x19e633('0x214a')]=[],_0x12ba40[_0x19e633('0xc54')]=![],_0x12ba40[_0x19e633('0x1aaa')]=![],_0x12ba40[_0x19e633('0x1c23')]={'readOnly':!_0x12ba40[_0x19e633('0xada')][_0x19e633('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x19e633('0x25d6'),'line1':_0x19e633('0x25d6'),'line2':'','line3':'','labelAll':_0x4feb5a[_0x19e633('0x213f')](_0x19e633('0x1713')),'labelSelected':_0x4feb5a[_0x19e633('0x213f')]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function _0x207d56(){var _0xec0de9=_0x19e633,_0x580d53=_0x51538b()[_0xec0de9('0x9ef')](_0x12ba40[_0xec0de9('0x214a')],_0x12ba40[_0xec0de9('0xbf7')],'id');_0x12ba40[_0xec0de9('0xc54')]=_0x51538b()['isEmpty'](_0x580d53)?![]:!![];}},_0x12ba40['onInit']=_0x49fc40,_0x12ba40[_0x19e633('0x2ee')]=_0x5a26fa,_0x12ba40[_0x19e633('0x2023')]=_0x4acc6d;function _0x49fc40(){var _0x14e303=_0x19e633;return _0x1a7b8f['hasRole'](_0x14e303('0x178b'))?_0x100714()[_0x14e303('0x253d')](function(_0x52cd69){var _0x3845bb=_0x14e303;_0x7dab43['error']({'title':_0x52cd69['status']?_0x3845bb('0x16c2')+_0x52cd69[_0x3845bb('0x2fa')]+_0x3845bb('0x169e')+_0x52cd69[_0x3845bb('0x24df')]:'SYSTEM:GETLISTS','msg':_0x52cd69[_0x3845bb('0x2fa')]?JSON[_0x3845bb('0xa48')](_0x52cd69[_0x3845bb('0x10fd')]):_0x52cd69['toString']()});}):_0x3590ab()[_0x14e303('0xaa5')](function(_0x51022d){return _0x12ba40['section']=_0x51022d,_0x100714();})[_0x14e303('0x253d')](function(_0x5cb3bc){var _0x4b0082=_0x14e303;_0x7dab43[_0x4b0082('0x187f')]({'title':_0x5cb3bc[_0x4b0082('0x2fa')]?_0x4b0082('0x16c2')+_0x5cb3bc['status']+_0x4b0082('0x169e')+_0x5cb3bc['statusText']:'SYSTEM:GETLISTS','msg':_0x5cb3bc['status']?JSON[_0x4b0082('0xa48')](_0x5cb3bc[_0x4b0082('0x10fd')]):_0x5cb3bc['toString']()});});}function _0x3590ab(){return _0x48a010(function(_0x594f49,_0x3ceb3a){var _0x13cf85=a0_0x1149;_0x529b63['userProfileSection'][_0x13cf85('0x2122')]({'userProfileId':_0x12ba40[_0x13cf85('0x7fc')][_0x13cf85('0x2168')],'name':'Lists'})['$promise'][_0x13cf85('0xaa5')](function(_0x8913cb){var _0x3868ca=_0x13cf85,_0x304c8a=_0x8913cb&&_0x8913cb[_0x3868ca('0x580')]?_0x8913cb[_0x3868ca('0x580')][0x0]:null;_0x594f49(_0x304c8a);})['catch'](function(_0x95cd3f){_0x3ceb3a(_0x95cd3f);});});}function _0x100714(){return _0x48a010(function(_0x5c7068,_0x466d09){var _0x5afded=a0_0x1149;return _0x2cfb01()[_0x5afded('0xaa5')](function(_0x2b94b9){var _0x4c3cb0=_0x5afded;return _0x12ba40['items']=_0x2b94b9[_0x4c3cb0('0x580')]?_0x2b94b9[_0x4c3cb0('0x580')]:[],_0x1a7b8f[_0x4c3cb0('0x26e8')]('admin')?_0x2b94b9:_0x12ba40[_0x4c3cb0('0x224d')]?_0x12ba40[_0x4c3cb0('0x224d')][_0x4c3cb0('0x26cc')]?_0x2b94b9:_0x302069():null;})[_0x5afded('0xaa5')](function(_0x37aa1c){var _0x1b0949=_0x5afded,_0x10b277=_0x37aa1c&&_0x37aa1c[_0x1b0949('0x580')]?_0x37aa1c[_0x1b0949('0x580')]:[];return _0x12ba40[_0x1b0949('0x11b9')]=_0x51538b()[_0x1b0949('0x1246')](_0x10b277,function(_0x3c3fef){var _0x502fdd=_0x1b0949;return _0x51538b()[_0x502fdd('0xe9e')](_0x12ba40[_0x502fdd('0x1a30')],{'id':_0x1a7b8f[_0x502fdd('0x26e8')]('admin')||_0x12ba40[_0x502fdd('0x224d')][_0x502fdd('0x26cc')]?_0x3c3fef['id']:_0x3c3fef[_0x502fdd('0xbcd')]});}),_0x12ba40[_0x1b0949('0x215b')]=angular[_0x1b0949('0x20a')](_0x12ba40[_0x1b0949('0x11b9')]),_0x12ba40[_0x1b0949('0x1a30')]['forEach'](function(_0x3d5a37){var _0x4998ca=_0x1b0949,_0xaab7e9=_0x51538b()['find'](_0x12ba40[_0x4998ca('0x11b9')],{'id':_0x3d5a37['id']});_0x12ba40[_0x4998ca('0x7fc')][_0x4998ca('0x924')]==='admin'?_0x3d5a37[_0x4998ca('0x145d')]=!![]:_0x3d5a37['isValid']=typeof _0xaab7e9!==_0x4998ca('0x1574')?!![]:![];}),_0x322b8b();})[_0x5afded('0xaa5')](function(_0x14f1d9){var _0x551a4d=_0x5afded,_0x1d0840=_0x14f1d9&&_0x14f1d9['rows']?_0x14f1d9[_0x551a4d('0x580')]:[];_0x12ba40['selectedItems']=_0x51538b()['map'](_0x1d0840,function(_0x40c837){var _0x443983=_0x551a4d;return _0x51538b()[_0x443983('0xe9e')](_0x12ba40['items'],{'id':_0x40c837['id']});}),_0x12ba40[_0x551a4d('0x214a')]=angular['copy'](_0x12ba40[_0x551a4d('0xbf7')]),_0x12ba40[_0x551a4d('0x1c23')]['selectedItems']=_0x12ba40[_0x551a4d('0xbf7')],_0x12ba40[_0x551a4d('0x1c23')]['items']=_0x51538b()[_0x551a4d('0x1ebb')](_0x12ba40[_0x551a4d('0x11b9')],_0x12ba40[_0x551a4d('0x1c23')][_0x551a4d('0xbf7')],'id'),_0x5c7068();})[_0x5afded('0x253d')](function(_0x342bed){_0x466d09(_0x342bed);});});}function _0x302069(){return _0x48a010(function(_0x1278f0,_0x543714){var _0x2e331d=a0_0x1149;return _0x529b63[_0x2e331d('0x249a')][_0x2e331d('0x2122')]({'sectionId':_0x12ba40['section']['id'],'nolimit':!![]})[_0x2e331d('0x1dc2')][_0x2e331d('0xaa5')](function(_0x2056e){_0x1278f0(_0x2056e);})[_0x2e331d('0x253d')](function(_0x3bc1d5){_0x543714(_0x3bc1d5);});});}function _0x322b8b(){return _0x48a010(function(_0x555ba5,_0x1307bf){var _0xd6e3f3=a0_0x1149,_0x3393a1=_0x529b63[_0x12ba40['apiRoute']];return _0x3393a1[_0x12ba40[_0xd6e3f3('0x1b10')]]({'id':_0x12ba40[_0xd6e3f3('0x1181')]['id'],'fields':_0xd6e3f3('0x17fe'),'nolimit':!![]})['$promise']['then'](function(_0x1e2152){_0x555ba5(_0x1e2152);})[_0xd6e3f3('0x253d')](function(_0x485a29){_0x1307bf(_0x485a29);});});}function _0x2cfb01(){return _0x48a010(function(_0x50e0f2,_0x57f5d2){var _0x3978c6=a0_0x1149;return _0x529b63[_0x3978c6('0x26b4')][_0x3978c6('0x2122')]({'fields':'id,name','nolimit':!![]})['$promise']['then'](function(_0x33059b){_0x50e0f2(_0x33059b);})[_0x3978c6('0x253d')](function(_0xf11f3){_0x57f5d2(_0xf11f3);});});}function _0x453a39(_0x312ad0){return _0x48a010(function(_0x12d2f9,_0x2f3963){var _0x56a627=a0_0x1149;if(_0x51538b()[_0x56a627('0x116b')](_0x312ad0))_0x12d2f9();else{var _0x4df9d9=_0x529b63[_0x12ba40['apiRoute']];_0x4df9d9[_0x12ba40[_0x56a627('0x1669')]]({'id':_0x12ba40[_0x56a627('0x1181')]['id'],'ids':_0x51538b()[_0x56a627('0x1246')](_0x312ad0,'id')})[_0x56a627('0x1dc2')][_0x56a627('0xaa5')](function(){_0x12d2f9();})[_0x56a627('0x253d')](function(_0x300901){_0x2f3963(_0x300901);});}});}function _0x54da1b(_0x30e5c0){return _0x48a010(function(_0x22801b,_0x436033){var _0x8c02c9=a0_0x1149;if(_0x51538b()[_0x8c02c9('0x116b')](_0x30e5c0))_0x22801b();else{var _0x357709=_0x529b63[_0x12ba40[_0x8c02c9('0x1f4')]];_0x357709[_0x12ba40[_0x8c02c9('0x1a2a')]]({'id':_0x12ba40[_0x8c02c9('0x1181')]['id'],'ids':_0x51538b()[_0x8c02c9('0x1246')](_0x30e5c0,'id')})[_0x8c02c9('0x1dc2')][_0x8c02c9('0xaa5')](function(){_0x22801b();})[_0x8c02c9('0x253d')](function(_0x5dd71d){_0x436033(_0x5dd71d);});}});}function _0x5a26fa(){var _0x2edec1=_0x19e633;_0x12ba40[_0x2edec1('0x1aaa')]=!![];var _0x14e397=_0x51538b()[_0x2edec1('0x1ebb')](_0x12ba40[_0x2edec1('0x214a')],_0x12ba40[_0x2edec1('0xbf7')],'id'),_0x233726=_0x51538b()[_0x2edec1('0x1ebb')](_0x12ba40['selectedItems'],_0x12ba40[_0x2edec1('0x214a')],'id');return _0x54da1b(_0x14e397)[_0x2edec1('0xaa5')](function(){return _0x453a39(_0x233726);})['then'](function(){var _0x4f3d83=_0x2edec1;_0x12ba40[_0x4f3d83('0xc54')]=![],_0x12ba40['startingAllowedItems']=angular[_0x4f3d83('0x20a')](_0x12ba40['allowedItems']),_0x12ba40[_0x4f3d83('0x214a')]=angular[_0x4f3d83('0x20a')](_0x12ba40[_0x4f3d83('0xbf7')]),_0x7dab43[_0x4f3d83('0xe10')]({'title':_0x4f3d83('0x2eb'),'msg':_0x4f3d83('0x15bb')});})[_0x2edec1('0x253d')](function(_0x599c22){var _0x4dee01=_0x2edec1;_0x7dab43[_0x4dee01('0x187f')]({'title':_0x599c22[_0x4dee01('0x2fa')]?_0x4dee01('0x16c2')+_0x599c22['status']+_0x4dee01('0x169e')+_0x599c22['statusText']:_0x4dee01('0x2281'),'msg':_0x599c22[_0x4dee01('0x2fa')]?JSON[_0x4dee01('0xa48')](_0x599c22[_0x4dee01('0x10fd')]):_0x599c22[_0x4dee01('0x684')]()});})[_0x2edec1('0x1889')](function(){_0x12ba40['loading']=![];});}function _0x4acc6d(){var _0x3c04c7=_0x19e633;_0x4ca428[_0x3c04c7('0x1120')]();}}const _0x5ab742=_0x23a495;_0x56f433[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x2378'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x1181'),_0x1a8446('0x154f'),'Sequence','$q'];function _0x56f433(_0x3dfc41,_0x396404,_0x2ef707,_0x4d117f,_0x2c318d,_0x5548b2,_0x4b0e3c,_0x2acc24){var _0x50d8a9=_0x1a8446,_0xdf08f6=this;_0xdf08f6[_0x50d8a9('0x24e2')]=[],_0xdf08f6[_0x50d8a9('0x1a30')]=_0x5548b2?_0x5548b2:[],_0xdf08f6[_0x50d8a9('0x1aaa')]=![],_0xdf08f6[_0x50d8a9('0x2023')]=_0x390fe4,_0xdf08f6[_0x50d8a9('0x1d91')]=_0x1f7883,_0xdf08f6[_0x50d8a9('0x162a')]=_0x264ad8,_0xdf08f6[_0x50d8a9('0x26c4')]=_0x471017,_0xdf08f6[_0x50d8a9('0x1718')]=_0x112512,_0xdf08f6[_0x50d8a9('0x280d')]=_0x400bb8,_0xdf08f6[_0x50d8a9('0xaad')]=_0x74ecf1;function _0x264ad8(_0xb415b5,_0xcb7e21){var _0x1fdfa4=_0x50d8a9,_0x31a9d7=_0xcb7e21['indexOf'](_0xb415b5);_0x31a9d7>-0x1?_0xcb7e21[_0x1fdfa4('0x1280')](_0x31a9d7,0x1):_0xcb7e21[_0x1fdfa4('0x1599')](_0xb415b5);}function _0x1f7883(_0x458c29,_0x155458){var _0x502671=_0x50d8a9;return _0x155458[_0x502671('0x1f38')](_0x458c29)>-0x1;}function _0x471017(){var _0x5221c7=_0x50d8a9;return _0xdf08f6['selected']['length']!==0x0&&_0xdf08f6['selected'][_0x5221c7('0x2587')]!==_0xdf08f6[_0x5221c7('0x1a30')]['length'];}function _0x112512(){var _0x116168=_0x50d8a9;return _0xdf08f6['selected'][_0x116168('0x2587')]===_0xdf08f6[_0x116168('0x1a30')][_0x116168('0x2587')];}function _0x400bb8(){var _0x117af1=_0x50d8a9;if(_0xdf08f6[_0x117af1('0x24e2')][_0x117af1('0x2587')]===_0xdf08f6[_0x117af1('0x1a30')]['length'])_0xdf08f6[_0x117af1('0x24e2')]=[];else(_0xdf08f6[_0x117af1('0x24e2')][_0x117af1('0x2587')]===0x0||_0xdf08f6[_0x117af1('0x24e2')][_0x117af1('0x2587')]>0x0)&&(_0xdf08f6[_0x117af1('0x24e2')]=_0xdf08f6[_0x117af1('0x1a30')][_0x117af1('0x19aa')](0x0));}function _0x390fe4(){var _0x20224e=_0x50d8a9;_0x396404[_0x20224e('0x1120')]();}function _0x74ecf1(){_0xdf08f6['loading']=!![];var _0x30dbf1=_0x12a37();_0x30dbf1['finally'](function(){var _0x24524b=a0_0x1149;_0xdf08f6[_0x24524b('0x1aaa')]=![],_0x390fe4();});}function _0x12a37(){return _0x2acc24(function(_0x4e2205){var _0x42989b=a0_0x1149;for(var _0x47390a=0x0;_0x47390a<_0xdf08f6[_0x42989b('0x24e2')][_0x42989b('0x2587')];_0x47390a+=0x1){_0xdfbfc(_0x2c318d['id'],_0xdf08f6['selected'][_0x47390a]);}_0x43cce9(_0x4e2205);});}function _0xdfbfc(_0x5b89c0,_0x597d05){var _0x4e7cd8=_0x50d8a9,_0x3caa41=_0x597d05['id'];_0x4b0e3c[_0x4e7cd8('0x2be')](function(){var _0x47c2bf=_0x4e7cd8;return _0x4d117f[_0x47c2bf('0xe8d')]['removeLists']({'id':_0x5b89c0,'ids':_0x3caa41})[_0x47c2bf('0x1dc2')][_0x47c2bf('0xaa5')](function(){var _0x281a5a=_0x47c2bf;return _0x4d117f[_0x281a5a('0xe8d')][_0x281a5a('0x161d')]({'id':_0x5b89c0,'ids':_0x3caa41,'dialCheckDuplicateType':_0x281a5a('0x158d')})['$promise'];})['then'](function(){var _0x4e9f0=_0x47c2bf;_0x2ef707['success']({'title':_0x4e9f0('0x257e'),'msg':_0x4e9f0('0x1040')+_0x597d05[_0x4e9f0('0x25d6')]+_0x4e9f0('0x16f5')});})[_0x47c2bf('0x253d')](function(_0x2fe20a){var _0x37a289=_0x47c2bf;_0x2ef707[_0x37a289('0x187f')]({'title':_0x2fe20a[_0x37a289('0x2fa')]?_0x37a289('0x16c2')+_0x2fe20a[_0x37a289('0x2fa')]+_0x37a289('0x169e')+_0x2fe20a['statusText']:_0x37a289('0x1229'),'msg':_0x2fe20a[_0x37a289('0x2fa')]?JSON[_0x37a289('0xa48')](_0x2fe20a[_0x37a289('0x10fd')]):_0x2fe20a[_0x37a289('0x684')]()});});});}function _0x43cce9(_0x852877){var _0x545de9=_0x50d8a9;_0x4b0e3c[_0x545de9('0x2be')](function(){return _0x852877();});}}const _0x11e42f=_0x56f433,_0x3f4eee=_0x4fb511['p']+_0x1a8446('0x2290'),_0x428761=_0x4fb511['p']+_0x1a8446('0x263'),_0x414ea1=_0x4fb511['p']+_0x1a8446('0x25b5'),_0xa4c25e=_0x4fb511['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html/resetlist-[chunkhash].html';_0x49ca12['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1181'),_0x1a8446('0x1a50')];function _0x49ca12(_0x97838e,_0x5597d0,_0x556dbb,_0x2a5857,_0x386dcf,_0x46d3e2,_0x440396,_0x2cfe51,_0x59470e,_0x506243,_0x4ffec5,_0x93e1b7){var _0x3e4730=_0x1a8446,_0x2efc2e=this;_0x2efc2e[_0x3e4730('0x7fc')]=_0x506243['getCurrentUser'](),_0x2efc2e[_0x3e4730('0x1202')]=_0x46d3e2,_0x2efc2e['setting']=_0x440396,_0x2efc2e['passwordPattern']=_0x2efc2e[_0x3e4730('0x143f')][_0x3e4730('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2efc2e[_0x3e4730('0x18cc')]=_0x5597d0[_0x3e4730('0x1cc2')]()+_0x3e4730('0x356')+_0x5597d0[_0x3e4730('0x160c')](),_0x2efc2e[_0x3e4730('0x1181')]=_0x4ffec5||_0x97838e[_0x3e4730('0x25cf')][_0x3e4730('0x1181')]||{},_0x2efc2e[_0x3e4730('0x1a50')]=_0x93e1b7&&_0x93e1b7[_0x3e4730('0xd15')]==0x1?_0x93e1b7[_0x3e4730('0x580')][0x0]:null,_0x2efc2e[_0x3e4730('0xada')]=_0x506243[_0x3e4730('0xffd')](_0x2efc2e[_0x3e4730('0x1a50')]?_0x2efc2e[_0x3e4730('0x1a50')][_0x3e4730('0xada')]:null),_0x2efc2e[_0x3e4730('0x9f0')]={},_0x2efc2e[_0x3e4730('0xe5c')]=_0x97838e[_0x3e4730('0x25cf')][_0x3e4730('0x25c2')]||0x0,_0x2efc2e['clonedialog']=_0x25a51c,_0x2efc2e[_0x3e4730('0x54b')]=_0x5d01ff,_0x2efc2e['blacklistadddialog']=_0xa2d6fc,_0x2efc2e[_0x3e4730('0xee1')]=_0x485dff,_0x2efc2e['gotogoto']=_0x7f3ee0,_0x2efc2e[_0x3e4730('0xc10')]=_0x59470e[_0x3e4730('0x3a1')],_0x2efc2e[_0x3e4730('0x6c1')]=_0x1f7d44,_0x2efc2e[_0x3e4730('0x978')]=_0x6580cb,_0x506243['hasRole'](_0x3e4730('0x178b'))?_0x2cfe51[_0x3e4730('0x1651')]['get']({'fields':_0x3e4730('0x17fe'),'sort':_0x3e4730('0x25d6')})['$promise'][_0x3e4730('0xaa5')](function(_0x35a0fd){var _0x3ad611=_0x3e4730;_0x2efc2e[_0x3ad611('0x1bc2')]=_0x35a0fd[_0x3ad611('0x580')]||[];})[_0x3e4730('0x253d')](function(_0x16ea82){var _0x339ade=_0x3e4730;_0x59470e[_0x339ade('0x187f')]({'title':_0x16ea82[_0x339ade('0x2fa')]?_0x339ade('0x16c2')+_0x16ea82[_0x339ade('0x2fa')]+_0x339ade('0x169e')+_0x16ea82['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x16ea82['data']?JSON['stringify'](_0x16ea82[_0x339ade('0x10fd')]):_0x16ea82[_0x339ade('0x684')]()});}):_0x2cfe51['trunk'][_0x3e4730('0x2122')]({'fields':_0x3e4730('0x17fe'),'sort':_0x3e4730('0x25d6')})[_0x3e4730('0x1dc2')][_0x3e4730('0xaa5')](function(_0xcb8674){var _0x222a50=_0x3e4730;_0x2efc2e[_0x222a50('0x1bc2')]=_0xcb8674[_0x222a50('0x580')]||[];})[_0x3e4730('0xaa5')](function(){var _0x213812=_0x3e4730;return _0x2cfe51[_0x213812('0x1a50')][_0x213812('0x2122')]({'userProfileId':_0x2efc2e['currentUser']['userProfileId'],'sectionId':0x3f3})[_0x213812('0x1dc2')];})['then'](function(_0x3a8f0b){var _0x591d41=_0x3e4730,_0x21d499=_0x3a8f0b&&_0x3a8f0b[_0x591d41('0x580')]?_0x3a8f0b[_0x591d41('0x580')][0x0]:null;if(!_0x21d499)_0x2efc2e[_0x591d41('0x1bc2')]=[];else{if(!_0x21d499[_0x591d41('0x26cc')])return _0x2cfe51[_0x591d41('0x249a')]['get']({'sectionId':_0x21d499['id']})['$promise'][_0x591d41('0xaa5')](function(_0x5ea60e){var _0x35b910=_0x591d41,_0x58eca8=_0x51538b()[_0x35b910('0x1246')](_0x5ea60e['rows'],function(_0x4a8ef3){var _0x4f2533=_0x35b910;return _0x51538b()[_0x4f2533('0xe9e')](_0x2efc2e[_0x4f2533('0x1bc2')],{'id':_0x4a8ef3[_0x4f2533('0xbcd')]});});_0x2efc2e[_0x35b910('0x1bc2')][_0x35b910('0x15b5')](function(_0x1f8cfe){!_0x51538b()['some'](_0x58eca8,['id',_0x1f8cfe['id']])&&(_0x1f8cfe['canSelect']=![]),_0x58eca8['push'](_0x1f8cfe);}),_0x2efc2e[_0x35b910('0x1bc2')]=_0x58eca8;});}})[_0x3e4730('0x253d')](function(_0x365b4f){var _0x1f3fef=_0x3e4730;_0x59470e[_0x1f3fef('0x187f')]({'title':_0x365b4f[_0x1f3fef('0x2fa')]?'API:'+_0x365b4f['status']+_0x1f3fef('0x169e')+_0x365b4f[_0x1f3fef('0x24df')]:_0x1f3fef('0x117a'),'msg':_0x365b4f[_0x1f3fef('0x10fd')]?JSON[_0x1f3fef('0xa48')](_0x365b4f[_0x1f3fef('0x10fd')]):_0x365b4f[_0x1f3fef('0x684')]()});}),_0x506243[_0x3e4730('0x26e8')](_0x3e4730('0x178b'))?_0x2cfe51[_0x3e4730('0x37b')][_0x3e4730('0x2122')]({'fields':_0x3e4730('0x17fe'),'sort':'name'})[_0x3e4730('0x1dc2')][_0x3e4730('0xaa5')](function(_0x4e91e4){var _0x56f68c=_0x3e4730;_0x2efc2e['projects']=_0x4e91e4[_0x56f68c('0x580')]||[];})[_0x3e4730('0x253d')](function(_0x38f4d0){var _0x18130a=_0x3e4730;_0x59470e[_0x18130a('0x187f')]({'title':_0x38f4d0[_0x18130a('0x2fa')]?_0x18130a('0x16c2')+_0x38f4d0['status']+'\x20-\x20'+_0x38f4d0[_0x18130a('0x24df')]:_0x18130a('0x25d'),'msg':_0x38f4d0[_0x18130a('0x10fd')]?JSON['stringify'](_0x38f4d0[_0x18130a('0x10fd')]):_0x38f4d0[_0x18130a('0x684')]()});}):_0x2cfe51[_0x3e4730('0x37b')]['get']({'fields':_0x3e4730('0x17fe'),'sort':_0x3e4730('0x25d6')})[_0x3e4730('0x1dc2')][_0x3e4730('0xaa5')](function(_0x45ac7a){var _0x340cfe=_0x3e4730;_0x2efc2e[_0x340cfe('0x8d1')]=_0x45ac7a[_0x340cfe('0x580')]||[];})[_0x3e4730('0xaa5')](function(){var _0x1ee815=_0x3e4730;return _0x2cfe51[_0x1ee815('0x1a50')][_0x1ee815('0x2122')]({'userProfileId':_0x2efc2e[_0x1ee815('0x7fc')]['userProfileId'],'sectionId':0x44f})[_0x1ee815('0x1dc2')];})[_0x3e4730('0xaa5')](function(_0x1177c9){var _0x129075=_0x3e4730,_0x24f367=_0x1177c9&&_0x1177c9[_0x129075('0x580')]?_0x1177c9[_0x129075('0x580')][0x0]:null;if(!_0x24f367){var _0x1c96fb=[],_0x28046a=null;_0x2efc2e[_0x129075('0x1181')]&&(_0x28046a=_0x51538b()['find'](_0x2efc2e[_0x129075('0x8d1')],{'id':Number(_0x2efc2e[_0x129075('0x1181')]['SquareProjectId'])}));for(var _0x35c84a=0x0;_0x35c84a<_0x2efc2e['projects'][_0x129075('0x2587')];_0x35c84a++){_0x28046a&&_0x2efc2e[_0x129075('0x8d1')][_0x35c84a]['id']===_0x28046a['id']&&(_0x2efc2e[_0x129075('0x8d1')][_0x35c84a]['canSelect']=![],_0x1c96fb['push'](_0x2efc2e[_0x129075('0x8d1')][_0x35c84a]));}_0x2efc2e['projects']=_0x1c96fb;}else{if(!_0x24f367[_0x129075('0x26cc')])return _0x2cfe51['userProfileResource'][_0x129075('0x2122')]({'sectionId':_0x24f367['id']})['$promise']['then'](function(_0x265b8a){var _0x53197e=_0x129075,_0x36d202=_0x51538b()[_0x53197e('0x1246')](_0x265b8a['rows'],function(_0x59cb40){var _0x49cfba=_0x53197e;return _0x51538b()[_0x49cfba('0xe9e')](_0x2efc2e['projects'],{'id':_0x59cb40[_0x49cfba('0xbcd')]});}),_0x2712b8=null;_0x2efc2e[_0x53197e('0x1181')]&&(_0x2712b8=_0x51538b()[_0x53197e('0xe9e')](_0x2efc2e[_0x53197e('0x8d1')],{'id':Number(_0x2efc2e[_0x53197e('0x1181')][_0x53197e('0x4da')])}));if(_0x2712b8&&!_0x51538b()[_0x53197e('0x2c2')](_0x36d202,['id',_0x2712b8['id']])){var _0x6996d7=_0x51538b()[_0x53197e('0xe9e')](_0x2efc2e[_0x53197e('0x8d1')],{'id':_0x2712b8['id']});_0x6996d7[_0x53197e('0x12eb')]=![],_0x36d202[_0x53197e('0x1599')](_0x6996d7);}_0x2efc2e['projects']=_0x36d202;});}})[_0x3e4730('0x253d')](function(_0x1aeedd){var _0x421254=_0x3e4730;_0x59470e[_0x421254('0x187f')]({'title':_0x1aeedd[_0x421254('0x2fa')]?_0x421254('0x16c2')+_0x1aeedd['status']+_0x421254('0x169e')+_0x1aeedd[_0x421254('0x24df')]:_0x421254('0x19d7'),'msg':_0x1aeedd[_0x421254('0x10fd')]?JSON[_0x421254('0xa48')](_0x1aeedd[_0x421254('0x10fd')]):_0x1aeedd[_0x421254('0x684')]()});}),_0x506243[_0x3e4730('0x26e8')](_0x3e4730('0x178b'))?_0x2cfe51[_0x3e4730('0x1c21')][_0x3e4730('0x2122')]({'fields':'id,name','sort':'name','IntervalId':_0x3e4730('0x1ed9')})[_0x3e4730('0x1dc2')][_0x3e4730('0xaa5')](function(_0x4c09e4){var _0x1cfcca=_0x3e4730;_0x2efc2e['interval']=_0x4c09e4[_0x1cfcca('0x580')]||[];})['catch'](function(_0x432201){var _0x2c5791=_0x3e4730;_0x59470e[_0x2c5791('0x187f')]({'title':_0x432201[_0x2c5791('0x2fa')]?_0x2c5791('0x16c2')+_0x432201[_0x2c5791('0x2fa')]+_0x2c5791('0x169e')+_0x432201[_0x2c5791('0x24df')]:'SYSTEM:GET_INTERVAL','msg':_0x432201[_0x2c5791('0x10fd')]?JSON[_0x2c5791('0xa48')](_0x432201[_0x2c5791('0x10fd')]):_0x432201[_0x2c5791('0x684')]()});}):_0x2cfe51[_0x3e4730('0x1c21')]['get']({'fields':'id,name','sort':_0x3e4730('0x25d6'),'IntervalId':_0x3e4730('0x1ed9')})[_0x3e4730('0x1dc2')][_0x3e4730('0xaa5')](function(_0x3145ee){var _0x1391e8=_0x3e4730;_0x2efc2e[_0x1391e8('0x1c21')]=_0x3145ee['rows']||[];})[_0x3e4730('0xaa5')](function(){var _0x3da032=_0x3e4730;return _0x2cfe51[_0x3da032('0x1a50')]['get']({'userProfileId':_0x2efc2e[_0x3da032('0x7fc')][_0x3da032('0x2168')],'sectionId':0x3ec})[_0x3da032('0x1dc2')];})['then'](function(_0x233b38){var _0x464f04=_0x3e4730,_0x1055ef=_0x233b38&&_0x233b38[_0x464f04('0x580')]?_0x233b38[_0x464f04('0x580')][0x0]:null;if(!_0x1055ef){var _0x39e79d=[],_0x2a061d=null;_0x2efc2e[_0x464f04('0x1181')]&&(_0x2a061d=_0x51538b()[_0x464f04('0xe9e')](_0x2efc2e['interval'],{'id':Number(_0x2efc2e[_0x464f04('0x1181')][_0x464f04('0x1f8c')])}));for(var _0x415c44=0x0;_0x415c44<_0x2efc2e[_0x464f04('0x1c21')][_0x464f04('0x2587')];_0x415c44++){_0x2a061d&&_0x2efc2e['interval'][_0x415c44]['id']===_0x2a061d['id']&&(_0x2efc2e[_0x464f04('0x1c21')][_0x415c44][_0x464f04('0x12eb')]=![],_0x39e79d[_0x464f04('0x1599')](_0x2efc2e[_0x464f04('0x1c21')][_0x415c44]));}_0x2efc2e[_0x464f04('0x1c21')]=_0x39e79d;}else{if(!_0x1055ef[_0x464f04('0x26cc')])return _0x2cfe51['userProfileResource'][_0x464f04('0x2122')]({'sectionId':_0x1055ef['id']})[_0x464f04('0x1dc2')][_0x464f04('0xaa5')](function(_0x37fc39){var _0x342b4a=_0x464f04,_0x13b523=_0x51538b()[_0x342b4a('0x1246')](_0x37fc39[_0x342b4a('0x580')],function(_0x2d594f){var _0x4819ba=_0x342b4a;return _0x51538b()[_0x4819ba('0xe9e')](_0x2efc2e[_0x4819ba('0x1c21')],{'id':_0x2d594f['resourceId']});}),_0x1719f9=null;_0x2efc2e[_0x342b4a('0x1181')]&&(_0x1719f9=_0x51538b()[_0x342b4a('0xe9e')](_0x2efc2e['interval'],{'id':Number(_0x2efc2e[_0x342b4a('0x1181')][_0x342b4a('0x1f8c')])}));if(_0x1719f9&&!_0x51538b()[_0x342b4a('0x2c2')](_0x13b523,['id',_0x1719f9['id']])){var _0x10df19=_0x51538b()[_0x342b4a('0xe9e')](_0x2efc2e[_0x342b4a('0x1c21')],{'id':_0x1719f9['id']});_0x10df19['canSelect']=![],_0x13b523[_0x342b4a('0x1599')](_0x10df19);}_0x2efc2e['interval']=_0x13b523;});}})[_0x3e4730('0x253d')](function(_0x1b0a75){var _0x255d0a=_0x3e4730;_0x59470e['error']({'title':_0x1b0a75[_0x255d0a('0x2fa')]?_0x255d0a('0x16c2')+_0x1b0a75[_0x255d0a('0x2fa')]+_0x255d0a('0x169e')+_0x1b0a75[_0x255d0a('0x24df')]:_0x255d0a('0x2313'),'msg':_0x1b0a75[_0x255d0a('0x10fd')]?JSON[_0x255d0a('0xa48')](_0x1b0a75[_0x255d0a('0x10fd')]):_0x1b0a75['toString']()});});function _0x25a51c(_0x49fa29,_0x301034){var _0x1e0b06=_0x3e4730;_0x556dbb['show']({'controller':_0x1e0b06('0x713'),'controllerAs':'vm','templateUrl':_0x3f4eee,'parent':angular['element'](_0x2a5857[_0x1e0b06('0x54c')]),'targetEvent':_0x301034,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x49fa29,'ivrCampaigns':_0x2efc2e[_0x1e0b06('0x1ee9')]?_0x2efc2e['ivrCampaigns'][_0x1e0b06('0x580')]:[],'crudPermissions':_0x2efc2e[_0x1e0b06('0xada')]}});}function _0x5d01ff(_0x7e5b19,_0x40663a){var _0x4e3e4d=_0x3e4730;_0x556dbb[_0x4e3e4d('0x1e6d')]({'controller':_0x4e3e4d('0x1384'),'controllerAs':'vm','templateUrl':_0x428761,'parent':angular[_0x4e3e4d('0x1aa8')](_0x2a5857[_0x4e3e4d('0x54c')]),'targetEvent':_0x40663a,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x7e5b19,'ivrCampaigns':_0x2efc2e[_0x4e3e4d('0x1ee9')]?_0x2efc2e[_0x4e3e4d('0x1ee9')][_0x4e3e4d('0x580')]:[],'crudPermissions':_0x2efc2e[_0x4e3e4d('0xada')]}});}function _0xa2d6fc(_0x25d04b,_0x484a0f){var _0x257524=_0x3e4730;_0x556dbb[_0x257524('0x1e6d')]({'controller':_0x257524('0x16d4'),'controllerAs':'vm','templateUrl':_0x414ea1,'parent':angular['element'](_0x2a5857[_0x257524('0x54c')]),'targetEvent':_0x484a0f,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x25d04b,'ivrCampaigns':_0x2efc2e['ivrCampaigns']?_0x2efc2e[_0x257524('0x1ee9')][_0x257524('0x580')]:[],'crudPermissions':_0x2efc2e[_0x257524('0xada')]}});}function _0x26f86e(_0x3205c1,_0x3008db){var _0xb588d3=_0x3e4730,_0x338202=_0x3008db['id'];_0x2cfe51[_0xb588d3('0xe8d')][_0xb588d3('0xb97')]({'id':_0x3205c1,'ids':_0x338202})[_0xb588d3('0x1dc2')]['then'](function(){var _0x43247d=_0xb588d3;return _0x2cfe51[_0x43247d('0xe8d')][_0x43247d('0x161d')]({'id':_0x3205c1,'ids':_0x338202,'dialCheckDuplicateType':'never'})[_0x43247d('0x1dc2')];})[_0xb588d3('0xaa5')](function(){var _0x246026=_0xb588d3;_0x59470e['success']({'title':_0x246026('0x257e'),'msg':_0x246026('0x1040')+_0x3008db[_0x246026('0x25d6')]+_0x246026('0x16f5')});})[_0xb588d3('0x253d')](function(_0x8514c4){var _0x294ce5=_0xb588d3;_0x59470e['error']({'title':_0x8514c4[_0x294ce5('0x2fa')]?_0x294ce5('0x16c2')+_0x8514c4[_0x294ce5('0x2fa')]+_0x294ce5('0x169e')+_0x8514c4[_0x294ce5('0x24df')]:_0x294ce5('0x23e8'),'msg':_0x8514c4[_0x294ce5('0x2fa')]?JSON[_0x294ce5('0xa48')](_0x8514c4['data']):_0x8514c4[_0x294ce5('0x684')]()});});}function _0x485dff(_0x56651c,_0x199f9c){var _0x97e29f=_0x3e4730;_0x2cfe51['campaign']['getLists']({'id':_0x56651c['id'],'fields':_0x97e29f('0x17fe'),'nolimit':!![]})[_0x97e29f('0x1dc2')][_0x97e29f('0xaa5')](function(_0x5e0212){var _0x52948=_0x97e29f;if(_0x51538b()['isNil'](_0x5e0212['rows'])||_0x51538b()[_0x52948('0x116b')](_0x5e0212[_0x52948('0x580')]))_0x59470e['info']({'title':_0x52948('0x1f71')});else{if(_0x5e0212[_0x52948('0x580')]['length']===0x1){var _0x414216=_0x556dbb[_0x52948('0x281e')]()['title'](_0x52948('0x1ba7')+_0x5e0212[_0x52948('0x580')][0x0][_0x52948('0x25d6')]+'\x20?')[_0x52948('0x102e')](_0x52948('0x389')+_0x5e0212['rows'][0x0][_0x52948('0x25d6')]+_0x52948('0x697')+'\x20will\x20be\x20reset.')['ariaLabel'](_0x52948('0x1e8a'))[_0x52948('0x116d')](_0x199f9c)['ok']('OK')[_0x52948('0x2030')](_0x52948('0x2410'));_0x556dbb['show'](_0x414216)['then'](function(){var _0x55adca=_0x52948;_0x26f86e(_0x2efc2e['ivrCampaign']['id'],_0x5e0212[_0x55adca('0x580')][0x0]);});}else _0x556dbb['show']({'controller':'IvrCampaignresetlistController','controllerAs':'vm','templateUrl':_0xa4c25e,'parent':angular['element'](_0x2a5857['body']),'targetEvent':_0x199f9c,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x56651c,'listsCampaign':_0x5e0212?_0x5e0212[_0x52948('0x580')]:[]}});}})[_0x97e29f('0x253d')](function(_0x219ae7){var _0x4c09de=_0x97e29f;_0x59470e[_0x4c09de('0x187f')]({'title':_0x219ae7[_0x4c09de('0x2fa')]?_0x4c09de('0x16c2')+_0x219ae7['status']+_0x4c09de('0x169e')+_0x219ae7['statusText']:_0x4c09de('0xb5e'),'msg':_0x219ae7[_0x4c09de('0x2fa')]?JSON[_0x4c09de('0xa48')](_0x219ae7[_0x4c09de('0x10fd')]):_0x219ae7[_0x4c09de('0x684')]()});});}function _0x7f3ee0(){var _0x18c77d=_0x3e4730;if(_0x506243[_0x18c77d('0x26e8')]('admin'))_0x97838e['go'](_0x18c77d('0x284d'),{});else return _0x2cfe51[_0x18c77d('0x1a50')][_0x18c77d('0x2122')]({'userProfileId':_0x506243[_0x18c77d('0xacc')]()[_0x18c77d('0x2168')],'sectionId':0x5e6})[_0x18c77d('0x1dc2')]['then'](function(_0x409857){var _0x1f2ef0=_0x18c77d,_0x37e160=_0x409857&&_0x409857[_0x1f2ef0('0x580')]?_0x409857[_0x1f2ef0('0x580')][0x0]:null;_0x37e160&&_0x37e160['enabled']?_0x97838e['go'](_0x1f2ef0('0x284d'),{}):_0x59470e[_0x1f2ef0('0x3a1')]({'title':_0x386dcf[_0x1f2ef0('0x213f')](_0x1f2ef0('0x1aab')),'msg':_0x386dcf['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x18c77d('0x253d')](function(_0x404f63){var _0x5992a3=_0x18c77d;_0x59470e[_0x5992a3('0x187f')]({'title':_0x404f63[_0x5992a3('0x2fa')]?_0x5992a3('0x16c2')+_0x404f63[_0x5992a3('0x2fa')]+_0x5992a3('0x169e')+_0x404f63[_0x5992a3('0x24df')]:_0x5992a3('0x21d5'),'msg':_0x404f63['status']?JSON[_0x5992a3('0xa48')](_0x404f63[_0x5992a3('0x10fd')]):_0x404f63[_0x5992a3('0x684')]()});});}function _0x1f7d44(){var _0x56edb8=_0x3e4730;_0x97838e['go'](_0x56edb8('0x2300'),{},{'reload':_0x56edb8('0x2300')});}function _0x6580cb(){var _0x29879a=_0x3e4730;_0x2cfe51[_0x29879a('0xe8d')]['update']({'id':_0x2efc2e[_0x29879a('0x1181')]['id']},_0x2efc2e[_0x29879a('0x1181')])[_0x29879a('0x1dc2')][_0x29879a('0xaa5')](function(){var _0x586d4e=_0x29879a;_0x59470e['success']({'title':'IvrCampaign\x20updated!','msg':_0x2efc2e[_0x586d4e('0x1181')][_0x586d4e('0x25d6')]?_0x2efc2e['ivrCampaign'][_0x586d4e('0x25d6')]+_0x586d4e('0x1734'):''});})['catch'](function(_0x43b28f){var _0x4df988=_0x29879a;_0x59470e[_0x4df988('0x187f')]({'title':_0x43b28f[_0x4df988('0x2fa')]?_0x4df988('0x16c2')+_0x43b28f['status']+_0x4df988('0x169e')+_0x43b28f[_0x4df988('0x24df')]:_0x4df988('0x1d8d'),'msg':_0x43b28f['data']?JSON['stringify'](_0x43b28f[_0x4df988('0x10fd')]):_0x43b28f[_0x4df988('0x684')]()});});}}const _0x3e23bb=_0x49ca12;_0x3b6f15[_0x1a8446('0x1e33')]=['$scope','$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x1ee9'),'userProfile','userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x3b6f15(_0x307bb8,_0x5f484c,_0x442a24,_0x3ecbb6,_0x47e23c,_0x2a48a4,_0x3b1ea0,_0x20f53c,_0x4882b8,_0x72c4df,_0x3328e4,_0x259e7c,_0x28fddb,_0xc1e42e,_0x17d7ee,_0x10b810,_0x3006d8){var _0x1f837d=_0x1a8446,_0x3846c7=this;_0x3846c7[_0x1f837d('0x1202')]=_0x10b810,_0x3846c7[_0x1f837d('0x143f')]=_0x3006d8,_0x3846c7[_0x1f837d('0x7fc')]=_0x17d7ee[_0x1f837d('0xacc')](),_0x3846c7[_0x1f837d('0x1ee9')]=_0x4882b8||{'count':0x0,'rows':[]},_0x3846c7[_0x1f837d('0x1e97')]=_0x72c4df,_0x3846c7[_0x1f837d('0x1a50')]=_0x3328e4&&_0x3328e4[_0x1f837d('0xd15')]==0x1?_0x3328e4[_0x1f837d('0x580')][0x0]:null,_0x3846c7['crudPermissions']=_0x17d7ee[_0x1f837d('0xffd')](_0x3846c7[_0x1f837d('0x1a50')]?_0x3846c7[_0x1f837d('0x1a50')][_0x1f837d('0xada')]:null),_0x3846c7[_0x1f837d('0x12b6')]='ivrCampaigns',_0x3846c7['listOrder']='',_0x3846c7['listOrderAsc']=null,_0x3846c7[_0x1f837d('0x0')]=[],_0x3846c7[_0x1f837d('0x582')]={'fields':'createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength','type':'ivr','sort':_0x1f837d('0xd82'),'limit':0xa,'page':0x1},_0x3846c7[_0x1f837d('0x1913')]=_0x51538b()[_0x1f837d('0x184a')]([{'option':_0x1f837d('0x1b06'),'value':_0x1f837d('0x1dc8')},{'option':_0x1f837d('0xdb4'),'value':_0x1f837d('0x1781')},{'option':_0x1f837d('0x1bd5'),'value':_0x1f837d('0x382')}],function(_0x533214){var _0x3b0317=_0x1f837d;return _0x51538b()[_0x3b0317('0x170d')](_0x533214[_0x3b0317('0x12f4')],new RegExp('\x27','g'),'');}),_0x3846c7[_0x1f837d('0xc3c')]=_0x51538b()[_0x1f837d('0x184a')]([{'option':_0x1f837d('0x79d'),'value':'\x27DESC\x27'},{'option':'ASC','value':_0x1f837d('0x138c')}],function(_0x335873){var _0x392b0a=_0x1f837d;return _0x51538b()[_0x392b0a('0x170d')](_0x335873['value'],new RegExp('\x27','g'),'');}),_0x3846c7[_0x1f837d('0x1927')]=_0x1054df,_0x3846c7[_0x1f837d('0x16c1')]=_0x5198c2,_0x3846c7[_0x1f837d('0x54b')]=_0x319598,_0x3846c7['blacklistadddialog']=_0xe0c7b,_0x3846c7['deleteconfirm']=_0x34e9f3,_0x3846c7['gotorealtimegoto']=_0x2dfa45,_0x3846c7[_0x1f837d('0xe10')]=_0x9bc52e,_0x3846c7[_0x1f837d('0x2347')]=_0x60b404,_0x3846c7[_0x1f837d('0x1e15')]=_0x450680,_0x3846c7[_0x1f837d('0x1435')]=_0x1f19b2,_0x3846c7[_0x1f837d('0x1277')]=_0xd0eb8a,_0x3846c7[_0x1f837d('0x24ad')]=_0x37c2fa,_0x3846c7[_0x1f837d('0x1650')]=_0x1057ab,_0x3846c7[_0x1f837d('0xa71')]=_0x3371b5,_0x17d7ee[_0x1f837d('0x26e8')](_0x1f837d('0x178b'))?_0x259e7c[_0x1f837d('0x1651')]['get']({'fields':_0x1f837d('0x17fe'),'sort':_0x1f837d('0x25d6'),'table':'true'})[_0x1f837d('0x1dc2')][_0x1f837d('0xaa5')](function(_0x3be239){var _0x1fe5a5=_0x1f837d;_0x3846c7[_0x1fe5a5('0x1bc2')]=_0x3be239[_0x1fe5a5('0x580')]||[];})[_0x1f837d('0x253d')](function(_0x20fc02){var _0x2d759a=_0x1f837d;_0xc1e42e[_0x2d759a('0x187f')]({'title':_0x20fc02[_0x2d759a('0x2fa')]?_0x2d759a('0x16c2')+_0x20fc02[_0x2d759a('0x2fa')]+_0x2d759a('0x169e')+_0x20fc02[_0x2d759a('0x24df')]:_0x2d759a('0x298'),'msg':_0x20fc02[_0x2d759a('0x10fd')]?JSON[_0x2d759a('0xa48')](_0x20fc02[_0x2d759a('0x10fd')]):_0x20fc02[_0x2d759a('0x684')]()});}):_0x259e7c[_0x1f837d('0x1651')][_0x1f837d('0x2122')]({'fields':_0x1f837d('0x17fe'),'sort':_0x1f837d('0x25d6'),'table':'true'})[_0x1f837d('0x1dc2')][_0x1f837d('0xaa5')](function(_0x4bea17){var _0x183859=_0x1f837d;_0x3846c7[_0x183859('0x1bc2')]=_0x4bea17[_0x183859('0x580')]||[];})[_0x1f837d('0xaa5')](function(){var _0x43ec08=_0x1f837d;return _0x259e7c[_0x43ec08('0x1a50')]['get']({'userProfileId':_0x3846c7[_0x43ec08('0x7fc')][_0x43ec08('0x2168')],'sectionId':0x3f3})[_0x43ec08('0x1dc2')];})[_0x1f837d('0xaa5')](function(_0x52172b){var _0x1d0644=_0x1f837d,_0x2598e5=_0x52172b&&_0x52172b['rows']?_0x52172b['rows'][0x0]:null;if(!_0x2598e5)_0x3846c7['trunks']=[];else{if(!_0x2598e5[_0x1d0644('0x26cc')])return _0x259e7c['userProfileResource'][_0x1d0644('0x2122')]({'sectionId':_0x2598e5['id']})[_0x1d0644('0x1dc2')][_0x1d0644('0xaa5')](function(_0x5f4454){var _0x39cfe6=_0x1d0644,_0x3f34d1=_0x51538b()['map'](_0x5f4454[_0x39cfe6('0x580')],function(_0x4bfc65){var _0x95d45e=_0x39cfe6;return _0x51538b()[_0x95d45e('0xe9e')](_0x3846c7[_0x95d45e('0x1bc2')],{'id':_0x4bfc65[_0x95d45e('0xbcd')]});});_0x3846c7[_0x39cfe6('0x1bc2')]['forEach'](function(_0x1748e6){var _0x3a79dc=_0x39cfe6;!_0x51538b()[_0x3a79dc('0x2c2')](_0x3f34d1,['id',_0x1748e6['id']])&&(_0x1748e6['canSelect']=![]),_0x3f34d1['push'](_0x1748e6);}),_0x3846c7[_0x39cfe6('0x1bc2')]=_0x3f34d1;});}})[_0x1f837d('0x253d')](function(_0x190cbf){var _0xa08667=_0x1f837d;_0xc1e42e['error']({'title':_0x190cbf[_0xa08667('0x2fa')]?_0xa08667('0x16c2')+_0x190cbf[_0xa08667('0x2fa')]+_0xa08667('0x169e')+_0x190cbf[_0xa08667('0x24df')]:_0xa08667('0x117a'),'msg':_0x190cbf[_0xa08667('0x10fd')]?JSON['stringify'](_0x190cbf[_0xa08667('0x10fd')]):_0x190cbf[_0xa08667('0x684')]()});}),_0x17d7ee[_0x1f837d('0x26e8')](_0x1f837d('0x178b'))?_0x259e7c[_0x1f837d('0x37b')][_0x1f837d('0x2122')]({'fields':_0x1f837d('0x17fe'),'sort':_0x1f837d('0x25d6')})[_0x1f837d('0x1dc2')][_0x1f837d('0xaa5')](function(_0x4bded0){var _0x15c16b=_0x1f837d;_0x3846c7[_0x15c16b('0x8d1')]=_0x4bded0[_0x15c16b('0x580')]||[];})[_0x1f837d('0x253d')](function(_0x4cecee){var _0xcab95a=_0x1f837d;_0xc1e42e[_0xcab95a('0x187f')]({'title':_0x4cecee[_0xcab95a('0x2fa')]?_0xcab95a('0x16c2')+_0x4cecee[_0xcab95a('0x2fa')]+'\x20-\x20'+_0x4cecee['statusText']:_0xcab95a('0x25d'),'msg':_0x4cecee['data']?JSON['stringify'](_0x4cecee[_0xcab95a('0x10fd')]):_0x4cecee[_0xcab95a('0x684')]()});}):_0x259e7c['squareProject'][_0x1f837d('0x2122')]({'fields':_0x1f837d('0x17fe'),'sort':_0x1f837d('0x25d6')})[_0x1f837d('0x1dc2')][_0x1f837d('0xaa5')](function(_0x5a683f){var _0x592d8d=_0x1f837d;_0x3846c7[_0x592d8d('0x8d1')]=_0x5a683f[_0x592d8d('0x580')]||[];})[_0x1f837d('0xaa5')](function(){var _0x2630cc=_0x1f837d;return _0x259e7c['userProfileSection'][_0x2630cc('0x2122')]({'userProfileId':_0x3846c7[_0x2630cc('0x7fc')][_0x2630cc('0x2168')],'sectionId':0x44f})[_0x2630cc('0x1dc2')];})[_0x1f837d('0xaa5')](function(_0x1a339c){var _0x38d72f=_0x1f837d,_0x44281c=_0x1a339c&&_0x1a339c[_0x38d72f('0x580')]?_0x1a339c['rows'][0x0]:null;if(!_0x44281c){var _0x224d2b=[],_0x1493ee=[];_0x3846c7['ivrCampaigns']['rows'][_0x38d72f('0x15b5')](function(_0x522193){var _0x54665a=_0x38d72f,_0xf370d3=_0x51538b()[_0x54665a('0xe9e')](_0x3846c7[_0x54665a('0x8d1')],{'id':Number(_0x522193['SquareProjectId'])});_0x1493ee[_0x54665a('0x1599')](_0xf370d3);});for(var _0x381414=0x0;_0x381414<_0x3846c7[_0x38d72f('0x8d1')]['length'];_0x381414++){var _0x22e606=_0x51538b()[_0x38d72f('0x2c2')](_0x1493ee,{'id':_0x3846c7[_0x38d72f('0x8d1')][_0x381414]['id']});_0x22e606&&(_0x3846c7['projects'][_0x381414][_0x38d72f('0x12eb')]=![],_0x224d2b['push'](_0x3846c7[_0x38d72f('0x8d1')][_0x381414]));}_0x3846c7[_0x38d72f('0x8d1')]=_0x224d2b;}else{if(!_0x44281c[_0x38d72f('0x26cc')])return _0x259e7c[_0x38d72f('0x249a')][_0x38d72f('0x2122')]({'sectionId':_0x44281c['id']})[_0x38d72f('0x1dc2')][_0x38d72f('0xaa5')](function(_0x4be944){var _0xbd34a=_0x38d72f,_0x54b4ad=_0x51538b()[_0xbd34a('0x1246')](_0x4be944[_0xbd34a('0x580')],function(_0x2280e4){var _0x3fcd44=_0xbd34a;return _0x51538b()[_0x3fcd44('0xe9e')](_0x3846c7[_0x3fcd44('0x8d1')],{'id':_0x2280e4[_0x3fcd44('0xbcd')]});}),_0x31f1bd=null;_0x31f1bd=[],_0x3846c7[_0xbd34a('0x1ee9')][_0xbd34a('0x580')][_0xbd34a('0x15b5')](function(_0x53ab2b){var _0x53d32d=_0xbd34a,_0x4c72cc=_0x51538b()[_0x53d32d('0xe9e')](_0x3846c7[_0x53d32d('0x8d1')],{'id':Number(_0x53ab2b[_0x53d32d('0x4da')])});_0x31f1bd[_0x53d32d('0x1599')](_0x4c72cc);}),!_0x51538b()[_0xbd34a('0x116b')](_0x31f1bd)&&_0x31f1bd[_0xbd34a('0x15b5')](function(_0x3df8f9){var _0x124e9e=_0xbd34a;if(!_0x51538b()[_0x124e9e('0x2c2')](_0x54b4ad,['id',_0x3df8f9['id']])){var _0x145147=_0x51538b()[_0x124e9e('0xe9e')](_0x3846c7['projects'],{'id':_0x3df8f9['id']});_0x145147['canSelect']=![],_0x54b4ad[_0x124e9e('0x1599')](_0x145147);}}),_0x3846c7[_0xbd34a('0x8d1')]=_0x54b4ad;});}})[_0x1f837d('0x253d')](function(_0x1cf8ca){var _0x145d83=_0x1f837d;_0xc1e42e[_0x145d83('0x187f')]({'title':_0x1cf8ca['status']?_0x145d83('0x16c2')+_0x1cf8ca['status']+'\x20-\x20'+_0x1cf8ca['statusText']:_0x145d83('0x19d7'),'msg':_0x1cf8ca[_0x145d83('0x10fd')]?JSON[_0x145d83('0xa48')](_0x1cf8ca[_0x145d83('0x10fd')]):_0x1cf8ca[_0x145d83('0x684')]()});}),_0x17d7ee[_0x1f837d('0x26e8')](_0x1f837d('0x178b'))?_0x259e7c['interval'][_0x1f837d('0x2122')]({'fields':'id,name','sort':'name','IntervalId':_0x1f837d('0x1ed9')})['$promise'][_0x1f837d('0xaa5')](function(_0x108483){var _0x6904a8=_0x1f837d;_0x3846c7[_0x6904a8('0x1c21')]=_0x108483[_0x6904a8('0x580')]||[];})[_0x1f837d('0x253d')](function(_0x4a17e8){var _0x417af5=_0x1f837d;_0xc1e42e[_0x417af5('0x187f')]({'title':_0x4a17e8[_0x417af5('0x2fa')]?'API:'+_0x4a17e8[_0x417af5('0x2fa')]+_0x417af5('0x169e')+_0x4a17e8[_0x417af5('0x24df')]:'SYSTEM:GET_INTERVAL','msg':_0x4a17e8[_0x417af5('0x10fd')]?JSON[_0x417af5('0xa48')](_0x4a17e8[_0x417af5('0x10fd')]):_0x4a17e8[_0x417af5('0x684')]()});}):_0x259e7c['interval'][_0x1f837d('0x2122')]({'fields':_0x1f837d('0x17fe'),'sort':_0x1f837d('0x25d6'),'IntervalId':_0x1f837d('0x1ed9')})[_0x1f837d('0x1dc2')]['then'](function(_0x4f5474){var _0x307197=_0x1f837d;_0x3846c7[_0x307197('0x1c21')]=_0x4f5474[_0x307197('0x580')]||[];})[_0x1f837d('0xaa5')](function(){var _0x1e0794=_0x1f837d;return _0x259e7c[_0x1e0794('0x1a50')]['get']({'userProfileId':_0x3846c7[_0x1e0794('0x7fc')]['userProfileId'],'sectionId':0x3ec})[_0x1e0794('0x1dc2')];})['then'](function(_0x7f0585){var _0xd36f42=_0x1f837d,_0x435e6e=_0x7f0585&&_0x7f0585[_0xd36f42('0x580')]?_0x7f0585['rows'][0x0]:null;if(!_0x435e6e){var _0x4b83fb=[],_0x3b3784=null;_0x3846c7[_0xd36f42('0x1181')]&&(_0x3b3784=_0x51538b()[_0xd36f42('0xe9e')](_0x3846c7[_0xd36f42('0x1c21')],{'id':Number(_0x3846c7[_0xd36f42('0x1181')][_0xd36f42('0x1f8c')])}));for(var _0x36c7ed=0x0;_0x36c7ed<_0x3846c7[_0xd36f42('0x1c21')][_0xd36f42('0x2587')];_0x36c7ed++){_0x3b3784&&_0x3846c7[_0xd36f42('0x1c21')][_0x36c7ed]['id']===_0x3b3784['id']&&(_0x3846c7[_0xd36f42('0x1c21')][_0x36c7ed][_0xd36f42('0x12eb')]=![],_0x4b83fb[_0xd36f42('0x1599')](_0x3846c7[_0xd36f42('0x1c21')][_0x36c7ed]));}_0x3846c7['interval']=_0x4b83fb;}else{if(!_0x435e6e[_0xd36f42('0x26cc')])return _0x259e7c['userProfileResource']['get']({'sectionId':_0x435e6e['id']})[_0xd36f42('0x1dc2')][_0xd36f42('0xaa5')](function(_0x46df93){var _0x2f2b8c=_0xd36f42,_0x2a6a71=_0x51538b()[_0x2f2b8c('0x1246')](_0x46df93[_0x2f2b8c('0x580')],function(_0x22e055){var _0x4f82a7=_0x2f2b8c;return _0x51538b()[_0x4f82a7('0xe9e')](_0x3846c7[_0x4f82a7('0x1c21')],{'id':_0x22e055[_0x4f82a7('0xbcd')]});}),_0x5c8fa8=null;_0x3846c7[_0x2f2b8c('0x1181')]&&(_0x5c8fa8=_0x51538b()[_0x2f2b8c('0xe9e')](_0x3846c7[_0x2f2b8c('0x1c21')],{'id':Number(_0x3846c7['ivrCampaign'][_0x2f2b8c('0x1f8c')])}));if(_0x5c8fa8&&!_0x51538b()['some'](_0x2a6a71,['id',_0x5c8fa8['id']])){var _0x20bfe5=_0x51538b()[_0x2f2b8c('0xe9e')](_0x3846c7[_0x2f2b8c('0x1c21')],{'id':_0x5c8fa8['id']});_0x20bfe5[_0x2f2b8c('0x12eb')]=![],_0x2a6a71[_0x2f2b8c('0x1599')](_0x20bfe5);}_0x3846c7['interval']=_0x2a6a71;});}})['catch'](function(_0x31560d){var _0x5ec04f=_0x1f837d;_0xc1e42e[_0x5ec04f('0x187f')]({'title':_0x31560d['status']?_0x5ec04f('0x16c2')+_0x31560d[_0x5ec04f('0x2fa')]+'\x20-\x20'+_0x31560d['statusText']:_0x5ec04f('0x2313'),'msg':_0x31560d[_0x5ec04f('0x10fd')]?JSON['stringify'](_0x31560d['data']):_0x31560d[_0x5ec04f('0x684')]()});});function _0x1054df(_0x1516e9){var _0x5cf756=_0x1f837d;_0x442a24['go'](_0x5cf756('0x6e3'),{'id':_0x1516e9['id'],'ivrCampaign':_0x1516e9,'crudPermissions':_0x3846c7[_0x5cf756('0xada')]});}function _0x5198c2(_0x3aa901,_0x427d2a){var _0x3b7897=_0x1f837d;_0x47e23c[_0x3b7897('0x1e6d')]({'controller':_0x3b7897('0x713'),'controllerAs':'vm','templateUrl':_0x3f4eee,'parent':angular['element'](_0x2a48a4[_0x3b7897('0x54c')]),'targetEvent':_0x427d2a,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x3aa901,'ivrCampaigns':_0x3846c7['ivrCampaigns']?_0x3846c7[_0x3b7897('0x1ee9')][_0x3b7897('0x580')]:[],'crudPermissions':_0x3846c7[_0x3b7897('0xada')]}});}function _0x319598(_0x4e4498,_0x5882d6){var _0xb6c029=_0x1f837d;_0x47e23c[_0xb6c029('0x1e6d')]({'controller':'IvrCampaignlistaddController','controllerAs':'vm','templateUrl':_0x428761,'parent':angular[_0xb6c029('0x1aa8')](_0x2a48a4['body']),'targetEvent':_0x5882d6,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4e4498,'ivrCampaigns':_0x3846c7['ivrCampaigns']?_0x3846c7[_0xb6c029('0x1ee9')][_0xb6c029('0x580')]:[],'crudPermissions':_0x3846c7[_0xb6c029('0xada')]}});}function _0xe0c7b(_0x2359dc,_0x416d15){var _0x3818a7=_0x1f837d;_0x47e23c[_0x3818a7('0x1e6d')]({'controller':'IvrCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x414ea1,'parent':angular[_0x3818a7('0x1aa8')](_0x2a48a4[_0x3818a7('0x54c')]),'targetEvent':_0x416d15,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2359dc,'ivrCampaigns':_0x3846c7[_0x3818a7('0x1ee9')]?_0x3846c7[_0x3818a7('0x1ee9')][_0x3818a7('0x580')]:[],'crudPermissions':_0x3846c7[_0x3818a7('0xada')]}});}function _0x34e9f3(_0x314e95,_0x4bc0d8){var _0x5f0ad9=_0x1f837d,_0x164e5b=_0x47e23c[_0x5f0ad9('0x281e')]()[_0x5f0ad9('0x110a')](_0x5f0ad9('0x88d')+_0x51538b()[_0x5f0ad9('0x196a')](_0x5f0ad9('0x1181'))+'?')[_0x5f0ad9('0x102e')](_0x5f0ad9('0x389')+(_0x314e95[_0x5f0ad9('0x25d6')]||_0x5f0ad9('0x1181'))+_0x5f0ad9('0x697')+_0x5f0ad9('0x210d'))['ariaLabel'](_0x5f0ad9('0x384'))[_0x5f0ad9('0x116d')](_0x4bc0d8)['ok']('OK')['cancel'](_0x5f0ad9('0x2410'));_0x47e23c[_0x5f0ad9('0x1e6d')](_0x164e5b)[_0x5f0ad9('0xaa5')](function(){_0x1f19b2(_0x314e95);},function(){var _0x2be7b4=_0x5f0ad9;console[_0x2be7b4('0x18d5')](_0x2be7b4('0x2410'));});}function _0x2dfa45(){var _0x5b69a5=_0x1f837d;if(_0x17d7ee[_0x5b69a5('0x26e8')](_0x5b69a5('0x178b')))_0x442a24['go'](_0x5b69a5('0x284d'),{});else return _0x259e7c[_0x5b69a5('0x1a50')][_0x5b69a5('0x2122')]({'userProfileId':_0x17d7ee[_0x5b69a5('0xacc')]()[_0x5b69a5('0x2168')],'sectionId':0x5e6})[_0x5b69a5('0x1dc2')][_0x5b69a5('0xaa5')](function(_0x1ea062){var _0x4c5904=_0x5b69a5,_0x3db392=_0x1ea062&&_0x1ea062[_0x4c5904('0x580')]?_0x1ea062['rows'][0x0]:null;_0x3db392&&_0x3db392[_0x4c5904('0xbd3')]?_0x442a24['go']('app.motiondialer.realtime.ivr_campaigns',{}):_0xc1e42e[_0x4c5904('0x3a1')]({'title':_0x20f53c[_0x4c5904('0x213f')](_0x4c5904('0x1aab')),'msg':_0x20f53c[_0x4c5904('0x213f')](_0x4c5904('0x251c'))});})[_0x5b69a5('0x253d')](function(_0x538f6a){var _0x336f9f=_0x5b69a5;_0xc1e42e[_0x336f9f('0x187f')]({'title':_0x538f6a[_0x336f9f('0x2fa')]?_0x336f9f('0x16c2')+_0x538f6a[_0x336f9f('0x2fa')]+'\x20-\x20'+_0x538f6a[_0x336f9f('0x24df')]:_0x336f9f('0x21d5'),'msg':_0x538f6a[_0x336f9f('0x2fa')]?JSON[_0x336f9f('0xa48')](_0x538f6a[_0x336f9f('0x10fd')]):_0x538f6a[_0x336f9f('0x684')]()});});}var _0x1e76c8=!![],_0x511a8c=0x1;_0x307bb8[_0x1f837d('0x1ccf')]('vm.query.filter',function(_0x2fad6b,_0x42964b){var _0x343de3=_0x1f837d;_0x1e76c8?_0x3b1ea0(function(){_0x1e76c8=![];}):(!_0x42964b&&(_0x511a8c=_0x3846c7[_0x343de3('0x582')][_0x343de3('0x41')]),_0x2fad6b!==_0x42964b&&(_0x3846c7[_0x343de3('0x582')][_0x343de3('0x41')]=0x1),!_0x2fad6b&&(_0x3846c7[_0x343de3('0x582')][_0x343de3('0x41')]=_0x511a8c),_0x3846c7[_0x343de3('0x2347')]());});function _0x9bc52e(_0x52014a){var _0x205ac0=_0x1f837d;_0x3846c7[_0x205ac0('0x1ee9')]=_0x52014a||{'count':0x0,'rows':[]};}function _0x60b404(){var _0x1a3d5f=_0x1f837d;_0x3846c7[_0x1a3d5f('0x582')][_0x1a3d5f('0x8b1')]=(_0x3846c7['query']['page']-0x1)*_0x3846c7[_0x1a3d5f('0x582')]['limit'],_0x17d7ee[_0x1a3d5f('0x26e8')]('admin')?_0x3846c7[_0x1a3d5f('0x159a')]=_0x259e7c[_0x1a3d5f('0xe8d')][_0x1a3d5f('0x2122')](_0x3846c7['query'],_0x9bc52e)['$promise']:(_0x3846c7[_0x1a3d5f('0x582')]['id']=_0x3846c7[_0x1a3d5f('0x1e97')]['id'],_0x3846c7[_0x1a3d5f('0x582')]['section']=_0x1a3d5f('0x1a93'),_0x3846c7['promise']=_0x259e7c['userProfile'][_0x1a3d5f('0x1cf1')](_0x3846c7[_0x1a3d5f('0x582')],_0x9bc52e)['$promise']);}function _0x450680(_0x5b043a,_0x2f569d){var _0x5d8b95=_0x1f837d;_0x47e23c[_0x5d8b95('0x1e6d')]({'controller':_0x5d8b95('0x11e1'),'controllerAs':'vm','templateUrl':_0x3f9737,'parent':angular[_0x5d8b95('0x1aa8')](_0x2a48a4[_0x5d8b95('0x54c')]),'targetEvent':_0x5b043a,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2f569d,'ivrCampaigns':_0x3846c7[_0x5d8b95('0x1ee9')][_0x5d8b95('0x580')],'license':_0x3846c7[_0x5d8b95('0x1202')],'setting':_0x3846c7[_0x5d8b95('0x143f')],'crudPermissions':_0x3846c7['crudPermissions']}});}function _0x1f19b2(_0x1ccc5e){var _0x7b0795=_0x1f837d;_0x259e7c[_0x7b0795('0xe8d')][_0x7b0795('0x926')]({'id':_0x1ccc5e['id']})[_0x7b0795('0x1dc2')][_0x7b0795('0xaa5')](function(){var _0x5c5894=_0x7b0795;_0x51538b()[_0x5c5894('0xf6d')](_0x3846c7[_0x5c5894('0x1ee9')][_0x5c5894('0x580')],{'id':_0x1ccc5e['id']}),_0x3846c7[_0x5c5894('0x1ee9')][_0x5c5894('0xd15')]-=0x1,!_0x3846c7['ivrCampaigns'][_0x5c5894('0x580')]['length']&&_0x3846c7[_0x5c5894('0x2347')](),_0xc1e42e[_0x5c5894('0xe10')]({'title':_0x51538b()['startCase'](_0x5c5894('0x1ba4'))+_0x5c5894('0x8bb'),'msg':_0x1ccc5e[_0x5c5894('0x25d6')]?_0x1ccc5e[_0x5c5894('0x25d6')]+_0x5c5894('0xcd9'):''});})[_0x7b0795('0x253d')](function(_0x22cbe8){var _0x385886=_0x7b0795;if(_0x22cbe8[_0x385886('0x10fd')]&&_0x22cbe8[_0x385886('0x10fd')]['errors']&&_0x22cbe8[_0x385886('0x10fd')][_0x385886('0x4c6')][_0x385886('0x2587')]){_0x3846c7[_0x385886('0x4c6')]=_0x22cbe8[_0x385886('0x10fd')][_0x385886('0x4c6')]||[{'message':_0x22cbe8[_0x385886('0x684')](),'type':_0x385886('0x1c0')}];for(var _0x2b26f7=0x0;_0x2b26f7<_0x22cbe8[_0x385886('0x10fd')][_0x385886('0x4c6')]['length'];_0x2b26f7++){_0xc1e42e['error']({'title':_0x22cbe8[_0x385886('0x10fd')]['errors'][_0x2b26f7][_0x385886('0x6c8')],'msg':_0x22cbe8[_0x385886('0x10fd')][_0x385886('0x4c6')][_0x2b26f7][_0x385886('0x1402')]});}}else _0xc1e42e[_0x385886('0x187f')]({'title':_0x22cbe8[_0x385886('0x2fa')]?'API:'+_0x22cbe8[_0x385886('0x2fa')]+'\x20-\x20'+_0x22cbe8[_0x385886('0x24df')]:_0x385886('0x1c0'),'msg':_0x22cbe8[_0x385886('0x10fd')]?JSON['stringify'](_0x22cbe8['data']['message']):_0x22cbe8[_0x385886('0x1402')]||_0x22cbe8['toString']()});});}function _0xd0eb8a(){var _0x233d00=_0x1f837d,_0x30c697=angular['copy'](_0x3846c7[_0x233d00('0x0')]);return _0x3846c7[_0x233d00('0x0')]=[],_0x30c697;}function _0x37c2fa(_0x56593c){var _0x42c694=_0x1f837d,_0xfc65ca=_0x47e23c[_0x42c694('0x281e')]()[_0x42c694('0x110a')](_0x42c694('0x1d3c'))[_0x42c694('0x102e')](_0x42c694('0x389')+_0x3846c7[_0x42c694('0x0')][_0x42c694('0x2587')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20IvrCampaigns')['targetEvent'](_0x56593c)['ok']('OK')[_0x42c694('0x2030')]('CANCEL');_0x47e23c[_0x42c694('0x1e6d')](_0xfc65ca)[_0x42c694('0xaa5')](function(){var _0xe0b3c6=_0x42c694;_0x3846c7[_0xe0b3c6('0x0')][_0xe0b3c6('0x15b5')](function(_0x5c4560){_0x1f19b2(_0x5c4560);}),_0x3846c7[_0xe0b3c6('0x0')]=[];});}function _0x1057ab(){var _0x50ec2f=_0x1f837d;_0x3846c7[_0x50ec2f('0x0')]=[];}function _0x3371b5(){var _0x48686b=_0x1f837d;_0x3846c7[_0x48686b('0x0')]=_0x3846c7[_0x48686b('0x1ee9')]['rows'];}}const _0x1ce451=_0x3b6f15;_0x2fe9a7[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x23af'),_0x1a8446('0x239e'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x2fe9a7(_0x43f99a,_0x3cedbc,_0x55451c,_0x11c54c,_0x19f869,_0x2d9f7d,_0x3739f2,_0x113107,_0x7612c5,_0x220a46,_0x2b4b78,_0x1c27c5,_0x463cd9,_0x4eba5e){var _0x5e2b29=_0x1a8446,_0x409600=this;_0x409600['currentUser']=_0x2b4b78[_0x5e2b29('0xacc')](),_0x409600['errors']=[],_0x409600[_0x5e2b29('0x143f')]=_0x463cd9,_0x409600[_0x5e2b29('0x1202')]=_0x1c27c5,_0x409600[_0x5e2b29('0xada')]=_0x4eba5e,_0x409600[_0x5e2b29('0x9f0')]={},_0x409600[_0x5e2b29('0x1d53')]=_0x409600[_0x5e2b29('0x143f')]&&_0x409600[_0x5e2b29('0x143f')][_0x5e2b29('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x409600[_0x5e2b29('0x110a')]=_0x5e2b29('0xf25'),_0x409600[_0x5e2b29('0x239e')]=angular[_0x5e2b29('0x20a')](_0x7612c5),_0x409600[_0x5e2b29('0x23af')]=_0x113107,_0x409600['newQueueCampaign']=![];!_0x409600[_0x5e2b29('0x239e')]&&(_0x409600[_0x5e2b29('0x239e')]={'dialActive':!![],'type':_0x5e2b29('0x19d1'),'dialCheckDuplicateType':'always','dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':'ASC','dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':'progressive','dialPowerLevel':0x1,'dialPredictiveOptimization':_0x5e2b29('0x1cb'),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x5e2b29('0x335'),'dialQueueTimeout':0x3,'strategy':_0x5e2b29('0xbee'),'timeout':0x3,'retry':0x3,'weight':0x1,'dialGlobalMaxRetry':0x4,'dialCongestionMaxRetry':0x3,'dialCongestionRetryFrequency':0x96,'dialBusyMaxRetry':0x3,'dialBusyRetryFrequency':0x96,'dialNoAnswerMaxRetry':0x3,'dialNoAnswerRetryFrequency':0x96,'dialNoSuchNumberMaxRetry':0x3,'dialNoSuchNumberRetryFrequency':0x96,'dialDropMaxRetry':0x3,'dialDropRetryFrequency':0x96,'dialAbandonedMaxRetry':0x3,'dialAbandonedRetryFrequency':0x96,'dialMachineMaxRetry':0x3,'dialMachineRetryFrequency':0x96,'dialAgentRejectMaxRetry':0x3,'dialAgentRejectRetryFrequency':0x96,'dialPredictiveIntervalMaxThreshold':0x14,'dialPredictiveIntervalMinThreshold':0xa},_0x409600[_0x5e2b29('0x110a')]=_0x5e2b29('0x1143'),_0x409600[_0x5e2b29('0x2720')]=!![]);_0x409600[_0x5e2b29('0xa21')]=_0x463563,_0x409600[_0x5e2b29('0x2743')]=_0x2d1c94,_0x409600[_0x5e2b29('0x685')]=_0x537917,_0x409600[_0x5e2b29('0xc09')]=_0x4a21ff,_0x409600[_0x5e2b29('0x2023')]=_0x46291d,_0x2b4b78[_0x5e2b29('0x26e8')](_0x5e2b29('0x178b'))?_0x220a46['trunk'][_0x5e2b29('0x2122')]({'fields':'id,name','sort':'name'})[_0x5e2b29('0x1dc2')][_0x5e2b29('0xaa5')](function(_0x543c1a){var _0x37bd6c=_0x5e2b29;_0x409600[_0x37bd6c('0x1bc2')]=_0x543c1a[_0x37bd6c('0x580')]||[];})[_0x5e2b29('0x253d')](function(_0x1298a3){var _0x36ce67=_0x5e2b29;_0x3739f2[_0x36ce67('0x187f')]({'title':_0x1298a3[_0x36ce67('0x2fa')]?_0x36ce67('0x16c2')+_0x1298a3['status']+_0x36ce67('0x169e')+_0x1298a3[_0x36ce67('0x24df')]:_0x36ce67('0x298'),'msg':_0x1298a3[_0x36ce67('0x10fd')]?JSON['stringify'](_0x1298a3[_0x36ce67('0x10fd')]):_0x1298a3[_0x36ce67('0x684')]()});}):_0x220a46[_0x5e2b29('0x1651')][_0x5e2b29('0x2122')]({'fields':_0x5e2b29('0x17fe'),'sort':_0x5e2b29('0x25d6')})['$promise']['then'](function(_0x3704cb){_0x409600['trunks']=_0x3704cb['rows']||[];})['then'](function(){var _0x1d9ac4=_0x5e2b29;return _0x220a46['userProfileSection']['get']({'userProfileId':_0x409600['currentUser'][_0x1d9ac4('0x2168')],'sectionId':0x3f3})[_0x1d9ac4('0x1dc2')];})['then'](function(_0xea4597){var _0x59e596=_0x5e2b29,_0x1049f9=_0xea4597&&_0xea4597['rows']?_0xea4597[_0x59e596('0x580')][0x0]:null;if(!_0x1049f9){var _0x3d0599=[],_0x2d26d3=null;_0x409600['queueCampaign']&&(_0x2d26d3=_0x51538b()[_0x59e596('0xe9e')](_0x409600[_0x59e596('0x1bc2')],{'id':Number(_0x409600[_0x59e596('0x239e')][_0x59e596('0x808')])}));for(var _0x21f104=0x0;_0x21f104<_0x409600[_0x59e596('0x1bc2')][_0x59e596('0x2587')];_0x21f104++){_0x2d26d3&&_0x409600[_0x59e596('0x1bc2')][_0x21f104]['id']===_0x2d26d3['id']&&(_0x409600[_0x59e596('0x1bc2')][_0x21f104][_0x59e596('0x12eb')]=![],_0x3d0599[_0x59e596('0x1599')](_0x409600[_0x59e596('0x1bc2')][_0x21f104]));}_0x409600[_0x59e596('0x1bc2')]=_0x3d0599;}else{if(!_0x1049f9['autoAssociation'])return _0x220a46[_0x59e596('0x249a')]['get']({'sectionId':_0x1049f9['id']})['$promise'][_0x59e596('0xaa5')](function(_0x3aa528){var _0x111936=_0x59e596,_0x1c706d=_0x51538b()['map'](_0x3aa528[_0x111936('0x580')],function(_0x2a11b5){var _0x59f621=_0x111936;return _0x51538b()[_0x59f621('0xe9e')](_0x409600[_0x59f621('0x1bc2')],{'id':_0x2a11b5[_0x59f621('0xbcd')]});}),_0x929415=null;_0x409600[_0x111936('0x239e')]&&(_0x929415=_0x51538b()['find'](_0x409600['trunks'],{'id':Number(_0x409600[_0x111936('0x239e')][_0x111936('0x808')])}));if(_0x929415&&!_0x51538b()[_0x111936('0x2c2')](_0x1c706d,['id',_0x929415['id']])){var _0x2a5e25=_0x51538b()['find'](_0x409600[_0x111936('0x1bc2')],{'id':_0x929415['id']});_0x2a5e25[_0x111936('0x12eb')]=![],_0x1c706d['push'](_0x2a5e25);}_0x409600[_0x111936('0x1bc2')]=_0x1c706d;});}})[_0x5e2b29('0x253d')](function(_0x299830){var _0x1cd7f7=_0x5e2b29;_0x3739f2[_0x1cd7f7('0x187f')]({'title':_0x299830['status']?_0x1cd7f7('0x16c2')+_0x299830[_0x1cd7f7('0x2fa')]+_0x1cd7f7('0x169e')+_0x299830['statusText']:_0x1cd7f7('0x117a'),'msg':_0x299830[_0x1cd7f7('0x10fd')]?JSON[_0x1cd7f7('0xa48')](_0x299830[_0x1cd7f7('0x10fd')]):_0x299830[_0x1cd7f7('0x684')]()});}),_0x2b4b78['hasRole'](_0x5e2b29('0x178b'))?_0x220a46['interval'][_0x5e2b29('0x2122')]({'fields':_0x5e2b29('0x17fe'),'sort':_0x5e2b29('0x25d6'),'IntervalId':_0x5e2b29('0x1ed9')})[_0x5e2b29('0x1dc2')][_0x5e2b29('0xaa5')](function(_0x50e0ab){var _0x432fa2=_0x5e2b29;_0x409600[_0x432fa2('0x1c21')]=_0x50e0ab[_0x432fa2('0x580')]||[];})['catch'](function(_0x2031f0){var _0x204dd0=_0x5e2b29;_0x3739f2[_0x204dd0('0x187f')]({'title':_0x2031f0['status']?_0x204dd0('0x16c2')+_0x2031f0[_0x204dd0('0x2fa')]+'\x20-\x20'+_0x2031f0[_0x204dd0('0x24df')]:_0x204dd0('0x11a8'),'msg':_0x2031f0[_0x204dd0('0x10fd')]?JSON[_0x204dd0('0xa48')](_0x2031f0['data']):_0x2031f0['toString']()});}):_0x220a46[_0x5e2b29('0x1c21')][_0x5e2b29('0x2122')]({'fields':'id,name','sort':_0x5e2b29('0x25d6'),'IntervalId':_0x5e2b29('0x1ed9')})[_0x5e2b29('0x1dc2')][_0x5e2b29('0xaa5')](function(_0x521b18){var _0xb6f20c=_0x5e2b29;_0x409600[_0xb6f20c('0x1c21')]=_0x521b18[_0xb6f20c('0x580')]||[];})[_0x5e2b29('0xaa5')](function(){var _0x25cba9=_0x5e2b29;return _0x220a46[_0x25cba9('0x1a50')][_0x25cba9('0x2122')]({'userProfileId':_0x409600[_0x25cba9('0x7fc')][_0x25cba9('0x2168')],'sectionId':0x3ec})['$promise'];})[_0x5e2b29('0xaa5')](function(_0x1b869c){var _0x2a8823=_0x5e2b29,_0x21b4f7=_0x1b869c&&_0x1b869c[_0x2a8823('0x580')]?_0x1b869c[_0x2a8823('0x580')][0x0]:null;if(!_0x21b4f7){var _0x436a24=[],_0xfbc9a=null;_0x409600[_0x2a8823('0x239e')]&&(_0xfbc9a=_0x51538b()['find'](_0x409600[_0x2a8823('0x1c21')],{'id':Number(_0x409600[_0x2a8823('0x239e')][_0x2a8823('0x1f8c')])}));for(var _0x40f20b=0x0;_0x40f20b<_0x409600[_0x2a8823('0x1c21')][_0x2a8823('0x2587')];_0x40f20b++){_0xfbc9a&&_0x409600[_0x2a8823('0x1c21')][_0x40f20b]['id']===_0xfbc9a['id']&&(_0x409600[_0x2a8823('0x1c21')][_0x40f20b]['canSelect']=![],_0x436a24[_0x2a8823('0x1599')](_0x409600[_0x2a8823('0x1c21')][_0x40f20b]));}_0x409600['interval']=_0x436a24;}else{if(!_0x21b4f7[_0x2a8823('0x26cc')])return _0x220a46[_0x2a8823('0x249a')]['get']({'sectionId':_0x21b4f7['id']})[_0x2a8823('0x1dc2')][_0x2a8823('0xaa5')](function(_0x58b112){var _0x223232=_0x2a8823,_0x244f17=_0x51538b()['map'](_0x58b112['rows'],function(_0x5777ca){var _0x52b1bd=a0_0x1149;return _0x51538b()[_0x52b1bd('0xe9e')](_0x409600['interval'],{'id':_0x5777ca[_0x52b1bd('0xbcd')]});}),_0x2f145f=null;_0x409600['queueCampaign']&&(_0x2f145f=_0x51538b()[_0x223232('0xe9e')](_0x409600['interval'],{'id':Number(_0x409600[_0x223232('0x239e')][_0x223232('0x1f8c')])}));if(_0x2f145f&&!_0x51538b()[_0x223232('0x2c2')](_0x244f17,['id',_0x2f145f['id']])){var _0x16d8c0=_0x51538b()[_0x223232('0xe9e')](_0x409600[_0x223232('0x1c21')],{'id':_0x2f145f['id']});_0x16d8c0[_0x223232('0x12eb')]=![],_0x244f17[_0x223232('0x1599')](_0x16d8c0);}_0x409600[_0x223232('0x1c21')]=_0x244f17;});}})[_0x5e2b29('0x253d')](function(_0x331adf){var _0x36fca2=_0x5e2b29;_0x3739f2[_0x36fca2('0x187f')]({'title':_0x331adf[_0x36fca2('0x2fa')]?'API:'+_0x331adf[_0x36fca2('0x2fa')]+_0x36fca2('0x169e')+_0x331adf[_0x36fca2('0x24df')]:_0x36fca2('0x2313'),'msg':_0x331adf['data']?JSON[_0x36fca2('0xa48')](_0x331adf[_0x36fca2('0x10fd')]):_0x331adf[_0x36fca2('0x684')]()});});function _0x463563(){var _0x206245=_0x5e2b29;_0x409600['errors']=[],_0x220a46[_0x206245('0x1588')][_0x206245('0x242b')](_0x409600[_0x206245('0x239e')])[_0x206245('0x1dc2')][_0x206245('0xaa5')](function(_0x1fd148){var _0x3077ee=_0x206245;_0x409600[_0x3077ee('0x23af')][_0x3077ee('0x6ee')](_0x1fd148[_0x3077ee('0x256a')]()),_0x3739f2[_0x3077ee('0xe10')]({'title':'QueueCampaign\x20properly\x20created','msg':_0x409600[_0x3077ee('0x239e')]['name']?_0x409600[_0x3077ee('0x239e')][_0x3077ee('0x25d6')]+_0x3077ee('0xdca'):''}),_0x46291d(_0x1fd148);})[_0x206245('0x253d')](function(_0x2f539b){var _0x2e5a06=_0x206245;if(_0x2f539b[_0x2e5a06('0x10fd')]&&_0x2f539b[_0x2e5a06('0x10fd')][_0x2e5a06('0x4c6')]&&_0x2f539b[_0x2e5a06('0x10fd')][_0x2e5a06('0x4c6')][_0x2e5a06('0x2587')]){_0x409600[_0x2e5a06('0x4c6')]=_0x2f539b['data']['errors']||[{'message':_0x2f539b[_0x2e5a06('0x684')](),'type':_0x2e5a06('0x2530')}];for(var _0x39a6d=0x0;_0x39a6d<_0x2f539b[_0x2e5a06('0x10fd')][_0x2e5a06('0x4c6')][_0x2e5a06('0x2587')];_0x39a6d+=0x1){_0x3739f2[_0x2e5a06('0x187f')]({'title':_0x2f539b[_0x2e5a06('0x10fd')]['errors'][_0x39a6d][_0x2e5a06('0x6c8')],'msg':_0x2f539b[_0x2e5a06('0x10fd')]['errors'][_0x39a6d][_0x2e5a06('0x1402')]});}}else _0x3739f2[_0x2e5a06('0x187f')]({'title':_0x2f539b[_0x2e5a06('0x2fa')]?'API:'+_0x2f539b[_0x2e5a06('0x2fa')]+_0x2e5a06('0x169e')+_0x2f539b[_0x2e5a06('0x24df')]:'api.voiceQueue.save','msg':_0x2f539b['data']?JSON['stringify'](_0x2f539b[_0x2e5a06('0x10fd')][_0x2e5a06('0x1402')]):_0x2f539b[_0x2e5a06('0x684')]()});});}function _0x2d1c94(){var _0xa8d108=_0x5e2b29;_0x409600['errors']=[],_0x220a46[_0xa8d108('0x1588')][_0xa8d108('0x264e')]({'id':_0x409600['queueCampaign']['id']},_0x409600[_0xa8d108('0x239e')])[_0xa8d108('0x1dc2')][_0xa8d108('0xaa5')](function(_0x263218){var _0x9a1ec6=_0xa8d108,_0x5e1e75=_0x51538b()[_0x9a1ec6('0xe9e')](_0x409600['queueCampaigns'],{'id':_0x263218['id']});_0x5e1e75&&_0x51538b()[_0x9a1ec6('0x283c')](_0x5e1e75,_0x51538b()[_0x9a1ec6('0x104e')](_0x263218[_0x9a1ec6('0x256a')](),_0x51538b()[_0x9a1ec6('0x9f2')](_0x5e1e75))),_0x3739f2[_0x9a1ec6('0xe10')]({'title':_0x9a1ec6('0x1759'),'msg':_0x409600[_0x9a1ec6('0x239e')][_0x9a1ec6('0x25d6')]?_0x409600[_0x9a1ec6('0x239e')][_0x9a1ec6('0x25d6')]+_0x9a1ec6('0x20bf'):''}),_0x46291d(_0x263218);})['catch'](function(_0x225d9a){var _0x358fca=_0xa8d108;if(_0x225d9a[_0x358fca('0x10fd')]&&_0x225d9a['data'][_0x358fca('0x4c6')]&&_0x225d9a[_0x358fca('0x10fd')][_0x358fca('0x4c6')][_0x358fca('0x2587')]){_0x409600[_0x358fca('0x4c6')]=_0x225d9a[_0x358fca('0x10fd')][_0x358fca('0x4c6')]||[{'message':_0x225d9a[_0x358fca('0x684')](),'type':_0x358fca('0x970')}];for(var _0x255b15=0x0;_0x255b15<_0x225d9a[_0x358fca('0x10fd')][_0x358fca('0x4c6')][_0x358fca('0x2587')];_0x255b15++){_0x3739f2[_0x358fca('0x187f')]({'title':_0x225d9a[_0x358fca('0x10fd')][_0x358fca('0x4c6')][_0x255b15]['type'],'msg':_0x225d9a[_0x358fca('0x10fd')]['errors'][_0x255b15][_0x358fca('0x1402')]});}}else _0x3739f2[_0x358fca('0x187f')]({'title':_0x225d9a[_0x358fca('0x2fa')]?'API:'+_0x225d9a[_0x358fca('0x2fa')]+'\x20-\x20'+_0x225d9a[_0x358fca('0x24df')]:_0x358fca('0x970'),'msg':_0x225d9a[_0x358fca('0x10fd')]?JSON['stringify'](_0x225d9a[_0x358fca('0x10fd')][_0x358fca('0x1402')]):_0x225d9a[_0x358fca('0x684')]()});});}function _0x537917(_0x4ad4fb){var _0x312485=_0x5e2b29;_0x409600[_0x312485('0x4c6')]=[];var _0x5e926a=_0x11c54c['confirm']()[_0x312485('0x110a')](_0x312485('0x12a3'))[_0x312485('0x15af')](_0x312485('0x323'))[_0x312485('0x5b5')](_0x312485('0x19b4'))['ok'](_0x312485('0x1e76'))[_0x312485('0x2030')](_0x312485('0x9c6'))[_0x312485('0x116d')](_0x4ad4fb);_0x11c54c[_0x312485('0x1e6d')](_0x5e926a)[_0x312485('0xaa5')](function(){var _0x253b1b=_0x312485;_0x220a46[_0x253b1b('0x1588')][_0x253b1b('0x926')]({'id':_0x409600['queueCampaign']['id']})['$promise'][_0x253b1b('0xaa5')](function(){var _0x4f3a5e=_0x253b1b;_0x51538b()['remove'](_0x409600[_0x4f3a5e('0x23af')],{'id':_0x409600[_0x4f3a5e('0x239e')]['id']}),_0x3739f2[_0x4f3a5e('0xe10')]({'title':_0x4f3a5e('0x605'),'msg':(_0x409600[_0x4f3a5e('0x239e')][_0x4f3a5e('0x25d6')]||_0x4f3a5e('0x239e'))+_0x4f3a5e('0xcd9')}),_0x46291d(_0x409600[_0x4f3a5e('0x239e')]);})[_0x253b1b('0x253d')](function(_0xb6c431){var _0x219ab3=_0x253b1b;if(_0xb6c431['data']&&_0xb6c431[_0x219ab3('0x10fd')][_0x219ab3('0x4c6')]&&_0xb6c431[_0x219ab3('0x10fd')][_0x219ab3('0x4c6')][_0x219ab3('0x2587')]){_0x409600['errors']=_0xb6c431['data']['errors']||[{'message':_0xb6c431['toString'](),'type':_0x219ab3('0x690')}];for(var _0x4f96d2=0x0;_0x4f96d2<_0xb6c431[_0x219ab3('0x10fd')][_0x219ab3('0x4c6')][_0x219ab3('0x2587')];_0x4f96d2++){_0x3739f2['error']({'title':_0xb6c431['data'][_0x219ab3('0x4c6')][_0x4f96d2][_0x219ab3('0x6c8')],'msg':_0xb6c431['data']['errors'][_0x4f96d2]['message']});}}else _0x3739f2[_0x219ab3('0x187f')]({'title':_0xb6c431['status']?_0x219ab3('0x16c2')+_0xb6c431[_0x219ab3('0x2fa')]+_0x219ab3('0x169e')+_0xb6c431[_0x219ab3('0x24df')]:_0x219ab3('0x690'),'msg':_0xb6c431[_0x219ab3('0x10fd')]?JSON[_0x219ab3('0xa48')](_0xb6c431['data']['message']):_0xb6c431[_0x219ab3('0x1402')]||_0xb6c431[_0x219ab3('0x684')]()});});},function(){});}function _0x4a21ff(_0x4fc50){return _0x4fc50===null?undefined:new Date(_0x4fc50);}function _0x46291d(_0x59bda2){var _0x27e8d4=_0x5e2b29;_0x11c54c[_0x27e8d4('0x1120')](_0x59bda2);}}const _0xc63032=_0x2fe9a7;_0x378ddb[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x239e'),_0x1a8446('0x23af'),_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x378ddb(_0x13fe69,_0x549d1e,_0xdf9eda,_0x3ffea4,_0xd07f14,_0x24a86e,_0x50d745,_0x47ee22,_0x1ec6c5,_0x2bd43a){var _0x4c4827=_0x1a8446,_0x358d5b=this;_0x358d5b[_0x4c4827('0x7fc')]=_0x1ec6c5['getCurrentUser'](),_0x358d5b['queueCampaign']=_0xd07f14,_0x358d5b[_0x4c4827('0xada')]=_0x2bd43a,_0x358d5b[_0x4c4827('0x2234')]=0x0,_0x358d5b[_0x4c4827('0x4f3')]=_0x50d745,_0x358d5b[_0x4c4827('0x1a30')]=[],_0x358d5b[_0x4c4827('0x11b9')]=[],_0x358d5b['selectedItems']=[],_0x358d5b['startingAllowedItems']=[],_0x358d5b[_0x4c4827('0x214a')]=[],_0x358d5b[_0x4c4827('0xc54')]=![],_0x358d5b[_0x4c4827('0x2318')]=_0x3a90da,_0x358d5b[_0x4c4827('0x17bb')]=_0x49b0db,_0x358d5b['closeDialog']=_0x18ec08,_0x358d5b['dualMultiselectOptions']={'readOnly':!_0x358d5b[_0x4c4827('0xada')][_0x4c4827('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4c4827('0x25d6'),'line1':_0x4c4827('0x18e5'),'line2':[_0x4c4827('0x25d6'),_0x4c4827('0x1b0d')],'line3':_0x4c4827('0x2234'),'labelAll':_0x47ee22[_0x4c4827('0x213f')]('MOTIONDIALER.ALL_AGENTS'),'labelSelected':_0x47ee22[_0x4c4827('0x213f')](_0x4c4827('0xfb9')),'transferCallback':function _0x1452f8(_0x2115b1,_0x378cf7){var _0x49be7d=_0x4c4827;_0x378cf7?_0x2115b1[_0x49be7d('0x15b5')](function(_0x4f9175){var _0x22c342=_0x49be7d;_0x4f9175[_0x22c342('0x2234')]=undefined;}):_0x2115b1[_0x49be7d('0x15b5')](function(_0x23cb98){var _0x42f0d7=_0x49be7d;_0x23cb98[_0x42f0d7('0x2234')]=_0x42f0d7('0x17b0')+_0x358d5b[_0x42f0d7('0x2234')];});var _0x195833=_0x51538b()[_0x49be7d('0x1d8a')](_0x358d5b[_0x49be7d('0x214a')],_0x358d5b[_0x49be7d('0xbf7')],function(_0x40269b,_0x16b575){var _0x2e4870=_0x49be7d;return _0x40269b['id']===_0x16b575['id']&&_0x40269b[_0x2e4870('0x2234')]===_0x16b575[_0x2e4870('0x2234')];});_0x358d5b[_0x49be7d('0xc54')]=_0x51538b()['isEmpty'](_0x195833)?![]:!![];}};function _0x3a90da(){var _0x1baf34=_0x4c4827;return _0x1ec6c5['hasRole'](_0x1baf34('0x178b'))?_0x3ca91d()[_0x1baf34('0x253d')](function(_0x4542a4){var _0x55af6e=_0x1baf34;_0xdf9eda['error']({'title':_0x4542a4[_0x55af6e('0x2fa')]?'API:'+_0x4542a4['status']+'\x20-\x20'+_0x4542a4['statusText']:'SYSTEM:GET_AGENTS','msg':_0x4542a4[_0x55af6e('0x2fa')]?JSON['stringify'](_0x4542a4['data']):_0x4542a4[_0x55af6e('0x684')]()});}):_0x1e6c1e()[_0x1baf34('0xaa5')](function(_0x3ed910){var _0x53cd2a=_0x1baf34;return _0x358d5b[_0x53cd2a('0x224d')]=_0x3ed910,_0x3ca91d();})['catch'](function(_0x5b285e){var _0x51ad5a=_0x1baf34;_0xdf9eda['error']({'title':_0x5b285e['status']?'API:'+_0x5b285e['status']+_0x51ad5a('0x169e')+_0x5b285e[_0x51ad5a('0x24df')]:_0x51ad5a('0x14c6'),'msg':_0x5b285e['status']?JSON[_0x51ad5a('0xa48')](_0x5b285e['data']):_0x5b285e[_0x51ad5a('0x684')]()});});}function _0x1e6c1e(){return _0x549d1e(function(_0x1c0722,_0x137330){var _0x4c716f=a0_0x1149;_0x3ffea4[_0x4c716f('0x1a50')]['get']({'userProfileId':_0x358d5b['currentUser'][_0x4c716f('0x2168')],'name':_0x4c716f('0x91a')})[_0x4c716f('0x1dc2')][_0x4c716f('0xaa5')](function(_0x572550){var _0x4a53f6=_0x4c716f,_0x282e26=_0x572550&&_0x572550[_0x4a53f6('0x580')]?_0x572550['rows'][0x0]:null;_0x1c0722(_0x282e26);})[_0x4c716f('0x253d')](function(_0x180c7c){_0x137330(_0x180c7c);});});}function _0x3ca91d(){return _0x549d1e(function(_0x3327af,_0x89571f){var _0x704ee3=a0_0x1149;return _0x31794c()[_0x704ee3('0xaa5')](function(_0x207d37){var _0x3adc4f=_0x704ee3;return _0x358d5b[_0x3adc4f('0x1a30')]=_0x207d37[_0x3adc4f('0x580')]?_0x207d37[_0x3adc4f('0x580')]:[],_0x1ec6c5[_0x3adc4f('0x26e8')](_0x3adc4f('0x178b'))?_0x207d37:_0x358d5b[_0x3adc4f('0x224d')]?_0x358d5b[_0x3adc4f('0x224d')][_0x3adc4f('0x26cc')]?_0x207d37:_0x3a5e11():null;})[_0x704ee3('0xaa5')](function(_0x494dd6){var _0x3e2c9c=_0x704ee3,_0x25d88c=_0x494dd6&&_0x494dd6[_0x3e2c9c('0x580')]?_0x494dd6['rows']:[];return _0x358d5b[_0x3e2c9c('0x11b9')]=_0x51538b()[_0x3e2c9c('0x1246')](_0x25d88c,function(_0x5d1d5e){var _0x4cbd07=_0x3e2c9c;return _0x51538b()[_0x4cbd07('0xe9e')](_0x358d5b['items'],{'id':_0x1ec6c5[_0x4cbd07('0x26e8')]('admin')||_0x358d5b[_0x4cbd07('0x224d')][_0x4cbd07('0x26cc')]?_0x5d1d5e['id']:_0x5d1d5e[_0x4cbd07('0xbcd')]});}),_0x358d5b[_0x3e2c9c('0x215b')]=angular[_0x3e2c9c('0x20a')](_0x358d5b['allowedItems']),_0x358d5b[_0x3e2c9c('0x1a30')][_0x3e2c9c('0x15b5')](function(_0x5ea7b3){var _0x1dee53=_0x3e2c9c,_0x430a21=_0x51538b()['find'](_0x358d5b[_0x1dee53('0x11b9')],{'id':_0x5ea7b3['id']});_0x1ec6c5['hasRole'](_0x1dee53('0x178b'))?_0x5ea7b3['isValid']=!![]:_0x5ea7b3[_0x1dee53('0x145d')]=typeof _0x430a21!==_0x1dee53('0x1574')?!![]:![];}),_0x132a9a();})[_0x704ee3('0xaa5')](function(_0x2bee3b){var _0x3e54f5=_0x704ee3,_0x3cc74b=_0x2bee3b&&_0x2bee3b[_0x3e54f5('0x580')]?_0x2bee3b[_0x3e54f5('0x580')]:[];_0x358d5b[_0x3e54f5('0xbf7')]=_0x51538b()[_0x3e54f5('0x1246')](_0x3cc74b,function(_0x326058){var _0x3534e6=_0x3e54f5,_0x435a82=_0x51538b()[_0x3534e6('0xe9e')](_0x358d5b[_0x3534e6('0x1a30')],{'id':_0x326058['id']});return _0x435a82['penalty']=_0x326058[_0x3534e6('0xe20')]?_0x3534e6('0x17b0')+_0x326058[_0x3534e6('0xe20')][_0x3534e6('0x2234')]:'',_0x435a82[_0x3534e6('0x1b0d')]=typeof _0x326058[_0x3534e6('0x1b0d')]!==_0x3534e6('0x1574')?'<'+_0x326058[_0x3534e6('0x1b0d')]+'>':'',_0x435a82;}),_0x358d5b[_0x3e54f5('0x214a')]=angular[_0x3e54f5('0x20a')](_0x358d5b[_0x3e54f5('0xbf7')]),_0x358d5b[_0x3e54f5('0x1c23')]['selectedItems']=_0x358d5b[_0x3e54f5('0xbf7')],_0x358d5b[_0x3e54f5('0x1c23')]['items']=_0x51538b()[_0x3e54f5('0x1ebb')](_0x358d5b['allowedItems'],_0x358d5b['dualMultiselectOptions']['selectedItems'],'id'),_0x3327af();})[_0x704ee3('0x253d')](function(_0x11c385){_0x89571f(_0x11c385);});});}function _0x3a5e11(){return _0x549d1e(function(_0x11732b,_0x310e33){var _0x54fb36=a0_0x1149;return _0x3ffea4[_0x54fb36('0x249a')][_0x54fb36('0x2122')]({'sectionId':_0x358d5b[_0x54fb36('0x224d')]['id'],'nolimit':!![]})[_0x54fb36('0x1dc2')][_0x54fb36('0xaa5')](function(_0x43855f){_0x11732b(_0x43855f);})[_0x54fb36('0x253d')](function(_0x41f2d5){_0x310e33(_0x41f2d5);});});}function _0x132a9a(){return _0x549d1e(function(_0x38a4b0,_0x7ea9ac){var _0x71d47e=a0_0x1149;return _0x3ffea4['voiceQueue'][_0x71d47e('0x1483')]({'id':_0x358d5b[_0x71d47e('0x239e')]['id'],'fields':_0x71d47e('0x283f'),'nolimit':!![],'role':_0x71d47e('0xeff')})['$promise'][_0x71d47e('0xaa5')](function(_0x34314e){_0x38a4b0(_0x34314e);})['catch'](function(_0x58132b){_0x7ea9ac(_0x58132b);});});}function _0x31794c(){return _0x549d1e(function(_0x30290b,_0x38b2c0){var _0x132e52=a0_0x1149;return _0x3ffea4[_0x132e52('0x272b')][_0x132e52('0x2122')]({'fields':_0x132e52('0x283f'),'nolimit':!![],'role':'agent'})[_0x132e52('0x1dc2')]['then'](function(_0x546b99){_0x30290b(_0x546b99);})[_0x132e52('0x253d')](function(_0x36dd27){_0x38b2c0(_0x36dd27);});});}function _0x230e7a(_0x41040b){return _0x549d1e(function(_0x3a6845,_0x521bbe){var _0x566057=a0_0x1149;if(_0x51538b()[_0x566057('0x116b')](_0x41040b))_0x3a6845();else{var _0x172e58=[],_0xba09f6=_0x51538b()[_0x566057('0x1663')](_0x41040b,_0x566057('0x2234'));for(var _0x25c52a=0x0;_0x25c52a'+_0x5e1191('0x210d'))['ariaLabel'](_0x5e1191('0x3b'))[_0x5e1191('0x116d')](_0x46012d)['ok']('OK')[_0x5e1191('0x2030')]('CANCEL');_0x58bdfc[_0x5e1191('0x1e6d')](_0x519859)['then'](function(){var _0x5a9f3b=_0x5e1191;_0x1f5a85[_0x5a9f3b('0x1179')][_0x5a9f3b('0x15b5')](function(_0x2e5bff){_0x452aad(_0x2e5bff);}),_0x1f5a85[_0x5a9f3b('0x1179')]=[];});}function _0x278ea6(_0x4a87ea){var _0x5726f7=_0x22e22e;_0x476a99['cmHopperFinal']['moveContactsQueueCampaignHopperFinal']({'id':_0x1f5a85[_0x5726f7('0x582')]['id'],'state':_0x4a87ea})[_0x5726f7('0x1dc2')][_0x5726f7('0xaa5')](function(_0x548ff6){var _0x95938=_0x5726f7;_0x51538b()['isNil'](_0x548ff6)&&_0x51538b()[_0x95938('0x89a')](_0x548ff6[0x0])?_0xfac39d[_0x95938('0x3a1')]({'title':_0x95938('0xbd9'),'msg':'0'}):_0xfac39d[_0x95938('0x3a1')]({'title':'Restored\x20Contacts','msg':JSON['stringify'](_0x548ff6[0x0][_0x95938('0x2153')])});})[_0x5726f7('0x253d')](function(_0x31c92b){var _0x2b0352=_0x5726f7;_0xfac39d['error']({'title':_0x31c92b[_0x2b0352('0x2fa')]?_0x2b0352('0x16c2')+_0x31c92b[_0x2b0352('0x2fa')]+_0x2b0352('0x169e')+_0x31c92b['statusText']:_0x2b0352('0x1646'),'msg':_0x31c92b['data']?JSON[_0x2b0352('0xa48')](_0x31c92b['data']['message']):_0x31c92b[_0x2b0352('0x1402')]||_0x31c92b[_0x2b0352('0x684')]()});});}function _0x2dc4c2(_0x4390fa){var _0x1ced06=_0x22e22e;_0x476a99[_0x1ced06('0x9c3')]['countContactsQueueCampaignHopperFinal']({'id':_0x4390fa})[_0x1ced06('0x1dc2')]['then'](function(_0x1ff38d){var _0x52c223=_0x1ced06;_0x51538b()[_0x52c223('0x283c')](_0x1f5a85[_0x52c223('0x1cfb')],_0x1ff38d[0x0]);})[_0x1ced06('0x253d')](function(_0x5259f3){var _0x4f54ae=_0x1ced06;_0xfac39d[_0x4f54ae('0x187f')]({'title':_0x5259f3[_0x4f54ae('0x2fa')]?_0x4f54ae('0x16c2')+_0x5259f3[_0x4f54ae('0x2fa')]+_0x4f54ae('0x169e')+_0x5259f3[_0x4f54ae('0x24df')]:'SYSTEM:GETvoiceQueue','msg':_0x5259f3[_0x4f54ae('0x10fd')]?JSON[_0x4f54ae('0xa48')](_0x5259f3[_0x4f54ae('0x10fd')]['message']):_0x5259f3[_0x4f54ae('0x1402')]||_0x5259f3[_0x4f54ae('0x684')]()});});}function _0x38bde2(_0x29490a){var _0xcf257a=_0x22e22e,_0x20169b=_0x58bdfc[_0xcf257a('0x281e')]()['title'](_0xcf257a('0x1840'))['htmlContent'](_0xcf257a('0x1a40')+_0xcf257a('0xa5d'))[_0xcf257a('0x5b5')](_0xcf257a('0x1a0'))[_0xcf257a('0x116d')](_0x29490a)['ok']('OK')['cancel'](_0xcf257a('0x2410'));_0x58bdfc[_0xcf257a('0x1e6d')](_0x20169b)[_0xcf257a('0xaa5')](function(){var _0x8bc717=_0xcf257a;_0x1f5a85[_0x8bc717('0x1179')]['forEach'](function(_0x5c6c17){_0x10b1de(_0x5c6c17);}),_0x1f5a85['selectedQueueCampaignHopperFinals']=[];});}function _0x173717(_0x1e9a3a,_0x500193){var _0x74c5eb=_0x22e22e,_0x38a0bb=_0x58bdfc[_0x74c5eb('0x281e')]()[_0x74c5eb('0x110a')](_0x74c5eb('0x1e1a'))[_0x74c5eb('0x102e')](_0x74c5eb('0x389')+'Contact'+''+_0x74c5eb('0xa5d'))['ariaLabel'](_0x74c5eb('0x8ce'))[_0x74c5eb('0x116d')](_0x500193)['ok']('OK')[_0x74c5eb('0x2030')](_0x74c5eb('0x2410'));_0x58bdfc[_0x74c5eb('0x1e6d')](_0x38a0bb)[_0x74c5eb('0xaa5')](function(){_0x10b1de(_0x1e9a3a);},function(){var _0x3ae0fa=_0x74c5eb;console['log'](_0x3ae0fa('0x2410'));});}function _0x3d7469(_0x909261){var _0x8b62ce=_0x22e22e,_0x29165f={};return _0x29165f[_0x8b62ce('0x1a46')]=_0x909261['calleridnum'],_0x29165f[_0x8b62ce('0x300')]=_0x420d43()()[_0x8b62ce('0x1f27')](_0x8b62ce('0x1463')),_0x29165f[_0x8b62ce('0xd4e')]=0x0,_0x29165f[_0x8b62ce('0x104f')]=0x0,_0x29165f[_0x8b62ce('0x1b2')]=0x0,_0x29165f['countglobal']=0x0,_0x29165f[_0x8b62ce('0xb9e')]=_0x909261[_0x8b62ce('0xb9e')],_0x29165f[_0x8b62ce('0xee0')]=_0x909261['ListId'],_0x29165f[_0x8b62ce('0x1037')]=_0x909261['deleted']?null:_0x909261['UserId'],_0x29165f[_0x8b62ce('0x2438')]=_0x909261[_0x8b62ce('0x2438')],_0x29165f[_0x8b62ce('0x174d')]=_0x909261[_0x8b62ce('0x174d')],_0x29165f[_0x8b62ce('0x13f2')]=_0x909261['recallme']?0x3:0x2,_0x29165f[_0x8b62ce('0x7dd')]=_0x909261[_0x8b62ce('0x7dd')]?!![]:![],_0x29165f;}function _0x1aa174(_0xcb8ad6){var _0x32138b=_0x22e22e,_0x22c8d5={};return _0x22c8d5[_0x32138b('0x1804')]=_0xcb8ad6[_0x32138b('0x1804')],_0x22c8d5['calleridname']=_0xcb8ad6[_0x32138b('0x2789')],_0x22c8d5['scheduledat']=_0x420d43()()[_0x32138b('0x1f27')](_0x32138b('0x1463')),_0x22c8d5[_0x32138b('0xd4e')]=_0xcb8ad6[_0x32138b('0xd4e')],_0x22c8d5['countcongestionretry']=_0xcb8ad6[_0x32138b('0x104f')],_0x22c8d5['countnoanswerretry']=_0xcb8ad6[_0x32138b('0x1b2')],_0x22c8d5[_0x32138b('0x2816')]=_0xcb8ad6[_0x32138b('0x2816')],_0x22c8d5[_0x32138b('0xb9e')]=_0xcb8ad6[_0x32138b('0xb9e')],_0x22c8d5[_0x32138b('0xee0')]=_0xcb8ad6[_0x32138b('0xee0')],_0x22c8d5[_0x32138b('0x1037')]=_0xad1f02[_0x32138b('0xacc')]()['id'],_0x22c8d5[_0x32138b('0x2438')]=_0xcb8ad6[_0x32138b('0x2438')],_0x22c8d5[_0x32138b('0x174d')]=_0xcb8ad6['CampaignId'],_0x22c8d5['editedat']=_0x420d43()()[_0x32138b('0x1f27')](_0x32138b('0x1463')),_0x22c8d5[_0x32138b('0x2646')]=!![],_0x22c8d5[_0x32138b('0xb46')]=0x19,_0x22c8d5[_0x32138b('0x13e8')]='Restored',_0x22c8d5[_0x32138b('0xe8d')]=_0xcb8ad6['campaign'],_0x22c8d5[_0x32138b('0x572')]=_0xcb8ad6[_0x32138b('0x2438')]?_0x32138b('0xe26'):_0x32138b('0x1d11'),_0x22c8d5;}function _0x10b1de(_0x3fe6ef){var _0x52baae=_0x22e22e;_0x476a99[_0x52baae('0x9c3')]['checkContactHopper'](_0x3fe6ef)[_0x52baae('0x1dc2')][_0x52baae('0xaa5')](function(_0x422e35){var _0x5e7a67=_0x52baae;_0xfac39d[_0x5e7a67('0x3a1')]({'title':'The\x20contact\x20is\x20in\x20the\x20hopper','msg':_0x5e7a67('0xe65')+_0x422e35[_0x5e7a67('0xb9e')]});})[_0x52baae('0x253d')](function(_0x42ab51){var _0x3598e5=_0x52baae;_0x42ab51[_0x3598e5('0x10fd')]==='Not\x20Found'?_0x476a99[_0x3598e5('0xe51')]['save'](_0x3d7469(_0x3fe6ef))[_0x3598e5('0x1dc2')][_0x3598e5('0xaa5')](function(_0x70fd64){var _0x4c7ca9=_0x3598e5;_0xfac39d['info']({'title':'Restored\x20Contact','msg':_0x4c7ca9('0xe65')+_0x70fd64['ContactId']}),_0x70fd64['ContactId']&&_0x476a99[_0x4c7ca9('0xadd')][_0x4c7ca9('0x242b')](_0x1aa174(_0x3fe6ef));})[_0x3598e5('0x253d')](function(_0x6b2302){var _0x3e64ed=_0x3598e5;!_0x51538b()[_0x3e64ed('0x89a')](_0x6b2302[_0x3e64ed('0x10fd')])&&_0x6b2302[_0x3e64ed('0x10fd')][_0x3e64ed('0x1402')]==='Validation\x20error'?_0xfac39d[_0x3e64ed('0x3a1')]({'title':_0x3e64ed('0xd93'),'msg':'Contact\x20ID\x20'+_0x3fe6ef[_0x3e64ed('0xb9e')]}):_0xfac39d[_0x3e64ed('0x187f')]({'title':_0x6b2302[_0x3e64ed('0x2fa')]?'API:'+_0x6b2302[_0x3e64ed('0x2fa')]+_0x3e64ed('0x169e')+_0x6b2302[_0x3e64ed('0x24df')]:'SYSTEM:GETvoiceQueue','msg':_0x6b2302[_0x3e64ed('0x10fd')]?JSON[_0x3e64ed('0xa48')](_0x6b2302['data'][_0x3e64ed('0x1402')]):_0x6b2302[_0x3e64ed('0x1402')]||_0x6b2302[_0x3e64ed('0x684')]()});}):_0xfac39d['error']({'title':_0x42ab51['status']?_0x3598e5('0x16c2')+_0x42ab51[_0x3598e5('0x2fa')]+_0x3598e5('0x169e')+_0x42ab51['statusText']:_0x3598e5('0x1646'),'msg':_0x42ab51['data']?JSON[_0x3598e5('0xa48')](_0x42ab51[_0x3598e5('0x10fd')]['message']):_0x42ab51['message']||_0x42ab51[_0x3598e5('0x684')]()});});}var _0x4c09f8=!![],_0x45cbcf=0x1;_0x48e609[_0x22e22e('0x1ccf')](_0x22e22e('0x74c'),function(_0x52f2c9,_0x964a2){var _0x57d53e=_0x22e22e;_0x4c09f8?_0x5ef906(function(){_0x4c09f8=![];}):(!_0x964a2&&(_0x45cbcf=_0x1f5a85['query'][_0x57d53e('0x41')]),_0x52f2c9!==_0x964a2&&(_0x1f5a85[_0x57d53e('0x582')][_0x57d53e('0x41')]=0x1),!_0x52f2c9&&(_0x1f5a85[_0x57d53e('0x582')][_0x57d53e('0x41')]=_0x45cbcf),_0x125334());});}const _0x98dd10=_0x305fa1;_0xaaaefc[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q','$translate',_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),'Auth'];function _0xaaaefc(_0x13cff7,_0x8c4496,_0x5ed2e5,_0x368ad8,_0x5a02e0,_0x431775,_0x2f9e4e,_0x1109d5,_0x4c5cea,_0x43fb15,_0x31eb37){var _0x146118=_0x1a8446,_0x4ffa59=this;_0x4ffa59[_0x146118('0x7fc')]=_0x31eb37[_0x146118('0xacc')](),_0x4ffa59[_0x146118('0x239e')]={},_0x4ffa59[_0x146118('0x22cd')]={'count':0x0,'rows':[]},_0x4ffa59['selectedQueueCampaignHopperHistories']=[],_0x4ffa59[_0x146118('0xada')],_0x4ffa59[_0x146118('0x582')]={'fields':_0x146118('0x2230'),'sort':'-id','limit':0xa,'page':0x1},_0x4ffa59[_0x146118('0x2e')]=_0x19757f,_0x4ffa59[_0x146118('0x1416')]=_0x558209,_0x4ffa59[_0x146118('0xe10')]=_0x4e5de2,_0x4ffa59[_0x146118('0x1360')]=_0x292bbc,_0x4ffa59[_0x146118('0x239a')]=_0x37b70a,_0x4ffa59['deleteQueueCampaignHopperHistory']=_0x54b376,_0x4ffa59[_0x146118('0xc0f')]=_0x4e0285;function _0x19757f(_0x3d216e,_0x104238){var _0x5cbd6d=_0x146118;_0x4ffa59[_0x5cbd6d('0x239e')]=_0x3d216e,_0x4ffa59[_0x5cbd6d('0xada')]=typeof _0x104238!==_0x5cbd6d('0x1574')?_0x104238:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4ffa59['query'][_0x5cbd6d('0x2438')]=_0x4ffa59['queueCampaign']['id'],_0x4ffa59[_0x5cbd6d('0x582')]['id']=_0x4ffa59[_0x5cbd6d('0x239e')]['id'],_0x292bbc();}function _0x558209(_0x13531a,_0x492117){var _0x3a45e9=_0x146118,_0x160cf3=_0x2f9e4e[_0x3a45e9('0x281e')]()[_0x3a45e9('0x110a')](_0x3a45e9('0x2681'))[_0x3a45e9('0x102e')](_0x3a45e9('0x389')+(_0x13531a['name']||_0x13531a['id']&&_0x51538b()['upperFirst'](_0x3a45e9('0x1fde'))+_0x13531a['id']||'hopperHistory')+_0x3a45e9('0x697')+_0x3a45e9('0x210d'))[_0x3a45e9('0x5b5')](_0x3a45e9('0x22a8'))[_0x3a45e9('0x116d')](_0x492117)['ok']('OK')[_0x3a45e9('0x2030')](_0x3a45e9('0x2410'));_0x2f9e4e['show'](_0x160cf3)[_0x3a45e9('0xaa5')](function(){_0x54b376(_0x13531a);},function(){var _0x169f8a=_0x3a45e9;console[_0x169f8a('0x18d5')]('CANCEL');});}function _0x4e5de2(_0x53e6cc){_0x4ffa59['queueCampaignHopperHistories']=_0x53e6cc||{'count':0x0,'rows':[]};}function _0x292bbc(){var _0x3ae05f=_0x146118;_0x4ffa59[_0x3ae05f('0x582')]['offset']=(_0x4ffa59[_0x3ae05f('0x582')][_0x3ae05f('0x41')]-0x1)*_0x4ffa59[_0x3ae05f('0x582')][_0x3ae05f('0xf4d')],_0x4ffa59[_0x3ae05f('0x159a')]=_0x43fb15[_0x3ae05f('0x1588')][_0x3ae05f('0x396')](_0x4ffa59[_0x3ae05f('0x582')],_0x4e5de2)[_0x3ae05f('0x1dc2')];}function _0x54b376(_0x20ba9e){var _0x1bdad3=_0x146118;_0x43fb15['hopperHistory']['delete']({'id':_0x20ba9e['id']})['$promise'][_0x1bdad3('0xaa5')](function(){var _0x4cfef0=_0x1bdad3;_0x51538b()[_0x4cfef0('0xf6d')](_0x4ffa59[_0x4cfef0('0x22cd')][_0x4cfef0('0x580')],{'id':_0x20ba9e['id']}),_0x4ffa59[_0x4cfef0('0x22cd')][_0x4cfef0('0xd15')]-=0x1,!_0x4ffa59[_0x4cfef0('0x22cd')]['rows'][_0x4cfef0('0x2587')]&&_0x292bbc(),_0x4c5cea['success']({'title':_0x4cfef0('0x237b'),'msg':_0x20ba9e[_0x4cfef0('0x25d6')]?_0x20ba9e[_0x4cfef0('0x25d6')]+_0x4cfef0('0xcd9'):''});})[_0x1bdad3('0x253d')](function(_0xa88ce4){var _0x420ddc=_0x1bdad3;if(_0xa88ce4[_0x420ddc('0x10fd')]&&_0xa88ce4[_0x420ddc('0x10fd')][_0x420ddc('0x4c6')]&&_0xa88ce4[_0x420ddc('0x10fd')]['errors'][_0x420ddc('0x2587')]){_0x4ffa59[_0x420ddc('0x4c6')]=_0xa88ce4['data'][_0x420ddc('0x4c6')]||[{'message':_0xa88ce4[_0x420ddc('0x684')](),'type':_0x420ddc('0x1646')}];for(var _0xd59f1d=0x0;_0xd59f1d<_0xa88ce4[_0x420ddc('0x10fd')][_0x420ddc('0x4c6')][_0x420ddc('0x2587')];_0xd59f1d++){_0x4c5cea[_0x420ddc('0x187f')]({'title':_0xa88ce4['data']['errors'][_0xd59f1d][_0x420ddc('0x6c8')],'msg':_0xa88ce4['data'][_0x420ddc('0x4c6')][_0xd59f1d][_0x420ddc('0x1402')]});}}else _0x4c5cea['error']({'title':_0xa88ce4['status']?'API:'+_0xa88ce4[_0x420ddc('0x2fa')]+_0x420ddc('0x169e')+_0xa88ce4[_0x420ddc('0x24df')]:_0x420ddc('0x1646'),'msg':_0xa88ce4[_0x420ddc('0x10fd')]?JSON[_0x420ddc('0xa48')](_0xa88ce4[_0x420ddc('0x10fd')]['message']):_0xa88ce4[_0x420ddc('0x1402')]||_0xa88ce4[_0x420ddc('0x684')]()});});}function _0x37b70a(){var _0x2fa2a0=_0x146118,_0x55d768=angular[_0x2fa2a0('0x20a')](_0x4ffa59[_0x2fa2a0('0x3d4')]);return _0x4ffa59['selectedQueueCampaignHopperHistories']=[],_0x55d768;}function _0x4e0285(_0x5570b0){var _0x130f63=_0x146118,_0x31fc1e=_0x2f9e4e[_0x130f63('0x281e')]()[_0x130f63('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?')[_0x130f63('0x102e')](_0x130f63('0x389')+_0x4ffa59['selectedQueueCampaignHopperHistories']['length']+_0x130f63('0x1443')+_0x130f63('0x210d'))[_0x130f63('0x5b5')](_0x130f63('0xf87'))[_0x130f63('0x116d')](_0x5570b0)['ok']('OK')[_0x130f63('0x2030')](_0x130f63('0x2410'));_0x2f9e4e[_0x130f63('0x1e6d')](_0x31fc1e)[_0x130f63('0xaa5')](function(){var _0x51deff=_0x130f63;_0x4ffa59[_0x51deff('0x3d4')][_0x51deff('0x15b5')](function(_0x496afc){_0x54b376(_0x496afc);}),_0x4ffa59[_0x51deff('0x3d4')]=[];});}var _0x443ac8=!![],_0x2994a9=0x1;_0x8c4496[_0x146118('0x1ccf')](_0x146118('0x74c'),function(_0x2efdbd,_0x5e7b7a){var _0x2fb834=_0x146118;_0x443ac8?_0x431775(function(){_0x443ac8=![];}):(!_0x5e7b7a&&(_0x2994a9=_0x4ffa59[_0x2fb834('0x582')][_0x2fb834('0x41')]),_0x2efdbd!==_0x5e7b7a&&(_0x4ffa59['query'][_0x2fb834('0x41')]=0x1),!_0x2efdbd&&(_0x4ffa59[_0x2fb834('0x582')][_0x2fb834('0x41')]=_0x2994a9),_0x292bbc());});}const _0x543a72=_0xaaaefc;_0x43e2fb[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),'$mdDialog','$document',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd')];function _0x43e2fb(_0x4f5ed2,_0x354a6e,_0x13f577,_0x333039,_0x1716ee,_0x20b1ba,_0x52e083,_0x5ea054,_0x19c1af,_0x3308e2,_0x1a06f6){var _0x4dbdc3=_0x1a8446,_0x24da98=this;_0x24da98[_0x4dbdc3('0x7fc')]=_0x1a06f6['getCurrentUser'](),_0x24da98['queueCampaign']={},_0x24da98['queueCampaignHoppers']={'count':0x0,'rows':[]},_0x24da98['selectedQueueCampaignHoppers']=[],_0x24da98[_0x4dbdc3('0xada')],_0x24da98[_0x4dbdc3('0x582')]={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId','sort':_0x4dbdc3('0xd82'),'limit':0xa,'page':0x1},_0x24da98[_0x4dbdc3('0x139b')]=_0x51538b()[_0x4dbdc3('0x184a')]([{'option':_0x4dbdc3('0x1a3'),'value':_0x4dbdc3('0x846')},{'option':'High','value':_0x4dbdc3('0x18b2')},{'option':'Medium','value':_0x4dbdc3('0x284')},{'option':'Low','value':_0x4dbdc3('0x17b7')},{'option':'Lowest','value':_0x4dbdc3('0x27b6')}],function(_0x49565f){var _0x133a92=_0x4dbdc3;return _0x51538b()[_0x133a92('0x170d')](_0x49565f[_0x133a92('0x12f4')],new RegExp('\x27','g'),'');}),_0x24da98['init']=_0xedb504,_0x24da98[_0x4dbdc3('0x1416')]=_0x3cbf07,_0x24da98[_0x4dbdc3('0xe10')]=_0x2a93ac,_0x24da98[_0x4dbdc3('0x1292')]=_0x31e65c,_0x24da98[_0x4dbdc3('0x2239')]=_0x5d29aa,_0x24da98['exportSelectedQueueCampaignHoppers']=_0x257e9b,_0x24da98[_0x4dbdc3('0x1397')]=_0x445c95,_0x24da98['deleteSelectedQueueCampaignHoppers']=_0xfee411,_0x1a06f6['hasRole']('admin')?_0x3308e2['user'][_0x4dbdc3('0x2122')]({'fields':'id,name','role':_0x4dbdc3('0xeff'),'sort':_0x4dbdc3('0x25d6'),'nolimit':'true'})[_0x4dbdc3('0x1dc2')][_0x4dbdc3('0xaa5')](function(_0x103f15){var _0xe3fe72=_0x4dbdc3;_0x24da98[_0xe3fe72('0x1717')]=_0x103f15[_0xe3fe72('0x580')]||[];})['catch'](function(_0x24237d){var _0x98420a=_0x4dbdc3;_0x19c1af[_0x98420a('0x187f')]({'title':_0x24237d[_0x98420a('0x2fa')]?_0x98420a('0x16c2')+_0x24237d[_0x98420a('0x2fa')]+_0x98420a('0x169e')+_0x24237d[_0x98420a('0x24df')]:_0x98420a('0x14c6'),'msg':_0x24237d[_0x98420a('0x10fd')]?JSON[_0x98420a('0xa48')](_0x24237d[_0x98420a('0x10fd')]):_0x24237d[_0x98420a('0x684')]()});}):_0x3308e2[_0x4dbdc3('0x272b')][_0x4dbdc3('0x2122')]({'fields':_0x4dbdc3('0x17fe'),'role':_0x4dbdc3('0xeff'),'sort':_0x4dbdc3('0x25d6'),'nolimit':_0x4dbdc3('0x1c5c')})['$promise'][_0x4dbdc3('0xaa5')](function(_0x5d197d){var _0x503164=_0x4dbdc3;_0x24da98[_0x503164('0x1717')]=_0x5d197d[_0x503164('0x580')]||[];})[_0x4dbdc3('0xaa5')](function(){var _0x58df0c=_0x4dbdc3;return _0x3308e2[_0x58df0c('0x1a50')][_0x58df0c('0x2122')]({'userProfileId':_0x24da98[_0x58df0c('0x7fc')][_0x58df0c('0x2168')],'sectionId':0xca})[_0x58df0c('0x1dc2')];})[_0x4dbdc3('0xaa5')](function(_0x592f56){var _0xfbe29f=_0x4dbdc3,_0x4c2723=_0x592f56&&_0x592f56[_0xfbe29f('0x580')]?_0x592f56[_0xfbe29f('0x580')][0x0]:null;if(!_0x4c2723){var _0x1c1a02=[],_0x200a65=null;_0x24da98[_0xfbe29f('0x239e')]&&(_0x200a65=_0x51538b()[_0xfbe29f('0xe9e')](_0x24da98[_0xfbe29f('0x1717')],{'id':Number(_0x24da98[_0xfbe29f('0x239e')][_0xfbe29f('0x1037')])}));for(var _0x2d08d8=0x0;_0x2d08d8<_0x24da98['agents'][_0xfbe29f('0x2587')];_0x2d08d8++){_0x200a65&&_0x24da98['agents'][_0x2d08d8]['id']===_0x200a65['id']&&(_0x24da98['agents'][_0x2d08d8][_0xfbe29f('0x12eb')]=![],_0x1c1a02[_0xfbe29f('0x1599')](_0x24da98[_0xfbe29f('0x1717')][_0x2d08d8]));}_0x24da98['agents']=_0x1c1a02;}else{if(!_0x4c2723['autoAssociation'])return _0x3308e2[_0xfbe29f('0x249a')]['get']({'sectionId':_0x4c2723['id']})[_0xfbe29f('0x1dc2')]['then'](function(_0x7180ab){var _0x3dd098=_0xfbe29f,_0x51e2d7=_0x51538b()['map'](_0x7180ab[_0x3dd098('0x580')],function(_0x588f73){var _0x21fe4b=_0x3dd098;return _0x51538b()['find'](_0x24da98[_0x21fe4b('0x1717')],{'id':_0x588f73[_0x21fe4b('0xbcd')]});}),_0x99d6a5=null;_0x24da98['queueCampaign']&&(_0x99d6a5=_0x51538b()[_0x3dd098('0xe9e')](_0x24da98[_0x3dd098('0x1717')],{'id':Number(_0x24da98[_0x3dd098('0x239e')][_0x3dd098('0x1037')])}));if(_0x99d6a5&&!_0x51538b()[_0x3dd098('0x2c2')](_0x51e2d7,['id',_0x99d6a5['id']])){var _0x22755b=_0x51538b()[_0x3dd098('0xe9e')](_0x24da98[_0x3dd098('0x1717')],{'id':_0x99d6a5['id']});_0x22755b[_0x3dd098('0x12eb')]=![],_0x51e2d7['push'](_0x22755b);}_0x24da98[_0x3dd098('0x1717')]=_0x51e2d7;});}})[_0x4dbdc3('0x253d')](function(_0x1730d1){var _0x4fca54=_0x4dbdc3;_0x19c1af[_0x4fca54('0x187f')]({'title':_0x1730d1[_0x4fca54('0x2fa')]?_0x4fca54('0x16c2')+_0x1730d1[_0x4fca54('0x2fa')]+_0x4fca54('0x169e')+_0x1730d1['statusText']:'SYSTEM:GETagents','msg':_0x1730d1['data']?JSON[_0x4fca54('0xa48')](_0x1730d1['data']):_0x1730d1[_0x4fca54('0x684')]()});});function _0xedb504(_0x15fb07,_0x3141b2){var _0x3a00cd=_0x4dbdc3;_0x24da98[_0x3a00cd('0x239e')]=_0x15fb07,_0x24da98[_0x3a00cd('0xada')]=typeof _0x3141b2!==_0x3a00cd('0x1574')?_0x3141b2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x24da98[_0x3a00cd('0x582')][_0x3a00cd('0x2438')]=_0x24da98[_0x3a00cd('0x239e')]['id'],_0x24da98[_0x3a00cd('0x582')]['id']=_0x24da98[_0x3a00cd('0x239e')]['id'],_0x31e65c();}function _0x3cbf07(_0x171dbb,_0xe2d971){var _0x2184f5=_0x4dbdc3,_0x5d05d1=_0x52e083['confirm']()[_0x2184f5('0x110a')](_0x2184f5('0x2005'))[_0x2184f5('0x102e')](''+(_0x171dbb[_0x2184f5('0x25d6')]||_0x171dbb['id']&&_0x51538b()[_0x2184f5('0x1791')]('hopper\x20#')+_0x171dbb['id']||'hopper')+_0x2184f5('0x697')+_0x2184f5('0x210d'))[_0x2184f5('0x5b5')](_0x2184f5('0x174a'))[_0x2184f5('0x116d')](_0xe2d971)['ok']('OK')[_0x2184f5('0x2030')](_0x2184f5('0x2410'));_0x52e083[_0x2184f5('0x1e6d')](_0x5d05d1)[_0x2184f5('0xaa5')](function(){_0x445c95(_0x171dbb);},function(){var _0x915f58=_0x2184f5;console['log'](_0x915f58('0x2410'));});}function _0x2a93ac(_0x1544c7){_0x24da98['queueCampaignHoppers']=_0x1544c7||{'count':0x0,'rows':[]};}function _0x31e65c(){var _0x17ae19=_0x4dbdc3;_0x24da98[_0x17ae19('0x582')]['offset']=(_0x24da98[_0x17ae19('0x582')][_0x17ae19('0x41')]-0x1)*_0x24da98[_0x17ae19('0x582')][_0x17ae19('0xf4d')],_0x24da98['promise']=_0x3308e2['voiceQueue'][_0x17ae19('0xf48')](_0x24da98[_0x17ae19('0x582')],_0x2a93ac)[_0x17ae19('0x1dc2')];}function _0x5d29aa(_0x116de9,_0x22a1bc){var _0x3f21b2=_0x4dbdc3;_0x52e083[_0x3f21b2('0x1e6d')]({'controller':'CreateOrEditHopperVoiceQueueIdDialogController','controllerAs':'vm','templateUrl':_0x148e44,'parent':angular[_0x3f21b2('0x1aa8')](_0x5ea054['body']),'targetEvent':_0x116de9,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x24da98['queueCampaign'],'hopper':_0x22a1bc,'hoppers':_0x24da98[_0x3f21b2('0x1b16')][_0x3f21b2('0x580')],'license':null,'setting':null,'crudPermissions':_0x24da98['crudPermissions']}});}function _0x445c95(_0x44c61d){var _0x530117=_0x4dbdc3;_0x3308e2[_0x530117('0xe51')][_0x530117('0x926')]({'id':_0x44c61d['id']})[_0x530117('0x1dc2')][_0x530117('0xaa5')](function(){var _0x480656=_0x530117;_0x51538b()['remove'](_0x24da98[_0x480656('0x1b16')][_0x480656('0x580')],{'id':_0x44c61d['id']}),_0x24da98[_0x480656('0x1b16')][_0x480656('0xd15')]-=0x1,!_0x24da98[_0x480656('0x1b16')][_0x480656('0x580')]['length']&&_0x31e65c(),_0x19c1af[_0x480656('0xe10')]({'title':_0x480656('0xbf'),'msg':_0x44c61d[_0x480656('0x25d6')]?_0x44c61d[_0x480656('0x25d6')]+_0x480656('0xcd9'):''});})[_0x530117('0x253d')](function(_0x156e15){var _0x200c79=_0x530117;if(_0x156e15[_0x200c79('0x10fd')]&&_0x156e15[_0x200c79('0x10fd')][_0x200c79('0x4c6')]&&_0x156e15[_0x200c79('0x10fd')]['errors'][_0x200c79('0x2587')]){_0x24da98['errors']=_0x156e15[_0x200c79('0x10fd')]['errors']||[{'message':_0x156e15[_0x200c79('0x684')](),'type':_0x200c79('0x1646')}];for(var _0x27d156=0x0;_0x27d156<_0x156e15[_0x200c79('0x10fd')]['errors'][_0x200c79('0x2587')];_0x27d156++){_0x19c1af['error']({'title':_0x156e15['data'][_0x200c79('0x4c6')][_0x27d156][_0x200c79('0x6c8')],'msg':_0x156e15[_0x200c79('0x10fd')][_0x200c79('0x4c6')][_0x27d156]['message']});}}else _0x19c1af[_0x200c79('0x187f')]({'title':_0x156e15[_0x200c79('0x2fa')]?_0x200c79('0x16c2')+_0x156e15[_0x200c79('0x2fa')]+'\x20-\x20'+_0x156e15[_0x200c79('0x24df')]:_0x200c79('0x1646'),'msg':_0x156e15[_0x200c79('0x10fd')]?JSON['stringify'](_0x156e15[_0x200c79('0x10fd')][_0x200c79('0x1402')]):_0x156e15[_0x200c79('0x1402')]||_0x156e15[_0x200c79('0x684')]()});});}function _0x257e9b(){var _0x14ff77=_0x4dbdc3,_0x1c56b4=angular[_0x14ff77('0x20a')](_0x24da98[_0x14ff77('0x1b19')]);return _0x24da98[_0x14ff77('0x1b19')]=[],_0x1c56b4;}function _0xfee411(_0xbe090){var _0x5d5f62=_0x4dbdc3,_0x29b536=_0x52e083[_0x5d5f62('0x281e')]()[_0x5d5f62('0x110a')](_0x5d5f62('0x23be'))[_0x5d5f62('0x102e')](_0x5d5f62('0x389')+_0x24da98[_0x5d5f62('0x1b19')][_0x5d5f62('0x2587')]+_0x5d5f62('0x1443')+_0x5d5f62('0x210d'))[_0x5d5f62('0x5b5')]('delete\x20hoppers')[_0x5d5f62('0x116d')](_0xbe090)['ok']('OK')[_0x5d5f62('0x2030')](_0x5d5f62('0x2410'));_0x52e083['show'](_0x29b536)[_0x5d5f62('0xaa5')](function(){var _0x58e12c=_0x5d5f62;_0x24da98[_0x58e12c('0x1b19')][_0x58e12c('0x15b5')](function(_0x2ba77e){_0x445c95(_0x2ba77e);}),_0x24da98[_0x58e12c('0x1b19')]=[];});}var _0x45d4b8=!![],_0xcd13c4=0x1;_0x354a6e[_0x4dbdc3('0x1ccf')](_0x4dbdc3('0x74c'),function(_0x364eeb,_0x54dfb7){var _0x49c0a4=_0x4dbdc3;_0x45d4b8?_0x20b1ba(function(){_0x45d4b8=![];}):(!_0x54dfb7&&(_0xcd13c4=_0x24da98[_0x49c0a4('0x582')][_0x49c0a4('0x41')]),_0x364eeb!==_0x54dfb7&&(_0x24da98[_0x49c0a4('0x582')][_0x49c0a4('0x41')]=0x1),!_0x364eeb&&(_0x24da98[_0x49c0a4('0x582')][_0x49c0a4('0x41')]=_0xcd13c4),_0x31e65c());});}const _0x1a86d1=_0x43e2fb;_0x26779e[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x10d1'),_0x1a8446('0x1621'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x26779e(_0x5225bd,_0x1a266d,_0x1d53df,_0x3045ad,_0x2e2ea7,_0x57d041,_0x4b8662,_0x48035f,_0x10d04a,_0x51ec3b,_0x38ebd0,_0x4c1ecc,_0x3cb76a,_0x194e19){var _0x4e9518=_0x1a8446,_0x558315=this;_0x558315[_0x4e9518('0x7fc')]=_0x38ebd0[_0x4e9518('0xacc')](),_0x558315['errors']=[],_0x558315['setting']=_0x3cb76a,_0x558315[_0x4e9518('0x1202')]=_0x4c1ecc,_0x558315[_0x4e9518('0xada')]=_0x194e19,_0x558315[_0x4e9518('0x9f0')]={},_0x558315[_0x4e9518('0x1d53')]=_0x558315[_0x4e9518('0x143f')]&&_0x558315[_0x4e9518('0x143f')][_0x4e9518('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x558315[_0x4e9518('0x110a')]=_0x4e9518('0x1b94'),_0x558315[_0x4e9518('0x1621')]=angular['copy'](_0x10d04a),_0x558315[_0x4e9518('0x10d1')]=_0x48035f,_0x558315[_0x4e9518('0xae8')]=![];!_0x558315['hopper']&&(_0x558315[_0x4e9518('0x1621')]={},_0x558315[_0x4e9518('0x110a')]='MOTIONDIALER.NEW_HOPPER',_0x558315[_0x4e9518('0xae8')]=!![]);_0x1a266d['params']['id']&&(_0x558315[_0x4e9518('0x1621')][_0x4e9518('0x2438')]=_0x1a266d[_0x4e9518('0x25cf')]['id']);_0x558315[_0x4e9518('0x2265')]=_0x5c8069,_0x558315[_0x4e9518('0xf72')]=_0x266796,_0x558315['deleteHopper']=_0x5c31c2,_0x558315[_0x4e9518('0xc09')]=_0x399e8b,_0x558315[_0x4e9518('0x2023')]=_0x1e9ffe,_0x38ebd0[_0x4e9518('0x26e8')]('admin')?_0x51ec3b['user'][_0x4e9518('0x2122')]({'fields':_0x4e9518('0x17fe'),'role':_0x4e9518('0xeff'),'sort':_0x4e9518('0x25d6'),'nolimit':_0x4e9518('0x1c5c')})['$promise'][_0x4e9518('0xaa5')](function(_0x436115){var _0x1b2d51=_0x4e9518;_0x558315[_0x1b2d51('0x1717')]=_0x436115[_0x1b2d51('0x580')]||[];})['catch'](function(_0x312bb4){var _0x1e0e1c=_0x4e9518;_0x4b8662[_0x1e0e1c('0x187f')]({'title':_0x312bb4[_0x1e0e1c('0x2fa')]?'API:'+_0x312bb4[_0x1e0e1c('0x2fa')]+_0x1e0e1c('0x169e')+_0x312bb4['statusText']:_0x1e0e1c('0x14c6'),'msg':_0x312bb4[_0x1e0e1c('0x10fd')]?JSON[_0x1e0e1c('0xa48')](_0x312bb4[_0x1e0e1c('0x10fd')]):_0x312bb4[_0x1e0e1c('0x684')]()});}):_0x51ec3b['user']['get']({'fields':'id,name','role':'agent','sort':_0x4e9518('0x25d6'),'nolimit':'true'})[_0x4e9518('0x1dc2')]['then'](function(_0x315d01){var _0x54b5ea=_0x4e9518;_0x558315[_0x54b5ea('0x1717')]=_0x315d01['rows']||[];})[_0x4e9518('0xaa5')](function(){var _0x15daa2=_0x4e9518;return _0x51ec3b[_0x15daa2('0x1a50')][_0x15daa2('0x2122')]({'userProfileId':_0x558315['currentUser'][_0x15daa2('0x2168')],'sectionId':0xca})['$promise'];})[_0x4e9518('0xaa5')](function(_0x436768){var _0xd2f6c4=_0x4e9518,_0x2ff51f=_0x436768&&_0x436768[_0xd2f6c4('0x580')]?_0x436768[_0xd2f6c4('0x580')][0x0]:null;if(!_0x2ff51f){var _0x349e6e=[],_0x2f9566=null;_0x558315['hopper']&&(_0x2f9566=_0x51538b()[_0xd2f6c4('0xe9e')](_0x558315[_0xd2f6c4('0x1717')],{'id':Number(_0x558315[_0xd2f6c4('0x1621')][_0xd2f6c4('0x1037')])}));for(var _0x3d27bf=0x0;_0x3d27bf<_0x558315[_0xd2f6c4('0x1717')]['length'];_0x3d27bf++){_0x2f9566&&_0x558315[_0xd2f6c4('0x1717')][_0x3d27bf]['id']===_0x2f9566['id']&&(_0x558315[_0xd2f6c4('0x1717')][_0x3d27bf][_0xd2f6c4('0x12eb')]=![],_0x349e6e[_0xd2f6c4('0x1599')](_0x558315[_0xd2f6c4('0x1717')][_0x3d27bf]));}_0x558315[_0xd2f6c4('0x1717')]=_0x349e6e;}else{if(!_0x2ff51f['autoAssociation'])return _0x51ec3b['userProfileResource']['get']({'sectionId':_0x2ff51f['id']})['$promise']['then'](function(_0x563373){var _0x24e06d=_0xd2f6c4,_0x33be46=_0x51538b()[_0x24e06d('0x1246')](_0x563373['rows'],function(_0x425b7e){var _0x10a6cb=_0x24e06d;return _0x51538b()[_0x10a6cb('0xe9e')](_0x558315[_0x10a6cb('0x1717')],{'id':_0x425b7e['resourceId']});}),_0x113fc7=null;_0x558315[_0x24e06d('0x1621')]&&(_0x113fc7=_0x51538b()[_0x24e06d('0xe9e')](_0x558315[_0x24e06d('0x1717')],{'id':Number(_0x558315[_0x24e06d('0x1621')]['UserId'])}));if(_0x113fc7&&!_0x51538b()[_0x24e06d('0x2c2')](_0x33be46,['id',_0x113fc7['id']])){var _0x4e4878=_0x51538b()[_0x24e06d('0xe9e')](_0x558315[_0x24e06d('0x1717')],{'id':_0x113fc7['id']});_0x4e4878[_0x24e06d('0x12eb')]=![],_0x33be46['push'](_0x4e4878);}_0x558315[_0x24e06d('0x1717')]=_0x33be46;});}})[_0x4e9518('0x253d')](function(_0x4b5eb7){var _0x8b3ede=_0x4e9518;_0x4b8662['error']({'title':_0x4b5eb7[_0x8b3ede('0x2fa')]?_0x8b3ede('0x16c2')+_0x4b5eb7['status']+_0x8b3ede('0x169e')+_0x4b5eb7[_0x8b3ede('0x24df')]:_0x8b3ede('0x1a3b'),'msg':_0x4b5eb7[_0x8b3ede('0x10fd')]?JSON[_0x8b3ede('0xa48')](_0x4b5eb7[_0x8b3ede('0x10fd')]):_0x4b5eb7[_0x8b3ede('0x684')]()});});function _0x5c8069(){var _0x2187fa=_0x4e9518;_0x558315['errors']=[],_0x51ec3b[_0x2187fa('0xe51')][_0x2187fa('0x242b')](_0x558315[_0x2187fa('0x1621')])['$promise'][_0x2187fa('0xaa5')](function(_0x4df55a){var _0x22cbb0=_0x2187fa;_0x558315['hoppers'][_0x22cbb0('0x6ee')](_0x4df55a[_0x22cbb0('0x256a')]()),_0x4b8662[_0x22cbb0('0xe10')]({'title':_0x22cbb0('0x240'),'msg':_0x558315[_0x22cbb0('0x1621')]['name']?_0x558315[_0x22cbb0('0x1621')][_0x22cbb0('0x25d6')]+_0x22cbb0('0xdca'):''}),_0x1e9ffe(_0x4df55a);})[_0x2187fa('0x253d')](function(_0x44bab9){var _0x17a911=_0x2187fa;if(_0x44bab9[_0x17a911('0x10fd')]&&_0x44bab9['data'][_0x17a911('0x4c6')]&&_0x44bab9[_0x17a911('0x10fd')][_0x17a911('0x4c6')]['length']){_0x558315[_0x17a911('0x4c6')]=_0x44bab9['data']['errors']||[{'message':_0x44bab9[_0x17a911('0x684')](),'type':_0x17a911('0xc49')}];for(var _0x3283c6=0x0;_0x3283c6<_0x44bab9[_0x17a911('0x10fd')][_0x17a911('0x4c6')][_0x17a911('0x2587')];_0x3283c6+=0x1){_0x4b8662['error']({'title':_0x44bab9['data'][_0x17a911('0x4c6')][_0x3283c6]['type'],'msg':_0x44bab9[_0x17a911('0x10fd')]['errors'][_0x3283c6][_0x17a911('0x1402')]});}}else _0x4b8662['error']({'title':_0x44bab9[_0x17a911('0x2fa')]?_0x17a911('0x16c2')+_0x44bab9['status']+_0x17a911('0x169e')+_0x44bab9[_0x17a911('0x24df')]:'api.cmHopper.save','msg':_0x44bab9[_0x17a911('0x10fd')]?JSON['stringify'](_0x44bab9[_0x17a911('0x10fd')][_0x17a911('0x1402')]):_0x44bab9[_0x17a911('0x684')]()});});}function _0x266796(){var _0x5de1c0=_0x4e9518;_0x558315[_0x5de1c0('0x4c6')]=[];var _0x340847,_0x4529d6,_0x541861,_0x5142af;_0x558315[_0x5de1c0('0x1621')]['UserId']=_0x558315[_0x5de1c0('0x1621')][_0x5de1c0('0x7dd')]?_0x558315[_0x5de1c0('0x1621')][_0x5de1c0('0x1037')]:null,_0x558315[_0x5de1c0('0x1621')][_0x5de1c0('0x797')]=_0x38ebd0['getCurrentUser']()['id'],_0x51ec3b[_0x5de1c0('0xe51')]['get']({'id':_0x558315[_0x5de1c0('0x1621')]['id'],'attributes':['scheduledat']})[_0x5de1c0('0x1dc2')]['then'](function(_0x3b678a){var _0x5f54a1=_0x5de1c0;_0x51538b()['isNil'](_0x3b678a)||_0x51538b()[_0x5f54a1('0x116b')](_0x3b678a)?_0x340847=_0x420d43()()[_0x5f54a1('0x1f27')]('YYYY-MM-DD\x20HH:mm:ss'):_0x340847=_0x3b678a[_0x5f54a1('0x300')];})['finally'](function(){var _0x516933=_0x5de1c0;_0x51ec3b[_0x516933('0xe51')]['update']({'id':_0x558315[_0x516933('0x1621')]['id']},_0x51538b()[_0x516933('0x245')](_0x558315['hopper'],[_0x516933('0x2438'),_0x516933('0x174d'),_0x516933('0xb9e'),_0x516933('0xee0')]))[_0x516933('0x1dc2')]['then'](function(_0x2f3982){var _0x1757a5=_0x516933;_0x4529d6=_0x2f3982,_0x51ec3b[_0x1757a5('0xdbd')][_0x1757a5('0x2122')]({'id':_0x4529d6[_0x1757a5('0xb9e')],'attributes':['firstName','lastName']})[_0x1757a5('0x1dc2')][_0x1757a5('0xaa5')](function(_0x573502){var _0x39fc89=_0x1757a5;!_0x51538b()['isNil'](_0x573502)&&!_0x51538b()[_0x39fc89('0x89a')](_0x573502[_0x39fc89('0x24c1')])&&(_0x541861=_0x573502[_0x39fc89('0x24c1')],!_0x51538b()[_0x39fc89('0x89a')](_0x573502[_0x39fc89('0x351')])&&(_0x541861+='\x20'+_0x573502[_0x39fc89('0x351')]));})[_0x1757a5('0x253d')](function(){_0x541861=undefined;})[_0x1757a5('0x1889')](function(){var _0x219f26=_0x1757a5;_0x51ec3b[_0x219f26('0x1588')][_0x219f26('0x2122')]({'raw':![],'id':_0x4529d6['VoiceQueueId'],'attributes':[_0x219f26('0x25d6')]})[_0x219f26('0x1dc2')]['then'](function(_0x3082fc){_0x5142af=_0x3082fc['name'];})['catch'](function(){_0x5142af=undefined;})['finally'](function(){var _0x5c505a=_0x219f26;_0x51ec3b[_0x5c505a('0xadd')]['save']({'state':0x18,'statedesc':_0x5c505a('0x468'),'scheduledat':_0x340847,'calleridnum':_0x4529d6[_0x5c505a('0x1a46')],'calleridname':_0x541861,'campaigntype':_0x4529d6[_0x5c505a('0x2438')]?_0x5c505a('0xe26'):_0x5c505a('0x1d11'),'campaign':_0x5142af,'editedat':_0x420d43()()[_0x5c505a('0x1f27')]('YYYY-MM-DD\x20HH:mm:ss'),'edited':!![],'ListId':_0x4529d6['ListId'],'UserId':_0x38ebd0[_0x5c505a('0xacc')]()['id'],'VoiceQueueId':_0x4529d6[_0x5c505a('0x2438')],'CampaignId':_0x4529d6['CampaignId'],'ContactId':_0x4529d6['ContactId'],'callback':_0x4529d6[_0x5c505a('0x1dc1')],'callbackuniqueid':_0x4529d6['callbackuniqueid'],'countbusyretry':_0x4529d6['countbusyretry'],'countcongestionretry':_0x4529d6['countcongestionretry'],'countglobal':_0x4529d6[_0x5c505a('0x2816')],'countnoanswerretry':_0x4529d6[_0x5c505a('0x1b2')],'followuptime':_0x4529d6[_0x5c505a('0x1343')],'recallme':_0x4529d6[_0x5c505a('0x7dd')]});});});var _0x2979b7=_0x51538b()['find'](_0x558315[_0x1757a5('0x10d1')],{'id':_0x2f3982['id']});_0x2979b7&&_0x51538b()['merge'](_0x2979b7,_0x51538b()[_0x1757a5('0x104e')](_0x2f3982['toJSON'](),_0x51538b()['keys'](_0x2979b7))),_0x4b8662[_0x1757a5('0xe10')]({'title':_0x1757a5('0x130e'),'msg':_0x558315['hopper'][_0x1757a5('0x25d6')]?_0x558315[_0x1757a5('0x1621')][_0x1757a5('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x1e9ffe(_0x2f3982);})['catch'](function(_0x37dca2){var _0x1eaab0=_0x516933;if(_0x37dca2[_0x1eaab0('0x10fd')]&&_0x37dca2[_0x1eaab0('0x10fd')][_0x1eaab0('0x4c6')]&&_0x37dca2['data'][_0x1eaab0('0x4c6')][_0x1eaab0('0x2587')]){_0x558315[_0x1eaab0('0x4c6')]=_0x37dca2[_0x1eaab0('0x10fd')]['errors']||[{'message':_0x37dca2[_0x1eaab0('0x684')](),'type':_0x1eaab0('0x18fc')}];for(var _0x2ac338=0x0;_0x2ac338<_0x37dca2[_0x1eaab0('0x10fd')][_0x1eaab0('0x4c6')][_0x1eaab0('0x2587')];_0x2ac338++){_0x4b8662[_0x1eaab0('0x187f')]({'title':_0x37dca2[_0x1eaab0('0x10fd')][_0x1eaab0('0x4c6')][_0x2ac338][_0x1eaab0('0x6c8')],'msg':_0x37dca2[_0x1eaab0('0x10fd')][_0x1eaab0('0x4c6')][_0x2ac338][_0x1eaab0('0x1402')]});}}else _0x4b8662[_0x1eaab0('0x187f')]({'title':_0x37dca2[_0x1eaab0('0x2fa')]?_0x1eaab0('0x16c2')+_0x37dca2[_0x1eaab0('0x2fa')]+_0x1eaab0('0x169e')+_0x37dca2[_0x1eaab0('0x24df')]:_0x1eaab0('0x18fc'),'msg':_0x37dca2[_0x1eaab0('0x10fd')]?JSON[_0x1eaab0('0xa48')](_0x37dca2[_0x1eaab0('0x10fd')][_0x1eaab0('0x1402')]):_0x37dca2['toString']()});});});}function _0x5c31c2(_0x26b16e){var _0x388760=_0x4e9518;_0x558315[_0x388760('0x4c6')]=[];var _0x5c024d=_0x3045ad[_0x388760('0x281e')]()[_0x388760('0x110a')]('Are\x20you\x20sure?')[_0x388760('0x15af')]('The\x20hopper\x20will\x20be\x20deleted.')['ariaLabel'](_0x388760('0xff'))['ok'](_0x388760('0x1e76'))[_0x388760('0x2030')](_0x388760('0x9c6'))[_0x388760('0x116d')](_0x26b16e);_0x3045ad[_0x388760('0x1e6d')](_0x5c024d)['then'](function(){var _0x5db285=_0x388760;_0x51ec3b['cmHopper'][_0x5db285('0x926')]({'id':_0x558315[_0x5db285('0x1621')]['id']})[_0x5db285('0x1dc2')][_0x5db285('0xaa5')](function(){var _0xb2611b=_0x5db285;_0x51538b()[_0xb2611b('0xf6d')](_0x558315[_0xb2611b('0x10d1')],{'id':_0x558315[_0xb2611b('0x1621')]['id']}),_0x4b8662[_0xb2611b('0xe10')]({'title':_0xb2611b('0xccd'),'msg':(_0x558315['hopper'][_0xb2611b('0x25d6')]||'hopper')+_0xb2611b('0xcd9')}),_0x1e9ffe(_0x558315['hopper']);})['catch'](function(_0x563291){var _0x45cc62=_0x5db285;if(_0x563291['data']&&_0x563291[_0x45cc62('0x10fd')][_0x45cc62('0x4c6')]&&_0x563291[_0x45cc62('0x10fd')][_0x45cc62('0x4c6')]['length']){_0x558315[_0x45cc62('0x4c6')]=_0x563291[_0x45cc62('0x10fd')]['errors']||[{'message':_0x563291['toString'](),'type':_0x45cc62('0x20f8')}];for(var _0x5351df=0x0;_0x5351df<_0x563291['data'][_0x45cc62('0x4c6')][_0x45cc62('0x2587')];_0x5351df++){_0x4b8662[_0x45cc62('0x187f')]({'title':_0x563291[_0x45cc62('0x10fd')][_0x45cc62('0x4c6')][_0x5351df]['type'],'msg':_0x563291[_0x45cc62('0x10fd')][_0x45cc62('0x4c6')][_0x5351df][_0x45cc62('0x1402')]});}}else _0x4b8662['error']({'title':_0x563291[_0x45cc62('0x2fa')]?_0x45cc62('0x16c2')+_0x563291['status']+_0x45cc62('0x169e')+_0x563291[_0x45cc62('0x24df')]:_0x45cc62('0x20f8'),'msg':_0x563291['data']?JSON[_0x45cc62('0xa48')](_0x563291[_0x45cc62('0x10fd')][_0x45cc62('0x1402')]):_0x563291[_0x45cc62('0x1402')]||_0x563291['toString']()});});},function(){});}function _0x399e8b(_0x90b85e){return _0x90b85e===null?undefined:new Date(_0x90b85e);}function _0x1e9ffe(_0x50ba71){var _0x544351=_0x4e9518;_0x3045ad[_0x544351('0x1120')](_0x50ba71);}}const _0x3083bf=_0x26779e;_0x587310['$inject']=[_0x1a8446('0x157'),'toasty'];function _0x587310(_0xf0dc7,_0x20a7f0){var _0x388200=_0x1a8446,_0x21a0b9=this;_0x21a0b9[_0x388200('0x239e')]={},_0x21a0b9[_0x388200('0x2e')]=_0x1641b7;function _0x1641b7(_0x3f7efd){var _0x1fc543=_0x388200;_0x21a0b9['queueCampaign']=_0x3f7efd,_0xf0dc7[_0x1fc543('0xe51')]['get']({'limit':0x0,'VoiceQueueId':_0x3f7efd['id']})[_0x1fc543('0x1dc2')][_0x1fc543('0xaa5')](function(_0x188a4a){var _0x47cf86=_0x1fc543;return _0x21a0b9[_0x47cf86('0x1d71')]=_0x188a4a[_0x47cf86('0xd15')]||0x0,_0xf0dc7[_0x47cf86('0xe51')][_0x47cf86('0x2122')]({'limit':0x0,'VoiceQueueId':_0x3f7efd['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x47cf86('0x1dc2')];})[_0x1fc543('0xaa5')](function(_0xd70dc7){var _0xa5c882=_0x1fc543;return _0x21a0b9[_0xa5c882('0x1213')]=_0xd70dc7[_0xa5c882('0xd15')]||0x0,_0xf0dc7[_0xa5c882('0x9c3')][_0xa5c882('0x2122')]({'limit':0x0,'VoiceQueueId':_0x3f7efd['id']})['$promise'];})['then'](function(_0x19efb9){var _0x81ee1e=_0x1fc543;_0x21a0b9[_0x81ee1e('0x1cbd')]=_0x19efb9['count']||0x0;})[_0x1fc543('0x253d')](function(_0x208822){var _0x5f3104=_0x1fc543;_0x20a7f0[_0x5f3104('0x187f')]({'title':_0x208822['status']?_0x5f3104('0x16c2')+_0x208822['status']+_0x5f3104('0x169e')+_0x208822[_0x5f3104('0x24df')]:_0x5f3104('0xe67'),'msg':_0x208822[_0x5f3104('0x10fd')]?JSON[_0x5f3104('0xa48')](_0x208822[_0x5f3104('0x10fd')]):_0x208822[_0x5f3104('0x684')]()});});}}const _0x1461a8=_0x587310;_0x12a807[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'api',_0x1a8446('0x239e'),'$translate',_0x1a8446('0x186b'),'Auth','crudPermissions'];function _0x12a807(_0x474df8,_0x554992,_0x3395ee,_0x3bfc98,_0x473c22,_0x2c50f7,_0x5483e1,_0xf5ebc0,_0x571ec9){var _0x46f1a8=_0x1a8446,_0x32188a=this;_0x32188a[_0x46f1a8('0x7fc')]=_0xf5ebc0[_0x46f1a8('0xacc')](),_0x32188a[_0x46f1a8('0x239e')]=_0x473c22,_0x32188a[_0x46f1a8('0xada')]=_0x571ec9,_0x32188a[_0x46f1a8('0x1f4')]=_0x46f1a8('0x1588'),_0x32188a['getApi']=_0x46f1a8('0xcfd'),_0x32188a[_0x46f1a8('0x1669')]=_0x46f1a8('0x161d'),_0x32188a['removeApi']=_0x46f1a8('0xb97'),_0x32188a[_0x46f1a8('0x1a30')]=[],_0x32188a[_0x46f1a8('0x11b9')]=[],_0x32188a[_0x46f1a8('0xbf7')]=[],_0x32188a['startingAllowedItems']=[],_0x32188a[_0x46f1a8('0x214a')]=[],_0x32188a[_0x46f1a8('0xc54')]=![],_0x32188a[_0x46f1a8('0x1aaa')]=![],_0x32188a[_0x46f1a8('0x1c23')]={'readOnly':!_0x32188a[_0x46f1a8('0xada')][_0x46f1a8('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':'name','line1':_0x46f1a8('0x25d6'),'line2':'','line3':'','labelAll':_0x2c50f7['instant'](_0x46f1a8('0x1713')),'labelSelected':_0x2c50f7[_0x46f1a8('0x213f')](_0x46f1a8('0x67a')),'transferCallback':function _0x4e566d(){var _0xc3baf7=_0x46f1a8,_0x3bc147=_0x51538b()[_0xc3baf7('0x9ef')](_0x32188a[_0xc3baf7('0x214a')],_0x32188a[_0xc3baf7('0xbf7')],'id');_0x32188a[_0xc3baf7('0xc54')]=_0x51538b()['isEmpty'](_0x3bc147)?![]:!![];}},_0x32188a['onInit']=_0x3e137a,_0x32188a['saveLists']=_0x1cc8f1,_0x32188a[_0x46f1a8('0x2023')]=_0x1efc68;function _0x3e137a(){var _0x51749c=_0x46f1a8;return _0xf5ebc0['hasRole'](_0x51749c('0x178b'))?_0x23c2e7()[_0x51749c('0x253d')](function(_0x5b150f){var _0x2a2c6d=_0x51749c;_0x3395ee[_0x2a2c6d('0x187f')]({'title':_0x5b150f[_0x2a2c6d('0x2fa')]?_0x2a2c6d('0x16c2')+_0x5b150f[_0x2a2c6d('0x2fa')]+_0x2a2c6d('0x169e')+_0x5b150f[_0x2a2c6d('0x24df')]:_0x2a2c6d('0x1e49'),'msg':_0x5b150f['status']?JSON['stringify'](_0x5b150f[_0x2a2c6d('0x10fd')]):_0x5b150f[_0x2a2c6d('0x684')]()});}):_0x1a68cf()[_0x51749c('0xaa5')](function(_0x1e596c){return _0x32188a['section']=_0x1e596c,_0x23c2e7();})[_0x51749c('0x253d')](function(_0x75b305){var _0x5eb05b=_0x51749c;_0x3395ee[_0x5eb05b('0x187f')]({'title':_0x75b305['status']?_0x5eb05b('0x16c2')+_0x75b305['status']+_0x5eb05b('0x169e')+_0x75b305['statusText']:_0x5eb05b('0x1e49'),'msg':_0x75b305[_0x5eb05b('0x2fa')]?JSON[_0x5eb05b('0xa48')](_0x75b305[_0x5eb05b('0x10fd')]):_0x75b305['toString']()});});}function _0x1a68cf(){return _0x554992(function(_0xfa833a,_0xea5b7c){var _0x2cd849=a0_0x1149;_0x3bfc98[_0x2cd849('0x1a50')]['get']({'userProfileId':_0x32188a[_0x2cd849('0x7fc')][_0x2cd849('0x2168')],'name':_0x2cd849('0x1135')})[_0x2cd849('0x1dc2')][_0x2cd849('0xaa5')](function(_0x494d8f){var _0x91078a=_0x2cd849,_0x25d61a=_0x494d8f&&_0x494d8f[_0x91078a('0x580')]?_0x494d8f[_0x91078a('0x580')][0x0]:null;_0xfa833a(_0x25d61a);})['catch'](function(_0x5d9054){_0xea5b7c(_0x5d9054);});});}function _0x23c2e7(){return _0x554992(function(_0x450c87,_0x4d8e67){var _0x219de4=a0_0x1149;return _0x6662bf()[_0x219de4('0xaa5')](function(_0x15b751){var _0x25e88c=_0x219de4;return _0x32188a[_0x25e88c('0x1a30')]=_0x15b751[_0x25e88c('0x580')]?_0x15b751[_0x25e88c('0x580')]:[],_0xf5ebc0[_0x25e88c('0x26e8')](_0x25e88c('0x178b'))?_0x15b751:_0x32188a[_0x25e88c('0x224d')]?_0x32188a[_0x25e88c('0x224d')][_0x25e88c('0x26cc')]?_0x15b751:_0x484f9f():null;})[_0x219de4('0xaa5')](function(_0x3d937d){var _0x4f24ed=_0x219de4,_0x2ac1fc=_0x3d937d&&_0x3d937d[_0x4f24ed('0x580')]?_0x3d937d[_0x4f24ed('0x580')]:[];return _0x32188a[_0x4f24ed('0x11b9')]=_0x51538b()[_0x4f24ed('0x1246')](_0x2ac1fc,function(_0x251a62){var _0x281d75=_0x4f24ed;return _0x51538b()[_0x281d75('0xe9e')](_0x32188a[_0x281d75('0x1a30')],{'id':_0xf5ebc0[_0x281d75('0x26e8')](_0x281d75('0x178b'))||_0x32188a[_0x281d75('0x224d')][_0x281d75('0x26cc')]?_0x251a62['id']:_0x251a62[_0x281d75('0xbcd')]});}),_0x32188a['startingAllowedItems']=angular[_0x4f24ed('0x20a')](_0x32188a[_0x4f24ed('0x11b9')]),_0x32188a[_0x4f24ed('0x1a30')][_0x4f24ed('0x15b5')](function(_0x303543){var _0x480ce9=_0x4f24ed,_0x2f549e=_0x51538b()['find'](_0x32188a[_0x480ce9('0x11b9')],{'id':_0x303543['id']});_0x32188a[_0x480ce9('0x7fc')]['role']===_0x480ce9('0x178b')?_0x303543['isValid']=!![]:_0x303543[_0x480ce9('0x145d')]=typeof _0x2f549e!==_0x480ce9('0x1574')?!![]:![];}),_0x23e851();})[_0x219de4('0xaa5')](function(_0x107712){var _0x302ef8=_0x219de4,_0x4092b9=_0x107712&&_0x107712['rows']?_0x107712[_0x302ef8('0x580')]:[];_0x32188a[_0x302ef8('0xbf7')]=_0x51538b()[_0x302ef8('0x1246')](_0x4092b9,function(_0x1f4587){var _0x4a1270=_0x302ef8;return _0x51538b()['find'](_0x32188a[_0x4a1270('0x1a30')],{'id':_0x1f4587['id']});}),_0x32188a[_0x302ef8('0x214a')]=angular['copy'](_0x32188a[_0x302ef8('0xbf7')]),_0x32188a[_0x302ef8('0x1c23')][_0x302ef8('0xbf7')]=_0x32188a['selectedItems'],_0x32188a[_0x302ef8('0x1c23')]['items']=_0x51538b()[_0x302ef8('0x1ebb')](_0x32188a[_0x302ef8('0x11b9')],_0x32188a[_0x302ef8('0x1c23')]['selectedItems'],'id'),_0x450c87();})[_0x219de4('0x253d')](function(_0x4b2207){_0x4d8e67(_0x4b2207);});});}function _0x484f9f(){return _0x554992(function(_0x25d934,_0x65e7f){var _0x4379a2=a0_0x1149;return _0x3bfc98[_0x4379a2('0x249a')][_0x4379a2('0x2122')]({'sectionId':_0x32188a['section']['id'],'nolimit':!![]})['$promise'][_0x4379a2('0xaa5')](function(_0x16276f){_0x25d934(_0x16276f);})[_0x4379a2('0x253d')](function(_0x6dcf78){_0x65e7f(_0x6dcf78);});});}function _0x23e851(){return _0x554992(function(_0x1a0120,_0x4d550a){var _0x5b9201=a0_0x1149,_0x19cbf8=_0x3bfc98[_0x32188a[_0x5b9201('0x1f4')]];return _0x19cbf8[_0x32188a[_0x5b9201('0x1b10')]]({'id':_0x32188a[_0x5b9201('0x239e')]['id'],'fields':_0x5b9201('0x17fe'),'nolimit':!![]})[_0x5b9201('0x1dc2')][_0x5b9201('0xaa5')](function(_0x23ec21){_0x1a0120(_0x23ec21);})[_0x5b9201('0x253d')](function(_0x3a4365){_0x4d550a(_0x3a4365);});});}function _0x6662bf(){return _0x554992(function(_0x2c7765,_0x37d488){var _0x49ee1b=a0_0x1149;return _0x3bfc98['cmList'][_0x49ee1b('0x2122')]({'fields':_0x49ee1b('0x17fe'),'nolimit':!![]})[_0x49ee1b('0x1dc2')]['then'](function(_0x26ff0a){_0x2c7765(_0x26ff0a);})['catch'](function(_0x473e26){_0x37d488(_0x473e26);});});}function _0x596c55(_0x2024df){return _0x554992(function(_0x524131,_0x57f9c1){var _0x313c21=a0_0x1149;if(_0x51538b()['isEmpty'](_0x2024df))_0x524131();else{var _0xa3f485=_0x3bfc98[_0x32188a['apiRoute']];_0xa3f485[_0x32188a[_0x313c21('0x1669')]]({'id':_0x32188a[_0x313c21('0x239e')]['id'],'ids':_0x51538b()[_0x313c21('0x1246')](_0x2024df,'id')})[_0x313c21('0x1dc2')][_0x313c21('0xaa5')](function(){_0x524131();})[_0x313c21('0x253d')](function(_0x1de37e){_0x57f9c1(_0x1de37e);});}});}function _0x11b70a(_0x12e836){return _0x554992(function(_0x3a894a,_0x1e4969){var _0x53534a=a0_0x1149;if(_0x51538b()[_0x53534a('0x116b')](_0x12e836))_0x3a894a();else{var _0x5d4e10=_0x3bfc98[_0x32188a[_0x53534a('0x1f4')]];_0x5d4e10[_0x32188a[_0x53534a('0x1a2a')]]({'id':_0x32188a['queueCampaign']['id'],'ids':_0x51538b()[_0x53534a('0x1246')](_0x12e836,'id')})[_0x53534a('0x1dc2')][_0x53534a('0xaa5')](function(){_0x3a894a();})[_0x53534a('0x253d')](function(_0x40e43e){_0x1e4969(_0x40e43e);});}});}function _0x1cc8f1(){var _0x15165a=_0x46f1a8;_0x32188a[_0x15165a('0x1aaa')]=!![];var _0x111907=_0x51538b()[_0x15165a('0x1ebb')](_0x32188a[_0x15165a('0x214a')],_0x32188a['selectedItems'],'id'),_0x19f834=_0x51538b()[_0x15165a('0x1ebb')](_0x32188a[_0x15165a('0xbf7')],_0x32188a['startingSelectedItems'],'id');return _0x11b70a(_0x111907)[_0x15165a('0xaa5')](function(){return _0x596c55(_0x19f834);})['then'](function(){var _0x4ae6ef=_0x15165a;_0x32188a[_0x4ae6ef('0xc54')]=![],_0x32188a[_0x4ae6ef('0x215b')]=angular[_0x4ae6ef('0x20a')](_0x32188a[_0x4ae6ef('0x11b9')]),_0x32188a['startingSelectedItems']=angular[_0x4ae6ef('0x20a')](_0x32188a['selectedItems']),_0x3395ee[_0x4ae6ef('0xe10')]({'title':_0x4ae6ef('0x2eb'),'msg':_0x4ae6ef('0x15bb')});})['catch'](function(_0xb405e6){var _0xb8e343=_0x15165a;_0x3395ee[_0xb8e343('0x187f')]({'title':_0xb405e6['status']?'API:'+_0xb405e6[_0xb8e343('0x2fa')]+_0xb8e343('0x169e')+_0xb405e6[_0xb8e343('0x24df')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0xb405e6[_0xb8e343('0x2fa')]?JSON[_0xb8e343('0xa48')](_0xb405e6['data']):_0xb405e6[_0xb8e343('0x684')]()});})['finally'](function(){_0x32188a['loading']=![];});}function _0x1efc68(){var _0x53f639=_0x46f1a8;_0x474df8[_0x53f639('0x1120')]();}}const _0x5c19e6=_0x12a807;_0x2a796f['$inject']=['$scope','$mdDialog',_0x1a8446('0x2a4'),'api',_0x1a8446('0x239e'),'listsCampaign',_0x1a8446('0xa1a'),'$q'];function _0x2a796f(_0x16da86,_0x4a0ca9,_0x292a62,_0x1f40c3,_0x33b68b,_0x2774aa,_0x840517,_0x105bf1){var _0x5806ed=_0x1a8446,_0x526bf7=this;_0x526bf7['selected']=[],_0x526bf7[_0x5806ed('0x1a30')]=_0x2774aa?_0x2774aa:[],_0x526bf7[_0x5806ed('0x1aaa')]=![],_0x526bf7[_0x5806ed('0x2023')]=_0xec51d1,_0x526bf7[_0x5806ed('0x1d91')]=_0x26d78a,_0x526bf7[_0x5806ed('0x162a')]=_0x4032d1,_0x526bf7['isIndeterminate']=_0x53edfe,_0x526bf7[_0x5806ed('0x1718')]=_0x426559,_0x526bf7[_0x5806ed('0x280d')]=_0xffe403,_0x526bf7[_0x5806ed('0xaad')]=_0x401cc5;function _0x4032d1(_0x5925fb,_0x3443ce){var _0x42f303=_0x5806ed,_0x53b2ff=_0x3443ce[_0x42f303('0x1f38')](_0x5925fb);_0x53b2ff>-0x1?_0x3443ce[_0x42f303('0x1280')](_0x53b2ff,0x1):_0x3443ce[_0x42f303('0x1599')](_0x5925fb);}function _0x26d78a(_0x245356,_0x39b67f){var _0x2de85f=_0x5806ed;return _0x39b67f[_0x2de85f('0x1f38')](_0x245356)>-0x1;}function _0x53edfe(){var _0x17b269=_0x5806ed;return _0x526bf7[_0x17b269('0x24e2')][_0x17b269('0x2587')]!==0x0&&_0x526bf7[_0x17b269('0x24e2')]['length']!==_0x526bf7[_0x17b269('0x1a30')][_0x17b269('0x2587')];}function _0x426559(){var _0x1b27a7=_0x5806ed;return _0x526bf7[_0x1b27a7('0x24e2')][_0x1b27a7('0x2587')]===_0x526bf7['items'][_0x1b27a7('0x2587')];}function _0xffe403(){var _0x1cdb56=_0x5806ed;if(_0x526bf7[_0x1cdb56('0x24e2')]['length']===_0x526bf7[_0x1cdb56('0x1a30')][_0x1cdb56('0x2587')])_0x526bf7[_0x1cdb56('0x24e2')]=[];else(_0x526bf7[_0x1cdb56('0x24e2')][_0x1cdb56('0x2587')]===0x0||_0x526bf7[_0x1cdb56('0x24e2')]['length']>0x0)&&(_0x526bf7['selected']=_0x526bf7[_0x1cdb56('0x1a30')][_0x1cdb56('0x19aa')](0x0));}function _0xec51d1(){var _0x5cc528=_0x5806ed;_0x4a0ca9[_0x5cc528('0x1120')]();}function _0x401cc5(){var _0x4930c5=_0x5806ed;_0x526bf7[_0x4930c5('0x1aaa')]=!![];var _0x5114a4=_0x3d0098();_0x5114a4[_0x4930c5('0x1889')](function(){_0x526bf7['loading']=![],_0xec51d1();});}function _0x3d0098(){return _0x105bf1(function(_0x10bec6){var _0x1a0b9a=a0_0x1149;for(var _0x2d029c=0x0;_0x2d029c<_0x526bf7[_0x1a0b9a('0x24e2')][_0x1a0b9a('0x2587')];_0x2d029c+=0x1){_0x2b2bf9(_0x33b68b['id'],_0x526bf7[_0x1a0b9a('0x24e2')][_0x2d029c]);}_0x396219(_0x10bec6);});}function _0x2b2bf9(_0x4b6c53,_0x25aabf){var _0x1fb7e5=_0x25aabf['id'];_0x840517['enqueue'](function(){var _0x283905=a0_0x1149;return _0x1f40c3['voiceQueue'][_0x283905('0xb97')]({'id':_0x4b6c53,'ids':_0x1fb7e5})[_0x283905('0x1dc2')][_0x283905('0xaa5')](function(){var _0x280662=_0x283905;return _0x1f40c3[_0x280662('0x1588')][_0x280662('0x161d')]({'id':_0x4b6c53,'ids':_0x1fb7e5,'dialCheckDuplicateType':'never'})[_0x280662('0x1dc2')];})['then'](function(){var _0x6908d8=_0x283905;_0x292a62['success']({'title':_0x6908d8('0x257e'),'msg':_0x6908d8('0x1040')+_0x25aabf[_0x6908d8('0x25d6')]+_0x6908d8('0x16f5')});})['catch'](function(_0x4cd1dc){var _0x3a7238=_0x283905;_0x292a62[_0x3a7238('0x187f')]({'title':_0x4cd1dc[_0x3a7238('0x2fa')]?_0x3a7238('0x16c2')+_0x4cd1dc['status']+_0x3a7238('0x169e')+_0x4cd1dc[_0x3a7238('0x24df')]:_0x3a7238('0x1229'),'msg':_0x4cd1dc[_0x3a7238('0x2fa')]?JSON[_0x3a7238('0xa48')](_0x4cd1dc['data']):_0x4cd1dc[_0x3a7238('0x684')]()});});});}function _0x396219(_0x1c62d1){var _0x447945=_0x5806ed;_0x840517[_0x447945('0x2be')](function(){return _0x1c62d1();});}}const _0x502195=_0x2a796f;_0x909f92[_0x1a8446('0x1e33')]=['$mdDialog','$q','toasty',_0x1a8446('0x157'),_0x1a8446('0x239e'),'$translate','Auth','crudPermissions'];function _0x909f92(_0x3c1984,_0x20cad6,_0x45c877,_0x40c7d5,_0x41af65,_0x1a851d,_0x19e099,_0x200155){var _0x5c9016=_0x1a8446,_0x590662=this;_0x590662[_0x5c9016('0x7fc')]=_0x19e099['getCurrentUser'](),_0x590662[_0x5c9016('0x239e')]=_0x41af65,_0x590662['crudPermissions']=_0x200155,_0x590662[_0x5c9016('0x2234')]=0x0,_0x590662[_0x5c9016('0x1a30')]=[],_0x590662[_0x5c9016('0x11b9')]=[],_0x590662[_0x5c9016('0xbf7')]=[],_0x590662['startingAllowedItems']=[],_0x590662[_0x5c9016('0x214a')]=[],_0x590662[_0x5c9016('0xc54')]=![],_0x590662[_0x5c9016('0x1c23')]={'readOnly':!_0x590662[_0x5c9016('0xada')][_0x5c9016('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5c9016('0x25d6'),'line1':'name','line2':'','line3':'','labelAll':_0x1a851d[_0x5c9016('0x213f')](_0x5c9016('0x2a7')),'labelSelected':_0x1a851d[_0x5c9016('0x213f')](_0x5c9016('0x272e')),'transferCallback':function _0x936aab(_0x42c01f,_0x17d590){var _0x5222d5=_0x5c9016;_0x17d590?_0x42c01f[_0x5222d5('0x15b5')](function(_0x2a5949){var _0x2565ed=_0x5222d5;_0x2a5949[_0x2565ed('0x2234')]=undefined;}):_0x42c01f['forEach'](function(_0x1369f0){var _0x1a33ab=_0x5222d5;_0x1369f0['penalty']=_0x1a33ab('0x17b0')+_0x590662[_0x1a33ab('0x2234')];});var _0x1552c5=_0x51538b()[_0x5222d5('0x9ef')](_0x590662[_0x5222d5('0x214a')],_0x590662[_0x5222d5('0xbf7')],'id');_0x590662['pendingChanges']=_0x51538b()[_0x5222d5('0x116b')](_0x1552c5)?![]:!![];}},_0x590662[_0x5c9016('0x2318')]=_0x43be06,_0x590662[_0x5c9016('0x2507')]=_0x515920,_0x590662[_0x5c9016('0x2023')]=_0x474c02;function _0x43be06(){var _0x471656=_0x5c9016;return _0x19e099[_0x471656('0x26e8')]('admin')?_0x43dfeb()['catch'](function(_0x3d9518){var _0x9cc209=_0x471656;_0x45c877[_0x9cc209('0x187f')]({'title':_0x3d9518[_0x9cc209('0x2fa')]?_0x9cc209('0x16c2')+_0x3d9518['status']+_0x9cc209('0x169e')+_0x3d9518[_0x9cc209('0x24df')]:_0x9cc209('0x4b3'),'msg':_0x3d9518['status']?JSON[_0x9cc209('0xa48')](_0x3d9518[_0x9cc209('0x10fd')]):_0x3d9518[_0x9cc209('0x684')]()});}):_0xdd8d13()[_0x471656('0xaa5')](function(_0x531860){return _0x590662['section']=_0x531860,_0x43dfeb();})[_0x471656('0x253d')](function(_0x512485){var _0x4bda45=_0x471656;_0x45c877[_0x4bda45('0x187f')]({'title':_0x512485[_0x4bda45('0x2fa')]?_0x4bda45('0x16c2')+_0x512485[_0x4bda45('0x2fa')]+_0x4bda45('0x169e')+_0x512485['statusText']:_0x4bda45('0x4b3'),'msg':_0x512485[_0x4bda45('0x2fa')]?JSON[_0x4bda45('0xa48')](_0x512485[_0x4bda45('0x10fd')]):_0x512485[_0x4bda45('0x684')]()});});}function _0xdd8d13(){return _0x20cad6(function(_0x23af6a,_0x458d6e){var _0x2aef14=a0_0x1149;_0x40c7d5[_0x2aef14('0x1a50')][_0x2aef14('0x2122')]({'userProfileId':_0x590662['currentUser'][_0x2aef14('0x2168')],'name':_0x2aef14('0x10ee')})[_0x2aef14('0x1dc2')][_0x2aef14('0xaa5')](function(_0x1035ca){var _0x258b26=_0x2aef14,_0x2180bb=_0x1035ca&&_0x1035ca[_0x258b26('0x580')]?_0x1035ca[_0x258b26('0x580')][0x0]:null;_0x23af6a(_0x2180bb);})[_0x2aef14('0x253d')](function(_0x159093){_0x458d6e(_0x159093);});});}function _0x43dfeb(){return _0x20cad6(function(_0x22662e,_0x5454b2){var _0x3cb2be=a0_0x1149;return _0x4be83d()[_0x3cb2be('0xaa5')](function(_0xd0eb){var _0x1a8914=_0x3cb2be;return _0x590662[_0x1a8914('0x1a30')]=_0xd0eb[_0x1a8914('0x580')]?_0xd0eb[_0x1a8914('0x580')]:[],_0x19e099['hasRole']('admin')?_0xd0eb:_0x590662[_0x1a8914('0x224d')]?_0x590662[_0x1a8914('0x224d')][_0x1a8914('0x26cc')]?_0xd0eb:_0x2e5ba3():null;})[_0x3cb2be('0xaa5')](function(_0x290868){var _0x3a6e81=_0x3cb2be,_0x88b535=_0x290868&&_0x290868[_0x3a6e81('0x580')]?_0x290868[_0x3a6e81('0x580')]:[];return _0x590662['allowedItems']=_0x51538b()[_0x3a6e81('0x1246')](_0x88b535,function(_0x1cc42c){var _0x53527e=_0x3a6e81;return _0x51538b()[_0x53527e('0xe9e')](_0x590662['items'],{'id':_0x19e099[_0x53527e('0x26e8')](_0x53527e('0x178b'))||_0x590662[_0x53527e('0x224d')][_0x53527e('0x26cc')]?_0x1cc42c['id']:_0x1cc42c['resourceId']});}),_0x590662['items']['forEach'](function(_0x1198be){var _0x557084=_0x3a6e81,_0x5c315c=_0x51538b()[_0x557084('0xe9e')](_0x590662[_0x557084('0x11b9')],{'id':_0x1198be['id']});_0x19e099[_0x557084('0x26e8')](_0x557084('0x178b'))?_0x1198be[_0x557084('0x145d')]=!![]:_0x1198be[_0x557084('0x145d')]=typeof _0x5c315c!==_0x557084('0x1574')?!![]:![];}),_0x18819d();})[_0x3cb2be('0xaa5')](function(_0x2cb09a){var _0x4fac7b=_0x3cb2be,_0x41a3ae=_0x2cb09a&&_0x2cb09a[_0x4fac7b('0x580')]?_0x2cb09a[_0x4fac7b('0x580')]:[];_0x590662[_0x4fac7b('0xbf7')]=_0x51538b()[_0x4fac7b('0x1246')](_0x41a3ae,function(_0x1947b0){var _0x26cf9f=_0x4fac7b;return _0x51538b()[_0x26cf9f('0xe9e')](_0x590662[_0x26cf9f('0x1a30')],{'id':_0x1947b0['id']});}),_0x590662[_0x4fac7b('0x214a')]=angular[_0x4fac7b('0x20a')](_0x590662[_0x4fac7b('0xbf7')]),_0x590662[_0x4fac7b('0x1c23')][_0x4fac7b('0xbf7')]=_0x590662[_0x4fac7b('0xbf7')],_0x590662[_0x4fac7b('0x1c23')]['items']=_0x51538b()[_0x4fac7b('0x1ebb')](_0x590662['allowedItems'],_0x590662[_0x4fac7b('0x1c23')]['selectedItems'],'id'),_0x22662e();})['catch'](function(_0x59ee78){_0x5454b2(_0x59ee78);});});}function _0x2e5ba3(){return _0x20cad6(function(_0x3dc564,_0x436dee){var _0x4a2516=a0_0x1149;return _0x40c7d5[_0x4a2516('0x249a')][_0x4a2516('0x2122')]({'sectionId':_0x590662[_0x4a2516('0x224d')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x3a2824){_0x3dc564(_0x3a2824);})[_0x4a2516('0x253d')](function(_0x19a521){_0x436dee(_0x19a521);});});}function _0x18819d(){return _0x20cad6(function(_0x5b023e,_0x67ee0c){var _0x1d514e=a0_0x1149;return _0x40c7d5[_0x1d514e('0x1588')][_0x1d514e('0x1067')]({'id':_0x590662['queueCampaign']['id'],'fields':_0x1d514e('0x17fe'),'nolimit':!![]})[_0x1d514e('0x1dc2')][_0x1d514e('0xaa5')](function(_0x1e717f){_0x5b023e(_0x1e717f);})[_0x1d514e('0x253d')](function(_0x36faff){_0x67ee0c(_0x36faff);});});}function _0x4be83d(){return _0x20cad6(function(_0x5ad118,_0x48c42f){var _0x1dddf5=a0_0x1149;return _0x40c7d5[_0x1dddf5('0x257c')][_0x1dddf5('0x2122')]({'fields':_0x1dddf5('0x17fe'),'nolimit':!![]})[_0x1dddf5('0x1dc2')][_0x1dddf5('0xaa5')](function(_0x5a8494){_0x5ad118(_0x5a8494);})[_0x1dddf5('0x253d')](function(_0x40bbf1){_0x48c42f(_0x40bbf1);});});}function _0xcb52be(_0x1a2d01){return _0x20cad6(function(_0x4fe2dc,_0x252e14){var _0x5b5681=a0_0x1149;if(_0x51538b()[_0x5b5681('0x116b')](_0x1a2d01))_0x4fe2dc();else{var _0x5c745c=_0x51538b()[_0x5b5681('0x1246')](_0x1a2d01,function(_0x15e2c3){var _0x409c14=_0x5b5681;return{'id':_0x15e2c3['id'],'penalty':_0x51538b()[_0x409c14('0x2497')](_0x15e2c3[_0x409c14('0x2234')],_0x409c14('0x17b0'))};});return _0x40c7d5[_0x5b5681('0x1588')][_0x5b5681('0x2479')]({'id':_0x590662[_0x5b5681('0x239e')]['id'],'teams':_0x5c745c})['$promise'][_0x5b5681('0xaa5')](function(){_0x4fe2dc();})[_0x5b5681('0x253d')](function(_0x3517e4){_0x252e14(_0x3517e4);});}});}function _0x84cafe(_0x3da545){return _0x20cad6(function(_0x46c1c3,_0x427184){var _0x393342=a0_0x1149;_0x51538b()[_0x393342('0x116b')](_0x3da545)?_0x46c1c3():_0x40c7d5['voiceQueue'][_0x393342('0x24b0')]({'id':_0x590662['queueCampaign']['id'],'ids':_0x51538b()[_0x393342('0x1246')](_0x3da545,'id')})[_0x393342('0x1dc2')]['then'](function(){_0x46c1c3();})[_0x393342('0x253d')](function(_0x5eaf61){_0x427184(_0x5eaf61);});});}function _0x515920(){var _0x31bcf9=_0x5c9016,_0x474620=_0x51538b()[_0x31bcf9('0x1ebb')](_0x590662[_0x31bcf9('0x214a')],_0x590662[_0x31bcf9('0xbf7')],'id'),_0xc00173=_0x51538b()[_0x31bcf9('0x1ebb')](_0x590662[_0x31bcf9('0xbf7')],_0x590662[_0x31bcf9('0x214a')],'id');return _0x84cafe(_0x474620)['then'](function(){return _0xcb52be(_0xc00173);})[_0x31bcf9('0xaa5')](function(){var _0x34669e=_0x31bcf9;_0x590662['pendingChanges']=![],_0x590662['startingAllowedItems']=angular['copy'](_0x590662[_0x34669e('0x11b9')]),_0x590662[_0x34669e('0x214a')]=angular['copy'](_0x590662[_0x34669e('0xbf7')]),_0x45c877[_0x34669e('0xe10')]({'title':_0x34669e('0x2eb'),'msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x31bcf9('0x253d')](function(_0x1de2b4){var _0x1bf1d8=_0x31bcf9;_0x45c877['error']({'title':_0x1de2b4[_0x1bf1d8('0x2fa')]?_0x1bf1d8('0x16c2')+_0x1de2b4[_0x1bf1d8('0x2fa')]+_0x1bf1d8('0x169e')+_0x1de2b4[_0x1bf1d8('0x24df')]:_0x1bf1d8('0x2281'),'msg':_0x1de2b4[_0x1bf1d8('0x2fa')]?JSON[_0x1bf1d8('0xa48')](_0x1de2b4[_0x1bf1d8('0x10fd')]):_0x1de2b4['toString']()});});}function _0x474c02(){var _0x2031d3=_0x5c9016;_0x3c1984[_0x2031d3('0x1120')]();}}const _0x3fc888=_0x909f92,_0xedbb19=_0x4fb511['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html/clone-[chunkhash].html',_0x443d41=_0x4fb511['p']+_0x1a8446('0x1bbd'),_0x27e9d1=_0x4fb511['p']+_0x1a8446('0x10e4'),_0x17ac1f=_0x4fb511['p']+_0x1a8446('0xf3b'),_0x1410e4=_0x4fb511['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html/resetlist-[chunkhash].html';_0x59c3e4[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),'setting',_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x239e'),'userProfileSection'];function _0x59c3e4(_0x4f4f7e,_0x52ebd4,_0x332d78,_0x269f10,_0x5156b7,_0x4d5f33,_0xad5b89,_0x48674b,_0x2fc92f,_0x2bfc02,_0xc7d9b5,_0xd2dc29){var _0x51280d=_0x1a8446,_0x2bf1dd=this;_0x2bf1dd[_0x51280d('0x7fc')]=_0x2bfc02[_0x51280d('0xacc')](),_0x2bf1dd['license']=_0x4d5f33,_0x2bf1dd['setting']=_0xad5b89,_0x2bf1dd[_0x51280d('0x1d53')]=_0x2bf1dd[_0x51280d('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2bf1dd['location']=_0x52ebd4[_0x51280d('0x1cc2')]()+_0x51280d('0x356')+_0x52ebd4['host'](),_0x2bf1dd['queueCampaign']=_0xc7d9b5||_0x4f4f7e[_0x51280d('0x25cf')]['queueCampaign']||{},_0x2bf1dd['userProfileSection']=_0xd2dc29&&_0xd2dc29['count']==0x1?_0xd2dc29[_0x51280d('0x580')][0x0]:null,_0x2bf1dd[_0x51280d('0xada')]=_0x2bfc02[_0x51280d('0xffd')](_0x2bf1dd[_0x51280d('0x1a50')]?_0x2bf1dd[_0x51280d('0x1a50')]['crudPermissions']:null),_0x2bf1dd[_0x51280d('0x9f0')]={},_0x2bf1dd[_0x51280d('0xe5c')]=_0x4f4f7e[_0x51280d('0x25cf')][_0x51280d('0x25c2')]||0x0,_0x2bf1dd[_0x51280d('0x16c1')]=_0x197844,_0x2bf1dd[_0x51280d('0x54b')]=_0x24f035,_0x2bf1dd[_0x51280d('0x376')]=_0x356303,_0x2bf1dd[_0x51280d('0x158f')]=_0x48c3d2,_0x2bf1dd[_0x51280d('0x16a5')]=_0x31287b,_0x2bf1dd[_0x51280d('0xee1')]=_0x304f39,_0x2bf1dd[_0x51280d('0x7ba')]=_0x267797,_0x2bf1dd['alert']=_0x2fc92f['info'],_0x2bf1dd[_0x51280d('0xd08')]=_0x5c164f,_0x2bf1dd[_0x51280d('0x2743')]=_0x28e231,_0x2bfc02[_0x51280d('0x26e8')](_0x51280d('0x178b'))?_0x48674b[_0x51280d('0x1959')][_0x51280d('0x2122')]({'fields':_0x51280d('0x17fe'),'nolimit':_0x51280d('0x1c5c')})['$promise'][_0x51280d('0xaa5')](function(_0x1a1c6b){_0x2bf1dd['musiconholds']=_0x1a1c6b['rows']||[];})[_0x51280d('0x253d')](function(_0x54d258){var _0x2b4f56=_0x51280d;_0x2fc92f['error']({'title':_0x54d258['status']?_0x2b4f56('0x16c2')+_0x54d258[_0x2b4f56('0x2fa')]+_0x2b4f56('0x169e')+_0x54d258[_0x2b4f56('0x24df')]:'SYSTEM:GET_MUSICONHOLDS','msg':_0x54d258['data']?JSON[_0x2b4f56('0xa48')](_0x54d258['data']):_0x54d258[_0x2b4f56('0x684')]()});}):_0x48674b[_0x51280d('0x1959')][_0x51280d('0x2122')]({'fields':_0x51280d('0x17fe'),'nolimit':_0x51280d('0x1c5c')})[_0x51280d('0x1dc2')][_0x51280d('0xaa5')](function(_0x3beb66){var _0x437b26=_0x51280d;_0x2bf1dd['musiconholds']=_0x3beb66[_0x437b26('0x580')]||[];})[_0x51280d('0xaa5')](function(){var _0x15d98f=_0x51280d;return _0x48674b[_0x15d98f('0x1a50')]['get']({'userProfileId':_0x2bf1dd[_0x15d98f('0x7fc')]['userProfileId'],'sectionId':0x197})[_0x15d98f('0x1dc2')];})[_0x51280d('0xaa5')](function(_0x2eb868){var _0x557506=_0x51280d,_0x3d2b07=_0x2eb868&&_0x2eb868[_0x557506('0x580')]?_0x2eb868[_0x557506('0x580')][0x0]:null;if(!_0x3d2b07)return _0x48674b['voiceMusicOnHold'][_0x557506('0x2122')]({'fields':_0x557506('0x17fe'),'nolimit':_0x557506('0x1c5c'),'defaultEntry':0x1})['$promise'][_0x557506('0xaa5')](function(_0x436f09){var _0x352131=_0x557506;_0x2bf1dd[_0x352131('0x11b5')]=_0x436f09[_0x352131('0x580')]||[];});else{if(!_0x3d2b07[_0x557506('0x26cc')])return _0x48674b['userProfileResource'][_0x557506('0x2122')]({'sectionId':_0x3d2b07['id']})[_0x557506('0x1dc2')][_0x557506('0xaa5')](function(_0x2af78b){var _0xd948de=_0x557506,_0x35fde7=_0x51538b()['map'](_0x2af78b['rows'],function(_0x69f80e){var _0x3eee6a=a0_0x1149;return _0x51538b()[_0x3eee6a('0xe9e')](_0x2bf1dd['musiconholds'],{'id':_0x69f80e[_0x3eee6a('0xbcd')]});}),_0x4c6553=null;_0x2bf1dd[_0xd948de('0x239e')]&&(_0x4c6553=_0x51538b()[_0xd948de('0xe9e')](_0x2bf1dd[_0xd948de('0x11b5')],{'name':_0x2bf1dd[_0xd948de('0x239e')][_0xd948de('0x2665')]}));if(_0x4c6553&&!_0x51538b()[_0xd948de('0x2c2')](_0x35fde7,['id',_0x4c6553['id']])){var _0x21262f=_0x51538b()[_0xd948de('0xe9e')](_0x2bf1dd[_0xd948de('0x11b5')],{'id':_0x4c6553['id']});_0x21262f[_0xd948de('0x12eb')]=![],_0x35fde7[_0xd948de('0x1599')](_0x21262f);}_0x2bf1dd[_0xd948de('0x11b5')]=_0x35fde7;});}})[_0x51280d('0x253d')](function(_0x42916c){var _0xa2fcb4=_0x51280d;_0x2fc92f[_0xa2fcb4('0x187f')]({'title':_0x42916c['status']?_0xa2fcb4('0x16c2')+_0x42916c[_0xa2fcb4('0x2fa')]+_0xa2fcb4('0x169e')+_0x42916c[_0xa2fcb4('0x24df')]:_0xa2fcb4('0xc37'),'msg':_0x42916c[_0xa2fcb4('0x10fd')]?JSON['stringify'](_0x42916c[_0xa2fcb4('0x10fd')]):_0x42916c['toString']()});}),_0x2bfc02[_0x51280d('0x26e8')](_0x51280d('0x178b'))?_0x48674b[_0x51280d('0x1651')][_0x51280d('0x2122')]({'fields':_0x51280d('0x17fe'),'sort':_0x51280d('0x25d6')})['$promise'][_0x51280d('0xaa5')](function(_0x203925){var _0x198040=_0x51280d;_0x2bf1dd[_0x198040('0x1bc2')]=_0x203925[_0x198040('0x580')]||[];})[_0x51280d('0x253d')](function(_0x22b18a){var _0x27c386=_0x51280d;_0x2fc92f['error']({'title':_0x22b18a['status']?_0x27c386('0x16c2')+_0x22b18a[_0x27c386('0x2fa')]+'\x20-\x20'+_0x22b18a[_0x27c386('0x24df')]:'SYSTEM:GET_TRUNKS','msg':_0x22b18a[_0x27c386('0x10fd')]?JSON[_0x27c386('0xa48')](_0x22b18a[_0x27c386('0x10fd')]):_0x22b18a['toString']()});}):_0x48674b[_0x51280d('0x1651')][_0x51280d('0x2122')]({'fields':'id,name','sort':_0x51280d('0x25d6')})['$promise'][_0x51280d('0xaa5')](function(_0x538885){var _0x33df26=_0x51280d;_0x2bf1dd[_0x33df26('0x1bc2')]=_0x538885[_0x33df26('0x580')]||[];})[_0x51280d('0xaa5')](function(){var _0x5b7abe=_0x51280d;return _0x48674b['userProfileSection'][_0x5b7abe('0x2122')]({'userProfileId':_0x2bf1dd[_0x5b7abe('0x7fc')]['userProfileId'],'sectionId':0x3f3})['$promise'];})['then'](function(_0x12e7fd){var _0x1f7112=_0x51280d,_0x2d01fb=_0x12e7fd&&_0x12e7fd[_0x1f7112('0x580')]?_0x12e7fd[_0x1f7112('0x580')][0x0]:null;if(!_0x2d01fb){var _0x37b31e=[],_0x409aaf=null;_0x2bf1dd[_0x1f7112('0x239e')]&&(_0x409aaf=_0x51538b()[_0x1f7112('0xe9e')](_0x2bf1dd[_0x1f7112('0x1bc2')],{'id':Number(_0x2bf1dd[_0x1f7112('0x239e')][_0x1f7112('0x808')])}));for(var _0x5edeb0=0x0;_0x5edeb0<_0x2bf1dd[_0x1f7112('0x1bc2')][_0x1f7112('0x2587')];_0x5edeb0++){_0x409aaf&&_0x2bf1dd[_0x1f7112('0x1bc2')][_0x5edeb0]['id']===_0x409aaf['id']&&(_0x2bf1dd[_0x1f7112('0x1bc2')][_0x5edeb0]['canSelect']=![],_0x37b31e[_0x1f7112('0x1599')](_0x2bf1dd['trunks'][_0x5edeb0]));}_0x2bf1dd[_0x1f7112('0x1bc2')]=_0x37b31e;}else{if(!_0x2d01fb[_0x1f7112('0x26cc')])return _0x48674b['userProfileResource'][_0x1f7112('0x2122')]({'sectionId':_0x2d01fb['id']})[_0x1f7112('0x1dc2')]['then'](function(_0xb23455){var _0x23150a=_0x1f7112,_0x5c6ee7=_0x51538b()[_0x23150a('0x1246')](_0xb23455[_0x23150a('0x580')],function(_0x5bfd4f){return _0x51538b()['find'](_0x2bf1dd['trunks'],{'id':_0x5bfd4f['resourceId']});}),_0x4bf44d=null;_0x2bf1dd[_0x23150a('0x239e')]&&(_0x4bf44d=_0x51538b()[_0x23150a('0xe9e')](_0x2bf1dd[_0x23150a('0x1bc2')],{'id':Number(_0x2bf1dd[_0x23150a('0x239e')][_0x23150a('0x808')])}));if(_0x4bf44d&&!_0x51538b()[_0x23150a('0x2c2')](_0x5c6ee7,['id',_0x4bf44d['id']])){var _0x189442=_0x51538b()['find'](_0x2bf1dd[_0x23150a('0x1bc2')],{'id':_0x4bf44d['id']});_0x189442[_0x23150a('0x12eb')]=![],_0x5c6ee7[_0x23150a('0x1599')](_0x189442);}_0x2bf1dd['trunks']=_0x5c6ee7;});}})[_0x51280d('0x253d')](function(_0x1f85c5){var _0x52b0b1=_0x51280d;_0x2fc92f[_0x52b0b1('0x187f')]({'title':_0x1f85c5[_0x52b0b1('0x2fa')]?_0x52b0b1('0x16c2')+_0x1f85c5[_0x52b0b1('0x2fa')]+_0x52b0b1('0x169e')+_0x1f85c5[_0x52b0b1('0x24df')]:_0x52b0b1('0x117a'),'msg':_0x1f85c5['data']?JSON['stringify'](_0x1f85c5['data']):_0x1f85c5['toString']()});}),_0x2bfc02[_0x51280d('0x26e8')](_0x51280d('0x178b'))?_0x48674b[_0x51280d('0x37b')]['get']({'fields':'id,name','sort':_0x51280d('0x25d6')})[_0x51280d('0x1dc2')][_0x51280d('0xaa5')](function(_0x5271bc){var _0x17d331=_0x51280d;_0x2bf1dd['projects']=_0x5271bc[_0x17d331('0x580')]||[];})[_0x51280d('0x253d')](function(_0x1c1c61){var _0x1477e2=_0x51280d;_0x2fc92f[_0x1477e2('0x187f')]({'title':_0x1c1c61[_0x1477e2('0x2fa')]?_0x1477e2('0x16c2')+_0x1c1c61['status']+_0x1477e2('0x169e')+_0x1c1c61[_0x1477e2('0x24df')]:_0x1477e2('0x25d'),'msg':_0x1c1c61[_0x1477e2('0x10fd')]?JSON['stringify'](_0x1c1c61[_0x1477e2('0x10fd')]):_0x1c1c61['toString']()});}):_0x48674b['squareProject']['get']({'fields':_0x51280d('0x17fe'),'sort':_0x51280d('0x25d6')})[_0x51280d('0x1dc2')][_0x51280d('0xaa5')](function(_0x539126){var _0x1f67f4=_0x51280d;_0x2bf1dd[_0x1f67f4('0x8d1')]=_0x539126[_0x1f67f4('0x580')]||[];})[_0x51280d('0xaa5')](function(){var _0x24843b=_0x51280d;return _0x48674b[_0x24843b('0x1a50')]['get']({'userProfileId':_0x2bf1dd['currentUser'][_0x24843b('0x2168')],'sectionId':0x44f})[_0x24843b('0x1dc2')];})[_0x51280d('0xaa5')](function(_0xea916){var _0x1d1b33=_0x51280d,_0x2da74b=_0xea916&&_0xea916[_0x1d1b33('0x580')]?_0xea916['rows'][0x0]:null;if(!_0x2da74b){var _0x1e015a=[],_0x278213=null;_0x2bf1dd['queueCampaign']&&(_0x278213=_0x51538b()['find'](_0x2bf1dd[_0x1d1b33('0x8d1')],{'name':_0x2bf1dd[_0x1d1b33('0x239e')]['dialQueueProject']}));for(var _0x527a6a=0x0;_0x527a6a<_0x2bf1dd[_0x1d1b33('0x8d1')][_0x1d1b33('0x2587')];_0x527a6a++){_0x278213&&_0x2bf1dd['projects'][_0x527a6a]['id']===_0x278213['id']&&(_0x2bf1dd['projects'][_0x527a6a][_0x1d1b33('0x12eb')]=![],_0x1e015a[_0x1d1b33('0x1599')](_0x2bf1dd[_0x1d1b33('0x8d1')][_0x527a6a]));}_0x2bf1dd[_0x1d1b33('0x8d1')]=_0x1e015a;}else{if(!_0x2da74b[_0x1d1b33('0x26cc')])return _0x48674b[_0x1d1b33('0x249a')]['get']({'sectionId':_0x2da74b['id']})['$promise']['then'](function(_0x56cf68){var _0x543f3b=_0x1d1b33,_0x41a324=_0x51538b()[_0x543f3b('0x1246')](_0x56cf68[_0x543f3b('0x580')],function(_0x1f6186){var _0x4280c2=_0x543f3b;return _0x51538b()[_0x4280c2('0xe9e')](_0x2bf1dd[_0x4280c2('0x8d1')],{'id':_0x1f6186[_0x4280c2('0xbcd')]});}),_0x27960e=null;_0x2bf1dd['queueCampaign']&&(_0x27960e=_0x51538b()[_0x543f3b('0xe9e')](_0x2bf1dd['projects'],{'name':_0x2bf1dd[_0x543f3b('0x239e')][_0x543f3b('0x25a5')]}));if(_0x27960e&&!_0x51538b()[_0x543f3b('0x2c2')](_0x41a324,['id',_0x27960e['id']])){var _0x3b0ed8=_0x51538b()['find'](_0x2bf1dd[_0x543f3b('0x8d1')],{'id':_0x27960e['id']});_0x3b0ed8[_0x543f3b('0x12eb')]=![],_0x41a324[_0x543f3b('0x1599')](_0x3b0ed8);}_0x2bf1dd[_0x543f3b('0x8d1')]=_0x41a324;});}})[_0x51280d('0x253d')](function(_0x185126){var _0x1a734e=_0x51280d;_0x2fc92f[_0x1a734e('0x187f')]({'title':_0x185126['status']?'API:'+_0x185126[_0x1a734e('0x2fa')]+'\x20-\x20'+_0x185126['statusText']:_0x1a734e('0x19d7'),'msg':_0x185126[_0x1a734e('0x10fd')]?JSON[_0x1a734e('0xa48')](_0x185126[_0x1a734e('0x10fd')]):_0x185126[_0x1a734e('0x684')]()});}),_0x2bfc02[_0x51280d('0x26e8')](_0x51280d('0x178b'))?_0x48674b[_0x51280d('0x1c21')][_0x51280d('0x2122')]({'fields':_0x51280d('0x17fe'),'sort':_0x51280d('0x25d6'),'IntervalId':_0x51280d('0x1ed9')})[_0x51280d('0x1dc2')][_0x51280d('0xaa5')](function(_0x1c2cef){var _0x3db36d=_0x51280d;_0x2bf1dd[_0x3db36d('0x1c21')]=_0x1c2cef[_0x3db36d('0x580')]||[];})['catch'](function(_0x407b82){var _0x402991=_0x51280d;_0x2fc92f[_0x402991('0x187f')]({'title':_0x407b82['status']?_0x402991('0x16c2')+_0x407b82[_0x402991('0x2fa')]+_0x402991('0x169e')+_0x407b82['statusText']:_0x402991('0x11a8'),'msg':_0x407b82[_0x402991('0x10fd')]?JSON[_0x402991('0xa48')](_0x407b82[_0x402991('0x10fd')]):_0x407b82[_0x402991('0x684')]()});}):_0x48674b[_0x51280d('0x1c21')][_0x51280d('0x2122')]({'fields':_0x51280d('0x17fe'),'sort':_0x51280d('0x25d6'),'IntervalId':_0x51280d('0x1ed9')})['$promise'][_0x51280d('0xaa5')](function(_0x5792ff){var _0x891d43=_0x51280d;_0x2bf1dd[_0x891d43('0x1c21')]=_0x5792ff[_0x891d43('0x580')]||[];})[_0x51280d('0xaa5')](function(){var _0x4e5f80=_0x51280d;return _0x48674b[_0x4e5f80('0x1a50')][_0x4e5f80('0x2122')]({'userProfileId':_0x2bf1dd[_0x4e5f80('0x7fc')][_0x4e5f80('0x2168')],'sectionId':0x3ec})[_0x4e5f80('0x1dc2')];})[_0x51280d('0xaa5')](function(_0x1a0f85){var _0x427339=_0x51280d,_0x46cd9c=_0x1a0f85&&_0x1a0f85[_0x427339('0x580')]?_0x1a0f85[_0x427339('0x580')][0x0]:null;if(!_0x46cd9c){var _0x4fdc0e=[],_0x15bdb7=null;_0x2bf1dd[_0x427339('0x239e')]&&(_0x15bdb7=_0x51538b()[_0x427339('0xe9e')](_0x2bf1dd[_0x427339('0x1c21')],{'id':Number(_0x2bf1dd[_0x427339('0x239e')]['IntervalId'])}));for(var _0x4d4298=0x0;_0x4d4298<_0x2bf1dd[_0x427339('0x1c21')][_0x427339('0x2587')];_0x4d4298++){_0x15bdb7&&_0x2bf1dd[_0x427339('0x1c21')][_0x4d4298]['id']===_0x15bdb7['id']&&(_0x2bf1dd['interval'][_0x4d4298]['canSelect']=![],_0x4fdc0e[_0x427339('0x1599')](_0x2bf1dd[_0x427339('0x1c21')][_0x4d4298]));}_0x2bf1dd[_0x427339('0x1c21')]=_0x4fdc0e;}else{if(!_0x46cd9c['autoAssociation'])return _0x48674b[_0x427339('0x249a')]['get']({'sectionId':_0x46cd9c['id']})[_0x427339('0x1dc2')][_0x427339('0xaa5')](function(_0x47065f){var _0x3d7190=_0x427339,_0x46ffa8=_0x51538b()[_0x3d7190('0x1246')](_0x47065f[_0x3d7190('0x580')],function(_0x31985b){var _0x547866=_0x3d7190;return _0x51538b()['find'](_0x2bf1dd['interval'],{'id':_0x31985b[_0x547866('0xbcd')]});}),_0x5bcf57=null;_0x2bf1dd[_0x3d7190('0x239e')]&&(_0x5bcf57=_0x51538b()['find'](_0x2bf1dd[_0x3d7190('0x1c21')],{'id':Number(_0x2bf1dd[_0x3d7190('0x239e')][_0x3d7190('0x1f8c')])}));if(_0x5bcf57&&!_0x51538b()[_0x3d7190('0x2c2')](_0x46ffa8,['id',_0x5bcf57['id']])){var _0x12eea5=_0x51538b()['find'](_0x2bf1dd[_0x3d7190('0x1c21')],{'id':_0x5bcf57['id']});_0x12eea5['canSelect']=![],_0x46ffa8[_0x3d7190('0x1599')](_0x12eea5);}_0x2bf1dd['interval']=_0x46ffa8;});}})[_0x51280d('0x253d')](function(_0x34515a){var _0x2e77db=_0x51280d;_0x2fc92f[_0x2e77db('0x187f')]({'title':_0x34515a[_0x2e77db('0x2fa')]?_0x2e77db('0x16c2')+_0x34515a[_0x2e77db('0x2fa')]+_0x2e77db('0x169e')+_0x34515a['statusText']:_0x2e77db('0x2313'),'msg':_0x34515a['data']?JSON['stringify'](_0x34515a['data']):_0x34515a['toString']()});}),_0x2bfc02[_0x51280d('0x26e8')]('admin')?_0x48674b[_0x51280d('0x167c')][_0x51280d('0x2122')]({'fields':_0x51280d('0xb22'),'sort':'name','nolimit':_0x51280d('0x1c5c')})[_0x51280d('0x1dc2')][_0x51280d('0xaa5')](function(_0x5e9062){var _0x3ceedc=_0x51280d;_0x2bf1dd[_0x3ceedc('0x2457')]=_0x5e9062[_0x3ceedc('0x580')]||[];})[_0x51280d('0x253d')](function(_0x13b93c){var _0x106ea2=_0x51280d;_0x2fc92f[_0x106ea2('0x187f')]({'title':_0x13b93c[_0x106ea2('0x2fa')]?_0x106ea2('0x16c2')+_0x13b93c[_0x106ea2('0x2fa')]+_0x106ea2('0x169e')+_0x13b93c['statusText']:_0x106ea2('0xc8'),'msg':_0x13b93c['data']?JSON[_0x106ea2('0xa48')](_0x13b93c[_0x106ea2('0x10fd')]):_0x13b93c['toString']()});}):_0x48674b[_0x51280d('0x167c')][_0x51280d('0x2122')]({'fields':_0x51280d('0xb22'),'sort':_0x51280d('0x25d6'),'nolimit':_0x51280d('0x1c5c')})[_0x51280d('0x1dc2')][_0x51280d('0xaa5')](function(_0x4619f4){var _0x2aa5d6=_0x51280d;_0x2bf1dd[_0x2aa5d6('0x2457')]=_0x4619f4[_0x2aa5d6('0x580')]||[];})[_0x51280d('0xaa5')](function(){var _0x196fb4=_0x51280d;return _0x48674b[_0x196fb4('0x1a50')][_0x196fb4('0x2122')]({'userProfileId':_0x2bf1dd['currentUser'][_0x196fb4('0x2168')],'sectionId':0x3ed})[_0x196fb4('0x1dc2')];})[_0x51280d('0xaa5')](function(_0x324df7){var _0x78a916=_0x51280d,_0x342d49=_0x324df7&&_0x324df7[_0x78a916('0x580')]?_0x324df7[_0x78a916('0x580')][0x0]:null;if(!_0x342d49)_0x2bf1dd['pauses']=[];else{if(!_0x342d49[_0x78a916('0x26cc')])return _0x48674b[_0x78a916('0x249a')][_0x78a916('0x2122')]({'sectionId':_0x342d49['id']})['$promise'][_0x78a916('0xaa5')](function(_0x35aa5c){var _0x281fdf=_0x78a916,_0x36b987=_0x51538b()[_0x281fdf('0x1246')](_0x35aa5c[_0x281fdf('0x580')],function(_0x124a1e){var _0x4a0510=_0x281fdf;return _0x51538b()[_0x4a0510('0xe9e')](_0x2bf1dd[_0x4a0510('0x2457')],{'id':_0x124a1e[_0x4a0510('0xbcd')]});});_0x2bf1dd[_0x281fdf('0x2457')][_0x281fdf('0x15b5')](function(_0x35dba0){var _0x3ba4ec=_0x281fdf;!_0x51538b()[_0x3ba4ec('0x2c2')](_0x36b987,['id',_0x35dba0['id']])&&(_0x35dba0['canSelect']=![]),_0x36b987[_0x3ba4ec('0x1599')](_0x35dba0);}),_0x2bf1dd[_0x281fdf('0x2457')]=_0x36b987;});}})['catch'](function(_0x917c95){var _0x2f865d=_0x51280d;_0x2fc92f['error']({'title':_0x917c95[_0x2f865d('0x2fa')]?_0x2f865d('0x16c2')+_0x917c95[_0x2f865d('0x2fa')]+_0x2f865d('0x169e')+_0x917c95[_0x2f865d('0x24df')]:_0x2f865d('0xe71'),'msg':_0x917c95[_0x2f865d('0x10fd')]?JSON[_0x2f865d('0xa48')](_0x917c95[_0x2f865d('0x10fd')]):_0x917c95['toString']()});});function _0x197844(_0x345f35,_0x3c7c64){var _0x2cfe5d=_0x51280d;_0x332d78[_0x2cfe5d('0x1e6d')]({'controller':_0x2cfe5d('0x12f0'),'controllerAs':'vm','templateUrl':_0xedbb19,'parent':angular['element'](_0x269f10['body']),'targetEvent':_0x3c7c64,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x345f35,'queueCampaigns':_0x2bf1dd[_0x2cfe5d('0x23af')]?_0x2bf1dd[_0x2cfe5d('0x23af')][_0x2cfe5d('0x580')]:[],'crudPermissions':_0x2bf1dd[_0x2cfe5d('0xada')]}});}function _0x24f035(_0x144f01,_0x5e1365){var _0x3f63a4=_0x51280d;_0x332d78[_0x3f63a4('0x1e6d')]({'controller':_0x3f63a4('0x2022'),'controllerAs':'vm','templateUrl':_0x443d41,'parent':angular[_0x3f63a4('0x1aa8')](_0x269f10[_0x3f63a4('0x54c')]),'targetEvent':_0x5e1365,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x144f01,'queueCampaigns':_0x2bf1dd['queueCampaigns']?_0x2bf1dd[_0x3f63a4('0x23af')][_0x3f63a4('0x580')]:[],'crudPermissions':_0x2bf1dd['crudPermissions']}});}function _0x356303(_0x1dc0a0,_0x475b05){var _0x4fda1c=_0x51280d;_0x332d78[_0x4fda1c('0x1e6d')]({'controller':_0x4fda1c('0x21e5'),'controllerAs':'vm','templateUrl':_0x27e9d1,'parent':angular[_0x4fda1c('0x1aa8')](_0x269f10[_0x4fda1c('0x54c')]),'targetEvent':_0x475b05,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x1dc0a0,'queueCampaigns':_0x2bf1dd[_0x4fda1c('0x23af')]?_0x2bf1dd[_0x4fda1c('0x23af')][_0x4fda1c('0x580')]:[],'crudPermissions':_0x2bf1dd['crudPermissions']}});}function _0x48c3d2(_0x2a8078,_0x3286d2){var _0x460d3e=_0x51280d;_0x332d78[_0x460d3e('0x1e6d')]({'controller':_0x460d3e('0x1eee'),'controllerAs':'vm','templateUrl':_0x17ac1f,'parent':angular[_0x460d3e('0x1aa8')](_0x269f10[_0x460d3e('0x54c')]),'targetEvent':_0x3286d2,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2a8078,'queueCampaigns':_0x2bf1dd[_0x460d3e('0x23af')]?_0x2bf1dd[_0x460d3e('0x23af')][_0x460d3e('0x580')]:[],'crudPermissions':_0x2bf1dd['crudPermissions']}});}function _0x31287b(_0xfed1b8,_0x4c5813){var _0x827c8c=_0x51280d;_0x332d78['show']({'controller':_0x827c8c('0x2045'),'controllerAs':'vm','templateUrl':_0x36960d,'parent':angular['element'](_0x269f10['body']),'targetEvent':_0x4c5813,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xfed1b8,'queueCampaigns':_0x2bf1dd[_0x827c8c('0x23af')]?_0x2bf1dd[_0x827c8c('0x23af')][_0x827c8c('0x580')]:[],'crudPermissions':_0x2bf1dd['crudPermissions'],'realtime':![]}});}function _0x793b7d(_0x375bee,_0x333d7b){var _0x417f6e=_0x51280d,_0x104799=_0x333d7b['id'];_0x48674b[_0x417f6e('0x1588')]['removeLists']({'id':_0x375bee,'ids':_0x104799})[_0x417f6e('0x1dc2')][_0x417f6e('0xaa5')](function(){var _0x35c8fe=_0x417f6e;return _0x48674b[_0x35c8fe('0x1588')][_0x35c8fe('0x161d')]({'id':_0x375bee,'ids':_0x104799,'dialCheckDuplicateType':_0x35c8fe('0x158d')})[_0x35c8fe('0x1dc2')];})['then'](function(){var _0x1a26a8=_0x417f6e;_0x2fc92f[_0x1a26a8('0xe10')]({'title':_0x1a26a8('0x257e'),'msg':_0x1a26a8('0x1040')+_0x333d7b[_0x1a26a8('0x25d6')]+_0x1a26a8('0x16f5')});})[_0x417f6e('0x253d')](function(_0x5c632b){var _0x250253=_0x417f6e;_0x2fc92f[_0x250253('0x187f')]({'title':_0x5c632b['status']?'API:'+_0x5c632b[_0x250253('0x2fa')]+'\x20-\x20'+_0x5c632b[_0x250253('0x24df')]:_0x250253('0x1a90'),'msg':_0x5c632b[_0x250253('0x2fa')]?JSON['stringify'](_0x5c632b[_0x250253('0x10fd')]):_0x5c632b['toString']()});});}function _0x304f39(_0x54e8ae,_0x466b5b){var _0x10b9d2=_0x51280d;_0x48674b[_0x10b9d2('0x1588')][_0x10b9d2('0xcfd')]({'id':_0x54e8ae['id'],'fields':_0x10b9d2('0x17fe'),'nolimit':!![]})[_0x10b9d2('0x1dc2')][_0x10b9d2('0xaa5')](function(_0x395117){var _0x2a48d7=_0x10b9d2;if(_0x51538b()[_0x2a48d7('0x89a')](_0x395117[_0x2a48d7('0x580')])||_0x51538b()['isEmpty'](_0x395117[_0x2a48d7('0x580')]))_0x2fc92f[_0x2a48d7('0x3a1')]({'title':_0x2a48d7('0x1f71')});else{if(_0x395117[_0x2a48d7('0x580')][_0x2a48d7('0x2587')]===0x1){var _0x333eae=_0x332d78[_0x2a48d7('0x281e')]()[_0x2a48d7('0x110a')](_0x2a48d7('0x1ba7')+_0x395117['rows'][0x0]['name']+'\x20?')[_0x2a48d7('0x102e')](_0x2a48d7('0x389')+_0x395117[_0x2a48d7('0x580')][0x0][_0x2a48d7('0x25d6')]+''+_0x2a48d7('0x2211'))[_0x2a48d7('0x5b5')](_0x2a48d7('0x1e8a'))[_0x2a48d7('0x116d')](_0x466b5b)['ok']('OK')[_0x2a48d7('0x2030')]('CANCEL');_0x332d78[_0x2a48d7('0x1e6d')](_0x333eae)[_0x2a48d7('0xaa5')](function(){var _0x31924c=_0x2a48d7;_0x793b7d(_0x2bf1dd[_0x31924c('0x239e')]['id'],_0x395117[_0x31924c('0x580')][0x0]);});}else _0x332d78[_0x2a48d7('0x1e6d')]({'controller':_0x2a48d7('0xc4e'),'controllerAs':'vm','templateUrl':_0x1410e4,'parent':angular[_0x2a48d7('0x1aa8')](_0x269f10['body']),'targetEvent':_0x466b5b,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x54e8ae,'listsCampaign':_0x395117?_0x395117[_0x2a48d7('0x580')]:[]}});}})['catch'](function(_0x488982){var _0x4a4fec=_0x10b9d2;_0x2fc92f[_0x4a4fec('0x187f')]({'title':_0x488982[_0x4a4fec('0x2fa')]?'API:'+_0x488982[_0x4a4fec('0x2fa')]+_0x4a4fec('0x169e')+_0x488982[_0x4a4fec('0x24df')]:'SYSTEM:RESETLIST','msg':_0x488982[_0x4a4fec('0x2fa')]?JSON[_0x4a4fec('0xa48')](_0x488982[_0x4a4fec('0x10fd')]):_0x488982[_0x4a4fec('0x684')]()});});}function _0x267797(){var _0x45f42f=_0x51280d;if(_0x2bfc02['hasRole']('admin'))_0x4f4f7e['go']('app.motiondialer.realtime.queues',{});else return _0x48674b[_0x45f42f('0x1a50')][_0x45f42f('0x2122')]({'userProfileId':_0x2bfc02[_0x45f42f('0xacc')]()['userProfileId'],'sectionId':0x5e6})[_0x45f42f('0x1dc2')][_0x45f42f('0xaa5')](function(_0x32c139){var _0x27a893=_0x45f42f,_0x3c05fe=_0x32c139&&_0x32c139[_0x27a893('0x580')]?_0x32c139[_0x27a893('0x580')][0x0]:null;_0x3c05fe&&_0x3c05fe[_0x27a893('0xbd3')]?_0x4f4f7e['go'](_0x27a893('0xc3b'),{}):_0x2fc92f[_0x27a893('0x3a1')]({'title':_0x5156b7[_0x27a893('0x213f')](_0x27a893('0x1aab')),'msg':_0x5156b7[_0x27a893('0x213f')](_0x27a893('0x251c'))});})['catch'](function(_0x7557e7){var _0x8c22cb=_0x45f42f;_0x2fc92f[_0x8c22cb('0x187f')]({'title':_0x7557e7[_0x8c22cb('0x2fa')]?_0x8c22cb('0x16c2')+_0x7557e7[_0x8c22cb('0x2fa')]+_0x8c22cb('0x169e')+_0x7557e7[_0x8c22cb('0x24df')]:_0x8c22cb('0x21d5'),'msg':_0x7557e7[_0x8c22cb('0x2fa')]?JSON['stringify'](_0x7557e7[_0x8c22cb('0x10fd')]):_0x7557e7[_0x8c22cb('0x684')]()});});}function _0x5c164f(){var _0xc0624b=_0x51280d;_0x4f4f7e['go'](_0xc0624b('0x1033'),{},{'reload':_0xc0624b('0x1033')});}function _0x28e231(){var _0xa95980=_0x51280d;_0x48674b[_0xa95980('0x1588')][_0xa95980('0x264e')]({'id':_0x2bf1dd[_0xa95980('0x239e')]['id']},_0x2bf1dd[_0xa95980('0x239e')])[_0xa95980('0x1dc2')]['then'](function(){var _0x5f5ad9=_0xa95980;_0x2fc92f[_0x5f5ad9('0xe10')]({'title':_0x5f5ad9('0x12dc'),'msg':_0x2bf1dd[_0x5f5ad9('0x239e')][_0x5f5ad9('0x25d6')]?_0x2bf1dd[_0x5f5ad9('0x239e')]['name']+_0x5f5ad9('0x1734'):''});})[_0xa95980('0x253d')](function(_0x28f19a){var _0x172603=_0xa95980;_0x2fc92f[_0x172603('0x187f')]({'title':_0x28f19a[_0x172603('0x2fa')]?_0x172603('0x16c2')+_0x28f19a[_0x172603('0x2fa')]+_0x172603('0x169e')+_0x28f19a['statusText']:_0x172603('0x1646'),'msg':_0x28f19a['data']?JSON[_0x172603('0xa48')](_0x28f19a[_0x172603('0x10fd')]):_0x28f19a[_0x172603('0x684')]()});});}}const _0x2a885f=_0x59c3e4;_0x1e6bc8['$inject']=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),'$translate',_0x1a8446('0x23af'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x1e6bc8(_0x5c782e,_0x3cbbfb,_0x5bda9,_0x3d5006,_0x3c73a8,_0x135dc1,_0x75668c,_0x31810d,_0x11e005,_0x12f359,_0x2ab0be,_0x532c10,_0x19daf2,_0x4c841e,_0x4f9960,_0x4b8914,_0x4ef73f){var _0x739037=_0x1a8446,_0x950281=this;_0x950281[_0x739037('0x1202')]=_0x4b8914,_0x950281['setting']=_0x4ef73f,_0x950281[_0x739037('0x7fc')]=_0x4f9960['getCurrentUser'](),_0x950281[_0x739037('0x23af')]=_0x11e005||{'count':0x0,'rows':[]},_0x950281[_0x739037('0x1e97')]=_0x12f359,_0x950281[_0x739037('0x1a50')]=_0x2ab0be&&_0x2ab0be[_0x739037('0xd15')]==0x1?_0x2ab0be[_0x739037('0x580')][0x0]:null,_0x950281[_0x739037('0xada')]=_0x4f9960[_0x739037('0xffd')](_0x950281['userProfileSection']?_0x950281[_0x739037('0x1a50')][_0x739037('0xada')]:null),_0x950281['table']='queueCampaigns',_0x950281['listOrder']='',_0x950281[_0x739037('0x8cc')]=null,_0x950281[_0x739037('0x6b')]=[],_0x950281[_0x739037('0x582')]={'fields':'createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold','type':_0x739037('0x19d1'),'sort':'-updatedAt','channel':'voice','limit':0xa,'page':0x1},_0x950281[_0x739037('0x1913')]=_0x51538b()['keyBy']([{'option':_0x739037('0x1b06'),'value':'\x27always\x27'},{'option':_0x739037('0xdb4'),'value':'\x27never\x27'},{'option':_0x739037('0x1bd5'),'value':_0x739037('0x382')}],function(_0x17b7f3){var _0x1c0296=_0x739037;return _0x51538b()[_0x1c0296('0x170d')](_0x17b7f3[_0x1c0296('0x12f4')],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0x2544')]=_0x51538b()[_0x739037('0x184a')]([{'option':_0x739037('0x1b84'),'value':'\x27all\x27'},{'option':'No','value':'\x27no\x27'}],function(_0x47d32f){var _0x4e4893=_0x739037;return _0x51538b()[_0x4e4893('0x170d')](_0x47d32f['value'],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0xf88')]=_0x51538b()[_0x739037('0x184a')]([{'option':'Yes','value':_0x739037('0x14cf')},{'option':'No','value':_0x739037('0x539')}],function(_0x583a85){var _0x369f96=_0x739037;return _0x51538b()[_0x369f96('0x170d')](_0x583a85[_0x369f96('0x12f4')],new RegExp('\x27','g'),'');}),_0x950281['arraytimeoutrestart']=_0x51538b()['keyBy']([{'option':_0x739037('0x1b84'),'value':_0x739037('0x14cf')},{'option':'No','value':'\x27no\x27'}],function(_0x4e4371){var _0x379ecb=_0x739037;return _0x51538b()[_0x379ecb('0x170d')](_0x4e4371[_0x379ecb('0x12f4')],new RegExp('\x27','g'),'');}),_0x950281['arraymonitor_format']=_0x51538b()[_0x739037('0x184a')]([{'option':_0x739037('0x1b0b'),'value':'\x27\x27'},{'option':_0x739037('0x2715'),'value':'\x27wav\x27'},{'option':'wav49','value':'\x27wav49\x27'},{'option':_0x739037('0x2172'),'value':_0x739037('0x3cc')}],function(_0x641c7d){var _0x267eee=_0x739037;return _0x51538b()[_0x267eee('0x170d')](_0x641c7d['value'],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0xf40')]=_0x51538b()['keyBy']([{'option':_0x739037('0x1b84'),'value':_0x739037('0x14cf')},{'option':'No','value':'\x27no\x27'}],function(_0x435240){var _0x1efdb3=_0x739037;return _0x51538b()['replace'](_0x435240[_0x1efdb3('0x12f4')],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0x2db')]=_0x51538b()[_0x739037('0x184a')]([{'option':_0x739037('0x1b84'),'value':'\x27yes\x27'},{'option':'No','value':_0x739037('0x539')}],function(_0x47a8ab){var _0x46c2d3=_0x739037;return _0x51538b()['replace'](_0x47a8ab[_0x46c2d3('0x12f4')],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0x2691')]=_0x51538b()[_0x739037('0x184a')]([{'option':_0x739037('0x1b84'),'value':_0x739037('0x14cf')},{'option':'No','value':_0x739037('0x539')}],function(_0x30ae31){var _0x3d37fe=_0x739037;return _0x51538b()[_0x3d37fe('0x170d')](_0x30ae31['value'],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0xc3c')]=_0x51538b()[_0x739037('0x184a')]([{'option':'DESC','value':_0x739037('0x1438')},{'option':_0x739037('0x257'),'value':_0x739037('0x138c')}],function(_0x4bb70d){var _0x40c924=_0x739037;return _0x51538b()[_0x40c924('0x170d')](_0x4bb70d['value'],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0x1a04')]=_0x51538b()['keyBy']([{'option':_0x739037('0xaf7'),'value':_0x739037('0x251b')},{'option':_0x739037('0x4c5'),'value':'\x27power\x27'},{'option':_0x739037('0xf8c'),'value':'\x27predictive\x27'},{'option':_0x739037('0x1a13'),'value':'\x27preview\x27'},{'option':_0x739037('0x2df'),'value':_0x739037('0x1c63')}],function(_0x518922){return _0x51538b()['replace'](_0x518922['value'],new RegExp('\x27','g'),'');}),_0x950281['arraydialPredictiveOptimization']=_0x51538b()[_0x739037('0x184a')]([{'option':'AgentBusyFactor','value':_0x739037('0x2584')},{'option':'DropRate','value':_0x739037('0x15ea')}],function(_0xec7a39){var _0x289dc5=_0x739037;return _0x51538b()[_0x289dc5('0x170d')](_0xec7a39[_0x289dc5('0x12f4')],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0x2501')]=_0x51538b()[_0x739037('0x184a')]([{'option':_0x739037('0x18e6'),'value':_0x739037('0x2576')},{'option':_0x739037('0x1f29'),'value':'\x27roundrobin\x27','ngIf':_0x739037('0x1c5e')},{'option':_0x739037('0xeaf'),'value':_0x739037('0x213'),'ngIf':_0x739037('0x9d5')},{'option':_0x739037('0x1c24'),'value':'\x27fewestcalls\x27','ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':_0x739037('0xd4b'),'value':_0x739037('0x20f5'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':_0x739037('0x27a3'),'value':'\x27linear\x27','ngIf':_0x739037('0x9d5')},{'option':_0x739037('0x898'),'value':_0x739037('0x1131'),'ngIf':_0x739037('0x9d5')}],function(_0x324fee){var _0x562808=_0x739037;return _0x51538b()[_0x562808('0x170d')](_0x324fee[_0x562808('0x12f4')],new RegExp('\x27','g'),'');}),_0x950281[_0x739037('0x1927')]=_0x170800,_0x950281[_0x739037('0x16c1')]=_0x26c475,_0x950281[_0x739037('0x54b')]=_0x5424d8,_0x950281['blacklistadddialog']=_0x188908,_0x950281[_0x739037('0x158f')]=_0x375209,_0x950281[_0x739037('0x16a5')]=_0x1f1cea,_0x950281['deleteconfirm']=_0x2b3a96,_0x950281[_0x739037('0x2389')]=_0x50b3d6,_0x950281['success']=_0x6f5a2c,_0x950281['getQueueCampaigns']=_0x2b4d24,_0x950281[_0x739037('0x256b')]=_0x242ecb,_0x950281[_0x739037('0x685')]=_0x507e05,_0x950281[_0x739037('0x1f24')]=_0x623c6d,_0x950281[_0x739037('0x14cb')]=_0x573da4,_0x950281[_0x739037('0x65d')]=_0x13e391,_0x950281[_0x739037('0x212e')]=_0x588d66,_0x4f9960[_0x739037('0x26e8')](_0x739037('0x178b'))?_0x532c10[_0x739037('0x1651')]['get']({'fields':_0x739037('0x17fe'),'sort':'name'})['$promise'][_0x739037('0xaa5')](function(_0x67a746){var _0x5ed6bd=_0x739037;_0x950281[_0x5ed6bd('0x1bc2')]=_0x67a746[_0x5ed6bd('0x580')]||[];})['catch'](function(_0xc0ceb5){var _0xcfe3c6=_0x739037;_0x4c841e[_0xcfe3c6('0x187f')]({'title':_0xc0ceb5[_0xcfe3c6('0x2fa')]?_0xcfe3c6('0x16c2')+_0xc0ceb5[_0xcfe3c6('0x2fa')]+'\x20-\x20'+_0xc0ceb5[_0xcfe3c6('0x24df')]:_0xcfe3c6('0x298'),'msg':_0xc0ceb5[_0xcfe3c6('0x10fd')]?JSON['stringify'](_0xc0ceb5[_0xcfe3c6('0x10fd')]):_0xc0ceb5[_0xcfe3c6('0x684')]()});}):_0x532c10[_0x739037('0x1651')][_0x739037('0x2122')]({'fields':'id,name','sort':_0x739037('0x25d6')})[_0x739037('0x1dc2')]['then'](function(_0xb16fb1){var _0x196441=_0x739037;_0x950281[_0x196441('0x1bc2')]=_0xb16fb1[_0x196441('0x580')]||[];})['then'](function(){var _0x26885c=_0x739037;return _0x532c10[_0x26885c('0x1a50')]['get']({'userProfileId':_0x950281[_0x26885c('0x7fc')][_0x26885c('0x2168')],'sectionId':0x3f3})[_0x26885c('0x1dc2')];})['then'](function(_0x528469){var _0xb5a5df=_0x739037,_0xe05fc9=_0x528469&&_0x528469[_0xb5a5df('0x580')]?_0x528469[_0xb5a5df('0x580')][0x0]:null;if(!_0xe05fc9){var _0x3e8902=[],_0x4a6f93=[];_0x950281[_0xb5a5df('0x23af')][_0xb5a5df('0x580')]['forEach'](function(_0x3985cc){var _0x598b7b=_0xb5a5df,_0x4e85c2=_0x51538b()[_0x598b7b('0xe9e')](_0x950281[_0x598b7b('0x1bc2')],{'id':Number(_0x3985cc[_0x598b7b('0x808')])});_0x4a6f93[_0x598b7b('0x1599')](_0x4e85c2);});for(var _0x3cc881=0x0;_0x3cc881<_0x950281[_0xb5a5df('0x1bc2')]['length'];_0x3cc881++){var _0x3ac3e7=_0x51538b()[_0xb5a5df('0x2c2')](_0x4a6f93,{'id':_0x950281[_0xb5a5df('0x1bc2')][_0x3cc881]['id']});_0x3ac3e7&&(_0x950281[_0xb5a5df('0x1bc2')][_0x3cc881][_0xb5a5df('0x12eb')]=![],_0x3e8902[_0xb5a5df('0x1599')](_0x950281[_0xb5a5df('0x1bc2')][_0x3cc881]));}_0x950281[_0xb5a5df('0x1bc2')]=_0x3e8902;}else{if(!_0xe05fc9[_0xb5a5df('0x26cc')])return _0x532c10[_0xb5a5df('0x249a')][_0xb5a5df('0x2122')]({'sectionId':_0xe05fc9['id']})[_0xb5a5df('0x1dc2')][_0xb5a5df('0xaa5')](function(_0x2f3933){var _0x5014fe=_0xb5a5df,_0x23dcce=_0x51538b()['map'](_0x2f3933[_0x5014fe('0x580')],function(_0x440033){var _0x135073=_0x5014fe;return _0x51538b()[_0x135073('0xe9e')](_0x950281[_0x135073('0x1bc2')],{'id':_0x440033[_0x135073('0xbcd')]});}),_0x3d7d40=null;_0x3d7d40=[],_0x950281[_0x5014fe('0x23af')][_0x5014fe('0x580')][_0x5014fe('0x15b5')](function(_0x17ea9b){var _0x2e2aaa=_0x5014fe,_0x41330b=_0x51538b()['find'](_0x950281[_0x2e2aaa('0x1bc2')],{'id':Number(_0x17ea9b['TrunkId'])});_0x3d7d40[_0x2e2aaa('0x1599')](_0x41330b);}),!_0x51538b()[_0x5014fe('0x116b')](_0x3d7d40)&&_0x3d7d40[_0x5014fe('0x15b5')](function(_0x2a167e){var _0x473929=_0x5014fe;if(!_0x51538b()[_0x473929('0x2c2')](_0x23dcce,['id',_0x2a167e['id']])){var _0x4d6815=_0x51538b()['find'](_0x950281[_0x473929('0x1bc2')],{'id':_0x2a167e['id']});_0x4d6815['canSelect']=![],_0x23dcce[_0x473929('0x1599')](_0x4d6815);}}),_0x950281[_0x5014fe('0x1bc2')]=_0x23dcce;});}})[_0x739037('0x253d')](function(_0x403835){var _0x390bed=_0x739037;_0x4c841e[_0x390bed('0x187f')]({'title':_0x403835['status']?_0x390bed('0x16c2')+_0x403835[_0x390bed('0x2fa')]+_0x390bed('0x169e')+_0x403835[_0x390bed('0x24df')]:_0x390bed('0x117a'),'msg':_0x403835[_0x390bed('0x10fd')]?JSON['stringify'](_0x403835[_0x390bed('0x10fd')]):_0x403835[_0x390bed('0x684')]()});}),_0x4f9960[_0x739037('0x26e8')](_0x739037('0x178b'))?_0x532c10['interval']['get']({'fields':_0x739037('0x17fe'),'sort':_0x739037('0x25d6'),'IntervalId':'null'})['$promise'][_0x739037('0xaa5')](function(_0x4f6a1e){var _0x229a94=_0x739037;_0x950281['interval']=_0x4f6a1e[_0x229a94('0x580')]||[];})[_0x739037('0x253d')](function(_0x342372){var _0x30fd84=_0x739037;_0x4c841e[_0x30fd84('0x187f')]({'title':_0x342372['status']?_0x30fd84('0x16c2')+_0x342372['status']+_0x30fd84('0x169e')+_0x342372['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x342372[_0x30fd84('0x10fd')]?JSON[_0x30fd84('0xa48')](_0x342372[_0x30fd84('0x10fd')]):_0x342372['toString']()});}):_0x532c10['interval'][_0x739037('0x2122')]({'fields':'id,name','sort':_0x739037('0x25d6'),'IntervalId':_0x739037('0x1ed9')})[_0x739037('0x1dc2')][_0x739037('0xaa5')](function(_0x2cbe66){var _0x390e36=_0x739037;_0x950281[_0x390e36('0x1c21')]=_0x2cbe66[_0x390e36('0x580')]||[];})[_0x739037('0xaa5')](function(){var _0x237e60=_0x739037;return _0x532c10[_0x237e60('0x1a50')][_0x237e60('0x2122')]({'userProfileId':_0x950281['currentUser'][_0x237e60('0x2168')],'sectionId':0x3ec})[_0x237e60('0x1dc2')];})[_0x739037('0xaa5')](function(_0x27aa08){var _0x37a586=_0x739037,_0x4ea08b=_0x27aa08&&_0x27aa08[_0x37a586('0x580')]?_0x27aa08[_0x37a586('0x580')][0x0]:null;if(!_0x4ea08b){var _0x566bd7=[],_0x8f2ce8=null;_0x950281[_0x37a586('0x239e')]&&(_0x8f2ce8=_0x51538b()['find'](_0x950281[_0x37a586('0x1c21')],{'id':Number(_0x950281[_0x37a586('0x239e')][_0x37a586('0x1f8c')])}));for(var _0x2c4616=0x0;_0x2c4616<_0x950281[_0x37a586('0x1c21')][_0x37a586('0x2587')];_0x2c4616++){_0x8f2ce8&&_0x950281[_0x37a586('0x1c21')][_0x2c4616]['id']===_0x8f2ce8['id']&&(_0x950281[_0x37a586('0x1c21')][_0x2c4616]['canSelect']=![],_0x566bd7[_0x37a586('0x1599')](_0x950281[_0x37a586('0x1c21')][_0x2c4616]));}_0x950281['interval']=_0x566bd7;}else{if(!_0x4ea08b[_0x37a586('0x26cc')])return _0x532c10[_0x37a586('0x249a')][_0x37a586('0x2122')]({'sectionId':_0x4ea08b['id']})[_0x37a586('0x1dc2')][_0x37a586('0xaa5')](function(_0x35c6d0){var _0x25dae3=_0x37a586,_0x14bd76=_0x51538b()['map'](_0x35c6d0[_0x25dae3('0x580')],function(_0x5c2a9c){var _0x4fb743=_0x25dae3;return _0x51538b()[_0x4fb743('0xe9e')](_0x950281[_0x4fb743('0x1c21')],{'id':_0x5c2a9c[_0x4fb743('0xbcd')]});}),_0x3f66da=null;_0x950281['queueCampaign']&&(_0x3f66da=_0x51538b()['find'](_0x950281[_0x25dae3('0x1c21')],{'id':Number(_0x950281[_0x25dae3('0x239e')][_0x25dae3('0x1f8c')])}));if(_0x3f66da&&!_0x51538b()[_0x25dae3('0x2c2')](_0x14bd76,['id',_0x3f66da['id']])){var _0x4f6369=_0x51538b()[_0x25dae3('0xe9e')](_0x950281[_0x25dae3('0x1c21')],{'id':_0x3f66da['id']});_0x4f6369[_0x25dae3('0x12eb')]=![],_0x14bd76[_0x25dae3('0x1599')](_0x4f6369);}_0x950281['interval']=_0x14bd76;});}})[_0x739037('0x253d')](function(_0x535812){var _0x282211=_0x739037;_0x4c841e[_0x282211('0x187f')]({'title':_0x535812[_0x282211('0x2fa')]?_0x282211('0x16c2')+_0x535812['status']+_0x282211('0x169e')+_0x535812[_0x282211('0x24df')]:'SYSTEM:GETinterval','msg':_0x535812[_0x282211('0x10fd')]?JSON[_0x282211('0xa48')](_0x535812['data']):_0x535812[_0x282211('0x684')]()});});function _0x170800(_0x4bd45a){var _0xcebe1c=_0x739037;_0x5bda9['go'](_0xcebe1c('0xc26'),{'id':_0x4bd45a['id'],'queueCampaign':_0x4bd45a,'crudPermissions':_0x950281[_0xcebe1c('0xada')]});}function _0x26c475(_0x4e4c41,_0x1b4f9d){var _0x2b2eda=_0x739037;_0x3c73a8[_0x2b2eda('0x1e6d')]({'controller':_0x2b2eda('0x12f0'),'controllerAs':'vm','templateUrl':_0xedbb19,'parent':angular['element'](_0x135dc1['body']),'targetEvent':_0x1b4f9d,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4e4c41,'queueCampaigns':_0x950281[_0x2b2eda('0x23af')]?_0x950281[_0x2b2eda('0x23af')][_0x2b2eda('0x580')]:[],'crudPermissions':_0x950281[_0x2b2eda('0xada')]}});}function _0x5424d8(_0x4d588a,_0x19ffb2){var _0x4dbebc=_0x739037;_0x3c73a8[_0x4dbebc('0x1e6d')]({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0x443d41,'parent':angular[_0x4dbebc('0x1aa8')](_0x135dc1[_0x4dbebc('0x54c')]),'targetEvent':_0x19ffb2,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4d588a,'queueCampaigns':_0x950281[_0x4dbebc('0x23af')]?_0x950281[_0x4dbebc('0x23af')][_0x4dbebc('0x580')]:[],'crudPermissions':_0x950281[_0x4dbebc('0xada')]}});}function _0x188908(_0x44ce23,_0x4733b1){var _0x3071cf=_0x739037;_0x3c73a8[_0x3071cf('0x1e6d')]({'controller':_0x3071cf('0x21e5'),'controllerAs':'vm','templateUrl':_0x27e9d1,'parent':angular[_0x3071cf('0x1aa8')](_0x135dc1[_0x3071cf('0x54c')]),'targetEvent':_0x4733b1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x44ce23,'queueCampaigns':_0x950281['queueCampaigns']?_0x950281[_0x3071cf('0x23af')][_0x3071cf('0x580')]:[],'crudPermissions':_0x950281[_0x3071cf('0xada')]}});}function _0x375209(_0x1eeba4,_0x176dcf){var _0xba9761=_0x739037;_0x3c73a8[_0xba9761('0x1e6d')]({'controller':_0xba9761('0x1eee'),'controllerAs':'vm','templateUrl':_0x17ac1f,'parent':angular[_0xba9761('0x1aa8')](_0x135dc1[_0xba9761('0x54c')]),'targetEvent':_0x176dcf,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x1eeba4,'queueCampaigns':_0x950281[_0xba9761('0x23af')]?_0x950281[_0xba9761('0x23af')][_0xba9761('0x580')]:[],'crudPermissions':_0x950281['crudPermissions']}});}function _0x1f1cea(_0x59d6ab,_0x17b36d){var _0x27ba75=_0x739037;_0x3c73a8['show']({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x36960d,'parent':angular[_0x27ba75('0x1aa8')](_0x135dc1[_0x27ba75('0x54c')]),'targetEvent':_0x17b36d,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x59d6ab,'queueCampaigns':_0x950281['queueCampaigns']?_0x950281[_0x27ba75('0x23af')]['rows']:[],'crudPermissions':_0x950281[_0x27ba75('0xada')],'realtime':![]}});}function _0x2b3a96(_0x5af67b,_0x2673d8){var _0x5679cc=_0x739037,_0x55ed29=_0x3c73a8[_0x5679cc('0x281e')]()[_0x5679cc('0x110a')](_0x5679cc('0x88d')+_0x51538b()[_0x5679cc('0x196a')](_0x5679cc('0x239e'))+'?')[_0x5679cc('0x102e')](_0x5679cc('0x389')+(_0x5af67b['name']||_0x5679cc('0x239e'))+_0x5679cc('0x697')+_0x5679cc('0x210d'))[_0x5679cc('0x5b5')]('delete\x20queueCampaign')[_0x5679cc('0x116d')](_0x2673d8)['ok']('OK')['cancel']('CANCEL');_0x3c73a8[_0x5679cc('0x1e6d')](_0x55ed29)[_0x5679cc('0xaa5')](function(){_0x507e05(_0x5af67b);},function(){var _0x585fbe=_0x5679cc;console[_0x585fbe('0x18d5')](_0x585fbe('0x2410'));});}function _0x50b3d6(){var _0xc0aa68=_0x739037;if(_0x4f9960[_0xc0aa68('0x26e8')]('admin'))_0x5bda9['go'](_0xc0aa68('0xc3b'),{});else return _0x532c10['userProfileSection']['get']({'userProfileId':_0x4f9960['getCurrentUser']()['userProfileId'],'sectionId':0x5e6})[_0xc0aa68('0x1dc2')][_0xc0aa68('0xaa5')](function(_0x4033b){var _0x40c6e7=_0xc0aa68,_0x40b939=_0x4033b&&_0x4033b[_0x40c6e7('0x580')]?_0x4033b[_0x40c6e7('0x580')][0x0]:null;_0x40b939&&_0x40b939[_0x40c6e7('0xbd3')]?_0x5bda9['go'](_0x40c6e7('0xc3b'),{}):_0x4c841e[_0x40c6e7('0x3a1')]({'title':_0x31810d[_0x40c6e7('0x213f')](_0x40c6e7('0x1aab')),'msg':_0x31810d[_0x40c6e7('0x213f')](_0x40c6e7('0x251c'))});})[_0xc0aa68('0x253d')](function(_0x10eac3){var _0x3f8b5e=_0xc0aa68;_0x4c841e[_0x3f8b5e('0x187f')]({'title':_0x10eac3['status']?_0x3f8b5e('0x16c2')+_0x10eac3['status']+_0x3f8b5e('0x169e')+_0x10eac3[_0x3f8b5e('0x24df')]:_0x3f8b5e('0x21d5'),'msg':_0x10eac3[_0x3f8b5e('0x2fa')]?JSON[_0x3f8b5e('0xa48')](_0x10eac3[_0x3f8b5e('0x10fd')]):_0x10eac3['toString']()});});}var _0x3a4eb3=!![],_0x234ae7=0x1;_0x5c782e[_0x739037('0x1ccf')](_0x739037('0x1788'),function(_0x16a8ba,_0xb21d5f){var _0x554366=_0x739037;_0x3a4eb3?_0x75668c(function(){_0x3a4eb3=![];}):(!_0xb21d5f&&(_0x234ae7=_0x950281[_0x554366('0x582')]['page']),_0x16a8ba!==_0xb21d5f&&(_0x950281[_0x554366('0x582')][_0x554366('0x41')]=0x1),!_0x16a8ba&&(_0x950281[_0x554366('0x582')][_0x554366('0x41')]=_0x234ae7),_0x950281[_0x554366('0x9a1')]());});function _0x6f5a2c(_0x4138e8){var _0x7193bc=_0x739037;_0x950281[_0x7193bc('0x23af')]=_0x4138e8||{'count':0x0,'rows':[]};}function _0x2b4d24(){var _0x1d00b6=_0x739037;_0x950281['query'][_0x1d00b6('0x8b1')]=(_0x950281[_0x1d00b6('0x582')][_0x1d00b6('0x41')]-0x1)*_0x950281[_0x1d00b6('0x582')][_0x1d00b6('0xf4d')],_0x4f9960[_0x1d00b6('0x26e8')](_0x1d00b6('0x178b'))?_0x950281[_0x1d00b6('0x159a')]=_0x532c10[_0x1d00b6('0x1588')][_0x1d00b6('0x2122')](_0x950281[_0x1d00b6('0x582')],_0x6f5a2c)[_0x1d00b6('0x1dc2')]:(_0x950281[_0x1d00b6('0x582')]['id']=_0x950281[_0x1d00b6('0x1e97')]['id'],_0x950281['query'][_0x1d00b6('0x224d')]=_0x1d00b6('0x3bf'),_0x950281['promise']=_0x532c10['userProfile']['getResources'](_0x950281[_0x1d00b6('0x582')],_0x6f5a2c)['$promise']);}function _0x242ecb(_0xa08cb,_0x40950b){var _0x442a54=_0x739037;_0x3c73a8[_0x442a54('0x1e6d')]({'controller':_0x442a54('0x47f'),'controllerAs':'vm','templateUrl':_0x3e1747,'parent':angular['element'](_0x135dc1[_0x442a54('0x54c')]),'targetEvent':_0xa08cb,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x40950b,'queueCampaigns':_0x950281[_0x442a54('0x23af')]['rows'],'license':_0x950281['license'],'setting':_0x950281['setting'],'crudPermissions':_0x950281['crudPermissions']}});}function _0x507e05(_0x4ed718){var _0x508612=_0x739037;_0x532c10[_0x508612('0x1588')][_0x508612('0x926')]({'id':_0x4ed718['id']})[_0x508612('0x1dc2')][_0x508612('0xaa5')](function(){var _0x3a323f=_0x508612;_0x51538b()['remove'](_0x950281['queueCampaigns']['rows'],{'id':_0x4ed718['id']}),_0x950281[_0x3a323f('0x23af')][_0x3a323f('0xd15')]-=0x1,!_0x950281['queueCampaigns'][_0x3a323f('0x580')][_0x3a323f('0x2587')]&&_0x950281[_0x3a323f('0x9a1')](),_0x4c841e['success']({'title':_0x51538b()[_0x3a323f('0x196a')]('QueueCampaign')+_0x3a323f('0x8bb'),'msg':_0x4ed718[_0x3a323f('0x25d6')]?_0x4ed718[_0x3a323f('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x508612('0x253d')](function(_0x4f7fbd){var _0x152c3e=_0x508612;if(_0x4f7fbd[_0x152c3e('0x10fd')]&&_0x4f7fbd[_0x152c3e('0x10fd')][_0x152c3e('0x4c6')]&&_0x4f7fbd[_0x152c3e('0x10fd')]['errors'][_0x152c3e('0x2587')]){_0x950281[_0x152c3e('0x4c6')]=_0x4f7fbd[_0x152c3e('0x10fd')][_0x152c3e('0x4c6')]||[{'message':_0x4f7fbd['toString'](),'type':_0x152c3e('0xa9c')}];for(var _0x2789ce=0x0;_0x2789ce<_0x4f7fbd['data'][_0x152c3e('0x4c6')][_0x152c3e('0x2587')];_0x2789ce++){_0x4c841e['error']({'title':_0x4f7fbd[_0x152c3e('0x10fd')][_0x152c3e('0x4c6')][_0x2789ce][_0x152c3e('0x6c8')],'msg':_0x4f7fbd['data'][_0x152c3e('0x4c6')][_0x2789ce][_0x152c3e('0x1402')]});}}else _0x4c841e[_0x152c3e('0x187f')]({'title':_0x4f7fbd['status']?_0x152c3e('0x16c2')+_0x4f7fbd[_0x152c3e('0x2fa')]+_0x152c3e('0x169e')+_0x4f7fbd[_0x152c3e('0x24df')]:'SYSTEM:DELETEvoiceQueue','msg':_0x4f7fbd[_0x152c3e('0x10fd')]?JSON['stringify'](_0x4f7fbd['data'][_0x152c3e('0x1402')]):_0x4f7fbd[_0x152c3e('0x1402')]||_0x4f7fbd[_0x152c3e('0x684')]()});});}function _0x623c6d(){var _0x4e041e=_0x739037,_0x3183a2=angular['copy'](_0x950281[_0x4e041e('0x6b')]);return _0x950281[_0x4e041e('0x6b')]=[],_0x3183a2;}function _0x573da4(_0x2d66c4){var _0x20be27=_0x739037,_0x46997b=_0x3c73a8[_0x20be27('0x281e')]()['title'](_0x20be27('0x2854'))['htmlContent'](_0x20be27('0x389')+_0x950281[_0x20be27('0x6b')][_0x20be27('0x2587')]+_0x20be27('0x1443')+'\x20will\x20be\x20deleted.')[_0x20be27('0x5b5')](_0x20be27('0x178'))[_0x20be27('0x116d')](_0x2d66c4)['ok']('OK')[_0x20be27('0x2030')](_0x20be27('0x2410'));_0x3c73a8[_0x20be27('0x1e6d')](_0x46997b)[_0x20be27('0xaa5')](function(){var _0x305408=_0x20be27;_0x950281['selectedQueueCampaigns']['forEach'](function(_0x479195){_0x507e05(_0x479195);}),_0x950281[_0x305408('0x6b')]=[];});}function _0x13e391(){var _0x20d617=_0x739037;_0x950281[_0x20d617('0x6b')]=[];}function _0x588d66(){var _0x7a4757=_0x739037;_0x950281[_0x7a4757('0x6b')]=_0x950281[_0x7a4757('0x23af')]['rows'];}}const _0x37da67=_0x1e6bc8;_0x40c66e[_0x1a8446('0x1e33')]=['$stateProvider',_0x1a8446('0x208f')];function _0x40c66e(_0x28f666,_0x9e32cf){var _0x3ff14e=_0x1a8446;_0x28f666['state']('app.motiondialer',{'abstract':!![],'url':_0x3ff14e('0x1e23')})[_0x3ff14e('0xb46')](_0x3ff14e('0x1033'),{'url':'/queueCampaigns','views':{'content@app':{'templateUrl':_0xc08b2c,'controller':'QueueCampaignsController\x20as\x20vm'}},'resolve':{'queueCampaigns':[_0x3ff14e('0x1d16'),_0x3ff14e('0x1dfd'),function _0x24197f(_0x3e9034,_0x56f500){var _0x3c52a6=_0x3ff14e;return _0x56f500[_0x3c52a6('0x26e8')](_0x3c52a6('0x178b'))?_0x3e9034['resolve']('voiceQueue@get',{'fields':_0x3c52a6('0x10e3'),'type':'outbound','sort':_0x3c52a6('0xd82'),'channel':_0x3c52a6('0x1b9'),'limit':0xa,'offset':0x0}):_0x3e9034['resolve'](_0x3c52a6('0x49a'),{'id':_0x56f500['getCurrentUser']()[_0x3c52a6('0x2168')],'section':_0x3c52a6('0x3bf'),'fields':_0x3c52a6('0x10e3'),'type':'outbound','sort':'-updatedAt','channel':_0x3c52a6('0x1b9'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3ff14e('0x1d16'),_0x3ff14e('0x1dfd'),function _0x3f9406(_0x498db1,_0x3a473a){var _0x5d0aee=_0x3ff14e;return _0x3a473a[_0x5d0aee('0x26e8')](_0x5d0aee('0x178b'))?null:_0x498db1[_0x5d0aee('0x149f')](_0x5d0aee('0x567'),{'fields':'id,name,crudPermissions','id':_0x3a473a['getCurrentUser']()[_0x5d0aee('0x2168')]});}],'userProfileSection':['apiResolver',_0x3ff14e('0x1dfd'),function _0x2353bc(_0x42f591,_0x45bc48){var _0x588224=_0x3ff14e;return _0x45bc48[_0x588224('0x26e8')](_0x588224('0x178b'))?null:_0x42f591[_0x588224('0x149f')](_0x588224('0x89e'),{'fields':_0x588224('0xe6a'),'userProfileId':_0x45bc48['getCurrentUser']()[_0x588224('0x2168')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x3ff14e('0x1c6c')})['state'](_0x3ff14e('0xc26'),{'url':_0x3ff14e('0xad'),'params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3dd4df,'controller':_0x3ff14e('0x7df')}},'resolve':{'queueCampaign':['apiResolver',_0x3ff14e('0x703'),function _0x589be9(_0x320602,_0x2d22ba){var _0x293f64=_0x3ff14e;return _0x320602['resolve'](_0x293f64('0x1b1'),{'fields':_0x293f64('0x10e3'),'id':_0x2d22ba['id']});}],'userProfileSection':[_0x3ff14e('0x1d16'),_0x3ff14e('0x1dfd'),function _0x17ed11(_0x167bbd,_0x41ecd3){var _0x4a3cb=_0x3ff14e;return _0x167bbd[_0x4a3cb('0x149f')](_0x4a3cb('0x89e'),{'fields':_0x4a3cb('0xe6a'),'userProfileId':_0x41ecd3[_0x4a3cb('0xacc')]()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x3ff14e('0x1c6c')})[_0x3ff14e('0xb46')]('app.motiondialer.ivrCampaigns',{'url':'/ivrCampaigns','views':{'content@app':{'templateUrl':_0xd4e0ee,'controller':_0x3ff14e('0x159f')}},'resolve':{'ivrCampaigns':['apiResolver',_0x3ff14e('0x1dfd'),function _0x191a25(_0x584754,_0x4b944c){var _0x46fbc5=_0x3ff14e;return _0x4b944c[_0x46fbc5('0x26e8')]('admin')?_0x584754['resolve'](_0x46fbc5('0x60c'),{'fields':_0x46fbc5('0xfac'),'type':_0x46fbc5('0x1d11'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x584754[_0x46fbc5('0x149f')](_0x46fbc5('0x49a'),{'id':_0x4b944c[_0x46fbc5('0xacc')]()['userProfileId'],'section':_0x46fbc5('0x1a93'),'fields':_0x46fbc5('0xfac'),'type':'ivr','sort':_0x46fbc5('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3ff14e('0x1d16'),_0x3ff14e('0x1dfd'),function _0x27ceeb(_0x417af0,_0xd0dc03){var _0x8d709a=_0x3ff14e;return _0xd0dc03['hasRole'](_0x8d709a('0x178b'))?null:_0x417af0[_0x8d709a('0x149f')](_0x8d709a('0x567'),{'fields':_0x8d709a('0x1bb0'),'id':_0xd0dc03[_0x8d709a('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x3ff14e('0x1d16'),_0x3ff14e('0x1dfd'),function _0x4849ee(_0x4cee7d,_0x1dbd25){var _0x4b23fc=_0x3ff14e;return _0x1dbd25['hasRole'](_0x4b23fc('0x178b'))?null:_0x4cee7d[_0x4b23fc('0x149f')](_0x4b23fc('0x89e'),{'fields':_0x4b23fc('0xe6a'),'userProfileId':_0x1dbd25['getCurrentUser']()['userProfileId'],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x3ff14e('0x1c6c')})[_0x3ff14e('0xb46')](_0x3ff14e('0x6e3'),{'url':_0x3ff14e('0xad'),'params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x286ecf,'controller':_0x3ff14e('0x11d8')}},'resolve':{'ivrCampaign':[_0x3ff14e('0x1d16'),_0x3ff14e('0x703'),function _0x1dcc58(_0x17b7b4,_0x9323){var _0x2a80bc=_0x3ff14e;return _0x17b7b4[_0x2a80bc('0x149f')](_0x2a80bc('0x60c'),{'fields':'createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength','id':_0x9323['id']});}],'userProfileSection':[_0x3ff14e('0x1d16'),'Auth',function _0x2f7f07(_0x5768d9,_0x43a773){var _0xa15213=_0x3ff14e;return _0x5768d9['resolve']('userProfileSection@get',{'fields':_0xa15213('0xe6a'),'userProfileId':_0x43a773[_0xa15213('0xacc')]()[_0xa15213('0x2168')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x3ff14e('0x1c6c')}),_0x9e32cf[_0x3ff14e('0x1de5')]('app/main/apps/motiondialer');}angular[_0x1a8446('0x1f8d')]('app.motiondialer',[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),'ng-sortable',_0x1a8446('0x150f'),_0x1a8446('0x110'),_0x1a8446('0xd2d'),'mwFormBuilder',_0x1a8446('0x1ec2'),'mwFormUtils',_0x1a8446('0x112'),_0x1a8446('0x2579'),'ngEmbed',_0x1a8446('0x14c'),'material.components.expansionPanels',_0x1a8446('0x1320'),_0x1a8446('0x775'),_0x1a8446('0x1dc5')])['config'](_0x40c66e)[_0x1a8446('0x780')](_0x1a8446('0x11e1'),_0x5a5829)[_0x1a8446('0x780')](_0x1a8446('0x16d4'),_0x238387)['controller'](_0x1a8446('0x713'),_0x323dbe)[_0x1a8446('0x780')](_0x1a8446('0x184b'),_0x4a44fe)[_0x1a8446('0x780')](_0x1a8446('0x1f20'),_0x11f0d0)['controller'](_0x1a8446('0x19fb'),_0x496b40)['controller'](_0x1a8446('0x8bc'),_0x1c847e)[_0x1a8446('0x780')]('CreateOrEditHopperCampaignIdDialogController',_0x3f0925)[_0x1a8446('0x780')]('IvrCampaignHopperStatisticsController',_0x3aa6b4)[_0x1a8446('0x780')](_0x1a8446('0x1384'),_0x5ab742)[_0x1a8446('0x780')]('IvrCampaignresetlistController',_0x11e42f)[_0x1a8446('0x780')]('IvrCampaignController',_0x3e23bb)[_0x1a8446('0x780')](_0x1a8446('0x509'),_0x1ce451)[_0x1a8446('0x780')](_0x1a8446('0x47f'),_0xc63032)[_0x1a8446('0x780')](_0x1a8446('0x2045'),_0x259810)[_0x1a8446('0x780')]('QueueCampaignblacklistaddController',_0x231998)[_0x1a8446('0x780')](_0x1a8446('0x12f0'),_0x2a90c2)[_0x1a8446('0x780')](_0x1a8446('0x115f'),_0x272efc)[_0x1a8446('0x780')](_0x1a8446('0x751'),_0x98dd10)[_0x1a8446('0x780')](_0x1a8446('0x3f4'),_0x543a72)['controller']('QueueCampaignHoppersController',_0x1a86d1)[_0x1a8446('0x780')](_0x1a8446('0x25b3'),_0x3083bf)[_0x1a8446('0x780')](_0x1a8446('0x271f'),_0x1461a8)[_0x1a8446('0x780')](_0x1a8446('0x2022'),_0x5c19e6)['controller'](_0x1a8446('0xc4e'),_0x502195)['controller']('QueueCampaignteamaddController',_0x3fc888)[_0x1a8446('0x780')](_0x1a8446('0x651'),_0x2a885f)['controller'](_0x1a8446('0x850'),_0x37da67);const _0x5f2b50=_0x4fb511['p']+_0x1a8446('0x207');_0x4e212f[_0x1a8446('0x1e33')]=['info','license','api'];function _0x4e212f(_0x5065a0,_0x3f2806,_0x335cdd){var _0xe0f39d=_0x1a8446,_0x199e97=this;_0x199e97[_0xe0f39d('0x842')]=_0x335cdd['baseUrl'],_0x199e97['info']=_0x5065a0,_0x199e97[_0xe0f39d('0x1202')]=_0x3f2806;}const _0x5ca60d=_0x4e212f;_0x581a6d[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x581a6d(_0x4733da){var _0x2fd23f=_0x1a8446;_0x4733da[_0x2fd23f('0xb46')]('app.help.about',{'url':_0x2fd23f('0x2026'),'views':{'content@app':{'templateUrl':_0x5f2b50,'controller':_0x2fd23f('0x1fcb')}},'resolve':{'info':[_0x2fd23f('0x1d16'),function _0x297f24(_0xe73c41){var _0x19708f=_0x2fd23f;return _0xe73c41[_0x19708f('0x149f')]('version@get');}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0x2fd23f('0x828')});}angular['module']('app.help.about',[])[_0x1a8446('0x1b14')](_0x581a6d)[_0x1a8446('0x780')](_0x1a8446('0x1039'),_0x5ca60d),_0x41c303[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x41c303(_0x169191,_0x1c063b){var _0x10b7a3=_0x1a8446;_0x169191[_0x10b7a3('0xb46')]('app.help',{'abstract':!![],'url':_0x10b7a3('0x26d3')}),_0x1c063b[_0x10b7a3('0x1de5')]('app/main/apps/help');}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x223b'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),'ng-sortable','ngAria','ngAnimate','mdPickers','mwFormBuilder',_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),'ngclipboard',_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),'material.components.expansionPanels',_0x1a8446('0x1320'),_0x1a8446('0x775'),_0x1a8446('0xb7')])[_0x1a8446('0x1b14')](_0x41c303);const _0x540f8f=_0x4fb511['p']+_0x1a8446('0x2598'),_0x78df9=_0x4fb511['p']+_0x1a8446('0x280a');_0x1d3ab8[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x8d1'),_0x1a8446('0x24b9'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x1d3ab8(_0xbf4c2f,_0x25d2e1,_0x562438,_0x508444,_0x4c4112,_0x14bfd2,_0x288329,_0x145ea7,_0x4537f8,_0xfdcbb5,_0x53d658,_0x4753ca,_0x4f2c7a,_0x3510b1){var _0x2b8c3b=_0x1a8446,_0x395c47=this;_0x395c47[_0x2b8c3b('0x7fc')]=_0x53d658['getCurrentUser'](),_0x395c47[_0x2b8c3b('0x4c6')]=[],_0x395c47[_0x2b8c3b('0x143f')]=_0x4f2c7a,_0x395c47['license']=_0x4753ca,_0x395c47[_0x2b8c3b('0xada')]=_0x3510b1,_0x395c47[_0x2b8c3b('0x9f0')]={},_0x395c47[_0x2b8c3b('0x1d53')]=_0x395c47[_0x2b8c3b('0x143f')]&&_0x395c47[_0x2b8c3b('0x143f')][_0x2b8c3b('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x395c47[_0x2b8c3b('0x110a')]=_0x2b8c3b('0x1a4a'),_0x395c47[_0x2b8c3b('0x24b9')]=angular[_0x2b8c3b('0x20a')](_0x4537f8),_0x395c47[_0x2b8c3b('0x8d1')]=_0x145ea7,_0x395c47[_0x2b8c3b('0x16d3')]=![];!_0x395c47[_0x2b8c3b('0x24b9')]&&(_0x395c47['project']={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x395c47[_0x2b8c3b('0x110a')]=_0x2b8c3b('0x229d'),_0x395c47['newProject']=!![]);_0x395c47[_0x2b8c3b('0xc8d')]=_0x42ef88,_0x395c47[_0x2b8c3b('0x113a')]=_0x2f3573,_0x395c47['deleteProject']=_0x52497d,_0x395c47[_0x2b8c3b('0xc09')]=_0x4ebe87,_0x395c47['closeDialog']=_0x467055;function _0x42ef88(){var _0x28538b=_0x2b8c3b;_0x395c47[_0x28538b('0x4c6')]=[],_0xfdcbb5[_0x28538b('0x285c')][_0x28538b('0x242b')](_0x395c47['project'])[_0x28538b('0x1dc2')]['then'](function(_0x39cf5a){var _0x202b70=_0x28538b;_0x395c47[_0x202b70('0x8d1')][_0x202b70('0x6ee')](_0x39cf5a[_0x202b70('0x256a')]()),_0x288329['success']({'title':_0x202b70('0x1ed8'),'msg':_0x395c47[_0x202b70('0x24b9')][_0x202b70('0x25d6')]?_0x395c47[_0x202b70('0x24b9')][_0x202b70('0x25d6')]+_0x202b70('0xdca'):''}),_0x467055(_0x39cf5a);})['catch'](function(_0x564b5e){var _0x336bec=_0x28538b;if(_0x564b5e['data']&&_0x564b5e['data']['errors']&&_0x564b5e[_0x336bec('0x10fd')][_0x336bec('0x4c6')][_0x336bec('0x2587')]){_0x395c47['errors']=_0x564b5e[_0x336bec('0x10fd')][_0x336bec('0x4c6')]||[{'message':_0x564b5e[_0x336bec('0x684')](),'type':_0x336bec('0x119b')}];for(var _0x9ca79f=0x0;_0x9ca79f<_0x564b5e[_0x336bec('0x10fd')][_0x336bec('0x4c6')][_0x336bec('0x2587')];_0x9ca79f+=0x1){_0x288329[_0x336bec('0x187f')]({'title':_0x564b5e[_0x336bec('0x10fd')][_0x336bec('0x4c6')][_0x9ca79f][_0x336bec('0x6c8')],'msg':_0x564b5e[_0x336bec('0x10fd')][_0x336bec('0x4c6')][_0x9ca79f][_0x336bec('0x1402')]});}}else _0x288329['error']({'title':_0x564b5e[_0x336bec('0x2fa')]?_0x336bec('0x16c2')+_0x564b5e['status']+_0x336bec('0x169e')+_0x564b5e[_0x336bec('0x24df')]:_0x336bec('0x119b'),'msg':_0x564b5e[_0x336bec('0x10fd')]?JSON[_0x336bec('0xa48')](_0x564b5e[_0x336bec('0x10fd')]['message']):_0x564b5e['toString']()});});}function _0x2f3573(){var _0x3342e4=_0x2b8c3b;_0x395c47['errors']=[],_0xfdcbb5[_0x3342e4('0x285c')][_0x3342e4('0x264e')]({'id':_0x395c47[_0x3342e4('0x24b9')]['id']},_0x395c47['project'])[_0x3342e4('0x1dc2')][_0x3342e4('0xaa5')](function(_0x590938){var _0x80925f=_0x3342e4,_0x596696=_0x51538b()[_0x80925f('0xe9e')](_0x395c47[_0x80925f('0x8d1')],{'id':_0x590938['id']});_0x596696&&_0x51538b()['merge'](_0x596696,_0x51538b()[_0x80925f('0x104e')](_0x590938[_0x80925f('0x256a')](),_0x51538b()[_0x80925f('0x9f2')](_0x596696))),_0x288329[_0x80925f('0xe10')]({'title':_0x80925f('0x1caa'),'msg':_0x395c47[_0x80925f('0x24b9')][_0x80925f('0x25d6')]?_0x395c47[_0x80925f('0x24b9')][_0x80925f('0x25d6')]+_0x80925f('0x20bf'):''}),_0x467055(_0x590938);})['catch'](function(_0x29521c){var _0x4ecd91=_0x3342e4;if(_0x29521c[_0x4ecd91('0x10fd')]&&_0x29521c['data']['errors']&&_0x29521c['data'][_0x4ecd91('0x4c6')][_0x4ecd91('0x2587')]){_0x395c47[_0x4ecd91('0x4c6')]=_0x29521c['data']['errors']||[{'message':_0x29521c[_0x4ecd91('0x684')](),'type':'api.jscriptyProject.update'}];for(var _0x2d5580=0x0;_0x2d5580<_0x29521c[_0x4ecd91('0x10fd')][_0x4ecd91('0x4c6')][_0x4ecd91('0x2587')];_0x2d5580++){_0x288329[_0x4ecd91('0x187f')]({'title':_0x29521c[_0x4ecd91('0x10fd')][_0x4ecd91('0x4c6')][_0x2d5580][_0x4ecd91('0x6c8')],'msg':_0x29521c[_0x4ecd91('0x10fd')][_0x4ecd91('0x4c6')][_0x2d5580][_0x4ecd91('0x1402')]});}}else _0x288329['error']({'title':_0x29521c['status']?_0x4ecd91('0x16c2')+_0x29521c[_0x4ecd91('0x2fa')]+_0x4ecd91('0x169e')+_0x29521c[_0x4ecd91('0x24df')]:'api.jscriptyProject.update','msg':_0x29521c['data']?JSON['stringify'](_0x29521c['data'][_0x4ecd91('0x1402')]):_0x29521c[_0x4ecd91('0x684')]()});});}function _0x52497d(_0x4e8a9f){var _0x3c3d58=_0x2b8c3b;_0x395c47[_0x3c3d58('0x4c6')]=[];var _0x365208=_0x508444['confirm']()[_0x3c3d58('0x110a')](_0x3c3d58('0x12a3'))['content'](_0x3c3d58('0x1b5a'))[_0x3c3d58('0x5b5')](_0x3c3d58('0x1222'))['ok'](_0x3c3d58('0x1e76'))[_0x3c3d58('0x2030')](_0x3c3d58('0x9c6'))['targetEvent'](_0x4e8a9f);_0x508444['show'](_0x365208)[_0x3c3d58('0xaa5')](function(){var _0x74f0cc=_0x3c3d58;_0xfdcbb5[_0x74f0cc('0x285c')]['delete']({'id':_0x395c47['project']['id']})['$promise'][_0x74f0cc('0xaa5')](function(){var _0x455090=_0x74f0cc;_0x51538b()[_0x455090('0xf6d')](_0x395c47[_0x455090('0x8d1')],{'id':_0x395c47['project']['id']}),_0x288329[_0x455090('0xe10')]({'title':_0x455090('0x1d2c'),'msg':(_0x395c47[_0x455090('0x24b9')][_0x455090('0x25d6')]||_0x455090('0x24b9'))+'\x20has\x20been\x20deleted!'}),_0x467055(_0x395c47[_0x455090('0x24b9')]);})[_0x74f0cc('0x253d')](function(_0x108d14){var _0x5d575f=_0x74f0cc;if(_0x108d14[_0x5d575f('0x10fd')]&&_0x108d14[_0x5d575f('0x10fd')][_0x5d575f('0x4c6')]&&_0x108d14[_0x5d575f('0x10fd')][_0x5d575f('0x4c6')][_0x5d575f('0x2587')]){_0x395c47[_0x5d575f('0x4c6')]=_0x108d14[_0x5d575f('0x10fd')][_0x5d575f('0x4c6')]||[{'message':_0x108d14['toString'](),'type':_0x5d575f('0x194b')}];for(var _0xb8223=0x0;_0xb8223<_0x108d14[_0x5d575f('0x10fd')][_0x5d575f('0x4c6')][_0x5d575f('0x2587')];_0xb8223++){_0x288329[_0x5d575f('0x187f')]({'title':_0x108d14[_0x5d575f('0x10fd')][_0x5d575f('0x4c6')][_0xb8223][_0x5d575f('0x6c8')],'msg':_0x108d14[_0x5d575f('0x10fd')][_0x5d575f('0x4c6')][_0xb8223][_0x5d575f('0x1402')]});}}else _0x288329[_0x5d575f('0x187f')]({'title':_0x108d14[_0x5d575f('0x2fa')]?'API:'+_0x108d14[_0x5d575f('0x2fa')]+'\x20-\x20'+_0x108d14[_0x5d575f('0x24df')]:_0x5d575f('0x194b'),'msg':_0x108d14[_0x5d575f('0x10fd')]?JSON['stringify'](_0x108d14[_0x5d575f('0x10fd')][_0x5d575f('0x1402')]):_0x108d14[_0x5d575f('0x1402')]||_0x108d14['toString']()});});},function(){});}function _0x4ebe87(_0x464666){return _0x464666===null?undefined:new Date(_0x464666);}function _0x467055(_0x1c5754){var _0xde8392=_0x2b8c3b;_0x508444[_0xde8392('0x1120')](_0x1c5754);}}const _0x225d65=_0x1d3ab8;_0x1b5dcb[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$document',_0x1a8446('0x27bf'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x2c1')];function _0x1b5dcb(_0x48f8bd,_0x4ea68c,_0x2cc150,_0x42aed1,_0x172507,_0x5d0735){var _0x489598=_0x1a8446,_0x49807b=this;_0x49807b['project']={},_0x49807b[_0x489598('0x1394')]=_0x5d0735;var _0x128948=new Date();_0x128948[_0x489598('0x807')](0x0,0x0,0x0,0x0),_0x49807b['pickerModel']={'dateStart':new Date(_0x128948[_0x489598('0x495')](),_0x128948[_0x489598('0x12b5')](),0x1),'dateEnd':new Date(_0x128948[_0x489598('0x495')](),_0x128948['getMonth']()+0x1,0x0),'selectedTemplate':'TM'},_0x49807b['init']=_0x37d8dd,_0x49807b['getSummary']=_0x3c6ecf,_0x49807b['getAnswers']=_0x52f87c;function _0x52f87c(){var _0x1e701e=_0x489598;return _0x49807b[_0x1e701e('0x1847')]=![],_0x42aed1['jscriptyProject']['getAnswers']({'id':_0x49807b['project']['id'],'sort':_0x1e701e('0x1444'),'createdAt':{'$gte':_0x420d43()(_0x49807b[_0x1e701e('0x13f5')][_0x1e701e('0x779')])['add'](0x0,_0x1e701e('0x1c7c'))[_0x1e701e('0x202c')](0x0,_0x1e701e('0x227c'))['add'](0x0,_0x1e701e('0x116c'))[_0x1e701e('0x15db')](0x0,!![])['format'](),'$lte':_0x420d43()(_0x49807b[_0x1e701e('0x13f5')][_0x1e701e('0x197e')])[_0x1e701e('0x202c')](0x17,_0x1e701e('0x1c7c'))[_0x1e701e('0x202c')](0x3b,_0x1e701e('0x227c'))[_0x1e701e('0x202c')](0x3b,_0x1e701e('0x116c'))[_0x1e701e('0x15db')](0x0,!![])[_0x1e701e('0x1f27')]()},'nolimit':!![]})[_0x1e701e('0x1dc2')][_0x1e701e('0xaa5')](function(_0x580fcc){var _0x30f159=_0x1e701e;if(_0x580fcc&&_0x580fcc[_0x30f159('0x580')]&&typeof _0x580fcc[_0x30f159('0xd15')]!==_0x30f159('0x1574')){_0x49807b[_0x30f159('0xd73')]={};for(var _0x32e8df=0x0,_0xb3a289=_0x580fcc['count'];_0x32e8df<_0xb3a289;_0x32e8df++){_0x580fcc[_0x30f159('0x580')][_0x32e8df]['questionId']&&(_0x49807b[_0x30f159('0x1847')]=!![],typeof _0x49807b[_0x30f159('0xd73')][_0x580fcc[_0x30f159('0x580')][_0x32e8df]['questionId']]===_0x30f159('0x1574')&&(_0x49807b['answers'][_0x580fcc[_0x30f159('0x580')][_0x32e8df][_0x30f159('0x1981')]]={'question':_0x580fcc['rows'][_0x32e8df][_0x30f159('0x1505')],'answers':{},'sum':0x0}),_0x580fcc['rows'][_0x32e8df][_0x30f159('0x1ba2')]===''&&(_0x580fcc['rows'][_0x32e8df][_0x30f159('0x1ba2')]='NO_ANSWER'),_0x49807b[_0x30f159('0xd73')][_0x580fcc[_0x30f159('0x580')][_0x32e8df][_0x30f159('0x1981')]][_0x30f159('0xd73')][_0x580fcc[_0x30f159('0x580')][_0x32e8df]['answer']]?_0x49807b['answers'][_0x580fcc[_0x30f159('0x580')][_0x32e8df]['questionId']][_0x30f159('0xd73')][_0x580fcc[_0x30f159('0x580')][_0x32e8df][_0x30f159('0x1ba2')]]+=0x1:_0x49807b[_0x30f159('0xd73')][_0x580fcc[_0x30f159('0x580')][_0x32e8df][_0x30f159('0x1981')]][_0x30f159('0xd73')][_0x580fcc[_0x30f159('0x580')][_0x32e8df][_0x30f159('0x1ba2')]]=0x1,_0x49807b[_0x30f159('0xd73')][_0x580fcc[_0x30f159('0x580')][_0x32e8df][_0x30f159('0x1981')]]['sum']+=0x1);}}})[_0x1e701e('0x253d')](function(_0x33a096){var _0x531a92=_0x1e701e;_0x172507['error']({'title':_0x33a096[_0x531a92('0x2fa')]?_0x531a92('0x16c2')+_0x33a096[_0x531a92('0x2fa')]+'\x20-\x20'+_0x33a096[_0x531a92('0x24df')]:_0x531a92('0x1c82'),'msg':_0x33a096[_0x531a92('0x10fd')]?JSON['stringify'](_0x33a096[_0x531a92('0x10fd')]):_0x33a096[_0x531a92('0x684')]()});});}function _0x37d8dd(_0x273131){var _0x1826eb=_0x489598;_0x49807b[_0x1826eb('0x24b9')]=_0x273131,_0x49807b[_0x1826eb('0x1720')]();}function _0x3c6ecf(){var _0x14e5f5=_0x489598;return _0x42aed1['jscriptyProject'][_0x14e5f5('0x14d1')]({'id':_0x49807b[_0x14e5f5('0x24b9')]['id'],'startTime':{'$gte':_0x49807b['pickerModel']['dateStart'],'$lte':_0x420d43()(_0x49807b[_0x14e5f5('0x13f5')]['dateEnd'])[_0x14e5f5('0x202c')](0x17,_0x14e5f5('0x1c7c'))[_0x14e5f5('0x202c')](0x3b,_0x14e5f5('0x227c'))[_0x14e5f5('0x202c')](0x3b,_0x14e5f5('0x116c'))[_0x14e5f5('0x1f27')]()},'nolimit':!![]})['$promise'][_0x14e5f5('0xaa5')](function(_0x4e8abf){var _0x1e7d1a=_0x14e5f5;if(typeof _0x4e8abf[_0x1e7d1a('0x2587')]!==_0x1e7d1a('0x1574')){var _0x144f4c=[_0x4e8abf['buffer']],_0x201e01=new Blob(_0x144f4c,{'type':_0x4e8abf['type']}),_0x1c97a3=window['document'][_0x1e7d1a('0x531')]('a');_0x1c97a3[_0x1e7d1a('0x107b')]('href',URL[_0x1e7d1a('0x1e56')](_0x201e01)),_0x1c97a3['setAttribute']('download','jscriptyProjectSummary_'+_0x49807b['project']['id']+'.csv'),_0x1c97a3['click']();}else _0x172507['info']({'title':_0x1e7d1a('0x2721'),'msg':_0x1e7d1a('0x2607')});})[_0x14e5f5('0x253d')](function(_0x5c74f4){var _0x51f88f=_0x14e5f5;_0x172507['error']({'title':_0x5c74f4[_0x51f88f('0x2fa')]?_0x51f88f('0x16c2')+_0x5c74f4['status']+_0x51f88f('0x169e')+_0x5c74f4['statusText']:_0x51f88f('0x950'),'msg':_0x5c74f4[_0x51f88f('0x10fd')]?JSON[_0x51f88f('0xa48')](_0x5c74f4[_0x51f88f('0x10fd')]):_0x5c74f4['toString']()});});}}const _0x183863=_0x1b5dcb;;function _0x402c89(){var _0x2e36d0=_0x1a8446,_0x1e9ce4=this;_0x1e9ce4['project']={},_0x1e9ce4[_0x2e36d0('0x1198')]={'questionTypes':[_0x2e36d0('0xb37'),'textarea','radio',_0x2e36d0('0x399'),_0x2e36d0('0xbff'),_0x2e36d0('0x219a'),_0x2e36d0('0xb87'),'time',_0x2e36d0('0x1f69'),'range',_0x2e36d0('0x2242')],'elementTypes':['question','paragraph']},_0x1e9ce4[_0x2e36d0('0x2e')]=_0x5521a5,_0x1e9ce4[_0x2e36d0('0x176a')]=_0x277d04;function _0x277d04(_0x426b32){var _0x582cec=_0x2e36d0;if(_0x51538b()[_0x582cec('0x89a')](_0x426b32))return![];try{JSON[_0x582cec('0x9b6')](_0x426b32);}catch(_0x5c1a92){return![];}return!![];}function _0x5521a5(_0x3ad28c){var _0x4dace7=_0x2e36d0;_0x1e9ce4[_0x4dace7('0x24b9')]=_0x3ad28c;if(_0x51538b()['isObjectLike'](_0x3ad28c[_0x4dace7('0x1452')]))_0x1e9ce4[_0x4dace7('0x24b9')][_0x4dace7('0x1452')]=_0x3ad28c[_0x4dace7('0x1452')];else _0x1e9ce4[_0x4dace7('0x176a')](_0x3ad28c['formData'])?_0x1e9ce4[_0x4dace7('0x24b9')][_0x4dace7('0x1452')]=JSON[_0x4dace7('0x9b6')](_0x3ad28c[_0x4dace7('0x1452')]):_0x1e9ce4[_0x4dace7('0x24b9')][_0x4dace7('0x1452')]={};}}const _0x118d46=_0x402c89;_0x278f54[_0x1a8446('0x1e33')]=['$mdDialog',_0x1a8446('0x145b'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x24b9'),_0x1a8446('0x8d1'),_0x1a8446('0xcb3')];function _0x278f54(_0x430347,_0x1510c7,_0x557f08,_0x114d90,_0x29dbac,_0x75eb9e,_0x299415){var _0x2984ff=_0x1a8446,_0xa0707f=this;_0xa0707f[_0x2984ff('0x16d3')]=!![],_0xa0707f[_0x2984ff('0x24b9')]=angular['copy'](_0x29dbac),_0xa0707f[_0x2984ff('0x8d1')]=_0x75eb9e,_0xa0707f['title']=_0x299415['instant'](_0x2984ff('0x25fb'));_0x29dbac&&_0x29dbac[_0x2984ff('0x25d6')]&&(_0xa0707f[_0x2984ff('0x110a')]+=':\x20'+_0x29dbac[_0x2984ff('0x25d6')]);_0xa0707f[_0x2984ff('0x2259')]=_0x23117d,_0xa0707f[_0x2984ff('0x2023')]=_0x5691c5;function _0x23117d(){var _0x3bfbf2=_0x2984ff;return _0x114d90['jscriptyProject'][_0x3bfbf2('0x1ae5')]({'id':_0x29dbac['id']},_0xa0707f[_0x3bfbf2('0x24b9')])[_0x3bfbf2('0x1dc2')][_0x3bfbf2('0xaa5')](function(_0x4bd047){var _0x4e827c=_0x3bfbf2;_0xa0707f[_0x4e827c('0x8d1')][_0x4e827c('0x6ee')](_0x4bd047[_0x4e827c('0x256a')]()),_0x557f08[_0x4e827c('0xe10')]({'title':'Project\x20properly\x20cloned','msg':_0xa0707f[_0x4e827c('0x24b9')][_0x4e827c('0x25d6')]?_0xa0707f['project'][_0x4e827c('0x25d6')]+_0x4e827c('0x136'):''}),_0x1510c7['go'](_0x4e827c('0xf9c'),{'id':_0x4bd047['id']}),_0x5691c5(_0x4bd047);})[_0x3bfbf2('0x253d')](function(_0x169b8b){var _0x50d3fb=_0x3bfbf2;if(_0x169b8b[_0x50d3fb('0x10fd')]&&_0x169b8b[_0x50d3fb('0x10fd')][_0x50d3fb('0x4c6')]&&_0x169b8b[_0x50d3fb('0x10fd')][_0x50d3fb('0x4c6')]['length']){_0xa0707f[_0x50d3fb('0x4c6')]=_0x169b8b['data'][_0x50d3fb('0x4c6')]||[{'message':_0x169b8b[_0x50d3fb('0x684')](),'type':'api.jscriptyProject.clone'}];for(var _0x3fefb6=0x0;_0x3fefb6<_0x169b8b['data'][_0x50d3fb('0x4c6')][_0x50d3fb('0x2587')];_0x3fefb6+=0x1){_0x557f08[_0x50d3fb('0x187f')]({'title':_0x169b8b[_0x50d3fb('0x10fd')][_0x50d3fb('0x4c6')][_0x3fefb6][_0x50d3fb('0x6c8')],'msg':_0x169b8b['data'][_0x50d3fb('0x4c6')][_0x3fefb6]['message']});}}else _0x557f08[_0x50d3fb('0x187f')]({'title':_0x169b8b[_0x50d3fb('0x2fa')]?_0x50d3fb('0x16c2')+_0x169b8b[_0x50d3fb('0x2fa')]+_0x50d3fb('0x169e')+_0x169b8b[_0x50d3fb('0x24df')]:_0x50d3fb('0x742'),'msg':_0x169b8b[_0x50d3fb('0x10fd')]?JSON['stringify'](_0x169b8b['data'][_0x50d3fb('0x1402')]):_0x169b8b[_0x50d3fb('0x684')]()});});}function _0x5691c5(_0x58fecc){var _0x4d04fa=_0x2984ff;_0x430347[_0x4d04fa('0x1120')](_0x58fecc);}}const _0x310b8d=_0x278f54;_0x52abd5[_0x1a8446('0x1e33')]=['$q',_0x1a8446('0x2378'),_0x1a8446('0x51')];function _0x52abd5(_0x1c35ed,_0x224f67,_0x55a8a9){var _0x4c8821=_0x1a8446,_0x1b5251=this;_0x1b5251[_0x4c8821('0x24b9')]={},_0x1b5251[_0x4c8821('0xcb2')]={},_0x1b5251[_0x4c8821('0x80e')]={},_0x1b5251[_0x4c8821('0x2e')]=_0x50df55,_0x1b5251[_0x4c8821('0x1ff5')]=_0x19322a,_0x1b5251['resetViewer']=_0x2a99f9;function _0x50df55(_0x5c3749){var _0x1560ec=_0x4c8821;_0x1b5251['project']=_0x5c3749,_0x55a8a9[_0x1560ec('0xc75')](_0x1560ec('0x548'),function(_0x1db88c,_0x48dffe){var _0x55bb3a=_0x1560ec;if(_0x48dffe['currentPage']&&_0x1b5251[_0x55bb3a('0x24b9')][_0x55bb3a('0x1452')]&&_0x1b5251[_0x55bb3a('0x24b9')][_0x55bb3a('0x1452')]['pages'])for(var _0x5529d5=0x0,_0x331cc1=_0x1b5251[_0x55bb3a('0x24b9')]['formData'][_0x55bb3a('0x10be')][_0x55bb3a('0x2587')];_0x5529d5<_0x331cc1;_0x5529d5++){if(_0x48dffe[_0x55bb3a('0x57d')][_0x55bb3a('0x219a')]<_0x5529d5+0x1&&_0x1b5251['project']['formData'][_0x55bb3a('0x10be')][_0x5529d5][_0x55bb3a('0x10f6')])for(var _0x4de061=0x0,_0x4b2511=_0x1b5251[_0x55bb3a('0x24b9')][_0x55bb3a('0x1452')][_0x55bb3a('0x10be')][_0x5529d5][_0x55bb3a('0x10f6')][_0x55bb3a('0x2587')];_0x4de061<_0x4b2511;_0x4de061++){_0x1b5251[_0x55bb3a('0x24b9')]['formData']['pages'][_0x5529d5][_0x55bb3a('0x10f6')][_0x4de061][_0x55bb3a('0x6c8')]==='question'&&_0x1b5251[_0x55bb3a('0x24b9')][_0x55bb3a('0x1452')]['pages'][_0x5529d5][_0x55bb3a('0x10f6')][_0x4de061][_0x55bb3a('0x1505')]&&delete _0x1b5251[_0x55bb3a('0xcb2')][_0x1b5251[_0x55bb3a('0x24b9')][_0x55bb3a('0x1452')][_0x55bb3a('0x10be')][_0x5529d5][_0x55bb3a('0x10f6')][_0x4de061][_0x55bb3a('0x1505')]['id']];}}});}function _0x19322a(_0x1db615){var _0x490e55=_0x4c8821,_0x57995e=_0x1c35ed['defer'](),_0x2eb3ef=_0x224f67['confirm']()[_0x490e55('0x110a')](_0x490e55('0x90'))[_0x490e55('0x447')]('')[_0x490e55('0x5b5')]('survey')[_0x490e55('0x116d')](_0x1db615)['ok']('SAVE')[_0x490e55('0x2030')](_0x490e55('0x2410'));return _0x224f67['show'](_0x2eb3ef)['then'](function(){var _0x40f748=_0x490e55;_0x57995e[_0x40f748('0x149f')](!![]);},function(){var _0x1e5183=_0x490e55;_0x57995e[_0x1e5183('0xaee')]();}),_0x57995e[_0x490e55('0x159a')];}function _0x2a99f9(){var _0x57417e=_0x4c8821;_0x1b5251[_0x57417e('0x80e')][_0x57417e('0xb6')]&&_0x1b5251[_0x57417e('0x80e')][_0x57417e('0xb6')]();}}const _0x488795=_0x52abd5,_0x33b94f=_0x4fb511['p']+'src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html/dialog-[chunkhash].html';_0x5eee5e[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q','$translate','$timeout',_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x2a4'),'api',_0x1a8446('0x1dfd')];function _0x5eee5e(_0x50fb32,_0x501cf0,_0x452354,_0x595d76,_0xc18078,_0x8d7868,_0x4ac6ce,_0x5c3571,_0x5e3906,_0x32300b,_0x4575a7){var _0x34514c=_0x1a8446,_0x4b3f4d=this;_0x4b3f4d['currentUser']=_0x4575a7['getCurrentUser'](),_0x4b3f4d[_0x34514c('0x24b9')]={},_0x4b3f4d[_0x34514c('0x5f')]={'count':0x0,'rows':[]},_0x4b3f4d['selectedProjectSessions']=[],_0x4b3f4d[_0x34514c('0xada')],_0x4b3f4d['query']={'fields':'createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed','sort':_0x34514c('0xfe7'),'limit':0xa,'page':0x1},_0x4b3f4d[_0x34514c('0x2e')]=_0x8012b1,_0x4b3f4d[_0x34514c('0x1416')]=_0x399e2d,_0x4b3f4d[_0x34514c('0xe10')]=_0x2df0b3,_0x4b3f4d[_0x34514c('0x1b9b')]=_0x350749,_0x4b3f4d[_0x34514c('0x26ab')]=_0x2df274,_0x4b3f4d['showQuestionsProjectSession']=_0x3359a3,_0x4b3f4d[_0x34514c('0x1699')]=_0xeee10c,_0x4b3f4d[_0x34514c('0x27c8')]=_0x3001cc,_0x4b3f4d['deleteSelectedProjectSessions']=_0x3d3db0;function _0x8012b1(_0x5104dd,_0x34b6f9){var _0x2d4695=_0x34514c;_0x4b3f4d[_0x2d4695('0x24b9')]=_0x5104dd,_0x4b3f4d[_0x2d4695('0xada')]=typeof _0x34b6f9!=='undefined'?_0x34b6f9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4b3f4d[_0x2d4695('0x582')]['id']=_0x4b3f4d['project']['id'],_0x350749();}function _0x399e2d(_0x254016,_0x35c88e){var _0x4ba6ec=_0x34514c,_0x1227bc=_0x4ac6ce[_0x4ba6ec('0x281e')]()[_0x4ba6ec('0x110a')](_0x4ba6ec('0xe3e'))[_0x4ba6ec('0x102e')](_0x4ba6ec('0x389')+(_0x254016[_0x4ba6ec('0x25d6')]||_0x254016['id']&&_0x51538b()[_0x4ba6ec('0x1791')](_0x4ba6ec('0x1de3'))+_0x254016['id']||'session')+_0x4ba6ec('0x697')+_0x4ba6ec('0x210d'))[_0x4ba6ec('0x5b5')](_0x4ba6ec('0xf0a'))['targetEvent'](_0x35c88e)['ok']('OK')[_0x4ba6ec('0x2030')]('CANCEL');_0x4ac6ce[_0x4ba6ec('0x1e6d')](_0x1227bc)['then'](function(){_0x3001cc(_0x254016);},function(){var _0x3cd0de=_0x4ba6ec;console[_0x3cd0de('0x18d5')](_0x3cd0de('0x2410'));});}function _0x2df0b3(_0x37e6ac){var _0x159556=_0x34514c;_0x4b3f4d[_0x159556('0x5f')]=_0x37e6ac||{'count':0x0,'rows':[]};}function _0x350749(){var _0x2b1062=_0x34514c;_0x4b3f4d[_0x2b1062('0x582')][_0x2b1062('0x8b1')]=(_0x4b3f4d[_0x2b1062('0x582')]['page']-0x1)*_0x4b3f4d[_0x2b1062('0x582')]['limit'],_0x4b3f4d['promise']=_0x32300b[_0x2b1062('0x285c')][_0x2b1062('0x8e9')](_0x4b3f4d[_0x2b1062('0x582')],_0x2df0b3)[_0x2b1062('0x1dc2')];}function _0x2df274(_0x54406a,_0x1f8c7c){var _0x27edfe=_0x34514c;_0x4ac6ce[_0x27edfe('0x1e6d')]({'controller':_0x27edfe('0x217'),'controllerAs':'vm','templateUrl':_0x33b94f,'parent':angular[_0x27edfe('0x1aa8')](_0x5c3571['body']),'targetEvent':_0x54406a,'clickOutsideToClose':!![],'locals':{'project':_0x4b3f4d[_0x27edfe('0x24b9')],'session':_0x1f8c7c,'sessions':_0x4b3f4d[_0x27edfe('0x5f')][_0x27edfe('0x580')],'license':null,'setting':null,'crudPermissions':_0x4b3f4d[_0x27edfe('0xada')]}});}function _0x3359a3(_0x4ce8d4,_0xbbde8a){var _0xe89455=_0x34514c;_0x4ac6ce[_0xe89455('0x1e6d')]({'controller':_0xe89455('0x24b2'),'controllerAs':'vm','templateUrl':_0x33b94f,'parent':angular[_0xe89455('0x1aa8')](_0x5c3571[_0xe89455('0x54c')]),'targetEvent':_0x4ce8d4,'clickOutsideToClose':!![],'resolve':{'questions':[_0xe89455('0x1d16'),function _0x31ceac(_0x922e43){var _0xfaf658=_0xe89455;return _0x922e43[_0xfaf658('0x149f')](_0xfaf658('0xf7c'),{'fields':'question,answer','sort':'id','id':_0xbbde8a['id']});}]},'locals':{'project':_0x4b3f4d[_0xe89455('0x24b9')],'session':_0xbbde8a}});}function _0x3001cc(_0x3f3a23){var _0x1207ca=_0x34514c;_0x32300b[_0x1207ca('0x134a')][_0x1207ca('0x926')]({'id':_0x3f3a23['id']})[_0x1207ca('0x1dc2')][_0x1207ca('0xaa5')](function(){var _0x48f0ef=_0x1207ca;_0x51538b()['remove'](_0x4b3f4d[_0x48f0ef('0x5f')][_0x48f0ef('0x580')],{'id':_0x3f3a23['id']}),_0x4b3f4d[_0x48f0ef('0x5f')][_0x48f0ef('0xd15')]-=0x1,!_0x4b3f4d[_0x48f0ef('0x5f')][_0x48f0ef('0x580')]['length']&&_0x350749(),_0x5e3906[_0x48f0ef('0xe10')]({'title':_0x48f0ef('0x15d2'),'msg':_0x3f3a23[_0x48f0ef('0x25d6')]?_0x3f3a23[_0x48f0ef('0x25d6')]+_0x48f0ef('0xcd9'):''});})[_0x1207ca('0x253d')](function(_0x5c123d){var _0x1ce350=_0x1207ca;if(_0x5c123d['data']&&_0x5c123d[_0x1ce350('0x10fd')]['errors']&&_0x5c123d['data']['errors']['length']){_0x4b3f4d[_0x1ce350('0x4c6')]=_0x5c123d[_0x1ce350('0x10fd')][_0x1ce350('0x4c6')]||[{'message':_0x5c123d[_0x1ce350('0x684')](),'type':_0x1ce350('0x326')}];for(var _0xefa502=0x0;_0xefa502<_0x5c123d[_0x1ce350('0x10fd')][_0x1ce350('0x4c6')]['length'];_0xefa502++){_0x5e3906[_0x1ce350('0x187f')]({'title':_0x5c123d[_0x1ce350('0x10fd')][_0x1ce350('0x4c6')][_0xefa502][_0x1ce350('0x6c8')],'msg':_0x5c123d[_0x1ce350('0x10fd')][_0x1ce350('0x4c6')][_0xefa502][_0x1ce350('0x1402')]});}}else _0x5e3906[_0x1ce350('0x187f')]({'title':_0x5c123d['status']?'API:'+_0x5c123d[_0x1ce350('0x2fa')]+_0x1ce350('0x169e')+_0x5c123d[_0x1ce350('0x24df')]:_0x1ce350('0x326'),'msg':_0x5c123d[_0x1ce350('0x10fd')]?JSON[_0x1ce350('0xa48')](_0x5c123d['data'][_0x1ce350('0x1402')]):_0x5c123d['message']||_0x5c123d[_0x1ce350('0x684')]()});});}function _0xeee10c(){var _0x3eb2c0=_0x34514c,_0x13a8cc=angular[_0x3eb2c0('0x20a')](_0x4b3f4d['selectedProjectSessions']);return _0x4b3f4d[_0x3eb2c0('0x19f7')]=[],_0x13a8cc;}function _0x3d3db0(_0x35864c){var _0x66d283=_0x34514c,_0x125957=_0x4ac6ce[_0x66d283('0x281e')]()[_0x66d283('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sessions?')[_0x66d283('0x102e')](_0x66d283('0x389')+_0x4b3f4d['selectedProjectSessions'][_0x66d283('0x2587')]+'\x20selected'+_0x66d283('0x210d'))[_0x66d283('0x5b5')](_0x66d283('0x154'))[_0x66d283('0x116d')](_0x35864c)['ok']('OK')[_0x66d283('0x2030')](_0x66d283('0x2410'));_0x4ac6ce[_0x66d283('0x1e6d')](_0x125957)[_0x66d283('0xaa5')](function(){var _0x46c6ee=_0x66d283;_0x4b3f4d[_0x46c6ee('0x19f7')][_0x46c6ee('0x15b5')](function(_0x570213){_0x3001cc(_0x570213);}),_0x4b3f4d[_0x46c6ee('0x19f7')]=[];});}var _0x96b09e=!![],_0x4527ba=0x1;_0x501cf0[_0x34514c('0x1ccf')](_0x34514c('0x74c'),function(_0x4c789f,_0x422afd){var _0x337fdc=_0x34514c;_0x96b09e?_0x8d7868(function(){_0x96b09e=![];}):(!_0x422afd&&(_0x4527ba=_0x4b3f4d['query'][_0x337fdc('0x41')]),_0x4c789f!==_0x422afd&&(_0x4b3f4d[_0x337fdc('0x582')]['page']=0x1),!_0x4c789f&&(_0x4b3f4d[_0x337fdc('0x582')][_0x337fdc('0x41')]=_0x4527ba),_0x350749());});}const _0x216795=_0x5eee5e;_0x10d915[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),'$location','$mdDialog','toasty',_0x1a8446('0x2001'),_0x1a8446('0x18e1'),'project'];function _0x10d915(_0x3289ef,_0x2f0745,_0x1447a6,_0x12bbde,_0x215d8e,_0x5b960c,_0x27111b,_0x294407){var _0xb24049=_0x1a8446,_0xfa9398=this;_0xfa9398[_0xb24049('0x110a')]=_0xb24049('0x2669'),_0xfa9398['session']=_0x5b960c,_0xfa9398[_0xb24049('0x18e1')]=_0x27111b,_0xfa9398['project']=_0x294407;function _0x1583ce(_0x2092c9){var _0xe417bb=_0xb24049;_0x12bbde[_0xe417bb('0x1120')](_0x2092c9);}_0xfa9398[_0xb24049('0x2023')]=_0x1583ce;}const _0x3b56c4=_0x10d915,_0x35ea15=_0x4fb511['p']+_0x1a8446('0x1779');_0x59bd3e[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate',_0x1a8446('0x1202'),'setting',_0x1a8446('0x157'),'toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x24b9'),_0x1a8446('0x1a50')];function _0x59bd3e(_0x40b3b6,_0x5ccd5e,_0x4cadff,_0xcc62cd,_0x5bbea7,_0xabbc02,_0x14ee80,_0x640f2d,_0x50410d,_0xb33fe0,_0x51435c,_0x16e822){var _0x4ea574=_0x1a8446,_0x3d4a83=this;_0x3d4a83[_0x4ea574('0x7fc')]=_0xb33fe0[_0x4ea574('0xacc')](),_0x3d4a83[_0x4ea574('0x1202')]=_0xabbc02,_0x3d4a83['setting']=_0x14ee80,_0x3d4a83[_0x4ea574('0x1d53')]=_0x3d4a83[_0x4ea574('0x143f')][_0x4ea574('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d4a83['location']=_0x5ccd5e[_0x4ea574('0x1cc2')]()+_0x4ea574('0x356')+_0x5ccd5e[_0x4ea574('0x160c')](),_0x3d4a83['project']=_0x51435c||_0x40b3b6[_0x4ea574('0x25cf')]['project']||{},_0x3d4a83[_0x4ea574('0x1a50')]=_0x16e822&&_0x16e822[_0x4ea574('0xd15')]==0x1?_0x16e822[_0x4ea574('0x580')][0x0]:null,_0x3d4a83[_0x4ea574('0xada')]=_0xb33fe0[_0x4ea574('0xffd')](_0x3d4a83['userProfileSection']?_0x3d4a83[_0x4ea574('0x1a50')][_0x4ea574('0xada')]:null),_0x3d4a83[_0x4ea574('0x9f0')]={},_0x3d4a83[_0x4ea574('0xe5c')]=_0x40b3b6[_0x4ea574('0x25cf')][_0x4ea574('0x25c2')]||0x0,_0x3d4a83[_0x4ea574('0x16c1')]=_0x111e4f,_0x3d4a83[_0x4ea574('0xc10')]=_0x50410d[_0x4ea574('0x3a1')],_0x3d4a83[_0x4ea574('0x1680')]=_0x26fa04,_0x3d4a83[_0x4ea574('0x113a')]=_0x4b0cfc;function _0x111e4f(_0x469af1,_0x5f370a){var _0x503e3b=_0x4ea574;_0x4cadff[_0x503e3b('0x1e6d')]({'controller':_0x503e3b('0x18e'),'controllerAs':'vm','templateUrl':_0x35ea15,'parent':angular[_0x503e3b('0x1aa8')](_0xcc62cd['body']),'targetEvent':_0x5f370a,'clickOutsideToClose':!![],'locals':{'project':_0x469af1,'projects':_0x3d4a83[_0x503e3b('0x8d1')]?_0x3d4a83[_0x503e3b('0x8d1')][_0x503e3b('0x580')]:[],'crudPermissions':_0x3d4a83[_0x503e3b('0xada')]}});}function _0x26fa04(){var _0x4f9bba=_0x4ea574;_0x40b3b6['go'](_0x4f9bba('0x1b37'),{},{'reload':_0x4f9bba('0x1b37')});}function _0x4b0cfc(){var _0x1849c0=_0x4ea574;_0x640f2d['jscriptyProject']['update']({'id':_0x3d4a83[_0x1849c0('0x24b9')]['id']},_0x3d4a83['project'])[_0x1849c0('0x1dc2')]['then'](function(){var _0x378d92=_0x1849c0;_0x50410d[_0x378d92('0xe10')]({'title':_0x378d92('0x18c'),'msg':_0x3d4a83['project'][_0x378d92('0x25d6')]?_0x3d4a83[_0x378d92('0x24b9')]['name']+'\x20has\x20been\x20updated!':''});})[_0x1849c0('0x253d')](function(_0x464235){var _0xeb1e66=_0x1849c0;_0x50410d[_0xeb1e66('0x187f')]({'title':_0x464235[_0xeb1e66('0x2fa')]?_0xeb1e66('0x16c2')+_0x464235[_0xeb1e66('0x2fa')]+_0xeb1e66('0x169e')+_0x464235['statusText']:_0xeb1e66('0x326'),'msg':_0x464235[_0xeb1e66('0x10fd')]?JSON['stringify'](_0x464235[_0xeb1e66('0x10fd')]):_0x464235['toString']()});});}}const _0xb2ba88=_0x59bd3e,_0x52b358=_0x4fb511['p']+'src/js/modules/main/apps/jscripty/views/projects/create/dialog.html/dialog-[chunkhash].html';_0x1b6327[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$window',_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x8d1'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f')];function _0x1b6327(_0x46f7ca,_0x236697,_0x30bb3f,_0x5666a7,_0xe60947,_0x1d8515,_0x2a51de,_0x26c440,_0x74e401,_0xf216f2,_0x41f4a1,_0x587352,_0x96a37c,_0x3f95e3,_0x24f2c7,_0x3bd5a5,_0x5cb366){var _0x238888=_0x1a8446,_0x447697=this;_0x447697[_0x238888('0x1202')]=_0x3bd5a5,_0x447697['setting']=_0x5cb366,_0x447697[_0x238888('0x7fc')]=_0x24f2c7[_0x238888('0xacc')](),_0x447697['projects']=_0x74e401||{'count':0x0,'rows':[]},_0x447697[_0x238888('0x1e97')]=_0xf216f2,_0x447697[_0x238888('0x1a50')]=_0x41f4a1&&_0x41f4a1[_0x238888('0xd15')]==0x1?_0x41f4a1[_0x238888('0x580')][0x0]:null,_0x447697[_0x238888('0xada')]=_0x24f2c7['parseCrudPermissions'](_0x447697['userProfileSection']?_0x447697[_0x238888('0x1a50')][_0x238888('0xada')]:null),_0x447697[_0x238888('0x12b6')]='projects',_0x447697['listOrder']='',_0x447697[_0x238888('0x8cc')]=null,_0x447697[_0x238888('0x97c')]=[],_0x447697[_0x238888('0x582')]={'fields':_0x238888('0x1cde'),'sort':_0x238888('0xd82'),'limit':0xa,'page':0x1},_0x447697[_0x238888('0x1927')]=_0x520a91,_0x447697[_0x238888('0x16c1')]=_0x7356f0,_0x447697[_0x238888('0xee')]=_0x7bceb5,_0x447697[_0x238888('0x271')]=_0x558651,_0x447697['success']=_0x32c78c,_0x447697[_0x238888('0x237f')]=_0x5b16b3,_0x447697[_0x238888('0x15f3')]=_0x51c7f9,_0x447697[_0x238888('0xcc3')]=_0x5e1a6f,_0x447697['exportSelectedProjects']=_0x5c4fc0,_0x447697[_0x238888('0x27c9')]=_0x8bca7e,_0x447697[_0x238888('0x2af')]=_0x354a87,_0x447697[_0x238888('0xf1')]=_0x11c93e;function _0x520a91(_0x37137b){var _0x51ff68=_0x238888;_0x30bb3f['go'](_0x51ff68('0xf9c'),{'id':_0x37137b['id'],'project':_0x37137b,'crudPermissions':_0x447697['crudPermissions']});}function _0x7356f0(_0x5252b8,_0x164f1a){var _0x251778=_0x238888;_0xe60947[_0x251778('0x1e6d')]({'controller':_0x251778('0x18e'),'controllerAs':'vm','templateUrl':_0x35ea15,'parent':angular['element'](_0x1d8515[_0x251778('0x54c')]),'targetEvent':_0x164f1a,'clickOutsideToClose':!![],'locals':{'project':_0x5252b8,'projects':_0x447697[_0x251778('0x8d1')]?_0x447697[_0x251778('0x8d1')]['rows']:[],'crudPermissions':_0x447697['crudPermissions']}});}function _0x7bceb5(_0x400423){_0x30bb3f['go']('app.jscripty.projects.edit',{'id':_0x400423['id'],'tab':0x3});}function _0x558651(_0x39dbbc,_0x1e40db){var _0x365a20=_0x238888,_0x3228e6=_0xe60947[_0x365a20('0x281e')]()[_0x365a20('0x110a')](_0x365a20('0x88d')+_0x51538b()[_0x365a20('0x196a')]('project')+'?')['htmlContent'](_0x365a20('0x389')+(_0x39dbbc[_0x365a20('0x25d6')]||_0x365a20('0x24b9'))+''+_0x365a20('0x210d'))[_0x365a20('0x5b5')](_0x365a20('0x2764'))[_0x365a20('0x116d')](_0x1e40db)['ok']('OK')['cancel']('CANCEL');_0xe60947[_0x365a20('0x1e6d')](_0x3228e6)[_0x365a20('0xaa5')](function(){_0x5e1a6f(_0x39dbbc);},function(){var _0x18c9eb=_0x365a20;console[_0x18c9eb('0x18d5')](_0x18c9eb('0x2410'));});}var _0xe81023=!![],_0x367e41=0x1;_0x46f7ca[_0x238888('0x1ccf')]('vm.query.filter',function(_0x289bf6,_0x38cda3){var _0x2ba040=_0x238888;_0xe81023?_0x2a51de(function(){_0xe81023=![];}):(!_0x38cda3&&(_0x367e41=_0x447697[_0x2ba040('0x582')][_0x2ba040('0x41')]),_0x289bf6!==_0x38cda3&&(_0x447697[_0x2ba040('0x582')][_0x2ba040('0x41')]=0x1),!_0x289bf6&&(_0x447697['query'][_0x2ba040('0x41')]=_0x367e41),_0x447697[_0x2ba040('0x237f')]());});function _0x32c78c(_0x13d632){_0x447697['projects']=_0x13d632||{'count':0x0,'rows':[]};}function _0x5b16b3(){var _0x5efb0a=_0x238888;_0x447697[_0x5efb0a('0x582')][_0x5efb0a('0x8b1')]=(_0x447697[_0x5efb0a('0x582')][_0x5efb0a('0x41')]-0x1)*_0x447697[_0x5efb0a('0x582')][_0x5efb0a('0xf4d')],_0x24f2c7[_0x5efb0a('0x26e8')](_0x5efb0a('0x178b'))?_0x447697[_0x5efb0a('0x159a')]=_0x587352[_0x5efb0a('0x285c')][_0x5efb0a('0x2122')](_0x447697[_0x5efb0a('0x582')],_0x32c78c)[_0x5efb0a('0x1dc2')]:(_0x447697[_0x5efb0a('0x582')]['id']=_0x447697[_0x5efb0a('0x1e97')]['id'],_0x447697['query']['section']=_0x5efb0a('0x1fdc'),_0x447697[_0x5efb0a('0x159a')]=_0x587352['userProfile'][_0x5efb0a('0x1cf1')](_0x447697[_0x5efb0a('0x582')],_0x32c78c)['$promise']);}function _0x51c7f9(_0x2c7bc0,_0x12dbe1){var _0x3a697a=_0x238888;_0xe60947[_0x3a697a('0x1e6d')]({'controller':_0x3a697a('0x21db'),'controllerAs':'vm','templateUrl':_0x52b358,'parent':angular[_0x3a697a('0x1aa8')](_0x1d8515[_0x3a697a('0x54c')]),'targetEvent':_0x2c7bc0,'clickOutsideToClose':!![],'locals':{'project':_0x12dbe1,'projects':_0x447697[_0x3a697a('0x8d1')][_0x3a697a('0x580')],'license':_0x447697[_0x3a697a('0x1202')],'setting':_0x447697[_0x3a697a('0x143f')],'crudPermissions':_0x447697[_0x3a697a('0xada')]}});}function _0x5e1a6f(_0xf4188b){var _0x1791be=_0x238888;_0x587352[_0x1791be('0x285c')][_0x1791be('0x926')]({'id':_0xf4188b['id']})[_0x1791be('0x1dc2')]['then'](function(){var _0x4a7d38=_0x1791be;_0x51538b()[_0x4a7d38('0xf6d')](_0x447697[_0x4a7d38('0x8d1')][_0x4a7d38('0x580')],{'id':_0xf4188b['id']}),_0x447697[_0x4a7d38('0x8d1')][_0x4a7d38('0xd15')]-=0x1,!_0x447697['projects'][_0x4a7d38('0x580')]['length']&&_0x447697['getProjects'](),_0x3f95e3[_0x4a7d38('0xe10')]({'title':_0x51538b()[_0x4a7d38('0x196a')](_0x4a7d38('0x1dd3'))+_0x4a7d38('0x8bb'),'msg':_0xf4188b[_0x4a7d38('0x25d6')]?_0xf4188b[_0x4a7d38('0x25d6')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x5aca2b){var _0x385ac4=_0x1791be;if(_0x5aca2b[_0x385ac4('0x10fd')]&&_0x5aca2b[_0x385ac4('0x10fd')]['errors']&&_0x5aca2b[_0x385ac4('0x10fd')][_0x385ac4('0x4c6')][_0x385ac4('0x2587')]){_0x447697['errors']=_0x5aca2b['data'][_0x385ac4('0x4c6')]||[{'message':_0x5aca2b[_0x385ac4('0x684')](),'type':_0x385ac4('0x14b6')}];for(var _0x5d4146=0x0;_0x5d4146<_0x5aca2b[_0x385ac4('0x10fd')][_0x385ac4('0x4c6')][_0x385ac4('0x2587')];_0x5d4146++){_0x3f95e3[_0x385ac4('0x187f')]({'title':_0x5aca2b['data']['errors'][_0x5d4146][_0x385ac4('0x6c8')],'msg':_0x5aca2b['data'][_0x385ac4('0x4c6')][_0x5d4146][_0x385ac4('0x1402')]});}}else _0x3f95e3[_0x385ac4('0x187f')]({'title':_0x5aca2b['status']?'API:'+_0x5aca2b[_0x385ac4('0x2fa')]+'\x20-\x20'+_0x5aca2b['statusText']:_0x385ac4('0x14b6'),'msg':_0x5aca2b[_0x385ac4('0x10fd')]?JSON[_0x385ac4('0xa48')](_0x5aca2b[_0x385ac4('0x10fd')][_0x385ac4('0x1402')]):_0x5aca2b[_0x385ac4('0x1402')]||_0x5aca2b[_0x385ac4('0x684')]()});});}function _0x5c4fc0(){var _0x3d5bda=_0x238888,_0xa37b53=angular['copy'](_0x447697[_0x3d5bda('0x97c')]);return _0x447697[_0x3d5bda('0x97c')]=[],_0xa37b53;}function _0x8bca7e(_0x321abd){var _0x141cb6=_0x238888,_0x1f285b=_0xe60947[_0x141cb6('0x281e')]()[_0x141cb6('0x110a')](_0x141cb6('0x34c'))[_0x141cb6('0x102e')](_0x141cb6('0x389')+_0x447697['selectedProjects'][_0x141cb6('0x2587')]+'\x20selected'+_0x141cb6('0x210d'))[_0x141cb6('0x5b5')](_0x141cb6('0x1a7b'))[_0x141cb6('0x116d')](_0x321abd)['ok']('OK')[_0x141cb6('0x2030')]('CANCEL');_0xe60947[_0x141cb6('0x1e6d')](_0x1f285b)[_0x141cb6('0xaa5')](function(){var _0x2daff5=_0x141cb6;_0x447697['selectedProjects'][_0x2daff5('0x15b5')](function(_0x166d5a){_0x5e1a6f(_0x166d5a);}),_0x447697[_0x2daff5('0x97c')]=[];});}function _0x354a87(){var _0x1bc142=_0x238888;_0x447697[_0x1bc142('0x97c')]=[];}function _0x11c93e(){var _0x17a3c3=_0x238888;_0x447697['selectedProjects']=_0x447697[_0x17a3c3('0x8d1')]['rows'];}}const _0x610f64=_0x1b6327;_0x2c0838[_0x1a8446('0x1e33')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x2c0838(_0x486350,_0x53ece8){var _0xe2eff8=_0x1a8446;_0x486350[_0xe2eff8('0xb46')](_0xe2eff8('0x212'),{'abstract':!![],'url':_0xe2eff8('0xdd0')})[_0xe2eff8('0xb46')]('app.jscripty.projects',{'url':_0xe2eff8('0x1e22'),'views':{'content@app':{'templateUrl':_0x540f8f,'controller':'JscriptyProjectsController\x20as\x20vm'}},'resolve':{'projects':[_0xe2eff8('0x1d16'),_0xe2eff8('0x1dfd'),function _0x16cd7b(_0x2d98b1,_0x4b81e7){var _0x18035a=_0xe2eff8;return _0x4b81e7[_0x18035a('0x26e8')]('admin')?_0x2d98b1[_0x18035a('0x149f')](_0x18035a('0x137d'),{'fields':_0x18035a('0x1cde'),'sort':_0x18035a('0xd82'),'limit':0xa,'offset':0x0}):_0x2d98b1[_0x18035a('0x149f')](_0x18035a('0x49a'),{'id':_0x4b81e7[_0x18035a('0xacc')]()['userProfileId'],'section':_0x18035a('0x1fdc'),'fields':_0x18035a('0x1cde'),'sort':_0x18035a('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xe2eff8('0x1d16'),_0xe2eff8('0x1dfd'),function _0x42399c(_0x16e9c7,_0x26c032){var _0x4f38a3=_0xe2eff8;return _0x26c032[_0x4f38a3('0x26e8')](_0x4f38a3('0x178b'))?null:_0x16e9c7['resolve'](_0x4f38a3('0x567'),{'fields':_0x4f38a3('0x1bb0'),'id':_0x26c032[_0x4f38a3('0xacc')]()[_0x4f38a3('0x2168')]});}],'userProfileSection':[_0xe2eff8('0x1d16'),'Auth',function _0x83302f(_0x17be52,_0x41bfdf){var _0x179260=_0xe2eff8;return _0x41bfdf[_0x179260('0x26e8')]('admin')?null:_0x17be52[_0x179260('0x149f')](_0x179260('0x89e'),{'fields':_0x179260('0xe6a'),'userProfileId':_0x41bfdf[_0x179260('0xacc')]()['userProfileId'],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':'jscripty'})[_0xe2eff8('0xb46')](_0xe2eff8('0xf9c'),{'url':'/:id?tab','params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x78df9,'controller':_0xe2eff8('0x2008')}},'resolve':{'project':[_0xe2eff8('0x1d16'),_0xe2eff8('0x703'),function _0x2d01e9(_0x13b1e1,_0x28de98){var _0x392cd3=_0xe2eff8;return _0x13b1e1[_0x392cd3('0x149f')](_0x392cd3('0x137d'),{'fields':_0x392cd3('0x1cde'),'id':_0x28de98['id']});}],'userProfileSection':[_0xe2eff8('0x1d16'),_0xe2eff8('0x1dfd'),function _0x3b4ac3(_0x571d04,_0x37d6ec){var _0x56c516=_0xe2eff8;return _0x571d04[_0x56c516('0x149f')]('userProfileSection@get',{'fields':_0x56c516('0xe6a'),'userProfileId':_0x37d6ec['getCurrentUser']()[_0x56c516('0x2168')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0xe2eff8('0x1886')}),_0x53ece8[_0xe2eff8('0x1de5')](_0xe2eff8('0x532'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x212'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),'ckeditor',_0x1a8446('0xb89'),_0x1a8446('0x150f'),_0x1a8446('0x110'),_0x1a8446('0xd2d'),_0x1a8446('0xd5c'),'mwFormViewer',_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),_0x1a8446('0x1320'),_0x1a8446('0x775')])['config'](_0x2c0838)[_0x1a8446('0x780')]('CreateOrEditProjectDialogController',_0x225d65)['controller']('ProjectAnswersController',_0x183863)[_0x1a8446('0x780')](_0x1a8446('0x1385'),_0x118d46)[_0x1a8446('0x780')](_0x1a8446('0x18e'),_0x310b8d)[_0x1a8446('0x780')](_0x1a8446('0x1359'),_0x488795)[_0x1a8446('0x780')](_0x1a8446('0x694'),_0x216795)[_0x1a8446('0x780')](_0x1a8446('0x24b2'),_0x3b56c4)[_0x1a8446('0x780')](_0x1a8446('0x34b'),_0xb2ba88)[_0x1a8446('0x780')]('JscriptyProjectsController',_0x610f64);const _0x28de14=_0x4fb511['p']+_0x1a8446('0x23a8'),_0x41856f=_0x4fb511['p']+_0x1a8446('0x173c');_0x40f8f5[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x1eea'),_0x1a8446('0x19a4'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license',_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x40f8f5(_0x4427ba,_0x12c49c,_0x31409a,_0x4fb662,_0x3a3807,_0x12ce22,_0x15443a,_0x157e8d,_0x4312e9,_0x5b5e77,_0x4ac36c,_0x5b1662,_0x40196f,_0x1365d5){var _0x1d3403=_0x1a8446,_0x493b89=this;_0x493b89[_0x1d3403('0x7fc')]=_0x4ac36c[_0x1d3403('0xacc')](),_0x493b89['errors']=[],_0x493b89[_0x1d3403('0x143f')]=_0x40196f,_0x493b89[_0x1d3403('0x1202')]=_0x5b1662,_0x493b89[_0x1d3403('0xada')]=_0x1365d5,_0x493b89[_0x1d3403('0x9f0')]={},_0x493b89[_0x1d3403('0x1d53')]=_0x493b89[_0x1d3403('0x143f')]&&_0x493b89[_0x1d3403('0x143f')][_0x1d3403('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x493b89['title']='MARKETPLACE.EDIT_PLUGIN',_0x493b89[_0x1d3403('0x19a4')]=angular[_0x1d3403('0x20a')](_0x4312e9),_0x493b89['plugins']=_0x157e8d,_0x493b89[_0x1d3403('0x27d9')]=![];!_0x493b89['plugin']&&(_0x493b89['plugin']={},_0x493b89['title']=_0x1d3403('0x229a'),_0x493b89[_0x1d3403('0x27d9')]=!![]);_0x493b89[_0x1d3403('0x1226')]=_0x306e3a,_0x493b89[_0x1d3403('0x2527')]=_0x46a46e,_0x493b89[_0x1d3403('0xb73')]=_0x1f9771,_0x493b89['getDateFromString']=_0xd0c943,_0x493b89['closeDialog']=_0x1c04a9;function _0x306e3a(){var _0x3e688b=_0x1d3403;_0x493b89['errors']=[],_0x5b5e77[_0x3e688b('0x19a4')][_0x3e688b('0x242b')](_0x493b89['plugin'])[_0x3e688b('0x1dc2')][_0x3e688b('0xaa5')](function(_0x2d1f64){var _0x2922d1=_0x3e688b;_0x493b89[_0x2922d1('0x1eea')][_0x2922d1('0x6ee')](_0x2d1f64[_0x2922d1('0x256a')]()),_0x15443a[_0x2922d1('0xe10')]({'title':'Plugin\x20properly\x20created','msg':_0x493b89[_0x2922d1('0x19a4')][_0x2922d1('0x25d6')]?_0x493b89['plugin'][_0x2922d1('0x25d6')]+'\x20has\x20been\x20created!':''}),_0x1c04a9(_0x2d1f64);})[_0x3e688b('0x253d')](function(_0x3e9396){var _0x4c2880=_0x3e688b;if(_0x3e9396[_0x4c2880('0x10fd')]&&_0x3e9396[_0x4c2880('0x10fd')][_0x4c2880('0x4c6')]&&_0x3e9396[_0x4c2880('0x10fd')][_0x4c2880('0x4c6')][_0x4c2880('0x2587')]){_0x493b89[_0x4c2880('0x4c6')]=_0x3e9396[_0x4c2880('0x10fd')][_0x4c2880('0x4c6')]||[{'message':_0x3e9396[_0x4c2880('0x684')](),'type':'api.plugin.save'}];for(var _0x5da6f4=0x0;_0x5da6f4<_0x3e9396['data']['errors']['length'];_0x5da6f4+=0x1){_0x15443a[_0x4c2880('0x187f')]({'title':_0x3e9396[_0x4c2880('0x10fd')]['errors'][_0x5da6f4][_0x4c2880('0x6c8')],'msg':_0x3e9396[_0x4c2880('0x10fd')][_0x4c2880('0x4c6')][_0x5da6f4]['message']});}}else _0x15443a[_0x4c2880('0x187f')]({'title':_0x3e9396[_0x4c2880('0x2fa')]?_0x4c2880('0x16c2')+_0x3e9396['status']+_0x4c2880('0x169e')+_0x3e9396[_0x4c2880('0x24df')]:_0x4c2880('0xa4'),'msg':_0x3e9396[_0x4c2880('0x10fd')]?JSON[_0x4c2880('0xa48')](_0x3e9396['data'][_0x4c2880('0x1402')]):_0x3e9396[_0x4c2880('0x684')]()});});}function _0x46a46e(){var _0x2531da=_0x1d3403;_0x493b89[_0x2531da('0x4c6')]=[],_0x5b5e77[_0x2531da('0x19a4')][_0x2531da('0x264e')]({'id':_0x493b89['plugin']['id']},_0x493b89[_0x2531da('0x19a4')])[_0x2531da('0x1dc2')]['then'](function(_0x245653){var _0x29c459=_0x2531da,_0x517a0f=_0x51538b()['find'](_0x493b89['plugins'],{'id':_0x245653['id']});_0x517a0f&&_0x51538b()[_0x29c459('0x283c')](_0x517a0f,_0x51538b()['pick'](_0x245653['toJSON'](),_0x51538b()[_0x29c459('0x9f2')](_0x517a0f))),_0x15443a[_0x29c459('0xe10')]({'title':_0x29c459('0x2625'),'msg':_0x493b89[_0x29c459('0x19a4')][_0x29c459('0x25d6')]?_0x493b89[_0x29c459('0x19a4')][_0x29c459('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x1c04a9(_0x245653);})[_0x2531da('0x253d')](function(_0x489dd2){var _0x189f54=_0x2531da;if(_0x489dd2[_0x189f54('0x10fd')]&&_0x489dd2['data'][_0x189f54('0x4c6')]&&_0x489dd2[_0x189f54('0x10fd')][_0x189f54('0x4c6')]['length']){_0x493b89[_0x189f54('0x4c6')]=_0x489dd2[_0x189f54('0x10fd')]['errors']||[{'message':_0x489dd2['toString'](),'type':'api.plugin.update'}];for(var _0x1c2752=0x0;_0x1c2752<_0x489dd2['data'][_0x189f54('0x4c6')][_0x189f54('0x2587')];_0x1c2752++){_0x15443a['error']({'title':_0x489dd2[_0x189f54('0x10fd')][_0x189f54('0x4c6')][_0x1c2752][_0x189f54('0x6c8')],'msg':_0x489dd2[_0x189f54('0x10fd')]['errors'][_0x1c2752]['message']});}}else _0x15443a[_0x189f54('0x187f')]({'title':_0x489dd2['status']?'API:'+_0x489dd2[_0x189f54('0x2fa')]+_0x189f54('0x169e')+_0x489dd2['statusText']:_0x189f54('0xb4e'),'msg':_0x489dd2['data']?JSON[_0x189f54('0xa48')](_0x489dd2[_0x189f54('0x10fd')][_0x189f54('0x1402')]):_0x489dd2['toString']()});});}function _0x1f9771(_0x22470a){var _0x234b62=_0x1d3403;_0x493b89[_0x234b62('0x4c6')]=[];var _0xba01dd=_0x4fb662[_0x234b62('0x281e')]()[_0x234b62('0x110a')]('Are\x20you\x20sure?')[_0x234b62('0x15af')](_0x234b62('0x1ab9'))[_0x234b62('0x5b5')](_0x234b62('0x10b4'))['ok'](_0x234b62('0x1e76'))[_0x234b62('0x2030')](_0x234b62('0x9c6'))[_0x234b62('0x116d')](_0x22470a);_0x4fb662[_0x234b62('0x1e6d')](_0xba01dd)['then'](function(){var _0x5f1847=_0x234b62;_0x5b5e77['plugin']['delete']({'id':_0x493b89[_0x5f1847('0x19a4')]['id']})['$promise'][_0x5f1847('0xaa5')](function(){var _0x3b4e81=_0x5f1847;_0x51538b()[_0x3b4e81('0xf6d')](_0x493b89[_0x3b4e81('0x1eea')],{'id':_0x493b89[_0x3b4e81('0x19a4')]['id']}),_0x15443a[_0x3b4e81('0xe10')]({'title':'Plugin\x20properly\x20deleted!','msg':(_0x493b89[_0x3b4e81('0x19a4')]['name']||_0x3b4e81('0x19a4'))+_0x3b4e81('0xcd9')}),_0x1c04a9(_0x493b89[_0x3b4e81('0x19a4')]);})[_0x5f1847('0x253d')](function(_0x273b45){var _0xd6bc48=_0x5f1847;if(_0x273b45[_0xd6bc48('0x10fd')]&&_0x273b45[_0xd6bc48('0x10fd')]['errors']&&_0x273b45[_0xd6bc48('0x10fd')][_0xd6bc48('0x4c6')][_0xd6bc48('0x2587')]){_0x493b89['errors']=_0x273b45[_0xd6bc48('0x10fd')][_0xd6bc48('0x4c6')]||[{'message':_0x273b45[_0xd6bc48('0x684')](),'type':_0xd6bc48('0x1f6c')}];for(var _0x4a86c2=0x0;_0x4a86c2<_0x273b45[_0xd6bc48('0x10fd')]['errors'][_0xd6bc48('0x2587')];_0x4a86c2++){_0x15443a['error']({'title':_0x273b45['data']['errors'][_0x4a86c2][_0xd6bc48('0x6c8')],'msg':_0x273b45[_0xd6bc48('0x10fd')][_0xd6bc48('0x4c6')][_0x4a86c2][_0xd6bc48('0x1402')]});}}else _0x15443a[_0xd6bc48('0x187f')]({'title':_0x273b45[_0xd6bc48('0x2fa')]?_0xd6bc48('0x16c2')+_0x273b45[_0xd6bc48('0x2fa')]+_0xd6bc48('0x169e')+_0x273b45[_0xd6bc48('0x24df')]:_0xd6bc48('0x1f6c'),'msg':_0x273b45[_0xd6bc48('0x10fd')]?JSON[_0xd6bc48('0xa48')](_0x273b45[_0xd6bc48('0x10fd')][_0xd6bc48('0x1402')]):_0x273b45[_0xd6bc48('0x1402')]||_0x273b45['toString']()});});},function(){});}function _0xd0c943(_0x97a90b){return _0x97a90b===null?undefined:new Date(_0x97a90b);}function _0x1c04a9(_0x2e8326){var _0x2782fc=_0x1d3403;_0x4fb662[_0x2782fc('0x1120')](_0x2e8326);}}const _0x2cc047=_0x40f8f5;_0x133dc2['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$translate',_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x19a4'),'userProfileSection'];function _0x133dc2(_0x5413b5,_0x5b525d,_0x459f94,_0x14567d,_0x347f5c,_0x23e024,_0x3439b1,_0x11f86b,_0x37fa33,_0x298611,_0x22da3d,_0xf9edf0){var _0x1091f1=_0x1a8446,_0x43876a=this;_0x43876a[_0x1091f1('0x7fc')]=_0x298611[_0x1091f1('0xacc')](),_0x43876a[_0x1091f1('0x1202')]=_0x23e024,_0x43876a[_0x1091f1('0x143f')]=_0x3439b1,_0x43876a[_0x1091f1('0x1d53')]=_0x43876a[_0x1091f1('0x143f')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x43876a[_0x1091f1('0x18cc')]=_0x5b525d['protocol']()+_0x1091f1('0x356')+_0x5b525d[_0x1091f1('0x160c')](),_0x43876a['plugin']=_0x22da3d||_0x5413b5[_0x1091f1('0x25cf')][_0x1091f1('0x19a4')]||{},_0x43876a[_0x1091f1('0x1a50')]=_0xf9edf0&&_0xf9edf0[_0x1091f1('0xd15')]==0x1?_0xf9edf0[_0x1091f1('0x580')][0x0]:null,_0x43876a[_0x1091f1('0xada')]=_0x298611[_0x1091f1('0xffd')](_0x43876a[_0x1091f1('0x1a50')]?_0x43876a[_0x1091f1('0x1a50')][_0x1091f1('0xada')]:null),_0x43876a[_0x1091f1('0x9f0')]={},_0x43876a[_0x1091f1('0xe5c')]=_0x5413b5['params'][_0x1091f1('0x25c2')]||0x0,_0x43876a['alert']=_0x37fa33[_0x1091f1('0x3a1')],_0x43876a[_0x1091f1('0x24c0')]=_0x251ecf,_0x43876a['savePlugin']=_0x10a492;function _0x251ecf(){var _0x52dd9b=_0x1091f1;_0x5413b5['go'](_0x52dd9b('0xb16'),{},{'reload':_0x52dd9b('0xb16')});}function _0x10a492(){var _0x34965b=_0x1091f1;_0x11f86b[_0x34965b('0x19a4')]['update']({'id':_0x43876a[_0x34965b('0x19a4')]['id']},_0x43876a[_0x34965b('0x19a4')])['$promise'][_0x34965b('0xaa5')](function(){var _0x28b4db=_0x34965b;_0x37fa33[_0x28b4db('0xe10')]({'title':'Plugin\x20updated!','msg':_0x43876a[_0x28b4db('0x19a4')]['name']?_0x43876a[_0x28b4db('0x19a4')][_0x28b4db('0x25d6')]+_0x28b4db('0x1734'):''});})[_0x34965b('0x253d')](function(_0x4ff206){var _0x25bff6=_0x34965b;_0x37fa33[_0x25bff6('0x187f')]({'title':_0x4ff206[_0x25bff6('0x2fa')]?_0x25bff6('0x16c2')+_0x4ff206['status']+_0x25bff6('0x169e')+_0x4ff206[_0x25bff6('0x24df')]:'SYSTEM:GETplugin','msg':_0x4ff206[_0x25bff6('0x10fd')]?JSON['stringify'](_0x4ff206[_0x25bff6('0x10fd')]):_0x4ff206[_0x25bff6('0x684')]()});});}}const _0x3d6f2f=_0x133dc2,_0x43786c=_0x4fb511['p']+_0x1a8446('0x12cd'),_0x4f9dd7=_0x4fb511['p']+_0x1a8446('0x45e');_0x2a240e[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0x1eea'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),_0x1a8446('0x2a4'),'Auth','license',_0x1a8446('0x143f')];function _0x2a240e(_0x45c0ed,_0x5f5c9c,_0x44a2d7,_0x375049,_0x1ee9ff,_0x2eb47b,_0x1beb59,_0x2f013d,_0xf9b60b,_0x1a332c,_0x314577,_0x49ef02,_0x29eadb,_0x5dd987,_0x100800,_0x1636ca,_0x1e91c9){var _0x53539f=_0x1a8446,_0x425346=this;_0x425346['license']=_0x1636ca,_0x425346[_0x53539f('0x143f')]=_0x1e91c9,_0x425346['currentUser']=_0x100800[_0x53539f('0xacc')](),_0x425346[_0x53539f('0x1eea')]=_0xf9b60b||{'count':0x0,'rows':[]},_0x425346[_0x53539f('0x1e97')]=_0x1a332c,_0x425346[_0x53539f('0x1a50')]=_0x314577&&_0x314577['count']==0x1?_0x314577[_0x53539f('0x580')][0x0]:null,_0x425346[_0x53539f('0xada')]=_0x100800[_0x53539f('0xffd')](_0x425346['userProfileSection']?_0x425346[_0x53539f('0x1a50')][_0x53539f('0xada')]:null),_0x425346[_0x53539f('0x12b6')]=_0x53539f('0x1eea'),_0x425346[_0x53539f('0x164')]='',_0x425346['listOrderAsc']=null,_0x425346[_0x53539f('0x1079')]=[],_0x425346['query']={'fields':_0x53539f('0x15ca'),'sort':_0x53539f('0x25d6'),'limit':0xa,'page':0x1},_0x425346[_0x53539f('0x18a7')]=![],_0x425346['arraysidebar']=_0x51538b()[_0x53539f('0x184a')]([{'option':'Always','value':_0x53539f('0x1dc8')},{'option':_0x53539f('0x185a'),'value':_0x53539f('0xfaa')},{'option':_0x53539f('0x1b35'),'value':'\x27agentOnly\x27'},{'option':_0x53539f('0x2ba'),'value':_0x53539f('0x1781')}],function(_0x3d27d3){var _0x550de2=_0x53539f;return _0x51538b()[_0x550de2('0x170d')](_0x3d27d3[_0x550de2('0x12f4')],new RegExp('\x27','g'),'');}),_0x425346[_0x53539f('0x2564')]=_0x5b9a1a,_0x425346['editstate']=_0x5befda,_0x425346['stopplugin']=_0x45c79d,_0x425346[_0x53539f('0x2394')]=_0x1a3b43,_0x425346[_0x53539f('0xe22')]=_0x5a796d,_0x425346[_0x53539f('0x2aa')]=_0x33935e,_0x425346[_0x53539f('0x271')]=_0xfb828,_0x425346[_0x53539f('0xe10')]=_0x1e9264,_0x425346[_0x53539f('0xee9')]=_0x2234e7,_0x425346[_0x53539f('0x1f92')]=_0x503b33,_0x425346[_0x53539f('0xb73')]=_0x2b59b9,_0x425346[_0x53539f('0x1a82')]=_0x5ad796,_0x425346['deleteSelectedPlugins']=_0x48d67d,_0x425346[_0x53539f('0x13b0')]=_0x1198d8,_0x425346[_0x53539f('0x21')]=_0x59660d,_0x425346[_0x53539f('0x189c')]=_0x5e85b3;function _0x5b9a1a(_0x5babf7){var _0x2b3f64=_0x53539f;if(_0x5babf7[_0x2b3f64('0x6c8')]==='script')_0x425346['installing']=!![],_0x49ef02[_0x2b3f64('0xb00')][_0x2b3f64('0x242b')]({'name':_0x5babf7[_0x2b3f64('0x1016')],'script':_0x5babf7[_0x2b3f64('0x1673')]+'/'+_0x5babf7[_0x2b3f64('0x69b')]})[_0x2b3f64('0x1dc2')][_0x2b3f64('0xaa5')](function(){var _0x34c26e=_0x2b3f64;return _0x5babf7['active']=!![],_0x49ef02['plugin'][_0x34c26e('0x264e')]({'id':_0x5babf7['id']},_0x5babf7)[_0x34c26e('0x1dc2')];})[_0x2b3f64('0xaa5')](function(){var _0x2d6b5f=_0x2b3f64;_0x425346[_0x2d6b5f('0x18a7')]=![],_0x5dd987[_0x2d6b5f('0xe10')]({'title':_0x2d6b5f('0x1139'),'msg':_0x5babf7['name']?_0x5babf7[_0x2d6b5f('0x25d6')]+_0x2d6b5f('0x45b'):''});})['catch'](function(_0x4b580f){var _0x9ce0a6=_0x2b3f64;if(_0x4b580f['data']&&_0x4b580f[_0x9ce0a6('0x10fd')]['errors']&&_0x4b580f[_0x9ce0a6('0x10fd')][_0x9ce0a6('0x4c6')][_0x9ce0a6('0x2587')]){_0x425346['errors']=_0x4b580f[_0x9ce0a6('0x10fd')][_0x9ce0a6('0x4c6')]||[{'message':_0x4b580f['toString'](),'type':_0x9ce0a6('0x7a1')}];for(var _0x4d3ab5=0x0;_0x4d3ab5<_0x4b580f['data'][_0x9ce0a6('0x4c6')][_0x9ce0a6('0x2587')];_0x4d3ab5++){_0x5dd987[_0x9ce0a6('0x187f')]({'title':_0x4b580f[_0x9ce0a6('0x10fd')]['errors'][_0x4d3ab5][_0x9ce0a6('0x6c8')],'msg':_0x4b580f[_0x9ce0a6('0x10fd')][_0x9ce0a6('0x4c6')][_0x4d3ab5][_0x9ce0a6('0x1402')]});}}else _0x5dd987[_0x9ce0a6('0x187f')]({'title':_0x4b580f[_0x9ce0a6('0x2fa')]?_0x9ce0a6('0x16c2')+_0x4b580f['status']+_0x9ce0a6('0x169e')+_0x4b580f[_0x9ce0a6('0x24df')]:'api.pm2.save','msg':_0x4b580f[_0x9ce0a6('0x10fd')]?JSON['stringify'](_0x4b580f[_0x9ce0a6('0x10fd')][_0x9ce0a6('0x1402')]):_0x4b580f[_0x9ce0a6('0x1402')]||_0x4b580f['toString']()});});else return _0x5babf7[_0x2b3f64('0xb3a')]=!![],_0x49ef02[_0x2b3f64('0x19a4')][_0x2b3f64('0x264e')]({'id':_0x5babf7['id']},_0x5babf7)[_0x2b3f64('0x1dc2')][_0x2b3f64('0xaa5')](function(){var _0x5c7f87=_0x2b3f64;_0x5dd987['success']({'title':'Plugin\x20installed!','msg':_0x5babf7[_0x5c7f87('0x25d6')]?_0x5babf7[_0x5c7f87('0x25d6')]+_0x5c7f87('0x45b'):''});})[_0x2b3f64('0x253d')](function(_0x19eb31){var _0x1e04bb=_0x2b3f64;if(_0x19eb31['data']&&_0x19eb31[_0x1e04bb('0x10fd')]['errors']&&_0x19eb31[_0x1e04bb('0x10fd')][_0x1e04bb('0x4c6')]['length']){_0x425346[_0x1e04bb('0x4c6')]=_0x19eb31['data'][_0x1e04bb('0x4c6')]||[{'message':_0x19eb31[_0x1e04bb('0x684')](),'type':_0x1e04bb('0xb4e')}];for(var _0x1f6c57=0x0;_0x1f6c57<_0x19eb31[_0x1e04bb('0x10fd')][_0x1e04bb('0x4c6')][_0x1e04bb('0x2587')];_0x1f6c57++){_0x5dd987[_0x1e04bb('0x187f')]({'title':_0x19eb31[_0x1e04bb('0x10fd')][_0x1e04bb('0x4c6')][_0x1f6c57][_0x1e04bb('0x6c8')],'msg':_0x19eb31['data'][_0x1e04bb('0x4c6')][_0x1f6c57]['message']});}}else _0x5dd987[_0x1e04bb('0x187f')]({'title':_0x19eb31[_0x1e04bb('0x2fa')]?_0x1e04bb('0x16c2')+_0x19eb31[_0x1e04bb('0x2fa')]+_0x1e04bb('0x169e')+_0x19eb31['statusText']:_0x1e04bb('0xb4e'),'msg':_0x19eb31[_0x1e04bb('0x10fd')]?JSON[_0x1e04bb('0xa48')](_0x19eb31['data']['message']):_0x19eb31[_0x1e04bb('0x1402')]||_0x19eb31[_0x1e04bb('0x684')]()});});}function _0x5befda(_0x5a51d2){var _0x30add5=_0x53539f;_0x44a2d7['go']('app.marketplace.plugins.edit',{'id':_0x5a51d2['id'],'plugin':_0x5a51d2,'crudPermissions':_0x425346[_0x30add5('0xada')]});}function _0x45c79d(_0x1170bd,_0x4ada1b){var _0x1475c0=_0x53539f,_0x1b754a=_0x1ee9ff[_0x1475c0('0x281e')]()['title'](_0x1475c0('0x93d'))[_0x1475c0('0x102e')](_0x1475c0('0x389')+(_0x1170bd[_0x1475c0('0x25d6')]||'plugin')+''+'\x20attached\x20process\x20will\x20be\x20stoppped.')[_0x1475c0('0x5b5')](_0x1475c0('0x10d6'))[_0x1475c0('0x116d')](_0x4ada1b)['ok']('OK')[_0x1475c0('0x2030')](_0x1475c0('0x2410'));_0x1ee9ff[_0x1475c0('0x1e6d')](_0x1b754a)['then'](function(){_0x3489f4(_0x1170bd);},function(){var _0x14d7ae=_0x1475c0;console[_0x14d7ae('0x18d5')](_0x14d7ae('0x2410'));});}function _0x3489f4(_0x57e6bf){var _0x43a6db=_0x53539f;_0x49ef02['pm2']['get']()[_0x43a6db('0x1dc2')][_0x43a6db('0xaa5')](function(_0x305772){var _0x2bbd36=_0x43a6db;if(!_0x305772||!_0x305772[_0x2bbd36('0x580')])throw new Error(_0x2bbd36('0x1eef'));var _0x5aeffe=_0x51538b()['find'](_0x305772[_0x2bbd36('0x580')],{'name':_0x57e6bf[_0x2bbd36('0x1016')]});if(!_0x5aeffe)throw new Error('No\x20corresponding\x20process\x20found');_0x49ef02['pm2']['update']({'id':_0x5aeffe[_0x2bbd36('0x2372')],'status':'stopped'})[_0x2bbd36('0x1dc2')]['then'](function(){var _0x95d758=_0x2bbd36;_0x5dd987['success']({'title':_0x95d758('0x34d'),'msg':_0x95d758('0xfa1')});});})[_0x43a6db('0x253d')](function(_0x104ae4){var _0x4830bd=_0x43a6db;if(_0x104ae4[_0x4830bd('0x10fd')]&&_0x104ae4[_0x4830bd('0x10fd')][_0x4830bd('0x4c6')]&&_0x104ae4[_0x4830bd('0x10fd')][_0x4830bd('0x4c6')][_0x4830bd('0x2587')]){_0x425346['errors']=_0x104ae4[_0x4830bd('0x10fd')][_0x4830bd('0x4c6')]||[{'message':_0x104ae4[_0x4830bd('0x684')](),'type':_0x4830bd('0xcf8')}];for(var _0x246cec=0x0;_0x246cec<_0x104ae4[_0x4830bd('0x10fd')][_0x4830bd('0x4c6')][_0x4830bd('0x2587')];_0x246cec++){_0x5dd987[_0x4830bd('0x187f')]({'title':_0x104ae4['data'][_0x4830bd('0x4c6')][_0x246cec][_0x4830bd('0x6c8')],'msg':_0x104ae4[_0x4830bd('0x10fd')][_0x4830bd('0x4c6')][_0x246cec]['message']});}}else _0x5dd987[_0x4830bd('0x187f')]({'title':_0x104ae4['status']?_0x4830bd('0x16c2')+_0x104ae4['status']+_0x4830bd('0x169e')+_0x104ae4[_0x4830bd('0x24df')]:'api.pm2.update','msg':_0x104ae4[_0x4830bd('0x10fd')]?JSON['stringify'](_0x104ae4[_0x4830bd('0x10fd')][_0x4830bd('0x1402')]):_0x104ae4[_0x4830bd('0x1402')]||_0x104ae4['toString']()});});}function _0x1a3b43(_0x46f5ec,_0x3f7934){var _0x8a8621=_0x53539f,_0x39e7d6=_0x1ee9ff['confirm']()[_0x8a8621('0x110a')](_0x8a8621('0x88e'))[_0x8a8621('0x102e')](_0x8a8621('0x389')+(_0x46f5ec['name']||'plugin')+_0x8a8621('0x697')+'\x20attached\x20process\x20will\x20be\x20restarted.')[_0x8a8621('0x5b5')](_0x8a8621('0x10d8'))['targetEvent'](_0x3f7934)['ok']('OK')[_0x8a8621('0x2030')](_0x8a8621('0x2410'));_0x1ee9ff[_0x8a8621('0x1e6d')](_0x39e7d6)[_0x8a8621('0xaa5')](function(){_0x5bbb69(_0x46f5ec);},function(){var _0x11dc12=_0x8a8621;console[_0x11dc12('0x18d5')]('CANCEL');});}function _0x5bbb69(_0x5e4d16){var _0xd76aff=_0x53539f;_0x49ef02[_0xd76aff('0xb00')]['get']()[_0xd76aff('0x1dc2')][_0xd76aff('0xaa5')](function(_0x3d0776){var _0x1175d2=_0xd76aff;if(!_0x3d0776||!_0x3d0776[_0x1175d2('0x580')])throw new Error('Failed\x20to\x20retrieve\x20pm2\x20processes');var _0x5c46af=_0x51538b()[_0x1175d2('0xe9e')](_0x3d0776[_0x1175d2('0x580')],{'name':_0x5e4d16[_0x1175d2('0x1016')]});if(!_0x5c46af)throw new Error(_0x1175d2('0x430'));_0x49ef02['pm2'][_0x1175d2('0x264e')]({'id':_0x5c46af[_0x1175d2('0x2372')],'status':_0x1175d2('0x175')})['$promise'][_0x1175d2('0xaa5')](function(){var _0x15a403=_0x1175d2;_0x5dd987[_0x15a403('0xe10')]({'title':'Process\x20restarted!','msg':_0x15a403('0x118d')});});})[_0xd76aff('0x253d')](function(_0x4393cb){var _0x6bb9d7=_0xd76aff;if(_0x4393cb[_0x6bb9d7('0x10fd')]&&_0x4393cb[_0x6bb9d7('0x10fd')][_0x6bb9d7('0x4c6')]&&_0x4393cb[_0x6bb9d7('0x10fd')][_0x6bb9d7('0x4c6')][_0x6bb9d7('0x2587')]){_0x425346[_0x6bb9d7('0x4c6')]=_0x4393cb[_0x6bb9d7('0x10fd')][_0x6bb9d7('0x4c6')]||[{'message':_0x4393cb['toString'](),'type':_0x6bb9d7('0xcf8')}];for(var _0x31d445=0x0;_0x31d445<_0x4393cb[_0x6bb9d7('0x10fd')][_0x6bb9d7('0x4c6')][_0x6bb9d7('0x2587')];_0x31d445++){_0x5dd987['error']({'title':_0x4393cb[_0x6bb9d7('0x10fd')][_0x6bb9d7('0x4c6')][_0x31d445][_0x6bb9d7('0x6c8')],'msg':_0x4393cb[_0x6bb9d7('0x10fd')][_0x6bb9d7('0x4c6')][_0x31d445]['message']});}}else _0x5dd987[_0x6bb9d7('0x187f')]({'title':_0x4393cb[_0x6bb9d7('0x2fa')]?_0x6bb9d7('0x16c2')+_0x4393cb['status']+'\x20-\x20'+_0x4393cb['statusText']:_0x6bb9d7('0xcf8'),'msg':_0x4393cb['data']?JSON[_0x6bb9d7('0xa48')](_0x4393cb[_0x6bb9d7('0x10fd')][_0x6bb9d7('0x1402')]):_0x4393cb[_0x6bb9d7('0x1402')]||_0x4393cb[_0x6bb9d7('0x684')]()});});}function _0x5a796d(_0x444985){var _0x317320=_0x53539f;return _0x49ef02[_0x317320('0x19a4')][_0x317320('0x1cf9')]({'id':_0x444985['id']})[_0x317320('0x1dc2')]['then'](function(_0x221c74){var _0x492342=_0x317320,_0x357a45=[_0x221c74[_0x492342('0x1bf1')]],_0x1002dc='download',_0x17f04c=new Blob(_0x357a45,{'type':_0x221c74[_0x492342('0x6c8')]});_0x1002dc=_0x444985[_0x492342('0x25d6')]['replace']('\x20','_')[_0x492342('0xcf6')]()+_0x492342('0x966');var _0x4df96d=window[_0x492342('0x12aa')]['createElement']('a');_0x4df96d[_0x492342('0x107b')](_0x492342('0x18ae'),URL[_0x492342('0x1e56')](_0x17f04c)),_0x4df96d[_0x492342('0x107b')](_0x492342('0x1cf9'),_0x1002dc),document[_0x492342('0x54c')][_0x492342('0x1315')](_0x4df96d),_0x4df96d[_0x492342('0x467')]();})[_0x317320('0x253d')](function(_0x566385){var _0x63cbbe=_0x317320;if(_0x566385[_0x63cbbe('0x10fd')]&&_0x566385[_0x63cbbe('0x10fd')][_0x63cbbe('0x4c6')]&&_0x566385[_0x63cbbe('0x10fd')][_0x63cbbe('0x4c6')]['length'])for(var _0x49392f=0x0;_0x49392f<_0x566385[_0x63cbbe('0x10fd')]['errors']['length'];_0x49392f++){_0x5dd987['error']({'title':_0x566385[_0x63cbbe('0x10fd')][_0x63cbbe('0x4c6')][_0x49392f][_0x63cbbe('0x6c8')],'msg':_0x566385[_0x63cbbe('0x10fd')][_0x63cbbe('0x4c6')][_0x49392f][_0x63cbbe('0x1402')]});}else _0x5dd987['error']({'title':_0x566385[_0x63cbbe('0x2fa')]?'API:'+_0x566385['status']+_0x63cbbe('0x169e')+_0x566385[_0x63cbbe('0x24df')]:'api.plugin.save','msg':_0x566385[_0x63cbbe('0x10fd')]?JSON[_0x63cbbe('0xa48')](_0x566385['data'][_0x63cbbe('0x1402')]):_0x566385[_0x63cbbe('0x684')]()});});}function _0x33935e(_0x334880,_0x5a1434){var _0x5ce617=_0x53539f,_0x529464=_0x1ee9ff['confirm']()[_0x5ce617('0x110a')](_0x5ce617('0x6d8'))['htmlContent'](''+(_0x334880[_0x5ce617('0x25d6')]||_0x5ce617('0x19a4'))+''+_0x5ce617('0x1af2'))[_0x5ce617('0x5b5')](_0x5ce617('0x6c2'))[_0x5ce617('0x116d')](_0x5a1434)['ok']('OK')[_0x5ce617('0x2030')](_0x5ce617('0x2410'));_0x1ee9ff['show'](_0x529464)[_0x5ce617('0xaa5')](function(){_0x1ac02f(_0x334880);},function(){var _0x5e9fe4=_0x5ce617;console[_0x5e9fe4('0x18d5')]('CANCEL');});}function _0x1ac02f(_0x1f1505){var _0x334fa1=_0x53539f;return _0x1f1505[_0x334fa1('0x6c8')]===_0x334fa1('0xfde')&&_0x49ef02['pm2'][_0x334fa1('0x2122')]()['$promise'][_0x334fa1('0xaa5')](function(_0x4835a4){var _0x4bf29d=_0x334fa1;if(!_0x4835a4||!_0x4835a4['rows'])throw new Error(_0x4bf29d('0x1eef'));var _0x10a13b=_0x51538b()[_0x4bf29d('0xe9e')](_0x4835a4[_0x4bf29d('0x580')],{'name':_0x1f1505[_0x4bf29d('0x1016')]});if(!_0x10a13b)throw new Error(_0x4bf29d('0x430'));_0x49ef02[_0x4bf29d('0xb00')][_0x4bf29d('0x926')]({'id':_0x10a13b['pm_id'],'name':_0x1f1505[_0x4bf29d('0x1016')]})['$promise'];})[_0x334fa1('0x253d')](function(_0x395bc6){var _0x2db9d8=_0x334fa1;_0x5dd987[_0x2db9d8('0x187f')]({'title':_0x395bc6[_0x2db9d8('0x2fa')]?_0x2db9d8('0x16c2')+_0x395bc6[_0x2db9d8('0x2fa')]+'\x20-\x20'+_0x395bc6['statusText']:_0x2db9d8('0x11bc'),'msg':_0x395bc6['data']?JSON[_0x2db9d8('0xa48')](_0x395bc6[_0x2db9d8('0x10fd')][_0x2db9d8('0x1402')]):_0x395bc6['message']||_0x395bc6[_0x2db9d8('0x684')]()});}),_0x1f1505[_0x334fa1('0xb3a')]=![],_0x49ef02[_0x334fa1('0x19a4')][_0x334fa1('0x264e')]({'id':_0x1f1505['id']},_0x1f1505)[_0x334fa1('0x1dc2')][_0x334fa1('0xaa5')](function(){var _0x4892b1=_0x334fa1;_0x5dd987[_0x4892b1('0xe10')]({'title':_0x4892b1('0x1357'),'msg':_0x1f1505['name']?_0x1f1505[_0x4892b1('0x25d6')]+_0x4892b1('0x1851'):''});})['catch'](function(_0x2ac4ba){var _0xd5de51=_0x334fa1;if(_0x2ac4ba[_0xd5de51('0x10fd')]&&_0x2ac4ba['data'][_0xd5de51('0x4c6')]&&_0x2ac4ba[_0xd5de51('0x10fd')][_0xd5de51('0x4c6')]['length']){_0x425346[_0xd5de51('0x4c6')]=_0x2ac4ba[_0xd5de51('0x10fd')][_0xd5de51('0x4c6')]||[{'message':_0x2ac4ba[_0xd5de51('0x684')](),'type':'api.plugin.update'}];for(var _0x2bfac2=0x0;_0x2bfac2<_0x2ac4ba[_0xd5de51('0x10fd')][_0xd5de51('0x4c6')][_0xd5de51('0x2587')];_0x2bfac2++){_0x5dd987['error']({'title':_0x2ac4ba[_0xd5de51('0x10fd')][_0xd5de51('0x4c6')][_0x2bfac2]['type'],'msg':_0x2ac4ba['data'][_0xd5de51('0x4c6')][_0x2bfac2][_0xd5de51('0x1402')]});}}else _0x5dd987[_0xd5de51('0x187f')]({'title':_0x2ac4ba['status']?'API:'+_0x2ac4ba[_0xd5de51('0x2fa')]+_0xd5de51('0x169e')+_0x2ac4ba[_0xd5de51('0x24df')]:_0xd5de51('0xb4e'),'msg':_0x2ac4ba[_0xd5de51('0x10fd')]?JSON[_0xd5de51('0xa48')](_0x2ac4ba[_0xd5de51('0x10fd')]['message']):_0x2ac4ba['message']||_0x2ac4ba[_0xd5de51('0x684')]()});});}function _0xfb828(_0x1a1edf,_0x2bbc30){var _0x30c04a=_0x53539f,_0x5434e4=_0x1ee9ff['confirm']()[_0x30c04a('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x30c04a('0x196a')](_0x30c04a('0x19a4'))+'?')['htmlContent'](_0x30c04a('0x389')+(_0x1a1edf['name']||'plugin')+_0x30c04a('0x697')+_0x30c04a('0x210d'))[_0x30c04a('0x5b5')](_0x30c04a('0x198a'))['targetEvent'](_0x2bbc30)['ok']('OK')[_0x30c04a('0x2030')](_0x30c04a('0x2410'));_0x1ee9ff[_0x30c04a('0x1e6d')](_0x5434e4)[_0x30c04a('0xaa5')](function(){_0x2b59b9(_0x1a1edf);},function(){var _0x403c25=_0x30c04a;console[_0x403c25('0x18d5')](_0x403c25('0x2410'));});}var _0x4189cf=!![],_0x5088fc=0x1;_0x45c0ed[_0x53539f('0x1ccf')](_0x53539f('0x1788'),function(_0x252b31,_0x1e7d4b){var _0x1a7fab=_0x53539f;_0x4189cf?_0x1beb59(function(){_0x4189cf=![];}):(!_0x1e7d4b&&(_0x5088fc=_0x425346['query'][_0x1a7fab('0x41')]),_0x252b31!==_0x1e7d4b&&(_0x425346[_0x1a7fab('0x582')]['page']=0x1),!_0x252b31&&(_0x425346[_0x1a7fab('0x582')][_0x1a7fab('0x41')]=_0x5088fc),_0x425346[_0x1a7fab('0xee9')]());});function _0x1e9264(_0x4e3575){var _0x356a9b=_0x53539f;_0x425346[_0x356a9b('0x1eea')]=_0x4e3575||{'count':0x0,'rows':[]};}function _0x2234e7(){var _0x2e1ca3=_0x53539f;_0x425346[_0x2e1ca3('0x582')][_0x2e1ca3('0x8b1')]=(_0x425346[_0x2e1ca3('0x582')][_0x2e1ca3('0x41')]-0x1)*_0x425346[_0x2e1ca3('0x582')]['limit'],_0x100800[_0x2e1ca3('0x26e8')](_0x2e1ca3('0x178b'))?_0x425346[_0x2e1ca3('0x159a')]=_0x49ef02['plugin'][_0x2e1ca3('0x2122')](_0x425346['query'],_0x1e9264)['$promise']:(_0x425346[_0x2e1ca3('0x582')]['id']=_0x425346[_0x2e1ca3('0x1e97')]['id'],_0x425346['query'][_0x2e1ca3('0x224d')]=_0x2e1ca3('0x2271'),_0x425346['promise']=_0x49ef02['userProfile'][_0x2e1ca3('0x1cf1')](_0x425346[_0x2e1ca3('0x582')],_0x1e9264)[_0x2e1ca3('0x1dc2')]);}function _0x503b33(_0x285c23,_0x430703){var _0x2da5a0=_0x53539f;_0x1ee9ff[_0x2da5a0('0x1e6d')]({'controller':_0x2da5a0('0x1d7b'),'controllerAs':'vm','templateUrl':_0x43786c,'parent':angular[_0x2da5a0('0x1aa8')](_0x2eb47b[_0x2da5a0('0x54c')]),'targetEvent':_0x285c23,'clickOutsideToClose':!![],'locals':{'plugin':_0x430703,'plugins':_0x425346[_0x2da5a0('0x1eea')][_0x2da5a0('0x580')],'license':_0x425346[_0x2da5a0('0x1202')],'setting':_0x425346['setting'],'crudPermissions':_0x425346[_0x2da5a0('0xada')]}});}function _0x2b59b9(_0x3fbf4e){var _0x2cbd02=_0x53539f;_0x3fbf4e[_0x2cbd02('0xb3a')]&&_0x3fbf4e[_0x2cbd02('0x6c8')]==_0x2cbd02('0xfde')&&_0x49ef02[_0x2cbd02('0xb00')][_0x2cbd02('0x2122')]()['$promise'][_0x2cbd02('0xaa5')](function(_0x3d5e10){var _0x5e9b4a=_0x2cbd02;if(!_0x3d5e10||!_0x3d5e10[_0x5e9b4a('0x580')])return _0x5dd987['error']({'title':_0x5e9b4a('0xf30'),'msg':'Failed\x20to\x20retrieve\x20pm2\x20processes'});var _0x1f84d2=_0x51538b()[_0x5e9b4a('0xe9e')](_0x3d5e10[_0x5e9b4a('0x580')],{'name':_0x3fbf4e[_0x5e9b4a('0x1016')]});if(!_0x1f84d2){console[_0x5e9b4a('0x18d5')]('No\x20\x27%s\x27\x20process\x20found',_0x3fbf4e[_0x5e9b4a('0x1016')]);return;}_0x49ef02[_0x5e9b4a('0xb00')][_0x5e9b4a('0x926')]({'id':_0x1f84d2[_0x5e9b4a('0x2372')],'name':_0x3fbf4e[_0x5e9b4a('0x1016')]})[_0x5e9b4a('0x1dc2')];})[_0x2cbd02('0x253d')](function(){var _0x266186=_0x2cbd02;return _0x5dd987[_0x266186('0x187f')]({'title':_0x266186('0x16e3'),'msg':_0x266186('0x537')});}),_0x49ef02[_0x2cbd02('0x19a4')][_0x2cbd02('0x926')]({'id':_0x3fbf4e['id']})[_0x2cbd02('0x1dc2')]['then'](function(){var _0x44008f=_0x2cbd02;_0x51538b()[_0x44008f('0xf6d')](_0x425346['plugins'][_0x44008f('0x580')],{'id':_0x3fbf4e['id']}),_0x425346['plugins'][_0x44008f('0xd15')]-=0x1,!_0x425346[_0x44008f('0x1eea')][_0x44008f('0x580')][_0x44008f('0x2587')]&&_0x425346[_0x44008f('0xee9')](),_0x5dd987[_0x44008f('0xe10')]({'title':_0x51538b()[_0x44008f('0x196a')]('Plugin')+_0x44008f('0x8bb'),'msg':_0x3fbf4e[_0x44008f('0x25d6')]?_0x3fbf4e['name']+'\x20has\x20been\x20deleted!':''});})[_0x2cbd02('0x253d')](function(_0x440a7c){var _0x108063=_0x2cbd02;if(_0x440a7c['data']&&_0x440a7c[_0x108063('0x10fd')][_0x108063('0x4c6')]&&_0x440a7c[_0x108063('0x10fd')]['errors']['length']){_0x425346[_0x108063('0x4c6')]=_0x440a7c['data']['errors']||[{'message':_0x440a7c[_0x108063('0x684')](),'type':'SYSTEM:DELETEplugin'}];for(var _0x4c0827=0x0;_0x4c0827<_0x440a7c[_0x108063('0x10fd')]['errors']['length'];_0x4c0827++){_0x5dd987[_0x108063('0x187f')]({'title':_0x440a7c[_0x108063('0x10fd')][_0x108063('0x4c6')][_0x4c0827][_0x108063('0x6c8')],'msg':_0x440a7c[_0x108063('0x10fd')][_0x108063('0x4c6')][_0x4c0827][_0x108063('0x1402')]});}}else _0x5dd987[_0x108063('0x187f')]({'title':_0x440a7c['status']?_0x108063('0x16c2')+_0x440a7c['status']+_0x108063('0x169e')+_0x440a7c[_0x108063('0x24df')]:'SYSTEM:DELETEplugin','msg':_0x440a7c[_0x108063('0x10fd')]?JSON[_0x108063('0xa48')](_0x440a7c[_0x108063('0x10fd')][_0x108063('0x1402')]):_0x440a7c[_0x108063('0x1402')]||_0x440a7c['toString']()});});}function _0x5ad796(){var _0x2b8f8d=_0x53539f,_0x3bce9c=angular[_0x2b8f8d('0x20a')](_0x425346[_0x2b8f8d('0x1079')]);return _0x425346[_0x2b8f8d('0x1079')]=[],_0x3bce9c;}function _0x48d67d(_0x3f631a){var _0xc846df=_0x53539f,_0x440c4f=_0x1ee9ff[_0xc846df('0x281e')]()[_0xc846df('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20plugins?')['htmlContent'](''+_0x425346[_0xc846df('0x1079')]['length']+_0xc846df('0x1443')+_0xc846df('0x210d'))[_0xc846df('0x5b5')]('delete\x20Plugins')[_0xc846df('0x116d')](_0x3f631a)['ok']('OK')[_0xc846df('0x2030')](_0xc846df('0x2410'));_0x1ee9ff['show'](_0x440c4f)[_0xc846df('0xaa5')](function(){var _0xb04db8=_0xc846df;_0x425346['selectedPlugins']['forEach'](function(_0x54797f){_0x2b59b9(_0x54797f);}),_0x425346[_0xb04db8('0x1079')]=[];});}function _0x1198d8(){_0x425346['selectedPlugins']=[];}function _0x59660d(){var _0x58e365=_0x53539f;_0x425346[_0x58e365('0x1079')]=_0x425346['plugins'][_0x58e365('0x580')];}function _0x5e85b3(_0x19defb){var _0x2558dc=_0x53539f;_0x1ee9ff['show']({'controller':_0x2558dc('0x1252'),'controllerAs':'vm','templateUrl':_0x4f9dd7,'parent':angular[_0x2558dc('0x1aa8')](_0x2eb47b['body']),'targetEvent':_0x19defb,'clickOutsideToClose':!![],'locals':{'plugins':_0x425346[_0x2558dc('0x1eea')][_0x2558dc('0x580')]}});}}const _0x17c13b=_0x2a240e;_0x9bf5ab[_0x1a8446('0x1e33')]=['$cookies',_0x1a8446('0x2378'),_0x1a8446('0x2a4'),_0x1a8446('0x1eea'),'api','Auth'];function _0x9bf5ab(_0x316da9,_0x12088b,_0x459233,_0x56b197,_0x5c6f3a,_0x5a04be){var _0x47fbd0=_0x1a8446,_0x1e0a39=this,_0x145883=0x2,_0x25edd3=_0x145883*0x400*0x400;_0x1e0a39['currentUser']=_0x5a04be[_0x47fbd0('0xacc')](),_0x1e0a39[_0x47fbd0('0x4c6')]=[],_0x1e0a39[_0x47fbd0('0x110a')]=_0x47fbd0('0x833'),_0x1e0a39['plugins']=_0x56b197,_0x1e0a39[_0x47fbd0('0x220c')]=[],_0x1e0a39[_0x47fbd0('0x7bb')]=_0x47fbd0('0x117'),_0x1e0a39[_0x47fbd0('0x19a4')]={},_0x1e0a39[_0x47fbd0('0x1c88')]={'maxChunkRetries':0x1,'chunkSize':_0x25edd3,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x47fbd0('0x21bd')},_0x1e0a39[_0x47fbd0('0x27cd')]={'flow':{}},_0x1e0a39[_0x47fbd0('0x258f')]=![],_0x1e0a39[_0x47fbd0('0x20d1')]=_0x281641,_0x1e0a39[_0x47fbd0('0x158b')]=_0x1970dd,_0x1e0a39[_0x47fbd0('0x1313')]=_0x9d03e4,_0x1e0a39[_0x47fbd0('0x1331')]=_0x592fb7,_0x1e0a39['uploadComplete']=_0x297e58,_0x1e0a39[_0x47fbd0('0x2023')]=_0x3d0ef3;function _0x281641(_0x53e64d){var _0x47f8ad=_0x47fbd0,_0x4c2a0c=[_0x47f8ad('0xead')];if(!_0x51538b()[_0x47f8ad('0x13d6')](_0x4c2a0c,_0x53e64d[_0x47f8ad('0x177a')]()))return _0x459233[_0x47f8ad('0x187f')]({'title':_0x47f8ad('0x7bf')+_0x53e64d[_0x47f8ad('0x177a')](),'msg':_0x47f8ad('0x88f')+_0x4c2a0c['join']()}),![];if(_0x53e64d[_0x47f8ad('0x9f9')]>_0x25edd3)return _0x459233[_0x47f8ad('0x187f')]({'title':_0x47f8ad('0xfad'),'msg':_0x47f8ad('0x15dd')+_0x145883+'MB'}),![];return _0x1e0a39[_0x47f8ad('0x19a4')]={'id':_0x53e64d['uniqueIdentifier'],'file':_0x53e64d},_0x1e0a39[_0x47f8ad('0x220c')][_0x47f8ad('0x6ee')](_0x1e0a39[_0x47f8ad('0x19a4')]),!![];}function _0x1970dd(){var _0x5b3c74=_0x47fbd0;_0x1e0a39[_0x5b3c74('0x7bb')]=_0x5b3c74('0x10d'),_0x1e0a39['ngFlow']['flow'][_0x5b3c74('0x177d')][_0x5b3c74('0xc71')]={'X-Requested-With':_0x5b3c74('0x1888'),'Authorization':_0x5b3c74('0x2070')+_0x316da9[_0x5b3c74('0x2122')](_0x5b3c74('0x10f8'))},_0x1e0a39[_0x5b3c74('0x27cd')][_0x5b3c74('0xcba')][_0x5b3c74('0x177d')][_0x5b3c74('0x582')]={'role':_0x1e0a39[_0x5b3c74('0x7fc')][_0x5b3c74('0x924')],'userProfileId':_0x1e0a39[_0x5b3c74('0x7fc')]['userProfileId']},_0x1e0a39[_0x5b3c74('0x27cd')][_0x5b3c74('0xcba')][_0x5b3c74('0x158b')]();}function _0x9d03e4(_0x40f575,_0x6caaf5){var _0x1ab5fc=_0x47fbd0;_0x1e0a39[_0x1ab5fc('0x1eea')]['unshift'](JSON[_0x1ab5fc('0x9b6')](_0x6caaf5)),angular[_0x1ab5fc('0x15b5')](_0x1e0a39[_0x1ab5fc('0x220c')],function(_0x370382){var _0x549e60=_0x1ab5fc;if(_0x370382['id']===_0x40f575[_0x549e60('0xd3c')]){var _0x22ba11=new FileReader();_0x22ba11[_0x549e60('0xc21')](_0x370382[_0x549e60('0x1945')][_0x549e60('0x1945')]),_0x22ba11['onload']=function(_0x29d2c8){var _0x56c086=_0x549e60;_0x370382[_0x56c086('0x2242')]=_0x29d2c8['target'][_0x56c086('0xcd6')];};}});}function _0x592fb7(){var _0xf15210=_0x47fbd0;_0x1e0a39[_0xf15210('0x27cd')][_0xf15210('0xcba')][_0xf15210('0x2030')](),_0x459233[_0xf15210('0x187f')]({'title':'Upload\x20error','msg':'Cannot\x20upload\x20the\x20plugin'}),_0x1e0a39['uploadState']=_0xf15210('0x40c');}function _0x297e58(){var _0x48e177=_0x47fbd0;_0x1e0a39[_0x48e177('0x7bb')]!==_0x48e177('0x40c')&&(_0x1e0a39[_0x48e177('0x7bb')]=_0x48e177('0xf6c'),_0x459233['success']({'title':_0x48e177('0x2802'),'msg':_0x1e0a39['plugin'][_0x48e177('0x1945')][_0x48e177('0x25d6')]+_0x48e177('0x1151')}));}function _0x3d0ef3(){var _0x26e481=_0x47fbd0;_0x12088b[_0x26e481('0x1120')]();}}const _0x44f4f2=_0x9bf5ab;_0xd46cdf[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0xd46cdf(_0x22346d,_0x5c4003){var _0x36441a=_0x1a8446;_0x22346d[_0x36441a('0xb46')](_0x36441a('0x1d51'),{'abstract':!![],'url':_0x36441a('0x1999')})[_0x36441a('0xb46')]('app.marketplace.plugins',{'url':_0x36441a('0x1e6c'),'views':{'content@app':{'templateUrl':_0x28de14,'controller':_0x36441a('0x2731')}},'resolve':{'plugins':[_0x36441a('0x1d16'),_0x36441a('0x1dfd'),function _0x36f943(_0x59596b,_0x3e4c9d){var _0x30ffed=_0x36441a;return _0x3e4c9d[_0x30ffed('0x26e8')](_0x30ffed('0x178b'))?_0x59596b[_0x30ffed('0x149f')](_0x30ffed('0x1214'),{'fields':_0x30ffed('0x15ca'),'sort':'name','limit':0xa,'offset':0x0}):_0x59596b[_0x30ffed('0x149f')]('userProfile@getResources',{'id':_0x3e4c9d[_0x30ffed('0xacc')]()[_0x30ffed('0x2168')],'section':_0x30ffed('0x2271'),'fields':_0x30ffed('0x15ca'),'sort':_0x30ffed('0x25d6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x36441a('0x1d16'),_0x36441a('0x1dfd'),function _0x3e1460(_0x2e80a3,_0x130c99){var _0x27492b=_0x36441a;return _0x130c99[_0x27492b('0x26e8')](_0x27492b('0x178b'))?null:_0x2e80a3['resolve']('userProfile@get',{'fields':_0x27492b('0x1bb0'),'id':_0x130c99[_0x27492b('0xacc')]()['userProfileId']});}],'userProfileSection':[_0x36441a('0x1d16'),'Auth',function _0x468a4b(_0x4c1871,_0x4be5f4){var _0x1e4e55=_0x36441a;return _0x4be5f4[_0x1e4e55('0x26e8')](_0x1e4e55('0x178b'))?null:_0x4c1871[_0x1e4e55('0x149f')](_0x1e4e55('0x89e'),{'fields':_0x1e4e55('0xe6a'),'userProfileId':_0x4be5f4[_0x1e4e55('0xacc')]()[_0x1e4e55('0x2168')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':'marketplace'})[_0x36441a('0xb46')](_0x36441a('0x218b'),{'url':'/:id?tab','params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x41856f,'controller':_0x36441a('0x1ef2')}},'resolve':{'plugin':['apiResolver',_0x36441a('0x703'),function _0x30c501(_0x2f5a8f,_0x1a27fa){var _0x54c772=_0x36441a;return _0x2f5a8f[_0x54c772('0x149f')](_0x54c772('0x1214'),{'fields':_0x54c772('0x15ca'),'id':_0x1a27fa['id']});}],'userProfileSection':[_0x36441a('0x1d16'),_0x36441a('0x1dfd'),function _0x5c323c(_0x4f9251,_0x75edad){var _0x261c31=_0x36441a;return _0x4f9251[_0x261c31('0x149f')](_0x261c31('0x89e'),{'fields':_0x261c31('0xe6a'),'userProfileId':_0x75edad[_0x261c31('0xacc')]()[_0x261c31('0x2168')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':'marketplace'}),_0x5c4003[_0x36441a('0x1de5')](_0x36441a('0x11ff'));}angular['module'](_0x1a8446('0x1d51'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),'flow',_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),'ng-sortable',_0x1a8446('0x150f'),'ngAnimate',_0x1a8446('0xd2d'),'mwFormBuilder','mwFormViewer',_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),'ngEmbed',_0x1a8446('0x14c'),_0x1a8446('0x2830'),_0x1a8446('0x1320'),'angular.filter'])[_0x1a8446('0x1b14')](_0xd46cdf)['controller'](_0x1a8446('0x1d7b'),_0x2cc047)[_0x1a8446('0x780')](_0x1a8446('0x23b4'),_0x3d6f2f)[_0x1a8446('0x780')](_0x1a8446('0x499'),_0x17c13b)[_0x1a8446('0x780')](_0x1a8446('0x1252'),_0x44f4f2);const _0x2c67be=_0x4fb511['p']+'src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin-[chunkhash].html';_0x411d03[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x51'),'$sce','api',_0x1a8446('0xe74'),_0x1a8446('0x1dfd')];function _0x411d03(_0x4c7192,_0x45b92c,_0x31f762,_0x5f4911,_0x4b6ff3,_0x2618d3){var _0x2656ac=_0x1a8446,_0xe1b596=this;_0xe1b596[_0x2656ac('0x7fc')]=_0x2618d3[_0x2656ac('0xacc')](),_0xe1b596[_0x2656ac('0x19a4')]={},_0xe1b596[_0x2656ac('0x1cf3')]=_0x5eca45,_0x5f4911[_0x2656ac('0x19a4')]['get']({'id':_0x4c7192[_0x2656ac('0x25cf')]['id']})[_0x2656ac('0x1dc2')][_0x2656ac('0xaa5')](function(_0x32022f){var _0xe1ee17=_0x2656ac;if(_0x32022f)return _0xe1b596[_0xe1ee17('0x19a4')]=_0x32022f,_0x5f4911[_0xe1ee17('0x19a4')][_0xe1ee17('0x2122')]({'id':_0xe1b596[_0xe1ee17('0x19a4')]['id']})[_0xe1ee17('0x1dc2')];})[_0x2656ac('0x253d')](function(){_0xe1b596['plugin']=undefined;});function _0x5eca45(){var _0x5141ac=_0x2656ac;return _0x31f762[_0x5141ac('0x13cb')](_0xe1b596['plugin']['adminUrl']);}}const _0xb64ad2=_0x411d03;_0x1312da['$inject']=[_0x1a8446('0x2ce')];function _0x1312da(_0x7e7a01){var _0x587cd6=_0x1a8446;_0x7e7a01[_0x587cd6('0xb46')](_0x587cd6('0xc6e'),{'url':_0x587cd6('0x909'),'views':{'content@app':{'templateUrl':_0x2c67be,'controller':_0x587cd6('0x2528')}},'resolve':{},'authenticate':!![],'bodyClass':_0x587cd6('0x1eea')});}angular[_0x1a8446('0x1f8d')](_0x1a8446('0xc6e'),[])[_0x1a8446('0x1b14')](_0x1312da)[_0x1a8446('0x780')]('PluginController',_0xb64ad2),_0x5746e1[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),'$translatePartialLoaderProvider'];function _0x5746e1(_0x5592d4,_0x46124d){var _0x27f55d=_0x1a8446;_0x5592d4['state']('app.plugins',{'abstract':!![],'url':'/plugins'}),_0x46124d['addPart'](_0x27f55d('0x1f0f'));}angular['module'](_0x1a8446('0x669'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),'md.data.table',_0x1a8446('0xcba'),'mdColorPicker',_0x1a8446('0x23ee'),_0x1a8446('0xb89'),_0x1a8446('0x150f'),_0x1a8446('0x110'),_0x1a8446('0xd2d'),_0x1a8446('0xd5c'),_0x1a8446('0x1ec2'),_0x1a8446('0x20b4'),_0x1a8446('0x112'),'angular-cron-jobs',_0x1a8446('0xe8b'),'angularMaterialFormBuilder',_0x1a8446('0x2830'),_0x1a8446('0x1320'),_0x1a8446('0x775'),_0x1a8446('0xc6e')])['config'](_0x5746e1);const _0x321f33=_0x4fb511['p']+_0x1a8446('0xe6c');_0x4b6829[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x893'),'screenRecording',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x4b6829(_0x471377,_0x51b8ec,_0x3e671c,_0x2648da,_0x4b0ccb,_0x3df6f5,_0x13dbdd,_0x57e945,_0x2b0b2e,_0x249902,_0x37b72f,_0x4d9f7f,_0x5bd4a3,_0x2f045d){var _0xd57464=_0x1a8446,_0x4302a2=this;_0x4302a2['currentUser']=_0x37b72f[_0xd57464('0xacc')](),_0x4302a2['errors']=[],_0x4302a2[_0xd57464('0x143f')]=_0x5bd4a3,_0x4302a2[_0xd57464('0x1202')]=_0x4d9f7f,_0x4302a2[_0xd57464('0xada')]=_0x2f045d,_0x4302a2[_0xd57464('0x9f0')]={},_0x4302a2[_0xd57464('0x1d53')]=_0x4302a2[_0xd57464('0x143f')]&&_0x4302a2[_0xd57464('0x143f')][_0xd57464('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4302a2[_0xd57464('0x110a')]=_0xd57464('0x1b80'),_0x4302a2[_0xd57464('0x15eb')]=angular[_0xd57464('0x20a')](_0x2b0b2e),_0x4302a2[_0xd57464('0x893')]=_0x57e945,_0x4302a2[_0xd57464('0x128b')]=![];!_0x4302a2[_0xd57464('0x15eb')]&&(_0x4302a2[_0xd57464('0x15eb')]={},_0x4302a2[_0xd57464('0x110a')]=_0xd57464('0xb14'),_0x4302a2[_0xd57464('0x128b')]=!![]);_0x4302a2[_0xd57464('0x1b52')]=_0x2ceeea,_0x4302a2[_0xd57464('0x592')]=_0x363484,_0x4302a2[_0xd57464('0x1a2d')]=_0x21d71c,_0x4302a2['getDateFromString']=_0x34e67,_0x4302a2['closeDialog']=_0xef65ce,_0x249902['user'][_0xd57464('0x2122')]({'fields':_0xd57464('0x25ff'),'sort':_0xd57464('0x25d6'),'nolimit':_0xd57464('0x1c5c')})[_0xd57464('0x1dc2')][_0xd57464('0xaa5')](function(_0x598b62){var _0x57fe70=_0xd57464;_0x4302a2[_0x57fe70('0x2204')]=_0x598b62['rows']||[];})[_0xd57464('0x253d')](function(_0x4b3d5a){var _0x45229b=_0xd57464;_0x13dbdd['error']({'title':_0x4b3d5a[_0x45229b('0x2fa')]?_0x45229b('0x16c2')+_0x4b3d5a['status']+_0x45229b('0x169e')+_0x4b3d5a[_0x45229b('0x24df')]:_0x45229b('0x6eb'),'msg':_0x4b3d5a['data']?JSON[_0x45229b('0xa48')](_0x4b3d5a[_0x45229b('0x10fd')]):_0x4b3d5a[_0x45229b('0x684')]()});});function _0x2ceeea(){var _0x3ddee5=_0xd57464;_0x4302a2[_0x3ddee5('0x4c6')]=[],_0x249902[_0x3ddee5('0x15eb')][_0x3ddee5('0x242b')](_0x4302a2[_0x3ddee5('0x15eb')])[_0x3ddee5('0x1dc2')]['then'](function(_0x6f5b0){var _0x1fcabb=_0x3ddee5;_0x4302a2['screenRecordings'][_0x1fcabb('0x6ee')](_0x6f5b0[_0x1fcabb('0x256a')]()),_0x13dbdd[_0x1fcabb('0xe10')]({'title':_0x1fcabb('0xea'),'msg':_0x4302a2[_0x1fcabb('0x15eb')][_0x1fcabb('0x25d6')]?_0x4302a2[_0x1fcabb('0x15eb')][_0x1fcabb('0x25d6')]+_0x1fcabb('0xdca'):''}),_0xef65ce(_0x6f5b0);})[_0x3ddee5('0x253d')](function(_0x49e439){var _0x572887=_0x3ddee5;if(_0x49e439[_0x572887('0x10fd')]&&_0x49e439['data'][_0x572887('0x4c6')]&&_0x49e439[_0x572887('0x10fd')][_0x572887('0x4c6')]['length']){_0x4302a2[_0x572887('0x4c6')]=_0x49e439[_0x572887('0x10fd')][_0x572887('0x4c6')]||[{'message':_0x49e439[_0x572887('0x684')](),'type':_0x572887('0x1b15')}];for(var _0xc554ac=0x0;_0xc554ac<_0x49e439[_0x572887('0x10fd')][_0x572887('0x4c6')][_0x572887('0x2587')];_0xc554ac+=0x1){_0x13dbdd[_0x572887('0x187f')]({'title':_0x49e439[_0x572887('0x10fd')][_0x572887('0x4c6')][_0xc554ac][_0x572887('0x6c8')],'msg':_0x49e439[_0x572887('0x10fd')][_0x572887('0x4c6')][_0xc554ac][_0x572887('0x1402')]});}}else _0x13dbdd[_0x572887('0x187f')]({'title':_0x49e439[_0x572887('0x2fa')]?_0x572887('0x16c2')+_0x49e439[_0x572887('0x2fa')]+_0x572887('0x169e')+_0x49e439['statusText']:_0x572887('0x1b15'),'msg':_0x49e439[_0x572887('0x10fd')]?JSON[_0x572887('0xa48')](_0x49e439[_0x572887('0x10fd')][_0x572887('0x1402')]):_0x49e439[_0x572887('0x684')]()});});}function _0x363484(){var _0x48e442=_0xd57464;_0x4302a2[_0x48e442('0x4c6')]=[],_0x249902[_0x48e442('0x15eb')][_0x48e442('0x264e')]({'id':_0x4302a2[_0x48e442('0x15eb')]['id']},_0x4302a2[_0x48e442('0x15eb')])[_0x48e442('0x1dc2')]['then'](function(_0x3e6015){var _0x222443=_0x48e442,_0x5b19d5=_0x51538b()['find'](_0x4302a2[_0x222443('0x893')],{'id':_0x3e6015['id']});_0x5b19d5&&_0x51538b()[_0x222443('0x283c')](_0x5b19d5,_0x51538b()[_0x222443('0x104e')](_0x3e6015[_0x222443('0x256a')](),_0x51538b()[_0x222443('0x9f2')](_0x5b19d5))),_0x13dbdd[_0x222443('0xe10')]({'title':'screenRecording\x20properly\x20saved!','msg':_0x4302a2['screenRecording'][_0x222443('0x25d6')]?_0x4302a2['screenRecording']['name']+_0x222443('0x20bf'):''}),_0xef65ce(_0x3e6015);})[_0x48e442('0x253d')](function(_0x382624){var _0x3c2f34=_0x48e442;if(_0x382624[_0x3c2f34('0x10fd')]&&_0x382624[_0x3c2f34('0x10fd')]['errors']&&_0x382624['data'][_0x3c2f34('0x4c6')]['length']){_0x4302a2[_0x3c2f34('0x4c6')]=_0x382624[_0x3c2f34('0x10fd')][_0x3c2f34('0x4c6')]||[{'message':_0x382624[_0x3c2f34('0x684')](),'type':'api.screenRecording.update'}];for(var _0x1e1637=0x0;_0x1e1637<_0x382624[_0x3c2f34('0x10fd')][_0x3c2f34('0x4c6')][_0x3c2f34('0x2587')];_0x1e1637++){_0x13dbdd[_0x3c2f34('0x187f')]({'title':_0x382624[_0x3c2f34('0x10fd')][_0x3c2f34('0x4c6')][_0x1e1637][_0x3c2f34('0x6c8')],'msg':_0x382624[_0x3c2f34('0x10fd')]['errors'][_0x1e1637][_0x3c2f34('0x1402')]});}}else _0x13dbdd[_0x3c2f34('0x187f')]({'title':_0x382624['status']?_0x3c2f34('0x16c2')+_0x382624[_0x3c2f34('0x2fa')]+'\x20-\x20'+_0x382624[_0x3c2f34('0x24df')]:'api.screenRecording.update','msg':_0x382624[_0x3c2f34('0x10fd')]?JSON[_0x3c2f34('0xa48')](_0x382624['data'][_0x3c2f34('0x1402')]):_0x382624[_0x3c2f34('0x684')]()});});}function _0x21d71c(_0x328b72){var _0xdb97b7=_0xd57464;_0x4302a2[_0xdb97b7('0x4c6')]=[];var _0x158f10=_0x2648da[_0xdb97b7('0x281e')]()[_0xdb97b7('0x110a')]('Are\x20you\x20sure?')[_0xdb97b7('0x15af')]('The\x20screenRecording\x20will\x20be\x20deleted.')[_0xdb97b7('0x5b5')]('Delete\x20screenRecording')['ok'](_0xdb97b7('0x1e76'))[_0xdb97b7('0x2030')](_0xdb97b7('0x9c6'))[_0xdb97b7('0x116d')](_0x328b72);_0x2648da[_0xdb97b7('0x1e6d')](_0x158f10)[_0xdb97b7('0xaa5')](function(){var _0x26775c=_0xdb97b7;_0x249902[_0x26775c('0x15eb')][_0x26775c('0x926')]({'id':_0x4302a2[_0x26775c('0x15eb')]['id']})[_0x26775c('0x1dc2')][_0x26775c('0xaa5')](function(){var _0x2d2809=_0x26775c;_0x51538b()[_0x2d2809('0xf6d')](_0x4302a2['screenRecordings'],{'id':_0x4302a2[_0x2d2809('0x15eb')]['id']}),_0x13dbdd[_0x2d2809('0xe10')]({'title':'screenRecording\x20properly\x20deleted!','msg':(_0x4302a2[_0x2d2809('0x15eb')][_0x2d2809('0x25d6')]||_0x2d2809('0x15eb'))+_0x2d2809('0xcd9')}),_0xef65ce(_0x4302a2[_0x2d2809('0x15eb')]);})['catch'](function(_0x2bc084){var _0x1231b1=_0x26775c;if(_0x2bc084[_0x1231b1('0x10fd')]&&_0x2bc084[_0x1231b1('0x10fd')][_0x1231b1('0x4c6')]&&_0x2bc084['data']['errors'][_0x1231b1('0x2587')]){_0x4302a2[_0x1231b1('0x4c6')]=_0x2bc084[_0x1231b1('0x10fd')]['errors']||[{'message':_0x2bc084['toString'](),'type':'api.screenRecording.delete'}];for(var _0x52c132=0x0;_0x52c132<_0x2bc084['data'][_0x1231b1('0x4c6')]['length'];_0x52c132++){_0x13dbdd['error']({'title':_0x2bc084[_0x1231b1('0x10fd')][_0x1231b1('0x4c6')][_0x52c132][_0x1231b1('0x6c8')],'msg':_0x2bc084['data']['errors'][_0x52c132][_0x1231b1('0x1402')]});}}else _0x13dbdd[_0x1231b1('0x187f')]({'title':_0x2bc084[_0x1231b1('0x2fa')]?'API:'+_0x2bc084['status']+'\x20-\x20'+_0x2bc084[_0x1231b1('0x24df')]:_0x1231b1('0x2063'),'msg':_0x2bc084[_0x1231b1('0x10fd')]?JSON[_0x1231b1('0xa48')](_0x2bc084['data']['message']):_0x2bc084[_0x1231b1('0x1402')]||_0x2bc084[_0x1231b1('0x684')]()});});},function(){});}function _0x34e67(_0x3e228f){return _0x3e228f===null?undefined:new Date(_0x3e228f);}function _0xef65ce(_0x4494c5){var _0x5e21aa=_0xd57464;_0x2648da[_0x5e21aa('0x1120')](_0x4494c5);}}const _0x2494ad=_0x4b6829;_0x3cfd45[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x2378'),'toasty','api',_0x1a8446('0x1deb'),_0x1a8446('0x2415'),_0x1a8446('0x15f'),_0x1a8446('0x122b'),_0x1a8446('0xb99'),'$q'];function _0x3cfd45(_0x402099,_0x4bf03c,_0x262b25,_0x3461ad,_0x264efc,_0x187016,_0x296141,_0x5200d7,_0x19053c,_0xc2d1c6){var _0x52225c=_0x1a8446,_0x1167b3=this;_0x1167b3[_0x52225c('0x1aaa')]=![],_0x1167b3[_0x52225c('0x1deb')]=Object[_0x52225c('0x26ee')]({},_0x264efc),_0x1167b3[_0x52225c('0xbc0')]=_0x52225c('0x15eb'),_0x1167b3[_0x52225c('0x1aa8')]=_0x19053c,_0x1167b3[_0x52225c('0x2415')]=Object[_0x52225c('0x26ee')]({},_0x187016),_0x1167b3['path']=_0x5200d7,_0x1167b3[_0x52225c('0x15f')]=_0x296141,_0x1167b3[_0x52225c('0x9eb')]=_0x52225c('0x289'),_0x1167b3['model']=_0x52225c('0x15eb'),console[_0x52225c('0x18d5')]('TCL:\x20vm.path',_0x1167b3['path']),console[_0x52225c('0x18d5')](_0x52225c('0x17cf'),_0x1167b3[_0x52225c('0x1deb')][_0x1167b3[_0x52225c('0x1673')]]),_0x1167b3[_0x52225c('0x12c')]=_0x1167b3['recording'][_0x1167b3['path']][_0x52225c('0x1f38')]('/')>-0x1?_0x1167b3['recording'][_0x1167b3[_0x52225c('0x1673')]][_0x52225c('0xb10')](_0x1167b3[_0x52225c('0x1deb')][_0x1167b3[_0x52225c('0x1673')]]['lastIndexOf']('/')+0x1):_0x1167b3[_0x52225c('0x1deb')][_0x1167b3['path']][_0x52225c('0x1f38')]('\x5c')>-0x1?_0x1167b3[_0x52225c('0x1deb')][_0x1167b3[_0x52225c('0x1673')]][_0x52225c('0xb10')](_0x1167b3['recording'][_0x1167b3['path']][_0x52225c('0x1f68')]('\x5c')+0x1):_0x1167b3[_0x52225c('0x1deb')][_0x1167b3[_0x52225c('0x1673')]],_0x1167b3['format']=![];_0x51538b()[_0x52225c('0x89a')](_0x1167b3[_0x52225c('0x1deb')][_0x52225c('0x1f27')])&&(_0x1167b3[_0x52225c('0x1deb')]['format']=_0x1167b3[_0x52225c('0x12c')][_0x52225c('0x19aa')](_0x1167b3['filename'][_0x52225c('0x1f68')]('.')));(_0x1167b3[_0x52225c('0x1deb')][_0x52225c('0x1f27')]===_0x52225c('0x1153')&&_0x1167b3[_0x52225c('0x1aa8')]===_0x52225c('0xb59')||_0x1167b3['recording']['format']===_0x52225c('0x2671')&&_0x1167b3[_0x52225c('0x1aa8')]===_0x52225c('0x289'))&&(_0x1167b3[_0x52225c('0x1f27')]=!![]);_0x1167b3[_0x52225c('0xfd4')]=!![];_0x1167b3[_0x52225c('0x1f27')]&&_0x289974();function _0x289974(){var _0x283c95=_0x52225c,_0x3299b8=_0xc2d1c6[_0x283c95('0x213b')]();return _0x3461ad[_0x283c95('0x15eb')][_0x283c95('0x1cf9')]({'id':_0x1167b3[_0x283c95('0x1deb')]['id'],'path':String(_0x1167b3[_0x283c95('0x1673')])})[_0x283c95('0x1dc2')][_0x283c95('0xaa5')](function(){var _0x2c0932=_0x283c95;_0x1167b3['format']=!![],_0x1167b3[_0x2c0932('0xfd4')]=!![],_0x3299b8[_0x2c0932('0x149f')]();})[_0x283c95('0x253d')](function(){var _0x172f04=_0x283c95;console[_0x172f04('0x18d5')](_0x172f04('0x21bf')),_0x1167b3[_0x172f04('0x1f27')]=![],_0x1167b3[_0x172f04('0xfd4')]=![],_0x3299b8[_0x172f04('0x149f')]();}),_0x3299b8[_0x283c95('0x159a')];}if(!_0x51538b()['isNil'](_0x187016[_0x52225c('0x1d83')])&&_0x187016['properties']){_0x1167b3[_0x52225c('0x1d83')]=Object[_0x52225c('0x26ee')]({},_0x264efc);var _0x3ec28f=Object[_0x52225c('0x9f2')](_0x264efc);_0x3ec28f[_0x52225c('0x15b5')](function(_0x2991b0){var _0x232ca5=_0x52225c;String(_0x2991b0[0x0][_0x232ca5('0x1d08')]())===String(_0x2991b0[0x0])&&delete _0x1167b3['properties'][_0x2991b0];}),_0x1167b3['propertiesDefault']={};if(!_0x51538b()['isNil'](_0x187016[_0x52225c('0x91')])&&_0x187016[_0x52225c('0x91')]['length']>0x0){_0x1167b3[_0x52225c('0x276a')]=Object[_0x52225c('0x26ee')]({},_0x264efc);var _0x4eb6cf=_0x187016[_0x52225c('0x91')],_0x460cc4=Object['keys'](_0x264efc),_0x263e53=!![];_0x460cc4[_0x52225c('0x15b5')](function(_0x741177){var _0x18ba0b=_0x52225c;_0x263e53=!![],_0x4eb6cf[_0x18ba0b('0x15b5')](function(_0x51f516){String(_0x741177)===String(_0x51f516)&&(_0x263e53=![]);}),_0x263e53&&delete _0x1167b3[_0x18ba0b('0x276a')][_0x741177];}),_0x1167b3['properties']=_0x1167b3[_0x52225c('0x276a')];}if(!_0x51538b()[_0x52225c('0x89a')](_0x187016[_0x52225c('0x260')])&&_0x187016[_0x52225c('0x260')][_0x52225c('0x2587')]>0x0){_0x1167b3[_0x52225c('0x26b7')]={};var _0x4a24f5=_0x187016[_0x52225c('0x260')];for(var _0x1ae706=0x0;_0x1ae706<_0x4a24f5['length'];_0x1ae706++){var _0x27710a=_0x4a24f5[_0x1ae706][_0x52225c('0x3c5')],_0x5dadfc=_0x4a24f5[_0x1ae706]['model'];for(var _0x31aac9=0x0;_0x31aac9<_0x27710a[_0x52225c('0x2587')];_0x31aac9++){_0x1167b3[_0x52225c('0x26b7')][_0x27710a[_0x31aac9]['text']]=_0x264efc[_0x5dadfc][_0x27710a[_0x31aac9]['key']];}}_0x1167b3['properties']=Object[_0x52225c('0x26ee')]({},_0x1167b3['propertiesDefault'],_0x1167b3[_0x52225c('0x26b7')]);}}_0x1167b3[_0x52225c('0x2023')]=_0x5ed2b3;function _0x5ed2b3(){var _0x5befb5=_0x52225c;_0x4bf03c[_0x5befb5('0x1120')]();}}const _0x3d722c=_0x3cfd45,_0xf6c59a=_0x4fb511['p']+'src/js/modules/main/apps/video/views/screenRecordings/create/dialog.html/dialog-[chunkhash].html',_0x19adc4=_0x4fb511['p']+_0x1a8446('0x25d7');_0x13ca8f['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),'$state',_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),_0x1a8446('0x893'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x157'),'msUtils','toasty',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f')];function _0x13ca8f(_0x64678b,_0x5f06d5,_0x499c61,_0x3f573f,_0x87e8cf,_0x3a36ed,_0x5b1ab5,_0x3e2d7e,_0x34f552,_0x74e0f9,_0x2f2486,_0x55e2ff,_0x57d109,_0x24fff3,_0x2d89e6,_0x270612,_0x22fba6){var _0x4786d8=_0x1a8446,_0x199222=this;_0x199222[_0x4786d8('0x1202')]=_0x270612,_0x199222['setting']=_0x22fba6,_0x199222[_0x4786d8('0x7fc')]=_0x2d89e6[_0x4786d8('0xacc')](),_0x199222[_0x4786d8('0x893')]=_0x34f552||{'count':0x0,'rows':[]},_0x199222[_0x4786d8('0x1e97')]=_0x74e0f9,_0x199222[_0x4786d8('0x1a50')]=_0x2f2486&&_0x2f2486[_0x4786d8('0xd15')]==0x1?_0x2f2486[_0x4786d8('0x580')][0x0]:null,_0x199222[_0x4786d8('0xada')]=_0x2d89e6[_0x4786d8('0xffd')](_0x199222['userProfileSection']?_0x199222[_0x4786d8('0x1a50')][_0x4786d8('0xada')]:null),_0x199222[_0x4786d8('0x12b6')]=_0x4786d8('0x893'),_0x199222['listOrder']='',_0x199222[_0x4786d8('0x8cc')]=null,_0x199222[_0x4786d8('0x13d2')]=[],_0x199222[_0x4786d8('0x582')]={'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x4786d8('0x192d'),'includeAll':'true','sort':_0x4786d8('0xd82'),'limit':0xa,'page':0x1},_0x199222[_0x4786d8('0x582')][_0x4786d8('0x24a1')]=_0x57d109[_0x4786d8('0x800')](),_0x199222[_0x4786d8('0x168c')]=_0x3014f9();function _0x3014f9(){var _0x46377c=_0x4786d8;return[{'name':_0x46377c('0x12f1'),'key':'createdAt','type':_0x46377c('0xb87'),'label':_0x46377c('0x1bff')}];}_0x199222['playrecording']=_0x8b7bd2,_0x199222[_0x4786d8('0xe22')]=_0x5ab421,_0x199222[_0x4786d8('0x271')]=_0xd7670e,_0x199222[_0x4786d8('0xe10')]=_0x4411bf,_0x199222['getScreenRecordings']=_0x4f5195,_0x199222[_0x4786d8('0x1fbe')]=_0x1e03ee,_0x199222[_0x4786d8('0x1a2d')]=_0x5b5d51,_0x199222[_0x4786d8('0x1c16')]=_0x466352,_0x199222[_0x4786d8('0xdc3')]=_0x2936ad,_0x199222[_0x4786d8('0x2738')]=_0x46b362,_0x199222[_0x4786d8('0x1bd0')]=_0xf9d6d8,_0x199222[_0x4786d8('0x1c47')]=_0x5e36dd,_0x55e2ff['user'][_0x4786d8('0x2122')]({'fields':_0x4786d8('0x25ff'),'sort':_0x4786d8('0x25d6'),'nolimit':_0x4786d8('0x1c5c')})[_0x4786d8('0x1dc2')][_0x4786d8('0xaa5')](function(_0x4f8f74){var _0xf19518=_0x4786d8;_0x199222['users']=_0x4f8f74[_0xf19518('0x580')]||[];})[_0x4786d8('0x253d')](function(_0x277849){var _0x245d2d=_0x4786d8;_0x24fff3[_0x245d2d('0x187f')]({'title':_0x277849[_0x245d2d('0x2fa')]?'API:'+_0x277849[_0x245d2d('0x2fa')]+'\x20-\x20'+_0x277849[_0x245d2d('0x24df')]:_0x245d2d('0x6eb'),'msg':_0x277849[_0x245d2d('0x10fd')]?JSON[_0x245d2d('0xa48')](_0x277849[_0x245d2d('0x10fd')]):_0x277849[_0x245d2d('0x684')]()});});function _0x8b7bd2(_0x17213f,_0x301336,_0x553bc9,_0x55037a,_0x4dbdef){var _0x1392d0=_0x4786d8,_0x1f6247={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':_0x1392d0('0x124'),'propertiesList':['format',_0x1392d0('0x140c'),'duration',_0x1392d0('0x166d'),'closedAt',_0x1392d0('0x24a1')],'extraData':[{'model':_0x1392d0('0x21b9'),'values':[{'key':_0x1392d0('0x25d6'),'text':'agentname'}]}]},_0x18884b={};_0x18884b['route']=_0x1392d0('0x15eb'),_0x18884b[_0x1392d0('0x25d6')]=_0x1392d0('0x893'),_0x18884b[_0x1392d0('0x1fa6')]='screenRecording',_0x18884b[_0x1392d0('0x20cc')]=_0x1392d0('0x15eb'),_0x55037a=String(_0x55037a);var _0x39f589=String(_0x553bc9);console[_0x1392d0('0x18d5')](_0x1392d0('0x191b'),String(_0x553bc9)),_0x87e8cf[_0x1392d0('0x1e6d')]({'controller':_0x1392d0('0xb65'),'controllerAs':'vm','templateUrl':_0x19adc4,'parent':angular[_0x1392d0('0x1aa8')](_0x3a36ed[_0x1392d0('0x54c')]),'targetEvent':_0x301336,'clickOutsideToClose':!![],'locals':{'recording':_0x17213f,'recordings':_0x199222[_0x1392d0('0x893')][_0x1392d0('0x580')],'license':_0x199222[_0x1392d0('0x1202')],'setting':null,'item':_0x18884b,'actionOptions':_0x1f6247,'label':_0x55037a,'varPath':_0x39f589,'elementTag':String(_0x4dbdef)}});}function _0x5ab421(_0x4a6a28){var _0xb000e7=_0x4786d8,_0xe47958=![],_0x1b6e3d=!_0x51538b()[_0xb000e7('0x89a')](_0x4a6a28[_0xb000e7('0x1f27')])?_0x4a6a28['format']:_0x4a6a28[_0xb000e7('0x12f4')]['substring'](_0x4a6a28[_0xb000e7('0x12f4')][_0xb000e7('0x1f68')]('.'));_0xe47958=_0x1b6e3d==='.mp4'?!![]:![];var _0x4aae8b=_0x4a6a28[_0xb000e7('0x12f4')][_0xb000e7('0x1f68')]('/')>-0x1?_0x4a6a28[_0xb000e7('0x12f4')][_0xb000e7('0xb10')](_0x4a6a28[_0xb000e7('0x12f4')][_0xb000e7('0x1f68')]('/')+0x1):_0x4a6a28[_0xb000e7('0x12f4')][_0xb000e7('0x1f68')]('\x5c')>-0x1?_0x4a6a28[_0xb000e7('0x12f4')][_0xb000e7('0xb10')](_0x4a6a28['value']['lastIndexOf']('\x5c')+0x1):_0x4a6a28[_0xb000e7('0x12f4')];return _0x55e2ff[_0xb000e7('0x15eb')][_0xb000e7('0x1cf9')]({'id':_0x4a6a28['id']})[_0xb000e7('0x1dc2')]['then'](function(_0xc49bda){var _0x23ce91=_0xb000e7,_0x51e8fb=[_0xc49bda['buffer']],_0x69f992=_0x23ce91('0x1cf9'),_0x18b1b7=new Blob(_0x51e8fb,{'type':_0xc49bda[_0x23ce91('0x6c8')]});_0x69f992=_0x4aae8b;var _0x3b65c8=window['document'][_0x23ce91('0x531')]('a');_0x3b65c8[_0x23ce91('0x107b')](_0x23ce91('0x18ae'),URL[_0x23ce91('0x1e56')](_0x18b1b7)),_0x3b65c8[_0x23ce91('0x107b')]('download',_0x69f992),document[_0x23ce91('0x54c')]['appendChild'](_0x3b65c8),_0x3b65c8['click']();})['catch'](function(_0x420a48){var _0x461924=_0xb000e7;if(_0x420a48[_0x461924('0x10fd')]&&_0x420a48[_0x461924('0x10fd')]['errors']&&_0x420a48[_0x461924('0x10fd')][_0x461924('0x4c6')]['length'])for(var _0x3b1dad=0x0;_0x3b1dad<_0x420a48[_0x461924('0x10fd')]['errors']['length'];_0x3b1dad++){_0x24fff3[_0x461924('0x187f')]({'title':_0x420a48[_0x461924('0x10fd')][_0x461924('0x4c6')][_0x3b1dad][_0x461924('0x6c8')],'msg':_0x420a48[_0x461924('0x10fd')][_0x461924('0x4c6')][_0x3b1dad][_0x461924('0x1402')]});}else{if(String(_0x420a48[_0x461924('0x2fa')])==='404'&&_0xe47958===![])_0x24fff3[_0x461924('0x3a1')]({'title':_0x3e2d7e['instant'](_0x461924('0x1bde')),'msg':_0x3e2d7e[_0x461924('0x213f')](_0x461924('0xbfc'))});else String(_0x420a48[_0x461924('0x2fa')])===_0x461924('0xe17')?_0x24fff3[_0x461924('0x3a1')]({'title':_0x3e2d7e['instant'](_0x461924('0x1bde')),'msg':_0x3e2d7e['instant']('VIDEO.FILE_NOT_FOUND')}):_0x24fff3[_0x461924('0x187f')]({'title':_0x420a48[_0x461924('0x2fa')]?_0x461924('0x16c2')+_0x420a48['status']+_0x461924('0x169e')+_0x420a48[_0x461924('0x24df')]:_0x461924('0x1b15'),'msg':_0x420a48[_0x461924('0x10fd')]?JSON[_0x461924('0xa48')](_0x420a48[_0x461924('0x10fd')][_0x461924('0x1402')]):_0x420a48[_0x461924('0x684')]()});}});}function _0xd7670e(_0x39ee63,_0x325edd){var _0x179dec=_0x4786d8,_0x5ce70d=_0x87e8cf[_0x179dec('0x281e')]()[_0x179dec('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x179dec('0x196a')](_0x179dec('0x15eb'))+'?')['htmlContent'](''+(_0x39ee63[_0x179dec('0x25d6')]||_0x179dec('0x15eb'))+_0x179dec('0x697')+_0x179dec('0x210d'))[_0x179dec('0x5b5')](_0x179dec('0x1b24'))[_0x179dec('0x116d')](_0x325edd)['ok']('OK')['cancel'](_0x179dec('0x2410'));_0x87e8cf[_0x179dec('0x1e6d')](_0x5ce70d)[_0x179dec('0xaa5')](function(){_0x5b5d51(_0x39ee63);},function(){var _0x243ba6=_0x179dec;console[_0x243ba6('0x18d5')]('CANCEL');});}var _0xc017ee=!![],_0x2e75bb=0x1;_0x64678b[_0x4786d8('0x1ccf')](_0x4786d8('0x1788'),function(_0x11ec1c,_0x524426){var _0x1b9454=_0x4786d8;_0xc017ee?_0x5b1ab5(function(){_0xc017ee=![];}):(!_0x524426&&(_0x2e75bb=_0x199222[_0x1b9454('0x582')][_0x1b9454('0x41')]),_0x11ec1c!==_0x524426&&(_0x199222[_0x1b9454('0x582')][_0x1b9454('0x41')]=0x1),!_0x11ec1c&&(_0x199222[_0x1b9454('0x582')][_0x1b9454('0x41')]=_0x2e75bb),_0x199222[_0x1b9454('0x1a62')]());});function _0x5e36dd(_0x2f9659){var _0x16cd63=_0x4786d8,_0x40d36e=Math[_0x16cd63('0x20cb')](_0x2f9659/0x3e8%0x3c),_0x5b45fd=Math[_0x16cd63('0x20cb')](_0x2f9659/(0x3e8*0x3c)%0x3c),_0x34aeec=Math[_0x16cd63('0x20cb')](_0x2f9659/(0x3e8*0x3c*0x3c)%0x18),_0x5bda9b=_0x34aeec<0xa?'0'+String(_0x34aeec):String(_0x34aeec),_0x1f4777=_0x5b45fd<0xa?'0'+String(_0x5b45fd):String(_0x5b45fd),_0x374e45=_0x40d36e<0xa?'0'+String(_0x40d36e):String(_0x40d36e);return _0x5bda9b+':'+_0x1f4777+':'+_0x374e45;}function _0x4411bf(_0x5f4dad){var _0x5a1766=_0x4786d8;_0x199222[_0x5a1766('0x893')]=_0x5f4dad||{'count':0x0,'rows':[]};}function _0x4f5195(){var _0x3736fe=_0x4786d8;_0x199222[_0x3736fe('0x582')]['offset']=(_0x199222[_0x3736fe('0x582')][_0x3736fe('0x41')]-0x1)*_0x199222[_0x3736fe('0x582')]['limit'],_0x2d89e6['hasRole']('admin')?_0x199222[_0x3736fe('0x159a')]=_0x55e2ff[_0x3736fe('0x15eb')][_0x3736fe('0x2122')](_0x199222[_0x3736fe('0x582')],_0x4411bf)[_0x3736fe('0x1dc2')]:(_0x199222[_0x3736fe('0x582')]['id']=_0x199222[_0x3736fe('0x1e97')]['id'],_0x199222[_0x3736fe('0x582')][_0x3736fe('0x224d')]=_0x3736fe('0x1344'),_0x199222[_0x3736fe('0x159a')]=_0x55e2ff[_0x3736fe('0x1e97')][_0x3736fe('0x1cf1')](_0x199222[_0x3736fe('0x582')],_0x4411bf)[_0x3736fe('0x1dc2')]);}function _0x1e03ee(_0x45bf42,_0x37d61c){var _0x5499fc=_0x4786d8;_0x87e8cf[_0x5499fc('0x1e6d')]({'controller':_0x5499fc('0x27ce'),'controllerAs':'vm','templateUrl':_0xf6c59a,'parent':angular[_0x5499fc('0x1aa8')](_0x3a36ed[_0x5499fc('0x54c')]),'targetEvent':_0x45bf42,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x37d61c,'screenRecordings':_0x199222[_0x5499fc('0x893')][_0x5499fc('0x580')],'license':_0x199222[_0x5499fc('0x1202')],'setting':_0x199222['setting'],'crudPermissions':_0x199222[_0x5499fc('0xada')]}});}function _0x5b5d51(_0x359312){var _0x2a5f51=_0x4786d8;_0x55e2ff[_0x2a5f51('0x15eb')][_0x2a5f51('0x926')]({'id':_0x359312['id']})['$promise']['then'](function(){var _0x594ff3=_0x2a5f51;_0x51538b()[_0x594ff3('0xf6d')](_0x199222[_0x594ff3('0x893')][_0x594ff3('0x580')],{'id':_0x359312['id']}),_0x199222['screenRecordings'][_0x594ff3('0xd15')]-=0x1,!_0x199222[_0x594ff3('0x893')][_0x594ff3('0x580')][_0x594ff3('0x2587')]&&_0x199222[_0x594ff3('0x1a62')](),_0x24fff3[_0x594ff3('0xe10')]({'title':_0x51538b()[_0x594ff3('0x196a')](_0x594ff3('0x15eb'))+_0x594ff3('0x8bb'),'msg':_0x359312['name']?_0x359312['name']+_0x594ff3('0xcd9'):''});})[_0x2a5f51('0x253d')](function(_0x4e73e1){var _0x286c7b=_0x2a5f51;if(_0x4e73e1[_0x286c7b('0x10fd')]&&_0x4e73e1[_0x286c7b('0x10fd')][_0x286c7b('0x4c6')]&&_0x4e73e1[_0x286c7b('0x10fd')][_0x286c7b('0x4c6')][_0x286c7b('0x2587')]){_0x199222[_0x286c7b('0x4c6')]=_0x4e73e1['data'][_0x286c7b('0x4c6')]||[{'message':_0x4e73e1[_0x286c7b('0x684')](),'type':'SYSTEM:DELETEscreenRecording'}];for(var _0x37f0db=0x0;_0x37f0db<_0x4e73e1[_0x286c7b('0x10fd')][_0x286c7b('0x4c6')]['length'];_0x37f0db++){_0x24fff3['error']({'title':_0x4e73e1[_0x286c7b('0x10fd')]['errors'][_0x37f0db][_0x286c7b('0x6c8')],'msg':_0x4e73e1[_0x286c7b('0x10fd')]['errors'][_0x37f0db][_0x286c7b('0x1402')]});}}else _0x24fff3[_0x286c7b('0x187f')]({'title':_0x4e73e1[_0x286c7b('0x2fa')]?'API:'+_0x4e73e1[_0x286c7b('0x2fa')]+_0x286c7b('0x169e')+_0x4e73e1['statusText']:_0x286c7b('0x17b6'),'msg':_0x4e73e1['data']?JSON[_0x286c7b('0xa48')](_0x4e73e1[_0x286c7b('0x10fd')]['message']):_0x4e73e1['message']||_0x4e73e1['toString']()});});}function _0x466352(){var _0x49a267=_0x4786d8,_0x230c07=angular[_0x49a267('0x20a')](_0x199222[_0x49a267('0x13d2')]);return _0x199222[_0x49a267('0x13d2')]=[],_0x230c07;}function _0x2936ad(_0x42d0c1){var _0x17dea6=_0x4786d8,_0x3e9723=_0x87e8cf[_0x17dea6('0x281e')]()[_0x17dea6('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20screenRecordings?')['htmlContent'](_0x17dea6('0x389')+_0x199222[_0x17dea6('0x13d2')][_0x17dea6('0x2587')]+_0x17dea6('0x1443')+'\x20will\x20be\x20deleted.')[_0x17dea6('0x5b5')](_0x17dea6('0x138b'))[_0x17dea6('0x116d')](_0x42d0c1)['ok']('OK')[_0x17dea6('0x2030')]('CANCEL');_0x87e8cf[_0x17dea6('0x1e6d')](_0x3e9723)[_0x17dea6('0xaa5')](function(){var _0x50cd99=_0x17dea6;_0x199222[_0x50cd99('0x13d2')][_0x50cd99('0x15b5')](function(_0x21b792){_0x5b5d51(_0x21b792);}),_0x199222[_0x50cd99('0x13d2')]=[];});}function _0x46b362(){var _0x4fcdc9=_0x4786d8;_0x199222[_0x4fcdc9('0x13d2')]=[];}function _0xf9d6d8(){var _0xe817ec=_0x4786d8;_0x199222[_0xe817ec('0x13d2')]=_0x199222[_0xe817ec('0x893')][_0xe817ec('0x580')];}}const _0x30296a=_0x13ca8f;_0x417f0b['$inject']=[_0x1a8446('0x2ce'),'$translatePartialLoaderProvider'];function _0x417f0b(_0x21c9e6,_0x54e7cf){var _0x38d8a1=_0x1a8446;_0x21c9e6['state']('app.video',{'abstract':!![],'url':_0x38d8a1('0x2386')})[_0x38d8a1('0xb46')](_0x38d8a1('0x1513'),{'url':_0x38d8a1('0x5e4'),'views':{'content@app':{'templateUrl':_0x321f33,'controller':_0x38d8a1('0x243c')}},'resolve':{'screenRecordings':[_0x38d8a1('0x1d16'),_0x38d8a1('0x1dfd'),_0x38d8a1('0x25c'),function _0x3733b2(_0x43d028,_0x3a0a5d,_0x498080){var _0x5a9829=_0x38d8a1;return _0x3a0a5d[_0x5a9829('0x26e8')](_0x5a9829('0x178b'))?_0x43d028[_0x5a9829('0x149f')](_0x5a9829('0x248'),{'fields':_0x5a9829('0x2342'),'createdAt':_0x498080[_0x5a9829('0x800')](),'includeAll':_0x5a9829('0x1c5c'),'sort':_0x5a9829('0xd82'),'limit':0xa,'offset':0x0}):_0x43d028[_0x5a9829('0x149f')](_0x5a9829('0x49a'),{'id':_0x3a0a5d[_0x5a9829('0xacc')]()[_0x5a9829('0x2168')],'section':_0x5a9829('0x1344'),'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x498080['firstLastDayMonth'](),'includeAll':_0x5a9829('0x1c5c'),'sort':_0x5a9829('0xd82'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x38d8a1('0x1d16'),'Auth',function _0x1047e9(_0x2b36aa,_0x311fca){var _0x4ae60b=_0x38d8a1;return _0x311fca[_0x4ae60b('0x26e8')](_0x4ae60b('0x178b'))?null:_0x2b36aa[_0x4ae60b('0x149f')](_0x4ae60b('0x567'),{'fields':_0x4ae60b('0x1bb0'),'id':_0x311fca['getCurrentUser']()[_0x4ae60b('0x2168')]});}],'userProfileSection':[_0x38d8a1('0x1d16'),_0x38d8a1('0x1dfd'),function _0x2f8ff6(_0x494a5d,_0x5afe6d){var _0x59cd15=_0x38d8a1;return _0x5afe6d[_0x59cd15('0x26e8')](_0x59cd15('0x178b'))?null:_0x494a5d[_0x59cd15('0x149f')](_0x59cd15('0x89e'),{'fields':_0x59cd15('0xe6a'),'userProfileId':_0x5afe6d['getCurrentUser']()[_0x59cd15('0x2168')],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':_0x38d8a1('0x289')}),_0x54e7cf[_0x38d8a1('0x1de5')](_0x38d8a1('0x1cae'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x21c7'),[_0x1a8446('0x1308'),_0x1a8446('0x1472'),_0x1a8446('0x1d87'),_0x1a8446('0xcba'),_0x1a8446('0x21c9'),_0x1a8446('0x23ee'),_0x1a8446('0xb89'),_0x1a8446('0x150f'),_0x1a8446('0x110'),_0x1a8446('0xd2d'),'mwFormBuilder','mwFormViewer',_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),_0x1a8446('0xe8b'),_0x1a8446('0x14c'),_0x1a8446('0x2830'),'chart.js','angular.filter'])[_0x1a8446('0x1b14')](_0x417f0b)[_0x1a8446('0x780')](_0x1a8446('0x27ce'),_0x2494ad)[_0x1a8446('0x780')](_0x1a8446('0xb65'),_0x3d722c)[_0x1a8446('0x780')](_0x1a8446('0x848'),_0x30296a);const _0x1a46a4=_0x4fb511['p']+_0x1a8446('0xd1f'),_0x2392e8=_0x4fb511['p']+_0x1a8446('0x1627'),_0x5ce4a6=_0x4fb511['p']+_0x1a8446('0x18bb');_0x41eb35[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),'$q',_0x1a8446('0x186b'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x24ea'),_0x1a8446('0x2457'),'agents','rpcAgents',_0x1a8446('0x157'),_0x1a8446('0xe74'),'toasty',_0x1a8446('0x5b4'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x1dfd'),'license',_0x1a8446('0x21b3')];function _0x41eb35(_0x347510,_0x13ed12,_0x37697a,_0x4383ba,_0x2b2aa6,_0x332ff5,_0x177d7a,_0x40247f,_0x5e1bff,_0x1c86d3,_0x22cd53,_0x5608f9,_0x90799c,_0x15fb95,_0x5bd685,_0x1281c3,_0x416d75,_0x1a90c9){var _0x20099b=_0x1a8446,_0x1ce18a=this,_0x5408e5=[_0x20099b('0x1af3'),_0x20099b('0x175'),_0x20099b('0x2340'),'lastPauseAt','pauseType',_0x20099b('0x1ce0'),_0x20099b('0x1b0d'),'address','chatPause',_0x20099b('0xc8f'),'mailPause',_0x20099b('0x462'),'whatsappPause',_0x20099b('0x135b'),_0x20099b('0x2519'),'chatCapacity',_0x20099b('0x1b1c'),'mailCapacity','smsCapacity',_0x20099b('0xce'),'faxCapacity',_0x20099b('0x607'),_0x20099b('0x275a'),_0x20099b('0x24fb'),'smsCurrentCapacity',_0x20099b('0x26c8'),_0x20099b('0xea8'),_0x20099b('0xeb4'),_0x20099b('0x293'),'mailStatus',_0x20099b('0x24d1'),_0x20099b('0x1579'),_0x20099b('0x19d2'),_0x20099b('0x1e0'),_0x20099b('0x748'),_0x20099b('0x26e5'),_0x20099b('0xd27'),_0x20099b('0x1561'),'whatsappStatusTime','faxStatusTime',_0x20099b('0x1ddc'),_0x20099b('0xe26'),_0x20099b('0x14d3'),'screenrecording',_0x20099b('0x1b72'),_0x20099b('0x1253')],_0x1854e1=[_0x20099b('0x1f36'),_0x20099b('0xc8f'),_0x20099b('0x21f'),_0x20099b('0x462'),_0x20099b('0x231a'),_0x20099b('0x135b'),_0x20099b('0x2519'),_0x20099b('0x175')];_0x1ce18a[_0x20099b('0x7fc')]=_0x1281c3['getCurrentUser'](),_0x1ce18a['availableStates']=[_0x20099b('0xb02'),_0x20099b('0x1028'),_0x20099b('0xa1e'),'onhold',_0x20099b('0x2509')],_0x1ce18a[_0x20099b('0x2457')]=_0x177d7a||{'count':0x0,'rows':[]},_0x1ce18a[_0x20099b('0x1202')]=_0x416d75,_0x1ce18a[_0x20099b('0x1e97')]=_0x15fb95,_0x1ce18a[_0x20099b('0x1a50')]=_0x5bd685&&_0x5bd685['count']==0x1?_0x5bd685[_0x20099b('0x580')][0x0]:null,_0x1ce18a['crudPermissions']=_0x1281c3[_0x20099b('0xffd')](_0x1ce18a[_0x20099b('0x1a50')]?_0x1ce18a['userProfileSection']['crudPermissions']:null),_0x1ce18a[_0x20099b('0x1717')]=_0x40247f?_0x51538b()[_0x20099b('0x184a')](_0x40247f['rows']?_0x40247f[_0x20099b('0x580')]:[],'id'):{},_0x1ce18a[_0x20099b('0x1f1d')]=_0x5e1bff?_0x51538b()['keyBy'](_0x5e1bff[_0x20099b('0x580')]?_0x5e1bff[_0x20099b('0x580')]:[],'id'):{},_0x1ce18a[_0x20099b('0xd28')]={},_0x1ce18a[_0x20099b('0x259c')]=![],_0x1ce18a[_0x20099b('0x1536')]=[],_0x1ce18a[_0x20099b('0x21f2')]={};for(var _0x4b9f7d in _0x1ce18a[_0x20099b('0x1717')]){typeof _0x1ce18a[_0x20099b('0x1717')][_0x4b9f7d]!==_0x20099b('0x1574')&&(_0x1ce18a[_0x20099b('0x1717')][_0x4b9f7d][_0x20099b('0x2e')]=!![]);}_0x1ce18a[_0x20099b('0x582')]={'limit':0xa,'page':0x1,'order':_0x20099b('0x18e5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x1ce18a['logout']=_0x259340,_0x1ce18a['queueAdd']=_0x182661,_0x1ce18a['pause']=_0x2a917b,_0x1ce18a['unPause']=_0x5cbedf,_0x1ce18a[_0x20099b('0x18ba')]=_0x498e32,_0x1ce18a[_0x20099b('0xf42')]=_0x27febc,_0x1ce18a['getAgentGlobalStatus']=_0x5e7e51,_0x1ce18a['isPause']=_0x5e4602,_0x1ce18a[_0x20099b('0x2608')]=_0x4c3f40,_0x1ce18a[_0x20099b('0x1592')]=_0x435792,_0x1ce18a['onSave']=_0x2c1a04,_0x1ce18a[_0x20099b('0x4f1')]=_0x20599b,_0x1ce18a[_0x20099b('0x2318')]=_0x5c48af,_0x1ce18a[_0x20099b('0xe9b')]=_0x492cc0,_0x1ce18a[_0x20099b('0xd53')]=_0xd37107,_0x1ce18a[_0x20099b('0x15eb')]=_0x11b85b,_0x22cd53['on']('user:save',_0x1ce18a[_0x20099b('0x1a4b')]),_0x22cd53['on'](_0x20099b('0x15fb'),_0x1ce18a[_0x20099b('0x4f1')]),_0x22cd53['on'](_0x20099b('0x25ea'),_0x1ce18a[_0x20099b('0xe9b')]),_0x22cd53['on'](_0x20099b('0x2728'),_0x1ce18a[_0x20099b('0xd53')]),_0x5c48af();var _0x10a18c=_0x1a90c9(function(){var _0x3d257c=_0x20099b;_0x1ce18a[_0x3d257c('0x259c')]&&(_0x1ce18a[_0x3d257c('0x259c')]=![],_0x5c48af());},0x3e7);function _0x5c48af(){var _0x4322d4=_0x20099b;_0x1ce18a['load']=![];var _0x247ebf=_0x13ed12['defer']();_0x1ce18a[_0x4322d4('0x159a')]=_0x247ebf['promise'],_0x1ce18a[_0x4322d4('0x1d77')]=[],_0x1ce18a[_0x4322d4('0x1536')]=[],_0x51538b()['forIn'](_0x1ce18a[_0x4322d4('0x1717')],function(_0x174a39,_0x1f696e){var _0x2155d7=_0x4322d4;_0x1ce18a['rpcAgents'][_0x1f696e]&&_0x51538b()['merge'](_0x174a39,_0x51538b()[_0x2155d7('0x104e')](_0x51538b()['omit'](_0x1ce18a[_0x2155d7('0x1f1d')][_0x1f696e],_0x1854e1),_0x5408e5)),_0x5e7e51(_0x174a39),_0x174a39[_0x2155d7('0x175')]?(_0x1ce18a[_0x2155d7('0x1d77')][_0x2155d7('0x1599')](_0x174a39),_0x1ce18a[_0x2155d7('0x21f2')][_0x174a39['internal']]=_0x1f696e):_0x174a39[_0x2155d7('0x920')]=_0x51538b()[_0x2155d7('0x228e')](_0x420d43()()[_0x2155d7('0x1f27')]('x'));});_0x1ce18a['query'][_0x4322d4('0x107')]&&_0x51538b()[_0x4322d4('0xf6d')](_0x1ce18a[_0x4322d4('0x1d77')],function(_0x103cfb){var _0x230198=_0x4322d4;return _0x103cfb[_0x230198('0x151c')]!==_0x1ce18a[_0x230198('0x582')][_0x230198('0x107')];});_0x1ce18a[_0x4322d4('0x582')][_0x4322d4('0x1bfd')]&&_0x51538b()['remove'](_0x1ce18a[_0x4322d4('0x1d77')],function(_0xa2556e){var _0x5a2bf0=_0x4322d4;return _0xa2556e[_0x5a2bf0('0x25f0')]!==_0x1ce18a['query']['pauseTypeFilter'];});_0x1ce18a[_0x4322d4('0x582')][_0x4322d4('0xdb7')]&&_0x51538b()['remove'](_0x1ce18a[_0x4322d4('0x1d77')],function(_0x38bc3a){var _0x29803f=_0x4322d4;return _0x38bc3a['fullname']['toLowerCase']()[_0x29803f('0x1f38')](_0x1ce18a[_0x29803f('0x582')][_0x29803f('0xdb7')][_0x29803f('0xcf6')]())<0x0;});_0x1ce18a[_0x4322d4('0x1d77')]=_0xdef2bf(_0x1ce18a[_0x4322d4('0x1d77')]);var _0x589c78=(_0x1ce18a[_0x4322d4('0x582')][_0x4322d4('0x41')]-0x1)*_0x1ce18a[_0x4322d4('0x582')][_0x4322d4('0xf4d')];_0x1ce18a[_0x4322d4('0xd28')]=_0x51538b()['drop'](_0x1ce18a[_0x4322d4('0x1d77')],_0x589c78)[_0x4322d4('0x19aa')](0x0,_0x1ce18a[_0x4322d4('0x582')][_0x4322d4('0xf4d')]);for(var _0x3e87e2=0x0;_0x3e87e2<_0x1ce18a[_0x4322d4('0xd28')][_0x4322d4('0x2587')];_0x3e87e2+=0x1){_0x1ce18a[_0x4322d4('0x1536')][_0x4322d4('0x1599')](_0x1ce18a[_0x4322d4('0xd28')][_0x3e87e2]['id']);}_0x247ebf['resolve'](),_0x1ce18a['load']=!![];}function _0x2c1a04(_0x1b5b91){var _0x295854=_0x20099b;_0x1ce18a[_0x295854('0x1717')][_0x1b5b91['id']]&&(_0x51538b()['merge'](_0x1ce18a[_0x295854('0x1717')][_0x1b5b91['id']],_0x51538b()[_0x295854('0x104e')](_0x51538b()[_0x295854('0x245')](_0x1b5b91,_0x1854e1),_0x5408e5)),_0x51538b()[_0x295854('0x283c')](_0x1ce18a[_0x295854('0x1f1d')][_0x1b5b91['id']],_0x51538b()[_0x295854('0x104e')](_0x51538b()['omit'](_0x1b5b91,_0x1854e1),_0x5408e5)),_0x5e7e51(_0x1ce18a[_0x295854('0x1717')][_0x1b5b91['id']]));}function _0x20599b(_0x16fa5b){var _0x2fac55=_0x20099b;_0x1ce18a['agents'][_0x16fa5b['id']]&&(_0x51538b()[_0x2fac55('0x283c')](_0x1ce18a[_0x2fac55('0x1717')][_0x16fa5b['id']],_0x51538b()[_0x2fac55('0x104e')](_0x16fa5b,_0x5408e5)),_0x51538b()['merge'](_0x1ce18a['rpcAgents'][_0x16fa5b['id']],_0x51538b()[_0x2fac55('0x104e')](_0x16fa5b,_0x5408e5)),_0x16fa5b['lastPauseAt']&&(_0x1ce18a[_0x2fac55('0x1717')][_0x16fa5b['id']][_0x2fac55('0x920')]=_0x16fa5b[_0x2fac55('0x1ce0')],_0x1ce18a[_0x2fac55('0x1f1d')][_0x16fa5b['id']][_0x2fac55('0x920')]=_0x16fa5b['lastPauseAt']),_0x5e7e51(_0x1ce18a[_0x2fac55('0x1717')][_0x16fa5b['id']]));}function _0x492cc0(_0x20d88a){var _0x2fd27a=_0x20099b;_0x1ce18a[_0x2fd27a('0x1717')][_0x1ce18a[_0x2fd27a('0x21f2')][_0x20d88a[_0x2fd27a('0x2525')]]]&&(_0x51538b()[_0x2fd27a('0x283c')](_0x1ce18a[_0x2fd27a('0x1717')][_0x1ce18a[_0x2fd27a('0x21f2')][_0x20d88a[_0x2fd27a('0x2525')]]],_0x51538b()['pick'](_0x20d88a,[_0x2fd27a('0xe26'),_0x2fd27a('0x14d3')])),_0x51538b()[_0x2fd27a('0x283c')](_0x1ce18a[_0x2fd27a('0x1f1d')][_0x1ce18a[_0x2fd27a('0x21f2')][_0x20d88a['destaccountcode']]],_0x51538b()[_0x2fd27a('0x104e')](_0x20d88a,[_0x2fd27a('0xe26'),_0x2fd27a('0x14d3')])));}function _0xd37107(_0x27d229){var _0x1c14f9=_0x20099b;_0x1ce18a[_0x1c14f9('0x1717')][_0x1ce18a['agentInternal'][_0x27d229[_0x1c14f9('0x2525')]]]&&(_0x1ce18a['agents'][_0x1ce18a[_0x1c14f9('0x21f2')][_0x27d229[_0x1c14f9('0x2525')]]]=_0x51538b()[_0x1c14f9('0x245')](_0x1ce18a[_0x1c14f9('0x1717')][_0x1ce18a['agentInternal'][_0x27d229[_0x1c14f9('0x2525')]]],['queue',_0x1c14f9('0x14d3')]),_0x1ce18a[_0x1c14f9('0x1f1d')][_0x1ce18a[_0x1c14f9('0x21f2')][_0x27d229[_0x1c14f9('0x2525')]]]=_0x51538b()[_0x1c14f9('0x245')](_0x1ce18a['rpcAgents'][_0x1ce18a[_0x1c14f9('0x21f2')][_0x27d229[_0x1c14f9('0x2525')]]],[_0x1c14f9('0xe26'),_0x1c14f9('0x14d3')]));}function _0x259340(_0x5f546b){var _0x589516=_0x20099b;return _0x1c86d3[_0x589516('0x272b')][_0x589516('0x1bc9')]({'id':_0x5f546b['id'],'device':_0x589516('0x4f3'),'agent_id':_0x5f546b['id'],'agent_name':_0x5f546b[_0x589516('0x25d6')]})[_0x589516('0x1dc2')][_0x589516('0xaa5')](function(){var _0x1e1ae4=_0x589516;_0x5608f9[_0x1e1ae4('0xe10')]({'title':_0x1e1ae4('0x1cdb'),'msg':_0x5f546b[_0x1e1ae4('0x18e5')]+_0x1e1ae4('0x2039')}),_0x1ce18a[_0x1e1ae4('0x1717')][_0x5f546b['id']]&&(_0x1ce18a[_0x1e1ae4('0x1717')][_0x5f546b['id']][_0x1e1ae4('0x175')]=![]),_0x1ce18a[_0x1e1ae4('0x1f1d')][_0x5f546b['id']]&&(_0x1ce18a[_0x1e1ae4('0x1f1d')][_0x5f546b['id']]['online']=![]),_0x5c48af();})[_0x589516('0x253d')](function(_0x1621ad){var _0x1b2261=_0x589516;_0x5608f9['error']({'title':_0x1621ad[_0x1b2261('0x2fa')]?_0x1b2261('0x16c2')+_0x1621ad[_0x1b2261('0x2fa')]+'\x20-\x20'+_0x1621ad[_0x1b2261('0x24df')]:_0x1b2261('0xb8c'),'msg':_0x1621ad['data']?JSON[_0x1b2261('0xa48')](_0x1621ad[_0x1b2261('0x10fd')][_0x1b2261('0x1402')]):_0x1621ad[_0x1b2261('0x684')]()});});}function _0x2a917b(_0x4a6c21,_0x26ee25){var _0x1d2317=_0x20099b;return _0x1c86d3[_0x1d2317('0x272b')][_0x1d2317('0x167c')]({'id':_0x4a6c21['id'],'type':_0x26ee25})[_0x1d2317('0x1dc2')]['then'](function(_0x4642d1){var _0x24ae3e=_0x1d2317;_0x1ce18a[_0x24ae3e('0x1717')][_0x4a6c21['id']]&&_0x51538b()[_0x24ae3e('0x283c')](_0x1ce18a[_0x24ae3e('0x1717')][_0x4a6c21['id']],_0x51538b()[_0x24ae3e('0x104e')](_0x4642d1,_0x5408e5)),_0x1ce18a[_0x24ae3e('0x1f1d')][_0x4a6c21['id']]&&_0x51538b()[_0x24ae3e('0x283c')](_0x1ce18a['rpcAgents'][_0x4a6c21['id']],_0x51538b()[_0x24ae3e('0x104e')](_0x4642d1,_0x5408e5)),_0x5e7e51(_0x1ce18a[_0x24ae3e('0x1717')][_0x4a6c21['id']]);})['catch'](function(_0x48d3c8){var _0x23cebd=_0x1d2317;_0x5608f9['error']({'title':_0x48d3c8[_0x23cebd('0x2fa')]?'API:'+_0x48d3c8[_0x23cebd('0x2fa')]+_0x23cebd('0x169e')+_0x48d3c8['statusText']:_0x23cebd('0xb8c'),'msg':_0x48d3c8[_0x23cebd('0x10fd')]?JSON['stringify'](_0x48d3c8[_0x23cebd('0x10fd')][_0x23cebd('0x1402')]):_0x48d3c8[_0x23cebd('0x684')]()});});}function _0x5cbedf(_0x49bb09){var _0xf5add=_0x20099b;return _0x1c86d3[_0xf5add('0x272b')][_0xf5add('0x297')]({'id':_0x49bb09['id']})[_0xf5add('0x1dc2')][_0xf5add('0xaa5')](function(_0x571a97){var _0x3c0208=_0xf5add;_0x1ce18a[_0x3c0208('0x1717')][_0x49bb09['id']]&&_0x51538b()[_0x3c0208('0x283c')](_0x1ce18a[_0x3c0208('0x1717')][_0x49bb09['id']],_0x51538b()['pick'](_0x571a97,_0x5408e5)),_0x1ce18a['rpcAgents'][_0x49bb09['id']]&&_0x51538b()[_0x3c0208('0x283c')](_0x1ce18a[_0x3c0208('0x1f1d')][_0x49bb09['id']],_0x51538b()[_0x3c0208('0x104e')](_0x571a97,_0x5408e5)),_0x5e7e51(_0x1ce18a[_0x3c0208('0x1717')][_0x49bb09['id']]);})['catch'](function(_0x3237ff){var _0x18fe93=_0xf5add;_0x5608f9['error']({'title':_0x3237ff['status']?_0x18fe93('0x16c2')+_0x3237ff[_0x18fe93('0x2fa')]+_0x18fe93('0x169e')+_0x3237ff['statusText']:_0x18fe93('0xb8c'),'msg':_0x3237ff['data']?JSON[_0x18fe93('0xa48')](_0x3237ff[_0x18fe93('0x10fd')][_0x18fe93('0x1402')]):_0x3237ff[_0x18fe93('0x684')]()});});}function _0x498e32(_0x3b492e){var _0x561632=_0x20099b;_0x4383ba[_0x561632('0x1e6d')](_0x4383ba['alert']()['clickOutsideToClose'](!![])[_0x561632('0x110a')](_0x561632('0x17e'))[_0x561632('0x102e')]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x561632('0x116d')](_0x3b492e));}function _0x182661(_0x525e59,_0x5577b6){var _0x1e5833=_0x20099b;_0x4383ba[_0x1e5833('0x1e6d')]({'controller':_0x1e5833('0x1200'),'controllerAs':'vm','templateUrl':_0x3a2df9,'parent':angular[_0x1e5833('0x1aa8')](_0x2b2aa6[_0x1e5833('0x54c')]),'targetEvent':_0x5577b6,'clickOutsideToClose':!![],'locals':{'agent':_0x525e59,'agents':[],'channel':_0x1e5833('0x220d'),'direction':_0x1e5833('0x4b8'),'crudPermissions':_0x1ce18a['crudPermissions']}});}function _0x5e4602(_0x302daa){var _0x505942=_0x20099b;return _0x302daa===_0x505942('0x167c')||_0x302daa==='*pause';}function _0x4c3f40(_0x357da3){var _0x22ce0b=_0x20099b;return _0x357da3===_0x22ce0b('0x167c');}function _0x435792(_0x24239f){var _0x4cbfd2=_0x20099b;return _0x24239f===_0x4cbfd2('0xa7d');}function _0x4f967c(_0x6cec82){var _0x54c3d8=_0x20099b;return _0x6cec82==='idle'||_0x6cec82===_0x54c3d8('0x15fd')||_0x6cec82==='unavailable'||_0x6cec82===_0x54c3d8('0xb02')||_0x51538b()[_0x54c3d8('0x89a')](_0x6cec82);}function _0x27febc(_0x30caad,_0x1736c0){var _0x495f2d=_0x20099b;if(_0x1736c0===_0x495f2d('0x1b9')){if(_0x30caad[_0x1736c0+_0x495f2d('0x26ae')]!=='idle')return _0x30caad[_0x1736c0+_0x495f2d('0x26ae')];if(_0x30caad[_0x1736c0+'Pause'])return _0x30caad[_0x1736c0+_0x495f2d('0x26ae')]=_0x495f2d('0x167c'),_0x495f2d('0x167c');return'idle';}else{if(_0x30caad[_0x1736c0+'Pause'])return _0x30caad[_0x1736c0+_0x495f2d('0x26ae')]=_0x495f2d('0x167c'),_0x495f2d('0x167c');return _0x30caad[_0x1736c0+'Status'];}}function _0x5e7e51(_0x4c756b){var _0x2aa647=_0x20099b,_0x498d86='unknown';if(_0x51538b()[_0x2aa647('0x2ed')]([_0x27febc(_0x4c756b,'voice'),_0x27febc(_0x4c756b,_0x2aa647('0x20f9')),_0x27febc(_0x4c756b,'mail'),_0x27febc(_0x4c756b,_0x2aa647('0x170')),_0x27febc(_0x4c756b,_0x2aa647('0x18da')),_0x27febc(_0x4c756b,_0x2aa647('0x220d')),_0x27febc(_0x4c756b,_0x2aa647('0x16c4'))],_0x5e4602))_0x498d86=_0x2aa647('0x167c');else{if(_0x51538b()['some']([_0x27febc(_0x4c756b,_0x2aa647('0x1b9')),_0x27febc(_0x4c756b,_0x2aa647('0x20f9')),_0x27febc(_0x4c756b,'mail'),_0x27febc(_0x4c756b,_0x2aa647('0x170')),_0x27febc(_0x4c756b,_0x2aa647('0x18da')),_0x27febc(_0x4c756b,_0x2aa647('0x220d')),_0x27febc(_0x4c756b,'fax')],_0x5e4602))_0x498d86=_0x2aa647('0xa7d');else _0x51538b()[_0x2aa647('0x2ed')]([_0x27febc(_0x4c756b,_0x2aa647('0x1b9')),_0x27febc(_0x4c756b,_0x2aa647('0x20f9')),_0x27febc(_0x4c756b,_0x2aa647('0x14c5')),_0x27febc(_0x4c756b,_0x2aa647('0x170')),_0x27febc(_0x4c756b,'sms'),_0x27febc(_0x4c756b,_0x2aa647('0x220d')),_0x27febc(_0x4c756b,_0x2aa647('0x16c4'))],_0x4f967c)?_0x498d86=_0x2aa647('0x135e'):_0x498d86=_0x2aa647('0xa1e');}_0x4c756b[_0x2aa647('0x151c')]!==_0x498d86&&(_0x4c756b['globalStatus']=_0x498d86,_0x4c756b['init']?(_0x4c756b['init']=![],_0x4c756b[_0x2aa647('0x920')]=_0x5e4602(_0x498d86)?_0x51538b()['toNumber'](_0x420d43()(_0x4c756b[_0x2aa647('0x1ce0')])[_0x2aa647('0x1f27')]('x')):_0x51538b()[_0x2aa647('0x4c2')]([_0x4c756b['voiceStatusTime'],_0x4c756b['chatStatusTime'],_0x4c756b[_0x2aa647('0xd27')],_0x4c756b['smsStatusTime'],_0x4c756b[_0x2aa647('0x166b')],_0x4c756b['openchannelStatusTime'],_0x4c756b[_0x2aa647('0xa0a')]])):_0x4c756b[_0x2aa647('0x920')]=_0x51538b()[_0x2aa647('0x228e')](_0x420d43()()[_0x2aa647('0x1f27')]('x')));}function _0xdef2bf(_0x21ff34){var _0x3ed462=_0x20099b,_0x570270=_0x51538b()[_0x3ed462('0x6e8')](_0x1ce18a['query']['order'],'-')?'desc':_0x3ed462('0x14b9');return _0x51538b()[_0x3ed462('0x271d')](_0x21ff34,[_0x1ce18a[_0x3ed462('0x582')][_0x3ed462('0x1536')]['replace']('-','')],[_0x570270]);}function _0x3a5c81(){var _0xfa58b8=_0x20099b;_0x10a18c&&(_0x1a90c9[_0xfa58b8('0x2030')](_0x10a18c),_0x10a18c=null);}function _0x11b85b(_0x16b34c,_0x2cd38c){var _0x3007aa=_0x20099b;return _0x1c86d3[_0x3007aa('0x272b')][_0x3007aa('0x264e')]({'id':_0x16b34c['id']},{'screenrecording':_0x2cd38c})[_0x3007aa('0x1dc2')][_0x3007aa('0x253d')](function(_0x8ce2c2){var _0x535992=_0x3007aa;_0x5608f9[_0x535992('0x187f')]({'title':_0x8ce2c2[_0x535992('0x2fa')]?_0x535992('0x16c2')+_0x8ce2c2[_0x535992('0x2fa')]+_0x535992('0x169e')+_0x8ce2c2[_0x535992('0x24df')]:_0x535992('0x11e6'),'msg':_0x8ce2c2[_0x535992('0x10fd')]?JSON[_0x535992('0xa48')](_0x8ce2c2['data']['message']):_0x8ce2c2['toString']()});});}_0x347510[_0x20099b('0xc75')](_0x20099b('0x12d0'),function(){var _0x1e6bbc=_0x20099b;_0x22cd53['removeAllListeners'](_0x1e6bbc('0x1acf')),_0x22cd53[_0x1e6bbc('0x2629')]('user:update'),_0x22cd53[_0x1e6bbc('0x2629')]('user:agentconnect'),_0x22cd53[_0x1e6bbc('0x2629')]('user:agentcomplete'),_0x3a5c81();});}const _0x587b6a=_0x41eb35,_0x3d89f9=_0x4fb511['p']+_0x1a8446('0x20c1'),_0x279a46=_0x4fb511['p']+_0x1a8446('0x1a8c');_0x5b3450['$inject']=[_0x1a8446('0x51'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$q',_0x1a8446('0x39b'),_0x1a8446('0x21b3'),_0x1a8446('0x4d7'),_0x1a8446('0x1f2f'),_0x1a8446('0x157'),_0x1a8446('0xe74'),_0x1a8446('0x2a4'),'userProfile',_0x1a8446('0x1a50'),_0x1a8446('0x1dfd')];function _0x5b3450(_0x45c938,_0x8d75d3,_0x19ff6b,_0x3e53c2,_0x361360,_0xd92c3c,_0x424023,_0x358601,_0x42e30f,_0x4c24ad,_0x1ff6ec,_0x56b919,_0x1dea8a,_0x446f69){var _0x4164a4=_0x1a8446,_0xc36287=this,_0x2e42f8=['loggedIn',_0x4164a4('0x1ade'),_0x4164a4('0xd3d'),'talking','pTalking',_0x4164a4('0x301'),'message',_0x4164a4('0x1b71'),_0x4164a4('0x1ba1'),'Trunk','paused'];_0xc36287[_0x4164a4('0x7fc')]=_0x446f69[_0x4164a4('0xacc')](),_0xc36287['count']=_0x424023[_0x4164a4('0xd15')]?_0x424023[_0x4164a4('0xd15')]:0x0,_0xc36287[_0x4164a4('0x4d7')]=_0x424023?_0x51538b()[_0x4164a4('0x184a')](_0x424023[_0x4164a4('0x580')]?_0x424023[_0x4164a4('0x580')]:[],'id'):{},_0xc36287['rpcQueues']=_0x358601?_0x51538b()['keyBy'](_0x358601[_0x4164a4('0x580')]?_0x358601[_0x4164a4('0x580')]:[],'id'):{},_0xc36287['userProfile']=_0x56b919,_0xc36287['userProfileSection']=_0x1dea8a&&_0x1dea8a['count']==0x1?_0x1dea8a[_0x4164a4('0x580')][0x0]:null,_0xc36287[_0x4164a4('0xada')]=_0x446f69[_0x4164a4('0xffd')](_0xc36287[_0x4164a4('0x1a50')]?_0xc36287[_0x4164a4('0x1a50')][_0x4164a4('0xada')]:null);_0x446f69[_0x4164a4('0x26e8')](_0x4164a4('0x178b'))?_0xc36287['query']={'type':'inbound','sort':_0x4164a4('0xd82'),'limit':0xa,'page':0x1}:_0xc36287['query']={'id':_0xc36287['currentUser']['id'],'channel':_0x4164a4('0x220d'),'type':_0x4164a4('0x4b8'),'sort':_0x4164a4('0xd82'),'limit':0xa,'page':0x1};_0xc36287[_0x4164a4('0xe10')]=_0x347032,_0xc36287['getQueues']=_0x3424b6,_0xc36287[_0x4164a4('0x223c')]=_0x38a3f4,_0xc36287[_0x4164a4('0x101f')]=_0x1abc55,_0xc36287[_0x4164a4('0x19b3')]=_0x51475c,_0xc36287[_0x4164a4('0x1a4b')]=_0x3db297,_0xc36287[_0x4164a4('0x22a5')]=_0x53eb97,_0xc36287[_0x4164a4('0x6d4')]=_0x5e48ea,_0xc36287[_0x4164a4('0x2511')]=_0x445ce1,_0xc36287[_0x4164a4('0x24d2')]=_0x5ca8c0,_0xc36287[_0x4164a4('0x10c6')]=_0x427a52,_0xc36287[_0x4164a4('0x141')]=_0x2abf03,_0xc36287[_0x4164a4('0x1536')]=[],_0x51538b()[_0x4164a4('0x143e')](_0xc36287['queues'],function(_0x4e9c16){var _0x22c7dc=_0x4164a4;_0xc36287[_0x22c7dc('0x1536')]['push'](_0x4e9c16['id']);}),_0x4c24ad['on'](_0x4164a4('0x688'),_0xc36287[_0x4164a4('0x1a4b')]),_0x4c24ad['on'](_0x4164a4('0x1c49'),_0xc36287[_0x4164a4('0x22a5')]),_0x4c24ad['on']('userWhatsappQueue:remove',_0xc36287[_0x4164a4('0x6d4')]),_0x4c24ad['on'](_0x4164a4('0x15fb'),_0xc36287[_0x4164a4('0x2511')]),_0x4c24ad['on'](_0x4164a4('0x10ac'),_0xc36287['onLogout']),_0x4c24ad['on'](_0x4164a4('0x77e'),_0xc36287[_0x4164a4('0x24d2')]);function _0x2abf03(){var _0x83522=_0x4164a4,_0x18a4d8=[];return _0x51538b()['forIn'](_0xc36287[_0x83522('0x4d7')],function(_0x444cd6,_0xbcdc9){var _0x419e30=_0x83522;_0x444cd6[_0x419e30('0x16ce')]=0x0,_0x444cd6['loggedInDb']=0x0,_0xc36287[_0x419e30('0x4d7')][_0xbcdc9][_0x419e30('0x1717')]={},_0x18a4d8[_0x419e30('0x1599')](_0x42e30f[_0x419e30('0x48f')][_0x419e30('0xc8e')]({'id':_0xbcdc9})[_0x419e30('0x1dc2')]),_0xc36287[_0x419e30('0x1f2f')][_0xbcdc9]&&_0x51538b()[_0x419e30('0x283c')](_0x444cd6,_0x51538b()[_0x419e30('0x104e')](_0xc36287[_0x419e30('0x1f2f')][_0xbcdc9],_0x2e42f8));}),_0x3e53c2[_0x83522('0xa15')](_0x18a4d8)[_0x83522('0xaa5')](function(_0x35e822){var _0x3e6c6b=_0x83522;for(var _0x562bf8=0x0;_0x562bf8<_0x35e822[_0x3e6c6b('0x2587')];_0x562bf8+=0x1){for(var _0x426d69=0x0;_0x426d69<_0x35e822[_0x562bf8][_0x3e6c6b('0x580')]['length'];_0x426d69++){_0x35e822[_0x562bf8]['rows'][_0x426d69][_0x3e6c6b('0x16ce')]&&_0xc36287[_0x3e6c6b('0x4d7')][_0x35e822[_0x562bf8][_0x3e6c6b('0x580')][_0x426d69][_0x3e6c6b('0x1d06')]][_0x3e6c6b('0x16ce')]++,_0xc36287[_0x3e6c6b('0x4d7')][_0x35e822[_0x562bf8][_0x3e6c6b('0x580')][_0x426d69][_0x3e6c6b('0x1d06')]][_0x3e6c6b('0xe81')]++,_0xc36287['queues'][_0x35e822[_0x562bf8][_0x3e6c6b('0x580')][_0x426d69][_0x3e6c6b('0x1d06')]][_0x3e6c6b('0x1717')][_0x35e822[_0x562bf8][_0x3e6c6b('0x580')][_0x426d69][_0x3e6c6b('0x1037')]]=_0x35e822[_0x562bf8][_0x3e6c6b('0x580')][_0x426d69][_0x3e6c6b('0x1d06')];}}})[_0x83522('0x253d')](function(_0x817f7){console['error'](_0x817f7);});}function _0x3db297(_0x3c7966){var _0xdcfa29=_0x4164a4;_0xc36287['queues'][_0x3c7966['id']]&&_0x51538b()['merge'](_0xc36287['queues'][_0x3c7966['id']],_0x51538b()[_0xdcfa29('0x104e')](_0x3c7966,_0x2e42f8));}function _0x53eb97(_0x2ad2e2){var _0x40b79e=_0x4164a4;_0xc36287[_0x40b79e('0x4d7')][_0x2ad2e2[_0x40b79e('0x1d06')]]&&_0xc36287[_0x40b79e('0x4d7')][_0x2ad2e2[_0x40b79e('0x1d06')]]['loggedInDb']++;}function _0x5e48ea(_0x55751f){var _0x386d07=_0x4164a4;_0xc36287[_0x386d07('0x4d7')][_0x55751f[_0x386d07('0x1d06')]]&&_0xc36287[_0x386d07('0x4d7')][_0x55751f[_0x386d07('0x1d06')]][_0x386d07('0xe81')]--;}function _0x445ce1(_0x3fc35a){var _0x35023e=_0x4164a4;console[_0x35023e('0x18d5')](_0x35023e('0x2511'),_0x3fc35a);if(_0x3fc35a[_0x35023e('0x2519')])_0x51538b()['forIn'](_0xc36287[_0x35023e('0x4d7')],function(_0x549fc3){var _0x516fda=_0x35023e;_0x549fc3[_0x516fda('0x1717')][_0x3fc35a['id']]&&(_0x549fc3[_0x516fda('0x16ce')]+=0x1,console[_0x516fda('0x18d5')]('pause'));});else!_0x3fc35a[_0x35023e('0x2519')]&&_0x51538b()['forIn'](_0xc36287[_0x35023e('0x4d7')],function(_0x3f7e0b){var _0x26b4eb=_0x35023e;_0x3f7e0b[_0x26b4eb('0x1717')][_0x3fc35a['id']]&&(_0x3f7e0b[_0x26b4eb('0x16ce')]>0x0&&(_0x3f7e0b['paused']-=0x1,console[_0x26b4eb('0x18d5')]('unpause')));});}function _0x5ca8c0(_0x2cb944){var _0x526772=_0x4164a4;console['log'](_0x526772('0x1044'),_0x2cb944),_0xc36287[_0x526772('0x4d7')][_0x2cb944[_0x526772('0x1d06')]]&&(_0xc36287[_0x526772('0x4d7')][_0x2cb944[_0x526772('0x1d06')]][_0x526772('0xe81')]+=0x1,_0xc36287[_0x526772('0x4d7')][_0x2cb944['WhatsappQueueId']][_0x526772('0x1717')][_0x2cb944['UserId']]=_0x2cb944[_0x526772('0x1d06')]);}function _0x427a52(_0x37acdb){var _0x5657f2=_0x4164a4;console['log'](_0x5657f2('0x10c6'),_0x37acdb),_0xc36287[_0x5657f2('0x4d7')][_0x37acdb[_0x5657f2('0x1d06')]]&&_0xc36287[_0x5657f2('0x4d7')][_0x37acdb[_0x5657f2('0x1d06')]][_0x5657f2('0xe81')]>0x0&&(_0xc36287[_0x5657f2('0x4d7')][_0x37acdb[_0x5657f2('0x1d06')]][_0x5657f2('0xe81')]-=0x1,delete _0xc36287[_0x5657f2('0x4d7')][_0x37acdb[_0x5657f2('0x1d06')]][_0x5657f2('0x1717')][_0x37acdb[_0x5657f2('0x1037')]]);}var _0x5c1f36=!![],_0x3ea054=0x1;_0x45c938[_0x4164a4('0x1ccf')](_0x4164a4('0x1788'),function(_0x27f111,_0x9792fb){var _0x67268d=_0x4164a4;_0x5c1f36?_0x8d75d3(function(){_0x5c1f36=![];}):(!_0x9792fb&&(_0x3ea054=_0xc36287[_0x67268d('0x582')][_0x67268d('0x41')]),_0x27f111!==_0x9792fb&&(_0xc36287['query'][_0x67268d('0x41')]=0x1),!_0x27f111&&(_0xc36287['query'][_0x67268d('0x41')]=_0x3ea054),_0xc36287[_0x67268d('0x1e87')]());});function _0x347032(_0x1be42c){var _0x1eb563=_0x4164a4;_0xc36287[_0x1eb563('0xd15')]=_0x1be42c['count'],_0xc36287['queues']=_0x1be42c?_0x51538b()['keyBy'](_0x1be42c[_0x1eb563('0x580')]?_0x1be42c[_0x1eb563('0x580')]:[],'id'):{};if(_0x1be42c[_0x1eb563('0x580')]){_0xc36287['order']=[];for(var _0x558284=0x0;_0x558284<_0x1be42c[_0x1eb563('0x580')][_0x1eb563('0x2587')];_0x558284++){_0xc36287[_0x1eb563('0x1536')][_0x1eb563('0x1599')](_0x1be42c[_0x1eb563('0x580')][_0x558284]['id']);}}_0x2abf03();}function _0x3424b6(){var _0x3f8ec3=_0x4164a4;_0xc36287[_0x3f8ec3('0x582')][_0x3f8ec3('0x8b1')]=(_0xc36287['query']['page']-0x1)*_0xc36287[_0x3f8ec3('0x582')][_0x3f8ec3('0xf4d')],_0x446f69[_0x3f8ec3('0x26e8')]('admin')?_0xc36287[_0x3f8ec3('0x159a')]=_0x42e30f[_0x3f8ec3('0x48f')][_0x3f8ec3('0x2122')](_0xc36287[_0x3f8ec3('0x582')],_0x347032)['$promise']:(_0xc36287[_0x3f8ec3('0x582')]['id']=_0xc36287[_0x3f8ec3('0x1e97')]['id'],_0xc36287[_0x3f8ec3('0x582')][_0x3f8ec3('0x224d')]=_0x3f8ec3('0x1991'),_0xc36287[_0x3f8ec3('0x159a')]=_0x42e30f['userProfile']['getResources'](_0xc36287[_0x3f8ec3('0x582')],_0x347032)[_0x3f8ec3('0x1dc2')]);}function _0x38a3f4(_0x2f6e2e,_0x1d5ce5){var _0x1780df=_0x4164a4;_0x19ff6b['show']({'controller':_0x1780df('0x4f9'),'controllerAs':'vm','templateUrl':_0x3d89f9,'parent':angular[_0x1780df('0x1aa8')](_0x361360['body']),'targetEvent':_0x2f6e2e,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x1d5ce5,'whatsappQueues':_0x51538b()[_0x1780df('0x3c5')](_0xc36287[_0x1780df('0x4d7')]),'license':null,'setting':null,'crudPermissions':_0xc36287['crudPermissions']}});}function _0x1abc55(_0x1309df,_0xdf975f){var _0x175cef=_0x4164a4;_0x19ff6b[_0x175cef('0x1e6d')]({'controller':_0x175cef('0x934'),'controllerAs':'vm','templateUrl':_0x279a46,'parent':angular[_0x175cef('0x1aa8')](_0x361360[_0x175cef('0x54c')]),'targetEvent':_0x1309df,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0xdf975f,'whatsappQueues':_0xc36287[_0x175cef('0x4d7')]?_0xc36287['queues'][_0x175cef('0x580')]:[],'realtime':![],'crudPermissions':_0xc36287['crudPermissions']}});}function _0x51475c(_0x1bd1a6){var _0x42c159=_0x4164a4;return _0x42e30f[_0x42c159('0x48f')][_0x42c159('0x264e')](_0x1bd1a6)['$promise'][_0x42c159('0xaa5')](function(){var _0x2f19aa=_0x42c159;_0x1ff6ec['success']({'title':'Queue\x20properly\x20updated!','msg':_0x1bd1a6[_0x2f19aa('0x25d6')]?_0x1bd1a6[_0x2f19aa('0x25d6')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x2fecbb){var _0x162995=_0x42c159;_0x1ff6ec[_0x162995('0x187f')]({'title':_0x162995('0x777'),'msg':_0x2fecbb[_0x162995('0x1402')]});});}_0x45c938['$on']('$destroy',function(){var _0xbf17a5=_0x4164a4;_0x4c24ad[_0xbf17a5('0x2629')](_0xbf17a5('0x688')),_0x4c24ad['removeAllListeners']('userWhatsappQueue:remove'),_0x4c24ad[_0xbf17a5('0x2629')](_0xbf17a5('0x1c49')),_0x4c24ad[_0xbf17a5('0x2629')](_0xbf17a5('0x15fb')),_0x4c24ad[_0xbf17a5('0x2629')]('userVoiceQueue:remove'),_0x4c24ad[_0xbf17a5('0x2629')]('userVoiceQueue:save');});}const _0x38086f=_0x5b3450;function _0x2b7b9e(){var _0x999850=_0x1a8446;return{'status':{'registered':_0x999850('0x1'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x999850('0x15cb'),'reachable':_0x999850('0x1'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x999850('0x17')},'state':{'unknown':_0x999850('0xc98'),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x999850('0xb2'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x999850('0xc98'),'ringing':_0x999850('0x1dac'),'ringinuse':_0x999850('0x1dac'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x999850('0x1dac'),'up':_0x999850('0xe58'),'hangup':_0x999850('0x182a')},'channelStatusOut':{'ring':_0x999850('0x15d9'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x999850('0x182a')}};}const _0x1815f8=_0x2b7b9e;_0x4ae289[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0xe74')];function _0x4ae289(_0x3f2c1e,_0x1b0117,_0x31a33b){var _0x5e3a46=_0x1a8446,_0x3ae3b0=this;_0x31a33b[_0x5e3a46('0x18d1')](),_0x31a33b['connect'](),_0x3ae3b0[_0x5e3a46('0xe5c')]=0x0;switch(_0x1b0117[_0x5e3a46('0x4cb')][_0x5e3a46('0x25d6')]){case _0x5e3a46('0x35'):_0x3ae3b0[_0x5e3a46('0xe5c')]=0x0;break;case _0x5e3a46('0x1ad9'):_0x3ae3b0[_0x5e3a46('0xe5c')]=0x1;break;default:_0x3ae3b0[_0x5e3a46('0xe5c')]=0x0,_0x1b0117['go'](_0x5e3a46('0x35'));}_0x3f2c1e[_0x5e3a46('0x1ccf')](_0x5e3a46('0xf1a'),function(_0x2cf581,_0x43121d){var _0x46916e=_0x5e3a46;if(_0x2cf581!==_0x43121d)switch(_0x2cf581){case 0x0:_0x1b0117['go']('app.whatsapp.realtime.agents');break;case 0x1:_0x1b0117['go']('app.whatsapp.realtime.queues');break;default:_0x1b0117['go'](_0x46916e('0x35'));break;}});}const _0x3b8e2c=_0x4ae289;_0x225286[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce')];function _0x225286(_0x142684){var _0x5efdc2=_0x1a8446;_0x142684[_0x5efdc2('0xb46')](_0x5efdc2('0x1daf'),{'url':_0x5efdc2('0x22d4'),'views':{'content@app':{'templateUrl':_0x1a46a4,'controller':'WhatsappRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0x5efdc2('0x1d16'),'Auth',function _0x462ed5(_0x229adf,_0x4e870b){var _0x1cf712=_0x5efdc2;return _0x4e870b[_0x1cf712('0x26e8')](_0x1cf712('0x178b'))?null:_0x229adf[_0x1cf712('0x149f')]('userProfile@get',{'fields':_0x1cf712('0x1bb0'),'id':_0x4e870b[_0x1cf712('0xacc')]()[_0x1cf712('0x2168')]});}],'userProfileSection':['apiResolver',_0x5efdc2('0x1dfd'),function _0x49119a(_0x19956a,_0xad3ebb){var _0x19b637=_0x5efdc2;return _0xad3ebb[_0x19b637('0x26e8')]('admin')?null:_0x19956a['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xad3ebb[_0x19b637('0xacc')]()[_0x19b637('0x2168')],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})['state']('app.whatsapp.realtime.agents',{'url':_0x5efdc2('0x141f'),'controller':_0x5efdc2('0x190f'),'templateUrl':_0x2392e8,'resolve':{'pauses':['apiResolver',function _0x206132(_0x49bbee){var _0x33f7a1=_0x5efdc2;return _0x49bbee['resolve'](_0x33f7a1('0x56b'),{'nolimit':!![]});}],'agents':[_0x5efdc2('0x1d16'),_0x5efdc2('0x1dfd'),function _0x2e520f(_0x499124,_0x3f561e){var _0x20c553=_0x5efdc2;return _0x3f561e[_0x20c553('0x26e8')]('admin')?_0x499124[_0x20c553('0x149f')](_0x20c553('0xde4'),{'fields':_0x20c553('0x515'),'role':'agent','sort':'fullname','nolimit':!![]}):_0x499124[_0x20c553('0x149f')](_0x20c553('0x49a'),{'id':_0x3f561e['getCurrentUser']()[_0x20c553('0x2168')],'section':_0x20c553('0x91a'),'fields':_0x20c553('0x515'),'role':_0x20c553('0xeff'),'sort':_0x20c553('0x18e5'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x5efdc2('0x1dfd'),function _0x55f7fa(_0x123599,_0x9d5a81){var _0x4f3ec0=_0x5efdc2;return _0x9d5a81['hasRole'](_0x4f3ec0('0x178b'))?null:_0x123599[_0x4f3ec0('0x149f')](_0x4f3ec0('0x567'),{'fields':_0x4f3ec0('0x1bb0'),'id':_0x9d5a81[_0x4f3ec0('0xacc')]()[_0x4f3ec0('0x2168')]});}],'userProfileSection':[_0x5efdc2('0x1d16'),_0x5efdc2('0x1dfd'),function _0xcd6757(_0x47d156,_0x3be29b){var _0x36934a=_0x5efdc2;return _0x3be29b[_0x36934a('0x26e8')]('admin')?null:_0x47d156[_0x36934a('0x149f')]('userProfileSection@get',{'fields':_0x36934a('0xe6a'),'userProfileId':_0x3be29b['getCurrentUser']()[_0x36934a('0x2168')],'sectionId':0xca});}],'rpcAgents':[_0x5efdc2('0x1d16'),function _0x11c03d(_0x5c5d44){var _0x48391f=_0x5efdc2;return _0x5c5d44[_0x48391f('0x149f')](_0x48391f('0x1809'));}]},'authenticate':!![],'permissionId':0x83e})[_0x5efdc2('0xb46')](_0x5efdc2('0x1ad9'),{'url':_0x5efdc2('0x1d17'),'controller':_0x5efdc2('0x1fda'),'templateUrl':_0x5ce4a6,'resolve':{'queues':[_0x5efdc2('0x1d16'),_0x5efdc2('0x1dfd'),function _0x2427ce(_0x2b1051,_0x1a1df8){var _0x6e3516=_0x5efdc2;return _0x1a1df8[_0x6e3516('0x26e8')]('admin')?_0x2b1051[_0x6e3516('0x149f')]('whatsappQueue@get',{'type':_0x6e3516('0x4b8'),'sort':_0x6e3516('0xd82'),'limit':0xa,'offset':0x0}):_0x2b1051[_0x6e3516('0x149f')](_0x6e3516('0x49a'),{'id':_0x1a1df8[_0x6e3516('0xacc')]()[_0x6e3516('0x2168')],'section':'WhatsappQueues','channel':'whatsapp','type':_0x6e3516('0x4b8'),'sort':_0x6e3516('0xd82'),'limit':0xa,'page':0x1});}],'userProfile':[_0x5efdc2('0x1d16'),_0x5efdc2('0x1dfd'),function _0x2ce596(_0x20410a,_0x13d38f){var _0x27c822=_0x5efdc2;return _0x13d38f[_0x27c822('0x26e8')](_0x27c822('0x178b'))?null:_0x20410a[_0x27c822('0x149f')](_0x27c822('0x567'),{'fields':_0x27c822('0x1bb0'),'id':_0x13d38f[_0x27c822('0xacc')]()[_0x27c822('0x2168')]});}],'userProfileSection':[_0x5efdc2('0x1d16'),_0x5efdc2('0x1dfd'),function _0x34a5de(_0x39d6b7,_0x5224b5){var _0x23fb07=_0x5efdc2;return _0x5224b5['hasRole']('admin')?null:_0x39d6b7['resolve'](_0x23fb07('0x89e'),{'fields':_0x23fb07('0xe6a'),'userProfileId':_0x5224b5['getCurrentUser']()[_0x23fb07('0x2168')],'sectionId':0x835});}],'rpcQueues':[_0x5efdc2('0x1d16'),function _0x2d0289(_0x40c567){var _0x40ab54=_0x5efdc2;return _0x40c567[_0x40ab54('0x149f')]('rpc@getWhatsappQueues');}]},'authenticate':!![],'permissionId':0x83e});}angular['module'](_0x1a8446('0x1daf'),[])['config'](_0x225286)['controller']('AgentsWhatsappRealtimeController',_0x587b6a)[_0x1a8446('0x780')](_0x1a8446('0x1546'),_0x38086f)[_0x1a8446('0x1be9')]('helperClasses',_0x1815f8)[_0x1a8446('0x780')](_0x1a8446('0x11ab'),_0x3b8e2c);const _0x847cb0=_0x4fb511['p']+_0x1a8446('0x1cc4'),_0x1d05f5=_0x4fb511['p']+_0x1a8446('0x16a6'),_0x1e80bc=_0x4fb511['p']+_0x1a8446('0x2820'),_0x342507=_0x4fb511['p']+_0x1a8446('0x1b59');_0x3315c9['$inject']=['$scope','$state',_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),_0x1a8446('0x2613'),_0x1a8446('0x26ac'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0xada')];function _0x3315c9(_0x2b950d,_0x35fb6a,_0x5b611a,_0x51ec4,_0x405782,_0x10a19a,_0x46c83a,_0x540200,_0x29e38a,_0x2bcd20,_0x2a9b80,_0x53f5b9,_0x120e7e,_0x504905){var _0xb8bba7=_0x1a8446,_0x3533d0=this;_0x3533d0[_0xb8bba7('0x7fc')]=_0x2a9b80[_0xb8bba7('0xacc')](),_0x3533d0[_0xb8bba7('0x4c6')]=[],_0x3533d0[_0xb8bba7('0x143f')]=_0x120e7e,_0x3533d0[_0xb8bba7('0x1202')]=_0x53f5b9,_0x3533d0[_0xb8bba7('0xada')]=_0x504905,_0x3533d0[_0xb8bba7('0x9f0')]={},_0x3533d0['passwordPattern']=_0x3533d0[_0xb8bba7('0x143f')]&&_0x3533d0['setting'][_0xb8bba7('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3533d0[_0xb8bba7('0x110a')]='WHATSAPP.EDIT_WHATSAPPACCOUNT',_0x3533d0[_0xb8bba7('0x26ac')]=angular[_0xb8bba7('0x20a')](_0x29e38a),_0x3533d0['whatsappAccounts']=_0x540200,_0x3533d0[_0xb8bba7('0x18bc')]=![];!_0x3533d0[_0xb8bba7('0x26ac')]&&(_0x3533d0[_0xb8bba7('0x26ac')]={'remote':_0x5b611a[_0xb8bba7('0x1cc2')]()+_0xb8bba7('0x356')+_0x5b611a[_0xb8bba7('0x160c')]()+(_0x5b611a['port']()?':'+_0x5b611a['port']():''),'type':_0xb8bba7('0x673'),'notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x3533d0[_0xb8bba7('0x110a')]=_0xb8bba7('0x4a8'),_0x3533d0[_0xb8bba7('0x18bc')]=!![]);_0x35fb6a['params']['id']&&(_0x3533d0[_0xb8bba7('0x26ac')][_0xb8bba7('0x1ab5')]=_0x35fb6a['params']['id']);_0x3533d0['addNewWhatsappAccount']=_0x1dfb89,_0x3533d0[_0xb8bba7('0x2156')]=_0x49c528,_0x3533d0[_0xb8bba7('0xcca')]=_0x504f6d,_0x3533d0['getDateFromString']=_0x3fca36,_0x3533d0['closeDialog']=_0x2e3584,_0x2a9b80[_0xb8bba7('0x26e8')]('admin')?_0x2bcd20['cmList']['get']({'fields':_0xb8bba7('0x17fe'),'sort':_0xb8bba7('0x25d6')})[_0xb8bba7('0x1dc2')][_0xb8bba7('0xaa5')](function(_0x15922a){var _0x3b4bb2=_0xb8bba7;_0x3533d0[_0x3b4bb2('0x1126')]=_0x15922a[_0x3b4bb2('0x580')]||[];})[_0xb8bba7('0x253d')](function(_0xf4069b){var _0x4b0c0e=_0xb8bba7;_0x46c83a[_0x4b0c0e('0x187f')]({'title':_0xf4069b[_0x4b0c0e('0x2fa')]?_0x4b0c0e('0x16c2')+_0xf4069b[_0x4b0c0e('0x2fa')]+_0x4b0c0e('0x169e')+_0xf4069b[_0x4b0c0e('0x24df')]:_0x4b0c0e('0x1adf'),'msg':_0xf4069b[_0x4b0c0e('0x10fd')]?JSON['stringify'](_0xf4069b[_0x4b0c0e('0x10fd')]):_0xf4069b[_0x4b0c0e('0x684')]()});}):_0x2bcd20[_0xb8bba7('0x26b4')][_0xb8bba7('0x2122')]({'fields':_0xb8bba7('0x17fe'),'sort':_0xb8bba7('0x25d6')})[_0xb8bba7('0x1dc2')][_0xb8bba7('0xaa5')](function(_0x413d43){var _0x187370=_0xb8bba7;_0x3533d0[_0x187370('0x1126')]=_0x413d43[_0x187370('0x580')]||[];})[_0xb8bba7('0xaa5')](function(){var _0x9a55d0=_0xb8bba7;return _0x2bcd20[_0x9a55d0('0x1a50')]['get']({'userProfileId':_0x3533d0['currentUser'][_0x9a55d0('0x2168')],'sectionId':0x12d})['$promise'];})[_0xb8bba7('0xaa5')](function(_0x450b3d){var _0x4275e9=_0xb8bba7,_0x3ca320=_0x450b3d&&_0x450b3d[_0x4275e9('0x580')]?_0x450b3d[_0x4275e9('0x580')][0x0]:null;if(!_0x3ca320){var _0x340132=[],_0x44a0e8=null;_0x3533d0['whatsappAccount']&&(_0x44a0e8=_0x51538b()[_0x4275e9('0xe9e')](_0x3533d0['lists'],{'id':Number(_0x3533d0['whatsappAccount'][_0x4275e9('0xee0')])}));for(var _0xd6b22e=0x0;_0xd6b22e<_0x3533d0[_0x4275e9('0x1126')][_0x4275e9('0x2587')];_0xd6b22e++){_0x44a0e8&&_0x3533d0[_0x4275e9('0x1126')][_0xd6b22e]['id']===_0x44a0e8['id']&&(_0x3533d0[_0x4275e9('0x1126')][_0xd6b22e][_0x4275e9('0x12eb')]=![],_0x340132[_0x4275e9('0x1599')](_0x3533d0[_0x4275e9('0x1126')][_0xd6b22e]));}_0x3533d0['lists']=_0x340132;}else{if(!_0x3ca320[_0x4275e9('0x26cc')])return _0x2bcd20[_0x4275e9('0x249a')][_0x4275e9('0x2122')]({'sectionId':_0x3ca320['id']})[_0x4275e9('0x1dc2')]['then'](function(_0x4f4e31){var _0x571bd1=_0x4275e9,_0xa3987b=_0x51538b()[_0x571bd1('0x1246')](_0x4f4e31[_0x571bd1('0x580')],function(_0x2170e3){var _0x2fc7d9=_0x571bd1;return _0x51538b()[_0x2fc7d9('0xe9e')](_0x3533d0[_0x2fc7d9('0x1126')],{'id':_0x2170e3[_0x2fc7d9('0xbcd')]});}),_0x202e8a=null;_0x3533d0['whatsappAccount']&&(_0x202e8a=_0x51538b()[_0x571bd1('0xe9e')](_0x3533d0[_0x571bd1('0x1126')],{'id':Number(_0x3533d0[_0x571bd1('0x26ac')][_0x571bd1('0xee0')])}));if(_0x202e8a&&!_0x51538b()['some'](_0xa3987b,['id',_0x202e8a['id']])){var _0x1a0565=_0x51538b()[_0x571bd1('0xe9e')](_0x3533d0[_0x571bd1('0x1126')],{'id':_0x202e8a['id']});_0x1a0565[_0x571bd1('0x12eb')]=![],_0xa3987b[_0x571bd1('0x1599')](_0x1a0565);}_0x3533d0[_0x571bd1('0x1126')]=_0xa3987b;});}})['catch'](function(_0x5d6702){var _0xdb3229=_0xb8bba7;_0x46c83a['error']({'title':_0x5d6702[_0xdb3229('0x2fa')]?'API:'+_0x5d6702[_0xdb3229('0x2fa')]+_0xdb3229('0x169e')+_0x5d6702[_0xdb3229('0x24df')]:'SYSTEM:GETlists','msg':_0x5d6702['data']?JSON['stringify'](_0x5d6702['data']):_0x5d6702[_0xdb3229('0x684')]()});}),_0x2a9b80[_0xb8bba7('0x26e8')](_0xb8bba7('0x178b'))?_0x2bcd20['pause'][_0xb8bba7('0x2122')]({'fields':'name,id','sort':_0xb8bba7('0x25d6'),'nolimit':_0xb8bba7('0x1c5c')})[_0xb8bba7('0x1dc2')][_0xb8bba7('0xaa5')](function(_0x2967e5){var _0x3c48dc=_0xb8bba7;_0x3533d0[_0x3c48dc('0x2457')]=_0x2967e5[_0x3c48dc('0x580')]||[];})[_0xb8bba7('0x253d')](function(_0x6f45fc){var _0x3a41d8=_0xb8bba7;_0x46c83a[_0x3a41d8('0x187f')]({'title':_0x6f45fc[_0x3a41d8('0x2fa')]?'API:'+_0x6f45fc[_0x3a41d8('0x2fa')]+_0x3a41d8('0x169e')+_0x6f45fc['statusText']:'SYSTEM:GET_PAUSES','msg':_0x6f45fc[_0x3a41d8('0x10fd')]?JSON[_0x3a41d8('0xa48')](_0x6f45fc[_0x3a41d8('0x10fd')]):_0x6f45fc[_0x3a41d8('0x684')]()});}):_0x2bcd20[_0xb8bba7('0x167c')][_0xb8bba7('0x2122')]({'fields':_0xb8bba7('0xb22'),'sort':_0xb8bba7('0x25d6'),'nolimit':_0xb8bba7('0x1c5c')})[_0xb8bba7('0x1dc2')][_0xb8bba7('0xaa5')](function(_0x3197a7){var _0x27a4f3=_0xb8bba7;_0x3533d0[_0x27a4f3('0x2457')]=_0x3197a7[_0x27a4f3('0x580')]||[];})[_0xb8bba7('0xaa5')](function(){var _0x32eb84=_0xb8bba7;return _0x2bcd20[_0x32eb84('0x1a50')][_0x32eb84('0x2122')]({'userProfileId':_0x3533d0[_0x32eb84('0x7fc')]['userProfileId'],'sectionId':0x3ed})['$promise'];})[_0xb8bba7('0xaa5')](function(_0x4c3c54){var _0xa3f85b=_0xb8bba7,_0x4b7ddd=_0x4c3c54&&_0x4c3c54['rows']?_0x4c3c54[_0xa3f85b('0x580')][0x0]:null;if(!_0x4b7ddd)_0x3533d0['pauses']=[];else{if(!_0x4b7ddd['autoAssociation'])return _0x2bcd20[_0xa3f85b('0x249a')][_0xa3f85b('0x2122')]({'sectionId':_0x4b7ddd['id']})[_0xa3f85b('0x1dc2')]['then'](function(_0x2d9c4d){var _0x5c41d3=_0xa3f85b,_0x2f416e=_0x51538b()['map'](_0x2d9c4d['rows'],function(_0x643c5){var _0x5b3894=a0_0x1149;return _0x51538b()[_0x5b3894('0xe9e')](_0x3533d0[_0x5b3894('0x2457')],{'id':_0x643c5[_0x5b3894('0xbcd')]});});_0x3533d0['pauses'][_0x5c41d3('0x15b5')](function(_0x2fe0ca){var _0xc279b3=_0x5c41d3;!_0x51538b()[_0xc279b3('0x2c2')](_0x2f416e,['id',_0x2fe0ca['id']])&&(_0x2fe0ca[_0xc279b3('0x12eb')]=![]),_0x2f416e['push'](_0x2fe0ca);}),_0x3533d0[_0x5c41d3('0x2457')]=_0x2f416e;});}})[_0xb8bba7('0x253d')](function(_0x5e7d6d){var _0x5e7b24=_0xb8bba7;_0x46c83a['error']({'title':_0x5e7d6d[_0x5e7b24('0x2fa')]?_0x5e7b24('0x16c2')+_0x5e7d6d[_0x5e7b24('0x2fa')]+_0x5e7b24('0x169e')+_0x5e7d6d[_0x5e7b24('0x24df')]:_0x5e7b24('0xe71'),'msg':_0x5e7d6d['data']?JSON['stringify'](_0x5e7d6d['data']):_0x5e7d6d[_0x5e7b24('0x684')]()});});function _0x1dfb89(){var _0x37ffcb=_0xb8bba7;_0x3533d0[_0x37ffcb('0x4c6')]=[],_0x2bcd20[_0x37ffcb('0x26ac')][_0x37ffcb('0x242b')](_0x3533d0[_0x37ffcb('0x26ac')])[_0x37ffcb('0x1dc2')][_0x37ffcb('0xaa5')](function(_0x50342b){var _0x37d6f0=_0x37ffcb;_0x3533d0[_0x37d6f0('0x2613')][_0x37d6f0('0x6ee')](_0x50342b[_0x37d6f0('0x256a')]()),_0x46c83a['success']({'title':_0x37d6f0('0x176c'),'msg':_0x3533d0[_0x37d6f0('0x26ac')][_0x37d6f0('0x25d6')]?_0x3533d0[_0x37d6f0('0x26ac')][_0x37d6f0('0x25d6')]+_0x37d6f0('0xdca'):''}),_0x2e3584(_0x50342b);})[_0x37ffcb('0x253d')](function(_0x481bcb){var _0x551e61=_0x37ffcb;if(_0x481bcb[_0x551e61('0x10fd')]&&_0x481bcb[_0x551e61('0x10fd')][_0x551e61('0x4c6')]&&_0x481bcb[_0x551e61('0x10fd')][_0x551e61('0x4c6')][_0x551e61('0x2587')]){_0x3533d0['errors']=_0x481bcb['data'][_0x551e61('0x4c6')]||[{'message':_0x481bcb[_0x551e61('0x684')](),'type':_0x551e61('0x1739')}];for(var _0x11b8f8=0x0;_0x11b8f8<_0x481bcb[_0x551e61('0x10fd')][_0x551e61('0x4c6')][_0x551e61('0x2587')];_0x11b8f8+=0x1){_0x46c83a[_0x551e61('0x187f')]({'title':_0x481bcb[_0x551e61('0x10fd')][_0x551e61('0x4c6')][_0x11b8f8]['type'],'msg':_0x481bcb[_0x551e61('0x10fd')][_0x551e61('0x4c6')][_0x11b8f8][_0x551e61('0x1402')]});}}else _0x46c83a[_0x551e61('0x187f')]({'title':_0x481bcb[_0x551e61('0x2fa')]?_0x551e61('0x16c2')+_0x481bcb[_0x551e61('0x2fa')]+_0x551e61('0x169e')+_0x481bcb['statusText']:_0x551e61('0x1739'),'msg':_0x481bcb[_0x551e61('0x10fd')]?JSON['stringify'](_0x481bcb[_0x551e61('0x10fd')][_0x551e61('0x1402')]):_0x481bcb[_0x551e61('0x684')]()});});}function _0x49c528(){var _0x5729d3=_0xb8bba7;_0x3533d0[_0x5729d3('0x4c6')]=[],_0x2bcd20[_0x5729d3('0x26ac')]['update']({'id':_0x3533d0[_0x5729d3('0x26ac')]['id']},_0x3533d0[_0x5729d3('0x26ac')])[_0x5729d3('0x1dc2')]['then'](function(_0x13e6da){var _0x45ff92=_0x5729d3,_0x46bbd1=_0x51538b()[_0x45ff92('0xe9e')](_0x3533d0[_0x45ff92('0x2613')],{'id':_0x13e6da['id']});_0x46bbd1&&_0x51538b()[_0x45ff92('0x283c')](_0x46bbd1,_0x51538b()['pick'](_0x13e6da['toJSON'](),_0x51538b()[_0x45ff92('0x9f2')](_0x46bbd1))),_0x46c83a['success']({'title':'WhatsappAccount\x20properly\x20saved!','msg':_0x3533d0[_0x45ff92('0x26ac')]['name']?_0x3533d0[_0x45ff92('0x26ac')]['name']+_0x45ff92('0x20bf'):''}),_0x2e3584(_0x13e6da);})[_0x5729d3('0x253d')](function(_0xec069d){var _0x4ae7c6=_0x5729d3;if(_0xec069d[_0x4ae7c6('0x10fd')]&&_0xec069d[_0x4ae7c6('0x10fd')][_0x4ae7c6('0x4c6')]&&_0xec069d[_0x4ae7c6('0x10fd')][_0x4ae7c6('0x4c6')][_0x4ae7c6('0x2587')]){_0x3533d0[_0x4ae7c6('0x4c6')]=_0xec069d['data'][_0x4ae7c6('0x4c6')]||[{'message':_0xec069d[_0x4ae7c6('0x684')](),'type':'api.whatsappAccount.update'}];for(var _0x3137eb=0x0;_0x3137eb<_0xec069d['data']['errors'][_0x4ae7c6('0x2587')];_0x3137eb++){_0x46c83a[_0x4ae7c6('0x187f')]({'title':_0xec069d[_0x4ae7c6('0x10fd')][_0x4ae7c6('0x4c6')][_0x3137eb][_0x4ae7c6('0x6c8')],'msg':_0xec069d[_0x4ae7c6('0x10fd')]['errors'][_0x3137eb][_0x4ae7c6('0x1402')]});}}else _0x46c83a[_0x4ae7c6('0x187f')]({'title':_0xec069d[_0x4ae7c6('0x2fa')]?'API:'+_0xec069d['status']+_0x4ae7c6('0x169e')+_0xec069d[_0x4ae7c6('0x24df')]:_0x4ae7c6('0x176f'),'msg':_0xec069d[_0x4ae7c6('0x10fd')]?JSON[_0x4ae7c6('0xa48')](_0xec069d[_0x4ae7c6('0x10fd')][_0x4ae7c6('0x1402')]):_0xec069d[_0x4ae7c6('0x684')]()});});}function _0x504f6d(_0x2f7777){var _0x31bcba=_0xb8bba7;_0x3533d0[_0x31bcba('0x4c6')]=[];var _0x2fd8be=_0x51ec4[_0x31bcba('0x281e')]()[_0x31bcba('0x110a')](_0x31bcba('0x12a3'))[_0x31bcba('0x15af')](_0x31bcba('0x4f2'))[_0x31bcba('0x5b5')](_0x31bcba('0x1d5f'))['ok'](_0x31bcba('0x1e76'))[_0x31bcba('0x2030')](_0x31bcba('0x9c6'))[_0x31bcba('0x116d')](_0x2f7777);_0x51ec4[_0x31bcba('0x1e6d')](_0x2fd8be)[_0x31bcba('0xaa5')](function(){var _0x278816=_0x31bcba;_0x2bcd20[_0x278816('0x26ac')][_0x278816('0x926')]({'id':_0x3533d0[_0x278816('0x26ac')]['id']})['$promise']['then'](function(){var _0x2151e8=_0x278816;_0x51538b()[_0x2151e8('0xf6d')](_0x3533d0[_0x2151e8('0x2613')],{'id':_0x3533d0['whatsappAccount']['id']}),_0x46c83a['success']({'title':'WhatsappAccount\x20properly\x20deleted!','msg':(_0x3533d0[_0x2151e8('0x26ac')]['name']||_0x2151e8('0x26ac'))+_0x2151e8('0xcd9')}),_0x2e3584(_0x3533d0[_0x2151e8('0x26ac')]);})[_0x278816('0x253d')](function(_0x480caf){var _0x2eb5fd=_0x278816;if(_0x480caf[_0x2eb5fd('0x10fd')]&&_0x480caf[_0x2eb5fd('0x10fd')]['errors']&&_0x480caf[_0x2eb5fd('0x10fd')][_0x2eb5fd('0x4c6')][_0x2eb5fd('0x2587')]){_0x3533d0[_0x2eb5fd('0x4c6')]=_0x480caf[_0x2eb5fd('0x10fd')][_0x2eb5fd('0x4c6')]||[{'message':_0x480caf[_0x2eb5fd('0x684')](),'type':_0x2eb5fd('0x229b')}];for(var _0x8a1835=0x0;_0x8a1835<_0x480caf[_0x2eb5fd('0x10fd')]['errors']['length'];_0x8a1835++){_0x46c83a['error']({'title':_0x480caf[_0x2eb5fd('0x10fd')]['errors'][_0x8a1835][_0x2eb5fd('0x6c8')],'msg':_0x480caf[_0x2eb5fd('0x10fd')]['errors'][_0x8a1835][_0x2eb5fd('0x1402')]});}}else _0x46c83a[_0x2eb5fd('0x187f')]({'title':_0x480caf[_0x2eb5fd('0x2fa')]?_0x2eb5fd('0x16c2')+_0x480caf['status']+_0x2eb5fd('0x169e')+_0x480caf[_0x2eb5fd('0x24df')]:'api.whatsappAccount.delete','msg':_0x480caf[_0x2eb5fd('0x10fd')]?JSON[_0x2eb5fd('0xa48')](_0x480caf['data']['message']):_0x480caf['message']||_0x480caf['toString']()});});},function(){});}function _0x3fca36(_0x42e6cc){return _0x42e6cc===null?undefined:new Date(_0x42e6cc);}function _0x2e3584(_0x196a9e){var _0xe83feb=_0xb8bba7;_0x51ec4[_0xe83feb('0x1120')](_0x196a9e);}}const _0x1b09a8=_0x3315c9,_0x2e9315=_0x4fb511['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html',_0x4e72ac=_0x4fb511['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog-[chunkhash].html',_0x255a5a=_0x4fb511['p']+_0x1a8446('0x27ff'),_0x504e1d=_0x4fb511['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html',_0x5f3856=_0x4fb511['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog-[chunkhash].html',_0x941aa2=_0x4fb511['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html',_0x4abf6c=_0x4fb511['p']+_0x1a8446('0x1bc6'),_0x5ae9e7=_0x4fb511['p']+_0x1a8446('0xb7a'),_0xdc821c=_0x4fb511['p']+_0x1a8446('0x1e1b'),_0x2dd1e9=_0x4fb511['p']+_0x1a8446('0x1099'),_0x3c6c8b=_0x4fb511['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html',_0x318e79=_0x4fb511['p']+_0x1a8446('0x3fd');_0x5b6ec0[_0x1a8446('0x1e33')]=[_0x1a8446('0x157'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'toasty',_0x1a8446('0x1dfd')];var _0x4fb6bb={'agent':_0x2e9315,'amazonlex':_0x4e72ac,'autoreply':_0x255a5a,'close':_0x504e1d,'dialogflow':_0x5f3856,'gotoif':_0x941aa2,'gotop':_0x4abf6c,'interval':_0x5ae9e7,'noop':_0xdc821c,'queue':_0x2dd1e9,'system':_0x3c6c8b,'tag':_0x318e79};function _0x5b6ec0(_0x1bd2fa,_0x3784f6,_0xf9eacb,_0x2099fb,_0x39cbfa){var _0x3a42e4=_0x1a8446,_0x2d40ed=this;_0x2d40ed[_0x3a42e4('0x7fc')]=_0x39cbfa[_0x3a42e4('0xacc')](),_0x2d40ed[_0x3a42e4('0x26ac')]={},_0x2d40ed[_0x3a42e4('0x2790')]={'count':0x0,'rows':[]},_0x2d40ed['selectedWhatsappAccountApps']=[],_0x2d40ed['crudPermissions'],_0x2d40ed['query']={'sort':_0x3a42e4('0x13f2')},_0x2d40ed['apps']=_0x51538b()[_0x3a42e4('0xaee')](_0x51538b()[_0x3a42e4('0x181f')]([{'app':_0x3a42e4('0x260f'),'appType':_0x3a42e4('0x1c21'),'types':[_0x3a42e4('0x1b43'),'custom',_0x3a42e4('0x2334')],'fields':[],'isApp':![]},{'app':_0x3a42e4('0x27ca'),'appType':'noop','type':_0x3a42e4('0x27ca'),'icon':_0x3a42e4('0x1892'),'interval':_0x3a42e4('0x1ac6'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x3a42e4('0x12f4'),'type':'text','param':0x0}]},{'app':_0x3a42e4('0x5da'),'appType':'system','type':'system','icon':'icon-apps','interval':_0x3a42e4('0x1ac6'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x3a42e4('0x147e'),'field':{'name':_0x3a42e4('0x14e7'),'key':_0x3a42e4('0x25d6')},'route':_0x3a42e4('0x14e7'),'filters':{'fields':'id,name','sort':_0x3a42e4('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':_0x3a42e4('0xd7b'),'type':_0x3a42e4('0xb37'),'required':!![],'param':0x0},{'title':'Variable','name':'variable','type':'apiselect','values':'variables','value':'variable.name','option':_0x3a42e4('0x23d4'),'defaultValues':[{'value':'\x27\x27','option':_0x3a42e4('0xfeb')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':'gotop','type':'goto','icon':_0x3a42e4('0x1892'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3a42e4('0x2722'),'name':_0x3a42e4('0x13f2'),'type':_0x3a42e4('0x219a'),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x3a42e4('0x3cb'),'type':'gotoif','icon':_0x3a42e4('0x1892'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Condition','name':'condition','type':'text','required':!![],'param':0x0},{'title':_0x3a42e4('0x13ba'),'name':_0x3a42e4('0x13ba'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x3a42e4('0x222b'),'name':_0x3a42e4('0x222b'),'type':_0x3a42e4('0x219a'),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x3a42e4('0xe26'),'foreignKey':_0x3a42e4('0x1d06'),'type':_0x3a42e4('0xe26'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x3a42e4('0x4d7'),'field':{'name':_0x3a42e4('0xe26'),'key':'name'},'route':_0x3a42e4('0x48f'),'filters':{'fields':_0x3a42e4('0x21e2'),'sort':_0x3a42e4('0x25d6'),'nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':'Queue','name':_0x3a42e4('0xe26'),'type':'apiselect','values':_0x3a42e4('0x4d7'),'value':_0x3a42e4('0x1766'),'option':_0x3a42e4('0x1766'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x3a42e4('0xeff'),'appType':_0x3a42e4('0xeff'),'type':_0x3a42e4('0xeff'),'foreignKey':'UserId','icon':'icon-apps','interval':_0x3a42e4('0x1ac6'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x3a42e4('0xeff'),'key':_0x3a42e4('0x25d6')},'route':_0x3a42e4('0x272b'),'filters':{'fields':_0x3a42e4('0x17fe'),'sort':_0x3a42e4('0x25d6'),'nolimit':!![],'role':_0x3a42e4('0xeff')},'permissions':{'section':0xca}}],'fields':[{'title':_0x3a42e4('0x521'),'name':_0x3a42e4('0xeff'),'type':_0x3a42e4('0xd4d'),'values':_0x3a42e4('0x1717'),'value':_0x3a42e4('0x11cf'),'option':_0x3a42e4('0x11cf'),'required':!![],'param':0x0},{'title':_0x3a42e4('0xc45'),'name':'timeout','type':_0x3a42e4('0x219a'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x3a42e4('0x1b05'),'appType':_0x3a42e4('0x1b05'),'type':_0x3a42e4('0x1b05'),'icon':_0x3a42e4('0x1892'),'interval':_0x3a42e4('0x1ac6'),'isApp':!![],'fields':[{'title':_0x3a42e4('0x11b6'),'name':_0x3a42e4('0x11b6'),'type':_0x3a42e4('0xbff'),'defaultValue':'1','values':[{'option':_0x3a42e4('0x1774'),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0x3a42e4('0x1f3a'),'name':'text','type':_0x3a42e4('0x1b88'),'required':!![],'param':0x1}]},{'app':_0x3a42e4('0x21d0'),'appType':_0x3a42e4('0x21d0'),'type':_0x3a42e4('0x21d0'),'icon':_0x3a42e4('0x1892'),'interval':_0x3a42e4('0x1ac6'),'isApp':!![],'fields':[{'title':_0x3a42e4('0x2010'),'name':'disposition','type':_0x3a42e4('0xb37'),'required':!![],'param':0x0}]},{'app':_0x3a42e4('0x38f'),'appType':_0x3a42e4('0x38f'),'type':_0x3a42e4('0x38f'),'foreignKey':'TagId','icon':_0x3a42e4('0x1892'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x3a42e4('0x523'),'field':{'name':_0x3a42e4('0x38f'),'key':_0x3a42e4('0x25d6')},'route':_0x3a42e4('0x38f'),'filters':{'fields':_0x3a42e4('0x17fe'),'sort':_0x3a42e4('0x25d6'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3a42e4('0x4e7'),'name':_0x3a42e4('0x38f'),'type':_0x3a42e4('0xd4d'),'values':_0x3a42e4('0x523'),'value':_0x3a42e4('0x17df'),'option':_0x3a42e4('0x17df'),'required':!![],'param':0x0}]},{'app':_0x3a42e4('0x67c'),'appType':_0x3a42e4('0x67c'),'type':'dialogflow','icon':_0x3a42e4('0x1892'),'interval':_0x3a42e4('0x1ac6'),'isApp':!![],'fields':[{'title':'Key','name':_0x3a42e4('0x24ec'),'type':'text','required':!![],'param':0x0},{'title':_0x3a42e4('0x1938'),'name':'language','type':_0x3a42e4('0xbff'),'defaultValue':_0x3a42e4('0x1921'),'values':[{'option':_0x3a42e4('0xc2b'),'value':_0x3a42e4('0x1de')},{'option':_0x3a42e4('0x195a'),'value':'\x27en\x27'},{'option':_0x3a42e4('0x6ab'),'value':_0x3a42e4('0x2a3')},{'option':'Italian','value':_0x3a42e4('0x1b6f')},{'option':_0x3a42e4('0x13bd'),'value':_0x3a42e4('0x263d')},{'option':_0x3a42e4('0x701'),'value':'\x27fr\x27'},{'option':_0x3a42e4('0x89b'),'value':_0x3a42e4('0x14b8')},{'option':_0x3a42e4('0x75'),'value':_0x3a42e4('0xef2')},{'option':_0x3a42e4('0x260d'),'value':'\x27ko\x27'},{'option':'Dutch','value':_0x3a42e4('0xa45')},{'option':_0x3a42e4('0x2006'),'value':_0x3a42e4('0x539')},{'option':_0x3a42e4('0x26fe'),'value':_0x3a42e4('0x11c5')},{'option':_0x3a42e4('0xf74'),'value':_0x3a42e4('0x2526')},{'option':_0x3a42e4('0x16cb'),'value':_0x3a42e4('0x614')},{'option':_0x3a42e4('0x18b'),'value':_0x3a42e4('0x652')},{'option':_0x3a42e4('0x1b87'),'value':_0x3a42e4('0x2582')},{'option':_0x3a42e4('0x172b'),'value':_0x3a42e4('0x201e')},{'option':_0x3a42e4('0x1e51'),'value':'\x27zh-CN\x27'},{'option':_0x3a42e4('0xeb8'),'value':_0x3a42e4('0xc82')},{'option':_0x3a42e4('0x44f'),'value':_0x3a42e4('0x6fe')}],'required':!![],'param':0x1},{'title':_0x3a42e4('0x273'),'name':_0x3a42e4('0x273'),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x3a42e4('0x3f5'),'appType':_0x3a42e4('0x3f5'),'type':_0x3a42e4('0x3f5'),'icon':_0x3a42e4('0x1892'),'interval':_0x3a42e4('0x1ac6'),'isApp':!![],'fields':[{'title':'accesskeyid','name':_0x3a42e4('0xc07'),'type':_0x3a42e4('0xb37'),'required':!![],'param':0x0},{'title':_0x3a42e4('0x15f9'),'name':_0x3a42e4('0x15f9'),'type':_0x3a42e4('0xb37'),'required':!![],'param':0x1},{'title':_0x3a42e4('0xa9a'),'name':'lexregion','type':_0x3a42e4('0xbff'),'defaultValue':_0x3a42e4('0x22e'),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x3a42e4('0x22e')},{'option':'US\x20West\x20(Oregon)','value':_0x3a42e4('0x1fe1')},{'option':'EU\x20(Ireland)','value':'\x27eu-west-1\x27'},{'option':_0x3a42e4('0x1339'),'value':_0x3a42e4('0x1b6b')}],'required':!![],'param':0x2},{'title':'botname','name':_0x3a42e4('0x18ee'),'type':'text','required':!![],'param':0x3},{'title':'welcomemessage','name':_0x3a42e4('0x273'),'type':_0x3a42e4('0x1b88'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x3a42e4('0x9eb')]),{'isApp':![]}),_0x2d40ed[_0x3a42e4('0x2334')]={'group':{'name':_0x3a42e4('0xdf0'),'pull':_0x3a42e4('0x1ae5')},'animation':0x64,'sort':![]},_0x2d40ed['applications']={'group':{'name':_0x3a42e4('0x1603'),'put':_0x3a42e4('0xdf0')},'animation':0x64,'onAdd':function _0x458988(_0x14992a){var _0x32dd09=_0x3a42e4;_0x585e93(_0x14992a,_0x14992a[_0x32dd09('0x1b3d')]);},'onSort':function _0x18e1ea(){_0x2ee201();}},_0x2d40ed[_0x3a42e4('0x2e')]=_0x27bc3f,_0x2d40ed['deleteConfirm']=_0x2edc19,_0x2d40ed['getWhatsappAccountApps']=_0x3e5a38,_0x2d40ed[_0x3a42e4('0x296')]=_0x585e93,_0x2d40ed['editInterval']=_0x27275f,_0x2d40ed[_0x3a42e4('0x8eb')]=_0x54ca26,_0x2d40ed[_0x3a42e4('0x133b')]=_0x5e629e,_0x2d40ed[_0x3a42e4('0x1f31')]=_0x2ee201,_0x2d40ed[_0x3a42e4('0x1f55')]=_0x359e13;function _0x27bc3f(_0x2a7789,_0x7af553){var _0x103e2c=_0x3a42e4;_0x2d40ed[_0x103e2c('0x26ac')]=_0x2a7789,_0x2d40ed[_0x103e2c('0xada')]=typeof _0x7af553!==_0x103e2c('0x1574')?_0x7af553:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2d40ed[_0x103e2c('0x209b')][_0x103e2c('0x2686')]=!_0x2d40ed[_0x103e2c('0xada')][_0x103e2c('0x1c1d')]?!![]:![],_0x2d40ed[_0x103e2c('0x582')]['id']=_0x2a7789['id'],_0x2d40ed['query']['isApp']=!![],_0x2d40ed[_0x103e2c('0x582')][_0x103e2c('0x86a')]=!![],_0x2d40ed[_0x103e2c('0x146f')](),_0x2d40ed[_0x103e2c('0x1f55')]();}function _0x2edc19(_0x38eb3b,_0xb2e6b2,_0x136212){var _0x45ebe9=_0x3a42e4,_0x363b05=_0x3784f6['confirm']()['title'](_0x45ebe9('0x912'))['htmlContent'](''+_0x38eb3b[_0x45ebe9('0x9eb')]+_0x45ebe9('0x697')+_0x45ebe9('0x210d'))[_0x45ebe9('0x5b5')](_0x45ebe9('0x21a3'))[_0x45ebe9('0x116d')](_0x136212)['ok']('OK')[_0x45ebe9('0x2030')](_0x45ebe9('0x2410'));_0x3784f6[_0x45ebe9('0x1e6d')](_0x363b05)['then'](function(){var _0x405802=_0x45ebe9;_0x2d40ed[_0x405802('0x2790')][_0x405802('0x580')]['splice'](_0xb2e6b2,0x1),_0x2ee201();},function(){var _0xc9e26f=_0x45ebe9;console[_0xc9e26f('0x18d5')](_0xc9e26f('0x2410'));});}function _0x585e93(_0x190273,_0x150ada){var _0x17c736=_0x3a42e4;if(_0x2d40ed[_0x17c736('0x2790')][_0x17c736('0x580')][_0x17c736('0x2587')]){var _0x1ec983=_0x2d40ed['whatsappAccountApps'][_0x17c736('0x580')][_0x150ada]?_0x2d40ed[_0x17c736('0x2790')][_0x17c736('0x580')][_0x150ada]:_0x2d40ed['whatsappAccountApps'][_0x17c736('0x580')][0x0],_0x58340e=(_0x1ec983[_0x17c736('0xe6d')]||_0x1ec983[_0x17c736('0x9eb')])[_0x17c736('0xcf6')]();_0x3784f6['show']({'controller':'EditWhatsappAccountApp'['concat'](_0x58340e,'DialogController'),'controllerAs':'vm','templateUrl':_0x4fb6bb[_0x58340e],'parent':angular[_0x17c736('0x1aa8')](_0xf9eacb[_0x17c736('0x54c')]),'targetEvent':_0x190273,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x1ec983,'whatsappAccount':_0x2d40ed[_0x17c736('0x26ac')],'crudPermissions':_0x2d40ed[_0x17c736('0xada')]}})[_0x17c736('0xaa5')](function(_0x3e5471){var _0x1981c0=_0x17c736;_0x3e5471&&(_0x3e5471['id']?_0x2d40ed[_0x1981c0('0x2790')]['rows'][_0x150ada]=_0x3e5471:_0x2d40ed['whatsappAccountApps'][_0x1981c0('0x580')]['splice'](_0x150ada,0x0,_0x3e5471),_0x2ee201());})[_0x17c736('0x253d')](function(_0x36aff3){var _0x4d7b33=_0x17c736;_0x36aff3&&_0x2099fb[_0x4d7b33('0x187f')]({'title':_0x36aff3[_0x4d7b33('0x2fa')]?_0x4d7b33('0x16c2')+_0x36aff3[_0x4d7b33('0x2fa')]+_0x4d7b33('0x169e')+_0x36aff3['statusText']:_0x4d7b33('0x26b6'),'msg':_0x36aff3['data']?JSON[_0x4d7b33('0xa48')](_0x36aff3['data']):_0x36aff3['toString']()});});}}function _0x27275f(_0xdec007,_0x1b4f32){var _0x2f793b=_0x3a42e4;if(_0x2d40ed['whatsappAccountApps'][_0x2f793b('0x580')][_0x2f793b('0x2587')]){var _0x3f58b0=_0x2d40ed['whatsappAccountApps']['rows'][_0x1b4f32]?_0x2d40ed[_0x2f793b('0x2790')][_0x2f793b('0x580')][_0x1b4f32]:_0x2d40ed[_0x2f793b('0x2790')][_0x2f793b('0x580')][0x0];_0x3784f6[_0x2f793b('0x1e6d')]({'controller':_0x2f793b('0x1c6e'),'controllerAs':'vm','templateUrl':_0x5ae9e7,'parent':angular[_0x2f793b('0x1aa8')](_0xf9eacb[_0x2f793b('0x54c')]),'targetEvent':_0xdec007,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3f58b0['interval'],'IntervalId':_0x3f58b0[_0x2f793b('0x1f8c')],'application':!![]},'intervals':[],'crudPermissions':_0x2d40ed[_0x2f793b('0xada')]}})['then'](function(_0x7a3e30){var _0x345761=_0x2f793b;_0x7a3e30&&(_0x3f58b0[_0x345761('0x1c21')]=_0x7a3e30[_0x345761('0x1c21')]||_0x345761('0x1ac6'),_0x3f58b0[_0x345761('0x1f8c')]=_0x7a3e30['IntervalId']||null,_0x2ee201());});}}function _0x2ee201(){var _0x1edce4=_0x3a42e4,_0x6b3cf8=0x1,_0x57149c=[];for(var _0x102c77=0x0;_0x102c77<_0x2d40ed[_0x1edce4('0x2790')][_0x1edce4('0x580')]['length'];_0x102c77++){var _0x56f857=_0x2d40ed[_0x1edce4('0x2790')]['rows'][_0x102c77],_0x38cff6=[],_0x32fde6=[];_0x56f857[_0x1edce4('0x2568')]=_0x56f857[_0x1edce4('0x1c21')]!=='*,*,*,*'?[_0x56f857['interval']]:_0x56f857[_0x1edce4('0x1f8c')]?_0x51538b()[_0x1edce4('0x1246')](_0x51538b()[_0x1edce4('0xdb7')](_0x2d40ed[_0x1edce4('0x2568')][_0x1edce4('0x580')],{'IntervalId':_0x56f857[_0x1edce4('0x1f8c')]}),_0x1edce4('0x1c21')):[],_0x56f857[_0x1edce4('0x19cd')]=_0x2d40ed[_0x1edce4('0x26ac')]['context'],_0x56f857[_0x1edce4('0x1990')]=_0x2d40ed[_0x1edce4('0x26ac')][_0x1edce4('0x1990')],_0x56f857[_0x1edce4('0x6c8')]&&(_0x56f857[_0x1edce4('0x6c8')]=_0x56f857[_0x1edce4('0x6c8')][_0x1edce4('0xcf6')]()),_0x56f857['priority']=_0x38cff6[_0x1edce4('0x2587')]?_0x51538b()['last'](_0x38cff6)[_0x1edce4('0x13f2')]+0x1:_0x6b3cf8,_0x6b3cf8=(_0x32fde6[_0x1edce4('0x2587')]?_0x51538b()[_0x1edce4('0x23f4')](_0x32fde6)['priority']:_0x56f857[_0x1edce4('0x13f2')])+0x1,_0x57149c=_0x51538b()[_0x1edce4('0x9e4')](_0x57149c,_0x38cff6,[_0x56f857],_0x32fde6);}_0x1bd2fa[_0x1edce4('0x26ac')][_0x1edce4('0x12e')]({'id':_0x2d40ed[_0x1edce4('0x26ac')]['id']},_0x51538b()[_0x1edce4('0x181f')](_0x57149c,_0x1edce4('0x13f2')))[_0x1edce4('0x1dc2')][_0x1edce4('0xaa5')](function(_0x5735fc){var _0x1b2b82=_0x1edce4;_0x2d40ed[_0x1b2b82('0x2790')][_0x1b2b82('0x580')]=_0x5735fc[_0x1b2b82('0x580')];})[_0x1edce4('0x253d')](function(_0x4b188d){var _0x1f199f=_0x1edce4;console[_0x1f199f('0x187f')](_0x4b188d);});}function _0x6934c7(_0x1dfe5b){var _0x94421a=_0x3a42e4;_0x2d40ed[_0x94421a('0x2790')]=_0x1dfe5b||{'count':0x0,'rows':[]};}function _0x359e13(){var _0x1a607a=_0x3a42e4;return _0x1bd2fa['interval'][_0x1a607a('0x2122')]({'fields':_0x1a607a('0x1487')})[_0x1a607a('0x1dc2')]['then'](function(_0x4934f8){_0x2d40ed['intervals']=_0x4934f8;})[_0x1a607a('0x253d')](function(_0x4a12d8){var _0x34e649=_0x1a607a;console[_0x34e649('0x187f')](_0x4a12d8);});}function _0x3e5a38(){var _0x3a35d6=_0x3a42e4;_0x2d40ed[_0x3a35d6('0x159a')]=_0x1bd2fa[_0x3a35d6('0x26ac')][_0x3a35d6('0x185c')](_0x2d40ed[_0x3a35d6('0x582')],_0x6934c7)[_0x3a35d6('0x1dc2')];}function _0x54ca26(_0x3b3bd4){var _0x3dbff3=_0x3a42e4;_0x51538b()[_0x3dbff3('0xf6d')](_0x2d40ed[_0x3dbff3('0x2790')][_0x3dbff3('0x580')],{'id':_0x3b3bd4['id']}),_0x2ee201(),_0x2099fb[_0x3dbff3('0xe10')]({'title':_0x3dbff3('0x1446'),'msg':_0x3b3bd4[_0x3dbff3('0x9eb')]?_0x3b3bd4[_0x3dbff3('0x9eb')]+'\x20has\x20been\x20deleted!':''});}function _0x5e629e(_0xb76c5){var _0x4bfce4=_0x3a42e4,_0x1c89b8=_0x3784f6[_0x4bfce4('0x281e')]()[_0x4bfce4('0x110a')](_0x4bfce4('0x1190'))['htmlContent'](_0x4bfce4('0x389')+_0x2d40ed[_0x4bfce4('0x18f7')][_0x4bfce4('0x2587')]+'\x20selected'+_0x4bfce4('0x210d'))[_0x4bfce4('0x5b5')](_0x4bfce4('0x2845'))[_0x4bfce4('0x116d')](_0xb76c5)['ok']('OK')[_0x4bfce4('0x2030')](_0x4bfce4('0x2410'));_0x3784f6[_0x4bfce4('0x1e6d')](_0x1c89b8)[_0x4bfce4('0xaa5')](function(){var _0xe056c9=_0x4bfce4;_0x2d40ed[_0xe056c9('0x18f7')][_0xe056c9('0x15b5')](function(_0x194914){var _0x3eae1a=_0xe056c9;_0x51538b()[_0x3eae1a('0xf6d')](_0x2d40ed['whatsappAccountApps'][_0x3eae1a('0x580')],{'id':_0x194914['id']});}),_0x2d40ed['selectedWhatsappAccountApps']=[],_0x2ee201();});}}const _0x3d88e3=_0x5b6ec0;_0x54603d[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),_0x1a8446('0x26ac'),_0x1a8446('0x2613'),'realtime',_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x54603d(_0x172954,_0x525de6,_0x23b7dd,_0x4f2698,_0x19924c,_0x38ce07,_0x42aa16,_0x2987b3,_0x2e2f95,_0x238770){var _0xed4ee4=_0x1a8446,_0x332450=this;_0x332450['currentUser']=_0x2e2f95[_0xed4ee4('0xacc')](),_0x332450['whatsappAccount']=_0x19924c,_0x332450[_0xed4ee4('0xada')]=_0x238770,_0x332450[_0xed4ee4('0x4f3')]=_0x42aa16,_0x332450[_0xed4ee4('0x1a30')]=[],_0x332450[_0xed4ee4('0x11b9')]=[],_0x332450[_0xed4ee4('0xbf7')]=[],_0x332450[_0xed4ee4('0x215b')]=[],_0x332450[_0xed4ee4('0x214a')]=[],_0x332450[_0xed4ee4('0xc54')]=![],_0x332450['onInit']=_0x4c9aab,_0x332450['saveAgents']=_0x4d68d7,_0x332450[_0xed4ee4('0x2023')]=_0x47e143,_0x332450[_0xed4ee4('0x1c23')]={'readOnly':!_0x332450[_0xed4ee4('0xada')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':['name',_0xed4ee4('0x1b0d')],'line3':'','labelAll':_0x2987b3[_0xed4ee4('0x213f')]('WHATSAPP.ALL_AGENTS'),'labelSelected':_0x2987b3['instant']('WHATSAPP.SELECTED_AGENTS'),'transferCallback':function _0x3b3c60(){var _0x14a91d=_0xed4ee4,_0x1e8454=_0x51538b()[_0x14a91d('0x9ef')](_0x332450['startingSelectedItems'],_0x332450[_0x14a91d('0xbf7')],'id');_0x332450[_0x14a91d('0xc54')]=_0x51538b()['isEmpty'](_0x1e8454)?![]:!![];}};function _0x4c9aab(){var _0x53f962=_0xed4ee4;return _0x2e2f95[_0x53f962('0x26e8')]('admin')?_0x291db9()[_0x53f962('0x253d')](function(_0x1e0ad3){var _0x482ca6=_0x53f962;_0x23b7dd[_0x482ca6('0x187f')]({'title':_0x1e0ad3[_0x482ca6('0x2fa')]?_0x482ca6('0x16c2')+_0x1e0ad3[_0x482ca6('0x2fa')]+'\x20-\x20'+_0x1e0ad3[_0x482ca6('0x24df')]:_0x482ca6('0x14c6'),'msg':_0x1e0ad3['status']?JSON['stringify'](_0x1e0ad3[_0x482ca6('0x10fd')]):_0x1e0ad3[_0x482ca6('0x684')]()});}):_0x5eff55()[_0x53f962('0xaa5')](function(_0x4bf11b){var _0x24a7de=_0x53f962;return _0x332450[_0x24a7de('0x224d')]=_0x4bf11b,_0x291db9();})['catch'](function(_0x3829dd){var _0x3a8d69=_0x53f962;_0x23b7dd[_0x3a8d69('0x187f')]({'title':_0x3829dd[_0x3a8d69('0x2fa')]?_0x3a8d69('0x16c2')+_0x3829dd[_0x3a8d69('0x2fa')]+'\x20-\x20'+_0x3829dd[_0x3a8d69('0x24df')]:_0x3a8d69('0x14c6'),'msg':_0x3829dd[_0x3a8d69('0x2fa')]?JSON[_0x3a8d69('0xa48')](_0x3829dd[_0x3a8d69('0x10fd')]):_0x3829dd[_0x3a8d69('0x684')]()});});}function _0x5eff55(){return _0x525de6(function(_0x546b55,_0x18aa0e){var _0x13598e=a0_0x1149;_0x4f2698[_0x13598e('0x1a50')][_0x13598e('0x2122')]({'userProfileId':_0x332450[_0x13598e('0x7fc')][_0x13598e('0x2168')],'name':_0x13598e('0x91a')})[_0x13598e('0x1dc2')][_0x13598e('0xaa5')](function(_0x463e8d){var _0x53a0d8=_0x13598e,_0x3bb6c5=_0x463e8d&&_0x463e8d[_0x53a0d8('0x580')]?_0x463e8d[_0x53a0d8('0x580')][0x0]:null;_0x546b55(_0x3bb6c5);})[_0x13598e('0x253d')](function(_0x4e1697){_0x18aa0e(_0x4e1697);});});}function _0x291db9(){return _0x525de6(function(_0x11014f,_0x111284){var _0x25c744=a0_0x1149;return _0x3c5f5e()['then'](function(_0x5b8f1c){var _0x33f8f0=a0_0x1149;return _0x332450['items']=_0x5b8f1c[_0x33f8f0('0x580')]?_0x5b8f1c['rows']:[],_0x2e2f95[_0x33f8f0('0x26e8')](_0x33f8f0('0x178b'))?_0x5b8f1c:_0x332450['section']?_0x332450[_0x33f8f0('0x224d')][_0x33f8f0('0x26cc')]?_0x5b8f1c:_0x146cb0():null;})['then'](function(_0x51457e){var _0x455069=a0_0x1149,_0x4897aa=_0x51457e&&_0x51457e[_0x455069('0x580')]?_0x51457e[_0x455069('0x580')]:[];return _0x332450[_0x455069('0x11b9')]=_0x51538b()[_0x455069('0x1246')](_0x4897aa,function(_0x1178f2){var _0x19bb99=_0x455069;return _0x51538b()[_0x19bb99('0xe9e')](_0x332450[_0x19bb99('0x1a30')],{'id':_0x2e2f95[_0x19bb99('0x26e8')](_0x19bb99('0x178b'))||_0x332450['section'][_0x19bb99('0x26cc')]?_0x1178f2['id']:_0x1178f2[_0x19bb99('0xbcd')]});}),_0x332450[_0x455069('0x215b')]=angular['copy'](_0x332450['allowedItems']),_0x332450[_0x455069('0x1a30')][_0x455069('0x15b5')](function(_0x438744){var _0x45e99b=_0x455069,_0x3807c2=_0x51538b()[_0x45e99b('0xe9e')](_0x332450[_0x45e99b('0x11b9')],{'id':_0x438744['id']});_0x2e2f95[_0x45e99b('0x26e8')](_0x45e99b('0x178b'))?_0x438744[_0x45e99b('0x145d')]=!![]:_0x438744[_0x45e99b('0x145d')]=typeof _0x3807c2!==_0x45e99b('0x1574')?!![]:![];}),_0x2acb83();})[_0x25c744('0xaa5')](function(_0x3a52f2){var _0x34200d=_0x25c744,_0x4023b5=_0x3a52f2&&_0x3a52f2[_0x34200d('0x580')]?_0x3a52f2[_0x34200d('0x580')]:[];_0x332450[_0x34200d('0xbf7')]=_0x51538b()[_0x34200d('0x1246')](_0x4023b5,function(_0x3da01d){var _0xf94cb5=_0x34200d,_0x14115e=_0x51538b()[_0xf94cb5('0xe9e')](_0x332450[_0xf94cb5('0x1a30')],{'id':_0x3da01d['id']});return _0x14115e[_0xf94cb5('0x2234')]=_0x3da01d[_0xf94cb5('0x5df')]?_0xf94cb5('0x17b0')+_0x3da01d[_0xf94cb5('0x5df')][_0xf94cb5('0x2234')]:'',_0x14115e[_0xf94cb5('0x1b0d')]=typeof _0x3da01d['internal']!=='undefined'?'<'+_0x3da01d[_0xf94cb5('0x1b0d')]+'>':'',_0x14115e;}),_0x332450[_0x34200d('0x214a')]=angular['copy'](_0x332450[_0x34200d('0xbf7')]),_0x332450[_0x34200d('0x1c23')]['selectedItems']=_0x332450[_0x34200d('0xbf7')],_0x332450[_0x34200d('0x1c23')][_0x34200d('0x1a30')]=_0x51538b()[_0x34200d('0x1ebb')](_0x332450[_0x34200d('0x11b9')],_0x332450['dualMultiselectOptions'][_0x34200d('0xbf7')],'id'),_0x11014f();})['catch'](function(_0x5eef35){_0x111284(_0x5eef35);});});}function _0x146cb0(){return _0x525de6(function(_0xd35f15,_0x58d298){var _0x155f59=a0_0x1149;return _0x4f2698['userProfileResource']['get']({'sectionId':_0x332450[_0x155f59('0x224d')]['id'],'nolimit':!![]})[_0x155f59('0x1dc2')]['then'](function(_0x282e6f){_0xd35f15(_0x282e6f);})[_0x155f59('0x253d')](function(_0x1aba5d){_0x58d298(_0x1aba5d);});});}function _0x2acb83(){return _0x525de6(function(_0x320cf4,_0x45b88d){var _0x5e18d2=a0_0x1149;return _0x4f2698[_0x5e18d2('0x26ac')][_0x5e18d2('0x1483')]({'id':_0x332450['whatsappAccount']['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x5e18d2('0xeff')})[_0x5e18d2('0x1dc2')][_0x5e18d2('0xaa5')](function(_0x561e54){_0x320cf4(_0x561e54);})[_0x5e18d2('0x253d')](function(_0x19c542){_0x45b88d(_0x19c542);});});}function _0x3c5f5e(){return _0x525de6(function(_0x5b62b1,_0x140fc0){var _0x1afffc=a0_0x1149;return _0x4f2698[_0x1afffc('0x272b')][_0x1afffc('0x2122')]({'fields':_0x1afffc('0x283f'),'nolimit':!![],'role':_0x1afffc('0xeff')})[_0x1afffc('0x1dc2')]['then'](function(_0x4f4f8e){_0x5b62b1(_0x4f4f8e);})['catch'](function(_0x240e7b){_0x140fc0(_0x240e7b);});});}function _0xf84c92(_0x41ee5b){return _0x525de6(function(_0x4cdaac,_0x1c2ce5){var _0x3f0154=a0_0x1149;_0x51538b()[_0x3f0154('0x116b')](_0x41ee5b)?_0x4cdaac():_0x4f2698[_0x3f0154('0x26ac')][_0x3f0154('0x26b1')]({'id':_0x332450[_0x3f0154('0x26ac')]['id'],'ids':_0x51538b()[_0x3f0154('0x1246')](_0x41ee5b,'id')})['$promise']['then'](function(){_0x4cdaac();})['catch'](function(_0x31f038){_0x1c2ce5(_0x31f038);});});}function _0x1bbaf2(_0xaacaf5){return _0x525de6(function(_0x1f4d78,_0x1e5d80){var _0x2aecad=a0_0x1149;_0x51538b()[_0x2aecad('0x116b')](_0xaacaf5)?_0x1f4d78():_0x4f2698['whatsappAccount'][_0x2aecad('0x258e')]({'id':_0x332450['whatsappAccount']['id'],'ids':_0x51538b()[_0x2aecad('0x1246')](_0xaacaf5,'id')})[_0x2aecad('0x1dc2')]['then'](function(){_0x1f4d78();})[_0x2aecad('0x253d')](function(_0x1fa6e7){_0x1e5d80(_0x1fa6e7);});});}function _0x4d68d7(){var _0x5f231f=_0xed4ee4,_0x22d30f=_0x51538b()['differenceBy'](_0x332450['startingSelectedItems'],_0x332450['selectedItems'],'id'),_0x2e0234=_0x51538b()[_0x5f231f('0x1ebb')](_0x332450[_0x5f231f('0xbf7')],_0x332450[_0x5f231f('0x214a')],'id');return _0x1bbaf2(_0x22d30f)['then'](function(){return _0xf84c92(_0x2e0234);})[_0x5f231f('0xaa5')](function(){var _0x42a096=_0x5f231f;_0x332450[_0x42a096('0xc54')]=![],_0x332450['startingAllowedItems']=angular[_0x42a096('0x20a')](_0x332450[_0x42a096('0x11b9')]),_0x332450[_0x42a096('0x214a')]=angular[_0x42a096('0x20a')](_0x332450[_0x42a096('0xbf7')]),_0x23b7dd[_0x42a096('0xe10')]({'title':_0x42a096('0x2eb'),'msg':_0x42a096('0xc60')});})[_0x5f231f('0x253d')](function(_0x331d7b){var _0x346392=_0x5f231f;_0x23b7dd[_0x346392('0x187f')]({'title':_0x331d7b[_0x346392('0x2fa')]?_0x346392('0x16c2')+_0x331d7b[_0x346392('0x2fa')]+_0x346392('0x169e')+_0x331d7b[_0x346392('0x24df')]:_0x346392('0x2281'),'msg':_0x331d7b[_0x346392('0x2fa')]?JSON[_0x346392('0xa48')](_0x331d7b[_0x346392('0x10fd')]):_0x331d7b[_0x346392('0x684')]()});});}function _0x47e143(){var _0x226c34=_0xed4ee4;_0x172954[_0x226c34('0x1120')]();}}const _0x16ee66=_0x54603d;_0x45454f[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x66c'),_0x1a8446('0x26ac'),'api',_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x45454f(_0x1754be,_0x263956,_0x1336a9,_0x1ee417,_0x58961e,_0x4d6b09,_0x34b467,_0x102367){var _0xeab152=_0x1a8446,_0x314da7=this;_0x314da7[_0xeab152('0x7fc')]=_0x34b467[_0xeab152('0xacc')](),_0x314da7[_0xeab152('0x4c6')]=[],_0x314da7[_0xeab152('0x110a')]=_0xeab152('0x78c')+(_0x1ee417[_0xeab152('0xe6d')]||_0x1ee417[_0xeab152('0x9eb')])[_0xeab152('0x1d08')](),_0x314da7[_0xeab152('0xeff')]=angular[_0xeab152('0x20a')](_0x1ee417),_0x314da7['crudPermissions']=_0x102367,_0x314da7[_0xeab152('0x9f0')]={};if(_0x314da7[_0xeab152('0xeff')][_0xeab152('0x124b')])switch(_0x314da7[_0xeab152('0xeff')]['appType']?_0x314da7['agent'][_0xeab152('0xe6d')][_0xeab152('0xcf6')]():_0x314da7['agent']['app'][_0xeab152('0xcf6')]()){case _0xeab152('0x113b'):break;case'dialogflow':{var _0x3c8ccf=_0x314da7[_0xeab152('0xeff')]['appdata']['split'](',');_0x314da7[_0xeab152('0xeff')]['key']=_0x3c8ccf[0x0],_0x314da7[_0xeab152('0xeff')][_0xeab152('0x1938')]=_0x3c8ccf[0x1],_0x314da7[_0xeab152('0xeff')][_0xeab152('0x273')]=_0x3c8ccf[_0xeab152('0x19aa')](0x2,_0x3c8ccf[_0xeab152('0x2587')])['join'](',');}break;case _0xeab152('0x3f5'):{var _0x42ccee=_0x314da7[_0xeab152('0xeff')][_0xeab152('0x124b')][_0xeab152('0x1a39')](',');_0x314da7[_0xeab152('0xeff')][_0xeab152('0xc07')]=_0x42ccee[0x0],_0x314da7['agent']['secretaccesskey']=_0x42ccee[0x1],_0x314da7[_0xeab152('0xeff')][_0xeab152('0xa9a')]=_0x42ccee[0x2],_0x314da7[_0xeab152('0xeff')][_0xeab152('0x18ee')]=_0x42ccee[0x3],_0x314da7['agent'][_0xeab152('0x273')]=_0x42ccee[_0xeab152('0x19aa')](0x4,_0x42ccee['length'])['join'](',');}break;case'autoreply':{var _0x12d710=_0x314da7[_0xeab152('0xeff')]['appdata'][_0xeab152('0x1a39')](',');_0x314da7[_0xeab152('0xeff')]['times']=isNaN(_0x12d710[0x0])?_0x12d710[0x0]:parseInt(_0x12d710[0x0],0xa),_0x314da7[_0xeab152('0xeff')][_0xeab152('0xb37')]=_0x12d710[_0xeab152('0x19aa')](0x1,_0x12d710[_0xeab152('0x2587')])[_0xeab152('0x19c4')](',');}break;case'message':_0x314da7['agent'][_0xeab152('0xb37')]=_0x314da7['agent'][_0xeab152('0x124b')];break;case _0xeab152('0x282c'):_0x314da7[_0xeab152('0xeff')][_0xeab152('0x25d6')]=_0x314da7[_0xeab152('0xeff')][_0xeab152('0x124b')][_0xeab152('0x1a39')]('=')[0x0],_0x314da7['agent'][_0xeab152('0x12f4')]=_0x314da7[_0xeab152('0xeff')][_0xeab152('0x124b')][_0xeab152('0x1a39')]('=')[0x1];break;case _0xeab152('0x2067'):_0x314da7[_0xeab152('0xeff')][_0xeab152('0x24b9')]=_0x314da7['agent'][_0xeab152('0x124b')];break;default:{var _0x19ed57=_0x314da7['agent']['appdata'][_0xeab152('0x1a39')](',');_0x314da7[_0xeab152('0xeff')]['agent']=_0x51538b()[_0xeab152('0x116b')](_0x19ed57[0x0])?_0x19ed57[0x0]:isNaN(_0x19ed57[0x0])?_0x19ed57[0x0]:parseInt(_0x19ed57[0x0],0xa),_0x314da7[_0xeab152('0xeff')][_0xeab152('0x23c0')]=_0x51538b()[_0xeab152('0x116b')](_0x19ed57[0x1])?_0x19ed57[0x1]:isNaN(_0x19ed57[0x1])?_0x19ed57[0x1]:parseInt(_0x19ed57[0x1],0xa);}break;}else _0x314da7[_0xeab152('0xeff')][_0xeab152('0x23c0')]=0x1e;_0x314da7[_0xeab152('0xeff')]['type']&&_0x314da7['agent'][_0xeab152('0x6c8')][_0xeab152('0xcf6')]()===_0xeab152('0x19d1')&&_0x314da7[_0xeab152('0xeff')][_0xeab152('0xe6d')][_0xeab152('0xcf6')]()===_0xeab152('0x1e7f')&&(_0x314da7[_0xeab152('0xeff')][_0xeab152('0x1b8f')]=_0x314da7[_0xeab152('0xeff')]['phone']?_0x314da7[_0xeab152('0xeff')][_0xeab152('0x1a46')][_0xeab152('0x1a39')]('$')[0x0]:undefined,_0x314da7[_0xeab152('0xeff')]['callerId']=_0x314da7['agent'][_0xeab152('0x514')]?'CALLERID(all)='+_0x314da7[_0xeab152('0xeff')][_0xeab152('0x514')]:undefined);_0x314da7[_0xeab152('0x2c5')]=_0x2c41e0,_0x314da7[_0xeab152('0x2023')]=_0x142852,_0x34b467['hasRole'](_0xeab152('0x178b'))?_0x4d6b09[_0xeab152('0x272b')]['get']({'fields':_0xeab152('0x17fe'),'sort':_0xeab152('0x25d6'),'nolimit':_0xeab152('0x1c5c'),'role':_0xeab152('0xeff')})[_0xeab152('0x1dc2')]['then'](function(_0x10c46f){var _0x2b1b6e=_0xeab152;_0x314da7[_0x2b1b6e('0x1717')]=_0x10c46f['rows']||[];})[_0xeab152('0x253d')](function(_0x41e4ba){var _0x257b9b=_0xeab152;_0x1336a9['error']({'title':_0x41e4ba[_0x257b9b('0x2fa')]?_0x257b9b('0x16c2')+_0x41e4ba['status']+_0x257b9b('0x169e')+_0x41e4ba[_0x257b9b('0x24df')]:_0x257b9b('0x14c6'),'msg':_0x41e4ba[_0x257b9b('0x10fd')]?JSON[_0x257b9b('0xa48')](_0x41e4ba['data']):_0x41e4ba[_0x257b9b('0x684')]()});}):_0x4d6b09[_0xeab152('0x272b')]['get']({'fields':_0xeab152('0x17fe'),'sort':_0xeab152('0x25d6'),'nolimit':_0xeab152('0x1c5c'),'role':_0xeab152('0xeff')})[_0xeab152('0x1dc2')]['then'](function(_0x4a0a67){var _0x3eb7cb=_0xeab152;_0x314da7[_0x3eb7cb('0x1717')]=_0x4a0a67[_0x3eb7cb('0x580')]||[];})[_0xeab152('0xaa5')](function(){var _0x436a83=_0xeab152;return _0x4d6b09[_0x436a83('0x1a50')][_0x436a83('0x2122')]({'userProfileId':_0x314da7[_0x436a83('0x7fc')]['userProfileId'],'sectionId':0xca})[_0x436a83('0x1dc2')];})['then'](function(_0x5e055e){var _0x1a403e=_0xeab152,_0x587824=_0x5e055e&&_0x5e055e['rows']?_0x5e055e['rows'][0x0]:null;if(!_0x587824){var _0x5f27a3=[],_0x5e7269=null;_0x314da7['agent']&&(_0x5e7269=_0x51538b()[_0x1a403e('0xe9e')](_0x314da7[_0x1a403e('0x1717')],{'name':_0x314da7[_0x1a403e('0xeff')][_0x1a403e('0xeff')]}));for(var _0x515fa2=0x0;_0x515fa2<_0x314da7[_0x1a403e('0x1717')]['length'];_0x515fa2++){_0x5e7269&&_0x314da7[_0x1a403e('0x1717')][_0x515fa2]['id']===_0x5e7269['id']&&(_0x314da7['agents'][_0x515fa2]['canSelect']=![],_0x5f27a3[_0x1a403e('0x1599')](_0x314da7[_0x1a403e('0x1717')][_0x515fa2]));}_0x314da7['agents']=_0x5f27a3;}else{if(!_0x587824[_0x1a403e('0x26cc')])return _0x4d6b09[_0x1a403e('0x249a')][_0x1a403e('0x2122')]({'sectionId':_0x587824['id']})[_0x1a403e('0x1dc2')]['then'](function(_0x302a51){var _0x55f0a5=_0x1a403e,_0x2ce68f=_0x51538b()['map'](_0x302a51[_0x55f0a5('0x580')],function(_0xe2baad){var _0x39aace=_0x55f0a5;return _0x51538b()['find'](_0x314da7[_0x39aace('0x1717')],{'id':_0xe2baad[_0x39aace('0xbcd')]});}),_0x440c56=null;_0x314da7[_0x55f0a5('0xeff')]&&(_0x440c56=_0x51538b()[_0x55f0a5('0xe9e')](_0x314da7[_0x55f0a5('0x1717')],{'name':_0x314da7[_0x55f0a5('0xeff')][_0x55f0a5('0xeff')]}));if(_0x440c56&&!_0x51538b()[_0x55f0a5('0x2c2')](_0x2ce68f,['id',_0x440c56['id']])){var _0x4d42db=_0x51538b()['find'](_0x314da7[_0x55f0a5('0x1717')],{'id':_0x440c56['id']});_0x4d42db[_0x55f0a5('0x12eb')]=![],_0x2ce68f[_0x55f0a5('0x1599')](_0x4d42db);}_0x314da7[_0x55f0a5('0x1717')]=_0x2ce68f;});}})[_0xeab152('0x253d')](function(_0x306920){var _0x505f21=_0xeab152;_0x1336a9['error']({'title':_0x306920[_0x505f21('0x2fa')]?_0x505f21('0x16c2')+_0x306920[_0x505f21('0x2fa')]+_0x505f21('0x169e')+_0x306920['statusText']:_0x505f21('0x1a3b'),'msg':_0x306920[_0x505f21('0x10fd')]?JSON[_0x505f21('0xa48')](_0x306920[_0x505f21('0x10fd')]):_0x306920['toString']()});});function _0x2c41e0(){var _0x3f3b61=_0xeab152;_0x314da7[_0x3f3b61('0x4c6')]=[];var _0x318d7f=[];_0x314da7[_0x3f3b61('0xeff')]['type']&&_0x314da7['agent']['type'][_0x3f3b61('0xcf6')]()==='outbound'&&_0x314da7['agent'][_0x3f3b61('0xe6d')]===_0x3f3b61('0x8da')&&(_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x1a46')]=_0x58961e['cutdigits']?(_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x1b8f')]||'')+_0x3f3b61('0x117e')+_0x58961e['cutdigits']+'}':(_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x1b8f')]||'')+_0x3f3b61('0x1f87'),_0x58961e[_0x3f3b61('0x1e0f')]!==_0x3f3b61('0x117')?_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x1b36')][_0x3f3b61('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x1b36')]+=_0x3f3b61('0x266a')):_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x1b36')]=_0x314da7[_0x3f3b61('0xeff')]['options'][_0x3f3b61('0x170d')](_0x3f3b61('0x266a'),''));var _0x2157d0=_0x51538b()['find'](_0x314da7['agents'],{'name':_0x314da7['agent']['agent']});_0x2157d0&&(_0x314da7['agent']['UserId']=_0x2157d0['id']);if(_0x314da7['agent'][_0x3f3b61('0xe6d')]&&_0x314da7['agent']['appType']===_0x3f3b61('0x113b')){}else switch((_0x314da7['agent'][_0x3f3b61('0x9eb')]||_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0xe6d')])[_0x3f3b61('0xcf6')]()){case _0x3f3b61('0x282c'):_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x124b')]=_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x25d6')]+'='+_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x12f4')];break;case'custom':break;default:_0x318d7f[0x0]=_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0xeff')],_0x318d7f[0x1]=_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x23c0')],_0x314da7[_0x3f3b61('0xeff')][_0x3f3b61('0x124b')]=_0x318d7f[_0x3f3b61('0x19c4')](',');}_0x142852(_0x314da7[_0x3f3b61('0xeff')]);}function _0x142852(_0x2911d0){_0x1754be['hide'](_0x2911d0);}}const _0x4541e0=_0x45454f;_0x2452dd['$inject']=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'whatsappAccountApp',_0x1a8446('0x26ac'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x2452dd(_0x558576,_0xbde3fc,_0x330159,_0x15b7d1,_0xcd8ec8,_0x2ab7e5,_0x8b195b,_0x4034e4){var _0x48ea58=_0x1a8446,_0xaae598=this;_0xaae598[_0x48ea58('0x7fc')]=_0x8b195b[_0x48ea58('0xacc')](),_0xaae598[_0x48ea58('0x4c6')]=[],_0xaae598[_0x48ea58('0x110a')]=_0x48ea58('0x78c')+(_0x15b7d1[_0x48ea58('0xe6d')]||_0x15b7d1['app'])['toUpperCase'](),_0xaae598[_0x48ea58('0x3f5')]=angular['copy'](_0x15b7d1),_0xaae598[_0x48ea58('0xada')]=_0x4034e4,_0xaae598[_0x48ea58('0x9f0')]={};if(_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x124b')])switch(_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0xe6d')]?_0xaae598['amazonlex'][_0x48ea58('0xe6d')][_0x48ea58('0xcf6')]():_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x9eb')][_0x48ea58('0xcf6')]()){case _0x48ea58('0x113b'):break;case _0x48ea58('0x67c'):{var _0x20a31c=_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x124b')][_0x48ea58('0x1a39')](',');_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x24ec')]=_0x20a31c[0x0],_0xaae598['amazonlex'][_0x48ea58('0x1938')]=_0x20a31c[0x1],_0xaae598[_0x48ea58('0x3f5')]['welcomemessage']=_0x20a31c['slice'](0x2,_0x20a31c[_0x48ea58('0x2587')])[_0x48ea58('0x19c4')](',');}break;case _0x48ea58('0x3f5'):{var _0xedcd46=_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x124b')][_0x48ea58('0x1a39')](',');_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0xc07')]=_0xedcd46[0x0],_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x15f9')]=_0xedcd46[0x1],_0xaae598[_0x48ea58('0x3f5')]['lexregion']=_0xedcd46[0x2],_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x18ee')]=_0xedcd46[0x3],_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x273')]=_0xedcd46[_0x48ea58('0x19aa')](0x4,_0xedcd46[_0x48ea58('0x2587')])[_0x48ea58('0x19c4')](',');}break;case'autoreply':{var _0x7e2b30=_0xaae598['amazonlex'][_0x48ea58('0x124b')][_0x48ea58('0x1a39')](',');_0xaae598['amazonlex']['times']=isNaN(_0x7e2b30[0x0])?_0x7e2b30[0x0]:parseInt(_0x7e2b30[0x0],0xa),_0xaae598[_0x48ea58('0x3f5')]['text']=_0x7e2b30[_0x48ea58('0x19aa')](0x1,_0x7e2b30[_0x48ea58('0x2587')])['join'](',');}break;case'message':_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0xb37')]=_0xaae598['amazonlex'][_0x48ea58('0x124b')];break;case _0x48ea58('0x282c'):_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x25d6')]=_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x124b')][_0x48ea58('0x1a39')]('=')[0x0],_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x12f4')]=_0xaae598['amazonlex']['appdata'][_0x48ea58('0x1a39')]('=')[0x1];break;case _0x48ea58('0x2067'):_0xaae598['amazonlex'][_0x48ea58('0x24b9')]=_0xaae598[_0x48ea58('0x3f5')]['appdata'];break;default:{var _0x1c8c70=_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x124b')][_0x48ea58('0x1a39')](',');_0xaae598[_0x48ea58('0x3f5')]['accesskeyid']=_0x51538b()[_0x48ea58('0x116b')](_0x1c8c70[0x0])?_0x1c8c70[0x0]:isNaN(_0x1c8c70[0x0])?_0x1c8c70[0x0]:parseInt(_0x1c8c70[0x0],0xa),_0xaae598['amazonlex'][_0x48ea58('0x15f9')]=_0x51538b()[_0x48ea58('0x116b')](_0x1c8c70[0x1])?_0x1c8c70[0x1]:isNaN(_0x1c8c70[0x1])?_0x1c8c70[0x1]:parseInt(_0x1c8c70[0x1],0xa),_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0xa9a')]=_0x51538b()[_0x48ea58('0x116b')](_0x1c8c70[0x2])?_0x1c8c70[0x2]:isNaN(_0x1c8c70[0x2])?_0x1c8c70[0x2]:parseInt(_0x1c8c70[0x2],0xa),_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x18ee')]=_0x51538b()['isEmpty'](_0x1c8c70[0x3])?_0x1c8c70[0x3]:isNaN(_0x1c8c70[0x3])?_0x1c8c70[0x3]:parseInt(_0x1c8c70[0x3],0xa),_0xaae598[_0x48ea58('0x3f5')]['welcomemessage']=_0x51538b()[_0x48ea58('0x116b')](_0x1c8c70[0x4])?_0x1c8c70[0x4]:isNaN(_0x1c8c70[0x4])?_0x1c8c70[0x4]:parseInt(_0x1c8c70[0x4],0xa);}break;}else _0xaae598['amazonlex'][_0x48ea58('0xa9a')]='us-east-1';_0xaae598['amazonlex'][_0x48ea58('0x6c8')]&&_0xaae598['amazonlex']['type'][_0x48ea58('0xcf6')]()===_0x48ea58('0x19d1')&&_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0xe6d')]['toLowerCase']()===_0x48ea58('0x1e7f')&&(_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x1b8f')]=_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x1a46')]?_0xaae598[_0x48ea58('0x3f5')]['phone']['split']('$')[0x0]:undefined,_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0xeed')]=_0xaae598[_0x48ea58('0x3f5')]['callerID']?'CALLERID(all)='+_0xaae598[_0x48ea58('0x3f5')][_0x48ea58('0x514')]:undefined);_0xaae598['saveWhatsappAccountApp']=_0x16ae2d,_0xaae598[_0x48ea58('0x2023')]=_0x561921;function _0x16ae2d(){var _0x16716a=_0x48ea58;_0xaae598[_0x16716a('0x4c6')]=[];var _0x324a0a=[];_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x6c8')]&&_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x6c8')][_0x16716a('0xcf6')]()===_0x16716a('0x19d1')&&_0xaae598['amazonlex'][_0x16716a('0xe6d')]===_0x16716a('0x8da')&&(_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x1a46')]=_0xcd8ec8[_0x16716a('0x888')]?(_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x1b8f')]||'')+'${EXTEN:'+_0xcd8ec8['cutdigits']+'}':(_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x1b8f')]||'')+_0x16716a('0x1f87'),_0xcd8ec8['recordingFormat']!==_0x16716a('0x117')?_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x1b36')]['indexOf'](_0x16716a('0x266a'))<0x0&&(_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x1b36')]+=_0x16716a('0x266a')):_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x1b36')]=_0xaae598[_0x16716a('0x3f5')]['options']['replace'](_0x16716a('0x266a'),''));if(_0xaae598[_0x16716a('0x3f5')][_0x16716a('0xe6d')]&&_0xaae598[_0x16716a('0x3f5')]['appType']==='custom'){}else switch((_0xaae598['amazonlex'][_0x16716a('0x9eb')]||_0xaae598[_0x16716a('0x3f5')]['appType'])[_0x16716a('0xcf6')]()){case _0x16716a('0x282c'):_0xaae598['amazonlex']['appdata']=_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x25d6')]+'='+_0xaae598['amazonlex'][_0x16716a('0x12f4')];break;case _0x16716a('0x113b'):break;default:_0x324a0a[0x0]=_0xaae598[_0x16716a('0x3f5')][_0x16716a('0xc07')],_0x324a0a[0x1]=_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x15f9')],_0x324a0a[0x2]=_0xaae598['amazonlex'][_0x16716a('0xa9a')],_0x324a0a[0x3]=_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x18ee')],_0x324a0a[0x4]=_0xaae598[_0x16716a('0x3f5')]['welcomemessage'],_0xaae598[_0x16716a('0x3f5')][_0x16716a('0x124b')]=_0x324a0a[_0x16716a('0x19c4')](',');}_0x561921(_0xaae598[_0x16716a('0x3f5')]);}function _0x561921(_0x5c7dca){_0x558576['hide'](_0x5c7dca);}}const _0x5e6be8=_0x2452dd;_0x3b76eb[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'whatsappAccountApp','whatsappAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x3b76eb(_0xf99da,_0xe179f1,_0x338b63,_0x3b95a7,_0x32ec08,_0x3cba1c,_0x232e41,_0x52ac02){var _0x35c3da=_0x1a8446,_0x277801=this;_0x277801[_0x35c3da('0x7fc')]=_0x232e41[_0x35c3da('0xacc')](),_0x277801[_0x35c3da('0x4c6')]=[],_0x277801[_0x35c3da('0x110a')]=_0x35c3da('0x78c')+(_0x3b95a7[_0x35c3da('0xe6d')]||_0x3b95a7[_0x35c3da('0x9eb')])[_0x35c3da('0x1d08')](),_0x277801['autoreply']=angular['copy'](_0x3b95a7),_0x277801[_0x35c3da('0xada')]=_0x52ac02,_0x277801[_0x35c3da('0x9f0')]={};if(_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x124b')])switch(_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0xe6d')]?_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0xe6d')][_0x35c3da('0xcf6')]():_0x277801['autoreply'][_0x35c3da('0x9eb')]['toLowerCase']()){case _0x35c3da('0x113b'):break;case'dialogflow':{var _0x1f9575=_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x124b')][_0x35c3da('0x1a39')](',');_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x24ec')]=_0x1f9575[0x0],_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x1938')]=_0x1f9575[0x1],_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x273')]=_0x1f9575[_0x35c3da('0x19aa')](0x2,_0x1f9575[_0x35c3da('0x2587')])[_0x35c3da('0x19c4')](',');}break;case _0x35c3da('0x3f5'):{var _0x2e388a=_0x277801[_0x35c3da('0x1b05')]['appdata'][_0x35c3da('0x1a39')](',');_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0xc07')]=_0x2e388a[0x0],_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x15f9')]=_0x2e388a[0x1],_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0xa9a')]=_0x2e388a[0x2],_0x277801[_0x35c3da('0x1b05')]['botname']=_0x2e388a[0x3],_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x273')]=_0x2e388a[_0x35c3da('0x19aa')](0x4,_0x2e388a['length'])[_0x35c3da('0x19c4')](',');}break;case _0x35c3da('0x1b05'):{var _0x2279ef=_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x124b')][_0x35c3da('0x1a39')](',');_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x11b6')]=isNaN(_0x2279ef[0x0])?_0x2279ef[0x0]:parseInt(_0x2279ef[0x0],0xa),_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0xb37')]=_0x2279ef[_0x35c3da('0x19aa')](0x1,_0x2279ef[_0x35c3da('0x2587')])[_0x35c3da('0x19c4')](',');}break;case _0x35c3da('0x1402'):_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0xb37')]=_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x124b')];break;case _0x35c3da('0x282c'):_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x25d6')]=_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x124b')][_0x35c3da('0x1a39')]('=')[0x0],_0x277801[_0x35c3da('0x1b05')]['value']=_0x277801['autoreply'][_0x35c3da('0x124b')][_0x35c3da('0x1a39')]('=')[0x1];break;case _0x35c3da('0x2067'):_0x277801[_0x35c3da('0x1b05')]['project']=_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x124b')];break;default:{var _0x26eede=_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x124b')][_0x35c3da('0x1a39')](',');_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x11b6')]=_0x51538b()['isEmpty'](_0x26eede[0x0])?_0x26eede[0x0]:isNaN(_0x26eede[0x0])?_0x26eede[0x0]:parseInt(_0x26eede[0x0],0xa),_0x277801[_0x35c3da('0x1b05')]['text']=_0x51538b()[_0x35c3da('0x116b')](_0x26eede[0x1])?_0x26eede[0x1]:isNaN(_0x26eede[0x1])?_0x26eede[0x1]:parseInt(_0x26eede[0x1],0xa);}break;}else _0x277801[_0x35c3da('0x1b05')]['times']=0x1;_0x277801['autoreply']['type']&&_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x6c8')][_0x35c3da('0xcf6')]()===_0x35c3da('0x19d1')&&_0x277801[_0x35c3da('0x1b05')]['appType'][_0x35c3da('0xcf6')]()===_0x35c3da('0x1e7f')&&(_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x1b8f')]=_0x277801[_0x35c3da('0x1b05')]['phone']?_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x1a46')]['split']('$')[0x0]:undefined,_0x277801['autoreply'][_0x35c3da('0xeed')]=_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x514')]?_0x35c3da('0x23d8')+_0x277801[_0x35c3da('0x1b05')][_0x35c3da('0x514')]:undefined);_0x277801[_0x35c3da('0x2c5')]=_0x1d03e7,_0x277801[_0x35c3da('0x2023')]=_0x16c9af;function _0x1d03e7(){var _0x495a85=_0x35c3da;_0x277801[_0x495a85('0x4c6')]=[];var _0x583274=[];_0x277801[_0x495a85('0x1b05')][_0x495a85('0x6c8')]&&_0x277801[_0x495a85('0x1b05')][_0x495a85('0x6c8')][_0x495a85('0xcf6')]()==='outbound'&&_0x277801['autoreply'][_0x495a85('0xe6d')]===_0x495a85('0x8da')&&(_0x277801[_0x495a85('0x1b05')][_0x495a85('0x1a46')]=_0x32ec08[_0x495a85('0x888')]?(_0x277801[_0x495a85('0x1b05')][_0x495a85('0x1b8f')]||'')+'${EXTEN:'+_0x32ec08[_0x495a85('0x888')]+'}':(_0x277801[_0x495a85('0x1b05')][_0x495a85('0x1b8f')]||'')+_0x495a85('0x1f87'),_0x32ec08[_0x495a85('0x1e0f')]!==_0x495a85('0x117')?_0x277801[_0x495a85('0x1b05')][_0x495a85('0x1b36')][_0x495a85('0x1f38')](_0x495a85('0x266a'))<0x0&&(_0x277801['autoreply'][_0x495a85('0x1b36')]+=_0x495a85('0x266a')):_0x277801[_0x495a85('0x1b05')]['options']=_0x277801['autoreply'][_0x495a85('0x1b36')][_0x495a85('0x170d')](_0x495a85('0x266a'),''));if(_0x277801[_0x495a85('0x1b05')][_0x495a85('0xe6d')]&&_0x277801[_0x495a85('0x1b05')][_0x495a85('0xe6d')]===_0x495a85('0x113b')){}else switch((_0x277801[_0x495a85('0x1b05')][_0x495a85('0x9eb')]||_0x277801[_0x495a85('0x1b05')]['appType'])[_0x495a85('0xcf6')]()){case _0x495a85('0x282c'):_0x277801[_0x495a85('0x1b05')]['appdata']=_0x277801[_0x495a85('0x1b05')][_0x495a85('0x25d6')]+'='+_0x277801[_0x495a85('0x1b05')][_0x495a85('0x12f4')];break;case _0x495a85('0x113b'):break;default:_0x583274[0x0]=_0x277801[_0x495a85('0x1b05')][_0x495a85('0x11b6')],_0x583274[0x1]=_0x277801[_0x495a85('0x1b05')][_0x495a85('0xb37')],_0x277801[_0x495a85('0x1b05')][_0x495a85('0x124b')]=_0x583274['join'](',');}_0x16c9af(_0x277801[_0x495a85('0x1b05')]);}function _0x16c9af(_0x323d57){var _0x398518=_0x35c3da;_0xf99da[_0x398518('0x1120')](_0x323d57);}}const _0x5d7abf=_0x3b76eb;_0x12d949[_0x1a8446('0x1e33')]=['$mdDialog','$q','toasty',_0x1a8446('0x66c'),'whatsappAccount',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x12d949(_0x4f61bc,_0x3465fe,_0x529653,_0x58af82,_0x486895,_0x30adc2,_0x51d330,_0x4868e8){var _0x13ff9f=_0x1a8446,_0x56c9f6=this;_0x56c9f6[_0x13ff9f('0x7fc')]=_0x51d330[_0x13ff9f('0xacc')](),_0x56c9f6[_0x13ff9f('0x4c6')]=[],_0x56c9f6[_0x13ff9f('0x110a')]=_0x13ff9f('0x78c')+(_0x58af82[_0x13ff9f('0xe6d')]||_0x58af82['app'])[_0x13ff9f('0x1d08')](),_0x56c9f6[_0x13ff9f('0x21d0')]=angular['copy'](_0x58af82),_0x56c9f6['crudPermissions']=_0x4868e8,_0x56c9f6['hasModulePermissions']={};if(_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x124b')])switch(_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0xe6d')]?_0x56c9f6[_0x13ff9f('0x21d0')]['appType']['toLowerCase']():_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x9eb')][_0x13ff9f('0xcf6')]()){case _0x13ff9f('0x113b'):break;case'dialogflow':{var _0x4b9233=_0x56c9f6['close'][_0x13ff9f('0x124b')]['split'](',');_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x24ec')]=_0x4b9233[0x0],_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x1938')]=_0x4b9233[0x1],_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x273')]=_0x4b9233[_0x13ff9f('0x19aa')](0x2,_0x4b9233[_0x13ff9f('0x2587')])['join'](',');}break;case _0x13ff9f('0x3f5'):{var _0x391a2e=_0x56c9f6['close'][_0x13ff9f('0x124b')]['split'](',');_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0xc07')]=_0x391a2e[0x0],_0x56c9f6[_0x13ff9f('0x21d0')]['secretaccesskey']=_0x391a2e[0x1],_0x56c9f6['close']['lexregion']=_0x391a2e[0x2],_0x56c9f6['close'][_0x13ff9f('0x18ee')]=_0x391a2e[0x3],_0x56c9f6[_0x13ff9f('0x21d0')]['welcomemessage']=_0x391a2e['slice'](0x4,_0x391a2e['length'])[_0x13ff9f('0x19c4')](',');}break;case _0x13ff9f('0x1b05'):{var _0x4025b9=_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x124b')][_0x13ff9f('0x1a39')](',');_0x56c9f6[_0x13ff9f('0x21d0')]['times']=isNaN(_0x4025b9[0x0])?_0x4025b9[0x0]:parseInt(_0x4025b9[0x0],0xa),_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0xb37')]=_0x4025b9[_0x13ff9f('0x19aa')](0x1,_0x4025b9[_0x13ff9f('0x2587')])[_0x13ff9f('0x19c4')](',');}break;case _0x13ff9f('0x1402'):_0x56c9f6[_0x13ff9f('0x21d0')]['text']=_0x56c9f6[_0x13ff9f('0x21d0')]['appdata'];break;case'set':_0x56c9f6['close']['name']=_0x56c9f6[_0x13ff9f('0x21d0')]['appdata']['split']('=')[0x0],_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x12f4')]=_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x124b')]['split']('=')[0x1];break;case _0x13ff9f('0x2067'):_0x56c9f6[_0x13ff9f('0x21d0')]['project']=_0x56c9f6['close']['appdata'];break;default:{var _0x4f64a3=_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x124b')][_0x13ff9f('0x1a39')](',');_0x56c9f6['close'][_0x13ff9f('0x106e')]=_0x51538b()[_0x13ff9f('0x116b')](_0x4f64a3[0x0])?_0x4f64a3[0x0]:isNaN(_0x4f64a3[0x0])?_0x4f64a3[0x0]:parseInt(_0x4f64a3[0x0],0xa);}break;}else{}_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x6c8')]&&_0x56c9f6[_0x13ff9f('0x21d0')]['type']['toLowerCase']()===_0x13ff9f('0x19d1')&&_0x56c9f6['close'][_0x13ff9f('0xe6d')][_0x13ff9f('0xcf6')]()==='outbounddial'&&(_0x56c9f6[_0x13ff9f('0x21d0')]['prefix']=_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x1a46')]?_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x1a46')][_0x13ff9f('0x1a39')]('$')[0x0]:undefined,_0x56c9f6['close'][_0x13ff9f('0xeed')]=_0x56c9f6[_0x13ff9f('0x21d0')][_0x13ff9f('0x514')]?_0x13ff9f('0x23d8')+_0x56c9f6['close'][_0x13ff9f('0x514')]:undefined);_0x56c9f6[_0x13ff9f('0x2c5')]=_0x326ef3,_0x56c9f6[_0x13ff9f('0x2023')]=_0x294409;function _0x326ef3(){var _0x1e7787=_0x13ff9f;_0x56c9f6[_0x1e7787('0x4c6')]=[];var _0x1f7ead=[];_0x56c9f6['close'][_0x1e7787('0x6c8')]&&_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0x6c8')]['toLowerCase']()==='outbound'&&_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0xe6d')]===_0x1e7787('0x8da')&&(_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0x1a46')]=_0x486895[_0x1e7787('0x888')]?(_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0x1b8f')]||'')+_0x1e7787('0x117e')+_0x486895[_0x1e7787('0x888')]+'}':(_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0x1b8f')]||'')+_0x1e7787('0x1f87'),_0x486895[_0x1e7787('0x1e0f')]!=='none'?_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0x1b36')][_0x1e7787('0x1f38')](_0x1e7787('0x266a'))<0x0&&(_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0x1b36')]+=_0x1e7787('0x266a')):_0x56c9f6['close'][_0x1e7787('0x1b36')]=_0x56c9f6[_0x1e7787('0x21d0')]['options'][_0x1e7787('0x170d')](_0x1e7787('0x266a'),''));if(_0x56c9f6['close']['appType']&&_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0xe6d')]===_0x1e7787('0x113b')){}else switch((_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0x9eb')]||_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0xe6d')])['toLowerCase']()){case _0x1e7787('0x282c'):_0x56c9f6[_0x1e7787('0x21d0')]['appdata']=_0x56c9f6[_0x1e7787('0x21d0')][_0x1e7787('0x25d6')]+'='+_0x56c9f6[_0x1e7787('0x21d0')]['value'];break;case _0x1e7787('0x113b'):break;default:_0x1f7ead[0x0]=_0x56c9f6[_0x1e7787('0x21d0')]['disposition'],_0x56c9f6[_0x1e7787('0x21d0')]['appdata']=_0x1f7ead[_0x1e7787('0x19c4')](',');}_0x294409(_0x56c9f6['close']);}function _0x294409(_0x158257){var _0x1357ae=_0x13ff9f;_0x4f61bc[_0x1357ae('0x1120')](_0x158257);}}const _0x30a4cf=_0x12d949;_0x18f4a0[_0x1a8446('0x1e33')]=['$mdDialog','$q','toasty',_0x1a8446('0x66c'),_0x1a8446('0x26ac'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x18f4a0(_0x2cfea5,_0x1ef4ee,_0x5ccdd1,_0x4951a0,_0x3e3dbb,_0x1e36e9,_0x140759,_0x44fc4f){var _0x505983=_0x1a8446,_0x42bdc0=this;_0x42bdc0['currentUser']=_0x140759[_0x505983('0xacc')](),_0x42bdc0[_0x505983('0x4c6')]=[],_0x42bdc0[_0x505983('0x110a')]=_0x505983('0x78c')+(_0x4951a0[_0x505983('0xe6d')]||_0x4951a0[_0x505983('0x9eb')])[_0x505983('0x1d08')](),_0x42bdc0[_0x505983('0x67c')]=angular['copy'](_0x4951a0),_0x42bdc0[_0x505983('0xada')]=_0x44fc4f,_0x42bdc0[_0x505983('0x9f0')]={};if(_0x42bdc0['dialogflow'][_0x505983('0x124b')])switch(_0x42bdc0[_0x505983('0x67c')]['appType']?_0x42bdc0['dialogflow'][_0x505983('0xe6d')]['toLowerCase']():_0x42bdc0[_0x505983('0x67c')]['app'][_0x505983('0xcf6')]()){case _0x505983('0x113b'):break;case _0x505983('0x67c'):{var _0xdccbf0=_0x42bdc0[_0x505983('0x67c')]['appdata'][_0x505983('0x1a39')](',');_0x42bdc0[_0x505983('0x67c')][_0x505983('0x24ec')]=_0xdccbf0[0x0],_0x42bdc0[_0x505983('0x67c')][_0x505983('0x1938')]=_0xdccbf0[0x1],_0x42bdc0[_0x505983('0x67c')][_0x505983('0x273')]=_0xdccbf0[_0x505983('0x19aa')](0x2,_0xdccbf0[_0x505983('0x2587')])[_0x505983('0x19c4')](',');}break;case'amazonlex':{var _0x41e1d8=_0x42bdc0['dialogflow']['appdata'][_0x505983('0x1a39')](',');_0x42bdc0[_0x505983('0x67c')][_0x505983('0xc07')]=_0x41e1d8[0x0],_0x42bdc0[_0x505983('0x67c')]['secretaccesskey']=_0x41e1d8[0x1],_0x42bdc0[_0x505983('0x67c')]['lexregion']=_0x41e1d8[0x2],_0x42bdc0[_0x505983('0x67c')][_0x505983('0x18ee')]=_0x41e1d8[0x3],_0x42bdc0[_0x505983('0x67c')][_0x505983('0x273')]=_0x41e1d8[_0x505983('0x19aa')](0x4,_0x41e1d8[_0x505983('0x2587')])[_0x505983('0x19c4')](',');}break;case'autoreply':{var _0x3024bc=_0x42bdc0[_0x505983('0x67c')][_0x505983('0x124b')][_0x505983('0x1a39')](',');_0x42bdc0[_0x505983('0x67c')]['times']=isNaN(_0x3024bc[0x0])?_0x3024bc[0x0]:parseInt(_0x3024bc[0x0],0xa),_0x42bdc0[_0x505983('0x67c')]['text']=_0x3024bc['slice'](0x1,_0x3024bc[_0x505983('0x2587')])[_0x505983('0x19c4')](',');}break;case _0x505983('0x1402'):_0x42bdc0[_0x505983('0x67c')][_0x505983('0xb37')]=_0x42bdc0['dialogflow'][_0x505983('0x124b')];break;case'set':_0x42bdc0[_0x505983('0x67c')]['name']=_0x42bdc0['dialogflow']['appdata']['split']('=')[0x0],_0x42bdc0[_0x505983('0x67c')][_0x505983('0x12f4')]=_0x42bdc0[_0x505983('0x67c')]['appdata'][_0x505983('0x1a39')]('=')[0x1];break;case _0x505983('0x2067'):_0x42bdc0['dialogflow']['project']=_0x42bdc0['dialogflow']['appdata'];break;default:{var _0x4cb114=_0x42bdc0[_0x505983('0x67c')][_0x505983('0x124b')]['split'](',');_0x42bdc0[_0x505983('0x67c')][_0x505983('0x24ec')]=_0x51538b()[_0x505983('0x116b')](_0x4cb114[0x0])?_0x4cb114[0x0]:isNaN(_0x4cb114[0x0])?_0x4cb114[0x0]:parseInt(_0x4cb114[0x0],0xa),_0x42bdc0[_0x505983('0x67c')][_0x505983('0x1938')]=_0x51538b()['isEmpty'](_0x4cb114[0x1])?_0x4cb114[0x1]:isNaN(_0x4cb114[0x1])?_0x4cb114[0x1]:parseInt(_0x4cb114[0x1],0xa),_0x42bdc0[_0x505983('0x67c')][_0x505983('0x273')]=_0x51538b()[_0x505983('0x116b')](_0x4cb114[0x2])?_0x4cb114[0x2]:isNaN(_0x4cb114[0x2])?_0x4cb114[0x2]:parseInt(_0x4cb114[0x2],0xa);}break;}else _0x42bdc0[_0x505983('0x67c')][_0x505983('0x1938')]='en';_0x42bdc0[_0x505983('0x67c')][_0x505983('0x6c8')]&&_0x42bdc0[_0x505983('0x67c')][_0x505983('0x6c8')]['toLowerCase']()===_0x505983('0x19d1')&&_0x42bdc0[_0x505983('0x67c')][_0x505983('0xe6d')][_0x505983('0xcf6')]()===_0x505983('0x1e7f')&&(_0x42bdc0['dialogflow'][_0x505983('0x1b8f')]=_0x42bdc0[_0x505983('0x67c')][_0x505983('0x1a46')]?_0x42bdc0[_0x505983('0x67c')][_0x505983('0x1a46')][_0x505983('0x1a39')]('$')[0x0]:undefined,_0x42bdc0['dialogflow']['callerId']=_0x42bdc0['dialogflow'][_0x505983('0x514')]?_0x505983('0x23d8')+_0x42bdc0[_0x505983('0x67c')][_0x505983('0x514')]:undefined);_0x42bdc0[_0x505983('0x2c5')]=_0x17a802,_0x42bdc0[_0x505983('0x2023')]=_0x320e42;function _0x17a802(){var _0xd0d03a=_0x505983;_0x42bdc0[_0xd0d03a('0x4c6')]=[];var _0xaa79fc=[];_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x6c8')]&&_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x6c8')][_0xd0d03a('0xcf6')]()===_0xd0d03a('0x19d1')&&_0x42bdc0['dialogflow'][_0xd0d03a('0xe6d')]===_0xd0d03a('0x8da')&&(_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x1a46')]=_0x3e3dbb[_0xd0d03a('0x888')]?(_0x42bdc0[_0xd0d03a('0x67c')]['prefix']||'')+_0xd0d03a('0x117e')+_0x3e3dbb[_0xd0d03a('0x888')]+'}':(_0x42bdc0[_0xd0d03a('0x67c')]['prefix']||'')+_0xd0d03a('0x1f87'),_0x3e3dbb[_0xd0d03a('0x1e0f')]!==_0xd0d03a('0x117')?_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x1b36')][_0xd0d03a('0x1f38')](_0xd0d03a('0x266a'))<0x0&&(_0x42bdc0[_0xd0d03a('0x67c')]['options']+=_0xd0d03a('0x266a')):_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x1b36')]=_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x1b36')][_0xd0d03a('0x170d')]('U(xcally-mixmonitor-context)',''));if(_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0xe6d')]&&_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0xe6d')]===_0xd0d03a('0x113b')){}else switch((_0x42bdc0['dialogflow'][_0xd0d03a('0x9eb')]||_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0xe6d')])[_0xd0d03a('0xcf6')]()){case _0xd0d03a('0x282c'):_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x124b')]=_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x25d6')]+'='+_0x42bdc0[_0xd0d03a('0x67c')][_0xd0d03a('0x12f4')];break;case _0xd0d03a('0x113b'):break;default:_0xaa79fc[0x0]=_0x42bdc0['dialogflow'][_0xd0d03a('0x24ec')],_0xaa79fc[0x1]=_0x42bdc0['dialogflow'][_0xd0d03a('0x1938')],_0xaa79fc[0x2]=_0x42bdc0[_0xd0d03a('0x67c')]['welcomemessage'],_0x42bdc0['dialogflow'][_0xd0d03a('0x124b')]=_0xaa79fc[_0xd0d03a('0x19c4')](',');}_0x320e42(_0x42bdc0[_0xd0d03a('0x67c')]);}function _0x320e42(_0x4c91b9){var _0x518b20=_0x505983;_0x2cfea5[_0x518b20('0x1120')](_0x4c91b9);}}const _0x21b428=_0x18f4a0;_0x5d9e1e[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x66c'),_0x1a8446('0x26ac'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x5d9e1e(_0xbe457c,_0x1d443d,_0x3c0206,_0x444e82,_0x266df6,_0xda5945,_0x32fed3,_0x2707b6){var _0x5f2e12=_0x1a8446,_0xab4e9f=this;_0xab4e9f[_0x5f2e12('0x7fc')]=_0x32fed3[_0x5f2e12('0xacc')](),_0xab4e9f[_0x5f2e12('0x4c6')]=[],_0xab4e9f[_0x5f2e12('0x110a')]='WHATSAPP.EDIT_'+(_0x444e82['appType']||_0x444e82[_0x5f2e12('0x9eb')])[_0x5f2e12('0x1d08')](),_0xab4e9f[_0x5f2e12('0x3cb')]=angular[_0x5f2e12('0x20a')](_0x444e82),_0xab4e9f[_0x5f2e12('0xada')]=_0x2707b6,_0xab4e9f['hasModulePermissions']={};if(_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x124b')])switch(_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0xe6d')]?_0xab4e9f['gotoif']['appType']['toLowerCase']():_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x9eb')][_0x5f2e12('0xcf6')]()){case'custom':break;case _0x5f2e12('0x67c'):{var _0x4fb60c=_0xab4e9f['gotoif'][_0x5f2e12('0x124b')][_0x5f2e12('0x1a39')](',');_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x24ec')]=_0x4fb60c[0x0],_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x1938')]=_0x4fb60c[0x1],_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x273')]=_0x4fb60c[_0x5f2e12('0x19aa')](0x2,_0x4fb60c[_0x5f2e12('0x2587')])['join'](',');}break;case'amazonlex':{var _0x51363a=_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x124b')][_0x5f2e12('0x1a39')](',');_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0xc07')]=_0x51363a[0x0],_0xab4e9f['gotoif']['secretaccesskey']=_0x51363a[0x1],_0xab4e9f['gotoif'][_0x5f2e12('0xa9a')]=_0x51363a[0x2],_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x18ee')]=_0x51363a[0x3],_0xab4e9f[_0x5f2e12('0x3cb')]['welcomemessage']=_0x51363a[_0x5f2e12('0x19aa')](0x4,_0x51363a['length'])[_0x5f2e12('0x19c4')](',');}break;case _0x5f2e12('0x1b05'):{var _0x1e1c84=_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x124b')]['split'](',');_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x11b6')]=isNaN(_0x1e1c84[0x0])?_0x1e1c84[0x0]:parseInt(_0x1e1c84[0x0],0xa),_0xab4e9f['gotoif'][_0x5f2e12('0xb37')]=_0x1e1c84[_0x5f2e12('0x19aa')](0x1,_0x1e1c84['length'])['join'](',');}break;case _0x5f2e12('0x1402'):_0xab4e9f[_0x5f2e12('0x3cb')]['text']=_0xab4e9f[_0x5f2e12('0x3cb')]['appdata'];break;case _0x5f2e12('0x282c'):_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x25d6')]=_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x124b')][_0x5f2e12('0x1a39')]('=')[0x0],_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x12f4')]=_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x124b')]['split']('=')[0x1];break;case _0x5f2e12('0x2067'):_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x24b9')]=_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x124b')];break;default:{var _0x32d37a=_0xab4e9f[_0x5f2e12('0x3cb')]['appdata'][_0x5f2e12('0x1a39')](',');_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0xe77')]=_0x51538b()[_0x5f2e12('0x116b')](_0x32d37a[0x0])?_0x32d37a[0x0]:isNaN(_0x32d37a[0x0])?_0x32d37a[0x0]:parseInt(_0x32d37a[0x0],0xa),_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x13ba')]=_0x51538b()[_0x5f2e12('0x116b')](_0x32d37a[0x1])?_0x32d37a[0x1]:isNaN(_0x32d37a[0x1])?_0x32d37a[0x1]:parseInt(_0x32d37a[0x1],0xa),_0xab4e9f['gotoif'][_0x5f2e12('0x222b')]=_0x51538b()[_0x5f2e12('0x116b')](_0x32d37a[0x2])?_0x32d37a[0x2]:isNaN(_0x32d37a[0x2])?_0x32d37a[0x2]:parseInt(_0x32d37a[0x2],0xa);}break;}else{}_0xab4e9f[_0x5f2e12('0x3cb')]['type']&&_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x6c8')]['toLowerCase']()==='outbound'&&_0xab4e9f[_0x5f2e12('0x3cb')]['appType'][_0x5f2e12('0xcf6')]()==='outbounddial'&&(_0xab4e9f[_0x5f2e12('0x3cb')]['prefix']=_0xab4e9f['gotoif'][_0x5f2e12('0x1a46')]?_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x1a46')][_0x5f2e12('0x1a39')]('$')[0x0]:undefined,_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0xeed')]=_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x514')]?_0x5f2e12('0x23d8')+_0xab4e9f[_0x5f2e12('0x3cb')][_0x5f2e12('0x514')]:undefined);_0xab4e9f[_0x5f2e12('0x2c5')]=_0xc497d1,_0xab4e9f[_0x5f2e12('0x2023')]=_0x148702;function _0xc497d1(){var _0x4ca673=_0x5f2e12;_0xab4e9f[_0x4ca673('0x4c6')]=[];var _0x588c68=[];_0xab4e9f['gotoif'][_0x4ca673('0x6c8')]&&_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x6c8')]['toLowerCase']()===_0x4ca673('0x19d1')&&_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0xe6d')]===_0x4ca673('0x8da')&&(_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x1a46')]=_0x266df6[_0x4ca673('0x888')]?(_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x1b8f')]||'')+_0x4ca673('0x117e')+_0x266df6[_0x4ca673('0x888')]+'}':(_0xab4e9f[_0x4ca673('0x3cb')]['prefix']||'')+_0x4ca673('0x1f87'),_0x266df6['recordingFormat']!==_0x4ca673('0x117')?_0xab4e9f[_0x4ca673('0x3cb')]['options'][_0x4ca673('0x1f38')](_0x4ca673('0x266a'))<0x0&&(_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x1b36')]+=_0x4ca673('0x266a')):_0xab4e9f[_0x4ca673('0x3cb')]['options']=_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x1b36')][_0x4ca673('0x170d')](_0x4ca673('0x266a'),''));if(_0xab4e9f[_0x4ca673('0x3cb')]['appType']&&_0xab4e9f[_0x4ca673('0x3cb')]['appType']==='custom'){}else switch((_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x9eb')]||_0xab4e9f['gotoif']['appType'])[_0x4ca673('0xcf6')]()){case _0x4ca673('0x282c'):_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x124b')]=_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x25d6')]+'='+_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x12f4')];break;case _0x4ca673('0x113b'):break;default:_0x588c68[0x0]=_0xab4e9f['gotoif'][_0x4ca673('0xe77')],_0x588c68[0x1]=_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x13ba')],_0x588c68[0x2]=_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x222b')],_0xab4e9f[_0x4ca673('0x3cb')][_0x4ca673('0x124b')]=_0x588c68[_0x4ca673('0x19c4')](',');}_0x148702(_0xab4e9f[_0x4ca673('0x3cb')]);}function _0x148702(_0x10aea6){var _0x19c284=_0x5f2e12;_0xbe457c[_0x19c284('0x1120')](_0x10aea6);}}const _0x53e2f2=_0x5d9e1e;_0x50097d[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),'whatsappAccountApp',_0x1a8446('0x26ac'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x50097d(_0x374914,_0x304be0,_0x12a611,_0x4528ff,_0x4936e7,_0x9d9cb0,_0x5cd758,_0x48d360){var _0x1dc59a=_0x1a8446,_0x148087=this;_0x148087[_0x1dc59a('0x7fc')]=_0x5cd758[_0x1dc59a('0xacc')](),_0x148087[_0x1dc59a('0x4c6')]=[],_0x148087[_0x1dc59a('0x110a')]=_0x1dc59a('0x78c')+(_0x4528ff[_0x1dc59a('0xe6d')]||_0x4528ff[_0x1dc59a('0x9eb')])[_0x1dc59a('0x1d08')](),_0x148087[_0x1dc59a('0x1141')]=angular[_0x1dc59a('0x20a')](_0x4528ff),_0x148087[_0x1dc59a('0xada')]=_0x48d360,_0x148087[_0x1dc59a('0x9f0')]={};if(_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x124b')])switch(_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0xe6d')]?_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0xe6d')][_0x1dc59a('0xcf6')]():_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x9eb')][_0x1dc59a('0xcf6')]()){case'custom':break;case'dialogflow':{var _0x3097d6=_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x124b')][_0x1dc59a('0x1a39')](',');_0x148087['gotop'][_0x1dc59a('0x24ec')]=_0x3097d6[0x0],_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x1938')]=_0x3097d6[0x1],_0x148087[_0x1dc59a('0x1141')]['welcomemessage']=_0x3097d6[_0x1dc59a('0x19aa')](0x2,_0x3097d6[_0x1dc59a('0x2587')])[_0x1dc59a('0x19c4')](',');}break;case _0x1dc59a('0x3f5'):{var _0x32f301=_0x148087[_0x1dc59a('0x1141')]['appdata'][_0x1dc59a('0x1a39')](',');_0x148087[_0x1dc59a('0x1141')]['accesskeyid']=_0x32f301[0x0],_0x148087['gotop'][_0x1dc59a('0x15f9')]=_0x32f301[0x1],_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0xa9a')]=_0x32f301[0x2],_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x18ee')]=_0x32f301[0x3],_0x148087['gotop'][_0x1dc59a('0x273')]=_0x32f301[_0x1dc59a('0x19aa')](0x4,_0x32f301['length'])[_0x1dc59a('0x19c4')](',');}break;case'autoreply':{var _0x3d1a0b=_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x124b')][_0x1dc59a('0x1a39')](',');_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x11b6')]=isNaN(_0x3d1a0b[0x0])?_0x3d1a0b[0x0]:parseInt(_0x3d1a0b[0x0],0xa),_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0xb37')]=_0x3d1a0b[_0x1dc59a('0x19aa')](0x1,_0x3d1a0b[_0x1dc59a('0x2587')])[_0x1dc59a('0x19c4')](',');}break;case'message':_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0xb37')]=_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x124b')];break;case _0x1dc59a('0x282c'):_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x25d6')]=_0x148087['gotop'][_0x1dc59a('0x124b')][_0x1dc59a('0x1a39')]('=')[0x0],_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x12f4')]=_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x124b')][_0x1dc59a('0x1a39')]('=')[0x1];break;case'agi':_0x148087[_0x1dc59a('0x1141')]['project']=_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x124b')];break;default:{var _0x29e2d0=_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x124b')][_0x1dc59a('0x1a39')](',');_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x13f2')]=_0x51538b()[_0x1dc59a('0x116b')](_0x29e2d0[0x0])?_0x29e2d0[0x0]:isNaN(_0x29e2d0[0x0])?_0x29e2d0[0x0]:parseInt(_0x29e2d0[0x0],0xa);}break;}else{}_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x6c8')]&&_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x6c8')]['toLowerCase']()===_0x1dc59a('0x19d1')&&_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0xe6d')][_0x1dc59a('0xcf6')]()==='outbounddial'&&(_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x1b8f')]=_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x1a46')]?_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0x1a46')][_0x1dc59a('0x1a39')]('$')[0x0]:undefined,_0x148087[_0x1dc59a('0x1141')][_0x1dc59a('0xeed')]=_0x148087['gotop'][_0x1dc59a('0x514')]?_0x1dc59a('0x23d8')+_0x148087[_0x1dc59a('0x1141')]['callerID']:undefined);_0x148087[_0x1dc59a('0x2c5')]=_0x48819e,_0x148087['closeDialog']=_0xe3655e;function _0x48819e(){var _0x1e0699=_0x1dc59a;_0x148087[_0x1e0699('0x4c6')]=[];var _0x2762be=[];_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x6c8')]&&_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x6c8')][_0x1e0699('0xcf6')]()==='outbound'&&_0x148087[_0x1e0699('0x1141')][_0x1e0699('0xe6d')]===_0x1e0699('0x8da')&&(_0x148087['gotop'][_0x1e0699('0x1a46')]=_0x4936e7[_0x1e0699('0x888')]?(_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x1b8f')]||'')+_0x1e0699('0x117e')+_0x4936e7[_0x1e0699('0x888')]+'}':(_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x1b8f')]||'')+_0x1e0699('0x1f87'),_0x4936e7[_0x1e0699('0x1e0f')]!=='none'?_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x1b36')][_0x1e0699('0x1f38')](_0x1e0699('0x266a'))<0x0&&(_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x1b36')]+=_0x1e0699('0x266a')):_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x1b36')]=_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x1b36')]['replace'](_0x1e0699('0x266a'),''));if(_0x148087[_0x1e0699('0x1141')]['appType']&&_0x148087[_0x1e0699('0x1141')]['appType']===_0x1e0699('0x113b')){}else switch((_0x148087['gotop']['app']||_0x148087['gotop'][_0x1e0699('0xe6d')])[_0x1e0699('0xcf6')]()){case _0x1e0699('0x282c'):_0x148087[_0x1e0699('0x1141')]['appdata']=_0x148087[_0x1e0699('0x1141')][_0x1e0699('0x25d6')]+'='+_0x148087['gotop'][_0x1e0699('0x12f4')];break;case _0x1e0699('0x113b'):break;default:_0x2762be[0x0]=_0x148087[_0x1e0699('0x1141')]['priority'],_0x148087['gotop']['appdata']=_0x2762be['join'](',');}_0xe3655e(_0x148087[_0x1e0699('0x1141')]);}function _0xe3655e(_0x6babd7){_0x374914['hide'](_0x6babd7);}}const _0x187ef7=_0x50097d;_0x47b3c2[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),'$mdDialog',_0x1a8446('0x2658'),_0x1a8446('0x197b'),_0x1a8446('0x1c21'),_0x1a8446('0x2568'),_0x1a8446('0x2a4'),_0x1a8446('0x157'),'Auth',_0x1a8446('0xada')];function _0x47b3c2(_0x4e95f6,_0x49e362,_0x382c47,_0x24b937,_0x1bc824,_0x371cb8,_0x41617e,_0x4d575b,_0x30fbe5,_0x3c9f56){var _0x63d556=_0x1a8446,_0x3ba03d=this;_0x3ba03d['currentUser']=_0x30fbe5['getCurrentUser'](),_0x3ba03d[_0x63d556('0x4c6')]=[],_0x3ba03d['title']='TOOLS.EDIT_INTERVAL',_0x3ba03d['interval']=angular[_0x63d556('0x20a')](_0x1bc824),_0x3ba03d[_0x63d556('0x2568')]=_0x371cb8,_0x3ba03d['newInterval']=![],_0x3ba03d['types']=[_0x63d556('0x1b43'),_0x63d556('0x113b'),_0x63d556('0x2334')],_0x3ba03d[_0x63d556('0xada')]=_0x3c9f56,_0x3ba03d['daysOfWeek']=_0x24b937[_0x63d556('0x1529')](),_0x3ba03d[_0x63d556('0x21a9')]=_0x24b937[_0x63d556('0x23fa')](),_0x3ba03d[_0x63d556('0x672')]=_0x24b937[_0x63d556('0x2225')](),_0x3ba03d[_0x63d556('0x1469')]=_0x24b937[_0x63d556('0x74a')]();if(!_0x3ba03d[_0x63d556('0x1c21')])_0x3ba03d[_0x63d556('0x1c21')]={'interval':'*,*,*,*'},_0x3ba03d[_0x63d556('0x6c8')]='always',_0x3ba03d[_0x63d556('0x110a')]=_0x63d556('0x11d5'),_0x3ba03d['newInterval']=!![];else{if(_0x3ba03d['interval'][_0x63d556('0x1c21')]!==_0x63d556('0x1ac6')){_0x3ba03d[_0x63d556('0x6c8')]=_0x63d556('0x113b');var _0x103523=_0x3ba03d[_0x63d556('0x1c21')][_0x63d556('0x1c21')][_0x63d556('0x1a39')](','),_0x196ca9=_0x103523[0x0],_0xf360f4=_0x103523[0x1],_0x21a689=_0x103523[0x2],_0x403c77=_0x103523[0x3];if(_0x196ca9!=='*'){var _0x544d7b=_0x196ca9['split']('-')[0x0],_0x1b21f8=_0x196ca9[_0x63d556('0x1a39')]('-')[0x1],_0x30226f;_0x30226f=new Date(),_0x30226f['setHours'](Number(_0x544d7b['split'](':')[0x0])),_0x30226f['setMinutes'](Number(_0x544d7b[_0x63d556('0x1a39')](':')[0x1])),_0x3ba03d['timeRangeFrom']=_0x30226f,_0x30226f=new Date(),_0x30226f[_0x63d556('0x807')](Number(_0x1b21f8[_0x63d556('0x1a39')](':')[0x0])),_0x30226f['setMinutes'](Number(_0x1b21f8[_0x63d556('0x1a39')](':')[0x1])),_0x3ba03d[_0x63d556('0x815')]=_0x30226f;}_0xf360f4!=='*'&&(_0x3ba03d['dayOfWeekFrom']=_0xf360f4[_0x63d556('0x1a39')]('-')[0x0],_0x3ba03d[_0x63d556('0xc93')]=_0xf360f4[_0x63d556('0x1a39')]('-')[0x1]),_0x21a689!=='*'&&(_0x3ba03d[_0x63d556('0x19d0')]=_0x21a689[_0x63d556('0x1a39')]('-')[0x0],_0x3ba03d['monthDayTo']=_0x21a689[_0x63d556('0x1a39')]('-')[0x1]),_0x403c77!=='*'&&(_0x3ba03d[_0x63d556('0xcf9')]=_0x403c77[_0x63d556('0x1a39')]('-')[0x0],_0x3ba03d[_0x63d556('0x125f')]=_0x403c77['split']('-')[0x1]);}else _0x3ba03d[_0x63d556('0x6c8')]=_0x63d556('0x1b43');}_0x4e95f6[_0x63d556('0x25cf')]['id']&&!_0x3ba03d['interval'][_0x63d556('0xe45')]&&(_0x3ba03d[_0x63d556('0x1c21')][_0x63d556('0x1f8c')]=_0x4e95f6[_0x63d556('0x25cf')]['id']);_0x3ba03d[_0x63d556('0x1c21')][_0x63d556('0x1f8c')]&&_0x3ba03d['interval']['application']&&(_0x3ba03d[_0x63d556('0x6c8')]=_0x63d556('0x2334'));_0x3ba03d[_0x63d556('0x152a')]=_0x53b553,_0x3ba03d[_0x63d556('0x1570')]=_0x1ba256,_0x3ba03d['closeDialog']=_0x579024;_0x3ba03d['interval'][_0x63d556('0xe45')]&&(_0x30fbe5[_0x63d556('0x26e8')](_0x63d556('0x178b'))?_0x4d575b[_0x63d556('0x1c21')]['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x63d556('0x1ed9'),'nolimit':!![]})['$promise'][_0x63d556('0xaa5')](function(_0x2ce60d){var _0x24fe22=_0x63d556;_0x3ba03d[_0x24fe22('0x2568')]=_0x2ce60d['rows']||[];})[_0x63d556('0x253d')](function(_0x330952){var _0x12bb77=_0x63d556;_0x41617e['error']({'title':_0x330952[_0x12bb77('0x2fa')]?_0x12bb77('0x16c2')+_0x330952[_0x12bb77('0x2fa')]+_0x12bb77('0x169e')+_0x330952[_0x12bb77('0x24df')]:_0x12bb77('0x3b0'),'msg':_0x330952[_0x12bb77('0x10fd')]?JSON['stringify'](_0x330952['data']):_0x330952[_0x12bb77('0x684')]()});}):_0x4d575b[_0x63d556('0x1c21')][_0x63d556('0x2122')]({'fields':_0x63d556('0x1a33'),'IntervalId':_0x63d556('0x1ed9'),'nolimit':!![]})['$promise']['then'](function(_0x4fa032){_0x3ba03d['intervals']=_0x4fa032['rows']||[];})[_0x63d556('0xaa5')](function(){var _0x332850=_0x63d556;return _0x4d575b['userProfileSection'][_0x332850('0x2122')]({'userProfileId':_0x3ba03d[_0x332850('0x7fc')][_0x332850('0x2168')],'sectionId':0x3ec})[_0x332850('0x1dc2')];})[_0x63d556('0xaa5')](function(_0x26a12c){var _0x2826bd=_0x63d556,_0x16cb81=_0x26a12c&&_0x26a12c[_0x2826bd('0x580')]?_0x26a12c[_0x2826bd('0x580')][0x0]:null;if(!_0x16cb81)_0x3ba03d[_0x2826bd('0x2568')]=[];else{if(!_0x16cb81[_0x2826bd('0x26cc')])return _0x4d575b[_0x2826bd('0x249a')][_0x2826bd('0x2122')]({'sectionId':_0x16cb81['id']})['$promise'][_0x2826bd('0xaa5')](function(_0x19b674){var _0x5e44ce=_0x2826bd,_0x533b33=_0x19b674&&_0x19b674['rows']?_0x19b674['rows']:[],_0x6e1b2a=[],_0x23909c=null;_0x3ba03d[_0x5e44ce('0x1c21')]&&(_0x23909c=_0x51538b()[_0x5e44ce('0xe9e')](_0x3ba03d[_0x5e44ce('0x2568')],{'name':_0x3ba03d[_0x5e44ce('0x1c21')][_0x5e44ce('0x1f8c')]})),_0x23909c&&!_0x51538b()[_0x5e44ce('0x2c2')](_0x533b33,[_0x5e44ce('0xbcd'),_0x23909c['id']])&&_0x3ba03d['intervals']['forEach'](function(_0xb72ebd){var _0x474e64=_0x5e44ce;_0xb72ebd['id']===_0x23909c['id']&&(_0xb72ebd[_0x474e64('0x12eb')]=![],_0x6e1b2a[_0x474e64('0x1599')](_0xb72ebd));}),_0x3ba03d[_0x5e44ce('0x2568')]=_0x6e1b2a;});}})[_0x63d556('0x253d')](function(_0x1c0a20){var _0x13d24b=_0x63d556;_0x41617e[_0x13d24b('0x187f')]({'title':_0x1c0a20[_0x13d24b('0x2fa')]?_0x13d24b('0x16c2')+_0x1c0a20[_0x13d24b('0x2fa')]+_0x13d24b('0x169e')+_0x1c0a20[_0x13d24b('0x24df')]:_0x13d24b('0x3b0'),'msg':_0x1c0a20[_0x13d24b('0x10fd')]?JSON['stringify'](_0x1c0a20[_0x13d24b('0x10fd')]):_0x1c0a20['toString']()});}));function _0x28593a(){var _0x3c9eb1=_0x63d556;switch(_0x3ba03d[_0x3c9eb1('0x6c8')]){case _0x3c9eb1('0x1b43'):case _0x3c9eb1('0x2334'):return'*,*,*,*';case _0x3c9eb1('0x113b'):{var _0x22cff5=[];if(_0x3ba03d[_0x3c9eb1('0x1ee7')]!=='*'&&_0x3ba03d[_0x3c9eb1('0x1ee7')]&&_0x3ba03d[_0x3c9eb1('0x815')]){var _0x22064c=(_0x3ba03d[_0x3c9eb1('0x1ee7')]['getHours']()<0xa?'0':'')+_0x3ba03d['timeRangeFrom'][_0x3c9eb1('0x6a2')]()+':'+((_0x3ba03d['timeRangeFrom'][_0x3c9eb1('0x13a6')]()<0xa?'0':'')+_0x3ba03d[_0x3c9eb1('0x1ee7')][_0x3c9eb1('0x13a6')]()),_0x2ec55e=(_0x3ba03d[_0x3c9eb1('0x815')]['getHours']()<0xa?'0':'')+_0x3ba03d[_0x3c9eb1('0x815')][_0x3c9eb1('0x6a2')]()+':'+((_0x3ba03d[_0x3c9eb1('0x815')][_0x3c9eb1('0x13a6')]()<0xa?'0':'')+_0x3ba03d[_0x3c9eb1('0x815')][_0x3c9eb1('0x13a6')]());_0x22cff5['push'](_0x22064c+'-'+_0x2ec55e);}else _0x22cff5[_0x3c9eb1('0x1599')]('*');return _0x3ba03d[_0x3c9eb1('0x1fa3')]?_0x3ba03d['dayOfWeekTo']?_0x22cff5[_0x3c9eb1('0x1599')](_0x3ba03d[_0x3c9eb1('0x1fa3')]+'-'+_0x3ba03d[_0x3c9eb1('0xc93')]):_0x22cff5[_0x3c9eb1('0x1599')](_0x3ba03d['dayOfWeekFrom']):_0x22cff5[_0x3c9eb1('0x1599')]('*'),_0x3ba03d[_0x3c9eb1('0x19d0')]?_0x3ba03d[_0x3c9eb1('0x2c3')]?_0x22cff5[_0x3c9eb1('0x1599')](_0x3ba03d[_0x3c9eb1('0x19d0')]+'-'+_0x3ba03d['monthDayTo']):_0x22cff5[_0x3c9eb1('0x1599')](_0x3ba03d[_0x3c9eb1('0x19d0')]):_0x22cff5[_0x3c9eb1('0x1599')]('*'),_0x3ba03d[_0x3c9eb1('0xcf9')]?_0x3ba03d[_0x3c9eb1('0x125f')]?_0x22cff5[_0x3c9eb1('0x1599')](_0x3ba03d['monthFrom']+'-'+_0x3ba03d[_0x3c9eb1('0x125f')]):_0x22cff5['push'](_0x3ba03d[_0x3c9eb1('0xcf9')]):_0x22cff5['push']('*'),_0x22cff5[_0x3c9eb1('0x19c4')]();}}}function _0x53b553(){var _0x48d84a=_0x63d556;_0x3ba03d[_0x48d84a('0x4c6')]=[],_0x3ba03d['interval'][_0x48d84a('0x1c21')]=_0x28593a(),_0x4d575b[_0x48d84a('0x1c21')][_0x48d84a('0x242b')](_0x3ba03d['interval'])[_0x48d84a('0x1dc2')][_0x48d84a('0xaa5')](function(_0x413571){var _0x9f6bba=_0x48d84a;_0x3ba03d['intervals'][_0x9f6bba('0x1599')](_0x413571),_0x41617e[_0x9f6bba('0xe10')]({'title':_0x9f6bba('0x1041'),'msg':_0x3ba03d[_0x9f6bba('0x1c21')][_0x9f6bba('0x25d6')]?_0x3ba03d[_0x9f6bba('0x1c21')]['name']+_0x9f6bba('0xdca'):''}),_0x579024();})['catch'](function(_0x3ebea8){var _0x2ca287=_0x48d84a;console['error'](_0x3ebea8),_0x3ba03d[_0x2ca287('0x4c6')]=_0x3ebea8[_0x2ca287('0x10fd')][_0x2ca287('0x4c6')]||[{'message':_0x3ebea8[_0x2ca287('0x684')](),'type':_0x2ca287('0xbd7')}];});}function _0x1ba256(){var _0x562c42=_0x63d556;_0x3ba03d[_0x562c42('0x4c6')]=[],_0x3ba03d['interval']['interval']=_0x28593a(),_0x3ba03d[_0x562c42('0x1c21')]['application']?(_0x3ba03d['type']!==_0x562c42('0x2334')&&(_0x3ba03d[_0x562c42('0x1c21')][_0x562c42('0x1f8c')]=null),_0x579024(_0x3ba03d['interval'])):_0x4d575b[_0x562c42('0x1c21')]['update']({'id':_0x3ba03d[_0x562c42('0x1c21')]['id']},_0x3ba03d[_0x562c42('0x1c21')])[_0x562c42('0x1dc2')][_0x562c42('0xaa5')](function(_0xef00c3){var _0x3e82e7=_0x562c42,_0x3b9eb6=_0x51538b()['find'](_0x3ba03d[_0x3e82e7('0x2568')],{'id':_0xef00c3['id']});_0x3b9eb6&&_0x51538b()[_0x3e82e7('0x283c')](_0x3b9eb6,_0xef00c3),_0x41617e[_0x3e82e7('0xe10')]({'title':_0x3e82e7('0x68b'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x579024();})[_0x562c42('0x253d')](function(_0x8cb7f){var _0x2ebd8f=_0x562c42;console[_0x2ebd8f('0x187f')](_0x8cb7f),_0x3ba03d[_0x2ebd8f('0x4c6')]=_0x8cb7f[_0x2ebd8f('0x10fd')][_0x2ebd8f('0x4c6')]||[{'message':_0x8cb7f[_0x2ebd8f('0x684')](),'type':_0x2ebd8f('0x83d')}];});}function _0x579024(_0x1a863d){var _0x10bef9=_0x63d556;_0x49e362[_0x10bef9('0x1120')](_0x1a863d);}}const _0x4b542f=_0x47b3c2;_0x2e87b3[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x66c'),'whatsappAccount','api',_0x1a8446('0x1dfd'),'crudPermissions'];function _0x2e87b3(_0x49a990,_0x20aee6,_0x16d3e6,_0x5325b5,_0x1eac46,_0x16316f,_0x51b98e,_0x3da580){var _0x12d109=_0x1a8446,_0x2e8193=this;_0x2e8193[_0x12d109('0x7fc')]=_0x51b98e[_0x12d109('0xacc')](),_0x2e8193[_0x12d109('0x4c6')]=[],_0x2e8193[_0x12d109('0x110a')]='WHATSAPP.EDIT_'+(_0x5325b5[_0x12d109('0xe6d')]||_0x5325b5[_0x12d109('0x9eb')])[_0x12d109('0x1d08')](),_0x2e8193[_0x12d109('0x27ca')]=angular[_0x12d109('0x20a')](_0x5325b5),_0x2e8193[_0x12d109('0xada')]=_0x3da580,_0x2e8193[_0x12d109('0x9f0')]={};if(_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x124b')])switch(_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0xe6d')]?_0x2e8193['noop']['appType'][_0x12d109('0xcf6')]():_0x2e8193['noop']['app'][_0x12d109('0xcf6')]()){case _0x12d109('0x113b'):break;case'dialogflow':{var _0x41fb65=_0x2e8193['noop'][_0x12d109('0x124b')]['split'](',');_0x2e8193['noop'][_0x12d109('0x24ec')]=_0x41fb65[0x0],_0x2e8193['noop'][_0x12d109('0x1938')]=_0x41fb65[0x1],_0x2e8193[_0x12d109('0x27ca')]['welcomemessage']=_0x41fb65[_0x12d109('0x19aa')](0x2,_0x41fb65[_0x12d109('0x2587')])[_0x12d109('0x19c4')](',');}break;case _0x12d109('0x3f5'):{var _0x5ecf66=_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x124b')][_0x12d109('0x1a39')](',');_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0xc07')]=_0x5ecf66[0x0],_0x2e8193['noop'][_0x12d109('0x15f9')]=_0x5ecf66[0x1],_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0xa9a')]=_0x5ecf66[0x2],_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x18ee')]=_0x5ecf66[0x3],_0x2e8193[_0x12d109('0x27ca')]['welcomemessage']=_0x5ecf66['slice'](0x4,_0x5ecf66[_0x12d109('0x2587')])[_0x12d109('0x19c4')](',');}break;case _0x12d109('0x1b05'):{var _0x27e25f=_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x124b')][_0x12d109('0x1a39')](',');_0x2e8193[_0x12d109('0x27ca')]['times']=isNaN(_0x27e25f[0x0])?_0x27e25f[0x0]:parseInt(_0x27e25f[0x0],0xa),_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0xb37')]=_0x27e25f[_0x12d109('0x19aa')](0x1,_0x27e25f['length'])[_0x12d109('0x19c4')](',');}break;case _0x12d109('0x1402'):_0x2e8193[_0x12d109('0x27ca')]['text']=_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x124b')];break;case _0x12d109('0x282c'):_0x2e8193['noop']['name']=_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x124b')]['split']('=')[0x0],_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x12f4')]=_0x2e8193[_0x12d109('0x27ca')]['appdata']['split']('=')[0x1];break;case _0x12d109('0x2067'):_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x24b9')]=_0x2e8193['noop']['appdata'];break;default:{var _0x31bffe=_0x2e8193['noop'][_0x12d109('0x124b')][_0x12d109('0x1a39')](',');_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x12f4')]=_0x51538b()['isEmpty'](_0x31bffe[0x0])?_0x31bffe[0x0]:isNaN(_0x31bffe[0x0])?_0x31bffe[0x0]:parseInt(_0x31bffe[0x0],0xa);}break;}else{}_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x6c8')]&&_0x2e8193['noop'][_0x12d109('0x6c8')][_0x12d109('0xcf6')]()==='outbound'&&_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0xe6d')][_0x12d109('0xcf6')]()==='outbounddial'&&(_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x1b8f')]=_0x2e8193[_0x12d109('0x27ca')]['phone']?_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x1a46')][_0x12d109('0x1a39')]('$')[0x0]:undefined,_0x2e8193[_0x12d109('0x27ca')]['callerId']=_0x2e8193[_0x12d109('0x27ca')][_0x12d109('0x514')]?'CALLERID(all)='+_0x2e8193['noop'][_0x12d109('0x514')]:undefined);_0x2e8193[_0x12d109('0x2c5')]=_0x369d63,_0x2e8193[_0x12d109('0x2023')]=_0x15547a;function _0x369d63(){var _0x16ff14=_0x12d109;_0x2e8193['errors']=[];var _0x4ad6bb=[];_0x2e8193['noop'][_0x16ff14('0x6c8')]&&_0x2e8193[_0x16ff14('0x27ca')]['type'][_0x16ff14('0xcf6')]()==='outbound'&&_0x2e8193['noop'][_0x16ff14('0xe6d')]===_0x16ff14('0x8da')&&(_0x2e8193[_0x16ff14('0x27ca')][_0x16ff14('0x1a46')]=_0x1eac46[_0x16ff14('0x888')]?(_0x2e8193[_0x16ff14('0x27ca')][_0x16ff14('0x1b8f')]||'')+_0x16ff14('0x117e')+_0x1eac46['cutdigits']+'}':(_0x2e8193['noop'][_0x16ff14('0x1b8f')]||'')+'${EXTEN}',_0x1eac46['recordingFormat']!==_0x16ff14('0x117')?_0x2e8193[_0x16ff14('0x27ca')][_0x16ff14('0x1b36')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x2e8193[_0x16ff14('0x27ca')]['options']+=_0x16ff14('0x266a')):_0x2e8193[_0x16ff14('0x27ca')][_0x16ff14('0x1b36')]=_0x2e8193['noop'][_0x16ff14('0x1b36')][_0x16ff14('0x170d')](_0x16ff14('0x266a'),''));if(_0x2e8193[_0x16ff14('0x27ca')][_0x16ff14('0xe6d')]&&_0x2e8193[_0x16ff14('0x27ca')][_0x16ff14('0xe6d')]===_0x16ff14('0x113b')){}else switch((_0x2e8193[_0x16ff14('0x27ca')]['app']||_0x2e8193[_0x16ff14('0x27ca')]['appType'])[_0x16ff14('0xcf6')]()){case'set':_0x2e8193[_0x16ff14('0x27ca')]['appdata']=_0x2e8193['noop'][_0x16ff14('0x25d6')]+'='+_0x2e8193['noop'][_0x16ff14('0x12f4')];break;case _0x16ff14('0x113b'):break;default:_0x4ad6bb[0x0]=_0x2e8193[_0x16ff14('0x27ca')]['value'],_0x2e8193[_0x16ff14('0x27ca')][_0x16ff14('0x124b')]=_0x4ad6bb[_0x16ff14('0x19c4')](',');}_0x15547a(_0x2e8193['noop']);}function _0x15547a(_0x3ba79a){var _0x35b928=_0x12d109;_0x49a990[_0x35b928('0x1120')](_0x3ba79a);}}const _0x12ad31=_0x2e87b3;_0x5683b6[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x66c'),_0x1a8446('0x26ac'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x5683b6(_0x13681b,_0x4d7b2c,_0x48f22c,_0xabae0a,_0x106409,_0x34f318,_0x3056a8,_0x5b7971){var _0x4faabb=_0x1a8446,_0x20b515=this;_0x20b515[_0x4faabb('0x7fc')]=_0x3056a8[_0x4faabb('0xacc')](),_0x20b515[_0x4faabb('0x4c6')]=[],_0x20b515[_0x4faabb('0x110a')]=_0x4faabb('0x78c')+(_0xabae0a[_0x4faabb('0xe6d')]||_0xabae0a['app'])[_0x4faabb('0x1d08')](),_0x20b515[_0x4faabb('0xe26')]=angular[_0x4faabb('0x20a')](_0xabae0a),_0x20b515['crudPermissions']=_0x5b7971,_0x20b515[_0x4faabb('0x9f0')]={};if(_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x124b')])switch(_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0xe6d')]?_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0xe6d')]['toLowerCase']():_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x9eb')][_0x4faabb('0xcf6')]()){case'custom':break;case'dialogflow':{var _0x692468=_0x20b515['queue'][_0x4faabb('0x124b')][_0x4faabb('0x1a39')](',');_0x20b515['queue']['key']=_0x692468[0x0],_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x1938')]=_0x692468[0x1],_0x20b515['queue']['welcomemessage']=_0x692468['slice'](0x2,_0x692468[_0x4faabb('0x2587')])['join'](',');}break;case _0x4faabb('0x3f5'):{var _0x22e855=_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x124b')][_0x4faabb('0x1a39')](',');_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0xc07')]=_0x22e855[0x0],_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x15f9')]=_0x22e855[0x1],_0x20b515[_0x4faabb('0xe26')]['lexregion']=_0x22e855[0x2],_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x18ee')]=_0x22e855[0x3],_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x273')]=_0x22e855[_0x4faabb('0x19aa')](0x4,_0x22e855[_0x4faabb('0x2587')])[_0x4faabb('0x19c4')](',');}break;case _0x4faabb('0x1b05'):{var _0x3a4a05=_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x124b')][_0x4faabb('0x1a39')](',');_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x11b6')]=isNaN(_0x3a4a05[0x0])?_0x3a4a05[0x0]:parseInt(_0x3a4a05[0x0],0xa),_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0xb37')]=_0x3a4a05['slice'](0x1,_0x3a4a05[_0x4faabb('0x2587')])['join'](',');}break;case _0x4faabb('0x1402'):_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0xb37')]=_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x124b')];break;case _0x4faabb('0x282c'):_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x25d6')]=_0x20b515['queue'][_0x4faabb('0x124b')][_0x4faabb('0x1a39')]('=')[0x0],_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x12f4')]=_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x124b')][_0x4faabb('0x1a39')]('=')[0x1];break;case _0x4faabb('0x2067'):_0x20b515[_0x4faabb('0xe26')]['project']=_0x20b515['queue'][_0x4faabb('0x124b')];break;default:{var _0x54e769=_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x124b')][_0x4faabb('0x1a39')](',');_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0xe26')]=_0x51538b()['isEmpty'](_0x54e769[0x0])?_0x54e769[0x0]:isNaN(_0x54e769[0x0])?_0x54e769[0x0]:parseInt(_0x54e769[0x0],0xa),_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x23c0')]=_0x51538b()[_0x4faabb('0x116b')](_0x54e769[0x1])?_0x54e769[0x1]:isNaN(_0x54e769[0x1])?_0x54e769[0x1]:parseInt(_0x54e769[0x1],0xa);}break;}else _0x20b515[_0x4faabb('0xe26')][_0x4faabb('0xe26')]=0x12c,_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x23c0')]=0x12c;_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x6c8')]&&_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x6c8')][_0x4faabb('0xcf6')]()===_0x4faabb('0x19d1')&&_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0xe6d')][_0x4faabb('0xcf6')]()===_0x4faabb('0x1e7f')&&(_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x1b8f')]=_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x1a46')]?_0x20b515[_0x4faabb('0xe26')]['phone'][_0x4faabb('0x1a39')]('$')[0x0]:undefined,_0x20b515[_0x4faabb('0xe26')]['callerId']=_0x20b515[_0x4faabb('0xe26')][_0x4faabb('0x514')]?_0x4faabb('0x23d8')+_0x20b515[_0x4faabb('0xe26')]['callerID']:undefined);_0x20b515[_0x4faabb('0x2c5')]=_0x82a0ed,_0x20b515[_0x4faabb('0x2023')]=_0x23789d,_0x3056a8[_0x4faabb('0x26e8')]('admin')?_0x34f318[_0x4faabb('0x48f')][_0x4faabb('0x2122')]({'fields':'id,name,type','sort':_0x4faabb('0x25d6'),'nolimit':_0x4faabb('0x1c5c')})[_0x4faabb('0x1dc2')][_0x4faabb('0xaa5')](function(_0x31016b){var _0x469aa3=_0x4faabb;_0x20b515[_0x469aa3('0x4d7')]=_0x31016b['rows']||[];})['catch'](function(_0x1640d6){var _0x43eaef=_0x4faabb;_0x48f22c[_0x43eaef('0x187f')]({'title':_0x1640d6[_0x43eaef('0x2fa')]?_0x43eaef('0x16c2')+_0x1640d6[_0x43eaef('0x2fa')]+_0x43eaef('0x169e')+_0x1640d6[_0x43eaef('0x24df')]:'SYSTEM:GET_QUEUES','msg':_0x1640d6[_0x43eaef('0x10fd')]?JSON[_0x43eaef('0xa48')](_0x1640d6[_0x43eaef('0x10fd')]):_0x1640d6['toString']()});}):_0x34f318[_0x4faabb('0x48f')][_0x4faabb('0x2122')]({'fields':_0x4faabb('0x21e2'),'sort':'name','nolimit':_0x4faabb('0x1c5c')})[_0x4faabb('0x1dc2')][_0x4faabb('0xaa5')](function(_0x5f7807){var _0x49c7d6=_0x4faabb;_0x20b515[_0x49c7d6('0x4d7')]=_0x5f7807[_0x49c7d6('0x580')]||[];})[_0x4faabb('0xaa5')](function(){var _0x5a87b7=_0x4faabb;return _0x34f318[_0x5a87b7('0x1a50')][_0x5a87b7('0x2122')]({'userProfileId':_0x20b515[_0x5a87b7('0x7fc')][_0x5a87b7('0x2168')],'sectionId':0x836})['$promise'];})[_0x4faabb('0xaa5')](function(_0x22bc04){var _0x2efcb9=_0x4faabb,_0x276633=_0x22bc04&&_0x22bc04[_0x2efcb9('0x580')]?_0x22bc04['rows'][0x0]:null;if(!_0x276633){var _0xfaec8=[],_0x17d7a9=null;_0x20b515['queue']&&(_0x17d7a9=_0x51538b()[_0x2efcb9('0xe9e')](_0x20b515['queues'],{'name':_0x20b515[_0x2efcb9('0xe26')][_0x2efcb9('0xe26')]}));for(var _0x245604=0x0;_0x245604<_0x20b515[_0x2efcb9('0x4d7')]['length'];_0x245604++){_0x17d7a9&&_0x20b515[_0x2efcb9('0x4d7')][_0x245604]['id']===_0x17d7a9['id']&&(_0x20b515['queues'][_0x245604][_0x2efcb9('0x12eb')]=![],_0xfaec8[_0x2efcb9('0x1599')](_0x20b515[_0x2efcb9('0x4d7')][_0x245604]));}_0x20b515['queues']=_0xfaec8;}else{if(!_0x276633[_0x2efcb9('0x26cc')])return _0x34f318['userProfileResource']['get']({'sectionId':_0x276633['id']})[_0x2efcb9('0x1dc2')]['then'](function(_0x4f8a95){var _0x2dc37e=_0x2efcb9,_0x3bee56=_0x51538b()[_0x2dc37e('0x1246')](_0x4f8a95[_0x2dc37e('0x580')],function(_0x1990d9){var _0x1f0136=_0x2dc37e;return _0x51538b()[_0x1f0136('0xe9e')](_0x20b515['queues'],{'id':_0x1990d9[_0x1f0136('0xbcd')]});}),_0x396f20=null;_0x20b515[_0x2dc37e('0xe26')]&&(_0x396f20=_0x51538b()[_0x2dc37e('0xe9e')](_0x20b515[_0x2dc37e('0x4d7')],{'name':_0x20b515[_0x2dc37e('0xe26')]['queue']}));if(_0x396f20&&!_0x51538b()[_0x2dc37e('0x2c2')](_0x3bee56,['id',_0x396f20['id']])){var _0x3afa1a=_0x51538b()[_0x2dc37e('0xe9e')](_0x20b515[_0x2dc37e('0x4d7')],{'id':_0x396f20['id']});_0x3afa1a[_0x2dc37e('0x12eb')]=![],_0x3bee56[_0x2dc37e('0x1599')](_0x3afa1a);}_0x20b515[_0x2dc37e('0x4d7')]=_0x3bee56;});}})[_0x4faabb('0x253d')](function(_0x3cb00e){var _0x14f8c9=_0x4faabb;_0x48f22c[_0x14f8c9('0x187f')]({'title':_0x3cb00e[_0x14f8c9('0x2fa')]?'API:'+_0x3cb00e[_0x14f8c9('0x2fa')]+'\x20-\x20'+_0x3cb00e[_0x14f8c9('0x24df')]:_0x14f8c9('0x278e'),'msg':_0x3cb00e[_0x14f8c9('0x10fd')]?JSON[_0x14f8c9('0xa48')](_0x3cb00e['data']):_0x3cb00e[_0x14f8c9('0x684')]()});});function _0x82a0ed(){var _0x35074a=_0x4faabb;_0x20b515['errors']=[];var _0x163bf4=[];_0x20b515['queue']['type']&&_0x20b515[_0x35074a('0xe26')][_0x35074a('0x6c8')][_0x35074a('0xcf6')]()===_0x35074a('0x19d1')&&_0x20b515[_0x35074a('0xe26')]['appType']===_0x35074a('0x8da')&&(_0x20b515['queue']['phone']=_0x106409[_0x35074a('0x888')]?(_0x20b515['queue'][_0x35074a('0x1b8f')]||'')+_0x35074a('0x117e')+_0x106409[_0x35074a('0x888')]+'}':(_0x20b515[_0x35074a('0xe26')][_0x35074a('0x1b8f')]||'')+_0x35074a('0x1f87'),_0x106409[_0x35074a('0x1e0f')]!=='none'?_0x20b515[_0x35074a('0xe26')][_0x35074a('0x1b36')]['indexOf'](_0x35074a('0x266a'))<0x0&&(_0x20b515[_0x35074a('0xe26')]['options']+=_0x35074a('0x266a')):_0x20b515[_0x35074a('0xe26')][_0x35074a('0x1b36')]=_0x20b515[_0x35074a('0xe26')][_0x35074a('0x1b36')][_0x35074a('0x170d')](_0x35074a('0x266a'),''));var _0x53e2c3=_0x51538b()[_0x35074a('0xe9e')](_0x20b515[_0x35074a('0x4d7')],{'name':_0x20b515[_0x35074a('0xe26')][_0x35074a('0xe26')]});_0x53e2c3&&(_0x20b515[_0x35074a('0xe26')][_0x51538b()[_0x35074a('0x1b56')]('whatsapp')+_0x35074a('0x2097')]=_0x53e2c3['id']);if(_0x20b515[_0x35074a('0xe26')][_0x35074a('0xe6d')]&&_0x20b515[_0x35074a('0xe26')][_0x35074a('0xe6d')]===_0x35074a('0x113b')){}else switch((_0x20b515[_0x35074a('0xe26')][_0x35074a('0x9eb')]||_0x20b515['queue']['appType'])['toLowerCase']()){case _0x35074a('0x282c'):_0x20b515['queue'][_0x35074a('0x124b')]=_0x20b515[_0x35074a('0xe26')][_0x35074a('0x25d6')]+'='+_0x20b515['queue'][_0x35074a('0x12f4')];break;case _0x35074a('0x113b'):break;default:_0x163bf4[0x0]=_0x20b515[_0x35074a('0xe26')]['queue'],_0x163bf4[0x1]=_0x20b515[_0x35074a('0xe26')][_0x35074a('0x23c0')],_0x20b515[_0x35074a('0xe26')]['appdata']=_0x163bf4['join'](',');}_0x23789d(_0x20b515[_0x35074a('0xe26')]);}function _0x23789d(_0x38a6e4){_0x13681b['hide'](_0x38a6e4);}}const _0x11f393=_0x5683b6;_0x4add86[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q','toasty',_0x1a8446('0x66c'),'whatsappAccount',_0x1a8446('0x157'),'Auth','crudPermissions'];function _0x4add86(_0x4d768a,_0x347653,_0x37cad6,_0x189b15,_0x53e8e6,_0x3dd38e,_0x47fdbb,_0x2ba55d){var _0xc7bbd6=_0x1a8446,_0x5442f9=this;_0x5442f9[_0xc7bbd6('0x7fc')]=_0x47fdbb[_0xc7bbd6('0xacc')](),_0x5442f9[_0xc7bbd6('0x4c6')]=[],_0x5442f9['title']=_0xc7bbd6('0x78c')+(_0x189b15[_0xc7bbd6('0xe6d')]||_0x189b15[_0xc7bbd6('0x9eb')])[_0xc7bbd6('0x1d08')](),_0x5442f9[_0xc7bbd6('0x5da')]=angular[_0xc7bbd6('0x20a')](_0x189b15),_0x5442f9[_0xc7bbd6('0xada')]=_0x2ba55d,_0x5442f9[_0xc7bbd6('0x9f0')]={};if(_0x5442f9[_0xc7bbd6('0x5da')]['appdata'])switch(_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0xe6d')]?_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0xe6d')]['toLowerCase']():_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x9eb')][_0xc7bbd6('0xcf6')]()){case _0xc7bbd6('0x113b'):break;case _0xc7bbd6('0x67c'):{var _0x299b7f=_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x124b')][_0xc7bbd6('0x1a39')](',');_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x24ec')]=_0x299b7f[0x0],_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x1938')]=_0x299b7f[0x1],_0x5442f9[_0xc7bbd6('0x5da')]['welcomemessage']=_0x299b7f[_0xc7bbd6('0x19aa')](0x2,_0x299b7f[_0xc7bbd6('0x2587')])[_0xc7bbd6('0x19c4')](',');}break;case'amazonlex':{var _0xce2c3a=_0x5442f9['system'][_0xc7bbd6('0x124b')][_0xc7bbd6('0x1a39')](',');_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0xc07')]=_0xce2c3a[0x0],_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x15f9')]=_0xce2c3a[0x1],_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0xa9a')]=_0xce2c3a[0x2],_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x18ee')]=_0xce2c3a[0x3],_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x273')]=_0xce2c3a['slice'](0x4,_0xce2c3a['length'])['join'](',');}break;case _0xc7bbd6('0x1b05'):{var _0x2f0ff5=_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x124b')]['split'](',');_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x11b6')]=isNaN(_0x2f0ff5[0x0])?_0x2f0ff5[0x0]:parseInt(_0x2f0ff5[0x0],0xa),_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0xb37')]=_0x2f0ff5[_0xc7bbd6('0x19aa')](0x1,_0x2f0ff5[_0xc7bbd6('0x2587')])[_0xc7bbd6('0x19c4')](',');}break;case'message':_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0xb37')]=_0x5442f9[_0xc7bbd6('0x5da')]['appdata'];break;case _0xc7bbd6('0x282c'):_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x25d6')]=_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x124b')]['split']('=')[0x0],_0x5442f9['system']['value']=_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x124b')][_0xc7bbd6('0x1a39')]('=')[0x1];break;case _0xc7bbd6('0x2067'):_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x24b9')]=_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x124b')];break;default:{var _0x46a4fb=_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x124b')]['split'](',');_0x5442f9[_0xc7bbd6('0x5da')]['command']=_0x51538b()['isEmpty'](_0x46a4fb[0x0])?_0x46a4fb[0x0]:isNaN(_0x46a4fb[0x0])?_0x46a4fb[0x0]:parseInt(_0x46a4fb[0x0],0xa),_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x14e7')]=_0x51538b()['isEmpty'](_0x46a4fb[0x1])?_0x46a4fb[0x1]:isNaN(_0x46a4fb[0x1])?_0x46a4fb[0x1]:parseInt(_0x46a4fb[0x1],0xa);}break;}else _0x5442f9[_0xc7bbd6('0x5da')]['variable']='';_0x5442f9['system']['type']&&_0x5442f9['system'][_0xc7bbd6('0x6c8')][_0xc7bbd6('0xcf6')]()===_0xc7bbd6('0x19d1')&&_0x5442f9[_0xc7bbd6('0x5da')]['appType'][_0xc7bbd6('0xcf6')]()===_0xc7bbd6('0x1e7f')&&(_0x5442f9['system'][_0xc7bbd6('0x1b8f')]=_0x5442f9['system'][_0xc7bbd6('0x1a46')]?_0x5442f9['system'][_0xc7bbd6('0x1a46')][_0xc7bbd6('0x1a39')]('$')[0x0]:undefined,_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0xeed')]=_0x5442f9[_0xc7bbd6('0x5da')][_0xc7bbd6('0x514')]?'CALLERID(all)='+_0x5442f9['system'][_0xc7bbd6('0x514')]:undefined);_0x5442f9['saveWhatsappAccountApp']=_0x5dea4a,_0x5442f9[_0xc7bbd6('0x2023')]=_0x1c0885,_0x47fdbb[_0xc7bbd6('0x26e8')](_0xc7bbd6('0x178b'))?_0x3dd38e[_0xc7bbd6('0x14e7')][_0xc7bbd6('0x2122')]({'fields':_0xc7bbd6('0x17fe'),'sort':'name','nolimit':_0xc7bbd6('0x1c5c')})[_0xc7bbd6('0x1dc2')][_0xc7bbd6('0xaa5')](function(_0x2c3b58){var _0x49cbfc=_0xc7bbd6;_0x5442f9[_0x49cbfc('0x147e')]=_0x2c3b58[_0x49cbfc('0x580')]||[];})[_0xc7bbd6('0x253d')](function(_0x3f6ed9){var _0x1c9635=_0xc7bbd6;_0x37cad6[_0x1c9635('0x187f')]({'title':_0x3f6ed9[_0x1c9635('0x2fa')]?_0x1c9635('0x16c2')+_0x3f6ed9['status']+_0x1c9635('0x169e')+_0x3f6ed9['statusText']:_0x1c9635('0x18e0'),'msg':_0x3f6ed9[_0x1c9635('0x10fd')]?JSON[_0x1c9635('0xa48')](_0x3f6ed9[_0x1c9635('0x10fd')]):_0x3f6ed9['toString']()});}):_0x3dd38e['variable'][_0xc7bbd6('0x2122')]({'fields':_0xc7bbd6('0x17fe'),'sort':'name','nolimit':_0xc7bbd6('0x1c5c')})['$promise']['then'](function(_0x4deaf4){var _0x2efa4d=_0xc7bbd6;_0x5442f9[_0x2efa4d('0x147e')]=_0x4deaf4[_0x2efa4d('0x580')]||[];})['then'](function(){var _0x23e837=_0xc7bbd6;return _0x3dd38e['userProfileSection']['get']({'userProfileId':_0x5442f9[_0x23e837('0x7fc')][_0x23e837('0x2168')],'sectionId':0x3f4})[_0x23e837('0x1dc2')];})[_0xc7bbd6('0xaa5')](function(_0x265b10){var _0x29e075=_0xc7bbd6,_0x3c089c=_0x265b10&&_0x265b10[_0x29e075('0x580')]?_0x265b10[_0x29e075('0x580')][0x0]:null;if(!_0x3c089c){var _0x146f33=[],_0x5f4144=null;_0x5442f9[_0x29e075('0x5da')]&&(_0x5f4144=_0x51538b()[_0x29e075('0xe9e')](_0x5442f9[_0x29e075('0x147e')],{'name':_0x5442f9['system'][_0x29e075('0x14e7')]}));for(var _0x50ad2d=0x0;_0x50ad2d<_0x5442f9[_0x29e075('0x147e')][_0x29e075('0x2587')];_0x50ad2d++){_0x5f4144&&_0x5442f9[_0x29e075('0x147e')][_0x50ad2d]['id']===_0x5f4144['id']&&(_0x5442f9['variables'][_0x50ad2d][_0x29e075('0x12eb')]=![],_0x146f33[_0x29e075('0x1599')](_0x5442f9[_0x29e075('0x147e')][_0x50ad2d]));}_0x5442f9['variables']=_0x146f33;}else{if(!_0x3c089c[_0x29e075('0x26cc')])return _0x3dd38e[_0x29e075('0x249a')][_0x29e075('0x2122')]({'sectionId':_0x3c089c['id']})[_0x29e075('0x1dc2')][_0x29e075('0xaa5')](function(_0x26e9ba){var _0x137274=_0x29e075,_0x26c6dc=_0x51538b()[_0x137274('0x1246')](_0x26e9ba['rows'],function(_0x27fb06){var _0x2b8b6b=_0x137274;return _0x51538b()[_0x2b8b6b('0xe9e')](_0x5442f9[_0x2b8b6b('0x147e')],{'id':_0x27fb06[_0x2b8b6b('0xbcd')]});}),_0x144460=null;_0x5442f9[_0x137274('0x5da')]&&(_0x144460=_0x51538b()['find'](_0x5442f9[_0x137274('0x147e')],{'name':_0x5442f9[_0x137274('0x5da')]['variable']}));if(_0x144460&&!_0x51538b()[_0x137274('0x2c2')](_0x26c6dc,['id',_0x144460['id']])){var _0xe67782=_0x51538b()[_0x137274('0xe9e')](_0x5442f9[_0x137274('0x147e')],{'id':_0x144460['id']});_0xe67782[_0x137274('0x12eb')]=![],_0x26c6dc[_0x137274('0x1599')](_0xe67782);}_0x5442f9[_0x137274('0x147e')]=_0x26c6dc;});}})[_0xc7bbd6('0x253d')](function(_0x56ebcf){var _0x3fe1ef=_0xc7bbd6;_0x37cad6[_0x3fe1ef('0x187f')]({'title':_0x56ebcf['status']?_0x3fe1ef('0x16c2')+_0x56ebcf[_0x3fe1ef('0x2fa')]+_0x3fe1ef('0x169e')+_0x56ebcf[_0x3fe1ef('0x24df')]:_0x3fe1ef('0xb4d'),'msg':_0x56ebcf[_0x3fe1ef('0x10fd')]?JSON['stringify'](_0x56ebcf[_0x3fe1ef('0x10fd')]):_0x56ebcf[_0x3fe1ef('0x684')]()});});function _0x5dea4a(){var _0x19fa7d=_0xc7bbd6;_0x5442f9[_0x19fa7d('0x4c6')]=[];var _0x5e9490=[];_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x6c8')]&&_0x5442f9['system']['type']['toLowerCase']()===_0x19fa7d('0x19d1')&&_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0xe6d')]===_0x19fa7d('0x8da')&&(_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x1a46')]=_0x53e8e6['cutdigits']?(_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x1b8f')]||'')+_0x19fa7d('0x117e')+_0x53e8e6[_0x19fa7d('0x888')]+'}':(_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x1b8f')]||'')+_0x19fa7d('0x1f87'),_0x53e8e6[_0x19fa7d('0x1e0f')]!=='none'?_0x5442f9['system'][_0x19fa7d('0x1b36')][_0x19fa7d('0x1f38')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x1b36')]+=_0x19fa7d('0x266a')):_0x5442f9[_0x19fa7d('0x5da')]['options']=_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x1b36')][_0x19fa7d('0x170d')](_0x19fa7d('0x266a'),''));if(_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0xe6d')]&&_0x5442f9['system'][_0x19fa7d('0xe6d')]===_0x19fa7d('0x113b')){}else switch((_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x9eb')]||_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0xe6d')])[_0x19fa7d('0xcf6')]()){case _0x19fa7d('0x282c'):_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x124b')]=_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x25d6')]+'='+_0x5442f9['system']['value'];break;case _0x19fa7d('0x113b'):break;default:_0x5e9490[0x0]=_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0xd7b')],_0x5e9490[0x1]=_0x5442f9[_0x19fa7d('0x5da')][_0x19fa7d('0x14e7')],_0x5442f9['system']['appdata']=_0x5e9490['join'](',');}_0x1c0885(_0x5442f9['system']);}function _0x1c0885(_0x1a44bd){var _0x1186bb=_0xc7bbd6;_0x4d768a[_0x1186bb('0x1120')](_0x1a44bd);}}const _0x52dcba=_0x4add86;_0x606df7[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),_0x1a8446('0x66c'),_0x1a8446('0x26ac'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x606df7(_0x3a66bf,_0x27971a,_0x2c94d9,_0x43d70b,_0x4c2cdd,_0x56f3ab,_0x17db69,_0x13b986){var _0x26127f=_0x1a8446,_0x156a9c=this;_0x156a9c['currentUser']=_0x17db69['getCurrentUser'](),_0x156a9c[_0x26127f('0x4c6')]=[],_0x156a9c[_0x26127f('0x110a')]=_0x26127f('0x78c')+(_0x43d70b[_0x26127f('0xe6d')]||_0x43d70b[_0x26127f('0x9eb')])[_0x26127f('0x1d08')](),_0x156a9c[_0x26127f('0x38f')]=angular[_0x26127f('0x20a')](_0x43d70b),_0x156a9c[_0x26127f('0xada')]=_0x13b986,_0x156a9c[_0x26127f('0x9f0')]={};if(_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x124b')])switch(_0x156a9c[_0x26127f('0x38f')][_0x26127f('0xe6d')]?_0x156a9c[_0x26127f('0x38f')][_0x26127f('0xe6d')][_0x26127f('0xcf6')]():_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x9eb')][_0x26127f('0xcf6')]()){case _0x26127f('0x113b'):break;case _0x26127f('0x67c'):{var _0x54696c=_0x156a9c[_0x26127f('0x38f')]['appdata'][_0x26127f('0x1a39')](',');_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x24ec')]=_0x54696c[0x0],_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x1938')]=_0x54696c[0x1],_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x273')]=_0x54696c[_0x26127f('0x19aa')](0x2,_0x54696c[_0x26127f('0x2587')])[_0x26127f('0x19c4')](',');}break;case _0x26127f('0x3f5'):{var _0x89a6fe=_0x156a9c['tag'][_0x26127f('0x124b')][_0x26127f('0x1a39')](',');_0x156a9c[_0x26127f('0x38f')][_0x26127f('0xc07')]=_0x89a6fe[0x0],_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x15f9')]=_0x89a6fe[0x1],_0x156a9c['tag'][_0x26127f('0xa9a')]=_0x89a6fe[0x2],_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x18ee')]=_0x89a6fe[0x3],_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x273')]=_0x89a6fe['slice'](0x4,_0x89a6fe['length'])[_0x26127f('0x19c4')](',');}break;case _0x26127f('0x1b05'):{var _0x12e8dd=_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x124b')][_0x26127f('0x1a39')](',');_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x11b6')]=isNaN(_0x12e8dd[0x0])?_0x12e8dd[0x0]:parseInt(_0x12e8dd[0x0],0xa),_0x156a9c[_0x26127f('0x38f')][_0x26127f('0xb37')]=_0x12e8dd[_0x26127f('0x19aa')](0x1,_0x12e8dd[_0x26127f('0x2587')])[_0x26127f('0x19c4')](',');}break;case _0x26127f('0x1402'):_0x156a9c[_0x26127f('0x38f')][_0x26127f('0xb37')]=_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x124b')];break;case _0x26127f('0x282c'):_0x156a9c[_0x26127f('0x38f')]['name']=_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x124b')][_0x26127f('0x1a39')]('=')[0x0],_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x12f4')]=_0x156a9c['tag'][_0x26127f('0x124b')][_0x26127f('0x1a39')]('=')[0x1];break;case _0x26127f('0x2067'):_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x24b9')]=_0x156a9c['tag'][_0x26127f('0x124b')];break;default:{var _0x33c165=_0x156a9c['tag'][_0x26127f('0x124b')]['split'](',');_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x38f')]=_0x51538b()[_0x26127f('0x116b')](_0x33c165[0x0])?_0x33c165[0x0]:isNaN(_0x33c165[0x0])?_0x33c165[0x0]:parseInt(_0x33c165[0x0],0xa);}break;}else{}_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x6c8')]&&_0x156a9c[_0x26127f('0x38f')][_0x26127f('0x6c8')][_0x26127f('0xcf6')]()===_0x26127f('0x19d1')&&_0x156a9c['tag'][_0x26127f('0xe6d')]['toLowerCase']()==='outbounddial'&&(_0x156a9c['tag']['prefix']=_0x156a9c['tag'][_0x26127f('0x1a46')]?_0x156a9c[_0x26127f('0x38f')]['phone']['split']('$')[0x0]:undefined,_0x156a9c[_0x26127f('0x38f')][_0x26127f('0xeed')]=_0x156a9c['tag'][_0x26127f('0x514')]?'CALLERID(all)='+_0x156a9c[_0x26127f('0x38f')]['callerID']:undefined);_0x156a9c[_0x26127f('0x2c5')]=_0x2822a6,_0x156a9c[_0x26127f('0x2023')]=_0x5f1759,_0x17db69['hasRole'](_0x26127f('0x178b'))?_0x56f3ab[_0x26127f('0x38f')][_0x26127f('0x2122')]({'fields':_0x26127f('0x17fe'),'sort':_0x26127f('0x25d6'),'nolimit':'true'})[_0x26127f('0x1dc2')][_0x26127f('0xaa5')](function(_0x3c62e2){var _0x4f6b4f=_0x26127f;_0x156a9c[_0x4f6b4f('0x523')]=_0x3c62e2[_0x4f6b4f('0x580')]||[];})[_0x26127f('0x253d')](function(_0x3fd55d){var _0x2795a6=_0x26127f;_0x2c94d9[_0x2795a6('0x187f')]({'title':_0x3fd55d[_0x2795a6('0x2fa')]?'API:'+_0x3fd55d[_0x2795a6('0x2fa')]+'\x20-\x20'+_0x3fd55d[_0x2795a6('0x24df')]:_0x2795a6('0x37c'),'msg':_0x3fd55d[_0x2795a6('0x10fd')]?JSON[_0x2795a6('0xa48')](_0x3fd55d[_0x2795a6('0x10fd')]):_0x3fd55d[_0x2795a6('0x684')]()});}):_0x56f3ab['tag'][_0x26127f('0x2122')]({'fields':'id,name','sort':_0x26127f('0x25d6'),'nolimit':_0x26127f('0x1c5c')})[_0x26127f('0x1dc2')][_0x26127f('0xaa5')](function(_0x793025){var _0xb851c8=_0x26127f;_0x156a9c[_0xb851c8('0x523')]=_0x793025['rows']||[];})['then'](function(){var _0x570f69=_0x26127f;return _0x56f3ab[_0x570f69('0x1a50')][_0x570f69('0x2122')]({'userProfileId':_0x156a9c[_0x570f69('0x7fc')][_0x570f69('0x2168')],'sectionId':0x3f0})[_0x570f69('0x1dc2')];})['then'](function(_0x4debc2){var _0x1d4337=_0x26127f,_0x390fb5=_0x4debc2&&_0x4debc2['rows']?_0x4debc2[_0x1d4337('0x580')][0x0]:null;if(!_0x390fb5){var _0x5d748e=[],_0x4a8c18=null;_0x156a9c['tag']&&(_0x4a8c18=_0x51538b()[_0x1d4337('0xe9e')](_0x156a9c[_0x1d4337('0x523')],{'name':_0x156a9c['tag'][_0x1d4337('0x38f')]}));for(var _0x3e707e=0x0;_0x3e707e<_0x156a9c[_0x1d4337('0x523')][_0x1d4337('0x2587')];_0x3e707e++){_0x4a8c18&&_0x156a9c[_0x1d4337('0x523')][_0x3e707e]['id']===_0x4a8c18['id']&&(_0x156a9c[_0x1d4337('0x523')][_0x3e707e][_0x1d4337('0x12eb')]=![],_0x5d748e['push'](_0x156a9c['tags'][_0x3e707e]));}_0x156a9c[_0x1d4337('0x523')]=_0x5d748e;}else{if(!_0x390fb5['autoAssociation'])return _0x56f3ab[_0x1d4337('0x249a')]['get']({'sectionId':_0x390fb5['id']})[_0x1d4337('0x1dc2')][_0x1d4337('0xaa5')](function(_0x195745){var _0x827063=_0x1d4337,_0x351e23=_0x51538b()[_0x827063('0x1246')](_0x195745[_0x827063('0x580')],function(_0x25359c){var _0x550183=_0x827063;return _0x51538b()[_0x550183('0xe9e')](_0x156a9c[_0x550183('0x523')],{'id':_0x25359c[_0x550183('0xbcd')]});}),_0x1a22ae=null;_0x156a9c['tag']&&(_0x1a22ae=_0x51538b()[_0x827063('0xe9e')](_0x156a9c['tags'],{'name':_0x156a9c[_0x827063('0x38f')]['tag']}));if(_0x1a22ae&&!_0x51538b()['some'](_0x351e23,['id',_0x1a22ae['id']])){var _0x5e27e1=_0x51538b()['find'](_0x156a9c[_0x827063('0x523')],{'id':_0x1a22ae['id']});_0x5e27e1['canSelect']=![],_0x351e23[_0x827063('0x1599')](_0x5e27e1);}_0x156a9c[_0x827063('0x523')]=_0x351e23;});}})[_0x26127f('0x253d')](function(_0xd2423d){var _0x33687d=_0x26127f;_0x2c94d9[_0x33687d('0x187f')]({'title':_0xd2423d[_0x33687d('0x2fa')]?_0x33687d('0x16c2')+_0xd2423d[_0x33687d('0x2fa')]+_0x33687d('0x169e')+_0xd2423d[_0x33687d('0x24df')]:_0x33687d('0x25e'),'msg':_0xd2423d[_0x33687d('0x10fd')]?JSON[_0x33687d('0xa48')](_0xd2423d[_0x33687d('0x10fd')]):_0xd2423d[_0x33687d('0x684')]()});});function _0x2822a6(){var _0x529ffe=_0x26127f;_0x156a9c[_0x529ffe('0x4c6')]=[];var _0x1294b4=[];_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x6c8')]&&_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x6c8')][_0x529ffe('0xcf6')]()===_0x529ffe('0x19d1')&&_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0xe6d')]===_0x529ffe('0x8da')&&(_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x1a46')]=_0x4c2cdd[_0x529ffe('0x888')]?(_0x156a9c[_0x529ffe('0x38f')]['prefix']||'')+_0x529ffe('0x117e')+_0x4c2cdd['cutdigits']+'}':(_0x156a9c['tag'][_0x529ffe('0x1b8f')]||'')+'${EXTEN}',_0x4c2cdd[_0x529ffe('0x1e0f')]!=='none'?_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x1b36')][_0x529ffe('0x1f38')](_0x529ffe('0x266a'))<0x0&&(_0x156a9c[_0x529ffe('0x38f')]['options']+='U(xcally-mixmonitor-context)'):_0x156a9c['tag'][_0x529ffe('0x1b36')]=_0x156a9c[_0x529ffe('0x38f')]['options'][_0x529ffe('0x170d')](_0x529ffe('0x266a'),''));var _0x1cd3f9=_0x51538b()[_0x529ffe('0xe9e')](_0x156a9c[_0x529ffe('0x523')],{'name':_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x38f')]});_0x1cd3f9&&(_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x2028')]=_0x1cd3f9['id']);if(_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0xe6d')]&&_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0xe6d')]==='custom'){}else switch((_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x9eb')]||_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0xe6d')])[_0x529ffe('0xcf6')]()){case'set':_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x124b')]=_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x25d6')]+'='+_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x12f4')];break;case _0x529ffe('0x113b'):break;default:_0x1294b4[0x0]=_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x38f')],_0x156a9c[_0x529ffe('0x38f')][_0x529ffe('0x124b')]=_0x1294b4['join'](',');}_0x5f1759(_0x156a9c[_0x529ffe('0x38f')]);}function _0x5f1759(_0x147a10){var _0x2fbcb2=_0x26127f;_0x3a66bf[_0x2fbcb2('0x1120')](_0x147a10);}}const _0x1d5f17=_0x606df7;_0x5df83e['$inject']=[_0x1a8446('0x95f'),_0x1a8446('0x51'),_0x1a8446('0x145b'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x186b'),_0x1a8446('0x2378'),'$document',_0x1a8446('0x2a4'),'api',_0x1a8446('0x1dfd')];function _0x5df83e(_0x269172,_0x2097b9,_0x1050cd,_0x197ced,_0x37e283,_0x53560b,_0x4a7236,_0x5e7377,_0x5ca80d,_0x12ff20,_0x33c290){var _0x309e61=_0x1a8446,_0x4634f2=this;_0x4634f2[_0x309e61('0x7fc')]=_0x33c290[_0x309e61('0xacc')](),_0x4634f2['whatsappAccount']={},_0x4634f2[_0x309e61('0xe4c')]={'count':0x0,'rows':[]},_0x4634f2['selectedWhatsappAccountInteractions']=[],_0x4634f2[_0x309e61('0xada')],_0x4634f2[_0x309e61('0x582')]={'read':_0x309e61('0x1ed9'),'closed':_0x309e61('0x1ed9'),'sort':_0x309e61('0xa19'),'includeAll':_0x309e61('0x1c5c'),'limit':0xa,'page':0x1},_0x4634f2[_0x309e61('0x2e')]=_0x2c8963,_0x4634f2['deleteConfirm']=_0x1d85e1,_0x4634f2[_0x309e61('0x20bb')]=_0x24325b,_0x4634f2[_0x309e61('0xe10')]=_0x597122,_0x4634f2[_0x309e61('0x101b')]=_0x13854b,_0x4634f2[_0x309e61('0x2d1')]=_0x52986d,_0x4634f2[_0x309e61('0x226e')]=_0x158d5c,_0x4634f2[_0x309e61('0x19e6')]=_0x2b034a,_0x4634f2['deleteWhatsappAccountInteraction']=_0x3b7687,_0x4634f2[_0x309e61('0x1904')]=_0x3b5808;function _0x2c8963(_0x5f03f0,_0x290064){var _0xd3eb48=_0x309e61;_0x4634f2[_0xd3eb48('0x26ac')]=_0x5f03f0,_0x4634f2[_0xd3eb48('0xada')]=typeof _0x290064!==_0xd3eb48('0x1574')?_0x290064:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4634f2[_0xd3eb48('0x582')][_0xd3eb48('0x1ab5')]=_0x4634f2[_0xd3eb48('0x26ac')]['id'],_0x4634f2[_0xd3eb48('0xd67')]={'fields':_0x3ba5be()},_0x2ae2b1();}function _0x2ae2b1(){var _0x5acb36=_0x309e61;return _0x12ff20[_0x5acb36('0x38f')][_0x5acb36('0x2122')]()['$promise'][_0x5acb36('0xaa5')](function(_0x487111){var _0x3c9d10=_0x5acb36;_0x4634f2[_0x3c9d10('0x523')]=_0x487111||{'count':0x0,'rows':[]};})[_0x5acb36('0xaa5')](function(){var _0x125965=_0x5acb36;_0x4634f2[_0x125965('0x168c')]=_0x3a98f5();});}function _0x3a98f5(){var _0x342e65=_0x309e61;return[{'name':_0x342e65('0x12f1'),'key':'createdAt','type':_0x342e65('0xb87'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x342e65('0x1cd2'),'key':'read','type':_0x342e65('0xbff'),'label':_0x342e65('0x1da2'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x342e65('0xdc4')},{'value':null,'translate':_0x342e65('0x20c4')}]},{'name':_0x342e65('0x26ae'),'key':_0x342e65('0x1cbd'),'type':_0x342e65('0xbff'),'label':_0x342e65('0x617'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x342e65('0x73b')},{'value':null,'translate':_0x342e65('0x20c4')}]},{'name':_0x342e65('0x521'),'key':_0x342e65('0x1037'),'type':_0x342e65('0xbff'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':'null','translate':_0x342e65('0x1a1c')},{'value':undefined,'translate':_0x342e65('0x20c4')}]},{'name':_0x342e65('0x4e7'),'key':_0x342e65('0x38f'),'type':_0x342e65('0x2468'),'label':'DASHBOARDS.SELECT_TAG','options':_0x4634f2[_0x342e65('0x523')][_0x342e65('0x580')],'placeholder':_0x342e65('0x1161')}];}function _0x3ba5be(){var _0x3ea9b9=_0x309e61;return[{'name':'Id','column':'id','type':_0x3ea9b9('0x219a')},{'name':'Contact','column':'Contact','type':_0x3ea9b9('0x7e6'),'options':{'searchFields':[_0x3ea9b9('0x24c1'),'lastName',_0x3ea9b9('0x1f69')],'route':{'model':_0x3ea9b9('0xdbd'),'action':_0x3ea9b9('0x2122'),'params':{'fields':_0x3ea9b9('0x14ba'),'Contact':_0x3ea9b9('0x1bfb'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x3ea9b9('0x716'),'column':_0x3ea9b9('0x2101'),'type':_0x3ea9b9('0xb37'),'options':{'excludedOperators':[_0x3ea9b9('0x221d'),_0x3ea9b9('0x13f7')]}},{'name':_0x3ea9b9('0x1e4'),'column':'plainBody','type':_0x3ea9b9('0xb37'),'options':{'excludedOperators':[_0x3ea9b9('0x221d'),'$ne']}},{'name':'Status','column':'closed','type':_0x3ea9b9('0xbff'),'values':[{'id':0x0,'translate':_0x3ea9b9('0x166e')},{'id':0x1,'translate':_0x3ea9b9('0x73b')}],'options':{'excludedOperators':[_0x3ea9b9('0x13f7')]}},{'name':'Agent','column':'User','type':_0x3ea9b9('0x7e6'),'options':{'table':'i','route':{'model':'user','action':_0x3ea9b9('0x2122'),'params':{'role':_0x3ea9b9('0xeff'),'fields':_0x3ea9b9('0x25ff'),'nolimit':!![]}},'searchFields':[_0x3ea9b9('0x18e5'),_0x3ea9b9('0x25d6')],'extraOperators':[_0x3ea9b9('0x2082')],'excludedOperators':['$ne']}},{'name':_0x3ea9b9('0x67f'),'column':_0x3ea9b9('0x4e7'),'type':_0x3ea9b9('0x2468'),'options':{'route':{'model':'tag','action':_0x3ea9b9('0x2122'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x3ea9b9('0x12f1'),'column':_0x3ea9b9('0x24a1'),'type':'date','options':{'excludedOperators':[_0x3ea9b9('0x13f7')]}},{'name':_0x3ea9b9('0x120b'),'column':'unreadMessages','type':_0x3ea9b9('0xbff'),'values':[{'id':0x1,'translate':_0x3ea9b9('0xdc4')},{'id':0x0,'translate':_0x3ea9b9('0x320')}],'options':{'excludedOperators':['$ne']}}];}function _0x158d5c(){var _0x6dc792=_0x309e61;_0x4a7236[_0x6dc792('0x1e6d')]({'controller':_0x6dc792('0x1848'),'controllerAs':'vm','templateUrl':_0x38b699,'parent':angular[_0x6dc792('0x1aa8')](_0x5e7377[_0x6dc792('0x54c')]),'clickOutsideToClose':![],'locals':{'fields':_0x4634f2['advancedSearch'][_0x6dc792('0x13a')],'color':undefined,'storagePath':_0x6dc792('0x5c4')},'fullscreen':!![]})['then'](function(_0x38564f){var _0x3f8994=_0x6dc792;_0x4634f2['query'][_0x3f8994('0x1785')]=_0x38564f===![]?undefined:_0x38564f;if(_0x4634f2['query'][_0x3f8994('0x1785')])_0x13854b();else _0x38564f===![]&&_0x13854b();})['catch'](function(_0x5d4110){var _0x4193bb=_0x6dc792;_0x5ca80d[_0x4193bb('0x187f')]({'title':'ERROR','msg':_0x5d4110[_0x4193bb('0x10fd')]?JSON['stringify'](_0x5d4110[_0x4193bb('0x10fd')]['message']):_0x5d4110['toString']()});});}function _0x24325b(_0x3a2782,_0x48b6e5,_0x239d0d){var _0x191bd3=_0x309e61;return _0x12ff20['whatsappInteraction'][_0x191bd3('0x1cf9')]({'id':_0x3a2782['id'],'exists':!![],'attachments':_0x239d0d})[_0x191bd3('0x1dc2')][_0x191bd3('0xaa5')](function(_0x34a3c1){var _0x19a853=_0x191bd3,_0x21da50=[_0x34a3c1[_0x19a853('0x1bf1')]],_0x33521a=_0x19a853('0x1d86')+_0x3a2782['id'],_0x3eb4d6=new Blob(_0x21da50,{'type':_0x34a3c1['type']});_0x33521a='whatsapp-interaction'+_0x3a2782['id']+'.zip';var _0x2244f6=window[_0x19a853('0x12aa')][_0x19a853('0x531')]('a');_0x2244f6[_0x19a853('0x107b')](_0x19a853('0x18ae'),URL['createObjectURL'](_0x3eb4d6)),_0x2244f6[_0x19a853('0x107b')]('download',_0x33521a),document[_0x19a853('0x54c')][_0x19a853('0x1315')](_0x2244f6),_0x2244f6[_0x19a853('0x467')]();})['catch'](function(_0x153016){var _0x59f195=_0x191bd3;if(_0x153016['data']&&_0x153016['data'][_0x59f195('0x4c6')]&&_0x153016[_0x59f195('0x10fd')][_0x59f195('0x4c6')]['length'])for(var _0x5e5f64=0x0;_0x5e5f64<_0x153016['data'][_0x59f195('0x4c6')][_0x59f195('0x2587')];_0x5e5f64+=0x1){_0x5ca80d[_0x59f195('0x187f')]({'title':_0x153016['data'][_0x59f195('0x4c6')][_0x5e5f64][_0x59f195('0x6c8')],'msg':_0x153016['data'][_0x59f195('0x4c6')][_0x5e5f64][_0x59f195('0x1402')]});}else _0x5ca80d[_0x59f195('0x187f')]({'title':_0x153016[_0x59f195('0x2fa')]?_0x59f195('0x16c2')+_0x153016[_0x59f195('0x2fa')]+_0x59f195('0x169e')+_0x153016[_0x59f195('0x24df')]:_0x59f195('0x1739'),'msg':_0x153016[_0x59f195('0x10fd')]?JSON[_0x59f195('0xa48')](_0x153016[_0x59f195('0x10fd')]['message']):_0x153016[_0x59f195('0x684')]()});});}function _0x1d85e1(_0x2e893c,_0x7c6308){var _0x8eda46=_0x309e61,_0x294750=_0x4a7236['confirm']()['title'](_0x8eda46('0x625'))[_0x8eda46('0x102e')](_0x8eda46('0x389')+(_0x2e893c[_0x8eda46('0x25d6')]||_0x2e893c['id']&&_0x51538b()[_0x8eda46('0x1791')](_0x8eda46('0x11a4'))+_0x2e893c['id']||_0x8eda46('0x1d86'))+_0x8eda46('0x697')+_0x8eda46('0x210d'))['ariaLabel'](_0x8eda46('0x22ae'))[_0x8eda46('0x116d')](_0x7c6308)['ok']('OK')[_0x8eda46('0x2030')]('CANCEL');_0x4a7236['show'](_0x294750)[_0x8eda46('0xaa5')](function(){_0x3b7687(_0x2e893c);},function(){var _0x117a96=_0x8eda46;console[_0x117a96('0x18d5')](_0x117a96('0x2410'));});}function _0x597122(_0x3b557e){var _0x156265=_0x309e61;_0x4634f2[_0x156265('0xe4c')]=_0x3b557e||{'count':0x0,'rows':[]};for(var _0x4ecd8a=0x0;_0x4ecd8a<_0x4634f2[_0x156265('0xe4c')][_0x156265('0x580')][_0x156265('0x2587')];_0x4ecd8a+=0x1){var _0x432a73=_0x4634f2[_0x156265('0xe4c')][_0x156265('0x580')][_0x4ecd8a];_0x498ea5(_0x432a73),_0x432a73[_0x156265('0x40')][_0x156265('0x25d6')]=_0x1a523c(_0x432a73);}}function _0x13854b(){var _0x30d649=_0x309e61;_0x4634f2[_0x30d649('0x582')][_0x30d649('0x8b1')]=(_0x4634f2[_0x30d649('0x582')][_0x30d649('0x41')]-0x1)*_0x4634f2[_0x30d649('0x582')][_0x30d649('0xf4d')],_0x4634f2[_0x30d649('0x159a')]=_0x12ff20['whatsappInteraction'][_0x30d649('0x2122')](_0x4634f2[_0x30d649('0x582')],_0x597122)[_0x30d649('0x1dc2')];}function _0x52986d(_0x3adad5,_0x6df562){var _0x3356c1=_0x309e61;_0x4a7236[_0x3356c1('0x1e6d')]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x451de2,'parent':angular[_0x3356c1('0x1aa8')](_0x5e7377[_0x3356c1('0x54c')]),'targetEvent':_0x3adad5,'clickOutsideToClose':!![],'onShowing':function _0x2e59eb(_0x45b4bf){var _0x181ffd=_0x3356c1;_0x45b4bf['vm'][_0x181ffd('0x2e')]({'id':0x1,'channel':_0x181ffd('0x220d'),'interaction':_0x6df562,'spy':!![]},_0x2097b9[_0x181ffd('0x24a3')]['vm'][_0x181ffd('0x143f')]);}});}function _0x3b7687(_0x427757){var _0x386337=_0x309e61;_0x12ff20[_0x386337('0x2732')][_0x386337('0x926')]({'id':_0x427757['id']})['$promise'][_0x386337('0xaa5')](function(){var _0x2dfd56=_0x386337;_0x51538b()['remove'](_0x4634f2[_0x2dfd56('0xe4c')]['rows'],{'id':_0x427757['id']}),_0x4634f2['whatsappAccountInteractions'][_0x2dfd56('0xd15')]-=0x1,!_0x4634f2[_0x2dfd56('0xe4c')][_0x2dfd56('0x580')][_0x2dfd56('0x2587')]&&_0x13854b(),_0x5ca80d[_0x2dfd56('0xe10')]({'title':_0x2dfd56('0xd35'),'msg':_0x427757[_0x2dfd56('0x25d6')]?_0x427757[_0x2dfd56('0x25d6')]+_0x2dfd56('0xcd9'):''});})[_0x386337('0x253d')](function(_0x330eeb){var _0x5205b0=_0x386337;if(_0x330eeb[_0x5205b0('0x10fd')]&&_0x330eeb[_0x5205b0('0x10fd')][_0x5205b0('0x4c6')]&&_0x330eeb[_0x5205b0('0x10fd')]['errors'][_0x5205b0('0x2587')]){_0x4634f2[_0x5205b0('0x4c6')]=_0x330eeb[_0x5205b0('0x10fd')]['errors']||[{'message':_0x330eeb[_0x5205b0('0x684')](),'type':_0x5205b0('0x1c94')}];for(var _0x2425a9=0x0;_0x2425a9<_0x330eeb[_0x5205b0('0x10fd')][_0x5205b0('0x4c6')]['length'];_0x2425a9++){_0x5ca80d['error']({'title':_0x330eeb[_0x5205b0('0x10fd')][_0x5205b0('0x4c6')][_0x2425a9]['type'],'msg':_0x330eeb[_0x5205b0('0x10fd')]['errors'][_0x2425a9][_0x5205b0('0x1402')]});}}else _0x5ca80d[_0x5205b0('0x187f')]({'title':_0x330eeb['status']?'API:'+_0x330eeb[_0x5205b0('0x2fa')]+_0x5205b0('0x169e')+_0x330eeb[_0x5205b0('0x24df')]:_0x5205b0('0x1c94'),'msg':_0x330eeb[_0x5205b0('0x10fd')]?JSON['stringify'](_0x330eeb[_0x5205b0('0x10fd')][_0x5205b0('0x1402')]):_0x330eeb['message']||_0x330eeb[_0x5205b0('0x684')]()});});}function _0x2b034a(){var _0x4af19b=_0x309e61,_0xb38347=angular[_0x4af19b('0x20a')](_0x4634f2[_0x4af19b('0xdb5')]);return _0x4634f2[_0x4af19b('0xdb5')]=[],_0xb38347;}function _0x3b5808(_0x114f77){var _0x4c1810=_0x309e61,_0x530e7c=_0x4a7236[_0x4c1810('0x281e')]()[_0x4c1810('0x110a')](_0x4c1810('0x8e7'))[_0x4c1810('0x102e')](_0x4c1810('0x389')+_0x4634f2[_0x4c1810('0xdb5')]['length']+'\x20selected
'+_0x4c1810('0x210d'))[_0x4c1810('0x5b5')](_0x4c1810('0x1d8c'))['targetEvent'](_0x114f77)['ok']('OK')['cancel'](_0x4c1810('0x2410'));_0x4a7236[_0x4c1810('0x1e6d')](_0x530e7c)[_0x4c1810('0xaa5')](function(){var _0x2b9f73=_0x4c1810;_0x4634f2[_0x2b9f73('0xdb5')][_0x2b9f73('0x15b5')](function(_0x1084b8){_0x3b7687(_0x1084b8);}),_0x4634f2[_0x2b9f73('0xdb5')]=[];});}function _0x498ea5(_0x36f124){var _0x34acde=_0x309e61;_0x36f124[_0x34acde('0x1dc')]?_0x36f124['contactName']=(_0x36f124[_0x34acde('0x1dc')][_0x34acde('0x24c1')]||'')+'\x20'+(_0x36f124[_0x34acde('0x1dc')][_0x34acde('0x351')]||''):_0x36f124[_0x34acde('0x4e0')]=_0x37e283[_0x34acde('0x213f')](_0x34acde('0x22f7'));}function _0x1a523c(_0x2de9e1){var _0x262bd8=_0x309e61;if(_0x2de9e1[_0x262bd8('0x1037')])return _0x2de9e1[_0x262bd8('0x1037')]===_0x4634f2[_0x262bd8('0x7fc')]['id']?_0x37e283['instant'](_0x262bd8('0x1855')):_0x2de9e1[_0x262bd8('0x40')][_0x262bd8('0x18e5')]+'\x20<'+_0x2de9e1[_0x262bd8('0x40')][_0x262bd8('0x1b0d')]+'>';return _0x37e283['instant'](_0x262bd8('0x1a1c'));}var _0x53562c=!![],_0x1f6bfe=0x1;_0x2097b9[_0x309e61('0x1ccf')](_0x309e61('0x74c'),function(_0x3d555f,_0x495365){var _0x1654e6=_0x309e61;_0x53562c?_0x53560b(function(){_0x53562c=![];}):(!_0x495365&&(_0x1f6bfe=_0x4634f2[_0x1654e6('0x582')][_0x1654e6('0x41')]),_0x3d555f!==_0x495365&&(_0x4634f2[_0x1654e6('0x582')][_0x1654e6('0x41')]=0x1),!_0x3d555f&&(_0x4634f2[_0x1654e6('0x582')][_0x1654e6('0x41')]=_0x1f6bfe),_0x13854b());});}const _0x8d5213=_0x5df83e,_0x389613=_0x4fb511['p']+_0x1a8446('0x59e');_0x8f6dc4['$inject']=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),_0x1a8446('0x1202'),_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x26ac'),_0x1a8446('0x1a50')];function _0x8f6dc4(_0x2a5ec6,_0x4ba4c1,_0x184736,_0x31940c,_0x23a90f,_0x287d92,_0x490c17,_0x1d7593,_0x5f095e,_0xe42549,_0xf140f,_0x415c96){var _0x254ca2=_0x1a8446,_0x20dfad=this;_0x20dfad['currentUser']=_0xe42549['getCurrentUser'](),_0x20dfad['license']=_0x287d92,_0x20dfad[_0x254ca2('0x143f')]=_0x490c17,_0x20dfad[_0x254ca2('0x1d53')]=_0x20dfad['setting'][_0x254ca2('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20dfad[_0x254ca2('0x18cc')]=_0x4ba4c1[_0x254ca2('0x1cc2')]()+_0x254ca2('0x356')+_0x4ba4c1[_0x254ca2('0x160c')](),_0x20dfad['whatsappAccount']=_0xf140f||_0x2a5ec6[_0x254ca2('0x25cf')][_0x254ca2('0x26ac')]||{},_0x20dfad[_0x254ca2('0x1a50')]=_0x415c96&&_0x415c96['count']==0x1?_0x415c96[_0x254ca2('0x580')][0x0]:null,_0x20dfad[_0x254ca2('0xada')]=_0xe42549['parseCrudPermissions'](_0x20dfad[_0x254ca2('0x1a50')]?_0x20dfad[_0x254ca2('0x1a50')]['crudPermissions']:null),_0x20dfad['hasModulePermissions']={},_0x20dfad['selectedTab']=_0x2a5ec6[_0x254ca2('0x25cf')][_0x254ca2('0x25c2')]||0x0,_0x20dfad[_0x254ca2('0x16a5')]=_0x3413ab,_0x20dfad[_0x254ca2('0xc10')]=_0x5f095e[_0x254ca2('0x3a1')],_0x20dfad[_0x254ca2('0xeee')]=_0x336794,_0x20dfad[_0x254ca2('0x2156')]=_0x17ffba,_0xe42549[_0x254ca2('0x26e8')](_0x254ca2('0x178b'))?_0x1d7593[_0x254ca2('0x26b4')][_0x254ca2('0x2122')]({'fields':_0x254ca2('0x17fe'),'sort':'name'})[_0x254ca2('0x1dc2')]['then'](function(_0x437f06){var _0x3d8242=_0x254ca2;_0x20dfad[_0x3d8242('0x1126')]=_0x437f06[_0x3d8242('0x580')]||[];})['catch'](function(_0x261b10){var _0x3773a8=_0x254ca2;_0x5f095e[_0x3773a8('0x187f')]({'title':_0x261b10[_0x3773a8('0x2fa')]?_0x3773a8('0x16c2')+_0x261b10[_0x3773a8('0x2fa')]+_0x3773a8('0x169e')+_0x261b10[_0x3773a8('0x24df')]:_0x3773a8('0x1adf'),'msg':_0x261b10[_0x3773a8('0x10fd')]?JSON[_0x3773a8('0xa48')](_0x261b10[_0x3773a8('0x10fd')]):_0x261b10[_0x3773a8('0x684')]()});}):_0x1d7593[_0x254ca2('0x26b4')][_0x254ca2('0x2122')]({'fields':_0x254ca2('0x17fe'),'sort':_0x254ca2('0x25d6')})[_0x254ca2('0x1dc2')]['then'](function(_0x345d8e){var _0x50fd9a=_0x254ca2;_0x20dfad['lists']=_0x345d8e[_0x50fd9a('0x580')]||[];})[_0x254ca2('0xaa5')](function(){var _0x398e08=_0x254ca2;return _0x1d7593[_0x398e08('0x1a50')][_0x398e08('0x2122')]({'userProfileId':_0x20dfad[_0x398e08('0x7fc')][_0x398e08('0x2168')],'sectionId':0x12d})[_0x398e08('0x1dc2')];})['then'](function(_0xbb39f7){var _0x371a86=_0x254ca2,_0x4e8a69=_0xbb39f7&&_0xbb39f7['rows']?_0xbb39f7[_0x371a86('0x580')][0x0]:null;if(!_0x4e8a69){var _0x3a96ae=[],_0xc935b8=null;_0x20dfad[_0x371a86('0x26ac')]&&(_0xc935b8=_0x51538b()[_0x371a86('0xe9e')](_0x20dfad[_0x371a86('0x1126')],{'id':Number(_0x20dfad[_0x371a86('0x26ac')]['ListId'])}));for(var _0x137503=0x0;_0x137503<_0x20dfad[_0x371a86('0x1126')][_0x371a86('0x2587')];_0x137503++){_0xc935b8&&_0x20dfad[_0x371a86('0x1126')][_0x137503]['id']===_0xc935b8['id']&&(_0x20dfad['lists'][_0x137503]['canSelect']=![],_0x3a96ae[_0x371a86('0x1599')](_0x20dfad[_0x371a86('0x1126')][_0x137503]));}_0x20dfad[_0x371a86('0x1126')]=_0x3a96ae;}else{if(!_0x4e8a69[_0x371a86('0x26cc')])return _0x1d7593[_0x371a86('0x249a')][_0x371a86('0x2122')]({'sectionId':_0x4e8a69['id']})['$promise'][_0x371a86('0xaa5')](function(_0x1dac79){var _0x57d1dd=_0x371a86,_0x4507ce=_0x51538b()[_0x57d1dd('0x1246')](_0x1dac79['rows'],function(_0x42bcbc){var _0x490053=_0x57d1dd;return _0x51538b()[_0x490053('0xe9e')](_0x20dfad[_0x490053('0x1126')],{'id':_0x42bcbc[_0x490053('0xbcd')]});}),_0x4aed60=null;_0x20dfad[_0x57d1dd('0x26ac')]&&(_0x4aed60=_0x51538b()[_0x57d1dd('0xe9e')](_0x20dfad['lists'],{'id':Number(_0x20dfad[_0x57d1dd('0x26ac')][_0x57d1dd('0xee0')])}));if(_0x4aed60&&!_0x51538b()[_0x57d1dd('0x2c2')](_0x4507ce,['id',_0x4aed60['id']])){var _0x230bba=_0x51538b()['find'](_0x20dfad[_0x57d1dd('0x1126')],{'id':_0x4aed60['id']});_0x230bba[_0x57d1dd('0x12eb')]=![],_0x4507ce[_0x57d1dd('0x1599')](_0x230bba);}_0x20dfad[_0x57d1dd('0x1126')]=_0x4507ce;});}})[_0x254ca2('0x253d')](function(_0x1a805a){var _0x5101c1=_0x254ca2;_0x5f095e[_0x5101c1('0x187f')]({'title':_0x1a805a['status']?_0x5101c1('0x16c2')+_0x1a805a[_0x5101c1('0x2fa')]+_0x5101c1('0x169e')+_0x1a805a[_0x5101c1('0x24df')]:_0x5101c1('0x177f'),'msg':_0x1a805a['data']?JSON[_0x5101c1('0xa48')](_0x1a805a[_0x5101c1('0x10fd')]):_0x1a805a[_0x5101c1('0x684')]()});}),_0xe42549[_0x254ca2('0x26e8')](_0x254ca2('0x178b'))?_0x1d7593[_0x254ca2('0x167c')]['get']({'fields':_0x254ca2('0xb22'),'sort':_0x254ca2('0x25d6'),'nolimit':_0x254ca2('0x1c5c')})[_0x254ca2('0x1dc2')][_0x254ca2('0xaa5')](function(_0x2dee75){var _0x39f5f5=_0x254ca2;_0x20dfad[_0x39f5f5('0x2457')]=_0x2dee75[_0x39f5f5('0x580')]||[];})[_0x254ca2('0x253d')](function(_0x36168b){var _0x54436a=_0x254ca2;_0x5f095e[_0x54436a('0x187f')]({'title':_0x36168b[_0x54436a('0x2fa')]?_0x54436a('0x16c2')+_0x36168b[_0x54436a('0x2fa')]+'\x20-\x20'+_0x36168b['statusText']:_0x54436a('0xc8'),'msg':_0x36168b[_0x54436a('0x10fd')]?JSON[_0x54436a('0xa48')](_0x36168b['data']):_0x36168b[_0x54436a('0x684')]()});}):_0x1d7593[_0x254ca2('0x167c')][_0x254ca2('0x2122')]({'fields':'name,id','sort':'name','nolimit':_0x254ca2('0x1c5c')})[_0x254ca2('0x1dc2')][_0x254ca2('0xaa5')](function(_0x1c1650){var _0x51b406=_0x254ca2;_0x20dfad[_0x51b406('0x2457')]=_0x1c1650[_0x51b406('0x580')]||[];})[_0x254ca2('0xaa5')](function(){var _0x97e947=_0x254ca2;return _0x1d7593[_0x97e947('0x1a50')][_0x97e947('0x2122')]({'userProfileId':_0x20dfad[_0x97e947('0x7fc')][_0x97e947('0x2168')],'sectionId':0x3ed})[_0x97e947('0x1dc2')];})[_0x254ca2('0xaa5')](function(_0x484bf3){var _0x5821f9=_0x254ca2,_0x1c613f=_0x484bf3&&_0x484bf3[_0x5821f9('0x580')]?_0x484bf3['rows'][0x0]:null;if(!_0x1c613f)_0x20dfad['pauses']=[];else{if(!_0x1c613f['autoAssociation'])return _0x1d7593[_0x5821f9('0x249a')][_0x5821f9('0x2122')]({'sectionId':_0x1c613f['id']})[_0x5821f9('0x1dc2')][_0x5821f9('0xaa5')](function(_0x26be85){var _0xcdf70e=_0x5821f9,_0x2afb55=_0x51538b()[_0xcdf70e('0x1246')](_0x26be85[_0xcdf70e('0x580')],function(_0xe913b8){var _0x2749b0=_0xcdf70e;return _0x51538b()[_0x2749b0('0xe9e')](_0x20dfad[_0x2749b0('0x2457')],{'id':_0xe913b8[_0x2749b0('0xbcd')]});});_0x20dfad[_0xcdf70e('0x2457')][_0xcdf70e('0x15b5')](function(_0x4bc32d){var _0x48489e=_0xcdf70e;!_0x51538b()['some'](_0x2afb55,['id',_0x4bc32d['id']])&&(_0x4bc32d[_0x48489e('0x12eb')]=![]),_0x2afb55[_0x48489e('0x1599')](_0x4bc32d);}),_0x20dfad[_0xcdf70e('0x2457')]=_0x2afb55;});}})[_0x254ca2('0x253d')](function(_0x417127){var _0x29810e=_0x254ca2;_0x5f095e[_0x29810e('0x187f')]({'title':_0x417127[_0x29810e('0x2fa')]?'API:'+_0x417127[_0x29810e('0x2fa')]+_0x29810e('0x169e')+_0x417127[_0x29810e('0x24df')]:_0x29810e('0xe71'),'msg':_0x417127[_0x29810e('0x10fd')]?JSON[_0x29810e('0xa48')](_0x417127[_0x29810e('0x10fd')]):_0x417127['toString']()});});function _0x3413ab(_0x371512,_0x54f4a2){var _0x1004ac=_0x254ca2;_0x184736[_0x1004ac('0x1e6d')]({'controller':_0x1004ac('0x25ef'),'controllerAs':'vm','templateUrl':_0x389613,'parent':angular[_0x1004ac('0x1aa8')](_0x31940c[_0x1004ac('0x54c')]),'targetEvent':_0x54f4a2,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x371512,'whatsappAccounts':_0x20dfad[_0x1004ac('0x2613')]?_0x20dfad[_0x1004ac('0x2613')]['rows']:[],'crudPermissions':_0x20dfad[_0x1004ac('0xada')],'realtime':![]}});}function _0x336794(){_0x2a5ec6['go']('app.whatsapp.whatsappAccounts',{},{'reload':'app.whatsapp.whatsappAccounts'});}function _0x17ffba(){var _0x484f18=_0x254ca2;_0x1d7593[_0x484f18('0x26ac')][_0x484f18('0x264e')]({'id':_0x20dfad[_0x484f18('0x26ac')]['id']},_0x20dfad[_0x484f18('0x26ac')])[_0x484f18('0x1dc2')]['then'](function(){var _0x2fdeda=_0x484f18;_0x5f095e['success']({'title':_0x2fdeda('0x268f'),'msg':_0x20dfad[_0x2fdeda('0x26ac')][_0x2fdeda('0x25d6')]?_0x20dfad['whatsappAccount']['name']+_0x2fdeda('0x1734'):''});})[_0x484f18('0x253d')](function(_0x430794){var _0x4e04fa=_0x484f18;_0x5f095e[_0x4e04fa('0x187f')]({'title':_0x430794[_0x4e04fa('0x2fa')]?'API:'+_0x430794[_0x4e04fa('0x2fa')]+'\x20-\x20'+_0x430794[_0x4e04fa('0x24df')]:_0x4e04fa('0x1c94'),'msg':_0x430794[_0x4e04fa('0x10fd')]?JSON['stringify'](_0x430794[_0x4e04fa('0x10fd')]):_0x430794[_0x4e04fa('0x684')]()});});}}const _0x4d5f54=_0x8f6dc4,_0x259f88=_0x4fb511['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html/dialog-[chunkhash].html';_0x29d041[_0x1a8446('0x1e33')]=[_0x1a8446('0x95f'),_0x1a8446('0x51'),'$state','$q',_0x1a8446('0xcb3'),'$timeout',_0x1a8446('0x2378'),'$document',_0x1a8446('0x2a4'),_0x1a8446('0x157'),'Auth'];function _0x29d041(_0x7d491b,_0x28c350,_0x41d262,_0x23af9b,_0x5868f3,_0x3d4634,_0xa911ea,_0x37c321,_0x171196,_0x141cec,_0x54802f){var _0xb0d44a=_0x1a8446,_0x482b7b=this;_0x482b7b['currentUser']=_0x54802f[_0xb0d44a('0xacc')](),_0x482b7b['whatsappAccount']={},_0x482b7b[_0xb0d44a('0x1d19')]={'count':0x0,'rows':[]},_0x482b7b['selectedWhatsappAccountWhatsappCannedAnswers']=[],_0x482b7b[_0xb0d44a('0xada')],_0x482b7b[_0xb0d44a('0x582')]={'fields':_0xb0d44a('0x22e7'),'limit':0xa,'page':0x1},_0x482b7b[_0xb0d44a('0x2e')]=_0x2eaf30,_0x482b7b['deleteConfirm']=_0x5828a3,_0x482b7b[_0xb0d44a('0xe10')]=_0x5bdabe,_0x482b7b[_0xb0d44a('0x1ea0')]=_0x2cafcc,_0x482b7b[_0xb0d44a('0x193f')]=_0x5508d9,_0x482b7b[_0xb0d44a('0x2850')]=_0x244474,_0x482b7b[_0xb0d44a('0x265e')]=_0x2ce85c,_0x482b7b['deleteSelectedWhatsappAccountWhatsappCannedAnswers']=_0x40f5d8;function _0x2eaf30(_0x41ecfe,_0x20649d){var _0x51eaad=_0xb0d44a;_0x482b7b['whatsappAccount']=_0x41ecfe,_0x482b7b[_0x51eaad('0xada')]=typeof _0x20649d!==_0x51eaad('0x1574')?_0x20649d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x482b7b[_0x51eaad('0x582')][_0x51eaad('0x1ab5')]=_0x482b7b[_0x51eaad('0x26ac')]['id'],_0x482b7b[_0x51eaad('0x582')]['id']=_0x482b7b[_0x51eaad('0x26ac')]['id'],_0x2cafcc();}function _0x5828a3(_0xc248d9,_0x164659){var _0x440a6a=_0xb0d44a,_0xc825dd=_0xa911ea[_0x440a6a('0x281e')]()[_0x440a6a('0x110a')](_0x440a6a('0x1b46'))['htmlContent'](_0x440a6a('0x389')+(_0xc248d9['name']||_0xc248d9['id']&&_0x51538b()[_0x440a6a('0x1791')](_0x440a6a('0x147f'))+_0xc248d9['id']||_0x440a6a('0xa70'))+_0x440a6a('0x697')+_0x440a6a('0x210d'))[_0x440a6a('0x5b5')]('delete\x20whatsappCannedAnswer')['targetEvent'](_0x164659)['ok']('OK')[_0x440a6a('0x2030')]('CANCEL');_0xa911ea[_0x440a6a('0x1e6d')](_0xc825dd)['then'](function(){_0x2ce85c(_0xc248d9);},function(){var _0x582d49=_0x440a6a;console[_0x582d49('0x18d5')]('CANCEL');});}function _0x5bdabe(_0x15a76a){_0x482b7b['whatsappAccountWhatsappCannedAnswers']=_0x15a76a||{'count':0x0,'rows':[]};}function _0x2cafcc(){var _0x5742f2=_0xb0d44a;_0x482b7b[_0x5742f2('0x582')][_0x5742f2('0x8b1')]=(_0x482b7b['query'][_0x5742f2('0x41')]-0x1)*_0x482b7b[_0x5742f2('0x582')][_0x5742f2('0xf4d')],_0x482b7b[_0x5742f2('0x159a')]=_0x141cec['whatsappAccount']['getAnswers'](_0x482b7b['query'],_0x5bdabe)[_0x5742f2('0x1dc2')];}function _0x5508d9(_0x5bf6bc,_0x5b1c8e){var _0x5220e8=_0xb0d44a;_0xa911ea['show']({'controller':'CreateOrEditWhatsappCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x259f88,'parent':angular[_0x5220e8('0x1aa8')](_0x37c321[_0x5220e8('0x54c')]),'targetEvent':_0x5bf6bc,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x482b7b[_0x5220e8('0x26ac')],'whatsappCannedAnswer':_0x5b1c8e,'whatsappCannedAnswers':_0x482b7b[_0x5220e8('0x1d19')][_0x5220e8('0x580')],'license':null,'setting':null,'crudPermissions':_0x482b7b[_0x5220e8('0xada')]}});}function _0x2ce85c(_0x29960f){var _0x2c6163=_0xb0d44a;_0x141cec[_0x2c6163('0x1a53')][_0x2c6163('0x926')]({'id':_0x29960f['id']})[_0x2c6163('0x1dc2')][_0x2c6163('0xaa5')](function(){var _0xe3c35e=_0x2c6163;_0x51538b()[_0xe3c35e('0xf6d')](_0x482b7b[_0xe3c35e('0x1d19')][_0xe3c35e('0x580')],{'id':_0x29960f['id']}),_0x482b7b[_0xe3c35e('0x1d19')][_0xe3c35e('0xd15')]-=0x1,!_0x482b7b[_0xe3c35e('0x1d19')][_0xe3c35e('0x580')][_0xe3c35e('0x2587')]&&_0x2cafcc(),_0x171196[_0xe3c35e('0xe10')]({'title':_0xe3c35e('0x185f'),'msg':_0x29960f[_0xe3c35e('0x25d6')]?_0x29960f[_0xe3c35e('0x25d6')]+_0xe3c35e('0xcd9'):''});})[_0x2c6163('0x253d')](function(_0x2dfe0e){var _0x359b8d=_0x2c6163;if(_0x2dfe0e[_0x359b8d('0x10fd')]&&_0x2dfe0e[_0x359b8d('0x10fd')][_0x359b8d('0x4c6')]&&_0x2dfe0e[_0x359b8d('0x10fd')][_0x359b8d('0x4c6')][_0x359b8d('0x2587')]){_0x482b7b['errors']=_0x2dfe0e[_0x359b8d('0x10fd')]['errors']||[{'message':_0x2dfe0e[_0x359b8d('0x684')](),'type':'SYSTEM:GETwhatsappAccount'}];for(var _0x5127f5=0x0;_0x5127f5<_0x2dfe0e[_0x359b8d('0x10fd')]['errors']['length'];_0x5127f5++){_0x171196[_0x359b8d('0x187f')]({'title':_0x2dfe0e[_0x359b8d('0x10fd')]['errors'][_0x5127f5][_0x359b8d('0x6c8')],'msg':_0x2dfe0e[_0x359b8d('0x10fd')]['errors'][_0x5127f5][_0x359b8d('0x1402')]});}}else _0x171196[_0x359b8d('0x187f')]({'title':_0x2dfe0e[_0x359b8d('0x2fa')]?_0x359b8d('0x16c2')+_0x2dfe0e['status']+_0x359b8d('0x169e')+_0x2dfe0e[_0x359b8d('0x24df')]:_0x359b8d('0x1c94'),'msg':_0x2dfe0e[_0x359b8d('0x10fd')]?JSON['stringify'](_0x2dfe0e[_0x359b8d('0x10fd')][_0x359b8d('0x1402')]):_0x2dfe0e[_0x359b8d('0x1402')]||_0x2dfe0e['toString']()});});}function _0x244474(){var _0x284c76=_0xb0d44a,_0x15a093=angular[_0x284c76('0x20a')](_0x482b7b[_0x284c76('0x23a1')]);return _0x482b7b['selectedWhatsappAccountWhatsappCannedAnswers']=[],_0x15a093;}function _0x40f5d8(_0x1b8d35){var _0x4c9f7a=_0xb0d44a,_0x5f132d=_0xa911ea['confirm']()[_0x4c9f7a('0x110a')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappCannedAnswers?')[_0x4c9f7a('0x102e')](_0x4c9f7a('0x389')+_0x482b7b[_0x4c9f7a('0x23a1')][_0x4c9f7a('0x2587')]+_0x4c9f7a('0x1443')+_0x4c9f7a('0x210d'))[_0x4c9f7a('0x5b5')](_0x4c9f7a('0x10e0'))['targetEvent'](_0x1b8d35)['ok']('OK')[_0x4c9f7a('0x2030')]('CANCEL');_0xa911ea[_0x4c9f7a('0x1e6d')](_0x5f132d)[_0x4c9f7a('0xaa5')](function(){var _0x4ed362=_0x4c9f7a;_0x482b7b[_0x4ed362('0x23a1')][_0x4ed362('0x15b5')](function(_0x380572){_0x2ce85c(_0x380572);}),_0x482b7b[_0x4ed362('0x23a1')]=[];});}var _0x1fa711=!![],_0x723f18=0x1;_0x28c350[_0xb0d44a('0x1ccf')](_0xb0d44a('0x74c'),function(_0x47c46c,_0x4e7b3c){var _0x5376a9=_0xb0d44a;_0x1fa711?_0x3d4634(function(){_0x1fa711=![];}):(!_0x4e7b3c&&(_0x723f18=_0x482b7b[_0x5376a9('0x582')][_0x5376a9('0x41')]),_0x47c46c!==_0x4e7b3c&&(_0x482b7b[_0x5376a9('0x582')]['page']=0x1),!_0x47c46c&&(_0x482b7b[_0x5376a9('0x582')]['page']=_0x723f18),_0x2cafcc());});}const _0x14670f=_0x29d041;_0xffd45d[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),'$q','$translate',_0x1a8446('0x2a4'),_0x1a8446('0x1c55'),_0x1a8446('0xa70'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'license','setting',_0x1a8446('0xada')];function _0xffd45d(_0x416e5d,_0x193f21,_0x177d04,_0x422563,_0x162797,_0x2200d2,_0x4cd8bd,_0x281ec7,_0x556e33,_0x2992e7,_0x1f39ab,_0x563c37,_0x5b2977,_0x3595fe){var _0x4a1f5d=_0x1a8446,_0x302e77=this;_0x302e77['currentUser']=_0x1f39ab[_0x4a1f5d('0xacc')](),_0x302e77[_0x4a1f5d('0x4c6')]=[],_0x302e77[_0x4a1f5d('0x143f')]=_0x5b2977,_0x302e77[_0x4a1f5d('0x1202')]=_0x563c37,_0x302e77['crudPermissions']=_0x3595fe,_0x302e77[_0x4a1f5d('0x9f0')]={},_0x302e77[_0x4a1f5d('0x1d53')]=_0x302e77[_0x4a1f5d('0x143f')]&&_0x302e77[_0x4a1f5d('0x143f')][_0x4a1f5d('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x302e77[_0x4a1f5d('0x110a')]=_0x4a1f5d('0x9f6'),_0x302e77[_0x4a1f5d('0xa70')]=angular[_0x4a1f5d('0x20a')](_0x556e33),_0x302e77['whatsappCannedAnswers']=_0x281ec7,_0x302e77[_0x4a1f5d('0x6f7')]=![];!_0x302e77['whatsappCannedAnswer']&&(_0x302e77[_0x4a1f5d('0xa70')]={},_0x302e77[_0x4a1f5d('0x110a')]=_0x4a1f5d('0x187d'),_0x302e77['newWhatsappCannedAnswer']=!![]);_0x193f21[_0x4a1f5d('0x25cf')]['id']&&(_0x302e77[_0x4a1f5d('0xa70')]['WhatsappAccountId']=_0x193f21['params']['id']);_0x302e77[_0x4a1f5d('0xb4b')]=_0x37ec7f,_0x302e77[_0x4a1f5d('0x2626')]=_0x1da6b9,_0x302e77[_0x4a1f5d('0x1be0')]=_0x49af4d,_0x302e77[_0x4a1f5d('0xc09')]=_0x52fbb9,_0x302e77[_0x4a1f5d('0x2023')]=_0x5e12f2;function _0x37ec7f(){var _0x42966a=_0x4a1f5d;_0x302e77[_0x42966a('0x4c6')]=[],_0x2992e7[_0x42966a('0x1a53')][_0x42966a('0x242b')](_0x302e77[_0x42966a('0xa70')])['$promise'][_0x42966a('0xaa5')](function(_0x2c7fdc){var _0x513468=_0x42966a;_0x302e77[_0x513468('0x1c55')][_0x513468('0x6ee')](_0x2c7fdc[_0x513468('0x256a')]()),_0x4cd8bd[_0x513468('0xe10')]({'title':'WhatsappCannedAnswer\x20properly\x20created','msg':_0x302e77[_0x513468('0xa70')]['name']?_0x302e77[_0x513468('0xa70')]['name']+_0x513468('0xdca'):''}),_0x5e12f2(_0x2c7fdc);})['catch'](function(_0x5de8e6){var _0x52418c=_0x42966a;if(_0x5de8e6['data']&&_0x5de8e6[_0x52418c('0x10fd')]['errors']&&_0x5de8e6[_0x52418c('0x10fd')][_0x52418c('0x4c6')][_0x52418c('0x2587')]){_0x302e77[_0x52418c('0x4c6')]=_0x5de8e6['data']['errors']||[{'message':_0x5de8e6[_0x52418c('0x684')](),'type':_0x52418c('0x262b')}];for(var _0x1a3526=0x0;_0x1a3526<_0x5de8e6[_0x52418c('0x10fd')][_0x52418c('0x4c6')][_0x52418c('0x2587')];_0x1a3526+=0x1){_0x4cd8bd['error']({'title':_0x5de8e6[_0x52418c('0x10fd')][_0x52418c('0x4c6')][_0x1a3526]['type'],'msg':_0x5de8e6[_0x52418c('0x10fd')][_0x52418c('0x4c6')][_0x1a3526][_0x52418c('0x1402')]});}}else _0x4cd8bd[_0x52418c('0x187f')]({'title':_0x5de8e6[_0x52418c('0x2fa')]?_0x52418c('0x16c2')+_0x5de8e6[_0x52418c('0x2fa')]+_0x52418c('0x169e')+_0x5de8e6[_0x52418c('0x24df')]:'api.cannedAnswer.save','msg':_0x5de8e6['data']?JSON['stringify'](_0x5de8e6[_0x52418c('0x10fd')][_0x52418c('0x1402')]):_0x5de8e6[_0x52418c('0x684')]()});});}function _0x1da6b9(){var _0x6b6d05=_0x4a1f5d;_0x302e77[_0x6b6d05('0x4c6')]=[],_0x2992e7[_0x6b6d05('0x1a53')]['update']({'id':_0x302e77['whatsappCannedAnswer']['id']},_0x302e77[_0x6b6d05('0xa70')])['$promise'][_0x6b6d05('0xaa5')](function(_0x2e30f8){var _0x171aa2=_0x6b6d05,_0x1061a7=_0x51538b()[_0x171aa2('0xe9e')](_0x302e77[_0x171aa2('0x1c55')],{'id':_0x2e30f8['id']});_0x1061a7&&_0x51538b()[_0x171aa2('0x283c')](_0x1061a7,_0x51538b()[_0x171aa2('0x104e')](_0x2e30f8['toJSON'](),_0x51538b()['keys'](_0x1061a7))),_0x4cd8bd[_0x171aa2('0xe10')]({'title':_0x171aa2('0x1ca9'),'msg':_0x302e77[_0x171aa2('0xa70')][_0x171aa2('0x25d6')]?_0x302e77['whatsappCannedAnswer'][_0x171aa2('0x25d6')]+'\x20has\x20been\x20saved!':''}),_0x5e12f2(_0x2e30f8);})[_0x6b6d05('0x253d')](function(_0x2ef307){var _0x762877=_0x6b6d05;if(_0x2ef307['data']&&_0x2ef307[_0x762877('0x10fd')][_0x762877('0x4c6')]&&_0x2ef307[_0x762877('0x10fd')]['errors'][_0x762877('0x2587')]){_0x302e77[_0x762877('0x4c6')]=_0x2ef307[_0x762877('0x10fd')][_0x762877('0x4c6')]||[{'message':_0x2ef307[_0x762877('0x684')](),'type':_0x762877('0x583')}];for(var _0x582154=0x0;_0x582154<_0x2ef307[_0x762877('0x10fd')][_0x762877('0x4c6')]['length'];_0x582154++){_0x4cd8bd[_0x762877('0x187f')]({'title':_0x2ef307[_0x762877('0x10fd')][_0x762877('0x4c6')][_0x582154][_0x762877('0x6c8')],'msg':_0x2ef307['data'][_0x762877('0x4c6')][_0x582154][_0x762877('0x1402')]});}}else _0x4cd8bd[_0x762877('0x187f')]({'title':_0x2ef307[_0x762877('0x2fa')]?'API:'+_0x2ef307['status']+_0x762877('0x169e')+_0x2ef307[_0x762877('0x24df')]:_0x762877('0x583'),'msg':_0x2ef307[_0x762877('0x10fd')]?JSON['stringify'](_0x2ef307[_0x762877('0x10fd')][_0x762877('0x1402')]):_0x2ef307[_0x762877('0x684')]()});});}function _0x49af4d(_0x23f1c4){var _0x2f51fb=_0x4a1f5d;_0x302e77[_0x2f51fb('0x4c6')]=[];var _0x238912=_0x422563[_0x2f51fb('0x281e')]()[_0x2f51fb('0x110a')](_0x2f51fb('0x12a3'))[_0x2f51fb('0x15af')](_0x2f51fb('0x24ba'))[_0x2f51fb('0x5b5')]('Delete\x20WhatsappCannedAnswer')['ok'](_0x2f51fb('0x1e76'))['cancel'](_0x2f51fb('0x9c6'))[_0x2f51fb('0x116d')](_0x23f1c4);_0x422563[_0x2f51fb('0x1e6d')](_0x238912)[_0x2f51fb('0xaa5')](function(){var _0x5acdd2=_0x2f51fb;_0x2992e7[_0x5acdd2('0x1a53')][_0x5acdd2('0x926')]({'id':_0x302e77['whatsappCannedAnswer']['id']})[_0x5acdd2('0x1dc2')][_0x5acdd2('0xaa5')](function(){var _0x559abf=_0x5acdd2;_0x51538b()[_0x559abf('0xf6d')](_0x302e77[_0x559abf('0x1c55')],{'id':_0x302e77[_0x559abf('0xa70')]['id']}),_0x4cd8bd['success']({'title':_0x559abf('0x1b58'),'msg':(_0x302e77['whatsappCannedAnswer']['name']||_0x559abf('0xa70'))+'\x20has\x20been\x20deleted!'}),_0x5e12f2(_0x302e77[_0x559abf('0xa70')]);})[_0x5acdd2('0x253d')](function(_0x2e5667){var _0x1837bb=_0x5acdd2;if(_0x2e5667[_0x1837bb('0x10fd')]&&_0x2e5667[_0x1837bb('0x10fd')][_0x1837bb('0x4c6')]&&_0x2e5667[_0x1837bb('0x10fd')][_0x1837bb('0x4c6')][_0x1837bb('0x2587')]){_0x302e77['errors']=_0x2e5667[_0x1837bb('0x10fd')][_0x1837bb('0x4c6')]||[{'message':_0x2e5667[_0x1837bb('0x684')](),'type':_0x1837bb('0xa2a')}];for(var _0x2241f1=0x0;_0x2241f1<_0x2e5667[_0x1837bb('0x10fd')][_0x1837bb('0x4c6')][_0x1837bb('0x2587')];_0x2241f1++){_0x4cd8bd[_0x1837bb('0x187f')]({'title':_0x2e5667[_0x1837bb('0x10fd')][_0x1837bb('0x4c6')][_0x2241f1][_0x1837bb('0x6c8')],'msg':_0x2e5667[_0x1837bb('0x10fd')][_0x1837bb('0x4c6')][_0x2241f1][_0x1837bb('0x1402')]});}}else _0x4cd8bd[_0x1837bb('0x187f')]({'title':_0x2e5667[_0x1837bb('0x2fa')]?_0x1837bb('0x16c2')+_0x2e5667[_0x1837bb('0x2fa')]+_0x1837bb('0x169e')+_0x2e5667[_0x1837bb('0x24df')]:'api.cannedAnswer.delete','msg':_0x2e5667['data']?JSON[_0x1837bb('0xa48')](_0x2e5667[_0x1837bb('0x10fd')][_0x1837bb('0x1402')]):_0x2e5667[_0x1837bb('0x1402')]||_0x2e5667[_0x1837bb('0x684')]()});});},function(){});}function _0x52fbb9(_0x4cccdd){return _0x4cccdd===null?undefined:new Date(_0x4cccdd);}function _0x5e12f2(_0x57199a){var _0xcd31=_0x4a1f5d;_0x422563[_0xcd31('0x1120')](_0x57199a);}}const _0x15c7ab=_0xffd45d;_0x4755b8[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),'$timeout',_0x1a8446('0xcb3'),'api','toasty','Auth'];function _0x4755b8(_0x21c732,_0x1a73de,_0x6d33cc,_0x1a64fb,_0x1c6f13,_0x23948f,_0x30f64c,_0x1d76b5,_0x2b2f1f,_0x49eda7,_0x31594b){var _0x21584f=_0x1a8446,_0x320f05=this;_0x320f05['currentUser']=_0x31594b[_0x21584f('0xacc')](),_0x320f05[_0x21584f('0xa9')]={'count':0x0,'rows':[]},_0x320f05[_0x21584f('0x3b5')]=[],_0x320f05['crudPermissions'],_0x320f05['levels']={'first':_0x21584f('0xee7'),'second':_0x21584f('0x20e2'),'third':'3rd'},_0x320f05[_0x21584f('0x582')]={'fields':_0x21584f('0x11a9'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x320f05[_0x21584f('0x2e')]=_0x54ef6b,_0x320f05[_0x21584f('0x1416')]=_0x3cf5e8,_0x320f05[_0x21584f('0xe10')]=_0x16fb0c,_0x320f05['getDispositions']=_0x186a13,_0x320f05[_0x21584f('0x707')]=_0x2767ec,_0x320f05[_0x21584f('0xb52')]=_0x37a039,_0x320f05['exportSelectedDispositions']=_0x18586e,_0x320f05['deleteSelectedDispositions']=_0x33c5c9,_0x320f05[_0x21584f('0x83f')]=_0x58c4ef,_0x320f05[_0x21584f('0x11a1')]=_0x471d6d;function _0x54ef6b(_0x3812e0,_0xbcc331){var _0x5d50fe=_0x21584f;_0x320f05[_0x5d50fe('0x26ac')]=_0x3812e0||{},_0x320f05['crudPermissions']=typeof _0xbcc331!==_0x5d50fe('0x1574')?_0xbcc331:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x320f05['query']['WhatsappAccountId']=_0x320f05[_0x5d50fe('0x26ac')]['id'],_0x320f05['query']['id']=_0x320f05[_0x5d50fe('0x26ac')]['id'],_0x186a13();}function _0x2767ec(_0xe41e0b,_0x58e6a2){var _0x2ff8c5=_0x21584f;_0x1c6f13[_0x2ff8c5('0x1e6d')]({'controller':_0x2ff8c5('0xccf'),'controllerAs':'vm','templateUrl':_0x56dea9,'parent':angular[_0x2ff8c5('0x1aa8')](_0x23948f[_0x2ff8c5('0x54c')]),'targetEvent':_0xe41e0b,'clickOutsideToClose':!![],'locals':{'disposition':_0x58e6a2,'dispositions':_0x320f05[_0x2ff8c5('0xa9')][_0x2ff8c5('0x580')],'model':{'id':_0x320f05[_0x2ff8c5('0x26ac')]['id'],'field':_0x2ff8c5('0x1ab5')},'license':null,'setting':null,'crudPermissions':_0x320f05['crudPermissions']}})[_0x2ff8c5('0xaa5')](function(_0x5d8560){if(_0x5d8560)_0x186a13();});}function _0x3cf5e8(_0x1b5482,_0x16b980){var _0x244380=_0x21584f,_0x160df9=_0x51538b()['some'](_0x320f05[_0x244380('0xa9')][_0x244380('0x580')],[_0x244380('0x2733'),_0x1b5482['id']]),_0x551d0f=_0x1c6f13[_0x244380('0x281e')]()[_0x244380('0x110a')](_0x1d76b5['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x244380('0x15af')](_0x1d76b5[_0x244380('0x213f')]('TOOLS.NOTIFICATIONS.'+(_0x160df9?_0x244380('0x1528'):_0x244380('0x20c8')),{'name':_0x1b5482[_0x244380('0x25d6')]}))[_0x244380('0x5b5')](_0x244380('0x1493'))[_0x244380('0x116d')](_0x16b980)['ok']('OK')[_0x244380('0x2030')](_0x1d76b5[_0x244380('0x213f')](_0x244380('0x1dd8')));_0x1c6f13['show'](_0x551d0f)[_0x244380('0xaa5')](function(){_0x37a039(_0x1b5482);});}function _0x16fb0c(_0x558447){var _0x138291=_0x21584f;_0x320f05[_0x138291('0xa9')]=_0x558447||{'count':0x0,'rows':[]};}function _0x186a13(){var _0x37cc4b=_0x21584f;_0x320f05[_0x37cc4b('0x582')][_0x37cc4b('0x8b1')]=(_0x320f05[_0x37cc4b('0x582')][_0x37cc4b('0x41')]-0x1)*_0x320f05[_0x37cc4b('0x582')][_0x37cc4b('0xf4d')],_0x320f05[_0x37cc4b('0x159a')]=_0x2b2f1f[_0x37cc4b('0x26ac')][_0x37cc4b('0x24b7')](_0x320f05[_0x37cc4b('0x582')],_0x16fb0c)[_0x37cc4b('0x1dc2')];}function _0x37a039(_0x53ff3c){var _0x58f424=_0x21584f;_0x2b2f1f[_0x58f424('0x106e')]['delete']({'id':_0x53ff3c['id']})['$promise'][_0x58f424('0xaa5')](function(){var _0x281f4a=_0x58f424;_0x186a13(),_0x49eda7[_0x281f4a('0xe10')]({'title':_0x1d76b5[_0x281f4a('0x213f')](_0x281f4a('0x26dd'))});})[_0x58f424('0x253d')](function(_0x3922de){var _0xe5d806=_0x58f424;if(_0x3922de[_0xe5d806('0x10fd')]&&_0x3922de[_0xe5d806('0x10fd')][_0xe5d806('0x4c6')]&&_0x3922de[_0xe5d806('0x10fd')][_0xe5d806('0x4c6')][_0xe5d806('0x2587')]){_0x320f05[_0xe5d806('0x4c6')]=_0x3922de[_0xe5d806('0x10fd')][_0xe5d806('0x4c6')]||[{'message':_0x3922de[_0xe5d806('0x684')](),'type':_0xe5d806('0x28a')}];for(var _0x58c2a6=0x0;_0x58c2a6<_0x3922de[_0xe5d806('0x10fd')][_0xe5d806('0x4c6')]['length'];_0x58c2a6++){_0x49eda7[_0xe5d806('0x187f')]({'title':_0x3922de[_0xe5d806('0x10fd')][_0xe5d806('0x4c6')][_0x58c2a6][_0xe5d806('0x6c8')],'msg':_0x3922de['data'][_0xe5d806('0x4c6')][_0x58c2a6][_0xe5d806('0x1402')]});}}else _0x49eda7['error']({'title':_0x3922de['status']?_0xe5d806('0x16c2')+_0x3922de[_0xe5d806('0x2fa')]+_0xe5d806('0x169e')+_0x3922de[_0xe5d806('0x24df')]:_0xe5d806('0x28a'),'msg':_0x3922de[_0xe5d806('0x10fd')]?JSON[_0xe5d806('0xa48')](_0x3922de[_0xe5d806('0x10fd')]['message']):_0x3922de[_0xe5d806('0x1402')]||_0x3922de[_0xe5d806('0x684')]()});});}function _0x18586e(){var _0x5b4646=_0x21584f,_0x1849ca=angular[_0x5b4646('0x20a')](_0x320f05[_0x5b4646('0x3b5')]);return _0x320f05['selectedDispositions']=[],_0x1849ca;}function _0x33c5c9(_0x4f20bf){var _0x4188e1=_0x21584f,_0x4a10f3=_0x1c6f13[_0x4188e1('0x281e')]()[_0x4188e1('0x110a')](_0x1d76b5[_0x4188e1('0x213f')](_0x4188e1('0x18f0')))[_0x4188e1('0x15af')](_0x1d76b5[_0x4188e1('0x213f')](_0x4188e1('0x8f7'),{'total':_0x320f05[_0x4188e1('0x3b5')][_0x4188e1('0x2587')]}))[_0x4188e1('0x5b5')](_0x4188e1('0x2803'))[_0x4188e1('0x116d')](_0x4f20bf)['ok']('OK')['cancel'](_0x1d76b5[_0x4188e1('0x213f')]('TOOLS.CANCEL'));_0x1c6f13[_0x4188e1('0x1e6d')](_0x4a10f3)[_0x4188e1('0xaa5')](function(){var _0x1ec9b3=_0x4188e1;_0x320f05[_0x1ec9b3('0x3b5')]['forEach'](function(_0x48da72){_0x37a039(_0x48da72);}),_0x320f05[_0x1ec9b3('0x3b5')]=[];});}function _0x58c4ef(){_0x320f05['selectedDispositions']=[];}function _0x471d6d(){var _0xc87fe7=_0x21584f;_0x320f05[_0xc87fe7('0x3b5')]=_0x320f05[_0xc87fe7('0xa9')][_0xc87fe7('0x580')];}var _0x2a0146=!![],_0x5b4571=0x1;_0x21c732[_0x21584f('0x1ccf')]('vm_dc.query.filter',function(_0x581b9f,_0x41a3f2){var _0x23d024=_0x21584f;_0x2a0146?_0x30f64c(function(){_0x2a0146=![];}):(!_0x41a3f2&&(_0x5b4571=_0x320f05['query'][_0x23d024('0x41')]),_0x581b9f!==_0x41a3f2&&(_0x320f05['query']['page']=0x1),!_0x581b9f&&(_0x320f05[_0x23d024('0x582')]['page']=_0x5b4571),_0x186a13());});}const _0xea7aa6=_0x4755b8,_0x18cb04=_0x4fb511['p']+_0x1a8446('0x174b');_0x547684[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0x186b'),'$translate',_0x1a8446('0x2613'),_0x1a8446('0x1e97'),'userProfileSection',_0x1a8446('0x157'),_0x1a8446('0x25c'),'toasty','Auth',_0x1a8446('0x1202'),'setting'];function _0x547684(_0x3fd20c,_0x50c41c,_0x155e12,_0x15d958,_0x408a29,_0x31602b,_0x5951f8,_0x3b58e7,_0x104060,_0x503585,_0x5b4031,_0x5f5226,_0x2f42b4,_0x1cb7af,_0x3f8604,_0x173794,_0x37ace9){var _0x253c2c=_0x1a8446,_0x1f4b54=this;_0x1f4b54[_0x253c2c('0x1202')]=_0x173794,_0x1f4b54[_0x253c2c('0x143f')]=_0x37ace9,_0x1f4b54[_0x253c2c('0x7fc')]=_0x3f8604[_0x253c2c('0xacc')](),_0x1f4b54[_0x253c2c('0x2613')]=_0x104060||{'count':0x0,'rows':[]},_0x1f4b54['userProfile']=_0x503585,_0x1f4b54[_0x253c2c('0x1a50')]=_0x5b4031&&_0x5b4031[_0x253c2c('0xd15')]==0x1?_0x5b4031[_0x253c2c('0x580')][0x0]:null,_0x1f4b54[_0x253c2c('0xada')]=_0x3f8604[_0x253c2c('0xffd')](_0x1f4b54['userProfileSection']?_0x1f4b54[_0x253c2c('0x1a50')][_0x253c2c('0xada')]:null),_0x1f4b54[_0x253c2c('0x12b6')]=_0x253c2c('0x2613'),_0x1f4b54[_0x253c2c('0x164')]='',_0x1f4b54['listOrderAsc']=null,_0x1f4b54['selectedWhatsappAccounts']=[],_0x1f4b54[_0x253c2c('0x582')]={'fields':_0x253c2c('0x24d7'),'sort':_0x253c2c('0xd82'),'limit':0xa,'page':0x1},_0x1f4b54[_0x253c2c('0x1bee')]=_0x51538b()[_0x253c2c('0x184a')]([{'option':_0x253c2c('0x231b'),'value':_0x253c2c('0x1617')}],function(_0x1b9633){var _0x506a0c=_0x253c2c;return _0x51538b()[_0x506a0c('0x170d')](_0x1b9633[_0x506a0c('0x12f4')],new RegExp('\x27','g'),'');}),_0x1f4b54[_0x253c2c('0x1927')]=_0x254e17,_0x1f4b54[_0x253c2c('0x2500')]=_0x24f8b9,_0x1f4b54[_0x253c2c('0x16a5')]=_0x5f43f1,_0x1f4b54['deleteconfirm']=_0xbd14c3,_0x1f4b54['success']=_0xf98bd0,_0x1f4b54[_0x253c2c('0xe95')]=_0x139e1d,_0x1f4b54[_0x253c2c('0x2024')]=_0x3b7d42,_0x1f4b54[_0x253c2c('0xcca')]=_0x1d0f56,_0x1f4b54['exportSelectedWhatsappAccounts']=_0x3ace52,_0x1f4b54[_0x253c2c('0x27fb')]=_0x596226,_0x1f4b54[_0x253c2c('0xe86')]=_0x216adb,_0x1f4b54['selectAllWhatsappAccounts']=_0x305f9e,_0x3f8604[_0x253c2c('0x26e8')](_0x253c2c('0x178b'))?_0x5f5226[_0x253c2c('0x26b4')][_0x253c2c('0x2122')]({'fields':_0x253c2c('0x17fe'),'sort':_0x253c2c('0x25d6')})['$promise'][_0x253c2c('0xaa5')](function(_0x4bd7b1){var _0x1d6b7c=_0x253c2c;_0x1f4b54[_0x1d6b7c('0x1126')]=_0x4bd7b1[_0x1d6b7c('0x580')]||[];})[_0x253c2c('0x253d')](function(_0x3228ee){var _0x1801b5=_0x253c2c;_0x1cb7af[_0x1801b5('0x187f')]({'title':_0x3228ee['status']?_0x1801b5('0x16c2')+_0x3228ee[_0x1801b5('0x2fa')]+_0x1801b5('0x169e')+_0x3228ee[_0x1801b5('0x24df')]:_0x1801b5('0x1adf'),'msg':_0x3228ee[_0x1801b5('0x10fd')]?JSON[_0x1801b5('0xa48')](_0x3228ee[_0x1801b5('0x10fd')]):_0x3228ee[_0x1801b5('0x684')]()});}):_0x5f5226['cmList'][_0x253c2c('0x2122')]({'fields':_0x253c2c('0x17fe'),'sort':_0x253c2c('0x25d6')})['$promise'][_0x253c2c('0xaa5')](function(_0x494c74){var _0x106fe2=_0x253c2c;_0x1f4b54[_0x106fe2('0x1126')]=_0x494c74[_0x106fe2('0x580')]||[];})[_0x253c2c('0xaa5')](function(){var _0x5c6aee=_0x253c2c;return _0x5f5226[_0x5c6aee('0x1a50')][_0x5c6aee('0x2122')]({'userProfileId':_0x1f4b54[_0x5c6aee('0x7fc')][_0x5c6aee('0x2168')],'sectionId':0x12d})[_0x5c6aee('0x1dc2')];})[_0x253c2c('0xaa5')](function(_0x28adfd){var _0x53584b=_0x253c2c,_0x48c4fe=_0x28adfd&&_0x28adfd[_0x53584b('0x580')]?_0x28adfd[_0x53584b('0x580')][0x0]:null;if(!_0x48c4fe){var _0x41f02f=[],_0x40aec2=null;_0x1f4b54[_0x53584b('0x26ac')]&&(_0x40aec2=_0x51538b()[_0x53584b('0xe9e')](_0x1f4b54['lists'],{'id':Number(_0x1f4b54[_0x53584b('0x26ac')][_0x53584b('0xee0')])}));for(var _0x3112dc=0x0;_0x3112dc<_0x1f4b54['lists'][_0x53584b('0x2587')];_0x3112dc++){_0x40aec2&&_0x1f4b54[_0x53584b('0x1126')][_0x3112dc]['id']===_0x40aec2['id']&&(_0x1f4b54[_0x53584b('0x1126')][_0x3112dc][_0x53584b('0x12eb')]=![],_0x41f02f[_0x53584b('0x1599')](_0x1f4b54[_0x53584b('0x1126')][_0x3112dc]));}_0x1f4b54[_0x53584b('0x1126')]=_0x41f02f;}else{if(!_0x48c4fe[_0x53584b('0x26cc')])return _0x5f5226[_0x53584b('0x249a')][_0x53584b('0x2122')]({'sectionId':_0x48c4fe['id']})[_0x53584b('0x1dc2')]['then'](function(_0x447b01){var _0x2cf5f3=_0x53584b,_0x55969d=_0x51538b()[_0x2cf5f3('0x1246')](_0x447b01['rows'],function(_0x657a5d){var _0x27b1ef=_0x2cf5f3;return _0x51538b()[_0x27b1ef('0xe9e')](_0x1f4b54['lists'],{'id':_0x657a5d[_0x27b1ef('0xbcd')]});}),_0x109f13=null;_0x1f4b54['whatsappAccount']&&(_0x109f13=_0x51538b()[_0x2cf5f3('0xe9e')](_0x1f4b54[_0x2cf5f3('0x1126')],{'id':Number(_0x1f4b54['whatsappAccount']['ListId'])}));if(_0x109f13&&!_0x51538b()[_0x2cf5f3('0x2c2')](_0x55969d,['id',_0x109f13['id']])){var _0x130078=_0x51538b()[_0x2cf5f3('0xe9e')](_0x1f4b54[_0x2cf5f3('0x1126')],{'id':_0x109f13['id']});_0x130078['canSelect']=![],_0x55969d[_0x2cf5f3('0x1599')](_0x130078);}_0x1f4b54[_0x2cf5f3('0x1126')]=_0x55969d;});}})[_0x253c2c('0x253d')](function(_0x15d390){var _0x297367=_0x253c2c;_0x1cb7af[_0x297367('0x187f')]({'title':_0x15d390[_0x297367('0x2fa')]?_0x297367('0x16c2')+_0x15d390[_0x297367('0x2fa')]+_0x297367('0x169e')+_0x15d390[_0x297367('0x24df')]:_0x297367('0x177f'),'msg':_0x15d390[_0x297367('0x10fd')]?JSON[_0x297367('0xa48')](_0x15d390[_0x297367('0x10fd')]):_0x15d390[_0x297367('0x684')]()});}),_0x3f8604[_0x253c2c('0x26e8')](_0x253c2c('0x178b'))?_0x5f5226[_0x253c2c('0x167c')][_0x253c2c('0x2122')]({'fields':_0x253c2c('0xb22'),'sort':_0x253c2c('0x25d6'),'nolimit':_0x253c2c('0x1c5c')})[_0x253c2c('0x1dc2')][_0x253c2c('0xaa5')](function(_0x510de1){var _0xb94448=_0x253c2c;_0x1f4b54[_0xb94448('0x2457')]=_0x510de1['rows']||[];})[_0x253c2c('0x253d')](function(_0x22523d){var _0x371664=_0x253c2c;_0x1cb7af[_0x371664('0x187f')]({'title':_0x22523d[_0x371664('0x2fa')]?'API:'+_0x22523d[_0x371664('0x2fa')]+_0x371664('0x169e')+_0x22523d['statusText']:_0x371664('0xc8'),'msg':_0x22523d[_0x371664('0x10fd')]?JSON[_0x371664('0xa48')](_0x22523d[_0x371664('0x10fd')]):_0x22523d[_0x371664('0x684')]()});}):_0x5f5226[_0x253c2c('0x167c')][_0x253c2c('0x2122')]({'fields':_0x253c2c('0xb22'),'sort':'name','nolimit':_0x253c2c('0x1c5c')})[_0x253c2c('0x1dc2')][_0x253c2c('0xaa5')](function(_0x5f50ac){var _0x52ac9d=_0x253c2c;_0x1f4b54[_0x52ac9d('0x2457')]=_0x5f50ac[_0x52ac9d('0x580')]||[];})[_0x253c2c('0xaa5')](function(){var _0x3a7446=_0x253c2c;return _0x5f5226[_0x3a7446('0x1a50')][_0x3a7446('0x2122')]({'userProfileId':_0x1f4b54[_0x3a7446('0x7fc')][_0x3a7446('0x2168')],'sectionId':0x3ed})[_0x3a7446('0x1dc2')];})[_0x253c2c('0xaa5')](function(_0x2d91fa){var _0x3f3c34=_0x253c2c,_0x14b55a=_0x2d91fa&&_0x2d91fa[_0x3f3c34('0x580')]?_0x2d91fa[_0x3f3c34('0x580')][0x0]:null;if(!_0x14b55a)_0x1f4b54[_0x3f3c34('0x2457')]=[];else{if(!_0x14b55a[_0x3f3c34('0x26cc')])return _0x5f5226[_0x3f3c34('0x249a')][_0x3f3c34('0x2122')]({'sectionId':_0x14b55a['id']})[_0x3f3c34('0x1dc2')][_0x3f3c34('0xaa5')](function(_0x3ba576){var _0x447a5f=_0x3f3c34,_0x22f0c1=_0x51538b()['map'](_0x3ba576[_0x447a5f('0x580')],function(_0xcb0501){var _0x56754d=_0x447a5f;return _0x51538b()[_0x56754d('0xe9e')](_0x1f4b54[_0x56754d('0x2457')],{'id':_0xcb0501[_0x56754d('0xbcd')]});});_0x1f4b54[_0x447a5f('0x2457')]['forEach'](function(_0x40ccc7){var _0xa96d03=_0x447a5f;!_0x51538b()['some'](_0x22f0c1,['id',_0x40ccc7['id']])&&(_0x40ccc7['canSelect']=![]),_0x22f0c1[_0xa96d03('0x1599')](_0x40ccc7);}),_0x1f4b54[_0x447a5f('0x2457')]=_0x22f0c1;});}})[_0x253c2c('0x253d')](function(_0xed2a48){var _0x200c31=_0x253c2c;_0x1cb7af[_0x200c31('0x187f')]({'title':_0xed2a48[_0x200c31('0x2fa')]?'API:'+_0xed2a48[_0x200c31('0x2fa')]+'\x20-\x20'+_0xed2a48['statusText']:_0x200c31('0xe71'),'msg':_0xed2a48['data']?JSON[_0x200c31('0xa48')](_0xed2a48[_0x200c31('0x10fd')]):_0xed2a48['toString']()});});function _0x254e17(_0x1b16ee){var _0x444bce=_0x253c2c;_0x155e12['go'](_0x444bce('0x1bf5'),{'id':_0x1b16ee['id'],'whatsappAccount':_0x1b16ee,'crudPermissions':_0x1f4b54[_0x444bce('0xada')]});}function _0x24f8b9(_0x23e75d){_0x155e12['go']('app.whatsapp.whatsappAccounts.edit',{'id':_0x23e75d['id'],'tab':0x5});}function _0x5f43f1(_0x8b4a7c,_0x5dcf1e){var _0x15744e=_0x253c2c;_0x408a29['show']({'controller':'WhatsappAccountagentaddController','controllerAs':'vm','templateUrl':_0x389613,'parent':angular[_0x15744e('0x1aa8')](_0x31602b[_0x15744e('0x54c')]),'targetEvent':_0x5dcf1e,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x8b4a7c,'whatsappAccounts':_0x1f4b54['whatsappAccounts']?_0x1f4b54[_0x15744e('0x2613')]['rows']:[],'crudPermissions':_0x1f4b54['crudPermissions'],'realtime':![]}});}function _0xbd14c3(_0x46857a,_0x5d9d31){var _0x63d871=_0x253c2c,_0x3f39a6=_0x408a29[_0x63d871('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()['startCase'](_0x63d871('0x26ac'))+'?')[_0x63d871('0x102e')](_0x63d871('0x389')+(_0x46857a['name']||'whatsappAccount')+_0x63d871('0x697')+_0x63d871('0x210d'))[_0x63d871('0x5b5')]('delete\x20whatsappAccount')[_0x63d871('0x116d')](_0x5d9d31)['ok']('OK')[_0x63d871('0x2030')]('CANCEL');_0x408a29[_0x63d871('0x1e6d')](_0x3f39a6)[_0x63d871('0xaa5')](function(){_0x1d0f56(_0x46857a);},function(){var _0x51f892=_0x63d871;console[_0x51f892('0x18d5')](_0x51f892('0x2410'));});}var _0xdc67bb=!![],_0x414898=0x1;_0x3fd20c[_0x253c2c('0x1ccf')]('vm.query.filter',function(_0x15dca2,_0x557f55){var _0x3741ef=_0x253c2c;_0xdc67bb?_0x5951f8(function(){_0xdc67bb=![];}):(!_0x557f55&&(_0x414898=_0x1f4b54[_0x3741ef('0x582')]['page']),_0x15dca2!==_0x557f55&&(_0x1f4b54[_0x3741ef('0x582')]['page']=0x1),!_0x15dca2&&(_0x1f4b54['query'][_0x3741ef('0x41')]=_0x414898),_0x1f4b54[_0x3741ef('0xe95')]());});function _0xf98bd0(_0x29473b){var _0x247ce0=_0x253c2c;_0x1f4b54[_0x247ce0('0x2613')]=_0x29473b||{'count':0x0,'rows':[]};}function _0x139e1d(){var _0x1827c0=_0x253c2c;_0x1f4b54[_0x1827c0('0x582')][_0x1827c0('0x8b1')]=(_0x1f4b54['query'][_0x1827c0('0x41')]-0x1)*_0x1f4b54[_0x1827c0('0x582')][_0x1827c0('0xf4d')],_0x3f8604[_0x1827c0('0x26e8')](_0x1827c0('0x178b'))?_0x1f4b54['promise']=_0x5f5226['whatsappAccount']['get'](_0x1f4b54[_0x1827c0('0x582')],_0xf98bd0)['$promise']:(_0x1f4b54['query']['id']=_0x1f4b54[_0x1827c0('0x1e97')]['id'],_0x1f4b54[_0x1827c0('0x582')][_0x1827c0('0x224d')]='WhatsappAccounts',_0x1f4b54['promise']=_0x5f5226[_0x1827c0('0x1e97')][_0x1827c0('0x1cf1')](_0x1f4b54[_0x1827c0('0x582')],_0xf98bd0)[_0x1827c0('0x1dc2')]);}function _0x3b7d42(_0x25adae,_0x24933e){var _0x5293a4=_0x253c2c;_0x408a29[_0x5293a4('0x1e6d')]({'controller':_0x5293a4('0x1b77'),'controllerAs':'vm','templateUrl':_0x18cb04,'parent':angular[_0x5293a4('0x1aa8')](_0x31602b['body']),'targetEvent':_0x25adae,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x24933e,'whatsappAccounts':_0x1f4b54[_0x5293a4('0x2613')]['rows'],'license':_0x1f4b54['license'],'setting':_0x1f4b54['setting'],'crudPermissions':_0x1f4b54['crudPermissions']}});}function _0x1d0f56(_0x42bed7){var _0x3cf371=_0x253c2c;_0x5f5226['whatsappAccount'][_0x3cf371('0x926')]({'id':_0x42bed7['id']})[_0x3cf371('0x1dc2')][_0x3cf371('0xaa5')](function(){var _0x39d6be=_0x3cf371;_0x51538b()[_0x39d6be('0xf6d')](_0x1f4b54[_0x39d6be('0x2613')][_0x39d6be('0x580')],{'id':_0x42bed7['id']}),_0x1f4b54[_0x39d6be('0x2613')][_0x39d6be('0xd15')]-=0x1,!_0x1f4b54[_0x39d6be('0x2613')][_0x39d6be('0x580')][_0x39d6be('0x2587')]&&_0x1f4b54['getWhatsappAccounts'](),_0x1cb7af[_0x39d6be('0xe10')]({'title':_0x51538b()[_0x39d6be('0x196a')](_0x39d6be('0x7cc'))+'\x20deleted!','msg':_0x42bed7[_0x39d6be('0x25d6')]?_0x42bed7[_0x39d6be('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x3cf371('0x253d')](function(_0x1bfe5e){var _0x2c5d03=_0x3cf371;if(_0x1bfe5e[_0x2c5d03('0x10fd')]&&_0x1bfe5e[_0x2c5d03('0x10fd')][_0x2c5d03('0x4c6')]&&_0x1bfe5e[_0x2c5d03('0x10fd')][_0x2c5d03('0x4c6')]['length']){_0x1f4b54[_0x2c5d03('0x4c6')]=_0x1bfe5e['data']['errors']||[{'message':_0x1bfe5e[_0x2c5d03('0x684')](),'type':_0x2c5d03('0x7b1')}];for(var _0x386223=0x0;_0x386223<_0x1bfe5e['data']['errors'][_0x2c5d03('0x2587')];_0x386223++){_0x1cb7af[_0x2c5d03('0x187f')]({'title':_0x1bfe5e[_0x2c5d03('0x10fd')]['errors'][_0x386223][_0x2c5d03('0x6c8')],'msg':_0x1bfe5e['data']['errors'][_0x386223][_0x2c5d03('0x1402')]});}}else _0x1cb7af[_0x2c5d03('0x187f')]({'title':_0x1bfe5e['status']?_0x2c5d03('0x16c2')+_0x1bfe5e[_0x2c5d03('0x2fa')]+'\x20-\x20'+_0x1bfe5e[_0x2c5d03('0x24df')]:'SYSTEM:DELETEwhatsappAccount','msg':_0x1bfe5e['data']?JSON[_0x2c5d03('0xa48')](_0x1bfe5e['data'][_0x2c5d03('0x1402')]):_0x1bfe5e[_0x2c5d03('0x1402')]||_0x1bfe5e['toString']()});});}function _0x3ace52(){var _0x4f0c51=_0x253c2c,_0x46951e=angular['copy'](_0x1f4b54[_0x4f0c51('0x21de')]);return _0x1f4b54[_0x4f0c51('0x21de')]=[],_0x46951e;}function _0x596226(_0x2d3b68){var _0x44f7da=_0x253c2c,_0x267c94=_0x408a29[_0x44f7da('0x281e')]()['title'](_0x44f7da('0x1ef6'))['htmlContent'](_0x44f7da('0x389')+_0x1f4b54['selectedWhatsappAccounts'][_0x44f7da('0x2587')]+_0x44f7da('0x1443')+_0x44f7da('0x210d'))[_0x44f7da('0x5b5')](_0x44f7da('0x692'))['targetEvent'](_0x2d3b68)['ok']('OK')[_0x44f7da('0x2030')]('CANCEL');_0x408a29[_0x44f7da('0x1e6d')](_0x267c94)[_0x44f7da('0xaa5')](function(){var _0x454165=_0x44f7da;_0x1f4b54[_0x454165('0x21de')][_0x454165('0x15b5')](function(_0x29018c){_0x1d0f56(_0x29018c);}),_0x1f4b54[_0x454165('0x21de')]=[];});}function _0x216adb(){var _0x4c5b23=_0x253c2c;_0x1f4b54[_0x4c5b23('0x21de')]=[];}function _0x305f9e(){var _0x3575e4=_0x253c2c;_0x1f4b54['selectedWhatsappAccounts']=_0x1f4b54[_0x3575e4('0x2613')][_0x3575e4('0x580')];}}const _0xcbae09=_0x547684;_0x309f27[_0x1a8446('0x1e33')]=['$scope',_0x1a8446('0x145b'),'$location',_0x1a8446('0x2378'),'$q',_0x1a8446('0xcb3'),_0x1a8446('0x2a4'),'whatsappQueues',_0x1a8446('0x48f'),_0x1a8446('0x157'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting','crudPermissions'];function _0x309f27(_0x4f7946,_0x176e87,_0x4679d1,_0x174599,_0x2b9f09,_0x3477a6,_0x3ae888,_0x4e2896,_0x26da9f,_0x42f136,_0x1bdb40,_0x45b603,_0x391a4e,_0x51b63c){var _0x1e29d0=_0x1a8446,_0x5ac294=this;_0x5ac294[_0x1e29d0('0x7fc')]=_0x1bdb40['getCurrentUser'](),_0x5ac294['errors']=[],_0x5ac294['setting']=_0x391a4e,_0x5ac294['license']=_0x45b603,_0x5ac294[_0x1e29d0('0xada')]=_0x51b63c,_0x5ac294['hasModulePermissions']={},_0x5ac294[_0x1e29d0('0x1d53')]=_0x5ac294['setting']&&_0x5ac294['setting'][_0x1e29d0('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5ac294[_0x1e29d0('0x110a')]=_0x1e29d0('0x26b5'),_0x5ac294[_0x1e29d0('0x48f')]=angular['copy'](_0x26da9f),_0x5ac294[_0x1e29d0('0xfd6')]=_0x4e2896,_0x5ac294[_0x1e29d0('0x1ee')]=![];!_0x5ac294[_0x1e29d0('0x48f')]&&(_0x5ac294[_0x1e29d0('0x48f')]={'strategy':_0x1e29d0('0x258'),'timeout':0xa},_0x5ac294[_0x1e29d0('0x110a')]=_0x1e29d0('0xcee'),_0x5ac294['newWhatsappQueue']=!![]);_0x5ac294[_0x1e29d0('0x18fb')]=_0x10d9eb,_0x5ac294[_0x1e29d0('0x480')]=_0x41539e,_0x5ac294['deleteWhatsappQueue']=_0x5889f1,_0x5ac294['getDateFromString']=_0xa6e1b9,_0x5ac294[_0x1e29d0('0x2023')]=_0x5aa3f4;function _0x10d9eb(){var _0x301ec0=_0x1e29d0;_0x5ac294[_0x301ec0('0x4c6')]=[],_0x42f136[_0x301ec0('0x48f')][_0x301ec0('0x242b')](_0x5ac294[_0x301ec0('0x48f')])[_0x301ec0('0x1dc2')]['then'](function(_0x52b98f){var _0x3593a6=_0x301ec0;_0x5ac294['whatsappQueues'][_0x3593a6('0x6ee')](_0x52b98f[_0x3593a6('0x256a')]()),_0x3ae888[_0x3593a6('0xe10')]({'title':'WhatsappQueue\x20properly\x20created','msg':_0x5ac294[_0x3593a6('0x48f')][_0x3593a6('0x25d6')]?_0x5ac294[_0x3593a6('0x48f')]['name']+_0x3593a6('0xdca'):''}),_0x5aa3f4(_0x52b98f);})[_0x301ec0('0x253d')](function(_0x4cf1ea){var _0x498d47=_0x301ec0;if(_0x4cf1ea[_0x498d47('0x10fd')]&&_0x4cf1ea[_0x498d47('0x10fd')]['errors']&&_0x4cf1ea['data']['errors'][_0x498d47('0x2587')]){_0x5ac294[_0x498d47('0x4c6')]=_0x4cf1ea[_0x498d47('0x10fd')][_0x498d47('0x4c6')]||[{'message':_0x4cf1ea[_0x498d47('0x684')](),'type':_0x498d47('0x94e')}];for(var _0x27bf14=0x0;_0x27bf14<_0x4cf1ea[_0x498d47('0x10fd')][_0x498d47('0x4c6')][_0x498d47('0x2587')];_0x27bf14+=0x1){_0x3ae888[_0x498d47('0x187f')]({'title':_0x4cf1ea[_0x498d47('0x10fd')][_0x498d47('0x4c6')][_0x27bf14][_0x498d47('0x6c8')],'msg':_0x4cf1ea[_0x498d47('0x10fd')][_0x498d47('0x4c6')][_0x27bf14][_0x498d47('0x1402')]});}}else _0x3ae888['error']({'title':_0x4cf1ea[_0x498d47('0x2fa')]?'API:'+_0x4cf1ea[_0x498d47('0x2fa')]+'\x20-\x20'+_0x4cf1ea[_0x498d47('0x24df')]:'api.whatsappQueue.save','msg':_0x4cf1ea['data']?JSON[_0x498d47('0xa48')](_0x4cf1ea[_0x498d47('0x10fd')][_0x498d47('0x1402')]):_0x4cf1ea[_0x498d47('0x684')]()});});}function _0x41539e(){var _0x3c5d07=_0x1e29d0;_0x5ac294['errors']=[],_0x42f136[_0x3c5d07('0x48f')][_0x3c5d07('0x264e')]({'id':_0x5ac294[_0x3c5d07('0x48f')]['id']},_0x5ac294[_0x3c5d07('0x48f')])[_0x3c5d07('0x1dc2')][_0x3c5d07('0xaa5')](function(_0x338a4a){var _0x4f6113=_0x3c5d07,_0x3994cb=_0x51538b()[_0x4f6113('0xe9e')](_0x5ac294[_0x4f6113('0xfd6')],{'id':_0x338a4a['id']});_0x3994cb&&_0x51538b()[_0x4f6113('0x283c')](_0x3994cb,_0x51538b()[_0x4f6113('0x104e')](_0x338a4a[_0x4f6113('0x256a')](),_0x51538b()['keys'](_0x3994cb))),_0x3ae888[_0x4f6113('0xe10')]({'title':_0x4f6113('0x27f4'),'msg':_0x5ac294[_0x4f6113('0x48f')][_0x4f6113('0x25d6')]?_0x5ac294[_0x4f6113('0x48f')][_0x4f6113('0x25d6')]+_0x4f6113('0x20bf'):''}),_0x5aa3f4(_0x338a4a);})['catch'](function(_0x3a648b){var _0x5f2ece=_0x3c5d07;if(_0x3a648b['data']&&_0x3a648b[_0x5f2ece('0x10fd')][_0x5f2ece('0x4c6')]&&_0x3a648b['data']['errors']['length']){_0x5ac294['errors']=_0x3a648b[_0x5f2ece('0x10fd')]['errors']||[{'message':_0x3a648b['toString'](),'type':_0x5f2ece('0xee8')}];for(var _0x33a3f1=0x0;_0x33a3f1<_0x3a648b[_0x5f2ece('0x10fd')]['errors'][_0x5f2ece('0x2587')];_0x33a3f1++){_0x3ae888[_0x5f2ece('0x187f')]({'title':_0x3a648b[_0x5f2ece('0x10fd')]['errors'][_0x33a3f1][_0x5f2ece('0x6c8')],'msg':_0x3a648b[_0x5f2ece('0x10fd')][_0x5f2ece('0x4c6')][_0x33a3f1]['message']});}}else _0x3ae888['error']({'title':_0x3a648b[_0x5f2ece('0x2fa')]?_0x5f2ece('0x16c2')+_0x3a648b[_0x5f2ece('0x2fa')]+_0x5f2ece('0x169e')+_0x3a648b[_0x5f2ece('0x24df')]:_0x5f2ece('0xee8'),'msg':_0x3a648b[_0x5f2ece('0x10fd')]?JSON[_0x5f2ece('0xa48')](_0x3a648b['data'][_0x5f2ece('0x1402')]):_0x3a648b['toString']()});});}function _0x5889f1(_0x597326){var _0x3aabc2=_0x1e29d0;_0x5ac294['errors']=[];var _0x2cd3ff=_0x174599[_0x3aabc2('0x281e')]()[_0x3aabc2('0x110a')](_0x3aabc2('0x12a3'))[_0x3aabc2('0x15af')](_0x3aabc2('0x2716'))['ariaLabel'](_0x3aabc2('0x22cc'))['ok'](_0x3aabc2('0x1e76'))[_0x3aabc2('0x2030')]('Cancel')[_0x3aabc2('0x116d')](_0x597326);_0x174599[_0x3aabc2('0x1e6d')](_0x2cd3ff)[_0x3aabc2('0xaa5')](function(){var _0x3e3f03=_0x3aabc2;_0x42f136[_0x3e3f03('0x48f')][_0x3e3f03('0x926')]({'id':_0x5ac294[_0x3e3f03('0x48f')]['id']})['$promise'][_0x3e3f03('0xaa5')](function(){var _0x3c9729=_0x3e3f03;_0x51538b()[_0x3c9729('0xf6d')](_0x5ac294[_0x3c9729('0xfd6')],{'id':_0x5ac294[_0x3c9729('0x48f')]['id']}),_0x3ae888[_0x3c9729('0xe10')]({'title':_0x3c9729('0xf0c'),'msg':(_0x5ac294[_0x3c9729('0x48f')][_0x3c9729('0x25d6')]||_0x3c9729('0x48f'))+_0x3c9729('0xcd9')}),_0x5aa3f4(_0x5ac294[_0x3c9729('0x48f')]);})[_0x3e3f03('0x253d')](function(_0x217e69){var _0x46e248=_0x3e3f03;if(_0x217e69[_0x46e248('0x10fd')]&&_0x217e69['data'][_0x46e248('0x4c6')]&&_0x217e69[_0x46e248('0x10fd')]['errors'][_0x46e248('0x2587')]){_0x5ac294[_0x46e248('0x4c6')]=_0x217e69[_0x46e248('0x10fd')][_0x46e248('0x4c6')]||[{'message':_0x217e69[_0x46e248('0x684')](),'type':_0x46e248('0xc86')}];for(var _0x2135ae=0x0;_0x2135ae<_0x217e69['data']['errors'][_0x46e248('0x2587')];_0x2135ae++){_0x3ae888['error']({'title':_0x217e69['data'][_0x46e248('0x4c6')][_0x2135ae][_0x46e248('0x6c8')],'msg':_0x217e69[_0x46e248('0x10fd')][_0x46e248('0x4c6')][_0x2135ae][_0x46e248('0x1402')]});}}else _0x3ae888[_0x46e248('0x187f')]({'title':_0x217e69[_0x46e248('0x2fa')]?_0x46e248('0x16c2')+_0x217e69[_0x46e248('0x2fa')]+_0x46e248('0x169e')+_0x217e69[_0x46e248('0x24df')]:_0x46e248('0xc86'),'msg':_0x217e69[_0x46e248('0x10fd')]?JSON[_0x46e248('0xa48')](_0x217e69[_0x46e248('0x10fd')][_0x46e248('0x1402')]):_0x217e69['message']||_0x217e69[_0x46e248('0x684')]()});});},function(){});}function _0xa6e1b9(_0x4d894c){return _0x4d894c===null?undefined:new Date(_0x4d894c);}function _0x5aa3f4(_0x2c231d){var _0x1385ec=_0x1e29d0;_0x174599[_0x1385ec('0x1120')](_0x2c231d);}}const _0x23a5ac=_0x309f27;_0x4b7fb1[_0x1a8446('0x1e33')]=[_0x1a8446('0x2378'),'$q',_0x1a8446('0x2a4'),_0x1a8446('0x157'),'whatsappQueue',_0x1a8446('0xfd6'),_0x1a8446('0x4f3'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),'crudPermissions'];function _0x4b7fb1(_0x71a0fd,_0x28de87,_0x36a95f,_0x2bfb0c,_0x51c576,_0x404a5b,_0x28aef0,_0x63b931,_0x267ec1,_0x43a250){var _0x5deb05=_0x1a8446,_0xf580bb=this;_0xf580bb['currentUser']=_0x267ec1[_0x5deb05('0xacc')](),_0xf580bb['whatsappQueue']=_0x51c576,_0xf580bb[_0x5deb05('0xada')]=_0x43a250,_0xf580bb[_0x5deb05('0x4f3')]=_0x28aef0,_0xf580bb[_0x5deb05('0x1a30')]=[],_0xf580bb[_0x5deb05('0x11b9')]=[],_0xf580bb[_0x5deb05('0xbf7')]=[],_0xf580bb[_0x5deb05('0x215b')]=[],_0xf580bb[_0x5deb05('0x214a')]=[],_0xf580bb['pendingChanges']=![],_0xf580bb[_0x5deb05('0x2318')]=_0xbe1320,_0xf580bb[_0x5deb05('0x17bb')]=_0x8a0078,_0xf580bb[_0x5deb05('0x2023')]=_0x584c4c,_0xf580bb[_0x5deb05('0x1c23')]={'readOnly':!_0xf580bb['crudPermissions'][_0x5deb05('0x1c1d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5deb05('0x25d6'),'line1':_0x5deb05('0x18e5'),'line2':[_0x5deb05('0x25d6'),'internal'],'line3':'','labelAll':_0x63b931[_0x5deb05('0x213f')](_0x5deb05('0x2478')),'labelSelected':_0x63b931[_0x5deb05('0x213f')](_0x5deb05('0x1b63')),'transferCallback':function _0x45234e(){var _0x3e17a3=_0x5deb05,_0x42ef82=_0x51538b()[_0x3e17a3('0x9ef')](_0xf580bb[_0x3e17a3('0x214a')],_0xf580bb[_0x3e17a3('0xbf7')],'id');_0xf580bb[_0x3e17a3('0xc54')]=_0x51538b()[_0x3e17a3('0x116b')](_0x42ef82)?![]:!![];}};function _0xbe1320(){var _0x3d9008=_0x5deb05;return _0x267ec1['hasRole']('admin')?_0x3f7931()['catch'](function(_0x1d823a){var _0x484e6f=a0_0x1149;_0x36a95f[_0x484e6f('0x187f')]({'title':_0x1d823a[_0x484e6f('0x2fa')]?_0x484e6f('0x16c2')+_0x1d823a['status']+_0x484e6f('0x169e')+_0x1d823a[_0x484e6f('0x24df')]:_0x484e6f('0x14c6'),'msg':_0x1d823a['status']?JSON[_0x484e6f('0xa48')](_0x1d823a['data']):_0x1d823a['toString']()});}):_0x22920a()[_0x3d9008('0xaa5')](function(_0x5d22f3){var _0x322f9d=_0x3d9008;return _0xf580bb[_0x322f9d('0x224d')]=_0x5d22f3,_0x3f7931();})[_0x3d9008('0x253d')](function(_0x4117ca){var _0x7c71de=_0x3d9008;_0x36a95f[_0x7c71de('0x187f')]({'title':_0x4117ca['status']?_0x7c71de('0x16c2')+_0x4117ca[_0x7c71de('0x2fa')]+_0x7c71de('0x169e')+_0x4117ca[_0x7c71de('0x24df')]:_0x7c71de('0x14c6'),'msg':_0x4117ca[_0x7c71de('0x2fa')]?JSON[_0x7c71de('0xa48')](_0x4117ca['data']):_0x4117ca['toString']()});});}function _0x22920a(){return _0x28de87(function(_0x458a34,_0xe83ad0){var _0x4276f7=a0_0x1149;_0x2bfb0c[_0x4276f7('0x1a50')][_0x4276f7('0x2122')]({'userProfileId':_0xf580bb[_0x4276f7('0x7fc')]['userProfileId'],'name':_0x4276f7('0x91a')})['$promise']['then'](function(_0x12b748){var _0x7929db=_0x4276f7,_0x3984b1=_0x12b748&&_0x12b748[_0x7929db('0x580')]?_0x12b748[_0x7929db('0x580')][0x0]:null;_0x458a34(_0x3984b1);})[_0x4276f7('0x253d')](function(_0x33e848){_0xe83ad0(_0x33e848);});});}function _0x3f7931(){return _0x28de87(function(_0x160a49,_0x35da2c){var _0x144f7d=a0_0x1149;return _0x452d45()[_0x144f7d('0xaa5')](function(_0x3de378){var _0x5e6e8f=_0x144f7d;return _0xf580bb['items']=_0x3de378['rows']?_0x3de378[_0x5e6e8f('0x580')]:[],_0x267ec1[_0x5e6e8f('0x26e8')](_0x5e6e8f('0x178b'))?_0x3de378:_0xf580bb['section']?_0xf580bb[_0x5e6e8f('0x224d')][_0x5e6e8f('0x26cc')]?_0x3de378:_0x2da17a():null;})[_0x144f7d('0xaa5')](function(_0x44ca3e){var _0x4ad3fa=_0x144f7d,_0x23a476=_0x44ca3e&&_0x44ca3e[_0x4ad3fa('0x580')]?_0x44ca3e[_0x4ad3fa('0x580')]:[];return _0xf580bb[_0x4ad3fa('0x11b9')]=_0x51538b()[_0x4ad3fa('0x1246')](_0x23a476,function(_0x5baf4e){var _0xb2d83b=_0x4ad3fa;return _0x51538b()['find'](_0xf580bb['items'],{'id':_0x267ec1[_0xb2d83b('0x26e8')](_0xb2d83b('0x178b'))||_0xf580bb[_0xb2d83b('0x224d')][_0xb2d83b('0x26cc')]?_0x5baf4e['id']:_0x5baf4e[_0xb2d83b('0xbcd')]});}),_0xf580bb[_0x4ad3fa('0x215b')]=angular['copy'](_0xf580bb[_0x4ad3fa('0x11b9')]),_0xf580bb[_0x4ad3fa('0x1a30')][_0x4ad3fa('0x15b5')](function(_0x2389f7){var _0x4c839f=_0x4ad3fa,_0x3f834f=_0x51538b()[_0x4c839f('0xe9e')](_0xf580bb['allowedItems'],{'id':_0x2389f7['id']});_0x267ec1[_0x4c839f('0x26e8')](_0x4c839f('0x178b'))?_0x2389f7[_0x4c839f('0x145d')]=!![]:_0x2389f7[_0x4c839f('0x145d')]=typeof _0x3f834f!=='undefined'?!![]:![];}),_0x220f59();})[_0x144f7d('0xaa5')](function(_0xf7878){var _0x458061=_0x144f7d,_0x390c09=_0xf7878&&_0xf7878['rows']?_0xf7878[_0x458061('0x580')]:[];_0xf580bb[_0x458061('0xbf7')]=_0x51538b()['map'](_0x390c09,function(_0xc13b63){var _0x4f4265=_0x458061,_0x56e8f7=_0x51538b()[_0x4f4265('0xe9e')](_0xf580bb[_0x4f4265('0x1a30')],{'id':_0xc13b63['id']});return _0x56e8f7['penalty']=_0xc13b63['UserWhatsappQueue']?_0x4f4265('0x17b0')+_0xc13b63['UserWhatsappQueue'][_0x4f4265('0x2234')]:'',_0x56e8f7['internal']=typeof _0xc13b63[_0x4f4265('0x1b0d')]!==_0x4f4265('0x1574')?'<'+_0xc13b63[_0x4f4265('0x1b0d')]+'>':'',_0x56e8f7;}),_0xf580bb[_0x458061('0x214a')]=angular[_0x458061('0x20a')](_0xf580bb[_0x458061('0xbf7')]),_0xf580bb['dualMultiselectOptions'][_0x458061('0xbf7')]=_0xf580bb[_0x458061('0xbf7')],_0xf580bb['dualMultiselectOptions']['items']=_0x51538b()[_0x458061('0x1ebb')](_0xf580bb['allowedItems'],_0xf580bb['dualMultiselectOptions'][_0x458061('0xbf7')],'id'),_0x160a49();})[_0x144f7d('0x253d')](function(_0x262969){_0x35da2c(_0x262969);});});}function _0x2da17a(){return _0x28de87(function(_0x1b0505,_0x7c447c){var _0x25c3f3=a0_0x1149;return _0x2bfb0c[_0x25c3f3('0x249a')][_0x25c3f3('0x2122')]({'sectionId':_0xf580bb['section']['id'],'nolimit':!![]})[_0x25c3f3('0x1dc2')][_0x25c3f3('0xaa5')](function(_0x357e8e){_0x1b0505(_0x357e8e);})[_0x25c3f3('0x253d')](function(_0x4cf646){_0x7c447c(_0x4cf646);});});}function _0x220f59(){return _0x28de87(function(_0x21f2fe,_0x2316b6){var _0x3bfd03=a0_0x1149;return _0x2bfb0c[_0x3bfd03('0x48f')]['getAgents']({'id':_0xf580bb['whatsappQueue']['id'],'fields':_0x3bfd03('0x283f'),'nolimit':!![],'role':'agent'})[_0x3bfd03('0x1dc2')][_0x3bfd03('0xaa5')](function(_0x3b0416){_0x21f2fe(_0x3b0416);})['catch'](function(_0x1c44a4){_0x2316b6(_0x1c44a4);});});}function _0x452d45(){return _0x28de87(function(_0x3e4e71,_0x83b96f){var _0x4edd34=a0_0x1149;return _0x2bfb0c[_0x4edd34('0x272b')][_0x4edd34('0x2122')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})['$promise'][_0x4edd34('0xaa5')](function(_0x83dd27){_0x3e4e71(_0x83dd27);})[_0x4edd34('0x253d')](function(_0x4bf6a7){_0x83b96f(_0x4bf6a7);});});}function _0xde401e(_0x72b0a7){return _0x28de87(function(_0x4a0035,_0x80291){var _0x3f04b2=a0_0x1149;_0x51538b()['isEmpty'](_0x72b0a7)?_0x4a0035():_0x2bfb0c[_0x3f04b2('0x48f')][_0x3f04b2('0x26b1')]({'id':_0xf580bb['whatsappQueue']['id'],'ids':_0x51538b()['map'](_0x72b0a7,'id')})[_0x3f04b2('0x1dc2')][_0x3f04b2('0xaa5')](function(){_0x4a0035();})[_0x3f04b2('0x253d')](function(_0x18c71f){_0x80291(_0x18c71f);});});}function _0x2308b6(_0x4426d5){return _0x28de87(function(_0x512b2c,_0x3ff760){var _0x353395=a0_0x1149;_0x51538b()[_0x353395('0x116b')](_0x4426d5)?_0x512b2c():_0x2bfb0c[_0x353395('0x48f')][_0x353395('0x258e')]({'id':_0xf580bb[_0x353395('0x48f')]['id'],'ids':_0x51538b()[_0x353395('0x1246')](_0x4426d5,'id')})[_0x353395('0x1dc2')][_0x353395('0xaa5')](function(){_0x512b2c();})[_0x353395('0x253d')](function(_0x416adc){_0x3ff760(_0x416adc);});});}function _0x8a0078(){var _0x1715b3=_0x5deb05,_0x52dd04=_0x51538b()[_0x1715b3('0x1ebb')](_0xf580bb['startingSelectedItems'],_0xf580bb[_0x1715b3('0xbf7')],'id'),_0x2b0446=_0x51538b()[_0x1715b3('0x1ebb')](_0xf580bb[_0x1715b3('0xbf7')],_0xf580bb[_0x1715b3('0x214a')],'id');return _0x2308b6(_0x52dd04)[_0x1715b3('0xaa5')](function(){return _0xde401e(_0x2b0446);})['then'](function(){var _0x5e5852=_0x1715b3;_0xf580bb[_0x5e5852('0xc54')]=![],_0xf580bb[_0x5e5852('0x215b')]=angular[_0x5e5852('0x20a')](_0xf580bb[_0x5e5852('0x11b9')]),_0xf580bb[_0x5e5852('0x214a')]=angular[_0x5e5852('0x20a')](_0xf580bb[_0x5e5852('0xbf7')]),_0x36a95f[_0x5e5852('0xe10')]({'title':_0x5e5852('0x2eb'),'msg':_0x5e5852('0xc60')});})[_0x1715b3('0x253d')](function(_0x2412b3){var _0x1857a8=_0x1715b3;_0x36a95f[_0x1857a8('0x187f')]({'title':_0x2412b3[_0x1857a8('0x2fa')]?_0x1857a8('0x16c2')+_0x2412b3[_0x1857a8('0x2fa')]+'\x20-\x20'+_0x2412b3['statusText']:_0x1857a8('0x2281'),'msg':_0x2412b3['status']?JSON[_0x1857a8('0xa48')](_0x2412b3[_0x1857a8('0x10fd')]):_0x2412b3[_0x1857a8('0x684')]()});});}function _0x584c4c(){var _0x2f0a3f=_0x5deb05;_0x71a0fd[_0x2f0a3f('0x1120')]();}}const _0x596585=_0x4b7fb1;_0x4a2d80[_0x1a8446('0x1e33')]=['$mdDialog','$q',_0x1a8446('0x2a4'),'api',_0x1a8446('0x48f'),_0x1a8446('0xcb3'),_0x1a8446('0x1dfd'),_0x1a8446('0xada')];function _0x4a2d80(_0x5c828c,_0x555d68,_0x5705af,_0x32c74f,_0x23dd7a,_0x29549a,_0xcfcdd6,_0xf1ff7b){var _0x335d64=_0x1a8446,_0x52e2bf=this;_0x52e2bf[_0x335d64('0x7fc')]=_0xcfcdd6[_0x335d64('0xacc')](),_0x52e2bf[_0x335d64('0x48f')]=_0x23dd7a,_0x52e2bf[_0x335d64('0xada')]=_0xf1ff7b,_0x52e2bf['items']=[],_0x52e2bf[_0x335d64('0x11b9')]=[],_0x52e2bf[_0x335d64('0xbf7')]=[],_0x52e2bf[_0x335d64('0x215b')]=[],_0x52e2bf['startingSelectedItems']=[],_0x52e2bf[_0x335d64('0xc54')]=![],_0x52e2bf[_0x335d64('0x1c23')]={'readOnly':!_0x52e2bf[_0x335d64('0xada')][_0x335d64('0x1c1d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x335d64('0x25d6'),'line1':_0x335d64('0x25d6'),'line2':'','line3':'','labelAll':_0x29549a[_0x335d64('0x213f')](_0x335d64('0x21da')),'labelSelected':_0x29549a[_0x335d64('0x213f')](_0x335d64('0x2054')),'transferCallback':function _0x267196(){var _0x138d38=_0x335d64,_0x583b9c=_0x51538b()[_0x138d38('0x9ef')](_0x52e2bf[_0x138d38('0x214a')],_0x52e2bf[_0x138d38('0xbf7')],'id');_0x52e2bf['pendingChanges']=_0x51538b()[_0x138d38('0x116b')](_0x583b9c)?![]:!![];}},_0x52e2bf['onInit']=_0x4be077,_0x52e2bf[_0x335d64('0x2507')]=_0x1857cc,_0x52e2bf[_0x335d64('0x2023')]=_0x345fdf;function _0x4be077(){var _0x520336=_0x335d64;return _0xcfcdd6[_0x520336('0x26e8')](_0x520336('0x178b'))?_0x34b0ac()[_0x520336('0x253d')](function(_0x46ffba){var _0x5c9bc0=_0x520336;_0x5705af[_0x5c9bc0('0x187f')]({'title':_0x46ffba[_0x5c9bc0('0x2fa')]?'API:'+_0x46ffba[_0x5c9bc0('0x2fa')]+_0x5c9bc0('0x169e')+_0x46ffba[_0x5c9bc0('0x24df')]:_0x5c9bc0('0x4b3'),'msg':_0x46ffba[_0x5c9bc0('0x2fa')]?JSON['stringify'](_0x46ffba['data']):_0x46ffba[_0x5c9bc0('0x684')]()});}):_0x4e4176()[_0x520336('0xaa5')](function(_0x413884){var _0xbd0abf=_0x520336;return _0x52e2bf[_0xbd0abf('0x224d')]=_0x413884,_0x34b0ac();})[_0x520336('0x253d')](function(_0x508c9b){var _0x19ecfb=_0x520336;_0x5705af[_0x19ecfb('0x187f')]({'title':_0x508c9b[_0x19ecfb('0x2fa')]?_0x19ecfb('0x16c2')+_0x508c9b[_0x19ecfb('0x2fa')]+_0x19ecfb('0x169e')+_0x508c9b['statusText']:_0x19ecfb('0x4b3'),'msg':_0x508c9b['status']?JSON['stringify'](_0x508c9b[_0x19ecfb('0x10fd')]):_0x508c9b[_0x19ecfb('0x684')]()});});}function _0x4e4176(){return _0x555d68(function(_0x522885,_0x434223){var _0x366d61=a0_0x1149;_0x32c74f[_0x366d61('0x1a50')]['get']({'userProfileId':_0x52e2bf[_0x366d61('0x7fc')]['userProfileId'],'name':_0x366d61('0x10ee')})[_0x366d61('0x1dc2')][_0x366d61('0xaa5')](function(_0x118561){var _0xb16aaf=_0x366d61,_0x5c8687=_0x118561&&_0x118561[_0xb16aaf('0x580')]?_0x118561[_0xb16aaf('0x580')][0x0]:null;_0x522885(_0x5c8687);})[_0x366d61('0x253d')](function(_0x4af112){_0x434223(_0x4af112);});});}function _0x34b0ac(){return _0x555d68(function(_0x3310c1,_0x2c921c){var _0x68f400=a0_0x1149;return _0x836965()[_0x68f400('0xaa5')](function(_0x2bd0b8){var _0x5e9ff0=_0x68f400;return _0x52e2bf[_0x5e9ff0('0x1a30')]=_0x2bd0b8['rows']?_0x2bd0b8['rows']:[],_0xcfcdd6[_0x5e9ff0('0x26e8')]('admin')?_0x2bd0b8:_0x52e2bf[_0x5e9ff0('0x224d')]?_0x52e2bf[_0x5e9ff0('0x224d')][_0x5e9ff0('0x26cc')]?_0x2bd0b8:_0x200031():null;})[_0x68f400('0xaa5')](function(_0x4f4507){var _0x435357=_0x68f400,_0x51f431=_0x4f4507&&_0x4f4507[_0x435357('0x580')]?_0x4f4507['rows']:[];return _0x52e2bf['allowedItems']=_0x51538b()[_0x435357('0x1246')](_0x51f431,function(_0x2c48d5){var _0x2f2d30=_0x435357;return _0x51538b()[_0x2f2d30('0xe9e')](_0x52e2bf[_0x2f2d30('0x1a30')],{'id':_0xcfcdd6['hasRole'](_0x2f2d30('0x178b'))||_0x52e2bf[_0x2f2d30('0x224d')][_0x2f2d30('0x26cc')]?_0x2c48d5['id']:_0x2c48d5[_0x2f2d30('0xbcd')]});}),_0x52e2bf[_0x435357('0x1a30')]['forEach'](function(_0x1ddb25){var _0x46062e=_0x435357,_0x12d1b5=_0x51538b()['find'](_0x52e2bf['allowedItems'],{'id':_0x1ddb25['id']});_0xcfcdd6['hasRole'](_0x46062e('0x178b'))?_0x1ddb25[_0x46062e('0x145d')]=!![]:_0x1ddb25[_0x46062e('0x145d')]=typeof _0x12d1b5!==_0x46062e('0x1574')?!![]:![];}),_0x4795ae();})[_0x68f400('0xaa5')](function(_0x3db35d){var _0x116c9e=_0x68f400,_0x1ca307=_0x3db35d&&_0x3db35d[_0x116c9e('0x580')]?_0x3db35d['rows']:[];_0x52e2bf[_0x116c9e('0xbf7')]=_0x51538b()[_0x116c9e('0x1246')](_0x1ca307,function(_0x33f36a){return _0x51538b()['find'](_0x52e2bf['items'],{'id':_0x33f36a['id']});}),_0x52e2bf[_0x116c9e('0x214a')]=angular[_0x116c9e('0x20a')](_0x52e2bf['selectedItems']),_0x52e2bf[_0x116c9e('0x1c23')][_0x116c9e('0xbf7')]=_0x52e2bf[_0x116c9e('0xbf7')],_0x52e2bf['dualMultiselectOptions'][_0x116c9e('0x1a30')]=_0x51538b()[_0x116c9e('0x1ebb')](_0x52e2bf['allowedItems'],_0x52e2bf[_0x116c9e('0x1c23')]['selectedItems'],'id'),_0x3310c1();})[_0x68f400('0x253d')](function(_0xaf776e){_0x2c921c(_0xaf776e);});});}function _0x200031(){return _0x555d68(function(_0x29c200,_0xef06a5){var _0x1b6166=a0_0x1149;return _0x32c74f[_0x1b6166('0x249a')][_0x1b6166('0x2122')]({'sectionId':_0x52e2bf['section']['id'],'nolimit':!![]})[_0x1b6166('0x1dc2')][_0x1b6166('0xaa5')](function(_0x57b550){_0x29c200(_0x57b550);})[_0x1b6166('0x253d')](function(_0x4a7706){_0xef06a5(_0x4a7706);});});}function _0x4795ae(){return _0x555d68(function(_0x323594,_0x177472){var _0x527d5b=a0_0x1149;return _0x32c74f[_0x527d5b('0x48f')]['getTeams']({'id':_0x52e2bf[_0x527d5b('0x48f')]['id'],'fields':'id,name','nolimit':!![]})['$promise'][_0x527d5b('0xaa5')](function(_0x5e6846){_0x323594(_0x5e6846);})[_0x527d5b('0x253d')](function(_0x56c68f){_0x177472(_0x56c68f);});});}function _0x836965(){return _0x555d68(function(_0x429f5c,_0x1aaf77){var _0x4acc85=a0_0x1149;return _0x32c74f['team'][_0x4acc85('0x2122')]({'fields':'id,name','nolimit':!![]})['$promise'][_0x4acc85('0xaa5')](function(_0x26002c){_0x429f5c(_0x26002c);})[_0x4acc85('0x253d')](function(_0x106e22){_0x1aaf77(_0x106e22);});});}function _0x1a4eef(_0x3f1096){return _0x555d68(function(_0x2a6040,_0x516994){var _0x4cab79=a0_0x1149;_0x51538b()[_0x4cab79('0x116b')](_0x3f1096)?_0x2a6040():_0x32c74f[_0x4cab79('0x48f')]['addTeams']({'id':_0x52e2bf['whatsappQueue']['id'],'ids':_0x51538b()['map'](_0x3f1096,'id')})['$promise'][_0x4cab79('0xaa5')](function(){_0x2a6040();})['catch'](function(_0x30fcbc){_0x516994(_0x30fcbc);});});}function _0x1c6b60(_0x58fd40){return _0x555d68(function(_0x5db65c,_0x47fd60){var _0x3d6804=a0_0x1149;_0x51538b()[_0x3d6804('0x116b')](_0x58fd40)?_0x5db65c():_0x32c74f['whatsappQueue']['removeTeams']({'id':_0x52e2bf[_0x3d6804('0x48f')]['id'],'ids':_0x51538b()[_0x3d6804('0x1246')](_0x58fd40,'id')})['$promise'][_0x3d6804('0xaa5')](function(){_0x5db65c();})[_0x3d6804('0x253d')](function(_0x5aa007){_0x47fd60(_0x5aa007);});});}function _0x1857cc(){var _0x5846fa=_0x335d64,_0x1d2b74=_0x51538b()[_0x5846fa('0x1ebb')](_0x52e2bf['startingSelectedItems'],_0x52e2bf[_0x5846fa('0xbf7')],'id'),_0x4e46e5=_0x51538b()[_0x5846fa('0x1ebb')](_0x52e2bf[_0x5846fa('0xbf7')],_0x52e2bf[_0x5846fa('0x214a')],'id');return _0x1c6b60(_0x1d2b74)['then'](function(){return _0x1a4eef(_0x4e46e5);})['then'](function(){var _0x35b0e7=_0x5846fa;_0x52e2bf[_0x35b0e7('0xc54')]=![],_0x52e2bf[_0x35b0e7('0x215b')]=angular[_0x35b0e7('0x20a')](_0x52e2bf[_0x35b0e7('0x11b9')]),_0x52e2bf[_0x35b0e7('0x214a')]=angular[_0x35b0e7('0x20a')](_0x52e2bf[_0x35b0e7('0xbf7')]),_0x5705af[_0x35b0e7('0xe10')]({'title':_0x35b0e7('0x2eb'),'msg':_0x35b0e7('0x1e1f')});})[_0x5846fa('0x253d')](function(_0x1775c2){var _0x356b7c=_0x5846fa;_0x5705af[_0x356b7c('0x187f')]({'title':_0x1775c2[_0x356b7c('0x2fa')]?_0x356b7c('0x16c2')+_0x1775c2[_0x356b7c('0x2fa')]+_0x356b7c('0x169e')+_0x1775c2[_0x356b7c('0x24df')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x1775c2[_0x356b7c('0x2fa')]?JSON[_0x356b7c('0xa48')](_0x1775c2[_0x356b7c('0x10fd')]):_0x1775c2[_0x356b7c('0x684')]()});});}function _0x345fdf(){var _0x23d362=_0x335d64;_0x5c828c[_0x23d362('0x1120')]();}}const _0x3afe54=_0x4a2d80,_0x3ba209=_0x4fb511['p']+_0x1a8446('0x178f');_0x4d39e[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x13a0'),_0x1a8446('0x2378'),_0x1a8446('0x39b'),_0x1a8446('0xcb3'),'license',_0x1a8446('0x143f'),_0x1a8446('0x157'),_0x1a8446('0x2a4'),'Auth',_0x1a8446('0x48f'),_0x1a8446('0x1a50')];function _0x4d39e(_0x5a6a77,_0x20e6be,_0x5a07c3,_0x40dde1,_0x4b8ba6,_0x176899,_0x1431ed,_0x1f302f,_0x24c2e3,_0x51245f,_0x43388e,_0x47ebf5){var _0x35bf51=_0x1a8446,_0x5923b4=this;_0x5923b4[_0x35bf51('0x7fc')]=_0x51245f['getCurrentUser'](),_0x5923b4[_0x35bf51('0x1202')]=_0x176899,_0x5923b4[_0x35bf51('0x143f')]=_0x1431ed,_0x5923b4[_0x35bf51('0x1d53')]=_0x5923b4[_0x35bf51('0x143f')][_0x35bf51('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5923b4[_0x35bf51('0x18cc')]=_0x20e6be[_0x35bf51('0x1cc2')]()+_0x35bf51('0x356')+_0x20e6be[_0x35bf51('0x160c')](),_0x5923b4['whatsappQueue']=_0x43388e||_0x5a6a77[_0x35bf51('0x25cf')][_0x35bf51('0x48f')]||{},_0x5923b4[_0x35bf51('0x1a50')]=_0x47ebf5&&_0x47ebf5[_0x35bf51('0xd15')]==0x1?_0x47ebf5[_0x35bf51('0x580')][0x0]:null,_0x5923b4[_0x35bf51('0xada')]=_0x51245f[_0x35bf51('0xffd')](_0x5923b4[_0x35bf51('0x1a50')]?_0x5923b4['userProfileSection'][_0x35bf51('0xada')]:null),_0x5923b4[_0x35bf51('0x9f0')]={},_0x5923b4[_0x35bf51('0xe5c')]=_0x5a6a77[_0x35bf51('0x25cf')]['tab']||0x0,_0x5923b4[_0x35bf51('0x158f')]=_0x4732a2,_0x5923b4[_0x35bf51('0x16a5')]=_0x1cae10,_0x5923b4[_0x35bf51('0xc10')]=_0x24c2e3['info'],_0x5923b4[_0x35bf51('0x659')]=_0x2c4f06,_0x5923b4[_0x35bf51('0x480')]=_0x270f66;function _0x4732a2(_0x20e641,_0x487b4e){var _0x3fd3ba=_0x35bf51;_0x5a07c3[_0x3fd3ba('0x1e6d')]({'controller':'WhatsappQueueteamaddController','controllerAs':'vm','templateUrl':_0x3ba209,'parent':angular['element'](_0x40dde1[_0x3fd3ba('0x54c')]),'targetEvent':_0x487b4e,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x20e641,'whatsappQueues':_0x5923b4['whatsappQueues']?_0x5923b4[_0x3fd3ba('0xfd6')][_0x3fd3ba('0x580')]:[],'crudPermissions':_0x5923b4[_0x3fd3ba('0xada')]}});}function _0x1cae10(_0x4d0d9b,_0x379b75){var _0x25a694=_0x35bf51;_0x5a07c3[_0x25a694('0x1e6d')]({'controller':_0x25a694('0x934'),'controllerAs':'vm','templateUrl':_0x279a46,'parent':angular[_0x25a694('0x1aa8')](_0x40dde1[_0x25a694('0x54c')]),'targetEvent':_0x379b75,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x4d0d9b,'whatsappQueues':_0x5923b4[_0x25a694('0xfd6')]?_0x5923b4['whatsappQueues'][_0x25a694('0x580')]:[],'crudPermissions':_0x5923b4[_0x25a694('0xada')],'realtime':![]}});}function _0x2c4f06(){var _0x4bf4fe=_0x35bf51;_0x5a6a77['go'](_0x4bf4fe('0x272f'),{},{'reload':'app.whatsapp.whatsappQueues'});}function _0x270f66(){var _0x49ff88=_0x35bf51;_0x1f302f['whatsappQueue'][_0x49ff88('0x264e')]({'id':_0x5923b4[_0x49ff88('0x48f')]['id']},_0x5923b4[_0x49ff88('0x48f')])['$promise']['then'](function(){var _0x518a5d=_0x49ff88;_0x24c2e3['success']({'title':_0x518a5d('0x1fb3'),'msg':_0x5923b4[_0x518a5d('0x48f')][_0x518a5d('0x25d6')]?_0x5923b4['whatsappQueue'][_0x518a5d('0x25d6')]+_0x518a5d('0x1734'):''});})[_0x49ff88('0x253d')](function(_0x546beb){var _0xd21ea3=_0x49ff88;_0x24c2e3[_0xd21ea3('0x187f')]({'title':_0x546beb[_0xd21ea3('0x2fa')]?_0xd21ea3('0x16c2')+_0x546beb['status']+_0xd21ea3('0x169e')+_0x546beb['statusText']:_0xd21ea3('0x12c8'),'msg':_0x546beb[_0xd21ea3('0x10fd')]?JSON[_0xd21ea3('0xa48')](_0x546beb['data']):_0x546beb[_0xd21ea3('0x684')]()});});}}const _0x2ac87f=_0x4d39e;_0x1c8b15[_0x1a8446('0x1e33')]=[_0x1a8446('0x51'),_0x1a8446('0x27bf'),_0x1a8446('0x145b'),_0x1a8446('0x1261'),'$mdDialog',_0x1a8446('0x39b'),_0x1a8446('0x186b'),_0x1a8446('0xcb3'),_0x1a8446('0xfd6'),_0x1a8446('0x1e97'),_0x1a8446('0x1a50'),'api',_0x1a8446('0x25c'),_0x1a8446('0x2a4'),_0x1a8446('0x1dfd'),_0x1a8446('0x1202'),'setting'];function _0x1c8b15(_0x2186a3,_0x448565,_0x12cead,_0xee9467,_0x3a7f00,_0x36ee90,_0x5ccab9,_0xedb1ae,_0x3ff69f,_0x2a821c,_0x11e443,_0x497ed1,_0x51b2ca,_0x5d9c9b,_0x80b4b8,_0x5671ad,_0xf58ff1){var _0x6aa8eb=_0x1a8446,_0x50fea1=this;_0x50fea1['license']=_0x5671ad,_0x50fea1['setting']=_0xf58ff1,_0x50fea1['currentUser']=_0x80b4b8[_0x6aa8eb('0xacc')](),_0x50fea1[_0x6aa8eb('0xfd6')]=_0x3ff69f||{'count':0x0,'rows':[]},_0x50fea1['userProfile']=_0x2a821c,_0x50fea1[_0x6aa8eb('0x1a50')]=_0x11e443&&_0x11e443[_0x6aa8eb('0xd15')]==0x1?_0x11e443[_0x6aa8eb('0x580')][0x0]:null,_0x50fea1[_0x6aa8eb('0xada')]=_0x80b4b8[_0x6aa8eb('0xffd')](_0x50fea1[_0x6aa8eb('0x1a50')]?_0x50fea1[_0x6aa8eb('0x1a50')][_0x6aa8eb('0xada')]:null),_0x50fea1[_0x6aa8eb('0x12b6')]=_0x6aa8eb('0xfd6'),_0x50fea1[_0x6aa8eb('0x164')]='',_0x50fea1[_0x6aa8eb('0x8cc')]=null,_0x50fea1[_0x6aa8eb('0x16b')]=[],_0x50fea1[_0x6aa8eb('0x582')]={'fields':_0x6aa8eb('0x698'),'sort':_0x6aa8eb('0xd82'),'channel':'whatsapp','limit':0xa,'page':0x1},_0x50fea1[_0x6aa8eb('0x2501')]=_0x51538b()[_0x6aa8eb('0x184a')]([{'option':_0x6aa8eb('0x263b'),'value':_0x6aa8eb('0x12ea')},{'option':_0x6aa8eb('0x232a'),'value':_0x6aa8eb('0x2576')}],function(_0x557d84){var _0x2cc830=_0x6aa8eb;return _0x51538b()['replace'](_0x557d84[_0x2cc830('0x12f4')],new RegExp('\x27','g'),'');}),_0x50fea1['editstate']=_0x300019,_0x50fea1[_0x6aa8eb('0x158f')]=_0x27a68a,_0x50fea1[_0x6aa8eb('0x16a5')]=_0x41c98f,_0x50fea1[_0x6aa8eb('0x271')]=_0x150382,_0x50fea1[_0x6aa8eb('0x2389')]=_0x2f679,_0x50fea1['success']=_0x2ab413,_0x50fea1['getWhatsappQueues']=_0x3a807f,_0x50fea1[_0x6aa8eb('0x223c')]=_0xd9441,_0x50fea1[_0x6aa8eb('0x1f22')]=_0x54db38,_0x50fea1[_0x6aa8eb('0x1abb')]=_0x28c3d0,_0x50fea1[_0x6aa8eb('0x284b')]=_0x112829,_0x50fea1[_0x6aa8eb('0x2330')]=_0x842994,_0x50fea1[_0x6aa8eb('0x1e53')]=_0x7c68f2;function _0x300019(_0x25469b){var _0x5f20d0=_0x6aa8eb;_0x12cead['go'](_0x5f20d0('0x8e3'),{'id':_0x25469b['id'],'whatsappQueue':_0x25469b,'crudPermissions':_0x50fea1[_0x5f20d0('0xada')]});}function _0x27a68a(_0x2956e7,_0x1d5543){var _0x3a22de=_0x6aa8eb;_0x3a7f00[_0x3a22de('0x1e6d')]({'controller':_0x3a22de('0x27e2'),'controllerAs':'vm','templateUrl':_0x3ba209,'parent':angular['element'](_0x36ee90['body']),'targetEvent':_0x1d5543,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x2956e7,'whatsappQueues':_0x50fea1[_0x3a22de('0xfd6')]?_0x50fea1['whatsappQueues']['rows']:[],'crudPermissions':_0x50fea1[_0x3a22de('0xada')]}});}function _0x41c98f(_0x4be2c0,_0x5e2cb0){var _0x3d5b3b=_0x6aa8eb;_0x3a7f00['show']({'controller':_0x3d5b3b('0x934'),'controllerAs':'vm','templateUrl':_0x279a46,'parent':angular[_0x3d5b3b('0x1aa8')](_0x36ee90[_0x3d5b3b('0x54c')]),'targetEvent':_0x5e2cb0,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x4be2c0,'whatsappQueues':_0x50fea1[_0x3d5b3b('0xfd6')]?_0x50fea1[_0x3d5b3b('0xfd6')][_0x3d5b3b('0x580')]:[],'crudPermissions':_0x50fea1[_0x3d5b3b('0xada')],'realtime':![]}});}function _0x150382(_0x308b6b,_0x3eaa75){var _0x20f578=_0x6aa8eb,_0x425c88=_0x3a7f00[_0x20f578('0x281e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x51538b()[_0x20f578('0x196a')]('whatsappQueue')+'?')[_0x20f578('0x102e')](''+(_0x308b6b[_0x20f578('0x25d6')]||_0x20f578('0x48f'))+''+_0x20f578('0x210d'))[_0x20f578('0x5b5')]('delete\x20whatsappQueue')[_0x20f578('0x116d')](_0x3eaa75)['ok']('OK')[_0x20f578('0x2030')](_0x20f578('0x2410'));_0x3a7f00[_0x20f578('0x1e6d')](_0x425c88)[_0x20f578('0xaa5')](function(){_0x54db38(_0x308b6b);},function(){var _0x1f488b=_0x20f578;console[_0x1f488b('0x18d5')](_0x1f488b('0x2410'));});}function _0x2f679(){var _0xfeae01=_0x6aa8eb;if(_0x80b4b8[_0xfeae01('0x26e8')](_0xfeae01('0x178b')))_0x12cead['go'](_0xfeae01('0x1ad9'),{});else return _0x497ed1[_0xfeae01('0x1a50')][_0xfeae01('0x2122')]({'userProfileId':_0x80b4b8[_0xfeae01('0xacc')]()[_0xfeae01('0x2168')],'sectionId':0x83e})[_0xfeae01('0x1dc2')][_0xfeae01('0xaa5')](function(_0x480bff){var _0x3f0037=_0xfeae01,_0x4ca5e3=_0x480bff&&_0x480bff['rows']?_0x480bff[_0x3f0037('0x580')][0x0]:null;_0x4ca5e3&&_0x4ca5e3[_0x3f0037('0xbd3')]?_0x12cead['go'](_0x3f0037('0x1ad9'),{}):_0x5d9c9b[_0x3f0037('0x3a1')]({'title':_0xedb1ae[_0x3f0037('0x213f')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0xedb1ae[_0x3f0037('0x213f')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0xfeae01('0x253d')](function(_0x239dd8){var _0x44f274=_0xfeae01;_0x5d9c9b[_0x44f274('0x187f')]({'title':_0x239dd8[_0x44f274('0x2fa')]?'API:'+_0x239dd8[_0x44f274('0x2fa')]+_0x44f274('0x169e')+_0x239dd8[_0x44f274('0x24df')]:'USERPROFILE:GET_SECTION','msg':_0x239dd8[_0x44f274('0x2fa')]?JSON['stringify'](_0x239dd8[_0x44f274('0x10fd')]):_0x239dd8[_0x44f274('0x684')]()});});}var _0x2652a6=!![],_0x3de92f=0x1;_0x2186a3['$watch'](_0x6aa8eb('0x1788'),function(_0x28f009,_0x4524ce){var _0x377d83=_0x6aa8eb;_0x2652a6?_0x5ccab9(function(){_0x2652a6=![];}):(!_0x4524ce&&(_0x3de92f=_0x50fea1[_0x377d83('0x582')][_0x377d83('0x41')]),_0x28f009!==_0x4524ce&&(_0x50fea1['query'][_0x377d83('0x41')]=0x1),!_0x28f009&&(_0x50fea1['query'][_0x377d83('0x41')]=_0x3de92f),_0x50fea1[_0x377d83('0x933')]());});function _0x2ab413(_0x11d185){_0x50fea1['whatsappQueues']=_0x11d185||{'count':0x0,'rows':[]};}function _0x3a807f(){var _0x139c82=_0x6aa8eb;_0x50fea1[_0x139c82('0x582')]['offset']=(_0x50fea1[_0x139c82('0x582')][_0x139c82('0x41')]-0x1)*_0x50fea1[_0x139c82('0x582')][_0x139c82('0xf4d')],_0x80b4b8['hasRole'](_0x139c82('0x178b'))?_0x50fea1[_0x139c82('0x159a')]=_0x497ed1[_0x139c82('0x48f')][_0x139c82('0x2122')](_0x50fea1['query'],_0x2ab413)[_0x139c82('0x1dc2')]:(_0x50fea1[_0x139c82('0x582')]['id']=_0x50fea1['userProfile']['id'],_0x50fea1['query'][_0x139c82('0x224d')]=_0x139c82('0x1991'),_0x50fea1['promise']=_0x497ed1[_0x139c82('0x1e97')][_0x139c82('0x1cf1')](_0x50fea1[_0x139c82('0x582')],_0x2ab413)[_0x139c82('0x1dc2')]);}function _0xd9441(_0x58ba88,_0x4f3ba8){var _0x815cba=_0x6aa8eb;_0x3a7f00['show']({'controller':_0x815cba('0x4f9'),'controllerAs':'vm','templateUrl':_0x3d89f9,'parent':angular['element'](_0x36ee90['body']),'targetEvent':_0x58ba88,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x4f3ba8,'whatsappQueues':_0x50fea1[_0x815cba('0xfd6')][_0x815cba('0x580')],'license':_0x50fea1['license'],'setting':_0x50fea1['setting'],'crudPermissions':_0x50fea1[_0x815cba('0xada')]}});}function _0x54db38(_0x9ffe21){var _0x42122f=_0x6aa8eb;_0x497ed1['whatsappQueue'][_0x42122f('0x926')]({'id':_0x9ffe21['id']})[_0x42122f('0x1dc2')][_0x42122f('0xaa5')](function(){var _0x3a847f=_0x42122f;_0x51538b()[_0x3a847f('0xf6d')](_0x50fea1[_0x3a847f('0xfd6')]['rows'],{'id':_0x9ffe21['id']}),_0x50fea1[_0x3a847f('0xfd6')][_0x3a847f('0xd15')]-=0x1,!_0x50fea1[_0x3a847f('0xfd6')][_0x3a847f('0x580')]['length']&&_0x50fea1['getWhatsappQueues'](),_0x5d9c9b[_0x3a847f('0xe10')]({'title':_0x51538b()[_0x3a847f('0x196a')](_0x3a847f('0xf58'))+_0x3a847f('0x8bb'),'msg':_0x9ffe21['name']?_0x9ffe21[_0x3a847f('0x25d6')]+'\x20has\x20been\x20deleted!':''});})[_0x42122f('0x253d')](function(_0x526520){var _0x3d31ea=_0x42122f;if(_0x526520[_0x3d31ea('0x10fd')]&&_0x526520['data'][_0x3d31ea('0x4c6')]&&_0x526520[_0x3d31ea('0x10fd')][_0x3d31ea('0x4c6')][_0x3d31ea('0x2587')]){_0x50fea1[_0x3d31ea('0x4c6')]=_0x526520[_0x3d31ea('0x10fd')][_0x3d31ea('0x4c6')]||[{'message':_0x526520[_0x3d31ea('0x684')](),'type':'SYSTEM:DELETEwhatsappQueue'}];for(var _0x523252=0x0;_0x523252<_0x526520[_0x3d31ea('0x10fd')][_0x3d31ea('0x4c6')]['length'];_0x523252++){_0x5d9c9b['error']({'title':_0x526520[_0x3d31ea('0x10fd')][_0x3d31ea('0x4c6')][_0x523252][_0x3d31ea('0x6c8')],'msg':_0x526520['data']['errors'][_0x523252][_0x3d31ea('0x1402')]});}}else _0x5d9c9b[_0x3d31ea('0x187f')]({'title':_0x526520[_0x3d31ea('0x2fa')]?_0x3d31ea('0x16c2')+_0x526520[_0x3d31ea('0x2fa')]+_0x3d31ea('0x169e')+_0x526520[_0x3d31ea('0x24df')]:'SYSTEM:DELETEwhatsappQueue','msg':_0x526520[_0x3d31ea('0x10fd')]?JSON[_0x3d31ea('0xa48')](_0x526520[_0x3d31ea('0x10fd')][_0x3d31ea('0x1402')]):_0x526520[_0x3d31ea('0x1402')]||_0x526520['toString']()});});}function _0x28c3d0(){var _0x56d55b=_0x6aa8eb,_0x39626b=angular[_0x56d55b('0x20a')](_0x50fea1[_0x56d55b('0x16b')]);return _0x50fea1['selectedWhatsappQueues']=[],_0x39626b;}function _0x112829(_0x15500a){var _0x55a24d=_0x6aa8eb,_0x318440=_0x3a7f00['confirm']()[_0x55a24d('0x110a')](_0x55a24d('0x1b70'))[_0x55a24d('0x102e')](_0x55a24d('0x389')+_0x50fea1[_0x55a24d('0x16b')]['length']+'\x20selected
'+_0x55a24d('0x210d'))[_0x55a24d('0x5b5')](_0x55a24d('0x2231'))['targetEvent'](_0x15500a)['ok']('OK')[_0x55a24d('0x2030')](_0x55a24d('0x2410'));_0x3a7f00[_0x55a24d('0x1e6d')](_0x318440)[_0x55a24d('0xaa5')](function(){var _0x46797e=_0x55a24d;_0x50fea1[_0x46797e('0x16b')][_0x46797e('0x15b5')](function(_0x34cc31){_0x54db38(_0x34cc31);}),_0x50fea1['selectedWhatsappQueues']=[];});}function _0x842994(){var _0x11ee8f=_0x6aa8eb;_0x50fea1[_0x11ee8f('0x16b')]=[];}function _0x7c68f2(){var _0x296b88=_0x6aa8eb;_0x50fea1['selectedWhatsappQueues']=_0x50fea1[_0x296b88('0xfd6')]['rows'];}}const _0x45af23=_0x1c8b15;_0x3e0176['$inject']=[_0x1a8446('0x2ce'),'$translatePartialLoaderProvider'];function _0x3e0176(_0x45d1ff,_0x58693b){var _0x55989d=_0x1a8446;_0x45d1ff[_0x55989d('0xb46')](_0x55989d('0x1ca3'),{'abstract':!![],'url':_0x55989d('0x14a')})['state'](_0x55989d('0x272f'),{'url':'/whatsappQueues','views':{'content@app':{'templateUrl':_0x847cb0,'controller':_0x55989d('0xef5')}},'resolve':{'whatsappQueues':[_0x55989d('0x1d16'),'Auth',function _0x116740(_0x409024,_0x397fc0){var _0x2a0fe6=_0x55989d;return _0x397fc0[_0x2a0fe6('0x26e8')]('admin')?_0x409024[_0x2a0fe6('0x149f')](_0x2a0fe6('0x11e'),{'fields':_0x2a0fe6('0x698'),'sort':_0x2a0fe6('0xd82'),'channel':_0x2a0fe6('0x220d'),'limit':0xa,'offset':0x0}):_0x409024[_0x2a0fe6('0x149f')](_0x2a0fe6('0x49a'),{'id':_0x397fc0[_0x2a0fe6('0xacc')]()[_0x2a0fe6('0x2168')],'section':_0x2a0fe6('0x1991'),'fields':_0x2a0fe6('0x698'),'sort':'-updatedAt','channel':_0x2a0fe6('0x220d'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x55989d('0x1dfd'),function _0x283a63(_0x29703b,_0x42b74e){var _0x12cd2f=_0x55989d;return _0x42b74e[_0x12cd2f('0x26e8')](_0x12cd2f('0x178b'))?null:_0x29703b['resolve'](_0x12cd2f('0x567'),{'fields':_0x12cd2f('0x1bb0'),'id':_0x42b74e[_0x12cd2f('0xacc')]()[_0x12cd2f('0x2168')]});}],'userProfileSection':[_0x55989d('0x1d16'),'Auth',function _0x32154b(_0x2964a3,_0xa22c21){var _0x5765db=_0x55989d;return _0xa22c21[_0x5765db('0x26e8')](_0x5765db('0x178b'))?null:_0x2964a3[_0x5765db('0x149f')](_0x5765db('0x89e'),{'fields':_0x5765db('0xe6a'),'userProfileId':_0xa22c21[_0x5765db('0xacc')]()[_0x5765db('0x2168')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})['state'](_0x55989d('0x8e3'),{'url':_0x55989d('0xad'),'params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1d05f5,'controller':_0x55989d('0x49b')}},'resolve':{'whatsappQueue':[_0x55989d('0x1d16'),_0x55989d('0x703'),function _0x1f02f9(_0x30f279,_0x565247){var _0x45855e=_0x55989d;return _0x30f279['resolve']('whatsappQueue@get',{'fields':_0x45855e('0x698'),'id':_0x565247['id']});}],'userProfileSection':['apiResolver','Auth',function _0x47fb84(_0x3fd3ad,_0x1f10c0){var _0x1ab627=_0x55989d;return _0x3fd3ad[_0x1ab627('0x149f')](_0x1ab627('0x89e'),{'fields':_0x1ab627('0xe6a'),'userProfileId':_0x1f10c0[_0x1ab627('0xacc')]()[_0x1ab627('0x2168')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})[_0x55989d('0xb46')](_0x55989d('0x116a'),{'url':'/whatsappAccounts','views':{'content@app':{'templateUrl':_0x1e80bc,'controller':_0x55989d('0x2657')}},'resolve':{'whatsappAccounts':[_0x55989d('0x1d16'),_0x55989d('0x1dfd'),function _0x3293da(_0x1a68fd,_0xfd9dfb){var _0x207899=_0x55989d;return _0xfd9dfb[_0x207899('0x26e8')](_0x207899('0x178b'))?_0x1a68fd[_0x207899('0x149f')](_0x207899('0x5fb'),{'fields':_0x207899('0x24d7'),'sort':_0x207899('0xd82'),'limit':0xa,'offset':0x0}):_0x1a68fd[_0x207899('0x149f')](_0x207899('0x49a'),{'id':_0xfd9dfb['getCurrentUser']()[_0x207899('0x2168')],'section':_0x207899('0xe5f'),'fields':_0x207899('0x24d7'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x55989d('0x1d16'),_0x55989d('0x1dfd'),function _0x5ed166(_0x1fee48,_0x24e261){var _0x36892d=_0x55989d;return _0x24e261[_0x36892d('0x26e8')](_0x36892d('0x178b'))?null:_0x1fee48[_0x36892d('0x149f')](_0x36892d('0x567'),{'fields':_0x36892d('0x1bb0'),'id':_0x24e261['getCurrentUser']()[_0x36892d('0x2168')]});}],'userProfileSection':[_0x55989d('0x1d16'),_0x55989d('0x1dfd'),function _0x133231(_0x4335b8,_0x2fada4){var _0x1bc179=_0x55989d;return _0x2fada4[_0x1bc179('0x26e8')](_0x1bc179('0x178b'))?null:_0x4335b8['resolve']('userProfileSection@get',{'fields':_0x1bc179('0xe6a'),'userProfileId':_0x2fada4[_0x1bc179('0xacc')]()[_0x1bc179('0x2168')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':'whatsapp'})['state'](_0x55989d('0x1bf5'),{'url':_0x55989d('0xad'),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x342507,'controller':_0x55989d('0x20a0')}},'resolve':{'whatsappAccount':[_0x55989d('0x1d16'),'$stateParams',function _0x258156(_0x1982d0,_0x5af804){var _0x4783e6=_0x55989d;return _0x1982d0[_0x4783e6('0x149f')](_0x4783e6('0x5fb'),{'fields':_0x4783e6('0x24d7'),'id':_0x5af804['id']});}],'userProfileSection':['apiResolver',_0x55989d('0x1dfd'),function _0x58dfdd(_0x26a441,_0x3c5b1d){var _0x3a849e=_0x55989d;return _0x26a441[_0x3a849e('0x149f')](_0x3a849e('0x89e'),{'fields':_0x3a849e('0xe6a'),'userProfileId':_0x3c5b1d[_0x3a849e('0xacc')]()[_0x3a849e('0x2168')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x55989d('0x220d')}),_0x58693b[_0x55989d('0x1de5')](_0x55989d('0x4fc'));}angular[_0x1a8446('0x1f8d')]('app.whatsapp',[_0x1a8446('0x1308'),'ngPassword',_0x1a8446('0x1d87'),'flow','mdColorPicker','ckeditor','ng-sortable',_0x1a8446('0x150f'),_0x1a8446('0x110'),'mdPickers','mwFormBuilder','mwFormViewer',_0x1a8446('0x20b4'),_0x1a8446('0x112'),_0x1a8446('0x2579'),'ngEmbed','angularMaterialFormBuilder','material.components.expansionPanels',_0x1a8446('0x1320'),'angular.filter',_0x1a8446('0x1daf')])[_0x1a8446('0x1b14')](_0x3e0176)[_0x1a8446('0x780')](_0x1a8446('0x1b77'),_0x1b09a8)['controller'](_0x1a8446('0x2450'),_0x3d88e3)[_0x1a8446('0x780')]('WhatsappAccountagentaddController',_0x16ee66)['controller'](_0x1a8446('0x1d1f'),_0x4541e0)[_0x1a8446('0x780')](_0x1a8446('0x996'),_0x5e6be8)[_0x1a8446('0x780')]('EditWhatsappAccountAppautoreplyDialogController',_0x5d7abf)[_0x1a8446('0x780')](_0x1a8446('0x391'),_0x30a4cf)[_0x1a8446('0x780')](_0x1a8446('0x2270'),_0x21b428)[_0x1a8446('0x780')]('EditWhatsappAccountAppgotoifDialogController',_0x53e2f2)[_0x1a8446('0x780')]('EditWhatsappAccountAppgotopDialogController',_0x187ef7)[_0x1a8446('0x780')]('EditWhatsappAccountAppintervalDialogController',_0x4b542f)[_0x1a8446('0x780')](_0x1a8446('0x1552'),_0x12ad31)['controller']('EditWhatsappAccountAppqueueDialogController',_0x11f393)[_0x1a8446('0x780')]('EditWhatsappAccountAppsystemDialogController',_0x52dcba)['controller'](_0x1a8446('0x1e89'),_0x1d5f17)[_0x1a8446('0x780')](_0x1a8446('0x206e'),_0x8d5213)['controller'](_0x1a8446('0x125d'),_0x4d5f54)[_0x1a8446('0x780')](_0x1a8446('0xef6'),_0x14670f)[_0x1a8446('0x780')](_0x1a8446('0xbc9'),_0x15c7ab)[_0x1a8446('0x780')]('WhatsappAccountDispositionsController',_0xea7aa6)['controller']('WhatsappAccountsController',_0xcbae09)[_0x1a8446('0x780')](_0x1a8446('0x4f9'),_0x23a5ac)[_0x1a8446('0x780')]('WhatsappQueueagentaddController',_0x596585)[_0x1a8446('0x780')](_0x1a8446('0x27e2'),_0x3afe54)[_0x1a8446('0x780')]('WhatsappQueueController',_0x2ac87f)['controller'](_0x1a8446('0xe06'),_0x45af23);const _0x4665f1=_0x4fb511['p']+_0x1a8446('0x741'),_0x149766=_0x4fb511['p']+_0x1a8446('0x2021'),_0x37b320=_0x4fb511['p']+'src/js/modules/core/layouts/content-with-toolbar.html/content-with-toolbar-[chunkhash].html',_0x74befd=_0x4fb511['p']+_0x1a8446('0x497'),_0x2632dd=_0x4fb511['p']+_0x1a8446('0x232'),_0x27cfb4=_0x4fb511['p']+'src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar-[chunkhash].html',_0x16d051=_0x4fb511['p']+_0x1a8446('0x102f');_0x344ed6['$inject']=[_0x1a8446('0x145b'),'$window','$cookies','$timeout',_0x1a8446('0x157'),_0x1a8446('0x1dfd'),'setting'];function _0x344ed6(_0x4a643b,_0x49055b,_0x23a795,_0x1390e0,_0x5096f0,_0xc8d9ba,_0x2f7a7b){var _0x5642d2=_0x1a8446,_0x325349=this;_0x325349[_0x5642d2('0x1b2b')]=![],_0x325349[_0x5642d2('0x1bd4')]=![],_0x325349[_0x5642d2('0x842')]=_0x5096f0[_0x5642d2('0x842')];function _0x191a5c(){var _0x356860=_0x5642d2;if(_0x4a643b[_0x356860('0x25cf')][_0x356860('0xbe2')]&&_0x4a643b['params'][_0x356860('0x2406')])return _0xc8d9ba[_0x356860('0x13f4')](),_0x325349[_0x356860('0x1b2b')]=!![],_0x23a795['put'](_0x356860('0x10f8'),_0x4a643b[_0x356860('0x25cf')]['token']),_0x5096f0[_0x356860('0x272b')]['get']({'id':_0x4a643b['params'][_0x356860('0x2406')]})[_0x356860('0x1dc2')]['then'](function(_0x5c1c70){var _0x55627a=_0x356860;_0x5c1c70&&(_0xc8d9ba['setCurrentUser'](_0x5c1c70),_0x4a643b['go'](_0x55627a('0xd98')));})[_0x356860('0x1889')](function(){var _0x53f299=_0x356860;_0x325349[_0x53f299('0x1b2b')]=![];});else _0xc8d9ba[_0x356860('0x96d')]()&&_0x4a643b['go']('app.dashboards.general');_0x325349[_0x356860('0x1bd4')]=_0x2f7a7b[_0x356860('0x1bd4')];}function _0x35ef62(){var _0x520e33=_0x5642d2;return _0x325349[_0x520e33('0x1b2b')]=!![],_0x325349['message']='',_0xc8d9ba[_0x520e33('0x17f5')](_0x325349[_0x520e33('0xe1b')])[_0x520e33('0xaa5')](function(){var _0x4d52f8=_0x520e33;return _0x4a643b['go'](_0x4d52f8('0xd98'));})[_0x520e33('0x253d')](function(_0x1e240a){var _0x5f05b6=_0x520e33;_0x325349['message']=_0x1e240a['data']?_0x1e240a[_0x5f05b6('0x10fd')][_0x5f05b6('0x1402')]:_0x1e240a[_0x5f05b6('0x1402')];})['finally'](function(){_0x325349['progresslogin']=![];});}function _0x16572a(_0x218676){var _0xb4787d=_0x5642d2;_0x325349[_0xb4787d('0x1402')]='',_0x49055b[_0xb4787d('0x18cc')][_0xb4787d('0x18ae')]=_0xc8d9ba[_0xb4787d('0x2088')](_0x218676);}_0x325349['login']=_0x35ef62,_0x325349[_0x5642d2('0x1ce7')]=_0x16572a,_0x325349[_0x5642d2('0x2318')]=_0x191a5c,_0x325349[_0x5642d2('0x2318')]();}const _0x505f86=_0x344ed6;_0x396557[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x396557(_0x2e52fe,_0x20fc4b){var _0x4dec80=_0x1a8446;_0x2e52fe[_0x4dec80('0xb46')]('app.login',{'url':_0x4dec80('0x1ec4'),'views':{'main@':{'templateUrl':_0x149766,'controller':'MainController\x20as\x20vm'},'content@app.login':{'templateUrl':_0x4665f1,'controller':_0x4dec80('0x8e')}},'bodyClass':_0x4dec80('0x17f5')}),_0x20fc4b[_0x4dec80('0x1de5')](_0x4dec80('0x222c'));}angular[_0x1a8446('0x1f8d')](_0x1a8446('0x1bba'),[])[_0x1a8446('0x1b14')](_0x396557)[_0x1a8446('0x780')]('LoginController',_0x505f86);const _0x14496e=_0x4fb511['p']+_0x1a8446('0x1fe4');_0x2a7f5d['$inject']=[_0x1a8446('0x1dfd'),_0x1a8446('0x2a4'),_0x1a8446('0xcb3'),_0x1a8446('0x145b'),_0x1a8446('0x157')];function _0x2a7f5d(_0x405f97,_0x3dfe5a,_0x34c887,_0x32f5e2,_0x2e62c2){var _0x403501=_0x1a8446,_0x3cf980=this;_0x3cf980['form']={},_0x3cf980[_0x403501('0x842')]=_0x2e62c2[_0x403501('0x842')];function _0x2e4285(){var _0x329ded=_0x403501;_0x405f97[_0x329ded('0x96d')]()&&_0x32f5e2['go'](_0x329ded('0xd98'));}function _0x2861fa(){var _0x5b5318=_0x403501;return _0x2e62c2[_0x5b5318('0xa88')][_0x5b5318('0x1ba6')](_0x3cf980[_0x5b5318('0xe1b')])[_0x5b5318('0x1dc2')]['then'](function(){var _0x4a5115=_0x5b5318;_0x3dfe5a[_0x4a5115('0xe10')]({'title':_0x34c887['instant'](_0x4a5115('0x3a7')),'msg':_0x34c887[_0x4a5115('0x213f')](_0x4a5115('0x22ff'))});})[_0x5b5318('0x253d')](function(_0x561861){var _0xa27da6=_0x5b5318;_0x561861&&_0x3dfe5a['error']({'title':_0x34c887[_0xa27da6('0x213f')](_0xa27da6('0xc0a')),'msg':_0x561861['data']?_0x561861[_0xa27da6('0x10fd')][_0xa27da6('0x1402')]||_0x561861[_0xa27da6('0x1402')]||_0x561861:_0x561861[_0xa27da6('0x1402')]||_0x561861});});}_0x3cf980['forgotPassword']=_0x2861fa,_0x3cf980['onInit']=_0x2e4285;}const _0x51e76c=_0x2a7f5d;_0x10c345[_0x1a8446('0x1e33')]=['$stateProvider',_0x1a8446('0x208f')];function _0x10c345(_0x4250c3,_0x7f75c3){var _0x106af8=_0x1a8446;_0x4250c3[_0x106af8('0xb46')](_0x106af8('0x2190'),{'url':_0x106af8('0x137b'),'views':{'main@':{'templateUrl':_0x149766,'controller':_0x106af8('0x193a')},'content@app.forgot':{'templateUrl':_0x14496e,'controller':_0x106af8('0x1c4c')}},'bodyClass':'forgot'}),_0x7f75c3[_0x106af8('0x1de5')](_0x106af8('0x1c51'));}angular['module']('app.forgot',[])[_0x1a8446('0x1b14')](_0x10c345)[_0x1a8446('0x780')](_0x1a8446('0x64e'),_0x51e76c);const _0x314dfc=_0x4fb511['p']+_0x1a8446('0x284e');_0x565343[_0x1a8446('0x1e33')]=[_0x1a8446('0x1dfd'),_0x1a8446('0x2a4'),'$translate',_0x1a8446('0x145b'),'api',_0x1a8446('0x703')];function _0x565343(_0x11a9c8,_0x2bf074,_0x4d7949,_0x2065a5,_0x41e10c,_0x22dda9){var _0x4e76ea=_0x1a8446,_0x5142d3=this;_0x5142d3[_0x4e76ea('0xe1b')]={'token':_0x22dda9[_0x4e76ea('0xbe2')]},_0x5142d3[_0x4e76ea('0x143f')]={},_0x5142d3[_0x4e76ea('0x842')]=_0x41e10c[_0x4e76ea('0x842')];function _0x2e2164(){var _0x55dc56=_0x4e76ea;return _0x11a9c8[_0x55dc56('0x96d')]()&&_0x2065a5['go']('app.dashboards.general'),_0x41e10c[_0x55dc56('0x143f')][_0x55dc56('0x496')]({'id':0x1})[_0x55dc56('0x1dc2')][_0x55dc56('0xaa5')](function(_0xef92d5){var _0x2c2f7b=_0x55dc56;_0x5142d3[_0x2c2f7b('0x143f')]=_0xef92d5,_0x5142d3[_0x2c2f7b('0x1d53')]=_0x5142d3[_0x2c2f7b('0x143f')][_0x2c2f7b('0x1fa')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x55dc56('0x253d')](function(_0x125f61){var _0x1d3cbd=_0x55dc56;_0x125f61&&_0x2bf074['error']({'title':_0x1d3cbd('0xcb6'),'msg':_0x125f61[_0x1d3cbd('0x10fd')]?_0x125f61[_0x1d3cbd('0x10fd')]['message']||_0x125f61[_0x1d3cbd('0x1402')]||_0x125f61:_0x125f61[_0x1d3cbd('0x1402')]||_0x125f61});});}function _0x3e2171(){var _0x42d91f=_0x4e76ea;return _0x41e10c['auth'][_0x42d91f('0xb6')](_0x5142d3['form'])[_0x42d91f('0x1dc2')]['then'](function(){var _0x39991c=_0x42d91f;_0x2bf074[_0x39991c('0xe10')]({'title':_0x4d7949[_0x39991c('0x213f')](_0x39991c('0x85f')),'msg':_0x4d7949[_0x39991c('0x213f')]('RESETPASSWORD.PASSWORD_RESET_MESSAGE')}),_0x2065a5['go'](_0x39991c('0x1bba'));})[_0x42d91f('0x253d')](function(_0x277f8b){var _0x18857c=_0x42d91f;_0x277f8b&&_0x2bf074[_0x18857c('0x187f')]({'title':_0x4d7949[_0x18857c('0x213f')](_0x18857c('0x1544')),'msg':_0x277f8b[_0x18857c('0x10fd')]?_0x277f8b[_0x18857c('0x10fd')][_0x18857c('0x1402')]||_0x277f8b[_0x18857c('0x1402')]||_0x277f8b:_0x277f8b[_0x18857c('0x1402')]||_0x277f8b});});}_0x5142d3[_0x4e76ea('0xe23')]=_0x3e2171,_0x5142d3[_0x4e76ea('0x2318')]=_0x2e2164;}const _0x5f4a59=_0x565343;_0x44d4f0[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x44d4f0(_0x1bc5a5,_0x65631){var _0x3ec909=_0x1a8446;_0x1bc5a5['state'](_0x3ec909('0xf65'),{'url':_0x3ec909('0x109d'),'views':{'main@':{'templateUrl':_0x149766,'controller':_0x3ec909('0x193a')},'content@app.reset':{'templateUrl':_0x314dfc,'controller':'ResetPasswordController\x20as\x20vm'}},'bodyClass':_0x3ec909('0xb6')}),_0x65631['addPart'](_0x3ec909('0xe4b'));}angular[_0x1a8446('0x1f8d')]('app.reset',[])[_0x1a8446('0x1b14')](_0x44d4f0)[_0x1a8446('0x780')](_0x1a8446('0x25da'),_0x5f4a59);const _0x2108c5=_0x4fb511['p']+_0x1a8446('0x1408');_0x11806b[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x186b'),'$q','msNavigationService'];function _0x11806b(_0x3234af,_0x177735,_0x3d9360,_0x45a764){var _0x2f1de5=_0x1a8446,_0x40ec0c=this;function _0x5868c4(_0x3a1222){var _0x466875=a0_0x1149,_0x58069f=[],_0x1c38da=_0x45a764['getFlatNavigation'](),_0x3a59b7=_0x3d9360['defer']();for(var _0x5a3db1=0x0;_0x5a3db1<_0x1c38da[_0x466875('0x2587')];_0x5a3db1+=0x1){_0x1c38da[_0x5a3db1][_0x466875('0x450')]&&_0x58069f[_0x466875('0x1599')](_0x1c38da[_0x5a3db1]);}return _0x3a1222&&(_0x58069f=_0x58069f[_0x466875('0xdb7')](function(_0x15bd65){var _0x2e5433=_0x466875;if(_0x15bd65[_0x2e5433('0x110a')][_0x2e5433('0xcf6')]()['includes'](_0x3a1222[_0x2e5433('0xcf6')]()))return!![];})),_0x177735(function(){var _0x26c578=_0x466875;_0x3a59b7[_0x26c578('0x149f')](_0x58069f);},0x3e8),_0x3a59b7[_0x466875('0x159a')];}function _0x2fa9d1(_0x22052a){var _0x52cb65=a0_0x1149;_0x22052a['uisref']&&(_0x22052a[_0x52cb65('0x1926')]?_0x3234af['go'](_0x22052a[_0x52cb65('0xb46')],_0x22052a['stateParams']):_0x3234af['go'](_0x22052a[_0x52cb65('0xb46')]));}_0x40ec0c[_0x2f1de5('0x1785')]=_0x5868c4,_0x40ec0c['searchResultClick']=_0x2fa9d1;}const _0x4259a0=_0x11806b;_0x4c07d1[_0x1a8446('0x1e33')]=[_0x1a8446('0x2ce'),'$translatePartialLoaderProvider'];function _0x4c07d1(_0xa0a093,_0x30bcfa){var _0x1ba277=_0x1a8446;_0xa0a093[_0x1ba277('0xb46')](_0x1ba277('0x25d4'),{'url':_0x1ba277('0x123d'),'views':{'main@':{'templateUrl':_0x149766,'controller':'MainController\x20as\x20vm'},'content@app.errors_error-404':{'templateUrl':_0x2108c5,'controller':_0x1ba277('0x852')}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':_0x1ba277('0xd1e')}),_0x30bcfa[_0x1ba277('0x1de5')](_0x1ba277('0x1a55'));}angular['module'](_0x1a8446('0x1e13'),[])['config'](_0x4c07d1)[_0x1a8446('0x780')](_0x1a8446('0x10d4'),_0x4259a0);const _0x5b9243=_0x4fb511['p']+_0x1a8446('0x20cd');_0x1dd7f0[_0x1a8446('0x1e33')]=[_0x1a8446('0x145b'),_0x1a8446('0x1df3')];function _0x1dd7f0(_0x11e843,_0x202804){var _0x54bfa1=_0x1a8446,_0x3e28c2=this;function _0x103529(){var _0x4f1ee8=a0_0x1149;_0x202804[_0x4f1ee8('0x14fe')](_0x4f1ee8('0x7c7'),_0x3e28c2['error'])['then'](function(_0x371351){var _0x27d027=_0x4f1ee8;_0x3e28c2['send']=!![],_0x371351[_0x27d027('0x10fd')]&&(_0x3e28c2['code']=_0x371351['data']['id']);},function(){var _0x84f66c=_0x4f1ee8;_0x3e28c2[_0x84f66c('0x1e80')]=![];});}_0x3e28c2['code']='',_0x3e28c2[_0x54bfa1('0x1e80')]=![],_0x3e28c2['error']=_0x11e843['params'],_0x3e28c2['sendReport']=_0x103529;}const _0x24c9b6=_0x1dd7f0;_0x8aadfe['$inject']=[_0x1a8446('0x2ce'),_0x1a8446('0x208f')];function _0x8aadfe(_0x555d97,_0x6ffd34){var _0x37e8d0=_0x1a8446;_0x555d97['state'](_0x37e8d0('0xaec'),{'url':_0x37e8d0('0x14f1'),'views':{'main@':{'templateUrl':_0x149766,'controller':_0x37e8d0('0x193a')},'content@app.errors_error-500':{'templateUrl':_0x5b9243,'controller':'Error500Controller\x20as\x20vm'}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':'error-500'}),_0x6ffd34[_0x37e8d0('0x1de5')](_0x37e8d0('0x1d2d'));}angular['module'](_0x1a8446('0x22a3'),[])[_0x1a8446('0x1b14')](_0x8aadfe)['controller'](_0x1a8446('0x1ef4'),_0x24c9b6);;angular[_0x1a8446('0x1f8d')]('app.errors',[_0x1a8446('0x1e13'),_0x1a8446('0x22a3')]),_0x451d41['$inject']=[_0x1a8446('0xf82')];function _0x451d41(_0x4bf988){var _0x470b63=_0x1a8446,_0x4680a3={};return _0x4680a3[_0x470b63('0x842')]=!![]?_0x470b63('0x8d7'):0x0,_0x4680a3[_0x470b63('0xa88')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1c52'),{},{'local':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1c52')},'forgot':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x193c')},'reset':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x431'),'params':{'token':_0x470b63('0xcc9')}},'user':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x211d'),'params':{'token':_0x470b63('0xcc9')}},'google':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb9f')}}),_0x4680a3[_0x470b63('0x95c')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x95c')),_0x4680a3[_0x470b63('0xb5d')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb5d'),{},{'startMonitor':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'rpc/voice/channels/:uniqueid/mixmonitor','params':{'uniqueid':'@uniqueid'}},'stopMonitor':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1688'),'params':{'uniqueid':_0x470b63('0x1f26')}},'getVoiceChannels':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xb93')},'getVoiceQueues':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'rpc/voice/queues'},'getChatQueues':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'rpc/chat/queues'},'getMailQueues':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x15')},'getSmsQueues':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'rpc/sms/queues'},'getWhatsappQueues':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e65')},'getOpenchannelQueues':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x277c')},'getFaxQueues':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'rpc/fax/queues'},'getVoiceQueuesPreview':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xed5')},'getVoiceQueuesChannels':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x281b')},'getVoiceQueuesChannel':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x11dc')},'getVoiceQueuesChannelHangup':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x23b1')},'getVoiceQueuesChannelRedirect':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'rpc/voice/queues/channels/:uniqueid/redirect/:exten'},'getOutbound':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x233d')},'getOutboundChannels':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1b82')},'getAgents':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x233c')},'setAgentCapacity':{'method':_0x470b63('0x5ad'),'url':_0x4680a3['baseUrl']+'rpc/agents/:id/capacity','params':{'id':_0x470b63('0x854')}},'getTelephones':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1501')},'getTrunks':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'rpc/trunks'},'getCampaigns':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x117d')},'getMailAccounts':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x111f')},'getFaxAccounts':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x211a')},'getChatQueuesWaitingInteractions':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x210c')},'getMailQueuesWaitingInteractions':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x24d8')},'getOpenchannelQueuesWaitingInteractions':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x209')},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2684')},'getSmsQueuesWaitingInteractions':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1100')},'getFaxQueuesWaitingInteractions':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'rpc/fax/queues/waitinginteractions'},'getWhatsappQueuesWaitingInteractions':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x786')},'mailQueueNotify':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe54'),'params':{'id':_0x470b63('0x854')}},'chatQueueNotify':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1ec7'),'params':{'id':_0x470b63('0x854')}},'faxQueueNotify':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x250b'),'params':{'id':_0x470b63('0x854')}},'smsQueueNotify':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'rpc/sms/queues/:id/notify','params':{'id':_0x470b63('0x854')}},'openchannelQueueNotify':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'rpc/openchannel/queues/:id/notify','params':{'id':_0x470b63('0x854')}},'agentNotify':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'rpc/agents/:id/notify','params':{'id':_0x470b63('0x854')}}}),_0x4680a3[_0x470b63('0x2678')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2678'),{},{'fetch':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x8a4')},'reset':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa78')},'pull':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'version/pull'},'restart':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x190d')},'migrations':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xec4')}}),_0x4680a3[_0x470b63('0x5da')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x5da'),{},{'killProcess':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x135'),'params':{'pid':_0x470b63('0x4ac')}}}),_0x4680a3[_0x470b63('0xb00')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x107d'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad'),'isArray':!![]}}),_0x4680a3[_0x470b63('0x272b')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf73'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x17fc')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xebd'),'params':{'includeAll':_0x470b63('0x127d')}},'bulkCreate':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x4d'),'isArray':!![]},'addContacts':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/contacts'},'changePassword':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/password'},'addQueues':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf1e')},'removeQueues':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf1e')},'addAvatar':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/avatar'},'getAvatar':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2601')},'getContacts':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e83')},'getQueues':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xf1e')},'getVoiceQueuesRt':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x29b')},'getGroups':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1c01')},'getRecordings':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x165c')},'getScreenRecordings':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x10d3')},'getChatInteractions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa7')},'getOpenchannelInteractions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfd7')},'getMailInteractions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x15c')},'getSmsInteractions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1c64')},'getFaxInteractions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2814')},'getWhatsappInteractions':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+'users/:id/whatsapp/interactions'},'login':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc3e')},'logout':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/logout'},'pause':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/pause'},'unpause':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1cd3')},'getTeams':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1c81')},'addTeams':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1c81')},'removeTeams':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/teams'},'getLists':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x184d')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/agents'},'addChatInteractions':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x7ec')},'removeChatInteractions':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x7ec')},'addMailInteractions':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/mail_interactions'},'removeMailInteractions':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9ca')},'addFaxInteractions':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'users/:id/fax_interactions'},'removeFaxInteractions':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+'users/:id/fax_interactions'},'addSmsInteractions':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x19ad')},'removeSmsInteractions':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x19ad')},'addOpenchannelInteractions':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x2535')},'removeOpenchannelInteractions':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2535')},'addWhatsappInteractions':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xbe9')},'removeWhatsappInteractions':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xbe9')},'getVoicePrefixes':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x17a3')},'getFaxAccounts':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x26ba')},'addFaxAccounts':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x26ba')},'removeFaxAccounts':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x26ba')},'getMailAccounts':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2b7')},'addMailAccounts':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2b7')},'removeMailAccounts':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2b7')},'getOpenchannelAccounts':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/openchannel_accounts'},'addOpenchannelAccounts':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'users/:id/openchannel_accounts'},'removeOpenchannelAccounts':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+_0x470b63('0x4be')},'getSmsAccounts':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xd90')},'addSmsAccounts':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xd90')},'removeSmsAccounts':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/sms_accounts'},'getChatWebsites':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/chat_websites'},'addChatWebsites':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'users/:id/chat_websites'},'removeChatWebsites':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1301')},'getWhatsappAccounts':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfc')},'addWhatsappAccounts':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfc')},'removeWhatsappAccounts':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfc')},'getSquareProjects':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9ce')},'addSquareProjects':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9ce')},'removeSquareProjects':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+_0x470b63('0x9ce')},'getScheduledCalls':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0xb77')},'getApiKey':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1730')},'createApiKey':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1730')},'removeApiKey':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1730')},'whoami':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1a8b')}}),_0x4680a3[_0x470b63('0x10ba')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'voice/chanspy/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x6dc')},'clone':{'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0xdbe'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x68c')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x255f'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1f2')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'voice/contexts/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['voiceExtension']=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x2240'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/extensions/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/extensions/:id/clone','params':{'includeAll':'@includeAll'}},'addApplications':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1273')}}),_0x4680a3[_0x470b63('0x1959')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1fe6'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1ec3')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xc50'),'params':{'includeAll':_0x470b63('0x127d')}},'addSound':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9e6')},'removeSound':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/mohs/:id/sounds/:id2'},'getSounds':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9e6')}}),_0x4680a3[_0x470b63('0x1588')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1f59'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2323')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x8ef'),'params':{'includeAll':'@includeAll'}},'getHoppers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x10fb')},'getHopperHistories':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf43')},'getHopperFinals':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/queues/:id/hopper_finals'},'getHopperBlacks':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+'voice/queues/:id/hopper_black'},'getTeams':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2452')},'addTeams':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2452')},'removeTeams':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2452')},'addAgents':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'voice/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x12b2')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x12b2')},'getMembers':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'voice/queues/:id/members'},'getLists':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb4f')},'addLists':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb4f')},'removeLists':{'isArray':!![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/queues/:id/lists'},'getBlackLists':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x25d8')},'addBlackLists':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x25d8')},'removeBlackLists':{'isArray':!![],'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+_0x470b63('0x25d8')}}),_0x4680a3[_0x470b63('0x2366')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x13ce'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'voice/recordings/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1d8b'),'params':{'includeAll':_0x470b63('0x127d')}},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/recordings/:id/download','responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x578057(_0x5a2790,_0x4ef09c){var _0x119900=_0x470b63,_0x37c76d=_0x4ef09c();return{'type':_0x37c76d[_0x119900('0x258c')],'length':_0x37c76d['content-length'],'buffer':_0x5a2790};}},'downloads':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x21df')},'runTranscribe':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf81')},'downloadTranscribe':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf81'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x552667(_0x362be7,_0x237889){var _0x42019e=_0x470b63,_0x438833=_0x237889();return{'type':_0x438833['content-type'],'length':_0x438833[_0x42019e('0x508')],'buffer':_0x362be7};}}}),_0x4680a3['screenRecording']=_0x4bf988(_0x4680a3['baseUrl']+'screen/recordings/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x608')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2282'),'params':{'includeAll':_0x470b63('0x127d')}},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x16c'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x396862(_0x311d2d,_0x16195d){var _0x3a21cf=_0x470b63,_0x187cc3=_0x16195d();return{'type':_0x187cc3[_0x3a21cf('0x258c')],'length':_0x187cc3['content-length'],'buffer':_0x311d2d};}}}),_0x4680a3[_0x470b63('0x2264')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x189a'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'voice/mails/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x7b6'),'params':{'includeAll':_0x470b63('0x127d')}},'getMessages':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x18ca')}}),_0x4680a3[_0x470b63('0x12fc')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x275e'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x90a')},'clone':{'method':'post','url':_0x4680a3['baseUrl']+'voice/mails/messages/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x151f'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x602cb1(_0x575c1c,_0x5eb4bf){var _0x38e9d2=_0x470b63,_0x62760a=_0x5eb4bf();return{'type':_0x62760a[_0x38e9d2('0x258c')],'length':_0x62760a['content-length'],'buffer':_0x575c1c};}}}),_0x4680a3[_0x470b63('0x4d4')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2c8'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1159')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/calls/reports/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1f51')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1fe'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/dials/reports/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/dials/reports/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x188e')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'voice/agents/reports/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1900')},'clone':{'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x1903'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1ca0')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2210'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/queues/reports/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'voice/queues/reports/:id/clone','params':{'includeAll':'@includeAll'}},'getVoiceQueuesReport':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1ca4')}}),_0x4680a3[_0x470b63('0x27b8')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x278b'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'members/reports/describe'},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfc9'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x1651')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2709'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa83')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1716'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x816')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x33'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x14bf')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1559'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1616')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x25e5'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/out_servers/describe'},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x25a3'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0xb86')]=_0x4bf988(_0x4680a3['baseUrl']+'mail/accounts/:id',{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x20be')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x22d7'),'params':{'includeAll':_0x470b63('0x127d')}},'addDisposition':{'isArray':![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x10d7')},'getDispositions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/accounts/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+_0x470b63('0x10d7')},'addAnswer':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1b1e')},'removeAnswers':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1b1e')},'getImap':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/accounts/:id/in_servers'},'addImap':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x37a')},'removeImap':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x37a')},'getSmtp':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x211b')},'addSmtp':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x211b')},'removeSmtp':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x211b')},'addInteraction':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1425')},'getInteractions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1425')},'addApplications':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'mail/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/accounts/:id/applications'},'getMessages':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/accounts/:id/messages'},'send':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x18f6')},'verifySmtp':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x179e')},'addAgents':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x17d4')},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x17d4')}}),_0x4680a3[_0x470b63('0x21c6')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2699'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x26a3')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d8'),'params':{'includeAll':_0x470b63('0x127d')}},'getMembers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x5f9')},'getTeams':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3ec')},'addTeams':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'mail/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3ec')},'addAgents':{'isArray':!![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x3e0')},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+_0x470b63('0x3e0')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3e0')}}),_0x4680a3[_0x470b63('0x13b1')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1403'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/substatuses/describe'},'clone':{'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x105d'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1117')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2017'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1da')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/interactions/:id/clone','params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3c1')},'getMessages':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3c1')},'addTags':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'mail/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1ab4')},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'mail/interactions/:id/download','responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x271b25(_0x57351d,_0x2c1fac){var _0x46212d=_0x470b63,_0x432344=_0x2c1fac();return{'type':_0x432344[_0x46212d('0x258c')],'length':_0x432344['content-length'],'buffer':_0x57351d};}}}),_0x4680a3[_0x470b63('0x1a99')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x103a'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x502')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2f5'),'params':{'includeAll':_0x470b63('0x127d')}},'accept':{'isArray':![],'method':'put','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb15')},'reject':{'isArray':![],'method':'put','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e96')},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x667'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x2aa8f5(_0x4583a6,_0x55402c){var _0x496e64=_0x470b63,_0x14fce5=_0x55402c();return{'type':_0x14fce5['content-type'],'length':_0x14fce5[_0x496e64('0x508')],'buffer':_0x4583a6};}}}),_0x4680a3[_0x470b63('0x145f')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x16ae'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x1052')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'mail/applications/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1dce')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x766'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x23bb')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2269'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x55')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x20b1'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x167d')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e9d'),'params':{'includeAll':_0x470b63('0x127d')}},'addItem':{'isArray':![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0xda')},'getItems':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'dashboards/:id/items'}}),_0x4680a3[_0x470b63('0xe7c')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x14ec'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x5cd')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x81a'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1f6a')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'fax/accounts/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'fax/accounts/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1c8e'),'params':{'includeAll':_0x470b63('0x127d')}},'addDisposition':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x92')},'getDispositions':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x92')},'removeDispositions':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x92')},'addAnswer':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x172f')},'getAnswers':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x172f')},'removeAnswers':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x172f')},'addInteraction':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'fax/accounts/:id/interactions'},'getInteractions':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x23c6')},'addApplications':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2575')},'getApplications':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'fax/accounts/:id/applications'},'addAccountApplications':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x2096')},'updateAccountApplications':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x381')},'getMessages':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x16e8')},'send':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'fax/accounts/:id/send'},'addAgents':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'fax/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'fax/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x20fb')}}),_0x4680a3[_0x470b63('0xc87')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'fax/applications/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x517')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1825'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x927')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'fax/interactions/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1a34')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2554'),'params':{'includeAll':_0x470b63('0x127d')}},'addMessage':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x10ed')},'getMessages':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'fax/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x175c')},'removeTags':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x175c')},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1edd'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x450104(_0x6ac12e,_0x5119b2){var _0x10cf6b=_0x470b63,_0x52f3ac=_0x5119b2();return{'type':_0x52f3ac[_0x10cf6b('0x258c')],'length':_0x52f3ac[_0x10cf6b('0x508')],'buffer':_0x6ac12e};}}}),_0x4680a3[_0x470b63('0x1083')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0xc7d'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x24be')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1dc4'),'params':{'includeAll':_0x470b63('0x127d')}},'accept':{'isArray':![],'method':'put','url':_0x4680a3[_0x470b63('0x842')]+'fax/messages/:id/accept'},'reject':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1c32')},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x23c3'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x652fe4(_0x5e670a,_0x53af94){var _0x444a69=_0x53af94();return{'type':_0x444a69['content-type'],'length':_0x444a69['content-length'],'buffer':_0x5e670a};}}}),_0x4680a3[_0x470b63('0xaf9')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x105f'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0xb3e')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xcd2'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'fax/queues/:id/members'},'getTeams':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x230b')},'addTeams':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'fax/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x230b')},'addAgents':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x242c')},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x242c')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'fax/queues/:id/users'}}),_0x4680a3[_0x470b63('0x3be')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x959'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf34')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x12be'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x1658')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc7c'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1997')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'sms/accounts/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'addDisposition':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x27e0')},'getDispositions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x27e0')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x27e0')},'addAnswer':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'sms/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2183')},'removeAnswers':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+'sms/accounts/:id/canned_answers'},'notify':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2521')},'addApplications':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1119')},'getApplications':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1119')},'getInteractions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'sms/accounts/:id/interactions'},'send':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x2312')},'status':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d02')},'statusGet':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d02')},'addAgents':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x25b1')},'removeAgents':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x25b1')},'getAgents':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x25b1')}}),_0x4680a3[_0x470b63('0x168e')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc2c'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x22d1')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'sms/applications/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x6da')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x12f'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xcf7')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa9f'),'params':{'includeAll':_0x470b63('0x127d')}},'addMessage':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xb75')},'getMessages':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb75')},'addTags':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x16d2')},'removeTags':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x16d2')},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'sms/interactions/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function _0x2af0a9(_0x3140a0,_0xd5a977){var _0x37cf12=_0x470b63,_0xc1dc22=_0xd5a977();return{'type':_0xc1dc22[_0x37cf12('0x258c')],'length':_0xc1dc22[_0x37cf12('0x508')],'buffer':_0x3140a0};}}}),_0x4680a3[_0x470b63('0xf7e')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x16e1'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1a43')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'sms/messages/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'accept':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1437')},'reject':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+'sms/messages/:id/reject'},'status':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1cea')}}),_0x4680a3['smsQueue']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xaab'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'sms/queues/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x19a6'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1def')},'getTeams':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x866')},'addTeams':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x866')},'removeTeams':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x866')},'addAgents':{'isArray':!![],'method':'post','url':_0x4680a3['baseUrl']+'sms/queues/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x552')},'getAgents':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'sms/queues/:id/users'}}),_0x4680a3['openchannelAccount']=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x2727'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1d03')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x14a1'),'params':{'includeAll':_0x470b63('0x127d')}},'addDisposition':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'openchannel/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3a2')},'removeDispositions':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3a2')},'addAnswer':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'openchannel/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x6e0')},'removeAnswers':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x6e0')},'notify':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2278')},'addApplications':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e3a')},'getApplications':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e3a')},'getInteractions':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x169d')},'addAgents':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfb3')},'removeAgents':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfb3')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xfb3')},'send':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x6b1')}}),_0x4680a3[_0x470b63('0x4b6')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x6d2'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x27c5')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x8e6'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x97d')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x759'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x25a1')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xca4'),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1743')},'getMessages':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x1743')},'addTags':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x2842')},'removeTags':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+'openchannel/interactions/:id/tags'},'download':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x203d'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x362ffa(_0x58af0c,_0x306ce0){var _0xe0fcd7=_0x470b63,_0x549a40=_0x306ce0();return{'type':_0x549a40[_0xe0fcd7('0x258c')],'length':_0x549a40['content-length'],'buffer':_0x58af0c};}}}),_0x4680a3[_0x470b63('0xc9a')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1613'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x1fe5')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1f7b'),'params':{'includeAll':_0x470b63('0x127d')}},'accept':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3['baseUrl']+_0x470b63('0xa40')},'reject':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x236a')}}),_0x4680a3[_0x470b63('0x21b2')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x122d'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2133')},'clone':{'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x1a4e'),'params':{'includeAll':_0x470b63('0x127d')}},'getMembers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x216a')},'getTeams':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1d28')},'addTeams':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d28')},'removeTeams':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1d28')},'addAgents':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d7')},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d7')},'getAgents':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d7')}}),_0x4680a3[_0x470b63('0x10f1')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x946'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x96c')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/websites/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'addDisposition':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1195')},'getDispositions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1195')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1195')},'addAnswer':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xdd3')},'getAnswers':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xdd3')},'removeAnswers':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xdd3')},'addLogo':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'chat/websites/:id/logo'},'addAvatar':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2093')},'addCustomerAvatar':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/websites/:id/customer_avatar'},'addSystemAvatar':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x51e')},'getLogo':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1519')},'getAvatar':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/websites/:id/avatar'},'getCustomerAvatar':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'chat/websites/:id/customer_avatar'},'getSystemAvatar':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x51e')},'notify':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1609')},'offline':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1aca')},'addInteraction':{'isArray':![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x1571')},'getInteractions':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1571')},'getSnippet':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xe2f')},'addApplications':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xd34')},'getApplications':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xd34')},'addProactiveActions':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xffc')},'getProactiveActions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xffc')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa6b')},'getOfflineMessages':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'chat/websites/:id/offline_messages'},'addAgents':{'isArray':!![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x235b')},'removeAgents':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+'chat/websites/:id/users'},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/websites/:id/users'}}),_0x4680a3[_0x470b63('0x3d5')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'openchannel/reports/queue/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc9f')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x683'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1aba')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'chat/applications/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3b9')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/applications/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['chatInteraction']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb04'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb3d')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x132f'),'params':{'includeAll':_0x470b63('0x127d')}},'createVidaooSession':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x471')},'customUpdate':{'isArray':![],'method':'put','url':_0x4680a3[_0x470b63('0x842')]+'chat/interactions/:id/custom_update'},'abandon':{'isArray':![],'method':'put','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x282e')},'attachmentUpload':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xd8d')},'attachmentDownload':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x43e')},'close':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb34')},'addMessage':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xb33')},'getMessages':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb33')},'getMyMessages':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x11b2')},'addTags':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x2515')},'removeTags':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/interactions/:id/tags'},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x10a2'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x17afc4(_0x3d84fb,_0x1ad518){var _0x152337=_0x470b63,_0x5d2bff=_0x1ad518();return{'type':_0x5d2bff['content-type'],'length':_0x5d2bff[_0x152337('0x508')],'buffer':_0x3d84fb};}}}),_0x4680a3[_0x470b63('0x200b')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x2426'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x241d')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1aa4'),'params':{'includeAll':_0x470b63('0x127d')}},'accept':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/messages/:id/accept'},'reject':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x18f5')}}),_0x4680a3[_0x470b63('0x24ab')]=_0x4bf988(_0x4680a3['baseUrl']+'chat/offline_messages/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa9d')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1386'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x2837')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'chat/queues/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x12f3')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x26f4'),'params':{'includeAll':_0x470b63('0x127d')}},'getMembers':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x238c')},'getTeams':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'chat/queues/:id/teams'},'addTeams':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'chat/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xbc2')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xbc2')}}),_0x4680a3[_0x470b63('0x157d')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x22d9'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x19cf')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x15e9'),'params':{'includeAll':_0x470b63('0x127d')}},'getUnread':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x341')},'addMembers':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc6c')},'getMembers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xc6c')},'removeMembers':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+'chat/groups/:id/members'},'addMessage':{'isArray':![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0xf94')},'getMessages':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf94')}}),_0x4680a3['chatProactiveAction']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'chat/proactive_actions/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1c56')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xf80'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3['cmCompany']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'cm/companies/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x12a')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'cm/companies/:id/clone','params':{'includeAll':'@includeAll'}},'addContacts':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x12de')},'getContacts':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'cm/companies/:id/contacts'}}),_0x4680a3[_0x470b63('0xdbd')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2b4'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/contacts/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/contacts/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'merge':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1824')},'bulkCreate':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x21d8')},'getTags':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x170f')},'setTags':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x170f')},'getHoppers':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x784')},'getHopperHistories':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xd02')},'getHopperFinals':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x102a')},'getJscriptySessions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9b9')},'uploadCsv':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xda4')},'upload':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x20d9')},'import':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2b1')}}),_0x4680a3[_0x470b63('0xe51')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1447'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/hopper/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/hopper/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'getPreview':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc22')},'getOpenContacts':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x26d2')}}),_0x4680a3['cmHopperBlack']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x20c0'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2108')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x26fb'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x9c3')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2019'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/hopper_final/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9b5'),'params':{'includeAll':_0x470b63('0x127d')}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1d6f')},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/hopper_final/campaign/countAttributes/:id'},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x2015')},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x56c')},'checkContactHopper':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2316')}}),_0x4680a3['cmHopperHistory']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3f3'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1a0d')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'cm/hopper_history/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x23e3')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xec8'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'cm/custom_fields/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'cm/custom_fields/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0xb08')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x21d9'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'actions/describe'},'clone':{'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x795'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1e90')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2220'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'automations/describe'},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1910'),'params':{'includeAll':_0x470b63('0x127d')}},'addConditions':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'automations/:id/conditions'},'getConditions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x20e9')},'addActions':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'automations/:id/actions'},'getActions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'automations/:id/actions'}}),_0x4680a3[_0x470b63('0x1a53')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1b26'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1ac7')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfe6'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x106e')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1bb6'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'dispositions/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x896'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0xe77')]=_0x4bf988(_0x4680a3['baseUrl']+'conditions/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2430')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x24ee'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['interval']=_0x4bf988(_0x4680a3['baseUrl']+'intervals/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x96e')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1070'),'params':{'includeAll':'@includeAll'}},'addInterval':{'isArray':![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x18')},'getIntervals':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'intervals/:id/sub_intervals'},'addIntervals':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'intervals/:id/sub_intervals/create_many'}}),_0x4680a3[_0x470b63('0x167c')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2548'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'pauses/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa17'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x2749')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2194'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'cdr/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2552'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1175')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa67'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x1746')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x4bd'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x2098')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1455'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1b91')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'schedules/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'run':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x112e')}}),_0x4680a3[_0x470b63('0x7d6')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x98e'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xf9d')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2639'),'params':{'includeAll':_0x470b63('0x127d')}},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1a65'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x42ffc1(_0xe00d7c,_0x14dc02){var _0x2724ec=_0x470b63,_0x231859=_0x14dc02();return{'type':_0x231859[_0x2724ec('0x258c')],'length':_0x231859[_0x2724ec('0x508')],'buffer':_0xe00d7c};}},'delete':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x98e')}}),_0x4680a3[_0x470b63('0x38f')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'tags/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'tags/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x3da'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['template']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1b03'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1474')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x7ea'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x2624')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x13c3'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'triggers/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1163'),'params':{'includeAll':'@includeAll'}},'addAllCondition':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1cf2')},'addAnyCondition':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x187c')},'getAllConditions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1cf2')},'getAnyConditions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x187c')},'addAction':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa2')},'getActions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xa2')}}),_0x4680a3[_0x470b63('0x14e7')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x921'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x2476')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1beb'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x15a')]=_0x4bf988(_0x4680a3['baseUrl']+'integrations/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x19f1')},'clone':{'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0xcfe'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1fe8')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x2287'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xabc')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xaaa'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x16bc')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0xc0e'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'analytics/custom_reports/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1170'),'params':{'includeAll':_0x470b63('0x127d')}},'preview':{'isArray':!![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'analytics/custom_reports/:id/preview'},'run':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x6ae')},'query':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x18b5')}}),_0x4680a3[_0x470b63('0x1885')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1841'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1b6d')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe37'),'params':{'includeAll':_0x470b63('0x127d')}},'preview':{'isArray':!![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2c4')},'run':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1f45')},'query':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x154a')}}),_0x4680a3[_0x470b63('0x1d9d')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1c66'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'analytics/extracted_reports/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2ac'),'params':{'includeAll':_0x470b63('0x127d')}},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1873'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x14e8c4(_0x2f936b,_0xf0f2a4){var _0x2c7e72=_0x470b63,_0x43ca77=_0xf0f2a4();return{'type':_0x43ca77['content-type'],'length':_0x43ca77[_0x2c7e72('0x508')],'buffer':_0x2f936b};}}}),_0x4680a3[_0x470b63('0x8b5')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'analytics/metrics/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2695')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x8a5'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x138d')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'analytics/field_reports/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x248b')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d7d'),'params':{'includeAll':_0x470b63('0x127d')}},'bulkCreate':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'analytics/field_reports/create_many','isArray':!![]},'bulkDestroy':{'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+_0x470b63('0x8b0'),'isArray':!![]},'addFields':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x7b5')}}),_0x4680a3[_0x470b63('0x37f')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x686'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'analytics/tree_reports/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'analytics/tree_reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x14aa')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1664'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1426')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1507'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x20cf')},'addConfiguration':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x20cf')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x5f4')}}),_0x4680a3[_0x470b63('0x1429')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1755'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'integrations/salesforce/configurations/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x152e'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xefd')},'getSubjects':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x30b')},'getDescriptions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/salesforce/configurations/:id/descriptions'}}),_0x4680a3['intSalesforceField']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1c5'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x26e')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfbf'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x1619')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x188b'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2833')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/sugarcrm/accounts/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/sugarcrm/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xfc3')},'getFields':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+'integrations/sugarcrm/accounts/:id/fields'}}),_0x4680a3[_0x470b63('0x2064')]=_0x4bf988(_0x4680a3['baseUrl']+'integrations/sugarcrm/configurations/:id',{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x41c')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'integrations/sugarcrm/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc43')},'getSubjects':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x27ae')},'getDescriptions':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x2844')}}),_0x4680a3[_0x470b63('0x9a6')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'integrations/sugarcrm/fields/:id',{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1975')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1401'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x340')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'integrations/desk/accounts/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x15bd')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/desk/accounts/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x23c1')},'addConfiguration':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x23c1')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf46')}}),_0x4680a3[_0x470b63('0x2062')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1476'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2442')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'integrations/desk/configurations/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf3e')},'getSubjects':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1276')},'getDescriptions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x99a')},'getTags':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/desk/configurations/:id/tags'},'setTags':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x15d8')}}),_0x4680a3[_0x470b63('0x2585')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x143d'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf70')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x22dd'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1c57')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x143'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9c7')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x11ac'),'params':{'includeAll':_0x470b63('0x127d')}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x507')},'addConfiguration':{'isArray':![],'method':'post','url':_0x4680a3['baseUrl']+'integrations/zoho/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'integrations/zoho/accounts/:id/fields'}}),_0x4680a3[_0x470b63('0x8f0')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x8a9'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1b45')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa1b'),'params':{'includeAll':_0x470b63('0x127d')}},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x241')},'getSubjects':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x859')},'getDescriptions':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x26c')}}),_0x4680a3[_0x470b63('0x16a3')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x15c0'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/zoho/fields/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2399'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0xac8')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x21f4'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa8d')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x4ce'),'params':{'includeAll':_0x470b63('0x127d')}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/zendesk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x23d2')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1eaf')}}),_0x4680a3[_0x470b63('0xf57')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'integrations/zendesk/configurations/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x13a9')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x278f'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9b0')},'getSubjects':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/zendesk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x33a')},'getTags':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x27d0')},'setTags':{'isArray':!![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x27d0')}}),_0x4680a3[_0x470b63('0x23e5')]=_0x4bf988(_0x4680a3['baseUrl']+'integrations/zendesk/fields/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x8c0')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xf2'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['intFreshdeskAccount']=_0x4bf988(_0x4680a3['baseUrl']+'integrations/freshdesk/accounts/:id',{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/freshdesk/accounts/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1a3f'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1a32')},'addConfiguration':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1a32')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe61')}}),_0x4680a3[_0x470b63('0x1088')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1810'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x59f')},'clone':{'method':'post','url':_0x4680a3['baseUrl']+'integrations/freshdesk/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1a86')},'getSubjects':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x22b0')},'getDescriptions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x547')},'getTags':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x83a')},'setTags':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x83a')}}),_0x4680a3[_0x470b63('0x21d4')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'integrations/freshdesk/fields/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb8b')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x46a'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3['intVtigerAccount']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1f78'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x1285')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x26f8'),'params':{'includeAll':_0x470b63('0x127d')}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xd88')},'addConfiguration':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'integrations/vtiger/accounts/:id/configurations'},'getFields':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x1527')}}),_0x4680a3[_0x470b63('0x986')]=_0x4bf988(_0x4680a3['baseUrl']+'integrations/vtiger/configurations/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2567')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'integrations/vtiger/configurations/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x12e2')},'getSubjects':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1ae3')},'getDescriptions':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x437')}}),_0x4680a3[_0x470b63('0x1256')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'integrations/vtiger/fields/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x805')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/vtiger/fields/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x1291')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x4aa'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3['baseUrl']+'integrations/servicenow/accounts/describe'},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2367'),'params':{'includeAll':_0x470b63('0x127d')}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2280')},'addConfiguration':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2280')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/servicenow/accounts/:id/fields'}}),_0x4680a3['intServicenowConfiguration']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe87'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x85')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/servicenow/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x24d6')},'getSubjects':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'integrations/servicenow/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x24e3')}}),_0x4680a3[_0x470b63('0x36c')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1797'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'integrations/servicenow/fields/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/servicenow/fields/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x754')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1643'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xdda')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x279e'),'params':{'includeAll':_0x470b63('0x127d')}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/dynamics365/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xbbf')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9b2')}}),_0x4680a3[_0x470b63('0x196')]=_0x4bf988(_0x4680a3['baseUrl']+'integrations/dynamics365/configurations/:id',{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x11f4')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x13ae'),'params':{'includeAll':_0x470b63('0x127d')}},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x311')},'getSubjects':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x23c8')},'getDescriptions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2480')}}),_0x4680a3[_0x470b63('0x1d64')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x319'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/dynamics365/fields/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xdb9'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['intFreshsalesAccount']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1340'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x92b')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1f48'),'params':{'includeAll':_0x470b63('0x127d')}},'getConfigurations':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e16')},'addConfiguration':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e16')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x7d3')}}),_0x4680a3[_0x470b63('0x13b7')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'integrations/freshsales/configurations/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xe73')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'integrations/freshsales/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getSubjects':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x242e')},'getDescriptions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2241')},'getFields':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xd05')}}),_0x4680a3[_0x470b63('0x414')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2357'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x2541')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xa1f'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['network']=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1a2b'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1fee')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'networks/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['chatQueueReport']=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x545'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2512')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1ead'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3['chatInternalMessage']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc5e'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x12')},'clone':{'method':'post','url':_0x4680a3['baseUrl']+'chat/internal/messages/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'getUsers':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1d9c')}}),_0x4680a3[_0x470b63('0x20ba')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'jscripty/answers/reports/:id',{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x465')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x100d'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x1082')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xde0'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x30f')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xace'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x134a')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'jscripty/sessions/reports/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'jscripty/sessions/reports/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x128d'),'params':{'includeAll':_0x470b63('0x127d')}},'getQuestions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e82')}}),_0x4680a3['smsQueueReport']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x13ad'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'sms/reports/queue/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'sms/reports/queue/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x8c5')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'square/reports/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x21c3')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x717'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x84')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'square/details/reports/:id',{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'square/details/reports/describe'},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x231d'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x285c')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9ed'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1049')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'jscripty/projects/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'getSessions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1828')},'getAnswers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe90')},'getSummary':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe09'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x18bab7(_0x3a90fd,_0x3cb8a3){var _0x17c00b=_0x470b63,_0x4f730a=_0x3cb8a3();return{'type':_0x4f730a['content-type'],'length':_0x4f730a[_0x17c00b('0x508')],'buffer':_0x3a90fd};}}}),_0x4680a3[_0x470b63('0x143f')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x14ca'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'settings/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'settings/:id/clone','params':{'includeAll':'@includeAll'}},'addLogo':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'settings/:id/logo'},'addLogoLogin':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x63f')},'getLogo':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x262e')},'getLogoLogin':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'settings/:id/logo_login'},'gdpr':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x8a8')},'addPreferred':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x14cc')},'getPreferred':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x14cc')},'addFavicon':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x200e')},'getFavicon':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x200e')}}),_0x4680a3[_0x470b63('0x407')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe48'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1f7a')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'square/odbc/:id/clone','params':{'includeAll':'@includeAll'}},'test':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'square/odbc/:id/test'}}),_0x4680a3[_0x470b63('0x37b')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1c75'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'square/projects/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x238d'),'params':{'includeAll':_0x470b63('0x127d')}},'addUsers':{'isArray':!![],'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x1ab0')},'removeUsers':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'square/projects/:id/users'},'getUsers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1ab0')}}),_0x4680a3[_0x470b63('0xb9a')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb4a'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x12a7')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'square/recordings/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2495'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x11d691(_0xdfc3c8,_0x27b47a){var _0xb3d375=_0x470b63,_0x4166af=_0x27b47a();return{'type':_0x4166af[_0xb3d375('0x258c')],'length':_0x4166af[_0xb3d375('0x508')],'buffer':_0xdfc3c8};}}}),_0x4680a3[_0x470b63('0x14dc')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb7b'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'square/messages/describe'},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'square/messages/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x257c')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x598'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'teams/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xd7f'),'params':{'includeAll':'@includeAll'}},'getQueues':{'isArray':!![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x229c')},'addQueues':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x229c')},'removeQueues':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x229c')},'addAgents':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x91f')},'removeAgents':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x91f')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x91f')}}),_0x4680a3['license']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x526'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1e60')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1f75'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0xe8d')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'campaigns/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2213')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'campaigns/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'getHoppers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x421')},'getHopperHistories':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0xca8')},'getHopperFinals':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'campaigns/:id/hopper_finals'},'getHopperBlacks':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'campaigns/:id/hopper_black'},'getLists':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'campaigns/:id/lists'},'addLists':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x13ab')},'removeLists':{'isArray':!![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'campaigns/:id/lists'},'getBlackLists':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x140b')},'addBlackLists':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x140b')},'removeBlackLists':{'isArray':!![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x140b')}}),_0x4680a3[_0x470b63('0x182c')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2605'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x836')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'migrations/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['attachment']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x279b'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x17e2')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xd76'),'params':{'includeAll':_0x470b63('0x127d')}},'download':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'attachments/:id/download','responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x472e62(_0x4412dc,_0x3aa07a){var _0xe8e0ac=_0x470b63,_0x14e2f4=_0x3aa07a();return{'type':_0x14e2f4[_0xe8e0ac('0x258c')],'length':_0x14e2f4['content-length'],'buffer':_0x4412dc};}}}),_0x4680a3['plugin']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9f'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1311')},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x276'),'params':{'includeAll':_0x470b63('0x127d')}},'download':{'isArray':![],'method':'get','url':_0x4680a3['baseUrl']+'plugins/:id/download','responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x3a2b67(_0x557808,_0x47ce84){var _0x1396a6=_0x470b63,_0x5e5f11=_0x47ce84();return{'type':_0x5e5f11[_0x1396a6('0x258c')],'length':_0x5e5f11[_0x1396a6('0x508')],'buffer':_0x557808};}},'upload':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x112d')},'delete':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9f')},'webhookGet':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2189')},'webhookPost':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2189')}}),_0x4680a3['mailTransferReport']=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x58d'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'mail/reports/transfer/describe'},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'mail/reports/transfer/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4680a3[_0x470b63('0x1e78')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1db6'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x778')},'clone':{'method':'post','url':_0x4680a3['baseUrl']+_0x470b63('0x1b75'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0xe4')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2329'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1ab1')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x205a'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x176b')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x241b'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x27ed')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0xd41'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x269b')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xa76'),{'id':'@id'},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x2284')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x6'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3['cmList']=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1024'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x1bdf')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/lists/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'addDisposition':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2759')},'getDispositions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2759')},'removeDispositions':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/lists/:id/dispositions'},'addContacts':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x563')},'getContacts':{'isArray':!![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x563')},'getContactsCsv':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1210'),'responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x1250da(_0x49fb7b,_0x1c226b){var _0xfa9ab2=_0x470b63,_0x3e11dc=_0x1c226b();return{'type':_0x3e11dc[_0xfa9ab2('0x258c')],'length':_0x3e11dc[_0xfa9ab2('0x508')],'buffer':_0x49fb7b};}},'addCustomField':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1ba0')},'getCustomFields':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'cm/lists/:id/fields'},'addAgents':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1efb')},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1efb')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'cm/lists/:id/users'}}),_0x4680a3['voicePrefix']=_0x4bf988(_0x4680a3['baseUrl']+'voice/prefixes/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x23cc')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'voice/prefixes/:id/clone','params':{'includeAll':_0x470b63('0x127d')}},'addAgents':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x220b')},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x220b')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x220b')}}),_0x4680a3[_0x470b63('0x1e97')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'userProfiles/:id',{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'userProfiles/describe'},'clone':{'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x962'),'params':{'includeAll':_0x470b63('0x127d')}},'addSections':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x980')},'removeSections':{'isArray':![],'method':'delete','url':_0x4680a3['baseUrl']+_0x470b63('0x980')},'getSections':{'isArray':!![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x980')},'addResources':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'userProfiles/:id/resources'},'removeResources':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9f5')},'getResources':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x9f5')}}),_0x4680a3[_0x470b63('0x1a50')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x676'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'userProfile/sections/describe'},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1ede'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x249a')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x11c7'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x255e')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x268e'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3['notification']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x8fa'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x787')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'notifications/:id/clone','params':{'includeAll':'@includeAll'}},'sendNotification':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1ca5')}}),_0x4680a3[_0x470b63('0x26ac')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2513'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':'get','url':_0x4680a3['baseUrl']+_0x470b63('0x121d')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1c0d'),'params':{'includeAll':_0x470b63('0x127d')}},'addDisposition':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x664')},'getDispositions':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x664')},'removeDispositions':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x664')},'addAnswer':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'whatsapp/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfb2')},'removeAnswers':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'whatsapp/accounts/:id/canned_answers'},'addAgents':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x22')},'removeAgents':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x22')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+_0x470b63('0x22')},'addApplications':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'whatsapp/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1b00')},'notify':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x330')},'send':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc16')}}),_0x4680a3['whatsappApplication']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x11c2'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x133')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x4a7'),'params':{'includeAll':'@includeAll'}}}),_0x4680a3['whatsappInteraction']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x49e'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x436')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1691'),'params':{'includeAll':_0x470b63('0x127d')}},'addMessage':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+_0x470b63('0x1628')},'getMessages':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3['baseUrl']+'whatsapp/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x103d')},'removeTags':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+'whatsapp/interactions/:id/tags'},'download':{'isArray':![],'method':'get','url':_0x4680a3[_0x470b63('0x842')]+'whatsapp/interactions/:id/download','responseType':_0x470b63('0x1e06'),'cache':![],'transformResponse':function _0x322290(_0xc6cf1b,_0x50d8ab){var _0x16d2b8=_0x470b63,_0x31ca98=_0x50d8ab();return{'type':_0x31ca98[_0x16d2b8('0x258c')],'length':_0x31ca98[_0x16d2b8('0x508')],'buffer':_0xc6cf1b};}}}),_0x4680a3['whatsappMessage']=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+'whatsapp/messages/:id',{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfea')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'whatsapp/messages/:id/clone','params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':'put','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x610')},'reject':{'isArray':![],'method':_0x470b63('0x5ad'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x887')},'status':{'isArray':![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+'whatsapp/messages/:id/status'}}),_0x4680a3[_0x470b63('0xd94')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2642'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x2768')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xc5'),'params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x14f9')]=_0x4bf988(_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xfc8'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x1a2')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'whatsapp/reports/transfer/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3[_0x470b63('0x48f')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x1eff'),{'id':_0x470b63('0x854')},{'update':{'method':_0x470b63('0x5ad')},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x80c')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xb83'),'params':{'includeAll':_0x470b63('0x127d')}},'getMembers':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+'whatsapp/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x13aa')},'addTeams':{'isArray':!![],'method':_0x470b63('0x14fe'),'url':_0x4680a3['baseUrl']+'whatsapp/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x470b63('0x926'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x13aa')},'addAgents':{'isArray':!![],'method':'post','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe28')},'removeAgents':{'isArray':![],'method':'delete','url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe28')},'getAgents':{'isArray':![],'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0xe28')}}),_0x4680a3[_0x470b63('0x60b')]=_0x4bf988(_0x4680a3['baseUrl']+_0x470b63('0x14e6'),{'id':_0x470b63('0x854')},{'update':{'method':'put'},'describe':{'method':_0x470b63('0x2122'),'url':_0x4680a3[_0x470b63('0x842')]+_0x470b63('0x10dd')},'clone':{'method':_0x470b63('0x14fe'),'url':_0x4680a3[_0x470b63('0x842')]+'cloudProviders/:id/clone','params':{'includeAll':_0x470b63('0x127d')}}}),_0x4680a3;}const _0x2d429f=_0x451d41;_0x2422bb['$inject']=[_0x1a8446('0x253b'),_0x1a8446('0x1a5c')];function _0x2422bb(_0x57b0c5,_0x493195){var _0x292d7e=_0x1a8446;_0x493195[_0x292d7e('0x503')]({'position':_0x292d7e('0x23d6'),'sound':![],'html':!![],'theme':_0x292d7e('0x17db')}),_0x57b0c5['useLoader'](_0x292d7e('0x886'),{'urlTemplate':'{part}/i18n/{lang}.json'}),_0x57b0c5['preferredLanguage']('en'),_0x57b0c5[_0x292d7e('0x2d6')](null);}const _0x3738b2=_0x2422bb;_0x7764c2['$inject']=[_0x1a8446('0xb92'),'$translate',_0x1a8446('0x95f'),_0x1a8446('0x157'),_0x1a8446('0x2a4')];function _0x7764c2(_0x296cfc,_0x2dd80f,_0x115813,_0x5f05e0,_0xc3cbf7){var _0x107691=_0x1a8446,_0x184d53=this;_0x184d53[_0x107691('0x20b0')]=_0x296cfc[_0x107691('0x20b0')],_0x184d53[_0x107691('0x1108')]=_0x107691('0xf');var _0x5e013d=['ar','fa','he'],_0x39b769=_0x115813['get'](_0x107691('0x136d'));_0x39b769&&(_0x2dd80f[_0x107691('0x426')](_0x39b769),_0x5e013d[_0x107691('0x1f38')](_0x39b769)>=0x0&&_0x5f05e0['setting'][_0x107691('0x2122')]({'id':0x1})['$promise']['then'](function(_0x5efe86){var _0x52971e=_0x107691;_0x5efe86&&_0x5efe86[_0x52971e('0x20c7')]&&(_0x184d53[_0x52971e('0x1108')]=_0x52971e('0x1794'));})['catch'](function(_0x5eefb5){var _0x32f650=_0x107691;_0x5eefb5&&_0xc3cbf7[_0x32f650('0x187f')]({'title':_0x32f650('0xcb6'),'msg':_0x5eefb5[_0x32f650('0x10fd')]?_0x5eefb5['data'][_0x32f650('0x1402')]||_0x5eefb5[_0x32f650('0x1402')]||_0x5eefb5:_0x5eefb5[_0x32f650('0x1402')]||_0x5eefb5});}));}const _0xf7e16f=_0x7764c2;_0x386928[_0x1a8446('0x1e33')]=['$translate'],_0x8277c3[_0x1a8446('0x1e33')]=[_0x1a8446('0x24ea'),'$translate'];function _0x8277c3(_0xdd81b4,_0xeaefc4){return function(_0x1aedf6){var _0x1c1ca2=a0_0x1149,_0x9e4bce=new Date(),_0x1face6=new Date(_0x1aedf6);if(_0x1face6[_0x1c1ca2('0x146')]()===_0x9e4bce['getDate']()&&_0x1face6[_0x1c1ca2('0x12b5')]()===_0x9e4bce['getMonth']()&&_0x1face6[_0x1c1ca2('0x495')]()===_0x9e4bce['getFullYear']())return _0xdd81b4(_0x1c1ca2('0xb87'))(_0x1face6[_0x1c1ca2('0x789')](),'shortTime');if(_0x1face6[_0x1c1ca2('0x146')]()===_0x9e4bce[_0x1c1ca2('0x146')]()-0x1&&_0x1face6[_0x1c1ca2('0x12b5')]()===_0x9e4bce[_0x1c1ca2('0x12b5')]()&&_0x1face6[_0x1c1ca2('0x495')]()===_0x9e4bce[_0x1c1ca2('0x495')]())return _0xeaefc4['instant']('DASHBOARDS.YESTERDAY')+'\x20'+_0xdd81b4('date')(_0x1face6[_0x1c1ca2('0x789')](),_0x1c1ca2('0xb63'));return _0xdd81b4('date')(_0x1face6[_0x1c1ca2('0x789')](),'MMM\x20d,\x20y\x20h:mm\x20a');};}function _0x114965(){return function(_0x16244d,_0x34f79b,_0x406a1d){var _0x27ea59={},_0x4a4a10=0x0,_0x4c4c8d;for(_0x4c4c8d in _0x16244d){_0x4a4a10>=_0x406a1d&&(_0x27ea59[_0x4c4c8d]=_0x16244d[_0x4c4c8d]);if(++_0x4a4a10===_0x406a1d+_0x34f79b)break;}return _0x27ea59;};}function _0x58a837(){var _0xfd22d7=_0x1a8446,_0x3e4d58=[{'value':_0xfd22d7('0x2711')},{'value':_0xfd22d7('0x175d')},{'value':_0xfd22d7('0xdb8')},{'value':_0xfd22d7('0x1a58')},{'value':'may'},{'value':_0xfd22d7('0x128e')},{'value':'jul'},{'value':_0xfd22d7('0x1095')},{'value':_0xfd22d7('0x263f')},{'value':_0xfd22d7('0x2090')},{'value':_0xfd22d7('0x16fa')},{'value':'dec'}],_0x267b02=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x5a136f=[{'value':_0xfd22d7('0x108')},{'value':_0xfd22d7('0xcc6')},{'value':_0xfd22d7('0x1e50')},{'value':_0xfd22d7('0x7b4')},{'value':'fri'},{'value':_0xfd22d7('0x2551')},{'value':_0xfd22d7('0x1d6b')}],_0x6ad978=[0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f];return{'getMonthName':function _0x248986(){return _0x3e4d58;},'getMonthNumber':function _0x4035f0(){return _0x267b02;},'getDaysOfWeek':function _0x304339(){return _0x5a136f;},'getDaysOfMonth':function _0x5c0b71(){return _0x6ad978;}};}function _0x386928(_0x16b93d){var _0x4ff0ab=_0x1a8446;return{'Today':_0x16b93d['instant'](_0x4ff0ab('0x184c')),'Yesterday':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0xa98')),'This\x20Week':_0x16b93d['instant'](_0x4ff0ab('0x2384')),'Last\x20Week':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x1c93')),'This\x20Month':_0x16b93d['instant'](_0x4ff0ab('0x342')),'Last\x20Month':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x14c1')),'This\x20Year':_0x16b93d['instant'](_0x4ff0ab('0x2116')),'Last\x20Year':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x757')),'January':_0x16b93d['instant']('DASHBOARDS.JANUARY'),'February':_0x16b93d[_0x4ff0ab('0x213f')]('DASHBOARDS.FEBRUARY'),'March':_0x16b93d['instant'](_0x4ff0ab('0x6f5')),'April':_0x16b93d['instant']('DASHBOARDS.APRIL'),'May':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x233b')),'June':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x5ac')),'July':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x1db1')),'August':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x27b5')),'September':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0xac6')),'October':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0xc0d')),'November':_0x16b93d[_0x4ff0ab('0x213f')]('DASHBOARDS.NOVEMBER'),'December':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x167')),'Mon':_0x16b93d['instant']('DASHBOARDS.MON'),'Tue':_0x16b93d[_0x4ff0ab('0x213f')]('DASHBOARDS.TUE'),'Wed':_0x16b93d['instant'](_0x4ff0ab('0x16da')),'Thu':_0x16b93d['instant']('DASHBOARDS.THU'),'Fri':_0x16b93d['instant']('DASHBOARDS.FRI'),'Sat':_0x16b93d[_0x4ff0ab('0x213f')](_0x4ff0ab('0x283')),'Sun':_0x16b93d['instant'](_0x4ff0ab('0x8d0'))};}function _0x36fc51(){return{'enqueue':function _0x5008a8(_0x4f52bf){var _0x759b54=a0_0x1149;this['tail']=this[_0x759b54('0xe3c')]?this[_0x759b54('0xe3c')][_0x759b54('0x1889')](_0x4f52bf):_0x4f52bf();}};}const _0x3b8e98=_0x4fb511['p']+_0x1a8446('0x2246'),_0x17422a=_0x4fb511['p']+'src/js/modules/navigation/layouts/horizontal-navigation/navigation.html/navigation-[chunkhash].html',_0x29c1c8=_0x4fb511['p']+_0x1a8446('0x1995'),_0x4b647b=_0x4fb511['p']+'src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html/navigation-[chunkhash].html',_0x2aceb6=_0x4fb511['p']+_0x1a8446('0x12f6'),_0x1ba176=_0x4fb511['p']+'src/js/modules/footer/layouts/vertical-navigation/footer.html/footer-[chunkhash].html',_0x36d068=_0x4fb511['p']+'src/js/modules/quick-panel/quick-panel.html/quick-panel-[chunkhash].html';_0x24e305['$inject']=[_0x1a8446('0x2ce'),_0x1a8446('0x11fe'),_0x1a8446('0x20ae')];function _0x24e305(_0x518e0e,_0x540130,_0x1bf352){var _0x2c9a83=_0x1a8446;_0x1bf352[_0x2c9a83('0x202a')](!![]),_0x540130[_0x2c9a83('0x20d3')](_0x2c9a83('0x25c0'));var _0x4acccb;angular['injector']([_0x2c9a83('0x2a')])[_0x2c9a83('0x1719')]([_0x2c9a83('0x95f'),function(_0x475d3d){_0x4acccb=_0x475d3d;}]);var _0x5e13eb=_0x4acccb[_0x2c9a83('0x2122')](_0x2c9a83('0x1f89'))||'verticalNavigation',_0x85a097={'verticalNavigation':{'main':_0x16d051,'toolbar':_0x3b8e98,'navigation':_0x29c1c8,'header':_0x2aceb6,'footer':_0x1ba176},'verticalNavigationFullwidthToolbar':{'main':_0x27cfb4,'toolbar':'','navigation':_0x29c1c8},'verticalNavigationFullwidthToolbar2':{'main':_0x2632dd,'toolbar':'','navigation':_0x4b647b},'horizontalNavigation':{'main':_0x74befd,'toolbar':'','navigation':_0x17422a},'contentOnly':{'main':_0x149766,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x37b320,'toolbar':'','navigation':''}};_0x518e0e['state'](_0x2c9a83('0x9eb'),{'abstract':!![],'views':{'main@':{'templateUrl':_0x85a097[_0x5e13eb][_0x2c9a83('0x161')],'controller':'MainController\x20as\x20vm'},'toolbar@app':{'templateUrl':_0x85a097[_0x5e13eb]['toolbar'],'controller':_0x2c9a83('0x189d')},'navigation@app':{'templateUrl':_0x85a097[_0x5e13eb][_0x2c9a83('0x146a')],'controller':'NavigationController\x20as\x20vm'},'quickPanel@app':{'templateUrl':_0x36d068,'controller':_0x2c9a83('0x5d6')},'header@app':{'templateUrl':_0x85a097[_0x5e13eb][_0x2c9a83('0x93f')],'controller':_0x2c9a83('0x2398')},'footer@app':{'templateUrl':_0x85a097[_0x5e13eb]['footer'],'controller':_0x2c9a83('0x989')}},'resolve':{'license':[_0x2c9a83('0x1d16'),function _0x216d88(_0x4527bb){var _0x2166fb=_0x2c9a83;return _0x4527bb[_0x2166fb('0x149f')](_0x2166fb('0x2496'));}],'setting':[_0x2c9a83('0x1d16'),function _0xa93684(_0x53c643){var _0xeee589=_0x2c9a83;return _0x53c643[_0xeee589('0x149f')](_0xeee589('0xda9'),{'id':0x1});}]}});}const _0x2021a2=_0x24e305;_0x3c8bc6[_0x1a8446('0x1e33')]=[_0x1a8446('0xcaa'),_0x1a8446('0x25e0')];function _0x3c8bc6(_0x23837f,_0x3e4810){var _0x5a2bcb=_0x1a8446;_0x23837f[_0x5a2bcb('0xce4')]({},_0x3e4810[_0x5a2bcb('0x1aef')]),_0x23837f['onFinish']({},_0x3e4810[_0x5a2bcb('0xf51')]);}const _0x4376ea=_0x3c8bc6;var _0x10ad4e=_0x4fb511(0x1a99);_0x2500f0['$inject']=[_0x1a8446('0x6a4'),'Auth'];function _0x2500f0(_0xbf9ff4,_0x30f572){var _0x223766;function _0x37a588(){var _0x489052=a0_0x1149,_0x177486=!![]?window['io']:0x0,_0x6b61dc={'query':'id='+_0x30f572['getCurrentUser']()['id'],'transports':['websocket',_0x489052('0x10cc')]};_0x223766=!![]?_0x177486(_0x6b61dc):0x0;}return{'connect':_0x37a588,'on':function _0x4c1778(_0x1d89b7,_0xc8e473){var _0x3594de=a0_0x1149;_0xc8e473=_0xc8e473||angular[_0x3594de('0x27ca')],!_0x223766&&_0x37a588(),_0x223766['on'](_0x1d89b7,function(){var _0x564ff5=_0x3594de,_0x1ebccc=arguments;_0xbf9ff4[_0x564ff5('0x2773')](function(){var _0x3aeea1=_0x564ff5;_0xc8e473[_0x3aeea1('0x2609')](_0x223766,_0x1ebccc);});});},'onWithoutApply':function _0xf78194(_0x9f9412,_0x2936c5){var _0x2339d1=a0_0x1149;_0x2936c5=_0x2936c5||angular[_0x2339d1('0x27ca')],!_0x223766&&_0x37a588(),_0x223766['on'](_0x9f9412,function(){var _0x50f552=_0x2339d1;_0x2936c5[_0x50f552('0x2609')](_0x223766,arguments);});},'emit':function _0x5d609f(_0x4fd6c2,_0x2f6b1e,_0x5e6d2a){var _0x4144ba=a0_0x1149;_0x5e6d2a=_0x5e6d2a||angular[_0x4144ba('0x27ca')],!_0x223766&&_0x37a588(),_0x223766['emit'](_0x4fd6c2,_0x2f6b1e,function(){var _0x5a2412=arguments;_0xbf9ff4['$apply'](function(){var _0x42ee9d=a0_0x1149;_0x5e6d2a[_0x42ee9d('0x2609')](_0x223766,_0x5a2412);});});},'removeAllListeners':function _0x303da7(_0x59e0d3){var _0x44d809=a0_0x1149;!_0x223766&&_0x37a588(),_0x223766[_0x44d809('0x2629')](_0x59e0d3);},'removeListener':function _0x5e2815(_0x1aeb6d,_0x15c2fc){var _0x448e08=a0_0x1149;!_0x223766&&_0x37a588(),_0x223766[_0x448e08('0x560')](_0x1aeb6d,_0x15c2fc);},'disconnect':function _0x4e2c50(){!_0x223766&&_0x37a588(),_0x223766['disconnect']();}};}const _0x1af335=_0x2500f0;_0x3324ed['$inject']=['$scope',_0x1a8446('0x6a4'),_0x1a8446('0xcb3'),_0x1a8446('0x1f4b'),'msNavigationAgentService',_0x1a8446('0x1dfd'),_0x1a8446('0x2a4'),'license','api','setting'];function _0x3324ed(_0x16ca1e,_0x3eb50f,_0x4880b7,_0x25f250,_0x40900d,_0x367cec,_0x3ebd2f,_0x436c4e,_0x24fc41,_0x18e5cf){var _0x34026b=_0x1a8446,_0x22c7eb=this;_0x3ebd2f[_0x34026b('0x11e7')]();function _0x14f4d8(){var _0x467327=_0x34026b;return _0x367cec['getCurrentUser']()&&_0x367cec[_0x467327('0x26e8')](_0x467327('0xeff'));}_0x22c7eb['isAgent']=_0x14f4d8;function _0x162b59(_0x1de4f5,_0x1f5e35){var _0x2ad142=_0x34026b;return{'id':_0x1de4f5,'title':_0x1f5e35[_0x2ad142('0x25d6')]||_0x2ad142('0x18a5'),'state':_0x2ad142('0x1775'),'stateParams':_0x1f5e35,'weight':0x2,'hidden':function _0x33683f(){var _0x4eb03a=_0x2ad142;return _0x367cec[_0x4eb03a('0x26e8')]('agent')||!_0x367cec[_0x4eb03a('0x69e')](_0x1de4f5)&&!_0x367cec[_0x4eb03a('0x26e8')](_0x4eb03a('0x178b'));}};}function _0x46facb(_0x15a65f,_0x159fbc){var _0x2b82f0=_0x34026b;return{'id':_0x15a65f,'title':_0x159fbc[_0x2b82f0('0x25d6')]||_0x2b82f0('0x18a5'),'state':_0x2b82f0('0xc6e'),'stateParams':_0x159fbc,'weight':0x2,'hidden':function _0x12f9aa(){var _0x382fad=_0x2b82f0;return _0x367cec[_0x382fad('0x26e8')](_0x382fad('0xeff'))||!_0x367cec['hasPermission'](_0x15a65f)&&!_0x367cec['hasRole'](_0x382fad('0x178b'));}};}function _0x5381b6(_0x41c665,_0x17964){var _0x1d9446=_0x34026b,_0x3c5234={'user':_0x51538b()[_0x1d9446('0x104e')](_0x367cec[_0x1d9446('0xacc')](),['id',_0x1d9446('0x25d6'),_0x1d9446('0x18e5'),_0x1d9446('0x1f69'),'role',_0x1d9446('0x1b0d'),_0x1d9446('0x180')])};_0x17964[_0x1d9446('0x2518')]=_0x5e8d06()[_0x1d9446('0x4b0')](_0x17964[_0x1d9446('0x2518')],_0x3c5234),_0x40900d[_0x1d9446('0x24c7')](_0x1d9446('0x52c')+_0x41c665,{'id':_0x41c665,'title':_0x17964[_0x1d9446('0x25d6')],'translate':_0x17964['name'],'state':_0x1d9446('0x20a7')+_0x17964['id'],'stateParams':_0x17964,'view':_0x1d9446('0x19a4'),'icon':_0x17964[_0x1d9446('0xd61')],'weight':0xc,'hidden':function _0x46cd2a(){var _0x12c1b2=_0x1d9446;return!_0x367cec[_0x12c1b2('0x69e')](_0x41c665);}});}_0x25f250['saveItem']('apps',{'title':'APPS','group':!![],'weight':0x1,'hidden':function _0x41e77a(){var _0x9b6553=_0x34026b;return _0x367cec[_0x9b6553('0x26e8')](_0x9b6553('0xeff'));}}),_0x24fc41[_0x34026b('0x2678')]['get']()['$promise'][_0x34026b('0xaa5')](function(_0x5de8a6){var _0x31181f=_0x34026b;_0x22c7eb[_0x31181f('0x2678')]=_0x5de8a6&&_0x5de8a6[_0x31181f('0x4cb')]?_0x5de8a6[_0x31181f('0x4cb')]:_0x31181f('0x24b6');})[_0x34026b('0x253d')](function(){_0x22c7eb['version']='UNKNOWN';})[_0x34026b('0x1889')](function(){var _0x448398=_0x34026b;_0x25f250[_0x448398('0x24c7')](_0x448398('0x2678'),{'title':'VERSION\x20'+_0x22c7eb[_0x448398('0x2678')],'group':!![],'weight':0x2,'hidden':function _0x39060e(){var _0x21f34=_0x448398;return _0x367cec[_0x21f34('0x26e8')](_0x21f34('0xeff'));}});});function _0x2095b5(_0xdf459c){var _0x26655c=_0x34026b;return _0x51538b()[_0x26655c('0x1246')](_0xdf459c[_0x26655c('0x12ad')],function(_0x220d1d){return _0x220d1d['id'];});}_0x367cec['isLoggedIn']()&&(_0x436c4e['gray']&&_0x3ebd2f['warning']({'msg':_0x4880b7['instant'](_0x34026b('0x18c7')),'showClose':!![],'timeout':![]}),_0x24fc41[_0x34026b('0x55')][_0x34026b('0x2122')]()[_0x34026b('0x1dc2')][_0x34026b('0xaa5')](function(_0x5dc718){var _0x5aef47=_0x34026b,_0x1bd775=0x0;for(var _0x1024f0=0x0;_0x1024f0<_0x5dc718[_0x5aef47('0x580')][_0x5aef47('0x2587')];_0x1024f0+=0x1){_0x1bd775=0x1869f+_0x5dc718[_0x5aef47('0x580')][_0x1024f0]['id'],_0x25f250[_0x5aef47('0x24c7')](_0x5aef47('0x1197')+_0x1bd775,_0x162b59(_0x1bd775,_0x5dc718['rows'][_0x1024f0]));}}),_0x24fc41[_0x34026b('0x19a4')][_0x34026b('0x2122')]({'active':!![]})[_0x34026b('0x1dc2')]['then'](function(_0x225f6f){var _0xaca686=_0x34026b,_0x3e3e0b=0x0;if(_0x225f6f['count']){var _0x36b9b8=_0x51538b()[_0xaca686('0xdb7')](_0x225f6f[_0xaca686('0x580')],function(_0x5de95c){var _0x41f8d7=_0xaca686;return _0x5de95c[_0x41f8d7('0x1e3')]!=_0x41f8d7('0x158d')&&_0x5de95c[_0x41f8d7('0x1e3')]!=_0x41f8d7('0x54d');});if(_0x36b9b8[_0xaca686('0x2587')]>0x0){_0x25f250['saveItem'](_0xaca686('0x2176'),{'id':0x76c,'title':_0xaca686('0x2271'),'translate':_0xaca686('0xf5a'),'icon':_0xaca686('0x1892'),'permissions':{'hidden':!![]},'weight':0x11,'hidden':function _0x777539(){var _0x1ac33a=_0xaca686;return _0x367cec[_0x1ac33a('0x26e8')](_0x1ac33a('0xeff'))||!_0x367cec[_0x1ac33a('0x1d6d')](_0x2095b5(this))&&!_0x367cec['hasRole']('admin');}});for(var _0x221744=0x0;_0x221744<_0x36b9b8[_0xaca686('0x2587')];_0x221744+=0x1){_0x3e3e0b=0x15b38+_0x36b9b8[_0x221744]['id'],_0x25f250[_0xaca686('0x24c7')]('apps.plugins.plugin_'+_0x3e3e0b,_0x46facb(_0x3e3e0b,_0x36b9b8[_0x221744]));}_0x25f250[_0xaca686('0x1015')]();}var _0x463080=_0x51538b()[_0xaca686('0xdb7')](_0x225f6f[_0xaca686('0x580')],function(_0x2e110f){var _0x1cd2bc=_0xaca686;return _0x2e110f[_0x1cd2bc('0x1e3')]!=_0x1cd2bc('0x158d')&&_0x2e110f[_0x1cd2bc('0x1e3')]!=_0x1cd2bc('0x1e95');});if(_0x463080[_0xaca686('0x2587')]>0x0)for(var _0x81dfa=0x0;_0x81dfa<_0x463080['length'];_0x81dfa+=0x1){_0x3e3e0b=0x15b38+_0x463080[_0x81dfa]['id'],_0x5381b6(_0x3e3e0b,_0x463080[_0x81dfa]);}}})),_0x436c4e['custom']&&!_0x18e5cf[_0x34026b('0x210f')]&&_0x18e5cf[_0x34026b('0x144e')]&&angular[_0x34026b('0x1aa8')](_0x34026b('0x2276'))[_0x34026b('0x1869')](_0x18e5cf[_0x34026b('0x144e')]),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x129f'),{'id':0x64,'title':_0x34026b('0x236c'),'translate':_0x34026b('0x2546'),'icon':_0x34026b('0x208e'),'weight':0x2,'hidden':function _0x39b4be(){var _0x518403=_0x34026b;return _0x367cec['hasRole'](_0x518403('0xeff'))||!_0x367cec[_0x518403('0x1d6d')](_0x2095b5(this))&&!_0x367cec['hasRole'](_0x518403('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x591'),{'id':0x65,'title':_0x34026b('0x1e26'),'route':'','translate':_0x34026b('0x1b79'),'state':_0x34026b('0xd98'),'weight':0x1,'hidden':function _0x2c34fa(){var _0x4d42ed=_0x34026b;return _0x367cec[_0x4d42ed('0x26e8')]('agent')||!_0x367cec[_0x4d42ed('0x69e')](0x65)&&!_0x367cec[_0x4d42ed('0x26e8')](_0x4d42ed('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1522'),{'id':0xc8,'title':_0x34026b('0x26b0'),'translate':_0x34026b('0x1297'),'icon':_0x34026b('0x419'),'weight':0x3,'hidden':function _0x5a368a(){var _0x526cfb=_0x34026b;return _0x367cec[_0x526cfb('0x26e8')](_0x526cfb('0xeff'))||!_0x367cec[_0x526cfb('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x526cfb('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')]('apps.staff.users',{'id':0xc9,'title':_0x34026b('0x16b4'),'route':'user','translate':_0x34026b('0xf89'),'state':_0x34026b('0x691'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function _0x12bad8(){var _0x2e0821=_0x34026b;return _0x367cec[_0x2e0821('0x26e8')]('agent')||_0x367cec['hasRole']('user')||!_0x367cec['hasPermission'](0xc9)&&!_0x367cec[_0x2e0821('0x26e8')](_0x2e0821('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.staff.agents',{'id':0xca,'title':'Agents','route':_0x34026b('0x272b'),'translate':_0x34026b('0x7c2'),'state':_0x34026b('0xd19'),'weight':0x1,'hidden':function _0x15e03c(){var _0x5d6374=_0x34026b;return _0x367cec[_0x5d6374('0x26e8')](_0x5d6374('0xeff'))||!_0x367cec['hasPermission'](0xca)&&!_0x367cec[_0x5d6374('0x26e8')](_0x5d6374('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1976'),{'id':0xcb,'title':_0x34026b('0x1c00'),'route':'user','translate':_0x34026b('0x1564'),'state':_0x34026b('0xf6a'),'weight':0x1,'hidden':function _0x4694dd(){var _0x3039cd=_0x34026b;return _0x367cec['hasRole'](_0x3039cd('0xeff'))||!_0x367cec[_0x3039cd('0x69e')](0xcb)&&!_0x367cec[_0x3039cd('0x26e8')](_0x3039cd('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1b9a'),{'id':0xcc,'title':_0x34026b('0x10ee'),'route':_0x34026b('0x257c'),'translate':_0x34026b('0x2079'),'state':'app.staff.teams','weight':0x1,'hidden':function _0x3d72cd(){var _0x3d83d1=_0x34026b;return _0x367cec['hasRole'](_0x3d83d1('0xeff'))||!_0x367cec[_0x3d83d1('0x69e')](0xcc)&&!_0x367cec[_0x3d83d1('0x26e8')](_0x3d83d1('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x17b9'),{'id':0xcd,'title':_0x34026b('0x56f'),'route':'userProfile','translate':_0x34026b('0xff5'),'state':_0x34026b('0x2645'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function _0xbf5bdc(){var _0x3f55bd=_0x34026b;return _0x367cec[_0x3f55bd('0x26e8')]('agent')||!_0x367cec[_0x3f55bd('0x69e')](0xcd)&&!_0x367cec[_0x3f55bd('0x26e8')](_0x3f55bd('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x20b'),{'id':0x12c,'title':'ContactManager','translate':'CONTACTMANAGER.CONTACTMANAGER','icon':_0x34026b('0x2207'),'weight':0x4,'license':'cm','hidden':function _0x231fcf(){var _0x57385c=_0x34026b;return!_0x436c4e['cm']||_0x367cec['hasRole']('agent')||!_0x367cec[_0x57385c('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x57385c('0x26e8')](_0x57385c('0x178b'));}}),_0x25f250['saveItem']('apps.contactmanager.lists',{'id':0x12d,'title':_0x34026b('0x1135'),'route':'cmList','translate':_0x34026b('0xa65'),'state':_0x34026b('0x6dd'),'weight':0x2,'hidden':function _0x1d3ea6(){var _0x2d6ff9=_0x34026b;return _0x367cec['hasRole'](_0x2d6ff9('0xeff'))||!_0x367cec[_0x2d6ff9('0x69e')](0x12d)&&!_0x367cec[_0x2d6ff9('0x26e8')](_0x2d6ff9('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x3c7'),{'id':0x12e,'title':'Companies','route':_0x34026b('0x218'),'translate':_0x34026b('0x1b41'),'state':_0x34026b('0x265d'),'weight':0x3,'hidden':function _0x76911b(){var _0x4e9ffc=_0x34026b;return _0x367cec[_0x4e9ffc('0x26e8')](_0x4e9ffc('0xeff'))||!_0x367cec[_0x4e9ffc('0x69e')](0x12e)&&!_0x367cec['hasRole']('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x7da'),{'id':0x130,'title':_0x34026b('0x5ce'),'route':_0x34026b('0x23e3'),'translate':_0x34026b('0x1fd'),'state':_0x34026b('0x20c6'),'weight':0x4,'permissions':{'association':![]},'hidden':function _0x10527b(){var _0x5286ff=_0x34026b;return _0x367cec[_0x5286ff('0x26e8')](_0x5286ff('0xeff'))||!_0x367cec[_0x5286ff('0x69e')](0x130)&&!_0x367cec['hasRole'](_0x5286ff('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x134e'),{'id':0x12f,'title':'Contacts','route':'','translate':'CONTACTMANAGER.CONTACTS','state':_0x34026b('0x23fd'),'weight':0x1,'permissions':{'association':![]},'hidden':function _0x15162e(){var _0x3c9e52=_0x34026b;return _0x367cec['hasRole']('agent')||!_0x367cec[_0x3c9e52('0x69e')](0x12f)&&!_0x367cec[_0x3c9e52('0x26e8')](_0x3c9e52('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1ff4'),{'id':0x190,'title':_0x34026b('0x11b3'),'translate':'VOICE.VOICE','icon':_0x34026b('0x17bd'),'weight':0x5,'license':_0x34026b('0x1b9'),'hidden':function _0x1cc1c0(){var _0x3a4288=_0x34026b;return!_0x436c4e[_0x3a4288('0x1b9')]||_0x367cec['hasRole'](_0x3a4288('0xeff'))||!_0x367cec[_0x3a4288('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x3a4288('0x26e8')](_0x3a4288('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x107e'),{'id':0x191,'title':_0x34026b('0x24cb'),'route':_0x34026b('0x1588'),'translate':_0x34026b('0x235e'),'state':_0x34026b('0xb44'),'weight':0x1,'channel':_0x34026b('0x1b9'),'hidden':function _0x44183e(){var _0x57bdf0=_0x34026b;return _0x367cec[_0x57bdf0('0x26e8')](_0x57bdf0('0xeff'))||!_0x367cec[_0x57bdf0('0x69e')](0x191)&&!_0x367cec['hasRole'](_0x57bdf0('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.voice.inboundroutes',{'id':0x192,'title':_0x34026b('0x2b6'),'route':_0x34026b('0x1361'),'translate':'VOICE.INBOUNDROUTES','state':'app.voice.inboundroutes','weight':0x1,'hidden':function _0x3df29d(){var _0x5ec3d3=_0x34026b;return _0x367cec[_0x5ec3d3('0x26e8')](_0x5ec3d3('0xeff'))||!_0x367cec[_0x5ec3d3('0x69e')](0x192)&&!_0x367cec[_0x5ec3d3('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')]('apps.voice.outboundroutes',{'id':0x193,'title':'OutboundRoutes','route':_0x34026b('0x1361'),'translate':'VOICE.OUTBOUNDROUTES','state':_0x34026b('0x907'),'weight':0x1,'hidden':function _0x62f59d(){var _0x565b82=_0x34026b;return _0x367cec[_0x565b82('0x26e8')]('agent')||!_0x367cec[_0x565b82('0x69e')](0x193)&&!_0x367cec[_0x565b82('0x26e8')](_0x565b82('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x224f'),{'id':0x194,'title':_0x34026b('0x2081'),'route':_0x34026b('0x1361'),'translate':_0x34026b('0x5c3'),'state':'app.voice.internalroutes','weight':0x1,'hidden':function _0x45011f(){var _0xf0a636=_0x34026b;return _0x367cec[_0xf0a636('0x26e8')](_0xf0a636('0xeff'))||!_0x367cec[_0xf0a636('0x69e')](0x194)&&!_0x367cec[_0xf0a636('0x26e8')]('admin');}}),_0x25f250['saveItem'](_0x34026b('0x23ff'),{'id':0x195,'title':_0x34026b('0x215'),'route':_0x34026b('0x68c'),'translate':_0x34026b('0xf10'),'state':'app.voice.contexts','weight':0x1,'hidden':function _0x565855(){var _0x1e3dad=_0x34026b;return _0x367cec['hasRole']('agent')||!_0x367cec[_0x1e3dad('0x69e')](0x195)&&!_0x367cec[_0x1e3dad('0x26e8')](_0x1e3dad('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0xfb8'),{'id':0x196,'title':_0x34026b('0x5c7'),'route':_0x34026b('0x2264'),'translate':_0x34026b('0x1d22'),'state':'app.voice.voicemails','weight':0x1,'hidden':function _0x1f20b5(){var _0x52f260=_0x34026b;return _0x367cec[_0x52f260('0x26e8')](_0x52f260('0xeff'))||!_0x367cec[_0x52f260('0x69e')](0x196)&&!_0x367cec[_0x52f260('0x26e8')](_0x52f260('0x178b'));}}),_0x25f250['saveItem']('apps.voice.musiconholds',{'id':0x197,'title':_0x34026b('0x1e45'),'route':_0x34026b('0x1959'),'translate':'VOICE.MUSICONHOLDS','state':_0x34026b('0x53e'),'weight':0x1,'hidden':function _0x10c3f2(){var _0x3d7c20=_0x34026b;return _0x367cec[_0x3d7c20('0x26e8')](_0x3d7c20('0xeff'))||!_0x367cec[_0x3d7c20('0x69e')](0x197)&&!_0x367cec[_0x3d7c20('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x14e5'),{'id':0x198,'title':_0x34026b('0x223a'),'route':_0x34026b('0x2366'),'translate':_0x34026b('0x110d'),'state':'app.voice.voiceRecordings','weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x483219(){var _0x2df884=_0x34026b;return _0x367cec['hasRole'](_0x2df884('0xeff'))||!_0x367cec[_0x2df884('0x69e')](0x198)&&!_0x367cec[_0x2df884('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1fd6'),{'id':0x199,'title':_0x34026b('0x1193'),'route':_0x34026b('0x10ba'),'translate':_0x34026b('0x196d'),'state':_0x34026b('0xe00'),'weight':0x1,'hidden':function _0x244dcb(){var _0x1e879f=_0x34026b;return _0x367cec[_0x1e879f('0x26e8')](_0x1e879f('0xeff'))||!_0x367cec[_0x1e879f('0x69e')](0x199)&&!_0x367cec[_0x1e879f('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1ea9'),{'id':0x19a,'title':_0x34026b('0x6f8'),'route':'voicePrefix','translate':_0x34026b('0x1464'),'state':_0x34026b('0x21dd'),'weight':0x1,'hidden':function _0x33a131(){var _0x7b2edb=_0x34026b;return _0x367cec['hasRole'](_0x7b2edb('0xeff'))||!_0x367cec[_0x7b2edb('0x69e')](0x19a)&&!_0x367cec['hasRole'](_0x7b2edb('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.voice.realtime',{'id':0x19b,'title':_0x34026b('0x7eb'),'route':'','translate':_0x34026b('0x18c6'),'state':_0x34026b('0x19a1'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x5b2356(){var _0x59c52e=_0x34026b;return _0x367cec[_0x59c52e('0x26e8')](_0x59c52e('0xeff'))||!_0x367cec[_0x59c52e('0x69e')](0x19b)&&!_0x367cec[_0x59c52e('0x26e8')](_0x59c52e('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.chat',{'id':0x1f4,'title':_0x34026b('0x20b5'),'translate':'CHAT.CHAT','icon':'icon-hangouts','weight':0x6,'license':_0x34026b('0x20f9'),'hidden':function _0x4c89bc(){var _0x504edf=_0x34026b;return!_0x436c4e[_0x504edf('0x20f9')]||_0x367cec[_0x504edf('0x26e8')](_0x504edf('0xeff'))||!_0x367cec['hasChildrenPermissions'](_0x2095b5(this))&&!_0x367cec[_0x504edf('0x26e8')](_0x504edf('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x2745'),{'id':0x1f5,'title':'ChatQueues','route':_0x34026b('0x2837'),'translate':_0x34026b('0x6e2'),'state':'app.chat.chatQueues','weight':0x1,'channel':_0x34026b('0x20f9'),'hidden':function _0x4c71f5(){var _0x4a3b59=_0x34026b;return _0x367cec[_0x4a3b59('0x26e8')]('agent')||!_0x367cec[_0x4a3b59('0x69e')](0x1f5)&&!_0x367cec[_0x4a3b59('0x26e8')](_0x4a3b59('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x27da'),{'id':0x1f6,'title':'ChatWebsites','route':_0x34026b('0x10f1'),'translate':_0x34026b('0x949'),'state':_0x34026b('0x1bb9'),'weight':0x1,'channel':'chat','hidden':function _0x1b4ee4(){var _0x5a81f4=_0x34026b;return _0x367cec[_0x5a81f4('0x26e8')]('agent')||!_0x367cec[_0x5a81f4('0x69e')](0x1f6)&&!_0x367cec[_0x5a81f4('0x26e8')](_0x5a81f4('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x7ff'),{'id':0x1fe,'title':_0x34026b('0x7eb'),'route':'','translate':_0x34026b('0x7e5'),'state':_0x34026b('0x5ab'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x13147f(){var _0x46889f=_0x34026b;return _0x367cec['hasRole']('agent')||!_0x367cec[_0x46889f('0x69e')](0x1fe)&&!_0x367cec['hasRole'](_0x46889f('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0xd6f'),{'id':0x258,'title':_0x34026b('0x2cc'),'translate':_0x34026b('0x585'),'icon':_0x34026b('0x279a'),'weight':0x7,'license':_0x34026b('0x14c5'),'hidden':function _0x30da03(){var _0x36b050=_0x34026b;return!_0x436c4e[_0x36b050('0x14c5')]||_0x367cec['hasRole'](_0x36b050('0xeff'))||!_0x367cec[_0x36b050('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x36b050('0x26e8')]('admin');}}),_0x25f250['saveItem'](_0x34026b('0x1e86'),{'id':0x259,'title':_0x34026b('0xafe'),'route':_0x34026b('0x21c6'),'translate':_0x34026b('0xda6'),'state':_0x34026b('0x14fd'),'weight':0x1,'channel':_0x34026b('0x14c5'),'hidden':function _0x49fab4(){var _0xa35529=_0x34026b;return _0x367cec[_0xa35529('0x26e8')](_0xa35529('0xeff'))||!_0x367cec[_0xa35529('0x69e')](0x259)&&!_0x367cec[_0xa35529('0x26e8')](_0xa35529('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1607'),{'id':0x25a,'title':_0x34026b('0x5b2'),'route':_0x34026b('0xb86'),'translate':_0x34026b('0x256f'),'state':'app.mail.mailAccounts','weight':0x1,'channel':_0x34026b('0x14c5'),'hidden':function _0x2c1e09(){var _0x1de125=_0x34026b;return _0x367cec[_0x1de125('0x26e8')]('agent')||!_0x367cec[_0x1de125('0x69e')](0x25a)&&!_0x367cec[_0x1de125('0x26e8')]('admin');}}),_0x25f250['saveItem']('apps.mail.mailSubtatuses',{'id':0x25b,'title':'MailSubstatuses','route':_0x34026b('0x13b1'),'translate':_0x34026b('0x709'),'state':_0x34026b('0xfed'),'weight':0x1,'channel':'mail','permissions':{'association':![]},'hidden':function _0x3ccbef(){var _0x1d670f=_0x34026b;return _0x367cec[_0x1d670f('0x26e8')](_0x1d670f('0xeff'))||!_0x367cec[_0x1d670f('0x69e')](0x25b)&&!_0x367cec[_0x1d670f('0x26e8')](_0x1d670f('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x7e8'),{'id':0x262,'title':'Realtime','route':'','translate':_0x34026b('0x245b'),'state':_0x34026b('0xaa8'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x2a73e1(){var _0x5107e7=_0x34026b;return _0x367cec[_0x5107e7('0x26e8')](_0x5107e7('0xeff'))||!_0x367cec['hasPermission'](0x262)&&!_0x367cec['hasRole'](_0x5107e7('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x2370'),{'id':0x2bc,'title':_0x34026b('0x2824'),'translate':_0x34026b('0x1f17'),'icon':_0x34026b('0x1941'),'weight':0x8,'license':_0x34026b('0x21c2'),'hidden':function _0x3d5f0d(){var _0x761ce1=_0x34026b;return!_0x436c4e[_0x761ce1('0x21c2')]||_0x367cec[_0x761ce1('0x26e8')](_0x761ce1('0xeff'))||!_0x367cec[_0x761ce1('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x761ce1('0x26e8')](_0x761ce1('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.sms.smsQueues',{'id':0x2bd,'title':_0x34026b('0x1af'),'route':_0x34026b('0x14a6'),'translate':_0x34026b('0x4c0'),'state':_0x34026b('0x113c'),'weight':0x1,'channel':_0x34026b('0x18da'),'hidden':function _0x21f9c3(){var _0x63f063=_0x34026b;return _0x367cec[_0x63f063('0x26e8')](_0x63f063('0xeff'))||!_0x367cec[_0x63f063('0x69e')](0x2bd)&&!_0x367cec[_0x63f063('0x26e8')](_0x63f063('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.sms.smsAccounts',{'id':0x2be,'title':_0x34026b('0x10d9'),'route':_0x34026b('0x1658'),'translate':'SMS.SMSACCOUNTS','state':_0x34026b('0x27e7'),'weight':0x1,'channel':_0x34026b('0x18da'),'hidden':function _0x549060(){var _0xbd8787=_0x34026b;return _0x367cec[_0xbd8787('0x26e8')]('agent')||!_0x367cec[_0xbd8787('0x69e')](0x2be)&&!_0x367cec[_0xbd8787('0x26e8')](_0xbd8787('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x19c2'),{'id':0x2c6,'title':_0x34026b('0x7eb'),'route':'','translate':_0x34026b('0x201f'),'state':_0x34026b('0x8ee'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x1fd2b9(){var _0x5884cf=_0x34026b;return _0x367cec[_0x5884cf('0x26e8')](_0x5884cf('0xeff'))||!_0x367cec[_0x5884cf('0x69e')](0x2c6)&&!_0x367cec[_0x5884cf('0x26e8')](_0x5884cf('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.openchannel',{'id':0x320,'title':_0x34026b('0x1dad'),'translate':_0x34026b('0xafa'),'icon':_0x34026b('0x3'),'weight':0x9,'license':_0x34026b('0x170'),'hidden':function _0x969b94(){var _0x45c3cc=_0x34026b;return!_0x436c4e[_0x45c3cc('0x170')]||_0x367cec[_0x45c3cc('0x26e8')]('agent')||!_0x367cec[_0x45c3cc('0x1d6d')](_0x2095b5(this))&&!_0x367cec['hasRole'](_0x45c3cc('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0xf0b'),{'id':0x321,'title':_0x34026b('0x171c'),'route':'openchannelQueue','translate':'OPENCHANNEL.OPENCHANNELQUEUES','state':'app.openchannel.openchannelQueues','weight':0x1,'channel':_0x34026b('0xed1'),'hidden':function _0x381b47(){var _0x85de6e=_0x34026b;return _0x367cec[_0x85de6e('0x26e8')](_0x85de6e('0xeff'))||!_0x367cec[_0x85de6e('0x69e')](0x321)&&!_0x367cec[_0x85de6e('0x26e8')](_0x85de6e('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.openchannel.openchannelAccounts',{'id':0x322,'title':_0x34026b('0x271b'),'route':_0x34026b('0x2566'),'translate':_0x34026b('0xf0d'),'state':_0x34026b('0x1f2a'),'weight':0x1,'channel':'openChannel','hidden':function _0x5880bf(){var _0x16df2d=_0x34026b;return _0x367cec['hasRole'](_0x16df2d('0xeff'))||!_0x367cec[_0x16df2d('0x69e')](0x322)&&!_0x367cec[_0x16df2d('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')]('apps.openchannel.realtime',{'id':0x32a,'title':_0x34026b('0x7eb'),'route':'','translate':_0x34026b('0x1f74'),'state':_0x34026b('0x36b'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x46149b(){var _0x326ec6=_0x34026b;return _0x367cec[_0x326ec6('0x26e8')](_0x326ec6('0xeff'))||!_0x367cec[_0x326ec6('0x69e')](0x32a)&&!_0x367cec[_0x326ec6('0x26e8')]('admin');}}),_0x25f250['saveItem']('apps.fax',{'id':0x384,'title':_0x34026b('0x1ff8'),'translate':_0x34026b('0x1007'),'icon':_0x34026b('0x771'),'weight':0xa,'license':_0x34026b('0x16c4'),'hidden':function _0x10c424(){var _0x3c6010=_0x34026b;return!_0x436c4e[_0x3c6010('0x16c4')]||_0x367cec[_0x3c6010('0x26e8')](_0x3c6010('0xeff'))||!_0x367cec[_0x3c6010('0x1d6d')](_0x2095b5(this))&&!_0x367cec['hasRole'](_0x3c6010('0x178b'));}}),_0x25f250['saveItem']('apps.fax.faxQueues',{'id':0x385,'title':'FaxQueues','route':_0x34026b('0xaf9'),'translate':'FAX.FAXQUEUES','state':'app.fax.faxQueues','weight':0x1,'channel':_0x34026b('0x16c4'),'hidden':function _0x44c02d(){var _0x25aee9=_0x34026b;return _0x367cec[_0x25aee9('0x26e8')](_0x25aee9('0xeff'))||!_0x367cec[_0x25aee9('0x69e')](0x385)&&!_0x367cec[_0x25aee9('0x26e8')](_0x25aee9('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.fax.faxAccounts',{'id':0x386,'title':_0x34026b('0xd5'),'route':_0x34026b('0x1f6a'),'translate':_0x34026b('0x23c'),'state':_0x34026b('0x702'),'weight':0x1,'channel':'fax','hidden':function _0x1c3dc2(){var _0xf979cb=_0x34026b;return _0x367cec[_0xf979cb('0x26e8')]('agent')||!_0x367cec[_0xf979cb('0x69e')](0x386)&&!_0x367cec[_0xf979cb('0x26e8')](_0xf979cb('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x273d'),{'id':0x38e,'title':_0x34026b('0x7eb'),'route':'','translate':_0x34026b('0x179d'),'state':_0x34026b('0x1b81'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x11c24c(){var _0x3acf65=_0x34026b;return _0x367cec['hasRole']('agent')||!_0x367cec[_0x3acf65('0x69e')](0x38e)&&!_0x367cec[_0x3acf65('0x26e8')](_0x3acf65('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1fa9'),{'id':0x3e8,'title':'Tools','translate':_0x34026b('0xac9'),'icon':_0x34026b('0x12ae'),'weight':0xf,'hidden':function _0x319c7e(){var _0x16f067=_0x34026b;return _0x367cec['hasRole']('agent')||!_0x367cec[_0x16f067('0x1d6d')](_0x2095b5(this))&&!_0x367cec['hasRole'](_0x16f067('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x2301'),{'id':0x3e9,'title':'CannedAnswers','route':_0x34026b('0x1a53'),'translate':_0x34026b('0x2166'),'state':'app.tools.cannedAnswers','weight':0x1,'hidden':function _0x287076(){var _0x42bc50=_0x34026b;return _0x367cec[_0x42bc50('0x26e8')]('agent')||!_0x367cec[_0x42bc50('0x69e')](0x3e9)&&!_0x367cec['hasRole'](_0x42bc50('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1176'),{'id':0x3eb,'title':_0x34026b('0x1148'),'route':_0x34026b('0x55'),'translate':_0x34026b('0x13cc'),'state':'app.tools.customDashboards','weight':0x3,'hidden':function _0x4f26f8(){var _0x4f7737=_0x34026b;return _0x367cec[_0x4f7737('0x26e8')](_0x4f7737('0xeff'))||!_0x367cec[_0x4f7737('0x69e')](0x3eb)&&!_0x367cec[_0x4f7737('0x26e8')](_0x4f7737('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x2788'),{'id':0x3ec,'title':_0x34026b('0xb1b'),'route':_0x34026b('0x1c21'),'translate':_0x34026b('0x243b'),'state':_0x34026b('0x14d'),'weight':0x4,'hidden':function _0x5d8205(){var _0x3b4319=_0x34026b;return _0x367cec[_0x3b4319('0x26e8')]('agent')||!_0x367cec[_0x3b4319('0x69e')](0x3ec)&&!_0x367cec[_0x3b4319('0x26e8')](_0x3b4319('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0xdb6'),{'id':0x3ed,'title':_0x34026b('0x1bbe'),'route':_0x34026b('0x167c'),'translate':_0x34026b('0x1725'),'state':'app.tools.pauses','weight':0x5,'hidden':function _0x337dc1(){var _0x2ab6bd=_0x34026b;return _0x367cec[_0x2ab6bd('0x26e8')](_0x2ab6bd('0xeff'))||!_0x367cec[_0x2ab6bd('0x69e')](0x3ed)&&!_0x367cec[_0x2ab6bd('0x26e8')](_0x2ab6bd('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1f02'),{'id':0x3ee,'title':_0x34026b('0x1a18'),'route':_0x34026b('0x2098'),'translate':_0x34026b('0xee3'),'state':_0x34026b('0x1675'),'weight':0x6,'hidden':function _0x44361b(){var _0x9b8d7f=_0x34026b;return _0x367cec['hasRole'](_0x9b8d7f('0xeff'))||!_0x367cec['hasPermission'](0x3ee)&&!_0x367cec[_0x9b8d7f('0x26e8')](_0x9b8d7f('0x178b'));}}),_0x25f250['saveItem']('apps.tools.sounds',{'id':0x3ef,'title':'Sounds','route':_0x34026b('0x7d6'),'translate':_0x34026b('0xdec'),'state':_0x34026b('0x225a'),'weight':0x7,'hidden':function _0x4516bb(){var _0x5d3b69=_0x34026b;return _0x367cec[_0x5d3b69('0x26e8')](_0x5d3b69('0xeff'))||!_0x367cec[_0x5d3b69('0x69e')](0x3ef)&&!_0x367cec[_0x5d3b69('0x26e8')](_0x5d3b69('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x23a5'),{'id':0x3f0,'title':_0x34026b('0x67f'),'route':_0x34026b('0x38f'),'translate':'TOOLS.TAGS','state':_0x34026b('0x14e2'),'weight':0x8,'hidden':function _0x4160d8(){var _0x5c3196=_0x34026b;return _0x367cec['hasRole'](_0x5c3196('0xeff'))||!_0x367cec[_0x5c3196('0x69e')](0x3f0)&&!_0x367cec[_0x5c3196('0x26e8')](_0x5c3196('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x2320'),{'id':0x3f1,'title':'Templates','route':_0x34026b('0x11f6'),'translate':_0x34026b('0x63b'),'state':_0x34026b('0x2419'),'weight':0x9,'hidden':function _0x5e65bc(){var _0x25a801=_0x34026b;return _0x367cec[_0x25a801('0x26e8')]('agent')||!_0x367cec[_0x25a801('0x69e')](0x3f1)&&!_0x367cec['hasRole'](_0x25a801('0x178b'));}}),_0x25f250['saveItem']('apps.tools.trunks',{'id':0x3f3,'title':_0x34026b('0x1e84'),'route':_0x34026b('0x1651'),'translate':'TOOLS.TRUNKS','state':'app.tools.trunks','weight':0xb,'hidden':function _0x34ee9a(){var _0x2b4c40=_0x34026b;return _0x367cec[_0x2b4c40('0x26e8')](_0x2b4c40('0xeff'))||!_0x367cec[_0x2b4c40('0x69e')](0x3f3)&&!_0x367cec[_0x2b4c40('0x26e8')](_0x2b4c40('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.tools.variables',{'id':0x3f4,'title':_0x34026b('0x4db'),'route':_0x34026b('0x14e7'),'translate':_0x34026b('0x1147'),'state':_0x34026b('0x2532'),'weight':0xc,'hidden':function _0x5e2594(){var _0x530e95=_0x34026b;return _0x367cec[_0x530e95('0x26e8')](_0x530e95('0xeff'))||!_0x367cec['hasPermission'](0x3f4)&&!_0x367cec[_0x530e95('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x602'),{'id':0x3ea,'title':_0x34026b('0x38d'),'route':_0x34026b('0x106e'),'translate':_0x34026b('0x818'),'state':_0x34026b('0x194f'),'weight':0x2,'hidden':function _0x777db8(){var _0x515d3f=_0x34026b;return _0x367cec[_0x515d3f('0x26e8')](_0x515d3f('0xeff'))||!_0x367cec['hasPermission'](0x3ea)&&!_0x367cec[_0x515d3f('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')]('apps.tools.triggers',{'id':0x3f2,'title':_0x34026b('0x7b8'),'route':'','translate':'TOOLS.TRIGGERS','state':_0x34026b('0x8a0'),'weight':0xa,'hidden':function _0x1169f6(){var _0x522f41=_0x34026b;return _0x367cec['hasRole'](_0x522f41('0xeff'))||!_0x367cec['hasPermission'](0x3f2)&&!_0x367cec[_0x522f41('0x26e8')](_0x522f41('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x5f8'),{'id':0x44c,'title':_0x34026b('0xa44'),'translate':'CALLYSQUARE.CALLYSQUARE','icon':_0x34026b('0xdc6'),'weight':0xd,'license':'voice','hidden':function _0x4ff6f1(){var _0x5129c1=_0x34026b;return!_0x436c4e['voice']||_0x367cec[_0x5129c1('0x26e8')]('agent')||!_0x367cec['hasChildrenPermissions'](_0x2095b5(this))&&!_0x367cec[_0x5129c1('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x17c0'),{'id':0x44d,'title':_0x34026b('0x24a'),'route':_0x34026b('0x407'),'translate':_0x34026b('0x1c3a'),'state':_0x34026b('0x4f5'),'weight':0x2,'hidden':function _0x117000(){var _0x1c95e0=_0x34026b;return _0x367cec[_0x1c95e0('0x26e8')](_0x1c95e0('0xeff'))||!_0x367cec[_0x1c95e0('0x69e')](0x44d)&&!_0x367cec[_0x1c95e0('0x26e8')](_0x1c95e0('0x178b'));}}),_0x25f250['saveItem']('apps.callysquare.squareRecordings',{'id':0x44e,'title':_0x34026b('0x22d'),'route':_0x34026b('0xb9a'),'translate':_0x34026b('0x411'),'state':'app.callysquare.squareRecordings','weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function _0x2d5acc(){var _0x3542cf=_0x34026b;return _0x367cec[_0x3542cf('0x26e8')](_0x3542cf('0xeff'))||!_0x367cec['hasPermission'](0x44e)&&!_0x367cec['hasRole']('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0xd09'),{'id':0x44f,'title':'Projects','route':_0x34026b('0x37b'),'translate':_0x34026b('0xf95'),'state':_0x34026b('0x156b'),'weight':0x1,'hidden':function _0x4c8e4e(){var _0x214c89=_0x34026b;return _0x367cec[_0x214c89('0x26e8')]('agent')||!_0x367cec['hasPermission'](0x44f)&&!_0x367cec['hasRole'](_0x214c89('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1ebc'),{'id':0x4b0,'title':_0x34026b('0x70b'),'translate':_0x34026b('0x10c4'),'icon':_0x34026b('0x474'),'weight':0x10,'hidden':function _0x48d04f(){var _0x513f59=_0x34026b;return _0x367cec[_0x513f59('0x26e8')](_0x513f59('0xeff'))||!_0x367cec['hasChildrenPermissions'](_0x2095b5(this))&&!_0x367cec[_0x513f59('0x26e8')](_0x513f59('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0xe40'),{'id':0x4b1,'title':_0x34026b('0x2757'),'route':_0x34026b('0x8b5'),'translate':_0x34026b('0x49'),'state':_0x34026b('0x1722'),'weight':0x3,'hidden':function _0x165bd3(){var _0x590bbc=_0x34026b;return _0x367cec['hasRole'](_0x590bbc('0xeff'))||!_0x367cec['hasPermission'](0x4b1)&&!_0x367cec[_0x590bbc('0x26e8')]('admin');}}),_0x25f250['saveItem'](_0x34026b('0x1dae'),{'id':0x4b2,'title':'ExtractedReports','route':_0x34026b('0x1d9d'),'translate':_0x34026b('0x1924'),'state':'app.analytics.extractedReports','weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function _0x50dd58(){var _0x43b419=_0x34026b;return _0x367cec[_0x43b419('0x26e8')](_0x43b419('0xeff'))||!_0x367cec[_0x43b419('0x69e')](0x4b2)&&!_0x367cec[_0x43b419('0x26e8')](_0x43b419('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1df1'),{'id':0x4b3,'title':'Reports','route':'','translate':_0x34026b('0x1724'),'state':_0x34026b('0x10b1'),'weight':0x1,'hidden':function _0x100619(){var _0x112059=_0x34026b;return _0x367cec[_0x112059('0x26e8')](_0x112059('0xeff'))||!_0x367cec['hasPermission'](0x4b3)&&!_0x367cec[_0x112059('0x26e8')](_0x112059('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0xda1'),{'id':0x514,'title':_0x34026b('0x1a1f'),'translate':_0x34026b('0x41e'),'icon':_0x34026b('0x12f9'),'weight':0x11,'hidden':function _0x259765(){var _0x4ad062=_0x34026b;return _0x367cec['hasRole'](_0x4ad062('0xeff'))||!_0x367cec['hasChildrenPermissions'](_0x2095b5(this))&&!_0x367cec[_0x4ad062('0x26e8')](_0x4ad062('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x367'),{'id':0x515,'title':'ZendeskAccounts','route':_0x34026b('0xac8'),'translate':'INTEGRATIONS.ZENDESKACCOUNTS','state':_0x34026b('0x75f'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x3560c8(){var _0x38831f=_0x34026b;return _0x367cec[_0x38831f('0x26e8')](_0x38831f('0xeff'))||!_0x367cec['hasPermission'](0x515)&&!_0x367cec[_0x38831f('0x26e8')](_0x38831f('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x26e2'),{'id':0x516,'title':_0x34026b('0x22b3'),'route':_0x34026b('0x14aa'),'translate':_0x34026b('0xd52'),'state':_0x34026b('0x1030'),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function _0x456ebb(){var _0x37c0dc=_0x34026b;return _0x367cec[_0x37c0dc('0x26e8')](_0x37c0dc('0xeff'))||!_0x367cec['hasPermission'](0x516)&&!_0x367cec['hasRole']('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x12ec'),{'id':0x517,'title':_0x34026b('0x1194'),'route':'intFreshdeskAccount','translate':'INTEGRATIONS.FRESHDESKACCOUNTS','state':_0x34026b('0x1ba3'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function _0xa61cbf(){var _0x58cca3=_0x34026b;return _0x367cec[_0x58cca3('0x26e8')](_0x58cca3('0xeff'))||!_0x367cec[_0x58cca3('0x69e')](0x517)&&!_0x367cec[_0x58cca3('0x26e8')](_0x58cca3('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x285d'),{'id':0x519,'title':_0x34026b('0x387'),'route':'intSugarcrmAccount','translate':_0x34026b('0x1e2e'),'state':_0x34026b('0x1656'),'weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function _0x48f8c6(){var _0x55f723=_0x34026b;return _0x367cec[_0x55f723('0x26e8')](_0x55f723('0xeff'))||!_0x367cec[_0x55f723('0x69e')](0x519)&&!_0x367cec[_0x55f723('0x26e8')](_0x55f723('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1ec5'),{'id':0x51a,'title':_0x34026b('0x152d'),'route':_0x34026b('0x340'),'translate':_0x34026b('0x1763'),'state':'app.integrations.deskAccounts','weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function _0x26b0a2(){var _0x5aff81=_0x34026b;return _0x367cec[_0x5aff81('0x26e8')](_0x5aff81('0xeff'))||!_0x367cec[_0x5aff81('0x69e')](0x51a)&&!_0x367cec['hasRole'](_0x5aff81('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x456'),{'id':0x51b,'title':_0x34026b('0x2586'),'route':'intZohoAccount','translate':'INTEGRATIONS.ZOHOACCOUNTS','state':'app.integrations.zohoAccounts','weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function _0x1a90d5(){var _0x4b9cc9=_0x34026b;return _0x367cec[_0x4b9cc9('0x26e8')]('agent')||!_0x367cec['hasPermission'](0x51b)&&!_0x367cec[_0x4b9cc9('0x26e8')](_0x4b9cc9('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x172a'),{'id':0x51c,'title':_0x34026b('0x1894'),'route':_0x34026b('0x116e'),'translate':_0x34026b('0x2129'),'state':_0x34026b('0x2424'),'weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function _0xfb2aad(){var _0x109690=_0x34026b;return _0x367cec[_0x109690('0x26e8')](_0x109690('0xeff'))||!_0x367cec[_0x109690('0x69e')](0x51c)&&!_0x367cec['hasRole']('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x23aa'),{'id':0x51d,'title':_0x34026b('0x264f'),'route':'intDynamics365Account','translate':_0x34026b('0x1f81'),'state':_0x34026b('0x94'),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function _0x3f91a5(){var _0x2191b6=_0x34026b;return _0x367cec[_0x2191b6('0x26e8')](_0x2191b6('0xeff'))||!_0x367cec[_0x2191b6('0x69e')](0x51d)&&!_0x367cec[_0x2191b6('0x26e8')](_0x2191b6('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x83b'),{'id':0x51e,'title':'ServicenowAccounts','route':_0x34026b('0x1291'),'translate':_0x34026b('0x1bcb'),'state':_0x34026b('0x8b9'),'weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function _0x10f61b(){var _0x14ed30=_0x34026b;return _0x367cec[_0x14ed30('0x26e8')]('agent')||!_0x367cec['hasPermission'](0x51e)&&!_0x367cec[_0x14ed30('0x26e8')]('admin');}}),_0x25f250['saveItem'](_0x34026b('0xa85'),{'id':0x518,'title':_0x34026b('0x10a9'),'route':_0x34026b('0xc44'),'translate':_0x34026b('0x18af'),'state':_0x34026b('0x1d45'),'weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function _0x321bf5(){var _0x3be532=_0x34026b;return _0x367cec['hasRole']('agent')||!_0x367cec[_0x3be532('0x69e')](0x518)&&!_0x367cec[_0x3be532('0x26e8')](_0x3be532('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0xebf'),{'id':0x578,'title':_0x34026b('0x26d1'),'translate':'SETTINGS.SETTINGS','icon':_0x34026b('0x104d'),'weight':0x14,'permissions':{'hidden':!![]},'hidden':function _0x4c85e3(){var _0x5f4f47=_0x34026b;return _0x367cec[_0x5f4f47('0x26e8')]('agent')||!_0x367cec[_0x5f4f47('0x69e')](0x578)&&!_0x367cec['hasRole'](_0x5f4f47('0x178b'))||_0x367cec[_0x5f4f47('0x26e8')](_0x5f4f47('0x178b'))&&!_0x367cec[_0x5f4f47('0xacc')]()['settingsEnabled'];}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x6fb'),{'id':0x579,'title':_0x34026b('0x1e26'),'route':_0x34026b('0x143f'),'translate':_0x34026b('0x16d0'),'state':_0x34026b('0x1c38'),'weight':0x1,'hidden':function _0x2ab18a(){var _0x131308=_0x34026b;return _0x367cec['hasRole'](_0x131308('0xeff'))||!_0x367cec[_0x131308('0x69e')](0x578)&&!_0x367cec[_0x131308('0x26e8')](_0x131308('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0xad5'),{'id':0x57a,'title':_0x34026b('0x1867'),'route':_0x34026b('0xb86'),'translate':_0x34026b('0x12d'),'state':'app.settings.smtps','weight':0x1,'hidden':function _0x17f92b(){var _0x4732a8=_0x34026b;return _0x367cec[_0x4732a8('0x26e8')](_0x4732a8('0xeff'))||!_0x367cec[_0x4732a8('0x69e')](0x578)&&!_0x367cec['hasRole'](_0x4732a8('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.settings.networks',{'id':0x57b,'title':_0x34026b('0x202b'),'route':'network','translate':_0x34026b('0x270b'),'state':_0x34026b('0x1e31'),'weight':0x1,'hidden':function _0x262221(){var _0x4b176f=_0x34026b;return _0x367cec[_0x4b176f('0x26e8')](_0x4b176f('0xeff'))||!_0x367cec[_0x4b176f('0x69e')](0x578)&&!_0x367cec[_0x4b176f('0x26e8')](_0x4b176f('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0xe29'),{'id':0x57f,'title':_0x34026b('0x595'),'route':_0x34026b('0x143f'),'translate':_0x34026b('0xe5a'),'state':_0x34026b('0x1dec'),'weight':0x1,'hidden':function _0x5ae7b2(){var _0x3afc04=_0x34026b;return!_0x436c4e[_0x3afc04('0x113b')]||_0x367cec[_0x3afc04('0x26e8')](_0x3afc04('0xeff'))||!_0x367cec[_0x3afc04('0x69e')](0x578)&&!_0x367cec[_0x3afc04('0x26e8')](_0x3afc04('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x13ff'),{'id':0x580,'title':'AiTools','route':_0x34026b('0x60b'),'translate':'SETTINGS.AITOOLS','state':'app.settings.cloudProviders','weight':0x1,'hidden':function _0x1668bd(){var _0x1148a1=_0x34026b;return!_0x436c4e['ai']||_0x367cec[_0x1148a1('0x26e8')](_0x1148a1('0xeff'))||!_0x367cec[_0x1148a1('0x69e')](0x578)&&!_0x367cec[_0x1148a1('0x26e8')]('admin');}}),_0x25f250['saveItem'](_0x34026b('0x13f9'),{'id':0x57c,'title':_0x34026b('0x6ce'),'route':'','translate':'SETTINGS.UPDATES','state':_0x34026b('0x10fa'),'weight':0x1,'hidden':function _0x16c2d9(){var _0x2c4cbd=_0x34026b;return!_0x436c4e[_0x2c4cbd('0x264e')]||_0x367cec['hasRole'](_0x2c4cbd('0xeff'))||!_0x367cec[_0x2c4cbd('0x69e')](0x578)&&!_0x367cec[_0x2c4cbd('0x26e8')](_0x2c4cbd('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x255'),{'id':0x57d,'title':'License','route':'','translate':_0x34026b('0x19e4'),'state':_0x34026b('0x1a49'),'weight':0x1,'hidden':function _0x1ab731(){var _0x2ad06c=_0x34026b;return _0x367cec['hasRole']('agent')||!_0x367cec['hasPermission'](0x578)&&!_0x367cec[_0x2ad06c('0x26e8')]('admin');}}),_0x25f250['saveItem'](_0x34026b('0x27b2'),{'id':0x57e,'title':_0x34026b('0x224'),'route':'','translate':'SETTINGS.SYSTEM','state':_0x34026b('0x2673'),'weight':0x1,'hidden':function _0x1f9c31(){var _0x3e0076=_0x34026b;return _0x367cec[_0x3e0076('0x26e8')](_0x3e0076('0xeff'))||!_0x367cec['hasPermission'](0x578)&&!_0x367cec[_0x3e0076('0x26e8')](_0x3e0076('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x1afd'),{'id':0x5dc,'title':'MotionDialer','translate':_0x34026b('0x1b2e'),'icon':_0x34026b('0x992'),'weight':0x5,'license':'dialer','hidden':function _0x74966f(){var _0x29a11b=_0x34026b;return!_0x436c4e[_0x29a11b('0x24c8')]||_0x367cec['hasRole'](_0x29a11b('0xeff'))||!_0x367cec[_0x29a11b('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x29a11b('0x26e8')](_0x29a11b('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x405'),{'id':0x5dd,'title':_0x34026b('0x3bf'),'route':_0x34026b('0x1588'),'translate':_0x34026b('0x1c3'),'state':_0x34026b('0x1033'),'weight':0x1,'channel':_0x34026b('0xa30'),'hidden':function _0x4d08c1(){var _0x24c021=_0x34026b;return _0x367cec[_0x24c021('0x26e8')]('agent')||!_0x367cec[_0x24c021('0x69e')](0x5dd)&&!_0x367cec[_0x24c021('0x26e8')](_0x24c021('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1026'),{'id':0x5de,'title':_0x34026b('0x1a93'),'route':_0x34026b('0xe8d'),'translate':_0x34026b('0xf24'),'state':_0x34026b('0x2300'),'weight':0x1,'hidden':function _0xa4d29c(){var _0x92ae5d=_0x34026b;return _0x367cec['hasRole']('agent')||!_0x367cec[_0x92ae5d('0x69e')](0x5de)&&!_0x367cec[_0x92ae5d('0x26e8')](_0x92ae5d('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')]('apps.motiondialer.realtime',{'id':0x5e6,'title':'Realtime','route':'','translate':_0x34026b('0xd96'),'state':_0x34026b('0x1dc5'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x20ae13(){var _0x2c91ba=_0x34026b;return _0x367cec[_0x2c91ba('0x26e8')](_0x2c91ba('0xeff'))||!_0x367cec[_0x2c91ba('0x69e')](0x5e6)&&!_0x367cec[_0x2c91ba('0x26e8')](_0x2c91ba('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x2258'),{'id':0x640,'title':_0x34026b('0x1a51'),'translate':_0x34026b('0x1f9d'),'icon':_0x34026b('0x72a'),'weight':0x15,'permissions':{'association':![]},'hidden':function _0x3e15cf(){var _0x4d0be5=_0x34026b;return _0x367cec[_0x4d0be5('0x26e8')]('agent')||!_0x367cec['hasPermission'](0x640)&&!_0x367cec[_0x4d0be5('0x26e8')](_0x4d0be5('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x258a'),{'id':0x641,'title':_0x34026b('0x179f'),'route':'','translate':_0x34026b('0xfe4'),'state':'app.help.about','weight':0x1,'hidden':function _0x22a56a(){var _0x1afc3c=_0x34026b;return _0x367cec[_0x1afc3c('0x26e8')](_0x1afc3c('0xeff'))||!_0x367cec[_0x1afc3c('0x69e')](0x640)&&!_0x367cec[_0x1afc3c('0x26e8')](_0x1afc3c('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x19d'),{'id':0x6a4,'title':'jscripty','translate':_0x34026b('0x1388'),'icon':_0x34026b('0x1a'),'weight':0xe,'license':_0x34026b('0x1886'),'hidden':function _0x359757(){var _0x39aa01=_0x34026b;return!_0x436c4e[_0x39aa01('0x1886')]||_0x367cec['hasRole'](_0x39aa01('0xeff'))||!_0x367cec[_0x39aa01('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x39aa01('0x26e8')](_0x39aa01('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x7ac'),{'id':0x6a5,'title':_0x34026b('0x1fdc'),'route':_0x34026b('0x285c'),'translate':'JSCRIPTY.PROJECTS','state':'app.jscripty.projects','weight':0x1,'hidden':function _0x40de4d(){var _0x43a29b=_0x34026b;return _0x367cec[_0x43a29b('0x26e8')]('agent')||!_0x367cec[_0x43a29b('0x69e')](0x6a5)&&!_0x367cec[_0x43a29b('0x26e8')](_0x43a29b('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x1d33'),{'id':0x708,'title':'Marketplace','translate':_0x34026b('0x8e1'),'icon':'icon-cart','weight':0x12,'hidden':function _0xf36290(){var _0x1fee09=_0x34026b;return _0x367cec['hasRole'](_0x1fee09('0xeff'))||!_0x367cec[_0x1fee09('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x1fee09('0x26e8')](_0x1fee09('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x2091'),{'id':0x709,'title':_0x34026b('0x2271'),'route':_0x34026b('0x19a4'),'translate':_0x34026b('0x23d'),'state':_0x34026b('0xb16'),'weight':0x1,'hidden':function _0x399fad(){var _0x47ae2b=_0x34026b;return _0x367cec['hasRole'](_0x47ae2b('0xeff'))||!_0x367cec['hasPermission'](0x709)&&!_0x367cec[_0x47ae2b('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x2206'),{'id':0x7d0,'title':'Video','translate':_0x34026b('0x26f7'),'icon':_0x34026b('0x124'),'weight':0xc,'license':'screenrecording','hidden':function _0x3133c2(){var _0x517558=_0x34026b;return!_0x436c4e['screenrecording']||_0x367cec[_0x517558('0x26e8')]('agent')||!_0x367cec[_0x517558('0x1d6d')](_0x2095b5(this))&&!_0x367cec['hasRole'](_0x517558('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0xd4c'),{'id':0x7d1,'title':'ScreenRecordings','route':_0x34026b('0x15eb'),'translate':'VIDEO.SCREENRECORDINGS','state':_0x34026b('0x1513'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x55d3df(){var _0x2cd7bb=_0x34026b;return _0x367cec[_0x2cd7bb('0x26e8')]('agent')||!_0x367cec[_0x2cd7bb('0x69e')](0x7d1)&&!_0x367cec[_0x2cd7bb('0x26e8')]('admin');}}),_0x25f250['saveItem'](_0x34026b('0x21ce'),{'id':0x834,'title':'Whatsapp','translate':_0x34026b('0x76'),'icon':'icon-whatsapp','weight':0xb,'license':'whatsapp','hidden':function _0x3e5534(){var _0x455ed9=_0x34026b;return!_0x436c4e[_0x455ed9('0x220d')]||_0x367cec[_0x455ed9('0x26e8')]('agent')||!_0x367cec[_0x455ed9('0x1d6d')](_0x2095b5(this))&&!_0x367cec[_0x455ed9('0x26e8')](_0x455ed9('0x178b'));}}),_0x25f250['saveItem'](_0x34026b('0x243d'),{'id':0x835,'title':'WhatsappQueues','route':_0x34026b('0x48f'),'translate':'WHATSAPP.WHATSAPPQUEUES','state':_0x34026b('0x272f'),'weight':0x1,'channel':_0x34026b('0x220d'),'hidden':function _0x280f75(){var _0x151e84=_0x34026b;return _0x367cec[_0x151e84('0x26e8')](_0x151e84('0xeff'))||!_0x367cec['hasPermission'](0x835)&&!_0x367cec[_0x151e84('0x26e8')](_0x151e84('0x178b'));}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x292'),{'id':0x836,'title':'WhatsappAccounts','route':_0x34026b('0x26ac'),'translate':_0x34026b('0x1f56'),'state':_0x34026b('0x116a'),'weight':0x1,'channel':'whatsapp','hidden':function _0x32b7b0(){var _0x1acbc3=_0x34026b;return _0x367cec[_0x1acbc3('0x26e8')]('agent')||!_0x367cec['hasPermission'](0x836)&&!_0x367cec[_0x1acbc3('0x26e8')]('admin');}}),_0x25f250[_0x34026b('0x24c7')](_0x34026b('0x8fd'),{'id':0x83e,'title':_0x34026b('0x7eb'),'route':'','translate':_0x34026b('0x1801'),'state':_0x34026b('0x1daf'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x5746c0(){var _0x40f054=_0x34026b;return _0x367cec[_0x40f054('0x26e8')](_0x40f054('0xeff'))||!_0x367cec[_0x40f054('0x69e')](0x83e)&&!_0x367cec[_0x40f054('0x26e8')](_0x40f054('0x178b'));}}),_0x25f250['sort'](),_0x40900d[_0x34026b('0x24c7')](_0x34026b('0x27b0'),{'title':_0x34026b('0x1768'),'group':!![],'weight':0x1}),_0x40900d[_0x34026b('0x24c7')](_0x34026b('0x163b'),{'id':0x64,'title':'Home','translate':_0x34026b('0x9df'),'icon':'icon-home','weight':0x1}),_0x40900d[_0x34026b('0x24c7')]('apps.home.dashboard',{'id':0x65,'title':_0x34026b('0x12a2'),'translate':_0x34026b('0x844'),'state':_0x34026b('0x55'),'view':_0x34026b('0x55'),'icon':_0x34026b('0x208e'),'iconClass':'cyan-500-fg','weight':0x1,'hidden':function _0x50da60(){var _0x1890f1=_0x34026b;return!_0x367cec[_0x1890f1('0x69e')](0x65);}}),_0x40900d['saveItem'](_0x34026b('0x2683'),{'id':0x66,'title':_0x34026b('0x1144'),'translate':_0x34026b('0x33f'),'state':_0x34026b('0x1cfb'),'view':_0x34026b('0x1cfb'),'icon':'icon-account-circle','iconClass':_0x34026b('0x20a3'),'weight':0x2,'hidden':function _0x46715f(){var _0x1b9434=_0x34026b;return!_0x436c4e['cm']||!_0x367cec[_0x1b9434('0x69e')](0x66);}}),_0x40900d[_0x34026b('0x24c7')](_0x34026b('0x144a'),{'id':0x67,'title':_0x34026b('0x1144'),'translate':'DASHBOARDS.MYCONTACTS','state':_0x34026b('0x1aa5'),'view':'mycontacts','icon':'icon-account-multiple','iconClass':_0x34026b('0x20a3'),'weight':0x3,'hidden':function _0x2b42f0(){var _0x1bb2e6=_0x34026b;return!_0x436c4e['cm']||!_0x367cec[_0x1bb2e6('0x69e')](0x67);}}),_0x40900d[_0x34026b('0x24c7')](_0x34026b('0x1782'),{'id':0x71,'title':'Scheduled\x20Calls','translate':'DASHBOARDS.SCHEDULED_CALLS','state':'scheduled','view':_0x34026b('0x9d2'),'icon':_0x34026b('0x214d'),'iconClass':'blue-grey-fg','weight':0x3,'hidden':function _0x1edba4(){var _0x15197d=_0x34026b;return!_0x436c4e[_0x15197d('0x24c8')]||!_0x367cec[_0x15197d('0x69e')](0x71);}}),_0x40900d[_0x34026b('0x24c7')](_0x34026b('0x15f8'),{'id':0x6e,'title':_0x34026b('0x11b3'),'translate':_0x34026b('0x27e3'),'state':_0x34026b('0x1b9'),'view':_0x34026b('0x1b9'),'icon':'icon-phone','iconClass':_0x34026b('0xaf'),'weight':0x4,'hidden':function _0x457aec(){var _0x445256=_0x34026b;return!_0x436c4e[_0x445256('0x1b9')]||!_0x367cec[_0x445256('0x69e')](0x6e);}}),_0x40900d['saveItem']('apps.home.abandoned',{'id':0x6f,'title':'Abandoned','translate':_0x34026b('0x1e43'),'state':_0x34026b('0x1f60'),'view':_0x34026b('0x1f60'),'icon':_0x34026b('0xa4c'),'iconClass':_0x34026b('0x283a'),'weight':0x5,'hidden':function _0x1540bb(){return!_0x436c4e['voice']||!_0x367cec['hasPermission'](0x6f);}}),_0x40900d[_0x34026b('0x24c7')]('apps.home.recordings',{'id':0x68,'title':_0x34026b('0x23a2'),'translate':_0x34026b('0x12cf'),'state':_0x34026b('0x1e77'),'view':_0x34026b('0x1e77'),'icon':_0x34026b('0x2249'),'iconClass':_0x34026b('0x11dd'),'weight':0x6,'hidden':function _0x2e1c32(){var _0x317a9d=_0x34026b;return!_0x436c4e[_0x317a9d('0x1b9')]||!_0x367cec[_0x317a9d('0x69e')](0x68);}}),_0x40900d[_0x34026b('0x24c7')](_0x34026b('0x169a'),{'id':0x69,'title':_0x34026b('0x20b5'),'translate':'DASHBOARDS.CHAT','state':_0x34026b('0x20f9'),'view':'chat','icon':_0x34026b('0x20e'),'iconClass':_0x34026b('0x535'),'weight':0x7,'hidden':function _0x5f22d7(){var _0x401765=_0x34026b;return!_0x436c4e[_0x401765('0x20f9')]||!_0x367cec['hasPermission'](0x69);}}),_0x40900d[_0x34026b('0x24c7')]('apps.home.mail',{'id':0x6a,'title':_0x34026b('0x2cc'),'translate':_0x34026b('0x206f'),'state':_0x34026b('0x14c5'),'view':_0x34026b('0x14c5'),'icon':_0x34026b('0x279a'),'iconClass':_0x34026b('0xe69'),'weight':0x8,'hidden':function _0x18218c(){var _0x289805=_0x34026b;return!_0x436c4e[_0x289805('0x14c5')]||!_0x367cec[_0x289805('0x69e')](0x6a);}}),_0x40900d['saveItem']('apps.home.sms',{'id':0x6b,'title':'Sms','translate':_0x34026b('0x3b6'),'state':_0x34026b('0x18da'),'view':_0x34026b('0x18da'),'icon':_0x34026b('0x1941'),'iconClass':'orange-fg','weight':0x9,'hidden':function _0x59bc1f(){var _0x4a3187=_0x34026b;return!_0x436c4e['messaging']||!_0x367cec[_0x4a3187('0x69e')](0x6b);}}),_0x40900d['saveItem']('apps.home.openchannel',{'id':0x6c,'title':_0x34026b('0x1dad'),'translate':_0x34026b('0x15c4'),'state':'openchannel','view':_0x34026b('0x170'),'icon':'icon-google-earth','iconClass':_0x34026b('0x1f2b'),'weight':0xa,'hidden':function _0x449b63(){var _0xf524da=_0x34026b;return!_0x436c4e['openchannel']||!_0x367cec[_0xf524da('0x69e')](0x6c);}}),_0x40900d[_0x34026b('0x24c7')](_0x34026b('0x1c76'),{'id':0x6d,'title':_0x34026b('0x1ff8'),'translate':'DASHBOARDS.FAX','state':_0x34026b('0x16c4'),'view':_0x34026b('0x16c4'),'icon':_0x34026b('0x771'),'iconClass':_0x34026b('0x1fae'),'weight':0xb,'hidden':function _0x4b0cf0(){var _0x1b8fd6=_0x34026b;return!_0x436c4e[_0x1b8fd6('0x16c4')]||!_0x367cec[_0x1b8fd6('0x69e')](0x6d);}}),_0x40900d[_0x34026b('0x24c7')](_0x34026b('0x116f'),{'id':0x72,'title':_0x34026b('0x1223'),'translate':'DASHBOARDS.WHATSAPP','state':_0x34026b('0x220d'),'view':'whatsapp','icon':_0x34026b('0x538'),'iconClass':_0x34026b('0x16e2'),'weight':0xc,'hidden':function _0x3c7c5d(){var _0x2062fc=_0x34026b;return!_0x436c4e[_0x2062fc('0x220d')]||!_0x367cec[_0x2062fc('0x69e')](0x72);}}),_0x16ca1e[_0x34026b('0xc75')](_0x34026b('0x277b'),function(_0x1283f6){var _0x306d5f=_0x34026b;_0x1283f6[_0x306d5f('0x4ed')][_0x306d5f('0x2289')]===_0x16ca1e[_0x306d5f('0x2289')]&&_0x3eb50f[_0x306d5f('0xd1')](_0x306d5f('0x1517'));});}const _0x14081b=_0x3324ed;;var _0x2b731a=[_0x1a8446('0x1520'),_0x1a8446('0x22c6'),_0x1a8446('0x74f'),'app.navigation','app.toolbar',_0x1a8446('0x1069'),_0x1a8446('0x1f88'),_0x1a8446('0x247a'),_0x1a8446('0x1fba'),_0x1a8446('0x3d0'),_0x1a8446('0xea9'),'app.voice',_0x1a8446('0x1c69'),'app.mail','app.sms',_0x1a8446('0x6ac'),_0x1a8446('0x872'),_0x1a8446('0xb67'),_0x1a8446('0x208c'),_0x1a8446('0xc92'),_0x1a8446('0x2ef'),_0x1a8446('0x280c'),'app.motiondialer',_0x1a8446('0x223b'),'app.jscripty',_0x1a8446('0x1d51'),_0x1a8446('0x669'),_0x1a8446('0x21c7'),'app.whatsapp',_0x1a8446('0x1bba'),_0x1a8446('0x2190'),_0x1a8446('0xf65'),'app.errors'];angular['module']('motion',_0x2b731a)[_0x1a8446('0x1be9')](_0x1a8446('0x157'),_0x2d429f)[_0x1a8446('0x1b14')](_0x3738b2)[_0x1a8446('0x780')]('IndexController',_0xf7e16f)[_0x1a8446('0xdb7')](_0x1a8446('0x56d'),_0x114965)[_0x1a8446('0xdb7')](_0x1a8446('0x13a5'),_0x8277c3)['factory'](_0x1a8446('0x197b'),_0x58a837)['factory'](_0x1a8446('0x2c1'),_0x386928)[_0x1a8446('0x1be9')](_0x1a8446('0xa1a'),_0x36fc51)[_0x1a8446('0x1b14')](_0x2021a2)[_0x1a8446('0xd9f')](_0x4376ea)[_0x1a8446('0x1be9')]('socket',_0x1af335)[_0x1a8446('0x780')](_0x1a8446('0xe35'),_0x14081b);},0x1a2c:(_0x3079b4,_0x3776de,_0x5d97d1)=>{var _0x28bae1=_0x53303c,_0x47fb93={'./af':0xae2,'./af.js':0xae2,'./ar':0x363,'./ar-dz':0x1022,'./ar-dz.js':0x1022,'./ar-kw':0x17f7,'./ar-kw.js':0x17f7,'./ar-ly':0x1928,'./ar-ly.js':0x1928,'./ar-ma':0x1e16,'./ar-ma.js':0x1e16,'./ar-sa':0x1798,'./ar-sa.js':0x1798,'./ar-tn':0x1bbc,'./ar-tn.js':0x1bbc,'./ar.js':0x363,'./az':0x43b,'./az.js':0x43b,'./be':0x2650,'./be.js':0x2650,'./bg':0x2092,'./bg.js':0x2092,'./bm':0x1d0e,'./bm.js':0x1d0e,'./bn':0x22c9,'./bn-bd':0x1851,'./bn-bd.js':0x1851,'./bn.js':0x22c9,'./bo':0x618,'./bo.js':0x618,'./br':0x4fe,'./br.js':0x4fe,'./bs':0x26e,'./bs.js':0x26e,'./ca':0x9a4,'./ca.js':0x9a4,'./cs':0x16be,'./cs.js':0x16be,'./cv':0x36d,'./cv.js':0x36d,'./cy':0x1ccd,'./cy.js':0x1ccd,'./da':0x12ac,'./da.js':0x12ac,'./de':0x260c,'./de-at':0xd9,'./de-at.js':0xd9,'./de-ch':0x37e,'./de-ch.js':0x37e,'./de.js':0x260c,'./dv':0x14b4,'./dv.js':0x14b4,'./el':0x345,'./el.js':0x345,'./en-au':0x209c,'./en-au.js':0x209c,'./en-ca':0x1ef5,'./en-ca.js':0x1ef5,'./en-gb':0x8c3,'./en-gb.js':0x8c3,'./en-ie':0x1924,'./en-ie.js':0x1924,'./en-il':0x1c27,'./en-il.js':0x1c27,'./en-in':0x104f,'./en-in.js':0x104f,'./en-nz':0x18af,'./en-nz.js':0x18af,'./en-sg':0x67e,'./en-sg.js':0x67e,'./eo':0xb63,'./eo.js':0xb63,'./es':0x1617,'./es-do':0x1483,'./es-do.js':0x1483,'./es-mx':0x17e0,'./es-mx.js':0x17e0,'./es-us':0x47a,'./es-us.js':0x47a,'./es.js':0x1617,'./et':0x15e3,'./et.js':0x15e3,'./eu':0x1e53,'./eu.js':0x1e53,'./fa':0x1b2f,'./fa.js':0x1b2f,'./fi':0x769,'./fi.js':0x769,'./fil':0x9f5,'./fil.js':0x9f5,'./fo':0x1256,'./fo.js':0x1256,'./fr':0x1176,'./fr-ca':0xbe9,'./fr-ca.js':0xbe9,'./fr-ch':0x91a,'./fr-ch.js':0x91a,'./fr.js':0x1176,'./fy':0x13b4,'./fy.js':0x13b4,'./ga':0x244f,'./ga.js':0x244f,'./gd':0x835,'./gd.js':0x835,'./gl':0x225a,'./gl.js':0x225a,'./gom-deva':0x1ecc,'./gom-deva.js':0x1ecc,'./gom-latn':0xc60,'./gom-latn.js':0xc60,'./gu':0x14e5,'./gu.js':0x14e5,'./he':0x106e,'./he.js':0x106e,'./hi':0x5e,'./hi.js':0x5e,'./hr':0x13c,'./hr.js':0x13c,'./hu':0x85a,'./hu.js':0x85a,'./hy-am':0x58f,'./hy-am.js':0x58f,'./id':0x2402,'./id.js':0x2402,'./is':0x87,'./is.js':0x87,'./it':0x272,'./it-ch':0x96,'./it-ch.js':0x96,'./it.js':0x272,'./ja':0x23df,'./ja.js':0x23df,'./jv':0x10be,'./jv.js':0x10be,'./ka':0x839,'./ka.js':0x839,'./kk':0x1e5c,'./kk.js':0x1e5c,'./km':0x2236,'./km.js':0x2236,'./kn':0x2442,'./kn.js':0x2442,'./ko':0xe92,'./ko.js':0xe92,'./ku':0x580,'./ku.js':0x580,'./ky':0xcdb,'./ky.js':0xcdb,'./lb':0x1ab9,'./lb.js':0x1ab9,'./lo':0x155a,'./lo.js':0x155a,'./lt':0x1b62,'./lt.js':0x1b62,'./lv':0x1dab,'./lv.js':0x1dab,'./me':0x2685,'./me.js':0x2685,'./mi':0x1575,'./mi.js':0x1575,'./mk':0x174e,'./mk.js':0x174e,'./ml':0x1cad,'./ml.js':0x1cad,'./mn':0x13fb,'./mn.js':0x13fb,'./mr':0x172,'./mr.js':0x172,'./ms':0x2677,'./ms-my':0x4d5,'./ms-my.js':0x4d5,'./ms.js':0x2677,'./mt':0x84e,'./mt.js':0x84e,'./my':0x1815,'./my.js':0x1815,'./nb':0x133c,'./nb.js':0x133c,'./ne':0x1a58,'./ne.js':0x1a58,'./nl':0xf3d,'./nl-be':0x2656,'./nl-be.js':0x2656,'./nl.js':0xf3d,'./nn':0xf25,'./nn.js':0xf25,'./oc-lnc':0x857,'./oc-lnc.js':0x857,'./pa-in':0x16e2,'./pa-in.js':0x16e2,'./pl':0x118f,'./pl.js':0x118f,'./pt':0x2530,'./pt-br':0x1f23,'./pt-br.js':0x1f23,'./pt.js':0x2530,'./ro':0x193b,'./ro.js':0x193b,'./ru':0x701,'./ru.js':0x701,'./sd':0x3b6,'./sd.js':0x3b6,'./se':0x1ea,'./se.js':0x1ea,'./si':0x7c,'./si.js':0x7c,'./sk':0x1099,'./sk.js':0x1099,'./sl':0x1379,'./sl.js':0x1379,'./sq':0x450,'./sq.js':0x450,'./sr':0x23ab,'./sr-cyrl':0x26bb,'./sr-cyrl.js':0x26bb,'./sr.js':0x23ab,'./ss':0x1705,'./ss.js':0x1705,'./sv':0x2238,'./sv.js':0x2238,'./sw':0x494,'./sw.js':0x494,'./ta':0x1ca5,'./ta.js':0x1ca5,'./te':0xc26,'./te.js':0xc26,'./tet':0x82f,'./tet.js':0x82f,'./tg':0x1c99,'./tg.js':0x1c99,'./th':0x2351,'./th.js':0x2351,'./tk':0x232d,'./tk.js':0x232d,'./tl-ph':0x1688,'./tl-ph.js':0x1688,'./tlh':0x24e4,'./tlh.js':0x24e4,'./tr':0x95d,'./tr.js':0x95d,'./tzl':0x203e,'./tzl.js':0x203e,'./tzm':0x452,'./tzm-latn':0x2bb,'./tzm-latn.js':0x2bb,'./tzm.js':0x452,'./ug-cn':0x2448,'./ug-cn.js':0x2448,'./uk':0x1e0b,'./uk.js':0x1e0b,'./ur':0xed3,'./ur.js':0xed3,'./uz':0x1a87,'./uz-latn':0x24c,'./uz-latn.js':0x24c,'./uz.js':0x1a87,'./vi':0x1622,'./vi.js':0x1622,'./x-pseudo':0x111a,'./x-pseudo.js':0x111a,'./yo':0x16ad,'./yo.js':0x16ad,'./zh-cn':0xeff,'./zh-cn.js':0xeff,'./zh-hk':0x165e,'./zh-hk.js':0x165e,'./zh-mo':0x264f,'./zh-mo.js':0x264f,'./zh-tw':0x1038,'./zh-tw.js':0x1038};function _0x273baf(_0x4dd261){var _0x5712be=_0x495e8e(_0x4dd261);return _0x5d97d1(_0x5712be);}function _0x495e8e(_0x45fa20){var _0x3ae691=a0_0x1149;if(!_0x5d97d1['o'](_0x47fb93,_0x45fa20)){var _0x41fc78=new Error(_0x3ae691('0x1ed3')+_0x45fa20+'\x27');_0x41fc78[_0x3ae691('0x7fb')]=_0x3ae691('0x2a2');throw _0x41fc78;}return _0x47fb93[_0x45fa20];}_0x273baf[_0x28bae1('0x9f2')]=function _0x197108(){var _0x58ac81=_0x28bae1;return Object[_0x58ac81('0x9f2')](_0x47fb93);},_0x273baf[_0x28bae1('0x149f')]=_0x495e8e,_0x3079b4['exports']=_0x273baf,_0x273baf['id']=0x1a2c;},0x1666:_0x494691=>{'use strict';_0x494691['exports']=angular;},0x1a2:()=>{}},0x0,[[0x1efd,0x29a,0x12]]]); \ No newline at end of file diff --git a/public/app/main/apps/dashboards/views/general/agent/home/chat/agent.general.chat.html b/public/app/main/apps/dashboards/views/general/agent/home/chat/agent.general.chat.html index d5adc30..ce15bbd 100644 --- a/public/app/main/apps/dashboards/views/general/agent/home/chat/agent.general.chat.html +++ b/public/app/main/apps/dashboards/views/general/agent/home/chat/agent.general.chat.html @@ -198,7 +198,7 @@ >{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ interaction.disposition }}
diff --git a/public/app/main/apps/dashboards/views/general/agent/home/fax/agent.general.fax.html b/public/app/main/apps/dashboards/views/general/agent/home/fax/agent.general.fax.html index a960f7b..a220897 100644 --- a/public/app/main/apps/dashboards/views/general/agent/home/fax/agent.general.fax.html +++ b/public/app/main/apps/dashboards/views/general/agent/home/fax/agent.general.fax.html @@ -219,7 +219,7 @@ >{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ interaction.disposition }}
diff --git a/public/app/main/apps/dashboards/views/general/agent/home/mail/agent.general.mail.html b/public/app/main/apps/dashboards/views/general/agent/home/mail/agent.general.mail.html index 213dd75..5044d7a 100644 --- a/public/app/main/apps/dashboards/views/general/agent/home/mail/agent.general.mail.html +++ b/public/app/main/apps/dashboards/views/general/agent/home/mail/agent.general.mail.html @@ -247,7 +247,7 @@ >{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ interaction.disposition }}
diff --git a/public/app/main/apps/dashboards/views/general/agent/home/openchannel/agent.general.openchannel.html b/public/app/main/apps/dashboards/views/general/agent/home/openchannel/agent.general.openchannel.html index bdf1270..989344d 100644 --- a/public/app/main/apps/dashboards/views/general/agent/home/openchannel/agent.general.openchannel.html +++ b/public/app/main/apps/dashboards/views/general/agent/home/openchannel/agent.general.openchannel.html @@ -237,7 +237,7 @@ >{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ interaction.disposition }}
diff --git a/public/app/main/apps/dashboards/views/general/agent/home/sms/agent.general.sms.html b/public/app/main/apps/dashboards/views/general/agent/home/sms/agent.general.sms.html index fed5eab..f15ad09 100644 --- a/public/app/main/apps/dashboards/views/general/agent/home/sms/agent.general.sms.html +++ b/public/app/main/apps/dashboards/views/general/agent/home/sms/agent.general.sms.html @@ -219,7 +219,7 @@ >{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ interaction.disposition }}
diff --git a/public/app/main/apps/dashboards/views/general/agent/home/voice/agent.general.voice.html b/public/app/main/apps/dashboards/views/general/agent/home/voice/agent.general.voice.html index bbb06a5..7bb9bcc 100644 --- a/public/app/main/apps/dashboards/views/general/agent/home/voice/agent.general.voice.html +++ b/public/app/main/apps/dashboards/views/general/agent/home/voice/agent.general.voice.html @@ -94,12 +94,11 @@ {{voiceCall.endtime | date:'medium' }} - {{ voiceCall.userThirdDisposition}} + {{ voiceCall.userSecondDisposition}} - {{ voiceCall.userSecondDisposition}} + {{ voiceCall.userThirdDisposition}} - {{ voiceCall.userDisposition}} {{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ interaction.disposition }}
diff --git a/public/app/main/apps/motiondialer/i18n/en.json b/public/app/main/apps/motiondialer/i18n/en.json index 3565303..895a2c9 100644 --- a/public/app/main/apps/motiondialer/i18n/en.json +++ b/public/app/main/apps/motiondialer/i18n/en.json @@ -1,5 +1,7 @@ { "MOTIONDIALER": { + "SECOND_LEVEL_DISPOSITION": "Second Level Disposition", + "THIRD_LEVEL_DISPOSITION": "Third Level Disposition", "ONE_CALL_EVERY": "One call every", "CURRENT_INTERVAL": "Current Interval", "PREVIOUS_INTERVAL": "Previous Interval", diff --git a/public/app/main/apps/motiondialer/i18n/it.json b/public/app/main/apps/motiondialer/i18n/it.json index 3f85bda..903bd47 100644 --- a/public/app/main/apps/motiondialer/i18n/it.json +++ b/public/app/main/apps/motiondialer/i18n/it.json @@ -1,5 +1,7 @@ { "MOTIONDIALER": { + "SECOND_LEVEL_DISPOSITION": "Disposizione di secondo livello", + "THIRD_LEVEL_DISPOSITION": "Disposizione di terzo livello", "ONE_CALL_EVERY": "Una chiamata ogni", "CURRENT_INTERVAL": "Intervallo Corrente", "PREVIOUS_INTERVAL": "Intervallo Precedente", diff --git a/public/index.html b/public/index.html index 452796e..82b006c 100644 --- a/public/index.html +++ b/public/index.html @@ -4,4 +4,4 @@ upgrade your browser to improve your experience.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/public/runtime-89c4abf5a8034ab62e48.js b/public/runtime-89c4abf5a8034ab62e48.js index 6c55bfb..ff0a03f 100644 --- a/public/runtime-89c4abf5a8034ab62e48.js +++ b/public/runtime-89c4abf5a8034ab62e48.js @@ -1 +1 @@ -var a1_0x1555=['prototype','splice','children','call','define\x20cannot\x20be\x20used\x20indirect','return\x20this','shift','nmd','apply','exports','default','slice','length','object','webpackChunkmotion_frontend','push'];(function(_0x34f517,_0x155540){var _0x5b24d1=function(_0x58b83b){while(--_0x58b83b){_0x34f517['push'](_0x34f517['shift']());}};_0x5b24d1(++_0x155540);}(a1_0x1555,0x1cc));var a1_0x5b24=function(_0x34f517,_0x155540){_0x34f517=_0x34f517-0x0;var _0x5b24d1=a1_0x1555[_0x34f517];return _0x5b24d1;};(()=>{var _0x3268e1=a1_0x5b24;'use strict';var _0x58b83b={},_0x1efac6={};function _0x152f83(_0x14931c){var _0x540040=a1_0x5b24;if(_0x1efac6[_0x14931c])return _0x1efac6[_0x14931c]['exports'];var _0x30344d=_0x1efac6[_0x14931c]={'id':_0x14931c,'loaded':!0x1,'exports':{}};return _0x58b83b[_0x14931c][_0x540040('0x7')](_0x30344d[_0x540040('0xd')],_0x30344d,_0x30344d[_0x540040('0xd')],_0x152f83),_0x30344d['loaded']=!0x0,_0x30344d[_0x540040('0xd')];}_0x152f83['m']=_0x58b83b,_0x152f83['amdD']=function(){var _0x2d3652=a1_0x5b24;throw new Error(_0x2d3652('0x8'));},_0x152f83['n']=_0x67c8ca=>{var _0x418622=a1_0x5b24,_0x13aa8e=_0x67c8ca&&_0x67c8ca['__esModule']?()=>_0x67c8ca[_0x418622('0xe')]:()=>_0x67c8ca;return _0x152f83['d'](_0x13aa8e,{'a':_0x13aa8e}),_0x13aa8e;},_0x152f83['d']=(_0x57dee4,_0x174649)=>{for(var _0x5ba2db in _0x174649)_0x152f83['o'](_0x174649,_0x5ba2db)&&!_0x152f83['o'](_0x57dee4,_0x5ba2db)&&Object['defineProperty'](_0x57dee4,_0x5ba2db,{'enumerable':!0x0,'get':_0x174649[_0x5ba2db]});},_0x152f83['g']=function(){var _0x52e053=a1_0x5b24;if(_0x52e053('0x1')==typeof globalThis)return globalThis;try{return this||new Function(_0x52e053('0x9'))();}catch(_0xb31838){if(_0x52e053('0x1')==typeof window)return window;}}(),_0x152f83['o']=(_0x2958d9,_0x13f545)=>Object[_0x3268e1('0x4')]['hasOwnProperty'][_0x3268e1('0x7')](_0x2958d9,_0x13f545),_0x152f83[_0x3268e1('0xb')]=_0x1d72f3=>(_0x1d72f3['paths']=[],_0x1d72f3['children']||(_0x1d72f3[_0x3268e1('0x6')]=[]),_0x1d72f3),_0x152f83['p']='/',(()=>{var _0x30ddc5=_0x3268e1,_0x351fd3={0x29a:0x0},_0x95a34a=[],_0x101f2b=()=>{};function _0x12bf7c(){var _0x268838=a1_0x5b24;for(var _0x4925d0,_0x3a840d=0x0;_0x3a840d<_0x95a34a[_0x268838('0x0')];_0x3a840d++){for(var _0x3e9f41=_0x95a34a[_0x3a840d],_0x436aa9=!0x0,_0x36049c=0x1;_0x36049c<_0x3e9f41[_0x268838('0x0')];_0x36049c++){var _0x2bb356=_0x3e9f41[_0x36049c];0x0!==_0x351fd3[_0x2bb356]&&(_0x436aa9=!0x1);}_0x436aa9&&(_0x95a34a[_0x268838('0x5')](_0x3a840d--,0x1),_0x4925d0=_0x152f83(_0x152f83['s']=_0x3e9f41[0x0]));}return 0x0===_0x95a34a['length']&&(_0x152f83['x'](),_0x152f83['x']=()=>{}),_0x4925d0;}_0x152f83['x']=()=>{var _0x1369d1=a1_0x5b24;_0x152f83['x']=()=>{},_0xdc4079=_0xdc4079[_0x1369d1('0xf')]();for(var _0x257448=0x0;_0x257448<_0xdc4079['length'];_0x257448++)_0x3b2e09(_0xdc4079[_0x257448]);return(_0x101f2b=_0x12bf7c)();};var _0x3b2e09=_0xecac6e=>{var _0x5b4616=a1_0x5b24;for(var _0x48e375,_0x18d415,[_0x26e038,_0x1bbfe6,_0x55b79f,_0x13e946]=_0xecac6e,_0x35e657=0x0,_0x4bae5b=[];_0x35e657<_0x26e038[_0x5b4616('0x0')];_0x35e657++)_0x18d415=_0x26e038[_0x35e657],_0x152f83['o'](_0x351fd3,_0x18d415)&&_0x351fd3[_0x18d415]&&_0x4bae5b[_0x5b4616('0x3')](_0x351fd3[_0x18d415][0x0]),_0x351fd3[_0x18d415]=0x0;for(_0x48e375 in _0x1bbfe6)_0x152f83['o'](_0x1bbfe6,_0x48e375)&&(_0x152f83['m'][_0x48e375]=_0x1bbfe6[_0x48e375]);for(_0x55b79f&&_0x55b79f(_0x152f83),_0x3cc256(_0xecac6e);_0x4bae5b[_0x5b4616('0x0')];)_0x4bae5b[_0x5b4616('0xa')]()();return _0x13e946&&_0x95a34a[_0x5b4616('0x3')][_0x5b4616('0xc')](_0x95a34a,_0x13e946),_0x101f2b();},_0xdc4079=self[_0x30ddc5('0x2')]=self[_0x30ddc5('0x2')]||[],_0x3cc256=_0xdc4079[_0x30ddc5('0x3')]['bind'](_0xdc4079);_0xdc4079['push']=_0x3b2e09;})(),_0x152f83['x']();})(); \ No newline at end of file +var a1_0x1216=['exports','amdD','defineProperty','children','splice','object','push','define\x20cannot\x20be\x20used\x20indirect','apply','nmd','call','return\x20this','prototype','length','shift','default','bind','paths','webpackChunkmotion_frontend'];(function(_0xc0e3c4,_0x12164f){var _0x1c3543=function(_0x275180){while(--_0x275180){_0xc0e3c4['push'](_0xc0e3c4['shift']());}};_0x1c3543(++_0x12164f);}(a1_0x1216,0xcd));var a1_0x1c35=function(_0xc0e3c4,_0x12164f){_0xc0e3c4=_0xc0e3c4-0x0;var _0x1c3543=a1_0x1216[_0xc0e3c4];return _0x1c3543;};(()=>{var _0x5ec2ca=a1_0x1c35;'use strict';var _0x275180={},_0x28c1e1={};function _0x316fcc(_0x517fac){var _0x5c86bd=a1_0x1c35;if(_0x28c1e1[_0x517fac])return _0x28c1e1[_0x517fac][_0x5c86bd('0x4')];var _0x4058fe=_0x28c1e1[_0x517fac]={'id':_0x517fac,'loaded':!0x1,'exports':{}};return _0x275180[_0x517fac][_0x5c86bd('0xe')](_0x4058fe['exports'],_0x4058fe,_0x4058fe[_0x5c86bd('0x4')],_0x316fcc),_0x4058fe['loaded']=!0x0,_0x4058fe['exports'];}_0x316fcc['m']=_0x275180,_0x316fcc[_0x5ec2ca('0x5')]=function(){var _0x2437f6=_0x5ec2ca;throw new Error(_0x2437f6('0xb'));},_0x316fcc['n']=_0x5e8dbb=>{var _0x364c40=_0x5ec2ca,_0x425378=_0x5e8dbb&&_0x5e8dbb['__esModule']?()=>_0x5e8dbb[_0x364c40('0x0')]:()=>_0x5e8dbb;return _0x316fcc['d'](_0x425378,{'a':_0x425378}),_0x425378;},_0x316fcc['d']=(_0x5ed8af,_0x4050fe)=>{var _0x201d0e=_0x5ec2ca;for(var _0x5adbea in _0x4050fe)_0x316fcc['o'](_0x4050fe,_0x5adbea)&&!_0x316fcc['o'](_0x5ed8af,_0x5adbea)&&Object[_0x201d0e('0x6')](_0x5ed8af,_0x5adbea,{'enumerable':!0x0,'get':_0x4050fe[_0x5adbea]});},_0x316fcc['g']=function(){var _0x2c2ad3=_0x5ec2ca;if(_0x2c2ad3('0x9')==typeof globalThis)return globalThis;try{return this||new Function(_0x2c2ad3('0xf'))();}catch(_0x1be0a6){if('object'==typeof window)return window;}}(),_0x316fcc['o']=(_0x34adad,_0x3cbef6)=>Object[_0x5ec2ca('0x10')]['hasOwnProperty'][_0x5ec2ca('0xe')](_0x34adad,_0x3cbef6),_0x316fcc[_0x5ec2ca('0xd')]=_0x19685e=>(_0x19685e[_0x5ec2ca('0x2')]=[],_0x19685e['children']||(_0x19685e[_0x5ec2ca('0x7')]=[]),_0x19685e),_0x316fcc['p']='/',(()=>{var _0x4e70b7=_0x5ec2ca,_0x2f51a4={0x29a:0x0},_0x5372d1=[],_0x4aedf2=()=>{};function _0x2f312a(){var _0x5f274f=a1_0x1c35;for(var _0x5ddbcc,_0xc9e4b5=0x0;_0xc9e4b5<_0x5372d1[_0x5f274f('0x11')];_0xc9e4b5++){for(var _0xf626e6=_0x5372d1[_0xc9e4b5],_0x451bbe=!0x0,_0x506929=0x1;_0x506929<_0xf626e6[_0x5f274f('0x11')];_0x506929++){var _0x4b37d2=_0xf626e6[_0x506929];0x0!==_0x2f51a4[_0x4b37d2]&&(_0x451bbe=!0x1);}_0x451bbe&&(_0x5372d1[_0x5f274f('0x8')](_0xc9e4b5--,0x1),_0x5ddbcc=_0x316fcc(_0x316fcc['s']=_0xf626e6[0x0]));}return 0x0===_0x5372d1[_0x5f274f('0x11')]&&(_0x316fcc['x'](),_0x316fcc['x']=()=>{}),_0x5ddbcc;}_0x316fcc['x']=()=>{_0x316fcc['x']=()=>{},_0xb634e3=_0xb634e3['slice']();for(var _0x49abd2=0x0;_0x49abd2<_0xb634e3['length'];_0x49abd2++)_0x35304e(_0xb634e3[_0x49abd2]);return(_0x4aedf2=_0x2f312a)();};var _0x35304e=_0x275d2c=>{var _0x25cc1c=a1_0x1c35;for(var _0x41e528,_0x212741,[_0x5c0f75,_0x20075a,_0x1fa680,_0x3d11a7]=_0x275d2c,_0x3ff168=0x0,_0x2804e5=[];_0x3ff168<_0x5c0f75[_0x25cc1c('0x11')];_0x3ff168++)_0x212741=_0x5c0f75[_0x3ff168],_0x316fcc['o'](_0x2f51a4,_0x212741)&&_0x2f51a4[_0x212741]&&_0x2804e5['push'](_0x2f51a4[_0x212741][0x0]),_0x2f51a4[_0x212741]=0x0;for(_0x41e528 in _0x20075a)_0x316fcc['o'](_0x20075a,_0x41e528)&&(_0x316fcc['m'][_0x41e528]=_0x20075a[_0x41e528]);for(_0x1fa680&&_0x1fa680(_0x316fcc),_0x53b19f(_0x275d2c);_0x2804e5[_0x25cc1c('0x11')];)_0x2804e5[_0x25cc1c('0x12')]()();return _0x3d11a7&&_0x5372d1[_0x25cc1c('0xa')][_0x25cc1c('0xc')](_0x5372d1,_0x3d11a7),_0x4aedf2();},_0xb634e3=self['webpackChunkmotion_frontend']=self[_0x4e70b7('0x3')]||[],_0x53b19f=_0xb634e3[_0x4e70b7('0xa')][_0x4e70b7('0x1')](_0xb634e3);_0xb634e3[_0x4e70b7('0xa')]=_0x35304e;})(),_0x316fcc['x']();})(); \ No newline at end of file diff --git a/public/service-worker.js b/public/service-worker.js index a2289c7..69e808b 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,2 +1,2 @@ -workbox.core.skipWaiting(),workbox.core.clientsClaim(),workbox.routing.registerRoute(new workbox.routing.NavigationRoute(workbox.routing.createHandlerForURL("/index.html"))),self.addEventListener("push",(function(t){var e={body:t.data.text()};t.waitUntil(self.registration.showNotification("Get Started With Workbox",e))})),self.addEventListener("notificationclick",(function(t){var e=t.notification,o=t.action;switch(o){case"accept":case"reject":e.close(),t.waitUntil(self.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((function(t){for(var i=0;i{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}:{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}:{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}: {{ 'MOTIONDIALER.DISPOSITION' | translate }} + + {{ 'MOTIONDIALER.SECOND_LEVEL_DISPOSITION' | translate + }} + + + {{ 'MOTIONDIALER.THIRD_LEVEL_DISPOSITION' | translate }} + @@ -4233,6 +4240,8 @@ {{ hopperFinal.starttime | formatdate }} {{ hopperFinal.endtime | formatdate }} {{hopperFinal.disposition}} + {{hopperFinal.secondDisposition}} + {{hopperFinal.thirdDisposition}} - +
{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}:{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}:{{ interaction.closedAt | formatdate }}
-
+
{{ 'DASHBOARDS.DISPOSITION' | translate}}:=_0x13a39f?(_0x1ed0ca=_0x13a39f,_0x179e45=0xc8):_0x179e45=0xce,_0x1a25ba['status'](_0x179e45),_0x1a25ba[_0x5ecc9a('0x6d')]('Content-Range',_0x3c5b63+'-'+_0x1ed0ca+'/'+_0x13a39f)[_0x5ecc9a('0x11')](_0x33b942);}return null;};}function saveUpdates(_0x185271){return function(_0x287cfb){const _0x10c749=a5_0x70a0;if(_0x287cfb)return _0x287cfb[_0x10c749('0xa')](_0x185271)[_0x10c749('0x1')](function(_0x1eb7d6){return _0x1eb7d6;});return null;};}function removeEntity(_0x2fc1e0){return function(_0x2cd85c){const _0xc9eda7=a5_0x70a0;if(_0x2cd85c)return _0x2cd85c[_0xc9eda7('0x51')]()['then'](function(){const _0x500075=_0xc9eda7,_0x3fceac=_0x2cd85c['get']({'plain':!![]}),_0x137075=_0x500075('0x59');return db[_0x500075('0x4c')][_0x500075('0x51')]({'where':{'type':_0x137075,'resourceId':_0x3fceac['id']}})[_0x500075('0x1')](function(){return _0x2cd85c;});})[_0xc9eda7('0x1')](function(){const _0x24943e=_0xc9eda7;_0x2fc1e0[_0x24943e('0x18')](0xcc)['end']();});};}function handleEntityNotFound(_0x4812aa){return function(_0x32b990){const _0x5510b1=a5_0x70a0;return!_0x32b990&&_0x4812aa[_0x5510b1('0x2e')](0x194),_0x32b990;};}function handleError(_0x370e82,_0x430449){return _0x430449=_0x430449||0x1f4,function(_0x25efea){const _0x12577f=a5_0x70a0;logger['error'](_0x25efea['stack']),_0x25efea[_0x12577f('0x65')]&&delete _0x25efea[_0x12577f('0x65')],_0x370e82[_0x12577f('0x18')](_0x430449)['send'](_0x25efea);};}exports[_0x1f691b('0x74')]=function(_0x1e28b8,_0x13073d){const _0x1a13dc=_0x1f691b;let _0x3945a8={};const _0x33a11e={},_0x3caa96={'count':0x0,'rows':[]},_0x22c878=_[_0x1a13dc('0x4f')](db[_0x1a13dc('0x57')][_0x1a13dc('0x6c')],function(_0x599e33){const _0x66b545=_0x1a13dc;return{'name':_0x599e33[_0x66b545('0x56')],'type':_0x599e33[_0x66b545('0x8e')]['key']};});_0x33a11e[_0x1a13dc('0x45')]=_[_0x1a13dc('0x4f')](_0x22c878,_0x1a13dc('0x65')),_0x33a11e[_0x1a13dc('0x2a')]=_[_0x1a13dc('0x44')](_0x1e28b8[_0x1a13dc('0x2a')]),_0x33a11e[_0x1a13dc('0x75')]=_['intersection'](_0x33a11e[_0x1a13dc('0x45')],_0x33a11e[_0x1a13dc('0x2a')]),_0x3945a8[_0x1a13dc('0x3')]=_[_0x1a13dc('0x39')](_0x33a11e['model'],qs[_0x1a13dc('0x41')](_0x1e28b8[_0x1a13dc('0x2a')][_0x1a13dc('0x41')])),_0x3945a8[_0x1a13dc('0x3')]=_0x3945a8[_0x1a13dc('0x3')][_0x1a13dc('0x72')]?_0x3945a8[_0x1a13dc('0x3')]:_0x33a11e[_0x1a13dc('0x45')];typeof _0x1e28b8[_0x1a13dc('0x2a')][_0x1a13dc('0x5d')]==='undefined'&&(_0x3945a8['limit']=qs[_0x1a13dc('0x63')](_0x1e28b8['query']['limit']),_0x3945a8[_0x1a13dc('0x3e')]=qs[_0x1a13dc('0x3e')](_0x1e28b8[_0x1a13dc('0x2a')][_0x1a13dc('0x3e')]));_0x3945a8['order']=qs[_0x1a13dc('0x78')](_0x1e28b8[_0x1a13dc('0x2a')][_0x1a13dc('0x78')]),_0x3945a8[_0x1a13dc('0x8')]=qs[_0x1a13dc('0x75')](_[_0x1a13dc('0x7')](_0x1e28b8[_0x1a13dc('0x2a')],_0x33a11e[_0x1a13dc('0x75')]),_0x22c878);_0x1e28b8[_0x1a13dc('0x2a')][_0x1a13dc('0x14')]&&(_0x3945a8[_0x1a13dc('0x8')]=_['merge'](_0x3945a8[_0x1a13dc('0x8')],{[Op['or']]:_[_0x1a13dc('0x4f')](_0x22c878,function(_0x11e554){const _0x4249b2=_0x1a13dc;if(_0x11e554[_0x4249b2('0x8e')]!=='VIRTUAL'){const _0x35884b={};return _0x35884b[_0x11e554['name']]={[Op[_0x4249b2('0x21')]]:'%'+_0x1e28b8[_0x4249b2('0x2a')][_0x4249b2('0x14')]+'%'},_0x35884b;}})}));_0x3945a8=_['merge']({},_0x3945a8,_0x1e28b8[_0x1a13dc('0x26')]);const _0x204090={'where':_0x3945a8[_0x1a13dc('0x8')]};return db[_0x1a13dc('0x57')]['count'](_0x204090)['then'](function(_0x587f04){const _0x3c4086=_0x1a13dc;return _0x3caa96['count']=_0x587f04,_0x1e28b8[_0x3c4086('0x2a')][_0x3c4086('0x79')]&&(_0x3945a8[_0x3c4086('0x1c')]=[{'all':!![]}]),db[_0x3c4086('0x57')]['findAll'](_0x3945a8);})['then'](function(_0x2eb171){const _0x480753=_0x1a13dc;return _0x3caa96[_0x480753('0x22')]=_0x2eb171,_0x3caa96;})[_0x1a13dc('0x1')](respondWithFilteredResult(_0x13073d,_0x3945a8))[_0x1a13dc('0x15')](handleError(_0x13073d,null));},exports[_0x1f691b('0x66')]=function(_0x52372e,_0xa72c95){const _0x3eadf1=_0x1f691b;let _0x4c19ce={'raw':![],'where':{'id':_0x52372e['params']['id']}};const _0x5a73f3={};return _0x5a73f3['model']=_['keys'](db[_0x3eadf1('0x57')]['rawAttributes']),_0x5a73f3[_0x3eadf1('0x2a')]=_[_0x3eadf1('0x44')](_0x52372e[_0x3eadf1('0x2a')]),_0x5a73f3[_0x3eadf1('0x75')]=_[_0x3eadf1('0x39')](_0x5a73f3[_0x3eadf1('0x45')],_0x5a73f3[_0x3eadf1('0x2a')]),_0x4c19ce[_0x3eadf1('0x3')]=_[_0x3eadf1('0x39')](_0x5a73f3[_0x3eadf1('0x45')],qs[_0x3eadf1('0x41')](_0x52372e[_0x3eadf1('0x2a')][_0x3eadf1('0x41')])),_0x4c19ce[_0x3eadf1('0x3')]=_0x4c19ce['attributes'][_0x3eadf1('0x72')]?_0x4c19ce['attributes']:_0x5a73f3['model'],_0x52372e[_0x3eadf1('0x2a')][_0x3eadf1('0x79')]&&(_0x4c19ce[_0x3eadf1('0x1c')]=[{'all':!![]}]),_0x4c19ce=_['merge']({},_0x4c19ce,_0x52372e[_0x3eadf1('0x26')]),db[_0x3eadf1('0x57')][_0x3eadf1('0x8f')](_0x4c19ce)[_0x3eadf1('0x1')](handleEntityNotFound(_0xa72c95,null))[_0x3eadf1('0x1')](respondWithResult(_0xa72c95,null))[_0x3eadf1('0x15')](handleError(_0xa72c95,null));},exports[_0x1f691b('0x2c')]=function(_0x40f077,_0x53f171){const _0x106bd8=_0x1f691b;return db['AnalyticCustomReport'][_0x106bd8('0x2c')](_0x40f077[_0x106bd8('0x3c')],{})['then'](function(_0x4c5f99){const _0x354bf9=_0x106bd8,_0x298673=_0x40f077[_0x354bf9('0x33')][_0x354bf9('0x3a')]({'plain':!![]});if(!_0x298673)throw new Error(_0x354bf9('0x23'));if(_0x298673[_0x354bf9('0x7d')]===_0x354bf9('0x33')){const _0x2b462f=_0x4c5f99['get']({'plain':!![]}),_0x3a50fc=_0x354bf9('0x6f');return db[_0x354bf9('0x5f')][_0x354bf9('0x8f')]({'where':{'name':_0x3a50fc,'userProfileId':_0x298673[_0x354bf9('0x83')]},'raw':!![]})['then'](function(_0xe7d925){const _0xd55ade=_0x354bf9;return _0xe7d925&&_0xe7d925[_0xd55ade('0x3f')]===0x0?db['UserProfileResource'][_0xd55ade('0x2c')]({'name':_0x2b462f[_0xd55ade('0x65')],'resourceId':_0x2b462f['id'],'type':_0xd55ade('0x59'),'sectionId':_0xe7d925['id']},{})['then'](function(){return _0x4c5f99;}):_0x4c5f99;})[_0x354bf9('0x15')](function(_0x1dd86d){const _0x51db5b=_0x354bf9;logger[_0x51db5b('0x32')](_0x51db5b('0x12'),_0x1dd86d);throw _0x1dd86d;});}return _0x4c5f99;})[_0x106bd8('0x1')](respondWithResult(_0x53f171,0xc9))[_0x106bd8('0x15')](handleError(_0x53f171,null));},exports[_0x1f691b('0xa')]=function(_0x1e01ac,_0x4e2262){const _0x2950fa=_0x1f691b;return _0x1e01ac[_0x2950fa('0x3c')]['id']&&delete _0x1e01ac['body']['id'],db[_0x2950fa('0x57')][_0x2950fa('0x8f')]({'where':{'id':_0x1e01ac[_0x2950fa('0x6a')]['id']}})[_0x2950fa('0x1')](handleEntityNotFound(_0x4e2262,null))[_0x2950fa('0x1')](saveUpdates(_0x1e01ac['body'],null))[_0x2950fa('0x1')](respondWithResult(_0x4e2262,null))[_0x2950fa('0x15')](handleError(_0x4e2262,null));},exports[_0x1f691b('0x51')]=function(_0x2ee58f,_0x318928){const _0x2f36e3=_0x1f691b;return db[_0x2f36e3('0x57')][_0x2f36e3('0x8f')]({'where':{'id':_0x2ee58f[_0x2f36e3('0x6a')]['id']}})[_0x2f36e3('0x1')](handleEntityNotFound(_0x318928,null))[_0x2f36e3('0x1')](removeEntity(_0x318928,null))['catch'](handleError(_0x318928,null));},exports[_0x1f691b('0x38')]=function(_0x17b750,_0x26249f){const _0x1fddc6=_0x1f691b,_0x417e71=0xa,_0x276e50=[_0x1fddc6('0x10'),_0x1fddc6('0x4e'),_0x1fddc6('0x69'),'cross_join'],_0x4bc315={'SUM':'SUM(%s)','COUNT':_0x1fddc6('0x25'),'COUNT\x20DISTINCT':_0x1fddc6('0x8a'),'MAX':'MAX(%s)','MIN':_0x1fddc6('0x49'),'AVG':_0x1fddc6('0x42'),'GROUP_CONCAT':_0x1fddc6('0x47'),'GROUP_CONCAT\x20ASC':_0x1fddc6('0x84'),'GROUP_CONCAT\x20DESC':_0x1fddc6('0x54')},_0xccd75d={'SEC_TO_TIME':_0x1fddc6('0x2f'),'DATE':_0x1fddc6('0x6b'),'HOUR':_0x1fddc6('0x40'),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0xa6aa82=function(_0x386f9b){const _0x34873d=_0x1fddc6;return!_[_0x34873d('0x36')](['IS\x20NULL',_0x34873d('0x85'),_0x34873d('0x43'),_0x34873d('0x35')],_0x386f9b);},_0x52e355=function(_0x4eb50a){const _0x4b4ad6=_0x1fddc6;if(!_0x4eb50a||!_0x4eb50a[_0x4b4ad6('0x76')][_0x4b4ad6('0x72')])return'';let _0x3b8b67='(';for(let _0x908e07=0x0;_0x908e07<_0x4eb50a[_0x4b4ad6('0x76')][_0x4b4ad6('0x72')];_0x908e07+=0x1){_0x908e07>0x0&&(_0x3b8b67+='\x20'+_0x4eb50a[_0x4b4ad6('0x27')]+'\x20'),_0x3b8b67+=_0x4eb50a[_0x4b4ad6('0x76')][_0x908e07][_0x4b4ad6('0x9')]?_0x52e355(_0x4eb50a[_0x4b4ad6('0x76')][_0x908e07][_0x4b4ad6('0x9')]):_0x4eb50a[_0x4b4ad6('0x76')][_0x908e07][_0x4b4ad6('0x7c')]+'\x20'+_0x4eb50a[_0x4b4ad6('0x76')][_0x908e07][_0x4b4ad6('0x1f')]+(_0xa6aa82(_0x4eb50a[_0x4b4ad6('0x76')][_0x908e07]['condition'])?'\x20'+_0x4eb50a[_0x4b4ad6('0x76')][_0x908e07][_0x4b4ad6('0x17')]:'');}return _0x3b8b67+')';};let _0x1a5a61={'where':{'id':_0x17b750[_0x1fddc6('0x6a')]['id']}},_0x65efad,_0x5b346b,_0x12b266;return _0x1a5a61=_[_0x1fddc6('0x2d')]({},_0x1a5a61,_0x17b750[_0x1fddc6('0x26')]),db[_0x1fddc6('0x57')][_0x1fddc6('0x8f')](_0x1a5a61)[_0x1fddc6('0x1')](function(_0x48d728){const _0x52bab3=_0x1fddc6;if(_0x48d728)return _0x65efad=_0x48d728,_0x48d728[_0x52bab3('0x5b')]();return null;})['then'](function(_0x4df0ff){const _0x16bf7e=_0x1fddc6;if(_0x4df0ff){if(!_0x4df0ff[_0x16bf7e('0x72')])throw new db['Sequelize'][(_0x16bf7e('0x4b'))]('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x5b346b=_0x4df0ff,db['AnalyticMetric'][_0x16bf7e('0x2b')]({'raw':!![]});}return null;})['then'](function(_0x2d5000){const _0x193451=_0x1fddc6;if(_0x2d5000){_0x12b266=_[_0x193451('0x4d')](_0x2d5000,'id');let _0x4bb275;const _0xba4687=squel[_0x193451('0x50')]();_0xba4687[_0x193451('0x6e')](_0x65efad[_0x193451('0x5')]);for(let _0x1a7640=0x0;_0x1a7640<_0x5b346b[_0x193451('0x72')];_0x1a7640+=0x1){_0x4bb275=_0x5b346b[_0x1a7640][_0x193451('0x48')]?_0x12b266[_0x5b346b[_0x1a7640][_0x193451('0x48')]]['metric']:_0x5b346b[_0x1a7640][_0x193451('0x7c')],_0x4bb275=_0x5b346b[_0x1a7640][_0x193451('0x70')]?_[_0x193451('0x53')](_0x4bc315[_0x5b346b[_0x1a7640][_0x193451('0x70')]],'%s',_0x4bb275):_0x4bb275,_0x4bb275=_0x5b346b[_0x1a7640]['format']?_[_0x193451('0x53')](_0xccd75d[_0x5b346b[_0x1a7640][_0x193451('0x90')]],'%s',_0x4bb275):_0x4bb275,_0x5b346b[_0x1a7640][_0x193451('0x1a')]&&_0xba4687[_0x193451('0x9')](_0x4bb275),_0x5b346b[_0x1a7640][_0x193451('0x5a')]&&_0xba4687[_0x193451('0x8b')](_0x4bb275,_0x5b346b[_0x1a7640][_0x193451('0x5a')]==='DESC'?![]:!![]),_0xba4687[_0x193451('0x7c')](_0x4bb275,_0x5b346b[_0x1a7640][_0x193451('0x16')]||_0x4bb275);}if(_0x65efad[_0x193451('0x2')]){_0x65efad[_0x193451('0x2')]=JSON['parse'](_0x65efad['joins']);for(let _0x520c38=0x0;_0x520c38<_0x65efad[_0x193451('0x2')][_0x193451('0x72')];_0x520c38+=0x1){_0x65efad[_0x193451('0x2')][_0x520c38][_0x193451('0x8e')]&&_[_0x193451('0x36')](_0x276e50,_0x65efad['joins'][_0x520c38][_0x193451('0x8e')])&&_0x65efad[_0x193451('0x2')][_0x520c38]['parentKey']&&_0x65efad['joins'][_0x520c38]['foreignTable']&&_0x65efad['joins'][_0x520c38]['foreignKey']&&_0xba4687[_0x65efad[_0x193451('0x2')][_0x520c38][_0x193451('0x8e')]](_0x65efad['joins'][_0x520c38][_0x193451('0x80')],null,util[_0x193451('0x90')](_0x193451('0x37'),_0x65efad[_0x193451('0x5')],_0x65efad[_0x193451('0x2')][_0x520c38][_0x193451('0x28')],_0x65efad[_0x193451('0x2')][_0x520c38]['foreignTable'],_0x65efad[_0x193451('0x2')][_0x520c38][_0x193451('0x29')]));}}return _0x65efad['conditions']&&(_0x65efad[_0x193451('0x62')]=JSON[_0x193451('0x7a')](_0x65efad[_0x193451('0x62')]),_0xba4687[_0x193451('0x8')](_0x52e355(_0x65efad['conditions'][_0x193451('0x9')]))),_0xba4687['limit'](_0x417e71),_0xba4687[_0x193451('0x3e')](0x0),logger[_0x193451('0x77')](_0x193451('0x52'),_0xba4687[_0x193451('0x24')]()),db[_0x193451('0x4')][_0x193451('0x2a')](_0xba4687[_0x193451('0x24')](),{'type':db[_0x193451('0x4')][_0x193451('0x3b')]['SELECT']});}})[_0x1fddc6('0x1')](respondWithResult(_0x26249f,null))[_0x1fddc6('0x15')](handleError(_0x26249f,null));};function runReport(_0x432952,_0x8f97b3,_0x15be01){const _0x17233f=_0x1f691b,_0x4ff921=_0x8f97b3['name'],_0x591fa4=0xa,_0x48d5f0=['join',_0x17233f('0x4e'),_0x17233f('0x69'),_0x17233f('0x8d')],_0x5200b4={'SUM':_0x17233f('0x89'),'COUNT':_0x17233f('0x25'),'COUNT\x20DISTINCT':_0x17233f('0x8a'),'MAX':_0x17233f('0x0'),'MIN':_0x17233f('0x49'),'AVG':_0x17233f('0x42'),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':_0x17233f('0x84'),'GROUP_CONCAT\x20DESC':_0x17233f('0x54')},_0x596f76={'SEC_TO_TIME':_0x17233f('0x2f'),'DATE':_0x17233f('0x6b'),'HOUR':_0x17233f('0x40'),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x17233f('0x7f')},_0x1163ed=function(_0x2ee4fb){const _0x3f1936=_0x17233f;return!_[_0x3f1936('0x36')]([_0x3f1936('0x82'),_0x3f1936('0x85'),_0x3f1936('0x43'),_0x3f1936('0x35')],_0x2ee4fb);},_0x31b87b=function(_0x1ad6e1){const _0x4514fd=_0x17233f;if(!_0x1ad6e1||!_0x1ad6e1[_0x4514fd('0x76')][_0x4514fd('0x72')])return'';let _0x240a8='(';for(let _0x50dac3=0x0;_0x50dac3<_0x1ad6e1[_0x4514fd('0x76')]['length'];_0x50dac3+=0x1){_0x50dac3>0x0&&(_0x240a8+='\x20'+_0x1ad6e1[_0x4514fd('0x27')]+'\x20'),_0x240a8+=_0x1ad6e1[_0x4514fd('0x76')][_0x50dac3][_0x4514fd('0x9')]?_0x31b87b(_0x1ad6e1[_0x4514fd('0x76')][_0x50dac3][_0x4514fd('0x9')]):_0x1ad6e1[_0x4514fd('0x76')][_0x50dac3]['field']+'\x20'+_0x1ad6e1[_0x4514fd('0x76')][_0x50dac3]['condition']+(_0x1163ed(_0x1ad6e1[_0x4514fd('0x76')][_0x50dac3][_0x4514fd('0x1f')])?'\x20'+_0x1ad6e1[_0x4514fd('0x76')][_0x50dac3][_0x4514fd('0x17')]:'');}return _0x240a8+')';};let _0x47d4b8={'where':{'id':_0x432952['id']}},_0x81aa4b,_0x2998fa,_0x4b7c5a,_0x5a1fd7,_0x1dfb88;return _0x47d4b8=_[_0x17233f('0x2d')]({},_0x47d4b8,_0x15be01),db[_0x17233f('0x57')][_0x17233f('0x8f')](_0x47d4b8)[_0x17233f('0x1')](function(_0x30b5ec){if(_0x30b5ec)return _0x81aa4b=_0x30b5ec,_0x30b5ec['getFields']();return null;})[_0x17233f('0x1')](function(_0x217c57){const _0x5106e=_0x17233f;if(_0x217c57){if(!_0x217c57['length'])throw new db[(_0x5106e('0x8c'))]['ValidationErrorItem']('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x2998fa=_0x217c57,db[_0x5106e('0x20')][_0x5106e('0x2b')]({'raw':!![]});}return null;})[_0x17233f('0x1')](function(_0x232982){const _0x4793dd=_0x17233f;if(_0x232982){_0x4b7c5a=_[_0x4793dd('0x4d')](_0x232982,'id');let _0x5325cc;const _0x1d4140=squel[_0x4793dd('0x50')]();_0x1d4140[_0x4793dd('0x6e')](_0x81aa4b[_0x4793dd('0x5')]);for(let _0x5b3c0e=0x0;_0x5b3c0e<_0x2998fa['length'];_0x5b3c0e+=0x1){_0x5325cc=_0x2998fa[_0x5b3c0e][_0x4793dd('0x48')]?_0x4b7c5a[_0x2998fa[_0x5b3c0e][_0x4793dd('0x48')]][_0x4793dd('0x73')]:_0x2998fa[_0x5b3c0e][_0x4793dd('0x7c')],_0x5325cc=_0x2998fa[_0x5b3c0e]['function']?_[_0x4793dd('0x53')](_0x5200b4[_0x2998fa[_0x5b3c0e][_0x4793dd('0x70')]],'%s',_0x5325cc):_0x5325cc,_0x5325cc=_0x2998fa[_0x5b3c0e][_0x4793dd('0x90')]?_['replace'](_0x596f76[_0x2998fa[_0x5b3c0e][_0x4793dd('0x90')]],'%s',_0x5325cc):_0x5325cc,_0x2998fa[_0x5b3c0e]['groupBy']&&_0x1d4140[_0x4793dd('0x9')](_0x5325cc),_0x2998fa[_0x5b3c0e]['orderBy']&&_0x1d4140[_0x4793dd('0x8b')](_0x5325cc,_0x2998fa[_0x5b3c0e]['orderBy']===_0x4793dd('0x7e')?![]:!![]),_0x1d4140['field'](_0x5325cc,_0x2998fa[_0x5b3c0e][_0x4793dd('0x16')]||_0x5325cc);}if(_0x81aa4b[_0x4793dd('0x2')]){_0x81aa4b['joins']=JSON[_0x4793dd('0x7a')](_0x81aa4b[_0x4793dd('0x2')]);for(let _0x1f0c4c=0x0;_0x1f0c4c<_0x81aa4b[_0x4793dd('0x2')][_0x4793dd('0x72')];_0x1f0c4c+=0x1){_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c]['type']&&_[_0x4793dd('0x36')](_0x48d5f0,_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c][_0x4793dd('0x8e')])&&_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c][_0x4793dd('0x28')]&&_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c]['foreignTable']&&_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c][_0x4793dd('0x29')]&&_0x1d4140[_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c]['type']](_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c]['foreignTable'],null,util['format'](_0x4793dd('0x37'),_0x81aa4b[_0x4793dd('0x5')],_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c][_0x4793dd('0x28')],_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c]['foreignTable'],_0x81aa4b[_0x4793dd('0x2')][_0x1f0c4c][_0x4793dd('0x29')]));}}return _0x81aa4b[_0x4793dd('0x62')]&&(_0x81aa4b['conditions']=JSON[_0x4793dd('0x7a')](_0x81aa4b[_0x4793dd('0x62')]),_0x1d4140[_0x4793dd('0x8')](_0x31b87b(_0x81aa4b['conditions'][_0x4793dd('0x9')]))),_0x1dfb88=_0x1d4140[_0x4793dd('0x1e')](),_0x1d4140[_0x4793dd('0x63')](_0x591fa4),_0x1d4140[_0x4793dd('0x3e')](0x0),logger[_0x4793dd('0x77')](_0x4793dd('0x52'),_0x1d4140[_0x4793dd('0x24')]()),db[_0x4793dd('0x4')][_0x4793dd('0x2a')](_0x1d4140[_0x4793dd('0x24')](),{'type':db[_0x4793dd('0x4')][_0x4793dd('0x3b')][_0x4793dd('0x13')]});}})[_0x17233f('0x1')](function(_0x36c157){const _0x402a35=_0x17233f;if(!_0x36c157[_0x402a35('0x72')])throw new db[(_0x402a35('0x8c'))][(_0x402a35('0x4b'))](_0x402a35('0xc'),0xcc);if(_0x8f97b3[_0x402a35('0x55')]===_0x402a35('0xb'))return null;const _0x2031ce=_['merge'](_0x8f97b3,{'name':_0x8f97b3[_0x402a35('0x88')]||_0x8f97b3[_0x402a35('0x65')]||_0x81aa4b[_0x402a35('0x65')],'basename':_0x4ff921,'savename':util[_0x402a35('0x90')]('%s-%s.%s',_0x8f97b3['name']||_0x81aa4b['name'],require(_0x402a35('0x19'))[_0x402a35('0x67')](0x4),_0x8f97b3[_0x402a35('0x55')]||_0x402a35('0x81')),'reportId':_0x81aa4b['id'],'reportType':_0x402a35('0x34')});return db[_0x402a35('0x71')][_0x402a35('0x2c')](_0x2031ce,{'raw':!![]});})[_0x17233f('0x1')](function(_0x4d3b0d){const _0x54e580=_0x17233f;_0x81aa4b[_0x54e580('0x5')]==='cdr'?_0x1dfb88['where'](_0x81aa4b['table']+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0x8f97b3[_0x54e580('0xd')],_0x8f97b3[_0x54e580('0x61')]):_0x1dfb88[_0x54e580('0x8')](_0x81aa4b[_0x54e580('0x5')]+_0x54e580('0x4a'),_0x8f97b3[_0x54e580('0xd')],_0x8f97b3['endDate']);if(_0x4d3b0d)return logger[_0x54e580('0xf')](_0x54e580('0x60'),_0x1dfb88[_0x54e580('0x24')]()),require(_0x54e580('0x64'))[_0x54e580('0x1b')](path['join'](__dirname,_0x54e580('0x30'),_0x4d3b0d[_0x54e580('0x55')]),[_0x4d3b0d['id'],_0x1dfb88[_0x54e580('0x24')](),path[_0x54e580('0x10')](__dirname,_0x54e580('0x86'),_0x4d3b0d[_0x54e580('0x58')]),_0x4ff921]),_0x4d3b0d;else{const _0x58ef54=squel[_0x54e580('0x50')]();return _0x58ef54[_0x54e580('0x6e')]('('+_0x1dfb88[_0x54e580('0x24')]()+')',_0x54e580('0xe')),_0x58ef54['field'](_0x54e580('0x5e'),_0x54e580('0x1d')),_0x1dfb88[_0x54e580('0x63')](_0x8f97b3[_0x54e580('0x63')]||_0x591fa4),_0x1dfb88[_0x54e580('0x3e')](_0x8f97b3[_0x54e580('0x3e')]||0x0),dbH[_0x54e580('0x4')][_0x54e580('0x2a')](_0x58ef54[_0x54e580('0x24')](),{'type':dbH[_0x54e580('0x4')][_0x54e580('0x3b')]['SELECT']})['then'](function(_0x4b9abe){const _0x4f9537=_0x54e580;return!_0x4b9abe[_0x4f9537('0x72')]?_0x5a1fd7=0x0:_0x5a1fd7=_0x4b9abe[0x0][_0x4f9537('0x1d')]||0x0,dbH['sequelize']['query'](_0x1dfb88[_0x4f9537('0x24')](),{'type':dbH[_0x4f9537('0x4')][_0x4f9537('0x3b')]['SELECT']});})['then'](function(_0x49d121){return{'rows':_0x49d121||[],'count':_0x5a1fd7};});}});}exports['run']=function(_0x25d092,_0x4c0175){const _0x232917=_0x1f691b;return runReport(_0x25d092[_0x232917('0x6a')],_0x25d092[_0x232917('0x2a')],_0x25d092[_0x232917('0x26')])[_0x232917('0x1')](respondWithResult(_0x4c0175,null))[_0x232917('0x15')](handleError(_0x4c0175,null));},exports[_0x1f691b('0x5c')]=runReport,exports[_0x1f691b('0x2a')]=function(_0x3e2e70,_0x3abebe){const _0x4a7d56=_0x1f691b,_0x32844e=0xa,_0x4a0b65=['join',_0x4a7d56('0x4e'),_0x4a7d56('0x69'),_0x4a7d56('0x8d')],_0x7d1a3d={'SUM':_0x4a7d56('0x89'),'COUNT':_0x4a7d56('0x25'),'COUNT\x20DISTINCT':_0x4a7d56('0x8a'),'MAX':_0x4a7d56('0x0'),'MIN':_0x4a7d56('0x49'),'AVG':_0x4a7d56('0x42'),'GROUP_CONCAT':_0x4a7d56('0x47'),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x4a7d56('0x54')},_0x5543ea={'SEC_TO_TIME':_0x4a7d56('0x2f'),'DATE':'DATE(%s)','HOUR':_0x4a7d56('0x40'),'ROUND':_0x4a7d56('0x46'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x4b3fc5=function(_0xea482b){const _0x161761=_0x4a7d56;return!_[_0x161761('0x36')](['IS\x20NULL',_0x161761('0x85'),'IS\x20EMPTY','IS\x20NOT\x20EMPTY'],_0xea482b);},_0x4dd998=function(_0x1ca9c7){const _0x9c9fc5=_0x4a7d56;if(!_0x1ca9c7||!_0x1ca9c7[_0x9c9fc5('0x76')][_0x9c9fc5('0x72')])return'';let _0x54e0c9='(';for(let _0x570c79=0x0;_0x570c79<_0x1ca9c7[_0x9c9fc5('0x76')]['length'];_0x570c79+=0x1){_0x570c79>0x0&&(_0x54e0c9+='\x20'+_0x1ca9c7[_0x9c9fc5('0x27')]+'\x20'),_0x54e0c9+=_0x1ca9c7[_0x9c9fc5('0x76')][_0x570c79][_0x9c9fc5('0x9')]?_0x4dd998(_0x1ca9c7['rules'][_0x570c79][_0x9c9fc5('0x9')]):_0x1ca9c7[_0x9c9fc5('0x76')][_0x570c79][_0x9c9fc5('0x7c')]+'\x20'+_0x1ca9c7[_0x9c9fc5('0x76')][_0x570c79][_0x9c9fc5('0x1f')]+(_0x4b3fc5(_0x1ca9c7[_0x9c9fc5('0x76')][_0x570c79]['condition'])?'\x20'+_0x1ca9c7[_0x9c9fc5('0x76')][_0x570c79][_0x9c9fc5('0x17')]:'');}return _0x54e0c9+')';};let _0x12be75={'where':{'id':_0x3e2e70['params']['id']}},_0x3c278e,_0x4fb7f4,_0x4cb45,_0x1f7c45;return _0x12be75=_['merge']({},_0x12be75,_0x3e2e70['options']),db['AnalyticCustomReport'][_0x4a7d56('0x8f')](_0x12be75)[_0x4a7d56('0x1')](function(_0x30ebe7){const _0x53f626=_0x4a7d56;if(_0x30ebe7)return _0x3c278e=_0x30ebe7,_0x30ebe7[_0x53f626('0x5b')]();return null;})['then'](function(_0x179f0f){const _0x41d01d=_0x4a7d56;if(_0x179f0f){if(!_0x179f0f[_0x41d01d('0x72')])throw new db['Sequelize']['ValidationErrorItem'](_0x41d01d('0x68'),0x193);return _0x4fb7f4=_0x179f0f,db[_0x41d01d('0x20')]['findAll']({'raw':!![]});}return null;})['then'](function(_0x391222){const _0x898ebc=_0x4a7d56;if(_0x391222){_0x4cb45=_[_0x898ebc('0x4d')](_0x391222,'id');let _0x2a6dcf;const _0x52a2dc=squel[_0x898ebc('0x50')]();_0x52a2dc[_0x898ebc('0x6e')](_0x3c278e[_0x898ebc('0x5')]);for(let _0x18327a=0x0;_0x18327a<_0x4fb7f4[_0x898ebc('0x72')];_0x18327a+=0x1){_0x2a6dcf=_0x4fb7f4[_0x18327a][_0x898ebc('0x48')]?_0x4cb45[_0x4fb7f4[_0x18327a]['MetricId']][_0x898ebc('0x73')]:_0x4fb7f4[_0x18327a][_0x898ebc('0x7c')],_0x2a6dcf=_0x4fb7f4[_0x18327a][_0x898ebc('0x70')]?_[_0x898ebc('0x53')](_0x7d1a3d[_0x4fb7f4[_0x18327a][_0x898ebc('0x70')]],'%s',_0x2a6dcf):_0x2a6dcf,_0x2a6dcf=_0x4fb7f4[_0x18327a][_0x898ebc('0x90')]?_['replace'](_0x5543ea[_0x4fb7f4[_0x18327a]['format']],'%s',_0x2a6dcf):_0x2a6dcf,_0x4fb7f4[_0x18327a]['groupBy']&&_0x52a2dc[_0x898ebc('0x9')](_0x2a6dcf),_0x4fb7f4[_0x18327a][_0x898ebc('0x5a')]&&_0x52a2dc['order'](_0x2a6dcf,_0x4fb7f4[_0x18327a][_0x898ebc('0x5a')]===_0x898ebc('0x7e')?![]:!![]),_0x52a2dc['field'](_0x2a6dcf,_0x4fb7f4[_0x18327a][_0x898ebc('0x16')]||_0x2a6dcf);}if(_0x3c278e[_0x898ebc('0x2')]){_0x3c278e['joins']=JSON[_0x898ebc('0x7a')](_0x3c278e[_0x898ebc('0x2')]);for(let _0x42fde1=0x0;_0x42fde1<_0x3c278e[_0x898ebc('0x2')][_0x898ebc('0x72')];_0x42fde1+=0x1){_0x3c278e['joins'][_0x42fde1][_0x898ebc('0x8e')]&&_['includes'](_0x4a0b65,_0x3c278e[_0x898ebc('0x2')][_0x42fde1][_0x898ebc('0x8e')])&&_0x3c278e[_0x898ebc('0x2')][_0x42fde1][_0x898ebc('0x28')]&&_0x3c278e['joins'][_0x42fde1][_0x898ebc('0x80')]&&_0x3c278e[_0x898ebc('0x2')][_0x42fde1]['foreignKey']&&_0x52a2dc[_0x3c278e[_0x898ebc('0x2')][_0x42fde1][_0x898ebc('0x8e')]](_0x3c278e[_0x898ebc('0x2')][_0x42fde1][_0x898ebc('0x80')],null,util['format'](_0x898ebc('0x37'),_0x3c278e[_0x898ebc('0x5')],_0x3c278e[_0x898ebc('0x2')][_0x42fde1][_0x898ebc('0x28')],_0x3c278e[_0x898ebc('0x2')][_0x42fde1][_0x898ebc('0x80')],_0x3c278e[_0x898ebc('0x2')][_0x42fde1][_0x898ebc('0x29')]));}}return _0x3c278e[_0x898ebc('0x62')]&&(_0x3c278e['conditions']=JSON[_0x898ebc('0x7a')](_0x3c278e['conditions']),_0x52a2dc['where'](_0x4dd998(_0x3c278e[_0x898ebc('0x62')]['group']))),_0x1f7c45=_0x52a2dc[_0x898ebc('0x1e')](),_0x52a2dc[_0x898ebc('0x63')](_0x32844e),_0x52a2dc[_0x898ebc('0x3e')](0x0),logger[_0x898ebc('0x77')](_0x898ebc('0x52'),_0x52a2dc[_0x898ebc('0x24')]()),db['sequelize']['query'](_0x52a2dc[_0x898ebc('0x24')](),{'type':db[_0x898ebc('0x4')]['QueryTypes'][_0x898ebc('0x13')]});}})[_0x4a7d56('0x1')](function(){const _0x334ab2=_0x4a7d56;return{'sql':_0x1f7c45[_0x334ab2('0x24')]()};})['then'](respondWithResult(_0x3abebe,null))['catch'](handleError(_0x3abebe,null));}; \ No newline at end of file +const a5_0x1dcb=['keys','IS\x20NOT\x20NULL','Limited\x20Query:','output','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','runReport','fork','UNIX_TIMESTAMP(%s)','autoAssociation','left_join','nolimit','SUM(%s)','body','catch','alias','sort','SELECT','user','getFields','includes','GROUP_CONCAT(%s)','group','parentKey','AnalyticMetric','value','CustomReports','replace','foreignKey','join','MIN(%s)','end','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','squel','groupBy','AnalyticCustomReport','HOUR(%s)','SEC_TO_TIME(%s)','.createdAt\x20BETWEEN\x20?\x20AND\x20?','function','parse','preview','from','../../components/parsers/qs','field','foreignTable','type','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','COUNT(*)','child_process','options','right_join','UserProfileSection','operator','then','startDate','Run\x20Query:','csv','COUNT(DISTINCT\x20%s)','path','undefined','length','AVG(%s)','dbH','joins','toString','orderBy','table','query','DESC','order','No\x20available\x20data','Sequelize','cross_join','where','stack','Please\x20insert\x20at\x20least\x20one\x20field','filters','limit','findAll','util','rawAttributes','findOne','ROUND(%s)','MAX(%s)','UserProfileResource','error','name','merge','status','send','conditions','create','IS\x20EMPTY','model','savename','Content-Range','QueryTypes','sequelize','rules','metric','%s.%s\x20=\x20%s.%s','get','intersection','DATE(%s)','format','include','attributes','IS\x20NOT\x20EMPTY','endDate','../../config/logger','destroy','keyBy','select','params','map','show','AnalyticExtractedReport','randomstring','fields','ValidationErrorItem','includeAll','debug','web','.calldate\x20BETWEEN\x20?\x20AND\x20?','json','offset','index','key','api','custom','COUNT(%s)','fieldName','VIRTUAL','MetricId','count','clone','../../components/export/','condition','filter','userProfileId'];(function(_0x5852e2,_0x1dcb55){const _0x7f87ed=function(_0x448648){while(--_0x448648){_0x5852e2['push'](_0x5852e2['shift']());}};_0x7f87ed(++_0x1dcb55);}(a5_0x1dcb,0x7e));const a5_0x7f87=function(_0x5852e2,_0x1dcb55){_0x5852e2=_0x5852e2-0x0;let _0x7f87ed=a5_0x1dcb[_0x5852e2];return _0x7f87ed;};const _0x473fa9=a5_0x7f87;'use strict';const util=require(_0x473fa9('0x5d')),path=require(_0x473fa9('0x48')),_=require('lodash'),squel=require(_0x473fa9('0x2e')),qs=require(_0x473fa9('0x38')),logger=require(_0x473fa9('0x7b'))(_0x473fa9('0x2')),db=require('../../mysqldb')['db'],dbH=require('../../mysqldb')[_0x473fa9('0x4c')],{Op}=require('sequelize');function respondWithResult(_0x448648,_0x175d1a){return _0x175d1a=_0x175d1a||0xc8,function(_0x33b06e){const _0xa7d70d=a5_0x7f87;if(_0x33b06e)return _0x448648[_0xa7d70d('0x66')](_0x175d1a)[_0xa7d70d('0x8a')](_0x33b06e);};}function respondWithFilteredResult(_0x27c5aa,_0x48204d){return function(_0x1b9aec){const _0x3f8cee=a5_0x7f87;if(_0x1b9aec){const _0x17927d=_0x1b9aec[_0x3f8cee('0x8')],_0x382a32=_0x48204d['offset'];let _0x5f363f=_0x48204d[_0x3f8cee('0x8b')]+_0x48204d[_0x3f8cee('0x5b')],_0x15df14;return _0x5f363f>=_0x17927d?(_0x5f363f=_0x17927d,_0x15df14=0xc8):_0x15df14=0xce,_0x27c5aa[_0x3f8cee('0x66')](_0x15df14),_0x27c5aa['set'](_0x3f8cee('0x6d'),_0x382a32+'-'+_0x5f363f+'/'+_0x17927d)['json'](_0x1b9aec);}return null;};}function saveUpdates(_0x1ac29c){return function(_0x1d874d){const _0x41c5c9=a5_0x7f87;if(_0x1d874d)return _0x1d874d['update'](_0x1ac29c)[_0x41c5c9('0x43')](function(_0x575bc2){return _0x575bc2;});return null;};}function removeEntity(_0x517bf1){return function(_0x2023f5){const _0x338e22=a5_0x7f87;if(_0x2023f5)return _0x2023f5[_0x338e22('0x7c')]()[_0x338e22('0x43')](function(){const _0x247c2c=_0x338e22,_0x56da86=_0x2023f5[_0x247c2c('0x73')]({'plain':!![]}),_0x458d21=_0x247c2c('0x27');return db[_0x247c2c('0x62')][_0x247c2c('0x7c')]({'where':{'type':_0x458d21,'resourceId':_0x56da86['id']}})[_0x247c2c('0x43')](function(){return _0x2023f5;});})['then'](function(){const _0x3f997b=_0x338e22;_0x517bf1[_0x3f997b('0x66')](0xcc)[_0x3f997b('0x2c')]();});};}function handleEntityNotFound(_0x30958b){return function(_0x20c0b8){return!_0x20c0b8&&_0x30958b['sendStatus'](0x194),_0x20c0b8;};}function handleError(_0x58c24a,_0x3e7d9b){return _0x3e7d9b=_0x3e7d9b||0x1f4,function(_0x3a8878){const _0x8411a2=a5_0x7f87;logger['error'](_0x3a8878[_0x8411a2('0x58')]),_0x3a8878[_0x8411a2('0x64')]&&delete _0x3a8878[_0x8411a2('0x64')],_0x58c24a[_0x8411a2('0x66')](_0x3e7d9b)[_0x8411a2('0x67')](_0x3a8878);};}exports[_0x473fa9('0x0')]=function(_0x4b271d,_0x3537eb){const _0x2ec4a9=_0x473fa9;let _0x3f3afc={};const _0x3c60c6={},_0x3a615f={'count':0x0,'rows':[]},_0x586851=_[_0x2ec4a9('0x80')](db['AnalyticCustomReport']['rawAttributes'],function(_0x4fc2ce){const _0xf0c92e=_0x2ec4a9;return{'name':_0x4fc2ce[_0xf0c92e('0x5')],'type':_0x4fc2ce[_0xf0c92e('0x3b')][_0xf0c92e('0x1')]};});_0x3c60c6[_0x2ec4a9('0x6b')]=_[_0x2ec4a9('0x80')](_0x586851,'name'),_0x3c60c6['query']=_[_0x2ec4a9('0xe')](_0x4b271d[_0x2ec4a9('0x51')]),_0x3c60c6[_0x2ec4a9('0x5a')]=_[_0x2ec4a9('0x74')](_0x3c60c6[_0x2ec4a9('0x6b')],_0x3c60c6[_0x2ec4a9('0x51')]),_0x3f3afc['attributes']=_[_0x2ec4a9('0x74')](_0x3c60c6['model'],qs['fields'](_0x4b271d[_0x2ec4a9('0x51')][_0x2ec4a9('0x84')])),_0x3f3afc['attributes']=_0x3f3afc[_0x2ec4a9('0x78')][_0x2ec4a9('0x4a')]?_0x3f3afc['attributes']:_0x3c60c6['model'];typeof _0x4b271d['query'][_0x2ec4a9('0x18')]===_0x2ec4a9('0x49')&&(_0x3f3afc[_0x2ec4a9('0x5b')]=qs[_0x2ec4a9('0x5b')](_0x4b271d[_0x2ec4a9('0x51')][_0x2ec4a9('0x5b')]),_0x3f3afc[_0x2ec4a9('0x8b')]=qs[_0x2ec4a9('0x8b')](_0x4b271d[_0x2ec4a9('0x51')][_0x2ec4a9('0x8b')]));_0x3f3afc[_0x2ec4a9('0x53')]=qs['sort'](_0x4b271d[_0x2ec4a9('0x51')][_0x2ec4a9('0x1d')]),_0x3f3afc['where']=qs[_0x2ec4a9('0x5a')](_['pick'](_0x4b271d['query'],_0x3c60c6[_0x2ec4a9('0x5a')]),_0x586851);_0x4b271d[_0x2ec4a9('0x51')]['filter']&&(_0x3f3afc[_0x2ec4a9('0x57')]=_[_0x2ec4a9('0x65')](_0x3f3afc[_0x2ec4a9('0x57')],{[Op['or']]:_['map'](_0x586851,function(_0x231a54){const _0x33102c=_0x2ec4a9;if(_0x231a54[_0x33102c('0x3b')]!==_0x33102c('0x6')){const _0x179d84={};return _0x179d84[_0x231a54[_0x33102c('0x64')]]={[Op['like']]:'%'+_0x4b271d['query'][_0x33102c('0xc')]+'%'},_0x179d84;}})}));_0x3f3afc=_[_0x2ec4a9('0x65')]({},_0x3f3afc,_0x4b271d[_0x2ec4a9('0x3f')]);const _0x5dcbfd={'where':_0x3f3afc[_0x2ec4a9('0x57')]};return db[_0x2ec4a9('0x30')]['count'](_0x5dcbfd)[_0x2ec4a9('0x43')](function(_0x56566b){const _0x417220=_0x2ec4a9;return _0x3a615f[_0x417220('0x8')]=_0x56566b,_0x4b271d[_0x417220('0x51')]['includeAll']&&(_0x3f3afc['include']=[{'all':!![]}]),db[_0x417220('0x30')][_0x417220('0x5c')](_0x3f3afc);})['then'](function(_0x177186){return _0x3a615f['rows']=_0x177186,_0x3a615f;})['then'](respondWithFilteredResult(_0x3537eb,_0x3f3afc))['catch'](handleError(_0x3537eb,null));},exports[_0x473fa9('0x81')]=function(_0x453c07,_0x3d66e0){const _0x28ff17=_0x473fa9;let _0x29e40a={'raw':![],'where':{'id':_0x453c07['params']['id']}};const _0x4325ba={};return _0x4325ba[_0x28ff17('0x6b')]=_[_0x28ff17('0xe')](db[_0x28ff17('0x30')][_0x28ff17('0x5e')]),_0x4325ba['query']=_[_0x28ff17('0xe')](_0x453c07[_0x28ff17('0x51')]),_0x4325ba['filters']=_['intersection'](_0x4325ba[_0x28ff17('0x6b')],_0x4325ba[_0x28ff17('0x51')]),_0x29e40a['attributes']=_['intersection'](_0x4325ba[_0x28ff17('0x6b')],qs[_0x28ff17('0x84')](_0x453c07['query']['fields'])),_0x29e40a['attributes']=_0x29e40a[_0x28ff17('0x78')][_0x28ff17('0x4a')]?_0x29e40a['attributes']:_0x4325ba['model'],_0x453c07['query'][_0x28ff17('0x86')]&&(_0x29e40a[_0x28ff17('0x77')]=[{'all':!![]}]),_0x29e40a=_[_0x28ff17('0x65')]({},_0x29e40a,_0x453c07['options']),db[_0x28ff17('0x30')][_0x28ff17('0x5f')](_0x29e40a)['then'](handleEntityNotFound(_0x3d66e0,null))[_0x28ff17('0x43')](respondWithResult(_0x3d66e0,null))[_0x28ff17('0x1b')](handleError(_0x3d66e0,null));},exports[_0x473fa9('0x69')]=function(_0x1f681c,_0x3158bd){const _0x490e15=_0x473fa9;return db[_0x490e15('0x30')][_0x490e15('0x69')](_0x1f681c[_0x490e15('0x1a')],{})[_0x490e15('0x43')](function(_0x4ff2b1){const _0x1852d5=_0x490e15,_0x181665=_0x1f681c[_0x1852d5('0x1f')]['get']({'plain':!![]});if(!_0x181665)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x181665['role']===_0x1852d5('0x1f')){const _0x511672=_0x4ff2b1[_0x1852d5('0x73')]({'plain':!![]}),_0x3c5fcf='Reports';return db[_0x1852d5('0x41')][_0x1852d5('0x5f')]({'where':{'name':_0x3c5fcf,'userProfileId':_0x181665[_0x1852d5('0xd')]},'raw':!![]})[_0x1852d5('0x43')](function(_0x3f2ee5){const _0x8dd1f5=_0x1852d5;return _0x3f2ee5&&_0x3f2ee5[_0x8dd1f5('0x16')]===0x0?db['UserProfileResource'][_0x8dd1f5('0x69')]({'name':_0x511672['name'],'resourceId':_0x511672['id'],'type':_0x8dd1f5('0x27'),'sectionId':_0x3f2ee5['id']},{})[_0x8dd1f5('0x43')](function(){return _0x4ff2b1;}):_0x4ff2b1;})['catch'](function(_0x18092a){const _0x5adb11=_0x1852d5;logger[_0x5adb11('0x63')](_0x5adb11('0x2d'),_0x18092a);throw _0x18092a;});}return _0x4ff2b1;})[_0x490e15('0x43')](respondWithResult(_0x3158bd,0xc9))[_0x490e15('0x1b')](handleError(_0x3158bd,null));},exports['update']=function(_0x466683,_0x5c6b5c){const _0x29c5f5=_0x473fa9;return _0x466683[_0x29c5f5('0x1a')]['id']&&delete _0x466683[_0x29c5f5('0x1a')]['id'],db[_0x29c5f5('0x30')][_0x29c5f5('0x5f')]({'where':{'id':_0x466683[_0x29c5f5('0x7f')]['id']}})[_0x29c5f5('0x43')](handleEntityNotFound(_0x5c6b5c,null))[_0x29c5f5('0x43')](saveUpdates(_0x466683[_0x29c5f5('0x1a')],null))[_0x29c5f5('0x43')](respondWithResult(_0x5c6b5c,null))[_0x29c5f5('0x1b')](handleError(_0x5c6b5c,null));},exports[_0x473fa9('0x7c')]=function(_0x4e7c6f,_0x3c6c03){const _0x3806d6=_0x473fa9;return db['AnalyticCustomReport'][_0x3806d6('0x5f')]({'where':{'id':_0x4e7c6f[_0x3806d6('0x7f')]['id']}})[_0x3806d6('0x43')](handleEntityNotFound(_0x3c6c03,null))[_0x3806d6('0x43')](removeEntity(_0x3c6c03,null))[_0x3806d6('0x1b')](handleError(_0x3c6c03,null));},exports[_0x473fa9('0x36')]=function(_0x3d948b,_0xe9547b){const _0x48130e=_0x473fa9,_0x1f008c=0xa,_0x48dde8=['join',_0x48130e('0x17'),_0x48130e('0x40'),'cross_join'],_0x3add7c={'SUM':_0x48130e('0x19'),'COUNT':_0x48130e('0x4'),'COUNT\x20DISTINCT':_0x48130e('0x47'),'MAX':'MAX(%s)','MIN':_0x48130e('0x2b'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x48130e('0x22'),'GROUP_CONCAT\x20ASC':_0x48130e('0x12'),'GROUP_CONCAT\x20DESC':_0x48130e('0x3c')},_0x499d81={'SEC_TO_TIME':_0x48130e('0x32'),'DATE':_0x48130e('0x75'),'HOUR':_0x48130e('0x31'),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x48130e('0x15')},_0xd47d8b=function(_0x5ca68b){const _0x47df61=_0x48130e;return!_[_0x47df61('0x21')](['IS\x20NULL',_0x47df61('0xf'),_0x47df61('0x6a'),'IS\x20NOT\x20EMPTY'],_0x5ca68b);},_0x38e11f=function(_0x166d85){const _0x2a3c06=_0x48130e;if(!_0x166d85||!_0x166d85[_0x2a3c06('0x70')][_0x2a3c06('0x4a')])return'';let _0x3ba28d='(';for(let _0x40ac47=0x0;_0x40ac47<_0x166d85[_0x2a3c06('0x70')][_0x2a3c06('0x4a')];_0x40ac47+=0x1){_0x40ac47>0x0&&(_0x3ba28d+='\x20'+_0x166d85[_0x2a3c06('0x42')]+'\x20'),_0x3ba28d+=_0x166d85['rules'][_0x40ac47][_0x2a3c06('0x23')]?_0x38e11f(_0x166d85[_0x2a3c06('0x70')][_0x40ac47][_0x2a3c06('0x23')]):_0x166d85['rules'][_0x40ac47][_0x2a3c06('0x39')]+'\x20'+_0x166d85[_0x2a3c06('0x70')][_0x40ac47]['condition']+(_0xd47d8b(_0x166d85['rules'][_0x40ac47][_0x2a3c06('0xb')])?'\x20'+_0x166d85[_0x2a3c06('0x70')][_0x40ac47][_0x2a3c06('0x26')]:'');}return _0x3ba28d+')';};let _0x251936={'where':{'id':_0x3d948b[_0x48130e('0x7f')]['id']}},_0x373ceb,_0x4a17ce,_0x53b579;return _0x251936=_[_0x48130e('0x65')]({},_0x251936,_0x3d948b[_0x48130e('0x3f')]),db[_0x48130e('0x30')][_0x48130e('0x5f')](_0x251936)['then'](function(_0x2cfded){const _0xafd1e6=_0x48130e;if(_0x2cfded)return _0x373ceb=_0x2cfded,_0x2cfded[_0xafd1e6('0x20')]();return null;})[_0x48130e('0x43')](function(_0x4594e1){const _0x512167=_0x48130e;if(_0x4594e1){if(!_0x4594e1[_0x512167('0x4a')])throw new db[(_0x512167('0x55'))][(_0x512167('0x85'))](_0x512167('0x59'),0x193);return _0x4a17ce=_0x4594e1,db['AnalyticMetric'][_0x512167('0x5c')]({'raw':!![]});}return null;})[_0x48130e('0x43')](function(_0x32896f){const _0x25e1d1=_0x48130e;if(_0x32896f){_0x53b579=_[_0x25e1d1('0x7d')](_0x32896f,'id');let _0x289185;const _0x16ceb0=squel['select']();_0x16ceb0[_0x25e1d1('0x37')](_0x373ceb['table']);for(let _0xf88a30=0x0;_0xf88a30<_0x4a17ce['length'];_0xf88a30+=0x1){_0x289185=_0x4a17ce[_0xf88a30][_0x25e1d1('0x7')]?_0x53b579[_0x4a17ce[_0xf88a30][_0x25e1d1('0x7')]][_0x25e1d1('0x71')]:_0x4a17ce[_0xf88a30][_0x25e1d1('0x39')],_0x289185=_0x4a17ce[_0xf88a30][_0x25e1d1('0x34')]?_[_0x25e1d1('0x28')](_0x3add7c[_0x4a17ce[_0xf88a30][_0x25e1d1('0x34')]],'%s',_0x289185):_0x289185,_0x289185=_0x4a17ce[_0xf88a30][_0x25e1d1('0x76')]?_[_0x25e1d1('0x28')](_0x499d81[_0x4a17ce[_0xf88a30][_0x25e1d1('0x76')]],'%s',_0x289185):_0x289185,_0x4a17ce[_0xf88a30]['groupBy']&&_0x16ceb0[_0x25e1d1('0x23')](_0x289185),_0x4a17ce[_0xf88a30]['orderBy']&&_0x16ceb0[_0x25e1d1('0x53')](_0x289185,_0x4a17ce[_0xf88a30]['orderBy']===_0x25e1d1('0x52')?![]:!![]),_0x16ceb0['field'](_0x289185,_0x4a17ce[_0xf88a30][_0x25e1d1('0x1c')]||_0x289185);}if(_0x373ceb[_0x25e1d1('0x4d')]){_0x373ceb['joins']=JSON[_0x25e1d1('0x35')](_0x373ceb[_0x25e1d1('0x4d')]);for(let _0x451a8c=0x0;_0x451a8c<_0x373ceb[_0x25e1d1('0x4d')][_0x25e1d1('0x4a')];_0x451a8c+=0x1){_0x373ceb[_0x25e1d1('0x4d')][_0x451a8c]['type']&&_['includes'](_0x48dde8,_0x373ceb[_0x25e1d1('0x4d')][_0x451a8c][_0x25e1d1('0x3b')])&&_0x373ceb[_0x25e1d1('0x4d')][_0x451a8c][_0x25e1d1('0x24')]&&_0x373ceb[_0x25e1d1('0x4d')][_0x451a8c][_0x25e1d1('0x3a')]&&_0x373ceb[_0x25e1d1('0x4d')][_0x451a8c][_0x25e1d1('0x29')]&&_0x16ceb0[_0x373ceb['joins'][_0x451a8c][_0x25e1d1('0x3b')]](_0x373ceb[_0x25e1d1('0x4d')][_0x451a8c][_0x25e1d1('0x3a')],null,util[_0x25e1d1('0x76')](_0x25e1d1('0x72'),_0x373ceb['table'],_0x373ceb['joins'][_0x451a8c][_0x25e1d1('0x24')],_0x373ceb[_0x25e1d1('0x4d')][_0x451a8c]['foreignTable'],_0x373ceb[_0x25e1d1('0x4d')][_0x451a8c][_0x25e1d1('0x29')]));}}return _0x373ceb[_0x25e1d1('0x68')]&&(_0x373ceb['conditions']=JSON['parse'](_0x373ceb[_0x25e1d1('0x68')]),_0x16ceb0[_0x25e1d1('0x57')](_0x38e11f(_0x373ceb[_0x25e1d1('0x68')][_0x25e1d1('0x23')]))),_0x16ceb0[_0x25e1d1('0x5b')](_0x1f008c),_0x16ceb0[_0x25e1d1('0x8b')](0x0),logger['debug'](_0x25e1d1('0x10'),_0x16ceb0[_0x25e1d1('0x4e')]()),db[_0x25e1d1('0x6f')][_0x25e1d1('0x51')](_0x16ceb0[_0x25e1d1('0x4e')](),{'type':db[_0x25e1d1('0x6f')][_0x25e1d1('0x6e')]['SELECT']});}})[_0x48130e('0x43')](respondWithResult(_0xe9547b,null))[_0x48130e('0x1b')](handleError(_0xe9547b,null));};function runReport(_0x386a26,_0x31da95,_0x3929cb){const _0xb2d9aa=_0x473fa9,_0x2f0e26=_0x31da95['name'],_0x56dcc7=0xa,_0x16509d=[_0xb2d9aa('0x2a'),'left_join',_0xb2d9aa('0x40'),_0xb2d9aa('0x56')],_0x5af401={'SUM':_0xb2d9aa('0x19'),'COUNT':_0xb2d9aa('0x4'),'COUNT\x20DISTINCT':_0xb2d9aa('0x47'),'MAX':'MAX(%s)','MIN':_0xb2d9aa('0x2b'),'AVG':_0xb2d9aa('0x4b'),'GROUP_CONCAT':_0xb2d9aa('0x22'),'GROUP_CONCAT\x20ASC':_0xb2d9aa('0x12'),'GROUP_CONCAT\x20DESC':_0xb2d9aa('0x3c')},_0xe6ef76={'SEC_TO_TIME':_0xb2d9aa('0x32'),'DATE':'DATE(%s)','HOUR':_0xb2d9aa('0x31'),'ROUND':_0xb2d9aa('0x60'),'UNIX_TIMESTAMP':_0xb2d9aa('0x15')},_0x3625b7=function(_0x1e435c){const _0x8b35cd=_0xb2d9aa;return!_[_0x8b35cd('0x21')](['IS\x20NULL',_0x8b35cd('0xf'),'IS\x20EMPTY','IS\x20NOT\x20EMPTY'],_0x1e435c);},_0x47d6ac=function(_0xe638e7){const _0xfa029e=_0xb2d9aa;if(!_0xe638e7||!_0xe638e7[_0xfa029e('0x70')][_0xfa029e('0x4a')])return'';let _0x2e0419='(';for(let _0x3702f7=0x0;_0x3702f7<_0xe638e7[_0xfa029e('0x70')][_0xfa029e('0x4a')];_0x3702f7+=0x1){_0x3702f7>0x0&&(_0x2e0419+='\x20'+_0xe638e7['operator']+'\x20'),_0x2e0419+=_0xe638e7[_0xfa029e('0x70')][_0x3702f7]['group']?_0x47d6ac(_0xe638e7['rules'][_0x3702f7][_0xfa029e('0x23')]):_0xe638e7[_0xfa029e('0x70')][_0x3702f7]['field']+'\x20'+_0xe638e7[_0xfa029e('0x70')][_0x3702f7]['condition']+(_0x3625b7(_0xe638e7['rules'][_0x3702f7]['condition'])?'\x20'+_0xe638e7[_0xfa029e('0x70')][_0x3702f7][_0xfa029e('0x26')]:'');}return _0x2e0419+')';};let _0x3074a9={'where':{'id':_0x386a26['id']}},_0x168fa8,_0x2addd3,_0x99327,_0xc385f9,_0x4aa689;return _0x3074a9=_[_0xb2d9aa('0x65')]({},_0x3074a9,_0x3929cb),db['AnalyticCustomReport']['findOne'](_0x3074a9)[_0xb2d9aa('0x43')](function(_0x4f0c47){const _0x2f652e=_0xb2d9aa;if(_0x4f0c47)return _0x168fa8=_0x4f0c47,_0x4f0c47[_0x2f652e('0x20')]();return null;})[_0xb2d9aa('0x43')](function(_0x13732c){const _0x2b6b5d=_0xb2d9aa;if(_0x13732c){if(!_0x13732c[_0x2b6b5d('0x4a')])throw new db[(_0x2b6b5d('0x55'))][(_0x2b6b5d('0x85'))](_0x2b6b5d('0x59'),0x193);return _0x2addd3=_0x13732c,db[_0x2b6b5d('0x25')][_0x2b6b5d('0x5c')]({'raw':!![]});}return null;})[_0xb2d9aa('0x43')](function(_0x2d0416){const _0x5b235a=_0xb2d9aa;if(_0x2d0416){_0x99327=_['keyBy'](_0x2d0416,'id');let _0x422eb1;const _0x52d69a=squel[_0x5b235a('0x7e')]();_0x52d69a[_0x5b235a('0x37')](_0x168fa8['table']);for(let _0x57e4b1=0x0;_0x57e4b1<_0x2addd3[_0x5b235a('0x4a')];_0x57e4b1+=0x1){_0x422eb1=_0x2addd3[_0x57e4b1][_0x5b235a('0x7')]?_0x99327[_0x2addd3[_0x57e4b1][_0x5b235a('0x7')]][_0x5b235a('0x71')]:_0x2addd3[_0x57e4b1]['field'],_0x422eb1=_0x2addd3[_0x57e4b1][_0x5b235a('0x34')]?_[_0x5b235a('0x28')](_0x5af401[_0x2addd3[_0x57e4b1][_0x5b235a('0x34')]],'%s',_0x422eb1):_0x422eb1,_0x422eb1=_0x2addd3[_0x57e4b1]['format']?_[_0x5b235a('0x28')](_0xe6ef76[_0x2addd3[_0x57e4b1][_0x5b235a('0x76')]],'%s',_0x422eb1):_0x422eb1,_0x2addd3[_0x57e4b1][_0x5b235a('0x2f')]&&_0x52d69a[_0x5b235a('0x23')](_0x422eb1),_0x2addd3[_0x57e4b1][_0x5b235a('0x4f')]&&_0x52d69a['order'](_0x422eb1,_0x2addd3[_0x57e4b1][_0x5b235a('0x4f')]==='DESC'?![]:!![]),_0x52d69a[_0x5b235a('0x39')](_0x422eb1,_0x2addd3[_0x57e4b1]['alias']||_0x422eb1);}if(_0x168fa8['joins']){_0x168fa8[_0x5b235a('0x4d')]=JSON['parse'](_0x168fa8['joins']);for(let _0x262d93=0x0;_0x262d93<_0x168fa8[_0x5b235a('0x4d')][_0x5b235a('0x4a')];_0x262d93+=0x1){_0x168fa8[_0x5b235a('0x4d')][_0x262d93][_0x5b235a('0x3b')]&&_[_0x5b235a('0x21')](_0x16509d,_0x168fa8['joins'][_0x262d93][_0x5b235a('0x3b')])&&_0x168fa8[_0x5b235a('0x4d')][_0x262d93][_0x5b235a('0x24')]&&_0x168fa8[_0x5b235a('0x4d')][_0x262d93][_0x5b235a('0x3a')]&&_0x168fa8[_0x5b235a('0x4d')][_0x262d93][_0x5b235a('0x29')]&&_0x52d69a[_0x168fa8['joins'][_0x262d93][_0x5b235a('0x3b')]](_0x168fa8['joins'][_0x262d93][_0x5b235a('0x3a')],null,util['format'](_0x5b235a('0x72'),_0x168fa8[_0x5b235a('0x50')],_0x168fa8[_0x5b235a('0x4d')][_0x262d93][_0x5b235a('0x24')],_0x168fa8[_0x5b235a('0x4d')][_0x262d93][_0x5b235a('0x3a')],_0x168fa8[_0x5b235a('0x4d')][_0x262d93][_0x5b235a('0x29')]));}}return _0x168fa8[_0x5b235a('0x68')]&&(_0x168fa8[_0x5b235a('0x68')]=JSON[_0x5b235a('0x35')](_0x168fa8[_0x5b235a('0x68')]),_0x52d69a['where'](_0x47d6ac(_0x168fa8[_0x5b235a('0x68')][_0x5b235a('0x23')]))),_0x4aa689=_0x52d69a[_0x5b235a('0x9')](),_0x52d69a[_0x5b235a('0x5b')](_0x56dcc7),_0x52d69a[_0x5b235a('0x8b')](0x0),logger['debug']('Limited\x20Query:',_0x52d69a[_0x5b235a('0x4e')]()),db[_0x5b235a('0x6f')]['query'](_0x52d69a[_0x5b235a('0x4e')](),{'type':db['sequelize']['QueryTypes']['SELECT']});}})[_0xb2d9aa('0x43')](function(_0x5cc493){const _0x4cbb10=_0xb2d9aa;if(!_0x5cc493['length'])throw new db['Sequelize']['ValidationErrorItem'](_0x4cbb10('0x54'),0xcc);if(_0x31da95[_0x4cbb10('0x11')]===_0x4cbb10('0x88'))return null;const _0x1fa6ff=_['merge'](_0x31da95,{'name':_0x31da95['fullPath']||_0x31da95[_0x4cbb10('0x64')]||_0x168fa8[_0x4cbb10('0x64')],'basename':_0x2f0e26,'savename':util[_0x4cbb10('0x76')]('%s-%s.%s',_0x31da95['name']||_0x168fa8[_0x4cbb10('0x64')],require(_0x4cbb10('0x83'))['generate'](0x4),_0x31da95[_0x4cbb10('0x11')]||_0x4cbb10('0x46')),'reportId':_0x168fa8['id'],'reportType':_0x4cbb10('0x3')});return db[_0x4cbb10('0x82')]['create'](_0x1fa6ff,{'raw':!![]});})[_0xb2d9aa('0x43')](function(_0x2b1177){const _0xf9880f=_0xb2d9aa;_0x168fa8['table']==='cdr'?_0x4aa689[_0xf9880f('0x57')](_0x168fa8[_0xf9880f('0x50')]+_0xf9880f('0x89'),_0x31da95[_0xf9880f('0x44')],_0x31da95[_0xf9880f('0x7a')]):_0x4aa689[_0xf9880f('0x57')](_0x168fa8[_0xf9880f('0x50')]+_0xf9880f('0x33'),_0x31da95[_0xf9880f('0x44')],_0x31da95[_0xf9880f('0x7a')]);if(_0x2b1177)return logger['info'](_0xf9880f('0x45'),_0x4aa689[_0xf9880f('0x4e')]()),require(_0xf9880f('0x3e'))[_0xf9880f('0x14')](path[_0xf9880f('0x2a')](__dirname,_0xf9880f('0xa'),_0x2b1177[_0xf9880f('0x11')]),[_0x2b1177['id'],_0x4aa689[_0xf9880f('0x4e')](),path['join'](__dirname,'../../files/reports',_0x2b1177[_0xf9880f('0x6c')]),_0x2f0e26]),_0x2b1177;else{const _0x455e91=squel[_0xf9880f('0x7e')]();return _0x455e91['from']('('+_0x4aa689[_0xf9880f('0x4e')]()+')','countTable'),_0x455e91['field'](_0xf9880f('0x3d'),'count'),_0x4aa689[_0xf9880f('0x5b')](_0x31da95[_0xf9880f('0x5b')]||_0x56dcc7),_0x4aa689[_0xf9880f('0x8b')](_0x31da95[_0xf9880f('0x8b')]||0x0),dbH['sequelize'][_0xf9880f('0x51')](_0x455e91[_0xf9880f('0x4e')](),{'type':dbH[_0xf9880f('0x6f')]['QueryTypes'][_0xf9880f('0x1e')]})[_0xf9880f('0x43')](function(_0x1fbf56){const _0x19190c=_0xf9880f;return!_0x1fbf56[_0x19190c('0x4a')]?_0xc385f9=0x0:_0xc385f9=_0x1fbf56[0x0][_0x19190c('0x8')]||0x0,dbH[_0x19190c('0x6f')][_0x19190c('0x51')](_0x4aa689['toString'](),{'type':dbH['sequelize'][_0x19190c('0x6e')]['SELECT']});})[_0xf9880f('0x43')](function(_0x2c71c6){return{'rows':_0x2c71c6||[],'count':_0xc385f9};});}});}exports['run']=function(_0x4392f2,_0x45f63b){const _0x587296=_0x473fa9;return runReport(_0x4392f2['params'],_0x4392f2[_0x587296('0x51')],_0x4392f2[_0x587296('0x3f')])[_0x587296('0x43')](respondWithResult(_0x45f63b,null))[_0x587296('0x1b')](handleError(_0x45f63b,null));},exports[_0x473fa9('0x13')]=runReport,exports[_0x473fa9('0x51')]=function(_0x5ac5dc,_0x1087ef){const _0x9058ab=_0x473fa9,_0x57cec4=0xa,_0x126528=[_0x9058ab('0x2a'),'left_join','right_join','cross_join'],_0x3a294a={'SUM':'SUM(%s)','COUNT':_0x9058ab('0x4'),'COUNT\x20DISTINCT':_0x9058ab('0x47'),'MAX':_0x9058ab('0x61'),'MIN':_0x9058ab('0x2b'),'AVG':_0x9058ab('0x4b'),'GROUP_CONCAT':_0x9058ab('0x22'),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x9058ab('0x3c')},_0x58e1b4={'SEC_TO_TIME':_0x9058ab('0x32'),'DATE':_0x9058ab('0x75'),'HOUR':'HOUR(%s)','ROUND':_0x9058ab('0x60'),'UNIX_TIMESTAMP':_0x9058ab('0x15')},_0x5dc6ee=function(_0x18f582){const _0x24530b=_0x9058ab;return!_['includes'](['IS\x20NULL','IS\x20NOT\x20NULL',_0x24530b('0x6a'),_0x24530b('0x79')],_0x18f582);},_0x3f3193=function(_0xf31c22){const _0x5de01a=_0x9058ab;if(!_0xf31c22||!_0xf31c22[_0x5de01a('0x70')][_0x5de01a('0x4a')])return'';let _0x155516='(';for(let _0xacd6f8=0x0;_0xacd6f8<_0xf31c22['rules'][_0x5de01a('0x4a')];_0xacd6f8+=0x1){_0xacd6f8>0x0&&(_0x155516+='\x20'+_0xf31c22[_0x5de01a('0x42')]+'\x20'),_0x155516+=_0xf31c22[_0x5de01a('0x70')][_0xacd6f8][_0x5de01a('0x23')]?_0x3f3193(_0xf31c22[_0x5de01a('0x70')][_0xacd6f8][_0x5de01a('0x23')]):_0xf31c22[_0x5de01a('0x70')][_0xacd6f8][_0x5de01a('0x39')]+'\x20'+_0xf31c22[_0x5de01a('0x70')][_0xacd6f8][_0x5de01a('0xb')]+(_0x5dc6ee(_0xf31c22['rules'][_0xacd6f8][_0x5de01a('0xb')])?'\x20'+_0xf31c22['rules'][_0xacd6f8][_0x5de01a('0x26')]:'');}return _0x155516+')';};let _0x569470={'where':{'id':_0x5ac5dc[_0x9058ab('0x7f')]['id']}},_0x3d5d97,_0x49296d,_0x54e769,_0x4a0de4;return _0x569470=_[_0x9058ab('0x65')]({},_0x569470,_0x5ac5dc['options']),db[_0x9058ab('0x30')][_0x9058ab('0x5f')](_0x569470)[_0x9058ab('0x43')](function(_0x22c2a9){const _0x1d9f7d=_0x9058ab;if(_0x22c2a9)return _0x3d5d97=_0x22c2a9,_0x22c2a9[_0x1d9f7d('0x20')]();return null;})[_0x9058ab('0x43')](function(_0x2b3610){const _0x452848=_0x9058ab;if(_0x2b3610){if(!_0x2b3610[_0x452848('0x4a')])throw new db[(_0x452848('0x55'))][(_0x452848('0x85'))]('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x49296d=_0x2b3610,db[_0x452848('0x25')]['findAll']({'raw':!![]});}return null;})['then'](function(_0x6ba942){const _0x509b8d=_0x9058ab;if(_0x6ba942){_0x54e769=_[_0x509b8d('0x7d')](_0x6ba942,'id');let _0x4539a0;const _0x5d9150=squel[_0x509b8d('0x7e')]();_0x5d9150[_0x509b8d('0x37')](_0x3d5d97['table']);for(let _0x15b743=0x0;_0x15b743<_0x49296d['length'];_0x15b743+=0x1){_0x4539a0=_0x49296d[_0x15b743]['MetricId']?_0x54e769[_0x49296d[_0x15b743][_0x509b8d('0x7')]][_0x509b8d('0x71')]:_0x49296d[_0x15b743][_0x509b8d('0x39')],_0x4539a0=_0x49296d[_0x15b743][_0x509b8d('0x34')]?_[_0x509b8d('0x28')](_0x3a294a[_0x49296d[_0x15b743][_0x509b8d('0x34')]],'%s',_0x4539a0):_0x4539a0,_0x4539a0=_0x49296d[_0x15b743][_0x509b8d('0x76')]?_[_0x509b8d('0x28')](_0x58e1b4[_0x49296d[_0x15b743]['format']],'%s',_0x4539a0):_0x4539a0,_0x49296d[_0x15b743][_0x509b8d('0x2f')]&&_0x5d9150[_0x509b8d('0x23')](_0x4539a0),_0x49296d[_0x15b743][_0x509b8d('0x4f')]&&_0x5d9150[_0x509b8d('0x53')](_0x4539a0,_0x49296d[_0x15b743][_0x509b8d('0x4f')]===_0x509b8d('0x52')?![]:!![]),_0x5d9150[_0x509b8d('0x39')](_0x4539a0,_0x49296d[_0x15b743]['alias']||_0x4539a0);}if(_0x3d5d97[_0x509b8d('0x4d')]){_0x3d5d97[_0x509b8d('0x4d')]=JSON[_0x509b8d('0x35')](_0x3d5d97['joins']);for(let _0x4b26df=0x0;_0x4b26df<_0x3d5d97['joins']['length'];_0x4b26df+=0x1){_0x3d5d97[_0x509b8d('0x4d')][_0x4b26df][_0x509b8d('0x3b')]&&_[_0x509b8d('0x21')](_0x126528,_0x3d5d97[_0x509b8d('0x4d')][_0x4b26df]['type'])&&_0x3d5d97[_0x509b8d('0x4d')][_0x4b26df][_0x509b8d('0x24')]&&_0x3d5d97[_0x509b8d('0x4d')][_0x4b26df][_0x509b8d('0x3a')]&&_0x3d5d97['joins'][_0x4b26df]['foreignKey']&&_0x5d9150[_0x3d5d97['joins'][_0x4b26df]['type']](_0x3d5d97['joins'][_0x4b26df][_0x509b8d('0x3a')],null,util[_0x509b8d('0x76')](_0x509b8d('0x72'),_0x3d5d97[_0x509b8d('0x50')],_0x3d5d97[_0x509b8d('0x4d')][_0x4b26df][_0x509b8d('0x24')],_0x3d5d97['joins'][_0x4b26df][_0x509b8d('0x3a')],_0x3d5d97[_0x509b8d('0x4d')][_0x4b26df][_0x509b8d('0x29')]));}}return _0x3d5d97[_0x509b8d('0x68')]&&(_0x3d5d97[_0x509b8d('0x68')]=JSON[_0x509b8d('0x35')](_0x3d5d97[_0x509b8d('0x68')]),_0x5d9150['where'](_0x3f3193(_0x3d5d97[_0x509b8d('0x68')][_0x509b8d('0x23')]))),_0x4a0de4=_0x5d9150['clone'](),_0x5d9150[_0x509b8d('0x5b')](_0x57cec4),_0x5d9150[_0x509b8d('0x8b')](0x0),logger[_0x509b8d('0x87')](_0x509b8d('0x10'),_0x5d9150[_0x509b8d('0x4e')]()),db[_0x509b8d('0x6f')][_0x509b8d('0x51')](_0x5d9150[_0x509b8d('0x4e')](),{'type':db[_0x509b8d('0x6f')]['QueryTypes']['SELECT']});}})[_0x9058ab('0x43')](function(){const _0x5b0572=_0x9058ab;return{'sql':_0x4a0de4[_0x5b0572('0x4e')]()};})['then'](respondWithResult(_0x1087ef,null))[_0x9058ab('0x1b')](handleError(_0x1087ef,null));}; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.model.js b/server/api/analyticCustomReport/analyticCustomReport.model.js index 8c08b41..ce875d3 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.model.js +++ b/server/api/analyticCustomReport/analyticCustomReport.model.js @@ -1 +1 @@ -const a6_0x3beb=['./analyticCustomReport.attributes','exports','define','analytics_custom_reports'];(function(_0x34a2f7,_0x3beb4c){const _0x16285e=function(_0x2ac039){while(--_0x2ac039){_0x34a2f7['push'](_0x34a2f7['shift']());}};_0x16285e(++_0x3beb4c);}(a6_0x3beb,0x13f));const a6_0x1628=function(_0x34a2f7,_0x3beb4c){_0x34a2f7=_0x34a2f7-0x0;let _0x16285e=a6_0x3beb[_0x34a2f7];return _0x16285e;};const _0x59dee6=a6_0x1628;'use strict';const attributes=require(_0x59dee6('0x1'));module[_0x59dee6('0x2')]=function(_0x2ac039){const _0xecca90=_0x59dee6,_0x9d3b25=_0x2ac039[_0xecca90('0x3')]('AnalyticCustomReport',attributes,{'tableName':_0xecca90('0x0'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0x9d3b25;}; \ No newline at end of file +const a6_0x1525=['exports','AnalyticCustomReport','./analyticCustomReport.attributes'];(function(_0x4989b4,_0x15259b){const _0x234390=function(_0x5ac47e){while(--_0x5ac47e){_0x4989b4['push'](_0x4989b4['shift']());}};_0x234390(++_0x15259b);}(a6_0x1525,0x1d8));const a6_0x2343=function(_0x4989b4,_0x15259b){_0x4989b4=_0x4989b4-0x0;let _0x234390=a6_0x1525[_0x4989b4];return _0x234390;};const _0x106000=a6_0x2343;'use strict';const attributes=require(_0x106000('0x1'));module[_0x106000('0x2')]=function(_0x5ac47e){const _0x198a7b=_0x106000,_0x4d33a8=_0x5ac47e['define'](_0x198a7b('0x0'),attributes,{'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]});return _0x4d33a8;}; \ No newline at end of file diff --git a/server/api/analyticCustomReport/index.js b/server/api/analyticCustomReport/index.js index a847c15..c9c45fc 100644 --- a/server/api/analyticCustomReport/index.js +++ b/server/api/analyticCustomReport/index.js @@ -1 +1 @@ -const a7_0x4ecb=['destroy','exports','Router','run','get','post','./analyticCustomReport.controller','put','/:id/preview','../../components/auth/service','query','index','delete','preview','/:id','/:id/query','isAuthenticated'];(function(_0x208dd2,_0x4ecb47){const _0x57fbe1=function(_0x5ad15e){while(--_0x5ad15e){_0x208dd2['push'](_0x208dd2['shift']());}};_0x57fbe1(++_0x4ecb47);}(a7_0x4ecb,0x141));const a7_0x57fb=function(_0x208dd2,_0x4ecb47){_0x208dd2=_0x208dd2-0x0;let _0x57fbe1=a7_0x4ecb[_0x208dd2];return _0x57fbe1;};const _0x1af3d2=a7_0x57fb;'use strict';const express=require('express'),router=express[_0x1af3d2('0x4')](),auth=require(_0x1af3d2('0xb')),controller=require(_0x1af3d2('0x8'));router['get']('/',auth[_0x1af3d2('0x1')](),controller[_0x1af3d2('0xd')]),router[_0x1af3d2('0x6')](_0x1af3d2('0x10'),auth[_0x1af3d2('0x1')](),controller['show']),router[_0x1af3d2('0x6')](_0x1af3d2('0xa'),auth[_0x1af3d2('0x1')](),controller[_0x1af3d2('0xf')]),router['get']('/:id/run',auth[_0x1af3d2('0x1')](),controller[_0x1af3d2('0x5')]),router['get'](_0x1af3d2('0x0'),auth[_0x1af3d2('0x1')](),controller[_0x1af3d2('0xc')]),router[_0x1af3d2('0x7')]('/',auth[_0x1af3d2('0x1')](),controller['create']),router[_0x1af3d2('0x9')](_0x1af3d2('0x10'),auth[_0x1af3d2('0x1')](),controller['update']),router[_0x1af3d2('0xe')]('/:id',auth[_0x1af3d2('0x1')](),controller[_0x1af3d2('0x2')]),module[_0x1af3d2('0x3')]=router; \ No newline at end of file +const a7_0x521f=['destroy','Router','delete','query','express','isAuthenticated','post','/:id/query','preview','/:id/run','show','get','/:id','update','./analyticCustomReport.controller','run','/:id/preview'];(function(_0x334d84,_0x521f27){const _0xd59770=function(_0x37d6fd){while(--_0x37d6fd){_0x334d84['push'](_0x334d84['shift']());}};_0xd59770(++_0x521f27);}(a7_0x521f,0x153));const a7_0xd597=function(_0x334d84,_0x521f27){_0x334d84=_0x334d84-0x0;let _0xd59770=a7_0x521f[_0x334d84];return _0xd59770;};const _0xc377cd=a7_0xd597;'use strict';const express=require(_0xc377cd('0x5')),router=express[_0xc377cd('0x2')](),auth=require('../../components/auth/service'),controller=require(_0xc377cd('0xf'));router[_0xc377cd('0xc')]('/',auth['isAuthenticated'](),controller['index']),router[_0xc377cd('0xc')](_0xc377cd('0xd'),auth[_0xc377cd('0x6')](),controller[_0xc377cd('0xb')]),router[_0xc377cd('0xc')](_0xc377cd('0x0'),auth[_0xc377cd('0x6')](),controller[_0xc377cd('0x9')]),router[_0xc377cd('0xc')](_0xc377cd('0xa'),auth[_0xc377cd('0x6')](),controller[_0xc377cd('0x10')]),router['get'](_0xc377cd('0x8'),auth['isAuthenticated'](),controller[_0xc377cd('0x4')]),router[_0xc377cd('0x7')]('/',auth[_0xc377cd('0x6')](),controller['create']),router['put'](_0xc377cd('0xd'),auth[_0xc377cd('0x6')](),controller[_0xc377cd('0xe')]),router[_0xc377cd('0x3')](_0xc377cd('0xd'),auth['isAuthenticated'](),controller[_0xc377cd('0x1')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js index 1e1f4a8..29ba16a 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js @@ -1 +1 @@ -const a8_0x34b3=['TEXT','STRING','sequelize'];(function(_0x1e1be3,_0x34b3d2){const _0xed988d=function(_0x1005fc){while(--_0x1005fc){_0x1e1be3['push'](_0x1e1be3['shift']());}};_0xed988d(++_0x34b3d2);}(a8_0x34b3,0x1d3));const a8_0xed98=function(_0x1e1be3,_0x34b3d2){_0x1e1be3=_0x1e1be3-0x0;let _0xed988d=a8_0x34b3[_0x1e1be3];return _0xed988d;};const _0x5c395d=a8_0xed98;'use strict';const Sequelize=require(_0x5c395d('0x0'));module['exports']={'name':{'type':Sequelize[_0x5c395d('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x5c395d('0x2')]},'parent':{'type':Sequelize[_0x5c395d('0x2')]},'table':{'type':Sequelize[_0x5c395d('0x2')]},'conditions':{'type':Sequelize[_0x5c395d('0x1')]},'joins':{'type':Sequelize[_0x5c395d('0x1')]}}; \ No newline at end of file +const a8_0x2409=['TEXT','STRING','sequelize','exports'];(function(_0x1bbd15,_0x2409dc){const _0x29d936=function(_0x333f6f){while(--_0x333f6f){_0x1bbd15['push'](_0x1bbd15['shift']());}};_0x29d936(++_0x2409dc);}(a8_0x2409,0x199));const a8_0x29d9=function(_0x1bbd15,_0x2409dc){_0x1bbd15=_0x1bbd15-0x0;let _0x29d936=a8_0x2409[_0x1bbd15];return _0x29d936;};const _0x3c03b9=a8_0x29d9;'use strict';const Sequelize=require(_0x3c03b9('0x1'));module[_0x3c03b9('0x2')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x3c03b9('0x0')]},'parent':{'type':Sequelize['STRING']},'table':{'type':Sequelize[_0x3c03b9('0x0')]},'conditions':{'type':Sequelize[_0x3c03b9('0x3')]},'joins':{'type':Sequelize[_0x3c03b9('0x3')]}}; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js index f09a65e..ab4c28f 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js @@ -1 +1 @@ -const a9_0x5dff=['Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','startDate','options','api','keys','status','name','ValidationErrorItem','web','function','HOUR(%s)','../../components/parsers/qs','group','../../components/export/','order','orderBy','fields','AnalyticExtractedReport','create','sort','attributes','IS\x20EMPTY','../../mysqldb','fork','left_join','%s.%s\x20=\x20%s.%s','body','DESC','pick','runReport','GROUP_CONCAT(%s)','AnalyticMetric','ROUND(%s)','child_process','offset','Run\x20Query:','getFields','where','catch','user','index','send','includes','SUM(%s)','map','end','lodash','endDate','cross_join','groupBy','from','keyBy','length','Reports','generate','parentKey','QueryTypes','filter','AnalyticDefaultReport','fieldName','IS\x20NULL','Sequelize','field','count','metric','sequelize','path','alias','clone','join','get','IS\x20NOT\x20EMPTY','operator','preview','query','info','findAll','conditions','SEC_TO_TIME(%s)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','output','UNIX_TIMESTAMP(%s)','Unable\x20to\x20retrieve\x20the\x20current\x20user','squel','rows','sendStatus','json','value','right_join','fullPath','show','merge','intersection','../../config/logger','UserProfileResource','foreignKey','rawAttributes','debug','model','MetricId','UserProfileSection','.calldate\x20BETWEEN\x20?\x20AND\x20?','table','include','DATE(%s)','userProfileId','update','COUNT(DISTINCT\x20%s)','countTable','foreignTable','joins','findOne','DefaultReports','dbH','then','format','params','autoAssociation','randomstring','destroy','csv','limit','parse','type','replace','COUNT(%s)','.createdAt\x20BETWEEN\x20?\x20AND\x20?','rules','savename','AVG(%s)','select','error','Please\x20insert\x20at\x20least\x20one\x20field','MAX(%s)','IS\x20NOT\x20NULL','SELECT','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','condition','Limited\x20Query:','toString','filters'];(function(_0x520a06,_0x5dff73){const _0x213a28=function(_0x4322a0){while(--_0x4322a0){_0x520a06['push'](_0x520a06['shift']());}};_0x213a28(++_0x5dff73);}(a9_0x5dff,0x131));const a9_0x213a=function(_0x520a06,_0x5dff73){_0x520a06=_0x520a06-0x0;let _0x213a28=a9_0x5dff[_0x520a06];return _0x213a28;};const _0x51f089=a9_0x213a;'use strict';const util=require('util'),path=require(_0x51f089('0x2b')),_=require(_0x51f089('0x17')),squel=require(_0x51f089('0x3c')),qs=require(_0x51f089('0x81')),logger=require(_0x51f089('0x46'))(_0x51f089('0x79')),db=require(_0x51f089('0x8c'))['db'],dbH=require('../../mysqldb')[_0x51f089('0x5a')],{Op}=require(_0x51f089('0x2a'));function respondWithResult(_0x4322a0,_0x7d6133){return _0x7d6133=_0x7d6133||0xc8,function(_0x5885f7){const _0x23eb61=a9_0x213a;if(_0x5885f7)return _0x4322a0[_0x23eb61('0x7b')](_0x7d6133)[_0x23eb61('0x3f')](_0x5885f7);};}function respondWithFilteredResult(_0x279bc7,_0x4dd5da){return function(_0x12dc54){const _0x3768a7=a9_0x213a;if(_0x12dc54){const _0x29e535=_0x12dc54[_0x3768a7('0x28')],_0x2f094e=_0x4dd5da[_0x3768a7('0xb')];let _0x2fcdec=_0x4dd5da[_0x3768a7('0xb')]+_0x4dd5da['limit'],_0x337ca0;return _0x2fcdec>=_0x29e535?(_0x2fcdec=_0x29e535,_0x337ca0=0xc8):_0x337ca0=0xce,_0x279bc7[_0x3768a7('0x7b')](_0x337ca0),_0x279bc7['set']('Content-Range',_0x2f094e+'-'+_0x2fcdec+'/'+_0x29e535)['json'](_0x12dc54);}return null;};}function saveUpdates(_0x1a8a3f){return function(_0x34d20d){const _0x5e172a=a9_0x213a;if(_0x34d20d)return _0x34d20d[_0x5e172a('0x53')](_0x1a8a3f)[_0x5e172a('0x5b')](function(_0x13058f){return _0x13058f;});return null;};}function removeEntity(_0x1d9e4f){return function(_0x47425e){const _0x55d124=a9_0x213a;if(_0x47425e)return _0x47425e[_0x55d124('0x60')]()[_0x55d124('0x5b')](function(){const _0x5d8763=_0x55d124,_0xb19194=_0x47425e['get']({'plain':!![]}),_0x4b3854=_0x5d8763('0x59');return db[_0x5d8763('0x47')]['destroy']({'where':{'type':_0x4b3854,'resourceId':_0xb19194['id']}})['then'](function(){return _0x47425e;});})[_0x55d124('0x5b')](function(){const _0x4efd1a=_0x55d124;_0x1d9e4f[_0x4efd1a('0x7b')](0xcc)[_0x4efd1a('0x16')]();});};}function handleEntityNotFound(_0x3d58e0){return function(_0x3e3df1){const _0x32c0e1=a9_0x213a;return!_0x3e3df1&&_0x3d58e0[_0x32c0e1('0x3e')](0x194),_0x3e3df1;};}function handleError(_0x50e138,_0x33ba73){return _0x33ba73=_0x33ba73||0x1f4,function(_0x150dd4){const _0x46dd2f=a9_0x213a;logger[_0x46dd2f('0x6c')](_0x150dd4['stack']),_0x150dd4[_0x46dd2f('0x7c')]&&delete _0x150dd4['name'],_0x50e138[_0x46dd2f('0x7b')](_0x33ba73)[_0x46dd2f('0x12')](_0x150dd4);};}exports[_0x51f089('0x11')]=function(_0x2b2952,_0x32f483){const _0x249d26=_0x51f089;let _0xc9e467={};const _0xc03385={},_0x20328c={'count':0x0,'rows':[]},_0x1d5055=_[_0x249d26('0x15')](db['AnalyticDefaultReport'][_0x249d26('0x49')],function(_0x15f1f6){const _0x24436e=_0x249d26;return{'name':_0x15f1f6[_0x24436e('0x24')],'type':_0x15f1f6[_0x24436e('0x64')]['key']};});_0xc03385[_0x249d26('0x4b')]=_[_0x249d26('0x15')](_0x1d5055,_0x249d26('0x7c')),_0xc03385[_0x249d26('0x33')]=_[_0x249d26('0x7a')](_0x2b2952[_0x249d26('0x33')]),_0xc03385[_0x249d26('0x75')]=_[_0x249d26('0x45')](_0xc03385[_0x249d26('0x4b')],_0xc03385[_0x249d26('0x33')]),_0xc9e467[_0x249d26('0x8a')]=_['intersection'](_0xc03385[_0x249d26('0x4b')],qs['fields'](_0x2b2952['query']['fields'])),_0xc9e467[_0x249d26('0x8a')]=_0xc9e467[_0x249d26('0x8a')][_0x249d26('0x1d')]?_0xc9e467[_0x249d26('0x8a')]:_0xc03385['model'];typeof _0x2b2952[_0x249d26('0x33')]['nolimit']==='undefined'&&(_0xc9e467[_0x249d26('0x62')]=qs[_0x249d26('0x62')](_0x2b2952[_0x249d26('0x33')]['limit']),_0xc9e467[_0x249d26('0xb')]=qs[_0x249d26('0xb')](_0x2b2952[_0x249d26('0x33')][_0x249d26('0xb')]));_0xc9e467[_0x249d26('0x84')]=qs['sort'](_0x2b2952[_0x249d26('0x33')][_0x249d26('0x89')]),_0xc9e467[_0x249d26('0xe')]=qs[_0x249d26('0x75')](_[_0x249d26('0x5')](_0x2b2952[_0x249d26('0x33')],_0xc03385[_0x249d26('0x75')]),_0x1d5055);_0x2b2952[_0x249d26('0x33')]['filter']&&(_0xc9e467['where']=_[_0x249d26('0x44')](_0xc9e467[_0x249d26('0xe')],{[Op['or']]:_[_0x249d26('0x15')](_0x1d5055,function(_0x1d801f){const _0x528d15=_0x249d26;if(_0x1d801f['type']!=='VIRTUAL'){const _0x4f0ace={};return _0x4f0ace[_0x1d801f[_0x528d15('0x7c')]]={[Op['like']]:'%'+_0x2b2952[_0x528d15('0x33')][_0x528d15('0x22')]+'%'},_0x4f0ace;}})}));_0xc9e467=_['merge']({},_0xc9e467,_0x2b2952[_0x249d26('0x78')]);const _0x30a950={'where':_0xc9e467[_0x249d26('0xe')]};return db[_0x249d26('0x23')][_0x249d26('0x28')](_0x30a950)[_0x249d26('0x5b')](function(_0x2d65fe){const _0x286b73=_0x249d26;return _0x20328c[_0x286b73('0x28')]=_0x2d65fe,_0x2b2952[_0x286b73('0x33')]['includeAll']&&(_0xc9e467[_0x286b73('0x50')]=[{'all':!![]}]),db[_0x286b73('0x23')][_0x286b73('0x35')](_0xc9e467);})[_0x249d26('0x5b')](function(_0x48c2d3){const _0x4e3087=_0x249d26;return _0x20328c[_0x4e3087('0x3d')]=_0x48c2d3,_0x20328c;})['then'](respondWithFilteredResult(_0x32f483,_0xc9e467))[_0x249d26('0xf')](handleError(_0x32f483,null));},exports[_0x51f089('0x43')]=function(_0x4955c0,_0x38e96a){const _0x3c2dd9=_0x51f089;let _0x3412c8={'raw':!![],'where':{'id':_0x4955c0['params']['id']}};const _0x16f2e2={};return _0x16f2e2[_0x3c2dd9('0x4b')]=_[_0x3c2dd9('0x7a')](db[_0x3c2dd9('0x23')][_0x3c2dd9('0x49')]),_0x16f2e2['query']=_[_0x3c2dd9('0x7a')](_0x4955c0['query']),_0x16f2e2[_0x3c2dd9('0x75')]=_[_0x3c2dd9('0x45')](_0x16f2e2[_0x3c2dd9('0x4b')],_0x16f2e2[_0x3c2dd9('0x33')]),_0x3412c8[_0x3c2dd9('0x8a')]=_[_0x3c2dd9('0x45')](_0x16f2e2[_0x3c2dd9('0x4b')],qs['fields'](_0x4955c0[_0x3c2dd9('0x33')][_0x3c2dd9('0x86')])),_0x3412c8[_0x3c2dd9('0x8a')]=_0x3412c8[_0x3c2dd9('0x8a')]['length']?_0x3412c8[_0x3c2dd9('0x8a')]:_0x16f2e2[_0x3c2dd9('0x4b')],_0x4955c0[_0x3c2dd9('0x33')]['includeAll']&&(_0x3412c8[_0x3c2dd9('0x50')]=[{'all':!![]}]),_0x3412c8=_['merge']({},_0x3412c8,_0x4955c0['options']),db[_0x3c2dd9('0x23')][_0x3c2dd9('0x58')](_0x3412c8)['then'](handleEntityNotFound(_0x38e96a,null))[_0x3c2dd9('0x5b')](respondWithResult(_0x38e96a,null))[_0x3c2dd9('0xf')](handleError(_0x38e96a,null));},exports['create']=function(_0x15e5ce,_0x40313e){const _0x440064=_0x51f089;return db[_0x440064('0x23')][_0x440064('0x88')](_0x15e5ce['body'],{})['then'](function(_0x4acd82){const _0x4a7220=_0x440064,_0x38d7a7=_0x15e5ce['user'][_0x4a7220('0x2f')]({'plain':!![]});if(!_0x38d7a7)throw new Error(_0x4a7220('0x3b'));if(_0x38d7a7['role']===_0x4a7220('0x10')){const _0x3ddc8c=_0x4acd82[_0x4a7220('0x2f')]({'plain':!![]}),_0x5da181=_0x4a7220('0x1e');return db[_0x4a7220('0x4d')][_0x4a7220('0x58')]({'where':{'name':_0x5da181,'userProfileId':_0x38d7a7[_0x4a7220('0x52')]},'raw':!![]})[_0x4a7220('0x5b')](function(_0x4256d6){const _0x37c833=_0x4a7220;return _0x4256d6&&_0x4256d6[_0x37c833('0x5e')]===0x0?db[_0x37c833('0x47')]['create']({'name':_0x3ddc8c[_0x37c833('0x7c')],'resourceId':_0x3ddc8c['id'],'type':_0x37c833('0x59'),'sectionId':_0x4256d6['id']},{})[_0x37c833('0x5b')](function(){return _0x4acd82;}):_0x4acd82;})['catch'](function(_0x6d80bd){const _0x12daee=_0x4a7220;logger[_0x12daee('0x6c')](_0x12daee('0x76'),_0x6d80bd);throw _0x6d80bd;});}return _0x4acd82;})[_0x440064('0x5b')](respondWithResult(_0x40313e,0xc9))[_0x440064('0xf')](handleError(_0x40313e,null));},exports['update']=function(_0x107907,_0x4b433b){const _0x4b9193=_0x51f089;return _0x107907[_0x4b9193('0x3')]['id']&&delete _0x107907[_0x4b9193('0x3')]['id'],db['AnalyticDefaultReport'][_0x4b9193('0x58')]({'where':{'id':_0x107907[_0x4b9193('0x5d')]['id']}})[_0x4b9193('0x5b')](handleEntityNotFound(_0x4b433b,null))['then'](saveUpdates(_0x107907[_0x4b9193('0x3')],null))[_0x4b9193('0x5b')](respondWithResult(_0x4b433b,null))['catch'](handleError(_0x4b433b,null));},exports[_0x51f089('0x60')]=function(_0x405e62,_0x3eb345){const _0x46295d=_0x51f089;return db[_0x46295d('0x23')][_0x46295d('0x58')]({'where':{'id':_0x405e62[_0x46295d('0x5d')]['id']}})['then'](handleEntityNotFound(_0x3eb345,null))[_0x46295d('0x5b')](removeEntity(_0x3eb345,null))[_0x46295d('0xf')](handleError(_0x3eb345,null));},exports[_0x51f089('0x32')]=function(_0xa9b9d8,_0x522331){const _0xbb17b3=_0x51f089,_0x506a2a=0xa,_0x1a2cc3=[_0xbb17b3('0x2e'),_0xbb17b3('0x1'),_0xbb17b3('0x41'),'cross_join'],_0x422977={'SUM':_0xbb17b3('0x14'),'COUNT':'COUNT(%s)','COUNT\x20DISTINCT':_0xbb17b3('0x54'),'MAX':_0xbb17b3('0x6e'),'MIN':'MIN(%s)','AVG':_0xbb17b3('0x6a'),'GROUP_CONCAT':_0xbb17b3('0x7'),'GROUP_CONCAT\x20ASC':_0xbb17b3('0x71'),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x16199f={'SEC_TO_TIME':_0xbb17b3('0x37'),'DATE':_0xbb17b3('0x51'),'HOUR':_0xbb17b3('0x80'),'ROUND':_0xbb17b3('0x9'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x50815a=function(_0x397617){const _0x28839e=_0xbb17b3;return!_[_0x28839e('0x13')]([_0x28839e('0x25'),_0x28839e('0x6f'),'IS\x20EMPTY',_0x28839e('0x30')],_0x397617);},_0x167bc9=function(_0x5c9c06){const _0x3a6071=_0xbb17b3;if(!_0x5c9c06||!_0x5c9c06['rules'][_0x3a6071('0x1d')])return'';let _0x62a2b9='(';for(let _0x58b97b=0x0;_0x58b97b<_0x5c9c06['rules'][_0x3a6071('0x1d')];_0x58b97b+=0x1){_0x58b97b>0x0&&(_0x62a2b9+='\x20'+_0x5c9c06[_0x3a6071('0x31')]+'\x20'),_0x62a2b9+=_0x5c9c06['rules'][_0x58b97b][_0x3a6071('0x82')]?_0x167bc9(_0x5c9c06[_0x3a6071('0x68')][_0x58b97b]['group']):_0x5c9c06[_0x3a6071('0x68')][_0x58b97b][_0x3a6071('0x27')]+'\x20'+_0x5c9c06[_0x3a6071('0x68')][_0x58b97b][_0x3a6071('0x72')]+(_0x50815a(_0x5c9c06['rules'][_0x58b97b][_0x3a6071('0x72')])?'\x20'+_0x5c9c06[_0x3a6071('0x68')][_0x58b97b][_0x3a6071('0x40')]:'');}return _0x62a2b9+')';};let _0x1ec49b={'where':{'id':_0xa9b9d8[_0xbb17b3('0x5d')]['id']}},_0x3e7395,_0x36f78c,_0xd591cf;return _0x1ec49b=_[_0xbb17b3('0x44')]({},_0x1ec49b,_0xa9b9d8[_0xbb17b3('0x78')]),db['AnalyticDefaultReport'][_0xbb17b3('0x58')](_0x1ec49b)[_0xbb17b3('0x5b')](function(_0x48e873){const _0x2785d0=_0xbb17b3;if(_0x48e873)return _0x3e7395=_0x48e873,_0x48e873[_0x2785d0('0xd')]();return null;})[_0xbb17b3('0x5b')](function(_0x189fa2){const _0x396a42=_0xbb17b3;if(_0x189fa2){if(!_0x189fa2[_0x396a42('0x1d')])throw new db[(_0x396a42('0x26'))][(_0x396a42('0x7d'))](_0x396a42('0x6d'),0x193);return _0x36f78c=_0x189fa2,db[_0x396a42('0x8')]['findAll']({'raw':!![]});}return null;})['then'](function(_0x1dff47){const _0x29b0cd=_0xbb17b3;if(_0x1dff47){_0xd591cf=_[_0x29b0cd('0x1c')](_0x1dff47,'id');let _0x33c41d;const _0x4b38c8=squel[_0x29b0cd('0x6b')]();_0x4b38c8[_0x29b0cd('0x1b')](_0x3e7395[_0x29b0cd('0x4f')]);for(let _0x52c0f1=0x0;_0x52c0f1<_0x36f78c['length'];_0x52c0f1+=0x1){_0x33c41d=_0x36f78c[_0x52c0f1][_0x29b0cd('0x4c')]?_0xd591cf[_0x36f78c[_0x52c0f1][_0x29b0cd('0x4c')]]['metric']:_0x36f78c[_0x52c0f1][_0x29b0cd('0x27')],_0x33c41d=_0x36f78c[_0x52c0f1]['function']?_[_0x29b0cd('0x65')](_0x422977[_0x36f78c[_0x52c0f1][_0x29b0cd('0x7f')]],'%s',_0x33c41d):_0x33c41d,_0x33c41d=_0x36f78c[_0x52c0f1][_0x29b0cd('0x5c')]?_[_0x29b0cd('0x65')](_0x16199f[_0x36f78c[_0x52c0f1][_0x29b0cd('0x5c')]],'%s',_0x33c41d):_0x33c41d,_0x36f78c[_0x52c0f1][_0x29b0cd('0x1a')]&&_0x4b38c8['group'](_0x33c41d),_0x36f78c[_0x52c0f1][_0x29b0cd('0x85')]&&_0x4b38c8[_0x29b0cd('0x84')](_0x33c41d,_0x36f78c[_0x52c0f1]['orderBy']===_0x29b0cd('0x4')?![]:!![]),_0x4b38c8[_0x29b0cd('0x27')](_0x33c41d,_0x36f78c[_0x52c0f1][_0x29b0cd('0x2c')]||_0x33c41d);}if(_0x3e7395[_0x29b0cd('0x57')]){_0x3e7395[_0x29b0cd('0x57')]=JSON[_0x29b0cd('0x63')](_0x3e7395[_0x29b0cd('0x57')]);for(let _0x515915=0x0;_0x515915<_0x3e7395[_0x29b0cd('0x57')][_0x29b0cd('0x1d')];_0x515915+=0x1){_0x3e7395[_0x29b0cd('0x57')][_0x515915][_0x29b0cd('0x64')]&&_[_0x29b0cd('0x13')](_0x1a2cc3,_0x3e7395[_0x29b0cd('0x57')][_0x515915][_0x29b0cd('0x64')])&&_0x3e7395[_0x29b0cd('0x57')][_0x515915][_0x29b0cd('0x20')]&&_0x3e7395[_0x29b0cd('0x57')][_0x515915]['foreignTable']&&_0x3e7395[_0x29b0cd('0x57')][_0x515915]['foreignKey']&&_0x4b38c8[_0x3e7395['joins'][_0x515915][_0x29b0cd('0x64')]](_0x3e7395[_0x29b0cd('0x57')][_0x515915][_0x29b0cd('0x56')],null,util[_0x29b0cd('0x5c')](_0x29b0cd('0x2'),_0x3e7395[_0x29b0cd('0x4f')],_0x3e7395[_0x29b0cd('0x57')][_0x515915][_0x29b0cd('0x20')],_0x3e7395[_0x29b0cd('0x57')][_0x515915]['foreignTable'],_0x3e7395['joins'][_0x515915][_0x29b0cd('0x48')]));}}return _0x3e7395[_0x29b0cd('0x36')]&&(_0x3e7395[_0x29b0cd('0x36')]=JSON[_0x29b0cd('0x63')](_0x3e7395[_0x29b0cd('0x36')]),_0x4b38c8[_0x29b0cd('0xe')](_0x167bc9(_0x3e7395[_0x29b0cd('0x36')]['group']))),_0x4b38c8[_0x29b0cd('0x62')](_0x506a2a),_0x4b38c8[_0x29b0cd('0xb')](0x0),logger[_0x29b0cd('0x4a')]('Limited\x20Query:',_0x4b38c8[_0x29b0cd('0x74')]()),db[_0x29b0cd('0x2a')][_0x29b0cd('0x33')](_0x4b38c8[_0x29b0cd('0x74')](),{'type':db['sequelize'][_0x29b0cd('0x21')][_0x29b0cd('0x70')]});}})[_0xbb17b3('0x5b')](respondWithResult(_0x522331,null))[_0xbb17b3('0xf')](handleError(_0x522331,null));};function runReport(_0x5f47e4,_0x2761c9,_0x4bd1ee){const _0x3f71ab=_0x51f089,_0x596ea9=_0x2761c9[_0x3f71ab('0x7c')],_0x1058ee=0xa,_0xfd3be1=[_0x3f71ab('0x2e'),_0x3f71ab('0x1'),_0x3f71ab('0x41'),_0x3f71ab('0x19')],_0x1c3881={'SUM':_0x3f71ab('0x14'),'COUNT':_0x3f71ab('0x66'),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x3f71ab('0x6e'),'MIN':'MIN(%s)','AVG':_0x3f71ab('0x6a'),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':_0x3f71ab('0x71'),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x3773ca={'SEC_TO_TIME':_0x3f71ab('0x37'),'DATE':_0x3f71ab('0x51'),'HOUR':_0x3f71ab('0x80'),'ROUND':_0x3f71ab('0x9'),'UNIX_TIMESTAMP':_0x3f71ab('0x3a')},_0xf02c58=function(_0x4465cf){const _0x20a914=_0x3f71ab;return!_[_0x20a914('0x13')]([_0x20a914('0x25'),_0x20a914('0x6f'),'IS\x20EMPTY','IS\x20NOT\x20EMPTY'],_0x4465cf);},_0x1c69bd=function(_0x6a16f0){const _0x333e5e=_0x3f71ab;if(!_0x6a16f0||!_0x6a16f0[_0x333e5e('0x68')][_0x333e5e('0x1d')])return'';let _0x5584ca='(';for(let _0x5ac0e7=0x0;_0x5ac0e7<_0x6a16f0[_0x333e5e('0x68')]['length'];_0x5ac0e7+=0x1){_0x5ac0e7>0x0&&(_0x5584ca+='\x20'+_0x6a16f0[_0x333e5e('0x31')]+'\x20'),_0x5584ca+=_0x6a16f0['rules'][_0x5ac0e7][_0x333e5e('0x82')]?_0x1c69bd(_0x6a16f0[_0x333e5e('0x68')][_0x5ac0e7]['group']):_0x6a16f0[_0x333e5e('0x68')][_0x5ac0e7][_0x333e5e('0x27')]+'\x20'+_0x6a16f0[_0x333e5e('0x68')][_0x5ac0e7][_0x333e5e('0x72')]+(_0xf02c58(_0x6a16f0[_0x333e5e('0x68')][_0x5ac0e7][_0x333e5e('0x72')])?'\x20'+_0x6a16f0[_0x333e5e('0x68')][_0x5ac0e7][_0x333e5e('0x40')]:'');}return _0x5584ca+')';};let _0x1ffd11={'where':{'id':_0x5f47e4['id']}},_0x395e2c,_0x3cdf5c,_0x582cd3,_0x2452b0,_0x2323cf;return _0x1ffd11=_[_0x3f71ab('0x44')]({},_0x1ffd11,_0x4bd1ee),db[_0x3f71ab('0x23')][_0x3f71ab('0x58')](_0x1ffd11)[_0x3f71ab('0x5b')](function(_0x31159f){if(_0x31159f)return _0x395e2c=_0x31159f,_0x31159f['getFields']();return null;})['then'](function(_0x3b853c){const _0x175ce2=_0x3f71ab;if(_0x3b853c){if(!_0x3b853c[_0x175ce2('0x1d')])throw new db['Sequelize']['ValidationErrorItem']('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x3cdf5c=_0x3b853c,db[_0x175ce2('0x8')][_0x175ce2('0x35')]({'raw':!![]});}return null;})[_0x3f71ab('0x5b')](function(_0x45d048){const _0xac429b=_0x3f71ab;if(_0x45d048){_0x582cd3=_[_0xac429b('0x1c')](_0x45d048,'id');let _0x3a5658;const _0x2998e2=squel['select']();_0x2998e2['from'](_0x395e2c[_0xac429b('0x4f')]);for(let _0x46a99b=0x0;_0x46a99b<_0x3cdf5c[_0xac429b('0x1d')];_0x46a99b+=0x1){_0x3a5658=_0x3cdf5c[_0x46a99b][_0xac429b('0x4c')]?_0x582cd3[_0x3cdf5c[_0x46a99b]['MetricId']][_0xac429b('0x29')]:_0x3cdf5c[_0x46a99b][_0xac429b('0x27')],_0x3a5658=_0x3cdf5c[_0x46a99b][_0xac429b('0x7f')]?_[_0xac429b('0x65')](_0x1c3881[_0x3cdf5c[_0x46a99b][_0xac429b('0x7f')]],'%s',_0x3a5658):_0x3a5658,_0x3a5658=_0x3cdf5c[_0x46a99b]['format']?_[_0xac429b('0x65')](_0x3773ca[_0x3cdf5c[_0x46a99b][_0xac429b('0x5c')]],'%s',_0x3a5658):_0x3a5658,_0x3cdf5c[_0x46a99b]['groupBy']&&_0x2998e2['group'](_0x3a5658),_0x3cdf5c[_0x46a99b][_0xac429b('0x85')]&&_0x2998e2['order'](_0x3a5658,_0x3cdf5c[_0x46a99b][_0xac429b('0x85')]===_0xac429b('0x4')?![]:!![]),_0x2998e2[_0xac429b('0x27')](_0x3a5658,_0x3cdf5c[_0x46a99b][_0xac429b('0x2c')]||_0x3a5658);}if(_0x395e2c[_0xac429b('0x57')]){_0x395e2c[_0xac429b('0x57')]=JSON[_0xac429b('0x63')](_0x395e2c[_0xac429b('0x57')]);for(let _0x1494c7=0x0;_0x1494c7<_0x395e2c[_0xac429b('0x57')][_0xac429b('0x1d')];_0x1494c7+=0x1){_0x395e2c[_0xac429b('0x57')][_0x1494c7][_0xac429b('0x64')]&&_[_0xac429b('0x13')](_0xfd3be1,_0x395e2c[_0xac429b('0x57')][_0x1494c7]['type'])&&_0x395e2c[_0xac429b('0x57')][_0x1494c7][_0xac429b('0x20')]&&_0x395e2c[_0xac429b('0x57')][_0x1494c7][_0xac429b('0x56')]&&_0x395e2c[_0xac429b('0x57')][_0x1494c7][_0xac429b('0x48')]&&_0x2998e2[_0x395e2c[_0xac429b('0x57')][_0x1494c7][_0xac429b('0x64')]](_0x395e2c[_0xac429b('0x57')][_0x1494c7][_0xac429b('0x56')],null,util[_0xac429b('0x5c')]('%s.%s\x20=\x20%s.%s',_0x395e2c[_0xac429b('0x4f')],_0x395e2c['joins'][_0x1494c7][_0xac429b('0x20')],_0x395e2c['joins'][_0x1494c7][_0xac429b('0x56')],_0x395e2c[_0xac429b('0x57')][_0x1494c7]['foreignKey']));}}return _0x395e2c['conditions']&&(_0x395e2c[_0xac429b('0x36')]=JSON[_0xac429b('0x63')](_0x395e2c[_0xac429b('0x36')]),_0x2998e2[_0xac429b('0xe')](_0x1c69bd(_0x395e2c[_0xac429b('0x36')][_0xac429b('0x82')]))),_0x2323cf=_0x2998e2[_0xac429b('0x2d')](),_0x2998e2[_0xac429b('0x62')](_0x1058ee),_0x2998e2[_0xac429b('0xb')](0x0),logger[_0xac429b('0x4a')]('Limited\x20Query:',_0x2998e2[_0xac429b('0x74')]()),db[_0xac429b('0x2a')]['query'](_0x2998e2['toString'](),{'type':db[_0xac429b('0x2a')][_0xac429b('0x21')][_0xac429b('0x70')]});}})[_0x3f71ab('0x5b')](function(_0x49a18f){const _0xd585c2=_0x3f71ab;if(!_0x49a18f[_0xd585c2('0x1d')])throw new db[(_0xd585c2('0x26'))][(_0xd585c2('0x7d'))]('No\x20available\x20data',0xcc);if(_0x2761c9[_0xd585c2('0x39')]===_0xd585c2('0x7e'))return null;const _0x340a58=_['merge'](_0x2761c9,{'name':_0x2761c9[_0xd585c2('0x42')]||_0x2761c9[_0xd585c2('0x7c')]||_0x395e2c[_0xd585c2('0x7c')],'basename':_0x596ea9,'savename':util[_0xd585c2('0x5c')]('%s-%s.%s',_0x2761c9[_0xd585c2('0x7c')]||_0x395e2c['name'],require(_0xd585c2('0x5f'))[_0xd585c2('0x1f')](0x4),_0x2761c9[_0xd585c2('0x39')]||_0xd585c2('0x61')),'reportId':_0x395e2c['id'],'reportType':'default'});return db[_0xd585c2('0x87')][_0xd585c2('0x88')](_0x340a58,{'raw':!![]});})[_0x3f71ab('0x5b')](function(_0x3c1c56){const _0x3c368f=_0x3f71ab;_0x395e2c[_0x3c368f('0x4f')]==='cdr'?_0x2323cf[_0x3c368f('0xe')](_0x395e2c[_0x3c368f('0x4f')]+_0x3c368f('0x4e'),_0x2761c9[_0x3c368f('0x77')],_0x2761c9[_0x3c368f('0x18')]):_0x2323cf['where'](_0x395e2c[_0x3c368f('0x4f')]+_0x3c368f('0x67'),_0x2761c9['startDate'],_0x2761c9[_0x3c368f('0x18')]);if(_0x3c1c56)return logger[_0x3c368f('0x34')](_0x3c368f('0xc'),_0x2323cf['toString']()),require(_0x3c368f('0xa'))[_0x3c368f('0x0')](path['join'](__dirname,_0x3c368f('0x83'),_0x3c1c56[_0x3c368f('0x39')]),[_0x3c1c56['id'],_0x2323cf[_0x3c368f('0x74')](),path['join'](__dirname,'../../files/reports',_0x3c1c56[_0x3c368f('0x69')]),_0x596ea9]),_0x3c1c56;else{const _0x51488e=squel[_0x3c368f('0x6b')]();return _0x51488e[_0x3c368f('0x1b')]('('+_0x2323cf[_0x3c368f('0x74')]()+')',_0x3c368f('0x55')),_0x51488e[_0x3c368f('0x27')]('COUNT(*)',_0x3c368f('0x28')),_0x2323cf[_0x3c368f('0x62')](_0x2761c9[_0x3c368f('0x62')]||_0x1058ee),_0x2323cf['offset'](_0x2761c9['offset']||0x0),dbH[_0x3c368f('0x2a')]['query'](_0x51488e[_0x3c368f('0x74')](),{'type':dbH['sequelize']['QueryTypes'][_0x3c368f('0x70')]})['then'](function(_0x1341d4){const _0xbf54c7=_0x3c368f;return!_0x1341d4['length']?_0x2452b0=0x0:_0x2452b0=_0x1341d4[0x0]['count']||0x0,dbH[_0xbf54c7('0x2a')][_0xbf54c7('0x33')](_0x2323cf[_0xbf54c7('0x74')](),{'type':dbH['sequelize'][_0xbf54c7('0x21')][_0xbf54c7('0x70')]});})[_0x3c368f('0x5b')](function(_0x44ed90){return{'rows':_0x44ed90||[],'count':_0x2452b0};});}});}exports['run']=function(_0x26bf65,_0x477bfb){const _0x59ed62=_0x51f089;return runReport(_0x26bf65['params'],_0x26bf65[_0x59ed62('0x33')],_0x26bf65['options'])['then'](respondWithResult(_0x477bfb,null))[_0x59ed62('0xf')](handleError(_0x477bfb,null));},exports[_0x51f089('0x6')]=runReport,exports[_0x51f089('0x33')]=function(_0xfaa4b2,_0x2ea306){const _0x566747=_0x51f089,_0x518bfc=0xa,_0xc0601c=['join',_0x566747('0x1'),_0x566747('0x41'),'cross_join'],_0x3f9874={'SUM':_0x566747('0x14'),'COUNT':'COUNT(%s)','COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':'MAX(%s)','MIN':'MIN(%s)','AVG':_0x566747('0x6a'),'GROUP_CONCAT':_0x566747('0x7'),'GROUP_CONCAT\x20ASC':_0x566747('0x71'),'GROUP_CONCAT\x20DESC':_0x566747('0x38')},_0x4bcb35={'SEC_TO_TIME':_0x566747('0x37'),'DATE':'DATE(%s)','HOUR':'HOUR(%s)','ROUND':_0x566747('0x9'),'UNIX_TIMESTAMP':_0x566747('0x3a')},_0x11eabe=function(_0x403a1f){const _0x5c29e5=_0x566747;return!_['includes']([_0x5c29e5('0x25'),_0x5c29e5('0x6f'),_0x5c29e5('0x8b'),_0x5c29e5('0x30')],_0x403a1f);},_0x20b9bc=function(_0x13e586){const _0x43ce90=_0x566747;if(!_0x13e586||!_0x13e586['rules'][_0x43ce90('0x1d')])return'';let _0x4e42e4='(';for(let _0x5b0b0d=0x0;_0x5b0b0d<_0x13e586[_0x43ce90('0x68')][_0x43ce90('0x1d')];_0x5b0b0d+=0x1){_0x5b0b0d>0x0&&(_0x4e42e4+='\x20'+_0x13e586['operator']+'\x20'),_0x4e42e4+=_0x13e586['rules'][_0x5b0b0d][_0x43ce90('0x82')]?_0x20b9bc(_0x13e586['rules'][_0x5b0b0d][_0x43ce90('0x82')]):_0x13e586[_0x43ce90('0x68')][_0x5b0b0d][_0x43ce90('0x27')]+'\x20'+_0x13e586[_0x43ce90('0x68')][_0x5b0b0d][_0x43ce90('0x72')]+(_0x11eabe(_0x13e586[_0x43ce90('0x68')][_0x5b0b0d][_0x43ce90('0x72')])?'\x20'+_0x13e586[_0x43ce90('0x68')][_0x5b0b0d][_0x43ce90('0x40')]:'');}return _0x4e42e4+')';};let _0x147c7e={'where':{'id':_0xfaa4b2[_0x566747('0x5d')]['id']}},_0x1d0c34,_0x2fcde5,_0x2993df,_0x2797d5;return _0x147c7e=_[_0x566747('0x44')]({},_0x147c7e,_0xfaa4b2[_0x566747('0x78')]),db['AnalyticDefaultReport'][_0x566747('0x58')](_0x147c7e)[_0x566747('0x5b')](function(_0x5102b4){if(_0x5102b4)return _0x1d0c34=_0x5102b4,_0x5102b4['getFields']();return null;})[_0x566747('0x5b')](function(_0x795980){const _0x2de5ff=_0x566747;if(_0x795980){if(!_0x795980['length'])throw new db[(_0x2de5ff('0x26'))]['ValidationErrorItem'](_0x2de5ff('0x6d'),0x193);return _0x2fcde5=_0x795980,db[_0x2de5ff('0x8')][_0x2de5ff('0x35')]({'raw':!![]});}return null;})[_0x566747('0x5b')](function(_0x24cd61){const _0x3f103e=_0x566747;if(_0x24cd61){_0x2993df=_['keyBy'](_0x24cd61,'id');let _0x1320c1;const _0x23aecf=squel[_0x3f103e('0x6b')]();_0x23aecf[_0x3f103e('0x1b')](_0x1d0c34[_0x3f103e('0x4f')]);for(let _0x5c64b8=0x0;_0x5c64b8<_0x2fcde5['length'];_0x5c64b8+=0x1){_0x1320c1=_0x2fcde5[_0x5c64b8][_0x3f103e('0x4c')]?_0x2993df[_0x2fcde5[_0x5c64b8][_0x3f103e('0x4c')]][_0x3f103e('0x29')]:_0x2fcde5[_0x5c64b8][_0x3f103e('0x27')],_0x1320c1=_0x2fcde5[_0x5c64b8][_0x3f103e('0x7f')]?_[_0x3f103e('0x65')](_0x3f9874[_0x2fcde5[_0x5c64b8][_0x3f103e('0x7f')]],'%s',_0x1320c1):_0x1320c1,_0x1320c1=_0x2fcde5[_0x5c64b8][_0x3f103e('0x5c')]?_['replace'](_0x4bcb35[_0x2fcde5[_0x5c64b8][_0x3f103e('0x5c')]],'%s',_0x1320c1):_0x1320c1,_0x2fcde5[_0x5c64b8]['groupBy']&&_0x23aecf['group'](_0x1320c1),_0x2fcde5[_0x5c64b8]['orderBy']&&_0x23aecf[_0x3f103e('0x84')](_0x1320c1,_0x2fcde5[_0x5c64b8]['orderBy']===_0x3f103e('0x4')?![]:!![]),_0x23aecf[_0x3f103e('0x27')](_0x1320c1,_0x2fcde5[_0x5c64b8][_0x3f103e('0x2c')]||_0x1320c1);}if(_0x1d0c34[_0x3f103e('0x57')]){_0x1d0c34[_0x3f103e('0x57')]=JSON[_0x3f103e('0x63')](_0x1d0c34['joins']);for(let _0x11f6bd=0x0;_0x11f6bd<_0x1d0c34[_0x3f103e('0x57')][_0x3f103e('0x1d')];_0x11f6bd+=0x1){_0x1d0c34[_0x3f103e('0x57')][_0x11f6bd][_0x3f103e('0x64')]&&_['includes'](_0xc0601c,_0x1d0c34[_0x3f103e('0x57')][_0x11f6bd]['type'])&&_0x1d0c34['joins'][_0x11f6bd][_0x3f103e('0x20')]&&_0x1d0c34[_0x3f103e('0x57')][_0x11f6bd]['foreignTable']&&_0x1d0c34[_0x3f103e('0x57')][_0x11f6bd]['foreignKey']&&_0x23aecf[_0x1d0c34[_0x3f103e('0x57')][_0x11f6bd][_0x3f103e('0x64')]](_0x1d0c34[_0x3f103e('0x57')][_0x11f6bd][_0x3f103e('0x56')],null,util['format']('%s.%s\x20=\x20%s.%s',_0x1d0c34[_0x3f103e('0x4f')],_0x1d0c34['joins'][_0x11f6bd][_0x3f103e('0x20')],_0x1d0c34[_0x3f103e('0x57')][_0x11f6bd]['foreignTable'],_0x1d0c34['joins'][_0x11f6bd][_0x3f103e('0x48')]));}}return _0x1d0c34[_0x3f103e('0x36')]&&(_0x1d0c34[_0x3f103e('0x36')]=JSON[_0x3f103e('0x63')](_0x1d0c34[_0x3f103e('0x36')]),_0x23aecf[_0x3f103e('0xe')](_0x20b9bc(_0x1d0c34[_0x3f103e('0x36')]['group']))),_0x2797d5=_0x23aecf[_0x3f103e('0x2d')](),_0x23aecf[_0x3f103e('0x62')](_0x518bfc),_0x23aecf['offset'](0x0),logger['debug'](_0x3f103e('0x73'),_0x23aecf[_0x3f103e('0x74')]()),db[_0x3f103e('0x2a')]['query'](_0x23aecf['toString'](),{'type':db[_0x3f103e('0x2a')][_0x3f103e('0x21')][_0x3f103e('0x70')]});}})[_0x566747('0x5b')](function(){return{'sql':_0x2797d5['toString']()};})[_0x566747('0x5b')](respondWithResult(_0x2ea306,null))['catch'](handleError(_0x2ea306,null));}; \ No newline at end of file +const a9_0x3d66=['right_join','DefaultReports','filter','Unable\x20to\x20retrieve\x20the\x20current\x20user','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','get','clone','field','info','end','operator','query','format','rows','userProfileId','COUNT(%s)','path','order','debug','merge','autoAssociation','%s.%s\x20=\x20%s.%s','AnalyticMetric','DESC','SEC_TO_TIME(%s)','SUM(%s)','../../components/parsers/qs','metric','json','randomstring','condition','fieldName','sort','status','filters','user','%s-%s.%s','includeAll','alias','group','UserProfileResource','left_join','Content-Range','offset','child_process','orderBy','No\x20available\x20data','preview','fullPath','UNIX_TIMESTAMP(%s)','count','QueryTypes','pick','sequelize','MIN(%s)','body','where','send','.createdAt\x20BETWEEN\x20?\x20AND\x20?','csv','keyBy','parse','catch','create','set','fields','model','findOne','run','AVG(%s)','value','util','getFields','AnalyticDefaultReport','length','IS\x20NOT\x20EMPTY','MetricId','groupBy','../../components/export/','error','join','table','name','findAll','from','Please\x20insert\x20at\x20least\x20one\x20field','index','foreignTable','generate','COUNT(*)','api','function','undefined','foreignKey','params','HOUR(%s)','sendStatus','Limited\x20Query:','Run\x20Query:','rawAttributes','../../files/reports','endDate','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','ROUND(%s)','intersection','UserProfileSection','SELECT','DATE(%s)','GROUP_CONCAT(%s)','web','then','squel','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','cross_join','runReport','options','IS\x20EMPTY','IS\x20NULL','includes','conditions','.calldate\x20BETWEEN\x20?\x20AND\x20?','startDate','stack','attributes','joins','select','include','countTable','type','output','Sequelize','ValidationErrorItem','map','replace','rules','cdr','IS\x20NOT\x20NULL','MAX(%s)','destroy','keys','limit','parentKey','COUNT(DISTINCT\x20%s)','toString','like'];(function(_0x5b7d28,_0x3d66f4){const _0x4ab9f1=function(_0x570f3d){while(--_0x570f3d){_0x5b7d28['push'](_0x5b7d28['shift']());}};_0x4ab9f1(++_0x3d66f4);}(a9_0x3d66,0x12e));const a9_0x4ab9=function(_0x5b7d28,_0x3d66f4){_0x5b7d28=_0x5b7d28-0x0;let _0x4ab9f1=a9_0x3d66[_0x5b7d28];return _0x4ab9f1;};const _0x385b49=a9_0x4ab9;'use strict';const util=require(_0x385b49('0x3b')),path=require(_0x385b49('0x4')),_=require('lodash'),squel=require(_0x385b49('0x63')),qs=require(_0x385b49('0xe')),logger=require('../../config/logger')(_0x385b49('0x4e')),db=require('../../mysqldb')['db'],dbH=require('../../mysqldb')['dbH'],{Op}=require(_0x385b49('0x29'));function respondWithResult(_0x570f3d,_0x4bf7c1){return _0x4bf7c1=_0x4bf7c1||0xc8,function(_0x327df9){const _0x376d8c=a9_0x4ab9;if(_0x327df9)return _0x570f3d['status'](_0x4bf7c1)[_0x376d8c('0x10')](_0x327df9);};}function respondWithFilteredResult(_0x36e290,_0x225091){return function(_0x239cfe){const _0x255ef4=a9_0x4ab9;if(_0x239cfe){const _0x2d488a=_0x239cfe['count'],_0x2e2b64=_0x225091[_0x255ef4('0x1f')];let _0x140b6b=_0x225091[_0x255ef4('0x1f')]+_0x225091['limit'],_0x55e000;return _0x140b6b>=_0x2d488a?(_0x140b6b=_0x2d488a,_0x55e000=0xc8):_0x55e000=0xce,_0x36e290[_0x255ef4('0x15')](_0x55e000),_0x36e290[_0x255ef4('0x34')](_0x255ef4('0x1e'),_0x2e2b64+'-'+_0x140b6b+'/'+_0x2d488a)['json'](_0x239cfe);}return null;};}function saveUpdates(_0x5a6ca5){return function(_0x1bdda5){const _0x4b3be3=a9_0x4ab9;if(_0x1bdda5)return _0x1bdda5['update'](_0x5a6ca5)[_0x4b3be3('0x62')](function(_0x5037fa){return _0x5037fa;});return null;};}function removeEntity(_0x34de06){return function(_0x5df520){const _0x2af725=a9_0x4ab9;if(_0x5df520)return _0x5df520[_0x2af725('0x7e')]()[_0x2af725('0x62')](function(){const _0x5b71fd=_0x2af725,_0x1fa18b=_0x5df520[_0x5b71fd('0x8a')]({'plain':!![]}),_0x72126a=_0x5b71fd('0x86');return db[_0x5b71fd('0x1c')][_0x5b71fd('0x7e')]({'where':{'type':_0x72126a,'resourceId':_0x1fa18b['id']}})[_0x5b71fd('0x62')](function(){return _0x5df520;});})[_0x2af725('0x62')](function(){const _0x14e6ff=_0x2af725;_0x34de06[_0x14e6ff('0x15')](0xcc)[_0x14e6ff('0x8e')]();});};}function handleEntityNotFound(_0x560545){return function(_0xa8a5a5){const _0x8c3ece=a9_0x4ab9;return!_0xa8a5a5&&_0x560545[_0x8c3ece('0x54')](0x194),_0xa8a5a5;};}function handleError(_0x4d76bb,_0x4bb60c){return _0x4bb60c=_0x4bb60c||0x1f4,function(_0x55b0ba){const _0x49c969=a9_0x4ab9;logger[_0x49c969('0x43')](_0x55b0ba[_0x49c969('0x6e')]),_0x55b0ba[_0x49c969('0x46')]&&delete _0x55b0ba[_0x49c969('0x46')],_0x4d76bb['status'](_0x4bb60c)[_0x49c969('0x2d')](_0x55b0ba);};}exports[_0x385b49('0x4a')]=function(_0x345986,_0x500d29){const _0x26e917=_0x385b49;let _0x5679c9={};const _0xa401d8={},_0x4ec897={'count':0x0,'rows':[]},_0x154035=_[_0x26e917('0x78')](db[_0x26e917('0x3d')][_0x26e917('0x57')],function(_0x1538ba){const _0x122feb=_0x26e917;return{'name':_0x1538ba[_0x122feb('0x13')],'type':_0x1538ba[_0x122feb('0x74')]['key']};});_0xa401d8[_0x26e917('0x36')]=_[_0x26e917('0x78')](_0x154035,_0x26e917('0x46')),_0xa401d8[_0x26e917('0x90')]=_[_0x26e917('0x7f')](_0x345986[_0x26e917('0x90')]),_0xa401d8[_0x26e917('0x16')]=_[_0x26e917('0x5c')](_0xa401d8[_0x26e917('0x36')],_0xa401d8[_0x26e917('0x90')]),_0x5679c9[_0x26e917('0x6f')]=_[_0x26e917('0x5c')](_0xa401d8['model'],qs[_0x26e917('0x35')](_0x345986[_0x26e917('0x90')][_0x26e917('0x35')])),_0x5679c9[_0x26e917('0x6f')]=_0x5679c9['attributes'][_0x26e917('0x3e')]?_0x5679c9[_0x26e917('0x6f')]:_0xa401d8[_0x26e917('0x36')];typeof _0x345986[_0x26e917('0x90')]['nolimit']===_0x26e917('0x50')&&(_0x5679c9['limit']=qs[_0x26e917('0x80')](_0x345986[_0x26e917('0x90')][_0x26e917('0x80')]),_0x5679c9[_0x26e917('0x1f')]=qs[_0x26e917('0x1f')](_0x345986[_0x26e917('0x90')][_0x26e917('0x1f')]));_0x5679c9['order']=qs[_0x26e917('0x14')](_0x345986['query'][_0x26e917('0x14')]),_0x5679c9[_0x26e917('0x2c')]=qs['filters'](_[_0x26e917('0x28')](_0x345986['query'],_0xa401d8[_0x26e917('0x16')]),_0x154035);_0x345986[_0x26e917('0x90')][_0x26e917('0x87')]&&(_0x5679c9[_0x26e917('0x2c')]=_[_0x26e917('0x7')](_0x5679c9[_0x26e917('0x2c')],{[Op['or']]:_[_0x26e917('0x78')](_0x154035,function(_0x5aae17){const _0x57db62=_0x26e917;if(_0x5aae17[_0x57db62('0x74')]!=='VIRTUAL'){const _0x1f3b58={};return _0x1f3b58[_0x5aae17[_0x57db62('0x46')]]={[Op[_0x57db62('0x84')]]:'%'+_0x345986[_0x57db62('0x90')][_0x57db62('0x87')]+'%'},_0x1f3b58;}})}));_0x5679c9=_[_0x26e917('0x7')]({},_0x5679c9,_0x345986[_0x26e917('0x67')]);const _0x3b2efa={'where':_0x5679c9[_0x26e917('0x2c')]};return db[_0x26e917('0x3d')][_0x26e917('0x26')](_0x3b2efa)[_0x26e917('0x62')](function(_0x5dde7d){const _0x1ebe4b=_0x26e917;return _0x4ec897[_0x1ebe4b('0x26')]=_0x5dde7d,_0x345986['query'][_0x1ebe4b('0x19')]&&(_0x5679c9[_0x1ebe4b('0x72')]=[{'all':!![]}]),db['AnalyticDefaultReport'][_0x1ebe4b('0x47')](_0x5679c9);})[_0x26e917('0x62')](function(_0xf70002){const _0xc10fd=_0x26e917;return _0x4ec897[_0xc10fd('0x1')]=_0xf70002,_0x4ec897;})[_0x26e917('0x62')](respondWithFilteredResult(_0x500d29,_0x5679c9))[_0x26e917('0x32')](handleError(_0x500d29,null));},exports['show']=function(_0x5d7ebf,_0x3a9125){const _0x3a0445=_0x385b49;let _0x2d6bcc={'raw':!![],'where':{'id':_0x5d7ebf[_0x3a0445('0x52')]['id']}};const _0x3aa4a6={};return _0x3aa4a6['model']=_[_0x3a0445('0x7f')](db['AnalyticDefaultReport'][_0x3a0445('0x57')]),_0x3aa4a6['query']=_[_0x3a0445('0x7f')](_0x5d7ebf['query']),_0x3aa4a6['filters']=_['intersection'](_0x3aa4a6[_0x3a0445('0x36')],_0x3aa4a6[_0x3a0445('0x90')]),_0x2d6bcc[_0x3a0445('0x6f')]=_['intersection'](_0x3aa4a6[_0x3a0445('0x36')],qs['fields'](_0x5d7ebf[_0x3a0445('0x90')][_0x3a0445('0x35')])),_0x2d6bcc[_0x3a0445('0x6f')]=_0x2d6bcc[_0x3a0445('0x6f')][_0x3a0445('0x3e')]?_0x2d6bcc['attributes']:_0x3aa4a6[_0x3a0445('0x36')],_0x5d7ebf[_0x3a0445('0x90')][_0x3a0445('0x19')]&&(_0x2d6bcc[_0x3a0445('0x72')]=[{'all':!![]}]),_0x2d6bcc=_['merge']({},_0x2d6bcc,_0x5d7ebf[_0x3a0445('0x67')]),db[_0x3a0445('0x3d')][_0x3a0445('0x37')](_0x2d6bcc)[_0x3a0445('0x62')](handleEntityNotFound(_0x3a9125,null))[_0x3a0445('0x62')](respondWithResult(_0x3a9125,null))[_0x3a0445('0x32')](handleError(_0x3a9125,null));},exports['create']=function(_0x8bac48,_0x443e7c){const _0x20fb6f=_0x385b49;return db[_0x20fb6f('0x3d')][_0x20fb6f('0x33')](_0x8bac48['body'],{})[_0x20fb6f('0x62')](function(_0x59865e){const _0x2bf89a=_0x20fb6f,_0xdf3858=_0x8bac48[_0x2bf89a('0x17')][_0x2bf89a('0x8a')]({'plain':!![]});if(!_0xdf3858)throw new Error(_0x2bf89a('0x88'));if(_0xdf3858['role']==='user'){const _0x2cf84d=_0x59865e[_0x2bf89a('0x8a')]({'plain':!![]}),_0x2ace70='Reports';return db[_0x2bf89a('0x5d')][_0x2bf89a('0x37')]({'where':{'name':_0x2ace70,'userProfileId':_0xdf3858[_0x2bf89a('0x2')]},'raw':!![]})[_0x2bf89a('0x62')](function(_0x61191c){const _0x24725d=_0x2bf89a;return _0x61191c&&_0x61191c[_0x24725d('0x8')]===0x0?db[_0x24725d('0x1c')]['create']({'name':_0x2cf84d[_0x24725d('0x46')],'resourceId':_0x2cf84d['id'],'type':_0x24725d('0x86'),'sectionId':_0x61191c['id']},{})['then'](function(){return _0x59865e;}):_0x59865e;})['catch'](function(_0x5e3f31){const _0x20460c=_0x2bf89a;logger[_0x20460c('0x43')](_0x20460c('0x64'),_0x5e3f31);throw _0x5e3f31;});}return _0x59865e;})['then'](respondWithResult(_0x443e7c,0xc9))[_0x20fb6f('0x32')](handleError(_0x443e7c,null));},exports['update']=function(_0x4f92b2,_0x3d56fb){const _0x34c935=_0x385b49;return _0x4f92b2[_0x34c935('0x2b')]['id']&&delete _0x4f92b2['body']['id'],db[_0x34c935('0x3d')][_0x34c935('0x37')]({'where':{'id':_0x4f92b2['params']['id']}})[_0x34c935('0x62')](handleEntityNotFound(_0x3d56fb,null))[_0x34c935('0x62')](saveUpdates(_0x4f92b2[_0x34c935('0x2b')],null))[_0x34c935('0x62')](respondWithResult(_0x3d56fb,null))['catch'](handleError(_0x3d56fb,null));},exports[_0x385b49('0x7e')]=function(_0x16dd27,_0x2b9661){const _0x653710=_0x385b49;return db[_0x653710('0x3d')][_0x653710('0x37')]({'where':{'id':_0x16dd27['params']['id']}})[_0x653710('0x62')](handleEntityNotFound(_0x2b9661,null))[_0x653710('0x62')](removeEntity(_0x2b9661,null))['catch'](handleError(_0x2b9661,null));},exports[_0x385b49('0x23')]=function(_0x2f9686,_0xc968ae){const _0x525219=_0x385b49,_0x1f0da7=0xa,_0x5b36dc=[_0x525219('0x44'),_0x525219('0x1d'),_0x525219('0x85'),'cross_join'],_0x255223={'SUM':_0x525219('0xd'),'COUNT':_0x525219('0x3'),'COUNT\x20DISTINCT':_0x525219('0x82'),'MAX':_0x525219('0x7d'),'MIN':_0x525219('0x2a'),'AVG':_0x525219('0x39'),'GROUP_CONCAT':_0x525219('0x60'),'GROUP_CONCAT\x20ASC':_0x525219('0x89'),'GROUP_CONCAT\x20DESC':_0x525219('0x5a')},_0x5f167d={'SEC_TO_TIME':_0x525219('0xc'),'DATE':_0x525219('0x5f'),'HOUR':'HOUR(%s)','ROUND':'ROUND(%s)','UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x4795ff=function(_0xcde488){const _0x260864=_0x525219;return!_[_0x260864('0x6a')]([_0x260864('0x69'),_0x260864('0x7c'),_0x260864('0x68'),'IS\x20NOT\x20EMPTY'],_0xcde488);},_0x2bd472=function(_0x11406e){const _0x375277=_0x525219;if(!_0x11406e||!_0x11406e[_0x375277('0x7a')][_0x375277('0x3e')])return'';let _0x29df9d='(';for(let _0x559e88=0x0;_0x559e88<_0x11406e['rules'][_0x375277('0x3e')];_0x559e88+=0x1){_0x559e88>0x0&&(_0x29df9d+='\x20'+_0x11406e[_0x375277('0x8f')]+'\x20'),_0x29df9d+=_0x11406e[_0x375277('0x7a')][_0x559e88]['group']?_0x2bd472(_0x11406e['rules'][_0x559e88][_0x375277('0x1b')]):_0x11406e['rules'][_0x559e88][_0x375277('0x8c')]+'\x20'+_0x11406e[_0x375277('0x7a')][_0x559e88][_0x375277('0x12')]+(_0x4795ff(_0x11406e[_0x375277('0x7a')][_0x559e88][_0x375277('0x12')])?'\x20'+_0x11406e[_0x375277('0x7a')][_0x559e88][_0x375277('0x3a')]:'');}return _0x29df9d+')';};let _0x1bb1cb={'where':{'id':_0x2f9686[_0x525219('0x52')]['id']}},_0xa2e4d8,_0x531999,_0x3649ca;return _0x1bb1cb=_[_0x525219('0x7')]({},_0x1bb1cb,_0x2f9686[_0x525219('0x67')]),db[_0x525219('0x3d')]['findOne'](_0x1bb1cb)[_0x525219('0x62')](function(_0x2189ef){const _0x327ce8=_0x525219;if(_0x2189ef)return _0xa2e4d8=_0x2189ef,_0x2189ef[_0x327ce8('0x3c')]();return null;})['then'](function(_0x3bcc86){const _0x3c5bfc=_0x525219;if(_0x3bcc86){if(!_0x3bcc86['length'])throw new db['Sequelize'][(_0x3c5bfc('0x77'))](_0x3c5bfc('0x49'),0x193);return _0x531999=_0x3bcc86,db[_0x3c5bfc('0xa')][_0x3c5bfc('0x47')]({'raw':!![]});}return null;})['then'](function(_0x1761da){const _0x4a1049=_0x525219;if(_0x1761da){_0x3649ca=_[_0x4a1049('0x30')](_0x1761da,'id');let _0x160d82;const _0x33f0fc=squel['select']();_0x33f0fc[_0x4a1049('0x48')](_0xa2e4d8[_0x4a1049('0x45')]);for(let _0xad6b2c=0x0;_0xad6b2c<_0x531999[_0x4a1049('0x3e')];_0xad6b2c+=0x1){_0x160d82=_0x531999[_0xad6b2c]['MetricId']?_0x3649ca[_0x531999[_0xad6b2c][_0x4a1049('0x40')]][_0x4a1049('0xf')]:_0x531999[_0xad6b2c][_0x4a1049('0x8c')],_0x160d82=_0x531999[_0xad6b2c][_0x4a1049('0x4f')]?_[_0x4a1049('0x79')](_0x255223[_0x531999[_0xad6b2c]['function']],'%s',_0x160d82):_0x160d82,_0x160d82=_0x531999[_0xad6b2c][_0x4a1049('0x0')]?_[_0x4a1049('0x79')](_0x5f167d[_0x531999[_0xad6b2c][_0x4a1049('0x0')]],'%s',_0x160d82):_0x160d82,_0x531999[_0xad6b2c]['groupBy']&&_0x33f0fc[_0x4a1049('0x1b')](_0x160d82),_0x531999[_0xad6b2c][_0x4a1049('0x21')]&&_0x33f0fc['order'](_0x160d82,_0x531999[_0xad6b2c][_0x4a1049('0x21')]===_0x4a1049('0xb')?![]:!![]),_0x33f0fc[_0x4a1049('0x8c')](_0x160d82,_0x531999[_0xad6b2c]['alias']||_0x160d82);}if(_0xa2e4d8[_0x4a1049('0x70')]){_0xa2e4d8[_0x4a1049('0x70')]=JSON['parse'](_0xa2e4d8['joins']);for(let _0x188736=0x0;_0x188736<_0xa2e4d8[_0x4a1049('0x70')][_0x4a1049('0x3e')];_0x188736+=0x1){_0xa2e4d8[_0x4a1049('0x70')][_0x188736][_0x4a1049('0x74')]&&_['includes'](_0x5b36dc,_0xa2e4d8[_0x4a1049('0x70')][_0x188736]['type'])&&_0xa2e4d8[_0x4a1049('0x70')][_0x188736][_0x4a1049('0x81')]&&_0xa2e4d8['joins'][_0x188736][_0x4a1049('0x4b')]&&_0xa2e4d8['joins'][_0x188736][_0x4a1049('0x51')]&&_0x33f0fc[_0xa2e4d8['joins'][_0x188736]['type']](_0xa2e4d8[_0x4a1049('0x70')][_0x188736][_0x4a1049('0x4b')],null,util[_0x4a1049('0x0')](_0x4a1049('0x9'),_0xa2e4d8['table'],_0xa2e4d8[_0x4a1049('0x70')][_0x188736]['parentKey'],_0xa2e4d8['joins'][_0x188736][_0x4a1049('0x4b')],_0xa2e4d8[_0x4a1049('0x70')][_0x188736][_0x4a1049('0x51')]));}}return _0xa2e4d8['conditions']&&(_0xa2e4d8[_0x4a1049('0x6b')]=JSON['parse'](_0xa2e4d8[_0x4a1049('0x6b')]),_0x33f0fc[_0x4a1049('0x2c')](_0x2bd472(_0xa2e4d8[_0x4a1049('0x6b')][_0x4a1049('0x1b')]))),_0x33f0fc[_0x4a1049('0x80')](_0x1f0da7),_0x33f0fc[_0x4a1049('0x1f')](0x0),logger[_0x4a1049('0x6')]('Limited\x20Query:',_0x33f0fc[_0x4a1049('0x83')]()),db['sequelize'][_0x4a1049('0x90')](_0x33f0fc[_0x4a1049('0x83')](),{'type':db[_0x4a1049('0x29')][_0x4a1049('0x27')][_0x4a1049('0x5e')]});}})[_0x525219('0x62')](respondWithResult(_0xc968ae,null))[_0x525219('0x32')](handleError(_0xc968ae,null));};function runReport(_0x27bc4f,_0x1ba5db,_0x2c26b2){const _0x23988e=_0x385b49,_0x5c8744=_0x1ba5db[_0x23988e('0x46')],_0x2649d3=0xa,_0x34748e=[_0x23988e('0x44'),_0x23988e('0x1d'),_0x23988e('0x85'),'cross_join'],_0x457c9c={'SUM':_0x23988e('0xd'),'COUNT':_0x23988e('0x3'),'COUNT\x20DISTINCT':_0x23988e('0x82'),'MAX':'MAX(%s)','MIN':_0x23988e('0x2a'),'AVG':_0x23988e('0x39'),'GROUP_CONCAT':_0x23988e('0x60'),'GROUP_CONCAT\x20ASC':_0x23988e('0x89'),'GROUP_CONCAT\x20DESC':_0x23988e('0x5a')},_0x29615d={'SEC_TO_TIME':_0x23988e('0xc'),'DATE':_0x23988e('0x5f'),'HOUR':_0x23988e('0x53'),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x23988e('0x25')},_0x36db83=function(_0x55fef1){const _0x35095d=_0x23988e;return!_[_0x35095d('0x6a')](['IS\x20NULL',_0x35095d('0x7c'),_0x35095d('0x68'),_0x35095d('0x3f')],_0x55fef1);},_0x744061=function(_0x37a9a5){const _0x1c02a1=_0x23988e;if(!_0x37a9a5||!_0x37a9a5[_0x1c02a1('0x7a')][_0x1c02a1('0x3e')])return'';let _0x3cfedd='(';for(let _0x3ada42=0x0;_0x3ada42<_0x37a9a5[_0x1c02a1('0x7a')]['length'];_0x3ada42+=0x1){_0x3ada42>0x0&&(_0x3cfedd+='\x20'+_0x37a9a5['operator']+'\x20'),_0x3cfedd+=_0x37a9a5['rules'][_0x3ada42][_0x1c02a1('0x1b')]?_0x744061(_0x37a9a5[_0x1c02a1('0x7a')][_0x3ada42][_0x1c02a1('0x1b')]):_0x37a9a5['rules'][_0x3ada42][_0x1c02a1('0x8c')]+'\x20'+_0x37a9a5[_0x1c02a1('0x7a')][_0x3ada42][_0x1c02a1('0x12')]+(_0x36db83(_0x37a9a5[_0x1c02a1('0x7a')][_0x3ada42][_0x1c02a1('0x12')])?'\x20'+_0x37a9a5[_0x1c02a1('0x7a')][_0x3ada42]['value']:'');}return _0x3cfedd+')';};let _0x36ec5b={'where':{'id':_0x27bc4f['id']}},_0x52343e,_0x276bd,_0x2d80ff,_0x4a7415,_0x13de9f;return _0x36ec5b=_[_0x23988e('0x7')]({},_0x36ec5b,_0x2c26b2),db[_0x23988e('0x3d')][_0x23988e('0x37')](_0x36ec5b)[_0x23988e('0x62')](function(_0x2631ba){if(_0x2631ba)return _0x52343e=_0x2631ba,_0x2631ba['getFields']();return null;})[_0x23988e('0x62')](function(_0x33cbbb){const _0x213a92=_0x23988e;if(_0x33cbbb){if(!_0x33cbbb[_0x213a92('0x3e')])throw new db[(_0x213a92('0x76'))][(_0x213a92('0x77'))](_0x213a92('0x49'),0x193);return _0x276bd=_0x33cbbb,db[_0x213a92('0xa')][_0x213a92('0x47')]({'raw':!![]});}return null;})['then'](function(_0x3f3298){const _0x5d2d40=_0x23988e;if(_0x3f3298){_0x2d80ff=_[_0x5d2d40('0x30')](_0x3f3298,'id');let _0x9b0492;const _0x3b890d=squel[_0x5d2d40('0x71')]();_0x3b890d['from'](_0x52343e[_0x5d2d40('0x45')]);for(let _0x32f75d=0x0;_0x32f75d<_0x276bd[_0x5d2d40('0x3e')];_0x32f75d+=0x1){_0x9b0492=_0x276bd[_0x32f75d]['MetricId']?_0x2d80ff[_0x276bd[_0x32f75d][_0x5d2d40('0x40')]][_0x5d2d40('0xf')]:_0x276bd[_0x32f75d][_0x5d2d40('0x8c')],_0x9b0492=_0x276bd[_0x32f75d][_0x5d2d40('0x4f')]?_[_0x5d2d40('0x79')](_0x457c9c[_0x276bd[_0x32f75d][_0x5d2d40('0x4f')]],'%s',_0x9b0492):_0x9b0492,_0x9b0492=_0x276bd[_0x32f75d]['format']?_[_0x5d2d40('0x79')](_0x29615d[_0x276bd[_0x32f75d]['format']],'%s',_0x9b0492):_0x9b0492,_0x276bd[_0x32f75d][_0x5d2d40('0x41')]&&_0x3b890d[_0x5d2d40('0x1b')](_0x9b0492),_0x276bd[_0x32f75d][_0x5d2d40('0x21')]&&_0x3b890d[_0x5d2d40('0x5')](_0x9b0492,_0x276bd[_0x32f75d][_0x5d2d40('0x21')]==='DESC'?![]:!![]),_0x3b890d['field'](_0x9b0492,_0x276bd[_0x32f75d][_0x5d2d40('0x1a')]||_0x9b0492);}if(_0x52343e[_0x5d2d40('0x70')]){_0x52343e['joins']=JSON[_0x5d2d40('0x31')](_0x52343e[_0x5d2d40('0x70')]);for(let _0x10222b=0x0;_0x10222b<_0x52343e['joins'][_0x5d2d40('0x3e')];_0x10222b+=0x1){_0x52343e['joins'][_0x10222b][_0x5d2d40('0x74')]&&_[_0x5d2d40('0x6a')](_0x34748e,_0x52343e[_0x5d2d40('0x70')][_0x10222b][_0x5d2d40('0x74')])&&_0x52343e[_0x5d2d40('0x70')][_0x10222b][_0x5d2d40('0x81')]&&_0x52343e['joins'][_0x10222b]['foreignTable']&&_0x52343e['joins'][_0x10222b][_0x5d2d40('0x51')]&&_0x3b890d[_0x52343e[_0x5d2d40('0x70')][_0x10222b][_0x5d2d40('0x74')]](_0x52343e['joins'][_0x10222b]['foreignTable'],null,util[_0x5d2d40('0x0')](_0x5d2d40('0x9'),_0x52343e['table'],_0x52343e[_0x5d2d40('0x70')][_0x10222b][_0x5d2d40('0x81')],_0x52343e[_0x5d2d40('0x70')][_0x10222b][_0x5d2d40('0x4b')],_0x52343e['joins'][_0x10222b]['foreignKey']));}}return _0x52343e[_0x5d2d40('0x6b')]&&(_0x52343e[_0x5d2d40('0x6b')]=JSON[_0x5d2d40('0x31')](_0x52343e['conditions']),_0x3b890d[_0x5d2d40('0x2c')](_0x744061(_0x52343e[_0x5d2d40('0x6b')][_0x5d2d40('0x1b')]))),_0x13de9f=_0x3b890d[_0x5d2d40('0x8b')](),_0x3b890d['limit'](_0x2649d3),_0x3b890d['offset'](0x0),logger['debug'](_0x5d2d40('0x55'),_0x3b890d['toString']()),db[_0x5d2d40('0x29')][_0x5d2d40('0x90')](_0x3b890d[_0x5d2d40('0x83')](),{'type':db[_0x5d2d40('0x29')][_0x5d2d40('0x27')][_0x5d2d40('0x5e')]});}})[_0x23988e('0x62')](function(_0x24da85){const _0x3663a1=_0x23988e;if(!_0x24da85['length'])throw new db['Sequelize'][(_0x3663a1('0x77'))](_0x3663a1('0x22'),0xcc);if(_0x1ba5db['output']===_0x3663a1('0x61'))return null;const _0x509a8c=_[_0x3663a1('0x7')](_0x1ba5db,{'name':_0x1ba5db[_0x3663a1('0x24')]||_0x1ba5db['name']||_0x52343e[_0x3663a1('0x46')],'basename':_0x5c8744,'savename':util[_0x3663a1('0x0')](_0x3663a1('0x18'),_0x1ba5db[_0x3663a1('0x46')]||_0x52343e[_0x3663a1('0x46')],require(_0x3663a1('0x11'))[_0x3663a1('0x4c')](0x4),_0x1ba5db[_0x3663a1('0x75')]||_0x3663a1('0x2f')),'reportId':_0x52343e['id'],'reportType':'default'});return db['AnalyticExtractedReport'][_0x3663a1('0x33')](_0x509a8c,{'raw':!![]});})[_0x23988e('0x62')](function(_0x141e65){const _0x2648e3=_0x23988e;_0x52343e[_0x2648e3('0x45')]===_0x2648e3('0x7b')?_0x13de9f['where'](_0x52343e[_0x2648e3('0x45')]+_0x2648e3('0x6c'),_0x1ba5db[_0x2648e3('0x6d')],_0x1ba5db[_0x2648e3('0x59')]):_0x13de9f[_0x2648e3('0x2c')](_0x52343e[_0x2648e3('0x45')]+_0x2648e3('0x2e'),_0x1ba5db[_0x2648e3('0x6d')],_0x1ba5db[_0x2648e3('0x59')]);if(_0x141e65)return logger[_0x2648e3('0x8d')](_0x2648e3('0x56'),_0x13de9f[_0x2648e3('0x83')]()),require(_0x2648e3('0x20'))['fork'](path[_0x2648e3('0x44')](__dirname,_0x2648e3('0x42'),_0x141e65['output']),[_0x141e65['id'],_0x13de9f['toString'](),path[_0x2648e3('0x44')](__dirname,_0x2648e3('0x58'),_0x141e65['savename']),_0x5c8744]),_0x141e65;else{const _0x2a093f=squel[_0x2648e3('0x71')]();return _0x2a093f[_0x2648e3('0x48')]('('+_0x13de9f[_0x2648e3('0x83')]()+')',_0x2648e3('0x73')),_0x2a093f[_0x2648e3('0x8c')](_0x2648e3('0x4d'),_0x2648e3('0x26')),_0x13de9f[_0x2648e3('0x80')](_0x1ba5db[_0x2648e3('0x80')]||_0x2649d3),_0x13de9f[_0x2648e3('0x1f')](_0x1ba5db['offset']||0x0),dbH['sequelize'][_0x2648e3('0x90')](_0x2a093f[_0x2648e3('0x83')](),{'type':dbH['sequelize'][_0x2648e3('0x27')][_0x2648e3('0x5e')]})[_0x2648e3('0x62')](function(_0x5b6757){const _0x45db2b=_0x2648e3;return!_0x5b6757[_0x45db2b('0x3e')]?_0x4a7415=0x0:_0x4a7415=_0x5b6757[0x0][_0x45db2b('0x26')]||0x0,dbH[_0x45db2b('0x29')][_0x45db2b('0x90')](_0x13de9f['toString'](),{'type':dbH[_0x45db2b('0x29')][_0x45db2b('0x27')][_0x45db2b('0x5e')]});})['then'](function(_0x100903){return{'rows':_0x100903||[],'count':_0x4a7415};});}});}exports[_0x385b49('0x38')]=function(_0x7ac3ff,_0xb3d69e){const _0x118941=_0x385b49;return runReport(_0x7ac3ff[_0x118941('0x52')],_0x7ac3ff[_0x118941('0x90')],_0x7ac3ff[_0x118941('0x67')])['then'](respondWithResult(_0xb3d69e,null))[_0x118941('0x32')](handleError(_0xb3d69e,null));},exports[_0x385b49('0x66')]=runReport,exports[_0x385b49('0x90')]=function(_0x51bd4f,_0x2b4980){const _0x24ee7b=_0x385b49,_0x54926d=0xa,_0x5801b3=['join','left_join',_0x24ee7b('0x85'),_0x24ee7b('0x65')],_0x55c444={'SUM':_0x24ee7b('0xd'),'COUNT':_0x24ee7b('0x3'),'COUNT\x20DISTINCT':_0x24ee7b('0x82'),'MAX':_0x24ee7b('0x7d'),'MIN':_0x24ee7b('0x2a'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x24ee7b('0x60'),'GROUP_CONCAT\x20ASC':_0x24ee7b('0x89'),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x8be517={'SEC_TO_TIME':_0x24ee7b('0xc'),'DATE':_0x24ee7b('0x5f'),'HOUR':_0x24ee7b('0x53'),'ROUND':_0x24ee7b('0x5b'),'UNIX_TIMESTAMP':_0x24ee7b('0x25')},_0x18cfba=function(_0xade35e){const _0x5d020c=_0x24ee7b;return!_[_0x5d020c('0x6a')]([_0x5d020c('0x69'),'IS\x20NOT\x20NULL',_0x5d020c('0x68'),_0x5d020c('0x3f')],_0xade35e);},_0xd07224=function(_0x3b1025){const _0x5b6f5a=_0x24ee7b;if(!_0x3b1025||!_0x3b1025[_0x5b6f5a('0x7a')][_0x5b6f5a('0x3e')])return'';let _0x282ce4='(';for(let _0x2f0ac0=0x0;_0x2f0ac0<_0x3b1025[_0x5b6f5a('0x7a')][_0x5b6f5a('0x3e')];_0x2f0ac0+=0x1){_0x2f0ac0>0x0&&(_0x282ce4+='\x20'+_0x3b1025[_0x5b6f5a('0x8f')]+'\x20'),_0x282ce4+=_0x3b1025[_0x5b6f5a('0x7a')][_0x2f0ac0][_0x5b6f5a('0x1b')]?_0xd07224(_0x3b1025[_0x5b6f5a('0x7a')][_0x2f0ac0][_0x5b6f5a('0x1b')]):_0x3b1025[_0x5b6f5a('0x7a')][_0x2f0ac0][_0x5b6f5a('0x8c')]+'\x20'+_0x3b1025[_0x5b6f5a('0x7a')][_0x2f0ac0][_0x5b6f5a('0x12')]+(_0x18cfba(_0x3b1025[_0x5b6f5a('0x7a')][_0x2f0ac0][_0x5b6f5a('0x12')])?'\x20'+_0x3b1025['rules'][_0x2f0ac0][_0x5b6f5a('0x3a')]:'');}return _0x282ce4+')';};let _0x12f5a8={'where':{'id':_0x51bd4f[_0x24ee7b('0x52')]['id']}},_0x7eebcf,_0x307354,_0x59cc63,_0x185c4d;return _0x12f5a8=_[_0x24ee7b('0x7')]({},_0x12f5a8,_0x51bd4f[_0x24ee7b('0x67')]),db[_0x24ee7b('0x3d')][_0x24ee7b('0x37')](_0x12f5a8)['then'](function(_0x4238e1){const _0x500c55=_0x24ee7b;if(_0x4238e1)return _0x7eebcf=_0x4238e1,_0x4238e1[_0x500c55('0x3c')]();return null;})['then'](function(_0x56e1f2){const _0x6cb22e=_0x24ee7b;if(_0x56e1f2){if(!_0x56e1f2[_0x6cb22e('0x3e')])throw new db['Sequelize']['ValidationErrorItem'](_0x6cb22e('0x49'),0x193);return _0x307354=_0x56e1f2,db[_0x6cb22e('0xa')]['findAll']({'raw':!![]});}return null;})[_0x24ee7b('0x62')](function(_0x384c50){const _0x346ab8=_0x24ee7b;if(_0x384c50){_0x59cc63=_[_0x346ab8('0x30')](_0x384c50,'id');let _0x1e59e2;const _0xde378b=squel['select']();_0xde378b[_0x346ab8('0x48')](_0x7eebcf[_0x346ab8('0x45')]);for(let _0x312d02=0x0;_0x312d02<_0x307354['length'];_0x312d02+=0x1){_0x1e59e2=_0x307354[_0x312d02]['MetricId']?_0x59cc63[_0x307354[_0x312d02]['MetricId']][_0x346ab8('0xf')]:_0x307354[_0x312d02]['field'],_0x1e59e2=_0x307354[_0x312d02][_0x346ab8('0x4f')]?_[_0x346ab8('0x79')](_0x55c444[_0x307354[_0x312d02][_0x346ab8('0x4f')]],'%s',_0x1e59e2):_0x1e59e2,_0x1e59e2=_0x307354[_0x312d02][_0x346ab8('0x0')]?_['replace'](_0x8be517[_0x307354[_0x312d02][_0x346ab8('0x0')]],'%s',_0x1e59e2):_0x1e59e2,_0x307354[_0x312d02][_0x346ab8('0x41')]&&_0xde378b[_0x346ab8('0x1b')](_0x1e59e2),_0x307354[_0x312d02]['orderBy']&&_0xde378b[_0x346ab8('0x5')](_0x1e59e2,_0x307354[_0x312d02][_0x346ab8('0x21')]==='DESC'?![]:!![]),_0xde378b['field'](_0x1e59e2,_0x307354[_0x312d02]['alias']||_0x1e59e2);}if(_0x7eebcf['joins']){_0x7eebcf[_0x346ab8('0x70')]=JSON[_0x346ab8('0x31')](_0x7eebcf['joins']);for(let _0x41935f=0x0;_0x41935f<_0x7eebcf[_0x346ab8('0x70')]['length'];_0x41935f+=0x1){_0x7eebcf[_0x346ab8('0x70')][_0x41935f]['type']&&_[_0x346ab8('0x6a')](_0x5801b3,_0x7eebcf['joins'][_0x41935f][_0x346ab8('0x74')])&&_0x7eebcf['joins'][_0x41935f][_0x346ab8('0x81')]&&_0x7eebcf[_0x346ab8('0x70')][_0x41935f][_0x346ab8('0x4b')]&&_0x7eebcf[_0x346ab8('0x70')][_0x41935f][_0x346ab8('0x51')]&&_0xde378b[_0x7eebcf['joins'][_0x41935f][_0x346ab8('0x74')]](_0x7eebcf[_0x346ab8('0x70')][_0x41935f][_0x346ab8('0x4b')],null,util[_0x346ab8('0x0')](_0x346ab8('0x9'),_0x7eebcf[_0x346ab8('0x45')],_0x7eebcf['joins'][_0x41935f][_0x346ab8('0x81')],_0x7eebcf[_0x346ab8('0x70')][_0x41935f][_0x346ab8('0x4b')],_0x7eebcf[_0x346ab8('0x70')][_0x41935f]['foreignKey']));}}return _0x7eebcf['conditions']&&(_0x7eebcf[_0x346ab8('0x6b')]=JSON[_0x346ab8('0x31')](_0x7eebcf[_0x346ab8('0x6b')]),_0xde378b[_0x346ab8('0x2c')](_0xd07224(_0x7eebcf[_0x346ab8('0x6b')][_0x346ab8('0x1b')]))),_0x185c4d=_0xde378b[_0x346ab8('0x8b')](),_0xde378b[_0x346ab8('0x80')](_0x54926d),_0xde378b['offset'](0x0),logger[_0x346ab8('0x6')](_0x346ab8('0x55'),_0xde378b[_0x346ab8('0x83')]()),db[_0x346ab8('0x29')][_0x346ab8('0x90')](_0xde378b['toString'](),{'type':db[_0x346ab8('0x29')][_0x346ab8('0x27')]['SELECT']});}})[_0x24ee7b('0x62')](function(){const _0x2d26ed=_0x24ee7b;return{'sql':_0x185c4d[_0x2d26ed('0x83')]()};})[_0x24ee7b('0x62')](respondWithResult(_0x2b4980,null))[_0x24ee7b('0x32')](handleError(_0x2b4980,null));}; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.model.js b/server/api/analyticDefaultReport/analyticDefaultReport.model.js index 83a00d2..fcd8692 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.model.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.model.js @@ -1 +1 @@ -const a10_0x11ca=['analytics_default_reports','./analyticDefaultReport.attributes','exports','AnalyticDefaultReport'];(function(_0x2f41e7,_0x11ca16){const _0x21829a=function(_0x3aff6d){while(--_0x3aff6d){_0x2f41e7['push'](_0x2f41e7['shift']());}};_0x21829a(++_0x11ca16);}(a10_0x11ca,0xf9));const a10_0x2182=function(_0x2f41e7,_0x11ca16){_0x2f41e7=_0x2f41e7-0x0;let _0x21829a=a10_0x11ca[_0x2f41e7];return _0x21829a;};const _0x17a50d=a10_0x2182;'use strict';const attributes=require(_0x17a50d('0x0'));module[_0x17a50d('0x1')]=function(_0x3aff6d){const _0x4fb103=_0x17a50d,_0x3cbfb1=_0x3aff6d['define'](_0x4fb103('0x2'),attributes,{'tableName':_0x4fb103('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3cbfb1;}; \ No newline at end of file +const a10_0x1bfd=['AnalyticDefaultReport','./analyticDefaultReport.attributes'];(function(_0x4e2905,_0x1bfd0c){const _0x215938=function(_0x4c8d31){while(--_0x4c8d31){_0x4e2905['push'](_0x4e2905['shift']());}};_0x215938(++_0x1bfd0c);}(a10_0x1bfd,0x1d8));const a10_0x2159=function(_0x4e2905,_0x1bfd0c){_0x4e2905=_0x4e2905-0x0;let _0x215938=a10_0x1bfd[_0x4e2905];return _0x215938;};const _0x88e2dd=a10_0x2159;'use strict';const attributes=require(_0x88e2dd('0x1'));module['exports']=function(_0x4c8d31){const _0x5e9c23=_0x88e2dd,_0x26add7=_0x4c8d31['define'](_0x5e9c23('0x0'),attributes,{'tableName':'analytics_default_reports','paranoid':![],'indexes':[],'timestamps':!![]});return _0x26add7;}; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/index.js b/server/api/analyticDefaultReport/index.js index 64179a0..c70d7af 100644 --- a/server/api/analyticDefaultReport/index.js +++ b/server/api/analyticDefaultReport/index.js @@ -1 +1 @@ -const a11_0x3ee6=['preview','query','run','destroy','create','/:id','/:id/preview','index','put','delete','post','Router','exports','isAuthenticated','/:id/query','show','get'];(function(_0x593c63,_0x3ee6a9){const _0x2b0bc5=function(_0x508329){while(--_0x508329){_0x593c63['push'](_0x593c63['shift']());}};_0x2b0bc5(++_0x3ee6a9);}(a11_0x3ee6,0x100));const a11_0x2b0b=function(_0x593c63,_0x3ee6a9){_0x593c63=_0x593c63-0x0;let _0x2b0bc5=a11_0x3ee6[_0x593c63];return _0x2b0bc5;};const _0x52b7ad=a11_0x2b0b;'use strict';const express=require('express'),router=express[_0x52b7ad('0xa')](),auth=require('../../components/auth/service'),controller=require('./analyticDefaultReport.controller');router[_0x52b7ad('0xf')]('/',auth[_0x52b7ad('0xc')](),controller[_0x52b7ad('0x6')]),router[_0x52b7ad('0xf')]('/:id',auth[_0x52b7ad('0xc')](),controller[_0x52b7ad('0xe')]),router[_0x52b7ad('0xf')](_0x52b7ad('0x5'),auth[_0x52b7ad('0xc')](),controller[_0x52b7ad('0x10')]),router[_0x52b7ad('0xf')]('/:id/run',auth[_0x52b7ad('0xc')](),controller[_0x52b7ad('0x1')]),router[_0x52b7ad('0xf')](_0x52b7ad('0xd'),auth['isAuthenticated'](),controller[_0x52b7ad('0x0')]),router[_0x52b7ad('0x9')]('/',auth['isAuthenticated'](),controller[_0x52b7ad('0x3')]),router[_0x52b7ad('0x7')](_0x52b7ad('0x4'),auth[_0x52b7ad('0xc')](),controller['update']),router[_0x52b7ad('0x8')](_0x52b7ad('0x4'),auth[_0x52b7ad('0xc')](),controller[_0x52b7ad('0x2')]),module[_0x52b7ad('0xb')]=router; \ No newline at end of file +const a11_0x5505=['create','preview','show','exports','express','/:id','destroy','get','post','update','put','delete','index','/:id/preview','isAuthenticated','/:id/query'];(function(_0x27f64f,_0x5505ab){const _0x34551d=function(_0x1f775e){while(--_0x1f775e){_0x27f64f['push'](_0x27f64f['shift']());}};_0x34551d(++_0x5505ab);}(a11_0x5505,0x72));const a11_0x3455=function(_0x27f64f,_0x5505ab){_0x27f64f=_0x27f64f-0x0;let _0x34551d=a11_0x5505[_0x27f64f];return _0x34551d;};const _0x51d069=a11_0x3455;'use strict';const express=require(_0x51d069('0x2')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./analyticDefaultReport.controller');router[_0x51d069('0x5')]('/',auth[_0x51d069('0xc')](),controller[_0x51d069('0xa')]),router[_0x51d069('0x5')](_0x51d069('0x3'),auth[_0x51d069('0xc')](),controller[_0x51d069('0x0')]),router[_0x51d069('0x5')](_0x51d069('0xb'),auth[_0x51d069('0xc')](),controller[_0x51d069('0xf')]),router['get']('/:id/run',auth[_0x51d069('0xc')](),controller['run']),router['get'](_0x51d069('0xd'),auth[_0x51d069('0xc')](),controller['query']),router[_0x51d069('0x6')]('/',auth['isAuthenticated'](),controller[_0x51d069('0xe')]),router[_0x51d069('0x8')](_0x51d069('0x3'),auth[_0x51d069('0xc')](),controller[_0x51d069('0x7')]),router[_0x51d069('0x9')](_0x51d069('0x3'),auth[_0x51d069('0xc')](),controller[_0x51d069('0x4')]),module[_0x51d069('0x1')]=router; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js index 8b0c15e..eb4d052 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js @@ -1 +1 @@ -const a12_0x1771=['manual','pdf','STRING','exports','ENUM','INTEGER','UNSIGNED','Loading','DATE','xlsx','csv'];(function(_0x5445fb,_0x17714c){const _0x408dda=function(_0x4f5e57){while(--_0x4f5e57){_0x5445fb['push'](_0x5445fb['shift']());}};_0x408dda(++_0x17714c);}(a12_0x1771,0x1f4));const a12_0x408d=function(_0x5445fb,_0x17714c){_0x5445fb=_0x5445fb-0x0;let _0x408dda=a12_0x1771[_0x5445fb];return _0x408dda;};const _0x1f5501=a12_0x408d;'use strict';const Sequelize=require('sequelize');module[_0x1f5501('0x9')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'basename':{'type':Sequelize[_0x1f5501('0x8')],'allowNull':![]},'output':{'type':Sequelize[_0x1f5501('0xa')](_0x1f5501('0x5'),_0x1f5501('0x7'),_0x1f5501('0x4')),'allowNull':![],'defaultValue':_0x1f5501('0x5')},'savename':{'type':Sequelize[_0x1f5501('0x8')],'allowNull':![]},'startDate':{'type':Sequelize[_0x1f5501('0x3')]},'endDate':{'type':Sequelize[_0x1f5501('0x3')]},'status':{'type':Sequelize[_0x1f5501('0x8')],'defaultValue':_0x1f5501('0x2')},'type':{'type':Sequelize[_0x1f5501('0xa')]('manual','scheduled'),'allowNull':![],'defaultValue':_0x1f5501('0x6')},'reportId':{'type':Sequelize[_0x1f5501('0x0')](0xb)[_0x1f5501('0x1')]},'reportType':{'type':Sequelize[_0x1f5501('0x8')]}}; \ No newline at end of file +const a12_0x497a=['pdf','STRING','xlsx','ENUM','manual','csv','scheduled','exports','UNSIGNED'];(function(_0x50fa0,_0x497a58){const _0x1580e6=function(_0x574aed){while(--_0x574aed){_0x50fa0['push'](_0x50fa0['shift']());}};_0x1580e6(++_0x497a58);}(a12_0x497a,0x95));const a12_0x1580=function(_0x50fa0,_0x497a58){_0x50fa0=_0x50fa0-0x0;let _0x1580e6=a12_0x497a[_0x50fa0];return _0x1580e6;};const _0x313b66=a12_0x1580;'use strict';const Sequelize=require('sequelize');module[_0x313b66('0x2')]={'name':{'type':Sequelize[_0x313b66('0x5')],'allowNull':![]},'basename':{'type':Sequelize['STRING'],'allowNull':![]},'output':{'type':Sequelize[_0x313b66('0x7')](_0x313b66('0x0'),_0x313b66('0x4'),_0x313b66('0x6')),'allowNull':![],'defaultValue':_0x313b66('0x0')},'savename':{'type':Sequelize[_0x313b66('0x5')],'allowNull':![]},'startDate':{'type':Sequelize['DATE']},'endDate':{'type':Sequelize['DATE']},'status':{'type':Sequelize[_0x313b66('0x5')],'defaultValue':'Loading'},'type':{'type':Sequelize[_0x313b66('0x7')]('manual',_0x313b66('0x1')),'allowNull':![],'defaultValue':_0x313b66('0x8')},'reportId':{'type':Sequelize['INTEGER'](0xb)[_0x313b66('0x3')]},'reportType':{'type':Sequelize[_0x313b66('0x5')]}}; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js index 371dfe6..865361e 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js @@ -1 +1 @@ -const a13_0x349e=['query','like','set','order','end','catch','merge','fieldName','AnalyticExtractedReport','existsSync','limit','filter','nolimit','model','sendStatus','UserProfileResource','findAll','stack','get','destroy','download','savename','rows','length','rawAttributes','attributes','lodash','then','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Report\x20not\x20found\x20or\x20empty','../../mysqldb','format','body','create','send','count','undefined','json','autoAssociation','offset','sort','../../components/parsers/qs','includeAll','join','output','userProfileId','map','util','type','name','error','include','show','user','exists','pick','Content-Range','update','role','intersection','server/files/reports','root','findOne','../../config/logger','status','path','keys','filters','ExtractedReports','ValidationError','params','../../config/environment','Sequelize','fields','toLowerCase','where','options'];(function(_0x52928d,_0x349ef6){const _0x3d1af4=function(_0x10d27c){while(--_0x10d27c){_0x52928d['push'](_0x52928d['shift']());}};_0x3d1af4(++_0x349ef6);}(a13_0x349e,0x18b));const a13_0x3d1a=function(_0x52928d,_0x349ef6){_0x52928d=_0x52928d-0x0;let _0x3d1af4=a13_0x349e[_0x52928d];return _0x3d1af4;};const _0x2f3fe5=a13_0x3d1a;'use strict';const util=require(_0x2f3fe5('0x25')),path=require(_0x2f3fe5('0x37')),fs=require('fs'),_=require(_0x2f3fe5('0x10')),qs=require(_0x2f3fe5('0x1f')),logger=require(_0x2f3fe5('0x35'))('api'),config=require(_0x2f3fe5('0x3d')),db=require(_0x2f3fe5('0x14'))['db'],{Op}=require('sequelize');function respondWithResult(_0x10d27c,_0x932c51){return _0x932c51=_0x932c51||0xc8,function(_0x3fe633){const _0x3b5dde=a13_0x3d1a;if(_0x3fe633)return _0x10d27c[_0x3b5dde('0x36')](_0x932c51)[_0x3b5dde('0x1b')](_0x3fe633);};}function respondWithFilteredResult(_0x4fb78c,_0x2212a5){return function(_0x3ed0d6){const _0x6673b1=a13_0x3d1a;if(_0x3ed0d6){const _0x9863f4=_0x3ed0d6[_0x6673b1('0x19')],_0x1e4c28=_0x2212a5[_0x6673b1('0x1d')];let _0x2e9ced=_0x2212a5[_0x6673b1('0x1d')]+_0x2212a5['limit'],_0x29a38a;return _0x2e9ced>=_0x9863f4?(_0x2e9ced=_0x9863f4,_0x29a38a=0xc8):_0x29a38a=0xce,_0x4fb78c[_0x6673b1('0x36')](_0x29a38a),_0x4fb78c[_0x6673b1('0x45')](_0x6673b1('0x2e'),_0x1e4c28+'-'+_0x2e9ced+'/'+_0x9863f4)[_0x6673b1('0x1b')](_0x3ed0d6);}return null;};}function saveUpdates(_0xdbddf9){return function(_0x47394d){const _0x19befe=a13_0x3d1a;if(_0x47394d)return _0x47394d['update'](_0xdbddf9)[_0x19befe('0x11')](function(_0x3868d4){return _0x3868d4;});return null;};}function removeEntity(_0x30643d){return function(_0x3981c6){const _0x43799e=a13_0x3d1a;if(_0x3981c6)return _0x3981c6[_0x43799e('0x9')]()[_0x43799e('0x11')](function(){const _0x2d2c13=_0x43799e,_0x500606=_0x3981c6[_0x2d2c13('0x8')]({'plain':!![]}),_0x23bfa6=_0x2d2c13('0x3a');return db[_0x2d2c13('0x5')][_0x2d2c13('0x9')]({'where':{'type':_0x23bfa6,'resourceId':_0x500606['id']}})[_0x2d2c13('0x11')](function(){return _0x3981c6;});})[_0x43799e('0x11')](function(){const _0x53ae3f=_0x43799e;_0x30643d[_0x53ae3f('0x36')](0xcc)[_0x53ae3f('0x47')]();});};}function handleEntityNotFound(_0x100450){return function(_0x501515){const _0x18e3d7=a13_0x3d1a;return!_0x501515&&_0x100450[_0x18e3d7('0x4')](0x194),_0x501515;};}function handleError(_0x7bfe93,_0x9a496e){return _0x9a496e=_0x9a496e||0x1f4,function(_0x4b0ab0){const _0x185fa5=a13_0x3d1a;logger[_0x185fa5('0x28')](_0x4b0ab0[_0x185fa5('0x7')]),_0x4b0ab0[_0x185fa5('0x27')]&&delete _0x4b0ab0[_0x185fa5('0x27')],_0x7bfe93['status'](_0x9a496e)[_0x185fa5('0x18')](_0x4b0ab0);};}exports['index']=function(_0x106547,_0x189e79){const _0x59dcd7=_0x2f3fe5;let _0x1fea04={};const _0x3a8392={},_0x1762ae={'count':0x0,'rows':[]},_0x142bb0=_['map'](db['AnalyticExtractedReport']['rawAttributes'],function(_0x1de1f3){const _0x12b602=a13_0x3d1a;return{'name':_0x1de1f3[_0x12b602('0x4a')],'type':_0x1de1f3[_0x12b602('0x26')]['key']};});_0x3a8392[_0x59dcd7('0x3')]=_[_0x59dcd7('0x24')](_0x142bb0,_0x59dcd7('0x27')),_0x3a8392['query']=_[_0x59dcd7('0x38')](_0x106547['query']),_0x3a8392[_0x59dcd7('0x39')]=_[_0x59dcd7('0x31')](_0x3a8392[_0x59dcd7('0x3')],_0x3a8392['query']),_0x1fea04['attributes']=_[_0x59dcd7('0x31')](_0x3a8392[_0x59dcd7('0x3')],qs[_0x59dcd7('0x3f')](_0x106547[_0x59dcd7('0x43')][_0x59dcd7('0x3f')])),_0x1fea04[_0x59dcd7('0xf')]=_0x1fea04['attributes']['length']?_0x1fea04['attributes']:_0x3a8392['model'];typeof _0x106547['query'][_0x59dcd7('0x2')]===_0x59dcd7('0x1a')&&(_0x1fea04[_0x59dcd7('0x0')]=qs['limit'](_0x106547[_0x59dcd7('0x43')][_0x59dcd7('0x0')]),_0x1fea04['offset']=qs[_0x59dcd7('0x1d')](_0x106547[_0x59dcd7('0x43')]['offset']));_0x1fea04[_0x59dcd7('0x46')]=qs[_0x59dcd7('0x1e')](_0x106547[_0x59dcd7('0x43')][_0x59dcd7('0x1e')]),_0x1fea04[_0x59dcd7('0x41')]=qs[_0x59dcd7('0x39')](_[_0x59dcd7('0x2d')](_0x106547[_0x59dcd7('0x43')],_0x3a8392[_0x59dcd7('0x39')]),_0x142bb0);_0x106547['query'][_0x59dcd7('0x1')]&&(_0x1fea04[_0x59dcd7('0x41')]=_[_0x59dcd7('0x49')](_0x1fea04[_0x59dcd7('0x41')],{[Op['or']]:_[_0x59dcd7('0x24')](_0x142bb0,function(_0x253921){const _0x26757c=_0x59dcd7;if(_0x253921[_0x26757c('0x26')]!=='VIRTUAL'){const _0x3bee84={};return _0x3bee84[_0x253921[_0x26757c('0x27')]]={[Op[_0x26757c('0x44')]]:'%'+_0x106547[_0x26757c('0x43')][_0x26757c('0x1')]+'%'},_0x3bee84;}})}));_0x1fea04=_[_0x59dcd7('0x49')]({},_0x1fea04,_0x106547[_0x59dcd7('0x42')]);const _0x270d19={'where':_0x1fea04[_0x59dcd7('0x41')]};return db[_0x59dcd7('0x4b')][_0x59dcd7('0x19')](_0x270d19)[_0x59dcd7('0x11')](function(_0x2149de){const _0x187be6=_0x59dcd7;return _0x1762ae['count']=_0x2149de,_0x106547[_0x187be6('0x43')][_0x187be6('0x20')]&&(_0x1fea04[_0x187be6('0x29')]=[{'all':!![]}]),db['AnalyticExtractedReport'][_0x187be6('0x6')](_0x1fea04);})[_0x59dcd7('0x11')](function(_0x5e0c02){const _0x418217=_0x59dcd7;return _0x1762ae[_0x418217('0xc')]=_0x5e0c02,_0x1762ae;})[_0x59dcd7('0x11')](respondWithFilteredResult(_0x189e79,_0x1fea04))[_0x59dcd7('0x48')](handleError(_0x189e79,null));},exports[_0x2f3fe5('0x2a')]=function(_0x6ccee7,_0x3e0280){const _0x1908e4=_0x2f3fe5;let _0x16ae5c={'raw':!![],'where':{'id':_0x6ccee7[_0x1908e4('0x3c')]['id']}};const _0x434495={};return _0x434495[_0x1908e4('0x3')]=_[_0x1908e4('0x38')](db[_0x1908e4('0x4b')][_0x1908e4('0xe')]),_0x434495[_0x1908e4('0x43')]=_['keys'](_0x6ccee7[_0x1908e4('0x43')]),_0x434495['filters']=_[_0x1908e4('0x31')](_0x434495[_0x1908e4('0x3')],_0x434495[_0x1908e4('0x43')]),_0x16ae5c[_0x1908e4('0xf')]=_['intersection'](_0x434495[_0x1908e4('0x3')],qs[_0x1908e4('0x3f')](_0x6ccee7[_0x1908e4('0x43')][_0x1908e4('0x3f')])),_0x16ae5c['attributes']=_0x16ae5c[_0x1908e4('0xf')][_0x1908e4('0xd')]?_0x16ae5c[_0x1908e4('0xf')]:_0x434495[_0x1908e4('0x3')],_0x6ccee7[_0x1908e4('0x43')][_0x1908e4('0x20')]&&(_0x16ae5c[_0x1908e4('0x29')]=[{'all':!![]}]),_0x16ae5c=_[_0x1908e4('0x49')]({},_0x16ae5c,_0x6ccee7[_0x1908e4('0x42')]),db[_0x1908e4('0x4b')][_0x1908e4('0x34')](_0x16ae5c)[_0x1908e4('0x11')](handleEntityNotFound(_0x3e0280,null))[_0x1908e4('0x11')](respondWithResult(_0x3e0280,null))['catch'](handleError(_0x3e0280,null));},exports[_0x2f3fe5('0x17')]=function(_0x2e5a16,_0x3a4cbe){const _0x28b432=_0x2f3fe5;return db[_0x28b432('0x4b')][_0x28b432('0x17')](_0x2e5a16[_0x28b432('0x16')],{})[_0x28b432('0x11')](function(_0x6e100e){const _0x1aedf3=_0x28b432,_0x2287da=_0x2e5a16['user'][_0x1aedf3('0x8')]({'plain':!![]});if(!_0x2287da)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2287da[_0x1aedf3('0x30')]===_0x1aedf3('0x2b')){const _0x418f6f=_0x6e100e[_0x1aedf3('0x8')]({'plain':!![]}),_0x1cdc29=_0x1aedf3('0x3a');return db['UserProfileSection'][_0x1aedf3('0x34')]({'where':{'name':_0x1cdc29,'userProfileId':_0x2287da[_0x1aedf3('0x23')]},'raw':!![]})['then'](function(_0x54a3b4){const _0x46198c=_0x1aedf3;return _0x54a3b4&&_0x54a3b4[_0x46198c('0x1c')]===0x0?db[_0x46198c('0x5')]['create']({'name':_0x418f6f[_0x46198c('0x27')],'resourceId':_0x418f6f['id'],'type':_0x54a3b4[_0x46198c('0x27')],'sectionId':_0x54a3b4['id']},{})[_0x46198c('0x11')](function(){return _0x6e100e;}):_0x6e100e;})[_0x1aedf3('0x48')](function(_0x337489){const _0xa9e13c=_0x1aedf3;logger[_0xa9e13c('0x28')](_0xa9e13c('0x12'),_0x337489);throw _0x337489;});}return _0x6e100e;})[_0x28b432('0x11')](respondWithResult(_0x3a4cbe,0xc9))['catch'](handleError(_0x3a4cbe,null));},exports[_0x2f3fe5('0x2f')]=function(_0x45ef83,_0x2b3630){const _0x52cf1c=_0x2f3fe5;return _0x45ef83[_0x52cf1c('0x16')]['id']&&delete _0x45ef83[_0x52cf1c('0x16')]['id'],db[_0x52cf1c('0x4b')][_0x52cf1c('0x34')]({'where':{'id':_0x45ef83[_0x52cf1c('0x3c')]['id']}})['then'](handleEntityNotFound(_0x2b3630,null))['then'](saveUpdates(_0x45ef83[_0x52cf1c('0x16')],null))[_0x52cf1c('0x11')](respondWithResult(_0x2b3630,null))[_0x52cf1c('0x48')](handleError(_0x2b3630,null));},exports['destroy']=function(_0x3bb694,_0x3a1b45){const _0x1137e8=_0x2f3fe5;return db[_0x1137e8('0x4b')][_0x1137e8('0x34')]({'where':{'id':_0x3bb694[_0x1137e8('0x3c')]['id']}})[_0x1137e8('0x11')](handleEntityNotFound(_0x3a1b45,null))[_0x1137e8('0x11')](removeEntity(_0x3a1b45,null))[_0x1137e8('0x48')](handleError(_0x3a1b45,null));},exports['download']=function(_0x1698dc,_0x21c462){const _0x3c9d27=_0x2f3fe5;return db['AnalyticExtractedReport']['findOne']({'where':{'id':_0x1698dc['params']['id']},'attributes':['name','basename',_0x3c9d27('0xb'),_0x3c9d27('0x22')],'raw':!![]})[_0x3c9d27('0x11')](handleEntityNotFound(_0x21c462,null))[_0x3c9d27('0x11')](function(_0x401c7c){const _0x389399=_0x3c9d27;if(_0x401c7c){if(!fs[_0x389399('0x4c')](path['join'](config[_0x389399('0x33')],_0x389399('0x32'),_0x401c7c[_0x389399('0xb')])))throw new db[(_0x389399('0x3e'))][(_0x389399('0x3b'))](_0x389399('0x13'));if(_0x1698dc[_0x389399('0x43')][_0x389399('0x2c')])return _0x21c462[_0x389399('0x4')](0xc8);return _0x21c462[_0x389399('0xa')](path[_0x389399('0x21')](config['root'],_0x389399('0x32'),_0x401c7c[_0x389399('0xb')]),util[_0x389399('0x15')]('%s.%s',_0x401c7c['basename']||_0x401c7c[_0x389399('0x27')],_0x401c7c[_0x389399('0x22')][_0x389399('0x40')]()));}})[_0x3c9d27('0x48')](handleError(_0x21c462,null));}; \ No newline at end of file +const a13_0x1513=['findAll','fieldName','download','../../components/parsers/qs','filter','existsSync','status','root','map','rows','output','util','basename','stack','findOne','include','includeAll','ExtractedReports','../../config/environment','offset','undefined','../../config/logger','user','create','query','sort','like','catch','../../mysqldb','then','UserProfileResource','pick','model','set','length','filters','json','role','server/files/reports','keys','savename','VIRTUAL','fields','Unable\x20to\x20retrieve\x20the\x20current\x20user','show','ValidationError','options','order','body','key','sendStatus','toLowerCase','where','path','type','destroy','lodash','limit','update','sequelize','attributes','AnalyticExtractedReport','join','params','count','get','nolimit','intersection','name','rawAttributes','merge'];(function(_0x39908a,_0x1513e7){const _0x5a1e45=function(_0x2b554c){while(--_0x2b554c){_0x39908a['push'](_0x39908a['shift']());}};_0x5a1e45(++_0x1513e7);}(a13_0x1513,0x1ca));const a13_0x5a1e=function(_0x39908a,_0x1513e7){_0x39908a=_0x39908a-0x0;let _0x5a1e45=a13_0x1513[_0x39908a];return _0x5a1e45;};const _0x37de4b=a13_0x5a1e;'use strict';const util=require(_0x37de4b('0x32')),path=require(_0x37de4b('0x15')),fs=require('fs'),_=require(_0x37de4b('0x18')),qs=require(_0x37de4b('0x2a')),logger=require(_0x37de4b('0x3c'))('api'),config=require(_0x37de4b('0x39')),db=require(_0x37de4b('0x43'))['db'],{Op}=require(_0x37de4b('0x1b'));function respondWithResult(_0x2b554c,_0x277971){return _0x277971=_0x277971||0xc8,function(_0x33d383){const _0x2beee3=a13_0x5a1e;if(_0x33d383)return _0x2b554c[_0x2beee3('0x2d')](_0x277971)[_0x2beee3('0x4')](_0x33d383);};}function respondWithFilteredResult(_0x5acee0,_0x5f1af){return function(_0x3ba399){const _0x5302af=a13_0x5a1e;if(_0x3ba399){const _0x886772=_0x3ba399['count'],_0x4a3fd6=_0x5f1af[_0x5302af('0x3a')];let _0x15a6d7=_0x5f1af[_0x5302af('0x3a')]+_0x5f1af[_0x5302af('0x19')],_0x345dc0;return _0x15a6d7>=_0x886772?(_0x15a6d7=_0x886772,_0x345dc0=0xc8):_0x345dc0=0xce,_0x5acee0[_0x5302af('0x2d')](_0x345dc0),_0x5acee0[_0x5302af('0x1')]('Content-Range',_0x4a3fd6+'-'+_0x15a6d7+'/'+_0x886772)[_0x5302af('0x4')](_0x3ba399);}return null;};}function saveUpdates(_0x32e29b){return function(_0x2fdbb2){const _0x3855ac=a13_0x5a1e;if(_0x2fdbb2)return _0x2fdbb2[_0x3855ac('0x1a')](_0x32e29b)[_0x3855ac('0x44')](function(_0x2880b5){return _0x2880b5;});return null;};}function removeEntity(_0x254ffe){return function(_0x47cccf){const _0x17d779=a13_0x5a1e;if(_0x47cccf)return _0x47cccf[_0x17d779('0x17')]()[_0x17d779('0x44')](function(){const _0xc6acbc=_0x17d779,_0x1add09=_0x47cccf[_0xc6acbc('0x21')]({'plain':!![]}),_0x59629c=_0xc6acbc('0x38');return db[_0xc6acbc('0x45')][_0xc6acbc('0x17')]({'where':{'type':_0x59629c,'resourceId':_0x1add09['id']}})[_0xc6acbc('0x44')](function(){return _0x47cccf;});})['then'](function(){const _0x7d73ba=_0x17d779;_0x254ffe[_0x7d73ba('0x2d')](0xcc)['end']();});};}function handleEntityNotFound(_0xfeccb5){return function(_0x336d55){const _0x1ec018=a13_0x5a1e;return!_0x336d55&&_0xfeccb5[_0x1ec018('0x12')](0x194),_0x336d55;};}function handleError(_0x50bd70,_0x1426b1){return _0x1426b1=_0x1426b1||0x1f4,function(_0x24ac41){const _0xf6cb44=a13_0x5a1e;logger['error'](_0x24ac41[_0xf6cb44('0x34')]),_0x24ac41['name']&&delete _0x24ac41[_0xf6cb44('0x24')],_0x50bd70['status'](_0x1426b1)['send'](_0x24ac41);};}exports['index']=function(_0x147826,_0xaf9bd6){const _0x2d822f=_0x37de4b;let _0x2f2165={};const _0x512c0e={},_0x519f81={'count':0x0,'rows':[]},_0xa055a2=_[_0x2d822f('0x2f')](db[_0x2d822f('0x1d')][_0x2d822f('0x25')],function(_0x1c0a43){const _0x39622f=_0x2d822f;return{'name':_0x1c0a43[_0x39622f('0x28')],'type':_0x1c0a43[_0x39622f('0x16')][_0x39622f('0x11')]};});_0x512c0e[_0x2d822f('0x0')]=_['map'](_0xa055a2,_0x2d822f('0x24')),_0x512c0e[_0x2d822f('0x3f')]=_[_0x2d822f('0x7')](_0x147826[_0x2d822f('0x3f')]),_0x512c0e[_0x2d822f('0x3')]=_[_0x2d822f('0x23')](_0x512c0e[_0x2d822f('0x0')],_0x512c0e[_0x2d822f('0x3f')]),_0x2f2165[_0x2d822f('0x1c')]=_[_0x2d822f('0x23')](_0x512c0e[_0x2d822f('0x0')],qs['fields'](_0x147826[_0x2d822f('0x3f')]['fields'])),_0x2f2165[_0x2d822f('0x1c')]=_0x2f2165[_0x2d822f('0x1c')][_0x2d822f('0x2')]?_0x2f2165[_0x2d822f('0x1c')]:_0x512c0e['model'];typeof _0x147826[_0x2d822f('0x3f')][_0x2d822f('0x22')]===_0x2d822f('0x3b')&&(_0x2f2165['limit']=qs[_0x2d822f('0x19')](_0x147826[_0x2d822f('0x3f')][_0x2d822f('0x19')]),_0x2f2165[_0x2d822f('0x3a')]=qs[_0x2d822f('0x3a')](_0x147826[_0x2d822f('0x3f')][_0x2d822f('0x3a')]));_0x2f2165[_0x2d822f('0xf')]=qs[_0x2d822f('0x40')](_0x147826['query'][_0x2d822f('0x40')]),_0x2f2165[_0x2d822f('0x14')]=qs[_0x2d822f('0x3')](_[_0x2d822f('0x46')](_0x147826[_0x2d822f('0x3f')],_0x512c0e['filters']),_0xa055a2);_0x147826[_0x2d822f('0x3f')][_0x2d822f('0x2b')]&&(_0x2f2165[_0x2d822f('0x14')]=_[_0x2d822f('0x26')](_0x2f2165[_0x2d822f('0x14')],{[Op['or']]:_[_0x2d822f('0x2f')](_0xa055a2,function(_0xf26363){const _0x13fe45=_0x2d822f;if(_0xf26363[_0x13fe45('0x16')]!==_0x13fe45('0x9')){const _0x42853f={};return _0x42853f[_0xf26363[_0x13fe45('0x24')]]={[Op[_0x13fe45('0x41')]]:'%'+_0x147826['query'][_0x13fe45('0x2b')]+'%'},_0x42853f;}})}));_0x2f2165=_[_0x2d822f('0x26')]({},_0x2f2165,_0x147826['options']);const _0x50084e={'where':_0x2f2165[_0x2d822f('0x14')]};return db[_0x2d822f('0x1d')][_0x2d822f('0x20')](_0x50084e)[_0x2d822f('0x44')](function(_0x6f20f7){const _0x10c565=_0x2d822f;return _0x519f81[_0x10c565('0x20')]=_0x6f20f7,_0x147826[_0x10c565('0x3f')][_0x10c565('0x37')]&&(_0x2f2165[_0x10c565('0x36')]=[{'all':!![]}]),db[_0x10c565('0x1d')][_0x10c565('0x27')](_0x2f2165);})[_0x2d822f('0x44')](function(_0x26d72c){const _0x423901=_0x2d822f;return _0x519f81[_0x423901('0x30')]=_0x26d72c,_0x519f81;})[_0x2d822f('0x44')](respondWithFilteredResult(_0xaf9bd6,_0x2f2165))[_0x2d822f('0x42')](handleError(_0xaf9bd6,null));},exports[_0x37de4b('0xc')]=function(_0x3b0dee,_0x5249d6){const _0x316e46=_0x37de4b;let _0x2f5511={'raw':!![],'where':{'id':_0x3b0dee['params']['id']}};const _0x56007b={};return _0x56007b[_0x316e46('0x0')]=_['keys'](db[_0x316e46('0x1d')][_0x316e46('0x25')]),_0x56007b[_0x316e46('0x3f')]=_[_0x316e46('0x7')](_0x3b0dee[_0x316e46('0x3f')]),_0x56007b[_0x316e46('0x3')]=_['intersection'](_0x56007b[_0x316e46('0x0')],_0x56007b[_0x316e46('0x3f')]),_0x2f5511['attributes']=_[_0x316e46('0x23')](_0x56007b[_0x316e46('0x0')],qs[_0x316e46('0xa')](_0x3b0dee[_0x316e46('0x3f')][_0x316e46('0xa')])),_0x2f5511['attributes']=_0x2f5511[_0x316e46('0x1c')][_0x316e46('0x2')]?_0x2f5511['attributes']:_0x56007b[_0x316e46('0x0')],_0x3b0dee['query'][_0x316e46('0x37')]&&(_0x2f5511[_0x316e46('0x36')]=[{'all':!![]}]),_0x2f5511=_[_0x316e46('0x26')]({},_0x2f5511,_0x3b0dee[_0x316e46('0xe')]),db[_0x316e46('0x1d')][_0x316e46('0x35')](_0x2f5511)['then'](handleEntityNotFound(_0x5249d6,null))[_0x316e46('0x44')](respondWithResult(_0x5249d6,null))[_0x316e46('0x42')](handleError(_0x5249d6,null));},exports['create']=function(_0x3b018a,_0xd65f0b){const _0x2a7e5d=_0x37de4b;return db['AnalyticExtractedReport'][_0x2a7e5d('0x3e')](_0x3b018a[_0x2a7e5d('0x10')],{})[_0x2a7e5d('0x44')](function(_0x4cef8f){const _0x18c57b=_0x2a7e5d,_0xad0fb9=_0x3b018a[_0x18c57b('0x3d')][_0x18c57b('0x21')]({'plain':!![]});if(!_0xad0fb9)throw new Error(_0x18c57b('0xb'));if(_0xad0fb9[_0x18c57b('0x5')]===_0x18c57b('0x3d')){const _0x5a40c=_0x4cef8f[_0x18c57b('0x21')]({'plain':!![]}),_0x534770=_0x18c57b('0x38');return db['UserProfileSection'][_0x18c57b('0x35')]({'where':{'name':_0x534770,'userProfileId':_0xad0fb9['userProfileId']},'raw':!![]})['then'](function(_0xc822d1){const _0x3f7788=_0x18c57b;return _0xc822d1&&_0xc822d1['autoAssociation']===0x0?db[_0x3f7788('0x45')]['create']({'name':_0x5a40c[_0x3f7788('0x24')],'resourceId':_0x5a40c['id'],'type':_0xc822d1['name'],'sectionId':_0xc822d1['id']},{})[_0x3f7788('0x44')](function(){return _0x4cef8f;}):_0x4cef8f;})[_0x18c57b('0x42')](function(_0x26db22){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x26db22);throw _0x26db22;});}return _0x4cef8f;})[_0x2a7e5d('0x44')](respondWithResult(_0xd65f0b,0xc9))[_0x2a7e5d('0x42')](handleError(_0xd65f0b,null));},exports[_0x37de4b('0x1a')]=function(_0x39e47d,_0x316da8){const _0x2f2f18=_0x37de4b;return _0x39e47d['body']['id']&&delete _0x39e47d['body']['id'],db[_0x2f2f18('0x1d')][_0x2f2f18('0x35')]({'where':{'id':_0x39e47d[_0x2f2f18('0x1f')]['id']}})[_0x2f2f18('0x44')](handleEntityNotFound(_0x316da8,null))[_0x2f2f18('0x44')](saveUpdates(_0x39e47d['body'],null))[_0x2f2f18('0x44')](respondWithResult(_0x316da8,null))[_0x2f2f18('0x42')](handleError(_0x316da8,null));},exports[_0x37de4b('0x17')]=function(_0x3ba687,_0x2e7426){const _0x5cf7fe=_0x37de4b;return db[_0x5cf7fe('0x1d')][_0x5cf7fe('0x35')]({'where':{'id':_0x3ba687[_0x5cf7fe('0x1f')]['id']}})[_0x5cf7fe('0x44')](handleEntityNotFound(_0x2e7426,null))[_0x5cf7fe('0x44')](removeEntity(_0x2e7426,null))[_0x5cf7fe('0x42')](handleError(_0x2e7426,null));},exports[_0x37de4b('0x29')]=function(_0xf41abb,_0x392870){const _0x15c316=_0x37de4b;return db[_0x15c316('0x1d')][_0x15c316('0x35')]({'where':{'id':_0xf41abb[_0x15c316('0x1f')]['id']},'attributes':['name',_0x15c316('0x33'),'savename',_0x15c316('0x31')],'raw':!![]})['then'](handleEntityNotFound(_0x392870,null))[_0x15c316('0x44')](function(_0x57741a){const _0x1216be=_0x15c316;if(_0x57741a){if(!fs[_0x1216be('0x2c')](path['join'](config[_0x1216be('0x2e')],_0x1216be('0x6'),_0x57741a[_0x1216be('0x8')])))throw new db['Sequelize'][(_0x1216be('0xd'))]('Report\x20not\x20found\x20or\x20empty');if(_0xf41abb[_0x1216be('0x3f')]['exists'])return _0x392870['sendStatus'](0xc8);return _0x392870['download'](path[_0x1216be('0x1e')](config[_0x1216be('0x2e')],_0x1216be('0x6'),_0x57741a[_0x1216be('0x8')]),util['format']('%s.%s',_0x57741a[_0x1216be('0x33')]||_0x57741a['name'],_0x57741a['output'][_0x1216be('0x13')]()));}})[_0x15c316('0x42')](handleError(_0x392870,null));}; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.model.js b/server/api/analyticExtractedReport/analyticExtractedReport.model.js index 8683a58..0c8f635 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.model.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.model.js @@ -1 +1 @@ -const a14_0x5c3b=['AnalyticExtractedReport','define','exports','./analyticExtractedReport.attributes','analytics_extracted_reports'];(function(_0x2efa9b,_0x5c3bf5){const _0x5669bd=function(_0x577dda){while(--_0x577dda){_0x2efa9b['push'](_0x2efa9b['shift']());}};_0x5669bd(++_0x5c3bf5);}(a14_0x5c3b,0x1e6));const a14_0x5669=function(_0x2efa9b,_0x5c3bf5){_0x2efa9b=_0x2efa9b-0x0;let _0x5669bd=a14_0x5c3b[_0x2efa9b];return _0x5669bd;};const _0x370694=a14_0x5669;'use strict';const attributes=require(_0x370694('0x2'));module[_0x370694('0x1')]=function(_0x577dda){const _0x3df563=_0x370694,_0x3bc322=_0x577dda[_0x3df563('0x0')](_0x3df563('0x4'),attributes,{'tableName':_0x3df563('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3bc322;}; \ No newline at end of file +const a14_0x5e30=['define','exports','AnalyticExtractedReport'];(function(_0x517066,_0x5e300a){const _0xdd206a=function(_0x11e9fa){while(--_0x11e9fa){_0x517066['push'](_0x517066['shift']());}};_0xdd206a(++_0x5e300a);}(a14_0x5e30,0x82));const a14_0xdd20=function(_0x517066,_0x5e300a){_0x517066=_0x517066-0x0;let _0xdd206a=a14_0x5e30[_0x517066];return _0xdd206a;};const _0x4bf39b=a14_0xdd20;'use strict';const attributes=require('./analyticExtractedReport.attributes');module[_0x4bf39b('0x0')]=function(_0x11e9fa){const _0x5225d8=_0x4bf39b,_0x492b17=_0x11e9fa[_0x5225d8('0x2')](_0x5225d8('0x1'),attributes,{'tableName':'analytics_extracted_reports','paranoid':![],'indexes':[],'timestamps':!![]});return _0x492b17;}; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/index.js b/server/api/analyticExtractedReport/index.js index 7a1e1e4..9dedb8a 100644 --- a/server/api/analyticExtractedReport/index.js +++ b/server/api/analyticExtractedReport/index.js @@ -1 +1 @@ -const a15_0x51f9=['get','../../components/auth/service','index','Router','show','post','./analyticExtractedReport.controller','express','delete','update','isAuthenticated','exports','/:id','create'];(function(_0x2d6b11,_0x51f930){const _0x15c72e=function(_0x3ec311){while(--_0x3ec311){_0x2d6b11['push'](_0x2d6b11['shift']());}};_0x15c72e(++_0x51f930);}(a15_0x51f9,0x1d9));const a15_0x15c7=function(_0x2d6b11,_0x51f930){_0x2d6b11=_0x2d6b11-0x0;let _0x15c72e=a15_0x51f9[_0x2d6b11];return _0x15c72e;};const _0x17bfaa=a15_0x15c7;'use strict';const express=require(_0x17bfaa('0xa')),router=express[_0x17bfaa('0x6')](),auth=require(_0x17bfaa('0x4')),controller=require(_0x17bfaa('0x9'));router[_0x17bfaa('0x3')]('/',auth[_0x17bfaa('0xd')](),controller[_0x17bfaa('0x5')]),router[_0x17bfaa('0x3')]('/:id',auth['isAuthenticated'](),controller[_0x17bfaa('0x7')]),router[_0x17bfaa('0x3')]('/:id/download',auth[_0x17bfaa('0xd')](),controller['download']),router[_0x17bfaa('0x8')]('/',auth[_0x17bfaa('0xd')](),controller[_0x17bfaa('0x2')]),router['put'](_0x17bfaa('0x1'),auth['isAuthenticated'](),controller[_0x17bfaa('0xc')]),router[_0x17bfaa('0xb')](_0x17bfaa('0x1'),auth[_0x17bfaa('0xd')](),controller['destroy']),module[_0x17bfaa('0x0')]=router; \ No newline at end of file +const a15_0x2e2c=['delete','update','post','/:id/download','express','put','../../components/auth/service','isAuthenticated','index','destroy','download','create','show','./analyticExtractedReport.controller','get','Router','exports','/:id'];(function(_0x54bf01,_0x2e2c92){const _0x137c28=function(_0x1ecf56){while(--_0x1ecf56){_0x54bf01['push'](_0x54bf01['shift']());}};_0x137c28(++_0x2e2c92);}(a15_0x2e2c,0x1f3));const a15_0x137c=function(_0x54bf01,_0x2e2c92){_0x54bf01=_0x54bf01-0x0;let _0x137c28=a15_0x2e2c[_0x54bf01];return _0x137c28;};const _0x4ae606=a15_0x137c;'use strict';const express=require(_0x4ae606('0x9')),router=express[_0x4ae606('0x2')](),auth=require(_0x4ae606('0xb')),controller=require(_0x4ae606('0x0'));router[_0x4ae606('0x1')]('/',auth[_0x4ae606('0xc')](),controller[_0x4ae606('0xd')]),router[_0x4ae606('0x1')]('/:id',auth[_0x4ae606('0xc')](),controller[_0x4ae606('0x11')]),router['get'](_0x4ae606('0x8'),auth[_0x4ae606('0xc')](),controller[_0x4ae606('0xf')]),router[_0x4ae606('0x7')]('/',auth[_0x4ae606('0xc')](),controller[_0x4ae606('0x10')]),router[_0x4ae606('0xa')](_0x4ae606('0x4'),auth['isAuthenticated'](),controller[_0x4ae606('0x6')]),router[_0x4ae606('0x5')](_0x4ae606('0x4'),auth['isAuthenticated'](),controller[_0x4ae606('0xe')]),module[_0x4ae606('0x3')]=router; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.attributes.js b/server/api/analyticFieldReport/analyticFieldReport.attributes.js index 52b2bbf..b1afe00 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.attributes.js +++ b/server/api/analyticFieldReport/analyticFieldReport.attributes.js @@ -1 +1 @@ -const a16_0x5c7b=['sequelize','STRING','exports','BOOLEAN','TEXT'];(function(_0x128363,_0x5c7bbf){const _0x23f141=function(_0x135f66){while(--_0x135f66){_0x128363['push'](_0x128363['shift']());}};_0x23f141(++_0x5c7bbf);}(a16_0x5c7b,0x10e));const a16_0x23f1=function(_0x128363,_0x5c7bbf){_0x128363=_0x128363-0x0;let _0x23f141=a16_0x5c7b[_0x128363];return _0x23f141;};const _0x3f44dc=a16_0x23f1;'use strict';const Sequelize=require(_0x3f44dc('0x0'));module[_0x3f44dc('0x2')]={'field':{'type':Sequelize[_0x3f44dc('0x4')]},'alias':{'type':Sequelize[_0x3f44dc('0x1')]},'function':{'type':Sequelize['STRING']},'format':{'type':Sequelize[_0x3f44dc('0x1')]},'groupBy':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'orderBy':{'type':Sequelize[_0x3f44dc('0x1')]},'custom':{'type':Sequelize[_0x3f44dc('0x3')],'defaultValue':![]}}; \ No newline at end of file +const a16_0x269e=['TEXT','BOOLEAN','exports','STRING','sequelize'];(function(_0x295cb3,_0x269e2e){const _0x1dd404=function(_0xbf715d){while(--_0xbf715d){_0x295cb3['push'](_0x295cb3['shift']());}};_0x1dd404(++_0x269e2e);}(a16_0x269e,0x1d7));const a16_0x1dd4=function(_0x295cb3,_0x269e2e){_0x295cb3=_0x295cb3-0x0;let _0x1dd404=a16_0x269e[_0x295cb3];return _0x1dd404;};const _0x60b882=a16_0x1dd4;'use strict';const Sequelize=require(_0x60b882('0x3'));module[_0x60b882('0x1')]={'field':{'type':Sequelize[_0x60b882('0x4')]},'alias':{'type':Sequelize[_0x60b882('0x2')]},'function':{'type':Sequelize['STRING']},'format':{'type':Sequelize[_0x60b882('0x2')]},'groupBy':{'type':Sequelize[_0x60b882('0x0')],'defaultValue':![]},'orderBy':{'type':Sequelize[_0x60b882('0x2')]},'custom':{'type':Sequelize[_0x60b882('0x0')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.controller.js b/server/api/analyticFieldReport/analyticFieldReport.controller.js index 3cb1901..bd525ac 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.controller.js +++ b/server/api/analyticFieldReport/analyticFieldReport.controller.js @@ -1 +1 @@ -const a17_0x4f20=['filters','error','stack','options','lodash','attributes','merge','sort','body','addFields','type','../../mysqldb','includeAll','catch','model','AnalyticFieldReport','params','end','transaction','then','findOne','sequelize','count','json','fields','key','undefined','sendStatus','findAll','AnalyticCustomReport','intersection','order','update','create','map','bulkCreate','set','api','name','rawAttributes','limit','offset','keys','length','VIRTUAL','status','index','query','ids','where','CustomReportId','pick','filter','destroy','fieldName','like'];(function(_0x771280,_0x4f2015){const _0x140ae9=function(_0x265dfb){while(--_0x265dfb){_0x771280['push'](_0x771280['shift']());}};_0x140ae9(++_0x4f2015);}(a17_0x4f20,0x89));const a17_0x140a=function(_0x771280,_0x4f2015){_0x771280=_0x771280-0x0;let _0x140ae9=a17_0x4f20[_0x771280];return _0x140ae9;};const _0x49cd66=a17_0x140a;'use strict';const _=require(_0x49cd66('0x23')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x49cd66('0xc')),db=require(_0x49cd66('0x2a'))['db'],{Op}=require(_0x49cd66('0x34'));function respondWithResult(_0x265dfb,_0x1cef77){return _0x1cef77=_0x1cef77||0xc8,function(_0x2af0dc){const _0x523726=a17_0x140a;if(_0x2af0dc)return _0x265dfb[_0x523726('0x14')](_0x1cef77)['json'](_0x2af0dc);};}function respondWithFilteredResult(_0x4f9aa8,_0xa1ba58){return function(_0xfad852){const _0x218cf7=a17_0x140a;if(_0xfad852){const _0x216894=_0xfad852[_0x218cf7('0x35')],_0x1f39b5=_0xa1ba58[_0x218cf7('0x10')];let _0x33fae5=_0xa1ba58['offset']+_0xa1ba58[_0x218cf7('0xf')],_0x269afe;return _0x33fae5>=_0x216894?(_0x33fae5=_0x216894,_0x269afe=0xc8):_0x269afe=0xce,_0x4f9aa8[_0x218cf7('0x14')](_0x269afe),_0x4f9aa8[_0x218cf7('0xb')]('Content-Range',_0x1f39b5+'-'+_0x33fae5+'/'+_0x216894)[_0x218cf7('0x36')](_0xfad852);}return null;};}function saveUpdates(_0x32eed9){return function(_0x4f541a){const _0x58faf9=a17_0x140a;if(_0x4f541a)return _0x4f541a[_0x58faf9('0x7')](_0x32eed9)['then'](function(_0x59ae56){return _0x59ae56;});return null;};}function removeEntity(_0x4ad3d6){return function(_0x24f85b){const _0x4b6613=a17_0x140a;if(_0x24f85b)return _0x24f85b[_0x4b6613('0x1c')]()[_0x4b6613('0x32')](function(){const _0x172993=_0x4b6613;_0x4ad3d6[_0x172993('0x14')](0xcc)[_0x172993('0x30')]();});};}function handleEntityNotFound(_0x25f17f){return function(_0x1be8f5){const _0x483369=a17_0x140a;return!_0x1be8f5&&_0x25f17f[_0x483369('0x2')](0x194),_0x1be8f5;};}function handleError(_0xb66ddb,_0x57c885){return _0x57c885=_0x57c885||0x1f4,function(_0x30032a){const _0x12bcea=a17_0x140a;logger[_0x12bcea('0x20')](_0x30032a[_0x12bcea('0x21')]),_0x30032a['name']&&delete _0x30032a[_0x12bcea('0xd')],_0xb66ddb[_0x12bcea('0x14')](_0x57c885)['send'](_0x30032a);};}exports[_0x49cd66('0x15')]=function(_0x27479e,_0xe70283){const _0xddae66=_0x49cd66;let _0xb4489f={};const _0x40e88b={},_0x1358f4={'count':0x0,'rows':[]},_0x10f6f5=_['map'](db[_0xddae66('0x2e')]['rawAttributes'],function(_0x2a9220){const _0x500263=_0xddae66;return{'name':_0x2a9220[_0x500263('0x1d')],'type':_0x2a9220[_0x500263('0x29')][_0x500263('0x0')]};});_0x40e88b[_0xddae66('0x2d')]=_[_0xddae66('0x9')](_0x10f6f5,_0xddae66('0xd')),_0x40e88b['query']=_[_0xddae66('0x11')](_0x27479e['query']),_0x40e88b[_0xddae66('0x1f')]=_[_0xddae66('0x5')](_0x40e88b[_0xddae66('0x2d')],_0x40e88b['query']),_0xb4489f[_0xddae66('0x24')]=_['intersection'](_0x40e88b['model'],qs[_0xddae66('0x37')](_0x27479e[_0xddae66('0x16')][_0xddae66('0x37')])),_0xb4489f['attributes']=_0xb4489f['attributes'][_0xddae66('0x12')]?_0xb4489f[_0xddae66('0x24')]:_0x40e88b[_0xddae66('0x2d')];typeof _0x27479e['query']['nolimit']===_0xddae66('0x1')&&(_0xb4489f[_0xddae66('0xf')]=qs[_0xddae66('0xf')](_0x27479e[_0xddae66('0x16')][_0xddae66('0xf')]),_0xb4489f[_0xddae66('0x10')]=qs['offset'](_0x27479e[_0xddae66('0x16')][_0xddae66('0x10')]));_0xb4489f[_0xddae66('0x6')]=qs[_0xddae66('0x26')](_0x27479e['query'][_0xddae66('0x26')]),_0xb4489f[_0xddae66('0x18')]=qs[_0xddae66('0x1f')](_[_0xddae66('0x1a')](_0x27479e[_0xddae66('0x16')],_0x40e88b[_0xddae66('0x1f')]),_0x10f6f5);_0x27479e[_0xddae66('0x16')]['filter']&&(_0xb4489f[_0xddae66('0x18')]=_['merge'](_0xb4489f[_0xddae66('0x18')],{[Op['or']]:_[_0xddae66('0x9')](_0x10f6f5,function(_0x51bbdc){const _0x4165c1=_0xddae66;if(_0x51bbdc[_0x4165c1('0x29')]!==_0x4165c1('0x13')){const _0x40ff84={};return _0x40ff84[_0x51bbdc[_0x4165c1('0xd')]]={[Op[_0x4165c1('0x1e')]]:'%'+_0x27479e[_0x4165c1('0x16')][_0x4165c1('0x1b')]+'%'},_0x40ff84;}})}));_0xb4489f=_[_0xddae66('0x25')]({},_0xb4489f,_0x27479e['options']);const _0x16cd40={'where':_0xb4489f[_0xddae66('0x18')]};return db[_0xddae66('0x2e')]['count'](_0x16cd40)[_0xddae66('0x32')](function(_0x387b9f){const _0x4af2fd=_0xddae66;return _0x1358f4[_0x4af2fd('0x35')]=_0x387b9f,_0x27479e[_0x4af2fd('0x16')][_0x4af2fd('0x2b')]&&(_0xb4489f['include']=[{'all':!![]}]),db[_0x4af2fd('0x2e')]['findAll'](_0xb4489f);})[_0xddae66('0x32')](function(_0x7d6f00){return _0x1358f4['rows']=_0x7d6f00,_0x1358f4;})[_0xddae66('0x32')](respondWithFilteredResult(_0xe70283,_0xb4489f))[_0xddae66('0x2c')](handleError(_0xe70283,null));},exports['show']=function(_0x66cc77,_0x3ea7e3){const _0x49fcd9=_0x49cd66;let _0x1df980={'raw':![],'where':{'id':_0x66cc77[_0x49fcd9('0x2f')]['id']}};const _0x26d719={};return _0x26d719[_0x49fcd9('0x2d')]=_['keys'](db['AnalyticFieldReport'][_0x49fcd9('0xe')]),_0x26d719[_0x49fcd9('0x16')]=_['keys'](_0x66cc77[_0x49fcd9('0x16')]),_0x26d719[_0x49fcd9('0x1f')]=_['intersection'](_0x26d719[_0x49fcd9('0x2d')],_0x26d719[_0x49fcd9('0x16')]),_0x1df980[_0x49fcd9('0x24')]=_['intersection'](_0x26d719['model'],qs[_0x49fcd9('0x37')](_0x66cc77[_0x49fcd9('0x16')]['fields'])),_0x1df980['attributes']=_0x1df980[_0x49fcd9('0x24')][_0x49fcd9('0x12')]?_0x1df980['attributes']:_0x26d719[_0x49fcd9('0x2d')],_0x66cc77[_0x49fcd9('0x16')][_0x49fcd9('0x2b')]&&(_0x1df980['include']=[{'all':!![]}]),_0x1df980=_[_0x49fcd9('0x25')]({},_0x1df980,_0x66cc77[_0x49fcd9('0x22')]),db['AnalyticFieldReport']['findOne'](_0x1df980)[_0x49fcd9('0x32')](handleEntityNotFound(_0x3ea7e3,null))[_0x49fcd9('0x32')](respondWithResult(_0x3ea7e3,null))[_0x49fcd9('0x2c')](handleError(_0x3ea7e3,null));},exports[_0x49cd66('0x8')]=function(_0x4e9b96,_0x4015a9){const _0x28954b=_0x49cd66;return db[_0x28954b('0x2e')][_0x28954b('0x8')](_0x4e9b96[_0x28954b('0x27')],{})[_0x28954b('0x32')](respondWithResult(_0x4015a9,0xc9))[_0x28954b('0x2c')](handleError(_0x4015a9,null));},exports[_0x49cd66('0xa')]=function(_0x429560,_0x1b960f){const _0x2f628e=_0x49cd66;return db['AnalyticFieldReport'][_0x2f628e('0xa')](_0x429560[_0x2f628e('0x27')],{'raw':![],'individualHooks':!![]})[_0x2f628e('0x32')](respondWithResult(_0x1b960f,0xc9))[_0x2f628e('0x2c')](handleError(_0x1b960f,null));},exports[_0x49cd66('0x7')]=function(_0x1d3d5c,_0x314b24){const _0x8fa2c=_0x49cd66;return _0x1d3d5c[_0x8fa2c('0x27')]['id']&&delete _0x1d3d5c[_0x8fa2c('0x27')]['id'],db[_0x8fa2c('0x2e')][_0x8fa2c('0x33')]({'where':{'id':_0x1d3d5c[_0x8fa2c('0x2f')]['id']}})[_0x8fa2c('0x32')](handleEntityNotFound(_0x314b24,null))['then'](saveUpdates(_0x1d3d5c[_0x8fa2c('0x27')],null))[_0x8fa2c('0x32')](respondWithResult(_0x314b24,null))[_0x8fa2c('0x2c')](handleError(_0x314b24,null));},exports['destroy']=function(_0x42c59a,_0x4c7b6e){const _0x4e0c73=_0x49cd66;return db[_0x4e0c73('0x2e')][_0x4e0c73('0x33')]({'where':{'id':_0x42c59a['params']['id']}})[_0x4e0c73('0x32')](handleEntityNotFound(_0x4c7b6e,null))[_0x4e0c73('0x32')](removeEntity(_0x4c7b6e,null))['catch'](handleError(_0x4c7b6e,null));},exports['bulkDestroy']=function(_0x2e92d3,_0x35fc86){const _0xade140=_0x49cd66;return db['AnalyticFieldReport']['destroy']({'where':{'id':_0x2e92d3['query'][_0xade140('0x17')]||[]},'raw':![],'individualHooks':!![]})['then'](respondWithResult(_0x35fc86,0xcc))['catch'](handleError(_0x35fc86,null));},exports[_0x49cd66('0x28')]=function(_0x2b6aae,_0x1aa2b9){const _0x3b10ea=_0x49cd66;return db[_0x3b10ea('0x4')][_0x3b10ea('0x33')]({'where':{'id':_0x2b6aae[_0x3b10ea('0x2f')]['id']}})['then'](handleEntityNotFound(_0x1aa2b9,null))['then'](function(_0xbcf641){const _0x44f653=_0x3b10ea;if(_0xbcf641)return db[_0x44f653('0x34')][_0x44f653('0x31')](function(_0x467108){const _0x23c1bb=_0x44f653;return db['AnalyticFieldReport'][_0x23c1bb('0x1c')]({'where':{'CustomReportId':_0x2b6aae[_0x23c1bb('0x2f')]['id']},'transaction':_0x467108})['then'](function(){const _0x1baaec=_0x23c1bb,_0x2a99dd=_[_0x1baaec('0x9')](_0x2b6aae[_0x1baaec('0x27')],function(_0x36be94){const _0x28a6e9=_0x1baaec;return delete _0x36be94['id'],_0x36be94[_0x28a6e9('0x19')]=_0x2b6aae[_0x28a6e9('0x2f')]['id'],_0x36be94;});return db['AnalyticFieldReport'][_0x1baaec('0xa')](_0x2a99dd,{'transaction':_0x467108});});})[_0x44f653('0x32')](function(){const _0x532b2d=_0x44f653;return db[_0x532b2d('0x2e')][_0x532b2d('0x3')]({'where':{'CustomReportId':_0x2b6aae[_0x532b2d('0x2f')]['id']}});});})[_0x3b10ea('0x32')](respondWithResult(_0x1aa2b9,null))[_0x3b10ea('0x2c')](handleError(_0x1aa2b9,null));}; \ No newline at end of file +const a17_0x44c4=['query','update','create','includeAll','error','send','catch','fields','then','like','destroy','../../components/parsers/qs','addFields','findAll','limit','json','findOne','VIRTUAL','where','bulkCreate','name','filters','body','Content-Range','end','order','bulkDestroy','count','model','params','sort','rawAttributes','set','undefined','transaction','stack','../../mysqldb','status','api','type','intersection','attributes','AnalyticCustomReport','offset','show','include','filter','merge','nolimit','map','length','keys','rows','sendStatus','AnalyticFieldReport','index','pick'];(function(_0x956d5b,_0x44c47f){const _0x2e75a3=function(_0x461a7d){while(--_0x461a7d){_0x956d5b['push'](_0x956d5b['shift']());}};_0x2e75a3(++_0x44c47f);}(a17_0x44c4,0x19e));const a17_0x2e75=function(_0x956d5b,_0x44c47f){_0x956d5b=_0x956d5b-0x0;let _0x2e75a3=a17_0x44c4[_0x956d5b];return _0x2e75a3;};const _0x4c8b2a=a17_0x2e75;'use strict';const _=require('lodash'),qs=require(_0x4c8b2a('0x35')),logger=require('../../config/logger')(_0x4c8b2a('0x17')),db=require(_0x4c8b2a('0x15'))['db'],{Op}=require('sequelize');function respondWithResult(_0x461a7d,_0x22e97b){return _0x22e97b=_0x22e97b||0xc8,function(_0x3f2c7b){const _0x4d062d=a17_0x2e75;if(_0x3f2c7b)return _0x461a7d[_0x4d062d('0x16')](_0x22e97b)[_0x4d062d('0x0')](_0x3f2c7b);};}function respondWithFilteredResult(_0x435bc9,_0x58c56f){return function(_0x1eb0f1){const _0x1294c2=a17_0x2e75;if(_0x1eb0f1){const _0x4cf859=_0x1eb0f1['count'],_0x3d72ac=_0x58c56f[_0x1294c2('0x1c')];let _0x2a557f=_0x58c56f[_0x1294c2('0x1c')]+_0x58c56f[_0x1294c2('0x38')],_0x11faea;return _0x2a557f>=_0x4cf859?(_0x2a557f=_0x4cf859,_0x11faea=0xc8):_0x11faea=0xce,_0x435bc9['status'](_0x11faea),_0x435bc9[_0x1294c2('0x11')](_0x1294c2('0x8'),_0x3d72ac+'-'+_0x2a557f+'/'+_0x4cf859)[_0x1294c2('0x0')](_0x1eb0f1);}return null;};}function saveUpdates(_0xa31000){return function(_0x42de61){const _0x195130=a17_0x2e75;if(_0x42de61)return _0x42de61[_0x195130('0x2b')](_0xa31000)[_0x195130('0x32')](function(_0x3f6cc3){return _0x3f6cc3;});return null;};}function removeEntity(_0x16ab26){return function(_0x110587){const _0x287a01=a17_0x2e75;if(_0x110587)return _0x110587[_0x287a01('0x34')]()['then'](function(){const _0x57fcd1=_0x287a01;_0x16ab26[_0x57fcd1('0x16')](0xcc)[_0x57fcd1('0x9')]();});};}function handleEntityNotFound(_0x3dbf21){return function(_0x56baba){const _0x25c8e4=a17_0x2e75;return!_0x56baba&&_0x3dbf21[_0x25c8e4('0x26')](0x194),_0x56baba;};}function handleError(_0x4ec128,_0x4ea385){return _0x4ea385=_0x4ea385||0x1f4,function(_0x48d87c){const _0xec9713=a17_0x2e75;logger[_0xec9713('0x2e')](_0x48d87c[_0xec9713('0x14')]),_0x48d87c[_0xec9713('0x5')]&&delete _0x48d87c['name'],_0x4ec128[_0xec9713('0x16')](_0x4ea385)[_0xec9713('0x2f')](_0x48d87c);};}exports[_0x4c8b2a('0x28')]=function(_0x5b7032,_0x2eb33e){const _0xeb7e1c=_0x4c8b2a;let _0x445067={};const _0x554a36={},_0x21f6f4={'count':0x0,'rows':[]},_0x45932c=_[_0xeb7e1c('0x22')](db[_0xeb7e1c('0x27')]['rawAttributes'],function(_0x27badb){const _0x444254=_0xeb7e1c;return{'name':_0x27badb['fieldName'],'type':_0x27badb[_0x444254('0x18')]['key']};});_0x554a36['model']=_[_0xeb7e1c('0x22')](_0x45932c,'name'),_0x554a36[_0xeb7e1c('0x2a')]=_[_0xeb7e1c('0x24')](_0x5b7032[_0xeb7e1c('0x2a')]),_0x554a36['filters']=_['intersection'](_0x554a36[_0xeb7e1c('0xd')],_0x554a36[_0xeb7e1c('0x2a')]),_0x445067[_0xeb7e1c('0x1a')]=_[_0xeb7e1c('0x19')](_0x554a36[_0xeb7e1c('0xd')],qs[_0xeb7e1c('0x31')](_0x5b7032[_0xeb7e1c('0x2a')][_0xeb7e1c('0x31')])),_0x445067[_0xeb7e1c('0x1a')]=_0x445067[_0xeb7e1c('0x1a')]['length']?_0x445067['attributes']:_0x554a36[_0xeb7e1c('0xd')];typeof _0x5b7032['query'][_0xeb7e1c('0x21')]===_0xeb7e1c('0x12')&&(_0x445067['limit']=qs[_0xeb7e1c('0x38')](_0x5b7032[_0xeb7e1c('0x2a')]['limit']),_0x445067[_0xeb7e1c('0x1c')]=qs[_0xeb7e1c('0x1c')](_0x5b7032[_0xeb7e1c('0x2a')][_0xeb7e1c('0x1c')]));_0x445067[_0xeb7e1c('0xa')]=qs['sort'](_0x5b7032['query'][_0xeb7e1c('0xf')]),_0x445067[_0xeb7e1c('0x3')]=qs[_0xeb7e1c('0x6')](_[_0xeb7e1c('0x29')](_0x5b7032[_0xeb7e1c('0x2a')],_0x554a36[_0xeb7e1c('0x6')]),_0x45932c);_0x5b7032['query'][_0xeb7e1c('0x1f')]&&(_0x445067['where']=_['merge'](_0x445067[_0xeb7e1c('0x3')],{[Op['or']]:_[_0xeb7e1c('0x22')](_0x45932c,function(_0x14da18){const _0x4e1b30=_0xeb7e1c;if(_0x14da18[_0x4e1b30('0x18')]!==_0x4e1b30('0x2')){const _0x3a27a8={};return _0x3a27a8[_0x14da18[_0x4e1b30('0x5')]]={[Op[_0x4e1b30('0x33')]]:'%'+_0x5b7032[_0x4e1b30('0x2a')][_0x4e1b30('0x1f')]+'%'},_0x3a27a8;}})}));_0x445067=_[_0xeb7e1c('0x20')]({},_0x445067,_0x5b7032['options']);const _0x5c1d66={'where':_0x445067['where']};return db[_0xeb7e1c('0x27')][_0xeb7e1c('0xc')](_0x5c1d66)[_0xeb7e1c('0x32')](function(_0x3939af){const _0x3009d2=_0xeb7e1c;return _0x21f6f4[_0x3009d2('0xc')]=_0x3939af,_0x5b7032[_0x3009d2('0x2a')][_0x3009d2('0x2d')]&&(_0x445067[_0x3009d2('0x1e')]=[{'all':!![]}]),db[_0x3009d2('0x27')][_0x3009d2('0x37')](_0x445067);})['then'](function(_0x94af05){const _0x57ddba=_0xeb7e1c;return _0x21f6f4[_0x57ddba('0x25')]=_0x94af05,_0x21f6f4;})['then'](respondWithFilteredResult(_0x2eb33e,_0x445067))[_0xeb7e1c('0x30')](handleError(_0x2eb33e,null));},exports[_0x4c8b2a('0x1d')]=function(_0xeb7c39,_0x4bb66f){const _0x4c17d5=_0x4c8b2a;let _0x49888b={'raw':![],'where':{'id':_0xeb7c39[_0x4c17d5('0xe')]['id']}};const _0xd3aa2d={};return _0xd3aa2d['model']=_[_0x4c17d5('0x24')](db[_0x4c17d5('0x27')][_0x4c17d5('0x10')]),_0xd3aa2d[_0x4c17d5('0x2a')]=_['keys'](_0xeb7c39[_0x4c17d5('0x2a')]),_0xd3aa2d[_0x4c17d5('0x6')]=_[_0x4c17d5('0x19')](_0xd3aa2d[_0x4c17d5('0xd')],_0xd3aa2d[_0x4c17d5('0x2a')]),_0x49888b[_0x4c17d5('0x1a')]=_[_0x4c17d5('0x19')](_0xd3aa2d[_0x4c17d5('0xd')],qs[_0x4c17d5('0x31')](_0xeb7c39['query'][_0x4c17d5('0x31')])),_0x49888b['attributes']=_0x49888b[_0x4c17d5('0x1a')][_0x4c17d5('0x23')]?_0x49888b[_0x4c17d5('0x1a')]:_0xd3aa2d[_0x4c17d5('0xd')],_0xeb7c39[_0x4c17d5('0x2a')]['includeAll']&&(_0x49888b[_0x4c17d5('0x1e')]=[{'all':!![]}]),_0x49888b=_[_0x4c17d5('0x20')]({},_0x49888b,_0xeb7c39['options']),db[_0x4c17d5('0x27')][_0x4c17d5('0x1')](_0x49888b)[_0x4c17d5('0x32')](handleEntityNotFound(_0x4bb66f,null))[_0x4c17d5('0x32')](respondWithResult(_0x4bb66f,null))[_0x4c17d5('0x30')](handleError(_0x4bb66f,null));},exports[_0x4c8b2a('0x2c')]=function(_0x3350d4,_0x3211b4){const _0x3aed46=_0x4c8b2a;return db[_0x3aed46('0x27')]['create'](_0x3350d4['body'],{})[_0x3aed46('0x32')](respondWithResult(_0x3211b4,0xc9))['catch'](handleError(_0x3211b4,null));},exports[_0x4c8b2a('0x4')]=function(_0x2348c5,_0x3f5fbb){const _0x92d9f7=_0x4c8b2a;return db[_0x92d9f7('0x27')][_0x92d9f7('0x4')](_0x2348c5['body'],{'raw':![],'individualHooks':!![]})[_0x92d9f7('0x32')](respondWithResult(_0x3f5fbb,0xc9))[_0x92d9f7('0x30')](handleError(_0x3f5fbb,null));},exports['update']=function(_0xa6d848,_0x890be3){const _0x39d38c=_0x4c8b2a;return _0xa6d848[_0x39d38c('0x7')]['id']&&delete _0xa6d848[_0x39d38c('0x7')]['id'],db['AnalyticFieldReport']['findOne']({'where':{'id':_0xa6d848[_0x39d38c('0xe')]['id']}})[_0x39d38c('0x32')](handleEntityNotFound(_0x890be3,null))[_0x39d38c('0x32')](saveUpdates(_0xa6d848['body'],null))[_0x39d38c('0x32')](respondWithResult(_0x890be3,null))[_0x39d38c('0x30')](handleError(_0x890be3,null));},exports[_0x4c8b2a('0x34')]=function(_0x1e1c4f,_0x954394){const _0x34b210=_0x4c8b2a;return db[_0x34b210('0x27')][_0x34b210('0x1')]({'where':{'id':_0x1e1c4f['params']['id']}})[_0x34b210('0x32')](handleEntityNotFound(_0x954394,null))['then'](removeEntity(_0x954394,null))[_0x34b210('0x30')](handleError(_0x954394,null));},exports[_0x4c8b2a('0xb')]=function(_0x5e0f4d,_0xbd1eef){const _0x59c5f5=_0x4c8b2a;return db[_0x59c5f5('0x27')][_0x59c5f5('0x34')]({'where':{'id':_0x5e0f4d[_0x59c5f5('0x2a')]['ids']||[]},'raw':![],'individualHooks':!![]})[_0x59c5f5('0x32')](respondWithResult(_0xbd1eef,0xcc))['catch'](handleError(_0xbd1eef,null));},exports[_0x4c8b2a('0x36')]=function(_0x4448a0,_0x46f948){const _0x35cc92=_0x4c8b2a;return db[_0x35cc92('0x1b')][_0x35cc92('0x1')]({'where':{'id':_0x4448a0[_0x35cc92('0xe')]['id']}})[_0x35cc92('0x32')](handleEntityNotFound(_0x46f948,null))['then'](function(_0x2c76b1){const _0x47732b=_0x35cc92;if(_0x2c76b1)return db['sequelize'][_0x47732b('0x13')](function(_0x5532d0){const _0x212b25=_0x47732b;return db[_0x212b25('0x27')][_0x212b25('0x34')]({'where':{'CustomReportId':_0x4448a0[_0x212b25('0xe')]['id']},'transaction':_0x5532d0})['then'](function(){const _0x1e75a5=_0x212b25,_0x55742c=_[_0x1e75a5('0x22')](_0x4448a0[_0x1e75a5('0x7')],function(_0x229a70){return delete _0x229a70['id'],_0x229a70['CustomReportId']=_0x4448a0['params']['id'],_0x229a70;});return db[_0x1e75a5('0x27')]['bulkCreate'](_0x55742c,{'transaction':_0x5532d0});});})['then'](function(){const _0x55008e=_0x47732b;return db[_0x55008e('0x27')][_0x55008e('0x37')]({'where':{'CustomReportId':_0x4448a0[_0x55008e('0xe')]['id']}});});})[_0x35cc92('0x32')](respondWithResult(_0x46f948,null))[_0x35cc92('0x30')](handleError(_0x46f948,null));}; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.model.js b/server/api/analyticFieldReport/analyticFieldReport.model.js index 3d0ab25..82c1f6c 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.model.js +++ b/server/api/analyticFieldReport/analyticFieldReport.model.js @@ -1 +1 @@ -const a18_0x3c17=['analytics_report_fields','define'];(function(_0x166ed6,_0x3c171a){const _0x7575cf=function(_0x323e53){while(--_0x323e53){_0x166ed6['push'](_0x166ed6['shift']());}};_0x7575cf(++_0x3c171a);}(a18_0x3c17,0xad));const a18_0x7575=function(_0x166ed6,_0x3c171a){_0x166ed6=_0x166ed6-0x0;let _0x7575cf=a18_0x3c17[_0x166ed6];return _0x7575cf;};'use strict';const attributes=require('./analyticFieldReport.attributes');module['exports']=function(_0x323e53){const _0x272fe3=a18_0x7575,_0x36718f=_0x323e53[_0x272fe3('0x0')]('AnalyticFieldReport',attributes,{'tableName':_0x272fe3('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x36718f;}; \ No newline at end of file +const a18_0x2120=['define','analytics_report_fields','./analyticFieldReport.attributes','exports'];(function(_0x2b32c0,_0x21206e){const _0x5272ed=function(_0x32b378){while(--_0x32b378){_0x2b32c0['push'](_0x2b32c0['shift']());}};_0x5272ed(++_0x21206e);}(a18_0x2120,0x1c7));const a18_0x5272=function(_0x2b32c0,_0x21206e){_0x2b32c0=_0x2b32c0-0x0;let _0x5272ed=a18_0x2120[_0x2b32c0];return _0x5272ed;};const _0x5c2e2c=a18_0x5272;'use strict';const attributes=require(_0x5c2e2c('0x3'));module[_0x5c2e2c('0x0')]=function(_0x32b378){const _0x1fb00c=_0x5c2e2c,_0x1ba4d7=_0x32b378[_0x1fb00c('0x1')]('AnalyticFieldReport',attributes,{'tableName':_0x1fb00c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1ba4d7;}; \ No newline at end of file diff --git a/server/api/analyticFieldReport/index.js b/server/api/analyticFieldReport/index.js index efc6a6e..748e196 100644 --- a/server/api/analyticFieldReport/index.js +++ b/server/api/analyticFieldReport/index.js @@ -1 +1 @@ -const a19_0x5be5=['isAuthenticated','/:id/create_many','delete','/create_many','./analyticFieldReport.controller','bulkCreate','/:id','addFields','post','Router','get','destroy','create','index','update','/destroy_many','put'];(function(_0x4e10ee,_0x5be57a){const _0x5939bf=function(_0x4ad236){while(--_0x4ad236){_0x4e10ee['push'](_0x4e10ee['shift']());}};_0x5939bf(++_0x5be57a);}(a19_0x5be5,0x11b));const a19_0x5939=function(_0x4e10ee,_0x5be57a){_0x4e10ee=_0x4e10ee-0x0;let _0x5939bf=a19_0x5be5[_0x4e10ee];return _0x5939bf;};const _0x3cb790=a19_0x5939;'use strict';const express=require('express'),router=express[_0x3cb790('0xf')](),auth=require('../../components/auth/service'),controller=require(_0x3cb790('0xa'));router[_0x3cb790('0x10')]('/',auth[_0x3cb790('0x6')](),controller[_0x3cb790('0x2')]),router[_0x3cb790('0x10')]('/:id',auth[_0x3cb790('0x6')](),controller['show']),router[_0x3cb790('0xe')]('/',auth[_0x3cb790('0x6')](),controller[_0x3cb790('0x1')]),router['post'](_0x3cb790('0x9'),auth[_0x3cb790('0x6')](),controller[_0x3cb790('0xb')]),router[_0x3cb790('0xe')](_0x3cb790('0x7'),auth[_0x3cb790('0x6')](),controller[_0x3cb790('0xd')]),router[_0x3cb790('0x5')](_0x3cb790('0xc'),auth[_0x3cb790('0x6')](),controller[_0x3cb790('0x3')]),router[_0x3cb790('0x8')](_0x3cb790('0x4'),auth[_0x3cb790('0x6')](),controller['bulkDestroy']),router[_0x3cb790('0x8')](_0x3cb790('0xc'),auth[_0x3cb790('0x6')](),controller[_0x3cb790('0x0')]),module['exports']=router; \ No newline at end of file +const a19_0x2cf7=['isAuthenticated','post','/destroy_many','get','bulkCreate','addFields','bulkDestroy','exports','./analyticFieldReport.controller','../../components/auth/service','Router','show','put','index','/:id','/create_many','update'];(function(_0x2e46ca,_0x2cf7b0){const _0x5b7213=function(_0x47f2ef){while(--_0x47f2ef){_0x2e46ca['push'](_0x2e46ca['shift']());}};_0x5b7213(++_0x2cf7b0);}(a19_0x2cf7,0x166));const a19_0x5b72=function(_0x2e46ca,_0x2cf7b0){_0x2e46ca=_0x2e46ca-0x0;let _0x5b7213=a19_0x2cf7[_0x2e46ca];return _0x5b7213;};const _0x5985d1=a19_0x5b72;'use strict';const express=require('express'),router=express[_0x5985d1('0x9')](),auth=require(_0x5985d1('0x8')),controller=require(_0x5985d1('0x7'));router[_0x5985d1('0x2')]('/',auth['isAuthenticated'](),controller[_0x5985d1('0xc')]),router[_0x5985d1('0x2')](_0x5985d1('0xd'),auth['isAuthenticated'](),controller[_0x5985d1('0xa')]),router[_0x5985d1('0x0')]('/',auth[_0x5985d1('0x10')](),controller['create']),router[_0x5985d1('0x0')](_0x5985d1('0xe'),auth[_0x5985d1('0x10')](),controller[_0x5985d1('0x3')]),router[_0x5985d1('0x0')]('/:id/create_many',auth[_0x5985d1('0x10')](),controller[_0x5985d1('0x4')]),router[_0x5985d1('0xb')](_0x5985d1('0xd'),auth[_0x5985d1('0x10')](),controller[_0x5985d1('0xf')]),router['delete'](_0x5985d1('0x1'),auth[_0x5985d1('0x10')](),controller[_0x5985d1('0x5')]),router['delete'](_0x5985d1('0xd'),auth['isAuthenticated'](),controller['destroy']),module[_0x5985d1('0x6')]=router; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.attributes.js b/server/api/analyticMetric/analyticMetric.attributes.js index d23895a..a334d03 100644 --- a/server/api/analyticMetric/analyticMetric.attributes.js +++ b/server/api/analyticMetric/analyticMetric.attributes.js @@ -1 +1 @@ -const a20_0x4af7=['STRING','TEXT'];(function(_0x1b2fa6,_0x4af7ea){const _0x43332c=function(_0x5848b7){while(--_0x5848b7){_0x1b2fa6['push'](_0x1b2fa6['shift']());}};_0x43332c(++_0x4af7ea);}(a20_0x4af7,0xec));const a20_0x4333=function(_0x1b2fa6,_0x4af7ea){_0x1b2fa6=_0x1b2fa6-0x0;let _0x43332c=a20_0x4af7[_0x1b2fa6];return _0x43332c;};const _0x18b18b=a20_0x4333;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x18b18b('0x0')],'allowNull':![],'unique':'name'},'table':{'type':Sequelize[_0x18b18b('0x0')]},'metric':{'type':Sequelize[_0x18b18b('0x1')]},'description':{'type':Sequelize[_0x18b18b('0x0')]}}; \ No newline at end of file +const a20_0x198b=['STRING','exports'];(function(_0x39a824,_0x198b86){const _0xa594a0=function(_0x59bbb6){while(--_0x59bbb6){_0x39a824['push'](_0x39a824['shift']());}};_0xa594a0(++_0x198b86);}(a20_0x198b,0xa7));const a20_0xa594=function(_0x39a824,_0x198b86){_0x39a824=_0x39a824-0x0;let _0xa594a0=a20_0x198b[_0x39a824];return _0xa594a0;};const _0x601c32=a20_0xa594;'use strict';const Sequelize=require('sequelize');module[_0x601c32('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':'name'},'table':{'type':Sequelize[_0x601c32('0x1')]},'metric':{'type':Sequelize['TEXT']},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.controller.js b/server/api/analyticMetric/analyticMetric.controller.js index aa8f051..49267cc 100644 --- a/server/api/analyticMetric/analyticMetric.controller.js +++ b/server/api/analyticMetric/analyticMetric.controller.js @@ -1 +1 @@ -const a21_0x1efa=['UserProfileSection','UserProfileResource','options','status','filter','stack','create','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','userProfileId','model','map','like','where','pick','send','findOne','undefined','end','VIRTUAL','include','index','attributes','api','key','lodash','count','then','nolimit','Content-Range','rows','keys','Metrics','name','destroy','filters','json','catch','fields','findAll','update','type','user','../../components/parsers/qs','sort','../../config/logger','AnalyticMetric','body','params','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','offset','length','rawAttributes','sequelize','includeAll','error','set','merge','query','intersection','limit'];(function(_0x4cea28,_0x1efa02){const _0x4cf36a=function(_0x1c33f9){while(--_0x1c33f9){_0x4cea28['push'](_0x4cea28['shift']());}};_0x4cf36a(++_0x1efa02);}(a21_0x1efa,0x102));const a21_0x4cf3=function(_0x4cea28,_0x1efa02){_0x4cea28=_0x4cea28-0x0;let _0x4cf36a=a21_0x1efa[_0x4cea28];return _0x4cf36a;};const _0x41e365=a21_0x4cf3;'use strict';const _=require(_0x41e365('0xb')),qs=require(_0x41e365('0x1d')),logger=require(_0x41e365('0x1f'))(_0x41e365('0x9')),db=require('../../mysqldb')['db'],{Op}=require(_0x41e365('0x27'));function respondWithResult(_0x1c33f9,_0x49b30d){return _0x49b30d=_0x49b30d||0xc8,function(_0x44874c){const _0x2e3cda=a21_0x4cf3;if(_0x44874c)return _0x1c33f9[_0x2e3cda('0x32')](_0x49b30d)[_0x2e3cda('0x16')](_0x44874c);};}function respondWithFilteredResult(_0x5e9963,_0x5b1b68){return function(_0xa502b){const _0x4967a1=a21_0x4cf3;if(_0xa502b){const _0x39f29c=_0xa502b['count'],_0x289ec4=_0x5b1b68[_0x4967a1('0x24')];let _0x3a85c0=_0x5b1b68[_0x4967a1('0x24')]+_0x5b1b68[_0x4967a1('0x2e')],_0x596a72;return _0x3a85c0>=_0x39f29c?(_0x3a85c0=_0x39f29c,_0x596a72=0xc8):_0x596a72=0xce,_0x5e9963[_0x4967a1('0x32')](_0x596a72),_0x5e9963[_0x4967a1('0x2a')](_0x4967a1('0xf'),_0x289ec4+'-'+_0x3a85c0+'/'+_0x39f29c)[_0x4967a1('0x16')](_0xa502b);}return null;};}function saveUpdates(_0x17cf82){return function(_0x2f6d02){const _0x34c77a=a21_0x4cf3;if(_0x2f6d02)return _0x2f6d02[_0x34c77a('0x1a')](_0x17cf82)[_0x34c77a('0xd')](function(_0x380475){return _0x380475;});return null;};}function removeEntity(_0x981c7a){return function(_0x397e6b){const _0x59a278=a21_0x4cf3;if(_0x397e6b)return _0x397e6b[_0x59a278('0x14')]()[_0x59a278('0xd')](function(){const _0x7c1588=_0x59a278,_0xc41d10=_0x397e6b[_0x7c1588('0x36')]({'plain':!![]}),_0x15c1b2=_0x7c1588('0x12');return db[_0x7c1588('0x30')][_0x7c1588('0x14')]({'where':{'type':_0x15c1b2,'resourceId':_0xc41d10['id']}})[_0x7c1588('0xd')](function(){return _0x397e6b;});})[_0x59a278('0xd')](function(){const _0x3f051e=_0x59a278;_0x981c7a[_0x3f051e('0x32')](0xcc)[_0x3f051e('0x4')]();});};}function handleEntityNotFound(_0x4153e7){return function(_0x4df22a){return!_0x4df22a&&_0x4153e7['sendStatus'](0x194),_0x4df22a;};}function handleError(_0x3a30e8,_0x19b46c){return _0x19b46c=_0x19b46c||0x1f4,function(_0x8f9291){const _0x3dc814=a21_0x4cf3;logger['error'](_0x8f9291[_0x3dc814('0x34')]),_0x8f9291[_0x3dc814('0x13')]&&delete _0x8f9291['name'],_0x3a30e8['status'](_0x19b46c)[_0x3dc814('0x1')](_0x8f9291);};}exports[_0x41e365('0x7')]=function(_0xf935b1,_0x472808){const _0x3fc48a=_0x41e365;let _0x2479a1={};const _0x5ccd8b={},_0x21c3bc={'count':0x0,'rows':[]},_0x2a4cc0=_[_0x3fc48a('0x3a')](db[_0x3fc48a('0x20')][_0x3fc48a('0x26')],function(_0x114f4b){const _0xadf1a2=_0x3fc48a;return{'name':_0x114f4b['fieldName'],'type':_0x114f4b['type'][_0xadf1a2('0xa')]};});_0x5ccd8b[_0x3fc48a('0x39')]=_[_0x3fc48a('0x3a')](_0x2a4cc0,'name'),_0x5ccd8b[_0x3fc48a('0x2c')]=_['keys'](_0xf935b1[_0x3fc48a('0x2c')]),_0x5ccd8b[_0x3fc48a('0x15')]=_[_0x3fc48a('0x2d')](_0x5ccd8b[_0x3fc48a('0x39')],_0x5ccd8b[_0x3fc48a('0x2c')]),_0x2479a1['attributes']=_[_0x3fc48a('0x2d')](_0x5ccd8b[_0x3fc48a('0x39')],qs[_0x3fc48a('0x18')](_0xf935b1['query'][_0x3fc48a('0x18')])),_0x2479a1['attributes']=_0x2479a1[_0x3fc48a('0x8')]['length']?_0x2479a1[_0x3fc48a('0x8')]:_0x5ccd8b['model'];typeof _0xf935b1['query'][_0x3fc48a('0xe')]===_0x3fc48a('0x3')&&(_0x2479a1['limit']=qs[_0x3fc48a('0x2e')](_0xf935b1[_0x3fc48a('0x2c')][_0x3fc48a('0x2e')]),_0x2479a1[_0x3fc48a('0x24')]=qs['offset'](_0xf935b1[_0x3fc48a('0x2c')][_0x3fc48a('0x24')]));_0x2479a1['order']=qs[_0x3fc48a('0x1e')](_0xf935b1[_0x3fc48a('0x2c')][_0x3fc48a('0x1e')]),_0x2479a1[_0x3fc48a('0x3c')]=qs[_0x3fc48a('0x15')](_[_0x3fc48a('0x0')](_0xf935b1['query'],_0x5ccd8b[_0x3fc48a('0x15')]),_0x2a4cc0);_0xf935b1[_0x3fc48a('0x2c')][_0x3fc48a('0x33')]&&(_0x2479a1[_0x3fc48a('0x3c')]=_[_0x3fc48a('0x2b')](_0x2479a1[_0x3fc48a('0x3c')],{[Op['or']]:_[_0x3fc48a('0x3a')](_0x2a4cc0,function(_0x2da4a4){const _0x5b55a6=_0x3fc48a;if(_0x2da4a4[_0x5b55a6('0x1b')]!==_0x5b55a6('0x5')){const _0x104976={};return _0x104976[_0x2da4a4[_0x5b55a6('0x13')]]={[Op[_0x5b55a6('0x3b')]]:'%'+_0xf935b1[_0x5b55a6('0x2c')]['filter']+'%'},_0x104976;}})}));_0x2479a1=_[_0x3fc48a('0x2b')]({},_0x2479a1,_0xf935b1[_0x3fc48a('0x31')]);const _0x192c1f={'where':_0x2479a1[_0x3fc48a('0x3c')]};return db[_0x3fc48a('0x20')][_0x3fc48a('0xc')](_0x192c1f)[_0x3fc48a('0xd')](function(_0x1f8133){const _0x29dbf7=_0x3fc48a;return _0x21c3bc['count']=_0x1f8133,_0xf935b1[_0x29dbf7('0x2c')]['includeAll']&&(_0x2479a1[_0x29dbf7('0x6')]=[{'all':!![]}]),db[_0x29dbf7('0x20')][_0x29dbf7('0x19')](_0x2479a1);})[_0x3fc48a('0xd')](function(_0x3636b3){const _0x5a38da=_0x3fc48a;return _0x21c3bc[_0x5a38da('0x10')]=_0x3636b3,_0x21c3bc;})[_0x3fc48a('0xd')](respondWithFilteredResult(_0x472808,_0x2479a1))[_0x3fc48a('0x17')](handleError(_0x472808,null));},exports['show']=function(_0x42455d,_0x17c086){const _0x14fe0b=_0x41e365;let _0x1e281={'raw':!![],'where':{'id':_0x42455d['params']['id']}};const _0x8a0898={};return _0x8a0898[_0x14fe0b('0x39')]=_[_0x14fe0b('0x11')](db[_0x14fe0b('0x20')][_0x14fe0b('0x26')]),_0x8a0898[_0x14fe0b('0x2c')]=_[_0x14fe0b('0x11')](_0x42455d[_0x14fe0b('0x2c')]),_0x8a0898['filters']=_[_0x14fe0b('0x2d')](_0x8a0898[_0x14fe0b('0x39')],_0x8a0898[_0x14fe0b('0x2c')]),_0x1e281[_0x14fe0b('0x8')]=_[_0x14fe0b('0x2d')](_0x8a0898[_0x14fe0b('0x39')],qs[_0x14fe0b('0x18')](_0x42455d[_0x14fe0b('0x2c')]['fields'])),_0x1e281[_0x14fe0b('0x8')]=_0x1e281['attributes'][_0x14fe0b('0x25')]?_0x1e281['attributes']:_0x8a0898['model'],_0x42455d['query'][_0x14fe0b('0x28')]&&(_0x1e281[_0x14fe0b('0x6')]=[{'all':!![]}]),_0x1e281=_[_0x14fe0b('0x2b')]({},_0x1e281,_0x42455d[_0x14fe0b('0x31')]),db[_0x14fe0b('0x20')][_0x14fe0b('0x2')](_0x1e281)['then'](handleEntityNotFound(_0x17c086,null))[_0x14fe0b('0xd')](respondWithResult(_0x17c086,null))[_0x14fe0b('0x17')](handleError(_0x17c086,null));},exports[_0x41e365('0x35')]=function(_0x40025a,_0x5b72b8){const _0x3bfbc0=_0x41e365;return db[_0x3bfbc0('0x20')]['create'](_0x40025a[_0x3bfbc0('0x21')],{})[_0x3bfbc0('0xd')](function(_0x323733){const _0x10211d=_0x3bfbc0,_0x59812a=_0x40025a[_0x10211d('0x1c')]['get']({'plain':!![]});if(!_0x59812a)throw new Error(_0x10211d('0x37'));if(_0x59812a['role']===_0x10211d('0x1c')){const _0x2b224b=_0x323733['get']({'plain':!![]}),_0x3b607b=_0x10211d('0x12');return db[_0x10211d('0x2f')][_0x10211d('0x2')]({'where':{'name':_0x3b607b,'userProfileId':_0x59812a[_0x10211d('0x38')]},'raw':!![]})[_0x10211d('0xd')](function(_0x3d2b0e){const _0xf58995=_0x10211d;return _0x3d2b0e&&_0x3d2b0e['autoAssociation']===0x0?db['UserProfileResource'][_0xf58995('0x35')]({'name':_0x2b224b['name'],'resourceId':_0x2b224b['id'],'type':_0x3d2b0e['name'],'sectionId':_0x3d2b0e['id']},{})[_0xf58995('0xd')](function(){return _0x323733;}):_0x323733;})[_0x10211d('0x17')](function(_0x144b41){const _0x1c5fb9=_0x10211d;logger[_0x1c5fb9('0x29')](_0x1c5fb9('0x23'),_0x144b41);throw _0x144b41;});}return _0x323733;})[_0x3bfbc0('0xd')](respondWithResult(_0x5b72b8,0xc9))['catch'](handleError(_0x5b72b8,null));},exports[_0x41e365('0x1a')]=function(_0x266e74,_0x30aa69){const _0x15d992=_0x41e365;return _0x266e74[_0x15d992('0x21')]['id']&&delete _0x266e74[_0x15d992('0x21')]['id'],db[_0x15d992('0x20')][_0x15d992('0x2')]({'where':{'id':_0x266e74[_0x15d992('0x22')]['id']}})[_0x15d992('0xd')](handleEntityNotFound(_0x30aa69,null))[_0x15d992('0xd')](saveUpdates(_0x266e74[_0x15d992('0x21')],null))[_0x15d992('0xd')](respondWithResult(_0x30aa69,null))[_0x15d992('0x17')](handleError(_0x30aa69,null));},exports[_0x41e365('0x14')]=function(_0xac5c5c,_0xdfaa13){const _0x8dd5b6=_0x41e365;return db[_0x8dd5b6('0x20')][_0x8dd5b6('0x2')]({'where':{'id':_0xac5c5c[_0x8dd5b6('0x22')]['id']}})[_0x8dd5b6('0xd')](handleEntityNotFound(_0xdfaa13,null))[_0x8dd5b6('0xd')](removeEntity(_0xdfaa13,null))[_0x8dd5b6('0x17')](handleError(_0xdfaa13,null));}; \ No newline at end of file +const a21_0x3399=['autoAssociation','destroy','status','intersection','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','rows','end','filter','create','limit','map','options','../../components/parsers/qs','body','pick','attributes','sendStatus','filters','user','send','name','Metrics','sort','offset','show','role','catch','params','type','merge','update','undefined','where','AnalyticMetric','VIRTUAL','lodash','get','rawAttributes','include','UserProfileSection','nolimit','keys','UserProfileResource','then','query','count','includeAll','findAll','userProfileId','model','../../mysqldb','api','findOne','json','sequelize'];(function(_0x284038,_0x339948){const _0x47f452=function(_0x35cfcb){while(--_0x35cfcb){_0x284038['push'](_0x284038['shift']());}};_0x47f452(++_0x339948);}(a21_0x3399,0xac));const a21_0x47f4=function(_0x284038,_0x339948){_0x284038=_0x284038-0x0;let _0x47f452=a21_0x3399[_0x284038];return _0x47f452;};const _0x2a6948=a21_0x47f4;'use strict';const _=require(_0x2a6948('0x1c')),qs=require(_0x2a6948('0x5')),logger=require('../../config/logger')(_0x2a6948('0x2c')),db=require(_0x2a6948('0x2b'))['db'],{Op}=require(_0x2a6948('0x2f'));function respondWithResult(_0x35cfcb,_0x51760e){return _0x51760e=_0x51760e||0xc8,function(_0x2b486d){const _0x470846=a21_0x47f4;if(_0x2b486d)return _0x35cfcb['status'](_0x51760e)[_0x470846('0x2e')](_0x2b486d);};}function respondWithFilteredResult(_0x252240,_0x5885fc){return function(_0x3bdbf5){const _0x1d4bae=a21_0x47f4;if(_0x3bdbf5){const _0x13b808=_0x3bdbf5[_0x1d4bae('0x26')],_0x3c39b4=_0x5885fc[_0x1d4bae('0x10')];let _0x1d87b2=_0x5885fc[_0x1d4bae('0x10')]+_0x5885fc['limit'],_0x22b261;return _0x1d87b2>=_0x13b808?(_0x1d87b2=_0x13b808,_0x22b261=0xc8):_0x22b261=0xce,_0x252240[_0x1d4bae('0x32')](_0x22b261),_0x252240['set']('Content-Range',_0x3c39b4+'-'+_0x1d87b2+'/'+_0x13b808)['json'](_0x3bdbf5);}return null;};}function saveUpdates(_0x298658){return function(_0x11acef){const _0x4b5677=a21_0x47f4;if(_0x11acef)return _0x11acef[_0x4b5677('0x17')](_0x298658)[_0x4b5677('0x24')](function(_0xc8fc39){return _0xc8fc39;});return null;};}function removeEntity(_0x5409a0){return function(_0x51d1a1){const _0xf7a9ff=a21_0x47f4;if(_0x51d1a1)return _0x51d1a1[_0xf7a9ff('0x31')]()[_0xf7a9ff('0x24')](function(){const _0x27df4c=_0xf7a9ff,_0x48aab6=_0x51d1a1[_0x27df4c('0x1d')]({'plain':!![]}),_0x1e8a1b=_0x27df4c('0xe');return db[_0x27df4c('0x23')][_0x27df4c('0x31')]({'where':{'type':_0x1e8a1b,'resourceId':_0x48aab6['id']}})[_0x27df4c('0x24')](function(){return _0x51d1a1;});})[_0xf7a9ff('0x24')](function(){const _0x227717=_0xf7a9ff;_0x5409a0[_0x227717('0x32')](0xcc)[_0x227717('0x36')]();});};}function handleEntityNotFound(_0x2caa0a){return function(_0x2704a6){const _0x166647=a21_0x47f4;return!_0x2704a6&&_0x2caa0a[_0x166647('0x9')](0x194),_0x2704a6;};}function handleError(_0x15597b,_0x496348){return _0x496348=_0x496348||0x1f4,function(_0x3de953){const _0x263a6d=a21_0x47f4;logger['error'](_0x3de953['stack']),_0x3de953['name']&&delete _0x3de953[_0x263a6d('0xd')],_0x15597b[_0x263a6d('0x32')](_0x496348)[_0x263a6d('0xc')](_0x3de953);};}exports['index']=function(_0xa0bcf3,_0x1d601b){const _0x1f198f=_0x2a6948;let _0x1d60c8={};const _0x2799a2={},_0x27e862={'count':0x0,'rows':[]},_0x3898ef=_[_0x1f198f('0x3')](db[_0x1f198f('0x1a')][_0x1f198f('0x1e')],function(_0x2d195d){const _0x3a501c=_0x1f198f;return{'name':_0x2d195d['fieldName'],'type':_0x2d195d[_0x3a501c('0x15')]['key']};});_0x2799a2[_0x1f198f('0x2a')]=_[_0x1f198f('0x3')](_0x3898ef,_0x1f198f('0xd')),_0x2799a2['query']=_[_0x1f198f('0x22')](_0xa0bcf3[_0x1f198f('0x25')]),_0x2799a2[_0x1f198f('0xa')]=_[_0x1f198f('0x33')](_0x2799a2[_0x1f198f('0x2a')],_0x2799a2[_0x1f198f('0x25')]),_0x1d60c8[_0x1f198f('0x8')]=_['intersection'](_0x2799a2[_0x1f198f('0x2a')],qs['fields'](_0xa0bcf3[_0x1f198f('0x25')]['fields'])),_0x1d60c8[_0x1f198f('0x8')]=_0x1d60c8[_0x1f198f('0x8')]['length']?_0x1d60c8[_0x1f198f('0x8')]:_0x2799a2[_0x1f198f('0x2a')];typeof _0xa0bcf3[_0x1f198f('0x25')][_0x1f198f('0x21')]===_0x1f198f('0x18')&&(_0x1d60c8[_0x1f198f('0x2')]=qs[_0x1f198f('0x2')](_0xa0bcf3['query'][_0x1f198f('0x2')]),_0x1d60c8[_0x1f198f('0x10')]=qs['offset'](_0xa0bcf3['query'][_0x1f198f('0x10')]));_0x1d60c8['order']=qs[_0x1f198f('0xf')](_0xa0bcf3[_0x1f198f('0x25')][_0x1f198f('0xf')]),_0x1d60c8['where']=qs[_0x1f198f('0xa')](_[_0x1f198f('0x7')](_0xa0bcf3[_0x1f198f('0x25')],_0x2799a2['filters']),_0x3898ef);_0xa0bcf3['query'][_0x1f198f('0x0')]&&(_0x1d60c8[_0x1f198f('0x19')]=_[_0x1f198f('0x16')](_0x1d60c8[_0x1f198f('0x19')],{[Op['or']]:_[_0x1f198f('0x3')](_0x3898ef,function(_0x5e55d5){const _0x2c6871=_0x1f198f;if(_0x5e55d5[_0x2c6871('0x15')]!==_0x2c6871('0x1b')){const _0x26545e={};return _0x26545e[_0x5e55d5[_0x2c6871('0xd')]]={[Op['like']]:'%'+_0xa0bcf3[_0x2c6871('0x25')][_0x2c6871('0x0')]+'%'},_0x26545e;}})}));_0x1d60c8=_[_0x1f198f('0x16')]({},_0x1d60c8,_0xa0bcf3[_0x1f198f('0x4')]);const _0x598ba4={'where':_0x1d60c8[_0x1f198f('0x19')]};return db[_0x1f198f('0x1a')][_0x1f198f('0x26')](_0x598ba4)[_0x1f198f('0x24')](function(_0x4aba99){const _0x5c2444=_0x1f198f;return _0x27e862['count']=_0x4aba99,_0xa0bcf3[_0x5c2444('0x25')][_0x5c2444('0x27')]&&(_0x1d60c8[_0x5c2444('0x1f')]=[{'all':!![]}]),db[_0x5c2444('0x1a')][_0x5c2444('0x28')](_0x1d60c8);})['then'](function(_0x393a45){const _0x2505e8=_0x1f198f;return _0x27e862[_0x2505e8('0x35')]=_0x393a45,_0x27e862;})[_0x1f198f('0x24')](respondWithFilteredResult(_0x1d601b,_0x1d60c8))[_0x1f198f('0x13')](handleError(_0x1d601b,null));},exports[_0x2a6948('0x11')]=function(_0x144589,_0x1ca72f){const _0x25af8e=_0x2a6948;let _0x7a4115={'raw':!![],'where':{'id':_0x144589[_0x25af8e('0x14')]['id']}};const _0x46bca3={};return _0x46bca3[_0x25af8e('0x2a')]=_[_0x25af8e('0x22')](db[_0x25af8e('0x1a')]['rawAttributes']),_0x46bca3[_0x25af8e('0x25')]=_[_0x25af8e('0x22')](_0x144589[_0x25af8e('0x25')]),_0x46bca3[_0x25af8e('0xa')]=_[_0x25af8e('0x33')](_0x46bca3[_0x25af8e('0x2a')],_0x46bca3[_0x25af8e('0x25')]),_0x7a4115[_0x25af8e('0x8')]=_[_0x25af8e('0x33')](_0x46bca3[_0x25af8e('0x2a')],qs['fields'](_0x144589[_0x25af8e('0x25')]['fields'])),_0x7a4115[_0x25af8e('0x8')]=_0x7a4115[_0x25af8e('0x8')]['length']?_0x7a4115[_0x25af8e('0x8')]:_0x46bca3['model'],_0x144589[_0x25af8e('0x25')]['includeAll']&&(_0x7a4115[_0x25af8e('0x1f')]=[{'all':!![]}]),_0x7a4115=_[_0x25af8e('0x16')]({},_0x7a4115,_0x144589['options']),db[_0x25af8e('0x1a')]['findOne'](_0x7a4115)['then'](handleEntityNotFound(_0x1ca72f,null))[_0x25af8e('0x24')](respondWithResult(_0x1ca72f,null))[_0x25af8e('0x13')](handleError(_0x1ca72f,null));},exports[_0x2a6948('0x1')]=function(_0x332a9f,_0x27dad2){const _0x57b3ff=_0x2a6948;return db['AnalyticMetric'][_0x57b3ff('0x1')](_0x332a9f[_0x57b3ff('0x6')],{})[_0x57b3ff('0x24')](function(_0x154c6f){const _0x3afc6b=_0x57b3ff,_0xda9283=_0x332a9f[_0x3afc6b('0xb')]['get']({'plain':!![]});if(!_0xda9283)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0xda9283[_0x3afc6b('0x12')]===_0x3afc6b('0xb')){const _0x296b99=_0x154c6f[_0x3afc6b('0x1d')]({'plain':!![]}),_0xac73c5='Metrics';return db[_0x3afc6b('0x20')]['findOne']({'where':{'name':_0xac73c5,'userProfileId':_0xda9283[_0x3afc6b('0x29')]},'raw':!![]})[_0x3afc6b('0x24')](function(_0x2056c2){const _0x1a85cd=_0x3afc6b;return _0x2056c2&&_0x2056c2[_0x1a85cd('0x30')]===0x0?db['UserProfileResource']['create']({'name':_0x296b99[_0x1a85cd('0xd')],'resourceId':_0x296b99['id'],'type':_0x2056c2[_0x1a85cd('0xd')],'sectionId':_0x2056c2['id']},{})[_0x1a85cd('0x24')](function(){return _0x154c6f;}):_0x154c6f;})[_0x3afc6b('0x13')](function(_0x236c32){const _0x1770c7=_0x3afc6b;logger['error'](_0x1770c7('0x34'),_0x236c32);throw _0x236c32;});}return _0x154c6f;})['then'](respondWithResult(_0x27dad2,0xc9))[_0x57b3ff('0x13')](handleError(_0x27dad2,null));},exports[_0x2a6948('0x17')]=function(_0x3b163b,_0x485e4a){const _0x1f049f=_0x2a6948;return _0x3b163b['body']['id']&&delete _0x3b163b[_0x1f049f('0x6')]['id'],db['AnalyticMetric'][_0x1f049f('0x2d')]({'where':{'id':_0x3b163b[_0x1f049f('0x14')]['id']}})[_0x1f049f('0x24')](handleEntityNotFound(_0x485e4a,null))[_0x1f049f('0x24')](saveUpdates(_0x3b163b[_0x1f049f('0x6')],null))[_0x1f049f('0x24')](respondWithResult(_0x485e4a,null))[_0x1f049f('0x13')](handleError(_0x485e4a,null));},exports[_0x2a6948('0x31')]=function(_0x2502ab,_0x284689){const _0x120237=_0x2a6948;return db[_0x120237('0x1a')]['findOne']({'where':{'id':_0x2502ab[_0x120237('0x14')]['id']}})['then'](handleEntityNotFound(_0x284689,null))[_0x120237('0x24')](removeEntity(_0x284689,null))[_0x120237('0x13')](handleError(_0x284689,null));}; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.model.js b/server/api/analyticMetric/analyticMetric.model.js index 63ed3fb..87427b6 100644 --- a/server/api/analyticMetric/analyticMetric.model.js +++ b/server/api/analyticMetric/analyticMetric.model.js @@ -1 +1 @@ -const a22_0x5a34=['define','exports','AnalyticMetric','./analyticMetric.attributes','analytics_metrics'];(function(_0x2b1b04,_0x5a34a4){const _0x877485=function(_0x1767d2){while(--_0x1767d2){_0x2b1b04['push'](_0x2b1b04['shift']());}};_0x877485(++_0x5a34a4);}(a22_0x5a34,0xeb));const a22_0x8774=function(_0x2b1b04,_0x5a34a4){_0x2b1b04=_0x2b1b04-0x0;let _0x877485=a22_0x5a34[_0x2b1b04];return _0x877485;};const _0x5caf00=a22_0x8774;'use strict';const attributes=require(_0x5caf00('0x3'));module[_0x5caf00('0x1')]=function(_0x1767d2){const _0x2e4fb1=_0x5caf00,_0x8091ca=_0x1767d2[_0x2e4fb1('0x0')](_0x2e4fb1('0x2'),attributes,{'tableName':_0x2e4fb1('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x8091ca;}; \ No newline at end of file +const a22_0x5707=['exports','define','./analyticMetric.attributes','analytics_metrics','AnalyticMetric'];(function(_0x1bb9ff,_0x5707f0){const _0x566c72=function(_0x5e0e3b){while(--_0x5e0e3b){_0x1bb9ff['push'](_0x1bb9ff['shift']());}};_0x566c72(++_0x5707f0);}(a22_0x5707,0x10d));const a22_0x566c=function(_0x1bb9ff,_0x5707f0){_0x1bb9ff=_0x1bb9ff-0x0;let _0x566c72=a22_0x5707[_0x1bb9ff];return _0x566c72;};const _0x32f07d=a22_0x566c;'use strict';const attributes=require(_0x32f07d('0x3'));module[_0x32f07d('0x1')]=function(_0x5e0e3b){const _0x47abbf=_0x32f07d,_0x1813c4=_0x5e0e3b[_0x47abbf('0x2')](_0x47abbf('0x0'),attributes,{'tableName':_0x47abbf('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1813c4;}; \ No newline at end of file diff --git a/server/api/analyticMetric/index.js b/server/api/analyticMetric/index.js index 8619f3f..f07852c 100644 --- a/server/api/analyticMetric/index.js +++ b/server/api/analyticMetric/index.js @@ -1 +1 @@ -const a23_0x4d73=['put','index','/:id','show','Router','express','./analyticMetric.controller','exports','delete','isAuthenticated','update','create','../../components/auth/service','get'];(function(_0x38abb2,_0x4d7328){const _0x197a5f=function(_0xd2634c){while(--_0xd2634c){_0x38abb2['push'](_0x38abb2['shift']());}};_0x197a5f(++_0x4d7328);}(a23_0x4d73,0x1b8));const a23_0x197a=function(_0x38abb2,_0x4d7328){_0x38abb2=_0x38abb2-0x0;let _0x197a5f=a23_0x4d73[_0x38abb2];return _0x197a5f;};const _0x13e4fe=a23_0x197a;'use strict';const express=require(_0x13e4fe('0xd')),router=express[_0x13e4fe('0xc')](),auth=require(_0x13e4fe('0x6')),controller=require(_0x13e4fe('0x0'));router[_0x13e4fe('0x7')]('/',auth[_0x13e4fe('0x3')](),controller[_0x13e4fe('0x9')]),router[_0x13e4fe('0x7')](_0x13e4fe('0xa'),auth[_0x13e4fe('0x3')](),controller[_0x13e4fe('0xb')]),router['post']('/',auth['isAuthenticated'](),controller[_0x13e4fe('0x5')]),router[_0x13e4fe('0x8')]('/:id',auth[_0x13e4fe('0x3')](),controller[_0x13e4fe('0x4')]),router[_0x13e4fe('0x2')](_0x13e4fe('0xa'),auth['isAuthenticated'](),controller['destroy']),module[_0x13e4fe('0x1')]=router; \ No newline at end of file +const a23_0x1fcb=['isAuthenticated','/:id','express','show','./analyticMetric.controller','put','Router','get','exports','destroy','index','../../components/auth/service'];(function(_0x17378f,_0x1fcb0c){const _0x428ec5=function(_0x2e9047){while(--_0x2e9047){_0x17378f['push'](_0x17378f['shift']());}};_0x428ec5(++_0x1fcb0c);}(a23_0x1fcb,0x69));const a23_0x428e=function(_0x17378f,_0x1fcb0c){_0x17378f=_0x17378f-0x0;let _0x428ec5=a23_0x1fcb[_0x17378f];return _0x428ec5;};const _0x468bfa=a23_0x428e;'use strict';const express=require(_0x468bfa('0x5')),router=express[_0x468bfa('0x9')](),auth=require(_0x468bfa('0x2')),controller=require(_0x468bfa('0x7'));router[_0x468bfa('0xa')]('/',auth[_0x468bfa('0x3')](),controller[_0x468bfa('0x1')]),router['get'](_0x468bfa('0x4'),auth['isAuthenticated'](),controller[_0x468bfa('0x6')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x468bfa('0x8')](_0x468bfa('0x4'),auth[_0x468bfa('0x3')](),controller['update']),router['delete'](_0x468bfa('0x4'),auth['isAuthenticated'](),controller[_0x468bfa('0x0')]),module[_0x468bfa('0xb')]=router; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.attributes.js b/server/api/analyticTreeReport/analyticTreeReport.attributes.js index fc57479..962c88d 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.attributes.js +++ b/server/api/analyticTreeReport/analyticTreeReport.attributes.js @@ -1 +1 @@ -const a24_0x559d=['exports','sequelize'];(function(_0x311614,_0x559d32){const _0x40db72=function(_0x1d71b1){while(--_0x1d71b1){_0x311614['push'](_0x311614['shift']());}};_0x40db72(++_0x559d32);}(a24_0x559d,0xb7));const a24_0x40db=function(_0x311614,_0x559d32){_0x311614=_0x311614-0x0;let _0x40db72=a24_0x559d[_0x311614];return _0x40db72;};const _0x43f2f9=a24_0x40db;'use strict';const Sequelize=require(_0x43f2f9('0x0'));module[_0x43f2f9('0x1')]={'tree':{'type':Sequelize['TEXT'],'allowNull':![]}}; \ No newline at end of file +const a24_0x15a9=['exports','TEXT'];(function(_0x3fce55,_0x15a913){const _0x5cd0a7=function(_0x5d17cf){while(--_0x5d17cf){_0x3fce55['push'](_0x3fce55['shift']());}};_0x5cd0a7(++_0x15a913);}(a24_0x15a9,0x98));const a24_0x5cd0=function(_0x3fce55,_0x15a913){_0x3fce55=_0x3fce55-0x0;let _0x5cd0a7=a24_0x15a9[_0x3fce55];return _0x5cd0a7;};const _0x1cc7f1=a24_0x5cd0;'use strict';const Sequelize=require('sequelize');module[_0x1cc7f1('0x0')]={'tree':{'type':Sequelize[_0x1cc7f1('0x1')],'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.controller.js b/server/api/analyticTreeReport/analyticTreeReport.controller.js index 4472129..1fa655c 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.controller.js +++ b/server/api/analyticTreeReport/analyticTreeReport.controller.js @@ -1 +1 @@ -const a25_0x39bd=['fields','type','map','json','AnalyticTreeReport','filters','keys','status','model','count','length','fieldName','sort','body','like','limit','VIRTUAL','includeAll','findAll','then','create','pick','index','rows','where','offset','catch','show','name','query','../../config/logger','order','include','filter','intersection','api','Content-Range','options','params','findOne','sequelize','attributes','rawAttributes','error','merge','nolimit','../../components/parsers/qs','update'];(function(_0x429abc,_0x39bd53){const _0x389c83=function(_0x19b9a9){while(--_0x19b9a9){_0x429abc['push'](_0x429abc['shift']());}};_0x389c83(++_0x39bd53);}(a25_0x39bd,0x18d));const a25_0x389c=function(_0x429abc,_0x39bd53){_0x429abc=_0x429abc-0x0;let _0x389c83=a25_0x39bd[_0x429abc];return _0x389c83;};const _0x2a93cd=a25_0x389c;'use strict';const _=require('lodash'),qs=require(_0x2a93cd('0x21')),logger=require(_0x2a93cd('0x11'))(_0x2a93cd('0x16')),db=require('../../mysqldb')['db'],{Op}=require(_0x2a93cd('0x1b'));function respondWithResult(_0x19b9a9,_0x17dc19){return _0x17dc19=_0x17dc19||0xc8,function(_0x218216){const _0xb5a0f0=a25_0x389c;if(_0x218216)return _0x19b9a9[_0xb5a0f0('0x2a')](_0x17dc19)[_0xb5a0f0('0x26')](_0x218216);};}function respondWithFilteredResult(_0x56983b,_0xf49b55){return function(_0x49eee7){const _0x2ddff0=a25_0x389c;if(_0x49eee7){const _0x201b6f=_0x49eee7[_0x2ddff0('0x2c')],_0x1f3b7e=_0xf49b55[_0x2ddff0('0xc')];let _0x356065=_0xf49b55[_0x2ddff0('0xc')]+_0xf49b55['limit'],_0xaa037b;return _0x356065>=_0x201b6f?(_0x356065=_0x201b6f,_0xaa037b=0xc8):_0xaa037b=0xce,_0x56983b[_0x2ddff0('0x2a')](_0xaa037b),_0x56983b['set'](_0x2ddff0('0x17'),_0x1f3b7e+'-'+_0x356065+'/'+_0x201b6f)['json'](_0x49eee7);}return null;};}function saveUpdates(_0x489d79){return function(_0x1a703a){const _0x35aa88=a25_0x389c;if(_0x1a703a)return _0x1a703a[_0x35aa88('0x22')](_0x489d79)['then'](function(_0x5e74b7){return _0x5e74b7;});return null;};}function removeEntity(_0x1b108b){return function(_0x5d81b3){if(_0x5d81b3)return _0x5d81b3['destroy']()['then'](function(){_0x1b108b['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x22cc78){return function(_0x57c55b){return!_0x57c55b&&_0x22cc78['sendStatus'](0x194),_0x57c55b;};}function handleError(_0x47b5b1,_0x3c74d2){return _0x3c74d2=_0x3c74d2||0x1f4,function(_0x631f79){const _0x2c4fa8=a25_0x389c;logger[_0x2c4fa8('0x1e')](_0x631f79['stack']),_0x631f79[_0x2c4fa8('0xf')]&&delete _0x631f79[_0x2c4fa8('0xf')],_0x47b5b1['status'](_0x3c74d2)['send'](_0x631f79);};}exports[_0x2a93cd('0x9')]=function(_0x3ca2b4,_0x639d8c){const _0x146ffc=_0x2a93cd;let _0x3c1917={};const _0x4abbff={},_0xb79e4c={'count':0x0,'rows':[]},_0x201727=_[_0x146ffc('0x25')](db[_0x146ffc('0x27')]['rawAttributes'],function(_0x4e9dc5){const _0x28780f=_0x146ffc;return{'name':_0x4e9dc5[_0x28780f('0x2e')],'type':_0x4e9dc5[_0x28780f('0x24')]['key']};});_0x4abbff[_0x146ffc('0x2b')]=_[_0x146ffc('0x25')](_0x201727,_0x146ffc('0xf')),_0x4abbff[_0x146ffc('0x10')]=_[_0x146ffc('0x29')](_0x3ca2b4['query']),_0x4abbff[_0x146ffc('0x28')]=_[_0x146ffc('0x15')](_0x4abbff[_0x146ffc('0x2b')],_0x4abbff[_0x146ffc('0x10')]),_0x3c1917[_0x146ffc('0x1c')]=_[_0x146ffc('0x15')](_0x4abbff[_0x146ffc('0x2b')],qs[_0x146ffc('0x23')](_0x3ca2b4[_0x146ffc('0x10')][_0x146ffc('0x23')])),_0x3c1917[_0x146ffc('0x1c')]=_0x3c1917[_0x146ffc('0x1c')][_0x146ffc('0x2d')]?_0x3c1917[_0x146ffc('0x1c')]:_0x4abbff[_0x146ffc('0x2b')];typeof _0x3ca2b4['query'][_0x146ffc('0x20')]==='undefined'&&(_0x3c1917['limit']=qs[_0x146ffc('0x2')](_0x3ca2b4[_0x146ffc('0x10')][_0x146ffc('0x2')]),_0x3c1917[_0x146ffc('0xc')]=qs['offset'](_0x3ca2b4[_0x146ffc('0x10')]['offset']));_0x3c1917[_0x146ffc('0x12')]=qs[_0x146ffc('0x2f')](_0x3ca2b4[_0x146ffc('0x10')][_0x146ffc('0x2f')]),_0x3c1917[_0x146ffc('0xb')]=qs[_0x146ffc('0x28')](_[_0x146ffc('0x8')](_0x3ca2b4[_0x146ffc('0x10')],_0x4abbff[_0x146ffc('0x28')]),_0x201727);_0x3ca2b4['query'][_0x146ffc('0x14')]&&(_0x3c1917[_0x146ffc('0xb')]=_[_0x146ffc('0x1f')](_0x3c1917[_0x146ffc('0xb')],{[Op['or']]:_[_0x146ffc('0x25')](_0x201727,function(_0x5650e0){const _0x33646b=_0x146ffc;if(_0x5650e0[_0x33646b('0x24')]!==_0x33646b('0x3')){const _0x49aaf2={};return _0x49aaf2[_0x5650e0['name']]={[Op[_0x33646b('0x1')]]:'%'+_0x3ca2b4[_0x33646b('0x10')]['filter']+'%'},_0x49aaf2;}})}));_0x3c1917=_[_0x146ffc('0x1f')]({},_0x3c1917,_0x3ca2b4[_0x146ffc('0x18')]);const _0x3c2a4a={'where':_0x3c1917[_0x146ffc('0xb')]};return db['AnalyticTreeReport'][_0x146ffc('0x2c')](_0x3c2a4a)[_0x146ffc('0x6')](function(_0x5a9058){const _0x115376=_0x146ffc;return _0xb79e4c[_0x115376('0x2c')]=_0x5a9058,_0x3ca2b4['query'][_0x115376('0x4')]&&(_0x3c1917[_0x115376('0x13')]=[{'all':!![]}]),db[_0x115376('0x27')][_0x115376('0x5')](_0x3c1917);})[_0x146ffc('0x6')](function(_0x2f3536){const _0x1773ac=_0x146ffc;return _0xb79e4c[_0x1773ac('0xa')]=_0x2f3536,_0xb79e4c;})[_0x146ffc('0x6')](respondWithFilteredResult(_0x639d8c,_0x3c1917))['catch'](handleError(_0x639d8c,null));},exports[_0x2a93cd('0xe')]=function(_0x42fffa,_0x4a3227){const _0x88c494=_0x2a93cd;let _0x6814d9={'raw':!![],'where':{'id':_0x42fffa[_0x88c494('0x19')]['id']}};const _0x4d6163={};return _0x4d6163['model']=_[_0x88c494('0x29')](db[_0x88c494('0x27')][_0x88c494('0x1d')]),_0x4d6163[_0x88c494('0x10')]=_[_0x88c494('0x29')](_0x42fffa['query']),_0x4d6163['filters']=_[_0x88c494('0x15')](_0x4d6163['model'],_0x4d6163[_0x88c494('0x10')]),_0x6814d9['attributes']=_[_0x88c494('0x15')](_0x4d6163[_0x88c494('0x2b')],qs[_0x88c494('0x23')](_0x42fffa[_0x88c494('0x10')][_0x88c494('0x23')])),_0x6814d9[_0x88c494('0x1c')]=_0x6814d9['attributes'][_0x88c494('0x2d')]?_0x6814d9[_0x88c494('0x1c')]:_0x4d6163['model'],_0x42fffa[_0x88c494('0x10')][_0x88c494('0x4')]&&(_0x6814d9[_0x88c494('0x13')]=[{'all':!![]}]),_0x6814d9=_[_0x88c494('0x1f')]({},_0x6814d9,_0x42fffa['options']),db['AnalyticTreeReport']['findOne'](_0x6814d9)[_0x88c494('0x6')](handleEntityNotFound(_0x4a3227,null))['then'](respondWithResult(_0x4a3227,null))[_0x88c494('0xd')](handleError(_0x4a3227,null));},exports[_0x2a93cd('0x7')]=function(_0x221b89,_0x260988){const _0x395078=_0x2a93cd;return db['AnalyticTreeReport']['create'](_0x221b89[_0x395078('0x0')],{})['then'](respondWithResult(_0x260988,0xc9))[_0x395078('0xd')](handleError(_0x260988,null));},exports[_0x2a93cd('0x22')]=function(_0x3ccda4,_0x4297f9){const _0x49230b=_0x2a93cd;return _0x3ccda4[_0x49230b('0x0')]['id']&&delete _0x3ccda4[_0x49230b('0x0')]['id'],db['AnalyticTreeReport'][_0x49230b('0x1a')]({'where':{'id':_0x3ccda4[_0x49230b('0x19')]['id']}})[_0x49230b('0x6')](handleEntityNotFound(_0x4297f9,null))[_0x49230b('0x6')](saveUpdates(_0x3ccda4[_0x49230b('0x0')],null))['then'](respondWithResult(_0x4297f9,null))[_0x49230b('0xd')](handleError(_0x4297f9,null));},exports['destroy']=function(_0x353dc5,_0x1c1d49){const _0x30444a=_0x2a93cd;return db[_0x30444a('0x27')][_0x30444a('0x1a')]({'where':{'id':_0x353dc5[_0x30444a('0x19')]['id']}})['then'](handleEntityNotFound(_0x1c1d49,null))['then'](removeEntity(_0x1c1d49,null))['catch'](handleError(_0x1c1d49,null));}; \ No newline at end of file +const a25_0x5a53=['AnalyticTreeReport','attributes','create','findOne','status','body','../../mysqldb','name','type','end','api','fieldName','include','sort','query','keys','filter','limit','set','show','send','fields','filters','model','key','order','sequelize','options','intersection','findAll','../../config/logger','catch','nolimit','rawAttributes','length','map','error','params','rows','Content-Range','../../components/parsers/qs','count','index','where','undefined','offset','includeAll','then','stack','merge','json','update'];(function(_0x5862f7,_0x5a5387){const _0x274b92=function(_0x38f664){while(--_0x38f664){_0x5862f7['push'](_0x5862f7['shift']());}};_0x274b92(++_0x5a5387);}(a25_0x5a53,0x1ea));const a25_0x274b=function(_0x5862f7,_0x5a5387){_0x5862f7=_0x5862f7-0x0;let _0x274b92=a25_0x5a53[_0x5862f7];return _0x274b92;};const _0x7d685e=a25_0x274b;'use strict';const _=require('lodash'),qs=require(_0x7d685e('0x12')),logger=require(_0x7d685e('0x8'))(_0x7d685e('0x28')),db=require(_0x7d685e('0x24'))['db'],{Op}=require(_0x7d685e('0x4'));function respondWithResult(_0x38f664,_0x414029){return _0x414029=_0x414029||0xc8,function(_0x219dfa){const _0x35f7e8=a25_0x274b;if(_0x219dfa)return _0x38f664[_0x35f7e8('0x22')](_0x414029)[_0x35f7e8('0x1c')](_0x219dfa);};}function respondWithFilteredResult(_0x252214,_0x48664f){return function(_0x4c46e6){const _0x390d64=a25_0x274b;if(_0x4c46e6){const _0x1427c6=_0x4c46e6[_0x390d64('0x13')],_0x1a7afd=_0x48664f['offset'];let _0x50d775=_0x48664f[_0x390d64('0x17')]+_0x48664f['limit'],_0x40fbfe;return _0x50d775>=_0x1427c6?(_0x50d775=_0x1427c6,_0x40fbfe=0xc8):_0x40fbfe=0xce,_0x252214[_0x390d64('0x22')](_0x40fbfe),_0x252214[_0x390d64('0x30')](_0x390d64('0x11'),_0x1a7afd+'-'+_0x50d775+'/'+_0x1427c6)['json'](_0x4c46e6);}return null;};}function saveUpdates(_0x56dca1){return function(_0x5032d9){const _0x1de528=a25_0x274b;if(_0x5032d9)return _0x5032d9['update'](_0x56dca1)[_0x1de528('0x19')](function(_0x2e786e){return _0x2e786e;});return null;};}function removeEntity(_0x4a76ea){return function(_0x257c89){const _0x54046d=a25_0x274b;if(_0x257c89)return _0x257c89['destroy']()[_0x54046d('0x19')](function(){const _0x26af51=_0x54046d;_0x4a76ea[_0x26af51('0x22')](0xcc)[_0x26af51('0x27')]();});};}function handleEntityNotFound(_0x50875b){return function(_0xa85557){return!_0xa85557&&_0x50875b['sendStatus'](0x194),_0xa85557;};}function handleError(_0x219c42,_0x153281){return _0x153281=_0x153281||0x1f4,function(_0x587350){const _0x426e16=a25_0x274b;logger[_0x426e16('0xe')](_0x587350[_0x426e16('0x1a')]),_0x587350[_0x426e16('0x25')]&&delete _0x587350[_0x426e16('0x25')],_0x219c42[_0x426e16('0x22')](_0x153281)[_0x426e16('0x32')](_0x587350);};}exports[_0x7d685e('0x14')]=function(_0x5036c1,_0x168feb){const _0x4ec0a2=_0x7d685e;let _0x4765dc={};const _0x2f4ed8={},_0x1b27f5={'count':0x0,'rows':[]},_0x78ac9d=_[_0x4ec0a2('0xd')](db[_0x4ec0a2('0x1e')][_0x4ec0a2('0xb')],function(_0x466c0c){const _0x41c3bf=_0x4ec0a2;return{'name':_0x466c0c[_0x41c3bf('0x29')],'type':_0x466c0c[_0x41c3bf('0x26')][_0x41c3bf('0x2')]};});_0x2f4ed8['model']=_['map'](_0x78ac9d,_0x4ec0a2('0x25')),_0x2f4ed8[_0x4ec0a2('0x2c')]=_[_0x4ec0a2('0x2d')](_0x5036c1[_0x4ec0a2('0x2c')]),_0x2f4ed8[_0x4ec0a2('0x0')]=_[_0x4ec0a2('0x6')](_0x2f4ed8[_0x4ec0a2('0x1')],_0x2f4ed8[_0x4ec0a2('0x2c')]),_0x4765dc[_0x4ec0a2('0x1f')]=_[_0x4ec0a2('0x6')](_0x2f4ed8[_0x4ec0a2('0x1')],qs[_0x4ec0a2('0x33')](_0x5036c1[_0x4ec0a2('0x2c')][_0x4ec0a2('0x33')])),_0x4765dc[_0x4ec0a2('0x1f')]=_0x4765dc[_0x4ec0a2('0x1f')][_0x4ec0a2('0xc')]?_0x4765dc['attributes']:_0x2f4ed8[_0x4ec0a2('0x1')];typeof _0x5036c1[_0x4ec0a2('0x2c')][_0x4ec0a2('0xa')]===_0x4ec0a2('0x16')&&(_0x4765dc['limit']=qs[_0x4ec0a2('0x2f')](_0x5036c1[_0x4ec0a2('0x2c')][_0x4ec0a2('0x2f')]),_0x4765dc[_0x4ec0a2('0x17')]=qs['offset'](_0x5036c1[_0x4ec0a2('0x2c')]['offset']));_0x4765dc[_0x4ec0a2('0x3')]=qs[_0x4ec0a2('0x2b')](_0x5036c1[_0x4ec0a2('0x2c')][_0x4ec0a2('0x2b')]),_0x4765dc[_0x4ec0a2('0x15')]=qs['filters'](_['pick'](_0x5036c1[_0x4ec0a2('0x2c')],_0x2f4ed8['filters']),_0x78ac9d);_0x5036c1['query'][_0x4ec0a2('0x2e')]&&(_0x4765dc[_0x4ec0a2('0x15')]=_[_0x4ec0a2('0x1b')](_0x4765dc[_0x4ec0a2('0x15')],{[Op['or']]:_[_0x4ec0a2('0xd')](_0x78ac9d,function(_0x1c047d){const _0x31871a=_0x4ec0a2;if(_0x1c047d['type']!=='VIRTUAL'){const _0x45869f={};return _0x45869f[_0x1c047d[_0x31871a('0x25')]]={[Op['like']]:'%'+_0x5036c1[_0x31871a('0x2c')]['filter']+'%'},_0x45869f;}})}));_0x4765dc=_['merge']({},_0x4765dc,_0x5036c1['options']);const _0x323f15={'where':_0x4765dc['where']};return db['AnalyticTreeReport']['count'](_0x323f15)[_0x4ec0a2('0x19')](function(_0x2765ae){const _0x124a68=_0x4ec0a2;return _0x1b27f5[_0x124a68('0x13')]=_0x2765ae,_0x5036c1['query'][_0x124a68('0x18')]&&(_0x4765dc[_0x124a68('0x2a')]=[{'all':!![]}]),db['AnalyticTreeReport'][_0x124a68('0x7')](_0x4765dc);})['then'](function(_0x55afe6){const _0x58a18b=_0x4ec0a2;return _0x1b27f5[_0x58a18b('0x10')]=_0x55afe6,_0x1b27f5;})[_0x4ec0a2('0x19')](respondWithFilteredResult(_0x168feb,_0x4765dc))['catch'](handleError(_0x168feb,null));},exports[_0x7d685e('0x31')]=function(_0x1515b7,_0x1d0039){const _0x444d42=_0x7d685e;let _0x51d102={'raw':!![],'where':{'id':_0x1515b7['params']['id']}};const _0x1fa415={};return _0x1fa415['model']=_[_0x444d42('0x2d')](db[_0x444d42('0x1e')][_0x444d42('0xb')]),_0x1fa415[_0x444d42('0x2c')]=_[_0x444d42('0x2d')](_0x1515b7[_0x444d42('0x2c')]),_0x1fa415['filters']=_[_0x444d42('0x6')](_0x1fa415[_0x444d42('0x1')],_0x1fa415[_0x444d42('0x2c')]),_0x51d102['attributes']=_[_0x444d42('0x6')](_0x1fa415[_0x444d42('0x1')],qs['fields'](_0x1515b7['query'][_0x444d42('0x33')])),_0x51d102[_0x444d42('0x1f')]=_0x51d102[_0x444d42('0x1f')][_0x444d42('0xc')]?_0x51d102['attributes']:_0x1fa415[_0x444d42('0x1')],_0x1515b7[_0x444d42('0x2c')][_0x444d42('0x18')]&&(_0x51d102[_0x444d42('0x2a')]=[{'all':!![]}]),_0x51d102=_['merge']({},_0x51d102,_0x1515b7[_0x444d42('0x5')]),db['AnalyticTreeReport'][_0x444d42('0x21')](_0x51d102)['then'](handleEntityNotFound(_0x1d0039,null))['then'](respondWithResult(_0x1d0039,null))[_0x444d42('0x9')](handleError(_0x1d0039,null));},exports[_0x7d685e('0x20')]=function(_0x3501d4,_0x28905f){const _0x1151e2=_0x7d685e;return db[_0x1151e2('0x1e')]['create'](_0x3501d4[_0x1151e2('0x23')],{})[_0x1151e2('0x19')](respondWithResult(_0x28905f,0xc9))[_0x1151e2('0x9')](handleError(_0x28905f,null));},exports[_0x7d685e('0x1d')]=function(_0x166dff,_0x3f5f64){const _0x34a8f5=_0x7d685e;return _0x166dff['body']['id']&&delete _0x166dff[_0x34a8f5('0x23')]['id'],db[_0x34a8f5('0x1e')][_0x34a8f5('0x21')]({'where':{'id':_0x166dff[_0x34a8f5('0xf')]['id']}})[_0x34a8f5('0x19')](handleEntityNotFound(_0x3f5f64,null))['then'](saveUpdates(_0x166dff[_0x34a8f5('0x23')],null))['then'](respondWithResult(_0x3f5f64,null))[_0x34a8f5('0x9')](handleError(_0x3f5f64,null));},exports['destroy']=function(_0x4ce517,_0xb77786){const _0x3debf8=_0x7d685e;return db[_0x3debf8('0x1e')][_0x3debf8('0x21')]({'where':{'id':_0x4ce517[_0x3debf8('0xf')]['id']}})['then'](handleEntityNotFound(_0xb77786,null))[_0x3debf8('0x19')](removeEntity(_0xb77786,null))[_0x3debf8('0x9')](handleError(_0xb77786,null));}; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.model.js b/server/api/analyticTreeReport/analyticTreeReport.model.js index a782a31..ecd50be 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.model.js +++ b/server/api/analyticTreeReport/analyticTreeReport.model.js @@ -1 +1 @@ -const a26_0x56a5=['AnalyticTreeReport','exports'];(function(_0x156ad6,_0x56a538){const _0x5b1299=function(_0x4193c1){while(--_0x4193c1){_0x156ad6['push'](_0x156ad6['shift']());}};_0x5b1299(++_0x56a538);}(a26_0x56a5,0xaf));const a26_0x5b12=function(_0x156ad6,_0x56a538){_0x156ad6=_0x156ad6-0x0;let _0x5b1299=a26_0x56a5[_0x156ad6];return _0x5b1299;};const _0x50e754=a26_0x5b12;'use strict';const attributes=require('./analyticTreeReport.attributes');module[_0x50e754('0x0')]=function(_0x4193c1){const _0x39d9d2=_0x50e754,_0x4d8bfa=_0x4193c1['define'](_0x39d9d2('0x1'),attributes,{'tableName':'analytics_report_trees','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4d8bfa;}; \ No newline at end of file +const a26_0x21c3=['./analyticTreeReport.attributes','define','exports','AnalyticTreeReport','analytics_report_trees'];(function(_0xb13944,_0x21c339){const _0x111bd1=function(_0x5bda33){while(--_0x5bda33){_0xb13944['push'](_0xb13944['shift']());}};_0x111bd1(++_0x21c339);}(a26_0x21c3,0x196));const a26_0x111b=function(_0xb13944,_0x21c339){_0xb13944=_0xb13944-0x0;let _0x111bd1=a26_0x21c3[_0xb13944];return _0x111bd1;};const _0x52adea=a26_0x111b;'use strict';const attributes=require(_0x52adea('0x4'));module[_0x52adea('0x1')]=function(_0x5bda33){const _0x58d04b=_0x52adea,_0x207753=_0x5bda33[_0x58d04b('0x0')](_0x58d04b('0x2'),attributes,{'tableName':_0x58d04b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x207753;}; \ No newline at end of file diff --git a/server/api/analyticTreeReport/index.js b/server/api/analyticTreeReport/index.js index b3152da..ec18449 100644 --- a/server/api/analyticTreeReport/index.js +++ b/server/api/analyticTreeReport/index.js @@ -1 +1 @@ -const a27_0x132a=['isAuthenticated','put','destroy','delete','update','express','get','index','exports','./analyticTreeReport.controller','show','../../components/auth/service','/:id','create'];(function(_0x4fd75a,_0x132a3a){const _0x384145=function(_0x4128b9){while(--_0x4128b9){_0x4fd75a['push'](_0x4fd75a['shift']());}};_0x384145(++_0x132a3a);}(a27_0x132a,0x142));const a27_0x3841=function(_0x4fd75a,_0x132a3a){_0x4fd75a=_0x4fd75a-0x0;let _0x384145=a27_0x132a[_0x4fd75a];return _0x384145;};const _0x2d9e55=a27_0x3841;'use strict';const express=require(_0x2d9e55('0x5')),router=express['Router'](),auth=require(_0x2d9e55('0xb')),controller=require(_0x2d9e55('0x9'));router[_0x2d9e55('0x6')]('/',auth[_0x2d9e55('0x0')](),controller[_0x2d9e55('0x7')]),router[_0x2d9e55('0x6')](_0x2d9e55('0xc'),auth[_0x2d9e55('0x0')](),controller[_0x2d9e55('0xa')]),router['post']('/',auth[_0x2d9e55('0x0')](),controller[_0x2d9e55('0xd')]),router[_0x2d9e55('0x1')](_0x2d9e55('0xc'),auth[_0x2d9e55('0x0')](),controller[_0x2d9e55('0x4')]),router[_0x2d9e55('0x3')](_0x2d9e55('0xc'),auth[_0x2d9e55('0x0')](),controller[_0x2d9e55('0x2')]),module[_0x2d9e55('0x8')]=router; \ No newline at end of file +const a27_0x473d=['put','isAuthenticated','update','/:id','exports','create','../../components/auth/service','./analyticTreeReport.controller','delete','express','Router','destroy','index','get','show'];(function(_0x5a4db6,_0x473dcd){const _0x3c1097=function(_0x2c8d99){while(--_0x2c8d99){_0x5a4db6['push'](_0x5a4db6['shift']());}};_0x3c1097(++_0x473dcd);}(a27_0x473d,0xa5));const a27_0x3c10=function(_0x5a4db6,_0x473dcd){_0x5a4db6=_0x5a4db6-0x0;let _0x3c1097=a27_0x473d[_0x5a4db6];return _0x3c1097;};const _0x2c81a6=a27_0x3c10;'use strict';const express=require(_0x2c81a6('0x9')),router=express[_0x2c81a6('0xa')](),auth=require(_0x2c81a6('0x6')),controller=require(_0x2c81a6('0x7'));router['get']('/',auth[_0x2c81a6('0x1')](),controller[_0x2c81a6('0xc')]),router[_0x2c81a6('0xd')](_0x2c81a6('0x3'),auth['isAuthenticated'](),controller[_0x2c81a6('0xe')]),router['post']('/',auth[_0x2c81a6('0x1')](),controller[_0x2c81a6('0x5')]),router[_0x2c81a6('0x0')]('/:id',auth[_0x2c81a6('0x1')](),controller[_0x2c81a6('0x2')]),router[_0x2c81a6('0x8')](_0x2c81a6('0x3'),auth[_0x2c81a6('0x1')](),controller[_0x2c81a6('0xb')]),module[_0x2c81a6('0x4')]=router; \ No newline at end of file diff --git a/server/api/attachment/attachment.attributes.js b/server/api/attachment/attachment.attributes.js index 5086deb..37bbad8 100644 --- a/server/api/attachment/attachment.attributes.js +++ b/server/api/attachment/attachment.attributes.js @@ -1 +1 @@ -const a28_0x39a4=['exports','sequelize','STRING'];(function(_0x3dff65,_0x39a4d8){const _0xf369db=function(_0x449319){while(--_0x449319){_0x3dff65['push'](_0x3dff65['shift']());}};_0xf369db(++_0x39a4d8);}(a28_0x39a4,0x191));const a28_0xf369=function(_0x3dff65,_0x39a4d8){_0x3dff65=_0x3dff65-0x0;let _0xf369db=a28_0x39a4[_0x3dff65];return _0xf369db;};const _0x3a8726=a28_0xf369;'use strict';const Sequelize=require(_0x3a8726('0x2'));module[_0x3a8726('0x1')]={'name':{'type':Sequelize[_0x3a8726('0x0')]},'basename':{'type':Sequelize[_0x3a8726('0x0')]},'type':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a28_0x1937=['sequelize','STRING'];(function(_0x2ab1ad,_0x19373c){const _0x4616b0=function(_0x3d8826){while(--_0x3d8826){_0x2ab1ad['push'](_0x2ab1ad['shift']());}};_0x4616b0(++_0x19373c);}(a28_0x1937,0x1e4));const a28_0x4616=function(_0x2ab1ad,_0x19373c){_0x2ab1ad=_0x2ab1ad-0x0;let _0x4616b0=a28_0x1937[_0x2ab1ad];return _0x4616b0;};const _0x557b07=a28_0x4616;'use strict';const Sequelize=require(_0x557b07('0x0'));module['exports']={'name':{'type':Sequelize[_0x557b07('0x1')]},'basename':{'type':Sequelize['STRING']},'type':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/attachment/attachment.controller.js b/server/api/attachment/attachment.controller.js index aababe4..368e64c 100644 --- a/server/api/attachment/attachment.controller.js +++ b/server/api/attachment/attachment.controller.js @@ -1 +1 @@ -const a29_0x40d9=['create','../../config/logger','../../config/environment','body','file','show','findAll','keys','offset','sequelize','rawAttributes','where','attributes','json','updatedAt','originalname','omit','api','count','query','download','sendStatus','then','findOne','lodash','limit','name','mimetype','error','get','fields','include','set','order','options','send','Attachment','basename','index','model','end','../../mysqldb','destroy','clone','includeAll','fieldName','root','intersection','type','stack','map','Content-Range','VIRTUAL','merge','status','filters','join','filter','nolimit','key','length','catch','params','undefined','createdAt'];(function(_0x34e2b5,_0x40d9fa){const _0x220fc4=function(_0x44533b){while(--_0x44533b){_0x34e2b5['push'](_0x34e2b5['shift']());}};_0x220fc4(++_0x40d9fa);}(a29_0x40d9,0x195));const a29_0x220f=function(_0x34e2b5,_0x40d9fa){_0x34e2b5=_0x34e2b5-0x0;let _0x220fc4=a29_0x40d9[_0x34e2b5];return _0x220fc4;};const _0x3ebcf9=a29_0x220f;'use strict';const path=require('path'),_=require(_0x3ebcf9('0x9')),qs=require('../../components/parsers/qs'),logger=require(_0x3ebcf9('0x33'))(_0x3ebcf9('0x2')),config=require(_0x3ebcf9('0x34')),db=require(_0x3ebcf9('0x1a'))['db'],{Op}=require(_0x3ebcf9('0x3b'));function respondWithResult(_0x44533b,_0x200619){return _0x200619=_0x200619||0xc8,function(_0x3ceb94){const _0x457b83=a29_0x220f;if(_0x3ceb94)return _0x44533b[_0x457b83('0x27')](_0x200619)['json'](_0x3ceb94);};}function respondWithFilteredResult(_0x4be0b6,_0x1fc9c9){return function(_0xac3c15){const _0x796e52=a29_0x220f;if(_0xac3c15){const _0x24180c=_0xac3c15[_0x796e52('0x3')],_0x228e86=_0x1fc9c9[_0x796e52('0x3a')];let _0x2afcf5=_0x1fc9c9[_0x796e52('0x3a')]+_0x1fc9c9[_0x796e52('0xa')],_0x8dd16;return _0x2afcf5>=_0x24180c?(_0x2afcf5=_0x24180c,_0x8dd16=0xc8):_0x8dd16=0xce,_0x4be0b6[_0x796e52('0x27')](_0x8dd16),_0x4be0b6[_0x796e52('0x11')](_0x796e52('0x24'),_0x228e86+'-'+_0x2afcf5+'/'+_0x24180c)[_0x796e52('0x3f')](_0xac3c15);}return null;};}function saveUpdates(_0x462c5d){return function(_0x46fc1b){if(_0x46fc1b)return _0x46fc1b['update'](_0x462c5d)['then'](function(_0x495a5f){return _0x495a5f;});return null;};}function removeEntity(_0x35e8a1){return function(_0x25c8cb){const _0x3046ae=a29_0x220f;if(_0x25c8cb)return _0x25c8cb[_0x3046ae('0x1b')]()['then'](function(){const _0xb295ee=_0x3046ae;_0x35e8a1['status'](0xcc)[_0xb295ee('0x19')]();});};}function handleEntityNotFound(_0x3e94b1){return function(_0x442f52){const _0x3ea545=a29_0x220f;return!_0x442f52&&_0x3e94b1[_0x3ea545('0x6')](0x194),_0x442f52;};}function handleError(_0x492674,_0x51d602){return _0x51d602=_0x51d602||0x1f4,function(_0x56ba5f){const _0x3ec236=a29_0x220f;logger[_0x3ec236('0xd')](_0x56ba5f[_0x3ec236('0x22')]),_0x56ba5f[_0x3ec236('0xb')]&&delete _0x56ba5f['name'],_0x492674[_0x3ec236('0x27')](_0x51d602)[_0x3ec236('0x14')](_0x56ba5f);};}exports[_0x3ebcf9('0x17')]=function(_0x4aacac,_0x38f20c){const _0x26ee38=_0x3ebcf9;let _0x4d8ea0={};const _0x4ae4a5={},_0x4e400e={'count':0x0,'rows':[]},_0x2691d2=_[_0x26ee38('0x23')](db[_0x26ee38('0x15')][_0x26ee38('0x3c')],function(_0x592142){const _0x3c0726=_0x26ee38;return{'name':_0x592142[_0x3c0726('0x1e')],'type':_0x592142[_0x3c0726('0x21')][_0x3c0726('0x2c')]};});_0x4ae4a5['model']=_['map'](_0x2691d2,_0x26ee38('0xb')),_0x4ae4a5[_0x26ee38('0x4')]=_[_0x26ee38('0x39')](_0x4aacac[_0x26ee38('0x4')]),_0x4ae4a5[_0x26ee38('0x28')]=_[_0x26ee38('0x20')](_0x4ae4a5[_0x26ee38('0x18')],_0x4ae4a5[_0x26ee38('0x4')]),_0x4d8ea0[_0x26ee38('0x3e')]=_['intersection'](_0x4ae4a5[_0x26ee38('0x18')],qs[_0x26ee38('0xf')](_0x4aacac[_0x26ee38('0x4')][_0x26ee38('0xf')])),_0x4d8ea0[_0x26ee38('0x3e')]=_0x4d8ea0[_0x26ee38('0x3e')][_0x26ee38('0x2d')]?_0x4d8ea0['attributes']:_0x4ae4a5[_0x26ee38('0x18')];typeof _0x4aacac[_0x26ee38('0x4')][_0x26ee38('0x2b')]===_0x26ee38('0x30')&&(_0x4d8ea0[_0x26ee38('0xa')]=qs[_0x26ee38('0xa')](_0x4aacac[_0x26ee38('0x4')][_0x26ee38('0xa')]),_0x4d8ea0[_0x26ee38('0x3a')]=qs[_0x26ee38('0x3a')](_0x4aacac['query']['offset']));_0x4d8ea0[_0x26ee38('0x12')]=qs['sort'](_0x4aacac[_0x26ee38('0x4')]['sort']),_0x4d8ea0[_0x26ee38('0x3d')]=qs[_0x26ee38('0x28')](_['pick'](_0x4aacac[_0x26ee38('0x4')],_0x4ae4a5[_0x26ee38('0x28')]),_0x2691d2);_0x4aacac[_0x26ee38('0x4')][_0x26ee38('0x2a')]&&(_0x4d8ea0[_0x26ee38('0x3d')]=_['merge'](_0x4d8ea0[_0x26ee38('0x3d')],{[Op['or']]:_[_0x26ee38('0x23')](_0x2691d2,function(_0x2b320f){const _0xa92aa4=_0x26ee38;if(_0x2b320f[_0xa92aa4('0x21')]!==_0xa92aa4('0x25')){const _0x10522d={};return _0x10522d[_0x2b320f['name']]={[Op['like']]:'%'+_0x4aacac['query']['filter']+'%'},_0x10522d;}})}));_0x4d8ea0=_[_0x26ee38('0x26')]({},_0x4d8ea0,_0x4aacac['options']);const _0x3ca06e={'where':_0x4d8ea0['where']};return db[_0x26ee38('0x15')][_0x26ee38('0x3')](_0x3ca06e)['then'](function(_0x44c6f9){const _0x2eca46=_0x26ee38;return _0x4e400e[_0x2eca46('0x3')]=_0x44c6f9,_0x4aacac[_0x2eca46('0x4')][_0x2eca46('0x1d')]&&(_0x4d8ea0['include']=[{'all':!![]}]),db['Attachment'][_0x2eca46('0x38')](_0x4d8ea0);})['then'](function(_0x4177bd){return _0x4e400e['rows']=_0x4177bd,_0x4e400e;})[_0x26ee38('0x7')](respondWithFilteredResult(_0x38f20c,_0x4d8ea0))[_0x26ee38('0x2e')](handleError(_0x38f20c,null));},exports[_0x3ebcf9('0x37')]=function(_0x15100e,_0x5d4bef){const _0x3157e3=_0x3ebcf9;let _0x51d246={'raw':!![],'where':{'id':_0x15100e[_0x3157e3('0x2f')]['id']}};const _0x2c125f={};return _0x2c125f[_0x3157e3('0x18')]=_[_0x3157e3('0x39')](db['Attachment'][_0x3157e3('0x3c')]),_0x2c125f[_0x3157e3('0x4')]=_['keys'](_0x15100e[_0x3157e3('0x4')]),_0x2c125f[_0x3157e3('0x28')]=_[_0x3157e3('0x20')](_0x2c125f['model'],_0x2c125f['query']),_0x51d246[_0x3157e3('0x3e')]=_[_0x3157e3('0x20')](_0x2c125f['model'],qs['fields'](_0x15100e[_0x3157e3('0x4')][_0x3157e3('0xf')])),_0x51d246[_0x3157e3('0x3e')]=_0x51d246[_0x3157e3('0x3e')][_0x3157e3('0x2d')]?_0x51d246[_0x3157e3('0x3e')]:_0x2c125f[_0x3157e3('0x18')],_0x15100e[_0x3157e3('0x4')][_0x3157e3('0x1d')]&&(_0x51d246[_0x3157e3('0x10')]=[{'all':!![]}]),_0x51d246=_[_0x3157e3('0x26')]({},_0x51d246,_0x15100e[_0x3157e3('0x13')]),db[_0x3157e3('0x15')][_0x3157e3('0x8')](_0x51d246)['then'](handleEntityNotFound(_0x5d4bef,null))[_0x3157e3('0x7')](respondWithResult(_0x5d4bef,null))[_0x3157e3('0x2e')](handleError(_0x5d4bef,null));},exports[_0x3ebcf9('0x1c')]=function(_0x399934,_0x52efb2){const _0xfcca01=_0x3ebcf9;let _0x192504={'where':{'id':_0x399934[_0xfcca01('0x2f')]['id']}};const _0xb12b68={};return _0xb12b68[_0xfcca01('0x18')]=_['keys'](db[_0xfcca01('0x15')][_0xfcca01('0x3c')]),_0x192504[_0xfcca01('0x3e')]=_[_0xfcca01('0x20')](_0xb12b68[_0xfcca01('0x18')],qs['fields'](_0x399934[_0xfcca01('0x4')][_0xfcca01('0xf')])),_0x192504['attributes']=_0x192504[_0xfcca01('0x3e')][_0xfcca01('0x2d')]?_0x192504['attributes']:_0xb12b68[_0xfcca01('0x18')],_0x399934[_0xfcca01('0x4')]['includeAll']&&(_0x192504['include']=[{'all':!![]}]),_0x192504=_[_0xfcca01('0x26')]({},_0x192504,_0x399934[_0xfcca01('0x13')]),db[_0xfcca01('0x15')]['findOne'](_0x192504)[_0xfcca01('0x7')](handleEntityNotFound(_0x52efb2,null))[_0xfcca01('0x7')](function(_0x43c054){const _0x2e1c70=_0xfcca01;if(_0x43c054){let _0x32a277=_0x43c054[_0x2e1c70('0xe')]({'plain':!![]});return _0x32a277=qs[_0x2e1c70('0x1')](_0x32a277,['id',_0x2e1c70('0x31'),'updatedAt']),_0x399934[_0x2e1c70('0x35')]=_[_0x2e1c70('0x1')](_0x399934['body'],['id',_0x2e1c70('0x31'),_0x2e1c70('0x40')]),db[_0x2e1c70('0x15')][_0x2e1c70('0x32')](_[_0x2e1c70('0x26')](_0x32a277,_0x399934[_0x2e1c70('0x35')]),{'include':_0x399934['query'][_0x2e1c70('0x1d')]?[{'all':!![]}]:undefined});}})[_0xfcca01('0x7')](respondWithResult(_0x52efb2,0xc9))[_0xfcca01('0x2e')](handleError(_0x52efb2,null));},exports['update']=function(_0x46016f,_0x4e4c71){const _0x3ae030=_0x3ebcf9;return _0x46016f[_0x3ae030('0x35')]['id']&&delete _0x46016f['body']['id'],db['Attachment']['findOne']({'where':{'id':_0x46016f[_0x3ae030('0x2f')]['id']}})[_0x3ae030('0x7')](handleEntityNotFound(_0x4e4c71,null))[_0x3ae030('0x7')](saveUpdates(_0x46016f['body'],null))[_0x3ae030('0x7')](respondWithResult(_0x4e4c71,null))['catch'](handleError(_0x4e4c71,null));},exports[_0x3ebcf9('0x1b')]=function(_0x4e068c,_0xe5ab2e){const _0x18e674=_0x3ebcf9;return db[_0x18e674('0x15')][_0x18e674('0x8')]({'where':{'id':_0x4e068c[_0x18e674('0x2f')]['id']}})[_0x18e674('0x7')](handleEntityNotFound(_0xe5ab2e,null))[_0x18e674('0x7')](removeEntity(_0xe5ab2e,null))[_0x18e674('0x2e')](handleError(_0xe5ab2e,null));},exports[_0x3ebcf9('0x32')]=function(_0x2d8a5f,_0x529008){const _0x4e51d5=_0x3ebcf9;return _0x2d8a5f['body'][_0x4e51d5('0xb')]=_0x2d8a5f['file'][_0x4e51d5('0x0')],_0x2d8a5f[_0x4e51d5('0x35')][_0x4e51d5('0x16')]=_0x2d8a5f[_0x4e51d5('0x36')]['filename'],_0x2d8a5f[_0x4e51d5('0x35')][_0x4e51d5('0x21')]=_0x2d8a5f[_0x4e51d5('0x36')][_0x4e51d5('0xc')],db[_0x4e51d5('0x15')][_0x4e51d5('0x32')](_0x2d8a5f['body'])[_0x4e51d5('0x7')](respondWithResult(_0x529008,0xc9))[_0x4e51d5('0x2e')](handleError(_0x529008,null));},exports[_0x3ebcf9('0x5')]=function(_0x581806,_0xbceb75){const _0x146a75=_0x3ebcf9;return db[_0x146a75('0x15')]['findOne']({'where':{'id':_0x581806[_0x146a75('0x2f')]['id']},'raw':!![]})[_0x146a75('0x7')](handleEntityNotFound(_0xbceb75,null))[_0x146a75('0x7')](function(_0x45b95d){const _0x23e702=_0x146a75;if(_0x45b95d)return _0xbceb75[_0x23e702('0x5')](path[_0x23e702('0x29')](config[_0x23e702('0x1f')],'server/files/attachments/',_0x45b95d[_0x23e702('0x16')]));})[_0x146a75('0x2e')](handleError(_0xbceb75,null));}; \ No newline at end of file +const a29_0x59e8=['fields','sequelize','merge','query','create','findOne','pick','destroy','../../mysqldb','name','join','includeAll','offset','include','sendStatus','then','filters','omit','show','Content-Range','../../components/parsers/qs','attributes','get','set','json','clone','index','keys','status','root','error','file','order','updatedAt','rows','createdAt','like','nolimit','model','body','filter','end','send','sort','VIRTUAL','count','api','Attachment','limit','server/files/attachments/','type','length','options','basename','params','../../config/logger','lodash','key','rawAttributes','where','intersection','catch','undefined','map','download'];(function(_0x519eec,_0x59e86b){const _0x58ffa4=function(_0x1afbc0){while(--_0x1afbc0){_0x519eec['push'](_0x519eec['shift']());}};_0x58ffa4(++_0x59e86b);}(a29_0x59e8,0x17c));const a29_0x58ff=function(_0x519eec,_0x59e86b){_0x519eec=_0x519eec-0x0;let _0x58ffa4=a29_0x59e8[_0x519eec];return _0x58ffa4;};const _0x11c934=a29_0x58ff;'use strict';const path=require('path'),_=require(_0x11c934('0x1')),qs=require(_0x11c934('0x1e')),logger=require(_0x11c934('0x0'))(_0x11c934('0x38')),config=require('../../config/environment'),db=require(_0x11c934('0x12'))['db'],{Op}=require(_0x11c934('0xb'));function respondWithResult(_0x1afbc0,_0x4cb96d){return _0x4cb96d=_0x4cb96d||0xc8,function(_0x5af206){const _0x10fe4f=a29_0x58ff;if(_0x5af206)return _0x1afbc0['status'](_0x4cb96d)[_0x10fe4f('0x22')](_0x5af206);};}function respondWithFilteredResult(_0x26226f,_0x54f700){return function(_0x3f9123){const _0x30d985=a29_0x58ff;if(_0x3f9123){const _0x4c0c37=_0x3f9123['count'],_0x5db67a=_0x54f700[_0x30d985('0x16')];let _0x5bb74d=_0x54f700[_0x30d985('0x16')]+_0x54f700[_0x30d985('0x3a')],_0x59cd34;return _0x5bb74d>=_0x4c0c37?(_0x5bb74d=_0x4c0c37,_0x59cd34=0xc8):_0x59cd34=0xce,_0x26226f[_0x30d985('0x26')](_0x59cd34),_0x26226f[_0x30d985('0x21')](_0x30d985('0x1d'),_0x5db67a+'-'+_0x5bb74d+'/'+_0x4c0c37)['json'](_0x3f9123);}return null;};}function saveUpdates(_0x5b3977){return function(_0x2e0aad){const _0x4c9f4f=a29_0x58ff;if(_0x2e0aad)return _0x2e0aad['update'](_0x5b3977)[_0x4c9f4f('0x19')](function(_0x507d85){return _0x507d85;});return null;};}function removeEntity(_0x2cb3e6){return function(_0x5b3bad){const _0x2acfb8=a29_0x58ff;if(_0x5b3bad)return _0x5b3bad[_0x2acfb8('0x11')]()[_0x2acfb8('0x19')](function(){const _0xaa7143=_0x2acfb8;_0x2cb3e6[_0xaa7143('0x26')](0xcc)[_0xaa7143('0x33')]();});};}function handleEntityNotFound(_0x3102ec){return function(_0x5ab792){const _0x114518=a29_0x58ff;return!_0x5ab792&&_0x3102ec[_0x114518('0x18')](0x194),_0x5ab792;};}function handleError(_0x40fd59,_0x300f9a){return _0x300f9a=_0x300f9a||0x1f4,function(_0x1401ab){const _0x214036=a29_0x58ff;logger[_0x214036('0x28')](_0x1401ab['stack']),_0x1401ab[_0x214036('0x13')]&&delete _0x1401ab['name'],_0x40fd59[_0x214036('0x26')](_0x300f9a)[_0x214036('0x34')](_0x1401ab);};}exports[_0x11c934('0x24')]=function(_0x209455,_0x1f4b98){const _0x13645d=_0x11c934;let _0x133b33={};const _0x5adf08={},_0x22ba12={'count':0x0,'rows':[]},_0x3ec20c=_['map'](db[_0x13645d('0x39')][_0x13645d('0x3')],function(_0x22e7dc){const _0x1b1009=_0x13645d;return{'name':_0x22e7dc['fieldName'],'type':_0x22e7dc[_0x1b1009('0x3c')][_0x1b1009('0x2')]};});_0x5adf08[_0x13645d('0x30')]=_['map'](_0x3ec20c,_0x13645d('0x13')),_0x5adf08[_0x13645d('0xd')]=_[_0x13645d('0x25')](_0x209455[_0x13645d('0xd')]),_0x5adf08[_0x13645d('0x1a')]=_[_0x13645d('0x5')](_0x5adf08[_0x13645d('0x30')],_0x5adf08['query']),_0x133b33['attributes']=_['intersection'](_0x5adf08[_0x13645d('0x30')],qs['fields'](_0x209455[_0x13645d('0xd')][_0x13645d('0xa')])),_0x133b33[_0x13645d('0x1f')]=_0x133b33['attributes'][_0x13645d('0x3d')]?_0x133b33['attributes']:_0x5adf08[_0x13645d('0x30')];typeof _0x209455[_0x13645d('0xd')][_0x13645d('0x2f')]===_0x13645d('0x7')&&(_0x133b33[_0x13645d('0x3a')]=qs[_0x13645d('0x3a')](_0x209455[_0x13645d('0xd')]['limit']),_0x133b33[_0x13645d('0x16')]=qs[_0x13645d('0x16')](_0x209455[_0x13645d('0xd')][_0x13645d('0x16')]));_0x133b33[_0x13645d('0x2a')]=qs[_0x13645d('0x35')](_0x209455[_0x13645d('0xd')]['sort']),_0x133b33[_0x13645d('0x4')]=qs[_0x13645d('0x1a')](_[_0x13645d('0x10')](_0x209455[_0x13645d('0xd')],_0x5adf08['filters']),_0x3ec20c);_0x209455[_0x13645d('0xd')][_0x13645d('0x32')]&&(_0x133b33['where']=_[_0x13645d('0xc')](_0x133b33[_0x13645d('0x4')],{[Op['or']]:_[_0x13645d('0x8')](_0x3ec20c,function(_0x31d02d){const _0x1b93ca=_0x13645d;if(_0x31d02d[_0x1b93ca('0x3c')]!==_0x1b93ca('0x36')){const _0x58e37f={};return _0x58e37f[_0x31d02d[_0x1b93ca('0x13')]]={[Op[_0x1b93ca('0x2e')]]:'%'+_0x209455[_0x1b93ca('0xd')][_0x1b93ca('0x32')]+'%'},_0x58e37f;}})}));_0x133b33=_[_0x13645d('0xc')]({},_0x133b33,_0x209455[_0x13645d('0x3e')]);const _0x764c51={'where':_0x133b33[_0x13645d('0x4')]};return db['Attachment']['count'](_0x764c51)[_0x13645d('0x19')](function(_0x24cbb4){const _0x3ad421=_0x13645d;return _0x22ba12[_0x3ad421('0x37')]=_0x24cbb4,_0x209455[_0x3ad421('0xd')][_0x3ad421('0x15')]&&(_0x133b33[_0x3ad421('0x17')]=[{'all':!![]}]),db[_0x3ad421('0x39')]['findAll'](_0x133b33);})[_0x13645d('0x19')](function(_0x43da14){const _0xd94da8=_0x13645d;return _0x22ba12[_0xd94da8('0x2c')]=_0x43da14,_0x22ba12;})[_0x13645d('0x19')](respondWithFilteredResult(_0x1f4b98,_0x133b33))['catch'](handleError(_0x1f4b98,null));},exports[_0x11c934('0x1c')]=function(_0x516ac8,_0x407da3){const _0x552aea=_0x11c934;let _0x19dc25={'raw':!![],'where':{'id':_0x516ac8[_0x552aea('0x40')]['id']}};const _0x2d7583={};return _0x2d7583[_0x552aea('0x30')]=_['keys'](db[_0x552aea('0x39')][_0x552aea('0x3')]),_0x2d7583['query']=_[_0x552aea('0x25')](_0x516ac8[_0x552aea('0xd')]),_0x2d7583[_0x552aea('0x1a')]=_['intersection'](_0x2d7583[_0x552aea('0x30')],_0x2d7583[_0x552aea('0xd')]),_0x19dc25['attributes']=_[_0x552aea('0x5')](_0x2d7583[_0x552aea('0x30')],qs[_0x552aea('0xa')](_0x516ac8[_0x552aea('0xd')][_0x552aea('0xa')])),_0x19dc25[_0x552aea('0x1f')]=_0x19dc25['attributes'][_0x552aea('0x3d')]?_0x19dc25[_0x552aea('0x1f')]:_0x2d7583[_0x552aea('0x30')],_0x516ac8[_0x552aea('0xd')][_0x552aea('0x15')]&&(_0x19dc25[_0x552aea('0x17')]=[{'all':!![]}]),_0x19dc25=_[_0x552aea('0xc')]({},_0x19dc25,_0x516ac8[_0x552aea('0x3e')]),db[_0x552aea('0x39')][_0x552aea('0xf')](_0x19dc25)[_0x552aea('0x19')](handleEntityNotFound(_0x407da3,null))[_0x552aea('0x19')](respondWithResult(_0x407da3,null))['catch'](handleError(_0x407da3,null));},exports[_0x11c934('0x23')]=function(_0x442797,_0x582963){const _0x287c83=_0x11c934;let _0x2640ea={'where':{'id':_0x442797[_0x287c83('0x40')]['id']}};const _0x406411={};return _0x406411[_0x287c83('0x30')]=_[_0x287c83('0x25')](db[_0x287c83('0x39')][_0x287c83('0x3')]),_0x2640ea[_0x287c83('0x1f')]=_[_0x287c83('0x5')](_0x406411['model'],qs['fields'](_0x442797[_0x287c83('0xd')][_0x287c83('0xa')])),_0x2640ea['attributes']=_0x2640ea[_0x287c83('0x1f')][_0x287c83('0x3d')]?_0x2640ea[_0x287c83('0x1f')]:_0x406411['model'],_0x442797['query']['includeAll']&&(_0x2640ea[_0x287c83('0x17')]=[{'all':!![]}]),_0x2640ea=_[_0x287c83('0xc')]({},_0x2640ea,_0x442797[_0x287c83('0x3e')]),db[_0x287c83('0x39')][_0x287c83('0xf')](_0x2640ea)[_0x287c83('0x19')](handleEntityNotFound(_0x582963,null))[_0x287c83('0x19')](function(_0x44bd80){const _0x31277b=_0x287c83;if(_0x44bd80){let _0x19607c=_0x44bd80[_0x31277b('0x20')]({'plain':!![]});return _0x19607c=qs[_0x31277b('0x1b')](_0x19607c,['id',_0x31277b('0x2d'),_0x31277b('0x2b')]),_0x442797[_0x31277b('0x31')]=_['omit'](_0x442797[_0x31277b('0x31')],['id',_0x31277b('0x2d'),_0x31277b('0x2b')]),db[_0x31277b('0x39')][_0x31277b('0xe')](_['merge'](_0x19607c,_0x442797[_0x31277b('0x31')]),{'include':_0x442797[_0x31277b('0xd')][_0x31277b('0x15')]?[{'all':!![]}]:undefined});}})[_0x287c83('0x19')](respondWithResult(_0x582963,0xc9))[_0x287c83('0x6')](handleError(_0x582963,null));},exports['update']=function(_0x49e65d,_0x566dea){const _0x151dfb=_0x11c934;return _0x49e65d['body']['id']&&delete _0x49e65d[_0x151dfb('0x31')]['id'],db[_0x151dfb('0x39')]['findOne']({'where':{'id':_0x49e65d[_0x151dfb('0x40')]['id']}})[_0x151dfb('0x19')](handleEntityNotFound(_0x566dea,null))['then'](saveUpdates(_0x49e65d[_0x151dfb('0x31')],null))[_0x151dfb('0x19')](respondWithResult(_0x566dea,null))[_0x151dfb('0x6')](handleError(_0x566dea,null));},exports[_0x11c934('0x11')]=function(_0x2af79a,_0x3b550b){const _0x4d6f85=_0x11c934;return db[_0x4d6f85('0x39')][_0x4d6f85('0xf')]({'where':{'id':_0x2af79a[_0x4d6f85('0x40')]['id']}})[_0x4d6f85('0x19')](handleEntityNotFound(_0x3b550b,null))[_0x4d6f85('0x19')](removeEntity(_0x3b550b,null))[_0x4d6f85('0x6')](handleError(_0x3b550b,null));},exports[_0x11c934('0xe')]=function(_0x11a889,_0x18a709){const _0xb67af3=_0x11c934;return _0x11a889['body'][_0xb67af3('0x13')]=_0x11a889[_0xb67af3('0x29')]['originalname'],_0x11a889['body']['basename']=_0x11a889['file']['filename'],_0x11a889['body'][_0xb67af3('0x3c')]=_0x11a889[_0xb67af3('0x29')]['mimetype'],db[_0xb67af3('0x39')][_0xb67af3('0xe')](_0x11a889[_0xb67af3('0x31')])[_0xb67af3('0x19')](respondWithResult(_0x18a709,0xc9))[_0xb67af3('0x6')](handleError(_0x18a709,null));},exports[_0x11c934('0x9')]=function(_0x4bed32,_0x581c9f){const _0x4b41b2=_0x11c934;return db[_0x4b41b2('0x39')][_0x4b41b2('0xf')]({'where':{'id':_0x4bed32['params']['id']},'raw':!![]})[_0x4b41b2('0x19')](handleEntityNotFound(_0x581c9f,null))[_0x4b41b2('0x19')](function(_0x225387){const _0x133243=_0x4b41b2;if(_0x225387)return _0x581c9f[_0x133243('0x9')](path[_0x133243('0x14')](config[_0x133243('0x27')],_0x133243('0x3b'),_0x225387[_0x133243('0x3f')]));})[_0x4b41b2('0x6')](handleError(_0x581c9f,null));}; \ No newline at end of file diff --git a/server/api/attachment/attachment.model.js b/server/api/attachment/attachment.model.js index e4ea15b..edb0b2d 100644 --- a/server/api/attachment/attachment.model.js +++ b/server/api/attachment/attachment.model.js @@ -1 +1 @@ -const a30_0x204d=['define','attachments','Attachment'];(function(_0x471d92,_0x204d47){const _0xf0f985=function(_0x196e24){while(--_0x196e24){_0x471d92['push'](_0x471d92['shift']());}};_0xf0f985(++_0x204d47);}(a30_0x204d,0x176));const a30_0xf0f9=function(_0x471d92,_0x204d47){_0x471d92=_0x471d92-0x0;let _0xf0f985=a30_0x204d[_0x471d92];return _0xf0f985;};'use strict';const attributes=require('./attachment.attributes');module['exports']=function(_0x196e24){const _0x4aa80f=a30_0xf0f9,_0x442adc=_0x196e24[_0x4aa80f('0x1')](_0x4aa80f('0x0'),attributes,{'tableName':_0x4aa80f('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x442adc;}; \ No newline at end of file +const a30_0x2177=['Attachment','define','./attachment.attributes'];(function(_0x4ffa77,_0x21773b){const _0x54f1e6=function(_0x1d3675){while(--_0x1d3675){_0x4ffa77['push'](_0x4ffa77['shift']());}};_0x54f1e6(++_0x21773b);}(a30_0x2177,0x144));const a30_0x54f1=function(_0x4ffa77,_0x21773b){_0x4ffa77=_0x4ffa77-0x0;let _0x54f1e6=a30_0x2177[_0x4ffa77];return _0x54f1e6;};const _0x177df1=a30_0x54f1;'use strict';const attributes=require(_0x177df1('0x2'));module['exports']=function(_0x1d3675){const _0x2b93ef=_0x177df1,_0x19deda=_0x1d3675[_0x2b93ef('0x1')](_0x2b93ef('0x0'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});return _0x19deda;}; \ No newline at end of file diff --git a/server/api/attachment/attachment.rpc.js b/server/api/attachment/attachment.rpc.js index beb3ab4..50a3b2f 100644 --- a/server/api/attachment/attachment.rpc.js +++ b/server/api/attachment/attachment.rpc.js @@ -1 +1 @@ -const a31_0x1c49=['debug','raw','body','then','CreateAttachment','error','Attachment','rpc','../../mysqldb','info','message','stringify','catch','options','create'];(function(_0x3ca846,_0x1c492d){const _0x48c220=function(_0x3f5f52){while(--_0x3f5f52){_0x3ca846['push'](_0x3ca846['shift']());}};_0x48c220(++_0x1c492d);}(a31_0x1c49,0x1db));const a31_0x48c2=function(_0x3ca846,_0x1c492d){_0x3ca846=_0x3ca846-0x0;let _0x48c220=a31_0x1c49[_0x3ca846];return _0x48c220;};const _0x199ba5=a31_0x48c2;'use strict';const db=require(_0x199ba5('0xd'))['db'],logger=require('../../config/logger')(_0x199ba5('0xc'));exports[_0x199ba5('0x9')]=function(_0x3f5f52){const _0x43c76a=this;return new Promise(function(_0x137713,_0x3cd631){const _0x36d3e9=a31_0x48c2;return db[_0x36d3e9('0xb')][_0x36d3e9('0x4')](_0x3f5f52[_0x36d3e9('0x7')],{'raw':_0x3f5f52[_0x36d3e9('0x3')]?_0x3f5f52['options'][_0x36d3e9('0x6')]===undefined?!![]:![]:!![]})[_0x36d3e9('0x8')](function(_0x1a8363){const _0x5dd757=_0x36d3e9;logger[_0x5dd757('0xe')](_0x5dd757('0x9'),_0x3f5f52),logger[_0x5dd757('0x5')](_0x5dd757('0x9'),_0x3f5f52,JSON[_0x5dd757('0x1')](_0x1a8363)),_0x137713(_0x1a8363);})[_0x36d3e9('0x2')](function(_0x33fdd3){const _0x5b27ee=_0x36d3e9;logger['error'](_0x5b27ee('0x9'),_0x33fdd3[_0x5b27ee('0x0')],_0x3f5f52),_0x3cd631(_0x43c76a[_0x5b27ee('0xa')](0x1f4,_0x33fdd3['message']));});});}; \ No newline at end of file +const a31_0x4178=['../../mysqldb','options','raw','Attachment','rpc','debug','info','error','message','stringify','then','CreateAttachment','../../config/logger','create','body'];(function(_0x304719,_0x41782f){const _0x404489=function(_0xd3c944){while(--_0xd3c944){_0x304719['push'](_0x304719['shift']());}};_0x404489(++_0x41782f);}(a31_0x4178,0x8d));const a31_0x4044=function(_0x304719,_0x41782f){_0x304719=_0x304719-0x0;let _0x404489=a31_0x4178[_0x304719];return _0x404489;};const _0x11bf01=a31_0x4044;'use strict';const db=require(_0x11bf01('0x9'))['db'],logger=require(_0x11bf01('0x6'))(_0x11bf01('0xd'));exports[_0x11bf01('0x5')]=function(_0xd3c944){const _0x5cc9f5=this;return new Promise(function(_0x1492e7,_0x36c8d5){const _0xdb3a7e=a31_0x4044;return db[_0xdb3a7e('0xc')][_0xdb3a7e('0x7')](_0xd3c944[_0xdb3a7e('0x8')],{'raw':_0xd3c944[_0xdb3a7e('0xa')]?_0xd3c944[_0xdb3a7e('0xa')][_0xdb3a7e('0xb')]===undefined?!![]:![]:!![]})[_0xdb3a7e('0x4')](function(_0x264f36){const _0x1c6b2d=_0xdb3a7e;logger[_0x1c6b2d('0x0')](_0x1c6b2d('0x5'),_0xd3c944),logger[_0x1c6b2d('0xe')](_0x1c6b2d('0x5'),_0xd3c944,JSON[_0x1c6b2d('0x3')](_0x264f36)),_0x1492e7(_0x264f36);})['catch'](function(_0x370bc7){const _0x5b4fc4=_0xdb3a7e;logger[_0x5b4fc4('0x1')](_0x5b4fc4('0x5'),_0x370bc7[_0x5b4fc4('0x2')],_0xd3c944),_0x36c8d5(_0x5cc9f5[_0x5b4fc4('0x1')](0x1f4,_0x370bc7[_0x5b4fc4('0x2')]));});});}; \ No newline at end of file diff --git a/server/api/attachment/index.js b/server/api/attachment/index.js index 9e5ad2f..69a9937 100644 --- a/server/api/attachment/index.js +++ b/server/api/attachment/index.js @@ -1 +1 @@ -const a32_0x207f=['get','index','delete','/:id/download','show','../../components/auth/service','post','replace','single','/:id','clone','isAuthenticated','Router','path','join','%s-%s','express','download','file','util','./attachment.controller','../../config/environment','update','originalname','create'];(function(_0x55ddd2,_0x207f8f){const _0x2951bb=function(_0x88e833){while(--_0x88e833){_0x55ddd2['push'](_0x55ddd2['shift']());}};_0x2951bb(++_0x207f8f);}(a32_0x207f,0xc8));const a32_0x2951=function(_0x55ddd2,_0x207f8f){_0x55ddd2=_0x55ddd2-0x0;let _0x2951bb=a32_0x207f[_0x55ddd2];return _0x2951bb;};const _0x52879e=a32_0x2951;'use strict';const multer=require('multer'),util=require(_0x52879e('0x13')),path=require(_0x52879e('0xd')),express=require(_0x52879e('0x10')),router=express[_0x52879e('0xc')](),auth=require(_0x52879e('0x5')),config=require(_0x52879e('0x15')),controller=require(_0x52879e('0x14'));router[_0x52879e('0x0')]('/',auth['isAuthenticated'](),controller[_0x52879e('0x1')]),router['get'](_0x52879e('0x9'),auth['isAuthenticated'](),controller[_0x52879e('0x4')]),router[_0x52879e('0x0')](_0x52879e('0x3'),auth['isAuthenticated'](),controller[_0x52879e('0x11')]),router[_0x52879e('0x6')]('/:id/clone',auth[_0x52879e('0xb')](),controller[_0x52879e('0xa')]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x88e833,_0x45b4d4,_0x3aaeb6){const _0xff1fb7=_0x52879e;_0x3aaeb6(null,path[_0xff1fb7('0xe')](config['root'],'server/files/attachments/'));},'filename':function(_0x145150,_0x379529,_0x59154d){const _0x5cddbe=_0x52879e;_0x59154d(null,util['format'](_0x5cddbe('0xf'),Date['now'](),_0x379529[_0x5cddbe('0x17')][_0x5cddbe('0x7')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x52879e('0x6')]('/',upload[_0x52879e('0x8')](_0x52879e('0x12')),controller[_0x52879e('0x18')]),router['put'](_0x52879e('0x9'),auth[_0x52879e('0xb')](),controller[_0x52879e('0x16')]),router[_0x52879e('0x2')]('/:id',auth[_0x52879e('0xb')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a32_0xd162=['express','util','create','destroy','/:id','delete','../../components/auth/service','clone','post','download','Router','get','multer','isAuthenticated','replace','/:id/download','path','originalname','../../config/environment','./attachment.controller','show','update','file','diskStorage'];(function(_0x3a6848,_0xd162e3){const _0x46b04d=function(_0x53b443){while(--_0x53b443){_0x3a6848['push'](_0x3a6848['shift']());}};_0x46b04d(++_0xd162e3);}(a32_0xd162,0x8e));const a32_0x46b0=function(_0x3a6848,_0xd162e3){_0x3a6848=_0x3a6848-0x0;let _0x46b04d=a32_0xd162[_0x3a6848];return _0x46b04d;};const _0xd57957=a32_0x46b0;'use strict';const multer=require(_0xd57957('0xe')),util=require(_0xd57957('0x3')),path=require(_0xd57957('0x12')),express=require(_0xd57957('0x2')),router=express[_0xd57957('0xc')](),auth=require(_0xd57957('0x8')),config=require(_0xd57957('0x14')),controller=require(_0xd57957('0x15'));router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0xd57957('0xd')]('/:id',auth[_0xd57957('0xf')](),controller[_0xd57957('0x16')]),router[_0xd57957('0xd')](_0xd57957('0x11'),auth[_0xd57957('0xf')](),controller[_0xd57957('0xb')]),router[_0xd57957('0xa')]('/:id/clone',auth[_0xd57957('0xf')](),controller[_0xd57957('0x9')]);const upload=multer({'storage':multer[_0xd57957('0x1')]({'destination':function(_0x53b443,_0x324ea2,_0x3ef9d7){_0x3ef9d7(null,path['join'](config['root'],'server/files/attachments/'));},'filename':function(_0x4dfd08,_0x2fa8b3,_0x52b0a5){const _0x1f95e7=_0xd57957;_0x52b0a5(null,util['format']('%s-%s',Date['now'](),_0x2fa8b3[_0x1f95e7('0x13')][_0x1f95e7('0x10')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0xd57957('0xa')]('/',upload['single'](_0xd57957('0x0')),controller[_0xd57957('0x4')]),router['put']('/:id',auth[_0xd57957('0xf')](),controller[_0xd57957('0x17')]),router[_0xd57957('0x7')](_0xd57957('0x6'),auth[_0xd57957('0xf')](),controller[_0xd57957('0x5')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/authGoogle/authGoogle.controller.js b/server/api/authGoogle/authGoogle.controller.js index cb66d89..67a98b3 100644 --- a/server/api/authGoogle/authGoogle.controller.js +++ b/server/api/authGoogle/authGoogle.controller.js @@ -1 +1 @@ -const a33_0x5229=['Strategy','login','blockedAt','profile','blocked','emails','agent','email','/login','sequelize','callbackURL','value','admin','google','disabled','map','../../mysqldb','../../config/utils','catch','passport-google-oauth20','Setting','add','getLicense','../../config/environment','clientID','Use','authenticate','allowedLoginAttempts','blockDuration','findOne','moment','callback','then','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','clientSecret','lodash','user'];(function(_0x4a2d8f,_0x5229ea){const _0x171efd=function(_0x4477a0){while(--_0x4477a0){_0x4a2d8f['push'](_0x4a2d8f['shift']());}};_0x171efd(++_0x5229ea);}(a33_0x5229,0x177));const a33_0x171e=function(_0x4a2d8f,_0x5229ea){_0x4a2d8f=_0x4a2d8f-0x0;let _0x171efd=a33_0x5229[_0x4a2d8f];return _0x171efd;};const _0x484e7f=a33_0x171e;'use strict';const _=require(_0x484e7f('0x1e')),passport=require('passport'),GoogleStrategy=require(_0x484e7f('0xe'))[_0x484e7f('0x20')],moment=require(_0x484e7f('0x19')),db=require(_0x484e7f('0xb'))['db'],config=require(_0x484e7f('0x12')),utils=require(_0x484e7f('0xc')),{Op}=require(_0x484e7f('0x4'));exports[_0x484e7f('0x21')]=passport[_0x484e7f('0x15')](_0x484e7f('0x8'),{'failureRedirect':_0x484e7f('0x3'),'scope':[_0x484e7f('0x23'),_0x484e7f('0x2')],'session':![]}),exports[_0x484e7f('0x1a')]=passport['authenticate'](_0x484e7f('0x8'),{'failureRedirect':_0x484e7f('0x3'),'session':![]}),passport['use'](new GoogleStrategy({'clientID':config['google']?config[_0x484e7f('0x8')][_0x484e7f('0x13')]:'id','clientSecret':config[_0x484e7f('0x8')]?config['google'][_0x484e7f('0x1d')]:'secret','callbackURL':config['google']?config[_0x484e7f('0x8')][_0x484e7f('0x5')]:''},function(_0x4477a0,_0x37880f,_0x50f7dc,_0x38796e){const _0x335c18=_0x484e7f;let _0x45bec8,_0x382816;return db[_0x335c18('0xf')]['findOne']({'where':{'id':0x1},'attributes':[_0x335c18('0x16'),_0x335c18('0x17')],'raw':!![]})[_0x335c18('0x1b')](function(_0x50f4f5){const _0x49c0ae=_0x335c18;return _0x45bec8=_0x50f4f5,db[_0x49c0ae('0x14')][_0x49c0ae('0x18')]({'where':{'email':_[_0x49c0ae('0xa')](_0x50f7dc[_0x49c0ae('0x0')],_0x49c0ae('0x6')),'role':{[Op['or']]:[_0x49c0ae('0x7'),_0x49c0ae('0x1f'),_0x49c0ae('0x1')]}}});})['then'](function(_0xb7f187){const _0x2afc8b=_0x335c18;_0x382816=_0xb7f187;if(_0x382816){if(_0x382816[_0x2afc8b('0x9')])return _0x38796e(_0x2afc8b('0x1c'));else return _0x45bec8[_0x2afc8b('0x17')]>0x0?_0x382816[_0x2afc8b('0x24')]?moment(_0x382816[_0x2afc8b('0x22')])[_0x2afc8b('0x10')](_0x45bec8['blockDuration'],'minutes')>moment()?_0x38796e(_0x2afc8b('0x1c')):utils['clearBlockUser'](_0x382816,0x0,![],null)[_0x2afc8b('0x1b')](function(){return utils['getLicense'](_0x382816);})[_0x2afc8b('0x1b')](function(){return _0x38796e(null,_0x382816);}):utils[_0x2afc8b('0x11')](_0x382816)['then'](function(){return _0x38796e(null,_0x382816);}):utils[_0x2afc8b('0x11')](_0x382816)[_0x2afc8b('0x1b')](function(){return _0x38796e(null,_0x382816);});}return _0x38796e(_0x2afc8b('0x1c'));})[_0x335c18('0xd')](function(_0x4cdb7b){_0x38796e(_0x4cdb7b);});})); \ No newline at end of file +const a33_0x4526=['Use','findOne','allowedLoginAttempts','Setting','clientID','../../mysqldb','passport-google-oauth20','secret','email','disabled','getLicense','profile','callbackURL','authenticate','blockedAt','then','user','/login','value','map','passport','use','moment','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','blockDuration','catch','blocked','admin','login','../../config/utils','sequelize','../../config/environment','Strategy','agent','add','emails','google'];(function(_0x5549e3,_0x4526e4){const _0xd98286=function(_0x7a89f8){while(--_0x7a89f8){_0x5549e3['push'](_0x5549e3['shift']());}};_0xd98286(++_0x4526e4);}(a33_0x4526,0x1c8));const a33_0xd982=function(_0x5549e3,_0x4526e4){_0x5549e3=_0x5549e3-0x0;let _0xd98286=a33_0x4526[_0x5549e3];return _0xd98286;};const _0x5f53ee=a33_0xd982;'use strict';const _=require('lodash'),passport=require(_0x5f53ee('0x8')),GoogleStrategy=require(_0x5f53ee('0x1f'))[_0x5f53ee('0x14')],moment=require(_0x5f53ee('0xa')),db=require(_0x5f53ee('0x1e'))['db'],config=require(_0x5f53ee('0x13')),utils=require(_0x5f53ee('0x11')),{Op}=require(_0x5f53ee('0x12'));exports[_0x5f53ee('0x10')]=passport['authenticate'](_0x5f53ee('0x18'),{'failureRedirect':_0x5f53ee('0x5'),'scope':[_0x5f53ee('0x24'),_0x5f53ee('0x21')],'session':![]}),exports['callback']=passport[_0x5f53ee('0x1')](_0x5f53ee('0x18'),{'failureRedirect':'/login','session':![]}),passport[_0x5f53ee('0x9')](new GoogleStrategy({'clientID':config[_0x5f53ee('0x18')]?config['google'][_0x5f53ee('0x1d')]:'id','clientSecret':config[_0x5f53ee('0x18')]?config[_0x5f53ee('0x18')]['clientSecret']:_0x5f53ee('0x20'),'callbackURL':config[_0x5f53ee('0x18')]?config['google'][_0x5f53ee('0x0')]:''},function(_0x7a89f8,_0x148879,_0x322b21,_0x281545){const _0x147c24=_0x5f53ee;let _0x219a33,_0x490429;return db[_0x147c24('0x1c')]['findOne']({'where':{'id':0x1},'attributes':[_0x147c24('0x1b'),_0x147c24('0xc')],'raw':!![]})[_0x147c24('0x3')](function(_0x436173){const _0x21e47=_0x147c24;return _0x219a33=_0x436173,db[_0x21e47('0x19')][_0x21e47('0x1a')]({'where':{'email':_[_0x21e47('0x7')](_0x322b21[_0x21e47('0x17')],_0x21e47('0x6')),'role':{[Op['or']]:[_0x21e47('0xf'),_0x21e47('0x4'),_0x21e47('0x15')]}}});})['then'](function(_0x142edc){const _0x1c4050=_0x147c24;_0x490429=_0x142edc;if(_0x490429){if(_0x490429[_0x1c4050('0x22')])return _0x281545(_0x1c4050('0xb'));else return _0x219a33[_0x1c4050('0xc')]>0x0?_0x490429[_0x1c4050('0xe')]?moment(_0x490429[_0x1c4050('0x2')])[_0x1c4050('0x16')](_0x219a33['blockDuration'],'minutes')>moment()?_0x281545(_0x1c4050('0xb')):utils['clearBlockUser'](_0x490429,0x0,![],null)[_0x1c4050('0x3')](function(){const _0x183f8c=_0x1c4050;return utils[_0x183f8c('0x23')](_0x490429);})[_0x1c4050('0x3')](function(){return _0x281545(null,_0x490429);}):utils['getLicense'](_0x490429)['then'](function(){return _0x281545(null,_0x490429);}):utils[_0x1c4050('0x23')](_0x490429)[_0x1c4050('0x3')](function(){return _0x281545(null,_0x490429);});}return _0x281545(_0x1c4050('0xb'));})[_0x147c24('0xd')](function(_0x313620){_0x281545(_0x313620);});})); \ No newline at end of file diff --git a/server/api/authGoogle/index.js b/server/api/authGoogle/index.js index e9aa106..9a78da2 100644 --- a/server/api/authGoogle/index.js +++ b/server/api/authGoogle/index.js @@ -1 +1 @@ -const a34_0x1fff=['Router','isMiddleware','callback','get','../../components/auth/service','/callback','./authGoogle.controller','login','express','exports'];(function(_0xcb4395,_0x1fffd3){const _0x29a1fd=function(_0x352904){while(--_0x352904){_0xcb4395['push'](_0xcb4395['shift']());}};_0x29a1fd(++_0x1fffd3);}(a34_0x1fff,0xa4));const a34_0x29a1=function(_0xcb4395,_0x1fffd3){_0xcb4395=_0xcb4395-0x0;let _0x29a1fd=a34_0x1fff[_0xcb4395];return _0x29a1fd;};const _0x55943f=a34_0x29a1;'use strict';const express=require(_0x55943f('0x4')),router=express[_0x55943f('0x6')](),controller=require(_0x55943f('0x2')),userController=require('../user/user.controller.js'),authService=require(_0x55943f('0x0'));router['get']('/',controller['login']),router[_0x55943f('0x9')](_0x55943f('0x1'),controller[_0x55943f('0x8')],authService[_0x55943f('0x7')],userController[_0x55943f('0x3')],authService['setTokenCookie']),module[_0x55943f('0x5')]=router; \ No newline at end of file +const a34_0xc6bf=['isMiddleware','setTokenCookie','exports','../../components/auth/service','../user/user.controller.js','/callback','Router','login','get'];(function(_0x55178a,_0xc6bfbd){const _0x194fab=function(_0x49c4bd){while(--_0x49c4bd){_0x55178a['push'](_0x55178a['shift']());}};_0x194fab(++_0xc6bfbd);}(a34_0xc6bf,0x6d));const a34_0x194f=function(_0x55178a,_0xc6bfbd){_0x55178a=_0x55178a-0x0;let _0x194fab=a34_0xc6bf[_0x55178a];return _0x194fab;};const _0x19b1dc=a34_0x194f;'use strict';const express=require('express'),router=express[_0x19b1dc('0x5')](),controller=require('./authGoogle.controller'),userController=require(_0x19b1dc('0x3')),authService=require(_0x19b1dc('0x2'));router[_0x19b1dc('0x7')]('/',controller[_0x19b1dc('0x6')]),router[_0x19b1dc('0x7')](_0x19b1dc('0x4'),controller['callback'],authService[_0x19b1dc('0x8')],userController[_0x19b1dc('0x6')],authService[_0x19b1dc('0x0')]),module[_0x19b1dc('0x1')]=router; \ No newline at end of file diff --git a/server/api/authLocal/authLocal.controller.js b/server/api/authLocal/authLocal.controller.js index 745ca2e..b68e10d 100644 --- a/server/api/authLocal/authLocal.controller.js +++ b/server/api/authLocal/authLocal.controller.js @@ -1 +1 @@ -const a35_0x374c=['add','body','request','blockedAt','online','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','\x22%s\x22\x20<%s>','Email\x20parameter\x20is\x20missing','validatePasswordPattern','now','name','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','service','disabled','user','authentication','toLowerCase','Setting','Reset\x20Email\x20sent!','agent','format','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','resetPasswordToken','findOne','../../components/auth/service','moment','blocked','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','then','reset','../../mysqldb','password','admin','resetPasswordExpires','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','clearBlockUser','http://','enforcePasswordHistory','If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a','secure','signToken','use','previousPasswords','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','MailServerOut','SendMail','jayson/promise','randomstring','trim','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','local','auth','util','validatePasswordHistory','client','securePassword','passport-local','headers','User','pass','passwordHistoryLimit','blockDuration','port','send','../../config/utils','token','message','status','authenticate','sequelize','loginAttempts','stringify','minutes','email','merge','Password\x20reset!','save','getLicense','generate','host','lodash','role','forgot','catch','Smtp','error','allowedLoginAttempts'];(function(_0x30a684,_0x374c0c){const _0x3c3414=function(_0x521933){while(--_0x521933){_0x30a684['push'](_0x30a684['shift']());}};_0x3c3414(++_0x374c0c);}(a35_0x374c,0x9f));const a35_0x3c34=function(_0x30a684,_0x374c0c){_0x30a684=_0x30a684-0x0;let _0x3c3414=a35_0x374c[_0x30a684];return _0x3c3414;};const _0x4f1ac9=a35_0x3c34;'use strict';const util=require(_0x4f1ac9('0x46')),passport=require('passport'),LocalStrategy=require(_0x4f1ac9('0x4a'))['Strategy'],jayson=require(_0x4f1ac9('0x40')),_=require(_0x4f1ac9('0xa')),rs=require(_0x4f1ac9('0x41')),moment=require(_0x4f1ac9('0x2a')),db=require(_0x4f1ac9('0x2f'))['db'],{Op}=require(_0x4f1ac9('0x57')),authService=require(_0x4f1ac9('0x29')),utils=require(_0x4f1ac9('0x52')),client=jayson[_0x4f1ac9('0x48')]['http']({'port':0x232b});function localAuthenticate(_0x521933,_0x3808d2,_0x4b4c77,_0xcb2e93){const _0xa052d2=_0x4f1ac9;let _0x5ae30b,_0x35c8dc;return db[_0xa052d2('0x22')]['findOne']({'where':{'id':0x1},'attributes':[_0xa052d2('0x10'),'blockDuration'],'raw':!![]})[_0xa052d2('0x2d')](function(_0x52f73b){const _0xaf7ad4=_0xa052d2;return _0x5ae30b=_0x52f73b,_0x521933[_0xaf7ad4('0x28')]({'attributes':['id','name',_0xaf7ad4('0x30'),'salt',_0xaf7ad4('0xb'),_0xaf7ad4('0x1e'),_0xaf7ad4('0x2b'),_0xaf7ad4('0x14'),_0xaf7ad4('0x0')],'where':{'name':_0x3808d2,'role':{[Op['or']]:[_0xaf7ad4('0x31'),_0xaf7ad4('0x1f'),_0xaf7ad4('0x24')]}}});})['then'](function(_0x45d9d2){const _0x1c1eb2=_0xa052d2;if(!_0x45d9d2||_0x45d9d2&&_0x45d9d2[_0x1c1eb2('0x1b')]!==_0x3808d2)throw new Error(_0x1c1eb2('0x3d'));else return _0x35c8dc=_0x45d9d2,_0x35c8dc;})[_0xa052d2('0x2d')](function(){_0x35c8dc['authenticate'](_0x4b4c77,function(_0xef0104,_0x23bb7f){const _0x2fd143=a35_0x3c34,_0x1f428d=_0x35c8dc[_0x2fd143('0x0')]+0x1;if(_0xef0104)return _0xcb2e93(_0xef0104);else{if(!_0x23bb7f){if(_0x35c8dc[_0x2fd143('0x1e')])return _0xcb2e93(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});else return _0x5ae30b[_0x2fd143('0x10')]>0x0?_0x35c8dc[_0x2fd143('0x2b')]?_0x5ae30b[_0x2fd143('0x4f')]>0x0?moment(_0x35c8dc[_0x2fd143('0x14')])[_0x2fd143('0x11')](_0x5ae30b[_0x2fd143('0x4f')],_0x2fd143('0x2'))>moment()?_0xcb2e93(null,![],{'message':_0x2fd143('0x3d')}):utils['clearBlockUser'](_0x35c8dc,_0x1f428d,![],null)[_0x2fd143('0x2d')](function(){const _0x3ed169=_0x2fd143;return _0xcb2e93(null,![],{'message':_0x3ed169('0x3d')});}):_0xcb2e93(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):_0x1f428d>=_0x5ae30b[_0x2fd143('0x10')]?utils[_0x2fd143('0x34')](_0x35c8dc,0x0,!![],moment())[_0x2fd143('0x2d')](function(){const _0x1d76ff=_0x2fd143;return _0xcb2e93(null,![],{'message':_0x1d76ff('0x3d')});}):utils[_0x2fd143('0x34')](_0x35c8dc,_0x1f428d,![],null)[_0x2fd143('0x2d')](function(){const _0x501b7a=_0x2fd143;return _0xcb2e93(null,![],{'message':_0x501b7a('0x3d')});}):_0xcb2e93(null,![],{'message':_0x2fd143('0x3d')});}else{if(_0x35c8dc[_0x2fd143('0x1e')])return _0xcb2e93(null,![],{'message':_0x2fd143('0x3d')});else return _0x5ae30b[_0x2fd143('0x10')]>0x0?_0x35c8dc[_0x2fd143('0x2b')]?_0x5ae30b[_0x2fd143('0x4f')]>0x0?moment(_0x35c8dc[_0x2fd143('0x14')])[_0x2fd143('0x11')](_0x5ae30b[_0x2fd143('0x4f')],_0x2fd143('0x2'))>moment()?_0xcb2e93(null,![],{'message':_0x2fd143('0x3d')}):utils['clearBlockUser'](_0x35c8dc,0x0,![],null)['then'](function(){const _0x5da5bc=_0x2fd143;return utils[_0x5da5bc('0x7')](_0x35c8dc);})[_0x2fd143('0x2d')](function(){return _0xcb2e93(null,_0x35c8dc);}):_0xcb2e93(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils['clearBlockUser'](_0x35c8dc,0x0,![],null)[_0x2fd143('0x2d')](function(){const _0xe13de3=_0x2fd143;return utils[_0xe13de3('0x7')](_0x35c8dc);})['then'](function(){return _0xcb2e93(null,_0x35c8dc);})['catch'](function(_0x2765f5){return _0xcb2e93(null,![],_0x2765f5);}):_0x35c8dc[_0x2fd143('0x2b')]?_0xcb2e93(null,![],{'message':_0x2fd143('0x3d')}):utils['getLicense'](_0x35c8dc)[_0x2fd143('0x2d')](function(){return _0xcb2e93(null,_0x35c8dc);});}}});})['catch'](function(_0x4c9eb7){return _0xcb2e93(null,![],_0x4c9eb7);});}function sendServiceMail(_0x552338){const _0x3accdb=_0x4f1ac9;return db['MailAccount'][_0x3accdb('0x28')]({'where':{'service':!![]},'attributes':['id','name',_0x3accdb('0x3')],'include':[{'model':db[_0x3accdb('0x3e')],'as':_0x3accdb('0xe')}]})[_0x3accdb('0x2d')](function(_0x5934db){const _0x1c24ef=_0x3accdb;if(!_0x5934db)throw new Error(_0x1c24ef('0x43'));const _0x3ac656={'tls':{'rejectUnauthorized':![]}};_0x5934db[_0x1c24ef('0xe')][_0x1c24ef('0x1d')]?_0x3ac656['service']=_0x5934db[_0x1c24ef('0xe')][_0x1c24ef('0x1d')]:(_0x3ac656[_0x1c24ef('0x9')]=_0x5934db[_0x1c24ef('0xe')][_0x1c24ef('0x9')],_0x3ac656[_0x1c24ef('0x50')]=_0x5934db[_0x1c24ef('0xe')][_0x1c24ef('0x50')],_0x3ac656['secure']=_0x5934db['Smtp'][_0x1c24ef('0x38')]);_0x5934db[_0x1c24ef('0xe')][_0x1c24ef('0x20')]&&(_0x3ac656[_0x1c24ef('0x45')]={'user':_0x5934db[_0x1c24ef('0xe')][_0x1c24ef('0x1f')],'pass':_0x5934db['Smtp'][_0x1c24ef('0x4d')]});const _0x4eb2e7={'account':_0x3ac656,'message':_[_0x1c24ef('0x4')]({'from':util[_0x1c24ef('0x25')](_0x1c24ef('0x17'),_0x5934db['name'],_0x5934db['email']||_0x5934db[_0x1c24ef('0xe')][_0x1c24ef('0x1f')])},_0x552338)};return client[_0x1c24ef('0x13')](_0x1c24ef('0x3f'),_0x4eb2e7);})['then'](function(_0x430b6c){const _0x15eca5=_0x3accdb;if(_0x430b6c[_0x15eca5('0xf')])throw new Error(util[_0x15eca5('0x25')](_0x15eca5('0x2c'),_0x430b6c[_0x15eca5('0xf')]['message']||JSON[_0x15eca5('0x1')](_0x430b6c[_0x15eca5('0xf')])));return!![];});}function handleError(_0x46333e,_0x1eeb61,_0x380204){const _0x352d13=_0x4f1ac9;return _0x46333e[_0x352d13('0x55')](_0x1eeb61||0x1f4)[_0x352d13('0x51')]({'message':_0x380204?_0x380204[_0x352d13('0x54')]||_0x380204:''});}exports['login']=function(_0x5c2d35,_0x339c26,_0xfb8ec5){const _0x42f8b1=_0x4f1ac9;passport[_0x42f8b1('0x56')](_0x42f8b1('0x44'),function(_0x20e561,_0xd3eda8,_0x860831){const _0x42cfed=_0x42f8b1,_0x555b32=_0x20e561||_0x860831;if(_0x555b32)return handleError(_0x339c26,0x191,_0x555b32);if(!_0xd3eda8)return handleError(_0x339c26,0x194,{'message':'Something\x20went\x20wrong,\x20please\x20try\x20again.'});else{const _0x55a704={'payload':{'id':_0xd3eda8['id'],'role':_0xd3eda8[_0x42cfed('0xb')]},'options':{'expiresIn':0x15180}};return authService[_0x42cfed('0x39')](_0x55a704)[_0x42cfed('0x2d')](function(_0x823073){const _0x51bd79=_0x42cfed;_0x339c26['json']({'id':_0xd3eda8['id'],'token':_0x823073,'statusCall':'','isAlreadyLogged':_0xd3eda8[_0x51bd79('0x15')]});});}})(_0x5c2d35,_0x339c26,_0xfb8ec5);},exports[_0x4f1ac9('0xc')]=function(_0x27e6cd,_0x4ef298){const _0x41c840=_0x4f1ac9;if(!_0x27e6cd['body'][_0x41c840('0x3')])return handleError(_0x4ef298,0x1f4,{'message':_0x41c840('0x18')});const _0x24e72b=rs[_0x41c840('0x8')]();_0x27e6cd[_0x41c840('0x12')]['email']=_0x27e6cd[_0x41c840('0x12')][_0x41c840('0x3')][_0x41c840('0x42')]()[_0x41c840('0x21')]();let _0x36e902;return db['Setting'][_0x41c840('0x28')]({'where':{'id':0x1},'attributes':['allowedLoginAttempts',_0x41c840('0x4f')],'raw':!![]})[_0x41c840('0x2d')](function(_0x4173c6){const _0x9186d6=_0x41c840;return _0x36e902=_0x4173c6,db['Use'][_0x9186d6('0x28')]({'where':{'email':_0x27e6cd[_0x9186d6('0x12')][_0x9186d6('0x3')]}});})[_0x41c840('0x2d')](function(_0x5d82a4){const _0x350627=_0x41c840;if(!_0x5d82a4)throw new Error('This\x20email\x20is\x20not\x20registered.');if(_0x5d82a4[_0x350627('0x1e')])throw new Error(_0x350627('0x1c'));if(_0x5d82a4[_0x350627('0x2b')]){if(moment(_0x5d82a4[_0x350627('0x14')])['add'](_0x36e902[_0x350627('0x4f')],_0x350627('0x2'))>moment())throw new Error(_0x350627('0x26'));else _0x5d82a4[_0x350627('0x2b')]=![],_0x5d82a4[_0x350627('0x14')]=null;}return _0x5d82a4[_0x350627('0x27')]=_0x24e72b,_0x5d82a4[_0x350627('0x32')]=Date[_0x350627('0x1a')]()+0x36ee80,_0x5d82a4['save']();})[_0x41c840('0x2d')](function(){const _0x14b8d7=_0x41c840;return sendServiceMail({'to':_0x27e6cd['body'][_0x14b8d7('0x3')],'subject':'xCally\x20Motion\x20Password\x20Reset','text':_0x14b8d7('0x33')+_0x14b8d7('0x3c')+_0x14b8d7('0x35')+_0x27e6cd[_0x14b8d7('0x4b')]['host']+'/reset/'+_0x24e72b+'\x0a\x0a'+_0x14b8d7('0x37')});})[_0x41c840('0x2d')](function(){const _0x336e23=_0x41c840;_0x4ef298[_0x336e23('0x55')](0xc8)[_0x336e23('0x51')]({'message':_0x336e23('0x23')});})[_0x41c840('0xd')](function(_0x53aa3f){return handleError(_0x4ef298,0x1f4,_0x53aa3f);});},exports[_0x4f1ac9('0x2e')]=function(_0x4e25f2,_0x3691ee){const _0x236818=_0x4f1ac9;return db[_0x236818('0x4c')][_0x236818('0x28')]({'where':{'resetPasswordToken':_0x4e25f2['params'][_0x236818('0x53')],'resetPasswordExpires':{[Op['gt']]:Date[_0x236818('0x1a')]()}}})[_0x236818('0x2d')](function(_0xe61b1e){const _0x126741=_0x236818;if(!_0xe61b1e)throw new Error(_0x126741('0x16'));return db['Setting'][_0x126741('0x28')]({'attributes':['id',_0x126741('0x49'),'enforcePasswordHistory',_0x126741('0x4e')]})[_0x126741('0x2d')](function(_0x36d216){const _0x76a161=_0x126741;if(_0x36d216[_0x76a161('0x49')])authService[_0x76a161('0x19')](_0x4e25f2['body'][_0x76a161('0x30')]);if(!_0x36d216[_0x76a161('0x36')]||!_0xe61b1e['previousPasswords'])return _0xe61b1e;return authService[_0x76a161('0x47')](_0x4e25f2[_0x76a161('0x12')][_0x76a161('0x30')],_0xe61b1e[_0x76a161('0x3b')],_0x36d216[_0x76a161('0x4e')]),_0xe61b1e;})['then'](function(){const _0x51de7c=_0x126741;return _0xe61b1e[_0x51de7c('0x30')]=_0x4e25f2[_0x51de7c('0x12')]['password'],_0xe61b1e['resetPasswordToken']=null,_0xe61b1e[_0x51de7c('0x32')]=null,_0xe61b1e[_0x51de7c('0x6')]();});})[_0x236818('0x2d')](function(){const _0x72c21e=_0x236818;_0x3691ee[_0x72c21e('0x55')](0xc8)['send']({'message':_0x72c21e('0x5')});})[_0x236818('0xd')](function(_0x4304a1){return handleError(_0x3691ee,0x1f4,_0x4304a1);});},passport[_0x4f1ac9('0x3a')](new LocalStrategy({'usernameField':_0x4f1ac9('0x1b'),'passwordField':_0x4f1ac9('0x30')},function(_0x1a1d3c,_0x1f5f41,_0x57a62f){const _0x5b55bf=_0x4f1ac9;return localAuthenticate(db[_0x5b55bf('0x4c')],_0x1a1d3c,_0x1f5f41,_0x57a62f);})); \ No newline at end of file +const a35_0x3bdd=['passport-local','generate','User','MailServerOut','use','email','authenticate','loginAttempts','secure','passport','port','message','randomstring','name','Reset\x20Email\x20sent!','http','params','lodash','agent','user','then','body','stringify','auth','Setting','enforcePasswordHistory','validatePasswordHistory','\x22%s\x22\x20<%s>','status','pass','catch','xCally\x20Motion\x20Password\x20Reset','blockedAt','If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a','MailAccount','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','../../mysqldb','jayson/promise','host','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','allowedLoginAttempts','resetPasswordExpires','This\x20email\x20is\x20not\x20registered.','authentication','previousPasswords','moment','now','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','salt','resetPasswordToken','send','add','login','findOne','sequelize','securePassword','SendMail','blockDuration','../../config/utils','error','minutes','getLicense','clearBlockUser','Smtp','admin','Strategy','token','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','format','disabled','blocked','merge','passwordHistoryLimit','reset','toLowerCase','online','json','trim','service','/reset/','client','Something\x20went\x20wrong,\x20please\x20try\x20again.','password','save','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'];(function(_0x43966f,_0x3bdd97){const _0x2b6f03=function(_0xdb9f1){while(--_0xdb9f1){_0x43966f['push'](_0x43966f['shift']());}};_0x2b6f03(++_0x3bdd97);}(a35_0x3bdd,0xaf));const a35_0x2b6f=function(_0x43966f,_0x3bdd97){_0x43966f=_0x43966f-0x0;let _0x2b6f03=a35_0x3bdd[_0x43966f];return _0x2b6f03;};const _0x33f0a8=a35_0x2b6f;'use strict';const util=require('util'),passport=require(_0x33f0a8('0x4')),LocalStrategy=require(_0x33f0a8('0x50'))[_0x33f0a8('0x3c')],jayson=require(_0x33f0a8('0x20')),_=require(_0x33f0a8('0xc')),rs=require(_0x33f0a8('0x7')),moment=require(_0x33f0a8('0x28')),db=require(_0x33f0a8('0x1f'))['db'],{Op}=require(_0x33f0a8('0x31')),authService=require('../../components/auth/service'),utils=require(_0x33f0a8('0x35')),client=jayson[_0x33f0a8('0x4b')][_0x33f0a8('0xa')]({'port':0x232b});function localAuthenticate(_0xdb9f1,_0x101a0b,_0x56699a,_0x59188f){const _0x27384c=_0x33f0a8;let _0x7be134,_0x1be243;return db[_0x27384c('0x13')]['findOne']({'where':{'id':0x1},'attributes':[_0x27384c('0x23'),_0x27384c('0x34')],'raw':!![]})['then'](function(_0x5d89db){const _0x370427=_0x27384c;return _0x7be134=_0x5d89db,_0xdb9f1[_0x370427('0x30')]({'attributes':['id',_0x370427('0x8'),_0x370427('0x4d'),_0x370427('0x2b'),'role',_0x370427('0x40'),_0x370427('0x41'),_0x370427('0x1b'),_0x370427('0x2')],'where':{'name':_0x101a0b,'role':{[Op['or']]:[_0x370427('0x3b'),_0x370427('0xe'),_0x370427('0xd')]}}});})[_0x27384c('0xf')](function(_0x3cd49c){const _0x1a60f5=_0x27384c;if(!_0x3cd49c||_0x3cd49c&&_0x3cd49c[_0x1a60f5('0x8')]!==_0x101a0b)throw new Error(_0x1a60f5('0x4f'));else return _0x1be243=_0x3cd49c,_0x1be243;})[_0x27384c('0xf')](function(){const _0x558473=_0x27384c;_0x1be243[_0x558473('0x1')](_0x56699a,function(_0xd70e25,_0x174b3f){const _0x4d83bc=_0x558473,_0xee066d=_0x1be243[_0x4d83bc('0x2')]+0x1;if(_0xd70e25)return _0x59188f(_0xd70e25);else{if(!_0x174b3f){if(_0x1be243['disabled'])return _0x59188f(null,![],{'message':_0x4d83bc('0x4f')});else return _0x7be134[_0x4d83bc('0x23')]>0x0?_0x1be243['blocked']?_0x7be134[_0x4d83bc('0x34')]>0x0?moment(_0x1be243[_0x4d83bc('0x1b')])['add'](_0x7be134[_0x4d83bc('0x34')],_0x4d83bc('0x37'))>moment()?_0x59188f(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils[_0x4d83bc('0x39')](_0x1be243,_0xee066d,![],null)[_0x4d83bc('0xf')](function(){const _0x40e3c1=_0x4d83bc;return _0x59188f(null,![],{'message':_0x40e3c1('0x4f')});}):_0x59188f(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):_0xee066d>=_0x7be134['allowedLoginAttempts']?utils[_0x4d83bc('0x39')](_0x1be243,0x0,!![],moment())[_0x4d83bc('0xf')](function(){return _0x59188f(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}):utils[_0x4d83bc('0x39')](_0x1be243,_0xee066d,![],null)[_0x4d83bc('0xf')](function(){return _0x59188f(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}):_0x59188f(null,![],{'message':_0x4d83bc('0x4f')});}else{if(_0x1be243['disabled'])return _0x59188f(null,![],{'message':_0x4d83bc('0x4f')});else return _0x7be134['allowedLoginAttempts']>0x0?_0x1be243[_0x4d83bc('0x41')]?_0x7be134[_0x4d83bc('0x34')]>0x0?moment(_0x1be243['blockedAt'])[_0x4d83bc('0x2e')](_0x7be134[_0x4d83bc('0x34')],_0x4d83bc('0x37'))>moment()?_0x59188f(null,![],{'message':_0x4d83bc('0x4f')}):utils[_0x4d83bc('0x39')](_0x1be243,0x0,![],null)[_0x4d83bc('0xf')](function(){const _0x11f06c=_0x4d83bc;return utils[_0x11f06c('0x38')](_0x1be243);})[_0x4d83bc('0xf')](function(){return _0x59188f(null,_0x1be243);}):_0x59188f(null,![],{'message':_0x4d83bc('0x4f')}):utils[_0x4d83bc('0x39')](_0x1be243,0x0,![],null)[_0x4d83bc('0xf')](function(){const _0x28f3a1=_0x4d83bc;return utils[_0x28f3a1('0x38')](_0x1be243);})[_0x4d83bc('0xf')](function(){return _0x59188f(null,_0x1be243);})[_0x4d83bc('0x19')](function(_0x137a0a){return _0x59188f(null,![],_0x137a0a);}):_0x1be243['blocked']?_0x59188f(null,![],{'message':_0x4d83bc('0x4f')}):utils['getLicense'](_0x1be243)[_0x4d83bc('0xf')](function(){return _0x59188f(null,_0x1be243);});}}});})[_0x27384c('0x19')](function(_0x164abe){return _0x59188f(null,![],_0x164abe);});}function sendServiceMail(_0x4fe2af){const _0x51562b=_0x33f0a8;return db[_0x51562b('0x1d')][_0x51562b('0x30')]({'where':{'service':!![]},'attributes':['id','name',_0x51562b('0x0')],'include':[{'model':db[_0x51562b('0x53')],'as':_0x51562b('0x3a')}]})[_0x51562b('0xf')](function(_0x479a6b){const _0x5935d3=_0x51562b;if(!_0x479a6b)throw new Error('Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!');const _0xa23f92={'tls':{'rejectUnauthorized':![]}};_0x479a6b[_0x5935d3('0x3a')][_0x5935d3('0x49')]?_0xa23f92[_0x5935d3('0x49')]=_0x479a6b[_0x5935d3('0x3a')][_0x5935d3('0x49')]:(_0xa23f92[_0x5935d3('0x21')]=_0x479a6b['Smtp']['host'],_0xa23f92[_0x5935d3('0x5')]=_0x479a6b[_0x5935d3('0x3a')][_0x5935d3('0x5')],_0xa23f92['secure']=_0x479a6b['Smtp'][_0x5935d3('0x3')]);_0x479a6b['Smtp'][_0x5935d3('0x26')]&&(_0xa23f92[_0x5935d3('0x12')]={'user':_0x479a6b[_0x5935d3('0x3a')][_0x5935d3('0xe')],'pass':_0x479a6b['Smtp'][_0x5935d3('0x18')]});const _0x376901={'account':_0xa23f92,'message':_[_0x5935d3('0x42')]({'from':util['format'](_0x5935d3('0x16'),_0x479a6b['name'],_0x479a6b[_0x5935d3('0x0')]||_0x479a6b['Smtp'][_0x5935d3('0xe')])},_0x4fe2af)};return client['request'](_0x5935d3('0x33'),_0x376901);})[_0x51562b('0xf')](function(_0x48da36){const _0x2f66e9=_0x51562b;if(_0x48da36[_0x2f66e9('0x36')])throw new Error(util[_0x2f66e9('0x3f')](_0x2f66e9('0x2a'),_0x48da36[_0x2f66e9('0x36')]['message']||JSON[_0x2f66e9('0x11')](_0x48da36[_0x2f66e9('0x36')])));return!![];});}function handleError(_0x17822e,_0x4cadbb,_0x2dcb0c){const _0x1df705=_0x33f0a8;return _0x17822e[_0x1df705('0x17')](_0x4cadbb||0x1f4)['send']({'message':_0x2dcb0c?_0x2dcb0c[_0x1df705('0x6')]||_0x2dcb0c:''});}exports[_0x33f0a8('0x2f')]=function(_0x34b9ae,_0x593c1b,_0x6dc7d4){const _0xc5f24=_0x33f0a8;passport[_0xc5f24('0x1')]('local',function(_0x114d87,_0x4efdec,_0x2f7208){const _0xe1fac2=_0xc5f24,_0x5c782c=_0x114d87||_0x2f7208;if(_0x5c782c)return handleError(_0x593c1b,0x191,_0x5c782c);if(!_0x4efdec)return handleError(_0x593c1b,0x194,{'message':_0xe1fac2('0x4c')});else{const _0x167b54={'payload':{'id':_0x4efdec['id'],'role':_0x4efdec['role']},'options':{'expiresIn':0x15180}};return authService['signToken'](_0x167b54)[_0xe1fac2('0xf')](function(_0x572269){const _0x20d00a=_0xe1fac2;_0x593c1b[_0x20d00a('0x47')]({'id':_0x4efdec['id'],'token':_0x572269,'statusCall':'','isAlreadyLogged':_0x4efdec[_0x20d00a('0x46')]});});}})(_0x34b9ae,_0x593c1b,_0x6dc7d4);},exports['forgot']=function(_0x3478b4,_0x13e226){const _0x53ecd1=_0x33f0a8;if(!_0x3478b4['body']['email'])return handleError(_0x13e226,0x1f4,{'message':'Email\x20parameter\x20is\x20missing'});const _0x22d773=rs[_0x53ecd1('0x51')]();_0x3478b4[_0x53ecd1('0x10')][_0x53ecd1('0x0')]=_0x3478b4[_0x53ecd1('0x10')]['email'][_0x53ecd1('0x48')]()[_0x53ecd1('0x45')]();let _0x317a81;return db[_0x53ecd1('0x13')]['findOne']({'where':{'id':0x1},'attributes':['allowedLoginAttempts',_0x53ecd1('0x34')],'raw':!![]})[_0x53ecd1('0xf')](function(_0x4ec5b0){const _0x1d652b=_0x53ecd1;return _0x317a81=_0x4ec5b0,db['Use'][_0x1d652b('0x30')]({'where':{'email':_0x3478b4[_0x1d652b('0x10')][_0x1d652b('0x0')]}});})[_0x53ecd1('0xf')](function(_0x106332){const _0x271e63=_0x53ecd1;if(!_0x106332)throw new Error(_0x271e63('0x25'));if(_0x106332[_0x271e63('0x40')])throw new Error(_0x271e63('0x22'));if(_0x106332[_0x271e63('0x41')]){if(moment(_0x106332[_0x271e63('0x1b')])[_0x271e63('0x2e')](_0x317a81[_0x271e63('0x34')],_0x271e63('0x37'))>moment())throw new Error(_0x271e63('0x3e'));else _0x106332['blocked']=![],_0x106332[_0x271e63('0x1b')]=null;}return _0x106332[_0x271e63('0x2c')]=_0x22d773,_0x106332['resetPasswordExpires']=Date['now']()+0x36ee80,_0x106332[_0x271e63('0x4e')]();})[_0x53ecd1('0xf')](function(){const _0x121b31=_0x53ecd1;return sendServiceMail({'to':_0x3478b4[_0x121b31('0x10')][_0x121b31('0x0')],'subject':_0x121b31('0x1a'),'text':_0x121b31('0x1e')+'Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a'+'http://'+_0x3478b4['headers'][_0x121b31('0x21')]+_0x121b31('0x4a')+_0x22d773+'\x0a\x0a'+_0x121b31('0x1c')});})[_0x53ecd1('0xf')](function(){const _0x4e8934=_0x53ecd1;_0x13e226[_0x4e8934('0x17')](0xc8)[_0x4e8934('0x2d')]({'message':_0x4e8934('0x9')});})[_0x53ecd1('0x19')](function(_0x54677c){return handleError(_0x13e226,0x1f4,_0x54677c);});},exports[_0x33f0a8('0x44')]=function(_0x38dc89,_0x1355b8){const _0xd86334=_0x33f0a8;return db['User'][_0xd86334('0x30')]({'where':{'resetPasswordToken':_0x38dc89[_0xd86334('0xb')][_0xd86334('0x3d')],'resetPasswordExpires':{[Op['gt']]:Date[_0xd86334('0x29')]()}}})[_0xd86334('0xf')](function(_0x2adab0){const _0x5d8bc9=_0xd86334;if(!_0x2adab0)throw new Error('Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.');return db[_0x5d8bc9('0x13')][_0x5d8bc9('0x30')]({'attributes':['id',_0x5d8bc9('0x32'),_0x5d8bc9('0x14'),_0x5d8bc9('0x43')]})['then'](function(_0x586414){const _0x5217d0=_0x5d8bc9;if(_0x586414[_0x5217d0('0x32')])authService['validatePasswordPattern'](_0x38dc89['body'][_0x5217d0('0x4d')]);if(!_0x586414[_0x5217d0('0x14')]||!_0x2adab0['previousPasswords'])return _0x2adab0;return authService[_0x5217d0('0x15')](_0x38dc89[_0x5217d0('0x10')]['password'],_0x2adab0[_0x5217d0('0x27')],_0x586414['passwordHistoryLimit']),_0x2adab0;})[_0x5d8bc9('0xf')](function(){const _0x431827=_0x5d8bc9;return _0x2adab0['password']=_0x38dc89[_0x431827('0x10')][_0x431827('0x4d')],_0x2adab0['resetPasswordToken']=null,_0x2adab0[_0x431827('0x24')]=null,_0x2adab0['save']();});})[_0xd86334('0xf')](function(){const _0x459fe5=_0xd86334;_0x1355b8[_0x459fe5('0x17')](0xc8)[_0x459fe5('0x2d')]({'message':'Password\x20reset!'});})[_0xd86334('0x19')](function(_0x206c75){return handleError(_0x1355b8,0x1f4,_0x206c75);});},passport[_0x33f0a8('0x54')](new LocalStrategy({'usernameField':_0x33f0a8('0x8'),'passwordField':_0x33f0a8('0x4d')},function(_0x5cab52,_0x236c79,_0x109a13){const _0x16c9bb=_0x33f0a8;return localAuthenticate(db[_0x16c9bb('0x52')],_0x5cab52,_0x236c79,_0x109a13);})); \ No newline at end of file diff --git a/server/api/authLocal/index.js b/server/api/authLocal/index.js index 086fb75..e7fdd4d 100644 --- a/server/api/authLocal/index.js +++ b/server/api/authLocal/index.js @@ -1 +1 @@ -const a36_0x2b5f=['express','post','reset','login','/reset/:token','Router','./authLocal.controller','/forgot'];(function(_0x1e1700,_0x2b5fcc){const _0x35ad0f=function(_0x2b98f6){while(--_0x2b98f6){_0x1e1700['push'](_0x1e1700['shift']());}};_0x35ad0f(++_0x2b5fcc);}(a36_0x2b5f,0xbb));const a36_0x35ad=function(_0x1e1700,_0x2b5fcc){_0x1e1700=_0x1e1700-0x0;let _0x35ad0f=a36_0x2b5f[_0x1e1700];return _0x35ad0f;};const _0x313deb=a36_0x35ad;'use strict';const express=require(_0x313deb('0x5')),router=express[_0x313deb('0x2')](),controller=require(_0x313deb('0x3'));router[_0x313deb('0x6')]('/',controller[_0x313deb('0x0')]),router['post'](_0x313deb('0x4'),controller['forgot']),router[_0x313deb('0x6')](_0x313deb('0x1'),controller[_0x313deb('0x7')]),module['exports']=router; \ No newline at end of file +const a36_0x1f39=['/forgot','exports','./authLocal.controller','/reset/:token','post','login','Router','reset'];(function(_0x24d608,_0x1f396a){const _0x1adc7d=function(_0x5e6ebd){while(--_0x5e6ebd){_0x24d608['push'](_0x24d608['shift']());}};_0x1adc7d(++_0x1f396a);}(a36_0x1f39,0xf2));const a36_0x1adc=function(_0x24d608,_0x1f396a){_0x24d608=_0x24d608-0x0;let _0x1adc7d=a36_0x1f39[_0x24d608];return _0x1adc7d;};const _0xb0753a=a36_0x1adc;'use strict';const express=require('express'),router=express[_0xb0753a('0x4')](),controller=require(_0xb0753a('0x0'));router[_0xb0753a('0x2')]('/',controller[_0xb0753a('0x3')]),router[_0xb0753a('0x2')](_0xb0753a('0x6'),controller['forgot']),router[_0xb0753a('0x2')](_0xb0753a('0x1'),controller[_0xb0753a('0x5')]),module[_0xb0753a('0x7')]=router; \ No newline at end of file diff --git a/server/api/automation/automation.attributes.js b/server/api/automation/automation.attributes.js index dedc8c1..8954ead 100644 --- a/server/api/automation/automation.attributes.js +++ b/server/api/automation/automation.attributes.js @@ -1 +1 @@ -const a37_0x1a5d=['INTEGER','STRING','sequelize','exports'];(function(_0x342daf,_0x1a5ddb){const _0x1dc19c=function(_0x37fa1b){while(--_0x37fa1b){_0x342daf['push'](_0x342daf['shift']());}};_0x1dc19c(++_0x1a5ddb);}(a37_0x1a5d,0x136));const a37_0x1dc1=function(_0x342daf,_0x1a5ddb){_0x342daf=_0x342daf-0x0;let _0x1dc19c=a37_0x1a5d[_0x342daf];return _0x1dc19c;};const _0x1508b0=a37_0x1dc1;'use strict';const Sequelize=require(_0x1508b0('0x0'));module[_0x1508b0('0x1')]={'name':{'type':Sequelize[_0x1508b0('0x3')],'allowNull':![]},'channel':{'type':Sequelize[_0x1508b0('0x3')]},'description':{'type':Sequelize[_0x1508b0('0x3')]},'status':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'timeout':{'type':Sequelize[_0x1508b0('0x2')],'defaultValue':0xa}}; \ No newline at end of file +const a37_0xf7f8=['BOOLEAN','exports','STRING','INTEGER'];(function(_0x4f14fa,_0xf7f8d0){const _0xc73247=function(_0x4e6e17){while(--_0x4e6e17){_0x4f14fa['push'](_0x4f14fa['shift']());}};_0xc73247(++_0xf7f8d0);}(a37_0xf7f8,0x1de));const a37_0xc732=function(_0x4f14fa,_0xf7f8d0){_0x4f14fa=_0x4f14fa-0x0;let _0xc73247=a37_0xf7f8[_0x4f14fa];return _0xc73247;};const _0x430da9=a37_0xc732;'use strict';const Sequelize=require('sequelize');module[_0x430da9('0x3')]={'name':{'type':Sequelize[_0x430da9('0x0')],'allowNull':![]},'channel':{'type':Sequelize[_0x430da9('0x0')]},'description':{'type':Sequelize[_0x430da9('0x0')]},'status':{'type':Sequelize[_0x430da9('0x2')],'defaultValue':![]},'timeout':{'type':Sequelize[_0x430da9('0x1')],'defaultValue':0xa}}; \ No newline at end of file diff --git a/server/api/automation/automation.controller.js b/server/api/automation/automation.controller.js index 6f6c727..211ebbb 100644 --- a/server/api/automation/automation.controller.js +++ b/server/api/automation/automation.controller.js @@ -1 +1 @@ -const a38_0x5af8=['intersection','create','../../components/parsers/qs','map','offset','options','rawAttributes','status','Action','merge','end','keys','lodash','sort','query','nolimit','ids','fields','catch','type','model','Automation','limit','attributes','sendStatus','stack','includeAll','../../config/logger','addActions','getConditions','then','where','omit','params','../../mysqldb','set','undefined','send','filter','count','index','getActions','findOne','pick','fieldName','filters','json','order','include','Condition','addConditions','name','length','key','findAll','body','error','destroy'];(function(_0x1c4dce,_0x5af8d8){const _0x13188a=function(_0x2fea66){while(--_0x2fea66){_0x1c4dce['push'](_0x1c4dce['shift']());}};_0x13188a(++_0x5af8d8);}(a38_0x5af8,0xda));const a38_0x1318=function(_0x1c4dce,_0x5af8d8){_0x1c4dce=_0x1c4dce-0x0;let _0x13188a=a38_0x5af8[_0x1c4dce];return _0x13188a;};const _0x2427b9=a38_0x1318;'use strict';const _=require(_0x2427b9('0x1a')),qs=require(_0x2427b9('0x10')),logger=require(_0x2427b9('0x29'))('api'),db=require(_0x2427b9('0x30'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2fea66,_0x2af813){return _0x2af813=_0x2af813||0xc8,function(_0x512930){const _0x429feb=a38_0x1318;if(_0x512930)return _0x2fea66[_0x429feb('0x15')](_0x2af813)['json'](_0x512930);};}function respondWithFilteredResult(_0x143aea,_0x25097f){return function(_0x366b24){const _0x12c406=a38_0x1318;if(_0x366b24){const _0x100117=_0x366b24[_0x12c406('0x35')],_0x1393fa=_0x25097f[_0x12c406('0x12')];let _0x98b328=_0x25097f[_0x12c406('0x12')]+_0x25097f[_0x12c406('0x24')],_0x2f824a;return _0x98b328>=_0x100117?(_0x98b328=_0x100117,_0x2f824a=0xc8):_0x2f824a=0xce,_0x143aea['status'](_0x2f824a),_0x143aea[_0x12c406('0x31')]('Content-Range',_0x1393fa+'-'+_0x98b328+'/'+_0x100117)[_0x12c406('0x2')](_0x366b24);}return null;};}function saveUpdates(_0xce07e7){return function(_0x1e22ac){const _0x4cf674=a38_0x1318;if(_0x1e22ac)return _0x1e22ac['update'](_0xce07e7)[_0x4cf674('0x2c')](function(_0x54d7ec){return _0x54d7ec;});return null;};}function removeEntity(_0x5dad9c){return function(_0x4db1b6){const _0xde7413=a38_0x1318;if(_0x4db1b6)return _0x4db1b6[_0xde7413('0xd')]()[_0xde7413('0x2c')](function(){const _0x359aad=_0xde7413;_0x5dad9c['status'](0xcc)[_0x359aad('0x18')]();});};}function handleEntityNotFound(_0x138236){return function(_0x3ee59a){const _0x20321b=a38_0x1318;return!_0x3ee59a&&_0x138236[_0x20321b('0x26')](0x194),_0x3ee59a;};}function handleError(_0x348324,_0x54381a){return _0x54381a=_0x54381a||0x1f4,function(_0x1fda74){const _0x427e66=a38_0x1318;logger[_0x427e66('0xc')](_0x1fda74[_0x427e66('0x27')]),_0x1fda74['name']&&delete _0x1fda74[_0x427e66('0x7')],_0x348324[_0x427e66('0x15')](_0x54381a)[_0x427e66('0x33')](_0x1fda74);};}exports[_0x2427b9('0x36')]=function(_0x32b5ea,_0x5227fa){const _0x4b7ad5=_0x2427b9;let _0x4d94db={};const _0x1499b3={},_0x4157ee={'count':0x0,'rows':[]},_0x240908=_[_0x4b7ad5('0x11')](db[_0x4b7ad5('0x23')][_0x4b7ad5('0x14')],function(_0x282dd0){const _0x1afe27=_0x4b7ad5;return{'name':_0x282dd0[_0x1afe27('0x0')],'type':_0x282dd0['type'][_0x1afe27('0x9')]};});_0x1499b3[_0x4b7ad5('0x22')]=_[_0x4b7ad5('0x11')](_0x240908,'name'),_0x1499b3['query']=_[_0x4b7ad5('0x19')](_0x32b5ea['query']),_0x1499b3[_0x4b7ad5('0x1')]=_['intersection'](_0x1499b3['model'],_0x1499b3['query']),_0x4d94db['attributes']=_[_0x4b7ad5('0xe')](_0x1499b3['model'],qs[_0x4b7ad5('0x1f')](_0x32b5ea['query'][_0x4b7ad5('0x1f')])),_0x4d94db[_0x4b7ad5('0x25')]=_0x4d94db[_0x4b7ad5('0x25')][_0x4b7ad5('0x8')]?_0x4d94db[_0x4b7ad5('0x25')]:_0x1499b3[_0x4b7ad5('0x22')];typeof _0x32b5ea[_0x4b7ad5('0x1c')][_0x4b7ad5('0x1d')]===_0x4b7ad5('0x32')&&(_0x4d94db['limit']=qs[_0x4b7ad5('0x24')](_0x32b5ea[_0x4b7ad5('0x1c')]['limit']),_0x4d94db[_0x4b7ad5('0x12')]=qs['offset'](_0x32b5ea[_0x4b7ad5('0x1c')]['offset']));_0x4d94db['order']=qs['sort'](_0x32b5ea['query'][_0x4b7ad5('0x1b')]),_0x4d94db[_0x4b7ad5('0x2d')]=qs['filters'](_[_0x4b7ad5('0x39')](_0x32b5ea[_0x4b7ad5('0x1c')],_0x1499b3[_0x4b7ad5('0x1')]),_0x240908);_0x32b5ea[_0x4b7ad5('0x1c')][_0x4b7ad5('0x34')]&&(_0x4d94db['where']=_[_0x4b7ad5('0x17')](_0x4d94db[_0x4b7ad5('0x2d')],{[Op['or']]:_[_0x4b7ad5('0x11')](_0x240908,function(_0x1826c2){const _0x34b987=_0x4b7ad5;if(_0x1826c2[_0x34b987('0x21')]!=='VIRTUAL'){const _0x20270e={};return _0x20270e[_0x1826c2[_0x34b987('0x7')]]={[Op['like']]:'%'+_0x32b5ea[_0x34b987('0x1c')]['filter']+'%'},_0x20270e;}})}));_0x4d94db=_['merge']({},_0x4d94db,_0x32b5ea[_0x4b7ad5('0x13')]);const _0x13d048={'where':_0x4d94db[_0x4b7ad5('0x2d')]};return db[_0x4b7ad5('0x23')]['count'](_0x13d048)[_0x4b7ad5('0x2c')](function(_0x53ae6c){const _0x518288=_0x4b7ad5;return _0x4157ee[_0x518288('0x35')]=_0x53ae6c,_0x32b5ea[_0x518288('0x1c')][_0x518288('0x28')]&&(_0x4d94db[_0x518288('0x4')]=[{'all':!![]}]),db['Automation'][_0x518288('0xa')](_0x4d94db);})['then'](function(_0x3916a7){return _0x4157ee['rows']=_0x3916a7,_0x4157ee;})[_0x4b7ad5('0x2c')](respondWithFilteredResult(_0x5227fa,_0x4d94db))[_0x4b7ad5('0x20')](handleError(_0x5227fa,null));},exports['show']=function(_0x3fd295,_0x38e845){const _0x4b395a=_0x2427b9;let _0x5207a8={'raw':![],'where':{'id':_0x3fd295['params']['id']}};const _0x470b95={};return _0x470b95[_0x4b395a('0x22')]=_[_0x4b395a('0x19')](db['Automation'][_0x4b395a('0x14')]),_0x470b95['query']=_[_0x4b395a('0x19')](_0x3fd295['query']),_0x470b95['filters']=_[_0x4b395a('0xe')](_0x470b95[_0x4b395a('0x22')],_0x470b95[_0x4b395a('0x1c')]),_0x5207a8[_0x4b395a('0x25')]=_['intersection'](_0x470b95['model'],qs[_0x4b395a('0x1f')](_0x3fd295['query'][_0x4b395a('0x1f')])),_0x5207a8[_0x4b395a('0x25')]=_0x5207a8[_0x4b395a('0x25')]['length']?_0x5207a8[_0x4b395a('0x25')]:_0x470b95[_0x4b395a('0x22')],_0x3fd295[_0x4b395a('0x1c')][_0x4b395a('0x28')]&&(_0x5207a8[_0x4b395a('0x4')]=[{'all':!![]}]),_0x5207a8=_[_0x4b395a('0x17')]({},_0x5207a8,_0x3fd295[_0x4b395a('0x13')]),db[_0x4b395a('0x23')][_0x4b395a('0x38')](_0x5207a8)[_0x4b395a('0x2c')](handleEntityNotFound(_0x38e845,null))[_0x4b395a('0x2c')](respondWithResult(_0x38e845,null))[_0x4b395a('0x20')](handleError(_0x38e845,null));},exports[_0x2427b9('0xf')]=function(_0x57a073,_0x2bafef){const _0x97f744=_0x2427b9;return db[_0x97f744('0x23')]['create'](_0x57a073[_0x97f744('0xb')],{})['then'](respondWithResult(_0x2bafef,0xc9))[_0x97f744('0x20')](handleError(_0x2bafef,null));},exports['update']=function(_0x312565,_0x54943c){const _0x14d582=_0x2427b9;return _0x312565[_0x14d582('0xb')]['id']&&delete _0x312565[_0x14d582('0xb')]['id'],db[_0x14d582('0x23')][_0x14d582('0x38')]({'where':{'id':_0x312565['params']['id']}})[_0x14d582('0x2c')](handleEntityNotFound(_0x54943c,null))[_0x14d582('0x2c')](saveUpdates(_0x312565['body'],null))[_0x14d582('0x2c')](respondWithResult(_0x54943c,null))[_0x14d582('0x20')](handleError(_0x54943c,null));},exports[_0x2427b9('0xd')]=function(_0x5f4c52,_0x473d1f){const _0x3b3050=_0x2427b9;return db[_0x3b3050('0x23')]['findOne']({'where':{'id':_0x5f4c52[_0x3b3050('0x2f')]['id']}})[_0x3b3050('0x2c')](handleEntityNotFound(_0x473d1f,null))['then'](removeEntity(_0x473d1f,null))[_0x3b3050('0x20')](handleError(_0x473d1f,null));},exports[_0x2427b9('0x6')]=function(_0x3e89a9,_0x6cab6a){const _0x13e85e=_0x2427b9;return db[_0x13e85e('0x5')][_0x13e85e('0x38')]({'where':{'id':_0x3e89a9[_0x13e85e('0x2f')]['id']}})[_0x13e85e('0x2c')](function(_0x5bdefc){const _0x424ceb=_0x13e85e;if(_0x5bdefc)return _0x5bdefc[_0x424ceb('0x6')](_0x3e89a9[_0x424ceb('0xb')]['ids'],{'through':_['omit'](_0x3e89a9[_0x424ceb('0xb')],['ids','id'])});})[_0x13e85e('0x2c')](respondWithResult(_0x6cab6a,null))[_0x13e85e('0x20')](handleError(_0x6cab6a,null));},exports['getConditions']=function(_0x14c76a,_0x26c453){const _0x3ce8d5=_0x2427b9;let _0x50caf2={};const _0x4c7960={};let _0x32a62f,_0x127c82;return db['Automation'][_0x3ce8d5('0x38')]({'where':{'id':_0x14c76a[_0x3ce8d5('0x2f')]['id']}})[_0x3ce8d5('0x2c')](handleEntityNotFound(_0x26c453,null))['then'](function(_0x47f805){const _0x1c6a12=_0x3ce8d5;if(_0x47f805)return _0x32a62f=_0x47f805,_0x4c7960[_0x1c6a12('0x22')]=_[_0x1c6a12('0x19')](db[_0x1c6a12('0x5')]['rawAttributes']),_0x4c7960[_0x1c6a12('0x1c')]=_[_0x1c6a12('0x19')](_0x14c76a['query']),_0x4c7960['filters']=_['intersection'](_0x4c7960['model'],_0x4c7960[_0x1c6a12('0x1c')]),_0x50caf2[_0x1c6a12('0x25')]=_['intersection'](_0x4c7960['model'],qs[_0x1c6a12('0x1f')](_0x14c76a[_0x1c6a12('0x1c')]['fields'])),_0x50caf2[_0x1c6a12('0x25')]=_0x50caf2[_0x1c6a12('0x25')]['length']?_0x50caf2['attributes']:_0x4c7960[_0x1c6a12('0x22')],_0x50caf2[_0x1c6a12('0x3')]=qs['sort'](_0x14c76a[_0x1c6a12('0x1c')][_0x1c6a12('0x1b')]),_0x50caf2[_0x1c6a12('0x2d')]=qs['filters'](_[_0x1c6a12('0x39')](_0x14c76a[_0x1c6a12('0x1c')],_0x4c7960[_0x1c6a12('0x1')])),_0x14c76a[_0x1c6a12('0x1c')][_0x1c6a12('0x34')]&&(_0x50caf2[_0x1c6a12('0x2d')]=_['merge'](_0x50caf2['where'],{[Op['or']]:_[_0x1c6a12('0x11')](_0x50caf2[_0x1c6a12('0x25')],function(_0x392d21){const _0x3faea6=_0x1c6a12,_0x215829={};return _0x215829[_0x392d21]={[Op['like']]:'%'+_0x14c76a['query'][_0x3faea6('0x34')]+'%'},_0x215829;})})),_0x50caf2=_['merge']({},_0x50caf2,_0x14c76a[_0x1c6a12('0x13')]),_0x32a62f[_0x1c6a12('0x2b')](_0x50caf2);})[_0x3ce8d5('0x2c')](function(_0x1a4d85){const _0x1fa0f1=_0x3ce8d5;if(_0x1a4d85)return _0x127c82=_0x1a4d85[_0x1fa0f1('0x8')],typeof _0x14c76a['query'][_0x1fa0f1('0x1d')]===_0x1fa0f1('0x32')&&(_0x50caf2[_0x1fa0f1('0x24')]=qs[_0x1fa0f1('0x24')](_0x14c76a[_0x1fa0f1('0x1c')][_0x1fa0f1('0x24')]),_0x50caf2[_0x1fa0f1('0x12')]=qs[_0x1fa0f1('0x12')](_0x14c76a[_0x1fa0f1('0x1c')][_0x1fa0f1('0x12')])),_0x32a62f[_0x1fa0f1('0x2b')](_0x50caf2);})[_0x3ce8d5('0x2c')](function(_0x4714a4){if(_0x4714a4)return _0x4714a4?{'count':_0x127c82,'rows':_0x4714a4}:null;})['then'](respondWithResult(_0x26c453,null))[_0x3ce8d5('0x20')](handleError(_0x26c453,null));},exports[_0x2427b9('0x2a')]=function(_0x111b30,_0x4f8ba3){const _0x19580e=_0x2427b9;return db[_0x19580e('0x16')]['findOne']({'where':{'id':_0x111b30[_0x19580e('0x2f')]['id']}})[_0x19580e('0x2c')](function(_0x48fbd4){const _0x37ca08=_0x19580e;if(_0x48fbd4)return _0x48fbd4[_0x37ca08('0x2a')](_0x111b30[_0x37ca08('0xb')]['ids'],{'through':_[_0x37ca08('0x2e')](_0x111b30[_0x37ca08('0xb')],[_0x37ca08('0x1e'),'id'])});})[_0x19580e('0x2c')](respondWithResult(_0x4f8ba3,null))[_0x19580e('0x20')](handleError(_0x4f8ba3,null));},exports[_0x2427b9('0x37')]=function(_0x33b24a,_0x1a3fea){const _0x4d192a=_0x2427b9;let _0x55d419={};const _0x291907={};let _0x56e187,_0x137977;return db[_0x4d192a('0x23')]['findOne']({'where':{'id':_0x33b24a[_0x4d192a('0x2f')]['id']}})[_0x4d192a('0x2c')](handleEntityNotFound(_0x1a3fea,null))[_0x4d192a('0x2c')](function(_0x43cccf){const _0x2b3c92=_0x4d192a;if(_0x43cccf)return _0x56e187=_0x43cccf,_0x291907[_0x2b3c92('0x22')]=_[_0x2b3c92('0x19')](db[_0x2b3c92('0x16')][_0x2b3c92('0x14')]),_0x291907[_0x2b3c92('0x1c')]=_[_0x2b3c92('0x19')](_0x33b24a[_0x2b3c92('0x1c')]),_0x291907['filters']=_[_0x2b3c92('0xe')](_0x291907[_0x2b3c92('0x22')],_0x291907[_0x2b3c92('0x1c')]),_0x55d419[_0x2b3c92('0x25')]=_[_0x2b3c92('0xe')](_0x291907[_0x2b3c92('0x22')],qs[_0x2b3c92('0x1f')](_0x33b24a[_0x2b3c92('0x1c')][_0x2b3c92('0x1f')])),_0x55d419[_0x2b3c92('0x25')]=_0x55d419['attributes']['length']?_0x55d419[_0x2b3c92('0x25')]:_0x291907[_0x2b3c92('0x22')],_0x55d419[_0x2b3c92('0x3')]=qs['sort'](_0x33b24a[_0x2b3c92('0x1c')][_0x2b3c92('0x1b')]),_0x55d419[_0x2b3c92('0x2d')]=qs[_0x2b3c92('0x1')](_['pick'](_0x33b24a['query'],_0x291907[_0x2b3c92('0x1')])),_0x33b24a[_0x2b3c92('0x1c')][_0x2b3c92('0x34')]&&(_0x55d419[_0x2b3c92('0x2d')]=_[_0x2b3c92('0x17')](_0x55d419[_0x2b3c92('0x2d')],{[Op['or']]:_[_0x2b3c92('0x11')](_0x55d419[_0x2b3c92('0x25')],function(_0x2ef5a3){const _0x349971=_0x2b3c92,_0x371951={};return _0x371951[_0x2ef5a3]={[Op['like']]:'%'+_0x33b24a[_0x349971('0x1c')][_0x349971('0x34')]+'%'},_0x371951;})})),_0x55d419=_[_0x2b3c92('0x17')]({},_0x55d419,_0x33b24a[_0x2b3c92('0x13')]),_0x56e187[_0x2b3c92('0x37')](_0x55d419);})[_0x4d192a('0x2c')](function(_0x23f1a7){const _0x1a3cbe=_0x4d192a;if(_0x23f1a7)return _0x137977=_0x23f1a7[_0x1a3cbe('0x8')],typeof _0x33b24a[_0x1a3cbe('0x1c')][_0x1a3cbe('0x1d')]==='undefined'&&(_0x55d419['limit']=qs['limit'](_0x33b24a[_0x1a3cbe('0x1c')][_0x1a3cbe('0x24')]),_0x55d419['offset']=qs[_0x1a3cbe('0x12')](_0x33b24a[_0x1a3cbe('0x1c')]['offset'])),_0x56e187[_0x1a3cbe('0x37')](_0x55d419);})[_0x4d192a('0x2c')](function(_0x458e87){if(_0x458e87)return _0x458e87?{'count':_0x137977,'rows':_0x458e87}:null;})['then'](respondWithResult(_0x1a3fea,null))[_0x4d192a('0x20')](handleError(_0x1a3fea,null));}; \ No newline at end of file +const a38_0x241c=['ids','rows','rawAttributes','set','show','intersection','type','body','json','options','Automation','includeAll','Action','params','lodash','../../components/parsers/qs','sort','stack','addConditions','keys','filters','undefined','error','count','include','getActions','name','filter','omit','../../config/logger','status','api','Content-Range','sendStatus','merge','Condition','end','limit','map','sequelize','model','offset','destroy','pick','VIRTUAL','getConditions','attributes','create','then','key','length','update','like','findOne','order','where','fields','query','nolimit','findAll','catch','addActions'];(function(_0x5aa1fb,_0x241c12){const _0x1bcf35=function(_0x24a64a){while(--_0x24a64a){_0x5aa1fb['push'](_0x5aa1fb['shift']());}};_0x1bcf35(++_0x241c12);}(a38_0x241c,0x154));const a38_0x1bcf=function(_0x5aa1fb,_0x241c12){_0x5aa1fb=_0x5aa1fb-0x0;let _0x1bcf35=a38_0x241c[_0x5aa1fb];return _0x1bcf35;};const _0x5c4532=a38_0x1bcf;'use strict';const _=require(_0x5c4532('0x2e')),qs=require(_0x5c4532('0x2f')),logger=require(_0x5c4532('0x3d'))(_0x5c4532('0x1')),db=require('../../mysqldb')['db'],{Op}=require(_0x5c4532('0x9'));function respondWithResult(_0x24a64a,_0x40ac4e){return _0x40ac4e=_0x40ac4e||0xc8,function(_0xf4c234){const _0x2f5e6e=a38_0x1bcf;if(_0xf4c234)return _0x24a64a[_0x2f5e6e('0x0')](_0x40ac4e)['json'](_0xf4c234);};}function respondWithFilteredResult(_0x623a9,_0x815add){return function(_0x3588b4){const _0x3991cf=a38_0x1bcf;if(_0x3588b4){const _0xde5b16=_0x3588b4[_0x3991cf('0x37')],_0x148393=_0x815add[_0x3991cf('0xb')];let _0x3b958a=_0x815add[_0x3991cf('0xb')]+_0x815add[_0x3991cf('0x7')],_0x17fecc;return _0x3b958a>=_0xde5b16?(_0x3b958a=_0xde5b16,_0x17fecc=0xc8):_0x17fecc=0xce,_0x623a9[_0x3991cf('0x0')](_0x17fecc),_0x623a9[_0x3991cf('0x23')](_0x3991cf('0x2'),_0x148393+'-'+_0x3b958a+'/'+_0xde5b16)[_0x3991cf('0x28')](_0x3588b4);}return null;};}function saveUpdates(_0x2c462b){return function(_0x2493c0){const _0x5e8566=a38_0x1bcf;if(_0x2493c0)return _0x2493c0[_0x5e8566('0x15')](_0x2c462b)['then'](function(_0x4e4a46){return _0x4e4a46;});return null;};}function removeEntity(_0x5ded1e){return function(_0xc1c2ce){const _0x5a66d3=a38_0x1bcf;if(_0xc1c2ce)return _0xc1c2ce[_0x5a66d3('0xc')]()[_0x5a66d3('0x12')](function(){const _0x234d22=_0x5a66d3;_0x5ded1e[_0x234d22('0x0')](0xcc)[_0x234d22('0x6')]();});};}function handleEntityNotFound(_0x2b9d32){return function(_0x23c5c3){const _0x111dff=a38_0x1bcf;return!_0x23c5c3&&_0x2b9d32[_0x111dff('0x3')](0x194),_0x23c5c3;};}function handleError(_0x2144a0,_0x5f42b4){return _0x5f42b4=_0x5f42b4||0x1f4,function(_0x533fb6){const _0x2dc8f2=a38_0x1bcf;logger[_0x2dc8f2('0x36')](_0x533fb6[_0x2dc8f2('0x31')]),_0x533fb6[_0x2dc8f2('0x3a')]&&delete _0x533fb6[_0x2dc8f2('0x3a')],_0x2144a0[_0x2dc8f2('0x0')](_0x5f42b4)['send'](_0x533fb6);};}exports['index']=function(_0x4714bc,_0x272005){const _0x29b1f9=_0x5c4532;let _0x3a9d39={};const _0x2f3482={},_0x1fbbd1={'count':0x0,'rows':[]},_0x53fef6=_[_0x29b1f9('0x8')](db['Automation'][_0x29b1f9('0x22')],function(_0x50381f){const _0x1bd5a3=_0x29b1f9;return{'name':_0x50381f['fieldName'],'type':_0x50381f[_0x1bd5a3('0x26')][_0x1bd5a3('0x13')]};});_0x2f3482[_0x29b1f9('0xa')]=_[_0x29b1f9('0x8')](_0x53fef6,_0x29b1f9('0x3a')),_0x2f3482['query']=_['keys'](_0x4714bc[_0x29b1f9('0x1b')]),_0x2f3482['filters']=_[_0x29b1f9('0x25')](_0x2f3482[_0x29b1f9('0xa')],_0x2f3482[_0x29b1f9('0x1b')]),_0x3a9d39[_0x29b1f9('0x10')]=_[_0x29b1f9('0x25')](_0x2f3482[_0x29b1f9('0xa')],qs[_0x29b1f9('0x1a')](_0x4714bc[_0x29b1f9('0x1b')][_0x29b1f9('0x1a')])),_0x3a9d39[_0x29b1f9('0x10')]=_0x3a9d39[_0x29b1f9('0x10')][_0x29b1f9('0x14')]?_0x3a9d39['attributes']:_0x2f3482['model'];typeof _0x4714bc['query'][_0x29b1f9('0x1c')]==='undefined'&&(_0x3a9d39['limit']=qs[_0x29b1f9('0x7')](_0x4714bc[_0x29b1f9('0x1b')][_0x29b1f9('0x7')]),_0x3a9d39[_0x29b1f9('0xb')]=qs[_0x29b1f9('0xb')](_0x4714bc[_0x29b1f9('0x1b')][_0x29b1f9('0xb')]));_0x3a9d39[_0x29b1f9('0x18')]=qs[_0x29b1f9('0x30')](_0x4714bc[_0x29b1f9('0x1b')]['sort']),_0x3a9d39['where']=qs[_0x29b1f9('0x34')](_[_0x29b1f9('0xd')](_0x4714bc[_0x29b1f9('0x1b')],_0x2f3482[_0x29b1f9('0x34')]),_0x53fef6);_0x4714bc[_0x29b1f9('0x1b')][_0x29b1f9('0x3b')]&&(_0x3a9d39[_0x29b1f9('0x19')]=_[_0x29b1f9('0x4')](_0x3a9d39[_0x29b1f9('0x19')],{[Op['or']]:_['map'](_0x53fef6,function(_0x3ea4e6){const _0x73b741=_0x29b1f9;if(_0x3ea4e6[_0x73b741('0x26')]!==_0x73b741('0xe')){const _0x38495b={};return _0x38495b[_0x3ea4e6[_0x73b741('0x3a')]]={[Op[_0x73b741('0x16')]]:'%'+_0x4714bc['query']['filter']+'%'},_0x38495b;}})}));_0x3a9d39=_[_0x29b1f9('0x4')]({},_0x3a9d39,_0x4714bc['options']);const _0x5b69f4={'where':_0x3a9d39[_0x29b1f9('0x19')]};return db['Automation'][_0x29b1f9('0x37')](_0x5b69f4)[_0x29b1f9('0x12')](function(_0x315868){const _0x5b4c2c=_0x29b1f9;return _0x1fbbd1[_0x5b4c2c('0x37')]=_0x315868,_0x4714bc[_0x5b4c2c('0x1b')][_0x5b4c2c('0x2b')]&&(_0x3a9d39[_0x5b4c2c('0x38')]=[{'all':!![]}]),db[_0x5b4c2c('0x2a')][_0x5b4c2c('0x1d')](_0x3a9d39);})[_0x29b1f9('0x12')](function(_0x51c992){const _0x1306e6=_0x29b1f9;return _0x1fbbd1[_0x1306e6('0x21')]=_0x51c992,_0x1fbbd1;})[_0x29b1f9('0x12')](respondWithFilteredResult(_0x272005,_0x3a9d39))['catch'](handleError(_0x272005,null));},exports[_0x5c4532('0x24')]=function(_0x394ac7,_0x23e03e){const _0x1d6d52=_0x5c4532;let _0x35b633={'raw':![],'where':{'id':_0x394ac7['params']['id']}};const _0x217d24={};return _0x217d24['model']=_[_0x1d6d52('0x33')](db[_0x1d6d52('0x2a')]['rawAttributes']),_0x217d24[_0x1d6d52('0x1b')]=_[_0x1d6d52('0x33')](_0x394ac7[_0x1d6d52('0x1b')]),_0x217d24[_0x1d6d52('0x34')]=_[_0x1d6d52('0x25')](_0x217d24[_0x1d6d52('0xa')],_0x217d24['query']),_0x35b633[_0x1d6d52('0x10')]=_[_0x1d6d52('0x25')](_0x217d24[_0x1d6d52('0xa')],qs[_0x1d6d52('0x1a')](_0x394ac7[_0x1d6d52('0x1b')]['fields'])),_0x35b633[_0x1d6d52('0x10')]=_0x35b633[_0x1d6d52('0x10')][_0x1d6d52('0x14')]?_0x35b633[_0x1d6d52('0x10')]:_0x217d24[_0x1d6d52('0xa')],_0x394ac7[_0x1d6d52('0x1b')][_0x1d6d52('0x2b')]&&(_0x35b633[_0x1d6d52('0x38')]=[{'all':!![]}]),_0x35b633=_[_0x1d6d52('0x4')]({},_0x35b633,_0x394ac7['options']),db[_0x1d6d52('0x2a')][_0x1d6d52('0x17')](_0x35b633)[_0x1d6d52('0x12')](handleEntityNotFound(_0x23e03e,null))[_0x1d6d52('0x12')](respondWithResult(_0x23e03e,null))[_0x1d6d52('0x1e')](handleError(_0x23e03e,null));},exports['create']=function(_0x4caccd,_0x4ac33f){const _0x38cd00=_0x5c4532;return db['Automation'][_0x38cd00('0x11')](_0x4caccd[_0x38cd00('0x27')],{})[_0x38cd00('0x12')](respondWithResult(_0x4ac33f,0xc9))[_0x38cd00('0x1e')](handleError(_0x4ac33f,null));},exports[_0x5c4532('0x15')]=function(_0x1d0750,_0x47044b){const _0x1b28f4=_0x5c4532;return _0x1d0750['body']['id']&&delete _0x1d0750['body']['id'],db['Automation'][_0x1b28f4('0x17')]({'where':{'id':_0x1d0750['params']['id']}})['then'](handleEntityNotFound(_0x47044b,null))[_0x1b28f4('0x12')](saveUpdates(_0x1d0750[_0x1b28f4('0x27')],null))[_0x1b28f4('0x12')](respondWithResult(_0x47044b,null))[_0x1b28f4('0x1e')](handleError(_0x47044b,null));},exports['destroy']=function(_0x24c5cc,_0x33b211){const _0x1a8da2=_0x5c4532;return db['Automation'][_0x1a8da2('0x17')]({'where':{'id':_0x24c5cc[_0x1a8da2('0x2d')]['id']}})[_0x1a8da2('0x12')](handleEntityNotFound(_0x33b211,null))[_0x1a8da2('0x12')](removeEntity(_0x33b211,null))['catch'](handleError(_0x33b211,null));},exports[_0x5c4532('0x32')]=function(_0x52c1fa,_0x3e8144){const _0x4e0a88=_0x5c4532;return db[_0x4e0a88('0x5')][_0x4e0a88('0x17')]({'where':{'id':_0x52c1fa[_0x4e0a88('0x2d')]['id']}})[_0x4e0a88('0x12')](function(_0x3e18d2){const _0x2bf92f=_0x4e0a88;if(_0x3e18d2)return _0x3e18d2[_0x2bf92f('0x32')](_0x52c1fa['body']['ids'],{'through':_[_0x2bf92f('0x3c')](_0x52c1fa[_0x2bf92f('0x27')],[_0x2bf92f('0x20'),'id'])});})['then'](respondWithResult(_0x3e8144,null))['catch'](handleError(_0x3e8144,null));},exports[_0x5c4532('0xf')]=function(_0x24b5af,_0x25c70b){const _0x6743e5=_0x5c4532;let _0x41c771={};const _0x4b1a4b={};let _0x2e5dcd,_0x55a704;return db[_0x6743e5('0x2a')]['findOne']({'where':{'id':_0x24b5af[_0x6743e5('0x2d')]['id']}})['then'](handleEntityNotFound(_0x25c70b,null))[_0x6743e5('0x12')](function(_0x2b940d){const _0x5d7ef5=_0x6743e5;if(_0x2b940d)return _0x2e5dcd=_0x2b940d,_0x4b1a4b[_0x5d7ef5('0xa')]=_[_0x5d7ef5('0x33')](db[_0x5d7ef5('0x5')]['rawAttributes']),_0x4b1a4b[_0x5d7ef5('0x1b')]=_[_0x5d7ef5('0x33')](_0x24b5af[_0x5d7ef5('0x1b')]),_0x4b1a4b['filters']=_[_0x5d7ef5('0x25')](_0x4b1a4b[_0x5d7ef5('0xa')],_0x4b1a4b[_0x5d7ef5('0x1b')]),_0x41c771[_0x5d7ef5('0x10')]=_['intersection'](_0x4b1a4b[_0x5d7ef5('0xa')],qs[_0x5d7ef5('0x1a')](_0x24b5af[_0x5d7ef5('0x1b')][_0x5d7ef5('0x1a')])),_0x41c771[_0x5d7ef5('0x10')]=_0x41c771['attributes'][_0x5d7ef5('0x14')]?_0x41c771[_0x5d7ef5('0x10')]:_0x4b1a4b['model'],_0x41c771['order']=qs['sort'](_0x24b5af[_0x5d7ef5('0x1b')][_0x5d7ef5('0x30')]),_0x41c771[_0x5d7ef5('0x19')]=qs[_0x5d7ef5('0x34')](_[_0x5d7ef5('0xd')](_0x24b5af[_0x5d7ef5('0x1b')],_0x4b1a4b[_0x5d7ef5('0x34')])),_0x24b5af[_0x5d7ef5('0x1b')][_0x5d7ef5('0x3b')]&&(_0x41c771[_0x5d7ef5('0x19')]=_['merge'](_0x41c771[_0x5d7ef5('0x19')],{[Op['or']]:_['map'](_0x41c771[_0x5d7ef5('0x10')],function(_0x238a93){const _0x2b7403=_0x5d7ef5,_0x487ef8={};return _0x487ef8[_0x238a93]={[Op[_0x2b7403('0x16')]]:'%'+_0x24b5af['query']['filter']+'%'},_0x487ef8;})})),_0x41c771=_[_0x5d7ef5('0x4')]({},_0x41c771,_0x24b5af[_0x5d7ef5('0x29')]),_0x2e5dcd[_0x5d7ef5('0xf')](_0x41c771);})['then'](function(_0x150a5e){const _0x5b1a8e=_0x6743e5;if(_0x150a5e)return _0x55a704=_0x150a5e[_0x5b1a8e('0x14')],typeof _0x24b5af['query'][_0x5b1a8e('0x1c')]===_0x5b1a8e('0x35')&&(_0x41c771[_0x5b1a8e('0x7')]=qs[_0x5b1a8e('0x7')](_0x24b5af[_0x5b1a8e('0x1b')][_0x5b1a8e('0x7')]),_0x41c771[_0x5b1a8e('0xb')]=qs[_0x5b1a8e('0xb')](_0x24b5af['query'][_0x5b1a8e('0xb')])),_0x2e5dcd[_0x5b1a8e('0xf')](_0x41c771);})['then'](function(_0x293e28){if(_0x293e28)return _0x293e28?{'count':_0x55a704,'rows':_0x293e28}:null;})[_0x6743e5('0x12')](respondWithResult(_0x25c70b,null))[_0x6743e5('0x1e')](handleError(_0x25c70b,null));},exports[_0x5c4532('0x1f')]=function(_0x31ef91,_0x53a21c){const _0x174611=_0x5c4532;return db[_0x174611('0x2c')][_0x174611('0x17')]({'where':{'id':_0x31ef91['params']['id']}})['then'](function(_0x2001a2){const _0x195cda=_0x174611;if(_0x2001a2)return _0x2001a2[_0x195cda('0x1f')](_0x31ef91['body'][_0x195cda('0x20')],{'through':_[_0x195cda('0x3c')](_0x31ef91[_0x195cda('0x27')],[_0x195cda('0x20'),'id'])});})['then'](respondWithResult(_0x53a21c,null))[_0x174611('0x1e')](handleError(_0x53a21c,null));},exports[_0x5c4532('0x39')]=function(_0x3a2fb9,_0x31d3be){const _0x1332dd=_0x5c4532;let _0x117119={};const _0x134b31={};let _0x3355b7,_0x26962d;return db[_0x1332dd('0x2a')]['findOne']({'where':{'id':_0x3a2fb9[_0x1332dd('0x2d')]['id']}})[_0x1332dd('0x12')](handleEntityNotFound(_0x31d3be,null))[_0x1332dd('0x12')](function(_0x34462d){const _0x5506b7=_0x1332dd;if(_0x34462d)return _0x3355b7=_0x34462d,_0x134b31['model']=_[_0x5506b7('0x33')](db[_0x5506b7('0x2c')][_0x5506b7('0x22')]),_0x134b31['query']=_[_0x5506b7('0x33')](_0x3a2fb9[_0x5506b7('0x1b')]),_0x134b31['filters']=_['intersection'](_0x134b31[_0x5506b7('0xa')],_0x134b31[_0x5506b7('0x1b')]),_0x117119[_0x5506b7('0x10')]=_[_0x5506b7('0x25')](_0x134b31[_0x5506b7('0xa')],qs[_0x5506b7('0x1a')](_0x3a2fb9['query']['fields'])),_0x117119[_0x5506b7('0x10')]=_0x117119[_0x5506b7('0x10')][_0x5506b7('0x14')]?_0x117119[_0x5506b7('0x10')]:_0x134b31[_0x5506b7('0xa')],_0x117119[_0x5506b7('0x18')]=qs[_0x5506b7('0x30')](_0x3a2fb9[_0x5506b7('0x1b')][_0x5506b7('0x30')]),_0x117119[_0x5506b7('0x19')]=qs[_0x5506b7('0x34')](_[_0x5506b7('0xd')](_0x3a2fb9['query'],_0x134b31[_0x5506b7('0x34')])),_0x3a2fb9[_0x5506b7('0x1b')]['filter']&&(_0x117119[_0x5506b7('0x19')]=_[_0x5506b7('0x4')](_0x117119[_0x5506b7('0x19')],{[Op['or']]:_[_0x5506b7('0x8')](_0x117119[_0x5506b7('0x10')],function(_0x3bd2d6){const _0x2c3758=_0x5506b7,_0x5a6641={};return _0x5a6641[_0x3bd2d6]={[Op[_0x2c3758('0x16')]]:'%'+_0x3a2fb9[_0x2c3758('0x1b')][_0x2c3758('0x3b')]+'%'},_0x5a6641;})})),_0x117119=_[_0x5506b7('0x4')]({},_0x117119,_0x3a2fb9['options']),_0x3355b7[_0x5506b7('0x39')](_0x117119);})[_0x1332dd('0x12')](function(_0x2737c6){const _0x9aba6=_0x1332dd;if(_0x2737c6)return _0x26962d=_0x2737c6[_0x9aba6('0x14')],typeof _0x3a2fb9[_0x9aba6('0x1b')][_0x9aba6('0x1c')]===_0x9aba6('0x35')&&(_0x117119[_0x9aba6('0x7')]=qs[_0x9aba6('0x7')](_0x3a2fb9[_0x9aba6('0x1b')][_0x9aba6('0x7')]),_0x117119['offset']=qs[_0x9aba6('0xb')](_0x3a2fb9['query'][_0x9aba6('0xb')])),_0x3355b7[_0x9aba6('0x39')](_0x117119);})[_0x1332dd('0x12')](function(_0x21026c){if(_0x21026c)return _0x21026c?{'count':_0x26962d,'rows':_0x21026c}:null;})[_0x1332dd('0x12')](respondWithResult(_0x31d3be,null))[_0x1332dd('0x1e')](handleError(_0x31d3be,null));}; \ No newline at end of file diff --git a/server/api/automation/automation.model.js b/server/api/automation/automation.model.js index 53c6661..d6c40ca 100644 --- a/server/api/automation/automation.model.js +++ b/server/api/automation/automation.model.js @@ -1 +1 @@ -const a39_0x5b3d=['define','Automation','tools_automations'];(function(_0x1bcc09,_0x5b3d46){const _0x1bfe0e=function(_0x40a443){while(--_0x40a443){_0x1bcc09['push'](_0x1bcc09['shift']());}};_0x1bfe0e(++_0x5b3d46);}(a39_0x5b3d,0x107));const a39_0x1bfe=function(_0x1bcc09,_0x5b3d46){_0x1bcc09=_0x1bcc09-0x0;let _0x1bfe0e=a39_0x5b3d[_0x1bcc09];return _0x1bfe0e;};'use strict';const attributes=require('./automation.attributes');module['exports']=function(_0x40a443){const _0x13015c=a39_0x1bfe,_0x4a4547=_0x40a443[_0x13015c('0x1')](_0x13015c('0x2'),attributes,{'tableName':_0x13015c('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4a4547;}; \ No newline at end of file +const a39_0x2799=['exports','Automation'];(function(_0xdb9266,_0x279921){const _0x145183=function(_0x41ea96){while(--_0x41ea96){_0xdb9266['push'](_0xdb9266['shift']());}};_0x145183(++_0x279921);}(a39_0x2799,0x1bd));const a39_0x1451=function(_0xdb9266,_0x279921){_0xdb9266=_0xdb9266-0x0;let _0x145183=a39_0x2799[_0xdb9266];return _0x145183;};const _0x176be9=a39_0x1451;'use strict';const attributes=require('./automation.attributes');module[_0x176be9('0x1')]=function(_0x41ea96){const _0x4851b8=_0x176be9,_0x2a3bd5=_0x41ea96['define'](_0x4851b8('0x0'),attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2a3bd5;}; \ No newline at end of file diff --git a/server/api/automation/index.js b/server/api/automation/index.js index b3111f0..5f9b538 100644 --- a/server/api/automation/index.js +++ b/server/api/automation/index.js @@ -1 +1 @@ -const a40_0x2949=['index','/:id/conditions','getActions','addConditions','show','getConditions','express','delete','/:id/actions','/:id','update','create','post','Router','isAuthenticated','get','../../components/auth/service'];(function(_0x406e5f,_0x2949a6){const _0x16cd15=function(_0x1d229d){while(--_0x1d229d){_0x406e5f['push'](_0x406e5f['shift']());}};_0x16cd15(++_0x2949a6);}(a40_0x2949,0xa9));const a40_0x16cd=function(_0x406e5f,_0x2949a6){_0x406e5f=_0x406e5f-0x0;let _0x16cd15=a40_0x2949[_0x406e5f];return _0x16cd15;};const _0x433eb4=a40_0x16cd;'use strict';const express=require(_0x433eb4('0x7')),router=express[_0x433eb4('0xe')](),auth=require(_0x433eb4('0x0')),controller=require('./automation.controller');router[_0x433eb4('0x10')]('/',auth[_0x433eb4('0xf')](),controller[_0x433eb4('0x1')]),router[_0x433eb4('0x10')](_0x433eb4('0xa'),auth['isAuthenticated'](),controller[_0x433eb4('0x5')]),router[_0x433eb4('0x10')](_0x433eb4('0x2'),auth[_0x433eb4('0xf')](),controller[_0x433eb4('0x6')]),router[_0x433eb4('0x10')](_0x433eb4('0x9'),auth[_0x433eb4('0xf')](),controller[_0x433eb4('0x3')]),router[_0x433eb4('0xd')]('/',auth['isAuthenticated'](),controller[_0x433eb4('0xc')]),router[_0x433eb4('0xd')](_0x433eb4('0x2'),auth[_0x433eb4('0xf')](),controller[_0x433eb4('0x4')]),router[_0x433eb4('0xd')](_0x433eb4('0x9'),auth['isAuthenticated'](),controller['addActions']),router['put']('/:id',auth[_0x433eb4('0xf')](),controller[_0x433eb4('0xb')]),router[_0x433eb4('0x8')]('/:id',auth[_0x433eb4('0xf')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a40_0xf24f=['show','destroy','addConditions','/:id','addActions','express','Router','isAuthenticated','post','update','get','exports','getActions','../../components/auth/service','put','create','./automation.controller','/:id/conditions'];(function(_0x19fcdc,_0xf24f85){const _0x2abbf7=function(_0x279a84){while(--_0x279a84){_0x19fcdc['push'](_0x19fcdc['shift']());}};_0x2abbf7(++_0xf24f85);}(a40_0xf24f,0xf9));const a40_0x2abb=function(_0x19fcdc,_0xf24f85){_0x19fcdc=_0x19fcdc-0x0;let _0x2abbf7=a40_0xf24f[_0x19fcdc];return _0x2abbf7;};const _0x95d5f6=a40_0x2abb;'use strict';const express=require(_0x95d5f6('0x8')),router=express[_0x95d5f6('0x9')](),auth=require(_0x95d5f6('0x10')),controller=require(_0x95d5f6('0x1'));router[_0x95d5f6('0xd')]('/',auth['isAuthenticated'](),controller['index']),router[_0x95d5f6('0xd')](_0x95d5f6('0x6'),auth[_0x95d5f6('0xa')](),controller[_0x95d5f6('0x3')]),router[_0x95d5f6('0xd')]('/:id/conditions',auth['isAuthenticated'](),controller['getConditions']),router['get']('/:id/actions',auth[_0x95d5f6('0xa')](),controller[_0x95d5f6('0xf')]),router[_0x95d5f6('0xb')]('/',auth[_0x95d5f6('0xa')](),controller[_0x95d5f6('0x0')]),router[_0x95d5f6('0xb')](_0x95d5f6('0x2'),auth[_0x95d5f6('0xa')](),controller[_0x95d5f6('0x5')]),router[_0x95d5f6('0xb')]('/:id/actions',auth[_0x95d5f6('0xa')](),controller[_0x95d5f6('0x7')]),router[_0x95d5f6('0x11')]('/:id',auth[_0x95d5f6('0xa')](),controller[_0x95d5f6('0xc')]),router['delete'](_0x95d5f6('0x6'),auth[_0x95d5f6('0xa')](),controller[_0x95d5f6('0x4')]),module[_0x95d5f6('0xe')]=router; \ No newline at end of file diff --git a/server/api/campaign/campaign.attributes.js b/server/api/campaign/campaign.attributes.js index 57e72cc..5ba489b 100644 --- a/server/api/campaign/campaign.attributes.js +++ b/server/api/campaign/campaign.attributes.js @@ -1 +1 @@ -const a41_0x2748=['#AMD\x20Maximum\x20Word\x20Length','always','Active/Disactive\x20Campaign','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','DESC','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','sequelize','#AMD\x20After\x20Greeting\x20Silence','#AMD\x20Greeting','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','STRING','never','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','UNSIGNED','07:00-22:00,*,*,*','Cut\x20Digit\x20(min:1,\x20max:15)','BOOLEAN','ivr','onlyIfOpen','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','INTEGER','ENUM','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','Active/Disactive\x20AMD','#AMD\x20Maximum\x20Number\x20Of\x20Words','#AMD\x20Between\x20Words\x20Silence','#Drop\x20Retry\x20(min:1,\x20max:999)','Max\x20200\x20calls.','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AgentReject\x20Retry\x20(min:1,\x20max:999)','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Congestion\x20Retry\x20(min:1,\x20max:999)','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'];(function(_0x130164,_0x274858){const _0x4e7352=function(_0x1666c1){while(--_0x1666c1){_0x130164['push'](_0x130164['shift']());}};_0x4e7352(++_0x274858);}(a41_0x2748,0x19f));const a41_0x4e73=function(_0x130164,_0x274858){_0x130164=_0x130164-0x0;let _0x4e7352=a41_0x2748[_0x130164];return _0x4e7352;};const _0x2f6f4c=a41_0x4e73;'use strict';const Sequelize=require(_0x2f6f4c('0x23'));module['exports']={'name':{'type':Sequelize[_0x2f6f4c('0x2')],'unique':'name','allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize['ENUM'](_0x2f6f4c('0x9')),'allowNull':![],'defaultValue':'ivr'},'description':{'type':Sequelize[_0x2f6f4c('0x2')]},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x2f6f4c('0x1f')},'limitCalls':{'type':Sequelize[_0x2f6f4c('0x10')](0x4)[_0x2f6f4c('0x5')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0x2f6f4c('0x17')},'dialOriginateCallerIdName':{'type':Sequelize[_0x2f6f4c('0x2')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x2f6f4c('0x2')]},'dialOriginateTimeout':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2f6f4c('0x1c')},'dialCongestionMaxRetry':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2f6f4c('0x1b')},'dialCongestionRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2f6f4c('0xf')},'dialBusyMaxRetry':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Busy\x20Retry\x20(min:1,\x20max:999)'},'dialBusyRetryFrequency':{'type':Sequelize[_0x2f6f4c('0x10')](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2f6f4c('0x18')},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)['UNSIGNED'],'defaultValue':0x3,'comment':_0x2f6f4c('0x4')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x2f6f4c('0x10')](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2f6f4c('0xd')},'dialGlobalMaxRetry':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':'#Global\x20Max\x20Retry\x20(min:1,\x20max:999)'},'dialTimezone':{'type':Sequelize[_0x2f6f4c('0x2')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize['STRING'],'defaultValue':_0x2f6f4c('0x6')},'dialCheckDuplicateType':{'type':Sequelize[_0x2f6f4c('0x11')](_0x2f6f4c('0x1e'),_0x2f6f4c('0x3'),_0x2f6f4c('0xa')),'defaultValue':_0x2f6f4c('0x1e')},'dialAMDActive':{'type':Sequelize[_0x2f6f4c('0x8')],'defaultValue':0x0,'comment':_0x2f6f4c('0x13')},'dialAMDInitialSilence':{'type':Sequelize[_0x2f6f4c('0x10')](0x9)[_0x2f6f4c('0x5')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0x2f6f4c('0x10')](0x9)[_0x2f6f4c('0x5')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x2f6f4c('0x0')},'dialAMDAfterGreetingSilence':{'type':Sequelize['INTEGER'](0x9)[_0x2f6f4c('0x5')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x2f6f4c('0x24')},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Total\x20Analysis\x20Time'},'dialAMDMinWordLength':{'type':Sequelize[_0x2f6f4c('0x10')](0x9)['UNSIGNED'],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':Sequelize['INTEGER'](0x9)[_0x2f6f4c('0x5')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x2f6f4c('0x15')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x2f6f4c('0x10')](0x9)[_0x2f6f4c('0x5')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0x2f6f4c('0x14')},'dialAMDSilenceThreshold':{'type':Sequelize[_0x2f6f4c('0x10')](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x2f6f4c('0x12')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x2f6f4c('0x10')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x2f6f4c('0x1d')},'dialOrderByScheduledAt':{'type':Sequelize[_0x2f6f4c('0x11')](_0x2f6f4c('0x21'),'ASC'),'defaultValue':'DESC'},'dialPrefix':{'type':Sequelize[_0x2f6f4c('0x2')],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x2f6f4c('0xc')},'dialCutDigit':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x2f6f4c('0x7')},'dialNoSuchNumberMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x2f6f4c('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2f6f4c('0x22')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x2f6f4c('0x10')](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2f6f4c('0x1a')},'dialDropMaxRetry':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2f6f4c('0x16')},'dialDropRetryFrequency':{'type':Sequelize[_0x2f6f4c('0x10')](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2f6f4c('0xb')},'dialAbandonedMaxRetry':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2f6f4c('0xe')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x2f6f4c('0x10')](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2f6f4c('0x20')},'dialMachineMaxRetry':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Machine\x20Retry\x20(min:1,\x20max:999)'},'dialMachineRetryFrequency':{'type':Sequelize[_0x2f6f4c('0x10')](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2f6f4c('0x1')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x2f6f4c('0x10')](0x3)[_0x2f6f4c('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2f6f4c('0x19')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x2f6f4c('0x10')](0x5)[_0x2f6f4c('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'}}; \ No newline at end of file +const a41_0x1144=['#Busy\x20Retry\x20(min:1,\x20max:999)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','ivr','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AgentReject\x20Retry\x20(min:1,\x20max:999)','always','INTEGER','#Machine\x20Retry\x20(min:1,\x20max:999)','ENUM','BOOLEAN','exports','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Maximum\x20Number\x20Of\x20Words','UNSIGNED','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','Active/Disactive\x20Campaign','#AMD\x20Maximum\x20Word\x20Length','#AMD\x20Between\x20Words\x20Silence','Max\x20200\x20calls.','never','DESC','#Drop\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Greeting','sequelize','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','Cut\x20Digit\x20(min:1,\x20max:15)','name','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','#Congestion\x20Retry\x20(min:1,\x20max:999)','STRING','#AMD\x20After\x20Greeting\x20Silence'];(function(_0x101d27,_0x1144ae){const _0x1bc609=function(_0x348126){while(--_0x348126){_0x101d27['push'](_0x101d27['shift']());}};_0x1bc609(++_0x1144ae);}(a41_0x1144,0x172));const a41_0x1bc6=function(_0x101d27,_0x1144ae){_0x101d27=_0x101d27-0x0;let _0x1bc609=a41_0x1144[_0x101d27];return _0x1bc609;};const _0x44b2b7=a41_0x1bc6;'use strict';const Sequelize=require(_0x44b2b7('0x1'));module[_0x44b2b7('0x1a')]={'name':{'type':Sequelize[_0x44b2b7('0x8')],'unique':_0x44b2b7('0x5'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0x44b2b7('0x18')](_0x44b2b7('0xc')),'allowNull':![],'defaultValue':_0x44b2b7('0xc')},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x44b2b7('0x1f')},'limitCalls':{'type':Sequelize['INTEGER'](0x4)[_0x44b2b7('0x1d')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0x44b2b7('0x22')},'dialOriginateCallerIdName':{'type':Sequelize[_0x44b2b7('0x8')]},'dialOriginateCallerIdNumber':{'type':Sequelize['STRING']},'dialOriginateTimeout':{'type':Sequelize['INTEGER'](0x3)[_0x44b2b7('0x1d')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x44b2b7('0x10')},'dialCongestionMaxRetry':{'type':Sequelize[_0x44b2b7('0x16')](0x3)[_0x44b2b7('0x1d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x44b2b7('0x7')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x44b2b7('0x16')](0x5)[_0x44b2b7('0x1d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x44b2b7('0x2')},'dialBusyMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x44b2b7('0xa')},'dialBusyRetryFrequency':{'type':Sequelize[_0x44b2b7('0x16')](0x5)[_0x44b2b7('0x1d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'comment':_0x44b2b7('0x3')},'dialNoAnswerRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x44b2b7('0x1d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x44b2b7('0x13')},'dialGlobalMaxRetry':{'type':Sequelize[_0x44b2b7('0x16')](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x44b2b7('0x6')},'dialTimezone':{'type':Sequelize[_0x44b2b7('0x8')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x44b2b7('0x8')],'defaultValue':'07:00-22:00,*,*,*'},'dialCheckDuplicateType':{'type':Sequelize[_0x44b2b7('0x18')](_0x44b2b7('0x15'),_0x44b2b7('0x23'),'onlyIfOpen'),'defaultValue':_0x44b2b7('0x15')},'dialAMDActive':{'type':Sequelize[_0x44b2b7('0x19')],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'},'dialAMDInitialSilence':{'type':Sequelize[_0x44b2b7('0x16')](0x9)[_0x44b2b7('0x1d')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0x44b2b7('0x16')](0x9)[_0x44b2b7('0x1d')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x44b2b7('0x0')},'dialAMDAfterGreetingSilence':{'type':Sequelize['INTEGER'](0x9)[_0x44b2b7('0x1d')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x44b2b7('0x9')},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Total\x20Analysis\x20Time'},'dialAMDMinWordLength':{'type':Sequelize[_0x44b2b7('0x16')](0x9)[_0x44b2b7('0x1d')],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x44b2b7('0x16')](0x9)[_0x44b2b7('0x1d')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x44b2b7('0x21')},'dialAMDMaximumNumberOfWords':{'type':Sequelize['INTEGER'](0x9)[_0x44b2b7('0x1d')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0x44b2b7('0x1c')},'dialAMDSilenceThreshold':{'type':Sequelize[_0x44b2b7('0x16')](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x44b2b7('0x11')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x44b2b7('0x16')](0x9)[_0x44b2b7('0x1d')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x44b2b7('0x20')},'dialOrderByScheduledAt':{'type':Sequelize[_0x44b2b7('0x18')](_0x44b2b7('0x24'),'ASC'),'defaultValue':_0x44b2b7('0x24')},'dialPrefix':{'type':Sequelize[_0x44b2b7('0x8')],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x44b2b7('0x16')](0x3)[_0x44b2b7('0x1d')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x44b2b7('0x1e')},'dialCutDigit':{'type':Sequelize[_0x44b2b7('0x16')](0x3)[_0x44b2b7('0x1d')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x44b2b7('0x4')},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0x44b2b7('0x16')](0x3)[_0x44b2b7('0x1d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x44b2b7('0xb')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x44b2b7('0x16')](0x5)[_0x44b2b7('0x1d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':Sequelize[_0x44b2b7('0x16')](0x3)[_0x44b2b7('0x1d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x44b2b7('0x25')},'dialDropRetryFrequency':{'type':Sequelize[_0x44b2b7('0x16')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x44b2b7('0xd')},'dialAbandonedMaxRetry':{'type':Sequelize[_0x44b2b7('0x16')](0x3)[_0x44b2b7('0x1d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x44b2b7('0x12')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x44b2b7('0x16')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x44b2b7('0xe')},'dialMachineMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x44b2b7('0x1d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x44b2b7('0x17')},'dialMachineRetryFrequency':{'type':Sequelize[_0x44b2b7('0x16')](0x5)[_0x44b2b7('0x1d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x44b2b7('0xf')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x44b2b7('0x16')](0x3)[_0x44b2b7('0x1d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x44b2b7('0x14')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x44b2b7('0x16')](0x5)[_0x44b2b7('0x1d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x44b2b7('0x1b')}}; \ No newline at end of file diff --git a/server/api/campaign/campaign.controller.js b/server/api/campaign/campaign.controller.js index 328d529..2b5cc36 100644 --- a/server/api/campaign/campaign.controller.js +++ b/server/api/campaign/campaign.controller.js @@ -1 +1 @@ -const a42_0x4759=['rawAttributes','index','json','catch','cm_hopper_final','VIRTUAL','CampaignId','ids','attributes','limit','filters','../../config/logger','body','fieldName','undefined','length','createdAt','merge','filter','ListId','type','sendStatus','name','create','CmHopperHistory','addBlackLists','status','autoAssociation','get','cm_hopper','findAll','insert','Unable\x20to\x20retrieve\x20the\x20current\x20user','CampaignId\x20=\x20?','offset','fromQuery','query','getHoppers','deletedAt\x20IS\x20NULL','push','getBlackLists','user','intersection','dialCheckDuplicateType','set','removeLists','field','rows','role','userProfileId','all','CmListId','CmList','map','include','IvrCampaigns','getHopperHistories','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','removeBlackLists','keys','always','phone\x20IS\x20NOT\x20NULL','Content-Range','sort','../../mysqldb','params','CmHopper','nolimit','ContactId','CmHopperFinal','includeAll','omit','send','count','cm_contacts','onlyIfOpen','from','getLists','phone\x20NOT\x20IN\x20(?)','sequelize','addLists','squel','fields','then','ListId\x20=\x20?','scheduledAt','updatedAt','../../components/parsers/qs','select','CmHopperBlack','UserProfileSection','like','update','destroy','phone','pick','UserProfileResource','findOne','COALESCE(phone,\x27\x27)','order','api','options','into','NOW()','where','error','model','Campaign','toString'];(function(_0x4d1e49,_0x475956){const _0x38e9c=function(_0x305222){while(--_0x305222){_0x4d1e49['push'](_0x4d1e49['shift']());}};_0x38e9c(++_0x475956);}(a42_0x4759,0x128));const a42_0x38e9=function(_0x4d1e49,_0x475956){_0x4d1e49=_0x4d1e49-0x0;let _0x38e9c=a42_0x4759[_0x4d1e49];return _0x38e9c;};const _0x52b8ff=a42_0x38e9;'use strict';const _=require('lodash'),squel=require(_0x52b8ff('0x3')),qs=require(_0x52b8ff('0x9')),logger=require(_0x52b8ff('0x2a'))(_0x52b8ff('0x16')),db=require(_0x52b8ff('0x5f'))['db'],{Op}=require('sequelize');function respondWithStatusCode(_0x305222,_0x5ad912){return _0x5ad912=_0x5ad912||0xcc,function(_0x101d31){const _0x2895a4=a42_0x38e9;if(_0x101d31)return _0x305222['sendStatus'](_0x5ad912);return _0x305222[_0x2895a4('0x39')](_0x5ad912)['end']();};}function respondWithResult(_0x57c27c,_0x6742d9){return _0x6742d9=_0x6742d9||0xc8,function(_0x1e8bd1){const _0x257f16=a42_0x38e9;if(_0x1e8bd1)return _0x57c27c[_0x257f16('0x39')](_0x6742d9)[_0x257f16('0x21')](_0x1e8bd1);};}function respondWithFilteredResult(_0x41b851,_0x28a55a){return function(_0x524e19){const _0x2f3e22=a42_0x38e9;if(_0x524e19){const _0x262b1c=_0x524e19[_0x2f3e22('0x68')],_0x120d52=_0x28a55a[_0x2f3e22('0x41')];let _0x3c0888=_0x28a55a[_0x2f3e22('0x41')]+_0x28a55a['limit'],_0x19a084;return _0x3c0888>=_0x262b1c?(_0x3c0888=_0x262b1c,_0x19a084=0xc8):_0x19a084=0xce,_0x41b851[_0x2f3e22('0x39')](_0x19a084),_0x41b851[_0x2f3e22('0x4b')](_0x2f3e22('0x5d'),_0x120d52+'-'+_0x3c0888+'/'+_0x262b1c)['json'](_0x524e19);}return null;};}function saveUpdates(_0xf518b9){return function(_0x1a1ab3){const _0x8f6a4d=a42_0x38e9;if(_0x1a1ab3)return _0x1a1ab3[_0x8f6a4d('0xe')](_0xf518b9)[_0x8f6a4d('0x5')](function(_0x15f429){return _0x15f429;});return null;};}function removeEntity(_0x3daf43){return function(_0x277c68){const _0x3f7650=a42_0x38e9;if(_0x277c68)return _0x277c68['destroy']()[_0x3f7650('0x5')](function(){const _0x40d87f=_0x3f7650,_0x54d162=_0x277c68[_0x40d87f('0x3b')]({'plain':!![]}),_0xc446bd='IvrCampaigns';return db[_0x40d87f('0x12')][_0x40d87f('0xf')]({'where':{'type':_0xc446bd,'resourceId':_0x54d162['id']}})[_0x40d87f('0x5')](function(){return _0x277c68;});})[_0x3f7650('0x5')](function(){const _0x100a2e=_0x3f7650;_0x3daf43[_0x100a2e('0x39')](0xcc)['end']();});};}function handleEntityNotFound(_0x1f3110){return function(_0x945a2){const _0x874235=a42_0x38e9;return!_0x945a2&&_0x1f3110[_0x874235('0x34')](0x194),_0x945a2;};}function handleError(_0x3ffb3e,_0x47acc9){return _0x47acc9=_0x47acc9||0x1f4,function(_0x177b34){const _0x43ed21=a42_0x38e9;logger[_0x43ed21('0x1b')](_0x177b34['stack']),_0x177b34[_0x43ed21('0x35')]&&delete _0x177b34[_0x43ed21('0x35')],_0x3ffb3e[_0x43ed21('0x39')](_0x47acc9)[_0x43ed21('0x67')](_0x177b34);};}exports[_0x52b8ff('0x20')]=function(_0x424d13,_0x4a2ad7){const _0x2d2420=_0x52b8ff;let _0x43d022={};const _0x4536bf={},_0x1a28e3={'count':0x0,'rows':[]},_0x487f0c=_['map'](db[_0x2d2420('0x1d')][_0x2d2420('0x1f')],function(_0x106ebc){const _0x3077ea=_0x2d2420;return{'name':_0x106ebc[_0x3077ea('0x2c')],'type':_0x106ebc[_0x3077ea('0x33')]['key']};});_0x4536bf[_0x2d2420('0x1c')]=_[_0x2d2420('0x54')](_0x487f0c,_0x2d2420('0x35')),_0x4536bf[_0x2d2420('0x43')]=_[_0x2d2420('0x5a')](_0x424d13[_0x2d2420('0x43')]),_0x4536bf[_0x2d2420('0x29')]=_[_0x2d2420('0x49')](_0x4536bf[_0x2d2420('0x1c')],_0x4536bf[_0x2d2420('0x43')]),_0x43d022[_0x2d2420('0x27')]=_[_0x2d2420('0x49')](_0x4536bf[_0x2d2420('0x1c')],qs[_0x2d2420('0x4')](_0x424d13['query'][_0x2d2420('0x4')])),_0x43d022['attributes']=_0x43d022[_0x2d2420('0x27')][_0x2d2420('0x2e')]?_0x43d022[_0x2d2420('0x27')]:_0x4536bf[_0x2d2420('0x1c')];typeof _0x424d13[_0x2d2420('0x43')][_0x2d2420('0x62')]===_0x2d2420('0x2d')&&(_0x43d022['limit']=qs[_0x2d2420('0x28')](_0x424d13[_0x2d2420('0x43')][_0x2d2420('0x28')]),_0x43d022[_0x2d2420('0x41')]=qs[_0x2d2420('0x41')](_0x424d13[_0x2d2420('0x43')][_0x2d2420('0x41')]));_0x43d022[_0x2d2420('0x15')]=qs[_0x2d2420('0x5e')](_0x424d13['query'][_0x2d2420('0x5e')]),_0x43d022[_0x2d2420('0x1a')]=qs['filters'](_['pick'](_0x424d13[_0x2d2420('0x43')],_0x4536bf[_0x2d2420('0x29')]),_0x487f0c);_0x424d13[_0x2d2420('0x43')][_0x2d2420('0x31')]&&(_0x43d022[_0x2d2420('0x1a')]=_[_0x2d2420('0x30')](_0x43d022[_0x2d2420('0x1a')],{[Op['or']]:_[_0x2d2420('0x54')](_0x487f0c,function(_0x3efd8e){const _0x55b946=_0x2d2420;if(_0x3efd8e[_0x55b946('0x33')]!==_0x55b946('0x24')){const _0x48fc30={};return _0x48fc30[_0x3efd8e['name']]={[Op[_0x55b946('0xd')]]:'%'+_0x424d13['query']['filter']+'%'},_0x48fc30;}})}));_0x43d022=_[_0x2d2420('0x30')]({},_0x43d022,_0x424d13['options']);const _0x3c79f1={'where':_0x43d022['where']};return db['Campaign'][_0x2d2420('0x68')](_0x3c79f1)[_0x2d2420('0x5')](function(_0x57ac86){const _0x5e499d=_0x2d2420;return _0x1a28e3['count']=_0x57ac86,_0x424d13[_0x5e499d('0x43')][_0x5e499d('0x65')]&&(_0x43d022['include']=[{'all':!![]}]),db[_0x5e499d('0x1d')]['findAll'](_0x43d022);})[_0x2d2420('0x5')](function(_0x1cbf85){const _0x3520a3=_0x2d2420;return _0x1a28e3[_0x3520a3('0x4e')]=_0x1cbf85,_0x1a28e3;})[_0x2d2420('0x5')](respondWithFilteredResult(_0x4a2ad7,_0x43d022))[_0x2d2420('0x22')](handleError(_0x4a2ad7,null));},exports['show']=function(_0x393fb3,_0xd314f){const _0xce1cda=_0x52b8ff;let _0x3fb1e7={'raw':![],'where':{'id':_0x393fb3[_0xce1cda('0x60')]['id']}};const _0x507805={};return _0x507805[_0xce1cda('0x1c')]=_[_0xce1cda('0x5a')](db[_0xce1cda('0x1d')][_0xce1cda('0x1f')]),_0x507805[_0xce1cda('0x43')]=_[_0xce1cda('0x5a')](_0x393fb3[_0xce1cda('0x43')]),_0x507805[_0xce1cda('0x29')]=_[_0xce1cda('0x49')](_0x507805[_0xce1cda('0x1c')],_0x507805[_0xce1cda('0x43')]),_0x3fb1e7['attributes']=_[_0xce1cda('0x49')](_0x507805[_0xce1cda('0x1c')],qs[_0xce1cda('0x4')](_0x393fb3['query']['fields'])),_0x3fb1e7[_0xce1cda('0x27')]=_0x3fb1e7[_0xce1cda('0x27')][_0xce1cda('0x2e')]?_0x3fb1e7[_0xce1cda('0x27')]:_0x507805['model'],_0x393fb3[_0xce1cda('0x43')]['includeAll']&&(_0x3fb1e7[_0xce1cda('0x55')]=[{'all':!![]}]),_0x3fb1e7=_[_0xce1cda('0x30')]({},_0x3fb1e7,_0x393fb3['options']),db[_0xce1cda('0x1d')][_0xce1cda('0x13')](_0x3fb1e7)[_0xce1cda('0x5')](handleEntityNotFound(_0xd314f,null))['then'](respondWithResult(_0xd314f,null))[_0xce1cda('0x22')](handleError(_0xd314f,null));},exports[_0x52b8ff('0x36')]=function(_0x138f7d,_0x4cdc36){const _0x3d46cc=_0x52b8ff;return db[_0x3d46cc('0x1d')][_0x3d46cc('0x36')](_0x138f7d[_0x3d46cc('0x2b')],{})['then'](function(_0x1092a9){const _0x4509e3=_0x3d46cc,_0x3e74af=_0x138f7d[_0x4509e3('0x48')][_0x4509e3('0x3b')]({'plain':!![]});if(!_0x3e74af)throw new Error(_0x4509e3('0x3f'));if(_0x3e74af[_0x4509e3('0x4f')]==='user'){const _0x616c0a=_0x1092a9['get']({'plain':!![]}),_0x127735=_0x4509e3('0x56');return db[_0x4509e3('0xc')][_0x4509e3('0x13')]({'where':{'name':_0x127735,'userProfileId':_0x3e74af[_0x4509e3('0x50')]},'raw':!![]})[_0x4509e3('0x5')](function(_0x516522){const _0x25ddd4=_0x4509e3;return _0x516522&&_0x516522[_0x25ddd4('0x3a')]===0x0?db[_0x25ddd4('0x12')][_0x25ddd4('0x36')]({'name':_0x616c0a[_0x25ddd4('0x35')],'resourceId':_0x616c0a['id'],'type':_0x516522[_0x25ddd4('0x35')],'sectionId':_0x516522['id']},{})['then'](function(){return _0x1092a9;}):_0x1092a9;})[_0x4509e3('0x22')](function(_0xfec420){const _0x26fc65=_0x4509e3;logger[_0x26fc65('0x1b')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xfec420);throw _0xfec420;});}return _0x1092a9;})[_0x3d46cc('0x5')](respondWithResult(_0x4cdc36,0xc9))['catch'](handleError(_0x4cdc36,null));},exports['clone']=function(_0x1f6210,_0x405738){const _0x460add=_0x52b8ff;let _0x4c4a64={'where':{'id':_0x1f6210[_0x460add('0x60')]['id']}};const _0x389c09={};return _0x389c09[_0x460add('0x1c')]=_[_0x460add('0x5a')](db[_0x460add('0x1d')][_0x460add('0x1f')]),_0x4c4a64[_0x460add('0x27')]=_[_0x460add('0x49')](_0x389c09['model'],qs[_0x460add('0x4')](_0x1f6210[_0x460add('0x43')][_0x460add('0x4')])),_0x4c4a64[_0x460add('0x27')]=_0x4c4a64[_0x460add('0x27')][_0x460add('0x2e')]?_0x4c4a64[_0x460add('0x27')]:_0x389c09[_0x460add('0x1c')],_0x1f6210['query'][_0x460add('0x65')]&&(_0x4c4a64[_0x460add('0x55')]=[{'all':!![]}]),_0x4c4a64=_[_0x460add('0x30')]({},_0x4c4a64,_0x1f6210[_0x460add('0x17')]),db[_0x460add('0x1d')][_0x460add('0x13')](_0x4c4a64)['then'](handleEntityNotFound(_0x405738,null))[_0x460add('0x5')](function(_0x4d4bb7){const _0x298c99=_0x460add;if(_0x4d4bb7){let _0xce6bbf=_0x4d4bb7['get']({'plain':!![]});return _0xce6bbf=qs[_0x298c99('0x66')](_0xce6bbf,['id','createdAt',_0x298c99('0x8')]),_0x1f6210[_0x298c99('0x2b')]=_['omit'](_0x1f6210[_0x298c99('0x2b')],['id',_0x298c99('0x2f'),'updatedAt']),db[_0x298c99('0x1d')]['create'](_[_0x298c99('0x30')](_0xce6bbf,_0x1f6210[_0x298c99('0x2b')]),{'include':_0x1f6210[_0x298c99('0x43')]['includeAll']?[{'all':!![]}]:undefined})[_0x298c99('0x5')](function(_0x4552a5){const _0x55f21b=_0x298c99,_0x1ad1f9=_0x1f6210[_0x55f21b('0x48')][_0x55f21b('0x3b')]({'plain':!![]});if(!_0x1ad1f9)throw new Error(_0x55f21b('0x3f'));if(_0x1ad1f9[_0x55f21b('0x4f')]==='user'){const _0x217c0f=_0x4552a5[_0x55f21b('0x3b')]({'plain':!![]}),_0xf00a12=_0x55f21b('0x56');return db[_0x55f21b('0xc')][_0x55f21b('0x13')]({'where':{'name':_0xf00a12,'userProfileId':_0x1ad1f9[_0x55f21b('0x50')]},'raw':!![]})[_0x55f21b('0x5')](function(_0x4da30e){const _0x3c2b61=_0x55f21b;return _0x4da30e&&_0x4da30e['autoAssociation']===0x0?db[_0x3c2b61('0x12')][_0x3c2b61('0x36')]({'name':_0x217c0f[_0x3c2b61('0x35')],'resourceId':_0x217c0f['id'],'type':_0x4da30e[_0x3c2b61('0x35')],'sectionId':_0x4da30e['id']},{})['then'](function(){return _0x4552a5;}):_0x4552a5;})[_0x55f21b('0x22')](function(_0x53ae37){const _0x473a30=_0x55f21b;logger['error'](_0x473a30('0x58'),_0x53ae37);throw _0x53ae37;});}return _0x4552a5;});}})[_0x460add('0x5')](respondWithResult(_0x405738,0xc9))[_0x460add('0x22')](handleError(_0x405738,null));},exports[_0x52b8ff('0xe')]=function(_0x327987,_0x470204){const _0x5118eb=_0x52b8ff;return _0x327987[_0x5118eb('0x2b')]['id']&&delete _0x327987[_0x5118eb('0x2b')]['id'],db[_0x5118eb('0x1d')][_0x5118eb('0x13')]({'where':{'id':_0x327987[_0x5118eb('0x60')]['id']}})[_0x5118eb('0x5')](handleEntityNotFound(_0x470204,null))[_0x5118eb('0x5')](saveUpdates(_0x327987[_0x5118eb('0x2b')],null))[_0x5118eb('0x5')](respondWithResult(_0x470204,null))[_0x5118eb('0x22')](handleError(_0x470204,null));},exports['destroy']=function(_0x5ec664,_0xd73e49){const _0x2d2541=_0x52b8ff;return db['Campaign'][_0x2d2541('0x13')]({'where':{'id':_0x5ec664[_0x2d2541('0x60')]['id']}})[_0x2d2541('0x5')](handleEntityNotFound(_0xd73e49,null))[_0x2d2541('0x5')](removeEntity(_0xd73e49,null))['catch'](handleError(_0xd73e49,null));},exports[_0x52b8ff('0x44')]=function(_0x2846cf,_0x108c3e){const _0x2ec093=_0x52b8ff;let _0xa75839={'raw':!![],'where':{}};const _0x5e3efa={},_0x2cf980={'count':0x0,'rows':[]};return db[_0x2ec093('0x1d')][_0x2ec093('0x13')]({'where':{'id':_0x2846cf['params']['id']}})[_0x2ec093('0x5')](handleEntityNotFound(_0x108c3e,null))[_0x2ec093('0x5')](function(_0x373f58){const _0x3ed6ad=_0x2ec093;if(_0x373f58)return _0x5e3efa[_0x3ed6ad('0x1c')]=_[_0x3ed6ad('0x5a')](db[_0x3ed6ad('0x61')][_0x3ed6ad('0x1f')]),_0x5e3efa['query']=_['keys'](_0x2846cf[_0x3ed6ad('0x43')]),_0x5e3efa[_0x3ed6ad('0x29')]=_[_0x3ed6ad('0x49')](_0x5e3efa[_0x3ed6ad('0x1c')],_0x5e3efa[_0x3ed6ad('0x43')]),_0xa75839[_0x3ed6ad('0x27')]=_[_0x3ed6ad('0x49')](_0x5e3efa[_0x3ed6ad('0x1c')],qs[_0x3ed6ad('0x4')](_0x2846cf[_0x3ed6ad('0x43')]['fields'])),_0xa75839[_0x3ed6ad('0x27')]=_0xa75839['attributes'][_0x3ed6ad('0x2e')]?_0xa75839[_0x3ed6ad('0x27')]:_0x5e3efa['model'],typeof _0x2846cf[_0x3ed6ad('0x43')][_0x3ed6ad('0x62')]===_0x3ed6ad('0x2d')&&(_0xa75839[_0x3ed6ad('0x28')]=qs[_0x3ed6ad('0x28')](_0x2846cf[_0x3ed6ad('0x43')][_0x3ed6ad('0x28')]),_0xa75839[_0x3ed6ad('0x41')]=qs['offset'](_0x2846cf[_0x3ed6ad('0x43')][_0x3ed6ad('0x41')])),_0xa75839[_0x3ed6ad('0x15')]=qs[_0x3ed6ad('0x5e')](_0x2846cf[_0x3ed6ad('0x43')][_0x3ed6ad('0x5e')]),_0xa75839[_0x3ed6ad('0x1a')]=qs[_0x3ed6ad('0x29')](_['pick'](_0x2846cf[_0x3ed6ad('0x43')],_0x5e3efa['filters'])),_0xa75839[_0x3ed6ad('0x1a')]['CampaignId']=_0x373f58['id'],_0x2846cf['query'][_0x3ed6ad('0x31')]&&(_0xa75839[_0x3ed6ad('0x1a')]=_[_0x3ed6ad('0x30')](_0xa75839[_0x3ed6ad('0x1a')],{[Op['or']]:_[_0x3ed6ad('0x54')](_0xa75839[_0x3ed6ad('0x27')],function(_0x29259f){const _0x48ed30=_0x3ed6ad,_0x4a45d7={};return _0x4a45d7[_0x29259f]={[Op[_0x48ed30('0xd')]]:'%'+_0x2846cf['query'][_0x48ed30('0x31')]+'%'},_0x4a45d7;})})),_0xa75839=_[_0x3ed6ad('0x30')]({},_0xa75839,_0x2846cf[_0x3ed6ad('0x17')]),db[_0x3ed6ad('0x61')]['count']({'where':_0xa75839[_0x3ed6ad('0x1a')]})['then'](function(_0x517edd){const _0xb9308b=_0x3ed6ad;return _0x2cf980[_0xb9308b('0x68')]=_0x517edd,_0x2846cf[_0xb9308b('0x43')][_0xb9308b('0x65')]&&(_0xa75839['include']=[{'all':!![]}]),db[_0xb9308b('0x61')][_0xb9308b('0x3d')](_0xa75839);})[_0x3ed6ad('0x5')](function(_0x24f211){const _0x2d3316=_0x3ed6ad;return _0x2cf980[_0x2d3316('0x4e')]=_0x24f211,_0x2cf980;});})[_0x2ec093('0x5')](respondWithFilteredResult(_0x108c3e,_0xa75839))[_0x2ec093('0x22')](handleError(_0x108c3e,null));},exports[_0x52b8ff('0x57')]=function(_0x2726d8,_0x44724b){const _0x5d403d=_0x52b8ff;let _0x16b708={'raw':!![],'where':{}};const _0x59e1c4={},_0x23f0a2={'count':0x0,'rows':[]};return db[_0x5d403d('0x1d')]['findOne']({'where':{'id':_0x2726d8[_0x5d403d('0x60')]['id']}})['then'](handleEntityNotFound(_0x44724b,null))['then'](function(_0x456d31){const _0x1964b9=_0x5d403d;if(_0x456d31)return _0x59e1c4[_0x1964b9('0x1c')]=_[_0x1964b9('0x5a')](db['CmHopperHistory'][_0x1964b9('0x1f')]),_0x59e1c4[_0x1964b9('0x43')]=_[_0x1964b9('0x5a')](_0x2726d8[_0x1964b9('0x43')]),_0x59e1c4['filters']=_[_0x1964b9('0x49')](_0x59e1c4[_0x1964b9('0x1c')],_0x59e1c4['query']),_0x16b708[_0x1964b9('0x27')]=_[_0x1964b9('0x49')](_0x59e1c4[_0x1964b9('0x1c')],qs[_0x1964b9('0x4')](_0x2726d8[_0x1964b9('0x43')][_0x1964b9('0x4')])),_0x16b708[_0x1964b9('0x27')]=_0x16b708['attributes'][_0x1964b9('0x2e')]?_0x16b708['attributes']:_0x59e1c4[_0x1964b9('0x1c')],typeof _0x2726d8['query'][_0x1964b9('0x62')]===_0x1964b9('0x2d')&&(_0x16b708[_0x1964b9('0x28')]=qs[_0x1964b9('0x28')](_0x2726d8[_0x1964b9('0x43')]['limit']),_0x16b708['offset']=qs[_0x1964b9('0x41')](_0x2726d8[_0x1964b9('0x43')]['offset'])),_0x16b708[_0x1964b9('0x15')]=qs[_0x1964b9('0x5e')](_0x2726d8[_0x1964b9('0x43')][_0x1964b9('0x5e')]),_0x16b708['where']=qs[_0x1964b9('0x29')](_['pick'](_0x2726d8[_0x1964b9('0x43')],_0x59e1c4['filters'])),_0x16b708[_0x1964b9('0x1a')][_0x1964b9('0x25')]=_0x456d31['id'],_0x2726d8[_0x1964b9('0x43')]['filter']&&(_0x16b708[_0x1964b9('0x1a')]=_[_0x1964b9('0x30')](_0x16b708[_0x1964b9('0x1a')],{[Op['or']]:_[_0x1964b9('0x54')](_0x16b708[_0x1964b9('0x27')],function(_0x3b5a7d){const _0x14193a=_0x1964b9,_0x5623f3={};return _0x5623f3[_0x3b5a7d]={[Op[_0x14193a('0xd')]]:'%'+_0x2726d8[_0x14193a('0x43')]['filter']+'%'},_0x5623f3;})})),_0x16b708=_[_0x1964b9('0x30')]({},_0x16b708,_0x2726d8[_0x1964b9('0x17')]),db[_0x1964b9('0x37')][_0x1964b9('0x68')]({'where':_0x16b708[_0x1964b9('0x1a')]})['then'](function(_0x4c471a){const _0x51aac6=_0x1964b9;return _0x23f0a2[_0x51aac6('0x68')]=_0x4c471a,_0x2726d8[_0x51aac6('0x43')][_0x51aac6('0x65')]&&(_0x16b708['include']=[{'all':!![]}]),db[_0x51aac6('0x37')]['findAll'](_0x16b708);})[_0x1964b9('0x5')](function(_0x35fb0b){const _0x51873c=_0x1964b9;return _0x23f0a2[_0x51873c('0x4e')]=_0x35fb0b,_0x23f0a2;});})['then'](respondWithFilteredResult(_0x44724b,_0x16b708))['catch'](handleError(_0x44724b,null));},exports['getHopperFinals']=function(_0x62e57e,_0x598600){const _0x1c0f8c=_0x52b8ff;let _0x2b2420={'raw':!![],'where':{}};const _0x507c3c={},_0x3f0ae4={'count':0x0,'rows':[]};return db[_0x1c0f8c('0x1d')]['findOne']({'where':{'id':_0x62e57e['params']['id']}})[_0x1c0f8c('0x5')](handleEntityNotFound(_0x598600,null))[_0x1c0f8c('0x5')](function(_0x379a59){const _0x14c610=_0x1c0f8c;if(_0x379a59)return _0x507c3c[_0x14c610('0x1c')]=_[_0x14c610('0x5a')](db[_0x14c610('0x64')][_0x14c610('0x1f')]),_0x507c3c[_0x14c610('0x43')]=_[_0x14c610('0x5a')](_0x62e57e[_0x14c610('0x43')]),_0x507c3c[_0x14c610('0x29')]=_[_0x14c610('0x49')](_0x507c3c['model'],_0x507c3c[_0x14c610('0x43')]),_0x2b2420[_0x14c610('0x27')]=_[_0x14c610('0x49')](_0x507c3c[_0x14c610('0x1c')],qs['fields'](_0x62e57e[_0x14c610('0x43')][_0x14c610('0x4')])),_0x2b2420[_0x14c610('0x27')]=_0x2b2420['attributes']['length']?_0x2b2420[_0x14c610('0x27')]:_0x507c3c[_0x14c610('0x1c')],typeof _0x62e57e[_0x14c610('0x43')][_0x14c610('0x62')]==='undefined'&&(_0x2b2420['limit']=qs['limit'](_0x62e57e[_0x14c610('0x43')][_0x14c610('0x28')]),_0x2b2420[_0x14c610('0x41')]=qs[_0x14c610('0x41')](_0x62e57e['query'][_0x14c610('0x41')])),_0x2b2420[_0x14c610('0x15')]=qs[_0x14c610('0x5e')](_0x62e57e['query']['sort']),_0x2b2420[_0x14c610('0x1a')]=qs[_0x14c610('0x29')](_[_0x14c610('0x11')](_0x62e57e['query'],_0x507c3c[_0x14c610('0x29')])),_0x2b2420[_0x14c610('0x1a')][_0x14c610('0x25')]=_0x379a59['id'],_0x62e57e[_0x14c610('0x43')][_0x14c610('0x31')]&&(_0x2b2420[_0x14c610('0x1a')]=_[_0x14c610('0x30')](_0x2b2420[_0x14c610('0x1a')],{[Op['or']]:_[_0x14c610('0x54')](_0x2b2420['attributes'],function(_0xb291e4){const _0x471545=_0x14c610,_0x4ea053={};return _0x4ea053[_0xb291e4]={[Op['like']]:'%'+_0x62e57e[_0x471545('0x43')][_0x471545('0x31')]+'%'},_0x4ea053;})})),_0x2b2420=_['merge']({},_0x2b2420,_0x62e57e[_0x14c610('0x17')]),db['CmHopperFinal'][_0x14c610('0x68')]({'where':_0x2b2420[_0x14c610('0x1a')]})[_0x14c610('0x5')](function(_0x9ce014){const _0x436827=_0x14c610;return _0x3f0ae4[_0x436827('0x68')]=_0x9ce014,_0x62e57e[_0x436827('0x43')]['includeAll']&&(_0x2b2420[_0x436827('0x55')]=[{'all':!![]}]),db[_0x436827('0x64')]['findAll'](_0x2b2420);})[_0x14c610('0x5')](function(_0x25cea4){const _0xd819b7=_0x14c610;return _0x3f0ae4[_0xd819b7('0x4e')]=_0x25cea4,_0x3f0ae4;});})[_0x1c0f8c('0x5')](respondWithFilteredResult(_0x598600,_0x2b2420))[_0x1c0f8c('0x22')](handleError(_0x598600,null));},exports['getHopperBlacks']=function(_0x500671,_0x476c64){const _0x25dc76=_0x52b8ff;let _0x4d6bf8={'raw':!![],'where':{}};const _0x5578d4={},_0x2eeeb5={'count':0x0,'rows':[]};return db[_0x25dc76('0x1d')]['findOne']({'where':{'id':_0x500671['params']['id']}})['then'](handleEntityNotFound(_0x476c64,null))[_0x25dc76('0x5')](function(_0x317f59){const _0x174400=_0x25dc76;if(_0x317f59)return _0x5578d4[_0x174400('0x1c')]=_['keys'](db['CmHopperBlack'][_0x174400('0x1f')]),_0x5578d4[_0x174400('0x43')]=_['keys'](_0x500671[_0x174400('0x43')]),_0x5578d4[_0x174400('0x29')]=_[_0x174400('0x49')](_0x5578d4[_0x174400('0x1c')],_0x5578d4[_0x174400('0x43')]),_0x4d6bf8[_0x174400('0x27')]=_[_0x174400('0x49')](_0x5578d4[_0x174400('0x1c')],qs[_0x174400('0x4')](_0x500671['query']['fields'])),_0x4d6bf8['attributes']=_0x4d6bf8[_0x174400('0x27')][_0x174400('0x2e')]?_0x4d6bf8[_0x174400('0x27')]:_0x5578d4[_0x174400('0x1c')],typeof _0x500671['query']['nolimit']===_0x174400('0x2d')&&(_0x4d6bf8[_0x174400('0x28')]=qs['limit'](_0x500671[_0x174400('0x43')]['limit']),_0x4d6bf8['offset']=qs[_0x174400('0x41')](_0x500671[_0x174400('0x43')][_0x174400('0x41')])),_0x4d6bf8['order']=qs[_0x174400('0x5e')](_0x500671[_0x174400('0x43')][_0x174400('0x5e')]),_0x4d6bf8[_0x174400('0x1a')]=qs[_0x174400('0x29')](_['pick'](_0x500671[_0x174400('0x43')],_0x5578d4[_0x174400('0x29')])),_0x4d6bf8[_0x174400('0x1a')][_0x174400('0x25')]=_0x317f59['id'],_0x500671[_0x174400('0x43')]['filter']&&(_0x4d6bf8[_0x174400('0x1a')]=_['merge'](_0x4d6bf8['where'],{[Op['or']]:_[_0x174400('0x54')](_0x4d6bf8['attributes'],function(_0x1e0951){const _0x12bf70=_0x174400,_0x1069da={};return _0x1069da[_0x1e0951]={[Op[_0x12bf70('0xd')]]:'%'+_0x500671[_0x12bf70('0x43')]['filter']+'%'},_0x1069da;})})),_0x4d6bf8=_[_0x174400('0x30')]({},_0x4d6bf8,_0x500671[_0x174400('0x17')]),db['CmHopperBlack']['count']({'where':_0x4d6bf8[_0x174400('0x1a')]})[_0x174400('0x5')](function(_0x38c26d){const _0x1d8ee9=_0x174400;return _0x2eeeb5[_0x1d8ee9('0x68')]=_0x38c26d,_0x500671['query'][_0x1d8ee9('0x65')]&&(_0x4d6bf8[_0x1d8ee9('0x55')]=[{'all':!![]}]),db[_0x1d8ee9('0xb')][_0x1d8ee9('0x3d')](_0x4d6bf8);})[_0x174400('0x5')](function(_0x983920){return _0x2eeeb5['rows']=_0x983920,_0x2eeeb5;});})[_0x25dc76('0x5')](respondWithFilteredResult(_0x476c64,_0x4d6bf8))['catch'](handleError(_0x476c64,null));},exports[_0x52b8ff('0x6c')]=function(_0x1f5854,_0x1fc6b7){const _0x193960=_0x52b8ff;let _0xb542e7={};const _0x3d9089={};let _0x549e8e,_0x308a06;return db['Campaign'][_0x193960('0x13')]({'where':{'id':_0x1f5854[_0x193960('0x60')]['id']}})[_0x193960('0x5')](handleEntityNotFound(_0x1fc6b7,null))[_0x193960('0x5')](function(_0x20b296){const _0x4b7db4=_0x193960;if(_0x20b296)return _0x549e8e=_0x20b296,_0x3d9089[_0x4b7db4('0x1c')]=_['keys'](db[_0x4b7db4('0x53')]['rawAttributes']),_0x3d9089[_0x4b7db4('0x43')]=_[_0x4b7db4('0x5a')](_0x1f5854[_0x4b7db4('0x43')]),_0x3d9089[_0x4b7db4('0x29')]=_['intersection'](_0x3d9089[_0x4b7db4('0x1c')],_0x3d9089[_0x4b7db4('0x43')]),_0xb542e7[_0x4b7db4('0x27')]=_[_0x4b7db4('0x49')](_0x3d9089[_0x4b7db4('0x1c')],qs[_0x4b7db4('0x4')](_0x1f5854[_0x4b7db4('0x43')][_0x4b7db4('0x4')])),_0xb542e7[_0x4b7db4('0x27')]=_0xb542e7['attributes']['length']?_0xb542e7[_0x4b7db4('0x27')]:_0x3d9089['model'],_0xb542e7[_0x4b7db4('0x15')]=qs[_0x4b7db4('0x5e')](_0x1f5854[_0x4b7db4('0x43')][_0x4b7db4('0x5e')]),_0xb542e7['where']=qs['filters'](_[_0x4b7db4('0x11')](_0x1f5854[_0x4b7db4('0x43')],_0x3d9089['filters'])),_0x1f5854[_0x4b7db4('0x43')]['filter']&&(_0xb542e7[_0x4b7db4('0x1a')]=_[_0x4b7db4('0x30')](_0xb542e7[_0x4b7db4('0x1a')],{[Op['or']]:_[_0x4b7db4('0x54')](_0xb542e7[_0x4b7db4('0x27')],function(_0x238b08){const _0x5c8093=_0x4b7db4,_0x38e6d1={};return _0x38e6d1[_0x238b08]={[Op[_0x5c8093('0xd')]]:'%'+_0x1f5854['query']['filter']+'%'},_0x38e6d1;})})),_0xb542e7=_[_0x4b7db4('0x30')]({},_0xb542e7,_0x1f5854['options']),_0x549e8e[_0x4b7db4('0x6c')](_0xb542e7);})[_0x193960('0x5')](function(_0x1884e0){const _0x1ac3aa=_0x193960;if(_0x1884e0)return _0x308a06=_0x1884e0[_0x1ac3aa('0x2e')],typeof _0x1f5854[_0x1ac3aa('0x43')][_0x1ac3aa('0x62')]===_0x1ac3aa('0x2d')&&(_0xb542e7[_0x1ac3aa('0x28')]=qs['limit'](_0x1f5854['query'][_0x1ac3aa('0x28')]),_0xb542e7[_0x1ac3aa('0x41')]=qs['offset'](_0x1f5854[_0x1ac3aa('0x43')]['offset'])),_0x549e8e[_0x1ac3aa('0x6c')](_0xb542e7);})[_0x193960('0x5')](function(_0x2f3fd0){if(_0x2f3fd0)return _0x2f3fd0?{'count':_0x308a06,'rows':_0x2f3fd0}:null;})[_0x193960('0x5')](respondWithResult(_0x1fc6b7,null))[_0x193960('0x22')](handleError(_0x1fc6b7,null));},exports[_0x52b8ff('0x2')]=function(_0x4c9e00,_0x46af00){const _0x36729e=_0x52b8ff;let _0x4b385f,_0x112342;return db[_0x36729e('0x1d')][_0x36729e('0x13')]({'where':{'id':_0x4c9e00[_0x36729e('0x60')]['id']}})[_0x36729e('0x5')](handleEntityNotFound(_0x46af00,null))['then'](function(_0xe59850){const _0x3f1106=_0x36729e;if(_0xe59850)return _0x112342=_0xe59850,_0xe59850[_0x3f1106('0x2')](_0x4c9e00[_0x3f1106('0x2b')][_0x3f1106('0x26')],{'through':_[_0x3f1106('0x66')](_0x4c9e00[_0x3f1106('0x2b')],[_0x3f1106('0x26'),'id'])});return null;})[_0x36729e('0x5')](function(_0x459bdc){const _0x29941e=_0x36729e;let _0x20781f;_0x4b385f=_0x459bdc||[];const _0x5cf77a=[];if(_0x459bdc){for(let _0x319eb3=0x0;_0x319eb3<_0x459bdc[_0x29941e('0x2e')];_0x319eb3+=0x1){const _0x44e8f1=_0x459bdc[_0x319eb3][_0x29941e('0x3b')]({'plain':!![]});_0x112342[_0x29941e('0x4a')]=_0x4c9e00[_0x29941e('0x2b')]['dialCheckDuplicateType']?_0x4c9e00[_0x29941e('0x2b')][_0x29941e('0x4a')]:_0x112342['dialCheckDuplicateType'];switch(_0x112342[_0x29941e('0x4a')]){case _0x29941e('0x5b'):_0x20781f=squel['insert']()[_0x29941e('0x18')](_0x29941e('0x3c'))[_0x29941e('0x42')]([_0x29941e('0x10'),_0x29941e('0x7'),_0x29941e('0x63'),_0x29941e('0x32'),_0x29941e('0x25'),_0x29941e('0x2f'),_0x29941e('0x8')],squel['select']()['field'](_0x29941e('0x10'),_0x29941e('0x10'))['field']('NOW()',_0x29941e('0x7'))[_0x29941e('0x4d')]('id',_0x29941e('0x63'))[_0x29941e('0x4d')](_0x44e8f1[_0x29941e('0x52')]['toString'](),_0x29941e('0x32'))['field'](_0x4c9e00[_0x29941e('0x60')]['id'][_0x29941e('0x1e')](),'CampaignId')[_0x29941e('0x4d')]('NOW()',_0x29941e('0x2f'))[_0x29941e('0x4d')](_0x29941e('0x19'),'updatedAt')[_0x29941e('0x6b')](_0x29941e('0x69'))['where'](_0x29941e('0x45'))[_0x29941e('0x1a')](_0x29941e('0x6'),_0x44e8f1[_0x29941e('0x52')]['toString']())[_0x29941e('0x1a')](_0x29941e('0x5c'))['where'](_0x29941e('0x0'),squel[_0x29941e('0xa')]()[_0x29941e('0x4d')]('COALESCE(calleridnum,\x27\x27)')[_0x29941e('0x6b')](_0x29941e('0x23'))[_0x29941e('0x1a')](_0x29941e('0x40'),_0x4c9e00['params']['id'][_0x29941e('0x1e')]()))[_0x29941e('0x1a')]('phone\x20NOT\x20IN\x20(?)',squel[_0x29941e('0xa')]()['field']('COALESCE(phone,\x27\x27)')['from']('cm_hopper')['where'](_0x29941e('0x40'),_0x4c9e00[_0x29941e('0x60')]['id'][_0x29941e('0x1e')]())))[_0x29941e('0x1e')]();break;case _0x29941e('0x6a'):_0x20781f=squel['insert']()['into'](_0x29941e('0x3c'))[_0x29941e('0x42')]([_0x29941e('0x10'),_0x29941e('0x7'),_0x29941e('0x63'),_0x29941e('0x32'),_0x29941e('0x25'),_0x29941e('0x2f'),_0x29941e('0x8')],squel[_0x29941e('0xa')]()['field'](_0x29941e('0x10'),_0x29941e('0x10'))[_0x29941e('0x4d')](_0x29941e('0x19'),_0x29941e('0x7'))['field']('id',_0x29941e('0x63'))['field'](_0x44e8f1['CmListId'][_0x29941e('0x1e')](),_0x29941e('0x32'))[_0x29941e('0x4d')](_0x4c9e00[_0x29941e('0x60')]['id'][_0x29941e('0x1e')](),_0x29941e('0x25'))[_0x29941e('0x4d')](_0x29941e('0x19'),'createdAt')[_0x29941e('0x4d')](_0x29941e('0x19'),_0x29941e('0x8'))['from'](_0x29941e('0x69'))[_0x29941e('0x1a')]('deletedAt\x20IS\x20NULL')[_0x29941e('0x1a')](_0x29941e('0x6'),_0x44e8f1[_0x29941e('0x52')][_0x29941e('0x1e')]())[_0x29941e('0x1a')]('phone\x20IS\x20NOT\x20NULL')[_0x29941e('0x1a')]('phone\x20NOT\x20IN\x20(?)',squel[_0x29941e('0xa')]()['field'](_0x29941e('0x14'))[_0x29941e('0x6b')](_0x29941e('0x3c'))[_0x29941e('0x1a')](_0x29941e('0x40'),_0x4c9e00['params']['id']['toString']())))[_0x29941e('0x1e')]();break;default:_0x20781f=squel[_0x29941e('0x3e')]()['into'](_0x29941e('0x3c'))[_0x29941e('0x42')]([_0x29941e('0x10'),_0x29941e('0x7'),'ContactId',_0x29941e('0x32'),_0x29941e('0x25'),'createdAt',_0x29941e('0x8')],squel[_0x29941e('0xa')]()[_0x29941e('0x4d')](_0x29941e('0x10'),'phone')[_0x29941e('0x4d')](_0x29941e('0x19'),'scheduledAt')[_0x29941e('0x4d')]('id','ContactId')[_0x29941e('0x4d')](_0x44e8f1[_0x29941e('0x52')]['toString'](),_0x29941e('0x32'))[_0x29941e('0x4d')](_0x4c9e00[_0x29941e('0x60')]['id'][_0x29941e('0x1e')](),'CampaignId')['field'](_0x29941e('0x19'),_0x29941e('0x2f'))['field'](_0x29941e('0x19'),_0x29941e('0x8'))[_0x29941e('0x6b')](_0x29941e('0x69'))[_0x29941e('0x1a')](_0x29941e('0x45'))[_0x29941e('0x1a')](_0x29941e('0x6'),_0x44e8f1['CmListId'][_0x29941e('0x1e')]())[_0x29941e('0x1a')]('phone\x20IS\x20NOT\x20NULL'))[_0x29941e('0x1e')]();}_0x5cf77a[_0x29941e('0x46')](db[_0x29941e('0x1')][_0x29941e('0x43')](_0x20781f));}return Promise['all'](_0x5cf77a);}})[_0x36729e('0x5')](function(){return _0x4b385f;})[_0x36729e('0x5')](respondWithResult(_0x46af00,null))['catch'](handleError(_0x46af00,null));},exports[_0x52b8ff('0x4c')]=function(_0xf326c5,_0x222cc6){const _0xd74642=_0x52b8ff;return db[_0xd74642('0x1d')][_0xd74642('0x13')]({'where':{'id':_0xf326c5[_0xd74642('0x60')]['id']}})[_0xd74642('0x5')](handleEntityNotFound(_0x222cc6,null))[_0xd74642('0x5')](function(_0xd79170){const _0x2c83ca=_0xd74642;if(_0xd79170)return _0xd79170[_0x2c83ca('0x4c')](_0xf326c5[_0x2c83ca('0x43')][_0x2c83ca('0x26')]);})['then'](function(_0x1e4c96){const _0x4b0fc2=_0xd74642;if(_0x1e4c96)return db['CmHopper']['destroy']({'where':{'ListId':_0xf326c5[_0x4b0fc2('0x43')][_0x4b0fc2('0x26')],'CampaignId':_0xf326c5[_0x4b0fc2('0x60')]['id']}})[_0x4b0fc2('0x5')](function(){return _0x1e4c96;});})[_0xd74642('0x5')](respondWithStatusCode(_0x222cc6,null))[_0xd74642('0x22')](handleError(_0x222cc6,null));},exports[_0x52b8ff('0x47')]=function(_0x562ae6,_0x49fea3){const _0x1b9338=_0x52b8ff;let _0x8d2c7f={'raw':!![],'where':{}};const _0x31d552={},_0x297ad6={'count':0x0,'rows':[]};return db[_0x1b9338('0x1d')]['findOne']({'where':{'id':_0x562ae6[_0x1b9338('0x60')]['id']}})['then'](handleEntityNotFound(_0x49fea3,null))[_0x1b9338('0x5')](function(_0x2a6d1f){const _0x657c3b=_0x1b9338;if(_0x2a6d1f)return _0x31d552[_0x657c3b('0x1c')]=_[_0x657c3b('0x5a')](db['CmList']['rawAttributes']),_0x31d552[_0x657c3b('0x43')]=_[_0x657c3b('0x5a')](_0x562ae6[_0x657c3b('0x43')]),_0x31d552[_0x657c3b('0x29')]=_[_0x657c3b('0x49')](_0x31d552[_0x657c3b('0x1c')],_0x31d552[_0x657c3b('0x43')]),_0x8d2c7f[_0x657c3b('0x27')]=_['intersection'](_0x31d552[_0x657c3b('0x1c')],qs[_0x657c3b('0x4')](_0x562ae6[_0x657c3b('0x43')][_0x657c3b('0x4')])),_0x8d2c7f[_0x657c3b('0x27')]=_0x8d2c7f['attributes'][_0x657c3b('0x2e')]?_0x8d2c7f[_0x657c3b('0x27')]:_0x31d552[_0x657c3b('0x1c')],typeof _0x562ae6[_0x657c3b('0x43')][_0x657c3b('0x62')]===_0x657c3b('0x2d')&&(_0x8d2c7f[_0x657c3b('0x28')]=qs[_0x657c3b('0x28')](_0x562ae6[_0x657c3b('0x43')]['limit']),_0x8d2c7f[_0x657c3b('0x41')]=qs['offset'](_0x562ae6[_0x657c3b('0x43')]['offset'])),_0x8d2c7f[_0x657c3b('0x15')]=qs[_0x657c3b('0x5e')](_0x562ae6['query'][_0x657c3b('0x5e')]),_0x8d2c7f[_0x657c3b('0x1a')]=qs[_0x657c3b('0x29')](_['pick'](_0x562ae6['query'],_0x31d552[_0x657c3b('0x29')])),_0x8d2c7f[_0x657c3b('0x1a')]['CampaignId']=_0x2a6d1f['id'],_0x562ae6[_0x657c3b('0x43')][_0x657c3b('0x31')]&&(_0x8d2c7f['where']=_[_0x657c3b('0x30')](_0x8d2c7f[_0x657c3b('0x1a')],{[Op['or']]:_[_0x657c3b('0x54')](_0x8d2c7f[_0x657c3b('0x27')],function(_0x379b03){const _0xb2f19=_0x657c3b,_0x3ee7df={};return _0x3ee7df[_0x379b03]={[Op[_0xb2f19('0xd')]]:'%'+_0x562ae6['query'][_0xb2f19('0x31')]+'%'},_0x3ee7df;})})),_0x8d2c7f=_[_0x657c3b('0x30')]({},_0x8d2c7f,_0x562ae6['options']),db[_0x657c3b('0x53')][_0x657c3b('0x68')]({'where':_0x8d2c7f['where']})[_0x657c3b('0x5')](function(_0x431dc3){const _0xe9fcba=_0x657c3b;return _0x297ad6[_0xe9fcba('0x68')]=_0x431dc3,_0x562ae6[_0xe9fcba('0x43')][_0xe9fcba('0x65')]&&(_0x8d2c7f[_0xe9fcba('0x55')]=[{'all':!![]}]),db[_0xe9fcba('0x53')][_0xe9fcba('0x3d')](_0x8d2c7f);})[_0x657c3b('0x5')](function(_0x5b0e2a){return _0x297ad6['rows']=_0x5b0e2a,_0x297ad6;});})[_0x1b9338('0x5')](respondWithFilteredResult(_0x49fea3,_0x8d2c7f))['catch'](handleError(_0x49fea3,null));},exports[_0x52b8ff('0x38')]=function(_0x5f0186,_0x106448){const _0x59ea2e=_0x52b8ff;let _0x2b8d6c;return db[_0x59ea2e('0x1d')]['findOne']({'where':{'id':_0x5f0186[_0x59ea2e('0x60')]['id']}})[_0x59ea2e('0x5')](handleEntityNotFound(_0x106448,null))[_0x59ea2e('0x5')](function(_0x5c9dd7){const _0x4675e8=_0x59ea2e;if(_0x5c9dd7)return _0x5c9dd7[_0x4675e8('0x38')](_0x5f0186[_0x4675e8('0x2b')][_0x4675e8('0x26')],{'through':_[_0x4675e8('0x66')](_0x5f0186[_0x4675e8('0x2b')],[_0x4675e8('0x26'),'id'])});return null;})[_0x59ea2e('0x5')](function(_0x1584f0){const _0x4e8ec0=_0x59ea2e;let _0x246965;_0x2b8d6c=_0x1584f0||[];const _0xfc2b5d=[];if(_0x1584f0){for(let _0x1dbfde=0x0;_0x1dbfde<_0x1584f0[_0x4e8ec0('0x2e')];_0x1dbfde+=0x1){const _0x3d619f=_0x1584f0[_0x1dbfde][_0x4e8ec0('0x3b')]({'plain':!![]});_0x246965=squel[_0x4e8ec0('0x3e')]()[_0x4e8ec0('0x18')]('cm_hopper_black')['fromQuery']([_0x4e8ec0('0x10'),_0x4e8ec0('0x63'),_0x4e8ec0('0x32'),_0x4e8ec0('0x25'),'createdAt',_0x4e8ec0('0x8')],squel[_0x4e8ec0('0xa')]()[_0x4e8ec0('0x4d')](_0x4e8ec0('0x10'),_0x4e8ec0('0x10'))[_0x4e8ec0('0x4d')]('id',_0x4e8ec0('0x63'))['field'](_0x3d619f['CmListId'][_0x4e8ec0('0x1e')](),_0x4e8ec0('0x32'))[_0x4e8ec0('0x4d')](_0x5f0186['params']['id'][_0x4e8ec0('0x1e')](),_0x4e8ec0('0x25'))['field'](_0x4e8ec0('0x19'),_0x4e8ec0('0x2f'))['field'](_0x4e8ec0('0x19'),_0x4e8ec0('0x8'))['from'](_0x4e8ec0('0x69'))['where'](_0x4e8ec0('0x45'))[_0x4e8ec0('0x1a')](_0x4e8ec0('0x6'),_0x3d619f[_0x4e8ec0('0x52')]['toString']())['where'](_0x4e8ec0('0x5c')))[_0x4e8ec0('0x1e')](),_0xfc2b5d[_0x4e8ec0('0x46')](db[_0x4e8ec0('0x1')][_0x4e8ec0('0x43')](_0x246965));}return Promise[_0x4e8ec0('0x51')](_0xfc2b5d);}})['then'](function(){return _0x2b8d6c;})[_0x59ea2e('0x5')](respondWithResult(_0x106448,null))[_0x59ea2e('0x22')](handleError(_0x106448,null));},exports[_0x52b8ff('0x59')]=function(_0x4c2a0a,_0xb2bc0f){const _0x16dd1c=_0x52b8ff;return db[_0x16dd1c('0x1d')][_0x16dd1c('0x13')]({'where':{'id':_0x4c2a0a['params']['id']}})[_0x16dd1c('0x5')](handleEntityNotFound(_0xb2bc0f,null))['then'](function(_0x4dbc66){const _0x1fe495=_0x16dd1c;if(_0x4dbc66)return _0x4dbc66['removeBlackLists'](_0x4c2a0a[_0x1fe495('0x43')]['ids']);})[_0x16dd1c('0x5')](function(_0x5c1591){const _0x1298f9=_0x16dd1c;if(_0x5c1591)return db[_0x1298f9('0xb')][_0x1298f9('0xf')]({'where':{'ListId':_0x4c2a0a[_0x1298f9('0x43')][_0x1298f9('0x26')],'CampaignId':_0x4c2a0a[_0x1298f9('0x60')]['id']}})[_0x1298f9('0x5')](function(){return _0x5c1591;});})['then'](respondWithStatusCode(_0xb2bc0f,null))['catch'](handleError(_0xb2bc0f,null));}; \ No newline at end of file +const a42_0x5ea6=['dialCheckDuplicateType','fieldName','field','filters','getHoppers','from','sequelize','destroy','then','create','catch','ListId','removeLists','CampaignId\x20=\x20?','squel','sort','findOne','map','show','../../mysqldb','cm_hopper_black','model','addBlackLists','cm_hopper','autoAssociation','offset','CmHopperFinal','fromQuery','all','rawAttributes','include','like','cm_contacts','key','UserProfileResource','ids','Content-Range','user','includeAll','undefined','attributes','update','order','CmHopperHistory','type','insert','CmList','params','phone','sendStatus','fields','nolimit','always','updatedAt','Unable\x20to\x20retrieve\x20the\x20current\x20user','CampaignId','length','Campaign','CmHopperBlack','pick','select','omit','rows','IvrCampaigns','body','where','findAll','role','addLists','ListId\x20=\x20?','removeBlackLists','clone','get','error','keys','limit','getHopperFinals','into','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','CmListId','scheduledAt','name','CmHopper','index','UserProfileSection','COALESCE(phone,\x27\x27)','phone\x20NOT\x20IN\x20(?)','filter','VIRTUAL','merge','push','set','status','phone\x20IS\x20NOT\x20NULL','count','deletedAt\x20IS\x20NULL','toString','stack','userProfileId','NOW()','options','end','json','getLists','getHopperHistories','createdAt','ContactId','send','query','api','intersection'];(function(_0x1d5920,_0x5ea66c){const _0x5b27e8=function(_0x41c177){while(--_0x41c177){_0x1d5920['push'](_0x1d5920['shift']());}};_0x5b27e8(++_0x5ea66c);}(a42_0x5ea6,0x9d));const a42_0x5b27=function(_0x1d5920,_0x5ea66c){_0x1d5920=_0x1d5920-0x0;let _0x5b27e8=a42_0x5ea6[_0x1d5920];return _0x5b27e8;};const _0x1d78ee=a42_0x5b27;'use strict';const _=require('lodash'),squel=require(_0x1d78ee('0x4f')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x1d78ee('0x3f')),db=require(_0x1d78ee('0x54'))['db'],{Op}=require(_0x1d78ee('0x47'));function respondWithStatusCode(_0x41c177,_0x4baa96){return _0x4baa96=_0x4baa96||0xcc,function(_0x1c8592){const _0x18c528=a42_0x5b27;if(_0x1c8592)return _0x41c177[_0x18c528('0x3')](_0x4baa96);return _0x41c177[_0x18c528('0x2e')](_0x4baa96)[_0x18c528('0x37')]();};}function respondWithResult(_0x17cfa3,_0x25c903){return _0x25c903=_0x25c903||0xc8,function(_0xdf8e37){const _0x37b4c9=a42_0x5b27;if(_0xdf8e37)return _0x17cfa3['status'](_0x25c903)[_0x37b4c9('0x38')](_0xdf8e37);};}function respondWithFilteredResult(_0x20cc46,_0x4c0640){return function(_0x4198a1){const _0x3ffae0=a42_0x5b27;if(_0x4198a1){const _0xf1f6c4=_0x4198a1['count'],_0x171d06=_0x4c0640[_0x3ffae0('0x5a')];let _0x2600da=_0x4c0640[_0x3ffae0('0x5a')]+_0x4c0640[_0x3ffae0('0x1d')],_0x1569f7;return _0x2600da>=_0xf1f6c4?(_0x2600da=_0xf1f6c4,_0x1569f7=0xc8):_0x1569f7=0xce,_0x20cc46['status'](_0x1569f7),_0x20cc46[_0x3ffae0('0x2d')](_0x3ffae0('0x65'),_0x171d06+'-'+_0x2600da+'/'+_0xf1f6c4)[_0x3ffae0('0x38')](_0x4198a1);}return null;};}function saveUpdates(_0x45d161){return function(_0x223970){const _0x5a6743=a42_0x5b27;if(_0x223970)return _0x223970['update'](_0x45d161)[_0x5a6743('0x49')](function(_0x1d1b10){return _0x1d1b10;});return null;};}function removeEntity(_0x45f3b9){return function(_0x26e119){const _0x1cbdf7=a42_0x5b27;if(_0x26e119)return _0x26e119['destroy']()[_0x1cbdf7('0x49')](function(){const _0xb6f1a9=_0x1cbdf7,_0x4c8c8f=_0x26e119[_0xb6f1a9('0x1a')]({'plain':!![]}),_0x21c5a4=_0xb6f1a9('0x11');return db[_0xb6f1a9('0x63')][_0xb6f1a9('0x48')]({'where':{'type':_0x21c5a4,'resourceId':_0x4c8c8f['id']}})[_0xb6f1a9('0x49')](function(){return _0x26e119;});})[_0x1cbdf7('0x49')](function(){const _0x529b13=_0x1cbdf7;_0x45f3b9[_0x529b13('0x2e')](0xcc)[_0x529b13('0x37')]();});};}function handleEntityNotFound(_0x2f9200){return function(_0x161033){return!_0x161033&&_0x2f9200['sendStatus'](0x194),_0x161033;};}function handleError(_0x425541,_0x1490d8){return _0x1490d8=_0x1490d8||0x1f4,function(_0x4d7cf6){const _0x5a910b=a42_0x5b27;logger[_0x5a910b('0x1b')](_0x4d7cf6[_0x5a910b('0x33')]),_0x4d7cf6['name']&&delete _0x4d7cf6[_0x5a910b('0x23')],_0x425541['status'](_0x1490d8)[_0x5a910b('0x3d')](_0x4d7cf6);};}exports[_0x1d78ee('0x25')]=function(_0x4029dc,_0x2f93b8){const _0x4ffede=_0x1d78ee;let _0x45a397={};const _0x34cde8={},_0x1ba7ff={'count':0x0,'rows':[]},_0x5952f9=_[_0x4ffede('0x52')](db[_0x4ffede('0xb')][_0x4ffede('0x5e')],function(_0x599932){const _0x47b72d=_0x4ffede;return{'name':_0x599932[_0x47b72d('0x42')],'type':_0x599932[_0x47b72d('0x6d')][_0x47b72d('0x62')]};});_0x34cde8['model']=_[_0x4ffede('0x52')](_0x5952f9,'name'),_0x34cde8[_0x4ffede('0x3e')]=_['keys'](_0x4029dc[_0x4ffede('0x3e')]),_0x34cde8['filters']=_[_0x4ffede('0x40')](_0x34cde8['model'],_0x34cde8[_0x4ffede('0x3e')]),_0x45a397['attributes']=_['intersection'](_0x34cde8['model'],qs[_0x4ffede('0x4')](_0x4029dc[_0x4ffede('0x3e')]['fields'])),_0x45a397[_0x4ffede('0x69')]=_0x45a397[_0x4ffede('0x69')][_0x4ffede('0xa')]?_0x45a397[_0x4ffede('0x69')]:_0x34cde8[_0x4ffede('0x56')];typeof _0x4029dc[_0x4ffede('0x3e')][_0x4ffede('0x5')]==='undefined'&&(_0x45a397['limit']=qs[_0x4ffede('0x1d')](_0x4029dc[_0x4ffede('0x3e')]['limit']),_0x45a397[_0x4ffede('0x5a')]=qs[_0x4ffede('0x5a')](_0x4029dc[_0x4ffede('0x3e')][_0x4ffede('0x5a')]));_0x45a397[_0x4ffede('0x6b')]=qs[_0x4ffede('0x50')](_0x4029dc[_0x4ffede('0x3e')][_0x4ffede('0x50')]),_0x45a397['where']=qs['filters'](_[_0x4ffede('0xd')](_0x4029dc[_0x4ffede('0x3e')],_0x34cde8[_0x4ffede('0x44')]),_0x5952f9);_0x4029dc['query'][_0x4ffede('0x29')]&&(_0x45a397[_0x4ffede('0x13')]=_[_0x4ffede('0x2b')](_0x45a397['where'],{[Op['or']]:_[_0x4ffede('0x52')](_0x5952f9,function(_0x1560c1){const _0x249ec0=_0x4ffede;if(_0x1560c1['type']!==_0x249ec0('0x2a')){const _0x443052={};return _0x443052[_0x1560c1['name']]={[Op[_0x249ec0('0x60')]]:'%'+_0x4029dc[_0x249ec0('0x3e')][_0x249ec0('0x29')]+'%'},_0x443052;}})}));_0x45a397=_[_0x4ffede('0x2b')]({},_0x45a397,_0x4029dc[_0x4ffede('0x36')]);const _0x18f432={'where':_0x45a397[_0x4ffede('0x13')]};return db[_0x4ffede('0xb')][_0x4ffede('0x30')](_0x18f432)[_0x4ffede('0x49')](function(_0x2624c3){const _0x43cb24=_0x4ffede;return _0x1ba7ff[_0x43cb24('0x30')]=_0x2624c3,_0x4029dc[_0x43cb24('0x3e')]['includeAll']&&(_0x45a397[_0x43cb24('0x5f')]=[{'all':!![]}]),db[_0x43cb24('0xb')][_0x43cb24('0x14')](_0x45a397);})['then'](function(_0x4478bc){const _0x2f653d=_0x4ffede;return _0x1ba7ff[_0x2f653d('0x10')]=_0x4478bc,_0x1ba7ff;})[_0x4ffede('0x49')](respondWithFilteredResult(_0x2f93b8,_0x45a397))[_0x4ffede('0x4b')](handleError(_0x2f93b8,null));},exports[_0x1d78ee('0x53')]=function(_0x18db79,_0x576312){const _0x4ffe0b=_0x1d78ee;let _0x18de2e={'raw':![],'where':{'id':_0x18db79[_0x4ffe0b('0x1')]['id']}};const _0x566970={};return _0x566970[_0x4ffe0b('0x56')]=_[_0x4ffe0b('0x1c')](db[_0x4ffe0b('0xb')][_0x4ffe0b('0x5e')]),_0x566970[_0x4ffe0b('0x3e')]=_[_0x4ffe0b('0x1c')](_0x18db79[_0x4ffe0b('0x3e')]),_0x566970[_0x4ffe0b('0x44')]=_[_0x4ffe0b('0x40')](_0x566970[_0x4ffe0b('0x56')],_0x566970[_0x4ffe0b('0x3e')]),_0x18de2e[_0x4ffe0b('0x69')]=_[_0x4ffe0b('0x40')](_0x566970[_0x4ffe0b('0x56')],qs['fields'](_0x18db79[_0x4ffe0b('0x3e')]['fields'])),_0x18de2e['attributes']=_0x18de2e[_0x4ffe0b('0x69')][_0x4ffe0b('0xa')]?_0x18de2e['attributes']:_0x566970[_0x4ffe0b('0x56')],_0x18db79['query'][_0x4ffe0b('0x67')]&&(_0x18de2e['include']=[{'all':!![]}]),_0x18de2e=_['merge']({},_0x18de2e,_0x18db79['options']),db[_0x4ffe0b('0xb')][_0x4ffe0b('0x51')](_0x18de2e)[_0x4ffe0b('0x49')](handleEntityNotFound(_0x576312,null))[_0x4ffe0b('0x49')](respondWithResult(_0x576312,null))[_0x4ffe0b('0x4b')](handleError(_0x576312,null));},exports['create']=function(_0x4055c7,_0x11a5b1){const _0x5eb1ac=_0x1d78ee;return db['Campaign'][_0x5eb1ac('0x4a')](_0x4055c7[_0x5eb1ac('0x12')],{})[_0x5eb1ac('0x49')](function(_0x464c85){const _0xc946a4=_0x5eb1ac,_0x5f529b=_0x4055c7[_0xc946a4('0x66')][_0xc946a4('0x1a')]({'plain':!![]});if(!_0x5f529b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5f529b[_0xc946a4('0x15')]===_0xc946a4('0x66')){const _0x51a195=_0x464c85[_0xc946a4('0x1a')]({'plain':!![]}),_0x4ade35=_0xc946a4('0x11');return db[_0xc946a4('0x26')]['findOne']({'where':{'name':_0x4ade35,'userProfileId':_0x5f529b['userProfileId']},'raw':!![]})[_0xc946a4('0x49')](function(_0x17fd8c){const _0x47ba99=_0xc946a4;return _0x17fd8c&&_0x17fd8c['autoAssociation']===0x0?db[_0x47ba99('0x63')][_0x47ba99('0x4a')]({'name':_0x51a195[_0x47ba99('0x23')],'resourceId':_0x51a195['id'],'type':_0x17fd8c[_0x47ba99('0x23')],'sectionId':_0x17fd8c['id']},{})[_0x47ba99('0x49')](function(){return _0x464c85;}):_0x464c85;})[_0xc946a4('0x4b')](function(_0x392ec1){const _0x204eef=_0xc946a4;logger[_0x204eef('0x1b')](_0x204eef('0x20'),_0x392ec1);throw _0x392ec1;});}return _0x464c85;})[_0x5eb1ac('0x49')](respondWithResult(_0x11a5b1,0xc9))[_0x5eb1ac('0x4b')](handleError(_0x11a5b1,null));},exports[_0x1d78ee('0x19')]=function(_0x5bd19d,_0x52d18b){const _0x597058=_0x1d78ee;let _0xec2a13={'where':{'id':_0x5bd19d[_0x597058('0x1')]['id']}};const _0x804f4c={};return _0x804f4c[_0x597058('0x56')]=_[_0x597058('0x1c')](db['Campaign'][_0x597058('0x5e')]),_0xec2a13['attributes']=_['intersection'](_0x804f4c[_0x597058('0x56')],qs[_0x597058('0x4')](_0x5bd19d[_0x597058('0x3e')]['fields'])),_0xec2a13[_0x597058('0x69')]=_0xec2a13[_0x597058('0x69')][_0x597058('0xa')]?_0xec2a13[_0x597058('0x69')]:_0x804f4c['model'],_0x5bd19d['query']['includeAll']&&(_0xec2a13[_0x597058('0x5f')]=[{'all':!![]}]),_0xec2a13=_[_0x597058('0x2b')]({},_0xec2a13,_0x5bd19d['options']),db['Campaign'][_0x597058('0x51')](_0xec2a13)[_0x597058('0x49')](handleEntityNotFound(_0x52d18b,null))[_0x597058('0x49')](function(_0x1d34f6){const _0x2311ae=_0x597058;if(_0x1d34f6){let _0x3de701=_0x1d34f6[_0x2311ae('0x1a')]({'plain':!![]});return _0x3de701=qs[_0x2311ae('0xf')](_0x3de701,['id',_0x2311ae('0x3b'),_0x2311ae('0x7')]),_0x5bd19d[_0x2311ae('0x12')]=_[_0x2311ae('0xf')](_0x5bd19d[_0x2311ae('0x12')],['id',_0x2311ae('0x3b'),_0x2311ae('0x7')]),db[_0x2311ae('0xb')][_0x2311ae('0x4a')](_['merge'](_0x3de701,_0x5bd19d[_0x2311ae('0x12')]),{'include':_0x5bd19d['query'][_0x2311ae('0x67')]?[{'all':!![]}]:undefined})[_0x2311ae('0x49')](function(_0x9f1f73){const _0x4e99d0=_0x2311ae,_0x31f02a=_0x5bd19d[_0x4e99d0('0x66')][_0x4e99d0('0x1a')]({'plain':!![]});if(!_0x31f02a)throw new Error(_0x4e99d0('0x8'));if(_0x31f02a[_0x4e99d0('0x15')]===_0x4e99d0('0x66')){const _0x2727ce=_0x9f1f73[_0x4e99d0('0x1a')]({'plain':!![]}),_0x3afd54='IvrCampaigns';return db[_0x4e99d0('0x26')][_0x4e99d0('0x51')]({'where':{'name':_0x3afd54,'userProfileId':_0x31f02a[_0x4e99d0('0x34')]},'raw':!![]})[_0x4e99d0('0x49')](function(_0x5a1463){const _0x4efb91=_0x4e99d0;return _0x5a1463&&_0x5a1463[_0x4efb91('0x59')]===0x0?db[_0x4efb91('0x63')][_0x4efb91('0x4a')]({'name':_0x2727ce['name'],'resourceId':_0x2727ce['id'],'type':_0x5a1463[_0x4efb91('0x23')],'sectionId':_0x5a1463['id']},{})[_0x4efb91('0x49')](function(){return _0x9f1f73;}):_0x9f1f73;})[_0x4e99d0('0x4b')](function(_0x1556b7){const _0x1737d1=_0x4e99d0;logger[_0x1737d1('0x1b')](_0x1737d1('0x20'),_0x1556b7);throw _0x1556b7;});}return _0x9f1f73;});}})['then'](respondWithResult(_0x52d18b,0xc9))['catch'](handleError(_0x52d18b,null));},exports[_0x1d78ee('0x6a')]=function(_0x509258,_0xd881a5){const _0xa5df45=_0x1d78ee;return _0x509258['body']['id']&&delete _0x509258[_0xa5df45('0x12')]['id'],db['Campaign'][_0xa5df45('0x51')]({'where':{'id':_0x509258[_0xa5df45('0x1')]['id']}})[_0xa5df45('0x49')](handleEntityNotFound(_0xd881a5,null))[_0xa5df45('0x49')](saveUpdates(_0x509258[_0xa5df45('0x12')],null))[_0xa5df45('0x49')](respondWithResult(_0xd881a5,null))[_0xa5df45('0x4b')](handleError(_0xd881a5,null));},exports[_0x1d78ee('0x48')]=function(_0x2368db,_0x5f44b1){const _0x114d34=_0x1d78ee;return db[_0x114d34('0xb')][_0x114d34('0x51')]({'where':{'id':_0x2368db[_0x114d34('0x1')]['id']}})[_0x114d34('0x49')](handleEntityNotFound(_0x5f44b1,null))[_0x114d34('0x49')](removeEntity(_0x5f44b1,null))[_0x114d34('0x4b')](handleError(_0x5f44b1,null));},exports[_0x1d78ee('0x45')]=function(_0x3c0f2b,_0x195080){const _0x343122=_0x1d78ee;let _0x20b78a={'raw':!![],'where':{}};const _0x4a898a={},_0x5b45a4={'count':0x0,'rows':[]};return db['Campaign'][_0x343122('0x51')]({'where':{'id':_0x3c0f2b[_0x343122('0x1')]['id']}})[_0x343122('0x49')](handleEntityNotFound(_0x195080,null))['then'](function(_0x105b45){const _0x5f4481=_0x343122;if(_0x105b45)return _0x4a898a['model']=_[_0x5f4481('0x1c')](db[_0x5f4481('0x24')][_0x5f4481('0x5e')]),_0x4a898a['query']=_['keys'](_0x3c0f2b['query']),_0x4a898a[_0x5f4481('0x44')]=_[_0x5f4481('0x40')](_0x4a898a[_0x5f4481('0x56')],_0x4a898a[_0x5f4481('0x3e')]),_0x20b78a[_0x5f4481('0x69')]=_['intersection'](_0x4a898a[_0x5f4481('0x56')],qs[_0x5f4481('0x4')](_0x3c0f2b[_0x5f4481('0x3e')]['fields'])),_0x20b78a[_0x5f4481('0x69')]=_0x20b78a['attributes'][_0x5f4481('0xa')]?_0x20b78a[_0x5f4481('0x69')]:_0x4a898a['model'],typeof _0x3c0f2b[_0x5f4481('0x3e')][_0x5f4481('0x5')]==='undefined'&&(_0x20b78a['limit']=qs[_0x5f4481('0x1d')](_0x3c0f2b[_0x5f4481('0x3e')][_0x5f4481('0x1d')]),_0x20b78a[_0x5f4481('0x5a')]=qs['offset'](_0x3c0f2b[_0x5f4481('0x3e')][_0x5f4481('0x5a')])),_0x20b78a[_0x5f4481('0x6b')]=qs[_0x5f4481('0x50')](_0x3c0f2b[_0x5f4481('0x3e')][_0x5f4481('0x50')]),_0x20b78a[_0x5f4481('0x13')]=qs[_0x5f4481('0x44')](_['pick'](_0x3c0f2b[_0x5f4481('0x3e')],_0x4a898a[_0x5f4481('0x44')])),_0x20b78a[_0x5f4481('0x13')]['CampaignId']=_0x105b45['id'],_0x3c0f2b[_0x5f4481('0x3e')]['filter']&&(_0x20b78a[_0x5f4481('0x13')]=_['merge'](_0x20b78a[_0x5f4481('0x13')],{[Op['or']]:_[_0x5f4481('0x52')](_0x20b78a[_0x5f4481('0x69')],function(_0x41510c){const _0x2f666=_0x5f4481,_0x59e38e={};return _0x59e38e[_0x41510c]={[Op[_0x2f666('0x60')]]:'%'+_0x3c0f2b[_0x2f666('0x3e')]['filter']+'%'},_0x59e38e;})})),_0x20b78a=_['merge']({},_0x20b78a,_0x3c0f2b[_0x5f4481('0x36')]),db['CmHopper'][_0x5f4481('0x30')]({'where':_0x20b78a['where']})[_0x5f4481('0x49')](function(_0x5c05b6){const _0x5b86eb=_0x5f4481;return _0x5b45a4[_0x5b86eb('0x30')]=_0x5c05b6,_0x3c0f2b[_0x5b86eb('0x3e')][_0x5b86eb('0x67')]&&(_0x20b78a[_0x5b86eb('0x5f')]=[{'all':!![]}]),db['CmHopper'][_0x5b86eb('0x14')](_0x20b78a);})[_0x5f4481('0x49')](function(_0x37e116){const _0x426177=_0x5f4481;return _0x5b45a4[_0x426177('0x10')]=_0x37e116,_0x5b45a4;});})[_0x343122('0x49')](respondWithFilteredResult(_0x195080,_0x20b78a))[_0x343122('0x4b')](handleError(_0x195080,null));},exports[_0x1d78ee('0x3a')]=function(_0x51cc7e,_0x3d3333){const _0x2738b3=_0x1d78ee;let _0x3ed42c={'raw':!![],'where':{}};const _0x87e551={},_0x42294f={'count':0x0,'rows':[]};return db[_0x2738b3('0xb')][_0x2738b3('0x51')]({'where':{'id':_0x51cc7e[_0x2738b3('0x1')]['id']}})[_0x2738b3('0x49')](handleEntityNotFound(_0x3d3333,null))[_0x2738b3('0x49')](function(_0x3c1d29){const _0x318288=_0x2738b3;if(_0x3c1d29)return _0x87e551[_0x318288('0x56')]=_[_0x318288('0x1c')](db['CmHopperHistory'][_0x318288('0x5e')]),_0x87e551[_0x318288('0x3e')]=_['keys'](_0x51cc7e[_0x318288('0x3e')]),_0x87e551[_0x318288('0x44')]=_[_0x318288('0x40')](_0x87e551[_0x318288('0x56')],_0x87e551[_0x318288('0x3e')]),_0x3ed42c[_0x318288('0x69')]=_['intersection'](_0x87e551[_0x318288('0x56')],qs[_0x318288('0x4')](_0x51cc7e[_0x318288('0x3e')]['fields'])),_0x3ed42c[_0x318288('0x69')]=_0x3ed42c['attributes'][_0x318288('0xa')]?_0x3ed42c[_0x318288('0x69')]:_0x87e551[_0x318288('0x56')],typeof _0x51cc7e[_0x318288('0x3e')][_0x318288('0x5')]==='undefined'&&(_0x3ed42c[_0x318288('0x1d')]=qs[_0x318288('0x1d')](_0x51cc7e[_0x318288('0x3e')][_0x318288('0x1d')]),_0x3ed42c[_0x318288('0x5a')]=qs[_0x318288('0x5a')](_0x51cc7e[_0x318288('0x3e')][_0x318288('0x5a')])),_0x3ed42c[_0x318288('0x6b')]=qs[_0x318288('0x50')](_0x51cc7e[_0x318288('0x3e')][_0x318288('0x50')]),_0x3ed42c[_0x318288('0x13')]=qs[_0x318288('0x44')](_[_0x318288('0xd')](_0x51cc7e[_0x318288('0x3e')],_0x87e551[_0x318288('0x44')])),_0x3ed42c[_0x318288('0x13')][_0x318288('0x9')]=_0x3c1d29['id'],_0x51cc7e[_0x318288('0x3e')][_0x318288('0x29')]&&(_0x3ed42c['where']=_[_0x318288('0x2b')](_0x3ed42c[_0x318288('0x13')],{[Op['or']]:_[_0x318288('0x52')](_0x3ed42c[_0x318288('0x69')],function(_0x150169){const _0x272c64=_0x318288,_0x41b640={};return _0x41b640[_0x150169]={[Op['like']]:'%'+_0x51cc7e[_0x272c64('0x3e')]['filter']+'%'},_0x41b640;})})),_0x3ed42c=_[_0x318288('0x2b')]({},_0x3ed42c,_0x51cc7e[_0x318288('0x36')]),db['CmHopperHistory'][_0x318288('0x30')]({'where':_0x3ed42c[_0x318288('0x13')]})['then'](function(_0x225d58){const _0x121d92=_0x318288;return _0x42294f[_0x121d92('0x30')]=_0x225d58,_0x51cc7e[_0x121d92('0x3e')]['includeAll']&&(_0x3ed42c[_0x121d92('0x5f')]=[{'all':!![]}]),db[_0x121d92('0x6c')][_0x121d92('0x14')](_0x3ed42c);})[_0x318288('0x49')](function(_0x387778){const _0x23846e=_0x318288;return _0x42294f[_0x23846e('0x10')]=_0x387778,_0x42294f;});})['then'](respondWithFilteredResult(_0x3d3333,_0x3ed42c))[_0x2738b3('0x4b')](handleError(_0x3d3333,null));},exports[_0x1d78ee('0x1e')]=function(_0x177827,_0x38f222){const _0x5abc08=_0x1d78ee;let _0x1b43a9={'raw':!![],'where':{}};const _0x50a693={},_0x2dd837={'count':0x0,'rows':[]};return db[_0x5abc08('0xb')][_0x5abc08('0x51')]({'where':{'id':_0x177827[_0x5abc08('0x1')]['id']}})[_0x5abc08('0x49')](handleEntityNotFound(_0x38f222,null))['then'](function(_0x59b9ab){const _0x303aee=_0x5abc08;if(_0x59b9ab)return _0x50a693[_0x303aee('0x56')]=_[_0x303aee('0x1c')](db[_0x303aee('0x5b')][_0x303aee('0x5e')]),_0x50a693[_0x303aee('0x3e')]=_['keys'](_0x177827[_0x303aee('0x3e')]),_0x50a693[_0x303aee('0x44')]=_['intersection'](_0x50a693['model'],_0x50a693[_0x303aee('0x3e')]),_0x1b43a9[_0x303aee('0x69')]=_['intersection'](_0x50a693['model'],qs[_0x303aee('0x4')](_0x177827[_0x303aee('0x3e')][_0x303aee('0x4')])),_0x1b43a9[_0x303aee('0x69')]=_0x1b43a9[_0x303aee('0x69')][_0x303aee('0xa')]?_0x1b43a9['attributes']:_0x50a693['model'],typeof _0x177827[_0x303aee('0x3e')]['nolimit']===_0x303aee('0x68')&&(_0x1b43a9[_0x303aee('0x1d')]=qs[_0x303aee('0x1d')](_0x177827[_0x303aee('0x3e')][_0x303aee('0x1d')]),_0x1b43a9[_0x303aee('0x5a')]=qs['offset'](_0x177827[_0x303aee('0x3e')][_0x303aee('0x5a')])),_0x1b43a9['order']=qs['sort'](_0x177827[_0x303aee('0x3e')][_0x303aee('0x50')]),_0x1b43a9[_0x303aee('0x13')]=qs['filters'](_[_0x303aee('0xd')](_0x177827[_0x303aee('0x3e')],_0x50a693[_0x303aee('0x44')])),_0x1b43a9[_0x303aee('0x13')][_0x303aee('0x9')]=_0x59b9ab['id'],_0x177827[_0x303aee('0x3e')]['filter']&&(_0x1b43a9[_0x303aee('0x13')]=_['merge'](_0x1b43a9[_0x303aee('0x13')],{[Op['or']]:_['map'](_0x1b43a9['attributes'],function(_0x3beb85){const _0xc83982=_0x303aee,_0x7cbe3a={};return _0x7cbe3a[_0x3beb85]={[Op[_0xc83982('0x60')]]:'%'+_0x177827['query'][_0xc83982('0x29')]+'%'},_0x7cbe3a;})})),_0x1b43a9=_[_0x303aee('0x2b')]({},_0x1b43a9,_0x177827[_0x303aee('0x36')]),db[_0x303aee('0x5b')][_0x303aee('0x30')]({'where':_0x1b43a9['where']})[_0x303aee('0x49')](function(_0x760336){const _0x31a0c0=_0x303aee;return _0x2dd837[_0x31a0c0('0x30')]=_0x760336,_0x177827[_0x31a0c0('0x3e')][_0x31a0c0('0x67')]&&(_0x1b43a9[_0x31a0c0('0x5f')]=[{'all':!![]}]),db[_0x31a0c0('0x5b')][_0x31a0c0('0x14')](_0x1b43a9);})[_0x303aee('0x49')](function(_0x5eff95){const _0x358ba5=_0x303aee;return _0x2dd837[_0x358ba5('0x10')]=_0x5eff95,_0x2dd837;});})['then'](respondWithFilteredResult(_0x38f222,_0x1b43a9))[_0x5abc08('0x4b')](handleError(_0x38f222,null));},exports['getHopperBlacks']=function(_0x26daee,_0x19f30c){const _0x28d018=_0x1d78ee;let _0xba29f={'raw':!![],'where':{}};const _0x292abb={},_0x53ed92={'count':0x0,'rows':[]};return db[_0x28d018('0xb')][_0x28d018('0x51')]({'where':{'id':_0x26daee['params']['id']}})[_0x28d018('0x49')](handleEntityNotFound(_0x19f30c,null))[_0x28d018('0x49')](function(_0x4b5c2c){const _0xba362f=_0x28d018;if(_0x4b5c2c)return _0x292abb[_0xba362f('0x56')]=_[_0xba362f('0x1c')](db['CmHopperBlack'][_0xba362f('0x5e')]),_0x292abb['query']=_['keys'](_0x26daee[_0xba362f('0x3e')]),_0x292abb[_0xba362f('0x44')]=_['intersection'](_0x292abb[_0xba362f('0x56')],_0x292abb[_0xba362f('0x3e')]),_0xba29f['attributes']=_[_0xba362f('0x40')](_0x292abb[_0xba362f('0x56')],qs[_0xba362f('0x4')](_0x26daee[_0xba362f('0x3e')][_0xba362f('0x4')])),_0xba29f[_0xba362f('0x69')]=_0xba29f[_0xba362f('0x69')][_0xba362f('0xa')]?_0xba29f[_0xba362f('0x69')]:_0x292abb['model'],typeof _0x26daee['query'][_0xba362f('0x5')]===_0xba362f('0x68')&&(_0xba29f[_0xba362f('0x1d')]=qs[_0xba362f('0x1d')](_0x26daee[_0xba362f('0x3e')][_0xba362f('0x1d')]),_0xba29f[_0xba362f('0x5a')]=qs[_0xba362f('0x5a')](_0x26daee[_0xba362f('0x3e')]['offset'])),_0xba29f['order']=qs[_0xba362f('0x50')](_0x26daee[_0xba362f('0x3e')][_0xba362f('0x50')]),_0xba29f[_0xba362f('0x13')]=qs[_0xba362f('0x44')](_[_0xba362f('0xd')](_0x26daee[_0xba362f('0x3e')],_0x292abb[_0xba362f('0x44')])),_0xba29f['where'][_0xba362f('0x9')]=_0x4b5c2c['id'],_0x26daee[_0xba362f('0x3e')][_0xba362f('0x29')]&&(_0xba29f[_0xba362f('0x13')]=_[_0xba362f('0x2b')](_0xba29f[_0xba362f('0x13')],{[Op['or']]:_[_0xba362f('0x52')](_0xba29f[_0xba362f('0x69')],function(_0x1572af){const _0x59fa03=_0xba362f,_0xbf2909={};return _0xbf2909[_0x1572af]={[Op[_0x59fa03('0x60')]]:'%'+_0x26daee[_0x59fa03('0x3e')][_0x59fa03('0x29')]+'%'},_0xbf2909;})})),_0xba29f=_['merge']({},_0xba29f,_0x26daee['options']),db[_0xba362f('0xc')][_0xba362f('0x30')]({'where':_0xba29f['where']})[_0xba362f('0x49')](function(_0x9dc95a){const _0x2e6bb8=_0xba362f;return _0x53ed92[_0x2e6bb8('0x30')]=_0x9dc95a,_0x26daee[_0x2e6bb8('0x3e')][_0x2e6bb8('0x67')]&&(_0xba29f[_0x2e6bb8('0x5f')]=[{'all':!![]}]),db[_0x2e6bb8('0xc')][_0x2e6bb8('0x14')](_0xba29f);})[_0xba362f('0x49')](function(_0x1071cf){const _0x161d0e=_0xba362f;return _0x53ed92[_0x161d0e('0x10')]=_0x1071cf,_0x53ed92;});})[_0x28d018('0x49')](respondWithFilteredResult(_0x19f30c,_0xba29f))[_0x28d018('0x4b')](handleError(_0x19f30c,null));},exports['getLists']=function(_0x176df0,_0x370051){const _0x5e8c99=_0x1d78ee;let _0x2c0fae={};const _0x2dc307={};let _0x2f5486,_0x2a5d47;return db[_0x5e8c99('0xb')][_0x5e8c99('0x51')]({'where':{'id':_0x176df0[_0x5e8c99('0x1')]['id']}})['then'](handleEntityNotFound(_0x370051,null))[_0x5e8c99('0x49')](function(_0x20aaee){const _0x152338=_0x5e8c99;if(_0x20aaee)return _0x2f5486=_0x20aaee,_0x2dc307[_0x152338('0x56')]=_['keys'](db['CmList']['rawAttributes']),_0x2dc307[_0x152338('0x3e')]=_[_0x152338('0x1c')](_0x176df0['query']),_0x2dc307[_0x152338('0x44')]=_[_0x152338('0x40')](_0x2dc307[_0x152338('0x56')],_0x2dc307['query']),_0x2c0fae['attributes']=_[_0x152338('0x40')](_0x2dc307['model'],qs[_0x152338('0x4')](_0x176df0['query'][_0x152338('0x4')])),_0x2c0fae[_0x152338('0x69')]=_0x2c0fae[_0x152338('0x69')][_0x152338('0xa')]?_0x2c0fae['attributes']:_0x2dc307['model'],_0x2c0fae[_0x152338('0x6b')]=qs[_0x152338('0x50')](_0x176df0[_0x152338('0x3e')]['sort']),_0x2c0fae['where']=qs[_0x152338('0x44')](_[_0x152338('0xd')](_0x176df0[_0x152338('0x3e')],_0x2dc307[_0x152338('0x44')])),_0x176df0[_0x152338('0x3e')][_0x152338('0x29')]&&(_0x2c0fae[_0x152338('0x13')]=_[_0x152338('0x2b')](_0x2c0fae[_0x152338('0x13')],{[Op['or']]:_[_0x152338('0x52')](_0x2c0fae['attributes'],function(_0x40db7c){const _0x1ace66=_0x152338,_0x4536cc={};return _0x4536cc[_0x40db7c]={[Op[_0x1ace66('0x60')]]:'%'+_0x176df0[_0x1ace66('0x3e')]['filter']+'%'},_0x4536cc;})})),_0x2c0fae=_[_0x152338('0x2b')]({},_0x2c0fae,_0x176df0[_0x152338('0x36')]),_0x2f5486['getLists'](_0x2c0fae);})[_0x5e8c99('0x49')](function(_0x538702){const _0x216afb=_0x5e8c99;if(_0x538702)return _0x2a5d47=_0x538702[_0x216afb('0xa')],typeof _0x176df0[_0x216afb('0x3e')]['nolimit']==='undefined'&&(_0x2c0fae[_0x216afb('0x1d')]=qs['limit'](_0x176df0[_0x216afb('0x3e')][_0x216afb('0x1d')]),_0x2c0fae['offset']=qs[_0x216afb('0x5a')](_0x176df0['query'][_0x216afb('0x5a')])),_0x2f5486[_0x216afb('0x39')](_0x2c0fae);})[_0x5e8c99('0x49')](function(_0x558800){if(_0x558800)return _0x558800?{'count':_0x2a5d47,'rows':_0x558800}:null;})[_0x5e8c99('0x49')](respondWithResult(_0x370051,null))[_0x5e8c99('0x4b')](handleError(_0x370051,null));},exports[_0x1d78ee('0x16')]=function(_0x66936c,_0x26de1a){const _0x4bc24a=_0x1d78ee;let _0x132bd6,_0x13c881;return db['Campaign'][_0x4bc24a('0x51')]({'where':{'id':_0x66936c[_0x4bc24a('0x1')]['id']}})[_0x4bc24a('0x49')](handleEntityNotFound(_0x26de1a,null))['then'](function(_0x5b2566){const _0x25c4e2=_0x4bc24a;if(_0x5b2566)return _0x13c881=_0x5b2566,_0x5b2566[_0x25c4e2('0x16')](_0x66936c[_0x25c4e2('0x12')][_0x25c4e2('0x64')],{'through':_[_0x25c4e2('0xf')](_0x66936c[_0x25c4e2('0x12')],[_0x25c4e2('0x64'),'id'])});return null;})[_0x4bc24a('0x49')](function(_0xb2d469){const _0x24bbd0=_0x4bc24a;let _0x57a92b;_0x132bd6=_0xb2d469||[];const _0x39ba6f=[];if(_0xb2d469){for(let _0x2bf20c=0x0;_0x2bf20c<_0xb2d469[_0x24bbd0('0xa')];_0x2bf20c+=0x1){const _0x307f8f=_0xb2d469[_0x2bf20c][_0x24bbd0('0x1a')]({'plain':!![]});_0x13c881[_0x24bbd0('0x41')]=_0x66936c['body'][_0x24bbd0('0x41')]?_0x66936c['body'][_0x24bbd0('0x41')]:_0x13c881['dialCheckDuplicateType'];switch(_0x13c881[_0x24bbd0('0x41')]){case _0x24bbd0('0x6'):_0x57a92b=squel[_0x24bbd0('0x6e')]()['into'](_0x24bbd0('0x58'))['fromQuery']([_0x24bbd0('0x2'),_0x24bbd0('0x22'),_0x24bbd0('0x3c'),_0x24bbd0('0x4c'),_0x24bbd0('0x9'),'createdAt','updatedAt'],squel['select']()[_0x24bbd0('0x43')]('phone',_0x24bbd0('0x2'))[_0x24bbd0('0x43')](_0x24bbd0('0x35'),_0x24bbd0('0x22'))['field']('id',_0x24bbd0('0x3c'))['field'](_0x307f8f[_0x24bbd0('0x21')][_0x24bbd0('0x32')](),'ListId')[_0x24bbd0('0x43')](_0x66936c['params']['id'][_0x24bbd0('0x32')](),_0x24bbd0('0x9'))[_0x24bbd0('0x43')](_0x24bbd0('0x35'),'createdAt')['field'](_0x24bbd0('0x35'),'updatedAt')[_0x24bbd0('0x46')](_0x24bbd0('0x61'))['where'](_0x24bbd0('0x31'))[_0x24bbd0('0x13')](_0x24bbd0('0x17'),_0x307f8f[_0x24bbd0('0x21')][_0x24bbd0('0x32')]())[_0x24bbd0('0x13')]('phone\x20IS\x20NOT\x20NULL')[_0x24bbd0('0x13')](_0x24bbd0('0x28'),squel['select']()[_0x24bbd0('0x43')]('COALESCE(calleridnum,\x27\x27)')[_0x24bbd0('0x46')]('cm_hopper_final')['where'](_0x24bbd0('0x4e'),_0x66936c[_0x24bbd0('0x1')]['id'][_0x24bbd0('0x32')]()))['where'](_0x24bbd0('0x28'),squel[_0x24bbd0('0xe')]()['field'](_0x24bbd0('0x27'))[_0x24bbd0('0x46')](_0x24bbd0('0x58'))[_0x24bbd0('0x13')](_0x24bbd0('0x4e'),_0x66936c[_0x24bbd0('0x1')]['id'][_0x24bbd0('0x32')]())))['toString']();break;case'onlyIfOpen':_0x57a92b=squel[_0x24bbd0('0x6e')]()[_0x24bbd0('0x1f')]('cm_hopper')[_0x24bbd0('0x5c')]([_0x24bbd0('0x2'),_0x24bbd0('0x22'),_0x24bbd0('0x3c'),_0x24bbd0('0x4c'),_0x24bbd0('0x9'),_0x24bbd0('0x3b'),_0x24bbd0('0x7')],squel[_0x24bbd0('0xe')]()[_0x24bbd0('0x43')](_0x24bbd0('0x2'),_0x24bbd0('0x2'))[_0x24bbd0('0x43')]('NOW()',_0x24bbd0('0x22'))[_0x24bbd0('0x43')]('id',_0x24bbd0('0x3c'))['field'](_0x307f8f[_0x24bbd0('0x21')][_0x24bbd0('0x32')](),_0x24bbd0('0x4c'))[_0x24bbd0('0x43')](_0x66936c[_0x24bbd0('0x1')]['id'][_0x24bbd0('0x32')](),_0x24bbd0('0x9'))['field'](_0x24bbd0('0x35'),'createdAt')[_0x24bbd0('0x43')](_0x24bbd0('0x35'),_0x24bbd0('0x7'))[_0x24bbd0('0x46')](_0x24bbd0('0x61'))[_0x24bbd0('0x13')](_0x24bbd0('0x31'))[_0x24bbd0('0x13')](_0x24bbd0('0x17'),_0x307f8f[_0x24bbd0('0x21')][_0x24bbd0('0x32')]())['where'](_0x24bbd0('0x2f'))[_0x24bbd0('0x13')](_0x24bbd0('0x28'),squel[_0x24bbd0('0xe')]()['field'](_0x24bbd0('0x27'))['from']('cm_hopper')['where'](_0x24bbd0('0x4e'),_0x66936c[_0x24bbd0('0x1')]['id'][_0x24bbd0('0x32')]())))[_0x24bbd0('0x32')]();break;default:_0x57a92b=squel['insert']()[_0x24bbd0('0x1f')](_0x24bbd0('0x58'))[_0x24bbd0('0x5c')]([_0x24bbd0('0x2'),'scheduledAt',_0x24bbd0('0x3c'),'ListId',_0x24bbd0('0x9'),_0x24bbd0('0x3b'),_0x24bbd0('0x7')],squel[_0x24bbd0('0xe')]()[_0x24bbd0('0x43')]('phone','phone')[_0x24bbd0('0x43')](_0x24bbd0('0x35'),_0x24bbd0('0x22'))['field']('id',_0x24bbd0('0x3c'))['field'](_0x307f8f[_0x24bbd0('0x21')]['toString'](),_0x24bbd0('0x4c'))[_0x24bbd0('0x43')](_0x66936c[_0x24bbd0('0x1')]['id'][_0x24bbd0('0x32')](),_0x24bbd0('0x9'))[_0x24bbd0('0x43')]('NOW()',_0x24bbd0('0x3b'))[_0x24bbd0('0x43')](_0x24bbd0('0x35'),_0x24bbd0('0x7'))[_0x24bbd0('0x46')](_0x24bbd0('0x61'))[_0x24bbd0('0x13')](_0x24bbd0('0x31'))['where'](_0x24bbd0('0x17'),_0x307f8f[_0x24bbd0('0x21')][_0x24bbd0('0x32')]())['where']('phone\x20IS\x20NOT\x20NULL'))[_0x24bbd0('0x32')]();}_0x39ba6f[_0x24bbd0('0x2c')](db[_0x24bbd0('0x47')][_0x24bbd0('0x3e')](_0x57a92b));}return Promise[_0x24bbd0('0x5d')](_0x39ba6f);}})[_0x4bc24a('0x49')](function(){return _0x132bd6;})[_0x4bc24a('0x49')](respondWithResult(_0x26de1a,null))[_0x4bc24a('0x4b')](handleError(_0x26de1a,null));},exports['removeLists']=function(_0x2bd771,_0x13a42f){const _0x2236c0=_0x1d78ee;return db[_0x2236c0('0xb')][_0x2236c0('0x51')]({'where':{'id':_0x2bd771[_0x2236c0('0x1')]['id']}})['then'](handleEntityNotFound(_0x13a42f,null))[_0x2236c0('0x49')](function(_0x5b9548){const _0xa08b33=_0x2236c0;if(_0x5b9548)return _0x5b9548[_0xa08b33('0x4d')](_0x2bd771[_0xa08b33('0x3e')]['ids']);})[_0x2236c0('0x49')](function(_0x7f109a){const _0x483c99=_0x2236c0;if(_0x7f109a)return db[_0x483c99('0x24')][_0x483c99('0x48')]({'where':{'ListId':_0x2bd771['query']['ids'],'CampaignId':_0x2bd771[_0x483c99('0x1')]['id']}})['then'](function(){return _0x7f109a;});})[_0x2236c0('0x49')](respondWithStatusCode(_0x13a42f,null))[_0x2236c0('0x4b')](handleError(_0x13a42f,null));},exports['getBlackLists']=function(_0x168e26,_0x2a92b3){const _0x5414bf=_0x1d78ee;let _0x3c1d0b={'raw':!![],'where':{}};const _0x88f2ed={},_0x554dc5={'count':0x0,'rows':[]};return db[_0x5414bf('0xb')][_0x5414bf('0x51')]({'where':{'id':_0x168e26[_0x5414bf('0x1')]['id']}})[_0x5414bf('0x49')](handleEntityNotFound(_0x2a92b3,null))[_0x5414bf('0x49')](function(_0x1b57a8){const _0x45a6b7=_0x5414bf;if(_0x1b57a8)return _0x88f2ed[_0x45a6b7('0x56')]=_[_0x45a6b7('0x1c')](db[_0x45a6b7('0x0')]['rawAttributes']),_0x88f2ed[_0x45a6b7('0x3e')]=_['keys'](_0x168e26[_0x45a6b7('0x3e')]),_0x88f2ed[_0x45a6b7('0x44')]=_['intersection'](_0x88f2ed['model'],_0x88f2ed[_0x45a6b7('0x3e')]),_0x3c1d0b[_0x45a6b7('0x69')]=_[_0x45a6b7('0x40')](_0x88f2ed[_0x45a6b7('0x56')],qs[_0x45a6b7('0x4')](_0x168e26[_0x45a6b7('0x3e')][_0x45a6b7('0x4')])),_0x3c1d0b[_0x45a6b7('0x69')]=_0x3c1d0b['attributes']['length']?_0x3c1d0b[_0x45a6b7('0x69')]:_0x88f2ed[_0x45a6b7('0x56')],typeof _0x168e26[_0x45a6b7('0x3e')]['nolimit']===_0x45a6b7('0x68')&&(_0x3c1d0b[_0x45a6b7('0x1d')]=qs[_0x45a6b7('0x1d')](_0x168e26[_0x45a6b7('0x3e')]['limit']),_0x3c1d0b[_0x45a6b7('0x5a')]=qs[_0x45a6b7('0x5a')](_0x168e26[_0x45a6b7('0x3e')][_0x45a6b7('0x5a')])),_0x3c1d0b[_0x45a6b7('0x6b')]=qs[_0x45a6b7('0x50')](_0x168e26[_0x45a6b7('0x3e')][_0x45a6b7('0x50')]),_0x3c1d0b[_0x45a6b7('0x13')]=qs[_0x45a6b7('0x44')](_[_0x45a6b7('0xd')](_0x168e26[_0x45a6b7('0x3e')],_0x88f2ed[_0x45a6b7('0x44')])),_0x3c1d0b[_0x45a6b7('0x13')][_0x45a6b7('0x9')]=_0x1b57a8['id'],_0x168e26[_0x45a6b7('0x3e')]['filter']&&(_0x3c1d0b[_0x45a6b7('0x13')]=_['merge'](_0x3c1d0b['where'],{[Op['or']]:_[_0x45a6b7('0x52')](_0x3c1d0b['attributes'],function(_0x2fa03e){const _0x57fc38=_0x45a6b7,_0x314819={};return _0x314819[_0x2fa03e]={[Op[_0x57fc38('0x60')]]:'%'+_0x168e26['query'][_0x57fc38('0x29')]+'%'},_0x314819;})})),_0x3c1d0b=_['merge']({},_0x3c1d0b,_0x168e26[_0x45a6b7('0x36')]),db[_0x45a6b7('0x0')][_0x45a6b7('0x30')]({'where':_0x3c1d0b[_0x45a6b7('0x13')]})[_0x45a6b7('0x49')](function(_0x3e7aa0){const _0x1cf245=_0x45a6b7;return _0x554dc5[_0x1cf245('0x30')]=_0x3e7aa0,_0x168e26[_0x1cf245('0x3e')][_0x1cf245('0x67')]&&(_0x3c1d0b['include']=[{'all':!![]}]),db['CmList']['findAll'](_0x3c1d0b);})[_0x45a6b7('0x49')](function(_0x15255d){const _0x65dea9=_0x45a6b7;return _0x554dc5[_0x65dea9('0x10')]=_0x15255d,_0x554dc5;});})['then'](respondWithFilteredResult(_0x2a92b3,_0x3c1d0b))[_0x5414bf('0x4b')](handleError(_0x2a92b3,null));},exports['addBlackLists']=function(_0x52cfd1,_0x94e334){const _0x4bfa9b=_0x1d78ee;let _0x2157c5;return db[_0x4bfa9b('0xb')]['findOne']({'where':{'id':_0x52cfd1[_0x4bfa9b('0x1')]['id']}})[_0x4bfa9b('0x49')](handleEntityNotFound(_0x94e334,null))['then'](function(_0x58d78b){const _0x3b564a=_0x4bfa9b;if(_0x58d78b)return _0x58d78b[_0x3b564a('0x57')](_0x52cfd1['body']['ids'],{'through':_[_0x3b564a('0xf')](_0x52cfd1[_0x3b564a('0x12')],[_0x3b564a('0x64'),'id'])});return null;})['then'](function(_0x397474){const _0x2a8ee4=_0x4bfa9b;let _0x3c65f7;_0x2157c5=_0x397474||[];const _0x10127d=[];if(_0x397474){for(let _0x3cd265=0x0;_0x3cd265<_0x397474[_0x2a8ee4('0xa')];_0x3cd265+=0x1){const _0x536cbb=_0x397474[_0x3cd265]['get']({'plain':!![]});_0x3c65f7=squel[_0x2a8ee4('0x6e')]()[_0x2a8ee4('0x1f')](_0x2a8ee4('0x55'))[_0x2a8ee4('0x5c')](['phone','ContactId','ListId',_0x2a8ee4('0x9'),'createdAt',_0x2a8ee4('0x7')],squel[_0x2a8ee4('0xe')]()['field']('phone',_0x2a8ee4('0x2'))[_0x2a8ee4('0x43')]('id','ContactId')[_0x2a8ee4('0x43')](_0x536cbb[_0x2a8ee4('0x21')][_0x2a8ee4('0x32')](),'ListId')[_0x2a8ee4('0x43')](_0x52cfd1['params']['id'][_0x2a8ee4('0x32')](),'CampaignId')['field']('NOW()','createdAt')[_0x2a8ee4('0x43')](_0x2a8ee4('0x35'),'updatedAt')[_0x2a8ee4('0x46')](_0x2a8ee4('0x61'))[_0x2a8ee4('0x13')]('deletedAt\x20IS\x20NULL')[_0x2a8ee4('0x13')](_0x2a8ee4('0x17'),_0x536cbb[_0x2a8ee4('0x21')]['toString']())[_0x2a8ee4('0x13')](_0x2a8ee4('0x2f')))[_0x2a8ee4('0x32')](),_0x10127d[_0x2a8ee4('0x2c')](db[_0x2a8ee4('0x47')]['query'](_0x3c65f7));}return Promise['all'](_0x10127d);}})['then'](function(){return _0x2157c5;})[_0x4bfa9b('0x49')](respondWithResult(_0x94e334,null))[_0x4bfa9b('0x4b')](handleError(_0x94e334,null));},exports[_0x1d78ee('0x18')]=function(_0xc91d07,_0x400779){const _0x1d5776=_0x1d78ee;return db[_0x1d5776('0xb')][_0x1d5776('0x51')]({'where':{'id':_0xc91d07[_0x1d5776('0x1')]['id']}})[_0x1d5776('0x49')](handleEntityNotFound(_0x400779,null))[_0x1d5776('0x49')](function(_0x3f86e9){const _0x3e916a=_0x1d5776;if(_0x3f86e9)return _0x3f86e9[_0x3e916a('0x18')](_0xc91d07[_0x3e916a('0x3e')]['ids']);})[_0x1d5776('0x49')](function(_0x234c75){const _0x1e4afc=_0x1d5776;if(_0x234c75)return db[_0x1e4afc('0xc')][_0x1e4afc('0x48')]({'where':{'ListId':_0xc91d07[_0x1e4afc('0x3e')]['ids'],'CampaignId':_0xc91d07[_0x1e4afc('0x1')]['id']}})[_0x1e4afc('0x49')](function(){return _0x234c75;});})['then'](respondWithStatusCode(_0x400779,null))[_0x1d5776('0x4b')](handleError(_0x400779,null));}; \ No newline at end of file diff --git a/server/api/campaign/campaign.model.js b/server/api/campaign/campaign.model.js index 835ed1f..411c4ec 100644 --- a/server/api/campaign/campaign.model.js +++ b/server/api/campaign/campaign.model.js @@ -1 +1 @@ -const a43_0x5c2e=['define','Campaign','campaigns','./campaign.attributes','exports'];(function(_0x1d7138,_0x5c2e36){const _0x111916=function(_0x568d04){while(--_0x568d04){_0x1d7138['push'](_0x1d7138['shift']());}};_0x111916(++_0x5c2e36);}(a43_0x5c2e,0x131));const a43_0x1119=function(_0x1d7138,_0x5c2e36){_0x1d7138=_0x1d7138-0x0;let _0x111916=a43_0x5c2e[_0x1d7138];return _0x111916;};const _0x3572a9=a43_0x1119;'use strict';const attributes=require(_0x3572a9('0x3'));module[_0x3572a9('0x4')]=function(_0x568d04){const _0x203972=_0x3572a9,_0x17d939=_0x568d04[_0x203972('0x0')](_0x203972('0x1'),attributes,{'tableName':_0x203972('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x17d939;}; \ No newline at end of file +const a43_0x3909=['exports','./campaign.attributes','define','Campaign','campaigns'];(function(_0x1b5c67,_0x390909){const _0x2efdd3=function(_0x10c0ec){while(--_0x10c0ec){_0x1b5c67['push'](_0x1b5c67['shift']());}};_0x2efdd3(++_0x390909);}(a43_0x3909,0x12f));const a43_0x2efd=function(_0x1b5c67,_0x390909){_0x1b5c67=_0x1b5c67-0x0;let _0x2efdd3=a43_0x3909[_0x1b5c67];return _0x2efdd3;};const _0x477c6d=a43_0x2efd;'use strict';const attributes=require(_0x477c6d('0x3'));module[_0x477c6d('0x2')]=function(_0x10c0ec){const _0x1e3411=_0x477c6d,_0x247538=_0x10c0ec[_0x1e3411('0x4')](_0x1e3411('0x0'),attributes,{'tableName':_0x1e3411('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x247538;}; \ No newline at end of file diff --git a/server/api/campaign/campaign.rpc.js b/server/api/campaign/campaign.rpc.js index 6b0110e..c2ff30c 100644 --- a/server/api/campaign/campaign.rpc.js +++ b/server/api/campaign/campaign.rpc.js @@ -1 +1 @@ -const a44_0x1d21=['message','catch','map','lodash','where','debug','model','then','error','options','include','limit','rpc','findAll','GetCampaign','stringify','Campaign','attributes','../../mysqldb'];(function(_0x365804,_0x1d2165){const _0x69a5fb=function(_0x262f83){while(--_0x262f83){_0x365804['push'](_0x365804['shift']());}};_0x69a5fb(++_0x1d2165);}(a44_0x1d21,0x115));const a44_0x69a5=function(_0x365804,_0x1d2165){_0x365804=_0x365804-0x0;let _0x69a5fb=a44_0x1d21[_0x365804];return _0x69a5fb;};const _0x459f67=a44_0x69a5;'use strict';const _=require(_0x459f67('0xb')),db=require(_0x459f67('0x7'))['db'],logger=require('../../config/logger')(_0x459f67('0x1'));exports[_0x459f67('0x3')]=function(_0x262f83){const _0x4974b0=this;return new Promise(function(_0x2e4245,_0x5593f9){const _0x1921b8=a44_0x69a5;return db[_0x1921b8('0x5')][_0x1921b8('0x2')]({'raw':_0x262f83[_0x1921b8('0x11')]?_0x262f83[_0x1921b8('0x11')]['raw']===undefined?!![]:![]:!![],'where':_0x262f83[_0x1921b8('0x11')]?_0x262f83[_0x1921b8('0x11')][_0x1921b8('0xc')]||null:null,'attributes':_0x262f83[_0x1921b8('0x11')]?_0x262f83[_0x1921b8('0x11')][_0x1921b8('0x6')]||null:null,'limit':_0x262f83[_0x1921b8('0x11')]?_0x262f83['options'][_0x1921b8('0x0')]||null:null,'include':_0x262f83[_0x1921b8('0x11')]?_0x262f83[_0x1921b8('0x11')]['include']?_[_0x1921b8('0xa')](_0x262f83['options'][_0x1921b8('0x12')],function(_0x241a55){const _0x4725a2=_0x1921b8;return{'model':db[_0x241a55['model']],'as':_0x241a55['as'],'attributes':_0x241a55[_0x4725a2('0x6')],'include':_0x241a55[_0x4725a2('0x12')]?_[_0x4725a2('0xa')](_0x241a55[_0x4725a2('0x12')],function(_0x3794c4){const _0x427c4c=_0x4725a2;return{'model':db[_0x3794c4[_0x427c4c('0xe')]],'as':_0x3794c4['as'],'attributes':_0x3794c4['attributes'],'include':_0x3794c4['include']?_[_0x427c4c('0xa')](_0x3794c4[_0x427c4c('0x12')],function(_0x4a2f5e){const _0x303217=_0x427c4c;return{'model':db[_0x4a2f5e[_0x303217('0xe')]],'as':_0x4a2f5e['as'],'attributes':_0x4a2f5e[_0x303217('0x6')]};}):[]};}):[]};}):[]:[]})[_0x1921b8('0xf')](function(_0xa349e6){const _0x4aa579=_0x1921b8;logger['info']('GetCampaign',_0x262f83),logger[_0x4aa579('0xd')](_0x4aa579('0x3'),_0x262f83,JSON[_0x4aa579('0x4')](_0xa349e6)),_0x2e4245(_0xa349e6);})[_0x1921b8('0x9')](function(_0xfe626a){const _0x473ec6=_0x1921b8;logger['error'](_0x473ec6('0x3'),_0xfe626a[_0x473ec6('0x8')],_0x262f83),_0x5593f9(_0x4974b0[_0x473ec6('0x10')](0x1f4,_0xfe626a[_0x473ec6('0x8')]));});});}; \ No newline at end of file +const a44_0x1977=['raw','GetCampaign','../../mysqldb','where','findAll','info','debug','stringify','../../config/logger','map','error','attributes','model','options','include','rpc','then','Campaign','message','limit'];(function(_0x3ff745,_0x197709){const _0x14eeb5=function(_0x10b81a){while(--_0x10b81a){_0x3ff745['push'](_0x3ff745['shift']());}};_0x14eeb5(++_0x197709);}(a44_0x1977,0x107));const a44_0x14ee=function(_0x3ff745,_0x197709){_0x3ff745=_0x3ff745-0x0;let _0x14eeb5=a44_0x1977[_0x3ff745];return _0x14eeb5;};const _0x32513a=a44_0x14ee;'use strict';const _=require('lodash'),db=require(_0x32513a('0x13'))['db'],logger=require(_0x32513a('0x5'))(_0x32513a('0xc'));exports[_0x32513a('0x12')]=function(_0x10b81a){const _0x12af8d=this;return new Promise(function(_0x23dd1f,_0x38954f){const _0x2d5f5c=a44_0x14ee;return db[_0x2d5f5c('0xe')][_0x2d5f5c('0x1')]({'raw':_0x10b81a[_0x2d5f5c('0xa')]?_0x10b81a[_0x2d5f5c('0xa')][_0x2d5f5c('0x11')]===undefined?!![]:![]:!![],'where':_0x10b81a[_0x2d5f5c('0xa')]?_0x10b81a[_0x2d5f5c('0xa')][_0x2d5f5c('0x0')]||null:null,'attributes':_0x10b81a[_0x2d5f5c('0xa')]?_0x10b81a[_0x2d5f5c('0xa')][_0x2d5f5c('0x8')]||null:null,'limit':_0x10b81a['options']?_0x10b81a[_0x2d5f5c('0xa')][_0x2d5f5c('0x10')]||null:null,'include':_0x10b81a[_0x2d5f5c('0xa')]?_0x10b81a[_0x2d5f5c('0xa')][_0x2d5f5c('0xb')]?_['map'](_0x10b81a[_0x2d5f5c('0xa')][_0x2d5f5c('0xb')],function(_0x34dcaa){const _0x111744=_0x2d5f5c;return{'model':db[_0x34dcaa[_0x111744('0x9')]],'as':_0x34dcaa['as'],'attributes':_0x34dcaa[_0x111744('0x8')],'include':_0x34dcaa[_0x111744('0xb')]?_['map'](_0x34dcaa['include'],function(_0x3bb5d8){const _0x253873=_0x111744;return{'model':db[_0x3bb5d8[_0x253873('0x9')]],'as':_0x3bb5d8['as'],'attributes':_0x3bb5d8['attributes'],'include':_0x3bb5d8[_0x253873('0xb')]?_[_0x253873('0x6')](_0x3bb5d8[_0x253873('0xb')],function(_0x2cd5c8){const _0x4718b8=_0x253873;return{'model':db[_0x2cd5c8['model']],'as':_0x2cd5c8['as'],'attributes':_0x2cd5c8[_0x4718b8('0x8')]};}):[]};}):[]};}):[]:[]})[_0x2d5f5c('0xd')](function(_0x1a9d36){const _0xe2464b=_0x2d5f5c;logger[_0xe2464b('0x2')](_0xe2464b('0x12'),_0x10b81a),logger[_0xe2464b('0x3')](_0xe2464b('0x12'),_0x10b81a,JSON[_0xe2464b('0x4')](_0x1a9d36)),_0x23dd1f(_0x1a9d36);})['catch'](function(_0x2953f2){const _0x12b57a=_0x2d5f5c;logger[_0x12b57a('0x7')](_0x12b57a('0x12'),_0x2953f2[_0x12b57a('0xf')],_0x10b81a),_0x38954f(_0x12af8d['error'](0x1f4,_0x2953f2['message']));});});}; \ No newline at end of file diff --git a/server/api/campaign/index.js b/server/api/campaign/index.js index d843331..e443e03 100644 --- a/server/api/campaign/index.js +++ b/server/api/campaign/index.js @@ -1 +1 @@ -const a45_0x4f30=['getBlackLists','delete','clone','removeLists','/:id/hopper_histories','/:id/blacklists','./campaign.controller','/:id/hopper_black','/:id/lists','exports','isAuthenticated','getHoppers','/:id','getHopperFinals','/:id/hoppers','put','create','getHopperBlacks','get','removeBlackLists','post','addLists','/:id/clone'];(function(_0x146df3,_0x4f302a){const _0x57f778=function(_0x5e4744){while(--_0x5e4744){_0x146df3['push'](_0x146df3['shift']());}};_0x57f778(++_0x4f302a);}(a45_0x4f30,0xe8));const a45_0x57f7=function(_0x146df3,_0x4f302a){_0x146df3=_0x146df3-0x0;let _0x57f778=a45_0x4f30[_0x146df3];return _0x57f778;};const _0x5bb093=a45_0x57f7;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x5bb093('0x4'));router['get']('/',auth[_0x5bb093('0x8')](),controller['index']),router[_0x5bb093('0x10')](_0x5bb093('0xa'),auth[_0x5bb093('0x8')](),controller['show']),router[_0x5bb093('0x10')](_0x5bb093('0xc'),auth['isAuthenticated'](),controller[_0x5bb093('0x9')]),router[_0x5bb093('0x10')](_0x5bb093('0x2'),auth['isAuthenticated'](),controller['getHopperHistories']),router[_0x5bb093('0x10')]('/:id/hopper_finals',auth['isAuthenticated'](),controller[_0x5bb093('0xb')]),router[_0x5bb093('0x10')](_0x5bb093('0x5'),auth[_0x5bb093('0x8')](),controller[_0x5bb093('0xf')]),router[_0x5bb093('0x10')](_0x5bb093('0x6'),auth[_0x5bb093('0x8')](),controller['getLists']),router[_0x5bb093('0x10')](_0x5bb093('0x3'),auth[_0x5bb093('0x8')](),controller[_0x5bb093('0x15')]),router[_0x5bb093('0x12')]('/',auth[_0x5bb093('0x8')](),controller[_0x5bb093('0xe')]),router[_0x5bb093('0x12')](_0x5bb093('0x14'),auth[_0x5bb093('0x8')](),controller[_0x5bb093('0x0')]),router[_0x5bb093('0x12')](_0x5bb093('0x6'),auth['isAuthenticated'](),controller[_0x5bb093('0x13')]),router[_0x5bb093('0x12')]('/:id/blacklists',auth['isAuthenticated'](),controller['addBlackLists']),router[_0x5bb093('0xd')](_0x5bb093('0xa'),auth['isAuthenticated'](),controller['update']),router[_0x5bb093('0x16')](_0x5bb093('0xa'),auth['isAuthenticated'](),controller['destroy']),router['delete']('/:id/lists',auth[_0x5bb093('0x8')](),controller[_0x5bb093('0x1')]),router[_0x5bb093('0x16')](_0x5bb093('0x3'),auth['isAuthenticated'](),controller[_0x5bb093('0x11')]),module[_0x5bb093('0x7')]=router; \ No newline at end of file +const a45_0x4984=['/:id/hopper_histories','/:id/hoppers','/:id/hopper_black','isAuthenticated','index','/:id/hopper_finals','getHopperFinals','getLists','create','removeLists','/:id/blacklists','update','get','getHopperHistories','addLists','post','express','clone','addBlackLists','/:id','getHopperBlacks','removeBlackLists','destroy','../../components/auth/service','delete','/:id/lists','getHoppers'];(function(_0x47f198,_0x49846c){const _0x3b1e7f=function(_0x18e6fe){while(--_0x18e6fe){_0x47f198['push'](_0x47f198['shift']());}};_0x3b1e7f(++_0x49846c);}(a45_0x4984,0xdf));const a45_0x3b1e=function(_0x47f198,_0x49846c){_0x47f198=_0x47f198-0x0;let _0x3b1e7f=a45_0x4984[_0x47f198];return _0x3b1e7f;};const _0x2dca2d=a45_0x3b1e;'use strict';const express=require(_0x2dca2d('0x9')),router=express['Router'](),auth=require(_0x2dca2d('0x10')),controller=require('./campaign.controller');router[_0x2dca2d('0x5')]('/',auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0x18')]),router[_0x2dca2d('0x5')](_0x2dca2d('0xc'),auth['isAuthenticated'](),controller['show']),router[_0x2dca2d('0x5')](_0x2dca2d('0x15'),auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0x13')]),router['get'](_0x2dca2d('0x14'),auth['isAuthenticated'](),controller[_0x2dca2d('0x6')]),router[_0x2dca2d('0x5')](_0x2dca2d('0x19'),auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0x1a')]),router[_0x2dca2d('0x5')](_0x2dca2d('0x16'),auth['isAuthenticated'](),controller[_0x2dca2d('0xd')]),router[_0x2dca2d('0x5')]('/:id/lists',auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0x0')]),router[_0x2dca2d('0x5')](_0x2dca2d('0x3'),auth[_0x2dca2d('0x17')](),controller['getBlackLists']),router[_0x2dca2d('0x8')]('/',auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0x1')]),router[_0x2dca2d('0x8')]('/:id/clone',auth['isAuthenticated'](),controller[_0x2dca2d('0xa')]),router[_0x2dca2d('0x8')](_0x2dca2d('0x12'),auth['isAuthenticated'](),controller[_0x2dca2d('0x7')]),router[_0x2dca2d('0x8')](_0x2dca2d('0x3'),auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0xb')]),router['put'](_0x2dca2d('0xc'),auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0x4')]),router[_0x2dca2d('0x11')]('/:id',auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0xf')]),router[_0x2dca2d('0x11')](_0x2dca2d('0x12'),auth['isAuthenticated'](),controller[_0x2dca2d('0x2')]),router[_0x2dca2d('0x11')](_0x2dca2d('0x3'),auth[_0x2dca2d('0x17')](),controller[_0x2dca2d('0xe')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.attributes.js b/server/api/cannedAnswer/cannedAnswer.attributes.js index 9b5e8da..bb321c2 100644 --- a/server/api/cannedAnswer/cannedAnswer.attributes.js +++ b/server/api/cannedAnswer/cannedAnswer.attributes.js @@ -1 +1 @@ -const a46_0x575c=['STRING','sequelize','key','getDataValue','exports','VIRTUAL'];(function(_0x2cb533,_0x575c92){const _0x2564c7=function(_0x30aead){while(--_0x30aead){_0x2cb533['push'](_0x2cb533['shift']());}};_0x2564c7(++_0x575c92);}(a46_0x575c,0x1d5));const a46_0x2564=function(_0x2cb533,_0x575c92){_0x2cb533=_0x2cb533-0x0;let _0x2564c7=a46_0x575c[_0x2cb533];return _0x2564c7;};const _0xd9bab1=a46_0x2564;'use strict';const Sequelize=require(_0xd9bab1('0x0'));module[_0xd9bab1('0x3')]={'key':{'type':Sequelize[_0xd9bab1('0x5')],'allowNull':![]},'value':{'type':Sequelize['TEXT'],'allowNull':![]},'description':{'type':Sequelize['STRING']},'name':{'type':Sequelize[_0xd9bab1('0x4')],'get':function(){const _0x277746=_0xd9bab1;return this[_0x277746('0x2')](_0x277746('0x1'));}}}; \ No newline at end of file +const a46_0x2c7e=['TEXT','STRING','VIRTUAL','key','exports','sequelize','getDataValue'];(function(_0x328319,_0x2c7e6f){const _0x3b7a0e=function(_0x219d04){while(--_0x219d04){_0x328319['push'](_0x328319['shift']());}};_0x3b7a0e(++_0x2c7e6f);}(a46_0x2c7e,0x1b6));const a46_0x3b7a=function(_0x328319,_0x2c7e6f){_0x328319=_0x328319-0x0;let _0x3b7a0e=a46_0x2c7e[_0x328319];return _0x3b7a0e;};const _0x43074e=a46_0x3b7a;'use strict';const Sequelize=require(_0x43074e('0x1'));module[_0x43074e('0x0')]={'key':{'type':Sequelize[_0x43074e('0x4')],'allowNull':![]},'value':{'type':Sequelize[_0x43074e('0x3')],'allowNull':![]},'description':{'type':Sequelize[_0x43074e('0x4')]},'name':{'type':Sequelize[_0x43074e('0x5')],'get':function(){const _0xa56595=_0x43074e;return this[_0xa56595('0x2')](_0xa56595('0x6'));}}}; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.controller.js b/server/api/cannedAnswer/cannedAnswer.controller.js index 822308f..ac59aa9 100644 --- a/server/api/cannedAnswer/cannedAnswer.controller.js +++ b/server/api/cannedAnswer/cannedAnswer.controller.js @@ -1 +1 @@ -const a47_0x3475=['user','model','SmsAccountId','body','catch','Sequelize','userProfileId','params','name','key','length','then','sort','ChatWebsiteId','nolimit','type','fields','order','merge','../../config/logger','json','includeAll','end','The\x20inserted\x20key\x20already\x20exists.','attributes','undefined','map','keys','autoAssociation','offset','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','show','intersection','filters','ValidationError','where','index','role','send','options','lodash','stack','findOne','CannedAnswer','include','status','query','VIRTUAL','count','pick','sequelize','limit','rows','error','set','create','UserProfileResource','api','MailAccountId','filter','CannedAnswers','OpenchannelAccountId','rawAttributes'];(function(_0x5c55e1,_0x347569){const _0x27a0ec=function(_0x1ec0b1){while(--_0x1ec0b1){_0x5c55e1['push'](_0x5c55e1['shift']());}};_0x27a0ec(++_0x347569);}(a47_0x3475,0x1df));const a47_0x27a0=function(_0x5c55e1,_0x347569){_0x5c55e1=_0x5c55e1-0x0;let _0x27a0ec=a47_0x3475[_0x5c55e1];return _0x27a0ec;};const _0x34ab14=a47_0x27a0;'use strict';const _=require(_0x34ab14('0xa')),qs=require('../../components/parsers/qs'),logger=require(_0x34ab14('0x34'))(_0x34ab14('0x1b')),db=require('../../mysqldb')['db'],{Op}=require(_0x34ab14('0x14'));function respondWithResult(_0x1ec0b1,_0x4d4737){return _0x4d4737=_0x4d4737||0xc8,function(_0x5403c1){const _0x5dffff=a47_0x27a0;if(_0x5403c1)return _0x1ec0b1[_0x5dffff('0xf')](_0x4d4737)[_0x5dffff('0x35')](_0x5403c1);};}function respondWithFilteredResult(_0x3a1fb9,_0x15320b){return function(_0x519416){const _0x4462f3=a47_0x27a0;if(_0x519416){const _0x20780a=_0x519416[_0x4462f3('0x12')],_0x174866=_0x15320b[_0x4462f3('0x3e')];let _0x2cdf03=_0x15320b[_0x4462f3('0x3e')]+_0x15320b['limit'],_0x32ccae;return _0x2cdf03>=_0x20780a?(_0x2cdf03=_0x20780a,_0x32ccae=0xc8):_0x32ccae=0xce,_0x3a1fb9['status'](_0x32ccae),_0x3a1fb9[_0x4462f3('0x18')]('Content-Range',_0x174866+'-'+_0x2cdf03+'/'+_0x20780a)[_0x4462f3('0x35')](_0x519416);}return null;};}function saveUpdates(_0x6cc856){return function(_0x13c8cb){const _0x47635c=a47_0x27a0;if(_0x13c8cb)return _0x13c8cb['update'](_0x6cc856)[_0x47635c('0x2c')](function(_0x121ee9){return _0x121ee9;});return null;};}function removeEntity(_0x6ea242){return function(_0x728f5a){const _0x28544d=a47_0x27a0;if(_0x728f5a)return _0x728f5a['destroy']()[_0x28544d('0x2c')](function(){const _0x9a3d86=_0x28544d,_0xd95c99=_0x728f5a[_0x9a3d86('0x3f')]({'plain':!![]}),_0x379867=_0x9a3d86('0x1e');return db[_0x9a3d86('0x1a')]['destroy']({'where':{'type':_0x379867,'resourceId':_0xd95c99['id']}})[_0x9a3d86('0x2c')](function(){return _0x728f5a;});})['then'](function(){const _0x383bd0=_0x28544d;_0x6ea242[_0x383bd0('0xf')](0xcc)[_0x383bd0('0x37')]();});};}function handleEntityNotFound(_0x54b1c8){return function(_0x4851e9){return!_0x4851e9&&_0x54b1c8['sendStatus'](0x194),_0x4851e9;};}function handleError(_0x189789,_0x3980d4){return _0x3980d4=_0x3980d4||0x1f4,function(_0x4595d4){const _0x3c7405=a47_0x27a0;logger[_0x3c7405('0x17')](_0x4595d4[_0x3c7405('0xb')]),_0x4595d4['name']&&delete _0x4595d4[_0x3c7405('0x29')],_0x189789[_0x3c7405('0xf')](_0x3980d4)[_0x3c7405('0x8')](_0x4595d4);};}exports[_0x34ab14('0x6')]=function(_0x141c65,_0x2413ee){const _0x598183=_0x34ab14;let _0x5d5510={};const _0x42f920={},_0x41d494={'count':0x0,'rows':[]},_0xf90a5a=_[_0x598183('0x3b')](db[_0x598183('0xd')][_0x598183('0x20')],function(_0x5a87e0){const _0x151d08=_0x598183;return{'name':_0x5a87e0['fieldName'],'type':_0x5a87e0[_0x151d08('0x30')][_0x151d08('0x2a')]};});_0x42f920[_0x598183('0x22')]=_['map'](_0xf90a5a,_0x598183('0x29')),_0x42f920[_0x598183('0x10')]=_['keys'](_0x141c65[_0x598183('0x10')]),_0x42f920[_0x598183('0x3')]=_[_0x598183('0x2')](_0x42f920[_0x598183('0x22')],_0x42f920[_0x598183('0x10')]),_0x5d5510[_0x598183('0x39')]=_[_0x598183('0x2')](_0x42f920[_0x598183('0x22')],qs[_0x598183('0x31')](_0x141c65[_0x598183('0x10')][_0x598183('0x31')])),_0x5d5510[_0x598183('0x39')]=_0x5d5510[_0x598183('0x39')][_0x598183('0x2b')]?_0x5d5510[_0x598183('0x39')]:_0x42f920[_0x598183('0x22')];typeof _0x141c65[_0x598183('0x10')][_0x598183('0x2f')]===_0x598183('0x3a')&&(_0x5d5510['limit']=qs[_0x598183('0x15')](_0x141c65[_0x598183('0x10')]['limit']),_0x5d5510[_0x598183('0x3e')]=qs['offset'](_0x141c65['query'][_0x598183('0x3e')]));_0x5d5510[_0x598183('0x32')]=qs[_0x598183('0x2d')](_0x141c65[_0x598183('0x10')][_0x598183('0x2d')]),_0x5d5510[_0x598183('0x5')]=qs['filters'](_[_0x598183('0x13')](_0x141c65[_0x598183('0x10')],_0x42f920['filters']),_0xf90a5a);_0x141c65[_0x598183('0x10')][_0x598183('0x1d')]&&(_0x5d5510['where']=_[_0x598183('0x33')](_0x5d5510['where'],{[Op['or']]:_['map'](_0xf90a5a,function(_0x384db3){const _0x4660f6=_0x598183;if(_0x384db3[_0x4660f6('0x30')]!==_0x4660f6('0x11')){const _0x422965={};return _0x422965[_0x384db3[_0x4660f6('0x29')]]={[Op['like']]:'%'+_0x141c65[_0x4660f6('0x10')][_0x4660f6('0x1d')]+'%'},_0x422965;}})}));_0x5d5510=_[_0x598183('0x33')]({},_0x5d5510,_0x141c65[_0x598183('0x9')]);const _0x540d88={'where':_0x5d5510['where']};return db[_0x598183('0xd')][_0x598183('0x12')](_0x540d88)['then'](function(_0x1b6a68){const _0x94bece=_0x598183;return _0x41d494['count']=_0x1b6a68,_0x141c65[_0x94bece('0x10')][_0x94bece('0x36')]&&(_0x5d5510[_0x94bece('0xe')]=[{'all':!![]}]),db[_0x94bece('0xd')]['findAll'](_0x5d5510);})['then'](function(_0x2d74b1){const _0x263503=_0x598183;return _0x41d494[_0x263503('0x16')]=_0x2d74b1,_0x41d494;})['then'](respondWithFilteredResult(_0x2413ee,_0x5d5510))[_0x598183('0x25')](handleError(_0x2413ee,null));},exports[_0x34ab14('0x1')]=function(_0x500142,_0x3fb7d4){const _0x50f97d=_0x34ab14;let _0x303ba1={'raw':!![],'where':{'id':_0x500142[_0x50f97d('0x28')]['id']}};const _0x2ad358={};return _0x2ad358['model']=_[_0x50f97d('0x3c')](db['CannedAnswer'][_0x50f97d('0x20')]),_0x2ad358[_0x50f97d('0x10')]=_[_0x50f97d('0x3c')](_0x500142[_0x50f97d('0x10')]),_0x2ad358[_0x50f97d('0x3')]=_[_0x50f97d('0x2')](_0x2ad358[_0x50f97d('0x22')],_0x2ad358[_0x50f97d('0x10')]),_0x303ba1[_0x50f97d('0x39')]=_['intersection'](_0x2ad358[_0x50f97d('0x22')],qs[_0x50f97d('0x31')](_0x500142[_0x50f97d('0x10')][_0x50f97d('0x31')])),_0x303ba1[_0x50f97d('0x39')]=_0x303ba1[_0x50f97d('0x39')][_0x50f97d('0x2b')]?_0x303ba1[_0x50f97d('0x39')]:_0x2ad358[_0x50f97d('0x22')],_0x500142[_0x50f97d('0x10')][_0x50f97d('0x36')]&&(_0x303ba1[_0x50f97d('0xe')]=[{'all':!![]}]),_0x303ba1=_[_0x50f97d('0x33')]({},_0x303ba1,_0x500142[_0x50f97d('0x9')]),db[_0x50f97d('0xd')][_0x50f97d('0xc')](_0x303ba1)[_0x50f97d('0x2c')](handleEntityNotFound(_0x3fb7d4,null))['then'](respondWithResult(_0x3fb7d4,null))[_0x50f97d('0x25')](handleError(_0x3fb7d4,null));},exports['update']=function(_0x3891e7,_0x1fa16b){const _0xcef074=_0x34ab14;return _0x3891e7['body']['id']&&delete _0x3891e7[_0xcef074('0x24')]['id'],db[_0xcef074('0xd')][_0xcef074('0xc')]({'where':{'id':_0x3891e7[_0xcef074('0x28')]['id']}})[_0xcef074('0x2c')](handleEntityNotFound(_0x1fa16b,null))[_0xcef074('0x2c')](saveUpdates(_0x3891e7[_0xcef074('0x24')],null))[_0xcef074('0x2c')](respondWithResult(_0x1fa16b,null))[_0xcef074('0x25')](handleError(_0x1fa16b,null));},exports['destroy']=function(_0x53a7eb,_0x5e5ddb){const _0x2c315b=_0x34ab14;return db[_0x2c315b('0xd')][_0x2c315b('0xc')]({'where':{'id':_0x53a7eb[_0x2c315b('0x28')]['id']}})[_0x2c315b('0x2c')](handleEntityNotFound(_0x5e5ddb,null))[_0x2c315b('0x2c')](removeEntity(_0x5e5ddb,null))['catch'](handleError(_0x5e5ddb,null));},exports[_0x34ab14('0x19')]=function(_0x54df25,_0x11e4a0){const _0x123d25=_0x34ab14,_0x4301fe={'key':_0x54df25[_0x123d25('0x24')][_0x123d25('0x2a')]};if(_0x54df25['body'][_0x123d25('0x1c')])_0x4301fe[_0x123d25('0x1c')]=_0x54df25[_0x123d25('0x24')]['MailAccountId'];else{if(_0x54df25[_0x123d25('0x24')][_0x123d25('0x23')])_0x4301fe[_0x123d25('0x23')]=_0x54df25[_0x123d25('0x24')][_0x123d25('0x23')];else{if(_0x54df25['body'][_0x123d25('0x1f')])_0x4301fe['OpenchannelAccountId']=_0x54df25['body'][_0x123d25('0x1f')];else _0x54df25['body'][_0x123d25('0x2e')]&&(_0x4301fe[_0x123d25('0x2e')]=_0x54df25[_0x123d25('0x24')][_0x123d25('0x2e')]);}}return db[_0x123d25('0xd')]['findOne']({'where':_0x4301fe})[_0x123d25('0x2c')](function(_0x22f59f){const _0x3e5b4f=_0x123d25;if(_0x22f59f)throw new db[(_0x3e5b4f('0x26'))][(_0x3e5b4f('0x4'))](_0x3e5b4f('0x38'));return db['CannedAnswer'][_0x3e5b4f('0x19')](_0x54df25['body']);})[_0x123d25('0x2c')](function(_0x52e13a){const _0x5763ae=_0x123d25,_0x1fe3cf=_0x54df25[_0x5763ae('0x21')][_0x5763ae('0x3f')]({'plain':!![]});if(!_0x1fe3cf)throw new Error(_0x5763ae('0x0'));if(_0x1fe3cf[_0x5763ae('0x7')]===_0x5763ae('0x21')){const _0x18dc67=_0x52e13a[_0x5763ae('0x3f')]({'plain':!![]});return db['UserProfileSection'][_0x5763ae('0xc')]({'where':{'name':'CannedAnswers','userProfileId':_0x1fe3cf[_0x5763ae('0x27')]},'raw':!![]})['then'](function(_0x2d9612){const _0x2d6c6b=_0x5763ae;return _0x2d9612&&_0x2d9612[_0x2d6c6b('0x3d')]===0x0?db[_0x2d6c6b('0x1a')][_0x2d6c6b('0x19')]({'name':_0x18dc67[_0x2d6c6b('0x29')],'resourceId':_0x18dc67['id'],'type':_0x2d9612['name'],'sectionId':_0x2d9612['id']},{})[_0x2d6c6b('0x2c')](function(){return _0x52e13a;}):_0x52e13a;})['catch'](function(_0x26232b){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x26232b);throw _0x26232b;});}return _0x52e13a;})[_0x123d25('0x2c')](respondWithResult(_0x11e4a0,0xc9))[_0x123d25('0x25')](handleError(_0x11e4a0,null));}; \ No newline at end of file +const a47_0x5291=['Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','keys','json','type','then','api','sendStatus','lodash','UserProfileSection','update','status','user','length','like','get','catch','sequelize','limit','create','order','pick','fields','params','options','CannedAnswers','filters','findAll','where','offset','ChatWebsiteId','ValidationError','fieldName','nolimit','include','../../config/logger','findOne','CannedAnswer','includeAll','set','map','intersection','query','show','The\x20inserted\x20key\x20already\x20exists.','merge','end','count','name','body','attributes','error','OpenchannelAccountId','../../components/parsers/qs','index','role','VIRTUAL','MailAccountId','model','destroy','UserProfileResource','filter','rawAttributes','undefined','SmsAccountId'];(function(_0x383ea0,_0x52910d){const _0x4f58a6=function(_0x3c812b){while(--_0x3c812b){_0x383ea0['push'](_0x383ea0['shift']());}};_0x4f58a6(++_0x52910d);}(a47_0x5291,0xa6));const a47_0x4f58=function(_0x383ea0,_0x52910d){_0x383ea0=_0x383ea0-0x0;let _0x4f58a6=a47_0x5291[_0x383ea0];return _0x4f58a6;};const _0x194700=a47_0x4f58;'use strict';const _=require(_0x194700('0x21')),qs=require(_0x194700('0xe')),logger=require(_0x194700('0x3c'))(_0x194700('0x1f')),db=require('../../mysqldb')['db'],{Op}=require(_0x194700('0x2a'));function respondWithResult(_0x3c812b,_0x49f5b0){return _0x49f5b0=_0x49f5b0||0xc8,function(_0x182210){const _0x67d39=a47_0x4f58;if(_0x182210)return _0x3c812b[_0x67d39('0x24')](_0x49f5b0)[_0x67d39('0x1c')](_0x182210);};}function respondWithFilteredResult(_0x1a29f5,_0x5cf92b){return function(_0x209f07){const _0x915f5a=a47_0x4f58;if(_0x209f07){const _0x31043d=_0x209f07[_0x915f5a('0x8')],_0x10212c=_0x5cf92b[_0x915f5a('0x36')];let _0x18e541=_0x5cf92b[_0x915f5a('0x36')]+_0x5cf92b[_0x915f5a('0x2b')],_0x5645d5;return _0x18e541>=_0x31043d?(_0x18e541=_0x31043d,_0x5645d5=0xc8):_0x5645d5=0xce,_0x1a29f5[_0x915f5a('0x24')](_0x5645d5),_0x1a29f5[_0x915f5a('0x0')]('Content-Range',_0x10212c+'-'+_0x18e541+'/'+_0x31043d)['json'](_0x209f07);}return null;};}function saveUpdates(_0x1d8e07){return function(_0x374e6a){const _0x1af11e=a47_0x4f58;if(_0x374e6a)return _0x374e6a['update'](_0x1d8e07)[_0x1af11e('0x1e')](function(_0x3ccb71){return _0x3ccb71;});return null;};}function removeEntity(_0x848e27){return function(_0x2bc7a0){const _0x24f74c=a47_0x4f58;if(_0x2bc7a0)return _0x2bc7a0['destroy']()[_0x24f74c('0x1e')](function(){const _0x30cc5c=_0x24f74c,_0x5b368d=_0x2bc7a0[_0x30cc5c('0x28')]({'plain':!![]}),_0x5615b5=_0x30cc5c('0x32');return db[_0x30cc5c('0x15')][_0x30cc5c('0x14')]({'where':{'type':_0x5615b5,'resourceId':_0x5b368d['id']}})[_0x30cc5c('0x1e')](function(){return _0x2bc7a0;});})[_0x24f74c('0x1e')](function(){const _0x30c738=_0x24f74c;_0x848e27[_0x30c738('0x24')](0xcc)[_0x30c738('0x7')]();});};}function handleEntityNotFound(_0x29a41a){return function(_0x1a1368){const _0x18db61=a47_0x4f58;return!_0x1a1368&&_0x29a41a[_0x18db61('0x20')](0x194),_0x1a1368;};}function handleError(_0x58725c,_0x221b67){return _0x221b67=_0x221b67||0x1f4,function(_0xab6686){const _0x58c0ef=a47_0x4f58;logger[_0x58c0ef('0xc')](_0xab6686['stack']),_0xab6686['name']&&delete _0xab6686[_0x58c0ef('0x9')],_0x58725c['status'](_0x221b67)['send'](_0xab6686);};}exports[_0x194700('0xf')]=function(_0xee9fc,_0x4f907c){const _0x30937d=_0x194700;let _0x172963={};const _0x2c3c17={},_0x42077b={'count':0x0,'rows':[]},_0x25f9d5=_[_0x30937d('0x1')](db[_0x30937d('0x3e')][_0x30937d('0x17')],function(_0x2a4149){const _0x4c0fc0=_0x30937d;return{'name':_0x2a4149[_0x4c0fc0('0x39')],'type':_0x2a4149[_0x4c0fc0('0x1d')]['key']};});_0x2c3c17[_0x30937d('0x13')]=_[_0x30937d('0x1')](_0x25f9d5,'name'),_0x2c3c17[_0x30937d('0x3')]=_[_0x30937d('0x1b')](_0xee9fc[_0x30937d('0x3')]),_0x2c3c17[_0x30937d('0x33')]=_[_0x30937d('0x2')](_0x2c3c17[_0x30937d('0x13')],_0x2c3c17[_0x30937d('0x3')]),_0x172963[_0x30937d('0xb')]=_[_0x30937d('0x2')](_0x2c3c17[_0x30937d('0x13')],qs['fields'](_0xee9fc['query'][_0x30937d('0x2f')])),_0x172963[_0x30937d('0xb')]=_0x172963[_0x30937d('0xb')][_0x30937d('0x26')]?_0x172963[_0x30937d('0xb')]:_0x2c3c17[_0x30937d('0x13')];typeof _0xee9fc[_0x30937d('0x3')][_0x30937d('0x3a')]===_0x30937d('0x18')&&(_0x172963[_0x30937d('0x2b')]=qs['limit'](_0xee9fc[_0x30937d('0x3')][_0x30937d('0x2b')]),_0x172963[_0x30937d('0x36')]=qs[_0x30937d('0x36')](_0xee9fc[_0x30937d('0x3')][_0x30937d('0x36')]));_0x172963[_0x30937d('0x2d')]=qs['sort'](_0xee9fc[_0x30937d('0x3')]['sort']),_0x172963[_0x30937d('0x35')]=qs[_0x30937d('0x33')](_[_0x30937d('0x2e')](_0xee9fc[_0x30937d('0x3')],_0x2c3c17[_0x30937d('0x33')]),_0x25f9d5);_0xee9fc[_0x30937d('0x3')]['filter']&&(_0x172963[_0x30937d('0x35')]=_['merge'](_0x172963['where'],{[Op['or']]:_[_0x30937d('0x1')](_0x25f9d5,function(_0x420e53){const _0x560ae2=_0x30937d;if(_0x420e53[_0x560ae2('0x1d')]!==_0x560ae2('0x11')){const _0x47c656={};return _0x47c656[_0x420e53[_0x560ae2('0x9')]]={[Op[_0x560ae2('0x27')]]:'%'+_0xee9fc[_0x560ae2('0x3')][_0x560ae2('0x16')]+'%'},_0x47c656;}})}));_0x172963=_['merge']({},_0x172963,_0xee9fc[_0x30937d('0x31')]);const _0x498be0={'where':_0x172963[_0x30937d('0x35')]};return db[_0x30937d('0x3e')][_0x30937d('0x8')](_0x498be0)['then'](function(_0x414ac6){const _0x4cb7ea=_0x30937d;return _0x42077b['count']=_0x414ac6,_0xee9fc[_0x4cb7ea('0x3')][_0x4cb7ea('0x3f')]&&(_0x172963['include']=[{'all':!![]}]),db['CannedAnswer'][_0x4cb7ea('0x34')](_0x172963);})[_0x30937d('0x1e')](function(_0x3279c6){return _0x42077b['rows']=_0x3279c6,_0x42077b;})[_0x30937d('0x1e')](respondWithFilteredResult(_0x4f907c,_0x172963))[_0x30937d('0x29')](handleError(_0x4f907c,null));},exports[_0x194700('0x4')]=function(_0x50f05d,_0x290fa7){const _0x30294f=_0x194700;let _0xae7e81={'raw':!![],'where':{'id':_0x50f05d[_0x30294f('0x30')]['id']}};const _0x2f8aa1={};return _0x2f8aa1[_0x30294f('0x13')]=_[_0x30294f('0x1b')](db[_0x30294f('0x3e')][_0x30294f('0x17')]),_0x2f8aa1[_0x30294f('0x3')]=_[_0x30294f('0x1b')](_0x50f05d[_0x30294f('0x3')]),_0x2f8aa1['filters']=_[_0x30294f('0x2')](_0x2f8aa1[_0x30294f('0x13')],_0x2f8aa1[_0x30294f('0x3')]),_0xae7e81[_0x30294f('0xb')]=_[_0x30294f('0x2')](_0x2f8aa1['model'],qs[_0x30294f('0x2f')](_0x50f05d[_0x30294f('0x3')][_0x30294f('0x2f')])),_0xae7e81[_0x30294f('0xb')]=_0xae7e81[_0x30294f('0xb')][_0x30294f('0x26')]?_0xae7e81['attributes']:_0x2f8aa1[_0x30294f('0x13')],_0x50f05d[_0x30294f('0x3')][_0x30294f('0x3f')]&&(_0xae7e81[_0x30294f('0x3b')]=[{'all':!![]}]),_0xae7e81=_[_0x30294f('0x6')]({},_0xae7e81,_0x50f05d[_0x30294f('0x31')]),db[_0x30294f('0x3e')][_0x30294f('0x3d')](_0xae7e81)['then'](handleEntityNotFound(_0x290fa7,null))['then'](respondWithResult(_0x290fa7,null))['catch'](handleError(_0x290fa7,null));},exports[_0x194700('0x23')]=function(_0x4f1707,_0x42ee09){const _0x21eba8=_0x194700;return _0x4f1707['body']['id']&&delete _0x4f1707[_0x21eba8('0xa')]['id'],db[_0x21eba8('0x3e')][_0x21eba8('0x3d')]({'where':{'id':_0x4f1707['params']['id']}})[_0x21eba8('0x1e')](handleEntityNotFound(_0x42ee09,null))[_0x21eba8('0x1e')](saveUpdates(_0x4f1707[_0x21eba8('0xa')],null))[_0x21eba8('0x1e')](respondWithResult(_0x42ee09,null))[_0x21eba8('0x29')](handleError(_0x42ee09,null));},exports[_0x194700('0x14')]=function(_0x3805a4,_0x5df979){const _0x275969=_0x194700;return db[_0x275969('0x3e')][_0x275969('0x3d')]({'where':{'id':_0x3805a4[_0x275969('0x30')]['id']}})[_0x275969('0x1e')](handleEntityNotFound(_0x5df979,null))[_0x275969('0x1e')](removeEntity(_0x5df979,null))[_0x275969('0x29')](handleError(_0x5df979,null));},exports[_0x194700('0x2c')]=function(_0x7e5b6a,_0x1d491e){const _0x4e41b5=_0x194700,_0x5aea58={'key':_0x7e5b6a[_0x4e41b5('0xa')]['key']};if(_0x7e5b6a[_0x4e41b5('0xa')][_0x4e41b5('0x12')])_0x5aea58[_0x4e41b5('0x12')]=_0x7e5b6a[_0x4e41b5('0xa')][_0x4e41b5('0x12')];else{if(_0x7e5b6a['body']['SmsAccountId'])_0x5aea58['SmsAccountId']=_0x7e5b6a[_0x4e41b5('0xa')][_0x4e41b5('0x19')];else{if(_0x7e5b6a['body']['OpenchannelAccountId'])_0x5aea58[_0x4e41b5('0xd')]=_0x7e5b6a[_0x4e41b5('0xa')][_0x4e41b5('0xd')];else _0x7e5b6a['body'][_0x4e41b5('0x37')]&&(_0x5aea58['ChatWebsiteId']=_0x7e5b6a[_0x4e41b5('0xa')][_0x4e41b5('0x37')]);}}return db['CannedAnswer']['findOne']({'where':_0x5aea58})['then'](function(_0x179eca){const _0x374e24=_0x4e41b5;if(_0x179eca)throw new db['Sequelize'][(_0x374e24('0x38'))](_0x374e24('0x5'));return db[_0x374e24('0x3e')]['create'](_0x7e5b6a[_0x374e24('0xa')]);})[_0x4e41b5('0x1e')](function(_0x175100){const _0x32aad1=_0x4e41b5,_0x2616d5=_0x7e5b6a[_0x32aad1('0x25')]['get']({'plain':!![]});if(!_0x2616d5)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2616d5[_0x32aad1('0x10')]==='user'){const _0x1ee004=_0x175100[_0x32aad1('0x28')]({'plain':!![]});return db[_0x32aad1('0x22')][_0x32aad1('0x3d')]({'where':{'name':_0x32aad1('0x32'),'userProfileId':_0x2616d5['userProfileId']},'raw':!![]})['then'](function(_0x90ffc0){const _0x582807=_0x32aad1;return _0x90ffc0&&_0x90ffc0['autoAssociation']===0x0?db[_0x582807('0x15')]['create']({'name':_0x1ee004[_0x582807('0x9')],'resourceId':_0x1ee004['id'],'type':_0x90ffc0[_0x582807('0x9')],'sectionId':_0x90ffc0['id']},{})[_0x582807('0x1e')](function(){return _0x175100;}):_0x175100;})[_0x32aad1('0x29')](function(_0x3eb0f7){const _0x243d00=_0x32aad1;logger[_0x243d00('0xc')](_0x243d00('0x1a'),_0x3eb0f7);throw _0x3eb0f7;});}return _0x175100;})['then'](respondWithResult(_0x1d491e,0xc9))[_0x4e41b5('0x29')](handleError(_0x1d491e,null));}; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.model.js b/server/api/cannedAnswer/cannedAnswer.model.js index c627ecf..f8b6aa2 100644 --- a/server/api/cannedAnswer/cannedAnswer.model.js +++ b/server/api/cannedAnswer/cannedAnswer.model.js @@ -1 +1 @@ -const a48_0x4efa=['utf8mb4','exports','./cannedAnswer.attributes','utf8mb4_unicode_ci','tools_canned_answers','CannedAnswer'];(function(_0x39514e,_0x4efaf1){const _0x1ab2bf=function(_0x20c218){while(--_0x20c218){_0x39514e['push'](_0x39514e['shift']());}};_0x1ab2bf(++_0x4efaf1);}(a48_0x4efa,0x1cc));const a48_0x1ab2=function(_0x39514e,_0x4efaf1){_0x39514e=_0x39514e-0x0;let _0x1ab2bf=a48_0x4efa[_0x39514e];return _0x1ab2bf;};const _0x58ce81=a48_0x1ab2;'use strict';const attributes=require(_0x58ce81('0x4'));module[_0x58ce81('0x3')]=function(_0x20c218){const _0xb61c84=_0x58ce81,_0x151bdb=_0x20c218['define'](_0xb61c84('0x1'),attributes,{'tableName':_0xb61c84('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xb61c84('0x2'),'collate':_0xb61c84('0x5')});return _0x151bdb;}; \ No newline at end of file +const a48_0x43c7=['CannedAnswer','utf8mb4_unicode_ci','define','./cannedAnswer.attributes'];(function(_0x576bf1,_0x43c7dc){const _0x434fe1=function(_0x2bff83){while(--_0x2bff83){_0x576bf1['push'](_0x576bf1['shift']());}};_0x434fe1(++_0x43c7dc);}(a48_0x43c7,0xe1));const a48_0x434f=function(_0x576bf1,_0x43c7dc){_0x576bf1=_0x576bf1-0x0;let _0x434fe1=a48_0x43c7[_0x576bf1];return _0x434fe1;};const _0x22ee10=a48_0x434f;'use strict';const attributes=require(_0x22ee10('0x2'));module['exports']=function(_0x2bff83){const _0x4c303e=_0x22ee10,_0x172411=_0x2bff83[_0x4c303e('0x1')](_0x4c303e('0x3'),attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x4c303e('0x0')});return _0x172411;}; \ No newline at end of file diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js index 7f463b2..32f51fe 100644 --- a/server/api/cannedAnswer/index.js +++ b/server/api/cannedAnswer/index.js @@ -1 +1 @@ -const a49_0x365d=['destroy','update','get','express','put','isAuthenticated','show','../../components/auth/service','Router','index','exports','/:id','post'];(function(_0x4572f4,_0x365d1a){const _0xc6d997=function(_0x26e614){while(--_0x26e614){_0x4572f4['push'](_0x4572f4['shift']());}};_0xc6d997(++_0x365d1a);}(a49_0x365d,0xad));const a49_0xc6d9=function(_0x4572f4,_0x365d1a){_0x4572f4=_0x4572f4-0x0;let _0xc6d997=a49_0x365d[_0x4572f4];return _0xc6d997;};const _0x40a364=a49_0xc6d9;'use strict';const express=require(_0x40a364('0xc')),router=express[_0x40a364('0x4')](),auth=require(_0x40a364('0x3')),controller=require('./cannedAnswer.controller');router[_0x40a364('0xb')]('/',auth['isAuthenticated'](),controller[_0x40a364('0x5')]),router[_0x40a364('0xb')]('/:id',auth[_0x40a364('0x1')](),controller[_0x40a364('0x2')]),router[_0x40a364('0x8')]('/',auth['isAuthenticated'](),controller['create']),router[_0x40a364('0x0')](_0x40a364('0x7'),auth[_0x40a364('0x1')](),controller[_0x40a364('0xa')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x40a364('0x9')]),module[_0x40a364('0x6')]=router; \ No newline at end of file +const a49_0x53b2=['index','express','put','show','update','isAuthenticated','delete','/:id','exports','get','Router','create','post'];(function(_0x1d7fba,_0x53b233){const _0x57f4b3=function(_0x380265){while(--_0x380265){_0x1d7fba['push'](_0x1d7fba['shift']());}};_0x57f4b3(++_0x53b233);}(a49_0x53b2,0x165));const a49_0x57f4=function(_0x1d7fba,_0x53b233){_0x1d7fba=_0x1d7fba-0x0;let _0x57f4b3=a49_0x53b2[_0x1d7fba];return _0x57f4b3;};const _0x5cbf35=a49_0x57f4;'use strict';const express=require(_0x5cbf35('0x8')),router=express[_0x5cbf35('0x4')](),auth=require('../../components/auth/service'),controller=require('./cannedAnswer.controller');router['get']('/',auth[_0x5cbf35('0xc')](),controller[_0x5cbf35('0x7')]),router[_0x5cbf35('0x3')](_0x5cbf35('0x1'),auth[_0x5cbf35('0xc')](),controller[_0x5cbf35('0xa')]),router[_0x5cbf35('0x6')]('/',auth['isAuthenticated'](),controller[_0x5cbf35('0x5')]),router[_0x5cbf35('0x9')](_0x5cbf35('0x1'),auth['isAuthenticated'](),controller[_0x5cbf35('0xb')]),router[_0x5cbf35('0x0')](_0x5cbf35('0x1'),auth['isAuthenticated'](),controller['destroy']),module[_0x5cbf35('0x2')]=router; \ No newline at end of file diff --git a/server/api/cdr/cdr.attributes.js b/server/api/cdr/cdr.attributes.js index c245c48..2ccb0f5 100644 --- a/server/api/cdr/cdr.attributes.js +++ b/server/api/cdr/cdr.attributes.js @@ -1 +1 @@ -const a50_0x1684=['DATE','INTEGER','sequelize','exports','STRING','1970-01-01\x2000:00:01'];(function(_0x1483bf,_0x168442){const _0x45f615=function(_0x16eaa3){while(--_0x16eaa3){_0x1483bf['push'](_0x1483bf['shift']());}};_0x45f615(++_0x168442);}(a50_0x1684,0x1aa));const a50_0x45f6=function(_0x1483bf,_0x168442){_0x1483bf=_0x1483bf-0x0;let _0x45f615=a50_0x1684[_0x1483bf];return _0x45f615;};const _0x2e88b8=a50_0x45f6;'use strict';const Sequelize=require(_0x2e88b8('0x2'));module[_0x2e88b8('0x3')]={'calldate':{'type':Sequelize[_0x2e88b8('0x0')],'allowNull':![],'defaultValue':_0x2e88b8('0x5')},'clid':{'type':Sequelize[_0x2e88b8('0x4')]},'src':{'type':Sequelize['STRING']},'dst':{'type':Sequelize[_0x2e88b8('0x4')]},'dcontext':{'type':Sequelize[_0x2e88b8('0x4')]},'channel':{'type':Sequelize['STRING']},'dstchannel':{'type':Sequelize[_0x2e88b8('0x4')]},'lastapp':{'type':Sequelize[_0x2e88b8('0x4')]},'lastdata':{'type':Sequelize[_0x2e88b8('0x4')]},'duration':{'type':Sequelize[_0x2e88b8('0x1')],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize[_0x2e88b8('0x1')],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x2e88b8('0x4')]},'amaflags':{'type':Sequelize[_0x2e88b8('0x1')],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize[_0x2e88b8('0x4')]},'userfield':{'type':Sequelize[_0x2e88b8('0x4')]},'uniqueid':{'type':Sequelize[_0x2e88b8('0x4')]},'linkedid':{'type':Sequelize[_0x2e88b8('0x4')]},'sequence':{'type':Sequelize[_0x2e88b8('0x4')]},'peeraccount':{'type':Sequelize[_0x2e88b8('0x4')]},'type':{'type':Sequelize[_0x2e88b8('0x4')]},'tag':{'type':Sequelize[_0x2e88b8('0x4')]}}; \ No newline at end of file +const a50_0x2989=['DATE','1970-01-01\x2000:00:01','exports','INTEGER','STRING'];(function(_0x29bfb1,_0x298954){const _0x3b6929=function(_0x4aa93c){while(--_0x4aa93c){_0x29bfb1['push'](_0x29bfb1['shift']());}};_0x3b6929(++_0x298954);}(a50_0x2989,0x19e));const a50_0x3b69=function(_0x29bfb1,_0x298954){_0x29bfb1=_0x29bfb1-0x0;let _0x3b6929=a50_0x2989[_0x29bfb1];return _0x3b6929;};const _0x17ff6f=a50_0x3b69;'use strict';const Sequelize=require('sequelize');module[_0x17ff6f('0x3')]={'calldate':{'type':Sequelize[_0x17ff6f('0x1')],'allowNull':![],'defaultValue':_0x17ff6f('0x2')},'clid':{'type':Sequelize[_0x17ff6f('0x0')]},'src':{'type':Sequelize['STRING']},'dst':{'type':Sequelize[_0x17ff6f('0x0')]},'dcontext':{'type':Sequelize[_0x17ff6f('0x0')]},'channel':{'type':Sequelize[_0x17ff6f('0x0')]},'dstchannel':{'type':Sequelize[_0x17ff6f('0x0')]},'lastapp':{'type':Sequelize[_0x17ff6f('0x0')]},'lastdata':{'type':Sequelize['STRING']},'duration':{'type':Sequelize[_0x17ff6f('0x4')],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize[_0x17ff6f('0x4')],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x17ff6f('0x0')]},'amaflags':{'type':Sequelize[_0x17ff6f('0x4')],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize[_0x17ff6f('0x0')]},'userfield':{'type':Sequelize[_0x17ff6f('0x0')]},'uniqueid':{'type':Sequelize[_0x17ff6f('0x0')]},'linkedid':{'type':Sequelize['STRING']},'sequence':{'type':Sequelize[_0x17ff6f('0x0')]},'peeraccount':{'type':Sequelize[_0x17ff6f('0x0')]},'type':{'type':Sequelize[_0x17ff6f('0x0')]},'tag':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/cdr/cdr.controller.js b/server/api/cdr/cdr.controller.js index 604b48f..b5c195d 100644 --- a/server/api/cdr/cdr.controller.js +++ b/server/api/cdr/cdr.controller.js @@ -1 +1 @@ -const a51_0x1200=['includeAll','count','undefined','findAll','show','type','rawAttributes','Content-Range','json','order','findOne','fields','name','like','Cdr','model','map','offset','pick','stack','../../mysqldb','sequelize','VIRTUAL','length','query','sort','options','params','../../components/parsers/qs','describe','lodash','filters','body','attributes','limit','catch','keys','nolimit','sendStatus','include','where','rows','status','intersection','then','merge','end','create'];(function(_0x588caf,_0x1200e1){const _0x55f9ff=function(_0x1e1ea0){while(--_0x1e1ea0){_0x588caf['push'](_0x588caf['shift']());}};_0x55f9ff(++_0x1200e1);}(a51_0x1200,0x126));const a51_0x55f9=function(_0x588caf,_0x1200e1){_0x588caf=_0x588caf-0x0;let _0x55f9ff=a51_0x1200[_0x588caf];return _0x55f9ff;};const _0x3ede74=a51_0x55f9;'use strict';const _=require(_0x3ede74('0x18')),qs=require(_0x3ede74('0x16')),logger=require('../../config/logger')('api'),db=require(_0x3ede74('0xe'))['db'],{Op}=require(_0x3ede74('0xf'));function respondWithResult(_0x1e1ea0,_0x5917c1){return _0x5917c1=_0x5917c1||0xc8,function(_0x1dc26e){const _0x3fb575=a51_0x55f9;if(_0x1dc26e)return _0x1e1ea0[_0x3fb575('0x24')](_0x5917c1)[_0x3fb575('0x2')](_0x1dc26e);};}function respondWithFilteredResult(_0x50bda4,_0x51b6c9){return function(_0xfb8544){const _0x44d25b=a51_0x55f9;if(_0xfb8544){const _0x4c7226=_0xfb8544['count'],_0x576cfc=_0x51b6c9['offset'];let _0x1d9bc9=_0x51b6c9[_0x44d25b('0xb')]+_0x51b6c9[_0x44d25b('0x1c')],_0x35e3ca;return _0x1d9bc9>=_0x4c7226?(_0x1d9bc9=_0x4c7226,_0x35e3ca=0xc8):_0x35e3ca=0xce,_0x50bda4[_0x44d25b('0x24')](_0x35e3ca),_0x50bda4['set'](_0x44d25b('0x1'),_0x576cfc+'-'+_0x1d9bc9+'/'+_0x4c7226)[_0x44d25b('0x2')](_0xfb8544);}return null;};}function saveUpdates(_0x172c14){return function(_0x4e5b49){const _0x43cb79=a51_0x55f9;if(_0x4e5b49)return _0x4e5b49['update'](_0x172c14)[_0x43cb79('0x26')](function(_0x2ad5c5){return _0x2ad5c5;});return null;};}function removeEntity(_0x2a7f1d){return function(_0x4563f3){const _0x4aeaec=a51_0x55f9;if(_0x4563f3)return _0x4563f3['destroy']()[_0x4aeaec('0x26')](function(){const _0x266cf7=_0x4aeaec;_0x2a7f1d[_0x266cf7('0x24')](0xcc)[_0x266cf7('0x28')]();});};}function handleEntityNotFound(_0x19a1ec){return function(_0x28474a){const _0x342890=a51_0x55f9;return!_0x28474a&&_0x19a1ec[_0x342890('0x20')](0x194),_0x28474a;};}function handleError(_0x3fc725,_0x37917e){return _0x37917e=_0x37917e||0x1f4,function(_0x1ab7c1){const _0x15929f=a51_0x55f9;logger['error'](_0x1ab7c1[_0x15929f('0xd')]),_0x1ab7c1['name']&&delete _0x1ab7c1[_0x15929f('0x6')],_0x3fc725[_0x15929f('0x24')](_0x37917e)['send'](_0x1ab7c1);};}exports['index']=function(_0x3293da,_0x352c26){const _0x3fb2c1=_0x3ede74;let _0x2b25e3={};const _0x36fb5a={},_0xe67eab={'count':0x0,'rows':[]},_0xa77e84=_['map'](db[_0x3fb2c1('0x8')][_0x3fb2c1('0x0')],function(_0x4cd3f3){const _0x54f5f9=_0x3fb2c1;return{'name':_0x4cd3f3['fieldName'],'type':_0x4cd3f3[_0x54f5f9('0x2f')]['key']};});_0x36fb5a[_0x3fb2c1('0x9')]=_['map'](_0xa77e84,_0x3fb2c1('0x6')),_0x36fb5a[_0x3fb2c1('0x12')]=_[_0x3fb2c1('0x1e')](_0x3293da['query']),_0x36fb5a[_0x3fb2c1('0x19')]=_[_0x3fb2c1('0x25')](_0x36fb5a['model'],_0x36fb5a[_0x3fb2c1('0x12')]),_0x2b25e3[_0x3fb2c1('0x1b')]=_[_0x3fb2c1('0x25')](_0x36fb5a[_0x3fb2c1('0x9')],qs[_0x3fb2c1('0x5')](_0x3293da['query'][_0x3fb2c1('0x5')])),_0x2b25e3['attributes']=_0x2b25e3['attributes']['length']?_0x2b25e3[_0x3fb2c1('0x1b')]:_0x36fb5a['model'];typeof _0x3293da[_0x3fb2c1('0x12')][_0x3fb2c1('0x1f')]===_0x3fb2c1('0x2c')&&(_0x2b25e3[_0x3fb2c1('0x1c')]=qs[_0x3fb2c1('0x1c')](_0x3293da['query']['limit']),_0x2b25e3[_0x3fb2c1('0xb')]=qs[_0x3fb2c1('0xb')](_0x3293da['query'][_0x3fb2c1('0xb')]));_0x2b25e3[_0x3fb2c1('0x3')]=qs[_0x3fb2c1('0x13')](_0x3293da[_0x3fb2c1('0x12')]['sort']),_0x2b25e3['where']=qs[_0x3fb2c1('0x19')](_[_0x3fb2c1('0xc')](_0x3293da['query'],_0x36fb5a[_0x3fb2c1('0x19')]),_0xa77e84);_0x3293da['query']['filter']&&(_0x2b25e3[_0x3fb2c1('0x22')]=_[_0x3fb2c1('0x27')](_0x2b25e3[_0x3fb2c1('0x22')],{[Op['or']]:_[_0x3fb2c1('0xa')](_0xa77e84,function(_0x18b5bf){const _0x4c45fc=_0x3fb2c1;if(_0x18b5bf[_0x4c45fc('0x2f')]!==_0x4c45fc('0x10')){const _0x26a020={};return _0x26a020[_0x18b5bf['name']]={[Op[_0x4c45fc('0x7')]]:'%'+_0x3293da['query']['filter']+'%'},_0x26a020;}})}));_0x2b25e3=_[_0x3fb2c1('0x27')]({},_0x2b25e3,_0x3293da[_0x3fb2c1('0x14')]);const _0x335aea={'where':_0x2b25e3[_0x3fb2c1('0x22')]};return db[_0x3fb2c1('0x8')]['count'](_0x335aea)[_0x3fb2c1('0x26')](function(_0x38c403){const _0x316f2c=_0x3fb2c1;return _0xe67eab[_0x316f2c('0x2b')]=_0x38c403,_0x3293da[_0x316f2c('0x12')][_0x316f2c('0x2a')]&&(_0x2b25e3[_0x316f2c('0x21')]=[{'all':!![]}]),db['Cdr'][_0x316f2c('0x2d')](_0x2b25e3);})['then'](function(_0x16ed9d){const _0x776d6c=_0x3fb2c1;return _0xe67eab[_0x776d6c('0x23')]=_0x16ed9d,_0xe67eab;})[_0x3fb2c1('0x26')](respondWithFilteredResult(_0x352c26,_0x2b25e3))['catch'](handleError(_0x352c26,null));},exports[_0x3ede74('0x2e')]=function(_0x4ea964,_0x4ec700){const _0x561850=_0x3ede74;let _0x21a9f8={'raw':!![],'where':{'id':_0x4ea964[_0x561850('0x15')]['id']}};const _0x32e9d8={};return _0x32e9d8['model']=_['keys'](db[_0x561850('0x8')]['rawAttributes']),_0x32e9d8[_0x561850('0x12')]=_[_0x561850('0x1e')](_0x4ea964[_0x561850('0x12')]),_0x32e9d8['filters']=_[_0x561850('0x25')](_0x32e9d8[_0x561850('0x9')],_0x32e9d8[_0x561850('0x12')]),_0x21a9f8[_0x561850('0x1b')]=_['intersection'](_0x32e9d8[_0x561850('0x9')],qs[_0x561850('0x5')](_0x4ea964[_0x561850('0x12')]['fields'])),_0x21a9f8['attributes']=_0x21a9f8[_0x561850('0x1b')][_0x561850('0x11')]?_0x21a9f8[_0x561850('0x1b')]:_0x32e9d8['model'],_0x4ea964[_0x561850('0x12')][_0x561850('0x2a')]&&(_0x21a9f8[_0x561850('0x21')]=[{'all':!![]}]),_0x21a9f8=_[_0x561850('0x27')]({},_0x21a9f8,_0x4ea964[_0x561850('0x14')]),db[_0x561850('0x8')][_0x561850('0x4')](_0x21a9f8)[_0x561850('0x26')](handleEntityNotFound(_0x4ec700,null))[_0x561850('0x26')](respondWithResult(_0x4ec700,null))[_0x561850('0x1d')](handleError(_0x4ec700,null));},exports[_0x3ede74('0x29')]=function(_0x401887,_0x34ef9c){const _0x35501b=_0x3ede74;return db[_0x35501b('0x8')][_0x35501b('0x29')](_0x401887['body'],{})[_0x35501b('0x26')](respondWithResult(_0x34ef9c,0xc9))[_0x35501b('0x1d')](handleError(_0x34ef9c,null));},exports['update']=function(_0x47ea81,_0x4b51cd){const _0x2e0eae=_0x3ede74;return _0x47ea81['body']['id']&&delete _0x47ea81[_0x2e0eae('0x1a')]['id'],db[_0x2e0eae('0x8')][_0x2e0eae('0x4')]({'where':{'id':_0x47ea81[_0x2e0eae('0x15')]['id']}})['then'](handleEntityNotFound(_0x4b51cd,null))[_0x2e0eae('0x26')](saveUpdates(_0x47ea81[_0x2e0eae('0x1a')],null))[_0x2e0eae('0x26')](respondWithResult(_0x4b51cd,null))[_0x2e0eae('0x1d')](handleError(_0x4b51cd,null));},exports['destroy']=function(_0x58af77,_0x3ea966){const _0x513bc6=_0x3ede74;return db[_0x513bc6('0x8')][_0x513bc6('0x4')]({'where':{'id':_0x58af77[_0x513bc6('0x15')]['id']}})[_0x513bc6('0x26')](handleEntityNotFound(_0x3ea966,null))[_0x513bc6('0x26')](removeEntity(_0x3ea966,null))[_0x513bc6('0x1d')](handleError(_0x3ea966,null));},exports[_0x3ede74('0x17')]=function(_0x4694d1,_0x1d2693){const _0x50d86f=_0x3ede74;return db[_0x50d86f('0x8')][_0x50d86f('0x17')]()[_0x50d86f('0x26')](respondWithResult(_0x1d2693,null))[_0x50d86f('0x1d')](handleError(_0x1d2693,null));}; \ No newline at end of file +const a51_0x21c0=['catch','pick','limit','json','api','error','rawAttributes','length','sort','set','merge','VIRTUAL','map','params','where','type','index','findOne','attributes','../../config/logger','filters','Content-Range','like','options','filter','update','includeAll','model','../../components/parsers/qs','fieldName','fields','../../mysqldb','findAll','create','include','then','name','intersection','count','undefined','nolimit','body','sequelize','Cdr','destroy','describe','send','status','offset','order','query','stack'];(function(_0xfc8b38,_0x21c0e9){const _0x2fce50=function(_0x2ba39e){while(--_0x2ba39e){_0xfc8b38['push'](_0xfc8b38['shift']());}};_0x2fce50(++_0x21c0e9);}(a51_0x21c0,0x160));const a51_0x2fce=function(_0xfc8b38,_0x21c0e9){_0xfc8b38=_0xfc8b38-0x0;let _0x2fce50=a51_0x21c0[_0xfc8b38];return _0x2fce50;};const _0x27297d=a51_0x2fce;'use strict';const _=require('lodash'),qs=require(_0x27297d('0x28')),logger=require(_0x27297d('0x1f'))(_0x27297d('0x10')),db=require(_0x27297d('0x2b'))['db'],{Op}=require(_0x27297d('0x2'));function respondWithResult(_0x2ba39e,_0x96933d){return _0x96933d=_0x96933d||0xc8,function(_0x1382b5){const _0x5422f8=a51_0x2fce;if(_0x1382b5)return _0x2ba39e[_0x5422f8('0x7')](_0x96933d)[_0x5422f8('0xf')](_0x1382b5);};}function respondWithFilteredResult(_0x3d4149,_0x508450){return function(_0x39097c){const _0x4a5175=a51_0x2fce;if(_0x39097c){const _0x26258e=_0x39097c[_0x4a5175('0x32')],_0x28ac1e=_0x508450[_0x4a5175('0x8')];let _0x23749e=_0x508450[_0x4a5175('0x8')]+_0x508450['limit'],_0x1d7354;return _0x23749e>=_0x26258e?(_0x23749e=_0x26258e,_0x1d7354=0xc8):_0x1d7354=0xce,_0x3d4149[_0x4a5175('0x7')](_0x1d7354),_0x3d4149[_0x4a5175('0x15')](_0x4a5175('0x21'),_0x28ac1e+'-'+_0x23749e+'/'+_0x26258e)[_0x4a5175('0xf')](_0x39097c);}return null;};}function saveUpdates(_0x811146){return function(_0x2f5d9){const _0x33ed3f=a51_0x2fce;if(_0x2f5d9)return _0x2f5d9[_0x33ed3f('0x25')](_0x811146)['then'](function(_0x3d0bd0){return _0x3d0bd0;});return null;};}function removeEntity(_0x277b6f){return function(_0x540d01){if(_0x540d01)return _0x540d01['destroy']()['then'](function(){const _0x4fcb8c=a51_0x2fce;_0x277b6f[_0x4fcb8c('0x7')](0xcc)['end']();});};}function handleEntityNotFound(_0x472169){return function(_0x3bbabf){return!_0x3bbabf&&_0x472169['sendStatus'](0x194),_0x3bbabf;};}function handleError(_0x4b02ce,_0x219070){return _0x219070=_0x219070||0x1f4,function(_0xc7d03d){const _0x1c06b9=a51_0x2fce;logger[_0x1c06b9('0x11')](_0xc7d03d[_0x1c06b9('0xb')]),_0xc7d03d['name']&&delete _0xc7d03d['name'],_0x4b02ce['status'](_0x219070)[_0x1c06b9('0x6')](_0xc7d03d);};}exports[_0x27297d('0x1c')]=function(_0x4918c5,_0x1b6a88){const _0x10cf5b=_0x27297d;let _0x1e752f={};const _0x6de906={},_0x5c393e={'count':0x0,'rows':[]},_0x15a172=_[_0x10cf5b('0x18')](db[_0x10cf5b('0x3')][_0x10cf5b('0x12')],function(_0x2f3acc){const _0x7567d4=_0x10cf5b;return{'name':_0x2f3acc[_0x7567d4('0x29')],'type':_0x2f3acc[_0x7567d4('0x1b')]['key']};});_0x6de906[_0x10cf5b('0x27')]=_[_0x10cf5b('0x18')](_0x15a172,_0x10cf5b('0x30')),_0x6de906[_0x10cf5b('0xa')]=_['keys'](_0x4918c5[_0x10cf5b('0xa')]),_0x6de906['filters']=_[_0x10cf5b('0x31')](_0x6de906[_0x10cf5b('0x27')],_0x6de906[_0x10cf5b('0xa')]),_0x1e752f[_0x10cf5b('0x1e')]=_[_0x10cf5b('0x31')](_0x6de906[_0x10cf5b('0x27')],qs['fields'](_0x4918c5[_0x10cf5b('0xa')][_0x10cf5b('0x2a')])),_0x1e752f[_0x10cf5b('0x1e')]=_0x1e752f[_0x10cf5b('0x1e')]['length']?_0x1e752f[_0x10cf5b('0x1e')]:_0x6de906[_0x10cf5b('0x27')];typeof _0x4918c5['query'][_0x10cf5b('0x0')]===_0x10cf5b('0x33')&&(_0x1e752f['limit']=qs['limit'](_0x4918c5[_0x10cf5b('0xa')][_0x10cf5b('0xe')]),_0x1e752f['offset']=qs[_0x10cf5b('0x8')](_0x4918c5[_0x10cf5b('0xa')][_0x10cf5b('0x8')]));_0x1e752f[_0x10cf5b('0x9')]=qs[_0x10cf5b('0x14')](_0x4918c5[_0x10cf5b('0xa')][_0x10cf5b('0x14')]),_0x1e752f['where']=qs[_0x10cf5b('0x20')](_[_0x10cf5b('0xd')](_0x4918c5[_0x10cf5b('0xa')],_0x6de906[_0x10cf5b('0x20')]),_0x15a172);_0x4918c5[_0x10cf5b('0xa')][_0x10cf5b('0x24')]&&(_0x1e752f[_0x10cf5b('0x1a')]=_[_0x10cf5b('0x16')](_0x1e752f[_0x10cf5b('0x1a')],{[Op['or']]:_['map'](_0x15a172,function(_0x18df8b){const _0x4baa7d=_0x10cf5b;if(_0x18df8b['type']!==_0x4baa7d('0x17')){const _0xea5276={};return _0xea5276[_0x18df8b[_0x4baa7d('0x30')]]={[Op[_0x4baa7d('0x22')]]:'%'+_0x4918c5[_0x4baa7d('0xa')]['filter']+'%'},_0xea5276;}})}));_0x1e752f=_['merge']({},_0x1e752f,_0x4918c5[_0x10cf5b('0x23')]);const _0x653260={'where':_0x1e752f['where']};return db[_0x10cf5b('0x3')][_0x10cf5b('0x32')](_0x653260)[_0x10cf5b('0x2f')](function(_0x537b53){const _0x1ba06f=_0x10cf5b;return _0x5c393e[_0x1ba06f('0x32')]=_0x537b53,_0x4918c5[_0x1ba06f('0xa')][_0x1ba06f('0x26')]&&(_0x1e752f[_0x1ba06f('0x2e')]=[{'all':!![]}]),db['Cdr'][_0x1ba06f('0x2c')](_0x1e752f);})['then'](function(_0x28d49d){return _0x5c393e['rows']=_0x28d49d,_0x5c393e;})['then'](respondWithFilteredResult(_0x1b6a88,_0x1e752f))['catch'](handleError(_0x1b6a88,null));},exports['show']=function(_0x302edf,_0x405a02){const _0x22604e=_0x27297d;let _0x1d9eef={'raw':!![],'where':{'id':_0x302edf['params']['id']}};const _0x110586={};return _0x110586[_0x22604e('0x27')]=_['keys'](db[_0x22604e('0x3')][_0x22604e('0x12')]),_0x110586[_0x22604e('0xa')]=_['keys'](_0x302edf[_0x22604e('0xa')]),_0x110586[_0x22604e('0x20')]=_['intersection'](_0x110586[_0x22604e('0x27')],_0x110586[_0x22604e('0xa')]),_0x1d9eef[_0x22604e('0x1e')]=_['intersection'](_0x110586[_0x22604e('0x27')],qs[_0x22604e('0x2a')](_0x302edf[_0x22604e('0xa')][_0x22604e('0x2a')])),_0x1d9eef['attributes']=_0x1d9eef['attributes'][_0x22604e('0x13')]?_0x1d9eef[_0x22604e('0x1e')]:_0x110586['model'],_0x302edf[_0x22604e('0xa')][_0x22604e('0x26')]&&(_0x1d9eef[_0x22604e('0x2e')]=[{'all':!![]}]),_0x1d9eef=_[_0x22604e('0x16')]({},_0x1d9eef,_0x302edf['options']),db[_0x22604e('0x3')]['findOne'](_0x1d9eef)[_0x22604e('0x2f')](handleEntityNotFound(_0x405a02,null))[_0x22604e('0x2f')](respondWithResult(_0x405a02,null))[_0x22604e('0xc')](handleError(_0x405a02,null));},exports['create']=function(_0xca0081,_0x265f50){const _0x3de1a6=_0x27297d;return db['Cdr'][_0x3de1a6('0x2d')](_0xca0081[_0x3de1a6('0x1')],{})[_0x3de1a6('0x2f')](respondWithResult(_0x265f50,0xc9))[_0x3de1a6('0xc')](handleError(_0x265f50,null));},exports[_0x27297d('0x25')]=function(_0x5f4361,_0x2770b4){const _0x2b023a=_0x27297d;return _0x5f4361[_0x2b023a('0x1')]['id']&&delete _0x5f4361[_0x2b023a('0x1')]['id'],db[_0x2b023a('0x3')][_0x2b023a('0x1d')]({'where':{'id':_0x5f4361[_0x2b023a('0x19')]['id']}})['then'](handleEntityNotFound(_0x2770b4,null))[_0x2b023a('0x2f')](saveUpdates(_0x5f4361[_0x2b023a('0x1')],null))[_0x2b023a('0x2f')](respondWithResult(_0x2770b4,null))[_0x2b023a('0xc')](handleError(_0x2770b4,null));},exports[_0x27297d('0x4')]=function(_0x72cc51,_0x16f9bd){const _0x2d4ef1=_0x27297d;return db[_0x2d4ef1('0x3')]['findOne']({'where':{'id':_0x72cc51[_0x2d4ef1('0x19')]['id']}})[_0x2d4ef1('0x2f')](handleEntityNotFound(_0x16f9bd,null))[_0x2d4ef1('0x2f')](removeEntity(_0x16f9bd,null))['catch'](handleError(_0x16f9bd,null));},exports[_0x27297d('0x5')]=function(_0x50cc84,_0x3b094f){const _0x3385b5=_0x27297d;return db['Cdr'][_0x3385b5('0x5')]()['then'](respondWithResult(_0x3b094f,null))[_0x3385b5('0xc')](handleError(_0x3b094f,null));}; \ No newline at end of file diff --git a/server/api/cdr/cdr.model.js b/server/api/cdr/cdr.model.js index 5296682..1ee04b7 100644 --- a/server/api/cdr/cdr.model.js +++ b/server/api/cdr/cdr.model.js @@ -1 +1 @@ -const a52_0x4b2a=['disposition','accountcode','exports','calldate','Cdr','define','dst','src','uniqueid','cdr'];(function(_0x1444b4,_0x4b2a83){const _0x34fbb0=function(_0x100568){while(--_0x100568){_0x1444b4['push'](_0x1444b4['shift']());}};_0x34fbb0(++_0x4b2a83);}(a52_0x4b2a,0x185));const a52_0x34fb=function(_0x1444b4,_0x4b2a83){_0x1444b4=_0x1444b4-0x0;let _0x34fbb0=a52_0x4b2a[_0x1444b4];return _0x34fbb0;};const _0x3f3cb9=a52_0x34fb;'use strict';const attributes=require('./cdr.attributes');module[_0x3f3cb9('0x3')]=function(_0x100568){const _0x20a35d=_0x3f3cb9,_0x5b7027=_0x100568[_0x20a35d('0x6')](_0x20a35d('0x5'),attributes,{'tableName':_0x20a35d('0x0'),'paranoid':![],'indexes':[{'name':_0x20a35d('0x2'),'fields':[_0x20a35d('0x2')]},{'name':_0x20a35d('0x4'),'fields':[_0x20a35d('0x4')]},{'name':_0x20a35d('0x1'),'fields':[_0x20a35d('0x1')]},{'name':_0x20a35d('0x7'),'fields':[_0x20a35d('0x7')]},{'name':_0x20a35d('0x8'),'fields':[_0x20a35d('0x8')]},{'name':'uniqueid','fields':[_0x20a35d('0x9')]}],'timestamps':![]});return _0x5b7027;}; \ No newline at end of file +const a52_0x56b1=['src','accountcode','uniqueid','./cdr.attributes','disposition','Cdr','exports','define','calldate'];(function(_0x4ddea6,_0x56b1c0){const _0x1c465c=function(_0x5230ab){while(--_0x5230ab){_0x4ddea6['push'](_0x4ddea6['shift']());}};_0x1c465c(++_0x56b1c0);}(a52_0x56b1,0x18f));const a52_0x1c46=function(_0x4ddea6,_0x56b1c0){_0x4ddea6=_0x4ddea6-0x0;let _0x1c465c=a52_0x56b1[_0x4ddea6];return _0x1c465c;};const _0x4f8420=a52_0x1c46;'use strict';const attributes=require(_0x4f8420('0x0'));module[_0x4f8420('0x3')]=function(_0x5230ab){const _0x220d4f=_0x4f8420,_0x44bb38=_0x5230ab[_0x220d4f('0x4')](_0x220d4f('0x2'),attributes,{'tableName':'cdr','paranoid':![],'indexes':[{'name':_0x220d4f('0x7'),'fields':[_0x220d4f('0x7')]},{'name':_0x220d4f('0x5'),'fields':[_0x220d4f('0x5')]},{'name':_0x220d4f('0x1'),'fields':[_0x220d4f('0x1')]},{'name':'dst','fields':['dst']},{'name':_0x220d4f('0x6'),'fields':[_0x220d4f('0x6')]},{'name':_0x220d4f('0x8'),'fields':[_0x220d4f('0x8')]}],'timestamps':![]});return _0x44bb38;}; \ No newline at end of file diff --git a/server/api/cdr/index.js b/server/api/cdr/index.js index 4479250..b6d0fab 100644 --- a/server/api/cdr/index.js +++ b/server/api/cdr/index.js @@ -1 +1 @@ -const a53_0x48d5=['destroy','../../components/auth/service','get','update','index','express','exports','/describe','describe','isAuthenticated','./cdr.controller','delete','post','create','put'];(function(_0x2d1553,_0x48d58e){const _0x68d421=function(_0xbe0b03){while(--_0xbe0b03){_0x2d1553['push'](_0x2d1553['shift']());}};_0x68d421(++_0x48d58e);}(a53_0x48d5,0x133));const a53_0x68d4=function(_0x2d1553,_0x48d58e){_0x2d1553=_0x2d1553-0x0;let _0x68d421=a53_0x48d5[_0x2d1553];return _0x68d421;};const _0x223e3c=a53_0x68d4;'use strict';const express=require(_0x223e3c('0xd')),router=express['Router'](),auth=require(_0x223e3c('0x9')),controller=require(_0x223e3c('0x3'));router[_0x223e3c('0xa')]('/',auth[_0x223e3c('0x2')](),controller[_0x223e3c('0xc')]),router[_0x223e3c('0xa')](_0x223e3c('0x0'),auth[_0x223e3c('0x2')](),controller[_0x223e3c('0x1')]),router[_0x223e3c('0xa')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x223e3c('0x5')]('/',auth[_0x223e3c('0x2')](),controller[_0x223e3c('0x6')]),router[_0x223e3c('0x7')]('/:id',auth[_0x223e3c('0x2')](),controller[_0x223e3c('0xb')]),router[_0x223e3c('0x4')]('/:id',auth[_0x223e3c('0x2')](),controller[_0x223e3c('0x8')]),module[_0x223e3c('0xe')]=router; \ No newline at end of file +const a53_0x4db6=['/describe','./cdr.controller','get','delete','create','show','put','express','isAuthenticated','describe','/:id','update','Router','../../components/auth/service','post','destroy'];(function(_0x42b84a,_0x4db615){const _0x300cf9=function(_0x426b9d){while(--_0x426b9d){_0x42b84a['push'](_0x42b84a['shift']());}};_0x300cf9(++_0x4db615);}(a53_0x4db6,0x8b));const a53_0x300c=function(_0x42b84a,_0x4db615){_0x42b84a=_0x42b84a-0x0;let _0x300cf9=a53_0x4db6[_0x42b84a];return _0x300cf9;};const _0x2e400e=a53_0x300c;'use strict';const express=require(_0x2e400e('0xc')),router=express[_0x2e400e('0x1')](),auth=require(_0x2e400e('0x2')),controller=require(_0x2e400e('0x6'));router[_0x2e400e('0x7')]('/',auth[_0x2e400e('0xd')](),controller['index']),router[_0x2e400e('0x7')](_0x2e400e('0x5'),auth[_0x2e400e('0xd')](),controller[_0x2e400e('0xe')]),router['get']('/:id',auth[_0x2e400e('0xd')](),controller[_0x2e400e('0xa')]),router[_0x2e400e('0x3')]('/',auth['isAuthenticated'](),controller[_0x2e400e('0x9')]),router[_0x2e400e('0xb')](_0x2e400e('0xf'),auth['isAuthenticated'](),controller[_0x2e400e('0x0')]),router[_0x2e400e('0x8')](_0x2e400e('0xf'),auth[_0x2e400e('0xd')](),controller[_0x2e400e('0x4')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.attributes.js b/server/api/chatApplication/chatApplication.attributes.js index 4a4228e..a676939 100644 --- a/server/api/chatApplication/chatApplication.attributes.js +++ b/server/api/chatApplication/chatApplication.attributes.js @@ -1 +1 @@ -const a54_0x4168=['*,*,*,*','STRING','exports','sequelize'];(function(_0x522110,_0x4168e4){const _0x571c93=function(_0x3aba17){while(--_0x3aba17){_0x522110['push'](_0x522110['shift']());}};_0x571c93(++_0x4168e4);}(a54_0x4168,0x187));const a54_0x571c=function(_0x522110,_0x4168e4){_0x522110=_0x522110-0x0;let _0x571c93=a54_0x4168[_0x522110];return _0x571c93;};const _0x334e5e=a54_0x571c;'use strict';const Sequelize=require(_0x334e5e('0x0'));module[_0x334e5e('0x3')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize[_0x334e5e('0x2')],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x334e5e('0x2')]},'interval':{'type':Sequelize[_0x334e5e('0x2')],'defaultValue':_0x334e5e('0x1')}}; \ No newline at end of file +const a54_0x5f40=['exports','*,*,*,*','STRING','noop','sequelize','TEXT','INTEGER'];(function(_0x16567d,_0x5f4063){const _0x2369df=function(_0x3dec1f){while(--_0x3dec1f){_0x16567d['push'](_0x16567d['shift']());}};_0x2369df(++_0x5f4063);}(a54_0x5f40,0x1dc));const a54_0x2369=function(_0x16567d,_0x5f4063){_0x16567d=_0x16567d-0x0;let _0x2369df=a54_0x5f40[_0x16567d];return _0x2369df;};const _0x1542f7=a54_0x2369;'use strict';const Sequelize=require(_0x1542f7('0x4'));module[_0x1542f7('0x0')]={'priority':{'type':Sequelize[_0x1542f7('0x6')],'allowNull':![]},'app':{'type':Sequelize[_0x1542f7('0x2')],'allowNull':![],'defaultValue':_0x1542f7('0x3')},'appdata':{'type':Sequelize[_0x1542f7('0x5')]()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x1542f7('0x2')],'defaultValue':_0x1542f7('0x1')}}; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.controller.js b/server/api/chatApplication/chatApplication.controller.js index 2b9ba1f..226121d 100644 --- a/server/api/chatApplication/chatApplication.controller.js +++ b/server/api/chatApplication/chatApplication.controller.js @@ -1 +1 @@ -const a55_0x2833=['then','send','stack','keys','length','fields','includeAll','../../components/parsers/qs','filters','destroy','params','lodash','intersection','attributes','api','end','show','sendStatus','error','name','model','body','query','merge','../../mysqldb','status','findOne','include','catch','ChatApplication','update'];(function(_0xff5bfa,_0x2833c2){const _0x45de30=function(_0x308b44){while(--_0x308b44){_0xff5bfa['push'](_0xff5bfa['shift']());}};_0x45de30(++_0x2833c2);}(a55_0x2833,0x68));const a55_0x45de=function(_0xff5bfa,_0x2833c2){_0xff5bfa=_0xff5bfa-0x0;let _0x45de30=a55_0x2833[_0xff5bfa];return _0x45de30;};const _0x9feef8=a55_0x45de;'use strict';const _=require(_0x9feef8('0x0')),qs=require(_0x9feef8('0x1b')),logger=require('../../config/logger')(_0x9feef8('0x3')),db=require(_0x9feef8('0xd'))['db'];function respondWithResult(_0x308b44,_0x481cae){return _0x481cae=_0x481cae||0xc8,function(_0x52ce9d){const _0x19634c=a55_0x45de;if(_0x52ce9d)return _0x308b44[_0x19634c('0xe')](_0x481cae)['json'](_0x52ce9d);};}function saveUpdates(_0x19e0df){return function(_0xd2ea39){const _0x565660=a55_0x45de;if(_0xd2ea39)return _0xd2ea39[_0x565660('0x13')](_0x19e0df)[_0x565660('0x14')](function(_0x2455d0){return _0x2455d0;});return null;};}function removeEntity(_0x36a279){return function(_0x39f0d5){const _0x578635=a55_0x45de;if(_0x39f0d5)return _0x39f0d5[_0x578635('0x1d')]()['then'](function(){const _0x131e5c=_0x578635;_0x36a279[_0x131e5c('0xe')](0xcc)[_0x131e5c('0x4')]();});};}function handleEntityNotFound(_0x35e310){return function(_0x2d685b){const _0x4d9f70=a55_0x45de;return!_0x2d685b&&_0x35e310[_0x4d9f70('0x6')](0x194),_0x2d685b;};}function handleError(_0x973f5c,_0x552882){return _0x552882=_0x552882||0x1f4,function(_0x4c7234){const _0x7ce0e6=a55_0x45de;logger[_0x7ce0e6('0x7')](_0x4c7234[_0x7ce0e6('0x16')]),_0x4c7234[_0x7ce0e6('0x8')]&&delete _0x4c7234[_0x7ce0e6('0x8')],_0x973f5c['status'](_0x552882)[_0x7ce0e6('0x15')](_0x4c7234);};}exports[_0x9feef8('0x5')]=function(_0x40d365,_0x51d86f){const _0x32abbd=_0x9feef8;let _0x38a707={'raw':!![],'where':{'id':_0x40d365[_0x32abbd('0x1e')]['id']}};const _0x3b4ab2={};return _0x3b4ab2[_0x32abbd('0x9')]=_['keys'](db[_0x32abbd('0x12')]['rawAttributes']),_0x3b4ab2[_0x32abbd('0xb')]=_[_0x32abbd('0x17')](_0x40d365[_0x32abbd('0xb')]),_0x3b4ab2[_0x32abbd('0x1c')]=_[_0x32abbd('0x1')](_0x3b4ab2['model'],_0x3b4ab2[_0x32abbd('0xb')]),_0x38a707[_0x32abbd('0x2')]=_[_0x32abbd('0x1')](_0x3b4ab2['model'],qs[_0x32abbd('0x19')](_0x40d365[_0x32abbd('0xb')]['fields'])),_0x38a707[_0x32abbd('0x2')]=_0x38a707['attributes'][_0x32abbd('0x18')]?_0x38a707[_0x32abbd('0x2')]:_0x3b4ab2[_0x32abbd('0x9')],_0x40d365['query'][_0x32abbd('0x1a')]&&(_0x38a707[_0x32abbd('0x10')]=[{'all':!![]}]),_0x38a707=_[_0x32abbd('0xc')]({},_0x38a707,_0x40d365['options']),db[_0x32abbd('0x12')]['findOne'](_0x38a707)[_0x32abbd('0x14')](handleEntityNotFound(_0x51d86f,null))['then'](respondWithResult(_0x51d86f,null))[_0x32abbd('0x11')](handleError(_0x51d86f,null));},exports[_0x9feef8('0x13')]=function(_0x25d2ba,_0x2e6ae3){const _0x49f2a4=_0x9feef8;return _0x25d2ba[_0x49f2a4('0xa')]['id']&&delete _0x25d2ba[_0x49f2a4('0xa')]['id'],db[_0x49f2a4('0x12')]['findOne']({'where':{'id':_0x25d2ba['params']['id']}})[_0x49f2a4('0x14')](handleEntityNotFound(_0x2e6ae3,null))[_0x49f2a4('0x14')](saveUpdates(_0x25d2ba[_0x49f2a4('0xa')],null))[_0x49f2a4('0x14')](respondWithResult(_0x2e6ae3,null))['catch'](handleError(_0x2e6ae3,null));},exports['destroy']=function(_0x51ff33,_0xd87cd2){const _0x35266c=_0x9feef8;return db[_0x35266c('0x12')][_0x35266c('0xf')]({'where':{'id':_0x51ff33[_0x35266c('0x1e')]['id']}})['then'](handleEntityNotFound(_0xd87cd2,null))[_0x35266c('0x14')](removeEntity(_0xd87cd2,null))[_0x35266c('0x11')](handleError(_0xd87cd2,null));}; \ No newline at end of file +const a55_0x570d=['update','includeAll','query','api','send','show','destroy','../../components/parsers/qs','ChatApplication','../../config/logger','json','fields','intersection','findOne','options','model','stack','then','attributes','catch','end','rawAttributes','params','body','merge','name','keys','status','lodash'];(function(_0x33d400,_0x570d4e){const _0x13733f=function(_0x51b90e){while(--_0x51b90e){_0x33d400['push'](_0x33d400['shift']());}};_0x13733f(++_0x570d4e);}(a55_0x570d,0xc4));const a55_0x1373=function(_0x33d400,_0x570d4e){_0x33d400=_0x33d400-0x0;let _0x13733f=a55_0x570d[_0x33d400];return _0x13733f;};const _0x4ca4ca=a55_0x1373;'use strict';const _=require(_0x4ca4ca('0x6')),qs=require(_0x4ca4ca('0xe')),logger=require(_0x4ca4ca('0x10'))(_0x4ca4ca('0xa')),db=require('../../mysqldb')['db'];function respondWithResult(_0x51b90e,_0x1a2e54){return _0x1a2e54=_0x1a2e54||0xc8,function(_0x76a4a4){const _0x3db1eb=a55_0x1373;if(_0x76a4a4)return _0x51b90e[_0x3db1eb('0x5')](_0x1a2e54)[_0x3db1eb('0x11')](_0x76a4a4);};}function saveUpdates(_0x1dd163){return function(_0x46114d){const _0xdae263=a55_0x1373;if(_0x46114d)return _0x46114d[_0xdae263('0x7')](_0x1dd163)[_0xdae263('0x18')](function(_0x2fd558){return _0x2fd558;});return null;};}function removeEntity(_0x442fca){return function(_0x58d75e){const _0xcbd30a=a55_0x1373;if(_0x58d75e)return _0x58d75e[_0xcbd30a('0xd')]()[_0xcbd30a('0x18')](function(){const _0x1eb329=_0xcbd30a;_0x442fca[_0x1eb329('0x5')](0xcc)[_0x1eb329('0x1b')]();});};}function handleEntityNotFound(_0x21e143){return function(_0xcc02de){return!_0xcc02de&&_0x21e143['sendStatus'](0x194),_0xcc02de;};}function handleError(_0x1c3e0f,_0x5869ac){return _0x5869ac=_0x5869ac||0x1f4,function(_0x35aa60){const _0x2c64ad=a55_0x1373;logger['error'](_0x35aa60[_0x2c64ad('0x17')]),_0x35aa60[_0x2c64ad('0x3')]&&delete _0x35aa60[_0x2c64ad('0x3')],_0x1c3e0f[_0x2c64ad('0x5')](_0x5869ac)[_0x2c64ad('0xb')](_0x35aa60);};}exports[_0x4ca4ca('0xc')]=function(_0x5cdc05,_0x1bcfa8){const _0x329212=_0x4ca4ca;let _0xd334fe={'raw':!![],'where':{'id':_0x5cdc05[_0x329212('0x0')]['id']}};const _0x4cf626={};return _0x4cf626['model']=_[_0x329212('0x4')](db[_0x329212('0xf')][_0x329212('0x1c')]),_0x4cf626['query']=_[_0x329212('0x4')](_0x5cdc05[_0x329212('0x9')]),_0x4cf626['filters']=_[_0x329212('0x13')](_0x4cf626['model'],_0x4cf626[_0x329212('0x9')]),_0xd334fe[_0x329212('0x19')]=_[_0x329212('0x13')](_0x4cf626['model'],qs[_0x329212('0x12')](_0x5cdc05[_0x329212('0x9')]['fields'])),_0xd334fe[_0x329212('0x19')]=_0xd334fe[_0x329212('0x19')]['length']?_0xd334fe['attributes']:_0x4cf626[_0x329212('0x16')],_0x5cdc05[_0x329212('0x9')][_0x329212('0x8')]&&(_0xd334fe['include']=[{'all':!![]}]),_0xd334fe=_[_0x329212('0x2')]({},_0xd334fe,_0x5cdc05[_0x329212('0x15')]),db['ChatApplication'][_0x329212('0x14')](_0xd334fe)['then'](handleEntityNotFound(_0x1bcfa8,null))['then'](respondWithResult(_0x1bcfa8,null))['catch'](handleError(_0x1bcfa8,null));},exports[_0x4ca4ca('0x7')]=function(_0x5ba034,_0x2e8fe5){const _0x6ce6c=_0x4ca4ca;return _0x5ba034['body']['id']&&delete _0x5ba034[_0x6ce6c('0x1')]['id'],db[_0x6ce6c('0xf')][_0x6ce6c('0x14')]({'where':{'id':_0x5ba034['params']['id']}})['then'](handleEntityNotFound(_0x2e8fe5,null))[_0x6ce6c('0x18')](saveUpdates(_0x5ba034['body'],null))[_0x6ce6c('0x18')](respondWithResult(_0x2e8fe5,null))['catch'](handleError(_0x2e8fe5,null));},exports[_0x4ca4ca('0xd')]=function(_0x69c2f6,_0x1275a5){const _0xe75c4a=_0x4ca4ca;return db[_0xe75c4a('0xf')][_0xe75c4a('0x14')]({'where':{'id':_0x69c2f6['params']['id']}})['then'](handleEntityNotFound(_0x1275a5,null))[_0xe75c4a('0x18')](removeEntity(_0x1275a5,null))[_0xe75c4a('0x1a')](handleError(_0x1275a5,null));}; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.model.js b/server/api/chatApplication/chatApplication.model.js index 0afe505..127c651 100644 --- a/server/api/chatApplication/chatApplication.model.js +++ b/server/api/chatApplication/chatApplication.model.js @@ -1 +1 @@ -const a56_0x160a=['chat_applications','exports','define','utf8mb4','ChatApplication'];(function(_0x4feffb,_0x160a96){const _0x58e2d6=function(_0x30ddaf){while(--_0x30ddaf){_0x4feffb['push'](_0x4feffb['shift']());}};_0x58e2d6(++_0x160a96);}(a56_0x160a,0x1bf));const a56_0x58e2=function(_0x4feffb,_0x160a96){_0x4feffb=_0x4feffb-0x0;let _0x58e2d6=a56_0x160a[_0x4feffb];return _0x58e2d6;};const _0x98c20c=a56_0x58e2;'use strict';const attributes=require('./chatApplication.attributes');module[_0x98c20c('0x4')]=function(_0x30ddaf){const _0x4afbb5=_0x98c20c,_0x2dd68f=_0x30ddaf[_0x4afbb5('0x0')](_0x4afbb5('0x2'),attributes,{'tableName':_0x4afbb5('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4afbb5('0x1'),'collate':'utf8mb4_unicode_ci'});return _0x2dd68f;}; \ No newline at end of file +const a56_0x31cf=['./chatApplication.attributes','exports','chat_applications','ChatApplication','utf8mb4','define'];(function(_0x4048c3,_0x31cf48){const _0x37bb8c=function(_0x55834f){while(--_0x55834f){_0x4048c3['push'](_0x4048c3['shift']());}};_0x37bb8c(++_0x31cf48);}(a56_0x31cf,0xff));const a56_0x37bb=function(_0x4048c3,_0x31cf48){_0x4048c3=_0x4048c3-0x0;let _0x37bb8c=a56_0x31cf[_0x4048c3];return _0x37bb8c;};const _0x1d7e5f=a56_0x37bb;'use strict';const attributes=require(_0x1d7e5f('0x3'));module[_0x1d7e5f('0x4')]=function(_0x55834f){const _0x53a051=_0x1d7e5f,_0x3c84ea=_0x55834f[_0x53a051('0x2')](_0x53a051('0x0'),attributes,{'tableName':_0x53a051('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x53a051('0x1'),'collate':'utf8mb4_unicode_ci'});return _0x3c84ea;}; \ No newline at end of file diff --git a/server/api/chatApplication/index.js b/server/api/chatApplication/index.js index 72ab372..20d2865 100644 --- a/server/api/chatApplication/index.js +++ b/server/api/chatApplication/index.js @@ -1 +1 @@ -const a57_0x23a3=['destroy','../../components/auth/service','delete','exports','express','update','get','/:id','put','Router','./chatApplication.controller','isAuthenticated'];(function(_0xceba8f,_0x23a3d6){const _0x233342=function(_0x11e0e7){while(--_0x11e0e7){_0xceba8f['push'](_0xceba8f['shift']());}};_0x233342(++_0x23a3d6);}(a57_0x23a3,0xc3));const a57_0x2333=function(_0xceba8f,_0x23a3d6){_0xceba8f=_0xceba8f-0x0;let _0x233342=a57_0x23a3[_0xceba8f];return _0x233342;};const _0x789861=a57_0x2333;'use strict';const express=require(_0x789861('0x1')),router=express[_0x789861('0x6')](),auth=require(_0x789861('0xa')),controller=require(_0x789861('0x7'));router[_0x789861('0x3')](_0x789861('0x4'),auth[_0x789861('0x8')](),controller['show']),router[_0x789861('0x5')](_0x789861('0x4'),auth[_0x789861('0x8')](),controller[_0x789861('0x2')]),router[_0x789861('0xb')](_0x789861('0x4'),auth[_0x789861('0x8')](),controller[_0x789861('0x9')]),module[_0x789861('0x0')]=router; \ No newline at end of file +const a57_0x1360=['delete','express','Router','update','isAuthenticated','/:id','exports','show','put','../../components/auth/service','get','destroy'];(function(_0x31ed83,_0x13603e){const _0x2270b9=function(_0x3ba982){while(--_0x3ba982){_0x31ed83['push'](_0x31ed83['shift']());}};_0x2270b9(++_0x13603e);}(a57_0x1360,0x83));const a57_0x2270=function(_0x31ed83,_0x13603e){_0x31ed83=_0x31ed83-0x0;let _0x2270b9=a57_0x1360[_0x31ed83];return _0x2270b9;};const _0x5b1998=a57_0x2270;'use strict';const express=require(_0x5b1998('0x2')),router=express[_0x5b1998('0x3')](),auth=require(_0x5b1998('0xa')),controller=require('./chatApplication.controller');router[_0x5b1998('0xb')](_0x5b1998('0x6'),auth[_0x5b1998('0x5')](),controller[_0x5b1998('0x8')]),router[_0x5b1998('0x9')](_0x5b1998('0x6'),auth[_0x5b1998('0x5')](),controller[_0x5b1998('0x4')]),router[_0x5b1998('0x1')](_0x5b1998('0x6'),auth['isAuthenticated'](),controller[_0x5b1998('0x0')]),module[_0x5b1998('0x7')]=router; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.attributes.js b/server/api/chatGroup/chatGroup.attributes.js index 75fb61e..bf753b4 100644 --- a/server/api/chatGroup/chatGroup.attributes.js +++ b/server/api/chatGroup/chatGroup.attributes.js @@ -1 +1 @@ -const a58_0x543f=['exports','STRING','sequelize'];(function(_0x928211,_0x543f41){const _0x5a803c=function(_0xb693b5){while(--_0xb693b5){_0x928211['push'](_0x928211['shift']());}};_0x5a803c(++_0x543f41);}(a58_0x543f,0x14d));const a58_0x5a80=function(_0x928211,_0x543f41){_0x928211=_0x928211-0x0;let _0x5a803c=a58_0x543f[_0x928211];return _0x5a803c;};const _0x23c106=a58_0x5a80;'use strict';const Sequelize=require(_0x23c106('0x2'));module[_0x23c106('0x0')]={'name':{'type':Sequelize[_0x23c106('0x1')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'write':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file +const a58_0x25f8=['exports','BOOLEAN','sequelize'];(function(_0x3d5251,_0x25f867){const _0x59631b=function(_0x1acc8a){while(--_0x1acc8a){_0x3d5251['push'](_0x3d5251['shift']());}};_0x59631b(++_0x25f867);}(a58_0x25f8,0x17d));const a58_0x5963=function(_0x3d5251,_0x25f867){_0x3d5251=_0x3d5251-0x0;let _0x59631b=a58_0x25f8[_0x3d5251];return _0x59631b;};const _0x3db1ea=a58_0x5963;'use strict';const Sequelize=require(_0x3db1ea('0x2'));module[_0x3db1ea('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize['STRING']},'write':{'type':Sequelize[_0x3db1ea('0x1')],'defaultValue':!![]}}; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.controller.js b/server/api/chatGroup/chatGroup.controller.js index 19e62c7..4cd546e 100644 --- a/server/api/chatGroup/chatGroup.controller.js +++ b/server/api/chatGroup/chatGroup.controller.js @@ -1 +1 @@ -const a59_0xe724=['register','params','undefined','sequelize','nolimit','describe','map','where','options','fields','body','getMembers','fieldName','sort','addMessage','../../components/parsers/qs','addMembers','api','keys','../../config/logger','offset','rows','../../mysqldb','type','model','User','key','create','length','intersection','filter','attributes','YYYY-MM-DD\x20HH:mm:ss','getMessages','like','catch','format','merge','getUnread','Content-Range','findOne','split','name','status','removeMembers','ChatGroupId','sendStatus','query','ChatGroup','includeAll','toInteger','end','then','order','ChatInternalMessage','error','destroy','count','$gte','ids','limit','index','pick','include','../../rediscache','rawAttributes','filters','update','./chatGroup.socket','json'];(function(_0x5a45ff,_0xe72430){const _0x27909a=function(_0x56e080){while(--_0x56e080){_0x5a45ff['push'](_0x5a45ff['shift']());}};_0x27909a(++_0xe72430);}(a59_0xe724,0x1df));const a59_0x2790=function(_0x5a45ff,_0xe72430){_0x5a45ff=_0x5a45ff-0x0;let _0x27909a=a59_0xe724[_0x5a45ff];return _0x27909a;};const _0x566eb5=a59_0x2790;'use strict';const moment=require('moment'),_=require('lodash'),{getSocket}=require(_0x566eb5('0x5')),qs=require(_0x566eb5('0x1a')),logger=require(_0x566eb5('0x1e'))(_0x566eb5('0x1c')),db=require(_0x566eb5('0x21'))['db'],{Op}=require(_0x566eb5('0xe')),socket=getSocket();require(_0x566eb5('0x9'))[_0x566eb5('0xb')](socket);function respondWithStatusCode(_0x56e080,_0x18c537){return _0x18c537=_0x18c537||0xcc,function(_0x15c61a){const _0x143abb=a59_0x2790;if(_0x15c61a)return _0x56e080[_0x143abb('0x39')](_0x18c537);return _0x56e080['status'](_0x18c537)[_0x143abb('0x3e')]();};}function respondWithResult(_0x376656,_0xd111b0){return _0xd111b0=_0xd111b0||0xc8,function(_0x348f57){const _0xdb3a8a=a59_0x2790;if(_0x348f57)return _0x376656[_0xdb3a8a('0x36')](_0xd111b0)[_0xdb3a8a('0xa')](_0x348f57);};}function respondWithFilteredResult(_0xa3bc97,_0x485bbc){return function(_0x4b3817){const _0x402748=a59_0x2790;if(_0x4b3817){const _0x5c5ac5=_0x4b3817['count'],_0x71f686=_0x485bbc[_0x402748('0x1f')];let _0x34f8a5=_0x485bbc['offset']+_0x485bbc[_0x402748('0x1')],_0x4cfe94;return _0x34f8a5>=_0x5c5ac5?(_0x34f8a5=_0x5c5ac5,_0x4cfe94=0xc8):_0x4cfe94=0xce,_0xa3bc97['status'](_0x4cfe94),_0xa3bc97['set'](_0x402748('0x32'),_0x71f686+'-'+_0x34f8a5+'/'+_0x5c5ac5)[_0x402748('0xa')](_0x4b3817);}return null;};}function saveUpdates(_0x3ef816){return function(_0x3d8ec9){const _0x50de46=a59_0x2790;if(_0x3d8ec9)return _0x3d8ec9[_0x50de46('0x8')](_0x3ef816)[_0x50de46('0x3f')](function(_0x554897){return _0x554897;});return null;};}function removeEntity(_0x112a7b){return function(_0x54a3ae){const _0x3686e3=a59_0x2790;if(_0x54a3ae)return _0x54a3ae['destroy']()[_0x3686e3('0x3f')](function(){const _0x24fe1c=_0x3686e3;_0x112a7b[_0x24fe1c('0x36')](0xcc)[_0x24fe1c('0x3e')]();});};}function handleEntityNotFound(_0x149141){return function(_0x3f8993){const _0x41efb3=a59_0x2790;return!_0x3f8993&&_0x149141[_0x41efb3('0x39')](0x194),_0x3f8993;};}function handleError(_0x4dea23,_0x2af7ba){return _0x2af7ba=_0x2af7ba||0x1f4,function(_0x11b8b4){const _0x483619=a59_0x2790;logger[_0x483619('0x42')](_0x11b8b4['stack']),_0x11b8b4['name']&&delete _0x11b8b4[_0x483619('0x35')],_0x4dea23[_0x483619('0x36')](_0x2af7ba)['send'](_0x11b8b4);};}exports[_0x566eb5('0x2')]=function(_0x37ff2e,_0x374e47){const _0x50f353=_0x566eb5;let _0x254e1f={};const _0x42d7da={},_0x575ac1={'count':0x0,'rows':[]},_0x1dd5a6=_[_0x50f353('0x11')](db[_0x50f353('0x3b')][_0x50f353('0x6')],function(_0x12c338){const _0x453a3e=_0x50f353;return{'name':_0x12c338[_0x453a3e('0x17')],'type':_0x12c338['type'][_0x453a3e('0x25')]};});_0x42d7da[_0x50f353('0x23')]=_[_0x50f353('0x11')](_0x1dd5a6,_0x50f353('0x35')),_0x42d7da[_0x50f353('0x3a')]=_[_0x50f353('0x1d')](_0x37ff2e[_0x50f353('0x3a')]),_0x42d7da[_0x50f353('0x7')]=_[_0x50f353('0x28')](_0x42d7da[_0x50f353('0x23')],_0x42d7da[_0x50f353('0x3a')]),_0x254e1f[_0x50f353('0x2a')]=_[_0x50f353('0x28')](_0x42d7da['model'],qs[_0x50f353('0x14')](_0x37ff2e[_0x50f353('0x3a')][_0x50f353('0x14')])),_0x254e1f[_0x50f353('0x2a')]=_0x254e1f[_0x50f353('0x2a')][_0x50f353('0x27')]?_0x254e1f['attributes']:_0x42d7da[_0x50f353('0x23')];typeof _0x37ff2e['query']['nolimit']===_0x50f353('0xd')&&(_0x254e1f[_0x50f353('0x1')]=qs[_0x50f353('0x1')](_0x37ff2e[_0x50f353('0x3a')][_0x50f353('0x1')]),_0x254e1f[_0x50f353('0x1f')]=qs[_0x50f353('0x1f')](_0x37ff2e[_0x50f353('0x3a')][_0x50f353('0x1f')]));_0x254e1f[_0x50f353('0x40')]=qs[_0x50f353('0x18')](_0x37ff2e['query'][_0x50f353('0x18')]),_0x254e1f[_0x50f353('0x12')]=qs[_0x50f353('0x7')](_['pick'](_0x37ff2e[_0x50f353('0x3a')],_0x42d7da['filters']),_0x1dd5a6);_0x37ff2e['query'][_0x50f353('0x29')]&&(_0x254e1f[_0x50f353('0x12')]=_[_0x50f353('0x30')](_0x254e1f['where'],{[Op['or']]:_['map'](_0x1dd5a6,function(_0x5decfa){const _0x318f03=_0x50f353;if(_0x5decfa[_0x318f03('0x22')]!=='VIRTUAL'){const _0x2465b9={};return _0x2465b9[_0x5decfa[_0x318f03('0x35')]]={[Op[_0x318f03('0x2d')]]:'%'+_0x37ff2e[_0x318f03('0x3a')][_0x318f03('0x29')]+'%'},_0x2465b9;}})}));_0x254e1f=_['merge']({},_0x254e1f,_0x37ff2e[_0x50f353('0x13')]);const _0x5011ba={'where':_0x254e1f[_0x50f353('0x12')]};return db[_0x50f353('0x3b')][_0x50f353('0x44')](_0x5011ba)[_0x50f353('0x3f')](function(_0x464cf0){const _0x3ee884=_0x50f353;return _0x575ac1['count']=_0x464cf0,_0x37ff2e[_0x3ee884('0x3a')][_0x3ee884('0x3c')]&&(_0x254e1f['include']=[{'all':!![]}]),db[_0x3ee884('0x3b')]['findAll'](_0x254e1f);})[_0x50f353('0x3f')](function(_0x1a45ba){const _0x5ed8c2=_0x50f353;return _0x575ac1[_0x5ed8c2('0x20')]=_0x1a45ba,_0x575ac1;})[_0x50f353('0x3f')](respondWithFilteredResult(_0x374e47,_0x254e1f))[_0x50f353('0x2e')](handleError(_0x374e47,null));},exports['show']=function(_0x3f2a56,_0x4d547d){const _0x4932bf=_0x566eb5;let _0xc2a573={'raw':!![],'where':{'id':_0x3f2a56['params']['id']}};const _0x48c1f6={};return _0x48c1f6[_0x4932bf('0x23')]=_[_0x4932bf('0x1d')](db[_0x4932bf('0x3b')]['rawAttributes']),_0x48c1f6[_0x4932bf('0x3a')]=_[_0x4932bf('0x1d')](_0x3f2a56[_0x4932bf('0x3a')]),_0x48c1f6[_0x4932bf('0x7')]=_[_0x4932bf('0x28')](_0x48c1f6['model'],_0x48c1f6[_0x4932bf('0x3a')]),_0xc2a573[_0x4932bf('0x2a')]=_['intersection'](_0x48c1f6[_0x4932bf('0x23')],qs[_0x4932bf('0x14')](_0x3f2a56['query'][_0x4932bf('0x14')])),_0xc2a573[_0x4932bf('0x2a')]=_0xc2a573[_0x4932bf('0x2a')]['length']?_0xc2a573[_0x4932bf('0x2a')]:_0x48c1f6[_0x4932bf('0x23')],_0x3f2a56[_0x4932bf('0x3a')][_0x4932bf('0x3c')]&&(_0xc2a573[_0x4932bf('0x4')]=[{'all':!![]}]),_0xc2a573=_['merge']({},_0xc2a573,_0x3f2a56[_0x4932bf('0x13')]),db[_0x4932bf('0x3b')][_0x4932bf('0x33')](_0xc2a573)[_0x4932bf('0x3f')](handleEntityNotFound(_0x4d547d,null))[_0x4932bf('0x3f')](respondWithResult(_0x4d547d,null))[_0x4932bf('0x2e')](handleError(_0x4d547d,null));},exports[_0x566eb5('0x26')]=function(_0x4b227f,_0x108da7){const _0x53dbfc=_0x566eb5;return db[_0x53dbfc('0x3b')]['create'](_0x4b227f[_0x53dbfc('0x15')],{})[_0x53dbfc('0x3f')](respondWithResult(_0x108da7,0xc9))[_0x53dbfc('0x2e')](handleError(_0x108da7,null));},exports['update']=function(_0x2c4c24,_0xb9f0d0){const _0x2ed371=_0x566eb5;return _0x2c4c24[_0x2ed371('0x15')]['id']&&delete _0x2c4c24[_0x2ed371('0x15')]['id'],db['ChatGroup'][_0x2ed371('0x33')]({'where':{'id':_0x2c4c24[_0x2ed371('0xc')]['id']}})[_0x2ed371('0x3f')](handleEntityNotFound(_0xb9f0d0,null))['then'](saveUpdates(_0x2c4c24[_0x2ed371('0x15')],null))[_0x2ed371('0x3f')](respondWithResult(_0xb9f0d0,null))['catch'](handleError(_0xb9f0d0,null));},exports[_0x566eb5('0x43')]=function(_0x137e91,_0x22cefe){const _0x2bf817=_0x566eb5;return db[_0x2bf817('0x3b')][_0x2bf817('0x33')]({'where':{'id':_0x137e91['params']['id']}})[_0x2bf817('0x3f')](handleEntityNotFound(_0x22cefe,null))[_0x2bf817('0x3f')](removeEntity(_0x22cefe,null))[_0x2bf817('0x2e')](handleError(_0x22cefe,null));},exports[_0x566eb5('0x10')]=function(_0x1e3526,_0x4a4bed){const _0x5a6fd9=_0x566eb5;return db[_0x5a6fd9('0x3b')][_0x5a6fd9('0x10')]()[_0x5a6fd9('0x3f')](respondWithResult(_0x4a4bed,null))[_0x5a6fd9('0x2e')](handleError(_0x4a4bed,null));},exports[_0x566eb5('0x31')]=function(_0x4d363b,_0x773ced){const _0x599a41=_0x566eb5;return db['ChatInternalMessage']['count']({'where':{'ChatGroupId':_0x4d363b['params']['id'],'ToId':_0x4d363b['user']['id'],'read':![]}})[_0x599a41('0x3f')](function(_0x8df6ef){const _0x1f7dcd=_0x599a41;return{'id':_[_0x1f7dcd('0x3d')](_0x4d363b[_0x1f7dcd('0xc')]['id']),'count':_0x8df6ef};})[_0x599a41('0x3f')](respondWithResult(_0x773ced,null))[_0x599a41('0x2e')](handleError(_0x773ced,null));},exports['addMembers']=function(_0x135498,_0x403461){const _0x4b2abc=_0x566eb5;return db['ChatGroup']['findOne']({'where':{'id':_0x135498[_0x4b2abc('0xc')]['id']}})[_0x4b2abc('0x3f')](function(_0x4d07ad){const _0x118f93=_0x4b2abc;if(_0x4d07ad)return _0x4d07ad[_0x118f93('0x1b')](_0x135498[_0x118f93('0x15')][_0x118f93('0x0')],{'through':_['omit'](_0x135498['body'],[_0x118f93('0x0'),'id'])});})[_0x4b2abc('0x3f')](respondWithResult(_0x403461,null))[_0x4b2abc('0x2e')](handleError(_0x403461,null));},exports[_0x566eb5('0x16')]=function(_0x3541bb,_0x493e09){const _0x277fbc=_0x566eb5;let _0x2c5a66={};const _0x1fa064={};let _0x845beb,_0x433949;return db['ChatGroup'][_0x277fbc('0x33')]({'where':{'id':_0x3541bb[_0x277fbc('0xc')]['id']}})['then'](handleEntityNotFound(_0x493e09,null))[_0x277fbc('0x3f')](function(_0x264bca){const _0x4540a0=_0x277fbc;if(_0x264bca)return _0x845beb=_0x264bca,_0x1fa064[_0x4540a0('0x23')]=_[_0x4540a0('0x1d')](db[_0x4540a0('0x24')][_0x4540a0('0x6')]),_0x1fa064[_0x4540a0('0x3a')]=_[_0x4540a0('0x1d')](_0x3541bb['query']),_0x1fa064[_0x4540a0('0x7')]=_['intersection'](_0x1fa064[_0x4540a0('0x23')],_0x1fa064[_0x4540a0('0x3a')]),_0x2c5a66[_0x4540a0('0x2a')]=_[_0x4540a0('0x28')](_0x1fa064['model'],qs[_0x4540a0('0x14')](_0x3541bb[_0x4540a0('0x3a')][_0x4540a0('0x14')])),_0x2c5a66['attributes']=_0x2c5a66[_0x4540a0('0x2a')][_0x4540a0('0x27')]?_0x2c5a66[_0x4540a0('0x2a')]:_0x1fa064['model'],_0x2c5a66['order']=qs[_0x4540a0('0x18')](_0x3541bb[_0x4540a0('0x3a')][_0x4540a0('0x18')]),_0x2c5a66[_0x4540a0('0x12')]=qs[_0x4540a0('0x7')](_[_0x4540a0('0x3')](_0x3541bb[_0x4540a0('0x3a')],_0x1fa064[_0x4540a0('0x7')])),_0x3541bb[_0x4540a0('0x3a')][_0x4540a0('0x29')]&&(_0x2c5a66[_0x4540a0('0x12')]=_[_0x4540a0('0x30')](_0x2c5a66['where'],{[Op['or']]:_[_0x4540a0('0x11')](_0x2c5a66[_0x4540a0('0x2a')],function(_0x11a484){const _0x85bc98=_0x4540a0,_0x222650={};return _0x222650[_0x11a484]={[Op[_0x85bc98('0x2d')]]:'%'+_0x3541bb[_0x85bc98('0x3a')]['filter']+'%'},_0x222650;})})),_0x2c5a66=_[_0x4540a0('0x30')]({},_0x2c5a66,_0x3541bb[_0x4540a0('0x13')]),_0x845beb['getMembers'](_0x2c5a66);})[_0x277fbc('0x3f')](function(_0x1f03ce){const _0x18b1e7=_0x277fbc;if(_0x1f03ce)return _0x433949=_0x1f03ce['length'],typeof _0x3541bb[_0x18b1e7('0x3a')][_0x18b1e7('0xf')]===_0x18b1e7('0xd')&&(_0x2c5a66[_0x18b1e7('0x1')]=qs['limit'](_0x3541bb[_0x18b1e7('0x3a')][_0x18b1e7('0x1')]),_0x2c5a66[_0x18b1e7('0x1f')]=qs['offset'](_0x3541bb['query']['offset'])),_0x845beb[_0x18b1e7('0x16')](_0x2c5a66);})['then'](function(_0xbfe692){if(_0xbfe692)return _0xbfe692?{'count':_0x433949,'rows':_0xbfe692}:null;})[_0x277fbc('0x3f')](respondWithResult(_0x493e09,null))[_0x277fbc('0x2e')](handleError(_0x493e09,null));},exports[_0x566eb5('0x37')]=function(_0x4518e1,_0x1479da){const _0x408d77=_0x566eb5;return db[_0x408d77('0x3b')][_0x408d77('0x33')]({'where':{'id':_0x4518e1['params']['id']}})[_0x408d77('0x3f')](handleEntityNotFound(_0x1479da,null))['then'](function(_0x5c0841){const _0x3f1ea0=_0x408d77;if(_0x5c0841)return _0x5c0841[_0x3f1ea0('0x37')](_0x4518e1[_0x3f1ea0('0x3a')]['ids']);})[_0x408d77('0x3f')](respondWithStatusCode(_0x1479da,null))[_0x408d77('0x2e')](handleError(_0x1479da,null));},exports[_0x566eb5('0x19')]=function(_0x1f9af3,_0xe05c6a){const _0x470955=_0x566eb5;return _0x1f9af3['body']['id']&&delete _0x1f9af3[_0x470955('0x15')]['id'],db[_0x470955('0x3b')]['findOne']({'where':{'id':_0x1f9af3[_0x470955('0xc')]['id']}})[_0x470955('0x3f')](handleEntityNotFound(_0xe05c6a,null))['then'](function(_0xa83325){const _0x146ae5=_0x470955;if(_0xa83325)return _0x1f9af3[_0x146ae5('0x15')][_0x146ae5('0x38')]=_0xa83325['id'],db[_0x146ae5('0x41')][_0x146ae5('0x26')](_0x1f9af3['body']);})['then'](respondWithResult(_0xe05c6a,null))['catch'](handleError(_0xe05c6a,null));},exports[_0x566eb5('0x2c')]=function(_0x194880,_0x13a5e1){const _0x5cdd41=_0x566eb5;let _0x42b395={};const _0x45991e={};let _0x9abd07,_0x3a13dd;return db[_0x5cdd41('0x3b')]['findOne']({'where':{'id':_0x194880['params']['id']}})[_0x5cdd41('0x3f')](handleEntityNotFound(_0x13a5e1,null))['then'](function(_0x47a454){const _0x347919=_0x5cdd41;if(_0x47a454){_0x9abd07=_0x47a454,_0x45991e[_0x347919('0x23')]=_[_0x347919('0x1d')](db[_0x347919('0x41')]['rawAttributes']),_0x45991e[_0x347919('0x3a')]=_[_0x347919('0x1d')](_0x194880[_0x347919('0x3a')]),_0x45991e['filters']=_[_0x347919('0x28')](_0x45991e[_0x347919('0x23')],_0x45991e[_0x347919('0x3a')]),_0x42b395['attributes']=_['intersection'](_0x45991e[_0x347919('0x23')],qs[_0x347919('0x14')](_0x194880[_0x347919('0x3a')][_0x347919('0x14')])),_0x42b395[_0x347919('0x2a')]=_0x42b395[_0x347919('0x2a')][_0x347919('0x27')]?_0x42b395['attributes']:_0x45991e[_0x347919('0x23')],_0x42b395[_0x347919('0x40')]=qs[_0x347919('0x18')](_0x194880[_0x347919('0x3a')][_0x347919('0x18')]),_0x42b395['where']=qs[_0x347919('0x7')](_[_0x347919('0x3')](_0x194880['query'],_0x45991e[_0x347919('0x7')]));_0x194880['query']['filter']&&(_0x42b395[_0x347919('0x12')]=_[_0x347919('0x30')](_0x42b395[_0x347919('0x12')],{[Op['or']]:_['map'](_0x42b395['attributes'],function(_0x325015){const _0x232941=_0x347919,_0x20f647={};return _0x20f647[_0x325015]={[Op[_0x232941('0x2d')]]:'%'+_0x194880[_0x232941('0x3a')][_0x232941('0x29')]+'%'},_0x20f647;})}));if(_0x194880[_0x347919('0x3a')][_0x347919('0x45')]){const _0x4ab397=_0x194880[_0x347919('0x3a')]['$gte'][_0x347919('0x34')](','),_0x48c0e1={};_0x48c0e1[_0x4ab397[0x0]]={[Op['gte']]:moment(_0x4ab397[0x1])[_0x347919('0x2f')](_0x347919('0x2b'))},_0x42b395[_0x347919('0x12')]=_[_0x347919('0x30')](_0x42b395[_0x347919('0x12')],_0x48c0e1);}return _0x42b395=_[_0x347919('0x30')]({},_0x42b395,_0x194880[_0x347919('0x13')]),_0x9abd07[_0x347919('0x2c')](_0x42b395);}})[_0x5cdd41('0x3f')](function(_0x2feb4f){const _0x58a98f=_0x5cdd41;if(_0x2feb4f)return _0x3a13dd=_0x2feb4f[_0x58a98f('0x27')],typeof _0x194880[_0x58a98f('0x3a')][_0x58a98f('0xf')]===_0x58a98f('0xd')&&(_0x42b395[_0x58a98f('0x1')]=qs[_0x58a98f('0x1')](_0x194880[_0x58a98f('0x3a')][_0x58a98f('0x1')]),_0x42b395[_0x58a98f('0x1f')]=qs[_0x58a98f('0x1f')](_0x194880['query'][_0x58a98f('0x1f')])),_0x9abd07[_0x58a98f('0x2c')](_0x42b395);})[_0x5cdd41('0x3f')](function(_0xcc2c2e){if(_0xcc2c2e)return _0xcc2c2e?{'count':_0x3a13dd,'rows':_0xcc2c2e}:null;})[_0x5cdd41('0x3f')](respondWithResult(_0x13a5e1,null))[_0x5cdd41('0x2e')](handleError(_0x13a5e1,null));}; \ No newline at end of file +const a59_0xb39e=['set','toInteger','intersection','removeMembers','error','ids','api','rawAttributes','../../rediscache','nolimit','length','$gte','params','format','moment','options','then','send','user','count','undefined','include','like','json','../../mysqldb','catch','VIRTUAL','register','ChatGroup','../../components/parsers/qs','sort','where','merge','end','destroy','getMessages','fieldName','describe','YYYY-MM-DD\x20HH:mm:ss','create','getUnread','stack','omit','filter','order','query','gte','pick','getMembers','split','map','show','body','limit','fields','offset','findOne','ChatInternalMessage','addMembers','includeAll','sendStatus','filters','model','attributes','name','type','status','User','keys','addMessage','rows'];(function(_0x10512b,_0xb39e2){const _0x183aa9=function(_0x57d9e7){while(--_0x57d9e7){_0x10512b['push'](_0x10512b['shift']());}};_0x183aa9(++_0xb39e2);}(a59_0xb39e,0xc4));const a59_0x183a=function(_0x10512b,_0xb39e2){_0x10512b=_0x10512b-0x0;let _0x183aa9=a59_0xb39e[_0x10512b];return _0x183aa9;};const _0x2038f9=a59_0x183a;'use strict';const moment=require(_0x2038f9('0x1f')),_=require('lodash'),{getSocket}=require(_0x2038f9('0x19')),qs=require(_0x2038f9('0x2e')),logger=require('../../config/logger')(_0x2038f9('0x17')),db=require(_0x2038f9('0x29'))['db'],{Op}=require('sequelize'),socket=getSocket();require('./chatGroup.socket')[_0x2038f9('0x2c')](socket);function respondWithStatusCode(_0x57d9e7,_0x144f58){return _0x144f58=_0x144f58||0xcc,function(_0x3def33){const _0x419c32=a59_0x183a;if(_0x3def33)return _0x57d9e7[_0x419c32('0x6')](_0x144f58);return _0x57d9e7[_0x419c32('0xc')](_0x144f58)[_0x419c32('0x32')]();};}function respondWithResult(_0x1ba3ef,_0x4b4530){return _0x4b4530=_0x4b4530||0xc8,function(_0x320e01){const _0x2fad98=a59_0x183a;if(_0x320e01)return _0x1ba3ef[_0x2fad98('0xc')](_0x4b4530)[_0x2fad98('0x28')](_0x320e01);};}function respondWithFilteredResult(_0x5453d1,_0x10db7f){return function(_0x27dda3){const _0x5f54b0=a59_0x183a;if(_0x27dda3){const _0x2f1d71=_0x27dda3[_0x5f54b0('0x24')],_0x2a93cb=_0x10db7f['offset'];let _0xb6d647=_0x10db7f[_0x5f54b0('0x1')]+_0x10db7f[_0x5f54b0('0x46')],_0x34613c;return _0xb6d647>=_0x2f1d71?(_0xb6d647=_0x2f1d71,_0x34613c=0xc8):_0x34613c=0xce,_0x5453d1[_0x5f54b0('0xc')](_0x34613c),_0x5453d1[_0x5f54b0('0x11')]('Content-Range',_0x2a93cb+'-'+_0xb6d647+'/'+_0x2f1d71)[_0x5f54b0('0x28')](_0x27dda3);}return null;};}function saveUpdates(_0x2a5aec){return function(_0x55995d){const _0x472a4a=a59_0x183a;if(_0x55995d)return _0x55995d['update'](_0x2a5aec)[_0x472a4a('0x21')](function(_0xa1d4b5){return _0xa1d4b5;});return null;};}function removeEntity(_0x119c3f){return function(_0x1c6ab1){const _0xe1e319=a59_0x183a;if(_0x1c6ab1)return _0x1c6ab1[_0xe1e319('0x33')]()['then'](function(){const _0x4ca5a1=_0xe1e319;_0x119c3f[_0x4ca5a1('0xc')](0xcc)['end']();});};}function handleEntityNotFound(_0x436ca3){return function(_0x470527){const _0x37268b=a59_0x183a;return!_0x470527&&_0x436ca3[_0x37268b('0x6')](0x194),_0x470527;};}function handleError(_0x333c5d,_0x5cd213){return _0x5cd213=_0x5cd213||0x1f4,function(_0x79ad42){const _0x205592=a59_0x183a;logger[_0x205592('0x15')](_0x79ad42[_0x205592('0x3a')]),_0x79ad42[_0x205592('0xa')]&&delete _0x79ad42['name'],_0x333c5d[_0x205592('0xc')](_0x5cd213)[_0x205592('0x22')](_0x79ad42);};}exports['index']=function(_0x343c52,_0x18db40){const _0x4dac28=_0x2038f9;let _0xa32725={};const _0x292e1e={},_0x422373={'count':0x0,'rows':[]},_0xbc7e23=_[_0x4dac28('0x43')](db[_0x4dac28('0x2d')][_0x4dac28('0x18')],function(_0x41dc68){const _0x46f869=_0x4dac28;return{'name':_0x41dc68[_0x46f869('0x35')],'type':_0x41dc68[_0x46f869('0xb')]['key']};});_0x292e1e[_0x4dac28('0x8')]=_[_0x4dac28('0x43')](_0xbc7e23,_0x4dac28('0xa')),_0x292e1e[_0x4dac28('0x3e')]=_[_0x4dac28('0xe')](_0x343c52[_0x4dac28('0x3e')]),_0x292e1e[_0x4dac28('0x7')]=_[_0x4dac28('0x13')](_0x292e1e[_0x4dac28('0x8')],_0x292e1e['query']),_0xa32725[_0x4dac28('0x9')]=_[_0x4dac28('0x13')](_0x292e1e[_0x4dac28('0x8')],qs[_0x4dac28('0x0')](_0x343c52[_0x4dac28('0x3e')][_0x4dac28('0x0')])),_0xa32725[_0x4dac28('0x9')]=_0xa32725[_0x4dac28('0x9')][_0x4dac28('0x1b')]?_0xa32725['attributes']:_0x292e1e[_0x4dac28('0x8')];typeof _0x343c52[_0x4dac28('0x3e')][_0x4dac28('0x1a')]===_0x4dac28('0x25')&&(_0xa32725[_0x4dac28('0x46')]=qs[_0x4dac28('0x46')](_0x343c52['query'][_0x4dac28('0x46')]),_0xa32725[_0x4dac28('0x1')]=qs[_0x4dac28('0x1')](_0x343c52['query'][_0x4dac28('0x1')]));_0xa32725[_0x4dac28('0x3d')]=qs[_0x4dac28('0x2f')](_0x343c52[_0x4dac28('0x3e')][_0x4dac28('0x2f')]),_0xa32725[_0x4dac28('0x30')]=qs['filters'](_[_0x4dac28('0x40')](_0x343c52[_0x4dac28('0x3e')],_0x292e1e[_0x4dac28('0x7')]),_0xbc7e23);_0x343c52[_0x4dac28('0x3e')][_0x4dac28('0x3c')]&&(_0xa32725[_0x4dac28('0x30')]=_[_0x4dac28('0x31')](_0xa32725[_0x4dac28('0x30')],{[Op['or']]:_['map'](_0xbc7e23,function(_0x50ce05){const _0x3439f6=_0x4dac28;if(_0x50ce05['type']!==_0x3439f6('0x2b')){const _0x5b03d7={};return _0x5b03d7[_0x50ce05[_0x3439f6('0xa')]]={[Op[_0x3439f6('0x27')]]:'%'+_0x343c52[_0x3439f6('0x3e')][_0x3439f6('0x3c')]+'%'},_0x5b03d7;}})}));_0xa32725=_[_0x4dac28('0x31')]({},_0xa32725,_0x343c52['options']);const _0x34c6f5={'where':_0xa32725[_0x4dac28('0x30')]};return db[_0x4dac28('0x2d')][_0x4dac28('0x24')](_0x34c6f5)['then'](function(_0x4a5ccd){const _0x35fd9c=_0x4dac28;return _0x422373['count']=_0x4a5ccd,_0x343c52['query'][_0x35fd9c('0x5')]&&(_0xa32725[_0x35fd9c('0x26')]=[{'all':!![]}]),db[_0x35fd9c('0x2d')]['findAll'](_0xa32725);})[_0x4dac28('0x21')](function(_0x69cc6c){const _0x1e7db7=_0x4dac28;return _0x422373[_0x1e7db7('0x10')]=_0x69cc6c,_0x422373;})['then'](respondWithFilteredResult(_0x18db40,_0xa32725))[_0x4dac28('0x2a')](handleError(_0x18db40,null));},exports[_0x2038f9('0x44')]=function(_0x529952,_0x2409a6){const _0x3298e2=_0x2038f9;let _0x1f0a5e={'raw':!![],'where':{'id':_0x529952[_0x3298e2('0x1d')]['id']}};const _0x42b9c1={};return _0x42b9c1['model']=_[_0x3298e2('0xe')](db[_0x3298e2('0x2d')][_0x3298e2('0x18')]),_0x42b9c1['query']=_[_0x3298e2('0xe')](_0x529952[_0x3298e2('0x3e')]),_0x42b9c1[_0x3298e2('0x7')]=_['intersection'](_0x42b9c1['model'],_0x42b9c1[_0x3298e2('0x3e')]),_0x1f0a5e[_0x3298e2('0x9')]=_[_0x3298e2('0x13')](_0x42b9c1[_0x3298e2('0x8')],qs['fields'](_0x529952[_0x3298e2('0x3e')][_0x3298e2('0x0')])),_0x1f0a5e[_0x3298e2('0x9')]=_0x1f0a5e['attributes'][_0x3298e2('0x1b')]?_0x1f0a5e['attributes']:_0x42b9c1[_0x3298e2('0x8')],_0x529952[_0x3298e2('0x3e')][_0x3298e2('0x5')]&&(_0x1f0a5e[_0x3298e2('0x26')]=[{'all':!![]}]),_0x1f0a5e=_[_0x3298e2('0x31')]({},_0x1f0a5e,_0x529952[_0x3298e2('0x20')]),db[_0x3298e2('0x2d')][_0x3298e2('0x2')](_0x1f0a5e)[_0x3298e2('0x21')](handleEntityNotFound(_0x2409a6,null))[_0x3298e2('0x21')](respondWithResult(_0x2409a6,null))[_0x3298e2('0x2a')](handleError(_0x2409a6,null));},exports[_0x2038f9('0x38')]=function(_0x24ea96,_0x2bcce7){const _0x3c3b3a=_0x2038f9;return db[_0x3c3b3a('0x2d')][_0x3c3b3a('0x38')](_0x24ea96[_0x3c3b3a('0x45')],{})[_0x3c3b3a('0x21')](respondWithResult(_0x2bcce7,0xc9))[_0x3c3b3a('0x2a')](handleError(_0x2bcce7,null));},exports['update']=function(_0x199ed4,_0x57c770){const _0x22f523=_0x2038f9;return _0x199ed4[_0x22f523('0x45')]['id']&&delete _0x199ed4['body']['id'],db[_0x22f523('0x2d')]['findOne']({'where':{'id':_0x199ed4[_0x22f523('0x1d')]['id']}})['then'](handleEntityNotFound(_0x57c770,null))[_0x22f523('0x21')](saveUpdates(_0x199ed4[_0x22f523('0x45')],null))[_0x22f523('0x21')](respondWithResult(_0x57c770,null))[_0x22f523('0x2a')](handleError(_0x57c770,null));},exports[_0x2038f9('0x33')]=function(_0x51cc72,_0x1171f9){const _0x5ae604=_0x2038f9;return db[_0x5ae604('0x2d')][_0x5ae604('0x2')]({'where':{'id':_0x51cc72[_0x5ae604('0x1d')]['id']}})[_0x5ae604('0x21')](handleEntityNotFound(_0x1171f9,null))[_0x5ae604('0x21')](removeEntity(_0x1171f9,null))[_0x5ae604('0x2a')](handleError(_0x1171f9,null));},exports['describe']=function(_0x5aaa3c,_0x2235fe){const _0x4bc2ce=_0x2038f9;return db['ChatGroup'][_0x4bc2ce('0x36')]()['then'](respondWithResult(_0x2235fe,null))[_0x4bc2ce('0x2a')](handleError(_0x2235fe,null));},exports[_0x2038f9('0x39')]=function(_0x5391fd,_0x5d044f){const _0x33c1c6=_0x2038f9;return db[_0x33c1c6('0x3')]['count']({'where':{'ChatGroupId':_0x5391fd[_0x33c1c6('0x1d')]['id'],'ToId':_0x5391fd[_0x33c1c6('0x23')]['id'],'read':![]}})[_0x33c1c6('0x21')](function(_0x5a1d15){const _0x2cad7b=_0x33c1c6;return{'id':_[_0x2cad7b('0x12')](_0x5391fd[_0x2cad7b('0x1d')]['id']),'count':_0x5a1d15};})[_0x33c1c6('0x21')](respondWithResult(_0x5d044f,null))[_0x33c1c6('0x2a')](handleError(_0x5d044f,null));},exports[_0x2038f9('0x4')]=function(_0xb341a0,_0x1d346a){const _0x2b171f=_0x2038f9;return db[_0x2b171f('0x2d')][_0x2b171f('0x2')]({'where':{'id':_0xb341a0[_0x2b171f('0x1d')]['id']}})['then'](function(_0x455ada){const _0xe35a59=_0x2b171f;if(_0x455ada)return _0x455ada['addMembers'](_0xb341a0[_0xe35a59('0x45')][_0xe35a59('0x16')],{'through':_[_0xe35a59('0x3b')](_0xb341a0['body'],[_0xe35a59('0x16'),'id'])});})[_0x2b171f('0x21')](respondWithResult(_0x1d346a,null))[_0x2b171f('0x2a')](handleError(_0x1d346a,null));},exports[_0x2038f9('0x41')]=function(_0x308f77,_0x3aeaaf){const _0x386dd0=_0x2038f9;let _0x1572cf={};const _0x1762cc={};let _0x1c4f46,_0x50530b;return db['ChatGroup']['findOne']({'where':{'id':_0x308f77[_0x386dd0('0x1d')]['id']}})[_0x386dd0('0x21')](handleEntityNotFound(_0x3aeaaf,null))['then'](function(_0x3b4fa8){const _0xea7b00=_0x386dd0;if(_0x3b4fa8)return _0x1c4f46=_0x3b4fa8,_0x1762cc[_0xea7b00('0x8')]=_[_0xea7b00('0xe')](db[_0xea7b00('0xd')]['rawAttributes']),_0x1762cc[_0xea7b00('0x3e')]=_[_0xea7b00('0xe')](_0x308f77[_0xea7b00('0x3e')]),_0x1762cc[_0xea7b00('0x7')]=_[_0xea7b00('0x13')](_0x1762cc[_0xea7b00('0x8')],_0x1762cc['query']),_0x1572cf[_0xea7b00('0x9')]=_[_0xea7b00('0x13')](_0x1762cc[_0xea7b00('0x8')],qs['fields'](_0x308f77[_0xea7b00('0x3e')][_0xea7b00('0x0')])),_0x1572cf[_0xea7b00('0x9')]=_0x1572cf[_0xea7b00('0x9')]['length']?_0x1572cf[_0xea7b00('0x9')]:_0x1762cc[_0xea7b00('0x8')],_0x1572cf[_0xea7b00('0x3d')]=qs[_0xea7b00('0x2f')](_0x308f77['query']['sort']),_0x1572cf[_0xea7b00('0x30')]=qs['filters'](_['pick'](_0x308f77[_0xea7b00('0x3e')],_0x1762cc[_0xea7b00('0x7')])),_0x308f77['query'][_0xea7b00('0x3c')]&&(_0x1572cf['where']=_[_0xea7b00('0x31')](_0x1572cf['where'],{[Op['or']]:_[_0xea7b00('0x43')](_0x1572cf[_0xea7b00('0x9')],function(_0x370ba3){const _0xd96794=_0xea7b00,_0x461da8={};return _0x461da8[_0x370ba3]={[Op['like']]:'%'+_0x308f77[_0xd96794('0x3e')]['filter']+'%'},_0x461da8;})})),_0x1572cf=_[_0xea7b00('0x31')]({},_0x1572cf,_0x308f77[_0xea7b00('0x20')]),_0x1c4f46['getMembers'](_0x1572cf);})[_0x386dd0('0x21')](function(_0x5ca325){const _0x43d281=_0x386dd0;if(_0x5ca325)return _0x50530b=_0x5ca325[_0x43d281('0x1b')],typeof _0x308f77[_0x43d281('0x3e')][_0x43d281('0x1a')]===_0x43d281('0x25')&&(_0x1572cf[_0x43d281('0x46')]=qs['limit'](_0x308f77[_0x43d281('0x3e')]['limit']),_0x1572cf[_0x43d281('0x1')]=qs[_0x43d281('0x1')](_0x308f77['query'][_0x43d281('0x1')])),_0x1c4f46[_0x43d281('0x41')](_0x1572cf);})[_0x386dd0('0x21')](function(_0x3b9541){if(_0x3b9541)return _0x3b9541?{'count':_0x50530b,'rows':_0x3b9541}:null;})[_0x386dd0('0x21')](respondWithResult(_0x3aeaaf,null))['catch'](handleError(_0x3aeaaf,null));},exports[_0x2038f9('0x14')]=function(_0x41bf73,_0x39ef4f){const _0xbfd2a=_0x2038f9;return db[_0xbfd2a('0x2d')][_0xbfd2a('0x2')]({'where':{'id':_0x41bf73[_0xbfd2a('0x1d')]['id']}})[_0xbfd2a('0x21')](handleEntityNotFound(_0x39ef4f,null))['then'](function(_0x1f3b2e){const _0x57b7ea=_0xbfd2a;if(_0x1f3b2e)return _0x1f3b2e[_0x57b7ea('0x14')](_0x41bf73['query'][_0x57b7ea('0x16')]);})[_0xbfd2a('0x21')](respondWithStatusCode(_0x39ef4f,null))['catch'](handleError(_0x39ef4f,null));},exports[_0x2038f9('0xf')]=function(_0x23aab5,_0x2d7eee){const _0x20a9ae=_0x2038f9;return _0x23aab5[_0x20a9ae('0x45')]['id']&&delete _0x23aab5['body']['id'],db[_0x20a9ae('0x2d')][_0x20a9ae('0x2')]({'where':{'id':_0x23aab5[_0x20a9ae('0x1d')]['id']}})[_0x20a9ae('0x21')](handleEntityNotFound(_0x2d7eee,null))[_0x20a9ae('0x21')](function(_0x233054){const _0x14ae53=_0x20a9ae;if(_0x233054)return _0x23aab5[_0x14ae53('0x45')]['ChatGroupId']=_0x233054['id'],db[_0x14ae53('0x3')][_0x14ae53('0x38')](_0x23aab5[_0x14ae53('0x45')]);})[_0x20a9ae('0x21')](respondWithResult(_0x2d7eee,null))[_0x20a9ae('0x2a')](handleError(_0x2d7eee,null));},exports[_0x2038f9('0x34')]=function(_0x2b5ba4,_0x4adb43){const _0x4ebbaf=_0x2038f9;let _0x4b760a={};const _0x266e7d={};let _0x1cfa34,_0x1cb938;return db[_0x4ebbaf('0x2d')][_0x4ebbaf('0x2')]({'where':{'id':_0x2b5ba4[_0x4ebbaf('0x1d')]['id']}})[_0x4ebbaf('0x21')](handleEntityNotFound(_0x4adb43,null))['then'](function(_0x4e4923){const _0x180211=_0x4ebbaf;if(_0x4e4923){_0x1cfa34=_0x4e4923,_0x266e7d[_0x180211('0x8')]=_['keys'](db[_0x180211('0x3')][_0x180211('0x18')]),_0x266e7d[_0x180211('0x3e')]=_[_0x180211('0xe')](_0x2b5ba4['query']),_0x266e7d[_0x180211('0x7')]=_[_0x180211('0x13')](_0x266e7d['model'],_0x266e7d[_0x180211('0x3e')]),_0x4b760a[_0x180211('0x9')]=_['intersection'](_0x266e7d['model'],qs[_0x180211('0x0')](_0x2b5ba4[_0x180211('0x3e')]['fields'])),_0x4b760a[_0x180211('0x9')]=_0x4b760a[_0x180211('0x9')][_0x180211('0x1b')]?_0x4b760a[_0x180211('0x9')]:_0x266e7d[_0x180211('0x8')],_0x4b760a[_0x180211('0x3d')]=qs[_0x180211('0x2f')](_0x2b5ba4[_0x180211('0x3e')][_0x180211('0x2f')]),_0x4b760a[_0x180211('0x30')]=qs[_0x180211('0x7')](_[_0x180211('0x40')](_0x2b5ba4[_0x180211('0x3e')],_0x266e7d[_0x180211('0x7')]));_0x2b5ba4[_0x180211('0x3e')][_0x180211('0x3c')]&&(_0x4b760a['where']=_['merge'](_0x4b760a['where'],{[Op['or']]:_[_0x180211('0x43')](_0x4b760a['attributes'],function(_0x51f281){const _0x2ee178=_0x180211,_0x499c99={};return _0x499c99[_0x51f281]={[Op[_0x2ee178('0x27')]]:'%'+_0x2b5ba4[_0x2ee178('0x3e')]['filter']+'%'},_0x499c99;})}));if(_0x2b5ba4[_0x180211('0x3e')][_0x180211('0x1c')]){const _0x2c119e=_0x2b5ba4[_0x180211('0x3e')]['$gte'][_0x180211('0x42')](','),_0x4ebbad={};_0x4ebbad[_0x2c119e[0x0]]={[Op[_0x180211('0x3f')]]:moment(_0x2c119e[0x1])[_0x180211('0x1e')](_0x180211('0x37'))},_0x4b760a[_0x180211('0x30')]=_[_0x180211('0x31')](_0x4b760a[_0x180211('0x30')],_0x4ebbad);}return _0x4b760a=_['merge']({},_0x4b760a,_0x2b5ba4['options']),_0x1cfa34[_0x180211('0x34')](_0x4b760a);}})[_0x4ebbaf('0x21')](function(_0x352181){const _0x4b1128=_0x4ebbaf;if(_0x352181)return _0x1cb938=_0x352181[_0x4b1128('0x1b')],typeof _0x2b5ba4['query'][_0x4b1128('0x1a')]===_0x4b1128('0x25')&&(_0x4b760a[_0x4b1128('0x46')]=qs['limit'](_0x2b5ba4[_0x4b1128('0x3e')][_0x4b1128('0x46')]),_0x4b760a[_0x4b1128('0x1')]=qs['offset'](_0x2b5ba4['query'][_0x4b1128('0x1')])),_0x1cfa34[_0x4b1128('0x34')](_0x4b760a);})['then'](function(_0x509870){if(_0x509870)return _0x509870?{'count':_0x1cb938,'rows':_0x509870}:null;})[_0x4ebbaf('0x21')](respondWithResult(_0x4adb43,null))[_0x4ebbaf('0x2a')](handleError(_0x4adb43,null));}; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.events.js b/server/api/chatGroup/chatGroup.events.js index f38f71e..15478e2 100644 --- a/server/api/chatGroup/chatGroup.events.js +++ b/server/api/chatGroup/chatGroup.events.js @@ -1 +1 @@ -const a60_0x5ad8=['exports','addHook','emit','save','setMaxListeners','undefined','events','update','ChatGroup'];(function(_0x6dc3a,_0x5ad8ec){const _0x502346=function(_0x5a5f96){while(--_0x5a5f96){_0x6dc3a['push'](_0x6dc3a['shift']());}};_0x502346(++_0x5ad8ec);}(a60_0x5ad8,0x144));const a60_0x5023=function(_0x6dc3a,_0x5ad8ec){_0x6dc3a=_0x6dc3a-0x0;let _0x502346=a60_0x5ad8[_0x6dc3a];return _0x502346;};const _0x4245da=a60_0x5023;'use strict';const EventEmitter=require(_0x4245da('0x6')),ChatGroup=require('../../mysqldb')['db'][_0x4245da('0x8')],ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0x4245da('0x4')](0x0);const events={'afterCreate':_0x4245da('0x3'),'afterUpdate':_0x4245da('0x7'),'afterDestroy':'remove'};function emitEvent(_0x5a5f96){return function(_0x38632e){const _0x58d5b0=a60_0x5023;ChatGroupEvents[_0x58d5b0('0x2')](_0x5a5f96+':'+_0x38632e['id'],_0x38632e),ChatGroupEvents[_0x58d5b0('0x2')](_0x5a5f96,_0x38632e);};}for(const e in events){if(typeof events[e]!==_0x4245da('0x5')){const event=events[e];ChatGroup[_0x4245da('0x1')](e,emitEvent(event));}}module[_0x4245da('0x0')]=ChatGroupEvents; \ No newline at end of file +const a60_0x422f=['emit','remove','ChatGroup','update','exports','addHook','save','../../mysqldb','setMaxListeners','undefined'];(function(_0x613876,_0x422f34){const _0x8acc8=function(_0x5ad45f){while(--_0x5ad45f){_0x613876['push'](_0x613876['shift']());}};_0x8acc8(++_0x422f34);}(a60_0x422f,0xf9));const a60_0x8acc=function(_0x613876,_0x422f34){_0x613876=_0x613876-0x0;let _0x8acc8=a60_0x422f[_0x613876];return _0x8acc8;};const _0x5a24ac=a60_0x8acc;'use strict';const EventEmitter=require('events'),ChatGroup=require(_0x5a24ac('0x8'))['db'][_0x5a24ac('0x3')],ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0x5a24ac('0x9')](0x0);const events={'afterCreate':_0x5a24ac('0x7'),'afterUpdate':_0x5a24ac('0x4'),'afterDestroy':_0x5a24ac('0x2')};function emitEvent(_0x5ad45f){return function(_0x5216d9){const _0x1639d6=a60_0x8acc;ChatGroupEvents[_0x1639d6('0x1')](_0x5ad45f+':'+_0x5216d9['id'],_0x5216d9),ChatGroupEvents['emit'](_0x5ad45f,_0x5216d9);};}for(const e in events){if(typeof events[e]!==_0x5a24ac('0x0')){const event=events[e];ChatGroup[_0x5a24ac('0x6')](e,emitEvent(event));}}module[_0x5a24ac('0x5')]=ChatGroupEvents; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.model.js b/server/api/chatGroup/chatGroup.model.js index 7feaa2d..f5017c4 100644 --- a/server/api/chatGroup/chatGroup.model.js +++ b/server/api/chatGroup/chatGroup.model.js @@ -1 +1 @@ -const a61_0x3f56=['./chatGroup.attributes','ChatGroup','chat_groups'];(function(_0x33c347,_0x3f56c7){const _0x33b99d=function(_0x526e42){while(--_0x526e42){_0x33c347['push'](_0x33c347['shift']());}};_0x33b99d(++_0x3f56c7);}(a61_0x3f56,0x82));const a61_0x33b9=function(_0x33c347,_0x3f56c7){_0x33c347=_0x33c347-0x0;let _0x33b99d=a61_0x3f56[_0x33c347];return _0x33b99d;};const _0x3a1dc2=a61_0x33b9;'use strict';const attributes=require(_0x3a1dc2('0x2'));module['exports']=function(_0x526e42){const _0x339402=_0x3a1dc2,_0x51e237=_0x526e42['define'](_0x339402('0x0'),attributes,{'tableName':_0x339402('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x51e237;}; \ No newline at end of file +const a61_0x12fd=['exports','ChatGroup','./chatGroup.attributes','chat_groups'];(function(_0x46c187,_0x12fdd6){const _0x1e0e53=function(_0x2df1fc){while(--_0x2df1fc){_0x46c187['push'](_0x46c187['shift']());}};_0x1e0e53(++_0x12fdd6);}(a61_0x12fd,0x85));const a61_0x1e0e=function(_0x46c187,_0x12fdd6){_0x46c187=_0x46c187-0x0;let _0x1e0e53=a61_0x12fd[_0x46c187];return _0x1e0e53;};const _0x37f259=a61_0x1e0e;'use strict';const attributes=require(_0x37f259('0x1'));module[_0x37f259('0x3')]=function(_0x2df1fc){const _0x53707a=_0x37f259,_0x2fb2fd=_0x2df1fc['define'](_0x53707a('0x0'),attributes,{'tableName':_0x53707a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2fb2fd;}; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.rpc.js b/server/api/chatGroup/chatGroup.rpc.js index 989c6a1..4d8674f 100644 --- a/server/api/chatGroup/chatGroup.rpc.js +++ b/server/api/chatGroup/chatGroup.rpc.js @@ -1 +1 @@ -const a62_0x1bfd=['../../rediscache','./chatGroup.socket'];(function(_0x156c80,_0x1bfdda){const _0x50689f=function(_0x22ef86){while(--_0x22ef86){_0x156c80['push'](_0x156c80['shift']());}};_0x50689f(++_0x1bfdda);}(a62_0x1bfd,0x6c));const a62_0x5068=function(_0x156c80,_0x1bfdda){_0x156c80=_0x156c80-0x0;let _0x50689f=a62_0x1bfd[_0x156c80];return _0x50689f;};const _0x5b9a01=a62_0x5068;'use strict';const {getSocket}=require(_0x5b9a01('0x0')),socket=getSocket();require(_0x5b9a01('0x1'))['register'](socket); \ No newline at end of file +const a62_0x30d3=['register','./chatGroup.socket'];(function(_0x1ca030,_0x30d34c){const _0x3c50df=function(_0x4c6f4d){while(--_0x4c6f4d){_0x1ca030['push'](_0x1ca030['shift']());}};_0x3c50df(++_0x30d34c);}(a62_0x30d3,0xf8));const a62_0x3c50=function(_0x1ca030,_0x30d34c){_0x1ca030=_0x1ca030-0x0;let _0x3c50df=a62_0x30d3[_0x1ca030];return _0x3c50df;};const _0x3f185c=a62_0x3c50;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x3f185c('0x1'))[_0x3f185c('0x0')](socket); \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.socket.js b/server/api/chatGroup/chatGroup.socket.js index fc78680..8d94893 100644 --- a/server/api/chatGroup/chatGroup.socket.js +++ b/server/api/chatGroup/chatGroup.socket.js @@ -1 +1 @@ -const a63_0xdcc0=['length','register','update','remove','emit','chatGroup:','./chatGroup.events'];(function(_0x60594b,_0xdcc095){const _0x5bc3f3=function(_0x4521da){while(--_0x4521da){_0x60594b['push'](_0x60594b['shift']());}};_0x5bc3f3(++_0xdcc095);}(a63_0xdcc0,0x14a));const a63_0x5bc3=function(_0x60594b,_0xdcc095){_0x60594b=_0x60594b-0x0;let _0x5bc3f3=a63_0xdcc0[_0x60594b];return _0x5bc3f3;};const _0xc6d49b=a63_0x5bc3;'use strict';const ChatGroupEvents=require(_0xc6d49b('0x5')),events=['save',_0xc6d49b('0x2'),_0xc6d49b('0x1')];function createListener(_0x4521da,_0x2095b7){return function(_0x23b1b1){const _0x525a7b=a63_0x5bc3;_0x2095b7[_0x525a7b('0x3')](_0x4521da,_0x23b1b1);};}exports[_0xc6d49b('0x0')]=function(_0x425157){const _0x1cb37e=_0xc6d49b;for(let _0x3403c1=0x0,_0x55d459=events[_0x1cb37e('0x6')];_0x3403c1<_0x55d459;_0x3403c1++){const _0x316a11=events[_0x3403c1],_0xf9902=createListener(_0x1cb37e('0x4')+_0x316a11,_0x425157);ChatGroupEvents['on'](_0x316a11,_0xf9902);}}; \ No newline at end of file +const a63_0x9ebd=['length','./chatGroup.events','update','emit','register'];(function(_0x2c7299,_0x9ebd42){const _0x5c4997=function(_0x28f59b){while(--_0x28f59b){_0x2c7299['push'](_0x2c7299['shift']());}};_0x5c4997(++_0x9ebd42);}(a63_0x9ebd,0x167));const a63_0x5c49=function(_0x2c7299,_0x9ebd42){_0x2c7299=_0x2c7299-0x0;let _0x5c4997=a63_0x9ebd[_0x2c7299];return _0x5c4997;};const _0x4d4fd2=a63_0x5c49;'use strict';const ChatGroupEvents=require(_0x4d4fd2('0x2')),events=['save','remove',_0x4d4fd2('0x3')];function createListener(_0x28f59b,_0x4b0727){return function(_0x3ef8ae){const _0x2908e1=a63_0x5c49;_0x4b0727[_0x2908e1('0x4')](_0x28f59b,_0x3ef8ae);};}exports[_0x4d4fd2('0x0')]=function(_0x27e1ba){const _0x391d2c=_0x4d4fd2;for(let _0x1a54c8=0x0,_0x52a1fc=events[_0x391d2c('0x1')];_0x1a54c8<_0x52a1fc;_0x1a54c8++){const _0x1a9fbd=events[_0x1a54c8],_0x2cdf3f=createListener('chatGroup:'+_0x1a9fbd,_0x27e1ba);ChatGroupEvents['on'](_0x1a9fbd,_0x2cdf3f);}}; \ No newline at end of file diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js index a32a0ce..896755d 100644 --- a/server/api/chatGroup/index.js +++ b/server/api/chatGroup/index.js @@ -1 +1 @@ -const a64_0x2458=['../../components/auth/service','getUnread','/:id/messages','/:id/unread','exports','update','/:id','put','describe','isAuthenticated','./chatGroup.controller','index','addMessage','get','create','/:id/members','express','post','removeMembers'];(function(_0x526237,_0x2458af){const _0xb44e63=function(_0x306fe1){while(--_0x306fe1){_0x526237['push'](_0x526237['shift']());}};_0xb44e63(++_0x2458af);}(a64_0x2458,0x125));const a64_0xb44e=function(_0x526237,_0x2458af){_0x526237=_0x526237-0x0;let _0xb44e63=a64_0x2458[_0x526237];return _0xb44e63;};const _0x28f189=a64_0xb44e;'use strict';const express=require(_0x28f189('0x8')),router=express['Router'](),auth=require(_0x28f189('0xb')),controller=require(_0x28f189('0x2'));router[_0x28f189('0x5')]('/',auth[_0x28f189('0x1')](),controller[_0x28f189('0x3')]),router[_0x28f189('0x5')]('/describe',auth['isAuthenticated'](),controller[_0x28f189('0x0')]),router[_0x28f189('0x5')](_0x28f189('0x11'),auth[_0x28f189('0x1')](),controller['show']),router[_0x28f189('0x5')](_0x28f189('0xe'),auth[_0x28f189('0x1')](),controller[_0x28f189('0xc')]),router[_0x28f189('0x5')](_0x28f189('0x7'),auth[_0x28f189('0x1')](),controller['getMembers']),router['get'](_0x28f189('0xd'),auth[_0x28f189('0x1')](),controller['getMessages']),router[_0x28f189('0x9')]('/',auth['isAuthenticated'](),controller[_0x28f189('0x6')]),router[_0x28f189('0x9')](_0x28f189('0x7'),auth[_0x28f189('0x1')](),controller['addMembers']),router[_0x28f189('0x9')](_0x28f189('0xd'),auth[_0x28f189('0x1')](),controller[_0x28f189('0x4')]),router[_0x28f189('0x12')](_0x28f189('0x11'),auth['isAuthenticated'](),controller[_0x28f189('0x10')]),router['delete']('/:id',auth[_0x28f189('0x1')](),controller['destroy']),router['delete'](_0x28f189('0x7'),auth[_0x28f189('0x1')](),controller[_0x28f189('0xa')]),module[_0x28f189('0xf')]=router; \ No newline at end of file +const a64_0x3da1=['delete','isAuthenticated','/describe','post','./chatGroup.controller','/:id/members','show','removeMembers','getMembers','/:id/messages','Router','/:id','express','destroy','addMembers','put','index','get','getMessages','exports','addMessage','create'];(function(_0xc55f51,_0x3da1c8){const _0x3ea52f=function(_0x3724cb){while(--_0x3724cb){_0xc55f51['push'](_0xc55f51['shift']());}};_0x3ea52f(++_0x3da1c8);}(a64_0x3da1,0xbe));const a64_0x3ea5=function(_0xc55f51,_0x3da1c8){_0xc55f51=_0xc55f51-0x0;let _0x3ea52f=a64_0x3da1[_0xc55f51];return _0x3ea52f;};const _0x2ab4f4=a64_0x3ea5;'use strict';const express=require(_0x2ab4f4('0x14')),router=express[_0x2ab4f4('0x12')](),auth=require('../../components/auth/service'),controller=require(_0x2ab4f4('0xc'));router['get']('/',auth[_0x2ab4f4('0x9')](),controller[_0x2ab4f4('0x2')]),router[_0x2ab4f4('0x3')](_0x2ab4f4('0xa'),auth[_0x2ab4f4('0x9')](),controller['describe']),router[_0x2ab4f4('0x3')](_0x2ab4f4('0x13'),auth[_0x2ab4f4('0x9')](),controller[_0x2ab4f4('0xe')]),router['get']('/:id/unread',auth['isAuthenticated'](),controller['getUnread']),router[_0x2ab4f4('0x3')]('/:id/members',auth['isAuthenticated'](),controller[_0x2ab4f4('0x10')]),router[_0x2ab4f4('0x3')](_0x2ab4f4('0x11'),auth['isAuthenticated'](),controller[_0x2ab4f4('0x4')]),router[_0x2ab4f4('0xb')]('/',auth[_0x2ab4f4('0x9')](),controller[_0x2ab4f4('0x7')]),router[_0x2ab4f4('0xb')](_0x2ab4f4('0xd'),auth[_0x2ab4f4('0x9')](),controller[_0x2ab4f4('0x0')]),router['post']('/:id/messages',auth[_0x2ab4f4('0x9')](),controller[_0x2ab4f4('0x6')]),router[_0x2ab4f4('0x1')](_0x2ab4f4('0x13'),auth[_0x2ab4f4('0x9')](),controller['update']),router[_0x2ab4f4('0x8')](_0x2ab4f4('0x13'),auth[_0x2ab4f4('0x9')](),controller[_0x2ab4f4('0x15')]),router[_0x2ab4f4('0x8')]('/:id/members',auth[_0x2ab4f4('0x9')](),controller[_0x2ab4f4('0xf')]),module[_0x2ab4f4('0x5')]=router; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.attributes.js b/server/api/chatInteraction/chatInteraction.attributes.js index 3c78f6c..d2eb8de 100644 --- a/server/api/chatInteraction/chatInteraction.attributes.js +++ b/server/api/chatInteraction/chatInteraction.attributes.js @@ -1 +1 @@ -const a65_0x5429=['ENUM','sequelize','DATE','out','TEXT','STRING','INTEGER','thumb','BOOLEAN','star','long'];(function(_0x33be78,_0x5429a3){const _0x56d04d=function(_0x3d2969){while(--_0x3d2969){_0x33be78['push'](_0x33be78['shift']());}};_0x56d04d(++_0x5429a3);}(a65_0x5429,0x143));const a65_0x56d0=function(_0x33be78,_0x5429a3){_0x33be78=_0x33be78-0x0;let _0x56d04d=a65_0x5429[_0x33be78];return _0x56d04d;};const _0x2b0c14=a65_0x56d0;'use strict';const Sequelize=require(_0x2b0c14('0x8'));module['exports']={'closed':{'type':Sequelize[_0x2b0c14('0x4')],'defaultValue':![]},'ratingValue':{'type':Sequelize[_0x2b0c14('0x2')]},'ratingType':{'type':Sequelize['ENUM'](_0x2b0c14('0x5'),_0x2b0c14('0x3')),'defaultValue':_0x2b0c14('0x5')},'ratingMessage':{'type':Sequelize[_0x2b0c14('0x0')]},'pathTranscript':{'type':Sequelize[_0x2b0c14('0x0')]},'mailTranscript':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize[_0x2b0c14('0x9')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x2b0c14('0x1')]},'browserName':{'type':Sequelize['STRING']},'browserVersion':{'type':Sequelize['STRING']},'osName':{'type':Sequelize[_0x2b0c14('0x1')]},'osVersion':{'type':Sequelize[_0x2b0c14('0x1')]},'deviceModel':{'type':Sequelize[_0x2b0c14('0x1')]},'deviceVendor':{'type':Sequelize[_0x2b0c14('0x1')]},'deviceType':{'type':Sequelize[_0x2b0c14('0x1')]},'referer':{'type':Sequelize['TEXT']},'customerIp':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x2b0c14('0x0')](_0x2b0c14('0x6'))},'read1stAt':{'type':Sequelize['DATE']},'lastMsgAt':{'type':Sequelize[_0x2b0c14('0x9')]},'lastMsgDirection':{'type':Sequelize[_0x2b0c14('0x7')]('in',_0x2b0c14('0xa')),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize[_0x2b0c14('0x1')]},'customerPort':{'type':Sequelize[_0x2b0c14('0x1')]},'vidaooSessionId':{'type':Sequelize[_0x2b0c14('0x0')]}}; \ No newline at end of file +const a65_0x33e6=['star','ENUM','TEXT','INTEGER','long','out','STRING','BOOLEAN','exports','thumb','sequelize','DATE'];(function(_0x133a51,_0x33e67e){const _0x4bfb52=function(_0xc3b30f){while(--_0xc3b30f){_0x133a51['push'](_0x133a51['shift']());}};_0x4bfb52(++_0x33e67e);}(a65_0x33e6,0x78));const a65_0x4bfb=function(_0x133a51,_0x33e67e){_0x133a51=_0x133a51-0x0;let _0x4bfb52=a65_0x33e6[_0x133a51];return _0x4bfb52;};const _0x85d973=a65_0x4bfb;'use strict';const Sequelize=require(_0x85d973('0xa'));module[_0x85d973('0x8')]={'closed':{'type':Sequelize[_0x85d973('0x7')],'defaultValue':![]},'ratingValue':{'type':Sequelize[_0x85d973('0x3')]},'ratingType':{'type':Sequelize[_0x85d973('0x1')](_0x85d973('0x0'),_0x85d973('0x9')),'defaultValue':_0x85d973('0x0')},'ratingMessage':{'type':Sequelize['TEXT']},'pathTranscript':{'type':Sequelize[_0x85d973('0x2')]},'mailTranscript':{'type':Sequelize[_0x85d973('0x6')],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize[_0x85d973('0xb')]},'disposition':{'type':Sequelize[_0x85d973('0x6')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x85d973('0x6')]},'note':{'type':Sequelize[_0x85d973('0x6')]},'browserName':{'type':Sequelize[_0x85d973('0x6')]},'browserVersion':{'type':Sequelize[_0x85d973('0x6')]},'osName':{'type':Sequelize[_0x85d973('0x6')]},'osVersion':{'type':Sequelize[_0x85d973('0x6')]},'deviceModel':{'type':Sequelize['STRING']},'deviceVendor':{'type':Sequelize[_0x85d973('0x6')]},'deviceType':{'type':Sequelize[_0x85d973('0x6')]},'referer':{'type':Sequelize[_0x85d973('0x2')]},'customerIp':{'type':Sequelize[_0x85d973('0x6')]},'formData':{'type':Sequelize[_0x85d973('0x2')](_0x85d973('0x4'))},'read1stAt':{'type':Sequelize[_0x85d973('0xb')]},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize[_0x85d973('0x1')]('in',_0x85d973('0x5')),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize['STRING']},'customerPort':{'type':Sequelize[_0x85d973('0x6')]},'vidaooSessionId':{'type':Sequelize[_0x85d973('0x2')]}}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.controller.js b/server/api/chatInteraction/chatInteraction.controller.js index e4785a3..c443dcb 100644 --- a/server/api/chatInteraction/chatInteraction.controller.js +++ b/server/api/chatInteraction/chatInteraction.controller.js @@ -1 +1 @@ -const a66_0x3734=['unix','replace','intersection','direction','ChatInteraction,\x20%s,\x20%s,\x20%s','from','length','type','Contact','keyBy','format','Smtp','abandonInteraction,\x20%s,\x20%s,\x20%s','i.ChatWebsiteId\x20IN\x20?','Sequelize','status','abandon','user_has_chat_interactions','customUpdate','toString','$substring','$gte','body','rows','customerPort','journey','30px','findAll','transcript-%d-%s.zip','conditions','sqlOperator','server/files/chat/upload/','pick','a.mandatoryDisposition','N.A.','YYYY-MM-DD','getChatWebsites','concat','chatInteractionTags:save','Contact.fax','read','Unable\x20to\x20create\x20Vidaoo\x20session','include','getMessages','message','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
','`\x20>\x200','name','filters','Users','SendMail','u.id\x20=\x20ui.UserId','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','Contact.phone','set','end','Unauthorized','TagIds','secret','Interaction\x20already\x20assigned','send','POST','lodash','code','basename','CmContact','`\x20=\x200','user','i.id','c.firstName','operator','transcript-','agentAlias','start','sequelize','chat_websites','attributes','options','Owner','fields','getFullTextValue','[%s]\x20%s:\x20%s\x0a','ui.ChatInteractionId','field','vidaooEscalation','customer','nolimit','files','i.*','Contact.email','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
Interaction\x20Transcript
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
','GROUP_CONCAT(DISTINCT\x20t.id)','json','../../config/environment','transcript-%s.txt','stringify','o.id\x20=\x20i.UserId','Owner.internal','request','split','agentIdentifier','count','a.id\x20=\x20i.ChatWebsiteId','isNumeric','isArray','expr','attachments','isEmpty','disposition','`unreadMessages`\x20=\x200','all','renderFile','jayson/promise','catch','file','ValidationError','path','attachId','ChatWebsite','select','closed','params','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','removeTags','attachmentDownload','out','./chatInteraction.socket','%s%d','firstName','agent_fullname','createWriteStream','website_alias','setTags','tag','then','rawAttributes','join_url','ChatInteraction,\x20%s,\x20%s','push','keys','ChatInteractionId','toFile','key','resolve','chat_interaction_has_tags','addMessage','entity\x20not\x20found','where','undefined','lastName','\x22%s\x22\x20<%s>','some','sort','ContactId','i.ChatWebsiteId\x20IS\x20NULL','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','order','o.internal','null','offset','info','buildExpression','a.key','../../rediscache','$lte','unlinkSync','vidaooApiKey','40px','root','color','describe','it.ChatInteractionId\x20=\x20i.id','get','ChatWebsiteId','text','server','tools_tags','Messages','https://api-vidaoo.xcally.com/api/v1/sessions','zip-dir','t.id\x20=\x20it.TagId','Tags','mimetype','u.fullname','QueryTypes','chat_interactions','Account.mandatoryDisposition','createReadStream','parse','index','destroy','../../components/parsers/qs','fullname','clone','Owner.fullname','ChatInteraction','stack','mkdirSync','service','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','rimraf','appendFileSync','t.id\x20IN\x20?','cm_contacts','left_join','error','customerIp','Attachment','ui.ChatInteractionId\x20IN\x20?','filter','query','mailTranscript','UserId','c.phone','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','findOne','err','DESC','merge','find','YYYY-MM-DD\x20HH:mm:ss','users','squel','MotionCWB:','value','User','pipe','downloadInteraction.html','http','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','emit','model','forEach','getMyMessages','secure','System','omit','Chat','compact','result','util','Content-Range','like','Contact.mobile','me.ChatInteractionId\x20=\x20i.id','create','register','pass','host','ChatMessage','fieldName','Tag','includeAll','auth','unreadMessages','api','client','addTags','.pdf','MailServerOut','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','map','o.fullname','email','sendStatus','createdAt','alias','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','having','MailAccount','referer','../../config/logger','join','Visitor','i.id\x20LIKE\x20?','tail','server/files/attachments/','update','c.mobile','Account','\x20=\x20?','union','ids','views','limit','download','request\x20sent','Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a','port','MM/DD/YYYY\x20HH:mm:ss'];(function(_0x202480,_0x373413){const _0x5d37bc=function(_0x4aeae1){while(--_0x4aeae1){_0x202480['push'](_0x202480['shift']());}};_0x5d37bc(++_0x373413);}(a66_0x3734,0x177));const a66_0x5d37=function(_0x202480,_0x373413){_0x202480=_0x202480-0x0;let _0x5d37bc=a66_0x3734[_0x202480];return _0x5d37bc;};const _0x26f3e2=a66_0x5d37;'use strict';const pdf=require('html-pdf'),rimraf=require(_0x26f3e2('0x74')),zipdir=require(_0x26f3e2('0x5f')),rp=require('request-promise-native'),moment=require('moment'),util=require(_0x26f3e2('0x9c')),path=require(_0x26f3e2('0x20')),ejs=require('ejs'),fs=require('fs'),_=require(_0x26f3e2('0x10d')),squel=require(_0x26f3e2('0x8a')),{getSocket}=require(_0x26f3e2('0x4f')),qs=require(_0x26f3e2('0x6b')),as=require('../../components/parsers/advancedSearch'),logger=require(_0x26f3e2('0xbc'))(_0x26f3e2('0xab')),config=require(_0x26f3e2('0x9')),db=require('../../mysqldb')['db'],{Op}=require('sequelize'),socket=getSocket();require(_0x26f3e2('0x2a'))[_0x26f3e2('0xa2')](socket);const jayson=require(_0x26f3e2('0x1c')),client=jayson[_0x26f3e2('0xac')][_0x26f3e2('0x90')]({'port':0x232b}),client9004=jayson[_0x26f3e2('0xac')][_0x26f3e2('0x90')]({'port':0x232c});function respondWithRpcPromise(_0x4aeae1,_0x17aef1,_0x1323a0,_0x3b9eb5){return new Promise(function(_0x3c806c,_0x52dda3){const _0x2a9ee0=a66_0x5d37,_0x28a63e=_0x3b9eb5||client;return _0x28a63e[_0x2a9ee0('0xe')](_0x4aeae1,_0x1323a0)['then'](function(_0x35cb5){const _0x3a0f74=_0x2a9ee0;logger[_0x3a0f74('0x4c')](_0x3a0f74('0x35'),_0x17aef1,_0x3a0f74('0xcb')),logger['debug'](_0x3a0f74('0xd3'),_0x17aef1,_0x3a0f74('0xcb'),JSON[_0x3a0f74('0xb')](_0x35cb5));if(_0x35cb5[_0x3a0f74('0x79')]){if(_0x35cb5['error'][_0x3a0f74('0x10e')]===0x1f4)return logger['error']('ChatInteraction,\x20%s,\x20%s',_0x17aef1,_0x35cb5['error'][_0x3a0f74('0xfb')]),_0x52dda3(_0x35cb5[_0x3a0f74('0x79')]['message']);return logger[_0x3a0f74('0x79')](_0x3a0f74('0x35'),_0x17aef1,_0x35cb5[_0x3a0f74('0x79')][_0x3a0f74('0xfb')]),_0x3c806c(_0x35cb5[_0x3a0f74('0x79')][_0x3a0f74('0xfb')]);}else logger[_0x3a0f74('0x4c')](_0x3a0f74('0x35'),_0x17aef1,_0x3a0f74('0xcb')),_0x3c806c(_0x35cb5[_0x3a0f74('0x9b')][_0x3a0f74('0xfb')]);})[_0x2a9ee0('0x1d')](function(_0x4714a8){const _0x1c75a4=_0x2a9ee0;logger[_0x1c75a4('0x79')](_0x1c75a4('0x35'),_0x17aef1,_0x4714a8),_0x52dda3(_0x4714a8);});});}function respondWithStatusCode(_0x4ccc8e,_0xcfbe86){return _0xcfbe86=_0xcfbe86||0xcc,function(_0x112709){const _0x5de367=a66_0x5d37;if(_0x112709)return _0x4ccc8e[_0x5de367('0xb4')](_0xcfbe86);return _0x4ccc8e['status'](_0xcfbe86)[_0x5de367('0x106')]();};}function respondWithResult(_0x59e3f6,_0x4a0433){return _0x4a0433=_0x4a0433||0xc8,function(_0x367448){const _0x2aea6b=a66_0x5d37;if(_0x367448)return _0x59e3f6[_0x2aea6b('0xde')](_0x4a0433)[_0x2aea6b('0x8')](_0x367448);};}function respondWithFilteredResult(_0x5633dc,_0x235e63){return function(_0x276676){const _0x41e9ca=a66_0x5d37;if(_0x276676){const _0x175479=_0x276676[_0x41e9ca('0x11')],_0x2d547a=_0x235e63['offset'];let _0x159b8d=_0x235e63[_0x41e9ca('0x4b')]+_0x235e63[_0x41e9ca('0xc9')],_0x43be78;return _0x159b8d>=_0x175479?(_0x159b8d=_0x175479,_0x43be78=0xc8):_0x43be78=0xce,_0x5633dc['status'](_0x43be78),_0x5633dc[_0x41e9ca('0x105')](_0x41e9ca('0x9d'),_0x2d547a+'-'+_0x159b8d+'/'+_0x175479)[_0x41e9ca('0x8')](_0x276676);}return null;};}function saveUpdates(_0x2bba71){return function(_0xb70531){const _0x245ec6=a66_0x5d37;if(_0xb70531)return _0xb70531[_0x245ec6('0xc2')](_0x2bba71)[_0x245ec6('0x32')](function(_0x236aee){return _0x236aee;});return null;};}function removeEntity(_0x8cd4e3){return function(_0x50ce2d){const _0xf4937c=a66_0x5d37;if(_0x50ce2d)return _0x50ce2d['destroy']()[_0xf4937c('0x32')](function(){const _0x4f379b=_0xf4937c;_0x8cd4e3[_0x4f379b('0xde')](0xcc)[_0x4f379b('0x106')]();});};}function handleEntityNotFound(_0x47fd5f){return function(_0x21cead){return!_0x21cead&&_0x47fd5f['sendStatus'](0x194),_0x21cead;};}function handleError(_0x44556f,_0x3ff7ac){return _0x3ff7ac=_0x3ff7ac||0x1f4,function(_0x59dc0c){const _0xd3824a=a66_0x5d37;logger[_0xd3824a('0x79')](_0x59dc0c[_0xd3824a('0x70')]),_0x59dc0c[_0xd3824a('0xfe')]&&delete _0x59dc0c['name'],_0x44556f['status'](_0x3ff7ac)[_0xd3824a('0x10b')](_0x59dc0c);};}function getInteractionUsers(_0x2df4d6,_0x58a0f1){return new Promise(function(_0x5cb1f1,_0x1bd633){const _0x69020c=a66_0x5d37;try{_0x58a0f1[_0x2df4d6['id']]&&(_0x2df4d6[_0x69020c('0x100')]=_[_0x69020c('0xb1')](_0x58a0f1[_0x2df4d6['id']],function(_0x279f8f){const _0x42b1cf=_0x69020c;return{'id':_0x279f8f['id'],'fullname':_0x279f8f[_0x42b1cf('0x6c')]};}));}catch(_0x3f3ca5){_0x1bd633(_0x3f3ca5);}_0x5cb1f1(_0x2df4d6);});}function getInteractionTags(_0x35001d,_0x13a6a1){return new Promise(function(_0x38e1c9,_0x27c54c){const _0x1a27f7=a66_0x5d37;try{_0x35001d[_0x1a27f7('0x108')]&&(_0x35001d[_0x1a27f7('0x61')]=[],_0x35001d['TagIds'][_0x1a27f7('0xf')](',')[_0x1a27f7('0x94')](function(_0x4dbdcc){const _0x28b050=_0x1a27f7;_0x35001d[_0x28b050('0x61')][_0x28b050('0x36')](_0x13a6a1[_0x4dbdcc]);})),delete _0x35001d[_0x1a27f7('0x108')];}catch(_0x666da2){_0x27c54c(_0x666da2);}_0x38e1c9(_0x35001d);});}function updateChatInteraction(_0x5ac4fe,_0x431bf1,_0x3558ad){return new Promise(function(_0x90f594,_0x298c31){const _0x58aefb=a66_0x5d37;return getInteractionUsers(_0x5ac4fe,_0x3558ad)[_0x58aefb('0x32')](function(_0x3007e5){return getInteractionTags(_0x3007e5,_0x431bf1);})[_0x58aefb('0x32')](function(_0x347f19){_0x90f594(_0x347f19);})['catch'](function(_0x417610){_0x298c31(_0x417610);});});}exports[_0x26f3e2('0x69')]=function(_0x5e59d1,_0x21505d){const _0x1b5839=_0x26f3e2,_0x3f7779={},_0x2b6fe6={},_0x144546={'count':0x0,'rows':[]},_0xbe8e2b=_[_0x1b5839('0xb1')](db[_0x1b5839('0x6f')]['rawAttributes'],function(_0x3e80f7){const _0x4bd327=_0x1b5839;return{'name':_0x3e80f7[_0x4bd327('0xa6')],'type':_0x3e80f7[_0x4bd327('0xd6')][_0x4bd327('0x3a')]};});_0x2b6fe6[_0x1b5839('0x93')]=_[_0x1b5839('0xb1')](_0xbe8e2b,_0x1b5839('0xfe')),_0x2b6fe6[_0x1b5839('0x7e')]=_[_0x1b5839('0x37')](_0x5e59d1[_0x1b5839('0x7e')]),_0x2b6fe6['filters']=_['intersection'](_0x2b6fe6[_0x1b5839('0x93')],_0x2b6fe6[_0x1b5839('0x7e')]),_0x3f7779[_0x1b5839('0x11b')]=_['intersection'](_0x2b6fe6['model'],qs['fields'](_0x5e59d1[_0x1b5839('0x7e')]['fields'])),_0x3f7779[_0x1b5839('0x11b')]=_0x3f7779['attributes']['length']?_0x3f7779[_0x1b5839('0x11b')]:_0x2b6fe6[_0x1b5839('0x93')];typeof _0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0x2')]===_0x1b5839('0x40')&&(_0x3f7779['limit']=qs[_0x1b5839('0xc9')](_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0xc9')]),_0x3f7779[_0x1b5839('0x4b')]=qs[_0x1b5839('0x4b')](_0x5e59d1['query'][_0x1b5839('0x4b')]));_0x3f7779['order']=qs[_0x1b5839('0x44')](_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0x44')]),_0x3f7779[_0x1b5839('0x3f')]=qs[_0x1b5839('0xff')](_[_0x1b5839('0xef')](_0x5e59d1[_0x1b5839('0x7e')],_0x2b6fe6[_0x1b5839('0xff')]),_0xbe8e2b);let _0x4a709d=[];const _0x1fe080=squel[_0x1b5839('0x23')]()[_0x1b5839('0x122')]('id')['field'](_0x1b5839('0xfe'))[_0x1b5839('0x122')](_0x1b5839('0x55'))[_0x1b5839('0xd4')](_0x1b5839('0x5c')),_0x1ceea7=squel['select']()['field']('u.id')['field'](_0x1b5839('0x63'))['field'](_0x1b5839('0x121'))[_0x1b5839('0xd4')](_0x1b5839('0xe0'),'ui')[_0x1b5839('0x78')](_0x1b5839('0x89'),'u',_0x1b5839('0x102')),_0x2db509=squel[_0x1b5839('0x23')]()[_0x1b5839('0xd4')](_0x1b5839('0x65'),'i')[_0x1b5839('0x78')](_0x1b5839('0x77'),'c',_0x1b5839('0xb8'))[_0x1b5839('0x78')](_0x1b5839('0x89'),'o',_0x1b5839('0xc'))[_0x1b5839('0x78')](_0x1b5839('0x11a'),'a',_0x1b5839('0x12'))['left_join']('chat_messages','me',_0x1b5839('0xa0'))[_0x1b5839('0x78')](_0x1b5839('0x3c'),'it',_0x1b5839('0x57'))[_0x1b5839('0x78')]('tools_tags','t',_0x1b5839('0x60')),_0x3ce85f=squel[_0x1b5839('0x15')]();let _0x28f069=[];const _0x5d46b4=squel[_0x1b5839('0x15')]();let _0xef2606;if(_0x5e59d1[_0x1b5839('0x7e')]['search']){_0xef2606=as['parseSearch'](_0x5e59d1[_0x1b5839('0x7e')]['search']);const _0x1008cf=_0xef2606[_0x1b5839('0xed')];for(let _0x215c7f=0x0;_0x215c7f<_0xef2606['conditions']['length'];_0x215c7f++){const _0xe3a982=_0xef2606[_0x1b5839('0xec')][_0x215c7f],_0x7c8e2d='i';let _0xcf074,_0x4c51fe=_[_0x1b5839('0x87')](_0xbe8e2b,['name',_0xe3a982[_0x1b5839('0x122')]]);if(!_0x4c51fe)switch(_0xe3a982['field']){case _0x1b5839('0xaa'):_0xe3a982[_0x1b5839('0x8c')]==0x1?_0x2db509[_0x1b5839('0xb9')]('`'+_0xe3a982[_0x1b5839('0x122')]+_0x1b5839('0x111')):_0x2db509[_0x1b5839('0xb9')]('`'+_0xe3a982['field']+_0x1b5839('0xfd'));break;case'Contact':if(_0xe3a982[_0x1b5839('0x115')]===_0x1b5839('0xe3')){if(_0xe3a982[_0x1b5839('0x8c')]['split']('\x20')[_0x1b5839('0xd5')]>0x1)_0x3ce85f[_0x1008cf]('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs['getFullTextValue'](_0xe3a982[_0x1b5839('0x8c')]),null);else{const _0xd612cc='%'+_0xe3a982[_0x1b5839('0x8c')]+'%';_0x3ce85f[_0x1008cf](_0x1b5839('0x103'),_0xd612cc,_0xd612cc,_0xd612cc);}}else _0x4c51fe=_[_0x1b5839('0x87')](_0xbe8e2b,[_0x1b5839('0xfe'),_0x1b5839('0x45')]),_0xe3a982[_0x1b5839('0x122')]=_0x1b5839('0x45'),_0xcf074=as[_0x1b5839('0x4d')](_0x7c8e2d,_0x4c51fe['type'],_0xe3a982),_0x3ce85f[_0x1008cf](_0xcf074[_0x1b5839('0x5a')],_0xcf074[_0x1b5839('0x8c')][_0x1b5839('0x118')],_0xcf074[_0x1b5839('0x8c')]['end']);break;case _0x1b5839('0xa7'):{const _0x4666d3=_0xe3a982[_0x1b5839('0x8c')][_0x1b5839('0xf')](',')[_0x1b5839('0xb1')](function(_0x235568){return Number(_0x235568);});_0x4666d3['forEach'](function(_0x2e156d){const _0x30751b=_0x1b5839;_0x5d46b4['or'](_0x30751b('0x82'),'%,'+_0x2e156d+',%');}),_0x28f069=_[_0x1b5839('0xc6')](_0x28f069,_0x4666d3);}break;case _0x1b5839('0x8d'):_0xe3a982[_0x1b5839('0x115')]===_0x1b5839('0xe3')?_0x3ce85f[_0x1008cf](_0x1b5839('0xb7'),'%'+_0xe3a982[_0x1b5839('0x8c')]+'%',null):(_0x4c51fe=_[_0x1b5839('0x87')](_0xbe8e2b,[_0x1b5839('0xfe'),'UserId']),_0xe3a982[_0x1b5839('0x122')]=_0x1b5839('0x80'),_0xcf074=as[_0x1b5839('0x4d')](_0x7c8e2d,_0x4c51fe[_0x1b5839('0xd6')],_0xe3a982),_0x3ce85f[_0x1008cf](_0xcf074[_0x1b5839('0x5a')],_0xcf074['value'][_0x1b5839('0x118')],_0xcf074[_0x1b5839('0x8c')]['end']));break;case _0x1b5839('0xe5'):_0xcf074=as[_0x1b5839('0x4d')]('me',null,_0xe3a982),_0x3ce85f[_0x1008cf](_0xcf074[_0x1b5839('0x5a')],_0xcf074[_0x1b5839('0x8c')][_0x1b5839('0x118')],_0xcf074[_0x1b5839('0x8c')][_0x1b5839('0x106')]);break;}else _0xcf074=as[_0x1b5839('0x4d')](_0x7c8e2d,_0x4c51fe[_0x1b5839('0xd6')],_0xe3a982),_0x3ce85f[_0x1008cf](_0xcf074[_0x1b5839('0x5a')],_0xcf074[_0x1b5839('0x8c')][_0x1b5839('0x118')],_0xcf074['value']['end']);}}else{const _0x2c019d=_(_0x5e59d1[_0x1b5839('0x7e')])[_0x1b5839('0x37')]()[_0x1b5839('0xb1')](function(_0x32f426){const _0x5a3036=_0x1b5839;return _[_0x5a3036('0x43')](_0xbe8e2b,[_0x5a3036('0xfe'),_0x32f426])?_0x32f426:undefined;})[_0x1b5839('0x9a')]()['value']();!_[_0x1b5839('0x17')](_0x2c019d)&&_0x2c019d[_0x1b5839('0x94')](function(_0x47cd12){const _0x20c6d1=_0x1b5839;if(_0x47cd12==='ChatWebsiteId')_0x2db509['where'](_0x20c6d1('0xdc'),[][_0x20c6d1('0xf4')](_0x5e59d1[_0x20c6d1('0x7e')][_0x47cd12]));else{if(_0x47cd12==='createdAt'){const _0x19758b=JSON[_0x20c6d1('0x68')](_0x5e59d1['query'][_0x47cd12])[_0x20c6d1('0xe4')],_0x5c726d=JSON[_0x20c6d1('0x68')](_0x5e59d1[_0x20c6d1('0x7e')][_0x47cd12])[_0x20c6d1('0x50')];_0x2db509[_0x20c6d1('0x3f')](_0x20c6d1('0x73'),_0x19758b,_0x5c726d);}else _0x5e59d1['query'][_0x47cd12]===_0x20c6d1('0x4a')?_0x2db509['where']('i.'+_0x47cd12+'\x20IS\x20NULL'):_0x2db509['where']('i.'+_0x47cd12+_0x20c6d1('0xc5'),_0x5e59d1['query'][_0x47cd12]);}});_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0xf7')]&&(_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0xf7')]==0x1?_0x2db509[_0x1b5839('0xb9')](_0x1b5839('0x19')):_0x2db509[_0x1b5839('0xb9')]('`unreadMessages`\x20>\x200'));_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0x31')]&&(_0x28f069=_[_0x1b5839('0x14')](_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0x31')])?_0x5e59d1['query'][_0x1b5839('0x31')]:new Array(_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0x31')]),_0x28f069[_0x1b5839('0x94')](function(_0x15cae5){_0x5d46b4['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x15cae5+',%');}));if(_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0x7d')]){const _0x2b45f5=_0x5e59d1[_0x1b5839('0x7e')][_0x1b5839('0x7d')][_0x1b5839('0xd0')]('\x5c','\x5c\x5c')[_0x1b5839('0xd0')]('\x27\x27','\x27\x27\x27\x27');qs[_0x1b5839('0x13')](_0x2b45f5)?_0x3ce85f['or'](_0x1b5839('0xbf'),_0x2b45f5+'%'):_0x3ce85f['or'](_0x1b5839('0x47'),qs[_0x1b5839('0x11f')](_0x2b45f5))['or'](_0x1b5839('0xb0'),_0x2b45f5+'%');}}_0x2db509[_0x1b5839('0x3f')](_0x3ce85f),_0x2db509['group'](_0x1b5839('0x113'));let _0x11da6b={'type':db[_0x1b5839('0xdd')][_0x1b5839('0x64')]['SELECT'],'raw':!![]};const _0x37929b=_0x2db509[_0x1b5839('0x6d')]();_0x37929b[_0x1b5839('0x122')](_0x1b5839('0x113')),_0x37929b[_0x1b5839('0x122')](_0x1b5839('0x91'),_0x1b5839('0xaa')),_0x3f7779[_0x1b5839('0x48')]&&_0x3f7779[_0x1b5839('0x48')][_0x1b5839('0x94')](function(_0x2c45ef){const _0x43b9f6=_0x1b5839;_0x2db509['order']('i.'+_0x2c45ef[0x0],_0x2c45ef[0x1]===_0x43b9f6('0x85')?![]:!![]);}),!_[_0x1b5839('0x17')](_0x28f069)&&(_0x2db509[_0x1b5839('0xb9')](_0x5d46b4),_0x37929b[_0x1b5839('0x3f')](_0x1b5839('0x76'),_0x28f069)),Promise[_0x1b5839('0x3b')]()[_0x1b5839('0x32')](function(){const _0x3463b0=_0x1b5839;if(!_0xef2606){if(_0x5e59d1['query'][_0x3463b0('0x59')]||_0x5e59d1[_0x3463b0('0x7e')][_0x3463b0('0xe8')])return;_0x37929b[_0x3463b0('0x3f')](_0x3463b0('0x26')),_0x2db509[_0x3463b0('0x3f')](_0x3463b0('0x26'));return;}return _0x5e59d1[_0x3463b0('0x112')][_0x3463b0('0xf3')]({'attributes':['id'],'raw':!![]})[_0x3463b0('0x32')](function(_0x32642c){const _0x2fa992=_0x3463b0;_[_0x2fa992('0x17')](_0x32642c)?(_0x37929b[_0x2fa992('0x3f')](_0x2fa992('0x46')),_0x2db509['where'](_0x2fa992('0x46'))):(_0x37929b['where']('i.ChatWebsiteId\x20IN\x20?',_['map'](_0x32642c,'id')),_0x2db509[_0x2fa992('0x3f')]('i.ChatWebsiteId\x20IN\x20?',_['map'](_0x32642c,'id')));});})[_0x1b5839('0x32')](function(){const _0x36302c=_0x1b5839;db[_0x36302c('0x119')][_0x36302c('0x7e')](_0x37929b[_0x36302c('0xe2')](),_0x11da6b)['then'](function(_0x5e5956){const _0x13ca40=_0x36302c;_0x144546[_0x13ca40('0x11')]=_0x5e5956[_0x13ca40('0xd5')];if(_0x144546[_0x13ca40('0x11')]===0x0)return[];return db['sequelize'][_0x13ca40('0x7e')](_0x1fe080['toString'](),_0x11da6b)[_0x13ca40('0x32')](function(_0x5049b7){const _0x55ab4f=_0x13ca40;_0x4a709d=_[_0x55ab4f('0xd8')](_0x5049b7,'id'),_0x11da6b=_[_0x55ab4f('0x86')](_0x11da6b,{'model':db['ChatInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5e59d1[_0x55ab4f('0x7e')]['fields']?_0x3f7779['attributes'][_0x55ab4f('0x94')](function(_0x344b39){const _0x58eab8=_0x55ab4f;_0x2db509[_0x58eab8('0x122')]('i.'+_0x344b39);}):(_0x2db509[_0x55ab4f('0x122')](_0x55ab4f('0x91'),_0x55ab4f('0xaa')),_0x2db509[_0x55ab4f('0x122')](_0x55ab4f('0x4e'),'Account.key'),_0x2db509['field'](_0x55ab4f('0xf0'),_0x55ab4f('0x66')),_0x2db509[_0x55ab4f('0x122')](_0x55ab4f('0x4')),_0x2db509[_0x55ab4f('0x122')](_0x55ab4f('0x114'),'Contact.firstName'),_0x2db509[_0x55ab4f('0x122')]('c.lastName','Contact.lastName'),_0x2db509[_0x55ab4f('0x122')]('c.email',_0x55ab4f('0x5')),_0x2db509['field'](_0x55ab4f('0x81'),_0x55ab4f('0x104')),_0x2db509[_0x55ab4f('0x122')](_0x55ab4f('0xc3'),_0x55ab4f('0x9f')),_0x2db509[_0x55ab4f('0x122')]('c.fax',_0x55ab4f('0xf6')),_0x2db509[_0x55ab4f('0x122')](_0x55ab4f('0xb2'),_0x55ab4f('0x6e')),_0x2db509[_0x55ab4f('0x122')](_0x55ab4f('0x49'),_0x55ab4f('0xd')),_0x2db509[_0x55ab4f('0x122')](_0x55ab4f('0x7'),_0x55ab4f('0x108')));if(_0x3f7779[_0x55ab4f('0xc9')])_0x2db509['limit'](_0x3f7779[_0x55ab4f('0xc9')]);if(_0x3f7779[_0x55ab4f('0x4b')])_0x2db509[_0x55ab4f('0x4b')](_0x3f7779[_0x55ab4f('0x4b')]);return db[_0x55ab4f('0x119')][_0x55ab4f('0x7e')](_0x2db509[_0x55ab4f('0xe2')](),_0x11da6b);})[_0x13ca40('0x32')](function(_0xca54a5){const _0x58e93f=_0x13ca40;return _0x1ceea7[_0x58e93f('0x3f')](_0x58e93f('0x7c'),_[_0x58e93f('0xb1')](_0xca54a5,'id')),db[_0x58e93f('0x119')]['query'](_0x1ceea7[_0x58e93f('0xe2')](),_0x11da6b)[_0x58e93f('0x32')](function(_0x55f80a){const _0x199467=_0x58e93f,_0x1d4660=_['groupBy'](_0x55f80a,_0x199467('0x38')),_0x2aab93=[];return _0xca54a5[_0x199467('0x94')](function(_0x2e9440){const _0x1c75bc=_0x199467;_0x2aab93[_0x1c75bc('0x36')](updateChatInteraction(_0x2e9440,_0x4a709d,_0x1d4660));}),Promise[_0x199467('0x1a')](_0x2aab93);});});})['then'](function(_0x1821af){return _0x144546['rows']=_0x1821af,_0x144546;})['then'](respondWithFilteredResult(_0x21505d,_0x3f7779));})[_0x1b5839('0x1d')](handleError(_0x21505d,null));},exports['show']=function(_0x3a90be,_0x154594){const _0x4114ed=_0x26f3e2;let _0x37efc2={'raw':![],'where':{'id':_0x3a90be[_0x4114ed('0x25')]['id']}};const _0x58608e={};return _0x58608e[_0x4114ed('0x93')]=_[_0x4114ed('0x37')](db[_0x4114ed('0x6f')][_0x4114ed('0x33')]),_0x58608e[_0x4114ed('0x7e')]=_[_0x4114ed('0x37')](_0x3a90be['query']),_0x58608e[_0x4114ed('0xff')]=_[_0x4114ed('0xd1')](_0x58608e['model'],_0x58608e[_0x4114ed('0x7e')]),_0x37efc2[_0x4114ed('0x11b')]=_[_0x4114ed('0xd1')](_0x58608e['model'],qs[_0x4114ed('0x11e')](_0x3a90be[_0x4114ed('0x7e')][_0x4114ed('0x11e')])),_0x37efc2[_0x4114ed('0x11b')]=_0x37efc2[_0x4114ed('0x11b')][_0x4114ed('0xd5')]?_0x37efc2[_0x4114ed('0x11b')]:_0x58608e[_0x4114ed('0x93')],_0x3a90be['query']['includeAll']&&(_0x37efc2['include']=[{'all':!![]}]),_0x37efc2=_['merge']({},_0x37efc2,_0x3a90be['options']),db[_0x4114ed('0x6f')][_0x4114ed('0x83')](_0x37efc2)[_0x4114ed('0x32')](handleEntityNotFound(_0x154594,null))[_0x4114ed('0x32')](respondWithResult(_0x154594,null))[_0x4114ed('0x1d')](handleError(_0x154594,null));},exports[_0x26f3e2('0xa1')]=function(_0x52a8f6,_0x3f7342){const _0x5a069d=_0x26f3e2;return db['ChatInteraction'][_0x5a069d('0xa1')](_0x52a8f6[_0x5a069d('0xe5')],{})[_0x5a069d('0x32')](respondWithResult(_0x3f7342,0xc9))[_0x5a069d('0x1d')](handleError(_0x3f7342,null));},exports['update']=function(_0x5c602e,_0x254b09){const _0x3a3143=_0x26f3e2;return _0x5c602e['body']['id']&&delete _0x5c602e['body']['id'],db['ChatInteraction']['findOne']({'where':{'id':_0x5c602e[_0x3a3143('0x25')]['id']}})[_0x3a3143('0x32')](handleEntityNotFound(_0x254b09,null))['then'](saveUpdates(_0x5c602e[_0x3a3143('0xe5')],null))[_0x3a3143('0x32')](respondWithResult(_0x254b09,null))['catch'](handleError(_0x254b09,null));},exports[_0x26f3e2('0x6a')]=function(_0x18e610,_0x23d609){const _0x50b02b=_0x26f3e2;return db[_0x50b02b('0x6f')][_0x50b02b('0x83')]({'where':{'id':_0x18e610[_0x50b02b('0x25')]['id']}})[_0x50b02b('0x32')](handleEntityNotFound(_0x23d609,null))['then'](removeEntity(_0x23d609,null))[_0x50b02b('0x1d')](handleError(_0x23d609,null));},exports[_0x26f3e2('0x56')]=function(_0x536628,_0x7c6682){const _0x48c686=_0x26f3e2;return db[_0x48c686('0x6f')]['describe']()['then'](respondWithResult(_0x7c6682,null))[_0x48c686('0x1d')](handleError(_0x7c6682,null));},exports['createVidaooSession']=function(_0x4e1f81,_0xca9d9){const _0x4efd51=_0x26f3e2,_0x41156f=_0x4e1f81['params']['id'];let _0xe94b44,_0x24c597,_0x4e0f73;return db[_0x4efd51('0x6f')][_0x4efd51('0x83')]({'where':{'id':_0x41156f}})['then'](function(_0x2aacf5){const _0x4bb1a0=_0x4efd51;return _0xe94b44=_0x2aacf5,db[_0x4bb1a0('0x22')][_0x4bb1a0('0x83')]({'where':{'id':_0x2aacf5[_0x4bb1a0('0x59')]},'attributes':['id',_0x4bb1a0('0x52'),_0x4bb1a0('0x0')],'raw':!![]});})['then'](function(_0x382227){const _0x45c4dc=_0x4efd51;if(_0x382227&&_0x382227['vidaooApiKey']&&_0x382227[_0x45c4dc('0x0')]){_0x24c597=_0x382227;const _0x594e70={'rejectUnauthorized':![],'method':_0x45c4dc('0x10c'),'uri':_0x45c4dc('0x5e'),'headers':{'X-APIKEY':_0x382227[_0x45c4dc('0x52')]},'body':{'name':_0x45c4dc('0x8b')+_0x41156f},'redirect':'follow','json':!![]};return rp(_0x594e70);}else throw new db[(_0x45c4dc('0xdd'))]['ValidationError']('Error\x20in\x20Vidaoo\x20configuration');})['then'](function(_0x37ada9){const _0x59a93a=_0x4efd51;_0x4e0f73=_0x37ada9;if(_0x4e0f73['id']){const _0x45894d={'body':_0x4e0f73[_0x59a93a('0x34')],'ChatWebsiteId':_0x24c597['id'],'ChatInteractionId':_0xe94b44['id'],'direction':_0x59a93a('0x29'),'UserId':_0x4e1f81[_0x59a93a('0x112')]['id']};return db[_0x59a93a('0xa5')][_0x59a93a('0xa1')](_0x45894d,{});}else throw new db[(_0x59a93a('0xdd'))][(_0x59a93a('0x1f'))](_0x59a93a('0xf8'));})[_0x4efd51('0x32')](function(){return _0xe94b44['update']({'vidaooSessionId':_0x4e0f73['id']});})[_0x4efd51('0x32')](respondWithResult(_0xca9d9,null))[_0x4efd51('0x1d')](handleError(_0xca9d9,null));},exports[_0x26f3e2('0xe1')]=function(_0x1325fd,_0x2dc3e2){const _0x2befd2=_0x26f3e2;return _0x1325fd['body']['id']&&delete _0x1325fd[_0x2befd2('0xe5')]['id'],db[_0x2befd2('0x6f')][_0x2befd2('0x83')]({'where':{'id':_0x1325fd[_0x2befd2('0x25')]['id']}})[_0x2befd2('0x32')](handleEntityNotFound(_0x2dc3e2,null))[_0x2befd2('0x32')](saveUpdates(_0x1325fd['body'],null))['then'](respondWithResult(_0x2dc3e2,null))[_0x2befd2('0x1d')](handleError(_0x2dc3e2,null));},exports[_0x26f3e2('0xdf')]=function(_0x43da01,_0x44cf95){const _0x4457ef=_0x26f3e2;return _0x43da01[_0x4457ef('0xe5')]['id']&&delete _0x43da01['body']['id'],db[_0x4457ef('0x6f')][_0x4457ef('0x83')]({'where':{'id':_0x43da01['params']['id']}})[_0x4457ef('0x32')](function(_0x216075){const _0x6be8d0=_0x4457ef;if(!_0x216075)logger[_0x6be8d0('0x79')](_0x6be8d0('0xdb'),_0x6be8d0('0xdf'),0x194,_0x6be8d0('0x3e')),_0x44cf95[_0x6be8d0('0xb4')](0x194);else{if(_0x216075['UserId'])throw new db[(_0x6be8d0('0xdd'))]['ValidationError'](_0x6be8d0('0x10a'));}return _0x216075;})[_0x4457ef('0x32')](function(_0x680a8c){const _0x15e0f9=_0x4457ef;if(_0x680a8c)return _0x680a8c[_0x15e0f9('0xc2')]({'closed':_0x43da01[_0x15e0f9('0xe5')][_0x15e0f9('0x24')],'disposition':_0x43da01[_0x15e0f9('0xe5')][_0x15e0f9('0x18')]})[_0x15e0f9('0x32')](function(_0x1f274b){return _0x1f274b;});})[_0x4457ef('0x32')](function(){const _0x18a147=_0x4457ef;return respondWithRpcPromise('AbandonInteraction',_0x18a147('0xdf'),_0x43da01[_0x18a147('0xe5')],client9004);})[_0x4457ef('0x32')](respondWithResult(_0x44cf95,null))['catch'](handleError(_0x44cf95,null));},exports['attachmentUpload']=function(_0x29e42d,_0x154279){const _0x5ea28f=_0x26f3e2;return _0x29e42d['body']['name']=_0x29e42d[_0x5ea28f('0x1e')]['originalname'],_0x29e42d[_0x5ea28f('0xe5')][_0x5ea28f('0x10f')]=_0x29e42d[_0x5ea28f('0x1e')]['filename'],_0x29e42d[_0x5ea28f('0xe5')][_0x5ea28f('0xd6')]=_0x29e42d['file'][_0x5ea28f('0x62')],db[_0x5ea28f('0x7b')]['create'](_0x29e42d[_0x5ea28f('0xe5')])[_0x5ea28f('0x32')](respondWithResult(_0x154279,0xc9))[_0x5ea28f('0x1d')](handleError(_0x154279,null));},exports[_0x26f3e2('0x28')]=function(_0x3091fe,_0x4377ea){const _0x177176=_0x26f3e2;return db[_0x177176('0x6f')][_0x177176('0x83')]({'where':{'id':_0x3091fe[_0x177176('0x25')]['id']},'raw':!![]})['then'](handleEntityNotFound(_0x4377ea,null))['then'](function(_0x5bfedb){const _0x248fcc=_0x177176;if(_0x5bfedb){if(_0x5bfedb[_0x248fcc('0x24')])return _0x4377ea[_0x248fcc('0xde')](0x193)['json']({'status':0x193,'message':_0x248fcc('0x107')});return db[_0x248fcc('0x7b')][_0x248fcc('0x83')]({'where':{'id':_0x3091fe[_0x248fcc('0x7e')][_0x248fcc('0x21')]},'raw':!![]})[_0x248fcc('0x32')](handleEntityNotFound(_0x4377ea,null));}})[_0x177176('0x32')](function(_0x3d7e33){const _0x58a09b=_0x177176;if(_0x3d7e33)return _0x4377ea[_0x58a09b('0xca')](path['join'](config[_0x58a09b('0x54')],_0x58a09b('0xc1'),_0x3d7e33[_0x58a09b('0x10f')]));})['catch'](handleError(_0x4377ea,null));},exports['close']=function(_0x3f2f37,_0x1ee979){const _0x39f14b=_0x26f3e2;let _0x2d0c1a=null,_0x36d005=null,_0x179be8=null;return _0x3f2f37[_0x39f14b('0xe5')]['id']&&delete _0x3f2f37[_0x39f14b('0xe5')]['id'],_0x3f2f37[_0x39f14b('0xe5')][_0x39f14b('0x7f')]&&(_0x179be8=path[_0x39f14b('0xbd')](config[_0x39f14b('0x54')],_0x39f14b('0xee'),util['format'](_0x39f14b('0xa'),Date['now']())),_0x3f2f37[_0x39f14b('0xe5')]['pathTranscript']=_0x179be8),db['ChatInteraction'][_0x39f14b('0x83')]({'where':{'id':_0x3f2f37[_0x39f14b('0x25')]['id']},'include':[{'model':db[_0x39f14b('0xa5')],'as':_0x39f14b('0x5d'),'include':[{'model':db[_0x39f14b('0x8d')],'as':_0x39f14b('0x8d')}]}]})[_0x39f14b('0x32')](handleEntityNotFound(_0x1ee979,null))['then'](saveUpdates(_0x3f2f37[_0x39f14b('0xe5')],null))[_0x39f14b('0x32')](function(_0x34bd22){const _0x19c53d=_0x39f14b;if(_0x34bd22)return _0x2d0c1a=_0x34bd22,db[_0x19c53d('0x22')]['findOne']({'where':{'id':_0x2d0c1a['ChatWebsiteId']}});})[_0x39f14b('0x32')](function(_0x418a86){const _0x232b1d=_0x39f14b;if(_0x418a86)return _0x36d005=_0x418a86,db['CmContact'][_0x232b1d('0x83')]({'where':{'id':_0x2d0c1a[_0x232b1d('0x45')]}});})[_0x39f14b('0x32')](function(_0x46a10){const _0x59e694=_0x39f14b;if(_0x46a10){if(_0x179be8){let _0x200379=null;for(let _0x20707b=0x1;_0x20707b<_0x2d0c1a[_0x59e694('0x5d')][_0x59e694('0xd5')];++_0x20707b){_0x200379=_0x2d0c1a[_0x59e694('0x5d')][_0x20707b];let _0x1d467f=_0x200379[_0x59e694('0x80')]?util[_0x59e694('0xd9')](_0x59e694('0x2b'),_0x36d005[_0x59e694('0x117')],_0x200379[_0x59e694('0x80')]):_0x59e694('0x97');const _0x346859=_0x3f2f37[_0x59e694('0xe5')][_0x59e694('0x1')]||util[_0x59e694('0xd9')](_0x59e694('0x2b'),_0x59e694('0xbe'),_0x200379[_0x59e694('0x45')]);switch(_0x36d005[_0x59e694('0x10')]){case _0x59e694('0x2f'):_0x1d467f=_0x200379[_0x59e694('0x80')]?util[_0x59e694('0xd9')](_0x59e694('0x2b'),_0x36d005['agentAlias'],_0x200379[_0x59e694('0x80')]):_0x59e694('0x97');break;case'agent_alias':_0x1d467f=_0x200379[_0x59e694('0x80')]?_0x200379['User'][_0x59e694('0xb6')]||_0x200379[_0x59e694('0x8d')][_0x59e694('0x6c')]:_0x59e694('0x97');break;case _0x59e694('0x2d'):_0x1d467f=_0x200379[_0x59e694('0x80')]?_0x200379[_0x59e694('0x8d')][_0x59e694('0x6c')]:'System';break;default:_0x1d467f=_0x200379[_0x59e694('0x80')]?util[_0x59e694('0xd9')]('%s%d',_0x36d005[_0x59e694('0x117')],_0x200379[_0x59e694('0x80')]):_0x59e694('0x97');}const _0x3858a3=util[_0x59e694('0xd9')](_0x59e694('0x120'),moment(_0x200379['createdAt'])[_0x59e694('0xd9')](_0x59e694('0xce')),_0x200379[_0x59e694('0xd2')]==='in'?_0x346859:_0x1d467f,_0x200379['body']);!_0x200379[_0x59e694('0x109')]&&fs[_0x59e694('0x75')](_0x179be8,_0x3858a3);}return db[_0x59e694('0xba')][_0x59e694('0x83')]({'where':{'service':!![]},'include':[{'model':db[_0x59e694('0xaf')],'as':_0x59e694('0xda'),'raw':!![]}]});}}})['then'](function(_0x237124){const _0x4b8461=_0x39f14b;if(_0x237124&&_0x237124['Smtp']&&_0x3f2f37[_0x4b8461('0xe5')]){const _0x12d1d7={'tls':{'rejectUnauthorized':![]}};return _0x237124[_0x4b8461('0xda')][_0x4b8461('0x72')]?_0x12d1d7[_0x4b8461('0x72')]=_0x237124[_0x4b8461('0xda')][_0x4b8461('0x72')]:(_0x12d1d7[_0x4b8461('0xa4')]=_0x237124[_0x4b8461('0xda')][_0x4b8461('0xa4')],_0x12d1d7[_0x4b8461('0xcd')]=_0x237124[_0x4b8461('0xda')]['port'],_0x12d1d7[_0x4b8461('0x96')]=_0x237124[_0x4b8461('0xda')]['secure']),_0x237124['Smtp']['authentication']&&(_0x12d1d7[_0x4b8461('0xa9')]={'user':_0x237124[_0x4b8461('0xda')][_0x4b8461('0x112')],'pass':_0x237124[_0x4b8461('0xda')][_0x4b8461('0xa3')]}),respondWithRpcPromise(_0x4b8461('0x101'),'sendMail',{'account':_0x12d1d7,'message':{'from':util['format'](_0x4b8461('0x42'),_0x237124[_0x4b8461('0xfe')],_0x237124[_0x4b8461('0xb3')]||_0x237124[_0x4b8461('0xda')][_0x4b8461('0x112')]),'to':_0x3f2f37[_0x4b8461('0xe5')][_0x4b8461('0x7f')],'subject':'Mail\x20Transcript','text':util[_0x4b8461('0xd9')](_0x4b8461('0xcc'),_0x3f2f37[_0x4b8461('0xe5')][_0x4b8461('0x7f')]),'attachments':[{'path':_0x179be8}]}})['then'](function(){return _0x2d0c1a;})[_0x4b8461('0x1d')](function(_0x334596){const _0x512c43=_0x4b8461;console[_0x512c43('0x79')](_0x334596);});}else return _0x2d0c1a;})[_0x39f14b('0x32')](respondWithStatusCode(_0x1ee979,0xc8))[_0x39f14b('0x1d')](handleError(_0x1ee979,null));},exports[_0x26f3e2('0x3d')]=function(_0x4d8d39,_0x4988ee){const _0x20ffd3=_0x26f3e2;return db['ChatMessage']['findOne']({'where':{'id':_0x4d8d39[_0x20ffd3('0x25')]['id']}})[_0x20ffd3('0x32')](function(_0x3ea5ae){const _0x3d4f09=_0x20ffd3;if(_0x3ea5ae)return _0x3ea5ae[_0x3d4f09('0x3d')](_0x4d8d39['body'][_0x3d4f09('0xc7')],{'through':_[_0x3d4f09('0x98')](_0x4d8d39[_0x3d4f09('0xe5')],[_0x3d4f09('0xc7'),'id'])});})[_0x20ffd3('0x32')](respondWithResult(_0x4988ee,null))[_0x20ffd3('0x1d')](handleError(_0x4988ee,null));},exports[_0x26f3e2('0xfa')]=function(_0x4c27d0,_0x2a4440){const _0x4ec650=_0x26f3e2;let _0x5c445f={'raw':![],'where':{}};const _0x252dbf={},_0xb77304={'count':0x0,'rows':[]};return db['ChatInteraction'][_0x4ec650('0x83')]({'where':{'id':_0x4c27d0[_0x4ec650('0x25')]['id']}})['then'](handleEntityNotFound(_0x2a4440,null))[_0x4ec650('0x32')](function(_0x18a7e8){const _0xdfa151=_0x4ec650;if(_0x18a7e8){_0x252dbf[_0xdfa151('0x93')]=_[_0xdfa151('0x37')](db[_0xdfa151('0xa5')][_0xdfa151('0x33')]),_0x252dbf[_0xdfa151('0x7e')]=_[_0xdfa151('0x37')](_0x4c27d0['query']),_0x252dbf[_0xdfa151('0xff')]=_[_0xdfa151('0xd1')](_0x252dbf[_0xdfa151('0x93')],_0x252dbf[_0xdfa151('0x7e')]),_0x5c445f[_0xdfa151('0x11b')]=_[_0xdfa151('0xd1')](_0x252dbf[_0xdfa151('0x93')],qs[_0xdfa151('0x11e')](_0x4c27d0['query'][_0xdfa151('0x11e')])),_0x5c445f[_0xdfa151('0x11b')]=_0x5c445f[_0xdfa151('0x11b')]['length']?_0x5c445f[_0xdfa151('0x11b')]:_0x252dbf[_0xdfa151('0x93')];typeof _0x4c27d0[_0xdfa151('0x7e')][_0xdfa151('0x2')]===_0xdfa151('0x40')&&(_0x5c445f[_0xdfa151('0xc9')]=qs[_0xdfa151('0xc9')](_0x4c27d0[_0xdfa151('0x7e')][_0xdfa151('0xc9')]),_0x5c445f[_0xdfa151('0x4b')]=qs['offset'](_0x4c27d0[_0xdfa151('0x7e')][_0xdfa151('0x4b')]));_0x5c445f[_0xdfa151('0x48')]=qs[_0xdfa151('0x44')](_0x4c27d0[_0xdfa151('0x7e')][_0xdfa151('0x44')]),_0x5c445f[_0xdfa151('0x3f')]=qs['filters'](_[_0xdfa151('0xef')](_0x4c27d0[_0xdfa151('0x7e')],_0x252dbf[_0xdfa151('0xff')])),_0x5c445f['where'][_0xdfa151('0x38')]=_0x18a7e8['id'];_0x4c27d0[_0xdfa151('0x7e')][_0xdfa151('0x7d')]&&(_0x5c445f[_0xdfa151('0x3f')]=_['merge'](_0x5c445f['where'],{[Op['or']]:_[_0xdfa151('0xb1')](_0x5c445f[_0xdfa151('0x11b')],function(_0x502c2f){const _0x1cb104=_0xdfa151,_0x1e414d={};return _0x1e414d[_0x502c2f]={[Op[_0x1cb104('0x9e')]]:'%'+_0x4c27d0[_0x1cb104('0x7e')][_0x1cb104('0x7d')]+'%'},_0x1e414d;})}));if(_0x4c27d0[_0xdfa151('0x7e')][_0xdfa151('0xe4')]){const _0x210471=_0x4c27d0[_0xdfa151('0x7e')][_0xdfa151('0xe4')][_0xdfa151('0xf')](','),_0x23afac={};_0x23afac[_0x210471[0x0]]={[Op['gte']]:moment(_0x210471[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0x5c445f[_0xdfa151('0x3f')]=_[_0xdfa151('0x86')](_0x5c445f[_0xdfa151('0x3f')],_0x23afac);}return _0x5c445f=_['merge']({},_0x5c445f,_0x4c27d0[_0xdfa151('0x11c')]),db[_0xdfa151('0xa5')]['count']({'where':_0x5c445f[_0xdfa151('0x3f')]})[_0xdfa151('0x32')](function(_0x2c021a){const _0x21de1c=_0xdfa151;return _0xb77304[_0x21de1c('0x11')]=_0x2c021a,_0x4c27d0['query']['includeAll']&&(_0x5c445f[_0x21de1c('0xf9')]=[{'all':!![]}]),db[_0x21de1c('0xa5')][_0x21de1c('0xea')](_0x5c445f);})[_0xdfa151('0x32')](function(_0x4c3029){const _0x139692=_0xdfa151;return _0xb77304[_0x139692('0xe6')]=_0x4c3029,_0xb77304;});}})[_0x4ec650('0x32')](respondWithFilteredResult(_0x2a4440,_0x5c445f))[_0x4ec650('0x1d')](handleError(_0x2a4440,null));},exports[_0x26f3e2('0x95')]=function(_0x723d73,_0x5e08eb){const _0x2f6df9=_0x26f3e2;let _0x618db8={'where':{}};const _0x2773a9={},_0x3ad26d={'count':0x0,'rows':[]};return db[_0x2f6df9('0x6f')][_0x2f6df9('0x83')]({'where':{'id':_0x723d73['params']['id']}})[_0x2f6df9('0x32')](handleEntityNotFound(_0x5e08eb,null))[_0x2f6df9('0x32')](function(_0x133bc3){const _0x1424e6=_0x2f6df9;if(_0x133bc3)return _0x2773a9[_0x1424e6('0x93')]=_['keys'](db[_0x1424e6('0xa5')]['rawAttributes']),_0x2773a9[_0x1424e6('0x7e')]=_[_0x1424e6('0x37')](_0x723d73[_0x1424e6('0x7e')]),_0x2773a9[_0x1424e6('0xff')]=_[_0x1424e6('0xd1')](_0x2773a9[_0x1424e6('0x93')],_0x2773a9['query']),_0x618db8['attributes']=_['intersection'](_0x2773a9[_0x1424e6('0x93')],qs[_0x1424e6('0x11e')](_0x723d73['query']['fields'])),_0x618db8[_0x1424e6('0x11b')]=_0x618db8[_0x1424e6('0x11b')][_0x1424e6('0xd5')]?_0x618db8[_0x1424e6('0x11b')]:_0x2773a9['model'],typeof _0x723d73[_0x1424e6('0x7e')][_0x1424e6('0x2')]==='undefined'&&(_0x618db8[_0x1424e6('0xc9')]=qs[_0x1424e6('0xc9')](_0x723d73[_0x1424e6('0x7e')][_0x1424e6('0xc9')]),_0x618db8[_0x1424e6('0x4b')]=qs[_0x1424e6('0x4b')](_0x723d73['query']['offset'])),_0x618db8[_0x1424e6('0x48')]=qs[_0x1424e6('0x44')](_0x723d73['query']['sort']),_0x618db8['where']=qs[_0x1424e6('0xff')](_[_0x1424e6('0xef')](_0x723d73[_0x1424e6('0x7e')],_0x2773a9['filters'])),_0x618db8[_0x1424e6('0x3f')]['ChatInteractionId']=_0x133bc3['id'],_0x723d73[_0x1424e6('0x7e')][_0x1424e6('0x7d')]&&(_0x618db8[_0x1424e6('0x3f')]=_[_0x1424e6('0x86')](_0x618db8['where'],{[Op['or']]:_['map'](_0x618db8[_0x1424e6('0x11b')],function(_0x94eee4){const _0x169bb6=_0x1424e6,_0x6bc172={};return _0x6bc172[_0x94eee4]={[Op['like']]:'%'+_0x723d73[_0x169bb6('0x7e')]['filter']+'%'},_0x6bc172;})})),_0x618db8['where'][_0x1424e6('0x109')]=![],_0x723d73[_0x1424e6('0x7e')]['id']&&(_0x618db8[_0x1424e6('0x3f')]['id']={[Op['gt']]:_0x723d73['query']['id']}),_0x618db8=_['merge']({},_0x618db8,_0x723d73[_0x1424e6('0x11c')]),db[_0x1424e6('0xa5')][_0x1424e6('0x11')]({'where':_0x618db8[_0x1424e6('0x3f')]})[_0x1424e6('0x32')](function(_0x6b433c){const _0x1b8d17=_0x1424e6;return _0x3ad26d[_0x1b8d17('0x11')]=_0x6b433c,_0x618db8[_0x1b8d17('0xf9')]=[],_0x723d73['query']['includeAgent']&&_0x618db8[_0x1b8d17('0xf9')][_0x1b8d17('0x36')]({'model':db[_0x1b8d17('0x8d')],'as':_0x1b8d17('0x8d'),'attributes':['id','fullname','alias']}),_0x723d73[_0x1b8d17('0x7e')][_0x1b8d17('0xa8')]&&(_0x618db8['include']=[{'all':!![]}]),db['ChatMessage'][_0x1b8d17('0xea')](_0x618db8);})['then'](function(_0x36a248){const _0x3e9809=_0x1424e6;return _0x3ad26d[_0x3e9809('0xe6')]=_0x36a248,_0x3ad26d;});})[_0x2f6df9('0x32')](respondWithFilteredResult(_0x5e08eb,_0x618db8))[_0x2f6df9('0x1d')](handleError(_0x5e08eb,null));},exports[_0x26f3e2('0xad')]=function(_0x2ec386,_0x5946ff){const _0x544955=_0x26f3e2;return db[_0x544955('0x6f')][_0x544955('0x83')]({'where':{'id':_0x2ec386[_0x544955('0x25')]['id']}})[_0x544955('0x32')](function(_0x3f1616){const _0x313b0a=_0x544955;if(_0x3f1616)return _0x3f1616[_0x313b0a('0x30')](_0x2ec386[_0x313b0a('0xe5')][_0x313b0a('0xc7')],{'through':_[_0x313b0a('0x98')](_0x2ec386['body'],[_0x313b0a('0xc7'),'id'])})[_0x313b0a('0x32')](function(){const _0x32cf54=_0x313b0a;return db[_0x32cf54('0xa7')][_0x32cf54('0xea')]({'attributes':['id','name',_0x32cf54('0x55')],'where':{'id':_0x2ec386['body'][_0x32cf54('0xc7')]}});})[_0x313b0a('0x32')](function(_0x11ab13){const _0x44b9ad=_0x313b0a;return socket[_0x44b9ad('0x92')](_0x44b9ad('0xf5'),{'id':Number(_0x2ec386['params']['id']),'tags':_0x11ab13||[]}),{'id':Number(_0x2ec386[_0x44b9ad('0x25')]['id']),'tags':_0x11ab13||[]};});})['then'](respondWithResult(_0x5946ff,null))[_0x544955('0x1d')](handleError(_0x5946ff,null));},exports['removeTags']=function(_0x1f2915,_0x2b9b85){const _0x171b16=_0x26f3e2;return db[_0x171b16('0x6f')][_0x171b16('0x83')]({'where':{'id':_0x1f2915[_0x171b16('0x25')]['id']}})[_0x171b16('0x32')](handleEntityNotFound(_0x2b9b85,null))[_0x171b16('0x32')](function(_0x1607b9){const _0x5d89e2=_0x171b16;if(_0x1607b9)return _0x1607b9[_0x5d89e2('0x27')](_0x1f2915[_0x5d89e2('0x7e')]['ids']);})[_0x171b16('0x32')](respondWithStatusCode(_0x2b9b85,null))['catch'](handleError(_0x2b9b85,null));},exports[_0x26f3e2('0xca')]=function(_0x20c457,_0x4aad9c){const _0x2a188d=_0x26f3e2,_0x553c19=moment()[_0x2a188d('0xcf')]()[_0x2a188d('0xe2')](),_0x40d416=path['join'](config[_0x2a188d('0x54')],'server',_0x2a188d('0x3'),'tmp'),_0x14d761=path[_0x2a188d('0xbd')](config['root'],_0x2a188d('0x5b'),_0x2a188d('0x3'),_0x2a188d('0x16')),_0x15d10d=path[_0x2a188d('0xbd')](_0x40d416,_0x553c19),_0x450a59=util[_0x2a188d('0xd9')](_0x2a188d('0xeb'),_0x20c457[_0x2a188d('0x25')]['id'],_0x553c19),_0x9e7b0=path['join'](_0x40d416,_0x450a59),_0x30fb55=[];_0x30fb55['push']({'model':db[_0x2a188d('0x8d')],'as':'User','attributes':['id',_0x2a188d('0x6c')],'raw':!![]}),_0x30fb55['push']({'model':db[_0x2a188d('0x110')],'as':_0x2a188d('0xd7'),'attributes':['id',_0x2a188d('0x2c'),_0x2a188d('0x41')],'raw':!![]});_0x20c457[_0x2a188d('0x7e')][_0x2a188d('0x16')]&&_0x30fb55[_0x2a188d('0x36')]({'model':db[_0x2a188d('0x7b')],'as':_0x2a188d('0x7b'),'raw':!![]});const _0x2a2254=[{'model':db[_0x2a188d('0xa5')],'as':_0x2a188d('0x5d'),'attributes':['id','body',_0x2a188d('0xb5'),_0x2a188d('0xd2'),_0x2a188d('0x109'),_0x2a188d('0xf7')],'include':_0x30fb55}];return _0x2a2254[_0x2a188d('0x36')]({'model':db['ChatWebsite'],'as':_0x2a188d('0xc4'),'attributes':['id',_0x2a188d('0xfe')]}),_0x2a2254[_0x2a188d('0x36')]({'model':db[_0x2a188d('0x8d')],'as':_0x2a188d('0x11d'),'attributes':['id',_0x2a188d('0x6c')]}),db['ChatInteraction'][_0x2a188d('0x83')]({'where':{'id':_0x20c457[_0x2a188d('0x25')]['id']},'include':_0x2a2254})[_0x2a188d('0x32')](handleEntityNotFound(_0x4aad9c,null))[_0x2a188d('0x32')](function(_0x2c5a50){const _0x438e6c=_0x2a188d;if(_0x2c5a50){const _0x499661=_0x2c5a50[_0x438e6c('0x58')]({'plain':!![]});fs[_0x438e6c('0x71')](_0x15d10d);const _0x1fabfa={'format':'A4','border':'10px','header':{'height':_0x438e6c('0x53'),'contents':{'first':_0x438e6c('0x6')}},'footer':{'height':_0x438e6c('0xe9'),'contents':{'default':util[_0x438e6c('0xd9')](_0x438e6c('0xfc'),util[_0x438e6c('0xd9')]('%s\x20#%d',_0x438e6c('0x99'),_0x499661['id']),moment()['format'](_0x438e6c('0xf2'))[_0x438e6c('0xe2')]())}}},_0x5efcdb={'channel':'Chat','account':_0x499661[_0x438e6c('0xc4')]['name'],'agent':_0x499661['Owner']?_0x499661[_0x438e6c('0x11d')][_0x438e6c('0x6c')]:_0x438e6c('0xf1'),'createdAt':moment(_0x499661[_0x438e6c('0xb5')])[_0x438e6c('0xd9')](_0x438e6c('0x88'))[_0x438e6c('0xe2')](),'closedAt':_0x499661[_0x438e6c('0x24')]?moment(_0x499661['closedAt'])[_0x438e6c('0xd9')](_0x438e6c('0x88'))['toString']():'','disposition':_0x499661[_0x438e6c('0x18')],'chatInfo':{'browser':_0x499661['browserName'],'os':_0x499661['osName'],'referer':_0x499661[_0x438e6c('0xbb')],'customerIp':_0x499661[_0x438e6c('0x7a')],'customerPort':_0x499661[_0x438e6c('0xe7')]?_0x499661[_0x438e6c('0xe7')]:'N.A.'},'messages':_(_0x499661[_0x438e6c('0x5d')])[_0x438e6c('0xc0')]()[_0x438e6c('0x7d')]({'secret':![]})[_0x438e6c('0xb1')](function(_0x192161){const _0x5f4d2c=_0x438e6c;if(_0x192161[_0x5f4d2c('0x7b')]){const _0x7fae99=path[_0x5f4d2c('0xbd')](_0x14d761,_0x192161['Attachment'][_0x5f4d2c('0x10f')]);fs['existsSync'](_0x7fae99)&&fs[_0x5f4d2c('0x67')](_0x7fae99)[_0x5f4d2c('0x8e')](fs[_0x5f4d2c('0x2e')](path[_0x5f4d2c('0xbd')](_0x15d10d,_0x192161[_0x5f4d2c('0x7b')][_0x5f4d2c('0x10f')])));}return{'date':moment(_0x192161['createdAt'])['format'](_0x5f4d2c('0x88'))[_0x5f4d2c('0xe2')](),'sender':_0x192161[_0x5f4d2c('0xd2')]===_0x5f4d2c('0x29')?_0x192161[_0x5f4d2c('0x8d')]?_0x192161[_0x5f4d2c('0x8d')][_0x5f4d2c('0x6c')]:'System':_0x192161[_0x5f4d2c('0xd7')][_0x5f4d2c('0x2c')]+(_0x192161[_0x5f4d2c('0xd7')][_0x5f4d2c('0x41')]?'\x20'+_0x192161[_0x5f4d2c('0xd7')][_0x5f4d2c('0x41')]:''),'body':_0x192161[_0x5f4d2c('0x7b')]?_0x192161[_0x5f4d2c('0x7b')]['basename']:_0x192161[_0x5f4d2c('0xe5')],'direction':_0x192161[_0x5f4d2c('0xd2')]===_0x5f4d2c('0x29')?'A':'C','secret':_0x192161[_0x5f4d2c('0x109')],'read':_0x192161['read'],'attachment':_0x192161[_0x5f4d2c('0x7b')]};})['value']()};return ejs[_0x438e6c('0x1b')](path['join'](config[_0x438e6c('0x54')],'server',_0x438e6c('0xc8'),_0x438e6c('0x8f')),{'interaction':_0x5efcdb})[_0x438e6c('0x32')](function(_0x3652af){return new Promise(function(_0xdf1a17,_0x3c73e7){const _0x400ff0=a66_0x5d37;pdf[_0x400ff0('0xa1')](_0x3652af,_0x1fabfa)[_0x400ff0('0x39')](path['join'](_0x15d10d,_0x400ff0('0x116')+_0x499661['id']+'-'+_0x553c19+_0x400ff0('0xae')),function(_0x3bfc18,_0x407b69){if(_0x3bfc18)return _0x3c73e7(_0x3bfc18);_0xdf1a17(_0x407b69);});});})['then'](function(){const _0xd8339c=_0x438e6c;return new Promise(function(_0xcb69f0,_0x21e3ea){zipdir(_0x15d10d,{'saveTo':_0x9e7b0},function(_0x4fd623,_0x5a648f){if(_0x4fd623)return _0x21e3ea(_0x4fd623);return _0xcb69f0(_0x5a648f);});})['then'](function(){return new Promise(function(_0x225353,_0x227e64){rimraf(_0x15d10d,function(_0x936074){if(_0x936074)_0x227e64(_0x936074);return _0x225353();});});})[_0xd8339c('0x32')](function(){const _0x365887=_0xd8339c;return _0x4aad9c[_0x365887('0xca')](_0x9e7b0,_0x450a59,function(_0x3d4424){const _0x5794bd=_0x365887;_0x3d4424?console['log'](_0x5794bd('0x84'),_0x3d4424):fs[_0x5794bd('0x51')](_0x9e7b0);});});});}else return _0x4aad9c[_0x438e6c('0xb4')](0xc8);})[_0x2a188d('0x1d')](handleError(_0x4aad9c,null));}; \ No newline at end of file +const a66_0x4094=['expr','SELECT','lodash','$gte','.pdf','Contact.mobile','\x22%s\x22\x20<%s>','Owner.internal','browserName','`unreadMessages`\x20>\x200','i.*','abandon','40px','User','select','files','removeTags','sqlOperator','stack','emit','Attachment','abandonInteraction,\x20%s,\x20%s,\x20%s','having','forEach','destroy','find','tools_tags','disposition','cm_contacts','text','null','attachmentUpload','left_join','send','Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a','query','ChatWebsite','isNumeric','color','close','concat','$substring','conditions','secret','index','update','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Contact.firstName','transcript-%s.txt','`\x20>\x200','split','order','auth','file','squel','rawAttributes','filter','MailAccount','u.id\x20=\x20ui.UserId','agentIdentifier','gte','result','getMessages','fullname','chat_interactions','GROUP_CONCAT(DISTINCT\x20t.id)','getMyMessages','10px','moment','Users','pathTranscript','\x20=\x20?','user_has_chat_interactions','replace','Contact.lastName','model','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','sendStatus','join_url','chat_websites','nolimit','Contact.phone','describe','transcript-','chat_messages','i.id\x20LIKE\x20?','DESC','length','c.phone','a.mandatoryDisposition','toString','it.ChatInteractionId\x20=\x20i.id','key','views','attachmentDownload','ejs','ids','o.fullname','operator','users','Owner.fullname','register','createReadStream','catch','start','findOne','secure','Unable\x20to\x20create\x20Vidaoo\x20session','closed','buildExpression','website_alias','mailTranscript','ValidationError','parse','request','groupBy','Error\x20in\x20Vidaoo\x20configuration','server/files/chat/upload/','`\x20=\x200','customerPort','MotionCWB:','body','parseSearch','sort','../../rediscache','now','journey','stringify','follow','error','agentAlias','limit','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','from','Smtp','Tags','http','c.email','UserId','pick','field','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','TagIds','name','some','filters','zip-dir','ContactId','Chat','like','info','N.A.','i.ChatWebsiteId\x20IS\x20NULL','include','downloadInteraction.html','getFullTextValue','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','params','set','Visitor','port','SendMail','../../config/environment','where','./chatInteraction.socket','YYYY-MM-DD','\x27\x27\x27\x27','Content-Range','compact','agent_alias','closedAt','resolve','Account.key','host','offset','union','options','vidaooApiKey','json','out','lastName','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','i.id','c.lastName','CmContact','agent_fullname','count','map','[%s]\x20%s:\x20%s\x0a','omit','getChatWebsites','i.ChatWebsiteId\x20IN\x20?','attributes','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','read','html-pdf','isEmpty','create','service','tmp','30px','entity\x20not\x20found','includeAll','client','Sequelize','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','originalname','request\x20sent','attachId','createVidaooSession','type','intersection','root','Owner','direction','message','fields','findAll','server','u.id','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','Contact','Messages','t.id\x20IN\x20?','Interaction\x20already\x20assigned','ChatInteraction,\x20%s,\x20%s','createWriteStream','util','code','ChatWebsiteId','Unauthorized','Contact.email','renderFile','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','keys','toFile','unlinkSync','ChatInteraction','unreadMessages','a.key','addTags','../../config/logger','keyBy','ui.ChatInteractionId\x20IN\x20?','System','tag','chatInteractionTags:save','sendMail','value','ChatMessage','alias','status','basename','rows','undefined','%s%d','ChatInteractionId','user','end','fieldName','push','download','YYYY-MM-DD\x20HH:mm:ss','addMessage','createdAt','server/files/attachments/','https://api-vidaoo.xcally.com/api/v1/sessions','o.internal','log','clone','api','attachments','format','QueryTypes','`unreadMessages`\x20=\x200','vidaooEscalation','merge','search','firstName','sequelize','rimraf','then','join','show','existsSync','Account','transcript-%d-%s.zip','filename'];(function(_0x3a3e43,_0x409423){const _0x3bf8d2=function(_0x56d8db){while(--_0x56d8db){_0x3a3e43['push'](_0x3a3e43['shift']());}};_0x3bf8d2(++_0x409423);}(a66_0x4094,0xb7));const a66_0x3bf8=function(_0x3a3e43,_0x409423){_0x3a3e43=_0x3a3e43-0x0;let _0x3bf8d2=a66_0x4094[_0x3a3e43];return _0x3bf8d2;};const _0x484951=a66_0x3bf8;'use strict';const pdf=require(_0x484951('0xc')),rimraf=require(_0x484951('0x61')),zipdir=require(_0x484951('0xfb')),rp=require('request-promise-native'),moment=require(_0x484951('0xad')),util=require(_0x484951('0x2c')),path=require('path'),ejs=require(_0x484951('0xc8')),fs=require('fs'),_=require(_0x484951('0x6b')),squel=require(_0x484951('0x9f')),{getSocket}=require(_0x484951('0xe5')),qs=require('../../components/parsers/qs'),as=require('../../components/parsers/advancedSearch'),logger=require(_0x484951('0x3a'))(_0x484951('0x57')),config=require(_0x484951('0x10b')),db=require('../../mysqldb')['db'],{Op}=require(_0x484951('0x60')),socket=getSocket();require(_0x484951('0x10d'))[_0x484951('0xce')](socket);const jayson=require('jayson/promise'),client=jayson[_0x484951('0x14')][_0x484951('0xf1')]({'port':0x232b}),client9004=jayson[_0x484951('0x14')][_0x484951('0xf1')]({'port':0x232c});function respondWithRpcPromise(_0x56d8db,_0x291d42,_0x5167dc,_0x202381){return new Promise(function(_0x48f566,_0x3ab751){const _0x551475=a66_0x3bf8,_0x250456=_0x202381||client;return _0x250456[_0x551475('0xdb')](_0x56d8db,_0x5167dc)[_0x551475('0x62')](function(_0x1dc10e){const _0xfc8070=_0x551475;logger[_0xfc8070('0xff')](_0xfc8070('0x2a'),_0x291d42,_0xfc8070('0x18')),logger['debug']('ChatInteraction,\x20%s,\x20%s,\x20%s',_0x291d42,_0xfc8070('0x18'),JSON[_0xfc8070('0xe8')](_0x1dc10e));if(_0x1dc10e['error']){if(_0x1dc10e[_0xfc8070('0xea')][_0xfc8070('0x2d')]===0x1f4)return logger[_0xfc8070('0xea')](_0xfc8070('0x2a'),_0x291d42,_0x1dc10e[_0xfc8070('0xea')][_0xfc8070('0x20')]),_0x3ab751(_0x1dc10e[_0xfc8070('0xea')][_0xfc8070('0x20')]);return logger['error'](_0xfc8070('0x2a'),_0x291d42,_0x1dc10e[_0xfc8070('0xea')]['message']),_0x48f566(_0x1dc10e['error']['message']);}else logger['info'](_0xfc8070('0x2a'),_0x291d42,'request\x20sent'),_0x48f566(_0x1dc10e[_0xfc8070('0xa6')][_0xfc8070('0x20')]);})['catch'](function(_0x46b4b8){const _0x4fa81f=_0x551475;logger['error'](_0x4fa81f('0x2a'),_0x291d42,_0x46b4b8),_0x3ab751(_0x46b4b8);});});}function respondWithStatusCode(_0x48f205,_0x140b01){return _0x140b01=_0x140b01||0xcc,function(_0x4834e3){const _0x71e617=a66_0x3bf8;if(_0x4834e3)return _0x48f205[_0x71e617('0xb6')](_0x140b01);return _0x48f205[_0x71e617('0x44')](_0x140b01)[_0x71e617('0x4b')]();};}function respondWithResult(_0xd6950c,_0x4bf9a4){return _0x4bf9a4=_0x4bf9a4||0xc8,function(_0x4228d1){const _0x1ac835=a66_0x3bf8;if(_0x4228d1)return _0xd6950c[_0x1ac835('0x44')](_0x4bf9a4)[_0x1ac835('0x11b')](_0x4228d1);};}function respondWithFilteredResult(_0x5ee9b2,_0x5b033a){return function(_0x56df78){const _0x1adbd3=a66_0x3bf8;if(_0x56df78){const _0x597db1=_0x56df78[_0x1adbd3('0x3')],_0x5258a3=_0x5b033a[_0x1adbd3('0x117')];let _0x560a67=_0x5b033a[_0x1adbd3('0x117')]+_0x5b033a[_0x1adbd3('0xec')],_0x2deec6;return _0x560a67>=_0x597db1?(_0x560a67=_0x597db1,_0x2deec6=0xc8):_0x2deec6=0xce,_0x5ee9b2[_0x1adbd3('0x44')](_0x2deec6),_0x5ee9b2[_0x1adbd3('0x107')](_0x1adbd3('0x110'),_0x5258a3+'-'+_0x560a67+'/'+_0x597db1)['json'](_0x56df78);}return null;};}function saveUpdates(_0x177252){return function(_0x12544d){const _0x813924=a66_0x3bf8;if(_0x12544d)return _0x12544d[_0x813924('0x96')](_0x177252)[_0x813924('0x62')](function(_0x502f5d){return _0x502f5d;});return null;};}function removeEntity(_0x5c5953){return function(_0x408762){const _0x374428=a66_0x3bf8;if(_0x408762)return _0x408762[_0x374428('0x81')]()['then'](function(){const _0x4f631a=_0x374428;_0x5c5953[_0x4f631a('0x44')](0xcc)[_0x4f631a('0x4b')]();});};}function handleEntityNotFound(_0x5a0584){return function(_0x2f6741){const _0x5bde3a=a66_0x3bf8;return!_0x2f6741&&_0x5a0584[_0x5bde3a('0xb6')](0x194),_0x2f6741;};}function handleError(_0x2f5948,_0x26080e){return _0x26080e=_0x26080e||0x1f4,function(_0x361fa7){const _0x16c673=a66_0x3bf8;logger[_0x16c673('0xea')](_0x361fa7[_0x16c673('0x7b')]),_0x361fa7[_0x16c673('0xf8')]&&delete _0x361fa7[_0x16c673('0xf8')],_0x2f5948[_0x16c673('0x44')](_0x26080e)[_0x16c673('0x8a')](_0x361fa7);};}function getInteractionUsers(_0x47a787,_0x3af45c){return new Promise(function(_0x3e32a0,_0x5978c0){const _0x1f0bc2=a66_0x3bf8;try{_0x3af45c[_0x47a787['id']]&&(_0x47a787[_0x1f0bc2('0xae')]=_['map'](_0x3af45c[_0x47a787['id']],function(_0x4f852a){return{'id':_0x4f852a['id'],'fullname':_0x4f852a['fullname']};}));}catch(_0x2c0b84){_0x5978c0(_0x2c0b84);}_0x3e32a0(_0x47a787);});}function getInteractionTags(_0x37ad52,_0x59ec63){return new Promise(function(_0x5dd9a7,_0x16e573){const _0x2ca3e7=a66_0x3bf8;try{_0x37ad52[_0x2ca3e7('0xf7')]&&(_0x37ad52[_0x2ca3e7('0xf0')]=[],_0x37ad52[_0x2ca3e7('0xf7')]['split'](',')[_0x2ca3e7('0x80')](function(_0x31fbb8){const _0x3d7fd9=_0x2ca3e7;_0x37ad52[_0x3d7fd9('0xf0')][_0x3d7fd9('0x4d')](_0x59ec63[_0x31fbb8]);})),delete _0x37ad52[_0x2ca3e7('0xf7')];}catch(_0x5ec01c){_0x16e573(_0x5ec01c);}_0x5dd9a7(_0x37ad52);});}function updateChatInteraction(_0x460cca,_0x3c81b4,_0x5bb11d){return new Promise(function(_0x4d9933,_0x11fbe2){const _0x138fb3=a66_0x3bf8;return getInteractionUsers(_0x460cca,_0x5bb11d)['then'](function(_0x361e9a){return getInteractionTags(_0x361e9a,_0x3c81b4);})[_0x138fb3('0x62')](function(_0x425b99){_0x4d9933(_0x425b99);})[_0x138fb3('0xd0')](function(_0x12468d){_0x11fbe2(_0x12468d);});});}exports[_0x484951('0x95')]=function(_0x407cb7,_0x7f03c6){const _0x8f2c5c=_0x484951,_0x61b653={},_0x15ca4d={},_0x47279c={'count':0x0,'rows':[]},_0x1aff71=_[_0x8f2c5c('0x4')](db[_0x8f2c5c('0x36')][_0x8f2c5c('0xa0')],function(_0x38d288){const _0x88d6fa=_0x8f2c5c;return{'name':_0x38d288[_0x88d6fa('0x4c')],'type':_0x38d288[_0x88d6fa('0x1b')][_0x88d6fa('0xc5')]};});_0x15ca4d['model']=_[_0x8f2c5c('0x4')](_0x1aff71,_0x8f2c5c('0xf8')),_0x15ca4d[_0x8f2c5c('0x8c')]=_[_0x8f2c5c('0x33')](_0x407cb7[_0x8f2c5c('0x8c')]),_0x15ca4d[_0x8f2c5c('0xfa')]=_['intersection'](_0x15ca4d['model'],_0x15ca4d['query']),_0x61b653[_0x8f2c5c('0x9')]=_[_0x8f2c5c('0x1c')](_0x15ca4d[_0x8f2c5c('0xb4')],qs[_0x8f2c5c('0x21')](_0x407cb7['query'][_0x8f2c5c('0x21')])),_0x61b653[_0x8f2c5c('0x9')]=_0x61b653[_0x8f2c5c('0x9')][_0x8f2c5c('0xc0')]?_0x61b653['attributes']:_0x15ca4d[_0x8f2c5c('0xb4')];typeof _0x407cb7['query'][_0x8f2c5c('0xb9')]===_0x8f2c5c('0x47')&&(_0x61b653[_0x8f2c5c('0xec')]=qs[_0x8f2c5c('0xec')](_0x407cb7[_0x8f2c5c('0x8c')][_0x8f2c5c('0xec')]),_0x61b653['offset']=qs[_0x8f2c5c('0x117')](_0x407cb7[_0x8f2c5c('0x8c')]['offset']));_0x61b653['order']=qs['sort'](_0x407cb7[_0x8f2c5c('0x8c')][_0x8f2c5c('0xe4')]),_0x61b653['where']=qs[_0x8f2c5c('0xfa')](_[_0x8f2c5c('0xf4')](_0x407cb7[_0x8f2c5c('0x8c')],_0x15ca4d[_0x8f2c5c('0xfa')]),_0x1aff71);let _0x3d6ffc=[];const _0x1c1e63=squel[_0x8f2c5c('0x77')]()[_0x8f2c5c('0xf5')]('id')[_0x8f2c5c('0xf5')](_0x8f2c5c('0xf8'))['field']('color')[_0x8f2c5c('0xee')](_0x8f2c5c('0x83')),_0x40f8a4=squel['select']()['field'](_0x8f2c5c('0x24'))['field']('u.fullname')[_0x8f2c5c('0xf5')]('ui.ChatInteractionId')[_0x8f2c5c('0xee')](_0x8f2c5c('0xb1'),'ui')[_0x8f2c5c('0x89')](_0x8f2c5c('0xcc'),'u',_0x8f2c5c('0xa3')),_0x33b6a5=squel[_0x8f2c5c('0x77')]()['from'](_0x8f2c5c('0xa9'),'i')['left_join'](_0x8f2c5c('0x85'),'c',_0x8f2c5c('0xed'))['left_join'](_0x8f2c5c('0xcc'),'o','o.id\x20=\x20i.UserId')['left_join'](_0x8f2c5c('0xb8'),'a','a.id\x20=\x20i.ChatWebsiteId')[_0x8f2c5c('0x89')](_0x8f2c5c('0xbd'),'me','me.ChatInteractionId\x20=\x20i.id')[_0x8f2c5c('0x89')]('chat_interaction_has_tags','it',_0x8f2c5c('0xc4'))['left_join']('tools_tags','t','t.id\x20=\x20it.TagId'),_0x430b1e=squel[_0x8f2c5c('0x69')]();let _0x3a2639=[];const _0x430e08=squel[_0x8f2c5c('0x69')]();let _0x214a6b;if(_0x407cb7[_0x8f2c5c('0x8c')][_0x8f2c5c('0x5e')]){_0x214a6b=as[_0x8f2c5c('0xe3')](_0x407cb7[_0x8f2c5c('0x8c')]['search']);const _0x3bbdab=_0x214a6b[_0x8f2c5c('0x7a')];for(let _0x4aebed=0x0;_0x4aebed<_0x214a6b[_0x8f2c5c('0x93')][_0x8f2c5c('0xc0')];_0x4aebed++){const _0x3586a2=_0x214a6b[_0x8f2c5c('0x93')][_0x4aebed],_0x56f413='i';let _0x370443,_0x2d8cfb=_['find'](_0x1aff71,['name',_0x3586a2[_0x8f2c5c('0xf5')]]);if(!_0x2d8cfb)switch(_0x3586a2[_0x8f2c5c('0xf5')]){case'unreadMessages':_0x3586a2['value']==0x1?_0x33b6a5[_0x8f2c5c('0x7f')]('`'+_0x3586a2['field']+_0x8f2c5c('0xdf')):_0x33b6a5['having']('`'+_0x3586a2[_0x8f2c5c('0xf5')]+_0x8f2c5c('0x9a'));break;case _0x8f2c5c('0x26'):if(_0x3586a2[_0x8f2c5c('0xcb')]===_0x8f2c5c('0x92')){if(_0x3586a2[_0x8f2c5c('0x41')][_0x8f2c5c('0x9b')]('\x20')['length']>0x1)_0x430b1e[_0x3bbdab](_0x8f2c5c('0xb5'),qs[_0x8f2c5c('0x104')](_0x3586a2['value']),null);else{const _0x3da154='%'+_0x3586a2['value']+'%';_0x430b1e[_0x3bbdab]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x3da154,_0x3da154,_0x3da154);}}else _0x2d8cfb=_[_0x8f2c5c('0x82')](_0x1aff71,[_0x8f2c5c('0xf8'),_0x8f2c5c('0xfc')]),_0x3586a2[_0x8f2c5c('0xf5')]=_0x8f2c5c('0xfc'),_0x370443=as[_0x8f2c5c('0xd6')](_0x56f413,_0x2d8cfb[_0x8f2c5c('0x1b')],_0x3586a2),_0x430b1e[_0x3bbdab](_0x370443[_0x8f2c5c('0x86')],_0x370443[_0x8f2c5c('0x41')][_0x8f2c5c('0xd1')],_0x370443[_0x8f2c5c('0x41')][_0x8f2c5c('0x4b')]);break;case'Tag':{const _0x22c838=_0x3586a2[_0x8f2c5c('0x41')][_0x8f2c5c('0x9b')](',')[_0x8f2c5c('0x4')](function(_0x4775f4){return Number(_0x4775f4);});_0x22c838[_0x8f2c5c('0x80')](function(_0x358cda){const _0x2c804c=_0x8f2c5c;_0x430e08['or'](_0x2c804c('0x25'),'%,'+_0x358cda+',%');}),_0x3a2639=_[_0x8f2c5c('0x118')](_0x3a2639,_0x22c838);}break;case _0x8f2c5c('0x76'):_0x3586a2[_0x8f2c5c('0xcb')]==='$substring'?_0x430b1e[_0x3bbdab](_0x8f2c5c('0xf6'),'%'+_0x3586a2[_0x8f2c5c('0x41')]+'%',null):(_0x2d8cfb=_['find'](_0x1aff71,[_0x8f2c5c('0xf8'),_0x8f2c5c('0xf3')]),_0x3586a2[_0x8f2c5c('0xf5')]=_0x8f2c5c('0xf3'),_0x370443=as[_0x8f2c5c('0xd6')](_0x56f413,_0x2d8cfb['type'],_0x3586a2),_0x430b1e[_0x3bbdab](_0x370443[_0x8f2c5c('0x86')],_0x370443['value']['start'],_0x370443[_0x8f2c5c('0x41')][_0x8f2c5c('0x4b')]));break;case _0x8f2c5c('0xe2'):_0x370443=as[_0x8f2c5c('0xd6')]('me',null,_0x3586a2),_0x430b1e[_0x3bbdab](_0x370443[_0x8f2c5c('0x86')],_0x370443[_0x8f2c5c('0x41')]['start'],_0x370443[_0x8f2c5c('0x41')][_0x8f2c5c('0x4b')]);break;}else _0x370443=as['buildExpression'](_0x56f413,_0x2d8cfb[_0x8f2c5c('0x1b')],_0x3586a2),_0x430b1e[_0x3bbdab](_0x370443[_0x8f2c5c('0x86')],_0x370443['value'][_0x8f2c5c('0xd1')],_0x370443[_0x8f2c5c('0x41')][_0x8f2c5c('0x4b')]);}}else{const _0x48dad4=_(_0x407cb7[_0x8f2c5c('0x8c')])['keys']()[_0x8f2c5c('0x4')](function(_0x8281f){const _0x27cfca=_0x8f2c5c;return _[_0x27cfca('0xf9')](_0x1aff71,['name',_0x8281f])?_0x8281f:undefined;})[_0x8f2c5c('0x111')]()['value']();!_[_0x8f2c5c('0xd')](_0x48dad4)&&_0x48dad4[_0x8f2c5c('0x80')](function(_0x4cd37a){const _0x57cf35=_0x8f2c5c;if(_0x4cd37a==='ChatWebsiteId')_0x33b6a5['where'](_0x57cf35('0x8'),[][_0x57cf35('0x91')](_0x407cb7[_0x57cf35('0x8c')][_0x4cd37a]));else{if(_0x4cd37a===_0x57cf35('0x51')){const _0x16a498=JSON[_0x57cf35('0xda')](_0x407cb7['query'][_0x4cd37a])[_0x57cf35('0x6c')],_0x47f0ca=JSON[_0x57cf35('0xda')](_0x407cb7[_0x57cf35('0x8c')][_0x4cd37a])['$lte'];_0x33b6a5[_0x57cf35('0x10c')](_0x57cf35('0x105'),_0x16a498,_0x47f0ca);}else _0x407cb7['query'][_0x4cd37a]===_0x57cf35('0x87')?_0x33b6a5['where']('i.'+_0x4cd37a+'\x20IS\x20NULL'):_0x33b6a5[_0x57cf35('0x10c')]('i.'+_0x4cd37a+_0x57cf35('0xb0'),_0x407cb7[_0x57cf35('0x8c')][_0x4cd37a]);}});_0x407cb7[_0x8f2c5c('0x8c')]['read']&&(_0x407cb7[_0x8f2c5c('0x8c')][_0x8f2c5c('0xb')]==0x1?_0x33b6a5[_0x8f2c5c('0x7f')](_0x8f2c5c('0x5b')):_0x33b6a5[_0x8f2c5c('0x7f')](_0x8f2c5c('0x72')));_0x407cb7[_0x8f2c5c('0x8c')][_0x8f2c5c('0x3e')]&&(_0x3a2639=_['isArray'](_0x407cb7['query'][_0x8f2c5c('0x3e')])?_0x407cb7[_0x8f2c5c('0x8c')][_0x8f2c5c('0x3e')]:new Array(_0x407cb7[_0x8f2c5c('0x8c')]['tag']),_0x3a2639[_0x8f2c5c('0x80')](function(_0x19ad00){const _0x49a732=_0x8f2c5c;_0x430e08['or'](_0x49a732('0x25'),'%,'+_0x19ad00+',%');}));if(_0x407cb7[_0x8f2c5c('0x8c')][_0x8f2c5c('0xa1')]){const _0x559366=_0x407cb7[_0x8f2c5c('0x8c')][_0x8f2c5c('0xa1')][_0x8f2c5c('0xb2')]('\x5c','\x5c\x5c')[_0x8f2c5c('0xb2')]('\x27\x27',_0x8f2c5c('0x10f'));qs[_0x8f2c5c('0x8e')](_0x559366)?_0x430b1e['or'](_0x8f2c5c('0xbe'),_0x559366+'%'):_0x430b1e['or'](_0x8f2c5c('0x16'),qs[_0x8f2c5c('0x104')](_0x559366))['or'](_0x8f2c5c('0x11e'),_0x559366+'%');}}_0x33b6a5['where'](_0x430b1e),_0x33b6a5['group'](_0x8f2c5c('0x11f'));let _0x1f2674={'type':db[_0x8f2c5c('0x15')][_0x8f2c5c('0x5a')][_0x8f2c5c('0x6a')],'raw':!![]};const _0x1a2911=_0x33b6a5[_0x8f2c5c('0x56')]();_0x1a2911[_0x8f2c5c('0xf5')](_0x8f2c5c('0x11f')),_0x1a2911[_0x8f2c5c('0xf5')](_0x8f2c5c('0x32'),_0x8f2c5c('0x37')),_0x61b653['order']&&_0x61b653['order'][_0x8f2c5c('0x80')](function(_0x578ca7){const _0x1c5d2d=_0x8f2c5c;_0x33b6a5[_0x1c5d2d('0x9c')]('i.'+_0x578ca7[0x0],_0x578ca7[0x1]===_0x1c5d2d('0xbf')?![]:!![]);}),!_[_0x8f2c5c('0xd')](_0x3a2639)&&(_0x33b6a5[_0x8f2c5c('0x7f')](_0x430e08),_0x1a2911['where'](_0x8f2c5c('0x28'),_0x3a2639)),Promise[_0x8f2c5c('0x114')]()['then'](function(){const _0x50ec91=_0x8f2c5c;if(!_0x214a6b){if(_0x407cb7[_0x50ec91('0x8c')][_0x50ec91('0x2e')]||_0x407cb7[_0x50ec91('0x8c')][_0x50ec91('0xe7')])return;_0x1a2911['where'](_0x50ec91('0xa')),_0x33b6a5['where'](_0x50ec91('0xa'));return;}return _0x407cb7['user'][_0x50ec91('0x7')]({'attributes':['id'],'raw':!![]})['then'](function(_0x39c085){const _0x13d453=_0x50ec91;_[_0x13d453('0xd')](_0x39c085)?(_0x1a2911[_0x13d453('0x10c')](_0x13d453('0x101')),_0x33b6a5[_0x13d453('0x10c')]('i.ChatWebsiteId\x20IS\x20NULL')):(_0x1a2911[_0x13d453('0x10c')](_0x13d453('0x8'),_['map'](_0x39c085,'id')),_0x33b6a5['where'](_0x13d453('0x8'),_[_0x13d453('0x4')](_0x39c085,'id')));});})[_0x8f2c5c('0x62')](function(){const _0x4cfd68=_0x8f2c5c;db[_0x4cfd68('0x60')]['query'](_0x1a2911['toString'](),_0x1f2674)['then'](function(_0x56c372){const _0x322f07=_0x4cfd68;_0x47279c[_0x322f07('0x3')]=_0x56c372[_0x322f07('0xc0')];if(_0x47279c[_0x322f07('0x3')]===0x0)return[];return db[_0x322f07('0x60')][_0x322f07('0x8c')](_0x1c1e63['toString'](),_0x1f2674)[_0x322f07('0x62')](function(_0x26bb93){const _0x259f21=_0x322f07;_0x3d6ffc=_[_0x259f21('0x3b')](_0x26bb93,'id'),_0x1f2674=_[_0x259f21('0x5d')](_0x1f2674,{'model':db[_0x259f21('0x36')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x407cb7['query'][_0x259f21('0x21')]?_0x61b653[_0x259f21('0x9')]['forEach'](function(_0x187edc){const _0xbe0e11=_0x259f21;_0x33b6a5[_0xbe0e11('0xf5')]('i.'+_0x187edc);}):(_0x33b6a5[_0x259f21('0xf5')](_0x259f21('0x32'),'unreadMessages'),_0x33b6a5['field'](_0x259f21('0x38'),_0x259f21('0x115')),_0x33b6a5['field'](_0x259f21('0xc2'),'Account.mandatoryDisposition'),_0x33b6a5[_0x259f21('0xf5')](_0x259f21('0x73')),_0x33b6a5[_0x259f21('0xf5')]('c.firstName',_0x259f21('0x98')),_0x33b6a5[_0x259f21('0xf5')](_0x259f21('0x0'),_0x259f21('0xb3')),_0x33b6a5[_0x259f21('0xf5')](_0x259f21('0xf2'),_0x259f21('0x30')),_0x33b6a5[_0x259f21('0xf5')](_0x259f21('0xc1'),_0x259f21('0xba')),_0x33b6a5[_0x259f21('0xf5')]('c.mobile',_0x259f21('0x6e')),_0x33b6a5[_0x259f21('0xf5')]('c.fax','Contact.fax'),_0x33b6a5[_0x259f21('0xf5')](_0x259f21('0xca'),_0x259f21('0xcd')),_0x33b6a5[_0x259f21('0xf5')](_0x259f21('0x54'),_0x259f21('0x70')),_0x33b6a5[_0x259f21('0xf5')](_0x259f21('0xaa'),_0x259f21('0xf7')));if(_0x61b653['limit'])_0x33b6a5[_0x259f21('0xec')](_0x61b653[_0x259f21('0xec')]);if(_0x61b653[_0x259f21('0x117')])_0x33b6a5['offset'](_0x61b653[_0x259f21('0x117')]);return db[_0x259f21('0x60')][_0x259f21('0x8c')](_0x33b6a5[_0x259f21('0xc3')](),_0x1f2674);})['then'](function(_0x763c68){const _0x323274=_0x322f07;return _0x40f8a4['where'](_0x323274('0x3c'),_['map'](_0x763c68,'id')),db[_0x323274('0x60')][_0x323274('0x8c')](_0x40f8a4[_0x323274('0xc3')](),_0x1f2674)[_0x323274('0x62')](function(_0x4f21cf){const _0x4c8bae=_0x323274,_0xa073d0=_[_0x4c8bae('0xdc')](_0x4f21cf,_0x4c8bae('0x49')),_0x4d6634=[];return _0x763c68[_0x4c8bae('0x80')](function(_0x32ff5e){_0x4d6634['push'](updateChatInteraction(_0x32ff5e,_0x3d6ffc,_0xa073d0));}),Promise['all'](_0x4d6634);});});})[_0x4cfd68('0x62')](function(_0x3c0401){const _0x1bfd9c=_0x4cfd68;return _0x47279c[_0x1bfd9c('0x46')]=_0x3c0401,_0x47279c;})[_0x4cfd68('0x62')](respondWithFilteredResult(_0x7f03c6,_0x61b653));})[_0x8f2c5c('0xd0')](handleError(_0x7f03c6,null));},exports[_0x484951('0x64')]=function(_0x2c9c8f,_0x45912d){const _0xa27a5f=_0x484951;let _0x372241={'raw':![],'where':{'id':_0x2c9c8f[_0xa27a5f('0x106')]['id']}};const _0x21cdb4={};return _0x21cdb4[_0xa27a5f('0xb4')]=_[_0xa27a5f('0x33')](db['ChatInteraction'][_0xa27a5f('0xa0')]),_0x21cdb4[_0xa27a5f('0x8c')]=_[_0xa27a5f('0x33')](_0x2c9c8f[_0xa27a5f('0x8c')]),_0x21cdb4['filters']=_[_0xa27a5f('0x1c')](_0x21cdb4[_0xa27a5f('0xb4')],_0x21cdb4[_0xa27a5f('0x8c')]),_0x372241[_0xa27a5f('0x9')]=_[_0xa27a5f('0x1c')](_0x21cdb4[_0xa27a5f('0xb4')],qs[_0xa27a5f('0x21')](_0x2c9c8f[_0xa27a5f('0x8c')][_0xa27a5f('0x21')])),_0x372241[_0xa27a5f('0x9')]=_0x372241[_0xa27a5f('0x9')][_0xa27a5f('0xc0')]?_0x372241[_0xa27a5f('0x9')]:_0x21cdb4['model'],_0x2c9c8f['query']['includeAll']&&(_0x372241[_0xa27a5f('0x102')]=[{'all':!![]}]),_0x372241=_[_0xa27a5f('0x5d')]({},_0x372241,_0x2c9c8f[_0xa27a5f('0x119')]),db['ChatInteraction'][_0xa27a5f('0xd2')](_0x372241)[_0xa27a5f('0x62')](handleEntityNotFound(_0x45912d,null))[_0xa27a5f('0x62')](respondWithResult(_0x45912d,null))['catch'](handleError(_0x45912d,null));},exports[_0x484951('0xe')]=function(_0x2c30cc,_0x1d9cc8){const _0x4c3d4d=_0x484951;return db[_0x4c3d4d('0x36')]['create'](_0x2c30cc[_0x4c3d4d('0xe2')],{})[_0x4c3d4d('0x62')](respondWithResult(_0x1d9cc8,0xc9))[_0x4c3d4d('0xd0')](handleError(_0x1d9cc8,null));},exports[_0x484951('0x96')]=function(_0x447536,_0x592ef6){const _0xec7339=_0x484951;return _0x447536[_0xec7339('0xe2')]['id']&&delete _0x447536[_0xec7339('0xe2')]['id'],db[_0xec7339('0x36')]['findOne']({'where':{'id':_0x447536[_0xec7339('0x106')]['id']}})['then'](handleEntityNotFound(_0x592ef6,null))[_0xec7339('0x62')](saveUpdates(_0x447536[_0xec7339('0xe2')],null))['then'](respondWithResult(_0x592ef6,null))['catch'](handleError(_0x592ef6,null));},exports['destroy']=function(_0x4e82d2,_0x544f7d){const _0x1faf7e=_0x484951;return db[_0x1faf7e('0x36')][_0x1faf7e('0xd2')]({'where':{'id':_0x4e82d2[_0x1faf7e('0x106')]['id']}})[_0x1faf7e('0x62')](handleEntityNotFound(_0x544f7d,null))[_0x1faf7e('0x62')](removeEntity(_0x544f7d,null))[_0x1faf7e('0xd0')](handleError(_0x544f7d,null));},exports['describe']=function(_0x22ad04,_0x49a5c4){const _0x58c5c1=_0x484951;return db[_0x58c5c1('0x36')][_0x58c5c1('0xbb')]()[_0x58c5c1('0x62')](respondWithResult(_0x49a5c4,null))['catch'](handleError(_0x49a5c4,null));},exports[_0x484951('0x1a')]=function(_0x3ec954,_0x1b6a08){const _0x312917=_0x484951,_0x3d1a2e=_0x3ec954['params']['id'];let _0x3e2608,_0x1028dd,_0x3e5159;return db[_0x312917('0x36')][_0x312917('0xd2')]({'where':{'id':_0x3d1a2e}})[_0x312917('0x62')](function(_0x1914a5){const _0x30a040=_0x312917;return _0x3e2608=_0x1914a5,db['ChatWebsite'][_0x30a040('0xd2')]({'where':{'id':_0x1914a5[_0x30a040('0x2e')]},'attributes':['id','vidaooApiKey','vidaooEscalation'],'raw':!![]});})[_0x312917('0x62')](function(_0xd09bb0){const _0x490fe1=_0x312917;if(_0xd09bb0&&_0xd09bb0[_0x490fe1('0x11a')]&&_0xd09bb0[_0x490fe1('0x5c')]){_0x1028dd=_0xd09bb0;const _0x4155b6={'rejectUnauthorized':![],'method':'POST','uri':_0x490fe1('0x53'),'headers':{'X-APIKEY':_0xd09bb0[_0x490fe1('0x11a')]},'body':{'name':_0x490fe1('0xe1')+_0x3d1a2e},'redirect':_0x490fe1('0xe9'),'json':!![]};return rp(_0x4155b6);}else throw new db[(_0x490fe1('0x15'))][(_0x490fe1('0xd9'))](_0x490fe1('0xdd'));})[_0x312917('0x62')](function(_0x1d7ed8){const _0xb65668=_0x312917;_0x3e5159=_0x1d7ed8;if(_0x3e5159['id']){const _0x53742a={'body':_0x3e5159[_0xb65668('0xb7')],'ChatWebsiteId':_0x1028dd['id'],'ChatInteractionId':_0x3e2608['id'],'direction':_0xb65668('0x11c'),'UserId':_0x3ec954[_0xb65668('0x4a')]['id']};return db['ChatMessage']['create'](_0x53742a,{});}else throw new db[(_0xb65668('0x15'))]['ValidationError'](_0xb65668('0xd4'));})['then'](function(){const _0x56923c=_0x312917;return _0x3e2608[_0x56923c('0x96')]({'vidaooSessionId':_0x3e5159['id']});})[_0x312917('0x62')](respondWithResult(_0x1b6a08,null))['catch'](handleError(_0x1b6a08,null));},exports['customUpdate']=function(_0x472efb,_0x2a4bd7){const _0x55b724=_0x484951;return _0x472efb[_0x55b724('0xe2')]['id']&&delete _0x472efb['body']['id'],db['ChatInteraction'][_0x55b724('0xd2')]({'where':{'id':_0x472efb['params']['id']}})['then'](handleEntityNotFound(_0x2a4bd7,null))['then'](saveUpdates(_0x472efb[_0x55b724('0xe2')],null))[_0x55b724('0x62')](respondWithResult(_0x2a4bd7,null))[_0x55b724('0xd0')](handleError(_0x2a4bd7,null));},exports[_0x484951('0x74')]=function(_0x54894c,_0x1362c1){const _0x3b8378=_0x484951;return _0x54894c[_0x3b8378('0xe2')]['id']&&delete _0x54894c[_0x3b8378('0xe2')]['id'],db['ChatInteraction'][_0x3b8378('0xd2')]({'where':{'id':_0x54894c[_0x3b8378('0x106')]['id']}})['then'](function(_0x2bc489){const _0x258d6f=_0x3b8378;if(!_0x2bc489)logger[_0x258d6f('0xea')](_0x258d6f('0x7e'),'abandon',0x194,_0x258d6f('0x12')),_0x1362c1[_0x258d6f('0xb6')](0x194);else{if(_0x2bc489[_0x258d6f('0xf3')])throw new db['Sequelize'][(_0x258d6f('0xd9'))](_0x258d6f('0x29'));}return _0x2bc489;})[_0x3b8378('0x62')](function(_0x3e0451){const _0x1208d7=_0x3b8378;if(_0x3e0451)return _0x3e0451[_0x1208d7('0x96')]({'closed':_0x54894c['body'][_0x1208d7('0xd5')],'disposition':_0x54894c[_0x1208d7('0xe2')][_0x1208d7('0x84')]})[_0x1208d7('0x62')](function(_0x48e22e){return _0x48e22e;});})[_0x3b8378('0x62')](function(){const _0xe779fa=_0x3b8378;return respondWithRpcPromise('AbandonInteraction',_0xe779fa('0x74'),_0x54894c[_0xe779fa('0xe2')],client9004);})[_0x3b8378('0x62')](respondWithResult(_0x1362c1,null))[_0x3b8378('0xd0')](handleError(_0x1362c1,null));},exports[_0x484951('0x88')]=function(_0x4b248c,_0x446380){const _0x58f68c=_0x484951;return _0x4b248c['body']['name']=_0x4b248c[_0x58f68c('0x9e')][_0x58f68c('0x17')],_0x4b248c[_0x58f68c('0xe2')][_0x58f68c('0x45')]=_0x4b248c[_0x58f68c('0x9e')][_0x58f68c('0x68')],_0x4b248c[_0x58f68c('0xe2')][_0x58f68c('0x1b')]=_0x4b248c[_0x58f68c('0x9e')]['mimetype'],db[_0x58f68c('0x7d')]['create'](_0x4b248c[_0x58f68c('0xe2')])[_0x58f68c('0x62')](respondWithResult(_0x446380,0xc9))[_0x58f68c('0xd0')](handleError(_0x446380,null));},exports[_0x484951('0xc7')]=function(_0x253d2d,_0x37c38f){const _0x40c07a=_0x484951;return db[_0x40c07a('0x36')]['findOne']({'where':{'id':_0x253d2d['params']['id']},'raw':!![]})[_0x40c07a('0x62')](handleEntityNotFound(_0x37c38f,null))[_0x40c07a('0x62')](function(_0x2f080f){const _0xc5f699=_0x40c07a;if(_0x2f080f){if(_0x2f080f['closed'])return _0x37c38f[_0xc5f699('0x44')](0x193)[_0xc5f699('0x11b')]({'status':0x193,'message':_0xc5f699('0x2f')});return db[_0xc5f699('0x7d')][_0xc5f699('0xd2')]({'where':{'id':_0x253d2d[_0xc5f699('0x8c')][_0xc5f699('0x19')]},'raw':!![]})[_0xc5f699('0x62')](handleEntityNotFound(_0x37c38f,null));}})[_0x40c07a('0x62')](function(_0x49dee6){const _0x3333fe=_0x40c07a;if(_0x49dee6)return _0x37c38f[_0x3333fe('0x4e')](path[_0x3333fe('0x63')](config[_0x3333fe('0x1d')],_0x3333fe('0x52'),_0x49dee6['basename']));})['catch'](handleError(_0x37c38f,null));},exports[_0x484951('0x90')]=function(_0x60884f,_0x5cfbda){const _0x2289bb=_0x484951;let _0xc92fb4=null,_0x56c6a4=null,_0x33ce0d=null;return _0x60884f['body']['id']&&delete _0x60884f[_0x2289bb('0xe2')]['id'],_0x60884f[_0x2289bb('0xe2')][_0x2289bb('0xd8')]&&(_0x33ce0d=path[_0x2289bb('0x63')](config[_0x2289bb('0x1d')],_0x2289bb('0xde'),util['format'](_0x2289bb('0x99'),Date[_0x2289bb('0xe6')]())),_0x60884f[_0x2289bb('0xe2')][_0x2289bb('0xaf')]=_0x33ce0d),db[_0x2289bb('0x36')][_0x2289bb('0xd2')]({'where':{'id':_0x60884f['params']['id']},'include':[{'model':db[_0x2289bb('0x42')],'as':_0x2289bb('0x27'),'include':[{'model':db['User'],'as':_0x2289bb('0x76')}]}]})[_0x2289bb('0x62')](handleEntityNotFound(_0x5cfbda,null))[_0x2289bb('0x62')](saveUpdates(_0x60884f[_0x2289bb('0xe2')],null))['then'](function(_0x45043c){const _0x5f3a96=_0x2289bb;if(_0x45043c)return _0xc92fb4=_0x45043c,db[_0x5f3a96('0x8d')][_0x5f3a96('0xd2')]({'where':{'id':_0xc92fb4['ChatWebsiteId']}});})[_0x2289bb('0x62')](function(_0x29e3aa){const _0x238d19=_0x2289bb;if(_0x29e3aa)return _0x56c6a4=_0x29e3aa,db[_0x238d19('0x1')][_0x238d19('0xd2')]({'where':{'id':_0xc92fb4[_0x238d19('0xfc')]}});})[_0x2289bb('0x62')](function(_0x3b7412){const _0x5cd309=_0x2289bb;if(_0x3b7412){if(_0x33ce0d){let _0x55585d=null;for(let _0x3b4f46=0x1;_0x3b4f46<_0xc92fb4['Messages']['length'];++_0x3b4f46){_0x55585d=_0xc92fb4[_0x5cd309('0x27')][_0x3b4f46];let _0x37d31f=_0x55585d[_0x5cd309('0xf3')]?util[_0x5cd309('0x59')](_0x5cd309('0x48'),_0x56c6a4['agentAlias'],_0x55585d[_0x5cd309('0xf3')]):_0x5cd309('0x3d');const _0x3c81d7=_0x60884f[_0x5cd309('0xe2')]['customer']||util[_0x5cd309('0x59')](_0x5cd309('0x48'),_0x5cd309('0x108'),_0x55585d['ContactId']);switch(_0x56c6a4[_0x5cd309('0xa4')]){case _0x5cd309('0xd7'):_0x37d31f=_0x55585d[_0x5cd309('0xf3')]?util[_0x5cd309('0x59')]('%s%d',_0x56c6a4[_0x5cd309('0xeb')],_0x55585d[_0x5cd309('0xf3')]):_0x5cd309('0x3d');break;case _0x5cd309('0x112'):_0x37d31f=_0x55585d[_0x5cd309('0xf3')]?_0x55585d[_0x5cd309('0x76')][_0x5cd309('0x43')]||_0x55585d['User'][_0x5cd309('0xa8')]:_0x5cd309('0x3d');break;case _0x5cd309('0x2'):_0x37d31f=_0x55585d[_0x5cd309('0xf3')]?_0x55585d[_0x5cd309('0x76')]['fullname']:_0x5cd309('0x3d');break;default:_0x37d31f=_0x55585d[_0x5cd309('0xf3')]?util[_0x5cd309('0x59')]('%s%d',_0x56c6a4[_0x5cd309('0xeb')],_0x55585d['UserId']):_0x5cd309('0x3d');}const _0x46f523=util['format'](_0x5cd309('0x5'),moment(_0x55585d[_0x5cd309('0x51')])['format']('MM/DD/YYYY\x20HH:mm:ss'),_0x55585d[_0x5cd309('0x1f')]==='in'?_0x3c81d7:_0x37d31f,_0x55585d[_0x5cd309('0xe2')]);!_0x55585d[_0x5cd309('0x94')]&&fs['appendFileSync'](_0x33ce0d,_0x46f523);}return db[_0x5cd309('0xa2')][_0x5cd309('0xd2')]({'where':{'service':!![]},'include':[{'model':db['MailServerOut'],'as':_0x5cd309('0xef'),'raw':!![]}]});}}})[_0x2289bb('0x62')](function(_0x2e17d3){const _0x5331d0=_0x2289bb;if(_0x2e17d3&&_0x2e17d3['Smtp']&&_0x60884f['body']){const _0x554731={'tls':{'rejectUnauthorized':![]}};return _0x2e17d3[_0x5331d0('0xef')][_0x5331d0('0xf')]?_0x554731[_0x5331d0('0xf')]=_0x2e17d3[_0x5331d0('0xef')][_0x5331d0('0xf')]:(_0x554731['host']=_0x2e17d3['Smtp'][_0x5331d0('0x116')],_0x554731[_0x5331d0('0x109')]=_0x2e17d3['Smtp'][_0x5331d0('0x109')],_0x554731[_0x5331d0('0xd3')]=_0x2e17d3['Smtp']['secure']),_0x2e17d3[_0x5331d0('0xef')]['authentication']&&(_0x554731[_0x5331d0('0x9d')]={'user':_0x2e17d3[_0x5331d0('0xef')][_0x5331d0('0x4a')],'pass':_0x2e17d3[_0x5331d0('0xef')]['pass']}),respondWithRpcPromise(_0x5331d0('0x10a'),_0x5331d0('0x40'),{'account':_0x554731,'message':{'from':util[_0x5331d0('0x59')](_0x5331d0('0x6f'),_0x2e17d3['name'],_0x2e17d3['email']||_0x2e17d3[_0x5331d0('0xef')][_0x5331d0('0x4a')]),'to':_0x60884f[_0x5331d0('0xe2')]['mailTranscript'],'subject':'Mail\x20Transcript','text':util[_0x5331d0('0x59')](_0x5331d0('0x8b'),_0x60884f[_0x5331d0('0xe2')][_0x5331d0('0xd8')]),'attachments':[{'path':_0x33ce0d}]}})[_0x5331d0('0x62')](function(){return _0xc92fb4;})['catch'](function(_0x57ef98){const _0x38157=_0x5331d0;console[_0x38157('0xea')](_0x57ef98);});}else return _0xc92fb4;})[_0x2289bb('0x62')](respondWithStatusCode(_0x5cfbda,0xc8))[_0x2289bb('0xd0')](handleError(_0x5cfbda,null));},exports[_0x484951('0x50')]=function(_0x546ad9,_0x3d1ea3){const _0x150fc3=_0x484951;return db[_0x150fc3('0x42')][_0x150fc3('0xd2')]({'where':{'id':_0x546ad9['params']['id']}})[_0x150fc3('0x62')](function(_0x231a1b){const _0x5a998f=_0x150fc3;if(_0x231a1b)return _0x231a1b[_0x5a998f('0x50')](_0x546ad9['body'][_0x5a998f('0xc9')],{'through':_[_0x5a998f('0x6')](_0x546ad9['body'],[_0x5a998f('0xc9'),'id'])});})[_0x150fc3('0x62')](respondWithResult(_0x3d1ea3,null))[_0x150fc3('0xd0')](handleError(_0x3d1ea3,null));},exports[_0x484951('0xa7')]=function(_0x70e140,_0x5cefc0){const _0xe8bb5b=_0x484951;let _0x417acc={'raw':![],'where':{}};const _0x19cf1f={},_0x1a992d={'count':0x0,'rows':[]};return db['ChatInteraction'][_0xe8bb5b('0xd2')]({'where':{'id':_0x70e140[_0xe8bb5b('0x106')]['id']}})[_0xe8bb5b('0x62')](handleEntityNotFound(_0x5cefc0,null))[_0xe8bb5b('0x62')](function(_0x2c68d2){const _0x5a447c=_0xe8bb5b;if(_0x2c68d2){_0x19cf1f[_0x5a447c('0xb4')]=_[_0x5a447c('0x33')](db['ChatMessage']['rawAttributes']),_0x19cf1f['query']=_[_0x5a447c('0x33')](_0x70e140[_0x5a447c('0x8c')]),_0x19cf1f[_0x5a447c('0xfa')]=_[_0x5a447c('0x1c')](_0x19cf1f[_0x5a447c('0xb4')],_0x19cf1f[_0x5a447c('0x8c')]),_0x417acc['attributes']=_[_0x5a447c('0x1c')](_0x19cf1f[_0x5a447c('0xb4')],qs[_0x5a447c('0x21')](_0x70e140[_0x5a447c('0x8c')][_0x5a447c('0x21')])),_0x417acc[_0x5a447c('0x9')]=_0x417acc[_0x5a447c('0x9')][_0x5a447c('0xc0')]?_0x417acc[_0x5a447c('0x9')]:_0x19cf1f[_0x5a447c('0xb4')];typeof _0x70e140[_0x5a447c('0x8c')]['nolimit']===_0x5a447c('0x47')&&(_0x417acc[_0x5a447c('0xec')]=qs['limit'](_0x70e140[_0x5a447c('0x8c')][_0x5a447c('0xec')]),_0x417acc[_0x5a447c('0x117')]=qs['offset'](_0x70e140[_0x5a447c('0x8c')]['offset']));_0x417acc['order']=qs[_0x5a447c('0xe4')](_0x70e140[_0x5a447c('0x8c')]['sort']),_0x417acc['where']=qs['filters'](_[_0x5a447c('0xf4')](_0x70e140[_0x5a447c('0x8c')],_0x19cf1f[_0x5a447c('0xfa')])),_0x417acc[_0x5a447c('0x10c')]['ChatInteractionId']=_0x2c68d2['id'];_0x70e140[_0x5a447c('0x8c')][_0x5a447c('0xa1')]&&(_0x417acc[_0x5a447c('0x10c')]=_[_0x5a447c('0x5d')](_0x417acc[_0x5a447c('0x10c')],{[Op['or']]:_[_0x5a447c('0x4')](_0x417acc[_0x5a447c('0x9')],function(_0x2a15fc){const _0x561e2a=_0x5a447c,_0x39c185={};return _0x39c185[_0x2a15fc]={[Op[_0x561e2a('0xfe')]]:'%'+_0x70e140['query']['filter']+'%'},_0x39c185;})}));if(_0x70e140[_0x5a447c('0x8c')][_0x5a447c('0x6c')]){const _0x47ce44=_0x70e140[_0x5a447c('0x8c')][_0x5a447c('0x6c')][_0x5a447c('0x9b')](','),_0x79c145={};_0x79c145[_0x47ce44[0x0]]={[Op[_0x5a447c('0xa5')]]:moment(_0x47ce44[0x1])[_0x5a447c('0x59')](_0x5a447c('0x4f'))},_0x417acc[_0x5a447c('0x10c')]=_[_0x5a447c('0x5d')](_0x417acc[_0x5a447c('0x10c')],_0x79c145);}return _0x417acc=_[_0x5a447c('0x5d')]({},_0x417acc,_0x70e140[_0x5a447c('0x119')]),db[_0x5a447c('0x42')]['count']({'where':_0x417acc[_0x5a447c('0x10c')]})[_0x5a447c('0x62')](function(_0x1fdf69){const _0x464555=_0x5a447c;return _0x1a992d[_0x464555('0x3')]=_0x1fdf69,_0x70e140[_0x464555('0x8c')]['includeAll']&&(_0x417acc[_0x464555('0x102')]=[{'all':!![]}]),db[_0x464555('0x42')][_0x464555('0x22')](_0x417acc);})[_0x5a447c('0x62')](function(_0x160754){return _0x1a992d['rows']=_0x160754,_0x1a992d;});}})[_0xe8bb5b('0x62')](respondWithFilteredResult(_0x5cefc0,_0x417acc))['catch'](handleError(_0x5cefc0,null));},exports[_0x484951('0xab')]=function(_0x47f8a3,_0x210cbe){const _0x27e1bf=_0x484951;let _0x557f22={'where':{}};const _0x102cf3={},_0x141d90={'count':0x0,'rows':[]};return db[_0x27e1bf('0x36')]['findOne']({'where':{'id':_0x47f8a3[_0x27e1bf('0x106')]['id']}})[_0x27e1bf('0x62')](handleEntityNotFound(_0x210cbe,null))[_0x27e1bf('0x62')](function(_0x25bc01){const _0x55d764=_0x27e1bf;if(_0x25bc01)return _0x102cf3[_0x55d764('0xb4')]=_['keys'](db['ChatMessage']['rawAttributes']),_0x102cf3['query']=_['keys'](_0x47f8a3[_0x55d764('0x8c')]),_0x102cf3[_0x55d764('0xfa')]=_[_0x55d764('0x1c')](_0x102cf3['model'],_0x102cf3[_0x55d764('0x8c')]),_0x557f22[_0x55d764('0x9')]=_[_0x55d764('0x1c')](_0x102cf3[_0x55d764('0xb4')],qs[_0x55d764('0x21')](_0x47f8a3[_0x55d764('0x8c')][_0x55d764('0x21')])),_0x557f22[_0x55d764('0x9')]=_0x557f22[_0x55d764('0x9')]['length']?_0x557f22['attributes']:_0x102cf3['model'],typeof _0x47f8a3['query'][_0x55d764('0xb9')]===_0x55d764('0x47')&&(_0x557f22[_0x55d764('0xec')]=qs[_0x55d764('0xec')](_0x47f8a3['query'][_0x55d764('0xec')]),_0x557f22[_0x55d764('0x117')]=qs[_0x55d764('0x117')](_0x47f8a3[_0x55d764('0x8c')][_0x55d764('0x117')])),_0x557f22[_0x55d764('0x9c')]=qs[_0x55d764('0xe4')](_0x47f8a3[_0x55d764('0x8c')][_0x55d764('0xe4')]),_0x557f22[_0x55d764('0x10c')]=qs[_0x55d764('0xfa')](_[_0x55d764('0xf4')](_0x47f8a3[_0x55d764('0x8c')],_0x102cf3[_0x55d764('0xfa')])),_0x557f22['where'][_0x55d764('0x49')]=_0x25bc01['id'],_0x47f8a3['query'][_0x55d764('0xa1')]&&(_0x557f22['where']=_['merge'](_0x557f22['where'],{[Op['or']]:_[_0x55d764('0x4')](_0x557f22['attributes'],function(_0x5c3300){const _0x4d15d1=_0x55d764,_0x58876f={};return _0x58876f[_0x5c3300]={[Op[_0x4d15d1('0xfe')]]:'%'+_0x47f8a3['query'][_0x4d15d1('0xa1')]+'%'},_0x58876f;})})),_0x557f22[_0x55d764('0x10c')]['secret']=![],_0x47f8a3['query']['id']&&(_0x557f22[_0x55d764('0x10c')]['id']={[Op['gt']]:_0x47f8a3[_0x55d764('0x8c')]['id']}),_0x557f22=_[_0x55d764('0x5d')]({},_0x557f22,_0x47f8a3['options']),db[_0x55d764('0x42')][_0x55d764('0x3')]({'where':_0x557f22[_0x55d764('0x10c')]})[_0x55d764('0x62')](function(_0x45feaa){const _0x2c8852=_0x55d764;return _0x141d90['count']=_0x45feaa,_0x557f22[_0x2c8852('0x102')]=[],_0x47f8a3['query']['includeAgent']&&_0x557f22['include'][_0x2c8852('0x4d')]({'model':db['User'],'as':_0x2c8852('0x76'),'attributes':['id',_0x2c8852('0xa8'),'alias']}),_0x47f8a3[_0x2c8852('0x8c')][_0x2c8852('0x13')]&&(_0x557f22[_0x2c8852('0x102')]=[{'all':!![]}]),db[_0x2c8852('0x42')][_0x2c8852('0x22')](_0x557f22);})['then'](function(_0xb639aa){const _0x8a5efc=_0x55d764;return _0x141d90[_0x8a5efc('0x46')]=_0xb639aa,_0x141d90;});})[_0x27e1bf('0x62')](respondWithFilteredResult(_0x210cbe,_0x557f22))[_0x27e1bf('0xd0')](handleError(_0x210cbe,null));},exports[_0x484951('0x39')]=function(_0x1687f6,_0x3152a9){const _0x4762f1=_0x484951;return db[_0x4762f1('0x36')][_0x4762f1('0xd2')]({'where':{'id':_0x1687f6[_0x4762f1('0x106')]['id']}})[_0x4762f1('0x62')](function(_0x46cbcf){const _0x4c3f04=_0x4762f1;if(_0x46cbcf)return _0x46cbcf['setTags'](_0x1687f6['body']['ids'],{'through':_[_0x4c3f04('0x6')](_0x1687f6[_0x4c3f04('0xe2')],['ids','id'])})[_0x4c3f04('0x62')](function(){const _0x5b6bc8=_0x4c3f04;return db['Tag'][_0x5b6bc8('0x22')]({'attributes':['id',_0x5b6bc8('0xf8'),_0x5b6bc8('0x8f')],'where':{'id':_0x1687f6['body'][_0x5b6bc8('0xc9')]}});})[_0x4c3f04('0x62')](function(_0x27e4a5){const _0x102fda=_0x4c3f04;return socket[_0x102fda('0x7c')](_0x102fda('0x3f'),{'id':Number(_0x1687f6[_0x102fda('0x106')]['id']),'tags':_0x27e4a5||[]}),{'id':Number(_0x1687f6[_0x102fda('0x106')]['id']),'tags':_0x27e4a5||[]};});})[_0x4762f1('0x62')](respondWithResult(_0x3152a9,null))[_0x4762f1('0xd0')](handleError(_0x3152a9,null));},exports[_0x484951('0x79')]=function(_0x3b54af,_0x404101){const _0xc8a77a=_0x484951;return db[_0xc8a77a('0x36')][_0xc8a77a('0xd2')]({'where':{'id':_0x3b54af[_0xc8a77a('0x106')]['id']}})['then'](handleEntityNotFound(_0x404101,null))['then'](function(_0x65f21b){const _0x174672=_0xc8a77a;if(_0x65f21b)return _0x65f21b[_0x174672('0x79')](_0x3b54af[_0x174672('0x8c')]['ids']);})[_0xc8a77a('0x62')](respondWithStatusCode(_0x404101,null))[_0xc8a77a('0xd0')](handleError(_0x404101,null));},exports['download']=function(_0xb5a102,_0x46d04c){const _0x10c229=_0x484951,_0x33d11b=moment()['unix']()[_0x10c229('0xc3')](),_0x472d42=path[_0x10c229('0x63')](config[_0x10c229('0x1d')],_0x10c229('0x23'),_0x10c229('0x78'),_0x10c229('0x10')),_0x2e5d65=path[_0x10c229('0x63')](config[_0x10c229('0x1d')],_0x10c229('0x23'),_0x10c229('0x78'),_0x10c229('0x58')),_0x35a73e=path['join'](_0x472d42,_0x33d11b),_0x4b4793=util[_0x10c229('0x59')](_0x10c229('0x67'),_0xb5a102[_0x10c229('0x106')]['id'],_0x33d11b),_0x1399f0=path[_0x10c229('0x63')](_0x472d42,_0x4b4793),_0x4b7d97=[];_0x4b7d97[_0x10c229('0x4d')]({'model':db[_0x10c229('0x76')],'as':'User','attributes':['id',_0x10c229('0xa8')],'raw':!![]}),_0x4b7d97[_0x10c229('0x4d')]({'model':db['CmContact'],'as':_0x10c229('0x26'),'attributes':['id',_0x10c229('0x5f'),_0x10c229('0x11d')],'raw':!![]});_0xb5a102['query'][_0x10c229('0x58')]&&_0x4b7d97[_0x10c229('0x4d')]({'model':db[_0x10c229('0x7d')],'as':_0x10c229('0x7d'),'raw':!![]});const _0x3e4cef=[{'model':db[_0x10c229('0x42')],'as':_0x10c229('0x27'),'attributes':['id',_0x10c229('0xe2'),_0x10c229('0x51'),_0x10c229('0x1f'),'secret',_0x10c229('0xb')],'include':_0x4b7d97}];return _0x3e4cef[_0x10c229('0x4d')]({'model':db[_0x10c229('0x8d')],'as':_0x10c229('0x66'),'attributes':['id','name']}),_0x3e4cef['push']({'model':db['User'],'as':_0x10c229('0x1e'),'attributes':['id',_0x10c229('0xa8')]}),db[_0x10c229('0x36')][_0x10c229('0xd2')]({'where':{'id':_0xb5a102[_0x10c229('0x106')]['id']},'include':_0x3e4cef})[_0x10c229('0x62')](handleEntityNotFound(_0x46d04c,null))[_0x10c229('0x62')](function(_0x4737c6){const _0x21416f=_0x10c229;if(_0x4737c6){const _0x58de76=_0x4737c6['get']({'plain':!![]});fs['mkdirSync'](_0x35a73e);const _0x29c8dd={'format':'A4','border':_0x21416f('0xac'),'header':{'height':_0x21416f('0x75'),'contents':{'first':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
Interaction\x20Transcript
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}},'footer':{'height':_0x21416f('0x11'),'contents':{'default':util[_0x21416f('0x59')](_0x21416f('0x97'),util[_0x21416f('0x59')]('%s\x20#%d',_0x21416f('0xfd'),_0x58de76['id']),moment()[_0x21416f('0x59')](_0x21416f('0x10e'))['toString']())}}},_0x328871={'channel':_0x21416f('0xfd'),'account':_0x58de76[_0x21416f('0x66')][_0x21416f('0xf8')],'agent':_0x58de76[_0x21416f('0x1e')]?_0x58de76['Owner'][_0x21416f('0xa8')]:_0x21416f('0x100'),'createdAt':moment(_0x58de76[_0x21416f('0x51')])['format']('YYYY-MM-DD\x20HH:mm:ss')[_0x21416f('0xc3')](),'closedAt':_0x58de76[_0x21416f('0xd5')]?moment(_0x58de76[_0x21416f('0x113')])[_0x21416f('0x59')](_0x21416f('0x4f'))[_0x21416f('0xc3')]():'','disposition':_0x58de76[_0x21416f('0x84')],'chatInfo':{'browser':_0x58de76[_0x21416f('0x71')],'os':_0x58de76['osName'],'referer':_0x58de76['referer'],'customerIp':_0x58de76['customerIp'],'customerPort':_0x58de76[_0x21416f('0xe0')]?_0x58de76['customerPort']:_0x21416f('0x100')},'messages':_(_0x58de76[_0x21416f('0x27')])['tail']()['filter']({'secret':![]})[_0x21416f('0x4')](function(_0xd76915){const _0x52a230=_0x21416f;if(_0xd76915['Attachment']){const _0x3782ca=path[_0x52a230('0x63')](_0x2e5d65,_0xd76915[_0x52a230('0x7d')][_0x52a230('0x45')]);fs[_0x52a230('0x65')](_0x3782ca)&&fs[_0x52a230('0xcf')](_0x3782ca)['pipe'](fs[_0x52a230('0x2b')](path[_0x52a230('0x63')](_0x35a73e,_0xd76915['Attachment']['basename'])));}return{'date':moment(_0xd76915[_0x52a230('0x51')])[_0x52a230('0x59')](_0x52a230('0x4f'))[_0x52a230('0xc3')](),'sender':_0xd76915[_0x52a230('0x1f')]===_0x52a230('0x11c')?_0xd76915[_0x52a230('0x76')]?_0xd76915['User']['fullname']:_0x52a230('0x3d'):_0xd76915[_0x52a230('0x26')][_0x52a230('0x5f')]+(_0xd76915[_0x52a230('0x26')][_0x52a230('0x11d')]?'\x20'+_0xd76915[_0x52a230('0x26')][_0x52a230('0x11d')]:''),'body':_0xd76915[_0x52a230('0x7d')]?_0xd76915[_0x52a230('0x7d')]['basename']:_0xd76915['body'],'direction':_0xd76915['direction']===_0x52a230('0x11c')?'A':'C','secret':_0xd76915[_0x52a230('0x94')],'read':_0xd76915[_0x52a230('0xb')],'attachment':_0xd76915[_0x52a230('0x7d')]};})[_0x21416f('0x41')]()};return ejs[_0x21416f('0x31')](path[_0x21416f('0x63')](config['root'],'server',_0x21416f('0xc6'),_0x21416f('0x103')),{'interaction':_0x328871})['then'](function(_0x27f2ac){return new Promise(function(_0x230df3,_0x1e9250){const _0x3b5caf=a66_0x3bf8;pdf[_0x3b5caf('0xe')](_0x27f2ac,_0x29c8dd)[_0x3b5caf('0x34')](path[_0x3b5caf('0x63')](_0x35a73e,_0x3b5caf('0xbc')+_0x58de76['id']+'-'+_0x33d11b+_0x3b5caf('0x6d')),function(_0x5ab13b,_0x15aff1){if(_0x5ab13b)return _0x1e9250(_0x5ab13b);_0x230df3(_0x15aff1);});});})[_0x21416f('0x62')](function(){const _0x8654e7=_0x21416f;return new Promise(function(_0x358a05,_0xe114f){zipdir(_0x35a73e,{'saveTo':_0x1399f0},function(_0x246d19,_0x35b4d1){if(_0x246d19)return _0xe114f(_0x246d19);return _0x358a05(_0x35b4d1);});})[_0x8654e7('0x62')](function(){return new Promise(function(_0x4a3fcf,_0x545405){rimraf(_0x35a73e,function(_0x43bbcc){if(_0x43bbcc)_0x545405(_0x43bbcc);return _0x4a3fcf();});});})[_0x8654e7('0x62')](function(){const _0x1d01cd=_0x8654e7;return _0x46d04c[_0x1d01cd('0x4e')](_0x1399f0,_0x4b4793,function(_0x56e03c){const _0x489881=_0x1d01cd;_0x56e03c?console[_0x489881('0x55')]('err',_0x56e03c):fs[_0x489881('0x35')](_0x1399f0);});});});}else return _0x46d04c[_0x21416f('0xb6')](0xc8);})[_0x10c229('0xd0')](handleError(_0x46d04c,null));}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.events.js b/server/api/chatInteraction/chatInteraction.events.js index 1e5ce2d..a506b22 100644 --- a/server/api/chatInteraction/chatInteraction.events.js +++ b/server/api/chatInteraction/chatInteraction.events.js @@ -1 +1 @@ -const a67_0xa452=['unreadMessages','events','undefined','map','Users','getUsers','addHook','then','emit','findAll','ChatInteraction','update','length','catch','setMaxListeners','exports','../../mysqldb'];(function(_0x2cb35c,_0xa45274){const _0x159688=function(_0x10ffd9){while(--_0x10ffd9){_0x2cb35c['push'](_0x2cb35c['shift']());}};_0x159688(++_0xa45274);}(a67_0xa452,0x113));const a67_0x1596=function(_0x2cb35c,_0xa45274){_0x2cb35c=_0x2cb35c-0x0;let _0x159688=a67_0xa452[_0x2cb35c];return _0x159688;};const _0x195c63=a67_0x1596;'use strict';const EventEmitter=require(_0x195c63('0xf')),ChatInteraction=require('../../mysqldb')['db'][_0x195c63('0x7')],ChatMessage=require(_0x195c63('0xd'))['db']['ChatMessage'],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[_0x195c63('0xb')](0x0);const events={'afterCreate':'save','afterUpdate':_0x195c63('0x8'),'afterDestroy':'remove'};function emitEvent(_0x10ffd9){return function(_0x433a63){const _0x359670=a67_0x1596;_0x433a63[_0x359670('0x2')]({'attributes':['id'],'raw':!![]})[_0x359670('0x4')](function(_0x212d6f){const _0x295f9e=_0x359670;return _0x433a63['setDataValue'](_0x295f9e('0x1'),_0x212d6f[_0x295f9e('0x0')](function(_0x2295b0){return{'id':_0x2295b0['id']};})),ChatMessage[_0x295f9e('0x6')]({'where':{'ChatInteractionId':_0x433a63['id'],'direction':'in','read':![]},'raw':!![]});})[_0x359670('0x4')](function(_0x54fe85){const _0x300c83=_0x359670;_0x433a63['setDataValue'](_0x300c83('0xe'),_0x54fe85[_0x300c83('0x9')]),ChatInteractionEvents['emit'](_0x10ffd9+':'+_0x433a63['id'],_0x433a63),ChatInteractionEvents[_0x300c83('0x5')](_0x10ffd9,_0x433a63);})[_0x359670('0xa')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x195c63('0x10')){const event=events[e];ChatInteraction[_0x195c63('0x3')](e,emitEvent(event));}}module[_0x195c63('0xc')]=ChatInteractionEvents; \ No newline at end of file +const a67_0x22d2=['unreadMessages','save','setDataValue','update','Users','getUsers','remove','emit','length','ChatInteraction','map','../../mysqldb','events'];(function(_0x368d94,_0x22d27e){const _0x5b28bc=function(_0x3d40da){while(--_0x3d40da){_0x368d94['push'](_0x368d94['shift']());}};_0x5b28bc(++_0x22d27e);}(a67_0x22d2,0xe5));const a67_0x5b28=function(_0x368d94,_0x22d27e){_0x368d94=_0x368d94-0x0;let _0x5b28bc=a67_0x22d2[_0x368d94];return _0x5b28bc;};const _0x3bc464=a67_0x5b28;'use strict';const EventEmitter=require(_0x3bc464('0x4')),ChatInteraction=require(_0x3bc464('0x3'))['db'][_0x3bc464('0x1')],ChatMessage=require(_0x3bc464('0x3'))['db']['ChatMessage'],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x3bc464('0x6'),'afterUpdate':_0x3bc464('0x8'),'afterDestroy':_0x3bc464('0xb')};function emitEvent(_0x3d40da){return function(_0x26b900){const _0x11c4fc=a67_0x5b28;_0x26b900[_0x11c4fc('0xa')]({'attributes':['id'],'raw':!![]})['then'](function(_0x2d0f0b){const _0x54280e=_0x11c4fc;return _0x26b900[_0x54280e('0x7')](_0x54280e('0x9'),_0x2d0f0b[_0x54280e('0x2')](function(_0x237853){return{'id':_0x237853['id']};})),ChatMessage['findAll']({'where':{'ChatInteractionId':_0x26b900['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x22dcff){const _0x2238cf=_0x11c4fc;_0x26b900[_0x2238cf('0x7')](_0x2238cf('0x5'),_0x22dcff[_0x2238cf('0x0')]),ChatInteractionEvents[_0x2238cf('0xc')](_0x3d40da+':'+_0x26b900['id'],_0x26b900),ChatInteractionEvents[_0x2238cf('0xc')](_0x3d40da,_0x26b900);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatInteraction['addHook'](e,emitEvent(event));}}module['exports']=ChatInteractionEvents; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.model.js b/server/api/chatInteraction/chatInteraction.model.js index 6229132..d185548 100644 --- a/server/api/chatInteraction/chatInteraction.model.js +++ b/server/api/chatInteraction/chatInteraction.model.js @@ -1 +1 @@ -const a68_0x2d34=['closedAt','./chatInteraction.attributes','changed','utf8mb4_unicode_ci','moment','chat_interactions','YYYY-MM-DD\x20HH:mm:ss','exports','ChatInteraction','format'];(function(_0x521300,_0x2d3413){const _0x6232e5=function(_0x50580c){while(--_0x50580c){_0x521300['push'](_0x521300['shift']());}};_0x6232e5(++_0x2d3413);}(a68_0x2d34,0x151));const a68_0x6232=function(_0x521300,_0x2d3413){_0x521300=_0x521300-0x0;let _0x6232e5=a68_0x2d34[_0x521300];return _0x6232e5;};const _0x540fd7=a68_0x6232;'use strict';const moment=require(_0x540fd7('0x7')),attributes=require(_0x540fd7('0x4'));module[_0x540fd7('0x0')]=function(_0x50580c){const _0x553107=_0x540fd7,_0x2f5364=_0x50580c['define'](_0x553107('0x1'),attributes,{'tableName':_0x553107('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x3a4c4c){const _0x16991d=_0x553107;_0x3a4c4c[_0x16991d('0x5')]('closed')&&(_0x3a4c4c[_0x16991d('0x3')]=moment()[_0x16991d('0x2')](_0x16991d('0x9')));}},'charset':'utf8mb4','collate':_0x553107('0x6')});return _0x2f5364;}; \ No newline at end of file +const a68_0x37a2=['ChatInteraction','define','moment','utf8mb4','YYYY-MM-DD\x20HH:mm:ss','utf8mb4_unicode_ci','./chatInteraction.attributes','closedAt','exports'];(function(_0x5f162a,_0x37a2e4){const _0x4673b4=function(_0x3c28a1){while(--_0x3c28a1){_0x5f162a['push'](_0x5f162a['shift']());}};_0x4673b4(++_0x37a2e4);}(a68_0x37a2,0x115));const a68_0x4673=function(_0x5f162a,_0x37a2e4){_0x5f162a=_0x5f162a-0x0;let _0x4673b4=a68_0x37a2[_0x5f162a];return _0x4673b4;};const _0x4712cd=a68_0x4673;'use strict';const moment=require(_0x4712cd('0x4')),attributes=require(_0x4712cd('0x8'));module[_0x4712cd('0x1')]=function(_0x3c28a1){const _0x12e327=_0x4712cd,_0x2436fd=_0x3c28a1[_0x12e327('0x3')](_0x12e327('0x2'),attributes,{'tableName':'chat_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x23030b){const _0x80ae4d=_0x12e327;_0x23030b['changed']('closed')&&(_0x23030b[_0x80ae4d('0x0')]=moment()['format'](_0x80ae4d('0x6')));}},'charset':_0x12e327('0x5'),'collate':_0x12e327('0x7')});return _0x2436fd;}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.rpc.js b/server/api/chatInteraction/chatInteraction.rpc.js index de9b885..063c89a 100644 --- a/server/api/chatInteraction/chatInteraction.rpc.js +++ b/server/api/chatInteraction/chatInteraction.rpc.js @@ -1 +1 @@ -const a69_0x2793=['where','addTags','info','stringify','rpc','omit','error','findOne','attributes','raw','register','options','../../mysqldb','body','ChatInteraction','../../config/logger','./chatInteraction.socket','ids','../../rediscache','then','catch','AddTags','UpdateChatInteraction','debug','message'];(function(_0x4dfed1,_0x2793b9){const _0x5e8bff=function(_0x3dbc1a){while(--_0x3dbc1a){_0x4dfed1['push'](_0x4dfed1['shift']());}};_0x5e8bff(++_0x2793b9);}(a69_0x2793,0x1db));const a69_0x5e8b=function(_0x4dfed1,_0x2793b9){_0x4dfed1=_0x4dfed1-0x0;let _0x5e8bff=a69_0x2793[_0x4dfed1];return _0x5e8bff;};const _0x29500a=a69_0x5e8b;'use strict';const _=require('lodash'),db=require(_0x29500a('0xc'))['db'],logger=require(_0x29500a('0xf'))(_0x29500a('0x4')),{getSocket}=require(_0x29500a('0x12')),socket=getSocket();require(_0x29500a('0x10'))[_0x29500a('0xa')](socket),exports[_0x29500a('0x16')]=function(_0x3dbc1a){const _0x1bd068=this;return new Promise(function(_0x3316a1,_0x57a1ad){const _0x148188=a69_0x5e8b;return db[_0x148188('0xe')]['update'](_0x3dbc1a[_0x148188('0xd')],{'raw':_0x3dbc1a[_0x148188('0xb')]?_0x3dbc1a[_0x148188('0xb')][_0x148188('0x9')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3dbc1a[_0x148188('0xb')]?_0x3dbc1a[_0x148188('0xb')]['where']||null:null,'attributes':_0x3dbc1a['options']?_0x3dbc1a[_0x148188('0xb')][_0x148188('0x8')]||null:null,'limit':_0x3dbc1a[_0x148188('0xb')]?_0x3dbc1a[_0x148188('0xb')]['limit']||null:null})[_0x148188('0x13')](function(_0x4a215c){const _0xa81f6f=_0x148188;logger[_0xa81f6f('0x2')](_0xa81f6f('0x16'),_0x3dbc1a),logger[_0xa81f6f('0x17')](_0xa81f6f('0x16'),_0x3dbc1a,JSON[_0xa81f6f('0x3')](_0x4a215c)),_0x3316a1(_0x4a215c);})[_0x148188('0x14')](function(_0x42ccf5){const _0x11163e=_0x148188;logger[_0x11163e('0x6')](_0x11163e('0x16'),_0x42ccf5[_0x11163e('0x18')],_0x3dbc1a),_0x57a1ad(_0x1bd068[_0x11163e('0x6')](0x1f4,_0x42ccf5[_0x11163e('0x18')]));});});},exports['AddTagsToChatInteraction']=function(_0x3a4918){const _0x55dbd3=this;return new Promise(function(_0x315ff8,_0x3c26e8){const _0x8dbb67=a69_0x5e8b;return db[_0x8dbb67('0xe')][_0x8dbb67('0x7')]({'where':_0x3a4918[_0x8dbb67('0xb')]?_0x3a4918[_0x8dbb67('0xb')][_0x8dbb67('0x0')]||null:null})[_0x8dbb67('0x13')](function(_0x4aee5b){const _0x4b27a0=_0x8dbb67;if(_0x4aee5b)return _0x4aee5b[_0x4b27a0('0x1')](_0x3a4918[_0x4b27a0('0xd')][_0x4b27a0('0x11')],{'through':_[_0x4b27a0('0x5')](_0x3a4918[_0x4b27a0('0xd')],['ids','id'])});})[_0x8dbb67('0x13')](function([_0x19d743]){const _0x4fe873=_0x8dbb67;logger[_0x4fe873('0x2')](_0x4fe873('0x15'),_0x3a4918),logger[_0x4fe873('0x17')](_0x4fe873('0x15'),_0x3a4918,JSON[_0x4fe873('0x3')](_0x19d743)),_0x315ff8(_0x19d743);})['catch'](function(_0x437b73){const _0x5801d0=_0x8dbb67;logger['error'](_0x5801d0('0x15'),_0x437b73[_0x5801d0('0x18')],_0x3a4918),_0x3c26e8(_0x55dbd3[_0x5801d0('0x6')](0x1f4,_0x437b73[_0x5801d0('0x18')]));});});}; \ No newline at end of file +const a69_0x224e=['attributes','omit','stringify','../../rediscache','options','where','debug','./chatInteraction.socket','ChatInteraction','info','ids','lodash','raw','then','catch','error','../../mysqldb','message','AddTagsToChatInteraction','limit','AddTags','UpdateChatInteraction','rpc','addTags','body'];(function(_0xfc7886,_0x224e41){const _0x14411e=function(_0x257502){while(--_0x257502){_0xfc7886['push'](_0xfc7886['shift']());}};_0x14411e(++_0x224e41);}(a69_0x224e,0x123));const a69_0x1441=function(_0xfc7886,_0x224e41){_0xfc7886=_0xfc7886-0x0;let _0x14411e=a69_0x224e[_0xfc7886];return _0x14411e;};const _0x16ef2f=a69_0x1441;'use strict';const _=require(_0x16ef2f('0x14')),db=require(_0x16ef2f('0x0'))['db'],logger=require('../../config/logger')(_0x16ef2f('0x6')),{getSocket}=require(_0x16ef2f('0xc')),socket=getSocket();require(_0x16ef2f('0x10'))['register'](socket),exports[_0x16ef2f('0x5')]=function(_0x257502){const _0x4d11ac=this;return new Promise(function(_0x5b2db7,_0x2a12b8){const _0x4f2463=a69_0x1441;return db[_0x4f2463('0x11')]['update'](_0x257502['body'],{'raw':_0x257502[_0x4f2463('0xd')]?_0x257502[_0x4f2463('0xd')][_0x4f2463('0x15')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x257502[_0x4f2463('0xd')]?_0x257502[_0x4f2463('0xd')][_0x4f2463('0xe')]||null:null,'attributes':_0x257502[_0x4f2463('0xd')]?_0x257502[_0x4f2463('0xd')][_0x4f2463('0x9')]||null:null,'limit':_0x257502[_0x4f2463('0xd')]?_0x257502['options'][_0x4f2463('0x3')]||null:null})[_0x4f2463('0x16')](function(_0x3bacad){const _0x2ef766=_0x4f2463;logger[_0x2ef766('0x12')](_0x2ef766('0x5'),_0x257502),logger[_0x2ef766('0xf')](_0x2ef766('0x5'),_0x257502,JSON[_0x2ef766('0xb')](_0x3bacad)),_0x5b2db7(_0x3bacad);})[_0x4f2463('0x17')](function(_0x178c35){const _0x3f648f=_0x4f2463;logger[_0x3f648f('0x18')]('UpdateChatInteraction',_0x178c35['message'],_0x257502),_0x2a12b8(_0x4d11ac[_0x3f648f('0x18')](0x1f4,_0x178c35['message']));});});},exports[_0x16ef2f('0x2')]=function(_0x165dfb){const _0x32b3aa=this;return new Promise(function(_0x2a582a,_0x311cae){const _0x3a512a=a69_0x1441;return db[_0x3a512a('0x11')]['findOne']({'where':_0x165dfb[_0x3a512a('0xd')]?_0x165dfb[_0x3a512a('0xd')][_0x3a512a('0xe')]||null:null})[_0x3a512a('0x16')](function(_0x2efc36){const _0x247558=_0x3a512a;if(_0x2efc36)return _0x2efc36[_0x247558('0x7')](_0x165dfb[_0x247558('0x8')][_0x247558('0x13')],{'through':_[_0x247558('0xa')](_0x165dfb[_0x247558('0x8')],[_0x247558('0x13'),'id'])});})[_0x3a512a('0x16')](function([_0xbedad6]){const _0xa43112=_0x3a512a;logger[_0xa43112('0x12')](_0xa43112('0x4'),_0x165dfb),logger[_0xa43112('0xf')](_0xa43112('0x4'),_0x165dfb,JSON[_0xa43112('0xb')](_0xbedad6)),_0x2a582a(_0xbedad6);})[_0x3a512a('0x17')](function(_0xc5af26){const _0x45ab94=_0x3a512a;logger['error'](_0x45ab94('0x4'),_0xc5af26[_0x45ab94('0x1')],_0x165dfb),_0x311cae(_0x32b3aa[_0x45ab94('0x18')](0x1f4,_0xc5af26['message']));});});}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.socket.js b/server/api/chatInteraction/chatInteraction.socket.js index 155fca4..80146ea 100644 --- a/server/api/chatInteraction/chatInteraction.socket.js +++ b/server/api/chatInteraction/chatInteraction.socket.js @@ -1 +1 @@ -const a70_0x262f=['update','./chatInteraction.events','chatInteraction:','emit','length','remove'];(function(_0x2273cd,_0x262f7f){const _0x13497f=function(_0xb2a9){while(--_0xb2a9){_0x2273cd['push'](_0x2273cd['shift']());}};_0x13497f(++_0x262f7f);}(a70_0x262f,0xe8));const a70_0x1349=function(_0x2273cd,_0x262f7f){_0x2273cd=_0x2273cd-0x0;let _0x13497f=a70_0x262f[_0x2273cd];return _0x13497f;};const _0xfaab01=a70_0x1349;'use strict';const ChatInteractionEvents=require(_0xfaab01('0x3')),events=['save',_0xfaab01('0x1'),_0xfaab01('0x2')];function createListener(_0xb2a9,_0x5a079b){return function(_0x2a45f3){const _0x309f15=a70_0x1349;_0x5a079b[_0x309f15('0x5')](_0xb2a9,_0x2a45f3);};}exports['register']=function(_0x28f81e){const _0x4dd731=_0xfaab01;for(let _0x4f728e=0x0,_0x99aff0=events[_0x4dd731('0x0')];_0x4f728e<_0x99aff0;_0x4f728e++){const _0x1c6ae6=events[_0x4f728e],_0xe1b139=createListener(_0x4dd731('0x4')+_0x1c6ae6,_0x28f81e);ChatInteractionEvents['on'](_0x1c6ae6,_0xe1b139);}}; \ No newline at end of file +const a70_0x9333=['chatInteraction:','./chatInteraction.events','length','emit','register','save','update'];(function(_0x1a1888,_0x933395){const _0x8b562f=function(_0x90b731){while(--_0x90b731){_0x1a1888['push'](_0x1a1888['shift']());}};_0x8b562f(++_0x933395);}(a70_0x9333,0x9d));const a70_0x8b56=function(_0x1a1888,_0x933395){_0x1a1888=_0x1a1888-0x0;let _0x8b562f=a70_0x9333[_0x1a1888];return _0x8b562f;};const _0x24d92d=a70_0x8b56;'use strict';const ChatInteractionEvents=require(_0x24d92d('0x5')),events=[_0x24d92d('0x2'),'remove',_0x24d92d('0x3')];function createListener(_0x90b731,_0x27fc8b){return function(_0x3d006b){const _0x15273e=a70_0x8b56;_0x27fc8b[_0x15273e('0x0')](_0x90b731,_0x3d006b);};}exports[_0x24d92d('0x1')]=function(_0x55e3ea){const _0x58f42f=_0x24d92d;for(let _0x14774f=0x0,_0x257e39=events[_0x58f42f('0x6')];_0x14774f<_0x257e39;_0x14774f++){const _0x535816=events[_0x14774f],_0x3a0ec7=createListener(_0x58f42f('0x4')+_0x535816,_0x55e3ea);ChatInteractionEvents['on'](_0x535816,_0x3a0ec7);}}; \ No newline at end of file diff --git a/server/api/chatInteraction/index.js b/server/api/chatInteraction/index.js index eba9960..5d92704 100644 --- a/server/api/chatInteraction/index.js +++ b/server/api/chatInteraction/index.js @@ -1 +1 @@ -const a71_0x1e66=['delete','getMessages','../../config/environment','/:id/my_messages','download','attachmentUpload','close','post','/:id/abandon','/describe','get','attachmentDownload','addMessage','multer','put','express','exports','/:id/close','originalname','server/files/attachments/','describe','addTags','destroy','createVidaooSession','../../components/auth/service','%s-%s','update','format','/:id/messages','isChatInteractionAuthorized','replace','chat','Router','/:id/custom_update','diskStorage','../../components/interaction/service','/:id/vidaoo','/:id/download','root','removeTags','show','index','customUpdate','single','/:id','isAuthenticated','/:id/tags','tracked','abandon','file','join','/:id/attachment_download'];(function(_0x112e3e,_0x1e66c1){const _0x53ed0a=function(_0x21a48a){while(--_0x21a48a){_0x112e3e['push'](_0x112e3e['shift']());}};_0x53ed0a(++_0x1e66c1);}(a71_0x1e66,0x9d));const a71_0x53ed=function(_0x112e3e,_0x1e66c1){_0x112e3e=_0x112e3e-0x0;let _0x53ed0a=a71_0x1e66[_0x112e3e];return _0x53ed0a;};const _0x104173=a71_0x53ed;'use strict';const multer=require(_0x104173('0xc')),util=require('util'),path=require('path'),express=require(_0x104173('0xe')),router=express[_0x104173('0x1f')](),auth=require(_0x104173('0x17')),interaction=require(_0x104173('0x22')),config=require(_0x104173('0x1')),controller=require('./chatInteraction.controller');router['get']('/',auth[_0x104173('0x2c')](),controller[_0x104173('0x28')]),router[_0x104173('0x9')](_0x104173('0x8'),auth[_0x104173('0x2c')](),controller[_0x104173('0x13')]),router[_0x104173('0x9')](_0x104173('0x2b'),auth[_0x104173('0x1c')](),controller[_0x104173('0x27')]),router['get'](_0x104173('0x32'),auth[_0x104173('0x1c')](),controller[_0x104173('0xa')]),router[_0x104173('0x9')](_0x104173('0x1b'),auth['isAuthenticated'](),controller[_0x104173('0x0')]),router[_0x104173('0x9')](_0x104173('0x2'),auth['isChatInteractionAuthorized'](),controller['getMyMessages']),router[_0x104173('0x9')](_0x104173('0x24'),auth[_0x104173('0x2c')](),controller[_0x104173('0x3')]),router['post']('/',auth[_0x104173('0x2c')](),controller['create']),router[_0x104173('0x6')](_0x104173('0x23'),auth['isAuthenticated'](),controller[_0x104173('0x16')]);const upload=multer({'storage':multer[_0x104173('0x21')]({'destination':function(_0x21a48a,_0x307ba3,_0x6e097f){const _0x4c1de4=_0x104173;_0x6e097f(null,path[_0x4c1de4('0x31')](config[_0x4c1de4('0x25')],_0x4c1de4('0x12')));},'filename':function(_0x3e048a,_0x5c7df1,_0x2a7ce6){const _0x5c0346=_0x104173;_0x2a7ce6(null,util[_0x5c0346('0x1a')](_0x5c0346('0x18'),Date['now'](),_0x5c7df1[_0x5c0346('0x11')][_0x5c0346('0x1d')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x104173('0x6')]('/:id/attachment_upload',upload[_0x104173('0x2a')](_0x104173('0x30')),controller[_0x104173('0x4')]),router[_0x104173('0x6')]('/:id/messages',auth['isChatInteractionAuthorized'](),controller[_0x104173('0xb')]),router[_0x104173('0x6')]('/:id/tags',auth['isAuthenticated'](),interaction['tracked'](_0x104173('0x1e'),'chatinteraction:addtags'),controller[_0x104173('0x14')]),router[_0x104173('0xd')](_0x104173('0x2b'),auth[_0x104173('0x2c')](),interaction[_0x104173('0x2e')](_0x104173('0x1e'),'chatinteraction:update'),controller[_0x104173('0x19')]),router[_0x104173('0xd')](_0x104173('0x20'),controller[_0x104173('0x29')]),router['put'](_0x104173('0x7'),auth['isChatInteractionAuthorized'](),controller[_0x104173('0x2f')]),router[_0x104173('0xd')](_0x104173('0x10'),controller[_0x104173('0x5')]),router[_0x104173('0x33')](_0x104173('0x2b'),auth[_0x104173('0x2c')](),interaction[_0x104173('0x2e')](_0x104173('0x1e'),'chatinteraction:destroy'),controller[_0x104173('0x15')]),router[_0x104173('0x33')](_0x104173('0x2d'),auth[_0x104173('0x2c')](),controller[_0x104173('0x26')]),module[_0x104173('0xf')]=router; \ No newline at end of file +const a71_0x1497=['/:id/tags','download','put','/describe','abandon','post','util','isChatInteractionAuthorized','/:id','path','tracked','addTags','customUpdate','./chatInteraction.controller','originalname','/:id/vidaoo','format','attachmentUpload','diskStorage','update','../../components/auth/service','%s-%s','chatinteraction:addtags','/:id/attachment_download','/:id/messages','delete','attachmentDownload','/:id/my_messages','single','root','/:id/close','createVidaooSession','../../components/interaction/service','addMessage','chatinteraction:destroy','destroy','file','get','now','getMyMessages','show','chatinteraction:update','join','chat','isAuthenticated','/:id/download'];(function(_0x183675,_0x149735){const _0x502401=function(_0x19cafd){while(--_0x19cafd){_0x183675['push'](_0x183675['shift']());}};_0x502401(++_0x149735);}(a71_0x1497,0x18f));const a71_0x5024=function(_0x183675,_0x149735){_0x183675=_0x183675-0x0;let _0x502401=a71_0x1497[_0x183675];return _0x502401;};const _0x208944=a71_0x5024;'use strict';const multer=require('multer'),util=require(_0x208944('0x15')),path=require(_0x208944('0x18')),express=require('express'),router=express['Router'](),auth=require(_0x208944('0x23')),interaction=require(_0x208944('0x1')),config=require('../../config/environment'),controller=require(_0x208944('0x1c'));router[_0x208944('0x6')]('/',auth[_0x208944('0xd')](),controller['index']),router['get'](_0x208944('0x12'),auth[_0x208944('0xd')](),controller['describe']),router[_0x208944('0x6')](_0x208944('0x17'),auth['isChatInteractionAuthorized'](),controller[_0x208944('0x9')]),router['get'](_0x208944('0x26'),auth[_0x208944('0x16')](),controller[_0x208944('0x29')]),router[_0x208944('0x6')](_0x208944('0x27'),auth['isAuthenticated'](),controller['getMessages']),router[_0x208944('0x6')](_0x208944('0x2a'),auth[_0x208944('0x16')](),controller[_0x208944('0x8')]),router[_0x208944('0x6')](_0x208944('0xe'),auth['isAuthenticated'](),controller[_0x208944('0x10')]),router[_0x208944('0x14')]('/',auth[_0x208944('0xd')](),controller['create']),router['post'](_0x208944('0x1e'),auth['isAuthenticated'](),controller[_0x208944('0x0')]);const upload=multer({'storage':multer[_0x208944('0x21')]({'destination':function(_0x19cafd,_0x2ee3a2,_0xe3232a){const _0x5e3ac9=_0x208944;_0xe3232a(null,path[_0x5e3ac9('0xb')](config[_0x5e3ac9('0x2c')],'server/files/attachments/'));},'filename':function(_0x463f48,_0xf9f884,_0x42732a){const _0x2dd0f8=_0x208944;_0x42732a(null,util[_0x2dd0f8('0x1f')](_0x2dd0f8('0x24'),Date[_0x2dd0f8('0x7')](),_0xf9f884[_0x2dd0f8('0x1d')]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x208944('0x14')]('/:id/attachment_upload',upload[_0x208944('0x2b')](_0x208944('0x5')),controller[_0x208944('0x20')]),router['post']('/:id/messages',auth[_0x208944('0x16')](),controller[_0x208944('0x2')]),router[_0x208944('0x14')](_0x208944('0xf'),auth['isAuthenticated'](),interaction[_0x208944('0x19')](_0x208944('0xc'),_0x208944('0x25')),controller[_0x208944('0x1a')]),router['put'](_0x208944('0x17'),auth[_0x208944('0xd')](),interaction['tracked']('chat',_0x208944('0xa')),controller[_0x208944('0x22')]),router[_0x208944('0x11')]('/:id/custom_update',controller[_0x208944('0x1b')]),router[_0x208944('0x11')]('/:id/abandon',auth[_0x208944('0x16')](),controller[_0x208944('0x13')]),router[_0x208944('0x11')](_0x208944('0x2d'),controller['close']),router[_0x208944('0x28')](_0x208944('0x17'),auth['isAuthenticated'](),interaction[_0x208944('0x19')]('chat',_0x208944('0x3')),controller[_0x208944('0x4')]),router['delete']('/:id/tags',auth[_0x208944('0xd')](),controller['removeTags']),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.attributes.js b/server/api/chatInternalMessage/chatInternalMessage.attributes.js index 7039473..449889f 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.attributes.js +++ b/server/api/chatInternalMessage/chatInternalMessage.attributes.js @@ -1 +1 @@ -const a72_0x504f=['INTEGER','exports','sequelize','BOOLEAN','TEXT','medium'];(function(_0x53e8c0,_0x504fc8){const _0x3b4129=function(_0x29c34c){while(--_0x29c34c){_0x53e8c0['push'](_0x53e8c0['shift']());}};_0x3b4129(++_0x504fc8);}(a72_0x504f,0xfb));const a72_0x3b41=function(_0x53e8c0,_0x504fc8){_0x53e8c0=_0x53e8c0-0x0;let _0x3b4129=a72_0x504f[_0x53e8c0];return _0x3b4129;};const _0x36e0f2=a72_0x3b41;'use strict';const Sequelize=require(_0x36e0f2('0x3'));module[_0x36e0f2('0x2')]={'body':{'type':Sequelize[_0x36e0f2('0x5')](_0x36e0f2('0x0')),'allowNull':![]},'read':{'type':Sequelize[_0x36e0f2('0x4')],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize[_0x36e0f2('0x1')]}}; \ No newline at end of file +const a72_0x2afb=['BOOLEAN','sequelize','INTEGER','medium','exports'];(function(_0x4b11f4,_0x2afbb5){const _0x5aa5af=function(_0x203128){while(--_0x203128){_0x4b11f4['push'](_0x4b11f4['shift']());}};_0x5aa5af(++_0x2afbb5);}(a72_0x2afb,0xad));const a72_0x5aa5=function(_0x4b11f4,_0x2afbb5){_0x4b11f4=_0x4b11f4-0x0;let _0x5aa5af=a72_0x2afb[_0x4b11f4];return _0x5aa5af;};const _0x296bcf=a72_0x5aa5;'use strict';const Sequelize=require(_0x296bcf('0x3'));module[_0x296bcf('0x1')]={'body':{'type':Sequelize['TEXT'](_0x296bcf('0x0')),'allowNull':![]},'read':{'type':Sequelize[_0x296bcf('0x2')],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize[_0x296bcf('0x4')]}}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.controller.js b/server/api/chatInternalMessage/chatInternalMessage.controller.js index 8b08a7e..0a07f21 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.controller.js +++ b/server/api/chatInternalMessage/chatInternalMessage.controller.js @@ -1 +1 @@ -const a73_0x4ef1=['lastMessageAt','getUsers','api','keys','create','../../config/logger','key','lastMessage','messages','sendStatus','fieldName','allowmessenger','YYYY-MM-DD\x20HH:mm:ss','find','index','userpic','register','where','findOne','order','merge','sequelize','createdAt','lastLoginAt','push','status','includeAll','attributes','get','sort','stack','undefined','count','resourceId','moment','agent','then','name','../../rediscache','role','model','include','set','destroy','../../components/parsers/qs','User','VIRTUAL','limit','findAll','ToId','lodash','update','json','nolimit','intersection','Content-Range','map','fields','internal','length','params','like','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../mysqldb','autoAssociation','type','offset','UserProfileResource','admin','rawAttributes','query','VoiceQueue','all','error','describe','user','showWebBar','options','show','Agents','catch','isEmpty','filters','pick','userProfileId','ChatInternalMessage','-createdAt','FromId','body','filter'];(function(_0x181469,_0x4ef1bd){const _0x2e65f9=function(_0x226231){while(--_0x226231){_0x181469['push'](_0x181469['shift']());}};_0x2e65f9(++_0x4ef1bd);}(a73_0x4ef1,0xcc));const a73_0x2e65=function(_0x181469,_0x4ef1bd){_0x181469=_0x181469-0x0;let _0x2e65f9=a73_0x4ef1[_0x181469];return _0x2e65f9;};const _0x2b99eb=a73_0x2e65;'use strict';const moment=require(_0x2b99eb('0xa')),_=require(_0x2b99eb('0x1a')),qs=require(_0x2b99eb('0x14')),logger=require(_0x2b99eb('0x47'))(_0x2b99eb('0x44')),{getSocket}=require(_0x2b99eb('0xe')),db=require(_0x2b99eb('0x27'))['db'],{Op}=require(_0x2b99eb('0x57')),socket=getSocket();require('./chatInternalMessage.socket')[_0x2b99eb('0x52')](socket);function respondWithResult(_0x226231,_0x2ea5e4){return _0x2ea5e4=_0x2ea5e4||0xc8,function(_0xecd7eb){const _0x238f64=a73_0x2e65;if(_0xecd7eb)return _0x226231[_0x238f64('0x1')](_0x2ea5e4)[_0x238f64('0x1c')](_0xecd7eb);};}function respondWithFilteredResult(_0x3c86d4,_0x26a08a){return function(_0x2603b8){const _0x3a06bf=a73_0x2e65;if(_0x2603b8){const _0x5e3192=_0x2603b8['count'],_0xb711a6=_0x26a08a[_0x3a06bf('0x2a')];let _0x4da1ed=_0x26a08a[_0x3a06bf('0x2a')]+_0x26a08a[_0x3a06bf('0x17')],_0x415d29;return _0x4da1ed>=_0x5e3192?(_0x4da1ed=_0x5e3192,_0x415d29=0xc8):_0x415d29=0xce,_0x3c86d4[_0x3a06bf('0x1')](_0x415d29),_0x3c86d4[_0x3a06bf('0x12')](_0x3a06bf('0x1f'),_0xb711a6+'-'+_0x4da1ed+'/'+_0x5e3192)[_0x3a06bf('0x1c')](_0x2603b8);}return null;};}function saveUpdates(_0x4992fc){return function(_0x56d120){const _0x5cc5e0=a73_0x2e65;if(_0x56d120)return _0x56d120[_0x5cc5e0('0x1b')](_0x4992fc)['then'](function(_0x427519){return _0x427519;});return null;};}function removeEntity(_0x386892){return function(_0x373d99){const _0x36bd1a=a73_0x2e65;if(_0x373d99)return _0x373d99[_0x36bd1a('0x13')]()['then'](function(){_0x386892['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x59b1ff){return function(_0x43f4e5){const _0x13aa11=a73_0x2e65;return!_0x43f4e5&&_0x59b1ff[_0x13aa11('0x4b')](0x194),_0x43f4e5;};}function handleError(_0x242843,_0x31c631){return _0x31c631=_0x31c631||0x1f4,function(_0x8999f0){const _0x5c237c=a73_0x2e65;logger[_0x5c237c('0x31')](_0x8999f0[_0x5c237c('0x6')]),_0x8999f0[_0x5c237c('0xd')]&&delete _0x8999f0[_0x5c237c('0xd')],_0x242843[_0x5c237c('0x1')](_0x31c631)['send'](_0x8999f0);};}exports[_0x2b99eb('0x50')]=function(_0x1f0adc,_0x25c042){const _0x27b16b=_0x2b99eb;let _0x2d2547={};const _0x35d947={},_0x450542={'count':0x0,'rows':[]},_0x24e810=_['map'](db[_0x27b16b('0x3d')][_0x27b16b('0x2d')],function(_0x158b71){const _0x4fa649=_0x27b16b;return{'name':_0x158b71[_0x4fa649('0x4c')],'type':_0x158b71[_0x4fa649('0x29')][_0x4fa649('0x48')]};});_0x35d947[_0x27b16b('0x10')]=_[_0x27b16b('0x20')](_0x24e810,'name'),_0x35d947[_0x27b16b('0x2e')]=_[_0x27b16b('0x45')](_0x1f0adc['query']),_0x35d947[_0x27b16b('0x3a')]=_[_0x27b16b('0x1e')](_0x35d947[_0x27b16b('0x10')],_0x35d947[_0x27b16b('0x2e')]),_0x2d2547['attributes']=_['intersection'](_0x35d947[_0x27b16b('0x10')],qs[_0x27b16b('0x21')](_0x1f0adc[_0x27b16b('0x2e')]['fields'])),_0x2d2547[_0x27b16b('0x3')]=_0x2d2547[_0x27b16b('0x3')][_0x27b16b('0x23')]?_0x2d2547[_0x27b16b('0x3')]:_0x35d947[_0x27b16b('0x10')];typeof _0x1f0adc[_0x27b16b('0x2e')][_0x27b16b('0x1d')]===_0x27b16b('0x7')&&(_0x2d2547[_0x27b16b('0x17')]=qs[_0x27b16b('0x17')](_0x1f0adc[_0x27b16b('0x2e')][_0x27b16b('0x17')]),_0x2d2547['offset']=qs['offset'](_0x1f0adc[_0x27b16b('0x2e')][_0x27b16b('0x2a')]));_0x2d2547[_0x27b16b('0x55')]=qs[_0x27b16b('0x5')](_0x1f0adc['query'][_0x27b16b('0x5')]),_0x2d2547['where']=qs[_0x27b16b('0x3a')](_[_0x27b16b('0x3b')](_0x1f0adc[_0x27b16b('0x2e')],_0x35d947[_0x27b16b('0x3a')]),_0x24e810);_0x1f0adc[_0x27b16b('0x2e')][_0x27b16b('0x41')]&&(_0x2d2547[_0x27b16b('0x53')]=_[_0x27b16b('0x56')](_0x2d2547[_0x27b16b('0x53')],{[Op['or']]:_[_0x27b16b('0x20')](_0x24e810,function(_0x4b0f3f){const _0xaa9706=_0x27b16b;if(_0x4b0f3f[_0xaa9706('0x29')]!==_0xaa9706('0x16')){const _0x2aa4a9={};return _0x2aa4a9[_0x4b0f3f[_0xaa9706('0xd')]]={[Op[_0xaa9706('0x25')]]:'%'+_0x1f0adc[_0xaa9706('0x2e')]['filter']+'%'},_0x2aa4a9;}})}));_0x2d2547=_[_0x27b16b('0x56')]({},_0x2d2547,_0x1f0adc['options']);const _0x37aed1={'where':_0x2d2547[_0x27b16b('0x53')]};return db['ChatInternalMessage']['count'](_0x37aed1)[_0x27b16b('0xc')](function(_0x303373){const _0xb7ba20=_0x27b16b;return _0x450542[_0xb7ba20('0x8')]=_0x303373,_0x1f0adc[_0xb7ba20('0x2e')]['includeAll']&&(_0x2d2547[_0xb7ba20('0x11')]=[{'all':!![]}]),db['ChatInternalMessage'][_0xb7ba20('0x18')](_0x2d2547);})['then'](function(_0x1dae60){return _0x450542['rows']=_0x1dae60,_0x450542;})['then'](respondWithFilteredResult(_0x25c042,_0x2d2547))['catch'](handleError(_0x25c042,null));},exports[_0x2b99eb('0x36')]=function(_0x31fe1,_0x2c814f){const _0xa7d3aa=_0x2b99eb;let _0x4de66a={'raw':!![],'where':{'id':_0x31fe1['params']['id']}};const _0x135f4f={};return _0x135f4f[_0xa7d3aa('0x10')]=_[_0xa7d3aa('0x45')](db[_0xa7d3aa('0x3d')]['rawAttributes']),_0x135f4f[_0xa7d3aa('0x2e')]=_[_0xa7d3aa('0x45')](_0x31fe1[_0xa7d3aa('0x2e')]),_0x135f4f['filters']=_[_0xa7d3aa('0x1e')](_0x135f4f['model'],_0x135f4f[_0xa7d3aa('0x2e')]),_0x4de66a[_0xa7d3aa('0x3')]=_[_0xa7d3aa('0x1e')](_0x135f4f[_0xa7d3aa('0x10')],qs[_0xa7d3aa('0x21')](_0x31fe1['query'][_0xa7d3aa('0x21')])),_0x4de66a['attributes']=_0x4de66a[_0xa7d3aa('0x3')][_0xa7d3aa('0x23')]?_0x4de66a[_0xa7d3aa('0x3')]:_0x135f4f['model'],_0x31fe1['query'][_0xa7d3aa('0x2')]&&(_0x4de66a[_0xa7d3aa('0x11')]=[{'all':!![]}]),_0x4de66a=_['merge']({},_0x4de66a,_0x31fe1[_0xa7d3aa('0x35')]),db[_0xa7d3aa('0x3d')][_0xa7d3aa('0x54')](_0x4de66a)[_0xa7d3aa('0xc')](handleEntityNotFound(_0x2c814f,null))[_0xa7d3aa('0xc')](respondWithResult(_0x2c814f,null))[_0xa7d3aa('0x38')](handleError(_0x2c814f,null));},exports[_0x2b99eb('0x46')]=function(_0x53c2e6,_0x584681){const _0x1a51b8=_0x2b99eb;return db[_0x1a51b8('0x3d')][_0x1a51b8('0x46')](_0x53c2e6['body'],{})[_0x1a51b8('0xc')](respondWithResult(_0x584681,0xc9))[_0x1a51b8('0x38')](handleError(_0x584681,null));},exports['update']=function(_0x114b48,_0x21763d){const _0x698909=_0x2b99eb;return _0x114b48[_0x698909('0x40')]['id']&&delete _0x114b48[_0x698909('0x40')]['id'],db['ChatInternalMessage'][_0x698909('0x54')]({'where':{'id':_0x114b48[_0x698909('0x24')]['id']}})[_0x698909('0xc')](handleEntityNotFound(_0x21763d,null))[_0x698909('0xc')](saveUpdates(_0x114b48[_0x698909('0x40')],null))[_0x698909('0xc')](respondWithResult(_0x21763d,null))[_0x698909('0x38')](handleError(_0x21763d,null));},exports[_0x2b99eb('0x13')]=function(_0x199c97,_0x169531){const _0x112df3=_0x2b99eb;return db[_0x112df3('0x3d')][_0x112df3('0x54')]({'where':{'id':_0x199c97[_0x112df3('0x24')]['id']}})[_0x112df3('0xc')](handleEntityNotFound(_0x169531,null))[_0x112df3('0xc')](removeEntity(_0x169531,null))['catch'](handleError(_0x169531,null));},exports[_0x2b99eb('0x32')]=function(_0x8d0a16,_0xccfeca){const _0x114d86=_0x2b99eb;return db[_0x114d86('0x3d')][_0x114d86('0x32')]()[_0x114d86('0xc')](respondWithResult(_0xccfeca,null))['catch'](handleError(_0xccfeca,null));};function wrapUser(_0x1f6211){return function(_0x206901){const _0x28d0eb=a73_0x2e65,_0x3e9855=_0x1f6211[_0x28d0eb('0x4')]({'plain':!![]});return _0x3e9855[_0x28d0eb('0x4a')]=[],_0x206901?(_0x3e9855[_0x28d0eb('0x42')]=_0x206901[_0x28d0eb('0x58')],_0x3e9855[_0x28d0eb('0x49')]=_0x206901):(_0x3e9855[_0x28d0eb('0x42')]=moment(0x0)['format'](_0x28d0eb('0x4e')),_0x3e9855[_0x28d0eb('0x49')]={}),_0x3e9855;};}exports[_0x2b99eb('0x43')]=function(_0x11f4a6,_0x51f781){const _0x3fef19=_0x2b99eb;let _0x38df85=[];return db[_0x3fef19('0x15')][_0x3fef19('0x18')]({'where':{'role':[_0x3fef19('0xb'),_0x3fef19('0x2c'),_0x3fef19('0x33')]},'attributes':['id','fullname',_0x3fef19('0xd'),'role',_0x3fef19('0x51'),_0x3fef19('0x22'),'online',_0x3fef19('0x59'),_0x3fef19('0x4d'),_0x3fef19('0x34')],'order':qs[_0x3fef19('0x5')]('-online'),'include':[{'model':db[_0x3fef19('0x2f')],'as':'VoiceQueues','attributes':['id',_0x3fef19('0xd'),'type'],'through':{'attributes':[]}}]})[_0x3fef19('0xc')](function(_0x23b841){const _0x5b4c41=_0x3fef19;if(_0x23b841){const _0x564dda=_0x11f4a6[_0x5b4c41('0x33')][_0x5b4c41('0x4')]({'plain':!![]});if(!_0x564dda)throw new Error(_0x5b4c41('0x26'));return _0x564dda[_0x5b4c41('0xf')]===_0x5b4c41('0x33')?db['UserProfileSection'][_0x5b4c41('0x54')]({'where':{'name':_0x5b4c41('0x37'),'userProfileId':_0x564dda[_0x5b4c41('0x3c')]},'raw':!![]})['then'](function(_0x29274f){const _0x214768=_0x5b4c41;if(_0x29274f)return _0x29274f[_0x214768('0x28')]===0x0?db[_0x214768('0x2b')][_0x214768('0x18')]({'where':{'sectionId':_0x29274f['id']},'raw':!![]})[_0x214768('0xc')](function(_0x435029){const _0x42e8d3=_0x214768;let _0x3cfc74=[];if(_[_0x42e8d3('0x39')](_0x435029))return _0x3cfc74=_[_0x42e8d3('0x41')](_0x23b841,function(_0x1bd007){const _0x41fde0=_0x42e8d3;if(_0x1bd007[_0x41fde0('0xf')]!=='agent')return _0x1bd007;}),_0x3cfc74;else{for(let _0x10353e=0x0;_0x10353e<_0x23b841[_0x42e8d3('0x23')];_0x10353e++){const _0xab1e91=_0x23b841[_0x10353e];if(_0xab1e91[_0x42e8d3('0xf')]==='agent'){const _0xf9d1a0=_[_0x42e8d3('0x4f')](_0x435029,function(_0x7339ac){const _0x5e24f6=_0x42e8d3;return _0x7339ac[_0x5e24f6('0x9')]===_0xab1e91['id'];});if(_0xf9d1a0)_0x3cfc74['push'](_0xab1e91);}else _0x3cfc74[_0x42e8d3('0x0')](_0xab1e91);}return _0x3cfc74;}}):_0x23b841;else{const _0xa3504f=_[_0x214768('0x41')](_0x23b841,function(_0x435ccb){const _0x2cda62=_0x214768;if(_0x435ccb[_0x2cda62('0xf')]!=='agent')return _0x435ccb;});return _0xa3504f;}}):_0x23b841;}})[_0x3fef19('0xc')](function(_0x2ed50d){const _0x57cf39=_0x3fef19,_0x22a726=[];if(_0x2ed50d){_0x38df85=_0x2ed50d;for(let _0x59d4fc=0x0;_0x59d4fc<_0x2ed50d['length'];_0x59d4fc+=0x1){_0x38df85[_0x59d4fc]['messages']=[],_0x22a726[_0x57cf39('0x0')](db[_0x57cf39('0x3d')]['findOne']({'where':{'FromId':[_0x11f4a6[_0x57cf39('0x33')]['id'],_0x2ed50d[_0x59d4fc]['id']],'ToId':[_0x11f4a6[_0x57cf39('0x33')]['id'],_0x2ed50d[_0x59d4fc]['id']],'ChatGroupId':null},'attributes':['id','createdAt',_0x57cf39('0x3f'),_0x57cf39('0x19'),'read',_0x57cf39('0x40')],'order':qs[_0x57cf39('0x5')](_0x57cf39('0x3e')),'limit':0x1,'offset':0x0,'raw':!![]})[_0x57cf39('0xc')](wrapUser(_0x2ed50d[_0x59d4fc])));}return Promise[_0x57cf39('0x30')](_0x22a726);}return[];})[_0x3fef19('0xc')](function(_0x4a1a87){const _0x38947f=_0x3fef19;return{'rows':_0x4a1a87,'count':_0x4a1a87[_0x38947f('0x23')]};})['then'](respondWithResult(_0x51f781,null))['catch'](handleError(_0x51f781,null));}; \ No newline at end of file +const a73_0xaad9=['show','sort','ToId','pick','register','send','type','describe','createdAt','findAll','User','format','findOne','nolimit','all','Content-Range','showWebBar','FromId','rows','query','lodash','../../rediscache','UserProfileSection','body','limit','filters','includeAll','getUsers','autoAssociation','push','intersection','keys','rawAttributes','allowmessenger','count','ChatInternalMessage','get','userpic','Agents','fields','set','error','YYYY-MM-DD\x20HH:mm:ss','where','messages','offset','create','end','user','fullname','params','fieldName','options','map','update','-online','role','VoiceQueues','online','lastLoginAt','stack','agent','VIRTUAL','json','filter','sendStatus','catch','model','moment','lastMessage','destroy','merge','then','find','status','../../config/logger','include','admin','UserProfileResource','index','-createdAt','VoiceQueue','../../mysqldb','attributes','isEmpty','name','length','like','read','lastMessageAt','undefined'];(function(_0x4af9cf,_0xaad9a5){const _0x335f92=function(_0x3a7baa){while(--_0x3a7baa){_0x4af9cf['push'](_0x4af9cf['shift']());}};_0x335f92(++_0xaad9a5);}(a73_0xaad9,0x11d));const a73_0x335f=function(_0x4af9cf,_0xaad9a5){_0x4af9cf=_0x4af9cf-0x0;let _0x335f92=a73_0xaad9[_0x4af9cf];return _0x335f92;};const _0x19c865=a73_0x335f;'use strict';const moment=require(_0x19c865('0x38')),_=require(_0x19c865('0x8')),qs=require('../../components/parsers/qs'),logger=require(_0x19c865('0x3f'))('api'),{getSocket}=require(_0x19c865('0x9')),db=require(_0x19c865('0x46'))['db'],{Op}=require('sequelize'),socket=getSocket();require('./chatInternalMessage.socket')[_0x19c865('0x53')](socket);function respondWithResult(_0x3a7baa,_0x353798){return _0x353798=_0x353798||0xc8,function(_0x1f39f9){const _0x99c2c2=a73_0x335f;if(_0x1f39f9)return _0x3a7baa[_0x99c2c2('0x3e')](_0x353798)[_0x99c2c2('0x33')](_0x1f39f9);};}function respondWithFilteredResult(_0x5b97eb,_0x321480){return function(_0xfea447){const _0xeffa6e=a73_0x335f;if(_0xfea447){const _0x298521=_0xfea447[_0xeffa6e('0x16')],_0x4d453a=_0x321480['offset'];let _0x572a33=_0x321480[_0xeffa6e('0x21')]+_0x321480[_0xeffa6e('0xc')],_0x343a9e;return _0x572a33>=_0x298521?(_0x572a33=_0x298521,_0x343a9e=0xc8):_0x343a9e=0xce,_0x5b97eb[_0xeffa6e('0x3e')](_0x343a9e),_0x5b97eb[_0xeffa6e('0x1c')](_0xeffa6e('0x3'),_0x4d453a+'-'+_0x572a33+'/'+_0x298521)[_0xeffa6e('0x33')](_0xfea447);}return null;};}function saveUpdates(_0x1d78d1){return function(_0x4c6189){const _0x1098b0=a73_0x335f;if(_0x4c6189)return _0x4c6189[_0x1098b0('0x2a')](_0x1d78d1)[_0x1098b0('0x3c')](function(_0x4de470){return _0x4de470;});return null;};}function removeEntity(_0x3199b3){return function(_0xd64d57){const _0x3ab7f6=a73_0x335f;if(_0xd64d57)return _0xd64d57[_0x3ab7f6('0x3a')]()[_0x3ab7f6('0x3c')](function(){const _0xec3cb1=_0x3ab7f6;_0x3199b3[_0xec3cb1('0x3e')](0xcc)[_0xec3cb1('0x23')]();});};}function handleEntityNotFound(_0x393c89){return function(_0x3c7bde){const _0x5bc3fa=a73_0x335f;return!_0x3c7bde&&_0x393c89[_0x5bc3fa('0x35')](0x194),_0x3c7bde;};}function handleError(_0x16c6c1,_0x5d62a9){return _0x5d62a9=_0x5d62a9||0x1f4,function(_0x19663a){const _0x891811=a73_0x335f;logger[_0x891811('0x1d')](_0x19663a[_0x891811('0x30')]),_0x19663a['name']&&delete _0x19663a['name'],_0x16c6c1[_0x891811('0x3e')](_0x5d62a9)[_0x891811('0x54')](_0x19663a);};}exports[_0x19c865('0x43')]=function(_0x4f789c,_0x27f8ba){const _0x4c1643=_0x19c865;let _0x49624a={};const _0x41a63b={},_0xbfc999={'count':0x0,'rows':[]},_0x73d0d2=_['map'](db[_0x4c1643('0x17')][_0x4c1643('0x14')],function(_0x4c0181){const _0x3d4595=_0x4c1643;return{'name':_0x4c0181[_0x3d4595('0x27')],'type':_0x4c0181['type']['key']};});_0x41a63b[_0x4c1643('0x37')]=_[_0x4c1643('0x29')](_0x73d0d2,_0x4c1643('0x49')),_0x41a63b[_0x4c1643('0x7')]=_[_0x4c1643('0x13')](_0x4f789c[_0x4c1643('0x7')]),_0x41a63b[_0x4c1643('0xd')]=_[_0x4c1643('0x12')](_0x41a63b[_0x4c1643('0x37')],_0x41a63b[_0x4c1643('0x7')]),_0x49624a['attributes']=_['intersection'](_0x41a63b[_0x4c1643('0x37')],qs[_0x4c1643('0x1b')](_0x4f789c[_0x4c1643('0x7')][_0x4c1643('0x1b')])),_0x49624a[_0x4c1643('0x47')]=_0x49624a[_0x4c1643('0x47')][_0x4c1643('0x4a')]?_0x49624a['attributes']:_0x41a63b['model'];typeof _0x4f789c[_0x4c1643('0x7')][_0x4c1643('0x1')]===_0x4c1643('0x4e')&&(_0x49624a[_0x4c1643('0xc')]=qs[_0x4c1643('0xc')](_0x4f789c[_0x4c1643('0x7')][_0x4c1643('0xc')]),_0x49624a[_0x4c1643('0x21')]=qs[_0x4c1643('0x21')](_0x4f789c['query'][_0x4c1643('0x21')]));_0x49624a['order']=qs[_0x4c1643('0x50')](_0x4f789c[_0x4c1643('0x7')][_0x4c1643('0x50')]),_0x49624a[_0x4c1643('0x1f')]=qs[_0x4c1643('0xd')](_[_0x4c1643('0x52')](_0x4f789c[_0x4c1643('0x7')],_0x41a63b[_0x4c1643('0xd')]),_0x73d0d2);_0x4f789c['query']['filter']&&(_0x49624a[_0x4c1643('0x1f')]=_[_0x4c1643('0x3b')](_0x49624a['where'],{[Op['or']]:_[_0x4c1643('0x29')](_0x73d0d2,function(_0x3188e4){const _0x4cd1e7=_0x4c1643;if(_0x3188e4['type']!==_0x4cd1e7('0x32')){const _0x12ab61={};return _0x12ab61[_0x3188e4[_0x4cd1e7('0x49')]]={[Op[_0x4cd1e7('0x4b')]]:'%'+_0x4f789c['query'][_0x4cd1e7('0x34')]+'%'},_0x12ab61;}})}));_0x49624a=_[_0x4c1643('0x3b')]({},_0x49624a,_0x4f789c[_0x4c1643('0x28')]);const _0x2d37ff={'where':_0x49624a[_0x4c1643('0x1f')]};return db[_0x4c1643('0x17')][_0x4c1643('0x16')](_0x2d37ff)[_0x4c1643('0x3c')](function(_0x2550c9){const _0x54fea3=_0x4c1643;return _0xbfc999[_0x54fea3('0x16')]=_0x2550c9,_0x4f789c[_0x54fea3('0x7')][_0x54fea3('0xe')]&&(_0x49624a[_0x54fea3('0x40')]=[{'all':!![]}]),db[_0x54fea3('0x17')][_0x54fea3('0x58')](_0x49624a);})[_0x4c1643('0x3c')](function(_0x4e85e8){const _0x278708=_0x4c1643;return _0xbfc999[_0x278708('0x6')]=_0x4e85e8,_0xbfc999;})[_0x4c1643('0x3c')](respondWithFilteredResult(_0x27f8ba,_0x49624a))['catch'](handleError(_0x27f8ba,null));},exports[_0x19c865('0x4f')]=function(_0x373730,_0xe8162f){const _0x214dde=_0x19c865;let _0x3b3a5d={'raw':!![],'where':{'id':_0x373730[_0x214dde('0x26')]['id']}};const _0x1d49fc={};return _0x1d49fc['model']=_[_0x214dde('0x13')](db['ChatInternalMessage'][_0x214dde('0x14')]),_0x1d49fc[_0x214dde('0x7')]=_[_0x214dde('0x13')](_0x373730[_0x214dde('0x7')]),_0x1d49fc[_0x214dde('0xd')]=_[_0x214dde('0x12')](_0x1d49fc['model'],_0x1d49fc[_0x214dde('0x7')]),_0x3b3a5d[_0x214dde('0x47')]=_[_0x214dde('0x12')](_0x1d49fc[_0x214dde('0x37')],qs[_0x214dde('0x1b')](_0x373730[_0x214dde('0x7')]['fields'])),_0x3b3a5d[_0x214dde('0x47')]=_0x3b3a5d[_0x214dde('0x47')][_0x214dde('0x4a')]?_0x3b3a5d['attributes']:_0x1d49fc['model'],_0x373730[_0x214dde('0x7')][_0x214dde('0xe')]&&(_0x3b3a5d[_0x214dde('0x40')]=[{'all':!![]}]),_0x3b3a5d=_[_0x214dde('0x3b')]({},_0x3b3a5d,_0x373730['options']),db['ChatInternalMessage'][_0x214dde('0x0')](_0x3b3a5d)[_0x214dde('0x3c')](handleEntityNotFound(_0xe8162f,null))['then'](respondWithResult(_0xe8162f,null))['catch'](handleError(_0xe8162f,null));},exports[_0x19c865('0x22')]=function(_0x9a5b6,_0x3311b8){const _0x4f6b73=_0x19c865;return db[_0x4f6b73('0x17')][_0x4f6b73('0x22')](_0x9a5b6['body'],{})[_0x4f6b73('0x3c')](respondWithResult(_0x3311b8,0xc9))[_0x4f6b73('0x36')](handleError(_0x3311b8,null));},exports[_0x19c865('0x2a')]=function(_0x432d4a,_0x1dce6c){const _0x424fa4=_0x19c865;return _0x432d4a[_0x424fa4('0xb')]['id']&&delete _0x432d4a[_0x424fa4('0xb')]['id'],db[_0x424fa4('0x17')][_0x424fa4('0x0')]({'where':{'id':_0x432d4a[_0x424fa4('0x26')]['id']}})[_0x424fa4('0x3c')](handleEntityNotFound(_0x1dce6c,null))[_0x424fa4('0x3c')](saveUpdates(_0x432d4a[_0x424fa4('0xb')],null))[_0x424fa4('0x3c')](respondWithResult(_0x1dce6c,null))[_0x424fa4('0x36')](handleError(_0x1dce6c,null));},exports[_0x19c865('0x3a')]=function(_0x2e84c5,_0x3dad47){const _0x12c9f2=_0x19c865;return db[_0x12c9f2('0x17')][_0x12c9f2('0x0')]({'where':{'id':_0x2e84c5[_0x12c9f2('0x26')]['id']}})[_0x12c9f2('0x3c')](handleEntityNotFound(_0x3dad47,null))[_0x12c9f2('0x3c')](removeEntity(_0x3dad47,null))[_0x12c9f2('0x36')](handleError(_0x3dad47,null));},exports[_0x19c865('0x56')]=function(_0x40e12b,_0x2e1e0f){const _0x46035d=_0x19c865;return db[_0x46035d('0x17')][_0x46035d('0x56')]()[_0x46035d('0x3c')](respondWithResult(_0x2e1e0f,null))['catch'](handleError(_0x2e1e0f,null));};function wrapUser(_0x463f9c){return function(_0x5cc875){const _0x2ac4d3=a73_0x335f,_0x1b0e9a=_0x463f9c[_0x2ac4d3('0x18')]({'plain':!![]});return _0x1b0e9a[_0x2ac4d3('0x20')]=[],_0x5cc875?(_0x1b0e9a[_0x2ac4d3('0x4d')]=_0x5cc875[_0x2ac4d3('0x57')],_0x1b0e9a[_0x2ac4d3('0x39')]=_0x5cc875):(_0x1b0e9a[_0x2ac4d3('0x4d')]=moment(0x0)[_0x2ac4d3('0x5a')](_0x2ac4d3('0x1e')),_0x1b0e9a[_0x2ac4d3('0x39')]={}),_0x1b0e9a;};}exports[_0x19c865('0xf')]=function(_0x5ad828,_0x14d481){const _0x43d163=_0x19c865;let _0x3c74e6=[];return db[_0x43d163('0x59')]['findAll']({'where':{'role':[_0x43d163('0x31'),_0x43d163('0x41'),_0x43d163('0x24')]},'attributes':['id',_0x43d163('0x25'),'name','role',_0x43d163('0x19'),'internal',_0x43d163('0x2e'),_0x43d163('0x2f'),_0x43d163('0x15'),_0x43d163('0x4')],'order':qs[_0x43d163('0x50')](_0x43d163('0x2b')),'include':[{'model':db[_0x43d163('0x45')],'as':_0x43d163('0x2d'),'attributes':['id',_0x43d163('0x49'),_0x43d163('0x55')],'through':{'attributes':[]}}]})[_0x43d163('0x3c')](function(_0x3371b5){const _0xa28674=_0x43d163;if(_0x3371b5){const _0x6d8fdc=_0x5ad828[_0xa28674('0x24')][_0xa28674('0x18')]({'plain':!![]});if(!_0x6d8fdc)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');return _0x6d8fdc[_0xa28674('0x2c')]==='user'?db[_0xa28674('0xa')][_0xa28674('0x0')]({'where':{'name':_0xa28674('0x1a'),'userProfileId':_0x6d8fdc['userProfileId']},'raw':!![]})[_0xa28674('0x3c')](function(_0x23ce32){const _0x231f14=_0xa28674;if(_0x23ce32)return _0x23ce32[_0x231f14('0x10')]===0x0?db[_0x231f14('0x42')][_0x231f14('0x58')]({'where':{'sectionId':_0x23ce32['id']},'raw':!![]})[_0x231f14('0x3c')](function(_0x30d5de){const _0x5d4a5b=_0x231f14;let _0x59de41=[];if(_[_0x5d4a5b('0x48')](_0x30d5de))return _0x59de41=_['filter'](_0x3371b5,function(_0x311fad){const _0x2e86ba=_0x5d4a5b;if(_0x311fad[_0x2e86ba('0x2c')]!==_0x2e86ba('0x31'))return _0x311fad;}),_0x59de41;else{for(let _0x2da87a=0x0;_0x2da87a<_0x3371b5['length'];_0x2da87a++){const _0x252769=_0x3371b5[_0x2da87a];if(_0x252769['role']==='agent'){const _0x2659fb=_[_0x5d4a5b('0x3d')](_0x30d5de,function(_0x428b81){return _0x428b81['resourceId']===_0x252769['id'];});if(_0x2659fb)_0x59de41[_0x5d4a5b('0x11')](_0x252769);}else _0x59de41[_0x5d4a5b('0x11')](_0x252769);}return _0x59de41;}}):_0x3371b5;else{const _0x236cb0=_[_0x231f14('0x34')](_0x3371b5,function(_0x21e6be){if(_0x21e6be['role']!=='agent')return _0x21e6be;});return _0x236cb0;}}):_0x3371b5;}})[_0x43d163('0x3c')](function(_0x343f43){const _0x31ce82=_0x43d163,_0x33a3e6=[];if(_0x343f43){_0x3c74e6=_0x343f43;for(let _0x3b3f78=0x0;_0x3b3f78<_0x343f43[_0x31ce82('0x4a')];_0x3b3f78+=0x1){_0x3c74e6[_0x3b3f78]['messages']=[],_0x33a3e6[_0x31ce82('0x11')](db[_0x31ce82('0x17')]['findOne']({'where':{'FromId':[_0x5ad828[_0x31ce82('0x24')]['id'],_0x343f43[_0x3b3f78]['id']],'ToId':[_0x5ad828['user']['id'],_0x343f43[_0x3b3f78]['id']],'ChatGroupId':null},'attributes':['id',_0x31ce82('0x57'),_0x31ce82('0x5'),_0x31ce82('0x51'),_0x31ce82('0x4c'),_0x31ce82('0xb')],'order':qs[_0x31ce82('0x50')](_0x31ce82('0x44')),'limit':0x1,'offset':0x0,'raw':!![]})[_0x31ce82('0x3c')](wrapUser(_0x343f43[_0x3b3f78])));}return Promise[_0x31ce82('0x2')](_0x33a3e6);}return[];})['then'](function(_0x4c636a){return{'rows':_0x4c636a,'count':_0x4c636a['length']};})['then'](respondWithResult(_0x14d481,null))['catch'](handleError(_0x14d481,null));}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.events.js b/server/api/chatInternalMessage/chatInternalMessage.events.js index 6f02490..bfad762 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.events.js +++ b/server/api/chatInternalMessage/chatInternalMessage.events.js @@ -1 +1 @@ -const a74_0x28f6=['../../mysqldb','addHook','ChatInternalMessage','undefined','exports','emit','save','remove','setMaxListeners'];(function(_0x134456,_0x28f6cc){const _0x18b78c=function(_0x3960b4){while(--_0x3960b4){_0x134456['push'](_0x134456['shift']());}};_0x18b78c(++_0x28f6cc);}(a74_0x28f6,0x101));const a74_0x18b7=function(_0x134456,_0x28f6cc){_0x134456=_0x134456-0x0;let _0x18b78c=a74_0x28f6[_0x134456];return _0x18b78c;};const _0x34bdfa=a74_0x18b7;'use strict';const EventEmitter=require('events'),ChatInternalMessage=require(_0x34bdfa('0x4'))['db'][_0x34bdfa('0x6')],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0x34bdfa('0x3')](0x0);const events={'afterCreate':_0x34bdfa('0x1'),'afterUpdate':'update','afterDestroy':_0x34bdfa('0x2')};function emitEvent(_0x3960b4){return function(_0x59f639){const _0x32b6a2=a74_0x18b7;ChatInternalMessageEvents[_0x32b6a2('0x0')](_0x3960b4+':'+_0x59f639['id'],_0x59f639),ChatInternalMessageEvents['emit'](_0x3960b4,_0x59f639);};}for(const e in events){if(typeof events[e]!==_0x34bdfa('0x7')){const event=events[e];ChatInternalMessage[_0x34bdfa('0x5')](e,emitEvent(event));}}module[_0x34bdfa('0x8')]=ChatInternalMessageEvents; \ No newline at end of file +const a74_0x237e=['addHook','../../mysqldb','remove','emit','save','ChatInternalMessage'];(function(_0x5b2742,_0x237ed6){const _0x5a4e60=function(_0x586dc6){while(--_0x586dc6){_0x5b2742['push'](_0x5b2742['shift']());}};_0x5a4e60(++_0x237ed6);}(a74_0x237e,0xa8));const a74_0x5a4e=function(_0x5b2742,_0x237ed6){_0x5b2742=_0x5b2742-0x0;let _0x5a4e60=a74_0x237e[_0x5b2742];return _0x5a4e60;};const _0x2beeb2=a74_0x5a4e;'use strict';const EventEmitter=require('events'),ChatInternalMessage=require(_0x2beeb2('0x1'))['db'][_0x2beeb2('0x5')],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x2beeb2('0x4'),'afterUpdate':'update','afterDestroy':_0x2beeb2('0x2')};function emitEvent(_0x586dc6){return function(_0x233ce9){const _0x1c938b=a74_0x5a4e;ChatInternalMessageEvents[_0x1c938b('0x3')](_0x586dc6+':'+_0x233ce9['id'],_0x233ce9),ChatInternalMessageEvents[_0x1c938b('0x3')](_0x586dc6,_0x233ce9);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatInternalMessage[_0x2beeb2('0x0')](e,emitEvent(event));}}module['exports']=ChatInternalMessageEvents; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.model.js b/server/api/chatInternalMessage/chatInternalMessage.model.js index 7e757da..a06c741 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.model.js +++ b/server/api/chatInternalMessage/chatInternalMessage.model.js @@ -1 +1 @@ -const a75_0x334f=['utf8mb4','utf8mb4_unicode_ci','exports','define'];(function(_0x927c26,_0x334f3e){const _0x1e3b5b=function(_0x83b655){while(--_0x83b655){_0x927c26['push'](_0x927c26['shift']());}};_0x1e3b5b(++_0x334f3e);}(a75_0x334f,0x189));const a75_0x1e3b=function(_0x927c26,_0x334f3e){_0x927c26=_0x927c26-0x0;let _0x1e3b5b=a75_0x334f[_0x927c26];return _0x1e3b5b;};const _0x40a004=a75_0x1e3b;'use strict';const attributes=require('./chatInternalMessage.attributes');module[_0x40a004('0x1')]=function(_0x83b655){const _0x3d4337=_0x40a004,_0xd3a5be=_0x83b655[_0x3d4337('0x2')]('ChatInternalMessage',attributes,{'tableName':'chat_internal_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3d4337('0x3'),'collate':_0x3d4337('0x0')});return _0xd3a5be;}; \ No newline at end of file +const a75_0x2678=['exports','chat_internal_messages','utf8mb4','define','utf8mb4_unicode_ci'];(function(_0x42a12a,_0x2678fe){const _0x33778f=function(_0x317bfb){while(--_0x317bfb){_0x42a12a['push'](_0x42a12a['shift']());}};_0x33778f(++_0x2678fe);}(a75_0x2678,0xc5));const a75_0x3377=function(_0x42a12a,_0x2678fe){_0x42a12a=_0x42a12a-0x0;let _0x33778f=a75_0x2678[_0x42a12a];return _0x33778f;};const _0x550afa=a75_0x3377;'use strict';const attributes=require('./chatInternalMessage.attributes');module[_0x550afa('0x3')]=function(_0x317bfb){const _0x547d1c=_0x550afa,_0x3eb1dd=_0x317bfb[_0x547d1c('0x1')]('ChatInternalMessage',attributes,{'tableName':_0x547d1c('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x547d1c('0x0'),'collate':_0x547d1c('0x2')});return _0x3eb1dd;}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.rpc.js b/server/api/chatInternalMessage/chatInternalMessage.rpc.js index f2884b4..e672696 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.rpc.js +++ b/server/api/chatInternalMessage/chatInternalMessage.rpc.js @@ -1 +1 @@ -const a76_0x44de=['./chatInternalMessage.socket','register','../../rediscache'];(function(_0xc09ec6,_0x44de18){const _0x32da90=function(_0x3b5337){while(--_0x3b5337){_0xc09ec6['push'](_0xc09ec6['shift']());}};_0x32da90(++_0x44de18);}(a76_0x44de,0x8c));const a76_0x32da=function(_0xc09ec6,_0x44de18){_0xc09ec6=_0xc09ec6-0x0;let _0x32da90=a76_0x44de[_0xc09ec6];return _0x32da90;};const _0x2e818e=a76_0x32da;'use strict';const {getSocket}=require(_0x2e818e('0x0')),socket=getSocket();require(_0x2e818e('0x1'))[_0x2e818e('0x2')](socket); \ No newline at end of file +const a76_0x2e0b=['register','./chatInternalMessage.socket'];(function(_0x16353f,_0x2e0b5c){const _0x3139eb=function(_0x4e2d20){while(--_0x4e2d20){_0x16353f['push'](_0x16353f['shift']());}};_0x3139eb(++_0x2e0b5c);}(a76_0x2e0b,0x1ed));const a76_0x3139=function(_0x16353f,_0x2e0b5c){_0x16353f=_0x16353f-0x0;let _0x3139eb=a76_0x2e0b[_0x16353f];return _0x3139eb;};const _0x164920=a76_0x3139;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x164920('0x0'))[_0x164920('0x1')](socket); \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.socket.js b/server/api/chatInternalMessage/chatInternalMessage.socket.js index 62a1fc1..5253201 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.socket.js +++ b/server/api/chatInternalMessage/chatInternalMessage.socket.js @@ -1 +1 @@ -const a77_0x1db3=['./chatInternalMessage.events','register','save','remove','length'];(function(_0x14f1a3,_0x1db3a7){const _0x12f671=function(_0x5d9946){while(--_0x5d9946){_0x14f1a3['push'](_0x14f1a3['shift']());}};_0x12f671(++_0x1db3a7);}(a77_0x1db3,0x121));const a77_0x12f6=function(_0x14f1a3,_0x1db3a7){_0x14f1a3=_0x14f1a3-0x0;let _0x12f671=a77_0x1db3[_0x14f1a3];return _0x12f671;};const _0xf323cd=a77_0x12f6;'use strict';const ChatInternalMessageEvents=require(_0xf323cd('0x1')),events=[_0xf323cd('0x3'),_0xf323cd('0x4'),'update'];function createListener(_0x5d9946,_0x556e9c){return function(_0x230041){_0x556e9c['emit'](_0x5d9946,_0x230041);};}exports[_0xf323cd('0x2')]=function(_0x340ba2){const _0x33c751=_0xf323cd;for(let _0x6cd534=0x0,_0x18e6f8=events[_0x33c751('0x0')];_0x6cd534<_0x18e6f8;_0x6cd534++){const _0x416daa=events[_0x6cd534],_0x3317d3=createListener('chatInternalMessage:'+_0x416daa,_0x340ba2);ChatInternalMessageEvents['on'](_0x416daa,_0x3317d3);}}; \ No newline at end of file +const a77_0x55fb=['chatInternalMessage:','save','length','./chatInternalMessage.events','emit','register','remove','update'];(function(_0x26ac02,_0x55fb7a){const _0x1c456c=function(_0x39412f){while(--_0x39412f){_0x26ac02['push'](_0x26ac02['shift']());}};_0x1c456c(++_0x55fb7a);}(a77_0x55fb,0x115));const a77_0x1c45=function(_0x26ac02,_0x55fb7a){_0x26ac02=_0x26ac02-0x0;let _0x1c456c=a77_0x55fb[_0x26ac02];return _0x1c456c;};const _0x9e5b18=a77_0x1c45;'use strict';const ChatInternalMessageEvents=require(_0x9e5b18('0x6')),events=[_0x9e5b18('0x4'),_0x9e5b18('0x1'),_0x9e5b18('0x2')];function createListener(_0x39412f,_0x2ff4d6){return function(_0xe0bc00){const _0x2d4308=a77_0x1c45;_0x2ff4d6[_0x2d4308('0x7')](_0x39412f,_0xe0bc00);};}exports[_0x9e5b18('0x0')]=function(_0x400b99){const _0x2fb86d=_0x9e5b18;for(let _0x50cacb=0x0,_0x3608c9=events[_0x2fb86d('0x5')];_0x50cacb<_0x3608c9;_0x50cacb++){const _0x280008=events[_0x50cacb],_0x3e31f9=createListener(_0x2fb86d('0x3')+_0x280008,_0x400b99);ChatInternalMessageEvents['on'](_0x280008,_0x3e31f9);}}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/index.js b/server/api/chatInternalMessage/index.js index 4cccd5d..63b2977 100644 --- a/server/api/chatInternalMessage/index.js +++ b/server/api/chatInternalMessage/index.js @@ -1 +1 @@ -const a78_0x2f0f=['isAuthenticated','update','create','./chatInternalMessage.controller','express','delete','/:id','post','put','index','getUsers','get','Router','show','destroy'];(function(_0x56d21f,_0x2f0f36){const _0x4b6e1b=function(_0x17e6fa){while(--_0x17e6fa){_0x56d21f['push'](_0x56d21f['shift']());}};_0x4b6e1b(++_0x2f0f36);}(a78_0x2f0f,0x1ba));const a78_0x4b6e=function(_0x56d21f,_0x2f0f36){_0x56d21f=_0x56d21f-0x0;let _0x4b6e1b=a78_0x2f0f[_0x56d21f];return _0x4b6e1b;};const _0xa7b518=a78_0x4b6e;'use strict';const express=require(_0xa7b518('0xc')),router=express[_0xa7b518('0x5')](),auth=require('../../components/auth/service'),controller=require(_0xa7b518('0xb'));router[_0xa7b518('0x4')]('/',auth['isAuthenticated'](),controller[_0xa7b518('0x2')]),router[_0xa7b518('0x4')]('/describe',auth[_0xa7b518('0x8')](),controller['describe']),router['get']('/users',auth[_0xa7b518('0x8')](),controller[_0xa7b518('0x3')]),router[_0xa7b518('0x4')](_0xa7b518('0xe'),auth['isAuthenticated'](),controller[_0xa7b518('0x6')]),router[_0xa7b518('0x0')]('/',auth[_0xa7b518('0x8')](),controller[_0xa7b518('0xa')]),router[_0xa7b518('0x1')](_0xa7b518('0xe'),controller[_0xa7b518('0x9')]),router[_0xa7b518('0xd')](_0xa7b518('0xe'),auth['isAuthenticated'](),controller[_0xa7b518('0x7')]),module['exports']=router; \ No newline at end of file +const a78_0x3937=['isAuthenticated','destroy','/describe','describe','../../components/auth/service','./chatInternalMessage.controller','express','index','show','/users','get','exports','post','/:id','getUsers','update'];(function(_0x1ed71c,_0x393774){const _0x4c62ed=function(_0xc17f62){while(--_0xc17f62){_0x1ed71c['push'](_0x1ed71c['shift']());}};_0x4c62ed(++_0x393774);}(a78_0x3937,0x17d));const a78_0x4c62=function(_0x1ed71c,_0x393774){_0x1ed71c=_0x1ed71c-0x0;let _0x4c62ed=a78_0x3937[_0x1ed71c];return _0x4c62ed;};const _0x13a51=a78_0x4c62;'use strict';const express=require(_0x13a51('0x9')),router=express['Router'](),auth=require(_0x13a51('0x7')),controller=require(_0x13a51('0x8'));router[_0x13a51('0xd')]('/',auth[_0x13a51('0x3')](),controller[_0x13a51('0xa')]),router[_0x13a51('0xd')](_0x13a51('0x5'),auth[_0x13a51('0x3')](),controller[_0x13a51('0x6')]),router[_0x13a51('0xd')](_0x13a51('0xc'),auth[_0x13a51('0x3')](),controller[_0x13a51('0x1')]),router[_0x13a51('0xd')](_0x13a51('0x0'),auth['isAuthenticated'](),controller[_0x13a51('0xb')]),router[_0x13a51('0xf')]('/',auth[_0x13a51('0x3')](),controller['create']),router['put']('/:id',controller[_0x13a51('0x2')]),router['delete'](_0x13a51('0x0'),auth[_0x13a51('0x3')](),controller[_0x13a51('0x4')]),module[_0x13a51('0xe')]=router; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.attributes.js b/server/api/chatMessage/chatMessage.attributes.js index 2f0497b..b41f6fd 100644 --- a/server/api/chatMessage/chatMessage.attributes.js +++ b/server/api/chatMessage/chatMessage.attributes.js @@ -1 +1 @@ -const a79_0x32f1=['exports','sequelize','ENUM','BOOLEAN','out','TEXT','medium'];(function(_0xe1b9,_0x32f1f1){const _0x424b23=function(_0x37a99b){while(--_0x37a99b){_0xe1b9['push'](_0xe1b9['shift']());}};_0x424b23(++_0x32f1f1);}(a79_0x32f1,0x7a));const a79_0x424b=function(_0xe1b9,_0x32f1f1){_0xe1b9=_0xe1b9-0x0;let _0x424b23=a79_0x32f1[_0xe1b9];return _0x424b23;};const _0x3ef08e=a79_0x424b;'use strict';const Sequelize=require(_0x3ef08e('0x5'));module[_0x3ef08e('0x4')]={'body':{'type':Sequelize[_0x3ef08e('0x2')](_0x3ef08e('0x3')),'allowNull':![]},'read':{'type':Sequelize[_0x3ef08e('0x0')],'defaultValue':![]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x3ef08e('0x6')]('in',_0x3ef08e('0x1')),'defaultValue':_0x3ef08e('0x1'),'allowNull':![]},'readAt':{'type':Sequelize['DATE']}}; \ No newline at end of file +const a79_0x4e1b=['sequelize','TEXT','BOOLEAN','ENUM','exports','out','DATE','medium'];(function(_0x48a952,_0x4e1b95){const _0x5ad7bd=function(_0x3393ab){while(--_0x3393ab){_0x48a952['push'](_0x48a952['shift']());}};_0x5ad7bd(++_0x4e1b95);}(a79_0x4e1b,0x11a));const a79_0x5ad7=function(_0x48a952,_0x4e1b95){_0x48a952=_0x48a952-0x0;let _0x5ad7bd=a79_0x4e1b[_0x48a952];return _0x5ad7bd;};const _0x3d86c7=a79_0x5ad7;'use strict';const Sequelize=require(_0x3d86c7('0x6'));module[_0x3d86c7('0x2')]={'body':{'type':Sequelize[_0x3d86c7('0x7')](_0x3d86c7('0x5')),'allowNull':![]},'read':{'type':Sequelize[_0x3d86c7('0x0')],'defaultValue':![]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x3d86c7('0x1')]('in','out'),'defaultValue':_0x3d86c7('0x3'),'allowNull':![]},'readAt':{'type':Sequelize[_0x3d86c7('0x4')]}}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.controller.js b/server/api/chatMessage/chatMessage.controller.js index 54a986c..2a6b5a8 100644 --- a/server/api/chatMessage/chatMessage.controller.js +++ b/server/api/chatMessage/chatMessage.controller.js @@ -1 +1 @@ -const a80_0x1c0b=['then','info','null','fields','sequelize','findOne','../../components/parsers/qs','readAt','end','Contact','params','request\x20sent','rejectmessage','json','user','CmContact','stringify','model','intersection','accept','VIRTUAL','message','ChatMessage,\x20%s,\x20%s,\x20%s','sort','ChatMessage,\x20%s,\x20%s','includeAll','attributes','status','destroy','formData','api','undefined','map','AcceptMessage','create','filter','ChatInteractionId','count','../../mysqldb','parse','limit','moment','update','body','channel','query','name','filters','client','ChatMessage','rawAttributes','interaction','key','reject','set','pick','type','read','util','format','sendStatus','error','acceptmessage','stack','result','keys','include','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','rows','register','ChatInteraction','get','index','../../config/logger','where','merge','interface','manual','describe','EventManager','offset','length','./chatMessage.socket','catch','event','chat-interactions','http','chat','agent','rejectMessage','UserId','../../rediscache','fieldName','request','YYYY-MM-DD\x20HH:mm:ss','Content-Range'];(function(_0xbb9f19,_0x1c0b24){const _0x35628e=function(_0x48c5c6){while(--_0x48c5c6){_0xbb9f19['push'](_0xbb9f19['shift']());}};_0x35628e(++_0x1c0b24);}(a80_0x1c0b,0x18b));const a80_0x3562=function(_0xbb9f19,_0x1c0b24){_0xbb9f19=_0xbb9f19-0x0;let _0x35628e=a80_0x1c0b[_0xbb9f19];return _0x35628e;};const _0x518b10=a80_0x3562;'use strict';const moment=require(_0x518b10('0x1e')),util=require(_0x518b10('0x2f')),_=require('lodash'),qs=require(_0x518b10('0x5b')),logger=require(_0x518b10('0x3e'))(_0x518b10('0x13')),{getSocket}=require(_0x518b10('0x50')),db=require(_0x518b10('0x1b'))['db'],{Op}=require(_0x518b10('0x59')),interaction_log=require(_0x518b10('0x3e'))(_0x518b10('0x4a')),socket=getSocket();require(_0x518b10('0x47'))[_0x518b10('0x3a')](socket);const jayson=require('jayson/promise'),client=jayson[_0x518b10('0x25')][_0x518b10('0x4b')]({'port':0x232c}),client9002=jayson['client'][_0x518b10('0x4b')]({'port':0x232a});function respondWithRpcPromise(_0x48c5c6,_0x4ceb26,_0x275422,_0x28d044){return new Promise(function(_0x57f9d5,_0x2390d6){const _0x2fc651=a80_0x3562,_0x34204e=_0x28d044||client;return _0x34204e[_0x2fc651('0x52')](_0x48c5c6,_0x275422)[_0x2fc651('0x55')](function(_0x324363){const _0x5bbb68=_0x2fc651;logger[_0x5bbb68('0x56')](_0x5bbb68('0xd'),_0x4ceb26,'request\x20sent'),logger['debug'](_0x5bbb68('0xb'),_0x4ceb26,_0x5bbb68('0x0'),JSON[_0x5bbb68('0x5')](_0x324363));if(_0x324363[_0x5bbb68('0x32')]){if(_0x324363[_0x5bbb68('0x32')]['code']===0x1f4)return logger[_0x5bbb68('0x32')](_0x5bbb68('0xd'),_0x4ceb26,_0x324363['error']['message']),_0x2390d6(_0x324363['error']['message']);return logger[_0x5bbb68('0x32')](_0x5bbb68('0xd'),_0x4ceb26,_0x324363['error'][_0x5bbb68('0xa')]),_0x57f9d5(_0x324363[_0x5bbb68('0x32')]['message']);}else logger[_0x5bbb68('0x56')](_0x5bbb68('0xd'),_0x4ceb26,_0x5bbb68('0x0')),_0x57f9d5(_0x324363[_0x5bbb68('0x35')]['message']);})['catch'](function(_0x393f96){const _0x5069d7=_0x2fc651;logger[_0x5069d7('0x32')](_0x5069d7('0xd'),_0x4ceb26,_0x393f96),_0x2390d6(_0x393f96);});});}function respondWithResult(_0x3f719f,_0x5d1688){return _0x5d1688=_0x5d1688||0xc8,function(_0x14205e){const _0x54e919=a80_0x3562;if(_0x14205e)return _0x3f719f[_0x54e919('0x10')](_0x5d1688)[_0x54e919('0x2')](_0x14205e);};}function respondWithFilteredResult(_0x20101e,_0x156142){return function(_0x135782){const _0x36b93b=a80_0x3562;if(_0x135782){const _0x8cddea=_0x135782[_0x36b93b('0x1a')],_0x498158=_0x156142['offset'];let _0xb4013f=_0x156142['offset']+_0x156142['limit'],_0x9d0eca;return _0xb4013f>=_0x8cddea?(_0xb4013f=_0x8cddea,_0x9d0eca=0xc8):_0x9d0eca=0xce,_0x20101e[_0x36b93b('0x10')](_0x9d0eca),_0x20101e[_0x36b93b('0x2b')](_0x36b93b('0x54'),_0x498158+'-'+_0xb4013f+'/'+_0x8cddea)['json'](_0x135782);}return null;};}function saveUpdates(_0x372e1a){return function(_0x309d6f){const _0x1bf9d8=a80_0x3562;if(_0x309d6f)return _0x309d6f[_0x1bf9d8('0x1f')](_0x372e1a)['then'](function(_0x197cea){return _0x197cea;});return null;};}function removeEntity(_0x578646){return function(_0x214f4d){if(_0x214f4d)return _0x214f4d['destroy']()['then'](function(){const _0x5388d8=a80_0x3562;_0x578646['status'](0xcc)[_0x5388d8('0x5d')]();});};}function handleEntityNotFound(_0x1a34ad){return function(_0x528f99){const _0x14d763=a80_0x3562;return!_0x528f99&&_0x1a34ad[_0x14d763('0x31')](0x194),_0x528f99;};}function handleError(_0x51a96b,_0x4a0a4c){return _0x4a0a4c=_0x4a0a4c||0x1f4,function(_0x3871d4){const _0x2b5b3d=a80_0x3562;logger[_0x2b5b3d('0x32')](_0x3871d4[_0x2b5b3d('0x34')]),_0x3871d4[_0x2b5b3d('0x23')]&&delete _0x3871d4['name'],_0x51a96b[_0x2b5b3d('0x10')](_0x4a0a4c)['send'](_0x3871d4);};}exports[_0x518b10('0x3d')]=function(_0x2865a4,_0x1a968d){const _0x1320cc=_0x518b10;let _0x3f730b={};const _0x378177={},_0x5a5be9={'count':0x0,'rows':[]},_0x583fde=_[_0x1320cc('0x15')](db[_0x1320cc('0x26')][_0x1320cc('0x27')],function(_0x26ad35){const _0x1a6bbc=_0x1320cc;return{'name':_0x26ad35[_0x1a6bbc('0x51')],'type':_0x26ad35[_0x1a6bbc('0x2d')][_0x1a6bbc('0x29')]};});_0x378177[_0x1320cc('0x6')]=_[_0x1320cc('0x15')](_0x583fde,'name'),_0x378177[_0x1320cc('0x22')]=_[_0x1320cc('0x36')](_0x2865a4[_0x1320cc('0x22')]),_0x378177[_0x1320cc('0x24')]=_[_0x1320cc('0x7')](_0x378177[_0x1320cc('0x6')],_0x378177[_0x1320cc('0x22')]),_0x3f730b['attributes']=_['intersection'](_0x378177[_0x1320cc('0x6')],qs['fields'](_0x2865a4[_0x1320cc('0x22')]['fields'])),_0x3f730b['attributes']=_0x3f730b[_0x1320cc('0xf')][_0x1320cc('0x46')]?_0x3f730b['attributes']:_0x378177[_0x1320cc('0x6')];typeof _0x2865a4[_0x1320cc('0x22')]['nolimit']===_0x1320cc('0x14')&&(_0x3f730b[_0x1320cc('0x1d')]=qs[_0x1320cc('0x1d')](_0x2865a4[_0x1320cc('0x22')]['limit']),_0x3f730b[_0x1320cc('0x45')]=qs[_0x1320cc('0x45')](_0x2865a4[_0x1320cc('0x22')]['offset']));_0x3f730b['order']=qs[_0x1320cc('0xc')](_0x2865a4[_0x1320cc('0x22')]['sort']),_0x3f730b[_0x1320cc('0x3f')]=qs[_0x1320cc('0x24')](_[_0x1320cc('0x2c')](_0x2865a4[_0x1320cc('0x22')],_0x378177[_0x1320cc('0x24')]),_0x583fde);_0x2865a4[_0x1320cc('0x22')][_0x1320cc('0x18')]&&(_0x3f730b[_0x1320cc('0x3f')]=_[_0x1320cc('0x40')](_0x3f730b[_0x1320cc('0x3f')],{[Op['or']]:_[_0x1320cc('0x15')](_0x583fde,function(_0x57486d){const _0x229e59=_0x1320cc;if(_0x57486d[_0x229e59('0x2d')]!==_0x229e59('0x9')){const _0x84e12c={};return _0x84e12c[_0x57486d[_0x229e59('0x23')]]={[Op['like']]:'%'+_0x2865a4['query']['filter']+'%'},_0x84e12c;}})}));_0x3f730b=_['merge']({},_0x3f730b,_0x2865a4['options']);const _0x3105b1={'where':_0x3f730b['where']};return db[_0x1320cc('0x26')][_0x1320cc('0x1a')](_0x3105b1)[_0x1320cc('0x55')](function(_0xd6ca4d){const _0x426228=_0x1320cc;return _0x5a5be9[_0x426228('0x1a')]=_0xd6ca4d,_0x2865a4[_0x426228('0x22')][_0x426228('0xe')]&&(_0x3f730b[_0x426228('0x37')]=[{'all':!![]}]),db[_0x426228('0x26')]['findAll'](_0x3f730b);})[_0x1320cc('0x55')](function(_0x51a902){const _0x4a26b7=_0x1320cc;return _0x5a5be9[_0x4a26b7('0x39')]=_0x51a902,_0x5a5be9;})[_0x1320cc('0x55')](respondWithFilteredResult(_0x1a968d,_0x3f730b))[_0x1320cc('0x48')](handleError(_0x1a968d,null));},exports['show']=function(_0x1cac19,_0x499496){const _0x4e51f8=_0x518b10;let _0x41d80d={'raw':!![],'where':{'id':_0x1cac19[_0x4e51f8('0x5f')]['id']}};const _0x588a40={};return _0x588a40[_0x4e51f8('0x6')]=_[_0x4e51f8('0x36')](db['ChatMessage']['rawAttributes']),_0x588a40[_0x4e51f8('0x22')]=_['keys'](_0x1cac19[_0x4e51f8('0x22')]),_0x588a40[_0x4e51f8('0x24')]=_['intersection'](_0x588a40[_0x4e51f8('0x6')],_0x588a40[_0x4e51f8('0x22')]),_0x41d80d[_0x4e51f8('0xf')]=_[_0x4e51f8('0x7')](_0x588a40[_0x4e51f8('0x6')],qs[_0x4e51f8('0x58')](_0x1cac19[_0x4e51f8('0x22')][_0x4e51f8('0x58')])),_0x41d80d[_0x4e51f8('0xf')]=_0x41d80d[_0x4e51f8('0xf')][_0x4e51f8('0x46')]?_0x41d80d['attributes']:_0x588a40[_0x4e51f8('0x6')],_0x1cac19[_0x4e51f8('0x22')][_0x4e51f8('0xe')]&&(_0x41d80d[_0x4e51f8('0x37')]=[{'all':!![]}]),_0x41d80d=_[_0x4e51f8('0x40')]({},_0x41d80d,_0x1cac19['options']),db[_0x4e51f8('0x26')][_0x4e51f8('0x5a')](_0x41d80d)[_0x4e51f8('0x55')](handleEntityNotFound(_0x499496,null))[_0x4e51f8('0x55')](respondWithResult(_0x499496,null))[_0x4e51f8('0x48')](handleError(_0x499496,null));},exports[_0x518b10('0x17')]=function(_0x17d63d,_0x574576){const _0x12df39=_0x518b10;return db[_0x12df39('0x26')][_0x12df39('0x17')](_0x17d63d[_0x12df39('0x20')],{})[_0x12df39('0x55')](respondWithResult(_0x574576,0xc9))[_0x12df39('0x48')](handleError(_0x574576,null));},exports[_0x518b10('0x1f')]=function(_0x2c8952,_0x303f5f){const _0x32e0af=_0x518b10;return _0x2c8952[_0x32e0af('0x20')]['id']&&delete _0x2c8952[_0x32e0af('0x20')]['id'],db[_0x32e0af('0x26')][_0x32e0af('0x5a')]({'where':{'id':_0x2c8952[_0x32e0af('0x5f')]['id']}})['then'](handleEntityNotFound(_0x303f5f,null))['then'](saveUpdates(_0x2c8952[_0x32e0af('0x20')],null))[_0x32e0af('0x55')](respondWithResult(_0x303f5f,null))[_0x32e0af('0x48')](handleError(_0x303f5f,null));},exports[_0x518b10('0x11')]=function(_0x39bd26,_0x320cce){const _0x1409b4=_0x518b10;return db[_0x1409b4('0x26')][_0x1409b4('0x5a')]({'where':{'id':_0x39bd26[_0x1409b4('0x5f')]['id']}})[_0x1409b4('0x55')](handleEntityNotFound(_0x320cce,null))[_0x1409b4('0x55')](removeEntity(_0x320cce,null))['catch'](handleError(_0x320cce,null));},exports[_0x518b10('0x43')]=function(_0x427d1e,_0x2f4bd5){const _0x1a8238=_0x518b10;return db[_0x1a8238('0x26')]['describe']()[_0x1a8238('0x55')](respondWithResult(_0x2f4bd5,null))['catch'](handleError(_0x2f4bd5,null));},exports[_0x518b10('0x8')]=function(_0x45b399,_0x52bea6){const _0xf68061=_0x518b10,_0x50db30={'channel':_0xf68061('0x4c')};return _0x45b399[_0xf68061('0x20')]['id']&&delete _0x45b399[_0xf68061('0x20')]['id'],_0x45b399[_0xf68061('0x20')][_0xf68061('0x2e')]=!![],_0x45b399['body'][_0xf68061('0x5c')]=moment()[_0xf68061('0x30')](_0xf68061('0x53')),_0x45b399['body'][_0xf68061('0x4f')]=_0x45b399[_0xf68061('0x20')][_0xf68061('0x4f')]||_0x45b399[_0xf68061('0x3')]['id'],db['ChatMessage'][_0xf68061('0x5a')]({'where':{'id':_0x45b399[_0xf68061('0x5f')]['id'],'UserId':null},'include':[{'model':db[_0xf68061('0x4')],'as':_0xf68061('0x5e')}]})[_0xf68061('0x55')](handleEntityNotFound(_0x52bea6,null))[_0xf68061('0x55')](saveUpdates(_0x45b399['body'],null))[_0xf68061('0x55')](function(_0x3c3cd2){const _0x3f534c=_0xf68061;if(_0x3c3cd2)return _0x50db30['message']=_0x3c3cd2[_0x3f534c('0x3c')]({'plain':!![]}),db[_0x3f534c('0x3b')][_0x3f534c('0x5a')]({'where':{'id':_0x3c3cd2[_0x3f534c('0x19')]}});return null;})['then'](handleEntityNotFound(_0x52bea6,null))[_0xf68061('0x55')](function(_0x81cf3a){const _0x5745f4=_0xf68061;if(_0x81cf3a)return _0x81cf3a['update']({'UserId':_0x45b399[_0x5745f4('0x20')]['UserId'],'read1stAt':_['isNil'](_0x81cf3a['read1stAt'])?moment()[_0x5745f4('0x30')]('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})['then'](function(_0x5a8589){const _0x5bf408=_0xf68061;if(_0x5a8589)return _0x50db30['interaction']=_0x5a8589[_0x5bf408('0x3c')]({'plain':!![]}),interaction_log[_0x5bf408('0x56')]('[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x45b399[_0x5bf408('0x3')]['id'],_0x45b399['user'][_0x5bf408('0x23')],_0x45b399[_0x5bf408('0x3')]['role'],_0x50db30['interaction']['id'],_0x45b399[_0x5bf408('0x20')]?JSON[_0x5bf408('0x5')](_0x45b399[_0x5bf408('0x20')]):'null'),respondWithRpcPromise(_0x5bf408('0x16'),'acceptMessage',_0x50db30);return null;})[_0xf68061('0x55')](function(_0x501417){const _0x5b443b=_0xf68061;if(_0x501417){if(_0x45b399['body'][_0x5b443b('0x42')])return _0x50db30['message'][_0x5b443b('0x41')]=util[_0x5b443b('0x30')]('SIP/%s',_0x45b399[_0x5b443b('0x3')][_0x5b443b('0x23')]),_0x50db30[_0x5b443b('0xa')][_0x5b443b('0x21')]=_0x50db30[_0x5b443b('0x21')],_0x50db30[_0x5b443b('0xa')][_0x5b443b('0x49')]=_0x5b443b('0x8'),respondWithRpcPromise(_0x5b443b('0x44'),_0x5b443b('0x44'),{'event':_0x5b443b('0x33'),'message':_[_0x5b443b('0x40')](_0x50db30[_0x5b443b('0xa')],JSON[_0x5b443b('0x1c')](_0x50db30['interaction'][_0x5b443b('0x12')]))},client9002)[_0x5b443b('0x55')](function(){return _0x50db30;});return _0x50db30;}return null;})[_0xf68061('0x55')](respondWithResult(_0x52bea6,null))['catch'](handleError(_0x52bea6,null));},exports['reject']=function(_0x3b56a4,_0x5bae30){const _0x33988a=_0x518b10,_0x438b6e={'agent':{},'channel':_0x33988a('0x4c')};return _0x3b56a4[_0x33988a('0x20')]['id']&&delete _0x3b56a4[_0x33988a('0x20')]['id'],_0x3b56a4[_0x33988a('0x20')][_0x33988a('0x4f')]=_0x3b56a4['body'][_0x33988a('0x4f')]||_0x3b56a4[_0x33988a('0x3')]['id'],_0x438b6e[_0x33988a('0x4d')]['id']=_0x3b56a4[_0x33988a('0x20')][_0x33988a('0x4f')],db[_0x33988a('0x26')]['findOne']({'where':{'id':_0x3b56a4[_0x33988a('0x5f')]['id'],'UserId':null}})[_0x33988a('0x55')](handleEntityNotFound(_0x5bae30,null))['then'](function(_0xa6ba7a){const _0x32f93e=_0x33988a;if(_0xa6ba7a)return _0x438b6e[_0x32f93e('0xa')]=_0xa6ba7a['get']({'plain':!![]}),db['ChatInteraction'][_0x32f93e('0x5a')]({'where':{'id':_0xa6ba7a['ChatInteractionId']}});return null;})[_0x33988a('0x55')](handleEntityNotFound(_0x5bae30,null))[_0x33988a('0x55')](function(_0xaf5221){const _0x746850=_0x33988a;if(_0xaf5221)return _0x438b6e[_0x746850('0x28')]=_0xaf5221[_0x746850('0x3c')]({'plain':!![]}),interaction_log[_0x746850('0x56')](_0x746850('0x38'),_0x3b56a4[_0x746850('0x3')]['id'],_0x3b56a4[_0x746850('0x3')][_0x746850('0x23')],_0x3b56a4[_0x746850('0x3')]['role'],_0x438b6e['interaction']['id'],_0x3b56a4['body']?JSON[_0x746850('0x5')](_0x3b56a4[_0x746850('0x20')]):_0x746850('0x57')),respondWithRpcPromise('RejectMessage',_0x746850('0x4e'),_0x438b6e);return null;})[_0x33988a('0x55')](function(_0x1b0845){const _0x4c1bf1=_0x33988a;if(_0x1b0845)return _0x1b0845[_0x4c1bf1('0xa')][_0x4c1bf1('0x41')]=util[_0x4c1bf1('0x30')]('SIP/%s',_0x3b56a4['user'][_0x4c1bf1('0x23')]),_0x1b0845[_0x4c1bf1('0xa')]['channel']=_0x438b6e['channel'],_0x1b0845[_0x4c1bf1('0xa')][_0x4c1bf1('0x49')]=_0x4c1bf1('0x2a'),respondWithRpcPromise(_0x4c1bf1('0x44'),'EventManager',{'event':_0x4c1bf1('0x1'),'message':_0x1b0845['message']},client9002),_0x438b6e;return null;})[_0x33988a('0x55')](respondWithResult(_0x5bae30,null))['catch'](handleError(_0x5bae30,null));}; \ No newline at end of file +const a80_0x4f83=['get','query','ChatInteraction','api','null','set','register','fields','agent','format','SIP/%s','channel','AcceptMessage','include','pick','[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','request\x20sent','../../config/logger','CmContact','order','Content-Range','count','catch','findOne','util','offset','map','stringify','attributes','chat','sort','EventManager','then','ChatMessage,\x20%s,\x20%s,\x20%s','name','show','event','error','VIRTUAL','formData','index','create','length','http','Contact','params','role','body','client','interface','sendStatus','ChatMessage','../../components/parsers/qs','where','key','options','isNil','user','model','moment','status','limit','info','read','update','json','message','YYYY-MM-DD\x20HH:mm:ss','accept','type','findAll','keys','nolimit','fieldName','stack','undefined','read1stAt','code','ChatInteractionId','rawAttributes','RejectMessage','merge','includeAll','debug','interaction','ChatMessage,\x20%s,\x20%s','result','UserId','./chatMessage.socket','filter','filters','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','chat-interactions','destroy','intersection','../../mysqldb','reject'];(function(_0x25b42d,_0x4f83ee){const _0x1fc5e7=function(_0x4a925b){while(--_0x4a925b){_0x25b42d['push'](_0x25b42d['shift']());}};_0x1fc5e7(++_0x4f83ee);}(a80_0x4f83,0x1ac));const a80_0x1fc5=function(_0x25b42d,_0x4f83ee){_0x25b42d=_0x25b42d-0x0;let _0x1fc5e7=a80_0x4f83[_0x25b42d];return _0x1fc5e7;};const _0x441c77=a80_0x1fc5;'use strict';const moment=require(_0x441c77('0x13')),util=require(_0x441c77('0x51')),_=require('lodash'),qs=require(_0x441c77('0xc')),logger=require('../../config/logger')(_0x441c77('0x3c')),{getSocket}=require('../../rediscache'),db=require(_0x441c77('0x37'))['db'],{Op}=require('sequelize'),interaction_log=require(_0x441c77('0x4a'))(_0x441c77('0x34')),socket=getSocket();require(_0x441c77('0x30'))[_0x441c77('0x3f')](socket);const jayson=require('jayson/promise'),client=jayson[_0x441c77('0x8')][_0x441c77('0x3')]({'port':0x232c}),client9002=jayson[_0x441c77('0x8')][_0x441c77('0x3')]({'port':0x232a});function respondWithRpcPromise(_0x4a925b,_0x493092,_0x56748d,_0x2f9358){return new Promise(function(_0x2c0eaa,_0x4c9918){const _0x1db94=a80_0x1fc5,_0x3a2805=_0x2f9358||client;return _0x3a2805['request'](_0x4a925b,_0x56748d)[_0x1db94('0x59')](function(_0x566cfd){const _0x241d64=_0x1db94;logger[_0x241d64('0x16')](_0x241d64('0x2d'),_0x493092,_0x241d64('0x49')),logger[_0x241d64('0x2b')](_0x241d64('0x5a'),_0x493092,_0x241d64('0x49'),JSON[_0x241d64('0x54')](_0x566cfd));if(_0x566cfd[_0x241d64('0x5e')]){if(_0x566cfd[_0x241d64('0x5e')][_0x241d64('0x25')]===0x1f4)return logger[_0x241d64('0x5e')](_0x241d64('0x2d'),_0x493092,_0x566cfd[_0x241d64('0x5e')][_0x241d64('0x1a')]),_0x4c9918(_0x566cfd['error'][_0x241d64('0x1a')]);return logger[_0x241d64('0x5e')](_0x241d64('0x2d'),_0x493092,_0x566cfd[_0x241d64('0x5e')][_0x241d64('0x1a')]),_0x2c0eaa(_0x566cfd[_0x241d64('0x5e')][_0x241d64('0x1a')]);}else logger[_0x241d64('0x16')](_0x241d64('0x2d'),_0x493092,_0x241d64('0x49')),_0x2c0eaa(_0x566cfd[_0x241d64('0x2e')][_0x241d64('0x1a')]);})[_0x1db94('0x4f')](function(_0xd71e71){logger['error']('ChatMessage,\x20%s,\x20%s',_0x493092,_0xd71e71),_0x4c9918(_0xd71e71);});});}function respondWithResult(_0x59374a,_0x2b0bbe){return _0x2b0bbe=_0x2b0bbe||0xc8,function(_0x3b91bd){const _0x423778=a80_0x1fc5;if(_0x3b91bd)return _0x59374a['status'](_0x2b0bbe)[_0x423778('0x19')](_0x3b91bd);};}function respondWithFilteredResult(_0x5bf137,_0x442c6e){return function(_0x1d4b4f){const _0x10ef14=a80_0x1fc5;if(_0x1d4b4f){const _0x5276f9=_0x1d4b4f[_0x10ef14('0x4e')],_0x6b3e25=_0x442c6e['offset'];let _0x129119=_0x442c6e[_0x10ef14('0x52')]+_0x442c6e[_0x10ef14('0x15')],_0x38b08e;return _0x129119>=_0x5276f9?(_0x129119=_0x5276f9,_0x38b08e=0xc8):_0x38b08e=0xce,_0x5bf137[_0x10ef14('0x14')](_0x38b08e),_0x5bf137[_0x10ef14('0x3e')](_0x10ef14('0x4d'),_0x6b3e25+'-'+_0x129119+'/'+_0x5276f9)['json'](_0x1d4b4f);}return null;};}function saveUpdates(_0xacd271){return function(_0x4ffed2){const _0x47574b=a80_0x1fc5;if(_0x4ffed2)return _0x4ffed2[_0x47574b('0x18')](_0xacd271)['then'](function(_0x2055fd){return _0x2055fd;});return null;};}function removeEntity(_0x144983){return function(_0x1f3e0a){const _0x30fea6=a80_0x1fc5;if(_0x1f3e0a)return _0x1f3e0a[_0x30fea6('0x35')]()[_0x30fea6('0x59')](function(){const _0x1f8e3e=_0x30fea6;_0x144983[_0x1f8e3e('0x14')](0xcc)['end']();});};}function handleEntityNotFound(_0x48bc59){return function(_0x18ac92){const _0x41be3b=a80_0x1fc5;return!_0x18ac92&&_0x48bc59[_0x41be3b('0xa')](0x194),_0x18ac92;};}function handleError(_0x23028b,_0x1a35d1){return _0x1a35d1=_0x1a35d1||0x1f4,function(_0x3dc297){const _0x237b90=a80_0x1fc5;logger[_0x237b90('0x5e')](_0x3dc297[_0x237b90('0x22')]),_0x3dc297[_0x237b90('0x5b')]&&delete _0x3dc297[_0x237b90('0x5b')],_0x23028b[_0x237b90('0x14')](_0x1a35d1)['send'](_0x3dc297);};}exports[_0x441c77('0x0')]=function(_0x107a65,_0x549bdb){const _0x32ba7c=_0x441c77;let _0x49f230={};const _0x1bdc74={},_0x97dd60={'count':0x0,'rows':[]},_0x36e19e=_['map'](db[_0x32ba7c('0xb')][_0x32ba7c('0x27')],function(_0x5e5e4f){const _0x20c565=_0x32ba7c;return{'name':_0x5e5e4f[_0x20c565('0x21')],'type':_0x5e5e4f[_0x20c565('0x1d')][_0x20c565('0xe')]};});_0x1bdc74[_0x32ba7c('0x12')]=_[_0x32ba7c('0x53')](_0x36e19e,_0x32ba7c('0x5b')),_0x1bdc74[_0x32ba7c('0x3a')]=_[_0x32ba7c('0x1f')](_0x107a65['query']),_0x1bdc74[_0x32ba7c('0x32')]=_['intersection'](_0x1bdc74[_0x32ba7c('0x12')],_0x1bdc74['query']),_0x49f230[_0x32ba7c('0x55')]=_[_0x32ba7c('0x36')](_0x1bdc74[_0x32ba7c('0x12')],qs[_0x32ba7c('0x40')](_0x107a65['query'][_0x32ba7c('0x40')])),_0x49f230[_0x32ba7c('0x55')]=_0x49f230[_0x32ba7c('0x55')][_0x32ba7c('0x2')]?_0x49f230[_0x32ba7c('0x55')]:_0x1bdc74[_0x32ba7c('0x12')];typeof _0x107a65[_0x32ba7c('0x3a')][_0x32ba7c('0x20')]===_0x32ba7c('0x23')&&(_0x49f230[_0x32ba7c('0x15')]=qs[_0x32ba7c('0x15')](_0x107a65['query'][_0x32ba7c('0x15')]),_0x49f230[_0x32ba7c('0x52')]=qs[_0x32ba7c('0x52')](_0x107a65['query'][_0x32ba7c('0x52')]));_0x49f230[_0x32ba7c('0x4c')]=qs[_0x32ba7c('0x57')](_0x107a65[_0x32ba7c('0x3a')][_0x32ba7c('0x57')]),_0x49f230[_0x32ba7c('0xd')]=qs[_0x32ba7c('0x32')](_[_0x32ba7c('0x47')](_0x107a65[_0x32ba7c('0x3a')],_0x1bdc74[_0x32ba7c('0x32')]),_0x36e19e);_0x107a65[_0x32ba7c('0x3a')]['filter']&&(_0x49f230['where']=_[_0x32ba7c('0x29')](_0x49f230[_0x32ba7c('0xd')],{[Op['or']]:_[_0x32ba7c('0x53')](_0x36e19e,function(_0x56a9f4){const _0x44c737=_0x32ba7c;if(_0x56a9f4[_0x44c737('0x1d')]!==_0x44c737('0x5f')){const _0x588058={};return _0x588058[_0x56a9f4[_0x44c737('0x5b')]]={[Op['like']]:'%'+_0x107a65[_0x44c737('0x3a')][_0x44c737('0x31')]+'%'},_0x588058;}})}));_0x49f230=_[_0x32ba7c('0x29')]({},_0x49f230,_0x107a65['options']);const _0x2d1e6b={'where':_0x49f230[_0x32ba7c('0xd')]};return db[_0x32ba7c('0xb')]['count'](_0x2d1e6b)[_0x32ba7c('0x59')](function(_0x432ed1){const _0x430a9e=_0x32ba7c;return _0x97dd60[_0x430a9e('0x4e')]=_0x432ed1,_0x107a65['query'][_0x430a9e('0x2a')]&&(_0x49f230[_0x430a9e('0x46')]=[{'all':!![]}]),db[_0x430a9e('0xb')][_0x430a9e('0x1e')](_0x49f230);})[_0x32ba7c('0x59')](function(_0xab6f63){return _0x97dd60['rows']=_0xab6f63,_0x97dd60;})['then'](respondWithFilteredResult(_0x549bdb,_0x49f230))[_0x32ba7c('0x4f')](handleError(_0x549bdb,null));},exports[_0x441c77('0x5c')]=function(_0x488c84,_0x446dc7){const _0x4a4529=_0x441c77;let _0x2b9dbf={'raw':!![],'where':{'id':_0x488c84[_0x4a4529('0x5')]['id']}};const _0x4d53c9={};return _0x4d53c9[_0x4a4529('0x12')]=_[_0x4a4529('0x1f')](db[_0x4a4529('0xb')]['rawAttributes']),_0x4d53c9[_0x4a4529('0x3a')]=_[_0x4a4529('0x1f')](_0x488c84[_0x4a4529('0x3a')]),_0x4d53c9[_0x4a4529('0x32')]=_['intersection'](_0x4d53c9[_0x4a4529('0x12')],_0x4d53c9[_0x4a4529('0x3a')]),_0x2b9dbf[_0x4a4529('0x55')]=_[_0x4a4529('0x36')](_0x4d53c9[_0x4a4529('0x12')],qs[_0x4a4529('0x40')](_0x488c84[_0x4a4529('0x3a')][_0x4a4529('0x40')])),_0x2b9dbf['attributes']=_0x2b9dbf['attributes'][_0x4a4529('0x2')]?_0x2b9dbf[_0x4a4529('0x55')]:_0x4d53c9[_0x4a4529('0x12')],_0x488c84[_0x4a4529('0x3a')][_0x4a4529('0x2a')]&&(_0x2b9dbf[_0x4a4529('0x46')]=[{'all':!![]}]),_0x2b9dbf=_['merge']({},_0x2b9dbf,_0x488c84[_0x4a4529('0xf')]),db[_0x4a4529('0xb')][_0x4a4529('0x50')](_0x2b9dbf)[_0x4a4529('0x59')](handleEntityNotFound(_0x446dc7,null))['then'](respondWithResult(_0x446dc7,null))[_0x4a4529('0x4f')](handleError(_0x446dc7,null));},exports[_0x441c77('0x1')]=function(_0x4283cd,_0x3b89b7){const _0x46976f=_0x441c77;return db[_0x46976f('0xb')][_0x46976f('0x1')](_0x4283cd[_0x46976f('0x7')],{})[_0x46976f('0x59')](respondWithResult(_0x3b89b7,0xc9))['catch'](handleError(_0x3b89b7,null));},exports[_0x441c77('0x18')]=function(_0x30eae9,_0x1d7ae3){const _0x10743e=_0x441c77;return _0x30eae9[_0x10743e('0x7')]['id']&&delete _0x30eae9['body']['id'],db[_0x10743e('0xb')][_0x10743e('0x50')]({'where':{'id':_0x30eae9[_0x10743e('0x5')]['id']}})['then'](handleEntityNotFound(_0x1d7ae3,null))[_0x10743e('0x59')](saveUpdates(_0x30eae9[_0x10743e('0x7')],null))[_0x10743e('0x59')](respondWithResult(_0x1d7ae3,null))[_0x10743e('0x4f')](handleError(_0x1d7ae3,null));},exports['destroy']=function(_0x3ec9f1,_0x3c8f43){const _0x1bc2dc=_0x441c77;return db[_0x1bc2dc('0xb')]['findOne']({'where':{'id':_0x3ec9f1['params']['id']}})[_0x1bc2dc('0x59')](handleEntityNotFound(_0x3c8f43,null))[_0x1bc2dc('0x59')](removeEntity(_0x3c8f43,null))[_0x1bc2dc('0x4f')](handleError(_0x3c8f43,null));},exports['describe']=function(_0x33807b,_0x55f914){const _0x2609b2=_0x441c77;return db[_0x2609b2('0xb')]['describe']()['then'](respondWithResult(_0x55f914,null))[_0x2609b2('0x4f')](handleError(_0x55f914,null));},exports['accept']=function(_0x417dbd,_0x2697ee){const _0x2591b4=_0x441c77,_0x12e5d1={'channel':_0x2591b4('0x56')};return _0x417dbd[_0x2591b4('0x7')]['id']&&delete _0x417dbd[_0x2591b4('0x7')]['id'],_0x417dbd['body'][_0x2591b4('0x17')]=!![],_0x417dbd[_0x2591b4('0x7')]['readAt']=moment()[_0x2591b4('0x42')](_0x2591b4('0x1b')),_0x417dbd[_0x2591b4('0x7')][_0x2591b4('0x2f')]=_0x417dbd[_0x2591b4('0x7')][_0x2591b4('0x2f')]||_0x417dbd['user']['id'],db[_0x2591b4('0xb')][_0x2591b4('0x50')]({'where':{'id':_0x417dbd['params']['id'],'UserId':null},'include':[{'model':db[_0x2591b4('0x4b')],'as':_0x2591b4('0x4')}]})[_0x2591b4('0x59')](handleEntityNotFound(_0x2697ee,null))['then'](saveUpdates(_0x417dbd[_0x2591b4('0x7')],null))[_0x2591b4('0x59')](function(_0x543989){const _0x58d935=_0x2591b4;if(_0x543989)return _0x12e5d1[_0x58d935('0x1a')]=_0x543989[_0x58d935('0x39')]({'plain':!![]}),db['ChatInteraction'][_0x58d935('0x50')]({'where':{'id':_0x543989['ChatInteractionId']}});return null;})[_0x2591b4('0x59')](handleEntityNotFound(_0x2697ee,null))[_0x2591b4('0x59')](function(_0x1ce9fe){const _0x37fca3=_0x2591b4;if(_0x1ce9fe)return _0x1ce9fe['update']({'UserId':_0x417dbd[_0x37fca3('0x7')][_0x37fca3('0x2f')],'read1stAt':_[_0x37fca3('0x10')](_0x1ce9fe[_0x37fca3('0x24')])?moment()['format'](_0x37fca3('0x1b')):undefined});return null;})[_0x2591b4('0x59')](function(_0x5c2f88){const _0x41fc54=_0x2591b4;if(_0x5c2f88)return _0x12e5d1[_0x41fc54('0x2c')]=_0x5c2f88[_0x41fc54('0x39')]({'plain':!![]}),interaction_log[_0x41fc54('0x16')](_0x41fc54('0x48'),_0x417dbd[_0x41fc54('0x11')]['id'],_0x417dbd[_0x41fc54('0x11')][_0x41fc54('0x5b')],_0x417dbd[_0x41fc54('0x11')][_0x41fc54('0x6')],_0x12e5d1['interaction']['id'],_0x417dbd[_0x41fc54('0x7')]?JSON['stringify'](_0x417dbd['body']):'null'),respondWithRpcPromise(_0x41fc54('0x45'),'acceptMessage',_0x12e5d1);return null;})[_0x2591b4('0x59')](function(_0xa5b70b){const _0x24494b=_0x2591b4;if(_0xa5b70b){if(_0x417dbd[_0x24494b('0x7')]['manual'])return _0x12e5d1['message'][_0x24494b('0x9')]=util['format'](_0x24494b('0x43'),_0x417dbd['user']['name']),_0x12e5d1[_0x24494b('0x1a')]['channel']=_0x12e5d1[_0x24494b('0x44')],_0x12e5d1[_0x24494b('0x1a')][_0x24494b('0x5d')]=_0x24494b('0x1c'),respondWithRpcPromise(_0x24494b('0x58'),_0x24494b('0x58'),{'event':'acceptmessage','message':_[_0x24494b('0x29')](_0x12e5d1[_0x24494b('0x1a')],JSON['parse'](_0x12e5d1[_0x24494b('0x2c')][_0x24494b('0x60')]))},client9002)['then'](function(){return _0x12e5d1;});return _0x12e5d1;}return null;})[_0x2591b4('0x59')](respondWithResult(_0x2697ee,null))[_0x2591b4('0x4f')](handleError(_0x2697ee,null));},exports['reject']=function(_0x4a1825,_0x4f7e67){const _0x359499=_0x441c77,_0x1024c4={'agent':{},'channel':_0x359499('0x56')};return _0x4a1825[_0x359499('0x7')]['id']&&delete _0x4a1825[_0x359499('0x7')]['id'],_0x4a1825['body'][_0x359499('0x2f')]=_0x4a1825[_0x359499('0x7')][_0x359499('0x2f')]||_0x4a1825[_0x359499('0x11')]['id'],_0x1024c4[_0x359499('0x41')]['id']=_0x4a1825[_0x359499('0x7')][_0x359499('0x2f')],db[_0x359499('0xb')][_0x359499('0x50')]({'where':{'id':_0x4a1825[_0x359499('0x5')]['id'],'UserId':null}})[_0x359499('0x59')](handleEntityNotFound(_0x4f7e67,null))[_0x359499('0x59')](function(_0x5d849a){const _0x152dc4=_0x359499;if(_0x5d849a)return _0x1024c4[_0x152dc4('0x1a')]=_0x5d849a['get']({'plain':!![]}),db[_0x152dc4('0x3b')][_0x152dc4('0x50')]({'where':{'id':_0x5d849a[_0x152dc4('0x26')]}});return null;})[_0x359499('0x59')](handleEntityNotFound(_0x4f7e67,null))[_0x359499('0x59')](function(_0x2914af){const _0x1413a4=_0x359499;if(_0x2914af)return _0x1024c4[_0x1413a4('0x2c')]=_0x2914af[_0x1413a4('0x39')]({'plain':!![]}),interaction_log[_0x1413a4('0x16')](_0x1413a4('0x33'),_0x4a1825[_0x1413a4('0x11')]['id'],_0x4a1825[_0x1413a4('0x11')][_0x1413a4('0x5b')],_0x4a1825[_0x1413a4('0x11')][_0x1413a4('0x6')],_0x1024c4['interaction']['id'],_0x4a1825[_0x1413a4('0x7')]?JSON['stringify'](_0x4a1825[_0x1413a4('0x7')]):_0x1413a4('0x3d')),respondWithRpcPromise(_0x1413a4('0x28'),'rejectMessage',_0x1024c4);return null;})[_0x359499('0x59')](function(_0x4cab2f){const _0x61277d=_0x359499;if(_0x4cab2f)return _0x4cab2f['message'][_0x61277d('0x9')]=util['format']('SIP/%s',_0x4a1825[_0x61277d('0x11')][_0x61277d('0x5b')]),_0x4cab2f[_0x61277d('0x1a')][_0x61277d('0x44')]=_0x1024c4[_0x61277d('0x44')],_0x4cab2f['message'][_0x61277d('0x5d')]=_0x61277d('0x38'),respondWithRpcPromise(_0x61277d('0x58'),_0x61277d('0x58'),{'event':'rejectmessage','message':_0x4cab2f['message']},client9002),_0x1024c4;return null;})['then'](respondWithResult(_0x4f7e67,null))[_0x359499('0x4f')](handleError(_0x4f7e67,null));}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.events.js b/server/api/chatMessage/chatMessage.events.js index 832e911..31034e3 100644 --- a/server/api/chatMessage/chatMessage.events.js +++ b/server/api/chatMessage/chatMessage.events.js @@ -1 +1 @@ -const a81_0x479b=['save','setMaxListeners','exports','undefined','../../mysqldb','update','emit'];(function(_0x1a5f5a,_0x479b1e){const _0x5770ab=function(_0x1df6ec){while(--_0x1df6ec){_0x1a5f5a['push'](_0x1a5f5a['shift']());}};_0x5770ab(++_0x479b1e);}(a81_0x479b,0x79));const a81_0x5770=function(_0x1a5f5a,_0x479b1e){_0x1a5f5a=_0x1a5f5a-0x0;let _0x5770ab=a81_0x479b[_0x1a5f5a];return _0x5770ab;};const _0x36eb3e=a81_0x5770;'use strict';const EventEmitter=require('events'),ChatMessage=require(_0x36eb3e('0x2'))['db']['ChatMessage'],ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x36eb3e('0x6')](0x0);const events={'afterCreate':_0x36eb3e('0x5'),'afterUpdate':_0x36eb3e('0x3'),'afterDestroy':'remove'};function emitEvent(_0x1df6ec){return function(_0x51ade9){const _0x51b9b7=a81_0x5770;ChatMessageEvents[_0x51b9b7('0x4')](_0x1df6ec+':'+_0x51ade9['id'],_0x51ade9),ChatMessageEvents['emit'](_0x1df6ec,_0x51ade9);};}for(const e in events){if(typeof events[e]!==_0x36eb3e('0x1')){const event=events[e];ChatMessage['addHook'](e,emitEvent(event));}}module[_0x36eb3e('0x0')]=ChatMessageEvents; \ No newline at end of file +const a81_0x4b1d=['exports','emit','ChatMessage','undefined','events','addHook'];(function(_0x1bbfe4,_0x4b1d2b){const _0x4b950b=function(_0x19f5dc){while(--_0x19f5dc){_0x1bbfe4['push'](_0x1bbfe4['shift']());}};_0x4b950b(++_0x4b1d2b);}(a81_0x4b1d,0x1b8));const a81_0x4b95=function(_0x1bbfe4,_0x4b1d2b){_0x1bbfe4=_0x1bbfe4-0x0;let _0x4b950b=a81_0x4b1d[_0x1bbfe4];return _0x4b950b;};const _0x1907f4=a81_0x4b95;'use strict';const EventEmitter=require(_0x1907f4('0x2')),ChatMessage=require('../../mysqldb')['db'][_0x1907f4('0x0')],ChatMessageEvents=new EventEmitter();ChatMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x19f5dc){return function(_0xc12cef){const _0x49d7c7=a81_0x4b95;ChatMessageEvents[_0x49d7c7('0x5')](_0x19f5dc+':'+_0xc12cef['id'],_0xc12cef),ChatMessageEvents[_0x49d7c7('0x5')](_0x19f5dc,_0xc12cef);};}for(const e in events){if(typeof events[e]!==_0x1907f4('0x1')){const event=events[e];ChatMessage[_0x1907f4('0x3')](e,emitEvent(event));}}module[_0x1907f4('0x4')]=ChatMessageEvents; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.model.js b/server/api/chatMessage/chatMessage.model.js index 3914e3d..b07c549 100644 --- a/server/api/chatMessage/chatMessage.model.js +++ b/server/api/chatMessage/chatMessage.model.js @@ -1 +1 @@ -const a82_0xf1fa=['direction','./chatMessage.attributes','update','isNil','FULLTEXT','get','lodash','utf8mb4_unicode_ci','then','ChatMessage','createdAt','catch','fti_chat_messages','secret','utf8mb4','ChatInteraction','define','toLowerCase'];(function(_0x22ab67,_0xf1fad0){const _0x412127=function(_0x2c5adc){while(--_0x2c5adc){_0x22ab67['push'](_0x22ab67['shift']());}};_0x412127(++_0xf1fad0);}(a82_0xf1fa,0xb0));const a82_0x4121=function(_0x22ab67,_0xf1fad0){_0x22ab67=_0x22ab67-0x0;let _0x412127=a82_0xf1fa[_0x22ab67];return _0x412127;};const _0x33b65f=a82_0x4121;'use strict';const _=require(_0x33b65f('0xa')),attributes=require(_0x33b65f('0x5'));module['exports']=function(_0x2c5adc){const _0x5d47c9=_0x33b65f,_0x38f6f7=_0x2c5adc['models'],_0x54c700=_0x2c5adc[_0x5d47c9('0x2')](_0x5d47c9('0xd'),attributes,{'tableName':'chat_messages','paranoid':![],'indexes':[{'name':_0x5d47c9('0x10'),'fields':['body'],'type':_0x5d47c9('0x8')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x4d70ba){const _0x5aefeb=_0x5d47c9,_0x5a5753=_0x4d70ba[_0x5aefeb('0x9')]({'plain':!![]});(_0x5a5753['direction']['toLowerCase']()==='in'||_0x5a5753[_0x5aefeb('0x4')][_0x5aefeb('0x3')]()==='out'&&!_0x5a5753[_0x5aefeb('0x11')]&&!_[_0x5aefeb('0x7')](_0x5a5753['UserId']))&&_0x38f6f7[_0x5aefeb('0x1')]['findOne']({'where':{'id':_0x5a5753['ChatInteractionId']}})[_0x5aefeb('0xc')](function(_0x108446){const _0x2f0dac=_0x5aefeb;_0x108446&&_0x108446[_0x2f0dac('0x6')]({'lastMsgAt':_0x5a5753[_0x2f0dac('0xe')],'lastMsgDirection':_0x5a5753[_0x2f0dac('0x4')][_0x2f0dac('0x3')]()});})[_0x5aefeb('0xf')](function(_0xc77bbc){console['error'](_0xc77bbc);});}},'charset':_0x5d47c9('0x0'),'collate':_0x5d47c9('0xb')});return _0x54c700;}; \ No newline at end of file +const a82_0xbf08=['update','catch','ChatInteractionId','UserId','lodash','toLowerCase','body','chat_messages','exports','findOne','ChatMessage','secret','define','FULLTEXT','direction','isNil','models','./chatMessage.attributes','get','fti_chat_messages'];(function(_0x4c6404,_0xbf0816){const _0x553585=function(_0xe35514){while(--_0xe35514){_0x4c6404['push'](_0x4c6404['shift']());}};_0x553585(++_0xbf0816);}(a82_0xbf08,0x18c));const a82_0x5535=function(_0x4c6404,_0xbf0816){_0x4c6404=_0x4c6404-0x0;let _0x553585=a82_0xbf08[_0x4c6404];return _0x553585;};const _0x3cec58=a82_0x5535;'use strict';const _=require(_0x3cec58('0x8')),attributes=require(_0x3cec58('0x1'));module[_0x3cec58('0xc')]=function(_0xe35514){const _0x527cef=_0x3cec58,_0x5b98ed=_0xe35514[_0x527cef('0x0')],_0x14aec9=_0xe35514[_0x527cef('0x10')](_0x527cef('0xe'),attributes,{'tableName':_0x527cef('0xb'),'paranoid':![],'indexes':[{'name':_0x527cef('0x3'),'fields':[_0x527cef('0xa')],'type':_0x527cef('0x11')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x528ae6){const _0x1c5fbf=_0x527cef,_0x470dda=_0x528ae6[_0x1c5fbf('0x2')]({'plain':!![]});(_0x470dda[_0x1c5fbf('0x12')]['toLowerCase']()==='in'||_0x470dda['direction'][_0x1c5fbf('0x9')]()==='out'&&!_0x470dda[_0x1c5fbf('0xf')]&&!_[_0x1c5fbf('0x13')](_0x470dda[_0x1c5fbf('0x7')]))&&_0x5b98ed['ChatInteraction'][_0x1c5fbf('0xd')]({'where':{'id':_0x470dda[_0x1c5fbf('0x6')]}})['then'](function(_0x4a26f3){const _0x377115=_0x1c5fbf;_0x4a26f3&&_0x4a26f3[_0x377115('0x4')]({'lastMsgAt':_0x470dda['createdAt'],'lastMsgDirection':_0x470dda[_0x377115('0x12')][_0x377115('0x9')]()});})[_0x1c5fbf('0x5')](function(_0x3e3c5b){console['error'](_0x3e3c5b);});}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x14aec9;}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.rpc.js b/server/api/chatMessage/chatMessage.rpc.js index ef15cc8..fb82a80 100644 --- a/server/api/chatMessage/chatMessage.rpc.js +++ b/server/api/chatMessage/chatMessage.rpc.js @@ -1 +1 @@ -const a83_0x33a7=['catch','info','stringify','create','CreateChatMessage','then','register','../../mysqldb','../../config/logger','./chatMessage.socket','raw','rpc','options','ChatMessage','error','body'];(function(_0x530e18,_0x33a7a7){const _0x176d01=function(_0x11ef26){while(--_0x11ef26){_0x530e18['push'](_0x530e18['shift']());}};_0x176d01(++_0x33a7a7);}(a83_0x33a7,0x19f));const a83_0x176d=function(_0x530e18,_0x33a7a7){_0x530e18=_0x530e18-0x0;let _0x176d01=a83_0x33a7[_0x530e18];return _0x176d01;};const _0x1b9cbf=a83_0x176d;'use strict';const db=require(_0x1b9cbf('0x8'))['db'],logger=require(_0x1b9cbf('0x9'))(_0x1b9cbf('0xc')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x1b9cbf('0xa'))[_0x1b9cbf('0x7')](socket),exports[_0x1b9cbf('0x5')]=function(_0x11ef26){const _0x202b5e=this;return new Promise(function(_0xa359fe,_0x1ab98c){const _0x2e1c53=a83_0x176d;return db[_0x2e1c53('0xe')][_0x2e1c53('0x4')](_0x11ef26[_0x2e1c53('0x0')],{'raw':_0x11ef26[_0x2e1c53('0xd')]?_0x11ef26['options'][_0x2e1c53('0xb')]===undefined?!![]:![]:!![]})[_0x2e1c53('0x6')](function(_0x317bdc){const _0x124180=_0x2e1c53;logger[_0x124180('0x2')]('CreateChatMessage',_0x11ef26),logger['debug'](_0x124180('0x5'),_0x11ef26,JSON[_0x124180('0x3')](_0x317bdc)),_0xa359fe(_0x317bdc);})[_0x2e1c53('0x1')](function(_0x408bca){const _0x32d14b=_0x2e1c53;logger[_0x32d14b('0xf')](_0x32d14b('0x5'),_0x408bca['message'],_0x11ef26),_0x1ab98c(_0x202b5e['error'](0x1f4,_0x408bca['message']));});});}; \ No newline at end of file +const a83_0x3d2a=['CreateChatMessage','ChatMessage','then','stringify','body','create','../../mysqldb','./chatMessage.socket','debug','info','options','../../rediscache','catch','raw','../../config/logger','message'];(function(_0x49b535,_0x3d2aca){const _0x3b0c43=function(_0x3b6f98){while(--_0x3b6f98){_0x49b535['push'](_0x49b535['shift']());}};_0x3b0c43(++_0x3d2aca);}(a83_0x3d2a,0xeb));const a83_0x3b0c=function(_0x49b535,_0x3d2aca){_0x49b535=_0x49b535-0x0;let _0x3b0c43=a83_0x3d2a[_0x49b535];return _0x3b0c43;};const _0x4e79e6=a83_0x3b0c;'use strict';const db=require(_0x4e79e6('0xb'))['db'],logger=require(_0x4e79e6('0x3'))('rpc'),{getSocket}=require(_0x4e79e6('0x0')),socket=getSocket();require(_0x4e79e6('0xc'))['register'](socket),exports[_0x4e79e6('0x5')]=function(_0x3b6f98){const _0x3dc5a8=this;return new Promise(function(_0x296ddd,_0x3dff4c){const _0x3e4d9c=a83_0x3b0c;return db[_0x3e4d9c('0x6')][_0x3e4d9c('0xa')](_0x3b6f98[_0x3e4d9c('0x9')],{'raw':_0x3b6f98[_0x3e4d9c('0xf')]?_0x3b6f98[_0x3e4d9c('0xf')][_0x3e4d9c('0x2')]===undefined?!![]:![]:!![]})[_0x3e4d9c('0x7')](function(_0x138ece){const _0x239c5a=_0x3e4d9c;logger[_0x239c5a('0xe')]('CreateChatMessage',_0x3b6f98),logger[_0x239c5a('0xd')]('CreateChatMessage',_0x3b6f98,JSON[_0x239c5a('0x8')](_0x138ece)),_0x296ddd(_0x138ece);})[_0x3e4d9c('0x1')](function(_0x341b1c){const _0x18bb0d=_0x3e4d9c;logger['error'](_0x18bb0d('0x5'),_0x341b1c[_0x18bb0d('0x4')],_0x3b6f98),_0x3dff4c(_0x3dc5a8['error'](0x1f4,_0x341b1c['message']));});});}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.socket.js b/server/api/chatMessage/chatMessage.socket.js index 95691f6..477cb6f 100644 --- a/server/api/chatMessage/chatMessage.socket.js +++ b/server/api/chatMessage/chatMessage.socket.js @@ -1 +1 @@ -const a84_0x32d2=['./chatMessage.events','remove','emit','chatMessage:','update','save'];(function(_0x3bafc8,_0x32d2e4){const _0x19bd09=function(_0x39a105){while(--_0x39a105){_0x3bafc8['push'](_0x3bafc8['shift']());}};_0x19bd09(++_0x32d2e4);}(a84_0x32d2,0xe9));const a84_0x19bd=function(_0x3bafc8,_0x32d2e4){_0x3bafc8=_0x3bafc8-0x0;let _0x19bd09=a84_0x32d2[_0x3bafc8];return _0x19bd09;};const _0x4255dd=a84_0x19bd;'use strict';const ChatMessageEvents=require(_0x4255dd('0x1')),events=[_0x4255dd('0x0'),_0x4255dd('0x2'),_0x4255dd('0x5')];function createListener(_0x39a105,_0x46dc87){return function(_0x385cf7){const _0x2c057b=a84_0x19bd;_0x46dc87[_0x2c057b('0x3')](_0x39a105,_0x385cf7);};}exports['register']=function(_0x3816be){const _0x3e9197=_0x4255dd;for(let _0x54036a=0x0,_0x2de3a6=events['length'];_0x54036a<_0x2de3a6;_0x54036a++){const _0xf24250=events[_0x54036a],_0x4b2b40=createListener(_0x3e9197('0x4')+_0xf24250,_0x3816be);ChatMessageEvents['on'](_0xf24250,_0x4b2b40);}}; \ No newline at end of file +const a84_0x2f18=['save','length','chatMessage:','update','emit','./chatMessage.events','remove'];(function(_0x4ca1d8,_0x2f18bb){const _0x34b88b=function(_0x352db5){while(--_0x352db5){_0x4ca1d8['push'](_0x4ca1d8['shift']());}};_0x34b88b(++_0x2f18bb);}(a84_0x2f18,0x13a));const a84_0x34b8=function(_0x4ca1d8,_0x2f18bb){_0x4ca1d8=_0x4ca1d8-0x0;let _0x34b88b=a84_0x2f18[_0x4ca1d8];return _0x34b88b;};const _0x5076e2=a84_0x34b8;'use strict';const ChatMessageEvents=require(_0x5076e2('0x6')),events=[_0x5076e2('0x1'),_0x5076e2('0x0'),_0x5076e2('0x4')];function createListener(_0x352db5,_0x5a58ae){return function(_0x2f99c9){const _0xb97d2f=a84_0x34b8;_0x5a58ae[_0xb97d2f('0x5')](_0x352db5,_0x2f99c9);};}exports['register']=function(_0x1da243){const _0x3138db=_0x5076e2;for(let _0x4972ff=0x0,_0x1c411e=events[_0x3138db('0x2')];_0x4972ff<_0x1c411e;_0x4972ff++){const _0x614fb6=events[_0x4972ff],_0x23ffc7=createListener(_0x3138db('0x3')+_0x614fb6,_0x1da243);ChatMessageEvents['on'](_0x614fb6,_0x23ffc7);}}; \ No newline at end of file diff --git a/server/api/chatMessage/index.js b/server/api/chatMessage/index.js index 2a087f4..5c48984 100644 --- a/server/api/chatMessage/index.js +++ b/server/api/chatMessage/index.js @@ -1 +1 @@ -const a85_0x51fe=['Router','put','chat','delete','/:id','post','/:id/reject','reject','./chatMessage.controller','../../components/interaction/service','exports','tracked','describe','../../components/auth/service','express','isAuthenticated','get','index','destroy','show','accept','update'];(function(_0x36ab9e,_0x51fef9){const _0x84e8f5=function(_0x3d6c11){while(--_0x3d6c11){_0x36ab9e['push'](_0x36ab9e['shift']());}};_0x84e8f5(++_0x51fef9);}(a85_0x51fe,0x1b4));const a85_0x84e8=function(_0x36ab9e,_0x51fef9){_0x36ab9e=_0x36ab9e-0x0;let _0x84e8f5=a85_0x51fe[_0x36ab9e];return _0x84e8f5;};const _0x4a9cef=a85_0x84e8;'use strict';const express=require(_0x4a9cef('0x12')),router=express[_0x4a9cef('0x4')](),auth=require(_0x4a9cef('0x11')),interaction=require(_0x4a9cef('0xd')),controller=require(_0x4a9cef('0xc'));router[_0x4a9cef('0x14')]('/',auth[_0x4a9cef('0x13')](),controller[_0x4a9cef('0x15')]),router[_0x4a9cef('0x14')]('/describe',auth[_0x4a9cef('0x13')](),controller[_0x4a9cef('0x10')]),router[_0x4a9cef('0x14')]('/:id',auth[_0x4a9cef('0x13')](),controller[_0x4a9cef('0x1')]),router[_0x4a9cef('0x9')]('/',auth[_0x4a9cef('0x13')](),interaction[_0x4a9cef('0xf')](_0x4a9cef('0x6'),'chatmessage:create'),controller['create']),router[_0x4a9cef('0x5')](_0x4a9cef('0x8'),controller[_0x4a9cef('0x3')]),router[_0x4a9cef('0x5')]('/:id/accept',auth[_0x4a9cef('0x13')](),controller[_0x4a9cef('0x2')]),router[_0x4a9cef('0x5')](_0x4a9cef('0xa'),auth[_0x4a9cef('0x13')](),controller[_0x4a9cef('0xb')]),router[_0x4a9cef('0x7')]('/:id',auth[_0x4a9cef('0x13')](),controller[_0x4a9cef('0x0')]),module[_0x4a9cef('0xe')]=router; \ No newline at end of file +const a85_0x23a1=['../../components/interaction/service','./chatMessage.controller','tracked','/describe','/:id','exports','delete','chat','index','describe','destroy','chatmessage:create','get','isAuthenticated','accept','../../components/auth/service','/:id/reject','put','show','update','/:id/accept','express'];(function(_0x243018,_0x23a131){const _0x5cf654=function(_0x40218b){while(--_0x40218b){_0x243018['push'](_0x243018['shift']());}};_0x5cf654(++_0x23a131);}(a85_0x23a1,0x7e));const a85_0x5cf6=function(_0x243018,_0x23a131){_0x243018=_0x243018-0x0;let _0x5cf654=a85_0x23a1[_0x243018];return _0x5cf654;};const _0x45a944=a85_0x5cf6;'use strict';const express=require(_0x45a944('0x5')),router=express['Router'](),auth=require(_0x45a944('0x15')),interaction=require(_0x45a944('0x6')),controller=require(_0x45a944('0x7'));router[_0x45a944('0x12')]('/',auth[_0x45a944('0x13')](),controller[_0x45a944('0xe')]),router['get'](_0x45a944('0x9'),auth['isAuthenticated'](),controller[_0x45a944('0xf')]),router[_0x45a944('0x12')](_0x45a944('0xa'),auth[_0x45a944('0x13')](),controller[_0x45a944('0x2')]),router['post']('/',auth['isAuthenticated'](),interaction[_0x45a944('0x8')](_0x45a944('0xd'),_0x45a944('0x11')),controller['create']),router[_0x45a944('0x1')](_0x45a944('0xa'),controller[_0x45a944('0x3')]),router['put'](_0x45a944('0x4'),auth[_0x45a944('0x13')](),controller[_0x45a944('0x14')]),router[_0x45a944('0x1')](_0x45a944('0x0'),auth[_0x45a944('0x13')](),controller['reject']),router[_0x45a944('0xc')](_0x45a944('0xa'),auth[_0x45a944('0x13')](),controller[_0x45a944('0x10')]),module[_0x45a944('0xb')]=router; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js index 2e50f12..f18ea7e 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js @@ -1 +1 @@ -const a86_0x106f=['TEXT','medium','sequelize','exports'];(function(_0x1b4448,_0x106fd2){const _0x55c771=function(_0x24a744){while(--_0x24a744){_0x1b4448['push'](_0x1b4448['shift']());}};_0x55c771(++_0x106fd2);}(a86_0x106f,0x83));const a86_0x55c7=function(_0x1b4448,_0x106fd2){_0x1b4448=_0x1b4448-0x0;let _0x55c771=a86_0x106f[_0x1b4448];return _0x55c771;};const _0x12938c=a86_0x55c7;'use strict';const Sequelize=require(_0x12938c('0x3'));module[_0x12938c('0x0')]={'body':{'type':Sequelize[_0x12938c('0x1')](_0x12938c('0x2')),'allowNull':![]}}; \ No newline at end of file +const a86_0x22f4=['exports','sequelize','medium'];(function(_0x3c7705,_0x22f4b3){const _0x5231eb=function(_0x1fe517){while(--_0x1fe517){_0x3c7705['push'](_0x3c7705['shift']());}};_0x5231eb(++_0x22f4b3);}(a86_0x22f4,0xf6));const a86_0x5231=function(_0x3c7705,_0x22f4b3){_0x3c7705=_0x3c7705-0x0;let _0x5231eb=a86_0x22f4[_0x3c7705];return _0x5231eb;};const _0x4efc3a=a86_0x5231;'use strict';const Sequelize=require(_0x4efc3a('0x1'));module[_0x4efc3a('0x0')]={'body':{'type':Sequelize['TEXT'](_0x4efc3a('0x2')),'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js index 816429d..59c7594 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js @@ -1 +1 @@ -const a87_0x2dfd=['name','api','rawAttributes','catch','intersection','end','count','describe','Content-Range','../../components/parsers/qs','merge','show','type','../../mysqldb','filters','body','create','params','keys','limit','map','update','sendStatus','options','where','lodash','offset','findAll','sequelize','ChatOfflineMessage','json','destroy','query','findOne','stack','then','attributes','index','includeAll','status','include','sort','pick','length','fields','model'];(function(_0x3e2701,_0x2dfd3e){const _0x3d0ebd=function(_0x34081a){while(--_0x34081a){_0x3e2701['push'](_0x3e2701['shift']());}};_0x3d0ebd(++_0x2dfd3e);}(a87_0x2dfd,0xce));const a87_0x3d0e=function(_0x3e2701,_0x2dfd3e){_0x3e2701=_0x3e2701-0x0;let _0x3d0ebd=a87_0x2dfd[_0x3e2701];return _0x3d0ebd;};const _0x3122cc=a87_0x3d0e;'use strict';const _=require(_0x3122cc('0x3')),qs=require(_0x3122cc('0x21')),logger=require('../../config/logger')(_0x3122cc('0x19')),db=require(_0x3122cc('0x25'))['db'],{Op}=require(_0x3122cc('0x6'));function respondWithResult(_0x34081a,_0x3091f1){return _0x3091f1=_0x3091f1||0xc8,function(_0x38250f){const _0x53bc3e=a87_0x3d0e;if(_0x38250f)return _0x34081a[_0x53bc3e('0x11')](_0x3091f1)[_0x53bc3e('0x8')](_0x38250f);};}function respondWithFilteredResult(_0x31db55,_0x399816){return function(_0x3f4202){const _0x31ff9a=a87_0x3d0e;if(_0x3f4202){const _0x5aeb0f=_0x3f4202['count'],_0x27702b=_0x399816[_0x31ff9a('0x4')];let _0x25432e=_0x399816[_0x31ff9a('0x4')]+_0x399816[_0x31ff9a('0x2b')],_0xf389e9;return _0x25432e>=_0x5aeb0f?(_0x25432e=_0x5aeb0f,_0xf389e9=0xc8):_0xf389e9=0xce,_0x31db55[_0x31ff9a('0x11')](_0xf389e9),_0x31db55['set'](_0x31ff9a('0x20'),_0x27702b+'-'+_0x25432e+'/'+_0x5aeb0f)['json'](_0x3f4202);}return null;};}function saveUpdates(_0x52dd72){return function(_0x39a04f){const _0x2e40f0=a87_0x3d0e;if(_0x39a04f)return _0x39a04f[_0x2e40f0('0x2d')](_0x52dd72)[_0x2e40f0('0xd')](function(_0x41e2d3){return _0x41e2d3;});return null;};}function removeEntity(_0x10c337){return function(_0x3164c3){if(_0x3164c3)return _0x3164c3['destroy']()['then'](function(){const _0x2a2094=a87_0x3d0e;_0x10c337[_0x2a2094('0x11')](0xcc)[_0x2a2094('0x1d')]();});};}function handleEntityNotFound(_0x2668d9){return function(_0x3dad00){const _0x370e83=a87_0x3d0e;return!_0x3dad00&&_0x2668d9[_0x370e83('0x0')](0x194),_0x3dad00;};}function handleError(_0x55eb6a,_0x366523){return _0x366523=_0x366523||0x1f4,function(_0x4e97a0){const _0x585a82=a87_0x3d0e;logger['error'](_0x4e97a0[_0x585a82('0xc')]),_0x4e97a0[_0x585a82('0x18')]&&delete _0x4e97a0[_0x585a82('0x18')],_0x55eb6a['status'](_0x366523)['send'](_0x4e97a0);};}exports[_0x3122cc('0xf')]=function(_0xef1465,_0x395834){const _0x1c44fe=_0x3122cc;let _0x1e51d7={};const _0x276a42={},_0x23a564={'count':0x0,'rows':[]},_0x5e8360=_['map'](db[_0x1c44fe('0x7')][_0x1c44fe('0x1a')],function(_0x1234a2){const _0x5aef43=_0x1c44fe;return{'name':_0x1234a2['fieldName'],'type':_0x1234a2[_0x5aef43('0x24')]['key']};});_0x276a42[_0x1c44fe('0x17')]=_[_0x1c44fe('0x2c')](_0x5e8360,_0x1c44fe('0x18')),_0x276a42[_0x1c44fe('0xa')]=_[_0x1c44fe('0x2a')](_0xef1465['query']),_0x276a42[_0x1c44fe('0x26')]=_[_0x1c44fe('0x1c')](_0x276a42[_0x1c44fe('0x17')],_0x276a42[_0x1c44fe('0xa')]),_0x1e51d7['attributes']=_[_0x1c44fe('0x1c')](_0x276a42[_0x1c44fe('0x17')],qs[_0x1c44fe('0x16')](_0xef1465[_0x1c44fe('0xa')][_0x1c44fe('0x16')])),_0x1e51d7['attributes']=_0x1e51d7[_0x1c44fe('0xe')][_0x1c44fe('0x15')]?_0x1e51d7[_0x1c44fe('0xe')]:_0x276a42['model'];typeof _0xef1465['query']['nolimit']==='undefined'&&(_0x1e51d7[_0x1c44fe('0x2b')]=qs[_0x1c44fe('0x2b')](_0xef1465[_0x1c44fe('0xa')][_0x1c44fe('0x2b')]),_0x1e51d7[_0x1c44fe('0x4')]=qs['offset'](_0xef1465['query'][_0x1c44fe('0x4')]));_0x1e51d7['order']=qs[_0x1c44fe('0x13')](_0xef1465['query']['sort']),_0x1e51d7[_0x1c44fe('0x2')]=qs[_0x1c44fe('0x26')](_[_0x1c44fe('0x14')](_0xef1465[_0x1c44fe('0xa')],_0x276a42['filters']),_0x5e8360);_0xef1465[_0x1c44fe('0xa')]['filter']&&(_0x1e51d7[_0x1c44fe('0x2')]=_['merge'](_0x1e51d7[_0x1c44fe('0x2')],{[Op['or']]:_[_0x1c44fe('0x2c')](_0x5e8360,function(_0x5e5425){if(_0x5e5425['type']!=='VIRTUAL'){const _0xf57b7f={};return _0xf57b7f[_0x5e5425['name']]={[Op['like']]:'%'+_0xef1465['query']['filter']+'%'},_0xf57b7f;}})}));_0x1e51d7=_[_0x1c44fe('0x22')]({},_0x1e51d7,_0xef1465[_0x1c44fe('0x1')]);const _0x1cc112={'where':_0x1e51d7['where']};return db[_0x1c44fe('0x7')][_0x1c44fe('0x1e')](_0x1cc112)['then'](function(_0x3492f4){const _0x5d8f28=_0x1c44fe;return _0x23a564[_0x5d8f28('0x1e')]=_0x3492f4,_0xef1465[_0x5d8f28('0xa')]['includeAll']&&(_0x1e51d7['include']=[{'all':!![]}]),db[_0x5d8f28('0x7')][_0x5d8f28('0x5')](_0x1e51d7);})[_0x1c44fe('0xd')](function(_0x300087){return _0x23a564['rows']=_0x300087,_0x23a564;})[_0x1c44fe('0xd')](respondWithFilteredResult(_0x395834,_0x1e51d7))[_0x1c44fe('0x1b')](handleError(_0x395834,null));},exports[_0x3122cc('0x23')]=function(_0x914801,_0x5d7307){const _0x46258b=_0x3122cc;let _0x50a8a0={'raw':!![],'where':{'id':_0x914801[_0x46258b('0x29')]['id']}};const _0x231d0a={};return _0x231d0a[_0x46258b('0x17')]=_[_0x46258b('0x2a')](db['ChatOfflineMessage'][_0x46258b('0x1a')]),_0x231d0a['query']=_['keys'](_0x914801['query']),_0x231d0a['filters']=_[_0x46258b('0x1c')](_0x231d0a['model'],_0x231d0a[_0x46258b('0xa')]),_0x50a8a0[_0x46258b('0xe')]=_[_0x46258b('0x1c')](_0x231d0a[_0x46258b('0x17')],qs[_0x46258b('0x16')](_0x914801[_0x46258b('0xa')]['fields'])),_0x50a8a0['attributes']=_0x50a8a0['attributes'][_0x46258b('0x15')]?_0x50a8a0[_0x46258b('0xe')]:_0x231d0a['model'],_0x914801[_0x46258b('0xa')][_0x46258b('0x10')]&&(_0x50a8a0[_0x46258b('0x12')]=[{'all':!![]}]),_0x50a8a0=_[_0x46258b('0x22')]({},_0x50a8a0,_0x914801['options']),db['ChatOfflineMessage']['findOne'](_0x50a8a0)[_0x46258b('0xd')](handleEntityNotFound(_0x5d7307,null))['then'](respondWithResult(_0x5d7307,null))[_0x46258b('0x1b')](handleError(_0x5d7307,null));},exports[_0x3122cc('0x28')]=function(_0x4de730,_0x46bf04){const _0xadedef=_0x3122cc;return db[_0xadedef('0x7')][_0xadedef('0x28')](_0x4de730['body'],{})[_0xadedef('0xd')](respondWithResult(_0x46bf04,0xc9))[_0xadedef('0x1b')](handleError(_0x46bf04,null));},exports[_0x3122cc('0x2d')]=function(_0x4cd057,_0x39c33e){const _0xe781c1=_0x3122cc;return _0x4cd057[_0xe781c1('0x27')]['id']&&delete _0x4cd057[_0xe781c1('0x27')]['id'],db['ChatOfflineMessage'][_0xe781c1('0xb')]({'where':{'id':_0x4cd057[_0xe781c1('0x29')]['id']}})['then'](handleEntityNotFound(_0x39c33e,null))[_0xe781c1('0xd')](saveUpdates(_0x4cd057[_0xe781c1('0x27')],null))['then'](respondWithResult(_0x39c33e,null))[_0xe781c1('0x1b')](handleError(_0x39c33e,null));},exports[_0x3122cc('0x9')]=function(_0x2d688f,_0x2f1265){const _0x2e7173=_0x3122cc;return db[_0x2e7173('0x7')][_0x2e7173('0xb')]({'where':{'id':_0x2d688f[_0x2e7173('0x29')]['id']}})[_0x2e7173('0xd')](handleEntityNotFound(_0x2f1265,null))['then'](removeEntity(_0x2f1265,null))['catch'](handleError(_0x2f1265,null));},exports[_0x3122cc('0x1f')]=function(_0x13760a,_0x5078ef){const _0xa6c355=_0x3122cc;return db['ChatOfflineMessage'][_0xa6c355('0x1f')]()[_0xa6c355('0xd')](respondWithResult(_0x5078ef,null))[_0xa6c355('0x1b')](handleError(_0x5078ef,null));}; \ No newline at end of file +const a87_0x37fb=['intersection','name','include','sendStatus','set','length','json','Content-Range','filter','count','stack','lodash','offset','nolimit','fields','limit','like','findAll','rows','ChatOfflineMessage','key','../../components/parsers/qs','create','send','describe','status','keys','options','merge','params','../../mysqldb','includeAll','query','then','catch','type','fieldName','where','sort','undefined','pick','destroy','sequelize','map','rawAttributes','findOne','filters','body','order','attributes','model','../../config/logger','error'];(function(_0x2571f5,_0x37fba0){const _0x3255bd=function(_0x4a6f4c){while(--_0x4a6f4c){_0x2571f5['push'](_0x2571f5['shift']());}};_0x3255bd(++_0x37fba0);}(a87_0x37fb,0x14b));const a87_0x3255=function(_0x2571f5,_0x37fba0){_0x2571f5=_0x2571f5-0x0;let _0x3255bd=a87_0x37fb[_0x2571f5];return _0x3255bd;};const _0x2f945c=a87_0x3255;'use strict';const _=require(_0x2f945c('0x33')),qs=require(_0x2f945c('0x8')),logger=require(_0x2f945c('0x26'))('api'),db=require(_0x2f945c('0x11'))['db'],{Op}=require(_0x2f945c('0x1d'));function respondWithResult(_0x4a6f4c,_0x2a4fa5){return _0x2a4fa5=_0x2a4fa5||0xc8,function(_0x3b8e63){const _0x4ee0e9=a87_0x3255;if(_0x3b8e63)return _0x4a6f4c[_0x4ee0e9('0xc')](_0x2a4fa5)[_0x4ee0e9('0x2e')](_0x3b8e63);};}function respondWithFilteredResult(_0x57101f,_0x4bfe69){return function(_0x69e824){const _0x4dc8b9=a87_0x3255;if(_0x69e824){const _0x2466fd=_0x69e824[_0x4dc8b9('0x31')],_0x3385a8=_0x4bfe69[_0x4dc8b9('0x34')];let _0x2d6f60=_0x4bfe69[_0x4dc8b9('0x34')]+_0x4bfe69[_0x4dc8b9('0x2')],_0x1661fd;return _0x2d6f60>=_0x2466fd?(_0x2d6f60=_0x2466fd,_0x1661fd=0xc8):_0x1661fd=0xce,_0x57101f[_0x4dc8b9('0xc')](_0x1661fd),_0x57101f[_0x4dc8b9('0x2c')](_0x4dc8b9('0x2f'),_0x3385a8+'-'+_0x2d6f60+'/'+_0x2466fd)[_0x4dc8b9('0x2e')](_0x69e824);}return null;};}function saveUpdates(_0x19d21a){return function(_0x2d3232){const _0x28c0d1=a87_0x3255;if(_0x2d3232)return _0x2d3232['update'](_0x19d21a)[_0x28c0d1('0x14')](function(_0x5275f8){return _0x5275f8;});return null;};}function removeEntity(_0x464dd7){return function(_0x32d3bf){const _0x35406e=a87_0x3255;if(_0x32d3bf)return _0x32d3bf[_0x35406e('0x1c')]()[_0x35406e('0x14')](function(){_0x464dd7['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x334c33){return function(_0x546faa){const _0x23256c=a87_0x3255;return!_0x546faa&&_0x334c33[_0x23256c('0x2b')](0x194),_0x546faa;};}function handleError(_0x42335b,_0x479e54){return _0x479e54=_0x479e54||0x1f4,function(_0x4581ee){const _0x143a90=a87_0x3255;logger[_0x143a90('0x27')](_0x4581ee[_0x143a90('0x32')]),_0x4581ee[_0x143a90('0x29')]&&delete _0x4581ee[_0x143a90('0x29')],_0x42335b[_0x143a90('0xc')](_0x479e54)[_0x143a90('0xa')](_0x4581ee);};}exports['index']=function(_0x15cf41,_0x8aa4dc){const _0x594983=_0x2f945c;let _0x3f70c3={};const _0xc4926c={},_0x473ed5={'count':0x0,'rows':[]},_0x2f35cb=_[_0x594983('0x1e')](db[_0x594983('0x6')]['rawAttributes'],function(_0x3a8336){const _0x5b37d7=_0x594983;return{'name':_0x3a8336[_0x5b37d7('0x17')],'type':_0x3a8336[_0x5b37d7('0x16')][_0x5b37d7('0x7')]};});_0xc4926c['model']=_[_0x594983('0x1e')](_0x2f35cb,_0x594983('0x29')),_0xc4926c['query']=_[_0x594983('0xd')](_0x15cf41[_0x594983('0x13')]),_0xc4926c[_0x594983('0x21')]=_[_0x594983('0x28')](_0xc4926c[_0x594983('0x25')],_0xc4926c['query']),_0x3f70c3[_0x594983('0x24')]=_[_0x594983('0x28')](_0xc4926c[_0x594983('0x25')],qs['fields'](_0x15cf41[_0x594983('0x13')][_0x594983('0x1')])),_0x3f70c3[_0x594983('0x24')]=_0x3f70c3['attributes'][_0x594983('0x2d')]?_0x3f70c3['attributes']:_0xc4926c['model'];typeof _0x15cf41[_0x594983('0x13')][_0x594983('0x0')]===_0x594983('0x1a')&&(_0x3f70c3[_0x594983('0x2')]=qs[_0x594983('0x2')](_0x15cf41[_0x594983('0x13')][_0x594983('0x2')]),_0x3f70c3['offset']=qs[_0x594983('0x34')](_0x15cf41[_0x594983('0x13')][_0x594983('0x34')]));_0x3f70c3[_0x594983('0x23')]=qs['sort'](_0x15cf41[_0x594983('0x13')][_0x594983('0x19')]),_0x3f70c3['where']=qs[_0x594983('0x21')](_[_0x594983('0x1b')](_0x15cf41['query'],_0xc4926c[_0x594983('0x21')]),_0x2f35cb);_0x15cf41[_0x594983('0x13')][_0x594983('0x30')]&&(_0x3f70c3[_0x594983('0x18')]=_[_0x594983('0xf')](_0x3f70c3[_0x594983('0x18')],{[Op['or']]:_[_0x594983('0x1e')](_0x2f35cb,function(_0x170bd5){const _0x7854b3=_0x594983;if(_0x170bd5[_0x7854b3('0x16')]!=='VIRTUAL'){const _0x3608e6={};return _0x3608e6[_0x170bd5['name']]={[Op[_0x7854b3('0x3')]]:'%'+_0x15cf41[_0x7854b3('0x13')][_0x7854b3('0x30')]+'%'},_0x3608e6;}})}));_0x3f70c3=_['merge']({},_0x3f70c3,_0x15cf41[_0x594983('0xe')]);const _0x14343c={'where':_0x3f70c3[_0x594983('0x18')]};return db[_0x594983('0x6')][_0x594983('0x31')](_0x14343c)[_0x594983('0x14')](function(_0x47a11e){const _0x4b2c7e=_0x594983;return _0x473ed5['count']=_0x47a11e,_0x15cf41[_0x4b2c7e('0x13')][_0x4b2c7e('0x12')]&&(_0x3f70c3[_0x4b2c7e('0x2a')]=[{'all':!![]}]),db['ChatOfflineMessage'][_0x4b2c7e('0x4')](_0x3f70c3);})[_0x594983('0x14')](function(_0x5bc1ed){const _0x5b759a=_0x594983;return _0x473ed5[_0x5b759a('0x5')]=_0x5bc1ed,_0x473ed5;})[_0x594983('0x14')](respondWithFilteredResult(_0x8aa4dc,_0x3f70c3))[_0x594983('0x15')](handleError(_0x8aa4dc,null));},exports['show']=function(_0x3952d8,_0x2e2c4b){const _0x16fce9=_0x2f945c;let _0x1a20f0={'raw':!![],'where':{'id':_0x3952d8[_0x16fce9('0x10')]['id']}};const _0x33bdf9={};return _0x33bdf9[_0x16fce9('0x25')]=_[_0x16fce9('0xd')](db['ChatOfflineMessage'][_0x16fce9('0x1f')]),_0x33bdf9[_0x16fce9('0x13')]=_[_0x16fce9('0xd')](_0x3952d8[_0x16fce9('0x13')]),_0x33bdf9[_0x16fce9('0x21')]=_[_0x16fce9('0x28')](_0x33bdf9[_0x16fce9('0x25')],_0x33bdf9[_0x16fce9('0x13')]),_0x1a20f0[_0x16fce9('0x24')]=_['intersection'](_0x33bdf9[_0x16fce9('0x25')],qs['fields'](_0x3952d8[_0x16fce9('0x13')][_0x16fce9('0x1')])),_0x1a20f0[_0x16fce9('0x24')]=_0x1a20f0[_0x16fce9('0x24')]['length']?_0x1a20f0[_0x16fce9('0x24')]:_0x33bdf9[_0x16fce9('0x25')],_0x3952d8[_0x16fce9('0x13')][_0x16fce9('0x12')]&&(_0x1a20f0[_0x16fce9('0x2a')]=[{'all':!![]}]),_0x1a20f0=_[_0x16fce9('0xf')]({},_0x1a20f0,_0x3952d8[_0x16fce9('0xe')]),db[_0x16fce9('0x6')][_0x16fce9('0x20')](_0x1a20f0)['then'](handleEntityNotFound(_0x2e2c4b,null))[_0x16fce9('0x14')](respondWithResult(_0x2e2c4b,null))[_0x16fce9('0x15')](handleError(_0x2e2c4b,null));},exports[_0x2f945c('0x9')]=function(_0x8cd867,_0x3cfab8){const _0x29a435=_0x2f945c;return db['ChatOfflineMessage']['create'](_0x8cd867[_0x29a435('0x22')],{})[_0x29a435('0x14')](respondWithResult(_0x3cfab8,0xc9))[_0x29a435('0x15')](handleError(_0x3cfab8,null));},exports['update']=function(_0x2c9039,_0x1a5289){const _0x12aa3b=_0x2f945c;return _0x2c9039[_0x12aa3b('0x22')]['id']&&delete _0x2c9039[_0x12aa3b('0x22')]['id'],db['ChatOfflineMessage'][_0x12aa3b('0x20')]({'where':{'id':_0x2c9039[_0x12aa3b('0x10')]['id']}})[_0x12aa3b('0x14')](handleEntityNotFound(_0x1a5289,null))[_0x12aa3b('0x14')](saveUpdates(_0x2c9039['body'],null))[_0x12aa3b('0x14')](respondWithResult(_0x1a5289,null))[_0x12aa3b('0x15')](handleError(_0x1a5289,null));},exports['destroy']=function(_0x411642,_0x57a5a4){const _0x132bdb=_0x2f945c;return db[_0x132bdb('0x6')][_0x132bdb('0x20')]({'where':{'id':_0x411642[_0x132bdb('0x10')]['id']}})[_0x132bdb('0x14')](handleEntityNotFound(_0x57a5a4,null))[_0x132bdb('0x14')](removeEntity(_0x57a5a4,null))[_0x132bdb('0x15')](handleError(_0x57a5a4,null));},exports[_0x2f945c('0xb')]=function(_0x85b965,_0x1067fe){const _0x140f53=_0x2f945c;return db['ChatOfflineMessage']['describe']()[_0x140f53('0x14')](respondWithResult(_0x1067fe,null))[_0x140f53('0x15')](handleError(_0x1067fe,null));}; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.model.js b/server/api/chatOfflineMessage/chatOfflineMessage.model.js index 8a0625f..e3e248d 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.model.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.model.js @@ -1 +1 @@ -const a88_0x4d2a=['ChatOfflineMessage','utf8mb4','./chatOfflineMessage.attributes','chat_offline_messages'];(function(_0x495129,_0x4d2a83){const _0x4cf00a=function(_0xd18449){while(--_0xd18449){_0x495129['push'](_0x495129['shift']());}};_0x4cf00a(++_0x4d2a83);}(a88_0x4d2a,0x13f));const a88_0x4cf0=function(_0x495129,_0x4d2a83){_0x495129=_0x495129-0x0;let _0x4cf00a=a88_0x4d2a[_0x495129];return _0x4cf00a;};const _0x2e6dcc=a88_0x4cf0;'use strict';const attributes=require(_0x2e6dcc('0x3'));module['exports']=function(_0xd18449){const _0x3855a2=_0x2e6dcc,_0x1eeb4e=_0xd18449['define'](_0x3855a2('0x1'),attributes,{'tableName':_0x3855a2('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3855a2('0x2'),'collate':'utf8mb4_unicode_ci'});return _0x1eeb4e;}; \ No newline at end of file +const a88_0x3dc2=['chat_offline_messages','utf8mb4_unicode_ci','./chatOfflineMessage.attributes','ChatOfflineMessage','utf8mb4','define'];(function(_0x5cd644,_0x3dc2a6){const _0x13a860=function(_0x25bf77){while(--_0x25bf77){_0x5cd644['push'](_0x5cd644['shift']());}};_0x13a860(++_0x3dc2a6);}(a88_0x3dc2,0x8c));const a88_0x13a8=function(_0x5cd644,_0x3dc2a6){_0x5cd644=_0x5cd644-0x0;let _0x13a860=a88_0x3dc2[_0x5cd644];return _0x13a860;};const _0x352075=a88_0x13a8;'use strict';const attributes=require(_0x352075('0x0'));module['exports']=function(_0x25bf77){const _0x4a60ba=_0x352075,_0x192815=_0x25bf77[_0x4a60ba('0x3')](_0x4a60ba('0x1'),attributes,{'tableName':_0x4a60ba('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4a60ba('0x2'),'collate':_0x4a60ba('0x5')});return _0x192815;}; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/index.js b/server/api/chatOfflineMessage/index.js index c95746a..3c1afd3 100644 --- a/server/api/chatOfflineMessage/index.js +++ b/server/api/chatOfflineMessage/index.js @@ -1 +1 @@ -const a89_0x237c=['get','put','/:id','index','../../components/auth/service','show','describe','exports','Router','create','/describe','delete','./chatOfflineMessage.controller','post','isAuthenticated'];(function(_0x44afb9,_0x237c53){const _0x2571e3=function(_0x5ec03c){while(--_0x5ec03c){_0x44afb9['push'](_0x44afb9['shift']());}};_0x2571e3(++_0x237c53);}(a89_0x237c,0xbb));const a89_0x2571=function(_0x44afb9,_0x237c53){_0x44afb9=_0x44afb9-0x0;let _0x2571e3=a89_0x237c[_0x44afb9];return _0x2571e3;};const _0x472e37=a89_0x2571;'use strict';const express=require('express'),router=express[_0x472e37('0x1')](),auth=require(_0x472e37('0xc')),controller=require(_0x472e37('0x5'));router['get']('/',auth[_0x472e37('0x7')](),controller[_0x472e37('0xb')]),router['get'](_0x472e37('0x3'),auth[_0x472e37('0x7')](),controller[_0x472e37('0xe')]),router[_0x472e37('0x8')](_0x472e37('0xa'),auth[_0x472e37('0x7')](),controller[_0x472e37('0xd')]),router[_0x472e37('0x6')]('/',auth['isAuthenticated'](),controller[_0x472e37('0x2')]),router[_0x472e37('0x9')](_0x472e37('0xa'),auth['isAuthenticated'](),controller['update']),router[_0x472e37('0x4')](_0x472e37('0xa'),auth[_0x472e37('0x7')](),controller['destroy']),module[_0x472e37('0x0')]=router; \ No newline at end of file +const a89_0x18d9=['put','Router','post','delete','get','create','exports','/describe','/:id','isAuthenticated','./chatOfflineMessage.controller','describe','express','show','../../components/auth/service'];(function(_0x350830,_0x18d9f2){const _0x590627=function(_0x41c463){while(--_0x41c463){_0x350830['push'](_0x350830['shift']());}};_0x590627(++_0x18d9f2);}(a89_0x18d9,0xb7));const a89_0x5906=function(_0x350830,_0x18d9f2){_0x350830=_0x350830-0x0;let _0x590627=a89_0x18d9[_0x350830];return _0x590627;};const _0x1679ac=a89_0x5906;'use strict';const express=require(_0x1679ac('0x9')),router=express[_0x1679ac('0xd')](),auth=require(_0x1679ac('0xb')),controller=require(_0x1679ac('0x7'));router['get']('/',auth[_0x1679ac('0x6')](),controller['index']),router[_0x1679ac('0x1')](_0x1679ac('0x4'),auth[_0x1679ac('0x6')](),controller[_0x1679ac('0x8')]),router[_0x1679ac('0x1')](_0x1679ac('0x5'),auth[_0x1679ac('0x6')](),controller[_0x1679ac('0xa')]),router[_0x1679ac('0xe')]('/',auth[_0x1679ac('0x6')](),controller[_0x1679ac('0x2')]),router[_0x1679ac('0xc')](_0x1679ac('0x5'),auth['isAuthenticated'](),controller['update']),router[_0x1679ac('0x0')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x1679ac('0x3')]=router; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.attributes.js b/server/api/chatProactiveAction/chatProactiveAction.attributes.js index 435f457..1493957 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.attributes.js +++ b/server/api/chatProactiveAction/chatProactiveAction.attributes.js @@ -1 +1 @@ -const a90_0x3204=['STRING','timeout','sequelize','exports','mouseOver'];(function(_0x2aa0bc,_0x320402){const _0x1b036f=function(_0x42f652){while(--_0x42f652){_0x2aa0bc['push'](_0x2aa0bc['shift']());}};_0x1b036f(++_0x320402);}(a90_0x3204,0x135));const a90_0x1b03=function(_0x2aa0bc,_0x320402){_0x2aa0bc=_0x2aa0bc-0x0;let _0x1b036f=a90_0x3204[_0x2aa0bc];return _0x1b036f;};const _0x4154cd=a90_0x1b03;'use strict';const Sequelize=require(_0x4154cd('0x3'));module[_0x4154cd('0x4')]={'name':{'type':Sequelize[_0x4154cd('0x1')],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x4154cd('0x0'),_0x4154cd('0x2')),'defaultValue':_0x4154cd('0x0')},'selector':{'type':Sequelize[_0x4154cd('0x1')]},'timeout':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +const a90_0x18a1=['ENUM','INTEGER','sequelize','mouseOver','STRING','timeout','exports'];(function(_0x462fac,_0x18a1d4){const _0x3d4912=function(_0x24efca){while(--_0x24efca){_0x462fac['push'](_0x462fac['shift']());}};_0x3d4912(++_0x18a1d4);}(a90_0x18a1,0x1f2));const a90_0x3d49=function(_0x462fac,_0x18a1d4){_0x462fac=_0x462fac-0x0;let _0x3d4912=a90_0x18a1[_0x462fac];return _0x3d4912;};const _0x150bcd=a90_0x3d49;'use strict';const Sequelize=require(_0x150bcd('0x1'));module[_0x150bcd('0x5')]={'name':{'type':Sequelize[_0x150bcd('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x150bcd('0x6')](_0x150bcd('0x2'),_0x150bcd('0x4')),'defaultValue':_0x150bcd('0x2')},'selector':{'type':Sequelize['STRING']},'timeout':{'type':Sequelize[_0x150bcd('0x0')]}}; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.controller.js b/server/api/chatProactiveAction/chatProactiveAction.controller.js index bad368d..0007fb0 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.controller.js +++ b/server/api/chatProactiveAction/chatProactiveAction.controller.js @@ -1 +1 @@ -const a91_0x408f=['intersection','ChatProactiveAction','show','rawAttributes','body','include','attributes','fields','destroy','../../config/logger','api','create','../../mysqldb','params','json','../../components/parsers/qs','query','findOne','update','lodash','sendStatus','status','merge','name','then','length','catch','model','stack','filters'];(function(_0x37a4fa,_0x408f0a){const _0x40f536=function(_0xa4a405){while(--_0xa4a405){_0x37a4fa['push'](_0x37a4fa['shift']());}};_0x40f536(++_0x408f0a);}(a91_0x408f,0x17b));const a91_0x40f5=function(_0x37a4fa,_0x408f0a){_0x37a4fa=_0x37a4fa-0x0;let _0x40f536=a91_0x408f[_0x37a4fa];return _0x40f536;};const _0x457710=a91_0x40f5;'use strict';const _=require(_0x457710('0x0')),qs=require(_0x457710('0x1a')),logger=require(_0x457710('0x14'))(_0x457710('0x15')),db=require(_0x457710('0x17'))['db'];function respondWithResult(_0xa4a405,_0x1b6e4b){return _0x1b6e4b=_0x1b6e4b||0xc8,function(_0x159dcf){const _0x15d009=a91_0x40f5;if(_0x159dcf)return _0xa4a405[_0x15d009('0x2')](_0x1b6e4b)[_0x15d009('0x19')](_0x159dcf);};}function saveUpdates(_0x772e71){return function(_0x27468c){const _0x47aeb1=a91_0x40f5;if(_0x27468c)return _0x27468c[_0x47aeb1('0x1d')](_0x772e71)['then'](function(_0x3d8c1f){return _0x3d8c1f;});return null;};}function removeEntity(_0x5b57e8){return function(_0x3e19f7){const _0x54862a=a91_0x40f5;if(_0x3e19f7)return _0x3e19f7[_0x54862a('0x13')]()[_0x54862a('0x5')](function(){const _0xe2157b=_0x54862a;_0x5b57e8[_0xe2157b('0x2')](0xcc)['end']();});};}function handleEntityNotFound(_0xe386dc){return function(_0x30a37d){const _0x56d20f=a91_0x40f5;return!_0x30a37d&&_0xe386dc[_0x56d20f('0x1')](0x194),_0x30a37d;};}function handleError(_0x31829c,_0x458746){return _0x458746=_0x458746||0x1f4,function(_0x15efde){const _0x380e17=a91_0x40f5;logger['error'](_0x15efde[_0x380e17('0x9')]),_0x15efde[_0x380e17('0x4')]&&delete _0x15efde[_0x380e17('0x4')],_0x31829c[_0x380e17('0x2')](_0x458746)['send'](_0x15efde);};}exports[_0x457710('0xd')]=function(_0x12b84e,_0x9d4025){const _0x23597e=_0x457710;let _0x36b02b={'raw':!![],'where':{'id':_0x12b84e[_0x23597e('0x18')]['id']}};const _0x266408={};return _0x266408[_0x23597e('0x8')]=_['keys'](db[_0x23597e('0xc')][_0x23597e('0xe')]),_0x266408[_0x23597e('0x1b')]=_['keys'](_0x12b84e[_0x23597e('0x1b')]),_0x266408[_0x23597e('0xa')]=_[_0x23597e('0xb')](_0x266408[_0x23597e('0x8')],_0x266408[_0x23597e('0x1b')]),_0x36b02b['attributes']=_[_0x23597e('0xb')](_0x266408[_0x23597e('0x8')],qs['fields'](_0x12b84e[_0x23597e('0x1b')][_0x23597e('0x12')])),_0x36b02b[_0x23597e('0x11')]=_0x36b02b['attributes'][_0x23597e('0x6')]?_0x36b02b[_0x23597e('0x11')]:_0x266408[_0x23597e('0x8')],_0x12b84e['query']['includeAll']&&(_0x36b02b[_0x23597e('0x10')]=[{'all':!![]}]),_0x36b02b=_[_0x23597e('0x3')]({},_0x36b02b,_0x12b84e['options']),db[_0x23597e('0xc')]['findOne'](_0x36b02b)[_0x23597e('0x5')](handleEntityNotFound(_0x9d4025,null))[_0x23597e('0x5')](respondWithResult(_0x9d4025,null))[_0x23597e('0x7')](handleError(_0x9d4025,null));},exports[_0x457710('0x16')]=function(_0x999bb8,_0x44c0a3){const _0x13fa32=_0x457710;return db[_0x13fa32('0xc')][_0x13fa32('0x16')](_0x999bb8[_0x13fa32('0xf')],{})[_0x13fa32('0x5')](respondWithResult(_0x44c0a3,0xc9))[_0x13fa32('0x7')](handleError(_0x44c0a3,null));},exports[_0x457710('0x1d')]=function(_0x1198b1,_0x1740b1){const _0x59944c=_0x457710;return _0x1198b1['body']['id']&&delete _0x1198b1['body']['id'],db[_0x59944c('0xc')][_0x59944c('0x1c')]({'where':{'id':_0x1198b1[_0x59944c('0x18')]['id']}})[_0x59944c('0x5')](handleEntityNotFound(_0x1740b1,null))['then'](saveUpdates(_0x1198b1[_0x59944c('0xf')],null))[_0x59944c('0x5')](respondWithResult(_0x1740b1,null))['catch'](handleError(_0x1740b1,null));},exports[_0x457710('0x13')]=function(_0x4ff39f,_0x5dcf80){const _0x377199=_0x457710;return db[_0x377199('0xc')]['findOne']({'where':{'id':_0x4ff39f['params']['id']}})[_0x377199('0x5')](handleEntityNotFound(_0x5dcf80,null))[_0x377199('0x5')](removeEntity(_0x5dcf80,null))[_0x377199('0x7')](handleError(_0x5dcf80,null));}; \ No newline at end of file +const a91_0x264c=['name','intersection','then','error','findOne','status','attributes','../../config/logger','update','send','../../mysqldb','length','stack','ChatProactiveAction','filters','model','includeAll','api','body','json','end','options','query','merge','destroy','create','fields','keys','include','params','catch','show','../../components/parsers/qs'];(function(_0x41cf7b,_0x264c4e){const _0x3e0d90=function(_0x58af3d){while(--_0x58af3d){_0x41cf7b['push'](_0x41cf7b['shift']());}};_0x3e0d90(++_0x264c4e);}(a91_0x264c,0x158));const a91_0x3e0d=function(_0x41cf7b,_0x264c4e){_0x41cf7b=_0x41cf7b-0x0;let _0x3e0d90=a91_0x264c[_0x41cf7b];return _0x3e0d90;};const _0x4b24ea=a91_0x3e0d;'use strict';const _=require('lodash'),qs=require(_0x4b24ea('0x12')),logger=require(_0x4b24ea('0x1a'))(_0x4b24ea('0x3')),db=require(_0x4b24ea('0x1d'))['db'];function respondWithResult(_0x58af3d,_0x184614){return _0x184614=_0x184614||0xc8,function(_0x480a67){const _0x346778=a91_0x3e0d;if(_0x480a67)return _0x58af3d[_0x346778('0x18')](_0x184614)[_0x346778('0x5')](_0x480a67);};}function saveUpdates(_0x41e710){return function(_0x15b34e){const _0x5bd086=a91_0x3e0d;if(_0x15b34e)return _0x15b34e[_0x5bd086('0x1b')](_0x41e710)[_0x5bd086('0x15')](function(_0x2e3804){return _0x2e3804;});return null;};}function removeEntity(_0x44c3d9){return function(_0xec557){const _0x4c1474=a91_0x3e0d;if(_0xec557)return _0xec557[_0x4c1474('0xa')]()[_0x4c1474('0x15')](function(){const _0x4e4774=_0x4c1474;_0x44c3d9[_0x4e4774('0x18')](0xcc)[_0x4e4774('0x6')]();});};}function handleEntityNotFound(_0x35486e){return function(_0x20317a){return!_0x20317a&&_0x35486e['sendStatus'](0x194),_0x20317a;};}function handleError(_0x42647a,_0x33f6d5){return _0x33f6d5=_0x33f6d5||0x1f4,function(_0x5ae903){const _0x4ad58d=a91_0x3e0d;logger[_0x4ad58d('0x16')](_0x5ae903[_0x4ad58d('0x1f')]),_0x5ae903[_0x4ad58d('0x13')]&&delete _0x5ae903['name'],_0x42647a['status'](_0x33f6d5)[_0x4ad58d('0x1c')](_0x5ae903);};}exports[_0x4b24ea('0x11')]=function(_0x53bc2d,_0x3114f9){const _0x4c8810=_0x4b24ea;let _0x1d35e7={'raw':!![],'where':{'id':_0x53bc2d[_0x4c8810('0xf')]['id']}};const _0x39aab2={};return _0x39aab2[_0x4c8810('0x1')]=_[_0x4c8810('0xd')](db['ChatProactiveAction']['rawAttributes']),_0x39aab2[_0x4c8810('0x8')]=_[_0x4c8810('0xd')](_0x53bc2d[_0x4c8810('0x8')]),_0x39aab2[_0x4c8810('0x0')]=_[_0x4c8810('0x14')](_0x39aab2['model'],_0x39aab2['query']),_0x1d35e7['attributes']=_['intersection'](_0x39aab2[_0x4c8810('0x1')],qs[_0x4c8810('0xc')](_0x53bc2d['query'][_0x4c8810('0xc')])),_0x1d35e7['attributes']=_0x1d35e7[_0x4c8810('0x19')][_0x4c8810('0x1e')]?_0x1d35e7[_0x4c8810('0x19')]:_0x39aab2[_0x4c8810('0x1')],_0x53bc2d[_0x4c8810('0x8')][_0x4c8810('0x2')]&&(_0x1d35e7[_0x4c8810('0xe')]=[{'all':!![]}]),_0x1d35e7=_[_0x4c8810('0x9')]({},_0x1d35e7,_0x53bc2d[_0x4c8810('0x7')]),db[_0x4c8810('0x20')][_0x4c8810('0x17')](_0x1d35e7)[_0x4c8810('0x15')](handleEntityNotFound(_0x3114f9,null))[_0x4c8810('0x15')](respondWithResult(_0x3114f9,null))['catch'](handleError(_0x3114f9,null));},exports[_0x4b24ea('0xb')]=function(_0x379068,_0x11b624){const _0x5444dc=_0x4b24ea;return db[_0x5444dc('0x20')]['create'](_0x379068['body'],{})['then'](respondWithResult(_0x11b624,0xc9))['catch'](handleError(_0x11b624,null));},exports[_0x4b24ea('0x1b')]=function(_0x1a36ae,_0x103d5b){const _0x10608f=_0x4b24ea;return _0x1a36ae[_0x10608f('0x4')]['id']&&delete _0x1a36ae[_0x10608f('0x4')]['id'],db[_0x10608f('0x20')]['findOne']({'where':{'id':_0x1a36ae[_0x10608f('0xf')]['id']}})[_0x10608f('0x15')](handleEntityNotFound(_0x103d5b,null))['then'](saveUpdates(_0x1a36ae[_0x10608f('0x4')],null))[_0x10608f('0x15')](respondWithResult(_0x103d5b,null))[_0x10608f('0x10')](handleError(_0x103d5b,null));},exports[_0x4b24ea('0xa')]=function(_0x33be9e,_0x190d58){const _0x56e607=_0x4b24ea;return db[_0x56e607('0x20')][_0x56e607('0x17')]({'where':{'id':_0x33be9e[_0x56e607('0xf')]['id']}})[_0x56e607('0x15')](handleEntityNotFound(_0x190d58,null))[_0x56e607('0x15')](removeEntity(_0x190d58,null))[_0x56e607('0x10')](handleError(_0x190d58,null));}; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.model.js b/server/api/chatProactiveAction/chatProactiveAction.model.js index 9e6398a..ff4a006 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.model.js +++ b/server/api/chatProactiveAction/chatProactiveAction.model.js @@ -1 +1 @@ -const a92_0x2540=['define','ChatProactiveAction','exports','chat_proactive_actions'];(function(_0x1bd9e9,_0x254004){const _0x29d6a3=function(_0x1901eb){while(--_0x1901eb){_0x1bd9e9['push'](_0x1bd9e9['shift']());}};_0x29d6a3(++_0x254004);}(a92_0x2540,0x1ca));const a92_0x29d6=function(_0x1bd9e9,_0x254004){_0x1bd9e9=_0x1bd9e9-0x0;let _0x29d6a3=a92_0x2540[_0x1bd9e9];return _0x29d6a3;};const _0x3254a3=a92_0x29d6;'use strict';const attributes=require('./chatProactiveAction.attributes');module[_0x3254a3('0x0')]=function(_0x1901eb){const _0x231cb0=_0x3254a3,_0x1540ca=_0x1901eb[_0x231cb0('0x2')](_0x231cb0('0x3'),attributes,{'tableName':_0x231cb0('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1540ca;}; \ No newline at end of file +const a92_0x48b8=['chat_proactive_actions','exports','ChatProactiveAction','define'];(function(_0x45eede,_0x48b8a3){const _0x1e1e79=function(_0x44381a){while(--_0x44381a){_0x45eede['push'](_0x45eede['shift']());}};_0x1e1e79(++_0x48b8a3);}(a92_0x48b8,0x1ba));const a92_0x1e1e=function(_0x45eede,_0x48b8a3){_0x45eede=_0x45eede-0x0;let _0x1e1e79=a92_0x48b8[_0x45eede];return _0x1e1e79;};const _0x1d9011=a92_0x1e1e;'use strict';const attributes=require('./chatProactiveAction.attributes');module[_0x1d9011('0x3')]=function(_0x44381a){const _0x5c767c=_0x1d9011,_0x2830dd=_0x44381a[_0x5c767c('0x1')](_0x5c767c('0x0'),attributes,{'tableName':_0x5c767c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2830dd;}; \ No newline at end of file diff --git a/server/api/chatProactiveAction/index.js b/server/api/chatProactiveAction/index.js index 4209279..65c7243 100644 --- a/server/api/chatProactiveAction/index.js +++ b/server/api/chatProactiveAction/index.js @@ -1 +1 @@ -const a93_0x5581=['/:id','isAuthenticated','Router','update','./chatProactiveAction.controller','create','exports','express','../../components/auth/service','destroy'];(function(_0x2f7588,_0x55816e){const _0x45f77c=function(_0x11894c){while(--_0x11894c){_0x2f7588['push'](_0x2f7588['shift']());}};_0x45f77c(++_0x55816e);}(a93_0x5581,0x12f));const a93_0x45f7=function(_0x2f7588,_0x55816e){_0x2f7588=_0x2f7588-0x0;let _0x45f77c=a93_0x5581[_0x2f7588];return _0x45f77c;};const _0x46d806=a93_0x45f7;'use strict';const express=require(_0x46d806('0x4')),router=express[_0x46d806('0x9')](),auth=require(_0x46d806('0x5')),controller=require(_0x46d806('0x1'));router['get'](_0x46d806('0x7'),auth[_0x46d806('0x8')](),controller['show']),router['post']('/',auth['isAuthenticated'](),controller[_0x46d806('0x2')]),router['put'](_0x46d806('0x7'),auth[_0x46d806('0x8')](),controller[_0x46d806('0x0')]),router['delete'](_0x46d806('0x7'),auth[_0x46d806('0x8')](),controller[_0x46d806('0x6')]),module[_0x46d806('0x3')]=router; \ No newline at end of file +const a93_0x4e2b=['show','exports','/:id','create','isAuthenticated','post','put','get','delete','../../components/auth/service'];(function(_0xc63d49,_0x4e2b5d){const _0x12a069=function(_0x5ce845){while(--_0x5ce845){_0xc63d49['push'](_0xc63d49['shift']());}};_0x12a069(++_0x4e2b5d);}(a93_0x4e2b,0x1da));const a93_0x12a0=function(_0xc63d49,_0x4e2b5d){_0xc63d49=_0xc63d49-0x0;let _0x12a069=a93_0x4e2b[_0xc63d49];return _0x12a069;};const _0x5cb7e4=a93_0x12a0;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x5cb7e4('0x5')),controller=require('./chatProactiveAction.controller');router[_0x5cb7e4('0x3')](_0x5cb7e4('0x8'),auth[_0x5cb7e4('0x0')](),controller[_0x5cb7e4('0x6')]),router[_0x5cb7e4('0x1')]('/',auth[_0x5cb7e4('0x0')](),controller[_0x5cb7e4('0x9')]),router[_0x5cb7e4('0x2')](_0x5cb7e4('0x8'),auth[_0x5cb7e4('0x0')](),controller['update']),router[_0x5cb7e4('0x4')](_0x5cb7e4('0x8'),auth['isAuthenticated'](),controller['destroy']),module[_0x5cb7e4('0x7')]=router; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.attributes.js b/server/api/chatQueue/chatQueue.attributes.js index c066527..3773d13 100644 --- a/server/api/chatQueue/chatQueue.attributes.js +++ b/server/api/chatQueue/chatQueue.attributes.js @@ -1 +1 @@ -const a94_0x2676=['rrmemory','roundrobin','exports','name','STRING','INTEGER','sequelize'];(function(_0x358e4c,_0x267690){const _0x54ccdd=function(_0x2c5990){while(--_0x2c5990){_0x358e4c['push'](_0x358e4c['shift']());}};_0x54ccdd(++_0x267690);}(a94_0x2676,0x12c));const a94_0x54cc=function(_0x358e4c,_0x267690){_0x358e4c=_0x358e4c-0x0;let _0x54ccdd=a94_0x2676[_0x358e4c];return _0x54ccdd;};const _0x8e213b=a94_0x54cc;'use strict';const Sequelize=require(_0x8e213b('0x0'));module[_0x8e213b('0x3')]={'name':{'type':Sequelize[_0x8e213b('0x5')],'unique':_0x8e213b('0x4'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x8e213b('0x5')]},'timeout':{'type':Sequelize[_0x8e213b('0x6')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM'](_0x8e213b('0x1'),'beepall',_0x8e213b('0x2'))}}; \ No newline at end of file +const a94_0x161d=['exports','INTEGER','STRING','name','beepall','ENUM'];(function(_0x573a45,_0x161d5c){const _0x54249c=function(_0x5379ec){while(--_0x5379ec){_0x573a45['push'](_0x573a45['shift']());}};_0x54249c(++_0x161d5c);}(a94_0x161d,0xce));const a94_0x5424=function(_0x573a45,_0x161d5c){_0x573a45=_0x573a45-0x0;let _0x54249c=a94_0x161d[_0x573a45];return _0x54249c;};const _0x4760b7=a94_0x5424;'use strict';const Sequelize=require('sequelize');module[_0x4760b7('0x4')]={'name':{'type':Sequelize[_0x4760b7('0x0')],'unique':_0x4760b7('0x1'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize['STRING']},'timeout':{'type':Sequelize[_0x4760b7('0x5')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x4760b7('0x3')]('rrmemory',_0x4760b7('0x2'),'roundrobin')}}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.controller.js b/server/api/chatQueue/chatQueue.controller.js index d59e649..2432a0f 100644 --- a/server/api/chatQueue/chatQueue.controller.js +++ b/server/api/chatQueue/chatQueue.controller.js @@ -1 +1 @@ -const a95_0x2758=['findOrCreate','sendStatus','intersection','team_has_chat_queues','limit','updatedAt','autoAssociation','util','role','catch','QueryTypes','like','../../rediscache','online','includes','user','Team','each','findAll','ChatQueues','rawAttributes','UserChatQueue','sort','join','./chatQueue.socket','removeTeams','sequelize','filter','end','attributes','where','options','userChatQueue:save','getMembers','emit','UserProfileSection','ut.UserId\x20=\x20?','ut.TeamId\x20=\x20tq.TeamId','removeAgents','pick','update','from','fields','UserProfileResource','chatPause','name','filters','status','createdAt','all','key','Content-Range','field','index','create','register','interface','getAgents','Agents','isEmpty','flatMap','rows','include','findOne','omit','ChatQueue','describe','User','voicePause','transaction','send','length','union','map','nolimit','body','error','forEach','model','type','order','addTeams','tq.TeamId','findAndCountAll','user_has_teams','getTeams','../../components/parsers/qs','merge','ChatQueueId\x20=\x20?','count','every','userChatQueue:remove','show','userProfileId','then','addAgents','json','UserId','api','../../mysqldb','isArray','ids','destroy','lodash','Unable\x20to\x20retrieve\x20the\x20current\x20user','offset','set','select','%s/%s','keys','get','SIP','params','query','TeamId','undefined','includeAll'];(function(_0x48d98b,_0x2758cc){const _0x5dd823=function(_0x41d082){while(--_0x41d082){_0x48d98b['push'](_0x48d98b['shift']());}};_0x5dd823(++_0x2758cc);}(a95_0x2758,0x1cb));const a95_0x5dd8=function(_0x48d98b,_0x2758cc){_0x48d98b=_0x48d98b-0x0;let _0x5dd823=a95_0x2758[_0x48d98b];return _0x5dd823;};const _0x26abf0=a95_0x5dd8;'use strict';const util=require(_0x26abf0('0x10')),_=require(_0x26abf0('0x70')),squel=require('squel'),qs=require(_0x26abf0('0x5f')),logger=require('../../config/logger')(_0x26abf0('0x6b')),{getSocket}=require(_0x26abf0('0x15')),db=require(_0x26abf0('0x6c'))['db'],{Op}=require('sequelize'),socket=getSocket();require(_0x26abf0('0x21'))[_0x26abf0('0x40')](socket);function respondWithStatusCode(_0x41d082,_0x20c639){return _0x20c639=_0x20c639||0xcc,function(_0xb0472a){const _0x2fdbfc=a95_0x5dd8;if(_0xb0472a)return _0x41d082['sendStatus'](_0x20c639);return _0x41d082[_0x2fdbfc('0x38')](_0x20c639)['end']();};}function respondWithResult(_0x4c2ace,_0x4dd72e){return _0x4dd72e=_0x4dd72e||0xc8,function(_0x16ffc8){const _0x4b5138=a95_0x5dd8;if(_0x16ffc8)return _0x4c2ace[_0x4b5138('0x38')](_0x4dd72e)['json'](_0x16ffc8);};}function respondWithFilteredResult(_0x1e7567,_0xec7515){return function(_0x1b9b05){const _0x29e4df=a95_0x5dd8;if(_0x1b9b05){const _0x3ed3ee=_0x1b9b05[_0x29e4df('0x62')],_0x5e4c8a=_0xec7515[_0x29e4df('0x72')];let _0x221a45=_0xec7515[_0x29e4df('0x72')]+_0xec7515[_0x29e4df('0xd')],_0x479b41;return _0x221a45>=_0x3ed3ee?(_0x221a45=_0x3ed3ee,_0x479b41=0xc8):_0x479b41=0xce,_0x1e7567['status'](_0x479b41),_0x1e7567[_0x29e4df('0x73')](_0x29e4df('0x3c'),_0x5e4c8a+'-'+_0x221a45+'/'+_0x3ed3ee)[_0x29e4df('0x69')](_0x1b9b05);}return null;};}function saveUpdates(_0x4bc969){return function(_0x16a35d){const _0x2c2595=a95_0x5dd8;if(_0x16a35d)return _0x16a35d[_0x2c2595('0x31')](_0x4bc969)[_0x2c2595('0x67')](function(_0x127117){return _0x127117;});return null;};}function removeEntity(_0x1d5db4){return function(_0x4f89c4){const _0x42d0b=a95_0x5dd8;if(_0x4f89c4)return _0x4f89c4[_0x42d0b('0x6f')]()['then'](function(){const _0x51a639=_0x42d0b,_0x43325a=_0x4f89c4[_0x51a639('0x2')]({'plain':!![]}),_0x5df5bb=_0x51a639('0x1c');return db[_0x51a639('0x34')][_0x51a639('0x6f')]({'where':{'type':_0x5df5bb,'resourceId':_0x43325a['id']}})[_0x51a639('0x67')](function(){return _0x4f89c4;});})[_0x42d0b('0x67')](function(){const _0xb683bb=_0x42d0b;_0x1d5db4[_0xb683bb('0x38')](0xcc)[_0xb683bb('0x25')]();});};}function handleEntityNotFound(_0x272840){return function(_0x3ea1b2){const _0x54c49a=a95_0x5dd8;return!_0x3ea1b2&&_0x272840[_0x54c49a('0xa')](0x194),_0x3ea1b2;};}function handleError(_0x15ce29,_0x21ad1f){return _0x21ad1f=_0x21ad1f||0x1f4,function(_0x2b1daf){const _0x3587ee=a95_0x5dd8;logger[_0x3587ee('0x55')](_0x2b1daf['stack']),_0x2b1daf['name']&&delete _0x2b1daf[_0x3587ee('0x36')],_0x15ce29[_0x3587ee('0x38')](_0x21ad1f)[_0x3587ee('0x4f')](_0x2b1daf);};}exports[_0x26abf0('0x3e')]=function(_0x265fcf,_0xa55e01){const _0x3a82ca=_0x26abf0;let _0x1f6eff={};const _0x168671={},_0x23053b={'count':0x0,'rows':[]},_0x4a24d7=_[_0x3a82ca('0x52')](db[_0x3a82ca('0x4a')][_0x3a82ca('0x1d')],function(_0x88a58){const _0x6abdfb=_0x3a82ca;return{'name':_0x88a58['fieldName'],'type':_0x88a58['type'][_0x6abdfb('0x3b')]};});_0x168671[_0x3a82ca('0x57')]=_['map'](_0x4a24d7,_0x3a82ca('0x36')),_0x168671['query']=_[_0x3a82ca('0x1')](_0x265fcf[_0x3a82ca('0x5')]),_0x168671[_0x3a82ca('0x37')]=_['intersection'](_0x168671[_0x3a82ca('0x57')],_0x168671['query']),_0x1f6eff['attributes']=_[_0x3a82ca('0xb')](_0x168671['model'],qs[_0x3a82ca('0x33')](_0x265fcf[_0x3a82ca('0x5')]['fields'])),_0x1f6eff['attributes']=_0x1f6eff['attributes'][_0x3a82ca('0x50')]?_0x1f6eff[_0x3a82ca('0x26')]:_0x168671['model'];typeof _0x265fcf[_0x3a82ca('0x5')]['nolimit']==='undefined'&&(_0x1f6eff[_0x3a82ca('0xd')]=qs[_0x3a82ca('0xd')](_0x265fcf[_0x3a82ca('0x5')][_0x3a82ca('0xd')]),_0x1f6eff['offset']=qs[_0x3a82ca('0x72')](_0x265fcf[_0x3a82ca('0x5')][_0x3a82ca('0x72')]));_0x1f6eff[_0x3a82ca('0x59')]=qs[_0x3a82ca('0x1f')](_0x265fcf[_0x3a82ca('0x5')][_0x3a82ca('0x1f')]),_0x1f6eff['where']=qs[_0x3a82ca('0x37')](_[_0x3a82ca('0x30')](_0x265fcf[_0x3a82ca('0x5')],_0x168671['filters']),_0x4a24d7);_0x265fcf[_0x3a82ca('0x5')][_0x3a82ca('0x24')]&&(_0x1f6eff[_0x3a82ca('0x27')]=_[_0x3a82ca('0x60')](_0x1f6eff[_0x3a82ca('0x27')],{[Op['or']]:_[_0x3a82ca('0x52')](_0x4a24d7,function(_0x487a30){const _0x5ef373=_0x3a82ca;if(_0x487a30[_0x5ef373('0x58')]!=='VIRTUAL'){const _0xef1c54={};return _0xef1c54[_0x487a30[_0x5ef373('0x36')]]={[Op[_0x5ef373('0x14')]]:'%'+_0x265fcf[_0x5ef373('0x5')]['filter']+'%'},_0xef1c54;}})}));_0x1f6eff=_[_0x3a82ca('0x60')]({},_0x1f6eff,_0x265fcf[_0x3a82ca('0x28')]);const _0x2319b2={'where':_0x1f6eff[_0x3a82ca('0x27')]};return db[_0x3a82ca('0x4a')]['count'](_0x2319b2)[_0x3a82ca('0x67')](function(_0x506fef){const _0x102a76=_0x3a82ca;return _0x23053b[_0x102a76('0x62')]=_0x506fef,_0x265fcf[_0x102a76('0x5')][_0x102a76('0x8')]&&(_0x1f6eff[_0x102a76('0x47')]=[{'all':!![]}]),db['ChatQueue'][_0x102a76('0x1b')](_0x1f6eff);})[_0x3a82ca('0x67')](function(_0x3a7ed6){const _0x2f0491=_0x3a82ca;return _0x23053b[_0x2f0491('0x46')]=_0x3a7ed6,_0x23053b;})[_0x3a82ca('0x67')](respondWithFilteredResult(_0xa55e01,_0x1f6eff))['catch'](handleError(_0xa55e01,null));},exports[_0x26abf0('0x65')]=function(_0x2afb95,_0x52407c){const _0x2905bd=_0x26abf0;let _0x2470e0={'raw':!![],'where':{'id':_0x2afb95[_0x2905bd('0x4')]['id']}};const _0x1bdfd4={};return _0x1bdfd4[_0x2905bd('0x57')]=_[_0x2905bd('0x1')](db[_0x2905bd('0x4a')]['rawAttributes']),_0x1bdfd4['query']=_['keys'](_0x2afb95[_0x2905bd('0x5')]),_0x1bdfd4[_0x2905bd('0x37')]=_[_0x2905bd('0xb')](_0x1bdfd4[_0x2905bd('0x57')],_0x1bdfd4['query']),_0x2470e0[_0x2905bd('0x26')]=_['intersection'](_0x1bdfd4[_0x2905bd('0x57')],qs['fields'](_0x2afb95['query'][_0x2905bd('0x33')])),_0x2470e0['attributes']=_0x2470e0[_0x2905bd('0x26')]['length']?_0x2470e0['attributes']:_0x1bdfd4[_0x2905bd('0x57')],_0x2afb95['query']['includeAll']&&(_0x2470e0[_0x2905bd('0x47')]=[{'all':!![]}]),_0x2470e0=_[_0x2905bd('0x60')]({},_0x2470e0,_0x2afb95[_0x2905bd('0x28')]),db[_0x2905bd('0x4a')][_0x2905bd('0x48')](_0x2470e0)[_0x2905bd('0x67')](handleEntityNotFound(_0x52407c,null))[_0x2905bd('0x67')](respondWithResult(_0x52407c,null))[_0x2905bd('0x12')](handleError(_0x52407c,null));},exports['create']=function(_0xcc0dab,_0x40c47f){const _0xd62388=_0x26abf0;return db[_0xd62388('0x4a')][_0xd62388('0x3f')](_0xcc0dab[_0xd62388('0x54')],{})[_0xd62388('0x67')](function(_0x3d52c5){const _0x102a0a=_0xd62388,_0x11b793=_0xcc0dab[_0x102a0a('0x18')][_0x102a0a('0x2')]({'plain':!![]});if(!_0x11b793)throw new Error(_0x102a0a('0x71'));if(_0x11b793[_0x102a0a('0x11')]===_0x102a0a('0x18')){const _0x2ef12f=_0x3d52c5[_0x102a0a('0x2')]({'plain':!![]}),_0x25ff07=_0x102a0a('0x1c');return db[_0x102a0a('0x2c')][_0x102a0a('0x48')]({'where':{'name':_0x25ff07,'userProfileId':_0x11b793[_0x102a0a('0x66')]},'raw':!![]})[_0x102a0a('0x67')](function(_0x1a68d5){const _0x42e411=_0x102a0a;return _0x1a68d5&&_0x1a68d5[_0x42e411('0xf')]===0x0?db[_0x42e411('0x34')][_0x42e411('0x3f')]({'name':_0x2ef12f[_0x42e411('0x36')],'resourceId':_0x2ef12f['id'],'type':_0x1a68d5[_0x42e411('0x36')],'sectionId':_0x1a68d5['id']},{})[_0x42e411('0x67')](function(){return _0x3d52c5;}):_0x3d52c5;})[_0x102a0a('0x12')](function(_0x58e707){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x58e707);throw _0x58e707;});}return _0x3d52c5;})[_0xd62388('0x67')](respondWithResult(_0x40c47f,0xc9))['catch'](handleError(_0x40c47f,null));},exports[_0x26abf0('0x31')]=function(_0x55e4fd,_0x23e29e){const _0x46a0fb=_0x26abf0;return _0x55e4fd['body']['id']&&delete _0x55e4fd[_0x46a0fb('0x54')]['id'],db[_0x46a0fb('0x4a')][_0x46a0fb('0x48')]({'where':{'id':_0x55e4fd['params']['id']}})[_0x46a0fb('0x67')](handleEntityNotFound(_0x23e29e,null))[_0x46a0fb('0x67')](saveUpdates(_0x55e4fd['body'],null))[_0x46a0fb('0x67')](respondWithResult(_0x23e29e,null))[_0x46a0fb('0x12')](handleError(_0x23e29e,null));},exports[_0x26abf0('0x6f')]=function(_0x369176,_0x3d4f12){const _0x4fb587=_0x26abf0;return db['ChatQueue'][_0x4fb587('0x48')]({'where':{'id':_0x369176[_0x4fb587('0x4')]['id']}})[_0x4fb587('0x67')](handleEntityNotFound(_0x3d4f12,null))[_0x4fb587('0x67')](removeEntity(_0x3d4f12,null))['catch'](handleError(_0x3d4f12,null));},exports['describe']=function(_0x43cc6d,_0x3fb8a3){const _0x1c1e4c=_0x26abf0;return db['ChatQueue'][_0x1c1e4c('0x4b')]()[_0x1c1e4c('0x67')](respondWithResult(_0x3fb8a3,null))[_0x1c1e4c('0x12')](handleError(_0x3fb8a3,null));},exports[_0x26abf0('0x2a')]=function(_0x44b46a,_0x39f69a){const _0x12a67b=_0x26abf0;let _0x4d640b={'raw':!![],'where':{}};const _0x292f01={};let _0x30c5c9;return db[_0x12a67b('0x4a')][_0x12a67b('0x48')]({'where':{'id':_0x44b46a[_0x12a67b('0x4')]['id']}})[_0x12a67b('0x67')](handleEntityNotFound(_0x39f69a,null))['then'](function(_0x5d5d58){const _0x3b5f50=_0x12a67b;if(_0x5d5d58)return _0x30c5c9=_0x5d5d58['get']({'plain':!![]}),_0x292f01['model']=_['keys'](db[_0x3b5f50('0x1e')]['rawAttributes']),_0x292f01[_0x3b5f50('0x5')]=_[_0x3b5f50('0x1')](_0x44b46a[_0x3b5f50('0x5')]),_0x292f01[_0x3b5f50('0x37')]=_[_0x3b5f50('0xb')](_0x292f01[_0x3b5f50('0x57')],_0x292f01['query']),_0x4d640b[_0x3b5f50('0x26')]=_[_0x3b5f50('0xb')](_0x292f01[_0x3b5f50('0x57')],qs['fields'](_0x44b46a[_0x3b5f50('0x5')][_0x3b5f50('0x33')])),_0x4d640b['attributes']=_0x4d640b[_0x3b5f50('0x26')][_0x3b5f50('0x50')]?_0x4d640b[_0x3b5f50('0x26')]:_0x292f01['model'],typeof _0x44b46a[_0x3b5f50('0x5')][_0x3b5f50('0x53')]===_0x3b5f50('0x7')&&(_0x4d640b[_0x3b5f50('0xd')]=qs['limit'](_0x44b46a[_0x3b5f50('0x5')][_0x3b5f50('0xd')]),_0x4d640b['offset']=qs['offset'](_0x44b46a[_0x3b5f50('0x5')][_0x3b5f50('0x72')])),_0x4d640b[_0x3b5f50('0x59')]=qs[_0x3b5f50('0x1f')](_0x44b46a[_0x3b5f50('0x5')][_0x3b5f50('0x1f')]),_0x4d640b[_0x3b5f50('0x27')]=qs[_0x3b5f50('0x37')](_['pick'](_0x44b46a[_0x3b5f50('0x5')],_0x292f01[_0x3b5f50('0x37')])),_0x4d640b['where']['ChatQueueId']=_0x5d5d58['id'],_0x44b46a[_0x3b5f50('0x5')]['filter']&&(_0x4d640b[_0x3b5f50('0x27')]=_[_0x3b5f50('0x60')](_0x4d640b[_0x3b5f50('0x27')],{[Op['or']]:_[_0x3b5f50('0x52')](_0x4d640b[_0x3b5f50('0x26')],function(_0x1bc103){const _0x332d37=_0x3b5f50,_0x3e21fa={};return _0x3e21fa[_0x1bc103]={[Op[_0x332d37('0x14')]]:'%'+_0x44b46a['query'][_0x332d37('0x24')]+'%'},_0x3e21fa;})})),_0x4d640b=_[_0x3b5f50('0x60')]({},_0x4d640b,_0x44b46a[_0x3b5f50('0x28')]),db[_0x3b5f50('0x1e')][_0x3b5f50('0x1b')](_0x4d640b);})[_0x12a67b('0x67')](function(_0x5876db){const _0x1c58ed=_0x12a67b;if(_0x5876db)return db['User'][_0x1c58ed('0x5c')]({'where':{'id':_[_0x1c58ed('0x52')](_0x5876db,_0x1c58ed('0x6a')),'role':'agent'},'attributes':['id',_0x1c58ed('0x36'),_0x1c58ed('0x35'),_0x1c58ed('0xe'),_0x1c58ed('0x39')]});})[_0x12a67b('0x67')](function(_0x521b32){const _0x55514d=_0x12a67b;return _0x521b32?{'count':_0x521b32[_0x55514d('0x62')],'rows':_[_0x55514d('0x52')](_0x521b32[_0x55514d('0x46')],function(_0x5e7da5){const _0x58a8c4=_0x55514d;return{'membername':_0x5e7da5['name'],'UserId':_0x5e7da5['id'],'queue_name':_0x30c5c9[_0x58a8c4('0x36')],'ChatQueueId':_0x30c5c9['id'],'interface':util['format'](_0x58a8c4('0x0'),_0x58a8c4('0x3'),_0x5e7da5[_0x58a8c4('0x36')]),'penalty':0x0,'paused':_0x5e7da5['chatPause'],'createdAt':_0x5e7da5['createdAt'],'updatedAt':_0x5e7da5[_0x58a8c4('0xe')]};})}:{'count':0x0,'rows':[]};})[_0x12a67b('0x67')](respondWithFilteredResult(_0x39f69a,_0x4d640b))['catch'](handleError(_0x39f69a,null));},exports[_0x26abf0('0x5e')]=function(_0x3246e3,_0x578391){const _0x334f8c=_0x26abf0;let _0x27393b={};const _0x4602cb={};let _0x27d54f,_0x2e6e6;return db['ChatQueue']['findOne']({'where':{'id':_0x3246e3[_0x334f8c('0x4')]['id']}})[_0x334f8c('0x67')](handleEntityNotFound(_0x578391,null))[_0x334f8c('0x67')](function(_0x2b72e3){const _0x43a193=_0x334f8c;if(_0x2b72e3)return _0x27d54f=_0x2b72e3,_0x4602cb[_0x43a193('0x57')]=_[_0x43a193('0x1')](db[_0x43a193('0x19')][_0x43a193('0x1d')]),_0x4602cb['query']=_[_0x43a193('0x1')](_0x3246e3['query']),_0x4602cb['filters']=_[_0x43a193('0xb')](_0x4602cb[_0x43a193('0x57')],_0x4602cb[_0x43a193('0x5')]),_0x27393b[_0x43a193('0x26')]=_[_0x43a193('0xb')](_0x4602cb[_0x43a193('0x57')],qs[_0x43a193('0x33')](_0x3246e3[_0x43a193('0x5')][_0x43a193('0x33')])),_0x27393b[_0x43a193('0x26')]=_0x27393b[_0x43a193('0x26')]['length']?_0x27393b['attributes']:_0x4602cb[_0x43a193('0x57')],_0x27393b[_0x43a193('0x59')]=qs[_0x43a193('0x1f')](_0x3246e3[_0x43a193('0x5')]['sort']),_0x27393b[_0x43a193('0x27')]=qs[_0x43a193('0x37')](_[_0x43a193('0x30')](_0x3246e3[_0x43a193('0x5')],_0x4602cb[_0x43a193('0x37')])),_0x3246e3[_0x43a193('0x5')]['filter']&&(_0x27393b[_0x43a193('0x27')]=_[_0x43a193('0x60')](_0x27393b[_0x43a193('0x27')],{[Op['or']]:_[_0x43a193('0x52')](_0x27393b[_0x43a193('0x26')],function(_0x5f5b28){const _0x50f622=_0x43a193,_0x38ab68={};return _0x38ab68[_0x5f5b28]={[Op[_0x50f622('0x14')]]:'%'+_0x3246e3[_0x50f622('0x5')][_0x50f622('0x24')]+'%'},_0x38ab68;})})),_0x27393b=_[_0x43a193('0x60')]({},_0x27393b,_0x3246e3[_0x43a193('0x28')]),_0x27d54f[_0x43a193('0x5e')](_0x27393b);})[_0x334f8c('0x67')](function(_0x2a0625){const _0x102c7f=_0x334f8c;if(_0x2a0625)return _0x2e6e6=_0x2a0625[_0x102c7f('0x50')],typeof _0x3246e3[_0x102c7f('0x5')][_0x102c7f('0x53')]==='undefined'&&(_0x27393b[_0x102c7f('0xd')]=qs['limit'](_0x3246e3['query']['limit']),_0x27393b[_0x102c7f('0x72')]=qs['offset'](_0x3246e3[_0x102c7f('0x5')][_0x102c7f('0x72')])),_0x27d54f[_0x102c7f('0x5e')](_0x27393b);})['then'](function(_0x31578d){if(_0x31578d)return _0x31578d?{'count':_0x2e6e6,'rows':_0x31578d}:null;})[_0x334f8c('0x67')](respondWithResult(_0x578391,null))[_0x334f8c('0x12')](handleError(_0x578391,null));},exports[_0x26abf0('0x5a')]=function(_0x59c30c,_0x2c2802){const _0x849ef3=_0x26abf0,_0x215dbe=_0x59c30c[_0x849ef3('0x54')]['ids'];return db['Team'][_0x849ef3('0x1b')]({'where':{'id':_0x215dbe},'attributes':['id'],'include':[{'model':db['User'],'as':_0x849ef3('0x43'),'attributes':['id','name',_0x849ef3('0x16'),_0x849ef3('0x4d'),_0x849ef3('0x41')],'raw':!![]}]})[_0x849ef3('0x67')](function(_0x12aef4){const _0x5ce2d6=_0x849ef3;if(_0x12aef4){const _0x2af132=_[_0x5ce2d6('0x45')](_0x12aef4,function(_0x15aa65){const _0x387a56=_0x5ce2d6,_0x38a44b=_0x15aa65[_0x387a56('0x2')]({'plain':!![]});return _0x38a44b[_0x387a56('0x43')];});return db[_0x5ce2d6('0x4a')]['findOne']({'where':{'id':_0x59c30c[_0x5ce2d6('0x4')]['id']}})[_0x5ce2d6('0x67')](function(_0x48e64f){const _0x50bb9e=_0x5ce2d6;return db[_0x50bb9e('0x23')][_0x50bb9e('0x4e')](function(_0x32d8e1){const _0x127494=_0x50bb9e;return _0x48e64f[_0x127494('0x5a')](_0x215dbe,{'transaction':_0x32d8e1})['then'](function(){const _0x1c2800=_0x127494;return Promise[_0x1c2800('0x1a')](_0x2af132,function(_0x5ec64e){const _0x1e7d00=_0x1c2800;return db[_0x1e7d00('0x1e')][_0x1e7d00('0x9')]({'where':{'UserId':_0x5ec64e['id'],'ChatQueueId':_0x59c30c[_0x1e7d00('0x4')]['id']},'transaction':_0x32d8e1});});})[_0x127494('0x67')](function(){const _0xaa551c=_0x127494;_0x2af132[_0xaa551c('0x56')](function(_0x5d7b1a){const _0xc4072e=_0xaa551c;socket[_0xc4072e('0x2b')](_0xc4072e('0x29'),{'UserId':_0x5d7b1a['id'],'ChatQueueId':_0x48e64f['id']});});});});});}})[_0x849ef3('0x67')](respondWithStatusCode(_0x2c2802,null))[_0x849ef3('0x12')](handleError(_0x2c2802,null));},exports[_0x26abf0('0x22')]=function(_0x318dc1,_0x47f87d){const _0x55e17e=_0x26abf0;return db[_0x55e17e('0x19')][_0x55e17e('0x1b')]({'where':{'id':_0x318dc1['query'][_0x55e17e('0x6e')]},'attributes':['id'],'include':[{'model':db[_0x55e17e('0x4c')],'as':_0x55e17e('0x43'),'attributes':['id'],'raw':!![]}]})[_0x55e17e('0x67')](handleEntityNotFound(_0x47f87d,null))[_0x55e17e('0x67')](function(_0x4f3fce){const _0x449a48=_0x55e17e,_0x1daaac=_[_0x449a48('0x52')](_0x4f3fce,'id');let _0x545b42=[];const _0x57be99=[],_0x413672=squel[_0x449a48('0x74')]();_0x413672[_0x449a48('0x3d')](_0x449a48('0x5b'))[_0x449a48('0x32')](_0x449a48('0xc'),'tq')[_0x449a48('0x20')](_0x449a48('0x5d'),'ut',_0x449a48('0x2e'))['where'](_0x449a48('0x61'),_0x318dc1[_0x449a48('0x4')]['id']);for(let _0x169206=0x0;_0x169206<_0x4f3fce[_0x449a48('0x50')];_0x169206+=0x1){const _0x2d20bc=_0x4f3fce[_0x169206];for(let _0x208c2c=0x0;_0x208c2c<_0x2d20bc[_0x449a48('0x43')][_0x449a48('0x50')];_0x208c2c+=0x1){const _0x4ab5ae=_0x2d20bc['Agents'][_0x208c2c],_0x4bac84=_0x413672['clone']();_0x4bac84['where'](_0x449a48('0x2d'),_0x4ab5ae['id']),_0x57be99['push'](db[_0x449a48('0x23')][_0x449a48('0x5')](_0x4bac84['toString'](),{'type':db['sequelize'][_0x449a48('0x13')]['SELECT']})[_0x449a48('0x67')](function(_0x1f8cd1){const _0x1478f6=_0x449a48;if(_0x1f8cd1['length']===0x1)return _0x4ab5ae['id'];else{const _0xb59629=_[_0x1478f6('0x63')](_[_0x1478f6('0x52')](_0x1f8cd1,_0x1478f6('0x6')),function(_0x3916e7){const _0xe54769=_0x1478f6;return _[_0xe54769('0x17')](_0x1daaac,_0x3916e7);});if(_0xb59629)return _0x4ab5ae['id'];}}));}}return Promise[_0x449a48('0x3a')](_0x57be99)[_0x449a48('0x67')](function(_0x59dd50){const _0x4190a3=_0x449a48;return _0x545b42=_(_0x545b42)[_0x4190a3('0x51')](_0x59dd50)['compact']()['value'](),db[_0x4190a3('0x4a')][_0x4190a3('0x48')]({'where':{'id':_0x318dc1[_0x4190a3('0x4')]['id']}})['then'](function(_0x445765){const _0x4d9990=_0x4190a3;return db[_0x4d9990('0x23')][_0x4d9990('0x4e')](function(_0x3e59e1){const _0x368595=_0x4d9990;return _0x445765[_0x368595('0x22')](_0x318dc1[_0x368595('0x5')]['ids'],{'transaction':_0x3e59e1})[_0x368595('0x67')](function(){const _0x4263fc=_0x368595;if(!_[_0x4263fc('0x44')](_0x545b42))return _0x445765[_0x4263fc('0x2f')](_0x545b42,{'transaction':_0x3e59e1});})['then'](function(){const _0x560edd=_0x368595;_0x545b42[_0x560edd('0x56')](function(_0x5eca07){const _0x21640f=_0x560edd;socket[_0x21640f('0x2b')](_0x21640f('0x64'),{'UserId':_0x5eca07,'ChatQueueId':_0x445765['id']});});});});});});})[_0x55e17e('0x67')](respondWithStatusCode(_0x47f87d,null))[_0x55e17e('0x12')](handleError(_0x47f87d,null));},exports[_0x26abf0('0x68')]=function(_0x58cc9a,_0x1c9c11){const _0x5e6095=_0x26abf0;return db['ChatQueue'][_0x5e6095('0x48')]({'where':{'id':_0x58cc9a[_0x5e6095('0x4')]['id']}})['then'](function(_0x10b23e){const _0x45c583=_0x5e6095;if(_0x10b23e)return _0x10b23e['addAgents'](_0x58cc9a[_0x45c583('0x54')][_0x45c583('0x6e')],{'through':_[_0x45c583('0x49')](_0x58cc9a['body'],['ids','id'])})[_0x45c583('0x67')](function(_0x381d3c){const _0x222e98=_0x45c583;for(let _0x22ff97=0x0;_0x22ff97<_0x58cc9a[_0x222e98('0x54')][_0x222e98('0x6e')][_0x222e98('0x50')];_0x22ff97+=0x1){socket[_0x222e98('0x2b')](_0x222e98('0x29'),{'UserId':_0x58cc9a[_0x222e98('0x54')]['ids'][_0x22ff97],'ChatQueueId':_0x58cc9a[_0x222e98('0x4')]['id']});}return _0x381d3c;});})[_0x5e6095('0x67')](respondWithResult(_0x1c9c11,null))[_0x5e6095('0x12')](handleError(_0x1c9c11,null));},exports[_0x26abf0('0x2f')]=function(_0x5b8efc,_0x5a3bdc){const _0xdfc0e6=_0x26abf0;return db[_0xdfc0e6('0x4a')][_0xdfc0e6('0x48')]({'where':{'id':_0x5b8efc[_0xdfc0e6('0x4')]['id']}})[_0xdfc0e6('0x67')](handleEntityNotFound(_0x5a3bdc,null))[_0xdfc0e6('0x67')](function(_0xf288f3){const _0x1966d6=_0xdfc0e6;if(_0xf288f3)return _0xf288f3['removeAgents'](_0x5b8efc[_0x1966d6('0x5')][_0x1966d6('0x6e')])['then'](function(){const _0x2bc014=_0x1966d6;if(_[_0x2bc014('0x6d')](_0x5b8efc[_0x2bc014('0x5')][_0x2bc014('0x6e')]))for(let _0x2cf2fd=0x0;_0x2cf2fd<_0x5b8efc['query'][_0x2bc014('0x6e')][_0x2bc014('0x50')];_0x2cf2fd+=0x1){socket['emit'](_0x2bc014('0x64'),{'UserId':Number(_0x5b8efc['query'][_0x2bc014('0x6e')][_0x2cf2fd]),'ChatQueueId':Number(_0x5b8efc[_0x2bc014('0x4')]['id'])});}else socket[_0x2bc014('0x2b')](_0x2bc014('0x64'),{'UserId':Number(_0x5b8efc['query']['ids']),'ChatQueueId':Number(_0x5b8efc[_0x2bc014('0x4')]['id'])});});})['then'](respondWithStatusCode(_0x5a3bdc,null))[_0xdfc0e6('0x12')](handleError(_0x5a3bdc,null));},exports['getAgents']=function(_0x337167,_0x65f778){const _0xeb26e0=_0x26abf0;let _0x323a3b={};const _0x56cefe={};let _0x963433,_0x26e9dc;return db[_0xeb26e0('0x4a')]['findOne']({'where':{'id':_0x337167[_0xeb26e0('0x4')]['id']}})[_0xeb26e0('0x67')](handleEntityNotFound(_0x65f778,null))[_0xeb26e0('0x67')](function(_0x4ebded){const _0xd8f664=_0xeb26e0;if(_0x4ebded)return _0x963433=_0x4ebded,_0x56cefe[_0xd8f664('0x57')]=_[_0xd8f664('0x1')](db[_0xd8f664('0x4c')]['rawAttributes']),_0x56cefe['query']=_[_0xd8f664('0x1')](_0x337167[_0xd8f664('0x5')]),_0x56cefe[_0xd8f664('0x37')]=_[_0xd8f664('0xb')](_0x56cefe[_0xd8f664('0x57')],_0x56cefe[_0xd8f664('0x5')]),_0x323a3b[_0xd8f664('0x26')]=_['intersection'](_0x56cefe['model'],qs[_0xd8f664('0x33')](_0x337167[_0xd8f664('0x5')]['fields'])),_0x323a3b[_0xd8f664('0x26')]=_0x323a3b[_0xd8f664('0x26')][_0xd8f664('0x50')]?_0x323a3b[_0xd8f664('0x26')]:_0x56cefe['model'],_0x323a3b['order']=qs['sort'](_0x337167[_0xd8f664('0x5')][_0xd8f664('0x1f')]),_0x323a3b[_0xd8f664('0x27')]=qs[_0xd8f664('0x37')](_[_0xd8f664('0x30')](_0x337167[_0xd8f664('0x5')],_0x56cefe['filters'])),_0x337167[_0xd8f664('0x5')][_0xd8f664('0x24')]&&(_0x323a3b[_0xd8f664('0x27')]=_['merge'](_0x323a3b[_0xd8f664('0x27')],{[Op['or']]:_['map'](_0x323a3b['attributes'],function(_0x4a4afa){const _0x5313f0=_0xd8f664,_0x3459a8={};return _0x3459a8[_0x4a4afa]={[Op['like']]:'%'+_0x337167[_0x5313f0('0x5')][_0x5313f0('0x24')]+'%'},_0x3459a8;})})),_0x323a3b=_[_0xd8f664('0x60')]({},_0x323a3b,_0x337167['options']),_0x963433[_0xd8f664('0x42')](_0x323a3b);})[_0xeb26e0('0x67')](function(_0xeb563a){const _0x46bd79=_0xeb26e0;if(_0xeb563a)return _0x26e9dc=_0xeb563a['length'],typeof _0x337167[_0x46bd79('0x5')]['nolimit']===_0x46bd79('0x7')&&(_0x323a3b['limit']=qs[_0x46bd79('0xd')](_0x337167['query']['limit']),_0x323a3b[_0x46bd79('0x72')]=qs['offset'](_0x337167['query'][_0x46bd79('0x72')])),_0x963433[_0x46bd79('0x42')](_0x323a3b);})[_0xeb26e0('0x67')](function(_0x19e53c){if(_0x19e53c)return _0x19e53c?{'count':_0x26e9dc,'rows':_0x19e53c}:null;})[_0xeb26e0('0x67')](respondWithResult(_0x65f778,null))[_0xeb26e0('0x12')](handleError(_0x65f778,null));}; \ No newline at end of file +const a95_0x560d=['params','compact','format','nolimit','end','name','error','rows','key','get','query','set','create','includeAll','fields','order','type','send','status','QueryTypes','model','each','length','user','attributes','Unable\x20to\x20retrieve\x20the\x20current\x20user','merge','online','../../config/logger','findOrCreate','ut.TeamId\x20=\x20tq.TeamId','Content-Range','body','findOne','show','User','then','offset','ChatQueue','ChatQueueId\x20=\x20?','destroy','undefined','filter','addAgents','describe','like','UserChatQueue','json','intersection','toString','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','select','options','limit','findAll','VIRTUAL','../../components/parsers/qs','Agents','createdAt','keys','include','filters','getMembers','where','removeAgents','flatMap','ids','../../mysqldb','catch','chatPause','UserId','autoAssociation','updatedAt','pick','rawAttributes','omit','UserProfileSection','sequelize','squel','Team','api','from','../../rediscache','getTeams','userChatQueue:save','removeTeams','./chatQueue.socket','UserProfileResource','team_has_chat_queues','userChatQueue:remove','map','lodash','findAndCountAll','push','forEach','user_has_teams','emit','addTeams','SELECT','register','tq.TeamId','agent','sort','update','sendStatus'];(function(_0x503a1b,_0x560d4f){const _0x2f0ec6=function(_0x5d1b99){while(--_0x5d1b99){_0x503a1b['push'](_0x503a1b['shift']());}};_0x2f0ec6(++_0x560d4f);}(a95_0x560d,0x1e1));const a95_0x2f0e=function(_0x503a1b,_0x560d4f){_0x503a1b=_0x503a1b-0x0;let _0x2f0ec6=a95_0x560d[_0x503a1b];return _0x2f0ec6;};const _0x484143=a95_0x2f0e;'use strict';const util=require('util'),_=require(_0x484143('0x1e')),squel=require(_0x484143('0x11')),qs=require(_0x484143('0x64')),logger=require(_0x484143('0x48'))(_0x484143('0x13')),{getSocket}=require(_0x484143('0x15')),db=require(_0x484143('0x6'))['db'],{Op}=require(_0x484143('0x10')),socket=getSocket();require(_0x484143('0x19'))[_0x484143('0x26')](socket);function respondWithStatusCode(_0x5d1b99,_0x47ea5d){return _0x47ea5d=_0x47ea5d||0xcc,function(_0x4cd74e){if(_0x4cd74e)return _0x5d1b99['sendStatus'](_0x47ea5d);return _0x5d1b99['status'](_0x47ea5d)['end']();};}function respondWithResult(_0x185b0e,_0x20e566){return _0x20e566=_0x20e566||0xc8,function(_0x4372b5){const _0xcf35c5=a95_0x2f0e;if(_0x4372b5)return _0x185b0e[_0xcf35c5('0x3e')](_0x20e566)[_0xcf35c5('0x5b')](_0x4372b5);};}function respondWithFilteredResult(_0x5056b3,_0x3f6c1b){return function(_0x3c12b1){const _0x372aea=a95_0x2f0e;if(_0x3c12b1){const _0x12991c=_0x3c12b1['count'],_0x5e46cf=_0x3f6c1b[_0x372aea('0x51')];let _0x3627df=_0x3f6c1b[_0x372aea('0x51')]+_0x3f6c1b[_0x372aea('0x61')],_0x48fc2b;return _0x3627df>=_0x12991c?(_0x3627df=_0x12991c,_0x48fc2b=0xc8):_0x48fc2b=0xce,_0x5056b3[_0x372aea('0x3e')](_0x48fc2b),_0x5056b3[_0x372aea('0x37')](_0x372aea('0x4b'),_0x5e46cf+'-'+_0x3627df+'/'+_0x12991c)[_0x372aea('0x5b')](_0x3c12b1);}return null;};}function saveUpdates(_0x181143){return function(_0x541ffe){const _0x427aa4=a95_0x2f0e;if(_0x541ffe)return _0x541ffe[_0x427aa4('0x2a')](_0x181143)[_0x427aa4('0x50')](function(_0x27a277){return _0x27a277;});return null;};}function removeEntity(_0x16f558){return function(_0x55b848){const _0x354340=a95_0x2f0e;if(_0x55b848)return _0x55b848[_0x354340('0x54')]()[_0x354340('0x50')](function(){const _0x5ed810=_0x354340,_0x5cee5e=_0x55b848[_0x5ed810('0x35')]({'plain':!![]}),_0x3d3133='ChatQueues';return db[_0x5ed810('0x1a')]['destroy']({'where':{'type':_0x3d3133,'resourceId':_0x5cee5e['id']}})[_0x5ed810('0x50')](function(){return _0x55b848;});})[_0x354340('0x50')](function(){const _0x39840f=_0x354340;_0x16f558['status'](0xcc)[_0x39840f('0x30')]();});};}function handleEntityNotFound(_0x5f0011){return function(_0x2cbefc){const _0x39af15=a95_0x2f0e;return!_0x2cbefc&&_0x5f0011[_0x39af15('0x2b')](0x194),_0x2cbefc;};}function handleError(_0x4e9a59,_0x423628){return _0x423628=_0x423628||0x1f4,function(_0x54c658){const _0x16d36f=a95_0x2f0e;logger[_0x16d36f('0x32')](_0x54c658['stack']),_0x54c658[_0x16d36f('0x31')]&&delete _0x54c658[_0x16d36f('0x31')],_0x4e9a59['status'](_0x423628)[_0x16d36f('0x3d')](_0x54c658);};}exports['index']=function(_0x20ed71,_0x40dbba){const _0x23d485=_0x484143;let _0x3b8a7f={};const _0x3b3ef9={},_0x1e36a3={'count':0x0,'rows':[]},_0x34c49e=_[_0x23d485('0x1d')](db[_0x23d485('0x52')][_0x23d485('0xd')],function(_0x5bf8dd){const _0x11d793=_0x23d485;return{'name':_0x5bf8dd['fieldName'],'type':_0x5bf8dd[_0x11d793('0x3c')][_0x11d793('0x34')]};});_0x3b3ef9[_0x23d485('0x40')]=_[_0x23d485('0x1d')](_0x34c49e,_0x23d485('0x31')),_0x3b3ef9['query']=_['keys'](_0x20ed71[_0x23d485('0x36')]),_0x3b3ef9[_0x23d485('0x0')]=_['intersection'](_0x3b3ef9[_0x23d485('0x40')],_0x3b3ef9[_0x23d485('0x36')]),_0x3b8a7f[_0x23d485('0x44')]=_[_0x23d485('0x5c')](_0x3b3ef9[_0x23d485('0x40')],qs[_0x23d485('0x3a')](_0x20ed71[_0x23d485('0x36')][_0x23d485('0x3a')])),_0x3b8a7f[_0x23d485('0x44')]=_0x3b8a7f[_0x23d485('0x44')]['length']?_0x3b8a7f[_0x23d485('0x44')]:_0x3b3ef9['model'];typeof _0x20ed71['query'][_0x23d485('0x2f')]===_0x23d485('0x55')&&(_0x3b8a7f[_0x23d485('0x61')]=qs[_0x23d485('0x61')](_0x20ed71[_0x23d485('0x36')]['limit']),_0x3b8a7f['offset']=qs[_0x23d485('0x51')](_0x20ed71[_0x23d485('0x36')]['offset']));_0x3b8a7f[_0x23d485('0x3b')]=qs[_0x23d485('0x29')](_0x20ed71['query'][_0x23d485('0x29')]),_0x3b8a7f['where']=qs[_0x23d485('0x0')](_[_0x23d485('0xc')](_0x20ed71[_0x23d485('0x36')],_0x3b3ef9[_0x23d485('0x0')]),_0x34c49e);_0x20ed71[_0x23d485('0x36')]['filter']&&(_0x3b8a7f[_0x23d485('0x2')]=_[_0x23d485('0x46')](_0x3b8a7f[_0x23d485('0x2')],{[Op['or']]:_['map'](_0x34c49e,function(_0x5394d8){const _0x21c99b=_0x23d485;if(_0x5394d8[_0x21c99b('0x3c')]!==_0x21c99b('0x63')){const _0x4c7c4b={};return _0x4c7c4b[_0x5394d8[_0x21c99b('0x31')]]={[Op[_0x21c99b('0x59')]]:'%'+_0x20ed71[_0x21c99b('0x36')][_0x21c99b('0x56')]+'%'},_0x4c7c4b;}})}));_0x3b8a7f=_[_0x23d485('0x46')]({},_0x3b8a7f,_0x20ed71[_0x23d485('0x60')]);const _0x57f65e={'where':_0x3b8a7f[_0x23d485('0x2')]};return db[_0x23d485('0x52')]['count'](_0x57f65e)[_0x23d485('0x50')](function(_0x241a90){const _0x44591d=_0x23d485;return _0x1e36a3['count']=_0x241a90,_0x20ed71[_0x44591d('0x36')][_0x44591d('0x39')]&&(_0x3b8a7f[_0x44591d('0x68')]=[{'all':!![]}]),db[_0x44591d('0x52')][_0x44591d('0x62')](_0x3b8a7f);})['then'](function(_0x403e59){const _0x243919=_0x23d485;return _0x1e36a3[_0x243919('0x33')]=_0x403e59,_0x1e36a3;})[_0x23d485('0x50')](respondWithFilteredResult(_0x40dbba,_0x3b8a7f))['catch'](handleError(_0x40dbba,null));},exports[_0x484143('0x4e')]=function(_0x37eaf5,_0x5b17fe){const _0x20e161=_0x484143;let _0x2372f6={'raw':!![],'where':{'id':_0x37eaf5[_0x20e161('0x2c')]['id']}};const _0x56852b={};return _0x56852b[_0x20e161('0x40')]=_[_0x20e161('0x67')](db[_0x20e161('0x52')]['rawAttributes']),_0x56852b['query']=_['keys'](_0x37eaf5['query']),_0x56852b[_0x20e161('0x0')]=_['intersection'](_0x56852b[_0x20e161('0x40')],_0x56852b['query']),_0x2372f6[_0x20e161('0x44')]=_[_0x20e161('0x5c')](_0x56852b[_0x20e161('0x40')],qs[_0x20e161('0x3a')](_0x37eaf5[_0x20e161('0x36')][_0x20e161('0x3a')])),_0x2372f6[_0x20e161('0x44')]=_0x2372f6[_0x20e161('0x44')][_0x20e161('0x42')]?_0x2372f6[_0x20e161('0x44')]:_0x56852b[_0x20e161('0x40')],_0x37eaf5[_0x20e161('0x36')]['includeAll']&&(_0x2372f6[_0x20e161('0x68')]=[{'all':!![]}]),_0x2372f6=_[_0x20e161('0x46')]({},_0x2372f6,_0x37eaf5[_0x20e161('0x60')]),db['ChatQueue']['findOne'](_0x2372f6)['then'](handleEntityNotFound(_0x5b17fe,null))['then'](respondWithResult(_0x5b17fe,null))[_0x20e161('0x7')](handleError(_0x5b17fe,null));},exports[_0x484143('0x38')]=function(_0x39c908,_0x59a3c8){const _0x234898=_0x484143;return db['ChatQueue'][_0x234898('0x38')](_0x39c908[_0x234898('0x4c')],{})[_0x234898('0x50')](function(_0x3375dd){const _0x472b92=_0x234898,_0x410c90=_0x39c908[_0x472b92('0x43')]['get']({'plain':!![]});if(!_0x410c90)throw new Error(_0x472b92('0x45'));if(_0x410c90['role']===_0x472b92('0x43')){const _0x22cb6b=_0x3375dd[_0x472b92('0x35')]({'plain':!![]}),_0x5b5ec0='ChatQueues';return db[_0x472b92('0xf')][_0x472b92('0x4d')]({'where':{'name':_0x5b5ec0,'userProfileId':_0x410c90['userProfileId']},'raw':!![]})[_0x472b92('0x50')](function(_0x816c8c){const _0x558a88=_0x472b92;return _0x816c8c&&_0x816c8c[_0x558a88('0xa')]===0x0?db[_0x558a88('0x1a')][_0x558a88('0x38')]({'name':_0x22cb6b[_0x558a88('0x31')],'resourceId':_0x22cb6b['id'],'type':_0x816c8c[_0x558a88('0x31')],'sectionId':_0x816c8c['id']},{})[_0x558a88('0x50')](function(){return _0x3375dd;}):_0x3375dd;})['catch'](function(_0x568c71){const _0x1d86a6=_0x472b92;logger[_0x1d86a6('0x32')](_0x1d86a6('0x5e'),_0x568c71);throw _0x568c71;});}return _0x3375dd;})[_0x234898('0x50')](respondWithResult(_0x59a3c8,0xc9))[_0x234898('0x7')](handleError(_0x59a3c8,null));},exports[_0x484143('0x2a')]=function(_0x429460,_0x1e20d5){const _0xd6e386=_0x484143;return _0x429460[_0xd6e386('0x4c')]['id']&&delete _0x429460[_0xd6e386('0x4c')]['id'],db['ChatQueue'][_0xd6e386('0x4d')]({'where':{'id':_0x429460[_0xd6e386('0x2c')]['id']}})[_0xd6e386('0x50')](handleEntityNotFound(_0x1e20d5,null))[_0xd6e386('0x50')](saveUpdates(_0x429460['body'],null))['then'](respondWithResult(_0x1e20d5,null))[_0xd6e386('0x7')](handleError(_0x1e20d5,null));},exports[_0x484143('0x54')]=function(_0xbd7094,_0x41667b){const _0x1521a3=_0x484143;return db['ChatQueue'][_0x1521a3('0x4d')]({'where':{'id':_0xbd7094['params']['id']}})[_0x1521a3('0x50')](handleEntityNotFound(_0x41667b,null))[_0x1521a3('0x50')](removeEntity(_0x41667b,null))[_0x1521a3('0x7')](handleError(_0x41667b,null));},exports[_0x484143('0x58')]=function(_0x512bd2,_0x4a75a3){const _0x426538=_0x484143;return db['ChatQueue'][_0x426538('0x58')]()[_0x426538('0x50')](respondWithResult(_0x4a75a3,null))[_0x426538('0x7')](handleError(_0x4a75a3,null));},exports[_0x484143('0x1')]=function(_0x4678d2,_0x48fac1){const _0x416ecb=_0x484143;let _0xb1f4a7={'raw':!![],'where':{}};const _0x58233e={};let _0x5b2f33;return db[_0x416ecb('0x52')][_0x416ecb('0x4d')]({'where':{'id':_0x4678d2['params']['id']}})['then'](handleEntityNotFound(_0x48fac1,null))['then'](function(_0x2422f1){const _0x3fefe5=_0x416ecb;if(_0x2422f1)return _0x5b2f33=_0x2422f1['get']({'plain':!![]}),_0x58233e[_0x3fefe5('0x40')]=_[_0x3fefe5('0x67')](db[_0x3fefe5('0x5a')][_0x3fefe5('0xd')]),_0x58233e['query']=_['keys'](_0x4678d2['query']),_0x58233e[_0x3fefe5('0x0')]=_['intersection'](_0x58233e[_0x3fefe5('0x40')],_0x58233e['query']),_0xb1f4a7[_0x3fefe5('0x44')]=_[_0x3fefe5('0x5c')](_0x58233e['model'],qs['fields'](_0x4678d2[_0x3fefe5('0x36')][_0x3fefe5('0x3a')])),_0xb1f4a7['attributes']=_0xb1f4a7[_0x3fefe5('0x44')]['length']?_0xb1f4a7['attributes']:_0x58233e[_0x3fefe5('0x40')],typeof _0x4678d2[_0x3fefe5('0x36')][_0x3fefe5('0x2f')]==='undefined'&&(_0xb1f4a7[_0x3fefe5('0x61')]=qs['limit'](_0x4678d2[_0x3fefe5('0x36')]['limit']),_0xb1f4a7[_0x3fefe5('0x51')]=qs[_0x3fefe5('0x51')](_0x4678d2['query'][_0x3fefe5('0x51')])),_0xb1f4a7[_0x3fefe5('0x3b')]=qs[_0x3fefe5('0x29')](_0x4678d2[_0x3fefe5('0x36')][_0x3fefe5('0x29')]),_0xb1f4a7[_0x3fefe5('0x2')]=qs[_0x3fefe5('0x0')](_['pick'](_0x4678d2[_0x3fefe5('0x36')],_0x58233e['filters'])),_0xb1f4a7[_0x3fefe5('0x2')]['ChatQueueId']=_0x2422f1['id'],_0x4678d2[_0x3fefe5('0x36')][_0x3fefe5('0x56')]&&(_0xb1f4a7['where']=_[_0x3fefe5('0x46')](_0xb1f4a7['where'],{[Op['or']]:_['map'](_0xb1f4a7[_0x3fefe5('0x44')],function(_0x6bbcae){const _0x350865=_0x3fefe5,_0x445da2={};return _0x445da2[_0x6bbcae]={[Op['like']]:'%'+_0x4678d2['query'][_0x350865('0x56')]+'%'},_0x445da2;})})),_0xb1f4a7=_[_0x3fefe5('0x46')]({},_0xb1f4a7,_0x4678d2[_0x3fefe5('0x60')]),db['UserChatQueue'][_0x3fefe5('0x62')](_0xb1f4a7);})[_0x416ecb('0x50')](function(_0x219f58){const _0x5a7be5=_0x416ecb;if(_0x219f58)return db['User'][_0x5a7be5('0x1f')]({'where':{'id':_[_0x5a7be5('0x1d')](_0x219f58,_0x5a7be5('0x9')),'role':_0x5a7be5('0x28')},'attributes':['id',_0x5a7be5('0x31'),'chatPause','updatedAt',_0x5a7be5('0x66')]});})['then'](function(_0x485585){const _0x22c28f=_0x416ecb;return _0x485585?{'count':_0x485585['count'],'rows':_['map'](_0x485585[_0x22c28f('0x33')],function(_0x39e0c0){const _0x1784e6=_0x22c28f;return{'membername':_0x39e0c0[_0x1784e6('0x31')],'UserId':_0x39e0c0['id'],'queue_name':_0x5b2f33[_0x1784e6('0x31')],'ChatQueueId':_0x5b2f33['id'],'interface':util[_0x1784e6('0x2e')]('%s/%s','SIP',_0x39e0c0[_0x1784e6('0x31')]),'penalty':0x0,'paused':_0x39e0c0[_0x1784e6('0x8')],'createdAt':_0x39e0c0[_0x1784e6('0x66')],'updatedAt':_0x39e0c0[_0x1784e6('0xb')]};})}:{'count':0x0,'rows':[]};})[_0x416ecb('0x50')](respondWithFilteredResult(_0x48fac1,_0xb1f4a7))[_0x416ecb('0x7')](handleError(_0x48fac1,null));},exports['getTeams']=function(_0x3cc4f0,_0x4843df){const _0x171832=_0x484143;let _0x3f2e20={};const _0x9bf40={};let _0x2515a0,_0x4300cc;return db[_0x171832('0x52')]['findOne']({'where':{'id':_0x3cc4f0[_0x171832('0x2c')]['id']}})[_0x171832('0x50')](handleEntityNotFound(_0x4843df,null))['then'](function(_0x2007f7){const _0x23b68c=_0x171832;if(_0x2007f7)return _0x2515a0=_0x2007f7,_0x9bf40[_0x23b68c('0x40')]=_[_0x23b68c('0x67')](db[_0x23b68c('0x12')]['rawAttributes']),_0x9bf40[_0x23b68c('0x36')]=_['keys'](_0x3cc4f0['query']),_0x9bf40[_0x23b68c('0x0')]=_[_0x23b68c('0x5c')](_0x9bf40[_0x23b68c('0x40')],_0x9bf40['query']),_0x3f2e20[_0x23b68c('0x44')]=_[_0x23b68c('0x5c')](_0x9bf40[_0x23b68c('0x40')],qs[_0x23b68c('0x3a')](_0x3cc4f0[_0x23b68c('0x36')][_0x23b68c('0x3a')])),_0x3f2e20[_0x23b68c('0x44')]=_0x3f2e20[_0x23b68c('0x44')][_0x23b68c('0x42')]?_0x3f2e20[_0x23b68c('0x44')]:_0x9bf40[_0x23b68c('0x40')],_0x3f2e20[_0x23b68c('0x3b')]=qs[_0x23b68c('0x29')](_0x3cc4f0[_0x23b68c('0x36')]['sort']),_0x3f2e20[_0x23b68c('0x2')]=qs['filters'](_[_0x23b68c('0xc')](_0x3cc4f0[_0x23b68c('0x36')],_0x9bf40[_0x23b68c('0x0')])),_0x3cc4f0['query'][_0x23b68c('0x56')]&&(_0x3f2e20[_0x23b68c('0x2')]=_[_0x23b68c('0x46')](_0x3f2e20[_0x23b68c('0x2')],{[Op['or']]:_[_0x23b68c('0x1d')](_0x3f2e20['attributes'],function(_0x840fc1){const _0x25dad4=_0x23b68c,_0x5c635e={};return _0x5c635e[_0x840fc1]={[Op[_0x25dad4('0x59')]]:'%'+_0x3cc4f0['query'][_0x25dad4('0x56')]+'%'},_0x5c635e;})})),_0x3f2e20=_['merge']({},_0x3f2e20,_0x3cc4f0['options']),_0x2515a0[_0x23b68c('0x16')](_0x3f2e20);})[_0x171832('0x50')](function(_0x5a0f22){const _0x34277b=_0x171832;if(_0x5a0f22)return _0x4300cc=_0x5a0f22[_0x34277b('0x42')],typeof _0x3cc4f0['query'][_0x34277b('0x2f')]==='undefined'&&(_0x3f2e20[_0x34277b('0x61')]=qs[_0x34277b('0x61')](_0x3cc4f0[_0x34277b('0x36')][_0x34277b('0x61')]),_0x3f2e20[_0x34277b('0x51')]=qs[_0x34277b('0x51')](_0x3cc4f0['query']['offset'])),_0x2515a0[_0x34277b('0x16')](_0x3f2e20);})[_0x171832('0x50')](function(_0x58824f){if(_0x58824f)return _0x58824f?{'count':_0x4300cc,'rows':_0x58824f}:null;})['then'](respondWithResult(_0x4843df,null))['catch'](handleError(_0x4843df,null));},exports[_0x484143('0x24')]=function(_0x4a5a5b,_0xbfa842){const _0x34182e=_0x484143,_0x5ab9fc=_0x4a5a5b[_0x34182e('0x4c')]['ids'];return db[_0x34182e('0x12')][_0x34182e('0x62')]({'where':{'id':_0x5ab9fc},'attributes':['id'],'include':[{'model':db[_0x34182e('0x4f')],'as':_0x34182e('0x65'),'attributes':['id',_0x34182e('0x31'),_0x34182e('0x47'),'voicePause','interface'],'raw':!![]}]})[_0x34182e('0x50')](function(_0x34a0f2){const _0x11d52a=_0x34182e;if(_0x34a0f2){const _0x1fe783=_[_0x11d52a('0x4')](_0x34a0f2,function(_0x4d9076){const _0x173cc7=_0x11d52a,_0x5a815d=_0x4d9076[_0x173cc7('0x35')]({'plain':!![]});return _0x5a815d['Agents'];});return db[_0x11d52a('0x52')][_0x11d52a('0x4d')]({'where':{'id':_0x4a5a5b[_0x11d52a('0x2c')]['id']}})[_0x11d52a('0x50')](function(_0x310473){return db['sequelize']['transaction'](function(_0xff44ef){const _0x5bdcb9=a95_0x2f0e;return _0x310473[_0x5bdcb9('0x24')](_0x5ab9fc,{'transaction':_0xff44ef})[_0x5bdcb9('0x50')](function(){const _0x67580e=_0x5bdcb9;return Promise[_0x67580e('0x41')](_0x1fe783,function(_0x2891bd){const _0x692bf6=_0x67580e;return db['UserChatQueue'][_0x692bf6('0x49')]({'where':{'UserId':_0x2891bd['id'],'ChatQueueId':_0x4a5a5b[_0x692bf6('0x2c')]['id']},'transaction':_0xff44ef});});})[_0x5bdcb9('0x50')](function(){const _0x3ad91f=_0x5bdcb9;_0x1fe783[_0x3ad91f('0x21')](function(_0x1abad1){const _0x1b324c=_0x3ad91f;socket[_0x1b324c('0x23')](_0x1b324c('0x17'),{'UserId':_0x1abad1['id'],'ChatQueueId':_0x310473['id']});});});});});}})[_0x34182e('0x50')](respondWithStatusCode(_0xbfa842,null))[_0x34182e('0x7')](handleError(_0xbfa842,null));},exports[_0x484143('0x18')]=function(_0x3a7edd,_0x2e9afd){const _0x21225e=_0x484143;return db[_0x21225e('0x12')][_0x21225e('0x62')]({'where':{'id':_0x3a7edd['query'][_0x21225e('0x5')]},'attributes':['id'],'include':[{'model':db[_0x21225e('0x4f')],'as':_0x21225e('0x65'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x2e9afd,null))[_0x21225e('0x50')](function(_0x46865c){const _0x4f4880=_0x21225e,_0x19c848=_['map'](_0x46865c,'id');let _0x5720cc=[];const _0x37e4a6=[],_0x300c3b=squel[_0x4f4880('0x5f')]();_0x300c3b['field'](_0x4f4880('0x27'))[_0x4f4880('0x14')](_0x4f4880('0x1b'),'tq')['join'](_0x4f4880('0x22'),'ut',_0x4f4880('0x4a'))[_0x4f4880('0x2')](_0x4f4880('0x53'),_0x3a7edd[_0x4f4880('0x2c')]['id']);for(let _0x4a5f15=0x0;_0x4a5f15<_0x46865c[_0x4f4880('0x42')];_0x4a5f15+=0x1){const _0x366d89=_0x46865c[_0x4a5f15];for(let _0xe5b340=0x0;_0xe5b340<_0x366d89['Agents'][_0x4f4880('0x42')];_0xe5b340+=0x1){const _0x5ef8df=_0x366d89[_0x4f4880('0x65')][_0xe5b340],_0x53abd1=_0x300c3b['clone']();_0x53abd1[_0x4f4880('0x2')]('ut.UserId\x20=\x20?',_0x5ef8df['id']),_0x37e4a6[_0x4f4880('0x20')](db[_0x4f4880('0x10')][_0x4f4880('0x36')](_0x53abd1[_0x4f4880('0x5d')](),{'type':db[_0x4f4880('0x10')][_0x4f4880('0x3f')][_0x4f4880('0x25')]})['then'](function(_0x3fbad9){const _0x22325a=_0x4f4880;if(_0x3fbad9[_0x22325a('0x42')]===0x1)return _0x5ef8df['id'];else{const _0x4a286d=_['every'](_[_0x22325a('0x1d')](_0x3fbad9,'TeamId'),function(_0x18808f){return _['includes'](_0x19c848,_0x18808f);});if(_0x4a286d)return _0x5ef8df['id'];}}));}}return Promise['all'](_0x37e4a6)[_0x4f4880('0x50')](function(_0x320725){const _0x59c692=_0x4f4880;return _0x5720cc=_(_0x5720cc)['union'](_0x320725)[_0x59c692('0x2d')]()['value'](),db[_0x59c692('0x52')]['findOne']({'where':{'id':_0x3a7edd[_0x59c692('0x2c')]['id']}})[_0x59c692('0x50')](function(_0x3575a8){return db['sequelize']['transaction'](function(_0x4de5c7){const _0x572f86=a95_0x2f0e;return _0x3575a8['removeTeams'](_0x3a7edd['query'][_0x572f86('0x5')],{'transaction':_0x4de5c7})['then'](function(){const _0x1a4bd0=_0x572f86;if(!_['isEmpty'](_0x5720cc))return _0x3575a8[_0x1a4bd0('0x3')](_0x5720cc,{'transaction':_0x4de5c7});})[_0x572f86('0x50')](function(){const _0x5f3257=_0x572f86;_0x5720cc[_0x5f3257('0x21')](function(_0xb6dec4){const _0x58cac1=_0x5f3257;socket[_0x58cac1('0x23')]('userChatQueue:remove',{'UserId':_0xb6dec4,'ChatQueueId':_0x3575a8['id']});});});});});});})[_0x21225e('0x50')](respondWithStatusCode(_0x2e9afd,null))[_0x21225e('0x7')](handleError(_0x2e9afd,null));},exports[_0x484143('0x57')]=function(_0x38347c,_0xcbb739){const _0x29a5f6=_0x484143;return db['ChatQueue'][_0x29a5f6('0x4d')]({'where':{'id':_0x38347c['params']['id']}})['then'](function(_0x4640d3){const _0x57cdf2=_0x29a5f6;if(_0x4640d3)return _0x4640d3[_0x57cdf2('0x57')](_0x38347c[_0x57cdf2('0x4c')][_0x57cdf2('0x5')],{'through':_[_0x57cdf2('0xe')](_0x38347c[_0x57cdf2('0x4c')],[_0x57cdf2('0x5'),'id'])})['then'](function(_0x4e2867){const _0x352318=_0x57cdf2;for(let _0x3b3419=0x0;_0x3b3419<_0x38347c[_0x352318('0x4c')][_0x352318('0x5')]['length'];_0x3b3419+=0x1){socket[_0x352318('0x23')](_0x352318('0x17'),{'UserId':_0x38347c['body'][_0x352318('0x5')][_0x3b3419],'ChatQueueId':_0x38347c[_0x352318('0x2c')]['id']});}return _0x4e2867;});})['then'](respondWithResult(_0xcbb739,null))['catch'](handleError(_0xcbb739,null));},exports[_0x484143('0x3')]=function(_0x2abace,_0x415c35){const _0x1e03c7=_0x484143;return db[_0x1e03c7('0x52')][_0x1e03c7('0x4d')]({'where':{'id':_0x2abace[_0x1e03c7('0x2c')]['id']}})[_0x1e03c7('0x50')](handleEntityNotFound(_0x415c35,null))[_0x1e03c7('0x50')](function(_0x30c654){const _0x321425=_0x1e03c7;if(_0x30c654)return _0x30c654[_0x321425('0x3')](_0x2abace[_0x321425('0x36')][_0x321425('0x5')])['then'](function(){const _0x48fd0d=_0x321425;if(_['isArray'](_0x2abace[_0x48fd0d('0x36')]['ids']))for(let _0x59ac6f=0x0;_0x59ac6f<_0x2abace[_0x48fd0d('0x36')][_0x48fd0d('0x5')][_0x48fd0d('0x42')];_0x59ac6f+=0x1){socket[_0x48fd0d('0x23')](_0x48fd0d('0x1c'),{'UserId':Number(_0x2abace[_0x48fd0d('0x36')][_0x48fd0d('0x5')][_0x59ac6f]),'ChatQueueId':Number(_0x2abace[_0x48fd0d('0x2c')]['id'])});}else socket[_0x48fd0d('0x23')]('userChatQueue:remove',{'UserId':Number(_0x2abace[_0x48fd0d('0x36')][_0x48fd0d('0x5')]),'ChatQueueId':Number(_0x2abace[_0x48fd0d('0x2c')]['id'])});});})[_0x1e03c7('0x50')](respondWithStatusCode(_0x415c35,null))[_0x1e03c7('0x7')](handleError(_0x415c35,null));},exports['getAgents']=function(_0x1b6e09,_0x2d2fd6){const _0x118119=_0x484143;let _0x3582a7={};const _0x2bda3f={};let _0x225741,_0x8f9261;return db[_0x118119('0x52')][_0x118119('0x4d')]({'where':{'id':_0x1b6e09[_0x118119('0x2c')]['id']}})['then'](handleEntityNotFound(_0x2d2fd6,null))[_0x118119('0x50')](function(_0x304404){const _0xebd7a9=_0x118119;if(_0x304404)return _0x225741=_0x304404,_0x2bda3f[_0xebd7a9('0x40')]=_[_0xebd7a9('0x67')](db[_0xebd7a9('0x4f')][_0xebd7a9('0xd')]),_0x2bda3f[_0xebd7a9('0x36')]=_[_0xebd7a9('0x67')](_0x1b6e09[_0xebd7a9('0x36')]),_0x2bda3f[_0xebd7a9('0x0')]=_[_0xebd7a9('0x5c')](_0x2bda3f[_0xebd7a9('0x40')],_0x2bda3f[_0xebd7a9('0x36')]),_0x3582a7['attributes']=_[_0xebd7a9('0x5c')](_0x2bda3f[_0xebd7a9('0x40')],qs['fields'](_0x1b6e09[_0xebd7a9('0x36')][_0xebd7a9('0x3a')])),_0x3582a7[_0xebd7a9('0x44')]=_0x3582a7[_0xebd7a9('0x44')][_0xebd7a9('0x42')]?_0x3582a7[_0xebd7a9('0x44')]:_0x2bda3f['model'],_0x3582a7[_0xebd7a9('0x3b')]=qs[_0xebd7a9('0x29')](_0x1b6e09[_0xebd7a9('0x36')][_0xebd7a9('0x29')]),_0x3582a7['where']=qs['filters'](_[_0xebd7a9('0xc')](_0x1b6e09[_0xebd7a9('0x36')],_0x2bda3f[_0xebd7a9('0x0')])),_0x1b6e09['query'][_0xebd7a9('0x56')]&&(_0x3582a7['where']=_['merge'](_0x3582a7[_0xebd7a9('0x2')],{[Op['or']]:_[_0xebd7a9('0x1d')](_0x3582a7[_0xebd7a9('0x44')],function(_0x4f5302){const _0x3c98be=_0xebd7a9,_0x21bc3b={};return _0x21bc3b[_0x4f5302]={[Op[_0x3c98be('0x59')]]:'%'+_0x1b6e09[_0x3c98be('0x36')][_0x3c98be('0x56')]+'%'},_0x21bc3b;})})),_0x3582a7=_['merge']({},_0x3582a7,_0x1b6e09[_0xebd7a9('0x60')]),_0x225741['getAgents'](_0x3582a7);})['then'](function(_0xe66ce5){const _0x2d7dff=_0x118119;if(_0xe66ce5)return _0x8f9261=_0xe66ce5[_0x2d7dff('0x42')],typeof _0x1b6e09[_0x2d7dff('0x36')][_0x2d7dff('0x2f')]==='undefined'&&(_0x3582a7['limit']=qs[_0x2d7dff('0x61')](_0x1b6e09[_0x2d7dff('0x36')][_0x2d7dff('0x61')]),_0x3582a7[_0x2d7dff('0x51')]=qs[_0x2d7dff('0x51')](_0x1b6e09[_0x2d7dff('0x36')]['offset'])),_0x225741['getAgents'](_0x3582a7);})[_0x118119('0x50')](function(_0x5370f4){if(_0x5370f4)return _0x5370f4?{'count':_0x8f9261,'rows':_0x5370f4}:null;})[_0x118119('0x50')](respondWithResult(_0x2d2fd6,null))[_0x118119('0x7')](handleError(_0x2d2fd6,null));}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.events.js b/server/api/chatQueue/chatQueue.events.js index 9120fa1..d5ee927 100644 --- a/server/api/chatQueue/chatQueue.events.js +++ b/server/api/chatQueue/chatQueue.events.js @@ -1 +1 @@ -const a96_0x1a5e=['../../mysqldb','addHook','save','undefined','ChatQueue','remove','setMaxListeners','update','emit','exports'];(function(_0x165f5f,_0x1a5e09){const _0x228323=function(_0x1ea551){while(--_0x1ea551){_0x165f5f['push'](_0x165f5f['shift']());}};_0x228323(++_0x1a5e09);}(a96_0x1a5e,0x1bc));const a96_0x2283=function(_0x165f5f,_0x1a5e09){_0x165f5f=_0x165f5f-0x0;let _0x228323=a96_0x1a5e[_0x165f5f];return _0x228323;};const _0x55abcf=a96_0x2283;'use strict';const EventEmitter=require('events'),ChatQueue=require(_0x55abcf('0x6'))['db'][_0x55abcf('0x0')],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x55abcf('0x2')](0x0);const events={'afterCreate':_0x55abcf('0x8'),'afterUpdate':_0x55abcf('0x3'),'afterDestroy':_0x55abcf('0x1')};function emitEvent(_0x1ea551){return function(_0x5638ec){const _0x3b9404=a96_0x2283;ChatQueueEvents['emit'](_0x1ea551+':'+_0x5638ec['id'],_0x5638ec),ChatQueueEvents[_0x3b9404('0x4')](_0x1ea551,_0x5638ec);};}for(const e in events){if(typeof events[e]!==_0x55abcf('0x9')){const event=events[e];ChatQueue[_0x55abcf('0x7')](e,emitEvent(event));}}module[_0x55abcf('0x5')]=ChatQueueEvents; \ No newline at end of file +const a96_0x5e1d=['addHook','events','save','ChatQueue','exports','remove','../../mysqldb','setMaxListeners','emit','update'];(function(_0x19c953,_0x5e1d50){const _0x3eb6f3=function(_0x527b0a){while(--_0x527b0a){_0x19c953['push'](_0x19c953['shift']());}};_0x3eb6f3(++_0x5e1d50);}(a96_0x5e1d,0x107));const a96_0x3eb6=function(_0x19c953,_0x5e1d50){_0x19c953=_0x19c953-0x0;let _0x3eb6f3=a96_0x5e1d[_0x19c953];return _0x3eb6f3;};const _0x5a4363=a96_0x3eb6;'use strict';const EventEmitter=require(_0x5a4363('0x8')),ChatQueue=require(_0x5a4363('0x3'))['db'][_0x5a4363('0x0')],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x5a4363('0x4')](0x0);const events={'afterCreate':_0x5a4363('0x9'),'afterUpdate':_0x5a4363('0x6'),'afterDestroy':_0x5a4363('0x2')};function emitEvent(_0x527b0a){return function(_0x181d48){const _0x51b348=a96_0x3eb6;ChatQueueEvents[_0x51b348('0x5')](_0x527b0a+':'+_0x181d48['id'],_0x181d48),ChatQueueEvents['emit'](_0x527b0a,_0x181d48);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatQueue[_0x5a4363('0x7')](e,emitEvent(event));}}module[_0x5a4363('0x1')]=ChatQueueEvents; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.model.js b/server/api/chatQueue/chatQueue.model.js index 33c7e58..cdbcff3 100644 --- a/server/api/chatQueue/chatQueue.model.js +++ b/server/api/chatQueue/chatQueue.model.js @@ -1 +1 @@ -const a97_0x1ad3=['define','ChatQueue','./chatQueue.attributes'];(function(_0x4e9c27,_0x1ad33c){const _0x119d12=function(_0x3cb3b2){while(--_0x3cb3b2){_0x4e9c27['push'](_0x4e9c27['shift']());}};_0x119d12(++_0x1ad33c);}(a97_0x1ad3,0xb6));const a97_0x119d=function(_0x4e9c27,_0x1ad33c){_0x4e9c27=_0x4e9c27-0x0;let _0x119d12=a97_0x1ad3[_0x4e9c27];return _0x119d12;};const _0x2d9c93=a97_0x119d;'use strict';const attributes=require(_0x2d9c93('0x0'));module['exports']=function(_0x3cb3b2){const _0x57c126=_0x2d9c93,_0x16bca6=_0x3cb3b2[_0x57c126('0x1')](_0x57c126('0x2'),attributes,{'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x16bca6;}; \ No newline at end of file +const a97_0x2aa4=['define','./chatQueue.attributes','ChatQueue','exports'];(function(_0x1a48ef,_0x2aa400){const _0x3cdcfd=function(_0x1f82a9){while(--_0x1f82a9){_0x1a48ef['push'](_0x1a48ef['shift']());}};_0x3cdcfd(++_0x2aa400);}(a97_0x2aa4,0xc1));const a97_0x3cdc=function(_0x1a48ef,_0x2aa400){_0x1a48ef=_0x1a48ef-0x0;let _0x3cdcfd=a97_0x2aa4[_0x1a48ef];return _0x3cdcfd;};const _0x45f5b9=a97_0x3cdc;'use strict';const attributes=require(_0x45f5b9('0x0'));module[_0x45f5b9('0x2')]=function(_0x1f82a9){const _0x474ae5=_0x45f5b9,_0x2ce60f=_0x1f82a9[_0x474ae5('0x3')](_0x474ae5('0x1'),attributes,{'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2ce60f;}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.rpc.js b/server/api/chatQueue/chatQueue.rpc.js index 485cae0..1b4c930 100644 --- a/server/api/chatQueue/chatQueue.rpc.js +++ b/server/api/chatQueue/chatQueue.rpc.js @@ -1 +1 @@ -const a98_0x5e1f=['GetChatQueue','lodash','info','rpc','ShowChatQueue','options','register','./chatQueue.socket','model','stringify','where','error','findOne','message','limit','raw','include','then','../../config/logger','catch','attributes','findAll','ChatQueue','debug','map'];(function(_0x2f7e50,_0x5e1f70){const _0x4ee64a=function(_0x49df34){while(--_0x49df34){_0x2f7e50['push'](_0x2f7e50['shift']());}};_0x4ee64a(++_0x5e1f70);}(a98_0x5e1f,0x1d3));const a98_0x4ee6=function(_0x2f7e50,_0x5e1f70){_0x2f7e50=_0x2f7e50-0x0;let _0x4ee64a=a98_0x5e1f[_0x2f7e50];return _0x4ee64a;};const _0x52f991=a98_0x4ee6;'use strict';const _=require(_0x52f991('0x9')),db=require('../../mysqldb')['db'],logger=require(_0x52f991('0x1'))(_0x52f991('0xb')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x52f991('0xf'))[_0x52f991('0xe')](socket),exports[_0x52f991('0x8')]=function(_0x49df34){const _0x164bb9=this;return new Promise(function(_0x3146fe,_0x440e6a){const _0x5cb398=a98_0x4ee6;return db['ChatQueue'][_0x5cb398('0x4')]({'raw':_0x49df34[_0x5cb398('0xd')]?_0x49df34[_0x5cb398('0xd')][_0x5cb398('0x17')]===undefined?!![]:![]:!![],'where':_0x49df34[_0x5cb398('0xd')]?_0x49df34[_0x5cb398('0xd')][_0x5cb398('0x12')]||null:null,'attributes':_0x49df34['options']?_0x49df34[_0x5cb398('0xd')][_0x5cb398('0x3')]||null:null,'limit':_0x49df34[_0x5cb398('0xd')]?_0x49df34[_0x5cb398('0xd')][_0x5cb398('0x16')]||null:null,'include':_0x49df34[_0x5cb398('0xd')]?_0x49df34[_0x5cb398('0xd')][_0x5cb398('0x18')]?_['map'](_0x49df34[_0x5cb398('0xd')][_0x5cb398('0x18')],function(_0x1bd195){const _0x5be763=_0x5cb398;return{'model':db[_0x1bd195[_0x5be763('0x10')]],'as':_0x1bd195['as'],'attributes':_0x1bd195[_0x5be763('0x3')],'include':_0x1bd195[_0x5be763('0x18')]?_[_0x5be763('0x7')](_0x1bd195[_0x5be763('0x18')],function(_0x173903){const _0x36b04f=_0x5be763;return{'model':db[_0x173903[_0x36b04f('0x10')]],'as':_0x173903['as'],'attributes':_0x173903[_0x36b04f('0x3')],'include':_0x173903[_0x36b04f('0x18')]?_[_0x36b04f('0x7')](_0x173903[_0x36b04f('0x18')],function(_0x3b5ad1){const _0x2db213=_0x36b04f;return{'model':db[_0x3b5ad1[_0x2db213('0x10')]],'as':_0x3b5ad1['as'],'attributes':_0x3b5ad1[_0x2db213('0x3')]};}):[]};}):[]};}):[]:[]})[_0x5cb398('0x0')](function(_0x19ba87){const _0x350af3=_0x5cb398;logger[_0x350af3('0xa')](_0x350af3('0x8'),_0x49df34),logger['debug']('GetChatQueue',_0x49df34,JSON[_0x350af3('0x11')](_0x19ba87)),_0x3146fe(_0x19ba87);})['catch'](function(_0x37ba19){const _0x37b91d=_0x5cb398;logger[_0x37b91d('0x13')]('GetChatQueue',_0x37ba19[_0x37b91d('0x15')],_0x49df34),_0x440e6a(_0x164bb9[_0x37b91d('0x13')](0x1f4,_0x37ba19[_0x37b91d('0x15')]));});});},exports[_0x52f991('0xc')]=function(_0x3d995c){const _0xb94976=this;return new Promise(function(_0x43d044,_0x362469){const _0x42ece2=a98_0x4ee6;return db[_0x42ece2('0x5')][_0x42ece2('0x14')]({'raw':_0x3d995c[_0x42ece2('0xd')]?_0x3d995c[_0x42ece2('0xd')][_0x42ece2('0x17')]===undefined?!![]:![]:!![],'where':_0x3d995c[_0x42ece2('0xd')]?_0x3d995c[_0x42ece2('0xd')][_0x42ece2('0x12')]||null:null,'attributes':_0x3d995c[_0x42ece2('0xd')]?_0x3d995c[_0x42ece2('0xd')][_0x42ece2('0x3')]||null:null,'include':_0x3d995c[_0x42ece2('0xd')]?_0x3d995c[_0x42ece2('0xd')][_0x42ece2('0x18')]?_[_0x42ece2('0x7')](_0x3d995c[_0x42ece2('0xd')][_0x42ece2('0x18')],function(_0x56609e){const _0x33af80=_0x42ece2;return{'model':db[_0x56609e[_0x33af80('0x10')]],'as':_0x56609e['as'],'attributes':_0x56609e['attributes'],'include':_0x56609e[_0x33af80('0x18')]?_[_0x33af80('0x7')](_0x56609e[_0x33af80('0x18')],function(_0x18826b){const _0x450385=_0x33af80;return{'model':db[_0x18826b[_0x450385('0x10')]],'as':_0x18826b['as'],'attributes':_0x18826b[_0x450385('0x3')],'include':_0x18826b[_0x450385('0x18')]?_[_0x450385('0x7')](_0x18826b['include'],function(_0x4d5276){const _0x4c9e9d=_0x450385;return{'model':db[_0x4d5276[_0x4c9e9d('0x10')]],'as':_0x4d5276['as'],'attributes':_0x4d5276['attributes']};}):[]};}):[]};}):[]:[]})[_0x42ece2('0x0')](function(_0x112cbb){const _0xdafea=_0x42ece2;logger[_0xdafea('0xa')](_0xdafea('0xc'),_0x3d995c),logger[_0xdafea('0x6')](_0xdafea('0xc'),_0x3d995c,JSON[_0xdafea('0x11')](_0x112cbb)),_0x43d044(_0x112cbb);})[_0x42ece2('0x2')](function(_0x43553f){const _0x12c6af=_0x42ece2;logger[_0x12c6af('0x13')]('ShowChatQueue',_0x43553f['message'],_0x3d995c),_0x362469(_0xb94976[_0x12c6af('0x13')](0x1f4,_0x43553f[_0x12c6af('0x15')]));});});}; \ No newline at end of file +const a98_0x4850=['ShowChatQueue','info','stringify','../../config/logger','where','options','debug','../../mysqldb','then','register','ChatQueue','map','lodash','limit','raw','../../rediscache','rpc','findOne','./chatQueue.socket','model','include','GetChatQueue','catch','attributes','message','error'];(function(_0x2b6144,_0x48509c){const _0x32bedd=function(_0xc3167e){while(--_0xc3167e){_0x2b6144['push'](_0x2b6144['shift']());}};_0x32bedd(++_0x48509c);}(a98_0x4850,0x12e));const a98_0x32be=function(_0x2b6144,_0x48509c){_0x2b6144=_0x2b6144-0x0;let _0x32bedd=a98_0x4850[_0x2b6144];return _0x32bedd;};const _0x7c9d72=a98_0x32be;'use strict';const _=require(_0x7c9d72('0x16')),db=require(_0x7c9d72('0x11'))['db'],logger=require(_0x7c9d72('0xd'))(_0x7c9d72('0x0')),{getSocket}=require(_0x7c9d72('0x19')),socket=getSocket();require(_0x7c9d72('0x2'))[_0x7c9d72('0x13')](socket),exports['GetChatQueue']=function(_0xc3167e){const _0x4cad4a=this;return new Promise(function(_0x3d018a,_0x567688){const _0x1dd947=a98_0x32be;return db[_0x1dd947('0x14')]['findAll']({'raw':_0xc3167e['options']?_0xc3167e[_0x1dd947('0xf')][_0x1dd947('0x18')]===undefined?!![]:![]:!![],'where':_0xc3167e['options']?_0xc3167e['options']['where']||null:null,'attributes':_0xc3167e[_0x1dd947('0xf')]?_0xc3167e['options'][_0x1dd947('0x7')]||null:null,'limit':_0xc3167e['options']?_0xc3167e['options'][_0x1dd947('0x17')]||null:null,'include':_0xc3167e[_0x1dd947('0xf')]?_0xc3167e[_0x1dd947('0xf')][_0x1dd947('0x4')]?_[_0x1dd947('0x15')](_0xc3167e[_0x1dd947('0xf')]['include'],function(_0x2a2de1){const _0x3e4936=_0x1dd947;return{'model':db[_0x2a2de1['model']],'as':_0x2a2de1['as'],'attributes':_0x2a2de1[_0x3e4936('0x7')],'include':_0x2a2de1[_0x3e4936('0x4')]?_[_0x3e4936('0x15')](_0x2a2de1['include'],function(_0x1c8fe2){const _0x566eef=_0x3e4936;return{'model':db[_0x1c8fe2[_0x566eef('0x3')]],'as':_0x1c8fe2['as'],'attributes':_0x1c8fe2[_0x566eef('0x7')],'include':_0x1c8fe2[_0x566eef('0x4')]?_['map'](_0x1c8fe2['include'],function(_0x24ed68){const _0x16ee9f=_0x566eef;return{'model':db[_0x24ed68[_0x16ee9f('0x3')]],'as':_0x24ed68['as'],'attributes':_0x24ed68[_0x16ee9f('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3ee3ad){const _0xb60057=_0x1dd947;logger[_0xb60057('0xb')](_0xb60057('0x5'),_0xc3167e),logger[_0xb60057('0x10')](_0xb60057('0x5'),_0xc3167e,JSON[_0xb60057('0xc')](_0x3ee3ad)),_0x3d018a(_0x3ee3ad);})['catch'](function(_0x21485a){const _0x119927=_0x1dd947;logger[_0x119927('0x9')](_0x119927('0x5'),_0x21485a[_0x119927('0x8')],_0xc3167e),_0x567688(_0x4cad4a[_0x119927('0x9')](0x1f4,_0x21485a[_0x119927('0x8')]));});});},exports['ShowChatQueue']=function(_0xda60d2){const _0x5d8caa=this;return new Promise(function(_0x20aa6a,_0x2ed2c0){const _0x476b10=a98_0x32be;return db['ChatQueue'][_0x476b10('0x1')]({'raw':_0xda60d2['options']?_0xda60d2[_0x476b10('0xf')][_0x476b10('0x18')]===undefined?!![]:![]:!![],'where':_0xda60d2['options']?_0xda60d2[_0x476b10('0xf')][_0x476b10('0xe')]||null:null,'attributes':_0xda60d2['options']?_0xda60d2[_0x476b10('0xf')][_0x476b10('0x7')]||null:null,'include':_0xda60d2[_0x476b10('0xf')]?_0xda60d2['options'][_0x476b10('0x4')]?_['map'](_0xda60d2[_0x476b10('0xf')][_0x476b10('0x4')],function(_0x517405){const _0x29c4a3=_0x476b10;return{'model':db[_0x517405[_0x29c4a3('0x3')]],'as':_0x517405['as'],'attributes':_0x517405[_0x29c4a3('0x7')],'include':_0x517405[_0x29c4a3('0x4')]?_[_0x29c4a3('0x15')](_0x517405[_0x29c4a3('0x4')],function(_0x3f0908){const _0x41c77e=_0x29c4a3;return{'model':db[_0x3f0908[_0x41c77e('0x3')]],'as':_0x3f0908['as'],'attributes':_0x3f0908[_0x41c77e('0x7')],'include':_0x3f0908['include']?_['map'](_0x3f0908[_0x41c77e('0x4')],function(_0x1d86eb){const _0xbaa71f=_0x41c77e;return{'model':db[_0x1d86eb[_0xbaa71f('0x3')]],'as':_0x1d86eb['as'],'attributes':_0x1d86eb[_0xbaa71f('0x7')]};}):[]};}):[]};}):[]:[]})[_0x476b10('0x12')](function(_0x4b41e1){const _0x15b5a7=_0x476b10;logger[_0x15b5a7('0xb')](_0x15b5a7('0xa'),_0xda60d2),logger[_0x15b5a7('0x10')](_0x15b5a7('0xa'),_0xda60d2,JSON[_0x15b5a7('0xc')](_0x4b41e1)),_0x20aa6a(_0x4b41e1);})[_0x476b10('0x6')](function(_0x59275c){const _0x55d2eb=_0x476b10;logger[_0x55d2eb('0x9')](_0x55d2eb('0xa'),_0x59275c[_0x55d2eb('0x8')],_0xda60d2),_0x2ed2c0(_0x5d8caa[_0x55d2eb('0x9')](0x1f4,_0x59275c['message']));});});}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.socket.js b/server/api/chatQueue/chatQueue.socket.js index 1c4bba1..f9ffa55 100644 --- a/server/api/chatQueue/chatQueue.socket.js +++ b/server/api/chatQueue/chatQueue.socket.js @@ -1 +1 @@ -const a99_0x21e0=['./chatQueue.events','save','register','length','emit','remove'];(function(_0x4bb530,_0x21e0f3){const _0x282eb6=function(_0x3af157){while(--_0x3af157){_0x4bb530['push'](_0x4bb530['shift']());}};_0x282eb6(++_0x21e0f3);}(a99_0x21e0,0x106));const a99_0x282e=function(_0x4bb530,_0x21e0f3){_0x4bb530=_0x4bb530-0x0;let _0x282eb6=a99_0x21e0[_0x4bb530];return _0x282eb6;};const _0xf5d060=a99_0x282e;'use strict';const ChatQueueEvents=require(_0xf5d060('0x2')),events=[_0xf5d060('0x3'),_0xf5d060('0x1'),'update'];function createListener(_0x3af157,_0x3839b7){return function(_0x54d80b){const _0x152258=a99_0x282e;_0x3839b7[_0x152258('0x0')](_0x3af157,_0x54d80b);};}exports[_0xf5d060('0x4')]=function(_0x578cd4){const _0x3d87c0=_0xf5d060;for(let _0x10889f=0x0,_0x5b6290=events[_0x3d87c0('0x5')];_0x10889f<_0x5b6290;_0x10889f++){const _0x105866=events[_0x10889f],_0xe6a4da=createListener('chatQueue:'+_0x105866,_0x578cd4);ChatQueueEvents['on'](_0x105866,_0xe6a4da);}}; \ No newline at end of file +const a99_0x2b19=['remove','register','length','./chatQueue.events','update','emit'];(function(_0x2d8a1d,_0x2b19ef){const _0x3bbb59=function(_0x10eae2){while(--_0x10eae2){_0x2d8a1d['push'](_0x2d8a1d['shift']());}};_0x3bbb59(++_0x2b19ef);}(a99_0x2b19,0x1bd));const a99_0x3bbb=function(_0x2d8a1d,_0x2b19ef){_0x2d8a1d=_0x2d8a1d-0x0;let _0x3bbb59=a99_0x2b19[_0x2d8a1d];return _0x3bbb59;};const _0x33e6b7=a99_0x3bbb;'use strict';const ChatQueueEvents=require(_0x33e6b7('0x2')),events=['save',_0x33e6b7('0x5'),_0x33e6b7('0x3')];function createListener(_0x10eae2,_0x3a4b73){return function(_0xb453cb){const _0x3f433c=a99_0x3bbb;_0x3a4b73[_0x3f433c('0x4')](_0x10eae2,_0xb453cb);};}exports[_0x33e6b7('0x0')]=function(_0x24b976){const _0x3aea2c=_0x33e6b7;for(let _0x44ff7d=0x0,_0x4a41ee=events[_0x3aea2c('0x1')];_0x44ff7d<_0x4a41ee;_0x44ff7d++){const _0x58e38e=events[_0x44ff7d],_0x5efb14=createListener('chatQueue:'+_0x58e38e,_0x24b976);ChatQueueEvents['on'](_0x58e38e,_0x5efb14);}}; \ No newline at end of file diff --git a/server/api/chatQueue/index.js b/server/api/chatQueue/index.js index f50a8da..2fad018 100644 --- a/server/api/chatQueue/index.js +++ b/server/api/chatQueue/index.js @@ -1 +1 @@ -const a100_0x46d3=['getAgents','/:id/members','/describe','destroy','update','addAgents','removeAgents','post','delete','show','get','/:id/teams','/:id/users','/:id','exports','removeTeams','../../components/auth/service','express','./chatQueue.controller','getMembers','isAuthenticated'];(function(_0x123df5,_0x46d343){const _0x39c540=function(_0x211282){while(--_0x211282){_0x123df5['push'](_0x123df5['shift']());}};_0x39c540(++_0x46d343);}(a100_0x46d3,0x1d0));const a100_0x39c5=function(_0x123df5,_0x46d343){_0x123df5=_0x123df5-0x0;let _0x39c540=a100_0x46d3[_0x123df5];return _0x39c540;};const _0x103b09=a100_0x39c5;'use strict';const express=require(_0x103b09('0xf')),router=express['Router'](),auth=require(_0x103b09('0xe')),controller=require(_0x103b09('0x10'));router[_0x103b09('0x8')]('/',auth[_0x103b09('0x12')](),controller['index']),router['get'](_0x103b09('0x0'),auth[_0x103b09('0x12')](),controller['describe']),router[_0x103b09('0x8')](_0x103b09('0xb'),auth[_0x103b09('0x12')](),controller[_0x103b09('0x7')]),router[_0x103b09('0x8')](_0x103b09('0x14'),auth[_0x103b09('0x12')](),controller[_0x103b09('0x11')]),router[_0x103b09('0x8')](_0x103b09('0x9'),auth['isAuthenticated'](),controller['getTeams']),router[_0x103b09('0x8')](_0x103b09('0xa'),auth[_0x103b09('0x12')](),controller[_0x103b09('0x13')]),router[_0x103b09('0x5')]('/',auth['isAuthenticated'](),controller['create']),router[_0x103b09('0x5')]('/:id/teams',auth['isAuthenticated'](),controller['addTeams']),router[_0x103b09('0x5')](_0x103b09('0xa'),auth[_0x103b09('0x12')](),controller[_0x103b09('0x3')]),router['put'](_0x103b09('0xb'),auth[_0x103b09('0x12')](),controller[_0x103b09('0x2')]),router[_0x103b09('0x6')](_0x103b09('0xb'),auth[_0x103b09('0x12')](),controller[_0x103b09('0x1')]),router[_0x103b09('0x6')]('/:id/teams',auth['isAuthenticated'](),controller[_0x103b09('0xd')]),router[_0x103b09('0x6')](_0x103b09('0xa'),auth[_0x103b09('0x12')](),controller[_0x103b09('0x4')]),module[_0x103b09('0xc')]=router; \ No newline at end of file +const a100_0x2127=['/describe','destroy','/:id/users','post','/:id/members','/:id/teams','create','show','addAgents','index','exports','/:id','Router','../../components/auth/service','getMembers','delete','get','getAgents','isAuthenticated','update','put'];(function(_0x14b1f1,_0x2127a5){const _0x42975f=function(_0x54d67c){while(--_0x54d67c){_0x14b1f1['push'](_0x14b1f1['shift']());}};_0x42975f(++_0x2127a5);}(a100_0x2127,0x16a));const a100_0x4297=function(_0x14b1f1,_0x2127a5){_0x14b1f1=_0x14b1f1-0x0;let _0x42975f=a100_0x2127[_0x14b1f1];return _0x42975f;};const _0x1b806f=a100_0x4297;'use strict';const express=require('express'),router=express[_0x1b806f('0x7')](),auth=require(_0x1b806f('0x8')),controller=require('./chatQueue.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x1b806f('0x4')]),router['get'](_0x1b806f('0x10'),auth[_0x1b806f('0xd')](),controller['describe']),router[_0x1b806f('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x1b806f('0x2')]),router[_0x1b806f('0xb')](_0x1b806f('0x14'),auth[_0x1b806f('0xd')](),controller[_0x1b806f('0x9')]),router[_0x1b806f('0xb')](_0x1b806f('0x0'),auth['isAuthenticated'](),controller['getTeams']),router[_0x1b806f('0xb')](_0x1b806f('0x12'),auth['isAuthenticated'](),controller[_0x1b806f('0xc')]),router[_0x1b806f('0x13')]('/',auth[_0x1b806f('0xd')](),controller[_0x1b806f('0x1')]),router[_0x1b806f('0x13')](_0x1b806f('0x0'),auth[_0x1b806f('0xd')](),controller['addTeams']),router[_0x1b806f('0x13')](_0x1b806f('0x12'),auth['isAuthenticated'](),controller[_0x1b806f('0x3')]),router[_0x1b806f('0xf')](_0x1b806f('0x6'),auth[_0x1b806f('0xd')](),controller[_0x1b806f('0xe')]),router['delete'](_0x1b806f('0x6'),auth[_0x1b806f('0xd')](),controller[_0x1b806f('0x11')]),router[_0x1b806f('0xa')](_0x1b806f('0x0'),auth['isAuthenticated'](),controller['removeTeams']),router[_0x1b806f('0xa')](_0x1b806f('0x12'),auth['isAuthenticated'](),controller['removeAgents']),module[_0x1b806f('0x5')]=router; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.attributes.js b/server/api/chatQueueReport/chatQueueReport.attributes.js index 68c1f35..adcd529 100644 --- a/server/api/chatQueueReport/chatQueueReport.attributes.js +++ b/server/api/chatQueueReport/chatQueueReport.attributes.js @@ -1 +1 @@ -const a101_0x3529=['STRING','exports','DATE'];(function(_0x4a810b,_0x352977){const _0x17efab=function(_0x5bd88a){while(--_0x5bd88a){_0x4a810b['push'](_0x4a810b['shift']());}};_0x17efab(++_0x352977);}(a101_0x3529,0xe4));const a101_0x17ef=function(_0x4a810b,_0x352977){_0x4a810b=_0x4a810b-0x0;let _0x17efab=a101_0x3529[_0x4a810b];return _0x17efab;};const _0x56764e=a101_0x17ef;'use strict';const Sequelize=require('sequelize');module[_0x56764e('0x1')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize[_0x56764e('0x0')]},'joinAt':{'type':Sequelize[_0x56764e('0x2')]},'leaveAt':{'type':Sequelize[_0x56764e('0x2')]},'acceptAt':{'type':Sequelize[_0x56764e('0x2')]},'exitAt':{'type':Sequelize[_0x56764e('0x2')]},'reason':{'type':Sequelize[_0x56764e('0x0')]}}; \ No newline at end of file +const a101_0x439c=['sequelize','STRING','DATE'];(function(_0x404d0a,_0x439cbe){const _0x12fc0f=function(_0x2f5ee5){while(--_0x2f5ee5){_0x404d0a['push'](_0x404d0a['shift']());}};_0x12fc0f(++_0x439cbe);}(a101_0x439c,0x104));const a101_0x12fc=function(_0x404d0a,_0x439cbe){_0x404d0a=_0x404d0a-0x0;let _0x12fc0f=a101_0x439c[_0x404d0a];return _0x12fc0f;};const _0x9cde5d=a101_0x12fc;'use strict';const Sequelize=require(_0x9cde5d('0x1'));module['exports']={'uniqueid':{'type':Sequelize[_0x9cde5d('0x2')],'allowNull':![]},'from':{'type':Sequelize[_0x9cde5d('0x2')]},'joinAt':{'type':Sequelize[_0x9cde5d('0x0')]},'leaveAt':{'type':Sequelize[_0x9cde5d('0x0')]},'acceptAt':{'type':Sequelize[_0x9cde5d('0x0')]},'exitAt':{'type':Sequelize['DATE']},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.controller.js b/server/api/chatQueueReport/chatQueueReport.controller.js index 0c8d697..e2b8681 100644 --- a/server/api/chatQueueReport/chatQueueReport.controller.js +++ b/server/api/chatQueueReport/chatQueueReport.controller.js @@ -1 +1 @@ -const a102_0x3518=['../../mysqldb','rows','filters','model','pick','show','findOne','VIRTUAL','query','intersection','name','rawAttributes','../../config/logger','findAll','sort','update','where','nolimit','length','describe','attributes','limit','Content-Range','sequelize','undefined','stack','json','includeAll','send','params','keys','fieldName','create','../../components/parsers/qs','offset','type','end','fields','sendStatus','body','lodash','include','filter','map','catch','ChatQueueReport','status','index','then','api','merge','count','options'];(function(_0xe2aa0a,_0x35186d){const _0x3caa4a=function(_0x563fb4){while(--_0x563fb4){_0xe2aa0a['push'](_0xe2aa0a['shift']());}};_0x3caa4a(++_0x35186d);}(a102_0x3518,0x1aa));const a102_0x3caa=function(_0xe2aa0a,_0x35186d){_0xe2aa0a=_0xe2aa0a-0x0;let _0x3caa4a=a102_0x3518[_0xe2aa0a];return _0x3caa4a;};const _0x231254=a102_0x3caa;'use strict';const _=require(_0x231254('0x26')),qs=require(_0x231254('0x1f')),logger=require(_0x231254('0xa'))(_0x231254('0x2f')),db=require(_0x231254('0x33'))['db'],{Op}=require(_0x231254('0x15'));function respondWithResult(_0x563fb4,_0x2a4fa7){return _0x2a4fa7=_0x2a4fa7||0xc8,function(_0x3b6c16){const _0x2ac491=a102_0x3caa;if(_0x3b6c16)return _0x563fb4[_0x2ac491('0x2c')](_0x2a4fa7)[_0x2ac491('0x18')](_0x3b6c16);};}function respondWithFilteredResult(_0xae22de,_0x1ee23a){return function(_0x46205d){const _0x5f181b=a102_0x3caa;if(_0x46205d){const _0x520dfa=_0x46205d[_0x5f181b('0x31')],_0x2fd7ea=_0x1ee23a[_0x5f181b('0x20')];let _0x4516f5=_0x1ee23a[_0x5f181b('0x20')]+_0x1ee23a[_0x5f181b('0x13')],_0x34d32d;return _0x4516f5>=_0x520dfa?(_0x4516f5=_0x520dfa,_0x34d32d=0xc8):_0x34d32d=0xce,_0xae22de[_0x5f181b('0x2c')](_0x34d32d),_0xae22de['set'](_0x5f181b('0x14'),_0x2fd7ea+'-'+_0x4516f5+'/'+_0x520dfa)['json'](_0x46205d);}return null;};}function saveUpdates(_0x418c69){return function(_0x370c42){const _0x23f925=a102_0x3caa;if(_0x370c42)return _0x370c42[_0x23f925('0xd')](_0x418c69)['then'](function(_0x17a416){return _0x17a416;});return null;};}function removeEntity(_0x34d8a7){return function(_0x1802e2){if(_0x1802e2)return _0x1802e2['destroy']()['then'](function(){const _0x461a2e=a102_0x3caa;_0x34d8a7['status'](0xcc)[_0x461a2e('0x22')]();});};}function handleEntityNotFound(_0x13bda9){return function(_0x331678){const _0x37d389=a102_0x3caa;return!_0x331678&&_0x13bda9[_0x37d389('0x24')](0x194),_0x331678;};}function handleError(_0x158837,_0x31ab7a){return _0x31ab7a=_0x31ab7a||0x1f4,function(_0x281e81){const _0x37733e=a102_0x3caa;logger['error'](_0x281e81[_0x37733e('0x17')]),_0x281e81[_0x37733e('0x8')]&&delete _0x281e81[_0x37733e('0x8')],_0x158837['status'](_0x31ab7a)[_0x37733e('0x1a')](_0x281e81);};}exports[_0x231254('0x2d')]=function(_0x3f8d71,_0x336509){const _0x5358df=_0x231254;let _0x267e50={};const _0x3bbb5f={},_0xd22c75={'count':0x0,'rows':[]},_0x4e4b4b=_[_0x5358df('0x29')](db[_0x5358df('0x2b')][_0x5358df('0x9')],function(_0x1a671a){const _0x21c7bb=_0x5358df;return{'name':_0x1a671a[_0x21c7bb('0x1d')],'type':_0x1a671a['type']['key']};});_0x3bbb5f[_0x5358df('0x1')]=_['map'](_0x4e4b4b,_0x5358df('0x8')),_0x3bbb5f['query']=_[_0x5358df('0x1c')](_0x3f8d71['query']),_0x3bbb5f['filters']=_[_0x5358df('0x7')](_0x3bbb5f[_0x5358df('0x1')],_0x3bbb5f[_0x5358df('0x6')]),_0x267e50[_0x5358df('0x12')]=_['intersection'](_0x3bbb5f[_0x5358df('0x1')],qs['fields'](_0x3f8d71[_0x5358df('0x6')][_0x5358df('0x23')])),_0x267e50[_0x5358df('0x12')]=_0x267e50[_0x5358df('0x12')][_0x5358df('0x10')]?_0x267e50[_0x5358df('0x12')]:_0x3bbb5f['model'];typeof _0x3f8d71[_0x5358df('0x6')][_0x5358df('0xf')]===_0x5358df('0x16')&&(_0x267e50[_0x5358df('0x13')]=qs[_0x5358df('0x13')](_0x3f8d71[_0x5358df('0x6')][_0x5358df('0x13')]),_0x267e50['offset']=qs[_0x5358df('0x20')](_0x3f8d71[_0x5358df('0x6')][_0x5358df('0x20')]));_0x267e50['order']=qs[_0x5358df('0xc')](_0x3f8d71['query']['sort']),_0x267e50[_0x5358df('0xe')]=qs[_0x5358df('0x0')](_[_0x5358df('0x2')](_0x3f8d71[_0x5358df('0x6')],_0x3bbb5f[_0x5358df('0x0')]),_0x4e4b4b);_0x3f8d71[_0x5358df('0x6')][_0x5358df('0x28')]&&(_0x267e50[_0x5358df('0xe')]=_[_0x5358df('0x30')](_0x267e50[_0x5358df('0xe')],{[Op['or']]:_[_0x5358df('0x29')](_0x4e4b4b,function(_0x27ca7d){const _0x488ad3=_0x5358df;if(_0x27ca7d[_0x488ad3('0x21')]!==_0x488ad3('0x5')){const _0x58a40e={};return _0x58a40e[_0x27ca7d['name']]={[Op['like']]:'%'+_0x3f8d71[_0x488ad3('0x6')][_0x488ad3('0x28')]+'%'},_0x58a40e;}})}));_0x267e50=_[_0x5358df('0x30')]({},_0x267e50,_0x3f8d71[_0x5358df('0x32')]);const _0x119eba={'where':_0x267e50['where']};return db[_0x5358df('0x2b')]['count'](_0x119eba)[_0x5358df('0x2e')](function(_0x5e4171){const _0x2e7fbc=_0x5358df;return _0xd22c75['count']=_0x5e4171,_0x3f8d71[_0x2e7fbc('0x6')][_0x2e7fbc('0x19')]&&(_0x267e50[_0x2e7fbc('0x27')]=[{'all':!![]}]),db[_0x2e7fbc('0x2b')][_0x2e7fbc('0xb')](_0x267e50);})['then'](function(_0x4c8cab){const _0x21754b=_0x5358df;return _0xd22c75[_0x21754b('0x34')]=_0x4c8cab,_0xd22c75;})[_0x5358df('0x2e')](respondWithFilteredResult(_0x336509,_0x267e50))[_0x5358df('0x2a')](handleError(_0x336509,null));},exports[_0x231254('0x3')]=function(_0x18ce6e,_0x6d7a8){const _0x16bfe3=_0x231254;let _0x4211c8={'raw':!![],'where':{'id':_0x18ce6e[_0x16bfe3('0x1b')]['id']}};const _0x416752={};return _0x416752['model']=_[_0x16bfe3('0x1c')](db[_0x16bfe3('0x2b')]['rawAttributes']),_0x416752[_0x16bfe3('0x6')]=_[_0x16bfe3('0x1c')](_0x18ce6e[_0x16bfe3('0x6')]),_0x416752[_0x16bfe3('0x0')]=_[_0x16bfe3('0x7')](_0x416752['model'],_0x416752[_0x16bfe3('0x6')]),_0x4211c8[_0x16bfe3('0x12')]=_['intersection'](_0x416752[_0x16bfe3('0x1')],qs[_0x16bfe3('0x23')](_0x18ce6e['query'][_0x16bfe3('0x23')])),_0x4211c8[_0x16bfe3('0x12')]=_0x4211c8['attributes'][_0x16bfe3('0x10')]?_0x4211c8[_0x16bfe3('0x12')]:_0x416752[_0x16bfe3('0x1')],_0x18ce6e['query'][_0x16bfe3('0x19')]&&(_0x4211c8[_0x16bfe3('0x27')]=[{'all':!![]}]),_0x4211c8=_[_0x16bfe3('0x30')]({},_0x4211c8,_0x18ce6e['options']),db[_0x16bfe3('0x2b')]['findOne'](_0x4211c8)[_0x16bfe3('0x2e')](handleEntityNotFound(_0x6d7a8,null))[_0x16bfe3('0x2e')](respondWithResult(_0x6d7a8,null))[_0x16bfe3('0x2a')](handleError(_0x6d7a8,null));},exports[_0x231254('0x1e')]=function(_0x192eb4,_0x597062){const _0x13647d=_0x231254;return db[_0x13647d('0x2b')][_0x13647d('0x1e')](_0x192eb4[_0x13647d('0x25')],{})[_0x13647d('0x2e')](respondWithResult(_0x597062,0xc9))[_0x13647d('0x2a')](handleError(_0x597062,null));},exports[_0x231254('0xd')]=function(_0x377ff7,_0x1a1fc3){const _0x4c6e37=_0x231254;return _0x377ff7[_0x4c6e37('0x25')]['id']&&delete _0x377ff7[_0x4c6e37('0x25')]['id'],db[_0x4c6e37('0x2b')][_0x4c6e37('0x4')]({'where':{'id':_0x377ff7[_0x4c6e37('0x1b')]['id']}})[_0x4c6e37('0x2e')](handleEntityNotFound(_0x1a1fc3,null))['then'](saveUpdates(_0x377ff7['body'],null))['then'](respondWithResult(_0x1a1fc3,null))[_0x4c6e37('0x2a')](handleError(_0x1a1fc3,null));},exports['destroy']=function(_0x39b791,_0x4c725a){const _0x3a1068=_0x231254;return db['ChatQueueReport'][_0x3a1068('0x4')]({'where':{'id':_0x39b791[_0x3a1068('0x1b')]['id']}})[_0x3a1068('0x2e')](handleEntityNotFound(_0x4c725a,null))[_0x3a1068('0x2e')](removeEntity(_0x4c725a,null))[_0x3a1068('0x2a')](handleError(_0x4c725a,null));},exports['describe']=function(_0x16e1ce,_0x33d733){const _0x1f5e18=_0x231254;return db[_0x1f5e18('0x2b')][_0x1f5e18('0x11')]()['then'](respondWithResult(_0x33d733,null))['catch'](handleError(_0x33d733,null));}; \ No newline at end of file +const a102_0x2e72=['attributes','rows','Content-Range','like','body','sort','type','include','error','destroy','api','end','length','rawAttributes','fieldName','limit','intersection','update','options','keys','show','offset','fields','lodash','set','nolimit','undefined','name','includeAll','where','params','merge','pick','findOne','status','filters','../../config/logger','VIRTUAL','create','sendStatus','catch','describe','json','filter','then','query','sequelize','map','count','findAll','stack','model','ChatQueueReport','order'];(function(_0x46a60d,_0x2e725b){const _0x360a32=function(_0x46fb97){while(--_0x46fb97){_0x46a60d['push'](_0x46a60d['shift']());}};_0x360a32(++_0x2e725b);}(a102_0x2e72,0x143));const a102_0x360a=function(_0x46a60d,_0x2e725b){_0x46a60d=_0x46a60d-0x0;let _0x360a32=a102_0x2e72[_0x46a60d];return _0x360a32;};const _0x293c6d=a102_0x360a;'use strict';const _=require(_0x293c6d('0x18')),qs=require('../../components/parsers/qs'),logger=require(_0x293c6d('0x25'))(_0x293c6d('0xb')),db=require('../../mysqldb')['db'],{Op}=require(_0x293c6d('0x2f'));function respondWithResult(_0x46fb97,_0x5f3fc4){return _0x5f3fc4=_0x5f3fc4||0xc8,function(_0x4671fd){const _0x4d4c32=a102_0x360a;if(_0x4671fd)return _0x46fb97[_0x4d4c32('0x23')](_0x5f3fc4)[_0x4d4c32('0x2b')](_0x4671fd);};}function respondWithFilteredResult(_0x5b8f3f,_0x379e3c){return function(_0x1afcb3){const _0x3f1313=a102_0x360a;if(_0x1afcb3){const _0x23b791=_0x1afcb3[_0x3f1313('0x31')],_0x394587=_0x379e3c[_0x3f1313('0x16')];let _0x45007e=_0x379e3c[_0x3f1313('0x16')]+_0x379e3c['limit'],_0x4c208c;return _0x45007e>=_0x23b791?(_0x45007e=_0x23b791,_0x4c208c=0xc8):_0x4c208c=0xce,_0x5b8f3f[_0x3f1313('0x23')](_0x4c208c),_0x5b8f3f[_0x3f1313('0x19')](_0x3f1313('0x3'),_0x394587+'-'+_0x45007e+'/'+_0x23b791)[_0x3f1313('0x2b')](_0x1afcb3);}return null;};}function saveUpdates(_0x2047e1){return function(_0x1e33ee){const _0x32a68d=a102_0x360a;if(_0x1e33ee)return _0x1e33ee[_0x32a68d('0x12')](_0x2047e1)[_0x32a68d('0x2d')](function(_0x35eb3d){return _0x35eb3d;});return null;};}function removeEntity(_0x3c43f0){return function(_0x470ac7){const _0x16e6d1=a102_0x360a;if(_0x470ac7)return _0x470ac7[_0x16e6d1('0xa')]()['then'](function(){const _0x377398=_0x16e6d1;_0x3c43f0[_0x377398('0x23')](0xcc)[_0x377398('0xc')]();});};}function handleEntityNotFound(_0x57bdd6){return function(_0x46e9a3){const _0x492a58=a102_0x360a;return!_0x46e9a3&&_0x57bdd6[_0x492a58('0x28')](0x194),_0x46e9a3;};}function handleError(_0x202838,_0x55d0c7){return _0x55d0c7=_0x55d0c7||0x1f4,function(_0x9f3ffe){const _0x235a81=a102_0x360a;logger[_0x235a81('0x9')](_0x9f3ffe[_0x235a81('0x33')]),_0x9f3ffe[_0x235a81('0x1c')]&&delete _0x9f3ffe[_0x235a81('0x1c')],_0x202838[_0x235a81('0x23')](_0x55d0c7)['send'](_0x9f3ffe);};}exports['index']=function(_0xefe795,_0x175ae0){const _0x44ef28=_0x293c6d;let _0x422597={};const _0x16be29={},_0x116d56={'count':0x0,'rows':[]},_0x105754=_[_0x44ef28('0x30')](db[_0x44ef28('0x35')][_0x44ef28('0xe')],function(_0x4c287b){const _0x4af755=_0x44ef28;return{'name':_0x4c287b[_0x4af755('0xf')],'type':_0x4c287b[_0x4af755('0x7')]['key']};});_0x16be29[_0x44ef28('0x34')]=_[_0x44ef28('0x30')](_0x105754,'name'),_0x16be29[_0x44ef28('0x2e')]=_[_0x44ef28('0x14')](_0xefe795['query']),_0x16be29[_0x44ef28('0x24')]=_['intersection'](_0x16be29[_0x44ef28('0x34')],_0x16be29[_0x44ef28('0x2e')]),_0x422597[_0x44ef28('0x1')]=_[_0x44ef28('0x11')](_0x16be29[_0x44ef28('0x34')],qs[_0x44ef28('0x17')](_0xefe795[_0x44ef28('0x2e')][_0x44ef28('0x17')])),_0x422597[_0x44ef28('0x1')]=_0x422597[_0x44ef28('0x1')]['length']?_0x422597[_0x44ef28('0x1')]:_0x16be29['model'];typeof _0xefe795[_0x44ef28('0x2e')][_0x44ef28('0x1a')]===_0x44ef28('0x1b')&&(_0x422597[_0x44ef28('0x10')]=qs[_0x44ef28('0x10')](_0xefe795[_0x44ef28('0x2e')][_0x44ef28('0x10')]),_0x422597[_0x44ef28('0x16')]=qs[_0x44ef28('0x16')](_0xefe795['query'][_0x44ef28('0x16')]));_0x422597[_0x44ef28('0x0')]=qs[_0x44ef28('0x6')](_0xefe795[_0x44ef28('0x2e')][_0x44ef28('0x6')]),_0x422597['where']=qs[_0x44ef28('0x24')](_[_0x44ef28('0x21')](_0xefe795[_0x44ef28('0x2e')],_0x16be29[_0x44ef28('0x24')]),_0x105754);_0xefe795[_0x44ef28('0x2e')][_0x44ef28('0x2c')]&&(_0x422597['where']=_['merge'](_0x422597[_0x44ef28('0x1e')],{[Op['or']]:_[_0x44ef28('0x30')](_0x105754,function(_0xd909d1){const _0x172323=_0x44ef28;if(_0xd909d1[_0x172323('0x7')]!==_0x172323('0x26')){const _0x1dfaeb={};return _0x1dfaeb[_0xd909d1[_0x172323('0x1c')]]={[Op[_0x172323('0x4')]]:'%'+_0xefe795[_0x172323('0x2e')]['filter']+'%'},_0x1dfaeb;}})}));_0x422597=_['merge']({},_0x422597,_0xefe795[_0x44ef28('0x13')]);const _0x315a7b={'where':_0x422597[_0x44ef28('0x1e')]};return db[_0x44ef28('0x35')][_0x44ef28('0x31')](_0x315a7b)[_0x44ef28('0x2d')](function(_0x516b07){const _0x4adf4e=_0x44ef28;return _0x116d56[_0x4adf4e('0x31')]=_0x516b07,_0xefe795[_0x4adf4e('0x2e')][_0x4adf4e('0x1d')]&&(_0x422597[_0x4adf4e('0x8')]=[{'all':!![]}]),db[_0x4adf4e('0x35')][_0x4adf4e('0x32')](_0x422597);})[_0x44ef28('0x2d')](function(_0x19c8f8){const _0x2a41d7=_0x44ef28;return _0x116d56[_0x2a41d7('0x2')]=_0x19c8f8,_0x116d56;})['then'](respondWithFilteredResult(_0x175ae0,_0x422597))['catch'](handleError(_0x175ae0,null));},exports[_0x293c6d('0x15')]=function(_0x37ac0d,_0xe96565){const _0x59f4a9=_0x293c6d;let _0x1fa868={'raw':!![],'where':{'id':_0x37ac0d[_0x59f4a9('0x1f')]['id']}};const _0x102f5c={};return _0x102f5c[_0x59f4a9('0x34')]=_[_0x59f4a9('0x14')](db[_0x59f4a9('0x35')][_0x59f4a9('0xe')]),_0x102f5c[_0x59f4a9('0x2e')]=_['keys'](_0x37ac0d[_0x59f4a9('0x2e')]),_0x102f5c[_0x59f4a9('0x24')]=_[_0x59f4a9('0x11')](_0x102f5c[_0x59f4a9('0x34')],_0x102f5c[_0x59f4a9('0x2e')]),_0x1fa868[_0x59f4a9('0x1')]=_[_0x59f4a9('0x11')](_0x102f5c[_0x59f4a9('0x34')],qs[_0x59f4a9('0x17')](_0x37ac0d['query'][_0x59f4a9('0x17')])),_0x1fa868[_0x59f4a9('0x1')]=_0x1fa868[_0x59f4a9('0x1')][_0x59f4a9('0xd')]?_0x1fa868[_0x59f4a9('0x1')]:_0x102f5c[_0x59f4a9('0x34')],_0x37ac0d[_0x59f4a9('0x2e')][_0x59f4a9('0x1d')]&&(_0x1fa868[_0x59f4a9('0x8')]=[{'all':!![]}]),_0x1fa868=_[_0x59f4a9('0x20')]({},_0x1fa868,_0x37ac0d['options']),db['ChatQueueReport'][_0x59f4a9('0x22')](_0x1fa868)['then'](handleEntityNotFound(_0xe96565,null))[_0x59f4a9('0x2d')](respondWithResult(_0xe96565,null))['catch'](handleError(_0xe96565,null));},exports[_0x293c6d('0x27')]=function(_0x29c7a3,_0x33a7f1){const _0x157074=_0x293c6d;return db[_0x157074('0x35')]['create'](_0x29c7a3[_0x157074('0x5')],{})['then'](respondWithResult(_0x33a7f1,0xc9))[_0x157074('0x29')](handleError(_0x33a7f1,null));},exports[_0x293c6d('0x12')]=function(_0x3247fe,_0x5c79d5){const _0x3095d0=_0x293c6d;return _0x3247fe[_0x3095d0('0x5')]['id']&&delete _0x3247fe[_0x3095d0('0x5')]['id'],db[_0x3095d0('0x35')][_0x3095d0('0x22')]({'where':{'id':_0x3247fe[_0x3095d0('0x1f')]['id']}})[_0x3095d0('0x2d')](handleEntityNotFound(_0x5c79d5,null))[_0x3095d0('0x2d')](saveUpdates(_0x3247fe[_0x3095d0('0x5')],null))[_0x3095d0('0x2d')](respondWithResult(_0x5c79d5,null))[_0x3095d0('0x29')](handleError(_0x5c79d5,null));},exports['destroy']=function(_0x3278f2,_0x4cd805){const _0x4840ed=_0x293c6d;return db[_0x4840ed('0x35')][_0x4840ed('0x22')]({'where':{'id':_0x3278f2[_0x4840ed('0x1f')]['id']}})[_0x4840ed('0x2d')](handleEntityNotFound(_0x4cd805,null))[_0x4840ed('0x2d')](removeEntity(_0x4cd805,null))[_0x4840ed('0x29')](handleError(_0x4cd805,null));},exports[_0x293c6d('0x2a')]=function(_0x237d8a,_0x566d19){const _0x3fd9a2=_0x293c6d;return db[_0x3fd9a2('0x35')][_0x3fd9a2('0x2a')]()[_0x3fd9a2('0x2d')](respondWithResult(_0x566d19,null))['catch'](handleError(_0x566d19,null));}; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.model.js b/server/api/chatQueueReport/chatQueueReport.model.js index 8693677..149ccfa 100644 --- a/server/api/chatQueueReport/chatQueueReport.model.js +++ b/server/api/chatQueueReport/chatQueueReport.model.js @@ -1 +1 @@ -const a103_0x415d=['uniqueid','./chatQueueReport.attributes'];(function(_0xe1e9a3,_0x415d3b){const _0x1b1560=function(_0x226a0a){while(--_0x226a0a){_0xe1e9a3['push'](_0xe1e9a3['shift']());}};_0x1b1560(++_0x415d3b);}(a103_0x415d,0x143));const a103_0x1b15=function(_0xe1e9a3,_0x415d3b){_0xe1e9a3=_0xe1e9a3-0x0;let _0x1b1560=a103_0x415d[_0xe1e9a3];return _0x1b1560;};const _0x10d216=a103_0x1b15;'use strict';const attributes=require(_0x10d216('0x0'));module['exports']=function(_0x226a0a){const _0x3e2264=_0x10d216,_0x3a1f44=_0x226a0a['define']('ChatQueueReport',attributes,{'tableName':'report_chat_queue','paranoid':![],'indexes':[{'name':_0x3e2264('0x1'),'fields':[_0x3e2264('0x1')]}],'timestamps':!![]});return _0x3a1f44;}; \ No newline at end of file +const a103_0x1640=['uniqueid','report_chat_queue','ChatQueueReport','exports','./chatQueueReport.attributes','define'];(function(_0x378490,_0x1640d2){const _0x450054=function(_0x40d92){while(--_0x40d92){_0x378490['push'](_0x378490['shift']());}};_0x450054(++_0x1640d2);}(a103_0x1640,0xe0));const a103_0x4500=function(_0x378490,_0x1640d2){_0x378490=_0x378490-0x0;let _0x450054=a103_0x1640[_0x378490];return _0x450054;};const _0x34f8dc=a103_0x4500;'use strict';const attributes=require(_0x34f8dc('0x2'));module[_0x34f8dc('0x1')]=function(_0x40d92){const _0x2deaf7=_0x34f8dc,_0xa93279=_0x40d92[_0x2deaf7('0x3')](_0x2deaf7('0x0'),attributes,{'tableName':_0x2deaf7('0x5'),'paranoid':![],'indexes':[{'name':_0x2deaf7('0x4'),'fields':[_0x2deaf7('0x4')]}],'timestamps':!![]});return _0xa93279;}; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.rpc.js b/server/api/chatQueueReport/chatQueueReport.rpc.js index c787e0d..831fd5f 100644 --- a/server/api/chatQueueReport/chatQueueReport.rpc.js +++ b/server/api/chatQueueReport/chatQueueReport.rpc.js @@ -1 +1 @@ -const a104_0x2b3b=['error','update','../../config/logger','UpdateChatQueueReport','stringify','message','options','body','info','then','CreateChatQueueReport','raw','debug','catch','rpc','attributes','ChatQueueReport','create','../../mysqldb'];(function(_0x196a60,_0x2b3b67){const _0x35fa42=function(_0x2a9e35){while(--_0x2a9e35){_0x196a60['push'](_0x196a60['shift']());}};_0x35fa42(++_0x2b3b67);}(a104_0x2b3b,0x1a3));const a104_0x35fa=function(_0x196a60,_0x2b3b67){_0x196a60=_0x196a60-0x0;let _0x35fa42=a104_0x2b3b[_0x196a60];return _0x35fa42;};const _0x4ffca0=a104_0x35fa;'use strict';const db=require(_0x4ffca0('0x11'))['db'],logger=require(_0x4ffca0('0x1'))(_0x4ffca0('0xd'));exports[_0x4ffca0('0x9')]=function(_0x2a9e35){const _0x45bd0d=this;return new Promise(function(_0x35a7fd,_0x488b14){const _0x1b846d=a104_0x35fa;return db[_0x1b846d('0xf')][_0x1b846d('0x10')](_0x2a9e35[_0x1b846d('0x6')],{'raw':_0x2a9e35[_0x1b846d('0x5')]?_0x2a9e35[_0x1b846d('0x5')][_0x1b846d('0xa')]===undefined?!![]:![]:!![]})[_0x1b846d('0x8')](function(_0x45fce3){const _0x2794e1=_0x1b846d;logger[_0x2794e1('0x7')](_0x2794e1('0x9'),_0x2a9e35),logger[_0x2794e1('0xb')]('CreateChatQueueReport',_0x2a9e35,JSON[_0x2794e1('0x3')](_0x45fce3)),_0x35a7fd(_0x45fce3);})[_0x1b846d('0xc')](function(_0x4e871e){const _0x5ccb59=_0x1b846d;logger[_0x5ccb59('0x12')](_0x5ccb59('0x9'),_0x4e871e[_0x5ccb59('0x4')],_0x2a9e35),_0x488b14(_0x45bd0d[_0x5ccb59('0x12')](0x1f4,_0x4e871e['message']));});});},exports[_0x4ffca0('0x2')]=function(_0xb35ed3){const _0x4761be=this;return new Promise(function(_0x5c1060,_0x43465d){const _0xe1f717=a104_0x35fa;return db[_0xe1f717('0xf')][_0xe1f717('0x0')](_0xb35ed3[_0xe1f717('0x6')],{'raw':_0xb35ed3[_0xe1f717('0x5')]?_0xb35ed3['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xb35ed3[_0xe1f717('0x5')]?_0xb35ed3[_0xe1f717('0x5')]['where']||null:null,'attributes':_0xb35ed3[_0xe1f717('0x5')]?_0xb35ed3[_0xe1f717('0x5')][_0xe1f717('0xe')]||null:null,'limit':_0xb35ed3['options']?_0xb35ed3['options']['limit']||null:null})[_0xe1f717('0x8')](function(_0x5e25c2){const _0x1bcfe9=_0xe1f717;logger[_0x1bcfe9('0x7')](_0x1bcfe9('0x2'),_0xb35ed3),logger[_0x1bcfe9('0xb')](_0x1bcfe9('0x2'),_0xb35ed3,JSON['stringify'](_0x5e25c2)),_0x5c1060(_0x5e25c2);})[_0xe1f717('0xc')](function(_0x489bd5){const _0x10aed0=_0xe1f717;logger['error'](_0x10aed0('0x2'),_0x489bd5['message'],_0xb35ed3),_0x43465d(_0x4761be[_0x10aed0('0x12')](0x1f4,_0x489bd5[_0x10aed0('0x4')]));});});}; \ No newline at end of file +const a104_0x2822=['UpdateChatQueueReport','create','options','stringify','where','CreateChatQueueReport','then','debug','raw','error','catch','ChatQueueReport','limit','update','attributes','../../config/logger','body','rpc','info','message'];(function(_0x38c409,_0x2822a9){const _0x357ab8=function(_0x3c9dac){while(--_0x3c9dac){_0x38c409['push'](_0x38c409['shift']());}};_0x357ab8(++_0x2822a9);}(a104_0x2822,0x1dc));const a104_0x357a=function(_0x38c409,_0x2822a9){_0x38c409=_0x38c409-0x0;let _0x357ab8=a104_0x2822[_0x38c409];return _0x357ab8;};const _0x4da207=a104_0x357a;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x4da207('0x13'))(_0x4da207('0x1'));exports[_0x4da207('0x9')]=function(_0x3c9dac){const _0xfaa21c=this;return new Promise(function(_0x3812c8,_0x26d06d){const _0x380b63=a104_0x357a;return db['ChatQueueReport'][_0x380b63('0x5')](_0x3c9dac['body'],{'raw':_0x3c9dac['options']?_0x3c9dac[_0x380b63('0x6')][_0x380b63('0xc')]===undefined?!![]:![]:!![]})['then'](function(_0x169338){const _0x54e52f=_0x380b63;logger['info'](_0x54e52f('0x9'),_0x3c9dac),logger[_0x54e52f('0xb')](_0x54e52f('0x9'),_0x3c9dac,JSON[_0x54e52f('0x7')](_0x169338)),_0x3812c8(_0x169338);})[_0x380b63('0xe')](function(_0x3eaae1){const _0x2f12b6=_0x380b63;logger[_0x2f12b6('0xd')](_0x2f12b6('0x9'),_0x3eaae1[_0x2f12b6('0x3')],_0x3c9dac),_0x26d06d(_0xfaa21c['error'](0x1f4,_0x3eaae1['message']));});});},exports[_0x4da207('0x4')]=function(_0x3134d4){const _0x37daa5=this;return new Promise(function(_0x9f9e2,_0x1d81b5){const _0x52f26f=a104_0x357a;return db[_0x52f26f('0xf')][_0x52f26f('0x11')](_0x3134d4[_0x52f26f('0x0')],{'raw':_0x3134d4[_0x52f26f('0x6')]?_0x3134d4['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3134d4[_0x52f26f('0x6')]?_0x3134d4[_0x52f26f('0x6')][_0x52f26f('0x8')]||null:null,'attributes':_0x3134d4['options']?_0x3134d4['options'][_0x52f26f('0x12')]||null:null,'limit':_0x3134d4[_0x52f26f('0x6')]?_0x3134d4[_0x52f26f('0x6')][_0x52f26f('0x10')]||null:null})[_0x52f26f('0xa')](function(_0x3a7470){const _0xe76f7b=_0x52f26f;logger[_0xe76f7b('0x2')]('UpdateChatQueueReport',_0x3134d4),logger[_0xe76f7b('0xb')]('UpdateChatQueueReport',_0x3134d4,JSON['stringify'](_0x3a7470)),_0x9f9e2(_0x3a7470);})['catch'](function(_0x442dbc){const _0x35095a=_0x52f26f;logger['error'](_0x35095a('0x4'),_0x442dbc[_0x35095a('0x3')],_0x3134d4),_0x1d81b5(_0x37daa5[_0x35095a('0xd')](0x1f4,_0x442dbc[_0x35095a('0x3')]));});});}; \ No newline at end of file diff --git a/server/api/chatQueueReport/index.js b/server/api/chatQueueReport/index.js index 1fe9fc1..fc04c75 100644 --- a/server/api/chatQueueReport/index.js +++ b/server/api/chatQueueReport/index.js @@ -1 +1 @@ -const a105_0x2d03=['exports','/describe','post','index','get','isAuthenticated','put','/:id','describe','update','./chatQueueReport.controller','delete','express','create','destroy'];(function(_0x2c84ee,_0x2d0376){const _0x78f524=function(_0x2af069){while(--_0x2af069){_0x2c84ee['push'](_0x2c84ee['shift']());}};_0x78f524(++_0x2d0376);}(a105_0x2d03,0x16d));const a105_0x78f5=function(_0x2c84ee,_0x2d0376){_0x2c84ee=_0x2c84ee-0x0;let _0x78f524=a105_0x2d03[_0x2c84ee];return _0x78f524;};const _0x496df7=a105_0x78f5;'use strict';const express=require(_0x496df7('0x7')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x496df7('0x5'));router['get']('/',auth[_0x496df7('0x0')](),controller[_0x496df7('0xd')]),router[_0x496df7('0xe')](_0x496df7('0xb'),auth[_0x496df7('0x0')](),controller[_0x496df7('0x3')]),router[_0x496df7('0xe')](_0x496df7('0x2'),auth[_0x496df7('0x0')](),controller['show']),router[_0x496df7('0xc')]('/',auth[_0x496df7('0x0')](),controller[_0x496df7('0x8')]),router[_0x496df7('0x1')](_0x496df7('0x2'),auth['isAuthenticated'](),controller[_0x496df7('0x4')]),router[_0x496df7('0x6')](_0x496df7('0x2'),auth[_0x496df7('0x0')](),controller[_0x496df7('0x9')]),module[_0x496df7('0xa')]=router; \ No newline at end of file +const a105_0x4f06=['Router','isAuthenticated','create','update','/describe','/:id','express','put','destroy','exports','get','./chatQueueReport.controller','index','describe','../../components/auth/service'];(function(_0x34eb79,_0x4f0676){const _0xdaf5a7=function(_0x3b8520){while(--_0x3b8520){_0x34eb79['push'](_0x34eb79['shift']());}};_0xdaf5a7(++_0x4f0676);}(a105_0x4f06,0x16b));const a105_0xdaf5=function(_0x34eb79,_0x4f0676){_0x34eb79=_0x34eb79-0x0;let _0xdaf5a7=a105_0x4f06[_0x34eb79];return _0xdaf5a7;};const _0x568945=a105_0xdaf5;'use strict';const express=require(_0x568945('0x3')),router=express[_0x568945('0xc')](),auth=require(_0x568945('0xb')),controller=require(_0x568945('0x8'));router[_0x568945('0x7')]('/',auth[_0x568945('0xd')](),controller[_0x568945('0x9')]),router[_0x568945('0x7')](_0x568945('0x1'),auth['isAuthenticated'](),controller[_0x568945('0xa')]),router['get'](_0x568945('0x2'),auth[_0x568945('0xd')](),controller['show']),router['post']('/',auth[_0x568945('0xd')](),controller[_0x568945('0xe')]),router[_0x568945('0x4')]('/:id',auth[_0x568945('0xd')](),controller[_0x568945('0x0')]),router['delete'](_0x568945('0x2'),auth['isAuthenticated'](),controller[_0x568945('0x5')]),module[_0x568945('0x6')]=router; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.attributes.js b/server/api/chatTransferReport/chatTransferReport.attributes.js index f70b93e..9bec21e 100644 --- a/server/api/chatTransferReport/chatTransferReport.attributes.js +++ b/server/api/chatTransferReport/chatTransferReport.attributes.js @@ -1 +1 @@ -const a106_0x5073=['ENUM','account','STRING','sequelize','DATE','queue'];(function(_0x3c5031,_0x507393){const _0x362ba3=function(_0x1f32aa){while(--_0x1f32aa){_0x3c5031['push'](_0x3c5031['shift']());}};_0x362ba3(++_0x507393);}(a106_0x5073,0xad));const a106_0x362b=function(_0x3c5031,_0x507393){_0x3c5031=_0x3c5031-0x0;let _0x362ba3=a106_0x5073[_0x3c5031];return _0x362ba3;};const _0x2a68e8=a106_0x362b;'use strict';const Sequelize=require(_0x2a68e8('0x4'));module['exports']={'uniqueid':{'type':Sequelize[_0x2a68e8('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x2a68e8('0x1')](_0x2a68e8('0x2'),'agent',_0x2a68e8('0x0')),'allowNull':![],'defaultValue':_0x2a68e8('0x0')},'transferredAt':{'type':Sequelize[_0x2a68e8('0x5')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a106_0x3622=['DATE','exports','account','STRING','agent','queue','ENUM'];(function(_0x3a9be0,_0x3622ed){const _0xd9f135=function(_0x4ec74b){while(--_0x4ec74b){_0x3a9be0['push'](_0x3a9be0['shift']());}};_0xd9f135(++_0x3622ed);}(a106_0x3622,0x9f));const a106_0xd9f1=function(_0x3a9be0,_0x3622ed){_0x3a9be0=_0x3a9be0-0x0;let _0xd9f135=a106_0x3622[_0x3a9be0];return _0xd9f135;};const _0x5a9328=a106_0xd9f1;'use strict';const Sequelize=require('sequelize');module[_0x5a9328('0x3')]={'uniqueid':{'type':Sequelize[_0x5a9328('0x5')],'allowNull':![]},'type':{'type':Sequelize[_0x5a9328('0x1')](_0x5a9328('0x4'),_0x5a9328('0x6'),'queue'),'allowNull':![],'defaultValue':_0x5a9328('0x0')},'transferredAt':{'type':Sequelize[_0x5a9328('0x2')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.controller.js b/server/api/chatTransferReport/chatTransferReport.controller.js index 4fc9990..6df43a7 100644 --- a/server/api/chatTransferReport/chatTransferReport.controller.js +++ b/server/api/chatTransferReport/chatTransferReport.controller.js @@ -1 +1 @@ -const a107_0x39f0=['findAll','key','rows','filters','filter','lodash','map','catch','sort','merge','offset','sequelize','then','pick','error','length','rawAttributes','keys','fields','params','attributes','fieldName','include','model','end','update','name','show','where','ChatTransferReport','sendStatus','order','nolimit','status','includeAll','send','../../config/logger','../../components/parsers/qs','type','destroy','options','describe','count','limit','query','findOne','body','json','intersection','index','Content-Range'];(function(_0x5d030e,_0x39f0ce){const _0x53ca52=function(_0x40bb26){while(--_0x40bb26){_0x5d030e['push'](_0x5d030e['shift']());}};_0x53ca52(++_0x39f0ce);}(a107_0x39f0,0xb8));const a107_0x53ca=function(_0x5d030e,_0x39f0ce){_0x5d030e=_0x5d030e-0x0;let _0x53ca52=a107_0x39f0[_0x5d030e];return _0x53ca52;};const _0x584f8f=a107_0x53ca;'use strict';const _=require(_0x584f8f('0x19')),qs=require(_0x584f8f('0x6')),logger=require(_0x584f8f('0x5'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x584f8f('0x1f'));function respondWithResult(_0x40bb26,_0x5bc463){return _0x5bc463=_0x5bc463||0xc8,function(_0x5e763e){const _0x52ea90=a107_0x53ca;if(_0x5e763e)return _0x40bb26[_0x52ea90('0x2')](_0x5bc463)[_0x52ea90('0x10')](_0x5e763e);};}function respondWithFilteredResult(_0x4fe792,_0x206f3f){return function(_0x207885){const _0x5720f9=a107_0x53ca;if(_0x207885){const _0x1a8850=_0x207885[_0x5720f9('0xb')],_0x317373=_0x206f3f['offset'];let _0x516ed3=_0x206f3f['offset']+_0x206f3f[_0x5720f9('0xc')],_0x2e0806;return _0x516ed3>=_0x1a8850?(_0x516ed3=_0x1a8850,_0x2e0806=0xc8):_0x2e0806=0xce,_0x4fe792[_0x5720f9('0x2')](_0x2e0806),_0x4fe792['set'](_0x5720f9('0x13'),_0x317373+'-'+_0x516ed3+'/'+_0x1a8850)[_0x5720f9('0x10')](_0x207885);}return null;};}function saveUpdates(_0x23714d){return function(_0x203080){const _0x121766=a107_0x53ca;if(_0x203080)return _0x203080['update'](_0x23714d)[_0x121766('0x20')](function(_0x4589fc){return _0x4589fc;});return null;};}function removeEntity(_0x50af3a){return function(_0x54f5b3){const _0x48a2f4=a107_0x53ca;if(_0x54f5b3)return _0x54f5b3[_0x48a2f4('0x8')]()[_0x48a2f4('0x20')](function(){const _0x5eafa0=_0x48a2f4;_0x50af3a[_0x5eafa0('0x2')](0xcc)[_0x5eafa0('0x2c')]();});};}function handleEntityNotFound(_0xdced2c){return function(_0x4821c1){const _0x1c080f=a107_0x53ca;return!_0x4821c1&&_0xdced2c[_0x1c080f('0x32')](0x194),_0x4821c1;};}function handleError(_0x4fd1b1,_0x7761a9){return _0x7761a9=_0x7761a9||0x1f4,function(_0xba883){const _0x546615=a107_0x53ca;logger[_0x546615('0x22')](_0xba883['stack']),_0xba883[_0x546615('0x2e')]&&delete _0xba883[_0x546615('0x2e')],_0x4fd1b1[_0x546615('0x2')](_0x7761a9)[_0x546615('0x4')](_0xba883);};}exports[_0x584f8f('0x12')]=function(_0xfde393,_0x4caf9f){const _0x203771=_0x584f8f;let _0x3877ff={};const _0x513fde={},_0x47d311={'count':0x0,'rows':[]},_0x2a68bc=_[_0x203771('0x1a')](db[_0x203771('0x31')][_0x203771('0x24')],function(_0x34561a){const _0x9cb97c=_0x203771;return{'name':_0x34561a[_0x9cb97c('0x29')],'type':_0x34561a['type'][_0x9cb97c('0x15')]};});_0x513fde['model']=_[_0x203771('0x1a')](_0x2a68bc,'name'),_0x513fde['query']=_[_0x203771('0x25')](_0xfde393[_0x203771('0xd')]),_0x513fde[_0x203771('0x17')]=_['intersection'](_0x513fde[_0x203771('0x2b')],_0x513fde[_0x203771('0xd')]),_0x3877ff[_0x203771('0x28')]=_['intersection'](_0x513fde[_0x203771('0x2b')],qs['fields'](_0xfde393[_0x203771('0xd')][_0x203771('0x26')])),_0x3877ff[_0x203771('0x28')]=_0x3877ff[_0x203771('0x28')]['length']?_0x3877ff[_0x203771('0x28')]:_0x513fde['model'];typeof _0xfde393[_0x203771('0xd')][_0x203771('0x1')]==='undefined'&&(_0x3877ff[_0x203771('0xc')]=qs[_0x203771('0xc')](_0xfde393[_0x203771('0xd')][_0x203771('0xc')]),_0x3877ff[_0x203771('0x1e')]=qs[_0x203771('0x1e')](_0xfde393[_0x203771('0xd')]['offset']));_0x3877ff[_0x203771('0x0')]=qs[_0x203771('0x1c')](_0xfde393[_0x203771('0xd')][_0x203771('0x1c')]),_0x3877ff[_0x203771('0x30')]=qs[_0x203771('0x17')](_[_0x203771('0x21')](_0xfde393['query'],_0x513fde[_0x203771('0x17')]),_0x2a68bc);_0xfde393['query'][_0x203771('0x18')]&&(_0x3877ff['where']=_[_0x203771('0x1d')](_0x3877ff[_0x203771('0x30')],{[Op['or']]:_[_0x203771('0x1a')](_0x2a68bc,function(_0x51aed7){const _0x4c452b=_0x203771;if(_0x51aed7[_0x4c452b('0x7')]!=='VIRTUAL'){const _0x5b61e9={};return _0x5b61e9[_0x51aed7[_0x4c452b('0x2e')]]={[Op['like']]:'%'+_0xfde393[_0x4c452b('0xd')][_0x4c452b('0x18')]+'%'},_0x5b61e9;}})}));_0x3877ff=_[_0x203771('0x1d')]({},_0x3877ff,_0xfde393[_0x203771('0x9')]);const _0x321301={'where':_0x3877ff[_0x203771('0x30')]};return db[_0x203771('0x31')][_0x203771('0xb')](_0x321301)[_0x203771('0x20')](function(_0x39f25c){const _0x2f4581=_0x203771;return _0x47d311[_0x2f4581('0xb')]=_0x39f25c,_0xfde393[_0x2f4581('0xd')][_0x2f4581('0x3')]&&(_0x3877ff[_0x2f4581('0x2a')]=[{'all':!![]}]),db[_0x2f4581('0x31')][_0x2f4581('0x14')](_0x3877ff);})['then'](function(_0x5e41db){const _0x2e0830=_0x203771;return _0x47d311[_0x2e0830('0x16')]=_0x5e41db,_0x47d311;})[_0x203771('0x20')](respondWithFilteredResult(_0x4caf9f,_0x3877ff))[_0x203771('0x1b')](handleError(_0x4caf9f,null));},exports[_0x584f8f('0x2f')]=function(_0x1d270a,_0x4a0f0d){const _0x361d23=_0x584f8f;let _0x58c9af={'raw':!![],'where':{'id':_0x1d270a['params']['id']}};const _0x209716={};return _0x209716[_0x361d23('0x2b')]=_[_0x361d23('0x25')](db['ChatTransferReport'][_0x361d23('0x24')]),_0x209716['query']=_[_0x361d23('0x25')](_0x1d270a[_0x361d23('0xd')]),_0x209716['filters']=_[_0x361d23('0x11')](_0x209716[_0x361d23('0x2b')],_0x209716[_0x361d23('0xd')]),_0x58c9af[_0x361d23('0x28')]=_[_0x361d23('0x11')](_0x209716[_0x361d23('0x2b')],qs[_0x361d23('0x26')](_0x1d270a[_0x361d23('0xd')][_0x361d23('0x26')])),_0x58c9af[_0x361d23('0x28')]=_0x58c9af[_0x361d23('0x28')][_0x361d23('0x23')]?_0x58c9af[_0x361d23('0x28')]:_0x209716['model'],_0x1d270a['query'][_0x361d23('0x3')]&&(_0x58c9af[_0x361d23('0x2a')]=[{'all':!![]}]),_0x58c9af=_[_0x361d23('0x1d')]({},_0x58c9af,_0x1d270a[_0x361d23('0x9')]),db['ChatTransferReport'][_0x361d23('0xe')](_0x58c9af)['then'](handleEntityNotFound(_0x4a0f0d,null))[_0x361d23('0x20')](respondWithResult(_0x4a0f0d,null))[_0x361d23('0x1b')](handleError(_0x4a0f0d,null));},exports['create']=function(_0x3a6ea6,_0x30ae04){const _0x2a5b16=_0x584f8f;return db[_0x2a5b16('0x31')]['create'](_0x3a6ea6[_0x2a5b16('0xf')],{})[_0x2a5b16('0x20')](respondWithResult(_0x30ae04,0xc9))[_0x2a5b16('0x1b')](handleError(_0x30ae04,null));},exports[_0x584f8f('0x2d')]=function(_0x3fd1a4,_0x3299ca){const _0x2631c7=_0x584f8f;return _0x3fd1a4[_0x2631c7('0xf')]['id']&&delete _0x3fd1a4[_0x2631c7('0xf')]['id'],db[_0x2631c7('0x31')][_0x2631c7('0xe')]({'where':{'id':_0x3fd1a4['params']['id']}})[_0x2631c7('0x20')](handleEntityNotFound(_0x3299ca,null))[_0x2631c7('0x20')](saveUpdates(_0x3fd1a4[_0x2631c7('0xf')],null))[_0x2631c7('0x20')](respondWithResult(_0x3299ca,null))['catch'](handleError(_0x3299ca,null));},exports[_0x584f8f('0x8')]=function(_0x3f9742,_0x187b8b){const _0x55af27=_0x584f8f;return db[_0x55af27('0x31')]['findOne']({'where':{'id':_0x3f9742[_0x55af27('0x27')]['id']}})[_0x55af27('0x20')](handleEntityNotFound(_0x187b8b,null))[_0x55af27('0x20')](removeEntity(_0x187b8b,null))['catch'](handleError(_0x187b8b,null));},exports['describe']=function(_0x2e5fa6,_0x5417a1){const _0x2c674f=_0x584f8f;return db[_0x2c674f('0x31')][_0x2c674f('0xa')]()[_0x2c674f('0x20')](respondWithResult(_0x5417a1,null))[_0x2c674f('0x1b')](handleError(_0x5417a1,null));}; \ No newline at end of file +const a107_0x2a27=['query','json','nolimit','like','includeAll','findAll','end','show','fields','sort','keys','describe','ChatTransferReport','attributes','where','send','set','name','error','update','catch','limit','filters','merge','Content-Range','offset','destroy','model','pick','rows','undefined','sendStatus','options','map','intersection','order','../../mysqldb','rawAttributes','body','type','findOne','key','params','status','include','lodash','then','filter','count','create'];(function(_0x3529ce,_0x2a27a0){const _0x1397c2=function(_0x356e34){while(--_0x356e34){_0x3529ce['push'](_0x3529ce['shift']());}};_0x1397c2(++_0x2a27a0);}(a107_0x2a27,0x10b));const a107_0x1397=function(_0x3529ce,_0x2a27a0){_0x3529ce=_0x3529ce-0x0;let _0x1397c2=a107_0x2a27[_0x3529ce];return _0x1397c2;};const _0x542c88=a107_0x1397;'use strict';const _=require(_0x542c88('0x1c')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x542c88('0x13'))['db'],{Op}=require('sequelize');function respondWithResult(_0x356e34,_0x1d0129){return _0x1d0129=_0x1d0129||0xc8,function(_0x5125c7){const _0x4da78f=a107_0x1397;if(_0x5125c7)return _0x356e34[_0x4da78f('0x1a')](_0x1d0129)['json'](_0x5125c7);};}function respondWithFilteredResult(_0x352c9e,_0x3141ae){return function(_0x483f98){const _0xb12418=a107_0x1397;if(_0x483f98){const _0x221377=_0x483f98[_0xb12418('0x1f')],_0x134e32=_0x3141ae[_0xb12418('0x8')];let _0x1e303a=_0x3141ae[_0xb12418('0x8')]+_0x3141ae[_0xb12418('0x4')],_0x45a102;return _0x1e303a>=_0x221377?(_0x1e303a=_0x221377,_0x45a102=0xc8):_0x45a102=0xce,_0x352c9e['status'](_0x45a102),_0x352c9e[_0xb12418('0x31')](_0xb12418('0x7'),_0x134e32+'-'+_0x1e303a+'/'+_0x221377)[_0xb12418('0x22')](_0x483f98);}return null;};}function saveUpdates(_0x36e5e8){return function(_0xaa4721){const _0x18560a=a107_0x1397;if(_0xaa4721)return _0xaa4721[_0x18560a('0x2')](_0x36e5e8)[_0x18560a('0x1d')](function(_0x25ac67){return _0x25ac67;});return null;};}function removeEntity(_0x545cfb){return function(_0x30efe6){const _0x49d07f=a107_0x1397;if(_0x30efe6)return _0x30efe6['destroy']()[_0x49d07f('0x1d')](function(){const _0x597d30=_0x49d07f;_0x545cfb['status'](0xcc)[_0x597d30('0x27')]();});};}function handleEntityNotFound(_0x11f137){return function(_0x200bb8){const _0x36c0d0=a107_0x1397;return!_0x200bb8&&_0x11f137[_0x36c0d0('0xe')](0x194),_0x200bb8;};}function handleError(_0x1c0ef2,_0x2ce2b2){return _0x2ce2b2=_0x2ce2b2||0x1f4,function(_0x413378){const _0x10ab07=a107_0x1397;logger[_0x10ab07('0x1')](_0x413378['stack']),_0x413378[_0x10ab07('0x0')]&&delete _0x413378['name'],_0x1c0ef2['status'](_0x2ce2b2)[_0x10ab07('0x30')](_0x413378);};}exports['index']=function(_0x26d5c9,_0x42eea0){const _0x319537=_0x542c88;let _0x2264a2={};const _0x2c2121={},_0x584c9a={'count':0x0,'rows':[]},_0x55ef97=_['map'](db[_0x319537('0x2d')][_0x319537('0x14')],function(_0x3867bc){const _0x2b917c=_0x319537;return{'name':_0x3867bc['fieldName'],'type':_0x3867bc[_0x2b917c('0x16')][_0x2b917c('0x18')]};});_0x2c2121[_0x319537('0xa')]=_['map'](_0x55ef97,_0x319537('0x0')),_0x2c2121[_0x319537('0x21')]=_[_0x319537('0x2b')](_0x26d5c9[_0x319537('0x21')]),_0x2c2121[_0x319537('0x5')]=_['intersection'](_0x2c2121['model'],_0x2c2121[_0x319537('0x21')]),_0x2264a2[_0x319537('0x2e')]=_[_0x319537('0x11')](_0x2c2121[_0x319537('0xa')],qs[_0x319537('0x29')](_0x26d5c9[_0x319537('0x21')][_0x319537('0x29')])),_0x2264a2[_0x319537('0x2e')]=_0x2264a2[_0x319537('0x2e')]['length']?_0x2264a2[_0x319537('0x2e')]:_0x2c2121['model'];typeof _0x26d5c9[_0x319537('0x21')][_0x319537('0x23')]===_0x319537('0xd')&&(_0x2264a2['limit']=qs[_0x319537('0x4')](_0x26d5c9[_0x319537('0x21')][_0x319537('0x4')]),_0x2264a2[_0x319537('0x8')]=qs[_0x319537('0x8')](_0x26d5c9[_0x319537('0x21')]['offset']));_0x2264a2[_0x319537('0x12')]=qs[_0x319537('0x2a')](_0x26d5c9[_0x319537('0x21')][_0x319537('0x2a')]),_0x2264a2[_0x319537('0x2f')]=qs[_0x319537('0x5')](_[_0x319537('0xb')](_0x26d5c9[_0x319537('0x21')],_0x2c2121[_0x319537('0x5')]),_0x55ef97);_0x26d5c9['query'][_0x319537('0x1e')]&&(_0x2264a2['where']=_[_0x319537('0x6')](_0x2264a2[_0x319537('0x2f')],{[Op['or']]:_[_0x319537('0x10')](_0x55ef97,function(_0x353549){const _0x25cc49=_0x319537;if(_0x353549[_0x25cc49('0x16')]!=='VIRTUAL'){const _0x37716c={};return _0x37716c[_0x353549[_0x25cc49('0x0')]]={[Op[_0x25cc49('0x24')]]:'%'+_0x26d5c9[_0x25cc49('0x21')]['filter']+'%'},_0x37716c;}})}));_0x2264a2=_[_0x319537('0x6')]({},_0x2264a2,_0x26d5c9[_0x319537('0xf')]);const _0x3b579b={'where':_0x2264a2['where']};return db[_0x319537('0x2d')][_0x319537('0x1f')](_0x3b579b)[_0x319537('0x1d')](function(_0x4950a3){const _0x379028=_0x319537;return _0x584c9a['count']=_0x4950a3,_0x26d5c9[_0x379028('0x21')]['includeAll']&&(_0x2264a2[_0x379028('0x1b')]=[{'all':!![]}]),db[_0x379028('0x2d')][_0x379028('0x26')](_0x2264a2);})['then'](function(_0x371f60){const _0x112539=_0x319537;return _0x584c9a[_0x112539('0xc')]=_0x371f60,_0x584c9a;})[_0x319537('0x1d')](respondWithFilteredResult(_0x42eea0,_0x2264a2))[_0x319537('0x3')](handleError(_0x42eea0,null));},exports[_0x542c88('0x28')]=function(_0x4cc29b,_0x17d046){const _0x2a3ca2=_0x542c88;let _0x116d2b={'raw':!![],'where':{'id':_0x4cc29b['params']['id']}};const _0x74bcd7={};return _0x74bcd7[_0x2a3ca2('0xa')]=_[_0x2a3ca2('0x2b')](db[_0x2a3ca2('0x2d')][_0x2a3ca2('0x14')]),_0x74bcd7[_0x2a3ca2('0x21')]=_[_0x2a3ca2('0x2b')](_0x4cc29b[_0x2a3ca2('0x21')]),_0x74bcd7[_0x2a3ca2('0x5')]=_[_0x2a3ca2('0x11')](_0x74bcd7[_0x2a3ca2('0xa')],_0x74bcd7[_0x2a3ca2('0x21')]),_0x116d2b[_0x2a3ca2('0x2e')]=_[_0x2a3ca2('0x11')](_0x74bcd7['model'],qs[_0x2a3ca2('0x29')](_0x4cc29b[_0x2a3ca2('0x21')]['fields'])),_0x116d2b[_0x2a3ca2('0x2e')]=_0x116d2b[_0x2a3ca2('0x2e')]['length']?_0x116d2b[_0x2a3ca2('0x2e')]:_0x74bcd7['model'],_0x4cc29b[_0x2a3ca2('0x21')][_0x2a3ca2('0x25')]&&(_0x116d2b['include']=[{'all':!![]}]),_0x116d2b=_[_0x2a3ca2('0x6')]({},_0x116d2b,_0x4cc29b[_0x2a3ca2('0xf')]),db[_0x2a3ca2('0x2d')][_0x2a3ca2('0x17')](_0x116d2b)[_0x2a3ca2('0x1d')](handleEntityNotFound(_0x17d046,null))[_0x2a3ca2('0x1d')](respondWithResult(_0x17d046,null))['catch'](handleError(_0x17d046,null));},exports['create']=function(_0x69ca1c,_0x35a604){const _0x28bcab=_0x542c88;return db[_0x28bcab('0x2d')][_0x28bcab('0x20')](_0x69ca1c[_0x28bcab('0x15')],{})[_0x28bcab('0x1d')](respondWithResult(_0x35a604,0xc9))[_0x28bcab('0x3')](handleError(_0x35a604,null));},exports[_0x542c88('0x2')]=function(_0x53b5f9,_0x97eeae){const _0xf0b657=_0x542c88;return _0x53b5f9[_0xf0b657('0x15')]['id']&&delete _0x53b5f9['body']['id'],db['ChatTransferReport'][_0xf0b657('0x17')]({'where':{'id':_0x53b5f9[_0xf0b657('0x19')]['id']}})['then'](handleEntityNotFound(_0x97eeae,null))['then'](saveUpdates(_0x53b5f9[_0xf0b657('0x15')],null))[_0xf0b657('0x1d')](respondWithResult(_0x97eeae,null))[_0xf0b657('0x3')](handleError(_0x97eeae,null));},exports[_0x542c88('0x9')]=function(_0x10dd79,_0x23f6dd){const _0x28e454=_0x542c88;return db[_0x28e454('0x2d')][_0x28e454('0x17')]({'where':{'id':_0x10dd79[_0x28e454('0x19')]['id']}})[_0x28e454('0x1d')](handleEntityNotFound(_0x23f6dd,null))[_0x28e454('0x1d')](removeEntity(_0x23f6dd,null))[_0x28e454('0x3')](handleError(_0x23f6dd,null));},exports[_0x542c88('0x2c')]=function(_0x7a6cc0,_0x119a5c){const _0x1a5382=_0x542c88;return db[_0x1a5382('0x2d')][_0x1a5382('0x2c')]()['then'](respondWithResult(_0x119a5c,null))[_0x1a5382('0x3')](handleError(_0x119a5c,null));}; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.model.js b/server/api/chatTransferReport/chatTransferReport.model.js index e60721b..2bcde74 100644 --- a/server/api/chatTransferReport/chatTransferReport.model.js +++ b/server/api/chatTransferReport/chatTransferReport.model.js @@ -1 +1 @@ -const a108_0x26b2=['define','ChatTransferReport','./chatTransferReport.attributes','report_chat_transfer','uniqueid'];(function(_0x4442f1,_0x26b2c2){const _0x4ae092=function(_0x2f4f92){while(--_0x2f4f92){_0x4442f1['push'](_0x4442f1['shift']());}};_0x4ae092(++_0x26b2c2);}(a108_0x26b2,0x167));const a108_0x4ae0=function(_0x4442f1,_0x26b2c2){_0x4442f1=_0x4442f1-0x0;let _0x4ae092=a108_0x26b2[_0x4442f1];return _0x4ae092;};const _0x57b585=a108_0x4ae0;'use strict';const attributes=require(_0x57b585('0x3'));module['exports']=function(_0x2f4f92){const _0x3d86fc=_0x57b585,_0x1916f3=_0x2f4f92[_0x3d86fc('0x1')](_0x3d86fc('0x2'),attributes,{'tableName':_0x3d86fc('0x4'),'paranoid':![],'indexes':[{'name':_0x3d86fc('0x0'),'fields':[_0x3d86fc('0x0')]}],'timestamps':!![]});return _0x1916f3;}; \ No newline at end of file +const a108_0x4208=['exports','report_chat_transfer','./chatTransferReport.attributes','ChatTransferReport'];(function(_0x346b2a,_0x420815){const _0x3eda4a=function(_0x5e8efc){while(--_0x5e8efc){_0x346b2a['push'](_0x346b2a['shift']());}};_0x3eda4a(++_0x420815);}(a108_0x4208,0x1ad));const a108_0x3eda=function(_0x346b2a,_0x420815){_0x346b2a=_0x346b2a-0x0;let _0x3eda4a=a108_0x4208[_0x346b2a];return _0x3eda4a;};const _0x22860d=a108_0x3eda;'use strict';const attributes=require(_0x22860d('0x1'));module[_0x22860d('0x3')]=function(_0x5e8efc){const _0x318b79=_0x22860d,_0x3306a9=_0x5e8efc['define'](_0x318b79('0x2'),attributes,{'tableName':_0x318b79('0x0'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0x3306a9;}; \ No newline at end of file diff --git a/server/api/chatTransferReport/index.js b/server/api/chatTransferReport/index.js index 4dfebe6..e7e0ca2 100644 --- a/server/api/chatTransferReport/index.js +++ b/server/api/chatTransferReport/index.js @@ -1 +1 @@ -const a109_0x3459=['post','/:id','exports','/describe','Router','create','delete','./chatTransferReport.controller','get','express','describe','show','isAuthenticated'];(function(_0x14dd62,_0x34595c){const _0x427433=function(_0x40c6d6){while(--_0x40c6d6){_0x14dd62['push'](_0x14dd62['shift']());}};_0x427433(++_0x34595c);}(a109_0x3459,0x1e9));const a109_0x4274=function(_0x14dd62,_0x34595c){_0x14dd62=_0x14dd62-0x0;let _0x427433=a109_0x3459[_0x14dd62];return _0x427433;};const _0x210710=a109_0x4274;'use strict';const express=require(_0x210710('0x1')),router=express[_0x210710('0x9')](),auth=require('../../components/auth/service'),controller=require(_0x210710('0xc'));router[_0x210710('0x0')]('/',auth[_0x210710('0x4')](),controller['index']),router[_0x210710('0x0')](_0x210710('0x8'),auth[_0x210710('0x4')](),controller[_0x210710('0x2')]),router['get'](_0x210710('0x6'),auth[_0x210710('0x4')](),controller[_0x210710('0x3')]),router[_0x210710('0x5')]('/',auth['isAuthenticated'](),controller[_0x210710('0xa')]),router['put'](_0x210710('0x6'),auth[_0x210710('0x4')](),controller['update']),router[_0x210710('0xb')](_0x210710('0x6'),auth['isAuthenticated'](),controller['destroy']),module[_0x210710('0x7')]=router; \ No newline at end of file +const a109_0xf1b4=['describe','show','post','/:id','index','create','delete','update','/describe','exports','put','express','isAuthenticated','get','./chatTransferReport.controller'];(function(_0x110020,_0xf1b45){const _0x1ed2fb=function(_0x436e53){while(--_0x436e53){_0x110020['push'](_0x110020['shift']());}};_0x1ed2fb(++_0xf1b45);}(a109_0xf1b4,0x13e));const a109_0x1ed2=function(_0x110020,_0xf1b45){_0x110020=_0x110020-0x0;let _0x1ed2fb=a109_0xf1b4[_0x110020];return _0x1ed2fb;};const _0x289b96=a109_0x1ed2;'use strict';const express=require(_0x289b96('0x8')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x289b96('0xb'));router[_0x289b96('0xa')]('/',auth[_0x289b96('0x9')](),controller[_0x289b96('0x1')]),router[_0x289b96('0xa')](_0x289b96('0x5'),auth[_0x289b96('0x9')](),controller[_0x289b96('0xc')]),router[_0x289b96('0xa')]('/:id',auth[_0x289b96('0x9')](),controller[_0x289b96('0xd')]),router[_0x289b96('0xe')]('/',auth['isAuthenticated'](),controller[_0x289b96('0x2')]),router[_0x289b96('0x7')](_0x289b96('0x0'),auth[_0x289b96('0x9')](),controller[_0x289b96('0x4')]),router[_0x289b96('0x3')](_0x289b96('0x0'),auth[_0x289b96('0x9')](),controller['destroy']),module[_0x289b96('0x6')]=router; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.attributes.js b/server/api/chatWebsite/chatWebsite.attributes.js index f57bf1a..573573c 100644 --- a/server/api/chatWebsite/chatWebsite.attributes.js +++ b/server/api/chatWebsite/chatWebsite.attributes.js @@ -1 +1 @@ -const a110_0x4d2c=['You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','INTEGER','getDataValue','Agent','Feedback','website_alias','mandatoryDispositionPauseId','Contact\x20us','Comments','alternate','stringify','bottom_right','star','Skip','exports','input','generate','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','Send','onlineForm','System','text','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','Type\x20a\x20message','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','thumb','TEXT','Powered\x20by\x20xCALLY','#011F6A','STRING','name','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','mandatoryDisposition','sequelize','#ffffff','Chat','New\x20offline\x20message\x20from\x20websiteName','offlineForm','setDataValue','email','Your\x20request\x20has\x20not\x20been\x20processed.','squared','ENUM','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','textarea','Form\x20submission\x20error','address','BOOLEAN','We\x20are\x20here!'];(function(_0x1b7b1f,_0x4d2c1b){const _0x4e7058=function(_0x4f55c7){while(--_0x4f55c7){_0x1b7b1f['push'](_0x1b7b1f['shift']());}};_0x4e7058(++_0x4d2c1b);}(a110_0x4d2c,0x67));const a110_0x4e70=function(_0x1b7b1f,_0x4d2c1b){_0x1b7b1f=_0x1b7b1f-0x0;let _0x4e7058=a110_0x4d2c[_0x1b7b1f];return _0x4e7058;};const _0x19cf98=a110_0x4e70;'use strict';const Sequelize=require(_0x19cf98('0x1c')),rs=require('randomstring');module[_0x19cf98('0x9')]={'name':{'type':Sequelize[_0x19cf98('0x18')],'allowNull':![]},'address':{'type':Sequelize[_0x19cf98('0x18')],'allowNull':![],'unique':_0x19cf98('0x29')},'description':{'type':Sequelize['STRING']},'mapKey':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x22')},'mapKeyOffline':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x22')},'key':{'type':Sequelize[_0x19cf98('0x18')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x2f')},'customerAlias':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x19cf98('0x17'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x19cf98('0x18')],'allowNull':![],'defaultValue':_0x19cf98('0x17'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x19cf98('0x18')],'allowNull':![],'defaultValue':_0x19cf98('0x1d'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x19cf98('0x2d')],'defaultValue':0xf},'remote':{'type':Sequelize['STRING']},'animation':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x19cf98('0x25')]('rounded',_0x19cf98('0x24')),'defaultValue':'rounded'},'header_online':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x2b')},'start_chat_button':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x1e')},'offline_chat_button':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':'Send'},'header_offline':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x2')},'download_transcript':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x19cf98('0x2d')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x16')},'defaultWhiteLabel':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0x19cf98('0x15')]},'closingQuestion':{'type':Sequelize['STRING'],'defaultValue':'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?'},'formSubmitSuccessMessage':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':'Form\x20properly\x20submitted'},'formSubmitFailureMessage':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x28')},'noteTitle':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':'Note'},'placeholderMessage':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x12')},'closingMessage':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':'Thanks\x20you\x20for\x20your\x20time!'},'closingMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0x19cf98('0xd')},'skipMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0x19cf98('0x8')},'conditionAgreement':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x30')},'ratingType':{'type':Sequelize[_0x19cf98('0x25')](_0x19cf98('0x7'),_0x19cf98('0x14')),'defaultValue':_0x19cf98('0x7')},'ratingStarsNumber':{'type':Sequelize[_0x19cf98('0x2d')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0x19cf98('0x15')],'defaultValue':function(){const _0x29e3aa=_0x19cf98;return JSON['stringify']({'items':[{'type':_0x29e3aa('0xa'),'variable':null,'config':{'placeholder':_0x29e3aa('0x19'),'type':_0x29e3aa('0x10'),'required':!![]},'props':{'title':'name','helpText':''}},{'type':'input','props':{'title':_0x29e3aa('0x22'),'helpText':''},'config':{'required':!![],'placeholder':_0x29e3aa('0x22'),'type':_0x29e3aa('0x22')},'variable':null}],'fromKey':0x1});},'get':function(){const _0x3fb765=_0x19cf98;return this[_0x3fb765('0x2e')](_0x3fb765('0xe'))?JSON['parse'](this[_0x3fb765('0x2e')](_0x3fb765('0xe'))):{};},'set':function(_0x4f55c7){const _0x562a62=_0x19cf98;return this[_0x562a62('0x21')](_0x562a62('0xe'),JSON[_0x562a62('0x5')](_0x4f55c7));}},'offlineForm':{'type':Sequelize[_0x19cf98('0x15')],'defaultValue':function(){const _0x9f43f2=_0x19cf98;return JSON[_0x9f43f2('0x5')]({'items':[{'type':_0x9f43f2('0xa'),'props':{'title':_0x9f43f2('0x22'),'helpText':''},'config':{'required':!![],'placeholder':_0x9f43f2('0x22'),'type':_0x9f43f2('0x22')},'variable':null},{'type':_0x9f43f2('0x27'),'config':{'placeholder':_0x9f43f2('0x3')},'props':{'title':'Comments','helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){const _0x46351a=_0x19cf98;return this[_0x46351a('0x2e')]('offlineForm')?JSON['parse'](this[_0x46351a('0x2e')]('offlineForm')):{};},'set':function(_0x1f4984){const _0x22f4dc=_0x19cf98;return this[_0x22f4dc('0x21')](_0x22f4dc('0x20'),JSON[_0x22f4dc('0x5')](_0x1f4984));}},'token':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':function(){const _0xe1adf2=_0x19cf98;return rs[_0xe1adf2('0xb')]();}},'autoclose':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize['STRING']},'forwardOffline':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x19cf98('0x18')]},'waitingTitle':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0xc')},'waitingMessage':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x11')},'offlineMessageSubject':{'type':Sequelize['STRING'],'defaultValue':_0x19cf98('0x1f')},'offlineMessageBody':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x2c')},'enableUnmanagedNote':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize['STRING'],'defaultValue':_0x19cf98('0x23')},'skipUnmanaged':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x8')},'sendUnmanaged':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0xd')},'enableCustomerAttachment':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'agentAvatar':{'type':Sequelize['TEXT']},'showAgentAvatar':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'timezone':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0x19cf98('0x15')],'defaultValue':function(){const _0x3cf5ed=_0x19cf98;return _0x3cf5ed('0x26');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x0')},'waitForTheAssignedAgent':{'type':Sequelize[_0x19cf98('0x2d')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x6')},'verticalAlignment':{'type':Sequelize[_0x19cf98('0x2d')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0x4')},'defaultTitle':{'type':Sequelize['STRING']},'customerAvatar':{'type':Sequelize['TEXT']},'showCustomerAvatar':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x19cf98('0x2d')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x19cf98('0x18')],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x19cf98('0x2d')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x19cf98('0x18')],'defaultValue':_0x19cf98('0xf')},'systemAvatar':{'type':Sequelize['TEXT']},'mandatoryDispositionPauseId':{'type':Sequelize[_0x19cf98('0x2d')],'comment':_0x19cf98('0x1a')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x19cf98('0x13'),'set':function(_0x5b59bf){const _0x176774=_0x19cf98;if(!_0x5b59bf)this['setDataValue'](_0x176774('0x1'),null);this['setDataValue'](_0x176774('0x1b'),_0x5b59bf);}},'vidaooEscalation':{'type':Sequelize[_0x19cf98('0x2a')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize['STRING'],'defaultValue':![]}}; \ No newline at end of file +const a110_0x4709=['alternate','Skip','name','Type\x20a\x20message','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','#011F6A','Thanks\x20you\x20for\x20your\x20time!','input','TEXT','Comments','stringify','thumb','STRING','New\x20offline\x20message\x20from\x20websiteName','Form\x20submission\x20error','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','offlineForm','BOOLEAN','ENUM','squared','website_alias','onlineForm','textarea','Form\x20properly\x20submitted','randomstring','#ffffff','Note','INTEGER','bottom_right','setDataValue','Chat','Contact\x20us','System','Leave\x20your\x20comments','sequelize','generate','exports','rounded','mandatoryDisposition','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','getDataValue','email','mandatoryDispositionPauseId','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','parse','Agent','#fafafa'];(function(_0xd3e393,_0x470984){const _0xdb1e40=function(_0x2e50f4){while(--_0x2e50f4){_0xd3e393['push'](_0xd3e393['shift']());}};_0xdb1e40(++_0x470984);}(a110_0x4709,0x199));const a110_0xdb1e=function(_0xd3e393,_0x470984){_0xd3e393=_0xd3e393-0x0;let _0xdb1e40=a110_0x4709[_0xd3e393];return _0xdb1e40;};const _0x6dd9f5=a110_0xdb1e;'use strict';const Sequelize=require(_0x6dd9f5('0x1')),rs=require(_0x6dd9f5('0x26'));module[_0x6dd9f5('0x3')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'address':{'type':Sequelize[_0x6dd9f5('0x1a')],'allowNull':![],'unique':'address'},'description':{'type':Sequelize['STRING']},'mapKey':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x8')},'mapKeyOffline':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':'email'},'key':{'type':Sequelize['STRING'],'allowNull':![]},'agentAlias':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0xc')},'customerAlias':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x6dd9f5('0x13'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x6dd9f5('0x1a')],'allowNull':![],'defaultValue':_0x6dd9f5('0x13'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x6dd9f5('0x1a')],'allowNull':![],'defaultValue':_0x6dd9f5('0x27'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x6dd9f5('0x29')],'defaultValue':0xf},'remote':{'type':Sequelize['STRING']},'animation':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x6dd9f5('0x20')](_0x6dd9f5('0x4'),_0x6dd9f5('0x21')),'defaultValue':'rounded'},'header_online':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':'We\x20are\x20here!'},'start_chat_button':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x2c')},'offline_chat_button':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':'Send'},'header_offline':{'type':Sequelize['STRING'],'defaultValue':_0x6dd9f5('0x2d')},'download_transcript':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x6dd9f5('0x29')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':'Powered\x20by\x20xCALLY'},'defaultWhiteLabel':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0x6dd9f5('0x16')]},'closingQuestion':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x1d')},'formSubmitSuccessMessage':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x25')},'formSubmitFailureMessage':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x1c')},'noteTitle':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x28')},'placeholderMessage':{'type':Sequelize['STRING'],'defaultValue':_0x6dd9f5('0x11')},'closingMessage':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x14')},'closingMessageButton':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':'Send'},'skipMessageButton':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0xf')},'conditionAgreement':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'enableSendButton':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'feedbackTitle':{'type':Sequelize['STRING'],'defaultValue':'Feedback'},'ratingType':{'type':Sequelize['ENUM']('star',_0x6dd9f5('0x19')),'defaultValue':'star'},'ratingStarsNumber':{'type':Sequelize[_0x6dd9f5('0x29')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0x6dd9f5('0x16')],'defaultValue':function(){const _0x3b8a6e=_0x6dd9f5;return JSON[_0x3b8a6e('0x18')]({'items':[{'type':_0x3b8a6e('0x15'),'variable':null,'config':{'placeholder':_0x3b8a6e('0x10'),'type':'text','required':!![]},'props':{'title':_0x3b8a6e('0x10'),'helpText':''}},{'type':_0x3b8a6e('0x15'),'props':{'title':_0x3b8a6e('0x8'),'helpText':''},'config':{'required':!![],'placeholder':_0x3b8a6e('0x8'),'type':_0x3b8a6e('0x8')},'variable':null}],'fromKey':0x1});},'get':function(){const _0x138bdb=_0x6dd9f5;return this[_0x138bdb('0x7')](_0x138bdb('0x23'))?JSON[_0x138bdb('0xb')](this[_0x138bdb('0x7')](_0x138bdb('0x23'))):{};},'set':function(_0x2e50f4){const _0x38ddbe=_0x6dd9f5;return this[_0x38ddbe('0x2b')](_0x38ddbe('0x23'),JSON[_0x38ddbe('0x18')](_0x2e50f4));}},'offlineForm':{'type':Sequelize[_0x6dd9f5('0x16')],'defaultValue':function(){const _0x4b2abb=_0x6dd9f5;return JSON['stringify']({'items':[{'type':'input','props':{'title':_0x4b2abb('0x8'),'helpText':''},'config':{'required':!![],'placeholder':_0x4b2abb('0x8'),'type':_0x4b2abb('0x8')},'variable':null},{'type':_0x4b2abb('0x24'),'config':{'placeholder':_0x4b2abb('0x17')},'props':{'title':_0x4b2abb('0x17'),'helpText':_0x4b2abb('0x0')}}],'fromKey':0x0});},'get':function(){const _0x4a481b=_0x6dd9f5;return this[_0x4a481b('0x7')](_0x4a481b('0x1e'))?JSON[_0x4a481b('0xb')](this[_0x4a481b('0x7')](_0x4a481b('0x1e'))):{};},'set':function(_0x5993ea){const _0x28a1e5=_0x6dd9f5;return this[_0x28a1e5('0x2b')](_0x28a1e5('0x1e'),JSON[_0x28a1e5('0x18')](_0x5993ea));}},'token':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':function(){const _0x30c9e0=_0x6dd9f5;return rs[_0x30c9e0('0x2')]();}},'autoclose':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize['STRING']},'forwardOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x6dd9f5('0x1a')]},'waitingTitle':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0xa')},'waitingMessage':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':'Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.'},'offlineMessageSubject':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x1b')},'offlineMessageBody':{'type':Sequelize['STRING'],'defaultValue':'You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:'},'enableUnmanagedNote':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize['STRING'],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'},'skipUnmanaged':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':'Skip'},'sendUnmanaged':{'type':Sequelize['STRING'],'defaultValue':'Send'},'enableCustomerAttachment':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x6dd9f5('0x16')]},'showAgentAvatar':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'timezone':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0x6dd9f5('0x16')],'defaultValue':function(){const _0x239fb2=_0x6dd9f5;return _0x239fb2('0x12');}},'notificationSound':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x22')},'waitForTheAssignedAgent':{'type':Sequelize[_0x6dd9f5('0x29')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0x2a')},'verticalAlignment':{'type':Sequelize['INTEGER'],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':_0x6dd9f5('0xe')},'defaultTitle':{'type':Sequelize[_0x6dd9f5('0x1a')]},'customerAvatar':{'type':Sequelize[_0x6dd9f5('0x16')]},'showCustomerAvatar':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x6dd9f5('0x29')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x6dd9f5('0x1a')],'allowNull':![],'defaultValue':_0x6dd9f5('0xd'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x6dd9f5('0x29')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize['STRING'],'defaultValue':_0x6dd9f5('0x2e')},'systemAvatar':{'type':Sequelize[_0x6dd9f5('0x16')]},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0x6dd9f5('0x6')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x1de964){const _0x52eae5=_0x6dd9f5;if(!_0x1de964)this['setDataValue'](_0x52eae5('0x9'),null);this['setDataValue'](_0x52eae5('0x5'),_0x1de964);}},'vidaooEscalation':{'type':Sequelize[_0x6dd9f5('0x1f')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize[_0x6dd9f5('0x1a')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.controller.js b/server/api/chatWebsite/chatWebsite.controller.js index 9551222..34117dc 100644 --- a/server/api/chatWebsite/chatWebsite.controller.js +++ b/server/api/chatWebsite/chatWebsite.controller.js @@ -1 +1 @@ -const a111_0x5d9f=['limit','increment','inspect','status','join','notify','mapKeyOffline','getDispositions','map','sitepic','findOrCreate','service','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','fieldName','ChatWebsite,\x20%s,\x20%s,\x20%s','model','getAgents','ejs','query','server/files/images/avatars/system_avatar.png','timezone','chat','CompanyId','x-forwarded-for','removeDispositions','applications','name','customerAvatar','offlineMessageSubject','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','ChatWebsiteId','systemAvatar','host','getProactiveActions','startRouting','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../config/logger','alignment','threadId','addLogo','ids','Contacts','cf-connecting-ip','version','json','interval','createdAt','where','Tags','CmList','headers','readFileSync','unknown','created','vendor','false','remoteAddress','true','contact','format','./chatWebsite.socket','internal','path','../../rediscache','lastName','messageId','merge','chatLicenseExceeded','filters','client','querystring','lodash','verticalAlignment','Sequelize','tag','remote','../../components/parsers/qs','AttachmentId','color','addCustomerAvatar','request','getOfflineMessages','length','MailServerOut','server/files/chat/iframe.js','CannedAnswer','include','server/files/images/avatars/','Applications','Start','ChatProactiveAction','attributes','findAll','send','root','customerIp','items','browser','order','filename','like','intersection','x-real-ip','get','iftime\x20%s,%s','ChatApplication','jayson/promise','*,*,*,*','filter','externalUrl','server/files/images/avatars/default_avatar.png','difference','virtual','chatProactiveAction','user-agent-parser','getCustomerAvatar','server/files/images/logos/','priority','user','addAgents','%s\x20%s','addDisposition','x-real-port','catch','forcedOwnership','body','unmanaged','ChatInteraction','render','isNil','sendStatus','getLicense','port','keys','authentication','Tag','then','sequelize','Interval','mandatoryDispositionPause','key','debug','destroy','info','DESC','server/files/templates/chatOfflineMessage.ejs','referer','ValidationError','ChatWebsites','user-agent','textColor','ListId','type','request\x20sent','body\x20is\x20mandatory\x20and\x20not\x20empty','forwardOfflineAddress','ChatWebsite,\x20%s,\x20%s','describe','file','MailAccount','includes','List','options','onlineForm','Disposition','setUA','create','device','UserProfileSection','addApplications','Owner','utf8','indexOf','update','omit','../../config/license/util','push','interaction','server/files/images/avatars/customer_avatar.png','includeAll','getSystemAvatar','from\x20is\x20mandatory','http','bulkCreate','getApplications','agent','defaults','waitForTheAssignedAgent','rows','addInteraction','getResult','getAnswers','ONLINE','account','stringify','findOne','userChatWebsite:remove','stack','addProactiveActions','ChatMessage','from','Smtp','removeAgents','result','getAvatar','fields','ChatWebsite','agentAvatar','getLogo','addSystemAvatar','all','mapKey','error','addAvatar','nolimit','server/files/images/logos/default_logo.svg','secure','License','rawAttributes','some','end','EventManager','undefined','sort','message','fromKey','findAndCountAll','ChatOfflineMessage','params','No\x20timezone','CmContact','count','download','offlineForm','Intervals','User','readdirSync','Pause','auth','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','pick','../../config/environment','offset','getSnippet','Contact','OFFLINE','emit','../../mysqldb','snippets','Unable\x20to\x20retrieve\x20the\x20current\x20user','updatedAt','replace','existsSync','UserId','register','removeAnswers','UserProfileResource'];(function(_0x4fc216,_0x5d9fcf){const _0x52d1fd=function(_0x5df18f){while(--_0x5df18f){_0x4fc216['push'](_0x4fc216['shift']());}};_0x52d1fd(++_0x5d9fcf);}(a111_0x5d9f,0x102));const a111_0x52d1=function(_0x4fc216,_0x5d9fcf){_0x4fc216=_0x4fc216-0x0;let _0x52d1fd=a111_0x5d9f[_0x4fc216];return _0x52d1fd;};const _0x488239=a111_0x52d1;'use strict';const Mustache=require('mustache'),util=require('util'),path=require(_0x488239('0x3d')),ejs=require(_0x488239('0x10')),fs=require('fs'),_=require(_0x488239('0x46')),querystring=require(_0x488239('0x45')),qs=require(_0x488239('0x4b')),logger=require(_0x488239('0x23'))('api'),config=require(_0x488239('0xf0')),db=require(_0x488239('0xf6'))['db'],{Op}=require(_0x488239('0x88')),{getSocket}=require(_0x488239('0x3e')),socket=getSocket();require(_0x488239('0x3b'))[_0x488239('0xfd')](socket);const jayson=require(_0x488239('0x69')),client=jayson[_0x488239('0x44')]['http']({'port':0x232c}),client9002=jayson[_0x488239('0x44')][_0x488239('0xb5')]({'port':0x232a}),client9003=jayson['client'][_0x488239('0xb5')]({'port':0x232b});function respondWithRpcPromise(_0x5df18f,_0x3921e0,_0x32030c,_0x571ab9){return new Promise(function(_0x329677,_0x1eb7df){const _0x2f000c=a111_0x52d1,_0x21f9a5=_0x571ab9||client;return _0x21f9a5[_0x2f000c('0x4f')](_0x5df18f,_0x32030c)['then'](function(_0x38003a){const _0x28fc42=_0x2f000c;logger[_0x28fc42('0x8e')]('ChatWebsite,\x20%s,\x20%s',_0x3921e0,_0x28fc42('0x98')),logger[_0x28fc42('0x8c')](_0x28fc42('0xd'),_0x3921e0,_0x28fc42('0x98'),JSON[_0x28fc42('0xc1')](_0x38003a));if(_0x38003a[_0x28fc42('0xd3')]){if(_0x38003a[_0x28fc42('0xd3')]['code']===0x1f4)return logger[_0x28fc42('0xd3')](_0x28fc42('0x9b'),_0x3921e0,_0x38003a[_0x28fc42('0xd3')]['message']),_0x1eb7df(_0x38003a['error'][_0x28fc42('0xdf')]);return logger[_0x28fc42('0xd3')](_0x28fc42('0x9b'),_0x3921e0,_0x38003a[_0x28fc42('0xd3')][_0x28fc42('0xdf')]),_0x329677(_0x38003a[_0x28fc42('0xd3')][_0x28fc42('0xdf')]);}else logger[_0x28fc42('0x8e')]('ChatWebsite,\x20%s,\x20%s',_0x3921e0,_0x28fc42('0x98')),_0x329677(_0x38003a[_0x28fc42('0xca')]['message']);})['catch'](function(_0x3ea532){const _0x1767b2=_0x2f000c;logger[_0x1767b2('0xd3')](_0x1767b2('0x9b'),_0x3921e0,_0x3ea532),_0x1eb7df(_0x3ea532);});});}function respondWithStatusCode(_0x2d86ea,_0x3c5604){return _0x3c5604=_0x3c5604||0xcc,function(_0x457cad){const _0x24fb2a=a111_0x52d1;if(_0x457cad)return _0x2d86ea['sendStatus'](_0x3c5604);return _0x2d86ea['status'](_0x3c5604)[_0x24fb2a('0xdb')]();};}function respondWithResult(_0x1a57fb,_0x4d417e){return _0x4d417e=_0x4d417e||0xc8,function(_0x548458){const _0x300014=a111_0x52d1;if(_0x548458)return _0x1a57fb[_0x300014('0x2')](_0x4d417e)[_0x300014('0x2b')](_0x548458);};}function respondWithFilteredResult(_0xada52a,_0x377ab3){return function(_0xba8a51){const _0x24598c=a111_0x52d1;if(_0xba8a51){const _0x5285fa=_0xba8a51[_0x24598c('0xe6')],_0xac9c17=_0x377ab3[_0x24598c('0xf1')];let _0x457a0b=_0x377ab3[_0x24598c('0xf1')]+_0x377ab3[_0x24598c('0x100')],_0x160e36;return _0x457a0b>=_0x5285fa?(_0x457a0b=_0x5285fa,_0x160e36=0xc8):_0x160e36=0xce,_0xada52a[_0x24598c('0x2')](_0x160e36),_0xada52a['set']('Content-Range',_0xac9c17+'-'+_0x457a0b+'/'+_0x5285fa)[_0x24598c('0x2b')](_0xba8a51);}return null;};}function saveUpdates(_0x2c397f){return function(_0x4dfb33){const _0x1e0bb7=a111_0x52d1;if(_0x4dfb33)return _0x4dfb33[_0x1e0bb7('0xac')](_0x2c397f)[_0x1e0bb7('0x87')](function(_0x4a8986){return _0x4a8986;});return null;};}function removeEntity(_0xd7eeff){return function(_0x1dc635){const _0x216bd6=a111_0x52d1;if(_0x1dc635)return _0x1dc635[_0x216bd6('0x8d')]()[_0x216bd6('0x87')](function(){const _0xee4064=_0x216bd6,_0x482618=_0x1dc635[_0xee4064('0x66')]({'plain':!![]}),_0x59590b=_0xee4064('0x93');return db['UserProfileResource'][_0xee4064('0x8d')]({'where':{'type':_0x59590b,'resourceId':_0x482618['id']}})[_0xee4064('0x87')](function(){return _0x1dc635;});})[_0x216bd6('0x87')](function(){const _0x587689=_0x216bd6;_0xd7eeff['status'](0xcc)[_0x587689('0xdb')]();});};}function handleEntityNotFound(_0xe525f){return function(_0xedbaf9){const _0x31f257=a111_0x52d1;return!_0xedbaf9&&_0xe525f[_0x31f257('0x81')](0x194),_0xedbaf9;};}function handleError(_0x1f4b7e,_0x4fd50d){return _0x4fd50d=_0x4fd50d||0x1f4,function(_0x43eaef){const _0x3a24d2=a111_0x52d1;logger[_0x3a24d2('0xd3')](_0x43eaef[_0x3a24d2('0xc4')]),_0x43eaef[_0x3a24d2('0x19')]&&delete _0x43eaef[_0x3a24d2('0x19')],_0x1f4b7e[_0x3a24d2('0x2')](_0x4fd50d)[_0x3a24d2('0x5c')](_0x43eaef);};}exports['index']=function(_0x34d5e5,_0x547799){const _0x5a098a=_0x488239;let _0x8699f5={'include':[{'model':db[_0x5a098a('0xec')],'as':_0x5a098a('0x8a')}]};const _0x1c71e7={},_0xe3e5ec={'count':0x0,'rows':[]},_0x2500c3=_[_0x5a098a('0x7')](db[_0x5a098a('0xcd')][_0x5a098a('0xd9')],function(_0x274f03){const _0x4cd62c=_0x5a098a;return{'name':_0x274f03[_0x4cd62c('0xc')],'type':_0x274f03['type'][_0x4cd62c('0x8b')]};});_0x1c71e7[_0x5a098a('0xe')]=_[_0x5a098a('0x7')](_0x2500c3,_0x5a098a('0x19')),_0x1c71e7['query']=_[_0x5a098a('0x84')](_0x34d5e5['query']),_0x1c71e7[_0x5a098a('0x43')]=_[_0x5a098a('0x64')](_0x1c71e7[_0x5a098a('0xe')],_0x1c71e7[_0x5a098a('0x11')]),_0x8699f5[_0x5a098a('0x5a')]=_[_0x5a098a('0x64')](_0x1c71e7[_0x5a098a('0xe')],qs['fields'](_0x34d5e5[_0x5a098a('0x11')][_0x5a098a('0xcc')])),_0x8699f5[_0x5a098a('0x5a')]=_0x8699f5[_0x5a098a('0x5a')][_0x5a098a('0x51')]?_0x8699f5[_0x5a098a('0x5a')]:_0x1c71e7[_0x5a098a('0xe')];typeof _0x34d5e5[_0x5a098a('0x11')][_0x5a098a('0xd5')]===_0x5a098a('0xdd')&&(_0x8699f5[_0x5a098a('0x100')]=qs[_0x5a098a('0x100')](_0x34d5e5[_0x5a098a('0x11')][_0x5a098a('0x100')]),_0x8699f5[_0x5a098a('0xf1')]=qs['offset'](_0x34d5e5[_0x5a098a('0x11')][_0x5a098a('0xf1')]));_0x8699f5[_0x5a098a('0x61')]=qs[_0x5a098a('0xde')](_0x34d5e5['query']['sort']),_0x8699f5['where']=qs[_0x5a098a('0x43')](_['pick'](_0x34d5e5[_0x5a098a('0x11')],_0x1c71e7[_0x5a098a('0x43')]),_0x2500c3);_0x34d5e5['query']['filter']&&(_0x8699f5['where']=_[_0x5a098a('0x41')](_0x8699f5[_0x5a098a('0x2e')],{[Op['or']]:_[_0x5a098a('0x7')](_0x2500c3,function(_0x2d4ac1){const _0x3a34b5=_0x5a098a;if(_0x2d4ac1[_0x3a34b5('0x97')]!=='VIRTUAL'){const _0x14a343={};return _0x14a343[_0x2d4ac1[_0x3a34b5('0x19')]]={[Op[_0x3a34b5('0x63')]]:'%'+_0x34d5e5['query'][_0x3a34b5('0x6b')]+'%'},_0x14a343;}})}));_0x8699f5=_[_0x5a098a('0x41')]({},_0x8699f5,_0x34d5e5[_0x5a098a('0xa1')]);const _0x3d5f9d={'where':_0x8699f5[_0x5a098a('0x2e')]};return db[_0x5a098a('0xcd')][_0x5a098a('0xe6')](_0x3d5f9d)[_0x5a098a('0x87')](function(_0x326c18){const _0x363f31=_0x5a098a;return _0xe3e5ec['count']=_0x326c18,_0x34d5e5['query'][_0x363f31('0xb2')]&&(_0x8699f5[_0x363f31('0x55')]=[{'all':!![]}]),db[_0x363f31('0xcd')]['findAll'](_0x8699f5);})[_0x5a098a('0x87')](function(_0x8a6d5e){const _0x21ac27=_0x5a098a;return _0xe3e5ec[_0x21ac27('0xbb')]=_0x8a6d5e,_0xe3e5ec;})['then'](respondWithFilteredResult(_0x547799,_0x8699f5))['catch'](handleError(_0x547799,null));},exports['show']=function(_0x45caa2,_0x2a1de4){const _0x49452f=_0x488239;let _0x2bb939={'raw':![],'where':{'id':_0x45caa2[_0x49452f('0xe3')]['id']},'include':[{'model':db[_0x49452f('0xec')],'as':_0x49452f('0x8a')}]};const _0x3b4bd7={};return _0x3b4bd7[_0x49452f('0xe')]=_[_0x49452f('0x84')](db[_0x49452f('0xcd')][_0x49452f('0xd9')]),_0x3b4bd7[_0x49452f('0x11')]=_['keys'](_0x45caa2['query']),_0x3b4bd7[_0x49452f('0x43')]=_[_0x49452f('0x64')](_0x3b4bd7[_0x49452f('0xe')],_0x3b4bd7['query']),_0x2bb939[_0x49452f('0x5a')]=_[_0x49452f('0x64')](_0x3b4bd7[_0x49452f('0xe')],qs[_0x49452f('0xcc')](_0x45caa2[_0x49452f('0x11')][_0x49452f('0xcc')])),_0x2bb939['attributes']=_0x2bb939[_0x49452f('0x5a')][_0x49452f('0x51')]?_0x2bb939['attributes']:_0x3b4bd7[_0x49452f('0xe')],_0x45caa2[_0x49452f('0x11')][_0x49452f('0xb2')]&&(_0x2bb939[_0x49452f('0x55')]=[{'all':!![]}]),_0x2bb939=_['merge']({},_0x2bb939,_0x45caa2['options']),db['ChatWebsite']['findOne'](_0x2bb939)['then'](handleEntityNotFound(_0x2a1de4,null))[_0x49452f('0x87')](respondWithResult(_0x2a1de4,null))[_0x49452f('0x7a')](handleError(_0x2a1de4,null));},exports['create']=function(_0x9694e8,_0x25c534){const _0x381268=_0x488239;return db['ChatWebsite'][_0x381268('0xa5')](_0x9694e8[_0x381268('0x7c')],{})['then'](function(_0x2b0a09){const _0x582d9a=_0x381268,_0x559f7b=_0x9694e8[_0x582d9a('0x75')]['get']({'plain':!![]});if(!_0x559f7b)throw new Error(_0x582d9a('0xf8'));if(_0x559f7b['role']===_0x582d9a('0x75')){const _0x1db41a=_0x2b0a09[_0x582d9a('0x66')]({'plain':!![]}),_0x18cdd6=_0x582d9a('0x93');return db[_0x582d9a('0xa7')][_0x582d9a('0xc2')]({'where':{'name':_0x18cdd6,'userProfileId':_0x559f7b['userProfileId']},'raw':!![]})[_0x582d9a('0x87')](function(_0x29ee5b){const _0x3e1784=_0x582d9a;return _0x29ee5b&&_0x29ee5b['autoAssociation']===0x0?db[_0x3e1784('0xff')][_0x3e1784('0xa5')]({'name':_0x1db41a[_0x3e1784('0x19')],'resourceId':_0x1db41a['id'],'type':_0x29ee5b['name'],'sectionId':_0x29ee5b['id']},{})[_0x3e1784('0x87')](function(){return _0x2b0a09;}):_0x2b0a09;})['catch'](function(_0x2d615d){const _0x18da27=_0x582d9a;logger[_0x18da27('0xd3')](_0x18da27('0x22'),_0x2d615d);throw _0x2d615d;});}return _0x2b0a09;})[_0x381268('0x87')](respondWithResult(_0x25c534,0xc9))[_0x381268('0x7a')](handleError(_0x25c534,null));},exports[_0x488239('0xac')]=function(_0x5f03fa,_0x3a4f58){const _0x5ae081=_0x488239;return _0x5f03fa[_0x5ae081('0x7c')]['id']&&delete _0x5f03fa[_0x5ae081('0x7c')]['id'],db['ChatWebsite'][_0x5ae081('0xc2')]({'where':{'id':_0x5f03fa[_0x5ae081('0xe3')]['id']},'include':[{'model':db[_0x5ae081('0xec')],'as':_0x5ae081('0x8a')}]})[_0x5ae081('0x87')](handleEntityNotFound(_0x3a4f58,null))[_0x5ae081('0x87')](saveUpdates(_0x5f03fa[_0x5ae081('0x7c')],null))[_0x5ae081('0x87')](respondWithResult(_0x3a4f58,null))[_0x5ae081('0x7a')](handleError(_0x3a4f58,null));},exports[_0x488239('0x8d')]=function(_0x4a0e5b,_0x11460b){const _0x105305=_0x488239;return db['ChatWebsite'][_0x105305('0xc2')]({'where':{'id':_0x4a0e5b['params']['id']}})['then'](handleEntityNotFound(_0x11460b,null))['then'](removeEntity(_0x11460b,null))['catch'](handleError(_0x11460b,null));},exports[_0x488239('0x9c')]=function(_0x2e8354,_0x4c6838){const _0x503e76=_0x488239;return db[_0x503e76('0xcd')][_0x503e76('0x9c')]()[_0x503e76('0x87')](respondWithResult(_0x4c6838,null))[_0x503e76('0x7a')](handleError(_0x4c6838,null));},exports[_0x488239('0x78')]=function(_0x35ccb9,_0x39c24b){const _0x1b7050=_0x488239;return _0x35ccb9[_0x1b7050('0x7c')]['id']&&delete _0x35ccb9[_0x1b7050('0x7c')]['id'],db[_0x1b7050('0xcd')][_0x1b7050('0xc2')]({'where':{'id':_0x35ccb9[_0x1b7050('0xe3')]['id']}})[_0x1b7050('0x87')](handleEntityNotFound(_0x39c24b,null))[_0x1b7050('0x87')](function(_0x51037b){const _0xa54b8b=_0x1b7050;if(_0x51037b)return _0x35ccb9[_0xa54b8b('0x7c')][_0xa54b8b('0x1d')]=_0x51037b['id'],db['Disposition'][_0xa54b8b('0xa5')](_0x35ccb9[_0xa54b8b('0x7c')]);})[_0x1b7050('0x87')](respondWithResult(_0x39c24b,null))['catch'](handleError(_0x39c24b,null));},exports[_0x488239('0x6')]=function(_0x1d49b4,_0x1176fe){const _0xb8743a=_0x488239;let _0x1d3619={'raw':![],'where':{}};const _0xd62b47={},_0x4eac68={'count':0x0,'rows':[]};return db[_0xb8743a('0xcd')][_0xb8743a('0xc2')]({'where':{'id':_0x1d49b4[_0xb8743a('0xe3')]['id']}})['then'](handleEntityNotFound(_0x1176fe,null))[_0xb8743a('0x87')](function(_0x44273d){const _0x3d62c5=_0xb8743a;if(_0x44273d)return _0xd62b47[_0x3d62c5('0xe')]=_['keys'](db[_0x3d62c5('0xa3')][_0x3d62c5('0xd9')]),_0xd62b47[_0x3d62c5('0x11')]=_[_0x3d62c5('0x84')](_0x1d49b4['query']),_0xd62b47[_0x3d62c5('0x43')]=_[_0x3d62c5('0x64')](_0xd62b47[_0x3d62c5('0xe')],_0xd62b47[_0x3d62c5('0x11')]),_0x1d3619[_0x3d62c5('0x5a')]=_[_0x3d62c5('0x64')](_0xd62b47[_0x3d62c5('0xe')],qs[_0x3d62c5('0xcc')](_0x1d49b4[_0x3d62c5('0x11')][_0x3d62c5('0xcc')])),_0x1d3619[_0x3d62c5('0x5a')]=_0x1d3619['attributes'][_0x3d62c5('0x51')]?_0x1d3619[_0x3d62c5('0x5a')]:_0xd62b47[_0x3d62c5('0xe')],typeof _0x1d49b4['query'][_0x3d62c5('0xd5')]==='undefined'&&(_0x1d3619[_0x3d62c5('0x100')]=qs[_0x3d62c5('0x100')](_0x1d49b4[_0x3d62c5('0x11')][_0x3d62c5('0x100')]),_0x1d3619[_0x3d62c5('0xf1')]=qs[_0x3d62c5('0xf1')](_0x1d49b4[_0x3d62c5('0x11')][_0x3d62c5('0xf1')])),_0x1d3619[_0x3d62c5('0x61')]=qs['sort'](_0x1d49b4['query'][_0x3d62c5('0xde')]),_0x1d3619[_0x3d62c5('0x2e')]=qs['filters'](_[_0x3d62c5('0xef')](_0x1d49b4[_0x3d62c5('0x11')],_0xd62b47[_0x3d62c5('0x43')])),_0x1d3619[_0x3d62c5('0x2e')][_0x3d62c5('0x1d')]=_0x44273d['id'],_0x1d49b4[_0x3d62c5('0x11')][_0x3d62c5('0x6b')]&&(_0x1d3619[_0x3d62c5('0x2e')]=_[_0x3d62c5('0x41')](_0x1d3619[_0x3d62c5('0x2e')],{[Op['or']]:_[_0x3d62c5('0x7')](_0x1d3619[_0x3d62c5('0x5a')],function(_0x127497){const _0x5d9759=_0x3d62c5,_0x15d78d={};return _0x15d78d[_0x127497]={[Op[_0x5d9759('0x63')]]:'%'+_0x1d49b4[_0x5d9759('0x11')][_0x5d9759('0x6b')]+'%'},_0x15d78d;})})),_0x1d3619=_[_0x3d62c5('0x41')]({},_0x1d3619,_0x1d49b4[_0x3d62c5('0xa1')]),db[_0x3d62c5('0xa3')][_0x3d62c5('0xe6')]({'where':_0x1d3619[_0x3d62c5('0x2e')]})['then'](function(_0x499011){const _0x9127a5=_0x3d62c5;return _0x4eac68['count']=_0x499011,_0x1d49b4[_0x9127a5('0x11')][_0x9127a5('0xb2')]&&(_0x1d3619[_0x9127a5('0x55')]=[{'all':!![]}]),db['Disposition']['findAll'](_0x1d3619);})[_0x3d62c5('0x87')](function(_0x288163){const _0x494d00=_0x3d62c5;return _0x4eac68[_0x494d00('0xbb')]=_0x288163,_0x4eac68;});})[_0xb8743a('0x87')](respondWithFilteredResult(_0x1176fe,_0x1d3619))['catch'](handleError(_0x1176fe,null));},exports[_0x488239('0x17')]=function(_0x76a767,_0x1bc325){const _0x3d0c44=_0x488239;return db[_0x3d0c44('0xcd')]['findOne']({'where':{'id':_0x76a767[_0x3d0c44('0xe3')]['id']}})[_0x3d0c44('0x87')](handleEntityNotFound(_0x1bc325,null))[_0x3d0c44('0x87')](function(_0x2aee2e){const _0x5f460c=_0x3d0c44;if(_0x2aee2e)return _0x2aee2e[_0x5f460c('0x17')](_0x76a767[_0x5f460c('0x11')][_0x5f460c('0x27')]);})[_0x3d0c44('0x87')](respondWithStatusCode(_0x1bc325,null))['catch'](handleError(_0x1bc325,null));},exports['addAnswer']=function(_0x3af056,_0x2a30a4){const _0x3ce15c=_0x488239;return _0x3af056[_0x3ce15c('0x7c')]['id']&&delete _0x3af056[_0x3ce15c('0x7c')]['id'],db[_0x3ce15c('0xcd')][_0x3ce15c('0xc2')]({'where':{'id':_0x3af056['params']['id']}})['then'](handleEntityNotFound(_0x2a30a4,null))[_0x3ce15c('0x87')](function(_0x416b82){const _0x3ed0ff=_0x3ce15c;if(_0x416b82)return _0x3af056['body']['ChatWebsiteId']=_0x416b82['id'],db[_0x3ed0ff('0x54')][_0x3ed0ff('0xa5')](_0x3af056[_0x3ed0ff('0x7c')]);})[_0x3ce15c('0x87')](respondWithResult(_0x2a30a4,null))[_0x3ce15c('0x7a')](handleError(_0x2a30a4,null));},exports[_0x488239('0xbe')]=function(_0x315c46,_0x6d7d15){const _0xacf1d2=_0x488239;let _0x666866={'raw':![],'where':{}};const _0x3135a1={},_0x19d30b={'count':0x0,'rows':[]};return db['ChatWebsite']['findOne']({'where':{'id':_0x315c46[_0xacf1d2('0xe3')]['id']}})[_0xacf1d2('0x87')](handleEntityNotFound(_0x6d7d15,null))[_0xacf1d2('0x87')](function(_0x21c6ee){const _0x2cee80=_0xacf1d2;if(_0x21c6ee)return _0x3135a1[_0x2cee80('0xe')]=_[_0x2cee80('0x84')](db['CannedAnswer']['rawAttributes']),_0x3135a1[_0x2cee80('0x11')]=_['keys'](_0x315c46[_0x2cee80('0x11')]),_0x3135a1[_0x2cee80('0x43')]=_[_0x2cee80('0x64')](_0x3135a1[_0x2cee80('0xe')],_0x3135a1[_0x2cee80('0x11')]),_0x666866[_0x2cee80('0x5a')]=_[_0x2cee80('0x64')](_0x3135a1['model'],qs[_0x2cee80('0xcc')](_0x315c46[_0x2cee80('0x11')]['fields'])),_0x666866[_0x2cee80('0x5a')]=_0x666866[_0x2cee80('0x5a')][_0x2cee80('0x51')]?_0x666866[_0x2cee80('0x5a')]:_0x3135a1[_0x2cee80('0xe')],typeof _0x315c46[_0x2cee80('0x11')]['nolimit']===_0x2cee80('0xdd')&&(_0x666866[_0x2cee80('0x100')]=qs[_0x2cee80('0x100')](_0x315c46[_0x2cee80('0x11')]['limit']),_0x666866['offset']=qs['offset'](_0x315c46[_0x2cee80('0x11')][_0x2cee80('0xf1')])),_0x666866['order']=qs[_0x2cee80('0xde')](_0x315c46[_0x2cee80('0x11')][_0x2cee80('0xde')]),_0x666866[_0x2cee80('0x2e')]=qs[_0x2cee80('0x43')](_[_0x2cee80('0xef')](_0x315c46[_0x2cee80('0x11')],_0x3135a1[_0x2cee80('0x43')])),_0x666866['where']['ChatWebsiteId']=_0x21c6ee['id'],_0x315c46['query'][_0x2cee80('0x6b')]&&(_0x666866[_0x2cee80('0x2e')]=_[_0x2cee80('0x41')](_0x666866['where'],{[Op['or']]:_[_0x2cee80('0x7')](_0x666866[_0x2cee80('0x5a')],function(_0x4d0e30){const _0x40c654=_0x2cee80,_0x4ca736={};return _0x4ca736[_0x4d0e30]={[Op[_0x40c654('0x63')]]:'%'+_0x315c46['query'][_0x40c654('0x6b')]+'%'},_0x4ca736;})})),_0x666866=_[_0x2cee80('0x41')]({},_0x666866,_0x315c46[_0x2cee80('0xa1')]),db[_0x2cee80('0x54')][_0x2cee80('0xe6')]({'where':_0x666866[_0x2cee80('0x2e')]})['then'](function(_0x20ede5){const _0x5243c3=_0x2cee80;return _0x19d30b[_0x5243c3('0xe6')]=_0x20ede5,_0x315c46['query'][_0x5243c3('0xb2')]&&(_0x666866[_0x5243c3('0x55')]=[{'all':!![]}]),db[_0x5243c3('0x54')][_0x5243c3('0x5b')](_0x666866);})[_0x2cee80('0x87')](function(_0x7308d1){const _0x2a7d2f=_0x2cee80;return _0x19d30b[_0x2a7d2f('0xbb')]=_0x7308d1,_0x19d30b;});})['then'](respondWithFilteredResult(_0x6d7d15,_0x666866))[_0xacf1d2('0x7a')](handleError(_0x6d7d15,null));},exports['removeAnswers']=function(_0x24ab0d,_0xe84f02){const _0x2a2092=_0x488239;return db[_0x2a2092('0xcd')][_0x2a2092('0xc2')]({'where':{'id':_0x24ab0d[_0x2a2092('0xe3')]['id']}})['then'](handleEntityNotFound(_0xe84f02,null))[_0x2a2092('0x87')](function(_0x3bfa75){const _0x51ef0d=_0x2a2092;if(_0x3bfa75)return _0x3bfa75[_0x51ef0d('0xfe')](_0x24ab0d[_0x51ef0d('0x11')][_0x51ef0d('0x27')]);})[_0x2a2092('0x87')](respondWithStatusCode(_0xe84f02,null))['catch'](handleError(_0xe84f02,null));},exports[_0x488239('0x26')]=function(_0x1c07e9,_0x4455bf){const _0x2c062d=_0x488239;return _0x1c07e9['body'][_0x2c062d('0x8')]=_0x1c07e9[_0x2c062d('0x9d')][_0x2c062d('0x62')],db['ChatWebsite'][_0x2c062d('0xc2')]({'where':{'id':_0x1c07e9[_0x2c062d('0xe3')]['id']}})[_0x2c062d('0x87')](handleEntityNotFound(_0x4455bf,null))[_0x2c062d('0x87')](saveUpdates(_0x1c07e9[_0x2c062d('0x7c')],null))[_0x2c062d('0x87')](respondWithResult(_0x4455bf,null))['catch'](handleError(_0x4455bf,null));},exports[_0x488239('0xd4')]=function(_0x54447f,_0x5eea78){const _0x223c31=_0x488239;return _0x54447f['body']['agentAvatar']=_0x54447f[_0x223c31('0x9d')][_0x223c31('0x62')],db[_0x223c31('0xcd')][_0x223c31('0xc2')]({'where':{'id':_0x54447f['params']['id']}})['then'](handleEntityNotFound(_0x5eea78,null))[_0x223c31('0x87')](saveUpdates(_0x54447f[_0x223c31('0x7c')],null))['then'](respondWithResult(_0x5eea78,null))['catch'](handleError(_0x5eea78,null));},exports[_0x488239('0x4e')]=function(_0x117a55,_0x4a0e5a){const _0x43facf=_0x488239;return _0x117a55[_0x43facf('0x7c')][_0x43facf('0x1a')]=_0x117a55['file'][_0x43facf('0x62')],db[_0x43facf('0xcd')][_0x43facf('0xc2')]({'where':{'id':_0x117a55[_0x43facf('0xe3')]['id']}})['then'](handleEntityNotFound(_0x4a0e5a,null))[_0x43facf('0x87')](saveUpdates(_0x117a55[_0x43facf('0x7c')],null))[_0x43facf('0x87')](respondWithResult(_0x4a0e5a,null))['catch'](handleError(_0x4a0e5a,null));},exports[_0x488239('0xd0')]=function(_0x4025bd,_0x521f31){const _0x3c6c1d=_0x488239;return _0x4025bd[_0x3c6c1d('0x7c')][_0x3c6c1d('0x1e')]=_0x4025bd[_0x3c6c1d('0x9d')]['filename'],db['ChatWebsite'][_0x3c6c1d('0xc2')]({'where':{'id':_0x4025bd['params']['id']}})[_0x3c6c1d('0x87')](handleEntityNotFound(_0x521f31,null))[_0x3c6c1d('0x87')](saveUpdates(_0x4025bd[_0x3c6c1d('0x7c')],null))[_0x3c6c1d('0x87')](respondWithResult(_0x521f31,null))['catch'](handleError(_0x521f31,null));},exports[_0x488239('0xcf')]=function(_0x53d340,_0x70c116){const _0x577297=_0x488239;let _0x208a78=path[_0x577297('0x3')](config[_0x577297('0x5d')],_0x577297('0xd6'));const _0x569f4e={'where':{'id':_0x53d340['params']['id']},'attributes':['id',_0x577297('0x8')],'raw':!![]};let _0x2fd683=![];return require(_0x577297('0xae'))[_0x577297('0x82')]()[_0x577297('0x87')](function(_0x2f1fc4){_0x2f1fc4&&(_0x2fd683=_0x2f1fc4['custom']);})[_0x577297('0x87')](function(){const _0x43812f=_0x577297;return db[_0x43812f('0xcd')]['findOne'](_0x569f4e);})[_0x577297('0x87')](handleEntityNotFound(_0x70c116,null))[_0x577297('0x87')](function(_0x357235){const _0x1b8085=_0x577297;if(_0x357235)return!_[_0x1b8085('0x80')](_0x357235[_0x1b8085('0x8')])&&(fs['existsSync'](path[_0x1b8085('0x3')](config[_0x1b8085('0x5d')],_0x1b8085('0x73'),_0x357235[_0x1b8085('0x8')]))&&_0x2fd683&&(_0x208a78=path[_0x1b8085('0x3')](config[_0x1b8085('0x5d')],_0x1b8085('0x73'),_0x357235[_0x1b8085('0x8')]))),_0x70c116['download'](_0x208a78);})[_0x577297('0x7a')](handleError(_0x70c116,null));},exports[_0x488239('0xcb')]=function(_0x1d818a,_0x2f7b8e){const _0xc01fcb=_0x488239;let _0x3a2cbe=path[_0xc01fcb('0x3')](config[_0xc01fcb('0x5d')],_0xc01fcb('0x6d'));const _0x11977f={'where':{'id':_0x1d818a[_0xc01fcb('0xe3')]['id']},'attributes':['id',_0xc01fcb('0xce')],'raw':!![]};return db[_0xc01fcb('0xcd')]['findOne'](_0x11977f)['then'](handleEntityNotFound(_0x2f7b8e,null))[_0xc01fcb('0x87')](function(_0x3bf8ff){const _0x35ebe9=_0xc01fcb;if(_0x3bf8ff)return!_[_0x35ebe9('0x80')](_0x3bf8ff[_0x35ebe9('0xce')])&&(fs[_0x35ebe9('0xfb')](path['join'](config[_0x35ebe9('0x5d')],_0x35ebe9('0x56'),_0x3bf8ff[_0x35ebe9('0xce')]))&&(_0x3a2cbe=path[_0x35ebe9('0x3')](config['root'],_0x35ebe9('0x56'),_0x3bf8ff[_0x35ebe9('0xce')]))),_0x2f7b8e[_0x35ebe9('0xe7')](_0x3a2cbe);})[_0xc01fcb('0x7a')](handleError(_0x2f7b8e,null));},exports[_0x488239('0x72')]=function(_0x27a5fc,_0x2c6b6a){const _0x203504=_0x488239;let _0x4e7f8f=path[_0x203504('0x3')](config[_0x203504('0x5d')],_0x203504('0xb1'));const _0x212778={'where':{'id':_0x27a5fc[_0x203504('0xe3')]['id']},'attributes':['id',_0x203504('0x1a'),'showCustomerAvatar'],'raw':!![]};return db[_0x203504('0xcd')][_0x203504('0xc2')](_0x212778)[_0x203504('0x87')](handleEntityNotFound(_0x2c6b6a,null))[_0x203504('0x87')](function(_0x5b729b){const _0x15ebc9=_0x203504;if(_0x5b729b)return!_[_0x15ebc9('0x80')](_0x5b729b[_0x15ebc9('0x1a')])&&(fs[_0x15ebc9('0xfb')](path[_0x15ebc9('0x3')](config[_0x15ebc9('0x5d')],_0x15ebc9('0x56'),_0x5b729b[_0x15ebc9('0x1a')]))&&_0x5b729b['showCustomerAvatar']&&(_0x4e7f8f=path[_0x15ebc9('0x3')](config['root'],_0x15ebc9('0x56'),_0x5b729b[_0x15ebc9('0x1a')]))),_0x2c6b6a[_0x15ebc9('0xe7')](_0x4e7f8f);})['catch'](handleError(_0x2c6b6a,null));},exports[_0x488239('0xb3')]=function(_0x3d522e,_0x132f7e){const _0x3e733a=_0x488239;let _0x24c592=path[_0x3e733a('0x3')](config[_0x3e733a('0x5d')],_0x3e733a('0x12'));const _0x4107bc={'where':{'id':_0x3d522e[_0x3e733a('0xe3')]['id']},'attributes':['id',_0x3e733a('0x1e')],'raw':!![]};return db[_0x3e733a('0xcd')][_0x3e733a('0xc2')](_0x4107bc)[_0x3e733a('0x87')](handleEntityNotFound(_0x132f7e,null))[_0x3e733a('0x87')](function(_0x1e4062){const _0x5694aa=_0x3e733a;if(_0x1e4062)return!_[_0x5694aa('0x80')](_0x1e4062[_0x5694aa('0x1e')])&&(fs[_0x5694aa('0xfb')](path[_0x5694aa('0x3')](config['root'],_0x5694aa('0x56'),_0x1e4062['systemAvatar']))&&(_0x24c592=path['join'](config[_0x5694aa('0x5d')],_0x5694aa('0x56'),_0x1e4062[_0x5694aa('0x1e')]))),_0x132f7e['download'](_0x24c592);})[_0x3e733a('0x7a')](handleError(_0x132f7e,null));},exports[_0x488239('0x4')]=function(_0x4e3a3d,_0x13f426){const _0x3807bf=_0x488239,_0xb1bc8e=require(_0x3807bf('0x71')),_0x1a499f=new _0xb1bc8e(),_0x55f601=_0x1a499f[_0x3807bf('0xa4')](_0x4e3a3d[_0x3807bf('0x31')][_0x3807bf('0x94')])[_0x3807bf('0xbd')](),_0x36b839={'body':_0x4e3a3d[_0x3807bf('0x7c')],'channel':_0x3807bf('0x14')};let _0x39885c=[],_0x135ae2=[];const _0x49fc03={};let _0x4fb124=![];return db['CmContact'][_0x3807bf('0x9c')]()[_0x3807bf('0x87')](function(_0x39128b){const _0x46812d=_0x3807bf;if(!_0x39128b)throw new db['Sequelize'][(_0x46812d('0x92'))]('no\x20available\x20attributes');_0x39885c=_[_0x46812d('0x6e')](_[_0x46812d('0x84')](_0x39128b),[_0x46812d('0x2d'),_0x46812d('0xf9')]),_0x135ae2=_[_0x46812d('0x6e')](_[_0x46812d('0x84')](_0x39128b),[_0x46812d('0x2d'),_0x46812d('0xf9'),_0x46812d('0x15'),'ListId']);_0x4e3a3d[_0x46812d('0x7c')]['id']&&delete _0x4e3a3d[_0x46812d('0x7c')]['id'];if(_[_0x46812d('0x80')](_0x4e3a3d[_0x46812d('0x7c')]['from']))throw new db[(_0x46812d('0x48'))][(_0x46812d('0x92'))](_0x46812d('0xb4'));if(_['isNil'](_0x4e3a3d[_0x46812d('0x7c')][_0x46812d('0x7c')])||_0x4e3a3d[_0x46812d('0x7c')][_0x46812d('0x7c')]==='')throw new db[(_0x46812d('0x48'))][(_0x46812d('0x92'))](_0x46812d('0x99'));if(_[_0x46812d('0x80')](_0x4e3a3d[_0x46812d('0x7c')]['mapKey']))throw new db[(_0x46812d('0x48'))][(_0x46812d('0x92'))]('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x135ae2);if(!_['includes'](_0x135ae2,_0x4e3a3d[_0x46812d('0x7c')][_0x46812d('0xd2')]))throw new db[(_0x46812d('0x48'))]['ValidationError'](_0x46812d('0xee')+_0x135ae2);_0x49fc03[_0x4e3a3d[_0x46812d('0x7c')][_0x46812d('0xd2')]]=_0x4e3a3d['body']['from'];})['then'](function(){const _0x455505=_0x3807bf;return db[_0x455505('0xcd')][_0x455505('0xc2')]({'where':{'id':_0x4e3a3d[_0x455505('0xe3')]['id']},'include':[{'model':db['CmList'],'as':_0x455505('0xa0'),'include':[{'model':db[_0x455505('0xe5')],'as':_0x455505('0x28'),'where':_0x49fc03,'limit':0x1,'order':[['updatedAt',_0x455505('0x8f')]]}]},{'model':db[_0x455505('0x68')],'as':_0x455505('0x57')}]});})['then'](handleEntityNotFound(_0x13f426,null))[_0x3807bf('0x87')](function(_0x4a88de){const _0x48afaa=_0x3807bf;if(_0x4a88de&&_0x4a88de[_0x48afaa('0xa0')]){_0x36b839['account']=_0x4a88de,_0x36b839[_0x48afaa('0x18')]=_0x4a88de[_0x48afaa('0x57')],_0x36b839['list']=_0x4a88de[_0x48afaa('0xa0')],_0x36b839[_0x48afaa('0x18')]=_['orderBy'](_0x36b839[_0x48afaa('0x18')],[_0x48afaa('0x74')],['asc']);_0x36b839['account'][_0x48afaa('0x57')]&&delete _0x36b839[_0x48afaa('0xc0')][_0x48afaa('0x57')];if(_0x36b839[_0x48afaa('0xc0')][_0x48afaa('0xa0')]&&_0x36b839['account'][_0x48afaa('0xa0')][_0x48afaa('0x28')][_0x48afaa('0x51')])return _0x36b839[_0x48afaa('0xc0')][_0x48afaa('0xa0')][_0x48afaa('0x28')][0x0];const _0x1c80d0=_[_0x48afaa('0xb9')](_0x4e3a3d['body'],{'firstName':_0x4e3a3d[_0x48afaa('0x7c')][_0x48afaa('0xc7')],'ListId':_0x4a88de[_0x48afaa('0x96')]});return _0x1c80d0[_0x4e3a3d[_0x48afaa('0x7c')]['mapKey']]=_0x4e3a3d[_0x48afaa('0x7c')]['from'],db[_0x48afaa('0xe5')][_0x48afaa('0xa5')](_0x1c80d0,{'fields':_0x39885c,'raw':!![]});}})[_0x3807bf('0x87')](handleEntityNotFound(_0x13f426,null))[_0x3807bf('0x87')](function(_0xc45229){const _0xce6f54=_0x3807bf;_0x36b839[_0xce6f54('0x39')]=_0xc45229;let _0x2f2b1e=_0x4e3a3d[_0xce6f54('0x7c')][_0xce6f54('0x5e')];if(_0x4e3a3d[_0xce6f54('0x31')][_0xce6f54('0x29')])_0x2f2b1e=_0x4e3a3d[_0xce6f54('0x31')][_0xce6f54('0x29')];else _0x4e3a3d[_0xce6f54('0x31')][_0xce6f54('0x16')]&&(_0x2f2b1e=_['first'](_0x4e3a3d[_0xce6f54('0x31')]['x-forwarded-for']['split'](',')));if(_0xc45229){const _0x536fc3={'ContactId':_0xc45229['id'],'ChatWebsiteId':_0x4e3a3d[_0xce6f54('0xe3')]['id'],'from':(_0xc45229['firstName']||'')+'\x20'+(_0xc45229[_0xce6f54('0x3f')]||''),'customerIp':_0x2f2b1e,'customerPort':_0x4e3a3d[_0xce6f54('0x31')][_0xce6f54('0x79')]?_0x4e3a3d['headers'][_0xce6f54('0x79')]:null,'referer':_0x4e3a3d[_0xce6f54('0x7c')][_0xce6f54('0x91')],'browserName':_0x55f601['browser']['name']&&_0x55f601[_0xce6f54('0x60')][_0xce6f54('0x2a')]?util[_0xce6f54('0x3a')]('%s\x20%s',_0x55f601[_0xce6f54('0x60')][_0xce6f54('0x19')],_0x55f601[_0xce6f54('0x60')]['version']):_0xce6f54('0x33'),'browserVersion':_0x55f601[_0xce6f54('0x60')][_0xce6f54('0x2a')]||_0xce6f54('0x33'),'osName':util[_0xce6f54('0x3a')](_0xce6f54('0x77'),_0x55f601['os']['name'],_0x55f601['os'][_0xce6f54('0x2a')]),'osVersion':_0x55f601['os']['version'],'deviceModel':_0x55f601[_0xce6f54('0xa6')][_0xce6f54('0xe')]&&_0x55f601[_0xce6f54('0xa6')][_0xce6f54('0x35')]?util[_0xce6f54('0x3a')]('%s\x20%s\x20%s',_0x55f601[_0xce6f54('0xa6')]['model'],_0x55f601[_0xce6f54('0xa6')][_0xce6f54('0x35')],_0x55f601[_0xce6f54('0xa6')][_0xce6f54('0x97')]):null,'deviceVendor':_0x55f601['device'][_0xce6f54('0x35')],'deviceType':_0x55f601['device'][_0xce6f54('0x97')],'formData':JSON['stringify'](_0x4e3a3d['body'])},_0x37fb80={'ChatWebsiteId':_0x4e3a3d[_0xce6f54('0xe3')]['id'],'closed':![]};if(_0x4e3a3d['body'][_0xce6f54('0x25')])return _0x37fb80[_0xce6f54('0x25')]=_0x4e3a3d[_0xce6f54('0x7c')][_0xce6f54('0x25')],db[_0xce6f54('0x7e')][_0xce6f54('0xc2')]({'where':_0x37fb80})[_0xce6f54('0x87')](function(_0x34da48){const _0x142523=_0xce6f54;if(_0x34da48)return[_0x34da48,![]];return _0x536fc3[_0x142523('0x25')]=_0x4e3a3d[_0x142523('0x7c')][_0x142523('0x25')],_0x536fc3[_0x142523('0x6c')]=_0x4e3a3d[_0x142523('0x7c')]['externalUrl'],db[_0x142523('0x7e')][_0x142523('0xa5')](_0x536fc3)[_0x142523('0x87')](function(_0x1142bb){return[_0x1142bb,!![]];});});_0x37fb80['ContactId']=_0xc45229['id'];if(_0x4e3a3d['body']['interaction']&&_0x4e3a3d[_0xce6f54('0x7c')][_0xce6f54('0xb0')]['id'])return _0x37fb80['id']=_0x4e3a3d['body'][_0xce6f54('0xb0')]['id'],db['ChatInteraction'][_0xce6f54('0xc2')]({'where':_0x37fb80})[_0xce6f54('0x87')](function(_0x5367b1){const _0x1d9544=_0xce6f54;if(_0x5367b1)return[_0x5367b1,![]];return db[_0x1d9544('0x7e')][_0x1d9544('0xa5')](_0x536fc3)[_0x1d9544('0x87')](function(_0x27b1ee){return[_0x27b1ee,!![]];});});return db[_0xce6f54('0x7e')]['create'](_0x536fc3)[_0xce6f54('0x87')](function(_0x59ebe0){return[_0x59ebe0,!![]];});}})[_0x3807bf('0x87')](function([_0x1dc402,_0x5ceb87]){const _0x4a6718=_0x3807bf;if(_0x1dc402){_0x4fb124=_0x5ceb87;if(!_0x5ceb87){const _0x4c6ff9={'from':(_0x36b839[_0x4a6718('0x39')]['firstName']||'')+'\x20'+(_0x36b839[_0x4a6718('0x39')][_0x4a6718('0x3f')]||'')};return _0x4e3a3d[_0x4a6718('0x7c')]['threadId']&&_0x4e3a3d[_0x4a6718('0x7c')][_0x4a6718('0x40')]&&_0x4e3a3d[_0x4a6718('0x7c')][_0x4a6718('0x25')]!=_0x4e3a3d['body'][_0x4a6718('0x40')]&&(_0x4c6ff9[_0x4a6718('0x25')]=_0x4e3a3d[_0x4a6718('0x7c')]['messageId']),_0x1dc402['update'](_0x4c6ff9);}else return _0x1dc402;}})[_0x3807bf('0x87')](function(_0x51f265){const _0x2e38bc=_0x3807bf;return _0x36b839[_0x2e38bc('0xb0')]=_0x51f265['get']({'plain':!![]}),_0x36b839[_0x2e38bc('0xb0')]['created']=_0x4fb124,_0x36b839[_0x2e38bc('0xb0')][_0x2e38bc('0x34')]&&(_0x36b839[_0x2e38bc('0xc0')]['autoclose']&&_0x36b839['applications']['push']({'id':0x0,'priority':_0x36b839[_0x2e38bc('0x18')][_0x2e38bc('0x51')]+0x1,'app':'close','appdata':_0x2e38bc('0x7d'),'interval':_0x2e38bc('0x6a')})),db[_0x2e38bc('0xc6')][_0x2e38bc('0xa5')]({'body':_0x4e3a3d[_0x2e38bc('0x7c')][_0x2e38bc('0x7c')],'ChatWebsiteId':_0x4e3a3d[_0x2e38bc('0xe3')]['id'],'ChatInteractionId':_0x51f265['id'],'direction':'in','ContactId':_0x36b839['contact']['id'],'AttachmentId':_0x4e3a3d[_0x2e38bc('0x7c')][_0x2e38bc('0x4c')]});})['then'](function(_0x53e0d5){const _0x2cf61c=_0x3807bf;_0x36b839[_0x2cf61c('0xdf')]=_0x53e0d5;if(_0x36b839['interaction'][_0x2cf61c('0xfc')])return db[_0x2cf61c('0xea')][_0x2cf61c('0xc2')]({'attributes':['id',_0x2cf61c('0x19')],'where':{'id':_0x36b839[_0x2cf61c('0xb0')][_0x2cf61c('0xfc')]}})[_0x2cf61c('0x87')](function(_0x27a7d7){const _0x545ab8=_0x2cf61c;return _0x27a7d7&&(_0x36b839[_0x545ab8('0x18')]['unshift']({'id':0x0,'priority':0x0,'app':_0x545ab8('0xb8'),'appdata':_0x27a7d7[_0x545ab8('0x19')]+','+(_0x36b839[_0x545ab8('0xc0')][_0x545ab8('0xba')]||0xa),'interval':_0x545ab8('0x6a')}),_0x36b839[_0x545ab8('0x7b')]=!![]),respondWithRpcPromise(_0x545ab8('0x58'),_0x545ab8('0x21'),_0x36b839);});return respondWithRpcPromise(_0x2cf61c('0x58'),'startRouting',_0x36b839);})[_0x3807bf('0x87')](function(_0x566146){const _0x4850ec=_0x3807bf;return respondWithRpcPromise('EventManager',_0x4850ec('0xdc'),{'event':_0x4850ec('0x4'),'message':_0x566146},client9002),_0x566146;})['then'](respondWithResult(_0x13f426,null))[_0x3807bf('0x7a')](handleError(_0x13f426,null));},exports['offline']=function(_0x343185,_0x25b6f2){const _0x35295b=_0x488239;let _0x35aefa,_0x453032,_0x50dd32=[];const _0x3ce536={};return db[_0x35295b('0xe5')][_0x35295b('0x9c')]()[_0x35295b('0x87')](function(_0x338095){const _0x11ce6d=_0x35295b;if(!_0x338095)throw new db['Sequelize'][(_0x11ce6d('0x92'))]('no\x20available\x20attributes');_0x50dd32=_[_0x11ce6d('0x6e')](_[_0x11ce6d('0x84')](_0x338095),[_0x11ce6d('0x2d'),'updatedAt',_0x11ce6d('0x15'),_0x11ce6d('0x96')]);_0x343185[_0x11ce6d('0x7c')]['id']&&delete _0x343185[_0x11ce6d('0x7c')]['id'];if(_[_0x11ce6d('0x80')](_0x343185[_0x11ce6d('0x7c')][_0x11ce6d('0xc7')]))throw _0x25b6f2['status'](0x1f4)['send'](new db[(_0x11ce6d('0x48'))][(_0x11ce6d('0x92'))](_0x11ce6d('0xb4')));if(_[_0x11ce6d('0x80')](_0x343185[_0x11ce6d('0x7c')][_0x11ce6d('0x7c')])||_0x343185[_0x11ce6d('0x7c')]['body']==='')throw _0x25b6f2[_0x11ce6d('0x2')](0x1f4)[_0x11ce6d('0x5c')](new db[(_0x11ce6d('0x48'))]['ValidationError'](_0x11ce6d('0x99')));if(_['isNil'](_0x343185[_0x11ce6d('0x7c')][_0x11ce6d('0x5')]))throw _0x25b6f2[_0x11ce6d('0x2')](0x1f4)[_0x11ce6d('0x5c')](new db['Sequelize'][(_0x11ce6d('0x92'))]('mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x50dd32));if(!_[_0x11ce6d('0x9f')](_0x50dd32,_0x343185[_0x11ce6d('0x7c')][_0x11ce6d('0x5')]))throw _0x25b6f2[_0x11ce6d('0x2')](0x1f4)[_0x11ce6d('0x5c')](new db[(_0x11ce6d('0x48'))]['ValidationError'](_0x11ce6d('0x1c')+_0x50dd32));_0x3ce536[_0x343185['body']['mapKeyOffline']]=_0x343185['body'][_0x11ce6d('0xc7')];})[_0x35295b('0x87')](function(){const _0x368ef2=_0x35295b;return db[_0x368ef2('0xcd')]['findOne']({'where':{'id':_0x343185[_0x368ef2('0xe3')]['id']},'include':[{'model':db[_0x368ef2('0x30')],'as':_0x368ef2('0xa0')}]});})['then'](handleEntityNotFound(_0x25b6f2,null))[_0x35295b('0x87')](function(_0x354135){const _0x2823f6=_0x35295b;if(_0x354135&&_0x354135[_0x2823f6('0xa0')]){_0x453032=_0x354135;const _0x2dfa40=_[_0x2823f6('0xb9')](_0x343185[_0x2823f6('0x7c')],{'firstName':_0x343185['body'][_0x2823f6('0xc7')],'phone':_0x343185[_0x2823f6('0x7c')][_0x2823f6('0xc7')],'ListId':_0x354135[_0x2823f6('0x96')]});return _0x2dfa40[_0x343185[_0x2823f6('0x7c')][_0x2823f6('0x5')]]=_0x343185[_0x2823f6('0x7c')][_0x2823f6('0xc7')],db[_0x2823f6('0xe5')][_0x2823f6('0x9')]({'where':_0x3ce536,'defaults':_0x2dfa40});}})[_0x35295b('0x87')](function([_0x2aa84d]){const _0x402d7a=_0x35295b;if(_0x2aa84d){const _0x5ed357=fs[_0x402d7a('0x32')](path[_0x402d7a('0x3')](config[_0x402d7a('0x5d')],_0x402d7a('0x90')),_0x402d7a('0xaa')),_0x50b910=ejs[_0x402d7a('0x7f')](_0x5ed357,{'body':_['toPairs'](_0x343185[_0x402d7a('0x7c')][_0x402d7a('0x7c')]),'bodyTitle':_0x453032['offlineMessageBody']});return db[_0x402d7a('0xe2')][_0x402d7a('0xa5')]({'body':_0x50b910,'ContactId':_0x2aa84d['id'],'ChatWebsiteId':_0x453032['id']});}})[_0x35295b('0x87')](function(_0x3526f9){const _0x35f9dd=_0x35295b;if(_0x3526f9)return _0x35aefa=_0x3526f9,db[_0x35f9dd('0x9e')][_0x35f9dd('0xc2')]({'where':{'service':!![]},'include':[{'model':db[_0x35f9dd('0x52')],'as':_0x35f9dd('0xc8'),'raw':!![]}]});})['then'](function(_0x4ea706){const _0x56e09a=_0x35295b;if(_0x4ea706&&_0x4ea706[_0x56e09a('0xc8')]&&_0x453032[_0x56e09a('0x9a')]){const _0x49fd04={'tls':{'rejectUnauthorized':![]}};return _0x4ea706[_0x56e09a('0xc8')][_0x56e09a('0xa')]?_0x49fd04[_0x56e09a('0xa')]=_0x4ea706[_0x56e09a('0xc8')][_0x56e09a('0xa')]:(_0x49fd04[_0x56e09a('0x1f')]=_0x4ea706[_0x56e09a('0xc8')][_0x56e09a('0x1f')],_0x49fd04['port']=_0x4ea706['Smtp'][_0x56e09a('0x83')],_0x49fd04[_0x56e09a('0xd7')]=_0x4ea706[_0x56e09a('0xc8')][_0x56e09a('0xd7')]),_0x4ea706[_0x56e09a('0xc8')][_0x56e09a('0x85')]&&(_0x49fd04[_0x56e09a('0xed')]={'user':_0x4ea706[_0x56e09a('0xc8')][_0x56e09a('0x75')],'pass':_0x4ea706['Smtp']['pass']}),respondWithRpcPromise('SendMail','sendMail',{'account':_0x49fd04,'message':{'from':util[_0x56e09a('0x3a')]('\x22%s\x22\x20<%s>',_0x4ea706[_0x56e09a('0x19')],_0x4ea706['email']||_0x4ea706['Smtp'][_0x56e09a('0x75')]),'to':_0x453032['forwardOfflineAddress'],'subject':_0x453032[_0x56e09a('0x1b')],'text':_0x35aefa['body']}},client9003)[_0x56e09a('0x87')](function(){return _0x35aefa;})[_0x56e09a('0x7a')](function(_0x5814dd){const _0x4dbce7=_0x56e09a;console[_0x4dbce7('0xd3')](_0x5814dd);});}})[_0x35295b('0x87')](function(){if(_0x35aefa)return _0x35aefa;})[_0x35295b('0x87')](respondWithResult(_0x25b6f2,null))[_0x35295b('0x7a')](handleError(_0x25b6f2,null));},exports[_0x488239('0xbc')]=function(_0x3b40ea,_0x14ea0b){const _0x2e5c0e=_0x488239;return db['ChatInteraction']['findOne']({'where':{'id':_0x3b40ea['params']['id']}})[_0x2e5c0e('0x87')](function(_0x2cf01e){const _0x430c5e=_0x2e5c0e;if(_0x2cf01e)return _0x2cf01e['addInteraction'](_0x3b40ea[_0x430c5e('0x7c')]['ids'],{'through':_[_0x430c5e('0xad')](_0x3b40ea[_0x430c5e('0x7c')],['ids','id'])});})[_0x2e5c0e('0x87')](respondWithResult(_0x14ea0b,null))['catch'](handleError(_0x14ea0b,null));},exports['getInteractions']=function(_0x54af92,_0x27b452){const _0x5e716a=_0x488239;let _0x377f3d={'raw':![],'where':{}};const _0x3cc8a2={},_0x23d326={'count':0x0,'rows':[]};return db[_0x5e716a('0xcd')][_0x5e716a('0xc2')]({'where':{'id':_0x54af92[_0x5e716a('0xe3')]['id']}})[_0x5e716a('0x87')](handleEntityNotFound(_0x27b452,null))[_0x5e716a('0x87')](function(_0x99f13){const _0x233788=_0x5e716a;if(_0x99f13)return _0x3cc8a2['model']=_[_0x233788('0x84')](db['ChatInteraction'][_0x233788('0xd9')]),_0x3cc8a2[_0x233788('0x11')]=_[_0x233788('0x84')](_0x54af92[_0x233788('0x11')]),_0x3cc8a2[_0x233788('0x43')]=_[_0x233788('0x64')](_0x3cc8a2[_0x233788('0xe')],_0x3cc8a2['query']),_0x377f3d[_0x233788('0x5a')]=_[_0x233788('0x64')](_0x3cc8a2[_0x233788('0xe')],qs['fields'](_0x54af92['query'][_0x233788('0xcc')])),_0x377f3d[_0x233788('0x5a')]=_0x377f3d[_0x233788('0x5a')][_0x233788('0x51')]?_0x377f3d[_0x233788('0x5a')]:_0x3cc8a2[_0x233788('0xe')],typeof _0x54af92['query'][_0x233788('0xd5')]===_0x233788('0xdd')&&(_0x377f3d[_0x233788('0x100')]=qs[_0x233788('0x100')](_0x54af92[_0x233788('0x11')][_0x233788('0x100')]),_0x377f3d[_0x233788('0xf1')]=qs[_0x233788('0xf1')](_0x54af92['query']['offset'])),_0x377f3d[_0x233788('0x61')]=qs[_0x233788('0xde')](_0x54af92[_0x233788('0x11')][_0x233788('0xde')]),_0x377f3d[_0x233788('0x2e')]=qs[_0x233788('0x43')](_[_0x233788('0xef')](_0x54af92['query'],_0x3cc8a2['filters'])),_0x377f3d[_0x233788('0x2e')]['ChatWebsiteId']=_0x99f13['id'],_0x54af92[_0x233788('0x11')][_0x233788('0x6b')]&&(_0x377f3d['where']=_['merge'](_0x377f3d[_0x233788('0x2e')],{[Op['or']]:_[_0x233788('0x7')](_0x377f3d[_0x233788('0x5a')],function(_0x5f35f7){const _0x5c0efc=_0x233788,_0x1e6207={};return _0x1e6207[_0x5f35f7]={[Op[_0x5c0efc('0x63')]]:'%'+_0x54af92[_0x5c0efc('0x11')]['filter']+'%'},_0x1e6207;})})),_0x377f3d=_[_0x233788('0x41')]({},_0x377f3d,_0x54af92['options']),db[_0x233788('0x7e')][_0x233788('0xe6')]({'where':_0x377f3d[_0x233788('0x2e')]})['then'](function(_0x63baa3){const _0x1fe9b2=_0x233788;return _0x23d326[_0x1fe9b2('0xe6')]=_0x63baa3,_0x54af92[_0x1fe9b2('0x11')][_0x1fe9b2('0xb2')]&&(_0x377f3d[_0x1fe9b2('0x55')]=[{'model':db[_0x1fe9b2('0xe5')],'as':_0x1fe9b2('0xf3'),'required':![]},{'model':db['User'],'as':_0x1fe9b2('0xa9'),'attributes':[_0x1fe9b2('0x19'),'fullname',_0x1fe9b2('0x3c')],'required':![]},{'model':db[_0x1fe9b2('0x86')],'as':_0x1fe9b2('0x2f'),'attributes':['id',_0x1fe9b2('0x19'),_0x1fe9b2('0x4d')],'where':_0x54af92[_0x1fe9b2('0x11')][_0x1fe9b2('0x49')]?{'id':_0x54af92[_0x1fe9b2('0x11')]['tag']}:undefined,'required':_0x54af92[_0x1fe9b2('0x11')][_0x1fe9b2('0x49')]?!![]:![]}]),db[_0x1fe9b2('0x7e')][_0x1fe9b2('0x5b')](_0x377f3d);})['then'](function(_0x2631f1){const _0x2c869b=_0x233788;return _0x23d326[_0x2c869b('0xbb')]=_0x2631f1,_0x23d326;});})[_0x5e716a('0x87')](respondWithFilteredResult(_0x27b452,_0x377f3d))[_0x5e716a('0x7a')](handleError(_0x27b452,null));};function iftimePromise(_0x27da6e,_0x2ddfdd){const _0x123e3d=_0x488239;return respondWithRpcPromise('Command','getSnippet',{'command':_0x2ddfdd[_0x123e3d('0x13')]?util[_0x123e3d('0x3a')](_0x123e3d('0x67'),_0x27da6e[_0x123e3d('0x2c')],_0x2ddfdd['timezone']):util['format']('iftime\x20%s',_0x27da6e[_0x123e3d('0x2c')])},client9002)[_0x123e3d('0x87')](function(_0x1b6e5c){const _0x310eec=_0x123e3d,_0x5e64fe=_0x1b6e5c&&_0x1b6e5c[_0x310eec('0xab')](_0x310eec('0x38'))>=0x0?!![]:![];return logger['info'](_0x310eec('0xb'),_0x2ddfdd['id'],_0x27da6e['id'],_0x27da6e[_0x310eec('0x2c')],_0x5e64fe?_0x310eec('0xbf'):_0x310eec('0xf4'),_0x2ddfdd[_0x310eec('0x13')]?_0x2ddfdd['timezone']:'No\x20timezone'),_0x5e64fe;})[_0x123e3d('0x7a')](function(_0x5a34b8){const _0x42106e=_0x123e3d;return logger[_0x42106e('0xd3')]('[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)',_0x2ddfdd['id'],_0x27da6e['id'],_0x27da6e[_0x42106e('0x2c')],util[_0x42106e('0x1')](_0x5a34b8,{'showHidden':![],'depth':null}),_0x2ddfdd[_0x42106e('0x13')]?_0x2ddfdd[_0x42106e('0x13')]:_0x42106e('0xe4')),![];});}exports[_0x488239('0xf2')]=function(_0xf3c8af,_0x36752a){const _0x7b01e0=_0x488239;let _0x469416=0x0,_0x75082c=0x0,_0x1285de=![],_0x673001,_0x1a61a6;return db[_0x7b01e0('0xcd')]['findOne']({'where':{'id':_0xf3c8af['params']['id']},'include':[{'model':db[_0x7b01e0('0x89')],'as':_0x7b01e0('0x89'),'include':[{'model':db['Interval'],'as':_0x7b01e0('0xe9'),'attributes':['id','interval'],'raw':!![]}]}]})[_0x7b01e0('0x87')](handleEntityNotFound(_0x36752a,null))[_0x7b01e0('0x87')](function(_0x5975d8){const _0x3546ba=_0x7b01e0;if(_0x5975d8)return _0x673001=_0x5975d8,_0x5975d8[_0x3546ba('0x20')]({'raw':!![]});})[_0x7b01e0('0x87')](function(_0x49d377){const _0x8082b6=_0x7b01e0;return _0x673001&&(_0x49d377&&(_0x1a61a6=_0x49d377)),require(_0x8082b6('0xae'))[_0x8082b6('0x82')]();})[_0x7b01e0('0x87')](function(_0x1d7c2c){const _0x36694b=_0x7b01e0;_0x1d7c2c&&(_0x75082c=_0x1d7c2c[_0x36694b('0x6f')],_0x1285de=_0x1d7c2c['custom']);})['then'](function(){const _0x18e7bf=_0x7b01e0;return db[_0x18e7bf('0x7e')]['count']({'where':{'closed':![]}});})['then'](function(_0x58aeb5){const _0x433593=_0x7b01e0;_0x469416=_0x58aeb5;if(_0x75082c&&_0x58aeb5>_0x75082c)return db[_0x433593('0xd8')][_0x433593('0xc2')]({'where':{'id':0x1}})['then'](function(_0x540eb8){const _0x4c49a8=_0x433593;_0x540eb8&&_0x540eb8[_0x4c49a8('0x0')](_0x4c49a8('0x42'));});})['then'](function(){const _0x4d6829=_0x7b01e0;if(_0x673001[_0x4d6829('0x89')]&&_0x673001[_0x4d6829('0x89')][_0x4d6829('0xe9')]){const _0xf22cc1=[];for(let _0x52306f=0x0;_0x52306f<_0x673001[_0x4d6829('0x89')][_0x4d6829('0xe9')][_0x4d6829('0x51')];_0x52306f++){const _0x130b56=_0x673001[_0x4d6829('0x89')][_0x4d6829('0xe9')][_0x52306f]['get']({'plain':!![]});_0xf22cc1[_0x4d6829('0xaf')](iftimePromise(_0x130b56,_0x673001));}return Promise[_0x4d6829('0xd1')](_0xf22cc1)['then'](function(_0x13bce9){const _0x286871=_0x4d6829;return _[_0x286871('0xda')](_0x13bce9);});}else return!![];})[_0x7b01e0('0x87')](function(_0x2be651){const _0x497a4c=_0x7b01e0,_0x4370b3=fs[_0x497a4c('0xeb')](path[_0x497a4c('0x3')](config[_0x497a4c('0x5d')],_0x497a4c('0xf7'))),_0x734e6f=_0x4370b3[0x0]||_0x497a4c('0x33'),_0x180244=fs[_0x497a4c('0x32')](path[_0x497a4c('0x3')](config[_0x497a4c('0x5d')],_0x497a4c('0x53')),_0x497a4c('0xaa')),_0x4a9b50={'chatVersion':_0x734e6f,'remote':_0x673001[_0x497a4c('0x4a')],'query':querystring[_0x497a4c('0xc1')](_[_0x497a4c('0x41')](_0x673001['get']({'plain':!![]}),{'customerIp':_0xf3c8af[_0x497a4c('0x31')][_0x497a4c('0x16')]||_0xf3c8af['headers'][_0x497a4c('0x65')]||_0xf3c8af['connection'][_0x497a4c('0x37')]||_0xf3c8af['ip'],'referer':_0xf3c8af[_0x497a4c('0x31')][_0x497a4c('0x91')],'openedInteractions':_0x469416,'maxInteractions':_0x75082c,'virtual':_0x1285de[_0x497a4c('0x6f')],'online':_0x2be651,'custom':_0x1285de}))[_0x497a4c('0xfa')](/'/g,'\x5c\x27')};_0x36752a[_0x497a4c('0x5c')](ejs[_0x497a4c('0x7f')](Mustache[_0x497a4c('0x7f')](_0x180244,_0x4a9b50),{'proactiveActions':_0x1a61a6,'alignment':_0x673001[_0x497a4c('0x24')],'verticalAlignment':_0x673001[_0x497a4c('0x47')],'div_color':_0x673001[_0x497a4c('0x4d')],'text_color':_0x673001[_0x497a4c('0x95')]}));})[_0x7b01e0('0x7a')](handleError(_0x36752a,null));},exports[_0x488239('0xa8')]=function(_0x325e14,_0x2b61fb){const _0x3fdb6e=_0x488239;return db[_0x3fdb6e('0xcd')][_0x3fdb6e('0xc2')]({'where':{'id':_0x325e14[_0x3fdb6e('0xe3')]['id']}})[_0x3fdb6e('0x87')](handleEntityNotFound(_0x2b61fb,null))[_0x3fdb6e('0x87')](function(_0x37803b){const _0x5234aa=_0x3fdb6e;if(_0x37803b)return db['sequelize']['transaction'](function(_0x2bc455){const _0x3fb3e4=a111_0x52d1;return db[_0x3fb3e4('0x68')][_0x3fb3e4('0x8d')]({'where':{'ChatWebsiteId':_0x325e14[_0x3fb3e4('0xe3')]['id']},'transaction':_0x2bc455})[_0x3fb3e4('0x87')](function(){const _0x28e8cd=_0x3fb3e4,_0x8282de=_[_0x28e8cd('0x7')](_0x325e14[_0x28e8cd('0x7c')],function(_0x44ea51){const _0x2b37fc=_0x28e8cd;return _0x44ea51[_0x2b37fc('0x1d')]=_0x325e14[_0x2b37fc('0xe3')]['id'],_0x44ea51;});return db[_0x28e8cd('0x68')][_0x28e8cd('0xb6')](_0x8282de,{'transaction':_0x2bc455});});})[_0x5234aa('0x87')](function(){const _0xe09155=_0x5234aa;return db['ChatApplication'][_0xe09155('0xe1')]({'where':{'ChatWebsiteId':_0x325e14[_0xe09155('0xe3')]['id']},'order':'priority'});});})[_0x3fdb6e('0x87')](respondWithResult(_0x2b61fb,null))[_0x3fdb6e('0x7a')](handleError(_0x2b61fb,null));},exports[_0x488239('0xb7')]=function(_0x450560,_0x81eca6){const _0x4782ee=_0x488239;let _0x4d0628={};const _0x53c122={};let _0x90a859,_0x3eca00;return db[_0x4782ee('0xcd')]['findOne']({'where':{'id':_0x450560['params']['id']}})[_0x4782ee('0x87')](handleEntityNotFound(_0x81eca6,null))[_0x4782ee('0x87')](function(_0x49566d){const _0x3d7578=_0x4782ee;if(_0x49566d)return _0x90a859=_0x49566d,_0x53c122[_0x3d7578('0xe')]=_[_0x3d7578('0x84')](db['ChatApplication'][_0x3d7578('0xd9')]),_0x53c122[_0x3d7578('0x11')]=_[_0x3d7578('0x84')](_0x450560[_0x3d7578('0x11')]),_0x53c122[_0x3d7578('0x43')]=_[_0x3d7578('0x64')](_0x53c122[_0x3d7578('0xe')],_0x53c122[_0x3d7578('0x11')]),_0x4d0628['attributes']=_[_0x3d7578('0x64')](_0x53c122['model'],qs[_0x3d7578('0xcc')](_0x450560[_0x3d7578('0x11')][_0x3d7578('0xcc')])),_0x4d0628[_0x3d7578('0x5a')]=_0x4d0628[_0x3d7578('0x5a')][_0x3d7578('0x51')]?_0x4d0628[_0x3d7578('0x5a')]:_0x53c122[_0x3d7578('0xe')],_0x4d0628[_0x3d7578('0x61')]=qs['sort'](_0x450560[_0x3d7578('0x11')][_0x3d7578('0xde')]),_0x4d0628[_0x3d7578('0x2e')]=qs['filters'](_[_0x3d7578('0xef')](_0x450560[_0x3d7578('0x11')],_0x53c122[_0x3d7578('0x43')])),_0x450560[_0x3d7578('0x11')][_0x3d7578('0x6b')]&&(_0x4d0628[_0x3d7578('0x2e')]=_['merge'](_0x4d0628[_0x3d7578('0x2e')],{[Op['or']]:_[_0x3d7578('0x7')](_0x4d0628['attributes'],function(_0x30bbf5){const _0x4786cb=_0x3d7578,_0x5aacdd={};return _0x5aacdd[_0x30bbf5]={[Op[_0x4786cb('0x63')]]:'%'+_0x450560[_0x4786cb('0x11')]['filter']+'%'},_0x5aacdd;})})),_0x4d0628=_['merge']({},_0x4d0628,_0x450560[_0x3d7578('0xa1')]),_0x90a859[_0x3d7578('0xb7')](_0x4d0628);})[_0x4782ee('0x87')](function(_0x10b167){const _0x21da89=_0x4782ee;if(_0x10b167)return _0x3eca00=_0x10b167[_0x21da89('0x51')],typeof _0x450560[_0x21da89('0x11')][_0x21da89('0xd5')]===_0x21da89('0xdd')&&(_0x4d0628['limit']=qs[_0x21da89('0x100')](_0x450560[_0x21da89('0x11')][_0x21da89('0x100')]),_0x4d0628[_0x21da89('0xf1')]=qs['offset'](_0x450560[_0x21da89('0x11')][_0x21da89('0xf1')])),_0x90a859[_0x21da89('0xb7')](_0x4d0628);})[_0x4782ee('0x87')](function(_0x1baba7){if(_0x1baba7)return _0x1baba7?{'count':_0x3eca00,'rows':_0x1baba7}:null;})[_0x4782ee('0x87')](respondWithResult(_0x81eca6,null))[_0x4782ee('0x7a')](handleError(_0x81eca6,null));},exports[_0x488239('0xc5')]=function(_0x44af0a,_0x1c82e0){const _0x335f36=_0x488239;return db[_0x335f36('0x70')][_0x335f36('0xc2')]({'where':{'id':_0x44af0a[_0x335f36('0xe3')]['id']}})[_0x335f36('0x87')](function(_0x1971cb){const _0x36f86a=_0x335f36;if(_0x1971cb)return _0x1971cb[_0x36f86a('0xc5')](_0x44af0a[_0x36f86a('0x7c')][_0x36f86a('0x27')],{'through':_[_0x36f86a('0xad')](_0x44af0a[_0x36f86a('0x7c')],['ids','id'])});})[_0x335f36('0x87')](respondWithResult(_0x1c82e0,null))[_0x335f36('0x7a')](handleError(_0x1c82e0,null));},exports[_0x488239('0x20')]=function(_0x1c44fd,_0x29a207){const _0x19d99c=_0x488239;let _0x47ec5c={};const _0x2b9744={};let _0x2174df,_0x310a3e;return db[_0x19d99c('0xcd')][_0x19d99c('0xc2')]({'where':{'id':_0x1c44fd['params']['id']}})['then'](handleEntityNotFound(_0x29a207,null))['then'](function(_0x3bf1c6){const _0x2b6f12=_0x19d99c;if(_0x3bf1c6)return _0x2174df=_0x3bf1c6,_0x2b9744[_0x2b6f12('0xe')]=_[_0x2b6f12('0x84')](db[_0x2b6f12('0x59')][_0x2b6f12('0xd9')]),_0x2b9744[_0x2b6f12('0x11')]=_['keys'](_0x1c44fd[_0x2b6f12('0x11')]),_0x2b9744[_0x2b6f12('0x43')]=_[_0x2b6f12('0x64')](_0x2b9744[_0x2b6f12('0xe')],_0x2b9744['query']),_0x47ec5c[_0x2b6f12('0x5a')]=_[_0x2b6f12('0x64')](_0x2b9744[_0x2b6f12('0xe')],qs[_0x2b6f12('0xcc')](_0x1c44fd['query'][_0x2b6f12('0xcc')])),_0x47ec5c['attributes']=_0x47ec5c[_0x2b6f12('0x5a')][_0x2b6f12('0x51')]?_0x47ec5c['attributes']:_0x2b9744[_0x2b6f12('0xe')],_0x47ec5c[_0x2b6f12('0x61')]=qs[_0x2b6f12('0xde')](_0x1c44fd[_0x2b6f12('0x11')]['sort']),_0x47ec5c[_0x2b6f12('0x2e')]=qs[_0x2b6f12('0x43')](_[_0x2b6f12('0xef')](_0x1c44fd[_0x2b6f12('0x11')],_0x2b9744[_0x2b6f12('0x43')])),_0x1c44fd[_0x2b6f12('0x11')]['filter']&&(_0x47ec5c[_0x2b6f12('0x2e')]=_['merge'](_0x47ec5c['where'],{[Op['or']]:_[_0x2b6f12('0x7')](_0x47ec5c[_0x2b6f12('0x5a')],function(_0x41d7a3){const _0x29f859=_0x2b6f12,_0x14b575={};return _0x14b575[_0x41d7a3]={[Op[_0x29f859('0x63')]]:'%'+_0x1c44fd[_0x29f859('0x11')][_0x29f859('0x6b')]+'%'},_0x14b575;})})),_0x47ec5c=_[_0x2b6f12('0x41')]({},_0x47ec5c,_0x1c44fd[_0x2b6f12('0xa1')]),_0x2174df[_0x2b6f12('0x20')](_0x47ec5c);})[_0x19d99c('0x87')](function(_0x1f865f){const _0x2fa10e=_0x19d99c;if(_0x1f865f)return _0x310a3e=_0x1f865f[_0x2fa10e('0x51')],typeof _0x1c44fd[_0x2fa10e('0x11')]['nolimit']===_0x2fa10e('0xdd')&&(_0x47ec5c['limit']=qs[_0x2fa10e('0x100')](_0x1c44fd['query']['limit']),_0x47ec5c[_0x2fa10e('0xf1')]=qs[_0x2fa10e('0xf1')](_0x1c44fd['query']['offset'])),_0x2174df[_0x2fa10e('0x20')](_0x47ec5c);})[_0x19d99c('0x87')](function(_0x586281){if(_0x586281)return _0x586281?{'count':_0x310a3e,'rows':_0x586281}:null;})[_0x19d99c('0x87')](respondWithResult(_0x29a207,null))['catch'](handleError(_0x29a207,null));},exports['getFields']=function(_0xb69277,_0x42f38c){const _0x5bc639=_0x488239,_0x3aa598=_0xb69277[_0x5bc639('0x11')]['online']===_0x5bc639('0x36')?_0x5bc639('0xe8'):_0x5bc639('0xa2');return db[_0x5bc639('0xcd')][_0x5bc639('0xc2')]({'attributes':['id',_0x3aa598],'where':{'id':_0xb69277[_0x5bc639('0xe3')]['id']}})[_0x5bc639('0x87')](handleEntityNotFound(_0x42f38c,null))[_0x5bc639('0x87')](function(_0x4d656c){const _0x168d68=_0x5bc639;if(_0x4d656c){const _0x3f2543=_0x4d656c[_0x3aa598],_0x26cf2f=_0x3f2543&&_0x3f2543[_0x168d68('0x5f')]?_0x3f2543['items']:[];_0x42f38c[_0x168d68('0x5c')]({'fromKey':_[_0x168d68('0x80')](_0x3f2543[_0x168d68('0xe0')])?undefined:_0x3f2543['fromKey'],'count':_0x26cf2f[_0x168d68('0x51')],'rows':_0x26cf2f});}})[_0x5bc639('0x7a')](handleError(_0x42f38c,null));},exports[_0x488239('0x50')]=function(_0x130c6e,_0x5e1184){const _0x4293e9=_0x488239;let _0x7809ba={'raw':![],'where':{}};const _0x155e06={},_0x57d9d4={'count':0x0,'rows':[]};return db[_0x4293e9('0xcd')][_0x4293e9('0xc2')]({'where':{'id':_0x130c6e['params']['id']}})[_0x4293e9('0x87')](handleEntityNotFound(_0x5e1184,null))[_0x4293e9('0x87')](function(_0x525ff0){const _0x492025=_0x4293e9;if(_0x525ff0)return _0x155e06[_0x492025('0xe')]=_[_0x492025('0x84')](db[_0x492025('0xe2')][_0x492025('0xd9')]),_0x155e06[_0x492025('0x11')]=_['keys'](_0x130c6e[_0x492025('0x11')]),_0x155e06[_0x492025('0x43')]=_[_0x492025('0x64')](_0x155e06[_0x492025('0xe')],_0x155e06[_0x492025('0x11')]),_0x7809ba[_0x492025('0x5a')]=_[_0x492025('0x64')](_0x155e06[_0x492025('0xe')],qs[_0x492025('0xcc')](_0x130c6e[_0x492025('0x11')]['fields'])),_0x7809ba['attributes']=_0x7809ba[_0x492025('0x5a')][_0x492025('0x51')]?_0x7809ba[_0x492025('0x5a')]:_0x155e06[_0x492025('0xe')],typeof _0x130c6e[_0x492025('0x11')]['nolimit']===_0x492025('0xdd')&&(_0x7809ba[_0x492025('0x100')]=qs[_0x492025('0x100')](_0x130c6e['query']['limit']),_0x7809ba[_0x492025('0xf1')]=qs[_0x492025('0xf1')](_0x130c6e['query']['offset'])),_0x7809ba[_0x492025('0x61')]=qs[_0x492025('0xde')](_0x130c6e['query']['sort']),_0x7809ba[_0x492025('0x2e')]=qs[_0x492025('0x43')](_[_0x492025('0xef')](_0x130c6e[_0x492025('0x11')],_0x155e06['filters'])),_0x7809ba['where'][_0x492025('0x1d')]=_0x525ff0['id'],_0x130c6e[_0x492025('0x11')][_0x492025('0x6b')]&&(_0x7809ba[_0x492025('0x2e')]=_[_0x492025('0x41')](_0x7809ba['where'],{[Op['or']]:_[_0x492025('0x7')](_0x7809ba[_0x492025('0x5a')],function(_0x40aee2){const _0x483598=_0x492025,_0x2ed7b6={};return _0x2ed7b6[_0x40aee2]={[Op['like']]:'%'+_0x130c6e[_0x483598('0x11')]['filter']+'%'},_0x2ed7b6;})})),_0x7809ba=_['merge']({},_0x7809ba,_0x130c6e['options']),db[_0x492025('0xe2')]['count']({'where':_0x7809ba[_0x492025('0x2e')]})[_0x492025('0x87')](function(_0x2ea51f){const _0x58bac0=_0x492025;return _0x57d9d4[_0x58bac0('0xe6')]=_0x2ea51f,_0x130c6e[_0x58bac0('0x11')][_0x58bac0('0xb2')]?_0x7809ba[_0x58bac0('0x55')]=[{'all':!![]}]:_0x7809ba[_0x58bac0('0x55')]=[{'model':db[_0x58bac0('0xe5')],'as':_0x58bac0('0xf3'),'required':![]}],db[_0x58bac0('0xe2')]['findAll'](_0x7809ba);})[_0x492025('0x87')](function(_0x4b919f){const _0x58378f=_0x492025;return _0x57d9d4[_0x58378f('0xbb')]=_0x4b919f,_0x57d9d4;});})[_0x4293e9('0x87')](respondWithFilteredResult(_0x5e1184,_0x7809ba))[_0x4293e9('0x7a')](handleError(_0x5e1184,null));},exports[_0x488239('0x76')]=function(_0xe0d490,_0x2efe2c){const _0x2f853c=_0x488239;return db['ChatWebsite'][_0x2f853c('0xc2')]({'where':{'id':_0xe0d490[_0x2f853c('0xe3')]['id']}})[_0x2f853c('0x87')](function(_0x3f19e4){const _0x340276=_0x2f853c;if(_0x3f19e4)return _0x3f19e4['addAgents'](_0xe0d490[_0x340276('0x7c')][_0x340276('0x27')],{'through':_[_0x340276('0xad')](_0xe0d490[_0x340276('0x7c')],[_0x340276('0x27'),'id'])})[_0x340276('0x87')](function(_0x2faf3){const _0x3c0126=_0x340276;for(let _0xf2b95b=0x0;_0xf2b95b<_0xe0d490[_0x3c0126('0x7c')][_0x3c0126('0x27')][_0x3c0126('0x51')];_0xf2b95b+=0x1){socket[_0x3c0126('0xf5')]('userChatWebsite:save',{'UserId':_0xe0d490[_0x3c0126('0x7c')]['ids'][_0xf2b95b],'ChatWebsiteId':_0xe0d490['params']['id']});}return _0x2faf3;});})[_0x2f853c('0x87')](respondWithResult(_0x2efe2c,null))['catch'](handleError(_0x2efe2c,null));},exports[_0x488239('0xc9')]=function(_0x36cce3,_0x29fdee){const _0x2d8301=_0x488239;return db[_0x2d8301('0xcd')][_0x2d8301('0xc2')]({'where':{'id':_0x36cce3[_0x2d8301('0xe3')]['id']}})[_0x2d8301('0x87')](handleEntityNotFound(_0x29fdee,null))[_0x2d8301('0x87')](function(_0xffbfb){const _0x2f1c5d=_0x2d8301;if(_0xffbfb)return _0xffbfb['removeAgents'](_0x36cce3[_0x2f1c5d('0x11')][_0x2f1c5d('0x27')])[_0x2f1c5d('0x87')](function(){const _0x54ac0e=_0x2f1c5d;if(_['isArray'](_0x36cce3[_0x54ac0e('0x11')][_0x54ac0e('0x27')]))for(let _0xf43039=0x0;_0xf43039<_0x36cce3[_0x54ac0e('0x11')][_0x54ac0e('0x27')][_0x54ac0e('0x51')];_0xf43039+=0x1){socket['emit'](_0x54ac0e('0xc3'),{'UserId':Number(_0x36cce3[_0x54ac0e('0x11')][_0x54ac0e('0x27')][_0xf43039]),'ChatWebsiteId':Number(_0x36cce3['params']['id'])});}else socket[_0x54ac0e('0xf5')](_0x54ac0e('0xc3'),{'UserId':Number(_0x36cce3['query'][_0x54ac0e('0x27')]),'ChatWebsiteId':Number(_0x36cce3[_0x54ac0e('0xe3')]['id'])});});})[_0x2d8301('0x87')](respondWithStatusCode(_0x29fdee,null))[_0x2d8301('0x7a')](handleError(_0x29fdee,null));},exports[_0x488239('0xf')]=function(_0x12cd90,_0x13c392){const _0x399498=_0x488239;let _0x315083={};const _0x36256d={};let _0x47034e,_0x44692a;return db[_0x399498('0xcd')][_0x399498('0xc2')]({'where':{'id':_0x12cd90['params']['id']}})[_0x399498('0x87')](handleEntityNotFound(_0x13c392,null))['then'](function(_0x2f9f2d){const _0x5987b2=_0x399498;if(_0x2f9f2d)return _0x47034e=_0x2f9f2d,_0x36256d[_0x5987b2('0xe')]=_[_0x5987b2('0x84')](db['User'][_0x5987b2('0xd9')]),_0x36256d[_0x5987b2('0x11')]=_[_0x5987b2('0x84')](_0x12cd90[_0x5987b2('0x11')]),_0x36256d['filters']=_['intersection'](_0x36256d['model'],_0x36256d[_0x5987b2('0x11')]),_0x315083[_0x5987b2('0x5a')]=_[_0x5987b2('0x64')](_0x36256d[_0x5987b2('0xe')],qs[_0x5987b2('0xcc')](_0x12cd90[_0x5987b2('0x11')][_0x5987b2('0xcc')])),_0x315083[_0x5987b2('0x5a')]=_0x315083[_0x5987b2('0x5a')][_0x5987b2('0x51')]?_0x315083[_0x5987b2('0x5a')]:_0x36256d[_0x5987b2('0xe')],_0x315083[_0x5987b2('0x61')]=qs[_0x5987b2('0xde')](_0x12cd90['query'][_0x5987b2('0xde')]),_0x315083[_0x5987b2('0x2e')]=qs['filters'](_['pick'](_0x12cd90['query'],_0x36256d[_0x5987b2('0x43')])),_0x12cd90[_0x5987b2('0x11')][_0x5987b2('0x6b')]&&(_0x315083['where']=_[_0x5987b2('0x41')](_0x315083['where'],{[Op['or']]:_[_0x5987b2('0x7')](_0x315083[_0x5987b2('0x5a')],function(_0x181444){const _0x16c545=_0x5987b2,_0x513ded={};return _0x513ded[_0x181444]={[Op[_0x16c545('0x63')]]:'%'+_0x12cd90[_0x16c545('0x11')][_0x16c545('0x6b')]+'%'},_0x513ded;})})),_0x315083=_[_0x5987b2('0x41')]({},_0x315083,_0x12cd90[_0x5987b2('0xa1')]),_0x47034e[_0x5987b2('0xf')](_0x315083);})[_0x399498('0x87')](function(_0x333145){const _0x24464b=_0x399498;if(_0x333145)return _0x44692a=_0x333145['length'],typeof _0x12cd90['query'][_0x24464b('0xd5')]===_0x24464b('0xdd')&&(_0x315083[_0x24464b('0x100')]=qs[_0x24464b('0x100')](_0x12cd90[_0x24464b('0x11')][_0x24464b('0x100')]),_0x315083['offset']=qs[_0x24464b('0xf1')](_0x12cd90[_0x24464b('0x11')][_0x24464b('0xf1')])),_0x47034e[_0x24464b('0xf')](_0x315083);})[_0x399498('0x87')](function(_0x58e48e){if(_0x58e48e)return _0x58e48e?{'count':_0x44692a,'rows':_0x58e48e}:null;})[_0x399498('0x87')](respondWithResult(_0x13c392,null))['catch'](handleError(_0x13c392,null));}; \ No newline at end of file +const a111_0x15cc=['cf-connecting-ip','query','findOne','authentication','emit','filters','model','type','fields','Intervals','CmList','ChatApplication','fromKey','getSnippet','utf8','UserProfileResource','referer','waitForTheAssignedAgent','ONLINE','../../config/environment','pass','map','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','ChatProactiveAction','../../components/parsers/qs','No\x20timezone','headers','systemAvatar','color','agentAvatar','mapKeyOffline','Sequelize','x-forwarded-for','getLicense','userChatWebsite:remove','findAll','ChatInteraction','isNil','root','vendor','userProfileId','items','alignment','ChatWebsite,\x20%s,\x20%s,\x20%s','intersection','addApplications','update','browser','showCustomerAvatar','getAnswers','x-real-ip','status','Owner','like','textColor','difference','remote','count','params','getInteractions','ChatWebsites','from','priority','findOrCreate','tag','../../config/license/util','getAvatar','offlineMessageSubject','user','email','Start','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','get','CannedAnswer','request\x20sent','then','rawAttributes','existsSync','interaction','mapKey','interval','all','createdAt','mustache','bulkCreate','forcedOwnership','includeAll','register','increment','pick','set','getOfflineMessages','transaction','Contacts','port','ids','virtual','rows','destroy','custom','user-agent','offset','merge','applications','limit','./chatWebsite.socket','isArray','CmContact','role','getProactiveActions','startRouting','info','../../mysqldb','join','nolimit','../../rediscache','getAgents','addLogo','sitepic','attributes','AttachmentId','iftime\x20%s','snippets','order','autoAssociation','path','name','create','sequelize','threadId','addCustomerAvatar','key','includes','mandatoryDispositionPause','*,*,*,*','index','account','from\x20is\x20mandatory','user-agent-parser','agent','addDisposition','indexOf','sort','Contact','getCustomerAvatar','message','removeDispositions','\x22%s\x22\x20<%s>','server/files/images/avatars/customer_avatar.png','error','no\x20available\x20attributes','Pause','util','firstName','chat','removeAgents','body','addInteraction','Tags','DESC','offlineForm','version','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','chatLicenseExceeded','sendMail','UserProfileSection','ContactId','Smtp','server/files/images/avatars/','sendStatus','download','ChatOfflineMessage','filter','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','timezone','toPairs','server/files/images/avatars/system_avatar.png','fullname','secure','host','getApplications','lastName','device','body\x20is\x20mandatory\x20and\x20not\x20empty','where','server/files/images/avatars/default_avatar.png','length','include','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','file','client','OFFLINE','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','ListId','lodash','offlineMessageBody','catch','updatedAt','MailAccount','Tag','contact','EventManager','User','online','ChatWebsite','omit','UserId','unmanaged','getDispositions','orderBy','autoclose','Applications','filename','api','VIRTUAL','messageId','removeAnswers','close','iftime\x20%s,%s','ValidationError','options','server/files/templates/chatOfflineMessage.ejs','service','created','customerIp','ChatWebsiteId','Command','stringify','License','Interval','server/files/images/logos/','send','getFields','undefined','true','addSystemAvatar','customerAvatar','ejs','findAndCountAll','readdirSync','onlineForm','addAvatar','describe','render','auth','defaults','Disposition','inspect','http','keys','addProactiveActions','CompanyId','unknown','readFileSync','notify','addAgents','getResult','ChatWebsite,\x20%s,\x20%s','Unable\x20to\x20retrieve\x20the\x20current\x20user','forwardOfflineAddress','format','addAnswer','stack','List','json','end','server/files/chat/iframe.js'];(function(_0x7a4a7e,_0x15ccfd){const _0x376daa=function(_0x1a073f){while(--_0x1a073f){_0x7a4a7e['push'](_0x7a4a7e['shift']());}};_0x376daa(++_0x15ccfd);}(a111_0x15cc,0x1ac));const a111_0x376d=function(_0x7a4a7e,_0x15ccfd){_0x7a4a7e=_0x7a4a7e-0x0;let _0x376daa=a111_0x15cc[_0x7a4a7e];return _0x376daa;};const _0x2d2069=a111_0x376d;'use strict';const Mustache=require(_0x2d2069('0xbd')),util=require(_0x2d2069('0x102')),path=require(_0x2d2069('0xe7')),ejs=require(_0x2d2069('0x4c')),fs=require('fs'),_=require(_0x2d2069('0x21')),querystring=require('querystring'),qs=require(_0x2d2069('0x82')),logger=require('../../config/logger')(_0x2d2069('0x34')),config=require(_0x2d2069('0x7d')),db=require(_0x2d2069('0xda'))['db'],{Op}=require(_0x2d2069('0xea')),{getSocket}=require(_0x2d2069('0xdd')),socket=getSocket();require(_0x2d2069('0xd3'))[_0x2d2069('0xc1')](socket);const jayson=require('jayson/promise'),client=jayson['client']['http']({'port':0x232c}),client9002=jayson[_0x2d2069('0x1d')][_0x2d2069('0x57')]({'port':0x232a}),client9003=jayson[_0x2d2069('0x1d')][_0x2d2069('0x57')]({'port':0x232b});function respondWithRpcPromise(_0x1a073f,_0x1fae39,_0x91a1be,_0x1a128d){return new Promise(function(_0x21bc32,_0x1b8b5c){const _0x2a0880=a111_0x376d,_0x5b447c=_0x1a128d||client;return _0x5b447c['request'](_0x1a073f,_0x91a1be)[_0x2a0880('0xb5')](function(_0x268861){const _0xa1301c=_0x2a0880;logger[_0xa1301c('0xd9')](_0xa1301c('0x60'),_0x1fae39,_0xa1301c('0xb4')),logger['debug'](_0xa1301c('0x95'),_0x1fae39,'request\x20sent',JSON[_0xa1301c('0x42')](_0x268861));if(_0x268861[_0xa1301c('0xff')]){if(_0x268861['error']['code']===0x1f4)return logger['error'](_0xa1301c('0x60'),_0x1fae39,_0x268861[_0xa1301c('0xff')][_0xa1301c('0xfb')]),_0x1b8b5c(_0x268861['error']['message']);return logger[_0xa1301c('0xff')](_0xa1301c('0x60'),_0x1fae39,_0x268861['error'][_0xa1301c('0xfb')]),_0x21bc32(_0x268861[_0xa1301c('0xff')][_0xa1301c('0xfb')]);}else logger[_0xa1301c('0xd9')]('ChatWebsite,\x20%s,\x20%s',_0x1fae39,_0xa1301c('0xb4')),_0x21bc32(_0x268861['result'][_0xa1301c('0xfb')]);})[_0x2a0880('0x23')](function(_0x4e8f5c){const _0x25e4f6=_0x2a0880;logger[_0x25e4f6('0xff')]('ChatWebsite,\x20%s,\x20%s',_0x1fae39,_0x4e8f5c),_0x1b8b5c(_0x4e8f5c);});});}function respondWithStatusCode(_0x13a870,_0x1c49d0){return _0x1c49d0=_0x1c49d0||0xcc,function(_0x4074ef){const _0x8ea259=a111_0x376d;if(_0x4074ef)return _0x13a870[_0x8ea259('0x8')](_0x1c49d0);return _0x13a870[_0x8ea259('0x9d')](_0x1c49d0)[_0x8ea259('0x68')]();};}function respondWithResult(_0x212a2,_0x38fd8e){return _0x38fd8e=_0x38fd8e||0xc8,function(_0x57fb1b){const _0x51f8fd=a111_0x376d;if(_0x57fb1b)return _0x212a2[_0x51f8fd('0x9d')](_0x38fd8e)[_0x51f8fd('0x67')](_0x57fb1b);};}function respondWithFilteredResult(_0x37b32b,_0x3ca345){return function(_0x5851ef){const _0x524e2e=a111_0x376d;if(_0x5851ef){const _0x1a0485=_0x5851ef[_0x524e2e('0xa3')],_0x574c96=_0x3ca345[_0x524e2e('0xcf')];let _0x411f44=_0x3ca345[_0x524e2e('0xcf')]+_0x3ca345[_0x524e2e('0xd2')],_0x2ab9e3;return _0x411f44>=_0x1a0485?(_0x411f44=_0x1a0485,_0x2ab9e3=0xc8):_0x2ab9e3=0xce,_0x37b32b[_0x524e2e('0x9d')](_0x2ab9e3),_0x37b32b[_0x524e2e('0xc4')]('Content-Range',_0x574c96+'-'+_0x411f44+'/'+_0x1a0485)[_0x524e2e('0x67')](_0x5851ef);}return null;};}function saveUpdates(_0x5dc19d){return function(_0x41eecc){const _0x92dae8=a111_0x376d;if(_0x41eecc)return _0x41eecc[_0x92dae8('0x98')](_0x5dc19d)[_0x92dae8('0xb5')](function(_0x1861c7){return _0x1861c7;});return null;};}function removeEntity(_0xdb8193){return function(_0x546f21){const _0x46cb58=a111_0x376d;if(_0x546f21)return _0x546f21[_0x46cb58('0xcc')]()['then'](function(){const _0x35923e=_0x46cb58,_0x5b5211=_0x546f21[_0x35923e('0xb2')]({'plain':!![]}),_0x1954de=_0x35923e('0xa6');return db[_0x35923e('0x79')][_0x35923e('0xcc')]({'where':{'type':_0x1954de,'resourceId':_0x5b5211['id']}})['then'](function(){return _0x546f21;});})['then'](function(){_0xdb8193['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x45fc21){return function(_0x5a8f01){const _0x12d788=a111_0x376d;return!_0x5a8f01&&_0x45fc21[_0x12d788('0x8')](0x194),_0x5a8f01;};}function handleError(_0x4a512d,_0x128d64){return _0x128d64=_0x128d64||0x1f4,function(_0xf99de2){const _0x437f60=a111_0x376d;logger['error'](_0xf99de2[_0x437f60('0x65')]),_0xf99de2['name']&&delete _0xf99de2[_0x437f60('0xe8')],_0x4a512d[_0x437f60('0x9d')](_0x128d64)[_0x437f60('0x46')](_0xf99de2);};}exports[_0x2d2069('0xf1')]=function(_0x5bd93d,_0x3a73ab){const _0x32c15e=_0x2d2069;let _0x18b6ec={'include':[{'model':db[_0x32c15e('0x101')],'as':_0x32c15e('0xef')}]};const _0x5214bf={},_0x1db54f={'count':0x0,'rows':[]},_0x371e11=_[_0x32c15e('0x7f')](db[_0x32c15e('0x2b')][_0x32c15e('0xb6')],function(_0x5950fa){const _0x36b2f4=_0x32c15e;return{'name':_0x5950fa['fieldName'],'type':_0x5950fa[_0x36b2f4('0x71')][_0x36b2f4('0xed')]};});_0x5214bf['model']=_[_0x32c15e('0x7f')](_0x371e11,_0x32c15e('0xe8')),_0x5214bf['query']=_['keys'](_0x5bd93d[_0x32c15e('0x6b')]),_0x5214bf[_0x32c15e('0x6f')]=_[_0x32c15e('0x96')](_0x5214bf[_0x32c15e('0x70')],_0x5214bf[_0x32c15e('0x6b')]),_0x18b6ec['attributes']=_['intersection'](_0x5214bf[_0x32c15e('0x70')],qs[_0x32c15e('0x72')](_0x5bd93d['query'][_0x32c15e('0x72')])),_0x18b6ec[_0x32c15e('0xe1')]=_0x18b6ec[_0x32c15e('0xe1')]['length']?_0x18b6ec[_0x32c15e('0xe1')]:_0x5214bf['model'];typeof _0x5bd93d[_0x32c15e('0x6b')][_0x32c15e('0xdc')]===_0x32c15e('0x48')&&(_0x18b6ec[_0x32c15e('0xd2')]=qs[_0x32c15e('0xd2')](_0x5bd93d['query'][_0x32c15e('0xd2')]),_0x18b6ec['offset']=qs['offset'](_0x5bd93d[_0x32c15e('0x6b')][_0x32c15e('0xcf')]));_0x18b6ec['order']=qs[_0x32c15e('0xf8')](_0x5bd93d[_0x32c15e('0x6b')][_0x32c15e('0xf8')]),_0x18b6ec[_0x32c15e('0x17')]=qs[_0x32c15e('0x6f')](_['pick'](_0x5bd93d[_0x32c15e('0x6b')],_0x5214bf['filters']),_0x371e11);_0x5bd93d[_0x32c15e('0x6b')][_0x32c15e('0xb')]&&(_0x18b6ec[_0x32c15e('0x17')]=_[_0x32c15e('0xd0')](_0x18b6ec['where'],{[Op['or']]:_[_0x32c15e('0x7f')](_0x371e11,function(_0x1432aa){const _0x228dfd=_0x32c15e;if(_0x1432aa['type']!==_0x228dfd('0x35')){const _0xb73494={};return _0xb73494[_0x1432aa['name']]={[Op[_0x228dfd('0x9f')]]:'%'+_0x5bd93d['query'][_0x228dfd('0xb')]+'%'},_0xb73494;}})}));_0x18b6ec=_[_0x32c15e('0xd0')]({},_0x18b6ec,_0x5bd93d['options']);const _0x170070={'where':_0x18b6ec[_0x32c15e('0x17')]};return db[_0x32c15e('0x2b')][_0x32c15e('0xa3')](_0x170070)[_0x32c15e('0xb5')](function(_0x3d420f){const _0x3cb3ea=_0x32c15e;return _0x1db54f[_0x3cb3ea('0xa3')]=_0x3d420f,_0x5bd93d[_0x3cb3ea('0x6b')]['includeAll']&&(_0x18b6ec[_0x3cb3ea('0x1a')]=[{'all':!![]}]),db['ChatWebsite'][_0x3cb3ea('0x8d')](_0x18b6ec);})[_0x32c15e('0xb5')](function(_0xcee2a4){const _0x580ee2=_0x32c15e;return _0x1db54f[_0x580ee2('0xcb')]=_0xcee2a4,_0x1db54f;})[_0x32c15e('0xb5')](respondWithFilteredResult(_0x3a73ab,_0x18b6ec))['catch'](handleError(_0x3a73ab,null));},exports['show']=function(_0x5c8e88,_0x1c498f){const _0x501b8a=_0x2d2069;let _0x369b9a={'raw':![],'where':{'id':_0x5c8e88['params']['id']},'include':[{'model':db[_0x501b8a('0x101')],'as':_0x501b8a('0xef')}]};const _0x13850d={};return _0x13850d['model']=_[_0x501b8a('0x58')](db[_0x501b8a('0x2b')]['rawAttributes']),_0x13850d[_0x501b8a('0x6b')]=_[_0x501b8a('0x58')](_0x5c8e88['query']),_0x13850d['filters']=_[_0x501b8a('0x96')](_0x13850d['model'],_0x13850d[_0x501b8a('0x6b')]),_0x369b9a[_0x501b8a('0xe1')]=_[_0x501b8a('0x96')](_0x13850d[_0x501b8a('0x70')],qs[_0x501b8a('0x72')](_0x5c8e88['query'][_0x501b8a('0x72')])),_0x369b9a[_0x501b8a('0xe1')]=_0x369b9a[_0x501b8a('0xe1')][_0x501b8a('0x19')]?_0x369b9a[_0x501b8a('0xe1')]:_0x13850d[_0x501b8a('0x70')],_0x5c8e88[_0x501b8a('0x6b')][_0x501b8a('0xc0')]&&(_0x369b9a[_0x501b8a('0x1a')]=[{'all':!![]}]),_0x369b9a=_[_0x501b8a('0xd0')]({},_0x369b9a,_0x5c8e88['options']),db[_0x501b8a('0x2b')][_0x501b8a('0x6c')](_0x369b9a)[_0x501b8a('0xb5')](handleEntityNotFound(_0x1c498f,null))[_0x501b8a('0xb5')](respondWithResult(_0x1c498f,null))[_0x501b8a('0x23')](handleError(_0x1c498f,null));},exports[_0x2d2069('0xe9')]=function(_0xfae1f1,_0x4b4078){const _0x4dbeab=_0x2d2069;return db[_0x4dbeab('0x2b')][_0x4dbeab('0xe9')](_0xfae1f1[_0x4dbeab('0x106')],{})[_0x4dbeab('0xb5')](function(_0x41dae7){const _0x2b6c0b=_0x4dbeab,_0x227188=_0xfae1f1[_0x2b6c0b('0xae')]['get']({'plain':!![]});if(!_0x227188)throw new Error(_0x2b6c0b('0x61'));if(_0x227188[_0x2b6c0b('0xd6')]===_0x2b6c0b('0xae')){const _0x318b12=_0x41dae7[_0x2b6c0b('0xb2')]({'plain':!![]}),_0x48946b=_0x2b6c0b('0xa6');return db[_0x2b6c0b('0x4')][_0x2b6c0b('0x6c')]({'where':{'name':_0x48946b,'userProfileId':_0x227188[_0x2b6c0b('0x92')]},'raw':!![]})[_0x2b6c0b('0xb5')](function(_0x25aa6f){const _0x127a5=_0x2b6c0b;return _0x25aa6f&&_0x25aa6f[_0x127a5('0xe6')]===0x0?db[_0x127a5('0x79')]['create']({'name':_0x318b12[_0x127a5('0xe8')],'resourceId':_0x318b12['id'],'type':_0x25aa6f[_0x127a5('0xe8')],'sectionId':_0x25aa6f['id']},{})[_0x127a5('0xb5')](function(){return _0x41dae7;}):_0x41dae7;})[_0x2b6c0b('0x23')](function(_0x184675){const _0x552bf3=_0x2b6c0b;logger['error'](_0x552bf3('0x80'),_0x184675);throw _0x184675;});}return _0x41dae7;})[_0x4dbeab('0xb5')](respondWithResult(_0x4b4078,0xc9))[_0x4dbeab('0x23')](handleError(_0x4b4078,null));},exports[_0x2d2069('0x98')]=function(_0x47dcfa,_0x30b160){const _0x3fcb7f=_0x2d2069;return _0x47dcfa[_0x3fcb7f('0x106')]['id']&&delete _0x47dcfa[_0x3fcb7f('0x106')]['id'],db[_0x3fcb7f('0x2b')]['findOne']({'where':{'id':_0x47dcfa[_0x3fcb7f('0xa4')]['id']},'include':[{'model':db[_0x3fcb7f('0x101')],'as':_0x3fcb7f('0xef')}]})[_0x3fcb7f('0xb5')](handleEntityNotFound(_0x30b160,null))[_0x3fcb7f('0xb5')](saveUpdates(_0x47dcfa[_0x3fcb7f('0x106')],null))[_0x3fcb7f('0xb5')](respondWithResult(_0x30b160,null))[_0x3fcb7f('0x23')](handleError(_0x30b160,null));},exports[_0x2d2069('0xcc')]=function(_0x895695,_0x2b5fc6){const _0x241cf9=_0x2d2069;return db[_0x241cf9('0x2b')][_0x241cf9('0x6c')]({'where':{'id':_0x895695[_0x241cf9('0xa4')]['id']}})[_0x241cf9('0xb5')](handleEntityNotFound(_0x2b5fc6,null))['then'](removeEntity(_0x2b5fc6,null))['catch'](handleError(_0x2b5fc6,null));},exports[_0x2d2069('0x51')]=function(_0x4221b3,_0x5b73d7){const _0x143bca=_0x2d2069;return db[_0x143bca('0x2b')]['describe']()['then'](respondWithResult(_0x5b73d7,null))[_0x143bca('0x23')](handleError(_0x5b73d7,null));},exports[_0x2d2069('0xf6')]=function(_0x59a42d,_0x522033){const _0x445b1e=_0x2d2069;return _0x59a42d[_0x445b1e('0x106')]['id']&&delete _0x59a42d[_0x445b1e('0x106')]['id'],db[_0x445b1e('0x2b')][_0x445b1e('0x6c')]({'where':{'id':_0x59a42d[_0x445b1e('0xa4')]['id']}})[_0x445b1e('0xb5')](handleEntityNotFound(_0x522033,null))[_0x445b1e('0xb5')](function(_0x3180b3){const _0x45ead8=_0x445b1e;if(_0x3180b3)return _0x59a42d[_0x45ead8('0x106')]['ChatWebsiteId']=_0x3180b3['id'],db[_0x45ead8('0x55')][_0x45ead8('0xe9')](_0x59a42d[_0x45ead8('0x106')]);})[_0x445b1e('0xb5')](respondWithResult(_0x522033,null))['catch'](handleError(_0x522033,null));},exports[_0x2d2069('0x2f')]=function(_0x2cc741,_0x195aaa){const _0x1fcc66=_0x2d2069;let _0x61e9db={'raw':![],'where':{}};const _0x20821a={},_0x159a6e={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x1fcc66('0x6c')]({'where':{'id':_0x2cc741['params']['id']}})['then'](handleEntityNotFound(_0x195aaa,null))[_0x1fcc66('0xb5')](function(_0x3740a7){const _0x2498ee=_0x1fcc66;if(_0x3740a7)return _0x20821a[_0x2498ee('0x70')]=_[_0x2498ee('0x58')](db[_0x2498ee('0x55')]['rawAttributes']),_0x20821a['query']=_['keys'](_0x2cc741['query']),_0x20821a[_0x2498ee('0x6f')]=_[_0x2498ee('0x96')](_0x20821a['model'],_0x20821a[_0x2498ee('0x6b')]),_0x61e9db[_0x2498ee('0xe1')]=_['intersection'](_0x20821a[_0x2498ee('0x70')],qs[_0x2498ee('0x72')](_0x2cc741[_0x2498ee('0x6b')][_0x2498ee('0x72')])),_0x61e9db[_0x2498ee('0xe1')]=_0x61e9db[_0x2498ee('0xe1')][_0x2498ee('0x19')]?_0x61e9db[_0x2498ee('0xe1')]:_0x20821a[_0x2498ee('0x70')],typeof _0x2cc741[_0x2498ee('0x6b')][_0x2498ee('0xdc')]===_0x2498ee('0x48')&&(_0x61e9db[_0x2498ee('0xd2')]=qs[_0x2498ee('0xd2')](_0x2cc741[_0x2498ee('0x6b')][_0x2498ee('0xd2')]),_0x61e9db[_0x2498ee('0xcf')]=qs['offset'](_0x2cc741['query']['offset'])),_0x61e9db[_0x2498ee('0xe5')]=qs[_0x2498ee('0xf8')](_0x2cc741[_0x2498ee('0x6b')][_0x2498ee('0xf8')]),_0x61e9db[_0x2498ee('0x17')]=qs[_0x2498ee('0x6f')](_[_0x2498ee('0xc3')](_0x2cc741['query'],_0x20821a[_0x2498ee('0x6f')])),_0x61e9db[_0x2498ee('0x17')][_0x2498ee('0x40')]=_0x3740a7['id'],_0x2cc741[_0x2498ee('0x6b')][_0x2498ee('0xb')]&&(_0x61e9db[_0x2498ee('0x17')]=_[_0x2498ee('0xd0')](_0x61e9db['where'],{[Op['or']]:_[_0x2498ee('0x7f')](_0x61e9db[_0x2498ee('0xe1')],function(_0x4408c9){const _0x7f4caa=_0x2498ee,_0xe9e446={};return _0xe9e446[_0x4408c9]={[Op[_0x7f4caa('0x9f')]]:'%'+_0x2cc741[_0x7f4caa('0x6b')][_0x7f4caa('0xb')]+'%'},_0xe9e446;})})),_0x61e9db=_[_0x2498ee('0xd0')]({},_0x61e9db,_0x2cc741['options']),db[_0x2498ee('0x55')][_0x2498ee('0xa3')]({'where':_0x61e9db[_0x2498ee('0x17')]})['then'](function(_0x343b18){const _0x35c565=_0x2498ee;return _0x159a6e[_0x35c565('0xa3')]=_0x343b18,_0x2cc741['query'][_0x35c565('0xc0')]&&(_0x61e9db[_0x35c565('0x1a')]=[{'all':!![]}]),db[_0x35c565('0x55')][_0x35c565('0x8d')](_0x61e9db);})[_0x2498ee('0xb5')](function(_0x432b04){const _0x3f2702=_0x2498ee;return _0x159a6e[_0x3f2702('0xcb')]=_0x432b04,_0x159a6e;});})['then'](respondWithFilteredResult(_0x195aaa,_0x61e9db))[_0x1fcc66('0x23')](handleError(_0x195aaa,null));},exports[_0x2d2069('0xfc')]=function(_0x4aaf3e,_0x212bca){const _0x2bfd72=_0x2d2069;return db[_0x2bfd72('0x2b')][_0x2bfd72('0x6c')]({'where':{'id':_0x4aaf3e['params']['id']}})['then'](handleEntityNotFound(_0x212bca,null))[_0x2bfd72('0xb5')](function(_0x44eab4){const _0x328426=_0x2bfd72;if(_0x44eab4)return _0x44eab4[_0x328426('0xfc')](_0x4aaf3e[_0x328426('0x6b')][_0x328426('0xc9')]);})[_0x2bfd72('0xb5')](respondWithStatusCode(_0x212bca,null))[_0x2bfd72('0x23')](handleError(_0x212bca,null));},exports[_0x2d2069('0x64')]=function(_0x5dd66e,_0xc2ed66){const _0xebf0a=_0x2d2069;return _0x5dd66e[_0xebf0a('0x106')]['id']&&delete _0x5dd66e[_0xebf0a('0x106')]['id'],db['ChatWebsite'][_0xebf0a('0x6c')]({'where':{'id':_0x5dd66e['params']['id']}})[_0xebf0a('0xb5')](handleEntityNotFound(_0xc2ed66,null))[_0xebf0a('0xb5')](function(_0x366d70){const _0x21871f=_0xebf0a;if(_0x366d70)return _0x5dd66e[_0x21871f('0x106')]['ChatWebsiteId']=_0x366d70['id'],db[_0x21871f('0xb3')][_0x21871f('0xe9')](_0x5dd66e[_0x21871f('0x106')]);})[_0xebf0a('0xb5')](respondWithResult(_0xc2ed66,null))['catch'](handleError(_0xc2ed66,null));},exports[_0x2d2069('0x9b')]=function(_0x37dae8,_0x19a0be){const _0x4109f2=_0x2d2069;let _0x3801db={'raw':![],'where':{}};const _0x6e6ba0={},_0x19eb9d={'count':0x0,'rows':[]};return db[_0x4109f2('0x2b')][_0x4109f2('0x6c')]({'where':{'id':_0x37dae8[_0x4109f2('0xa4')]['id']}})[_0x4109f2('0xb5')](handleEntityNotFound(_0x19a0be,null))[_0x4109f2('0xb5')](function(_0xcc4f91){const _0x58d56b=_0x4109f2;if(_0xcc4f91)return _0x6e6ba0[_0x58d56b('0x70')]=_[_0x58d56b('0x58')](db[_0x58d56b('0xb3')][_0x58d56b('0xb6')]),_0x6e6ba0[_0x58d56b('0x6b')]=_[_0x58d56b('0x58')](_0x37dae8['query']),_0x6e6ba0['filters']=_[_0x58d56b('0x96')](_0x6e6ba0['model'],_0x6e6ba0[_0x58d56b('0x6b')]),_0x3801db['attributes']=_[_0x58d56b('0x96')](_0x6e6ba0[_0x58d56b('0x70')],qs['fields'](_0x37dae8[_0x58d56b('0x6b')][_0x58d56b('0x72')])),_0x3801db[_0x58d56b('0xe1')]=_0x3801db['attributes']['length']?_0x3801db['attributes']:_0x6e6ba0['model'],typeof _0x37dae8['query'][_0x58d56b('0xdc')]==='undefined'&&(_0x3801db[_0x58d56b('0xd2')]=qs[_0x58d56b('0xd2')](_0x37dae8['query'][_0x58d56b('0xd2')]),_0x3801db[_0x58d56b('0xcf')]=qs[_0x58d56b('0xcf')](_0x37dae8[_0x58d56b('0x6b')][_0x58d56b('0xcf')])),_0x3801db[_0x58d56b('0xe5')]=qs[_0x58d56b('0xf8')](_0x37dae8[_0x58d56b('0x6b')][_0x58d56b('0xf8')]),_0x3801db[_0x58d56b('0x17')]=qs[_0x58d56b('0x6f')](_[_0x58d56b('0xc3')](_0x37dae8[_0x58d56b('0x6b')],_0x6e6ba0[_0x58d56b('0x6f')])),_0x3801db['where'][_0x58d56b('0x40')]=_0xcc4f91['id'],_0x37dae8[_0x58d56b('0x6b')][_0x58d56b('0xb')]&&(_0x3801db['where']=_[_0x58d56b('0xd0')](_0x3801db['where'],{[Op['or']]:_[_0x58d56b('0x7f')](_0x3801db[_0x58d56b('0xe1')],function(_0x2574bc){const _0x4d6fa6=_0x58d56b,_0x321408={};return _0x321408[_0x2574bc]={[Op[_0x4d6fa6('0x9f')]]:'%'+_0x37dae8[_0x4d6fa6('0x6b')][_0x4d6fa6('0xb')]+'%'},_0x321408;})})),_0x3801db=_[_0x58d56b('0xd0')]({},_0x3801db,_0x37dae8[_0x58d56b('0x3b')]),db['CannedAnswer']['count']({'where':_0x3801db['where']})[_0x58d56b('0xb5')](function(_0x48b9ea){const _0x38b374=_0x58d56b;return _0x19eb9d[_0x38b374('0xa3')]=_0x48b9ea,_0x37dae8['query']['includeAll']&&(_0x3801db['include']=[{'all':!![]}]),db[_0x38b374('0xb3')][_0x38b374('0x8d')](_0x3801db);})[_0x58d56b('0xb5')](function(_0xb17547){const _0x4241cb=_0x58d56b;return _0x19eb9d[_0x4241cb('0xcb')]=_0xb17547,_0x19eb9d;});})[_0x4109f2('0xb5')](respondWithFilteredResult(_0x19a0be,_0x3801db))[_0x4109f2('0x23')](handleError(_0x19a0be,null));},exports[_0x2d2069('0x37')]=function(_0xae4d0a,_0x47db9e){const _0x1eb717=_0x2d2069;return db['ChatWebsite']['findOne']({'where':{'id':_0xae4d0a['params']['id']}})['then'](handleEntityNotFound(_0x47db9e,null))[_0x1eb717('0xb5')](function(_0x101c51){const _0x581109=_0x1eb717;if(_0x101c51)return _0x101c51[_0x581109('0x37')](_0xae4d0a[_0x581109('0x6b')]['ids']);})[_0x1eb717('0xb5')](respondWithStatusCode(_0x47db9e,null))[_0x1eb717('0x23')](handleError(_0x47db9e,null));},exports[_0x2d2069('0xdf')]=function(_0x2ba481,_0x487327){const _0x34b379=_0x2d2069;return _0x2ba481[_0x34b379('0x106')][_0x34b379('0xe0')]=_0x2ba481[_0x34b379('0x1c')]['filename'],db['ChatWebsite'][_0x34b379('0x6c')]({'where':{'id':_0x2ba481[_0x34b379('0xa4')]['id']}})[_0x34b379('0xb5')](handleEntityNotFound(_0x487327,null))[_0x34b379('0xb5')](saveUpdates(_0x2ba481[_0x34b379('0x106')],null))['then'](respondWithResult(_0x487327,null))[_0x34b379('0x23')](handleError(_0x487327,null));},exports[_0x2d2069('0x50')]=function(_0x4cadd8,_0x4b09f9){const _0x10b228=_0x2d2069;return _0x4cadd8[_0x10b228('0x106')]['agentAvatar']=_0x4cadd8[_0x10b228('0x1c')][_0x10b228('0x33')],db[_0x10b228('0x2b')][_0x10b228('0x6c')]({'where':{'id':_0x4cadd8['params']['id']}})[_0x10b228('0xb5')](handleEntityNotFound(_0x4b09f9,null))[_0x10b228('0xb5')](saveUpdates(_0x4cadd8[_0x10b228('0x106')],null))[_0x10b228('0xb5')](respondWithResult(_0x4b09f9,null))['catch'](handleError(_0x4b09f9,null));},exports[_0x2d2069('0xec')]=function(_0x4f3b97,_0x679f12){const _0x421fb0=_0x2d2069;return _0x4f3b97[_0x421fb0('0x106')][_0x421fb0('0x4b')]=_0x4f3b97['file']['filename'],db[_0x421fb0('0x2b')][_0x421fb0('0x6c')]({'where':{'id':_0x4f3b97[_0x421fb0('0xa4')]['id']}})[_0x421fb0('0xb5')](handleEntityNotFound(_0x679f12,null))[_0x421fb0('0xb5')](saveUpdates(_0x4f3b97[_0x421fb0('0x106')],null))['then'](respondWithResult(_0x679f12,null))[_0x421fb0('0x23')](handleError(_0x679f12,null));},exports[_0x2d2069('0x4a')]=function(_0x3dfc75,_0x2f8278){const _0x40cdd4=_0x2d2069;return _0x3dfc75[_0x40cdd4('0x106')][_0x40cdd4('0x85')]=_0x3dfc75[_0x40cdd4('0x1c')][_0x40cdd4('0x33')],db[_0x40cdd4('0x2b')][_0x40cdd4('0x6c')]({'where':{'id':_0x3dfc75[_0x40cdd4('0xa4')]['id']}})[_0x40cdd4('0xb5')](handleEntityNotFound(_0x2f8278,null))['then'](saveUpdates(_0x3dfc75[_0x40cdd4('0x106')],null))['then'](respondWithResult(_0x2f8278,null))[_0x40cdd4('0x23')](handleError(_0x2f8278,null));},exports['getLogo']=function(_0x4c708b,_0x4b033d){const _0xb7073c=_0x2d2069;let _0x301bba=path[_0xb7073c('0xdb')](config[_0xb7073c('0x90')],'server/files/images/logos/default_logo.svg');const _0x235a59={'where':{'id':_0x4c708b[_0xb7073c('0xa4')]['id']},'attributes':['id',_0xb7073c('0xe0')],'raw':!![]};let _0x17ec48=![];return require(_0xb7073c('0xab'))[_0xb7073c('0x8b')]()[_0xb7073c('0xb5')](function(_0x17a7a7){const _0x746667=_0xb7073c;_0x17a7a7&&(_0x17ec48=_0x17a7a7[_0x746667('0xcd')]);})[_0xb7073c('0xb5')](function(){const _0x2120f6=_0xb7073c;return db[_0x2120f6('0x2b')]['findOne'](_0x235a59);})['then'](handleEntityNotFound(_0x4b033d,null))['then'](function(_0x401922){const _0x376465=_0xb7073c;if(_0x401922)return!_[_0x376465('0x8f')](_0x401922[_0x376465('0xe0')])&&(fs[_0x376465('0xb7')](path[_0x376465('0xdb')](config[_0x376465('0x90')],_0x376465('0x45'),_0x401922[_0x376465('0xe0')]))&&_0x17ec48&&(_0x301bba=path[_0x376465('0xdb')](config[_0x376465('0x90')],_0x376465('0x45'),_0x401922[_0x376465('0xe0')]))),_0x4b033d['download'](_0x301bba);})[_0xb7073c('0x23')](handleError(_0x4b033d,null));},exports[_0x2d2069('0xac')]=function(_0x495df5,_0x4518e0){const _0x258cc7=_0x2d2069;let _0x370e83=path[_0x258cc7('0xdb')](config[_0x258cc7('0x90')],_0x258cc7('0x18'));const _0x46a2ba={'where':{'id':_0x495df5[_0x258cc7('0xa4')]['id']},'attributes':['id',_0x258cc7('0x87')],'raw':!![]};return db[_0x258cc7('0x2b')]['findOne'](_0x46a2ba)[_0x258cc7('0xb5')](handleEntityNotFound(_0x4518e0,null))['then'](function(_0x15d6d6){const _0x1242f4=_0x258cc7;if(_0x15d6d6)return!_['isNil'](_0x15d6d6[_0x1242f4('0x87')])&&(fs['existsSync'](path['join'](config[_0x1242f4('0x90')],_0x1242f4('0x7'),_0x15d6d6[_0x1242f4('0x87')]))&&(_0x370e83=path['join'](config['root'],_0x1242f4('0x7'),_0x15d6d6[_0x1242f4('0x87')]))),_0x4518e0[_0x1242f4('0x9')](_0x370e83);})['catch'](handleError(_0x4518e0,null));},exports[_0x2d2069('0xfa')]=function(_0x137f2f,_0x2acff4){const _0x29dc57=_0x2d2069;let _0x409eb9=path[_0x29dc57('0xdb')](config[_0x29dc57('0x90')],_0x29dc57('0xfe'));const _0xc8006f={'where':{'id':_0x137f2f[_0x29dc57('0xa4')]['id']},'attributes':['id','customerAvatar',_0x29dc57('0x9a')],'raw':!![]};return db[_0x29dc57('0x2b')][_0x29dc57('0x6c')](_0xc8006f)[_0x29dc57('0xb5')](handleEntityNotFound(_0x2acff4,null))[_0x29dc57('0xb5')](function(_0x4cd31b){const _0x3a9c8f=_0x29dc57;if(_0x4cd31b)return!_[_0x3a9c8f('0x8f')](_0x4cd31b[_0x3a9c8f('0x4b')])&&(fs[_0x3a9c8f('0xb7')](path[_0x3a9c8f('0xdb')](config[_0x3a9c8f('0x90')],_0x3a9c8f('0x7'),_0x4cd31b[_0x3a9c8f('0x4b')]))&&_0x4cd31b[_0x3a9c8f('0x9a')]&&(_0x409eb9=path['join'](config[_0x3a9c8f('0x90')],_0x3a9c8f('0x7'),_0x4cd31b[_0x3a9c8f('0x4b')]))),_0x2acff4['download'](_0x409eb9);})['catch'](handleError(_0x2acff4,null));},exports['getSystemAvatar']=function(_0x58854f,_0x57b304){const _0x152538=_0x2d2069;let _0x18476f=path['join'](config[_0x152538('0x90')],_0x152538('0xf'));const _0x42369e={'where':{'id':_0x58854f[_0x152538('0xa4')]['id']},'attributes':['id',_0x152538('0x85')],'raw':!![]};return db['ChatWebsite'][_0x152538('0x6c')](_0x42369e)[_0x152538('0xb5')](handleEntityNotFound(_0x57b304,null))[_0x152538('0xb5')](function(_0x1a8f31){const _0x324554=_0x152538;if(_0x1a8f31)return!_['isNil'](_0x1a8f31['systemAvatar'])&&(fs[_0x324554('0xb7')](path[_0x324554('0xdb')](config[_0x324554('0x90')],_0x324554('0x7'),_0x1a8f31[_0x324554('0x85')]))&&(_0x18476f=path[_0x324554('0xdb')](config[_0x324554('0x90')],_0x324554('0x7'),_0x1a8f31['systemAvatar']))),_0x57b304[_0x324554('0x9')](_0x18476f);})['catch'](handleError(_0x57b304,null));},exports[_0x2d2069('0x5d')]=function(_0x43c36c,_0x236dfb){const _0x66093f=_0x2d2069,_0xc41cfb=require(_0x66093f('0xf4')),_0x420a46=new _0xc41cfb(),_0x2a67c0=_0x420a46['setUA'](_0x43c36c['headers'][_0x66093f('0xce')])[_0x66093f('0x5f')](),_0x36474d={'body':_0x43c36c['body'],'channel':_0x66093f('0x104')};let _0x1eb532=[],_0x1a9a54=[];const _0x43f435={};let _0x430d0f=![];return db['CmContact'][_0x66093f('0x51')]()['then'](function(_0x4b1dbd){const _0xe8c02c=_0x66093f;if(!_0x4b1dbd)throw new db[(_0xe8c02c('0x89'))][(_0xe8c02c('0x3a'))](_0xe8c02c('0x100'));_0x1eb532=_[_0xe8c02c('0xa1')](_['keys'](_0x4b1dbd),['createdAt',_0xe8c02c('0x24')]),_0x1a9a54=_[_0xe8c02c('0xa1')](_['keys'](_0x4b1dbd),[_0xe8c02c('0xbc'),_0xe8c02c('0x24'),_0xe8c02c('0x5a'),_0xe8c02c('0x20')]);_0x43c36c[_0xe8c02c('0x106')]['id']&&delete _0x43c36c[_0xe8c02c('0x106')]['id'];if(_['isNil'](_0x43c36c[_0xe8c02c('0x106')][_0xe8c02c('0xa7')]))throw new db[(_0xe8c02c('0x89'))]['ValidationError'](_0xe8c02c('0xf3'));if(_[_0xe8c02c('0x8f')](_0x43c36c['body'][_0xe8c02c('0x106')])||_0x43c36c[_0xe8c02c('0x106')]['body']==='')throw new db['Sequelize']['ValidationError'](_0xe8c02c('0x16'));if(_['isNil'](_0x43c36c['body']['mapKey']))throw new db[(_0xe8c02c('0x89'))][(_0xe8c02c('0x3a'))](_0xe8c02c('0x1b')+_0x1a9a54);if(!_[_0xe8c02c('0xee')](_0x1a9a54,_0x43c36c['body']['mapKey']))throw new db[(_0xe8c02c('0x89'))][(_0xe8c02c('0x3a'))](_0xe8c02c('0x1')+_0x1a9a54);_0x43f435[_0x43c36c[_0xe8c02c('0x106')][_0xe8c02c('0xb9')]]=_0x43c36c['body'][_0xe8c02c('0xa7')];})[_0x66093f('0xb5')](function(){const _0x590a73=_0x66093f;return db[_0x590a73('0x2b')][_0x590a73('0x6c')]({'where':{'id':_0x43c36c[_0x590a73('0xa4')]['id']},'include':[{'model':db[_0x590a73('0x74')],'as':'List','include':[{'model':db[_0x590a73('0xd5')],'as':_0x590a73('0xc7'),'where':_0x43f435,'limit':0x1,'order':[[_0x590a73('0x24'),_0x590a73('0x109')]]}]},{'model':db[_0x590a73('0x75')],'as':_0x590a73('0x32')}]});})[_0x66093f('0xb5')](handleEntityNotFound(_0x236dfb,null))[_0x66093f('0xb5')](function(_0x43b0c0){const _0x3f8b9f=_0x66093f;if(_0x43b0c0&&_0x43b0c0[_0x3f8b9f('0x66')]){_0x36474d[_0x3f8b9f('0xf2')]=_0x43b0c0,_0x36474d[_0x3f8b9f('0xd1')]=_0x43b0c0[_0x3f8b9f('0x32')],_0x36474d['list']=_0x43b0c0[_0x3f8b9f('0x66')],_0x36474d[_0x3f8b9f('0xd1')]=_[_0x3f8b9f('0x30')](_0x36474d[_0x3f8b9f('0xd1')],[_0x3f8b9f('0xa8')],['asc']);_0x36474d['account'][_0x3f8b9f('0x32')]&&delete _0x36474d[_0x3f8b9f('0xf2')][_0x3f8b9f('0x32')];if(_0x36474d[_0x3f8b9f('0xf2')]['List']&&_0x36474d[_0x3f8b9f('0xf2')][_0x3f8b9f('0x66')][_0x3f8b9f('0xc7')][_0x3f8b9f('0x19')])return _0x36474d[_0x3f8b9f('0xf2')][_0x3f8b9f('0x66')][_0x3f8b9f('0xc7')][0x0];const _0x10b630=_[_0x3f8b9f('0x54')](_0x43c36c[_0x3f8b9f('0x106')],{'firstName':_0x43c36c['body']['from'],'ListId':_0x43b0c0[_0x3f8b9f('0x20')]});return _0x10b630[_0x43c36c[_0x3f8b9f('0x106')][_0x3f8b9f('0xb9')]]=_0x43c36c[_0x3f8b9f('0x106')][_0x3f8b9f('0xa7')],db['CmContact'][_0x3f8b9f('0xe9')](_0x10b630,{'fields':_0x1eb532,'raw':!![]});}})[_0x66093f('0xb5')](handleEntityNotFound(_0x236dfb,null))['then'](function(_0x2d5ee5){const _0x1be235=_0x66093f;_0x36474d[_0x1be235('0x27')]=_0x2d5ee5;let _0x379b8c=_0x43c36c[_0x1be235('0x106')][_0x1be235('0x3f')];if(_0x43c36c['headers'][_0x1be235('0x6a')])_0x379b8c=_0x43c36c[_0x1be235('0x84')][_0x1be235('0x6a')];else _0x43c36c['headers']['x-forwarded-for']&&(_0x379b8c=_['first'](_0x43c36c['headers']['x-forwarded-for']['split'](',')));if(_0x2d5ee5){const _0x1b3b24={'ContactId':_0x2d5ee5['id'],'ChatWebsiteId':_0x43c36c[_0x1be235('0xa4')]['id'],'from':(_0x2d5ee5[_0x1be235('0x103')]||'')+'\x20'+(_0x2d5ee5[_0x1be235('0x14')]||''),'customerIp':_0x379b8c,'customerPort':_0x43c36c[_0x1be235('0x84')]['x-real-port']?_0x43c36c[_0x1be235('0x84')]['x-real-port']:null,'referer':_0x43c36c[_0x1be235('0x106')][_0x1be235('0x7a')],'browserName':_0x2a67c0[_0x1be235('0x99')][_0x1be235('0xe8')]&&_0x2a67c0[_0x1be235('0x99')][_0x1be235('0x0')]?util[_0x1be235('0x63')]('%s\x20%s',_0x2a67c0[_0x1be235('0x99')][_0x1be235('0xe8')],_0x2a67c0['browser']['version']):_0x1be235('0x5b'),'browserVersion':_0x2a67c0[_0x1be235('0x99')]['version']||_0x1be235('0x5b'),'osName':util['format']('%s\x20%s',_0x2a67c0['os'][_0x1be235('0xe8')],_0x2a67c0['os']['version']),'osVersion':_0x2a67c0['os'][_0x1be235('0x0')],'deviceModel':_0x2a67c0[_0x1be235('0x15')]['model']&&_0x2a67c0[_0x1be235('0x15')][_0x1be235('0x91')]?util[_0x1be235('0x63')]('%s\x20%s\x20%s',_0x2a67c0[_0x1be235('0x15')][_0x1be235('0x70')],_0x2a67c0['device']['vendor'],_0x2a67c0[_0x1be235('0x15')][_0x1be235('0x71')]):null,'deviceVendor':_0x2a67c0[_0x1be235('0x15')][_0x1be235('0x91')],'deviceType':_0x2a67c0['device'][_0x1be235('0x71')],'formData':JSON[_0x1be235('0x42')](_0x43c36c[_0x1be235('0x106')])},_0x3b392f={'ChatWebsiteId':_0x43c36c[_0x1be235('0xa4')]['id'],'closed':![]};if(_0x43c36c[_0x1be235('0x106')]['threadId'])return _0x3b392f[_0x1be235('0xeb')]=_0x43c36c[_0x1be235('0x106')]['threadId'],db[_0x1be235('0x8e')]['findOne']({'where':_0x3b392f})[_0x1be235('0xb5')](function(_0x5d409a){const _0x4a5fa2=_0x1be235;if(_0x5d409a)return[_0x5d409a,![]];return _0x1b3b24[_0x4a5fa2('0xeb')]=_0x43c36c[_0x4a5fa2('0x106')][_0x4a5fa2('0xeb')],_0x1b3b24['externalUrl']=_0x43c36c[_0x4a5fa2('0x106')]['externalUrl'],db[_0x4a5fa2('0x8e')][_0x4a5fa2('0xe9')](_0x1b3b24)[_0x4a5fa2('0xb5')](function(_0x13ef4d){return[_0x13ef4d,!![]];});});_0x3b392f[_0x1be235('0x5')]=_0x2d5ee5['id'];if(_0x43c36c[_0x1be235('0x106')][_0x1be235('0xb8')]&&_0x43c36c[_0x1be235('0x106')][_0x1be235('0xb8')]['id'])return _0x3b392f['id']=_0x43c36c[_0x1be235('0x106')][_0x1be235('0xb8')]['id'],db[_0x1be235('0x8e')][_0x1be235('0x6c')]({'where':_0x3b392f})['then'](function(_0x358267){const _0x1fc3d0=_0x1be235;if(_0x358267)return[_0x358267,![]];return db[_0x1fc3d0('0x8e')][_0x1fc3d0('0xe9')](_0x1b3b24)[_0x1fc3d0('0xb5')](function(_0x42b423){return[_0x42b423,!![]];});});return db[_0x1be235('0x8e')][_0x1be235('0xe9')](_0x1b3b24)[_0x1be235('0xb5')](function(_0x159688){return[_0x159688,!![]];});}})['then'](function([_0xd8a498,_0x555a87]){const _0x743d6f=_0x66093f;if(_0xd8a498){_0x430d0f=_0x555a87;if(!_0x555a87){const _0x3c611b={'from':(_0x36474d['contact'][_0x743d6f('0x103')]||'')+'\x20'+(_0x36474d[_0x743d6f('0x27')][_0x743d6f('0x14')]||'')};return _0x43c36c[_0x743d6f('0x106')][_0x743d6f('0xeb')]&&_0x43c36c[_0x743d6f('0x106')][_0x743d6f('0x36')]&&_0x43c36c[_0x743d6f('0x106')][_0x743d6f('0xeb')]!=_0x43c36c[_0x743d6f('0x106')][_0x743d6f('0x36')]&&(_0x3c611b[_0x743d6f('0xeb')]=_0x43c36c['body'][_0x743d6f('0x36')]),_0xd8a498['update'](_0x3c611b);}else return _0xd8a498;}})['then'](function(_0x34238d){const _0x2e4c58=_0x66093f;return _0x36474d[_0x2e4c58('0xb8')]=_0x34238d[_0x2e4c58('0xb2')]({'plain':!![]}),_0x36474d[_0x2e4c58('0xb8')][_0x2e4c58('0x3e')]=_0x430d0f,_0x36474d[_0x2e4c58('0xb8')]['created']&&(_0x36474d[_0x2e4c58('0xf2')][_0x2e4c58('0x31')]&&_0x36474d[_0x2e4c58('0xd1')]['push']({'id':0x0,'priority':_0x36474d[_0x2e4c58('0xd1')][_0x2e4c58('0x19')]+0x1,'app':_0x2e4c58('0x38'),'appdata':_0x2e4c58('0x2e'),'interval':_0x2e4c58('0xf0')})),db['ChatMessage'][_0x2e4c58('0xe9')]({'body':_0x43c36c[_0x2e4c58('0x106')][_0x2e4c58('0x106')],'ChatWebsiteId':_0x43c36c['params']['id'],'ChatInteractionId':_0x34238d['id'],'direction':'in','ContactId':_0x36474d[_0x2e4c58('0x27')]['id'],'AttachmentId':_0x43c36c['body'][_0x2e4c58('0xe2')]});})[_0x66093f('0xb5')](function(_0x2ef214){const _0x17bcfe=_0x66093f;_0x36474d['message']=_0x2ef214;if(_0x36474d[_0x17bcfe('0xb8')][_0x17bcfe('0x2d')])return db[_0x17bcfe('0x29')]['findOne']({'attributes':['id',_0x17bcfe('0xe8')],'where':{'id':_0x36474d[_0x17bcfe('0xb8')][_0x17bcfe('0x2d')]}})[_0x17bcfe('0xb5')](function(_0x4a85c4){const _0x264005=_0x17bcfe;return _0x4a85c4&&(_0x36474d['applications']['unshift']({'id':0x0,'priority':0x0,'app':_0x264005('0xf5'),'appdata':_0x4a85c4[_0x264005('0xe8')]+','+(_0x36474d[_0x264005('0xf2')][_0x264005('0x7b')]||0xa),'interval':_0x264005('0xf0')}),_0x36474d[_0x264005('0xbf')]=!![]),respondWithRpcPromise('Start',_0x264005('0xd8'),_0x36474d);});return respondWithRpcPromise(_0x17bcfe('0xb0'),_0x17bcfe('0xd8'),_0x36474d);})[_0x66093f('0xb5')](function(_0x375ba0){const _0x178939=_0x66093f;return respondWithRpcPromise(_0x178939('0x28'),_0x178939('0x28'),{'event':'notify','message':_0x375ba0},client9002),_0x375ba0;})['then'](respondWithResult(_0x236dfb,null))[_0x66093f('0x23')](handleError(_0x236dfb,null));},exports['offline']=function(_0x468ace,_0x34383d){const _0x1299c1=_0x2d2069;let _0x58c889,_0x273ed7,_0x250023=[];const _0x70af6c={};return db[_0x1299c1('0xd5')][_0x1299c1('0x51')]()['then'](function(_0x1cd099){const _0x19e228=_0x1299c1;if(!_0x1cd099)throw new db[(_0x19e228('0x89'))][(_0x19e228('0x3a'))]('no\x20available\x20attributes');_0x250023=_['difference'](_[_0x19e228('0x58')](_0x1cd099),[_0x19e228('0xbc'),_0x19e228('0x24'),_0x19e228('0x5a'),'ListId']);_0x468ace[_0x19e228('0x106')]['id']&&delete _0x468ace['body']['id'];if(_[_0x19e228('0x8f')](_0x468ace[_0x19e228('0x106')]['from']))throw _0x34383d[_0x19e228('0x9d')](0x1f4)['send'](new db[(_0x19e228('0x89'))]['ValidationError'](_0x19e228('0xf3')));if(_['isNil'](_0x468ace[_0x19e228('0x106')][_0x19e228('0x106')])||_0x468ace[_0x19e228('0x106')][_0x19e228('0x106')]==='')throw _0x34383d[_0x19e228('0x9d')](0x1f4)[_0x19e228('0x46')](new db[(_0x19e228('0x89'))][(_0x19e228('0x3a'))](_0x19e228('0x16')));if(_['isNil'](_0x468ace[_0x19e228('0x106')][_0x19e228('0x88')]))throw _0x34383d[_0x19e228('0x9d')](0x1f4)[_0x19e228('0x46')](new db[(_0x19e228('0x89'))][(_0x19e228('0x3a'))](_0x19e228('0xb1')+_0x250023));if(!_[_0x19e228('0xee')](_0x250023,_0x468ace[_0x19e228('0x106')][_0x19e228('0x88')]))throw _0x34383d[_0x19e228('0x9d')](0x1f4)[_0x19e228('0x46')](new db['Sequelize'][(_0x19e228('0x3a'))](_0x19e228('0xc')+_0x250023));_0x70af6c[_0x468ace[_0x19e228('0x106')]['mapKeyOffline']]=_0x468ace['body'][_0x19e228('0xa7')];})[_0x1299c1('0xb5')](function(){const _0x3521c1=_0x1299c1;return db[_0x3521c1('0x2b')][_0x3521c1('0x6c')]({'where':{'id':_0x468ace[_0x3521c1('0xa4')]['id']},'include':[{'model':db[_0x3521c1('0x74')],'as':'List'}]});})[_0x1299c1('0xb5')](handleEntityNotFound(_0x34383d,null))[_0x1299c1('0xb5')](function(_0x1fc64f){const _0x390a65=_0x1299c1;if(_0x1fc64f&&_0x1fc64f[_0x390a65('0x66')]){_0x273ed7=_0x1fc64f;const _0x2b9562=_[_0x390a65('0x54')](_0x468ace[_0x390a65('0x106')],{'firstName':_0x468ace[_0x390a65('0x106')][_0x390a65('0xa7')],'phone':_0x468ace[_0x390a65('0x106')][_0x390a65('0xa7')],'ListId':_0x1fc64f[_0x390a65('0x20')]});return _0x2b9562[_0x468ace[_0x390a65('0x106')]['mapKeyOffline']]=_0x468ace['body'][_0x390a65('0xa7')],db[_0x390a65('0xd5')][_0x390a65('0xa9')]({'where':_0x70af6c,'defaults':_0x2b9562});}})['then'](function([_0x3042a6]){const _0x1072c8=_0x1299c1;if(_0x3042a6){const _0x3563e4=fs['readFileSync'](path[_0x1072c8('0xdb')](config[_0x1072c8('0x90')],_0x1072c8('0x3c')),_0x1072c8('0x78')),_0x1ddb10=ejs[_0x1072c8('0x52')](_0x3563e4,{'body':_[_0x1072c8('0xe')](_0x468ace[_0x1072c8('0x106')][_0x1072c8('0x106')]),'bodyTitle':_0x273ed7[_0x1072c8('0x22')]});return db[_0x1072c8('0xa')]['create']({'body':_0x1ddb10,'ContactId':_0x3042a6['id'],'ChatWebsiteId':_0x273ed7['id']});}})['then'](function(_0x29720d){const _0x588db2=_0x1299c1;if(_0x29720d)return _0x58c889=_0x29720d,db[_0x588db2('0x25')][_0x588db2('0x6c')]({'where':{'service':!![]},'include':[{'model':db['MailServerOut'],'as':'Smtp','raw':!![]}]});})[_0x1299c1('0xb5')](function(_0x5900cd){const _0xc1660=_0x1299c1;if(_0x5900cd&&_0x5900cd[_0xc1660('0x6')]&&_0x273ed7[_0xc1660('0x62')]){const _0x1455d3={'tls':{'rejectUnauthorized':![]}};return _0x5900cd[_0xc1660('0x6')]['service']?_0x1455d3[_0xc1660('0x3d')]=_0x5900cd['Smtp'][_0xc1660('0x3d')]:(_0x1455d3[_0xc1660('0x12')]=_0x5900cd[_0xc1660('0x6')][_0xc1660('0x12')],_0x1455d3[_0xc1660('0xc8')]=_0x5900cd[_0xc1660('0x6')][_0xc1660('0xc8')],_0x1455d3[_0xc1660('0x11')]=_0x5900cd[_0xc1660('0x6')][_0xc1660('0x11')]),_0x5900cd['Smtp'][_0xc1660('0x6d')]&&(_0x1455d3[_0xc1660('0x53')]={'user':_0x5900cd[_0xc1660('0x6')][_0xc1660('0xae')],'pass':_0x5900cd[_0xc1660('0x6')][_0xc1660('0x7e')]}),respondWithRpcPromise('SendMail',_0xc1660('0x3'),{'account':_0x1455d3,'message':{'from':util[_0xc1660('0x63')](_0xc1660('0xfd'),_0x5900cd[_0xc1660('0xe8')],_0x5900cd[_0xc1660('0xaf')]||_0x5900cd[_0xc1660('0x6')][_0xc1660('0xae')]),'to':_0x273ed7[_0xc1660('0x62')],'subject':_0x273ed7[_0xc1660('0xad')],'text':_0x58c889[_0xc1660('0x106')]}},client9003)[_0xc1660('0xb5')](function(){return _0x58c889;})['catch'](function(_0x26683c){const _0xecec4e=_0xc1660;console[_0xecec4e('0xff')](_0x26683c);});}})[_0x1299c1('0xb5')](function(){if(_0x58c889)return _0x58c889;})[_0x1299c1('0xb5')](respondWithResult(_0x34383d,null))[_0x1299c1('0x23')](handleError(_0x34383d,null));},exports['addInteraction']=function(_0x51d95e,_0x1a5242){const _0x2acb58=_0x2d2069;return db[_0x2acb58('0x8e')][_0x2acb58('0x6c')]({'where':{'id':_0x51d95e[_0x2acb58('0xa4')]['id']}})['then'](function(_0x3ba730){const _0x2d1176=_0x2acb58;if(_0x3ba730)return _0x3ba730[_0x2d1176('0x107')](_0x51d95e[_0x2d1176('0x106')][_0x2d1176('0xc9')],{'through':_['omit'](_0x51d95e[_0x2d1176('0x106')],[_0x2d1176('0xc9'),'id'])});})[_0x2acb58('0xb5')](respondWithResult(_0x1a5242,null))[_0x2acb58('0x23')](handleError(_0x1a5242,null));},exports[_0x2d2069('0xa5')]=function(_0x88a617,_0x582332){const _0xd52f31=_0x2d2069;let _0x5e10bb={'raw':![],'where':{}};const _0x10ca79={},_0x35a155={'count':0x0,'rows':[]};return db['ChatWebsite']['findOne']({'where':{'id':_0x88a617['params']['id']}})[_0xd52f31('0xb5')](handleEntityNotFound(_0x582332,null))['then'](function(_0x3e4ea4){const _0x3bf3fb=_0xd52f31;if(_0x3e4ea4)return _0x10ca79[_0x3bf3fb('0x70')]=_['keys'](db[_0x3bf3fb('0x8e')][_0x3bf3fb('0xb6')]),_0x10ca79[_0x3bf3fb('0x6b')]=_[_0x3bf3fb('0x58')](_0x88a617[_0x3bf3fb('0x6b')]),_0x10ca79[_0x3bf3fb('0x6f')]=_[_0x3bf3fb('0x96')](_0x10ca79[_0x3bf3fb('0x70')],_0x10ca79[_0x3bf3fb('0x6b')]),_0x5e10bb['attributes']=_[_0x3bf3fb('0x96')](_0x10ca79[_0x3bf3fb('0x70')],qs[_0x3bf3fb('0x72')](_0x88a617['query']['fields'])),_0x5e10bb[_0x3bf3fb('0xe1')]=_0x5e10bb[_0x3bf3fb('0xe1')][_0x3bf3fb('0x19')]?_0x5e10bb[_0x3bf3fb('0xe1')]:_0x10ca79[_0x3bf3fb('0x70')],typeof _0x88a617[_0x3bf3fb('0x6b')][_0x3bf3fb('0xdc')]===_0x3bf3fb('0x48')&&(_0x5e10bb['limit']=qs[_0x3bf3fb('0xd2')](_0x88a617[_0x3bf3fb('0x6b')][_0x3bf3fb('0xd2')]),_0x5e10bb[_0x3bf3fb('0xcf')]=qs[_0x3bf3fb('0xcf')](_0x88a617[_0x3bf3fb('0x6b')][_0x3bf3fb('0xcf')])),_0x5e10bb[_0x3bf3fb('0xe5')]=qs[_0x3bf3fb('0xf8')](_0x88a617['query']['sort']),_0x5e10bb[_0x3bf3fb('0x17')]=qs[_0x3bf3fb('0x6f')](_['pick'](_0x88a617[_0x3bf3fb('0x6b')],_0x10ca79['filters'])),_0x5e10bb['where'][_0x3bf3fb('0x40')]=_0x3e4ea4['id'],_0x88a617[_0x3bf3fb('0x6b')][_0x3bf3fb('0xb')]&&(_0x5e10bb[_0x3bf3fb('0x17')]=_[_0x3bf3fb('0xd0')](_0x5e10bb[_0x3bf3fb('0x17')],{[Op['or']]:_[_0x3bf3fb('0x7f')](_0x5e10bb[_0x3bf3fb('0xe1')],function(_0x1b87a8){const _0x29c0f1=_0x3bf3fb,_0x4f0d5f={};return _0x4f0d5f[_0x1b87a8]={[Op[_0x29c0f1('0x9f')]]:'%'+_0x88a617[_0x29c0f1('0x6b')][_0x29c0f1('0xb')]+'%'},_0x4f0d5f;})})),_0x5e10bb=_[_0x3bf3fb('0xd0')]({},_0x5e10bb,_0x88a617[_0x3bf3fb('0x3b')]),db[_0x3bf3fb('0x8e')][_0x3bf3fb('0xa3')]({'where':_0x5e10bb[_0x3bf3fb('0x17')]})[_0x3bf3fb('0xb5')](function(_0x43d6b1){const _0x5ddaf3=_0x3bf3fb;return _0x35a155[_0x5ddaf3('0xa3')]=_0x43d6b1,_0x88a617[_0x5ddaf3('0x6b')]['includeAll']&&(_0x5e10bb[_0x5ddaf3('0x1a')]=[{'model':db[_0x5ddaf3('0xd5')],'as':_0x5ddaf3('0xf9'),'required':![]},{'model':db[_0x5ddaf3('0x29')],'as':_0x5ddaf3('0x9e'),'attributes':[_0x5ddaf3('0xe8'),_0x5ddaf3('0x10'),'internal'],'required':![]},{'model':db[_0x5ddaf3('0x26')],'as':_0x5ddaf3('0x108'),'attributes':['id',_0x5ddaf3('0xe8'),'color'],'where':_0x88a617[_0x5ddaf3('0x6b')][_0x5ddaf3('0xaa')]?{'id':_0x88a617[_0x5ddaf3('0x6b')][_0x5ddaf3('0xaa')]}:undefined,'required':_0x88a617[_0x5ddaf3('0x6b')]['tag']?!![]:![]}]),db[_0x5ddaf3('0x8e')][_0x5ddaf3('0x8d')](_0x5e10bb);})[_0x3bf3fb('0xb5')](function(_0xdd14b6){const _0x47f6e1=_0x3bf3fb;return _0x35a155[_0x47f6e1('0xcb')]=_0xdd14b6,_0x35a155;});})[_0xd52f31('0xb5')](respondWithFilteredResult(_0x582332,_0x5e10bb))[_0xd52f31('0x23')](handleError(_0x582332,null));};function iftimePromise(_0x4869b1,_0x3e42bf){const _0x3b7553=_0x2d2069;return respondWithRpcPromise(_0x3b7553('0x41'),_0x3b7553('0x77'),{'command':_0x3e42bf[_0x3b7553('0xd')]?util[_0x3b7553('0x63')](_0x3b7553('0x39'),_0x4869b1['interval'],_0x3e42bf[_0x3b7553('0xd')]):util[_0x3b7553('0x63')](_0x3b7553('0xe3'),_0x4869b1[_0x3b7553('0xba')])},client9002)[_0x3b7553('0xb5')](function(_0x423d5f){const _0x1ef6f2=_0x3b7553,_0x4a544f=_0x423d5f&&_0x423d5f[_0x1ef6f2('0xf7')](_0x1ef6f2('0x49'))>=0x0?!![]:![];return logger[_0x1ef6f2('0xd9')](_0x1ef6f2('0x1f'),_0x3e42bf['id'],_0x4869b1['id'],_0x4869b1['interval'],_0x4a544f?_0x1ef6f2('0x7c'):_0x1ef6f2('0x1e'),_0x3e42bf['timezone']?_0x3e42bf['timezone']:'No\x20timezone'),_0x4a544f;})[_0x3b7553('0x23')](function(_0x4c44fd){const _0x23072f=_0x3b7553;return logger[_0x23072f('0xff')]('[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)',_0x3e42bf['id'],_0x4869b1['id'],_0x4869b1['interval'],util[_0x23072f('0x56')](_0x4c44fd,{'showHidden':![],'depth':null}),_0x3e42bf['timezone']?_0x3e42bf[_0x23072f('0xd')]:_0x23072f('0x83')),![];});}exports['getSnippet']=function(_0x141f71,_0x12ca1b){const _0xc24bef=_0x2d2069;let _0x4a9bc5=0x0,_0x5e763a=0x0,_0x74ba22=![],_0x91f2f6,_0x285b59;return db['ChatWebsite'][_0xc24bef('0x6c')]({'where':{'id':_0x141f71[_0xc24bef('0xa4')]['id']},'include':[{'model':db[_0xc24bef('0x44')],'as':_0xc24bef('0x44'),'include':[{'model':db[_0xc24bef('0x44')],'as':_0xc24bef('0x73'),'attributes':['id',_0xc24bef('0xba')],'raw':!![]}]}]})[_0xc24bef('0xb5')](handleEntityNotFound(_0x12ca1b,null))[_0xc24bef('0xb5')](function(_0x29c9f1){const _0x4d335a=_0xc24bef;if(_0x29c9f1)return _0x91f2f6=_0x29c9f1,_0x29c9f1[_0x4d335a('0xd7')]({'raw':!![]});})[_0xc24bef('0xb5')](function(_0x2d719f){const _0x41ed6a=_0xc24bef;return _0x91f2f6&&(_0x2d719f&&(_0x285b59=_0x2d719f)),require(_0x41ed6a('0xab'))[_0x41ed6a('0x8b')]();})[_0xc24bef('0xb5')](function(_0x377996){const _0x1a5f66=_0xc24bef;_0x377996&&(_0x5e763a=_0x377996[_0x1a5f66('0xca')],_0x74ba22=_0x377996[_0x1a5f66('0xcd')]);})['then'](function(){return db['ChatInteraction']['count']({'where':{'closed':![]}});})['then'](function(_0xd84f7b){const _0x3bfc92=_0xc24bef;_0x4a9bc5=_0xd84f7b;if(_0x5e763a&&_0xd84f7b>_0x5e763a)return db[_0x3bfc92('0x43')][_0x3bfc92('0x6c')]({'where':{'id':0x1}})['then'](function(_0x4f1f19){const _0x45deb1=_0x3bfc92;_0x4f1f19&&_0x4f1f19[_0x45deb1('0xc2')](_0x45deb1('0x2'));});})[_0xc24bef('0xb5')](function(){const _0x11fd96=_0xc24bef;if(_0x91f2f6[_0x11fd96('0x44')]&&_0x91f2f6[_0x11fd96('0x44')][_0x11fd96('0x73')]){const _0x4d9e9a=[];for(let _0x2a69c3=0x0;_0x2a69c3<_0x91f2f6[_0x11fd96('0x44')][_0x11fd96('0x73')]['length'];_0x2a69c3++){const _0x3cdcba=_0x91f2f6['Interval'][_0x11fd96('0x73')][_0x2a69c3][_0x11fd96('0xb2')]({'plain':!![]});_0x4d9e9a['push'](iftimePromise(_0x3cdcba,_0x91f2f6));}return Promise[_0x11fd96('0xbb')](_0x4d9e9a)[_0x11fd96('0xb5')](function(_0x19b482){return _['some'](_0x19b482);});}else return!![];})[_0xc24bef('0xb5')](function(_0x2b11e6){const _0x2e9908=_0xc24bef,_0x3f5d68=fs[_0x2e9908('0x4e')](path['join'](config[_0x2e9908('0x90')],_0x2e9908('0xe4'))),_0x2c34c3=_0x3f5d68[0x0]||_0x2e9908('0x5b'),_0x367259=fs[_0x2e9908('0x5c')](path[_0x2e9908('0xdb')](config['root'],_0x2e9908('0x69')),_0x2e9908('0x78')),_0xae34db={'chatVersion':_0x2c34c3,'remote':_0x91f2f6[_0x2e9908('0xa2')],'query':querystring['stringify'](_[_0x2e9908('0xd0')](_0x91f2f6['get']({'plain':!![]}),{'customerIp':_0x141f71[_0x2e9908('0x84')][_0x2e9908('0x8a')]||_0x141f71['headers'][_0x2e9908('0x9c')]||_0x141f71['connection']['remoteAddress']||_0x141f71['ip'],'referer':_0x141f71[_0x2e9908('0x84')][_0x2e9908('0x7a')],'openedInteractions':_0x4a9bc5,'maxInteractions':_0x5e763a,'virtual':_0x74ba22[_0x2e9908('0xca')],'online':_0x2b11e6,'custom':_0x74ba22}))['replace'](/'/g,'\x5c\x27')};_0x12ca1b[_0x2e9908('0x46')](ejs[_0x2e9908('0x52')](Mustache[_0x2e9908('0x52')](_0x367259,_0xae34db),{'proactiveActions':_0x285b59,'alignment':_0x91f2f6[_0x2e9908('0x94')],'verticalAlignment':_0x91f2f6['verticalAlignment'],'div_color':_0x91f2f6[_0x2e9908('0x86')],'text_color':_0x91f2f6[_0x2e9908('0xa0')]}));})[_0xc24bef('0x23')](handleError(_0x12ca1b,null));},exports[_0x2d2069('0x97')]=function(_0x843a0c,_0x28994b){const _0x3b2174=_0x2d2069;return db['ChatWebsite'][_0x3b2174('0x6c')]({'where':{'id':_0x843a0c[_0x3b2174('0xa4')]['id']}})[_0x3b2174('0xb5')](handleEntityNotFound(_0x28994b,null))[_0x3b2174('0xb5')](function(_0x2f31ea){const _0x1737a5=_0x3b2174;if(_0x2f31ea)return db[_0x1737a5('0xea')][_0x1737a5('0xc6')](function(_0x4e19b5){const _0x29faae=_0x1737a5;return db['ChatApplication'][_0x29faae('0xcc')]({'where':{'ChatWebsiteId':_0x843a0c[_0x29faae('0xa4')]['id']},'transaction':_0x4e19b5})[_0x29faae('0xb5')](function(){const _0xa9d103=_0x29faae,_0x5a2e68=_[_0xa9d103('0x7f')](_0x843a0c[_0xa9d103('0x106')],function(_0x5e0695){const _0x3ecfb5=_0xa9d103;return _0x5e0695[_0x3ecfb5('0x40')]=_0x843a0c[_0x3ecfb5('0xa4')]['id'],_0x5e0695;});return db[_0xa9d103('0x75')][_0xa9d103('0xbe')](_0x5a2e68,{'transaction':_0x4e19b5});});})[_0x1737a5('0xb5')](function(){const _0x3b455d=_0x1737a5;return db[_0x3b455d('0x75')][_0x3b455d('0x4d')]({'where':{'ChatWebsiteId':_0x843a0c['params']['id']},'order':_0x3b455d('0xa8')});});})[_0x3b2174('0xb5')](respondWithResult(_0x28994b,null))[_0x3b2174('0x23')](handleError(_0x28994b,null));},exports['getApplications']=function(_0x25996e,_0x241549){const _0x51f794=_0x2d2069;let _0x3ead5d={};const _0x5917ce={};let _0x51e5b0,_0x27a66c;return db[_0x51f794('0x2b')]['findOne']({'where':{'id':_0x25996e[_0x51f794('0xa4')]['id']}})[_0x51f794('0xb5')](handleEntityNotFound(_0x241549,null))[_0x51f794('0xb5')](function(_0x58ed55){const _0x3fe8e7=_0x51f794;if(_0x58ed55)return _0x51e5b0=_0x58ed55,_0x5917ce[_0x3fe8e7('0x70')]=_['keys'](db[_0x3fe8e7('0x75')][_0x3fe8e7('0xb6')]),_0x5917ce[_0x3fe8e7('0x6b')]=_[_0x3fe8e7('0x58')](_0x25996e[_0x3fe8e7('0x6b')]),_0x5917ce['filters']=_[_0x3fe8e7('0x96')](_0x5917ce[_0x3fe8e7('0x70')],_0x5917ce[_0x3fe8e7('0x6b')]),_0x3ead5d[_0x3fe8e7('0xe1')]=_[_0x3fe8e7('0x96')](_0x5917ce[_0x3fe8e7('0x70')],qs[_0x3fe8e7('0x72')](_0x25996e['query']['fields'])),_0x3ead5d['attributes']=_0x3ead5d[_0x3fe8e7('0xe1')][_0x3fe8e7('0x19')]?_0x3ead5d[_0x3fe8e7('0xe1')]:_0x5917ce[_0x3fe8e7('0x70')],_0x3ead5d[_0x3fe8e7('0xe5')]=qs[_0x3fe8e7('0xf8')](_0x25996e[_0x3fe8e7('0x6b')]['sort']),_0x3ead5d[_0x3fe8e7('0x17')]=qs[_0x3fe8e7('0x6f')](_[_0x3fe8e7('0xc3')](_0x25996e['query'],_0x5917ce[_0x3fe8e7('0x6f')])),_0x25996e[_0x3fe8e7('0x6b')][_0x3fe8e7('0xb')]&&(_0x3ead5d['where']=_['merge'](_0x3ead5d[_0x3fe8e7('0x17')],{[Op['or']]:_[_0x3fe8e7('0x7f')](_0x3ead5d[_0x3fe8e7('0xe1')],function(_0x536537){const _0x204953=_0x3fe8e7,_0x50c38e={};return _0x50c38e[_0x536537]={[Op[_0x204953('0x9f')]]:'%'+_0x25996e[_0x204953('0x6b')][_0x204953('0xb')]+'%'},_0x50c38e;})})),_0x3ead5d=_[_0x3fe8e7('0xd0')]({},_0x3ead5d,_0x25996e[_0x3fe8e7('0x3b')]),_0x51e5b0[_0x3fe8e7('0x13')](_0x3ead5d);})['then'](function(_0x361790){const _0x10bb7f=_0x51f794;if(_0x361790)return _0x27a66c=_0x361790[_0x10bb7f('0x19')],typeof _0x25996e['query'][_0x10bb7f('0xdc')]===_0x10bb7f('0x48')&&(_0x3ead5d['limit']=qs[_0x10bb7f('0xd2')](_0x25996e[_0x10bb7f('0x6b')][_0x10bb7f('0xd2')]),_0x3ead5d[_0x10bb7f('0xcf')]=qs[_0x10bb7f('0xcf')](_0x25996e['query'][_0x10bb7f('0xcf')])),_0x51e5b0[_0x10bb7f('0x13')](_0x3ead5d);})[_0x51f794('0xb5')](function(_0x4a9f24){if(_0x4a9f24)return _0x4a9f24?{'count':_0x27a66c,'rows':_0x4a9f24}:null;})[_0x51f794('0xb5')](respondWithResult(_0x241549,null))[_0x51f794('0x23')](handleError(_0x241549,null));},exports[_0x2d2069('0x59')]=function(_0x4b7e4d,_0x1bcadf){const _0xc3ef85=_0x2d2069;return db['chatProactiveAction'][_0xc3ef85('0x6c')]({'where':{'id':_0x4b7e4d[_0xc3ef85('0xa4')]['id']}})['then'](function(_0x14f7ff){const _0x5a3f74=_0xc3ef85;if(_0x14f7ff)return _0x14f7ff[_0x5a3f74('0x59')](_0x4b7e4d[_0x5a3f74('0x106')]['ids'],{'through':_[_0x5a3f74('0x2c')](_0x4b7e4d[_0x5a3f74('0x106')],[_0x5a3f74('0xc9'),'id'])});})['then'](respondWithResult(_0x1bcadf,null))[_0xc3ef85('0x23')](handleError(_0x1bcadf,null));},exports[_0x2d2069('0xd7')]=function(_0x2921ce,_0x3ceb5d){const _0x4305b2=_0x2d2069;let _0x5bbb06={};const _0x1dff21={};let _0x2e5ec4,_0x5ab204;return db[_0x4305b2('0x2b')][_0x4305b2('0x6c')]({'where':{'id':_0x2921ce['params']['id']}})[_0x4305b2('0xb5')](handleEntityNotFound(_0x3ceb5d,null))['then'](function(_0x3f9ecc){const _0xf5dd72=_0x4305b2;if(_0x3f9ecc)return _0x2e5ec4=_0x3f9ecc,_0x1dff21[_0xf5dd72('0x70')]=_[_0xf5dd72('0x58')](db[_0xf5dd72('0x81')][_0xf5dd72('0xb6')]),_0x1dff21[_0xf5dd72('0x6b')]=_['keys'](_0x2921ce[_0xf5dd72('0x6b')]),_0x1dff21[_0xf5dd72('0x6f')]=_['intersection'](_0x1dff21[_0xf5dd72('0x70')],_0x1dff21[_0xf5dd72('0x6b')]),_0x5bbb06[_0xf5dd72('0xe1')]=_['intersection'](_0x1dff21[_0xf5dd72('0x70')],qs[_0xf5dd72('0x72')](_0x2921ce[_0xf5dd72('0x6b')]['fields'])),_0x5bbb06[_0xf5dd72('0xe1')]=_0x5bbb06['attributes']['length']?_0x5bbb06[_0xf5dd72('0xe1')]:_0x1dff21['model'],_0x5bbb06['order']=qs[_0xf5dd72('0xf8')](_0x2921ce[_0xf5dd72('0x6b')][_0xf5dd72('0xf8')]),_0x5bbb06[_0xf5dd72('0x17')]=qs['filters'](_[_0xf5dd72('0xc3')](_0x2921ce['query'],_0x1dff21[_0xf5dd72('0x6f')])),_0x2921ce[_0xf5dd72('0x6b')][_0xf5dd72('0xb')]&&(_0x5bbb06[_0xf5dd72('0x17')]=_['merge'](_0x5bbb06[_0xf5dd72('0x17')],{[Op['or']]:_[_0xf5dd72('0x7f')](_0x5bbb06[_0xf5dd72('0xe1')],function(_0x2ef71f){const _0x1b4d0c=_0xf5dd72,_0x4b134f={};return _0x4b134f[_0x2ef71f]={[Op[_0x1b4d0c('0x9f')]]:'%'+_0x2921ce[_0x1b4d0c('0x6b')]['filter']+'%'},_0x4b134f;})})),_0x5bbb06=_[_0xf5dd72('0xd0')]({},_0x5bbb06,_0x2921ce[_0xf5dd72('0x3b')]),_0x2e5ec4[_0xf5dd72('0xd7')](_0x5bbb06);})[_0x4305b2('0xb5')](function(_0x291f2a){const _0x572f3f=_0x4305b2;if(_0x291f2a)return _0x5ab204=_0x291f2a[_0x572f3f('0x19')],typeof _0x2921ce[_0x572f3f('0x6b')][_0x572f3f('0xdc')]==='undefined'&&(_0x5bbb06[_0x572f3f('0xd2')]=qs['limit'](_0x2921ce['query'][_0x572f3f('0xd2')]),_0x5bbb06['offset']=qs[_0x572f3f('0xcf')](_0x2921ce[_0x572f3f('0x6b')]['offset'])),_0x2e5ec4['getProactiveActions'](_0x5bbb06);})[_0x4305b2('0xb5')](function(_0xd68e39){if(_0xd68e39)return _0xd68e39?{'count':_0x5ab204,'rows':_0xd68e39}:null;})['then'](respondWithResult(_0x3ceb5d,null))[_0x4305b2('0x23')](handleError(_0x3ceb5d,null));},exports[_0x2d2069('0x47')]=function(_0x42a499,_0x18c8cf){const _0x4a01a4=_0x2d2069,_0x51ea85=_0x42a499['query'][_0x4a01a4('0x2a')]==='false'?_0x4a01a4('0x10a'):_0x4a01a4('0x4f');return db['ChatWebsite'][_0x4a01a4('0x6c')]({'attributes':['id',_0x51ea85],'where':{'id':_0x42a499[_0x4a01a4('0xa4')]['id']}})['then'](handleEntityNotFound(_0x18c8cf,null))[_0x4a01a4('0xb5')](function(_0x38ba41){const _0x5c228e=_0x4a01a4;if(_0x38ba41){const _0x834d25=_0x38ba41[_0x51ea85],_0x578e69=_0x834d25&&_0x834d25[_0x5c228e('0x93')]?_0x834d25[_0x5c228e('0x93')]:[];_0x18c8cf['send']({'fromKey':_[_0x5c228e('0x8f')](_0x834d25['fromKey'])?undefined:_0x834d25[_0x5c228e('0x76')],'count':_0x578e69[_0x5c228e('0x19')],'rows':_0x578e69});}})[_0x4a01a4('0x23')](handleError(_0x18c8cf,null));},exports[_0x2d2069('0xc5')]=function(_0x5c161d,_0xca04d5){const _0x554149=_0x2d2069;let _0x1c313e={'raw':![],'where':{}};const _0x53b983={},_0x48fb1d={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x554149('0x6c')]({'where':{'id':_0x5c161d[_0x554149('0xa4')]['id']}})[_0x554149('0xb5')](handleEntityNotFound(_0xca04d5,null))[_0x554149('0xb5')](function(_0x257967){const _0x29a7ad=_0x554149;if(_0x257967)return _0x53b983[_0x29a7ad('0x70')]=_[_0x29a7ad('0x58')](db[_0x29a7ad('0xa')][_0x29a7ad('0xb6')]),_0x53b983[_0x29a7ad('0x6b')]=_[_0x29a7ad('0x58')](_0x5c161d['query']),_0x53b983[_0x29a7ad('0x6f')]=_['intersection'](_0x53b983[_0x29a7ad('0x70')],_0x53b983[_0x29a7ad('0x6b')]),_0x1c313e[_0x29a7ad('0xe1')]=_[_0x29a7ad('0x96')](_0x53b983['model'],qs[_0x29a7ad('0x72')](_0x5c161d['query'][_0x29a7ad('0x72')])),_0x1c313e[_0x29a7ad('0xe1')]=_0x1c313e[_0x29a7ad('0xe1')][_0x29a7ad('0x19')]?_0x1c313e[_0x29a7ad('0xe1')]:_0x53b983['model'],typeof _0x5c161d[_0x29a7ad('0x6b')][_0x29a7ad('0xdc')]===_0x29a7ad('0x48')&&(_0x1c313e[_0x29a7ad('0xd2')]=qs[_0x29a7ad('0xd2')](_0x5c161d[_0x29a7ad('0x6b')][_0x29a7ad('0xd2')]),_0x1c313e['offset']=qs[_0x29a7ad('0xcf')](_0x5c161d[_0x29a7ad('0x6b')][_0x29a7ad('0xcf')])),_0x1c313e['order']=qs[_0x29a7ad('0xf8')](_0x5c161d[_0x29a7ad('0x6b')][_0x29a7ad('0xf8')]),_0x1c313e[_0x29a7ad('0x17')]=qs[_0x29a7ad('0x6f')](_[_0x29a7ad('0xc3')](_0x5c161d[_0x29a7ad('0x6b')],_0x53b983[_0x29a7ad('0x6f')])),_0x1c313e[_0x29a7ad('0x17')][_0x29a7ad('0x40')]=_0x257967['id'],_0x5c161d[_0x29a7ad('0x6b')]['filter']&&(_0x1c313e[_0x29a7ad('0x17')]=_['merge'](_0x1c313e['where'],{[Op['or']]:_[_0x29a7ad('0x7f')](_0x1c313e[_0x29a7ad('0xe1')],function(_0x5314b5){const _0x3d7aa8=_0x29a7ad,_0x32871b={};return _0x32871b[_0x5314b5]={[Op[_0x3d7aa8('0x9f')]]:'%'+_0x5c161d['query'][_0x3d7aa8('0xb')]+'%'},_0x32871b;})})),_0x1c313e=_[_0x29a7ad('0xd0')]({},_0x1c313e,_0x5c161d[_0x29a7ad('0x3b')]),db[_0x29a7ad('0xa')][_0x29a7ad('0xa3')]({'where':_0x1c313e[_0x29a7ad('0x17')]})[_0x29a7ad('0xb5')](function(_0x5e8a61){const _0x4abb45=_0x29a7ad;return _0x48fb1d[_0x4abb45('0xa3')]=_0x5e8a61,_0x5c161d[_0x4abb45('0x6b')][_0x4abb45('0xc0')]?_0x1c313e[_0x4abb45('0x1a')]=[{'all':!![]}]:_0x1c313e[_0x4abb45('0x1a')]=[{'model':db[_0x4abb45('0xd5')],'as':_0x4abb45('0xf9'),'required':![]}],db['ChatOfflineMessage'][_0x4abb45('0x8d')](_0x1c313e);})[_0x29a7ad('0xb5')](function(_0x255f58){const _0x4fc901=_0x29a7ad;return _0x48fb1d[_0x4fc901('0xcb')]=_0x255f58,_0x48fb1d;});})[_0x554149('0xb5')](respondWithFilteredResult(_0xca04d5,_0x1c313e))[_0x554149('0x23')](handleError(_0xca04d5,null));},exports[_0x2d2069('0x5e')]=function(_0x489567,_0x4acf52){const _0x36c729=_0x2d2069;return db[_0x36c729('0x2b')][_0x36c729('0x6c')]({'where':{'id':_0x489567[_0x36c729('0xa4')]['id']}})[_0x36c729('0xb5')](function(_0xde7998){const _0x24cd48=_0x36c729;if(_0xde7998)return _0xde7998['addAgents'](_0x489567[_0x24cd48('0x106')]['ids'],{'through':_[_0x24cd48('0x2c')](_0x489567[_0x24cd48('0x106')],['ids','id'])})[_0x24cd48('0xb5')](function(_0x58f70e){const _0x4c4cdc=_0x24cd48;for(let _0x5dc273=0x0;_0x5dc273<_0x489567[_0x4c4cdc('0x106')][_0x4c4cdc('0xc9')][_0x4c4cdc('0x19')];_0x5dc273+=0x1){socket[_0x4c4cdc('0x6e')]('userChatWebsite:save',{'UserId':_0x489567[_0x4c4cdc('0x106')][_0x4c4cdc('0xc9')][_0x5dc273],'ChatWebsiteId':_0x489567[_0x4c4cdc('0xa4')]['id']});}return _0x58f70e;});})[_0x36c729('0xb5')](respondWithResult(_0x4acf52,null))[_0x36c729('0x23')](handleError(_0x4acf52,null));},exports[_0x2d2069('0x105')]=function(_0x551ff2,_0x1e4ba7){const _0x1510d8=_0x2d2069;return db[_0x1510d8('0x2b')][_0x1510d8('0x6c')]({'where':{'id':_0x551ff2[_0x1510d8('0xa4')]['id']}})[_0x1510d8('0xb5')](handleEntityNotFound(_0x1e4ba7,null))[_0x1510d8('0xb5')](function(_0xa0c4e6){const _0x327be0=_0x1510d8;if(_0xa0c4e6)return _0xa0c4e6['removeAgents'](_0x551ff2[_0x327be0('0x6b')][_0x327be0('0xc9')])['then'](function(){const _0x3836e0=_0x327be0;if(_[_0x3836e0('0xd4')](_0x551ff2[_0x3836e0('0x6b')][_0x3836e0('0xc9')]))for(let _0x47c390=0x0;_0x47c390<_0x551ff2[_0x3836e0('0x6b')]['ids'][_0x3836e0('0x19')];_0x47c390+=0x1){socket['emit'](_0x3836e0('0x8c'),{'UserId':Number(_0x551ff2[_0x3836e0('0x6b')]['ids'][_0x47c390]),'ChatWebsiteId':Number(_0x551ff2[_0x3836e0('0xa4')]['id'])});}else socket[_0x3836e0('0x6e')]('userChatWebsite:remove',{'UserId':Number(_0x551ff2['query'][_0x3836e0('0xc9')]),'ChatWebsiteId':Number(_0x551ff2[_0x3836e0('0xa4')]['id'])});});})[_0x1510d8('0xb5')](respondWithStatusCode(_0x1e4ba7,null))[_0x1510d8('0x23')](handleError(_0x1e4ba7,null));},exports[_0x2d2069('0xde')]=function(_0x83cdef,_0x19b304){const _0x50c966=_0x2d2069;let _0xf1cc00={};const _0x529755={};let _0x45dbbd,_0x391952;return db[_0x50c966('0x2b')][_0x50c966('0x6c')]({'where':{'id':_0x83cdef['params']['id']}})['then'](handleEntityNotFound(_0x19b304,null))[_0x50c966('0xb5')](function(_0x5430a5){const _0x266668=_0x50c966;if(_0x5430a5)return _0x45dbbd=_0x5430a5,_0x529755['model']=_[_0x266668('0x58')](db[_0x266668('0x29')][_0x266668('0xb6')]),_0x529755[_0x266668('0x6b')]=_[_0x266668('0x58')](_0x83cdef['query']),_0x529755[_0x266668('0x6f')]=_[_0x266668('0x96')](_0x529755[_0x266668('0x70')],_0x529755[_0x266668('0x6b')]),_0xf1cc00[_0x266668('0xe1')]=_['intersection'](_0x529755[_0x266668('0x70')],qs['fields'](_0x83cdef[_0x266668('0x6b')][_0x266668('0x72')])),_0xf1cc00['attributes']=_0xf1cc00['attributes'][_0x266668('0x19')]?_0xf1cc00[_0x266668('0xe1')]:_0x529755[_0x266668('0x70')],_0xf1cc00[_0x266668('0xe5')]=qs[_0x266668('0xf8')](_0x83cdef[_0x266668('0x6b')][_0x266668('0xf8')]),_0xf1cc00[_0x266668('0x17')]=qs['filters'](_[_0x266668('0xc3')](_0x83cdef[_0x266668('0x6b')],_0x529755[_0x266668('0x6f')])),_0x83cdef[_0x266668('0x6b')][_0x266668('0xb')]&&(_0xf1cc00[_0x266668('0x17')]=_['merge'](_0xf1cc00[_0x266668('0x17')],{[Op['or']]:_['map'](_0xf1cc00[_0x266668('0xe1')],function(_0x8e32a4){const _0xaaf55={};return _0xaaf55[_0x8e32a4]={[Op['like']]:'%'+_0x83cdef['query']['filter']+'%'},_0xaaf55;})})),_0xf1cc00=_['merge']({},_0xf1cc00,_0x83cdef[_0x266668('0x3b')]),_0x45dbbd[_0x266668('0xde')](_0xf1cc00);})['then'](function(_0x496b25){const _0x490c75=_0x50c966;if(_0x496b25)return _0x391952=_0x496b25[_0x490c75('0x19')],typeof _0x83cdef[_0x490c75('0x6b')][_0x490c75('0xdc')]===_0x490c75('0x48')&&(_0xf1cc00['limit']=qs['limit'](_0x83cdef['query'][_0x490c75('0xd2')]),_0xf1cc00['offset']=qs[_0x490c75('0xcf')](_0x83cdef[_0x490c75('0x6b')][_0x490c75('0xcf')])),_0x45dbbd[_0x490c75('0xde')](_0xf1cc00);})[_0x50c966('0xb5')](function(_0x971a14){if(_0x971a14)return _0x971a14?{'count':_0x391952,'rows':_0x971a14}:null;})[_0x50c966('0xb5')](respondWithResult(_0x19b304,null))[_0x50c966('0x23')](handleError(_0x19b304,null));}; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.events.js b/server/api/chatWebsite/chatWebsite.events.js index 5c355fd..f5a3d9a 100644 --- a/server/api/chatWebsite/chatWebsite.events.js +++ b/server/api/chatWebsite/chatWebsite.events.js @@ -1 +1 @@ -const a112_0x356d=['events','ChatWebsite','undefined','setMaxListeners','remove','exports','emit'];(function(_0x4f15d1,_0x356d9c){const _0x359254=function(_0x496ee0){while(--_0x496ee0){_0x4f15d1['push'](_0x4f15d1['shift']());}};_0x359254(++_0x356d9c);}(a112_0x356d,0xcf));const a112_0x3592=function(_0x4f15d1,_0x356d9c){_0x4f15d1=_0x4f15d1-0x0;let _0x359254=a112_0x356d[_0x4f15d1];return _0x359254;};const _0x245938=a112_0x3592;'use strict';const EventEmitter=require(_0x245938('0x3')),ChatWebsite=require('../../mysqldb')['db'][_0x245938('0x4')],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x245938('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x245938('0x0')};function emitEvent(_0x496ee0){return function(_0x5976ae){const _0xbc8c13=a112_0x3592;ChatWebsiteEvents[_0xbc8c13('0x2')](_0x496ee0+':'+_0x5976ae['id'],_0x5976ae),ChatWebsiteEvents[_0xbc8c13('0x2')](_0x496ee0,_0x5976ae);};}for(const e in events){if(typeof events[e]!==_0x245938('0x5')){const event=events[e];ChatWebsite['addHook'](e,emitEvent(event));}}module[_0x245938('0x1')]=ChatWebsiteEvents; \ No newline at end of file +const a112_0x3d9b=['addHook','save','exports','emit','update','ChatWebsite','events','setMaxListeners','../../mysqldb','undefined'];(function(_0x7c19b5,_0x3d9bd4){const _0x325004=function(_0x575e09){while(--_0x575e09){_0x7c19b5['push'](_0x7c19b5['shift']());}};_0x325004(++_0x3d9bd4);}(a112_0x3d9b,0x106));const a112_0x3250=function(_0x7c19b5,_0x3d9bd4){_0x7c19b5=_0x7c19b5-0x0;let _0x325004=a112_0x3d9b[_0x7c19b5];return _0x325004;};const _0x37d972=a112_0x3250;'use strict';const EventEmitter=require(_0x37d972('0x4')),ChatWebsite=require(_0x37d972('0x6'))['db'][_0x37d972('0x3')],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x37d972('0x5')](0x0);const events={'afterCreate':_0x37d972('0x9'),'afterUpdate':_0x37d972('0x2'),'afterDestroy':'remove'};function emitEvent(_0x575e09){return function(_0x584a8e){const _0x423892=a112_0x3250;ChatWebsiteEvents[_0x423892('0x1')](_0x575e09+':'+_0x584a8e['id'],_0x584a8e),ChatWebsiteEvents[_0x423892('0x1')](_0x575e09,_0x584a8e);};}for(const e in events){if(typeof events[e]!==_0x37d972('0x7')){const event=events[e];ChatWebsite[_0x37d972('0x8')](e,emitEvent(event));}}module[_0x37d972('0x0')]=ChatWebsiteEvents; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.model.js b/server/api/chatWebsite/chatWebsite.model.js index a09a3b7..3215abb 100644 --- a/server/api/chatWebsite/chatWebsite.model.js +++ b/server/api/chatWebsite/chatWebsite.model.js @@ -1 +1 @@ -const a113_0x2567=['./chatWebsite.attributes','define','exports','ChatWebsite'];(function(_0x534611,_0x2567d7){const _0xc21a4d=function(_0x2ab19c){while(--_0x2ab19c){_0x534611['push'](_0x534611['shift']());}};_0xc21a4d(++_0x2567d7);}(a113_0x2567,0xc6));const a113_0xc21a=function(_0x534611,_0x2567d7){_0x534611=_0x534611-0x0;let _0xc21a4d=a113_0x2567[_0x534611];return _0xc21a4d;};const _0x2fe566=a113_0xc21a;'use strict';const attributes=require(_0x2fe566('0x2'));module[_0x2fe566('0x0')]=function(_0x2ab19c){const _0x3f3b31=_0x2fe566,_0x22f0a6=_0x2ab19c[_0x3f3b31('0x3')](_0x3f3b31('0x1'),attributes,{'tableName':'chat_websites','paranoid':![],'indexes':[],'timestamps':!![]});return _0x22f0a6;}; \ No newline at end of file +const a113_0x346c=['chat_websites','./chatWebsite.attributes','ChatWebsite'];(function(_0x564eeb,_0x346c5d){const _0x283344=function(_0x39ad0c){while(--_0x39ad0c){_0x564eeb['push'](_0x564eeb['shift']());}};_0x283344(++_0x346c5d);}(a113_0x346c,0xf2));const a113_0x2833=function(_0x564eeb,_0x346c5d){_0x564eeb=_0x564eeb-0x0;let _0x283344=a113_0x346c[_0x564eeb];return _0x283344;};const _0x25c24d=a113_0x2833;'use strict';const attributes=require(_0x25c24d('0x2'));module['exports']=function(_0x39ad0c){const _0x1879d7=_0x25c24d,_0x35cb80=_0x39ad0c['define'](_0x1879d7('0x0'),attributes,{'tableName':_0x1879d7('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x35cb80;}; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.rpc.js b/server/api/chatWebsite/chatWebsite.rpc.js index f3f3996..eddad72 100644 --- a/server/api/chatWebsite/chatWebsite.rpc.js +++ b/server/api/chatWebsite/chatWebsite.rpc.js @@ -1 +1 @@ -const a114_0x78eb=['register'];(function(_0x4ddb19,_0x78eb8a){const _0x364a6d=function(_0x5104aa){while(--_0x5104aa){_0x4ddb19['push'](_0x4ddb19['shift']());}};_0x364a6d(++_0x78eb8a);}(a114_0x78eb,0xa5));const a114_0x364a=function(_0x4ddb19,_0x78eb8a){_0x4ddb19=_0x4ddb19-0x0;let _0x364a6d=a114_0x78eb[_0x4ddb19];return _0x364a6d;};const _0x5873a3=a114_0x364a;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require('./chatWebsite.socket')[_0x5873a3('0x0')](socket); \ No newline at end of file +const a114_0x1483=['../../rediscache','./chatWebsite.socket','register'];(function(_0x4f8dce,_0x148388){const _0x2f2c86=function(_0x2f6197){while(--_0x2f6197){_0x4f8dce['push'](_0x4f8dce['shift']());}};_0x2f2c86(++_0x148388);}(a114_0x1483,0x1d8));const a114_0x2f2c=function(_0x4f8dce,_0x148388){_0x4f8dce=_0x4f8dce-0x0;let _0x2f2c86=a114_0x1483[_0x4f8dce];return _0x2f2c86;};const _0xe599b6=a114_0x2f2c;'use strict';const {getSocket}=require(_0xe599b6('0x2')),socket=getSocket();require(_0xe599b6('0x0'))[_0xe599b6('0x1')](socket); \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.socket.js b/server/api/chatWebsite/chatWebsite.socket.js index 197cbb6..2733483 100644 --- a/server/api/chatWebsite/chatWebsite.socket.js +++ b/server/api/chatWebsite/chatWebsite.socket.js @@ -1 +1 @@ -const a115_0x24d4=['emit','save','length','update','./chatWebsite.events','register'];(function(_0x1041c1,_0x24d42c){const _0x4f9a99=function(_0x609c70){while(--_0x609c70){_0x1041c1['push'](_0x1041c1['shift']());}};_0x4f9a99(++_0x24d42c);}(a115_0x24d4,0x8e));const a115_0x4f9a=function(_0x1041c1,_0x24d42c){_0x1041c1=_0x1041c1-0x0;let _0x4f9a99=a115_0x24d4[_0x1041c1];return _0x4f9a99;};const _0x19f063=a115_0x4f9a;'use strict';const ChatWebsiteEvents=require(_0x19f063('0x0')),events=[_0x19f063('0x3'),'remove',_0x19f063('0x5')];function createListener(_0x609c70,_0x4bbff8){return function(_0xd219ee){const _0x5fb290=a115_0x4f9a;_0x4bbff8[_0x5fb290('0x2')](_0x609c70,_0xd219ee);};}exports[_0x19f063('0x1')]=function(_0x1a0048){const _0x5dc417=_0x19f063;for(let _0x5910e2=0x0,_0x2ab366=events[_0x5dc417('0x4')];_0x5910e2<_0x2ab366;_0x5910e2++){const _0x36d5f5=events[_0x5910e2],_0x5bc37c=createListener('chatWebsite:'+_0x36d5f5,_0x1a0048);ChatWebsiteEvents['on'](_0x36d5f5,_0x5bc37c);}}; \ No newline at end of file +const a115_0x3290=['emit','length','./chatWebsite.events','update','chatWebsite:','register','save'];(function(_0x591d0b,_0x329095){const _0x3dbb6f=function(_0x508846){while(--_0x508846){_0x591d0b['push'](_0x591d0b['shift']());}};_0x3dbb6f(++_0x329095);}(a115_0x3290,0x6a));const a115_0x3dbb=function(_0x591d0b,_0x329095){_0x591d0b=_0x591d0b-0x0;let _0x3dbb6f=a115_0x3290[_0x591d0b];return _0x3dbb6f;};const _0x41836a=a115_0x3dbb;'use strict';const ChatWebsiteEvents=require(_0x41836a('0x1')),events=[_0x41836a('0x5'),'remove',_0x41836a('0x2')];function createListener(_0x508846,_0x446393){return function(_0x40b534){const _0x3f7c73=a115_0x3dbb;_0x446393[_0x3f7c73('0x6')](_0x508846,_0x40b534);};}exports[_0x41836a('0x4')]=function(_0x21c169){const _0x2faea5=_0x41836a;for(let _0x34711c=0x0,_0x1380ce=events[_0x2faea5('0x0')];_0x34711c<_0x1380ce;_0x34711c++){const _0x58a014=events[_0x34711c],_0x150730=createListener(_0x2faea5('0x3')+_0x58a014,_0x21c169);ChatWebsiteEvents['on'](_0x58a014,_0x150730);}}; \ No newline at end of file diff --git a/server/api/chatWebsite/index.js b/server/api/chatWebsite/index.js index 756d130..e0a1b42 100644 --- a/server/api/chatWebsite/index.js +++ b/server/api/chatWebsite/index.js @@ -1 +1 @@ -const a116_0xdbf5=['./chatWebsite.controller','/:id/canned_answers','/:id','addInteraction','notify','post','/:id/applications','root','put','removeAnswers','getSystemAvatar','index','getAgents','/:id/users','/:id/avatar','util','getFields','Router','single','/:id/notify','now','get','logos','addAgents','originalname','show','getSnippet','addApplications','getProactiveActions','destroy','exports','multer','path','create','/:id/interactions','/:id/proactive_actions','getCustomerAvatar','format','/:id/customer_avatar','server/files/images/','removeDispositions','addDisposition','isAuthenticated','/describe','update','getDispositions','getOfflineMessages','/:id/system_avatar','delete','getInteractions','addAnswer','/:id/dispositions','../../config/environment','describe','getAnswers','join','addCustomerAvatar','avatars','/:id/offline','../../components/auth/service','express','getLogo','offline','/:id/logo','/:id/snippet','file','addProactiveActions'];(function(_0x44a5db,_0xdbf5cd){const _0x558d34=function(_0x285241){while(--_0x285241){_0x44a5db['push'](_0x44a5db['shift']());}};_0x558d34(++_0xdbf5cd);}(a116_0xdbf5,0xdb));const a116_0x558d=function(_0x44a5db,_0xdbf5cd){_0x44a5db=_0x44a5db-0x0;let _0x558d34=a116_0xdbf5[_0x44a5db];return _0x558d34;};const _0x583c04=a116_0x558d;'use strict';const multer=require(_0x583c04('0xd')),util=require(_0x583c04('0x40')),path=require(_0x583c04('0xe')),express=require(_0x583c04('0x2a')),router=express[_0x583c04('0x42')](),auth=require(_0x583c04('0x29')),config=require(_0x583c04('0x22')),controller=require(_0x583c04('0x31')),upload=_0x285241=>multer({'storage':multer['diskStorage']({'destination':function(_0x466e6c,_0x531255,_0x4fa086){const _0x5092ab=_0x583c04;_0x4fa086(null,path[_0x5092ab('0x25')](config[_0x5092ab('0x38')],_0x5092ab('0x15'),_0x285241));},'filename':function(_0x46b636,_0xf06b3a,_0x24b3cc){const _0x277f24=_0x583c04;_0x24b3cc(null,util[_0x277f24('0x13')]('%s-%s',Date[_0x277f24('0x2')](),_0xf06b3a[_0x277f24('0x6')]));}})});router[_0x583c04('0x3')]('/',auth[_0x583c04('0x18')](),controller[_0x583c04('0x3c')]),router[_0x583c04('0x3')](_0x583c04('0x19'),auth['isAuthenticated'](),controller[_0x583c04('0x23')]),router[_0x583c04('0x3')](_0x583c04('0x33'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x7')]),router['get']('/:id/dispositions',auth[_0x583c04('0x18')](),controller[_0x583c04('0x1b')]),router[_0x583c04('0x3')](_0x583c04('0x32'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x24')]),router[_0x583c04('0x3')](_0x583c04('0x2d'),controller[_0x583c04('0x2b')]),router['get'](_0x583c04('0x3f'),controller['getAvatar']),router[_0x583c04('0x3')](_0x583c04('0x14'),controller[_0x583c04('0x12')]),router[_0x583c04('0x3')](_0x583c04('0x1d'),controller[_0x583c04('0x3b')]),router[_0x583c04('0x3')](_0x583c04('0x10'),auth['isAuthenticated'](),controller[_0x583c04('0x1f')]),router[_0x583c04('0x3')](_0x583c04('0x2e'),controller[_0x583c04('0x8')]),router[_0x583c04('0x3')](_0x583c04('0x37'),auth[_0x583c04('0x18')](),controller['getApplications']),router[_0x583c04('0x3')](_0x583c04('0x11'),auth[_0x583c04('0x18')](),controller[_0x583c04('0xa')]),router[_0x583c04('0x3')]('/:id/fields',controller[_0x583c04('0x41')]),router[_0x583c04('0x3')]('/:id/offline_messages',auth[_0x583c04('0x18')](),controller[_0x583c04('0x1c')]),router[_0x583c04('0x3')](_0x583c04('0x3e'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x3d')]),router['post']('/',auth[_0x583c04('0x18')](),controller[_0x583c04('0xf')]),router[_0x583c04('0x36')]('/:id/dispositions',auth[_0x583c04('0x18')](),controller[_0x583c04('0x17')]),router['post'](_0x583c04('0x32'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x20')]),router[_0x583c04('0x36')]('/:id/logo',upload(_0x583c04('0x4'))[_0x583c04('0x0')](_0x583c04('0x2f')),controller['addLogo']),router[_0x583c04('0x36')](_0x583c04('0x3f'),upload('avatars')[_0x583c04('0x0')](_0x583c04('0x2f')),controller['addAvatar']),router[_0x583c04('0x36')](_0x583c04('0x14'),upload(_0x583c04('0x27'))['single'](_0x583c04('0x2f')),controller[_0x583c04('0x26')]),router[_0x583c04('0x36')]('/:id/system_avatar',upload(_0x583c04('0x27'))['single'](_0x583c04('0x2f')),controller['addSystemAvatar']),router[_0x583c04('0x36')](_0x583c04('0x1'),controller[_0x583c04('0x35')]),router[_0x583c04('0x36')](_0x583c04('0x28'),controller[_0x583c04('0x2c')]),router[_0x583c04('0x36')]('/:id/interactions',auth[_0x583c04('0x18')](),controller[_0x583c04('0x34')]),router[_0x583c04('0x36')]('/:id/applications',auth[_0x583c04('0x18')](),controller[_0x583c04('0x9')]),router['post'](_0x583c04('0x11'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x30')]),router[_0x583c04('0x36')]('/:id/users',auth[_0x583c04('0x18')](),controller[_0x583c04('0x5')]),router[_0x583c04('0x39')](_0x583c04('0x33'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x1a')]),router[_0x583c04('0x1e')](_0x583c04('0x33'),auth[_0x583c04('0x18')](),controller[_0x583c04('0xb')]),router[_0x583c04('0x1e')](_0x583c04('0x21'),auth['isAuthenticated'](),controller[_0x583c04('0x16')]),router[_0x583c04('0x1e')](_0x583c04('0x32'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x3a')]),router[_0x583c04('0x1e')](_0x583c04('0x3e'),auth['isAuthenticated'](),controller['removeAgents']),module[_0x583c04('0xc')]=router; \ No newline at end of file +const a116_0x34a0=['getCustomerAvatar','getSnippet','/:id/applications','logos','addApplications','/:id/snippet','post','show','format','addAnswer','/:id/logo','getOfflineMessages','/:id/canned_answers','./chatWebsite.controller','addAvatar','diskStorage','addProactiveActions','addAgents','addLogo','addDisposition','originalname','getInteractions','/:id/customer_avatar','update','/:id/offline','/:id/interactions','getDispositions','util','put','getApplications','addCustomerAvatar','multer','index','get','isAuthenticated','describe','removeAnswers','Router','getAvatar','/:id/avatar','express','single','join','/:id/system_avatar','../../config/environment','file','offline','delete','getAnswers','getProactiveActions','/:id/users','exports','create','getLogo','addSystemAvatar','/:id/notify','/:id','root','/:id/proactive_actions','/:id/offline_messages','getFields','avatars'];(function(_0x12c78f,_0x34a096){const _0x11e277=function(_0x3e5cf8){while(--_0x3e5cf8){_0x12c78f['push'](_0x12c78f['shift']());}};_0x11e277(++_0x34a096);}(a116_0x34a0,0x13c));const a116_0x11e2=function(_0x12c78f,_0x34a096){_0x12c78f=_0x12c78f-0x0;let _0x11e277=a116_0x34a0[_0x12c78f];return _0x11e277;};const _0xbc646c=a116_0x11e2;'use strict';const multer=require(_0xbc646c('0x19')),util=require(_0xbc646c('0x15')),path=require('path'),express=require(_0xbc646c('0x22')),router=express[_0xbc646c('0x1f')](),auth=require('../../components/auth/service'),config=require(_0xbc646c('0x26')),controller=require(_0xbc646c('0x7')),upload=_0x3e5cf8=>multer({'storage':multer[_0xbc646c('0x9')]({'destination':function(_0x493bfb,_0x16feb6,_0x354afa){const _0x31d7f9=_0xbc646c;_0x354afa(null,path[_0x31d7f9('0x24')](config[_0x31d7f9('0x33')],'server/files/images/',_0x3e5cf8));},'filename':function(_0x1ed4b6,_0x1b1bb4,_0x3bb780){const _0x50597a=_0xbc646c;_0x3bb780(null,util[_0x50597a('0x2')]('%s-%s',Date['now'](),_0x1b1bb4[_0x50597a('0xe')]));}})});router['get']('/',auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x1a')]),router['get']('/describe',auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x1d')]),router['get'](_0xbc646c('0x32'),auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x1')]),router[_0xbc646c('0x1b')]('/:id/dispositions',auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x14')]),router[_0xbc646c('0x1b')](_0xbc646c('0x6'),auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x2a')]),router[_0xbc646c('0x1b')]('/:id/logo',controller[_0xbc646c('0x2f')]),router[_0xbc646c('0x1b')]('/:id/avatar',controller[_0xbc646c('0x20')]),router['get'](_0xbc646c('0x10'),controller[_0xbc646c('0x38')]),router[_0xbc646c('0x1b')](_0xbc646c('0x25'),controller['getSystemAvatar']),router[_0xbc646c('0x1b')]('/:id/interactions',auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0xf')]),router[_0xbc646c('0x1b')](_0xbc646c('0x3d'),controller[_0xbc646c('0x39')]),router[_0xbc646c('0x1b')](_0xbc646c('0x3a'),auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x17')]),router[_0xbc646c('0x1b')](_0xbc646c('0x34'),auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x2b')]),router[_0xbc646c('0x1b')]('/:id/fields',controller[_0xbc646c('0x36')]),router['get'](_0xbc646c('0x35'),auth['isAuthenticated'](),controller[_0xbc646c('0x5')]),router[_0xbc646c('0x1b')](_0xbc646c('0x2c'),auth[_0xbc646c('0x1c')](),controller['getAgents']),router[_0xbc646c('0x0')]('/',auth['isAuthenticated'](),controller[_0xbc646c('0x2e')]),router[_0xbc646c('0x0')]('/:id/dispositions',auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0xd')]),router['post']('/:id/canned_answers',auth['isAuthenticated'](),controller[_0xbc646c('0x3')]),router['post'](_0xbc646c('0x4'),upload(_0xbc646c('0x3b'))[_0xbc646c('0x23')](_0xbc646c('0x27')),controller[_0xbc646c('0xc')]),router[_0xbc646c('0x0')](_0xbc646c('0x21'),upload(_0xbc646c('0x37'))[_0xbc646c('0x23')](_0xbc646c('0x27')),controller[_0xbc646c('0x8')]),router['post']('/:id/customer_avatar',upload('avatars')[_0xbc646c('0x23')](_0xbc646c('0x27')),controller[_0xbc646c('0x18')]),router['post'](_0xbc646c('0x25'),upload('avatars')[_0xbc646c('0x23')](_0xbc646c('0x27')),controller[_0xbc646c('0x30')]),router[_0xbc646c('0x0')](_0xbc646c('0x31'),controller['notify']),router['post'](_0xbc646c('0x12'),controller[_0xbc646c('0x28')]),router[_0xbc646c('0x0')](_0xbc646c('0x13'),auth[_0xbc646c('0x1c')](),controller['addInteraction']),router[_0xbc646c('0x0')](_0xbc646c('0x3a'),auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x3c')]),router[_0xbc646c('0x0')](_0xbc646c('0x34'),auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0xa')]),router[_0xbc646c('0x0')]('/:id/users',auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0xb')]),router[_0xbc646c('0x16')](_0xbc646c('0x32'),auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x11')]),router[_0xbc646c('0x29')](_0xbc646c('0x32'),auth[_0xbc646c('0x1c')](),controller['destroy']),router['delete']('/:id/dispositions',auth[_0xbc646c('0x1c')](),controller['removeDispositions']),router[_0xbc646c('0x29')]('/:id/canned_answers',auth[_0xbc646c('0x1c')](),controller[_0xbc646c('0x1e')]),router['delete']('/:id/users',auth[_0xbc646c('0x1c')](),controller['removeAgents']),module[_0xbc646c('0x2d')]=router; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.attributes.js b/server/api/cloudProvider/cloudProvider.attributes.js index 9f0dcdb..338c02b 100644 --- a/server/api/cloudProvider/cloudProvider.attributes.js +++ b/server/api/cloudProvider/cloudProvider.attributes.js @@ -1 +1 @@ -const a117_0x2992=['Google','STRING','sequelize','exports','AmazonAWS','ENUM'];(function(_0xa0a51f,_0x2992dc){const _0x2f5a4b=function(_0x355797){while(--_0x355797){_0xa0a51f['push'](_0xa0a51f['shift']());}};_0x2f5a4b(++_0x2992dc);}(a117_0x2992,0x69));const a117_0x2f5a=function(_0xa0a51f,_0x2992dc){_0xa0a51f=_0xa0a51f-0x0;let _0x2f5a4b=a117_0x2992[_0xa0a51f];return _0x2f5a4b;};const _0x3e71e9=a117_0x2f5a;'use strict';const Sequelize=require(_0x3e71e9('0x5'));module[_0x3e71e9('0x0')]={'name':{'type':Sequelize[_0x3e71e9('0x4')],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':Sequelize[_0x3e71e9('0x2')](_0x3e71e9('0x1'),_0x3e71e9('0x3')),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':Sequelize[_0x3e71e9('0x4')]},'data2':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a117_0x5d50=['ENUM','exports','AmazonAWS','STRING','Google'];(function(_0x436c06,_0x5d5082){const _0x48b9d6=function(_0x5a3dce){while(--_0x5a3dce){_0x436c06['push'](_0x436c06['shift']());}};_0x48b9d6(++_0x5d5082);}(a117_0x5d50,0x18a));const a117_0x48b9=function(_0x436c06,_0x5d5082){_0x436c06=_0x436c06-0x0;let _0x48b9d6=a117_0x5d50[_0x436c06];return _0x48b9d6;};const _0x4a7e86=a117_0x48b9;'use strict';const Sequelize=require('sequelize');module[_0x4a7e86('0x2')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':Sequelize[_0x4a7e86('0x1')](_0x4a7e86('0x3'),_0x4a7e86('0x0')),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':Sequelize[_0x4a7e86('0x4')]},'data2':{'type':Sequelize[_0x4a7e86('0x4')]}}; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.controller.js b/server/api/cloudProvider/cloudProvider.controller.js index cb51e77..7d0583c 100644 --- a/server/api/cloudProvider/cloudProvider.controller.js +++ b/server/api/cloudProvider/cloudProvider.controller.js @@ -1 +1 @@ -const a118_0x3491=['set','sendStatus','rows','where','json','options','keys','findAll','rawAttributes','../../mysqldb','fieldName','nolimit','count','show','undefined','pick','sequelize','model','name','attributes','update','../../components/parsers/qs','offset','status','length','type','api','../../config/logger','stack','filter','body','sort','catch','destroy','filters','CloudProvider','params','end','limit','merge','fields','create','Content-Range','send','findOne','index','intersection','then','query','includeAll','map','include','like'];(function(_0x21a2c6,_0x3491b0){const _0x81ed4e=function(_0xa93e2c){while(--_0xa93e2c){_0x21a2c6['push'](_0x21a2c6['shift']());}};_0x81ed4e(++_0x3491b0);}(a118_0x3491,0x1a3));const a118_0x81ed=function(_0x21a2c6,_0x3491b0){_0x21a2c6=_0x21a2c6-0x0;let _0x81ed4e=a118_0x3491[_0x21a2c6];return _0x81ed4e;};const _0x2691e6=a118_0x81ed;'use strict';const _=require('lodash'),qs=require(_0x2691e6('0x1a')),logger=require(_0x2691e6('0x20'))(_0x2691e6('0x1f')),db=require(_0x2691e6('0xe'))['db'],{Op}=require(_0x2691e6('0x15'));function respondWithResult(_0xa93e2c,_0x3906e1){return _0x3906e1=_0x3906e1||0xc8,function(_0x35a22e){const _0x209260=a118_0x81ed;if(_0x35a22e)return _0xa93e2c['status'](_0x3906e1)[_0x209260('0x9')](_0x35a22e);};}function respondWithFilteredResult(_0x5d3f2e,_0x3bd772){return function(_0x531dde){const _0x1df06c=a118_0x81ed;if(_0x531dde){const _0x149699=_0x531dde[_0x1df06c('0x11')],_0xa44adc=_0x3bd772[_0x1df06c('0x1b')];let _0x4f19cd=_0x3bd772['offset']+_0x3bd772[_0x1df06c('0x2b')],_0x5be82a;return _0x4f19cd>=_0x149699?(_0x4f19cd=_0x149699,_0x5be82a=0xc8):_0x5be82a=0xce,_0x5d3f2e[_0x1df06c('0x1c')](_0x5be82a),_0x5d3f2e[_0x1df06c('0x5')](_0x1df06c('0x2f'),_0xa44adc+'-'+_0x4f19cd+'/'+_0x149699)[_0x1df06c('0x9')](_0x531dde);}return null;};}function saveUpdates(_0x1970d7){return function(_0x443b80){const _0x485623=a118_0x81ed;if(_0x443b80)return _0x443b80[_0x485623('0x19')](_0x1970d7)[_0x485623('0x34')](function(_0x8a04e6){return _0x8a04e6;});return null;};}function removeEntity(_0x2b819d){return function(_0x372371){const _0x4e258d=a118_0x81ed;if(_0x372371)return _0x372371[_0x4e258d('0x26')]()[_0x4e258d('0x34')](function(){const _0x44473a=_0x4e258d;_0x2b819d['status'](0xcc)[_0x44473a('0x2a')]();});};}function handleEntityNotFound(_0x31167c){return function(_0x3520ab){const _0x1bd21a=a118_0x81ed;return!_0x3520ab&&_0x31167c[_0x1bd21a('0x6')](0x194),_0x3520ab;};}function handleError(_0x14a608,_0x13f6eb){return _0x13f6eb=_0x13f6eb||0x1f4,function(_0x55f13d){const _0x2c284a=a118_0x81ed;logger['error'](_0x55f13d[_0x2c284a('0x21')]),_0x55f13d['name']&&delete _0x55f13d[_0x2c284a('0x17')],_0x14a608[_0x2c284a('0x1c')](_0x13f6eb)[_0x2c284a('0x30')](_0x55f13d);};}exports[_0x2691e6('0x32')]=function(_0x70637,_0x110190){const _0x1eb7f1=_0x2691e6;let _0x13d413={};const _0x84f9df={},_0x5c709b={'count':0x0,'rows':[]},_0x58951b=_[_0x1eb7f1('0x2')](db[_0x1eb7f1('0x28')][_0x1eb7f1('0xd')],function(_0x5d2990){const _0x3cc8db=_0x1eb7f1;return{'name':_0x5d2990[_0x3cc8db('0xf')],'type':_0x5d2990[_0x3cc8db('0x1e')]['key']};});_0x84f9df['model']=_[_0x1eb7f1('0x2')](_0x58951b,_0x1eb7f1('0x17')),_0x84f9df[_0x1eb7f1('0x0')]=_['keys'](_0x70637[_0x1eb7f1('0x0')]),_0x84f9df['filters']=_[_0x1eb7f1('0x33')](_0x84f9df['model'],_0x84f9df[_0x1eb7f1('0x0')]),_0x13d413['attributes']=_['intersection'](_0x84f9df[_0x1eb7f1('0x16')],qs[_0x1eb7f1('0x2d')](_0x70637[_0x1eb7f1('0x0')][_0x1eb7f1('0x2d')])),_0x13d413[_0x1eb7f1('0x18')]=_0x13d413[_0x1eb7f1('0x18')][_0x1eb7f1('0x1d')]?_0x13d413[_0x1eb7f1('0x18')]:_0x84f9df[_0x1eb7f1('0x16')];typeof _0x70637['query'][_0x1eb7f1('0x10')]===_0x1eb7f1('0x13')&&(_0x13d413['limit']=qs[_0x1eb7f1('0x2b')](_0x70637[_0x1eb7f1('0x0')][_0x1eb7f1('0x2b')]),_0x13d413[_0x1eb7f1('0x1b')]=qs[_0x1eb7f1('0x1b')](_0x70637[_0x1eb7f1('0x0')]['offset']));_0x13d413['order']=qs[_0x1eb7f1('0x24')](_0x70637[_0x1eb7f1('0x0')][_0x1eb7f1('0x24')]),_0x13d413[_0x1eb7f1('0x8')]=qs[_0x1eb7f1('0x27')](_[_0x1eb7f1('0x14')](_0x70637[_0x1eb7f1('0x0')],_0x84f9df[_0x1eb7f1('0x27')]),_0x58951b);_0x70637[_0x1eb7f1('0x0')][_0x1eb7f1('0x22')]&&(_0x13d413[_0x1eb7f1('0x8')]=_[_0x1eb7f1('0x2c')](_0x13d413[_0x1eb7f1('0x8')],{[Op['or']]:_[_0x1eb7f1('0x2')](_0x58951b,function(_0x30ddd6){const _0x585d27=_0x1eb7f1;if(_0x30ddd6[_0x585d27('0x1e')]!=='VIRTUAL'){const _0x5af522={};return _0x5af522[_0x30ddd6[_0x585d27('0x17')]]={[Op[_0x585d27('0x4')]]:'%'+_0x70637[_0x585d27('0x0')][_0x585d27('0x22')]+'%'},_0x5af522;}})}));_0x13d413=_[_0x1eb7f1('0x2c')]({},_0x13d413,_0x70637[_0x1eb7f1('0xa')]);const _0x1184a4={'where':_0x13d413[_0x1eb7f1('0x8')]};return db[_0x1eb7f1('0x28')][_0x1eb7f1('0x11')](_0x1184a4)[_0x1eb7f1('0x34')](function(_0x39a46a){const _0x23329d=_0x1eb7f1;return _0x5c709b['count']=_0x39a46a,_0x70637[_0x23329d('0x0')][_0x23329d('0x1')]&&(_0x13d413['include']=[{'all':!![]}]),db['CloudProvider'][_0x23329d('0xc')](_0x13d413);})[_0x1eb7f1('0x34')](function(_0x404375){const _0x108bbc=_0x1eb7f1;return _0x5c709b[_0x108bbc('0x7')]=_0x404375,_0x5c709b;})['then'](respondWithFilteredResult(_0x110190,_0x13d413))[_0x1eb7f1('0x25')](handleError(_0x110190,null));},exports[_0x2691e6('0x12')]=function(_0x2ad789,_0x431c93){const _0x2d20fc=_0x2691e6;let _0x17c83e={'raw':!![],'where':{'id':_0x2ad789['params']['id']}};const _0x453835={};return _0x453835[_0x2d20fc('0x16')]=_[_0x2d20fc('0xb')](db[_0x2d20fc('0x28')][_0x2d20fc('0xd')]),_0x453835[_0x2d20fc('0x0')]=_[_0x2d20fc('0xb')](_0x2ad789['query']),_0x453835[_0x2d20fc('0x27')]=_[_0x2d20fc('0x33')](_0x453835[_0x2d20fc('0x16')],_0x453835[_0x2d20fc('0x0')]),_0x17c83e[_0x2d20fc('0x18')]=_[_0x2d20fc('0x33')](_0x453835['model'],qs[_0x2d20fc('0x2d')](_0x2ad789[_0x2d20fc('0x0')][_0x2d20fc('0x2d')])),_0x17c83e[_0x2d20fc('0x18')]=_0x17c83e[_0x2d20fc('0x18')][_0x2d20fc('0x1d')]?_0x17c83e[_0x2d20fc('0x18')]:_0x453835[_0x2d20fc('0x16')],_0x2ad789['query']['includeAll']&&(_0x17c83e[_0x2d20fc('0x3')]=[{'all':!![]}]),_0x17c83e=_['merge']({},_0x17c83e,_0x2ad789[_0x2d20fc('0xa')]),db[_0x2d20fc('0x28')][_0x2d20fc('0x31')](_0x17c83e)[_0x2d20fc('0x34')](handleEntityNotFound(_0x431c93,null))['then'](respondWithResult(_0x431c93,null))['catch'](handleError(_0x431c93,null));},exports[_0x2691e6('0x2e')]=function(_0x5a1d9c,_0x14f009){const _0x47278c=_0x2691e6;return db[_0x47278c('0x28')][_0x47278c('0x2e')](_0x5a1d9c[_0x47278c('0x23')],{})[_0x47278c('0x34')](respondWithResult(_0x14f009,0xc9))[_0x47278c('0x25')](handleError(_0x14f009,null));},exports[_0x2691e6('0x19')]=function(_0x28bdac,_0x50346a){const _0x58c701=_0x2691e6;return _0x28bdac[_0x58c701('0x23')]['id']&&delete _0x28bdac[_0x58c701('0x23')]['id'],db[_0x58c701('0x28')][_0x58c701('0x31')]({'where':{'id':_0x28bdac[_0x58c701('0x29')]['id']}})[_0x58c701('0x34')](handleEntityNotFound(_0x50346a,null))[_0x58c701('0x34')](saveUpdates(_0x28bdac[_0x58c701('0x23')],null))[_0x58c701('0x34')](respondWithResult(_0x50346a,null))['catch'](handleError(_0x50346a,null));},exports[_0x2691e6('0x26')]=function(_0x78932b,_0x5515ac){const _0x570aaa=_0x2691e6;return db[_0x570aaa('0x28')]['findOne']({'where':{'id':_0x78932b[_0x570aaa('0x29')]['id']}})[_0x570aaa('0x34')](handleEntityNotFound(_0x5515ac,null))[_0x570aaa('0x34')](removeEntity(_0x5515ac,null))[_0x570aaa('0x25')](handleError(_0x5515ac,null));}; \ No newline at end of file +const a118_0x47e7=['send','pick','keys','api','includeAll','catch','nolimit','attributes','options','undefined','fieldName','lodash','status','intersection','then','../../components/parsers/qs','show','end','filter','name','limit','sort','rawAttributes','key','params','type','sequelize','../../mysqldb','body','json','order','map','model','CloudProvider','where','count','findOne','fields','offset','set','query','index','destroy','create','rows','update','error','include','merge','length','filters'];(function(_0x4fcf22,_0x47e70d){const _0xbd6c1c=function(_0x2e6f02){while(--_0x2e6f02){_0x4fcf22['push'](_0x4fcf22['shift']());}};_0xbd6c1c(++_0x47e70d);}(a118_0x47e7,0x125));const a118_0xbd6c=function(_0x4fcf22,_0x47e70d){_0x4fcf22=_0x4fcf22-0x0;let _0xbd6c1c=a118_0x47e7[_0x4fcf22];return _0xbd6c1c;};const _0x18fd85=a118_0xbd6c;'use strict';const _=require(_0x18fd85('0x18')),qs=require(_0x18fd85('0x1c')),logger=require('../../config/logger')(_0x18fd85('0x10')),db=require(_0x18fd85('0x28'))['db'],{Op}=require(_0x18fd85('0x27'));function respondWithResult(_0x2e6f02,_0x5d9101){return _0x5d9101=_0x5d9101||0xc8,function(_0x2ab6ea){const _0x1aa492=a118_0xbd6c;if(_0x2ab6ea)return _0x2e6f02[_0x1aa492('0x19')](_0x5d9101)[_0x1aa492('0x2a')](_0x2ab6ea);};}function respondWithFilteredResult(_0x1ba766,_0x5ce224){return function(_0x4ee752){const _0x33159f=a118_0xbd6c;if(_0x4ee752){const _0x138a2b=_0x4ee752[_0x33159f('0x30')],_0x22cd51=_0x5ce224[_0x33159f('0x0')];let _0x52997b=_0x5ce224['offset']+_0x5ce224[_0x33159f('0x21')],_0x5253b9;return _0x52997b>=_0x138a2b?(_0x52997b=_0x138a2b,_0x5253b9=0xc8):_0x5253b9=0xce,_0x1ba766[_0x33159f('0x19')](_0x5253b9),_0x1ba766[_0x33159f('0x1')]('Content-Range',_0x22cd51+'-'+_0x52997b+'/'+_0x138a2b)[_0x33159f('0x2a')](_0x4ee752);}return null;};}function saveUpdates(_0x162415){return function(_0x1425db){const _0x3f05f7=a118_0xbd6c;if(_0x1425db)return _0x1425db['update'](_0x162415)[_0x3f05f7('0x1b')](function(_0x5a971e){return _0x5a971e;});return null;};}function removeEntity(_0x4d6adc){return function(_0x3451c){const _0x46e97a=a118_0xbd6c;if(_0x3451c)return _0x3451c[_0x46e97a('0x4')]()['then'](function(){const _0x5a8d5a=_0x46e97a;_0x4d6adc[_0x5a8d5a('0x19')](0xcc)[_0x5a8d5a('0x1e')]();});};}function handleEntityNotFound(_0x5ed442){return function(_0x43571c){return!_0x43571c&&_0x5ed442['sendStatus'](0x194),_0x43571c;};}function handleError(_0x2ae605,_0x170330){return _0x170330=_0x170330||0x1f4,function(_0xd5965a){const _0x55625e=a118_0xbd6c;logger[_0x55625e('0x8')](_0xd5965a['stack']),_0xd5965a['name']&&delete _0xd5965a['name'],_0x2ae605[_0x55625e('0x19')](_0x170330)[_0x55625e('0xd')](_0xd5965a);};}exports[_0x18fd85('0x3')]=function(_0x461c1e,_0xce20d5){const _0x19f704=_0x18fd85;let _0x1dbd92={};const _0x1f16c1={},_0xa52ebd={'count':0x0,'rows':[]},_0x7ba242=_[_0x19f704('0x2c')](db['CloudProvider'][_0x19f704('0x23')],function(_0x3fe18a){const _0x3336f5=_0x19f704;return{'name':_0x3fe18a[_0x3336f5('0x17')],'type':_0x3fe18a[_0x3336f5('0x26')][_0x3336f5('0x24')]};});_0x1f16c1[_0x19f704('0x2d')]=_[_0x19f704('0x2c')](_0x7ba242,_0x19f704('0x20')),_0x1f16c1[_0x19f704('0x2')]=_[_0x19f704('0xf')](_0x461c1e[_0x19f704('0x2')]),_0x1f16c1['filters']=_[_0x19f704('0x1a')](_0x1f16c1[_0x19f704('0x2d')],_0x1f16c1['query']),_0x1dbd92[_0x19f704('0x14')]=_['intersection'](_0x1f16c1['model'],qs['fields'](_0x461c1e[_0x19f704('0x2')][_0x19f704('0x32')])),_0x1dbd92[_0x19f704('0x14')]=_0x1dbd92[_0x19f704('0x14')][_0x19f704('0xb')]?_0x1dbd92[_0x19f704('0x14')]:_0x1f16c1[_0x19f704('0x2d')];typeof _0x461c1e[_0x19f704('0x2')][_0x19f704('0x13')]===_0x19f704('0x16')&&(_0x1dbd92[_0x19f704('0x21')]=qs[_0x19f704('0x21')](_0x461c1e[_0x19f704('0x2')]['limit']),_0x1dbd92[_0x19f704('0x0')]=qs[_0x19f704('0x0')](_0x461c1e[_0x19f704('0x2')][_0x19f704('0x0')]));_0x1dbd92[_0x19f704('0x2b')]=qs[_0x19f704('0x22')](_0x461c1e[_0x19f704('0x2')][_0x19f704('0x22')]),_0x1dbd92[_0x19f704('0x2f')]=qs[_0x19f704('0xc')](_[_0x19f704('0xe')](_0x461c1e[_0x19f704('0x2')],_0x1f16c1[_0x19f704('0xc')]),_0x7ba242);_0x461c1e[_0x19f704('0x2')][_0x19f704('0x1f')]&&(_0x1dbd92['where']=_[_0x19f704('0xa')](_0x1dbd92[_0x19f704('0x2f')],{[Op['or']]:_[_0x19f704('0x2c')](_0x7ba242,function(_0x1230c3){const _0x9a8fab=_0x19f704;if(_0x1230c3[_0x9a8fab('0x26')]!=='VIRTUAL'){const _0x56ffd3={};return _0x56ffd3[_0x1230c3['name']]={[Op['like']]:'%'+_0x461c1e[_0x9a8fab('0x2')][_0x9a8fab('0x1f')]+'%'},_0x56ffd3;}})}));_0x1dbd92=_[_0x19f704('0xa')]({},_0x1dbd92,_0x461c1e[_0x19f704('0x15')]);const _0x182c7b={'where':_0x1dbd92[_0x19f704('0x2f')]};return db[_0x19f704('0x2e')][_0x19f704('0x30')](_0x182c7b)[_0x19f704('0x1b')](function(_0x2307c0){const _0x52968c=_0x19f704;return _0xa52ebd[_0x52968c('0x30')]=_0x2307c0,_0x461c1e['query'][_0x52968c('0x11')]&&(_0x1dbd92[_0x52968c('0x9')]=[{'all':!![]}]),db['CloudProvider']['findAll'](_0x1dbd92);})[_0x19f704('0x1b')](function(_0x16aa2d){const _0x176478=_0x19f704;return _0xa52ebd[_0x176478('0x6')]=_0x16aa2d,_0xa52ebd;})[_0x19f704('0x1b')](respondWithFilteredResult(_0xce20d5,_0x1dbd92))[_0x19f704('0x12')](handleError(_0xce20d5,null));},exports[_0x18fd85('0x1d')]=function(_0x43733e,_0x35d511){const _0x3eee37=_0x18fd85;let _0x27c5d3={'raw':!![],'where':{'id':_0x43733e[_0x3eee37('0x25')]['id']}};const _0x24a923={};return _0x24a923[_0x3eee37('0x2d')]=_['keys'](db['CloudProvider']['rawAttributes']),_0x24a923['query']=_[_0x3eee37('0xf')](_0x43733e['query']),_0x24a923[_0x3eee37('0xc')]=_[_0x3eee37('0x1a')](_0x24a923[_0x3eee37('0x2d')],_0x24a923[_0x3eee37('0x2')]),_0x27c5d3[_0x3eee37('0x14')]=_[_0x3eee37('0x1a')](_0x24a923['model'],qs[_0x3eee37('0x32')](_0x43733e[_0x3eee37('0x2')][_0x3eee37('0x32')])),_0x27c5d3[_0x3eee37('0x14')]=_0x27c5d3[_0x3eee37('0x14')][_0x3eee37('0xb')]?_0x27c5d3[_0x3eee37('0x14')]:_0x24a923[_0x3eee37('0x2d')],_0x43733e[_0x3eee37('0x2')][_0x3eee37('0x11')]&&(_0x27c5d3['include']=[{'all':!![]}]),_0x27c5d3=_[_0x3eee37('0xa')]({},_0x27c5d3,_0x43733e['options']),db[_0x3eee37('0x2e')]['findOne'](_0x27c5d3)[_0x3eee37('0x1b')](handleEntityNotFound(_0x35d511,null))['then'](respondWithResult(_0x35d511,null))[_0x3eee37('0x12')](handleError(_0x35d511,null));},exports[_0x18fd85('0x5')]=function(_0x1047f0,_0x47a5fd){const _0x3f4367=_0x18fd85;return db[_0x3f4367('0x2e')][_0x3f4367('0x5')](_0x1047f0[_0x3f4367('0x29')],{})[_0x3f4367('0x1b')](respondWithResult(_0x47a5fd,0xc9))[_0x3f4367('0x12')](handleError(_0x47a5fd,null));},exports[_0x18fd85('0x7')]=function(_0x2a460f,_0x4d491c){const _0x3ba321=_0x18fd85;return _0x2a460f['body']['id']&&delete _0x2a460f['body']['id'],db[_0x3ba321('0x2e')]['findOne']({'where':{'id':_0x2a460f['params']['id']}})[_0x3ba321('0x1b')](handleEntityNotFound(_0x4d491c,null))[_0x3ba321('0x1b')](saveUpdates(_0x2a460f['body'],null))[_0x3ba321('0x1b')](respondWithResult(_0x4d491c,null))[_0x3ba321('0x12')](handleError(_0x4d491c,null));},exports[_0x18fd85('0x4')]=function(_0x16291b,_0x478a9c){const _0x4ed8ea=_0x18fd85;return db[_0x4ed8ea('0x2e')][_0x4ed8ea('0x31')]({'where':{'id':_0x16291b[_0x4ed8ea('0x25')]['id']}})[_0x4ed8ea('0x1b')](handleEntityNotFound(_0x478a9c,null))[_0x4ed8ea('0x1b')](removeEntity(_0x478a9c,null))[_0x4ed8ea('0x12')](handleError(_0x478a9c,null));}; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.model.js b/server/api/cloudProvider/cloudProvider.model.js index cbebd89..19ff13e 100644 --- a/server/api/cloudProvider/cloudProvider.model.js +++ b/server/api/cloudProvider/cloudProvider.model.js @@ -1 +1 @@ -const a119_0x5c7c=['CloudProvider','./cloudProvider.attributes','cloud_providers','define'];(function(_0x3a6132,_0x5c7ca2){const _0x26bae=function(_0x484c6e){while(--_0x484c6e){_0x3a6132['push'](_0x3a6132['shift']());}};_0x26bae(++_0x5c7ca2);}(a119_0x5c7c,0x167));const a119_0x26ba=function(_0x3a6132,_0x5c7ca2){_0x3a6132=_0x3a6132-0x0;let _0x26bae=a119_0x5c7c[_0x3a6132];return _0x26bae;};const _0x185049=a119_0x26ba;'use strict';const attributes=require(_0x185049('0x2'));module['exports']=function(_0x484c6e){const _0x1904fb=_0x185049,_0x3afdd0=_0x484c6e[_0x1904fb('0x0')](_0x1904fb('0x1'),attributes,{'tableName':_0x1904fb('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3afdd0;}; \ No newline at end of file +const a119_0x1ff9=['exports','define'];(function(_0x9c9c2a,_0x1ff959){const _0x3ae27f=function(_0x2323a9){while(--_0x2323a9){_0x9c9c2a['push'](_0x9c9c2a['shift']());}};_0x3ae27f(++_0x1ff959);}(a119_0x1ff9,0x84));const a119_0x3ae2=function(_0x9c9c2a,_0x1ff959){_0x9c9c2a=_0x9c9c2a-0x0;let _0x3ae27f=a119_0x1ff9[_0x9c9c2a];return _0x3ae27f;};const _0x314f47=a119_0x3ae2;'use strict';const attributes=require('./cloudProvider.attributes');module[_0x314f47('0x0')]=function(_0x2323a9){const _0x90c81f=_0x314f47,_0x15f3c4=_0x2323a9[_0x90c81f('0x1')]('CloudProvider',attributes,{'tableName':'cloud_providers','paranoid':![],'indexes':[],'timestamps':!![]});return _0x15f3c4;}; \ No newline at end of file diff --git a/server/api/cloudProvider/index.js b/server/api/cloudProvider/index.js index c4906b4..8dd3cd5 100644 --- a/server/api/cloudProvider/index.js +++ b/server/api/cloudProvider/index.js @@ -1 +1 @@ -const a120_0x10c4=['destroy','update','show','put','exports','isAuthenticated','Router','../../components/auth/service','express','get','/:id','./cloudProvider.controller','delete'];(function(_0x149a77,_0x10c41d){const _0x4b8fa1=function(_0x422675){while(--_0x422675){_0x149a77['push'](_0x149a77['shift']());}};_0x4b8fa1(++_0x10c41d);}(a120_0x10c4,0x162));const a120_0x4b8f=function(_0x149a77,_0x10c41d){_0x149a77=_0x149a77-0x0;let _0x4b8fa1=a120_0x10c4[_0x149a77];return _0x4b8fa1;};const _0x311b89=a120_0x4b8f;'use strict';const express=require(_0x311b89('0x5')),router=express[_0x311b89('0x3')](),auth=require(_0x311b89('0x4')),controller=require(_0x311b89('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0x311b89('0x6')](_0x311b89('0x7'),auth[_0x311b89('0x2')](),controller[_0x311b89('0xc')]),router['post']('/',auth[_0x311b89('0x2')](),controller['create']),router[_0x311b89('0x0')](_0x311b89('0x7'),auth[_0x311b89('0x2')](),controller[_0x311b89('0xb')]),router[_0x311b89('0x9')]('/:id',auth[_0x311b89('0x2')](),controller[_0x311b89('0xa')]),module[_0x311b89('0x1')]=router; \ No newline at end of file +const a120_0x2a5c=['/:id','post','isAuthenticated','update','express','index','get','../../components/auth/service','create','delete','Router','destroy','exports','put','show'];(function(_0x3c32b8,_0x2a5ce0){const _0x372101=function(_0x37bdf8){while(--_0x37bdf8){_0x3c32b8['push'](_0x3c32b8['shift']());}};_0x372101(++_0x2a5ce0);}(a120_0x2a5c,0xb0));const a120_0x3721=function(_0x3c32b8,_0x2a5ce0){_0x3c32b8=_0x3c32b8-0x0;let _0x372101=a120_0x2a5c[_0x3c32b8];return _0x372101;};const _0x264080=a120_0x3721;'use strict';const express=require(_0x264080('0x8')),router=express[_0x264080('0xe')](),auth=require(_0x264080('0xb')),controller=require('./cloudProvider.controller');router[_0x264080('0xa')]('/',auth[_0x264080('0x6')](),controller[_0x264080('0x9')]),router[_0x264080('0xa')]('/:id',auth[_0x264080('0x6')](),controller[_0x264080('0x3')]),router[_0x264080('0x5')]('/',auth['isAuthenticated'](),controller[_0x264080('0xc')]),router[_0x264080('0x2')](_0x264080('0x4'),auth['isAuthenticated'](),controller[_0x264080('0x7')]),router[_0x264080('0xd')](_0x264080('0x4'),auth['isAuthenticated'](),controller[_0x264080('0x0')]),module[_0x264080('0x1')]=router; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.attributes.js b/server/api/cmCompany/cmCompany.attributes.js index 8e114bc..f376112 100644 --- a/server/api/cmCompany/cmCompany.attributes.js +++ b/server/api/cmCompany/cmCompany.attributes.js @@ -1 +1 @@ -const a121_0x5bc4=['STRING'];(function(_0x291227,_0x5bc45b){const _0x5148ea=function(_0x519dd7){while(--_0x519dd7){_0x291227['push'](_0x291227['shift']());}};_0x5148ea(++_0x5bc45b);}(a121_0x5bc4,0x104));const a121_0x5148=function(_0x291227,_0x5bc45b){_0x291227=_0x291227-0x0;let _0x5148ea=a121_0x5bc4[_0x291227];return _0x5148ea;};const _0x3ed99c=a121_0x5148;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x3ed99c('0x0')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x3ed99c('0x0')]},'companyId':{'type':Sequelize[_0x3ed99c('0x0')]},'website':{'type':Sequelize[_0x3ed99c('0x0')]},'phone':{'type':Sequelize[_0x3ed99c('0x0')]},'fax':{'type':Sequelize[_0x3ed99c('0x0')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x3ed99c('0x0')]},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0x3ed99c('0x0')]},'country':{'type':Sequelize[_0x3ed99c('0x0')]},'email':{'type':Sequelize[_0x3ed99c('0x0')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize['STRING']},'sStreet':{'type':Sequelize['STRING']},'sPostalCode':{'type':Sequelize[_0x3ed99c('0x0')]},'sCity':{'type':Sequelize[_0x3ed99c('0x0')]},'sCountry':{'type':Sequelize[_0x3ed99c('0x0')]},'description':{'type':Sequelize[_0x3ed99c('0x0')]}}; \ No newline at end of file +const a121_0x56f8=['exports','STRING','name','sequelize'];(function(_0x193078,_0x56f843){const _0x226639=function(_0x4263fd){while(--_0x4263fd){_0x193078['push'](_0x193078['shift']());}};_0x226639(++_0x56f843);}(a121_0x56f8,0xd5));const a121_0x2266=function(_0x193078,_0x56f843){_0x193078=_0x193078-0x0;let _0x226639=a121_0x56f8[_0x193078];return _0x226639;};const _0x36afc0=a121_0x2266;'use strict';const Sequelize=require(_0x36afc0('0x2'));module[_0x36afc0('0x3')]={'name':{'type':Sequelize[_0x36afc0('0x0')],'unique':_0x36afc0('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x36afc0('0x0')]},'companyId':{'type':Sequelize[_0x36afc0('0x0')]},'website':{'type':Sequelize[_0x36afc0('0x0')]},'phone':{'type':Sequelize[_0x36afc0('0x0')]},'fax':{'type':Sequelize[_0x36afc0('0x0')]},'type':{'type':Sequelize[_0x36afc0('0x0')]},'street':{'type':Sequelize[_0x36afc0('0x0')]},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0x36afc0('0x0')]},'country':{'type':Sequelize[_0x36afc0('0x0')]},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize['STRING']},'sStreet':{'type':Sequelize['STRING']},'sPostalCode':{'type':Sequelize[_0x36afc0('0x0')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0x36afc0('0x0')]},'description':{'type':Sequelize[_0x36afc0('0x0')]}}; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.controller.js b/server/api/cmCompany/cmCompany.controller.js index 5793bac..0e6def4 100644 --- a/server/api/cmCompany/cmCompany.controller.js +++ b/server/api/cmCompany/cmCompany.controller.js @@ -1 +1 @@ -const a122_0x1149=['merge','intersection','catch','order','api','where','../../mysqldb','undefined','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','UserProfileSection','params','attributes','../../config/logger','length','../../components/parsers/qs','model','findOne','getContacts','addContacts','create','UserProfileResource','CmContact','status','error','Content-Range','omit','role','body','then','options','filter','keys','query','count','sequelize','map','limit','like','update','CmCompany','get','lodash','includeAll','rawAttributes','nolimit','findAll','sendStatus','sort','user','rows','index','pick','send','filters','show','describe','autoAssociation','offset','destroy','json','stack','fields','name'];(function(_0x23c01c,_0x1149d6){const _0x1589ef=function(_0x1ae729){while(--_0x1ae729){_0x23c01c['push'](_0x23c01c['shift']());}};_0x1589ef(++_0x1149d6);}(a122_0x1149,0xb7));const a122_0x1589=function(_0x23c01c,_0x1149d6){_0x23c01c=_0x23c01c-0x0;let _0x1589ef=a122_0x1149[_0x23c01c];return _0x1589ef;};const _0x3cc798=a122_0x1589;'use strict';const _=require(_0x3cc798('0x2f')),qs=require(_0x3cc798('0x14')),logger=require(_0x3cc798('0x12'))(_0x3cc798('0xa')),db=require(_0x3cc798('0xc'))['db'],{Op}=require(_0x3cc798('0x28'));function respondWithResult(_0x1ae729,_0x452082){return _0x452082=_0x452082||0xc8,function(_0x1ebebe){const _0x4b9fc4=a122_0x1589;if(_0x1ebebe)return _0x1ae729[_0x4b9fc4('0x1c')](_0x452082)[_0x4b9fc4('0x2')](_0x1ebebe);};}function respondWithFilteredResult(_0x20ef2e,_0x3f324a){return function(_0xa208e7){const _0x42f4d1=a122_0x1589;if(_0xa208e7){const _0x53302f=_0xa208e7[_0x42f4d1('0x27')],_0x3d871e=_0x3f324a[_0x42f4d1('0x0')];let _0x42277e=_0x3f324a[_0x42f4d1('0x0')]+_0x3f324a[_0x42f4d1('0x2a')],_0x50b06b;return _0x42277e>=_0x53302f?(_0x42277e=_0x53302f,_0x50b06b=0xc8):_0x50b06b=0xce,_0x20ef2e['status'](_0x50b06b),_0x20ef2e['set'](_0x42f4d1('0x1e'),_0x3d871e+'-'+_0x42277e+'/'+_0x53302f)[_0x42f4d1('0x2')](_0xa208e7);}return null;};}function saveUpdates(_0x1cb971){return function(_0x21a824){const _0x311f80=a122_0x1589;if(_0x21a824)return _0x21a824['update'](_0x1cb971)[_0x311f80('0x22')](function(_0x168a94){return _0x168a94;});return null;};}function removeEntity(_0x534b84){return function(_0x116238){const _0x3596c6=a122_0x1589;if(_0x116238)return _0x116238[_0x3596c6('0x1')]()[_0x3596c6('0x22')](function(){const _0x23840b=_0x3596c6,_0x408914=_0x116238[_0x23840b('0x2e')]({'plain':!![]}),_0x11591c='Companies';return db[_0x23840b('0x1a')][_0x23840b('0x1')]({'where':{'type':_0x11591c,'resourceId':_0x408914['id']}})[_0x23840b('0x22')](function(){return _0x116238;});})[_0x3596c6('0x22')](function(){_0x534b84['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x441e7c){return function(_0x9c22f7){const _0x3a0c70=a122_0x1589;return!_0x9c22f7&&_0x441e7c[_0x3a0c70('0x34')](0x194),_0x9c22f7;};}function handleError(_0x5ddfbd,_0x801b68){return _0x801b68=_0x801b68||0x1f4,function(_0xa2b36){const _0x3b7565=a122_0x1589;logger[_0x3b7565('0x1d')](_0xa2b36[_0x3b7565('0x3')]),_0xa2b36[_0x3b7565('0x5')]&&delete _0xa2b36[_0x3b7565('0x5')],_0x5ddfbd[_0x3b7565('0x1c')](_0x801b68)[_0x3b7565('0x3a')](_0xa2b36);};}exports[_0x3cc798('0x38')]=function(_0xd05ce9,_0x3445f5){const _0x4da671=_0x3cc798;let _0x104ad7={};const _0x4192de={},_0x1a1137={'count':0x0,'rows':[]};return db['CmCompany']['describe']()[_0x4da671('0x22')](function(_0x249189){const _0x1469bb=_0x4da671;_0x4192de[_0x1469bb('0x15')]=_[_0x1469bb('0x25')](_0x249189),_0x4192de[_0x1469bb('0x26')]=_[_0x1469bb('0x25')](_0xd05ce9[_0x1469bb('0x26')]),_0x4192de[_0x1469bb('0x3b')]=_['intersection'](_0x4192de[_0x1469bb('0x15')],_0x4192de['query']),_0x104ad7[_0x1469bb('0x11')]=_[_0x1469bb('0x7')](_0x4192de[_0x1469bb('0x15')],qs[_0x1469bb('0x4')](_0xd05ce9[_0x1469bb('0x26')][_0x1469bb('0x4')])),_0x104ad7['attributes']=_0x104ad7[_0x1469bb('0x11')]['length']?_0x104ad7[_0x1469bb('0x11')]:_0x4192de['model'];typeof _0xd05ce9[_0x1469bb('0x26')][_0x1469bb('0x32')]==='undefined'&&(_0x104ad7[_0x1469bb('0x2a')]=qs['limit'](_0xd05ce9[_0x1469bb('0x26')]['limit']),_0x104ad7['offset']=qs['offset'](_0xd05ce9['query'][_0x1469bb('0x0')]));_0x104ad7['order']=qs[_0x1469bb('0x35')](_0xd05ce9[_0x1469bb('0x26')][_0x1469bb('0x35')]),_0x104ad7['where']=qs[_0x1469bb('0x3b')](_['pick'](_0xd05ce9[_0x1469bb('0x26')],_0x4192de[_0x1469bb('0x3b')]),_0x249189);_0xd05ce9[_0x1469bb('0x26')][_0x1469bb('0x24')]&&(_0x104ad7[_0x1469bb('0xb')]=_['merge'](_0x104ad7[_0x1469bb('0xb')],{[Op['or']]:_[_0x1469bb('0x29')](_0x104ad7['attributes'],function(_0x39b657){const _0x4f1327=_0x1469bb,_0x28334a={};return _0x28334a[_0x39b657]={[Op['like']]:'%'+_0xd05ce9['query'][_0x4f1327('0x24')]+'%'},_0x28334a;})}));_0x104ad7=_[_0x1469bb('0x6')]({},_0x104ad7,_0xd05ce9[_0x1469bb('0x23')]);const _0x3d728d={'where':_0x104ad7[_0x1469bb('0xb')]};return db[_0x1469bb('0x2d')][_0x1469bb('0x27')](_0x3d728d)['then'](function(_0x5d05df){const _0x20a88c=_0x1469bb;return _0x1a1137[_0x20a88c('0x27')]=_0x5d05df,_0xd05ce9[_0x20a88c('0x26')][_0x20a88c('0x30')]&&(_0x104ad7['include']=[{'all':!![]}]),db[_0x20a88c('0x2d')][_0x20a88c('0x33')](_0x104ad7);})['then'](function(_0x52e622){const _0x171b40=_0x1469bb;return _0x1a1137[_0x171b40('0x37')]=_0x52e622,_0x1a1137;})[_0x1469bb('0x22')](respondWithFilteredResult(_0x3445f5,_0x104ad7))['catch'](handleError(_0x3445f5,null));})['catch'](handleError(_0x3445f5,null));},exports[_0x3cc798('0x3c')]=function(_0x42cb36,_0x54905e){const _0x284cc4=_0x3cc798;let _0x1d3bf4={'raw':![],'where':{'id':_0x42cb36[_0x284cc4('0x10')]['id']}};const _0x5cd212={};return _0x5cd212[_0x284cc4('0x15')]=_[_0x284cc4('0x25')](db['CmCompany'][_0x284cc4('0x31')]),_0x5cd212['query']=_[_0x284cc4('0x25')](_0x42cb36['query']),_0x5cd212['filters']=_[_0x284cc4('0x7')](_0x5cd212['model'],_0x5cd212[_0x284cc4('0x26')]),_0x1d3bf4[_0x284cc4('0x11')]=_[_0x284cc4('0x7')](_0x5cd212[_0x284cc4('0x15')],qs[_0x284cc4('0x4')](_0x42cb36[_0x284cc4('0x26')][_0x284cc4('0x4')])),_0x1d3bf4['attributes']=_0x1d3bf4['attributes'][_0x284cc4('0x13')]?_0x1d3bf4[_0x284cc4('0x11')]:_0x5cd212[_0x284cc4('0x15')],_0x42cb36[_0x284cc4('0x26')][_0x284cc4('0x30')]&&(_0x1d3bf4['include']=[{'all':!![]}]),_0x1d3bf4=_[_0x284cc4('0x6')]({},_0x1d3bf4,_0x42cb36['options']),db[_0x284cc4('0x2d')]['findOne'](_0x1d3bf4)[_0x284cc4('0x22')](handleEntityNotFound(_0x54905e,null))['then'](respondWithResult(_0x54905e,null))[_0x284cc4('0x8')](handleError(_0x54905e,null));},exports[_0x3cc798('0x19')]=function(_0x261e09,_0x6937f1){const _0xfd5576=_0x3cc798;return db[_0xfd5576('0x2d')][_0xfd5576('0x19')](_0x261e09[_0xfd5576('0x21')],{})[_0xfd5576('0x22')](function(_0x21c5e2){const _0x4fd4f6=_0xfd5576,_0x3a8f95=_0x261e09['user']['get']({'plain':!![]});if(!_0x3a8f95)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3a8f95[_0x4fd4f6('0x20')]===_0x4fd4f6('0x36')){const _0x41e17f=_0x21c5e2[_0x4fd4f6('0x2e')]({'plain':!![]}),_0xe312a2='Companies';return db[_0x4fd4f6('0xf')][_0x4fd4f6('0x16')]({'where':{'name':_0xe312a2,'userProfileId':_0x3a8f95['userProfileId']},'raw':!![]})['then'](function(_0x2c1eec){const _0x122817=_0x4fd4f6;return _0x2c1eec&&_0x2c1eec[_0x122817('0x3e')]===0x0?db[_0x122817('0x1a')][_0x122817('0x19')]({'name':_0x41e17f['name'],'resourceId':_0x41e17f['id'],'type':_0x2c1eec['name'],'sectionId':_0x2c1eec['id']},{})['then'](function(){return _0x21c5e2;}):_0x21c5e2;})[_0x4fd4f6('0x8')](function(_0x17d2d6){const _0x35cdee=_0x4fd4f6;logger[_0x35cdee('0x1d')](_0x35cdee('0xe'),_0x17d2d6);throw _0x17d2d6;});}return _0x21c5e2;})[_0xfd5576('0x22')](respondWithResult(_0x6937f1,0xc9))[_0xfd5576('0x8')](handleError(_0x6937f1,null));},exports[_0x3cc798('0x2c')]=function(_0x4fd3e7,_0x24178b){const _0x525be3=_0x3cc798;return _0x4fd3e7[_0x525be3('0x21')]['id']&&delete _0x4fd3e7[_0x525be3('0x21')]['id'],db[_0x525be3('0x2d')][_0x525be3('0x16')]({'where':{'id':_0x4fd3e7[_0x525be3('0x10')]['id']}})['then'](handleEntityNotFound(_0x24178b,null))[_0x525be3('0x22')](saveUpdates(_0x4fd3e7['body'],null))[_0x525be3('0x22')](respondWithResult(_0x24178b,null))[_0x525be3('0x8')](handleError(_0x24178b,null));},exports[_0x3cc798('0x1')]=function(_0x5711f2,_0x4b4948){const _0x550855=_0x3cc798;return db[_0x550855('0x2d')][_0x550855('0x16')]({'where':{'id':_0x5711f2[_0x550855('0x10')]['id']}})['then'](handleEntityNotFound(_0x4b4948,null))[_0x550855('0x22')](removeEntity(_0x4b4948,null))[_0x550855('0x8')](handleError(_0x4b4948,null));},exports[_0x3cc798('0x3d')]=function(_0x59db25,_0x9b67e9){const _0x1b3f54=_0x3cc798;return db[_0x1b3f54('0x2d')][_0x1b3f54('0x3d')]()['then'](respondWithResult(_0x9b67e9,null))[_0x1b3f54('0x8')](handleError(_0x9b67e9,null));},exports[_0x3cc798('0x18')]=function(_0x9d965c,_0x33d4b3){const _0x500d3e=_0x3cc798;return db[_0x500d3e('0x1b')][_0x500d3e('0x16')]({'where':{'id':_0x9d965c[_0x500d3e('0x10')]['id']}})['then'](function(_0x1a4791){const _0x423ed6=_0x500d3e;if(_0x1a4791)return _0x1a4791[_0x423ed6('0x18')](_0x9d965c['body']['ids'],{'through':_[_0x423ed6('0x1f')](_0x9d965c[_0x423ed6('0x21')],['ids','id'])});})[_0x500d3e('0x22')](respondWithResult(_0x33d4b3,null))['catch'](handleError(_0x33d4b3,null));},exports[_0x3cc798('0x17')]=function(_0x338ef2,_0x297b6e){const _0x39a890=_0x3cc798;let _0x15ef29={};const _0x5eb3cc={};let _0x2c7f18,_0x9b6521;return db[_0x39a890('0x2d')][_0x39a890('0x16')]({'where':{'id':_0x338ef2[_0x39a890('0x10')]['id']}})[_0x39a890('0x22')](handleEntityNotFound(_0x297b6e,null))[_0x39a890('0x22')](function(_0x8ea9ee){const _0x38e26b=_0x39a890;if(_0x8ea9ee)return _0x2c7f18=_0x8ea9ee,_0x5eb3cc[_0x38e26b('0x15')]=_['keys'](db[_0x38e26b('0x1b')][_0x38e26b('0x31')]),_0x5eb3cc[_0x38e26b('0x26')]=_[_0x38e26b('0x25')](_0x338ef2[_0x38e26b('0x26')]),_0x5eb3cc[_0x38e26b('0x3b')]=_[_0x38e26b('0x7')](_0x5eb3cc['model'],_0x5eb3cc[_0x38e26b('0x26')]),_0x15ef29['attributes']=_['intersection'](_0x5eb3cc[_0x38e26b('0x15')],qs['fields'](_0x338ef2[_0x38e26b('0x26')]['fields'])),_0x15ef29[_0x38e26b('0x11')]=_0x15ef29[_0x38e26b('0x11')][_0x38e26b('0x13')]?_0x15ef29[_0x38e26b('0x11')]:_0x5eb3cc[_0x38e26b('0x15')],_0x15ef29[_0x38e26b('0x9')]=qs[_0x38e26b('0x35')](_0x338ef2['query'][_0x38e26b('0x35')]),_0x15ef29[_0x38e26b('0xb')]=qs[_0x38e26b('0x3b')](_[_0x38e26b('0x39')](_0x338ef2[_0x38e26b('0x26')],_0x5eb3cc[_0x38e26b('0x3b')])),_0x338ef2[_0x38e26b('0x26')][_0x38e26b('0x24')]&&(_0x15ef29['where']=_[_0x38e26b('0x6')](_0x15ef29['where'],{[Op['or']]:_['map'](_0x15ef29[_0x38e26b('0x11')],function(_0x3fd68f){const _0x40f01a=_0x38e26b,_0x17133f={};return _0x17133f[_0x3fd68f]={[Op[_0x40f01a('0x2b')]]:'%'+_0x338ef2[_0x40f01a('0x26')][_0x40f01a('0x24')]+'%'},_0x17133f;})})),_0x15ef29=_[_0x38e26b('0x6')]({},_0x15ef29,_0x338ef2['options']),_0x2c7f18['getContacts'](_0x15ef29);})[_0x39a890('0x22')](function(_0x452917){const _0x48a24d=_0x39a890;if(_0x452917)return _0x9b6521=_0x452917[_0x48a24d('0x13')],typeof _0x338ef2[_0x48a24d('0x26')]['nolimit']===_0x48a24d('0xd')&&(_0x15ef29[_0x48a24d('0x2a')]=qs[_0x48a24d('0x2a')](_0x338ef2[_0x48a24d('0x26')][_0x48a24d('0x2a')]),_0x15ef29[_0x48a24d('0x0')]=qs[_0x48a24d('0x0')](_0x338ef2[_0x48a24d('0x26')][_0x48a24d('0x0')])),_0x2c7f18[_0x48a24d('0x17')](_0x15ef29);})[_0x39a890('0x22')](function(_0x4346f4){if(_0x4346f4)return _0x4346f4?{'count':_0x9b6521,'rows':_0x4346f4}:null;})[_0x39a890('0x22')](respondWithResult(_0x297b6e,null))['catch'](handleError(_0x297b6e,null));}; \ No newline at end of file +const a122_0x3ba8=['CmCompany','getContacts','filters','offset','lodash','rawAttributes','send','include','findOne','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','filter','autoAssociation','Companies','fields','params','attributes','status','count','pick','UserProfileResource','order','end','like','map','stack','destroy','then','nolimit','intersection','name','set','../../mysqldb','show','user','omit','addContacts','UserProfileSection','../../config/logger','ids','undefined','catch','length','query','limit','options','error','Content-Range','model','body','sendStatus','get','userProfileId','merge','keys','where','role','create','sequelize','describe','includeAll','sort','rows'];(function(_0xfc705a,_0x3ba819){const _0x4a2557=function(_0x5c9f89){while(--_0x5c9f89){_0xfc705a['push'](_0xfc705a['shift']());}};_0x4a2557(++_0x3ba819);}(a122_0x3ba8,0x165));const a122_0x4a25=function(_0xfc705a,_0x3ba819){_0xfc705a=_0xfc705a-0x0;let _0x4a2557=a122_0x3ba8[_0xfc705a];return _0x4a2557;};const _0x550e01=a122_0x4a25;'use strict';const _=require(_0x550e01('0x13')),qs=require('../../components/parsers/qs'),logger=require(_0x550e01('0x34'))('api'),db=require(_0x550e01('0x2e'))['db'],{Op}=require(_0x550e01('0xa'));function respondWithResult(_0x5c9f89,_0x216a92){return _0x216a92=_0x216a92||0xc8,function(_0x33bb42){const _0xf1e945=a122_0x4a25;if(_0x33bb42)return _0x5c9f89[_0xf1e945('0x1f')](_0x216a92)['json'](_0x33bb42);};}function respondWithFilteredResult(_0x22657f,_0x598237){return function(_0x22ef9d){const _0x371d1b=a122_0x4a25;if(_0x22ef9d){const _0x39e06c=_0x22ef9d[_0x371d1b('0x20')],_0x1376c8=_0x598237[_0x371d1b('0x12')];let _0x464a3f=_0x598237[_0x371d1b('0x12')]+_0x598237[_0x371d1b('0x3a')],_0x295f22;return _0x464a3f>=_0x39e06c?(_0x464a3f=_0x39e06c,_0x295f22=0xc8):_0x295f22=0xce,_0x22657f[_0x371d1b('0x1f')](_0x295f22),_0x22657f[_0x371d1b('0x2d')](_0x371d1b('0x3d'),_0x1376c8+'-'+_0x464a3f+'/'+_0x39e06c)['json'](_0x22ef9d);}return null;};}function saveUpdates(_0x3cfd65){return function(_0x551896){const _0x47b21b=a122_0x4a25;if(_0x551896)return _0x551896['update'](_0x3cfd65)[_0x47b21b('0x29')](function(_0x5b09af){return _0x5b09af;});return null;};}function removeEntity(_0x5915f8){return function(_0x1d008a){const _0x5fa1fb=a122_0x4a25;if(_0x1d008a)return _0x1d008a['destroy']()[_0x5fa1fb('0x29')](function(){const _0x577150=_0x5fa1fb,_0x20305a=_0x1d008a[_0x577150('0x3')]({'plain':!![]}),_0x167bfa=_0x577150('0x1b');return db[_0x577150('0x22')][_0x577150('0x28')]({'where':{'type':_0x167bfa,'resourceId':_0x20305a['id']}})[_0x577150('0x29')](function(){return _0x1d008a;});})[_0x5fa1fb('0x29')](function(){const _0x14deb3=_0x5fa1fb;_0x5915f8[_0x14deb3('0x1f')](0xcc)[_0x14deb3('0x24')]();});};}function handleEntityNotFound(_0x49cd3c){return function(_0x74b3){const _0x262450=a122_0x4a25;return!_0x74b3&&_0x49cd3c[_0x262450('0x2')](0x194),_0x74b3;};}function handleError(_0x89d9f9,_0x3887ff){return _0x3887ff=_0x3887ff||0x1f4,function(_0x7ca46b){const _0x35a355=a122_0x4a25;logger[_0x35a355('0x3c')](_0x7ca46b[_0x35a355('0x27')]),_0x7ca46b[_0x35a355('0x2c')]&&delete _0x7ca46b[_0x35a355('0x2c')],_0x89d9f9['status'](_0x3887ff)[_0x35a355('0x15')](_0x7ca46b);};}exports['index']=function(_0x5d895b,_0x210dda){const _0x1b187a=_0x550e01;let _0x4d86e7={};const _0x2a7289={},_0xd1b5ef={'count':0x0,'rows':[]};return db[_0x1b187a('0xf')]['describe']()['then'](function(_0x1a21a3){const _0x4f2264=_0x1b187a;_0x2a7289[_0x4f2264('0x0')]=_['keys'](_0x1a21a3),_0x2a7289['query']=_['keys'](_0x5d895b[_0x4f2264('0x39')]),_0x2a7289[_0x4f2264('0x11')]=_[_0x4f2264('0x2b')](_0x2a7289['model'],_0x2a7289['query']),_0x4d86e7[_0x4f2264('0x1e')]=_[_0x4f2264('0x2b')](_0x2a7289['model'],qs['fields'](_0x5d895b[_0x4f2264('0x39')]['fields'])),_0x4d86e7[_0x4f2264('0x1e')]=_0x4d86e7[_0x4f2264('0x1e')][_0x4f2264('0x38')]?_0x4d86e7[_0x4f2264('0x1e')]:_0x2a7289[_0x4f2264('0x0')];typeof _0x5d895b[_0x4f2264('0x39')][_0x4f2264('0x2a')]===_0x4f2264('0x36')&&(_0x4d86e7['limit']=qs[_0x4f2264('0x3a')](_0x5d895b[_0x4f2264('0x39')]['limit']),_0x4d86e7[_0x4f2264('0x12')]=qs[_0x4f2264('0x12')](_0x5d895b[_0x4f2264('0x39')][_0x4f2264('0x12')]));_0x4d86e7['order']=qs[_0x4f2264('0xd')](_0x5d895b[_0x4f2264('0x39')]['sort']),_0x4d86e7[_0x4f2264('0x7')]=qs['filters'](_[_0x4f2264('0x21')](_0x5d895b[_0x4f2264('0x39')],_0x2a7289['filters']),_0x1a21a3);_0x5d895b[_0x4f2264('0x39')][_0x4f2264('0x19')]&&(_0x4d86e7['where']=_[_0x4f2264('0x5')](_0x4d86e7[_0x4f2264('0x7')],{[Op['or']]:_[_0x4f2264('0x26')](_0x4d86e7[_0x4f2264('0x1e')],function(_0x428282){const _0x29d484=_0x4f2264,_0x145c03={};return _0x145c03[_0x428282]={[Op[_0x29d484('0x25')]]:'%'+_0x5d895b[_0x29d484('0x39')]['filter']+'%'},_0x145c03;})}));_0x4d86e7=_[_0x4f2264('0x5')]({},_0x4d86e7,_0x5d895b[_0x4f2264('0x3b')]);const _0x566ad5={'where':_0x4d86e7[_0x4f2264('0x7')]};return db[_0x4f2264('0xf')]['count'](_0x566ad5)[_0x4f2264('0x29')](function(_0x5e7ad9){const _0x186732=_0x4f2264;return _0xd1b5ef[_0x186732('0x20')]=_0x5e7ad9,_0x5d895b[_0x186732('0x39')][_0x186732('0xc')]&&(_0x4d86e7[_0x186732('0x16')]=[{'all':!![]}]),db[_0x186732('0xf')]['findAll'](_0x4d86e7);})[_0x4f2264('0x29')](function(_0x532842){const _0x4d75f8=_0x4f2264;return _0xd1b5ef[_0x4d75f8('0xe')]=_0x532842,_0xd1b5ef;})[_0x4f2264('0x29')](respondWithFilteredResult(_0x210dda,_0x4d86e7))['catch'](handleError(_0x210dda,null));})[_0x1b187a('0x37')](handleError(_0x210dda,null));},exports[_0x550e01('0x2f')]=function(_0x2f0912,_0x48b300){const _0x1e91c0=_0x550e01;let _0x9ec0c1={'raw':![],'where':{'id':_0x2f0912[_0x1e91c0('0x1d')]['id']}};const _0x5e20ae={};return _0x5e20ae['model']=_[_0x1e91c0('0x6')](db['CmCompany'][_0x1e91c0('0x14')]),_0x5e20ae[_0x1e91c0('0x39')]=_[_0x1e91c0('0x6')](_0x2f0912[_0x1e91c0('0x39')]),_0x5e20ae['filters']=_[_0x1e91c0('0x2b')](_0x5e20ae[_0x1e91c0('0x0')],_0x5e20ae[_0x1e91c0('0x39')]),_0x9ec0c1['attributes']=_[_0x1e91c0('0x2b')](_0x5e20ae[_0x1e91c0('0x0')],qs['fields'](_0x2f0912[_0x1e91c0('0x39')]['fields'])),_0x9ec0c1['attributes']=_0x9ec0c1['attributes'][_0x1e91c0('0x38')]?_0x9ec0c1[_0x1e91c0('0x1e')]:_0x5e20ae[_0x1e91c0('0x0')],_0x2f0912[_0x1e91c0('0x39')][_0x1e91c0('0xc')]&&(_0x9ec0c1[_0x1e91c0('0x16')]=[{'all':!![]}]),_0x9ec0c1=_['merge']({},_0x9ec0c1,_0x2f0912[_0x1e91c0('0x3b')]),db[_0x1e91c0('0xf')][_0x1e91c0('0x17')](_0x9ec0c1)[_0x1e91c0('0x29')](handleEntityNotFound(_0x48b300,null))[_0x1e91c0('0x29')](respondWithResult(_0x48b300,null))[_0x1e91c0('0x37')](handleError(_0x48b300,null));},exports[_0x550e01('0x9')]=function(_0x55d282,_0x5e01a5){const _0x2dbc13=_0x550e01;return db[_0x2dbc13('0xf')]['create'](_0x55d282[_0x2dbc13('0x1')],{})['then'](function(_0x2608d3){const _0x3290b7=_0x2dbc13,_0x8109c=_0x55d282['user'][_0x3290b7('0x3')]({'plain':!![]});if(!_0x8109c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x8109c[_0x3290b7('0x8')]===_0x3290b7('0x30')){const _0x4bf4c3=_0x2608d3[_0x3290b7('0x3')]({'plain':!![]}),_0x15cd49=_0x3290b7('0x1b');return db[_0x3290b7('0x33')]['findOne']({'where':{'name':_0x15cd49,'userProfileId':_0x8109c[_0x3290b7('0x4')]},'raw':!![]})[_0x3290b7('0x29')](function(_0x43f7eb){const _0x3f6d46=_0x3290b7;return _0x43f7eb&&_0x43f7eb[_0x3f6d46('0x1a')]===0x0?db[_0x3f6d46('0x22')][_0x3f6d46('0x9')]({'name':_0x4bf4c3[_0x3f6d46('0x2c')],'resourceId':_0x4bf4c3['id'],'type':_0x43f7eb[_0x3f6d46('0x2c')],'sectionId':_0x43f7eb['id']},{})['then'](function(){return _0x2608d3;}):_0x2608d3;})['catch'](function(_0x46d315){const _0x2a4ae9=_0x3290b7;logger[_0x2a4ae9('0x3c')](_0x2a4ae9('0x18'),_0x46d315);throw _0x46d315;});}return _0x2608d3;})[_0x2dbc13('0x29')](respondWithResult(_0x5e01a5,0xc9))[_0x2dbc13('0x37')](handleError(_0x5e01a5,null));},exports['update']=function(_0x1c3d7a,_0x175255){const _0x3a0818=_0x550e01;return _0x1c3d7a['body']['id']&&delete _0x1c3d7a['body']['id'],db[_0x3a0818('0xf')][_0x3a0818('0x17')]({'where':{'id':_0x1c3d7a[_0x3a0818('0x1d')]['id']}})['then'](handleEntityNotFound(_0x175255,null))[_0x3a0818('0x29')](saveUpdates(_0x1c3d7a['body'],null))['then'](respondWithResult(_0x175255,null))['catch'](handleError(_0x175255,null));},exports[_0x550e01('0x28')]=function(_0x186a46,_0x2f5aff){const _0x538a25=_0x550e01;return db['CmCompany']['findOne']({'where':{'id':_0x186a46['params']['id']}})[_0x538a25('0x29')](handleEntityNotFound(_0x2f5aff,null))[_0x538a25('0x29')](removeEntity(_0x2f5aff,null))['catch'](handleError(_0x2f5aff,null));},exports[_0x550e01('0xb')]=function(_0x44b76b,_0x27b134){const _0x38e1b4=_0x550e01;return db['CmCompany'][_0x38e1b4('0xb')]()['then'](respondWithResult(_0x27b134,null))['catch'](handleError(_0x27b134,null));},exports[_0x550e01('0x32')]=function(_0x31eb14,_0x8224a9){const _0x2eb72c=_0x550e01;return db['CmContact']['findOne']({'where':{'id':_0x31eb14['params']['id']}})['then'](function(_0x566d16){const _0x191704=a122_0x4a25;if(_0x566d16)return _0x566d16[_0x191704('0x32')](_0x31eb14[_0x191704('0x1')]['ids'],{'through':_[_0x191704('0x31')](_0x31eb14['body'],[_0x191704('0x35'),'id'])});})[_0x2eb72c('0x29')](respondWithResult(_0x8224a9,null))[_0x2eb72c('0x37')](handleError(_0x8224a9,null));},exports[_0x550e01('0x10')]=function(_0x1702ec,_0x2789bb){const _0x235a3a=_0x550e01;let _0x48bae7={};const _0x499fb1={};let _0x2c221b,_0x47a790;return db[_0x235a3a('0xf')][_0x235a3a('0x17')]({'where':{'id':_0x1702ec[_0x235a3a('0x1d')]['id']}})[_0x235a3a('0x29')](handleEntityNotFound(_0x2789bb,null))[_0x235a3a('0x29')](function(_0x507040){const _0x1f7afd=_0x235a3a;if(_0x507040)return _0x2c221b=_0x507040,_0x499fb1[_0x1f7afd('0x0')]=_[_0x1f7afd('0x6')](db['CmContact'][_0x1f7afd('0x14')]),_0x499fb1[_0x1f7afd('0x39')]=_[_0x1f7afd('0x6')](_0x1702ec['query']),_0x499fb1[_0x1f7afd('0x11')]=_[_0x1f7afd('0x2b')](_0x499fb1[_0x1f7afd('0x0')],_0x499fb1[_0x1f7afd('0x39')]),_0x48bae7[_0x1f7afd('0x1e')]=_[_0x1f7afd('0x2b')](_0x499fb1[_0x1f7afd('0x0')],qs[_0x1f7afd('0x1c')](_0x1702ec[_0x1f7afd('0x39')]['fields'])),_0x48bae7[_0x1f7afd('0x1e')]=_0x48bae7[_0x1f7afd('0x1e')]['length']?_0x48bae7[_0x1f7afd('0x1e')]:_0x499fb1[_0x1f7afd('0x0')],_0x48bae7[_0x1f7afd('0x23')]=qs[_0x1f7afd('0xd')](_0x1702ec['query'][_0x1f7afd('0xd')]),_0x48bae7['where']=qs[_0x1f7afd('0x11')](_[_0x1f7afd('0x21')](_0x1702ec[_0x1f7afd('0x39')],_0x499fb1[_0x1f7afd('0x11')])),_0x1702ec['query']['filter']&&(_0x48bae7[_0x1f7afd('0x7')]=_['merge'](_0x48bae7[_0x1f7afd('0x7')],{[Op['or']]:_[_0x1f7afd('0x26')](_0x48bae7['attributes'],function(_0x2e9b03){const _0x3e6c7f=_0x1f7afd,_0x38a8fd={};return _0x38a8fd[_0x2e9b03]={[Op[_0x3e6c7f('0x25')]]:'%'+_0x1702ec[_0x3e6c7f('0x39')]['filter']+'%'},_0x38a8fd;})})),_0x48bae7=_[_0x1f7afd('0x5')]({},_0x48bae7,_0x1702ec[_0x1f7afd('0x3b')]),_0x2c221b['getContacts'](_0x48bae7);})[_0x235a3a('0x29')](function(_0x64e3ab){const _0x8808a6=_0x235a3a;if(_0x64e3ab)return _0x47a790=_0x64e3ab[_0x8808a6('0x38')],typeof _0x1702ec[_0x8808a6('0x39')][_0x8808a6('0x2a')]===_0x8808a6('0x36')&&(_0x48bae7[_0x8808a6('0x3a')]=qs[_0x8808a6('0x3a')](_0x1702ec['query'][_0x8808a6('0x3a')]),_0x48bae7['offset']=qs['offset'](_0x1702ec[_0x8808a6('0x39')][_0x8808a6('0x12')])),_0x2c221b['getContacts'](_0x48bae7);})[_0x235a3a('0x29')](function(_0x209b5d){if(_0x209b5d)return _0x209b5d?{'count':_0x47a790,'rows':_0x209b5d}:null;})[_0x235a3a('0x29')](respondWithResult(_0x2789bb,null))[_0x235a3a('0x37')](handleError(_0x2789bb,null));}; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.model.js b/server/api/cmCompany/cmCompany.model.js index a4c66ec..1959d5d 100644 --- a/server/api/cmCompany/cmCompany.model.js +++ b/server/api/cmCompany/cmCompany.model.js @@ -1 +1 @@ -const a123_0x51ee=['./cmCompany.attributes','cm_companies','define','exports','CmCompany'];(function(_0x56373b,_0x51eebf){const _0x190014=function(_0x4dd718){while(--_0x4dd718){_0x56373b['push'](_0x56373b['shift']());}};_0x190014(++_0x51eebf);}(a123_0x51ee,0xdb));const a123_0x1900=function(_0x56373b,_0x51eebf){_0x56373b=_0x56373b-0x0;let _0x190014=a123_0x51ee[_0x56373b];return _0x190014;};const _0x713ed1=a123_0x1900;'use strict';const attributes=require(_0x713ed1('0x1'));module[_0x713ed1('0x4')]=function(_0x4dd718){const _0x404c9a=_0x713ed1,_0x16cda4=_0x4dd718[_0x404c9a('0x3')](_0x404c9a('0x0'),attributes,{'tableName':_0x404c9a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x16cda4;}; \ No newline at end of file +const a123_0x1797=['cm_companies','./cmCompany.attributes','CmCompany','exports','define'];(function(_0x4b09c9,_0x179733){const _0x3cdbf7=function(_0x29166f){while(--_0x29166f){_0x4b09c9['push'](_0x4b09c9['shift']());}};_0x3cdbf7(++_0x179733);}(a123_0x1797,0x92));const a123_0x3cdb=function(_0x4b09c9,_0x179733){_0x4b09c9=_0x4b09c9-0x0;let _0x3cdbf7=a123_0x1797[_0x4b09c9];return _0x3cdbf7;};const _0x5d4c43=a123_0x3cdb;'use strict';const attributes=require(_0x5d4c43('0x0'));module[_0x5d4c43('0x2')]=function(_0x29166f){const _0x537ec6=_0x5d4c43,_0x351465=_0x29166f[_0x537ec6('0x3')](_0x537ec6('0x1'),attributes,{'tableName':_0x537ec6('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x351465;}; \ No newline at end of file diff --git a/server/api/cmCompany/index.js b/server/api/cmCompany/index.js index 4208109..43b5dd5 100644 --- a/server/api/cmCompany/index.js +++ b/server/api/cmCompany/index.js @@ -1 +1 @@ -const a124_0x1eb9=['index','/describe','../../components/auth/service','/:id/contacts','delete','Router','isAuthenticated','post','/:id','get','getContacts','destroy','create','express','addContacts','put','exports','describe','./cmCompany.controller'];(function(_0x5ddea2,_0x1eb970){const _0x2f6e4e=function(_0x18bc2a){while(--_0x18bc2a){_0x5ddea2['push'](_0x5ddea2['shift']());}};_0x2f6e4e(++_0x1eb970);}(a124_0x1eb9,0x176));const a124_0x2f6e=function(_0x5ddea2,_0x1eb970){_0x5ddea2=_0x5ddea2-0x0;let _0x2f6e4e=a124_0x1eb9[_0x5ddea2];return _0x2f6e4e;};const _0x513564=a124_0x2f6e;'use strict';const express=require(_0x513564('0x0')),router=express[_0x513564('0xb')](),auth=require(_0x513564('0x8')),controller=require(_0x513564('0x5'));router[_0x513564('0xf')]('/',auth[_0x513564('0xc')](),controller[_0x513564('0x6')]),router[_0x513564('0xf')](_0x513564('0x7'),auth[_0x513564('0xc')](),controller[_0x513564('0x4')]),router['get'](_0x513564('0xe'),auth[_0x513564('0xc')](),controller['show']),router[_0x513564('0xf')]('/:id/contacts',auth[_0x513564('0xc')](),controller[_0x513564('0x10')]),router[_0x513564('0xd')]('/',auth[_0x513564('0xc')](),controller[_0x513564('0x12')]),router[_0x513564('0xd')](_0x513564('0x9'),auth[_0x513564('0xc')](),controller[_0x513564('0x1')]),router[_0x513564('0x2')](_0x513564('0xe'),auth[_0x513564('0xc')](),controller['update']),router[_0x513564('0xa')](_0x513564('0xe'),auth[_0x513564('0xc')](),controller[_0x513564('0x11')]),module[_0x513564('0x3')]=router; \ No newline at end of file +const a124_0x1ebf=['get','../../components/auth/service','/:id','exports','update','put','./cmCompany.controller','index','post','isAuthenticated','/:id/contacts','show','/describe','destroy'];(function(_0x1cdfcf,_0x1ebf9d){const _0x243718=function(_0x498898){while(--_0x498898){_0x1cdfcf['push'](_0x1cdfcf['shift']());}};_0x243718(++_0x1ebf9d);}(a124_0x1ebf,0x9f));const a124_0x2437=function(_0x1cdfcf,_0x1ebf9d){_0x1cdfcf=_0x1cdfcf-0x0;let _0x243718=a124_0x1ebf[_0x1cdfcf];return _0x243718;};const _0xb9bdc7=a124_0x2437;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0xb9bdc7('0xa')),controller=require(_0xb9bdc7('0x1'));router[_0xb9bdc7('0x9')]('/',auth['isAuthenticated'](),controller[_0xb9bdc7('0x2')]),router[_0xb9bdc7('0x9')](_0xb9bdc7('0x7'),auth[_0xb9bdc7('0x4')](),controller['describe']),router['get'](_0xb9bdc7('0xb'),auth[_0xb9bdc7('0x4')](),controller[_0xb9bdc7('0x6')]),router[_0xb9bdc7('0x9')](_0xb9bdc7('0x5'),auth[_0xb9bdc7('0x4')](),controller['getContacts']),router[_0xb9bdc7('0x3')]('/',auth[_0xb9bdc7('0x4')](),controller['create']),router[_0xb9bdc7('0x3')](_0xb9bdc7('0x5'),auth['isAuthenticated'](),controller['addContacts']),router[_0xb9bdc7('0x0')](_0xb9bdc7('0xb'),auth[_0xb9bdc7('0x4')](),controller[_0xb9bdc7('0xd')]),router['delete'](_0xb9bdc7('0xb'),auth['isAuthenticated'](),controller[_0xb9bdc7('0x8')]),module[_0xb9bdc7('0xc')]=router; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.attributes.js b/server/api/cmContact/cmContact.attributes.js index fd3ba95..59c6fe4 100644 --- a/server/api/cmContact/cmContact.attributes.js +++ b/server/api/cmContact/cmContact.attributes.js @@ -1 +1 @@ -const a125_0x32bf=['DATE','UNSIGNED','exports','TEXT','STRING','NOW','INTEGER','sequelize'];(function(_0x2c75f0,_0x32bf4f){const _0x5be831=function(_0x1fa2ff){while(--_0x1fa2ff){_0x2c75f0['push'](_0x2c75f0['shift']());}};_0x5be831(++_0x32bf4f);}(a125_0x32bf,0x1d6));const a125_0x5be8=function(_0x2c75f0,_0x32bf4f){_0x2c75f0=_0x2c75f0-0x0;let _0x5be831=a125_0x32bf[_0x2c75f0];return _0x5be831;};const _0x13b5b1=a125_0x5be8;'use strict';const Sequelize=require(_0x13b5b1('0x1'));module[_0x13b5b1('0x4')]={'firstName':{'type':Sequelize[_0x13b5b1('0x6')],'allowNull':![]},'lastName':{'type':Sequelize[_0x13b5b1('0x6')]},'street':{'type':Sequelize[_0x13b5b1('0x6')]},'postalCode':{'type':Sequelize[_0x13b5b1('0x6')]},'city':{'type':Sequelize[_0x13b5b1('0x6')]},'country':{'type':Sequelize['STRING']},'dateOfBirth':{'type':Sequelize[_0x13b5b1('0x6')]},'description':{'type':Sequelize[_0x13b5b1('0x5')]},'phone':{'type':Sequelize['STRING']},'mobile':{'type':Sequelize['STRING']},'fax':{'type':Sequelize[_0x13b5b1('0x6')]},'email':{'type':Sequelize[_0x13b5b1('0x6')]},'url':{'type':Sequelize[_0x13b5b1('0x6')]},'facebook':{'type':Sequelize['STRING']},'fb_data':{'type':Sequelize['STRING']},'twitter':{'type':Sequelize[_0x13b5b1('0x6')]},'skype':{'type':Sequelize[_0x13b5b1('0x6')]},'teams':{'type':Sequelize[_0x13b5b1('0x6')]},'viber':{'type':Sequelize[_0x13b5b1('0x6')]},'line':{'type':Sequelize[_0x13b5b1('0x6')]},'wechat':{'type':Sequelize[_0x13b5b1('0x6')]},'telegram':{'type':Sequelize[_0x13b5b1('0x6')]},'UserId':{'type':Sequelize[_0x13b5b1('0x0')]},'priority':{'type':Sequelize['INTEGER'](0x2)[_0x13b5b1('0x3')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0x13b5b1('0x2')],'defaultValue':Sequelize[_0x13b5b1('0x7')]}}; \ No newline at end of file +const a125_0x510d=['INTEGER','sequelize','exports','NOW','TEXT','STRING'];(function(_0x34f7ab,_0x510d55){const _0x3cf773=function(_0x44b843){while(--_0x44b843){_0x34f7ab['push'](_0x34f7ab['shift']());}};_0x3cf773(++_0x510d55);}(a125_0x510d,0x17f));const a125_0x3cf7=function(_0x34f7ab,_0x510d55){_0x34f7ab=_0x34f7ab-0x0;let _0x3cf773=a125_0x510d[_0x34f7ab];return _0x3cf773;};const _0x1a7c90=a125_0x3cf7;'use strict';const Sequelize=require(_0x1a7c90('0x2'));module[_0x1a7c90('0x3')]={'firstName':{'type':Sequelize[_0x1a7c90('0x0')],'allowNull':![]},'lastName':{'type':Sequelize[_0x1a7c90('0x0')]},'street':{'type':Sequelize[_0x1a7c90('0x0')]},'postalCode':{'type':Sequelize[_0x1a7c90('0x0')]},'city':{'type':Sequelize[_0x1a7c90('0x0')]},'country':{'type':Sequelize['STRING']},'dateOfBirth':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x1a7c90('0x5')]},'phone':{'type':Sequelize[_0x1a7c90('0x0')]},'mobile':{'type':Sequelize[_0x1a7c90('0x0')]},'fax':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x1a7c90('0x0')]},'url':{'type':Sequelize['STRING']},'facebook':{'type':Sequelize['STRING']},'fb_data':{'type':Sequelize[_0x1a7c90('0x0')]},'twitter':{'type':Sequelize[_0x1a7c90('0x0')]},'skype':{'type':Sequelize[_0x1a7c90('0x0')]},'teams':{'type':Sequelize[_0x1a7c90('0x0')]},'viber':{'type':Sequelize[_0x1a7c90('0x0')]},'line':{'type':Sequelize[_0x1a7c90('0x0')]},'wechat':{'type':Sequelize[_0x1a7c90('0x0')]},'telegram':{'type':Sequelize[_0x1a7c90('0x0')]},'UserId':{'type':Sequelize[_0x1a7c90('0x1')]},'priority':{'type':Sequelize[_0x1a7c90('0x1')](0x2)['UNSIGNED'],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize['DATE'],'defaultValue':Sequelize[_0x1a7c90('0x4')]}}; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.controller.js b/server/api/cmContact/cmContact.controller.js index 413ce25..0ab833e 100644 --- a/server/api/cmContact/cmContact.controller.js +++ b/server/api/cmContact/cmContact.controller.js @@ -1 +1 @@ -const a126_0x5b9c=['uc.CmContactId\x20=\x20c.id','dateOfBirth','split','TagIds','c.ListId\x20IS\x20NULL','filters','limit','table','squel','info','query','JscriptySessionReport','catch','type','user','message','sqlOperator','pick','stringify','c.email','ChatInteraction','Incorrect\x20binding\x20parameters\x20passed!','Sequelize','fields','getHopperHistories','ListId','options','File\x20uploaded\x20correctly!','parseSearch','all','uploadCsv','../../components/parsers/advancedSearch','t.id\x20IN\x20?','firstName','path','count','sequelize','[CmContact][merge]\x20to\x20%s\x20from\x20%s','length','\x27\x27\x27\x27','server/files/tmp','../../rediscache','fieldType','FaxQueueReport','CONCAT_WS(\x27\x20\x27,\x20c.firstName,\x20c.lastName,\x20c.email)\x20LIKE\x20?','stack','CmHopperFinal','status','from','each','color','isArray','isNil','getHoppers','tools_tags','rows','getLists','toParam','MailMessage','value','User','QueryTypes','merge','then','../../config/logger','clone','get','No\x20association\x20keys\x20specified!','forEach','SELECT','mergeWith','push','DESC','toString','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','show','c.ListId\x20IN\x20?','ReportAgentPreview','binding_values','register','tags','index','chmodSync','exit','getJscriptySessions','select','CompanyId','alias','columnName','error','No\x20association\x20values\x20specified!','OpenchannelInteraction','socket_timestamp','api','SmsMessage','c.email\x20LIKE\x20?','error\x20child\x20process','send','map','cf_%d','cf_','Tag','ContactId','buildExpression','name','join','destroy','No\x20firstName\x20column\x20specified','upload','end','$and','t.id\x20=\x20ct.TagId','pid','../../mysqldb','CmContact','bulkCreate','meta','isNumeric','Tags','phone','undefined','sendStatus','binding','root','FaxInteraction','offset','DATE','getHopperFinals','search','../../components/parsers/qs','util','values','../../components/import/cm/csv','filter','ChatMessage','include','isEmpty','start','body','ChatQueueReport','getFullTextValue','CmHopperHistory','Content-Range','pickBy','displayName','0777','datetime','nolimit','c.lastName','agent','findOrCreate','parse','c.firstName','update','describe','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','SmsQueueReport','papaparse','binding_keys','attributes','text','MailInteraction','omit','createReadStream','c.deletedAt','order','\x20=\x20?','No\x20ListId\x20specified','lodash','start\x20child\x20process\x20correctly!','model','findOne','c.id','c.phone','params','concat','like','resolve','set','having','replace','format','rawAttributes','../../components/import/cm/csv2','No\x20phone\x20column\x20specified','intersection','file','keys','id\x20=\x20?','FaxMessage','setFields','findAll','trimStart','c.fax\x20LIKE\x20?','uc.UserId\x20=\x20?','includeAll','cm_contact_has_tags','OpenchannelQueueReport','duplicates','cm_contacts','OpenchannelMessage','field','CmCustomField','Contact','and','[CmContact][merge][destroy][CmHopperBlack],\x20%s','where','left_join','conditions','c.mobile','startsWith','ChatOfflineMessage','sort','SmsInteraction','fork','getTags','tag','VoiceCallReport','create','CmHopper','../../config/environment','castTo','Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed','setTags','json','group'];(function(_0xb2515b,_0x5b9cc6){const _0x5b647f=function(_0x14e473){while(--_0x14e473){_0xb2515b['push'](_0xb2515b['shift']());}};_0x5b647f(++_0x5b9cc6);}(a126_0x5b9c,0x168));const a126_0x5b64=function(_0xb2515b,_0x5b9cc6){_0xb2515b=_0xb2515b-0x0;let _0x5b647f=a126_0x5b9c[_0xb2515b];return _0x5b647f;};const _0x224b4d=a126_0x5b64;'use strict';const util=require(_0x224b4d('0xde')),path=require('path'),fs=require('fs'),_=require(_0x224b4d('0x22')),squel=require(_0x224b4d('0x64')),Papa=require(_0x224b4d('0x17')),{getSocket}=require(_0x224b4d('0x85')),socket=getSocket(),qs=require(_0x224b4d('0xdd')),as=require(_0x224b4d('0x7b')),logger=require(_0x224b4d('0x9c'))(_0x224b4d('0xb9')),config=require(_0x224b4d('0x56')),db=require(_0x224b4d('0xcd'))['db'],{Op}=require(_0x224b4d('0x80'));require('./cmContact.socket')[_0x224b4d('0xab')](socket);function respondWithResult(_0x14e473,_0x1224c9){return _0x1224c9=_0x1224c9||0xc8,function(_0x372745){if(_0x372745)return _0x14e473['status'](_0x1224c9)['json'](_0x372745);};}function respondWithFilteredResult(_0x284285,_0x9b9df0){return function(_0x4e5fa5){const _0x2bc1b5=a126_0x5b64;if(_0x4e5fa5){const _0x400609=_0x4e5fa5[_0x2bc1b5('0x7f')],_0x38cb69=_0x9b9df0[_0x2bc1b5('0xd9')];let _0x379057=_0x9b9df0[_0x2bc1b5('0xd9')]+_0x9b9df0[_0x2bc1b5('0x62')],_0x48b2a7;return _0x379057>=_0x400609?(_0x379057=_0x400609,_0x48b2a7=0xc8):_0x48b2a7=0xce,_0x284285['status'](_0x48b2a7),_0x284285[_0x2bc1b5('0x2c')](_0x2bc1b5('0x8'),_0x38cb69+'-'+_0x379057+'/'+_0x400609)[_0x2bc1b5('0x5a')](_0x4e5fa5);}return null;};}function saveUpdates(_0x22416f){return function(_0x3211ad){if(_0x3211ad)return _0x3211ad['update'](_0x22416f)['then'](function(_0x4c2458){return _0x4c2458;});return null;};}function removeEntity(_0x27305b){return function(_0x3a025f){const _0x2c0a38=a126_0x5b64;if(_0x3a025f)return _0x3a025f[_0x2c0a38('0xc6')]()['then'](function(){const _0x2db2a8=_0x2c0a38;_0x27305b[_0x2db2a8('0x8b')](0xcc)[_0x2db2a8('0xc9')]();});};}function handleEntityNotFound(_0x1c348e){return function(_0x4264c4){const _0x4a3895=a126_0x5b64;return!_0x4264c4&&_0x1c348e[_0x4a3895('0xd5')](0x194),_0x4264c4;};}function handleError(_0x3f98d2,_0x4ea157){return _0x4ea157=_0x4ea157||0x1f4,function(_0xfb1d71){const _0x16e4ea=a126_0x5b64;logger[_0x16e4ea('0xb5')](_0xfb1d71[_0x16e4ea('0x89')]),_0xfb1d71[_0x16e4ea('0xc4')]&&delete _0xfb1d71[_0x16e4ea('0xc4')],_0x3f98d2[_0x16e4ea('0x8b')](_0x4ea157)[_0x16e4ea('0xbd')](_0xfb1d71);};}exports[_0x224b4d('0xad')]=function(_0x38543d,_0x43714f){const _0x4113ac=_0x224b4d,_0x12b393={},_0x28f2a5={},_0x2a7886={'count':0x0,'rows':[]};return db[_0x4113ac('0xce')][_0x4113ac('0x14')]()[_0x4113ac('0x9b')](function(_0xd0d8f8){const _0x3b9c6d=_0x4113ac,_0x500d3f=[];for(let _0x2185e3=0x0;_0x2185e30x1)_0x36d85e['or'](_0x593d84('0x15'),qs[_0x593d84('0x6')](_0x4fe833),null);else{if(qs[_0x593d84('0xd1')](_0x4fe833))_0x36d85e['or']('c.id\x20LIKE\x20?',_0x4fe833+'%'),_0x36d85e['or']('c.phone\x20LIKE\x20?',_0x4fe833+'%'),_0x36d85e['or']('c.mobile\x20LIKE\x20?',_0x4fe833+'%'),_0x36d85e['or'](_0x593d84('0x3b'),_0x4fe833+'%');else qs['isEmail'](_0x4fe833)?_0x36d85e['or'](_0x593d84('0xbb'),_0x4fe833+'%'):(_0x36d85e['or']('c.firstName\x20LIKE\x20?','%'+_0x4fe833+'%'),_0x36d85e['or']('c.lastName\x20LIKE\x20?','%'+_0x4fe833+'%'),_0x36d85e['or'](_0x593d84('0xbb'),'%'+_0x4fe833+'%'));}}}_0x52b718[_0x593d84('0x48')](_0x36d85e),_0x52b718[_0x593d84('0x5b')]('c.id');let _0x746138={'type':db[_0x593d84('0x72')][_0x593d84('0x99')][_0x593d84('0xa1')],'raw':!![]};const _0x45d731=_0x52b718[_0x593d84('0x9d')]()[_0x593d84('0x43')]('c.id');_0x12b393[_0x593d84('0x1f')]&&_0x12b393[_0x593d84('0x1f')][_0x593d84('0xa0')](function(_0x56d323){const _0x33a900=_0x593d84;_0x52b718[_0x33a900('0x1f')]('c.'+_0x56d323[0x0],_0x56d323[0x1]===_0x33a900('0xa4')?![]:!![]);}),!_[_0x593d84('0x2')](_0x2cd979)&&(_0x52b718[_0x593d84('0x2d')](_0x535574),_0x45d731[_0x593d84('0x48')](_0x593d84('0x7c'),_0x2cd979)),Promise[_0x593d84('0x2b')]()[_0x593d84('0x9b')](function(){const _0x55a0a7=_0x593d84;if(_0x5858b6&&!_['some'](_0x5858b6[_0x55a0a7('0x4a')],[_0x55a0a7('0x43'),_0x55a0a7('0x98')]))return _0x38543d[_0x55a0a7('0x6a')][_0x55a0a7('0x94')]({'attributes':['id'],'raw':!![]})[_0x55a0a7('0x9b')](function(_0x5ce306){const _0x5f09db=_0x55a0a7;_[_0x5f09db('0x2')](_0x5ce306)?(_0x45d731[_0x5f09db('0x48')](_0x5f09db('0x60')),_0x52b718[_0x5f09db('0x48')](_0x5f09db('0x60'))):(_0x45d731[_0x5f09db('0x48')]('c.ListId\x20IN\x20?',_[_0x5f09db('0xbe')](_0x5ce306,'id')),_0x52b718['where']('c.ListId\x20IN\x20?',_['map'](_0x5ce306,'id')));});else return;})[_0x593d84('0x9b')](function(){const _0x1f50b8=_0x593d84;db[_0x1f50b8('0x80')][_0x1f50b8('0x66')](_0x45d731['toString'](),_0x746138)[_0x1f50b8('0x9b')](function(_0x53c4bd){const _0x5b559d=_0x1f50b8;_0x2a7886[_0x5b559d('0x7f')]=_0x53c4bd[_0x5b559d('0x82')];if(_0x2a7886[_0x5b559d('0x7f')]===0x0)return[];return db[_0x5b559d('0x80')][_0x5b559d('0x66')](_0x30aeb8[_0x5b559d('0xa5')](),_0x746138);})['then'](function(_0x572ffa){const _0x5d6021=_0x1f50b8;_0x7169c8=_['keyBy'](_0x572ffa,'id'),_0x746138=_[_0x5d6021('0x9a')](_0x746138,{'model':db[_0x5d6021('0xce')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x38543d[_0x5d6021('0x66')][_0x5d6021('0x73')]?_0x12b393[_0x5d6021('0x19')][_0x5d6021('0xa0')](function(_0x24942e){const _0x5a3b64=_0x5d6021;_0x52b718[_0x5a3b64('0x43')]('c.'+_0x24942e);}):(_0x52b718['field'](_0x5d6021('0x26')),_0x52b718[_0x5d6021('0x43')](_0x5d6021('0x12')),_0x52b718[_0x5d6021('0x43')](_0x5d6021('0xe')),_0x52b718[_0x5d6021('0x43')](_0x5d6021('0x27')),_0x52b718['field'](_0x5d6021('0x4b')),_0x52b718[_0x5d6021('0x43')]('c.fax'),_0x52b718[_0x5d6021('0x43')](_0x5d6021('0x6f')),_0x52b718[_0x5d6021('0x43')]('c.ListId'),_0x52b718[_0x5d6021('0x43')](_0x5d6021('0x1e')),_0x52b718[_0x5d6021('0x43')]('GROUP_CONCAT(DISTINCT\x20t.id)',_0x5d6021('0x5f')));if(_0x12b393[_0x5d6021('0x62')])_0x52b718['limit'](_0x12b393[_0x5d6021('0x62')]);if(_0x12b393[_0x5d6021('0xd9')])_0x52b718[_0x5d6021('0xd9')](_0x12b393[_0x5d6021('0xd9')]);return db[_0x5d6021('0x80')][_0x5d6021('0x66')](_0x52b718[_0x5d6021('0xa5')](),_0x746138);})[_0x1f50b8('0x9b')](function(_0x5d12da){const _0x24da59=_0x1f50b8;return _0x5d12da['forEach'](function(_0x338657){const _0x5943b7=a126_0x5b64;_0x338657[_0x5943b7('0x5f')]&&(_0x338657[_0x5943b7('0xd2')]=[],_0x338657[_0x5943b7('0x5f')][_0x5943b7('0x5e')](',')[_0x5943b7('0xa0')](function(_0x519849){const _0x4f11e8=_0x5943b7;_0x338657[_0x4f11e8('0xd2')][_0x4f11e8('0xa3')](_0x7169c8[_0x519849]);})),delete _0x338657['TagIds'];}),_0x2a7886[_0x24da59('0x93')]=_0x5d12da,_0x2a7886;})['then'](respondWithFilteredResult(_0x43714f,_0x12b393));});})['catch'](handleError(_0x43714f,null));},exports[_0x224b4d('0xc6')]=function(_0x20d3f,_0xb852ba){const _0x334db=_0x224b4d;return db[_0x334db('0xce')][_0x334db('0x25')]({'where':{'id':_0x20d3f['params']['id']}})[_0x334db('0x9b')](handleEntityNotFound(_0xb852ba,null))['then'](removeEntity(_0xb852ba,null))['catch'](handleError(_0xb852ba,null));},exports[_0x224b4d('0x14')]=function(_0x33eca0,_0x230001){const _0x54b4d3=_0x224b4d;return db['CmContact']['describe']()[_0x54b4d3('0x9b')](function(_0x39580f){const _0xe00748=_0x54b4d3;delete _0x39580f[_0xe00748('0xac')];for(let _0x1a8885=0x0;_0x1a8885=_0x45acf5?(_0x2b630d=_0x45acf5,_0x621c75=0xc8):_0x621c75=0xce,_0x2f5676[_0x178cd9('0x11')](_0x621c75),_0x2f5676['set'](_0x178cd9('0x5c'),_0x1dccc0+'-'+_0x2b630d+'/'+_0x45acf5)[_0x178cd9('0x99')](_0x4e213a);}return null;};}function saveUpdates(_0x5c72ac){return function(_0x440f85){const _0x268e23=a126_0x10f2;if(_0x440f85)return _0x440f85[_0x268e23('0x25')](_0x5c72ac)[_0x268e23('0x3e')](function(_0x51eddb){return _0x51eddb;});return null;};}function removeEntity(_0x3af983){return function(_0x37cabd){const _0x5a4df6=a126_0x10f2;if(_0x37cabd)return _0x37cabd[_0x5a4df6('0x9b')]()['then'](function(){const _0x49b85f=_0x5a4df6;_0x3af983[_0x49b85f('0x11')](0xcc)[_0x49b85f('0x8c')]();});};}function handleEntityNotFound(_0x1ce255){return function(_0x3d9537){const _0x4481d8=a126_0x10f2;return!_0x3d9537&&_0x1ce255[_0x4481d8('0x7d')](0x194),_0x3d9537;};}function handleError(_0x2a5ad7,_0x7604cf){return _0x7604cf=_0x7604cf||0x1f4,function(_0x243d9d){const _0x56c3f2=a126_0x10f2;logger[_0x56c3f2('0x45')](_0x243d9d[_0x56c3f2('0x56')]),_0x243d9d['name']&&delete _0x243d9d[_0x56c3f2('0x55')],_0x2a5ad7[_0x56c3f2('0x11')](_0x7604cf)[_0x56c3f2('0xa0')](_0x243d9d);};}exports[_0x3f6b54('0x80')]=function(_0x46522d,_0x104c89){const _0x128dca=_0x3f6b54,_0x122dd2={},_0x31171f={},_0x4b232b={'count':0x0,'rows':[]};return db[_0x128dca('0x96')][_0x128dca('0x14')]()[_0x128dca('0x3e')](function(_0x10ea3b){const _0x298203=_0x128dca,_0x1cb4d2=[];for(let _0x1e0099=0x0;_0x1e00990x1)_0x9a3419['or'](_0x394228('0x70'),qs[_0x394228('0x1f')](_0x1c20f3),null);else{if(qs[_0x394228('0x71')](_0x1c20f3))_0x9a3419['or'](_0x394228('0x57'),_0x1c20f3+'%'),_0x9a3419['or'](_0x394228('0x31'),_0x1c20f3+'%'),_0x9a3419['or'](_0x394228('0xb4'),_0x1c20f3+'%'),_0x9a3419['or']('c.fax\x20LIKE\x20?',_0x1c20f3+'%');else qs[_0x394228('0xf')](_0x1c20f3)?_0x9a3419['or'](_0x394228('0x21'),_0x1c20f3+'%'):(_0x9a3419['or']('c.firstName\x20LIKE\x20?','%'+_0x1c20f3+'%'),_0x9a3419['or'](_0x394228('0x67'),'%'+_0x1c20f3+'%'),_0x9a3419['or'](_0x394228('0x21'),'%'+_0x1c20f3+'%'));}}}_0x2cad07[_0x394228('0x89')](_0x9a3419),_0x2cad07['group'](_0x394228('0x22'));let _0x33db1e={'type':db['Sequelize'][_0x394228('0x35')]['SELECT'],'raw':!![]};const _0x9c7c32=_0x2cad07['clone']()[_0x394228('0xb7')](_0x394228('0x22'));_0x122dd2[_0x394228('0x7a')]&&_0x122dd2[_0x394228('0x7a')]['forEach'](function(_0x4c87d6){_0x2cad07['order']('c.'+_0x4c87d6[0x0],_0x4c87d6[0x1]==='DESC'?![]:!![]);}),!_[_0x394228('0x23')](_0x59ffd3)&&(_0x2cad07[_0x394228('0xa9')](_0x460feb),_0x9c7c32[_0x394228('0x89')](_0x394228('0xc9'),_0x59ffd3)),Promise['resolve']()[_0x394228('0x3e')](function(){const _0x111137=_0x394228;if(_0xeba740&&!_[_0x111137('0x75')](_0xeba740[_0x111137('0xbe')],[_0x111137('0xb7'),_0x111137('0xab')]))return _0x46522d[_0x111137('0xa1')][_0x111137('0x73')]({'attributes':['id'],'raw':!![]})['then'](function(_0x2a7f65){const _0x153247=_0x111137;_[_0x153247('0x23')](_0x2a7f65)?(_0x9c7c32[_0x153247('0x89')]('c.ListId\x20IS\x20NULL'),_0x2cad07[_0x153247('0x89')](_0x153247('0x4b'))):(_0x9c7c32[_0x153247('0x89')](_0x153247('0xb'),_[_0x153247('0x32')](_0x2a7f65,'id')),_0x2cad07[_0x153247('0x89')](_0x153247('0xb'),_[_0x153247('0x32')](_0x2a7f65,'id')));});else return;})[_0x394228('0x3e')](function(){const _0x271130=_0x394228;db['sequelize']['query'](_0x9c7c32['toString'](),_0x33db1e)[_0x271130('0x3e')](function(_0x8dcd6e){const _0x4e3cda=_0x271130;_0x4b232b[_0x4e3cda('0xc')]=_0x8dcd6e[_0x4e3cda('0xae')];if(_0x4b232b[_0x4e3cda('0xc')]===0x0)return[];return db['sequelize'][_0x4e3cda('0xb8')](_0x4277a0[_0x4e3cda('0xcb')](),_0x33db1e);})[_0x271130('0x3e')](function(_0x3efcdf){const _0x2f7362=_0x271130;_0x56044f=_[_0x2f7362('0x76')](_0x3efcdf,'id'),_0x33db1e=_['merge'](_0x33db1e,{'model':db[_0x2f7362('0x96')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x46522d['query'][_0x2f7362('0xb6')]?_0x122dd2['attributes'][_0x2f7362('0x91')](function(_0x135700){const _0x544c8e=_0x2f7362;_0x2cad07[_0x544c8e('0xb7')]('c.'+_0x135700);}):(_0x2cad07[_0x2f7362('0xb7')](_0x2f7362('0x22')),_0x2cad07[_0x2f7362('0xb7')](_0x2f7362('0x81')),_0x2cad07[_0x2f7362('0xb7')]('c.lastName'),_0x2cad07[_0x2f7362('0xb7')](_0x2f7362('0x74')),_0x2cad07[_0x2f7362('0xb7')](_0x2f7362('0x85')),_0x2cad07[_0x2f7362('0xb7')]('c.fax'),_0x2cad07[_0x2f7362('0xb7')](_0x2f7362('0x24')),_0x2cad07['field'](_0x2f7362('0x52')),_0x2cad07[_0x2f7362('0xb7')](_0x2f7362('0x9a')),_0x2cad07[_0x2f7362('0xb7')](_0x2f7362('0x38'),_0x2f7362('0x7')));if(_0x122dd2['limit'])_0x2cad07[_0x2f7362('0x59')](_0x122dd2[_0x2f7362('0x59')]);if(_0x122dd2[_0x2f7362('0x6f')])_0x2cad07[_0x2f7362('0x6f')](_0x122dd2['offset']);return db['sequelize'][_0x2f7362('0xb8')](_0x2cad07[_0x2f7362('0xcb')](),_0x33db1e);})[_0x271130('0x3e')](function(_0x54ebd5){const _0x4ce8c0=_0x271130;return _0x54ebd5[_0x4ce8c0('0x91')](function(_0x2ca138){const _0x525f40=_0x4ce8c0;_0x2ca138[_0x525f40('0x7')]&&(_0x2ca138['Tags']=[],_0x2ca138['TagIds'][_0x525f40('0x7c')](',')['forEach'](function(_0x3a9858){const _0x3ce952=_0x525f40;_0x2ca138[_0x3ce952('0x84')][_0x3ce952('0x92')](_0x56044f[_0x3a9858]);})),delete _0x2ca138[_0x525f40('0x7')];}),_0x4b232b[_0x4ce8c0('0xce')]=_0x54ebd5,_0x4b232b;})[_0x271130('0x3e')](respondWithFilteredResult(_0x104c89,_0x122dd2));});})['catch'](handleError(_0x104c89,null));},exports['destroy']=function(_0x37afbc,_0x49ccea){const _0x3ab6e9=_0x3f6b54;return db['CmContact'][_0x3ab6e9('0x7e')]({'where':{'id':_0x37afbc[_0x3ab6e9('0x2b')]['id']}})[_0x3ab6e9('0x3e')](handleEntityNotFound(_0x49ccea,null))[_0x3ab6e9('0x3e')](removeEntity(_0x49ccea,null))['catch'](handleError(_0x49ccea,null));},exports['describe']=function(_0x35aa07,_0x7dede7){const _0x36f4f9=_0x3f6b54;return db[_0x36f4f9('0x96')]['describe']()[_0x36f4f9('0x3e')](function(_0x13c8b7){const _0x265279=_0x36f4f9;delete _0x13c8b7[_0x265279('0x34')];for(let _0x58429a=0x0;_0x58429a{}\s\\|]/g,'-'),_0x23e92e(null,util[_0x333ccf('0x22')](_0x333ccf('0x1a'),path[_0x333ccf('0x21')](_0x198535[_0x333ccf('0x5')],path[_0x333ccf('0x24')](_0x198535[_0x333ccf('0x5')])),Date[_0x333ccf('0x1f')](),path['extname'](_0x198535[_0x333ccf('0x5')])));}})});router[_0xef6563('0x20')]('/',auth['isAuthenticated'](),controller[_0xef6563('0x7')]),router[_0xef6563('0x20')](_0xef6563('0x9'),auth['isAuthenticated'](),controller[_0xef6563('0x23')]),router[_0xef6563('0x20')](_0xef6563('0xe'),auth[_0xef6563('0xa')](),controller[_0xef6563('0x28')]),router['get'](_0xef6563('0x27'),auth[_0xef6563('0xa')](),controller[_0xef6563('0x2c')]),router[_0xef6563('0x20')]('/:id/hoppers',auth[_0xef6563('0xa')](),controller[_0xef6563('0x11')]),router[_0xef6563('0x20')](_0xef6563('0x2'),auth[_0xef6563('0xa')](),controller[_0xef6563('0x17')]),router[_0xef6563('0x20')](_0xef6563('0x2b'),auth[_0xef6563('0xa')](),controller[_0xef6563('0x16')]),router[_0xef6563('0x20')](_0xef6563('0x10'),auth[_0xef6563('0xa')](),controller[_0xef6563('0x2a')]),router[_0xef6563('0x29')](_0xef6563('0x13'),auth['isAuthenticated'](),controller[_0xef6563('0x0')]),router[_0xef6563('0x29')]('/',auth['isAuthenticated'](),controller[_0xef6563('0x3')]),router[_0xef6563('0x29')](_0xef6563('0x15'),auth[_0xef6563('0xa')](),controller[_0xef6563('0x25')]),router[_0xef6563('0x29')](_0xef6563('0x27'),auth[_0xef6563('0xa')](),controller[_0xef6563('0x6')]),router[_0xef6563('0x29')](_0xef6563('0x1e'),upload[_0xef6563('0x18')](_0xef6563('0xb')),controller[_0xef6563('0x14')]),router[_0xef6563('0x29')](_0xef6563('0xc'),upload[_0xef6563('0x18')](_0xef6563('0xb')),controller[_0xef6563('0x1')]),router[_0xef6563('0x29')]('/upload/:id',auth['isAuthenticated'](),controller['import']),router[_0xef6563('0xf')](_0xef6563('0xe'),auth[_0xef6563('0xa')](),controller['update']),router[_0xef6563('0x26')](_0xef6563('0xe'),auth[_0xef6563('0xa')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a131_0x1977=['delete','uploadCsv','/describe','originalname','file','multer','destroy','/:id/hoppers','/merge','./cmContact.controller','/:id/tags','getHoppers','getTags','/create_many','upload','%s-%s%s','setTags','replace','/:id/hopper_finals','show','/:id/hopper_histories','path','extname','put','getHopperFinals','post','/:id','get','now','getHopperHistories','create','import','root','merge','diskStorage','getJscriptySessions','express','/csv','util','isAuthenticated','../../config/environment','server/files/tmp','bulkCreate'];(function(_0x37b01b,_0x1977a8){const _0x91df78=function(_0x482b6e){while(--_0x482b6e){_0x37b01b['push'](_0x37b01b['shift']());}};_0x91df78(++_0x1977a8);}(a131_0x1977,0x158));const a131_0x91df=function(_0x37b01b,_0x1977a8){_0x37b01b=_0x37b01b-0x0;let _0x91df78=a131_0x1977[_0x37b01b];return _0x91df78;};const _0x4ba458=a131_0x91df;'use strict';const multer=require(_0x4ba458('0x5')),util=require(_0x4ba458('0x26')),path=require(_0x4ba458('0x15')),express=require(_0x4ba458('0x24')),router=express['Router'](),auth=require('../../components/auth/service'),config=require(_0x4ba458('0x28')),controller=require(_0x4ba458('0x9')),upload=multer({'storage':multer[_0x4ba458('0x22')]({'destination':function(_0x482b6e,_0x4201ad,_0x385db5){const _0x2b6c6a=_0x4ba458;_0x385db5(null,path['join'](config[_0x2b6c6a('0x20')],_0x2b6c6a('0x29')));},'filename':function(_0x2c9370,_0x37a3c4,_0x575b64){const _0xd2d3b2=_0x4ba458;_0x37a3c4[_0xd2d3b2('0x3')]=_0x37a3c4['originalname'][_0xd2d3b2('0x11')](/[+@&-/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x575b64(null,util['format'](_0xd2d3b2('0xf'),path['basename'](_0x37a3c4[_0xd2d3b2('0x3')],path[_0xd2d3b2('0x16')](_0x37a3c4['originalname'])),Date[_0xd2d3b2('0x1c')](),path[_0xd2d3b2('0x16')](_0x37a3c4[_0xd2d3b2('0x3')])));}})});router[_0x4ba458('0x1b')]('/',auth[_0x4ba458('0x27')](),controller['index']),router[_0x4ba458('0x1b')](_0x4ba458('0x2'),auth[_0x4ba458('0x27')](),controller['describe']),router[_0x4ba458('0x1b')](_0x4ba458('0x1a'),auth['isAuthenticated'](),controller[_0x4ba458('0x13')]),router['get'](_0x4ba458('0xa'),auth[_0x4ba458('0x27')](),controller[_0x4ba458('0xc')]),router[_0x4ba458('0x1b')](_0x4ba458('0x7'),auth[_0x4ba458('0x27')](),controller[_0x4ba458('0xb')]),router[_0x4ba458('0x1b')](_0x4ba458('0x14'),auth[_0x4ba458('0x27')](),controller[_0x4ba458('0x1d')]),router[_0x4ba458('0x1b')](_0x4ba458('0x12'),auth['isAuthenticated'](),controller[_0x4ba458('0x18')]),router[_0x4ba458('0x1b')]('/:id/jscripty_sessions',auth['isAuthenticated'](),controller[_0x4ba458('0x23')]),router[_0x4ba458('0x19')](_0x4ba458('0x8'),auth['isAuthenticated'](),controller[_0x4ba458('0x21')]),router[_0x4ba458('0x19')]('/',auth[_0x4ba458('0x27')](),controller[_0x4ba458('0x1e')]),router['post'](_0x4ba458('0xd'),auth[_0x4ba458('0x27')](),controller[_0x4ba458('0x2a')]),router['post'](_0x4ba458('0xa'),auth[_0x4ba458('0x27')](),controller[_0x4ba458('0x10')]),router['post'](_0x4ba458('0x25'),upload['single'](_0x4ba458('0x4')),controller[_0x4ba458('0x1')]),router[_0x4ba458('0x19')]('/upload',upload['single'](_0x4ba458('0x4')),controller[_0x4ba458('0xe')]),router[_0x4ba458('0x19')]('/upload/:id',auth[_0x4ba458('0x27')](),controller[_0x4ba458('0x1f')]),router[_0x4ba458('0x17')]('/:id',auth[_0x4ba458('0x27')](),controller['update']),router[_0x4ba458('0x0')](_0x4ba458('0x1a'),auth['isAuthenticated'](),controller[_0x4ba458('0x6')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.attributes.js b/server/api/cmCustomField/cmCustomField.attributes.js index d59d6a4..69b2e4e 100644 --- a/server/api/cmCustomField/cmCustomField.attributes.js +++ b/server/api/cmCustomField/cmCustomField.attributes.js @@ -1 +1 @@ -const a132_0x2787=['getDataValue','STRING','parse','TEXT','values','voice','ENUM','VIRTUAL','stringify','setDataValue','isArray','select','type','BOOLEAN','alias','long'];(function(_0x572cb5,_0x2787df){const _0x4dab0f=function(_0x565049){while(--_0x565049){_0x572cb5['push'](_0x572cb5['shift']());}};_0x4dab0f(++_0x2787df);}(a132_0x2787,0x192));const a132_0x4dab=function(_0x572cb5,_0x2787df){_0x572cb5=_0x572cb5-0x0;let _0x4dab0f=a132_0x2787[_0x572cb5];return _0x4dab0f;};const _0x2050ab=a132_0x4dab;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x2050ab('0x5')],'get':function(){const _0xf6c15e=_0x2050ab;return this[_0xf6c15e('0xe')](_0xf6c15e('0xc'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x565049){const _0x389cc4=_0x2050ab;this['setDataValue'](_0x389cc4('0xc'),_0x565049?_0x565049:this[_0x389cc4('0xe')]('name'));}},'type':{'type':Sequelize[_0x2050ab('0xf')],'allowNull':![]},'values':{'type':Sequelize[_0x2050ab('0x1')](_0x2050ab('0xd')),'get':function(){const _0x2b7881=_0x2050ab;return this['getDataValue'](_0x2b7881('0xa'))===_0x2b7881('0x9')?JSON[_0x2b7881('0x0')](this[_0x2b7881('0xe')](_0x2b7881('0x2'))):this['getDataValue']('values');},'set':function(_0x247332){const _0x3889a4=_0x2050ab;Array[_0x3889a4('0x8')](_0x247332)?this[_0x3889a4('0x7')](_0x3889a4('0x2'),JSON[_0x3889a4('0x6')](_0x247332)):this[_0x3889a4('0x7')](_0x3889a4('0x2'),_0x247332);}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x2050ab('0xb')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x2050ab('0x4')](_0x2050ab('0x3'))}}; \ No newline at end of file +const a132_0x46cc=['values','isArray','BOOLEAN','STRING','VIRTUAL','name','select','exports','voice','parse','setDataValue','stringify','ENUM','getDataValue','sequelize','alias','type','long'];(function(_0x27cb9e,_0x46cc92){const _0x11280f=function(_0x5da240){while(--_0x5da240){_0x27cb9e['push'](_0x27cb9e['shift']());}};_0x11280f(++_0x46cc92);}(a132_0x46cc,0x175));const a132_0x1128=function(_0x27cb9e,_0x46cc92){_0x27cb9e=_0x27cb9e-0x0;let _0x11280f=a132_0x46cc[_0x27cb9e];return _0x11280f;};const _0x627878=a132_0x1128;'use strict';const Sequelize=require(_0x627878('0x1'));module[_0x627878('0xc')]={'name':{'type':Sequelize[_0x627878('0x9')],'get':function(){const _0x56d0e5=_0x627878;return this[_0x56d0e5('0x0')]('alias');}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x5da240){const _0x3c73f6=_0x627878;this[_0x3c73f6('0xf')](_0x3c73f6('0x2'),_0x5da240?_0x5da240:this[_0x3c73f6('0x0')](_0x3c73f6('0xa')));}},'type':{'type':Sequelize[_0x627878('0x8')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x627878('0x4')),'get':function(){const _0x58195f=_0x627878;return this[_0x58195f('0x0')](_0x58195f('0x3'))===_0x58195f('0xb')?JSON[_0x58195f('0xe')](this[_0x58195f('0x0')]('values')):this['getDataValue'](_0x58195f('0x5'));},'set':function(_0x5787b8){const _0x42ff48=_0x627878;Array[_0x42ff48('0x6')](_0x5787b8)?this[_0x42ff48('0xf')](_0x42ff48('0x5'),JSON[_0x42ff48('0x10')](_0x5787b8)):this[_0x42ff48('0xf')](_0x42ff48('0x5'),_0x5787b8);}},'required':{'type':Sequelize[_0x627878('0x7')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x627878('0x7')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x627878('0x11')](_0x627878('0xd'))}}; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.controller.js b/server/api/cmCustomField/cmCustomField.controller.js index 0a59203..016ce93 100644 --- a/server/api/cmCustomField/cmCustomField.controller.js +++ b/server/api/cmCustomField/cmCustomField.controller.js @@ -1 +1 @@ -const a133_0x28cb=['sendStatus','INTEGER','CmCustomField','order','name','TEXT','length','../../mysqldb','nolimit','../../config/logger','defaultValue','error','map','stack','text','differenceBy','key','addColumn','sort','includeAll','params','api','options','filters','util','update','filter','query','where','Sequelize','end','json','destroy','fields','VIRTUAL','keys','lodash','catch','set','then','cf_%d','model','fieldName','send','sequelize','BOOLEAN','rawAttributes','rows','switch','create','status','attributes','body','show','transaction','offset','index','count','include','findAll','number','findOne','intersection','../../components/parsers/qs','type','queryInterface'];(function(_0x596028,_0x28cb9d){const _0x324d37=function(_0x4619ab){while(--_0x4619ab){_0x596028['push'](_0x596028['shift']());}};_0x324d37(++_0x28cb9d);}(a133_0x28cb,0x73));const a133_0x324d=function(_0x596028,_0x28cb9d){_0x596028=_0x596028-0x0;let _0x324d37=a133_0x28cb[_0x596028];return _0x324d37;};const _0x11e4f5=a133_0x324d;'use strict';const util=require(_0x11e4f5('0x29')),_=require(_0x11e4f5('0x35')),qs=require(_0x11e4f5('0xe')),logger=require(_0x11e4f5('0x1a'))(_0x11e4f5('0x26')),db=require(_0x11e4f5('0x18'))['db'],{Op}=require(_0x11e4f5('0x3d'));function respondWithResult(_0x4619ab,_0x4bb380){return _0x4bb380=_0x4bb380||0xc8,function(_0x5e7cdc){const _0x1f23dc=a133_0x324d;if(_0x5e7cdc)return _0x4619ab['status'](_0x4bb380)[_0x1f23dc('0x30')](_0x5e7cdc);};}function respondWithFilteredResult(_0x23f5e8,_0x4f9193){return function(_0x5d133f){const _0x513ebc=a133_0x324d;if(_0x5d133f){const _0x176482=_0x5d133f[_0x513ebc('0x8')],_0x593785=_0x4f9193[_0x513ebc('0x6')];let _0x7088b=_0x4f9193[_0x513ebc('0x6')]+_0x4f9193['limit'],_0x380353;return _0x7088b>=_0x176482?(_0x7088b=_0x176482,_0x380353=0xc8):_0x380353=0xce,_0x23f5e8[_0x513ebc('0x1')](_0x380353),_0x23f5e8[_0x513ebc('0x37')]('Content-Range',_0x593785+'-'+_0x7088b+'/'+_0x176482)['json'](_0x5d133f);}return null;};}function saveUpdates(_0x575f4e){return function(_0x20e934){const _0x11ea8d=a133_0x324d;if(_0x20e934)return _0x20e934[_0x11ea8d('0x2a')](_0x575f4e)['then'](function(_0xb4c3e4){return _0xb4c3e4;});return null;};}function removeEntity(_0x1f4cb3){return function(_0x1a91be){const _0x4ce9ca=a133_0x324d;if(_0x1a91be)return _0x1a91be[_0x4ce9ca('0x31')]()[_0x4ce9ca('0x38')](function(){const _0x42074c=_0x4ce9ca;_0x1f4cb3[_0x42074c('0x1')](0xcc)[_0x42074c('0x2f')]();});};}function handleEntityNotFound(_0x549dfb){return function(_0x42009a){const _0x65b7a7=a133_0x324d;return!_0x42009a&&_0x549dfb[_0x65b7a7('0x11')](0x194),_0x42009a;};}function handleError(_0x26a4d8,_0x2036b2){return _0x2036b2=_0x2036b2||0x1f4,function(_0x2756ff){const _0x34390b=a133_0x324d;logger[_0x34390b('0x1c')](_0x2756ff[_0x34390b('0x1e')]),_0x2756ff[_0x34390b('0x15')]&&delete _0x2756ff['name'],_0x26a4d8[_0x34390b('0x1')](_0x2036b2)[_0x34390b('0x3c')](_0x2756ff);};}exports[_0x11e4f5('0x7')]=function(_0x42a5c6,_0x5ec78f){const _0x4c92de=_0x11e4f5;let _0x56a962={};const _0x5dee5a={},_0x459bdb={'count':0x0,'rows':[]},_0x1ee038=_[_0x4c92de('0x1d')](db['CmCustomField'][_0x4c92de('0x3f')],function(_0x4cf570){const _0x19b96c=_0x4c92de;return{'name':_0x4cf570[_0x19b96c('0x3b')],'type':_0x4cf570[_0x19b96c('0xf')][_0x19b96c('0x21')]};});_0x5dee5a[_0x4c92de('0x3a')]=_[_0x4c92de('0x20')](_[_0x4c92de('0x1d')](_0x1ee038,_0x4c92de('0x15')),[_0x4c92de('0x15')]),_0x5dee5a[_0x4c92de('0x2c')]=_[_0x4c92de('0x34')](_0x42a5c6[_0x4c92de('0x2c')]),_0x5dee5a[_0x4c92de('0x28')]=_['intersection'](_0x5dee5a['model'],_0x5dee5a[_0x4c92de('0x2c')]),_0x56a962['attributes']=_[_0x4c92de('0xd')](_0x5dee5a['model'],qs[_0x4c92de('0x32')](_0x42a5c6[_0x4c92de('0x2c')]['fields'])),_0x56a962['attributes']=_0x56a962[_0x4c92de('0x2')][_0x4c92de('0x17')]?_0x56a962[_0x4c92de('0x2')]:_0x5dee5a[_0x4c92de('0x3a')];typeof _0x42a5c6['query'][_0x4c92de('0x19')]==='undefined'&&(_0x56a962['limit']=qs['limit'](_0x42a5c6[_0x4c92de('0x2c')]['limit']),_0x56a962[_0x4c92de('0x6')]=qs[_0x4c92de('0x6')](_0x42a5c6[_0x4c92de('0x2c')][_0x4c92de('0x6')]));_0x56a962[_0x4c92de('0x14')]=qs[_0x4c92de('0x23')](_0x42a5c6[_0x4c92de('0x2c')]['sort']),_0x56a962[_0x4c92de('0x2d')]=qs['filters'](_['pick'](_0x42a5c6[_0x4c92de('0x2c')],_0x5dee5a['filters']),_0x1ee038);_0x42a5c6[_0x4c92de('0x2c')][_0x4c92de('0x2b')]&&(_0x56a962[_0x4c92de('0x2d')]=_['merge'](_0x56a962[_0x4c92de('0x2d')],{[Op['or']]:_[_0x4c92de('0x1d')](_0x1ee038,function(_0x4de107){const _0x36d27a=_0x4c92de;if(_0x4de107[_0x36d27a('0xf')]!==_0x36d27a('0x33')){const _0x2f4c16={};return _0x2f4c16[_0x4de107['name']]={[Op['like']]:'%'+_0x42a5c6[_0x36d27a('0x2c')][_0x36d27a('0x2b')]+'%'},_0x2f4c16;}})}));_0x56a962=_['merge']({},_0x56a962,_0x42a5c6[_0x4c92de('0x27')]);const _0x59ca2d={'where':_0x56a962[_0x4c92de('0x2d')]};return db['CmCustomField'][_0x4c92de('0x8')](_0x59ca2d)['then'](function(_0x8f9bf4){const _0x3f4797=_0x4c92de;return _0x459bdb[_0x3f4797('0x8')]=_0x8f9bf4,_0x42a5c6[_0x3f4797('0x2c')][_0x3f4797('0x24')]&&(_0x56a962[_0x3f4797('0x9')]=[{'all':!![]}]),db[_0x3f4797('0x13')][_0x3f4797('0xa')](_0x56a962);})['then'](function(_0x3e32cf){const _0x3c4104=_0x4c92de;return _0x459bdb[_0x3c4104('0x40')]=_0x3e32cf,_0x459bdb;})[_0x4c92de('0x38')](respondWithFilteredResult(_0x5ec78f,_0x56a962))[_0x4c92de('0x36')](handleError(_0x5ec78f,null));},exports[_0x11e4f5('0x4')]=function(_0x1f995d,_0x248433){const _0x185aae=_0x11e4f5;let _0x12df96={'raw':!![],'where':{'id':_0x1f995d[_0x185aae('0x25')]['id']}};const _0x50ec46={};return _0x50ec46[_0x185aae('0x3a')]=_[_0x185aae('0x34')](db[_0x185aae('0x13')][_0x185aae('0x3f')]),_0x50ec46[_0x185aae('0x2c')]=_['keys'](_0x1f995d[_0x185aae('0x2c')]),_0x50ec46['filters']=_['intersection'](_0x50ec46['model'],_0x50ec46[_0x185aae('0x2c')]),_0x12df96[_0x185aae('0x2')]=_[_0x185aae('0xd')](_0x50ec46[_0x185aae('0x3a')],qs[_0x185aae('0x32')](_0x1f995d[_0x185aae('0x2c')][_0x185aae('0x32')])),_0x12df96[_0x185aae('0x2')]=_0x12df96['attributes']['length']?_0x12df96[_0x185aae('0x2')]:_0x50ec46[_0x185aae('0x3a')],_0x1f995d[_0x185aae('0x2c')][_0x185aae('0x24')]&&(_0x12df96[_0x185aae('0x9')]=[{'all':!![]}]),_0x12df96=_['merge']({},_0x12df96,_0x1f995d['options']),db[_0x185aae('0x13')][_0x185aae('0xc')](_0x12df96)[_0x185aae('0x38')](handleEntityNotFound(_0x248433,null))[_0x185aae('0x38')](respondWithResult(_0x248433,null))[_0x185aae('0x36')](handleError(_0x248433,null));},exports[_0x11e4f5('0x2a')]=function(_0x3f9ce8,_0x32d076){const _0x5e18c8=_0x11e4f5;return _0x3f9ce8[_0x5e18c8('0x3')]['id']&&delete _0x3f9ce8[_0x5e18c8('0x3')]['id'],db['CmCustomField'][_0x5e18c8('0xc')]({'where':{'id':_0x3f9ce8[_0x5e18c8('0x25')]['id']}})['then'](handleEntityNotFound(_0x32d076,null))['then'](saveUpdates(_0x3f9ce8['body'],null))[_0x5e18c8('0x38')](respondWithResult(_0x32d076,null))[_0x5e18c8('0x36')](handleError(_0x32d076,null));},exports[_0x11e4f5('0x31')]=function(_0x580f03,_0x4f707b){const _0x562b68=_0x11e4f5;return db[_0x562b68('0x13')][_0x562b68('0xc')]({'where':{'id':_0x580f03[_0x562b68('0x25')]['id']}})[_0x562b68('0x38')](handleEntityNotFound(_0x4f707b,null))[_0x562b68('0x38')](removeEntity(_0x4f707b,null))[_0x562b68('0x36')](handleError(_0x4f707b,null));},exports[_0x11e4f5('0x0')]=function(_0x160c7f,_0x417c03){const _0x4e77bf=_0x11e4f5;let _0x9e7958;return db['sequelize'][_0x4e77bf('0x5')](function(_0x271691){const _0x1741b6=_0x4e77bf;return db['CmCustomField'][_0x1741b6('0x0')](_0x160c7f['body'],{'transaction':_0x271691})['then'](function(_0x1e61e4){const _0xed5440=_0x1741b6;_0x9e7958=_0x1e61e4;const _0x51e18d={'type':db[_0xed5440('0x2e')][_0xed5440('0x16')],'transaction':_0x271691};switch(_0x160c7f[_0xed5440('0x3')][_0xed5440('0xf')]){case _0xed5440('0x1f'):_0x51e18d[_0xed5440('0xf')]=db[_0xed5440('0x2e')][_0xed5440('0x16')];break;case _0xed5440('0xb'):_0x51e18d[_0xed5440('0xf')]=db[_0xed5440('0x2e')][_0xed5440('0x12')];break;case _0xed5440('0x41'):_0x51e18d[_0xed5440('0xf')]=db['Sequelize'][_0xed5440('0x3e')],_0x51e18d[_0xed5440('0x1b')]=![];break;default:}return db[_0xed5440('0x3d')][_0xed5440('0x10')][_0xed5440('0x22')]('cm_contacts',util['format'](_0xed5440('0x39'),_0x9e7958['id']),_0x51e18d);})['then'](function(){return _0x9e7958;});})[_0x4e77bf('0x38')](respondWithResult(_0x417c03,0xc9))[_0x4e77bf('0x36')](handleError(_0x417c03,null));}; \ No newline at end of file +const a133_0x2eeb=['map','name','rawAttributes','show','Sequelize','transaction','query','destroy','sendStatus','count','options','addColumn','params','findAll','merge','index','../../config/logger','stack','error','create','fieldName','cf_%d','body','Content-Range','TEXT','../../mysqldb','rows','send','length','fields','sequelize','format','undefined','INTEGER','like','defaultValue','then','set','filter','pick','includeAll','keys','limit','BOOLEAN','differenceBy','offset','filters','update','json','nolimit','sort','text','end','where','order','CmCustomField','include','findOne','type','catch','attributes','lodash','VIRTUAL','model','status','key','intersection'];(function(_0x3b49bb,_0x2eeb47){const _0x7aff47=function(_0xc106dc){while(--_0xc106dc){_0x3b49bb['push'](_0x3b49bb['shift']());}};_0x7aff47(++_0x2eeb47);}(a133_0x2eeb,0x75));const a133_0x7aff=function(_0x3b49bb,_0x2eeb47){_0x3b49bb=_0x3b49bb-0x0;let _0x7aff47=a133_0x2eeb[_0x3b49bb];return _0x7aff47;};const _0x285ae0=a133_0x7aff;'use strict';const util=require('util'),_=require(_0x285ae0('0xb')),qs=require('../../components/parsers/qs'),logger=require(_0x285ae0('0x21'))('api'),db=require(_0x285ae0('0x2a'))['db'],{Op}=require('sequelize');function respondWithResult(_0xc106dc,_0x26c822){return _0x26c822=_0x26c822||0xc8,function(_0x5938ad){const _0x4d5f20=a133_0x7aff;if(_0x5938ad)return _0xc106dc[_0x4d5f20('0xe')](_0x26c822)[_0x4d5f20('0x41')](_0x5938ad);};}function respondWithFilteredResult(_0x8b1038,_0xf80695){return function(_0x2c9f97){const _0x39d6e6=a133_0x7aff;if(_0x2c9f97){const _0x44f56f=_0x2c9f97['count'],_0x3906bc=_0xf80695[_0x39d6e6('0x3e')];let _0x2bf7cf=_0xf80695[_0x39d6e6('0x3e')]+_0xf80695[_0x39d6e6('0x3b')],_0x2550bd;return _0x2bf7cf>=_0x44f56f?(_0x2bf7cf=_0x44f56f,_0x2550bd=0xc8):_0x2550bd=0xce,_0x8b1038['status'](_0x2550bd),_0x8b1038[_0x39d6e6('0x36')](_0x39d6e6('0x28'),_0x3906bc+'-'+_0x2bf7cf+'/'+_0x44f56f)[_0x39d6e6('0x41')](_0x2c9f97);}return null;};}function saveUpdates(_0x240a94){return function(_0x56405e){const _0x55034e=a133_0x7aff;if(_0x56405e)return _0x56405e[_0x55034e('0x40')](_0x240a94)[_0x55034e('0x35')](function(_0x2ba425){return _0x2ba425;});return null;};}function removeEntity(_0x359b2){return function(_0xc1b839){const _0x1162f4=a133_0x7aff;if(_0xc1b839)return _0xc1b839['destroy']()[_0x1162f4('0x35')](function(){const _0x4f960f=_0x1162f4;_0x359b2[_0x4f960f('0xe')](0xcc)[_0x4f960f('0x2')]();});};}function handleEntityNotFound(_0x1bbdfa){return function(_0x365b6f){const _0x82584d=a133_0x7aff;return!_0x365b6f&&_0x1bbdfa[_0x82584d('0x19')](0x194),_0x365b6f;};}function handleError(_0x5ec08d,_0x189fe2){return _0x189fe2=_0x189fe2||0x1f4,function(_0x33a629){const _0xa124cd=a133_0x7aff;logger[_0xa124cd('0x23')](_0x33a629[_0xa124cd('0x22')]),_0x33a629[_0xa124cd('0x12')]&&delete _0x33a629[_0xa124cd('0x12')],_0x5ec08d[_0xa124cd('0xe')](_0x189fe2)[_0xa124cd('0x2c')](_0x33a629);};}exports[_0x285ae0('0x20')]=function(_0x16b17d,_0x58343d){const _0x45afac=_0x285ae0;let _0x37c17e={};const _0x676638={},_0x5c3c8f={'count':0x0,'rows':[]},_0x5dc733=_['map'](db[_0x45afac('0x5')][_0x45afac('0x13')],function(_0x3527a3){const _0xb00b76=_0x45afac;return{'name':_0x3527a3[_0xb00b76('0x25')],'type':_0x3527a3[_0xb00b76('0x8')][_0xb00b76('0xf')]};});_0x676638[_0x45afac('0xd')]=_[_0x45afac('0x3d')](_[_0x45afac('0x11')](_0x5dc733,_0x45afac('0x12')),['name']),_0x676638[_0x45afac('0x17')]=_[_0x45afac('0x3a')](_0x16b17d['query']),_0x676638[_0x45afac('0x3f')]=_[_0x45afac('0x10')](_0x676638[_0x45afac('0xd')],_0x676638[_0x45afac('0x17')]),_0x37c17e[_0x45afac('0xa')]=_[_0x45afac('0x10')](_0x676638[_0x45afac('0xd')],qs[_0x45afac('0x2e')](_0x16b17d[_0x45afac('0x17')][_0x45afac('0x2e')])),_0x37c17e[_0x45afac('0xa')]=_0x37c17e['attributes'][_0x45afac('0x2d')]?_0x37c17e[_0x45afac('0xa')]:_0x676638['model'];typeof _0x16b17d[_0x45afac('0x17')][_0x45afac('0x42')]===_0x45afac('0x31')&&(_0x37c17e['limit']=qs[_0x45afac('0x3b')](_0x16b17d[_0x45afac('0x17')][_0x45afac('0x3b')]),_0x37c17e[_0x45afac('0x3e')]=qs['offset'](_0x16b17d[_0x45afac('0x17')]['offset']));_0x37c17e[_0x45afac('0x4')]=qs[_0x45afac('0x0')](_0x16b17d[_0x45afac('0x17')][_0x45afac('0x0')]),_0x37c17e[_0x45afac('0x3')]=qs[_0x45afac('0x3f')](_[_0x45afac('0x38')](_0x16b17d[_0x45afac('0x17')],_0x676638[_0x45afac('0x3f')]),_0x5dc733);_0x16b17d['query'][_0x45afac('0x37')]&&(_0x37c17e[_0x45afac('0x3')]=_[_0x45afac('0x1f')](_0x37c17e[_0x45afac('0x3')],{[Op['or']]:_['map'](_0x5dc733,function(_0x1ee411){const _0x3a604c=_0x45afac;if(_0x1ee411[_0x3a604c('0x8')]!==_0x3a604c('0xc')){const _0x7bf972={};return _0x7bf972[_0x1ee411[_0x3a604c('0x12')]]={[Op[_0x3a604c('0x33')]]:'%'+_0x16b17d[_0x3a604c('0x17')][_0x3a604c('0x37')]+'%'},_0x7bf972;}})}));_0x37c17e=_[_0x45afac('0x1f')]({},_0x37c17e,_0x16b17d[_0x45afac('0x1b')]);const _0x333ec3={'where':_0x37c17e['where']};return db[_0x45afac('0x5')][_0x45afac('0x1a')](_0x333ec3)[_0x45afac('0x35')](function(_0x152efd){const _0x5b05fd=_0x45afac;return _0x5c3c8f[_0x5b05fd('0x1a')]=_0x152efd,_0x16b17d[_0x5b05fd('0x17')]['includeAll']&&(_0x37c17e[_0x5b05fd('0x6')]=[{'all':!![]}]),db[_0x5b05fd('0x5')][_0x5b05fd('0x1e')](_0x37c17e);})[_0x45afac('0x35')](function(_0x46775c){const _0x2d0b3f=_0x45afac;return _0x5c3c8f[_0x2d0b3f('0x2b')]=_0x46775c,_0x5c3c8f;})[_0x45afac('0x35')](respondWithFilteredResult(_0x58343d,_0x37c17e))[_0x45afac('0x9')](handleError(_0x58343d,null));},exports[_0x285ae0('0x14')]=function(_0x25aefa,_0x6a6b9f){const _0x542bc1=_0x285ae0;let _0x3f747c={'raw':!![],'where':{'id':_0x25aefa[_0x542bc1('0x1d')]['id']}};const _0x5c864b={};return _0x5c864b['model']=_[_0x542bc1('0x3a')](db[_0x542bc1('0x5')][_0x542bc1('0x13')]),_0x5c864b[_0x542bc1('0x17')]=_[_0x542bc1('0x3a')](_0x25aefa[_0x542bc1('0x17')]),_0x5c864b[_0x542bc1('0x3f')]=_['intersection'](_0x5c864b['model'],_0x5c864b[_0x542bc1('0x17')]),_0x3f747c[_0x542bc1('0xa')]=_['intersection'](_0x5c864b[_0x542bc1('0xd')],qs[_0x542bc1('0x2e')](_0x25aefa[_0x542bc1('0x17')][_0x542bc1('0x2e')])),_0x3f747c[_0x542bc1('0xa')]=_0x3f747c[_0x542bc1('0xa')]['length']?_0x3f747c['attributes']:_0x5c864b[_0x542bc1('0xd')],_0x25aefa['query'][_0x542bc1('0x39')]&&(_0x3f747c[_0x542bc1('0x6')]=[{'all':!![]}]),_0x3f747c=_[_0x542bc1('0x1f')]({},_0x3f747c,_0x25aefa[_0x542bc1('0x1b')]),db[_0x542bc1('0x5')]['findOne'](_0x3f747c)['then'](handleEntityNotFound(_0x6a6b9f,null))[_0x542bc1('0x35')](respondWithResult(_0x6a6b9f,null))[_0x542bc1('0x9')](handleError(_0x6a6b9f,null));},exports[_0x285ae0('0x40')]=function(_0x323044,_0x53b428){const _0x4bc0af=_0x285ae0;return _0x323044[_0x4bc0af('0x27')]['id']&&delete _0x323044[_0x4bc0af('0x27')]['id'],db[_0x4bc0af('0x5')][_0x4bc0af('0x7')]({'where':{'id':_0x323044[_0x4bc0af('0x1d')]['id']}})[_0x4bc0af('0x35')](handleEntityNotFound(_0x53b428,null))['then'](saveUpdates(_0x323044[_0x4bc0af('0x27')],null))['then'](respondWithResult(_0x53b428,null))[_0x4bc0af('0x9')](handleError(_0x53b428,null));},exports[_0x285ae0('0x18')]=function(_0x18ef4e,_0x4023dc){const _0x13892c=_0x285ae0;return db[_0x13892c('0x5')][_0x13892c('0x7')]({'where':{'id':_0x18ef4e[_0x13892c('0x1d')]['id']}})['then'](handleEntityNotFound(_0x4023dc,null))['then'](removeEntity(_0x4023dc,null))[_0x13892c('0x9')](handleError(_0x4023dc,null));},exports['create']=function(_0x56be64,_0xf4d6ca){const _0x253f51=_0x285ae0;let _0x491026;return db[_0x253f51('0x2f')][_0x253f51('0x16')](function(_0x171edd){const _0x4cd866=_0x253f51;return db[_0x4cd866('0x5')][_0x4cd866('0x24')](_0x56be64[_0x4cd866('0x27')],{'transaction':_0x171edd})[_0x4cd866('0x35')](function(_0x5bd2f1){const _0x11865e=_0x4cd866;_0x491026=_0x5bd2f1;const _0x5e9b97={'type':db[_0x11865e('0x15')][_0x11865e('0x29')],'transaction':_0x171edd};switch(_0x56be64[_0x11865e('0x27')][_0x11865e('0x8')]){case _0x11865e('0x1'):_0x5e9b97[_0x11865e('0x8')]=db['Sequelize']['TEXT'];break;case'number':_0x5e9b97['type']=db['Sequelize'][_0x11865e('0x32')];break;case'switch':_0x5e9b97['type']=db[_0x11865e('0x15')][_0x11865e('0x3c')],_0x5e9b97[_0x11865e('0x34')]=![];break;default:}return db[_0x11865e('0x2f')]['queryInterface'][_0x11865e('0x1c')]('cm_contacts',util[_0x11865e('0x30')](_0x11865e('0x26'),_0x491026['id']),_0x5e9b97);})[_0x4cd866('0x35')](function(){return _0x491026;});})[_0x253f51('0x35')](respondWithResult(_0xf4d6ca,0xc9))[_0x253f51('0x9')](handleError(_0xf4d6ca,null));}; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.model.js b/server/api/cmCustomField/cmCustomField.model.js index ac6ddf9..2ea68f3 100644 --- a/server/api/cmCustomField/cmCustomField.model.js +++ b/server/api/cmCustomField/cmCustomField.model.js @@ -1 +1 @@ -const a134_0x4690=['define','./cmCustomField.attributes','CmCustomField','exports','cm_custom_fields'];(function(_0x47c0dc,_0x4690b2){const _0x104a83=function(_0x18cbdd){while(--_0x18cbdd){_0x47c0dc['push'](_0x47c0dc['shift']());}};_0x104a83(++_0x4690b2);}(a134_0x4690,0x1d7));const a134_0x104a=function(_0x47c0dc,_0x4690b2){_0x47c0dc=_0x47c0dc-0x0;let _0x104a83=a134_0x4690[_0x47c0dc];return _0x104a83;};const _0x32515b=a134_0x104a;'use strict';const attributes=require(_0x32515b('0x0'));module[_0x32515b('0x2')]=function(_0x18cbdd){const _0x52f6f8=_0x32515b,_0x1552b1=_0x18cbdd[_0x52f6f8('0x4')](_0x52f6f8('0x1'),attributes,{'tableName':_0x52f6f8('0x3'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0x1552b1;}; \ No newline at end of file +const a134_0x1f3e=['cm_custom_fields','CmCustomField','define','./cmCustomField.attributes'];(function(_0x199a97,_0x1f3ed5){const _0x191b49=function(_0x25edb2){while(--_0x25edb2){_0x199a97['push'](_0x199a97['shift']());}};_0x191b49(++_0x1f3ed5);}(a134_0x1f3e,0x1e2));const a134_0x191b=function(_0x199a97,_0x1f3ed5){_0x199a97=_0x199a97-0x0;let _0x191b49=a134_0x1f3e[_0x199a97];return _0x191b49;};const _0xa16f6b=a134_0x191b;'use strict';const attributes=require(_0xa16f6b('0x1'));module['exports']=function(_0x25edb2){const _0x4c586f=_0xa16f6b,_0x5c88b8=_0x25edb2[_0x4c586f('0x0')](_0x4c586f('0x3'),attributes,{'tableName':_0x4c586f('0x2'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0x5c88b8;}; \ No newline at end of file diff --git a/server/api/cmCustomField/index.js b/server/api/cmCustomField/index.js index 1e22e82..c82a69c 100644 --- a/server/api/cmCustomField/index.js +++ b/server/api/cmCustomField/index.js @@ -1 +1 @@ -const a135_0x104c=['update','post','./cmCustomField.controller','create','get','destroy','show','/:id','Router','delete','exports','isAuthenticated','../../components/auth/service','express'];(function(_0x2bb5e2,_0x104c84){const _0xa76e32=function(_0x1ec339){while(--_0x1ec339){_0x2bb5e2['push'](_0x2bb5e2['shift']());}};_0xa76e32(++_0x104c84);}(a135_0x104c,0x1af));const a135_0xa76e=function(_0x2bb5e2,_0x104c84){_0x2bb5e2=_0x2bb5e2-0x0;let _0xa76e32=a135_0x104c[_0x2bb5e2];return _0xa76e32;};const _0x2ecf53=a135_0xa76e;'use strict';const express=require(_0x2ecf53('0x2')),router=express[_0x2ecf53('0xb')](),auth=require(_0x2ecf53('0x1')),controller=require(_0x2ecf53('0x5'));router[_0x2ecf53('0x7')]('/',auth[_0x2ecf53('0x0')](),controller['index']),router[_0x2ecf53('0x7')]('/:id',auth[_0x2ecf53('0x0')](),controller[_0x2ecf53('0x9')]),router[_0x2ecf53('0x4')]('/',auth['isAuthenticated'](),controller[_0x2ecf53('0x6')]),router['put'](_0x2ecf53('0xa'),auth[_0x2ecf53('0x0')](),controller[_0x2ecf53('0x3')]),router[_0x2ecf53('0xc')]('/:id',auth[_0x2ecf53('0x0')](),controller[_0x2ecf53('0x8')]),module[_0x2ecf53('0xd')]=router; \ No newline at end of file +const a135_0x1672=['index','isAuthenticated','destroy','update','get','create','./cmCustomField.controller','../../components/auth/service','Router','post','/:id'];(function(_0x501227,_0x1672f9){const _0x42188=function(_0x544df1){while(--_0x544df1){_0x501227['push'](_0x501227['shift']());}};_0x42188(++_0x1672f9);}(a135_0x1672,0x13d));const a135_0x4218=function(_0x501227,_0x1672f9){_0x501227=_0x501227-0x0;let _0x42188=a135_0x1672[_0x501227];return _0x42188;};const _0x72dcdd=a135_0x4218;'use strict';const express=require('express'),router=express[_0x72dcdd('0xa')](),auth=require(_0x72dcdd('0x9')),controller=require(_0x72dcdd('0x8'));router[_0x72dcdd('0x6')]('/',auth[_0x72dcdd('0x3')](),controller[_0x72dcdd('0x2')]),router['get'](_0x72dcdd('0x1'),auth[_0x72dcdd('0x3')](),controller['show']),router[_0x72dcdd('0x0')]('/',auth[_0x72dcdd('0x3')](),controller[_0x72dcdd('0x7')]),router['put'](_0x72dcdd('0x1'),auth[_0x72dcdd('0x3')](),controller[_0x72dcdd('0x5')]),router['delete']('/:id',auth[_0x72dcdd('0x3')](),controller[_0x72dcdd('0x4')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.attributes.js b/server/api/cmHopper/cmHopper.attributes.js index d97f774..ce86d88 100644 --- a/server/api/cmHopper/cmHopper.attributes.js +++ b/server/api/cmHopper/cmHopper.attributes.js @@ -1 +1 @@ -const a136_0x1735=['format','STRING','BOOLEAN','DATE','exports','contactListQueue','INTEGER','UNSIGNED','YYYY-MM-DD\x20HH:mm:ss','sequelize'];(function(_0x357d13,_0x173572){const _0x2fa776=function(_0x5ca2c2){while(--_0x5ca2c2){_0x357d13['push'](_0x357d13['shift']());}};_0x2fa776(++_0x173572);}(a136_0x1735,0xea));const a136_0x2fa7=function(_0x357d13,_0x173572){_0x357d13=_0x357d13-0x0;let _0x2fa776=a136_0x1735[_0x357d13];return _0x2fa776;};const _0x3d6d16=a136_0x2fa7;'use strict';const moment=require('moment'),Sequelize=require(_0x3d6d16('0x5'));module[_0x3d6d16('0x0')]={'phone':{'type':Sequelize['STRING'],'allowNull':![]},'active':{'type':Sequelize[_0x3d6d16('0x8')],'defaultValue':![]},'scheduledat':{'type':Sequelize[_0x3d6d16('0x9')],'defaultValue':moment()[_0x3d6d16('0x6')](_0x3d6d16('0x4'))},'countbusyretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x3d6d16('0x2')],'defaultValue':0x0},'callback':{'type':Sequelize[_0x3d6d16('0x8')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x3d6d16('0x7')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x3d6d16('0x9')]},'priority':{'type':Sequelize[_0x3d6d16('0x2')](0x2)[_0x3d6d16('0x3')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize[_0x3d6d16('0x8')],'defaultValue':![]},'ContactId':{'type':Sequelize[_0x3d6d16('0x2')],'unique':_0x3d6d16('0x1')},'ListId':{'type':Sequelize[_0x3d6d16('0x2')],'unique':'contactListQueue'},'UserId':{'type':Sequelize[_0x3d6d16('0x2')]},'VoiceQueueId':{'type':Sequelize[_0x3d6d16('0x2')],'unique':'contactListQueue'},'CampaignId':{'type':Sequelize[_0x3d6d16('0x2')]},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x3d6d16('0x2')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x3d6d16('0x2')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x3d6d16('0x2')],'defaultValue':0x0}}; \ No newline at end of file +const a136_0x20ef=['contactListQueue','YYYY-MM-DD\x20HH:mm:ss','format','BOOLEAN','STRING','UNSIGNED','moment','exports','INTEGER','DATE'];(function(_0x2da6af,_0x20ef4f){const _0x5d0122=function(_0x400ba6){while(--_0x400ba6){_0x2da6af['push'](_0x2da6af['shift']());}};_0x5d0122(++_0x20ef4f);}(a136_0x20ef,0x177));const a136_0x5d01=function(_0x2da6af,_0x20ef4f){_0x2da6af=_0x2da6af-0x0;let _0x5d0122=a136_0x20ef[_0x2da6af];return _0x5d0122;};const _0x4c6f08=a136_0x5d01;'use strict';const moment=require(_0x4c6f08('0x1')),Sequelize=require('sequelize');module[_0x4c6f08('0x2')]={'phone':{'type':Sequelize[_0x4c6f08('0x9')],'allowNull':![]},'active':{'type':Sequelize[_0x4c6f08('0x8')],'defaultValue':![]},'scheduledat':{'type':Sequelize[_0x4c6f08('0x4')],'defaultValue':moment()[_0x4c6f08('0x7')](_0x4c6f08('0x6'))},'countbusyretry':{'type':Sequelize[_0x4c6f08('0x3')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'callback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x4c6f08('0x9')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x4c6f08('0x4')]},'priority':{'type':Sequelize['INTEGER'](0x2)[_0x4c6f08('0x0')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ContactId':{'type':Sequelize['INTEGER'],'unique':'contactListQueue'},'ListId':{'type':Sequelize[_0x4c6f08('0x3')],'unique':_0x4c6f08('0x5')},'UserId':{'type':Sequelize['INTEGER']},'VoiceQueueId':{'type':Sequelize[_0x4c6f08('0x3')],'unique':_0x4c6f08('0x5')},'CampaignId':{'type':Sequelize[_0x4c6f08('0x3')]},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x4c6f08('0x3')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x4c6f08('0x3')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x4c6f08('0x3')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.controller.js b/server/api/cmHopper/cmHopper.controller.js index a6c241f..bb2bb8b 100644 --- a/server/api/cmHopper/cmHopper.controller.js +++ b/server/api/cmHopper/cmHopper.controller.js @@ -1 +1 @@ -const a137_0x5041=['sequelize','attributes','findAll','keys','name','show','VoiceQueueId','lastName','YYYY-MM-DD\x20HH:mm:ss','json','$notBetween','ivr','state','$notLike','scheduledAt','CmContac','query','count','List','$not','$ne','isNumber','update','$lte','order','nolimit','status','describe','type','Company','merge','$gte','catch','fields','$lt','offset','format','$contains','deletedat','omit','campaigntype','$overlap','hopperIds','getOpenContacts','COALESCE(CmHopper.UserId,\x200)\x20ASC','CmHopper','include','filter','$like','$or','$in','findOne','outbound','VoiceQueue','firstName','$iLike','sendStatus','rawAttributes','like','lodash','campaign','dataValues','CampaignId','COALESCE(CmHopper.UserId,\x200)\x20DESC','where','includeAll','params','../../config/logger','$contained','then','$notIn','intersection','isEmpty','error','create','dialOrderByScheduledAt','body','preview','Content-Range','priority','filters','map','model','length','../../components/parsers/qs','Campaign','CmContact','Contact','concat','options','Queue','ContactId','dialActive','pick','$between','ASC','isNil','moment','entity\x20not\x20found','direction','membername','literal','createdAt','statedesc','undefined','set','getPreview','destroy','user','phone','calleridname','CmHopperFinal','$eq','finally','deleted','api','index','lte','CmCompany','limit','scheduledat'];(function(_0x4fca8c,_0x504175){const _0x5a4532=function(_0x460164){while(--_0x460164){_0x4fca8c['push'](_0x4fca8c['shift']());}};_0x5a4532(++_0x504175);}(a137_0x5041,0x117));const a137_0x5a45=function(_0x4fca8c,_0x504175){_0x4fca8c=_0x4fca8c-0x0;let _0x5a4532=a137_0x5041[_0x4fca8c];return _0x5a4532;};const _0x5be55d=a137_0x5a45;'use strict';const moment=require(_0x5be55d('0x3c')),_=require(_0x5be55d('0x16')),qs=require(_0x5be55d('0x2f')),logger=require(_0x5be55d('0x1e'))(_0x5be55d('0x4e')),db=require('../../mysqldb')['db'],{Op}=require(_0x5be55d('0x54'));function respondWithResult(_0x460164,_0x100af5){return _0x100af5=_0x100af5||0xc8,function(_0x393001){const _0x23c930=a137_0x5a45;if(_0x393001)return _0x460164[_0x23c930('0x6e')](_0x100af5)[_0x23c930('0x5d')](_0x393001);};}function respondWithFilteredResult(_0x25814c,_0x2e5e13){return function(_0x2e8a36){const _0xe332af=a137_0x5a45;if(_0x2e8a36){const _0x51bd4b=_0x2e8a36[_0xe332af('0x65')],_0x40fe94=_0x2e5e13[_0xe332af('0x77')];let _0x4b7a02=_0x2e5e13[_0xe332af('0x77')]+_0x2e5e13[_0xe332af('0x52')],_0x141cfc;return _0x4b7a02>=_0x51bd4b?(_0x4b7a02=_0x51bd4b,_0x141cfc=0xc8):_0x141cfc=0xce,_0x25814c['status'](_0x141cfc),_0x25814c[_0xe332af('0x44')](_0xe332af('0x29'),_0x40fe94+'-'+_0x4b7a02+'/'+_0x51bd4b)[_0xe332af('0x5d')](_0x2e8a36);}return null;};}function saveUpdates(_0x173bc9){return function(_0x14ea30){const _0x5b4b1d=a137_0x5a45;if(_0x14ea30)return _0x14ea30[_0x5b4b1d('0x6a')](_0x173bc9)[_0x5b4b1d('0x20')](function(_0x4e3770){return _0x4e3770;});return null;};}function handleEntityNotFound(_0x2d3fad){return function(_0x523580){const _0x645f89=a137_0x5a45;return!_0x523580&&_0x2d3fad[_0x645f89('0x13')](0x194),_0x523580;};}function handleError(_0x56feeb,_0x311059){return _0x311059=_0x311059||0x1f4,function(_0x357acc){const _0x556e55=a137_0x5a45;logger[_0x556e55('0x24')](_0x357acc['stack']),_0x357acc[_0x556e55('0x58')]&&delete _0x357acc['name'],_0x56feeb[_0x556e55('0x6e')](_0x311059)['send'](_0x357acc);};}exports[_0x5be55d('0x4f')]=function(_0xfcb805,_0xf001fb){const _0x21ddd2=_0x5be55d;let _0x55b78d={};const _0x402553={},_0xf5178a={'count':0x0,'rows':[]},_0x2643af=_[_0x21ddd2('0x2c')](db[_0x21ddd2('0x8')][_0x21ddd2('0x14')],function(_0xb03752){const _0x4d5d14=_0x21ddd2;return{'name':_0xb03752['fieldName'],'type':_0xb03752[_0x4d5d14('0x70')]['key']};});_0x402553[_0x21ddd2('0x2d')]=_[_0x21ddd2('0x2c')](_0x2643af,_0x21ddd2('0x58')),_0x402553[_0x21ddd2('0x64')]=_[_0x21ddd2('0x57')](_0xfcb805[_0x21ddd2('0x64')]),_0x402553['filters']=_[_0x21ddd2('0x22')](_0x402553[_0x21ddd2('0x2d')],_0x402553[_0x21ddd2('0x64')]),_0x402553[_0x21ddd2('0x2b')]=_[_0x21ddd2('0x33')](_0x402553[_0x21ddd2('0x2b')],['$and',_0x21ddd2('0xc'),'$gt',_0x21ddd2('0x73'),_0x21ddd2('0x76'),_0x21ddd2('0x6b'),_0x21ddd2('0x68'),_0x21ddd2('0x4b'),_0x21ddd2('0x67'),_0x21ddd2('0x39'),_0x21ddd2('0x5e'),_0x21ddd2('0xd'),_0x21ddd2('0x21'),'$like',_0x21ddd2('0x61'),_0x21ddd2('0x12'),'$notILike',_0x21ddd2('0xb'),_0x21ddd2('0x4'),_0x21ddd2('0x0'),_0x21ddd2('0x1f'),'$any']),_0x55b78d[_0x21ddd2('0x55')]=_['intersection'](_0x402553[_0x21ddd2('0x2d')],qs[_0x21ddd2('0x75')](_0xfcb805['query'][_0x21ddd2('0x75')])),_0x55b78d[_0x21ddd2('0x55')]=_0x55b78d['attributes']['length']?_0x55b78d[_0x21ddd2('0x55')]:_0x402553[_0x21ddd2('0x2d')];typeof _0xfcb805[_0x21ddd2('0x64')][_0x21ddd2('0x6d')]===_0x21ddd2('0x43')&&(_0x55b78d[_0x21ddd2('0x52')]=qs[_0x21ddd2('0x52')](_0xfcb805[_0x21ddd2('0x64')][_0x21ddd2('0x52')]),_0x55b78d['offset']=qs[_0x21ddd2('0x77')](_0xfcb805['query']['offset']));_0x55b78d[_0x21ddd2('0x6c')]=qs['sort'](_0xfcb805[_0x21ddd2('0x64')]['sort']),_0x55b78d[_0x21ddd2('0x1b')]=qs[_0x21ddd2('0x2b')](_[_0x21ddd2('0x38')](_0xfcb805[_0x21ddd2('0x64')],_0x402553[_0x21ddd2('0x2b')]),_0x2643af);_0xfcb805[_0x21ddd2('0x64')]['filter']&&(_0x55b78d[_0x21ddd2('0x1b')]=_[_0x21ddd2('0x72')](_0x55b78d['where'],{[Op['or']]:_[_0x21ddd2('0x2c')](_0x2643af,function(_0x857011){const _0x2f7d27=_0x21ddd2;if(_0x857011[_0x2f7d27('0x70')]!=='VIRTUAL'){const _0x54d59b={};return _0x54d59b[_0x857011[_0x2f7d27('0x58')]]={[Op[_0x2f7d27('0x15')]]:'%'+_0xfcb805[_0x2f7d27('0x64')][_0x2f7d27('0xa')]+'%'},_0x54d59b;}})}));_0x55b78d=_[_0x21ddd2('0x72')]({},_0x55b78d,_0xfcb805[_0x21ddd2('0x34')]);const _0x242459={'where':_0x55b78d[_0x21ddd2('0x1b')]};return db[_0x21ddd2('0x8')][_0x21ddd2('0x65')](_0x242459)[_0x21ddd2('0x20')](function(_0x51afaf){const _0x50a24d=_0x21ddd2;return _0xf5178a[_0x50a24d('0x65')]=_0x51afaf,_0xfcb805[_0x50a24d('0x64')][_0x50a24d('0x1c')]&&(_0x55b78d[_0x50a24d('0x9')]=[{'all':!![]}]),db[_0x50a24d('0x8')][_0x50a24d('0x56')](_0x55b78d);})[_0x21ddd2('0x20')](function(_0x53c0ea){return _0xf5178a['rows']=_0x53c0ea,_0xf5178a;})[_0x21ddd2('0x20')](respondWithFilteredResult(_0xf001fb,_0x55b78d))[_0x21ddd2('0x74')](handleError(_0xf001fb,null));},exports[_0x5be55d('0x59')]=function(_0x333ff8,_0x4b81c4){const _0x2accfc=_0x5be55d;let _0x23556e={'raw':!![],'where':{'id':_0x333ff8[_0x2accfc('0x1d')]['id']}};const _0x183623={};return _0x183623[_0x2accfc('0x2d')]=_[_0x2accfc('0x57')](db['CmHopper'][_0x2accfc('0x14')]),_0x183623[_0x2accfc('0x64')]=_[_0x2accfc('0x57')](_0x333ff8[_0x2accfc('0x64')]),_0x183623[_0x2accfc('0x2b')]=_[_0x2accfc('0x22')](_0x183623[_0x2accfc('0x2d')],_0x183623['query']),_0x23556e[_0x2accfc('0x55')]=_['intersection'](_0x183623[_0x2accfc('0x2d')],qs[_0x2accfc('0x75')](_0x333ff8['query'][_0x2accfc('0x75')])),_0x23556e[_0x2accfc('0x55')]=_0x23556e[_0x2accfc('0x55')][_0x2accfc('0x2e')]?_0x23556e['attributes']:_0x183623[_0x2accfc('0x2d')],_0x333ff8['query'][_0x2accfc('0x1c')]&&(_0x23556e[_0x2accfc('0x9')]=[{'all':!![]}]),_0x23556e=_[_0x2accfc('0x72')]({},_0x23556e,_0x333ff8['options']),db['CmHopper'][_0x2accfc('0xe')](_0x23556e)[_0x2accfc('0x20')](handleEntityNotFound(_0x4b81c4,null))[_0x2accfc('0x20')](respondWithResult(_0x4b81c4,null))[_0x2accfc('0x74')](handleError(_0x4b81c4,null));},exports[_0x5be55d('0x25')]=function(_0x1b4e36,_0x35ab9b){const _0x1e062b=_0x5be55d;return db[_0x1e062b('0x8')][_0x1e062b('0x25')](_0x1b4e36['body'],{})[_0x1e062b('0x20')](respondWithResult(_0x35ab9b,0xc9))[_0x1e062b('0x74')](handleError(_0x35ab9b,null));},exports['update']=function(_0x4c797b,_0x3bdc37){const _0x10c475=_0x5be55d;return _0x4c797b['body']['id']&&delete _0x4c797b[_0x10c475('0x27')]['id'],db['CmHopper']['findOne']({'where':{'id':_0x4c797b['params']['id']}})[_0x10c475('0x20')](handleEntityNotFound(_0x3bdc37,null))[_0x10c475('0x20')](saveUpdates(_0x4c797b['body'],null))['then'](respondWithResult(_0x3bdc37,null))[_0x10c475('0x74')](handleError(_0x3bdc37,null));},exports[_0x5be55d('0x6f')]=function(_0x4d6e7c,_0x1da8be){const _0x118cfd=_0x5be55d;return db[_0x118cfd('0x8')][_0x118cfd('0x6f')]()[_0x118cfd('0x20')](respondWithResult(_0x1da8be,null))[_0x118cfd('0x74')](handleError(_0x1da8be,null));},exports[_0x5be55d('0x46')]=function(_0x150365,_0x219469){const _0x3c4196=_0x5be55d;let _0x5c4cd7;return db['CmHopper'][_0x3c4196('0xe')]({'where':{'id':_0x150365[_0x3c4196('0x1d')]['id']}})['then'](handleEntityNotFound(_0x219469,null))['then'](function(_0x41a685){const _0x13e7e1=_0x3c4196;if(_0x41a685)return _0x41a685[_0x13e7e1('0x46')]()[_0x13e7e1('0x20')](function(_0x27da83){return _0x27da83;});})[_0x3c4196('0x20')](function(_0x41893a){const _0x432248=_0x3c4196;_0x5c4cd7=_0x41893a;if(_0x41893a){if(_0x41893a[_0x432248('0x5a')]||_0x41893a[_0x432248('0x19')])return db[_0x41893a[_0x432248('0x5a')]?_0x432248('0x10'):_0x432248('0x30')][_0x432248('0xe')]({'where':{'id':_0x41893a[_0x432248('0x5a')]?_0x41893a[_0x432248('0x5a')]:_0x41893a['CampaignId']},'attributes':['id',_0x432248('0x58')],'raw':!![]});}})[_0x3c4196('0x20')](function(_0x72f796){const _0x58a9ad=_0x3c4196,_0x46fc80={};if(_0x72f796)return _[_0x58a9ad('0x72')](_0x46fc80,_[_0x58a9ad('0x2')](_0x5c4cd7[_0x58a9ad('0x18')],[_0x58a9ad('0x41'),'updatedAt','id'])),_0x46fc80[_0x58a9ad('0x60')]=0x15,_0x46fc80[_0x58a9ad('0x42')]='deleted',_0x46fc80[_0x58a9ad('0x17')]=_0x72f796[_0x58a9ad('0x58')],_0x46fc80[_0x58a9ad('0x3f')]=_0x150365['user'][_0x58a9ad('0x58')],_0x46fc80['UserId']=_0x150365['user']['id'],_0x46fc80[_0x58a9ad('0x4d')]=!![],_0x46fc80[_0x58a9ad('0x1')]=moment()[_0x58a9ad('0x78')](_0x58a9ad('0x5c')),_0x46fc80['calleridnum']=_0x5c4cd7[_0x58a9ad('0x48')],_0x46fc80[_0x58a9ad('0x3')]=_0x5c4cd7['VoiceQueueId']?'queue':_0x58a9ad('0x5f'),db[_0x58a9ad('0x63')][_0x58a9ad('0xe')]({'where':{'id':_0x46fc80[_0x58a9ad('0x36')]},'attributes':['firstName','lastName']})[_0x58a9ad('0x20')](function(_0x355566){const _0xcbe879=_0x58a9ad;!_[_0xcbe879('0x3b')](_0x219469)&&!_[_0xcbe879('0x3b')](_0x355566[_0xcbe879('0x11')])&&(_0x46fc80[_0xcbe879('0x49')]=_0x355566[_0xcbe879('0x11')],!_[_0xcbe879('0x3b')](_0x355566[_0xcbe879('0x5b')])&&(_0x46fc80['calleridname']+='\x20'+_0x355566['lastName']));})[_0x58a9ad('0x4c')](function(){const _0x2845f7=_0x58a9ad;return db[_0x2845f7('0x4a')][_0x2845f7('0x25')](_0x46fc80);});})[_0x3c4196('0x20')](function(){const _0x1acb85=_0x3c4196;return _0x219469[_0x1acb85('0x6e')](0xcc)['end']();})[_0x3c4196('0x74')](handleError(_0x219469,null));},exports[_0x5be55d('0x45')]=function(_0x1d8379,_0x41e59b){const _0x577245=_0x5be55d;let _0x344689=[];return db[_0x577245('0x31')][_0x577245('0x6f')]()['then'](function(_0x386386){const _0x5afd58=_0x577245;return _0x344689=_[_0x5afd58('0x57')](_0x386386),_0x1d8379['user']['getVoiceQueues']({'where':{'type':_0x5afd58('0xf'),'dialActive':!![],'dialMethod':_0x5afd58('0x28')},'attributes':['id','dialOrderByScheduledAt'],'raw':!![]});})[_0x577245('0x20')](function(_0x1e244b){if(_0x1e244b&&_0x1e244b['length'])return db['sequelize']['transaction'](function(_0x3b5e29){const _0x5754e3=a137_0x5a45,_0x8b7f30={'active':![],'recallme':![],'scheduledAt':{[Op[_0x5754e3('0x50')]]:moment()[_0x5754e3('0x78')](_0x5754e3('0x5c'))},'VoiceQueueId':{[Op['in']]:_[_0x5754e3('0x2c')](_0x1e244b,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x1d8379[_0x5754e3('0x47')]['id']}]};let _0x451127=[];return _0x1d8379[_0x5754e3('0x27')][_0x5754e3('0x3e')]&&_0x1d8379['body']['direction']==='prev'?(!_[_0x5754e3('0x23')](_0x1d8379['body'][_0x5754e3('0x5')])&&(_0x8b7f30['id']={'$in':_0x1d8379[_0x5754e3('0x27')][_0x5754e3('0x5')]}),_0x451127=[[_0x5754e3('0x2a'),_0x5754e3('0x3a')],[_0x5754e3('0x62'),_0x1e244b[0x0]['dialOrderByScheduledAt']===_0x5754e3('0x3a')?'DESC':_0x5754e3('0x3a')],db[_0x5754e3('0x54')][_0x5754e3('0x40')](_0x5754e3('0x7')),['id','DESC']]):(!_['isEmpty'](_0x1d8379[_0x5754e3('0x27')][_0x5754e3('0x5')])&&(_0x8b7f30['id']={'$notIn':_0x1d8379[_0x5754e3('0x27')]['hopperIds']}),_0x451127=[[_0x5754e3('0x2a'),'DESC'],[_0x5754e3('0x62'),_0x1e244b[0x0][_0x5754e3('0x26')]],db['sequelize'][_0x5754e3('0x40')](_0x5754e3('0x1a')),['id',_0x5754e3('0x3a')]]),db['CmHopper'][_0x5754e3('0xe')]({'attributes':['id',_0x5754e3('0x53')],'where':_0x8b7f30,'order':_0x451127,'transaction':_0x3b5e29,'lock':_0x3b5e29['LOCK']['UPDATE'],'include':[{'model':db[_0x5754e3('0x31')],'as':_0x5754e3('0x32'),'attributes':_0x344689,'include':[{'model':db[_0x5754e3('0x51')],'as':_0x5754e3('0x71'),'attributes':['id',_0x5754e3('0x58')]}]},{'model':db['CmList'],'as':_0x5754e3('0x66'),'attributes':['id',_0x5754e3('0x58')]},{'model':db[_0x5754e3('0x10')],'as':_0x5754e3('0x35'),'attributes':['id',_0x5754e3('0x58'),_0x5754e3('0x37')]}]})[_0x5754e3('0x20')](function(_0x58a324){const _0xe3b021=_0x5754e3;if(_0x58a324)return _0x58a324[_0xe3b021('0x6a')]({'UserId':_0x1d8379[_0xe3b021('0x47')]['id']},{'transaction':_0x3b5e29});});});})[_0x577245('0x20')](handleEntityNotFound(_0x41e59b,null))[_0x577245('0x20')](respondWithResult(_0x41e59b,null))[_0x577245('0x74')](handleError(_0x41e59b,null));},exports[_0x5be55d('0x6')]=function(_0x47482d,_0xa7f083){const _0x216dbd=_0x5be55d;return _0x47482d[_0x216dbd('0x47')]['getVoiceQueues']({'where':{'type':'outbound','dialActive':!![],'dialMethod':_0x216dbd('0x28')},'attributes':['id'],'raw':!![]})['then'](function(_0x30351d){const _0x2bbd7d=_0x216dbd;if(_0x30351d&&_0x30351d[_0x2bbd7d('0x2e')])return db['CmHopper'][_0x2bbd7d('0x65')]({'where':{'active':![],'recallme':![],'scheduledAt':{[Op['lte']]:moment()[_0x2bbd7d('0x78')](_0x2bbd7d('0x5c'))},'VoiceQueueId':{[Op['in']]:_[_0x2bbd7d('0x2c')](_0x30351d,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x47482d[_0x2bbd7d('0x47')]['id']}]}});return 0x0;})[_0x216dbd('0x20')](function(_0x992060){const _0x1d7c39=_0x216dbd;if(!_[_0x1d7c39('0x3b')](_0x992060)&&_[_0x1d7c39('0x69')](_0x992060))return _0xa7f083['status'](0xc8)['json']({'contacts':_0x992060});else logger[_0x1d7c39('0x24')]('CmHopper,\x20%s,\x20%s,\x20%s','getOpenContacts',0x194,_0x1d7c39('0x3d')),_0xa7f083[_0x1d7c39('0x13')](0x194);})[_0x216dbd('0x74')](handleError(_0xa7f083,null));}; \ No newline at end of file +const a137_0x1d02=['UserId','$and','$overlap','sendStatus','fields','update','state','transaction','end','pick','format','$or','model','send','campaigntype','LOCK','$any','create','direction','include','filter','name','offset','findAll','undefined','key','calleridname','destroy','entity\x20not\x20found','membername','$eq','COALESCE(CmHopper.UserId,\x200)\x20ASC','CmHopperFinal','includeAll','ivr','json','CampaignId','sort','getPreview','user','dialOrderByScheduledAt','$like','$lt','CmCompany','../../mysqldb','queue','UPDATE','scheduledat','COALESCE(CmHopper.UserId,\x200)\x20DESC','priority','type','order','query','body','updatedAt','lodash','$notLike','$contained','where','firstName','show','ContactId','$in','VoiceQueue','CmList','merge','Queue','Company','keys','omit','List','deleted','set','describe','getVoiceQueues','statedesc','$between','scheduledAt','lte','nolimit','count','status','Campaign','$iLike','outbound','isNil','filters','$not','VoiceQueueId','preview','ASC','deletedat','api','attributes','limit','campaign','$contains','options','literal','calleridnum','CmContac','length','getOpenContacts','findOne','concat','CmHopper','$notILike','$lte','CmHopper,\x20%s,\x20%s,\x20%s','Contact','sequelize','YYYY-MM-DD\x20HH:mm:ss','intersection','rawAttributes','DESC','then','index','moment','error','hopperIds','lastName','params','map','catch','$gt','$notBetween'];(function(_0x6143c7,_0x1d02e8){const _0x187431=function(_0x469853){while(--_0x469853){_0x6143c7['push'](_0x6143c7['shift']());}};_0x187431(++_0x1d02e8);}(a137_0x1d02,0xd5));const a137_0x1874=function(_0x6143c7,_0x1d02e8){_0x6143c7=_0x6143c7-0x0;let _0x187431=a137_0x1d02[_0x6143c7];return _0x187431;};const _0x38bbdf=a137_0x1874;'use strict';const moment=require(_0x38bbdf('0x1e')),_=require(_0x38bbdf('0x5e')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x38bbdf('0x5')),db=require(_0x38bbdf('0x53'))['db'],{Op}=require('sequelize');function respondWithResult(_0x469853,_0x25d335){return _0x25d335=_0x25d335||0xc8,function(_0x370a64){const _0x4aaff9=a137_0x1874;if(_0x370a64)return _0x469853[_0x4aaff9('0x78')](_0x25d335)[_0x4aaff9('0x4a')](_0x370a64);};}function respondWithFilteredResult(_0x446c11,_0x25eaa7){return function(_0x3a556c){const _0x52a939=a137_0x1874;if(_0x3a556c){const _0x1f1390=_0x3a556c[_0x52a939('0x77')],_0x50b498=_0x25eaa7[_0x52a939('0x3d')];let _0x425bb7=_0x25eaa7[_0x52a939('0x3d')]+_0x25eaa7[_0x52a939('0x7')],_0xeaaa04;return _0x425bb7>=_0x1f1390?(_0x425bb7=_0x1f1390,_0xeaaa04=0xc8):_0xeaaa04=0xce,_0x446c11[_0x52a939('0x78')](_0xeaaa04),_0x446c11[_0x52a939('0x6f')]('Content-Range',_0x50b498+'-'+_0x425bb7+'/'+_0x1f1390)['json'](_0x3a556c);}return null;};}function saveUpdates(_0x52e270){return function(_0x780196){const _0x240681=a137_0x1874;if(_0x780196)return _0x780196[_0x240681('0x2c')](_0x52e270)[_0x240681('0x1c')](function(_0x2b14b6){return _0x2b14b6;});return null;};}function handleEntityNotFound(_0x49e447){return function(_0x821e28){const _0x51d426=a137_0x1874;return!_0x821e28&&_0x49e447[_0x51d426('0x2a')](0x194),_0x821e28;};}function handleError(_0x21dd91,_0x1c1ac1){return _0x1c1ac1=_0x1c1ac1||0x1f4,function(_0x48f184){const _0x3b9972=a137_0x1874;logger['error'](_0x48f184['stack']),_0x48f184[_0x3b9972('0x3c')]&&delete _0x48f184[_0x3b9972('0x3c')],_0x21dd91[_0x3b9972('0x78')](_0x1c1ac1)[_0x3b9972('0x34')](_0x48f184);};}exports[_0x38bbdf('0x1d')]=function(_0x384b0e,_0x59e09b){const _0x1f1e4f=_0x38bbdf;let _0x53a9ed={};const _0x2bdd2a={},_0x51fa7c={'count':0x0,'rows':[]},_0x307e71=_[_0x1f1e4f('0x23')](db[_0x1f1e4f('0x12')][_0x1f1e4f('0x1a')],function(_0x127f3c){const _0x1c14fd=_0x1f1e4f;return{'name':_0x127f3c['fieldName'],'type':_0x127f3c[_0x1c14fd('0x59')][_0x1c14fd('0x40')]};});_0x2bdd2a[_0x1f1e4f('0x33')]=_[_0x1f1e4f('0x23')](_0x307e71,'name'),_0x2bdd2a[_0x1f1e4f('0x5b')]=_['keys'](_0x384b0e['query']),_0x2bdd2a[_0x1f1e4f('0x7d')]=_['intersection'](_0x2bdd2a[_0x1f1e4f('0x33')],_0x2bdd2a[_0x1f1e4f('0x5b')]),_0x2bdd2a['filters']=_[_0x1f1e4f('0x11')](_0x2bdd2a[_0x1f1e4f('0x7d')],[_0x1f1e4f('0x28'),_0x1f1e4f('0x32'),_0x1f1e4f('0x25'),'$gte',_0x1f1e4f('0x51'),_0x1f1e4f('0x14'),'$ne',_0x1f1e4f('0x45'),_0x1f1e4f('0x0'),_0x1f1e4f('0x73'),_0x1f1e4f('0x26'),_0x1f1e4f('0x65'),'$notIn',_0x1f1e4f('0x50'),_0x1f1e4f('0x5f'),_0x1f1e4f('0x7a'),_0x1f1e4f('0x13'),_0x1f1e4f('0x50'),_0x1f1e4f('0x29'),_0x1f1e4f('0x9'),_0x1f1e4f('0x60'),_0x1f1e4f('0x37')]),_0x53a9ed['attributes']=_['intersection'](_0x2bdd2a[_0x1f1e4f('0x33')],qs['fields'](_0x384b0e[_0x1f1e4f('0x5b')][_0x1f1e4f('0x2b')])),_0x53a9ed['attributes']=_0x53a9ed[_0x1f1e4f('0x6')]['length']?_0x53a9ed[_0x1f1e4f('0x6')]:_0x2bdd2a[_0x1f1e4f('0x33')];typeof _0x384b0e[_0x1f1e4f('0x5b')][_0x1f1e4f('0x76')]===_0x1f1e4f('0x3f')&&(_0x53a9ed[_0x1f1e4f('0x7')]=qs[_0x1f1e4f('0x7')](_0x384b0e['query'][_0x1f1e4f('0x7')]),_0x53a9ed[_0x1f1e4f('0x3d')]=qs[_0x1f1e4f('0x3d')](_0x384b0e[_0x1f1e4f('0x5b')][_0x1f1e4f('0x3d')]));_0x53a9ed[_0x1f1e4f('0x5a')]=qs[_0x1f1e4f('0x4c')](_0x384b0e[_0x1f1e4f('0x5b')][_0x1f1e4f('0x4c')]),_0x53a9ed[_0x1f1e4f('0x61')]=qs['filters'](_[_0x1f1e4f('0x30')](_0x384b0e['query'],_0x2bdd2a[_0x1f1e4f('0x7d')]),_0x307e71);_0x384b0e[_0x1f1e4f('0x5b')][_0x1f1e4f('0x3b')]&&(_0x53a9ed[_0x1f1e4f('0x61')]=_[_0x1f1e4f('0x68')](_0x53a9ed[_0x1f1e4f('0x61')],{[Op['or']]:_[_0x1f1e4f('0x23')](_0x307e71,function(_0x26fae7){const _0x1c7b73=_0x1f1e4f;if(_0x26fae7[_0x1c7b73('0x59')]!=='VIRTUAL'){const _0xfa759={};return _0xfa759[_0x26fae7[_0x1c7b73('0x3c')]]={[Op['like']]:'%'+_0x384b0e[_0x1c7b73('0x5b')][_0x1c7b73('0x3b')]+'%'},_0xfa759;}})}));_0x53a9ed=_[_0x1f1e4f('0x68')]({},_0x53a9ed,_0x384b0e[_0x1f1e4f('0xa')]);const _0x1c6c22={'where':_0x53a9ed[_0x1f1e4f('0x61')]};return db['CmHopper']['count'](_0x1c6c22)[_0x1f1e4f('0x1c')](function(_0x58b898){const _0x544db8=_0x1f1e4f;return _0x51fa7c[_0x544db8('0x77')]=_0x58b898,_0x384b0e[_0x544db8('0x5b')]['includeAll']&&(_0x53a9ed['include']=[{'all':!![]}]),db[_0x544db8('0x12')][_0x544db8('0x3e')](_0x53a9ed);})[_0x1f1e4f('0x1c')](function(_0x531c54){return _0x51fa7c['rows']=_0x531c54,_0x51fa7c;})[_0x1f1e4f('0x1c')](respondWithFilteredResult(_0x59e09b,_0x53a9ed))[_0x1f1e4f('0x24')](handleError(_0x59e09b,null));},exports[_0x38bbdf('0x63')]=function(_0x702203,_0x1c1fac){const _0x651308=_0x38bbdf;let _0x21b1b6={'raw':!![],'where':{'id':_0x702203[_0x651308('0x22')]['id']}};const _0x3af141={};return _0x3af141['model']=_[_0x651308('0x6b')](db['CmHopper'][_0x651308('0x1a')]),_0x3af141[_0x651308('0x5b')]=_[_0x651308('0x6b')](_0x702203[_0x651308('0x5b')]),_0x3af141[_0x651308('0x7d')]=_[_0x651308('0x19')](_0x3af141[_0x651308('0x33')],_0x3af141[_0x651308('0x5b')]),_0x21b1b6[_0x651308('0x6')]=_[_0x651308('0x19')](_0x3af141[_0x651308('0x33')],qs[_0x651308('0x2b')](_0x702203[_0x651308('0x5b')]['fields'])),_0x21b1b6[_0x651308('0x6')]=_0x21b1b6[_0x651308('0x6')]['length']?_0x21b1b6['attributes']:_0x3af141[_0x651308('0x33')],_0x702203['query'][_0x651308('0x48')]&&(_0x21b1b6[_0x651308('0x3a')]=[{'all':!![]}]),_0x21b1b6=_[_0x651308('0x68')]({},_0x21b1b6,_0x702203[_0x651308('0xa')]),db[_0x651308('0x12')][_0x651308('0x10')](_0x21b1b6)[_0x651308('0x1c')](handleEntityNotFound(_0x1c1fac,null))[_0x651308('0x1c')](respondWithResult(_0x1c1fac,null))['catch'](handleError(_0x1c1fac,null));},exports['create']=function(_0x3c056d,_0x227fd9){const _0x561865=_0x38bbdf;return db['CmHopper']['create'](_0x3c056d[_0x561865('0x5c')],{})['then'](respondWithResult(_0x227fd9,0xc9))[_0x561865('0x24')](handleError(_0x227fd9,null));},exports['update']=function(_0x3dd58b,_0x3230f1){const _0x5c3e69=_0x38bbdf;return _0x3dd58b['body']['id']&&delete _0x3dd58b[_0x5c3e69('0x5c')]['id'],db['CmHopper'][_0x5c3e69('0x10')]({'where':{'id':_0x3dd58b[_0x5c3e69('0x22')]['id']}})[_0x5c3e69('0x1c')](handleEntityNotFound(_0x3230f1,null))[_0x5c3e69('0x1c')](saveUpdates(_0x3dd58b[_0x5c3e69('0x5c')],null))[_0x5c3e69('0x1c')](respondWithResult(_0x3230f1,null))[_0x5c3e69('0x24')](handleError(_0x3230f1,null));},exports[_0x38bbdf('0x70')]=function(_0x422357,_0x15dd8f){const _0x1d46e1=_0x38bbdf;return db[_0x1d46e1('0x12')]['describe']()[_0x1d46e1('0x1c')](respondWithResult(_0x15dd8f,null))[_0x1d46e1('0x24')](handleError(_0x15dd8f,null));},exports[_0x38bbdf('0x42')]=function(_0x23a827,_0x35e0cc){const _0x1b453b=_0x38bbdf;let _0x983bf1;return db[_0x1b453b('0x12')][_0x1b453b('0x10')]({'where':{'id':_0x23a827[_0x1b453b('0x22')]['id']}})[_0x1b453b('0x1c')](handleEntityNotFound(_0x35e0cc,null))['then'](function(_0x2531fd){if(_0x2531fd)return _0x2531fd['destroy']()['then'](function(_0x55fe22){return _0x55fe22;});})['then'](function(_0x486a2d){const _0x1f4228=_0x1b453b;_0x983bf1=_0x486a2d;if(_0x486a2d){if(_0x486a2d['VoiceQueueId']||_0x486a2d[_0x1f4228('0x4b')])return db[_0x486a2d[_0x1f4228('0x1')]?_0x1f4228('0x66'):_0x1f4228('0x79')][_0x1f4228('0x10')]({'where':{'id':_0x486a2d[_0x1f4228('0x1')]?_0x486a2d[_0x1f4228('0x1')]:_0x486a2d[_0x1f4228('0x4b')]},'attributes':['id','name'],'raw':!![]});}})['then'](function(_0x242990){const _0x3c4d42=_0x1b453b,_0x48538a={};if(_0x242990)return _['merge'](_0x48538a,_[_0x3c4d42('0x6c')](_0x983bf1['dataValues'],['createdAt',_0x3c4d42('0x5d'),'id'])),_0x48538a[_0x3c4d42('0x2d')]=0x15,_0x48538a[_0x3c4d42('0x72')]='deleted',_0x48538a[_0x3c4d42('0x8')]=_0x242990[_0x3c4d42('0x3c')],_0x48538a[_0x3c4d42('0x44')]=_0x23a827[_0x3c4d42('0x4e')][_0x3c4d42('0x3c')],_0x48538a[_0x3c4d42('0x27')]=_0x23a827[_0x3c4d42('0x4e')]['id'],_0x48538a[_0x3c4d42('0x6e')]=!![],_0x48538a[_0x3c4d42('0x4')]=moment()[_0x3c4d42('0x31')](_0x3c4d42('0x18')),_0x48538a[_0x3c4d42('0xc')]=_0x983bf1['phone'],_0x48538a[_0x3c4d42('0x35')]=_0x983bf1[_0x3c4d42('0x1')]?_0x3c4d42('0x54'):_0x3c4d42('0x49'),db[_0x3c4d42('0xd')][_0x3c4d42('0x10')]({'where':{'id':_0x48538a[_0x3c4d42('0x64')]},'attributes':[_0x3c4d42('0x62'),'lastName']})[_0x3c4d42('0x1c')](function(_0x231014){const _0x24b00f=_0x3c4d42;!_[_0x24b00f('0x7c')](_0x35e0cc)&&!_[_0x24b00f('0x7c')](_0x231014['firstName'])&&(_0x48538a[_0x24b00f('0x41')]=_0x231014[_0x24b00f('0x62')],!_[_0x24b00f('0x7c')](_0x231014[_0x24b00f('0x21')])&&(_0x48538a[_0x24b00f('0x41')]+='\x20'+_0x231014['lastName']));})['finally'](function(){const _0x2323b7=_0x3c4d42;return db[_0x2323b7('0x47')][_0x2323b7('0x38')](_0x48538a);});})[_0x1b453b('0x1c')](function(){const _0x18966c=_0x1b453b;return _0x35e0cc['status'](0xcc)[_0x18966c('0x2f')]();})['catch'](handleError(_0x35e0cc,null));},exports[_0x38bbdf('0x4d')]=function(_0x529e10,_0x57e759){const _0xe47d5=_0x38bbdf;let _0x21ec7e=[];return db['CmContact'][_0xe47d5('0x70')]()[_0xe47d5('0x1c')](function(_0x3d2c3f){const _0x17113c=_0xe47d5;return _0x21ec7e=_[_0x17113c('0x6b')](_0x3d2c3f),_0x529e10['user'][_0x17113c('0x71')]({'where':{'type':_0x17113c('0x7b'),'dialActive':!![],'dialMethod':_0x17113c('0x2')},'attributes':['id',_0x17113c('0x4f')],'raw':!![]});})['then'](function(_0xc45744){const _0x5a4652=_0xe47d5;if(_0xc45744&&_0xc45744[_0x5a4652('0xe')])return db[_0x5a4652('0x17')][_0x5a4652('0x2e')](function(_0x23e781){const _0x309ca8=_0x5a4652,_0xa85f16={'active':![],'recallme':![],'scheduledAt':{[Op[_0x309ca8('0x75')]]:moment()['format'](_0x309ca8('0x18'))},'VoiceQueueId':{[Op['in']]:_[_0x309ca8('0x23')](_0xc45744,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x529e10[_0x309ca8('0x4e')]['id']}]};let _0x1f9a32=[];return _0x529e10['body'][_0x309ca8('0x39')]&&_0x529e10[_0x309ca8('0x5c')]['direction']==='prev'?(!_['isEmpty'](_0x529e10[_0x309ca8('0x5c')]['hopperIds'])&&(_0xa85f16['id']={'$in':_0x529e10[_0x309ca8('0x5c')]['hopperIds']}),_0x1f9a32=[[_0x309ca8('0x58'),_0x309ca8('0x3')],[_0x309ca8('0x74'),_0xc45744[0x0][_0x309ca8('0x4f')]===_0x309ca8('0x3')?_0x309ca8('0x1b'):_0x309ca8('0x3')],db[_0x309ca8('0x17')][_0x309ca8('0xb')](_0x309ca8('0x46')),['id',_0x309ca8('0x1b')]]):(!_['isEmpty'](_0x529e10['body'][_0x309ca8('0x20')])&&(_0xa85f16['id']={'$notIn':_0x529e10[_0x309ca8('0x5c')][_0x309ca8('0x20')]}),_0x1f9a32=[['priority',_0x309ca8('0x1b')],[_0x309ca8('0x74'),_0xc45744[0x0][_0x309ca8('0x4f')]],db[_0x309ca8('0x17')][_0x309ca8('0xb')](_0x309ca8('0x57')),['id',_0x309ca8('0x3')]]),db[_0x309ca8('0x12')]['findOne']({'attributes':['id',_0x309ca8('0x56')],'where':_0xa85f16,'order':_0x1f9a32,'transaction':_0x23e781,'lock':_0x23e781[_0x309ca8('0x36')][_0x309ca8('0x55')],'include':[{'model':db['CmContact'],'as':_0x309ca8('0x16'),'attributes':_0x21ec7e,'include':[{'model':db[_0x309ca8('0x52')],'as':_0x309ca8('0x6a'),'attributes':['id',_0x309ca8('0x3c')]}]},{'model':db[_0x309ca8('0x67')],'as':_0x309ca8('0x6d'),'attributes':['id',_0x309ca8('0x3c')]},{'model':db[_0x309ca8('0x66')],'as':_0x309ca8('0x69'),'attributes':['id',_0x309ca8('0x3c'),'dialActive']}]})[_0x309ca8('0x1c')](function(_0x2e184c){const _0x52a8ae=_0x309ca8;if(_0x2e184c)return _0x2e184c[_0x52a8ae('0x2c')]({'UserId':_0x529e10[_0x52a8ae('0x4e')]['id']},{'transaction':_0x23e781});});});})[_0xe47d5('0x1c')](handleEntityNotFound(_0x57e759,null))['then'](respondWithResult(_0x57e759,null))[_0xe47d5('0x24')](handleError(_0x57e759,null));},exports['getOpenContacts']=function(_0x58316b,_0x4fa727){const _0x4b463c=_0x38bbdf;return _0x58316b[_0x4b463c('0x4e')][_0x4b463c('0x71')]({'where':{'type':_0x4b463c('0x7b'),'dialActive':!![],'dialMethod':'preview'},'attributes':['id'],'raw':!![]})[_0x4b463c('0x1c')](function(_0x4ca2b0){const _0x3d7570=_0x4b463c;if(_0x4ca2b0&&_0x4ca2b0[_0x3d7570('0xe')])return db['CmHopper'][_0x3d7570('0x77')]({'where':{'active':![],'recallme':![],'scheduledAt':{[Op[_0x3d7570('0x75')]]:moment()['format'](_0x3d7570('0x18'))},'VoiceQueueId':{[Op['in']]:_[_0x3d7570('0x23')](_0x4ca2b0,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x58316b[_0x3d7570('0x4e')]['id']}]}});return 0x0;})[_0x4b463c('0x1c')](function(_0x283316){const _0x36a79f=_0x4b463c;if(!_['isNil'](_0x283316)&&_['isNumber'](_0x283316))return _0x4fa727['status'](0xc8)['json']({'contacts':_0x283316});else logger[_0x36a79f('0x1f')](_0x36a79f('0x15'),_0x36a79f('0xf'),0x194,_0x36a79f('0x43')),_0x4fa727['sendStatus'](0x194);})[_0x4b463c('0x24')](handleError(_0x4fa727,null));}; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.model.js b/server/api/cmHopper/cmHopper.model.js index ba2cc42..aafe5d0 100644 --- a/server/api/cmHopper/cmHopper.model.js +++ b/server/api/cmHopper/cmHopper.model.js @@ -1 +1 @@ -const a138_0x4b72=['phone','exports','priority','cm_hopper','CmHopper','scheduledat'];(function(_0x358cad,_0x4b72a3){const _0x311a1e=function(_0x3d992e){while(--_0x3d992e){_0x358cad['push'](_0x358cad['shift']());}};_0x311a1e(++_0x4b72a3);}(a138_0x4b72,0x114));const a138_0x311a=function(_0x358cad,_0x4b72a3){_0x358cad=_0x358cad-0x0;let _0x311a1e=a138_0x4b72[_0x358cad];return _0x311a1e;};const _0x358460=a138_0x311a;'use strict';const attributes=require('./cmHopper.attributes');module[_0x358460('0x1')]=function(_0x3d992e){const _0xd0c5c7=_0x358460,_0x42192d=_0x3d992e['define'](_0xd0c5c7('0x4'),attributes,{'tableName':_0xd0c5c7('0x3'),'paranoid':![],'indexes':[{'name':_0xd0c5c7('0x5'),'fields':[_0xd0c5c7('0x5')]},{'name':_0xd0c5c7('0x0'),'fields':[_0xd0c5c7('0x0')]},{'name':_0xd0c5c7('0x2'),'fields':['priority']}],'timestamps':!![]});return _0x42192d;}; \ No newline at end of file +const a138_0x5332=['define','CmHopper','./cmHopper.attributes','cm_hopper','phone','priority','exports','scheduledat'];(function(_0x2e0226,_0x533216){const _0x3ef084=function(_0xdf2e9a){while(--_0xdf2e9a){_0x2e0226['push'](_0x2e0226['shift']());}};_0x3ef084(++_0x533216);}(a138_0x5332,0x149));const a138_0x3ef0=function(_0x2e0226,_0x533216){_0x2e0226=_0x2e0226-0x0;let _0x3ef084=a138_0x5332[_0x2e0226];return _0x3ef084;};const _0x47e418=a138_0x3ef0;'use strict';const attributes=require(_0x47e418('0x1'));module[_0x47e418('0x5')]=function(_0xdf2e9a){const _0x4c8acc=_0x47e418,_0x131903=_0xdf2e9a[_0x4c8acc('0x7')](_0x4c8acc('0x0'),attributes,{'tableName':_0x4c8acc('0x2'),'paranoid':![],'indexes':[{'name':_0x4c8acc('0x6'),'fields':[_0x4c8acc('0x6')]},{'name':_0x4c8acc('0x3'),'fields':[_0x4c8acc('0x3')]},{'name':_0x4c8acc('0x4'),'fields':['priority']}],'timestamps':!![]});return _0x131903;}; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.rpc.js b/server/api/cmHopper/cmHopper.rpc.js index 0795c9c..816f127 100644 --- a/server/api/cmHopper/cmHopper.rpc.js +++ b/server/api/cmHopper/cmHopper.rpc.js @@ -1 +1 @@ -const a139_0x8ae3=['GetContactDialer','message','LOCK','describe','format','destroy','error','limit','info','`scheduledat`\x20>=\x20','CmHopperFinal','UserId','ShowCmHopper','../../mysqldb','GetCmHopperPreview','push','Contact','raw','body','model','all','length','UpdateCmHopper','CountReScheduled','\x22%s\x22','options','GetCmHopper','UPDATE','YYYY-MM-DD\x20HH:mm:ss','../../config/logger','includes','sequelize','include','GetContactRecallMe','MoveContactManagedDialer','transaction','Agent','stringify','map','update','CmContact','literal','findAll','then','where','order','\x20,\x201,\x20null','attributes','debug','catch','lodash','name','CreateCmHopper','keys','CmHopper','COUNT','DestroyCmHopper'];(function(_0x59568b,_0x8ae353){const _0x5acb7e=function(_0xafb648){while(--_0xafb648){_0x59568b['push'](_0x59568b['shift']());}};_0x5acb7e(++_0x8ae353);}(a139_0x8ae3,0xcd));const a139_0x5acb=function(_0x59568b,_0x8ae353){_0x59568b=_0x59568b-0x0;let _0x5acb7e=a139_0x8ae3[_0x59568b];return _0x5acb7e;};const _0x364873=a139_0x5acb;'use strict';const _=require(_0x364873('0x10')),util=require('util'),moment=require('moment'),db=require(_0x364873('0x24'))['db'],logger=require(_0x364873('0x34'))('rpc');exports[_0x364873('0x31')]=function(_0xafb648){const _0x88a3ee=this;return new Promise(function(_0x3fb1e6,_0x2e9e7e){const _0x2794f7=a139_0x5acb;return db[_0x2794f7('0x14')][_0x2794f7('0x8')]({'raw':_0xafb648[_0x2794f7('0x30')]?_0xafb648[_0x2794f7('0x30')][_0x2794f7('0x28')]===undefined?!![]:![]:!![],'where':_0xafb648[_0x2794f7('0x30')]?_0xafb648[_0x2794f7('0x30')]['where']||null:null,'attributes':_0xafb648[_0x2794f7('0x30')]?_0xafb648['options']['attributes']||null:null,'limit':_0xafb648['options']?_0xafb648[_0x2794f7('0x30')]['limit']||null:null,'include':_0xafb648['options']?_0xafb648[_0x2794f7('0x30')][_0x2794f7('0x37')]?_[_0x2794f7('0x4')](_0xafb648[_0x2794f7('0x30')][_0x2794f7('0x37')],function(_0x3d90bf){const _0x7051f=_0x2794f7;return{'model':db[_0x3d90bf[_0x7051f('0x2a')]],'as':_0x3d90bf['as'],'attributes':_0x3d90bf['attributes'],'include':_0x3d90bf['include']?_[_0x7051f('0x4')](_0x3d90bf[_0x7051f('0x37')],function(_0x4c5033){const _0x394598=_0x7051f;return{'model':db[_0x4c5033[_0x394598('0x2a')]],'as':_0x4c5033['as'],'attributes':_0x4c5033[_0x394598('0xd')],'include':_0x4c5033[_0x394598('0x37')]?_[_0x394598('0x4')](_0x4c5033[_0x394598('0x37')],function(_0xd5a29e){const _0x14d388=_0x394598;return{'model':db[_0xd5a29e[_0x14d388('0x2a')]],'as':_0xd5a29e['as'],'attributes':_0xd5a29e[_0x14d388('0xd')]};}):[]};}):[]};}):[]:[]})[_0x2794f7('0x9')](function(_0x4b203a){const _0x31be95=_0x2794f7;logger[_0x31be95('0x1f')](_0x31be95('0x31'),_0xafb648),logger['debug'](_0x31be95('0x31'),_0xafb648,JSON[_0x31be95('0x3')](_0x4b203a)),_0x3fb1e6(_0x4b203a);})[_0x2794f7('0xf')](function(_0x3f4406){const _0x567ab2=_0x2794f7;logger[_0x567ab2('0x1d')](_0x567ab2('0x31'),_0x3f4406['message'],_0xafb648),_0x2e9e7e(_0x88a3ee[_0x567ab2('0x1d')](0x1f4,_0x3f4406[_0x567ab2('0x18')]));});});},exports['ShowCmHopper']=function(_0x23695e){const _0xfd33ef=this;return new Promise(function(_0x4a9c09,_0x4c9693){const _0x426d9e=a139_0x5acb;return db[_0x426d9e('0x14')]['findOne']({'raw':_0x23695e[_0x426d9e('0x30')]?_0x23695e[_0x426d9e('0x30')][_0x426d9e('0x28')]===undefined?!![]:![]:!![],'where':_0x23695e[_0x426d9e('0x30')]?_0x23695e[_0x426d9e('0x30')][_0x426d9e('0xa')]||null:null,'attributes':_0x23695e['options']?_0x23695e[_0x426d9e('0x30')][_0x426d9e('0xd')]||null:null,'include':_0x23695e[_0x426d9e('0x30')]?_0x23695e['options'][_0x426d9e('0x37')]?_[_0x426d9e('0x4')](_0x23695e[_0x426d9e('0x30')][_0x426d9e('0x37')],function(_0x20fb72){const _0x5d0679=_0x426d9e;return{'model':db[_0x20fb72[_0x5d0679('0x2a')]],'as':_0x20fb72['as'],'attributes':_0x20fb72['attributes'],'include':_0x20fb72['include']?_[_0x5d0679('0x4')](_0x20fb72['include'],function(_0x33a0ea){const _0x4b1190=_0x5d0679;return{'model':db[_0x33a0ea['model']],'as':_0x33a0ea['as'],'attributes':_0x33a0ea[_0x4b1190('0xd')],'include':_0x33a0ea[_0x4b1190('0x37')]?_[_0x4b1190('0x4')](_0x33a0ea[_0x4b1190('0x37')],function(_0x185171){const _0x5b6ee7=_0x4b1190;return{'model':db[_0x185171[_0x5b6ee7('0x2a')]],'as':_0x185171['as'],'attributes':_0x185171[_0x5b6ee7('0xd')]};}):[]};}):[]};}):[]:[]})[_0x426d9e('0x9')](function(_0x49e23c){const _0x53a4e3=_0x426d9e;logger['info'](_0x53a4e3('0x23'),_0x23695e),logger[_0x53a4e3('0xe')](_0x53a4e3('0x23'),_0x23695e,JSON[_0x53a4e3('0x3')](_0x49e23c)),_0x4a9c09(_0x49e23c);})[_0x426d9e('0xf')](function(_0x3558a6){const _0x11ff8b=_0x426d9e;logger[_0x11ff8b('0x1d')]('ShowCmHopper',_0x3558a6[_0x11ff8b('0x18')],_0x23695e),_0x4c9693(_0xfd33ef[_0x11ff8b('0x1d')](0x1f4,_0x3558a6[_0x11ff8b('0x18')]));});});},exports[_0x364873('0x12')]=function(_0x45488f){const _0x566d88=this;return new Promise(function(_0x486391,_0x31ba46){const _0x2d6235=a139_0x5acb;return db[_0x2d6235('0x14')]['create'](_0x45488f[_0x2d6235('0x29')],{'raw':_0x45488f[_0x2d6235('0x30')]?_0x45488f['options'][_0x2d6235('0x28')]===undefined?!![]:![]:!![]})['then'](function(_0x59669b){const _0x352af5=_0x2d6235;logger[_0x352af5('0x1f')](_0x352af5('0x12'),_0x45488f),logger[_0x352af5('0xe')]('CreateCmHopper',_0x45488f,JSON[_0x352af5('0x3')](_0x59669b)),_0x486391(_0x59669b);})[_0x2d6235('0xf')](function(_0x1ba0ca){const _0xe2eeef=_0x2d6235;logger[_0xe2eeef('0x1d')](_0xe2eeef('0x12'),_0x1ba0ca[_0xe2eeef('0x18')],_0x45488f),_0x31ba46(_0x566d88[_0xe2eeef('0x1d')](0x1f4,_0x1ba0ca['message']));});});},exports[_0x364873('0x2d')]=function(_0x246e29){const _0x78734=this;return new Promise(function(_0x64c068,_0xa128d2){const _0x206c70=a139_0x5acb;return db[_0x206c70('0x14')]['update'](_0x246e29[_0x206c70('0x29')],{'raw':_0x246e29[_0x206c70('0x30')]?_0x246e29[_0x206c70('0x30')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x246e29[_0x206c70('0x30')]?_0x246e29['options']['where']||null:null,'attributes':_0x246e29[_0x206c70('0x30')]?_0x246e29[_0x206c70('0x30')][_0x206c70('0xd')]||null:null,'limit':_0x246e29[_0x206c70('0x30')]?_0x246e29[_0x206c70('0x30')][_0x206c70('0x1e')]||null:null})[_0x206c70('0x9')](function(_0x2f213a){const _0x228daf=_0x206c70;logger['info'](_0x228daf('0x2d'),_0x246e29),logger[_0x228daf('0xe')](_0x228daf('0x2d'),_0x246e29,JSON[_0x228daf('0x3')](_0x2f213a)),_0x64c068(_0x2f213a);})[_0x206c70('0xf')](function(_0x55222b){const _0x3734ad=_0x206c70;logger[_0x3734ad('0x1d')](_0x3734ad('0x2d'),_0x55222b[_0x3734ad('0x18')],_0x246e29),_0xa128d2(_0x78734[_0x3734ad('0x1d')](0x1f4,_0x55222b[_0x3734ad('0x18')]));});});},exports['DestroyCmHopper']=function(_0x41f7de){const _0x3a2c40=this;return new Promise(function(_0x32e3aa,_0x4a6351){const _0x4c6de2=a139_0x5acb;return db['CmHopper']['destroy']({'where':_0x41f7de[_0x4c6de2('0x30')]?_0x41f7de[_0x4c6de2('0x30')][_0x4c6de2('0xa')]||null:null})[_0x4c6de2('0x9')](function(_0xc51759){const _0x22143e=_0x4c6de2;logger['info'](_0x22143e('0x16'),_0x41f7de),logger[_0x22143e('0xe')]('DestroyCmHopper',_0x41f7de,JSON[_0x22143e('0x3')](_0xc51759)),_0x32e3aa(_0xc51759);})['catch'](function(_0x4e274f){const _0xeb3e65=_0x4c6de2;logger[_0xeb3e65('0x1d')](_0xeb3e65('0x16'),_0x4e274f[_0xeb3e65('0x18')],_0x41f7de),_0x4a6351(_0x3a2c40[_0xeb3e65('0x1d')](0x1f4,_0x4e274f['message']));});});},exports[_0x364873('0x17')]=function(_0x19b919){const _0x19518a=this;return new Promise(function(_0x224f3e,_0x3c4664){const _0x3687a9=a139_0x5acb;return db[_0x3687a9('0x6')]['describe']()[_0x3687a9('0x9')](function(_0x415c43){const _0x2aad38=_0x3687a9;return db[_0x2aad38('0x36')][_0x2aad38('0x1')](function(_0x104e29){const _0x2846a3=_0x2aad38;return db[_0x2846a3('0x14')][_0x2846a3('0x8')]({'where':_0x19b919[_0x2846a3('0x30')]?_0x19b919['options']['where']||null:null,'attributes':_0x19b919[_0x2846a3('0x30')]?_0x19b919[_0x2846a3('0x30')][_0x2846a3('0xd')]||null:null,'limit':_0x19b919['options']?_0x19b919[_0x2846a3('0x30')]['limit']||null:null,'order':_0x19b919[_0x2846a3('0x30')]?_0x19b919[_0x2846a3('0x30')][_0x2846a3('0xb')]||null:null,'transaction':_0x104e29,'lock':_0x104e29[_0x2846a3('0x19')][_0x2846a3('0x32')],'include':[{'model':db[_0x2846a3('0x6')],'as':_0x2846a3('0x27'),'attributes':_[_0x2846a3('0x13')](_0x415c43)},{'model':db['User'],'as':_0x2846a3('0x2'),'attributes':['id',_0x2846a3('0x11'),'voicePause']}]})[_0x2846a3('0x9')](function(_0x23d3d9){const _0x361162=_0x2846a3,_0x4e4075=[],_0x3b049f=[];for(let _0x82f7fa=0x0;_0x82f7fa<_0x23d3d9[_0x361162('0x2c')];_0x82f7fa+=0x1){!_0x3b049f[_0x361162('0x35')](_0x23d3d9[_0x82f7fa][_0x361162('0x22')])&&(_0x3b049f[_0x361162('0x26')](_0x23d3d9[_0x82f7fa][_0x361162('0x22')]),_0x4e4075[_0x361162('0x26')](_0x23d3d9[_0x82f7fa][_0x361162('0x5')](_0x19b919[_0x361162('0x29')],{'transaction':_0x104e29})));}return Promise[_0x361162('0x2b')](_0x4e4075);});})[_0x2aad38('0x9')](function(_0x346362){const _0x3ae09f=_0x2aad38;logger[_0x3ae09f('0x1f')](_0x3ae09f('0x17'),_0x19b919),logger[_0x3ae09f('0xe')](_0x3ae09f('0x17'),_0x19b919,JSON[_0x3ae09f('0x3')](_0x346362)),_0x224f3e(_0x346362);})[_0x2aad38('0xf')](function(_0x12fc2f){const _0x1bd014=_0x2aad38;logger[_0x1bd014('0x1d')]('GetContactDialer',_0x12fc2f[_0x1bd014('0x18')],_0x19b919),_0x3c4664(_0x19518a[_0x1bd014('0x1d')](0x1f4,_0x12fc2f['message']));});});});},exports[_0x364873('0x0')]=function(_0x221e7c){const _0x123339=this;return new Promise(function(_0xe0058e,_0x2d7e9c){const _0x349692=a139_0x5acb;return db[_0x349692('0x36')][_0x349692('0x1')](function(_0x46b2ef){const _0x3b4c3a=_0x349692;return db[_0x3b4c3a('0x21')]['create'](_0x221e7c[_0x3b4c3a('0x29')],{'raw':_0x221e7c[_0x3b4c3a('0x30')]?_0x221e7c[_0x3b4c3a('0x30')][_0x3b4c3a('0x28')]===undefined?!![]:![]:!![],'transaction':_0x46b2ef})[_0x3b4c3a('0x9')](function(){const _0x2b5235=_0x3b4c3a;return db[_0x2b5235('0x14')][_0x2b5235('0x1c')]({'where':_0x221e7c[_0x2b5235('0x30')]?_0x221e7c[_0x2b5235('0x30')]['where']||null:null,'transaction':_0x46b2ef});});})[_0x349692('0x9')](function(_0x3653b8){const _0x42a5e7=_0x349692;logger[_0x42a5e7('0x1f')](_0x42a5e7('0x0'),_0x221e7c),logger['debug']('MoveContactManagedDialer',_0x221e7c,JSON[_0x42a5e7('0x3')](_0x3653b8)),_0xe0058e(_0x3653b8);})['catch'](function(_0x6553e6){const _0x197cee=_0x349692;logger['error'](_0x197cee('0x0'),_0x6553e6[_0x197cee('0x18')],_0x221e7c),_0x2d7e9c(_0x123339[_0x197cee('0x1d')](0x1f4,_0x6553e6['message']));});});},exports[_0x364873('0x2e')]=function(_0x20a82b){const _0xe54da7=this;return new Promise(function(_0x562084,_0x2e936d){const _0x9db154=a139_0x5acb;return db[_0x9db154('0x14')][_0x9db154('0x8')]({'raw':_0x20a82b['options']?_0x20a82b[_0x9db154('0x30')][_0x9db154('0x28')]===undefined?!![]:![]:!![],'where':_0x20a82b['options']?_0x20a82b[_0x9db154('0x30')][_0x9db154('0xa')]||null:null,'attributes':[[db[_0x9db154('0x36')]['fn'](_0x9db154('0x15'),db[_0x9db154('0x36')]['fn']('IF',db['sequelize'][_0x9db154('0x7')](_0x9db154('0x20')+util['format'](_0x9db154('0x2f'),moment()[_0x9db154('0x1b')](_0x9db154('0x33')))+_0x9db154('0xc')))),'contactsRescheduled']]})[_0x9db154('0x9')](function(_0x452568){const _0x28f8d3=_0x9db154;logger['info'](_0x28f8d3('0x2e'),_0x20a82b),logger[_0x28f8d3('0xe')]('CountReScheduled',_0x20a82b,JSON[_0x28f8d3('0x3')](_0x452568)),_0x562084(_0x452568);})['catch'](function(_0x18cdc1){const _0x49e8c4=_0x9db154;logger[_0x49e8c4('0x1d')](_0x49e8c4('0x2e'),_0x18cdc1[_0x49e8c4('0x18')],_0x20a82b),_0x2e936d(_0xe54da7[_0x49e8c4('0x1d')](0x1f4,_0x18cdc1[_0x49e8c4('0x18')]));});});},exports[_0x364873('0x38')]=function(_0x501878){const _0x52a02a=this;return new Promise(function(_0x4d058d,_0x245cdf){const _0x1aef4c=a139_0x5acb;return db[_0x1aef4c('0x6')]['describe']()[_0x1aef4c('0x9')](function(){const _0x654913=_0x1aef4c;return db[_0x654913('0x36')][_0x654913('0x1')](function(_0x1b5376){const _0x295412=_0x654913;return db['CmHopper']['findAll']({'where':_0x501878['options']?_0x501878[_0x295412('0x30')][_0x295412('0xa')]||null:null,'attributes':_0x501878['options']?_0x501878[_0x295412('0x30')]['attributes']||null:null,'limit':0x1,'order':_0x501878[_0x295412('0x30')]?_0x501878[_0x295412('0x30')][_0x295412('0xb')]||null:null,'group':db[_0x295412('0x14')][_0x295412('0x22')],'transaction':_0x1b5376,'lock':_0x1b5376['LOCK']['UPDATE'],'include':_0x501878[_0x295412('0x30')]?_0x501878[_0x295412('0x30')][_0x295412('0x37')]?_[_0x295412('0x4')](_0x501878['options']['include'],function(_0x5cda74){const _0x2b02da=_0x295412;return{'model':db[_0x5cda74[_0x2b02da('0x2a')]],'as':_0x5cda74['as'],'attributes':_0x5cda74[_0x2b02da('0xd')],'include':_0x5cda74[_0x2b02da('0x37')]?_[_0x2b02da('0x4')](_0x5cda74[_0x2b02da('0x37')],function(_0x169f5c){const _0x200eeb=_0x2b02da;return{'model':db[_0x169f5c['model']],'as':_0x169f5c['as'],'attributes':_0x169f5c[_0x200eeb('0xd')],'include':_0x169f5c[_0x200eeb('0x37')]?_[_0x200eeb('0x4')](_0x169f5c[_0x200eeb('0x37')],function(_0x152cc7){const _0x24edbe=_0x200eeb;return{'model':db[_0x152cc7['model']],'as':_0x152cc7['as'],'attributes':_0x152cc7[_0x24edbe('0xd')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3419d2){const _0x2c624a=_0x295412,_0x4bdcb9=[];for(let _0x4d328c=0x0;_0x4d328c<_0x3419d2['length'];_0x4d328c+=0x1){_0x4bdcb9[_0x2c624a('0x26')](_0x3419d2[_0x4d328c][_0x2c624a('0x5')](_0x501878[_0x2c624a('0x29')],{'transaction':_0x1b5376}));}return Promise['all'](_0x4bdcb9);});})[_0x654913('0x9')](function(_0x8557e9){const _0x208764=_0x654913;logger[_0x208764('0x1f')]('GetContactRecallMe',_0x501878),logger['debug'](_0x208764('0x38'),_0x501878,JSON[_0x208764('0x3')](_0x8557e9)),_0x4d058d(_0x8557e9);})['catch'](function(_0x2b411e){const _0x3817d3=_0x654913;logger[_0x3817d3('0x1d')](_0x3817d3('0x38'),_0x2b411e[_0x3817d3('0x18')],_0x501878),_0x245cdf(_0x52a02a[_0x3817d3('0x1d')](0x1f4,_0x2b411e[_0x3817d3('0x18')]));});});});},exports[_0x364873('0x25')]=function(_0x3e4491){const _0x3503e8=this;return new Promise(function(_0x401ee7,_0x4035c8){const _0x4d558c=a139_0x5acb;db['CmContact'][_0x4d558c('0x1a')]()[_0x4d558c('0x9')](function(_0x5351f3){const _0x11b7ca=_0x4d558c;return db[_0x11b7ca('0x14')][_0x11b7ca('0x8')]({'raw':_0x3e4491[_0x11b7ca('0x30')]?_0x3e4491['options'][_0x11b7ca('0x28')]===undefined?!![]:![]:!![],'where':_0x3e4491[_0x11b7ca('0x30')]?_0x3e4491[_0x11b7ca('0x30')]['where']||null:null,'attributes':_0x3e4491['options']?_0x3e4491[_0x11b7ca('0x30')][_0x11b7ca('0xd')]||null:null,'limit':_0x3e4491['options']?_0x3e4491[_0x11b7ca('0x30')][_0x11b7ca('0x1e')]||null:null,'include':_0x3e4491[_0x11b7ca('0x30')]?_0x3e4491[_0x11b7ca('0x30')]['include']?_[_0x11b7ca('0x4')](_0x3e4491[_0x11b7ca('0x30')]['include'],function(_0x1c5666){const _0x304117=_0x11b7ca;return{'model':db[_0x1c5666[_0x304117('0x2a')]],'as':_0x1c5666['as'],'attributes':_0x1c5666['as']===_0x304117('0x27')?_[_0x304117('0x13')](_0x5351f3):_0x1c5666[_0x304117('0xd')],'include':_0x1c5666[_0x304117('0x37')]?_[_0x304117('0x4')](_0x1c5666[_0x304117('0x37')],function(_0x18b732){const _0x451336=_0x304117;return{'model':db[_0x18b732[_0x451336('0x2a')]],'as':_0x18b732['as'],'attributes':_0x18b732[_0x451336('0xd')],'include':_0x18b732['include']?_['map'](_0x18b732[_0x451336('0x37')],function(_0x33553c){const _0x202852=_0x451336;return{'model':db[_0x33553c[_0x202852('0x2a')]],'as':_0x33553c['as'],'attributes':_0x33553c['attributes']};}):[]};}):[]};}):[]:[]})[_0x11b7ca('0x9')](function(_0x29a9d9){const _0x56b4bb=_0x11b7ca;logger[_0x56b4bb('0x1f')](_0x56b4bb('0x31'),_0x3e4491),logger[_0x56b4bb('0xe')]('GetCmHopper',_0x3e4491,JSON[_0x56b4bb('0x3')](_0x29a9d9)),_0x401ee7(_0x29a9d9);})['catch'](function(_0x33612c){const _0x20aab1=_0x11b7ca;logger[_0x20aab1('0x1d')]('GetCmHopper',_0x33612c[_0x20aab1('0x18')],_0x3e4491),_0x4035c8(_0x3503e8[_0x20aab1('0x1d')](0x1f4,_0x33612c[_0x20aab1('0x18')]));});});});}; \ No newline at end of file +const a139_0x4079=['UserId','contactsRescheduled','then','length','voicePause','DestroyCmHopper','User','raw','literal','util','update','stringify','order','CountReScheduled','message','name','where','CreateCmHopper','COUNT','debug','UPDATE','Agent','catch','model','transaction','rpc','ShowCmHopper','CmContact','../../config/logger','sequelize','create','include','includes','keys','error','LOCK','info','GetContactRecallMe','CmHopper','options','findAll','attributes','YYYY-MM-DD\x20HH:mm:ss','map','push','destroy','GetContactDialer','GetCmHopper','\x22%s\x22','lodash','Contact','limit','describe','body','MoveContactManagedDialer','all','UpdateCmHopper'];(function(_0x316f75,_0x40793d){const _0x28be3f=function(_0xc7052f){while(--_0xc7052f){_0x316f75['push'](_0x316f75['shift']());}};_0x28be3f(++_0x40793d);}(a139_0x4079,0x107));const a139_0x28be=function(_0x316f75,_0x40793d){_0x316f75=_0x316f75-0x0;let _0x28be3f=a139_0x4079[_0x316f75];return _0x28be3f;};const _0x1c6bd4=a139_0x28be;'use strict';const _=require(_0x1c6bd4('0xe')),util=require(_0x1c6bd4('0x1f')),moment=require('moment'),db=require('../../mysqldb')['db'],logger=require(_0x1c6bd4('0x32'))(_0x1c6bd4('0x2f'));exports['GetCmHopper']=function(_0xc7052f){const _0x19b2d4=this;return new Promise(function(_0x32f4a5,_0x1f4c56){const _0x36449f=a139_0x28be;return db[_0x36449f('0x3')][_0x36449f('0x5')]({'raw':_0xc7052f[_0x36449f('0x4')]?_0xc7052f[_0x36449f('0x4')][_0x36449f('0x1d')]===undefined?!![]:![]:!![],'where':_0xc7052f[_0x36449f('0x4')]?_0xc7052f[_0x36449f('0x4')][_0x36449f('0x26')]||null:null,'attributes':_0xc7052f[_0x36449f('0x4')]?_0xc7052f[_0x36449f('0x4')][_0x36449f('0x6')]||null:null,'limit':_0xc7052f[_0x36449f('0x4')]?_0xc7052f[_0x36449f('0x4')]['limit']||null:null,'include':_0xc7052f[_0x36449f('0x4')]?_0xc7052f[_0x36449f('0x4')][_0x36449f('0x35')]?_[_0x36449f('0x8')](_0xc7052f[_0x36449f('0x4')][_0x36449f('0x35')],function(_0x5df686){const _0x57a1cc=_0x36449f;return{'model':db[_0x5df686[_0x57a1cc('0x2d')]],'as':_0x5df686['as'],'attributes':_0x5df686[_0x57a1cc('0x6')],'include':_0x5df686[_0x57a1cc('0x35')]?_[_0x57a1cc('0x8')](_0x5df686[_0x57a1cc('0x35')],function(_0x35c543){const _0x49b6e0=_0x57a1cc;return{'model':db[_0x35c543['model']],'as':_0x35c543['as'],'attributes':_0x35c543['attributes'],'include':_0x35c543[_0x49b6e0('0x35')]?_[_0x49b6e0('0x8')](_0x35c543['include'],function(_0x6ac564){const _0x126ad7=_0x49b6e0;return{'model':db[_0x6ac564['model']],'as':_0x6ac564['as'],'attributes':_0x6ac564[_0x126ad7('0x6')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x390ff3){const _0xf812b7=_0x36449f;logger[_0xf812b7('0x1')](_0xf812b7('0xc'),_0xc7052f),logger[_0xf812b7('0x29')](_0xf812b7('0xc'),_0xc7052f,JSON[_0xf812b7('0x21')](_0x390ff3)),_0x32f4a5(_0x390ff3);})[_0x36449f('0x2c')](function(_0x36c401){const _0xa71525=_0x36449f;logger[_0xa71525('0x38')](_0xa71525('0xc'),_0x36c401[_0xa71525('0x24')],_0xc7052f),_0x1f4c56(_0x19b2d4['error'](0x1f4,_0x36c401[_0xa71525('0x24')]));});});},exports[_0x1c6bd4('0x30')]=function(_0x1f3522){const _0x437704=this;return new Promise(function(_0x247992,_0x32913d){const _0x5f266b=a139_0x28be;return db['CmHopper']['findOne']({'raw':_0x1f3522[_0x5f266b('0x4')]?_0x1f3522[_0x5f266b('0x4')][_0x5f266b('0x1d')]===undefined?!![]:![]:!![],'where':_0x1f3522[_0x5f266b('0x4')]?_0x1f3522[_0x5f266b('0x4')][_0x5f266b('0x26')]||null:null,'attributes':_0x1f3522[_0x5f266b('0x4')]?_0x1f3522[_0x5f266b('0x4')]['attributes']||null:null,'include':_0x1f3522[_0x5f266b('0x4')]?_0x1f3522[_0x5f266b('0x4')][_0x5f266b('0x35')]?_[_0x5f266b('0x8')](_0x1f3522[_0x5f266b('0x4')][_0x5f266b('0x35')],function(_0x2fff4b){const _0xdd9d6b=_0x5f266b;return{'model':db[_0x2fff4b[_0xdd9d6b('0x2d')]],'as':_0x2fff4b['as'],'attributes':_0x2fff4b['attributes'],'include':_0x2fff4b[_0xdd9d6b('0x35')]?_['map'](_0x2fff4b[_0xdd9d6b('0x35')],function(_0x583097){const _0x1c39f5=_0xdd9d6b;return{'model':db[_0x583097[_0x1c39f5('0x2d')]],'as':_0x583097['as'],'attributes':_0x583097[_0x1c39f5('0x6')],'include':_0x583097[_0x1c39f5('0x35')]?_[_0x1c39f5('0x8')](_0x583097['include'],function(_0x1e9eeb){const _0x5a46ea=_0x1c39f5;return{'model':db[_0x1e9eeb['model']],'as':_0x1e9eeb['as'],'attributes':_0x1e9eeb[_0x5a46ea('0x6')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1bc72b){const _0x488d03=_0x5f266b;logger[_0x488d03('0x1')]('ShowCmHopper',_0x1f3522),logger[_0x488d03('0x29')](_0x488d03('0x30'),_0x1f3522,JSON[_0x488d03('0x21')](_0x1bc72b)),_0x247992(_0x1bc72b);})[_0x5f266b('0x2c')](function(_0x58b081){const _0xe73f17=_0x5f266b;logger[_0xe73f17('0x38')](_0xe73f17('0x30'),_0x58b081['message'],_0x1f3522),_0x32913d(_0x437704[_0xe73f17('0x38')](0x1f4,_0x58b081[_0xe73f17('0x24')]));});});},exports[_0x1c6bd4('0x27')]=function(_0x358de1){const _0x2661bb=this;return new Promise(function(_0x26063b,_0x132805){const _0x1bbb98=a139_0x28be;return db[_0x1bbb98('0x3')][_0x1bbb98('0x34')](_0x358de1[_0x1bbb98('0x12')],{'raw':_0x358de1[_0x1bbb98('0x4')]?_0x358de1[_0x1bbb98('0x4')][_0x1bbb98('0x1d')]===undefined?!![]:![]:!![]})['then'](function(_0x1dde24){const _0xac4ca0=_0x1bbb98;logger[_0xac4ca0('0x1')](_0xac4ca0('0x27'),_0x358de1),logger[_0xac4ca0('0x29')](_0xac4ca0('0x27'),_0x358de1,JSON[_0xac4ca0('0x21')](_0x1dde24)),_0x26063b(_0x1dde24);})[_0x1bbb98('0x2c')](function(_0x200eca){const _0x2e4fb8=_0x1bbb98;logger[_0x2e4fb8('0x38')](_0x2e4fb8('0x27'),_0x200eca[_0x2e4fb8('0x24')],_0x358de1),_0x132805(_0x2661bb[_0x2e4fb8('0x38')](0x1f4,_0x200eca[_0x2e4fb8('0x24')]));});});},exports[_0x1c6bd4('0x15')]=function(_0x44c885){const _0x587252=this;return new Promise(function(_0x20d4db,_0x210769){const _0x43e6f1=a139_0x28be;return db[_0x43e6f1('0x3')][_0x43e6f1('0x20')](_0x44c885[_0x43e6f1('0x12')],{'raw':_0x44c885[_0x43e6f1('0x4')]?_0x44c885[_0x43e6f1('0x4')][_0x43e6f1('0x1d')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x44c885['options']?_0x44c885[_0x43e6f1('0x4')]['where']||null:null,'attributes':_0x44c885['options']?_0x44c885[_0x43e6f1('0x4')][_0x43e6f1('0x6')]||null:null,'limit':_0x44c885[_0x43e6f1('0x4')]?_0x44c885[_0x43e6f1('0x4')][_0x43e6f1('0x10')]||null:null})['then'](function(_0x12b9fd){const _0x4d65da=_0x43e6f1;logger[_0x4d65da('0x1')]('UpdateCmHopper',_0x44c885),logger['debug'](_0x4d65da('0x15'),_0x44c885,JSON[_0x4d65da('0x21')](_0x12b9fd)),_0x20d4db(_0x12b9fd);})[_0x43e6f1('0x2c')](function(_0x2c62a8){const _0x4c7c83=_0x43e6f1;logger['error'](_0x4c7c83('0x15'),_0x2c62a8[_0x4c7c83('0x24')],_0x44c885),_0x210769(_0x587252['error'](0x1f4,_0x2c62a8[_0x4c7c83('0x24')]));});});},exports['DestroyCmHopper']=function(_0x18629c){const _0x1e7031=this;return new Promise(function(_0x2013fd,_0x5cc241){const _0x375dc5=a139_0x28be;return db[_0x375dc5('0x3')][_0x375dc5('0xa')]({'where':_0x18629c[_0x375dc5('0x4')]?_0x18629c['options']['where']||null:null})['then'](function(_0x2664fb){const _0x263afc=_0x375dc5;logger[_0x263afc('0x1')](_0x263afc('0x1b'),_0x18629c),logger['debug'](_0x263afc('0x1b'),_0x18629c,JSON[_0x263afc('0x21')](_0x2664fb)),_0x2013fd(_0x2664fb);})[_0x375dc5('0x2c')](function(_0xa5cf98){const _0x70c44a=_0x375dc5;logger[_0x70c44a('0x38')](_0x70c44a('0x1b'),_0xa5cf98[_0x70c44a('0x24')],_0x18629c),_0x5cc241(_0x1e7031['error'](0x1f4,_0xa5cf98[_0x70c44a('0x24')]));});});},exports['GetContactDialer']=function(_0x19a39a){const _0x322128=this;return new Promise(function(_0x4cda85,_0x4f723c){const _0x2aa3d0=a139_0x28be;return db['CmContact'][_0x2aa3d0('0x11')]()[_0x2aa3d0('0x18')](function(_0x34e637){const _0x5e694c=_0x2aa3d0;return db[_0x5e694c('0x33')][_0x5e694c('0x2e')](function(_0x4a380c){const _0xc3601f=_0x5e694c;return db[_0xc3601f('0x3')][_0xc3601f('0x5')]({'where':_0x19a39a['options']?_0x19a39a[_0xc3601f('0x4')][_0xc3601f('0x26')]||null:null,'attributes':_0x19a39a[_0xc3601f('0x4')]?_0x19a39a[_0xc3601f('0x4')]['attributes']||null:null,'limit':_0x19a39a[_0xc3601f('0x4')]?_0x19a39a[_0xc3601f('0x4')][_0xc3601f('0x10')]||null:null,'order':_0x19a39a[_0xc3601f('0x4')]?_0x19a39a[_0xc3601f('0x4')]['order']||null:null,'transaction':_0x4a380c,'lock':_0x4a380c[_0xc3601f('0x0')][_0xc3601f('0x2a')],'include':[{'model':db[_0xc3601f('0x31')],'as':_0xc3601f('0xf'),'attributes':_[_0xc3601f('0x37')](_0x34e637)},{'model':db[_0xc3601f('0x1c')],'as':_0xc3601f('0x2b'),'attributes':['id',_0xc3601f('0x25'),_0xc3601f('0x1a')]}]})['then'](function(_0x1dc16d){const _0x1f1479=_0xc3601f,_0x151e37=[],_0x41d246=[];for(let _0x1d5c6f=0x0;_0x1d5c6f<_0x1dc16d[_0x1f1479('0x19')];_0x1d5c6f+=0x1){!_0x41d246[_0x1f1479('0x36')](_0x1dc16d[_0x1d5c6f][_0x1f1479('0x16')])&&(_0x41d246['push'](_0x1dc16d[_0x1d5c6f][_0x1f1479('0x16')]),_0x151e37[_0x1f1479('0x9')](_0x1dc16d[_0x1d5c6f]['update'](_0x19a39a[_0x1f1479('0x12')],{'transaction':_0x4a380c})));}return Promise['all'](_0x151e37);});})['then'](function(_0xc11b0d){const _0x18d856=_0x5e694c;logger[_0x18d856('0x1')](_0x18d856('0xb'),_0x19a39a),logger[_0x18d856('0x29')](_0x18d856('0xb'),_0x19a39a,JSON[_0x18d856('0x21')](_0xc11b0d)),_0x4cda85(_0xc11b0d);})[_0x5e694c('0x2c')](function(_0x3256d9){const _0x5b50e1=_0x5e694c;logger['error'](_0x5b50e1('0xb'),_0x3256d9[_0x5b50e1('0x24')],_0x19a39a),_0x4f723c(_0x322128['error'](0x1f4,_0x3256d9[_0x5b50e1('0x24')]));});});});},exports[_0x1c6bd4('0x13')]=function(_0x71cb34){const _0xc3c8bc=this;return new Promise(function(_0x2b2223,_0x191ac8){const _0x108dcb=a139_0x28be;return db[_0x108dcb('0x33')]['transaction'](function(_0x4ea2a0){const _0x274fce=_0x108dcb;return db['CmHopperFinal'][_0x274fce('0x34')](_0x71cb34[_0x274fce('0x12')],{'raw':_0x71cb34[_0x274fce('0x4')]?_0x71cb34[_0x274fce('0x4')][_0x274fce('0x1d')]===undefined?!![]:![]:!![],'transaction':_0x4ea2a0})['then'](function(){const _0x1d7450=_0x274fce;return db[_0x1d7450('0x3')][_0x1d7450('0xa')]({'where':_0x71cb34[_0x1d7450('0x4')]?_0x71cb34[_0x1d7450('0x4')][_0x1d7450('0x26')]||null:null,'transaction':_0x4ea2a0});});})[_0x108dcb('0x18')](function(_0x452d6e){const _0x1b72bd=_0x108dcb;logger[_0x1b72bd('0x1')](_0x1b72bd('0x13'),_0x71cb34),logger[_0x1b72bd('0x29')](_0x1b72bd('0x13'),_0x71cb34,JSON[_0x1b72bd('0x21')](_0x452d6e)),_0x2b2223(_0x452d6e);})[_0x108dcb('0x2c')](function(_0x18d98f){const _0x4b5f65=_0x108dcb;logger[_0x4b5f65('0x38')](_0x4b5f65('0x13'),_0x18d98f[_0x4b5f65('0x24')],_0x71cb34),_0x191ac8(_0xc3c8bc[_0x4b5f65('0x38')](0x1f4,_0x18d98f[_0x4b5f65('0x24')]));});});},exports[_0x1c6bd4('0x23')]=function(_0x549a89){const _0x2b1edc=this;return new Promise(function(_0x5d7195,_0x4d6d44){const _0x4a26d0=a139_0x28be;return db[_0x4a26d0('0x3')][_0x4a26d0('0x5')]({'raw':_0x549a89['options']?_0x549a89['options']['raw']===undefined?!![]:![]:!![],'where':_0x549a89[_0x4a26d0('0x4')]?_0x549a89['options'][_0x4a26d0('0x26')]||null:null,'attributes':[[db[_0x4a26d0('0x33')]['fn'](_0x4a26d0('0x28'),db['sequelize']['fn']('IF',db[_0x4a26d0('0x33')][_0x4a26d0('0x1e')]('`scheduledat`\x20>=\x20'+util['format'](_0x4a26d0('0xd'),moment()['format'](_0x4a26d0('0x7')))+'\x20,\x201,\x20null'))),_0x4a26d0('0x17')]]})[_0x4a26d0('0x18')](function(_0x1388a2){const _0x3d90ed=_0x4a26d0;logger[_0x3d90ed('0x1')](_0x3d90ed('0x23'),_0x549a89),logger[_0x3d90ed('0x29')](_0x3d90ed('0x23'),_0x549a89,JSON[_0x3d90ed('0x21')](_0x1388a2)),_0x5d7195(_0x1388a2);})[_0x4a26d0('0x2c')](function(_0x5148b6){const _0x33d97c=_0x4a26d0;logger[_0x33d97c('0x38')](_0x33d97c('0x23'),_0x5148b6[_0x33d97c('0x24')],_0x549a89),_0x4d6d44(_0x2b1edc[_0x33d97c('0x38')](0x1f4,_0x5148b6['message']));});});},exports[_0x1c6bd4('0x2')]=function(_0x204cf0){const _0x45313c=this;return new Promise(function(_0xdac7f9,_0x1c9693){const _0x440b9f=a139_0x28be;return db[_0x440b9f('0x31')]['describe']()[_0x440b9f('0x18')](function(){const _0x55acc8=_0x440b9f;return db[_0x55acc8('0x33')][_0x55acc8('0x2e')](function(_0x2f834c){const _0x4f19fa=_0x55acc8;return db[_0x4f19fa('0x3')][_0x4f19fa('0x5')]({'where':_0x204cf0[_0x4f19fa('0x4')]?_0x204cf0['options'][_0x4f19fa('0x26')]||null:null,'attributes':_0x204cf0[_0x4f19fa('0x4')]?_0x204cf0[_0x4f19fa('0x4')][_0x4f19fa('0x6')]||null:null,'limit':0x1,'order':_0x204cf0[_0x4f19fa('0x4')]?_0x204cf0[_0x4f19fa('0x4')][_0x4f19fa('0x22')]||null:null,'group':db[_0x4f19fa('0x3')]['UserId'],'transaction':_0x2f834c,'lock':_0x2f834c[_0x4f19fa('0x0')][_0x4f19fa('0x2a')],'include':_0x204cf0['options']?_0x204cf0[_0x4f19fa('0x4')][_0x4f19fa('0x35')]?_[_0x4f19fa('0x8')](_0x204cf0['options'][_0x4f19fa('0x35')],function(_0x58d059){const _0x3e21c6=_0x4f19fa;return{'model':db[_0x58d059['model']],'as':_0x58d059['as'],'attributes':_0x58d059[_0x3e21c6('0x6')],'include':_0x58d059['include']?_['map'](_0x58d059[_0x3e21c6('0x35')],function(_0x37612d){const _0x30a242=_0x3e21c6;return{'model':db[_0x37612d[_0x30a242('0x2d')]],'as':_0x37612d['as'],'attributes':_0x37612d[_0x30a242('0x6')],'include':_0x37612d[_0x30a242('0x35')]?_[_0x30a242('0x8')](_0x37612d[_0x30a242('0x35')],function(_0x4d46a8){const _0x32023e=_0x30a242;return{'model':db[_0x4d46a8[_0x32023e('0x2d')]],'as':_0x4d46a8['as'],'attributes':_0x4d46a8[_0x32023e('0x6')]};}):[]};}):[]};}):[]:[]})[_0x4f19fa('0x18')](function(_0x5d1fdf){const _0x58d60d=_0x4f19fa,_0x1f52b7=[];for(let _0x42e7f7=0x0;_0x42e7f7<_0x5d1fdf[_0x58d60d('0x19')];_0x42e7f7+=0x1){_0x1f52b7[_0x58d60d('0x9')](_0x5d1fdf[_0x42e7f7]['update'](_0x204cf0['body'],{'transaction':_0x2f834c}));}return Promise[_0x58d60d('0x14')](_0x1f52b7);});})[_0x55acc8('0x18')](function(_0x3603fb){const _0x364b65=_0x55acc8;logger['info'](_0x364b65('0x2'),_0x204cf0),logger['debug'](_0x364b65('0x2'),_0x204cf0,JSON[_0x364b65('0x21')](_0x3603fb)),_0xdac7f9(_0x3603fb);})[_0x55acc8('0x2c')](function(_0x55e5d5){const _0x24f1ac=_0x55acc8;logger[_0x24f1ac('0x38')](_0x24f1ac('0x2'),_0x55e5d5[_0x24f1ac('0x24')],_0x204cf0),_0x1c9693(_0x45313c[_0x24f1ac('0x38')](0x1f4,_0x55e5d5[_0x24f1ac('0x24')]));});});});},exports['GetCmHopperPreview']=function(_0x31e395){const _0x5db431=this;return new Promise(function(_0x32ff8a,_0x24e612){const _0x1b7a93=a139_0x28be;db['CmContact'][_0x1b7a93('0x11')]()[_0x1b7a93('0x18')](function(_0x1c6e61){const _0xa95a3f=_0x1b7a93;return db['CmHopper'][_0xa95a3f('0x5')]({'raw':_0x31e395['options']?_0x31e395['options'][_0xa95a3f('0x1d')]===undefined?!![]:![]:!![],'where':_0x31e395['options']?_0x31e395['options'][_0xa95a3f('0x26')]||null:null,'attributes':_0x31e395['options']?_0x31e395[_0xa95a3f('0x4')][_0xa95a3f('0x6')]||null:null,'limit':_0x31e395['options']?_0x31e395[_0xa95a3f('0x4')][_0xa95a3f('0x10')]||null:null,'include':_0x31e395[_0xa95a3f('0x4')]?_0x31e395['options'][_0xa95a3f('0x35')]?_[_0xa95a3f('0x8')](_0x31e395[_0xa95a3f('0x4')]['include'],function(_0x344dd5){const _0x30109c=_0xa95a3f;return{'model':db[_0x344dd5[_0x30109c('0x2d')]],'as':_0x344dd5['as'],'attributes':_0x344dd5['as']===_0x30109c('0xf')?_[_0x30109c('0x37')](_0x1c6e61):_0x344dd5[_0x30109c('0x6')],'include':_0x344dd5[_0x30109c('0x35')]?_[_0x30109c('0x8')](_0x344dd5['include'],function(_0x9428c1){const _0x5b0250=_0x30109c;return{'model':db[_0x9428c1[_0x5b0250('0x2d')]],'as':_0x9428c1['as'],'attributes':_0x9428c1[_0x5b0250('0x6')],'include':_0x9428c1[_0x5b0250('0x35')]?_[_0x5b0250('0x8')](_0x9428c1[_0x5b0250('0x35')],function(_0x15c58f){const _0x37a0ce=_0x5b0250;return{'model':db[_0x15c58f[_0x37a0ce('0x2d')]],'as':_0x15c58f['as'],'attributes':_0x15c58f[_0x37a0ce('0x6')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x322ab1){const _0x1786f1=_0xa95a3f;logger[_0x1786f1('0x1')](_0x1786f1('0xc'),_0x31e395),logger[_0x1786f1('0x29')](_0x1786f1('0xc'),_0x31e395,JSON['stringify'](_0x322ab1)),_0x32ff8a(_0x322ab1);})[_0xa95a3f('0x2c')](function(_0x567a86){const _0x5d3a35=_0xa95a3f;logger[_0x5d3a35('0x38')]('GetCmHopper',_0x567a86['message'],_0x31e395),_0x24e612(_0x5db431[_0x5d3a35('0x38')](0x1f4,_0x567a86[_0x5d3a35('0x24')]));});});});}; \ No newline at end of file diff --git a/server/api/cmHopper/index.js b/server/api/cmHopper/index.js index 2e495f1..02433bb 100644 --- a/server/api/cmHopper/index.js +++ b/server/api/cmHopper/index.js @@ -1 +1 @@ -const a140_0x56d4=['put','describe','post','getPreview','update','destroy','express','getOpenContacts','/describe','/opencontacts','./cmHopper.controller','isAuthenticated','get','Router','exports','create','show','../../components/auth/service','/:id','/preview'];(function(_0x3e883b,_0x56d41a){const _0x33be5b=function(_0x1ade97){while(--_0x1ade97){_0x3e883b['push'](_0x3e883b['shift']());}};_0x33be5b(++_0x56d41a);}(a140_0x56d4,0x7a));const a140_0x33be=function(_0x3e883b,_0x56d41a){_0x3e883b=_0x3e883b-0x0;let _0x33be5b=a140_0x56d4[_0x3e883b];return _0x33be5b;};const _0x4c5f30=a140_0x33be;'use strict';const express=require(_0x4c5f30('0x4')),router=express[_0x4c5f30('0xb')](),auth=require(_0x4c5f30('0xf')),controller=require(_0x4c5f30('0x8'));router[_0x4c5f30('0xa')]('/',auth['isAuthenticated'](),controller['index']),router[_0x4c5f30('0xa')](_0x4c5f30('0x6'),auth['isAuthenticated'](),controller[_0x4c5f30('0x13')]),router[_0x4c5f30('0xa')](_0x4c5f30('0x7'),auth['isAuthenticated'](),controller[_0x4c5f30('0x5')]),router['get'](_0x4c5f30('0x10'),auth[_0x4c5f30('0x9')](),controller[_0x4c5f30('0xe')]),router[_0x4c5f30('0x0')]('/',auth[_0x4c5f30('0x9')](),controller[_0x4c5f30('0xd')]),router['post'](_0x4c5f30('0x11'),auth[_0x4c5f30('0x9')](),controller[_0x4c5f30('0x1')]),router[_0x4c5f30('0x12')](_0x4c5f30('0x10'),auth[_0x4c5f30('0x9')](),controller[_0x4c5f30('0x2')]),router['delete']('/:id',auth[_0x4c5f30('0x9')](),controller[_0x4c5f30('0x3')]),module[_0x4c5f30('0xc')]=router; \ No newline at end of file +const a140_0x494b=['/preview','exports','../../components/auth/service','/opencontacts','/describe','update','create','/:id','describe','post','put','express','isAuthenticated','get','getOpenContacts','index','delete','getPreview'];(function(_0x4b4441,_0x494b3b){const _0xe26dac=function(_0x40452){while(--_0x40452){_0x4b4441['push'](_0x4b4441['shift']());}};_0xe26dac(++_0x494b3b);}(a140_0x494b,0x148));const a140_0xe26d=function(_0x4b4441,_0x494b3b){_0x4b4441=_0x4b4441-0x0;let _0xe26dac=a140_0x494b[_0x4b4441];return _0xe26dac;};const _0x4c84cb=a140_0xe26d;'use strict';const express=require(_0x4c84cb('0x7')),router=express['Router'](),auth=require(_0x4c84cb('0x10')),controller=require('./cmHopper.controller');router[_0x4c84cb('0x9')]('/',auth[_0x4c84cb('0x8')](),controller[_0x4c84cb('0xb')]),router['get'](_0x4c84cb('0x0'),auth['isAuthenticated'](),controller[_0x4c84cb('0x4')]),router['get'](_0x4c84cb('0x11'),auth[_0x4c84cb('0x8')](),controller[_0x4c84cb('0xa')]),router['get'](_0x4c84cb('0x3'),auth[_0x4c84cb('0x8')](),controller['show']),router[_0x4c84cb('0x5')]('/',auth[_0x4c84cb('0x8')](),controller[_0x4c84cb('0x2')]),router[_0x4c84cb('0x5')](_0x4c84cb('0xe'),auth['isAuthenticated'](),controller[_0x4c84cb('0xd')]),router[_0x4c84cb('0x6')]('/:id',auth[_0x4c84cb('0x8')](),controller[_0x4c84cb('0x1')]),router[_0x4c84cb('0xc')]('/:id',auth[_0x4c84cb('0x8')](),controller['destroy']),module[_0x4c84cb('0xf')]=router; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.attributes.js b/server/api/cmHopperBlack/cmHopperBlack.attributes.js index 7ac1d9b..22af663 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.attributes.js +++ b/server/api/cmHopperBlack/cmHopperBlack.attributes.js @@ -1 +1 @@ -const a141_0x1dd8=['exports','contactListQueue','INTEGER'];(function(_0x3b04ac,_0x1dd854){const _0x516ae4=function(_0x5e296b){while(--_0x5e296b){_0x3b04ac['push'](_0x3b04ac['shift']());}};_0x516ae4(++_0x1dd854);}(a141_0x1dd8,0x9e));const a141_0x516a=function(_0x3b04ac,_0x1dd854){_0x3b04ac=_0x3b04ac-0x0;let _0x516ae4=a141_0x1dd8[_0x3b04ac];return _0x516ae4;};const _0x4b24f4=a141_0x516a;'use strict';const Sequelize=require('sequelize');module[_0x4b24f4('0x1')]={'phone':{'type':Sequelize['STRING'],'allowNull':![]},'ContactId':{'type':Sequelize[_0x4b24f4('0x0')],'unique':_0x4b24f4('0x2')},'ListId':{'type':Sequelize['INTEGER'],'unique':_0x4b24f4('0x2')},'VoiceQueueId':{'type':Sequelize[_0x4b24f4('0x0')],'unique':_0x4b24f4('0x2')}}; \ No newline at end of file +const a141_0x1446=['INTEGER','contactListQueue','exports'];(function(_0x5b48a0,_0x144665){const _0x5015b7=function(_0x491a78){while(--_0x491a78){_0x5b48a0['push'](_0x5b48a0['shift']());}};_0x5015b7(++_0x144665);}(a141_0x1446,0x1f4));const a141_0x5015=function(_0x5b48a0,_0x144665){_0x5b48a0=_0x5b48a0-0x0;let _0x5015b7=a141_0x1446[_0x5b48a0];return _0x5015b7;};const _0x1a846c=a141_0x5015;'use strict';const Sequelize=require('sequelize');module[_0x1a846c('0x0')]={'phone':{'type':Sequelize['STRING'],'allowNull':![]},'ContactId':{'type':Sequelize['INTEGER'],'unique':_0x1a846c('0x2')},'ListId':{'type':Sequelize[_0x1a846c('0x1')],'unique':_0x1a846c('0x2')},'VoiceQueueId':{'type':Sequelize[_0x1a846c('0x1')],'unique':_0x1a846c('0x2')}}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.controller.js b/server/api/cmHopperBlack/cmHopperBlack.controller.js index 50b1fc6..0d286e5 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.controller.js +++ b/server/api/cmHopperBlack/cmHopperBlack.controller.js @@ -1 +1 @@ -const a142_0x3eca=['set','length','findAll','../../mysqldb','undefined','like','show','attributes','describe','include','update','merge','body','params','stack','options','json','rows','catch','intersection','sort','count','name','status','offset','model','limit','keys','where','then','sequelize','findOne','index','end','Content-Range','fields','filter','includeAll','fieldName','error','send','destroy','type','../../config/logger','rawAttributes','filters','key','pick','map','order','query','CmHopperBlack'];(function(_0x535692,_0x3eca43){const _0x908b8a=function(_0x3a4028){while(--_0x3a4028){_0x535692['push'](_0x535692['shift']());}};_0x908b8a(++_0x3eca43);}(a142_0x3eca,0xe3));const a142_0x908b=function(_0x535692,_0x3eca43){_0x535692=_0x535692-0x0;let _0x908b8a=a142_0x3eca[_0x535692];return _0x908b8a;};const _0x47cdb8=a142_0x908b;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x47cdb8('0x18'))('api'),db=require(_0x47cdb8('0x24'))['db'],{Op}=require(_0x47cdb8('0xb'));function respondWithResult(_0x3a4028,_0x1493bd){return _0x1493bd=_0x1493bd||0xc8,function(_0x281788){const _0x535103=a142_0x908b;if(_0x281788)return _0x3a4028['status'](_0x1493bd)[_0x535103('0x31')](_0x281788);};}function respondWithFilteredResult(_0xeebf22,_0x10b990){return function(_0x46fb54){const _0x3b9daf=a142_0x908b;if(_0x46fb54){const _0x417b22=_0x46fb54['count'],_0x46af4b=_0x10b990[_0x3b9daf('0x5')];let _0x144835=_0x10b990[_0x3b9daf('0x5')]+_0x10b990['limit'],_0x18d4a5;return _0x144835>=_0x417b22?(_0x144835=_0x417b22,_0x18d4a5=0xc8):_0x18d4a5=0xce,_0xeebf22[_0x3b9daf('0x4')](_0x18d4a5),_0xeebf22[_0x3b9daf('0x21')](_0x3b9daf('0xf'),_0x46af4b+'-'+_0x144835+'/'+_0x417b22)[_0x3b9daf('0x31')](_0x46fb54);}return null;};}function saveUpdates(_0x247d53){return function(_0x35aeda){if(_0x35aeda)return _0x35aeda['update'](_0x247d53)['then'](function(_0x88384d){return _0x88384d;});return null;};}function removeEntity(_0x51829d){return function(_0x1e65e6){const _0x465f64=a142_0x908b;if(_0x1e65e6)return _0x1e65e6[_0x465f64('0x16')]()[_0x465f64('0xa')](function(){const _0x5c969b=_0x465f64;_0x51829d['status'](0xcc)[_0x5c969b('0xe')]();});};}function handleEntityNotFound(_0x3e4dce){return function(_0x1f89c2){return!_0x1f89c2&&_0x3e4dce['sendStatus'](0x194),_0x1f89c2;};}function handleError(_0x119c91,_0x5e25a8){return _0x5e25a8=_0x5e25a8||0x1f4,function(_0x25c193){const _0x49997d=a142_0x908b;logger[_0x49997d('0x14')](_0x25c193[_0x49997d('0x2f')]),_0x25c193['name']&&delete _0x25c193[_0x49997d('0x3')],_0x119c91[_0x49997d('0x4')](_0x5e25a8)[_0x49997d('0x15')](_0x25c193);};}exports[_0x47cdb8('0xd')]=function(_0xb216d0,_0x1a42f6){const _0x2caae2=_0x47cdb8;let _0xb48fff={};const _0x46b1b3={},_0x32f33b={'count':0x0,'rows':[]},_0x4e8886=_[_0x2caae2('0x1d')](db[_0x2caae2('0x20')][_0x2caae2('0x19')],function(_0x4c8e7c){const _0x41ee65=_0x2caae2;return{'name':_0x4c8e7c[_0x41ee65('0x13')],'type':_0x4c8e7c['type'][_0x41ee65('0x1b')]};});_0x46b1b3[_0x2caae2('0x6')]=_['map'](_0x4e8886,_0x2caae2('0x3')),_0x46b1b3[_0x2caae2('0x1f')]=_[_0x2caae2('0x8')](_0xb216d0[_0x2caae2('0x1f')]),_0x46b1b3[_0x2caae2('0x1a')]=_[_0x2caae2('0x0')](_0x46b1b3['model'],_0x46b1b3[_0x2caae2('0x1f')]),_0xb48fff[_0x2caae2('0x28')]=_['intersection'](_0x46b1b3[_0x2caae2('0x6')],qs[_0x2caae2('0x10')](_0xb216d0[_0x2caae2('0x1f')][_0x2caae2('0x10')])),_0xb48fff['attributes']=_0xb48fff[_0x2caae2('0x28')][_0x2caae2('0x22')]?_0xb48fff[_0x2caae2('0x28')]:_0x46b1b3['model'];typeof _0xb216d0[_0x2caae2('0x1f')]['nolimit']===_0x2caae2('0x25')&&(_0xb48fff[_0x2caae2('0x7')]=qs['limit'](_0xb216d0[_0x2caae2('0x1f')][_0x2caae2('0x7')]),_0xb48fff[_0x2caae2('0x5')]=qs['offset'](_0xb216d0['query']['offset']));_0xb48fff[_0x2caae2('0x1e')]=qs[_0x2caae2('0x1')](_0xb216d0[_0x2caae2('0x1f')][_0x2caae2('0x1')]),_0xb48fff[_0x2caae2('0x9')]=qs[_0x2caae2('0x1a')](_[_0x2caae2('0x1c')](_0xb216d0[_0x2caae2('0x1f')],_0x46b1b3['filters']),_0x4e8886);_0xb216d0[_0x2caae2('0x1f')][_0x2caae2('0x11')]&&(_0xb48fff[_0x2caae2('0x9')]=_[_0x2caae2('0x2c')](_0xb48fff[_0x2caae2('0x9')],{[Op['or']]:_[_0x2caae2('0x1d')](_0x4e8886,function(_0x4bc2f7){const _0x3aa35a=_0x2caae2;if(_0x4bc2f7[_0x3aa35a('0x17')]!=='VIRTUAL'){const _0xe7697a={};return _0xe7697a[_0x4bc2f7[_0x3aa35a('0x3')]]={[Op[_0x3aa35a('0x26')]]:'%'+_0xb216d0[_0x3aa35a('0x1f')]['filter']+'%'},_0xe7697a;}})}));_0xb48fff=_[_0x2caae2('0x2c')]({},_0xb48fff,_0xb216d0[_0x2caae2('0x30')]);const _0x552991={'where':_0xb48fff[_0x2caae2('0x9')]};return db[_0x2caae2('0x20')][_0x2caae2('0x2')](_0x552991)[_0x2caae2('0xa')](function(_0x1d768){const _0x27fb70=_0x2caae2;return _0x32f33b[_0x27fb70('0x2')]=_0x1d768,_0xb216d0[_0x27fb70('0x1f')][_0x27fb70('0x12')]&&(_0xb48fff[_0x27fb70('0x2a')]=[{'all':!![]}]),db[_0x27fb70('0x20')][_0x27fb70('0x23')](_0xb48fff);})['then'](function(_0x1a3bb3){const _0x4bae74=_0x2caae2;return _0x32f33b[_0x4bae74('0x32')]=_0x1a3bb3,_0x32f33b;})[_0x2caae2('0xa')](respondWithFilteredResult(_0x1a42f6,_0xb48fff))['catch'](handleError(_0x1a42f6,null));},exports[_0x47cdb8('0x27')]=function(_0x2712b0,_0x3ab170){const _0x21c205=_0x47cdb8;let _0x3a4551={'raw':!![],'where':{'id':_0x2712b0[_0x21c205('0x2e')]['id']}};const _0x34454c={};return _0x34454c[_0x21c205('0x6')]=_['keys'](db[_0x21c205('0x20')][_0x21c205('0x19')]),_0x34454c[_0x21c205('0x1f')]=_[_0x21c205('0x8')](_0x2712b0[_0x21c205('0x1f')]),_0x34454c[_0x21c205('0x1a')]=_['intersection'](_0x34454c[_0x21c205('0x6')],_0x34454c['query']),_0x3a4551['attributes']=_[_0x21c205('0x0')](_0x34454c[_0x21c205('0x6')],qs['fields'](_0x2712b0[_0x21c205('0x1f')][_0x21c205('0x10')])),_0x3a4551['attributes']=_0x3a4551[_0x21c205('0x28')][_0x21c205('0x22')]?_0x3a4551[_0x21c205('0x28')]:_0x34454c[_0x21c205('0x6')],_0x2712b0[_0x21c205('0x1f')][_0x21c205('0x12')]&&(_0x3a4551[_0x21c205('0x2a')]=[{'all':!![]}]),_0x3a4551=_[_0x21c205('0x2c')]({},_0x3a4551,_0x2712b0[_0x21c205('0x30')]),db['CmHopperBlack'][_0x21c205('0xc')](_0x3a4551)[_0x21c205('0xa')](handleEntityNotFound(_0x3ab170,null))[_0x21c205('0xa')](respondWithResult(_0x3ab170,null))[_0x21c205('0x33')](handleError(_0x3ab170,null));},exports[_0x47cdb8('0x2b')]=function(_0x3053cd,_0x516938){const _0x7e9d54=_0x47cdb8;return _0x3053cd[_0x7e9d54('0x2d')]['id']&&delete _0x3053cd['body']['id'],db['CmHopperBlack'][_0x7e9d54('0xc')]({'where':{'id':_0x3053cd[_0x7e9d54('0x2e')]['id']}})[_0x7e9d54('0xa')](handleEntityNotFound(_0x516938,null))[_0x7e9d54('0xa')](saveUpdates(_0x3053cd[_0x7e9d54('0x2d')],null))[_0x7e9d54('0xa')](respondWithResult(_0x516938,null))[_0x7e9d54('0x33')](handleError(_0x516938,null));},exports[_0x47cdb8('0x16')]=function(_0x39dbd3,_0xef8970){const _0x109263=_0x47cdb8;return db[_0x109263('0x20')][_0x109263('0xc')]({'where':{'id':_0x39dbd3[_0x109263('0x2e')]['id']}})[_0x109263('0xa')](handleEntityNotFound(_0xef8970,null))['then'](removeEntity(_0xef8970,null))['catch'](handleError(_0xef8970,null));},exports['describe']=function(_0x5a8429,_0x1264dd){const _0xbbd1a9=_0x47cdb8;return db[_0xbbd1a9('0x20')][_0xbbd1a9('0x29')]()[_0xbbd1a9('0xa')](respondWithResult(_0x1264dd,null))[_0xbbd1a9('0x33')](handleError(_0x1264dd,null));}; \ No newline at end of file +const a142_0x5526=['describe','error','limit','filters','api','params','rawAttributes','type','fields','catch','undefined','status','map','model','body','merge','order','../../components/parsers/qs','name','nolimit','rows','lodash','intersection','VIRTUAL','pick','destroy','fieldName','query','then','findOne','sequelize','like','includeAll','include','length','options','CmHopperBlack','stack','json','keys','send','sort','offset','update','attributes','../../mysqldb','count','filter','sendStatus'];(function(_0x2ca38a,_0x552645){const _0xa19389=function(_0x42b073){while(--_0x42b073){_0x2ca38a['push'](_0x2ca38a['shift']());}};_0xa19389(++_0x552645);}(a142_0x5526,0x118));const a142_0xa193=function(_0x2ca38a,_0x552645){_0x2ca38a=_0x2ca38a-0x0;let _0xa19389=a142_0x5526[_0x2ca38a];return _0xa19389;};const _0x2db813=a142_0xa193;'use strict';const _=require(_0x2db813('0x23')),qs=require(_0x2db813('0x1f')),logger=require('../../config/logger')(_0x2db813('0x12')),db=require(_0x2db813('0xa'))['db'],{Op}=require(_0x2db813('0x2c'));function respondWithResult(_0x42b073,_0x377f4f){return _0x377f4f=_0x377f4f||0xc8,function(_0x23ee24){const _0x164b82=a142_0xa193;if(_0x23ee24)return _0x42b073[_0x164b82('0x19')](_0x377f4f)[_0x164b82('0x3')](_0x23ee24);};}function respondWithFilteredResult(_0x41961b,_0x3d9517){return function(_0x2af57c){const _0x5c2707=a142_0xa193;if(_0x2af57c){const _0x51d62a=_0x2af57c[_0x5c2707('0xb')],_0x3bb8b6=_0x3d9517['offset'];let _0x478201=_0x3d9517[_0x5c2707('0x7')]+_0x3d9517['limit'],_0x5a94ae;return _0x478201>=_0x51d62a?(_0x478201=_0x51d62a,_0x5a94ae=0xc8):_0x5a94ae=0xce,_0x41961b[_0x5c2707('0x19')](_0x5a94ae),_0x41961b['set']('Content-Range',_0x3bb8b6+'-'+_0x478201+'/'+_0x51d62a)[_0x5c2707('0x3')](_0x2af57c);}return null;};}function saveUpdates(_0x3090f5){return function(_0x321955){const _0x3d0207=a142_0xa193;if(_0x321955)return _0x321955[_0x3d0207('0x8')](_0x3090f5)['then'](function(_0x11fd68){return _0x11fd68;});return null;};}function removeEntity(_0x55f483){return function(_0x1a8c81){const _0xd8fcd7=a142_0xa193;if(_0x1a8c81)return _0x1a8c81[_0xd8fcd7('0x27')]()['then'](function(){const _0x4709dd=_0xd8fcd7;_0x55f483[_0x4709dd('0x19')](0xcc)['end']();});};}function handleEntityNotFound(_0x15c956){return function(_0x2d2887){const _0x439172=a142_0xa193;return!_0x2d2887&&_0x15c956[_0x439172('0xd')](0x194),_0x2d2887;};}function handleError(_0x106882,_0x278dfa){return _0x278dfa=_0x278dfa||0x1f4,function(_0x130c79){const _0x5c2a19=a142_0xa193;logger[_0x5c2a19('0xf')](_0x130c79[_0x5c2a19('0x2')]),_0x130c79[_0x5c2a19('0x20')]&&delete _0x130c79[_0x5c2a19('0x20')],_0x106882[_0x5c2a19('0x19')](_0x278dfa)[_0x5c2a19('0x5')](_0x130c79);};}exports['index']=function(_0x2f66aa,_0x2c7411){const _0x3088eb=_0x2db813;let _0x1ea0f5={};const _0x1a29fd={},_0x19eb45={'count':0x0,'rows':[]},_0x1d708d=_[_0x3088eb('0x1a')](db[_0x3088eb('0x1')][_0x3088eb('0x14')],function(_0x3f2f72){const _0x31b561=_0x3088eb;return{'name':_0x3f2f72[_0x31b561('0x28')],'type':_0x3f2f72[_0x31b561('0x15')]['key']};});_0x1a29fd[_0x3088eb('0x1b')]=_[_0x3088eb('0x1a')](_0x1d708d,'name'),_0x1a29fd[_0x3088eb('0x29')]=_[_0x3088eb('0x4')](_0x2f66aa[_0x3088eb('0x29')]),_0x1a29fd[_0x3088eb('0x11')]=_[_0x3088eb('0x24')](_0x1a29fd[_0x3088eb('0x1b')],_0x1a29fd[_0x3088eb('0x29')]),_0x1ea0f5['attributes']=_['intersection'](_0x1a29fd[_0x3088eb('0x1b')],qs['fields'](_0x2f66aa['query'][_0x3088eb('0x16')])),_0x1ea0f5[_0x3088eb('0x9')]=_0x1ea0f5['attributes'][_0x3088eb('0x30')]?_0x1ea0f5[_0x3088eb('0x9')]:_0x1a29fd['model'];typeof _0x2f66aa['query'][_0x3088eb('0x21')]===_0x3088eb('0x18')&&(_0x1ea0f5[_0x3088eb('0x10')]=qs[_0x3088eb('0x10')](_0x2f66aa[_0x3088eb('0x29')][_0x3088eb('0x10')]),_0x1ea0f5[_0x3088eb('0x7')]=qs['offset'](_0x2f66aa[_0x3088eb('0x29')]['offset']));_0x1ea0f5[_0x3088eb('0x1e')]=qs['sort'](_0x2f66aa['query'][_0x3088eb('0x6')]),_0x1ea0f5['where']=qs[_0x3088eb('0x11')](_[_0x3088eb('0x26')](_0x2f66aa[_0x3088eb('0x29')],_0x1a29fd['filters']),_0x1d708d);_0x2f66aa['query'][_0x3088eb('0xc')]&&(_0x1ea0f5['where']=_[_0x3088eb('0x1d')](_0x1ea0f5['where'],{[Op['or']]:_[_0x3088eb('0x1a')](_0x1d708d,function(_0x3c1df1){const _0x4ef31b=_0x3088eb;if(_0x3c1df1[_0x4ef31b('0x15')]!==_0x4ef31b('0x25')){const _0x3775d1={};return _0x3775d1[_0x3c1df1[_0x4ef31b('0x20')]]={[Op[_0x4ef31b('0x2d')]]:'%'+_0x2f66aa['query'][_0x4ef31b('0xc')]+'%'},_0x3775d1;}})}));_0x1ea0f5=_[_0x3088eb('0x1d')]({},_0x1ea0f5,_0x2f66aa[_0x3088eb('0x0')]);const _0x5e163d={'where':_0x1ea0f5['where']};return db[_0x3088eb('0x1')][_0x3088eb('0xb')](_0x5e163d)[_0x3088eb('0x2a')](function(_0x28b03e){const _0x4d9d1c=_0x3088eb;return _0x19eb45[_0x4d9d1c('0xb')]=_0x28b03e,_0x2f66aa[_0x4d9d1c('0x29')][_0x4d9d1c('0x2e')]&&(_0x1ea0f5[_0x4d9d1c('0x2f')]=[{'all':!![]}]),db[_0x4d9d1c('0x1')]['findAll'](_0x1ea0f5);})[_0x3088eb('0x2a')](function(_0x2d915b){const _0x7b16b6=_0x3088eb;return _0x19eb45[_0x7b16b6('0x22')]=_0x2d915b,_0x19eb45;})[_0x3088eb('0x2a')](respondWithFilteredResult(_0x2c7411,_0x1ea0f5))[_0x3088eb('0x17')](handleError(_0x2c7411,null));},exports['show']=function(_0x3d35cd,_0x2a7e65){const _0x3cc8a2=_0x2db813;let _0x411d7a={'raw':!![],'where':{'id':_0x3d35cd['params']['id']}};const _0x2251ca={};return _0x2251ca['model']=_['keys'](db[_0x3cc8a2('0x1')][_0x3cc8a2('0x14')]),_0x2251ca['query']=_[_0x3cc8a2('0x4')](_0x3d35cd[_0x3cc8a2('0x29')]),_0x2251ca[_0x3cc8a2('0x11')]=_['intersection'](_0x2251ca[_0x3cc8a2('0x1b')],_0x2251ca[_0x3cc8a2('0x29')]),_0x411d7a[_0x3cc8a2('0x9')]=_[_0x3cc8a2('0x24')](_0x2251ca[_0x3cc8a2('0x1b')],qs[_0x3cc8a2('0x16')](_0x3d35cd[_0x3cc8a2('0x29')][_0x3cc8a2('0x16')])),_0x411d7a[_0x3cc8a2('0x9')]=_0x411d7a['attributes']['length']?_0x411d7a[_0x3cc8a2('0x9')]:_0x2251ca['model'],_0x3d35cd[_0x3cc8a2('0x29')][_0x3cc8a2('0x2e')]&&(_0x411d7a[_0x3cc8a2('0x2f')]=[{'all':!![]}]),_0x411d7a=_[_0x3cc8a2('0x1d')]({},_0x411d7a,_0x3d35cd['options']),db[_0x3cc8a2('0x1')][_0x3cc8a2('0x2b')](_0x411d7a)[_0x3cc8a2('0x2a')](handleEntityNotFound(_0x2a7e65,null))[_0x3cc8a2('0x2a')](respondWithResult(_0x2a7e65,null))['catch'](handleError(_0x2a7e65,null));},exports[_0x2db813('0x8')]=function(_0x145779,_0x179470){const _0x361224=_0x2db813;return _0x145779['body']['id']&&delete _0x145779[_0x361224('0x1c')]['id'],db[_0x361224('0x1')][_0x361224('0x2b')]({'where':{'id':_0x145779[_0x361224('0x13')]['id']}})['then'](handleEntityNotFound(_0x179470,null))[_0x361224('0x2a')](saveUpdates(_0x145779[_0x361224('0x1c')],null))[_0x361224('0x2a')](respondWithResult(_0x179470,null))[_0x361224('0x17')](handleError(_0x179470,null));},exports[_0x2db813('0x27')]=function(_0x3c755f,_0x3114f3){const _0x5b925f=_0x2db813;return db[_0x5b925f('0x1')][_0x5b925f('0x2b')]({'where':{'id':_0x3c755f['params']['id']}})[_0x5b925f('0x2a')](handleEntityNotFound(_0x3114f3,null))[_0x5b925f('0x2a')](removeEntity(_0x3114f3,null))[_0x5b925f('0x17')](handleError(_0x3114f3,null));},exports[_0x2db813('0xe')]=function(_0x2f0aa4,_0x19971b){const _0x267386=_0x2db813;return db[_0x267386('0x1')][_0x267386('0xe')]()[_0x267386('0x2a')](respondWithResult(_0x19971b,null))[_0x267386('0x17')](handleError(_0x19971b,null));}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.model.js b/server/api/cmHopperBlack/cmHopperBlack.model.js index 0f5e30f..50e669a 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.model.js +++ b/server/api/cmHopperBlack/cmHopperBlack.model.js @@ -1 +1 @@ -const a143_0xe197=['./cmHopperBlack.attributes','CmHopperBlack','define','exports'];(function(_0x135d69,_0xe19739){const _0x3c6846=function(_0x2b195c){while(--_0x2b195c){_0x135d69['push'](_0x135d69['shift']());}};_0x3c6846(++_0xe19739);}(a143_0xe197,0xa8));const a143_0x3c68=function(_0x135d69,_0xe19739){_0x135d69=_0x135d69-0x0;let _0x3c6846=a143_0xe197[_0x135d69];return _0x3c6846;};const _0x53b12b=a143_0x3c68;'use strict';const attributes=require(_0x53b12b('0x0'));module[_0x53b12b('0x3')]=function(_0x2b195c){const _0x7db005=_0x53b12b,_0x4be8ed=_0x2b195c[_0x7db005('0x2')](_0x7db005('0x1'),attributes,{'tableName':'cm_hopper_black','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4be8ed;}; \ No newline at end of file +const a143_0x166d=['CmHopperBlack','exports'];(function(_0x218539,_0x166dfe){const _0x565455=function(_0x2875ab){while(--_0x2875ab){_0x218539['push'](_0x218539['shift']());}};_0x565455(++_0x166dfe);}(a143_0x166d,0xf3));const a143_0x5654=function(_0x218539,_0x166dfe){_0x218539=_0x218539-0x0;let _0x565455=a143_0x166d[_0x218539];return _0x565455;};const _0x54f099=a143_0x5654;'use strict';const attributes=require('./cmHopperBlack.attributes');module[_0x54f099('0x0')]=function(_0x2875ab){const _0x6bce09=_0x54f099,_0x58f022=_0x2875ab['define'](_0x6bce09('0x1'),attributes,{'tableName':'cm_hopper_black','paranoid':![],'indexes':[],'timestamps':!![]});return _0x58f022;}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.rpc.js b/server/api/cmHopperBlack/cmHopperBlack.rpc.js index f4884ca..d10470f 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.rpc.js +++ b/server/api/cmHopperBlack/cmHopperBlack.rpc.js @@ -1 +1 @@ -const a144_0x2ba5=['model','lodash','error','debug','../../config/logger','rpc','UpdateCmHopperBlack','options','include','catch','where','then','GetCmHopperBlack','attributes','CmHopperBlack','map','message','DestroyCmHopperBlack','findAll','raw','stringify','limit','info','../../mysqldb'];(function(_0x1abd82,_0x2ba50c){const _0x144656=function(_0x255db3){while(--_0x255db3){_0x1abd82['push'](_0x1abd82['shift']());}};_0x144656(++_0x2ba50c);}(a144_0x2ba5,0x1b9));const a144_0x1446=function(_0x1abd82,_0x2ba50c){_0x1abd82=_0x1abd82-0x0;let _0x144656=a144_0x2ba5[_0x1abd82];return _0x144656;};const _0x11a3c5=a144_0x1446;'use strict';const _=require(_0x11a3c5('0x10')),db=require(_0x11a3c5('0xe'))['db'],logger=require(_0x11a3c5('0x13'))(_0x11a3c5('0x14'));exports['GetCmHopperBlack']=function(_0x255db3){const _0x33d7ff=this;return new Promise(function(_0x523310,_0x220e61){const _0x51c225=a144_0x1446;return db['CmHopperBlack'][_0x51c225('0x9')]({'raw':_0x255db3[_0x51c225('0x16')]?_0x255db3[_0x51c225('0x16')][_0x51c225('0xa')]===undefined?!![]:![]:!![],'where':_0x255db3['options']?_0x255db3[_0x51c225('0x16')]['where']||null:null,'attributes':_0x255db3[_0x51c225('0x16')]?_0x255db3[_0x51c225('0x16')][_0x51c225('0x4')]||null:null,'limit':_0x255db3[_0x51c225('0x16')]?_0x255db3[_0x51c225('0x16')][_0x51c225('0xc')]||null:null,'include':_0x255db3['options']?_0x255db3[_0x51c225('0x16')][_0x51c225('0x17')]?_[_0x51c225('0x6')](_0x255db3[_0x51c225('0x16')][_0x51c225('0x17')],function(_0x3c6a60){const _0x5b6574=_0x51c225;return{'model':db[_0x3c6a60[_0x5b6574('0xf')]],'as':_0x3c6a60['as'],'attributes':_0x3c6a60[_0x5b6574('0x4')],'include':_0x3c6a60['include']?_[_0x5b6574('0x6')](_0x3c6a60['include'],function(_0x362771){const _0x3206f4=_0x5b6574;return{'model':db[_0x362771[_0x3206f4('0xf')]],'as':_0x362771['as'],'attributes':_0x362771[_0x3206f4('0x4')],'include':_0x362771['include']?_[_0x3206f4('0x6')](_0x362771['include'],function(_0x39fa3b){const _0x45df09=_0x3206f4;return{'model':db[_0x39fa3b[_0x45df09('0xf')]],'as':_0x39fa3b['as'],'attributes':_0x39fa3b[_0x45df09('0x4')]};}):[]};}):[]};}):[]:[]})[_0x51c225('0x2')](function(_0x5a6f90){const _0x34a725=_0x51c225;logger[_0x34a725('0xd')](_0x34a725('0x3'),_0x255db3),logger[_0x34a725('0x12')](_0x34a725('0x3'),_0x255db3,JSON['stringify'](_0x5a6f90)),_0x523310(_0x5a6f90);})[_0x51c225('0x0')](function(_0x351b33){const _0x6785cc=_0x51c225;logger[_0x6785cc('0x11')](_0x6785cc('0x3'),_0x351b33[_0x6785cc('0x7')],_0x255db3),_0x220e61(_0x33d7ff['error'](0x1f4,_0x351b33[_0x6785cc('0x7')]));});});},exports[_0x11a3c5('0x15')]=function(_0xfd73de){const _0x100be5=this;return new Promise(function(_0x326d8a,_0x12cbf2){const _0xde7d98=a144_0x1446;return db[_0xde7d98('0x5')]['update'](_0xfd73de['body'],{'raw':_0xfd73de['options']?_0xfd73de['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xfd73de[_0xde7d98('0x16')]?_0xfd73de[_0xde7d98('0x16')][_0xde7d98('0x1')]||null:null,'attributes':_0xfd73de[_0xde7d98('0x16')]?_0xfd73de[_0xde7d98('0x16')][_0xde7d98('0x4')]||null:null,'limit':_0xfd73de[_0xde7d98('0x16')]?_0xfd73de[_0xde7d98('0x16')][_0xde7d98('0xc')]||null:null})[_0xde7d98('0x2')](function(_0x181735){const _0x598767=_0xde7d98;logger[_0x598767('0xd')](_0x598767('0x15'),_0xfd73de),logger[_0x598767('0x12')](_0x598767('0x15'),_0xfd73de,JSON[_0x598767('0xb')](_0x181735)),_0x326d8a(_0x181735);})[_0xde7d98('0x0')](function(_0xaf092f){const _0x20e083=_0xde7d98;logger[_0x20e083('0x11')](_0x20e083('0x15'),_0xaf092f[_0x20e083('0x7')],_0xfd73de),_0x12cbf2(_0x100be5[_0x20e083('0x11')](0x1f4,_0xaf092f[_0x20e083('0x7')]));});});},exports[_0x11a3c5('0x8')]=function(_0x20c3c8){const _0xd20466=this;return new Promise(function(_0x1d4a4c,_0x501405){const _0xd16806=a144_0x1446;return db[_0xd16806('0x5')]['destroy']({'where':_0x20c3c8[_0xd16806('0x16')]?_0x20c3c8['options']['where']||null:null})[_0xd16806('0x2')](function(_0xf0fe46){const _0x40ac86=_0xd16806;logger[_0x40ac86('0xd')]('DestroyCmHopperBlack',_0x20c3c8),logger[_0x40ac86('0x12')]('DestroyCmHopperBlack',_0x20c3c8,JSON[_0x40ac86('0xb')](_0xf0fe46)),_0x1d4a4c(_0xf0fe46);})[_0xd16806('0x0')](function(_0x4c9c5d){const _0x28307a=_0xd16806;logger['error']('DestroyCmHopperBlack',_0x4c9c5d[_0x28307a('0x7')],_0x20c3c8),_0x501405(_0xd20466[_0x28307a('0x11')](0x1f4,_0x4c9c5d[_0x28307a('0x7')]));});});}; \ No newline at end of file +const a144_0xedcd=['model','rpc','message','UpdateCmHopperBlack','CmHopperBlack','destroy','raw','DestroyCmHopperBlack','stringify','info','options','limit','../../mysqldb','update','where','include','GetCmHopperBlack','../../config/logger','body','map','then','catch','findAll','debug','attributes','lodash','error'];(function(_0x14d17d,_0xedcda8){const _0x65ccbc=function(_0x1c0f02){while(--_0x1c0f02){_0x14d17d['push'](_0x14d17d['shift']());}};_0x65ccbc(++_0xedcda8);}(a144_0xedcd,0x107));const a144_0x65cc=function(_0x14d17d,_0xedcda8){_0x14d17d=_0x14d17d-0x0;let _0x65ccbc=a144_0xedcd[_0x14d17d];return _0x65ccbc;};const _0x57ba4c=a144_0x65cc;'use strict';const _=require(_0x57ba4c('0x5')),db=require(_0x57ba4c('0x13'))['db'],logger=require(_0x57ba4c('0x18'))(_0x57ba4c('0x8'));exports[_0x57ba4c('0x17')]=function(_0x1c0f02){const _0x3c2efc=this;return new Promise(function(_0x44951f,_0x37e912){const _0x7095b3=a144_0x65cc;return db[_0x7095b3('0xb')][_0x7095b3('0x2')]({'raw':_0x1c0f02[_0x7095b3('0x11')]?_0x1c0f02['options'][_0x7095b3('0xd')]===undefined?!![]:![]:!![],'where':_0x1c0f02[_0x7095b3('0x11')]?_0x1c0f02[_0x7095b3('0x11')]['where']||null:null,'attributes':_0x1c0f02[_0x7095b3('0x11')]?_0x1c0f02['options']['attributes']||null:null,'limit':_0x1c0f02['options']?_0x1c0f02[_0x7095b3('0x11')][_0x7095b3('0x12')]||null:null,'include':_0x1c0f02[_0x7095b3('0x11')]?_0x1c0f02[_0x7095b3('0x11')][_0x7095b3('0x16')]?_['map'](_0x1c0f02[_0x7095b3('0x11')][_0x7095b3('0x16')],function(_0xe673b7){const _0x50dbe3=_0x7095b3;return{'model':db[_0xe673b7[_0x50dbe3('0x7')]],'as':_0xe673b7['as'],'attributes':_0xe673b7[_0x50dbe3('0x4')],'include':_0xe673b7[_0x50dbe3('0x16')]?_[_0x50dbe3('0x1a')](_0xe673b7['include'],function(_0x149d96){const _0x1f97be=_0x50dbe3;return{'model':db[_0x149d96[_0x1f97be('0x7')]],'as':_0x149d96['as'],'attributes':_0x149d96['attributes'],'include':_0x149d96['include']?_[_0x1f97be('0x1a')](_0x149d96[_0x1f97be('0x16')],function(_0x3b72ad){const _0x3fe9d8=_0x1f97be;return{'model':db[_0x3b72ad[_0x3fe9d8('0x7')]],'as':_0x3b72ad['as'],'attributes':_0x3b72ad['attributes']};}):[]};}):[]};}):[]:[]})[_0x7095b3('0x0')](function(_0x3be980){const _0x1009f3=_0x7095b3;logger[_0x1009f3('0x10')](_0x1009f3('0x17'),_0x1c0f02),logger[_0x1009f3('0x3')](_0x1009f3('0x17'),_0x1c0f02,JSON[_0x1009f3('0xf')](_0x3be980)),_0x44951f(_0x3be980);})['catch'](function(_0xdd78ca){const _0x4a7927=_0x7095b3;logger[_0x4a7927('0x6')](_0x4a7927('0x17'),_0xdd78ca[_0x4a7927('0x9')],_0x1c0f02),_0x37e912(_0x3c2efc['error'](0x1f4,_0xdd78ca[_0x4a7927('0x9')]));});});},exports[_0x57ba4c('0xa')]=function(_0x431986){const _0x415fc5=this;return new Promise(function(_0x2c0fd0,_0x5cd50e){const _0x19f92e=a144_0x65cc;return db[_0x19f92e('0xb')][_0x19f92e('0x14')](_0x431986[_0x19f92e('0x19')],{'raw':_0x431986[_0x19f92e('0x11')]?_0x431986[_0x19f92e('0x11')][_0x19f92e('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x431986[_0x19f92e('0x11')]?_0x431986[_0x19f92e('0x11')][_0x19f92e('0x15')]||null:null,'attributes':_0x431986[_0x19f92e('0x11')]?_0x431986[_0x19f92e('0x11')][_0x19f92e('0x4')]||null:null,'limit':_0x431986[_0x19f92e('0x11')]?_0x431986[_0x19f92e('0x11')]['limit']||null:null})[_0x19f92e('0x0')](function(_0x43cdb5){const _0xad9f01=_0x19f92e;logger[_0xad9f01('0x10')](_0xad9f01('0xa'),_0x431986),logger['debug'](_0xad9f01('0xa'),_0x431986,JSON[_0xad9f01('0xf')](_0x43cdb5)),_0x2c0fd0(_0x43cdb5);})[_0x19f92e('0x1')](function(_0x5d6cf1){const _0x4d7493=_0x19f92e;logger[_0x4d7493('0x6')](_0x4d7493('0xa'),_0x5d6cf1[_0x4d7493('0x9')],_0x431986),_0x5cd50e(_0x415fc5[_0x4d7493('0x6')](0x1f4,_0x5d6cf1['message']));});});},exports[_0x57ba4c('0xe')]=function(_0xbac985){const _0x3e8cbe=this;return new Promise(function(_0x88de28,_0x5ec66a){const _0x32c7e4=a144_0x65cc;return db[_0x32c7e4('0xb')][_0x32c7e4('0xc')]({'where':_0xbac985['options']?_0xbac985[_0x32c7e4('0x11')][_0x32c7e4('0x15')]||null:null})[_0x32c7e4('0x0')](function(_0x23899c){const _0x5b888c=_0x32c7e4;logger[_0x5b888c('0x10')](_0x5b888c('0xe'),_0xbac985),logger['debug']('DestroyCmHopperBlack',_0xbac985,JSON[_0x5b888c('0xf')](_0x23899c)),_0x88de28(_0x23899c);})['catch'](function(_0x116518){const _0x1cb651=_0x32c7e4;logger['error'](_0x1cb651('0xe'),_0x116518['message'],_0xbac985),_0x5ec66a(_0x3e8cbe['error'](0x1f4,_0x116518[_0x1cb651('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/index.js b/server/api/cmHopperBlack/index.js index 51911b3..19d9d25 100644 --- a/server/api/cmHopperBlack/index.js +++ b/server/api/cmHopperBlack/index.js @@ -1 +1 @@ -const a145_0x39b9=['delete','isAuthenticated','destroy','put','exports','./cmHopperBlack.controller','express','show','index','/describe','/:id','Router','get','describe','update','../../components/auth/service'];(function(_0xfed50,_0x39b9a8){const _0x1b6b99=function(_0x2c0b12){while(--_0x2c0b12){_0xfed50['push'](_0xfed50['shift']());}};_0x1b6b99(++_0x39b9a8);}(a145_0x39b9,0xfe));const a145_0x1b6b=function(_0xfed50,_0x39b9a8){_0xfed50=_0xfed50-0x0;let _0x1b6b99=a145_0x39b9[_0xfed50];return _0x1b6b99;};const _0x1c90c6=a145_0x1b6b;'use strict';const express=require(_0x1c90c6('0x8')),router=express[_0x1c90c6('0xd')](),auth=require(_0x1c90c6('0x1')),controller=require(_0x1c90c6('0x7'));router[_0x1c90c6('0xe')]('/',auth[_0x1c90c6('0x3')](),controller[_0x1c90c6('0xa')]),router[_0x1c90c6('0xe')](_0x1c90c6('0xb'),auth[_0x1c90c6('0x3')](),controller[_0x1c90c6('0xf')]),router[_0x1c90c6('0xe')](_0x1c90c6('0xc'),auth['isAuthenticated'](),controller[_0x1c90c6('0x9')]),router[_0x1c90c6('0x5')]('/:id',auth[_0x1c90c6('0x3')](),controller[_0x1c90c6('0x0')]),router[_0x1c90c6('0x2')](_0x1c90c6('0xc'),auth[_0x1c90c6('0x3')](),controller[_0x1c90c6('0x4')]),module[_0x1c90c6('0x6')]=router; \ No newline at end of file +const a145_0x2602=['index','destroy','exports','delete','express','describe','update','put','/describe','isAuthenticated','get','../../components/auth/service','/:id'];(function(_0x409410,_0x2602f0){const _0x593e27=function(_0x4cc1bd){while(--_0x4cc1bd){_0x409410['push'](_0x409410['shift']());}};_0x593e27(++_0x2602f0);}(a145_0x2602,0x1df));const a145_0x593e=function(_0x409410,_0x2602f0){_0x409410=_0x409410-0x0;let _0x593e27=a145_0x2602[_0x409410];return _0x593e27;};const _0x39c742=a145_0x593e;'use strict';const express=require(_0x39c742('0x6')),router=express['Router'](),auth=require(_0x39c742('0x0')),controller=require('./cmHopperBlack.controller');router[_0x39c742('0xc')]('/',auth[_0x39c742('0xb')](),controller[_0x39c742('0x2')]),router[_0x39c742('0xc')](_0x39c742('0xa'),auth[_0x39c742('0xb')](),controller[_0x39c742('0x7')]),router[_0x39c742('0xc')](_0x39c742('0x1'),auth[_0x39c742('0xb')](),controller['show']),router[_0x39c742('0x9')](_0x39c742('0x1'),auth['isAuthenticated'](),controller[_0x39c742('0x8')]),router[_0x39c742('0x5')](_0x39c742('0x1'),auth[_0x39c742('0xb')](),controller[_0x39c742('0x3')]),module[_0x39c742('0x4')]=router; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.attributes.js b/server/api/cmHopperFinal/cmHopperFinal.attributes.js index af212c1..ed1b4c2 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.attributes.js +++ b/server/api/cmHopperFinal/cmHopperFinal.attributes.js @@ -1 +1 @@ -const a146_0x5a90=['endtime','seconds','exports','getDataValue','INTEGER','followuptime','DATE','dispositionat','moment','BOOLEAN','diff','STRING','setDataValue'];(function(_0x5da365,_0x5a9075){const _0x1fae2a=function(_0x16f0bd){while(--_0x16f0bd){_0x5da365['push'](_0x5da365['shift']());}};_0x1fae2a(++_0x5a9075);}(a146_0x5a90,0x13d));const a146_0x1fae=function(_0x5da365,_0x5a9075){_0x5da365=_0x5da365-0x0;let _0x1fae2a=a146_0x5a90[_0x5da365];return _0x1fae2a;};const _0x3610d9=a146_0x1fae;'use strict';const Sequelize=require('sequelize'),moment=require(_0x3610d9('0x3'));module[_0x3610d9('0xa')]={'state':{'type':Sequelize[_0x3610d9('0xc')](0x2)},'statedesc':{'type':Sequelize[_0x3610d9('0x6')]},'scheduledat':{'type':Sequelize[_0x3610d9('0x1')]},'countbusyretry':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0},'uniqueid':{'type':Sequelize['STRING']},'originatecalleridnum':{'type':Sequelize[_0x3610d9('0x6')]},'originatecalleridname':{'type':Sequelize[_0x3610d9('0x6')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x3610d9('0x6')]},'starttime':{'type':Sequelize[_0x3610d9('0x1')]},'responsetime':{'type':Sequelize[_0x3610d9('0x1')]},'answertime':{'type':Sequelize['DATE']},'droptime':{'type':Sequelize[_0x3610d9('0x1')]},'endtime':{'type':Sequelize[_0x3610d9('0x1')]},'ringtime':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0},'holdtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0},'dropreason':{'type':Sequelize['STRING']},'campaign':{'type':Sequelize[_0x3610d9('0x6')]},'campaigntype':{'type':Sequelize[_0x3610d9('0x6')]},'membername':{'type':Sequelize[_0x3610d9('0x6')]},'reason':{'type':Sequelize[_0x3610d9('0x6')]},'disposition':{'type':Sequelize[_0x3610d9('0x6')]},'secondDisposition':{'type':Sequelize[_0x3610d9('0x6')]},'thirdDisposition':{'type':Sequelize[_0x3610d9('0x6')]},'dispositionat':{'type':Sequelize[_0x3610d9('0x1')],'set':function(_0x16f0bd){const _0x5a40f2=_0x3610d9,_0x5446ca=this[_0x5a40f2('0xb')](_0x5a40f2('0x8'));return _0x5446ca&&_0x16f0bd&&this[_0x5a40f2('0x7')](_0x5a40f2('0x0'),moment(_0x16f0bd)[_0x5a40f2('0x5')](moment(_0x5446ca),_0x5a40f2('0x9'))),this[_0x5a40f2('0x7')](_0x5a40f2('0x2'),_0x16f0bd);}},'amd':{'type':Sequelize[_0x3610d9('0x4')],'defaultValue':![]},'fax':{'type':Sequelize[_0x3610d9('0x4')],'defaultValue':![]},'blacklist':{'type':Sequelize[_0x3610d9('0x4')],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0x3610d9('0x4')],'defaultValue':![]},'rescheduledat':{'type':Sequelize['DATE']},'callback':{'type':Sequelize[_0x3610d9('0x4')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x3610d9('0x6')],'defaultValue':null},'callbackat':{'type':Sequelize['DATE']},'deleted':{'type':Sequelize['STRING'],'defaultValue':null},'deletedat':{'type':Sequelize[_0x3610d9('0x1')]},'recallme':{'type':Sequelize[_0x3610d9('0x4')],'defaultValue':![]},'agiafterat':{'type':Sequelize[_0x3610d9('0x1')]},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x3610d9('0xc')],'defaultValue':0x0}}; \ No newline at end of file +const a146_0x7613=['DATE','seconds','moment','INTEGER','setDataValue','sequelize','getDataValue','BOOLEAN','dispositionat','STRING'];(function(_0x70f3f0,_0x76137){const _0x560447=function(_0x2a6b67){while(--_0x2a6b67){_0x70f3f0['push'](_0x70f3f0['shift']());}};_0x560447(++_0x76137);}(a146_0x7613,0x17c));const a146_0x5604=function(_0x70f3f0,_0x76137){_0x70f3f0=_0x70f3f0-0x0;let _0x560447=a146_0x7613[_0x70f3f0];return _0x560447;};const _0x372204=a146_0x5604;'use strict';const Sequelize=require(_0x372204('0x5')),moment=require(_0x372204('0x2'));module['exports']={'state':{'type':Sequelize[_0x372204('0x3')](0x2)},'statedesc':{'type':Sequelize[_0x372204('0x9')]},'scheduledat':{'type':Sequelize[_0x372204('0x0')]},'countbusyretry':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0x372204('0x9')]},'originatecalleridnum':{'type':Sequelize[_0x372204('0x9')]},'originatecalleridname':{'type':Sequelize[_0x372204('0x9')]},'calleridnum':{'type':Sequelize[_0x372204('0x9')]},'calleridname':{'type':Sequelize[_0x372204('0x9')]},'starttime':{'type':Sequelize[_0x372204('0x0')]},'responsetime':{'type':Sequelize[_0x372204('0x0')]},'answertime':{'type':Sequelize[_0x372204('0x0')]},'droptime':{'type':Sequelize[_0x372204('0x0')]},'endtime':{'type':Sequelize[_0x372204('0x0')]},'ringtime':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'holdtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'talktime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x372204('0x9')]},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize[_0x372204('0x9')]},'membername':{'type':Sequelize['STRING']},'reason':{'type':Sequelize[_0x372204('0x9')]},'disposition':{'type':Sequelize[_0x372204('0x9')]},'secondDisposition':{'type':Sequelize[_0x372204('0x9')]},'thirdDisposition':{'type':Sequelize[_0x372204('0x9')]},'dispositionat':{'type':Sequelize[_0x372204('0x0')],'set':function(_0x2a6b67){const _0x43b5e8=_0x372204,_0x4b498e=this[_0x43b5e8('0x6')]('endtime');return _0x4b498e&&_0x2a6b67&&this[_0x43b5e8('0x4')]('followuptime',moment(_0x2a6b67)['diff'](moment(_0x4b498e),_0x43b5e8('0x1'))),this[_0x43b5e8('0x4')](_0x43b5e8('0x8'),_0x2a6b67);}},'amd':{'type':Sequelize[_0x372204('0x7')],'defaultValue':![]},'fax':{'type':Sequelize[_0x372204('0x7')],'defaultValue':![]},'blacklist':{'type':Sequelize[_0x372204('0x7')],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0x372204('0x7')],'defaultValue':![]},'rescheduledat':{'type':Sequelize[_0x372204('0x0')]},'callback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x372204('0x9')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x372204('0x0')]},'deleted':{'type':Sequelize[_0x372204('0x9')],'defaultValue':null},'deletedat':{'type':Sequelize[_0x372204('0x0')]},'recallme':{'type':Sequelize[_0x372204('0x7')],'defaultValue':![]},'agiafterat':{'type':Sequelize[_0x372204('0x0')]},'countnosuchnumberretry':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x372204('0x3')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.controller.js b/server/api/cmHopperFinal/cmHopperFinal.controller.js index 741a0cf..3d9d682 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.controller.js +++ b/server/api/cmHopperFinal/cmHopperFinal.controller.js @@ -1 +1 @@ -const a147_0x54f9=['checkContactHopper','options','busyContacts','name','VIRTUAL','`state`\x20=\x205,\x201,\x20null','filters','phone','VoiceQueueId','abandonedContacts','moveContactsIvrCampaignHopperFinal','limit','squel','`state`\x20=\x208,\x201,\x20null','`state`\x20=\x2019,\x201,\x20null','set','fields','calleridnum\x20IS\x20NOT\x20NULL','includeAll','update','calleridnum','params','ANY_VALUE(CampaignId)','undefined','toString','Content-Range','cm_hopper','`state`\x20=\x200,\x201,\x20null','offset','CampaignId\x20=\x20?','noAnswerContacts','CmHopperFinal','COUNT','filter','field','findOne','insert','ANY_VALUE(calleridnum)','model','keys','createdAt','pick','query','attributes','ANY_VALUE(ContactId)','countContactsQueueCampaignHopperFinal','uniqueid','then','describe','calleridnum\x20NOT\x20IN\x20(?)','nolimit','status','json','select','state\x20=\x204','`state`\x20=\x2010\x20,\x201,\x20null','updatedAt','sort','findAll','rawAttributes','include','map','state','dropContacts','`state`\x20=\x2011\x20,\x201,\x20null','length','NOW()','moveContactsQueueCampaignHopperFinal','ANY_VALUE(ListId)','group','merge','stack','from','ListId','VoiceQueueId\x20=\x20?','fromQuery','answeringMachine','intersection','state\x20=\x20?','VoiceQueue','`state`\x20=\x2022,\x201,\x20null','../../mysqldb','../../components/parsers/qs','send','ANY_VALUE(VoiceQueueId)','count','body','where','key','countContactsIvrCampaignHopperFinal','scheduledAt','type','`state`\x20=\x203,\x201,\x20null','catch','congestionContacts','noSuchContacts','api','reCallContacts','into','../../config/logger','cm_hopper_final','sequelize','sendStatus','Campaign','literal','CmHopper','CampaignId','ContactId'];(function(_0x23c099,_0x54f9b2){const _0x1c10d9=function(_0xef8d1c){while(--_0xef8d1c){_0x23c099['push'](_0x23c099['shift']());}};_0x1c10d9(++_0x54f9b2);}(a147_0x54f9,0x1f3));const a147_0x1c10=function(_0x23c099,_0x54f9b2){_0x23c099=_0x23c099-0x0;let _0x1c10d9=a147_0x54f9[_0x23c099];return _0x1c10d9;};const _0x580506=a147_0x1c10;'use strict';const _=require('lodash'),squel=require(_0x580506('0x35')),qs=require(_0x580506('0xf')),logger=require(_0x580506('0x20'))(_0x580506('0x1d')),db=require(_0x580506('0xe'))['db'],{Op}=require('sequelize');function respondWithResult(_0xef8d1c,_0x5bb53a){return _0x5bb53a=_0x5bb53a||0xc8,function(_0x501139){const _0x55f279=a147_0x1c10;if(_0x501139)return _0xef8d1c[_0x55f279('0x5c')](_0x5bb53a)[_0x55f279('0x5d')](_0x501139);};}function respondWithFilteredResult(_0xb91055,_0x3c8dd0){return function(_0x3b66f6){const _0x2f80ea=a147_0x1c10;if(_0x3b66f6){const _0x112132=_0x3b66f6['count'],_0xf5e100=_0x3c8dd0[_0x2f80ea('0x45')];let _0xabdceb=_0x3c8dd0[_0x2f80ea('0x45')]+_0x3c8dd0[_0x2f80ea('0x34')],_0x3f7e23;return _0xabdceb>=_0x112132?(_0xabdceb=_0x112132,_0x3f7e23=0xc8):_0x3f7e23=0xce,_0xb91055['status'](_0x3f7e23),_0xb91055[_0x2f80ea('0x38')](_0x2f80ea('0x42'),_0xf5e100+'-'+_0xabdceb+'/'+_0x112132)[_0x2f80ea('0x5d')](_0x3b66f6);}return null;};}function saveUpdates(_0x43aa6f){return function(_0x48000e){const _0x1f93b6=a147_0x1c10;if(_0x48000e)return _0x48000e[_0x1f93b6('0x3c')](_0x43aa6f)['then'](function(_0x2147fd){return _0x2147fd;});return null;};}function handleEntityNotFound(_0x4d8936){return function(_0x17fc77){const _0x1e5e45=a147_0x1c10;return!_0x17fc77&&_0x4d8936[_0x1e5e45('0x23')](0x194),_0x17fc77;};}function handleError(_0x53bea8,_0x327b12){return _0x327b12=_0x327b12||0x1f4,function(_0x2a7ae8){const _0x3832c7=a147_0x1c10;logger['error'](_0x2a7ae8[_0x3832c7('0x4')]),_0x2a7ae8['name']&&delete _0x2a7ae8[_0x3832c7('0x2c')],_0x53bea8[_0x3832c7('0x5c')](_0x327b12)[_0x3832c7('0x10')](_0x2a7ae8);};}exports['index']=function(_0x2d702c,_0x3d9bc0){const _0x119a97=_0x580506;let _0x9a0183={};const _0x8986c9={},_0x1bebb1={'count':0x0,'rows':[]},_0x457c4a=_['map'](db[_0x119a97('0x48')][_0x119a97('0x64')],function(_0x1f6ae3){const _0x24eb18=_0x119a97;return{'name':_0x1f6ae3['fieldName'],'type':_0x1f6ae3['type'][_0x24eb18('0x15')]};});_0x8986c9[_0x119a97('0x4f')]=_[_0x119a97('0x66')](_0x457c4a,_0x119a97('0x2c')),_0x8986c9[_0x119a97('0x53')]=_[_0x119a97('0x50')](_0x2d702c[_0x119a97('0x53')]),_0x8986c9[_0x119a97('0x2f')]=_['intersection'](_0x8986c9[_0x119a97('0x4f')],_0x8986c9[_0x119a97('0x53')]),_0x9a0183['attributes']=_['intersection'](_0x8986c9[_0x119a97('0x4f')],qs[_0x119a97('0x39')](_0x2d702c[_0x119a97('0x53')][_0x119a97('0x39')])),_0x9a0183['attributes']=_0x9a0183[_0x119a97('0x54')][_0x119a97('0x6a')]?_0x9a0183[_0x119a97('0x54')]:_0x8986c9[_0x119a97('0x4f')];typeof _0x2d702c[_0x119a97('0x53')][_0x119a97('0x5b')]===_0x119a97('0x40')&&(_0x9a0183[_0x119a97('0x34')]=qs[_0x119a97('0x34')](_0x2d702c['query'][_0x119a97('0x34')]),_0x9a0183[_0x119a97('0x45')]=qs['offset'](_0x2d702c[_0x119a97('0x53')]['offset']));_0x9a0183['order']=qs['sort'](_0x2d702c['query'][_0x119a97('0x62')]),_0x9a0183[_0x119a97('0x14')]=qs['filters'](_[_0x119a97('0x52')](_0x2d702c[_0x119a97('0x53')],_0x8986c9['filters']),_0x457c4a);_0x2d702c[_0x119a97('0x53')][_0x119a97('0x4a')]&&(_0x9a0183[_0x119a97('0x14')]=_[_0x119a97('0x3')](_0x9a0183[_0x119a97('0x14')],{[Op['or']]:_['map'](_0x457c4a,function(_0x2e6ca5){const _0x346ff2=_0x119a97;if(_0x2e6ca5[_0x346ff2('0x18')]!==_0x346ff2('0x2d')){const _0xe8005d={};return _0xe8005d[_0x2e6ca5[_0x346ff2('0x2c')]]={[Op['like']]:'%'+_0x2d702c['query']['filter']+'%'},_0xe8005d;}})}));_0x9a0183=_['merge']({},_0x9a0183,_0x2d702c[_0x119a97('0x2a')]);const _0x2e94cc={'where':_0x9a0183[_0x119a97('0x14')]};return db[_0x119a97('0x48')][_0x119a97('0x12')](_0x2e94cc)['then'](function(_0x4f070f){const _0x51cfa7=_0x119a97;return _0x1bebb1[_0x51cfa7('0x12')]=_0x4f070f,_0x2d702c[_0x51cfa7('0x53')][_0x51cfa7('0x3b')]&&(_0x9a0183[_0x51cfa7('0x65')]=[{'all':!![]}]),db['CmHopperFinal'][_0x51cfa7('0x63')](_0x9a0183);})['then'](function(_0x11f7de){return _0x1bebb1['rows']=_0x11f7de,_0x1bebb1;})['then'](respondWithFilteredResult(_0x3d9bc0,_0x9a0183))['catch'](handleError(_0x3d9bc0,null));},exports['show']=function(_0x4889d7,_0x14e0c3){const _0x4c656e=_0x580506;let _0x718b2={'raw':!![],'where':{'id':_0x4889d7[_0x4c656e('0x3e')]['id']}};const _0xff5547={};return _0xff5547[_0x4c656e('0x4f')]=_[_0x4c656e('0x50')](db[_0x4c656e('0x48')]['rawAttributes']),_0xff5547[_0x4c656e('0x53')]=_[_0x4c656e('0x50')](_0x4889d7['query']),_0xff5547[_0x4c656e('0x2f')]=_[_0x4c656e('0xa')](_0xff5547['model'],_0xff5547[_0x4c656e('0x53')]),_0x718b2[_0x4c656e('0x54')]=_[_0x4c656e('0xa')](_0xff5547[_0x4c656e('0x4f')],qs[_0x4c656e('0x39')](_0x4889d7[_0x4c656e('0x53')][_0x4c656e('0x39')])),_0x718b2['attributes']=_0x718b2['attributes'][_0x4c656e('0x6a')]?_0x718b2[_0x4c656e('0x54')]:_0xff5547[_0x4c656e('0x4f')],_0x4889d7[_0x4c656e('0x53')][_0x4c656e('0x3b')]&&(_0x718b2[_0x4c656e('0x65')]=[{'all':!![]}]),_0x718b2=_['merge']({},_0x718b2,_0x4889d7[_0x4c656e('0x2a')]),db[_0x4c656e('0x48')][_0x4c656e('0x4c')](_0x718b2)[_0x4c656e('0x58')](handleEntityNotFound(_0x14e0c3,null))[_0x4c656e('0x58')](respondWithResult(_0x14e0c3,null))['catch'](handleError(_0x14e0c3,null));},exports[_0x580506('0x59')]=function(_0x47a690,_0xb4304){const _0x1d4047=_0x580506;return db[_0x1d4047('0x48')]['describe']()[_0x1d4047('0x58')](respondWithResult(_0xb4304,null))['catch'](handleError(_0xb4304,null));},exports['update']=function(_0xee3ac7,_0x5aaf3b){const _0xbfb867=_0x580506;return _0xee3ac7[_0xbfb867('0x13')][_0xbfb867('0x57')]&&delete _0xee3ac7['body']['uniqueid'],db[_0xbfb867('0x48')][_0xbfb867('0x4c')]({'where':{'uniqueid':_0xee3ac7[_0xbfb867('0x3e')]['id']}})[_0xbfb867('0x58')](handleEntityNotFound(_0x5aaf3b,null))[_0xbfb867('0x58')](saveUpdates(_0xee3ac7['body'],null))[_0xbfb867('0x58')](respondWithResult(_0x5aaf3b,null))[_0xbfb867('0x1a')](handleError(_0x5aaf3b,null));},exports[_0x580506('0x56')]=function(_0x53129a,_0x5ea94d){const _0x4daa34=_0x580506;return db['CmHopperFinal']['findAll']({'raw':![],'where':{'VoiceQueueId':_0x53129a['params']['id']},'attributes':[[db[_0x4daa34('0x22')]['fn']('COUNT',db[_0x4daa34('0x22')]['fn']('IF',db[_0x4daa34('0x22')][_0x4daa34('0x25')]('`state`\x20=\x200,\x201,\x20null'))),_0x4daa34('0x1c')],[db[_0x4daa34('0x22')]['fn'](_0x4daa34('0x49'),db[_0x4daa34('0x22')]['fn']('IF',db[_0x4daa34('0x22')][_0x4daa34('0x25')](_0x4daa34('0x19')))),'noAnswerContacts'],[db['sequelize']['fn'](_0x4daa34('0x49'),db['sequelize']['fn']('IF',db[_0x4daa34('0x22')][_0x4daa34('0x25')](_0x4daa34('0x2e')))),'busyContacts'],[db[_0x4daa34('0x22')]['fn'](_0x4daa34('0x49'),db[_0x4daa34('0x22')]['fn']('IF',db[_0x4daa34('0x22')][_0x4daa34('0x25')](_0x4daa34('0x36')))),'congestionContacts'],[db[_0x4daa34('0x22')]['fn']('COUNT',db[_0x4daa34('0x22')]['fn']('IF',db[_0x4daa34('0x22')][_0x4daa34('0x25')](_0x4daa34('0x60')))),_0x4daa34('0x68')],[db[_0x4daa34('0x22')]['fn']('COUNT',db[_0x4daa34('0x22')]['fn']('IF',db[_0x4daa34('0x22')]['literal'](_0x4daa34('0x69')))),_0x4daa34('0x32')],[db[_0x4daa34('0x22')]['fn']('COUNT',db[_0x4daa34('0x22')]['fn']('IF',db[_0x4daa34('0x22')]['literal'](_0x4daa34('0xd')))),_0x4daa34('0x1e')],[db['sequelize']['fn'](_0x4daa34('0x49'),db[_0x4daa34('0x22')]['fn']('IF',db[_0x4daa34('0x22')]['literal']('`state`\x20=\x2019,\x201,\x20null'))),_0x4daa34('0x9')]]})[_0x4daa34('0x58')](handleEntityNotFound(_0x5ea94d,null))[_0x4daa34('0x58')](respondWithResult(_0x5ea94d,null))[_0x4daa34('0x1a')](handleError(_0x5ea94d,null));},exports[_0x580506('0x16')]=function(_0x29b203,_0xd9a11b){const _0x266394=_0x580506;return db[_0x266394('0x48')][_0x266394('0x63')]({'raw':![],'where':{'CampaignId':_0x29b203[_0x266394('0x3e')]['id']},'attributes':[[db[_0x266394('0x22')]['fn']('COUNT',db[_0x266394('0x22')]['fn']('IF',db['sequelize'][_0x266394('0x25')](_0x266394('0x44')))),_0x266394('0x1c')],[db[_0x266394('0x22')]['fn'](_0x266394('0x49'),db[_0x266394('0x22')]['fn']('IF',db[_0x266394('0x22')][_0x266394('0x25')](_0x266394('0x19')))),_0x266394('0x47')],[db[_0x266394('0x22')]['fn'](_0x266394('0x49'),db['sequelize']['fn']('IF',db[_0x266394('0x22')]['literal']('`state`\x20=\x205,\x201,\x20null'))),_0x266394('0x2b')],[db[_0x266394('0x22')]['fn'](_0x266394('0x49'),db['sequelize']['fn']('IF',db[_0x266394('0x22')][_0x266394('0x25')]('`state`\x20=\x208,\x201,\x20null'))),_0x266394('0x1b')],[db[_0x266394('0x22')]['fn'](_0x266394('0x49'),db[_0x266394('0x22')]['fn']('IF',db[_0x266394('0x22')][_0x266394('0x25')](_0x266394('0x60')))),'dropContacts'],[db[_0x266394('0x22')]['fn'](_0x266394('0x49'),db['sequelize']['fn']('IF',db['sequelize'][_0x266394('0x25')](_0x266394('0x69')))),_0x266394('0x32')],[db['sequelize']['fn']('COUNT',db[_0x266394('0x22')]['fn']('IF',db[_0x266394('0x22')][_0x266394('0x25')](_0x266394('0xd')))),_0x266394('0x1e')],[db[_0x266394('0x22')]['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x266394('0x22')][_0x266394('0x25')](_0x266394('0x37')))),'answeringMachine']]})[_0x266394('0x58')](handleEntityNotFound(_0xd9a11b,null))[_0x266394('0x58')](respondWithResult(_0xd9a11b,null))[_0x266394('0x1a')](handleError(_0xd9a11b,null));},exports[_0x580506('0x0')]=function(_0x2d41a5,_0xb8a0da){const _0x56e20d=_0x580506;return db[_0x56e20d('0xc')][_0x56e20d('0x4c')]({'where':{'id':_0x2d41a5['params']['id']}})[_0x56e20d('0x58')](handleEntityNotFound(_0xb8a0da,null))[_0x56e20d('0x58')](function(_0x32577b){const _0x13f97d=_0x56e20d;let _0x431879;if(_0x32577b)return _0x431879=squel[_0x13f97d('0x4d')]()[_0x13f97d('0x1f')](_0x13f97d('0x43'))[_0x13f97d('0x8')]([_0x13f97d('0x30'),'scheduledAt',_0x13f97d('0x28'),_0x13f97d('0x6'),_0x13f97d('0x31'),_0x13f97d('0x51'),_0x13f97d('0x61')],squel[_0x13f97d('0x5e')]()[_0x13f97d('0x4b')](_0x13f97d('0x4e'),_0x13f97d('0x30'))[_0x13f97d('0x4b')](_0x13f97d('0x6b'),'scheduledAt')[_0x13f97d('0x4b')](_0x13f97d('0x55'),_0x13f97d('0x28'))[_0x13f97d('0x4b')](_0x13f97d('0x1'),_0x13f97d('0x6'))[_0x13f97d('0x4b')](_0x13f97d('0x11'),_0x13f97d('0x31'))['field']('NOW()',_0x13f97d('0x51'))[_0x13f97d('0x4b')](_0x13f97d('0x6b'),'updatedAt')[_0x13f97d('0x5')](_0x13f97d('0x21'))[_0x13f97d('0x14')](_0x13f97d('0x7'),_0x2d41a5[_0x13f97d('0x3e')]['id'][_0x13f97d('0x41')]())[_0x13f97d('0x14')](_0x13f97d('0xb'),_0x2d41a5['body'][_0x13f97d('0x67')][_0x13f97d('0x41')]())[_0x13f97d('0x14')]('calleridnum\x20IS\x20NOT\x20NULL')[_0x13f97d('0x14')](_0x13f97d('0x5a'),squel['select']()['field'](_0x13f97d('0x30'))[_0x13f97d('0x5')](_0x13f97d('0x43'))[_0x13f97d('0x14')](_0x13f97d('0x7'),_0x2d41a5[_0x13f97d('0x3e')]['id'][_0x13f97d('0x41')]()))[_0x13f97d('0x14')]('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x13f97d('0x5e')]()[_0x13f97d('0x4b')](_0x13f97d('0x3d'))[_0x13f97d('0x5')](_0x13f97d('0x21'))['where']('VoiceQueueId\x20=\x20?',_0x2d41a5[_0x13f97d('0x3e')]['id']['toString']())[_0x13f97d('0x14')](_0x13f97d('0x5f')))['group']('ContactId'))[_0x13f97d('0x41')](),db['sequelize'][_0x13f97d('0x53')](_0x431879);return[];})[_0x56e20d('0x58')](respondWithResult(_0xb8a0da,null))[_0x56e20d('0x1a')](handleError(_0xb8a0da,null));},exports[_0x580506('0x33')]=function(_0x5d23bc,_0x91fcba){const _0x3fe11e=_0x580506;return db[_0x3fe11e('0x24')][_0x3fe11e('0x4c')]({'where':{'id':_0x5d23bc[_0x3fe11e('0x3e')]['id']}})[_0x3fe11e('0x58')](handleEntityNotFound(_0x91fcba,null))[_0x3fe11e('0x58')](function(_0x10aea5){const _0x380a23=_0x3fe11e;let _0x5baddd;if(_0x10aea5)return _0x5baddd=squel['insert']()[_0x380a23('0x1f')](_0x380a23('0x43'))[_0x380a23('0x8')](['phone',_0x380a23('0x17'),_0x380a23('0x28'),_0x380a23('0x6'),_0x380a23('0x27'),_0x380a23('0x51'),_0x380a23('0x61')],squel['select']()[_0x380a23('0x4b')]('ANY_VALUE(calleridnum)',_0x380a23('0x30'))[_0x380a23('0x4b')]('NOW()','scheduledAt')['field']('ANY_VALUE(ContactId)',_0x380a23('0x28'))['field'](_0x380a23('0x1'),'ListId')[_0x380a23('0x4b')](_0x380a23('0x3f'),_0x380a23('0x27'))[_0x380a23('0x4b')](_0x380a23('0x6b'),_0x380a23('0x51'))[_0x380a23('0x4b')](_0x380a23('0x6b'),'updatedAt')['from'](_0x380a23('0x21'))['where'](_0x380a23('0x46'),_0x5d23bc[_0x380a23('0x3e')]['id']['toString']())['where'](_0x380a23('0xb'),_0x5d23bc[_0x380a23('0x13')][_0x380a23('0x67')]['toString']())[_0x380a23('0x14')](_0x380a23('0x3a'))[_0x380a23('0x14')](_0x380a23('0x5a'),squel[_0x380a23('0x5e')]()[_0x380a23('0x4b')](_0x380a23('0x30'))[_0x380a23('0x5')](_0x380a23('0x43'))[_0x380a23('0x14')]('CampaignId\x20=\x20?',_0x5d23bc[_0x380a23('0x3e')]['id'][_0x380a23('0x41')]()))[_0x380a23('0x14')](_0x380a23('0x5a'),squel[_0x380a23('0x5e')]()[_0x380a23('0x4b')](_0x380a23('0x3d'))[_0x380a23('0x5')]('cm_hopper_final')[_0x380a23('0x14')](_0x380a23('0x46'),_0x5d23bc['params']['id'][_0x380a23('0x41')]())[_0x380a23('0x14')](_0x380a23('0x5f')))[_0x380a23('0x2')](_0x380a23('0x28')))['toString'](),db['sequelize']['query'](_0x5baddd);return[];})[_0x3fe11e('0x58')](respondWithResult(_0x91fcba,null))[_0x3fe11e('0x1a')](handleError(_0x91fcba,null));},exports[_0x580506('0x29')]=function(_0x596033,_0x1f76b7){const _0x22080d=_0x580506;return db[_0x22080d('0x26')]['findOne']({'where':{'VoiceQueueId':_0x596033[_0x22080d('0x13')][_0x22080d('0x31')],'CampaignId':_0x596033['body']['CampaignId'],'ContactId':_0x596033['body'][_0x22080d('0x28')]}})['then'](handleEntityNotFound(_0x1f76b7,null))[_0x22080d('0x58')](function(_0x2a1116){if(_0x2a1116)return _0x2a1116;return null;})[_0x22080d('0x58')](respondWithResult(_0x1f76b7,null))[_0x22080d('0x1a')](handleError(_0x1f76b7,null));}; \ No newline at end of file +const a147_0x4238=['length','CampaignId','noSuchContacts','VoiceQueueId','moveContactsQueueCampaignHopperFinal','`state`\x20=\x2019,\x201,\x20null','filters','into','set','type','ContactId','ANY_VALUE(ListId)','params','calleridnum','filter','updatedAt','VoiceQueueId\x20=\x20?','field','`state`\x20=\x2022,\x201,\x20null','sendStatus','squel','`state`\x20=\x2010\x20,\x201,\x20null','Content-Range','cm_hopper_final','`state`\x20=\x208,\x201,\x20null','then','calleridnum\x20NOT\x20IN\x20(?)','CampaignId\x20=\x20?','congestionContacts','ANY_VALUE(ContactId)','checkContactHopper','name','NOW()','VIRTUAL','select','fieldName','intersection','noAnswerContacts','reCallContacts','../../components/parsers/qs','nolimit','ANY_VALUE(calleridnum)','options','`state`\x20=\x203,\x201,\x20null','`state`\x20=\x2011\x20,\x201,\x20null','uniqueid','sort','where','CmHopper','CmHopperFinal','rawAttributes','findOne','attributes','model','index','`state`\x20=\x200,\x201,\x20null','busyContacts','ANY_VALUE(VoiceQueueId)','catch','state','state\x20=\x20?','fields','offset','answeringMachine','moveContactsIvrCampaignHopperFinal','json','map','literal','error','show','describe','merge','fromQuery','include','state\x20=\x204','body','ListId','undefined','lodash','cm_hopper','update','createdAt','dropContacts','sequelize','COUNT','status','abandonedContacts','includeAll','findAll','group','query','toString','keys','order','from','`state`\x20=\x205,\x201,\x20null','ANY_VALUE(CampaignId)','insert','api','calleridnum\x20IS\x20NOT\x20NULL','count','countContactsQueueCampaignHopperFinal','scheduledAt','limit','phone'];(function(_0x1f8165,_0x42386c){const _0x513106=function(_0x29b18b){while(--_0x29b18b){_0x1f8165['push'](_0x1f8165['shift']());}};_0x513106(++_0x42386c);}(a147_0x4238,0x88));const a147_0x5131=function(_0x1f8165,_0x42386c){_0x1f8165=_0x1f8165-0x0;let _0x513106=a147_0x4238[_0x1f8165];return _0x513106;};const _0x4c6609=a147_0x5131;'use strict';const _=require(_0x4c6609('0x2f')),squel=require(_0x4c6609('0x5e')),qs=require(_0x4c6609('0x8')),logger=require('../../config/logger')(_0x4c6609('0x43')),db=require('../../mysqldb')['db'],{Op}=require(_0x4c6609('0x34'));function respondWithResult(_0x29b18b,_0x22a87a){return _0x22a87a=_0x22a87a||0xc8,function(_0x4c098e){const _0x58bc60=a147_0x5131;if(_0x4c098e)return _0x29b18b['status'](_0x22a87a)[_0x58bc60('0x22')](_0x4c098e);};}function respondWithFilteredResult(_0x2cd6d8,_0x413d89){return function(_0x3fe63a){const _0x3fabc1=a147_0x5131;if(_0x3fe63a){const _0x529d06=_0x3fe63a[_0x3fabc1('0x45')],_0x2e70e9=_0x413d89[_0x3fabc1('0x1f')];let _0x4fd9d3=_0x413d89[_0x3fabc1('0x1f')]+_0x413d89[_0x3fabc1('0x48')],_0x2ac29c;return _0x4fd9d3>=_0x529d06?(_0x4fd9d3=_0x529d06,_0x2ac29c=0xc8):_0x2ac29c=0xce,_0x2cd6d8[_0x3fabc1('0x36')](_0x2ac29c),_0x2cd6d8[_0x3fabc1('0x52')](_0x3fabc1('0x60'),_0x2e70e9+'-'+_0x4fd9d3+'/'+_0x529d06)['json'](_0x3fe63a);}return null;};}function saveUpdates(_0x2bbc1a){return function(_0x5aaf4c){const _0x5697ac=a147_0x5131;if(_0x5aaf4c)return _0x5aaf4c[_0x5697ac('0x31')](_0x2bbc1a)[_0x5697ac('0x63')](function(_0x193d00){return _0x193d00;});return null;};}function handleEntityNotFound(_0x4f0373){return function(_0x47bfa2){const _0x25d95d=a147_0x5131;return!_0x47bfa2&&_0x4f0373[_0x25d95d('0x5d')](0x194),_0x47bfa2;};}function handleError(_0x54a001,_0xf0f711){return _0xf0f711=_0xf0f711||0x1f4,function(_0x594539){const _0x39dfa0=a147_0x5131;logger[_0x39dfa0('0x25')](_0x594539['stack']),_0x594539['name']&&delete _0x594539['name'],_0x54a001[_0x39dfa0('0x36')](_0xf0f711)['send'](_0x594539);};}exports[_0x4c6609('0x17')]=function(_0x476ff0,_0x4ad1ce){const _0x2507aa=_0x4c6609;let _0x17d15e={};const _0x4cbfc={},_0x27f8b3={'count':0x0,'rows':[]},_0x5a2bc7=_['map'](db[_0x2507aa('0x12')][_0x2507aa('0x13')],function(_0x2f1715){const _0x322a9b=_0x2507aa;return{'name':_0x2f1715[_0x322a9b('0x4')],'type':_0x2f1715[_0x322a9b('0x53')]['key']};});_0x4cbfc[_0x2507aa('0x16')]=_['map'](_0x5a2bc7,_0x2507aa('0x0')),_0x4cbfc[_0x2507aa('0x3b')]=_[_0x2507aa('0x3d')](_0x476ff0[_0x2507aa('0x3b')]),_0x4cbfc[_0x2507aa('0x50')]=_[_0x2507aa('0x5')](_0x4cbfc[_0x2507aa('0x16')],_0x4cbfc['query']),_0x17d15e[_0x2507aa('0x15')]=_[_0x2507aa('0x5')](_0x4cbfc[_0x2507aa('0x16')],qs[_0x2507aa('0x1e')](_0x476ff0['query'][_0x2507aa('0x1e')])),_0x17d15e[_0x2507aa('0x15')]=_0x17d15e[_0x2507aa('0x15')][_0x2507aa('0x4a')]?_0x17d15e[_0x2507aa('0x15')]:_0x4cbfc['model'];typeof _0x476ff0[_0x2507aa('0x3b')][_0x2507aa('0x9')]===_0x2507aa('0x2e')&&(_0x17d15e[_0x2507aa('0x48')]=qs[_0x2507aa('0x48')](_0x476ff0['query'][_0x2507aa('0x48')]),_0x17d15e[_0x2507aa('0x1f')]=qs[_0x2507aa('0x1f')](_0x476ff0[_0x2507aa('0x3b')][_0x2507aa('0x1f')]));_0x17d15e[_0x2507aa('0x3e')]=qs['sort'](_0x476ff0[_0x2507aa('0x3b')][_0x2507aa('0xf')]),_0x17d15e[_0x2507aa('0x10')]=qs[_0x2507aa('0x50')](_['pick'](_0x476ff0[_0x2507aa('0x3b')],_0x4cbfc['filters']),_0x5a2bc7);_0x476ff0[_0x2507aa('0x3b')][_0x2507aa('0x58')]&&(_0x17d15e[_0x2507aa('0x10')]=_[_0x2507aa('0x28')](_0x17d15e[_0x2507aa('0x10')],{[Op['or']]:_[_0x2507aa('0x23')](_0x5a2bc7,function(_0x31066a){const _0x33b68f=_0x2507aa;if(_0x31066a[_0x33b68f('0x53')]!==_0x33b68f('0x2')){const _0x57564a={};return _0x57564a[_0x31066a[_0x33b68f('0x0')]]={[Op['like']]:'%'+_0x476ff0['query']['filter']+'%'},_0x57564a;}})}));_0x17d15e=_[_0x2507aa('0x28')]({},_0x17d15e,_0x476ff0[_0x2507aa('0xb')]);const _0x7a3cf2={'where':_0x17d15e[_0x2507aa('0x10')]};return db[_0x2507aa('0x12')][_0x2507aa('0x45')](_0x7a3cf2)['then'](function(_0x10f179){const _0xd1d118=_0x2507aa;return _0x27f8b3[_0xd1d118('0x45')]=_0x10f179,_0x476ff0[_0xd1d118('0x3b')]['includeAll']&&(_0x17d15e[_0xd1d118('0x2a')]=[{'all':!![]}]),db[_0xd1d118('0x12')][_0xd1d118('0x39')](_0x17d15e);})[_0x2507aa('0x63')](function(_0x342485){return _0x27f8b3['rows']=_0x342485,_0x27f8b3;})[_0x2507aa('0x63')](respondWithFilteredResult(_0x4ad1ce,_0x17d15e))[_0x2507aa('0x1b')](handleError(_0x4ad1ce,null));},exports[_0x4c6609('0x26')]=function(_0x18c382,_0x262d5d){const _0xb973da=_0x4c6609;let _0x348981={'raw':!![],'where':{'id':_0x18c382[_0xb973da('0x56')]['id']}};const _0x358557={};return _0x358557['model']=_[_0xb973da('0x3d')](db['CmHopperFinal'][_0xb973da('0x13')]),_0x358557[_0xb973da('0x3b')]=_[_0xb973da('0x3d')](_0x18c382['query']),_0x358557[_0xb973da('0x50')]=_[_0xb973da('0x5')](_0x358557[_0xb973da('0x16')],_0x358557[_0xb973da('0x3b')]),_0x348981[_0xb973da('0x15')]=_[_0xb973da('0x5')](_0x358557[_0xb973da('0x16')],qs[_0xb973da('0x1e')](_0x18c382[_0xb973da('0x3b')][_0xb973da('0x1e')])),_0x348981[_0xb973da('0x15')]=_0x348981[_0xb973da('0x15')]['length']?_0x348981[_0xb973da('0x15')]:_0x358557['model'],_0x18c382[_0xb973da('0x3b')][_0xb973da('0x38')]&&(_0x348981[_0xb973da('0x2a')]=[{'all':!![]}]),_0x348981=_[_0xb973da('0x28')]({},_0x348981,_0x18c382[_0xb973da('0xb')]),db[_0xb973da('0x12')]['findOne'](_0x348981)[_0xb973da('0x63')](handleEntityNotFound(_0x262d5d,null))['then'](respondWithResult(_0x262d5d,null))[_0xb973da('0x1b')](handleError(_0x262d5d,null));},exports['describe']=function(_0x51678f,_0x8025f6){const _0x455c38=_0x4c6609;return db[_0x455c38('0x12')][_0x455c38('0x27')]()['then'](respondWithResult(_0x8025f6,null))[_0x455c38('0x1b')](handleError(_0x8025f6,null));},exports[_0x4c6609('0x31')]=function(_0x1bea9e,_0x228b6b){const _0x17af57=_0x4c6609;return _0x1bea9e[_0x17af57('0x2c')][_0x17af57('0xe')]&&delete _0x1bea9e['body'][_0x17af57('0xe')],db[_0x17af57('0x12')][_0x17af57('0x14')]({'where':{'uniqueid':_0x1bea9e[_0x17af57('0x56')]['id']}})['then'](handleEntityNotFound(_0x228b6b,null))[_0x17af57('0x63')](saveUpdates(_0x1bea9e[_0x17af57('0x2c')],null))[_0x17af57('0x63')](respondWithResult(_0x228b6b,null))[_0x17af57('0x1b')](handleError(_0x228b6b,null));},exports[_0x4c6609('0x46')]=function(_0x428122,_0x116030){const _0x5ad81a=_0x4c6609;return db[_0x5ad81a('0x12')]['findAll']({'raw':![],'where':{'VoiceQueueId':_0x428122['params']['id']},'attributes':[[db[_0x5ad81a('0x34')]['fn'](_0x5ad81a('0x35'),db['sequelize']['fn']('IF',db[_0x5ad81a('0x34')][_0x5ad81a('0x24')](_0x5ad81a('0x18')))),_0x5ad81a('0x4c')],[db['sequelize']['fn'](_0x5ad81a('0x35'),db[_0x5ad81a('0x34')]['fn']('IF',db[_0x5ad81a('0x34')]['literal'](_0x5ad81a('0xc')))),_0x5ad81a('0x6')],[db['sequelize']['fn'](_0x5ad81a('0x35'),db[_0x5ad81a('0x34')]['fn']('IF',db[_0x5ad81a('0x34')][_0x5ad81a('0x24')](_0x5ad81a('0x40')))),_0x5ad81a('0x19')],[db[_0x5ad81a('0x34')]['fn'](_0x5ad81a('0x35'),db[_0x5ad81a('0x34')]['fn']('IF',db[_0x5ad81a('0x34')][_0x5ad81a('0x24')](_0x5ad81a('0x62')))),_0x5ad81a('0x66')],[db['sequelize']['fn']('COUNT',db[_0x5ad81a('0x34')]['fn']('IF',db[_0x5ad81a('0x34')][_0x5ad81a('0x24')](_0x5ad81a('0x5f')))),_0x5ad81a('0x33')],[db[_0x5ad81a('0x34')]['fn'](_0x5ad81a('0x35'),db[_0x5ad81a('0x34')]['fn']('IF',db['sequelize'][_0x5ad81a('0x24')](_0x5ad81a('0xd')))),_0x5ad81a('0x37')],[db[_0x5ad81a('0x34')]['fn']('COUNT',db[_0x5ad81a('0x34')]['fn']('IF',db[_0x5ad81a('0x34')]['literal']('`state`\x20=\x2022,\x201,\x20null'))),_0x5ad81a('0x7')],[db['sequelize']['fn'](_0x5ad81a('0x35'),db[_0x5ad81a('0x34')]['fn']('IF',db[_0x5ad81a('0x34')][_0x5ad81a('0x24')](_0x5ad81a('0x4f')))),_0x5ad81a('0x20')]]})['then'](handleEntityNotFound(_0x116030,null))['then'](respondWithResult(_0x116030,null))[_0x5ad81a('0x1b')](handleError(_0x116030,null));},exports['countContactsIvrCampaignHopperFinal']=function(_0x262550,_0x58dbaf){const _0x1df171=_0x4c6609;return db[_0x1df171('0x12')]['findAll']({'raw':![],'where':{'CampaignId':_0x262550[_0x1df171('0x56')]['id']},'attributes':[[db['sequelize']['fn'](_0x1df171('0x35'),db['sequelize']['fn']('IF',db[_0x1df171('0x34')][_0x1df171('0x24')](_0x1df171('0x18')))),_0x1df171('0x4c')],[db['sequelize']['fn']('COUNT',db[_0x1df171('0x34')]['fn']('IF',db['sequelize']['literal'](_0x1df171('0xc')))),'noAnswerContacts'],[db[_0x1df171('0x34')]['fn'](_0x1df171('0x35'),db[_0x1df171('0x34')]['fn']('IF',db[_0x1df171('0x34')][_0x1df171('0x24')](_0x1df171('0x40')))),_0x1df171('0x19')],[db[_0x1df171('0x34')]['fn'](_0x1df171('0x35'),db[_0x1df171('0x34')]['fn']('IF',db['sequelize'][_0x1df171('0x24')](_0x1df171('0x62')))),_0x1df171('0x66')],[db['sequelize']['fn'](_0x1df171('0x35'),db[_0x1df171('0x34')]['fn']('IF',db[_0x1df171('0x34')][_0x1df171('0x24')](_0x1df171('0x5f')))),_0x1df171('0x33')],[db[_0x1df171('0x34')]['fn']('COUNT',db[_0x1df171('0x34')]['fn']('IF',db[_0x1df171('0x34')][_0x1df171('0x24')](_0x1df171('0xd')))),_0x1df171('0x37')],[db['sequelize']['fn']('COUNT',db[_0x1df171('0x34')]['fn']('IF',db[_0x1df171('0x34')][_0x1df171('0x24')](_0x1df171('0x5c')))),'reCallContacts'],[db[_0x1df171('0x34')]['fn'](_0x1df171('0x35'),db['sequelize']['fn']('IF',db[_0x1df171('0x34')]['literal'](_0x1df171('0x4f')))),'answeringMachine']]})['then'](handleEntityNotFound(_0x58dbaf,null))[_0x1df171('0x63')](respondWithResult(_0x58dbaf,null))[_0x1df171('0x1b')](handleError(_0x58dbaf,null));},exports[_0x4c6609('0x4e')]=function(_0x569b82,_0x36384f){const _0x17d3a7=_0x4c6609;return db['VoiceQueue']['findOne']({'where':{'id':_0x569b82['params']['id']}})[_0x17d3a7('0x63')](handleEntityNotFound(_0x36384f,null))[_0x17d3a7('0x63')](function(_0x2a5ba5){const _0x25baff=_0x17d3a7;let _0x568de7;if(_0x2a5ba5)return _0x568de7=squel['insert']()[_0x25baff('0x51')](_0x25baff('0x30'))['fromQuery'](['phone',_0x25baff('0x47'),_0x25baff('0x54'),_0x25baff('0x2d'),_0x25baff('0x4d'),_0x25baff('0x32'),_0x25baff('0x59')],squel[_0x25baff('0x3')]()[_0x25baff('0x5b')](_0x25baff('0xa'),_0x25baff('0x49'))[_0x25baff('0x5b')](_0x25baff('0x1'),_0x25baff('0x47'))[_0x25baff('0x5b')]('ANY_VALUE(ContactId)',_0x25baff('0x54'))[_0x25baff('0x5b')](_0x25baff('0x55'),_0x25baff('0x2d'))[_0x25baff('0x5b')](_0x25baff('0x1a'),'VoiceQueueId')['field'](_0x25baff('0x1'),_0x25baff('0x32'))[_0x25baff('0x5b')](_0x25baff('0x1'),_0x25baff('0x59'))[_0x25baff('0x3f')]('cm_hopper_final')[_0x25baff('0x10')](_0x25baff('0x5a'),_0x569b82[_0x25baff('0x56')]['id']['toString']())['where'](_0x25baff('0x1d'),_0x569b82[_0x25baff('0x2c')][_0x25baff('0x1c')][_0x25baff('0x3c')]())['where'](_0x25baff('0x44'))[_0x25baff('0x10')](_0x25baff('0x64'),squel[_0x25baff('0x3')]()['field'](_0x25baff('0x49'))['from']('cm_hopper')[_0x25baff('0x10')](_0x25baff('0x5a'),_0x569b82[_0x25baff('0x56')]['id'][_0x25baff('0x3c')]()))[_0x25baff('0x10')](_0x25baff('0x64'),squel[_0x25baff('0x3')]()[_0x25baff('0x5b')](_0x25baff('0x57'))[_0x25baff('0x3f')](_0x25baff('0x61'))[_0x25baff('0x10')](_0x25baff('0x5a'),_0x569b82[_0x25baff('0x56')]['id']['toString']())[_0x25baff('0x10')](_0x25baff('0x2b')))[_0x25baff('0x3a')](_0x25baff('0x54')))['toString'](),db[_0x25baff('0x34')][_0x25baff('0x3b')](_0x568de7);return[];})[_0x17d3a7('0x63')](respondWithResult(_0x36384f,null))[_0x17d3a7('0x1b')](handleError(_0x36384f,null));},exports[_0x4c6609('0x21')]=function(_0x5bbc11,_0x5a76d7){const _0x3a9558=_0x4c6609;return db['Campaign']['findOne']({'where':{'id':_0x5bbc11[_0x3a9558('0x56')]['id']}})[_0x3a9558('0x63')](handleEntityNotFound(_0x5a76d7,null))['then'](function(_0x20bf3c){const _0x1ec42b=_0x3a9558;let _0x140673;if(_0x20bf3c)return _0x140673=squel[_0x1ec42b('0x42')]()['into'](_0x1ec42b('0x30'))[_0x1ec42b('0x29')]([_0x1ec42b('0x49'),_0x1ec42b('0x47'),_0x1ec42b('0x54'),'ListId',_0x1ec42b('0x4b'),'createdAt',_0x1ec42b('0x59')],squel[_0x1ec42b('0x3')]()[_0x1ec42b('0x5b')](_0x1ec42b('0xa'),_0x1ec42b('0x49'))[_0x1ec42b('0x5b')]('NOW()','scheduledAt')['field'](_0x1ec42b('0x67'),_0x1ec42b('0x54'))[_0x1ec42b('0x5b')](_0x1ec42b('0x55'),_0x1ec42b('0x2d'))['field'](_0x1ec42b('0x41'),'CampaignId')[_0x1ec42b('0x5b')](_0x1ec42b('0x1'),'createdAt')[_0x1ec42b('0x5b')](_0x1ec42b('0x1'),_0x1ec42b('0x59'))[_0x1ec42b('0x3f')](_0x1ec42b('0x61'))[_0x1ec42b('0x10')]('CampaignId\x20=\x20?',_0x5bbc11[_0x1ec42b('0x56')]['id'][_0x1ec42b('0x3c')]())[_0x1ec42b('0x10')]('state\x20=\x20?',_0x5bbc11[_0x1ec42b('0x2c')][_0x1ec42b('0x1c')][_0x1ec42b('0x3c')]())[_0x1ec42b('0x10')](_0x1ec42b('0x44'))['where'](_0x1ec42b('0x64'),squel['select']()[_0x1ec42b('0x5b')](_0x1ec42b('0x49'))[_0x1ec42b('0x3f')](_0x1ec42b('0x30'))[_0x1ec42b('0x10')]('CampaignId\x20=\x20?',_0x5bbc11[_0x1ec42b('0x56')]['id']['toString']()))[_0x1ec42b('0x10')](_0x1ec42b('0x64'),squel[_0x1ec42b('0x3')]()[_0x1ec42b('0x5b')](_0x1ec42b('0x57'))[_0x1ec42b('0x3f')](_0x1ec42b('0x61'))['where'](_0x1ec42b('0x65'),_0x5bbc11[_0x1ec42b('0x56')]['id'][_0x1ec42b('0x3c')]())[_0x1ec42b('0x10')](_0x1ec42b('0x2b')))[_0x1ec42b('0x3a')]('ContactId'))[_0x1ec42b('0x3c')](),db['sequelize'][_0x1ec42b('0x3b')](_0x140673);return[];})[_0x3a9558('0x63')](respondWithResult(_0x5a76d7,null))[_0x3a9558('0x1b')](handleError(_0x5a76d7,null));},exports[_0x4c6609('0x68')]=function(_0x191631,_0x56cdc2){const _0x14ba9c=_0x4c6609;return db[_0x14ba9c('0x11')]['findOne']({'where':{'VoiceQueueId':_0x191631[_0x14ba9c('0x2c')][_0x14ba9c('0x4d')],'CampaignId':_0x191631[_0x14ba9c('0x2c')][_0x14ba9c('0x4b')],'ContactId':_0x191631[_0x14ba9c('0x2c')][_0x14ba9c('0x54')]}})[_0x14ba9c('0x63')](handleEntityNotFound(_0x56cdc2,null))[_0x14ba9c('0x63')](function(_0xdf6fbc){if(_0xdf6fbc)return _0xdf6fbc;return null;})[_0x14ba9c('0x63')](respondWithResult(_0x56cdc2,null))[_0x14ba9c('0x1b')](handleError(_0x56cdc2,null));}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.model.js b/server/api/cmHopperFinal/cmHopperFinal.model.js index 1408500..53d1b21 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.model.js +++ b/server/api/cmHopperFinal/cmHopperFinal.model.js @@ -1 +1 @@ -const a148_0x3b13=['exports','cm_hopper_final','./cmHopperFinal.attributes','CmHopperFinal','calleridnum','uniqueid'];(function(_0x1402e1,_0x3b13a7){const _0x3736e7=function(_0x4f480a){while(--_0x4f480a){_0x1402e1['push'](_0x1402e1['shift']());}};_0x3736e7(++_0x3b13a7);}(a148_0x3b13,0x141));const a148_0x3736=function(_0x1402e1,_0x3b13a7){_0x1402e1=_0x1402e1-0x0;let _0x3736e7=a148_0x3b13[_0x1402e1];return _0x3736e7;};const _0x37b6f1=a148_0x3736;'use strict';const attributes=require(_0x37b6f1('0x5'));module[_0x37b6f1('0x3')]=function(_0x4f480a){const _0x3f631d=_0x37b6f1,_0x495d03=_0x4f480a['define'](_0x3f631d('0x0'),attributes,{'tableName':_0x3f631d('0x4'),'paranoid':![],'indexes':[{'name':_0x3f631d('0x1'),'fields':['calleridnum']},{'name':_0x3f631d('0x2'),'fields':[_0x3f631d('0x2')]}],'timestamps':!![]});return _0x495d03;}; \ No newline at end of file +const a148_0x4015=['uniqueid','define','exports','CmHopperFinal','calleridnum'];(function(_0x214d00,_0x401509){const _0x47342f=function(_0x4bb5a7){while(--_0x4bb5a7){_0x214d00['push'](_0x214d00['shift']());}};_0x47342f(++_0x401509);}(a148_0x4015,0x1db));const a148_0x4734=function(_0x214d00,_0x401509){_0x214d00=_0x214d00-0x0;let _0x47342f=a148_0x4015[_0x214d00];return _0x47342f;};const _0x2d1a72=a148_0x4734;'use strict';const attributes=require('./cmHopperFinal.attributes');module[_0x2d1a72('0x2')]=function(_0x4bb5a7){const _0x2086fc=_0x2d1a72,_0x2a2ea2=_0x4bb5a7[_0x2086fc('0x1')](_0x2086fc('0x3'),attributes,{'tableName':'cm_hopper_final','paranoid':![],'indexes':[{'name':_0x2086fc('0x4'),'fields':['calleridnum']},{'name':_0x2086fc('0x0'),'fields':[_0x2086fc('0x0')]}],'timestamps':!![]});return _0x2a2ea2;}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.rpc.js b/server/api/cmHopperFinal/cmHopperFinal.rpc.js index 44ecb68..8c17662 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.rpc.js +++ b/server/api/cmHopperFinal/cmHopperFinal.rpc.js @@ -1 +1 @@ -const a149_0x17f2=['error','../../config/logger','debug','message','raw','rpc','../../mysqldb','stringify','options','then','CreateCmHopperFinal','catch','info','create'];(function(_0x451f24,_0x17f29a){const _0x5286d3=function(_0x3d3933){while(--_0x3d3933){_0x451f24['push'](_0x451f24['shift']());}};_0x5286d3(++_0x17f29a);}(a149_0x17f2,0x11f));const a149_0x5286=function(_0x451f24,_0x17f29a){_0x451f24=_0x451f24-0x0;let _0x5286d3=a149_0x17f2[_0x451f24];return _0x5286d3;};const _0x525666=a149_0x5286;'use strict';const db=require(_0x525666('0xd'))['db'],logger=require(_0x525666('0x8'))(_0x525666('0xc'));exports[_0x525666('0x3')]=function(_0x3d3933){const _0x6ca50=this;return new Promise(function(_0x4fb712,_0x1bead5){const _0x189aed=a149_0x5286;return db['CmHopperFinal'][_0x189aed('0x6')](_0x3d3933['body'],{'raw':_0x3d3933[_0x189aed('0x1')]?_0x3d3933[_0x189aed('0x1')][_0x189aed('0xb')]===undefined?!![]:![]:!![]})[_0x189aed('0x2')](function(_0x4a430c){const _0x32d01b=_0x189aed;logger[_0x32d01b('0x5')]('CreateCmHopperFinal',_0x3d3933),logger[_0x32d01b('0x9')](_0x32d01b('0x3'),_0x3d3933,JSON[_0x32d01b('0x0')](_0x4a430c)),_0x4fb712(_0x4a430c);})[_0x189aed('0x4')](function(_0x307d75){const _0x6c2982=_0x189aed;logger['error'](_0x6c2982('0x3'),_0x307d75[_0x6c2982('0xa')],_0x3d3933),_0x1bead5(_0x6ca50[_0x6c2982('0x7')](0x1f4,_0x307d75[_0x6c2982('0xa')]));});});}; \ No newline at end of file +const a149_0x6ae3=['rpc','then','message','CreateCmHopperFinal','../../mysqldb','options','debug','../../config/logger','error','body','catch','CmHopperFinal','raw'];(function(_0x264ed7,_0x6ae3db){const _0x1727d7=function(_0x449e2f){while(--_0x449e2f){_0x264ed7['push'](_0x264ed7['shift']());}};_0x1727d7(++_0x6ae3db);}(a149_0x6ae3,0x79));const a149_0x1727=function(_0x264ed7,_0x6ae3db){_0x264ed7=_0x264ed7-0x0;let _0x1727d7=a149_0x6ae3[_0x264ed7];return _0x1727d7;};const _0x435aac=a149_0x1727;'use strict';const db=require(_0x435aac('0x0'))['db'],logger=require(_0x435aac('0x3'))(_0x435aac('0x9'));exports[_0x435aac('0xc')]=function(_0x449e2f){const _0x42e199=this;return new Promise(function(_0x25f8bd,_0x4901f2){const _0x2bef87=a149_0x1727;return db[_0x2bef87('0x7')]['create'](_0x449e2f[_0x2bef87('0x5')],{'raw':_0x449e2f[_0x2bef87('0x1')]?_0x449e2f[_0x2bef87('0x1')][_0x2bef87('0x8')]===undefined?!![]:![]:!![]})[_0x2bef87('0xa')](function(_0x4323d2){const _0x5bb896=_0x2bef87;logger['info']('CreateCmHopperFinal',_0x449e2f),logger[_0x5bb896('0x2')](_0x5bb896('0xc'),_0x449e2f,JSON['stringify'](_0x4323d2)),_0x25f8bd(_0x4323d2);})[_0x2bef87('0x6')](function(_0x49390f){const _0x2b7e5e=_0x2bef87;logger[_0x2b7e5e('0x4')]('CreateCmHopperFinal',_0x49390f[_0x2b7e5e('0xb')],_0x449e2f),_0x4901f2(_0x42e199[_0x2b7e5e('0x4')](0x1f4,_0x49390f[_0x2b7e5e('0xb')]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/index.js b/server/api/cmHopperFinal/index.js index 53bf898..8edf4e0 100644 --- a/server/api/cmHopperFinal/index.js +++ b/server/api/cmHopperFinal/index.js @@ -1 +1 @@ -const a150_0x5364=['checkContactHopper','isAuthenticated','get','/:id','moveContactsQueueCampaignHopperFinal','moveContactsIvrCampaignHopperFinal','../../components/auth/service','put','update','/campaign/countAttributes/:id','./cmHopperFinal.controller','/voice/queue/countAttributes/:id','/voice/campaign/moveContacts/:id','post','countContactsIvrCampaignHopperFinal','/voice/queue/moveContacts/:id'];(function(_0x51f5bb,_0x5364b2){const _0xa61eeb=function(_0x5f0faa){while(--_0x5f0faa){_0x51f5bb['push'](_0x51f5bb['shift']());}};_0xa61eeb(++_0x5364b2);}(a150_0x5364,0xbd));const a150_0xa61e=function(_0x51f5bb,_0x5364b2){_0x51f5bb=_0x51f5bb-0x0;let _0xa61eeb=a150_0x5364[_0x51f5bb];return _0xa61eeb;};const _0x5c40f4=a150_0xa61e;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x5c40f4('0x9')),controller=require(_0x5c40f4('0xd'));router[_0x5c40f4('0x5')]('/',auth['isAuthenticated'](),controller['index']),router[_0x5c40f4('0x5')]('/describe',auth[_0x5c40f4('0x4')](),controller['describe']),router[_0x5c40f4('0x5')](_0x5c40f4('0x6'),auth[_0x5c40f4('0x4')](),controller['show']),router[_0x5c40f4('0x5')](_0x5c40f4('0xe'),auth[_0x5c40f4('0x4')](),controller['countContactsQueueCampaignHopperFinal']),router[_0x5c40f4('0x5')](_0x5c40f4('0xc'),auth[_0x5c40f4('0x4')](),controller[_0x5c40f4('0x1')]),router[_0x5c40f4('0x0')](_0x5c40f4('0x2'),auth[_0x5c40f4('0x4')](),controller[_0x5c40f4('0x7')]),router['post'](_0x5c40f4('0xf'),auth[_0x5c40f4('0x4')](),controller[_0x5c40f4('0x8')]),router['post']('/checkContactHopper',auth[_0x5c40f4('0x4')](),controller[_0x5c40f4('0x3')]),router[_0x5c40f4('0xa')](_0x5c40f4('0x6'),auth['isAuthenticated'](),controller[_0x5c40f4('0xb')]),module['exports']=router; \ No newline at end of file +const a150_0x472b=['/campaign/countAttributes/:id','/voice/queue/moveContacts/:id','checkContactHopper','./cmHopperFinal.controller','express','isAuthenticated','/describe','describe','/voice/campaign/moveContacts/:id','Router','index','show','put','/checkContactHopper','moveContactsIvrCampaignHopperFinal','get','moveContactsQueueCampaignHopperFinal','post','/:id','/voice/queue/countAttributes/:id','countContactsIvrCampaignHopperFinal','../../components/auth/service'];(function(_0x28d5df,_0x472be7){const _0x2a5879=function(_0x2f7066){while(--_0x2f7066){_0x28d5df['push'](_0x28d5df['shift']());}};_0x2a5879(++_0x472be7);}(a150_0x472b,0x195));const a150_0x2a58=function(_0x28d5df,_0x472be7){_0x28d5df=_0x28d5df-0x0;let _0x2a5879=a150_0x472b[_0x28d5df];return _0x2a5879;};const _0x4e89ae=a150_0x2a58;'use strict';const express=require(_0x4e89ae('0x11')),router=express[_0x4e89ae('0x0')](),auth=require(_0x4e89ae('0xc')),controller=require(_0x4e89ae('0x10'));router[_0x4e89ae('0x6')]('/',auth[_0x4e89ae('0x12')](),controller[_0x4e89ae('0x1')]),router[_0x4e89ae('0x6')](_0x4e89ae('0x13'),auth[_0x4e89ae('0x12')](),controller[_0x4e89ae('0x14')]),router[_0x4e89ae('0x6')](_0x4e89ae('0x9'),auth['isAuthenticated'](),controller[_0x4e89ae('0x2')]),router[_0x4e89ae('0x6')](_0x4e89ae('0xa'),auth[_0x4e89ae('0x12')](),controller['countContactsQueueCampaignHopperFinal']),router[_0x4e89ae('0x6')](_0x4e89ae('0xd'),auth[_0x4e89ae('0x12')](),controller[_0x4e89ae('0xb')]),router[_0x4e89ae('0x8')](_0x4e89ae('0xe'),auth[_0x4e89ae('0x12')](),controller[_0x4e89ae('0x7')]),router[_0x4e89ae('0x8')](_0x4e89ae('0x15'),auth[_0x4e89ae('0x12')](),controller[_0x4e89ae('0x5')]),router[_0x4e89ae('0x8')](_0x4e89ae('0x4'),auth[_0x4e89ae('0x12')](),controller[_0x4e89ae('0xf')]),router[_0x4e89ae('0x3')](_0x4e89ae('0x9'),auth[_0x4e89ae('0x12')](),controller['update']),module['exports']=router; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.attributes.js b/server/api/cmHopperHistory/cmHopperHistory.attributes.js index 38990cd..398807a 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.attributes.js +++ b/server/api/cmHopperHistory/cmHopperHistory.attributes.js @@ -1 +1 @@ -const a151_0xe6e1=['STRING','exports','BOOLEAN','DATE','INTEGER'];(function(_0x524abb,_0xe6e1a2){const _0x31c08c=function(_0x510d00){while(--_0x510d00){_0x524abb['push'](_0x524abb['shift']());}};_0x31c08c(++_0xe6e1a2);}(a151_0xe6e1,0x132));const a151_0x31c0=function(_0x524abb,_0xe6e1a2){_0x524abb=_0x524abb-0x0;let _0x31c08c=a151_0xe6e1[_0x524abb];return _0x31c08c;};const _0x427ece=a151_0x31c0;'use strict';const Sequelize=require('sequelize');module[_0x427ece('0x0')]={'state':{'type':Sequelize['INTEGER'](0x2)},'statedesc':{'type':Sequelize[_0x427ece('0x4')]},'scheduledat':{'type':Sequelize[_0x427ece('0x2')]},'countbusyretry':{'type':Sequelize[_0x427ece('0x3')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x427ece('0x3')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x427ece('0x3')],'defaultValue':0x0},'uniqueid':{'type':Sequelize['STRING']},'originatecalleridnum':{'type':Sequelize[_0x427ece('0x4')]},'originatecalleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x427ece('0x4')]},'starttime':{'type':Sequelize[_0x427ece('0x2')]},'responsetime':{'type':Sequelize[_0x427ece('0x2')]},'answertime':{'type':Sequelize[_0x427ece('0x2')]},'droptime':{'type':Sequelize['DATE']},'endtime':{'type':Sequelize[_0x427ece('0x2')]},'ringtime':{'type':Sequelize[_0x427ece('0x3')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0x427ece('0x3')],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x427ece('0x3')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x427ece('0x3')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x427ece('0x4')]},'campaign':{'type':Sequelize[_0x427ece('0x4')]},'campaigntype':{'type':Sequelize[_0x427ece('0x4')]},'membername':{'type':Sequelize[_0x427ece('0x4')]},'reason':{'type':Sequelize[_0x427ece('0x4')]},'amd':{'type':Sequelize[_0x427ece('0x1')],'defaultValue':![]},'fax':{'type':Sequelize[_0x427ece('0x1')],'defaultValue':![]},'callback':{'type':Sequelize[_0x427ece('0x1')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize['STRING'],'defaultValue':null},'callbackat':{'type':Sequelize[_0x427ece('0x2')]},'recallme':{'type':Sequelize[_0x427ece('0x1')],'defaultValue':![]},'editedat':{'type':Sequelize[_0x427ece('0x2')]},'edited':{'type':Sequelize[_0x427ece('0x1')],'defaultValue':![]},'countnosuchnumberretry':{'type':Sequelize[_0x427ece('0x3')],'defaultValue':0x0},'countdropretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a151_0xf234=['sequelize','exports','DATE','INTEGER','STRING','BOOLEAN'];(function(_0x100792,_0xf2346e){const _0x332a7e=function(_0x347555){while(--_0x347555){_0x100792['push'](_0x100792['shift']());}};_0x332a7e(++_0xf2346e);}(a151_0xf234,0xc1));const a151_0x332a=function(_0x100792,_0xf2346e){_0x100792=_0x100792-0x0;let _0x332a7e=a151_0xf234[_0x100792];return _0x332a7e;};const _0x27b95f=a151_0x332a;'use strict';const Sequelize=require(_0x27b95f('0x5'));module[_0x27b95f('0x0')]={'state':{'type':Sequelize[_0x27b95f('0x2')](0x2)},'statedesc':{'type':Sequelize['STRING']},'scheduledat':{'type':Sequelize['DATE']},'countbusyretry':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'countglobal':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'uniqueid':{'type':Sequelize['STRING']},'originatecalleridnum':{'type':Sequelize[_0x27b95f('0x3')]},'originatecalleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x27b95f('0x3')]},'calleridname':{'type':Sequelize[_0x27b95f('0x3')]},'starttime':{'type':Sequelize[_0x27b95f('0x1')]},'responsetime':{'type':Sequelize[_0x27b95f('0x1')]},'answertime':{'type':Sequelize[_0x27b95f('0x1')]},'droptime':{'type':Sequelize[_0x27b95f('0x1')]},'endtime':{'type':Sequelize['DATE']},'ringtime':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x27b95f('0x3')]},'campaign':{'type':Sequelize[_0x27b95f('0x3')]},'campaigntype':{'type':Sequelize[_0x27b95f('0x3')]},'membername':{'type':Sequelize[_0x27b95f('0x3')]},'reason':{'type':Sequelize['STRING']},'amd':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fax':{'type':Sequelize[_0x27b95f('0x4')],'defaultValue':![]},'callback':{'type':Sequelize[_0x27b95f('0x4')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize['STRING'],'defaultValue':null},'callbackat':{'type':Sequelize[_0x27b95f('0x1')]},'recallme':{'type':Sequelize[_0x27b95f('0x4')],'defaultValue':![]},'editedat':{'type':Sequelize[_0x27b95f('0x1')]},'edited':{'type':Sequelize[_0x27b95f('0x4')],'defaultValue':![]},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x27b95f('0x2')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.controller.js b/server/api/cmHopperHistory/cmHopperHistory.controller.js index a05bbef..759c3ba 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.controller.js +++ b/server/api/cmHopperHistory/cmHopperHistory.controller.js @@ -1 +1 @@ -const a152_0x1540=['length','include','rawAttributes','like','show','status','send','create','sequelize','keys','sendStatus','rows','count','map','undefined','uniqueid','query','../../components/parsers/qs','api','json','filters','name','fields','body','VIRTUAL','params','attributes','pick','offset','model','nolimit','sort','CmHopperHistory','limit','intersection','where','stack','findOne','then','error','catch','index','lodash','filter','type','describe','includeAll','update','order','../../mysqldb','fieldName','findAll','Content-Range'];(function(_0x44c36e,_0x1540c6){const _0x5eaac2=function(_0x977955){while(--_0x977955){_0x44c36e['push'](_0x44c36e['shift']());}};_0x5eaac2(++_0x1540c6);}(a152_0x1540,0x97));const a152_0x5eaa=function(_0x44c36e,_0x1540c6){_0x44c36e=_0x44c36e-0x0;let _0x5eaac2=a152_0x1540[_0x44c36e];return _0x5eaac2;};const _0x149b0c=a152_0x5eaa;'use strict';const _=require(_0x149b0c('0x32')),qs=require(_0x149b0c('0x19')),logger=require('../../config/logger')(_0x149b0c('0x1a')),db=require(_0x149b0c('0x4'))['db'],{Op}=require(_0x149b0c('0x10'));function respondWithResult(_0x977955,_0x2d3543){return _0x2d3543=_0x2d3543||0xc8,function(_0x5af866){const _0xe21def=a152_0x5eaa;if(_0x5af866)return _0x977955[_0xe21def('0xd')](_0x2d3543)[_0xe21def('0x1b')](_0x5af866);};}function respondWithFilteredResult(_0x2afeac,_0x220b1a){return function(_0x2defc8){const _0x47ae34=a152_0x5eaa;if(_0x2defc8){const _0x3081ff=_0x2defc8['count'],_0x566013=_0x220b1a['offset'];let _0x3f7ac8=_0x220b1a[_0x47ae34('0x24')]+_0x220b1a[_0x47ae34('0x29')],_0x570342;return _0x3f7ac8>=_0x3081ff?(_0x3f7ac8=_0x3081ff,_0x570342=0xc8):_0x570342=0xce,_0x2afeac[_0x47ae34('0xd')](_0x570342),_0x2afeac['set'](_0x47ae34('0x7'),_0x566013+'-'+_0x3f7ac8+'/'+_0x3081ff)[_0x47ae34('0x1b')](_0x2defc8);}return null;};}function saveUpdates(_0x5a289e){return function(_0x2ecb33){const _0x2f46c8=a152_0x5eaa;if(_0x2ecb33)return _0x2ecb33[_0x2f46c8('0x2')](_0x5a289e)[_0x2f46c8('0x2e')](function(_0x9bf0b6){return _0x9bf0b6;});return null;};}function handleEntityNotFound(_0x211f34){return function(_0x508345){const _0x58ce5a=a152_0x5eaa;return!_0x508345&&_0x211f34[_0x58ce5a('0x12')](0x194),_0x508345;};}function handleError(_0x154ae8,_0x3e2e34){return _0x3e2e34=_0x3e2e34||0x1f4,function(_0x1910f3){const _0x2c6150=a152_0x5eaa;logger[_0x2c6150('0x2f')](_0x1910f3[_0x2c6150('0x2c')]),_0x1910f3[_0x2c6150('0x1d')]&&delete _0x1910f3['name'],_0x154ae8[_0x2c6150('0xd')](_0x3e2e34)[_0x2c6150('0xe')](_0x1910f3);};}exports[_0x149b0c('0x31')]=function(_0x5c0b3d,_0x547768){const _0x137c6b=_0x149b0c;let _0x40fe2f={};const _0xf52d21={},_0xcc4034={'count':0x0,'rows':[]},_0x1863fe=_[_0x137c6b('0x15')](db['CmHopperHistory'][_0x137c6b('0xa')],function(_0x44f479){const _0x179931=_0x137c6b;return{'name':_0x44f479[_0x179931('0x5')],'type':_0x44f479[_0x179931('0x34')]['key']};});_0xf52d21[_0x137c6b('0x25')]=_[_0x137c6b('0x15')](_0x1863fe,_0x137c6b('0x1d')),_0xf52d21['query']=_[_0x137c6b('0x11')](_0x5c0b3d[_0x137c6b('0x18')]),_0xf52d21['filters']=_[_0x137c6b('0x2a')](_0xf52d21[_0x137c6b('0x25')],_0xf52d21[_0x137c6b('0x18')]),_0x40fe2f[_0x137c6b('0x22')]=_[_0x137c6b('0x2a')](_0xf52d21[_0x137c6b('0x25')],qs[_0x137c6b('0x1e')](_0x5c0b3d[_0x137c6b('0x18')][_0x137c6b('0x1e')])),_0x40fe2f[_0x137c6b('0x22')]=_0x40fe2f[_0x137c6b('0x22')][_0x137c6b('0x8')]?_0x40fe2f['attributes']:_0xf52d21['model'];typeof _0x5c0b3d['query'][_0x137c6b('0x26')]===_0x137c6b('0x16')&&(_0x40fe2f[_0x137c6b('0x29')]=qs['limit'](_0x5c0b3d[_0x137c6b('0x18')][_0x137c6b('0x29')]),_0x40fe2f[_0x137c6b('0x24')]=qs[_0x137c6b('0x24')](_0x5c0b3d[_0x137c6b('0x18')]['offset']));_0x40fe2f[_0x137c6b('0x3')]=qs[_0x137c6b('0x27')](_0x5c0b3d[_0x137c6b('0x18')][_0x137c6b('0x27')]),_0x40fe2f[_0x137c6b('0x2b')]=qs[_0x137c6b('0x1c')](_[_0x137c6b('0x23')](_0x5c0b3d[_0x137c6b('0x18')],_0xf52d21['filters']),_0x1863fe);_0x5c0b3d[_0x137c6b('0x18')][_0x137c6b('0x33')]&&(_0x40fe2f['where']=_['merge'](_0x40fe2f['where'],{[Op['or']]:_['map'](_0x1863fe,function(_0x3fa609){const _0x29afa2=_0x137c6b;if(_0x3fa609[_0x29afa2('0x34')]!==_0x29afa2('0x20')){const _0x3350ce={};return _0x3350ce[_0x3fa609[_0x29afa2('0x1d')]]={[Op[_0x29afa2('0xb')]]:'%'+_0x5c0b3d[_0x29afa2('0x18')][_0x29afa2('0x33')]+'%'},_0x3350ce;}})}));_0x40fe2f=_['merge']({},_0x40fe2f,_0x5c0b3d['options']);const _0x5270c0={'where':_0x40fe2f[_0x137c6b('0x2b')]};return db[_0x137c6b('0x28')]['count'](_0x5270c0)[_0x137c6b('0x2e')](function(_0x15ecab){const _0x41bf64=_0x137c6b;return _0xcc4034[_0x41bf64('0x14')]=_0x15ecab,_0x5c0b3d[_0x41bf64('0x18')][_0x41bf64('0x1')]&&(_0x40fe2f[_0x41bf64('0x9')]=[{'all':!![]}]),db[_0x41bf64('0x28')][_0x41bf64('0x6')](_0x40fe2f);})['then'](function(_0x12edd6){const _0x57c53c=_0x137c6b;return _0xcc4034[_0x57c53c('0x13')]=_0x12edd6,_0xcc4034;})['then'](respondWithFilteredResult(_0x547768,_0x40fe2f))[_0x137c6b('0x30')](handleError(_0x547768,null));},exports[_0x149b0c('0xc')]=function(_0x5d0705,_0x53a605){const _0x57cb0b=_0x149b0c;let _0x45fe2a={'raw':!![],'where':{'id':_0x5d0705['params']['id']}};const _0x52a933={};return _0x52a933[_0x57cb0b('0x25')]=_[_0x57cb0b('0x11')](db[_0x57cb0b('0x28')]['rawAttributes']),_0x52a933[_0x57cb0b('0x18')]=_['keys'](_0x5d0705[_0x57cb0b('0x18')]),_0x52a933[_0x57cb0b('0x1c')]=_[_0x57cb0b('0x2a')](_0x52a933['model'],_0x52a933[_0x57cb0b('0x18')]),_0x45fe2a[_0x57cb0b('0x22')]=_[_0x57cb0b('0x2a')](_0x52a933[_0x57cb0b('0x25')],qs[_0x57cb0b('0x1e')](_0x5d0705['query'][_0x57cb0b('0x1e')])),_0x45fe2a[_0x57cb0b('0x22')]=_0x45fe2a[_0x57cb0b('0x22')][_0x57cb0b('0x8')]?_0x45fe2a[_0x57cb0b('0x22')]:_0x52a933['model'],_0x5d0705['query'][_0x57cb0b('0x1')]&&(_0x45fe2a[_0x57cb0b('0x9')]=[{'all':!![]}]),_0x45fe2a=_['merge']({},_0x45fe2a,_0x5d0705['options']),db[_0x57cb0b('0x28')]['findOne'](_0x45fe2a)[_0x57cb0b('0x2e')](handleEntityNotFound(_0x53a605,null))[_0x57cb0b('0x2e')](respondWithResult(_0x53a605,null))[_0x57cb0b('0x30')](handleError(_0x53a605,null));},exports[_0x149b0c('0xf')]=function(_0xedda7,_0x8b2fe8){const _0x577671=_0x149b0c;return db['CmHopperHistory']['create'](_0xedda7[_0x577671('0x1f')],{})['then'](respondWithResult(_0x8b2fe8,0xc9))['catch'](handleError(_0x8b2fe8,null));},exports['describe']=function(_0x4df36f,_0x2c2f08){const _0x20a72c=_0x149b0c;return db[_0x20a72c('0x28')][_0x20a72c('0x0')]()[_0x20a72c('0x2e')](respondWithResult(_0x2c2f08,null))[_0x20a72c('0x30')](handleError(_0x2c2f08,null));},exports['update']=function(_0xb2f903,_0x5887e8){const _0x2b52c6=_0x149b0c;return _0xb2f903[_0x2b52c6('0x1f')][_0x2b52c6('0x17')]&&delete _0xb2f903[_0x2b52c6('0x1f')][_0x2b52c6('0x17')],db['CmHopperHistory'][_0x2b52c6('0x2d')]({'where':{'uniqueid':_0xb2f903[_0x2b52c6('0x21')]['id']}})[_0x2b52c6('0x2e')](handleEntityNotFound(_0x5887e8,null))[_0x2b52c6('0x2e')](saveUpdates(_0xb2f903[_0x2b52c6('0x1f')],null))[_0x2b52c6('0x2e')](respondWithResult(_0x5887e8,null))[_0x2b52c6('0x30')](handleError(_0x5887e8,null));}; \ No newline at end of file +const a152_0x38b9=['options','../../config/logger','params','include','findOne','model','index','../../components/parsers/qs','rawAttributes','like','length','create','fields','map','name','json','key','offset','CmHopperHistory','where','status','sort','includeAll','uniqueid','count','describe','query','intersection','error','sendStatus','Content-Range','sequelize','fieldName','limit','filter','api','order','pick','then','filters','body','catch','keys','attributes','merge','type','update','../../mysqldb','send'];(function(_0x29b9e6,_0x38b998){const _0x4a256c=function(_0x53532c){while(--_0x53532c){_0x29b9e6['push'](_0x29b9e6['shift']());}};_0x4a256c(++_0x38b998);}(a152_0x38b9,0x15c));const a152_0x4a25=function(_0x29b9e6,_0x38b998){_0x29b9e6=_0x29b9e6-0x0;let _0x4a256c=a152_0x38b9[_0x29b9e6];return _0x4a256c;};const _0x5056a2=a152_0x4a25;'use strict';const _=require('lodash'),qs=require(_0x5056a2('0x2')),logger=require(_0x5056a2('0x2d'))(_0x5056a2('0x1e')),db=require(_0x5056a2('0x2a'))['db'],{Op}=require(_0x5056a2('0x1a'));function respondWithResult(_0x53532c,_0x234738){return _0x234738=_0x234738||0xc8,function(_0x9b72d4){const _0x283dda=a152_0x4a25;if(_0x9b72d4)return _0x53532c[_0x283dda('0xf')](_0x234738)[_0x283dda('0xa')](_0x9b72d4);};}function respondWithFilteredResult(_0x5fa20f,_0x540af7){return function(_0x1046d3){const _0x2401e2=a152_0x4a25;if(_0x1046d3){const _0x2a5731=_0x1046d3[_0x2401e2('0x13')],_0x4d1c44=_0x540af7[_0x2401e2('0xc')];let _0x5ad229=_0x540af7['offset']+_0x540af7[_0x2401e2('0x1c')],_0x1b8579;return _0x5ad229>=_0x2a5731?(_0x5ad229=_0x2a5731,_0x1b8579=0xc8):_0x1b8579=0xce,_0x5fa20f[_0x2401e2('0xf')](_0x1b8579),_0x5fa20f['set'](_0x2401e2('0x19'),_0x4d1c44+'-'+_0x5ad229+'/'+_0x2a5731)[_0x2401e2('0xa')](_0x1046d3);}return null;};}function saveUpdates(_0x186de2){return function(_0x31df1e){const _0x22176b=a152_0x4a25;if(_0x31df1e)return _0x31df1e[_0x22176b('0x29')](_0x186de2)['then'](function(_0x2afdcb){return _0x2afdcb;});return null;};}function handleEntityNotFound(_0x468352){return function(_0x8cc60){const _0x1e6de7=a152_0x4a25;return!_0x8cc60&&_0x468352[_0x1e6de7('0x18')](0x194),_0x8cc60;};}function handleError(_0x1f2252,_0x1ccabc){return _0x1ccabc=_0x1ccabc||0x1f4,function(_0x26db0d){const _0x205089=a152_0x4a25;logger[_0x205089('0x17')](_0x26db0d['stack']),_0x26db0d[_0x205089('0x9')]&&delete _0x26db0d[_0x205089('0x9')],_0x1f2252[_0x205089('0xf')](_0x1ccabc)[_0x205089('0x2b')](_0x26db0d);};}exports[_0x5056a2('0x1')]=function(_0x472f6a,_0x23cf20){const _0x1d497a=_0x5056a2;let _0x5e6b0f={};const _0x574dc8={},_0x2cbaab={'count':0x0,'rows':[]},_0x36d707=_[_0x1d497a('0x8')](db[_0x1d497a('0xd')]['rawAttributes'],function(_0x1e34ab){const _0x3015af=_0x1d497a;return{'name':_0x1e34ab[_0x3015af('0x1b')],'type':_0x1e34ab[_0x3015af('0x28')][_0x3015af('0xb')]};});_0x574dc8[_0x1d497a('0x0')]=_[_0x1d497a('0x8')](_0x36d707,_0x1d497a('0x9')),_0x574dc8['query']=_[_0x1d497a('0x25')](_0x472f6a['query']),_0x574dc8[_0x1d497a('0x22')]=_['intersection'](_0x574dc8[_0x1d497a('0x0')],_0x574dc8[_0x1d497a('0x15')]),_0x5e6b0f[_0x1d497a('0x26')]=_[_0x1d497a('0x16')](_0x574dc8[_0x1d497a('0x0')],qs[_0x1d497a('0x7')](_0x472f6a[_0x1d497a('0x15')]['fields'])),_0x5e6b0f[_0x1d497a('0x26')]=_0x5e6b0f['attributes'][_0x1d497a('0x5')]?_0x5e6b0f[_0x1d497a('0x26')]:_0x574dc8[_0x1d497a('0x0')];typeof _0x472f6a['query']['nolimit']==='undefined'&&(_0x5e6b0f[_0x1d497a('0x1c')]=qs[_0x1d497a('0x1c')](_0x472f6a[_0x1d497a('0x15')]['limit']),_0x5e6b0f[_0x1d497a('0xc')]=qs[_0x1d497a('0xc')](_0x472f6a[_0x1d497a('0x15')][_0x1d497a('0xc')]));_0x5e6b0f[_0x1d497a('0x1f')]=qs[_0x1d497a('0x10')](_0x472f6a[_0x1d497a('0x15')][_0x1d497a('0x10')]),_0x5e6b0f[_0x1d497a('0xe')]=qs['filters'](_[_0x1d497a('0x20')](_0x472f6a[_0x1d497a('0x15')],_0x574dc8['filters']),_0x36d707);_0x472f6a[_0x1d497a('0x15')][_0x1d497a('0x1d')]&&(_0x5e6b0f[_0x1d497a('0xe')]=_[_0x1d497a('0x27')](_0x5e6b0f[_0x1d497a('0xe')],{[Op['or']]:_[_0x1d497a('0x8')](_0x36d707,function(_0x2f45de){const _0x36f5e8=_0x1d497a;if(_0x2f45de['type']!=='VIRTUAL'){const _0x8c1688={};return _0x8c1688[_0x2f45de[_0x36f5e8('0x9')]]={[Op[_0x36f5e8('0x4')]]:'%'+_0x472f6a[_0x36f5e8('0x15')][_0x36f5e8('0x1d')]+'%'},_0x8c1688;}})}));_0x5e6b0f=_['merge']({},_0x5e6b0f,_0x472f6a[_0x1d497a('0x2c')]);const _0x225e5e={'where':_0x5e6b0f[_0x1d497a('0xe')]};return db['CmHopperHistory'][_0x1d497a('0x13')](_0x225e5e)['then'](function(_0x59a817){const _0x5a6940=_0x1d497a;return _0x2cbaab[_0x5a6940('0x13')]=_0x59a817,_0x472f6a[_0x5a6940('0x15')]['includeAll']&&(_0x5e6b0f[_0x5a6940('0x2f')]=[{'all':!![]}]),db['CmHopperHistory']['findAll'](_0x5e6b0f);})['then'](function(_0x40d9b7){return _0x2cbaab['rows']=_0x40d9b7,_0x2cbaab;})[_0x1d497a('0x21')](respondWithFilteredResult(_0x23cf20,_0x5e6b0f))[_0x1d497a('0x24')](handleError(_0x23cf20,null));},exports['show']=function(_0x5081bd,_0x7ee0c5){const _0x3eec94=_0x5056a2;let _0x1e9d38={'raw':!![],'where':{'id':_0x5081bd[_0x3eec94('0x2e')]['id']}};const _0x215cef={};return _0x215cef[_0x3eec94('0x0')]=_[_0x3eec94('0x25')](db[_0x3eec94('0xd')][_0x3eec94('0x3')]),_0x215cef['query']=_[_0x3eec94('0x25')](_0x5081bd[_0x3eec94('0x15')]),_0x215cef[_0x3eec94('0x22')]=_[_0x3eec94('0x16')](_0x215cef[_0x3eec94('0x0')],_0x215cef['query']),_0x1e9d38[_0x3eec94('0x26')]=_[_0x3eec94('0x16')](_0x215cef[_0x3eec94('0x0')],qs['fields'](_0x5081bd['query'][_0x3eec94('0x7')])),_0x1e9d38[_0x3eec94('0x26')]=_0x1e9d38['attributes'][_0x3eec94('0x5')]?_0x1e9d38[_0x3eec94('0x26')]:_0x215cef[_0x3eec94('0x0')],_0x5081bd[_0x3eec94('0x15')][_0x3eec94('0x11')]&&(_0x1e9d38[_0x3eec94('0x2f')]=[{'all':!![]}]),_0x1e9d38=_[_0x3eec94('0x27')]({},_0x1e9d38,_0x5081bd['options']),db[_0x3eec94('0xd')][_0x3eec94('0x30')](_0x1e9d38)[_0x3eec94('0x21')](handleEntityNotFound(_0x7ee0c5,null))[_0x3eec94('0x21')](respondWithResult(_0x7ee0c5,null))[_0x3eec94('0x24')](handleError(_0x7ee0c5,null));},exports[_0x5056a2('0x6')]=function(_0x110910,_0x4f3bab){const _0xbf98c5=_0x5056a2;return db['CmHopperHistory']['create'](_0x110910[_0xbf98c5('0x23')],{})[_0xbf98c5('0x21')](respondWithResult(_0x4f3bab,0xc9))[_0xbf98c5('0x24')](handleError(_0x4f3bab,null));},exports[_0x5056a2('0x14')]=function(_0x5515b2,_0x3b5f8d){const _0x4fcf5f=_0x5056a2;return db[_0x4fcf5f('0xd')][_0x4fcf5f('0x14')]()[_0x4fcf5f('0x21')](respondWithResult(_0x3b5f8d,null))[_0x4fcf5f('0x24')](handleError(_0x3b5f8d,null));},exports[_0x5056a2('0x29')]=function(_0x33f16a,_0x2c706c){const _0x55f5d6=_0x5056a2;return _0x33f16a[_0x55f5d6('0x23')][_0x55f5d6('0x12')]&&delete _0x33f16a[_0x55f5d6('0x23')][_0x55f5d6('0x12')],db[_0x55f5d6('0xd')][_0x55f5d6('0x30')]({'where':{'uniqueid':_0x33f16a['params']['id']}})[_0x55f5d6('0x21')](handleEntityNotFound(_0x2c706c,null))['then'](saveUpdates(_0x33f16a['body'],null))[_0x55f5d6('0x21')](respondWithResult(_0x2c706c,null))['catch'](handleError(_0x2c706c,null));}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.model.js b/server/api/cmHopperHistory/cmHopperHistory.model.js index ba20f6d..6a54121 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.model.js +++ b/server/api/cmHopperHistory/cmHopperHistory.model.js @@ -1 +1 @@ -const a153_0x3151=['exports','./cmHopperHistory.attributes','define','CmHopperHistory','uniqueid','cm_hopper_history'];(function(_0x4b7919,_0x31515d){const _0x31e83d=function(_0x4523bb){while(--_0x4523bb){_0x4b7919['push'](_0x4b7919['shift']());}};_0x31e83d(++_0x31515d);}(a153_0x3151,0x1da));const a153_0x31e8=function(_0x4b7919,_0x31515d){_0x4b7919=_0x4b7919-0x0;let _0x31e83d=a153_0x3151[_0x4b7919];return _0x31e83d;};const _0xea1291=a153_0x31e8;'use strict';const attributes=require(_0xea1291('0x1'));module[_0xea1291('0x0')]=function(_0x4523bb){const _0x477b26=_0xea1291,_0x33ec00=_0x4523bb[_0x477b26('0x2')](_0x477b26('0x3'),attributes,{'tableName':_0x477b26('0x5'),'paranoid':![],'indexes':[{'name':'endtime','fields':['endtime']},{'name':'uniqueid','fields':[_0x477b26('0x4')]}],'timestamps':!![]});return _0x33ec00;}; \ No newline at end of file +const a153_0x55ab=['exports','CmHopperHistory','endtime','./cmHopperHistory.attributes','define','cm_hopper_history','uniqueid'];(function(_0x17738a,_0x55abfe){const _0xcccff6=function(_0x1590dc){while(--_0x1590dc){_0x17738a['push'](_0x17738a['shift']());}};_0xcccff6(++_0x55abfe);}(a153_0x55ab,0x1e1));const a153_0xcccf=function(_0x17738a,_0x55abfe){_0x17738a=_0x17738a-0x0;let _0xcccff6=a153_0x55ab[_0x17738a];return _0xcccff6;};const _0x17b910=a153_0xcccf;'use strict';const attributes=require(_0x17b910('0x5'));module[_0x17b910('0x2')]=function(_0x1590dc){const _0x591f38=_0x17b910,_0x425857=_0x1590dc[_0x591f38('0x6')](_0x591f38('0x3'),attributes,{'tableName':_0x591f38('0x0'),'paranoid':![],'indexes':[{'name':_0x591f38('0x4'),'fields':['endtime']},{'name':_0x591f38('0x1'),'fields':['uniqueid']}],'timestamps':!![]});return _0x425857;}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.rpc.js b/server/api/cmHopperHistory/cmHopperHistory.rpc.js index 83f8395..4cf0fa1 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.rpc.js +++ b/server/api/cmHopperHistory/cmHopperHistory.rpc.js @@ -1 +1 @@ -const a154_0x331f=['outboundBlacklistCallsDay','rpc','where','outboundDropCallsDayCallersExit','predictiveIntervalAvgTalktime','campaign','`state`\x20=\x204,\x201,\x20null','ivrAnswerCallsDay','`state`\x20=\x2011,\x201,\x20null','GetVoiceQueueHopperHistory','CreateCmHopperHistory','outboundNoAnswerCallsDay','`state`\x20=\x2016,\x201,\x20null','../../config/logger','col','predictiveIntervalAvgHoldtime','debug','GetCampaignHopperHistory','outboundAnswerAgiCallsDay','`state`\x20=\x2014,\x201,\x20null','outboundReCallsDay','outboundAnswerCallsDay','then','outboundUnknownCallsDay','../../mysqldb','create','`state`\x20=\x205,\x201,\x20null','predictiveIntervalDroppedCallsCallersExit','ivrTotalCallsDays','`state`\x20=\x2011\x20,\x201,\x20null','CmHopperHistory','outboundDropCallsDayTimeout','error','catch','`state`\x20=\x2010\x20,\x201,\x20null','predictiveIntervalAnsweredCalls','`state`\x20=\x2010,\x201,\x20null','AvgHandleTime','raw','`state`\x20=\x208,\x201,\x20null','`state`\x20=\x2020,\x201,\x20null','AVG','name','literal','sequelize','options','body','findAll','predictiveIntervalDroppedCallsTimeout','message','COUNT','stringify','`state`\x20=\x200,\x201,\x20null','outboundOriginateFailureCallsDay','outboundCongestionCallsDay','`state`\x20=\x2018,\x201,\x20null','`state`\x20=\x204,\x20`holdtime`,\x20null','outboundRejectCallsDay','`state`\x20=\x2013,\x201,\x20null','info'];(function(_0x10432d,_0x331f4e){const _0x1eb50a=function(_0x1421b4){while(--_0x1421b4){_0x10432d['push'](_0x10432d['shift']());}};_0x1eb50a(++_0x331f4e);}(a154_0x331f,0x169));const a154_0x1eb5=function(_0x10432d,_0x331f4e){_0x10432d=_0x10432d-0x0;let _0x1eb50a=a154_0x331f[_0x10432d];return _0x1eb50a;};const _0x5611ee=a154_0x1eb5;'use strict';const db=require(_0x5611ee('0x17'))['db'],logger=require(_0x5611ee('0xc'))(_0x5611ee('0x0'));exports[_0x5611ee('0x9')]=function(_0x1421b4){const _0x222e58=this;return new Promise(function(_0x3b4398,_0x27e509){const _0x5b82f0=a154_0x1eb5;return db['CmHopperHistory'][_0x5b82f0('0x18')](_0x1421b4[_0x5b82f0('0x2d')],{'raw':_0x1421b4[_0x5b82f0('0x2c')]?_0x1421b4['options'][_0x5b82f0('0x25')]===undefined?!![]:![]:!![]})[_0x5b82f0('0x15')](function(_0x392e7b){const _0xae82b8=_0x5b82f0;logger[_0xae82b8('0x3a')](_0xae82b8('0x9'),_0x1421b4),logger[_0xae82b8('0xf')]('CreateCmHopperHistory',_0x1421b4,JSON[_0xae82b8('0x32')](_0x392e7b)),_0x3b4398(_0x392e7b);})['catch'](function(_0x15cc3a){const _0x2bbc16=_0x5b82f0;logger['error']('CreateCmHopperHistory',_0x15cc3a[_0x2bbc16('0x30')],_0x1421b4),_0x27e509(_0x222e58['error'](0x1f4,_0x15cc3a['message']));});});},exports[_0x5611ee('0x24')]=function(_0x38fc62){const _0x35e430=this;return new Promise(function(_0x339b40,_0x516208){const _0x5845bf=a154_0x1eb5;return db['CmHopperHistory'][_0x5845bf('0x2e')]({'raw':_0x38fc62[_0x5845bf('0x2c')]?_0x38fc62[_0x5845bf('0x2c')][_0x5845bf('0x25')]===undefined?!![]:![]:!![],'where':_0x38fc62['options']?_0x38fc62['options'][_0x5845bf('0x1')]||null:null,'attributes':[[db['sequelize']['fn']('COUNT',db[_0x5845bf('0x2b')][_0x5845bf('0xd')]('id')),'predictiveIntervalTotalCalls'],[db['sequelize']['fn'](_0x5845bf('0x31'),db[_0x5845bf('0x2b')]['fn']('IF',db[_0x5845bf('0x2b')][_0x5845bf('0x2a')]('`state`\x20=\x204,\x201,\x20null'))),_0x5845bf('0x22')],[db['sequelize']['fn'](_0x5845bf('0x31'),db[_0x5845bf('0x2b')]['fn']('IF',db[_0x5845bf('0x2b')][_0x5845bf('0x2a')](_0x5845bf('0x23')))),_0x5845bf('0x2f')],[db[_0x5845bf('0x2b')]['fn']('COUNT',db[_0x5845bf('0x2b')]['fn']('IF',db[_0x5845bf('0x2b')][_0x5845bf('0x2a')](_0x5845bf('0x7')))),_0x5845bf('0x1a')],[db[_0x5845bf('0x2b')]['fn'](_0x5845bf('0x28'),db[_0x5845bf('0x2b')]['fn']('IF',db[_0x5845bf('0x2b')][_0x5845bf('0x2a')](_0x5845bf('0x37')))),_0x5845bf('0xe')],[db['sequelize']['fn'](_0x5845bf('0x28'),db[_0x5845bf('0x2b')]['fn']('IF',db[_0x5845bf('0x2b')][_0x5845bf('0x2a')]('`state`\x20=\x204,\x20`talktime`,\x20null'))),_0x5845bf('0x3')]]})[_0x5845bf('0x15')](function(_0x4b2dbf){const _0x523989=_0x5845bf;logger[_0x523989('0x3a')](_0x523989('0x24'),_0x38fc62),logger[_0x523989('0xf')](_0x523989('0x24'),_0x38fc62,JSON['stringify'](_0x4b2dbf)),_0x339b40(_0x4b2dbf);})[_0x5845bf('0x20')](function(_0x5d797b){const _0x207ebe=_0x5845bf;logger[_0x207ebe('0x1f')](_0x207ebe('0x24'),_0x5d797b[_0x207ebe('0x30')],_0x38fc62),_0x516208(_0x35e430[_0x207ebe('0x1f')](0x1f4,_0x5d797b['message']));});});},exports[_0x5611ee('0x8')]=function(_0x2bed12){const _0x612667=this;return new Promise(function(_0x5db961,_0x2b5687){const _0x1d445a=a154_0x1eb5;return db[_0x1d445a('0x1d')][_0x1d445a('0x2e')]({'raw':_0x2bed12[_0x1d445a('0x2c')]?_0x2bed12[_0x1d445a('0x2c')][_0x1d445a('0x25')]===undefined?!![]:![]:!![],'where':_0x2bed12['options']?_0x2bed12[_0x1d445a('0x2c')]['where']||null:null,'attributes':[[_0x1d445a('0x4'),_0x1d445a('0x29')],[db[_0x1d445a('0x2b')]['fn'](_0x1d445a('0x31'),db[_0x1d445a('0x2b')]['fn']('IF',db[_0x1d445a('0x2b')][_0x1d445a('0x2a')](_0x1d445a('0x33')))),'outboundNoSuchCallsDay'],[db['sequelize']['fn']('COUNT',db[_0x1d445a('0x2b')]['fn']('IF',db[_0x1d445a('0x2b')][_0x1d445a('0x2a')]('`state`\x20=\x203,\x201,\x20null'))),_0x1d445a('0xa')],[db['sequelize']['fn'](_0x1d445a('0x31'),db[_0x1d445a('0x2b')]['fn']('IF',db[_0x1d445a('0x2b')][_0x1d445a('0x2a')](_0x1d445a('0x5')))),_0x1d445a('0x14')],[db['sequelize']['fn'](_0x1d445a('0x31'),db[_0x1d445a('0x2b')]['fn']('IF',db['sequelize'][_0x1d445a('0x2a')](_0x1d445a('0x19')))),'outboundBusyCallsDay'],[db[_0x1d445a('0x2b')]['fn']('COUNT',db[_0x1d445a('0x2b')]['fn']('IF',db[_0x1d445a('0x2b')][_0x1d445a('0x2a')](_0x1d445a('0x26')))),_0x1d445a('0x35')],[db[_0x1d445a('0x2b')]['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x1d445a('0x2b')][_0x1d445a('0x2a')](_0x1d445a('0x21')))),_0x1d445a('0x1e')],[db[_0x1d445a('0x2b')]['fn'](_0x1d445a('0x31'),db['sequelize']['fn']('IF',db[_0x1d445a('0x2b')]['literal'](_0x1d445a('0x1c')))),_0x1d445a('0x2')],[db[_0x1d445a('0x2b')]['fn'](_0x1d445a('0x31'),db[_0x1d445a('0x2b')]['fn']('IF',db[_0x1d445a('0x2b')][_0x1d445a('0x2a')]('`state`\x20=\x2012,\x201,\x20null'))),_0x1d445a('0x16')],[db[_0x1d445a('0x2b')]['fn'](_0x1d445a('0x31'),db[_0x1d445a('0x2b')]['fn']('IF',db[_0x1d445a('0x2b')]['literal'](_0x1d445a('0x39')))),_0x1d445a('0x3b')],[db[_0x1d445a('0x2b')]['fn'](_0x1d445a('0x31'),db['sequelize']['fn']('IF',db['sequelize'][_0x1d445a('0x2a')](_0x1d445a('0x12')))),_0x1d445a('0x34')],[db[_0x1d445a('0x2b')]['fn'](_0x1d445a('0x31'),db[_0x1d445a('0x2b')]['fn']('IF',db['sequelize'][_0x1d445a('0x2a')](_0x1d445a('0x36')))),_0x1d445a('0x38')],[db[_0x1d445a('0x2b')]['fn'](_0x1d445a('0x31'),db[_0x1d445a('0x2b')]['fn']('IF',db[_0x1d445a('0x2b')][_0x1d445a('0x2a')](_0x1d445a('0xb')))),_0x1d445a('0x11')],[db[_0x1d445a('0x2b')]['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x1d445a('0x2b')]['literal'](_0x1d445a('0x27')))),_0x1d445a('0x38')],[db[_0x1d445a('0x2b')]['fn'](_0x1d445a('0x31'),db['sequelize']['fn']('IF',db[_0x1d445a('0x2b')][_0x1d445a('0x2a')]('`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null'))),_0x1d445a('0x13')]],'group':[_0x1d445a('0x4')]})[_0x1d445a('0x15')](function(_0x327f87){const _0x5188d1=_0x1d445a;logger[_0x5188d1('0x3a')](_0x5188d1('0x8'),_0x2bed12),logger[_0x5188d1('0xf')](_0x5188d1('0x8'),_0x2bed12,JSON['stringify'](_0x327f87)),_0x5db961(_0x327f87);})[_0x1d445a('0x20')](function(_0x11a135){const _0x251592=_0x1d445a;logger['error'](_0x251592('0x8'),_0x11a135['message'],_0x2bed12),_0x2b5687(_0x612667['error'](0x1f4,_0x11a135['message']));});});},exports['GetCampaignHopperHistory']=function(_0x5a194d){const _0x341a67=this;return new Promise(function(_0x4067e8,_0x2f4db3){const _0x4ca31c=a154_0x1eb5;return db['CmHopperHistory'][_0x4ca31c('0x2e')]({'raw':_0x5a194d['options']?_0x5a194d[_0x4ca31c('0x2c')][_0x4ca31c('0x25')]===undefined?!![]:![]:!![],'where':_0x5a194d['options']?_0x5a194d[_0x4ca31c('0x2c')][_0x4ca31c('0x1')]||null:null,'attributes':[[_0x4ca31c('0x4'),_0x4ca31c('0x29')],[db[_0x4ca31c('0x2b')]['fn']('COUNT',db['sequelize'][_0x4ca31c('0xd')]('id')),_0x4ca31c('0x1b')],[db[_0x4ca31c('0x2b')]['fn'](_0x4ca31c('0x31'),db['sequelize']['fn']('IF',db['sequelize'][_0x4ca31c('0x2a')](_0x4ca31c('0x5')))),_0x4ca31c('0x6')]],'group':[_0x4ca31c('0x4')]})[_0x4ca31c('0x15')](function(_0x20465d){const _0x1b8108=_0x4ca31c;logger[_0x1b8108('0x3a')](_0x1b8108('0x10'),_0x5a194d),logger[_0x1b8108('0xf')](_0x1b8108('0x10'),_0x5a194d,JSON['stringify'](_0x20465d)),_0x4067e8(_0x20465d);})['catch'](function(_0x360fbf){const _0x4f9fa1=_0x4ca31c;logger[_0x4f9fa1('0x1f')](_0x4f9fa1('0x10'),_0x360fbf[_0x4f9fa1('0x30')],_0x5a194d),_0x2f4db3(_0x341a67['error'](0x1f4,_0x360fbf[_0x4f9fa1('0x30')]));});});}; \ No newline at end of file +const a154_0x22fb=['`state`\x20=\x2010,\x201,\x20null','debug','predictiveIntervalDroppedCallsTimeout','`state`\x20=\x203,\x201,\x20null','outboundBusyCallsDay','CreateCmHopperHistory','`state`\x20=\x2010\x20,\x201,\x20null','rpc','`state`\x20=\x204,\x201,\x20null','col','outboundOriginateFailureCallsDay','body','`state`\x20=\x2012,\x201,\x20null','`state`\x20=\x2011\x20,\x201,\x20null','outboundNoAnswerCallsDay','`state`\x20=\x2018,\x201,\x20null','`state`\x20=\x204,\x20`talktime`,\x20null','outboundRejectCallsDay','AvgHandleTime','predictiveIntervalAvgHoldtime','`state`\x20=\x200,\x201,\x20null','outboundAnswerAgiCallsDay','GetCampaignHopperHistory','`state`\x20=\x2014,\x201,\x20null','GetVoiceQueueHopperHistory','info','AVG','where','literal','`state`\x20=\x204,\x20`holdtime`,\x20null','ivrAnswerCallsDay','outboundUnknownCallsDay','COUNT','outboundNoSuchCallsDay','options','findAll','`state`\x20=\x208,\x201,\x20null','stringify','outboundDropCallsDayCallersExit','`state`\x20=\x2013,\x201,\x20null','predictiveIntervalAnsweredCalls','`state`\x20=\x2020,\x201,\x20null','ivrTotalCallsDays','../../mysqldb','predictiveIntervalDroppedCallsCallersExit','name','campaign','sequelize','message','CmHopperHistory','create','outboundDropCallsDayTimeout','outboundCongestionCallsDay','outboundReCallsDay','then','`state`\x20=\x205,\x201,\x20null','error','predictiveIntervalTotalCalls','raw','catch'];(function(_0x337db5,_0x22fba7){const _0x5927b3=function(_0x1e9043){while(--_0x1e9043){_0x337db5['push'](_0x337db5['shift']());}};_0x5927b3(++_0x22fba7);}(a154_0x22fb,0x19f));const a154_0x5927=function(_0x337db5,_0x22fba7){_0x337db5=_0x337db5-0x0;let _0x5927b3=a154_0x22fb[_0x337db5];return _0x5927b3;};const _0x302db1=a154_0x5927;'use strict';const db=require(_0x302db1('0x30'))['db'],logger=require('../../config/logger')(_0x302db1('0xc'));exports['CreateCmHopperHistory']=function(_0x1e9043){const _0xf2acba=this;return new Promise(function(_0x554001,_0xc8dbd1){const _0x34309d=a154_0x5927;return db[_0x34309d('0x36')][_0x34309d('0x37')](_0x1e9043[_0x34309d('0x10')],{'raw':_0x1e9043['options']?_0x1e9043[_0x34309d('0x27')][_0x34309d('0x3')]===undefined?!![]:![]:!![]})[_0x34309d('0x3b')](function(_0x24d15b){const _0x144b92=_0x34309d;logger['info'](_0x144b92('0xa'),_0x1e9043),logger[_0x144b92('0x6')](_0x144b92('0xa'),_0x1e9043,JSON[_0x144b92('0x2a')](_0x24d15b)),_0x554001(_0x24d15b);})[_0x34309d('0x4')](function(_0x9fb7ba){const _0x58d8b2=_0x34309d;logger[_0x58d8b2('0x1')](_0x58d8b2('0xa'),_0x9fb7ba[_0x58d8b2('0x35')],_0x1e9043),_0xc8dbd1(_0xf2acba[_0x58d8b2('0x1')](0x1f4,_0x9fb7ba[_0x58d8b2('0x35')]));});});},exports[_0x302db1('0x17')]=function(_0x129440){const _0x16523d=this;return new Promise(function(_0x24f40f,_0x355407){const _0x162004=a154_0x5927;return db[_0x162004('0x36')][_0x162004('0x28')]({'raw':_0x129440[_0x162004('0x27')]?_0x129440['options'][_0x162004('0x3')]===undefined?!![]:![]:!![],'where':_0x129440['options']?_0x129440[_0x162004('0x27')]['where']||null:null,'attributes':[[db[_0x162004('0x34')]['fn']('COUNT',db[_0x162004('0x34')][_0x162004('0xe')]('id')),_0x162004('0x2')],[db[_0x162004('0x34')]['fn'](_0x162004('0x25'),db[_0x162004('0x34')]['fn']('IF',db['sequelize']['literal']('`state`\x20=\x204,\x201,\x20null'))),_0x162004('0x2d')],[db['sequelize']['fn'](_0x162004('0x25'),db[_0x162004('0x34')]['fn']('IF',db[_0x162004('0x34')]['literal'](_0x162004('0x5')))),_0x162004('0x7')],[db['sequelize']['fn'](_0x162004('0x25'),db[_0x162004('0x34')]['fn']('IF',db[_0x162004('0x34')][_0x162004('0x21')]('`state`\x20=\x2011,\x201,\x20null'))),_0x162004('0x31')],[db[_0x162004('0x34')]['fn'](_0x162004('0x1f'),db['sequelize']['fn']('IF',db['sequelize'][_0x162004('0x21')](_0x162004('0x22')))),_0x162004('0x18')],[db[_0x162004('0x34')]['fn'](_0x162004('0x1f'),db['sequelize']['fn']('IF',db['sequelize'][_0x162004('0x21')](_0x162004('0x15')))),'predictiveIntervalAvgTalktime']]})[_0x162004('0x3b')](function(_0x41ad52){const _0x7b4e5e=_0x162004;logger[_0x7b4e5e('0x1e')](_0x7b4e5e('0x17'),_0x129440),logger[_0x7b4e5e('0x6')]('AvgHandleTime',_0x129440,JSON[_0x7b4e5e('0x2a')](_0x41ad52)),_0x24f40f(_0x41ad52);})['catch'](function(_0x1b7490){const _0xf644d8=_0x162004;logger['error'](_0xf644d8('0x17'),_0x1b7490[_0xf644d8('0x35')],_0x129440),_0x355407(_0x16523d['error'](0x1f4,_0x1b7490[_0xf644d8('0x35')]));});});},exports[_0x302db1('0x1d')]=function(_0x487baa){const _0x4723ca=this;return new Promise(function(_0x4b853f,_0xada781){const _0x227148=a154_0x5927;return db[_0x227148('0x36')][_0x227148('0x28')]({'raw':_0x487baa[_0x227148('0x27')]?_0x487baa[_0x227148('0x27')][_0x227148('0x3')]===undefined?!![]:![]:!![],'where':_0x487baa[_0x227148('0x27')]?_0x487baa[_0x227148('0x27')][_0x227148('0x20')]||null:null,'attributes':[[_0x227148('0x33'),'name'],[db[_0x227148('0x34')]['fn'](_0x227148('0x25'),db[_0x227148('0x34')]['fn']('IF',db['sequelize'][_0x227148('0x21')](_0x227148('0x19')))),_0x227148('0x26')],[db[_0x227148('0x34')]['fn'](_0x227148('0x25'),db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')]['literal'](_0x227148('0x8')))),_0x227148('0x13')],[db[_0x227148('0x34')]['fn'](_0x227148('0x25'),db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')][_0x227148('0x21')]('`state`\x20=\x204,\x201,\x20null'))),'outboundAnswerCallsDay'],[db[_0x227148('0x34')]['fn']('COUNT',db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')][_0x227148('0x21')](_0x227148('0x0')))),_0x227148('0x9')],[db['sequelize']['fn'](_0x227148('0x25'),db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')][_0x227148('0x21')](_0x227148('0x29')))),_0x227148('0x39')],[db[_0x227148('0x34')]['fn'](_0x227148('0x25'),db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')][_0x227148('0x21')](_0x227148('0xb')))),_0x227148('0x38')],[db['sequelize']['fn'](_0x227148('0x25'),db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')][_0x227148('0x21')](_0x227148('0x12')))),_0x227148('0x2b')],[db['sequelize']['fn'](_0x227148('0x25'),db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')]['literal'](_0x227148('0x11')))),_0x227148('0x24')],[db[_0x227148('0x34')]['fn'](_0x227148('0x25'),db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')][_0x227148('0x21')](_0x227148('0x2c')))),'outboundBlacklistCallsDay'],[db[_0x227148('0x34')]['fn'](_0x227148('0x25'),db['sequelize']['fn']('IF',db[_0x227148('0x34')][_0x227148('0x21')](_0x227148('0x1c')))),_0x227148('0xf')],[db[_0x227148('0x34')]['fn']('COUNT',db[_0x227148('0x34')]['fn']('IF',db[_0x227148('0x34')][_0x227148('0x21')](_0x227148('0x14')))),_0x227148('0x16')],[db[_0x227148('0x34')]['fn']('COUNT',db['sequelize']['fn']('IF',db['sequelize'][_0x227148('0x21')]('`state`\x20=\x2016,\x201,\x20null'))),_0x227148('0x1a')],[db[_0x227148('0x34')]['fn']('COUNT',db['sequelize']['fn']('IF',db['sequelize'][_0x227148('0x21')](_0x227148('0x2e')))),_0x227148('0x16')],[db[_0x227148('0x34')]['fn'](_0x227148('0x25'),db['sequelize']['fn']('IF',db['sequelize']['literal']('`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null'))),_0x227148('0x3a')]],'group':[_0x227148('0x33')]})[_0x227148('0x3b')](function(_0x39d7f0){const _0x47b7ed=_0x227148;logger[_0x47b7ed('0x1e')](_0x47b7ed('0x1d'),_0x487baa),logger[_0x47b7ed('0x6')](_0x47b7ed('0x1d'),_0x487baa,JSON['stringify'](_0x39d7f0)),_0x4b853f(_0x39d7f0);})['catch'](function(_0x10a875){const _0x314f0f=_0x227148;logger['error'](_0x314f0f('0x1d'),_0x10a875[_0x314f0f('0x35')],_0x487baa),_0xada781(_0x4723ca['error'](0x1f4,_0x10a875[_0x314f0f('0x35')]));});});},exports['GetCampaignHopperHistory']=function(_0x3b7c16){const _0x338906=this;return new Promise(function(_0x3c9f21,_0x35fc5c){const _0x5ad7d0=a154_0x5927;return db[_0x5ad7d0('0x36')]['findAll']({'raw':_0x3b7c16['options']?_0x3b7c16[_0x5ad7d0('0x27')]['raw']===undefined?!![]:![]:!![],'where':_0x3b7c16['options']?_0x3b7c16[_0x5ad7d0('0x27')]['where']||null:null,'attributes':[[_0x5ad7d0('0x33'),_0x5ad7d0('0x32')],[db[_0x5ad7d0('0x34')]['fn']('COUNT',db[_0x5ad7d0('0x34')][_0x5ad7d0('0xe')]('id')),_0x5ad7d0('0x2f')],[db[_0x5ad7d0('0x34')]['fn'](_0x5ad7d0('0x25'),db[_0x5ad7d0('0x34')]['fn']('IF',db[_0x5ad7d0('0x34')][_0x5ad7d0('0x21')](_0x5ad7d0('0xd')))),_0x5ad7d0('0x23')]],'group':[_0x5ad7d0('0x33')]})[_0x5ad7d0('0x3b')](function(_0x9ecf7c){const _0x3fd301=_0x5ad7d0;logger[_0x3fd301('0x1e')](_0x3fd301('0x1b'),_0x3b7c16),logger[_0x3fd301('0x6')](_0x3fd301('0x1b'),_0x3b7c16,JSON['stringify'](_0x9ecf7c)),_0x3c9f21(_0x9ecf7c);})['catch'](function(_0x119d53){const _0x2e9ad0=_0x5ad7d0;logger['error'](_0x2e9ad0('0x1b'),_0x119d53['message'],_0x3b7c16),_0x35fc5c(_0x338906[_0x2e9ad0('0x1')](0x1f4,_0x119d53['message']));});});}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/index.js b/server/api/cmHopperHistory/index.js index 82d75d2..e9cc73c 100644 --- a/server/api/cmHopperHistory/index.js +++ b/server/api/cmHopperHistory/index.js @@ -1 +1 @@ -const a155_0x509e=['describe','express','update','isAuthenticated','./cmHopperHistory.controller','show','exports','get','/describe','put','/:id','Router'];(function(_0x1a340d,_0x509ec8){const _0x5db84e=function(_0x30eb6d){while(--_0x30eb6d){_0x1a340d['push'](_0x1a340d['shift']());}};_0x5db84e(++_0x509ec8);}(a155_0x509e,0x110));const a155_0x5db8=function(_0x1a340d,_0x509ec8){_0x1a340d=_0x1a340d-0x0;let _0x5db84e=a155_0x509e[_0x1a340d];return _0x5db84e;};const _0xc3aff8=a155_0x5db8;'use strict';const express=require(_0xc3aff8('0x5')),router=express[_0xc3aff8('0x3')](),auth=require('../../components/auth/service'),controller=require(_0xc3aff8('0x8'));router['get']('/',auth[_0xc3aff8('0x7')](),controller['index']),router[_0xc3aff8('0xb')](_0xc3aff8('0x0'),auth[_0xc3aff8('0x7')](),controller[_0xc3aff8('0x4')]),router[_0xc3aff8('0xb')]('/:id',auth['isAuthenticated'](),controller[_0xc3aff8('0x9')]),router['post']('/',auth[_0xc3aff8('0x7')](),controller['create']),router[_0xc3aff8('0x1')](_0xc3aff8('0x2'),auth[_0xc3aff8('0x7')](),controller[_0xc3aff8('0x6')]),module[_0xc3aff8('0xa')]=router; \ No newline at end of file +const a155_0x4a3a=['/:id','index','isAuthenticated','describe','show','get','/describe','../../components/auth/service','post','Router','update','express'];(function(_0x37f979,_0x4a3a2b){const _0x7e9d94=function(_0x314b36){while(--_0x314b36){_0x37f979['push'](_0x37f979['shift']());}};_0x7e9d94(++_0x4a3a2b);}(a155_0x4a3a,0x1d5));const a155_0x7e9d=function(_0x37f979,_0x4a3a2b){_0x37f979=_0x37f979-0x0;let _0x7e9d94=a155_0x4a3a[_0x37f979];return _0x7e9d94;};const _0x5b278d=a155_0x7e9d;'use strict';const express=require(_0x5b278d('0xa')),router=express[_0x5b278d('0x8')](),auth=require(_0x5b278d('0x6')),controller=require('./cmHopperHistory.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x5b278d('0x0')]),router[_0x5b278d('0x4')](_0x5b278d('0x5'),auth[_0x5b278d('0x1')](),controller[_0x5b278d('0x2')]),router[_0x5b278d('0x4')](_0x5b278d('0xb'),auth[_0x5b278d('0x1')](),controller[_0x5b278d('0x3')]),router[_0x5b278d('0x7')]('/',auth['isAuthenticated'](),controller['create']),router['put']('/:id',auth[_0x5b278d('0x1')](),controller[_0x5b278d('0x9')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/cmList/cmList.attributes.js b/server/api/cmList/cmList.attributes.js index afda2f2..4806030 100644 --- a/server/api/cmList/cmList.attributes.js +++ b/server/api/cmList/cmList.attributes.js @@ -1 +1 @@ -const a156_0x282a=['sequelize','name','exports','STRING'];(function(_0x430a9d,_0x282ab1){const _0x4bb5d5=function(_0x2b2b7b){while(--_0x2b2b7b){_0x430a9d['push'](_0x430a9d['shift']());}};_0x4bb5d5(++_0x282ab1);}(a156_0x282a,0x1ca));const a156_0x4bb5=function(_0x430a9d,_0x282ab1){_0x430a9d=_0x430a9d-0x0;let _0x4bb5d5=a156_0x282a[_0x430a9d];return _0x4bb5d5;};const _0x1ef327=a156_0x4bb5;'use strict';const Sequelize=require(_0x1ef327('0x2'));module[_0x1ef327('0x0')]={'name':{'type':Sequelize[_0x1ef327('0x1')],'unique':_0x1ef327('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x1ef327('0x1')]},'dialPrefix':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a156_0x4cb2=['exports','name','sequelize','STRING'];(function(_0x548725,_0x4cb29c){const _0x1d76f7=function(_0x2b3a97){while(--_0x2b3a97){_0x548725['push'](_0x548725['shift']());}};_0x1d76f7(++_0x4cb29c);}(a156_0x4cb2,0x1dc));const a156_0x1d76=function(_0x548725,_0x4cb29c){_0x548725=_0x548725-0x0;let _0x1d76f7=a156_0x4cb2[_0x548725];return _0x1d76f7;};const _0x2ef6c0=a156_0x1d76;'use strict';const Sequelize=require(_0x2ef6c0('0x2'));module[_0x2ef6c0('0x0')]={'name':{'type':Sequelize[_0x2ef6c0('0x3')],'unique':_0x2ef6c0('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x2ef6c0('0x3')]},'dialPrefix':{'type':Sequelize[_0x2ef6c0('0x3')]}}; \ No newline at end of file diff --git a/server/api/cmList/cmList.controller.js b/server/api/cmList/cmList.controller.js index d8c4e32..4bd75fc 100644 --- a/server/api/cmList/cmList.controller.js +++ b/server/api/cmList/cmList.controller.js @@ -1 +1 @@ -const a157_0x2bd4=['INTEGER','defaultValue','map','register','intersection','attributes','stack','CustomFields','status','success','pick','show','removeAgents','CmContact','getContactsCsv','body','userCmList:remove','format','findAndCountAll','describe','order','emit','each','count','../../config/logger','cf_%d','raw','undefined','getContacts','Sequelize','sequelize','role','writeFileSync','/tmp/list_%d_%s.csv','CmList','ids','findAll','Lists','params','UserProfileResource','TEXT','user','json','catch','setHeader','rows','queryInterface','isArray','BOOLEAN','Unable\x20to\x20retrieve\x20the\x20current\x20user','rawAttributes','send','addDisposition','tags','create','addCustomField','limit','Malformed\x20request\x20syntax','to-csv','update','util','nolimit','index','then','model','push','list_%d_%s.csv','sendStatus','transaction','offset','getAgents','include','type','filters','ListId','name','getCustomFields','length','includeAll','lodash','CmCustomField','../../components/parsers/qs','now','filter','set','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','concat','Disposition','switch','options','text/csv','text','addContacts','VIRTUAL','message','findOne','userProfileId','autoAssociation','addAgents','Content-disposition','fields','where','query','error','keys','dataValues','destroy','omit','merge','api','UserProfileSection','get','like','removeDispositions','sort'];(function(_0x4623b0,_0x2bd42a){const _0x10306f=function(_0x4690ca){while(--_0x4690ca){_0x4623b0['push'](_0x4623b0['shift']());}};_0x10306f(++_0x2bd42a);}(a157_0x2bd4,0x1e2));const a157_0x1030=function(_0x4623b0,_0x2bd42a){_0x4623b0=_0x4623b0-0x0;let _0x10306f=a157_0x2bd4[_0x4623b0];return _0x10306f;};const _0x50bbe6=a157_0x1030;'use strict';const util=require(_0x50bbe6('0x26')),fs=require('fs'),_=require(_0x50bbe6('0x39')),toCsv=require(_0x50bbe6('0x24')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x50bbe6('0x3b')),logger=require(_0x50bbe6('0x2'))(_0x50bbe6('0x57')),db=require('../../mysqldb')['db'],{Op}=require(_0x50bbe6('0x8'));require('./cmList.socket')[_0x50bbe6('0x60')](socket);function respondWithStatusCode(_0x4690ca,_0x3b75e1){return _0x3b75e1=_0x3b75e1||0xcc,function(_0x101e8d){const _0x36525e=a157_0x1030;if(_0x101e8d)return _0x4690ca[_0x36525e('0x2d')](_0x3b75e1);return _0x4690ca[_0x36525e('0x65')](_0x3b75e1)['end']();};}function respondWithResult(_0x2e3a6b,_0x540de3){return _0x540de3=_0x540de3||0xc8,function(_0xd1648f){const _0x1c51b8=a157_0x1030;if(_0xd1648f)return _0x2e3a6b[_0x1c51b8('0x65')](_0x540de3)[_0x1c51b8('0x14')](_0xd1648f);};}function respondWithFilteredResult(_0x4a427c,_0x3dcea0){return function(_0x1a23b6){const _0x5434b1=a157_0x1030;if(_0x1a23b6){const _0x4c6eb6=_0x1a23b6[_0x5434b1('0x1')],_0x53a810=_0x3dcea0['offset'];let _0x55b3c3=_0x3dcea0['offset']+_0x3dcea0[_0x5434b1('0x22')],_0x1887c8;return _0x55b3c3>=_0x4c6eb6?(_0x55b3c3=_0x4c6eb6,_0x1887c8=0xc8):_0x1887c8=0xce,_0x4a427c[_0x5434b1('0x65')](_0x1887c8),_0x4a427c[_0x5434b1('0x3e')]('Content-Range',_0x53a810+'-'+_0x55b3c3+'/'+_0x4c6eb6)[_0x5434b1('0x14')](_0x1a23b6);}return null;};}function saveUpdates(_0x31016f){return function(_0x5862e5){const _0x237c24=a157_0x1030;if(_0x5862e5)return _0x5862e5[_0x237c24('0x25')](_0x31016f)[_0x237c24('0x29')](function(_0x3175ff){return _0x3175ff;});return null;};}function removeEntity(_0x11769e){return function(_0x3eb284){const _0x135b87=a157_0x1030;if(_0x3eb284)return _0x3eb284[_0x135b87('0x54')]()['then'](function(){const _0x45b2cf=_0x135b87,_0x2a8878=_0x3eb284[_0x45b2cf('0x59')]({'plain':!![]}),_0x5b5ede='Lists';return db[_0x45b2cf('0x11')][_0x45b2cf('0x54')]({'where':{'type':_0x5b5ede,'resourceId':_0x2a8878['id']}})[_0x45b2cf('0x29')](function(){return _0x3eb284;});})['then'](function(){const _0x2e9ed4=_0x135b87;_0x11769e[_0x2e9ed4('0x65')](0xcc)['end']();});};}function handleEntityNotFound(_0x255b87){return function(_0x7b68c6){return!_0x7b68c6&&_0x255b87['sendStatus'](0x194),_0x7b68c6;};}function handleError(_0x3dfca7,_0x2111f7){return _0x2111f7=_0x2111f7||0x1f4,function(_0x1661e8){const _0x2e312e=a157_0x1030;logger[_0x2e312e('0x51')](_0x1661e8[_0x2e312e('0x63')]),_0x1661e8[_0x2e312e('0x35')]&&delete _0x1661e8[_0x2e312e('0x35')],_0x3dfca7[_0x2e312e('0x65')](_0x2111f7)[_0x2e312e('0x1d')](_0x1661e8);};}exports[_0x50bbe6('0x28')]=function(_0x5cfe40,_0x1ce88f){const _0x333e27=_0x50bbe6;let _0x1bf205={};const _0x35f5ec={},_0x6e2d31={'count':0x0,'rows':[]},_0xaad6ef=_[_0x333e27('0x5f')](db['CmList']['rawAttributes'],function(_0x3f3178){const _0x38e813=_0x333e27;return{'name':_0x3f3178['fieldName'],'type':_0x3f3178[_0x38e813('0x32')]['key']};});_0x35f5ec[_0x333e27('0x2a')]=_[_0x333e27('0x5f')](_0xaad6ef,'name'),_0x35f5ec[_0x333e27('0x50')]=_[_0x333e27('0x52')](_0x5cfe40[_0x333e27('0x50')]),_0x35f5ec[_0x333e27('0x33')]=_[_0x333e27('0x61')](_0x35f5ec[_0x333e27('0x2a')],_0x35f5ec[_0x333e27('0x50')]),_0x1bf205[_0x333e27('0x62')]=_[_0x333e27('0x61')](_0x35f5ec[_0x333e27('0x2a')],qs['fields'](_0x5cfe40[_0x333e27('0x50')][_0x333e27('0x4e')])),_0x1bf205[_0x333e27('0x62')]=_0x1bf205[_0x333e27('0x62')][_0x333e27('0x37')]?_0x1bf205['attributes']:_0x35f5ec['model'];typeof _0x5cfe40['query']['nolimit']===_0x333e27('0x5')&&(_0x1bf205[_0x333e27('0x22')]=qs[_0x333e27('0x22')](_0x5cfe40[_0x333e27('0x50')][_0x333e27('0x22')]),_0x1bf205[_0x333e27('0x2f')]=qs[_0x333e27('0x2f')](_0x5cfe40[_0x333e27('0x50')][_0x333e27('0x2f')]));_0x1bf205[_0x333e27('0x71')]=qs[_0x333e27('0x5c')](_0x5cfe40['query'][_0x333e27('0x5c')]),_0x1bf205[_0x333e27('0x4f')]=qs['filters'](_[_0x333e27('0x67')](_0x5cfe40[_0x333e27('0x50')],_0x35f5ec[_0x333e27('0x33')]),_0xaad6ef);_0x5cfe40[_0x333e27('0x50')]['filter']&&(_0x1bf205[_0x333e27('0x4f')]=_[_0x333e27('0x56')](_0x1bf205[_0x333e27('0x4f')],{[Op['or']]:_[_0x333e27('0x5f')](_0xaad6ef,function(_0x204dd1){const _0x21c8c9=_0x333e27;if(_0x204dd1[_0x21c8c9('0x32')]!==_0x21c8c9('0x47')){const _0x5b06a8={};return _0x5b06a8[_0x204dd1[_0x21c8c9('0x35')]]={[Op[_0x21c8c9('0x5a')]]:'%'+_0x5cfe40['query'][_0x21c8c9('0x3d')]+'%'},_0x5b06a8;}})}));_0x1bf205=_[_0x333e27('0x56')]({},_0x1bf205,_0x5cfe40['options']);const _0x250a45={'where':_0x1bf205['where']};return db[_0x333e27('0xc')][_0x333e27('0x1')](_0x250a45)[_0x333e27('0x29')](function(_0xabc82e){const _0xd2b099=_0x333e27;return _0x6e2d31[_0xd2b099('0x1')]=_0xabc82e,_0x5cfe40[_0xd2b099('0x50')]['includeAll']&&(_0x1bf205[_0xd2b099('0x31')]=[{'all':!![]}]),db[_0xd2b099('0xc')][_0xd2b099('0xe')](_0x1bf205);})[_0x333e27('0x29')](function(_0x4c538f){const _0x322758=_0x333e27;return _0x6e2d31[_0x322758('0x17')]=_0x4c538f,_0x6e2d31;})[_0x333e27('0x29')](respondWithFilteredResult(_0x1ce88f,_0x1bf205))['catch'](handleError(_0x1ce88f,null));},exports[_0x50bbe6('0x68')]=function(_0x335b7e,_0x5b60d5){const _0x21b9d2=_0x50bbe6;let _0xea2972={'raw':![],'where':{'id':_0x335b7e[_0x21b9d2('0x10')]['id']}};const _0x536c5e={};return _0x536c5e[_0x21b9d2('0x2a')]=_[_0x21b9d2('0x52')](db['CmList'][_0x21b9d2('0x1c')]),_0x536c5e[_0x21b9d2('0x50')]=_[_0x21b9d2('0x52')](_0x335b7e[_0x21b9d2('0x50')]),_0x536c5e[_0x21b9d2('0x33')]=_[_0x21b9d2('0x61')](_0x536c5e[_0x21b9d2('0x2a')],_0x536c5e[_0x21b9d2('0x50')]),_0xea2972['attributes']=_['intersection'](_0x536c5e[_0x21b9d2('0x2a')],qs[_0x21b9d2('0x4e')](_0x335b7e['query'][_0x21b9d2('0x4e')])),_0xea2972[_0x21b9d2('0x62')]=_0xea2972['attributes'][_0x21b9d2('0x37')]?_0xea2972['attributes']:_0x536c5e[_0x21b9d2('0x2a')],_0x335b7e[_0x21b9d2('0x50')][_0x21b9d2('0x38')]&&(_0xea2972['include']=[{'all':!![]}]),_0xea2972=_[_0x21b9d2('0x56')]({},_0xea2972,_0x335b7e[_0x21b9d2('0x43')]),db[_0x21b9d2('0xc')]['findOne'](_0xea2972)['then'](handleEntityNotFound(_0x5b60d5,null))[_0x21b9d2('0x29')](respondWithResult(_0x5b60d5,null))[_0x21b9d2('0x15')](handleError(_0x5b60d5,null));},exports[_0x50bbe6('0x20')]=function(_0xbf917f,_0x5269cd){const _0x2a75a4=_0x50bbe6;return db[_0x2a75a4('0xc')][_0x2a75a4('0x20')](_0xbf917f['body'],{})[_0x2a75a4('0x29')](function(_0x1720a5){const _0x12d571=_0x2a75a4,_0x403f01=_0xbf917f['user'][_0x12d571('0x59')]({'plain':!![]});if(!_0x403f01)throw new Error(_0x12d571('0x1b'));if(_0x403f01[_0x12d571('0x9')]===_0x12d571('0x13')){const _0x38567b=_0x1720a5[_0x12d571('0x59')]({'plain':!![]}),_0x3f17aa=_0x12d571('0xf');return db[_0x12d571('0x58')][_0x12d571('0x49')]({'where':{'name':_0x3f17aa,'userProfileId':_0x403f01[_0x12d571('0x4a')]},'raw':!![]})['then'](function(_0x1586f1){const _0x1cfa5d=_0x12d571;return _0x1586f1&&_0x1586f1[_0x1cfa5d('0x4b')]===0x0?db[_0x1cfa5d('0x11')]['create']({'name':_0x38567b[_0x1cfa5d('0x35')],'resourceId':_0x38567b['id'],'type':_0x1586f1[_0x1cfa5d('0x35')],'sectionId':_0x1586f1['id']},{})[_0x1cfa5d('0x29')](function(){return _0x1720a5;}):_0x1720a5;})[_0x12d571('0x15')](function(_0x21779a){const _0x153b54=_0x12d571;logger[_0x153b54('0x51')](_0x153b54('0x3f'),_0x21779a);throw _0x21779a;});}return _0x1720a5;})[_0x2a75a4('0x29')](respondWithResult(_0x5269cd,0xc9))[_0x2a75a4('0x15')](handleError(_0x5269cd,null));},exports['update']=function(_0x3bd040,_0x395062){const _0x3f1a3f=_0x50bbe6;return _0x3bd040['body']['id']&&delete _0x3bd040['body']['id'],db[_0x3f1a3f('0xc')][_0x3f1a3f('0x49')]({'where':{'id':_0x3bd040[_0x3f1a3f('0x10')]['id']}})[_0x3f1a3f('0x29')](handleEntityNotFound(_0x395062,null))[_0x3f1a3f('0x29')](saveUpdates(_0x3bd040[_0x3f1a3f('0x6c')],null))[_0x3f1a3f('0x29')](respondWithResult(_0x395062,null))[_0x3f1a3f('0x15')](handleError(_0x395062,null));},exports[_0x50bbe6('0x54')]=function(_0xc4b3d6,_0x1ca0d3){const _0xf35362=_0x50bbe6;return db[_0xf35362('0xc')][_0xf35362('0x49')]({'where':{'id':_0xc4b3d6[_0xf35362('0x10')]['id']}})['then'](handleEntityNotFound(_0x1ca0d3,null))[_0xf35362('0x29')](removeEntity(_0x1ca0d3,null))[_0xf35362('0x15')](handleError(_0x1ca0d3,null));},exports[_0x50bbe6('0x70')]=function(_0x4d9bca,_0x58fd94){const _0x24f41a=_0x50bbe6;return db[_0x24f41a('0xc')][_0x24f41a('0x70')]()['then'](respondWithResult(_0x58fd94,null))[_0x24f41a('0x15')](handleError(_0x58fd94,null));},exports[_0x50bbe6('0x1e')]=function(_0x11a881,_0x5199ab){const _0x5c8882=_0x50bbe6;return _0x11a881[_0x5c8882('0x6c')]['id']&&delete _0x11a881[_0x5c8882('0x6c')]['id'],db[_0x5c8882('0xc')][_0x5c8882('0x49')]({'where':{'id':_0x11a881[_0x5c8882('0x10')]['id']}})[_0x5c8882('0x29')](handleEntityNotFound(_0x5199ab,null))[_0x5c8882('0x29')](function(_0x48275d){const _0x2323dc=_0x5c8882;if(_0x48275d)return _0x11a881[_0x2323dc('0x6c')][_0x2323dc('0x34')]=_0x48275d['id'],db[_0x2323dc('0x41')][_0x2323dc('0x20')](_0x11a881['body']);})[_0x5c8882('0x29')](respondWithResult(_0x5199ab,null))['catch'](handleError(_0x5199ab,null));},exports['getDispositions']=function(_0x21e927,_0x11c06c){const _0x443544=_0x50bbe6;let _0x9bcba5={'raw':![],'where':{}};const _0x52dd30={},_0x18992e={'count':0x0,'rows':[]};return db[_0x443544('0xc')][_0x443544('0x49')]({'where':{'id':_0x21e927[_0x443544('0x10')]['id']}})[_0x443544('0x29')](handleEntityNotFound(_0x11c06c,null))['then'](function(_0x5d4cd3){const _0x169c09=_0x443544;if(_0x5d4cd3)return _0x52dd30[_0x169c09('0x2a')]=_[_0x169c09('0x52')](db[_0x169c09('0x41')][_0x169c09('0x1c')]),_0x52dd30[_0x169c09('0x50')]=_[_0x169c09('0x52')](_0x21e927['query']),_0x52dd30[_0x169c09('0x33')]=_[_0x169c09('0x61')](_0x52dd30[_0x169c09('0x2a')],_0x52dd30[_0x169c09('0x50')]),_0x9bcba5[_0x169c09('0x62')]=_[_0x169c09('0x61')](_0x52dd30[_0x169c09('0x2a')],qs[_0x169c09('0x4e')](_0x21e927[_0x169c09('0x50')][_0x169c09('0x4e')])),_0x9bcba5[_0x169c09('0x62')]=_0x9bcba5[_0x169c09('0x62')]['length']?_0x9bcba5[_0x169c09('0x62')]:_0x52dd30['model'],typeof _0x21e927[_0x169c09('0x50')]['nolimit']===_0x169c09('0x5')&&(_0x9bcba5[_0x169c09('0x22')]=qs['limit'](_0x21e927[_0x169c09('0x50')]['limit']),_0x9bcba5[_0x169c09('0x2f')]=qs['offset'](_0x21e927[_0x169c09('0x50')]['offset'])),_0x9bcba5[_0x169c09('0x71')]=qs[_0x169c09('0x5c')](_0x21e927[_0x169c09('0x50')][_0x169c09('0x5c')]),_0x9bcba5[_0x169c09('0x4f')]=qs[_0x169c09('0x33')](_[_0x169c09('0x67')](_0x21e927[_0x169c09('0x50')],_0x52dd30[_0x169c09('0x33')])),_0x9bcba5[_0x169c09('0x4f')]['ListId']=_0x5d4cd3['id'],_0x21e927['query']['filter']&&(_0x9bcba5[_0x169c09('0x4f')]=_['merge'](_0x9bcba5['where'],{[Op['or']]:_['map'](_0x9bcba5[_0x169c09('0x62')],function(_0x34c0eb){const _0x36e0a5=_0x169c09,_0x5677f4={};return _0x5677f4[_0x34c0eb]={[Op['like']]:'%'+_0x21e927[_0x36e0a5('0x50')][_0x36e0a5('0x3d')]+'%'},_0x5677f4;})})),_0x9bcba5=_['merge']({},_0x9bcba5,_0x21e927[_0x169c09('0x43')]),db[_0x169c09('0x41')][_0x169c09('0x1')]({'where':_0x9bcba5[_0x169c09('0x4f')]})[_0x169c09('0x29')](function(_0x520183){const _0x1961ad=_0x169c09;return _0x18992e['count']=_0x520183,_0x21e927[_0x1961ad('0x50')][_0x1961ad('0x38')]&&(_0x9bcba5[_0x1961ad('0x31')]=[{'all':!![]}]),db[_0x1961ad('0x41')][_0x1961ad('0xe')](_0x9bcba5);})[_0x169c09('0x29')](function(_0x5ac26a){const _0x4f5a9b=_0x169c09;return _0x18992e[_0x4f5a9b('0x17')]=_0x5ac26a,_0x18992e;});})[_0x443544('0x29')](respondWithFilteredResult(_0x11c06c,_0x9bcba5))[_0x443544('0x15')](handleError(_0x11c06c,null));},exports[_0x50bbe6('0x5b')]=function(_0x40d2c1,_0x2d9db8){const _0x21de0f=_0x50bbe6;return db[_0x21de0f('0xc')][_0x21de0f('0x49')]({'where':{'id':_0x40d2c1[_0x21de0f('0x10')]['id']}})[_0x21de0f('0x29')](handleEntityNotFound(_0x2d9db8,null))['then'](function(_0x1638c5){const _0x3ee053=_0x21de0f;if(_0x1638c5)return _0x1638c5[_0x3ee053('0x5b')](_0x40d2c1[_0x3ee053('0x50')][_0x3ee053('0xd')]);})[_0x21de0f('0x29')](respondWithStatusCode(_0x2d9db8,null))[_0x21de0f('0x15')](handleError(_0x2d9db8,null));},exports[_0x50bbe6('0x46')]=function(_0x5847e4,_0x39eafa){const _0x31f208=_0x50bbe6;return db[_0x31f208('0xc')][_0x31f208('0x49')]({'where':{'id':_0x5847e4['params']['id']}})[_0x31f208('0x29')](handleEntityNotFound(_0x39eafa,null))[_0x31f208('0x29')](function(_0x527c1a){const _0x1ab2a7=_0x31f208;if(_0x527c1a){const _0x4c1b05=[],_0x333b79={'success':[],'errors':[]};return db[_0x1ab2a7('0x6a')][_0x1ab2a7('0x70')]()['then'](function(_0x36f3ab){const _0x5a8646=_0x1ab2a7;_0x5847e4[_0x5a8646('0x6c')][_0x5a8646('0x1f')]&&_[_0x5a8646('0x19')](_0x5847e4[_0x5a8646('0x6c')]['tags'])?_0x5847e4[_0x5a8646('0x6c')][_0x5a8646('0x1f')]['length']?_0x5847e4['body'][_0x5a8646('0x1f')]=_0x5847e4[_0x5a8646('0x6c')][_0x5a8646('0x1f')]['join'](';')+';':_0x5847e4[_0x5a8646('0x6c')]['tags']=null:_0x5847e4[_0x5a8646('0x6c')]['tags']=null;if(_0x5847e4[_0x5a8646('0x6c')]&&_['isArray'](_0x5847e4[_0x5a8646('0x6c')])){for(let _0x40c131=0x0;_0x40c131<_0x5847e4[_0x5a8646('0x6c')][_0x5a8646('0x37')];_0x40c131+=0x1){_0x5847e4[_0x5a8646('0x6c')][_0x40c131][_0x5a8646('0x34')]=_0x5847e4[_0x5a8646('0x10')]['id'],_0x4c1b05[_0x5a8646('0x2b')](_0x5847e4[_0x5a8646('0x6c')][_0x40c131]);}return Promise[_0x5a8646('0x0')](_0x4c1b05,function(_0x481e84){const _0x10fdc2=_0x5a8646;return db[_0x10fdc2('0x6a')]['create'](_[_0x10fdc2('0x55')](_0x481e84,[_0x10fdc2('0xd'),'id'])||{},{'fields':_[_0x10fdc2('0x52')](_0x36f3ab),'raw':!![]})[_0x10fdc2('0x29')](function(_0x561028){const _0x4806fd=_0x10fdc2;_0x333b79[_0x4806fd('0x66')][_0x4806fd('0x2b')](_0x561028[_0x4806fd('0x53')]);})[_0x10fdc2('0x15')](function(_0x2e8ee2){const _0x6ebb66=_0x10fdc2;_0x333b79['errors'][_0x6ebb66('0x2b')]({'data':_0x481e84,'error':_0x2e8ee2[_0x6ebb66('0x48')]});});})[_0x5a8646('0x29')](function(){return _0x333b79;})[_0x5a8646('0x15')](function(_0x4ec38c){return _0x4ec38c;});}else _0x39eafa[_0x5a8646('0x65')](0x190)[_0x5a8646('0x14')]({'message':_0x5a8646('0x23')});});}})[_0x31f208('0x29')](respondWithResult(_0x39eafa,null))[_0x31f208('0x15')](handleError(_0x39eafa,null));},exports[_0x50bbe6('0x6')]=function(_0x5edf3f,_0x33899a){const _0x23e8b3=_0x50bbe6;let _0x4053ed;return db['CmList'][_0x23e8b3('0x49')]({'where':{'id':_0x5edf3f[_0x23e8b3('0x10')]['id']},'include':[{'model':db[_0x23e8b3('0x3a')],'as':_0x23e8b3('0x64')}]})[_0x23e8b3('0x29')](handleEntityNotFound(_0x33899a,null))[_0x23e8b3('0x29')](function(_0x1190c5){const _0x3d4a1b=_0x23e8b3;if(_0x1190c5)return _0x4053ed=_0x1190c5,db[_0x3d4a1b('0x6a')][_0x3d4a1b('0x1c')];})[_0x23e8b3('0x29')](function(_0x4c1109){const _0x220c4e=_0x23e8b3;if(_0x4c1109){let _0x1d54bc={};const _0x574125={};return _0x574125[_0x220c4e('0x2a')]=_[_0x220c4e('0x40')](_[_0x220c4e('0x52')](_0x4c1109),_['map'](_0x4053ed[_0x220c4e('0x64')],function(_0x13acaf){const _0xb293b7=_0x220c4e;return util[_0xb293b7('0x6e')](_0xb293b7('0x3'),_0x13acaf['id']);})),_0x574125[_0x220c4e('0x50')]=_['keys'](_0x5edf3f['query']),_0x574125[_0x220c4e('0x33')]=_[_0x220c4e('0x61')](_0x574125[_0x220c4e('0x2a')],_0x574125[_0x220c4e('0x50')]),_0x1d54bc['attributes']=_[_0x220c4e('0x61')](_0x574125['model'],qs['fields'](_0x5edf3f[_0x220c4e('0x50')][_0x220c4e('0x4e')])),_0x1d54bc[_0x220c4e('0x62')]=_0x1d54bc[_0x220c4e('0x62')][_0x220c4e('0x37')]?_0x1d54bc[_0x220c4e('0x62')]:_0x574125[_0x220c4e('0x2a')],typeof _0x5edf3f[_0x220c4e('0x50')][_0x220c4e('0x27')]==='undefined'&&(_0x1d54bc[_0x220c4e('0x22')]=qs[_0x220c4e('0x22')](_0x5edf3f[_0x220c4e('0x50')][_0x220c4e('0x22')]),_0x1d54bc[_0x220c4e('0x2f')]=qs['offset'](_0x5edf3f[_0x220c4e('0x50')][_0x220c4e('0x2f')])),_0x1d54bc[_0x220c4e('0x71')]=qs['sort'](_0x5edf3f[_0x220c4e('0x50')][_0x220c4e('0x5c')]),_0x1d54bc[_0x220c4e('0x4f')]=qs[_0x220c4e('0x33')](_[_0x220c4e('0x67')](_0x5edf3f['query'],_0x574125['filters'])),_0x1d54bc['raw']=!![],_0x5edf3f['query'][_0x220c4e('0x3d')]&&(_0x1d54bc[_0x220c4e('0x4f')]=_[_0x220c4e('0x56')](_0x1d54bc[_0x220c4e('0x4f')],{[Op['or']]:_[_0x220c4e('0x5f')](_0x1d54bc['attributes'],function(_0x518e4a){const _0x2a2078=_0x220c4e,_0x19e5d4={};return _0x19e5d4[_0x518e4a]={[Op[_0x2a2078('0x5a')]]:'%'+_0x5edf3f[_0x2a2078('0x50')][_0x2a2078('0x3d')]+'%'},_0x19e5d4;})})),_0x1d54bc=_[_0x220c4e('0x56')]({},_0x1d54bc,_0x5edf3f['options']),_0x4053ed['getContacts'](_0x1d54bc);}})[_0x23e8b3('0x29')](respondWithResult(_0x33899a,null))[_0x23e8b3('0x15')](handleError(_0x33899a,null));},exports[_0x50bbe6('0x6b')]=function(_0x47988e,_0x4377ff){const _0x4c11a1=_0x50bbe6;let _0x4c2c6a;return db[_0x4c11a1('0xc')][_0x4c11a1('0x49')]({'where':{'id':_0x47988e[_0x4c11a1('0x10')]['id']},'include':[{'model':db[_0x4c11a1('0x3a')],'as':'CustomFields'}]})['then'](handleEntityNotFound(_0x4377ff,null))[_0x4c11a1('0x29')](function(_0x216f10){const _0x2b9e9f=_0x4c11a1;if(_0x216f10)return _0x4c2c6a=_0x216f10,db[_0x2b9e9f('0x6a')][_0x2b9e9f('0x1c')];})['then'](function(_0x3bb4ff){const _0x2884e0=_0x4c11a1;if(_0x3bb4ff){let _0x3f47fe={};const _0x5b5015={};return _0x5b5015['model']=_[_0x2884e0('0x40')](_['keys'](_0x3bb4ff),_[_0x2884e0('0x5f')](_0x4c2c6a[_0x2884e0('0x64')],function(_0x3067f1){const _0x3f08c0=_0x2884e0;return util['format'](_0x3f08c0('0x3'),_0x3067f1['id']);})),_0x5b5015[_0x2884e0('0x50')]=_[_0x2884e0('0x52')](_0x47988e[_0x2884e0('0x50')]),_0x5b5015[_0x2884e0('0x33')]=_[_0x2884e0('0x61')](_0x5b5015[_0x2884e0('0x2a')],_0x5b5015['query']),_0x3f47fe[_0x2884e0('0x62')]=_[_0x2884e0('0x61')](_0x5b5015['model'],qs[_0x2884e0('0x4e')](_0x47988e[_0x2884e0('0x50')][_0x2884e0('0x4e')])),_0x3f47fe['attributes']=_0x3f47fe[_0x2884e0('0x62')][_0x2884e0('0x37')]?_0x3f47fe[_0x2884e0('0x62')]:_0x5b5015[_0x2884e0('0x2a')],typeof _0x47988e[_0x2884e0('0x50')]['nolimit']===_0x2884e0('0x5')&&(_0x3f47fe[_0x2884e0('0x22')]=qs[_0x2884e0('0x22')](_0x47988e[_0x2884e0('0x50')][_0x2884e0('0x22')]),_0x3f47fe[_0x2884e0('0x2f')]=qs[_0x2884e0('0x2f')](_0x47988e[_0x2884e0('0x50')][_0x2884e0('0x2f')])),_0x3f47fe[_0x2884e0('0x71')]=qs[_0x2884e0('0x5c')](_0x47988e[_0x2884e0('0x50')][_0x2884e0('0x5c')]),_0x3f47fe[_0x2884e0('0x4f')]=qs[_0x2884e0('0x33')](_[_0x2884e0('0x67')](_0x47988e[_0x2884e0('0x50')],_0x5b5015[_0x2884e0('0x33')])),_0x3f47fe[_0x2884e0('0x4')]=!![],_0x47988e[_0x2884e0('0x50')][_0x2884e0('0x3d')]&&(_0x3f47fe[_0x2884e0('0x4f')]=_[_0x2884e0('0x56')](_0x3f47fe['where'],{[Op['or']]:_['map'](_0x3f47fe['attributes'],function(_0x3114c8){const _0x1389ea=_0x2884e0,_0xf7d8ed={};return _0xf7d8ed[_0x3114c8]={[Op[_0x1389ea('0x5a')]]:'%'+_0x47988e['query'][_0x1389ea('0x3d')]+'%'},_0xf7d8ed;})})),_0x3f47fe=_[_0x2884e0('0x56')]({},_0x3f47fe,_0x47988e[_0x2884e0('0x43')]),_0x4c2c6a[_0x2884e0('0x6')](_0x3f47fe);}})[_0x4c11a1('0x29')](function(_0xf18495){const _0xc5ea77=_0x4c11a1;if(!_['isEmpty'](_0xf18495)){const _0x2a3840=toCsv(_0xf18495),_0x25e554=Date[_0xc5ea77('0x3c')]();return fs[_0xc5ea77('0xa')](util['format'](_0xc5ea77('0xb'),_0x4c2c6a['id'],_0x25e554),_0x2a3840),_0x4377ff[_0xc5ea77('0x16')](_0xc5ea77('0x4d'),'attachment;\x20filename='+util[_0xc5ea77('0x6e')](_0xc5ea77('0x2c'),_0x4c2c6a['id'],_0x25e554)),_0x4377ff['setHeader']('Content-type',_0xc5ea77('0x44')),_0x4377ff['download'](util[_0xc5ea77('0x6e')](_0xc5ea77('0xb'),_0x4c2c6a['id'],_0x25e554));}else return _0x4377ff['sendStatus'](0xcc);})[_0x4c11a1('0x15')](handleError(_0x4377ff,null));},exports[_0x50bbe6('0x21')]=function(_0x22c34c,_0x2dbc9c){const _0x2d45c2=_0x50bbe6;let _0x524739;return delete _0x22c34c[_0x2d45c2('0x6c')]['id'],db[_0x2d45c2('0xc')][_0x2d45c2('0x49')]({'where':{'id':_0x22c34c['params']['id']}})[_0x2d45c2('0x29')](handleEntityNotFound(_0x2dbc9c,null))[_0x2d45c2('0x29')](function(_0x2de162){const _0x3f5b25=_0x2d45c2;if(_0x2de162)return db['sequelize'][_0x3f5b25('0x2e')](function(_0x1f0827){const _0x17d374=_0x3f5b25;return db[_0x17d374('0x3a')][_0x17d374('0x20')](_0x22c34c[_0x17d374('0x6c')],{'transaction':_0x1f0827})[_0x17d374('0x29')](function(_0x26eff4){return _0x524739=_0x26eff4,_0x2de162['addCustomFields'](_0x26eff4,{'transaction':_0x1f0827});})[_0x17d374('0x29')](function(){const _0x50f22a=_0x17d374,_0x59951a={'type':db[_0x50f22a('0x7')][_0x50f22a('0x12')],'transaction':_0x1f0827};switch(_0x22c34c['body'][_0x50f22a('0x32')]){case _0x50f22a('0x45'):_0x59951a[_0x50f22a('0x32')]=db[_0x50f22a('0x7')][_0x50f22a('0x12')];break;case'number':_0x59951a[_0x50f22a('0x32')]=db['Sequelize'][_0x50f22a('0x5d')];break;case _0x50f22a('0x42'):_0x59951a[_0x50f22a('0x32')]=db[_0x50f22a('0x7')][_0x50f22a('0x1a')],_0x59951a[_0x50f22a('0x5e')]=![];break;default:}return db[_0x50f22a('0x8')][_0x50f22a('0x18')]['addColumn']('cm_contacts',util[_0x50f22a('0x6e')]('cf_%s',_0x524739['id']),_0x59951a);})[_0x17d374('0x29')](function(){return _0x524739;});});})['then'](respondWithResult(_0x2dbc9c,null))[_0x2d45c2('0x15')](handleError(_0x2dbc9c,null));},exports[_0x50bbe6('0x36')]=function(_0x2ad4e3,_0x4466c0){const _0x4e01fb=_0x50bbe6;let _0x3bc481={};const _0x399701={};return db[_0x4e01fb('0xc')][_0x4e01fb('0x49')]({'where':{'id':_0x2ad4e3['params']['id']}})[_0x4e01fb('0x29')](handleEntityNotFound(_0x4466c0,null))[_0x4e01fb('0x29')](function(_0x5eb0ce){const _0x2365da=_0x4e01fb;if(_0x5eb0ce)return _0x399701['model']=_[_0x2365da('0x52')](db['CmCustomField']['rawAttributes']),_0x399701[_0x2365da('0x50')]=_['keys'](_0x2ad4e3[_0x2365da('0x50')]),_0x399701[_0x2365da('0x33')]=_['intersection'](_0x399701[_0x2365da('0x2a')],_0x399701[_0x2365da('0x50')]),_0x3bc481[_0x2365da('0x62')]=_['intersection'](_0x399701[_0x2365da('0x2a')],qs[_0x2365da('0x4e')](_0x2ad4e3[_0x2365da('0x50')]['fields'])),_0x3bc481[_0x2365da('0x62')]=_0x3bc481[_0x2365da('0x62')][_0x2365da('0x37')]?_0x3bc481['attributes']:_0x399701[_0x2365da('0x2a')],_0x3bc481[_0x2365da('0x71')]=qs[_0x2365da('0x5c')](_0x2ad4e3[_0x2365da('0x50')]['sort']),_0x3bc481[_0x2365da('0x4f')]=qs[_0x2365da('0x33')](_[_0x2365da('0x67')](_0x2ad4e3[_0x2365da('0x50')],_0x399701[_0x2365da('0x33')])),_0x3bc481['where']=_[_0x2365da('0x56')](_0x3bc481[_0x2365da('0x4f')],{[Op['or']]:[{'ListId':_0x5eb0ce['id']},{'ListId':null}]}),_0x2ad4e3[_0x2365da('0x50')][_0x2365da('0x3d')]&&(_0x3bc481['where']=_['merge'](_0x3bc481[_0x2365da('0x4f')],{[Op['or']]:_[_0x2365da('0x5f')](_0x3bc481['attributes'],function(_0x6ef9c8){const _0x529097=_0x2365da,_0x1eec6c={};return _0x1eec6c[_0x6ef9c8]={[Op[_0x529097('0x5a')]]:'%'+_0x2ad4e3[_0x529097('0x50')][_0x529097('0x3d')]+'%'},_0x1eec6c;})})),_0x3bc481=_[_0x2365da('0x56')]({},_0x3bc481,_0x2ad4e3[_0x2365da('0x43')]),db[_0x2365da('0x3a')][_0x2365da('0x6f')](_0x3bc481);})['then'](respondWithResult(_0x4466c0,null))[_0x4e01fb('0x15')](handleError(_0x4466c0,null));},exports[_0x50bbe6('0x4c')]=function(_0x4d65d1,_0x480ad5){const _0x1c7e24=_0x50bbe6;return db['CmList']['findOne']({'where':{'id':_0x4d65d1[_0x1c7e24('0x10')]['id']}})[_0x1c7e24('0x29')](function(_0x1b589b){const _0x20aec5=_0x1c7e24;if(_0x1b589b)return _0x1b589b[_0x20aec5('0x4c')](_0x4d65d1[_0x20aec5('0x6c')]['ids'],{'through':_[_0x20aec5('0x55')](_0x4d65d1[_0x20aec5('0x6c')],[_0x20aec5('0xd'),'id'])})[_0x20aec5('0x29')](function(_0x465907){const _0x43ac2d=_0x20aec5;for(let _0x11b026=0x0;_0x11b026<_0x4d65d1[_0x43ac2d('0x6c')][_0x43ac2d('0xd')]['length'];_0x11b026+=0x1){socket[_0x43ac2d('0x72')]('userCmList:save',{'UserId':_0x4d65d1[_0x43ac2d('0x6c')]['ids'][_0x11b026],'CmListId':_0x4d65d1[_0x43ac2d('0x10')]['id']});}return _0x465907;});})[_0x1c7e24('0x29')](respondWithResult(_0x480ad5,null))[_0x1c7e24('0x15')](handleError(_0x480ad5,null));},exports[_0x50bbe6('0x69')]=function(_0x4dab49,_0x4b5954){const _0x11eb53=_0x50bbe6;return db[_0x11eb53('0xc')][_0x11eb53('0x49')]({'where':{'id':_0x4dab49['params']['id']}})['then'](handleEntityNotFound(_0x4b5954,null))[_0x11eb53('0x29')](function(_0x3c7fb0){const _0x36dfef=_0x11eb53;if(_0x3c7fb0)return _0x3c7fb0[_0x36dfef('0x69')](_0x4dab49[_0x36dfef('0x50')][_0x36dfef('0xd')])[_0x36dfef('0x29')](function(){const _0xeb98ed=_0x36dfef;if(_[_0xeb98ed('0x19')](_0x4dab49[_0xeb98ed('0x50')][_0xeb98ed('0xd')]))for(let _0x5b5c37=0x0;_0x5b5c37<_0x4dab49[_0xeb98ed('0x50')]['ids'][_0xeb98ed('0x37')];_0x5b5c37+=0x1){socket[_0xeb98ed('0x72')](_0xeb98ed('0x6d'),{'UserId':Number(_0x4dab49['query'][_0xeb98ed('0xd')][_0x5b5c37]),'CmListId':Number(_0x4dab49['params']['id'])});}else socket[_0xeb98ed('0x72')](_0xeb98ed('0x6d'),{'UserId':Number(_0x4dab49[_0xeb98ed('0x50')][_0xeb98ed('0xd')]),'CmListId':Number(_0x4dab49[_0xeb98ed('0x10')]['id'])});});})[_0x11eb53('0x29')](respondWithStatusCode(_0x4b5954,null))[_0x11eb53('0x15')](handleError(_0x4b5954,null));},exports[_0x50bbe6('0x30')]=function(_0x114ef5,_0x4a64d1){const _0x5b6949=_0x50bbe6;let _0x352fd2={};const _0x1ecbd3={};let _0x2d86c4,_0x1e84ed;return db[_0x5b6949('0xc')]['findOne']({'where':{'id':_0x114ef5['params']['id']}})[_0x5b6949('0x29')](handleEntityNotFound(_0x4a64d1,null))['then'](function(_0x7f842a){const _0x403afb=_0x5b6949;if(_0x7f842a)return _0x2d86c4=_0x7f842a,_0x1ecbd3[_0x403afb('0x2a')]=_[_0x403afb('0x52')](db['User'][_0x403afb('0x1c')]),_0x1ecbd3[_0x403afb('0x50')]=_[_0x403afb('0x52')](_0x114ef5[_0x403afb('0x50')]),_0x1ecbd3[_0x403afb('0x33')]=_[_0x403afb('0x61')](_0x1ecbd3[_0x403afb('0x2a')],_0x1ecbd3[_0x403afb('0x50')]),_0x352fd2[_0x403afb('0x62')]=_['intersection'](_0x1ecbd3[_0x403afb('0x2a')],qs[_0x403afb('0x4e')](_0x114ef5[_0x403afb('0x50')][_0x403afb('0x4e')])),_0x352fd2[_0x403afb('0x62')]=_0x352fd2[_0x403afb('0x62')][_0x403afb('0x37')]?_0x352fd2[_0x403afb('0x62')]:_0x1ecbd3[_0x403afb('0x2a')],_0x352fd2[_0x403afb('0x71')]=qs[_0x403afb('0x5c')](_0x114ef5[_0x403afb('0x50')][_0x403afb('0x5c')]),_0x352fd2['where']=qs[_0x403afb('0x33')](_[_0x403afb('0x67')](_0x114ef5[_0x403afb('0x50')],_0x1ecbd3['filters'])),_0x114ef5['query'][_0x403afb('0x3d')]&&(_0x352fd2['where']=_[_0x403afb('0x56')](_0x352fd2[_0x403afb('0x4f')],{[Op['or']]:_['map'](_0x352fd2[_0x403afb('0x62')],function(_0x51ae15){const _0x4e1f48=_0x403afb,_0x3550fb={};return _0x3550fb[_0x51ae15]={[Op[_0x4e1f48('0x5a')]]:'%'+_0x114ef5['query'][_0x4e1f48('0x3d')]+'%'},_0x3550fb;})})),_0x352fd2=_[_0x403afb('0x56')]({},_0x352fd2,_0x114ef5[_0x403afb('0x43')]),_0x2d86c4[_0x403afb('0x30')](_0x352fd2);})[_0x5b6949('0x29')](function(_0x5bfd0f){const _0x343201=_0x5b6949;if(_0x5bfd0f)return _0x1e84ed=_0x5bfd0f[_0x343201('0x37')],typeof _0x114ef5['query'][_0x343201('0x27')]===_0x343201('0x5')&&(_0x352fd2[_0x343201('0x22')]=qs[_0x343201('0x22')](_0x114ef5[_0x343201('0x50')][_0x343201('0x22')]),_0x352fd2['offset']=qs[_0x343201('0x2f')](_0x114ef5[_0x343201('0x50')][_0x343201('0x2f')])),_0x2d86c4['getAgents'](_0x352fd2);})[_0x5b6949('0x29')](function(_0x4980ae){if(_0x4980ae)return _0x4980ae?{'count':_0x1e84ed,'rows':_0x4980ae}:null;})[_0x5b6949('0x29')](respondWithResult(_0x4a64d1,null))['catch'](handleError(_0x4a64d1,null));}; \ No newline at end of file +const a157_0x6b8e=['getAgents','include','register','json','Lists','dataValues','model','ids','../../mysqldb','tags','undefined','nolimit','setHeader','getContacts','params','Sequelize','query','cf_%d','list_%d_%s.csv','length','VIRTUAL','get','success','catch','removeDispositions','raw','error','CmCustomField','UserProfileSection','index','join','isEmpty','pick','role','User','show','switch','../../config/logger','now','options','cm_contacts','text/csv','findAndCountAll','lodash','offset','update','set','/tmp/list_%d_%s.csv','CustomFields','describe','Content-Range','./cmList.socket','../../rediscache','addCustomFields','findOne','isArray','limit','create','end','filter','Unable\x20to\x20retrieve\x20the\x20current\x20user','INTEGER','TEXT','order','count','type','push','then','body','rawAttributes','fields','destroy','user','name','Malformed\x20request\x20syntax','Disposition','ListId','like','userCmList:save','includeAll','keys','emit','merge','CmList','attributes','CmContact','message','sendStatus','defaultValue','send','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','findAll','attachment;\x20filename=','addCustomField','text','transaction','getCustomFields','to-csv','autoAssociation','omit','UserProfileResource','where','addColumn','map','Content-disposition','api','sort','writeFileSync','sequelize','getContactsCsv','concat','rows','stack','userCmList:remove','intersection','format','filters','status'];(function(_0x333cfd,_0x6b8e73){const _0x5ae49b=function(_0x29d76c){while(--_0x29d76c){_0x333cfd['push'](_0x333cfd['shift']());}};_0x5ae49b(++_0x6b8e73);}(a157_0x6b8e,0xeb));const a157_0x5ae4=function(_0x333cfd,_0x6b8e73){_0x333cfd=_0x333cfd-0x0;let _0x5ae49b=a157_0x6b8e[_0x333cfd];return _0x5ae49b;};const _0x4073bd=a157_0x5ae4;'use strict';const util=require('util'),fs=require('fs'),_=require(_0x4073bd('0x2c')),toCsv=require(_0x4073bd('0x62')),{getSocket}=require(_0x4073bd('0x35')),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0x4073bd('0x26'))(_0x4073bd('0x6a')),db=require(_0x4073bd('0x9'))['db'],{Op}=require(_0x4073bd('0x6d'));require(_0x4073bd('0x34'))[_0x4073bd('0x3')](socket);function respondWithStatusCode(_0x29d76c,_0x429e66){return _0x429e66=_0x429e66||0xcc,function(_0x2d75c7){const _0x1a6b65=a157_0x5ae4;if(_0x2d75c7)return _0x29d76c['sendStatus'](_0x429e66);return _0x29d76c[_0x1a6b65('0x0')](_0x429e66)[_0x1a6b65('0x3b')]();};}function respondWithResult(_0x541adb,_0x14ef69){return _0x14ef69=_0x14ef69||0xc8,function(_0x14e24c){const _0x34d129=a157_0x5ae4;if(_0x14e24c)return _0x541adb[_0x34d129('0x0')](_0x14ef69)[_0x34d129('0x4')](_0x14e24c);};}function respondWithFilteredResult(_0x9b45ca,_0x1df744){return function(_0x260348){const _0x5828dd=a157_0x5ae4;if(_0x260348){const _0x174f9d=_0x260348[_0x5828dd('0x41')],_0x42b398=_0x1df744[_0x5828dd('0x2d')];let _0xce5410=_0x1df744['offset']+_0x1df744[_0x5828dd('0x39')],_0x16a024;return _0xce5410>=_0x174f9d?(_0xce5410=_0x174f9d,_0x16a024=0xc8):_0x16a024=0xce,_0x9b45ca[_0x5828dd('0x0')](_0x16a024),_0x9b45ca[_0x5828dd('0x2f')](_0x5828dd('0x33'),_0x42b398+'-'+_0xce5410+'/'+_0x174f9d)[_0x5828dd('0x4')](_0x260348);}return null;};}function saveUpdates(_0x3fde72){return function(_0x5a69eb){const _0x38fa7b=a157_0x5ae4;if(_0x5a69eb)return _0x5a69eb[_0x38fa7b('0x2e')](_0x3fde72)[_0x38fa7b('0x44')](function(_0x39e582){return _0x39e582;});return null;};}function removeEntity(_0x24d235){return function(_0x3f9a5e){const _0x456b25=a157_0x5ae4;if(_0x3f9a5e)return _0x3f9a5e[_0x456b25('0x48')]()['then'](function(){const _0x3f70c=_0x456b25,_0x1b2138=_0x3f9a5e[_0x3f70c('0x16')]({'plain':!![]}),_0x29c1fe=_0x3f70c('0x5');return db[_0x3f70c('0x65')]['destroy']({'where':{'type':_0x29c1fe,'resourceId':_0x1b2138['id']}})['then'](function(){return _0x3f9a5e;});})['then'](function(){const _0x5af805=_0x456b25;_0x24d235['status'](0xcc)[_0x5af805('0x3b')]();});};}function handleEntityNotFound(_0xd253d8){return function(_0x14b2ea){const _0x2f9aa7=a157_0x5ae4;return!_0x14b2ea&&_0xd253d8[_0x2f9aa7('0x58')](0x194),_0x14b2ea;};}function handleError(_0x10419c,_0x20c401){return _0x20c401=_0x20c401||0x1f4,function(_0x15d283){const _0x23d7ef=a157_0x5ae4;logger[_0x23d7ef('0x1b')](_0x15d283[_0x23d7ef('0x71')]),_0x15d283[_0x23d7ef('0x4a')]&&delete _0x15d283[_0x23d7ef('0x4a')],_0x10419c[_0x23d7ef('0x0')](_0x20c401)[_0x23d7ef('0x5a')](_0x15d283);};}exports[_0x4073bd('0x1e')]=function(_0x1db776,_0x3bff81){const _0x286d6e=_0x4073bd;let _0x7b019={};const _0x11d5a4={},_0x462658={'count':0x0,'rows':[]},_0x2d6107=_[_0x286d6e('0x68')](db[_0x286d6e('0x54')][_0x286d6e('0x46')],function(_0xae0676){const _0x51d082=_0x286d6e;return{'name':_0xae0676['fieldName'],'type':_0xae0676[_0x51d082('0x42')]['key']};});_0x11d5a4[_0x286d6e('0x7')]=_[_0x286d6e('0x68')](_0x2d6107,_0x286d6e('0x4a')),_0x11d5a4['query']=_[_0x286d6e('0x51')](_0x1db776[_0x286d6e('0x11')]),_0x11d5a4[_0x286d6e('0x75')]=_['intersection'](_0x11d5a4[_0x286d6e('0x7')],_0x11d5a4[_0x286d6e('0x11')]),_0x7b019[_0x286d6e('0x55')]=_[_0x286d6e('0x73')](_0x11d5a4[_0x286d6e('0x7')],qs[_0x286d6e('0x47')](_0x1db776[_0x286d6e('0x11')][_0x286d6e('0x47')])),_0x7b019[_0x286d6e('0x55')]=_0x7b019[_0x286d6e('0x55')][_0x286d6e('0x14')]?_0x7b019[_0x286d6e('0x55')]:_0x11d5a4[_0x286d6e('0x7')];typeof _0x1db776[_0x286d6e('0x11')][_0x286d6e('0xc')]===_0x286d6e('0xb')&&(_0x7b019['limit']=qs[_0x286d6e('0x39')](_0x1db776[_0x286d6e('0x11')][_0x286d6e('0x39')]),_0x7b019[_0x286d6e('0x2d')]=qs[_0x286d6e('0x2d')](_0x1db776[_0x286d6e('0x11')]['offset']));_0x7b019[_0x286d6e('0x40')]=qs[_0x286d6e('0x6b')](_0x1db776['query'][_0x286d6e('0x6b')]),_0x7b019[_0x286d6e('0x66')]=qs['filters'](_[_0x286d6e('0x21')](_0x1db776['query'],_0x11d5a4[_0x286d6e('0x75')]),_0x2d6107);_0x1db776[_0x286d6e('0x11')][_0x286d6e('0x3c')]&&(_0x7b019[_0x286d6e('0x66')]=_[_0x286d6e('0x53')](_0x7b019[_0x286d6e('0x66')],{[Op['or']]:_['map'](_0x2d6107,function(_0x1d7f53){const _0x591df1=_0x286d6e;if(_0x1d7f53[_0x591df1('0x42')]!==_0x591df1('0x15')){const _0x487a3d={};return _0x487a3d[_0x1d7f53[_0x591df1('0x4a')]]={[Op['like']]:'%'+_0x1db776[_0x591df1('0x11')][_0x591df1('0x3c')]+'%'},_0x487a3d;}})}));_0x7b019=_['merge']({},_0x7b019,_0x1db776[_0x286d6e('0x28')]);const _0x4719b1={'where':_0x7b019['where']};return db[_0x286d6e('0x54')][_0x286d6e('0x41')](_0x4719b1)[_0x286d6e('0x44')](function(_0x4d5093){const _0x2e0057=_0x286d6e;return _0x462658[_0x2e0057('0x41')]=_0x4d5093,_0x1db776[_0x2e0057('0x11')]['includeAll']&&(_0x7b019[_0x2e0057('0x2')]=[{'all':!![]}]),db[_0x2e0057('0x54')][_0x2e0057('0x5c')](_0x7b019);})['then'](function(_0x4660c2){const _0x4d15f9=_0x286d6e;return _0x462658[_0x4d15f9('0x70')]=_0x4660c2,_0x462658;})['then'](respondWithFilteredResult(_0x3bff81,_0x7b019))[_0x286d6e('0x18')](handleError(_0x3bff81,null));},exports[_0x4073bd('0x24')]=function(_0x265efb,_0x52b94f){const _0xac4727=_0x4073bd;let _0x4764a3={'raw':![],'where':{'id':_0x265efb[_0xac4727('0xf')]['id']}};const _0x197a75={};return _0x197a75[_0xac4727('0x7')]=_[_0xac4727('0x51')](db[_0xac4727('0x54')][_0xac4727('0x46')]),_0x197a75[_0xac4727('0x11')]=_[_0xac4727('0x51')](_0x265efb[_0xac4727('0x11')]),_0x197a75[_0xac4727('0x75')]=_[_0xac4727('0x73')](_0x197a75[_0xac4727('0x7')],_0x197a75[_0xac4727('0x11')]),_0x4764a3[_0xac4727('0x55')]=_[_0xac4727('0x73')](_0x197a75['model'],qs[_0xac4727('0x47')](_0x265efb[_0xac4727('0x11')][_0xac4727('0x47')])),_0x4764a3[_0xac4727('0x55')]=_0x4764a3[_0xac4727('0x55')][_0xac4727('0x14')]?_0x4764a3[_0xac4727('0x55')]:_0x197a75[_0xac4727('0x7')],_0x265efb[_0xac4727('0x11')][_0xac4727('0x50')]&&(_0x4764a3['include']=[{'all':!![]}]),_0x4764a3=_[_0xac4727('0x53')]({},_0x4764a3,_0x265efb[_0xac4727('0x28')]),db['CmList'][_0xac4727('0x37')](_0x4764a3)[_0xac4727('0x44')](handleEntityNotFound(_0x52b94f,null))[_0xac4727('0x44')](respondWithResult(_0x52b94f,null))[_0xac4727('0x18')](handleError(_0x52b94f,null));},exports[_0x4073bd('0x3a')]=function(_0x45f064,_0x3d5c08){const _0x7bc4f9=_0x4073bd;return db[_0x7bc4f9('0x54')][_0x7bc4f9('0x3a')](_0x45f064[_0x7bc4f9('0x45')],{})['then'](function(_0x3a3585){const _0x1da422=_0x7bc4f9,_0x41d075=_0x45f064[_0x1da422('0x49')][_0x1da422('0x16')]({'plain':!![]});if(!_0x41d075)throw new Error(_0x1da422('0x3d'));if(_0x41d075[_0x1da422('0x22')]===_0x1da422('0x49')){const _0x2a3a8d=_0x3a3585[_0x1da422('0x16')]({'plain':!![]}),_0x565173=_0x1da422('0x5');return db[_0x1da422('0x1d')][_0x1da422('0x37')]({'where':{'name':_0x565173,'userProfileId':_0x41d075['userProfileId']},'raw':!![]})[_0x1da422('0x44')](function(_0x1e488e){const _0xc9370b=_0x1da422;return _0x1e488e&&_0x1e488e[_0xc9370b('0x63')]===0x0?db[_0xc9370b('0x65')][_0xc9370b('0x3a')]({'name':_0x2a3a8d['name'],'resourceId':_0x2a3a8d['id'],'type':_0x1e488e[_0xc9370b('0x4a')],'sectionId':_0x1e488e['id']},{})[_0xc9370b('0x44')](function(){return _0x3a3585;}):_0x3a3585;})['catch'](function(_0xb1e38){const _0x1fb29e=_0x1da422;logger[_0x1fb29e('0x1b')](_0x1fb29e('0x5b'),_0xb1e38);throw _0xb1e38;});}return _0x3a3585;})[_0x7bc4f9('0x44')](respondWithResult(_0x3d5c08,0xc9))[_0x7bc4f9('0x18')](handleError(_0x3d5c08,null));},exports[_0x4073bd('0x2e')]=function(_0x20bac8,_0x447c25){const _0x212dce=_0x4073bd;return _0x20bac8[_0x212dce('0x45')]['id']&&delete _0x20bac8[_0x212dce('0x45')]['id'],db['CmList'][_0x212dce('0x37')]({'where':{'id':_0x20bac8[_0x212dce('0xf')]['id']}})[_0x212dce('0x44')](handleEntityNotFound(_0x447c25,null))[_0x212dce('0x44')](saveUpdates(_0x20bac8[_0x212dce('0x45')],null))[_0x212dce('0x44')](respondWithResult(_0x447c25,null))[_0x212dce('0x18')](handleError(_0x447c25,null));},exports[_0x4073bd('0x48')]=function(_0x3fe310,_0x29bad9){const _0x1b3c3b=_0x4073bd;return db[_0x1b3c3b('0x54')]['findOne']({'where':{'id':_0x3fe310[_0x1b3c3b('0xf')]['id']}})[_0x1b3c3b('0x44')](handleEntityNotFound(_0x29bad9,null))[_0x1b3c3b('0x44')](removeEntity(_0x29bad9,null))[_0x1b3c3b('0x18')](handleError(_0x29bad9,null));},exports['describe']=function(_0x264764,_0x347907){const _0x61936=_0x4073bd;return db[_0x61936('0x54')][_0x61936('0x32')]()[_0x61936('0x44')](respondWithResult(_0x347907,null))[_0x61936('0x18')](handleError(_0x347907,null));},exports['addDisposition']=function(_0xe196c8,_0x15f80d){const _0x5c511a=_0x4073bd;return _0xe196c8[_0x5c511a('0x45')]['id']&&delete _0xe196c8['body']['id'],db[_0x5c511a('0x54')][_0x5c511a('0x37')]({'where':{'id':_0xe196c8[_0x5c511a('0xf')]['id']}})[_0x5c511a('0x44')](handleEntityNotFound(_0x15f80d,null))[_0x5c511a('0x44')](function(_0x4cf4ee){const _0x324ca3=_0x5c511a;if(_0x4cf4ee)return _0xe196c8[_0x324ca3('0x45')][_0x324ca3('0x4d')]=_0x4cf4ee['id'],db['Disposition'][_0x324ca3('0x3a')](_0xe196c8[_0x324ca3('0x45')]);})[_0x5c511a('0x44')](respondWithResult(_0x15f80d,null))['catch'](handleError(_0x15f80d,null));},exports['getDispositions']=function(_0x412e0d,_0x13a4bb){const _0x2db963=_0x4073bd;let _0x12cf7c={'raw':![],'where':{}};const _0x3aa141={},_0x45d361={'count':0x0,'rows':[]};return db['CmList'][_0x2db963('0x37')]({'where':{'id':_0x412e0d[_0x2db963('0xf')]['id']}})['then'](handleEntityNotFound(_0x13a4bb,null))[_0x2db963('0x44')](function(_0x5bf0bf){const _0x28b58b=_0x2db963;if(_0x5bf0bf)return _0x3aa141['model']=_[_0x28b58b('0x51')](db[_0x28b58b('0x4c')][_0x28b58b('0x46')]),_0x3aa141[_0x28b58b('0x11')]=_[_0x28b58b('0x51')](_0x412e0d[_0x28b58b('0x11')]),_0x3aa141[_0x28b58b('0x75')]=_['intersection'](_0x3aa141[_0x28b58b('0x7')],_0x3aa141[_0x28b58b('0x11')]),_0x12cf7c[_0x28b58b('0x55')]=_[_0x28b58b('0x73')](_0x3aa141[_0x28b58b('0x7')],qs[_0x28b58b('0x47')](_0x412e0d['query']['fields'])),_0x12cf7c['attributes']=_0x12cf7c[_0x28b58b('0x55')]['length']?_0x12cf7c['attributes']:_0x3aa141[_0x28b58b('0x7')],typeof _0x412e0d[_0x28b58b('0x11')][_0x28b58b('0xc')]===_0x28b58b('0xb')&&(_0x12cf7c[_0x28b58b('0x39')]=qs['limit'](_0x412e0d[_0x28b58b('0x11')]['limit']),_0x12cf7c[_0x28b58b('0x2d')]=qs[_0x28b58b('0x2d')](_0x412e0d[_0x28b58b('0x11')]['offset'])),_0x12cf7c[_0x28b58b('0x40')]=qs['sort'](_0x412e0d[_0x28b58b('0x11')]['sort']),_0x12cf7c[_0x28b58b('0x66')]=qs[_0x28b58b('0x75')](_['pick'](_0x412e0d[_0x28b58b('0x11')],_0x3aa141[_0x28b58b('0x75')])),_0x12cf7c[_0x28b58b('0x66')][_0x28b58b('0x4d')]=_0x5bf0bf['id'],_0x412e0d[_0x28b58b('0x11')][_0x28b58b('0x3c')]&&(_0x12cf7c[_0x28b58b('0x66')]=_[_0x28b58b('0x53')](_0x12cf7c[_0x28b58b('0x66')],{[Op['or']]:_[_0x28b58b('0x68')](_0x12cf7c[_0x28b58b('0x55')],function(_0x309633){const _0x1a2ca5=_0x28b58b,_0x50a67b={};return _0x50a67b[_0x309633]={[Op[_0x1a2ca5('0x4e')]]:'%'+_0x412e0d[_0x1a2ca5('0x11')][_0x1a2ca5('0x3c')]+'%'},_0x50a67b;})})),_0x12cf7c=_[_0x28b58b('0x53')]({},_0x12cf7c,_0x412e0d['options']),db['Disposition'][_0x28b58b('0x41')]({'where':_0x12cf7c[_0x28b58b('0x66')]})['then'](function(_0x16da8d){const _0x223747=_0x28b58b;return _0x45d361[_0x223747('0x41')]=_0x16da8d,_0x412e0d[_0x223747('0x11')][_0x223747('0x50')]&&(_0x12cf7c[_0x223747('0x2')]=[{'all':!![]}]),db['Disposition'][_0x223747('0x5c')](_0x12cf7c);})[_0x28b58b('0x44')](function(_0x1a3630){return _0x45d361['rows']=_0x1a3630,_0x45d361;});})['then'](respondWithFilteredResult(_0x13a4bb,_0x12cf7c))[_0x2db963('0x18')](handleError(_0x13a4bb,null));},exports[_0x4073bd('0x19')]=function(_0x1dc408,_0x1a13f0){const _0x3e07c6=_0x4073bd;return db[_0x3e07c6('0x54')][_0x3e07c6('0x37')]({'where':{'id':_0x1dc408[_0x3e07c6('0xf')]['id']}})[_0x3e07c6('0x44')](handleEntityNotFound(_0x1a13f0,null))['then'](function(_0x1d632f){const _0xf87ea=_0x3e07c6;if(_0x1d632f)return _0x1d632f[_0xf87ea('0x19')](_0x1dc408[_0xf87ea('0x11')][_0xf87ea('0x8')]);})[_0x3e07c6('0x44')](respondWithStatusCode(_0x1a13f0,null))[_0x3e07c6('0x18')](handleError(_0x1a13f0,null));},exports['addContacts']=function(_0x239c1c,_0x556630){const _0x3130ea=_0x4073bd;return db['CmList'][_0x3130ea('0x37')]({'where':{'id':_0x239c1c[_0x3130ea('0xf')]['id']}})[_0x3130ea('0x44')](handleEntityNotFound(_0x556630,null))[_0x3130ea('0x44')](function(_0x5a6d97){const _0x5ac498=_0x3130ea;if(_0x5a6d97){const _0x497dfd=[],_0x43eea9={'success':[],'errors':[]};return db[_0x5ac498('0x56')]['describe']()['then'](function(_0x1091fe){const _0x277392=_0x5ac498;_0x239c1c[_0x277392('0x45')]['tags']&&_['isArray'](_0x239c1c['body'][_0x277392('0xa')])?_0x239c1c[_0x277392('0x45')][_0x277392('0xa')]['length']?_0x239c1c['body']['tags']=_0x239c1c['body']['tags'][_0x277392('0x1f')](';')+';':_0x239c1c[_0x277392('0x45')][_0x277392('0xa')]=null:_0x239c1c[_0x277392('0x45')]['tags']=null;if(_0x239c1c[_0x277392('0x45')]&&_['isArray'](_0x239c1c[_0x277392('0x45')])){for(let _0xb3ea09=0x0;_0xb3ea09<_0x239c1c[_0x277392('0x45')][_0x277392('0x14')];_0xb3ea09+=0x1){_0x239c1c['body'][_0xb3ea09][_0x277392('0x4d')]=_0x239c1c[_0x277392('0xf')]['id'],_0x497dfd[_0x277392('0x43')](_0x239c1c['body'][_0xb3ea09]);}return Promise['each'](_0x497dfd,function(_0x63ca5d){const _0x17f881=_0x277392;return db[_0x17f881('0x56')]['create'](_['omit'](_0x63ca5d,[_0x17f881('0x8'),'id'])||{},{'fields':_['keys'](_0x1091fe),'raw':!![]})[_0x17f881('0x44')](function(_0x48fb3c){const _0x5a4eba=_0x17f881;_0x43eea9[_0x5a4eba('0x17')][_0x5a4eba('0x43')](_0x48fb3c[_0x5a4eba('0x6')]);})[_0x17f881('0x18')](function(_0x3d70db){const _0x2a58fb=_0x17f881;_0x43eea9['errors'][_0x2a58fb('0x43')]({'data':_0x63ca5d,'error':_0x3d70db[_0x2a58fb('0x57')]});});})[_0x277392('0x44')](function(){return _0x43eea9;})[_0x277392('0x18')](function(_0x5d903d){return _0x5d903d;});}else _0x556630['status'](0x190)[_0x277392('0x4')]({'message':_0x277392('0x4b')});});}})[_0x3130ea('0x44')](respondWithResult(_0x556630,null))[_0x3130ea('0x18')](handleError(_0x556630,null));},exports[_0x4073bd('0xe')]=function(_0x5c8620,_0xa7b085){const _0x3e6c0c=_0x4073bd;let _0x4b771b;return db[_0x3e6c0c('0x54')][_0x3e6c0c('0x37')]({'where':{'id':_0x5c8620[_0x3e6c0c('0xf')]['id']},'include':[{'model':db[_0x3e6c0c('0x1c')],'as':_0x3e6c0c('0x31')}]})[_0x3e6c0c('0x44')](handleEntityNotFound(_0xa7b085,null))[_0x3e6c0c('0x44')](function(_0x372ad0){const _0x20c7f6=_0x3e6c0c;if(_0x372ad0)return _0x4b771b=_0x372ad0,db[_0x20c7f6('0x56')][_0x20c7f6('0x46')];})[_0x3e6c0c('0x44')](function(_0x1167fd){const _0xcb5101=_0x3e6c0c;if(_0x1167fd){let _0x1896df={};const _0x555d10={};return _0x555d10[_0xcb5101('0x7')]=_['concat'](_[_0xcb5101('0x51')](_0x1167fd),_[_0xcb5101('0x68')](_0x4b771b[_0xcb5101('0x31')],function(_0x4ad3b9){const _0x15d6af=_0xcb5101;return util[_0x15d6af('0x74')]('cf_%d',_0x4ad3b9['id']);})),_0x555d10[_0xcb5101('0x11')]=_[_0xcb5101('0x51')](_0x5c8620['query']),_0x555d10[_0xcb5101('0x75')]=_[_0xcb5101('0x73')](_0x555d10[_0xcb5101('0x7')],_0x555d10[_0xcb5101('0x11')]),_0x1896df[_0xcb5101('0x55')]=_[_0xcb5101('0x73')](_0x555d10[_0xcb5101('0x7')],qs[_0xcb5101('0x47')](_0x5c8620['query'][_0xcb5101('0x47')])),_0x1896df[_0xcb5101('0x55')]=_0x1896df['attributes'][_0xcb5101('0x14')]?_0x1896df[_0xcb5101('0x55')]:_0x555d10['model'],typeof _0x5c8620[_0xcb5101('0x11')][_0xcb5101('0xc')]===_0xcb5101('0xb')&&(_0x1896df[_0xcb5101('0x39')]=qs['limit'](_0x5c8620[_0xcb5101('0x11')][_0xcb5101('0x39')]),_0x1896df[_0xcb5101('0x2d')]=qs[_0xcb5101('0x2d')](_0x5c8620[_0xcb5101('0x11')]['offset'])),_0x1896df[_0xcb5101('0x40')]=qs[_0xcb5101('0x6b')](_0x5c8620[_0xcb5101('0x11')][_0xcb5101('0x6b')]),_0x1896df[_0xcb5101('0x66')]=qs[_0xcb5101('0x75')](_[_0xcb5101('0x21')](_0x5c8620[_0xcb5101('0x11')],_0x555d10[_0xcb5101('0x75')])),_0x1896df[_0xcb5101('0x1a')]=!![],_0x5c8620['query'][_0xcb5101('0x3c')]&&(_0x1896df[_0xcb5101('0x66')]=_[_0xcb5101('0x53')](_0x1896df[_0xcb5101('0x66')],{[Op['or']]:_[_0xcb5101('0x68')](_0x1896df[_0xcb5101('0x55')],function(_0x4ca5da){const _0x21d187=_0xcb5101,_0x6c86e1={};return _0x6c86e1[_0x4ca5da]={[Op[_0x21d187('0x4e')]]:'%'+_0x5c8620[_0x21d187('0x11')][_0x21d187('0x3c')]+'%'},_0x6c86e1;})})),_0x1896df=_[_0xcb5101('0x53')]({},_0x1896df,_0x5c8620[_0xcb5101('0x28')]),_0x4b771b[_0xcb5101('0xe')](_0x1896df);}})[_0x3e6c0c('0x44')](respondWithResult(_0xa7b085,null))[_0x3e6c0c('0x18')](handleError(_0xa7b085,null));},exports[_0x4073bd('0x6e')]=function(_0x10d291,_0x1ef4c9){const _0x32a4f4=_0x4073bd;let _0x1d35d8;return db[_0x32a4f4('0x54')][_0x32a4f4('0x37')]({'where':{'id':_0x10d291[_0x32a4f4('0xf')]['id']},'include':[{'model':db[_0x32a4f4('0x1c')],'as':_0x32a4f4('0x31')}]})['then'](handleEntityNotFound(_0x1ef4c9,null))['then'](function(_0x1a0114){const _0xedc0cb=_0x32a4f4;if(_0x1a0114)return _0x1d35d8=_0x1a0114,db['CmContact'][_0xedc0cb('0x46')];})[_0x32a4f4('0x44')](function(_0x48be80){const _0x1ef0e3=_0x32a4f4;if(_0x48be80){let _0x18eeee={};const _0x3f2686={};return _0x3f2686[_0x1ef0e3('0x7')]=_[_0x1ef0e3('0x6f')](_['keys'](_0x48be80),_[_0x1ef0e3('0x68')](_0x1d35d8[_0x1ef0e3('0x31')],function(_0x2a7a44){const _0x55e09d=_0x1ef0e3;return util[_0x55e09d('0x74')](_0x55e09d('0x12'),_0x2a7a44['id']);})),_0x3f2686[_0x1ef0e3('0x11')]=_[_0x1ef0e3('0x51')](_0x10d291[_0x1ef0e3('0x11')]),_0x3f2686[_0x1ef0e3('0x75')]=_['intersection'](_0x3f2686[_0x1ef0e3('0x7')],_0x3f2686[_0x1ef0e3('0x11')]),_0x18eeee['attributes']=_[_0x1ef0e3('0x73')](_0x3f2686['model'],qs[_0x1ef0e3('0x47')](_0x10d291['query']['fields'])),_0x18eeee['attributes']=_0x18eeee['attributes'][_0x1ef0e3('0x14')]?_0x18eeee[_0x1ef0e3('0x55')]:_0x3f2686[_0x1ef0e3('0x7')],typeof _0x10d291['query']['nolimit']===_0x1ef0e3('0xb')&&(_0x18eeee[_0x1ef0e3('0x39')]=qs[_0x1ef0e3('0x39')](_0x10d291[_0x1ef0e3('0x11')]['limit']),_0x18eeee[_0x1ef0e3('0x2d')]=qs[_0x1ef0e3('0x2d')](_0x10d291[_0x1ef0e3('0x11')][_0x1ef0e3('0x2d')])),_0x18eeee[_0x1ef0e3('0x40')]=qs[_0x1ef0e3('0x6b')](_0x10d291[_0x1ef0e3('0x11')][_0x1ef0e3('0x6b')]),_0x18eeee[_0x1ef0e3('0x66')]=qs['filters'](_['pick'](_0x10d291[_0x1ef0e3('0x11')],_0x3f2686[_0x1ef0e3('0x75')])),_0x18eeee[_0x1ef0e3('0x1a')]=!![],_0x10d291[_0x1ef0e3('0x11')][_0x1ef0e3('0x3c')]&&(_0x18eeee[_0x1ef0e3('0x66')]=_[_0x1ef0e3('0x53')](_0x18eeee['where'],{[Op['or']]:_[_0x1ef0e3('0x68')](_0x18eeee['attributes'],function(_0x2beca0){const _0x31d786=_0x1ef0e3,_0x5c0af3={};return _0x5c0af3[_0x2beca0]={[Op[_0x31d786('0x4e')]]:'%'+_0x10d291[_0x31d786('0x11')][_0x31d786('0x3c')]+'%'},_0x5c0af3;})})),_0x18eeee=_[_0x1ef0e3('0x53')]({},_0x18eeee,_0x10d291[_0x1ef0e3('0x28')]),_0x1d35d8['getContacts'](_0x18eeee);}})[_0x32a4f4('0x44')](function(_0x98d8a2){const _0xdca424=_0x32a4f4;if(!_[_0xdca424('0x20')](_0x98d8a2)){const _0x19214c=toCsv(_0x98d8a2),_0x3475f4=Date[_0xdca424('0x27')]();return fs[_0xdca424('0x6c')](util[_0xdca424('0x74')](_0xdca424('0x30'),_0x1d35d8['id'],_0x3475f4),_0x19214c),_0x1ef4c9['setHeader'](_0xdca424('0x69'),_0xdca424('0x5d')+util[_0xdca424('0x74')](_0xdca424('0x13'),_0x1d35d8['id'],_0x3475f4)),_0x1ef4c9[_0xdca424('0xd')]('Content-type',_0xdca424('0x2a')),_0x1ef4c9['download'](util[_0xdca424('0x74')](_0xdca424('0x30'),_0x1d35d8['id'],_0x3475f4));}else return _0x1ef4c9[_0xdca424('0x58')](0xcc);})[_0x32a4f4('0x18')](handleError(_0x1ef4c9,null));},exports[_0x4073bd('0x5e')]=function(_0x48b032,_0x5813ea){const _0x43cbe3=_0x4073bd;let _0x10ed23;return delete _0x48b032[_0x43cbe3('0x45')]['id'],db['CmList']['findOne']({'where':{'id':_0x48b032[_0x43cbe3('0xf')]['id']}})[_0x43cbe3('0x44')](handleEntityNotFound(_0x5813ea,null))[_0x43cbe3('0x44')](function(_0xd1218f){const _0x22071d=_0x43cbe3;if(_0xd1218f)return db[_0x22071d('0x6d')][_0x22071d('0x60')](function(_0x24f641){const _0x2e7f78=_0x22071d;return db[_0x2e7f78('0x1c')][_0x2e7f78('0x3a')](_0x48b032[_0x2e7f78('0x45')],{'transaction':_0x24f641})[_0x2e7f78('0x44')](function(_0x10501f){const _0x28ff5d=_0x2e7f78;return _0x10ed23=_0x10501f,_0xd1218f[_0x28ff5d('0x36')](_0x10501f,{'transaction':_0x24f641});})['then'](function(){const _0x1da1e4=_0x2e7f78,_0x34a7f0={'type':db[_0x1da1e4('0x10')]['TEXT'],'transaction':_0x24f641};switch(_0x48b032['body'][_0x1da1e4('0x42')]){case _0x1da1e4('0x5f'):_0x34a7f0[_0x1da1e4('0x42')]=db[_0x1da1e4('0x10')][_0x1da1e4('0x3f')];break;case'number':_0x34a7f0['type']=db['Sequelize'][_0x1da1e4('0x3e')];break;case _0x1da1e4('0x25'):_0x34a7f0[_0x1da1e4('0x42')]=db[_0x1da1e4('0x10')]['BOOLEAN'],_0x34a7f0[_0x1da1e4('0x59')]=![];break;default:}return db[_0x1da1e4('0x6d')]['queryInterface'][_0x1da1e4('0x67')](_0x1da1e4('0x29'),util[_0x1da1e4('0x74')]('cf_%s',_0x10ed23['id']),_0x34a7f0);})[_0x2e7f78('0x44')](function(){return _0x10ed23;});});})[_0x43cbe3('0x44')](respondWithResult(_0x5813ea,null))[_0x43cbe3('0x18')](handleError(_0x5813ea,null));},exports[_0x4073bd('0x61')]=function(_0x4c39d7,_0x9409a7){const _0x3edaf2=_0x4073bd;let _0x216935={};const _0x3dd5f6={};return db[_0x3edaf2('0x54')][_0x3edaf2('0x37')]({'where':{'id':_0x4c39d7['params']['id']}})['then'](handleEntityNotFound(_0x9409a7,null))[_0x3edaf2('0x44')](function(_0x23c5cc){const _0x483a71=_0x3edaf2;if(_0x23c5cc)return _0x3dd5f6[_0x483a71('0x7')]=_[_0x483a71('0x51')](db['CmCustomField'][_0x483a71('0x46')]),_0x3dd5f6['query']=_['keys'](_0x4c39d7[_0x483a71('0x11')]),_0x3dd5f6[_0x483a71('0x75')]=_[_0x483a71('0x73')](_0x3dd5f6[_0x483a71('0x7')],_0x3dd5f6[_0x483a71('0x11')]),_0x216935[_0x483a71('0x55')]=_[_0x483a71('0x73')](_0x3dd5f6[_0x483a71('0x7')],qs[_0x483a71('0x47')](_0x4c39d7[_0x483a71('0x11')][_0x483a71('0x47')])),_0x216935['attributes']=_0x216935[_0x483a71('0x55')][_0x483a71('0x14')]?_0x216935[_0x483a71('0x55')]:_0x3dd5f6[_0x483a71('0x7')],_0x216935[_0x483a71('0x40')]=qs[_0x483a71('0x6b')](_0x4c39d7[_0x483a71('0x11')][_0x483a71('0x6b')]),_0x216935[_0x483a71('0x66')]=qs[_0x483a71('0x75')](_[_0x483a71('0x21')](_0x4c39d7[_0x483a71('0x11')],_0x3dd5f6[_0x483a71('0x75')])),_0x216935[_0x483a71('0x66')]=_[_0x483a71('0x53')](_0x216935[_0x483a71('0x66')],{[Op['or']]:[{'ListId':_0x23c5cc['id']},{'ListId':null}]}),_0x4c39d7[_0x483a71('0x11')][_0x483a71('0x3c')]&&(_0x216935[_0x483a71('0x66')]=_[_0x483a71('0x53')](_0x216935[_0x483a71('0x66')],{[Op['or']]:_[_0x483a71('0x68')](_0x216935[_0x483a71('0x55')],function(_0x4c0346){const _0x1a9fe6=_0x483a71,_0x1717f6={};return _0x1717f6[_0x4c0346]={[Op['like']]:'%'+_0x4c39d7[_0x1a9fe6('0x11')][_0x1a9fe6('0x3c')]+'%'},_0x1717f6;})})),_0x216935=_[_0x483a71('0x53')]({},_0x216935,_0x4c39d7[_0x483a71('0x28')]),db[_0x483a71('0x1c')][_0x483a71('0x2b')](_0x216935);})[_0x3edaf2('0x44')](respondWithResult(_0x9409a7,null))[_0x3edaf2('0x18')](handleError(_0x9409a7,null));},exports['addAgents']=function(_0x19316f,_0x5dc537){const _0x3d37e1=_0x4073bd;return db[_0x3d37e1('0x54')][_0x3d37e1('0x37')]({'where':{'id':_0x19316f[_0x3d37e1('0xf')]['id']}})[_0x3d37e1('0x44')](function(_0x525ff3){const _0x13e890=_0x3d37e1;if(_0x525ff3)return _0x525ff3['addAgents'](_0x19316f[_0x13e890('0x45')][_0x13e890('0x8')],{'through':_[_0x13e890('0x64')](_0x19316f[_0x13e890('0x45')],[_0x13e890('0x8'),'id'])})['then'](function(_0x4ece21){const _0x4407bd=_0x13e890;for(let _0x446a52=0x0;_0x446a52<_0x19316f[_0x4407bd('0x45')][_0x4407bd('0x8')][_0x4407bd('0x14')];_0x446a52+=0x1){socket[_0x4407bd('0x52')](_0x4407bd('0x4f'),{'UserId':_0x19316f[_0x4407bd('0x45')]['ids'][_0x446a52],'CmListId':_0x19316f[_0x4407bd('0xf')]['id']});}return _0x4ece21;});})[_0x3d37e1('0x44')](respondWithResult(_0x5dc537,null))['catch'](handleError(_0x5dc537,null));},exports['removeAgents']=function(_0x27324d,_0x29324b){const _0x19028a=_0x4073bd;return db['CmList']['findOne']({'where':{'id':_0x27324d['params']['id']}})[_0x19028a('0x44')](handleEntityNotFound(_0x29324b,null))[_0x19028a('0x44')](function(_0x249239){const _0x59f96a=_0x19028a;if(_0x249239)return _0x249239['removeAgents'](_0x27324d['query']['ids'])[_0x59f96a('0x44')](function(){const _0x45ac3b=_0x59f96a;if(_[_0x45ac3b('0x38')](_0x27324d[_0x45ac3b('0x11')][_0x45ac3b('0x8')]))for(let _0x551053=0x0;_0x551053<_0x27324d[_0x45ac3b('0x11')][_0x45ac3b('0x8')]['length'];_0x551053+=0x1){socket[_0x45ac3b('0x52')](_0x45ac3b('0x72'),{'UserId':Number(_0x27324d['query'][_0x45ac3b('0x8')][_0x551053]),'CmListId':Number(_0x27324d[_0x45ac3b('0xf')]['id'])});}else socket[_0x45ac3b('0x52')]('userCmList:remove',{'UserId':Number(_0x27324d[_0x45ac3b('0x11')][_0x45ac3b('0x8')]),'CmListId':Number(_0x27324d[_0x45ac3b('0xf')]['id'])});});})[_0x19028a('0x44')](respondWithStatusCode(_0x29324b,null))['catch'](handleError(_0x29324b,null));},exports[_0x4073bd('0x1')]=function(_0x43f3a3,_0x17b12f){const _0x5ab98a=_0x4073bd;let _0x50783d={};const _0x355f54={};let _0x4bcaf7,_0x2bd8f7;return db[_0x5ab98a('0x54')][_0x5ab98a('0x37')]({'where':{'id':_0x43f3a3[_0x5ab98a('0xf')]['id']}})[_0x5ab98a('0x44')](handleEntityNotFound(_0x17b12f,null))[_0x5ab98a('0x44')](function(_0x44c3b8){const _0x17f156=_0x5ab98a;if(_0x44c3b8)return _0x4bcaf7=_0x44c3b8,_0x355f54[_0x17f156('0x7')]=_[_0x17f156('0x51')](db[_0x17f156('0x23')][_0x17f156('0x46')]),_0x355f54[_0x17f156('0x11')]=_[_0x17f156('0x51')](_0x43f3a3[_0x17f156('0x11')]),_0x355f54['filters']=_[_0x17f156('0x73')](_0x355f54[_0x17f156('0x7')],_0x355f54[_0x17f156('0x11')]),_0x50783d['attributes']=_[_0x17f156('0x73')](_0x355f54[_0x17f156('0x7')],qs[_0x17f156('0x47')](_0x43f3a3[_0x17f156('0x11')][_0x17f156('0x47')])),_0x50783d[_0x17f156('0x55')]=_0x50783d[_0x17f156('0x55')][_0x17f156('0x14')]?_0x50783d[_0x17f156('0x55')]:_0x355f54[_0x17f156('0x7')],_0x50783d[_0x17f156('0x40')]=qs[_0x17f156('0x6b')](_0x43f3a3['query']['sort']),_0x50783d[_0x17f156('0x66')]=qs[_0x17f156('0x75')](_['pick'](_0x43f3a3[_0x17f156('0x11')],_0x355f54['filters'])),_0x43f3a3[_0x17f156('0x11')][_0x17f156('0x3c')]&&(_0x50783d[_0x17f156('0x66')]=_[_0x17f156('0x53')](_0x50783d[_0x17f156('0x66')],{[Op['or']]:_[_0x17f156('0x68')](_0x50783d['attributes'],function(_0x3e0cc9){const _0x223bb8=_0x17f156,_0x7f2ef7={};return _0x7f2ef7[_0x3e0cc9]={[Op[_0x223bb8('0x4e')]]:'%'+_0x43f3a3[_0x223bb8('0x11')][_0x223bb8('0x3c')]+'%'},_0x7f2ef7;})})),_0x50783d=_[_0x17f156('0x53')]({},_0x50783d,_0x43f3a3[_0x17f156('0x28')]),_0x4bcaf7[_0x17f156('0x1')](_0x50783d);})[_0x5ab98a('0x44')](function(_0x4b7fcc){const _0x257614=_0x5ab98a;if(_0x4b7fcc)return _0x2bd8f7=_0x4b7fcc[_0x257614('0x14')],typeof _0x43f3a3[_0x257614('0x11')][_0x257614('0xc')]==='undefined'&&(_0x50783d[_0x257614('0x39')]=qs[_0x257614('0x39')](_0x43f3a3[_0x257614('0x11')][_0x257614('0x39')]),_0x50783d[_0x257614('0x2d')]=qs['offset'](_0x43f3a3['query']['offset'])),_0x4bcaf7[_0x257614('0x1')](_0x50783d);})[_0x5ab98a('0x44')](function(_0x6f172b){if(_0x6f172b)return _0x6f172b?{'count':_0x2bd8f7,'rows':_0x6f172b}:null;})[_0x5ab98a('0x44')](respondWithResult(_0x17b12f,null))[_0x5ab98a('0x18')](handleError(_0x17b12f,null));}; \ No newline at end of file diff --git a/server/api/cmList/cmList.events.js b/server/api/cmList/cmList.events.js index 5f427fb..7398584 100644 --- a/server/api/cmList/cmList.events.js +++ b/server/api/cmList/cmList.events.js @@ -1 +1 @@ -const a158_0x5026=['CmList','events','addHook','save','remove','emit','../../mysqldb','undefined','exports','setMaxListeners'];(function(_0x48cb67,_0x502617){const _0x41b2c2=function(_0x1cef0c){while(--_0x1cef0c){_0x48cb67['push'](_0x48cb67['shift']());}};_0x41b2c2(++_0x502617);}(a158_0x5026,0x1b0));const a158_0x41b2=function(_0x48cb67,_0x502617){_0x48cb67=_0x48cb67-0x0;let _0x41b2c2=a158_0x5026[_0x48cb67];return _0x41b2c2;};const _0x8b432e=a158_0x41b2;'use strict';const EventEmitter=require(_0x8b432e('0x9')),CmList=require(_0x8b432e('0x4'))['db'][_0x8b432e('0x8')],CmListEvents=new EventEmitter();CmListEvents[_0x8b432e('0x7')](0x0);const events={'afterCreate':_0x8b432e('0x1'),'afterUpdate':'update','afterDestroy':_0x8b432e('0x2')};function emitEvent(_0x1cef0c){return function(_0x18c885){const _0x4b1c65=a158_0x41b2;CmListEvents['emit'](_0x1cef0c+':'+_0x18c885['id'],_0x18c885),CmListEvents[_0x4b1c65('0x3')](_0x1cef0c,_0x18c885);};}for(const e in events){if(typeof events[e]!==_0x8b432e('0x5')){const event=events[e];CmList[_0x8b432e('0x0')](e,emitEvent(event));}}module[_0x8b432e('0x6')]=CmListEvents; \ No newline at end of file +const a158_0x35f3=['emit','undefined','setMaxListeners','events','addHook','remove','../../mysqldb','update'];(function(_0xac2ca,_0x35f342){const _0x5b9dc4=function(_0x1ab8dc){while(--_0x1ab8dc){_0xac2ca['push'](_0xac2ca['shift']());}};_0x5b9dc4(++_0x35f342);}(a158_0x35f3,0xa2));const a158_0x5b9d=function(_0xac2ca,_0x35f342){_0xac2ca=_0xac2ca-0x0;let _0x5b9dc4=a158_0x35f3[_0xac2ca];return _0x5b9dc4;};const _0x5380dc=a158_0x5b9d;'use strict';const EventEmitter=require(_0x5380dc('0x1')),CmList=require(_0x5380dc('0x4'))['db']['CmList'],CmListEvents=new EventEmitter();CmListEvents[_0x5380dc('0x0')](0x0);const events={'afterCreate':'save','afterUpdate':_0x5380dc('0x5'),'afterDestroy':_0x5380dc('0x3')};function emitEvent(_0x1ab8dc){return function(_0x42a4c3){const _0x1349ce=a158_0x5b9d;CmListEvents[_0x1349ce('0x6')](_0x1ab8dc+':'+_0x42a4c3['id'],_0x42a4c3),CmListEvents['emit'](_0x1ab8dc,_0x42a4c3);};}for(const e in events){if(typeof events[e]!==_0x5380dc('0x7')){const event=events[e];CmList[_0x5380dc('0x2')](e,emitEvent(event));}}module['exports']=CmListEvents; \ No newline at end of file diff --git a/server/api/cmList/cmList.model.js b/server/api/cmList/cmList.model.js index c59fd3e..37928bf 100644 --- a/server/api/cmList/cmList.model.js +++ b/server/api/cmList/cmList.model.js @@ -1 +1 @@ -const a159_0x374a=['CmList','cm_lists','define','./cmList.attributes'];(function(_0x4b7a44,_0x374a9f){const _0x4874ca=function(_0x5efbb0){while(--_0x5efbb0){_0x4b7a44['push'](_0x4b7a44['shift']());}};_0x4874ca(++_0x374a9f);}(a159_0x374a,0x9d));const a159_0x4874=function(_0x4b7a44,_0x374a9f){_0x4b7a44=_0x4b7a44-0x0;let _0x4874ca=a159_0x374a[_0x4b7a44];return _0x4874ca;};const _0x4ea0f7=a159_0x4874;'use strict';const attributes=require(_0x4ea0f7('0x2'));module['exports']=function(_0x5efbb0){const _0x5cf675=_0x4ea0f7,_0x4610a0=_0x5efbb0[_0x5cf675('0x1')](_0x5cf675('0x3'),attributes,{'tableName':_0x5cf675('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4610a0;}; \ No newline at end of file +const a159_0x22d0=['exports','define','./cmList.attributes','CmList','cm_lists'];(function(_0x1a09a5,_0x22d073){const _0x471741=function(_0x50b5b7){while(--_0x50b5b7){_0x1a09a5['push'](_0x1a09a5['shift']());}};_0x471741(++_0x22d073);}(a159_0x22d0,0x180));const a159_0x4717=function(_0x1a09a5,_0x22d073){_0x1a09a5=_0x1a09a5-0x0;let _0x471741=a159_0x22d0[_0x1a09a5];return _0x471741;};const _0x576c65=a159_0x4717;'use strict';const attributes=require(_0x576c65('0x3'));module[_0x576c65('0x1')]=function(_0x50b5b7){const _0x5ca8e0=_0x576c65,_0x5c5bb6=_0x50b5b7[_0x5ca8e0('0x2')](_0x5ca8e0('0x4'),attributes,{'tableName':_0x5ca8e0('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5c5bb6;}; \ No newline at end of file diff --git a/server/api/cmList/cmList.rpc.js b/server/api/cmList/cmList.rpc.js index 1c922ac..ed2b8f0 100644 --- a/server/api/cmList/cmList.rpc.js +++ b/server/api/cmList/cmList.rpc.js @@ -1 +1 @@ -const a160_0x3bf7=['../../rediscache','register'];(function(_0x2a229c,_0x3bf7a1){const _0x32ce22=function(_0x7445ab){while(--_0x7445ab){_0x2a229c['push'](_0x2a229c['shift']());}};_0x32ce22(++_0x3bf7a1);}(a160_0x3bf7,0xc9));const a160_0x32ce=function(_0x2a229c,_0x3bf7a1){_0x2a229c=_0x2a229c-0x0;let _0x32ce22=a160_0x3bf7[_0x2a229c];return _0x32ce22;};const _0x26b56=a160_0x32ce;'use strict';const {getSocket}=require(_0x26b56('0x1')),socket=getSocket();require('./cmList.socket')[_0x26b56('0x0')](socket); \ No newline at end of file +const a160_0x4652=['./cmList.socket','../../rediscache','register'];(function(_0x2ae740,_0x4652a0){const _0x463dff=function(_0x3216d8){while(--_0x3216d8){_0x2ae740['push'](_0x2ae740['shift']());}};_0x463dff(++_0x4652a0);}(a160_0x4652,0x98));const a160_0x463d=function(_0x2ae740,_0x4652a0){_0x2ae740=_0x2ae740-0x0;let _0x463dff=a160_0x4652[_0x2ae740];return _0x463dff;};const _0x166cb2=a160_0x463d;'use strict';const {getSocket}=require(_0x166cb2('0x2')),socket=getSocket();require(_0x166cb2('0x1'))[_0x166cb2('0x0')](socket); \ No newline at end of file diff --git a/server/api/cmList/cmList.socket.js b/server/api/cmList/cmList.socket.js index a4d92b4..8987955 100644 --- a/server/api/cmList/cmList.socket.js +++ b/server/api/cmList/cmList.socket.js @@ -1 +1 @@ -const a161_0x4a2b=['register','./cmList.events','update','cmList:','remove'];(function(_0xb31469,_0x4a2b82){const _0x52a48c=function(_0x48f6cb){while(--_0x48f6cb){_0xb31469['push'](_0xb31469['shift']());}};_0x52a48c(++_0x4a2b82);}(a161_0x4a2b,0x120));const a161_0x52a4=function(_0xb31469,_0x4a2b82){_0xb31469=_0xb31469-0x0;let _0x52a48c=a161_0x4a2b[_0xb31469];return _0x52a48c;};const _0x15feb2=a161_0x52a4;'use strict';const CmListEvents=require(_0x15feb2('0x3')),events=['save',_0x15feb2('0x1'),_0x15feb2('0x4')];function createListener(_0x48f6cb,_0x3ed373){return function(_0xe3cf93){_0x3ed373['emit'](_0x48f6cb,_0xe3cf93);};}exports[_0x15feb2('0x2')]=function(_0x3207ab){const _0x1d8b5e=_0x15feb2;for(let _0x6e6b4c=0x0,_0x444d84=events['length'];_0x6e6b4c<_0x444d84;_0x6e6b4c++){const _0x4e2473=events[_0x6e6b4c],_0x489fdb=createListener(_0x1d8b5e('0x0')+_0x4e2473,_0x3207ab);CmListEvents['on'](_0x4e2473,_0x489fdb);}}; \ No newline at end of file +const a161_0x382c=['cmList:','register','emit','save','length','update','remove'];(function(_0x83ee02,_0x382cbb){const _0xba5d93=function(_0x5c13f2){while(--_0x5c13f2){_0x83ee02['push'](_0x83ee02['shift']());}};_0xba5d93(++_0x382cbb);}(a161_0x382c,0x156));const a161_0xba5d=function(_0x83ee02,_0x382cbb){_0x83ee02=_0x83ee02-0x0;let _0xba5d93=a161_0x382c[_0x83ee02];return _0xba5d93;};const _0x43ebac=a161_0xba5d;'use strict';const CmListEvents=require('./cmList.events'),events=[_0x43ebac('0x4'),_0x43ebac('0x0'),_0x43ebac('0x6')];function createListener(_0x5c13f2,_0x239d77){return function(_0x4b62a1){const _0x119004=a161_0xba5d;_0x239d77[_0x119004('0x3')](_0x5c13f2,_0x4b62a1);};}exports[_0x43ebac('0x2')]=function(_0x49fbfa){const _0x4dfb70=_0x43ebac;for(let _0x3c8c9f=0x0,_0x49a9a5=events[_0x4dfb70('0x5')];_0x3c8c9f<_0x49a9a5;_0x3c8c9f++){const _0x4978a9=events[_0x3c8c9f],_0x573134=createListener(_0x4dfb70('0x1')+_0x4978a9,_0x49fbfa);CmListEvents['on'](_0x4978a9,_0x573134);}}; \ No newline at end of file diff --git a/server/api/cmList/index.js b/server/api/cmList/index.js index 555faec..4653e1e 100644 --- a/server/api/cmList/index.js +++ b/server/api/cmList/index.js @@ -1 +1 @@ -const a162_0x1a1f=['addDisposition','addContacts','put','getContacts','isAuthenticated','show','/:id/contacts','post','/:id/fields','update','getDispositions','create','destroy','removeAgents','addAgents','/:id','/describe','describe','../../components/auth/service','getAgents','get','delete','getCustomFields','/:id/dispositions','exports','/:id/contacts/csv','/:id/users','addCustomField','./cmList.controller'];(function(_0x467f72,_0x1a1f2b){const _0x55fddd=function(_0x5b4a96){while(--_0x5b4a96){_0x467f72['push'](_0x467f72['shift']());}};_0x55fddd(++_0x1a1f2b);}(a162_0x1a1f,0x1bc));const a162_0x55fd=function(_0x467f72,_0x1a1f2b){_0x467f72=_0x467f72-0x0;let _0x55fddd=a162_0x1a1f[_0x467f72];return _0x55fddd;};const _0x3e75d6=a162_0x55fd;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x3e75d6('0x9')),controller=require(_0x3e75d6('0x13'));router[_0x3e75d6('0xb')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x3e75d6('0x7'),auth['isAuthenticated'](),controller[_0x3e75d6('0x8')]),router['get'](_0x3e75d6('0x6'),auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0x19')]),router[_0x3e75d6('0xb')](_0x3e75d6('0xe'),auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0x1')]),router[_0x3e75d6('0xb')](_0x3e75d6('0x1a'),auth['isAuthenticated'](),controller[_0x3e75d6('0x17')]),router[_0x3e75d6('0xb')](_0x3e75d6('0x10'),auth[_0x3e75d6('0x18')](),controller['getContactsCsv']),router['get'](_0x3e75d6('0x1c'),auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0xd')]),router[_0x3e75d6('0xb')](_0x3e75d6('0x11'),auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0xa')]),router[_0x3e75d6('0x1b')]('/',auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0x2')]),router[_0x3e75d6('0x1b')](_0x3e75d6('0xe'),auth['isAuthenticated'](),controller[_0x3e75d6('0x14')]),router[_0x3e75d6('0x1b')](_0x3e75d6('0x1a'),auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0x15')]),router[_0x3e75d6('0x1b')](_0x3e75d6('0x1c'),auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0x12')]),router['post'](_0x3e75d6('0x11'),auth['isAuthenticated'](),controller[_0x3e75d6('0x5')]),router[_0x3e75d6('0x16')](_0x3e75d6('0x6'),auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0x0')]),router[_0x3e75d6('0xc')]('/:id',auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0x3')]),router[_0x3e75d6('0xc')]('/:id/dispositions',auth[_0x3e75d6('0x18')](),controller['removeDispositions']),router['delete']('/:id/users',auth[_0x3e75d6('0x18')](),controller[_0x3e75d6('0x4')]),module[_0x3e75d6('0xf')]=router; \ No newline at end of file +const a162_0x3a34=['getContactsCsv','/:id/contacts','express','addCustomField','/:id/users','create','/:id/contacts/csv','destroy','post','/:id/dispositions','delete','../../components/auth/service','exports','Router','/:id','isAuthenticated','/:id/fields','index','update','get','getContacts','show','addAgents','put'];(function(_0x333985,_0x3a3477){const _0x532a3a=function(_0x1af893){while(--_0x1af893){_0x333985['push'](_0x333985['shift']());}};_0x532a3a(++_0x3a3477);}(a162_0x3a34,0x100));const a162_0x532a=function(_0x333985,_0x3a3477){_0x333985=_0x333985-0x0;let _0x532a3a=a162_0x3a34[_0x333985];return _0x532a3a;};const _0x40db97=a162_0x532a;'use strict';const express=require(_0x40db97('0xa')),router=express[_0x40db97('0x15')](),auth=require(_0x40db97('0x13')),controller=require('./cmList.controller');router['get']('/',auth[_0x40db97('0x17')](),controller[_0x40db97('0x1')]),router[_0x40db97('0x3')]('/describe',auth[_0x40db97('0x17')](),controller['describe']),router[_0x40db97('0x3')]('/:id',auth[_0x40db97('0x17')](),controller[_0x40db97('0x5')]),router['get'](_0x40db97('0x11'),auth[_0x40db97('0x17')](),controller['getDispositions']),router[_0x40db97('0x3')](_0x40db97('0x9'),auth['isAuthenticated'](),controller[_0x40db97('0x4')]),router[_0x40db97('0x3')](_0x40db97('0xe'),auth['isAuthenticated'](),controller[_0x40db97('0x8')]),router[_0x40db97('0x3')](_0x40db97('0x0'),auth[_0x40db97('0x17')](),controller['getCustomFields']),router[_0x40db97('0x3')](_0x40db97('0xc'),auth[_0x40db97('0x17')](),controller['getAgents']),router['post']('/',auth['isAuthenticated'](),controller[_0x40db97('0xd')]),router[_0x40db97('0x10')](_0x40db97('0x11'),auth[_0x40db97('0x17')](),controller['addDisposition']),router[_0x40db97('0x10')]('/:id/contacts',auth[_0x40db97('0x17')](),controller['addContacts']),router[_0x40db97('0x10')](_0x40db97('0x0'),auth[_0x40db97('0x17')](),controller[_0x40db97('0xb')]),router[_0x40db97('0x10')](_0x40db97('0xc'),auth[_0x40db97('0x17')](),controller[_0x40db97('0x6')]),router[_0x40db97('0x7')]('/:id',auth[_0x40db97('0x17')](),controller[_0x40db97('0x2')]),router[_0x40db97('0x12')](_0x40db97('0x16'),auth[_0x40db97('0x17')](),controller[_0x40db97('0xf')]),router['delete'](_0x40db97('0x11'),auth[_0x40db97('0x17')](),controller['removeDispositions']),router['delete']('/:id/users',auth[_0x40db97('0x17')](),controller['removeAgents']),module[_0x40db97('0x14')]=router; \ No newline at end of file diff --git a/server/api/condition/condition.attributes.js b/server/api/condition/condition.attributes.js index 3662c1e..b46dab0 100644 --- a/server/api/condition/condition.attributes.js +++ b/server/api/condition/condition.attributes.js @@ -1 +1 @@ -const a163_0x5770=['field','getDataValue','STRING','sequelize'];(function(_0x2a1378,_0x57703e){const _0x4c36df=function(_0x3635a5){while(--_0x3635a5){_0x2a1378['push'](_0x2a1378['shift']());}};_0x4c36df(++_0x57703e);}(a163_0x5770,0x1e5));const a163_0x4c36=function(_0x2a1378,_0x57703e){_0x2a1378=_0x2a1378-0x0;let _0x4c36df=a163_0x5770[_0x2a1378];return _0x4c36df;};const _0x596324=a163_0x4c36;'use strict';const Sequelize=require(_0x596324('0x2'));module['exports']={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x42887e=_0x596324;return this[_0x42887e('0x0')](_0x42887e('0x3'));}},'field':{'type':Sequelize['STRING'],'allowNull':![]},'operator':{'type':Sequelize['STRING'],'allowNull':![]},'value':{'type':Sequelize[_0x596324('0x1')],'allowNull':![]}}; \ No newline at end of file +const a163_0x3070=['sequelize','STRING','field','exports'];(function(_0x5dcef6,_0x3070ec){const _0x701cf0=function(_0x38b1d0){while(--_0x38b1d0){_0x5dcef6['push'](_0x5dcef6['shift']());}};_0x701cf0(++_0x3070ec);}(a163_0x3070,0x133));const a163_0x701c=function(_0x5dcef6,_0x3070ec){_0x5dcef6=_0x5dcef6-0x0;let _0x701cf0=a163_0x3070[_0x5dcef6];return _0x701cf0;};const _0x30c036=a163_0x701c;'use strict';const Sequelize=require(_0x30c036('0x1'));module[_0x30c036('0x0')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x18d20e=_0x30c036;return this['getDataValue'](_0x18d20e('0x3'));}},'field':{'type':Sequelize[_0x30c036('0x2')],'allowNull':![]},'operator':{'type':Sequelize[_0x30c036('0x2')],'allowNull':![]},'value':{'type':Sequelize[_0x30c036('0x2')],'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/condition/condition.controller.js b/server/api/condition/condition.controller.js index 1839a3a..07f17a8 100644 --- a/server/api/condition/condition.controller.js +++ b/server/api/condition/condition.controller.js @@ -1 +1 @@ -const a164_0x3edc=['stack','json','then','destroy','update','Condition','end','api','sendStatus','error','params','body','../../mysqldb','catch','findOne','status','name'];(function(_0x321508,_0x3edcaa){const _0x210d47=function(_0x5b2206){while(--_0x5b2206){_0x321508['push'](_0x321508['shift']());}};_0x210d47(++_0x3edcaa);}(a164_0x3edc,0x159));const a164_0x210d=function(_0x321508,_0x3edcaa){_0x321508=_0x321508-0x0;let _0x210d47=a164_0x3edc[_0x321508];return _0x210d47;};const _0x47368f=a164_0x210d;'use strict';const logger=require('../../config/logger')(_0x47368f('0x2')),db=require(_0x47368f('0x7'))['db'];function respondWithResult(_0x5b2206,_0x17163e){return _0x17163e=_0x17163e||0xc8,function(_0x8c13df){const _0x39cd42=a164_0x210d;if(_0x8c13df)return _0x5b2206[_0x39cd42('0xa')](_0x17163e)[_0x39cd42('0xd')](_0x8c13df);};}function saveUpdates(_0x10d9d8){return function(_0x3c2747){const _0x279bec=a164_0x210d;if(_0x3c2747)return _0x3c2747[_0x279bec('0x10')](_0x10d9d8)[_0x279bec('0xe')](function(_0x4918a0){return _0x4918a0;});return null;};}function removeEntity(_0x3af6fe){return function(_0x54952c){const _0x575692=a164_0x210d;if(_0x54952c)return _0x54952c[_0x575692('0xf')]()[_0x575692('0xe')](function(){const _0x19fb63=_0x575692;_0x3af6fe[_0x19fb63('0xa')](0xcc)[_0x19fb63('0x1')]();});};}function handleEntityNotFound(_0x5c9b6b){return function(_0xcb4c7d){const _0x268b90=a164_0x210d;return!_0xcb4c7d&&_0x5c9b6b[_0x268b90('0x3')](0x194),_0xcb4c7d;};}function handleError(_0x57f20c,_0x5138bd){return _0x5138bd=_0x5138bd||0x1f4,function(_0x31256b){const _0x2663fd=a164_0x210d;logger[_0x2663fd('0x4')](_0x31256b[_0x2663fd('0xc')]),_0x31256b[_0x2663fd('0xb')]&&delete _0x31256b[_0x2663fd('0xb')],_0x57f20c['status'](_0x5138bd)['send'](_0x31256b);};}exports[_0x47368f('0x10')]=function(_0x35a92d,_0xe70168){const _0x301621=_0x47368f;return _0x35a92d[_0x301621('0x6')]['id']&&delete _0x35a92d[_0x301621('0x6')]['id'],db[_0x301621('0x0')][_0x301621('0x9')]({'where':{'id':_0x35a92d['params']['id']}})[_0x301621('0xe')](handleEntityNotFound(_0xe70168,null))[_0x301621('0xe')](saveUpdates(_0x35a92d[_0x301621('0x6')],null))[_0x301621('0xe')](respondWithResult(_0xe70168,null))['catch'](handleError(_0xe70168,null));},exports[_0x47368f('0xf')]=function(_0x425663,_0x4d8e34){const _0x182fca=_0x47368f;return db[_0x182fca('0x0')][_0x182fca('0x9')]({'where':{'id':_0x425663[_0x182fca('0x5')]['id']}})[_0x182fca('0xe')](handleEntityNotFound(_0x4d8e34,null))[_0x182fca('0xe')](removeEntity(_0x4d8e34,null))[_0x182fca('0x8')](handleError(_0x4d8e34,null));}; \ No newline at end of file +const a164_0x51cc=['stack','findOne','params','catch','name','then','../../mysqldb','destroy','body','status','error','Condition','sendStatus','update','../../config/logger','send'];(function(_0x3c292c,_0x51cc24){const _0x2579ec=function(_0x4e18e6){while(--_0x4e18e6){_0x3c292c['push'](_0x3c292c['shift']());}};_0x2579ec(++_0x51cc24);}(a164_0x51cc,0xad));const a164_0x2579=function(_0x3c292c,_0x51cc24){_0x3c292c=_0x3c292c-0x0;let _0x2579ec=a164_0x51cc[_0x3c292c];return _0x2579ec;};const _0x134c21=a164_0x2579;'use strict';const logger=require(_0x134c21('0x1'))('api'),db=require(_0x134c21('0x9'))['db'];function respondWithResult(_0x4e18e6,_0x50a798){return _0x50a798=_0x50a798||0xc8,function(_0x1c3f46){const _0x9a284d=a164_0x2579;if(_0x1c3f46)return _0x4e18e6[_0x9a284d('0xc')](_0x50a798)['json'](_0x1c3f46);};}function saveUpdates(_0x2285e){return function(_0x3caead){const _0xa6f021=a164_0x2579;if(_0x3caead)return _0x3caead[_0xa6f021('0x0')](_0x2285e)[_0xa6f021('0x8')](function(_0x4ed331){return _0x4ed331;});return null;};}function removeEntity(_0x3b46f7){return function(_0x22074d){const _0x4f2687=a164_0x2579;if(_0x22074d)return _0x22074d[_0x4f2687('0xa')]()[_0x4f2687('0x8')](function(){const _0x38cdc4=_0x4f2687;_0x3b46f7[_0x38cdc4('0xc')](0xcc)['end']();});};}function handleEntityNotFound(_0x4f449c){return function(_0x8ef3f4){const _0x4be034=a164_0x2579;return!_0x8ef3f4&&_0x4f449c[_0x4be034('0xf')](0x194),_0x8ef3f4;};}function handleError(_0x4257c9,_0x578eae){return _0x578eae=_0x578eae||0x1f4,function(_0x1574f4){const _0x5464e7=a164_0x2579;logger[_0x5464e7('0xd')](_0x1574f4[_0x5464e7('0x3')]),_0x1574f4['name']&&delete _0x1574f4[_0x5464e7('0x7')],_0x4257c9['status'](_0x578eae)[_0x5464e7('0x2')](_0x1574f4);};}exports['update']=function(_0x434c92,_0x54ab42){const _0x48d457=_0x134c21;return _0x434c92[_0x48d457('0xb')]['id']&&delete _0x434c92['body']['id'],db[_0x48d457('0xe')]['findOne']({'where':{'id':_0x434c92[_0x48d457('0x5')]['id']}})[_0x48d457('0x8')](handleEntityNotFound(_0x54ab42,null))[_0x48d457('0x8')](saveUpdates(_0x434c92[_0x48d457('0xb')],null))[_0x48d457('0x8')](respondWithResult(_0x54ab42,null))['catch'](handleError(_0x54ab42,null));},exports[_0x134c21('0xa')]=function(_0x131008,_0x147549){const _0x1aa329=_0x134c21;return db[_0x1aa329('0xe')][_0x1aa329('0x4')]({'where':{'id':_0x131008[_0x1aa329('0x5')]['id']}})['then'](handleEntityNotFound(_0x147549,null))[_0x1aa329('0x8')](removeEntity(_0x147549,null))[_0x1aa329('0x6')](handleError(_0x147549,null));}; \ No newline at end of file diff --git a/server/api/condition/condition.model.js b/server/api/condition/condition.model.js index 83de9c4..3dc3c39 100644 --- a/server/api/condition/condition.model.js +++ b/server/api/condition/condition.model.js @@ -1 +1 @@ -const a165_0x3509=['define','tools_conditions','exports'];(function(_0x3126c6,_0x35093c){const _0x5cc426=function(_0x5ad66e){while(--_0x5ad66e){_0x3126c6['push'](_0x3126c6['shift']());}};_0x5cc426(++_0x35093c);}(a165_0x3509,0x89));const a165_0x5cc4=function(_0x3126c6,_0x35093c){_0x3126c6=_0x3126c6-0x0;let _0x5cc426=a165_0x3509[_0x3126c6];return _0x5cc426;};const _0x175d36=a165_0x5cc4;'use strict';const attributes=require('./condition.attributes');module[_0x175d36('0x0')]=function(_0x5ad66e){const _0x4fd795=_0x175d36,_0x2bcc3b=_0x5ad66e[_0x4fd795('0x1')]('Condition',attributes,{'tableName':_0x4fd795('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2bcc3b;}; \ No newline at end of file +const a165_0x372e=['exports','Condition','tools_conditions'];(function(_0x123168,_0x372e0c){const _0x30b746=function(_0x5e9e25){while(--_0x5e9e25){_0x123168['push'](_0x123168['shift']());}};_0x30b746(++_0x372e0c);}(a165_0x372e,0x193));const a165_0x30b7=function(_0x123168,_0x372e0c){_0x123168=_0x123168-0x0;let _0x30b746=a165_0x372e[_0x123168];return _0x30b746;};const _0x4ac47c=a165_0x30b7;'use strict';const attributes=require('./condition.attributes');module[_0x4ac47c('0x2')]=function(_0x5e9e25){const _0x157f2a=_0x4ac47c,_0x258c05=_0x5e9e25['define'](_0x157f2a('0x0'),attributes,{'tableName':_0x157f2a('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x258c05;}; \ No newline at end of file diff --git a/server/api/condition/index.js b/server/api/condition/index.js index 30d7a63..21fbf54 100644 --- a/server/api/condition/index.js +++ b/server/api/condition/index.js @@ -1 +1 @@ -const a166_0x4845=['destroy','Router','update','isAuthenticated','express','exports','/:id','../../components/auth/service'];(function(_0x4eed70,_0x4845fc){const _0x56c9de=function(_0x289437){while(--_0x289437){_0x4eed70['push'](_0x4eed70['shift']());}};_0x56c9de(++_0x4845fc);}(a166_0x4845,0x19a));const a166_0x56c9=function(_0x4eed70,_0x4845fc){_0x4eed70=_0x4eed70-0x0;let _0x56c9de=a166_0x4845[_0x4eed70];return _0x56c9de;};const _0x3fefce=a166_0x56c9;'use strict';const express=require(_0x3fefce('0x2')),router=express[_0x3fefce('0x7')](),auth=require(_0x3fefce('0x5')),controller=require('./condition.controller');router['put'](_0x3fefce('0x4'),auth[_0x3fefce('0x1')](),controller[_0x3fefce('0x0')]),router['delete']('/:id',auth[_0x3fefce('0x1')](),controller[_0x3fefce('0x6')]),module[_0x3fefce('0x3')]=router; \ No newline at end of file +const a166_0x2ff9=['put','/:id','update','isAuthenticated','express','Router','./condition.controller','delete'];(function(_0x9f1e27,_0x2ff98a){const _0x26c528=function(_0xf94fb1){while(--_0xf94fb1){_0x9f1e27['push'](_0x9f1e27['shift']());}};_0x26c528(++_0x2ff98a);}(a166_0x2ff9,0x175));const a166_0x26c5=function(_0x9f1e27,_0x2ff98a){_0x9f1e27=_0x9f1e27-0x0;let _0x26c528=a166_0x2ff9[_0x9f1e27];return _0x26c528;};const _0x138225=a166_0x26c5;'use strict';const express=require(_0x138225('0x7')),router=express[_0x138225('0x0')](),auth=require('../../components/auth/service'),controller=require(_0x138225('0x1'));router[_0x138225('0x3')]('/:id',auth[_0x138225('0x6')](),controller[_0x138225('0x5')]),router[_0x138225('0x2')](_0x138225('0x4'),auth[_0x138225('0x6')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.attributes.js b/server/api/dashboard/dashboard.attributes.js index 0aec9e9..7bd6a63 100644 --- a/server/api/dashboard/dashboard.attributes.js +++ b/server/api/dashboard/dashboard.attributes.js @@ -1 +1 @@ -const a167_0x51b4=['name','STRING','exports'];(function(_0x3f4cb8,_0x51b471){const _0x28da55=function(_0x5127e5){while(--_0x5127e5){_0x3f4cb8['push'](_0x3f4cb8['shift']());}};_0x28da55(++_0x51b471);}(a167_0x51b4,0xf7));const a167_0x28da=function(_0x3f4cb8,_0x51b471){_0x3f4cb8=_0x3f4cb8-0x0;let _0x28da55=a167_0x51b4[_0x3f4cb8];return _0x28da55;};const _0x33e74f=a167_0x28da;'use strict';const Sequelize=require('sequelize');module[_0x33e74f('0x1')]={'name':{'type':Sequelize[_0x33e74f('0x0')],'allowNull':![],'unique':_0x33e74f('0x2')},'description':{'type':Sequelize[_0x33e74f('0x0')]}}; \ No newline at end of file +const a167_0x478a=['name','STRING','exports','sequelize'];(function(_0xd5ab35,_0x478ad7){const _0x124fe3=function(_0x246a08){while(--_0x246a08){_0xd5ab35['push'](_0xd5ab35['shift']());}};_0x124fe3(++_0x478ad7);}(a167_0x478a,0x1d2));const a167_0x124f=function(_0xd5ab35,_0x478ad7){_0xd5ab35=_0xd5ab35-0x0;let _0x124fe3=a167_0x478a[_0xd5ab35];return _0x124fe3;};const _0x4b2eae=a167_0x124f;'use strict';const Sequelize=require(_0x4b2eae('0x1'));module[_0x4b2eae('0x0')]={'name':{'type':Sequelize[_0x4b2eae('0x3')],'allowNull':![],'unique':_0x4b2eae('0x2')},'description':{'type':Sequelize[_0x4b2eae('0x3')]}}; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.controller.js b/server/api/dashboard/dashboard.controller.js index c22c150..2b158db 100644 --- a/server/api/dashboard/dashboard.controller.js +++ b/server/api/dashboard/dashboard.controller.js @@ -1 +1 @@ -const a168_0xc1a8=['attrReport','role','attrUrl','pick','attrTimezone','like','body','attrSerie2','fields','pie-chart','attrFontSize','web-report','merge','Dashboard','omit','undefined','../../rediscache','../../config/logger','model','send','sequelize','includeAll','userProfileId','attrSerie3','user','limit','filter','offset','attributes','DashboardId','keys','../../components/parsers/qs','update','attrMetric','include','sort','stringify','updatedAt','count','Content-Range','type','set','counter','value','create','intersection','then','UserProfileSection','rows','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','index','where','./dashboard.socket','query','map','findOne','findAll','total','get','destroy','attrHourFormat','register','VIRTUAL','createdAt','multibar-chart','attrRefresh','https://','name','length','fieldName','rawAttributes','attrs','catch','json','Unable\x20to\x20retrieve\x20the\x20current\x20user','0.00','nolimit','attrSerie1','status','attrVoiceQueues','attrPath','api','getItems','key','HH:mm:ss','UserProfileResource','addItem','options','end','autoAssociation','CustomDashboards','iframe','filters','DashboardItem','error','params','widgetAttributes:\x20%s'];(function(_0x5efd20,_0xc1a88f){const _0x3a758f=function(_0x2421e2){while(--_0x2421e2){_0x5efd20['push'](_0x5efd20['shift']());}};_0x3a758f(++_0xc1a88f);}(a168_0xc1a8,0x99));const a168_0x3a75=function(_0x5efd20,_0xc1a88f){_0x5efd20=_0x5efd20-0x0;let _0x3a758f=a168_0xc1a8[_0x5efd20];return _0x3a758f;};const _0x673d84=a168_0x3a75;'use strict';const _=require('lodash'),qs=require(_0x673d84('0x48')),logger=require(_0x673d84('0x3a'))(_0x673d84('0x19')),{getSocket}=require(_0x673d84('0x39')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x673d84('0x3d'));require(_0x673d84('0x5d'))[_0x673d84('0x5')](socket);function respondWithResult(_0x2421e2,_0x5b9544){return _0x5b9544=_0x5b9544||0xc8,function(_0xf4fe8b){const _0x202007=a168_0x3a75;if(_0xf4fe8b)return _0x2421e2[_0x202007('0x16')](_0x5b9544)[_0x202007('0x11')](_0xf4fe8b);};}function respondWithFilteredResult(_0x7528bc,_0x291e82){return function(_0x100c9f){const _0x27e63f=a168_0x3a75;if(_0x100c9f){const _0x4b77a8=_0x100c9f[_0x27e63f('0x4f')],_0x217e6e=_0x291e82['offset'];let _0x2ec3ba=_0x291e82[_0x27e63f('0x44')]+_0x291e82[_0x27e63f('0x42')],_0xc01397;return _0x2ec3ba>=_0x4b77a8?(_0x2ec3ba=_0x4b77a8,_0xc01397=0xc8):_0xc01397=0xce,_0x7528bc['status'](_0xc01397),_0x7528bc[_0x27e63f('0x52')](_0x27e63f('0x50'),_0x217e6e+'-'+_0x2ec3ba+'/'+_0x4b77a8)[_0x27e63f('0x11')](_0x100c9f);}return null;};}function saveUpdates(_0x1e01fd){return function(_0x4dc2c1){const _0x5da38f=a168_0x3a75;if(_0x4dc2c1)return _0x4dc2c1['update'](_0x1e01fd)[_0x5da38f('0x57')](function(_0x369cc8){return _0x369cc8;});return null;};}function removeEntity(_0x42bd3d){return function(_0x3cfbe0){const _0x1539f3=a168_0x3a75;if(_0x3cfbe0)return _0x3cfbe0[_0x1539f3('0x3')]()['then'](function(){const _0x183624=_0x1539f3,_0x3d444c=_0x3cfbe0[_0x183624('0x2')]({'plain':!![]}),_0x212a97=_0x183624('0x22');return db['UserProfileResource'][_0x183624('0x3')]({'where':{'type':_0x212a97,'resourceId':_0x3d444c['id']}})[_0x183624('0x57')](function(){return _0x3cfbe0;});})[_0x1539f3('0x57')](function(){const _0x4a2188=_0x1539f3;_0x42bd3d[_0x4a2188('0x16')](0xcc)[_0x4a2188('0x20')]();});};}function handleEntityNotFound(_0x1981c9){return function(_0x552511){return!_0x552511&&_0x1981c9['sendStatus'](0x194),_0x552511;};}function handleError(_0x27306e,_0x27e306){return _0x27e306=_0x27e306||0x1f4,function(_0x4d7385){const _0x4d0824=a168_0x3a75;logger['error'](_0x4d7385['stack']),_0x4d7385['name']&&delete _0x4d7385[_0x4d0824('0xb')],_0x27306e[_0x4d0824('0x16')](_0x27e306)[_0x4d0824('0x3c')](_0x4d7385);};}exports[_0x673d84('0x5b')]=function(_0x3c99c7,_0x4406af){const _0x580364=_0x673d84;let _0x54d50f={};const _0x351a33={},_0x2a4e75={'count':0x0,'rows':[]},_0x1195d1=_[_0x580364('0x5f')](db[_0x580364('0x36')][_0x580364('0xe')],function(_0x303395){const _0x1c729d=_0x580364;return{'name':_0x303395[_0x1c729d('0xd')],'type':_0x303395[_0x1c729d('0x51')][_0x1c729d('0x1b')]};});_0x351a33[_0x580364('0x3b')]=_['map'](_0x1195d1,_0x580364('0xb')),_0x351a33[_0x580364('0x5e')]=_[_0x580364('0x47')](_0x3c99c7[_0x580364('0x5e')]),_0x351a33[_0x580364('0x24')]=_[_0x580364('0x56')](_0x351a33[_0x580364('0x3b')],_0x351a33[_0x580364('0x5e')]),_0x54d50f[_0x580364('0x45')]=_['intersection'](_0x351a33[_0x580364('0x3b')],qs[_0x580364('0x31')](_0x3c99c7['query'][_0x580364('0x31')])),_0x54d50f[_0x580364('0x45')]=_0x54d50f['attributes'][_0x580364('0xc')]?_0x54d50f['attributes']:_0x351a33[_0x580364('0x3b')];typeof _0x3c99c7[_0x580364('0x5e')][_0x580364('0x14')]===_0x580364('0x38')&&(_0x54d50f['limit']=qs[_0x580364('0x42')](_0x3c99c7[_0x580364('0x5e')][_0x580364('0x42')]),_0x54d50f[_0x580364('0x44')]=qs[_0x580364('0x44')](_0x3c99c7[_0x580364('0x5e')]['offset']));_0x54d50f['order']=qs[_0x580364('0x4c')](_0x3c99c7[_0x580364('0x5e')][_0x580364('0x4c')]),_0x54d50f[_0x580364('0x5c')]=qs[_0x580364('0x24')](_['pick'](_0x3c99c7[_0x580364('0x5e')],_0x351a33[_0x580364('0x24')]),_0x1195d1);_0x3c99c7['query'][_0x580364('0x43')]&&(_0x54d50f[_0x580364('0x5c')]=_[_0x580364('0x35')](_0x54d50f[_0x580364('0x5c')],{[Op['or']]:_[_0x580364('0x5f')](_0x1195d1,function(_0xf1ace2){const _0x56b16f=_0x580364;if(_0xf1ace2[_0x56b16f('0x51')]!==_0x56b16f('0x6')){const _0x43ad9e={};return _0x43ad9e[_0xf1ace2[_0x56b16f('0xb')]]={[Op[_0x56b16f('0x2e')]]:'%'+_0x3c99c7[_0x56b16f('0x5e')]['filter']+'%'},_0x43ad9e;}})}));_0x54d50f=_[_0x580364('0x35')]({},_0x54d50f,_0x3c99c7[_0x580364('0x1f')]);const _0xae8ecf={'where':_0x54d50f['where']};return db[_0x580364('0x36')][_0x580364('0x4f')](_0xae8ecf)[_0x580364('0x57')](function(_0x33a5b7){const _0x2ede52=_0x580364;return _0x2a4e75[_0x2ede52('0x4f')]=_0x33a5b7,_0x3c99c7[_0x2ede52('0x5e')][_0x2ede52('0x3e')]&&(_0x54d50f[_0x2ede52('0x4b')]=[{'all':!![]}]),db['Dashboard'][_0x2ede52('0x0')](_0x54d50f);})['then'](function(_0x13ed62){const _0x537ebe=_0x580364;return _0x2a4e75[_0x537ebe('0x59')]=_0x13ed62,_0x2a4e75;})[_0x580364('0x57')](respondWithFilteredResult(_0x4406af,_0x54d50f))[_0x580364('0x10')](handleError(_0x4406af,null));},exports['show']=function(_0x1bd6a1,_0x5cdb2a){const _0x27cc51=_0x673d84;let _0xe624aa={'raw':![],'where':{'id':_0x1bd6a1[_0x27cc51('0x27')]['id']}};const _0x370d54={};return _0x370d54[_0x27cc51('0x3b')]=_[_0x27cc51('0x47')](db[_0x27cc51('0x36')][_0x27cc51('0xe')]),_0x370d54[_0x27cc51('0x5e')]=_[_0x27cc51('0x47')](_0x1bd6a1['query']),_0x370d54[_0x27cc51('0x24')]=_['intersection'](_0x370d54[_0x27cc51('0x3b')],_0x370d54[_0x27cc51('0x5e')]),_0xe624aa[_0x27cc51('0x45')]=_[_0x27cc51('0x56')](_0x370d54[_0x27cc51('0x3b')],qs['fields'](_0x1bd6a1[_0x27cc51('0x5e')][_0x27cc51('0x31')])),_0xe624aa[_0x27cc51('0x45')]=_0xe624aa[_0x27cc51('0x45')][_0x27cc51('0xc')]?_0xe624aa[_0x27cc51('0x45')]:_0x370d54[_0x27cc51('0x3b')],_0x1bd6a1[_0x27cc51('0x5e')][_0x27cc51('0x3e')]&&(_0xe624aa['include']=[{'all':!![]}]),_0xe624aa=_[_0x27cc51('0x35')]({},_0xe624aa,_0x1bd6a1[_0x27cc51('0x1f')]),db[_0x27cc51('0x36')][_0x27cc51('0x60')](_0xe624aa)[_0x27cc51('0x57')](handleEntityNotFound(_0x5cdb2a,null))[_0x27cc51('0x57')](respondWithResult(_0x5cdb2a,null))[_0x27cc51('0x10')](handleError(_0x5cdb2a,null));},exports[_0x673d84('0x55')]=function(_0x6ce1c1,_0x326263){const _0x3cbd2b=_0x673d84;return db['Dashboard'][_0x3cbd2b('0x55')](_0x6ce1c1[_0x3cbd2b('0x2f')],{})[_0x3cbd2b('0x57')](function(_0x3dce56){const _0x467add=_0x3cbd2b,_0x1c3156=_0x6ce1c1[_0x467add('0x41')][_0x467add('0x2')]({'plain':!![]});if(!_0x1c3156)throw new Error(_0x467add('0x12'));if(_0x1c3156[_0x467add('0x2a')]===_0x467add('0x41')){const _0x53eafc=_0x3dce56[_0x467add('0x2')]({'plain':!![]}),_0x24e2b4=_0x467add('0x22');return db[_0x467add('0x58')][_0x467add('0x60')]({'where':{'name':_0x24e2b4,'userProfileId':_0x1c3156[_0x467add('0x3f')]},'raw':!![]})['then'](function(_0x33714e){const _0x5f0360=_0x467add;return _0x33714e&&_0x33714e[_0x5f0360('0x21')]===0x0?db[_0x5f0360('0x1d')][_0x5f0360('0x55')]({'name':_0x53eafc[_0x5f0360('0xb')],'resourceId':_0x53eafc['id'],'type':_0x33714e[_0x5f0360('0xb')],'sectionId':_0x33714e['id']},{})[_0x5f0360('0x57')](function(){return _0x3dce56;}):_0x3dce56;})[_0x467add('0x10')](function(_0xdc923e){const _0x3eebdf=_0x467add;logger[_0x3eebdf('0x26')](_0x3eebdf('0x5a'),_0xdc923e);throw _0xdc923e;});}return _0x3dce56;})['then'](respondWithResult(_0x326263,0xc9))[_0x3cbd2b('0x10')](handleError(_0x326263,null));},exports['clone']=function(_0x6439c7,_0x5f2aab){const _0x2315b5=_0x673d84;let _0x530655={'where':{'id':_0x6439c7['params']['id']}};const _0x12a1cf={};return _0x12a1cf[_0x2315b5('0x3b')]=_['keys'](db[_0x2315b5('0x36')][_0x2315b5('0xe')]),_0x530655['attributes']=_[_0x2315b5('0x56')](_0x12a1cf[_0x2315b5('0x3b')],qs[_0x2315b5('0x31')](_0x6439c7['query'][_0x2315b5('0x31')])),_0x530655[_0x2315b5('0x45')]=_0x530655[_0x2315b5('0x45')][_0x2315b5('0xc')]?_0x530655[_0x2315b5('0x45')]:_0x12a1cf[_0x2315b5('0x3b')],_0x6439c7[_0x2315b5('0x5e')]['includeAll']&&(_0x530655['include']=[{'all':!![]}]),_0x530655=_[_0x2315b5('0x35')]({},_0x530655,_0x6439c7['options']),db[_0x2315b5('0x36')][_0x2315b5('0x60')](_0x530655)[_0x2315b5('0x57')](handleEntityNotFound(_0x5f2aab,null))[_0x2315b5('0x57')](function(_0x5e6890){const _0x4391dd=_0x2315b5;if(_0x5e6890){let _0x1e6a6=_0x5e6890[_0x4391dd('0x2')]({'plain':!![]});return _0x1e6a6=qs[_0x4391dd('0x37')](_0x1e6a6,['id',_0x4391dd('0x7'),_0x4391dd('0x4e')]),_0x6439c7[_0x4391dd('0x2f')]=_[_0x4391dd('0x37')](_0x6439c7[_0x4391dd('0x2f')],['id',_0x4391dd('0x7'),_0x4391dd('0x4e')]),db['Dashboard']['create'](_[_0x4391dd('0x35')](_0x1e6a6,_0x6439c7['body']),{'include':_0x6439c7[_0x4391dd('0x5e')][_0x4391dd('0x3e')]?[{'all':!![]}]:undefined})[_0x4391dd('0x57')](function(_0x3537ac){const _0x2b5453=_0x4391dd,_0x4a009f=_0x6439c7[_0x2b5453('0x41')][_0x2b5453('0x2')]({'plain':!![]});if(!_0x4a009f)throw new Error(_0x2b5453('0x12'));if(_0x4a009f[_0x2b5453('0x2a')]==='user'){const _0x5cbea5=_0x3537ac[_0x2b5453('0x2')]({'plain':!![]}),_0x4f0832=_0x2b5453('0x22');return db[_0x2b5453('0x58')]['findOne']({'where':{'name':_0x4f0832,'userProfileId':_0x4a009f[_0x2b5453('0x3f')]},'raw':!![]})[_0x2b5453('0x57')](function(_0x34ee71){const _0x53f60d=_0x2b5453;return _0x34ee71&&_0x34ee71[_0x53f60d('0x21')]===0x0?db[_0x53f60d('0x1d')][_0x53f60d('0x55')]({'name':_0x5cbea5[_0x53f60d('0xb')],'resourceId':_0x5cbea5['id'],'type':_0x34ee71['name'],'sectionId':_0x34ee71['id']},{})['then'](function(){return _0x3537ac;}):_0x3537ac;})[_0x2b5453('0x10')](function(_0x13539c){const _0x512547=_0x2b5453;logger[_0x512547('0x26')](_0x512547('0x5a'),_0x13539c);throw _0x13539c;});}return _0x3537ac;});}})[_0x2315b5('0x57')](respondWithResult(_0x5f2aab,0xc9))['catch'](handleError(_0x5f2aab,null));},exports[_0x673d84('0x49')]=function(_0xa30b99,_0x4571fa){const _0x1e86e8=_0x673d84;return _0xa30b99[_0x1e86e8('0x2f')]['id']&&delete _0xa30b99[_0x1e86e8('0x2f')]['id'],db[_0x1e86e8('0x36')][_0x1e86e8('0x60')]({'where':{'id':_0xa30b99['params']['id']}})[_0x1e86e8('0x57')](handleEntityNotFound(_0x4571fa,null))[_0x1e86e8('0x57')](saveUpdates(_0xa30b99[_0x1e86e8('0x2f')],null))[_0x1e86e8('0x57')](respondWithResult(_0x4571fa,null))[_0x1e86e8('0x10')](handleError(_0x4571fa,null));},exports[_0x673d84('0x3')]=function(_0x383032,_0x7e09fc){const _0x5c9512=_0x673d84;return db['Dashboard'][_0x5c9512('0x60')]({'where':{'id':_0x383032['params']['id']}})['then'](handleEntityNotFound(_0x7e09fc,null))[_0x5c9512('0x57')](removeEntity(_0x7e09fc,null))[_0x5c9512('0x10')](handleError(_0x7e09fc,null));};function widgetAttributes(_0x3697be){const _0x1ce1b6=_0x673d84;try{switch(_0x3697be['type']){case _0x1ce1b6('0x23'):return[{'name':_0x1ce1b6('0x2b'),'value':_0x3697be[_0x1ce1b6('0x2b')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x0]?_0x3697be[_0x1ce1b6('0xf')][0x0][_0x1ce1b6('0x54')]:undefined)||_0x1ce1b6('0xa')}];case'custom':return[{'name':_0x1ce1b6('0x18'),'value':_0x3697be[_0x1ce1b6('0x18')]||(_0x3697be['attrs']&&_0x3697be['attrs'][0x0]?_0x3697be[_0x1ce1b6('0xf')][0x0][_0x1ce1b6('0x54')]:undefined)||''}];case'clock':return[{'name':'attrHourFormat','value':_0x3697be[_0x1ce1b6('0x4')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be['attrs'][0x0]?_0x3697be[_0x1ce1b6('0xf')][0x0][_0x1ce1b6('0x54')]:undefined)||_0x1ce1b6('0x1c')},{'name':'attrTimezone','value':_0x3697be[_0x1ce1b6('0x2d')]||(_0x3697be['attrs']&&_0x3697be[_0x1ce1b6('0xf')][0x1]?_0x3697be[_0x1ce1b6('0xf')][0x1][_0x1ce1b6('0x54')]:undefined)||_0x1ce1b6('0x13')},{'name':_0x1ce1b6('0x33'),'value':_0x3697be[_0x1ce1b6('0x33')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x2]?_0x3697be[_0x1ce1b6('0xf')][0x2]['value']:undefined)||0xc}];case _0x1ce1b6('0x53'):return[{'name':'attrMetric','value':_0x3697be[_0x1ce1b6('0x4a')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x0]?_0x3697be[_0x1ce1b6('0xf')][0x0][_0x1ce1b6('0x54')]:undefined)||_0x1ce1b6('0x1')},{'name':_0x1ce1b6('0x17'),'value':_0x3697be[_0x1ce1b6('0x17')]||(_0x3697be['attrs']&&_0x3697be[_0x1ce1b6('0xf')][0x1]?_0x3697be[_0x1ce1b6('0xf')][0x1][_0x1ce1b6('0x54')]:undefined)||[]},{'name':_0x1ce1b6('0x33'),'value':_0x3697be[_0x1ce1b6('0x33')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x2]?_0x3697be[_0x1ce1b6('0xf')][0x2][_0x1ce1b6('0x54')]:undefined)||0x14}];case _0x1ce1b6('0x8'):case _0x1ce1b6('0x32'):return[{'name':_0x1ce1b6('0x15'),'value':_0x3697be[_0x1ce1b6('0x15')]||(_0x3697be['attrs']&&_0x3697be[_0x1ce1b6('0xf')][0x0]?_0x3697be['attrs'][0x0]['value']:undefined)||_0x1ce1b6('0x1')},{'name':'attrSerie2','value':_0x3697be[_0x1ce1b6('0x30')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x1]?_0x3697be[_0x1ce1b6('0xf')][0x1][_0x1ce1b6('0x54')]:undefined)||null},{'name':_0x1ce1b6('0x40'),'value':_0x3697be[_0x1ce1b6('0x40')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x2]?_0x3697be[_0x1ce1b6('0xf')][0x2][_0x1ce1b6('0x54')]:undefined)||null},{'name':_0x1ce1b6('0x17'),'value':_0x3697be[_0x1ce1b6('0x17')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x3]?_0x3697be[_0x1ce1b6('0xf')][0x3][_0x1ce1b6('0x54')]:undefined)||[]}];case _0x1ce1b6('0x34'):return[{'name':'attrReport','type':_0x3697be['reportType']||(_0x3697be['attrs']&&_0x3697be[_0x1ce1b6('0xf')][0x0]?_0x3697be[_0x1ce1b6('0xf')][0x0][_0x1ce1b6('0x51')]:undefined)||null,'value':_0x3697be[_0x1ce1b6('0x29')]||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x0]?_0x3697be[_0x1ce1b6('0xf')][0x0][_0x1ce1b6('0x54')]:undefined)||null},{'name':_0x1ce1b6('0x9'),'value':_0x3697be['attrRefresh']||(_0x3697be[_0x1ce1b6('0xf')]&&_0x3697be[_0x1ce1b6('0xf')][0x1]?_0x3697be[_0x1ce1b6('0xf')][0x1][_0x1ce1b6('0x54')]:undefined)||0x0}];default:return[];}}catch(_0x2f8c3d){return logger[_0x1ce1b6('0x26')](_0x1ce1b6('0x28'),JSON[_0x1ce1b6('0x4d')](_0x2f8c3d)),[];}}exports[_0x673d84('0x1e')]=function(_0x3e6306,_0x3978d1){const _0x2f4649=_0x673d84;return _0x3e6306[_0x2f4649('0x2f')]['id']&&delete _0x3e6306['body']['id'],db[_0x2f4649('0x36')]['findOne']({'where':{'id':_0x3e6306[_0x2f4649('0x27')]['id']}})[_0x2f4649('0x57')](handleEntityNotFound(_0x3978d1,null))[_0x2f4649('0x57')](function(_0x1a63ad){const _0xebe9b=_0x2f4649;if(_0x1a63ad)return _0x3e6306[_0xebe9b('0x2f')][_0xebe9b('0x46')]=_0x1a63ad['id'],_0x3e6306[_0xebe9b('0x2f')][_0xebe9b('0xf')]=widgetAttributes(_0x3e6306[_0xebe9b('0x2f')]),db[_0xebe9b('0x25')][_0xebe9b('0x55')](_0x3e6306[_0xebe9b('0x2f')]);})[_0x2f4649('0x57')](respondWithResult(_0x3978d1,null))[_0x2f4649('0x10')](handleError(_0x3978d1,null));},exports[_0x673d84('0x1a')]=function(_0x228d13,_0x1a07eb){const _0x368aff=_0x673d84;let _0x2ff79e={};const _0x3c14a8={};let _0x3a0be1,_0x429804;return db[_0x368aff('0x36')][_0x368aff('0x60')]({'where':{'id':_0x228d13[_0x368aff('0x27')]['id']}})[_0x368aff('0x57')](handleEntityNotFound(_0x1a07eb,null))[_0x368aff('0x57')](function(_0x3f5bb1){const _0x355c25=_0x368aff;if(_0x3f5bb1)return _0x3a0be1=_0x3f5bb1,_0x3c14a8['model']=_[_0x355c25('0x47')](db[_0x355c25('0x25')][_0x355c25('0xe')]),_0x3c14a8['query']=_['keys'](_0x228d13[_0x355c25('0x5e')]),_0x3c14a8[_0x355c25('0x24')]=_['intersection'](_0x3c14a8[_0x355c25('0x3b')],_0x3c14a8['query']),_0x2ff79e[_0x355c25('0x45')]=_[_0x355c25('0x56')](_0x3c14a8[_0x355c25('0x3b')],qs['fields'](_0x228d13['query'][_0x355c25('0x31')])),_0x2ff79e[_0x355c25('0x45')]=_0x2ff79e['attributes'][_0x355c25('0xc')]?_0x2ff79e['attributes']:_0x3c14a8[_0x355c25('0x3b')],_0x2ff79e['order']=qs['sort'](_0x228d13[_0x355c25('0x5e')][_0x355c25('0x4c')]),_0x2ff79e[_0x355c25('0x5c')]=qs[_0x355c25('0x24')](_[_0x355c25('0x2c')](_0x228d13[_0x355c25('0x5e')],_0x3c14a8['filters'])),_0x228d13[_0x355c25('0x5e')][_0x355c25('0x43')]&&(_0x2ff79e['where']=_[_0x355c25('0x35')](_0x2ff79e[_0x355c25('0x5c')],{[Op['or']]:_[_0x355c25('0x5f')](_0x2ff79e[_0x355c25('0x45')],function(_0x45293c){const _0x270623=_0x355c25,_0x26d639={};return _0x26d639[_0x45293c]={[Op[_0x270623('0x2e')]]:'%'+_0x228d13[_0x270623('0x5e')][_0x270623('0x43')]+'%'},_0x26d639;})})),_0x2ff79e=_[_0x355c25('0x35')]({},_0x2ff79e,_0x228d13[_0x355c25('0x1f')]),_0x3a0be1[_0x355c25('0x1a')](_0x2ff79e);})[_0x368aff('0x57')](function(_0x3c7db5){const _0x281c1a=_0x368aff;if(_0x3c7db5)return _0x429804=_0x3c7db5[_0x281c1a('0xc')],typeof _0x228d13[_0x281c1a('0x5e')]['nolimit']===_0x281c1a('0x38')&&(_0x2ff79e[_0x281c1a('0x42')]=qs[_0x281c1a('0x42')](_0x228d13[_0x281c1a('0x5e')][_0x281c1a('0x42')]),_0x2ff79e[_0x281c1a('0x44')]=qs['offset'](_0x228d13[_0x281c1a('0x5e')][_0x281c1a('0x44')])),_0x3a0be1['getItems'](_0x2ff79e);})[_0x368aff('0x57')](function(_0x5f49c6){if(_0x5f49c6)return _0x5f49c6?{'count':_0x429804,'rows':_0x5f49c6}:null;})[_0x368aff('0x57')](respondWithResult(_0x1a07eb,null))[_0x368aff('0x10')](handleError(_0x1a07eb,null));}; \ No newline at end of file +const a168_0x3a71=['Dashboard','attrReport','clock','length','0.00','user','model','map','multibar-chart','../../rediscache','value','../../config/logger','order','catch','fieldName','stack','attrVoiceQueues','sort','attrMetric','VIRTUAL','destroy','fields','Unable\x20to\x20retrieve\x20the\x20current\x20user','body','iframe','stringify','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../components/parsers/qs','rawAttributes','status','DashboardItem','attrFontSize','sequelize','include','updatedAt','DashboardId','createdAt','attrPath','sendStatus','undefined','api','send','counter','nolimit','index','reportType','omit','findOne','keys','json','CustomDashboards','merge','attrSerie1','UserProfileSection','attrHourFormat','type','pie-chart','widgetAttributes:\x20%s','register','attributes','attrRefresh','where','intersection','Content-Range','includeAll','getItems','role','attrs','error','attrSerie3','name','count','attrUrl','attrSerie2','filters','userProfileId','offset','../../mysqldb','UserProfileResource','autoAssociation','findAll','then','options','params','./dashboard.socket','total','limit','update','like','pick','get','create','rows','query','attrTimezone','show','filter'];(function(_0x458661,_0x3a717b){const _0x5b03ce=function(_0x204201){while(--_0x204201){_0x458661['push'](_0x458661['shift']());}};_0x5b03ce(++_0x3a717b);}(a168_0x3a71,0x169));const a168_0x5b03=function(_0x458661,_0x3a717b){_0x458661=_0x458661-0x0;let _0x5b03ce=a168_0x3a71[_0x458661];return _0x5b03ce;};const _0x4670c2=a168_0x5b03;'use strict';const _=require('lodash'),qs=require(_0x4670c2('0x36')),logger=require(_0x4670c2('0x26'))(_0x4670c2('0x43')),{getSocket}=require(_0x4670c2('0x24')),socket=getSocket(),db=require(_0x4670c2('0x7'))['db'],{Op}=require(_0x4670c2('0x3b'));require(_0x4670c2('0xe'))[_0x4670c2('0x55')](socket);function respondWithResult(_0x204201,_0x4bcb1f){return _0x4bcb1f=_0x4bcb1f||0xc8,function(_0x2dfbed){const _0x548e0c=a168_0x5b03;if(_0x2dfbed)return _0x204201['status'](_0x4bcb1f)[_0x548e0c('0x4c')](_0x2dfbed);};}function respondWithFilteredResult(_0x3b3f62,_0x4eb204){return function(_0x48b8ef){const _0x418472=a168_0x5b03;if(_0x48b8ef){const _0x318ad5=_0x48b8ef[_0x418472('0x1')],_0x48087b=_0x4eb204[_0x418472('0x6')];let _0x1ad214=_0x4eb204[_0x418472('0x6')]+_0x4eb204[_0x418472('0x10')],_0x1e373c;return _0x1ad214>=_0x318ad5?(_0x1ad214=_0x318ad5,_0x1e373c=0xc8):_0x1e373c=0xce,_0x3b3f62['status'](_0x1e373c),_0x3b3f62['set'](_0x418472('0x5a'),_0x48087b+'-'+_0x1ad214+'/'+_0x318ad5)['json'](_0x48b8ef);}return null;};}function saveUpdates(_0x30700f){return function(_0x42daf8){const _0x19067a=a168_0x5b03;if(_0x42daf8)return _0x42daf8['update'](_0x30700f)[_0x19067a('0xb')](function(_0x5e9d5c){return _0x5e9d5c;});return null;};}function removeEntity(_0x405da4){return function(_0x43bcf5){const _0x246865=a168_0x5b03;if(_0x43bcf5)return _0x43bcf5[_0x246865('0x2f')]()[_0x246865('0xb')](function(){const _0x31f471=_0x246865,_0x1e835d=_0x43bcf5[_0x31f471('0x14')]({'plain':!![]}),_0x34faab=_0x31f471('0x4d');return db[_0x31f471('0x8')]['destroy']({'where':{'type':_0x34faab,'resourceId':_0x1e835d['id']}})[_0x31f471('0xb')](function(){return _0x43bcf5;});})['then'](function(){const _0x3f7131=_0x246865;_0x405da4[_0x3f7131('0x38')](0xcc)['end']();});};}function handleEntityNotFound(_0x23833e){return function(_0x3c82db){const _0x51da1c=a168_0x5b03;return!_0x3c82db&&_0x23833e[_0x51da1c('0x41')](0x194),_0x3c82db;};}function handleError(_0x4c1a0d,_0x5337fc){return _0x5337fc=_0x5337fc||0x1f4,function(_0x1ba73a){const _0x1ff1af=a168_0x5b03;logger[_0x1ff1af('0x5f')](_0x1ba73a[_0x1ff1af('0x2a')]),_0x1ba73a['name']&&delete _0x1ba73a[_0x1ff1af('0x0')],_0x4c1a0d[_0x1ff1af('0x38')](_0x5337fc)[_0x1ff1af('0x44')](_0x1ba73a);};}exports[_0x4670c2('0x47')]=function(_0x48d14,_0xc3f706){const _0x256446=_0x4670c2;let _0x5d67fa={};const _0x24918a={},_0x447afc={'count':0x0,'rows':[]},_0x25b656=_[_0x256446('0x22')](db[_0x256446('0x1b')][_0x256446('0x37')],function(_0x53dead){const _0x30892c=_0x256446;return{'name':_0x53dead[_0x30892c('0x29')],'type':_0x53dead[_0x30892c('0x52')]['key']};});_0x24918a[_0x256446('0x21')]=_[_0x256446('0x22')](_0x25b656,_0x256446('0x0')),_0x24918a[_0x256446('0x17')]=_['keys'](_0x48d14[_0x256446('0x17')]),_0x24918a[_0x256446('0x4')]=_[_0x256446('0x59')](_0x24918a[_0x256446('0x21')],_0x24918a[_0x256446('0x17')]),_0x5d67fa[_0x256446('0x56')]=_[_0x256446('0x59')](_0x24918a['model'],qs['fields'](_0x48d14['query'][_0x256446('0x30')])),_0x5d67fa[_0x256446('0x56')]=_0x5d67fa[_0x256446('0x56')][_0x256446('0x1e')]?_0x5d67fa[_0x256446('0x56')]:_0x24918a['model'];typeof _0x48d14[_0x256446('0x17')]['nolimit']===_0x256446('0x42')&&(_0x5d67fa[_0x256446('0x10')]=qs[_0x256446('0x10')](_0x48d14['query'][_0x256446('0x10')]),_0x5d67fa[_0x256446('0x6')]=qs[_0x256446('0x6')](_0x48d14[_0x256446('0x17')][_0x256446('0x6')]));_0x5d67fa[_0x256446('0x27')]=qs[_0x256446('0x2c')](_0x48d14[_0x256446('0x17')][_0x256446('0x2c')]),_0x5d67fa[_0x256446('0x58')]=qs[_0x256446('0x4')](_[_0x256446('0x13')](_0x48d14['query'],_0x24918a[_0x256446('0x4')]),_0x25b656);_0x48d14[_0x256446('0x17')][_0x256446('0x1a')]&&(_0x5d67fa['where']=_[_0x256446('0x4e')](_0x5d67fa[_0x256446('0x58')],{[Op['or']]:_[_0x256446('0x22')](_0x25b656,function(_0x5468ab){const _0x9303d5=_0x256446;if(_0x5468ab[_0x9303d5('0x52')]!==_0x9303d5('0x2e')){const _0x1a114e={};return _0x1a114e[_0x5468ab[_0x9303d5('0x0')]]={[Op[_0x9303d5('0x12')]]:'%'+_0x48d14[_0x9303d5('0x17')][_0x9303d5('0x1a')]+'%'},_0x1a114e;}})}));_0x5d67fa=_[_0x256446('0x4e')]({},_0x5d67fa,_0x48d14['options']);const _0x501ef4={'where':_0x5d67fa[_0x256446('0x58')]};return db[_0x256446('0x1b')][_0x256446('0x1')](_0x501ef4)[_0x256446('0xb')](function(_0x5dbcba){const _0x3b7b4b=_0x256446;return _0x447afc['count']=_0x5dbcba,_0x48d14[_0x3b7b4b('0x17')]['includeAll']&&(_0x5d67fa[_0x3b7b4b('0x3c')]=[{'all':!![]}]),db[_0x3b7b4b('0x1b')][_0x3b7b4b('0xa')](_0x5d67fa);})[_0x256446('0xb')](function(_0x4b527e){const _0x3cf7c5=_0x256446;return _0x447afc[_0x3cf7c5('0x16')]=_0x4b527e,_0x447afc;})[_0x256446('0xb')](respondWithFilteredResult(_0xc3f706,_0x5d67fa))[_0x256446('0x28')](handleError(_0xc3f706,null));},exports[_0x4670c2('0x19')]=function(_0x511569,_0x192524){const _0x41267a=_0x4670c2;let _0x203469={'raw':![],'where':{'id':_0x511569['params']['id']}};const _0x152aa5={};return _0x152aa5['model']=_[_0x41267a('0x4b')](db['Dashboard']['rawAttributes']),_0x152aa5[_0x41267a('0x17')]=_['keys'](_0x511569[_0x41267a('0x17')]),_0x152aa5['filters']=_['intersection'](_0x152aa5[_0x41267a('0x21')],_0x152aa5['query']),_0x203469['attributes']=_[_0x41267a('0x59')](_0x152aa5[_0x41267a('0x21')],qs['fields'](_0x511569[_0x41267a('0x17')][_0x41267a('0x30')])),_0x203469['attributes']=_0x203469[_0x41267a('0x56')][_0x41267a('0x1e')]?_0x203469[_0x41267a('0x56')]:_0x152aa5[_0x41267a('0x21')],_0x511569[_0x41267a('0x17')][_0x41267a('0x5b')]&&(_0x203469['include']=[{'all':!![]}]),_0x203469=_['merge']({},_0x203469,_0x511569['options']),db[_0x41267a('0x1b')][_0x41267a('0x4a')](_0x203469)[_0x41267a('0xb')](handleEntityNotFound(_0x192524,null))['then'](respondWithResult(_0x192524,null))[_0x41267a('0x28')](handleError(_0x192524,null));},exports[_0x4670c2('0x15')]=function(_0x389172,_0x10230a){const _0x2a1aff=_0x4670c2;return db[_0x2a1aff('0x1b')][_0x2a1aff('0x15')](_0x389172[_0x2a1aff('0x32')],{})['then'](function(_0x3380a7){const _0xd95913=_0x2a1aff,_0x1edbd5=_0x389172[_0xd95913('0x20')][_0xd95913('0x14')]({'plain':!![]});if(!_0x1edbd5)throw new Error(_0xd95913('0x31'));if(_0x1edbd5[_0xd95913('0x5d')]===_0xd95913('0x20')){const _0x321cbd=_0x3380a7[_0xd95913('0x14')]({'plain':!![]}),_0x522c0b='CustomDashboards';return db[_0xd95913('0x50')][_0xd95913('0x4a')]({'where':{'name':_0x522c0b,'userProfileId':_0x1edbd5[_0xd95913('0x5')]},'raw':!![]})[_0xd95913('0xb')](function(_0x2efe5f){const _0x4ded0e=_0xd95913;return _0x2efe5f&&_0x2efe5f[_0x4ded0e('0x9')]===0x0?db[_0x4ded0e('0x8')]['create']({'name':_0x321cbd[_0x4ded0e('0x0')],'resourceId':_0x321cbd['id'],'type':_0x2efe5f[_0x4ded0e('0x0')],'sectionId':_0x2efe5f['id']},{})[_0x4ded0e('0xb')](function(){return _0x3380a7;}):_0x3380a7;})[_0xd95913('0x28')](function(_0x9c0485){const _0x49cf7d=_0xd95913;logger[_0x49cf7d('0x5f')](_0x49cf7d('0x35'),_0x9c0485);throw _0x9c0485;});}return _0x3380a7;})[_0x2a1aff('0xb')](respondWithResult(_0x10230a,0xc9))[_0x2a1aff('0x28')](handleError(_0x10230a,null));},exports['clone']=function(_0x15b8ed,_0x325ee5){const _0x137b53=_0x4670c2;let _0x139b8d={'where':{'id':_0x15b8ed['params']['id']}};const _0x4d9775={};return _0x4d9775['model']=_[_0x137b53('0x4b')](db[_0x137b53('0x1b')]['rawAttributes']),_0x139b8d['attributes']=_['intersection'](_0x4d9775[_0x137b53('0x21')],qs[_0x137b53('0x30')](_0x15b8ed[_0x137b53('0x17')]['fields'])),_0x139b8d[_0x137b53('0x56')]=_0x139b8d[_0x137b53('0x56')]['length']?_0x139b8d[_0x137b53('0x56')]:_0x4d9775[_0x137b53('0x21')],_0x15b8ed[_0x137b53('0x17')][_0x137b53('0x5b')]&&(_0x139b8d[_0x137b53('0x3c')]=[{'all':!![]}]),_0x139b8d=_[_0x137b53('0x4e')]({},_0x139b8d,_0x15b8ed[_0x137b53('0xc')]),db[_0x137b53('0x1b')][_0x137b53('0x4a')](_0x139b8d)[_0x137b53('0xb')](handleEntityNotFound(_0x325ee5,null))[_0x137b53('0xb')](function(_0x5865a5){const _0x4b7ed1=_0x137b53;if(_0x5865a5){let _0x21a42c=_0x5865a5[_0x4b7ed1('0x14')]({'plain':!![]});return _0x21a42c=qs[_0x4b7ed1('0x49')](_0x21a42c,['id','createdAt',_0x4b7ed1('0x3d')]),_0x15b8ed[_0x4b7ed1('0x32')]=_[_0x4b7ed1('0x49')](_0x15b8ed['body'],['id',_0x4b7ed1('0x3f'),_0x4b7ed1('0x3d')]),db[_0x4b7ed1('0x1b')]['create'](_[_0x4b7ed1('0x4e')](_0x21a42c,_0x15b8ed[_0x4b7ed1('0x32')]),{'include':_0x15b8ed[_0x4b7ed1('0x17')]['includeAll']?[{'all':!![]}]:undefined})[_0x4b7ed1('0xb')](function(_0x45b6b5){const _0x5a368f=_0x4b7ed1,_0xefc974=_0x15b8ed[_0x5a368f('0x20')][_0x5a368f('0x14')]({'plain':!![]});if(!_0xefc974)throw new Error(_0x5a368f('0x31'));if(_0xefc974[_0x5a368f('0x5d')]===_0x5a368f('0x20')){const _0x2efcee=_0x45b6b5[_0x5a368f('0x14')]({'plain':!![]}),_0x42892e=_0x5a368f('0x4d');return db[_0x5a368f('0x50')][_0x5a368f('0x4a')]({'where':{'name':_0x42892e,'userProfileId':_0xefc974[_0x5a368f('0x5')]},'raw':!![]})[_0x5a368f('0xb')](function(_0x24d0d4){const _0x3a5c79=_0x5a368f;return _0x24d0d4&&_0x24d0d4[_0x3a5c79('0x9')]===0x0?db[_0x3a5c79('0x8')]['create']({'name':_0x2efcee[_0x3a5c79('0x0')],'resourceId':_0x2efcee['id'],'type':_0x24d0d4[_0x3a5c79('0x0')],'sectionId':_0x24d0d4['id']},{})[_0x3a5c79('0xb')](function(){return _0x45b6b5;}):_0x45b6b5;})[_0x5a368f('0x28')](function(_0x4e43f1){const _0x38c532=_0x5a368f;logger[_0x38c532('0x5f')](_0x38c532('0x35'),_0x4e43f1);throw _0x4e43f1;});}return _0x45b6b5;});}})[_0x137b53('0xb')](respondWithResult(_0x325ee5,0xc9))[_0x137b53('0x28')](handleError(_0x325ee5,null));},exports[_0x4670c2('0x11')]=function(_0x55f5f6,_0x4b3171){const _0x53aa7e=_0x4670c2;return _0x55f5f6[_0x53aa7e('0x32')]['id']&&delete _0x55f5f6[_0x53aa7e('0x32')]['id'],db[_0x53aa7e('0x1b')][_0x53aa7e('0x4a')]({'where':{'id':_0x55f5f6['params']['id']}})['then'](handleEntityNotFound(_0x4b3171,null))[_0x53aa7e('0xb')](saveUpdates(_0x55f5f6[_0x53aa7e('0x32')],null))[_0x53aa7e('0xb')](respondWithResult(_0x4b3171,null))['catch'](handleError(_0x4b3171,null));},exports['destroy']=function(_0x4dc201,_0x37fd7a){const _0x4bc461=_0x4670c2;return db[_0x4bc461('0x1b')][_0x4bc461('0x4a')]({'where':{'id':_0x4dc201[_0x4bc461('0xd')]['id']}})[_0x4bc461('0xb')](handleEntityNotFound(_0x37fd7a,null))[_0x4bc461('0xb')](removeEntity(_0x37fd7a,null))[_0x4bc461('0x28')](handleError(_0x37fd7a,null));};function widgetAttributes(_0x1be8e9){const _0x408ddd=_0x4670c2;try{switch(_0x1be8e9['type']){case _0x408ddd('0x33'):return[{'name':_0x408ddd('0x2'),'value':_0x1be8e9[_0x408ddd('0x2')]||(_0x1be8e9['attrs']&&_0x1be8e9[_0x408ddd('0x5e')][0x0]?_0x1be8e9[_0x408ddd('0x5e')][0x0]['value']:undefined)||'https://'}];case'custom':return[{'name':_0x408ddd('0x40'),'value':_0x1be8e9[_0x408ddd('0x40')]||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9[_0x408ddd('0x5e')][0x0]?_0x1be8e9[_0x408ddd('0x5e')][0x0][_0x408ddd('0x25')]:undefined)||''}];case _0x408ddd('0x1d'):return[{'name':_0x408ddd('0x51'),'value':_0x1be8e9[_0x408ddd('0x51')]||(_0x1be8e9['attrs']&&_0x1be8e9['attrs'][0x0]?_0x1be8e9[_0x408ddd('0x5e')][0x0][_0x408ddd('0x25')]:undefined)||'HH:mm:ss'},{'name':_0x408ddd('0x18'),'value':_0x1be8e9[_0x408ddd('0x18')]||(_0x1be8e9['attrs']&&_0x1be8e9[_0x408ddd('0x5e')][0x1]?_0x1be8e9[_0x408ddd('0x5e')][0x1][_0x408ddd('0x25')]:undefined)||_0x408ddd('0x1f')},{'name':'attrFontSize','value':_0x1be8e9[_0x408ddd('0x3a')]||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9[_0x408ddd('0x5e')][0x2]?_0x1be8e9[_0x408ddd('0x5e')][0x2][_0x408ddd('0x25')]:undefined)||0xc}];case _0x408ddd('0x45'):return[{'name':_0x408ddd('0x2d'),'value':_0x1be8e9[_0x408ddd('0x2d')]||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9[_0x408ddd('0x5e')][0x0]?_0x1be8e9[_0x408ddd('0x5e')][0x0][_0x408ddd('0x25')]:undefined)||_0x408ddd('0xf')},{'name':_0x408ddd('0x2b'),'value':_0x1be8e9[_0x408ddd('0x2b')]||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9[_0x408ddd('0x5e')][0x1]?_0x1be8e9[_0x408ddd('0x5e')][0x1][_0x408ddd('0x25')]:undefined)||[]},{'name':_0x408ddd('0x3a'),'value':_0x1be8e9['attrFontSize']||(_0x1be8e9['attrs']&&_0x1be8e9[_0x408ddd('0x5e')][0x2]?_0x1be8e9[_0x408ddd('0x5e')][0x2][_0x408ddd('0x25')]:undefined)||0x14}];case _0x408ddd('0x23'):case _0x408ddd('0x53'):return[{'name':_0x408ddd('0x4f'),'value':_0x1be8e9[_0x408ddd('0x4f')]||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9[_0x408ddd('0x5e')][0x0]?_0x1be8e9['attrs'][0x0][_0x408ddd('0x25')]:undefined)||_0x408ddd('0xf')},{'name':_0x408ddd('0x3'),'value':_0x1be8e9[_0x408ddd('0x3')]||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9[_0x408ddd('0x5e')][0x1]?_0x1be8e9[_0x408ddd('0x5e')][0x1][_0x408ddd('0x25')]:undefined)||null},{'name':_0x408ddd('0x60'),'value':_0x1be8e9[_0x408ddd('0x60')]||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9['attrs'][0x2]?_0x1be8e9['attrs'][0x2][_0x408ddd('0x25')]:undefined)||null},{'name':_0x408ddd('0x2b'),'value':_0x1be8e9[_0x408ddd('0x2b')]||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9[_0x408ddd('0x5e')][0x3]?_0x1be8e9[_0x408ddd('0x5e')][0x3]['value']:undefined)||[]}];case'web-report':return[{'name':_0x408ddd('0x1c'),'type':_0x1be8e9[_0x408ddd('0x48')]||(_0x1be8e9['attrs']&&_0x1be8e9['attrs'][0x0]?_0x1be8e9[_0x408ddd('0x5e')][0x0]['type']:undefined)||null,'value':_0x1be8e9[_0x408ddd('0x1c')]||(_0x1be8e9['attrs']&&_0x1be8e9['attrs'][0x0]?_0x1be8e9[_0x408ddd('0x5e')][0x0][_0x408ddd('0x25')]:undefined)||null},{'name':_0x408ddd('0x57'),'value':_0x1be8e9['attrRefresh']||(_0x1be8e9[_0x408ddd('0x5e')]&&_0x1be8e9[_0x408ddd('0x5e')][0x1]?_0x1be8e9['attrs'][0x1][_0x408ddd('0x25')]:undefined)||0x0}];default:return[];}}catch(_0x40cbf4){return logger[_0x408ddd('0x5f')](_0x408ddd('0x54'),JSON[_0x408ddd('0x34')](_0x40cbf4)),[];}}exports['addItem']=function(_0x40ef69,_0x183483){const _0x423889=_0x4670c2;return _0x40ef69['body']['id']&&delete _0x40ef69[_0x423889('0x32')]['id'],db[_0x423889('0x1b')]['findOne']({'where':{'id':_0x40ef69[_0x423889('0xd')]['id']}})[_0x423889('0xb')](handleEntityNotFound(_0x183483,null))[_0x423889('0xb')](function(_0xee571f){const _0x5edcdd=_0x423889;if(_0xee571f)return _0x40ef69[_0x5edcdd('0x32')][_0x5edcdd('0x3e')]=_0xee571f['id'],_0x40ef69[_0x5edcdd('0x32')][_0x5edcdd('0x5e')]=widgetAttributes(_0x40ef69[_0x5edcdd('0x32')]),db[_0x5edcdd('0x39')][_0x5edcdd('0x15')](_0x40ef69[_0x5edcdd('0x32')]);})[_0x423889('0xb')](respondWithResult(_0x183483,null))[_0x423889('0x28')](handleError(_0x183483,null));},exports[_0x4670c2('0x5c')]=function(_0x4781ea,_0x28934c){const _0x155f0a=_0x4670c2;let _0x547f52={};const _0x38371d={};let _0x13bcbc,_0x12af93;return db[_0x155f0a('0x1b')][_0x155f0a('0x4a')]({'where':{'id':_0x4781ea[_0x155f0a('0xd')]['id']}})[_0x155f0a('0xb')](handleEntityNotFound(_0x28934c,null))[_0x155f0a('0xb')](function(_0x45648e){const _0x58b95e=_0x155f0a;if(_0x45648e)return _0x13bcbc=_0x45648e,_0x38371d['model']=_[_0x58b95e('0x4b')](db[_0x58b95e('0x39')]['rawAttributes']),_0x38371d[_0x58b95e('0x17')]=_[_0x58b95e('0x4b')](_0x4781ea[_0x58b95e('0x17')]),_0x38371d[_0x58b95e('0x4')]=_[_0x58b95e('0x59')](_0x38371d['model'],_0x38371d[_0x58b95e('0x17')]),_0x547f52[_0x58b95e('0x56')]=_[_0x58b95e('0x59')](_0x38371d[_0x58b95e('0x21')],qs['fields'](_0x4781ea[_0x58b95e('0x17')][_0x58b95e('0x30')])),_0x547f52[_0x58b95e('0x56')]=_0x547f52[_0x58b95e('0x56')][_0x58b95e('0x1e')]?_0x547f52['attributes']:_0x38371d[_0x58b95e('0x21')],_0x547f52[_0x58b95e('0x27')]=qs[_0x58b95e('0x2c')](_0x4781ea['query'][_0x58b95e('0x2c')]),_0x547f52[_0x58b95e('0x58')]=qs[_0x58b95e('0x4')](_[_0x58b95e('0x13')](_0x4781ea[_0x58b95e('0x17')],_0x38371d[_0x58b95e('0x4')])),_0x4781ea[_0x58b95e('0x17')]['filter']&&(_0x547f52[_0x58b95e('0x58')]=_['merge'](_0x547f52['where'],{[Op['or']]:_['map'](_0x547f52[_0x58b95e('0x56')],function(_0x107256){const _0x532e04=_0x58b95e,_0xde826f={};return _0xde826f[_0x107256]={[Op[_0x532e04('0x12')]]:'%'+_0x4781ea[_0x532e04('0x17')][_0x532e04('0x1a')]+'%'},_0xde826f;})})),_0x547f52=_[_0x58b95e('0x4e')]({},_0x547f52,_0x4781ea[_0x58b95e('0xc')]),_0x13bcbc[_0x58b95e('0x5c')](_0x547f52);})[_0x155f0a('0xb')](function(_0x434ecc){const _0x537df0=_0x155f0a;if(_0x434ecc)return _0x12af93=_0x434ecc['length'],typeof _0x4781ea[_0x537df0('0x17')][_0x537df0('0x46')]===_0x537df0('0x42')&&(_0x547f52[_0x537df0('0x10')]=qs[_0x537df0('0x10')](_0x4781ea[_0x537df0('0x17')][_0x537df0('0x10')]),_0x547f52[_0x537df0('0x6')]=qs['offset'](_0x4781ea[_0x537df0('0x17')][_0x537df0('0x6')])),_0x13bcbc[_0x537df0('0x5c')](_0x547f52);})[_0x155f0a('0xb')](function(_0x68f863){if(_0x68f863)return _0x68f863?{'count':_0x12af93,'rows':_0x68f863}:null;})['then'](respondWithResult(_0x28934c,null))[_0x155f0a('0x28')](handleError(_0x28934c,null));}; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.events.js b/server/api/dashboard/dashboard.events.js index 6a42e41..47db094 100644 --- a/server/api/dashboard/dashboard.events.js +++ b/server/api/dashboard/dashboard.events.js @@ -1 +1 @@ -const a169_0x560c=['emit','update','events','Dashboard','remove','../../mysqldb','exports','save','addHook','undefined'];(function(_0x5a2244,_0x560c23){const _0x2aa894=function(_0x30d572){while(--_0x30d572){_0x5a2244['push'](_0x5a2244['shift']());}};_0x2aa894(++_0x560c23);}(a169_0x560c,0x73));const a169_0x2aa8=function(_0x5a2244,_0x560c23){_0x5a2244=_0x5a2244-0x0;let _0x2aa894=a169_0x560c[_0x5a2244];return _0x2aa894;};const _0x1ffd6c=a169_0x2aa8;'use strict';const EventEmitter=require(_0x1ffd6c('0x7')),Dashboard=require(_0x1ffd6c('0x0'))['db'][_0x1ffd6c('0x8')],DashboardEvents=new EventEmitter();DashboardEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x1ffd6c('0x2'),'afterUpdate':_0x1ffd6c('0x6'),'afterDestroy':_0x1ffd6c('0x9')};function emitEvent(_0x30d572){return function(_0xc1e0a9){const _0x5bb300=a169_0x2aa8;DashboardEvents[_0x5bb300('0x5')](_0x30d572+':'+_0xc1e0a9['id'],_0xc1e0a9),DashboardEvents[_0x5bb300('0x5')](_0x30d572,_0xc1e0a9);};}for(const e in events){if(typeof events[e]!==_0x1ffd6c('0x4')){const event=events[e];Dashboard[_0x1ffd6c('0x3')](e,emitEvent(event));}}module[_0x1ffd6c('0x1')]=DashboardEvents; \ No newline at end of file +const a169_0x24c8=['exports','events','emit','save','update','../../mysqldb','setMaxListeners','addHook','remove','Dashboard'];(function(_0x1b7a42,_0x24c85c){const _0x21404a=function(_0x10e93e){while(--_0x10e93e){_0x1b7a42['push'](_0x1b7a42['shift']());}};_0x21404a(++_0x24c85c);}(a169_0x24c8,0x14b));const a169_0x2140=function(_0x1b7a42,_0x24c85c){_0x1b7a42=_0x1b7a42-0x0;let _0x21404a=a169_0x24c8[_0x1b7a42];return _0x21404a;};const _0x2a941a=a169_0x2140;'use strict';const EventEmitter=require(_0x2a941a('0x0')),Dashboard=require(_0x2a941a('0x4'))['db'][_0x2a941a('0x8')],DashboardEvents=new EventEmitter();DashboardEvents[_0x2a941a('0x5')](0x0);const events={'afterCreate':_0x2a941a('0x2'),'afterUpdate':_0x2a941a('0x3'),'afterDestroy':_0x2a941a('0x7')};function emitEvent(_0x10e93e){return function(_0x21bdf9){const _0x5cb248=a169_0x2140;DashboardEvents[_0x5cb248('0x1')](_0x10e93e+':'+_0x21bdf9['id'],_0x21bdf9),DashboardEvents[_0x5cb248('0x1')](_0x10e93e,_0x21bdf9);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Dashboard[_0x2a941a('0x6')](e,emitEvent(event));}}module[_0x2a941a('0x9')]=DashboardEvents; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.model.js b/server/api/dashboard/dashboard.model.js index 0830149..8bfcd8d 100644 --- a/server/api/dashboard/dashboard.model.js +++ b/server/api/dashboard/dashboard.model.js @@ -1 +1 @@ -const a170_0x4ff1=['dashboards','./dashboard.attributes'];(function(_0x58f88b,_0x4ff129){const _0x972504=function(_0x4fc27a){while(--_0x4fc27a){_0x58f88b['push'](_0x58f88b['shift']());}};_0x972504(++_0x4ff129);}(a170_0x4ff1,0xcf));const a170_0x9725=function(_0x58f88b,_0x4ff129){_0x58f88b=_0x58f88b-0x0;let _0x972504=a170_0x4ff1[_0x58f88b];return _0x972504;};const _0x3d3246=a170_0x9725;'use strict';const attributes=require(_0x3d3246('0x0'));module['exports']=function(_0x4fc27a){const _0x3e5c3a=_0x3d3246,_0x5d1482=_0x4fc27a['define']('Dashboard',attributes,{'tableName':_0x3e5c3a('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5d1482;}; \ No newline at end of file +const a170_0x2a78=['Dashboard','define','dashboards','exports','./dashboard.attributes'];(function(_0x5ef28c,_0x2a78fa){const _0x41ff0f=function(_0x2c4e84){while(--_0x2c4e84){_0x5ef28c['push'](_0x5ef28c['shift']());}};_0x41ff0f(++_0x2a78fa);}(a170_0x2a78,0xf9));const a170_0x41ff=function(_0x5ef28c,_0x2a78fa){_0x5ef28c=_0x5ef28c-0x0;let _0x41ff0f=a170_0x2a78[_0x5ef28c];return _0x41ff0f;};const _0x4679e0=a170_0x41ff;'use strict';const attributes=require(_0x4679e0('0x0'));module[_0x4679e0('0x4')]=function(_0x2c4e84){const _0x1e6f78=_0x4679e0,_0x178122=_0x2c4e84[_0x1e6f78('0x2')](_0x1e6f78('0x1'),attributes,{'tableName':_0x1e6f78('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x178122;}; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.rpc.js b/server/api/dashboard/dashboard.rpc.js index 953e9e4..a749090 100644 --- a/server/api/dashboard/dashboard.rpc.js +++ b/server/api/dashboard/dashboard.rpc.js @@ -1 +1 @@ -const a171_0x4b42=['../../rediscache','register','./dashboard.socket'];(function(_0x5a7cff,_0x4b42db){const _0x22c7c7=function(_0x124345){while(--_0x124345){_0x5a7cff['push'](_0x5a7cff['shift']());}};_0x22c7c7(++_0x4b42db);}(a171_0x4b42,0x68));const a171_0x22c7=function(_0x5a7cff,_0x4b42db){_0x5a7cff=_0x5a7cff-0x0;let _0x22c7c7=a171_0x4b42[_0x5a7cff];return _0x22c7c7;};const _0x53c15a=a171_0x22c7;'use strict';const {getSocket}=require(_0x53c15a('0x1')),socket=getSocket();require(_0x53c15a('0x0'))[_0x53c15a('0x2')](socket); \ No newline at end of file +const a171_0x19ba=['register','../../rediscache','./dashboard.socket'];(function(_0x1355b8,_0x19baa9){const _0x1a9b5e=function(_0x32f09c){while(--_0x32f09c){_0x1355b8['push'](_0x1355b8['shift']());}};_0x1a9b5e(++_0x19baa9);}(a171_0x19ba,0x11a));const a171_0x1a9b=function(_0x1355b8,_0x19baa9){_0x1355b8=_0x1355b8-0x0;let _0x1a9b5e=a171_0x19ba[_0x1355b8];return _0x1a9b5e;};const _0x1ad5dd=a171_0x1a9b;'use strict';const {getSocket}=require(_0x1ad5dd('0x1')),socket=getSocket();require(_0x1ad5dd('0x2'))[_0x1ad5dd('0x0')](socket); \ No newline at end of file diff --git a/server/api/dashboard/dashboard.socket.js b/server/api/dashboard/dashboard.socket.js index f8c79ab..5bb2517 100644 --- a/server/api/dashboard/dashboard.socket.js +++ b/server/api/dashboard/dashboard.socket.js @@ -1 +1 @@ -const a172_0x4bc7=['length','save','remove','dashboard:','./dashboard.events','update','register'];(function(_0x44e608,_0x4bc794){const _0x14730b=function(_0x2eaaf8){while(--_0x2eaaf8){_0x44e608['push'](_0x44e608['shift']());}};_0x14730b(++_0x4bc794);}(a172_0x4bc7,0xd8));const a172_0x1473=function(_0x44e608,_0x4bc794){_0x44e608=_0x44e608-0x0;let _0x14730b=a172_0x4bc7[_0x44e608];return _0x14730b;};const _0x5e4445=a172_0x1473;'use strict';const DashboardEvents=require(_0x5e4445('0x5')),events=[_0x5e4445('0x2'),_0x5e4445('0x3'),_0x5e4445('0x6')];function createListener(_0x2eaaf8,_0x4aa56f){return function(_0x575257){_0x4aa56f['emit'](_0x2eaaf8,_0x575257);};}exports[_0x5e4445('0x0')]=function(_0x2752ae){const _0xa81cde=_0x5e4445;for(let _0xe928f8=0x0,_0x2de419=events[_0xa81cde('0x1')];_0xe928f8<_0x2de419;_0xe928f8++){const _0x1e2614=events[_0xe928f8],_0x57395e=createListener(_0xa81cde('0x4')+_0x1e2614,_0x2752ae);DashboardEvents['on'](_0x1e2614,_0x57395e);}}; \ No newline at end of file +const a172_0x51e4=['save','register','remove','./dashboard.events','dashboard:','emit'];(function(_0x3b424e,_0x51e497){const _0x595ebd=function(_0x1a6406){while(--_0x1a6406){_0x3b424e['push'](_0x3b424e['shift']());}};_0x595ebd(++_0x51e497);}(a172_0x51e4,0xb3));const a172_0x595e=function(_0x3b424e,_0x51e497){_0x3b424e=_0x3b424e-0x0;let _0x595ebd=a172_0x51e4[_0x3b424e];return _0x595ebd;};const _0xdefd44=a172_0x595e;'use strict';const DashboardEvents=require(_0xdefd44('0x4')),events=[_0xdefd44('0x1'),_0xdefd44('0x3'),'update'];function createListener(_0x1a6406,_0x2dd3a0){return function(_0x41562d){const _0x36806f=a172_0x595e;_0x2dd3a0[_0x36806f('0x0')](_0x1a6406,_0x41562d);};}exports[_0xdefd44('0x2')]=function(_0x1ad549){const _0x11696b=_0xdefd44;for(let _0x529dc0=0x0,_0x2e2115=events['length'];_0x529dc0<_0x2e2115;_0x529dc0++){const _0x4a5f0a=events[_0x529dc0],_0x4fb0be=createListener(_0x11696b('0x5')+_0x4a5f0a,_0x1ad549);DashboardEvents['on'](_0x4a5f0a,_0x4fb0be);}}; \ No newline at end of file diff --git a/server/api/dashboard/index.js b/server/api/dashboard/index.js index 722af85..3277fcb 100644 --- a/server/api/dashboard/index.js +++ b/server/api/dashboard/index.js @@ -1 +1 @@ -const a173_0x340f=['get','delete','./dashboard.controller','/:id/items','isAuthenticated','post','/:id','express','show','put','index','getItems','../../components/auth/service','create','exports'];(function(_0x713b02,_0x340f98){const _0x537794=function(_0x4743e5){while(--_0x4743e5){_0x713b02['push'](_0x713b02['shift']());}};_0x537794(++_0x340f98);}(a173_0x340f,0x1b5));const a173_0x5377=function(_0x713b02,_0x340f98){_0x713b02=_0x713b02-0x0;let _0x537794=a173_0x340f[_0x713b02];return _0x537794;};const _0xd91c22=a173_0x5377;'use strict';const express=require(_0xd91c22('0x5')),router=express['Router'](),auth=require(_0xd91c22('0xa')),controller=require(_0xd91c22('0x0'));router['get']('/',auth[_0xd91c22('0x2')](),controller[_0xd91c22('0x8')]),router[_0xd91c22('0xd')]('/:id',auth[_0xd91c22('0x2')](),controller[_0xd91c22('0x6')]),router[_0xd91c22('0xd')](_0xd91c22('0x1'),auth[_0xd91c22('0x2')](),controller[_0xd91c22('0x9')]),router[_0xd91c22('0x3')]('/',auth[_0xd91c22('0x2')](),controller[_0xd91c22('0xb')]),router[_0xd91c22('0x3')]('/:id/clone',auth[_0xd91c22('0x2')](),controller['clone']),router[_0xd91c22('0x3')](_0xd91c22('0x1'),auth[_0xd91c22('0x2')](),controller['addItem']),router[_0xd91c22('0x7')](_0xd91c22('0x4'),auth[_0xd91c22('0x2')](),controller['update']),router[_0xd91c22('0xe')](_0xd91c22('0x4'),auth[_0xd91c22('0x2')](),controller['destroy']),module[_0xd91c22('0xc')]=router; \ No newline at end of file +const a173_0x5c86=['/:id/clone','Router','clone','get','isAuthenticated','express','destroy','../../components/auth/service','/:id/items','./dashboard.controller','delete','index','exports','/:id','post','show'];(function(_0x5eef22,_0x5c86cc){const _0x53fdd5=function(_0x1b0715){while(--_0x1b0715){_0x5eef22['push'](_0x5eef22['shift']());}};_0x53fdd5(++_0x5c86cc);}(a173_0x5c86,0x69));const a173_0x53fd=function(_0x5eef22,_0x5c86cc){_0x5eef22=_0x5eef22-0x0;let _0x53fdd5=a173_0x5c86[_0x5eef22];return _0x53fdd5;};const _0x2801da=a173_0x53fd;'use strict';const express=require(_0x2801da('0xc')),router=express[_0x2801da('0x8')](),auth=require(_0x2801da('0xe')),controller=require(_0x2801da('0x0'));router[_0x2801da('0xa')]('/',auth[_0x2801da('0xb')](),controller[_0x2801da('0x2')]),router['get'](_0x2801da('0x4'),auth[_0x2801da('0xb')](),controller[_0x2801da('0x6')]),router['get']('/:id/items',auth[_0x2801da('0xb')](),controller['getItems']),router[_0x2801da('0x5')]('/',auth[_0x2801da('0xb')](),controller['create']),router[_0x2801da('0x5')](_0x2801da('0x7'),auth[_0x2801da('0xb')](),controller[_0x2801da('0x9')]),router[_0x2801da('0x5')](_0x2801da('0xf'),auth[_0x2801da('0xb')](),controller['addItem']),router['put'](_0x2801da('0x4'),auth[_0x2801da('0xb')](),controller['update']),router[_0x2801da('0x1')](_0x2801da('0x4'),auth[_0x2801da('0xb')](),controller[_0x2801da('0xd')]),module[_0x2801da('0x3')]=router; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.attributes.js b/server/api/dashboardItem/dashboardItem.attributes.js index 9989750..9e13662 100644 --- a/server/api/dashboardItem/dashboardItem.attributes.js +++ b/server/api/dashboardItem/dashboardItem.attributes.js @@ -1 +1 @@ -const a174_0x2dc9=['setDataValue','sequelize','attrs','INTEGER','stringify','exports','getDataValue','STRING','long','parse'];(function(_0x5600d9,_0x2dc928){const _0x299b81=function(_0x6dbf9a){while(--_0x6dbf9a){_0x5600d9['push'](_0x5600d9['shift']());}};_0x299b81(++_0x2dc928);}(a174_0x2dc9,0x138));const a174_0x299b=function(_0x5600d9,_0x2dc928){_0x5600d9=_0x5600d9-0x0;let _0x299b81=a174_0x2dc9[_0x5600d9];return _0x299b81;};const _0xb40277=a174_0x299b;'use strict';const Sequelize=require(_0xb40277('0x9'));module[_0xb40277('0x3')]={'title':{'type':Sequelize[_0xb40277('0x5')],'allowNull':![]},'type':{'type':Sequelize[_0xb40277('0x5')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize['TEXT'](_0xb40277('0x6')),'get':function(){const _0x1376ef=_0xb40277;try{return JSON[_0x1376ef('0x7')](this[_0x1376ef('0x4')](_0x1376ef('0x0')));}catch(_0x6dbf9a){return[];}},'set':function(_0x35e4d2){const _0x2f552b=_0xb40277;try{this[_0x2f552b('0x8')](_0x2f552b('0x0'),JSON['stringify'](_0x35e4d2));}catch(_0x45ed36){this[_0x2f552b('0x8')]('attrs',JSON[_0x2f552b('0x2')]([]));}}},'sizeX':{'type':Sequelize[_0xb40277('0x1')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0xb40277('0x1')]},'col':{'type':Sequelize['INTEGER']},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0xb40277('0x5')]}}; \ No newline at end of file +const a174_0x47b8=['setDataValue','STRING','#2196f3','stringify','INTEGER','attrs','parse','exports','long','getDataValue','#ffffff','TEXT'];(function(_0x3132f8,_0x47b85e){const _0x1cc4b9=function(_0x4e5667){while(--_0x4e5667){_0x3132f8['push'](_0x3132f8['shift']());}};_0x1cc4b9(++_0x47b85e);}(a174_0x47b8,0x157));const a174_0x1cc4=function(_0x3132f8,_0x47b85e){_0x3132f8=_0x3132f8-0x0;let _0x1cc4b9=a174_0x47b8[_0x3132f8];return _0x1cc4b9;};const _0x16e0a1=a174_0x1cc4;'use strict';const Sequelize=require('sequelize');module[_0x16e0a1('0x0')]={'title':{'type':Sequelize[_0x16e0a1('0x6')],'allowNull':![]},'type':{'type':Sequelize[_0x16e0a1('0x6')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x16e0a1('0x4')](_0x16e0a1('0x1')),'get':function(){const _0x1c579a=_0x16e0a1;try{return JSON[_0x1c579a('0xb')](this[_0x1c579a('0x2')](_0x1c579a('0xa')));}catch(_0x4e5667){return[];}},'set':function(_0x4b6006){const _0x6b8bfe=_0x16e0a1;try{this[_0x6b8bfe('0x5')]('attrs',JSON[_0x6b8bfe('0x8')](_0x4b6006));}catch(_0x352b96){this[_0x6b8bfe('0x5')](_0x6b8bfe('0xa'),JSON[_0x6b8bfe('0x8')]([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x16e0a1('0x9')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x16e0a1('0x9')]},'col':{'type':Sequelize[_0x16e0a1('0x9')]},'background':{'type':Sequelize[_0x16e0a1('0x6')],'allowNull':![],'defaultValue':_0x16e0a1('0x3'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x16e0a1('0x7'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x16e0a1('0x6')]}}; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.controller.js b/server/api/dashboardItem/dashboardItem.controller.js index d0dce79..86c6b4c 100644 --- a/server/api/dashboardItem/dashboardItem.controller.js +++ b/server/api/dashboardItem/dashboardItem.controller.js @@ -1 +1 @@ -const a175_0x4ef1=['attrHourFormat','value','attrFontSize','model','body','attrSerie3','lodash','name','api','includeAll','create','end','options','query','total','HH:mm:ss','attrTimezone','../../rediscache','./dashboardItem.socket','attrVoiceQueues','length','attrUrl','attributes','../../mysqldb','multibar-chart','update','attrSerie2','attrSerie1','custom','../../components/parsers/qs','reportType','findOne','send','attrReport','type','attrs','DashboardItem','keys','https://','error','destroy','fields','merge','attrMetric','web-report','include','register','then','attrRefresh','widgetAttributes:\x20%s','intersection','catch','counter','clock','params'];(function(_0x32fce2,_0x4ef146){const _0x543134=function(_0x1bf5fc){while(--_0x1bf5fc){_0x32fce2['push'](_0x32fce2['shift']());}};_0x543134(++_0x4ef146);}(a175_0x4ef1,0xf5));const a175_0x5431=function(_0x32fce2,_0x4ef146){_0x32fce2=_0x32fce2-0x0;let _0x543134=a175_0x4ef1[_0x32fce2];return _0x543134;};const _0x1dc21d=a175_0x5431;'use strict';const _=require(_0x1dc21d('0x24')),qs=require(_0x1dc21d('0x4')),logger=require('../../config/logger')(_0x1dc21d('0x26')),{getSocket}=require(_0x1dc21d('0x2f')),socket=getSocket(),db=require(_0x1dc21d('0x35'))['db'];require(_0x1dc21d('0x30'))[_0x1dc21d('0x15')](socket);function respondWithResult(_0x1bf5fc,_0x4a9eb5){return _0x4a9eb5=_0x4a9eb5||0xc8,function(_0x19fced){if(_0x19fced)return _0x1bf5fc['status'](_0x4a9eb5)['json'](_0x19fced);};}function saveUpdates(_0x2e608d){return function(_0x1a7579){const _0x1e6ac0=a175_0x5431;if(_0x1a7579)return _0x1a7579[_0x1e6ac0('0x0')](_0x2e608d)['then'](function(_0x27c0ee){return _0x27c0ee;});return null;};}function removeEntity(_0x587089){return function(_0x1b6b9d){const _0xc7562d=a175_0x5431;if(_0x1b6b9d)return _0x1b6b9d[_0xc7562d('0xf')]()[_0xc7562d('0x16')](function(){const _0x25bf36=_0xc7562d;_0x587089['status'](0xcc)[_0x25bf36('0x29')]();});};}function handleEntityNotFound(_0x5a382e){return function(_0x270a1f){return!_0x270a1f&&_0x5a382e['sendStatus'](0x194),_0x270a1f;};}function handleError(_0x1b13de,_0x7f7b30){return _0x7f7b30=_0x7f7b30||0x1f4,function(_0xea80bd){const _0x2accf1=a175_0x5431;logger[_0x2accf1('0xe')](_0xea80bd['stack']),_0xea80bd['name']&&delete _0xea80bd[_0x2accf1('0x25')],_0x1b13de['status'](_0x7f7b30)[_0x2accf1('0x7')](_0xea80bd);};}exports['show']=function(_0x404047,_0xe1d83d){const _0x4afb83=_0x1dc21d;let _0x48a556={'raw':![],'where':{'id':_0x404047['params']['id']}};const _0x5c30f1={};return _0x5c30f1[_0x4afb83('0x21')]=_[_0x4afb83('0xc')](db[_0x4afb83('0xb')]['rawAttributes']),_0x5c30f1[_0x4afb83('0x2b')]=_[_0x4afb83('0xc')](_0x404047[_0x4afb83('0x2b')]),_0x5c30f1['filters']=_[_0x4afb83('0x19')](_0x5c30f1[_0x4afb83('0x21')],_0x5c30f1[_0x4afb83('0x2b')]),_0x48a556[_0x4afb83('0x34')]=_[_0x4afb83('0x19')](_0x5c30f1[_0x4afb83('0x21')],qs[_0x4afb83('0x10')](_0x404047[_0x4afb83('0x2b')]['fields'])),_0x48a556[_0x4afb83('0x34')]=_0x48a556[_0x4afb83('0x34')][_0x4afb83('0x32')]?_0x48a556['attributes']:_0x5c30f1[_0x4afb83('0x21')],_0x404047[_0x4afb83('0x2b')][_0x4afb83('0x27')]&&(_0x48a556[_0x4afb83('0x14')]=[{'all':!![]}]),_0x48a556=_[_0x4afb83('0x11')]({},_0x48a556,_0x404047[_0x4afb83('0x2a')]),db[_0x4afb83('0xb')][_0x4afb83('0x6')](_0x48a556)['then'](handleEntityNotFound(_0xe1d83d,null))['then'](respondWithResult(_0xe1d83d,null))['catch'](handleError(_0xe1d83d,null));},exports[_0x1dc21d('0xf')]=function(_0x19c002,_0x43b701){const _0x597b3e=_0x1dc21d;return db[_0x597b3e('0xb')]['findOne']({'where':{'id':_0x19c002[_0x597b3e('0x1d')]['id']}})[_0x597b3e('0x16')](handleEntityNotFound(_0x43b701,null))[_0x597b3e('0x16')](removeEntity(_0x43b701,null))[_0x597b3e('0x1a')](handleError(_0x43b701,null));};function widgetAttributes(_0x40e9a2){const _0x3d7124=_0x1dc21d;try{switch(_0x40e9a2[_0x3d7124('0x9')]){case'iframe':return[{'name':_0x3d7124('0x33'),'value':_0x40e9a2[_0x3d7124('0x33')]||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2[_0x3d7124('0xa')][0x0]?_0x40e9a2[_0x3d7124('0xa')][0x0][_0x3d7124('0x1f')]:undefined)||_0x3d7124('0xd')}];case _0x3d7124('0x3'):return[{'name':'attrPath','value':_0x40e9a2['attrPath']||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2[_0x3d7124('0xa')][0x0]?_0x40e9a2[_0x3d7124('0xa')][0x0][_0x3d7124('0x1f')]:undefined)||''}];case _0x3d7124('0x1c'):return[{'name':_0x3d7124('0x1e'),'value':_0x40e9a2[_0x3d7124('0x1e')]||(_0x40e9a2['attrs']&&_0x40e9a2[_0x3d7124('0xa')][0x0]?_0x40e9a2[_0x3d7124('0xa')][0x0]['value']:undefined)||_0x3d7124('0x2d')},{'name':_0x3d7124('0x2e'),'value':_0x40e9a2[_0x3d7124('0x2e')]||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2['attrs'][0x1]?_0x40e9a2['attrs'][0x1][_0x3d7124('0x1f')]:undefined)||'0.00'},{'name':_0x3d7124('0x20'),'value':_0x40e9a2[_0x3d7124('0x20')]||(_0x40e9a2['attrs']&&_0x40e9a2[_0x3d7124('0xa')][0x2]?_0x40e9a2[_0x3d7124('0xa')][0x2][_0x3d7124('0x1f')]:undefined)||0xc}];case _0x3d7124('0x1b'):return[{'name':_0x3d7124('0x12'),'value':_0x40e9a2[_0x3d7124('0x12')]||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2[_0x3d7124('0xa')][0x0]?_0x40e9a2[_0x3d7124('0xa')][0x0][_0x3d7124('0x1f')]:undefined)||_0x3d7124('0x2c')},{'name':_0x3d7124('0x31'),'value':_0x40e9a2['attrVoiceQueues']||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2[_0x3d7124('0xa')][0x1]?_0x40e9a2[_0x3d7124('0xa')][0x1][_0x3d7124('0x1f')]:undefined)||[]},{'name':_0x3d7124('0x20'),'value':_0x40e9a2[_0x3d7124('0x20')]||(_0x40e9a2['attrs']&&_0x40e9a2[_0x3d7124('0xa')][0x2]?_0x40e9a2[_0x3d7124('0xa')][0x2][_0x3d7124('0x1f')]:undefined)||0x14}];case _0x3d7124('0x36'):case'pie-chart':return[{'name':_0x3d7124('0x2'),'value':_0x40e9a2['attrSerie1']||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2[_0x3d7124('0xa')][0x0]?_0x40e9a2['attrs'][0x0]['value']:undefined)||_0x3d7124('0x2c')},{'name':_0x3d7124('0x1'),'value':_0x40e9a2[_0x3d7124('0x1')]||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2[_0x3d7124('0xa')][0x1]?_0x40e9a2[_0x3d7124('0xa')][0x1][_0x3d7124('0x1f')]:undefined)||null},{'name':_0x3d7124('0x23'),'value':_0x40e9a2[_0x3d7124('0x23')]||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2['attrs'][0x2]?_0x40e9a2[_0x3d7124('0xa')][0x2][_0x3d7124('0x1f')]:undefined)||null},{'name':'attrVoiceQueues','value':_0x40e9a2['attrVoiceQueues']||(_0x40e9a2['attrs']&&_0x40e9a2['attrs'][0x3]?_0x40e9a2[_0x3d7124('0xa')][0x3]['value']:undefined)||[]}];case _0x3d7124('0x13'):return[{'name':_0x3d7124('0x8'),'type':_0x40e9a2[_0x3d7124('0x5')]||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2[_0x3d7124('0xa')][0x0]?_0x40e9a2[_0x3d7124('0xa')][0x0][_0x3d7124('0x9')]:undefined)||null,'value':_0x40e9a2[_0x3d7124('0x8')]||(_0x40e9a2['attrs']&&_0x40e9a2['attrs'][0x0]?_0x40e9a2[_0x3d7124('0xa')][0x0]['value']:undefined)||null},{'name':'attrRefresh','value':_0x40e9a2[_0x3d7124('0x17')]||(_0x40e9a2[_0x3d7124('0xa')]&&_0x40e9a2[_0x3d7124('0xa')][0x1]?_0x40e9a2[_0x3d7124('0xa')][0x1][_0x3d7124('0x1f')]:undefined)||0x0}];default:return[];}}catch(_0x18499e){return logger[_0x3d7124('0xe')](_0x3d7124('0x18'),JSON['stringify'](_0x18499e)),[];}}exports[_0x1dc21d('0x28')]=function(_0x2581c7,_0x3e5d10){const _0x1b79cf=_0x1dc21d;return _0x2581c7[_0x1b79cf('0x22')]&&(_0x2581c7[_0x1b79cf('0x22')]['attrs']=widgetAttributes(_0x2581c7[_0x1b79cf('0x22')])),db[_0x1b79cf('0xb')][_0x1b79cf('0x28')](_0x2581c7[_0x1b79cf('0x22')],{})['then'](respondWithResult(_0x3e5d10,0xc9))[_0x1b79cf('0x1a')](handleError(_0x3e5d10,null));},exports[_0x1dc21d('0x0')]=function(_0x3e626b,_0x373287){const _0x414548=_0x1dc21d;return _0x3e626b['body']['id']&&delete _0x3e626b[_0x414548('0x22')]['id'],_0x3e626b['body'][_0x414548('0xa')]=widgetAttributes(_0x3e626b[_0x414548('0x22')]),db[_0x414548('0xb')]['findOne']({'where':{'id':_0x3e626b[_0x414548('0x1d')]['id']}})[_0x414548('0x16')](handleEntityNotFound(_0x373287,null))['then'](saveUpdates(_0x3e626b[_0x414548('0x22')],null))[_0x414548('0x16')](respondWithResult(_0x373287,null))[_0x414548('0x1a')](handleError(_0x373287,null));}; \ No newline at end of file +const a175_0x2a3c=['0.00','attrs','attrFontSize','update','sendStatus','then','body','show','web-report','pie-chart','params','includeAll','attrHourFormat','catch','options','length','custom','status','https://','../../mysqldb','total','attributes','destroy','stack','attrUrl','query','end','create','type','clock','send','attrReport','model','attrSerie1','error','attrPath','../../components/parsers/qs','intersection','keys','DashboardItem','multibar-chart','attrTimezone','attrSerie2','value','fields','name','attrRefresh','findOne','merge','lodash','attrVoiceQueues','attrMetric','HH:mm:ss','../../rediscache','./dashboardItem.socket','filters'];(function(_0x58f5f6,_0x2a3cf3){const _0x572cf2=function(_0x9a200){while(--_0x9a200){_0x58f5f6['push'](_0x58f5f6['shift']());}};_0x572cf2(++_0x2a3cf3);}(a175_0x2a3c,0x1e7));const a175_0x572c=function(_0x58f5f6,_0x2a3cf3){_0x58f5f6=_0x58f5f6-0x0;let _0x572cf2=a175_0x2a3c[_0x58f5f6];return _0x572cf2;};const _0x2b538f=a175_0x572c;'use strict';const _=require(_0x2b538f('0xa')),qs=require(_0x2b538f('0x35')),logger=require('../../config/logger')('api'),{getSocket}=require(_0x2b538f('0xe')),socket=getSocket(),db=require(_0x2b538f('0x24'))['db'];require(_0x2b538f('0xf'))['register'](socket);function respondWithResult(_0x9a200,_0x449541){return _0x449541=_0x449541||0xc8,function(_0x1ce8e3){const _0x3296fb=a175_0x572c;if(_0x1ce8e3)return _0x9a200[_0x3296fb('0x22')](_0x449541)['json'](_0x1ce8e3);};}function saveUpdates(_0x218f6f){return function(_0x31826c){const _0xbb20e4=a175_0x572c;if(_0x31826c)return _0x31826c[_0xbb20e4('0x14')](_0x218f6f)[_0xbb20e4('0x16')](function(_0x5d1f9f){return _0x5d1f9f;});return null;};}function removeEntity(_0xd3f8c2){return function(_0x58652c){const _0x3b950b=a175_0x572c;if(_0x58652c)return _0x58652c[_0x3b950b('0x27')]()['then'](function(){const _0x1fdc4f=_0x3b950b;_0xd3f8c2[_0x1fdc4f('0x22')](0xcc)[_0x1fdc4f('0x2b')]();});};}function handleEntityNotFound(_0x70c407){return function(_0x3cb58c){const _0x2f5952=a175_0x572c;return!_0x3cb58c&&_0x70c407[_0x2f5952('0x15')](0x194),_0x3cb58c;};}function handleError(_0x301a8e,_0x41f0e6){return _0x41f0e6=_0x41f0e6||0x1f4,function(_0x4f3cce){const _0x3161d6=a175_0x572c;logger[_0x3161d6('0x33')](_0x4f3cce[_0x3161d6('0x28')]),_0x4f3cce['name']&&delete _0x4f3cce[_0x3161d6('0x6')],_0x301a8e[_0x3161d6('0x22')](_0x41f0e6)[_0x3161d6('0x2f')](_0x4f3cce);};}exports[_0x2b538f('0x18')]=function(_0x24e5f2,_0x1128e3){const _0x3ba739=_0x2b538f;let _0x8924ac={'raw':![],'where':{'id':_0x24e5f2[_0x3ba739('0x1b')]['id']}};const _0x193505={};return _0x193505[_0x3ba739('0x31')]=_[_0x3ba739('0x37')](db[_0x3ba739('0x0')]['rawAttributes']),_0x193505[_0x3ba739('0x2a')]=_[_0x3ba739('0x37')](_0x24e5f2[_0x3ba739('0x2a')]),_0x193505[_0x3ba739('0x10')]=_['intersection'](_0x193505[_0x3ba739('0x31')],_0x193505[_0x3ba739('0x2a')]),_0x8924ac[_0x3ba739('0x26')]=_[_0x3ba739('0x36')](_0x193505[_0x3ba739('0x31')],qs[_0x3ba739('0x5')](_0x24e5f2[_0x3ba739('0x2a')]['fields'])),_0x8924ac[_0x3ba739('0x26')]=_0x8924ac[_0x3ba739('0x26')][_0x3ba739('0x20')]?_0x8924ac['attributes']:_0x193505[_0x3ba739('0x31')],_0x24e5f2[_0x3ba739('0x2a')][_0x3ba739('0x1c')]&&(_0x8924ac['include']=[{'all':!![]}]),_0x8924ac=_[_0x3ba739('0x9')]({},_0x8924ac,_0x24e5f2[_0x3ba739('0x1f')]),db[_0x3ba739('0x0')][_0x3ba739('0x8')](_0x8924ac)[_0x3ba739('0x16')](handleEntityNotFound(_0x1128e3,null))[_0x3ba739('0x16')](respondWithResult(_0x1128e3,null))[_0x3ba739('0x1e')](handleError(_0x1128e3,null));},exports[_0x2b538f('0x27')]=function(_0x4f6c87,_0x945d93){const _0x1c574b=_0x2b538f;return db[_0x1c574b('0x0')][_0x1c574b('0x8')]({'where':{'id':_0x4f6c87[_0x1c574b('0x1b')]['id']}})[_0x1c574b('0x16')](handleEntityNotFound(_0x945d93,null))[_0x1c574b('0x16')](removeEntity(_0x945d93,null))['catch'](handleError(_0x945d93,null));};function widgetAttributes(_0x59569b){const _0x5bb25d=_0x2b538f;try{switch(_0x59569b[_0x5bb25d('0x2d')]){case'iframe':return[{'name':_0x5bb25d('0x29'),'value':_0x59569b[_0x5bb25d('0x29')]||(_0x59569b['attrs']&&_0x59569b[_0x5bb25d('0x12')][0x0]?_0x59569b[_0x5bb25d('0x12')][0x0][_0x5bb25d('0x4')]:undefined)||_0x5bb25d('0x23')}];case _0x5bb25d('0x21'):return[{'name':_0x5bb25d('0x34'),'value':_0x59569b['attrPath']||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b[_0x5bb25d('0x12')][0x0]?_0x59569b['attrs'][0x0]['value']:undefined)||''}];case _0x5bb25d('0x2e'):return[{'name':'attrHourFormat','value':_0x59569b[_0x5bb25d('0x1d')]||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b[_0x5bb25d('0x12')][0x0]?_0x59569b['attrs'][0x0][_0x5bb25d('0x4')]:undefined)||_0x5bb25d('0xd')},{'name':'attrTimezone','value':_0x59569b[_0x5bb25d('0x2')]||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b[_0x5bb25d('0x12')][0x1]?_0x59569b[_0x5bb25d('0x12')][0x1]['value']:undefined)||_0x5bb25d('0x11')},{'name':_0x5bb25d('0x13'),'value':_0x59569b['attrFontSize']||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b[_0x5bb25d('0x12')][0x2]?_0x59569b[_0x5bb25d('0x12')][0x2][_0x5bb25d('0x4')]:undefined)||0xc}];case'counter':return[{'name':'attrMetric','value':_0x59569b[_0x5bb25d('0xc')]||(_0x59569b['attrs']&&_0x59569b[_0x5bb25d('0x12')][0x0]?_0x59569b[_0x5bb25d('0x12')][0x0]['value']:undefined)||'total'},{'name':_0x5bb25d('0xb'),'value':_0x59569b['attrVoiceQueues']||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b['attrs'][0x1]?_0x59569b[_0x5bb25d('0x12')][0x1]['value']:undefined)||[]},{'name':'attrFontSize','value':_0x59569b['attrFontSize']||(_0x59569b['attrs']&&_0x59569b[_0x5bb25d('0x12')][0x2]?_0x59569b[_0x5bb25d('0x12')][0x2]['value']:undefined)||0x14}];case _0x5bb25d('0x1'):case _0x5bb25d('0x1a'):return[{'name':_0x5bb25d('0x32'),'value':_0x59569b[_0x5bb25d('0x32')]||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b[_0x5bb25d('0x12')][0x0]?_0x59569b[_0x5bb25d('0x12')][0x0][_0x5bb25d('0x4')]:undefined)||_0x5bb25d('0x25')},{'name':_0x5bb25d('0x3'),'value':_0x59569b[_0x5bb25d('0x3')]||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b['attrs'][0x1]?_0x59569b['attrs'][0x1][_0x5bb25d('0x4')]:undefined)||null},{'name':'attrSerie3','value':_0x59569b['attrSerie3']||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b[_0x5bb25d('0x12')][0x2]?_0x59569b['attrs'][0x2][_0x5bb25d('0x4')]:undefined)||null},{'name':_0x5bb25d('0xb'),'value':_0x59569b[_0x5bb25d('0xb')]||(_0x59569b['attrs']&&_0x59569b[_0x5bb25d('0x12')][0x3]?_0x59569b[_0x5bb25d('0x12')][0x3][_0x5bb25d('0x4')]:undefined)||[]}];case _0x5bb25d('0x19'):return[{'name':_0x5bb25d('0x30'),'type':_0x59569b['reportType']||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b['attrs'][0x0]?_0x59569b['attrs'][0x0][_0x5bb25d('0x2d')]:undefined)||null,'value':_0x59569b[_0x5bb25d('0x30')]||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b[_0x5bb25d('0x12')][0x0]?_0x59569b[_0x5bb25d('0x12')][0x0][_0x5bb25d('0x4')]:undefined)||null},{'name':'attrRefresh','value':_0x59569b[_0x5bb25d('0x7')]||(_0x59569b[_0x5bb25d('0x12')]&&_0x59569b[_0x5bb25d('0x12')][0x1]?_0x59569b[_0x5bb25d('0x12')][0x1]['value']:undefined)||0x0}];default:return[];}}catch(_0x3896d4){return logger[_0x5bb25d('0x33')]('widgetAttributes:\x20%s',JSON['stringify'](_0x3896d4)),[];}}exports[_0x2b538f('0x2c')]=function(_0x394ab7,_0xc34655){const _0x22af01=_0x2b538f;return _0x394ab7[_0x22af01('0x17')]&&(_0x394ab7[_0x22af01('0x17')][_0x22af01('0x12')]=widgetAttributes(_0x394ab7[_0x22af01('0x17')])),db[_0x22af01('0x0')][_0x22af01('0x2c')](_0x394ab7[_0x22af01('0x17')],{})[_0x22af01('0x16')](respondWithResult(_0xc34655,0xc9))[_0x22af01('0x1e')](handleError(_0xc34655,null));},exports[_0x2b538f('0x14')]=function(_0x40c59b,_0x41c2d0){const _0x565ab8=_0x2b538f;return _0x40c59b['body']['id']&&delete _0x40c59b[_0x565ab8('0x17')]['id'],_0x40c59b[_0x565ab8('0x17')]['attrs']=widgetAttributes(_0x40c59b[_0x565ab8('0x17')]),db['DashboardItem'][_0x565ab8('0x8')]({'where':{'id':_0x40c59b[_0x565ab8('0x1b')]['id']}})[_0x565ab8('0x16')](handleEntityNotFound(_0x41c2d0,null))[_0x565ab8('0x16')](saveUpdates(_0x40c59b[_0x565ab8('0x17')],null))['then'](respondWithResult(_0x41c2d0,null))['catch'](handleError(_0x41c2d0,null));}; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.events.js b/server/api/dashboardItem/dashboardItem.events.js index c33be8b..3b77558 100644 --- a/server/api/dashboardItem/dashboardItem.events.js +++ b/server/api/dashboardItem/dashboardItem.events.js @@ -1 +1 @@ -const a176_0x2f62=['remove','setMaxListeners','update','addHook','undefined','exports','emit','DashboardItem','save'];(function(_0x50ae9c,_0x2f62f9){const _0x57f4a8=function(_0x20dc45){while(--_0x20dc45){_0x50ae9c['push'](_0x50ae9c['shift']());}};_0x57f4a8(++_0x2f62f9);}(a176_0x2f62,0xe5));const a176_0x57f4=function(_0x50ae9c,_0x2f62f9){_0x50ae9c=_0x50ae9c-0x0;let _0x57f4a8=a176_0x2f62[_0x50ae9c];return _0x57f4a8;};const _0x26c13c=a176_0x57f4;'use strict';const EventEmitter=require('events'),DashboardItem=require('../../mysqldb')['db'][_0x26c13c('0x3')],DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x26c13c('0x6')](0x0);const events={'afterCreate':_0x26c13c('0x4'),'afterUpdate':_0x26c13c('0x7'),'afterDestroy':_0x26c13c('0x5')};function emitEvent(_0x20dc45){return function(_0x26a3c6){const _0x12f6df=a176_0x57f4;DashboardItemEvents[_0x12f6df('0x2')](_0x20dc45+':'+_0x26a3c6['id'],_0x26a3c6),DashboardItemEvents[_0x12f6df('0x2')](_0x20dc45,_0x26a3c6);};}for(const e in events){if(typeof events[e]!==_0x26c13c('0x0')){const event=events[e];DashboardItem[_0x26c13c('0x8')](e,emitEvent(event));}}module[_0x26c13c('0x1')]=DashboardItemEvents; \ No newline at end of file +const a176_0x2c69=['DashboardItem','../../mysqldb','emit','events','save','addHook','update','remove','undefined'];(function(_0x2c56fe,_0x2c6964){const _0x50f9f4=function(_0x4edd40){while(--_0x4edd40){_0x2c56fe['push'](_0x2c56fe['shift']());}};_0x50f9f4(++_0x2c6964);}(a176_0x2c69,0x194));const a176_0x50f9=function(_0x2c56fe,_0x2c6964){_0x2c56fe=_0x2c56fe-0x0;let _0x50f9f4=a176_0x2c69[_0x2c56fe];return _0x50f9f4;};const _0x29cc2a=a176_0x50f9;'use strict';const EventEmitter=require(_0x29cc2a('0x4')),DashboardItem=require(_0x29cc2a('0x2'))['db'][_0x29cc2a('0x1')],DashboardItemEvents=new EventEmitter();DashboardItemEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x29cc2a('0x5'),'afterUpdate':_0x29cc2a('0x7'),'afterDestroy':_0x29cc2a('0x8')};function emitEvent(_0x4edd40){return function(_0x3dc94c){const _0x481226=a176_0x50f9;DashboardItemEvents[_0x481226('0x3')](_0x4edd40+':'+_0x3dc94c['id'],_0x3dc94c),DashboardItemEvents['emit'](_0x4edd40,_0x3dc94c);};}for(const e in events){if(typeof events[e]!==_0x29cc2a('0x0')){const event=events[e];DashboardItem[_0x29cc2a('0x6')](e,emitEvent(event));}}module['exports']=DashboardItemEvents; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.model.js b/server/api/dashboardItem/dashboardItem.model.js index ed7ce1a..44303e9 100644 --- a/server/api/dashboardItem/dashboardItem.model.js +++ b/server/api/dashboardItem/dashboardItem.model.js @@ -1 +1 @@ -const a177_0x1d6c=['DashboardItem','./dashboardItem.attributes','define','exports','dashboard_items'];(function(_0x319a87,_0x1d6c38){const _0x2471b4=function(_0x4ef4a9){while(--_0x4ef4a9){_0x319a87['push'](_0x319a87['shift']());}};_0x2471b4(++_0x1d6c38);}(a177_0x1d6c,0xfe));const a177_0x2471=function(_0x319a87,_0x1d6c38){_0x319a87=_0x319a87-0x0;let _0x2471b4=a177_0x1d6c[_0x319a87];return _0x2471b4;};const _0x42aed9=a177_0x2471;'use strict';const attributes=require(_0x42aed9('0x2'));module[_0x42aed9('0x4')]=function(_0x4ef4a9){const _0x2e9ddb=_0x42aed9,_0x309d62=_0x4ef4a9[_0x2e9ddb('0x3')](_0x2e9ddb('0x1'),attributes,{'tableName':_0x2e9ddb('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x309d62;}; \ No newline at end of file +const a177_0xe492=['./dashboardItem.attributes','exports'];(function(_0xb4624a,_0xe492d0){const _0x2a6de6=function(_0x175450){while(--_0x175450){_0xb4624a['push'](_0xb4624a['shift']());}};_0x2a6de6(++_0xe492d0);}(a177_0xe492,0x72));const a177_0x2a6d=function(_0xb4624a,_0xe492d0){_0xb4624a=_0xb4624a-0x0;let _0x2a6de6=a177_0xe492[_0xb4624a];return _0x2a6de6;};const _0x11fa1b=a177_0x2a6d;'use strict';const attributes=require(_0x11fa1b('0x0'));module[_0x11fa1b('0x1')]=function(_0x175450){const _0x25fce8=_0x175450['define']('DashboardItem',attributes,{'tableName':'dashboard_items','paranoid':![],'indexes':[],'timestamps':!![]});return _0x25fce8;}; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.rpc.js b/server/api/dashboardItem/dashboardItem.rpc.js index ca2cc5e..ad2b08e 100644 --- a/server/api/dashboardItem/dashboardItem.rpc.js +++ b/server/api/dashboardItem/dashboardItem.rpc.js @@ -1 +1 @@ -const a178_0x344a=['register','./dashboardItem.socket'];(function(_0x41499d,_0x344a5c){const _0x54b98e=function(_0x517449){while(--_0x517449){_0x41499d['push'](_0x41499d['shift']());}};_0x54b98e(++_0x344a5c);}(a178_0x344a,0x1d9));const a178_0x54b9=function(_0x41499d,_0x344a5c){_0x41499d=_0x41499d-0x0;let _0x54b98e=a178_0x344a[_0x41499d];return _0x54b98e;};const _0x2647d8=a178_0x54b9;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x2647d8('0x0'))[_0x2647d8('0x1')](socket); \ No newline at end of file +const a178_0x28c5=['../../rediscache','./dashboardItem.socket'];(function(_0xd33fc3,_0x28c526){const _0x255f1a=function(_0x2a7fb2){while(--_0x2a7fb2){_0xd33fc3['push'](_0xd33fc3['shift']());}};_0x255f1a(++_0x28c526);}(a178_0x28c5,0x1b0));const a178_0x255f=function(_0xd33fc3,_0x28c526){_0xd33fc3=_0xd33fc3-0x0;let _0x255f1a=a178_0x28c5[_0xd33fc3];return _0x255f1a;};const _0x2c4ce9=a178_0x255f;'use strict';const {getSocket}=require(_0x2c4ce9('0x0')),socket=getSocket();require(_0x2c4ce9('0x1'))['register'](socket); \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.socket.js b/server/api/dashboardItem/dashboardItem.socket.js index 08f3e49..9ec4fb8 100644 --- a/server/api/dashboardItem/dashboardItem.socket.js +++ b/server/api/dashboardItem/dashboardItem.socket.js @@ -1 +1 @@ -const a179_0x2df8=['remove','./dashboardItem.events','save','register','update','emit','length'];(function(_0xab7e1a,_0x2df86a){const _0x19a3ca=function(_0x3c11ae){while(--_0x3c11ae){_0xab7e1a['push'](_0xab7e1a['shift']());}};_0x19a3ca(++_0x2df86a);}(a179_0x2df8,0x17f));const a179_0x19a3=function(_0xab7e1a,_0x2df86a){_0xab7e1a=_0xab7e1a-0x0;let _0x19a3ca=a179_0x2df8[_0xab7e1a];return _0x19a3ca;};const _0x5c9df8=a179_0x19a3;'use strict';const DashboardItemEvents=require(_0x5c9df8('0x3')),events=[_0x5c9df8('0x4'),_0x5c9df8('0x2'),_0x5c9df8('0x6')];function createListener(_0x3c11ae,_0x414f72){return function(_0x322ad0){const _0x395d07=a179_0x19a3;_0x414f72[_0x395d07('0x0')](_0x3c11ae,_0x322ad0);};}exports[_0x5c9df8('0x5')]=function(_0x3361ad){const _0xcfb674=_0x5c9df8;for(let _0x48ef3a=0x0,_0x27bc9a=events[_0xcfb674('0x1')];_0x48ef3a<_0x27bc9a;_0x48ef3a++){const _0x4ec20c=events[_0x48ef3a],_0x22261a=createListener('dashboardItem:'+_0x4ec20c,_0x3361ad);DashboardItemEvents['on'](_0x4ec20c,_0x22261a);}}; \ No newline at end of file +const a179_0x1f7c=['./dashboardItem.events','dashboardItem:','register','remove','update','emit'];(function(_0x530427,_0x1f7c7e){const _0x2ff0ff=function(_0xcedd5b){while(--_0xcedd5b){_0x530427['push'](_0x530427['shift']());}};_0x2ff0ff(++_0x1f7c7e);}(a179_0x1f7c,0xbd));const a179_0x2ff0=function(_0x530427,_0x1f7c7e){_0x530427=_0x530427-0x0;let _0x2ff0ff=a179_0x1f7c[_0x530427];return _0x2ff0ff;};const _0x415775=a179_0x2ff0;'use strict';const DashboardItemEvents=require(_0x415775('0x3')),events=['save',_0x415775('0x0'),_0x415775('0x1')];function createListener(_0xcedd5b,_0x35e5e2){return function(_0x26a153){const _0x4f907e=a179_0x2ff0;_0x35e5e2[_0x4f907e('0x2')](_0xcedd5b,_0x26a153);};}exports[_0x415775('0x5')]=function(_0x46a066){const _0x207ce2=_0x415775;for(let _0x40e440=0x0,_0x2381ee=events['length'];_0x40e440<_0x2381ee;_0x40e440++){const _0x2999fd=events[_0x40e440],_0x26a826=createListener(_0x207ce2('0x4')+_0x2999fd,_0x46a066);DashboardItemEvents['on'](_0x2999fd,_0x26a826);}}; \ No newline at end of file diff --git a/server/api/dashboardItem/index.js b/server/api/dashboardItem/index.js index 3ea562e..b5436cd 100644 --- a/server/api/dashboardItem/index.js +++ b/server/api/dashboardItem/index.js @@ -1 +1 @@ -const a180_0x5a3a=['destroy','exports','express','put','create','/:id','./dashboardItem.controller','show','update','../../components/auth/service','post','delete','get','isAuthenticated'];(function(_0x4184b9,_0x5a3a23){const _0x20e984=function(_0x759181){while(--_0x759181){_0x4184b9['push'](_0x4184b9['shift']());}};_0x20e984(++_0x5a3a23);}(a180_0x5a3a,0x1ae));const a180_0x20e9=function(_0x4184b9,_0x5a3a23){_0x4184b9=_0x4184b9-0x0;let _0x20e984=a180_0x5a3a[_0x4184b9];return _0x20e984;};const _0x30687b=a180_0x20e9;'use strict';const express=require(_0x30687b('0x6')),router=express['Router'](),auth=require(_0x30687b('0xd')),controller=require(_0x30687b('0xa'));router[_0x30687b('0x2')](_0x30687b('0x9'),auth['isAuthenticated'](),controller[_0x30687b('0xb')]),router[_0x30687b('0x0')]('/',auth[_0x30687b('0x3')](),controller[_0x30687b('0x8')]),router[_0x30687b('0x7')](_0x30687b('0x9'),auth[_0x30687b('0x3')](),controller[_0x30687b('0xc')]),router[_0x30687b('0x1')]('/:id',auth[_0x30687b('0x3')](),controller[_0x30687b('0x4')]),module[_0x30687b('0x5')]=router; \ No newline at end of file +const a180_0x3ac9=['destroy','express','post','/:id','isAuthenticated','show','get','delete','../../components/auth/service','./dashboardItem.controller'];(function(_0x17efa4,_0x3ac948){const _0x3c0cb1=function(_0x4070ee){while(--_0x4070ee){_0x17efa4['push'](_0x17efa4['shift']());}};_0x3c0cb1(++_0x3ac948);}(a180_0x3ac9,0xf7));const a180_0x3c0c=function(_0x17efa4,_0x3ac948){_0x17efa4=_0x17efa4-0x0;let _0x3c0cb1=a180_0x3ac9[_0x17efa4];return _0x3c0cb1;};const _0x63c01d=a180_0x3c0c;'use strict';const express=require(_0x63c01d('0x4')),router=express['Router'](),auth=require(_0x63c01d('0x1')),controller=require(_0x63c01d('0x2'));router[_0x63c01d('0x9')](_0x63c01d('0x6'),auth[_0x63c01d('0x7')](),controller[_0x63c01d('0x8')]),router[_0x63c01d('0x5')]('/',auth['isAuthenticated'](),controller['create']),router['put'](_0x63c01d('0x6'),auth[_0x63c01d('0x7')](),controller['update']),router[_0x63c01d('0x0')](_0x63c01d('0x6'),auth[_0x63c01d('0x7')](),controller[_0x63c01d('0x3')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/disposition/disposition.attributes.js b/server/api/disposition/disposition.attributes.js index 3798c10..3c77c65 100644 --- a/server/api/disposition/disposition.attributes.js +++ b/server/api/disposition/disposition.attributes.js @@ -1 +1 @@ -const a181_0x2617=['sequelize','STRING','first','exports','third','ENUM'];(function(_0xbf926e,_0x2617ce){const _0x457603=function(_0x2b3fb1){while(--_0x2b3fb1){_0xbf926e['push'](_0xbf926e['shift']());}};_0x457603(++_0x2617ce);}(a181_0x2617,0x192));const a181_0x4576=function(_0xbf926e,_0x2617ce){_0xbf926e=_0xbf926e-0x0;let _0x457603=a181_0x2617[_0xbf926e];return _0x457603;};const _0x466f5a=a181_0x4576;'use strict';const Sequelize=require(_0x466f5a('0x0'));module[_0x466f5a('0x3')]={'name':{'type':Sequelize[_0x466f5a('0x1')],'allowNull':![]},'level':{'type':Sequelize[_0x466f5a('0x5')](_0x466f5a('0x2'),'second',_0x466f5a('0x4')),'allowNull':![],'defaultValue':_0x466f5a('0x2')},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a181_0x4a89=['sequelize','ENUM','exports','STRING','first'];(function(_0x315fb9,_0x4a8989){const _0x23c32f=function(_0xccd6f2){while(--_0xccd6f2){_0x315fb9['push'](_0x315fb9['shift']());}};_0x23c32f(++_0x4a8989);}(a181_0x4a89,0x78));const a181_0x23c3=function(_0x315fb9,_0x4a8989){_0x315fb9=_0x315fb9-0x0;let _0x23c32f=a181_0x4a89[_0x315fb9];return _0x23c32f;};const _0x35732f=a181_0x23c3;'use strict';const Sequelize=require(_0x35732f('0x0'));module[_0x35732f('0x2')]={'name':{'type':Sequelize[_0x35732f('0x3')],'allowNull':![]},'level':{'type':Sequelize[_0x35732f('0x1')](_0x35732f('0x4'),'second','third'),'allowNull':![],'defaultValue':_0x35732f('0x4')},'description':{'type':Sequelize[_0x35732f('0x3')]}}; \ No newline at end of file diff --git a/server/api/disposition/disposition.controller.js b/server/api/disposition/disposition.controller.js index dbc2fd6..420ac4e 100644 --- a/server/api/disposition/disposition.controller.js +++ b/server/api/disposition/disposition.controller.js @@ -1 +1 @@ -const a182_0x1819=['rawAttributes','offset','get','keys','sequelize','order','user','UserProfileResource','error','filters','options','count','where','query','lodash','rows','../../components/parsers/qs','merge','Disposition','intersection','sendStatus','includeAll','index','fields','UserProfileSection','body','fieldName','role','catch','undefined','then','length','findOne','pick','../../config/logger','params','status','show','limit','create','destroy','sort','name','attributes','userProfileId','Content-Range','update','include','send','json','map','type','key','stack','Dispositions','like','model'];(function(_0x5bce59,_0x181951){const _0x2b68e8=function(_0x205d79){while(--_0x205d79){_0x5bce59['push'](_0x5bce59['shift']());}};_0x2b68e8(++_0x181951);}(a182_0x1819,0x10f));const a182_0x2b68=function(_0x5bce59,_0x181951){_0x5bce59=_0x5bce59-0x0;let _0x2b68e8=a182_0x1819[_0x5bce59];return _0x2b68e8;};const _0x21663a=a182_0x2b68;'use strict';const _=require(_0x21663a('0x1c')),qs=require(_0x21663a('0x1e')),logger=require(_0x21663a('0x30'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x21663a('0x12'));function respondWithResult(_0x205d79,_0x5949c2){return _0x5949c2=_0x5949c2||0xc8,function(_0x471d23){const _0x1039cd=a182_0x2b68;if(_0x471d23)return _0x205d79[_0x1039cd('0x32')](_0x5949c2)['json'](_0x471d23);};}function respondWithFilteredResult(_0x1d099d,_0x19b9bc){return function(_0x253512){const _0x52ad0a=a182_0x2b68;if(_0x253512){const _0x1e60f6=_0x253512[_0x52ad0a('0x19')],_0x25173e=_0x19b9bc['offset'];let _0x4bd973=_0x19b9bc[_0x52ad0a('0xf')]+_0x19b9bc['limit'],_0x1e331e;return _0x4bd973>=_0x1e60f6?(_0x4bd973=_0x1e60f6,_0x1e331e=0xc8):_0x1e331e=0xce,_0x1d099d[_0x52ad0a('0x32')](_0x1e331e),_0x1d099d['set'](_0x52ad0a('0x2'),_0x25173e+'-'+_0x4bd973+'/'+_0x1e60f6)[_0x52ad0a('0x6')](_0x253512);}return null;};}function saveUpdates(_0x1c3c6f){return function(_0x5096e3){const _0x41cfcc=a182_0x2b68;if(_0x5096e3)return _0x5096e3[_0x41cfcc('0x3')](_0x1c3c6f)[_0x41cfcc('0x2c')](function(_0x59c2f1){return _0x59c2f1;});return null;};}function removeEntity(_0x49b161){return function(_0x1225ee){const _0x44f822=a182_0x2b68;if(_0x1225ee)return _0x1225ee[_0x44f822('0x36')]()['then'](function(){const _0x22f07d=_0x44f822,_0x27fc8a=_0x1225ee[_0x22f07d('0x10')]({'plain':!![]}),_0x7425=_0x22f07d('0xb');return db[_0x22f07d('0x15')][_0x22f07d('0x36')]({'where':{'type':_0x7425,'resourceId':_0x27fc8a['id']}})[_0x22f07d('0x2c')](function(){return _0x1225ee;});})[_0x44f822('0x2c')](function(){_0x49b161['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x5cd342){return function(_0x41dce8){const _0x49df34=a182_0x2b68;return!_0x41dce8&&_0x5cd342[_0x49df34('0x22')](0x194),_0x41dce8;};}function handleError(_0x4e5160,_0x3a14e3){return _0x3a14e3=_0x3a14e3||0x1f4,function(_0x4bd1d6){const _0x4531e9=a182_0x2b68;logger[_0x4531e9('0x16')](_0x4bd1d6[_0x4531e9('0xa')]),_0x4bd1d6[_0x4531e9('0x38')]&&delete _0x4bd1d6['name'],_0x4e5160[_0x4531e9('0x32')](_0x3a14e3)[_0x4531e9('0x5')](_0x4bd1d6);};}exports[_0x21663a('0x24')]=function(_0x2a2cc7,_0x5cb695){const _0x1e4431=_0x21663a;let _0x4c2286={};const _0x93b45c={},_0x3bacdc={'count':0x0,'rows':[]},_0x59c6a6=_[_0x1e4431('0x7')](db[_0x1e4431('0x20')][_0x1e4431('0xe')],function(_0x58fa22){const _0x1a72a6=_0x1e4431;return{'name':_0x58fa22[_0x1a72a6('0x28')],'type':_0x58fa22[_0x1a72a6('0x8')][_0x1a72a6('0x9')]};});_0x93b45c['model']=_['map'](_0x59c6a6,_0x1e4431('0x38')),_0x93b45c[_0x1e4431('0x1b')]=_[_0x1e4431('0x11')](_0x2a2cc7[_0x1e4431('0x1b')]),_0x93b45c[_0x1e4431('0x17')]=_[_0x1e4431('0x21')](_0x93b45c[_0x1e4431('0xd')],_0x93b45c[_0x1e4431('0x1b')]),_0x4c2286[_0x1e4431('0x0')]=_[_0x1e4431('0x21')](_0x93b45c['model'],qs[_0x1e4431('0x25')](_0x2a2cc7['query'][_0x1e4431('0x25')])),_0x4c2286[_0x1e4431('0x0')]=_0x4c2286[_0x1e4431('0x0')][_0x1e4431('0x2d')]?_0x4c2286[_0x1e4431('0x0')]:_0x93b45c['model'];typeof _0x2a2cc7[_0x1e4431('0x1b')]['nolimit']===_0x1e4431('0x2b')&&(_0x4c2286[_0x1e4431('0x34')]=qs[_0x1e4431('0x34')](_0x2a2cc7[_0x1e4431('0x1b')][_0x1e4431('0x34')]),_0x4c2286[_0x1e4431('0xf')]=qs[_0x1e4431('0xf')](_0x2a2cc7['query'][_0x1e4431('0xf')]));_0x4c2286[_0x1e4431('0x13')]=qs[_0x1e4431('0x37')](_0x2a2cc7[_0x1e4431('0x1b')][_0x1e4431('0x37')]),_0x4c2286['where']=qs[_0x1e4431('0x17')](_[_0x1e4431('0x2f')](_0x2a2cc7[_0x1e4431('0x1b')],_0x93b45c[_0x1e4431('0x17')]),_0x59c6a6);_0x2a2cc7[_0x1e4431('0x1b')]['filter']&&(_0x4c2286[_0x1e4431('0x1a')]=_['merge'](_0x4c2286[_0x1e4431('0x1a')],{[Op['or']]:_['map'](_0x59c6a6,function(_0x22f379){const _0x3a18b4=_0x1e4431;if(_0x22f379[_0x3a18b4('0x8')]!=='VIRTUAL'){const _0x137c55={};return _0x137c55[_0x22f379[_0x3a18b4('0x38')]]={[Op[_0x3a18b4('0xc')]]:'%'+_0x2a2cc7['query']['filter']+'%'},_0x137c55;}})}));_0x4c2286=_[_0x1e4431('0x1f')]({},_0x4c2286,_0x2a2cc7[_0x1e4431('0x18')]);const _0x1cee4f={'where':_0x4c2286[_0x1e4431('0x1a')]};return db[_0x1e4431('0x20')][_0x1e4431('0x19')](_0x1cee4f)[_0x1e4431('0x2c')](function(_0x1c962c){const _0x3fa7c8=_0x1e4431;return _0x3bacdc[_0x3fa7c8('0x19')]=_0x1c962c,_0x2a2cc7[_0x3fa7c8('0x1b')][_0x3fa7c8('0x23')]&&(_0x4c2286[_0x3fa7c8('0x4')]=[{'all':!![]}]),db[_0x3fa7c8('0x20')]['findAll'](_0x4c2286);})[_0x1e4431('0x2c')](function(_0x1da7db){const _0x410a70=_0x1e4431;return _0x3bacdc[_0x410a70('0x1d')]=_0x1da7db,_0x3bacdc;})[_0x1e4431('0x2c')](respondWithFilteredResult(_0x5cb695,_0x4c2286))[_0x1e4431('0x2a')](handleError(_0x5cb695,null));},exports[_0x21663a('0x33')]=function(_0x15dd0a,_0x2e9b5e){const _0x1e0e4e=_0x21663a;let _0x407186={'raw':!![],'where':{'id':_0x15dd0a[_0x1e0e4e('0x31')]['id']}};const _0x45f44f={};return _0x45f44f[_0x1e0e4e('0xd')]=_[_0x1e0e4e('0x11')](db[_0x1e0e4e('0x20')][_0x1e0e4e('0xe')]),_0x45f44f[_0x1e0e4e('0x1b')]=_[_0x1e0e4e('0x11')](_0x15dd0a['query']),_0x45f44f[_0x1e0e4e('0x17')]=_[_0x1e0e4e('0x21')](_0x45f44f[_0x1e0e4e('0xd')],_0x45f44f[_0x1e0e4e('0x1b')]),_0x407186[_0x1e0e4e('0x0')]=_[_0x1e0e4e('0x21')](_0x45f44f['model'],qs['fields'](_0x15dd0a[_0x1e0e4e('0x1b')][_0x1e0e4e('0x25')])),_0x407186[_0x1e0e4e('0x0')]=_0x407186[_0x1e0e4e('0x0')][_0x1e0e4e('0x2d')]?_0x407186['attributes']:_0x45f44f['model'],_0x15dd0a['query'][_0x1e0e4e('0x23')]&&(_0x407186[_0x1e0e4e('0x4')]=[{'all':!![]}]),_0x407186=_[_0x1e0e4e('0x1f')]({},_0x407186,_0x15dd0a[_0x1e0e4e('0x18')]),db[_0x1e0e4e('0x20')][_0x1e0e4e('0x2e')](_0x407186)[_0x1e0e4e('0x2c')](handleEntityNotFound(_0x2e9b5e,null))[_0x1e0e4e('0x2c')](respondWithResult(_0x2e9b5e,null))[_0x1e0e4e('0x2a')](handleError(_0x2e9b5e,null));},exports[_0x21663a('0x35')]=function(_0x3d5de4,_0x152f8d){const _0x56fd08=_0x21663a;return db[_0x56fd08('0x20')][_0x56fd08('0x35')](_0x3d5de4[_0x56fd08('0x27')],{})[_0x56fd08('0x2c')](function(_0x43b1fb){const _0x11665d=_0x56fd08,_0x5e8079=_0x3d5de4[_0x11665d('0x14')][_0x11665d('0x10')]({'plain':!![]});if(!_0x5e8079)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5e8079[_0x11665d('0x29')]===_0x11665d('0x14')){const _0xfc2bb9=_0x43b1fb[_0x11665d('0x10')]({'plain':!![]}),_0xfe0a2a=_0x11665d('0xb');return db[_0x11665d('0x26')][_0x11665d('0x2e')]({'where':{'name':_0xfe0a2a,'userProfileId':_0x5e8079[_0x11665d('0x1')]},'raw':!![]})[_0x11665d('0x2c')](function(_0x3de62d){const _0x4120a9=_0x11665d;return _0x3de62d&&_0x3de62d['autoAssociation']===0x0?db[_0x4120a9('0x15')][_0x4120a9('0x35')]({'name':_0xfc2bb9[_0x4120a9('0x38')],'resourceId':_0xfc2bb9['id'],'type':_0x3de62d['name'],'sectionId':_0x3de62d['id']},{})[_0x4120a9('0x2c')](function(){return _0x43b1fb;}):_0x43b1fb;})[_0x11665d('0x2a')](function(_0x3d73be){const _0x45b0ea=_0x11665d;logger[_0x45b0ea('0x16')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3d73be);throw _0x3d73be;});}return _0x43b1fb;})[_0x56fd08('0x2c')](respondWithResult(_0x152f8d,0xc9))[_0x56fd08('0x2a')](handleError(_0x152f8d,null));},exports[_0x21663a('0x3')]=function(_0x4d8789,_0x1332a9){const _0x355a8f=_0x21663a;return _0x4d8789['body']['id']&&delete _0x4d8789[_0x355a8f('0x27')]['id'],db['Disposition'][_0x355a8f('0x2e')]({'where':{'id':_0x4d8789['params']['id']}})['then'](handleEntityNotFound(_0x1332a9,null))[_0x355a8f('0x2c')](saveUpdates(_0x4d8789[_0x355a8f('0x27')],null))[_0x355a8f('0x2c')](respondWithResult(_0x1332a9,null))[_0x355a8f('0x2a')](handleError(_0x1332a9,null));},exports['destroy']=function(_0xefecdc,_0x4fa037){const _0x2c3983=_0x21663a;return db['Disposition'][_0x2c3983('0x2e')]({'where':{'id':_0xefecdc['params']['id']}})[_0x2c3983('0x2c')](handleEntityNotFound(_0x4fa037,null))['then'](removeEntity(_0x4fa037,null))[_0x2c3983('0x2a')](handleError(_0x4fa037,null));}; \ No newline at end of file +const a182_0x5bf1=['end','type','user','merge','sequelize','get','lodash','where','destroy','fields','rawAttributes','api','index','stack','sendStatus','offset','model','send','limit','count','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Dispositions','intersection','name','filters','attributes','query','sort','then','key','status','keys','map','VIRTUAL','order','json','options','fieldName','rows','../../components/parsers/qs','Disposition','role','findAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../config/logger','UserProfileResource','../../mysqldb','Content-Range','findOne','error','create','length','autoAssociation','userProfileId','pick','like','filter','catch','body','include','set','params'];(function(_0x574bc5,_0x5bf139){const _0xb4bffd=function(_0xb52ac6){while(--_0xb52ac6){_0x574bc5['push'](_0x574bc5['shift']());}};_0xb4bffd(++_0x5bf139);}(a182_0x5bf1,0xdb));const a182_0xb4bf=function(_0x574bc5,_0x5bf139){_0x574bc5=_0x574bc5-0x0;let _0xb4bffd=a182_0x5bf1[_0x574bc5];return _0xb4bffd;};const _0x446287=a182_0xb4bf;'use strict';const _=require(_0x446287('0x23')),qs=require(_0x446287('0x6')),logger=require(_0x446287('0xb'))(_0x446287('0x28')),db=require(_0x446287('0xd'))['db'],{Op}=require(_0x446287('0x21'));function respondWithResult(_0xb52ac6,_0x4ed193){return _0x4ed193=_0x4ed193||0xc8,function(_0x56f6c6){const _0x17928b=a182_0xb4bf;if(_0x56f6c6)return _0xb52ac6[_0x17928b('0x3b')](_0x4ed193)[_0x17928b('0x2')](_0x56f6c6);};}function respondWithFilteredResult(_0xf0647c,_0x59437e){return function(_0x20597d){const _0x312f7d=a182_0xb4bf;if(_0x20597d){const _0x26dd5d=_0x20597d[_0x312f7d('0x30')],_0x5a8c52=_0x59437e['offset'];let _0x49afb0=_0x59437e['offset']+_0x59437e[_0x312f7d('0x2f')],_0x1685bb;return _0x49afb0>=_0x26dd5d?(_0x49afb0=_0x26dd5d,_0x1685bb=0xc8):_0x1685bb=0xce,_0xf0647c['status'](_0x1685bb),_0xf0647c[_0x312f7d('0x1b')](_0x312f7d('0xe'),_0x5a8c52+'-'+_0x49afb0+'/'+_0x26dd5d)[_0x312f7d('0x2')](_0x20597d);}return null;};}function saveUpdates(_0x1f613d){return function(_0x5c9185){if(_0x5c9185)return _0x5c9185['update'](_0x1f613d)['then'](function(_0x7690c2){return _0x7690c2;});return null;};}function removeEntity(_0x4d3c88){return function(_0x3e5d0a){const _0x50bf57=a182_0xb4bf;if(_0x3e5d0a)return _0x3e5d0a[_0x50bf57('0x25')]()[_0x50bf57('0x39')](function(){const _0x1f9f4b=_0x50bf57,_0x55daf=_0x3e5d0a['get']({'plain':!![]}),_0x84dd9e=_0x1f9f4b('0x32');return db[_0x1f9f4b('0xc')][_0x1f9f4b('0x25')]({'where':{'type':_0x84dd9e,'resourceId':_0x55daf['id']}})[_0x1f9f4b('0x39')](function(){return _0x3e5d0a;});})[_0x50bf57('0x39')](function(){const _0x589dca=_0x50bf57;_0x4d3c88[_0x589dca('0x3b')](0xcc)[_0x589dca('0x1d')]();});};}function handleEntityNotFound(_0x52ada9){return function(_0x528e36){const _0x45c689=a182_0xb4bf;return!_0x528e36&&_0x52ada9[_0x45c689('0x2b')](0x194),_0x528e36;};}function handleError(_0x1fe5ae,_0xc18356){return _0xc18356=_0xc18356||0x1f4,function(_0x52076a){const _0x51032c=a182_0xb4bf;logger[_0x51032c('0x10')](_0x52076a[_0x51032c('0x2a')]),_0x52076a[_0x51032c('0x34')]&&delete _0x52076a[_0x51032c('0x34')],_0x1fe5ae[_0x51032c('0x3b')](_0xc18356)[_0x51032c('0x2e')](_0x52076a);};}exports[_0x446287('0x29')]=function(_0x143959,_0x39aefc){const _0x3d9d99=_0x446287;let _0x4f920c={};const _0x5442cb={},_0x8c2814={'count':0x0,'rows':[]},_0x2f318d=_[_0x3d9d99('0x3d')](db['Disposition'][_0x3d9d99('0x27')],function(_0x1e77f0){const _0x254af1=_0x3d9d99;return{'name':_0x1e77f0[_0x254af1('0x4')],'type':_0x1e77f0[_0x254af1('0x1e')][_0x254af1('0x3a')]};});_0x5442cb[_0x3d9d99('0x2d')]=_['map'](_0x2f318d,_0x3d9d99('0x34')),_0x5442cb['query']=_[_0x3d9d99('0x3c')](_0x143959['query']),_0x5442cb['filters']=_['intersection'](_0x5442cb[_0x3d9d99('0x2d')],_0x5442cb[_0x3d9d99('0x37')]),_0x4f920c[_0x3d9d99('0x36')]=_[_0x3d9d99('0x33')](_0x5442cb[_0x3d9d99('0x2d')],qs['fields'](_0x143959[_0x3d9d99('0x37')][_0x3d9d99('0x26')])),_0x4f920c[_0x3d9d99('0x36')]=_0x4f920c[_0x3d9d99('0x36')][_0x3d9d99('0x12')]?_0x4f920c[_0x3d9d99('0x36')]:_0x5442cb['model'];typeof _0x143959[_0x3d9d99('0x37')]['nolimit']==='undefined'&&(_0x4f920c[_0x3d9d99('0x2f')]=qs[_0x3d9d99('0x2f')](_0x143959[_0x3d9d99('0x37')]['limit']),_0x4f920c[_0x3d9d99('0x2c')]=qs[_0x3d9d99('0x2c')](_0x143959[_0x3d9d99('0x37')][_0x3d9d99('0x2c')]));_0x4f920c[_0x3d9d99('0x1')]=qs[_0x3d9d99('0x38')](_0x143959[_0x3d9d99('0x37')][_0x3d9d99('0x38')]),_0x4f920c[_0x3d9d99('0x24')]=qs[_0x3d9d99('0x35')](_[_0x3d9d99('0x15')](_0x143959[_0x3d9d99('0x37')],_0x5442cb[_0x3d9d99('0x35')]),_0x2f318d);_0x143959['query']['filter']&&(_0x4f920c[_0x3d9d99('0x24')]=_[_0x3d9d99('0x20')](_0x4f920c[_0x3d9d99('0x24')],{[Op['or']]:_[_0x3d9d99('0x3d')](_0x2f318d,function(_0x195dc7){const _0x30c2c6=_0x3d9d99;if(_0x195dc7['type']!==_0x30c2c6('0x0')){const _0x229c9c={};return _0x229c9c[_0x195dc7[_0x30c2c6('0x34')]]={[Op[_0x30c2c6('0x16')]]:'%'+_0x143959[_0x30c2c6('0x37')][_0x30c2c6('0x17')]+'%'},_0x229c9c;}})}));_0x4f920c=_[_0x3d9d99('0x20')]({},_0x4f920c,_0x143959[_0x3d9d99('0x3')]);const _0x456cf8={'where':_0x4f920c['where']};return db[_0x3d9d99('0x7')]['count'](_0x456cf8)[_0x3d9d99('0x39')](function(_0x4e5d05){const _0x1e5985=_0x3d9d99;return _0x8c2814[_0x1e5985('0x30')]=_0x4e5d05,_0x143959[_0x1e5985('0x37')]['includeAll']&&(_0x4f920c[_0x1e5985('0x1a')]=[{'all':!![]}]),db[_0x1e5985('0x7')][_0x1e5985('0x9')](_0x4f920c);})['then'](function(_0x151ce9){const _0x4eacc8=_0x3d9d99;return _0x8c2814[_0x4eacc8('0x5')]=_0x151ce9,_0x8c2814;})['then'](respondWithFilteredResult(_0x39aefc,_0x4f920c))[_0x3d9d99('0x18')](handleError(_0x39aefc,null));},exports['show']=function(_0x3836e2,_0x367373){const _0x582e11=_0x446287;let _0x45ccd6={'raw':!![],'where':{'id':_0x3836e2[_0x582e11('0x1c')]['id']}};const _0x2585e2={};return _0x2585e2[_0x582e11('0x2d')]=_[_0x582e11('0x3c')](db[_0x582e11('0x7')][_0x582e11('0x27')]),_0x2585e2[_0x582e11('0x37')]=_[_0x582e11('0x3c')](_0x3836e2['query']),_0x2585e2['filters']=_[_0x582e11('0x33')](_0x2585e2['model'],_0x2585e2['query']),_0x45ccd6[_0x582e11('0x36')]=_['intersection'](_0x2585e2[_0x582e11('0x2d')],qs['fields'](_0x3836e2['query'][_0x582e11('0x26')])),_0x45ccd6[_0x582e11('0x36')]=_0x45ccd6[_0x582e11('0x36')][_0x582e11('0x12')]?_0x45ccd6[_0x582e11('0x36')]:_0x2585e2['model'],_0x3836e2[_0x582e11('0x37')]['includeAll']&&(_0x45ccd6['include']=[{'all':!![]}]),_0x45ccd6=_[_0x582e11('0x20')]({},_0x45ccd6,_0x3836e2['options']),db[_0x582e11('0x7')][_0x582e11('0xf')](_0x45ccd6)['then'](handleEntityNotFound(_0x367373,null))[_0x582e11('0x39')](respondWithResult(_0x367373,null))[_0x582e11('0x18')](handleError(_0x367373,null));},exports[_0x446287('0x11')]=function(_0xd3391b,_0x934a55){const _0x1963ca=_0x446287;return db[_0x1963ca('0x7')][_0x1963ca('0x11')](_0xd3391b[_0x1963ca('0x19')],{})[_0x1963ca('0x39')](function(_0x39b357){const _0x1b1552=_0x1963ca,_0x54b9b1=_0xd3391b[_0x1b1552('0x1f')][_0x1b1552('0x22')]({'plain':!![]});if(!_0x54b9b1)throw new Error(_0x1b1552('0xa'));if(_0x54b9b1[_0x1b1552('0x8')]===_0x1b1552('0x1f')){const _0x11922b=_0x39b357['get']({'plain':!![]}),_0x49e36c=_0x1b1552('0x32');return db['UserProfileSection'][_0x1b1552('0xf')]({'where':{'name':_0x49e36c,'userProfileId':_0x54b9b1[_0x1b1552('0x14')]},'raw':!![]})[_0x1b1552('0x39')](function(_0x5ab105){const _0x44f95d=_0x1b1552;return _0x5ab105&&_0x5ab105[_0x44f95d('0x13')]===0x0?db[_0x44f95d('0xc')]['create']({'name':_0x11922b[_0x44f95d('0x34')],'resourceId':_0x11922b['id'],'type':_0x5ab105[_0x44f95d('0x34')],'sectionId':_0x5ab105['id']},{})[_0x44f95d('0x39')](function(){return _0x39b357;}):_0x39b357;})[_0x1b1552('0x18')](function(_0x36908b){const _0x11f4d6=_0x1b1552;logger[_0x11f4d6('0x10')](_0x11f4d6('0x31'),_0x36908b);throw _0x36908b;});}return _0x39b357;})[_0x1963ca('0x39')](respondWithResult(_0x934a55,0xc9))[_0x1963ca('0x18')](handleError(_0x934a55,null));},exports['update']=function(_0x219c97,_0x396b3c){const _0x5351b6=_0x446287;return _0x219c97['body']['id']&&delete _0x219c97['body']['id'],db[_0x5351b6('0x7')][_0x5351b6('0xf')]({'where':{'id':_0x219c97['params']['id']}})[_0x5351b6('0x39')](handleEntityNotFound(_0x396b3c,null))[_0x5351b6('0x39')](saveUpdates(_0x219c97[_0x5351b6('0x19')],null))[_0x5351b6('0x39')](respondWithResult(_0x396b3c,null))['catch'](handleError(_0x396b3c,null));},exports['destroy']=function(_0x5c11a4,_0x10044d){const _0x5dd537=_0x446287;return db[_0x5dd537('0x7')][_0x5dd537('0xf')]({'where':{'id':_0x5c11a4[_0x5dd537('0x1c')]['id']}})[_0x5dd537('0x39')](handleEntityNotFound(_0x10044d,null))[_0x5dd537('0x39')](removeEntity(_0x10044d,null))['catch'](handleError(_0x10044d,null));}; \ No newline at end of file diff --git a/server/api/disposition/disposition.model.js b/server/api/disposition/disposition.model.js index 550d2ed..126650f 100644 --- a/server/api/disposition/disposition.model.js +++ b/server/api/disposition/disposition.model.js @@ -1 +1 @@ -const a183_0x33d5=['OpenchannelAccountId','WhatsappAccountId','name_sms','SmsAccountId','define','tools_dispositions','name','FaxAccountId','name_voice','name_chat','Disposition','name_openchannel','./disposition.attributes','name_whatsapp','exports','MailAccountId'];(function(_0x4f9844,_0x33d5de){const _0x43d353=function(_0x456e0){while(--_0x456e0){_0x4f9844['push'](_0x4f9844['shift']());}};_0x43d353(++_0x33d5de);}(a183_0x33d5,0xbb));const a183_0x43d3=function(_0x4f9844,_0x33d5de){_0x4f9844=_0x4f9844-0x0;let _0x43d353=a183_0x33d5[_0x4f9844];return _0x43d353;};const _0x15b296=a183_0x43d3;'use strict';const attributes=require(_0x15b296('0x1'));module[_0x15b296('0x3')]=function(_0x456e0){const _0x470c1b=_0x15b296,_0x5e5c46=_0x456e0[_0x470c1b('0x9')](_0x470c1b('0xf'),attributes,{'tableName':_0x470c1b('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x470c1b('0xd'),'fields':['name','ListId']},{'unique':!![],'name':_0x470c1b('0xe'),'fields':[_0x470c1b('0xb'),'ChatWebsiteId']},{'unique':!![],'name':'name_mail','fields':[_0x470c1b('0xb'),_0x470c1b('0x4')]},{'unique':!![],'name':_0x470c1b('0x7'),'fields':[_0x470c1b('0xb'),_0x470c1b('0x8')]},{'unique':!![],'name':'name_fax','fields':[_0x470c1b('0xb'),_0x470c1b('0xc')]},{'unique':!![],'name':_0x470c1b('0x0'),'fields':[_0x470c1b('0xb'),_0x470c1b('0x5')]},{'unique':!![],'name':_0x470c1b('0x2'),'fields':['name',_0x470c1b('0x6')]}],'timestamps':!![]});return _0x5e5c46;}; \ No newline at end of file +const a183_0x4042=['./disposition.attributes','MailAccountId','ChatWebsiteId','tools_dispositions','name_mail','FaxAccountId','exports','name_whatsapp','name_sms','name_voice','WhatsappAccountId','name_openchannel','Disposition','ListId','SmsAccountId','name'];(function(_0x44eaf9,_0x4042f1){const _0x25982b=function(_0x5c7e24){while(--_0x5c7e24){_0x44eaf9['push'](_0x44eaf9['shift']());}};_0x25982b(++_0x4042f1);}(a183_0x4042,0xe2));const a183_0x2598=function(_0x44eaf9,_0x4042f1){_0x44eaf9=_0x44eaf9-0x0;let _0x25982b=a183_0x4042[_0x44eaf9];return _0x25982b;};const _0x2311d5=a183_0x2598;'use strict';const attributes=require(_0x2311d5('0xe'));module[_0x2311d5('0x4')]=function(_0x5c7e24){const _0x265919=_0x2311d5,_0xfcb543=_0x5c7e24['define'](_0x265919('0xa'),attributes,{'tableName':_0x265919('0x1'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x265919('0x7'),'fields':[_0x265919('0xd'),_0x265919('0xb')]},{'unique':!![],'name':'name_chat','fields':[_0x265919('0xd'),_0x265919('0x0')]},{'unique':!![],'name':_0x265919('0x2'),'fields':[_0x265919('0xd'),_0x265919('0xf')]},{'unique':!![],'name':_0x265919('0x6'),'fields':[_0x265919('0xd'),_0x265919('0xc')]},{'unique':!![],'name':'name_fax','fields':[_0x265919('0xd'),_0x265919('0x3')]},{'unique':!![],'name':_0x265919('0x9'),'fields':[_0x265919('0xd'),'OpenchannelAccountId']},{'unique':!![],'name':_0x265919('0x5'),'fields':[_0x265919('0xd'),_0x265919('0x8')]}],'timestamps':!![]});return _0xfcb543;}; \ No newline at end of file diff --git a/server/api/disposition/index.js b/server/api/disposition/index.js index 26e4014..7f0263c 100644 --- a/server/api/disposition/index.js +++ b/server/api/disposition/index.js @@ -1 +1 @@ -const a184_0x2df0=['exports','Router','put','post','create','./disposition.controller','delete','update','isAuthenticated','/:id','destroy','get','../../components/auth/service','index'];(function(_0x38e3d6,_0x2df080){const _0x997c3b=function(_0x482b65){while(--_0x482b65){_0x38e3d6['push'](_0x38e3d6['shift']());}};_0x997c3b(++_0x2df080);}(a184_0x2df0,0x116));const a184_0x997c=function(_0x38e3d6,_0x2df080){_0x38e3d6=_0x38e3d6-0x0;let _0x997c3b=a184_0x2df0[_0x38e3d6];return _0x997c3b;};const _0x528d90=a184_0x997c;'use strict';const express=require('express'),router=express[_0x528d90('0x3')](),auth=require(_0x528d90('0x0')),controller=require(_0x528d90('0x7'));router[_0x528d90('0xd')]('/',auth[_0x528d90('0xa')](),controller[_0x528d90('0x1')]),router[_0x528d90('0xd')](_0x528d90('0xb'),auth[_0x528d90('0xa')](),controller['show']),router[_0x528d90('0x5')]('/',auth[_0x528d90('0xa')](),controller[_0x528d90('0x6')]),router[_0x528d90('0x4')](_0x528d90('0xb'),auth[_0x528d90('0xa')](),controller[_0x528d90('0x9')]),router[_0x528d90('0x8')](_0x528d90('0xb'),auth[_0x528d90('0xa')](),controller[_0x528d90('0xc')]),module[_0x528d90('0x2')]=router; \ No newline at end of file +const a184_0x369d=['post','Router','put','../../components/auth/service','delete','isAuthenticated','./disposition.controller','create','get','/:id','express'];(function(_0x3e0cd0,_0x369dc7){const _0x1d65fa=function(_0x1a02d1){while(--_0x1a02d1){_0x3e0cd0['push'](_0x3e0cd0['shift']());}};_0x1d65fa(++_0x369dc7);}(a184_0x369d,0x1d9));const a184_0x1d65=function(_0x3e0cd0,_0x369dc7){_0x3e0cd0=_0x3e0cd0-0x0;let _0x1d65fa=a184_0x369d[_0x3e0cd0];return _0x1d65fa;};const _0x1a956e=a184_0x1d65;'use strict';const express=require(_0x1a956e('0xa')),router=express[_0x1a956e('0x1')](),auth=require(_0x1a956e('0x3')),controller=require(_0x1a956e('0x6'));router[_0x1a956e('0x8')]('/',auth['isAuthenticated'](),controller['index']),router[_0x1a956e('0x8')](_0x1a956e('0x9'),auth[_0x1a956e('0x5')](),controller['show']),router[_0x1a956e('0x0')]('/',auth['isAuthenticated'](),controller[_0x1a956e('0x7')]),router[_0x1a956e('0x2')](_0x1a956e('0x9'),auth[_0x1a956e('0x5')](),controller['update']),router[_0x1a956e('0x4')]('/:id',auth[_0x1a956e('0x5')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.attributes.js b/server/api/faxAccount/faxAccount.attributes.js index 8d4c527..8714f8c 100644 --- a/server/api/faxAccount/faxAccount.attributes.js +++ b/server/api/faxAccount/faxAccount.attributes.js @@ -1 +1 @@ -const a185_0x2214=['v17,v27,v29','4800','mandatoryDispositionPauseId','INTEGER','BOOLEAN','7200','12000','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','9600','sequelize','ENUM','localstationid','mandatoryDisposition','setDataValue','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','exports','KHOMP','xCALLY\x20Motion\x20Fax','14400','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','STRING','SIP'];(function(_0x57f0e6,_0x22140a){const _0x5027cc=function(_0x1ee366){while(--_0x1ee366){_0x57f0e6['push'](_0x57f0e6['shift']());}};_0x5027cc(++_0x22140a);}(a185_0x2214,0x134));const a185_0x5027=function(_0x57f0e6,_0x22140a){_0x57f0e6=_0x57f0e6-0x0;let _0x5027cc=a185_0x2214[_0x57f0e6];return _0x5027cc;};const _0x4a6696=a185_0x5027;'use strict';const Sequelize=require(_0x4a6696('0x9'));module[_0x4a6696('0xf')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x4a6696('0x14')]},'ecm':{'type':Sequelize[_0x4a6696('0xa')]('yes','no'),'defaultValue':'yes'},'headerinfo':{'type':Sequelize[_0x4a6696('0x14')],'defaultValue':_0x4a6696('0x11')},'localstationid':{'type':Sequelize[_0x4a6696('0x14')],'unique':_0x4a6696('0xb')},'minrate':{'type':Sequelize[_0x4a6696('0xa')]('2400',_0x4a6696('0x1'),_0x4a6696('0x5'),_0x4a6696('0x8'),_0x4a6696('0x6'),_0x4a6696('0x12')),'defaultValue':_0x4a6696('0x1')},'maxrate':{'type':Sequelize[_0x4a6696('0xa')]('2400',_0x4a6696('0x1'),_0x4a6696('0x5'),_0x4a6696('0x8'),_0x4a6696('0x6'),_0x4a6696('0x12')),'defaultValue':'14400'},'modem':{'type':Sequelize[_0x4a6696('0x14')],'defaultValue':_0x4a6696('0x0')},'gateway':{'type':Sequelize['STRING'],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':Sequelize[_0x4a6696('0x14')],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':Sequelize[_0x4a6696('0x3')],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize[_0x4a6696('0xa')](_0x4a6696('0x15'),'IAX','DADHI',_0x4a6696('0x10')),'defaultValue':_0x4a6696('0x15')},'key':{'type':Sequelize[_0x4a6696('0x14')],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x1d236f=_0x4a6696;return _0x1d236f('0x7');}},'notificationSound':{'type':Sequelize[_0x4a6696('0x4')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x4a6696('0x4')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x4a6696('0x3')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x4a6696('0x4')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x4a6696('0x3')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x4a6696('0x4')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x4a6696('0x3')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x4a6696('0x3')],'allowNull':!![],'defaultValue':null,'comment':_0x4a6696('0xe')},'mandatoryDisposition':{'type':Sequelize[_0x4a6696('0x4')],'defaultValue':![],'comment':_0x4a6696('0x13'),'set':function(_0x1ee366){const _0x168973=_0x4a6696;if(!_0x1ee366)this[_0x168973('0xd')](_0x168973('0x2'),null);this[_0x168973('0xd')](_0x168973('0xc'),_0x1ee366);}}}; \ No newline at end of file +const a185_0x3675=['Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','INTEGER','STRING','BOOLEAN','9600','4800','localstationid','14400','KHOMP','DADHI','7200','12000','setDataValue','mandatoryDispositionPauseId','sequelize','yes','ENUM','TEXT','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','SIP','mandatoryDisposition','v17,v27,v29'];(function(_0x51f701,_0x367508){const _0x50afc2=function(_0x3a12ff){while(--_0x3a12ff){_0x51f701['push'](_0x51f701['shift']());}};_0x50afc2(++_0x367508);}(a185_0x3675,0x1a4));const a185_0x50af=function(_0x51f701,_0x367508){_0x51f701=_0x51f701-0x0;let _0x50afc2=a185_0x3675[_0x51f701];return _0x50afc2;};const _0x2c9d78=a185_0x50af;'use strict';const Sequelize=require(_0x2c9d78('0xc'));module['exports']={'name':{'type':Sequelize[_0x2c9d78('0x0')],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x2c9d78('0x0')]},'ecm':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':_0x2c9d78('0xd')},'headerinfo':{'type':Sequelize['STRING'],'defaultValue':'xCALLY\x20Motion\x20Fax'},'localstationid':{'type':Sequelize['STRING'],'unique':_0x2c9d78('0x4')},'minrate':{'type':Sequelize['ENUM']('2400','4800',_0x2c9d78('0x8'),'9600',_0x2c9d78('0x9'),_0x2c9d78('0x5')),'defaultValue':_0x2c9d78('0x3')},'maxrate':{'type':Sequelize[_0x2c9d78('0xe')]('2400',_0x2c9d78('0x3'),_0x2c9d78('0x8'),_0x2c9d78('0x2'),_0x2c9d78('0x9'),_0x2c9d78('0x5')),'defaultValue':_0x2c9d78('0x5')},'modem':{'type':Sequelize[_0x2c9d78('0x0')],'defaultValue':_0x2c9d78('0x13')},'gateway':{'type':Sequelize[_0x2c9d78('0x0')],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':Sequelize['STRING'],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':Sequelize[_0x2c9d78('0x15')],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize[_0x2c9d78('0xe')](_0x2c9d78('0x11'),'IAX',_0x2c9d78('0x7'),_0x2c9d78('0x6')),'defaultValue':_0x2c9d78('0x11')},'key':{'type':Sequelize['STRING'],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x2c9d78('0xf')],'defaultValue':function(){const _0x44fc1e=_0x2c9d78;return _0x44fc1e('0x14');}},'notificationSound':{'type':Sequelize[_0x2c9d78('0x1')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x2c9d78('0x1')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x2c9d78('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x2c9d78('0x1')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x2c9d78('0x15')],'allowNull':!![],'defaultValue':null,'comment':_0x2c9d78('0x10')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x3a12ff){const _0xe58aab=_0x2c9d78;if(!_0x3a12ff)this[_0xe58aab('0xa')](_0xe58aab('0xb'),null);this[_0xe58aab('0xa')](_0xe58aab('0x12'),_0x3a12ff);}}}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.controller.js b/server/api/faxAccount/faxAccount.controller.js index 242f765..cf8e1ab 100644 --- a/server/api/faxAccount/faxAccount.controller.js +++ b/server/api/faxAccount/faxAccount.controller.js @@ -1 +1 @@ -const a186_0x6a18=['VIRTUAL','addAccountApplications','include','filename','Contacts','modem','getAnswers','pick','server/files/attachments','CheckAfterSend','findAll','findOne','addAgents','localstationid','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','key','Set','../../config/environment','../../mysqldb','appdata','status','undefined','bulkCreate','CDR(type)=inbound-fax','getAgents','basename','emit','FaxAccounts','like','../../rediscache','message','SendFax','query','gateway','attachments','params','findAndCountAll','app','show','out','rawAttributes','tag','mandatoryDispositionPause','user','CannedAnswer','keys','nolimit','VoiceExtension','Contact','catch','updatedAt','sort','where','CmList','FaxApplication','ids','path','root','filters','offset','map','http','Disposition','minrate','ecm','destroy','filter','fullname','$gte','FaxAccount,\x20%s,\x20%s,\x20%s','tech','addDisposition','FaxMessage','gte','code','format','sendStatus','Unable\x20to\x20retrieve\x20the\x20current\x20user','Contact\x20not\x20found','Pause','FaxAccount,\x20%s,\x20%s','rows','FaxAccount','getApplications','sequelize','options','limit','end','stringify','split','attributes','request','includeAll','updateAccountApplications','describe','info','fax','FaxAccountId','isNil','TrunkId','User','autoAssociation','../../config/logger','FAXOPT(','fields','SendFaxRpc,\x20%s','List\x20not\x20found','UserProfileSection','addAnswer','from','isArray','api','CmContact','exten','length','DESC','List','addApplications','Answer','error','internal','register','type','FaxInteraction','intersection','omit','t38timeout','client','defaults','util','merge','model','ListId','update','Tag','getDispositions','UserProfileResource','fieldName','findByPk','json','headerinfo','removeAgents','removeDispositions','ContactId','order','get','getInteractions','jayson/promise','userFaxAccount:save','create','then','request\x20sent','body','index','getMessages','lodash','result','name','join','count','Messages','Fax\x20Extension','removeAnswers','Content-Range','transaction','push','YYYY-MM-DD\x20HH:mm:ss','send','../../components/parsers/qs','createdAt','priority','Owner'];(function(_0x87b68,_0x6a183a){const _0x5e28c5=function(_0x3d355f){while(--_0x3d355f){_0x87b68['push'](_0x87b68['shift']());}};_0x5e28c5(++_0x6a183a);}(a186_0x6a18,0x1d9));const a186_0x5e28=function(_0x87b68,_0x6a183a){_0x87b68=_0x87b68-0x0;let _0x5e28c5=a186_0x6a18[_0x87b68];return _0x5e28c5;};const _0xc58528=a186_0x5e28;'use strict';const moment=require('moment'),util=require(_0xc58528('0x0')),path=require(_0xc58528('0x63')),_=require(_0xc58528('0x1a')),{getSocket}=require(_0xc58528('0x48')),socket=getSocket(),qs=require(_0xc58528('0x27')),logger=require(_0xc58528('0x91'))(_0xc58528('0x9a')),config=require(_0xc58528('0x3c')),db=require(_0xc58528('0x3d'))['db'],{Op}=require('sequelize');require('./faxAccount.socket')[_0xc58528('0xa4')](socket);const jayson=require(_0xc58528('0x12')),client=jayson[_0xc58528('0xaa')]['http']({'port':0x232c}),client9002=jayson[_0xc58528('0xaa')][_0xc58528('0x68')]({'port':0x232a});function respondWithRpcPromise(_0x3d355f,_0x10b987,_0x289151,_0x4f19ec){return new Promise(function(_0x23a6d5,_0x5aa457){const _0x240ce8=a186_0x5e28,_0x299c3e=_0x4f19ec||client;return _0x299c3e[_0x240ce8('0x86')](_0x3d355f,_0x289151)[_0x240ce8('0x15')](function(_0x4fc4e2){const _0xa8a563=_0x240ce8;logger[_0xa8a563('0x8a')](_0xa8a563('0x7b'),_0x10b987,'request\x20sent'),logger['debug'](_0xa8a563('0x70'),_0x10b987,_0xa8a563('0x16'),JSON[_0xa8a563('0x83')](_0x4fc4e2));if(_0x4fc4e2[_0xa8a563('0xa2')]){if(_0x4fc4e2[_0xa8a563('0xa2')][_0xa8a563('0x75')]===0x1f4)return logger[_0xa8a563('0xa2')](_0xa8a563('0x7b'),_0x10b987,_0x4fc4e2['error']['message']),_0x5aa457(_0x4fc4e2[_0xa8a563('0xa2')][_0xa8a563('0x49')]);return logger[_0xa8a563('0xa2')]('FaxAccount,\x20%s,\x20%s',_0x10b987,_0x4fc4e2[_0xa8a563('0xa2')][_0xa8a563('0x49')]),_0x23a6d5(_0x4fc4e2[_0xa8a563('0xa2')][_0xa8a563('0x49')]);}else logger[_0xa8a563('0x8a')](_0xa8a563('0x7b'),_0x10b987,_0xa8a563('0x16')),_0x23a6d5(_0x4fc4e2[_0xa8a563('0x1b')][_0xa8a563('0x49')]);})[_0x240ce8('0x5c')](function(_0x115fa4){const _0x3076fe=_0x240ce8;logger[_0x3076fe('0xa2')](_0x3076fe('0x7b'),_0x10b987,_0x115fa4),_0x5aa457(_0x115fa4);});});}function respondWithStatusCode(_0x505aa8,_0x17a4b1){return _0x17a4b1=_0x17a4b1||0xcc,function(_0x423dfc){const _0x51de30=a186_0x5e28;if(_0x423dfc)return _0x505aa8[_0x51de30('0x77')](_0x17a4b1);return _0x505aa8[_0x51de30('0x3f')](_0x17a4b1)[_0x51de30('0x82')]();};}function respondWithResult(_0x3d2fad,_0x19111a){return _0x19111a=_0x19111a||0xc8,function(_0x56a75c){const _0x30a872=a186_0x5e28;if(_0x56a75c)return _0x3d2fad['status'](_0x19111a)[_0x30a872('0xa')](_0x56a75c);};}function respondWithFilteredResult(_0x2afcc6,_0x5ed8b1){return function(_0x579570){const _0xbb805=a186_0x5e28;if(_0x579570){const _0x2fd312=_0x579570[_0xbb805('0x1e')],_0x369709=_0x5ed8b1['offset'];let _0x19a5b9=_0x5ed8b1[_0xbb805('0x66')]+_0x5ed8b1[_0xbb805('0x81')],_0x134db;return _0x19a5b9>=_0x2fd312?(_0x19a5b9=_0x2fd312,_0x134db=0xc8):_0x134db=0xce,_0x2afcc6[_0xbb805('0x3f')](_0x134db),_0x2afcc6['set'](_0xbb805('0x22'),_0x369709+'-'+_0x19a5b9+'/'+_0x2fd312)[_0xbb805('0xa')](_0x579570);}return null;};}function saveUpdates(_0x5738d2){return function(_0xc8d614){const _0x3a537c=a186_0x5e28;if(_0xc8d614)return _0xc8d614[_0x3a537c('0x4')](_0x5738d2)[_0x3a537c('0x15')](function(_0x310ef3){return _0x310ef3;});return null;};}function removeEntity(_0x3fde8a){return function(_0x1bd788){const _0x12180a=a186_0x5e28;if(_0x1bd788)return _0x1bd788['destroy']()[_0x12180a('0x15')](function(){const _0x19f5ce=_0x12180a,_0x56b3d9=_0x1bd788['get']({'plain':!![]}),_0x3f8a96=_0x19f5ce('0x46');return db[_0x19f5ce('0x7')]['destroy']({'where':{'type':_0x3f8a96,'resourceId':_0x56b3d9['id']}})[_0x19f5ce('0x15')](function(){return _0x1bd788;});})['then'](function(){const _0x57a140=_0x12180a;_0x3fde8a[_0x57a140('0x3f')](0xcc)[_0x57a140('0x82')]();});};}function handleEntityNotFound(_0x5a9cb6){return function(_0x363c66){return!_0x363c66&&_0x5a9cb6['sendStatus'](0x194),_0x363c66;};}function handleError(_0x15bd9e,_0x222192){return _0x222192=_0x222192||0x1f4,function(_0x4873b1){const _0x45583f=a186_0x5e28;logger[_0x45583f('0xa2')](_0x4873b1['stack']),_0x4873b1[_0x45583f('0x1c')]&&delete _0x4873b1[_0x45583f('0x1c')],_0x15bd9e['status'](_0x222192)[_0x45583f('0x26')](_0x4873b1);};}exports[_0xc58528('0x18')]=function(_0x5c6d40,_0x31a554){const _0x2d635d=_0xc58528;let _0x5772a3={'include':[{'model':db[_0x2d635d('0x7a')],'as':_0x2d635d('0x55')}]};const _0x2167f3={},_0x3e9996={'count':0x0,'rows':[]},_0x188768=_['map'](db[_0x2d635d('0x7d')][_0x2d635d('0x53')],function(_0x5e3f8f){const _0x49b06e=_0x2d635d;return{'name':_0x5e3f8f[_0x49b06e('0x8')],'type':_0x5e3f8f[_0x49b06e('0xa5')][_0x49b06e('0x3a')]};});_0x2167f3[_0x2d635d('0x2')]=_[_0x2d635d('0x67')](_0x188768,_0x2d635d('0x1c')),_0x2167f3[_0x2d635d('0x4b')]=_[_0x2d635d('0x58')](_0x5c6d40['query']),_0x2167f3['filters']=_[_0x2d635d('0xa7')](_0x2167f3[_0x2d635d('0x2')],_0x2167f3[_0x2d635d('0x4b')]),_0x5772a3[_0x2d635d('0x85')]=_[_0x2d635d('0xa7')](_0x2167f3[_0x2d635d('0x2')],qs[_0x2d635d('0x93')](_0x5c6d40[_0x2d635d('0x4b')]['fields'])),_0x5772a3[_0x2d635d('0x85')]=_0x5772a3['attributes'][_0x2d635d('0x9d')]?_0x5772a3[_0x2d635d('0x85')]:_0x2167f3[_0x2d635d('0x2')];typeof _0x5c6d40[_0x2d635d('0x4b')][_0x2d635d('0x59')]===_0x2d635d('0x40')&&(_0x5772a3[_0x2d635d('0x81')]=qs[_0x2d635d('0x81')](_0x5c6d40[_0x2d635d('0x4b')][_0x2d635d('0x81')]),_0x5772a3[_0x2d635d('0x66')]=qs[_0x2d635d('0x66')](_0x5c6d40['query'][_0x2d635d('0x66')]));_0x5772a3[_0x2d635d('0xf')]=qs[_0x2d635d('0x5e')](_0x5c6d40['query'][_0x2d635d('0x5e')]),_0x5772a3[_0x2d635d('0x5f')]=qs[_0x2d635d('0x65')](_[_0x2d635d('0x32')](_0x5c6d40['query'],_0x2167f3[_0x2d635d('0x65')]),_0x188768);_0x5c6d40[_0x2d635d('0x4b')][_0x2d635d('0x6d')]&&(_0x5772a3[_0x2d635d('0x5f')]=_[_0x2d635d('0x1')](_0x5772a3[_0x2d635d('0x5f')],{[Op['or']]:_[_0x2d635d('0x67')](_0x188768,function(_0x5447eb){const _0xdcdfce=_0x2d635d;if(_0x5447eb[_0xdcdfce('0xa5')]!==_0xdcdfce('0x2b')){const _0x254494={};return _0x254494[_0x5447eb[_0xdcdfce('0x1c')]]={[Op[_0xdcdfce('0x47')]]:'%'+_0x5c6d40[_0xdcdfce('0x4b')]['filter']+'%'},_0x254494;}})}));_0x5772a3=_['merge']({},_0x5772a3,_0x5c6d40[_0x2d635d('0x80')]);const _0x19e0e7={'where':_0x5772a3['where']};return db['FaxAccount'][_0x2d635d('0x1e')](_0x19e0e7)[_0x2d635d('0x15')](function(_0x1b124b){const _0x2d869f=_0x2d635d;return _0x3e9996['count']=_0x1b124b,_0x5c6d40[_0x2d869f('0x4b')][_0x2d869f('0x87')]&&(_0x5772a3['include']=[{'all':!![]}]),db[_0x2d869f('0x7d')][_0x2d869f('0x35')](_0x5772a3);})[_0x2d635d('0x15')](function(_0x298eaa){const _0x485caa=_0x2d635d;return _0x3e9996[_0x485caa('0x7c')]=_0x298eaa,_0x3e9996;})[_0x2d635d('0x15')](respondWithFilteredResult(_0x31a554,_0x5772a3))['catch'](handleError(_0x31a554,null));},exports[_0xc58528('0x51')]=function(_0x5f0300,_0x34df74){const _0x2f4ca3=_0xc58528;let _0x504724={'raw':![],'where':{'id':_0x5f0300[_0x2f4ca3('0x4e')]['id']},'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x27f057={};return _0x27f057[_0x2f4ca3('0x2')]=_[_0x2f4ca3('0x58')](db[_0x2f4ca3('0x7d')][_0x2f4ca3('0x53')]),_0x27f057[_0x2f4ca3('0x4b')]=_[_0x2f4ca3('0x58')](_0x5f0300[_0x2f4ca3('0x4b')]),_0x27f057['filters']=_[_0x2f4ca3('0xa7')](_0x27f057[_0x2f4ca3('0x2')],_0x27f057[_0x2f4ca3('0x4b')]),_0x504724['attributes']=_['intersection'](_0x27f057[_0x2f4ca3('0x2')],qs[_0x2f4ca3('0x93')](_0x5f0300['query'][_0x2f4ca3('0x93')])),_0x504724[_0x2f4ca3('0x85')]=_0x504724[_0x2f4ca3('0x85')][_0x2f4ca3('0x9d')]?_0x504724['attributes']:_0x27f057[_0x2f4ca3('0x2')],_0x5f0300['query'][_0x2f4ca3('0x87')]&&(_0x504724['include']=[{'all':!![]}]),_0x504724=_[_0x2f4ca3('0x1')]({},_0x504724,_0x5f0300[_0x2f4ca3('0x80')]),db[_0x2f4ca3('0x7d')][_0x2f4ca3('0x36')](_0x504724)[_0x2f4ca3('0x15')](handleEntityNotFound(_0x34df74,null))[_0x2f4ca3('0x15')](respondWithResult(_0x34df74,null))[_0x2f4ca3('0x5c')](handleError(_0x34df74,null));},exports[_0xc58528('0x14')]=function(_0x4bbee6,_0x557e16){const _0x5116a8=_0xc58528;return db[_0x5116a8('0x7d')][_0x5116a8('0x14')](_0x4bbee6[_0x5116a8('0x17')],{})[_0x5116a8('0x15')](function(_0x37620a){const _0x431347=_0x5116a8,_0x3119c6=_0x4bbee6[_0x431347('0x56')][_0x431347('0x10')]({'plain':!![]});if(!_0x3119c6)throw new Error(_0x431347('0x78'));if(_0x3119c6['role']===_0x431347('0x56')){const _0x56b974=_0x37620a['get']({'plain':!![]}),_0x2d465d=_0x431347('0x46');return db[_0x431347('0x96')][_0x431347('0x36')]({'where':{'name':_0x2d465d,'userProfileId':_0x3119c6['userProfileId']},'raw':!![]})['then'](function(_0x1f42d8){const _0x56d8a7=_0x431347;return _0x1f42d8&&_0x1f42d8[_0x56d8a7('0x90')]===0x0?db[_0x56d8a7('0x7')][_0x56d8a7('0x14')]({'name':_0x56b974[_0x56d8a7('0x1c')],'resourceId':_0x56b974['id'],'type':_0x1f42d8[_0x56d8a7('0x1c')],'sectionId':_0x1f42d8['id']},{})[_0x56d8a7('0x15')](function(){return _0x37620a;}):_0x37620a;})['catch'](function(_0x42178d){const _0x3a6352=_0x431347;logger[_0x3a6352('0xa2')](_0x3a6352('0x39'),_0x42178d);throw _0x42178d;});}return _0x37620a;})[_0x5116a8('0x15')](respondWithResult(_0x557e16,0xc9))[_0x5116a8('0x5c')](handleError(_0x557e16,null));},exports[_0xc58528('0x4')]=function(_0x105976,_0x89aac7){const _0x45e6d9=_0xc58528;return _0x105976[_0x45e6d9('0x17')]['id']&&delete _0x105976['body']['id'],db[_0x45e6d9('0x7d')][_0x45e6d9('0x36')]({'where':{'id':_0x105976[_0x45e6d9('0x4e')]['id']},'include':[{'model':db[_0x45e6d9('0x7a')],'as':_0x45e6d9('0x55')}]})[_0x45e6d9('0x15')](handleEntityNotFound(_0x89aac7,null))[_0x45e6d9('0x15')](saveUpdates(_0x105976[_0x45e6d9('0x17')],null))[_0x45e6d9('0x15')](respondWithResult(_0x89aac7,null))[_0x45e6d9('0x5c')](handleError(_0x89aac7,null));},exports[_0xc58528('0x6c')]=function(_0xaaefe,_0x63564d){const _0xd55b8d=_0xc58528;return db['FaxAccount'][_0xd55b8d('0x36')]({'where':{'id':_0xaaefe[_0xd55b8d('0x4e')]['id']}})[_0xd55b8d('0x15')](handleEntityNotFound(_0x63564d,null))[_0xd55b8d('0x15')](removeEntity(_0x63564d,null))['catch'](handleError(_0x63564d,null));},exports['describe']=function(_0x4223de,_0x4ccc4e){const _0x57e03e=_0xc58528;return db[_0x57e03e('0x7d')][_0x57e03e('0x89')]()[_0x57e03e('0x15')](respondWithResult(_0x4ccc4e,null))[_0x57e03e('0x5c')](handleError(_0x4ccc4e,null));},exports[_0xc58528('0x72')]=function(_0x1657ee,_0x4f4a35){const _0x2e3113=_0xc58528;return _0x1657ee['body']['id']&&delete _0x1657ee[_0x2e3113('0x17')]['id'],db[_0x2e3113('0x7d')]['findOne']({'where':{'id':_0x1657ee[_0x2e3113('0x4e')]['id']}})[_0x2e3113('0x15')](handleEntityNotFound(_0x4f4a35,null))[_0x2e3113('0x15')](function(_0x155c94){const _0x5c627d=_0x2e3113;if(_0x155c94)return _0x1657ee[_0x5c627d('0x17')]['FaxAccountId']=_0x155c94['id'],db[_0x5c627d('0x69')]['create'](_0x1657ee[_0x5c627d('0x17')]);})[_0x2e3113('0x15')](respondWithResult(_0x4f4a35,null))[_0x2e3113('0x5c')](handleError(_0x4f4a35,null));},exports[_0xc58528('0x6')]=function(_0x3bec40,_0x4a1abd){const _0xea7e24=_0xc58528;let _0x25b695={'raw':![],'where':{}};const _0x285fe7={},_0x412775={'count':0x0,'rows':[]};return db['FaxAccount']['findOne']({'where':{'id':_0x3bec40['params']['id']}})['then'](handleEntityNotFound(_0x4a1abd,null))[_0xea7e24('0x15')](function(_0x42a651){const _0x3d9057=_0xea7e24;if(_0x42a651)return _0x285fe7[_0x3d9057('0x2')]=_[_0x3d9057('0x58')](db[_0x3d9057('0x69')][_0x3d9057('0x53')]),_0x285fe7[_0x3d9057('0x4b')]=_[_0x3d9057('0x58')](_0x3bec40[_0x3d9057('0x4b')]),_0x285fe7['filters']=_[_0x3d9057('0xa7')](_0x285fe7[_0x3d9057('0x2')],_0x285fe7['query']),_0x25b695[_0x3d9057('0x85')]=_[_0x3d9057('0xa7')](_0x285fe7[_0x3d9057('0x2')],qs[_0x3d9057('0x93')](_0x3bec40[_0x3d9057('0x4b')][_0x3d9057('0x93')])),_0x25b695['attributes']=_0x25b695['attributes']['length']?_0x25b695[_0x3d9057('0x85')]:_0x285fe7[_0x3d9057('0x2')],typeof _0x3bec40[_0x3d9057('0x4b')][_0x3d9057('0x59')]===_0x3d9057('0x40')&&(_0x25b695[_0x3d9057('0x81')]=qs[_0x3d9057('0x81')](_0x3bec40['query'][_0x3d9057('0x81')]),_0x25b695['offset']=qs['offset'](_0x3bec40['query'][_0x3d9057('0x66')])),_0x25b695[_0x3d9057('0xf')]=qs[_0x3d9057('0x5e')](_0x3bec40[_0x3d9057('0x4b')][_0x3d9057('0x5e')]),_0x25b695['where']=qs[_0x3d9057('0x65')](_[_0x3d9057('0x32')](_0x3bec40[_0x3d9057('0x4b')],_0x285fe7['filters'])),_0x25b695[_0x3d9057('0x5f')][_0x3d9057('0x8c')]=_0x42a651['id'],_0x3bec40[_0x3d9057('0x4b')]['filter']&&(_0x25b695[_0x3d9057('0x5f')]=_['merge'](_0x25b695[_0x3d9057('0x5f')],{[Op['or']]:_[_0x3d9057('0x67')](_0x25b695[_0x3d9057('0x85')],function(_0xbebd95){const _0x501b91=_0x3d9057,_0x5b36b7={};return _0x5b36b7[_0xbebd95]={[Op[_0x501b91('0x47')]]:'%'+_0x3bec40[_0x501b91('0x4b')]['filter']+'%'},_0x5b36b7;})})),_0x25b695=_[_0x3d9057('0x1')]({},_0x25b695,_0x3bec40[_0x3d9057('0x80')]),db[_0x3d9057('0x69')][_0x3d9057('0x1e')]({'where':_0x25b695[_0x3d9057('0x5f')]})[_0x3d9057('0x15')](function(_0x58ff9b){const _0xcb7518=_0x3d9057;return _0x412775[_0xcb7518('0x1e')]=_0x58ff9b,_0x3bec40[_0xcb7518('0x4b')][_0xcb7518('0x87')]&&(_0x25b695['include']=[{'all':!![]}]),db[_0xcb7518('0x69')][_0xcb7518('0x35')](_0x25b695);})[_0x3d9057('0x15')](function(_0x4f32cb){return _0x412775['rows']=_0x4f32cb,_0x412775;});})['then'](respondWithFilteredResult(_0x4a1abd,_0x25b695))['catch'](handleError(_0x4a1abd,null));},exports['removeDispositions']=function(_0x2298d4,_0x2cf9ec){const _0x5c5f52=_0xc58528;return db[_0x5c5f52('0x7d')][_0x5c5f52('0x36')]({'where':{'id':_0x2298d4[_0x5c5f52('0x4e')]['id']}})[_0x5c5f52('0x15')](handleEntityNotFound(_0x2cf9ec,null))[_0x5c5f52('0x15')](function(_0x474cce){const _0x297033=_0x5c5f52;if(_0x474cce)return _0x474cce[_0x297033('0xd')](_0x2298d4['query']['ids']);})[_0x5c5f52('0x15')](respondWithStatusCode(_0x2cf9ec,null))['catch'](handleError(_0x2cf9ec,null));},exports[_0xc58528('0x97')]=function(_0x413b38,_0x35bb77){const _0x537d6f=_0xc58528;return _0x413b38[_0x537d6f('0x17')]['id']&&delete _0x413b38['body']['id'],db[_0x537d6f('0x7d')]['findOne']({'where':{'id':_0x413b38[_0x537d6f('0x4e')]['id']}})['then'](handleEntityNotFound(_0x35bb77,null))[_0x537d6f('0x15')](function(_0x246e7a){const _0x50c0f7=_0x537d6f;if(_0x246e7a)return _0x413b38[_0x50c0f7('0x17')]['FaxAccountId']=_0x246e7a['id'],db[_0x50c0f7('0x57')][_0x50c0f7('0x14')](_0x413b38[_0x50c0f7('0x17')]);})[_0x537d6f('0x15')](respondWithResult(_0x35bb77,null))['catch'](handleError(_0x35bb77,null));},exports[_0xc58528('0x31')]=function(_0x1e1a46,_0x256396){const _0x19efc9=_0xc58528;let _0x427c10={'raw':![],'where':{}};const _0x2cb864={},_0x5657cc={'count':0x0,'rows':[]};return db['FaxAccount'][_0x19efc9('0x36')]({'where':{'id':_0x1e1a46[_0x19efc9('0x4e')]['id']}})[_0x19efc9('0x15')](handleEntityNotFound(_0x256396,null))['then'](function(_0x57b02a){const _0x272dce=_0x19efc9;if(_0x57b02a)return _0x2cb864[_0x272dce('0x2')]=_[_0x272dce('0x58')](db[_0x272dce('0x57')]['rawAttributes']),_0x2cb864['query']=_[_0x272dce('0x58')](_0x1e1a46[_0x272dce('0x4b')]),_0x2cb864['filters']=_['intersection'](_0x2cb864['model'],_0x2cb864[_0x272dce('0x4b')]),_0x427c10[_0x272dce('0x85')]=_[_0x272dce('0xa7')](_0x2cb864[_0x272dce('0x2')],qs['fields'](_0x1e1a46[_0x272dce('0x4b')][_0x272dce('0x93')])),_0x427c10[_0x272dce('0x85')]=_0x427c10['attributes'][_0x272dce('0x9d')]?_0x427c10[_0x272dce('0x85')]:_0x2cb864[_0x272dce('0x2')],typeof _0x1e1a46[_0x272dce('0x4b')][_0x272dce('0x59')]===_0x272dce('0x40')&&(_0x427c10[_0x272dce('0x81')]=qs[_0x272dce('0x81')](_0x1e1a46[_0x272dce('0x4b')]['limit']),_0x427c10['offset']=qs[_0x272dce('0x66')](_0x1e1a46[_0x272dce('0x4b')][_0x272dce('0x66')])),_0x427c10[_0x272dce('0xf')]=qs[_0x272dce('0x5e')](_0x1e1a46[_0x272dce('0x4b')][_0x272dce('0x5e')]),_0x427c10['where']=qs[_0x272dce('0x65')](_[_0x272dce('0x32')](_0x1e1a46[_0x272dce('0x4b')],_0x2cb864[_0x272dce('0x65')])),_0x427c10[_0x272dce('0x5f')][_0x272dce('0x8c')]=_0x57b02a['id'],_0x1e1a46[_0x272dce('0x4b')][_0x272dce('0x6d')]&&(_0x427c10[_0x272dce('0x5f')]=_[_0x272dce('0x1')](_0x427c10[_0x272dce('0x5f')],{[Op['or']]:_[_0x272dce('0x67')](_0x427c10[_0x272dce('0x85')],function(_0x57d238){const _0x2c574f=_0x272dce,_0x1b1db3={};return _0x1b1db3[_0x57d238]={[Op[_0x2c574f('0x47')]]:'%'+_0x1e1a46[_0x2c574f('0x4b')][_0x2c574f('0x6d')]+'%'},_0x1b1db3;})})),_0x427c10=_[_0x272dce('0x1')]({},_0x427c10,_0x1e1a46[_0x272dce('0x80')]),db[_0x272dce('0x57')][_0x272dce('0x1e')]({'where':_0x427c10[_0x272dce('0x5f')]})[_0x272dce('0x15')](function(_0x256f64){const _0x3a420f=_0x272dce;return _0x5657cc[_0x3a420f('0x1e')]=_0x256f64,_0x1e1a46[_0x3a420f('0x4b')][_0x3a420f('0x87')]&&(_0x427c10[_0x3a420f('0x2d')]=[{'all':!![]}]),db[_0x3a420f('0x57')][_0x3a420f('0x35')](_0x427c10);})[_0x272dce('0x15')](function(_0x346483){const _0x4e5da9=_0x272dce;return _0x5657cc[_0x4e5da9('0x7c')]=_0x346483,_0x5657cc;});})[_0x19efc9('0x15')](respondWithFilteredResult(_0x256396,_0x427c10))[_0x19efc9('0x5c')](handleError(_0x256396,null));},exports[_0xc58528('0x21')]=function(_0x5d84e0,_0x1470a2){const _0x44e2af=_0xc58528;return db[_0x44e2af('0x7d')][_0x44e2af('0x36')]({'where':{'id':_0x5d84e0['params']['id']}})[_0x44e2af('0x15')](handleEntityNotFound(_0x1470a2,null))['then'](function(_0x275dce){const _0x567b43=_0x44e2af;if(_0x275dce)return _0x275dce[_0x567b43('0x21')](_0x5d84e0[_0x567b43('0x4b')][_0x567b43('0x62')]);})[_0x44e2af('0x15')](respondWithStatusCode(_0x1470a2,null))['catch'](handleError(_0x1470a2,null));},exports['addInteraction']=function(_0x5ef97f,_0x575add){const _0x65afe2=_0xc58528;return db['FaxInteraction'][_0x65afe2('0x36')]({'where':{'id':_0x5ef97f[_0x65afe2('0x4e')]['id']}})['then'](function(_0x4c0e7d){const _0x4ebdee=_0x65afe2;if(_0x4c0e7d)return _0x4c0e7d['addInteraction'](_0x5ef97f[_0x4ebdee('0x17')][_0x4ebdee('0x62')],{'through':_['omit'](_0x5ef97f[_0x4ebdee('0x17')],[_0x4ebdee('0x62'),'id'])});})[_0x65afe2('0x15')](respondWithResult(_0x575add,null))[_0x65afe2('0x5c')](handleError(_0x575add,null));},exports[_0xc58528('0x11')]=function(_0x125e28,_0x522c59){const _0x56a2d1=_0xc58528;let _0x38a92f={'raw':![],'where':{}};const _0x44e3fe={},_0x16fc9f={'count':0x0,'rows':[]};return db[_0x56a2d1('0x7d')][_0x56a2d1('0x36')]({'where':{'id':_0x125e28[_0x56a2d1('0x4e')]['id']}})[_0x56a2d1('0x15')](handleEntityNotFound(_0x522c59,null))[_0x56a2d1('0x15')](function(_0x4a08ae){const _0x114583=_0x56a2d1;if(_0x4a08ae)return _0x44e3fe['model']=_[_0x114583('0x58')](db[_0x114583('0xa6')][_0x114583('0x53')]),_0x44e3fe['query']=_['keys'](_0x125e28[_0x114583('0x4b')]),_0x44e3fe['filters']=_[_0x114583('0xa7')](_0x44e3fe[_0x114583('0x2')],_0x44e3fe['query']),_0x38a92f[_0x114583('0x85')]=_['intersection'](_0x44e3fe[_0x114583('0x2')],qs[_0x114583('0x93')](_0x125e28[_0x114583('0x4b')][_0x114583('0x93')])),_0x38a92f[_0x114583('0x85')]=_0x38a92f[_0x114583('0x85')][_0x114583('0x9d')]?_0x38a92f[_0x114583('0x85')]:_0x44e3fe[_0x114583('0x2')],typeof _0x125e28['query'][_0x114583('0x59')]===_0x114583('0x40')&&(_0x38a92f[_0x114583('0x81')]=qs[_0x114583('0x81')](_0x125e28['query'][_0x114583('0x81')]),_0x38a92f['offset']=qs['offset'](_0x125e28[_0x114583('0x4b')][_0x114583('0x66')])),_0x38a92f['order']=qs[_0x114583('0x5e')](_0x125e28[_0x114583('0x4b')][_0x114583('0x5e')]),_0x38a92f[_0x114583('0x5f')]=qs[_0x114583('0x65')](_[_0x114583('0x32')](_0x125e28[_0x114583('0x4b')],_0x44e3fe[_0x114583('0x65')])),_0x38a92f[_0x114583('0x5f')][_0x114583('0x8c')]=_0x4a08ae['id'],_0x125e28['query'][_0x114583('0x6d')]&&(_0x38a92f[_0x114583('0x5f')]=_[_0x114583('0x1')](_0x38a92f[_0x114583('0x5f')],{[Op['or']]:_[_0x114583('0x67')](_0x38a92f['attributes'],function(_0x3d084d){const _0x13ecd2=_0x114583,_0x71a94={};return _0x71a94[_0x3d084d]={[Op[_0x13ecd2('0x47')]]:'%'+_0x125e28[_0x13ecd2('0x4b')][_0x13ecd2('0x6d')]+'%'},_0x71a94;})})),_0x38a92f=_[_0x114583('0x1')]({},_0x38a92f,_0x125e28[_0x114583('0x80')]),db[_0x114583('0xa6')]['count']({'where':_0x38a92f['where']})[_0x114583('0x15')](function(_0xaf6bc5){const _0x56e9c2=_0x114583;return _0x16fc9f[_0x56e9c2('0x1e')]=_0xaf6bc5,_0x125e28[_0x56e9c2('0x4b')][_0x56e9c2('0x87')]&&(_0x38a92f[_0x56e9c2('0x2d')]=[{'model':db[_0x56e9c2('0x9b')],'as':_0x56e9c2('0x5b'),'required':![]},{'model':db[_0x56e9c2('0x8f')],'as':_0x56e9c2('0x2a'),'attributes':[_0x56e9c2('0x1c'),_0x56e9c2('0x6e'),_0x56e9c2('0xa3')],'required':![]},{'model':db[_0x56e9c2('0x5')],'as':'Tags','attributes':['id',_0x56e9c2('0x1c'),'color'],'where':_0x125e28['query']['tag']?{'id':_0x125e28[_0x56e9c2('0x4b')][_0x56e9c2('0x54')]}:undefined,'required':_0x125e28[_0x56e9c2('0x4b')][_0x56e9c2('0x54')]?!![]:![]}]),db[_0x56e9c2('0xa6')][_0x56e9c2('0x35')](_0x38a92f);})['then'](function(_0x24865c){const _0x64e426=_0x114583;return _0x16fc9f[_0x64e426('0x7c')]=_0x24865c,_0x16fc9f;});})[_0x56a2d1('0x15')](respondWithFilteredResult(_0x522c59,_0x38a92f))[_0x56a2d1('0x5c')](handleError(_0x522c59,null));},exports[_0xc58528('0xa0')]=function(_0x11c0b9,_0x50708d){const _0x400fec=_0xc58528;return db[_0x400fec('0x7d')][_0x400fec('0x36')]({'where':{'id':_0x11c0b9[_0x400fec('0x4e')]['id']}})['then'](handleEntityNotFound(_0x50708d,null))[_0x400fec('0x15')](function(_0x56a47e){const _0x700b6b=_0x400fec;if(_0x56a47e)return db['sequelize'][_0x700b6b('0x23')](function(_0x35e608){const _0x1394eb=_0x700b6b;return db[_0x1394eb('0x61')][_0x1394eb('0x6c')]({'where':{'FaxAccountId':_0x11c0b9[_0x1394eb('0x4e')]['id']},'transaction':_0x35e608})[_0x1394eb('0x15')](function(){const _0xd9b03e=_0x1394eb,_0x45a44e=_['map'](_0x11c0b9['body'],function(_0x13d12a){const _0x321db9=a186_0x5e28;return _0x13d12a[_0x321db9('0x8c')]=_0x11c0b9[_0x321db9('0x4e')]['id'],_0x13d12a;});return db[_0xd9b03e('0x61')][_0xd9b03e('0x41')](_0x45a44e,{'transaction':_0x35e608});});})[_0x700b6b('0x15')](function(){const _0x4a1fea=_0x700b6b;return db[_0x4a1fea('0x61')][_0x4a1fea('0x4f')]({'where':{'FaxAccountId':_0x11c0b9[_0x4a1fea('0x4e')]['id']},'order':_0x4a1fea('0x29')});});})[_0x400fec('0x15')](respondWithResult(_0x50708d,null))['catch'](handleError(_0x50708d,null));},exports[_0xc58528('0x7e')]=function(_0x3e297f,_0x1855c2){const _0x1455e9=_0xc58528;let _0x49a36f={};const _0x1cd30d={};let _0x5aaa08,_0x42a0da;return db[_0x1455e9('0x7d')][_0x1455e9('0x36')]({'where':{'id':_0x3e297f[_0x1455e9('0x4e')]['id']}})['then'](handleEntityNotFound(_0x1855c2,null))[_0x1455e9('0x15')](function(_0xf8bba){const _0xb2c92=_0x1455e9;if(_0xf8bba)return _0x5aaa08=_0xf8bba,_0x1cd30d[_0xb2c92('0x2')]=_[_0xb2c92('0x58')](db[_0xb2c92('0x61')][_0xb2c92('0x53')]),_0x1cd30d[_0xb2c92('0x4b')]=_[_0xb2c92('0x58')](_0x3e297f[_0xb2c92('0x4b')]),_0x1cd30d['filters']=_[_0xb2c92('0xa7')](_0x1cd30d[_0xb2c92('0x2')],_0x1cd30d[_0xb2c92('0x4b')]),_0x49a36f[_0xb2c92('0x85')]=_['intersection'](_0x1cd30d['model'],qs['fields'](_0x3e297f[_0xb2c92('0x4b')]['fields'])),_0x49a36f[_0xb2c92('0x85')]=_0x49a36f[_0xb2c92('0x85')]['length']?_0x49a36f[_0xb2c92('0x85')]:_0x1cd30d[_0xb2c92('0x2')],_0x49a36f[_0xb2c92('0xf')]=qs[_0xb2c92('0x5e')](_0x3e297f['query'][_0xb2c92('0x5e')]),_0x49a36f[_0xb2c92('0x5f')]=qs[_0xb2c92('0x65')](_['pick'](_0x3e297f[_0xb2c92('0x4b')],_0x1cd30d['filters'])),_0x3e297f[_0xb2c92('0x4b')]['filter']&&(_0x49a36f[_0xb2c92('0x5f')]=_[_0xb2c92('0x1')](_0x49a36f['where'],{[Op['or']]:_['map'](_0x49a36f[_0xb2c92('0x85')],function(_0x1578ba){const _0x5e1026=_0xb2c92,_0x2fbf17={};return _0x2fbf17[_0x1578ba]={[Op[_0x5e1026('0x47')]]:'%'+_0x3e297f[_0x5e1026('0x4b')][_0x5e1026('0x6d')]+'%'},_0x2fbf17;})})),_0x49a36f=_['merge']({},_0x49a36f,_0x3e297f[_0xb2c92('0x80')]),_0x5aaa08[_0xb2c92('0x7e')](_0x49a36f);})[_0x1455e9('0x15')](function(_0x5ba811){const _0x17cd08=_0x1455e9;if(_0x5ba811)return _0x42a0da=_0x5ba811[_0x17cd08('0x9d')],typeof _0x3e297f['query'][_0x17cd08('0x59')]===_0x17cd08('0x40')&&(_0x49a36f[_0x17cd08('0x81')]=qs['limit'](_0x3e297f[_0x17cd08('0x4b')]['limit']),_0x49a36f[_0x17cd08('0x66')]=qs[_0x17cd08('0x66')](_0x3e297f[_0x17cd08('0x4b')][_0x17cd08('0x66')])),_0x5aaa08['getApplications'](_0x49a36f);})[_0x1455e9('0x15')](function(_0xdbe8e7){if(_0xdbe8e7)return _0xdbe8e7?{'count':_0x42a0da,'rows':_0xdbe8e7}:null;})[_0x1455e9('0x15')](respondWithResult(_0x1855c2,null))[_0x1455e9('0x5c')](handleError(_0x1855c2,null));};function Extension(_0x2dd98f,_0x52a442,_0xbe8f77,_0x351663){const _0x35a4f3=_0xc58528;this['context']='from-voip-provider',this[_0x35a4f3('0x9c')]=_0x2dd98f['localstationid'],this[_0x35a4f3('0x50')]=_0x351663,this[_0x35a4f3('0xa5')]='system',this['description']=_0x35a4f3('0x20'),this['FaxAccountId']=_0x2dd98f['id'],this[_0x35a4f3('0x29')]=_0x52a442,this[_0x35a4f3('0x3e')]=_0xbe8f77;}function createExtensionsReciveFax(_0x399259){const _0x46922a=_0xc58528;let _0x13dbb5=0x1;const _0x372e96=[];_0x372e96[_0x46922a('0x24')](new Extension(_0x399259,_0x13dbb5,'',_0x46922a('0xa1'))),_0x13dbb5+=0x1,_0x372e96[_0x46922a('0x24')](new Extension(_0x399259,_0x13dbb5,_0x46922a('0x42'),'Set')),_0x13dbb5+=0x1;for(const _0x3ddc10 in _0x399259){typeof _0x399259[_0x3ddc10]!=='undefined'&&(_0x3ddc10===_0x46922a('0x6b')||_0x3ddc10===_0x46922a('0x38')||_0x3ddc10===_0x46922a('0x4c')||_0x3ddc10==='faxdetect'||_0x3ddc10===_0x46922a('0xb')||_0x3ddc10==='maxrate'||_0x3ddc10===_0x46922a('0x6a')||_0x3ddc10===_0x46922a('0x30')||_0x3ddc10===_0x46922a('0xa9'))&&(_0x372e96[_0x46922a('0x24')](new Extension(_0x399259,_0x13dbb5,_0x46922a('0x92')+_0x3ddc10+')='+_0x399259[_0x3ddc10],_0x46922a('0x3b'))),_0x13dbb5+=0x1);}return _0x372e96[_0x46922a('0x24')](new Extension(_0x399259,_0x13dbb5,'6','Wait')),_0x13dbb5+=0x1,_0x372e96['push'](new Extension(_0x399259,_0x13dbb5,'/var/opt/motion2/server/files/attachments/fax-${CALLERID(num)}-${CUT(UNIQUEID,.,1)}-${CUT(UNIQUEID,.,2)}-${STRFTIME(,,%C%y%m%d%H%M%S)}-rx.tif,d','ReceiveFax')),_0x13dbb5=0x0,_0x372e96;}exports[_0xc58528('0x2c')]=function(_0xe8e245,_0xa82ce){const _0x27b537=_0xc58528;let _0x22b307;return db[_0x27b537('0x7f')]['transaction'](function(_0x54577a){const _0x48a594=_0x27b537;return db[_0x48a594('0x7d')]['create'](_0xe8e245[_0x48a594('0x17')],{'transaction':_0x54577a})['then'](function(_0x19a73b){const _0x481cfb=_0x48a594;return _0x22b307=_0x19a73b[_0x481cfb('0x10')]({'plain':!![]}),db[_0x481cfb('0x5a')][_0x481cfb('0x41')](createExtensionsReciveFax(_0x22b307),{'transaction':_0x54577a});});})[_0x27b537('0x15')](function(){return _0x22b307;})['then'](respondWithResult(_0xa82ce,null))[_0x27b537('0x5c')](handleError(_0xa82ce,null));},exports[_0xc58528('0x88')]=function(_0x24c7d3,_0x123386){const _0x28d95b=_0xc58528;return db[_0x28d95b('0x7f')][_0x28d95b('0x23')](function(_0x26daa8){const _0x2ee91a=_0x28d95b;return db[_0x2ee91a('0x7d')][_0x2ee91a('0x4')](_0x24c7d3[_0x2ee91a('0x17')],{'where':{'id':_0x24c7d3[_0x2ee91a('0x17')]['id']},'transaction':_0x26daa8})[_0x2ee91a('0x15')](function(){const _0x3133e4=_0x2ee91a;return db[_0x3133e4('0x5a')][_0x3133e4('0x6c')]({'where':{'FaxAccountId':_0x24c7d3['body']['id']},'transaction':_0x26daa8})[_0x3133e4('0x15')](function(){const _0x363c18=_0x3133e4;return db[_0x363c18('0x5a')][_0x363c18('0x41')](createExtensionsReciveFax(_['omit'](_0x24c7d3['body'],[_0x363c18('0x71'),_0x363c18('0x3a'),_0x363c18('0x28'),_0x363c18('0x5d'),_0x363c18('0x8e'),'ListId'])),{'transaction':_0x26daa8});});});})[_0x28d95b('0x15')](function(){const _0x1eb8e3=_0x28d95b;return db[_0x1eb8e3('0x7d')][_0x1eb8e3('0x9')](_0x24c7d3[_0x1eb8e3('0x17')]['id']);})[_0x28d95b('0x15')](respondWithResult(_0x123386,null))[_0x28d95b('0x5c')](handleError(_0x123386,null));},exports[_0xc58528('0x19')]=function(_0x593e2d,_0x4d3cb5){const _0x4b0afc=_0xc58528;let _0x4556ea={'raw':!![],'where':{}};const _0x3fed29={},_0x2779b1={'count':0x0,'rows':[]};return db[_0x4b0afc('0x7d')][_0x4b0afc('0x36')]({'where':{'id':_0x593e2d[_0x4b0afc('0x4e')]['id']}})['then'](handleEntityNotFound(_0x4d3cb5,null))[_0x4b0afc('0x15')](function(_0x3b4a8c){const _0x110e99=_0x4b0afc;if(_0x3b4a8c){_0x3fed29['model']=_[_0x110e99('0x58')](db['FaxMessage'][_0x110e99('0x53')]),_0x3fed29[_0x110e99('0x4b')]=_[_0x110e99('0x58')](_0x593e2d[_0x110e99('0x4b')]),_0x3fed29[_0x110e99('0x65')]=_[_0x110e99('0xa7')](_0x3fed29['model'],_0x3fed29[_0x110e99('0x4b')]),_0x4556ea['attributes']=_[_0x110e99('0xa7')](_0x3fed29[_0x110e99('0x2')],qs[_0x110e99('0x93')](_0x593e2d[_0x110e99('0x4b')][_0x110e99('0x93')])),_0x4556ea[_0x110e99('0x85')]=_0x4556ea['attributes']['length']?_0x4556ea['attributes']:_0x3fed29[_0x110e99('0x2')];typeof _0x593e2d[_0x110e99('0x4b')]['nolimit']===_0x110e99('0x40')&&(_0x4556ea[_0x110e99('0x81')]=qs['limit'](_0x593e2d[_0x110e99('0x4b')][_0x110e99('0x81')]),_0x4556ea[_0x110e99('0x66')]=qs[_0x110e99('0x66')](_0x593e2d['query'][_0x110e99('0x66')]));_0x4556ea[_0x110e99('0xf')]=qs[_0x110e99('0x5e')](_0x593e2d[_0x110e99('0x4b')][_0x110e99('0x5e')]),_0x4556ea[_0x110e99('0x5f')]=qs[_0x110e99('0x65')](_['pick'](_0x593e2d[_0x110e99('0x4b')],_0x3fed29[_0x110e99('0x65')])),_0x4556ea['where'][_0x110e99('0x8c')]=_0x3b4a8c['id'];_0x593e2d[_0x110e99('0x4b')][_0x110e99('0x6d')]&&(_0x4556ea['where']=_[_0x110e99('0x1')](_0x4556ea['where'],{[Op['or']]:_[_0x110e99('0x67')](_0x4556ea[_0x110e99('0x85')],function(_0x1b37b4){const _0x30702c=_0x110e99,_0x143aab={};return _0x143aab[_0x1b37b4]={[Op[_0x30702c('0x47')]]:'%'+_0x593e2d[_0x30702c('0x4b')][_0x30702c('0x6d')]+'%'},_0x143aab;})}));if(_0x593e2d[_0x110e99('0x4b')][_0x110e99('0x6f')]){const _0x4e24a6=_0x593e2d[_0x110e99('0x4b')][_0x110e99('0x6f')][_0x110e99('0x84')](','),_0x5b07d9={};_0x5b07d9[_0x4e24a6[0x0]]={[Op[_0x110e99('0x74')]]:moment(_0x4e24a6[0x1])[_0x110e99('0x76')](_0x110e99('0x25'))},_0x4556ea[_0x110e99('0x5f')]=_[_0x110e99('0x1')](_0x4556ea['where'],_0x5b07d9);}return _0x4556ea=_[_0x110e99('0x1')]({},_0x4556ea,_0x593e2d['options']),db[_0x110e99('0x73')]['count']({'where':_0x4556ea[_0x110e99('0x5f')]})['then'](function(_0xfae3bf){const _0x4291bb=_0x110e99;return _0x2779b1[_0x4291bb('0x1e')]=_0xfae3bf,_0x593e2d[_0x4291bb('0x4b')]['includeAll']&&(_0x4556ea[_0x4291bb('0x2d')]=[{'all':!![]}]),db[_0x4291bb('0x73')]['findAll'](_0x4556ea);})['then'](function(_0x2b46cf){const _0x32d65e=_0x110e99;return _0x2779b1[_0x32d65e('0x7c')]=_0x2b46cf,_0x2779b1;});}})['then'](respondWithFilteredResult(_0x4d3cb5,_0x4556ea))[_0x4b0afc('0x5c')](handleError(_0x4d3cb5,null));},exports['send']=function(_0x221c2a,_0x49002f){const _0x2471b5=_0xc58528;let _0x5cded5,_0x33c653;return _0x221c2a['body']['to']&&(_0x33c653=_0x221c2a[_0x2471b5('0x17')]['to'][0x0]),db['FaxAccount'][_0x2471b5('0x36')]({'where':{'id':_0x221c2a[_0x2471b5('0x4e')]['id']},'include':[{'model':db[_0x2471b5('0x60')],'as':_0x2471b5('0x9f'),'include':[{'model':db[_0x2471b5('0x9b')],'as':'Contacts','where':{'fax':_0x33c653},'limit':0x1,'order':[[_0x2471b5('0x5d'),_0x2471b5('0x9e')]]}]}]})[_0x2471b5('0x15')](handleEntityNotFound(_0x49002f,null))[_0x2471b5('0x15')](function(_0x55919b){const _0x1c77fb=_0x2471b5;_0x5cded5=_0x55919b;if(_0x221c2a[_0x1c77fb('0x17')][_0x1c77fb('0x4d')]&&_0x221c2a[_0x1c77fb('0x17')][_0x1c77fb('0x4d')][_0x1c77fb('0x9d')])for(let _0x35ee0b=0x0;_0x35ee0b<_0x221c2a[_0x1c77fb('0x17')][_0x1c77fb('0x4d')][_0x1c77fb('0x9d')];_0x35ee0b+=0x1){_0x221c2a['body'][_0x1c77fb('0x4d')][_0x35ee0b]={'filename':_0x221c2a[_0x1c77fb('0x17')][_0x1c77fb('0x4d')][_0x35ee0b][_0x1c77fb('0x1c')],'id':_0x221c2a[_0x1c77fb('0x17')][_0x1c77fb('0x4d')][_0x35ee0b]['id'],'path':path[_0x1c77fb('0x1d')](config[_0x1c77fb('0x64')],_0x1c77fb('0x33'),_0x221c2a[_0x1c77fb('0x17')][_0x1c77fb('0x4d')][_0x35ee0b][_0x1c77fb('0x44')])};}return respondWithRpcPromise('CheckAfterSend',_0x1c77fb('0x34'),{'FaxAccountId':_[_0x1c77fb('0x8d')](_0x221c2a['params']['id'])?undefined:_0x221c2a['params']['id'],'path':_[_0x1c77fb('0x8d')](_0x221c2a['body'][_0x1c77fb('0x4d')][0x0][_0x1c77fb('0x63')])?undefined:_0x221c2a[_0x1c77fb('0x17')][_0x1c77fb('0x4d')][0x0][_0x1c77fb('0x63')],'fax':_[_0x1c77fb('0x8d')](_0x221c2a[_0x1c77fb('0x17')]['to'][0x0])?undefined:_0x221c2a[_0x1c77fb('0x17')]['to'][0x0]},client9002);})[_0x2471b5('0x15')](function(){const _0x34dad5=_0x2471b5;if(_0x5cded5){_['isNil'](_0x221c2a[_0x34dad5('0x17')][_0x34dad5('0x98')])&&(_0x221c2a[_0x34dad5('0x17')][_0x34dad5('0x98')]=util['format']('\x22%s\x22\x20<%s>',_0x5cded5['name'],_0x5cded5[_0x34dad5('0x8b')]));if(_0x5cded5[_0x34dad5('0x9f')])return _0x5cded5[_0x34dad5('0x9f')][_0x34dad5('0x2f')][_0x34dad5('0x9d')]?_0x5cded5[_0x34dad5('0x9f')]['Contacts'][0x0]:db[_0x34dad5('0x9b')][_0x34dad5('0x14')](_[_0x34dad5('0xab')](_0x221c2a[_0x34dad5('0x17')],{'firstName':_0x221c2a[_0x34dad5('0x17')]['to'][0x0],'phone':_0x221c2a[_0x34dad5('0x17')]['to'][0x0],'fax':_0x221c2a[_0x34dad5('0x17')]['to'][0x0],'ListId':_0x5cded5[_0x34dad5('0x3')]}));else throw new Error(_0x34dad5('0x95'));}else throw new Error('Send\x20Fax\x20failed');})[_0x2471b5('0x15')](function(_0x43e3a2){const _0x36a19c=_0x2471b5;if(_0x43e3a2)return db[_0x36a19c('0xa6')][_0x36a19c('0x36')]({'where':{'ContactId':_0x43e3a2['id'],'closed':![],'FaxAccountId':_0x5cded5['id']}})[_0x36a19c('0x15')](function(_0x2dca9b){const _0x6c53a2=_0x36a19c;if(_0x2dca9b)return[_0x2dca9b,![]];return db['FaxInteraction']['create']({'UserId':_0x221c2a[_0x6c53a2('0x56')]['id'],'ContactId':_0x43e3a2['id'],'FaxAccountId':_0x5cded5['id'],'fax':_0x221c2a[_0x6c53a2('0x17')]['to'][0x0],'firstMsgDirection':_0x6c53a2('0x52'),'Messages':[_[_0x6c53a2('0x1')](_0x221c2a[_0x6c53a2('0x17')],{'read':![],'body':_0x221c2a[_0x6c53a2('0x17')][_0x6c53a2('0x4d')][0x0][_0x6c53a2('0x2e')],'FaxAccountId':_0x5cded5['id'],'UserId':_0x221c2a[_0x6c53a2('0x56')]['id'],'ContactId':_0x43e3a2['id'],'AttachmentId':_0x221c2a[_0x6c53a2('0x17')][_0x6c53a2('0x4d')][0x0]['id']})]},{'include':[{'model':db[_0x6c53a2('0x73')],'as':_0x6c53a2('0x1f')}]})['then'](function(_0x3ac09a){return[_0x3ac09a,!![]];});});else throw new Error(_0x36a19c('0x79'));})[_0x2471b5('0x15')](function([_0x20a1e8,_0x4c50c2]){const _0x181111=_0x2471b5;if(_0x4c50c2)return _0x20a1e8;return db[_0x181111('0x73')][_0x181111('0x14')]({'direction':_0x181111('0x52'),'read':![],'body':_0x221c2a[_0x181111('0x17')]['attachments'][0x0][_0x181111('0x2e')],'FaxAccountId':_0x5cded5['id'],'FaxInteractionId':_0x20a1e8['id'],'UserId':_0x221c2a['user']['id'],'ContactId':_0x20a1e8[_0x181111('0xe')],'AttachmentId':_0x221c2a[_0x181111('0x17')]['attachments'][0x0]['id']})[_0x181111('0x15')](function(_0x1fcc4b){const _0x5538aa=_0x181111;return _0x20a1e8['dataValues'][_0x5538aa('0x1f')]=[],_0x20a1e8['dataValues']['Messages'][_0x5538aa('0x24')](_0x1fcc4b['dataValues']),_0x20a1e8;});})[_0x2471b5('0x15')](function(_0x542d97){const _0x572025=_0x2471b5;return respondWithRpcPromise(_0x572025('0x4a'),_0x572025('0x4a'),{'FaxAccountId':_[_0x572025('0x8d')](_0x221c2a[_0x572025('0x4e')]['id'])?undefined:_0x221c2a['params']['id'],'path':_[_0x572025('0x8d')](_0x221c2a[_0x572025('0x17')]['attachments'][0x0][_0x572025('0x63')])?undefined:_0x221c2a['body']['attachments'][0x0][_0x572025('0x63')],'fax':_['isNil'](_0x221c2a[_0x572025('0x17')]['to'][0x0])?undefined:_0x221c2a[_0x572025('0x17')]['to'][0x0],'AttachmentId':_0x221c2a[_0x572025('0x17')]['attachments'][0x0]['id']},client9002)[_0x572025('0x15')](function(_0x5265b8){const _0x4bb94f=_0x572025;logger[_0x4bb94f('0x8a')](_0x4bb94f('0x94'),_0x5265b8);})['catch'](function(_0x40233f){const _0x51b353=_0x572025;logger[_0x51b353('0x8a')](_0x51b353('0x94'),_0x40233f);}),_0x542d97;})['then'](respondWithResult(_0x49002f,null))[_0x2471b5('0x5c')](handleError(_0x49002f,null));},exports[_0xc58528('0x37')]=function(_0x40bac6,_0x9d5fb7){const _0x125836=_0xc58528;return db['FaxAccount']['findOne']({'where':{'id':_0x40bac6[_0x125836('0x4e')]['id']}})[_0x125836('0x15')](function(_0x5ee820){const _0x14a106=_0x125836;if(_0x5ee820)return _0x5ee820[_0x14a106('0x37')](_0x40bac6[_0x14a106('0x17')][_0x14a106('0x62')],{'through':_[_0x14a106('0xa8')](_0x40bac6[_0x14a106('0x17')],[_0x14a106('0x62'),'id'])})[_0x14a106('0x15')](function(_0x11f088){const _0x467388=_0x14a106;for(let _0x1a0b81=0x0;_0x1a0b81<_0x40bac6[_0x467388('0x17')]['ids'][_0x467388('0x9d')];_0x1a0b81+=0x1){socket[_0x467388('0x45')](_0x467388('0x13'),{'UserId':_0x40bac6[_0x467388('0x17')][_0x467388('0x62')][_0x1a0b81],'FaxAccountId':_0x40bac6[_0x467388('0x4e')]['id']});}return _0x11f088;});})['then'](respondWithResult(_0x9d5fb7,null))[_0x125836('0x5c')](handleError(_0x9d5fb7,null));},exports[_0xc58528('0xc')]=function(_0x5e199e,_0x1de04f){const _0x10834f=_0xc58528;return db[_0x10834f('0x7d')][_0x10834f('0x36')]({'where':{'id':_0x5e199e['params']['id']}})[_0x10834f('0x15')](handleEntityNotFound(_0x1de04f,null))['then'](function(_0x11a238){const _0x4e3bd4=_0x10834f;if(_0x11a238)return _0x11a238[_0x4e3bd4('0xc')](_0x5e199e['query'][_0x4e3bd4('0x62')])[_0x4e3bd4('0x15')](function(){const _0x385ac4=_0x4e3bd4;if(_[_0x385ac4('0x99')](_0x5e199e[_0x385ac4('0x4b')]['ids']))for(let _0xa48408=0x0;_0xa48408<_0x5e199e[_0x385ac4('0x4b')][_0x385ac4('0x62')][_0x385ac4('0x9d')];_0xa48408+=0x1){socket[_0x385ac4('0x45')]('userFaxAccount:remove',{'UserId':Number(_0x5e199e[_0x385ac4('0x4b')]['ids'][_0xa48408]),'FaxAccountId':Number(_0x5e199e['params']['id'])});}else socket[_0x385ac4('0x45')]('userFaxAccount:remove',{'UserId':Number(_0x5e199e[_0x385ac4('0x4b')]['ids']),'FaxAccountId':Number(_0x5e199e[_0x385ac4('0x4e')]['id'])});});})['then'](respondWithStatusCode(_0x1de04f,null))[_0x10834f('0x5c')](handleError(_0x1de04f,null));},exports[_0xc58528('0x43')]=function(_0x5b1a34,_0x1b6b13){const _0x15f3a9=_0xc58528;let _0x47ff37={};const _0x38b310={};let _0xec3c27,_0x4a998c;return db[_0x15f3a9('0x7d')][_0x15f3a9('0x36')]({'where':{'id':_0x5b1a34[_0x15f3a9('0x4e')]['id']}})[_0x15f3a9('0x15')](handleEntityNotFound(_0x1b6b13,null))[_0x15f3a9('0x15')](function(_0x441576){const _0x21bc28=_0x15f3a9;if(_0x441576)return _0xec3c27=_0x441576,_0x38b310['model']=_[_0x21bc28('0x58')](db[_0x21bc28('0x8f')][_0x21bc28('0x53')]),_0x38b310[_0x21bc28('0x4b')]=_[_0x21bc28('0x58')](_0x5b1a34[_0x21bc28('0x4b')]),_0x38b310[_0x21bc28('0x65')]=_[_0x21bc28('0xa7')](_0x38b310[_0x21bc28('0x2')],_0x38b310[_0x21bc28('0x4b')]),_0x47ff37[_0x21bc28('0x85')]=_[_0x21bc28('0xa7')](_0x38b310[_0x21bc28('0x2')],qs['fields'](_0x5b1a34[_0x21bc28('0x4b')][_0x21bc28('0x93')])),_0x47ff37[_0x21bc28('0x85')]=_0x47ff37['attributes'][_0x21bc28('0x9d')]?_0x47ff37['attributes']:_0x38b310[_0x21bc28('0x2')],_0x47ff37['order']=qs[_0x21bc28('0x5e')](_0x5b1a34[_0x21bc28('0x4b')][_0x21bc28('0x5e')]),_0x47ff37[_0x21bc28('0x5f')]=qs[_0x21bc28('0x65')](_[_0x21bc28('0x32')](_0x5b1a34['query'],_0x38b310[_0x21bc28('0x65')])),_0x5b1a34[_0x21bc28('0x4b')][_0x21bc28('0x6d')]&&(_0x47ff37[_0x21bc28('0x5f')]=_[_0x21bc28('0x1')](_0x47ff37[_0x21bc28('0x5f')],{[Op['or']]:_['map'](_0x47ff37[_0x21bc28('0x85')],function(_0x2cc77b){const _0x1e0287={};return _0x1e0287[_0x2cc77b]={[Op['like']]:'%'+_0x5b1a34['query']['filter']+'%'},_0x1e0287;})})),_0x47ff37=_[_0x21bc28('0x1')]({},_0x47ff37,_0x5b1a34[_0x21bc28('0x80')]),_0xec3c27[_0x21bc28('0x43')](_0x47ff37);})[_0x15f3a9('0x15')](function(_0x3d8c74){const _0x2aa177=_0x15f3a9;if(_0x3d8c74)return _0x4a998c=_0x3d8c74[_0x2aa177('0x9d')],typeof _0x5b1a34['query'][_0x2aa177('0x59')]==='undefined'&&(_0x47ff37['limit']=qs[_0x2aa177('0x81')](_0x5b1a34[_0x2aa177('0x4b')][_0x2aa177('0x81')]),_0x47ff37[_0x2aa177('0x66')]=qs[_0x2aa177('0x66')](_0x5b1a34[_0x2aa177('0x4b')]['offset'])),_0xec3c27[_0x2aa177('0x43')](_0x47ff37);})[_0x15f3a9('0x15')](function(_0x5e11ff){if(_0x5e11ff)return _0x5e11ff?{'count':_0x4a998c,'rows':_0x5e11ff}:null;})[_0x15f3a9('0x15')](respondWithResult(_0x1b6b13,null))[_0x15f3a9('0x5c')](handleError(_0x1b6b13,null));}; \ No newline at end of file +const a186_0x97b8=['client','addAccountApplications','undefined','exten','DESC','emit','CannedAnswer','isArray','params','getDispositions','userFaxAccount:save','Owner','code','minrate','merge','dataValues','Messages','ListId','User','stringify','rows','localstationid','nolimit','FaxAccountId','format','offset','from','Content-Range','order','../../mysqldb','rawAttributes','Unable\x20to\x20retrieve\x20the\x20current\x20user','userProfileId','pick','include','mandatoryDispositionPause','updatedAt','maxrate','findByPk','fields','sort','addAnswer','Tag','UserProfileResource','getAgents','ids','like','gateway','app','removeAgents','description','end','index','json','findAll','catch','FaxAccount,\x20%s,\x20%s,\x20%s','createdAt','util','../../rediscache','addAgents','findAndCountAll','intersection','request','tag','update','ContactId','options','join','FaxMessage','register','CmList','Disposition','user','Set','lodash','http','attributes','request\x20sent','$gte','where','count','path','name','fax','describe','Pause','addInteraction','sendStatus','FaxApplication','FaxAccounts','CheckAfterSend','get','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','info','VIRTUAL','length','filters','body','Wait','../../config/logger','updateAccountApplications','from-voip-provider','userFaxAccount:remove','root','./faxAccount.socket','filter','TrunkId','removeAnswers','headerinfo','priority','split','Contacts','includeAll','tech','stack','CmContact','bulkCreate','system','color','Tags','Contact\x20not\x20found','addDisposition','show','gte','FAXOPT(','removeDispositions','getApplications','transaction','send','fullname','UserProfileSection','limit','keys','then','create','FaxInteraction','error','faxdetect','set','FaxAccount','status','Answer','query','\x22%s\x22\x20<%s>','map','fieldName','addApplications','sequelize','out','key','type','omit','VoiceExtension','destroy','server/files/attachments','FaxAccount,\x20%s,\x20%s','SendFax','getInteractions','model','filename','message','findOne','List','context','attachments','t38timeout','isNil','appdata','push','result'];(function(_0x2063a1,_0x97b8ea){const _0x1e7c6b=function(_0x1dc351){while(--_0x1dc351){_0x2063a1['push'](_0x2063a1['shift']());}};_0x1e7c6b(++_0x97b8ea);}(a186_0x97b8,0x1b5));const a186_0x1e7c=function(_0x2063a1,_0x97b8ea){_0x2063a1=_0x2063a1-0x0;let _0x1e7c6b=a186_0x97b8[_0x2063a1];return _0x1e7c6b;};const _0x46310e=a186_0x1e7c;'use strict';const moment=require('moment'),util=require(_0x46310e('0x86')),path=require(_0x46310e('0x9e')),_=require(_0x46310e('0x97')),{getSocket}=require(_0x46310e('0x87')),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0x46310e('0x5'))('api'),config=require('../../config/environment'),db=require(_0x46310e('0x69'))['db'],{Op}=require(_0x46310e('0x35'));require(_0x46310e('0xa'))[_0x46310e('0x92')](socket);const jayson=require('jayson/promise'),client=jayson[_0x46310e('0x4c')][_0x46310e('0x98')]({'port':0x232c}),client9002=jayson[_0x46310e('0x4c')][_0x46310e('0x98')]({'port':0x232a});function respondWithRpcPromise(_0x1dc351,_0x43c72f,_0xc9335b,_0x14a66e){return new Promise(function(_0x3b175d,_0xc96c66){const _0x20562d=a186_0x1e7c,_0x3d3e74=_0x14a66e||client;return _0x3d3e74[_0x20562d('0x8b')](_0x1dc351,_0xc9335b)[_0x20562d('0x27')](function(_0x439d71){const _0x2150c3=_0x20562d;logger['info'](_0x2150c3('0x3d'),_0x43c72f,_0x2150c3('0x9a')),logger['debug'](_0x2150c3('0x84'),_0x43c72f,_0x2150c3('0x9a'),JSON[_0x2150c3('0x5f')](_0x439d71));if(_0x439d71[_0x2150c3('0x2a')]){if(_0x439d71[_0x2150c3('0x2a')][_0x2150c3('0x58')]===0x1f4)return logger[_0x2150c3('0x2a')]('FaxAccount,\x20%s,\x20%s',_0x43c72f,_0x439d71['error'][_0x2150c3('0x42')]),_0xc96c66(_0x439d71[_0x2150c3('0x2a')][_0x2150c3('0x42')]);return logger[_0x2150c3('0x2a')](_0x2150c3('0x3d'),_0x43c72f,_0x439d71[_0x2150c3('0x2a')][_0x2150c3('0x42')]),_0x3b175d(_0x439d71[_0x2150c3('0x2a')]['message']);}else logger['info'](_0x2150c3('0x3d'),_0x43c72f,_0x2150c3('0x9a')),_0x3b175d(_0x439d71[_0x2150c3('0x4b')]['message']);})[_0x20562d('0x83')](function(_0x29ea01){const _0x3c6e11=_0x20562d;logger[_0x3c6e11('0x2a')](_0x3c6e11('0x3d'),_0x43c72f,_0x29ea01),_0xc96c66(_0x29ea01);});});}function respondWithStatusCode(_0x582050,_0x8e16c0){return _0x8e16c0=_0x8e16c0||0xcc,function(_0x226d3f){const _0x2404a4=a186_0x1e7c;if(_0x226d3f)return _0x582050[_0x2404a4('0xa4')](_0x8e16c0);return _0x582050[_0x2404a4('0x2e')](_0x8e16c0)[_0x2404a4('0x7f')]();};}function respondWithResult(_0x5c948e,_0x3cbe52){return _0x3cbe52=_0x3cbe52||0xc8,function(_0x5d5df4){const _0xcfff3f=a186_0x1e7c;if(_0x5d5df4)return _0x5c948e[_0xcfff3f('0x2e')](_0x3cbe52)[_0xcfff3f('0x81')](_0x5d5df4);};}function respondWithFilteredResult(_0x46c68e,_0x2ee7be){return function(_0x1a3882){const _0x823b38=a186_0x1e7c;if(_0x1a3882){const _0x4dd628=_0x1a3882[_0x823b38('0x9d')],_0x11c530=_0x2ee7be[_0x823b38('0x65')];let _0x25c9d3=_0x2ee7be['offset']+_0x2ee7be[_0x823b38('0x25')],_0x4e3c0d;return _0x25c9d3>=_0x4dd628?(_0x25c9d3=_0x4dd628,_0x4e3c0d=0xc8):_0x4e3c0d=0xce,_0x46c68e['status'](_0x4e3c0d),_0x46c68e[_0x823b38('0x2c')](_0x823b38('0x67'),_0x11c530+'-'+_0x25c9d3+'/'+_0x4dd628)[_0x823b38('0x81')](_0x1a3882);}return null;};}function saveUpdates(_0x46c9d1){return function(_0x1c94ab){const _0x4cfaa2=a186_0x1e7c;if(_0x1c94ab)return _0x1c94ab['update'](_0x46c9d1)[_0x4cfaa2('0x27')](function(_0x29c359){return _0x29c359;});return null;};}function removeEntity(_0x2d3c1a){return function(_0x61327a){const _0x3c6c32=a186_0x1e7c;if(_0x61327a)return _0x61327a[_0x3c6c32('0x3b')]()[_0x3c6c32('0x27')](function(){const _0x5a2420=_0x3c6c32,_0x1376dd=_0x61327a[_0x5a2420('0xa8')]({'plain':!![]}),_0x1143de='FaxAccounts';return db[_0x5a2420('0x77')][_0x5a2420('0x3b')]({'where':{'type':_0x1143de,'resourceId':_0x1376dd['id']}})[_0x5a2420('0x27')](function(){return _0x61327a;});})[_0x3c6c32('0x27')](function(){const _0x3e57ff=_0x3c6c32;_0x2d3c1a[_0x3e57ff('0x2e')](0xcc)[_0x3e57ff('0x7f')]();});};}function handleEntityNotFound(_0x257e9b){return function(_0x5b8aba){const _0x35c418=a186_0x1e7c;return!_0x5b8aba&&_0x257e9b[_0x35c418('0xa4')](0x194),_0x5b8aba;};}function handleError(_0x3dd984,_0x19f975){return _0x19f975=_0x19f975||0x1f4,function(_0x3e8c72){const _0x39423=a186_0x1e7c;logger[_0x39423('0x2a')](_0x3e8c72[_0x39423('0x14')]),_0x3e8c72['name']&&delete _0x3e8c72[_0x39423('0x9f')],_0x3dd984[_0x39423('0x2e')](_0x19f975)['send'](_0x3e8c72);};}exports[_0x46310e('0x80')]=function(_0x14a610,_0x2585b3){const _0xa7b332=_0x46310e;let _0x1e18a5={'include':[{'model':db[_0xa7b332('0xa2')],'as':'mandatoryDispositionPause'}]};const _0x3fb4fc={},_0x50b057={'count':0x0,'rows':[]},_0x42e2f8=_[_0xa7b332('0x32')](db[_0xa7b332('0x2d')]['rawAttributes'],function(_0x39a0c0){const _0x21e53f=_0xa7b332;return{'name':_0x39a0c0[_0x21e53f('0x33')],'type':_0x39a0c0[_0x21e53f('0x38')][_0x21e53f('0x37')]};});_0x3fb4fc[_0xa7b332('0x40')]=_[_0xa7b332('0x32')](_0x42e2f8,_0xa7b332('0x9f')),_0x3fb4fc[_0xa7b332('0x30')]=_[_0xa7b332('0x26')](_0x14a610[_0xa7b332('0x30')]),_0x3fb4fc[_0xa7b332('0x2')]=_[_0xa7b332('0x8a')](_0x3fb4fc[_0xa7b332('0x40')],_0x3fb4fc[_0xa7b332('0x30')]),_0x1e18a5[_0xa7b332('0x99')]=_[_0xa7b332('0x8a')](_0x3fb4fc[_0xa7b332('0x40')],qs[_0xa7b332('0x73')](_0x14a610[_0xa7b332('0x30')][_0xa7b332('0x73')])),_0x1e18a5[_0xa7b332('0x99')]=_0x1e18a5[_0xa7b332('0x99')][_0xa7b332('0x1')]?_0x1e18a5['attributes']:_0x3fb4fc[_0xa7b332('0x40')];typeof _0x14a610['query'][_0xa7b332('0x62')]===_0xa7b332('0x4e')&&(_0x1e18a5[_0xa7b332('0x25')]=qs[_0xa7b332('0x25')](_0x14a610['query'][_0xa7b332('0x25')]),_0x1e18a5[_0xa7b332('0x65')]=qs[_0xa7b332('0x65')](_0x14a610[_0xa7b332('0x30')]['offset']));_0x1e18a5['order']=qs['sort'](_0x14a610[_0xa7b332('0x30')][_0xa7b332('0x74')]),_0x1e18a5[_0xa7b332('0x9c')]=qs[_0xa7b332('0x2')](_[_0xa7b332('0x6d')](_0x14a610[_0xa7b332('0x30')],_0x3fb4fc['filters']),_0x42e2f8);_0x14a610[_0xa7b332('0x30')][_0xa7b332('0xb')]&&(_0x1e18a5[_0xa7b332('0x9c')]=_[_0xa7b332('0x5a')](_0x1e18a5[_0xa7b332('0x9c')],{[Op['or']]:_[_0xa7b332('0x32')](_0x42e2f8,function(_0x371b10){const _0x2e2ad4=_0xa7b332;if(_0x371b10[_0x2e2ad4('0x38')]!==_0x2e2ad4('0x0')){const _0x55186a={};return _0x55186a[_0x371b10[_0x2e2ad4('0x9f')]]={[Op[_0x2e2ad4('0x7a')]]:'%'+_0x14a610[_0x2e2ad4('0x30')][_0x2e2ad4('0xb')]+'%'},_0x55186a;}})}));_0x1e18a5=_[_0xa7b332('0x5a')]({},_0x1e18a5,_0x14a610[_0xa7b332('0x8f')]);const _0x4c969d={'where':_0x1e18a5[_0xa7b332('0x9c')]};return db[_0xa7b332('0x2d')]['count'](_0x4c969d)[_0xa7b332('0x27')](function(_0x3efbcb){const _0x40b5a5=_0xa7b332;return _0x50b057[_0x40b5a5('0x9d')]=_0x3efbcb,_0x14a610[_0x40b5a5('0x30')][_0x40b5a5('0x12')]&&(_0x1e18a5['include']=[{'all':!![]}]),db[_0x40b5a5('0x2d')][_0x40b5a5('0x82')](_0x1e18a5);})[_0xa7b332('0x27')](function(_0x1cc472){const _0x18fbd3=_0xa7b332;return _0x50b057[_0x18fbd3('0x60')]=_0x1cc472,_0x50b057;})[_0xa7b332('0x27')](respondWithFilteredResult(_0x2585b3,_0x1e18a5))['catch'](handleError(_0x2585b3,null));},exports[_0x46310e('0x1c')]=function(_0x15ac30,_0x2de062){const _0x37d240=_0x46310e;let _0xd9f96={'raw':![],'where':{'id':_0x15ac30[_0x37d240('0x54')]['id']},'include':[{'model':db[_0x37d240('0xa2')],'as':_0x37d240('0x6f')}]};const _0x32fbee={};return _0x32fbee[_0x37d240('0x40')]=_[_0x37d240('0x26')](db[_0x37d240('0x2d')][_0x37d240('0x6a')]),_0x32fbee[_0x37d240('0x30')]=_[_0x37d240('0x26')](_0x15ac30[_0x37d240('0x30')]),_0x32fbee[_0x37d240('0x2')]=_['intersection'](_0x32fbee['model'],_0x32fbee[_0x37d240('0x30')]),_0xd9f96['attributes']=_[_0x37d240('0x8a')](_0x32fbee[_0x37d240('0x40')],qs[_0x37d240('0x73')](_0x15ac30[_0x37d240('0x30')][_0x37d240('0x73')])),_0xd9f96['attributes']=_0xd9f96[_0x37d240('0x99')][_0x37d240('0x1')]?_0xd9f96[_0x37d240('0x99')]:_0x32fbee[_0x37d240('0x40')],_0x15ac30[_0x37d240('0x30')][_0x37d240('0x12')]&&(_0xd9f96[_0x37d240('0x6e')]=[{'all':!![]}]),_0xd9f96=_[_0x37d240('0x5a')]({},_0xd9f96,_0x15ac30[_0x37d240('0x8f')]),db[_0x37d240('0x2d')][_0x37d240('0x43')](_0xd9f96)[_0x37d240('0x27')](handleEntityNotFound(_0x2de062,null))[_0x37d240('0x27')](respondWithResult(_0x2de062,null))[_0x37d240('0x83')](handleError(_0x2de062,null));},exports[_0x46310e('0x28')]=function(_0xed6b8b,_0x4687f0){const _0x193fe4=_0x46310e;return db[_0x193fe4('0x2d')][_0x193fe4('0x28')](_0xed6b8b[_0x193fe4('0x3')],{})[_0x193fe4('0x27')](function(_0x47a356){const _0x425620=_0x193fe4,_0x2e2e4a=_0xed6b8b[_0x425620('0x95')][_0x425620('0xa8')]({'plain':!![]});if(!_0x2e2e4a)throw new Error(_0x425620('0x6b'));if(_0x2e2e4a['role']===_0x425620('0x95')){const _0x49e2fb=_0x47a356[_0x425620('0xa8')]({'plain':!![]}),_0x4e1ed9=_0x425620('0xa6');return db[_0x425620('0x24')][_0x425620('0x43')]({'where':{'name':_0x4e1ed9,'userProfileId':_0x2e2e4a[_0x425620('0x6c')]},'raw':!![]})[_0x425620('0x27')](function(_0x9346db){const _0x298a9f=_0x425620;return _0x9346db&&_0x9346db['autoAssociation']===0x0?db[_0x298a9f('0x77')]['create']({'name':_0x49e2fb['name'],'resourceId':_0x49e2fb['id'],'type':_0x9346db[_0x298a9f('0x9f')],'sectionId':_0x9346db['id']},{})[_0x298a9f('0x27')](function(){return _0x47a356;}):_0x47a356;})[_0x425620('0x83')](function(_0x52fb64){const _0x3f6d99=_0x425620;logger[_0x3f6d99('0x2a')](_0x3f6d99('0xa9'),_0x52fb64);throw _0x52fb64;});}return _0x47a356;})[_0x193fe4('0x27')](respondWithResult(_0x4687f0,0xc9))[_0x193fe4('0x83')](handleError(_0x4687f0,null));},exports[_0x46310e('0x8d')]=function(_0x5510ba,_0x13da0d){const _0x2c56b0=_0x46310e;return _0x5510ba['body']['id']&&delete _0x5510ba[_0x2c56b0('0x3')]['id'],db[_0x2c56b0('0x2d')][_0x2c56b0('0x43')]({'where':{'id':_0x5510ba['params']['id']},'include':[{'model':db[_0x2c56b0('0xa2')],'as':_0x2c56b0('0x6f')}]})['then'](handleEntityNotFound(_0x13da0d,null))[_0x2c56b0('0x27')](saveUpdates(_0x5510ba[_0x2c56b0('0x3')],null))['then'](respondWithResult(_0x13da0d,null))['catch'](handleError(_0x13da0d,null));},exports[_0x46310e('0x3b')]=function(_0x23502d,_0x7d863f){const _0x30f9a6=_0x46310e;return db[_0x30f9a6('0x2d')]['findOne']({'where':{'id':_0x23502d[_0x30f9a6('0x54')]['id']}})['then'](handleEntityNotFound(_0x7d863f,null))[_0x30f9a6('0x27')](removeEntity(_0x7d863f,null))[_0x30f9a6('0x83')](handleError(_0x7d863f,null));},exports['describe']=function(_0x5df208,_0x3c9593){const _0x503473=_0x46310e;return db['FaxAccount'][_0x503473('0xa1')]()[_0x503473('0x27')](respondWithResult(_0x3c9593,null))['catch'](handleError(_0x3c9593,null));},exports[_0x46310e('0x1b')]=function(_0xbc9bad,_0x46b58f){const _0x3f487a=_0x46310e;return _0xbc9bad[_0x3f487a('0x3')]['id']&&delete _0xbc9bad[_0x3f487a('0x3')]['id'],db[_0x3f487a('0x2d')][_0x3f487a('0x43')]({'where':{'id':_0xbc9bad['params']['id']}})[_0x3f487a('0x27')](handleEntityNotFound(_0x46b58f,null))[_0x3f487a('0x27')](function(_0x197edf){const _0x3c8f4b=_0x3f487a;if(_0x197edf)return _0xbc9bad[_0x3c8f4b('0x3')][_0x3c8f4b('0x63')]=_0x197edf['id'],db[_0x3c8f4b('0x94')]['create'](_0xbc9bad[_0x3c8f4b('0x3')]);})[_0x3f487a('0x27')](respondWithResult(_0x46b58f,null))['catch'](handleError(_0x46b58f,null));},exports[_0x46310e('0x55')]=function(_0x374883,_0x2d7251){const _0xf3391e=_0x46310e;let _0x418b77={'raw':![],'where':{}};const _0x1c39c4={},_0x2f15d0={'count':0x0,'rows':[]};return db[_0xf3391e('0x2d')][_0xf3391e('0x43')]({'where':{'id':_0x374883[_0xf3391e('0x54')]['id']}})[_0xf3391e('0x27')](handleEntityNotFound(_0x2d7251,null))[_0xf3391e('0x27')](function(_0x1f8039){const _0x2719e6=_0xf3391e;if(_0x1f8039)return _0x1c39c4[_0x2719e6('0x40')]=_[_0x2719e6('0x26')](db[_0x2719e6('0x94')]['rawAttributes']),_0x1c39c4['query']=_[_0x2719e6('0x26')](_0x374883[_0x2719e6('0x30')]),_0x1c39c4['filters']=_[_0x2719e6('0x8a')](_0x1c39c4[_0x2719e6('0x40')],_0x1c39c4[_0x2719e6('0x30')]),_0x418b77[_0x2719e6('0x99')]=_[_0x2719e6('0x8a')](_0x1c39c4[_0x2719e6('0x40')],qs[_0x2719e6('0x73')](_0x374883['query']['fields'])),_0x418b77[_0x2719e6('0x99')]=_0x418b77[_0x2719e6('0x99')][_0x2719e6('0x1')]?_0x418b77[_0x2719e6('0x99')]:_0x1c39c4['model'],typeof _0x374883[_0x2719e6('0x30')][_0x2719e6('0x62')]===_0x2719e6('0x4e')&&(_0x418b77[_0x2719e6('0x25')]=qs['limit'](_0x374883[_0x2719e6('0x30')][_0x2719e6('0x25')]),_0x418b77[_0x2719e6('0x65')]=qs[_0x2719e6('0x65')](_0x374883['query'][_0x2719e6('0x65')])),_0x418b77[_0x2719e6('0x68')]=qs['sort'](_0x374883['query'][_0x2719e6('0x74')]),_0x418b77[_0x2719e6('0x9c')]=qs[_0x2719e6('0x2')](_['pick'](_0x374883['query'],_0x1c39c4[_0x2719e6('0x2')])),_0x418b77[_0x2719e6('0x9c')][_0x2719e6('0x63')]=_0x1f8039['id'],_0x374883[_0x2719e6('0x30')][_0x2719e6('0xb')]&&(_0x418b77[_0x2719e6('0x9c')]=_[_0x2719e6('0x5a')](_0x418b77[_0x2719e6('0x9c')],{[Op['or']]:_[_0x2719e6('0x32')](_0x418b77[_0x2719e6('0x99')],function(_0x5301cd){const _0x1cc620=_0x2719e6,_0x1a5f63={};return _0x1a5f63[_0x5301cd]={[Op[_0x1cc620('0x7a')]]:'%'+_0x374883[_0x1cc620('0x30')][_0x1cc620('0xb')]+'%'},_0x1a5f63;})})),_0x418b77=_['merge']({},_0x418b77,_0x374883[_0x2719e6('0x8f')]),db[_0x2719e6('0x94')][_0x2719e6('0x9d')]({'where':_0x418b77[_0x2719e6('0x9c')]})[_0x2719e6('0x27')](function(_0x2ec229){const _0x384b93=_0x2719e6;return _0x2f15d0[_0x384b93('0x9d')]=_0x2ec229,_0x374883[_0x384b93('0x30')][_0x384b93('0x12')]&&(_0x418b77[_0x384b93('0x6e')]=[{'all':!![]}]),db[_0x384b93('0x94')]['findAll'](_0x418b77);})['then'](function(_0x411273){return _0x2f15d0['rows']=_0x411273,_0x2f15d0;});})['then'](respondWithFilteredResult(_0x2d7251,_0x418b77))[_0xf3391e('0x83')](handleError(_0x2d7251,null));},exports['removeDispositions']=function(_0x551dd2,_0x17245d){const _0x70f891=_0x46310e;return db[_0x70f891('0x2d')][_0x70f891('0x43')]({'where':{'id':_0x551dd2[_0x70f891('0x54')]['id']}})[_0x70f891('0x27')](handleEntityNotFound(_0x17245d,null))[_0x70f891('0x27')](function(_0xfed530){const _0x33abd9=_0x70f891;if(_0xfed530)return _0xfed530[_0x33abd9('0x1f')](_0x551dd2[_0x33abd9('0x30')]['ids']);})['then'](respondWithStatusCode(_0x17245d,null))['catch'](handleError(_0x17245d,null));},exports[_0x46310e('0x75')]=function(_0x7edc3b,_0x2cac41){const _0x519b31=_0x46310e;return _0x7edc3b[_0x519b31('0x3')]['id']&&delete _0x7edc3b[_0x519b31('0x3')]['id'],db[_0x519b31('0x2d')][_0x519b31('0x43')]({'where':{'id':_0x7edc3b[_0x519b31('0x54')]['id']}})[_0x519b31('0x27')](handleEntityNotFound(_0x2cac41,null))[_0x519b31('0x27')](function(_0x11f32c){const _0x2ab3ce=_0x519b31;if(_0x11f32c)return _0x7edc3b[_0x2ab3ce('0x3')]['FaxAccountId']=_0x11f32c['id'],db[_0x2ab3ce('0x52')]['create'](_0x7edc3b[_0x2ab3ce('0x3')]);})['then'](respondWithResult(_0x2cac41,null))[_0x519b31('0x83')](handleError(_0x2cac41,null));},exports['getAnswers']=function(_0x35fc49,_0x2a68b8){const _0x3e60cf=_0x46310e;let _0x1bfa5f={'raw':![],'where':{}};const _0x4218cd={},_0x3ab21e={'count':0x0,'rows':[]};return db[_0x3e60cf('0x2d')][_0x3e60cf('0x43')]({'where':{'id':_0x35fc49[_0x3e60cf('0x54')]['id']}})[_0x3e60cf('0x27')](handleEntityNotFound(_0x2a68b8,null))['then'](function(_0xe925cf){const _0x596408=_0x3e60cf;if(_0xe925cf)return _0x4218cd[_0x596408('0x40')]=_[_0x596408('0x26')](db[_0x596408('0x52')][_0x596408('0x6a')]),_0x4218cd[_0x596408('0x30')]=_[_0x596408('0x26')](_0x35fc49[_0x596408('0x30')]),_0x4218cd['filters']=_[_0x596408('0x8a')](_0x4218cd['model'],_0x4218cd[_0x596408('0x30')]),_0x1bfa5f['attributes']=_['intersection'](_0x4218cd[_0x596408('0x40')],qs[_0x596408('0x73')](_0x35fc49[_0x596408('0x30')][_0x596408('0x73')])),_0x1bfa5f[_0x596408('0x99')]=_0x1bfa5f['attributes'][_0x596408('0x1')]?_0x1bfa5f[_0x596408('0x99')]:_0x4218cd[_0x596408('0x40')],typeof _0x35fc49[_0x596408('0x30')][_0x596408('0x62')]===_0x596408('0x4e')&&(_0x1bfa5f[_0x596408('0x25')]=qs['limit'](_0x35fc49[_0x596408('0x30')][_0x596408('0x25')]),_0x1bfa5f[_0x596408('0x65')]=qs[_0x596408('0x65')](_0x35fc49[_0x596408('0x30')][_0x596408('0x65')])),_0x1bfa5f['order']=qs[_0x596408('0x74')](_0x35fc49[_0x596408('0x30')]['sort']),_0x1bfa5f[_0x596408('0x9c')]=qs['filters'](_[_0x596408('0x6d')](_0x35fc49['query'],_0x4218cd[_0x596408('0x2')])),_0x1bfa5f[_0x596408('0x9c')][_0x596408('0x63')]=_0xe925cf['id'],_0x35fc49[_0x596408('0x30')][_0x596408('0xb')]&&(_0x1bfa5f[_0x596408('0x9c')]=_['merge'](_0x1bfa5f['where'],{[Op['or']]:_[_0x596408('0x32')](_0x1bfa5f['attributes'],function(_0x342e34){const _0x5369e6=_0x596408,_0x26caa4={};return _0x26caa4[_0x342e34]={[Op[_0x5369e6('0x7a')]]:'%'+_0x35fc49[_0x5369e6('0x30')]['filter']+'%'},_0x26caa4;})})),_0x1bfa5f=_['merge']({},_0x1bfa5f,_0x35fc49[_0x596408('0x8f')]),db[_0x596408('0x52')]['count']({'where':_0x1bfa5f[_0x596408('0x9c')]})[_0x596408('0x27')](function(_0x3e1e5d){const _0x56ce34=_0x596408;return _0x3ab21e[_0x56ce34('0x9d')]=_0x3e1e5d,_0x35fc49[_0x56ce34('0x30')][_0x56ce34('0x12')]&&(_0x1bfa5f['include']=[{'all':!![]}]),db[_0x56ce34('0x52')][_0x56ce34('0x82')](_0x1bfa5f);})[_0x596408('0x27')](function(_0x2266fe){const _0x55299e=_0x596408;return _0x3ab21e[_0x55299e('0x60')]=_0x2266fe,_0x3ab21e;});})['then'](respondWithFilteredResult(_0x2a68b8,_0x1bfa5f))['catch'](handleError(_0x2a68b8,null));},exports[_0x46310e('0xd')]=function(_0x16123b,_0x49668a){const _0x28c642=_0x46310e;return db[_0x28c642('0x2d')]['findOne']({'where':{'id':_0x16123b[_0x28c642('0x54')]['id']}})[_0x28c642('0x27')](handleEntityNotFound(_0x49668a,null))['then'](function(_0x345fe0){const _0x323c0e=_0x28c642;if(_0x345fe0)return _0x345fe0[_0x323c0e('0xd')](_0x16123b[_0x323c0e('0x30')][_0x323c0e('0x79')]);})[_0x28c642('0x27')](respondWithStatusCode(_0x49668a,null))['catch'](handleError(_0x49668a,null));},exports[_0x46310e('0xa3')]=function(_0x3a7ff6,_0x9c86f2){const _0x530a00=_0x46310e;return db[_0x530a00('0x29')][_0x530a00('0x43')]({'where':{'id':_0x3a7ff6['params']['id']}})['then'](function(_0x28d374){const _0x409fb0=_0x530a00;if(_0x28d374)return _0x28d374[_0x409fb0('0xa3')](_0x3a7ff6[_0x409fb0('0x3')][_0x409fb0('0x79')],{'through':_[_0x409fb0('0x39')](_0x3a7ff6[_0x409fb0('0x3')],[_0x409fb0('0x79'),'id'])});})[_0x530a00('0x27')](respondWithResult(_0x9c86f2,null))[_0x530a00('0x83')](handleError(_0x9c86f2,null));},exports[_0x46310e('0x3f')]=function(_0x5828e5,_0x3c5f73){const _0x684bcd=_0x46310e;let _0x23596c={'raw':![],'where':{}};const _0x34be79={},_0x442606={'count':0x0,'rows':[]};return db[_0x684bcd('0x2d')][_0x684bcd('0x43')]({'where':{'id':_0x5828e5['params']['id']}})[_0x684bcd('0x27')](handleEntityNotFound(_0x3c5f73,null))[_0x684bcd('0x27')](function(_0x29b293){const _0x46e797=_0x684bcd;if(_0x29b293)return _0x34be79['model']=_[_0x46e797('0x26')](db['FaxInteraction']['rawAttributes']),_0x34be79[_0x46e797('0x30')]=_[_0x46e797('0x26')](_0x5828e5[_0x46e797('0x30')]),_0x34be79[_0x46e797('0x2')]=_[_0x46e797('0x8a')](_0x34be79[_0x46e797('0x40')],_0x34be79[_0x46e797('0x30')]),_0x23596c['attributes']=_[_0x46e797('0x8a')](_0x34be79[_0x46e797('0x40')],qs[_0x46e797('0x73')](_0x5828e5[_0x46e797('0x30')]['fields'])),_0x23596c[_0x46e797('0x99')]=_0x23596c[_0x46e797('0x99')][_0x46e797('0x1')]?_0x23596c[_0x46e797('0x99')]:_0x34be79[_0x46e797('0x40')],typeof _0x5828e5[_0x46e797('0x30')][_0x46e797('0x62')]===_0x46e797('0x4e')&&(_0x23596c['limit']=qs[_0x46e797('0x25')](_0x5828e5['query'][_0x46e797('0x25')]),_0x23596c[_0x46e797('0x65')]=qs[_0x46e797('0x65')](_0x5828e5[_0x46e797('0x30')][_0x46e797('0x65')])),_0x23596c['order']=qs['sort'](_0x5828e5[_0x46e797('0x30')]['sort']),_0x23596c[_0x46e797('0x9c')]=qs[_0x46e797('0x2')](_[_0x46e797('0x6d')](_0x5828e5['query'],_0x34be79[_0x46e797('0x2')])),_0x23596c['where'][_0x46e797('0x63')]=_0x29b293['id'],_0x5828e5[_0x46e797('0x30')]['filter']&&(_0x23596c[_0x46e797('0x9c')]=_['merge'](_0x23596c['where'],{[Op['or']]:_['map'](_0x23596c[_0x46e797('0x99')],function(_0x186fac){const _0x2ccb75=_0x46e797,_0x188eb6={};return _0x188eb6[_0x186fac]={[Op[_0x2ccb75('0x7a')]]:'%'+_0x5828e5['query'][_0x2ccb75('0xb')]+'%'},_0x188eb6;})})),_0x23596c=_['merge']({},_0x23596c,_0x5828e5[_0x46e797('0x8f')]),db[_0x46e797('0x29')][_0x46e797('0x9d')]({'where':_0x23596c[_0x46e797('0x9c')]})['then'](function(_0x4de052){const _0xff22d5=_0x46e797;return _0x442606[_0xff22d5('0x9d')]=_0x4de052,_0x5828e5[_0xff22d5('0x30')][_0xff22d5('0x12')]&&(_0x23596c['include']=[{'model':db['CmContact'],'as':'Contact','required':![]},{'model':db[_0xff22d5('0x5e')],'as':_0xff22d5('0x57'),'attributes':[_0xff22d5('0x9f'),_0xff22d5('0x23'),'internal'],'required':![]},{'model':db[_0xff22d5('0x76')],'as':_0xff22d5('0x19'),'attributes':['id',_0xff22d5('0x9f'),_0xff22d5('0x18')],'where':_0x5828e5[_0xff22d5('0x30')][_0xff22d5('0x8c')]?{'id':_0x5828e5[_0xff22d5('0x30')][_0xff22d5('0x8c')]}:undefined,'required':_0x5828e5[_0xff22d5('0x30')][_0xff22d5('0x8c')]?!![]:![]}]),db[_0xff22d5('0x29')][_0xff22d5('0x82')](_0x23596c);})['then'](function(_0x3a9372){const _0x1dacf0=_0x46e797;return _0x442606[_0x1dacf0('0x60')]=_0x3a9372,_0x442606;});})[_0x684bcd('0x27')](respondWithFilteredResult(_0x3c5f73,_0x23596c))[_0x684bcd('0x83')](handleError(_0x3c5f73,null));},exports[_0x46310e('0x34')]=function(_0x5e691d,_0x3d0cde){const _0x329aee=_0x46310e;return db[_0x329aee('0x2d')][_0x329aee('0x43')]({'where':{'id':_0x5e691d[_0x329aee('0x54')]['id']}})[_0x329aee('0x27')](handleEntityNotFound(_0x3d0cde,null))[_0x329aee('0x27')](function(_0x28faf8){const _0x31b597=_0x329aee;if(_0x28faf8)return db[_0x31b597('0x35')][_0x31b597('0x21')](function(_0x1f620e){const _0xc5ae0c=_0x31b597;return db[_0xc5ae0c('0xa5')][_0xc5ae0c('0x3b')]({'where':{'FaxAccountId':_0x5e691d[_0xc5ae0c('0x54')]['id']},'transaction':_0x1f620e})[_0xc5ae0c('0x27')](function(){const _0x536865=_0xc5ae0c,_0x3c223c=_[_0x536865('0x32')](_0x5e691d[_0x536865('0x3')],function(_0x3c6af8){const _0xfa1040=_0x536865;return _0x3c6af8['FaxAccountId']=_0x5e691d[_0xfa1040('0x54')]['id'],_0x3c6af8;});return db[_0x536865('0xa5')][_0x536865('0x16')](_0x3c223c,{'transaction':_0x1f620e});});})[_0x31b597('0x27')](function(){const _0x18314f=_0x31b597;return db[_0x18314f('0xa5')][_0x18314f('0x89')]({'where':{'FaxAccountId':_0x5e691d[_0x18314f('0x54')]['id']},'order':_0x18314f('0xf')});});})[_0x329aee('0x27')](respondWithResult(_0x3d0cde,null))['catch'](handleError(_0x3d0cde,null));},exports['getApplications']=function(_0x5072b3,_0x3fe51c){const _0x5f477a=_0x46310e;let _0x361b10={};const _0xc2f6fe={};let _0x1fa392,_0x2be8f2;return db[_0x5f477a('0x2d')][_0x5f477a('0x43')]({'where':{'id':_0x5072b3[_0x5f477a('0x54')]['id']}})[_0x5f477a('0x27')](handleEntityNotFound(_0x3fe51c,null))['then'](function(_0xfa86d9){const _0x3ba76d=_0x5f477a;if(_0xfa86d9)return _0x1fa392=_0xfa86d9,_0xc2f6fe[_0x3ba76d('0x40')]=_[_0x3ba76d('0x26')](db[_0x3ba76d('0xa5')][_0x3ba76d('0x6a')]),_0xc2f6fe[_0x3ba76d('0x30')]=_['keys'](_0x5072b3[_0x3ba76d('0x30')]),_0xc2f6fe['filters']=_[_0x3ba76d('0x8a')](_0xc2f6fe['model'],_0xc2f6fe[_0x3ba76d('0x30')]),_0x361b10['attributes']=_[_0x3ba76d('0x8a')](_0xc2f6fe[_0x3ba76d('0x40')],qs[_0x3ba76d('0x73')](_0x5072b3[_0x3ba76d('0x30')][_0x3ba76d('0x73')])),_0x361b10['attributes']=_0x361b10[_0x3ba76d('0x99')][_0x3ba76d('0x1')]?_0x361b10[_0x3ba76d('0x99')]:_0xc2f6fe[_0x3ba76d('0x40')],_0x361b10[_0x3ba76d('0x68')]=qs[_0x3ba76d('0x74')](_0x5072b3[_0x3ba76d('0x30')][_0x3ba76d('0x74')]),_0x361b10[_0x3ba76d('0x9c')]=qs[_0x3ba76d('0x2')](_[_0x3ba76d('0x6d')](_0x5072b3[_0x3ba76d('0x30')],_0xc2f6fe[_0x3ba76d('0x2')])),_0x5072b3['query']['filter']&&(_0x361b10[_0x3ba76d('0x9c')]=_[_0x3ba76d('0x5a')](_0x361b10[_0x3ba76d('0x9c')],{[Op['or']]:_['map'](_0x361b10[_0x3ba76d('0x99')],function(_0x3f3881){const _0x1ff957=_0x3ba76d,_0x374d99={};return _0x374d99[_0x3f3881]={[Op['like']]:'%'+_0x5072b3[_0x1ff957('0x30')][_0x1ff957('0xb')]+'%'},_0x374d99;})})),_0x361b10=_[_0x3ba76d('0x5a')]({},_0x361b10,_0x5072b3[_0x3ba76d('0x8f')]),_0x1fa392['getApplications'](_0x361b10);})[_0x5f477a('0x27')](function(_0x220ba3){const _0x586ffe=_0x5f477a;if(_0x220ba3)return _0x2be8f2=_0x220ba3[_0x586ffe('0x1')],typeof _0x5072b3[_0x586ffe('0x30')][_0x586ffe('0x62')]==='undefined'&&(_0x361b10[_0x586ffe('0x25')]=qs[_0x586ffe('0x25')](_0x5072b3[_0x586ffe('0x30')][_0x586ffe('0x25')]),_0x361b10['offset']=qs[_0x586ffe('0x65')](_0x5072b3[_0x586ffe('0x30')][_0x586ffe('0x65')])),_0x1fa392[_0x586ffe('0x20')](_0x361b10);})['then'](function(_0x234f54){if(_0x234f54)return _0x234f54?{'count':_0x2be8f2,'rows':_0x234f54}:null;})['then'](respondWithResult(_0x3fe51c,null))[_0x5f477a('0x83')](handleError(_0x3fe51c,null));};function Extension(_0x2ffb19,_0x30825d,_0x9dd3ea,_0x2205c4){const _0x3ab1a9=_0x46310e;this[_0x3ab1a9('0x45')]=_0x3ab1a9('0x7'),this[_0x3ab1a9('0x4f')]=_0x2ffb19[_0x3ab1a9('0x61')],this[_0x3ab1a9('0x7c')]=_0x2205c4,this['type']=_0x3ab1a9('0x17'),this[_0x3ab1a9('0x7e')]='Fax\x20Extension',this['FaxAccountId']=_0x2ffb19['id'],this[_0x3ab1a9('0xf')]=_0x30825d,this[_0x3ab1a9('0x49')]=_0x9dd3ea;}function createExtensionsReciveFax(_0x29d232){const _0x2a0ce7=_0x46310e;let _0x25378c=0x1;const _0x56862a=[];_0x56862a[_0x2a0ce7('0x4a')](new Extension(_0x29d232,_0x25378c,'',_0x2a0ce7('0x2f'))),_0x25378c+=0x1,_0x56862a[_0x2a0ce7('0x4a')](new Extension(_0x29d232,_0x25378c,'CDR(type)=inbound-fax',_0x2a0ce7('0x96'))),_0x25378c+=0x1;for(const _0x4aeede in _0x29d232){typeof _0x29d232[_0x4aeede]!==_0x2a0ce7('0x4e')&&(_0x4aeede==='ecm'||_0x4aeede==='localstationid'||_0x4aeede===_0x2a0ce7('0x7b')||_0x4aeede===_0x2a0ce7('0x2b')||_0x4aeede===_0x2a0ce7('0xe')||_0x4aeede===_0x2a0ce7('0x71')||_0x4aeede===_0x2a0ce7('0x59')||_0x4aeede==='modem'||_0x4aeede===_0x2a0ce7('0x47'))&&(_0x56862a[_0x2a0ce7('0x4a')](new Extension(_0x29d232,_0x25378c,_0x2a0ce7('0x1e')+_0x4aeede+')='+_0x29d232[_0x4aeede],_0x2a0ce7('0x96'))),_0x25378c+=0x1);}return _0x56862a[_0x2a0ce7('0x4a')](new Extension(_0x29d232,_0x25378c,'6',_0x2a0ce7('0x4'))),_0x25378c+=0x1,_0x56862a[_0x2a0ce7('0x4a')](new Extension(_0x29d232,_0x25378c,'/var/opt/motion2/server/files/attachments/fax-${CALLERID(num)}-${CUT(UNIQUEID,.,1)}-${CUT(UNIQUEID,.,2)}-${STRFTIME(,,%C%y%m%d%H%M%S)}-rx.tif,d','ReceiveFax')),_0x25378c=0x0,_0x56862a;}exports[_0x46310e('0x4d')]=function(_0x3247aa,_0x5a70b7){const _0x1fe515=_0x46310e;let _0x3dcb1d;return db[_0x1fe515('0x35')][_0x1fe515('0x21')](function(_0xc43af5){const _0x55d2c1=_0x1fe515;return db['FaxAccount'][_0x55d2c1('0x28')](_0x3247aa[_0x55d2c1('0x3')],{'transaction':_0xc43af5})[_0x55d2c1('0x27')](function(_0x11f413){const _0x459490=_0x55d2c1;return _0x3dcb1d=_0x11f413[_0x459490('0xa8')]({'plain':!![]}),db[_0x459490('0x3a')]['bulkCreate'](createExtensionsReciveFax(_0x3dcb1d),{'transaction':_0xc43af5});});})[_0x1fe515('0x27')](function(){return _0x3dcb1d;})[_0x1fe515('0x27')](respondWithResult(_0x5a70b7,null))[_0x1fe515('0x83')](handleError(_0x5a70b7,null));},exports[_0x46310e('0x6')]=function(_0xcb5e3c,_0x50f4dc){const _0x5e4db9=_0x46310e;return db[_0x5e4db9('0x35')][_0x5e4db9('0x21')](function(_0x26e4ac){const _0x40ac26=_0x5e4db9;return db['FaxAccount'][_0x40ac26('0x8d')](_0xcb5e3c[_0x40ac26('0x3')],{'where':{'id':_0xcb5e3c['body']['id']},'transaction':_0x26e4ac})['then'](function(){const _0x36dd92=_0x40ac26;return db[_0x36dd92('0x3a')][_0x36dd92('0x3b')]({'where':{'FaxAccountId':_0xcb5e3c[_0x36dd92('0x3')]['id']},'transaction':_0x26e4ac})[_0x36dd92('0x27')](function(){const _0x5e3f08=_0x36dd92;return db['VoiceExtension'][_0x5e3f08('0x16')](createExtensionsReciveFax(_['omit'](_0xcb5e3c['body'],[_0x5e3f08('0x13'),_0x5e3f08('0x37'),_0x5e3f08('0x85'),_0x5e3f08('0x70'),_0x5e3f08('0xc'),_0x5e3f08('0x5d')])),{'transaction':_0x26e4ac});});});})[_0x5e4db9('0x27')](function(){const _0x482195=_0x5e4db9;return db[_0x482195('0x2d')][_0x482195('0x72')](_0xcb5e3c['body']['id']);})[_0x5e4db9('0x27')](respondWithResult(_0x50f4dc,null))[_0x5e4db9('0x83')](handleError(_0x50f4dc,null));},exports['getMessages']=function(_0x3841c7,_0x3b96ae){const _0x37f3f2=_0x46310e;let _0x1c87a3={'raw':!![],'where':{}};const _0x4df57e={},_0x55d941={'count':0x0,'rows':[]};return db[_0x37f3f2('0x2d')][_0x37f3f2('0x43')]({'where':{'id':_0x3841c7[_0x37f3f2('0x54')]['id']}})[_0x37f3f2('0x27')](handleEntityNotFound(_0x3b96ae,null))[_0x37f3f2('0x27')](function(_0x4ca941){const _0x36d38b=_0x37f3f2;if(_0x4ca941){_0x4df57e['model']=_[_0x36d38b('0x26')](db[_0x36d38b('0x91')][_0x36d38b('0x6a')]),_0x4df57e[_0x36d38b('0x30')]=_['keys'](_0x3841c7['query']),_0x4df57e[_0x36d38b('0x2')]=_[_0x36d38b('0x8a')](_0x4df57e[_0x36d38b('0x40')],_0x4df57e[_0x36d38b('0x30')]),_0x1c87a3[_0x36d38b('0x99')]=_[_0x36d38b('0x8a')](_0x4df57e[_0x36d38b('0x40')],qs[_0x36d38b('0x73')](_0x3841c7['query'][_0x36d38b('0x73')])),_0x1c87a3[_0x36d38b('0x99')]=_0x1c87a3[_0x36d38b('0x99')][_0x36d38b('0x1')]?_0x1c87a3[_0x36d38b('0x99')]:_0x4df57e[_0x36d38b('0x40')];typeof _0x3841c7[_0x36d38b('0x30')][_0x36d38b('0x62')]===_0x36d38b('0x4e')&&(_0x1c87a3[_0x36d38b('0x25')]=qs['limit'](_0x3841c7['query'][_0x36d38b('0x25')]),_0x1c87a3[_0x36d38b('0x65')]=qs['offset'](_0x3841c7[_0x36d38b('0x30')][_0x36d38b('0x65')]));_0x1c87a3[_0x36d38b('0x68')]=qs[_0x36d38b('0x74')](_0x3841c7[_0x36d38b('0x30')][_0x36d38b('0x74')]),_0x1c87a3[_0x36d38b('0x9c')]=qs[_0x36d38b('0x2')](_['pick'](_0x3841c7[_0x36d38b('0x30')],_0x4df57e[_0x36d38b('0x2')])),_0x1c87a3[_0x36d38b('0x9c')][_0x36d38b('0x63')]=_0x4ca941['id'];_0x3841c7[_0x36d38b('0x30')][_0x36d38b('0xb')]&&(_0x1c87a3[_0x36d38b('0x9c')]=_['merge'](_0x1c87a3[_0x36d38b('0x9c')],{[Op['or']]:_[_0x36d38b('0x32')](_0x1c87a3[_0x36d38b('0x99')],function(_0xae2cd3){const _0x5b79d0=_0x36d38b,_0x5b532f={};return _0x5b532f[_0xae2cd3]={[Op['like']]:'%'+_0x3841c7[_0x5b79d0('0x30')][_0x5b79d0('0xb')]+'%'},_0x5b532f;})}));if(_0x3841c7[_0x36d38b('0x30')][_0x36d38b('0x9b')]){const _0x220603=_0x3841c7['query']['$gte'][_0x36d38b('0x10')](','),_0x40eec5={};_0x40eec5[_0x220603[0x0]]={[Op[_0x36d38b('0x1d')]]:moment(_0x220603[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0x1c87a3[_0x36d38b('0x9c')]=_[_0x36d38b('0x5a')](_0x1c87a3[_0x36d38b('0x9c')],_0x40eec5);}return _0x1c87a3=_[_0x36d38b('0x5a')]({},_0x1c87a3,_0x3841c7[_0x36d38b('0x8f')]),db['FaxMessage'][_0x36d38b('0x9d')]({'where':_0x1c87a3['where']})[_0x36d38b('0x27')](function(_0x45ca41){const _0x3a21cc=_0x36d38b;return _0x55d941[_0x3a21cc('0x9d')]=_0x45ca41,_0x3841c7[_0x3a21cc('0x30')][_0x3a21cc('0x12')]&&(_0x1c87a3[_0x3a21cc('0x6e')]=[{'all':!![]}]),db['FaxMessage'][_0x3a21cc('0x82')](_0x1c87a3);})[_0x36d38b('0x27')](function(_0x5431){return _0x55d941['rows']=_0x5431,_0x55d941;});}})[_0x37f3f2('0x27')](respondWithFilteredResult(_0x3b96ae,_0x1c87a3))['catch'](handleError(_0x3b96ae,null));},exports[_0x46310e('0x22')]=function(_0x1b9d00,_0x50058d){const _0x347686=_0x46310e;let _0x2ff1e3,_0x13ca48;return _0x1b9d00[_0x347686('0x3')]['to']&&(_0x13ca48=_0x1b9d00[_0x347686('0x3')]['to'][0x0]),db['FaxAccount'][_0x347686('0x43')]({'where':{'id':_0x1b9d00[_0x347686('0x54')]['id']},'include':[{'model':db[_0x347686('0x93')],'as':_0x347686('0x44'),'include':[{'model':db[_0x347686('0x15')],'as':_0x347686('0x11'),'where':{'fax':_0x13ca48},'limit':0x1,'order':[[_0x347686('0x70'),_0x347686('0x50')]]}]}]})[_0x347686('0x27')](handleEntityNotFound(_0x50058d,null))['then'](function(_0x1ded89){const _0xaf922a=_0x347686;_0x2ff1e3=_0x1ded89;if(_0x1b9d00[_0xaf922a('0x3')][_0xaf922a('0x46')]&&_0x1b9d00['body'][_0xaf922a('0x46')][_0xaf922a('0x1')])for(let _0x326cc2=0x0;_0x326cc2<_0x1b9d00['body']['attachments'][_0xaf922a('0x1')];_0x326cc2+=0x1){_0x1b9d00['body'][_0xaf922a('0x46')][_0x326cc2]={'filename':_0x1b9d00[_0xaf922a('0x3')][_0xaf922a('0x46')][_0x326cc2][_0xaf922a('0x9f')],'id':_0x1b9d00[_0xaf922a('0x3')][_0xaf922a('0x46')][_0x326cc2]['id'],'path':path[_0xaf922a('0x90')](config[_0xaf922a('0x9')],_0xaf922a('0x3c'),_0x1b9d00[_0xaf922a('0x3')]['attachments'][_0x326cc2]['basename'])};}return respondWithRpcPromise(_0xaf922a('0xa7'),_0xaf922a('0xa7'),{'FaxAccountId':_[_0xaf922a('0x48')](_0x1b9d00[_0xaf922a('0x54')]['id'])?undefined:_0x1b9d00[_0xaf922a('0x54')]['id'],'path':_[_0xaf922a('0x48')](_0x1b9d00[_0xaf922a('0x3')][_0xaf922a('0x46')][0x0]['path'])?undefined:_0x1b9d00[_0xaf922a('0x3')][_0xaf922a('0x46')][0x0][_0xaf922a('0x9e')],'fax':_[_0xaf922a('0x48')](_0x1b9d00[_0xaf922a('0x3')]['to'][0x0])?undefined:_0x1b9d00[_0xaf922a('0x3')]['to'][0x0]},client9002);})[_0x347686('0x27')](function(){const _0x4b30b4=_0x347686;if(_0x2ff1e3){_[_0x4b30b4('0x48')](_0x1b9d00[_0x4b30b4('0x3')][_0x4b30b4('0x66')])&&(_0x1b9d00[_0x4b30b4('0x3')][_0x4b30b4('0x66')]=util[_0x4b30b4('0x64')](_0x4b30b4('0x31'),_0x2ff1e3[_0x4b30b4('0x9f')],_0x2ff1e3[_0x4b30b4('0xa0')]));if(_0x2ff1e3[_0x4b30b4('0x44')])return _0x2ff1e3[_0x4b30b4('0x44')][_0x4b30b4('0x11')][_0x4b30b4('0x1')]?_0x2ff1e3[_0x4b30b4('0x44')][_0x4b30b4('0x11')][0x0]:db[_0x4b30b4('0x15')][_0x4b30b4('0x28')](_['defaults'](_0x1b9d00['body'],{'firstName':_0x1b9d00[_0x4b30b4('0x3')]['to'][0x0],'phone':_0x1b9d00[_0x4b30b4('0x3')]['to'][0x0],'fax':_0x1b9d00[_0x4b30b4('0x3')]['to'][0x0],'ListId':_0x2ff1e3[_0x4b30b4('0x5d')]}));else throw new Error('List\x20not\x20found');}else throw new Error('Send\x20Fax\x20failed');})[_0x347686('0x27')](function(_0x293a79){const _0x1ad142=_0x347686;if(_0x293a79)return db[_0x1ad142('0x29')][_0x1ad142('0x43')]({'where':{'ContactId':_0x293a79['id'],'closed':![],'FaxAccountId':_0x2ff1e3['id']}})[_0x1ad142('0x27')](function(_0x7abb6e){const _0x452e13=_0x1ad142;if(_0x7abb6e)return[_0x7abb6e,![]];return db[_0x452e13('0x29')][_0x452e13('0x28')]({'UserId':_0x1b9d00[_0x452e13('0x95')]['id'],'ContactId':_0x293a79['id'],'FaxAccountId':_0x2ff1e3['id'],'fax':_0x1b9d00['body']['to'][0x0],'firstMsgDirection':_0x452e13('0x36'),'Messages':[_['merge'](_0x1b9d00[_0x452e13('0x3')],{'read':![],'body':_0x1b9d00[_0x452e13('0x3')]['attachments'][0x0]['filename'],'FaxAccountId':_0x2ff1e3['id'],'UserId':_0x1b9d00[_0x452e13('0x95')]['id'],'ContactId':_0x293a79['id'],'AttachmentId':_0x1b9d00[_0x452e13('0x3')][_0x452e13('0x46')][0x0]['id']})]},{'include':[{'model':db[_0x452e13('0x91')],'as':_0x452e13('0x5c')}]})[_0x452e13('0x27')](function(_0x1ad8b6){return[_0x1ad8b6,!![]];});});else throw new Error(_0x1ad142('0x1a'));})[_0x347686('0x27')](function([_0x40602b,_0x989901]){const _0x17c338=_0x347686;if(_0x989901)return _0x40602b;return db['FaxMessage'][_0x17c338('0x28')]({'direction':_0x17c338('0x36'),'read':![],'body':_0x1b9d00[_0x17c338('0x3')][_0x17c338('0x46')][0x0][_0x17c338('0x41')],'FaxAccountId':_0x2ff1e3['id'],'FaxInteractionId':_0x40602b['id'],'UserId':_0x1b9d00[_0x17c338('0x95')]['id'],'ContactId':_0x40602b[_0x17c338('0x8e')],'AttachmentId':_0x1b9d00[_0x17c338('0x3')][_0x17c338('0x46')][0x0]['id']})[_0x17c338('0x27')](function(_0x23969a){const _0x1f087b=_0x17c338;return _0x40602b[_0x1f087b('0x5b')][_0x1f087b('0x5c')]=[],_0x40602b[_0x1f087b('0x5b')]['Messages'][_0x1f087b('0x4a')](_0x23969a[_0x1f087b('0x5b')]),_0x40602b;});})[_0x347686('0x27')](function(_0x16c95c){const _0x3d3d33=_0x347686;return respondWithRpcPromise(_0x3d3d33('0x3e'),_0x3d3d33('0x3e'),{'FaxAccountId':_[_0x3d3d33('0x48')](_0x1b9d00[_0x3d3d33('0x54')]['id'])?undefined:_0x1b9d00[_0x3d3d33('0x54')]['id'],'path':_[_0x3d3d33('0x48')](_0x1b9d00['body'][_0x3d3d33('0x46')][0x0]['path'])?undefined:_0x1b9d00[_0x3d3d33('0x3')][_0x3d3d33('0x46')][0x0][_0x3d3d33('0x9e')],'fax':_[_0x3d3d33('0x48')](_0x1b9d00[_0x3d3d33('0x3')]['to'][0x0])?undefined:_0x1b9d00['body']['to'][0x0],'AttachmentId':_0x1b9d00[_0x3d3d33('0x3')][_0x3d3d33('0x46')][0x0]['id']},client9002)['then'](function(_0x56c5ef){const _0xe32b08=_0x3d3d33;logger[_0xe32b08('0xaa')]('SendFaxRpc,\x20%s',_0x56c5ef);})[_0x3d3d33('0x83')](function(_0x10c2a2){const _0x1272df=_0x3d3d33;logger[_0x1272df('0xaa')]('SendFaxRpc,\x20%s',_0x10c2a2);}),_0x16c95c;})[_0x347686('0x27')](respondWithResult(_0x50058d,null))['catch'](handleError(_0x50058d,null));},exports[_0x46310e('0x88')]=function(_0x13bf53,_0x415811){const _0xe3c90c=_0x46310e;return db[_0xe3c90c('0x2d')][_0xe3c90c('0x43')]({'where':{'id':_0x13bf53['params']['id']}})['then'](function(_0x4209e5){const _0x130392=_0xe3c90c;if(_0x4209e5)return _0x4209e5[_0x130392('0x88')](_0x13bf53['body'][_0x130392('0x79')],{'through':_[_0x130392('0x39')](_0x13bf53[_0x130392('0x3')],[_0x130392('0x79'),'id'])})[_0x130392('0x27')](function(_0x2dd861){const _0x10e00e=_0x130392;for(let _0xffba06=0x0;_0xffba06<_0x13bf53['body'][_0x10e00e('0x79')][_0x10e00e('0x1')];_0xffba06+=0x1){socket[_0x10e00e('0x51')](_0x10e00e('0x56'),{'UserId':_0x13bf53[_0x10e00e('0x3')]['ids'][_0xffba06],'FaxAccountId':_0x13bf53[_0x10e00e('0x54')]['id']});}return _0x2dd861;});})[_0xe3c90c('0x27')](respondWithResult(_0x415811,null))[_0xe3c90c('0x83')](handleError(_0x415811,null));},exports[_0x46310e('0x7d')]=function(_0x6594a1,_0x246849){const _0xde6e92=_0x46310e;return db[_0xde6e92('0x2d')][_0xde6e92('0x43')]({'where':{'id':_0x6594a1['params']['id']}})[_0xde6e92('0x27')](handleEntityNotFound(_0x246849,null))[_0xde6e92('0x27')](function(_0x46410a){const _0x1607e8=_0xde6e92;if(_0x46410a)return _0x46410a[_0x1607e8('0x7d')](_0x6594a1[_0x1607e8('0x30')][_0x1607e8('0x79')])[_0x1607e8('0x27')](function(){const _0x1bb2e4=_0x1607e8;if(_[_0x1bb2e4('0x53')](_0x6594a1[_0x1bb2e4('0x30')][_0x1bb2e4('0x79')]))for(let _0x6570ab=0x0;_0x6570ab<_0x6594a1['query'][_0x1bb2e4('0x79')]['length'];_0x6570ab+=0x1){socket[_0x1bb2e4('0x51')](_0x1bb2e4('0x8'),{'UserId':Number(_0x6594a1['query'][_0x1bb2e4('0x79')][_0x6570ab]),'FaxAccountId':Number(_0x6594a1[_0x1bb2e4('0x54')]['id'])});}else socket[_0x1bb2e4('0x51')]('userFaxAccount:remove',{'UserId':Number(_0x6594a1['query'][_0x1bb2e4('0x79')]),'FaxAccountId':Number(_0x6594a1[_0x1bb2e4('0x54')]['id'])});});})[_0xde6e92('0x27')](respondWithStatusCode(_0x246849,null))[_0xde6e92('0x83')](handleError(_0x246849,null));},exports[_0x46310e('0x78')]=function(_0x269c44,_0x5330dc){const _0x1f2942=_0x46310e;let _0x39c02e={};const _0x405610={};let _0x4a63e2,_0x536bb5;return db['FaxAccount'][_0x1f2942('0x43')]({'where':{'id':_0x269c44[_0x1f2942('0x54')]['id']}})[_0x1f2942('0x27')](handleEntityNotFound(_0x5330dc,null))['then'](function(_0xf36599){const _0x5ab935=_0x1f2942;if(_0xf36599)return _0x4a63e2=_0xf36599,_0x405610['model']=_['keys'](db[_0x5ab935('0x5e')]['rawAttributes']),_0x405610[_0x5ab935('0x30')]=_[_0x5ab935('0x26')](_0x269c44[_0x5ab935('0x30')]),_0x405610[_0x5ab935('0x2')]=_['intersection'](_0x405610[_0x5ab935('0x40')],_0x405610[_0x5ab935('0x30')]),_0x39c02e[_0x5ab935('0x99')]=_[_0x5ab935('0x8a')](_0x405610[_0x5ab935('0x40')],qs[_0x5ab935('0x73')](_0x269c44['query'][_0x5ab935('0x73')])),_0x39c02e['attributes']=_0x39c02e[_0x5ab935('0x99')]['length']?_0x39c02e['attributes']:_0x405610[_0x5ab935('0x40')],_0x39c02e[_0x5ab935('0x68')]=qs['sort'](_0x269c44[_0x5ab935('0x30')][_0x5ab935('0x74')]),_0x39c02e[_0x5ab935('0x9c')]=qs['filters'](_[_0x5ab935('0x6d')](_0x269c44[_0x5ab935('0x30')],_0x405610[_0x5ab935('0x2')])),_0x269c44[_0x5ab935('0x30')][_0x5ab935('0xb')]&&(_0x39c02e[_0x5ab935('0x9c')]=_[_0x5ab935('0x5a')](_0x39c02e[_0x5ab935('0x9c')],{[Op['or']]:_[_0x5ab935('0x32')](_0x39c02e[_0x5ab935('0x99')],function(_0x4589b1){const _0x251a1a=_0x5ab935,_0x18a14a={};return _0x18a14a[_0x4589b1]={[Op[_0x251a1a('0x7a')]]:'%'+_0x269c44[_0x251a1a('0x30')][_0x251a1a('0xb')]+'%'},_0x18a14a;})})),_0x39c02e=_[_0x5ab935('0x5a')]({},_0x39c02e,_0x269c44[_0x5ab935('0x8f')]),_0x4a63e2[_0x5ab935('0x78')](_0x39c02e);})[_0x1f2942('0x27')](function(_0x208326){const _0x2b7c39=_0x1f2942;if(_0x208326)return _0x536bb5=_0x208326[_0x2b7c39('0x1')],typeof _0x269c44[_0x2b7c39('0x30')]['nolimit']==='undefined'&&(_0x39c02e[_0x2b7c39('0x25')]=qs[_0x2b7c39('0x25')](_0x269c44[_0x2b7c39('0x30')][_0x2b7c39('0x25')]),_0x39c02e[_0x2b7c39('0x65')]=qs[_0x2b7c39('0x65')](_0x269c44['query'][_0x2b7c39('0x65')])),_0x4a63e2[_0x2b7c39('0x78')](_0x39c02e);})['then'](function(_0x54c65c){if(_0x54c65c)return _0x54c65c?{'count':_0x536bb5,'rows':_0x54c65c}:null;})[_0x1f2942('0x27')](respondWithResult(_0x5330dc,null))[_0x1f2942('0x83')](handleError(_0x5330dc,null));}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.events.js b/server/api/faxAccount/faxAccount.events.js index a6c2f1d..7f16cb5 100644 --- a/server/api/faxAccount/faxAccount.events.js +++ b/server/api/faxAccount/faxAccount.events.js @@ -1 +1 @@ -const a187_0xa966=['update','save','FaxAccount','setMaxListeners','addHook','undefined','remove','events','emit','exports'];(function(_0x5dc35f,_0xa966c4){const _0x5a6633=function(_0x3908cf){while(--_0x3908cf){_0x5dc35f['push'](_0x5dc35f['shift']());}};_0x5a6633(++_0xa966c4);}(a187_0xa966,0x19f));const a187_0x5a66=function(_0x5dc35f,_0xa966c4){_0x5dc35f=_0x5dc35f-0x0;let _0x5a6633=a187_0xa966[_0x5dc35f];return _0x5a6633;};const _0x4009f7=a187_0x5a66;'use strict';const EventEmitter=require(_0x4009f7('0x2')),FaxAccount=require('../../mysqldb')['db'][_0x4009f7('0x7')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x4009f7('0x8')](0x0);const events={'afterCreate':_0x4009f7('0x6'),'afterUpdate':_0x4009f7('0x5'),'afterDestroy':_0x4009f7('0x1')};function emitEvent(_0x3908cf){return function(_0x50fba6){const _0x196afb=a187_0x5a66;FaxAccountEvents[_0x196afb('0x3')](_0x3908cf+':'+_0x50fba6['id'],_0x50fba6),FaxAccountEvents['emit'](_0x3908cf,_0x50fba6);};}for(const e in events){if(typeof events[e]!==_0x4009f7('0x0')){const event=events[e];FaxAccount[_0x4009f7('0x9')](e,emitEvent(event));}}module[_0x4009f7('0x4')]=FaxAccountEvents; \ No newline at end of file +const a187_0x4a6c=['remove','FaxAccount','setMaxListeners','emit','update','save','undefined','addHook'];(function(_0x3d9a97,_0x4a6c47){const _0x2d44af=function(_0x123f5f){while(--_0x123f5f){_0x3d9a97['push'](_0x3d9a97['shift']());}};_0x2d44af(++_0x4a6c47);}(a187_0x4a6c,0xae));const a187_0x2d44=function(_0x3d9a97,_0x4a6c47){_0x3d9a97=_0x3d9a97-0x0;let _0x2d44af=a187_0x4a6c[_0x3d9a97];return _0x2d44af;};const _0x579098=a187_0x2d44;'use strict';const EventEmitter=require('events'),FaxAccount=require('../../mysqldb')['db'][_0x579098('0x3')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x579098('0x4')](0x0);const events={'afterCreate':_0x579098('0x7'),'afterUpdate':_0x579098('0x6'),'afterDestroy':_0x579098('0x2')};function emitEvent(_0x123f5f){return function(_0x1dce68){const _0x3c4448=a187_0x2d44;FaxAccountEvents[_0x3c4448('0x5')](_0x123f5f+':'+_0x1dce68['id'],_0x1dce68),FaxAccountEvents[_0x3c4448('0x5')](_0x123f5f,_0x1dce68);};}for(const e in events){if(typeof events[e]!==_0x579098('0x0')){const event=events[e];FaxAccount[_0x579098('0x1')](e,emitEvent(event));}}module['exports']=FaxAccountEvents; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.model.js b/server/api/faxAccount/faxAccount.model.js index 3870c5d..6d1a7c7 100644 --- a/server/api/faxAccount/faxAccount.model.js +++ b/server/api/faxAccount/faxAccount.model.js @@ -1 +1 @@ -const a188_0x2015=['./faxAccount.attributes','exports','FaxAccount','define'];(function(_0x2b2659,_0x20150f){const _0x10b8a8=function(_0xd0edbb){while(--_0xd0edbb){_0x2b2659['push'](_0x2b2659['shift']());}};_0x10b8a8(++_0x20150f);}(a188_0x2015,0x131));const a188_0x10b8=function(_0x2b2659,_0x20150f){_0x2b2659=_0x2b2659-0x0;let _0x10b8a8=a188_0x2015[_0x2b2659];return _0x10b8a8;};const _0x4fc591=a188_0x10b8;'use strict';const attributes=require(_0x4fc591('0x3'));module[_0x4fc591('0x0')]=function(_0xd0edbb){const _0x5164f5=_0x4fc591,_0x275fd8=_0xd0edbb[_0x5164f5('0x2')](_0x5164f5('0x1'),attributes,{'tableName':'fax_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x275fd8;}; \ No newline at end of file +const a188_0x1069=['./faxAccount.attributes','define','exports'];(function(_0x2b1081,_0x10690f){const _0x2e87b4=function(_0x4925bb){while(--_0x4925bb){_0x2b1081['push'](_0x2b1081['shift']());}};_0x2e87b4(++_0x10690f);}(a188_0x1069,0x12d));const a188_0x2e87=function(_0x2b1081,_0x10690f){_0x2b1081=_0x2b1081-0x0;let _0x2e87b4=a188_0x1069[_0x2b1081];return _0x2e87b4;};const _0x3d22a3=a188_0x2e87;'use strict';const attributes=require(_0x3d22a3('0x2'));module[_0x3d22a3('0x1')]=function(_0x4925bb){const _0x3d4fc5=_0x3d22a3,_0x50fc2d=_0x4925bb[_0x3d4fc5('0x0')]('FaxAccount',attributes,{'tableName':'fax_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x50fc2d;}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.rpc.js b/server/api/faxAccount/faxAccount.rpc.js index 1ffec29..d392ed3 100644 --- a/server/api/faxAccount/faxAccount.rpc.js +++ b/server/api/faxAccount/faxAccount.rpc.js @@ -1 +1 @@ -const a189_0x622a=['FaxAccount,\x20%s,\x20%s,\x20%s','from\x20is\x20mandatory','stringify','defaults','raw','where','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','CompanyId','Contacts','limit','GetFaxAccount','ValidationError','no\x20available\x20attributes','FaxAccount','orderBy','Applications','then','include','findOne','push','options','CmContact','request','info','created','User','account','contact','isNil','../../mysqldb','createdAt','includes','applications','attributes','describe','FaxMessage','rpc','from','ContactId','Contact\x20not\x20found','name','map','*,*,*,*','../../rediscache','lodash','create','Start','startRouting','jayson/promise','mapKey','message','ListId','CmList','catch','FaxApplication','AttachmentId','request\x20sent','FaxInteraction','debug','unmanaged','autoclose','findAll','error','get','waitForTheAssignedAgent','client','Sequelize','updatedAt','DESC','length','List','FaxAccount,\x20%s,\x20%s','list','model','body','asc','result','code','keys','UserId','register'];(function(_0x433e2d,_0x622a79){const _0x41e3a6=function(_0x50d33a){while(--_0x50d33a){_0x433e2d['push'](_0x433e2d['shift']());}};_0x41e3a6(++_0x622a79);}(a189_0x622a,0x10c));const a189_0x41e3=function(_0x433e2d,_0x622a79){_0x433e2d=_0x433e2d-0x0;let _0x41e3a6=a189_0x622a[_0x433e2d];return _0x41e3a6;};const _0x1369d1=a189_0x41e3;'use strict';const _=require(_0x1369d1('0x13')),db=require(_0x1369d1('0x4'))['db'],logger=require('../../config/logger')(_0x1369d1('0xb')),{getSocket}=require(_0x1369d1('0x12')),socket=getSocket(),jayson=require(_0x1369d1('0x17')),client=jayson[_0x1369d1('0x28')]['http']({'port':0x232c});require('./faxAccount.socket')[_0x1369d1('0x37')](socket);function respondWithRpcPromise(_0x50d33a,_0x5ddf57,_0x462054){return new Promise(function(_0x516c5f,_0x467c3c){const _0xab6adf=a189_0x41e3;return client[_0xab6adf('0x4e')](_0x50d33a,_0x462054)[_0xab6adf('0x48')](function(_0xcd5b96){const _0x34e1e1=_0xab6adf;logger['info']('FaxAccount,\x20%s,\x20%s',_0x5ddf57,_0x34e1e1('0x1f')),logger[_0x34e1e1('0x21')](_0x34e1e1('0x38'),_0x5ddf57,_0x34e1e1('0x1f'),JSON['stringify'](_0xcd5b96));if(_0xcd5b96[_0x34e1e1('0x25')]){if(_0xcd5b96[_0x34e1e1('0x25')][_0x34e1e1('0x34')]===0x1f4)return logger[_0x34e1e1('0x25')]('FaxAccount,\x20%s,\x20%s',_0x5ddf57,_0xcd5b96[_0x34e1e1('0x25')][_0x34e1e1('0x19')]),_0x467c3c(_0xcd5b96['error'][_0x34e1e1('0x19')]);return logger[_0x34e1e1('0x25')]('FaxAccount,\x20%s,\x20%s',_0x5ddf57,_0xcd5b96[_0x34e1e1('0x25')]['message']),_0x516c5f(_0xcd5b96[_0x34e1e1('0x25')][_0x34e1e1('0x19')]);}else logger[_0x34e1e1('0x4f')](_0x34e1e1('0x2e'),_0x5ddf57,_0x34e1e1('0x1f')),_0x516c5f(_0xcd5b96[_0x34e1e1('0x33')][_0x34e1e1('0x19')]);})[_0xab6adf('0x1c')](function(_0x13b41a){const _0x1cf1b8=_0xab6adf;logger['error'](_0x1cf1b8('0x2e'),_0x5ddf57,_0x13b41a),_0x467c3c(_0x13b41a);});});}exports[_0x1369d1('0x42')]=function(_0x226c5e){const _0x1e21dc=this;return new Promise(function(_0x57c7d0,_0x125428){const _0x34edf8=a189_0x41e3;return db[_0x34edf8('0x45')][_0x34edf8('0x24')]({'raw':_0x226c5e[_0x34edf8('0x4c')]?_0x226c5e[_0x34edf8('0x4c')][_0x34edf8('0x3c')]===undefined?!![]:![]:!![],'where':_0x226c5e[_0x34edf8('0x4c')]?_0x226c5e[_0x34edf8('0x4c')][_0x34edf8('0x3d')]||null:null,'attributes':_0x226c5e[_0x34edf8('0x4c')]?_0x226c5e[_0x34edf8('0x4c')][_0x34edf8('0x8')]||null:null,'limit':_0x226c5e[_0x34edf8('0x4c')]?_0x226c5e[_0x34edf8('0x4c')][_0x34edf8('0x41')]||null:null,'include':_0x226c5e[_0x34edf8('0x4c')]?_0x226c5e[_0x34edf8('0x4c')][_0x34edf8('0x49')]?_['map'](_0x226c5e[_0x34edf8('0x4c')][_0x34edf8('0x49')],function(_0x379d7){const _0x52f7b6=_0x34edf8;return{'model':db[_0x379d7['model']],'as':_0x379d7['as'],'attributes':_0x379d7[_0x52f7b6('0x8')],'include':_0x379d7[_0x52f7b6('0x49')]?_[_0x52f7b6('0x10')](_0x379d7['include'],function(_0x4b7c11){const _0x32987a=_0x52f7b6;return{'model':db[_0x4b7c11[_0x32987a('0x30')]],'as':_0x4b7c11['as'],'attributes':_0x4b7c11[_0x32987a('0x8')],'include':_0x4b7c11[_0x32987a('0x49')]?_[_0x32987a('0x10')](_0x4b7c11['include'],function(_0x2f71d6){const _0x53fe26=_0x32987a;return{'model':db[_0x2f71d6[_0x53fe26('0x30')]],'as':_0x2f71d6['as'],'attributes':_0x2f71d6[_0x53fe26('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2b5cbb){const _0x5036e7=_0x34edf8;logger[_0x5036e7('0x4f')](_0x5036e7('0x42'),_0x226c5e),logger['debug']('GetFaxAccount',_0x226c5e,JSON[_0x5036e7('0x3a')](_0x2b5cbb)),_0x57c7d0(_0x2b5cbb);})[_0x34edf8('0x1c')](function(_0x216856){const _0x4890a4=_0x34edf8;logger[_0x4890a4('0x25')]('GetFaxAccount',_0x216856[_0x4890a4('0x19')],_0x226c5e),_0x125428(_0x1e21dc[_0x4890a4('0x25')](0x1f4,_0x216856['message']));});});},exports['NotifyFaxAccount']=function(_0x4aabd8){const _0x3d294f=this;return new Promise(function(_0x387574,_0xab6878){const _0x4b1e9b=a189_0x41e3,_0x298935={'body':_0x4aabd8[_0x4b1e9b('0x31')],'channel':'fax'};let _0x2470ba=[],_0x15a6e1=[];const _0x1aaec0={};return db[_0x4b1e9b('0x4d')][_0x4b1e9b('0x9')]()[_0x4b1e9b('0x48')](function(_0x31f2dd){const _0x207f0c=_0x4b1e9b;if(!_0x31f2dd)throw new db['Sequelize']['ValidationError'](_0x207f0c('0x44'));_0x2470ba=_['difference'](_[_0x207f0c('0x35')](_0x31f2dd),['createdAt',_0x207f0c('0x2a')]),_0x15a6e1=_['difference'](_[_0x207f0c('0x35')](_0x31f2dd),[_0x207f0c('0x5'),_0x207f0c('0x2a'),_0x207f0c('0x3f'),_0x207f0c('0x1a')]);_0x4aabd8['body']['id']&&delete _0x4aabd8[_0x207f0c('0x31')]['id'];if(_[_0x207f0c('0x3')](_0x4aabd8[_0x207f0c('0x31')][_0x207f0c('0xc')]))throw new db[(_0x207f0c('0x29'))][(_0x207f0c('0x43'))](_0x207f0c('0x39'));if(_[_0x207f0c('0x3')](_0x4aabd8[_0x207f0c('0x31')][_0x207f0c('0x31')])||_0x4aabd8[_0x207f0c('0x31')][_0x207f0c('0x31')]==='')throw new db[(_0x207f0c('0x29'))][(_0x207f0c('0x43'))]('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x207f0c('0x3')](_0x4aabd8[_0x207f0c('0x31')][_0x207f0c('0x18')]))throw new db[(_0x207f0c('0x29'))][(_0x207f0c('0x43'))](_0x207f0c('0x3e')+_0x15a6e1);if(!_[_0x207f0c('0x6')](_0x15a6e1,_0x4aabd8[_0x207f0c('0x31')]['mapKey']))throw new db[(_0x207f0c('0x29'))][(_0x207f0c('0x43'))]('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x15a6e1);_0x1aaec0[_0x4aabd8[_0x207f0c('0x31')][_0x207f0c('0x18')]]=_0x4aabd8[_0x207f0c('0x31')][_0x207f0c('0xc')];})[_0x4b1e9b('0x48')](function(){const _0x107c95=_0x4b1e9b;return db[_0x107c95('0x45')][_0x107c95('0x4a')]({'where':{'id':_0x4aabd8[_0x107c95('0x1')]['id']},'include':[{'model':db[_0x107c95('0x1b')],'as':_0x107c95('0x2d'),'include':[{'model':db['CmContact'],'as':'Contacts','where':_0x1aaec0,'limit':0x1,'order':[['updatedAt',_0x107c95('0x2b')]]}]},{'model':db[_0x107c95('0x1d')],'as':_0x107c95('0x47')}]});})[_0x4b1e9b('0x48')](function(_0x3b8190){const _0x396528=_0x4b1e9b;if(_0x3b8190&&_0x3b8190[_0x396528('0x2d')]){const _0x195903=_0x3b8190['get']({'plain':!![]});_0x298935[_0x396528('0x1')]=_0x195903,_0x298935[_0x396528('0x7')]=_0x195903['Applications'],_0x298935[_0x396528('0x2f')]=_0x195903[_0x396528('0x2d')],_0x298935['applications']=_[_0x396528('0x46')](_0x298935['applications'],['priority'],[_0x396528('0x32')]);_0x298935['account']['Applications']&&delete _0x298935['account'][_0x396528('0x47')];if(_0x298935[_0x396528('0x1')][_0x396528('0x2d')]&&_0x298935[_0x396528('0x1')][_0x396528('0x2d')][_0x396528('0x40')]['length'])return _0x298935[_0x396528('0x1')]['List'][_0x396528('0x40')][0x0];const _0x58d9c9=_[_0x396528('0x3b')](_0x4aabd8['body'],{'firstName':_0x4aabd8[_0x396528('0x31')][_0x396528('0xc')],'ListId':_0x195903[_0x396528('0x1a')]});return _0x58d9c9[_0x4aabd8[_0x396528('0x31')][_0x396528('0x18')]]=_0x4aabd8['body']['from'],db[_0x396528('0x4d')][_0x396528('0x14')](_0x58d9c9,{'fields':_0x2470ba,'raw':!![]});}})[_0x4b1e9b('0x48')](function(_0x1041bd){const _0x945eb7=_0x4b1e9b;_0x298935[_0x945eb7('0x2')]=_0x1041bd;if(_0x1041bd){const _0xe28e90={'ContactId':_0x1041bd['id'],'FaxAccountId':_0x4aabd8['account']['id'],'fax':_0x1041bd['fax']};return db['FaxInteraction'][_0x945eb7('0x4a')]({'where':{'ContactId':_0x1041bd['id'],'closed':![],'FaxAccountId':_0x4aabd8[_0x945eb7('0x1')]['id']}})['then'](function(_0x25ff63){const _0x5c5109=_0x945eb7;if(_0x25ff63)return[_0x25ff63,![]];return db[_0x5c5109('0x20')]['create'](_0xe28e90)[_0x5c5109('0x48')](function(_0x59d110){return[_0x59d110,!![]];});});}else throw new Error(_0x945eb7('0xe'));})['then'](function([_0x4a452a,_0x25f151]){const _0x165992=_0x4b1e9b,_0xd70d1c=_0x4a452a[_0x165992('0x26')]({'plain':!![]});return _0x25f151?(_0x298935[_0x165992('0x1')][_0x165992('0x23')]&&_0x298935[_0x165992('0x7')][_0x165992('0x4b')]({'id':0x0,'priority':_0x298935[_0x165992('0x7')][_0x165992('0x2c')]+0x1,'app':'close','appdata':_0x165992('0x22'),'interval':_0x165992('0x11')}),_0xd70d1c[_0x165992('0x50')]=!![]):_0xd70d1c[_0x165992('0x50')]=![],_0x298935['interaction']=_0xd70d1c,db[_0x165992('0xa')]['create']({'body':_0x4aabd8[_0x165992('0x31')][_0x165992('0x31')],'FaxAccountId':_0x4aabd8['account']['id'],'FaxInteractionId':_0x4a452a['id'],'direction':'in','ContactId':_0x4a452a[_0x165992('0xd')],'AttachmentId':_0x4aabd8[_0x165992('0x31')][_0x165992('0x1e')]});})[_0x4b1e9b('0x48')](function(_0x1a47de){const _0x8357b5=_0x4b1e9b;_0x298935[_0x8357b5('0x19')]=_0x1a47de;if(_0x298935['interaction']['UserId'])return db[_0x8357b5('0x0')][_0x8357b5('0x4a')]({'attributes':['id','name'],'where':{'id':_0x298935['interaction'][_0x8357b5('0x36')]}})[_0x8357b5('0x48')](function(_0x1cf207){const _0x46919e=_0x8357b5;return _0x1cf207&&_0x298935[_0x46919e('0x7')]['unshift']({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x1cf207[_0x46919e('0xf')]+','+(_0x298935[_0x46919e('0x1')][_0x46919e('0x27')]||0xa),'interval':_0x46919e('0x11')}),respondWithRpcPromise(_0x46919e('0x15'),_0x46919e('0x16'),_0x298935);});return respondWithRpcPromise('Start',_0x8357b5('0x16'),_0x298935);})[_0x4b1e9b('0x48')](function(_0x9c6033){_0x387574(_0x9c6033);})[_0x4b1e9b('0x1c')](function(_0x1efd1a){_0xab6878(_0x3d294f['error'](0x1f4,_0x1efd1a['message']));});});}; \ No newline at end of file +const a189_0x2e66=['limit','CmList','options','result','then','priority','orderBy','contact','fax','ListId','AttachmentId','difference','mapKey','interaction','findOne','CmContact','jayson/promise','FaxAccount,\x20%s,\x20%s','GetFaxAccount','rpc','get','attributes','push','*,*,*,*','created','CompanyId','http','account','request\x20sent','stringify','Sequelize','Start','catch','map','create','applications','NotifyFaxAccount','body\x20is\x20mandatory\x20and\x20not\x20empty','no\x20available\x20attributes','raw','list','error','UserId','ContactId','info','length','from','includes','../../mysqldb','message','isNil','defaults','where','body','./faxAccount.socket','asc','agent','unshift','Contacts','include','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','model','FaxInteraction','Applications','describe','name','request','FaxAccount,\x20%s,\x20%s,\x20%s','startRouting','ValidationError','Contact\x20not\x20found','updatedAt','debug','unmanaged','FaxAccount','FaxApplication','autoclose','DESC','findAll','List','keys','createdAt','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','waitForTheAssignedAgent'];(function(_0x4a5c48,_0x2e66e5){const _0x25f04f=function(_0x199783){while(--_0x199783){_0x4a5c48['push'](_0x4a5c48['shift']());}};_0x25f04f(++_0x2e66e5);}(a189_0x2e66,0x161));const a189_0x25f0=function(_0x4a5c48,_0x2e66e5){_0x4a5c48=_0x4a5c48-0x0;let _0x25f04f=a189_0x2e66[_0x4a5c48];return _0x25f04f;};const _0x22ed0d=a189_0x25f0;'use strict';const _=require('lodash'),db=require(_0x22ed0d('0x1f'))['db'],logger=require('../../config/logger')(_0x22ed0d('0x2')),{getSocket}=require('../../rediscache'),socket=getSocket(),jayson=require(_0x22ed0d('0x53')),client=jayson['client'][_0x22ed0d('0x9')]({'port':0x232c});require(_0x22ed0d('0x25'))['register'](socket);function respondWithRpcPromise(_0x199783,_0x232ef4,_0x3b2308){return new Promise(function(_0x106b87,_0x235f76){const _0x53103c=a189_0x25f0;return client[_0x53103c('0x31')](_0x199783,_0x3b2308)[_0x53103c('0x47')](function(_0x309b37){const _0x500ba5=_0x53103c;logger[_0x500ba5('0x1b')]('FaxAccount,\x20%s,\x20%s',_0x232ef4,_0x500ba5('0xb')),logger['debug'](_0x500ba5('0x32'),_0x232ef4,_0x500ba5('0xb'),JSON['stringify'](_0x309b37));if(_0x309b37[_0x500ba5('0x18')]){if(_0x309b37[_0x500ba5('0x18')]['code']===0x1f4)return logger[_0x500ba5('0x18')](_0x500ba5('0x0'),_0x232ef4,_0x309b37[_0x500ba5('0x18')][_0x500ba5('0x20')]),_0x235f76(_0x309b37[_0x500ba5('0x18')]['message']);return logger[_0x500ba5('0x18')]('FaxAccount,\x20%s,\x20%s',_0x232ef4,_0x309b37['error'][_0x500ba5('0x20')]),_0x106b87(_0x309b37['error'][_0x500ba5('0x20')]);}else logger[_0x500ba5('0x1b')](_0x500ba5('0x0'),_0x232ef4,_0x500ba5('0xb')),_0x106b87(_0x309b37[_0x500ba5('0x46')][_0x500ba5('0x20')]);})[_0x53103c('0xf')](function(_0x2f3f4e){const _0x5194ee=_0x53103c;logger[_0x5194ee('0x18')](_0x5194ee('0x0'),_0x232ef4,_0x2f3f4e),_0x235f76(_0x2f3f4e);});});}exports[_0x22ed0d('0x1')]=function(_0x6b2ee2){const _0x4e5568=this;return new Promise(function(_0x2d4aad,_0x3f6f39){const _0x1a2348=a189_0x25f0;return db[_0x1a2348('0x39')][_0x1a2348('0x3d')]({'raw':_0x6b2ee2[_0x1a2348('0x45')]?_0x6b2ee2[_0x1a2348('0x45')][_0x1a2348('0x16')]===undefined?!![]:![]:!![],'where':_0x6b2ee2['options']?_0x6b2ee2[_0x1a2348('0x45')][_0x1a2348('0x23')]||null:null,'attributes':_0x6b2ee2[_0x1a2348('0x45')]?_0x6b2ee2[_0x1a2348('0x45')][_0x1a2348('0x4')]||null:null,'limit':_0x6b2ee2[_0x1a2348('0x45')]?_0x6b2ee2[_0x1a2348('0x45')][_0x1a2348('0x43')]||null:null,'include':_0x6b2ee2[_0x1a2348('0x45')]?_0x6b2ee2['options'][_0x1a2348('0x2a')]?_[_0x1a2348('0x10')](_0x6b2ee2[_0x1a2348('0x45')][_0x1a2348('0x2a')],function(_0x5e7e05){const _0x431c73=_0x1a2348;return{'model':db[_0x5e7e05[_0x431c73('0x2c')]],'as':_0x5e7e05['as'],'attributes':_0x5e7e05[_0x431c73('0x4')],'include':_0x5e7e05[_0x431c73('0x2a')]?_[_0x431c73('0x10')](_0x5e7e05[_0x431c73('0x2a')],function(_0x3e11c5){const _0x512a8e=_0x431c73;return{'model':db[_0x3e11c5[_0x512a8e('0x2c')]],'as':_0x3e11c5['as'],'attributes':_0x3e11c5['attributes'],'include':_0x3e11c5[_0x512a8e('0x2a')]?_[_0x512a8e('0x10')](_0x3e11c5[_0x512a8e('0x2a')],function(_0x30108e){const _0x5c44aa=_0x512a8e;return{'model':db[_0x30108e[_0x5c44aa('0x2c')]],'as':_0x30108e['as'],'attributes':_0x30108e[_0x5c44aa('0x4')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x55baf3){const _0x21f96b=_0x1a2348;logger['info']('GetFaxAccount',_0x6b2ee2),logger[_0x21f96b('0x37')](_0x21f96b('0x1'),_0x6b2ee2,JSON[_0x21f96b('0xc')](_0x55baf3)),_0x2d4aad(_0x55baf3);})[_0x1a2348('0xf')](function(_0x3647aa){const _0x1e845a=_0x1a2348;logger[_0x1e845a('0x18')](_0x1e845a('0x1'),_0x3647aa['message'],_0x6b2ee2),_0x3f6f39(_0x4e5568['error'](0x1f4,_0x3647aa[_0x1e845a('0x20')]));});});},exports[_0x22ed0d('0x13')]=function(_0x42daf9){const _0xfd5a8c=this;return new Promise(function(_0x31fdf7,_0x3fb0b9){const _0x1471fb=a189_0x25f0,_0x1a1cd3={'body':_0x42daf9[_0x1471fb('0x24')],'channel':_0x1471fb('0x4b')};let _0x4ea20d=[],_0xf4d87e=[];const _0x5d1e76={};return db[_0x1471fb('0x52')][_0x1471fb('0x2f')]()[_0x1471fb('0x47')](function(_0x326d54){const _0x5074d4=_0x1471fb;if(!_0x326d54)throw new db['Sequelize'][(_0x5074d4('0x34'))](_0x5074d4('0x15'));_0x4ea20d=_[_0x5074d4('0x4e')](_[_0x5074d4('0x3f')](_0x326d54),[_0x5074d4('0x40'),_0x5074d4('0x36')]),_0xf4d87e=_['difference'](_[_0x5074d4('0x3f')](_0x326d54),[_0x5074d4('0x40'),'updatedAt',_0x5074d4('0x8'),_0x5074d4('0x4c')]);_0x42daf9[_0x5074d4('0x24')]['id']&&delete _0x42daf9[_0x5074d4('0x24')]['id'];if(_[_0x5074d4('0x21')](_0x42daf9[_0x5074d4('0x24')][_0x5074d4('0x1d')]))throw new db[(_0x5074d4('0xd'))][(_0x5074d4('0x34'))]('from\x20is\x20mandatory');if(_[_0x5074d4('0x21')](_0x42daf9[_0x5074d4('0x24')][_0x5074d4('0x24')])||_0x42daf9[_0x5074d4('0x24')][_0x5074d4('0x24')]==='')throw new db[(_0x5074d4('0xd'))][(_0x5074d4('0x34'))](_0x5074d4('0x14'));if(_['isNil'](_0x42daf9[_0x5074d4('0x24')][_0x5074d4('0x4f')]))throw new db['Sequelize'][(_0x5074d4('0x34'))](_0x5074d4('0x41')+_0xf4d87e);if(!_[_0x5074d4('0x1e')](_0xf4d87e,_0x42daf9[_0x5074d4('0x24')][_0x5074d4('0x4f')]))throw new db[(_0x5074d4('0xd'))][(_0x5074d4('0x34'))](_0x5074d4('0x2b')+_0xf4d87e);_0x5d1e76[_0x42daf9[_0x5074d4('0x24')][_0x5074d4('0x4f')]]=_0x42daf9[_0x5074d4('0x24')]['from'];})[_0x1471fb('0x47')](function(){const _0x1a0a68=_0x1471fb;return db[_0x1a0a68('0x39')][_0x1a0a68('0x51')]({'where':{'id':_0x42daf9['account']['id']},'include':[{'model':db[_0x1a0a68('0x44')],'as':_0x1a0a68('0x3e'),'include':[{'model':db[_0x1a0a68('0x52')],'as':_0x1a0a68('0x29'),'where':_0x5d1e76,'limit':0x1,'order':[['updatedAt',_0x1a0a68('0x3c')]]}]},{'model':db[_0x1a0a68('0x3a')],'as':'Applications'}]});})['then'](function(_0x8ba34c){const _0x5540a5=_0x1471fb;if(_0x8ba34c&&_0x8ba34c['List']){const _0x11eb5f=_0x8ba34c[_0x5540a5('0x3')]({'plain':!![]});_0x1a1cd3[_0x5540a5('0xa')]=_0x11eb5f,_0x1a1cd3[_0x5540a5('0x12')]=_0x11eb5f[_0x5540a5('0x2e')],_0x1a1cd3[_0x5540a5('0x17')]=_0x11eb5f[_0x5540a5('0x3e')],_0x1a1cd3['applications']=_[_0x5540a5('0x49')](_0x1a1cd3[_0x5540a5('0x12')],[_0x5540a5('0x48')],[_0x5540a5('0x26')]);_0x1a1cd3[_0x5540a5('0xa')][_0x5540a5('0x2e')]&&delete _0x1a1cd3[_0x5540a5('0xa')][_0x5540a5('0x2e')];if(_0x1a1cd3['account'][_0x5540a5('0x3e')]&&_0x1a1cd3['account'][_0x5540a5('0x3e')][_0x5540a5('0x29')][_0x5540a5('0x1c')])return _0x1a1cd3[_0x5540a5('0xa')]['List'][_0x5540a5('0x29')][0x0];const _0x3f2e1f=_[_0x5540a5('0x22')](_0x42daf9[_0x5540a5('0x24')],{'firstName':_0x42daf9[_0x5540a5('0x24')][_0x5540a5('0x1d')],'ListId':_0x11eb5f['ListId']});return _0x3f2e1f[_0x42daf9[_0x5540a5('0x24')][_0x5540a5('0x4f')]]=_0x42daf9['body'][_0x5540a5('0x1d')],db[_0x5540a5('0x52')][_0x5540a5('0x11')](_0x3f2e1f,{'fields':_0x4ea20d,'raw':!![]});}})['then'](function(_0x32c8b7){const _0x1c839e=_0x1471fb;_0x1a1cd3[_0x1c839e('0x4a')]=_0x32c8b7;if(_0x32c8b7){const _0x3ddbba={'ContactId':_0x32c8b7['id'],'FaxAccountId':_0x42daf9[_0x1c839e('0xa')]['id'],'fax':_0x32c8b7[_0x1c839e('0x4b')]};return db[_0x1c839e('0x2d')]['findOne']({'where':{'ContactId':_0x32c8b7['id'],'closed':![],'FaxAccountId':_0x42daf9[_0x1c839e('0xa')]['id']}})['then'](function(_0x495b5e){const _0x28fab3=_0x1c839e;if(_0x495b5e)return[_0x495b5e,![]];return db['FaxInteraction'][_0x28fab3('0x11')](_0x3ddbba)[_0x28fab3('0x47')](function(_0x1355be){return[_0x1355be,!![]];});});}else throw new Error(_0x1c839e('0x35'));})[_0x1471fb('0x47')](function([_0x32bde0,_0x493a40]){const _0x4dda5a=_0x1471fb,_0x58ea00=_0x32bde0[_0x4dda5a('0x3')]({'plain':!![]});return _0x493a40?(_0x1a1cd3[_0x4dda5a('0xa')][_0x4dda5a('0x3b')]&&_0x1a1cd3[_0x4dda5a('0x12')][_0x4dda5a('0x5')]({'id':0x0,'priority':_0x1a1cd3[_0x4dda5a('0x12')][_0x4dda5a('0x1c')]+0x1,'app':'close','appdata':_0x4dda5a('0x38'),'interval':_0x4dda5a('0x6')}),_0x58ea00[_0x4dda5a('0x7')]=!![]):_0x58ea00['created']=![],_0x1a1cd3[_0x4dda5a('0x50')]=_0x58ea00,db['FaxMessage'][_0x4dda5a('0x11')]({'body':_0x42daf9['body']['body'],'FaxAccountId':_0x42daf9[_0x4dda5a('0xa')]['id'],'FaxInteractionId':_0x32bde0['id'],'direction':'in','ContactId':_0x32bde0[_0x4dda5a('0x1a')],'AttachmentId':_0x42daf9[_0x4dda5a('0x24')][_0x4dda5a('0x4d')]});})[_0x1471fb('0x47')](function(_0x56ec1b){const _0xdb1a64=_0x1471fb;_0x1a1cd3[_0xdb1a64('0x20')]=_0x56ec1b;if(_0x1a1cd3['interaction'][_0xdb1a64('0x19')])return db['User'][_0xdb1a64('0x51')]({'attributes':['id',_0xdb1a64('0x30')],'where':{'id':_0x1a1cd3[_0xdb1a64('0x50')][_0xdb1a64('0x19')]}})['then'](function(_0x280b52){const _0x624e04=_0xdb1a64;return _0x280b52&&_0x1a1cd3[_0x624e04('0x12')][_0x624e04('0x28')]({'id':0x0,'priority':0x0,'app':_0x624e04('0x27'),'appdata':_0x280b52[_0x624e04('0x30')]+','+(_0x1a1cd3[_0x624e04('0xa')][_0x624e04('0x42')]||0xa),'interval':_0x624e04('0x6')}),respondWithRpcPromise(_0x624e04('0xe'),_0x624e04('0x33'),_0x1a1cd3);});return respondWithRpcPromise(_0xdb1a64('0xe'),_0xdb1a64('0x33'),_0x1a1cd3);})[_0x1471fb('0x47')](function(_0x774785){_0x31fdf7(_0x774785);})['catch'](function(_0x382b3f){const _0x3b2ff3=_0x1471fb;_0x3fb0b9(_0xfd5a8c[_0x3b2ff3('0x18')](0x1f4,_0x382b3f[_0x3b2ff3('0x20')]));});});}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.socket.js b/server/api/faxAccount/faxAccount.socket.js index d0b6b4d..d849a53 100644 --- a/server/api/faxAccount/faxAccount.socket.js +++ b/server/api/faxAccount/faxAccount.socket.js @@ -1 +1 @@ -const a190_0x582d=['remove','faxAccount:','length','./faxAccount.events','update','register','emit'];(function(_0x279dd,_0x582d16){const _0x387a93=function(_0x249271){while(--_0x249271){_0x279dd['push'](_0x279dd['shift']());}};_0x387a93(++_0x582d16);}(a190_0x582d,0x14e));const a190_0x387a=function(_0x279dd,_0x582d16){_0x279dd=_0x279dd-0x0;let _0x387a93=a190_0x582d[_0x279dd];return _0x387a93;};const _0x548377=a190_0x387a;'use strict';const FaxAccountEvents=require(_0x548377('0x5')),events=['save',_0x548377('0x2'),_0x548377('0x6')];function createListener(_0x249271,_0x223e8b){return function(_0x34b118){const _0x1ac693=a190_0x387a;_0x223e8b[_0x1ac693('0x1')](_0x249271,_0x34b118);};}exports[_0x548377('0x0')]=function(_0x4e65c2){const _0x1c5972=_0x548377;for(let _0x219728=0x0,_0x353440=events[_0x1c5972('0x4')];_0x219728<_0x353440;_0x219728++){const _0x22317d=events[_0x219728],_0x2637e3=createListener(_0x1c5972('0x3')+_0x22317d,_0x4e65c2);FaxAccountEvents['on'](_0x22317d,_0x2637e3);}}; \ No newline at end of file +const a190_0x4540=['update','register','length','save','faxAccount:','./faxAccount.events'];(function(_0x52e0b8,_0x4540af){const _0x5d996b=function(_0x48fb89){while(--_0x48fb89){_0x52e0b8['push'](_0x52e0b8['shift']());}};_0x5d996b(++_0x4540af);}(a190_0x4540,0x6d));const a190_0x5d99=function(_0x52e0b8,_0x4540af){_0x52e0b8=_0x52e0b8-0x0;let _0x5d996b=a190_0x4540[_0x52e0b8];return _0x5d996b;};const _0x40b6af=a190_0x5d99;'use strict';const FaxAccountEvents=require(_0x40b6af('0x4')),events=[_0x40b6af('0x2'),'remove',_0x40b6af('0x5')];function createListener(_0x48fb89,_0x520cab){return function(_0x1da3a8){_0x520cab['emit'](_0x48fb89,_0x1da3a8);};}exports[_0x40b6af('0x0')]=function(_0x3fb057){const _0x46986b=_0x40b6af;for(let _0x229024=0x0,_0x438ca6=events[_0x46986b('0x1')];_0x229024<_0x438ca6;_0x229024++){const _0x2d5091=events[_0x229024],_0x577ddb=createListener(_0x46986b('0x3')+_0x2d5091,_0x3fb057);FaxAccountEvents['on'](_0x2d5091,_0x577ddb);}}; \ No newline at end of file diff --git a/server/api/faxAccount/index.js b/server/api/faxAccount/index.js index 60f14fb..c78a262 100644 --- a/server/api/faxAccount/index.js +++ b/server/api/faxAccount/index.js @@ -1 +1 @@ -const a191_0x4990=['express','/:id/messages','addInteraction','/:id/users','../../components/auth/service','/:id/canned_answers','delete','./faxAccount.controller','addAnswer','destroy','/:id/interactions','getInteractions','getApplications','post','removeAgents','isAuthenticated','/:id/dispositions','show','getMessages','addAgents','get','/:id/applications','/:id','getDispositions','Router','addAccountApplications','/:id/send','updateAccountApplications','create','put','/describe','/updateaccountapplications'];(function(_0x2acbae,_0x499056){const _0x2531e5=function(_0x25a93e){while(--_0x25a93e){_0x2acbae['push'](_0x2acbae['shift']());}};_0x2531e5(++_0x499056);}(a191_0x4990,0x179));const a191_0x2531=function(_0x2acbae,_0x499056){_0x2acbae=_0x2acbae-0x0;let _0x2531e5=a191_0x4990[_0x2acbae];return _0x2531e5;};const _0x5f0017=a191_0x2531;'use strict';const express=require(_0x5f0017('0x7')),router=express[_0x5f0017('0x1f')](),auth=require(_0x5f0017('0xb')),controller=require(_0x5f0017('0xe'));router['get']('/',auth[_0x5f0017('0x16')](),controller['index']),router[_0x5f0017('0x1b')](_0x5f0017('0x5'),auth[_0x5f0017('0x16')](),controller['describe']),router[_0x5f0017('0x1b')]('/:id',auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x18')]),router[_0x5f0017('0x1b')](_0x5f0017('0x17'),auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x1e')]),router[_0x5f0017('0x1b')](_0x5f0017('0xc'),auth[_0x5f0017('0x16')](),controller['getAnswers']),router[_0x5f0017('0x1b')](_0x5f0017('0x11'),auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x12')]),router[_0x5f0017('0x1b')](_0x5f0017('0x1c'),auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x13')]),router[_0x5f0017('0x1b')](_0x5f0017('0x8'),auth['isAuthenticated'](),controller[_0x5f0017('0x19')]),router[_0x5f0017('0x1b')](_0x5f0017('0xa'),auth[_0x5f0017('0x16')](),controller['getAgents']),router['post']('/',auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x3')]),router[_0x5f0017('0x14')]('/:id/dispositions',auth[_0x5f0017('0x16')](),controller['addDisposition']),router[_0x5f0017('0x14')](_0x5f0017('0xc'),auth['isAuthenticated'](),controller[_0x5f0017('0xf')]),router[_0x5f0017('0x14')]('/:id/interactions',auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x9')]),router[_0x5f0017('0x14')](_0x5f0017('0x1c'),auth[_0x5f0017('0x16')](),controller['addApplications']),router[_0x5f0017('0x14')]('/addaccountapplications',auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x0')]),router[_0x5f0017('0x14')](_0x5f0017('0x6'),auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x2')]),router[_0x5f0017('0x14')](_0x5f0017('0x1'),auth[_0x5f0017('0x16')](),controller['send']),router['post'](_0x5f0017('0xa'),auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x1a')]),router[_0x5f0017('0x4')](_0x5f0017('0x1d'),auth[_0x5f0017('0x16')](),controller['update']),router[_0x5f0017('0xd')](_0x5f0017('0x1d'),auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x10')]),router[_0x5f0017('0xd')](_0x5f0017('0x17'),auth[_0x5f0017('0x16')](),controller['removeDispositions']),router[_0x5f0017('0xd')]('/:id/canned_answers',auth['isAuthenticated'](),controller['removeAnswers']),router['delete'](_0x5f0017('0xa'),auth[_0x5f0017('0x16')](),controller[_0x5f0017('0x15')]),module['exports']=router; \ No newline at end of file +const a191_0xd177=['get','update','../../components/auth/service','addApplications','/:id/canned_answers','describe','getDispositions','/describe','/:id/messages','addAccountApplications','/:id/users','/:id','removeAnswers','/:id/interactions','isAuthenticated','getInteractions','index','/addaccountapplications','addDisposition','destroy','/updateaccountapplications','addAnswer','send','getMessages','put','exports','delete','Router','getApplications','updateAccountApplications','show','addInteraction','./faxAccount.controller','/:id/dispositions','getAgents','post','/:id/send'];(function(_0x14bb0f,_0xd1776){const _0x225408=function(_0x598bec){while(--_0x598bec){_0x14bb0f['push'](_0x14bb0f['shift']());}};_0x225408(++_0xd1776);}(a191_0xd177,0x100));const a191_0x2254=function(_0x14bb0f,_0xd1776){_0x14bb0f=_0x14bb0f-0x0;let _0x225408=a191_0xd177[_0x14bb0f];return _0x225408;};const _0x3ae3a6=a191_0x2254;'use strict';const express=require('express'),router=express[_0x3ae3a6('0x1e')](),auth=require(_0x3ae3a6('0x5')),controller=require(_0x3ae3a6('0x23'));router['get']('/',auth['isAuthenticated'](),controller[_0x3ae3a6('0x13')]),router[_0x3ae3a6('0x3')](_0x3ae3a6('0xa'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x8')]),router[_0x3ae3a6('0x3')]('/:id',auth['isAuthenticated'](),controller[_0x3ae3a6('0x21')]),router['get']('/:id/dispositions',auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x9')]),router[_0x3ae3a6('0x3')](_0x3ae3a6('0x7'),auth[_0x3ae3a6('0x11')](),controller['getAnswers']),router[_0x3ae3a6('0x3')]('/:id/interactions',auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x12')]),router[_0x3ae3a6('0x3')]('/:id/applications',auth['isAuthenticated'](),controller[_0x3ae3a6('0x1f')]),router[_0x3ae3a6('0x3')](_0x3ae3a6('0xb'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x1a')]),router[_0x3ae3a6('0x3')](_0x3ae3a6('0xd'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x0')]),router[_0x3ae3a6('0x1')]('/',auth['isAuthenticated'](),controller['create']),router[_0x3ae3a6('0x1')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0x3ae3a6('0x15')]),router['post'](_0x3ae3a6('0x7'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x18')]),router[_0x3ae3a6('0x1')](_0x3ae3a6('0x10'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x22')]),router[_0x3ae3a6('0x1')]('/:id/applications',auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x6')]),router[_0x3ae3a6('0x1')](_0x3ae3a6('0x14'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0xc')]),router[_0x3ae3a6('0x1')](_0x3ae3a6('0x17'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x20')]),router['post'](_0x3ae3a6('0x2'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x19')]),router[_0x3ae3a6('0x1')](_0x3ae3a6('0xd'),auth['isAuthenticated'](),controller['addAgents']),router[_0x3ae3a6('0x1b')](_0x3ae3a6('0xe'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x4')]),router[_0x3ae3a6('0x1d')](_0x3ae3a6('0xe'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0x16')]),router['delete'](_0x3ae3a6('0x24'),auth['isAuthenticated'](),controller['removeDispositions']),router[_0x3ae3a6('0x1d')](_0x3ae3a6('0x7'),auth[_0x3ae3a6('0x11')](),controller[_0x3ae3a6('0xf')]),router[_0x3ae3a6('0x1d')](_0x3ae3a6('0xd'),auth[_0x3ae3a6('0x11')](),controller['removeAgents']),module[_0x3ae3a6('0x1c')]=router; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.attributes.js b/server/api/faxApplication/faxApplication.attributes.js index c2dff99..93bd5f5 100644 --- a/server/api/faxApplication/faxApplication.attributes.js +++ b/server/api/faxApplication/faxApplication.attributes.js @@ -1 +1 @@ -const a192_0x265d=['exports','sequelize','STRING','noop','INTEGER'];(function(_0x2c722c,_0x265d00){const _0x244ce2=function(_0x2964c5){while(--_0x2964c5){_0x2c722c['push'](_0x2c722c['shift']());}};_0x244ce2(++_0x265d00);}(a192_0x265d,0x147));const a192_0x244c=function(_0x2c722c,_0x265d00){_0x2c722c=_0x2c722c-0x0;let _0x244ce2=a192_0x265d[_0x2c722c];return _0x244ce2;};const _0x5e12a5=a192_0x244c;'use strict';const Sequelize=require(_0x5e12a5('0x4'));module[_0x5e12a5('0x3')]={'priority':{'type':Sequelize[_0x5e12a5('0x2')],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x5e12a5('0x1')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x5e12a5('0x0')]},'interval':{'type':Sequelize['STRING'],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +const a192_0x465e=['INTEGER','exports','noop','sequelize'];(function(_0x40f3d4,_0x465ea9){const _0x2ac691=function(_0x197802){while(--_0x197802){_0x40f3d4['push'](_0x40f3d4['shift']());}};_0x2ac691(++_0x465ea9);}(a192_0x465e,0x1c1));const a192_0x2ac6=function(_0x40f3d4,_0x465ea9){_0x40f3d4=_0x40f3d4-0x0;let _0x2ac691=a192_0x465e[_0x40f3d4];return _0x2ac691;};const _0x5b3034=a192_0x2ac6;'use strict';const Sequelize=require(_0x5b3034('0x2'));module[_0x5b3034('0x0')]={'priority':{'type':Sequelize[_0x5b3034('0x3')],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x5b3034('0x1')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize['STRING'],'defaultValue':'*,*,*,*'}}; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.controller.js b/server/api/faxApplication/faxApplication.controller.js index e6789f4..3ad7f10 100644 --- a/server/api/faxApplication/faxApplication.controller.js +++ b/server/api/faxApplication/faxApplication.controller.js @@ -1 +1 @@ -const a193_0x532a=['api','like','includeAll','undefined','sort','findOne','../../components/parsers/qs','status','options','length','destroy','sequelize','include','count','type','model','query','Content-Range','name','end','stack','then','params','sendStatus','keys','FaxApplication','intersection','body','attributes','fields','lodash','limit','json','map','send','merge','VIRTUAL','offset','findAll','error','catch','set','create','update','index','rawAttributes','filter','where','../../mysqldb','filters','show'];(function(_0xb489e4,_0x532a1c){const _0x6c91ed=function(_0x324a34){while(--_0x324a34){_0xb489e4['push'](_0xb489e4['shift']());}};_0x6c91ed(++_0x532a1c);}(a193_0x532a,0x136));const a193_0x6c91=function(_0xb489e4,_0x532a1c){_0xb489e4=_0xb489e4-0x0;let _0x6c91ed=a193_0x532a[_0xb489e4];return _0x6c91ed;};const _0x29a23f=a193_0x6c91;'use strict';const _=require(_0x29a23f('0x1a')),qs=require(_0x29a23f('0x2')),logger=require('../../config/logger')(_0x29a23f('0x2f')),db=require(_0x29a23f('0x2c'))['db'],{Op}=require(_0x29a23f('0x7'));function respondWithResult(_0x324a34,_0x5e3707){return _0x5e3707=_0x5e3707||0xc8,function(_0x1b0dc6){const _0x59fb79=a193_0x6c91;if(_0x1b0dc6)return _0x324a34[_0x59fb79('0x3')](_0x5e3707)[_0x59fb79('0x1c')](_0x1b0dc6);};}function respondWithFilteredResult(_0x14b139,_0x334abf){return function(_0x40ec9d){const _0x31c102=a193_0x6c91;if(_0x40ec9d){const _0x5d547e=_0x40ec9d['count'],_0x45f5ab=_0x334abf[_0x31c102('0x21')];let _0x3437c2=_0x334abf[_0x31c102('0x21')]+_0x334abf[_0x31c102('0x1b')],_0x22abbb;return _0x3437c2>=_0x5d547e?(_0x3437c2=_0x5d547e,_0x22abbb=0xc8):_0x22abbb=0xce,_0x14b139['status'](_0x22abbb),_0x14b139[_0x31c102('0x25')](_0x31c102('0xd'),_0x45f5ab+'-'+_0x3437c2+'/'+_0x5d547e)['json'](_0x40ec9d);}return null;};}function saveUpdates(_0x59a090){return function(_0x53678a){const _0xb918c7=a193_0x6c91;if(_0x53678a)return _0x53678a[_0xb918c7('0x27')](_0x59a090)[_0xb918c7('0x11')](function(_0x3e9251){return _0x3e9251;});return null;};}function removeEntity(_0x46d608){return function(_0x394d38){const _0x2c56c1=a193_0x6c91;if(_0x394d38)return _0x394d38[_0x2c56c1('0x6')]()[_0x2c56c1('0x11')](function(){const _0x647b8e=_0x2c56c1;_0x46d608[_0x647b8e('0x3')](0xcc)[_0x647b8e('0xf')]();});};}function handleEntityNotFound(_0xe2e45e){return function(_0x105405){const _0x25d45a=a193_0x6c91;return!_0x105405&&_0xe2e45e[_0x25d45a('0x13')](0x194),_0x105405;};}function handleError(_0x2dfe58,_0x5d84e4){return _0x5d84e4=_0x5d84e4||0x1f4,function(_0x401f48){const _0x500859=a193_0x6c91;logger[_0x500859('0x23')](_0x401f48[_0x500859('0x10')]),_0x401f48[_0x500859('0xe')]&&delete _0x401f48['name'],_0x2dfe58[_0x500859('0x3')](_0x5d84e4)[_0x500859('0x1e')](_0x401f48);};}exports[_0x29a23f('0x28')]=function(_0x27ae76,_0x1bc34c){const _0x472b79=_0x29a23f;let _0x4bd627={};const _0x36c8b7={},_0x202ca9={'count':0x0,'rows':[]},_0x28dbc4=_[_0x472b79('0x1d')](db[_0x472b79('0x15')][_0x472b79('0x29')],function(_0xdc0f05){const _0x589119=_0x472b79;return{'name':_0xdc0f05['fieldName'],'type':_0xdc0f05[_0x589119('0xa')]['key']};});_0x36c8b7[_0x472b79('0xb')]=_[_0x472b79('0x1d')](_0x28dbc4,_0x472b79('0xe')),_0x36c8b7[_0x472b79('0xc')]=_[_0x472b79('0x14')](_0x27ae76['query']),_0x36c8b7[_0x472b79('0x2d')]=_[_0x472b79('0x16')](_0x36c8b7[_0x472b79('0xb')],_0x36c8b7[_0x472b79('0xc')]),_0x4bd627[_0x472b79('0x18')]=_[_0x472b79('0x16')](_0x36c8b7[_0x472b79('0xb')],qs[_0x472b79('0x19')](_0x27ae76[_0x472b79('0xc')]['fields'])),_0x4bd627[_0x472b79('0x18')]=_0x4bd627['attributes'][_0x472b79('0x5')]?_0x4bd627[_0x472b79('0x18')]:_0x36c8b7['model'];typeof _0x27ae76[_0x472b79('0xc')]['nolimit']===_0x472b79('0x32')&&(_0x4bd627['limit']=qs[_0x472b79('0x1b')](_0x27ae76[_0x472b79('0xc')][_0x472b79('0x1b')]),_0x4bd627[_0x472b79('0x21')]=qs[_0x472b79('0x21')](_0x27ae76[_0x472b79('0xc')]['offset']));_0x4bd627['order']=qs['sort'](_0x27ae76[_0x472b79('0xc')][_0x472b79('0x0')]),_0x4bd627[_0x472b79('0x2b')]=qs[_0x472b79('0x2d')](_['pick'](_0x27ae76[_0x472b79('0xc')],_0x36c8b7[_0x472b79('0x2d')]),_0x28dbc4);_0x27ae76[_0x472b79('0xc')][_0x472b79('0x2a')]&&(_0x4bd627[_0x472b79('0x2b')]=_[_0x472b79('0x1f')](_0x4bd627[_0x472b79('0x2b')],{[Op['or']]:_[_0x472b79('0x1d')](_0x28dbc4,function(_0x258450){const _0x2d55de=_0x472b79;if(_0x258450[_0x2d55de('0xa')]!==_0x2d55de('0x20')){const _0x4a57c4={};return _0x4a57c4[_0x258450[_0x2d55de('0xe')]]={[Op[_0x2d55de('0x30')]]:'%'+_0x27ae76['query']['filter']+'%'},_0x4a57c4;}})}));_0x4bd627=_[_0x472b79('0x1f')]({},_0x4bd627,_0x27ae76[_0x472b79('0x4')]);const _0x19dfec={'where':_0x4bd627[_0x472b79('0x2b')]};return db[_0x472b79('0x15')][_0x472b79('0x9')](_0x19dfec)[_0x472b79('0x11')](function(_0x20c3c8){const _0x445019=_0x472b79;return _0x202ca9[_0x445019('0x9')]=_0x20c3c8,_0x27ae76[_0x445019('0xc')]['includeAll']&&(_0x4bd627[_0x445019('0x8')]=[{'all':!![]}]),db[_0x445019('0x15')][_0x445019('0x22')](_0x4bd627);})[_0x472b79('0x11')](function(_0x545689){return _0x202ca9['rows']=_0x545689,_0x202ca9;})[_0x472b79('0x11')](respondWithFilteredResult(_0x1bc34c,_0x4bd627))['catch'](handleError(_0x1bc34c,null));},exports[_0x29a23f('0x2e')]=function(_0x2d0a9c,_0x45ac4d){const _0x6484af=_0x29a23f;let _0x2c129c={'raw':!![],'where':{'id':_0x2d0a9c[_0x6484af('0x12')]['id']}};const _0x1a4095={};return _0x1a4095[_0x6484af('0xb')]=_[_0x6484af('0x14')](db[_0x6484af('0x15')]['rawAttributes']),_0x1a4095['query']=_[_0x6484af('0x14')](_0x2d0a9c[_0x6484af('0xc')]),_0x1a4095[_0x6484af('0x2d')]=_[_0x6484af('0x16')](_0x1a4095[_0x6484af('0xb')],_0x1a4095[_0x6484af('0xc')]),_0x2c129c[_0x6484af('0x18')]=_[_0x6484af('0x16')](_0x1a4095[_0x6484af('0xb')],qs[_0x6484af('0x19')](_0x2d0a9c[_0x6484af('0xc')][_0x6484af('0x19')])),_0x2c129c[_0x6484af('0x18')]=_0x2c129c[_0x6484af('0x18')][_0x6484af('0x5')]?_0x2c129c[_0x6484af('0x18')]:_0x1a4095[_0x6484af('0xb')],_0x2d0a9c['query'][_0x6484af('0x31')]&&(_0x2c129c['include']=[{'all':!![]}]),_0x2c129c=_['merge']({},_0x2c129c,_0x2d0a9c[_0x6484af('0x4')]),db[_0x6484af('0x15')][_0x6484af('0x1')](_0x2c129c)[_0x6484af('0x11')](handleEntityNotFound(_0x45ac4d,null))['then'](respondWithResult(_0x45ac4d,null))[_0x6484af('0x24')](handleError(_0x45ac4d,null));},exports[_0x29a23f('0x26')]=function(_0x6d8983,_0x294fa1){const _0x5414e3=_0x29a23f;return db[_0x5414e3('0x15')][_0x5414e3('0x26')](_0x6d8983['body'],{})[_0x5414e3('0x11')](respondWithResult(_0x294fa1,0xc9))[_0x5414e3('0x24')](handleError(_0x294fa1,null));},exports['update']=function(_0x153256,_0x42acf2){const _0x5525d0=_0x29a23f;return _0x153256[_0x5525d0('0x17')]['id']&&delete _0x153256[_0x5525d0('0x17')]['id'],db[_0x5525d0('0x15')][_0x5525d0('0x1')]({'where':{'id':_0x153256['params']['id']}})[_0x5525d0('0x11')](handleEntityNotFound(_0x42acf2,null))[_0x5525d0('0x11')](saveUpdates(_0x153256[_0x5525d0('0x17')],null))['then'](respondWithResult(_0x42acf2,null))['catch'](handleError(_0x42acf2,null));},exports[_0x29a23f('0x6')]=function(_0xf663f,_0x353afa){const _0x5b656a=_0x29a23f;return db['FaxApplication'][_0x5b656a('0x1')]({'where':{'id':_0xf663f[_0x5b656a('0x12')]['id']}})['then'](handleEntityNotFound(_0x353afa,null))[_0x5b656a('0x11')](removeEntity(_0x353afa,null))[_0x5b656a('0x24')](handleError(_0x353afa,null));}; \ No newline at end of file +const a193_0x4c96=['merge','create','options','count','VIRTUAL','includeAll','index','query','where','length','undefined','findAll','update','FaxApplication','filter','offset','lodash','show','filters','error','intersection','findOne','fields','send','type','then','attributes','../../mysqldb','order','catch','nolimit','end','model','keys','like','Content-Range','sequelize','status','params','api','set','limit','body','stack','json','key','include','rawAttributes','sendStatus','pick','../../config/logger','name','map'];(function(_0x19b00f,_0x4c96bf){const _0x2b6867=function(_0x3cbbe8){while(--_0x3cbbe8){_0x19b00f['push'](_0x19b00f['shift']());}};_0x2b6867(++_0x4c96bf);}(a193_0x4c96,0x110));const a193_0x2b68=function(_0x19b00f,_0x4c96bf){_0x19b00f=_0x19b00f-0x0;let _0x2b6867=a193_0x4c96[_0x19b00f];return _0x2b6867;};const _0x48cc5d=a193_0x2b68;'use strict';const _=require(_0x48cc5d('0x9')),qs=require('../../components/parsers/qs'),logger=require(_0x48cc5d('0x2b'))(_0x48cc5d('0x20')),db=require(_0x48cc5d('0x14'))['db'],{Op}=require(_0x48cc5d('0x1d'));function respondWithResult(_0x3cbbe8,_0xce5833){return _0xce5833=_0xce5833||0xc8,function(_0xf60866){const _0x5e444b=a193_0x2b68;if(_0xf60866)return _0x3cbbe8[_0x5e444b('0x1e')](_0xce5833)[_0x5e444b('0x25')](_0xf60866);};}function respondWithFilteredResult(_0x399690,_0x13d63b){return function(_0x425f40){const _0x2fa78e=a193_0x2b68;if(_0x425f40){const _0xe84483=_0x425f40[_0x2fa78e('0x31')],_0xb67c5a=_0x13d63b[_0x2fa78e('0x8')];let _0x46ebc6=_0x13d63b['offset']+_0x13d63b['limit'],_0x3d0e51;return _0x46ebc6>=_0xe84483?(_0x46ebc6=_0xe84483,_0x3d0e51=0xc8):_0x3d0e51=0xce,_0x399690[_0x2fa78e('0x1e')](_0x3d0e51),_0x399690[_0x2fa78e('0x21')](_0x2fa78e('0x1c'),_0xb67c5a+'-'+_0x46ebc6+'/'+_0xe84483)[_0x2fa78e('0x25')](_0x425f40);}return null;};}function saveUpdates(_0x21fa59){return function(_0x201ebc){const _0x5a303f=a193_0x2b68;if(_0x201ebc)return _0x201ebc[_0x5a303f('0x5')](_0x21fa59)['then'](function(_0x11dd01){return _0x11dd01;});return null;};}function removeEntity(_0x5406b8){return function(_0x5bc4f1){const _0x2344e7=a193_0x2b68;if(_0x5bc4f1)return _0x5bc4f1['destroy']()[_0x2344e7('0x12')](function(){const _0x88caa6=_0x2344e7;_0x5406b8['status'](0xcc)[_0x88caa6('0x18')]();});};}function handleEntityNotFound(_0x5b058c){return function(_0x30239d){const _0x26447f=a193_0x2b68;return!_0x30239d&&_0x5b058c[_0x26447f('0x29')](0x194),_0x30239d;};}function handleError(_0x428129,_0x9edc1b){return _0x9edc1b=_0x9edc1b||0x1f4,function(_0x400ba7){const _0x4f47d6=a193_0x2b68;logger[_0x4f47d6('0xc')](_0x400ba7[_0x4f47d6('0x24')]),_0x400ba7[_0x4f47d6('0x2c')]&&delete _0x400ba7[_0x4f47d6('0x2c')],_0x428129[_0x4f47d6('0x1e')](_0x9edc1b)[_0x4f47d6('0x10')](_0x400ba7);};}exports[_0x48cc5d('0x34')]=function(_0x4cf053,_0x55a649){const _0x46ae70=_0x48cc5d;let _0x23bee2={};const _0x557853={},_0x2fdba3={'count':0x0,'rows':[]},_0x157dc3=_[_0x46ae70('0x2d')](db[_0x46ae70('0x6')][_0x46ae70('0x28')],function(_0x4f98e1){const _0x92c0e8=_0x46ae70;return{'name':_0x4f98e1['fieldName'],'type':_0x4f98e1[_0x92c0e8('0x11')][_0x92c0e8('0x26')]};});_0x557853[_0x46ae70('0x19')]=_[_0x46ae70('0x2d')](_0x157dc3,'name'),_0x557853[_0x46ae70('0x0')]=_[_0x46ae70('0x1a')](_0x4cf053['query']),_0x557853[_0x46ae70('0xb')]=_['intersection'](_0x557853[_0x46ae70('0x19')],_0x557853[_0x46ae70('0x0')]),_0x23bee2['attributes']=_[_0x46ae70('0xd')](_0x557853[_0x46ae70('0x19')],qs['fields'](_0x4cf053[_0x46ae70('0x0')][_0x46ae70('0xf')])),_0x23bee2[_0x46ae70('0x13')]=_0x23bee2[_0x46ae70('0x13')][_0x46ae70('0x2')]?_0x23bee2['attributes']:_0x557853[_0x46ae70('0x19')];typeof _0x4cf053[_0x46ae70('0x0')][_0x46ae70('0x17')]===_0x46ae70('0x3')&&(_0x23bee2['limit']=qs[_0x46ae70('0x22')](_0x4cf053[_0x46ae70('0x0')][_0x46ae70('0x22')]),_0x23bee2[_0x46ae70('0x8')]=qs[_0x46ae70('0x8')](_0x4cf053[_0x46ae70('0x0')][_0x46ae70('0x8')]));_0x23bee2[_0x46ae70('0x15')]=qs['sort'](_0x4cf053[_0x46ae70('0x0')]['sort']),_0x23bee2[_0x46ae70('0x1')]=qs[_0x46ae70('0xb')](_[_0x46ae70('0x2a')](_0x4cf053[_0x46ae70('0x0')],_0x557853[_0x46ae70('0xb')]),_0x157dc3);_0x4cf053[_0x46ae70('0x0')][_0x46ae70('0x7')]&&(_0x23bee2[_0x46ae70('0x1')]=_[_0x46ae70('0x2e')](_0x23bee2[_0x46ae70('0x1')],{[Op['or']]:_[_0x46ae70('0x2d')](_0x157dc3,function(_0x497182){const _0x5ebb29=_0x46ae70;if(_0x497182['type']!==_0x5ebb29('0x32')){const _0x5b490a={};return _0x5b490a[_0x497182[_0x5ebb29('0x2c')]]={[Op[_0x5ebb29('0x1b')]]:'%'+_0x4cf053['query'][_0x5ebb29('0x7')]+'%'},_0x5b490a;}})}));_0x23bee2=_[_0x46ae70('0x2e')]({},_0x23bee2,_0x4cf053[_0x46ae70('0x30')]);const _0x29c325={'where':_0x23bee2[_0x46ae70('0x1')]};return db[_0x46ae70('0x6')]['count'](_0x29c325)[_0x46ae70('0x12')](function(_0x2aa30c){const _0x41d25a=_0x46ae70;return _0x2fdba3['count']=_0x2aa30c,_0x4cf053['query'][_0x41d25a('0x33')]&&(_0x23bee2[_0x41d25a('0x27')]=[{'all':!![]}]),db[_0x41d25a('0x6')][_0x41d25a('0x4')](_0x23bee2);})[_0x46ae70('0x12')](function(_0x423f45){return _0x2fdba3['rows']=_0x423f45,_0x2fdba3;})[_0x46ae70('0x12')](respondWithFilteredResult(_0x55a649,_0x23bee2))[_0x46ae70('0x16')](handleError(_0x55a649,null));},exports[_0x48cc5d('0xa')]=function(_0x3c108d,_0xe2426e){const _0x5751c6=_0x48cc5d;let _0x32bf5f={'raw':!![],'where':{'id':_0x3c108d[_0x5751c6('0x1f')]['id']}};const _0x59bc48={};return _0x59bc48['model']=_[_0x5751c6('0x1a')](db[_0x5751c6('0x6')][_0x5751c6('0x28')]),_0x59bc48[_0x5751c6('0x0')]=_[_0x5751c6('0x1a')](_0x3c108d[_0x5751c6('0x0')]),_0x59bc48[_0x5751c6('0xb')]=_[_0x5751c6('0xd')](_0x59bc48[_0x5751c6('0x19')],_0x59bc48['query']),_0x32bf5f[_0x5751c6('0x13')]=_[_0x5751c6('0xd')](_0x59bc48['model'],qs[_0x5751c6('0xf')](_0x3c108d[_0x5751c6('0x0')]['fields'])),_0x32bf5f['attributes']=_0x32bf5f[_0x5751c6('0x13')][_0x5751c6('0x2')]?_0x32bf5f[_0x5751c6('0x13')]:_0x59bc48[_0x5751c6('0x19')],_0x3c108d[_0x5751c6('0x0')]['includeAll']&&(_0x32bf5f[_0x5751c6('0x27')]=[{'all':!![]}]),_0x32bf5f=_[_0x5751c6('0x2e')]({},_0x32bf5f,_0x3c108d[_0x5751c6('0x30')]),db['FaxApplication'][_0x5751c6('0xe')](_0x32bf5f)[_0x5751c6('0x12')](handleEntityNotFound(_0xe2426e,null))[_0x5751c6('0x12')](respondWithResult(_0xe2426e,null))[_0x5751c6('0x16')](handleError(_0xe2426e,null));},exports[_0x48cc5d('0x2f')]=function(_0x4e811c,_0x3efebd){const _0x2696f6=_0x48cc5d;return db[_0x2696f6('0x6')][_0x2696f6('0x2f')](_0x4e811c['body'],{})[_0x2696f6('0x12')](respondWithResult(_0x3efebd,0xc9))[_0x2696f6('0x16')](handleError(_0x3efebd,null));},exports[_0x48cc5d('0x5')]=function(_0x1dacd5,_0x3fbcef){const _0x3a321f=_0x48cc5d;return _0x1dacd5[_0x3a321f('0x23')]['id']&&delete _0x1dacd5['body']['id'],db[_0x3a321f('0x6')]['findOne']({'where':{'id':_0x1dacd5[_0x3a321f('0x1f')]['id']}})[_0x3a321f('0x12')](handleEntityNotFound(_0x3fbcef,null))[_0x3a321f('0x12')](saveUpdates(_0x1dacd5[_0x3a321f('0x23')],null))[_0x3a321f('0x12')](respondWithResult(_0x3fbcef,null))[_0x3a321f('0x16')](handleError(_0x3fbcef,null));},exports['destroy']=function(_0x35d8e1,_0x3b52e7){const _0x591747=_0x48cc5d;return db[_0x591747('0x6')]['findOne']({'where':{'id':_0x35d8e1['params']['id']}})[_0x591747('0x12')](handleEntityNotFound(_0x3b52e7,null))[_0x591747('0x12')](removeEntity(_0x3b52e7,null))[_0x591747('0x16')](handleError(_0x3b52e7,null));}; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.model.js b/server/api/faxApplication/faxApplication.model.js index 0b3bf36..1a02750 100644 --- a/server/api/faxApplication/faxApplication.model.js +++ b/server/api/faxApplication/faxApplication.model.js @@ -1 +1 @@ -const a194_0x3d75=['utf8mb4_unicode_ci','exports','define','FaxApplication','./faxApplication.attributes'];(function(_0x1399a7,_0x3d7590){const _0x37ac77=function(_0x17fa44){while(--_0x17fa44){_0x1399a7['push'](_0x1399a7['shift']());}};_0x37ac77(++_0x3d7590);}(a194_0x3d75,0x11b));const a194_0x37ac=function(_0x1399a7,_0x3d7590){_0x1399a7=_0x1399a7-0x0;let _0x37ac77=a194_0x3d75[_0x1399a7];return _0x37ac77;};const _0x1352a9=a194_0x37ac;'use strict';const attributes=require(_0x1352a9('0x1'));module[_0x1352a9('0x3')]=function(_0x17fa44){const _0x43fd39=_0x1352a9,_0x262675=_0x17fa44[_0x43fd39('0x4')](_0x43fd39('0x0'),attributes,{'tableName':'fax_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x43fd39('0x2')});return _0x262675;}; \ No newline at end of file +const a194_0x5e51=['define','fax_applications','utf8mb4_unicode_ci','utf8mb4','exports'];(function(_0x3809b0,_0x5e5138){const _0x520834=function(_0x27136b){while(--_0x27136b){_0x3809b0['push'](_0x3809b0['shift']());}};_0x520834(++_0x5e5138);}(a194_0x5e51,0xc9));const a194_0x5208=function(_0x3809b0,_0x5e5138){_0x3809b0=_0x3809b0-0x0;let _0x520834=a194_0x5e51[_0x3809b0];return _0x520834;};const _0x5a35a9=a194_0x5208;'use strict';const attributes=require('./faxApplication.attributes');module[_0x5a35a9('0x3')]=function(_0x27136b){const _0x2f7654=_0x5a35a9,_0x119fd8=_0x27136b[_0x2f7654('0x4')]('FaxApplication',attributes,{'tableName':_0x2f7654('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2f7654('0x2'),'collate':_0x2f7654('0x1')});return _0x119fd8;}; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.rpc.js b/server/api/faxApplication/faxApplication.rpc.js index 8fc1869..f38070a 100644 --- a/server/api/faxApplication/faxApplication.rpc.js +++ b/server/api/faxApplication/faxApplication.rpc.js @@ -1 +1 @@ -const a195_0x3d5d=['attributes','where','then','rpc','body','../../config/logger','options','UpdateFaxApplication','limit','error','update','info','raw','debug','message','FaxApplication'];(function(_0xb254ce,_0x3d5dd1){const _0x310077=function(_0x5426dc){while(--_0x5426dc){_0xb254ce['push'](_0xb254ce['shift']());}};_0x310077(++_0x3d5dd1);}(a195_0x3d5d,0xda));const a195_0x3100=function(_0xb254ce,_0x3d5dd1){_0xb254ce=_0xb254ce-0x0;let _0x310077=a195_0x3d5d[_0xb254ce];return _0x310077;};const _0x2ec11c=a195_0x3100;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x2ec11c('0xb'))(_0x2ec11c('0x9'));exports[_0x2ec11c('0xd')]=function(_0x5426dc){const _0x1f92c2=this;return new Promise(function(_0x4d5daa,_0x1d17f2){const _0x40f64f=a195_0x3100;return db[_0x40f64f('0x5')][_0x40f64f('0x0')](_0x5426dc[_0x40f64f('0xa')],{'raw':_0x5426dc[_0x40f64f('0xc')]?_0x5426dc['options'][_0x40f64f('0x2')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5426dc[_0x40f64f('0xc')]?_0x5426dc['options'][_0x40f64f('0x7')]||null:null,'attributes':_0x5426dc[_0x40f64f('0xc')]?_0x5426dc[_0x40f64f('0xc')][_0x40f64f('0x6')]||null:null,'limit':_0x5426dc[_0x40f64f('0xc')]?_0x5426dc[_0x40f64f('0xc')][_0x40f64f('0xe')]||null:null})[_0x40f64f('0x8')](function(_0xdef571){const _0x9eadd4=_0x40f64f;logger[_0x9eadd4('0x1')](_0x9eadd4('0xd'),_0x5426dc),logger[_0x9eadd4('0x3')](_0x9eadd4('0xd'),_0x5426dc,JSON['stringify'](_0xdef571)),_0x4d5daa(_0xdef571);})['catch'](function(_0x535ee7){const _0x3e18eb=_0x40f64f;logger[_0x3e18eb('0xf')](_0x3e18eb('0xd'),_0x535ee7['message'],_0x5426dc),_0x1d17f2(_0x1f92c2['error'](0x1f4,_0x535ee7[_0x3e18eb('0x4')]));});});}; \ No newline at end of file +const a195_0x26c9=['body','limit','then','rpc','where','UpdateFaxApplication','../../config/logger','debug','info','options','error','update','attributes','raw'];(function(_0xc44fb4,_0x26c92d){const _0x23f5c0=function(_0x9bb3b5){while(--_0x9bb3b5){_0xc44fb4['push'](_0xc44fb4['shift']());}};_0x23f5c0(++_0x26c92d);}(a195_0x26c9,0xa3));const a195_0x23f5=function(_0xc44fb4,_0x26c92d){_0xc44fb4=_0xc44fb4-0x0;let _0x23f5c0=a195_0x26c9[_0xc44fb4];return _0x23f5c0;};const _0x54bf09=a195_0x23f5;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x54bf09('0xb'))(_0x54bf09('0x8'));exports[_0x54bf09('0xa')]=function(_0x9bb3b5){const _0x446266=this;return new Promise(function(_0xdf1863,_0x40897e){const _0x5466c8=a195_0x23f5;return db['FaxApplication'][_0x5466c8('0x2')](_0x9bb3b5[_0x5466c8('0x5')],{'raw':_0x9bb3b5[_0x5466c8('0x0')]?_0x9bb3b5['options'][_0x5466c8('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x9bb3b5['options']?_0x9bb3b5[_0x5466c8('0x0')][_0x5466c8('0x9')]||null:null,'attributes':_0x9bb3b5['options']?_0x9bb3b5[_0x5466c8('0x0')][_0x5466c8('0x3')]||null:null,'limit':_0x9bb3b5[_0x5466c8('0x0')]?_0x9bb3b5[_0x5466c8('0x0')][_0x5466c8('0x6')]||null:null})[_0x5466c8('0x7')](function(_0x2e0d4c){const _0x58ae9b=_0x5466c8;logger[_0x58ae9b('0xd')]('UpdateFaxApplication',_0x9bb3b5),logger[_0x58ae9b('0xc')](_0x58ae9b('0xa'),_0x9bb3b5,JSON['stringify'](_0x2e0d4c)),_0xdf1863(_0x2e0d4c);})['catch'](function(_0x18e2e5){const _0x4b5dda=_0x5466c8;logger[_0x4b5dda('0x1')](_0x4b5dda('0xa'),_0x18e2e5['message'],_0x9bb3b5),_0x40897e(_0x446266[_0x4b5dda('0x1')](0x1f4,_0x18e2e5['message']));});});}; \ No newline at end of file diff --git a/server/api/faxApplication/index.js b/server/api/faxApplication/index.js index 339f692..886a8b7 100644 --- a/server/api/faxApplication/index.js +++ b/server/api/faxApplication/index.js @@ -1 +1 @@ -const a196_0x53d1=['isAuthenticated','../../components/auth/service','./faxApplication.controller','show','post','get','Router','exports','/:id','create'];(function(_0x36b44a,_0x53d1f3){const _0x12374a=function(_0x5ad30d){while(--_0x5ad30d){_0x36b44a['push'](_0x36b44a['shift']());}};_0x12374a(++_0x53d1f3);}(a196_0x53d1,0x1ea));const a196_0x1237=function(_0x36b44a,_0x53d1f3){_0x36b44a=_0x36b44a-0x0;let _0x12374a=a196_0x53d1[_0x36b44a];return _0x12374a;};const _0x1bc32e=a196_0x1237;'use strict';const express=require('express'),router=express[_0x1bc32e('0x6')](),auth=require(_0x1bc32e('0x1')),controller=require(_0x1bc32e('0x2'));router['get']('/',auth[_0x1bc32e('0x0')](),controller['index']),router[_0x1bc32e('0x5')](_0x1bc32e('0x8'),auth[_0x1bc32e('0x0')](),controller[_0x1bc32e('0x3')]),router[_0x1bc32e('0x4')]('/',auth['isAuthenticated'](),controller[_0x1bc32e('0x9')]),router['put'](_0x1bc32e('0x8'),auth[_0x1bc32e('0x0')](),controller['update']),router['delete'](_0x1bc32e('0x8'),auth[_0x1bc32e('0x0')](),controller['destroy']),module[_0x1bc32e('0x7')]=router; \ No newline at end of file +const a196_0x45f3=['get','Router','create','show','delete','isAuthenticated','put','/:id','express','update','post','exports','./faxApplication.controller'];(function(_0x4a586b,_0x45f355){const _0x38da44=function(_0x22d442){while(--_0x22d442){_0x4a586b['push'](_0x4a586b['shift']());}};_0x38da44(++_0x45f355);}(a196_0x45f3,0x186));const a196_0x38da=function(_0x4a586b,_0x45f355){_0x4a586b=_0x4a586b-0x0;let _0x38da44=a196_0x45f3[_0x4a586b];return _0x38da44;};const _0x3074e1=a196_0x38da;'use strict';const express=require(_0x3074e1('0x8')),router=express[_0x3074e1('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x3074e1('0xc'));router[_0x3074e1('0x0')]('/',auth[_0x3074e1('0x5')](),controller['index']),router[_0x3074e1('0x0')]('/:id',auth[_0x3074e1('0x5')](),controller[_0x3074e1('0x3')]),router[_0x3074e1('0xa')]('/',auth[_0x3074e1('0x5')](),controller[_0x3074e1('0x2')]),router[_0x3074e1('0x6')](_0x3074e1('0x7'),auth[_0x3074e1('0x5')](),controller[_0x3074e1('0x9')]),router[_0x3074e1('0x4')](_0x3074e1('0x7'),auth[_0x3074e1('0x5')](),controller['destroy']),module[_0x3074e1('0xb')]=router; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.attributes.js b/server/api/faxInteraction/faxInteraction.attributes.js index dd81142..8f8e465 100644 --- a/server/api/faxInteraction/faxInteraction.attributes.js +++ b/server/api/faxInteraction/faxInteraction.attributes.js @@ -1 +1 @@ -const a197_0x374f=['STRING','ENUM','out','DATE','sequelize','exports'];(function(_0x46b60a,_0x374fe4){const _0x4b665d=function(_0x509020){while(--_0x509020){_0x46b60a['push'](_0x46b60a['shift']());}};_0x4b665d(++_0x374fe4);}(a197_0x374f,0x1b8));const a197_0x4b66=function(_0x46b60a,_0x374fe4){_0x46b60a=_0x46b60a-0x0;let _0x4b665d=a197_0x374f[_0x46b60a];return _0x4b665d;};const _0x4ce4d3=a197_0x4b66;'use strict';const Sequelize=require(_0x4ce4d3('0x2'));module[_0x4ce4d3('0x3')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x4ce4d3('0x4')]},'secondDisposition':{'type':Sequelize[_0x4ce4d3('0x4')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x4ce4d3('0x4')]},'read1stAt':{'type':Sequelize[_0x4ce4d3('0x1')]},'fax':{'type':Sequelize[_0x4ce4d3('0x4')]},'firstMsgDirection':{'type':Sequelize[_0x4ce4d3('0x5')]('in',_0x4ce4d3('0x0')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x4ce4d3('0x1')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x4ce4d3('0x0')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a197_0x2cff=['out','STRING','BOOLEAN','sequelize','DATE','ENUM','exports'];(function(_0x1e256d,_0x2cffc0){const _0x3a892a=function(_0x2fc526){while(--_0x2fc526){_0x1e256d['push'](_0x1e256d['shift']());}};_0x3a892a(++_0x2cffc0);}(a197_0x2cff,0x1ca));const a197_0x3a89=function(_0x1e256d,_0x2cffc0){_0x1e256d=_0x1e256d-0x0;let _0x3a892a=a197_0x2cff[_0x1e256d];return _0x3a892a;};const _0x4ea630=a197_0x3a89;'use strict';const Sequelize=require(_0x4ea630('0x0'));module[_0x4ea630('0x3')]={'closed':{'type':Sequelize[_0x4ea630('0x6')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x4ea630('0x1')]},'disposition':{'type':Sequelize[_0x4ea630('0x5')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x4ea630('0x5')]},'note':{'type':Sequelize[_0x4ea630('0x5')]},'read1stAt':{'type':Sequelize[_0x4ea630('0x1')]},'fax':{'type':Sequelize[_0x4ea630('0x5')]},'firstMsgDirection':{'type':Sequelize[_0x4ea630('0x2')]('in',_0x4ea630('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x4ea630('0x1')]},'lastMsgDirection':{'type':Sequelize[_0x4ea630('0x2')]('in','out'),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.controller.js b/server/api/faxInteraction/faxInteraction.controller.js index f6fdef8..8c4070e 100644 --- a/server/api/faxInteraction/faxInteraction.controller.js +++ b/server/api/faxInteraction/faxInteraction.controller.js @@ -1 +1 @@ -const a198_0x1e05=['error','key','unreadMessages','fax_interaction_has_tags','Attachment','\x20=\x20?','i.*','color','keyBy','null','Tag','status','search','compact','read','i.fax\x20LIKE\x20?','end','sendStatus','push','query','omit','../../rediscache','addTags','download','transcript-%d-%s.zip','describe','a.key','Contact.lastName','t.id\x20=\x20it.TagId','order','intersection','u.id','moment','user','attributes','isNumeric','path','User','options','name','where','emit','`unreadMessages`\x20>\x200','merge','fields','c.lastName','i.FaxAccountId\x20IS\x20NULL','getFaxAccounts','FaxInteraction','ContactId','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','c.phone','buildExpression','i.FaxAccountId\x20IS\x20NOT\x20NULL','o.internal','Contact.phone','like','u.id\x20=\x20ui.UserId','QueryTypes','all','squel','include','update','TagIds','keys','./faxInteraction.socket','sequelize','find','parseSearch','value','\x27\x27\x27\x27','Contact.mobile','createWriteStream','undefined','operator','fullname','conditions','`\x20>\x200','FaxAccountId','tag','length','../../config/environment','getFullTextValue','FaxMessage','Contact.email','t.id\x20IN\x20?','user_has_fax_interactions','forEach','attachments','createdAt','Contact.firstName','isEmpty','toString','format','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','destroy','clone','nolimit','UserId','parse','type','ui.FaxInteractionId\x20IN\x20?','FaxInteractionId','u.fullname','then','lodash','a.mandatoryDisposition','removeTags','basename','limit','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','having','catch','rawAttributes','unlinkSync','../../config/logger','fax_messages','DESC','model','../../mysqldb','i.id\x20LIKE\x20?','replace','json','Account.key','GROUP_CONCAT(DISTINCT\x20t.id)','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','params','offset','util','count','body','text','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','ui.FaxInteractionId','show','mkdirSync','files','Tags','$gte','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','journey','Contact','log','me.FaxInteractionId\x20=\x20i.id','includeAll','unix','set','Owner.internal','left_join','join','c.mobile','server','split','tools_tags','o.fullname','groupBy','resolve','map','select','findAll','YYYY-MM-DD\x20HH:mm:ss','rows','i.FaxAccountId\x20IN\x20?','Messages','findOne','rimraf','gte','create','filters','some','concat','start','`\x20=\x200','addMessage','tmp','from','pipe','pick','sort','c.firstName','send','Account.mandatoryDisposition','Owner.fullname','../../components/parsers/advancedSearch','users','c.email','filter','root','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','it.FaxInteractionId\x20=\x20i.id','i.id','field','expr','createReadStream','$substring','Sequelize','ids','group','$lte','../../components/parsers/qs'];(function(_0xa71eac,_0x1e05ee){const _0x346d0c=function(_0x17370d){while(--_0x17370d){_0xa71eac['push'](_0xa71eac['shift']());}};_0x346d0c(++_0x1e05ee);}(a198_0x1e05,0x11a));const a198_0x346d=function(_0xa71eac,_0x1e05ee){_0xa71eac=_0xa71eac-0x0;let _0x346d0c=a198_0x1e05[_0xa71eac];return _0x346d0c;};const _0x338726=a198_0x346d;'use strict';const rimraf=require(_0x338726('0x53')),zipdir=require('zip-dir'),moment=require(_0x338726('0x96')),util=require(_0x338726('0x2e')),path=require(_0x338726('0x9a')),fs=require('fs'),_=require(_0x338726('0x17')),squel=require(_0x338726('0xb2')),{getSocket}=require(_0x338726('0x8b')),socket=getSocket(),qs=require(_0x338726('0x75')),as=require(_0x338726('0x65')),logger=require(_0x338726('0x21'))('api'),config=require(_0x338726('0xc7')),db=require(_0x338726('0x25'))['db'],{Op}=require(_0x338726('0xb8'));require(_0x338726('0xb7'))['register'](socket);function respondWithStatusCode(_0x17370d,_0x115c45){return _0x115c45=_0x115c45||0xcc,function(_0x4f343e){const _0x3bd8d8=a198_0x346d;if(_0x4f343e)return _0x17370d[_0x3bd8d8('0x87')](_0x115c45);return _0x17370d[_0x3bd8d8('0x81')](_0x115c45)['end']();};}function respondWithResult(_0x41bb85,_0x20d43d){return _0x20d43d=_0x20d43d||0xc8,function(_0x499d84){const _0xae8717=a198_0x346d;if(_0x499d84)return _0x41bb85['status'](_0x20d43d)[_0xae8717('0x28')](_0x499d84);};}function respondWithFilteredResult(_0x49b48c,_0x3eb34c){return function(_0x554f1f){const _0x58d47e=a198_0x346d;if(_0x554f1f){const _0x557c26=_0x554f1f['count'],_0xd2c0c0=_0x3eb34c[_0x58d47e('0x2d')];let _0x357d24=_0x3eb34c[_0x58d47e('0x2d')]+_0x3eb34c['limit'],_0x30d46d;return _0x357d24>=_0x557c26?(_0x357d24=_0x557c26,_0x30d46d=0xc8):_0x30d46d=0xce,_0x49b48c[_0x58d47e('0x81')](_0x30d46d),_0x49b48c[_0x58d47e('0x40')]('Content-Range',_0xd2c0c0+'-'+_0x357d24+'/'+_0x557c26)[_0x58d47e('0x28')](_0x554f1f);}return null;};}function saveUpdates(_0x5a6e25){return function(_0x26dcb8){const _0x159f09=a198_0x346d;if(_0x26dcb8)return _0x26dcb8['update'](_0x5a6e25)[_0x159f09('0x16')](function(_0xe9c580){return _0xe9c580;});return null;};}function removeEntity(_0x520ba4){return function(_0x58e1a4){const _0x5cc286=a198_0x346d;if(_0x58e1a4)return _0x58e1a4[_0x5cc286('0xd')]()[_0x5cc286('0x16')](function(){_0x520ba4['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x231a3b){return function(_0x5cdd42){const _0x4c6e26=a198_0x346d;return!_0x5cdd42&&_0x231a3b[_0x4c6e26('0x87')](0x194),_0x5cdd42;};}function handleError(_0x722e78,_0x105010){return _0x105010=_0x105010||0x1f4,function(_0x37d1a5){const _0x31a2ea=a198_0x346d;logger[_0x31a2ea('0x76')](_0x37d1a5['stack']),_0x37d1a5[_0x31a2ea('0x9d')]&&delete _0x37d1a5['name'],_0x722e78[_0x31a2ea('0x81')](_0x105010)[_0x31a2ea('0x62')](_0x37d1a5);};}function getInteractionUsers(_0x27b031,_0xbeff0a){return new Promise(function(_0x5ce991,_0x3ab877){const _0x170c3b=a198_0x346d;try{_0xbeff0a[_0x27b031['id']]&&(_0x27b031['Users']=_[_0x170c3b('0x4b')](_0xbeff0a[_0x27b031['id']],function(_0x1af71e){const _0x4b3224=_0x170c3b;return{'id':_0x1af71e['id'],'fullname':_0x1af71e[_0x4b3224('0xc1')]};}));}catch(_0x18e3c5){_0x3ab877(_0x18e3c5);}_0x5ce991(_0x27b031);});}function getInteractionTags(_0xca6567,_0x1ace49){return new Promise(function(_0x33ff1e,_0x1108e8){const _0x59afa4=a198_0x346d;try{_0xca6567[_0x59afa4('0xb5')]&&(_0xca6567[_0x59afa4('0x37')]=[],_0xca6567[_0x59afa4('0xb5')][_0x59afa4('0x46')](',')['forEach'](function(_0x554490){const _0x5729be=_0x59afa4;_0xca6567[_0x5729be('0x37')]['push'](_0x1ace49[_0x554490]);})),delete _0xca6567[_0x59afa4('0xb5')];}catch(_0x2104fa){_0x1108e8(_0x2104fa);}_0x33ff1e(_0xca6567);});}function updateFaxInteraction(_0x6f3e9d,_0xebae5c,_0x302a07){return new Promise(function(_0x26b06a,_0x1ff6d3){const _0x1b35f9=a198_0x346d;return getInteractionUsers(_0x6f3e9d,_0x302a07)[_0x1b35f9('0x16')](function(_0x4d75bc){return getInteractionTags(_0x4d75bc,_0xebae5c);})['then'](function(_0x3955d1){_0x26b06a(_0x3955d1);})['catch'](function(_0x2b28ad){_0x1ff6d3(_0x2b28ad);});});}exports['index']=function(_0xe5ef57,_0x4e54fe){const _0x3759af=_0x338726,_0x4fbb9f={},_0x1a8dfc={},_0x44bd8b={'count':0x0,'rows':[]},_0x4b265a=_[_0x3759af('0x4b')](db['FaxInteraction'][_0x3759af('0x1f')],function(_0x304a27){const _0x15ee8e=_0x3759af;return{'name':_0x304a27['fieldName'],'type':_0x304a27[_0x15ee8e('0x12')][_0x15ee8e('0x77')]};});_0x1a8dfc[_0x3759af('0x24')]=_[_0x3759af('0x4b')](_0x4b265a,_0x3759af('0x9d')),_0x1a8dfc[_0x3759af('0x89')]=_[_0x3759af('0xb6')](_0xe5ef57[_0x3759af('0x89')]),_0x1a8dfc[_0x3759af('0x56')]=_[_0x3759af('0x94')](_0x1a8dfc[_0x3759af('0x24')],_0x1a8dfc[_0x3759af('0x89')]),_0x4fbb9f[_0x3759af('0x98')]=_[_0x3759af('0x94')](_0x1a8dfc[_0x3759af('0x24')],qs[_0x3759af('0xa2')](_0xe5ef57['query'][_0x3759af('0xa2')])),_0x4fbb9f['attributes']=_0x4fbb9f[_0x3759af('0x98')]['length']?_0x4fbb9f[_0x3759af('0x98')]:_0x1a8dfc[_0x3759af('0x24')];typeof _0xe5ef57[_0x3759af('0x89')][_0x3759af('0xf')]===_0x3759af('0xbf')&&(_0x4fbb9f[_0x3759af('0x1b')]=qs[_0x3759af('0x1b')](_0xe5ef57['query'][_0x3759af('0x1b')]),_0x4fbb9f[_0x3759af('0x2d')]=qs[_0x3759af('0x2d')](_0xe5ef57[_0x3759af('0x89')][_0x3759af('0x2d')]));_0x4fbb9f['order']=qs[_0x3759af('0x60')](_0xe5ef57['query'][_0x3759af('0x60')]),_0x4fbb9f['where']=qs['filters'](_[_0x3759af('0x5f')](_0xe5ef57['query'],_0x1a8dfc[_0x3759af('0x56')]),_0x4b265a);let _0x1af763=[];const _0x43f3ec=squel[_0x3759af('0x4c')]()['field']('id')['field']('name')[_0x3759af('0x6d')]('color')['from']('tools_tags'),_0x2be1b8=squel[_0x3759af('0x4c')]()['field'](_0x3759af('0x95'))['field'](_0x3759af('0x15'))[_0x3759af('0x6d')](_0x3759af('0x33'))['from'](_0x3759af('0x4'),'ui')[_0x3759af('0x42')](_0x3759af('0x66'),'u',_0x3759af('0xaf')),_0xb2aca=squel[_0x3759af('0x4c')]()[_0x3759af('0x5d')]('fax_interactions','i')['left_join']('cm_contacts','c',_0x3759af('0xa8'))[_0x3759af('0x42')](_0x3759af('0x66'),'o','o.id\x20=\x20i.UserId')[_0x3759af('0x42')]('fax_accounts','a','a.id\x20=\x20i.FaxAccountId')[_0x3759af('0x42')](_0x3759af('0x22'),'me',_0x3759af('0x3d'))[_0x3759af('0x42')](_0x3759af('0x79'),'it',_0x3759af('0x6b'))['left_join'](_0x3759af('0x47'),'t',_0x3759af('0x92')),_0x5ef70b=squel[_0x3759af('0x6e')]();let _0x2fbafd=[];const _0x455870=squel[_0x3759af('0x6e')]();let _0x3b92af;if(_0xe5ef57[_0x3759af('0x89')][_0x3759af('0x82')]){_0x3b92af=as[_0x3759af('0xba')](_0xe5ef57[_0x3759af('0x89')][_0x3759af('0x82')]);const _0x4f2fbe=_0x3b92af['sqlOperator'];for(let _0x525295=0x0;_0x525295<_0x3b92af[_0x3759af('0xc2')]['length'];_0x525295++){const _0x52b1ca=_0x3b92af[_0x3759af('0xc2')][_0x525295],_0x292683='i';let _0x3f84dd,_0x1a6d3e=_[_0x3759af('0xb9')](_0x4b265a,[_0x3759af('0x9d'),_0x52b1ca[_0x3759af('0x6d')]]);if(!_0x1a6d3e)switch(_0x52b1ca[_0x3759af('0x6d')]){case'unreadMessages':_0x52b1ca[_0x3759af('0xbb')]==0x1?_0xb2aca['having']('`'+_0x52b1ca[_0x3759af('0x6d')]+_0x3759af('0x5a')):_0xb2aca[_0x3759af('0x1d')]('`'+_0x52b1ca[_0x3759af('0x6d')]+_0x3759af('0xc3'));break;case _0x3759af('0x3b'):if(_0x52b1ca[_0x3759af('0xc0')]===_0x3759af('0x70')){if(_0x52b1ca[_0x3759af('0xbb')]['split']('\x20')['length']>0x1)_0x5ef70b[_0x4f2fbe](_0x3759af('0x2b'),qs[_0x3759af('0x0')](_0x52b1ca['value']),null);else{const _0x5e9228='%'+_0x52b1ca[_0x3759af('0xbb')]+'%';_0x5ef70b[_0x4f2fbe](_0x3759af('0x39'),_0x5e9228,_0x5e9228,_0x5e9228);}}else _0x1a6d3e=_['find'](_0x4b265a,[_0x3759af('0x9d'),_0x3759af('0xa7')]),_0x52b1ca[_0x3759af('0x6d')]=_0x3759af('0xa7'),_0x3f84dd=as[_0x3759af('0xaa')](_0x292683,_0x1a6d3e[_0x3759af('0x12')],_0x52b1ca),_0x5ef70b[_0x4f2fbe](_0x3f84dd[_0x3759af('0x31')],_0x3f84dd[_0x3759af('0xbb')]['start'],_0x3f84dd[_0x3759af('0xbb')][_0x3759af('0x86')]);break;case _0x3759af('0x80'):{const _0x154827=_0x52b1ca[_0x3759af('0xbb')][_0x3759af('0x46')](',')[_0x3759af('0x4b')](function(_0x4e94dc){return Number(_0x4e94dc);});_0x154827['forEach'](function(_0x1332aa){const _0x375c17=_0x3759af;_0x455870['or'](_0x375c17('0x6a'),'%,'+_0x1332aa+',%');}),_0x2fbafd=_['union'](_0x2fbafd,_0x154827);}break;case _0x3759af('0x9b'):_0x52b1ca[_0x3759af('0xc0')]===_0x3759af('0x70')?_0x5ef70b[_0x4f2fbe](_0x3759af('0x32'),'%'+_0x52b1ca[_0x3759af('0xbb')]+'%',null):(_0x1a6d3e=_[_0x3759af('0xb9')](_0x4b265a,[_0x3759af('0x9d'),'UserId']),_0x52b1ca[_0x3759af('0x6d')]=_0x3759af('0x10'),_0x3f84dd=as['buildExpression'](_0x292683,_0x1a6d3e['type'],_0x52b1ca),_0x5ef70b[_0x4f2fbe](_0x3f84dd['text'],_0x3f84dd[_0x3759af('0xbb')][_0x3759af('0x59')],_0x3f84dd[_0x3759af('0xbb')][_0x3759af('0x86')]));break;case _0x3759af('0x30'):_0x3f84dd=as[_0x3759af('0xaa')]('me',null,_0x52b1ca),_0x5ef70b[_0x4f2fbe](_0x3f84dd[_0x3759af('0x31')],_0x3f84dd[_0x3759af('0xbb')]['start'],_0x3f84dd[_0x3759af('0xbb')][_0x3759af('0x86')]);break;}else _0x3f84dd=as[_0x3759af('0xaa')](_0x292683,_0x1a6d3e['type'],_0x52b1ca),_0x5ef70b[_0x4f2fbe](_0x3f84dd['text'],_0x3f84dd[_0x3759af('0xbb')][_0x3759af('0x59')],_0x3f84dd[_0x3759af('0xbb')]['end']);}}else{const _0x2bd890=_(_0xe5ef57[_0x3759af('0x89')])[_0x3759af('0xb6')]()[_0x3759af('0x4b')](function(_0x21602a){const _0x404220=_0x3759af;return _[_0x404220('0x57')](_0x4b265a,[_0x404220('0x9d'),_0x21602a])?_0x21602a:undefined;})[_0x3759af('0x83')]()[_0x3759af('0xbb')]();!_[_0x3759af('0x9')](_0x2bd890)&&_0x2bd890[_0x3759af('0x5')](function(_0x3b8582){const _0x22ee6f=_0x3759af;if(_0x3b8582===_0x22ee6f('0xc4'))_0xb2aca[_0x22ee6f('0x9e')](_0x22ee6f('0x50'),[][_0x22ee6f('0x58')](_0xe5ef57[_0x22ee6f('0x89')][_0x3b8582]));else{if(_0x3b8582===_0x22ee6f('0x7')){const _0x3c65fb=JSON[_0x22ee6f('0x11')](_0xe5ef57[_0x22ee6f('0x89')][_0x3b8582])[_0x22ee6f('0x38')],_0x43de40=JSON['parse'](_0xe5ef57[_0x22ee6f('0x89')][_0x3b8582])[_0x22ee6f('0x74')];_0xb2aca[_0x22ee6f('0x9e')](_0x22ee6f('0x1c'),_0x3c65fb,_0x43de40);}else _0xe5ef57['query'][_0x3b8582]===_0x22ee6f('0x7f')?_0xb2aca['where']('i.'+_0x3b8582+'\x20IS\x20NULL'):_0xb2aca['where']('i.'+_0x3b8582+_0x22ee6f('0x7b'),_0xe5ef57['query'][_0x3b8582]);}});_0xe5ef57[_0x3759af('0x89')][_0x3759af('0x84')]&&(_0xe5ef57[_0x3759af('0x89')][_0x3759af('0x84')]==0x1?_0xb2aca[_0x3759af('0x1d')]('`unreadMessages`\x20=\x200'):_0xb2aca[_0x3759af('0x1d')](_0x3759af('0xa0')));_0xe5ef57[_0x3759af('0x89')][_0x3759af('0xc5')]&&(_0x2fbafd=_['isArray'](_0xe5ef57['query'][_0x3759af('0xc5')])?_0xe5ef57[_0x3759af('0x89')][_0x3759af('0xc5')]:new Array(_0xe5ef57[_0x3759af('0x89')][_0x3759af('0xc5')]),_0x2fbafd[_0x3759af('0x5')](function(_0x342bb2){const _0x2a874e=_0x3759af;_0x455870['or'](_0x2a874e('0x6a'),'%,'+_0x342bb2+',%');}));if(_0xe5ef57['query'][_0x3759af('0x68')]){const _0x257a15=_0xe5ef57['query'][_0x3759af('0x68')][_0x3759af('0x27')]('\x5c','\x5c\x5c')[_0x3759af('0x27')]('\x27\x27',_0x3759af('0xbc'));qs[_0x3759af('0x99')](_0x257a15)&&_0x5ef70b['or'](_0x3759af('0x26'),_0x257a15+'%')['or'](_0x3759af('0x85'),_0x257a15+'%'),_0x5ef70b['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x257a15+'%');}}_0xb2aca[_0x3759af('0x9e')](_0x5ef70b),_0xb2aca[_0x3759af('0x73')](_0x3759af('0x6c'));let _0x685284={'type':db[_0x3759af('0x71')][_0x3759af('0xb0')]['SELECT'],'raw':!![]};const _0x15eb74=_0xb2aca[_0x3759af('0xe')]();_0x15eb74[_0x3759af('0x6d')]('i.id'),_0x15eb74['field'](_0x3759af('0xc'),_0x3759af('0x78')),_0x4fbb9f[_0x3759af('0x93')]&&_0x4fbb9f[_0x3759af('0x93')]['forEach'](function(_0x156082){const _0x5bd02e=_0x3759af;_0xb2aca[_0x5bd02e('0x93')]('i.'+_0x156082[0x0],_0x156082[0x1]===_0x5bd02e('0x23')?![]:!![]);}),!_['isEmpty'](_0x2fbafd)&&(_0xb2aca[_0x3759af('0x1d')](_0x455870),_0x15eb74[_0x3759af('0x9e')](_0x3759af('0x3'),_0x2fbafd)),Promise[_0x3759af('0x4a')]()[_0x3759af('0x16')](function(){const _0x26c2fa=_0x3759af;if(!_0x3b92af){if(_0xe5ef57[_0x26c2fa('0x89')][_0x26c2fa('0xc4')]||_0xe5ef57[_0x26c2fa('0x89')][_0x26c2fa('0x3a')])return;_0x15eb74[_0x26c2fa('0x9e')](_0x26c2fa('0xab')),_0xb2aca[_0x26c2fa('0x9e')](_0x26c2fa('0xab'));return;}return _0xe5ef57[_0x26c2fa('0x97')][_0x26c2fa('0xa5')]({'attributes':['id'],'raw':!![]})[_0x26c2fa('0x16')](function(_0x309c41){const _0x1abedb=_0x26c2fa;_[_0x1abedb('0x9')](_0x309c41)?(_0x15eb74[_0x1abedb('0x9e')](_0x1abedb('0xa4')),_0xb2aca[_0x1abedb('0x9e')](_0x1abedb('0xa4'))):(_0x15eb74[_0x1abedb('0x9e')](_0x1abedb('0x50'),_['map'](_0x309c41,'id')),_0xb2aca['where'](_0x1abedb('0x50'),_[_0x1abedb('0x4b')](_0x309c41,'id')));});})['then'](function(){const _0x255adf=_0x3759af;db[_0x255adf('0xb8')][_0x255adf('0x89')](_0x15eb74[_0x255adf('0xa')](),_0x685284)[_0x255adf('0x16')](function(_0x47d099){const _0x852bd2=_0x255adf;_0x44bd8b[_0x852bd2('0x2f')]=_0x47d099[_0x852bd2('0xc6')];if(_0x44bd8b[_0x852bd2('0x2f')]===0x0)return[];return db[_0x852bd2('0xb8')][_0x852bd2('0x89')](_0x43f3ec[_0x852bd2('0xa')](),_0x685284)[_0x852bd2('0x16')](function(_0x1a4497){const _0x49036f=_0x852bd2;_0x1af763=_[_0x49036f('0x7e')](_0x1a4497,'id'),_0x685284=_['merge'](_0x685284,{'model':db[_0x49036f('0xa6')],'mapToModel':!![],'raw':!![],'nest':!![]});_0xe5ef57[_0x49036f('0x89')][_0x49036f('0xa2')]?_0x4fbb9f['attributes'][_0x49036f('0x5')](function(_0x13e8d8){_0xb2aca['field']('i.'+_0x13e8d8);}):(_0xb2aca[_0x49036f('0x6d')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x49036f('0x78')),_0xb2aca['field'](_0x49036f('0x90'),_0x49036f('0x29')),_0xb2aca[_0x49036f('0x6d')](_0x49036f('0x18'),_0x49036f('0x63')),_0xb2aca[_0x49036f('0x6d')](_0x49036f('0x7c')),_0xb2aca[_0x49036f('0x6d')](_0x49036f('0x61'),_0x49036f('0x8')),_0xb2aca['field'](_0x49036f('0xa3'),_0x49036f('0x91')),_0xb2aca[_0x49036f('0x6d')](_0x49036f('0x67'),_0x49036f('0x2')),_0xb2aca['field'](_0x49036f('0xa9'),_0x49036f('0xad')),_0xb2aca[_0x49036f('0x6d')](_0x49036f('0x44'),_0x49036f('0xbd')),_0xb2aca[_0x49036f('0x6d')]('c.fax','Contact.fax'),_0xb2aca['field'](_0x49036f('0x48'),_0x49036f('0x64')),_0xb2aca[_0x49036f('0x6d')](_0x49036f('0xac'),_0x49036f('0x41')),_0xb2aca[_0x49036f('0x6d')](_0x49036f('0x2a'),_0x49036f('0xb5')));if(_0x4fbb9f['limit'])_0xb2aca['limit'](_0x4fbb9f[_0x49036f('0x1b')]);if(_0x4fbb9f['offset'])_0xb2aca[_0x49036f('0x2d')](_0x4fbb9f[_0x49036f('0x2d')]);return db[_0x49036f('0xb8')][_0x49036f('0x89')](_0xb2aca['toString'](),_0x685284);})['then'](function(_0x4afa4f){const _0x36b741=_0x852bd2;return _0x2be1b8[_0x36b741('0x9e')](_0x36b741('0x13'),_[_0x36b741('0x4b')](_0x4afa4f,'id')),db[_0x36b741('0xb8')][_0x36b741('0x89')](_0x2be1b8[_0x36b741('0xa')](),_0x685284)[_0x36b741('0x16')](function(_0xb144df){const _0xb93d10=_0x36b741,_0x39af4f=_[_0xb93d10('0x49')](_0xb144df,'FaxInteractionId'),_0x58ec0f=[];return _0x4afa4f[_0xb93d10('0x5')](function(_0x354d5f){_0x58ec0f['push'](updateFaxInteraction(_0x354d5f,_0x1af763,_0x39af4f));}),Promise[_0xb93d10('0xb1')](_0x58ec0f);});});})[_0x255adf('0x16')](function(_0xb93e6c){const _0x1c1cd1=_0x255adf;return _0x44bd8b[_0x1c1cd1('0x4f')]=_0xb93e6c,_0x44bd8b;})[_0x255adf('0x16')](respondWithFilteredResult(_0x4e54fe,_0x4fbb9f));})[_0x3759af('0x1e')](handleError(_0x4e54fe,null));},exports[_0x338726('0x34')]=function(_0x11c852,_0x4671e0){const _0x92329e=_0x338726;let _0x207bf3={'raw':![],'where':{'id':_0x11c852['params']['id']}};const _0x4ed527={};return _0x4ed527[_0x92329e('0x24')]=_[_0x92329e('0xb6')](db[_0x92329e('0xa6')]['rawAttributes']),_0x4ed527['query']=_[_0x92329e('0xb6')](_0x11c852[_0x92329e('0x89')]),_0x4ed527['filters']=_[_0x92329e('0x94')](_0x4ed527['model'],_0x4ed527[_0x92329e('0x89')]),_0x207bf3['attributes']=_['intersection'](_0x4ed527['model'],qs[_0x92329e('0xa2')](_0x11c852[_0x92329e('0x89')][_0x92329e('0xa2')])),_0x207bf3[_0x92329e('0x98')]=_0x207bf3[_0x92329e('0x98')][_0x92329e('0xc6')]?_0x207bf3[_0x92329e('0x98')]:_0x4ed527[_0x92329e('0x24')],_0x11c852[_0x92329e('0x89')][_0x92329e('0x3e')]&&(_0x207bf3[_0x92329e('0xb3')]=[{'all':!![]}]),_0x207bf3=_['merge']({},_0x207bf3,_0x11c852['options']),db[_0x92329e('0xa6')]['findOne'](_0x207bf3)[_0x92329e('0x16')](handleEntityNotFound(_0x4671e0,null))[_0x92329e('0x16')](respondWithResult(_0x4671e0,null))[_0x92329e('0x1e')](handleError(_0x4671e0,null));},exports[_0x338726('0x55')]=function(_0x36b103,_0x1a20ba){const _0x181056=_0x338726;return db[_0x181056('0xa6')][_0x181056('0x55')](_0x36b103[_0x181056('0x30')],{})[_0x181056('0x16')](respondWithResult(_0x1a20ba,0xc9))[_0x181056('0x1e')](handleError(_0x1a20ba,null));},exports[_0x338726('0xb4')]=function(_0x26cf78,_0x32a4ec){const _0x39142b=_0x338726;return _0x26cf78[_0x39142b('0x30')]['id']&&delete _0x26cf78[_0x39142b('0x30')]['id'],db['FaxInteraction'][_0x39142b('0x52')]({'where':{'id':_0x26cf78[_0x39142b('0x2c')]['id']}})[_0x39142b('0x16')](handleEntityNotFound(_0x32a4ec,null))[_0x39142b('0x16')](saveUpdates(_0x26cf78['body'],null))[_0x39142b('0x16')](respondWithResult(_0x32a4ec,null))[_0x39142b('0x1e')](handleError(_0x32a4ec,null));},exports[_0x338726('0xd')]=function(_0x1882f7,_0x27b125){const _0x36cab9=_0x338726;return db['FaxInteraction'][_0x36cab9('0x52')]({'where':{'id':_0x1882f7[_0x36cab9('0x2c')]['id']}})[_0x36cab9('0x16')](handleEntityNotFound(_0x27b125,null))[_0x36cab9('0x16')](removeEntity(_0x27b125,null))['catch'](handleError(_0x27b125,null));},exports['describe']=function(_0x4b1e79,_0x5ea3b9){const _0x4a2210=_0x338726;return db[_0x4a2210('0xa6')][_0x4a2210('0x8f')]()['then'](respondWithResult(_0x5ea3b9,null))['catch'](handleError(_0x5ea3b9,null));},exports[_0x338726('0x5b')]=function(_0x272c8c,_0x2af707){const _0x2fd2b2=_0x338726;return db[_0x2fd2b2('0x1')]['findOne']({'where':{'id':_0x272c8c[_0x2fd2b2('0x2c')]['id']}})[_0x2fd2b2('0x16')](function(_0x3f7bf2){const _0x562886=_0x2fd2b2;if(_0x3f7bf2)return _0x3f7bf2['addMessage'](_0x272c8c[_0x562886('0x30')]['ids'],{'through':_['omit'](_0x272c8c[_0x562886('0x30')],['ids','id'])});})[_0x2fd2b2('0x16')](respondWithResult(_0x2af707,null))[_0x2fd2b2('0x1e')](handleError(_0x2af707,null));},exports['getMessages']=function(_0x464d1f,_0x1c8d01){const _0x5039f4=_0x338726;let _0x3fccc9={'raw':![],'where':{}};const _0x43451a={},_0x223ee0={'count':0x0,'rows':[]};return db[_0x5039f4('0xa6')][_0x5039f4('0x52')]({'where':{'id':_0x464d1f[_0x5039f4('0x2c')]['id']}})[_0x5039f4('0x16')](handleEntityNotFound(_0x1c8d01,null))['then'](function(_0x5b5898){const _0x53cd0f=_0x5039f4;if(_0x5b5898){_0x43451a[_0x53cd0f('0x24')]=_[_0x53cd0f('0xb6')](db[_0x53cd0f('0x1')][_0x53cd0f('0x1f')]),_0x43451a[_0x53cd0f('0x89')]=_['keys'](_0x464d1f['query']),_0x43451a[_0x53cd0f('0x56')]=_[_0x53cd0f('0x94')](_0x43451a[_0x53cd0f('0x24')],_0x43451a[_0x53cd0f('0x89')]),_0x3fccc9[_0x53cd0f('0x98')]=_[_0x53cd0f('0x94')](_0x43451a[_0x53cd0f('0x24')],qs[_0x53cd0f('0xa2')](_0x464d1f[_0x53cd0f('0x89')][_0x53cd0f('0xa2')])),_0x3fccc9[_0x53cd0f('0x98')]=_0x3fccc9[_0x53cd0f('0x98')][_0x53cd0f('0xc6')]?_0x3fccc9[_0x53cd0f('0x98')]:_0x43451a[_0x53cd0f('0x24')];typeof _0x464d1f[_0x53cd0f('0x89')][_0x53cd0f('0xf')]===_0x53cd0f('0xbf')&&(_0x3fccc9['limit']=qs[_0x53cd0f('0x1b')](_0x464d1f[_0x53cd0f('0x89')][_0x53cd0f('0x1b')]),_0x3fccc9['offset']=qs[_0x53cd0f('0x2d')](_0x464d1f[_0x53cd0f('0x89')][_0x53cd0f('0x2d')]));_0x3fccc9[_0x53cd0f('0x93')]=qs[_0x53cd0f('0x60')](_0x464d1f[_0x53cd0f('0x89')]['sort']),_0x3fccc9[_0x53cd0f('0x9e')]=qs[_0x53cd0f('0x56')](_[_0x53cd0f('0x5f')](_0x464d1f[_0x53cd0f('0x89')],_0x43451a[_0x53cd0f('0x56')])),_0x3fccc9[_0x53cd0f('0x9e')][_0x53cd0f('0x14')]=_0x5b5898['id'];_0x464d1f[_0x53cd0f('0x89')][_0x53cd0f('0x68')]&&(_0x3fccc9[_0x53cd0f('0x9e')]=_[_0x53cd0f('0xa1')](_0x3fccc9[_0x53cd0f('0x9e')],{[Op['or']]:_[_0x53cd0f('0x4b')](_0x3fccc9['attributes'],function(_0x571ed3){const _0x2a52ff=_0x53cd0f,_0x54fe34={};return _0x54fe34[_0x571ed3]={[Op[_0x2a52ff('0xae')]]:'%'+_0x464d1f[_0x2a52ff('0x89')][_0x2a52ff('0x68')]+'%'},_0x54fe34;})}));if(_0x464d1f[_0x53cd0f('0x89')][_0x53cd0f('0x38')]){const _0x1f5ba6=_0x464d1f[_0x53cd0f('0x89')][_0x53cd0f('0x38')][_0x53cd0f('0x46')](','),_0x3b8f90={};_0x3b8f90[_0x1f5ba6[0x0]]={[Op[_0x53cd0f('0x54')]]:moment(_0x1f5ba6[0x1])[_0x53cd0f('0xb')](_0x53cd0f('0x4e'))},_0x3fccc9['where']=_[_0x53cd0f('0xa1')](_0x3fccc9['where'],_0x3b8f90);}return _0x3fccc9=_[_0x53cd0f('0xa1')]({},_0x3fccc9,_0x464d1f[_0x53cd0f('0x9c')]),db[_0x53cd0f('0x1')][_0x53cd0f('0x2f')]({'where':_0x3fccc9[_0x53cd0f('0x9e')]})[_0x53cd0f('0x16')](function(_0x328d66){const _0x268121=_0x53cd0f;return _0x223ee0[_0x268121('0x2f')]=_0x328d66,_0x464d1f[_0x268121('0x89')][_0x268121('0x3e')]&&(_0x3fccc9[_0x268121('0xb3')]=[{'all':!![]}]),db[_0x268121('0x1')][_0x268121('0x4d')](_0x3fccc9);})[_0x53cd0f('0x16')](function(_0x22fbe2){const _0x24adcf=_0x53cd0f;return _0x223ee0[_0x24adcf('0x4f')]=_0x22fbe2,_0x223ee0;});}})[_0x5039f4('0x16')](respondWithFilteredResult(_0x1c8d01,_0x3fccc9))[_0x5039f4('0x1e')](handleError(_0x1c8d01,null));},exports[_0x338726('0x8c')]=function(_0x5e5e55,_0x55967e){const _0x29b9bb=_0x338726;return db[_0x29b9bb('0xa6')][_0x29b9bb('0x52')]({'where':{'id':_0x5e5e55[_0x29b9bb('0x2c')]['id']}})[_0x29b9bb('0x16')](function(_0x38a02c){const _0x586845=_0x29b9bb;if(_0x38a02c)return _0x38a02c['setTags'](_0x5e5e55[_0x586845('0x30')][_0x586845('0x72')],{'through':_[_0x586845('0x8a')](_0x5e5e55[_0x586845('0x30')],[_0x586845('0x72'),'id'])})[_0x586845('0x16')](function(){const _0x113410=_0x586845;return db['Tag'][_0x113410('0x4d')]({'attributes':['id',_0x113410('0x9d'),_0x113410('0x7d')],'where':{'id':_0x5e5e55[_0x113410('0x30')][_0x113410('0x72')]}});})['then'](function(_0x1be008){const _0xe019b4=_0x586845;return socket[_0xe019b4('0x9f')]('faxInteractionTags:save',{'id':Number(_0x5e5e55['params']['id']),'tags':_0x1be008||[]}),{'id':Number(_0x5e5e55[_0xe019b4('0x2c')]['id']),'tags':_0x1be008||[]};});})[_0x29b9bb('0x16')](respondWithResult(_0x55967e,null))['catch'](handleError(_0x55967e,null));},exports[_0x338726('0x19')]=function(_0xffb6f1,_0x1c9b05){const _0xec4d7b=_0x338726;return db[_0xec4d7b('0xa6')]['findOne']({'where':{'id':_0xffb6f1['params']['id']}})[_0xec4d7b('0x16')](handleEntityNotFound(_0x1c9b05,null))[_0xec4d7b('0x16')](function(_0xadafd3){const _0x8ba2b7=_0xec4d7b;if(_0xadafd3)return _0xadafd3[_0x8ba2b7('0x19')](_0xffb6f1['query'][_0x8ba2b7('0x72')]);})[_0xec4d7b('0x16')](respondWithStatusCode(_0x1c9b05,null))[_0xec4d7b('0x1e')](handleError(_0x1c9b05,null));},exports['download']=function(_0x3edbc7,_0x478d7){const _0x254fed=_0x338726,_0x4f348c=moment()[_0x254fed('0x3f')]()['toString'](),_0x5de532=path['join'](config[_0x254fed('0x69')],_0x254fed('0x45'),'files',_0x254fed('0x5c')),_0x492d6f=path[_0x254fed('0x43')](config[_0x254fed('0x69')],_0x254fed('0x45'),_0x254fed('0x36'),_0x254fed('0x6')),_0x2bed8b=path['join'](_0x5de532,_0x4f348c),_0x1dbfc6=util['format'](_0x254fed('0x8e'),_0x3edbc7[_0x254fed('0x2c')]['id'],_0x4f348c),_0x5c8894=path[_0x254fed('0x43')](_0x5de532,_0x1dbfc6),_0x2adc52=[];_0x2adc52[_0x254fed('0x88')]({'model':db[_0x254fed('0x7a')],'as':_0x254fed('0x7a'),'raw':!![]});const _0x4ef358=[{'model':db[_0x254fed('0x1')],'as':_0x254fed('0x51'),'attributes':['id',_0x254fed('0x30'),_0x254fed('0x7')],'include':_0x2adc52}];return db[_0x254fed('0xa6')]['findOne']({'where':{'id':_0x3edbc7[_0x254fed('0x2c')]['id']},'include':_0x4ef358})[_0x254fed('0x16')](handleEntityNotFound(_0x478d7,null))[_0x254fed('0x16')](function(_0xa59df9){const _0x43d349=_0x254fed;if(_0xa59df9&&_0xa59df9['Messages']){const _0x915834=_0xa59df9['get']({'plain':!![]});fs[_0x43d349('0x35')](_0x2bed8b);for(let _0x24cae2=0x0;_0x24cae2<_0x915834[_0x43d349('0x51')]['length'];_0x24cae2++){const _0x57b975=_0x915834[_0x43d349('0x51')][_0x24cae2]['Attachment'];if(_0x57b975){const _0x310989=path['join'](_0x492d6f,_0x57b975[_0x43d349('0x1a')]);fs['existsSync'](_0x310989)&&fs[_0x43d349('0x6f')](_0x310989)[_0x43d349('0x5e')](fs[_0x43d349('0xbe')](path[_0x43d349('0x43')](_0x2bed8b,_0x57b975[_0x43d349('0x1a')])));}}return Promise[_0x43d349('0x4a')]()[_0x43d349('0x16')](function(){const _0xf29cad=_0x43d349;return new Promise(function(_0x34b0be,_0x4546a0){zipdir(_0x2bed8b,{'saveTo':_0x5c8894},function(_0x5a4d71,_0xaef603){if(_0x5a4d71)return _0x4546a0(_0x5a4d71);return _0x34b0be(_0xaef603);});})[_0xf29cad('0x16')](function(){return new Promise(function(_0x24418f,_0x89a8bc){rimraf(_0x2bed8b,function(_0xd92df5){if(_0xd92df5)_0x89a8bc(_0xd92df5);return _0x24418f();});});})['then'](function(){const _0x595677=_0xf29cad;return _0x478d7[_0x595677('0x8d')](_0x5c8894,_0x1dbfc6,function(_0x32ba5e){const _0x3b788c=_0x595677;_0x32ba5e?console[_0x3b788c('0x3c')]('err',_0x32ba5e):fs[_0x3b788c('0x20')](_0x5c8894);});});});}else return _0x478d7[_0x43d349('0x87')](0xc8);})[_0x254fed('0x1e')](handleError(_0x478d7,null));}; \ No newline at end of file +const a198_0x3904=['../../mysqldb','create','t.id\x20=\x20it.TagId','../../config/logger','fax_messages','o.fullname','o.internal','files','expr','order','createReadStream','unix','includeAll','User','end','unlinkSync','removeTags','color','c.lastName','left_join','pipe','UserId','\x20=\x20?','pick','setTags','fields','addTags','field','server','set','FaxInteractionId','fax_interactions','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','status','isEmpty','api','sendStatus','key','c.mobile','value','u.id\x20=\x20ui.UserId','SELECT','show','cm_contacts','where','map','params','send','catch','zip-dir','Contact.lastName','union','moment','c.firstName','like','include','isArray','length','i.id','sort','null','parseSearch','concat','attachments','../../rediscache','lodash','search','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','conditions','text','Contact.mobile','describe','forEach','model','emit','Contact.email','sequelize','GROUP_CONCAT(DISTINCT\x20t.id)','some','a.id\x20=\x20i.FaxAccountId','Owner.internal','filter','fieldName','Messages','getFaxAccounts','count','keys','start','having','addMessage','clone','user_has_fax_interactions','u.id','i.fax\x20LIKE\x20?','body','join','c.email','format','i.*','download','fax_interaction_has_tags','squel','buildExpression','query','sqlOperator','mkdirSync','$substring','\x27\x27\x27\x27','keyBy','i.FaxAccountId\x20IS\x20NULL','`unreadMessages`\x20=\x200','ids','i.id\x20LIKE\x20?','undefined','offset','Content-Range','\x20IS\x20NULL','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','o.id\x20=\x20i.UserId','get','json','then','replace','isNumeric','it.FaxInteractionId\x20=\x20i.id','read','FaxAccountId','existsSync','find','Attachment','TagIds','i.FaxAccountId\x20IN\x20?','stack','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','Contact.firstName','rows','toString','update','merge','findOne','rawAttributes','ContactId','fullname','options','push','omit','log','a.mandatoryDisposition','destroy','index','type','Owner.fullname','operator','err','tag','gte','FaxInteraction','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','Account.mandatoryDisposition','filters','findAll','tools_tags','ui.FaxInteractionId\x20IN\x20?','Tag','Contact.phone','createdAt','faxInteractionTags:save','rimraf','from','c.fax','user','createWriteStream','getMessages','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','unreadMessages','attributes','FaxMessage','t.id\x20IN\x20?','Account.key','groupBy','register','intersection','parse','limit','`\x20>\x200','Tags','`\x20=\x200','Users','QueryTypes','name','basename','split','users','select'];(function(_0x26615a,_0x3904cd){const _0x2b36fa=function(_0x22faab){while(--_0x22faab){_0x26615a['push'](_0x26615a['shift']());}};_0x2b36fa(++_0x3904cd);}(a198_0x3904,0x1a4));const a198_0x2b36=function(_0x26615a,_0x3904cd){_0x26615a=_0x26615a-0x0;let _0x2b36fa=a198_0x3904[_0x26615a];return _0x2b36fa;};const _0x259606=a198_0x2b36;'use strict';const rimraf=require(_0x259606('0x87')),zipdir=require(_0x259606('0x11')),moment=require(_0x259606('0x14')),util=require('util'),path=require('path'),fs=require('fs'),_=require(_0x259606('0x21')),squel=require(_0x259606('0x45')),{getSocket}=require(_0x259606('0x20')),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require('../../components/parsers/advancedSearch'),logger=require(_0x259606('0xa5'))(_0x259606('0x3')),config=require('../../config/environment'),db=require(_0x259606('0xa2'))['db'],{Op}=require(_0x259606('0x2c'));require('./faxInteraction.socket')[_0x259606('0x94')](socket);function respondWithStatusCode(_0x22faab,_0x47fcd2){return _0x47fcd2=_0x47fcd2||0xcc,function(_0x428611){const _0x100fc4=a198_0x2b36;if(_0x428611)return _0x22faab[_0x100fc4('0x4')](_0x47fcd2);return _0x22faab[_0x100fc4('0x1')](_0x47fcd2)[_0x100fc4('0xb0')]();};}function respondWithResult(_0x4a1673,_0x218b46){return _0x218b46=_0x218b46||0xc8,function(_0x2434d5){const _0x34fe7d=a198_0x2b36;if(_0x2434d5)return _0x4a1673[_0x34fe7d('0x1')](_0x218b46)[_0x34fe7d('0x58')](_0x2434d5);};}function respondWithFilteredResult(_0x1a49b8,_0x1f80dd){return function(_0x4bd630){const _0x6b6d58=a198_0x2b36;if(_0x4bd630){const _0xd42d19=_0x4bd630[_0x6b6d58('0x35')],_0x30c4aa=_0x1f80dd['offset'];let _0x32a903=_0x1f80dd['offset']+_0x1f80dd[_0x6b6d58('0x97')],_0xc28f01;return _0x32a903>=_0xd42d19?(_0x32a903=_0xd42d19,_0xc28f01=0xc8):_0xc28f01=0xce,_0x1a49b8[_0x6b6d58('0x1')](_0xc28f01),_0x1a49b8[_0x6b6d58('0xbf')](_0x6b6d58('0x53'),_0x30c4aa+'-'+_0x32a903+'/'+_0xd42d19)['json'](_0x4bd630);}return null;};}function saveUpdates(_0x52af0a){return function(_0x77dce){const _0x4804ee=a198_0x2b36;if(_0x77dce)return _0x77dce[_0x4804ee('0x69')](_0x52af0a)[_0x4804ee('0x59')](function(_0x1e0d4c){return _0x1e0d4c;});return null;};}function removeEntity(_0x326096){return function(_0x26853b){const _0x88ca62=a198_0x2b36;if(_0x26853b)return _0x26853b[_0x88ca62('0x74')]()['then'](function(){const _0x3eae32=_0x88ca62;_0x326096[_0x3eae32('0x1')](0xcc)[_0x3eae32('0xb0')]();});};}function handleEntityNotFound(_0x5c3ccd){return function(_0xc09008){return!_0xc09008&&_0x5c3ccd['sendStatus'](0x194),_0xc09008;};}function handleError(_0x1fd85c,_0x2a2f28){return _0x2a2f28=_0x2a2f28||0x1f4,function(_0x2bf57f){const _0x44eb4b=a198_0x2b36;logger['error'](_0x2bf57f[_0x44eb4b('0x64')]),_0x2bf57f[_0x44eb4b('0x9d')]&&delete _0x2bf57f['name'],_0x1fd85c['status'](_0x2a2f28)[_0x44eb4b('0xf')](_0x2bf57f);};}function getInteractionUsers(_0x18a2cf,_0x59dbcf){return new Promise(function(_0x4a0308,_0x216a34){const _0x298e23=a198_0x2b36;try{_0x59dbcf[_0x18a2cf['id']]&&(_0x18a2cf[_0x298e23('0x9b')]=_[_0x298e23('0xd')](_0x59dbcf[_0x18a2cf['id']],function(_0x418965){const _0x2c0d42=_0x298e23;return{'id':_0x418965['id'],'fullname':_0x418965[_0x2c0d42('0x6e')]};}));}catch(_0xf30de0){_0x216a34(_0xf30de0);}_0x4a0308(_0x18a2cf);});}function getInteractionTags(_0x2487e7,_0x573cfd){return new Promise(function(_0xc674ba,_0x368239){const _0x55f089=a198_0x2b36;try{_0x2487e7[_0x55f089('0x62')]&&(_0x2487e7[_0x55f089('0x99')]=[],_0x2487e7[_0x55f089('0x62')][_0x55f089('0x9f')](',')[_0x55f089('0x28')](function(_0x1cf692){const _0x32d4c5=_0x55f089;_0x2487e7[_0x32d4c5('0x99')][_0x32d4c5('0x70')](_0x573cfd[_0x1cf692]);})),delete _0x2487e7[_0x55f089('0x62')];}catch(_0x3157df){_0x368239(_0x3157df);}_0xc674ba(_0x2487e7);});}function updateFaxInteraction(_0x4b81d3,_0x1d0a5f,_0x50ad75){return new Promise(function(_0x18ecbf,_0x549172){const _0x984789=a198_0x2b36;return getInteractionUsers(_0x4b81d3,_0x50ad75)[_0x984789('0x59')](function(_0x5e03cc){return getInteractionTags(_0x5e03cc,_0x1d0a5f);})['then'](function(_0x51d539){_0x18ecbf(_0x51d539);})['catch'](function(_0x736e97){_0x549172(_0x736e97);});});}exports[_0x259606('0x75')]=function(_0x31204c,_0x385724){const _0x1b8b58=_0x259606,_0x107fdf={},_0x42b146={},_0x273af5={'count':0x0,'rows':[]},_0x1e4ff3=_[_0x1b8b58('0xd')](db['FaxInteraction']['rawAttributes'],function(_0x2b9cdd){const _0x416e50=_0x1b8b58;return{'name':_0x2b9cdd[_0x416e50('0x32')],'type':_0x2b9cdd[_0x416e50('0x76')][_0x416e50('0x5')]};});_0x42b146[_0x1b8b58('0x29')]=_[_0x1b8b58('0xd')](_0x1e4ff3,'name'),_0x42b146[_0x1b8b58('0x47')]=_['keys'](_0x31204c[_0x1b8b58('0x47')]),_0x42b146['filters']=_[_0x1b8b58('0x95')](_0x42b146['model'],_0x42b146[_0x1b8b58('0x47')]),_0x107fdf[_0x1b8b58('0x8f')]=_[_0x1b8b58('0x95')](_0x42b146[_0x1b8b58('0x29')],qs[_0x1b8b58('0xbb')](_0x31204c[_0x1b8b58('0x47')][_0x1b8b58('0xbb')])),_0x107fdf[_0x1b8b58('0x8f')]=_0x107fdf['attributes'][_0x1b8b58('0x19')]?_0x107fdf[_0x1b8b58('0x8f')]:_0x42b146[_0x1b8b58('0x29')];typeof _0x31204c[_0x1b8b58('0x47')]['nolimit']===_0x1b8b58('0x51')&&(_0x107fdf[_0x1b8b58('0x97')]=qs[_0x1b8b58('0x97')](_0x31204c[_0x1b8b58('0x47')][_0x1b8b58('0x97')]),_0x107fdf[_0x1b8b58('0x52')]=qs[_0x1b8b58('0x52')](_0x31204c['query'][_0x1b8b58('0x52')]));_0x107fdf[_0x1b8b58('0xab')]=qs[_0x1b8b58('0x1b')](_0x31204c[_0x1b8b58('0x47')][_0x1b8b58('0x1b')]),_0x107fdf[_0x1b8b58('0xc')]=qs[_0x1b8b58('0x7f')](_['pick'](_0x31204c[_0x1b8b58('0x47')],_0x42b146[_0x1b8b58('0x7f')]),_0x1e4ff3);let _0x1be5fe=[];const _0x428efa=squel[_0x1b8b58('0xa1')]()[_0x1b8b58('0xbd')]('id')['field'](_0x1b8b58('0x9d'))[_0x1b8b58('0xbd')]('color')[_0x1b8b58('0x88')](_0x1b8b58('0x81')),_0xe02568=squel[_0x1b8b58('0xa1')]()[_0x1b8b58('0xbd')](_0x1b8b58('0x3c'))[_0x1b8b58('0xbd')]('u.fullname')['field']('ui.FaxInteractionId')[_0x1b8b58('0x88')](_0x1b8b58('0x3b'),'ui')['left_join'](_0x1b8b58('0xa0'),'u',_0x1b8b58('0x8')),_0x5b7115=squel[_0x1b8b58('0xa1')]()[_0x1b8b58('0x88')](_0x1b8b58('0xc1'),'i')[_0x1b8b58('0xb5')](_0x1b8b58('0xb'),'c',_0x1b8b58('0x65'))[_0x1b8b58('0xb5')](_0x1b8b58('0xa0'),'o',_0x1b8b58('0x56'))[_0x1b8b58('0xb5')]('fax_accounts','a',_0x1b8b58('0x2f'))[_0x1b8b58('0xb5')](_0x1b8b58('0xa6'),'me','me.FaxInteractionId\x20=\x20i.id')[_0x1b8b58('0xb5')](_0x1b8b58('0x44'),'it',_0x1b8b58('0x5c'))[_0x1b8b58('0xb5')]('tools_tags','t',_0x1b8b58('0xa4')),_0x4320db=squel[_0x1b8b58('0xaa')]();let _0x49c116=[];const _0x26de6b=squel[_0x1b8b58('0xaa')]();let _0xd69710;if(_0x31204c['query'][_0x1b8b58('0x22')]){_0xd69710=as[_0x1b8b58('0x1d')](_0x31204c[_0x1b8b58('0x47')][_0x1b8b58('0x22')]);const _0x2ee13e=_0xd69710[_0x1b8b58('0x48')];for(let _0x5969c5=0x0;_0x5969c5<_0xd69710[_0x1b8b58('0x24')]['length'];_0x5969c5++){const _0xdabc6c=_0xd69710['conditions'][_0x5969c5],_0x5db115='i';let _0x500595,_0x1fcca4=_[_0x1b8b58('0x60')](_0x1e4ff3,[_0x1b8b58('0x9d'),_0xdabc6c[_0x1b8b58('0xbd')]]);if(!_0x1fcca4)switch(_0xdabc6c[_0x1b8b58('0xbd')]){case _0x1b8b58('0x8e'):_0xdabc6c[_0x1b8b58('0x7')]==0x1?_0x5b7115[_0x1b8b58('0x38')]('`'+_0xdabc6c['field']+_0x1b8b58('0x9a')):_0x5b7115['having']('`'+_0xdabc6c['field']+_0x1b8b58('0x98'));break;case'Contact':if(_0xdabc6c['operator']===_0x1b8b58('0x4a')){if(_0xdabc6c[_0x1b8b58('0x7')]['split']('\x20')[_0x1b8b58('0x19')]>0x1)_0x4320db[_0x2ee13e](_0x1b8b58('0x23'),qs['getFullTextValue'](_0xdabc6c[_0x1b8b58('0x7')]),null);else{const _0x4df129='%'+_0xdabc6c[_0x1b8b58('0x7')]+'%';_0x4320db[_0x2ee13e](_0x1b8b58('0x8d'),_0x4df129,_0x4df129,_0x4df129);}}else _0x1fcca4=_[_0x1b8b58('0x60')](_0x1e4ff3,['name',_0x1b8b58('0x6d')]),_0xdabc6c[_0x1b8b58('0xbd')]='ContactId',_0x500595=as[_0x1b8b58('0x46')](_0x5db115,_0x1fcca4[_0x1b8b58('0x76')],_0xdabc6c),_0x4320db[_0x2ee13e](_0x500595[_0x1b8b58('0x25')],_0x500595['value'][_0x1b8b58('0x37')],_0x500595[_0x1b8b58('0x7')][_0x1b8b58('0xb0')]);break;case _0x1b8b58('0x83'):{const _0xb65444=_0xdabc6c[_0x1b8b58('0x7')][_0x1b8b58('0x9f')](',')['map'](function(_0x2001e0){return Number(_0x2001e0);});_0xb65444['forEach'](function(_0x28c32b){const _0x156e96=_0x1b8b58;_0x26de6b['or'](_0x156e96('0x0'),'%,'+_0x28c32b+',%');}),_0x49c116=_[_0x1b8b58('0x13')](_0x49c116,_0xb65444);}break;case _0x1b8b58('0xaf'):_0xdabc6c[_0x1b8b58('0x78')]===_0x1b8b58('0x4a')?_0x4320db[_0x2ee13e]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0xdabc6c[_0x1b8b58('0x7')]+'%',null):(_0x1fcca4=_['find'](_0x1e4ff3,[_0x1b8b58('0x9d'),_0x1b8b58('0xb7')]),_0xdabc6c['field']=_0x1b8b58('0xb7'),_0x500595=as[_0x1b8b58('0x46')](_0x5db115,_0x1fcca4[_0x1b8b58('0x76')],_0xdabc6c),_0x4320db[_0x2ee13e](_0x500595[_0x1b8b58('0x25')],_0x500595['value']['start'],_0x500595[_0x1b8b58('0x7')][_0x1b8b58('0xb0')]));break;case _0x1b8b58('0x3e'):_0x500595=as[_0x1b8b58('0x46')]('me',null,_0xdabc6c),_0x4320db[_0x2ee13e](_0x500595[_0x1b8b58('0x25')],_0x500595['value']['start'],_0x500595['value'][_0x1b8b58('0xb0')]);break;}else _0x500595=as[_0x1b8b58('0x46')](_0x5db115,_0x1fcca4['type'],_0xdabc6c),_0x4320db[_0x2ee13e](_0x500595[_0x1b8b58('0x25')],_0x500595['value'][_0x1b8b58('0x37')],_0x500595[_0x1b8b58('0x7')][_0x1b8b58('0xb0')]);}}else{const _0x54ea95=_(_0x31204c[_0x1b8b58('0x47')])['keys']()[_0x1b8b58('0xd')](function(_0x4eeabe){const _0x2c5965=_0x1b8b58;return _[_0x2c5965('0x2e')](_0x1e4ff3,[_0x2c5965('0x9d'),_0x4eeabe])?_0x4eeabe:undefined;})['compact']()[_0x1b8b58('0x7')]();!_[_0x1b8b58('0x2')](_0x54ea95)&&_0x54ea95[_0x1b8b58('0x28')](function(_0x3de649){const _0x40aa6e=_0x1b8b58;if(_0x3de649===_0x40aa6e('0x5e'))_0x5b7115[_0x40aa6e('0xc')](_0x40aa6e('0x63'),[][_0x40aa6e('0x1e')](_0x31204c[_0x40aa6e('0x47')][_0x3de649]));else{if(_0x3de649===_0x40aa6e('0x85')){const _0x1f0cee=JSON[_0x40aa6e('0x96')](_0x31204c[_0x40aa6e('0x47')][_0x3de649])['$gte'],_0x15c410=JSON[_0x40aa6e('0x96')](_0x31204c[_0x40aa6e('0x47')][_0x3de649])['$lte'];_0x5b7115[_0x40aa6e('0xc')](_0x40aa6e('0x55'),_0x1f0cee,_0x15c410);}else _0x31204c['query'][_0x3de649]===_0x40aa6e('0x1c')?_0x5b7115[_0x40aa6e('0xc')]('i.'+_0x3de649+_0x40aa6e('0x54')):_0x5b7115[_0x40aa6e('0xc')]('i.'+_0x3de649+_0x40aa6e('0xb8'),_0x31204c[_0x40aa6e('0x47')][_0x3de649]);}});_0x31204c[_0x1b8b58('0x47')][_0x1b8b58('0x5d')]&&(_0x31204c[_0x1b8b58('0x47')]['read']==0x1?_0x5b7115['having'](_0x1b8b58('0x4e')):_0x5b7115['having']('`unreadMessages`\x20>\x200'));_0x31204c['query'][_0x1b8b58('0x7a')]&&(_0x49c116=_[_0x1b8b58('0x18')](_0x31204c[_0x1b8b58('0x47')]['tag'])?_0x31204c[_0x1b8b58('0x47')][_0x1b8b58('0x7a')]:new Array(_0x31204c[_0x1b8b58('0x47')][_0x1b8b58('0x7a')]),_0x49c116['forEach'](function(_0x45f442){const _0x3d4eea=_0x1b8b58;_0x26de6b['or'](_0x3d4eea('0x0'),'%,'+_0x45f442+',%');}));if(_0x31204c[_0x1b8b58('0x47')][_0x1b8b58('0x31')]){const _0x40f24a=_0x31204c['query']['filter'][_0x1b8b58('0x5a')]('\x5c','\x5c\x5c')[_0x1b8b58('0x5a')]('\x27\x27',_0x1b8b58('0x4b'));qs[_0x1b8b58('0x5b')](_0x40f24a)&&_0x4320db['or'](_0x1b8b58('0x50'),_0x40f24a+'%')['or'](_0x1b8b58('0x3d'),_0x40f24a+'%'),_0x4320db['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x40f24a+'%');}}_0x5b7115[_0x1b8b58('0xc')](_0x4320db),_0x5b7115['group']('i.id');let _0x279d4a={'type':db['Sequelize'][_0x1b8b58('0x9c')][_0x1b8b58('0x9')],'raw':!![]};const _0x21fd26=_0x5b7115[_0x1b8b58('0x3a')]();_0x21fd26[_0x1b8b58('0xbd')](_0x1b8b58('0x1a')),_0x21fd26[_0x1b8b58('0xbd')](_0x1b8b58('0x7d'),_0x1b8b58('0x8e')),_0x107fdf[_0x1b8b58('0xab')]&&_0x107fdf['order'][_0x1b8b58('0x28')](function(_0x37ffd4){_0x5b7115['order']('i.'+_0x37ffd4[0x0],_0x37ffd4[0x1]==='DESC'?![]:!![]);}),!_[_0x1b8b58('0x2')](_0x49c116)&&(_0x5b7115['having'](_0x26de6b),_0x21fd26[_0x1b8b58('0xc')](_0x1b8b58('0x91'),_0x49c116)),Promise['resolve']()[_0x1b8b58('0x59')](function(){const _0x3a27ed=_0x1b8b58;if(!_0xd69710){if(_0x31204c[_0x3a27ed('0x47')][_0x3a27ed('0x5e')]||_0x31204c[_0x3a27ed('0x47')]['journey'])return;_0x21fd26[_0x3a27ed('0xc')]('i.FaxAccountId\x20IS\x20NOT\x20NULL'),_0x5b7115[_0x3a27ed('0xc')]('i.FaxAccountId\x20IS\x20NOT\x20NULL');return;}return _0x31204c[_0x3a27ed('0x8a')][_0x3a27ed('0x34')]({'attributes':['id'],'raw':!![]})[_0x3a27ed('0x59')](function(_0x135370){const _0x5ab4bf=_0x3a27ed;_[_0x5ab4bf('0x2')](_0x135370)?(_0x21fd26[_0x5ab4bf('0xc')]('i.FaxAccountId\x20IS\x20NULL'),_0x5b7115[_0x5ab4bf('0xc')](_0x5ab4bf('0x4d'))):(_0x21fd26[_0x5ab4bf('0xc')](_0x5ab4bf('0x63'),_[_0x5ab4bf('0xd')](_0x135370,'id')),_0x5b7115['where']('i.FaxAccountId\x20IN\x20?',_['map'](_0x135370,'id')));});})[_0x1b8b58('0x59')](function(){const _0x1718f5=_0x1b8b58;db[_0x1718f5('0x2c')][_0x1718f5('0x47')](_0x21fd26[_0x1718f5('0x68')](),_0x279d4a)[_0x1718f5('0x59')](function(_0x1bab9d){const _0x5217c9=_0x1718f5;_0x273af5[_0x5217c9('0x35')]=_0x1bab9d[_0x5217c9('0x19')];if(_0x273af5['count']===0x0)return[];return db[_0x5217c9('0x2c')]['query'](_0x428efa[_0x5217c9('0x68')](),_0x279d4a)[_0x5217c9('0x59')](function(_0x115899){const _0x42148c=_0x5217c9;_0x1be5fe=_[_0x42148c('0x4c')](_0x115899,'id'),_0x279d4a=_[_0x42148c('0x6a')](_0x279d4a,{'model':db['FaxInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x31204c[_0x42148c('0x47')]['fields']?_0x107fdf['attributes']['forEach'](function(_0x425f58){const _0x358fb2=_0x42148c;_0x5b7115[_0x358fb2('0xbd')]('i.'+_0x425f58);}):(_0x5b7115[_0x42148c('0xbd')](_0x42148c('0x7d'),_0x42148c('0x8e')),_0x5b7115['field']('a.key',_0x42148c('0x92')),_0x5b7115['field'](_0x42148c('0x73'),_0x42148c('0x7e')),_0x5b7115['field'](_0x42148c('0x42')),_0x5b7115[_0x42148c('0xbd')](_0x42148c('0x15'),_0x42148c('0x66')),_0x5b7115[_0x42148c('0xbd')](_0x42148c('0xb4'),_0x42148c('0x12')),_0x5b7115[_0x42148c('0xbd')](_0x42148c('0x40'),_0x42148c('0x2b')),_0x5b7115[_0x42148c('0xbd')]('c.phone',_0x42148c('0x84')),_0x5b7115['field'](_0x42148c('0x6'),_0x42148c('0x26')),_0x5b7115[_0x42148c('0xbd')](_0x42148c('0x89'),'Contact.fax'),_0x5b7115[_0x42148c('0xbd')](_0x42148c('0xa7'),_0x42148c('0x77')),_0x5b7115[_0x42148c('0xbd')](_0x42148c('0xa8'),_0x42148c('0x30')),_0x5b7115[_0x42148c('0xbd')](_0x42148c('0x2d'),_0x42148c('0x62')));if(_0x107fdf[_0x42148c('0x97')])_0x5b7115[_0x42148c('0x97')](_0x107fdf['limit']);if(_0x107fdf['offset'])_0x5b7115[_0x42148c('0x52')](_0x107fdf[_0x42148c('0x52')]);return db['sequelize']['query'](_0x5b7115[_0x42148c('0x68')](),_0x279d4a);})['then'](function(_0x32b34b){const _0x4cfa37=_0x5217c9;return _0xe02568[_0x4cfa37('0xc')](_0x4cfa37('0x82'),_[_0x4cfa37('0xd')](_0x32b34b,'id')),db[_0x4cfa37('0x2c')]['query'](_0xe02568[_0x4cfa37('0x68')](),_0x279d4a)[_0x4cfa37('0x59')](function(_0x1d101d){const _0x15c50a=_0x4cfa37,_0x21f52d=_[_0x15c50a('0x93')](_0x1d101d,'FaxInteractionId'),_0x1e1bb0=[];return _0x32b34b[_0x15c50a('0x28')](function(_0x5f1b4c){const _0x33f069=_0x15c50a;_0x1e1bb0[_0x33f069('0x70')](updateFaxInteraction(_0x5f1b4c,_0x1be5fe,_0x21f52d));}),Promise['all'](_0x1e1bb0);});});})['then'](function(_0x12f654){const _0x4fc7de=_0x1718f5;return _0x273af5[_0x4fc7de('0x67')]=_0x12f654,_0x273af5;})[_0x1718f5('0x59')](respondWithFilteredResult(_0x385724,_0x107fdf));})[_0x1b8b58('0x10')](handleError(_0x385724,null));},exports[_0x259606('0xa')]=function(_0x29b480,_0x5f2474){const _0x37e56e=_0x259606;let _0x280179={'raw':![],'where':{'id':_0x29b480[_0x37e56e('0xe')]['id']}};const _0x211b1a={};return _0x211b1a[_0x37e56e('0x29')]=_[_0x37e56e('0x36')](db[_0x37e56e('0x7c')][_0x37e56e('0x6c')]),_0x211b1a['query']=_[_0x37e56e('0x36')](_0x29b480[_0x37e56e('0x47')]),_0x211b1a['filters']=_[_0x37e56e('0x95')](_0x211b1a[_0x37e56e('0x29')],_0x211b1a['query']),_0x280179['attributes']=_[_0x37e56e('0x95')](_0x211b1a[_0x37e56e('0x29')],qs[_0x37e56e('0xbb')](_0x29b480[_0x37e56e('0x47')][_0x37e56e('0xbb')])),_0x280179[_0x37e56e('0x8f')]=_0x280179[_0x37e56e('0x8f')]['length']?_0x280179[_0x37e56e('0x8f')]:_0x211b1a['model'],_0x29b480[_0x37e56e('0x47')]['includeAll']&&(_0x280179[_0x37e56e('0x17')]=[{'all':!![]}]),_0x280179=_[_0x37e56e('0x6a')]({},_0x280179,_0x29b480['options']),db[_0x37e56e('0x7c')][_0x37e56e('0x6b')](_0x280179)['then'](handleEntityNotFound(_0x5f2474,null))[_0x37e56e('0x59')](respondWithResult(_0x5f2474,null))['catch'](handleError(_0x5f2474,null));},exports[_0x259606('0xa3')]=function(_0x8c26b1,_0x108ed2){const _0x1abeda=_0x259606;return db[_0x1abeda('0x7c')][_0x1abeda('0xa3')](_0x8c26b1[_0x1abeda('0x3e')],{})[_0x1abeda('0x59')](respondWithResult(_0x108ed2,0xc9))[_0x1abeda('0x10')](handleError(_0x108ed2,null));},exports[_0x259606('0x69')]=function(_0x34276b,_0xdf0acd){const _0x32bc3e=_0x259606;return _0x34276b[_0x32bc3e('0x3e')]['id']&&delete _0x34276b['body']['id'],db[_0x32bc3e('0x7c')][_0x32bc3e('0x6b')]({'where':{'id':_0x34276b[_0x32bc3e('0xe')]['id']}})[_0x32bc3e('0x59')](handleEntityNotFound(_0xdf0acd,null))[_0x32bc3e('0x59')](saveUpdates(_0x34276b[_0x32bc3e('0x3e')],null))[_0x32bc3e('0x59')](respondWithResult(_0xdf0acd,null))[_0x32bc3e('0x10')](handleError(_0xdf0acd,null));},exports[_0x259606('0x74')]=function(_0x317cda,_0x53bf83){const _0x632733=_0x259606;return db[_0x632733('0x7c')][_0x632733('0x6b')]({'where':{'id':_0x317cda[_0x632733('0xe')]['id']}})[_0x632733('0x59')](handleEntityNotFound(_0x53bf83,null))['then'](removeEntity(_0x53bf83,null))['catch'](handleError(_0x53bf83,null));},exports[_0x259606('0x27')]=function(_0x37cefc,_0x2e6331){const _0xb898ac=_0x259606;return db['FaxInteraction'][_0xb898ac('0x27')]()[_0xb898ac('0x59')](respondWithResult(_0x2e6331,null))[_0xb898ac('0x10')](handleError(_0x2e6331,null));},exports[_0x259606('0x39')]=function(_0x490f52,_0x3f1235){const _0x3c605c=_0x259606;return db[_0x3c605c('0x90')]['findOne']({'where':{'id':_0x490f52['params']['id']}})['then'](function(_0x562bc4){const _0x169fbc=_0x3c605c;if(_0x562bc4)return _0x562bc4[_0x169fbc('0x39')](_0x490f52['body'][_0x169fbc('0x4f')],{'through':_[_0x169fbc('0x71')](_0x490f52['body'],[_0x169fbc('0x4f'),'id'])});})[_0x3c605c('0x59')](respondWithResult(_0x3f1235,null))[_0x3c605c('0x10')](handleError(_0x3f1235,null));},exports[_0x259606('0x8c')]=function(_0x1e64e2,_0xd750b5){const _0x2ee3e8=_0x259606;let _0x37e89f={'raw':![],'where':{}};const _0x2c111b={},_0x3dc809={'count':0x0,'rows':[]};return db[_0x2ee3e8('0x7c')][_0x2ee3e8('0x6b')]({'where':{'id':_0x1e64e2[_0x2ee3e8('0xe')]['id']}})[_0x2ee3e8('0x59')](handleEntityNotFound(_0xd750b5,null))['then'](function(_0x2401d0){const _0x24176e=_0x2ee3e8;if(_0x2401d0){_0x2c111b[_0x24176e('0x29')]=_[_0x24176e('0x36')](db[_0x24176e('0x90')][_0x24176e('0x6c')]),_0x2c111b['query']=_['keys'](_0x1e64e2['query']),_0x2c111b[_0x24176e('0x7f')]=_[_0x24176e('0x95')](_0x2c111b[_0x24176e('0x29')],_0x2c111b[_0x24176e('0x47')]),_0x37e89f[_0x24176e('0x8f')]=_[_0x24176e('0x95')](_0x2c111b[_0x24176e('0x29')],qs[_0x24176e('0xbb')](_0x1e64e2[_0x24176e('0x47')][_0x24176e('0xbb')])),_0x37e89f[_0x24176e('0x8f')]=_0x37e89f['attributes'][_0x24176e('0x19')]?_0x37e89f[_0x24176e('0x8f')]:_0x2c111b[_0x24176e('0x29')];typeof _0x1e64e2[_0x24176e('0x47')]['nolimit']==='undefined'&&(_0x37e89f[_0x24176e('0x97')]=qs['limit'](_0x1e64e2[_0x24176e('0x47')][_0x24176e('0x97')]),_0x37e89f[_0x24176e('0x52')]=qs[_0x24176e('0x52')](_0x1e64e2[_0x24176e('0x47')][_0x24176e('0x52')]));_0x37e89f[_0x24176e('0xab')]=qs[_0x24176e('0x1b')](_0x1e64e2[_0x24176e('0x47')][_0x24176e('0x1b')]),_0x37e89f[_0x24176e('0xc')]=qs[_0x24176e('0x7f')](_[_0x24176e('0xb9')](_0x1e64e2[_0x24176e('0x47')],_0x2c111b[_0x24176e('0x7f')])),_0x37e89f[_0x24176e('0xc')][_0x24176e('0xc0')]=_0x2401d0['id'];_0x1e64e2['query'][_0x24176e('0x31')]&&(_0x37e89f[_0x24176e('0xc')]=_[_0x24176e('0x6a')](_0x37e89f[_0x24176e('0xc')],{[Op['or']]:_[_0x24176e('0xd')](_0x37e89f[_0x24176e('0x8f')],function(_0x4ddb83){const _0x558126=_0x24176e,_0x17fd1a={};return _0x17fd1a[_0x4ddb83]={[Op[_0x558126('0x16')]]:'%'+_0x1e64e2[_0x558126('0x47')][_0x558126('0x31')]+'%'},_0x17fd1a;})}));if(_0x1e64e2['query']['$gte']){const _0x2acba1=_0x1e64e2['query']['$gte']['split'](','),_0x35546c={};_0x35546c[_0x2acba1[0x0]]={[Op[_0x24176e('0x7b')]]:moment(_0x2acba1[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0x37e89f[_0x24176e('0xc')]=_[_0x24176e('0x6a')](_0x37e89f[_0x24176e('0xc')],_0x35546c);}return _0x37e89f=_[_0x24176e('0x6a')]({},_0x37e89f,_0x1e64e2[_0x24176e('0x6f')]),db[_0x24176e('0x90')][_0x24176e('0x35')]({'where':_0x37e89f[_0x24176e('0xc')]})[_0x24176e('0x59')](function(_0x24e965){const _0x238cfa=_0x24176e;return _0x3dc809[_0x238cfa('0x35')]=_0x24e965,_0x1e64e2['query'][_0x238cfa('0xae')]&&(_0x37e89f[_0x238cfa('0x17')]=[{'all':!![]}]),db['FaxMessage'][_0x238cfa('0x80')](_0x37e89f);})['then'](function(_0x231fc6){const _0x46b5f2=_0x24176e;return _0x3dc809[_0x46b5f2('0x67')]=_0x231fc6,_0x3dc809;});}})[_0x2ee3e8('0x59')](respondWithFilteredResult(_0xd750b5,_0x37e89f))[_0x2ee3e8('0x10')](handleError(_0xd750b5,null));},exports[_0x259606('0xbc')]=function(_0x447767,_0xf851a8){const _0x22c5a5=_0x259606;return db['FaxInteraction'][_0x22c5a5('0x6b')]({'where':{'id':_0x447767['params']['id']}})['then'](function(_0x108fce){const _0x13251c=_0x22c5a5;if(_0x108fce)return _0x108fce[_0x13251c('0xba')](_0x447767[_0x13251c('0x3e')]['ids'],{'through':_[_0x13251c('0x71')](_0x447767[_0x13251c('0x3e')],[_0x13251c('0x4f'),'id'])})['then'](function(){const _0x9069c2=_0x13251c;return db['Tag'][_0x9069c2('0x80')]({'attributes':['id','name',_0x9069c2('0xb3')],'where':{'id':_0x447767[_0x9069c2('0x3e')][_0x9069c2('0x4f')]}});})[_0x13251c('0x59')](function(_0x18801b){const _0x3b5c23=_0x13251c;return socket[_0x3b5c23('0x2a')](_0x3b5c23('0x86'),{'id':Number(_0x447767[_0x3b5c23('0xe')]['id']),'tags':_0x18801b||[]}),{'id':Number(_0x447767[_0x3b5c23('0xe')]['id']),'tags':_0x18801b||[]};});})['then'](respondWithResult(_0xf851a8,null))[_0x22c5a5('0x10')](handleError(_0xf851a8,null));},exports[_0x259606('0xb2')]=function(_0x522d72,_0x31623b){const _0x40c351=_0x259606;return db[_0x40c351('0x7c')][_0x40c351('0x6b')]({'where':{'id':_0x522d72[_0x40c351('0xe')]['id']}})['then'](handleEntityNotFound(_0x31623b,null))['then'](function(_0x420e0c){const _0x46ce7c=_0x40c351;if(_0x420e0c)return _0x420e0c[_0x46ce7c('0xb2')](_0x522d72[_0x46ce7c('0x47')][_0x46ce7c('0x4f')]);})['then'](respondWithStatusCode(_0x31623b,null))['catch'](handleError(_0x31623b,null));},exports[_0x259606('0x43')]=function(_0x19db28,_0x560e81){const _0xac6927=_0x259606,_0x46c9da=moment()[_0xac6927('0xad')]()[_0xac6927('0x68')](),_0x2cafe4=path['join'](config['root'],_0xac6927('0xbe'),_0xac6927('0xa9'),'tmp'),_0x1f71ab=path['join'](config['root'],_0xac6927('0xbe'),_0xac6927('0xa9'),_0xac6927('0x1f')),_0x2b015d=path[_0xac6927('0x3f')](_0x2cafe4,_0x46c9da),_0x28529b=util[_0xac6927('0x41')]('transcript-%d-%s.zip',_0x19db28[_0xac6927('0xe')]['id'],_0x46c9da),_0x5fa9a4=path['join'](_0x2cafe4,_0x28529b),_0x4de89e=[];_0x4de89e[_0xac6927('0x70')]({'model':db[_0xac6927('0x61')],'as':_0xac6927('0x61'),'raw':!![]});const _0x17e5bd=[{'model':db[_0xac6927('0x90')],'as':'Messages','attributes':['id',_0xac6927('0x3e'),_0xac6927('0x85')],'include':_0x4de89e}];return db[_0xac6927('0x7c')][_0xac6927('0x6b')]({'where':{'id':_0x19db28[_0xac6927('0xe')]['id']},'include':_0x17e5bd})['then'](handleEntityNotFound(_0x560e81,null))[_0xac6927('0x59')](function(_0x43612f){const _0x25fe46=_0xac6927;if(_0x43612f&&_0x43612f['Messages']){const _0x14d7bf=_0x43612f[_0x25fe46('0x57')]({'plain':!![]});fs[_0x25fe46('0x49')](_0x2b015d);for(let _0x1eb1f6=0x0;_0x1eb1f6<_0x14d7bf[_0x25fe46('0x33')][_0x25fe46('0x19')];_0x1eb1f6++){const _0x1d2e1a=_0x14d7bf[_0x25fe46('0x33')][_0x1eb1f6][_0x25fe46('0x61')];if(_0x1d2e1a){const _0x3007ac=path[_0x25fe46('0x3f')](_0x1f71ab,_0x1d2e1a[_0x25fe46('0x9e')]);fs[_0x25fe46('0x5f')](_0x3007ac)&&fs[_0x25fe46('0xac')](_0x3007ac)[_0x25fe46('0xb6')](fs[_0x25fe46('0x8b')](path[_0x25fe46('0x3f')](_0x2b015d,_0x1d2e1a[_0x25fe46('0x9e')])));}}return Promise['resolve']()[_0x25fe46('0x59')](function(){const _0x8d3074=_0x25fe46;return new Promise(function(_0x4a8f4e,_0x3cad69){zipdir(_0x2b015d,{'saveTo':_0x5fa9a4},function(_0xf1b9b8,_0x485343){if(_0xf1b9b8)return _0x3cad69(_0xf1b9b8);return _0x4a8f4e(_0x485343);});})['then'](function(){return new Promise(function(_0xad3efe,_0x28e839){rimraf(_0x2b015d,function(_0x2a80bc){if(_0x2a80bc)_0x28e839(_0x2a80bc);return _0xad3efe();});});})[_0x8d3074('0x59')](function(){const _0x45860b=_0x8d3074;return _0x560e81[_0x45860b('0x43')](_0x5fa9a4,_0x28529b,function(_0x5e539d){const _0xbc92d1=_0x45860b;_0x5e539d?console[_0xbc92d1('0x72')](_0xbc92d1('0x79'),_0x5e539d):fs[_0xbc92d1('0xb1')](_0x5fa9a4);});});});}else return _0x560e81[_0x25fe46('0x4')](0xc8);})[_0xac6927('0x10')](handleError(_0x560e81,null));}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.events.js b/server/api/faxInteraction/faxInteraction.events.js index b7a4d2f..53cc5f2 100644 --- a/server/api/faxInteraction/faxInteraction.events.js +++ b/server/api/faxInteraction/faxInteraction.events.js @@ -1 +1 @@ -const a199_0x1037=['setMaxListeners','events','save','remove','findAll','emit','Users','FaxInteraction','exports','setDataValue','length','map','addHook','unreadMessages','then','catch','FaxMessage','../../mysqldb'];(function(_0x40c10e,_0x103744){const _0x175693=function(_0x44e644){while(--_0x44e644){_0x40c10e['push'](_0x40c10e['shift']());}};_0x175693(++_0x103744);}(a199_0x1037,0xc8));const a199_0x1756=function(_0x40c10e,_0x103744){_0x40c10e=_0x40c10e-0x0;let _0x175693=a199_0x1037[_0x40c10e];return _0x175693;};const _0x12035e=a199_0x1756;'use strict';const EventEmitter=require(_0x12035e('0x11')),FaxInteraction=require(_0x12035e('0xf'))['db'][_0x12035e('0x5')],FaxMessage=require(_0x12035e('0xf'))['db'][_0x12035e('0xe')],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents[_0x12035e('0x10')](0x0);const events={'afterCreate':_0x12035e('0x0'),'afterUpdate':'update','afterDestroy':_0x12035e('0x1')};function emitEvent(_0x44e644){return function(_0x23e297){const _0x4c8e9a=a199_0x1756;_0x23e297['getUsers']({'attributes':['id'],'raw':!![]})[_0x4c8e9a('0xc')](function(_0xf0099a){const _0x303328=_0x4c8e9a;return _0x23e297[_0x303328('0x7')](_0x303328('0x4'),_0xf0099a[_0x303328('0x9')](function(_0x14fe3c){return{'id':_0x14fe3c['id']};})),FaxMessage[_0x303328('0x2')]({'where':{'FaxInteractionId':_0x23e297['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x4a3be2){const _0x307003=_0x4c8e9a;_0x23e297[_0x307003('0x7')](_0x307003('0xb'),_0x4a3be2[_0x307003('0x8')]),FaxInteractionEvents[_0x307003('0x3')](_0x44e644+':'+_0x23e297['id'],_0x23e297),FaxInteractionEvents[_0x307003('0x3')](_0x44e644,_0x23e297);})[_0x4c8e9a('0xd')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxInteraction[_0x12035e('0xa')](e,emitEvent(event));}}module[_0x12035e('0x6')]=FaxInteractionEvents; \ No newline at end of file +const a199_0x34bb=['then','Users','remove','FaxMessage','save','catch','events','unreadMessages','setMaxListeners','emit','setDataValue','FaxInteraction','../../mysqldb','update','findAll'];(function(_0x1045f6,_0x34bbeb){const _0x3097a2=function(_0xe4d559){while(--_0xe4d559){_0x1045f6['push'](_0x1045f6['shift']());}};_0x3097a2(++_0x34bbeb);}(a199_0x34bb,0x17b));const a199_0x3097=function(_0x1045f6,_0x34bbeb){_0x1045f6=_0x1045f6-0x0;let _0x3097a2=a199_0x34bb[_0x1045f6];return _0x3097a2;};const _0x3ddc2f=a199_0x3097;'use strict';const EventEmitter=require(_0x3ddc2f('0x2')),FaxInteraction=require(_0x3ddc2f('0x8'))['db'][_0x3ddc2f('0x7')],FaxMessage=require(_0x3ddc2f('0x8'))['db'][_0x3ddc2f('0xe')],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents[_0x3ddc2f('0x4')](0x0);const events={'afterCreate':_0x3ddc2f('0x0'),'afterUpdate':_0x3ddc2f('0x9'),'afterDestroy':_0x3ddc2f('0xd')};function emitEvent(_0xe4d559){return function(_0x146b62){const _0x2934cc=a199_0x3097;_0x146b62['getUsers']({'attributes':['id'],'raw':!![]})['then'](function(_0x2b8436){const _0x13a2f5=a199_0x3097;return _0x146b62[_0x13a2f5('0x6')](_0x13a2f5('0xc'),_0x2b8436['map'](function(_0x1c7e15){return{'id':_0x1c7e15['id']};})),FaxMessage[_0x13a2f5('0xa')]({'where':{'FaxInteractionId':_0x146b62['id'],'direction':'in','read':![]},'raw':!![]});})[_0x2934cc('0xb')](function(_0xf849fc){const _0x4e69b5=_0x2934cc;_0x146b62[_0x4e69b5('0x6')](_0x4e69b5('0x3'),_0xf849fc['length']),FaxInteractionEvents['emit'](_0xe4d559+':'+_0x146b62['id'],_0x146b62),FaxInteractionEvents[_0x4e69b5('0x5')](_0xe4d559,_0x146b62);})[_0x2934cc('0x1')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxInteraction['addHook'](e,emitEvent(event));}}module['exports']=FaxInteractionEvents; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.model.js b/server/api/faxInteraction/faxInteraction.model.js index f3cdb89..5cf47a7 100644 --- a/server/api/faxInteraction/faxInteraction.model.js +++ b/server/api/faxInteraction/faxInteraction.model.js @@ -1 +1 @@ -const a200_0x10d8=['./faxInteraction.attributes','exports','changed','moment','YYYY-MM-DD\x20HH:mm:ss','FaxInteraction','format','closed','fax_interactions'];(function(_0x5d4177,_0x10d8b9){const _0x472d92=function(_0x19f007){while(--_0x19f007){_0x5d4177['push'](_0x5d4177['shift']());}};_0x472d92(++_0x10d8b9);}(a200_0x10d8,0x13d));const a200_0x472d=function(_0x5d4177,_0x10d8b9){_0x5d4177=_0x5d4177-0x0;let _0x472d92=a200_0x10d8[_0x5d4177];return _0x472d92;};const _0x568224=a200_0x472d;'use strict';const moment=require(_0x568224('0x1')),attributes=require(_0x568224('0x7'));module[_0x568224('0x8')]=function(_0x19f007){const _0x1fca19=_0x568224,_0xc388e8=_0x19f007['define'](_0x1fca19('0x3'),attributes,{'tableName':_0x1fca19('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x389aa3){const _0x5b4f11=_0x1fca19;_0x389aa3[_0x5b4f11('0x0')](_0x5b4f11('0x5'))&&(_0x389aa3['closedAt']=moment()[_0x5b4f11('0x4')](_0x5b4f11('0x2')));}}});return _0xc388e8;}; \ No newline at end of file +const a200_0x682d=['changed','format','define','./faxInteraction.attributes','closed','FaxInteraction','exports','closedAt'];(function(_0x40262e,_0x682da){const _0x1942fc=function(_0xcb0912){while(--_0xcb0912){_0x40262e['push'](_0x40262e['shift']());}};_0x1942fc(++_0x682da);}(a200_0x682d,0x128));const a200_0x1942=function(_0x40262e,_0x682da){_0x40262e=_0x40262e-0x0;let _0x1942fc=a200_0x682d[_0x40262e];return _0x1942fc;};const _0x57bb7f=a200_0x1942;'use strict';const moment=require('moment'),attributes=require(_0x57bb7f('0x3'));module[_0x57bb7f('0x6')]=function(_0xcb0912){const _0x958c3c=_0x57bb7f,_0x54220c=_0xcb0912[_0x958c3c('0x2')](_0x958c3c('0x5'),attributes,{'tableName':'fax_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x380f91){const _0x27073e=_0x958c3c;_0x380f91[_0x27073e('0x0')](_0x27073e('0x4'))&&(_0x380f91[_0x27073e('0x7')]=moment()[_0x27073e('0x1')]('YYYY-MM-DD\x20HH:mm:ss'));}}});return _0x54220c;}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.rpc.js b/server/api/faxInteraction/faxInteraction.rpc.js index 1a7a256..3ce0d3f 100644 --- a/server/api/faxInteraction/faxInteraction.rpc.js +++ b/server/api/faxInteraction/faxInteraction.rpc.js @@ -1 +1 @@ -const a201_0xe7ef=['AddTagsToFaxInteraction','message','UpdateFaxInteraction','limit','../../config/logger','info','register','body','omit','error','options','ids','stringify','catch','../../rediscache','findOne','../../mysqldb','attributes','where','AddTags','addTags','then','debug'];(function(_0x1ab501,_0xe7ef93){const _0x3e3c75=function(_0x48c1a6){while(--_0x48c1a6){_0x1ab501['push'](_0x1ab501['shift']());}};_0x3e3c75(++_0xe7ef93);}(a201_0xe7ef,0x86));const a201_0x3e3c=function(_0x1ab501,_0xe7ef93){_0x1ab501=_0x1ab501-0x0;let _0x3e3c75=a201_0xe7ef[_0x1ab501];return _0x3e3c75;};const _0x137ffd=a201_0x3e3c;'use strict';const _=require('lodash'),db=require(_0x137ffd('0x14'))['db'],logger=require(_0x137ffd('0x8'))('rpc'),{getSocket}=require(_0x137ffd('0x12')),socket=getSocket();require('./faxInteraction.socket')[_0x137ffd('0xa')](socket),exports[_0x137ffd('0x6')]=function(_0x48c1a6){const _0x5e54e9=this;return new Promise(function(_0x34c9dc,_0x329b14){const _0x46f5dd=a201_0x3e3c;return db['FaxInteraction']['update'](_0x48c1a6[_0x46f5dd('0xb')],{'raw':_0x48c1a6[_0x46f5dd('0xe')]?_0x48c1a6[_0x46f5dd('0xe')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x48c1a6[_0x46f5dd('0xe')]?_0x48c1a6[_0x46f5dd('0xe')][_0x46f5dd('0x16')]||null:null,'attributes':_0x48c1a6[_0x46f5dd('0xe')]?_0x48c1a6[_0x46f5dd('0xe')][_0x46f5dd('0x15')]||null:null,'limit':_0x48c1a6[_0x46f5dd('0xe')]?_0x48c1a6[_0x46f5dd('0xe')][_0x46f5dd('0x7')]||null:null})[_0x46f5dd('0x2')](function(_0x4ad2b0){const _0x1e2adc=_0x46f5dd;logger[_0x1e2adc('0x9')](_0x1e2adc('0x6'),_0x48c1a6),logger[_0x1e2adc('0x3')](_0x1e2adc('0x6'),_0x48c1a6,JSON[_0x1e2adc('0x10')](_0x4ad2b0)),_0x34c9dc(_0x4ad2b0);})[_0x46f5dd('0x11')](function(_0x150f4b){const _0x113620=_0x46f5dd;logger[_0x113620('0xd')](_0x113620('0x6'),_0x150f4b[_0x113620('0x5')],_0x48c1a6),_0x329b14(_0x5e54e9[_0x113620('0xd')](0x1f4,_0x150f4b[_0x113620('0x5')]));});});},exports[_0x137ffd('0x4')]=function(_0x297374){const _0x12f2a2=this;return new Promise(function(_0x4d873e,_0x19c760){const _0x13feb3=a201_0x3e3c;return db['FaxInteraction'][_0x13feb3('0x13')]({'where':_0x297374[_0x13feb3('0xe')]?_0x297374['options'][_0x13feb3('0x16')]||null:null})['then'](function(_0x10c648){const _0x521f7a=_0x13feb3;if(_0x10c648)return _0x10c648[_0x521f7a('0x1')](_0x297374[_0x521f7a('0xb')][_0x521f7a('0xf')],{'through':_[_0x521f7a('0xc')](_0x297374['body'],[_0x521f7a('0xf'),'id'])});})[_0x13feb3('0x2')](function([_0x14cc48]){const _0x10df5c=_0x13feb3;logger[_0x10df5c('0x9')](_0x10df5c('0x0'),_0x297374),logger['debug'](_0x10df5c('0x0'),_0x297374,JSON[_0x10df5c('0x10')](_0x14cc48)),_0x4d873e(_0x14cc48);})['catch'](function(_0x31fc82){const _0x5af0d3=_0x13feb3;logger['error'](_0x5af0d3('0x0'),_0x31fc82[_0x5af0d3('0x5')],_0x297374),_0x19c760(_0x12f2a2[_0x5af0d3('0xd')](0x1f4,_0x31fc82[_0x5af0d3('0x5')]));});});}; \ No newline at end of file +const a201_0x510c=['info','message','debug','attributes','AddTags','UpdateFaxInteraction','FaxInteraction','omit','options','../../mysqldb','where','addTags','../../rediscache','stringify','body','limit','rpc','catch','../../config/logger','register','then','ids','error','./faxInteraction.socket'];(function(_0x2607fd,_0x510cb6){const _0x4a820f=function(_0x174c67){while(--_0x174c67){_0x2607fd['push'](_0x2607fd['shift']());}};_0x4a820f(++_0x510cb6);}(a201_0x510c,0xb4));const a201_0x4a82=function(_0x2607fd,_0x510cb6){_0x2607fd=_0x2607fd-0x0;let _0x4a820f=a201_0x510c[_0x2607fd];return _0x4a820f;};const _0x31f4cd=a201_0x4a82;'use strict';const _=require('lodash'),db=require(_0x31f4cd('0x15'))['db'],logger=require(_0x31f4cd('0x6'))(_0x31f4cd('0x4')),{getSocket}=require(_0x31f4cd('0x0')),socket=getSocket();require(_0x31f4cd('0xb'))[_0x31f4cd('0x7')](socket),exports[_0x31f4cd('0x11')]=function(_0x174c67){const _0x307f3e=this;return new Promise(function(_0x16338e,_0x2e2e6b){const _0x4a0e38=a201_0x4a82;return db[_0x4a0e38('0x12')]['update'](_0x174c67['body'],{'raw':_0x174c67[_0x4a0e38('0x14')]?_0x174c67[_0x4a0e38('0x14')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x174c67[_0x4a0e38('0x14')]?_0x174c67[_0x4a0e38('0x14')][_0x4a0e38('0x16')]||null:null,'attributes':_0x174c67[_0x4a0e38('0x14')]?_0x174c67['options'][_0x4a0e38('0xf')]||null:null,'limit':_0x174c67[_0x4a0e38('0x14')]?_0x174c67[_0x4a0e38('0x14')][_0x4a0e38('0x3')]||null:null})['then'](function(_0x1162c9){const _0x526778=_0x4a0e38;logger[_0x526778('0xc')](_0x526778('0x11'),_0x174c67),logger[_0x526778('0xe')](_0x526778('0x11'),_0x174c67,JSON['stringify'](_0x1162c9)),_0x16338e(_0x1162c9);})[_0x4a0e38('0x5')](function(_0x72558e){const _0x476d97=_0x4a0e38;logger['error']('UpdateFaxInteraction',_0x72558e[_0x476d97('0xd')],_0x174c67),_0x2e2e6b(_0x307f3e[_0x476d97('0xa')](0x1f4,_0x72558e[_0x476d97('0xd')]));});});},exports['AddTagsToFaxInteraction']=function(_0x5d32c6){const _0x247140=this;return new Promise(function(_0x3e064d,_0x2548e5){const _0x1eeb2e=a201_0x4a82;return db[_0x1eeb2e('0x12')]['findOne']({'where':_0x5d32c6[_0x1eeb2e('0x14')]?_0x5d32c6[_0x1eeb2e('0x14')][_0x1eeb2e('0x16')]||null:null})[_0x1eeb2e('0x8')](function(_0x453c07){const _0x5440e1=_0x1eeb2e;if(_0x453c07)return _0x453c07[_0x5440e1('0x17')](_0x5d32c6['body'][_0x5440e1('0x9')],{'through':_[_0x5440e1('0x13')](_0x5d32c6[_0x5440e1('0x2')],[_0x5440e1('0x9'),'id'])});})[_0x1eeb2e('0x8')](function([_0x3a02c3]){const _0xca6fc2=_0x1eeb2e;logger[_0xca6fc2('0xc')](_0xca6fc2('0x10'),_0x5d32c6),logger['debug'](_0xca6fc2('0x10'),_0x5d32c6,JSON[_0xca6fc2('0x1')](_0x3a02c3)),_0x3e064d(_0x3a02c3);})[_0x1eeb2e('0x5')](function(_0x441fea){const _0x57974c=_0x1eeb2e;logger[_0x57974c('0xa')](_0x57974c('0x10'),_0x441fea[_0x57974c('0xd')],_0x5d32c6),_0x2548e5(_0x247140[_0x57974c('0xa')](0x1f4,_0x441fea[_0x57974c('0xd')]));});});}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.socket.js b/server/api/faxInteraction/faxInteraction.socket.js index e0b313f..e37eaf4 100644 --- a/server/api/faxInteraction/faxInteraction.socket.js +++ b/server/api/faxInteraction/faxInteraction.socket.js @@ -1 +1 @@ -const a202_0x3b2a=['remove','register','update','./faxInteraction.events','emit','save','faxInteraction:'];(function(_0x2b114e,_0x3b2a8f){const _0x12e185=function(_0x459c6d){while(--_0x459c6d){_0x2b114e['push'](_0x2b114e['shift']());}};_0x12e185(++_0x3b2a8f);}(a202_0x3b2a,0x17f));const a202_0x12e1=function(_0x2b114e,_0x3b2a8f){_0x2b114e=_0x2b114e-0x0;let _0x12e185=a202_0x3b2a[_0x2b114e];return _0x12e185;};const _0x4c4bc3=a202_0x12e1;'use strict';const FaxInteractionEvents=require(_0x4c4bc3('0x5')),events=[_0x4c4bc3('0x0'),_0x4c4bc3('0x2'),_0x4c4bc3('0x4')];function createListener(_0x459c6d,_0x3aebce){return function(_0x4c012f){const _0x180ccf=a202_0x12e1;_0x3aebce[_0x180ccf('0x6')](_0x459c6d,_0x4c012f);};}exports[_0x4c4bc3('0x3')]=function(_0x4490f7){const _0x401834=_0x4c4bc3;for(let _0x57950d=0x0,_0x320a26=events['length'];_0x57950d<_0x320a26;_0x57950d++){const _0x4cbcd3=events[_0x57950d],_0xf16f44=createListener(_0x401834('0x1')+_0x4cbcd3,_0x4490f7);FaxInteractionEvents['on'](_0x4cbcd3,_0xf16f44);}}; \ No newline at end of file +const a202_0x630d=['faxInteraction:','./faxInteraction.events','register','save','emit','update','remove','length'];(function(_0x33cc63,_0x630da0){const _0x22ac36=function(_0x5c70fb){while(--_0x5c70fb){_0x33cc63['push'](_0x33cc63['shift']());}};_0x22ac36(++_0x630da0);}(a202_0x630d,0x8e));const a202_0x22ac=function(_0x33cc63,_0x630da0){_0x33cc63=_0x33cc63-0x0;let _0x22ac36=a202_0x630d[_0x33cc63];return _0x22ac36;};const _0x5dfd9a=a202_0x22ac;'use strict';const FaxInteractionEvents=require(_0x5dfd9a('0x3')),events=[_0x5dfd9a('0x5'),_0x5dfd9a('0x0'),_0x5dfd9a('0x7')];function createListener(_0x5c70fb,_0x387bce){return function(_0x17a554){const _0x27bf67=a202_0x22ac;_0x387bce[_0x27bf67('0x6')](_0x5c70fb,_0x17a554);};}exports[_0x5dfd9a('0x4')]=function(_0x25966f){const _0x53819d=_0x5dfd9a;for(let _0x4c392c=0x0,_0x5d98b4=events[_0x53819d('0x1')];_0x4c392c<_0x5d98b4;_0x4c392c++){const _0x2ca906=events[_0x4c392c],_0x41e313=createListener(_0x53819d('0x2')+_0x2ca906,_0x25966f);FaxInteractionEvents['on'](_0x2ca906,_0x41e313);}}; \ No newline at end of file diff --git a/server/api/faxInteraction/index.js b/server/api/faxInteraction/index.js index 0b2d3b8..8c971ad 100644 --- a/server/api/faxInteraction/index.js +++ b/server/api/faxInteraction/index.js @@ -1 +1 @@ -const a203_0xbb2d=['index','isAuthenticated','getMessages','fax','express','/:id/tags','post','create','addMessage','delete','faxinteraction:addtags','download','exports','addTags','get','/:id','removeTags','../../components/interaction/service','Router','/:id/messages','tracked','destroy'];(function(_0x2c9836,_0xbb2d5d){const _0x52714b=function(_0x1dffac){while(--_0x1dffac){_0x2c9836['push'](_0x2c9836['shift']());}};_0x52714b(++_0xbb2d5d);}(a203_0xbb2d,0xf3));const a203_0x5271=function(_0x2c9836,_0xbb2d5d){_0x2c9836=_0x2c9836-0x0;let _0x52714b=a203_0xbb2d[_0x2c9836];return _0x52714b;};const _0xb9d8be=a203_0x5271;'use strict';const express=require(_0xb9d8be('0x3')),router=express[_0xb9d8be('0x11')](),auth=require('../../components/auth/service'),interaction=require(_0xb9d8be('0x10')),controller=require('./faxInteraction.controller');router[_0xb9d8be('0xd')]('/',auth['isAuthenticated'](),controller[_0xb9d8be('0x15')]),router[_0xb9d8be('0xd')]('/describe',auth[_0xb9d8be('0x0')](),controller['describe']),router[_0xb9d8be('0xd')](_0xb9d8be('0xe'),auth[_0xb9d8be('0x0')](),controller['show']),router[_0xb9d8be('0xd')](_0xb9d8be('0x12'),auth['isAuthenticated'](),controller[_0xb9d8be('0x1')]),router[_0xb9d8be('0xd')]('/:id/download',auth['isAuthenticated'](),controller[_0xb9d8be('0xa')]),router['post']('/',auth[_0xb9d8be('0x0')](),controller[_0xb9d8be('0x6')]),router[_0xb9d8be('0x5')]('/:id/messages',auth[_0xb9d8be('0x0')](),controller[_0xb9d8be('0x7')]),router['post'](_0xb9d8be('0x4'),auth[_0xb9d8be('0x0')](),interaction['tracked'](_0xb9d8be('0x2'),_0xb9d8be('0x9')),controller[_0xb9d8be('0xc')]),router['put'](_0xb9d8be('0xe'),auth[_0xb9d8be('0x0')](),interaction[_0xb9d8be('0x13')](_0xb9d8be('0x2'),'faxinteraction:update'),controller['update']),router[_0xb9d8be('0x8')]('/:id',auth[_0xb9d8be('0x0')](),interaction['tracked']('fax','faxinteraction:destroy'),controller[_0xb9d8be('0x14')]),router[_0xb9d8be('0x8')](_0xb9d8be('0x4'),auth['isAuthenticated'](),controller[_0xb9d8be('0xf')]),module[_0xb9d8be('0xb')]=router; \ No newline at end of file +const a203_0x24c2=['/:id','/describe','../../components/interaction/service','create','fax','delete','isAuthenticated','faxinteraction:addtags','faxinteraction:update','addMessage','/:id/tags','download','faxinteraction:destroy','removeTags','post','tracked','./faxInteraction.controller','index','update','put','Router','/:id/messages','describe','show','get','/:id/download','destroy'];(function(_0x42f44c,_0x24c258){const _0xddbd8e=function(_0x4e8ba6){while(--_0x4e8ba6){_0x42f44c['push'](_0x42f44c['shift']());}};_0xddbd8e(++_0x24c258);}(a203_0x24c2,0x101));const a203_0xddbd=function(_0x42f44c,_0x24c258){_0x42f44c=_0x42f44c-0x0;let _0xddbd8e=a203_0x24c2[_0x42f44c];return _0xddbd8e;};const _0x398748=a203_0xddbd;'use strict';const express=require('express'),router=express[_0x398748('0x6')](),auth=require('../../components/auth/service'),interaction=require(_0x398748('0xf')),controller=require(_0x398748('0x2'));router['get']('/',auth[_0x398748('0x13')](),controller[_0x398748('0x3')]),router[_0x398748('0xa')](_0x398748('0xe'),auth[_0x398748('0x13')](),controller[_0x398748('0x8')]),router['get'](_0x398748('0xd'),auth[_0x398748('0x13')](),controller[_0x398748('0x9')]),router['get']('/:id/messages',auth['isAuthenticated'](),controller['getMessages']),router[_0x398748('0xa')](_0x398748('0xb'),auth['isAuthenticated'](),controller[_0x398748('0x18')]),router[_0x398748('0x0')]('/',auth[_0x398748('0x13')](),controller[_0x398748('0x10')]),router['post'](_0x398748('0x7'),auth['isAuthenticated'](),controller[_0x398748('0x16')]),router[_0x398748('0x0')](_0x398748('0x17'),auth[_0x398748('0x13')](),interaction[_0x398748('0x1')](_0x398748('0x11'),_0x398748('0x14')),controller['addTags']),router[_0x398748('0x5')](_0x398748('0xd'),auth[_0x398748('0x13')](),interaction[_0x398748('0x1')](_0x398748('0x11'),_0x398748('0x15')),controller[_0x398748('0x4')]),router[_0x398748('0x12')](_0x398748('0xd'),auth[_0x398748('0x13')](),interaction['tracked'](_0x398748('0x11'),_0x398748('0x19')),controller[_0x398748('0xc')]),router[_0x398748('0x12')](_0x398748('0x17'),auth[_0x398748('0x13')](),controller[_0x398748('0x1a')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.attributes.js b/server/api/faxMessage/faxMessage.attributes.js index ee2adc4..2cb74be 100644 --- a/server/api/faxMessage/faxMessage.attributes.js +++ b/server/api/faxMessage/faxMessage.attributes.js @@ -1 +1 @@ -const a204_0x15c7=['out','sequelize','ENUM','TEXT','BOOLEAN'];(function(_0x59a003,_0x15c74a){const _0x2f1748=function(_0x38d367){while(--_0x38d367){_0x59a003['push'](_0x59a003['shift']());}};_0x2f1748(++_0x15c74a);}(a204_0x15c7,0x12f));const a204_0x2f17=function(_0x59a003,_0x15c74a){_0x59a003=_0x59a003-0x0;let _0x2f1748=a204_0x15c7[_0x59a003];return _0x2f1748;};const _0x1dc4b2=a204_0x2f17;'use strict';const Sequelize=require(_0x1dc4b2('0x3'));module['exports']={'body':{'type':Sequelize[_0x1dc4b2('0x0')]('medium'),'allowNull':![]},'read':{'type':Sequelize[_0x1dc4b2('0x1')],'defaultValue':![]},'direction':{'type':Sequelize[_0x1dc4b2('0x4')]('in',_0x1dc4b2('0x2')),'defaultValue':_0x1dc4b2('0x2'),'allowNull':![]},'failMessage':{'type':Sequelize['TEXT'],'defaultValue':null},'readAt':{'type':Sequelize['DATE']}}; \ No newline at end of file +const a204_0x9df3=['medium','DATE','out','ENUM','exports','sequelize','TEXT','BOOLEAN'];(function(_0x3542a9,_0x9df392){const _0x413622=function(_0x3681f8){while(--_0x3681f8){_0x3542a9['push'](_0x3542a9['shift']());}};_0x413622(++_0x9df392);}(a204_0x9df3,0x1e5));const a204_0x4136=function(_0x3542a9,_0x9df392){_0x3542a9=_0x3542a9-0x0;let _0x413622=a204_0x9df3[_0x3542a9];return _0x413622;};const _0x1ca8fc=a204_0x4136;'use strict';const Sequelize=require(_0x1ca8fc('0x0'));module[_0x1ca8fc('0x7')]={'body':{'type':Sequelize[_0x1ca8fc('0x1')](_0x1ca8fc('0x3')),'allowNull':![]},'read':{'type':Sequelize[_0x1ca8fc('0x2')],'defaultValue':![]},'direction':{'type':Sequelize[_0x1ca8fc('0x6')]('in',_0x1ca8fc('0x5')),'defaultValue':_0x1ca8fc('0x5'),'allowNull':![]},'failMessage':{'type':Sequelize[_0x1ca8fc('0x1')],'defaultValue':null},'readAt':{'type':Sequelize[_0x1ca8fc('0x4')]}}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.controller.js b/server/api/faxMessage/faxMessage.controller.js index 6ee10eb..76c0b47 100644 --- a/server/api/faxMessage/faxMessage.controller.js +++ b/server/api/faxMessage/faxMessage.controller.js @@ -1 +1 @@ -const a205_0x3e2d=['order','count','then','server','format','fieldName','interface','event','EventManager','sort','AttachmentId','body','SendFax','../../components/parsers/qs','fax-interactions','fax','merge','keys','rejectMessage','lodash','client','util','FaxMessage','error','ContactId','debug','include','VIRTUAL','create','[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','limit','describe','get','options','../../mysqldb','channel','user','manual','SIP/%s','./faxMessage.socket','catch','send','type','attributes','moment','CmContact','includeAll','model','rawAttributes','map','name','FaxMessage,\x20%s,\x20%s','Attachment','pick','AcceptMessage','params','json','root','status','index','stringify','set','rows','request','acceptmessage','Content-Range','update','readAt','role','where','sequelize','jayson/promise','query','destroy','path','fields','like','intersection','length','FaxInteractionId','result','RejectMessage','info','filter','attachments','interaction','[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','code','FaxInteraction','isNil','findAll','request\x20sent','findOne','filters','join','files','reject','offset','download','http','YYYY-MM-DD\x20HH:mm:ss','FaxMessage,\x20%s,\x20%s,\x20%s','UserId','acceptMessage','/var/opt/motion2/server/files/attachments/%s','show','basename','null','message'];(function(_0x506aef,_0x3e2d8b){const _0x46ab33=function(_0x2de8bd){while(--_0x2de8bd){_0x506aef['push'](_0x506aef['shift']());}};_0x46ab33(++_0x3e2d8b);}(a205_0x3e2d,0x96));const a205_0x46ab=function(_0x506aef,_0x3e2d8b){_0x506aef=_0x506aef-0x0;let _0x46ab33=a205_0x3e2d[_0x506aef];return _0x46ab33;};const _0x4f661b=a205_0x46ab;'use strict';const moment=require(_0x4f661b('0x3')),util=require(_0x4f661b('0x59')),path=require(_0x4f661b('0x21')),_=require(_0x4f661b('0x57')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x4f661b('0x51')),logger=require('../../config/logger')('api'),config=require('../../config/environment'),interaction_log=require('../../config/logger')(_0x4f661b('0x52')),db=require(_0x4f661b('0x66'))['db'],{Op}=require(_0x4f661b('0x1d'));require(_0x4f661b('0x6b'))['register'](socket);const jayson=require(_0x4f661b('0x1e')),client=jayson[_0x4f661b('0x58')][_0x4f661b('0x3a')]({'port':0x232c}),client9002=jayson['client'][_0x4f661b('0x3a')]({'port':0x232a});function respondWithRpcPromise(_0x2de8bd,_0x379f26,_0x2283b1,_0x4c555c){return new Promise(function(_0x349a60,_0x18dcbc){const _0x282c74=a205_0x46ab,_0x92d744=_0x4c555c||client;return _0x92d744[_0x282c74('0x16')](_0x2de8bd,_0x2283b1)[_0x282c74('0x46')](function(_0x308ba3){const _0x37977c=_0x282c74;logger[_0x37977c('0x29')](_0x37977c('0xa'),_0x379f26,'request\x20sent'),logger[_0x37977c('0x5d')](_0x37977c('0x3c'),_0x379f26,_0x37977c('0x32'),JSON[_0x37977c('0x13')](_0x308ba3));if(_0x308ba3[_0x37977c('0x5b')]){if(_0x308ba3[_0x37977c('0x5b')][_0x37977c('0x2e')]===0x1f4)return logger[_0x37977c('0x5b')]('FaxMessage,\x20%s,\x20%s',_0x379f26,_0x308ba3[_0x37977c('0x5b')]['message']),_0x18dcbc(_0x308ba3[_0x37977c('0x5b')][_0x37977c('0x43')]);return logger[_0x37977c('0x5b')](_0x37977c('0xa'),_0x379f26,_0x308ba3[_0x37977c('0x5b')][_0x37977c('0x43')]),_0x349a60(_0x308ba3[_0x37977c('0x5b')][_0x37977c('0x43')]);}else logger[_0x37977c('0x29')](_0x37977c('0xa'),_0x379f26,_0x37977c('0x32')),_0x349a60(_0x308ba3[_0x37977c('0x27')][_0x37977c('0x43')]);})[_0x282c74('0x6c')](function(_0x354634){const _0x407c4e=_0x282c74;logger[_0x407c4e('0x5b')](_0x407c4e('0xa'),_0x379f26,_0x354634),_0x18dcbc(_0x354634);});});}function respondWithResult(_0x29eb3a,_0x4ce5f7){return _0x4ce5f7=_0x4ce5f7||0xc8,function(_0x5647e4){const _0x574628=a205_0x46ab;if(_0x5647e4)return _0x29eb3a[_0x574628('0x11')](_0x4ce5f7)['json'](_0x5647e4);};}function respondWithFilteredResult(_0x2d7c17,_0x5b77f4){return function(_0x1e2ab6){const _0x33f613=a205_0x46ab;if(_0x1e2ab6){const _0x59b3e9=_0x1e2ab6[_0x33f613('0x45')],_0x4bb4e9=_0x5b77f4[_0x33f613('0x38')];let _0x46d256=_0x5b77f4[_0x33f613('0x38')]+_0x5b77f4[_0x33f613('0x62')],_0x37e10f;return _0x46d256>=_0x59b3e9?(_0x46d256=_0x59b3e9,_0x37e10f=0xc8):_0x37e10f=0xce,_0x2d7c17['status'](_0x37e10f),_0x2d7c17[_0x33f613('0x14')](_0x33f613('0x18'),_0x4bb4e9+'-'+_0x46d256+'/'+_0x59b3e9)[_0x33f613('0xf')](_0x1e2ab6);}return null;};}function saveUpdates(_0x33a587){return function(_0x3f394c){const _0x5de595=a205_0x46ab;if(_0x3f394c)return _0x3f394c['update'](_0x33a587)[_0x5de595('0x46')](function(_0x3fb8d9){return _0x3fb8d9;});return null;};}function removeEntity(_0x322e83){return function(_0x2d51a4){const _0x40b9bb=a205_0x46ab;if(_0x2d51a4)return _0x2d51a4[_0x40b9bb('0x20')]()[_0x40b9bb('0x46')](function(){const _0x5a492a=_0x40b9bb;_0x322e83[_0x5a492a('0x11')](0xcc)['end']();});};}function handleEntityNotFound(_0x120646){return function(_0x1bf2ba){return!_0x1bf2ba&&_0x120646['sendStatus'](0x194),_0x1bf2ba;};}function handleError(_0x53d1c1,_0x46200b){return _0x46200b=_0x46200b||0x1f4,function(_0x5bc7c2){const _0x57b642=a205_0x46ab;logger[_0x57b642('0x5b')](_0x5bc7c2['stack']),_0x5bc7c2[_0x57b642('0x9')]&&delete _0x5bc7c2[_0x57b642('0x9')],_0x53d1c1[_0x57b642('0x11')](_0x46200b)[_0x57b642('0x0')](_0x5bc7c2);};}exports[_0x4f661b('0x12')]=function(_0x4d1904,_0xee29e6){const _0xf271e4=_0x4f661b;let _0x27c02c={};const _0x5ae869={},_0x3b27c2={'count':0x0,'rows':[]},_0x2f104f=_[_0xf271e4('0x8')](db[_0xf271e4('0x5a')]['rawAttributes'],function(_0x36786e){const _0x57c784=_0xf271e4;return{'name':_0x36786e[_0x57c784('0x49')],'type':_0x36786e[_0x57c784('0x1')]['key']};});_0x5ae869[_0xf271e4('0x6')]=_[_0xf271e4('0x8')](_0x2f104f,_0xf271e4('0x9')),_0x5ae869[_0xf271e4('0x1f')]=_[_0xf271e4('0x55')](_0x4d1904['query']),_0x5ae869[_0xf271e4('0x34')]=_[_0xf271e4('0x24')](_0x5ae869[_0xf271e4('0x6')],_0x5ae869[_0xf271e4('0x1f')]),_0x27c02c[_0xf271e4('0x2')]=_[_0xf271e4('0x24')](_0x5ae869[_0xf271e4('0x6')],qs['fields'](_0x4d1904['query'][_0xf271e4('0x22')])),_0x27c02c[_0xf271e4('0x2')]=_0x27c02c[_0xf271e4('0x2')]['length']?_0x27c02c[_0xf271e4('0x2')]:_0x5ae869[_0xf271e4('0x6')];typeof _0x4d1904[_0xf271e4('0x1f')]['nolimit']==='undefined'&&(_0x27c02c[_0xf271e4('0x62')]=qs[_0xf271e4('0x62')](_0x4d1904[_0xf271e4('0x1f')]['limit']),_0x27c02c[_0xf271e4('0x38')]=qs[_0xf271e4('0x38')](_0x4d1904[_0xf271e4('0x1f')][_0xf271e4('0x38')]));_0x27c02c[_0xf271e4('0x44')]=qs[_0xf271e4('0x4d')](_0x4d1904[_0xf271e4('0x1f')][_0xf271e4('0x4d')]),_0x27c02c[_0xf271e4('0x1c')]=qs[_0xf271e4('0x34')](_[_0xf271e4('0xc')](_0x4d1904[_0xf271e4('0x1f')],_0x5ae869[_0xf271e4('0x34')]),_0x2f104f);_0x4d1904[_0xf271e4('0x1f')][_0xf271e4('0x2a')]&&(_0x27c02c[_0xf271e4('0x1c')]=_['merge'](_0x27c02c[_0xf271e4('0x1c')],{[Op['or']]:_['map'](_0x2f104f,function(_0x2d35f4){const _0x120eb2=_0xf271e4;if(_0x2d35f4[_0x120eb2('0x1')]!==_0x120eb2('0x5f')){const _0x10b59d={};return _0x10b59d[_0x2d35f4['name']]={[Op[_0x120eb2('0x23')]]:'%'+_0x4d1904['query'][_0x120eb2('0x2a')]+'%'},_0x10b59d;}})}));_0x27c02c=_[_0xf271e4('0x54')]({},_0x27c02c,_0x4d1904[_0xf271e4('0x65')]);const _0x1a8105={'where':_0x27c02c[_0xf271e4('0x1c')]};return db[_0xf271e4('0x5a')][_0xf271e4('0x45')](_0x1a8105)[_0xf271e4('0x46')](function(_0x7780e9){const _0x2a9047=_0xf271e4;return _0x3b27c2[_0x2a9047('0x45')]=_0x7780e9,_0x4d1904[_0x2a9047('0x1f')][_0x2a9047('0x5')]&&(_0x27c02c[_0x2a9047('0x5e')]=[{'all':!![]}]),db[_0x2a9047('0x5a')][_0x2a9047('0x31')](_0x27c02c);})[_0xf271e4('0x46')](function(_0x20233b){const _0xd3b648=_0xf271e4;return _0x3b27c2[_0xd3b648('0x15')]=_0x20233b,_0x3b27c2;})[_0xf271e4('0x46')](respondWithFilteredResult(_0xee29e6,_0x27c02c))[_0xf271e4('0x6c')](handleError(_0xee29e6,null));},exports[_0x4f661b('0x40')]=function(_0x55affa,_0x3f1d8f){const _0x4b7093=_0x4f661b;let _0x422e46={'raw':!![],'where':{'id':_0x55affa[_0x4b7093('0xe')]['id']}};const _0x1b887b={};return _0x1b887b[_0x4b7093('0x6')]=_[_0x4b7093('0x55')](db[_0x4b7093('0x5a')][_0x4b7093('0x7')]),_0x1b887b[_0x4b7093('0x1f')]=_[_0x4b7093('0x55')](_0x55affa[_0x4b7093('0x1f')]),_0x1b887b[_0x4b7093('0x34')]=_[_0x4b7093('0x24')](_0x1b887b[_0x4b7093('0x6')],_0x1b887b[_0x4b7093('0x1f')]),_0x422e46[_0x4b7093('0x2')]=_[_0x4b7093('0x24')](_0x1b887b['model'],qs[_0x4b7093('0x22')](_0x55affa[_0x4b7093('0x1f')][_0x4b7093('0x22')])),_0x422e46[_0x4b7093('0x2')]=_0x422e46[_0x4b7093('0x2')][_0x4b7093('0x25')]?_0x422e46[_0x4b7093('0x2')]:_0x1b887b[_0x4b7093('0x6')],_0x55affa[_0x4b7093('0x1f')][_0x4b7093('0x5')]&&(_0x422e46[_0x4b7093('0x5e')]=[{'all':!![]}]),_0x422e46=_[_0x4b7093('0x54')]({},_0x422e46,_0x55affa['options']),db[_0x4b7093('0x5a')][_0x4b7093('0x33')](_0x422e46)[_0x4b7093('0x46')](handleEntityNotFound(_0x3f1d8f,null))['then'](respondWithResult(_0x3f1d8f,null))[_0x4b7093('0x6c')](handleError(_0x3f1d8f,null));},exports[_0x4f661b('0x19')]=function(_0x2da80b,_0x390714){const _0x55626d=_0x4f661b;return _0x2da80b[_0x55626d('0x4f')]['id']&&delete _0x2da80b['body']['id'],db['FaxMessage'][_0x55626d('0x33')]({'where':{'id':_0x2da80b[_0x55626d('0xe')]['id']}})[_0x55626d('0x46')](handleEntityNotFound(_0x390714,null))[_0x55626d('0x46')](saveUpdates(_0x2da80b['body'],null))['then'](respondWithResult(_0x390714,null))[_0x55626d('0x6c')](handleError(_0x390714,null));},exports['destroy']=function(_0x351e09,_0x1ea316){const _0x433b8a=_0x4f661b;return db[_0x433b8a('0x5a')][_0x433b8a('0x33')]({'where':{'id':_0x351e09[_0x433b8a('0xe')]['id']}})['then'](handleEntityNotFound(_0x1ea316,null))[_0x433b8a('0x46')](removeEntity(_0x1ea316,null))[_0x433b8a('0x6c')](handleError(_0x1ea316,null));},exports[_0x4f661b('0x63')]=function(_0x1a57d0,_0xa98e75){const _0x45b860=_0x4f661b;return db[_0x45b860('0x5a')][_0x45b860('0x63')]()[_0x45b860('0x46')](respondWithResult(_0xa98e75,null))[_0x45b860('0x6c')](handleError(_0xa98e75,null));},exports['accept']=function(_0x159b75,_0x15783e){const _0x3b0c5b=_0x4f661b,_0x2dff96={'channel':_0x3b0c5b('0x53')};return _0x159b75[_0x3b0c5b('0x4f')]['id']&&delete _0x159b75[_0x3b0c5b('0x4f')]['id'],_0x159b75[_0x3b0c5b('0x4f')]['read']=!![],_0x159b75['body'][_0x3b0c5b('0x1a')]=moment()[_0x3b0c5b('0x48')](_0x3b0c5b('0x3b')),_0x159b75[_0x3b0c5b('0x4f')]['UserId']=_0x159b75[_0x3b0c5b('0x4f')][_0x3b0c5b('0x3d')]||_0x159b75[_0x3b0c5b('0x68')]['id'],db[_0x3b0c5b('0x5a')][_0x3b0c5b('0x33')]({'where':{'id':_0x159b75[_0x3b0c5b('0xe')]['id'],'UserId':null},'include':[{'model':db[_0x3b0c5b('0x4')],'as':'Contact'}]})['then'](handleEntityNotFound(_0x15783e,null))[_0x3b0c5b('0x46')](saveUpdates(_0x159b75[_0x3b0c5b('0x4f')],null))[_0x3b0c5b('0x46')](function(_0x55c7ef){const _0x6c1867=_0x3b0c5b;if(_0x55c7ef)return _0x2dff96[_0x6c1867('0x43')]=_0x55c7ef[_0x6c1867('0x64')]({'plain':!![]}),db[_0x6c1867('0x2f')][_0x6c1867('0x33')]({'where':{'id':_0x55c7ef[_0x6c1867('0x26')]}});return null;})[_0x3b0c5b('0x46')](handleEntityNotFound(_0x15783e,null))[_0x3b0c5b('0x46')](function(_0x1bb726){const _0x138199=_0x3b0c5b;if(_0x1bb726)return _0x1bb726['update']({'UserId':_0x159b75[_0x138199('0x4f')]['UserId'],'read1stAt':_[_0x138199('0x30')](_0x1bb726['read1stAt'])?moment()['format'](_0x138199('0x3b')):undefined});return null;})[_0x3b0c5b('0x46')](function(_0x1be3f4){const _0x4111d7=_0x3b0c5b;if(_0x1be3f4)return _0x2dff96[_0x4111d7('0x2c')]=_0x1be3f4[_0x4111d7('0x64')]({'plain':!![]}),interaction_log[_0x4111d7('0x29')](_0x4111d7('0x2d'),_0x159b75[_0x4111d7('0x68')]['id'],_0x159b75[_0x4111d7('0x68')]['name'],_0x159b75['user'][_0x4111d7('0x1b')],_0x2dff96['interaction']['id'],_0x159b75[_0x4111d7('0x4f')]?JSON[_0x4111d7('0x13')](_0x159b75[_0x4111d7('0x4f')]):_0x4111d7('0x42')),respondWithRpcPromise(_0x4111d7('0xd'),_0x4111d7('0x3e'),_0x2dff96);return null;})[_0x3b0c5b('0x46')](function(_0x418933){const _0x4797df=_0x3b0c5b;if(_0x418933){if(_0x159b75[_0x4797df('0x4f')][_0x4797df('0x69')])return _0x2dff96[_0x4797df('0x43')][_0x4797df('0x4a')]=util[_0x4797df('0x48')](_0x4797df('0x6a'),_0x159b75[_0x4797df('0x68')][_0x4797df('0x9')]),_0x2dff96[_0x4797df('0x43')][_0x4797df('0x67')]=_0x2dff96[_0x4797df('0x67')],_0x2dff96[_0x4797df('0x43')][_0x4797df('0x4b')]='accept',respondWithRpcPromise(_0x4797df('0x4c'),'EventManager',{'event':_0x4797df('0x17'),'message':_0x2dff96[_0x4797df('0x43')]},client9002)[_0x4797df('0x46')](function(){return _0x2dff96;});return _0x2dff96;}return null;})['then'](respondWithResult(_0x15783e,null))[_0x3b0c5b('0x6c')](handleError(_0x15783e,null));},exports[_0x4f661b('0x37')]=function(_0x1abcd7,_0x1787fd){const _0x30301b=_0x4f661b,_0x856428={'agent':{},'channel':_0x30301b('0x53')};return _0x1abcd7[_0x30301b('0x4f')]['id']&&delete _0x1abcd7[_0x30301b('0x4f')]['id'],_0x1abcd7[_0x30301b('0x4f')]['UserId']=_0x1abcd7[_0x30301b('0x4f')][_0x30301b('0x3d')]||_0x1abcd7[_0x30301b('0x68')]['id'],_0x856428['agent']['id']=_0x1abcd7[_0x30301b('0x4f')][_0x30301b('0x3d')],db['FaxMessage']['findOne']({'where':{'id':_0x1abcd7[_0x30301b('0xe')]['id'],'UserId':null}})[_0x30301b('0x46')](handleEntityNotFound(_0x1787fd,null))[_0x30301b('0x46')](function(_0xc6dd78){const _0x2f82fd=_0x30301b;if(_0xc6dd78)return _0x856428[_0x2f82fd('0x43')]=_0xc6dd78['get']({'plain':!![]}),db[_0x2f82fd('0x2f')][_0x2f82fd('0x33')]({'where':{'id':_0xc6dd78['FaxInteractionId']}});return null;})[_0x30301b('0x46')](handleEntityNotFound(_0x1787fd,null))[_0x30301b('0x46')](function(_0x323ad2){const _0x5418c4=_0x30301b;if(_0x323ad2)return _0x856428['interaction']=_0x323ad2[_0x5418c4('0x64')]({'plain':!![]}),interaction_log[_0x5418c4('0x29')](_0x5418c4('0x61'),_0x1abcd7[_0x5418c4('0x68')]['id'],_0x1abcd7[_0x5418c4('0x68')][_0x5418c4('0x9')],_0x1abcd7[_0x5418c4('0x68')]['role'],_0x856428[_0x5418c4('0x2c')]['id'],_0x1abcd7['body']?JSON[_0x5418c4('0x13')](_0x1abcd7[_0x5418c4('0x4f')]):_0x5418c4('0x42')),respondWithRpcPromise(_0x5418c4('0x28'),_0x5418c4('0x56'),_0x856428);return null;})['then'](function(_0x3c7457){const _0x52f722=_0x30301b;if(_0x3c7457)return _0x3c7457[_0x52f722('0x43')][_0x52f722('0x4a')]=util[_0x52f722('0x48')](_0x52f722('0x6a'),_0x1abcd7[_0x52f722('0x68')][_0x52f722('0x9')]),_0x3c7457[_0x52f722('0x43')][_0x52f722('0x67')]=_0x856428[_0x52f722('0x67')],_0x3c7457[_0x52f722('0x43')]['event']='reject',respondWithRpcPromise(_0x52f722('0x4c'),_0x52f722('0x4c'),{'event':'rejectmessage','message':_0x3c7457[_0x52f722('0x43')]},client9002),_0x856428;return null;})[_0x30301b('0x46')](respondWithResult(_0x1787fd,null))[_0x30301b('0x6c')](handleError(_0x1787fd,null));},exports[_0x4f661b('0x60')]=function(_0x48c59b,_0x5bdc73){const _0x2af2f8=_0x4f661b;let _0x1eaeb4;return db[_0x2af2f8('0x5a')][_0x2af2f8('0x60')](_0x48c59b[_0x2af2f8('0x4f')],{})[_0x2af2f8('0x46')](function(_0x3bb22d){const _0x4f9107=_0x2af2f8;return _0x1eaeb4=_0x3bb22d,db[_0x4f9107('0x4')][_0x4f9107('0x33')]({'where':{'id':_0x1eaeb4[_0x4f9107('0x5c')]}});})['then'](function(_0x1ad8d5){const _0x2a1162=_0x2af2f8;if(_[_0x2a1162('0x30')](_0x1ad8d5))return;else return _0x1eaeb4[_0x2a1162('0x53')]=_0x1ad8d5[_0x2a1162('0x53')],db[_0x2a1162('0xb')][_0x2a1162('0x33')]({'where':{'id':_0x1eaeb4['AttachmentId']}});})[_0x2af2f8('0x46')](function(_0x4df445){const _0x920ab=_0x2af2f8;return respondWithRpcPromise(_0x920ab('0x50'),_0x920ab('0x50'),{'FaxAccountId':_[_0x920ab('0x30')](_0x48c59b[_0x920ab('0x4f')])?undefined:_0x48c59b[_0x920ab('0x4f')]['FaxAccountId'],'path':_[_0x920ab('0x30')](_0x4df445)?undefined:util[_0x920ab('0x48')](_0x920ab('0x3f'),_0x4df445[_0x920ab('0x41')]),'fax':_['isNil'](_0x1eaeb4['fax'])?undefined:_0x1eaeb4['fax'],'AttachmentId':_0x1eaeb4[_0x920ab('0x4e')]},client9002);})[_0x2af2f8('0x46')](respondWithResult(_0x5bdc73,0xc9))[_0x2af2f8('0x6c')](handleError(_0x5bdc73,null));},exports[_0x4f661b('0x39')]=function(_0x43759b,_0x35392d){const _0x2bb21b=_0x4f661b,_0x394d3b=path['join'](config[_0x2bb21b('0x10')],_0x2bb21b('0x47'),_0x2bb21b('0x36'),_0x2bb21b('0x2b'));return db[_0x2bb21b('0x5a')][_0x2bb21b('0x33')]({'where':{'id':_0x43759b[_0x2bb21b('0xe')]['id']},'include':[{'model':db[_0x2bb21b('0xb')],'as':_0x2bb21b('0xb')}]})[_0x2bb21b('0x46')](handleEntityNotFound(_0x35392d,null))[_0x2bb21b('0x46')](function(_0x23331a){const _0x2e8c1c=_0x2bb21b;if(_0x23331a)return _0x35392d[_0x2e8c1c('0x39')](path[_0x2e8c1c('0x35')](_0x394d3b,_0x23331a[_0x2e8c1c('0xb')][_0x2e8c1c('0x41')]));})[_0x2bb21b('0x6c')](handleError(_0x35392d,null));}; \ No newline at end of file +const a205_0x2e54=['get','end','fields','query','ContactId','like','merge','where','acceptmessage','destroy','rawAttributes','name','findOne','status','result','AcceptMessage','stringify','order','util','rejectmessage','body','stack','interaction','key','count','root','reject','channel','code','params','fieldName','pick','server','basename','FaxMessage','[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','EventManager','model','show','sendStatus','options','attributes','sequelize','create','FaxInteraction','json','message','http','jayson/promise','null','read','./faxMessage.socket','client','accept','fax-interactions','fax','set','info','map','AttachmentId','include','FaxMessage,\x20%s,\x20%s,\x20%s','describe','undefined','SIP/%s','limit','YYYY-MM-DD\x20HH:mm:ss','download','VIRTUAL','Content-Range','sort','request\x20sent','path','role','acceptMessage','../../config/environment','../../mysqldb','Attachment','user','update','FaxAccountId','join','../../config/logger','filters','../../rediscache','type','FaxMessage,\x20%s,\x20%s','event','../../components/parsers/qs','intersection','interface','SendFax','findAll','keys','rejectMessage','includeAll','error','nolimit','send','format','UserId','request','isNil','RejectMessage','register','index','offset','then','/var/opt/motion2/server/files/attachments/%s','FaxInteractionId','catch','readAt','[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','rows','CmContact','length'];(function(_0x2e2a52,_0x2e54c9){const _0x25ce4e=function(_0x561eeb){while(--_0x561eeb){_0x2e2a52['push'](_0x2e2a52['shift']());}};_0x25ce4e(++_0x2e54c9);}(a205_0x2e54,0x189));const a205_0x25ce=function(_0x2e2a52,_0x2e54c9){_0x2e2a52=_0x2e2a52-0x0;let _0x25ce4e=a205_0x2e54[_0x2e2a52];return _0x25ce4e;};const _0x939c03=a205_0x25ce;'use strict';const moment=require('moment'),util=require(_0x939c03('0x59')),path=require(_0x939c03('0x1b')),_=require('lodash'),{getSocket}=require(_0x939c03('0x27')),socket=getSocket(),qs=require(_0x939c03('0x2b')),logger=require(_0x939c03('0x25'))('api'),config=require(_0x939c03('0x1e')),interaction_log=require('../../config/logger')(_0x939c03('0x9')),db=require(_0x939c03('0x1f'))['db'],{Op}=require(_0x939c03('0x71'));require(_0x939c03('0x6'))[_0x939c03('0x3b')](socket);const jayson=require(_0x939c03('0x3')),client=jayson[_0x939c03('0x7')][_0x939c03('0x2')]({'port':0x232c}),client9002=jayson[_0x939c03('0x7')][_0x939c03('0x2')]({'port':0x232a});function respondWithRpcPromise(_0x561eeb,_0x465a47,_0x3531c6,_0x2efd6f){return new Promise(function(_0x97fbfb,_0x1446a6){const _0x5b52d6=a205_0x25ce,_0x2464bc=_0x2efd6f||client;return _0x2464bc[_0x5b52d6('0x38')](_0x561eeb,_0x3531c6)[_0x5b52d6('0x3e')](function(_0x48f390){const _0xa6cba1=_0x5b52d6;logger[_0xa6cba1('0xc')](_0xa6cba1('0x29'),_0x465a47,'request\x20sent'),logger['debug'](_0xa6cba1('0x10'),_0x465a47,_0xa6cba1('0x1a'),JSON[_0xa6cba1('0x57')](_0x48f390));if(_0x48f390[_0xa6cba1('0x33')]){if(_0x48f390[_0xa6cba1('0x33')][_0xa6cba1('0x63')]===0x1f4)return logger[_0xa6cba1('0x33')]('FaxMessage,\x20%s,\x20%s',_0x465a47,_0x48f390[_0xa6cba1('0x33')][_0xa6cba1('0x1')]),_0x1446a6(_0x48f390[_0xa6cba1('0x33')][_0xa6cba1('0x1')]);return logger[_0xa6cba1('0x33')](_0xa6cba1('0x29'),_0x465a47,_0x48f390[_0xa6cba1('0x33')]['message']),_0x97fbfb(_0x48f390[_0xa6cba1('0x33')]['message']);}else logger[_0xa6cba1('0xc')](_0xa6cba1('0x29'),_0x465a47,_0xa6cba1('0x1a')),_0x97fbfb(_0x48f390[_0xa6cba1('0x55')][_0xa6cba1('0x1')]);})['catch'](function(_0x251434){const _0x2b8f24=_0x5b52d6;logger[_0x2b8f24('0x33')](_0x2b8f24('0x29'),_0x465a47,_0x251434),_0x1446a6(_0x251434);});});}function respondWithResult(_0x1fab9c,_0x3b4c3a){return _0x3b4c3a=_0x3b4c3a||0xc8,function(_0x28c8e1){const _0x12385e=a205_0x25ce;if(_0x28c8e1)return _0x1fab9c[_0x12385e('0x54')](_0x3b4c3a)[_0x12385e('0x0')](_0x28c8e1);};}function respondWithFilteredResult(_0xb563a9,_0x1e2563){return function(_0x4fd12a){const _0x2785c1=a205_0x25ce;if(_0x4fd12a){const _0x53524f=_0x4fd12a[_0x2785c1('0x5f')],_0x29face=_0x1e2563[_0x2785c1('0x3d')];let _0x4812b5=_0x1e2563[_0x2785c1('0x3d')]+_0x1e2563[_0x2785c1('0x14')],_0x2b552a;return _0x4812b5>=_0x53524f?(_0x4812b5=_0x53524f,_0x2b552a=0xc8):_0x2b552a=0xce,_0xb563a9[_0x2785c1('0x54')](_0x2b552a),_0xb563a9[_0x2785c1('0xb')](_0x2785c1('0x18'),_0x29face+'-'+_0x4812b5+'/'+_0x53524f)[_0x2785c1('0x0')](_0x4fd12a);}return null;};}function saveUpdates(_0x49b866){return function(_0x5141e3){const _0xadff8a=a205_0x25ce;if(_0x5141e3)return _0x5141e3[_0xadff8a('0x22')](_0x49b866)[_0xadff8a('0x3e')](function(_0x50dc43){return _0x50dc43;});return null;};}function removeEntity(_0x52bdb7){return function(_0x13e3ec){const _0x58cb17=a205_0x25ce;if(_0x13e3ec)return _0x13e3ec[_0x58cb17('0x50')]()[_0x58cb17('0x3e')](function(){const _0x46fc65=_0x58cb17;_0x52bdb7[_0x46fc65('0x54')](0xcc)[_0x46fc65('0x48')]();});};}function handleEntityNotFound(_0x8684d1){return function(_0x2aa7c7){const _0x5441f5=a205_0x25ce;return!_0x2aa7c7&&_0x8684d1[_0x5441f5('0x6e')](0x194),_0x2aa7c7;};}function handleError(_0x25643a,_0x237e67){return _0x237e67=_0x237e67||0x1f4,function(_0x55adf7){const _0x9236ea=a205_0x25ce;logger[_0x9236ea('0x33')](_0x55adf7[_0x9236ea('0x5c')]),_0x55adf7['name']&&delete _0x55adf7[_0x9236ea('0x52')],_0x25643a[_0x9236ea('0x54')](_0x237e67)[_0x9236ea('0x35')](_0x55adf7);};}exports[_0x939c03('0x3c')]=function(_0x522f46,_0x20bed3){const _0x5c305b=_0x939c03;let _0x15e8a8={};const _0x327b1d={},_0x55ee48={'count':0x0,'rows':[]},_0xc6f09e=_[_0x5c305b('0xd')](db['FaxMessage'][_0x5c305b('0x51')],function(_0x1702dc){const _0x2d6b27=_0x5c305b;return{'name':_0x1702dc[_0x2d6b27('0x65')],'type':_0x1702dc[_0x2d6b27('0x28')][_0x2d6b27('0x5e')]};});_0x327b1d[_0x5c305b('0x6c')]=_[_0x5c305b('0xd')](_0xc6f09e,'name'),_0x327b1d[_0x5c305b('0x4a')]=_[_0x5c305b('0x30')](_0x522f46[_0x5c305b('0x4a')]),_0x327b1d[_0x5c305b('0x26')]=_[_0x5c305b('0x2c')](_0x327b1d[_0x5c305b('0x6c')],_0x327b1d[_0x5c305b('0x4a')]),_0x15e8a8['attributes']=_[_0x5c305b('0x2c')](_0x327b1d[_0x5c305b('0x6c')],qs[_0x5c305b('0x49')](_0x522f46[_0x5c305b('0x4a')][_0x5c305b('0x49')])),_0x15e8a8['attributes']=_0x15e8a8['attributes']['length']?_0x15e8a8[_0x5c305b('0x70')]:_0x327b1d[_0x5c305b('0x6c')];typeof _0x522f46[_0x5c305b('0x4a')][_0x5c305b('0x34')]===_0x5c305b('0x12')&&(_0x15e8a8[_0x5c305b('0x14')]=qs[_0x5c305b('0x14')](_0x522f46[_0x5c305b('0x4a')][_0x5c305b('0x14')]),_0x15e8a8[_0x5c305b('0x3d')]=qs['offset'](_0x522f46[_0x5c305b('0x4a')][_0x5c305b('0x3d')]));_0x15e8a8[_0x5c305b('0x58')]=qs[_0x5c305b('0x19')](_0x522f46[_0x5c305b('0x4a')]['sort']),_0x15e8a8[_0x5c305b('0x4e')]=qs['filters'](_[_0x5c305b('0x66')](_0x522f46[_0x5c305b('0x4a')],_0x327b1d[_0x5c305b('0x26')]),_0xc6f09e);_0x522f46[_0x5c305b('0x4a')]['filter']&&(_0x15e8a8[_0x5c305b('0x4e')]=_['merge'](_0x15e8a8['where'],{[Op['or']]:_[_0x5c305b('0xd')](_0xc6f09e,function(_0x3b3e6f){const _0x8db47c=_0x5c305b;if(_0x3b3e6f[_0x8db47c('0x28')]!==_0x8db47c('0x17')){const _0xcc8cec={};return _0xcc8cec[_0x3b3e6f['name']]={[Op[_0x8db47c('0x4c')]]:'%'+_0x522f46['query']['filter']+'%'},_0xcc8cec;}})}));_0x15e8a8=_[_0x5c305b('0x4d')]({},_0x15e8a8,_0x522f46['options']);const _0x50f130={'where':_0x15e8a8[_0x5c305b('0x4e')]};return db[_0x5c305b('0x69')]['count'](_0x50f130)[_0x5c305b('0x3e')](function(_0x4374f7){const _0x5f5497=_0x5c305b;return _0x55ee48[_0x5f5497('0x5f')]=_0x4374f7,_0x522f46[_0x5f5497('0x4a')]['includeAll']&&(_0x15e8a8[_0x5f5497('0xf')]=[{'all':!![]}]),db[_0x5f5497('0x69')][_0x5f5497('0x2f')](_0x15e8a8);})[_0x5c305b('0x3e')](function(_0x21e81c){const _0x19e2f8=_0x5c305b;return _0x55ee48[_0x19e2f8('0x44')]=_0x21e81c,_0x55ee48;})[_0x5c305b('0x3e')](respondWithFilteredResult(_0x20bed3,_0x15e8a8))[_0x5c305b('0x41')](handleError(_0x20bed3,null));},exports[_0x939c03('0x6d')]=function(_0x4a5854,_0x52d9c3){const _0x572ee2=_0x939c03;let _0x5ec90f={'raw':!![],'where':{'id':_0x4a5854[_0x572ee2('0x64')]['id']}};const _0x2f4c2b={};return _0x2f4c2b[_0x572ee2('0x6c')]=_[_0x572ee2('0x30')](db[_0x572ee2('0x69')][_0x572ee2('0x51')]),_0x2f4c2b[_0x572ee2('0x4a')]=_[_0x572ee2('0x30')](_0x4a5854[_0x572ee2('0x4a')]),_0x2f4c2b[_0x572ee2('0x26')]=_[_0x572ee2('0x2c')](_0x2f4c2b[_0x572ee2('0x6c')],_0x2f4c2b[_0x572ee2('0x4a')]),_0x5ec90f[_0x572ee2('0x70')]=_['intersection'](_0x2f4c2b[_0x572ee2('0x6c')],qs[_0x572ee2('0x49')](_0x4a5854[_0x572ee2('0x4a')][_0x572ee2('0x49')])),_0x5ec90f[_0x572ee2('0x70')]=_0x5ec90f[_0x572ee2('0x70')][_0x572ee2('0x46')]?_0x5ec90f[_0x572ee2('0x70')]:_0x2f4c2b[_0x572ee2('0x6c')],_0x4a5854['query'][_0x572ee2('0x32')]&&(_0x5ec90f[_0x572ee2('0xf')]=[{'all':!![]}]),_0x5ec90f=_[_0x572ee2('0x4d')]({},_0x5ec90f,_0x4a5854[_0x572ee2('0x6f')]),db[_0x572ee2('0x69')][_0x572ee2('0x53')](_0x5ec90f)['then'](handleEntityNotFound(_0x52d9c3,null))['then'](respondWithResult(_0x52d9c3,null))[_0x572ee2('0x41')](handleError(_0x52d9c3,null));},exports['update']=function(_0x5c339b,_0x21ac28){const _0x3da8ac=_0x939c03;return _0x5c339b[_0x3da8ac('0x5b')]['id']&&delete _0x5c339b[_0x3da8ac('0x5b')]['id'],db[_0x3da8ac('0x69')][_0x3da8ac('0x53')]({'where':{'id':_0x5c339b[_0x3da8ac('0x64')]['id']}})[_0x3da8ac('0x3e')](handleEntityNotFound(_0x21ac28,null))[_0x3da8ac('0x3e')](saveUpdates(_0x5c339b[_0x3da8ac('0x5b')],null))['then'](respondWithResult(_0x21ac28,null))['catch'](handleError(_0x21ac28,null));},exports[_0x939c03('0x50')]=function(_0x23e70a,_0x79fca6){const _0x107133=_0x939c03;return db[_0x107133('0x69')][_0x107133('0x53')]({'where':{'id':_0x23e70a[_0x107133('0x64')]['id']}})[_0x107133('0x3e')](handleEntityNotFound(_0x79fca6,null))[_0x107133('0x3e')](removeEntity(_0x79fca6,null))[_0x107133('0x41')](handleError(_0x79fca6,null));},exports[_0x939c03('0x11')]=function(_0xa4d121,_0x52d951){const _0x16af61=_0x939c03;return db[_0x16af61('0x69')][_0x16af61('0x11')]()[_0x16af61('0x3e')](respondWithResult(_0x52d951,null))[_0x16af61('0x41')](handleError(_0x52d951,null));},exports[_0x939c03('0x8')]=function(_0x53d93b,_0x43fa8d){const _0x373d11=_0x939c03,_0x359582={'channel':_0x373d11('0xa')};return _0x53d93b[_0x373d11('0x5b')]['id']&&delete _0x53d93b[_0x373d11('0x5b')]['id'],_0x53d93b[_0x373d11('0x5b')][_0x373d11('0x5')]=!![],_0x53d93b[_0x373d11('0x5b')][_0x373d11('0x42')]=moment()[_0x373d11('0x36')](_0x373d11('0x15')),_0x53d93b['body'][_0x373d11('0x37')]=_0x53d93b[_0x373d11('0x5b')][_0x373d11('0x37')]||_0x53d93b['user']['id'],db[_0x373d11('0x69')][_0x373d11('0x53')]({'where':{'id':_0x53d93b[_0x373d11('0x64')]['id'],'UserId':null},'include':[{'model':db[_0x373d11('0x45')],'as':'Contact'}]})[_0x373d11('0x3e')](handleEntityNotFound(_0x43fa8d,null))['then'](saveUpdates(_0x53d93b['body'],null))['then'](function(_0x403959){const _0xe6abb3=_0x373d11;if(_0x403959)return _0x359582['message']=_0x403959[_0xe6abb3('0x47')]({'plain':!![]}),db['FaxInteraction'][_0xe6abb3('0x53')]({'where':{'id':_0x403959[_0xe6abb3('0x40')]}});return null;})[_0x373d11('0x3e')](handleEntityNotFound(_0x43fa8d,null))[_0x373d11('0x3e')](function(_0x26ada2){const _0x3d8365=_0x373d11;if(_0x26ada2)return _0x26ada2[_0x3d8365('0x22')]({'UserId':_0x53d93b[_0x3d8365('0x5b')][_0x3d8365('0x37')],'read1stAt':_['isNil'](_0x26ada2['read1stAt'])?moment()[_0x3d8365('0x36')](_0x3d8365('0x15')):undefined});return null;})[_0x373d11('0x3e')](function(_0xcddd33){const _0x272095=_0x373d11;if(_0xcddd33)return _0x359582['interaction']=_0xcddd33[_0x272095('0x47')]({'plain':!![]}),interaction_log[_0x272095('0xc')](_0x272095('0x6a'),_0x53d93b[_0x272095('0x21')]['id'],_0x53d93b['user'][_0x272095('0x52')],_0x53d93b[_0x272095('0x21')][_0x272095('0x1c')],_0x359582['interaction']['id'],_0x53d93b[_0x272095('0x5b')]?JSON[_0x272095('0x57')](_0x53d93b['body']):_0x272095('0x4')),respondWithRpcPromise(_0x272095('0x56'),_0x272095('0x1d'),_0x359582);return null;})[_0x373d11('0x3e')](function(_0x1ae5f0){const _0x395425=_0x373d11;if(_0x1ae5f0){if(_0x53d93b[_0x395425('0x5b')]['manual'])return _0x359582['message']['interface']=util['format']('SIP/%s',_0x53d93b[_0x395425('0x21')][_0x395425('0x52')]),_0x359582[_0x395425('0x1')][_0x395425('0x62')]=_0x359582[_0x395425('0x62')],_0x359582[_0x395425('0x1')][_0x395425('0x2a')]=_0x395425('0x8'),respondWithRpcPromise('EventManager',_0x395425('0x6b'),{'event':_0x395425('0x4f'),'message':_0x359582[_0x395425('0x1')]},client9002)[_0x395425('0x3e')](function(){return _0x359582;});return _0x359582;}return null;})[_0x373d11('0x3e')](respondWithResult(_0x43fa8d,null))[_0x373d11('0x41')](handleError(_0x43fa8d,null));},exports[_0x939c03('0x61')]=function(_0x3a75de,_0x3a97e3){const _0x3d10b1=_0x939c03,_0x4d4686={'agent':{},'channel':_0x3d10b1('0xa')};return _0x3a75de['body']['id']&&delete _0x3a75de[_0x3d10b1('0x5b')]['id'],_0x3a75de[_0x3d10b1('0x5b')][_0x3d10b1('0x37')]=_0x3a75de['body']['UserId']||_0x3a75de[_0x3d10b1('0x21')]['id'],_0x4d4686['agent']['id']=_0x3a75de['body'][_0x3d10b1('0x37')],db[_0x3d10b1('0x69')][_0x3d10b1('0x53')]({'where':{'id':_0x3a75de[_0x3d10b1('0x64')]['id'],'UserId':null}})[_0x3d10b1('0x3e')](handleEntityNotFound(_0x3a97e3,null))[_0x3d10b1('0x3e')](function(_0x2e9940){const _0x574fc1=_0x3d10b1;if(_0x2e9940)return _0x4d4686['message']=_0x2e9940['get']({'plain':!![]}),db[_0x574fc1('0x73')]['findOne']({'where':{'id':_0x2e9940['FaxInteractionId']}});return null;})[_0x3d10b1('0x3e')](handleEntityNotFound(_0x3a97e3,null))['then'](function(_0x14e9a7){const _0x2bf4c1=_0x3d10b1;if(_0x14e9a7)return _0x4d4686[_0x2bf4c1('0x5d')]=_0x14e9a7[_0x2bf4c1('0x47')]({'plain':!![]}),interaction_log[_0x2bf4c1('0xc')](_0x2bf4c1('0x43'),_0x3a75de[_0x2bf4c1('0x21')]['id'],_0x3a75de[_0x2bf4c1('0x21')][_0x2bf4c1('0x52')],_0x3a75de[_0x2bf4c1('0x21')][_0x2bf4c1('0x1c')],_0x4d4686[_0x2bf4c1('0x5d')]['id'],_0x3a75de[_0x2bf4c1('0x5b')]?JSON[_0x2bf4c1('0x57')](_0x3a75de[_0x2bf4c1('0x5b')]):_0x2bf4c1('0x4')),respondWithRpcPromise(_0x2bf4c1('0x3a'),_0x2bf4c1('0x31'),_0x4d4686);return null;})[_0x3d10b1('0x3e')](function(_0x4cab4f){const _0x34dc97=_0x3d10b1;if(_0x4cab4f)return _0x4cab4f[_0x34dc97('0x1')][_0x34dc97('0x2d')]=util[_0x34dc97('0x36')](_0x34dc97('0x13'),_0x3a75de[_0x34dc97('0x21')][_0x34dc97('0x52')]),_0x4cab4f[_0x34dc97('0x1')][_0x34dc97('0x62')]=_0x4d4686[_0x34dc97('0x62')],_0x4cab4f['message'][_0x34dc97('0x2a')]=_0x34dc97('0x61'),respondWithRpcPromise(_0x34dc97('0x6b'),_0x34dc97('0x6b'),{'event':_0x34dc97('0x5a'),'message':_0x4cab4f[_0x34dc97('0x1')]},client9002),_0x4d4686;return null;})[_0x3d10b1('0x3e')](respondWithResult(_0x3a97e3,null))[_0x3d10b1('0x41')](handleError(_0x3a97e3,null));},exports[_0x939c03('0x72')]=function(_0x5097c6,_0x3cdf43){const _0xe3a4d7=_0x939c03;let _0x20bc45;return db['FaxMessage']['create'](_0x5097c6[_0xe3a4d7('0x5b')],{})[_0xe3a4d7('0x3e')](function(_0x1ac617){const _0x41cc82=_0xe3a4d7;return _0x20bc45=_0x1ac617,db[_0x41cc82('0x45')][_0x41cc82('0x53')]({'where':{'id':_0x20bc45[_0x41cc82('0x4b')]}});})[_0xe3a4d7('0x3e')](function(_0x46ab12){const _0x2062e6=_0xe3a4d7;if(_[_0x2062e6('0x39')](_0x46ab12))return;else return _0x20bc45[_0x2062e6('0xa')]=_0x46ab12[_0x2062e6('0xa')],db[_0x2062e6('0x20')][_0x2062e6('0x53')]({'where':{'id':_0x20bc45[_0x2062e6('0xe')]}});})['then'](function(_0x43b638){const _0x5a3b6f=_0xe3a4d7;return respondWithRpcPromise(_0x5a3b6f('0x2e'),_0x5a3b6f('0x2e'),{'FaxAccountId':_['isNil'](_0x5097c6[_0x5a3b6f('0x5b')])?undefined:_0x5097c6['body'][_0x5a3b6f('0x23')],'path':_[_0x5a3b6f('0x39')](_0x43b638)?undefined:util[_0x5a3b6f('0x36')](_0x5a3b6f('0x3f'),_0x43b638['basename']),'fax':_['isNil'](_0x20bc45[_0x5a3b6f('0xa')])?undefined:_0x20bc45[_0x5a3b6f('0xa')],'AttachmentId':_0x20bc45[_0x5a3b6f('0xe')]},client9002);})['then'](respondWithResult(_0x3cdf43,0xc9))[_0xe3a4d7('0x41')](handleError(_0x3cdf43,null));},exports[_0x939c03('0x16')]=function(_0x356f3d,_0x25be7c){const _0x475f61=_0x939c03,_0x2dd7d4=path[_0x475f61('0x24')](config[_0x475f61('0x60')],_0x475f61('0x67'),'files','attachments');return db['FaxMessage'][_0x475f61('0x53')]({'where':{'id':_0x356f3d[_0x475f61('0x64')]['id']},'include':[{'model':db['Attachment'],'as':_0x475f61('0x20')}]})['then'](handleEntityNotFound(_0x25be7c,null))[_0x475f61('0x3e')](function(_0x57e6fd){const _0x43d99b=_0x475f61;if(_0x57e6fd)return _0x25be7c[_0x43d99b('0x16')](path[_0x43d99b('0x24')](_0x2dd7d4,_0x57e6fd[_0x43d99b('0x20')][_0x43d99b('0x68')]));})['catch'](handleError(_0x25be7c,null));}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.events.js b/server/api/faxMessage/faxMessage.events.js index 0a97074..6de9f55 100644 --- a/server/api/faxMessage/faxMessage.events.js +++ b/server/api/faxMessage/faxMessage.events.js @@ -1 +1 @@ -const a206_0x1989=['addHook','exports','remove','FaxMessage','events','undefined','emit','update','save','../../mysqldb'];(function(_0x451f80,_0x1989bc){const _0x40b1b2=function(_0x551281){while(--_0x551281){_0x451f80['push'](_0x451f80['shift']());}};_0x40b1b2(++_0x1989bc);}(a206_0x1989,0x80));const a206_0x40b1=function(_0x451f80,_0x1989bc){_0x451f80=_0x451f80-0x0;let _0x40b1b2=a206_0x1989[_0x451f80];return _0x40b1b2;};const _0x17ae43=a206_0x40b1;'use strict';const EventEmitter=require(_0x17ae43('0x6')),FaxMessage=require(_0x17ae43('0x1'))['db'][_0x17ae43('0x5')],FaxMessageEvents=new EventEmitter();FaxMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x17ae43('0x0'),'afterUpdate':_0x17ae43('0x9'),'afterDestroy':_0x17ae43('0x4')};function emitEvent(_0x551281){return function(_0x492613){const _0x299e30=a206_0x40b1;FaxMessageEvents['emit'](_0x551281+':'+_0x492613['id'],_0x492613),FaxMessageEvents[_0x299e30('0x8')](_0x551281,_0x492613);};}for(const e in events){if(typeof events[e]!==_0x17ae43('0x7')){const event=events[e];FaxMessage[_0x17ae43('0x2')](e,emitEvent(event));}}module[_0x17ae43('0x3')]=FaxMessageEvents; \ No newline at end of file +const a206_0x55b7=['emit','save','events','remove','addHook','update','setMaxListeners','../../mysqldb','undefined'];(function(_0x4f989b,_0x55b769){const _0x3856bb=function(_0xc8259c){while(--_0xc8259c){_0x4f989b['push'](_0x4f989b['shift']());}};_0x3856bb(++_0x55b769);}(a206_0x55b7,0x1dc));const a206_0x3856=function(_0x4f989b,_0x55b769){_0x4f989b=_0x4f989b-0x0;let _0x3856bb=a206_0x55b7[_0x4f989b];return _0x3856bb;};const _0x9f2e7=a206_0x3856;'use strict';const EventEmitter=require(_0x9f2e7('0x3')),FaxMessage=require(_0x9f2e7('0x8'))['db']['FaxMessage'],FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0x9f2e7('0x7')](0x0);const events={'afterCreate':_0x9f2e7('0x2'),'afterUpdate':_0x9f2e7('0x6'),'afterDestroy':_0x9f2e7('0x4')};function emitEvent(_0xc8259c){return function(_0x594400){const _0x5daa68=a206_0x3856;FaxMessageEvents['emit'](_0xc8259c+':'+_0x594400['id'],_0x594400),FaxMessageEvents[_0x5daa68('0x1')](_0xc8259c,_0x594400);};}for(const e in events){if(typeof events[e]!==_0x9f2e7('0x0')){const event=events[e];FaxMessage[_0x9f2e7('0x5')](e,emitEvent(event));}}module['exports']=FaxMessageEvents; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.model.js b/server/api/faxMessage/faxMessage.model.js index 0396be1..e8ef3c7 100644 --- a/server/api/faxMessage/faxMessage.model.js +++ b/server/api/faxMessage/faxMessage.model.js @@ -1 +1 @@ -const a207_0x5bb0=['get','FULLTEXT','out','fax_messages','UserId','FaxInteraction','exports','define','isNil','utf8mb4','update','./faxMessage.attributes','body','direction','models','FaxInteractionId','toLowerCase','catch','secret','findOne','lodash','fti_fax_messages','FaxMessage','utf8mb4_unicode_ci','error'];(function(_0x1a973d,_0x5bb009){const _0x228ed2=function(_0x47c994){while(--_0x47c994){_0x1a973d['push'](_0x1a973d['shift']());}};_0x228ed2(++_0x5bb009);}(a207_0x5bb0,0x1c9));const a207_0x228e=function(_0x1a973d,_0x5bb009){_0x1a973d=_0x1a973d-0x0;let _0x228ed2=a207_0x5bb0[_0x1a973d];return _0x228ed2;};const _0x2d0cf3=a207_0x228e;'use strict';const _=require(_0x2d0cf3('0xd')),attributes=require(_0x2d0cf3('0x4'));module[_0x2d0cf3('0x18')]=function(_0x47c994){const _0x1d9348=_0x2d0cf3,_0x463162=_0x47c994[_0x1d9348('0x7')],_0x469d99=_0x47c994[_0x1d9348('0x0')](_0x1d9348('0xf'),attributes,{'tableName':_0x1d9348('0x15'),'paranoid':![],'indexes':[{'name':_0x1d9348('0xe'),'fields':[_0x1d9348('0x5')],'type':_0x1d9348('0x13')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x21ec19){const _0x50a1d2=_0x1d9348,_0x4b856e=_0x21ec19[_0x50a1d2('0x12')]({'plain':!![]});(_0x4b856e[_0x50a1d2('0x6')][_0x50a1d2('0x9')]()==='in'||_0x4b856e[_0x50a1d2('0x6')]['toLowerCase']()===_0x50a1d2('0x14')&&!_0x4b856e[_0x50a1d2('0xb')]&&!_[_0x50a1d2('0x1')](_0x4b856e[_0x50a1d2('0x16')]))&&_0x463162[_0x50a1d2('0x17')][_0x50a1d2('0xc')]({'where':{'id':_0x4b856e[_0x50a1d2('0x8')]}})['then'](function(_0x5c48da){const _0x263014=_0x50a1d2;_0x5c48da&&_0x5c48da[_0x263014('0x3')]({'lastMsgAt':_0x4b856e['createdAt'],'lastMsgDirection':_0x4b856e['direction'][_0x263014('0x9')]()});})[_0x50a1d2('0xa')](function(_0x2bd79d){const _0x487b1a=_0x50a1d2;console[_0x487b1a('0x11')](_0x2bd79d);});}},'charset':_0x1d9348('0x2'),'collate':_0x1d9348('0x10')});return _0x469d99;}; \ No newline at end of file +const a207_0x3818=['get','body','FaxInteractionId','out','isNil','define','catch','UserId','utf8mb4_unicode_ci','fti_fax_messages','direction','FULLTEXT','toLowerCase','models','findOne','error','update','utf8mb4','FaxInteraction','createdAt','exports'];(function(_0x55a090,_0x38186c){const _0x2ec8b0=function(_0x1d08b3){while(--_0x1d08b3){_0x55a090['push'](_0x55a090['shift']());}};_0x2ec8b0(++_0x38186c);}(a207_0x3818,0x7d));const a207_0x2ec8=function(_0x55a090,_0x38186c){_0x55a090=_0x55a090-0x0;let _0x2ec8b0=a207_0x3818[_0x55a090];return _0x2ec8b0;};const _0x5e4978=a207_0x2ec8;'use strict';const _=require('lodash'),attributes=require('./faxMessage.attributes');module[_0x5e4978('0x0')]=function(_0x1d08b3){const _0xa60b4e=_0x5e4978,_0x2976f7=_0x1d08b3[_0xa60b4e('0xe')],_0x3aba04=_0x1d08b3[_0xa60b4e('0x6')]('FaxMessage',attributes,{'tableName':'fax_messages','paranoid':![],'indexes':[{'name':_0xa60b4e('0xa'),'fields':[_0xa60b4e('0x2')],'type':_0xa60b4e('0xc')}],'timestamps':!![],'hooks':{'afterCreate':function(_0xfc6dfe){const _0x2fbdfd=_0xa60b4e,_0x760a91=_0xfc6dfe[_0x2fbdfd('0x1')]({'plain':!![]});(_0x760a91[_0x2fbdfd('0xb')]['toLowerCase']()==='in'||_0x760a91[_0x2fbdfd('0xb')][_0x2fbdfd('0xd')]()===_0x2fbdfd('0x4')&&!_0x760a91['secret']&&!_[_0x2fbdfd('0x5')](_0x760a91[_0x2fbdfd('0x8')]))&&_0x2976f7[_0x2fbdfd('0x13')][_0x2fbdfd('0xf')]({'where':{'id':_0x760a91[_0x2fbdfd('0x3')]}})['then'](function(_0x470600){const _0x130929=_0x2fbdfd;_0x470600&&_0x470600[_0x130929('0x11')]({'lastMsgAt':_0x760a91[_0x130929('0x14')],'lastMsgDirection':_0x760a91[_0x130929('0xb')][_0x130929('0xd')]()});})[_0x2fbdfd('0x7')](function(_0x39d682){const _0x21bd58=_0x2fbdfd;console[_0x21bd58('0x10')](_0x39d682);});}},'charset':_0xa60b4e('0x12'),'collate':_0xa60b4e('0x9')});return _0x3aba04;}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.rpc.js b/server/api/faxMessage/faxMessage.rpc.js index ac2c819..bc9a777 100644 --- a/server/api/faxMessage/faxMessage.rpc.js +++ b/server/api/faxMessage/faxMessage.rpc.js @@ -1 +1 @@ -const a208_0x20ed=['raw','../../rediscache','error','where','FaxMessage','message','debug','register','create','CreateFaxMessage','attributes','../../config/logger','rpc','catch','options','../../mysqldb','stringify','then','UpdateFaxMessage','info','update','./faxMessage.socket','body'];(function(_0x596b62,_0x20edac){const _0x4cea8d=function(_0xc8a624){while(--_0xc8a624){_0x596b62['push'](_0x596b62['shift']());}};_0x4cea8d(++_0x20edac);}(a208_0x20ed,0xf6));const a208_0x4cea=function(_0x596b62,_0x20edac){_0x596b62=_0x596b62-0x0;let _0x4cea8d=a208_0x20ed[_0x596b62];return _0x4cea8d;};const _0x5ae5d5=a208_0x4cea;'use strict';const db=require(_0x5ae5d5('0x16'))['db'],logger=require(_0x5ae5d5('0x12'))(_0x5ae5d5('0x13')),{getSocket}=require(_0x5ae5d5('0x8')),socket=getSocket();require(_0x5ae5d5('0x5'))[_0x5ae5d5('0xe')](socket),exports['CreateFaxMessage']=function(_0xc8a624){const _0x53cc7c=this;return new Promise(function(_0x25e02d,_0x41caaf){const _0x570e7d=a208_0x4cea;return db[_0x570e7d('0xb')][_0x570e7d('0xf')](_0xc8a624[_0x570e7d('0x6')],{'raw':_0xc8a624[_0x570e7d('0x15')]?_0xc8a624[_0x570e7d('0x15')][_0x570e7d('0x7')]===undefined?!![]:![]:!![]})[_0x570e7d('0x1')](function(_0x5722b3){const _0x4be7f6=_0x570e7d;logger['info']('CreateFaxMessage',_0xc8a624),logger[_0x4be7f6('0xd')](_0x4be7f6('0x10'),_0xc8a624,JSON[_0x4be7f6('0x0')](_0x5722b3)),_0x25e02d(_0x5722b3);})[_0x570e7d('0x14')](function(_0xcb7ce1){const _0x1a06be=_0x570e7d;logger[_0x1a06be('0x9')](_0x1a06be('0x10'),_0xcb7ce1['message'],_0xc8a624),_0x41caaf(_0x53cc7c['error'](0x1f4,_0xcb7ce1[_0x1a06be('0xc')]));});});},exports[_0x5ae5d5('0x2')]=function(_0x905253){const _0x4db349=this;return new Promise(function(_0x3e310a,_0xf89519){const _0x4bcdab=a208_0x4cea;return db[_0x4bcdab('0xb')][_0x4bcdab('0x4')](_0x905253[_0x4bcdab('0x6')],{'raw':_0x905253[_0x4bcdab('0x15')]?_0x905253[_0x4bcdab('0x15')][_0x4bcdab('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x905253['options']?_0x905253['options'][_0x4bcdab('0xa')]||null:null,'attributes':_0x905253[_0x4bcdab('0x15')]?_0x905253['options'][_0x4bcdab('0x11')]||null:null,'limit':_0x905253[_0x4bcdab('0x15')]?_0x905253[_0x4bcdab('0x15')]['limit']||null:null})[_0x4bcdab('0x1')](function(_0x4f7fe5){const _0x5d09c4=_0x4bcdab;logger[_0x5d09c4('0x3')](_0x5d09c4('0x2'),_0x905253),logger[_0x5d09c4('0xd')]('UpdateFaxMessage',_0x905253,JSON['stringify'](_0x4f7fe5)),_0x3e310a(_0x4f7fe5);})[_0x4bcdab('0x14')](function(_0x1624e6){const _0x57ea4e=_0x4bcdab;logger[_0x57ea4e('0x9')]('UpdateFaxMessage',_0x1624e6[_0x57ea4e('0xc')],_0x905253),_0xf89519(_0x4db349['error'](0x1f4,_0x1624e6[_0x57ea4e('0xc')]));});});}; \ No newline at end of file +const a208_0x1267=['stringify','debug','options','attributes','UpdateFaxMessage','body','update','catch','./faxMessage.socket','register','../../config/logger','message','CreateFaxMessage','../../mysqldb','where','raw','info','rpc','error','../../rediscache','then'];(function(_0x3d37f2,_0x12678c){const _0x63acc7=function(_0xf60bc7){while(--_0xf60bc7){_0x3d37f2['push'](_0x3d37f2['shift']());}};_0x63acc7(++_0x12678c);}(a208_0x1267,0x138));const a208_0x63ac=function(_0x3d37f2,_0x12678c){_0x3d37f2=_0x3d37f2-0x0;let _0x63acc7=a208_0x1267[_0x3d37f2];return _0x63acc7;};const _0x51310f=a208_0x63ac;'use strict';const db=require(_0x51310f('0x10'))['db'],logger=require(_0x51310f('0xd'))(_0x51310f('0x14')),{getSocket}=require(_0x51310f('0x1')),socket=getSocket();require(_0x51310f('0xb'))[_0x51310f('0xc')](socket),exports[_0x51310f('0xf')]=function(_0xf60bc7){const _0x471cc8=this;return new Promise(function(_0xab46fc,_0x130d71){const _0x554449=a208_0x63ac;return db['FaxMessage']['create'](_0xf60bc7[_0x554449('0x8')],{'raw':_0xf60bc7['options']?_0xf60bc7[_0x554449('0x5')][_0x554449('0x12')]===undefined?!![]:![]:!![]})[_0x554449('0x2')](function(_0x283eb6){const _0x2f851d=_0x554449;logger[_0x2f851d('0x13')](_0x2f851d('0xf'),_0xf60bc7),logger[_0x2f851d('0x4')](_0x2f851d('0xf'),_0xf60bc7,JSON[_0x2f851d('0x3')](_0x283eb6)),_0xab46fc(_0x283eb6);})['catch'](function(_0x18c6c0){const _0x4297a4=_0x554449;logger[_0x4297a4('0x0')]('CreateFaxMessage',_0x18c6c0[_0x4297a4('0xe')],_0xf60bc7),_0x130d71(_0x471cc8[_0x4297a4('0x0')](0x1f4,_0x18c6c0[_0x4297a4('0xe')]));});});},exports['UpdateFaxMessage']=function(_0x959dce){const _0x3c00e2=this;return new Promise(function(_0x3b4747,_0x206bc6){const _0x52c9a8=a208_0x63ac;return db['FaxMessage'][_0x52c9a8('0x9')](_0x959dce[_0x52c9a8('0x8')],{'raw':_0x959dce[_0x52c9a8('0x5')]?_0x959dce[_0x52c9a8('0x5')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x959dce['options']?_0x959dce[_0x52c9a8('0x5')][_0x52c9a8('0x11')]||null:null,'attributes':_0x959dce[_0x52c9a8('0x5')]?_0x959dce['options'][_0x52c9a8('0x6')]||null:null,'limit':_0x959dce[_0x52c9a8('0x5')]?_0x959dce['options']['limit']||null:null})[_0x52c9a8('0x2')](function(_0x32e340){const _0x1e0c71=_0x52c9a8;logger[_0x1e0c71('0x13')]('UpdateFaxMessage',_0x959dce),logger['debug'](_0x1e0c71('0x7'),_0x959dce,JSON[_0x1e0c71('0x3')](_0x32e340)),_0x3b4747(_0x32e340);})[_0x52c9a8('0xa')](function(_0x507ed0){const _0x4162a0=_0x52c9a8;logger[_0x4162a0('0x0')]('UpdateFaxMessage',_0x507ed0[_0x4162a0('0xe')],_0x959dce),_0x206bc6(_0x3c00e2[_0x4162a0('0x0')](0x1f4,_0x507ed0[_0x4162a0('0xe')]));});});}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.socket.js b/server/api/faxMessage/faxMessage.socket.js index 762dc86..4b3948c 100644 --- a/server/api/faxMessage/faxMessage.socket.js +++ b/server/api/faxMessage/faxMessage.socket.js @@ -1 +1 @@ -const a209_0x3901=['emit','length','save','register','./faxMessage.events','update'];(function(_0x2a894b,_0x3901d0){const _0x2a9a05=function(_0xcad08a){while(--_0xcad08a){_0x2a894b['push'](_0x2a894b['shift']());}};_0x2a9a05(++_0x3901d0);}(a209_0x3901,0x12e));const a209_0x2a9a=function(_0x2a894b,_0x3901d0){_0x2a894b=_0x2a894b-0x0;let _0x2a9a05=a209_0x3901[_0x2a894b];return _0x2a9a05;};const _0x2c9e5b=a209_0x2a9a;'use strict';const FaxMessageEvents=require(_0x2c9e5b('0x2')),events=[_0x2c9e5b('0x0'),'remove',_0x2c9e5b('0x3')];function createListener(_0xcad08a,_0x5cbcd2){return function(_0x268cf6){const _0x4a3334=a209_0x2a9a;_0x5cbcd2[_0x4a3334('0x4')](_0xcad08a,_0x268cf6);};}exports[_0x2c9e5b('0x1')]=function(_0x27281a){const _0x39c21b=_0x2c9e5b;for(let _0x52c967=0x0,_0x182741=events[_0x39c21b('0x5')];_0x52c967<_0x182741;_0x52c967++){const _0x45d461=events[_0x52c967],_0x4e0d07=createListener('faxMessage:'+_0x45d461,_0x27281a);FaxMessageEvents['on'](_0x45d461,_0x4e0d07);}}; \ No newline at end of file +const a209_0x4888=['remove','faxMessage:','length','register','emit','./faxMessage.events','update','save'];(function(_0x299a9f,_0x48887a){const _0x4f2caf=function(_0x3777ce){while(--_0x3777ce){_0x299a9f['push'](_0x299a9f['shift']());}};_0x4f2caf(++_0x48887a);}(a209_0x4888,0xc0));const a209_0x4f2c=function(_0x299a9f,_0x48887a){_0x299a9f=_0x299a9f-0x0;let _0x4f2caf=a209_0x4888[_0x299a9f];return _0x4f2caf;};const _0x57c24c=a209_0x4f2c;'use strict';const FaxMessageEvents=require(_0x57c24c('0x5')),events=[_0x57c24c('0x7'),_0x57c24c('0x0'),_0x57c24c('0x6')];function createListener(_0x3777ce,_0x3ded6b){return function(_0x2c621d){const _0x28700c=a209_0x4f2c;_0x3ded6b[_0x28700c('0x4')](_0x3777ce,_0x2c621d);};}exports[_0x57c24c('0x3')]=function(_0x4df2ab){const _0x2567ec=_0x57c24c;for(let _0x3f46b2=0x0,_0x3e1931=events[_0x2567ec('0x2')];_0x3f46b2<_0x3e1931;_0x3f46b2++){const _0x31798e=events[_0x3f46b2],_0x118885=createListener(_0x2567ec('0x1')+_0x31798e,_0x4df2ab);FaxMessageEvents['on'](_0x31798e,_0x118885);}}; \ No newline at end of file diff --git a/server/api/faxMessage/index.js b/server/api/faxMessage/index.js index 084300a..f9a3f0b 100644 --- a/server/api/faxMessage/index.js +++ b/server/api/faxMessage/index.js @@ -1 +1 @@ -const a210_0x137b=['../../components/auth/service','describe','/:id/accept','index','faxmessage:create','get','show','./faxMessage.controller','/:id','exports','put','update','destroy','download','isAuthenticated','tracked','express','/describe','reject','accept','delete','../../components/interaction/service','create'];(function(_0x16abbd,_0x137baf){const _0x21535d=function(_0x15e4e9){while(--_0x15e4e9){_0x16abbd['push'](_0x16abbd['shift']());}};_0x21535d(++_0x137baf);}(a210_0x137b,0xce));const a210_0x2153=function(_0x16abbd,_0x137baf){_0x16abbd=_0x16abbd-0x0;let _0x21535d=a210_0x137b[_0x16abbd];return _0x21535d;};const _0x591779=a210_0x2153;'use strict';const express=require(_0x591779('0x11')),router=express['Router'](),auth=require(_0x591779('0x1')),interaction=require(_0x591779('0x16')),controller=require(_0x591779('0x8'));router['get']('/',auth[_0x591779('0xf')](),controller[_0x591779('0x4')]),router[_0x591779('0x6')](_0x591779('0x12'),auth[_0x591779('0xf')](),controller[_0x591779('0x2')]),router[_0x591779('0x6')]('/:id',auth[_0x591779('0xf')](),controller[_0x591779('0x7')]),router[_0x591779('0x6')]('/:id/download',auth[_0x591779('0xf')](),controller[_0x591779('0xe')]),router['post']('/',auth[_0x591779('0xf')](),interaction[_0x591779('0x10')]('fax',_0x591779('0x5')),controller[_0x591779('0x0')]),router[_0x591779('0xb')](_0x591779('0x9'),auth[_0x591779('0xf')](),controller[_0x591779('0xc')]),router[_0x591779('0xb')](_0x591779('0x3'),auth[_0x591779('0xf')](),controller[_0x591779('0x14')]),router[_0x591779('0xb')]('/:id/reject',auth['isAuthenticated'](),controller[_0x591779('0x13')]),router[_0x591779('0x15')]('/:id',auth['isAuthenticated'](),controller[_0x591779('0xd')]),module[_0x591779('0xa')]=router; \ No newline at end of file +const a210_0x12a2=['download','./faxMessage.controller','/describe','exports','post','create','../../components/interaction/service','Router','describe','faxmessage:create','reject','/:id/download','fax','/:id/accept','/:id','get','put','isAuthenticated','show','accept','/:id/reject','../../components/auth/service'];(function(_0x3d7ad0,_0x12a203){const _0x49314=function(_0x529e81){while(--_0x529e81){_0x3d7ad0['push'](_0x3d7ad0['shift']());}};_0x49314(++_0x12a203);}(a210_0x12a2,0xe1));const a210_0x4931=function(_0x3d7ad0,_0x12a203){_0x3d7ad0=_0x3d7ad0-0x0;let _0x49314=a210_0x12a2[_0x3d7ad0];return _0x49314;};const _0x3027e1=a210_0x4931;'use strict';const express=require('express'),router=express[_0x3027e1('0x2')](),auth=require(_0x3027e1('0x10')),interaction=require(_0x3027e1('0x1')),controller=require(_0x3027e1('0x12'));router[_0x3027e1('0xa')]('/',auth[_0x3027e1('0xc')](),controller['index']),router['get'](_0x3027e1('0x13'),auth['isAuthenticated'](),controller[_0x3027e1('0x3')]),router[_0x3027e1('0xa')]('/:id',auth[_0x3027e1('0xc')](),controller[_0x3027e1('0xd')]),router['get'](_0x3027e1('0x6'),auth[_0x3027e1('0xc')](),controller[_0x3027e1('0x11')]),router[_0x3027e1('0x15')]('/',auth[_0x3027e1('0xc')](),interaction['tracked'](_0x3027e1('0x7'),_0x3027e1('0x4')),controller[_0x3027e1('0x0')]),router[_0x3027e1('0xb')]('/:id',auth[_0x3027e1('0xc')](),controller['update']),router['put'](_0x3027e1('0x8'),auth[_0x3027e1('0xc')](),controller[_0x3027e1('0xe')]),router['put'](_0x3027e1('0xf'),auth[_0x3027e1('0xc')](),controller[_0x3027e1('0x5')]),router['delete'](_0x3027e1('0x9'),auth['isAuthenticated'](),controller['destroy']),module[_0x3027e1('0x14')]=router; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.attributes.js b/server/api/faxQueue/faxQueue.attributes.js index 3f6d870..e09e6b5 100644 --- a/server/api/faxQueue/faxQueue.attributes.js +++ b/server/api/faxQueue/faxQueue.attributes.js @@ -1 +1 @@ -const a211_0x11d3=['exports','sequelize','beepall','STRING','name','INTEGER','ENUM','rrmemory'];(function(_0x18bb02,_0x11d3c8){const _0xe08b32=function(_0x31053c){while(--_0x31053c){_0x18bb02['push'](_0x18bb02['shift']());}};_0xe08b32(++_0x11d3c8);}(a211_0x11d3,0x64));const a211_0xe08b=function(_0x18bb02,_0x11d3c8){_0x18bb02=_0x18bb02-0x0;let _0xe08b32=a211_0x11d3[_0x18bb02];return _0xe08b32;};const _0x307fd9=a211_0xe08b;'use strict';const Sequelize=require(_0x307fd9('0x5'));module[_0x307fd9('0x4')]={'name':{'type':Sequelize[_0x307fd9('0x7')],'unique':_0x307fd9('0x0'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x307fd9('0x7')]},'timeout':{'type':Sequelize[_0x307fd9('0x1')],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x307fd9('0x2')](_0x307fd9('0x3'),_0x307fd9('0x6'),'roundrobin'),'allowNull':![]},'lastAgent':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a211_0x4abc=['beepall','name','exports','INTEGER','ENUM','sequelize','roundrobin','STRING'];(function(_0x27cbe8,_0x4abcb5){const _0x532faa=function(_0x197a9f){while(--_0x197a9f){_0x27cbe8['push'](_0x27cbe8['shift']());}};_0x532faa(++_0x4abcb5);}(a211_0x4abc,0x1c7));const a211_0x532f=function(_0x27cbe8,_0x4abcb5){_0x27cbe8=_0x27cbe8-0x0;let _0x532faa=a211_0x4abc[_0x27cbe8];return _0x532faa;};const _0x1b4dfa=a211_0x532f;'use strict';const Sequelize=require(_0x1b4dfa('0x6'));module[_0x1b4dfa('0x3')]={'name':{'type':Sequelize[_0x1b4dfa('0x0')],'unique':_0x1b4dfa('0x2'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x1b4dfa('0x0')]},'timeout':{'type':Sequelize[_0x1b4dfa('0x4')],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x1b4dfa('0x5')]('rrmemory',_0x1b4dfa('0x1'),_0x1b4dfa('0x7')),'allowNull':![]},'lastAgent':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.controller.js b/server/api/faxQueue/faxQueue.controller.js index 5b9a323..ea8934c 100644 --- a/server/api/faxQueue/faxQueue.controller.js +++ b/server/api/faxQueue/faxQueue.controller.js @@ -1 +1 @@ -const a212_0x3a8e=['agent','UserId','filter','lodash','findOne','FaxQueues','name','undefined','field','api','error','register','describe','offset','userProfileId','include','updatedAt','fields','autoAssociation','./faxQueue.socket','union','VIRTUAL','merge','sendStatus','addTeams','FaxQueueId','SELECT','removeTeams','createdAt','filters','attributes','where','count','push','type','User','join','getMembers','nolimit','Unable\x20to\x20retrieve\x20the\x20current\x20user','userFaxQueue:remove','ut.TeamId\x20=\x20tq.TeamId','addAgents','FaxQueueId\x20=\x20?','pick','destroy','update','includeAll','forEach','Team','flatMap','clone','FaxQueue','online','model','removeAgents','user','emit','status','then','omit','team_has_fax_queues','json','get','order','like','all','getAgents','limit','tq.TeamId','set','options','catch','UserProfileResource','getTeams','show','send','squel','SIP','keys','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../mysqldb','QueryTypes','length','value','UserFaxQueue','params','sort','compact','body','../../components/parsers/qs','transaction','ids','rawAttributes','interface','map','includes','Agents','findAll','findOrCreate','key','TeamId','Content-Range','userFaxQueue:save','ut.UserId\x20=\x20?','create','query','../../config/logger','isArray','voicePause','faxPause','intersection','sequelize','rows'];(function(_0x45b21e,_0x3a8ed9){const _0x242561=function(_0x55309d){while(--_0x55309d){_0x45b21e['push'](_0x45b21e['shift']());}};_0x242561(++_0x3a8ed9);}(a212_0x3a8e,0x151));const a212_0x2425=function(_0x45b21e,_0x3a8ed9){_0x45b21e=_0x45b21e-0x0;let _0x242561=a212_0x3a8e[_0x45b21e];return _0x242561;};const _0x16f032=a212_0x2425;'use strict';const util=require('util'),_=require(_0x16f032('0x8')),squel=require(_0x16f032('0x52')),qs=require(_0x16f032('0x5f')),logger=require(_0x16f032('0x70'))(_0x16f032('0xe')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x16f032('0x56'))['db'],{Op}=require('sequelize');require(_0x16f032('0x18'))[_0x16f032('0x10')](socket);function respondWithStatusCode(_0x55309d,_0x2995e0){return _0x2995e0=_0x2995e0||0xcc,function(_0x38ee69){const _0x5a4646=a212_0x2425;if(_0x38ee69)return _0x55309d[_0x5a4646('0x1c')](_0x2995e0);return _0x55309d[_0x5a4646('0x3f')](_0x2995e0)['end']();};}function respondWithResult(_0x42e7e6,_0x3629e6){return _0x3629e6=_0x3629e6||0xc8,function(_0x4dce8c){const _0x181d10=a212_0x2425;if(_0x4dce8c)return _0x42e7e6['status'](_0x3629e6)[_0x181d10('0x43')](_0x4dce8c);};}function respondWithFilteredResult(_0x1b5593,_0xcd0553){return function(_0x713853){const _0x4abaf8=a212_0x2425;if(_0x713853){const _0x2a30e2=_0x713853[_0x4abaf8('0x25')],_0x37392d=_0xcd0553[_0x4abaf8('0x12')];let _0x48f997=_0xcd0553['offset']+_0xcd0553['limit'],_0x353802;return _0x48f997>=_0x2a30e2?(_0x48f997=_0x2a30e2,_0x353802=0xc8):_0x353802=0xce,_0x1b5593[_0x4abaf8('0x3f')](_0x353802),_0x1b5593[_0x4abaf8('0x4b')](_0x4abaf8('0x6b'),_0x37392d+'-'+_0x48f997+'/'+_0x2a30e2)['json'](_0x713853);}return null;};}function saveUpdates(_0x3133f0){return function(_0x33a0f5){const _0x457cab=a212_0x2425;if(_0x33a0f5)return _0x33a0f5[_0x457cab('0x33')](_0x3133f0)[_0x457cab('0x40')](function(_0x53458e){return _0x53458e;});return null;};}function removeEntity(_0x31a4b8){return function(_0xb431b3){const _0x4bdb33=a212_0x2425;if(_0xb431b3)return _0xb431b3[_0x4bdb33('0x32')]()[_0x4bdb33('0x40')](function(){const _0x4f244e=_0x4bdb33,_0x4f08a0=_0xb431b3[_0x4f244e('0x44')]({'plain':!![]}),_0x42b2d6=_0x4f244e('0xa');return db['UserProfileResource'][_0x4f244e('0x32')]({'where':{'type':_0x42b2d6,'resourceId':_0x4f08a0['id']}})[_0x4f244e('0x40')](function(){return _0xb431b3;});})['then'](function(){const _0x25b3b8=_0x4bdb33;_0x31a4b8[_0x25b3b8('0x3f')](0xcc)['end']();});};}function handleEntityNotFound(_0x5a0e55){return function(_0x5c07e2){const _0x475699=a212_0x2425;return!_0x5c07e2&&_0x5a0e55[_0x475699('0x1c')](0x194),_0x5c07e2;};}function handleError(_0x4dcdf3,_0x95d28e){return _0x95d28e=_0x95d28e||0x1f4,function(_0x2322ed){const _0x527661=a212_0x2425;logger[_0x527661('0xf')](_0x2322ed['stack']),_0x2322ed['name']&&delete _0x2322ed[_0x527661('0xb')],_0x4dcdf3['status'](_0x95d28e)[_0x527661('0x51')](_0x2322ed);};}exports['index']=function(_0x22b9c7,_0x8b1594){const _0x3e5f66=_0x16f032;let _0x369191={};const _0x3558b8={},_0x41780f={'count':0x0,'rows':[]},_0x6a4998=_[_0x3e5f66('0x64')](db[_0x3e5f66('0x39')][_0x3e5f66('0x62')],function(_0x4a86c2){const _0x4f8cd1=_0x3e5f66;return{'name':_0x4a86c2['fieldName'],'type':_0x4a86c2[_0x4f8cd1('0x27')][_0x4f8cd1('0x69')]};});_0x3558b8[_0x3e5f66('0x3b')]=_[_0x3e5f66('0x64')](_0x6a4998,'name'),_0x3558b8[_0x3e5f66('0x6f')]=_['keys'](_0x22b9c7['query']),_0x3558b8['filters']=_[_0x3e5f66('0x2')](_0x3558b8[_0x3e5f66('0x3b')],_0x3558b8['query']),_0x369191[_0x3e5f66('0x23')]=_[_0x3e5f66('0x2')](_0x3558b8[_0x3e5f66('0x3b')],qs['fields'](_0x22b9c7[_0x3e5f66('0x6f')][_0x3e5f66('0x16')])),_0x369191[_0x3e5f66('0x23')]=_0x369191[_0x3e5f66('0x23')][_0x3e5f66('0x58')]?_0x369191[_0x3e5f66('0x23')]:_0x3558b8[_0x3e5f66('0x3b')];typeof _0x22b9c7['query']['nolimit']===_0x3e5f66('0xc')&&(_0x369191[_0x3e5f66('0x49')]=qs[_0x3e5f66('0x49')](_0x22b9c7[_0x3e5f66('0x6f')][_0x3e5f66('0x49')]),_0x369191[_0x3e5f66('0x12')]=qs['offset'](_0x22b9c7[_0x3e5f66('0x6f')][_0x3e5f66('0x12')]));_0x369191[_0x3e5f66('0x45')]=qs['sort'](_0x22b9c7[_0x3e5f66('0x6f')][_0x3e5f66('0x5c')]),_0x369191['where']=qs[_0x3e5f66('0x22')](_['pick'](_0x22b9c7[_0x3e5f66('0x6f')],_0x3558b8[_0x3e5f66('0x22')]),_0x6a4998);_0x22b9c7[_0x3e5f66('0x6f')][_0x3e5f66('0x7')]&&(_0x369191[_0x3e5f66('0x24')]=_[_0x3e5f66('0x1b')](_0x369191['where'],{[Op['or']]:_[_0x3e5f66('0x64')](_0x6a4998,function(_0x1006cd){const _0x46776b=_0x3e5f66;if(_0x1006cd[_0x46776b('0x27')]!==_0x46776b('0x1a')){const _0x2d7d31={};return _0x2d7d31[_0x1006cd['name']]={[Op[_0x46776b('0x46')]]:'%'+_0x22b9c7[_0x46776b('0x6f')]['filter']+'%'},_0x2d7d31;}})}));_0x369191=_[_0x3e5f66('0x1b')]({},_0x369191,_0x22b9c7[_0x3e5f66('0x4c')]);const _0x789f38={'where':_0x369191[_0x3e5f66('0x24')]};return db[_0x3e5f66('0x39')]['count'](_0x789f38)[_0x3e5f66('0x40')](function(_0x5224bc){const _0x3c58c7=_0x3e5f66;return _0x41780f[_0x3c58c7('0x25')]=_0x5224bc,_0x22b9c7['query'][_0x3c58c7('0x34')]&&(_0x369191[_0x3c58c7('0x14')]=[{'all':!![]}]),db[_0x3c58c7('0x39')][_0x3c58c7('0x67')](_0x369191);})[_0x3e5f66('0x40')](function(_0x514fd5){const _0x98d55e=_0x3e5f66;return _0x41780f[_0x98d55e('0x4')]=_0x514fd5,_0x41780f;})[_0x3e5f66('0x40')](respondWithFilteredResult(_0x8b1594,_0x369191))[_0x3e5f66('0x4d')](handleError(_0x8b1594,null));},exports[_0x16f032('0x50')]=function(_0x89707d,_0x2f0de9){const _0x31974b=_0x16f032;let _0x6f8a6e={'raw':!![],'where':{'id':_0x89707d['params']['id']}};const _0x1ba089={};return _0x1ba089[_0x31974b('0x3b')]=_[_0x31974b('0x54')](db['FaxQueue']['rawAttributes']),_0x1ba089[_0x31974b('0x6f')]=_[_0x31974b('0x54')](_0x89707d[_0x31974b('0x6f')]),_0x1ba089[_0x31974b('0x22')]=_[_0x31974b('0x2')](_0x1ba089['model'],_0x1ba089[_0x31974b('0x6f')]),_0x6f8a6e['attributes']=_[_0x31974b('0x2')](_0x1ba089[_0x31974b('0x3b')],qs[_0x31974b('0x16')](_0x89707d[_0x31974b('0x6f')]['fields'])),_0x6f8a6e['attributes']=_0x6f8a6e['attributes'][_0x31974b('0x58')]?_0x6f8a6e['attributes']:_0x1ba089[_0x31974b('0x3b')],_0x89707d[_0x31974b('0x6f')][_0x31974b('0x34')]&&(_0x6f8a6e[_0x31974b('0x14')]=[{'all':!![]}]),_0x6f8a6e=_[_0x31974b('0x1b')]({},_0x6f8a6e,_0x89707d['options']),db['FaxQueue'][_0x31974b('0x9')](_0x6f8a6e)[_0x31974b('0x40')](handleEntityNotFound(_0x2f0de9,null))[_0x31974b('0x40')](respondWithResult(_0x2f0de9,null))[_0x31974b('0x4d')](handleError(_0x2f0de9,null));},exports['create']=function(_0x4c72c9,_0x48de97){const _0x551acb=_0x16f032;return db[_0x551acb('0x39')][_0x551acb('0x6e')](_0x4c72c9[_0x551acb('0x5e')],{})['then'](function(_0xca3fc1){const _0x4f966b=_0x551acb,_0x370779=_0x4c72c9[_0x4f966b('0x3d')][_0x4f966b('0x44')]({'plain':!![]});if(!_0x370779)throw new Error(_0x4f966b('0x2c'));if(_0x370779['role']===_0x4f966b('0x3d')){const _0x4fbf4c=_0xca3fc1[_0x4f966b('0x44')]({'plain':!![]}),_0x1d8c40=_0x4f966b('0xa');return db['UserProfileSection'][_0x4f966b('0x9')]({'where':{'name':_0x1d8c40,'userProfileId':_0x370779[_0x4f966b('0x13')]},'raw':!![]})[_0x4f966b('0x40')](function(_0x48eca4){const _0x5bae19=_0x4f966b;return _0x48eca4&&_0x48eca4[_0x5bae19('0x17')]===0x0?db[_0x5bae19('0x4e')][_0x5bae19('0x6e')]({'name':_0x4fbf4c[_0x5bae19('0xb')],'resourceId':_0x4fbf4c['id'],'type':_0x48eca4[_0x5bae19('0xb')],'sectionId':_0x48eca4['id']},{})[_0x5bae19('0x40')](function(){return _0xca3fc1;}):_0xca3fc1;})[_0x4f966b('0x4d')](function(_0x38d244){const _0x2ccc8b=_0x4f966b;logger[_0x2ccc8b('0xf')](_0x2ccc8b('0x55'),_0x38d244);throw _0x38d244;});}return _0xca3fc1;})[_0x551acb('0x40')](respondWithResult(_0x48de97,0xc9))['catch'](handleError(_0x48de97,null));},exports[_0x16f032('0x33')]=function(_0x19a401,_0x30a4ff){const _0x201f66=_0x16f032;return _0x19a401[_0x201f66('0x5e')]['id']&&delete _0x19a401['body']['id'],db[_0x201f66('0x39')][_0x201f66('0x9')]({'where':{'id':_0x19a401[_0x201f66('0x5b')]['id']}})['then'](handleEntityNotFound(_0x30a4ff,null))[_0x201f66('0x40')](saveUpdates(_0x19a401[_0x201f66('0x5e')],null))[_0x201f66('0x40')](respondWithResult(_0x30a4ff,null))[_0x201f66('0x4d')](handleError(_0x30a4ff,null));},exports[_0x16f032('0x32')]=function(_0x5be4d4,_0x2bdae7){const _0x16c868=_0x16f032;return db[_0x16c868('0x39')][_0x16c868('0x9')]({'where':{'id':_0x5be4d4[_0x16c868('0x5b')]['id']}})[_0x16c868('0x40')](handleEntityNotFound(_0x2bdae7,null))[_0x16c868('0x40')](removeEntity(_0x2bdae7,null))[_0x16c868('0x4d')](handleError(_0x2bdae7,null));},exports[_0x16f032('0x11')]=function(_0x3bad5a,_0x1c69ee){const _0x271c2a=_0x16f032;return db[_0x271c2a('0x39')][_0x271c2a('0x11')]()[_0x271c2a('0x40')](respondWithResult(_0x1c69ee,null))[_0x271c2a('0x4d')](handleError(_0x1c69ee,null));},exports[_0x16f032('0x2a')]=function(_0x1dcfca,_0x510f05){const _0x2d5c9e=_0x16f032;let _0x351693={'raw':!![],'where':{}};const _0xc3a739={};let _0x489761;return db[_0x2d5c9e('0x39')][_0x2d5c9e('0x9')]({'where':{'id':_0x1dcfca[_0x2d5c9e('0x5b')]['id']}})[_0x2d5c9e('0x40')](handleEntityNotFound(_0x510f05,null))[_0x2d5c9e('0x40')](function(_0x27c4e5){const _0x210324=_0x2d5c9e;if(_0x27c4e5)return _0x489761=_0x27c4e5[_0x210324('0x44')]({'plain':!![]}),_0xc3a739['model']=_['keys'](db['UserFaxQueue'][_0x210324('0x62')]),_0xc3a739['query']=_[_0x210324('0x54')](_0x1dcfca[_0x210324('0x6f')]),_0xc3a739[_0x210324('0x22')]=_[_0x210324('0x2')](_0xc3a739[_0x210324('0x3b')],_0xc3a739[_0x210324('0x6f')]),_0x351693['attributes']=_[_0x210324('0x2')](_0xc3a739[_0x210324('0x3b')],qs[_0x210324('0x16')](_0x1dcfca[_0x210324('0x6f')]['fields'])),_0x351693[_0x210324('0x23')]=_0x351693['attributes'][_0x210324('0x58')]?_0x351693[_0x210324('0x23')]:_0xc3a739['model'],typeof _0x1dcfca['query'][_0x210324('0x2b')]===_0x210324('0xc')&&(_0x351693['limit']=qs[_0x210324('0x49')](_0x1dcfca['query']['limit']),_0x351693[_0x210324('0x12')]=qs[_0x210324('0x12')](_0x1dcfca[_0x210324('0x6f')][_0x210324('0x12')])),_0x351693[_0x210324('0x45')]=qs[_0x210324('0x5c')](_0x1dcfca[_0x210324('0x6f')][_0x210324('0x5c')]),_0x351693[_0x210324('0x24')]=qs[_0x210324('0x22')](_[_0x210324('0x31')](_0x1dcfca[_0x210324('0x6f')],_0xc3a739[_0x210324('0x22')])),_0x351693[_0x210324('0x24')][_0x210324('0x1e')]=_0x27c4e5['id'],_0x1dcfca[_0x210324('0x6f')][_0x210324('0x7')]&&(_0x351693['where']=_[_0x210324('0x1b')](_0x351693[_0x210324('0x24')],{[Op['or']]:_[_0x210324('0x64')](_0x351693[_0x210324('0x23')],function(_0x433ec5){const _0x52a4c8=_0x210324,_0x2fc878={};return _0x2fc878[_0x433ec5]={[Op[_0x52a4c8('0x46')]]:'%'+_0x1dcfca[_0x52a4c8('0x6f')][_0x52a4c8('0x7')]+'%'},_0x2fc878;})})),_0x351693=_[_0x210324('0x1b')]({},_0x351693,_0x1dcfca[_0x210324('0x4c')]),db[_0x210324('0x5a')][_0x210324('0x67')](_0x351693);})['then'](function(_0x183333){const _0x5acf2f=_0x2d5c9e;if(_0x183333)return db[_0x5acf2f('0x28')]['findAndCountAll']({'where':{'id':_[_0x5acf2f('0x64')](_0x183333,_0x5acf2f('0x6')),'role':_0x5acf2f('0x5')},'attributes':['id',_0x5acf2f('0xb'),_0x5acf2f('0x1'),_0x5acf2f('0x15'),_0x5acf2f('0x21')]});})[_0x2d5c9e('0x40')](function(_0x1861a1){const _0x1564db=_0x2d5c9e;return _0x1861a1?{'count':_0x1861a1[_0x1564db('0x25')],'rows':_['map'](_0x1861a1[_0x1564db('0x4')],function(_0x511249){const _0x55f0fc=_0x1564db;return{'membername':_0x511249[_0x55f0fc('0xb')],'UserId':_0x511249['id'],'queue_name':_0x489761[_0x55f0fc('0xb')],'FaxQueueId':_0x489761['id'],'interface':util['format']('%s/%s',_0x55f0fc('0x53'),_0x511249['name']),'penalty':0x0,'paused':_0x511249[_0x55f0fc('0x1')],'createdAt':_0x511249[_0x55f0fc('0x21')],'updatedAt':_0x511249[_0x55f0fc('0x15')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x510f05,_0x351693))[_0x2d5c9e('0x4d')](handleError(_0x510f05,null));},exports[_0x16f032('0x4f')]=function(_0x1c56ae,_0x18831b){const _0x358823=_0x16f032;let _0x4eace2={};const _0x51f016={};let _0x5a8a0f,_0x169f9d;return db['FaxQueue'][_0x358823('0x9')]({'where':{'id':_0x1c56ae[_0x358823('0x5b')]['id']}})['then'](handleEntityNotFound(_0x18831b,null))[_0x358823('0x40')](function(_0x24e609){const _0x7ad295=_0x358823;if(_0x24e609)return _0x5a8a0f=_0x24e609,_0x51f016[_0x7ad295('0x3b')]=_[_0x7ad295('0x54')](db[_0x7ad295('0x36')][_0x7ad295('0x62')]),_0x51f016['query']=_['keys'](_0x1c56ae[_0x7ad295('0x6f')]),_0x51f016['filters']=_[_0x7ad295('0x2')](_0x51f016[_0x7ad295('0x3b')],_0x51f016[_0x7ad295('0x6f')]),_0x4eace2['attributes']=_[_0x7ad295('0x2')](_0x51f016[_0x7ad295('0x3b')],qs[_0x7ad295('0x16')](_0x1c56ae[_0x7ad295('0x6f')]['fields'])),_0x4eace2[_0x7ad295('0x23')]=_0x4eace2[_0x7ad295('0x23')][_0x7ad295('0x58')]?_0x4eace2[_0x7ad295('0x23')]:_0x51f016[_0x7ad295('0x3b')],_0x4eace2[_0x7ad295('0x45')]=qs[_0x7ad295('0x5c')](_0x1c56ae[_0x7ad295('0x6f')][_0x7ad295('0x5c')]),_0x4eace2[_0x7ad295('0x24')]=qs[_0x7ad295('0x22')](_['pick'](_0x1c56ae[_0x7ad295('0x6f')],_0x51f016['filters'])),_0x1c56ae[_0x7ad295('0x6f')]['filter']&&(_0x4eace2['where']=_[_0x7ad295('0x1b')](_0x4eace2['where'],{[Op['or']]:_[_0x7ad295('0x64')](_0x4eace2['attributes'],function(_0x1557af){const _0x5f4f21=_0x7ad295,_0x3a3219={};return _0x3a3219[_0x1557af]={[Op[_0x5f4f21('0x46')]]:'%'+_0x1c56ae[_0x5f4f21('0x6f')][_0x5f4f21('0x7')]+'%'},_0x3a3219;})})),_0x4eace2=_[_0x7ad295('0x1b')]({},_0x4eace2,_0x1c56ae[_0x7ad295('0x4c')]),_0x5a8a0f[_0x7ad295('0x4f')](_0x4eace2);})[_0x358823('0x40')](function(_0x16b186){const _0xfb569b=_0x358823;if(_0x16b186)return _0x169f9d=_0x16b186[_0xfb569b('0x58')],typeof _0x1c56ae['query']['nolimit']===_0xfb569b('0xc')&&(_0x4eace2[_0xfb569b('0x49')]=qs[_0xfb569b('0x49')](_0x1c56ae[_0xfb569b('0x6f')][_0xfb569b('0x49')]),_0x4eace2['offset']=qs['offset'](_0x1c56ae['query'][_0xfb569b('0x12')])),_0x5a8a0f[_0xfb569b('0x4f')](_0x4eace2);})[_0x358823('0x40')](function(_0x322118){if(_0x322118)return _0x322118?{'count':_0x169f9d,'rows':_0x322118}:null;})['then'](respondWithResult(_0x18831b,null))[_0x358823('0x4d')](handleError(_0x18831b,null));},exports[_0x16f032('0x1d')]=function(_0x5e79f1,_0x42a557){const _0x56f0ae=_0x16f032,_0x115b99=_0x5e79f1[_0x56f0ae('0x5e')]['ids'];return db[_0x56f0ae('0x36')][_0x56f0ae('0x67')]({'where':{'id':_0x115b99},'attributes':['id'],'include':[{'model':db['User'],'as':_0x56f0ae('0x66'),'attributes':['id',_0x56f0ae('0xb'),_0x56f0ae('0x3a'),_0x56f0ae('0x0'),_0x56f0ae('0x63')],'raw':!![]}]})[_0x56f0ae('0x40')](function(_0x1a6a53){const _0x1daa4a=_0x56f0ae;if(_0x1a6a53){const _0x7d3182=_[_0x1daa4a('0x37')](_0x1a6a53,function(_0x1726ea){const _0x2c03dc=_0x1daa4a,_0x299e6c=_0x1726ea[_0x2c03dc('0x44')]({'plain':!![]});return _0x299e6c[_0x2c03dc('0x66')];});return db[_0x1daa4a('0x39')]['findOne']({'where':{'id':_0x5e79f1[_0x1daa4a('0x5b')]['id']}})['then'](function(_0x5aa3c0){const _0x5c427e=_0x1daa4a;return db['sequelize'][_0x5c427e('0x60')](function(_0x570386){const _0x4d819e=_0x5c427e;return _0x5aa3c0[_0x4d819e('0x1d')](_0x115b99,{'transaction':_0x570386})[_0x4d819e('0x40')](function(){return Promise['each'](_0x7d3182,function(_0x40181a){const _0x582533=a212_0x2425;return db[_0x582533('0x5a')][_0x582533('0x68')]({'where':{'UserId':_0x40181a['id'],'FaxQueueId':_0x5e79f1['params']['id']},'transaction':_0x570386});});})['then'](function(){const _0x1a4d2f=_0x4d819e;_0x7d3182[_0x1a4d2f('0x35')](function(_0x1ed8e3){const _0x4213f4=_0x1a4d2f;socket[_0x4213f4('0x3e')](_0x4213f4('0x6c'),{'UserId':_0x1ed8e3['id'],'FaxQueueId':_0x5aa3c0['id']});});});});});}})[_0x56f0ae('0x40')](respondWithStatusCode(_0x42a557,null))[_0x56f0ae('0x4d')](handleError(_0x42a557,null));},exports[_0x16f032('0x20')]=function(_0xbb70b,_0x4f4ae){const _0x45ded5=_0x16f032;return db[_0x45ded5('0x36')]['findAll']({'where':{'id':_0xbb70b[_0x45ded5('0x6f')]['ids']},'attributes':['id'],'include':[{'model':db[_0x45ded5('0x28')],'as':_0x45ded5('0x66'),'attributes':['id'],'raw':!![]}]})[_0x45ded5('0x40')](handleEntityNotFound(_0x4f4ae,null))[_0x45ded5('0x40')](function(_0x5e47b0){const _0x40063b=_0x45ded5,_0x17b5e1=_[_0x40063b('0x64')](_0x5e47b0,'id');let _0x2dbf84=[];const _0x3b3f27=[],_0x2d3238=squel['select']();_0x2d3238[_0x40063b('0xd')](_0x40063b('0x4a'))['from'](_0x40063b('0x42'),'tq')[_0x40063b('0x29')]('user_has_teams','ut',_0x40063b('0x2e'))['where'](_0x40063b('0x30'),_0xbb70b['params']['id']);for(let _0x2f915a=0x0;_0x2f915a<_0x5e47b0[_0x40063b('0x58')];_0x2f915a+=0x1){const _0x46eb0a=_0x5e47b0[_0x2f915a];for(let _0x1953d2=0x0;_0x1953d2<_0x46eb0a[_0x40063b('0x66')][_0x40063b('0x58')];_0x1953d2+=0x1){const _0x5d725a=_0x46eb0a[_0x40063b('0x66')][_0x1953d2],_0x368bc0=_0x2d3238[_0x40063b('0x38')]();_0x368bc0[_0x40063b('0x24')](_0x40063b('0x6d'),_0x5d725a['id']),_0x3b3f27[_0x40063b('0x26')](db['sequelize'][_0x40063b('0x6f')](_0x368bc0['toString'](),{'type':db[_0x40063b('0x3')][_0x40063b('0x57')][_0x40063b('0x1f')]})[_0x40063b('0x40')](function(_0xcd307b){const _0x510739=_0x40063b;if(_0xcd307b[_0x510739('0x58')]===0x1)return _0x5d725a['id'];else{const _0x2e9fb6=_['every'](_[_0x510739('0x64')](_0xcd307b,_0x510739('0x6a')),function(_0x23f02d){const _0x258a7b=_0x510739;return _[_0x258a7b('0x65')](_0x17b5e1,_0x23f02d);});if(_0x2e9fb6)return _0x5d725a['id'];}}));}}return Promise[_0x40063b('0x47')](_0x3b3f27)[_0x40063b('0x40')](function(_0x4ff9b1){const _0x49a029=_0x40063b;return _0x2dbf84=_(_0x2dbf84)[_0x49a029('0x19')](_0x4ff9b1)[_0x49a029('0x5d')]()[_0x49a029('0x59')](),db[_0x49a029('0x39')]['findOne']({'where':{'id':_0xbb70b[_0x49a029('0x5b')]['id']}})[_0x49a029('0x40')](function(_0x39c7ad){const _0x319cbd=_0x49a029;return db[_0x319cbd('0x3')]['transaction'](function(_0x11e1a9){const _0x51924a=_0x319cbd;return _0x39c7ad[_0x51924a('0x20')](_0xbb70b['query'][_0x51924a('0x61')],{'transaction':_0x11e1a9})['then'](function(){const _0x15c587=_0x51924a;if(!_['isEmpty'](_0x2dbf84))return _0x39c7ad[_0x15c587('0x3c')](_0x2dbf84,{'transaction':_0x11e1a9});})[_0x51924a('0x40')](function(){const _0x2a5261=_0x51924a;_0x2dbf84[_0x2a5261('0x35')](function(_0x1e5463){const _0x30eaab=_0x2a5261;socket[_0x30eaab('0x3e')](_0x30eaab('0x2d'),{'UserId':_0x1e5463,'FaxQueueId':_0x39c7ad['id']});});});});});});})['then'](respondWithStatusCode(_0x4f4ae,null))[_0x45ded5('0x4d')](handleError(_0x4f4ae,null));},exports['addAgents']=function(_0x12be82,_0x1ac837){const _0x4e2156=_0x16f032;return db['FaxQueue'][_0x4e2156('0x9')]({'where':{'id':_0x12be82[_0x4e2156('0x5b')]['id']}})[_0x4e2156('0x40')](function(_0x557311){const _0xe7fec7=_0x4e2156;if(_0x557311)return _0x557311[_0xe7fec7('0x2f')](_0x12be82['body']['ids'],{'through':_[_0xe7fec7('0x41')](_0x12be82['body'],['ids','id'])})[_0xe7fec7('0x40')](function(_0x7cd664){const _0x325f67=_0xe7fec7;for(let _0x2dc7b1=0x0;_0x2dc7b1<_0x12be82[_0x325f67('0x5e')][_0x325f67('0x61')]['length'];_0x2dc7b1+=0x1){socket[_0x325f67('0x3e')](_0x325f67('0x6c'),{'UserId':_0x12be82[_0x325f67('0x5e')]['ids'][_0x2dc7b1],'FaxQueueId':_0x12be82[_0x325f67('0x5b')]['id']});}return _0x7cd664;});})[_0x4e2156('0x40')](respondWithResult(_0x1ac837,null))[_0x4e2156('0x4d')](handleError(_0x1ac837,null));},exports[_0x16f032('0x3c')]=function(_0x4e7129,_0x4111dc){const _0x2ff08e=_0x16f032;return db[_0x2ff08e('0x39')][_0x2ff08e('0x9')]({'where':{'id':_0x4e7129[_0x2ff08e('0x5b')]['id']}})[_0x2ff08e('0x40')](handleEntityNotFound(_0x4111dc,null))['then'](function(_0x49a33c){const _0x1f985e=_0x2ff08e;if(_0x49a33c)return _0x49a33c[_0x1f985e('0x3c')](_0x4e7129[_0x1f985e('0x6f')]['ids'])[_0x1f985e('0x40')](function(){const _0x41d951=_0x1f985e;if(_[_0x41d951('0x71')](_0x4e7129['query'][_0x41d951('0x61')]))for(let _0x2777ea=0x0;_0x2777ea<_0x4e7129[_0x41d951('0x6f')][_0x41d951('0x61')][_0x41d951('0x58')];_0x2777ea+=0x1){socket[_0x41d951('0x3e')](_0x41d951('0x2d'),{'UserId':Number(_0x4e7129[_0x41d951('0x6f')][_0x41d951('0x61')][_0x2777ea]),'FaxQueueId':Number(_0x4e7129[_0x41d951('0x5b')]['id'])});}else socket[_0x41d951('0x3e')](_0x41d951('0x2d'),{'UserId':Number(_0x4e7129['query'][_0x41d951('0x61')]),'FaxQueueId':Number(_0x4e7129[_0x41d951('0x5b')]['id'])});});})[_0x2ff08e('0x40')](respondWithStatusCode(_0x4111dc,null))[_0x2ff08e('0x4d')](handleError(_0x4111dc,null));},exports[_0x16f032('0x48')]=function(_0x421ad2,_0x170896){const _0xa0b2f8=_0x16f032;let _0x46d8a3={};const _0xabb09={};let _0x56ec2a,_0x29aa15;return db[_0xa0b2f8('0x39')][_0xa0b2f8('0x9')]({'where':{'id':_0x421ad2[_0xa0b2f8('0x5b')]['id']}})[_0xa0b2f8('0x40')](handleEntityNotFound(_0x170896,null))['then'](function(_0x2149df){const _0x3e9a21=_0xa0b2f8;if(_0x2149df)return _0x56ec2a=_0x2149df,_0xabb09['model']=_[_0x3e9a21('0x54')](db[_0x3e9a21('0x28')][_0x3e9a21('0x62')]),_0xabb09[_0x3e9a21('0x6f')]=_[_0x3e9a21('0x54')](_0x421ad2[_0x3e9a21('0x6f')]),_0xabb09[_0x3e9a21('0x22')]=_[_0x3e9a21('0x2')](_0xabb09[_0x3e9a21('0x3b')],_0xabb09['query']),_0x46d8a3['attributes']=_[_0x3e9a21('0x2')](_0xabb09[_0x3e9a21('0x3b')],qs[_0x3e9a21('0x16')](_0x421ad2[_0x3e9a21('0x6f')][_0x3e9a21('0x16')])),_0x46d8a3[_0x3e9a21('0x23')]=_0x46d8a3[_0x3e9a21('0x23')]['length']?_0x46d8a3[_0x3e9a21('0x23')]:_0xabb09[_0x3e9a21('0x3b')],_0x46d8a3[_0x3e9a21('0x45')]=qs[_0x3e9a21('0x5c')](_0x421ad2['query']['sort']),_0x46d8a3[_0x3e9a21('0x24')]=qs['filters'](_[_0x3e9a21('0x31')](_0x421ad2[_0x3e9a21('0x6f')],_0xabb09[_0x3e9a21('0x22')])),_0x421ad2[_0x3e9a21('0x6f')][_0x3e9a21('0x7')]&&(_0x46d8a3[_0x3e9a21('0x24')]=_['merge'](_0x46d8a3[_0x3e9a21('0x24')],{[Op['or']]:_[_0x3e9a21('0x64')](_0x46d8a3[_0x3e9a21('0x23')],function(_0x4a75df){const _0x21653c=_0x3e9a21,_0x1e227a={};return _0x1e227a[_0x4a75df]={[Op['like']]:'%'+_0x421ad2['query'][_0x21653c('0x7')]+'%'},_0x1e227a;})})),_0x46d8a3=_[_0x3e9a21('0x1b')]({},_0x46d8a3,_0x421ad2[_0x3e9a21('0x4c')]),_0x56ec2a['getAgents'](_0x46d8a3);})['then'](function(_0x193747){const _0x1fa0fe=_0xa0b2f8;if(_0x193747)return _0x29aa15=_0x193747[_0x1fa0fe('0x58')],typeof _0x421ad2[_0x1fa0fe('0x6f')][_0x1fa0fe('0x2b')]==='undefined'&&(_0x46d8a3[_0x1fa0fe('0x49')]=qs['limit'](_0x421ad2[_0x1fa0fe('0x6f')][_0x1fa0fe('0x49')]),_0x46d8a3[_0x1fa0fe('0x12')]=qs['offset'](_0x421ad2['query'][_0x1fa0fe('0x12')])),_0x56ec2a[_0x1fa0fe('0x48')](_0x46d8a3);})[_0xa0b2f8('0x40')](function(_0xb6fdc4){if(_0xb6fdc4)return _0xb6fdc4?{'count':_0x29aa15,'rows':_0xb6fdc4}:null;})[_0xa0b2f8('0x40')](respondWithResult(_0x170896,null))['catch'](handleError(_0x170896,null));}; \ No newline at end of file +const a212_0x58e0=['addAgents','includeAll','lodash','show','describe','removeAgents','../../rediscache','UserProfileSection','join','addTeams','role','SELECT','register','interface','../../mysqldb','format','include','faxPause','squel','User','online','merge','ut.UserId\x20=\x20?','FaxQueueId','emit','filter','options','type','VIRTUAL','FaxQueues','Unable\x20to\x20retrieve\x20the\x20current\x20user','key','field','intersection','sequelize','agent','userFaxQueue:save','model','all','index','push','createdAt','limit','userFaxQueue:remove','Team','stack','keys','status','name','like','ut.TeamId\x20=\x20tq.TeamId','filters','tq.TeamId','getTeams','where','UserProfileResource','each','getAgents','UserId','sort','nolimit','findAndCountAll','get','findAll','count','toString','Agents','../../components/parsers/qs','then','create','isArray','userProfileId','user','send','attributes','TeamId','order','user_has_teams','length','select','error','query','end','fields','removeTeams','catch','undefined','destroy','pick','map','params','rows','util','ids','updatedAt','rawAttributes','body','forEach','FaxQueue','every','UserFaxQueue','includes','value','team_has_fax_queues','SIP','autoAssociation','from','FaxQueueId\x20=\x20?','sendStatus','findOne','voicePause','%s/%s','update','getMembers','isEmpty','Content-Range','offset','omit'];(function(_0x558f6a,_0x58e03c){const _0x5d10b8=function(_0x1609ab){while(--_0x1609ab){_0x558f6a['push'](_0x558f6a['shift']());}};_0x5d10b8(++_0x58e03c);}(a212_0x58e0,0xfc));const a212_0x5d10=function(_0x558f6a,_0x58e03c){_0x558f6a=_0x558f6a-0x0;let _0x5d10b8=a212_0x58e0[_0x558f6a];return _0x5d10b8;};const _0x621a2f=a212_0x5d10;'use strict';const util=require(_0x621a2f('0x4c')),_=require(_0x621a2f('0x68')),squel=require(_0x621a2f('0x2')),qs=require(_0x621a2f('0x33')),logger=require('../../config/logger')('api'),{getSocket}=require(_0x621a2f('0x6c')),socket=getSocket(),db=require(_0x621a2f('0x74'))['db'],{Op}=require(_0x621a2f('0x12'));require('./faxQueue.socket')[_0x621a2f('0x72')](socket);function respondWithStatusCode(_0x1609ab,_0x180da9){return _0x180da9=_0x180da9||0xcc,function(_0x5f1fe7){const _0x4eed23=a212_0x5d10;if(_0x5f1fe7)return _0x1609ab[_0x4eed23('0x5c')](_0x180da9);return _0x1609ab[_0x4eed23('0x1f')](_0x180da9)[_0x4eed23('0x42')]();};}function respondWithResult(_0x5c9ac2,_0x362958){return _0x362958=_0x362958||0xc8,function(_0x26ce5e){const _0x5a195f=a212_0x5d10;if(_0x26ce5e)return _0x5c9ac2[_0x5a195f('0x1f')](_0x362958)['json'](_0x26ce5e);};}function respondWithFilteredResult(_0x2202ea,_0x2add4e){return function(_0x2e8362){const _0x275616=a212_0x5d10;if(_0x2e8362){const _0xef5b84=_0x2e8362['count'],_0x3dbc3b=_0x2add4e[_0x275616('0x64')];let _0x25c423=_0x2add4e[_0x275616('0x64')]+_0x2add4e[_0x275616('0x1a')],_0x3dc589;return _0x25c423>=_0xef5b84?(_0x25c423=_0xef5b84,_0x3dc589=0xc8):_0x3dc589=0xce,_0x2202ea[_0x275616('0x1f')](_0x3dc589),_0x2202ea['set'](_0x275616('0x63'),_0x3dbc3b+'-'+_0x25c423+'/'+_0xef5b84)['json'](_0x2e8362);}return null;};}function saveUpdates(_0x51c480){return function(_0x47bc5d){const _0x16fd32=a212_0x5d10;if(_0x47bc5d)return _0x47bc5d[_0x16fd32('0x60')](_0x51c480)[_0x16fd32('0x34')](function(_0x1e5a6d){return _0x1e5a6d;});return null;};}function removeEntity(_0x1916b9){return function(_0x249120){const _0x5329d7=a212_0x5d10;if(_0x249120)return _0x249120['destroy']()['then'](function(){const _0x1349c1=a212_0x5d10,_0x508621=_0x249120[_0x1349c1('0x2e')]({'plain':!![]}),_0x722b5d=_0x1349c1('0xd');return db[_0x1349c1('0x27')][_0x1349c1('0x47')]({'where':{'type':_0x722b5d,'resourceId':_0x508621['id']}})[_0x1349c1('0x34')](function(){return _0x249120;});})[_0x5329d7('0x34')](function(){const _0x13a69b=_0x5329d7;_0x1916b9['status'](0xcc)[_0x13a69b('0x42')]();});};}function handleEntityNotFound(_0x589d5c){return function(_0x5f4dc5){const _0x5d23a6=a212_0x5d10;return!_0x5f4dc5&&_0x589d5c[_0x5d23a6('0x5c')](0x194),_0x5f4dc5;};}function handleError(_0x465319,_0x5e2864){return _0x5e2864=_0x5e2864||0x1f4,function(_0x521c57){const _0x26b358=a212_0x5d10;logger[_0x26b358('0x40')](_0x521c57[_0x26b358('0x1d')]),_0x521c57['name']&&delete _0x521c57[_0x26b358('0x20')],_0x465319[_0x26b358('0x1f')](_0x5e2864)[_0x26b358('0x39')](_0x521c57);};}exports[_0x621a2f('0x17')]=function(_0x5baf1e,_0x44a910){const _0x30abf0=_0x621a2f;let _0x2f0b61={};const _0xe61cf5={},_0x5d6365={'count':0x0,'rows':[]},_0x4878db=_['map'](db[_0x30abf0('0x52')][_0x30abf0('0x4f')],function(_0x5a981d){const _0x2ebacd=_0x30abf0;return{'name':_0x5a981d['fieldName'],'type':_0x5a981d[_0x2ebacd('0xb')][_0x2ebacd('0xf')]};});_0xe61cf5['model']=_[_0x30abf0('0x49')](_0x4878db,'name'),_0xe61cf5[_0x30abf0('0x41')]=_[_0x30abf0('0x1e')](_0x5baf1e['query']),_0xe61cf5[_0x30abf0('0x23')]=_[_0x30abf0('0x11')](_0xe61cf5[_0x30abf0('0x15')],_0xe61cf5[_0x30abf0('0x41')]),_0x2f0b61['attributes']=_[_0x30abf0('0x11')](_0xe61cf5[_0x30abf0('0x15')],qs['fields'](_0x5baf1e[_0x30abf0('0x41')][_0x30abf0('0x43')])),_0x2f0b61['attributes']=_0x2f0b61[_0x30abf0('0x3a')][_0x30abf0('0x3e')]?_0x2f0b61[_0x30abf0('0x3a')]:_0xe61cf5['model'];typeof _0x5baf1e[_0x30abf0('0x41')]['nolimit']===_0x30abf0('0x46')&&(_0x2f0b61[_0x30abf0('0x1a')]=qs[_0x30abf0('0x1a')](_0x5baf1e[_0x30abf0('0x41')]['limit']),_0x2f0b61[_0x30abf0('0x64')]=qs[_0x30abf0('0x64')](_0x5baf1e[_0x30abf0('0x41')][_0x30abf0('0x64')]));_0x2f0b61[_0x30abf0('0x3c')]=qs[_0x30abf0('0x2b')](_0x5baf1e['query'][_0x30abf0('0x2b')]),_0x2f0b61[_0x30abf0('0x26')]=qs[_0x30abf0('0x23')](_[_0x30abf0('0x48')](_0x5baf1e['query'],_0xe61cf5['filters']),_0x4878db);_0x5baf1e[_0x30abf0('0x41')]['filter']&&(_0x2f0b61['where']=_['merge'](_0x2f0b61[_0x30abf0('0x26')],{[Op['or']]:_[_0x30abf0('0x49')](_0x4878db,function(_0x42c49f){const _0x43c88e=_0x30abf0;if(_0x42c49f[_0x43c88e('0xb')]!==_0x43c88e('0xc')){const _0xa432cd={};return _0xa432cd[_0x42c49f[_0x43c88e('0x20')]]={[Op[_0x43c88e('0x21')]]:'%'+_0x5baf1e[_0x43c88e('0x41')][_0x43c88e('0x9')]+'%'},_0xa432cd;}})}));_0x2f0b61=_[_0x30abf0('0x5')]({},_0x2f0b61,_0x5baf1e[_0x30abf0('0xa')]);const _0x49e2be={'where':_0x2f0b61['where']};return db['FaxQueue'][_0x30abf0('0x30')](_0x49e2be)[_0x30abf0('0x34')](function(_0x389f18){const _0x3d4c6f=_0x30abf0;return _0x5d6365[_0x3d4c6f('0x30')]=_0x389f18,_0x5baf1e[_0x3d4c6f('0x41')][_0x3d4c6f('0x67')]&&(_0x2f0b61[_0x3d4c6f('0x0')]=[{'all':!![]}]),db[_0x3d4c6f('0x52')][_0x3d4c6f('0x2f')](_0x2f0b61);})[_0x30abf0('0x34')](function(_0x1e4ebd){return _0x5d6365['rows']=_0x1e4ebd,_0x5d6365;})[_0x30abf0('0x34')](respondWithFilteredResult(_0x44a910,_0x2f0b61))['catch'](handleError(_0x44a910,null));},exports[_0x621a2f('0x69')]=function(_0x2e2d5b,_0x40d735){const _0x10382c=_0x621a2f;let _0x1b851d={'raw':!![],'where':{'id':_0x2e2d5b['params']['id']}};const _0x466569={};return _0x466569[_0x10382c('0x15')]=_[_0x10382c('0x1e')](db[_0x10382c('0x52')][_0x10382c('0x4f')]),_0x466569[_0x10382c('0x41')]=_[_0x10382c('0x1e')](_0x2e2d5b['query']),_0x466569[_0x10382c('0x23')]=_[_0x10382c('0x11')](_0x466569[_0x10382c('0x15')],_0x466569[_0x10382c('0x41')]),_0x1b851d[_0x10382c('0x3a')]=_[_0x10382c('0x11')](_0x466569[_0x10382c('0x15')],qs[_0x10382c('0x43')](_0x2e2d5b[_0x10382c('0x41')]['fields'])),_0x1b851d[_0x10382c('0x3a')]=_0x1b851d['attributes'][_0x10382c('0x3e')]?_0x1b851d[_0x10382c('0x3a')]:_0x466569[_0x10382c('0x15')],_0x2e2d5b['query']['includeAll']&&(_0x1b851d['include']=[{'all':!![]}]),_0x1b851d=_[_0x10382c('0x5')]({},_0x1b851d,_0x2e2d5b[_0x10382c('0xa')]),db['FaxQueue'][_0x10382c('0x5d')](_0x1b851d)['then'](handleEntityNotFound(_0x40d735,null))[_0x10382c('0x34')](respondWithResult(_0x40d735,null))['catch'](handleError(_0x40d735,null));},exports[_0x621a2f('0x35')]=function(_0x57730b,_0x38e984){const _0x31bc58=_0x621a2f;return db['FaxQueue']['create'](_0x57730b[_0x31bc58('0x50')],{})[_0x31bc58('0x34')](function(_0x3bc64c){const _0x340cd9=_0x31bc58,_0x77331d=_0x57730b[_0x340cd9('0x38')][_0x340cd9('0x2e')]({'plain':!![]});if(!_0x77331d)throw new Error(_0x340cd9('0xe'));if(_0x77331d[_0x340cd9('0x70')]==='user'){const _0x6d073b=_0x3bc64c[_0x340cd9('0x2e')]({'plain':!![]}),_0x1bb67a=_0x340cd9('0xd');return db[_0x340cd9('0x6d')][_0x340cd9('0x5d')]({'where':{'name':_0x1bb67a,'userProfileId':_0x77331d[_0x340cd9('0x37')]},'raw':!![]})[_0x340cd9('0x34')](function(_0x9c4be5){const _0x1a4178=_0x340cd9;return _0x9c4be5&&_0x9c4be5[_0x1a4178('0x59')]===0x0?db[_0x1a4178('0x27')][_0x1a4178('0x35')]({'name':_0x6d073b['name'],'resourceId':_0x6d073b['id'],'type':_0x9c4be5[_0x1a4178('0x20')],'sectionId':_0x9c4be5['id']},{})[_0x1a4178('0x34')](function(){return _0x3bc64c;}):_0x3bc64c;})['catch'](function(_0x46afba){const _0x10dc45=_0x340cd9;logger[_0x10dc45('0x40')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x46afba);throw _0x46afba;});}return _0x3bc64c;})[_0x31bc58('0x34')](respondWithResult(_0x38e984,0xc9))[_0x31bc58('0x45')](handleError(_0x38e984,null));},exports[_0x621a2f('0x60')]=function(_0x4c8c96,_0x441ba8){const _0x2a6d28=_0x621a2f;return _0x4c8c96[_0x2a6d28('0x50')]['id']&&delete _0x4c8c96[_0x2a6d28('0x50')]['id'],db[_0x2a6d28('0x52')][_0x2a6d28('0x5d')]({'where':{'id':_0x4c8c96[_0x2a6d28('0x4a')]['id']}})[_0x2a6d28('0x34')](handleEntityNotFound(_0x441ba8,null))[_0x2a6d28('0x34')](saveUpdates(_0x4c8c96[_0x2a6d28('0x50')],null))[_0x2a6d28('0x34')](respondWithResult(_0x441ba8,null))['catch'](handleError(_0x441ba8,null));},exports[_0x621a2f('0x47')]=function(_0x433ab6,_0x46d4ee){const _0x274b7f=_0x621a2f;return db[_0x274b7f('0x52')][_0x274b7f('0x5d')]({'where':{'id':_0x433ab6[_0x274b7f('0x4a')]['id']}})[_0x274b7f('0x34')](handleEntityNotFound(_0x46d4ee,null))[_0x274b7f('0x34')](removeEntity(_0x46d4ee,null))['catch'](handleError(_0x46d4ee,null));},exports['describe']=function(_0x380fc6,_0x595158){const _0x588f68=_0x621a2f;return db['FaxQueue'][_0x588f68('0x6a')]()['then'](respondWithResult(_0x595158,null))['catch'](handleError(_0x595158,null));},exports[_0x621a2f('0x61')]=function(_0x26471e,_0x17c4af){const _0x35039d=_0x621a2f;let _0x2ff175={'raw':!![],'where':{}};const _0x22edb7={};let _0x20cb48;return db['FaxQueue'][_0x35039d('0x5d')]({'where':{'id':_0x26471e[_0x35039d('0x4a')]['id']}})[_0x35039d('0x34')](handleEntityNotFound(_0x17c4af,null))['then'](function(_0x485fcc){const _0x5bbc02=_0x35039d;if(_0x485fcc)return _0x20cb48=_0x485fcc[_0x5bbc02('0x2e')]({'plain':!![]}),_0x22edb7[_0x5bbc02('0x15')]=_[_0x5bbc02('0x1e')](db[_0x5bbc02('0x54')][_0x5bbc02('0x4f')]),_0x22edb7['query']=_[_0x5bbc02('0x1e')](_0x26471e[_0x5bbc02('0x41')]),_0x22edb7[_0x5bbc02('0x23')]=_[_0x5bbc02('0x11')](_0x22edb7['model'],_0x22edb7[_0x5bbc02('0x41')]),_0x2ff175[_0x5bbc02('0x3a')]=_[_0x5bbc02('0x11')](_0x22edb7[_0x5bbc02('0x15')],qs[_0x5bbc02('0x43')](_0x26471e['query']['fields'])),_0x2ff175[_0x5bbc02('0x3a')]=_0x2ff175[_0x5bbc02('0x3a')][_0x5bbc02('0x3e')]?_0x2ff175['attributes']:_0x22edb7[_0x5bbc02('0x15')],typeof _0x26471e[_0x5bbc02('0x41')][_0x5bbc02('0x2c')]==='undefined'&&(_0x2ff175[_0x5bbc02('0x1a')]=qs[_0x5bbc02('0x1a')](_0x26471e['query'][_0x5bbc02('0x1a')]),_0x2ff175[_0x5bbc02('0x64')]=qs[_0x5bbc02('0x64')](_0x26471e[_0x5bbc02('0x41')]['offset'])),_0x2ff175['order']=qs[_0x5bbc02('0x2b')](_0x26471e[_0x5bbc02('0x41')][_0x5bbc02('0x2b')]),_0x2ff175[_0x5bbc02('0x26')]=qs[_0x5bbc02('0x23')](_[_0x5bbc02('0x48')](_0x26471e['query'],_0x22edb7[_0x5bbc02('0x23')])),_0x2ff175[_0x5bbc02('0x26')][_0x5bbc02('0x7')]=_0x485fcc['id'],_0x26471e[_0x5bbc02('0x41')]['filter']&&(_0x2ff175[_0x5bbc02('0x26')]=_[_0x5bbc02('0x5')](_0x2ff175[_0x5bbc02('0x26')],{[Op['or']]:_[_0x5bbc02('0x49')](_0x2ff175['attributes'],function(_0x15f18f){const _0x377595=_0x5bbc02,_0xe7c7b5={};return _0xe7c7b5[_0x15f18f]={[Op['like']]:'%'+_0x26471e['query'][_0x377595('0x9')]+'%'},_0xe7c7b5;})})),_0x2ff175=_[_0x5bbc02('0x5')]({},_0x2ff175,_0x26471e['options']),db[_0x5bbc02('0x54')][_0x5bbc02('0x2f')](_0x2ff175);})[_0x35039d('0x34')](function(_0xb95c46){const _0xa9d3c4=_0x35039d;if(_0xb95c46)return db['User'][_0xa9d3c4('0x2d')]({'where':{'id':_[_0xa9d3c4('0x49')](_0xb95c46,_0xa9d3c4('0x2a')),'role':_0xa9d3c4('0x13')},'attributes':['id',_0xa9d3c4('0x20'),_0xa9d3c4('0x1'),_0xa9d3c4('0x4e'),_0xa9d3c4('0x19')]});})[_0x35039d('0x34')](function(_0x2b7dfc){const _0x427c51=_0x35039d;return _0x2b7dfc?{'count':_0x2b7dfc[_0x427c51('0x30')],'rows':_[_0x427c51('0x49')](_0x2b7dfc[_0x427c51('0x4b')],function(_0xf255d0){const _0x58465f=_0x427c51;return{'membername':_0xf255d0['name'],'UserId':_0xf255d0['id'],'queue_name':_0x20cb48['name'],'FaxQueueId':_0x20cb48['id'],'interface':util[_0x58465f('0x75')](_0x58465f('0x5f'),_0x58465f('0x58'),_0xf255d0[_0x58465f('0x20')]),'penalty':0x0,'paused':_0xf255d0[_0x58465f('0x1')],'createdAt':_0xf255d0[_0x58465f('0x19')],'updatedAt':_0xf255d0[_0x58465f('0x4e')]};})}:{'count':0x0,'rows':[]};})[_0x35039d('0x34')](respondWithFilteredResult(_0x17c4af,_0x2ff175))['catch'](handleError(_0x17c4af,null));},exports[_0x621a2f('0x25')]=function(_0x5193fd,_0x373453){const _0x5aebf8=_0x621a2f;let _0x490fd2={};const _0x24dcc1={};let _0x31c488,_0x90c55f;return db[_0x5aebf8('0x52')][_0x5aebf8('0x5d')]({'where':{'id':_0x5193fd[_0x5aebf8('0x4a')]['id']}})[_0x5aebf8('0x34')](handleEntityNotFound(_0x373453,null))[_0x5aebf8('0x34')](function(_0x15989b){const _0x2f0517=_0x5aebf8;if(_0x15989b)return _0x31c488=_0x15989b,_0x24dcc1['model']=_[_0x2f0517('0x1e')](db[_0x2f0517('0x1c')][_0x2f0517('0x4f')]),_0x24dcc1['query']=_[_0x2f0517('0x1e')](_0x5193fd['query']),_0x24dcc1['filters']=_[_0x2f0517('0x11')](_0x24dcc1[_0x2f0517('0x15')],_0x24dcc1[_0x2f0517('0x41')]),_0x490fd2[_0x2f0517('0x3a')]=_[_0x2f0517('0x11')](_0x24dcc1['model'],qs[_0x2f0517('0x43')](_0x5193fd[_0x2f0517('0x41')][_0x2f0517('0x43')])),_0x490fd2[_0x2f0517('0x3a')]=_0x490fd2[_0x2f0517('0x3a')]['length']?_0x490fd2[_0x2f0517('0x3a')]:_0x24dcc1[_0x2f0517('0x15')],_0x490fd2[_0x2f0517('0x3c')]=qs[_0x2f0517('0x2b')](_0x5193fd[_0x2f0517('0x41')][_0x2f0517('0x2b')]),_0x490fd2[_0x2f0517('0x26')]=qs['filters'](_[_0x2f0517('0x48')](_0x5193fd[_0x2f0517('0x41')],_0x24dcc1[_0x2f0517('0x23')])),_0x5193fd[_0x2f0517('0x41')]['filter']&&(_0x490fd2[_0x2f0517('0x26')]=_[_0x2f0517('0x5')](_0x490fd2[_0x2f0517('0x26')],{[Op['or']]:_[_0x2f0517('0x49')](_0x490fd2[_0x2f0517('0x3a')],function(_0x15bff2){const _0x490991=_0x2f0517,_0xb7ed56={};return _0xb7ed56[_0x15bff2]={[Op[_0x490991('0x21')]]:'%'+_0x5193fd[_0x490991('0x41')][_0x490991('0x9')]+'%'},_0xb7ed56;})})),_0x490fd2=_['merge']({},_0x490fd2,_0x5193fd[_0x2f0517('0xa')]),_0x31c488['getTeams'](_0x490fd2);})[_0x5aebf8('0x34')](function(_0x20e11a){const _0x55a7e9=_0x5aebf8;if(_0x20e11a)return _0x90c55f=_0x20e11a[_0x55a7e9('0x3e')],typeof _0x5193fd[_0x55a7e9('0x41')]['nolimit']==='undefined'&&(_0x490fd2[_0x55a7e9('0x1a')]=qs[_0x55a7e9('0x1a')](_0x5193fd[_0x55a7e9('0x41')][_0x55a7e9('0x1a')]),_0x490fd2['offset']=qs[_0x55a7e9('0x64')](_0x5193fd[_0x55a7e9('0x41')][_0x55a7e9('0x64')])),_0x31c488[_0x55a7e9('0x25')](_0x490fd2);})[_0x5aebf8('0x34')](function(_0x5be2c8){if(_0x5be2c8)return _0x5be2c8?{'count':_0x90c55f,'rows':_0x5be2c8}:null;})[_0x5aebf8('0x34')](respondWithResult(_0x373453,null))[_0x5aebf8('0x45')](handleError(_0x373453,null));},exports[_0x621a2f('0x6f')]=function(_0x174c8c,_0x467695){const _0x390bcf=_0x621a2f,_0x591d0=_0x174c8c['body'][_0x390bcf('0x4d')];return db['Team']['findAll']({'where':{'id':_0x591d0},'attributes':['id'],'include':[{'model':db[_0x390bcf('0x3')],'as':_0x390bcf('0x32'),'attributes':['id',_0x390bcf('0x20'),_0x390bcf('0x4'),_0x390bcf('0x5e'),_0x390bcf('0x73')],'raw':!![]}]})['then'](function(_0x1597ed){const _0x41056d=_0x390bcf;if(_0x1597ed){const _0xec49af=_['flatMap'](_0x1597ed,function(_0x2480d7){const _0xf51939=a212_0x5d10,_0x23dda0=_0x2480d7[_0xf51939('0x2e')]({'plain':!![]});return _0x23dda0[_0xf51939('0x32')];});return db[_0x41056d('0x52')][_0x41056d('0x5d')]({'where':{'id':_0x174c8c[_0x41056d('0x4a')]['id']}})[_0x41056d('0x34')](function(_0x1354eb){const _0x229038=_0x41056d;return db[_0x229038('0x12')]['transaction'](function(_0x3ae9f5){const _0xd1cbf=_0x229038;return _0x1354eb[_0xd1cbf('0x6f')](_0x591d0,{'transaction':_0x3ae9f5})[_0xd1cbf('0x34')](function(){const _0x31cadd=_0xd1cbf;return Promise[_0x31cadd('0x28')](_0xec49af,function(_0x3f68d3){const _0x1397df=_0x31cadd;return db[_0x1397df('0x54')]['findOrCreate']({'where':{'UserId':_0x3f68d3['id'],'FaxQueueId':_0x174c8c[_0x1397df('0x4a')]['id']},'transaction':_0x3ae9f5});});})[_0xd1cbf('0x34')](function(){const _0x559708=_0xd1cbf;_0xec49af[_0x559708('0x51')](function(_0x3d28d9){const _0x2cdaac=_0x559708;socket[_0x2cdaac('0x8')](_0x2cdaac('0x14'),{'UserId':_0x3d28d9['id'],'FaxQueueId':_0x1354eb['id']});});});});});}})[_0x390bcf('0x34')](respondWithStatusCode(_0x467695,null))[_0x390bcf('0x45')](handleError(_0x467695,null));},exports[_0x621a2f('0x44')]=function(_0x54cb5d,_0x1c924a){const _0x2ae19d=_0x621a2f;return db[_0x2ae19d('0x1c')][_0x2ae19d('0x2f')]({'where':{'id':_0x54cb5d['query'][_0x2ae19d('0x4d')]},'attributes':['id'],'include':[{'model':db[_0x2ae19d('0x3')],'as':_0x2ae19d('0x32'),'attributes':['id'],'raw':!![]}]})[_0x2ae19d('0x34')](handleEntityNotFound(_0x1c924a,null))[_0x2ae19d('0x34')](function(_0x1e6e89){const _0x145877=_0x2ae19d,_0x120a62=_['map'](_0x1e6e89,'id');let _0x5d7703=[];const _0x27bac7=[],_0x4de3ea=squel[_0x145877('0x3f')]();_0x4de3ea[_0x145877('0x10')](_0x145877('0x24'))[_0x145877('0x5a')](_0x145877('0x57'),'tq')[_0x145877('0x6e')](_0x145877('0x3d'),'ut',_0x145877('0x22'))[_0x145877('0x26')](_0x145877('0x5b'),_0x54cb5d[_0x145877('0x4a')]['id']);for(let _0x343919=0x0;_0x343919<_0x1e6e89[_0x145877('0x3e')];_0x343919+=0x1){const _0x132b46=_0x1e6e89[_0x343919];for(let _0x597d8e=0x0;_0x597d8e<_0x132b46[_0x145877('0x32')]['length'];_0x597d8e+=0x1){const _0x5dc893=_0x132b46['Agents'][_0x597d8e],_0x345efb=_0x4de3ea['clone']();_0x345efb[_0x145877('0x26')](_0x145877('0x6'),_0x5dc893['id']),_0x27bac7[_0x145877('0x18')](db[_0x145877('0x12')]['query'](_0x345efb[_0x145877('0x31')](),{'type':db[_0x145877('0x12')]['QueryTypes'][_0x145877('0x71')]})['then'](function(_0x5245f7){const _0x34f28c=_0x145877;if(_0x5245f7[_0x34f28c('0x3e')]===0x1)return _0x5dc893['id'];else{const _0x26b6c3=_[_0x34f28c('0x53')](_[_0x34f28c('0x49')](_0x5245f7,_0x34f28c('0x3b')),function(_0x1ada62){const _0x1af27e=_0x34f28c;return _[_0x1af27e('0x55')](_0x120a62,_0x1ada62);});if(_0x26b6c3)return _0x5dc893['id'];}}));}}return Promise[_0x145877('0x16')](_0x27bac7)[_0x145877('0x34')](function(_0x35895c){const _0xa784be=_0x145877;return _0x5d7703=_(_0x5d7703)['union'](_0x35895c)['compact']()[_0xa784be('0x56')](),db[_0xa784be('0x52')][_0xa784be('0x5d')]({'where':{'id':_0x54cb5d['params']['id']}})[_0xa784be('0x34')](function(_0x2336bc){const _0x31c3e6=_0xa784be;return db[_0x31c3e6('0x12')]['transaction'](function(_0x3da4e8){const _0x33508f=_0x31c3e6;return _0x2336bc['removeTeams'](_0x54cb5d[_0x33508f('0x41')][_0x33508f('0x4d')],{'transaction':_0x3da4e8})[_0x33508f('0x34')](function(){const _0x4667af=_0x33508f;if(!_[_0x4667af('0x62')](_0x5d7703))return _0x2336bc[_0x4667af('0x6b')](_0x5d7703,{'transaction':_0x3da4e8});})[_0x33508f('0x34')](function(){_0x5d7703['forEach'](function(_0x35c6bd){const _0x12fbc8=a212_0x5d10;socket[_0x12fbc8('0x8')]('userFaxQueue:remove',{'UserId':_0x35c6bd,'FaxQueueId':_0x2336bc['id']});});});});});});})[_0x2ae19d('0x34')](respondWithStatusCode(_0x1c924a,null))['catch'](handleError(_0x1c924a,null));},exports[_0x621a2f('0x66')]=function(_0x477864,_0xec4b6c){const _0x51a19b=_0x621a2f;return db[_0x51a19b('0x52')]['findOne']({'where':{'id':_0x477864[_0x51a19b('0x4a')]['id']}})[_0x51a19b('0x34')](function(_0x2332d1){const _0x2f6b65=_0x51a19b;if(_0x2332d1)return _0x2332d1[_0x2f6b65('0x66')](_0x477864[_0x2f6b65('0x50')][_0x2f6b65('0x4d')],{'through':_[_0x2f6b65('0x65')](_0x477864[_0x2f6b65('0x50')],[_0x2f6b65('0x4d'),'id'])})[_0x2f6b65('0x34')](function(_0x430d33){const _0x4b00f1=_0x2f6b65;for(let _0x50e637=0x0;_0x50e637<_0x477864['body'][_0x4b00f1('0x4d')][_0x4b00f1('0x3e')];_0x50e637+=0x1){socket[_0x4b00f1('0x8')](_0x4b00f1('0x14'),{'UserId':_0x477864['body'][_0x4b00f1('0x4d')][_0x50e637],'FaxQueueId':_0x477864[_0x4b00f1('0x4a')]['id']});}return _0x430d33;});})['then'](respondWithResult(_0xec4b6c,null))[_0x51a19b('0x45')](handleError(_0xec4b6c,null));},exports['removeAgents']=function(_0x26d3fd,_0xa56e5e){const _0x1ce4b5=_0x621a2f;return db[_0x1ce4b5('0x52')][_0x1ce4b5('0x5d')]({'where':{'id':_0x26d3fd[_0x1ce4b5('0x4a')]['id']}})[_0x1ce4b5('0x34')](handleEntityNotFound(_0xa56e5e,null))['then'](function(_0x1ee92d){const _0x5964ab=_0x1ce4b5;if(_0x1ee92d)return _0x1ee92d['removeAgents'](_0x26d3fd[_0x5964ab('0x41')][_0x5964ab('0x4d')])[_0x5964ab('0x34')](function(){const _0x35058f=_0x5964ab;if(_[_0x35058f('0x36')](_0x26d3fd['query']['ids']))for(let _0x3bdde7=0x0;_0x3bdde7<_0x26d3fd[_0x35058f('0x41')]['ids'][_0x35058f('0x3e')];_0x3bdde7+=0x1){socket[_0x35058f('0x8')](_0x35058f('0x1b'),{'UserId':Number(_0x26d3fd[_0x35058f('0x41')][_0x35058f('0x4d')][_0x3bdde7]),'FaxQueueId':Number(_0x26d3fd[_0x35058f('0x4a')]['id'])});}else socket[_0x35058f('0x8')](_0x35058f('0x1b'),{'UserId':Number(_0x26d3fd[_0x35058f('0x41')]['ids']),'FaxQueueId':Number(_0x26d3fd[_0x35058f('0x4a')]['id'])});});})[_0x1ce4b5('0x34')](respondWithStatusCode(_0xa56e5e,null))[_0x1ce4b5('0x45')](handleError(_0xa56e5e,null));},exports[_0x621a2f('0x29')]=function(_0x246423,_0x970a6e){const _0x1ac99b=_0x621a2f;let _0x2d3be1={};const _0x4cbdf1={};let _0x25c774,_0x460e0d;return db['FaxQueue'][_0x1ac99b('0x5d')]({'where':{'id':_0x246423[_0x1ac99b('0x4a')]['id']}})[_0x1ac99b('0x34')](handleEntityNotFound(_0x970a6e,null))[_0x1ac99b('0x34')](function(_0x30844b){const _0xa7d83c=_0x1ac99b;if(_0x30844b)return _0x25c774=_0x30844b,_0x4cbdf1[_0xa7d83c('0x15')]=_['keys'](db[_0xa7d83c('0x3')][_0xa7d83c('0x4f')]),_0x4cbdf1[_0xa7d83c('0x41')]=_[_0xa7d83c('0x1e')](_0x246423[_0xa7d83c('0x41')]),_0x4cbdf1[_0xa7d83c('0x23')]=_[_0xa7d83c('0x11')](_0x4cbdf1[_0xa7d83c('0x15')],_0x4cbdf1[_0xa7d83c('0x41')]),_0x2d3be1[_0xa7d83c('0x3a')]=_[_0xa7d83c('0x11')](_0x4cbdf1['model'],qs[_0xa7d83c('0x43')](_0x246423[_0xa7d83c('0x41')]['fields'])),_0x2d3be1[_0xa7d83c('0x3a')]=_0x2d3be1[_0xa7d83c('0x3a')][_0xa7d83c('0x3e')]?_0x2d3be1['attributes']:_0x4cbdf1[_0xa7d83c('0x15')],_0x2d3be1[_0xa7d83c('0x3c')]=qs[_0xa7d83c('0x2b')](_0x246423[_0xa7d83c('0x41')][_0xa7d83c('0x2b')]),_0x2d3be1[_0xa7d83c('0x26')]=qs[_0xa7d83c('0x23')](_[_0xa7d83c('0x48')](_0x246423[_0xa7d83c('0x41')],_0x4cbdf1[_0xa7d83c('0x23')])),_0x246423[_0xa7d83c('0x41')][_0xa7d83c('0x9')]&&(_0x2d3be1['where']=_[_0xa7d83c('0x5')](_0x2d3be1['where'],{[Op['or']]:_[_0xa7d83c('0x49')](_0x2d3be1[_0xa7d83c('0x3a')],function(_0x543441){const _0x4a1d08=_0xa7d83c,_0xedae6b={};return _0xedae6b[_0x543441]={[Op['like']]:'%'+_0x246423[_0x4a1d08('0x41')][_0x4a1d08('0x9')]+'%'},_0xedae6b;})})),_0x2d3be1=_[_0xa7d83c('0x5')]({},_0x2d3be1,_0x246423[_0xa7d83c('0xa')]),_0x25c774[_0xa7d83c('0x29')](_0x2d3be1);})['then'](function(_0x12c927){const _0x467b44=_0x1ac99b;if(_0x12c927)return _0x460e0d=_0x12c927[_0x467b44('0x3e')],typeof _0x246423['query'][_0x467b44('0x2c')]==='undefined'&&(_0x2d3be1[_0x467b44('0x1a')]=qs[_0x467b44('0x1a')](_0x246423[_0x467b44('0x41')][_0x467b44('0x1a')]),_0x2d3be1[_0x467b44('0x64')]=qs[_0x467b44('0x64')](_0x246423[_0x467b44('0x41')]['offset'])),_0x25c774[_0x467b44('0x29')](_0x2d3be1);})[_0x1ac99b('0x34')](function(_0x2bc910){if(_0x2bc910)return _0x2bc910?{'count':_0x460e0d,'rows':_0x2bc910}:null;})[_0x1ac99b('0x34')](respondWithResult(_0x970a6e,null))['catch'](handleError(_0x970a6e,null));}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.events.js b/server/api/faxQueue/faxQueue.events.js index 704e947..bf8814a 100644 --- a/server/api/faxQueue/faxQueue.events.js +++ b/server/api/faxQueue/faxQueue.events.js @@ -1 +1 @@ -const a213_0x56a8=['../../mysqldb','update','setMaxListeners','undefined','remove','emit','addHook','exports','events','save','FaxQueue'];(function(_0x24bc4a,_0x56a8c2){const _0x139c7d=function(_0x2f08bd){while(--_0x2f08bd){_0x24bc4a['push'](_0x24bc4a['shift']());}};_0x139c7d(++_0x56a8c2);}(a213_0x56a8,0xc5));const a213_0x139c=function(_0x24bc4a,_0x56a8c2){_0x24bc4a=_0x24bc4a-0x0;let _0x139c7d=a213_0x56a8[_0x24bc4a];return _0x139c7d;};const _0x81ce03=a213_0x139c;'use strict';const EventEmitter=require(_0x81ce03('0x9')),FaxQueue=require(_0x81ce03('0x1'))['db'][_0x81ce03('0x0')],FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x81ce03('0x3')](0x0);const events={'afterCreate':_0x81ce03('0xa'),'afterUpdate':_0x81ce03('0x2'),'afterDestroy':_0x81ce03('0x5')};function emitEvent(_0x2f08bd){return function(_0x4d5b68){const _0x398710=a213_0x139c;FaxQueueEvents[_0x398710('0x6')](_0x2f08bd+':'+_0x4d5b68['id'],_0x4d5b68),FaxQueueEvents[_0x398710('0x6')](_0x2f08bd,_0x4d5b68);};}for(const e in events){if(typeof events[e]!==_0x81ce03('0x4')){const event=events[e];FaxQueue[_0x81ce03('0x7')](e,emitEvent(event));}}module[_0x81ce03('0x8')]=FaxQueueEvents; \ No newline at end of file +const a213_0x265f=['setMaxListeners','exports','../../mysqldb','save','undefined','remove','emit','FaxQueue','update','events'];(function(_0x544a54,_0x265f88){const _0x5bcf6c=function(_0x26f319){while(--_0x26f319){_0x544a54['push'](_0x544a54['shift']());}};_0x5bcf6c(++_0x265f88);}(a213_0x265f,0x1de));const a213_0x5bcf=function(_0x544a54,_0x265f88){_0x544a54=_0x544a54-0x0;let _0x5bcf6c=a213_0x265f[_0x544a54];return _0x5bcf6c;};const _0x38b630=a213_0x5bcf;'use strict';const EventEmitter=require(_0x38b630('0x1')),FaxQueue=require(_0x38b630('0x4'))['db'][_0x38b630('0x9')],FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x38b630('0x2')](0x0);const events={'afterCreate':_0x38b630('0x5'),'afterUpdate':_0x38b630('0x0'),'afterDestroy':_0x38b630('0x7')};function emitEvent(_0x26f319){return function(_0x5f0674){const _0x37435a=a213_0x5bcf;FaxQueueEvents[_0x37435a('0x8')](_0x26f319+':'+_0x5f0674['id'],_0x5f0674),FaxQueueEvents['emit'](_0x26f319,_0x5f0674);};}for(const e in events){if(typeof events[e]!==_0x38b630('0x6')){const event=events[e];FaxQueue['addHook'](e,emitEvent(event));}}module[_0x38b630('0x3')]=FaxQueueEvents; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.model.js b/server/api/faxQueue/faxQueue.model.js index 056c3ad..e1b594b 100644 --- a/server/api/faxQueue/faxQueue.model.js +++ b/server/api/faxQueue/faxQueue.model.js @@ -1 +1 @@ -const a214_0xe02d=['define','fax_queues','./faxQueue.attributes','FaxQueue'];(function(_0x1878bf,_0xe02d99){const _0x39860b=function(_0x23efb3){while(--_0x23efb3){_0x1878bf['push'](_0x1878bf['shift']());}};_0x39860b(++_0xe02d99);}(a214_0xe02d,0x129));const a214_0x3986=function(_0x1878bf,_0xe02d99){_0x1878bf=_0x1878bf-0x0;let _0x39860b=a214_0xe02d[_0x1878bf];return _0x39860b;};const _0x3bcf03=a214_0x3986;'use strict';const attributes=require(_0x3bcf03('0x1'));module['exports']=function(_0x23efb3){const _0x22cd88=_0x3bcf03,_0x7efa88=_0x23efb3[_0x22cd88('0x3')](_0x22cd88('0x2'),attributes,{'tableName':_0x22cd88('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x7efa88;}; \ No newline at end of file +const a214_0x32be=['define','FaxQueue','./faxQueue.attributes','exports'];(function(_0x4c91b9,_0x32bec3){const _0x419517=function(_0x460434){while(--_0x460434){_0x4c91b9['push'](_0x4c91b9['shift']());}};_0x419517(++_0x32bec3);}(a214_0x32be,0xfb));const a214_0x4195=function(_0x4c91b9,_0x32bec3){_0x4c91b9=_0x4c91b9-0x0;let _0x419517=a214_0x32be[_0x4c91b9];return _0x419517;};const _0x33f3c0=a214_0x4195;'use strict';const attributes=require(_0x33f3c0('0x3'));module[_0x33f3c0('0x0')]=function(_0x460434){const _0x213df3=_0x33f3c0,_0x1a843d=_0x460434[_0x213df3('0x1')](_0x213df3('0x2'),attributes,{'tableName':'fax_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1a843d;}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.rpc.js b/server/api/faxQueue/faxQueue.rpc.js index bd801b6..153b3ea 100644 --- a/server/api/faxQueue/faxQueue.rpc.js +++ b/server/api/faxQueue/faxQueue.rpc.js @@ -1 +1 @@ -const a215_0x40d4=['model','ShowFaxQueue','debug','GetFaxQueue','error','../../rediscache','map','include','limit','info','attributes','../../mysqldb','where','FaxQueue','lodash','stringify','catch','then','options','register','../../config/logger','./faxQueue.socket','message'];(function(_0x52ffc9,_0x40d416){const _0x3620d2=function(_0x23ff5e){while(--_0x23ff5e){_0x52ffc9['push'](_0x52ffc9['shift']());}};_0x3620d2(++_0x40d416);}(a215_0x40d4,0x17b));const a215_0x3620=function(_0x52ffc9,_0x40d416){_0x52ffc9=_0x52ffc9-0x0;let _0x3620d2=a215_0x40d4[_0x52ffc9];return _0x3620d2;};const _0x3aacfd=a215_0x3620;'use strict';const _=require(_0x3aacfd('0x3')),db=require(_0x3aacfd('0x0'))['db'],logger=require(_0x3aacfd('0x9'))('rpc'),{getSocket}=require(_0x3aacfd('0x11')),socket=getSocket();require(_0x3aacfd('0xa'))[_0x3aacfd('0x8')](socket),exports[_0x3aacfd('0xf')]=function(_0x23ff5e){const _0x309681=this;return new Promise(function(_0x285d68,_0x3d28cf){const _0x299ce0=a215_0x3620;return db[_0x299ce0('0x2')]['findAll']({'raw':_0x23ff5e[_0x299ce0('0x7')]?_0x23ff5e[_0x299ce0('0x7')]['raw']===undefined?!![]:![]:!![],'where':_0x23ff5e[_0x299ce0('0x7')]?_0x23ff5e[_0x299ce0('0x7')][_0x299ce0('0x1')]||null:null,'attributes':_0x23ff5e[_0x299ce0('0x7')]?_0x23ff5e[_0x299ce0('0x7')][_0x299ce0('0x16')]||null:null,'limit':_0x23ff5e[_0x299ce0('0x7')]?_0x23ff5e['options'][_0x299ce0('0x14')]||null:null,'include':_0x23ff5e[_0x299ce0('0x7')]?_0x23ff5e[_0x299ce0('0x7')]['include']?_[_0x299ce0('0x12')](_0x23ff5e[_0x299ce0('0x7')][_0x299ce0('0x13')],function(_0x5e05b3){const _0x22c6e7=_0x299ce0;return{'model':db[_0x5e05b3[_0x22c6e7('0xc')]],'as':_0x5e05b3['as'],'attributes':_0x5e05b3[_0x22c6e7('0x16')],'include':_0x5e05b3[_0x22c6e7('0x13')]?_['map'](_0x5e05b3[_0x22c6e7('0x13')],function(_0x7370d1){const _0x203f90=_0x22c6e7;return{'model':db[_0x7370d1[_0x203f90('0xc')]],'as':_0x7370d1['as'],'attributes':_0x7370d1[_0x203f90('0x16')],'include':_0x7370d1[_0x203f90('0x13')]?_[_0x203f90('0x12')](_0x7370d1[_0x203f90('0x13')],function(_0x40d0dd){const _0x296312=_0x203f90;return{'model':db[_0x40d0dd[_0x296312('0xc')]],'as':_0x40d0dd['as'],'attributes':_0x40d0dd[_0x296312('0x16')]};}):[]};}):[]};}):[]:[]})[_0x299ce0('0x6')](function(_0x10508a){const _0xdec217=_0x299ce0;logger[_0xdec217('0x15')](_0xdec217('0xf'),_0x23ff5e),logger['debug'](_0xdec217('0xf'),_0x23ff5e,JSON[_0xdec217('0x4')](_0x10508a)),_0x285d68(_0x10508a);})['catch'](function(_0x16e651){const _0xc05ae5=_0x299ce0;logger['error'](_0xc05ae5('0xf'),_0x16e651[_0xc05ae5('0xb')],_0x23ff5e),_0x3d28cf(_0x309681[_0xc05ae5('0x10')](0x1f4,_0x16e651['message']));});});},exports[_0x3aacfd('0xd')]=function(_0x3b6152){const _0x478cfe=this;return new Promise(function(_0x35b538,_0x4f251e){const _0x5ae864=a215_0x3620;return db[_0x5ae864('0x2')]['findOne']({'raw':_0x3b6152['options']?_0x3b6152[_0x5ae864('0x7')]['raw']===undefined?!![]:![]:!![],'where':_0x3b6152[_0x5ae864('0x7')]?_0x3b6152[_0x5ae864('0x7')][_0x5ae864('0x1')]||null:null,'attributes':_0x3b6152[_0x5ae864('0x7')]?_0x3b6152['options'][_0x5ae864('0x16')]||null:null,'include':_0x3b6152[_0x5ae864('0x7')]?_0x3b6152[_0x5ae864('0x7')][_0x5ae864('0x13')]?_[_0x5ae864('0x12')](_0x3b6152[_0x5ae864('0x7')][_0x5ae864('0x13')],function(_0x925da8){const _0x546e17=_0x5ae864;return{'model':db[_0x925da8[_0x546e17('0xc')]],'as':_0x925da8['as'],'attributes':_0x925da8['attributes'],'include':_0x925da8[_0x546e17('0x13')]?_[_0x546e17('0x12')](_0x925da8[_0x546e17('0x13')],function(_0x25af31){const _0xc7d846=_0x546e17;return{'model':db[_0x25af31[_0xc7d846('0xc')]],'as':_0x25af31['as'],'attributes':_0x25af31[_0xc7d846('0x16')],'include':_0x25af31[_0xc7d846('0x13')]?_['map'](_0x25af31[_0xc7d846('0x13')],function(_0x1627cc){const _0x378c42=_0xc7d846;return{'model':db[_0x1627cc[_0x378c42('0xc')]],'as':_0x1627cc['as'],'attributes':_0x1627cc[_0x378c42('0x16')]};}):[]};}):[]};}):[]:[]})[_0x5ae864('0x6')](function(_0x941ea1){const _0x1775d7=_0x5ae864;logger['info'](_0x1775d7('0xd'),_0x3b6152),logger[_0x1775d7('0xe')](_0x1775d7('0xd'),_0x3b6152,JSON[_0x1775d7('0x4')](_0x941ea1)),_0x35b538(_0x941ea1);})[_0x5ae864('0x5')](function(_0x21f756){const _0x514d71=_0x5ae864;logger[_0x514d71('0x10')](_0x514d71('0xd'),_0x21f756[_0x514d71('0xb')],_0x3b6152),_0x4f251e(_0x478cfe[_0x514d71('0x10')](0x1f4,_0x21f756[_0x514d71('0xb')]));});});}; \ No newline at end of file +const a215_0x1e75=['debug','raw','ShowFaxQueue','attributes','./faxQueue.socket','message','rpc','lodash','FaxQueue','limit','../../mysqldb','include','then','../../config/logger','model','info','GetFaxQueue','stringify','error','options','map'];(function(_0x557e57,_0x1e7521){const _0x5b734e=function(_0x25a707){while(--_0x25a707){_0x557e57['push'](_0x557e57['shift']());}};_0x5b734e(++_0x1e7521);}(a215_0x1e75,0x111));const a215_0x5b73=function(_0x557e57,_0x1e7521){_0x557e57=_0x557e57-0x0;let _0x5b734e=a215_0x1e75[_0x557e57];return _0x5b734e;};const _0x17ef61=a215_0x5b73;'use strict';const _=require(_0x17ef61('0x7')),db=require(_0x17ef61('0xa'))['db'],logger=require(_0x17ef61('0xd'))(_0x17ef61('0x6')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x17ef61('0x4'))['register'](socket),exports[_0x17ef61('0x10')]=function(_0x25a707){const _0x15642d=this;return new Promise(function(_0x2474d7,_0x47d376){const _0x268f70=a215_0x5b73;return db[_0x268f70('0x8')]['findAll']({'raw':_0x25a707[_0x268f70('0x13')]?_0x25a707[_0x268f70('0x13')][_0x268f70('0x1')]===undefined?!![]:![]:!![],'where':_0x25a707[_0x268f70('0x13')]?_0x25a707['options']['where']||null:null,'attributes':_0x25a707[_0x268f70('0x13')]?_0x25a707[_0x268f70('0x13')][_0x268f70('0x3')]||null:null,'limit':_0x25a707[_0x268f70('0x13')]?_0x25a707['options'][_0x268f70('0x9')]||null:null,'include':_0x25a707[_0x268f70('0x13')]?_0x25a707[_0x268f70('0x13')][_0x268f70('0xb')]?_[_0x268f70('0x14')](_0x25a707[_0x268f70('0x13')][_0x268f70('0xb')],function(_0x556c03){const _0x1944bd=_0x268f70;return{'model':db[_0x556c03['model']],'as':_0x556c03['as'],'attributes':_0x556c03['attributes'],'include':_0x556c03[_0x1944bd('0xb')]?_['map'](_0x556c03[_0x1944bd('0xb')],function(_0x51e735){const _0x5e6bfe=_0x1944bd;return{'model':db[_0x51e735['model']],'as':_0x51e735['as'],'attributes':_0x51e735[_0x5e6bfe('0x3')],'include':_0x51e735[_0x5e6bfe('0xb')]?_[_0x5e6bfe('0x14')](_0x51e735[_0x5e6bfe('0xb')],function(_0x4532a7){const _0xddc32c=_0x5e6bfe;return{'model':db[_0x4532a7[_0xddc32c('0xe')]],'as':_0x4532a7['as'],'attributes':_0x4532a7['attributes']};}):[]};}):[]};}):[]:[]})[_0x268f70('0xc')](function(_0xa6a86a){const _0x50c1f3=_0x268f70;logger[_0x50c1f3('0xf')]('GetFaxQueue',_0x25a707),logger[_0x50c1f3('0x0')](_0x50c1f3('0x10'),_0x25a707,JSON[_0x50c1f3('0x11')](_0xa6a86a)),_0x2474d7(_0xa6a86a);})['catch'](function(_0x35eceb){const _0x46353b=_0x268f70;logger[_0x46353b('0x12')](_0x46353b('0x10'),_0x35eceb[_0x46353b('0x5')],_0x25a707),_0x47d376(_0x15642d[_0x46353b('0x12')](0x1f4,_0x35eceb[_0x46353b('0x5')]));});});},exports[_0x17ef61('0x2')]=function(_0x291712){const _0x39188c=this;return new Promise(function(_0x2094d9,_0x54af1a){const _0x2aec44=a215_0x5b73;return db[_0x2aec44('0x8')]['findOne']({'raw':_0x291712[_0x2aec44('0x13')]?_0x291712[_0x2aec44('0x13')][_0x2aec44('0x1')]===undefined?!![]:![]:!![],'where':_0x291712[_0x2aec44('0x13')]?_0x291712[_0x2aec44('0x13')]['where']||null:null,'attributes':_0x291712[_0x2aec44('0x13')]?_0x291712[_0x2aec44('0x13')][_0x2aec44('0x3')]||null:null,'include':_0x291712[_0x2aec44('0x13')]?_0x291712[_0x2aec44('0x13')][_0x2aec44('0xb')]?_[_0x2aec44('0x14')](_0x291712[_0x2aec44('0x13')][_0x2aec44('0xb')],function(_0x6d3b10){const _0xcc755d=_0x2aec44;return{'model':db[_0x6d3b10[_0xcc755d('0xe')]],'as':_0x6d3b10['as'],'attributes':_0x6d3b10[_0xcc755d('0x3')],'include':_0x6d3b10[_0xcc755d('0xb')]?_[_0xcc755d('0x14')](_0x6d3b10[_0xcc755d('0xb')],function(_0x3f7e4d){const _0x293292=_0xcc755d;return{'model':db[_0x3f7e4d[_0x293292('0xe')]],'as':_0x3f7e4d['as'],'attributes':_0x3f7e4d[_0x293292('0x3')],'include':_0x3f7e4d['include']?_[_0x293292('0x14')](_0x3f7e4d[_0x293292('0xb')],function(_0x8f1e69){const _0x29c383=_0x293292;return{'model':db[_0x8f1e69['model']],'as':_0x8f1e69['as'],'attributes':_0x8f1e69[_0x29c383('0x3')]};}):[]};}):[]};}):[]:[]})[_0x2aec44('0xc')](function(_0x35f2d5){const _0x384f78=_0x2aec44;logger['info']('ShowFaxQueue',_0x291712),logger[_0x384f78('0x0')](_0x384f78('0x2'),_0x291712,JSON[_0x384f78('0x11')](_0x35f2d5)),_0x2094d9(_0x35f2d5);})['catch'](function(_0x4a9779){const _0xaab718=_0x2aec44;logger['error'](_0xaab718('0x2'),_0x4a9779[_0xaab718('0x5')],_0x291712),_0x54af1a(_0x39188c['error'](0x1f4,_0x4a9779[_0xaab718('0x5')]));});});}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.socket.js b/server/api/faxQueue/faxQueue.socket.js index 214349a..62b57b4 100644 --- a/server/api/faxQueue/faxQueue.socket.js +++ b/server/api/faxQueue/faxQueue.socket.js @@ -1 +1 @@ -const a216_0x1ab5=['update','length','emit','save','faxQueue:'];(function(_0x23c0e3,_0x1ab5bd){const _0xdab56f=function(_0x1711bc){while(--_0x1711bc){_0x23c0e3['push'](_0x23c0e3['shift']());}};_0xdab56f(++_0x1ab5bd);}(a216_0x1ab5,0x1eb));const a216_0xdab5=function(_0x23c0e3,_0x1ab5bd){_0x23c0e3=_0x23c0e3-0x0;let _0xdab56f=a216_0x1ab5[_0x23c0e3];return _0xdab56f;};const _0x277ee8=a216_0xdab5;'use strict';const FaxQueueEvents=require('./faxQueue.events'),events=[_0x277ee8('0x2'),'remove',_0x277ee8('0x4')];function createListener(_0x1711bc,_0x1da9f4){return function(_0x4bab02){const _0x5c12e6=a216_0xdab5;_0x1da9f4[_0x5c12e6('0x1')](_0x1711bc,_0x4bab02);};}exports['register']=function(_0x4c6a63){const _0x269264=_0x277ee8;for(let _0xbae370=0x0,_0x3e1250=events[_0x269264('0x0')];_0xbae370<_0x3e1250;_0xbae370++){const _0x5d55aa=events[_0xbae370],_0x5d9dbd=createListener(_0x269264('0x3')+_0x5d55aa,_0x4c6a63);FaxQueueEvents['on'](_0x5d55aa,_0x5d9dbd);}}; \ No newline at end of file +const a216_0x354c=['emit','./faxQueue.events','length','save','register','faxQueue:'];(function(_0x5a0313,_0x354c46){const _0x559b0c=function(_0x44ae0c){while(--_0x44ae0c){_0x5a0313['push'](_0x5a0313['shift']());}};_0x559b0c(++_0x354c46);}(a216_0x354c,0x71));const a216_0x559b=function(_0x5a0313,_0x354c46){_0x5a0313=_0x5a0313-0x0;let _0x559b0c=a216_0x354c[_0x5a0313];return _0x559b0c;};const _0x2dff11=a216_0x559b;'use strict';const FaxQueueEvents=require(_0x2dff11('0x2')),events=[_0x2dff11('0x4'),'remove','update'];function createListener(_0x44ae0c,_0x4312ae){return function(_0x2b5ae7){const _0x572b6e=a216_0x559b;_0x4312ae[_0x572b6e('0x1')](_0x44ae0c,_0x2b5ae7);};}exports[_0x2dff11('0x5')]=function(_0x191d2a){const _0x580d7d=_0x2dff11;for(let _0x5cff40=0x0,_0x5ccacd=events[_0x580d7d('0x3')];_0x5cff40<_0x5ccacd;_0x5cff40++){const _0x55e16f=events[_0x5cff40],_0x4e1080=createListener(_0x580d7d('0x0')+_0x55e16f,_0x191d2a);FaxQueueEvents['on'](_0x55e16f,_0x4e1080);}}; \ No newline at end of file diff --git a/server/api/faxQueue/index.js b/server/api/faxQueue/index.js index 6dcf11f..2896ef8 100644 --- a/server/api/faxQueue/index.js +++ b/server/api/faxQueue/index.js @@ -1 +1 @@ -const a217_0x4e56=['destroy','removeTeams','../../components/auth/service','/:id','create','addAgents','getMembers','describe','post','express','removeAgents','getAgents','get','delete','addTeams','show','Router','getTeams','isAuthenticated','/:id/teams','/:id/members','/:id/users'];(function(_0x1baf8f,_0x4e564c){const _0x2a4474=function(_0x53b043){while(--_0x53b043){_0x1baf8f['push'](_0x1baf8f['shift']());}};_0x2a4474(++_0x4e564c);}(a217_0x4e56,0xf7));const a217_0x2a44=function(_0x1baf8f,_0x4e564c){_0x1baf8f=_0x1baf8f-0x0;let _0x2a4474=a217_0x4e56[_0x1baf8f];return _0x2a4474;};const _0x21eb31=a217_0x2a44;'use strict';const express=require(_0x21eb31('0x4')),router=express[_0x21eb31('0xb')](),auth=require(_0x21eb31('0x13')),controller=require('./faxQueue.controller');router[_0x21eb31('0x7')]('/',auth[_0x21eb31('0xd')](),controller['index']),router[_0x21eb31('0x7')]('/describe',auth[_0x21eb31('0xd')](),controller[_0x21eb31('0x2')]),router[_0x21eb31('0x7')](_0x21eb31('0x14'),auth[_0x21eb31('0xd')](),controller[_0x21eb31('0xa')]),router['get'](_0x21eb31('0xf'),auth['isAuthenticated'](),controller[_0x21eb31('0x1')]),router['get'](_0x21eb31('0xe'),auth[_0x21eb31('0xd')](),controller[_0x21eb31('0xc')]),router[_0x21eb31('0x7')]('/:id/users',auth[_0x21eb31('0xd')](),controller[_0x21eb31('0x6')]),router['post']('/',auth[_0x21eb31('0xd')](),controller[_0x21eb31('0x15')]),router['post'](_0x21eb31('0xe'),auth[_0x21eb31('0xd')](),controller[_0x21eb31('0x9')]),router[_0x21eb31('0x3')]('/:id/users',auth[_0x21eb31('0xd')](),controller[_0x21eb31('0x0')]),router['put']('/:id',auth[_0x21eb31('0xd')](),controller['update']),router[_0x21eb31('0x8')](_0x21eb31('0x14'),auth['isAuthenticated'](),controller[_0x21eb31('0x11')]),router[_0x21eb31('0x8')](_0x21eb31('0xe'),auth['isAuthenticated'](),controller[_0x21eb31('0x12')]),router['delete'](_0x21eb31('0x10'),auth[_0x21eb31('0xd')](),controller[_0x21eb31('0x5')]),module['exports']=router; \ No newline at end of file +const a217_0x5288=['isAuthenticated','show','index','Router','addAgents','getAgents','describe','destroy','removeTeams','/describe','../../components/auth/service','/:id','delete','get','getTeams','express','getMembers','post','/:id/users','/:id/teams'];(function(_0x4d8a44,_0x5288ff){const _0x1e0dc9=function(_0x2e101e){while(--_0x2e101e){_0x4d8a44['push'](_0x4d8a44['shift']());}};_0x1e0dc9(++_0x5288ff);}(a217_0x5288,0x9a));const a217_0x1e0d=function(_0x4d8a44,_0x5288ff){_0x4d8a44=_0x4d8a44-0x0;let _0x1e0dc9=a217_0x5288[_0x4d8a44];return _0x1e0dc9;};const _0x541dd3=a217_0x1e0d;'use strict';const express=require(_0x541dd3('0x1')),router=express[_0x541dd3('0x9')](),auth=require(_0x541dd3('0x10')),controller=require('./faxQueue.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x541dd3('0x8')]),router['get'](_0x541dd3('0xf'),auth[_0x541dd3('0x6')](),controller[_0x541dd3('0xc')]),router[_0x541dd3('0x13')](_0x541dd3('0x11'),auth[_0x541dd3('0x6')](),controller[_0x541dd3('0x7')]),router[_0x541dd3('0x13')]('/:id/members',auth[_0x541dd3('0x6')](),controller[_0x541dd3('0x2')]),router[_0x541dd3('0x13')](_0x541dd3('0x5'),auth['isAuthenticated'](),controller[_0x541dd3('0x0')]),router['get']('/:id/users',auth[_0x541dd3('0x6')](),controller[_0x541dd3('0xb')]),router[_0x541dd3('0x3')]('/',auth[_0x541dd3('0x6')](),controller['create']),router['post'](_0x541dd3('0x5'),auth[_0x541dd3('0x6')](),controller['addTeams']),router['post'](_0x541dd3('0x4'),auth[_0x541dd3('0x6')](),controller[_0x541dd3('0xa')]),router['put'](_0x541dd3('0x11'),auth['isAuthenticated'](),controller['update']),router[_0x541dd3('0x12')](_0x541dd3('0x11'),auth[_0x541dd3('0x6')](),controller[_0x541dd3('0xd')]),router['delete'](_0x541dd3('0x5'),auth[_0x541dd3('0x6')](),controller[_0x541dd3('0xe')]),router[_0x541dd3('0x12')]('/:id/users',auth[_0x541dd3('0x6')](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.attributes.js b/server/api/faxQueueReport/faxQueueReport.attributes.js index 4192354..4a9dca0 100644 --- a/server/api/faxQueueReport/faxQueueReport.attributes.js +++ b/server/api/faxQueueReport/faxQueueReport.attributes.js @@ -1 +1 @@ -const a218_0x52c8=['STRING','DATE','exports','sequelize'];(function(_0x1d6f06,_0x52c8c9){const _0x3254fa=function(_0x317417){while(--_0x317417){_0x1d6f06['push'](_0x1d6f06['shift']());}};_0x3254fa(++_0x52c8c9);}(a218_0x52c8,0x8f));const a218_0x3254=function(_0x1d6f06,_0x52c8c9){_0x1d6f06=_0x1d6f06-0x0;let _0x3254fa=a218_0x52c8[_0x1d6f06];return _0x3254fa;};const _0x1a12b7=a218_0x3254;'use strict';const Sequelize=require(_0x1a12b7('0x0'));module[_0x1a12b7('0x3')]={'uniqueid':{'type':Sequelize[_0x1a12b7('0x1')],'allowNull':![]},'from':{'type':Sequelize[_0x1a12b7('0x1')]},'joinAt':{'type':Sequelize[_0x1a12b7('0x2')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x1a12b7('0x2')]},'exitAt':{'type':Sequelize[_0x1a12b7('0x2')]},'reason':{'type':Sequelize[_0x1a12b7('0x1')]}}; \ No newline at end of file +const a218_0x5854=['STRING','sequelize','DATE'];(function(_0x42e3e0,_0x5854f9){const _0xf9f772=function(_0x1cb3a1){while(--_0x1cb3a1){_0x42e3e0['push'](_0x42e3e0['shift']());}};_0xf9f772(++_0x5854f9);}(a218_0x5854,0x81));const a218_0xf9f7=function(_0x42e3e0,_0x5854f9){_0x42e3e0=_0x42e3e0-0x0;let _0xf9f772=a218_0x5854[_0x42e3e0];return _0xf9f772;};const _0x5a38a=a218_0xf9f7;'use strict';const Sequelize=require(_0x5a38a('0x1'));module['exports']={'uniqueid':{'type':Sequelize[_0x5a38a('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0x5a38a('0x0')]},'joinAt':{'type':Sequelize[_0x5a38a('0x2')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x5a38a('0x2')]},'exitAt':{'type':Sequelize[_0x5a38a('0x2')]},'reason':{'type':Sequelize[_0x5a38a('0x0')]}}; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.controller.js b/server/api/faxQueueReport/faxQueueReport.controller.js index dfbc4e2..561b0a1 100644 --- a/server/api/faxQueueReport/faxQueueReport.controller.js +++ b/server/api/faxQueueReport/faxQueueReport.controller.js @@ -1 +1 @@ -const a219_0x3159=['fields','map','filters','fieldName','findOne','model','VIRTUAL','catch','length','error','set','json','create','describe','includeAll','then','keys','show','lodash','sendStatus','api','sequelize','offset','where','send','limit','like','attributes','rawAttributes','update','merge','undefined','index','Content-Range','query','body','name','end','include','nolimit','findAll','filter','type','sort','options','count','params','../../mysqldb','FaxQueueReport','status','intersection'];(function(_0x3047e5,_0x3159ea){const _0x1fcb2b=function(_0xb2e7a1){while(--_0xb2e7a1){_0x3047e5['push'](_0x3047e5['shift']());}};_0x1fcb2b(++_0x3159ea);}(a219_0x3159,0x83));const a219_0x1fcb=function(_0x3047e5,_0x3159ea){_0x3047e5=_0x3047e5-0x0;let _0x1fcb2b=a219_0x3159[_0x3047e5];return _0x1fcb2b;};const _0x5452e5=a219_0x1fcb;'use strict';const _=require(_0x5452e5('0x28')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x5452e5('0x2a')),db=require(_0x5452e5('0x12'))['db'],{Op}=require(_0x5452e5('0x2b'));function respondWithResult(_0xb2e7a1,_0x51bed3){return _0x51bed3=_0x51bed3||0xc8,function(_0x4b8532){const _0x46ad40=a219_0x1fcb;if(_0x4b8532)return _0xb2e7a1[_0x46ad40('0x14')](_0x51bed3)[_0x46ad40('0x21')](_0x4b8532);};}function respondWithFilteredResult(_0x1ef168,_0xd53597){return function(_0x2ce71a){const _0x2f93df=a219_0x1fcb;if(_0x2ce71a){const _0x5619c7=_0x2ce71a[_0x2f93df('0x10')],_0x3d6cd8=_0xd53597[_0x2f93df('0x2c')];let _0x5ee42c=_0xd53597[_0x2f93df('0x2c')]+_0xd53597[_0x2f93df('0x2f')],_0x46ab49;return _0x5ee42c>=_0x5619c7?(_0x5ee42c=_0x5619c7,_0x46ab49=0xc8):_0x46ab49=0xce,_0x1ef168[_0x2f93df('0x14')](_0x46ab49),_0x1ef168[_0x2f93df('0x20')](_0x2f93df('0x4'),_0x3d6cd8+'-'+_0x5ee42c+'/'+_0x5619c7)[_0x2f93df('0x21')](_0x2ce71a);}return null;};}function saveUpdates(_0x4ca6d0){return function(_0x2cb59f){const _0x2d5524=a219_0x1fcb;if(_0x2cb59f)return _0x2cb59f[_0x2d5524('0x0')](_0x4ca6d0)[_0x2d5524('0x25')](function(_0x6c29d3){return _0x6c29d3;});return null;};}function removeEntity(_0x499db1){return function(_0xd4897){const _0x47ef98=a219_0x1fcb;if(_0xd4897)return _0xd4897['destroy']()[_0x47ef98('0x25')](function(){const _0x2e37eb=_0x47ef98;_0x499db1[_0x2e37eb('0x14')](0xcc)[_0x2e37eb('0x8')]();});};}function handleEntityNotFound(_0x213ea6){return function(_0x379046){const _0x5c8430=a219_0x1fcb;return!_0x379046&&_0x213ea6[_0x5c8430('0x29')](0x194),_0x379046;};}function handleError(_0x15e578,_0x4be2d6){return _0x4be2d6=_0x4be2d6||0x1f4,function(_0x296ae2){const _0x69778a=a219_0x1fcb;logger[_0x69778a('0x1f')](_0x296ae2['stack']),_0x296ae2[_0x69778a('0x7')]&&delete _0x296ae2[_0x69778a('0x7')],_0x15e578[_0x69778a('0x14')](_0x4be2d6)[_0x69778a('0x2e')](_0x296ae2);};}exports[_0x5452e5('0x3')]=function(_0x5b388f,_0x8aa83){const _0x16074d=_0x5452e5;let _0x463f73={};const _0x200430={},_0x3f71af={'count':0x0,'rows':[]},_0x2873ba=_['map'](db[_0x16074d('0x13')][_0x16074d('0x32')],function(_0x1ae16b){const _0x5681b2=_0x16074d;return{'name':_0x1ae16b[_0x5681b2('0x19')],'type':_0x1ae16b[_0x5681b2('0xd')]['key']};});_0x200430[_0x16074d('0x1b')]=_[_0x16074d('0x17')](_0x2873ba,_0x16074d('0x7')),_0x200430['query']=_[_0x16074d('0x26')](_0x5b388f['query']),_0x200430['filters']=_[_0x16074d('0x15')](_0x200430['model'],_0x200430['query']),_0x463f73['attributes']=_[_0x16074d('0x15')](_0x200430['model'],qs[_0x16074d('0x16')](_0x5b388f[_0x16074d('0x5')]['fields'])),_0x463f73[_0x16074d('0x31')]=_0x463f73[_0x16074d('0x31')][_0x16074d('0x1e')]?_0x463f73['attributes']:_0x200430[_0x16074d('0x1b')];typeof _0x5b388f['query'][_0x16074d('0xa')]===_0x16074d('0x2')&&(_0x463f73[_0x16074d('0x2f')]=qs['limit'](_0x5b388f['query'][_0x16074d('0x2f')]),_0x463f73[_0x16074d('0x2c')]=qs[_0x16074d('0x2c')](_0x5b388f[_0x16074d('0x5')][_0x16074d('0x2c')]));_0x463f73['order']=qs[_0x16074d('0xe')](_0x5b388f[_0x16074d('0x5')][_0x16074d('0xe')]),_0x463f73['where']=qs[_0x16074d('0x18')](_['pick'](_0x5b388f[_0x16074d('0x5')],_0x200430[_0x16074d('0x18')]),_0x2873ba);_0x5b388f[_0x16074d('0x5')]['filter']&&(_0x463f73['where']=_['merge'](_0x463f73['where'],{[Op['or']]:_[_0x16074d('0x17')](_0x2873ba,function(_0x1750db){const _0x2a256b=_0x16074d;if(_0x1750db[_0x2a256b('0xd')]!==_0x2a256b('0x1c')){const _0x3f2526={};return _0x3f2526[_0x1750db[_0x2a256b('0x7')]]={[Op[_0x2a256b('0x30')]]:'%'+_0x5b388f[_0x2a256b('0x5')][_0x2a256b('0xc')]+'%'},_0x3f2526;}})}));_0x463f73=_['merge']({},_0x463f73,_0x5b388f[_0x16074d('0xf')]);const _0x1e5e5f={'where':_0x463f73[_0x16074d('0x2d')]};return db[_0x16074d('0x13')][_0x16074d('0x10')](_0x1e5e5f)['then'](function(_0x33a700){const _0x580e42=_0x16074d;return _0x3f71af[_0x580e42('0x10')]=_0x33a700,_0x5b388f[_0x580e42('0x5')]['includeAll']&&(_0x463f73[_0x580e42('0x9')]=[{'all':!![]}]),db['FaxQueueReport'][_0x580e42('0xb')](_0x463f73);})[_0x16074d('0x25')](function(_0x3f8982){return _0x3f71af['rows']=_0x3f8982,_0x3f71af;})[_0x16074d('0x25')](respondWithFilteredResult(_0x8aa83,_0x463f73))['catch'](handleError(_0x8aa83,null));},exports[_0x5452e5('0x27')]=function(_0x467cde,_0x47ab3e){const _0x136bbc=_0x5452e5;let _0x5971f7={'raw':!![],'where':{'id':_0x467cde[_0x136bbc('0x11')]['id']}};const _0x1db4ec={};return _0x1db4ec[_0x136bbc('0x1b')]=_['keys'](db[_0x136bbc('0x13')][_0x136bbc('0x32')]),_0x1db4ec[_0x136bbc('0x5')]=_[_0x136bbc('0x26')](_0x467cde['query']),_0x1db4ec[_0x136bbc('0x18')]=_[_0x136bbc('0x15')](_0x1db4ec['model'],_0x1db4ec[_0x136bbc('0x5')]),_0x5971f7[_0x136bbc('0x31')]=_[_0x136bbc('0x15')](_0x1db4ec[_0x136bbc('0x1b')],qs['fields'](_0x467cde[_0x136bbc('0x5')]['fields'])),_0x5971f7['attributes']=_0x5971f7[_0x136bbc('0x31')][_0x136bbc('0x1e')]?_0x5971f7['attributes']:_0x1db4ec['model'],_0x467cde[_0x136bbc('0x5')][_0x136bbc('0x24')]&&(_0x5971f7[_0x136bbc('0x9')]=[{'all':!![]}]),_0x5971f7=_[_0x136bbc('0x1')]({},_0x5971f7,_0x467cde[_0x136bbc('0xf')]),db[_0x136bbc('0x13')][_0x136bbc('0x1a')](_0x5971f7)[_0x136bbc('0x25')](handleEntityNotFound(_0x47ab3e,null))[_0x136bbc('0x25')](respondWithResult(_0x47ab3e,null))[_0x136bbc('0x1d')](handleError(_0x47ab3e,null));},exports[_0x5452e5('0x22')]=function(_0x4bed24,_0x5ccbdf){const _0x17d7c7=_0x5452e5;return db[_0x17d7c7('0x13')]['create'](_0x4bed24[_0x17d7c7('0x6')],{})[_0x17d7c7('0x25')](respondWithResult(_0x5ccbdf,0xc9))[_0x17d7c7('0x1d')](handleError(_0x5ccbdf,null));},exports[_0x5452e5('0x0')]=function(_0x2cb5e3,_0x3b477c){const _0x28f2ee=_0x5452e5;return _0x2cb5e3['body']['id']&&delete _0x2cb5e3['body']['id'],db[_0x28f2ee('0x13')][_0x28f2ee('0x1a')]({'where':{'id':_0x2cb5e3['params']['id']}})['then'](handleEntityNotFound(_0x3b477c,null))['then'](saveUpdates(_0x2cb5e3[_0x28f2ee('0x6')],null))[_0x28f2ee('0x25')](respondWithResult(_0x3b477c,null))[_0x28f2ee('0x1d')](handleError(_0x3b477c,null));},exports['destroy']=function(_0x1e7393,_0x3d281d){const _0x2123fe=_0x5452e5;return db[_0x2123fe('0x13')][_0x2123fe('0x1a')]({'where':{'id':_0x1e7393[_0x2123fe('0x11')]['id']}})[_0x2123fe('0x25')](handleEntityNotFound(_0x3d281d,null))['then'](removeEntity(_0x3d281d,null))['catch'](handleError(_0x3d281d,null));},exports['describe']=function(_0x4a38f4,_0x4c968c){const _0x6fd404=_0x5452e5;return db[_0x6fd404('0x13')][_0x6fd404('0x23')]()[_0x6fd404('0x25')](respondWithResult(_0x4c968c,null))[_0x6fd404('0x1d')](handleError(_0x4c968c,null));}; \ No newline at end of file +const a219_0x53ee=['filter','order','sendStatus','attributes','include','options','create','where','name','rows','show','includeAll','set','send','query','params','intersection','json','end','nolimit','filters','fields','offset','sort','../../config/logger','length','stack','update','describe','../../mysqldb','fieldName','status','Content-Range','catch','model','sequelize','merge','map','FaxQueueReport','undefined','destroy','then','index','findAll','rawAttributes','like','keys','findOne','limit','body','count'];(function(_0x22fd7b,_0x53eeb9){const _0x25f667=function(_0x1182dd){while(--_0x1182dd){_0x22fd7b['push'](_0x22fd7b['shift']());}};_0x25f667(++_0x53eeb9);}(a219_0x53ee,0xa2));const a219_0x25f6=function(_0x22fd7b,_0x53eeb9){_0x22fd7b=_0x22fd7b-0x0;let _0x25f667=a219_0x53ee[_0x22fd7b];return _0x25f667;};const _0x1f95f8=a219_0x25f6;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x1f95f8('0xf'))('api'),db=require(_0x1f95f8('0x14'))['db'],{Op}=require(_0x1f95f8('0x1a'));function respondWithResult(_0x1182dd,_0x2591f7){return _0x2591f7=_0x2591f7||0xc8,function(_0x29b31d){const _0x4fd521=a219_0x25f6;if(_0x29b31d)return _0x1182dd[_0x4fd521('0x16')](_0x2591f7)[_0x4fd521('0x8')](_0x29b31d);};}function respondWithFilteredResult(_0xc4bc31,_0x16c755){return function(_0x37b1ae){const _0x131cc0=a219_0x25f6;if(_0x37b1ae){const _0x4513ef=_0x37b1ae[_0x131cc0('0x29')],_0x3efe91=_0x16c755[_0x131cc0('0xd')];let _0x4b0395=_0x16c755['offset']+_0x16c755[_0x131cc0('0x27')],_0x2475ef;return _0x4b0395>=_0x4513ef?(_0x4b0395=_0x4513ef,_0x2475ef=0xc8):_0x2475ef=0xce,_0xc4bc31[_0x131cc0('0x16')](_0x2475ef),_0xc4bc31[_0x131cc0('0x3')](_0x131cc0('0x17'),_0x3efe91+'-'+_0x4b0395+'/'+_0x4513ef)[_0x131cc0('0x8')](_0x37b1ae);}return null;};}function saveUpdates(_0xab493c){return function(_0x1204e9){const _0x39ea40=a219_0x25f6;if(_0x1204e9)return _0x1204e9[_0x39ea40('0x12')](_0xab493c)[_0x39ea40('0x20')](function(_0x4e4839){return _0x4e4839;});return null;};}function removeEntity(_0x117eb5){return function(_0x40b4c0){const _0x6c00ae=a219_0x25f6;if(_0x40b4c0)return _0x40b4c0[_0x6c00ae('0x1f')]()[_0x6c00ae('0x20')](function(){const _0x23173d=_0x6c00ae;_0x117eb5[_0x23173d('0x16')](0xcc)[_0x23173d('0x9')]();});};}function handleEntityNotFound(_0x411550){return function(_0x52d4a3){const _0x4670d0=a219_0x25f6;return!_0x52d4a3&&_0x411550[_0x4670d0('0x2c')](0x194),_0x52d4a3;};}function handleError(_0x28a226,_0x35134b){return _0x35134b=_0x35134b||0x1f4,function(_0xb14245){const _0x2a741a=a219_0x25f6;logger['error'](_0xb14245[_0x2a741a('0x11')]),_0xb14245['name']&&delete _0xb14245['name'],_0x28a226[_0x2a741a('0x16')](_0x35134b)[_0x2a741a('0x4')](_0xb14245);};}exports[_0x1f95f8('0x21')]=function(_0x34d291,_0x5cd674){const _0x32e5bb=_0x1f95f8;let _0x2c80b0={};const _0x2afafd={},_0x21529d={'count':0x0,'rows':[]},_0x27d9ec=_[_0x32e5bb('0x1c')](db[_0x32e5bb('0x1d')][_0x32e5bb('0x23')],function(_0x22824d){const _0x19bcb0=_0x32e5bb;return{'name':_0x22824d[_0x19bcb0('0x15')],'type':_0x22824d['type']['key']};});_0x2afafd[_0x32e5bb('0x19')]=_[_0x32e5bb('0x1c')](_0x27d9ec,_0x32e5bb('0x32')),_0x2afafd[_0x32e5bb('0x5')]=_[_0x32e5bb('0x25')](_0x34d291[_0x32e5bb('0x5')]),_0x2afafd[_0x32e5bb('0xb')]=_[_0x32e5bb('0x7')](_0x2afafd['model'],_0x2afafd['query']),_0x2c80b0[_0x32e5bb('0x2d')]=_[_0x32e5bb('0x7')](_0x2afafd[_0x32e5bb('0x19')],qs[_0x32e5bb('0xc')](_0x34d291['query']['fields'])),_0x2c80b0['attributes']=_0x2c80b0['attributes'][_0x32e5bb('0x10')]?_0x2c80b0['attributes']:_0x2afafd[_0x32e5bb('0x19')];typeof _0x34d291[_0x32e5bb('0x5')][_0x32e5bb('0xa')]===_0x32e5bb('0x1e')&&(_0x2c80b0['limit']=qs[_0x32e5bb('0x27')](_0x34d291[_0x32e5bb('0x5')][_0x32e5bb('0x27')]),_0x2c80b0[_0x32e5bb('0xd')]=qs[_0x32e5bb('0xd')](_0x34d291[_0x32e5bb('0x5')][_0x32e5bb('0xd')]));_0x2c80b0[_0x32e5bb('0x2b')]=qs[_0x32e5bb('0xe')](_0x34d291[_0x32e5bb('0x5')][_0x32e5bb('0xe')]),_0x2c80b0['where']=qs[_0x32e5bb('0xb')](_['pick'](_0x34d291[_0x32e5bb('0x5')],_0x2afafd[_0x32e5bb('0xb')]),_0x27d9ec);_0x34d291[_0x32e5bb('0x5')][_0x32e5bb('0x2a')]&&(_0x2c80b0['where']=_[_0x32e5bb('0x1b')](_0x2c80b0[_0x32e5bb('0x31')],{[Op['or']]:_[_0x32e5bb('0x1c')](_0x27d9ec,function(_0x426c45){const _0x588e8b=_0x32e5bb;if(_0x426c45['type']!=='VIRTUAL'){const _0x5c74f5={};return _0x5c74f5[_0x426c45[_0x588e8b('0x32')]]={[Op[_0x588e8b('0x24')]]:'%'+_0x34d291[_0x588e8b('0x5')][_0x588e8b('0x2a')]+'%'},_0x5c74f5;}})}));_0x2c80b0=_[_0x32e5bb('0x1b')]({},_0x2c80b0,_0x34d291[_0x32e5bb('0x2f')]);const _0x25bb4d={'where':_0x2c80b0['where']};return db[_0x32e5bb('0x1d')][_0x32e5bb('0x29')](_0x25bb4d)['then'](function(_0x75e42c){const _0x493457=_0x32e5bb;return _0x21529d[_0x493457('0x29')]=_0x75e42c,_0x34d291[_0x493457('0x5')][_0x493457('0x2')]&&(_0x2c80b0[_0x493457('0x2e')]=[{'all':!![]}]),db[_0x493457('0x1d')][_0x493457('0x22')](_0x2c80b0);})[_0x32e5bb('0x20')](function(_0x54dc88){const _0xe40ea8=_0x32e5bb;return _0x21529d[_0xe40ea8('0x0')]=_0x54dc88,_0x21529d;})['then'](respondWithFilteredResult(_0x5cd674,_0x2c80b0))[_0x32e5bb('0x18')](handleError(_0x5cd674,null));},exports[_0x1f95f8('0x1')]=function(_0x14a87e,_0x442883){const _0x30680a=_0x1f95f8;let _0x272266={'raw':!![],'where':{'id':_0x14a87e[_0x30680a('0x6')]['id']}};const _0x110f06={};return _0x110f06[_0x30680a('0x19')]=_[_0x30680a('0x25')](db[_0x30680a('0x1d')][_0x30680a('0x23')]),_0x110f06['query']=_[_0x30680a('0x25')](_0x14a87e['query']),_0x110f06[_0x30680a('0xb')]=_['intersection'](_0x110f06[_0x30680a('0x19')],_0x110f06[_0x30680a('0x5')]),_0x272266[_0x30680a('0x2d')]=_['intersection'](_0x110f06[_0x30680a('0x19')],qs['fields'](_0x14a87e[_0x30680a('0x5')][_0x30680a('0xc')])),_0x272266[_0x30680a('0x2d')]=_0x272266[_0x30680a('0x2d')][_0x30680a('0x10')]?_0x272266[_0x30680a('0x2d')]:_0x110f06[_0x30680a('0x19')],_0x14a87e[_0x30680a('0x5')]['includeAll']&&(_0x272266[_0x30680a('0x2e')]=[{'all':!![]}]),_0x272266=_[_0x30680a('0x1b')]({},_0x272266,_0x14a87e['options']),db[_0x30680a('0x1d')][_0x30680a('0x26')](_0x272266)['then'](handleEntityNotFound(_0x442883,null))[_0x30680a('0x20')](respondWithResult(_0x442883,null))[_0x30680a('0x18')](handleError(_0x442883,null));},exports[_0x1f95f8('0x30')]=function(_0x55fcbd,_0x19a96b){const _0x1145f9=_0x1f95f8;return db[_0x1145f9('0x1d')][_0x1145f9('0x30')](_0x55fcbd[_0x1145f9('0x28')],{})['then'](respondWithResult(_0x19a96b,0xc9))[_0x1145f9('0x18')](handleError(_0x19a96b,null));},exports['update']=function(_0x7c7644,_0x48a601){const _0x13ae99=_0x1f95f8;return _0x7c7644[_0x13ae99('0x28')]['id']&&delete _0x7c7644[_0x13ae99('0x28')]['id'],db[_0x13ae99('0x1d')]['findOne']({'where':{'id':_0x7c7644[_0x13ae99('0x6')]['id']}})[_0x13ae99('0x20')](handleEntityNotFound(_0x48a601,null))[_0x13ae99('0x20')](saveUpdates(_0x7c7644[_0x13ae99('0x28')],null))['then'](respondWithResult(_0x48a601,null))[_0x13ae99('0x18')](handleError(_0x48a601,null));},exports[_0x1f95f8('0x1f')]=function(_0x268353,_0x167c04){const _0x293744=_0x1f95f8;return db[_0x293744('0x1d')]['findOne']({'where':{'id':_0x268353[_0x293744('0x6')]['id']}})[_0x293744('0x20')](handleEntityNotFound(_0x167c04,null))[_0x293744('0x20')](removeEntity(_0x167c04,null))[_0x293744('0x18')](handleError(_0x167c04,null));},exports['describe']=function(_0x309736,_0xd3b533){const _0x39990b=_0x1f95f8;return db[_0x39990b('0x1d')][_0x39990b('0x13')]()['then'](respondWithResult(_0xd3b533,null))['catch'](handleError(_0xd3b533,null));}; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.model.js b/server/api/faxQueueReport/faxQueueReport.model.js index 731abb7..7edbf9f 100644 --- a/server/api/faxQueueReport/faxQueueReport.model.js +++ b/server/api/faxQueueReport/faxQueueReport.model.js @@ -1 +1 @@ -const a220_0x5ed5=['exports','FaxQueueReport','./faxQueueReport.attributes','define','uniqueid','report_fax_queue'];(function(_0x22d89e,_0x5ed5c6){const _0x8b53e0=function(_0x58426b){while(--_0x58426b){_0x22d89e['push'](_0x22d89e['shift']());}};_0x8b53e0(++_0x5ed5c6);}(a220_0x5ed5,0x79));const a220_0x8b53=function(_0x22d89e,_0x5ed5c6){_0x22d89e=_0x22d89e-0x0;let _0x8b53e0=a220_0x5ed5[_0x22d89e];return _0x8b53e0;};const _0x2197df=a220_0x8b53;'use strict';const attributes=require(_0x2197df('0x1'));module[_0x2197df('0x5')]=function(_0x58426b){const _0xdb4a7c=_0x2197df,_0x3450e3=_0x58426b[_0xdb4a7c('0x2')](_0xdb4a7c('0x0'),attributes,{'tableName':_0xdb4a7c('0x4'),'paranoid':![],'indexes':[{'name':_0xdb4a7c('0x3'),'fields':['uniqueid']}],'timestamps':!![]});return _0x3450e3;}; \ No newline at end of file +const a220_0x55a4=['define','./faxQueueReport.attributes','FaxQueueReport','uniqueid','report_fax_queue'];(function(_0x3c312c,_0x55a453){const _0x5965cf=function(_0x4d2e9d){while(--_0x4d2e9d){_0x3c312c['push'](_0x3c312c['shift']());}};_0x5965cf(++_0x55a453);}(a220_0x55a4,0x127));const a220_0x5965=function(_0x3c312c,_0x55a453){_0x3c312c=_0x3c312c-0x0;let _0x5965cf=a220_0x55a4[_0x3c312c];return _0x5965cf;};const _0xbf7a=a220_0x5965;'use strict';const attributes=require(_0xbf7a('0x1'));module['exports']=function(_0x4d2e9d){const _0xf2ffd9=_0xbf7a,_0x4025cb=_0x4d2e9d[_0xf2ffd9('0x0')](_0xf2ffd9('0x2'),attributes,{'tableName':_0xf2ffd9('0x4'),'paranoid':![],'indexes':[{'name':_0xf2ffd9('0x3'),'fields':[_0xf2ffd9('0x3')]}],'timestamps':!![]});return _0x4025cb;}; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.rpc.js b/server/api/faxQueueReport/faxQueueReport.rpc.js index 1c56257..d058d09 100644 --- a/server/api/faxQueueReport/faxQueueReport.rpc.js +++ b/server/api/faxQueueReport/faxQueueReport.rpc.js @@ -1 +1 @@ -const a221_0x5692=['debug','catch','attributes','rpc','stringify','create','CreateFaxQueueReport','FaxQueueReport','error','message','update','info','then','where','raw','UpdateFaxQueueReport','options','../../mysqldb','body'];(function(_0x5ced43,_0x569289){const _0x3fd4f6=function(_0x580fef){while(--_0x580fef){_0x5ced43['push'](_0x5ced43['shift']());}};_0x3fd4f6(++_0x569289);}(a221_0x5692,0x1de));const a221_0x3fd4=function(_0x5ced43,_0x569289){_0x5ced43=_0x5ced43-0x0;let _0x3fd4f6=a221_0x5692[_0x5ced43];return _0x3fd4f6;};const _0x33957d=a221_0x3fd4;'use strict';const db=require(_0x33957d('0xe'))['db'],logger=require('../../config/logger')(_0x33957d('0x0'));exports[_0x33957d('0x3')]=function(_0x580fef){const _0x52738e=this;return new Promise(function(_0x3851a5,_0x7a042b){const _0x4ca5c7=a221_0x3fd4;return db[_0x4ca5c7('0x4')][_0x4ca5c7('0x2')](_0x580fef[_0x4ca5c7('0xf')],{'raw':_0x580fef['options']?_0x580fef[_0x4ca5c7('0xd')][_0x4ca5c7('0xb')]===undefined?!![]:![]:!![]})[_0x4ca5c7('0x9')](function(_0x149d32){const _0x1521ae=_0x4ca5c7;logger[_0x1521ae('0x8')](_0x1521ae('0x3'),_0x580fef),logger[_0x1521ae('0x10')](_0x1521ae('0x3'),_0x580fef,JSON[_0x1521ae('0x1')](_0x149d32)),_0x3851a5(_0x149d32);})[_0x4ca5c7('0x11')](function(_0x8c7f01){const _0x4d2cb3=_0x4ca5c7;logger[_0x4d2cb3('0x5')]('CreateFaxQueueReport',_0x8c7f01[_0x4d2cb3('0x6')],_0x580fef),_0x7a042b(_0x52738e[_0x4d2cb3('0x5')](0x1f4,_0x8c7f01[_0x4d2cb3('0x6')]));});});},exports[_0x33957d('0xc')]=function(_0x1a5211){const _0x2dc261=this;return new Promise(function(_0x39ce8d,_0x4e04f9){const _0x486759=a221_0x3fd4;return db[_0x486759('0x4')][_0x486759('0x7')](_0x1a5211[_0x486759('0xf')],{'raw':_0x1a5211['options']?_0x1a5211[_0x486759('0xd')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1a5211[_0x486759('0xd')]?_0x1a5211[_0x486759('0xd')][_0x486759('0xa')]||null:null,'attributes':_0x1a5211[_0x486759('0xd')]?_0x1a5211[_0x486759('0xd')][_0x486759('0x12')]||null:null,'limit':_0x1a5211[_0x486759('0xd')]?_0x1a5211['options']['limit']||null:null})[_0x486759('0x9')](function(_0x364369){const _0x2bde71=_0x486759;logger[_0x2bde71('0x8')](_0x2bde71('0xc'),_0x1a5211),logger['debug'](_0x2bde71('0xc'),_0x1a5211,JSON[_0x2bde71('0x1')](_0x364369)),_0x39ce8d(_0x364369);})[_0x486759('0x11')](function(_0x179fb0){const _0x15f6ad=_0x486759;logger[_0x15f6ad('0x5')]('UpdateFaxQueueReport',_0x179fb0[_0x15f6ad('0x6')],_0x1a5211),_0x4e04f9(_0x2dc261[_0x15f6ad('0x5')](0x1f4,_0x179fb0[_0x15f6ad('0x6')]));});});}; \ No newline at end of file +const a221_0x3f9f=['limit','../../mysqldb','info','attributes','stringify','catch','debug','body','create','message','CreateFaxQueueReport','raw','error','UpdateFaxQueueReport','options'];(function(_0x42fa38,_0x3f9fca){const _0x6aade6=function(_0x38c89b){while(--_0x38c89b){_0x42fa38['push'](_0x42fa38['shift']());}};_0x6aade6(++_0x3f9fca);}(a221_0x3f9f,0x14e));const a221_0x6aad=function(_0x42fa38,_0x3f9fca){_0x42fa38=_0x42fa38-0x0;let _0x6aade6=a221_0x3f9f[_0x42fa38];return _0x6aade6;};const _0x1491a8=a221_0x6aad;'use strict';const db=require(_0x1491a8('0xc'))['db'],logger=require('../../config/logger')('rpc');exports[_0x1491a8('0x6')]=function(_0x38c89b){const _0x1e3145=this;return new Promise(function(_0x5afb21,_0x3fe24c){const _0x2e9e04=a221_0x6aad;return db['FaxQueueReport'][_0x2e9e04('0x4')](_0x38c89b[_0x2e9e04('0x3')],{'raw':_0x38c89b[_0x2e9e04('0xa')]?_0x38c89b[_0x2e9e04('0xa')][_0x2e9e04('0x7')]===undefined?!![]:![]:!![]})['then'](function(_0x2c231c){const _0x5b84e2=_0x2e9e04;logger['info']('CreateFaxQueueReport',_0x38c89b),logger[_0x5b84e2('0x2')](_0x5b84e2('0x6'),_0x38c89b,JSON[_0x5b84e2('0x0')](_0x2c231c)),_0x5afb21(_0x2c231c);})['catch'](function(_0x4f7519){const _0x5604bb=_0x2e9e04;logger[_0x5604bb('0x8')](_0x5604bb('0x6'),_0x4f7519[_0x5604bb('0x5')],_0x38c89b),_0x3fe24c(_0x1e3145['error'](0x1f4,_0x4f7519[_0x5604bb('0x5')]));});});},exports[_0x1491a8('0x9')]=function(_0x4eb356){const _0xdcb697=this;return new Promise(function(_0x2fc32f,_0xeb485){const _0x3bf4b2=a221_0x6aad;return db['FaxQueueReport']['update'](_0x4eb356[_0x3bf4b2('0x3')],{'raw':_0x4eb356['options']?_0x4eb356[_0x3bf4b2('0xa')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4eb356[_0x3bf4b2('0xa')]?_0x4eb356[_0x3bf4b2('0xa')]['where']||null:null,'attributes':_0x4eb356['options']?_0x4eb356[_0x3bf4b2('0xa')][_0x3bf4b2('0xe')]||null:null,'limit':_0x4eb356[_0x3bf4b2('0xa')]?_0x4eb356[_0x3bf4b2('0xa')][_0x3bf4b2('0xb')]||null:null})['then'](function(_0x4f6415){const _0x6e5faf=_0x3bf4b2;logger[_0x6e5faf('0xd')](_0x6e5faf('0x9'),_0x4eb356),logger[_0x6e5faf('0x2')](_0x6e5faf('0x9'),_0x4eb356,JSON[_0x6e5faf('0x0')](_0x4f6415)),_0x2fc32f(_0x4f6415);})[_0x3bf4b2('0x1')](function(_0x528aa4){const _0x3b9a14=_0x3bf4b2;logger[_0x3b9a14('0x8')](_0x3b9a14('0x9'),_0x528aa4[_0x3b9a14('0x5')],_0x4eb356),_0xeb485(_0xdcb697['error'](0x1f4,_0x528aa4[_0x3b9a14('0x5')]));});});}; \ No newline at end of file diff --git a/server/api/faxQueueReport/index.js b/server/api/faxQueueReport/index.js index e0f947d..5beace0 100644 --- a/server/api/faxQueueReport/index.js +++ b/server/api/faxQueueReport/index.js @@ -1 +1 @@ -const a222_0x3c32=['describe','./faxQueueReport.controller','isAuthenticated','Router','exports','create','post','/describe','express','show','get','destroy','/:id'];(function(_0x15a68c,_0x3c3245){const _0x2a25c9=function(_0x5c2c6d){while(--_0x5c2c6d){_0x15a68c['push'](_0x15a68c['shift']());}};_0x2a25c9(++_0x3c3245);}(a222_0x3c32,0xe5));const a222_0x2a25=function(_0x15a68c,_0x3c3245){_0x15a68c=_0x15a68c-0x0;let _0x2a25c9=a222_0x3c32[_0x15a68c];return _0x2a25c9;};const _0x35c219=a222_0x2a25;'use strict';const express=require(_0x35c219('0x0')),router=express[_0x35c219('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x35c219('0x6'));router[_0x35c219('0x2')]('/',auth[_0x35c219('0x7')](),controller['index']),router[_0x35c219('0x2')](_0x35c219('0xc'),auth[_0x35c219('0x7')](),controller[_0x35c219('0x5')]),router[_0x35c219('0x2')](_0x35c219('0x4'),auth[_0x35c219('0x7')](),controller[_0x35c219('0x1')]),router[_0x35c219('0xb')]('/',auth[_0x35c219('0x7')](),controller[_0x35c219('0xa')]),router['put'](_0x35c219('0x4'),auth[_0x35c219('0x7')](),controller['update']),router['delete'](_0x35c219('0x4'),auth['isAuthenticated'](),controller[_0x35c219('0x3')]),module[_0x35c219('0x9')]=router; \ No newline at end of file +const a222_0x5897=['index','destroy','exports','describe','/describe','Router','express','create','show','isAuthenticated','/:id','get','post','./faxQueueReport.controller','delete'];(function(_0x25ca53,_0x58974f){const _0x2eef44=function(_0x3c959b){while(--_0x3c959b){_0x25ca53['push'](_0x25ca53['shift']());}};_0x2eef44(++_0x58974f);}(a222_0x5897,0xd3));const a222_0x2eef=function(_0x25ca53,_0x58974f){_0x25ca53=_0x25ca53-0x0;let _0x2eef44=a222_0x5897[_0x25ca53];return _0x2eef44;};const _0x56f738=a222_0x2eef;'use strict';const express=require(_0x56f738('0x5')),router=express[_0x56f738('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x56f738('0xc'));router['get']('/',auth[_0x56f738('0x8')](),controller[_0x56f738('0xe')]),router[_0x56f738('0xa')](_0x56f738('0x3'),auth[_0x56f738('0x8')](),controller[_0x56f738('0x2')]),router[_0x56f738('0xa')](_0x56f738('0x9'),auth[_0x56f738('0x8')](),controller[_0x56f738('0x7')]),router[_0x56f738('0xb')]('/',auth[_0x56f738('0x8')](),controller[_0x56f738('0x6')]),router['put'](_0x56f738('0x9'),auth[_0x56f738('0x8')](),controller['update']),router[_0x56f738('0xd')](_0x56f738('0x9'),auth[_0x56f738('0x8')](),controller[_0x56f738('0x0')]),module[_0x56f738('0x1')]=router; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.attributes.js b/server/api/faxTransferReport/faxTransferReport.attributes.js index 46d20d1..d9b884a 100644 --- a/server/api/faxTransferReport/faxTransferReport.attributes.js +++ b/server/api/faxTransferReport/faxTransferReport.attributes.js @@ -1 +1 @@ -const a223_0x2de8=['queue','ENUM','exports','account','STRING','DATE','NOW'];(function(_0x1883f1,_0x2de861){const _0x5b8ed4=function(_0x4e82b5){while(--_0x4e82b5){_0x1883f1['push'](_0x1883f1['shift']());}};_0x5b8ed4(++_0x2de861);}(a223_0x2de8,0x174));const a223_0x5b8e=function(_0x1883f1,_0x2de861){_0x1883f1=_0x1883f1-0x0;let _0x5b8ed4=a223_0x2de8[_0x1883f1];return _0x5b8ed4;};const _0x2d9642=a223_0x5b8e;'use strict';const Sequelize=require('sequelize');module[_0x2d9642('0x1')]={'uniqueid':{'type':Sequelize[_0x2d9642('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x2d9642('0x0')](_0x2d9642('0x2'),'agent',_0x2d9642('0x6')),'allowNull':![],'defaultValue':_0x2d9642('0x6')},'transferredAt':{'type':Sequelize[_0x2d9642('0x4')],'allowNull':![],'defaultValue':Sequelize[_0x2d9642('0x5')]}}; \ No newline at end of file +const a223_0x1a8f=['agent','account','ENUM','sequelize','queue','DATE'];(function(_0x29e888,_0x1a8f16){const _0x436984=function(_0x2d25f5){while(--_0x2d25f5){_0x29e888['push'](_0x29e888['shift']());}};_0x436984(++_0x1a8f16);}(a223_0x1a8f,0xe6));const a223_0x4369=function(_0x29e888,_0x1a8f16){_0x29e888=_0x29e888-0x0;let _0x436984=a223_0x1a8f[_0x29e888];return _0x436984;};const _0xba59e2=a223_0x4369;'use strict';const Sequelize=require(_0xba59e2('0x1'));module['exports']={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0xba59e2('0x0')](_0xba59e2('0x5'),_0xba59e2('0x4'),'queue'),'allowNull':![],'defaultValue':_0xba59e2('0x2')},'transferredAt':{'type':Sequelize[_0xba59e2('0x3')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.controller.js b/server/api/faxTransferReport/faxTransferReport.controller.js index ab82e0c..5f2a2d4 100644 --- a/server/api/faxTransferReport/faxTransferReport.controller.js +++ b/server/api/faxTransferReport/faxTransferReport.controller.js @@ -1 +1 @@ -const a224_0x280f=['create','attributes','../../config/logger','order','intersection','type','include','keys','rawAttributes','api','params','describe','show','status','filters','query','../../mysqldb','limit','model','sort','stack','body','json','undefined','offset','lodash','FaxTransferReport','like','error','then','fieldName','sequelize','count','options','update','name','where','send','fields','pick','map','merge','findOne','findAll','includeAll','length','nolimit','Content-Range','rows','VIRTUAL','end','catch'];(function(_0x33a9fa,_0x280f24){const _0x2b2fa2=function(_0xe4e683){while(--_0xe4e683){_0x33a9fa['push'](_0x33a9fa['shift']());}};_0x2b2fa2(++_0x280f24);}(a224_0x280f,0xe9));const a224_0x2b2f=function(_0x33a9fa,_0x280f24){_0x33a9fa=_0x33a9fa-0x0;let _0x2b2fa2=a224_0x280f[_0x33a9fa];return _0x2b2fa2;};const _0x42790a=a224_0x2b2f;'use strict';const _=require(_0x42790a('0x0')),qs=require('../../components/parsers/qs'),logger=require(_0x42790a('0x1d'))(_0x42790a('0x24')),db=require(_0x42790a('0x2b'))['db'],{Op}=require(_0x42790a('0x6'));function respondWithResult(_0xe4e683,_0xe8af81){return _0xe8af81=_0xe8af81||0xc8,function(_0x410922){const _0x38d62b=a224_0x2b2f;if(_0x410922)return _0xe4e683[_0x38d62b('0x28')](_0xe8af81)[_0x38d62b('0x31')](_0x410922);};}function respondWithFilteredResult(_0x1b9708,_0x21811f){return function(_0xd62835){const _0xe44e11=a224_0x2b2f;if(_0xd62835){const _0x48963c=_0xd62835[_0xe44e11('0x7')],_0x48779c=_0x21811f[_0xe44e11('0x33')];let _0x5d97c7=_0x21811f[_0xe44e11('0x33')]+_0x21811f[_0xe44e11('0x2c')],_0x58e6f0;return _0x5d97c7>=_0x48963c?(_0x5d97c7=_0x48963c,_0x58e6f0=0xc8):_0x58e6f0=0xce,_0x1b9708[_0xe44e11('0x28')](_0x58e6f0),_0x1b9708['set'](_0xe44e11('0x16'),_0x48779c+'-'+_0x5d97c7+'/'+_0x48963c)[_0xe44e11('0x31')](_0xd62835);}return null;};}function saveUpdates(_0x4a07e3){return function(_0x13e84c){const _0x26a889=a224_0x2b2f;if(_0x13e84c)return _0x13e84c[_0x26a889('0x9')](_0x4a07e3)[_0x26a889('0x4')](function(_0x5272ec){return _0x5272ec;});return null;};}function removeEntity(_0x244ba2){return function(_0x4b5f60){if(_0x4b5f60)return _0x4b5f60['destroy']()['then'](function(){const _0x5a90e9=a224_0x2b2f;_0x244ba2[_0x5a90e9('0x28')](0xcc)[_0x5a90e9('0x19')]();});};}function handleEntityNotFound(_0x1beba4){return function(_0x4efd7b){return!_0x4efd7b&&_0x1beba4['sendStatus'](0x194),_0x4efd7b;};}function handleError(_0x307e63,_0x5a05d2){return _0x5a05d2=_0x5a05d2||0x1f4,function(_0x176faf){const _0x258e2f=a224_0x2b2f;logger[_0x258e2f('0x3')](_0x176faf[_0x258e2f('0x2f')]),_0x176faf['name']&&delete _0x176faf[_0x258e2f('0xa')],_0x307e63['status'](_0x5a05d2)[_0x258e2f('0xc')](_0x176faf);};}exports['index']=function(_0xe10562,_0x3810e0){const _0x88d9b9=_0x42790a;let _0x161577={};const _0x141a6b={},_0x59fde6={'count':0x0,'rows':[]},_0x1ea1f9=_[_0x88d9b9('0xf')](db[_0x88d9b9('0x1')]['rawAttributes'],function(_0x4bd14b){const _0x2e0678=_0x88d9b9;return{'name':_0x4bd14b[_0x2e0678('0x5')],'type':_0x4bd14b[_0x2e0678('0x20')]['key']};});_0x141a6b['model']=_[_0x88d9b9('0xf')](_0x1ea1f9,_0x88d9b9('0xa')),_0x141a6b[_0x88d9b9('0x2a')]=_[_0x88d9b9('0x22')](_0xe10562[_0x88d9b9('0x2a')]),_0x141a6b['filters']=_[_0x88d9b9('0x1f')](_0x141a6b[_0x88d9b9('0x2d')],_0x141a6b[_0x88d9b9('0x2a')]),_0x161577[_0x88d9b9('0x1c')]=_[_0x88d9b9('0x1f')](_0x141a6b[_0x88d9b9('0x2d')],qs[_0x88d9b9('0xd')](_0xe10562[_0x88d9b9('0x2a')]['fields'])),_0x161577[_0x88d9b9('0x1c')]=_0x161577[_0x88d9b9('0x1c')][_0x88d9b9('0x14')]?_0x161577[_0x88d9b9('0x1c')]:_0x141a6b['model'];typeof _0xe10562['query'][_0x88d9b9('0x15')]===_0x88d9b9('0x32')&&(_0x161577[_0x88d9b9('0x2c')]=qs[_0x88d9b9('0x2c')](_0xe10562[_0x88d9b9('0x2a')][_0x88d9b9('0x2c')]),_0x161577[_0x88d9b9('0x33')]=qs['offset'](_0xe10562[_0x88d9b9('0x2a')][_0x88d9b9('0x33')]));_0x161577[_0x88d9b9('0x1e')]=qs[_0x88d9b9('0x2e')](_0xe10562['query']['sort']),_0x161577[_0x88d9b9('0xb')]=qs[_0x88d9b9('0x29')](_[_0x88d9b9('0xe')](_0xe10562['query'],_0x141a6b[_0x88d9b9('0x29')]),_0x1ea1f9);_0xe10562[_0x88d9b9('0x2a')]['filter']&&(_0x161577['where']=_[_0x88d9b9('0x10')](_0x161577[_0x88d9b9('0xb')],{[Op['or']]:_[_0x88d9b9('0xf')](_0x1ea1f9,function(_0x7db656){const _0x972efd=_0x88d9b9;if(_0x7db656[_0x972efd('0x20')]!==_0x972efd('0x18')){const _0x1ae7f7={};return _0x1ae7f7[_0x7db656[_0x972efd('0xa')]]={[Op[_0x972efd('0x2')]]:'%'+_0xe10562['query']['filter']+'%'},_0x1ae7f7;}})}));_0x161577=_['merge']({},_0x161577,_0xe10562[_0x88d9b9('0x8')]);const _0x30906d={'where':_0x161577['where']};return db[_0x88d9b9('0x1')][_0x88d9b9('0x7')](_0x30906d)['then'](function(_0x48704c){const _0xad7c10=_0x88d9b9;return _0x59fde6['count']=_0x48704c,_0xe10562['query']['includeAll']&&(_0x161577['include']=[{'all':!![]}]),db[_0xad7c10('0x1')][_0xad7c10('0x12')](_0x161577);})[_0x88d9b9('0x4')](function(_0x15aa2b){const _0x227578=_0x88d9b9;return _0x59fde6[_0x227578('0x17')]=_0x15aa2b,_0x59fde6;})[_0x88d9b9('0x4')](respondWithFilteredResult(_0x3810e0,_0x161577))['catch'](handleError(_0x3810e0,null));},exports[_0x42790a('0x27')]=function(_0x520eb4,_0x6d51d0){const _0x40d710=_0x42790a;let _0x2860a4={'raw':!![],'where':{'id':_0x520eb4[_0x40d710('0x25')]['id']}};const _0x43c171={};return _0x43c171[_0x40d710('0x2d')]=_[_0x40d710('0x22')](db[_0x40d710('0x1')][_0x40d710('0x23')]),_0x43c171[_0x40d710('0x2a')]=_[_0x40d710('0x22')](_0x520eb4[_0x40d710('0x2a')]),_0x43c171[_0x40d710('0x29')]=_['intersection'](_0x43c171[_0x40d710('0x2d')],_0x43c171[_0x40d710('0x2a')]),_0x2860a4['attributes']=_[_0x40d710('0x1f')](_0x43c171[_0x40d710('0x2d')],qs[_0x40d710('0xd')](_0x520eb4[_0x40d710('0x2a')][_0x40d710('0xd')])),_0x2860a4[_0x40d710('0x1c')]=_0x2860a4[_0x40d710('0x1c')]['length']?_0x2860a4[_0x40d710('0x1c')]:_0x43c171[_0x40d710('0x2d')],_0x520eb4[_0x40d710('0x2a')][_0x40d710('0x13')]&&(_0x2860a4[_0x40d710('0x21')]=[{'all':!![]}]),_0x2860a4=_[_0x40d710('0x10')]({},_0x2860a4,_0x520eb4['options']),db[_0x40d710('0x1')]['findOne'](_0x2860a4)[_0x40d710('0x4')](handleEntityNotFound(_0x6d51d0,null))['then'](respondWithResult(_0x6d51d0,null))[_0x40d710('0x1a')](handleError(_0x6d51d0,null));},exports['create']=function(_0x367e5a,_0x4aae7b){const _0x583212=_0x42790a;return db[_0x583212('0x1')][_0x583212('0x1b')](_0x367e5a[_0x583212('0x30')],{})[_0x583212('0x4')](respondWithResult(_0x4aae7b,0xc9))[_0x583212('0x1a')](handleError(_0x4aae7b,null));},exports[_0x42790a('0x9')]=function(_0x4ed8b5,_0x21bafd){const _0x2858b2=_0x42790a;return _0x4ed8b5[_0x2858b2('0x30')]['id']&&delete _0x4ed8b5[_0x2858b2('0x30')]['id'],db[_0x2858b2('0x1')][_0x2858b2('0x11')]({'where':{'id':_0x4ed8b5['params']['id']}})[_0x2858b2('0x4')](handleEntityNotFound(_0x21bafd,null))[_0x2858b2('0x4')](saveUpdates(_0x4ed8b5[_0x2858b2('0x30')],null))[_0x2858b2('0x4')](respondWithResult(_0x21bafd,null))[_0x2858b2('0x1a')](handleError(_0x21bafd,null));},exports['destroy']=function(_0x4201ac,_0xa53958){const _0x379aff=_0x42790a;return db[_0x379aff('0x1')]['findOne']({'where':{'id':_0x4201ac[_0x379aff('0x25')]['id']}})[_0x379aff('0x4')](handleEntityNotFound(_0xa53958,null))['then'](removeEntity(_0xa53958,null))[_0x379aff('0x1a')](handleError(_0xa53958,null));},exports[_0x42790a('0x26')]=function(_0x3c5d33,_0x280456){const _0x43ff52=_0x42790a;return db[_0x43ff52('0x1')][_0x43ff52('0x26')]()['then'](respondWithResult(_0x280456,null))[_0x43ff52('0x1a')](handleError(_0x280456,null));}; \ No newline at end of file +const a224_0x53cf=['Content-Range','nolimit','body','fields','intersection','key','../../mysqldb','type','filters','api','../../config/logger','rawAttributes','pick','end','update','limit','name','destroy','show','length','options','sequelize','FaxTransferReport','VIRTUAL','error','params','where','merge','offset','findOne','keys','query','create','model','fieldName','catch','filter','describe','then','attributes','index','rows','undefined','includeAll','json','status','../../components/parsers/qs','lodash','include','count','map'];(function(_0x1010ca,_0x53cfd0){const _0x1b8720=function(_0xed1f2d){while(--_0xed1f2d){_0x1010ca['push'](_0x1010ca['shift']());}};_0x1b8720(++_0x53cfd0);}(a224_0x53cf,0x68));const a224_0x1b87=function(_0x1010ca,_0x53cfd0){_0x1010ca=_0x1010ca-0x0;let _0x1b8720=a224_0x53cf[_0x1010ca];return _0x1b8720;};const _0x106d75=a224_0x1b87;'use strict';const _=require(_0x106d75('0x2d')),qs=require(_0x106d75('0x2c')),logger=require(_0x106d75('0x8'))(_0x106d75('0x7')),db=require(_0x106d75('0x4'))['db'],{Op}=require(_0x106d75('0x13'));function respondWithResult(_0xed1f2d,_0x2570a8){return _0x2570a8=_0x2570a8||0xc8,function(_0x4f7c1f){const _0x2d205f=a224_0x1b87;if(_0x4f7c1f)return _0xed1f2d[_0x2d205f('0x2b')](_0x2570a8)[_0x2d205f('0x2a')](_0x4f7c1f);};}function respondWithFilteredResult(_0x4a6f13,_0x490b51){return function(_0x53acbe){const _0x1527b7=a224_0x1b87;if(_0x53acbe){const _0x58b730=_0x53acbe['count'],_0x55be8c=_0x490b51[_0x1527b7('0x1a')];let _0x201106=_0x490b51[_0x1527b7('0x1a')]+_0x490b51[_0x1527b7('0xd')],_0x24f336;return _0x201106>=_0x58b730?(_0x201106=_0x58b730,_0x24f336=0xc8):_0x24f336=0xce,_0x4a6f13[_0x1527b7('0x2b')](_0x24f336),_0x4a6f13['set'](_0x1527b7('0x31'),_0x55be8c+'-'+_0x201106+'/'+_0x58b730)[_0x1527b7('0x2a')](_0x53acbe);}return null;};}function saveUpdates(_0x2d3574){return function(_0x260479){const _0x525268=a224_0x1b87;if(_0x260479)return _0x260479[_0x525268('0xc')](_0x2d3574)['then'](function(_0x11c102){return _0x11c102;});return null;};}function removeEntity(_0x188761){return function(_0xe70e2c){const _0x260417=a224_0x1b87;if(_0xe70e2c)return _0xe70e2c['destroy']()[_0x260417('0x24')](function(){const _0x53ff83=_0x260417;_0x188761[_0x53ff83('0x2b')](0xcc)[_0x53ff83('0xb')]();});};}function handleEntityNotFound(_0x1d0f0b){return function(_0x3a8135){return!_0x3a8135&&_0x1d0f0b['sendStatus'](0x194),_0x3a8135;};}function handleError(_0x24c029,_0x5c8cc3){return _0x5c8cc3=_0x5c8cc3||0x1f4,function(_0x2b2015){const _0x25e64=a224_0x1b87;logger[_0x25e64('0x16')](_0x2b2015['stack']),_0x2b2015['name']&&delete _0x2b2015[_0x25e64('0xe')],_0x24c029[_0x25e64('0x2b')](_0x5c8cc3)['send'](_0x2b2015);};}exports[_0x106d75('0x26')]=function(_0x46576b,_0x33109b){const _0x3804ae=_0x106d75;let _0x18082e={};const _0x2c6e4d={},_0x58cd26={'count':0x0,'rows':[]},_0x298c67=_[_0x3804ae('0x30')](db['FaxTransferReport'][_0x3804ae('0x9')],function(_0x21d52e){const _0x5b51c7=_0x3804ae;return{'name':_0x21d52e[_0x5b51c7('0x20')],'type':_0x21d52e[_0x5b51c7('0x5')][_0x5b51c7('0x3')]};});_0x2c6e4d[_0x3804ae('0x1f')]=_[_0x3804ae('0x30')](_0x298c67,_0x3804ae('0xe')),_0x2c6e4d['query']=_[_0x3804ae('0x1c')](_0x46576b['query']),_0x2c6e4d[_0x3804ae('0x6')]=_['intersection'](_0x2c6e4d['model'],_0x2c6e4d[_0x3804ae('0x1d')]),_0x18082e[_0x3804ae('0x25')]=_[_0x3804ae('0x2')](_0x2c6e4d['model'],qs[_0x3804ae('0x1')](_0x46576b[_0x3804ae('0x1d')][_0x3804ae('0x1')])),_0x18082e[_0x3804ae('0x25')]=_0x18082e[_0x3804ae('0x25')][_0x3804ae('0x11')]?_0x18082e[_0x3804ae('0x25')]:_0x2c6e4d[_0x3804ae('0x1f')];typeof _0x46576b[_0x3804ae('0x1d')][_0x3804ae('0x32')]===_0x3804ae('0x28')&&(_0x18082e[_0x3804ae('0xd')]=qs[_0x3804ae('0xd')](_0x46576b[_0x3804ae('0x1d')][_0x3804ae('0xd')]),_0x18082e[_0x3804ae('0x1a')]=qs['offset'](_0x46576b[_0x3804ae('0x1d')][_0x3804ae('0x1a')]));_0x18082e['order']=qs['sort'](_0x46576b[_0x3804ae('0x1d')]['sort']),_0x18082e['where']=qs[_0x3804ae('0x6')](_[_0x3804ae('0xa')](_0x46576b[_0x3804ae('0x1d')],_0x2c6e4d[_0x3804ae('0x6')]),_0x298c67);_0x46576b[_0x3804ae('0x1d')][_0x3804ae('0x22')]&&(_0x18082e[_0x3804ae('0x18')]=_[_0x3804ae('0x19')](_0x18082e[_0x3804ae('0x18')],{[Op['or']]:_['map'](_0x298c67,function(_0x2d7807){const _0x152831=_0x3804ae;if(_0x2d7807[_0x152831('0x5')]!==_0x152831('0x15')){const _0x5dbc04={};return _0x5dbc04[_0x2d7807[_0x152831('0xe')]]={[Op['like']]:'%'+_0x46576b[_0x152831('0x1d')]['filter']+'%'},_0x5dbc04;}})}));_0x18082e=_[_0x3804ae('0x19')]({},_0x18082e,_0x46576b[_0x3804ae('0x12')]);const _0xa41d8a={'where':_0x18082e[_0x3804ae('0x18')]};return db[_0x3804ae('0x14')][_0x3804ae('0x2f')](_0xa41d8a)[_0x3804ae('0x24')](function(_0x4c0f8a){const _0xcd77c2=_0x3804ae;return _0x58cd26[_0xcd77c2('0x2f')]=_0x4c0f8a,_0x46576b[_0xcd77c2('0x1d')][_0xcd77c2('0x29')]&&(_0x18082e[_0xcd77c2('0x2e')]=[{'all':!![]}]),db['FaxTransferReport']['findAll'](_0x18082e);})[_0x3804ae('0x24')](function(_0x2db592){const _0x340c01=_0x3804ae;return _0x58cd26[_0x340c01('0x27')]=_0x2db592,_0x58cd26;})[_0x3804ae('0x24')](respondWithFilteredResult(_0x33109b,_0x18082e))['catch'](handleError(_0x33109b,null));},exports[_0x106d75('0x10')]=function(_0x256f47,_0x1a26e7){const _0x4e1643=_0x106d75;let _0x9d0ec7={'raw':!![],'where':{'id':_0x256f47[_0x4e1643('0x17')]['id']}};const _0x4b4b9b={};return _0x4b4b9b[_0x4e1643('0x1f')]=_[_0x4e1643('0x1c')](db[_0x4e1643('0x14')][_0x4e1643('0x9')]),_0x4b4b9b[_0x4e1643('0x1d')]=_[_0x4e1643('0x1c')](_0x256f47[_0x4e1643('0x1d')]),_0x4b4b9b[_0x4e1643('0x6')]=_[_0x4e1643('0x2')](_0x4b4b9b[_0x4e1643('0x1f')],_0x4b4b9b[_0x4e1643('0x1d')]),_0x9d0ec7[_0x4e1643('0x25')]=_[_0x4e1643('0x2')](_0x4b4b9b['model'],qs['fields'](_0x256f47['query']['fields'])),_0x9d0ec7[_0x4e1643('0x25')]=_0x9d0ec7[_0x4e1643('0x25')][_0x4e1643('0x11')]?_0x9d0ec7['attributes']:_0x4b4b9b['model'],_0x256f47[_0x4e1643('0x1d')]['includeAll']&&(_0x9d0ec7[_0x4e1643('0x2e')]=[{'all':!![]}]),_0x9d0ec7=_[_0x4e1643('0x19')]({},_0x9d0ec7,_0x256f47['options']),db[_0x4e1643('0x14')][_0x4e1643('0x1b')](_0x9d0ec7)[_0x4e1643('0x24')](handleEntityNotFound(_0x1a26e7,null))[_0x4e1643('0x24')](respondWithResult(_0x1a26e7,null))['catch'](handleError(_0x1a26e7,null));},exports[_0x106d75('0x1e')]=function(_0x30c4c9,_0x5f0a63){const _0x202a57=_0x106d75;return db[_0x202a57('0x14')][_0x202a57('0x1e')](_0x30c4c9['body'],{})['then'](respondWithResult(_0x5f0a63,0xc9))[_0x202a57('0x21')](handleError(_0x5f0a63,null));},exports[_0x106d75('0xc')]=function(_0x13d87d,_0x149f52){const _0x3a5c05=_0x106d75;return _0x13d87d[_0x3a5c05('0x0')]['id']&&delete _0x13d87d[_0x3a5c05('0x0')]['id'],db['FaxTransferReport']['findOne']({'where':{'id':_0x13d87d[_0x3a5c05('0x17')]['id']}})[_0x3a5c05('0x24')](handleEntityNotFound(_0x149f52,null))[_0x3a5c05('0x24')](saveUpdates(_0x13d87d[_0x3a5c05('0x0')],null))['then'](respondWithResult(_0x149f52,null))['catch'](handleError(_0x149f52,null));},exports[_0x106d75('0xf')]=function(_0xee56bf,_0x49fdc0){const _0x5d19b0=_0x106d75;return db['FaxTransferReport'][_0x5d19b0('0x1b')]({'where':{'id':_0xee56bf[_0x5d19b0('0x17')]['id']}})['then'](handleEntityNotFound(_0x49fdc0,null))[_0x5d19b0('0x24')](removeEntity(_0x49fdc0,null))[_0x5d19b0('0x21')](handleError(_0x49fdc0,null));},exports[_0x106d75('0x23')]=function(_0xe7721b,_0x4c5591){const _0x2a1dea=_0x106d75;return db[_0x2a1dea('0x14')]['describe']()[_0x2a1dea('0x24')](respondWithResult(_0x4c5591,null))[_0x2a1dea('0x21')](handleError(_0x4c5591,null));}; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.model.js b/server/api/faxTransferReport/faxTransferReport.model.js index 3f606bb..18a8a23 100644 --- a/server/api/faxTransferReport/faxTransferReport.model.js +++ b/server/api/faxTransferReport/faxTransferReport.model.js @@ -1 +1 @@ -const a225_0xa1c3=['uniqueid','define','exports','./faxTransferReport.attributes','FaxTransferReport'];(function(_0x5b0cb7,_0xa1c3ad){const _0x52cb18=function(_0x4bda98){while(--_0x4bda98){_0x5b0cb7['push'](_0x5b0cb7['shift']());}};_0x52cb18(++_0xa1c3ad);}(a225_0xa1c3,0x12b));const a225_0x52cb=function(_0x5b0cb7,_0xa1c3ad){_0x5b0cb7=_0x5b0cb7-0x0;let _0x52cb18=a225_0xa1c3[_0x5b0cb7];return _0x52cb18;};const _0xdb04ed=a225_0x52cb;'use strict';const attributes=require(_0xdb04ed('0x4'));module[_0xdb04ed('0x3')]=function(_0x4bda98){const _0x39f1d8=_0xdb04ed,_0x588c59=_0x4bda98[_0x39f1d8('0x2')](_0x39f1d8('0x0'),attributes,{'tableName':'report_fax_transfer','paranoid':![],'indexes':[{'name':_0x39f1d8('0x1'),'fields':[_0x39f1d8('0x1')]}],'timestamps':!![]});return _0x588c59;}; \ No newline at end of file +const a225_0x5213=['exports','uniqueid','./faxTransferReport.attributes','report_fax_transfer','FaxTransferReport'];(function(_0x206a6b,_0x5213d8){const _0x5a0a22=function(_0x3bd966){while(--_0x3bd966){_0x206a6b['push'](_0x206a6b['shift']());}};_0x5a0a22(++_0x5213d8);}(a225_0x5213,0x131));const a225_0x5a0a=function(_0x206a6b,_0x5213d8){_0x206a6b=_0x206a6b-0x0;let _0x5a0a22=a225_0x5213[_0x206a6b];return _0x5a0a22;};const _0x5c68f8=a225_0x5a0a;'use strict';const attributes=require(_0x5c68f8('0x2'));module[_0x5c68f8('0x0')]=function(_0x3bd966){const _0x51bcf7=_0x5c68f8,_0x332596=_0x3bd966['define'](_0x51bcf7('0x4'),attributes,{'tableName':_0x51bcf7('0x3'),'paranoid':![],'indexes':[{'name':_0x51bcf7('0x1'),'fields':[_0x51bcf7('0x1')]}],'timestamps':!![]});return _0x332596;}; \ No newline at end of file diff --git a/server/api/faxTransferReport/index.js b/server/api/faxTransferReport/index.js index 87936e2..7e74781 100644 --- a/server/api/faxTransferReport/index.js +++ b/server/api/faxTransferReport/index.js @@ -1 +1 @@ -const a226_0x49ca=['get','index','update','describe','delete','/:id','isAuthenticated','exports','put','create','../../components/auth/service','express','post','show','destroy','Router'];(function(_0x2118f1,_0x49ca23){const _0x214512=function(_0xf25a7d){while(--_0xf25a7d){_0x2118f1['push'](_0x2118f1['shift']());}};_0x214512(++_0x49ca23);}(a226_0x49ca,0x1c7));const a226_0x2145=function(_0x2118f1,_0x49ca23){_0x2118f1=_0x2118f1-0x0;let _0x214512=a226_0x49ca[_0x2118f1];return _0x214512;};const _0x5b6884=a226_0x2145;'use strict';const express=require(_0x5b6884('0x4')),router=express[_0x5b6884('0x8')](),auth=require(_0x5b6884('0x3')),controller=require('./faxTransferReport.controller');router[_0x5b6884('0x9')]('/',auth[_0x5b6884('0xf')](),controller[_0x5b6884('0xa')]),router[_0x5b6884('0x9')]('/describe',auth[_0x5b6884('0xf')](),controller[_0x5b6884('0xc')]),router[_0x5b6884('0x9')](_0x5b6884('0xe'),auth[_0x5b6884('0xf')](),controller[_0x5b6884('0x6')]),router[_0x5b6884('0x5')]('/',auth[_0x5b6884('0xf')](),controller[_0x5b6884('0x2')]),router[_0x5b6884('0x1')](_0x5b6884('0xe'),auth[_0x5b6884('0xf')](),controller[_0x5b6884('0xb')]),router[_0x5b6884('0xd')](_0x5b6884('0xe'),auth[_0x5b6884('0xf')](),controller[_0x5b6884('0x7')]),module[_0x5b6884('0x0')]=router; \ No newline at end of file +const a226_0x20c6=['put','get','express','describe','isAuthenticated','/:id','post','destroy','../../components/auth/service','show','index','/describe','./faxTransferReport.controller','delete','update'];(function(_0x3756b1,_0x20c637){const _0x1dbb4b=function(_0xcb4f58){while(--_0xcb4f58){_0x3756b1['push'](_0x3756b1['shift']());}};_0x1dbb4b(++_0x20c637);}(a226_0x20c6,0x12d));const a226_0x1dbb=function(_0x3756b1,_0x20c637){_0x3756b1=_0x3756b1-0x0;let _0x1dbb4b=a226_0x20c6[_0x3756b1];return _0x1dbb4b;};const _0x2a493e=a226_0x1dbb;'use strict';const express=require(_0x2a493e('0x1')),router=express['Router'](),auth=require(_0x2a493e('0x7')),controller=require(_0x2a493e('0xb'));router['get']('/',auth[_0x2a493e('0x3')](),controller[_0x2a493e('0x9')]),router[_0x2a493e('0x0')](_0x2a493e('0xa'),auth['isAuthenticated'](),controller[_0x2a493e('0x2')]),router[_0x2a493e('0x0')](_0x2a493e('0x4'),auth[_0x2a493e('0x3')](),controller[_0x2a493e('0x8')]),router[_0x2a493e('0x5')]('/',auth['isAuthenticated'](),controller['create']),router[_0x2a493e('0xe')](_0x2a493e('0x4'),auth[_0x2a493e('0x3')](),controller[_0x2a493e('0xd')]),router[_0x2a493e('0xc')](_0x2a493e('0x4'),auth[_0x2a493e('0x3')](),controller[_0x2a493e('0x6')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intDeskAccount/index.js b/server/api/intDeskAccount/index.js index 5ff1f18..814c669 100644 --- a/server/api/intDeskAccount/index.js +++ b/server/api/intDeskAccount/index.js @@ -1 +1 @@ -const a227_0x4805=['get','express','index','/:id/fields','destroy','exports','./intDeskAccount.controller','isAuthenticated','put','post','show','getFields','/:id/configurations','create','update','delete','/:id','Router'];(function(_0x257f64,_0x480586){const _0x2457bf=function(_0x3c9831){while(--_0x3c9831){_0x257f64['push'](_0x257f64['shift']());}};_0x2457bf(++_0x480586);}(a227_0x4805,0x1ed));const a227_0x2457=function(_0x257f64,_0x480586){_0x257f64=_0x257f64-0x0;let _0x2457bf=a227_0x4805[_0x257f64];return _0x2457bf;};const _0x2a53a5=a227_0x2457;'use strict';const express=require(_0x2a53a5('0xc')),router=express[_0x2a53a5('0xa')](),auth=require('../../components/auth/service'),controller=require(_0x2a53a5('0x11'));router[_0x2a53a5('0xb')]('/',auth['isAuthenticated'](),controller[_0x2a53a5('0xd')]),router[_0x2a53a5('0xb')](_0x2a53a5('0x9'),auth[_0x2a53a5('0x0')](),controller[_0x2a53a5('0x3')]),router[_0x2a53a5('0xb')](_0x2a53a5('0x5'),auth[_0x2a53a5('0x0')](),controller['getConfigurations']),router['get'](_0x2a53a5('0xe'),auth[_0x2a53a5('0x0')](),controller[_0x2a53a5('0x4')]),router['post']('/',auth['isAuthenticated'](),controller[_0x2a53a5('0x6')]),router[_0x2a53a5('0x2')]('/:id/configurations',auth[_0x2a53a5('0x0')](),controller['addConfiguration']),router[_0x2a53a5('0x1')](_0x2a53a5('0x9'),auth[_0x2a53a5('0x0')](),controller[_0x2a53a5('0x7')]),router[_0x2a53a5('0x8')]('/:id',auth[_0x2a53a5('0x0')](),controller[_0x2a53a5('0xf')]),module[_0x2a53a5('0x10')]=router; \ No newline at end of file +const a227_0x3b3a=['/:id/configurations','index','destroy','getConfigurations','isAuthenticated','get','update','../../components/auth/service','getFields','addConfiguration','/:id','post','/:id/fields','delete','exports','show','put'];(function(_0x5d36b9,_0x3b3a05){const _0x32285a=function(_0x5915a5){while(--_0x5915a5){_0x5d36b9['push'](_0x5d36b9['shift']());}};_0x32285a(++_0x3b3a05);}(a227_0x3b3a,0x1d7));const a227_0x3228=function(_0x5d36b9,_0x3b3a05){_0x5d36b9=_0x5d36b9-0x0;let _0x32285a=a227_0x3b3a[_0x5d36b9];return _0x32285a;};const _0x2da814=a227_0x3228;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x2da814('0xc')),controller=require('./intDeskAccount.controller');router[_0x2da814('0xa')]('/',auth[_0x2da814('0x9')](),controller[_0x2da814('0x6')]),router[_0x2da814('0xa')](_0x2da814('0xf'),auth[_0x2da814('0x9')](),controller[_0x2da814('0x3')]),router[_0x2da814('0xa')](_0x2da814('0x5'),auth['isAuthenticated'](),controller[_0x2da814('0x8')]),router[_0x2da814('0xa')](_0x2da814('0x0'),auth[_0x2da814('0x9')](),controller[_0x2da814('0xd')]),router[_0x2da814('0x10')]('/',auth[_0x2da814('0x9')](),controller['create']),router[_0x2da814('0x10')](_0x2da814('0x5'),auth[_0x2da814('0x9')](),controller[_0x2da814('0xe')]),router[_0x2da814('0x4')](_0x2da814('0xf'),auth[_0x2da814('0x9')](),controller[_0x2da814('0xb')]),router[_0x2da814('0x1')]('/:id',auth['isAuthenticated'](),controller[_0x2da814('0x7')]),module[_0x2da814('0x2')]=router; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.attributes.js b/server/api/intDeskAccount/intDeskAccount.attributes.js index da428c3..c8d4610 100644 --- a/server/api/intDeskAccount/intDeskAccount.attributes.js +++ b/server/api/intDeskAccount/intDeskAccount.attributes.js @@ -1 +1 @@ -const a228_0x112e=['newTab','ENUM','integrationTab','sequelize','basic','STRING'];(function(_0x5ba348,_0x112e28){const _0x262857=function(_0x38fc6f){while(--_0x38fc6f){_0x5ba348['push'](_0x5ba348['shift']());}};_0x262857(++_0x112e28);}(a228_0x112e,0xaa));const a228_0x2628=function(_0x5ba348,_0x112e28){_0x5ba348=_0x5ba348-0x0;let _0x262857=a228_0x112e[_0x5ba348];return _0x262857;};const _0x1a480d=a228_0x2628;'use strict';const Sequelize=require(_0x1a480d('0x1'));module['exports']={'name':{'type':Sequelize[_0x1a480d('0x3')]},'description':{'type':Sequelize[_0x1a480d('0x3')]},'username':{'type':Sequelize[_0x1a480d('0x3')]},'remoteUri':{'type':Sequelize[_0x1a480d('0x3')]},'authType':{'type':Sequelize[_0x1a480d('0x5')](_0x1a480d('0x2')),'defaultValue':'basic'},'password':{'type':Sequelize[_0x1a480d('0x3')]},'consumerKey':{'type':Sequelize['STRING']},'consumerSecret':{'type':Sequelize[_0x1a480d('0x3')]},'token':{'type':Sequelize[_0x1a480d('0x3')]},'tokenSecret':{'type':Sequelize[_0x1a480d('0x3')]},'serverUrl':{'type':Sequelize[_0x1a480d('0x3')]},'type':{'type':Sequelize['ENUM'](_0x1a480d('0x0'),_0x1a480d('0x4')),'defaultValue':_0x1a480d('0x0')}}; \ No newline at end of file +const a228_0xb838=['sequelize','STRING','basic','exports','ENUM','integrationTab','newTab'];(function(_0x2aef74,_0xb838d1){const _0x5e1405=function(_0x304ae4){while(--_0x304ae4){_0x2aef74['push'](_0x2aef74['shift']());}};_0x5e1405(++_0xb838d1);}(a228_0xb838,0x12c));const a228_0x5e14=function(_0x2aef74,_0xb838d1){_0x2aef74=_0x2aef74-0x0;let _0x5e1405=a228_0xb838[_0x2aef74];return _0x5e1405;};const _0x4fefa5=a228_0x5e14;'use strict';const Sequelize=require(_0x4fefa5('0x1'));module[_0x4fefa5('0x4')]={'name':{'type':Sequelize[_0x4fefa5('0x2')]},'description':{'type':Sequelize[_0x4fefa5('0x2')]},'username':{'type':Sequelize[_0x4fefa5('0x2')]},'remoteUri':{'type':Sequelize[_0x4fefa5('0x2')]},'authType':{'type':Sequelize[_0x4fefa5('0x5')](_0x4fefa5('0x3')),'defaultValue':_0x4fefa5('0x3')},'password':{'type':Sequelize[_0x4fefa5('0x2')]},'consumerKey':{'type':Sequelize['STRING']},'consumerSecret':{'type':Sequelize[_0x4fefa5('0x2')]},'token':{'type':Sequelize[_0x4fefa5('0x2')]},'tokenSecret':{'type':Sequelize[_0x4fefa5('0x2')]},'serverUrl':{'type':Sequelize[_0x4fefa5('0x2')]},'type':{'type':Sequelize[_0x4fefa5('0x5')](_0x4fefa5('0x6'),_0x4fefa5('0x0')),'defaultValue':'integrationTab'}}; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.controller.js b/server/api/intDeskAccount/intDeskAccount.controller.js index bccc562..fc319fd 100644 --- a/server/api/intDeskAccount/intDeskAccount.controller.js +++ b/server/api/intDeskAccount/intDeskAccount.controller.js @@ -1 +1 @@ -const a229_0x3e22=['map','then','DeskField','create','sort','lodash','includeAll','fields','entries','rawAttributes','pick','like','send','offset','where','channel','concat','DeskConfiguration','destroy','json','basic','Wrong\x20credentials','from','order','slice','catch','getDescriptions','nolimit','filters','addConfiguration','name','tokenSecret','getFields,\x20%s,\x20%s,\x20%s','token','request-promise-native','_embedded','DeskAccount','api','toString','merge','application/json','password','limit','authType','params','getFields','getSubjects','options','headers','username','status','keys','consumerKey','show','length','sendStatus','include','Authorization','AccountId','format','findOne','test','getConfigurations','../../components/integrations/configuration','body','active','Descriptions','model','Basic\x20%s','remoteUri','Subjects','attributes','count','consumerSecret','intersection','sequelize','undefined','util','base64','lastIndexOf','filter','findAll','error','stack','query','type','priority','set','rows','label'];(function(_0x1a10d1,_0x3e2202){const _0x200a80=function(_0x316b9c){while(--_0x316b9c){_0x1a10d1['push'](_0x1a10d1['shift']());}};_0x200a80(++_0x3e2202);}(a229_0x3e22,0x11e));const a229_0x200a=function(_0x1a10d1,_0x3e2202){_0x1a10d1=_0x1a10d1-0x0;let _0x200a80=a229_0x3e22[_0x1a10d1];return _0x200a80;};const _0x26d14c=a229_0x200a;'use strict';const rp=require(_0x26d14c('0x12')),util=require(_0x26d14c('0x3d')),_=require(_0x26d14c('0x4f')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x26d14c('0x15')),db=require('../../mysqldb')['db'],{Op}=require(_0x26d14c('0x3b')),integrations=require(_0x26d14c('0x2f'));function respondWithResult(_0x316b9c,_0x52811b){return _0x52811b=_0x52811b||0xc8,function(_0xdf3043){const _0x5592ed=a229_0x200a;if(_0xdf3043)return _0x316b9c[_0x5592ed('0x22')](_0x52811b)['json'](_0xdf3043);};}function respondWithFilteredResult(_0x480405,_0x4ea979){return function(_0x2be5e8){const _0x1bf5ad=a229_0x200a;if(_0x2be5e8){const _0x49ef20=_0x2be5e8[_0x1bf5ad('0x38')],_0xc5321b=_0x4ea979[_0x1bf5ad('0x57')];let _0x17155c=_0x4ea979[_0x1bf5ad('0x57')]+_0x4ea979['limit'],_0x3b50d1;return _0x17155c>=_0x49ef20?(_0x17155c=_0x49ef20,_0x3b50d1=0xc8):_0x3b50d1=0xce,_0x480405[_0x1bf5ad('0x22')](_0x3b50d1),_0x480405[_0x1bf5ad('0x47')]('Content-Range',_0xc5321b+'-'+_0x17155c+'/'+_0x49ef20)[_0x1bf5ad('0x3')](_0x2be5e8);}return null;};}function saveUpdates(_0x5d44a2){return function(_0x4da1f7){const _0x5978cb=a229_0x200a;if(_0x4da1f7)return _0x4da1f7['update'](_0x5d44a2)[_0x5978cb('0x4b')](function(_0x5f01ea){return _0x5f01ea;});return null;};}function removeEntity(_0x473529){return function(_0x2d189f){const _0x15bdca=a229_0x200a;if(_0x2d189f)return _0x2d189f[_0x15bdca('0x2')]()[_0x15bdca('0x4b')](function(){const _0x3660f1=_0x15bdca;_0x473529[_0x3660f1('0x22')](0xcc)['end']();});};}function handleEntityNotFound(_0x4563f2){return function(_0x18456d){const _0x3394e2=a229_0x200a;return!_0x18456d&&_0x4563f2[_0x3394e2('0x27')](0x194),_0x18456d;};}function handleError(_0x34c41d,_0x71ddc){return _0x71ddc=_0x71ddc||0x1f4,function(_0x37d1ce){const _0x4deb71=a229_0x200a;logger[_0x4deb71('0x42')](_0x37d1ce[_0x4deb71('0x43')]),_0x37d1ce['name']&&delete _0x37d1ce['name'],_0x34c41d[_0x4deb71('0x22')](_0x71ddc)[_0x4deb71('0x56')](_0x37d1ce);};}exports['index']=function(_0x204123,_0x3d8498){const _0x46206a=_0x26d14c;let _0x85fb61={};const _0x5d890c={},_0x35fbe2={'count':0x0,'rows':[]},_0x395b00=_[_0x46206a('0x4a')](db[_0x46206a('0x14')][_0x46206a('0x53')],function(_0x9b5c87){const _0x98b3d9=_0x46206a;return{'name':_0x9b5c87['fieldName'],'type':_0x9b5c87[_0x98b3d9('0x45')]['key']};});_0x5d890c[_0x46206a('0x33')]=_[_0x46206a('0x4a')](_0x395b00,_0x46206a('0xe')),_0x5d890c[_0x46206a('0x44')]=_['keys'](_0x204123['query']),_0x5d890c['filters']=_['intersection'](_0x5d890c[_0x46206a('0x33')],_0x5d890c['query']),_0x85fb61[_0x46206a('0x37')]=_[_0x46206a('0x3a')](_0x5d890c['model'],qs['fields'](_0x204123[_0x46206a('0x44')][_0x46206a('0x51')])),_0x85fb61[_0x46206a('0x37')]=_0x85fb61[_0x46206a('0x37')][_0x46206a('0x26')]?_0x85fb61['attributes']:_0x5d890c['model'];typeof _0x204123[_0x46206a('0x44')]['nolimit']===_0x46206a('0x3c')&&(_0x85fb61[_0x46206a('0x1a')]=qs['limit'](_0x204123[_0x46206a('0x44')][_0x46206a('0x1a')]),_0x85fb61['offset']=qs[_0x46206a('0x57')](_0x204123[_0x46206a('0x44')]['offset']));_0x85fb61[_0x46206a('0x7')]=qs[_0x46206a('0x4e')](_0x204123[_0x46206a('0x44')][_0x46206a('0x4e')]),_0x85fb61[_0x46206a('0x58')]=qs[_0x46206a('0xc')](_[_0x46206a('0x54')](_0x204123[_0x46206a('0x44')],_0x5d890c[_0x46206a('0xc')]),_0x395b00);_0x204123['query'][_0x46206a('0x40')]&&(_0x85fb61[_0x46206a('0x58')]=_[_0x46206a('0x17')](_0x85fb61[_0x46206a('0x58')],{[Op['or']]:_[_0x46206a('0x4a')](_0x395b00,function(_0x173c15){const _0x3fd5e3=_0x46206a;if(_0x173c15[_0x3fd5e3('0x45')]!=='VIRTUAL'){const _0xf259b2={};return _0xf259b2[_0x173c15[_0x3fd5e3('0xe')]]={[Op[_0x3fd5e3('0x55')]]:'%'+_0x204123[_0x3fd5e3('0x44')][_0x3fd5e3('0x40')]+'%'},_0xf259b2;}})}));_0x85fb61=_[_0x46206a('0x17')]({},_0x85fb61,_0x204123[_0x46206a('0x1f')]);const _0x5e2e0a={'where':_0x85fb61[_0x46206a('0x58')]};return db['DeskAccount'][_0x46206a('0x38')](_0x5e2e0a)['then'](function(_0x206153){const _0x4de6f4=_0x46206a;return _0x35fbe2[_0x4de6f4('0x38')]=_0x206153,_0x204123[_0x4de6f4('0x44')][_0x4de6f4('0x50')]&&(_0x85fb61[_0x4de6f4('0x28')]=[{'all':!![]}]),db[_0x4de6f4('0x14')][_0x4de6f4('0x41')](_0x85fb61);})[_0x46206a('0x4b')](function(_0x20e35d){const _0x3c5be6=_0x46206a;return _0x35fbe2[_0x3c5be6('0x48')]=_0x20e35d,_0x35fbe2;})['then'](respondWithFilteredResult(_0x3d8498,_0x85fb61))[_0x46206a('0x9')](handleError(_0x3d8498,null));},exports[_0x26d14c('0x25')]=function(_0x3eead9,_0x16087d){const _0x55fac3=_0x26d14c;let _0x4054e1={'raw':![],'where':{'id':_0x3eead9['params']['id']}};const _0x5a4efe={};return _0x5a4efe['model']=_[_0x55fac3('0x23')](db['DeskAccount'][_0x55fac3('0x53')]),_0x5a4efe[_0x55fac3('0x44')]=_[_0x55fac3('0x23')](_0x3eead9['query']),_0x5a4efe[_0x55fac3('0xc')]=_[_0x55fac3('0x3a')](_0x5a4efe['model'],_0x5a4efe['query']),_0x4054e1['attributes']=_['intersection'](_0x5a4efe[_0x55fac3('0x33')],qs[_0x55fac3('0x51')](_0x3eead9[_0x55fac3('0x44')][_0x55fac3('0x51')])),_0x4054e1[_0x55fac3('0x37')]=_0x4054e1[_0x55fac3('0x37')]['length']?_0x4054e1['attributes']:_0x5a4efe['model'],_0x3eead9[_0x55fac3('0x44')][_0x55fac3('0x50')]&&(_0x4054e1[_0x55fac3('0x28')]=[{'all':!![]}]),_0x4054e1=_[_0x55fac3('0x17')]({},_0x4054e1,_0x3eead9[_0x55fac3('0x1f')]),db[_0x55fac3('0x14')][_0x55fac3('0x2c')](_0x4054e1)[_0x55fac3('0x4b')](handleEntityNotFound(_0x16087d,null))[_0x55fac3('0x4b')](respondWithResult(_0x16087d,null))['catch'](handleError(_0x16087d,null));},exports[_0x26d14c('0x4d')]=function(_0x5efaca,_0x416477){const _0x93a1c2=_0x26d14c;return db[_0x93a1c2('0x14')][_0x93a1c2('0x4d')](_0x5efaca[_0x93a1c2('0x30')],{})[_0x93a1c2('0x4b')](respondWithResult(_0x416477,0xc9))[_0x93a1c2('0x9')](handleError(_0x416477,null));},exports['update']=function(_0x4219db,_0x3addde){const _0x250623=_0x26d14c;return _0x4219db[_0x250623('0x30')]['id']&&delete _0x4219db[_0x250623('0x30')]['id'],db[_0x250623('0x14')][_0x250623('0x2c')]({'where':{'id':_0x4219db[_0x250623('0x1c')]['id']}})[_0x250623('0x4b')](handleEntityNotFound(_0x3addde,null))['then'](saveUpdates(_0x4219db['body'],null))[_0x250623('0x4b')](respondWithResult(_0x3addde,null))['catch'](handleError(_0x3addde,null));},exports['destroy']=function(_0x24dee6,_0x2d18bb){const _0x4c6fda=_0x26d14c;return db['DeskAccount'][_0x4c6fda('0x2c')]({'where':{'id':_0x24dee6[_0x4c6fda('0x1c')]['id']}})[_0x4c6fda('0x4b')](handleEntityNotFound(_0x2d18bb,null))[_0x4c6fda('0x4b')](removeEntity(_0x2d18bb,null))[_0x4c6fda('0x9')](handleError(_0x2d18bb,null));},exports['getConfigurations']=function(_0x596d1f,_0x53e253){const _0x3bc9c3=_0x26d14c;let _0x5a0375={};const _0x5c53c8={};let _0x7748a8,_0x5548c6;return db[_0x3bc9c3('0x14')][_0x3bc9c3('0x2c')]({'where':{'id':_0x596d1f[_0x3bc9c3('0x1c')]['id']}})[_0x3bc9c3('0x4b')](handleEntityNotFound(_0x53e253,null))['then'](function(_0x5c3e5c){const _0x585f23=_0x3bc9c3;if(_0x5c3e5c)return _0x7748a8=_0x5c3e5c,_0x5c53c8[_0x585f23('0x33')]=_[_0x585f23('0x23')](db[_0x585f23('0x1')][_0x585f23('0x53')]),_0x5c53c8['query']=_[_0x585f23('0x23')](_0x596d1f[_0x585f23('0x44')]),_0x5c53c8[_0x585f23('0xc')]=_[_0x585f23('0x3a')](_0x5c53c8[_0x585f23('0x33')],_0x5c53c8[_0x585f23('0x44')]),_0x5a0375[_0x585f23('0x37')]=_[_0x585f23('0x3a')](_0x5c53c8[_0x585f23('0x33')],qs['fields'](_0x596d1f['query']['fields'])),_0x5a0375[_0x585f23('0x37')]=_0x5a0375[_0x585f23('0x37')][_0x585f23('0x26')]?_0x5a0375[_0x585f23('0x37')]:_0x5c53c8[_0x585f23('0x33')],_0x5a0375[_0x585f23('0x7')]=qs[_0x585f23('0x4e')](_0x596d1f[_0x585f23('0x44')][_0x585f23('0x4e')]),_0x5a0375[_0x585f23('0x58')]=qs[_0x585f23('0xc')](_[_0x585f23('0x54')](_0x596d1f[_0x585f23('0x44')],_0x5c53c8[_0x585f23('0xc')])),_0x596d1f[_0x585f23('0x44')][_0x585f23('0x40')]&&(_0x5a0375[_0x585f23('0x58')]=_['merge'](_0x5a0375[_0x585f23('0x58')],{[Op['or']]:_[_0x585f23('0x4a')](_0x5a0375[_0x585f23('0x37')],function(_0x58bcdc){const _0x23f91c=_0x585f23,_0x35f496={};return _0x35f496[_0x58bcdc]={[Op[_0x23f91c('0x55')]]:'%'+_0x596d1f[_0x23f91c('0x44')]['filter']+'%'},_0x35f496;})})),_0x5a0375=_[_0x585f23('0x17')]({},_0x5a0375,_0x596d1f[_0x585f23('0x1f')]),_0x7748a8[_0x585f23('0x2e')](_0x5a0375);})[_0x3bc9c3('0x4b')](function(_0x140e45){const _0x1812c7=_0x3bc9c3;if(_0x140e45)return _0x5548c6=_0x140e45[_0x1812c7('0x26')],typeof _0x596d1f[_0x1812c7('0x44')][_0x1812c7('0xb')]===_0x1812c7('0x3c')&&(_0x5a0375[_0x1812c7('0x1a')]=qs[_0x1812c7('0x1a')](_0x596d1f[_0x1812c7('0x44')][_0x1812c7('0x1a')]),_0x5a0375[_0x1812c7('0x57')]=qs['offset'](_0x596d1f[_0x1812c7('0x44')][_0x1812c7('0x57')])),_0x7748a8['getConfigurations'](_0x5a0375);})[_0x3bc9c3('0x4b')](function(_0x4e72a5){if(_0x4e72a5)return _0x4e72a5?{'count':_0x5548c6,'rows':_0x4e72a5}:null;})['then'](respondWithResult(_0x53e253,null))[_0x3bc9c3('0x9')](handleError(_0x53e253,null));},exports[_0x26d14c('0xd')]=function(_0x293849,_0x16c1aa){const _0x250566=_0x26d14c;return _0x293849[_0x250566('0x30')]['id']&&delete _0x293849[_0x250566('0x30')]['id'],db[_0x250566('0x14')][_0x250566('0x2c')]({'where':{'id':_0x293849['params']['id']}})['then'](handleEntityNotFound(_0x16c1aa,null))[_0x250566('0x4b')](function(_0x57ab6e){const _0x4cb481=_0x250566;if(_0x57ab6e)return _0x293849['body'][_0x4cb481('0x2a')]=_0x57ab6e['id'],_0x293849['body'][_0x4cb481('0x36')]=integrations[_0x4cb481('0x1e')](_0x293849[_0x4cb481('0x30')][_0x4cb481('0x59')],_0x293849[_0x4cb481('0x30')][_0x4cb481('0x45')]),_0x293849['body'][_0x4cb481('0x32')]=integrations[_0x4cb481('0xa')](_0x293849[_0x4cb481('0x30')][_0x4cb481('0x59')],_0x293849[_0x4cb481('0x30')][_0x4cb481('0x45')]),db[_0x4cb481('0x1')][_0x4cb481('0x4d')](_0x293849['body'],{'include':[{'model':db[_0x4cb481('0x4c')],'as':_0x4cb481('0x36')},{'model':db[_0x4cb481('0x4c')],'as':_0x4cb481('0x32')}]});return null;})[_0x250566('0x4b')](respondWithResult(_0x16c1aa,null))[_0x250566('0x9')](handleError(_0x16c1aa,null));},exports[_0x26d14c('0x1d')]=function(_0x32b0ee,_0x2b6a58){const _0x3d1327=_0x26d14c,_0x2ad427=[{'name':_0x3d1327('0x46'),'label':_0x3d1327('0x46'),'custom':![],'options':[{'name':0x1,'value':0x1},{'name':0x2,'value':0x2},{'name':0x3,'value':0x3},{'name':0x4,'value':0x4},{'name':0x5,'value':0x5},{'name':0x6,'value':0x6},{'name':0x7,'value':0x7},{'name':0x8,'value':0x8},{'name':0x9,'value':0x9},{'name':0xa,'value':0xa}]}];let _0x39efe5='';return db['DeskAccount'][_0x3d1327('0x2c')]({'where':{'id':_0x32b0ee[_0x3d1327('0x1c')]['id']},'attributes':['id',_0x3d1327('0x35'),_0x3d1327('0x1b'),'username',_0x3d1327('0x19'),_0x3d1327('0x24'),_0x3d1327('0x39'),_0x3d1327('0x11'),_0x3d1327('0xf')]})[_0x3d1327('0x4b')](handleEntityNotFound(_0x2b6a58,null))[_0x3d1327('0x4b')](function(_0x437488){const _0x56f28c=_0x3d1327;if(_0x437488){_0x39efe5=_0x437488[_0x56f28c('0x35')];const _0x283c7a=_0x39efe5[_0x56f28c('0x8')](-0x1);_0x283c7a==='/'&&(_0x39efe5=_0x39efe5['substring'](0x0,_0x39efe5[_0x56f28c('0x3f')](_0x283c7a)));const _0x51a7ff={'method':'GET','uri':util[_0x56f28c('0x2b')]('%s/custom_fields',_0x39efe5),'headers':{'Content-Type':_0x56f28c('0x18'),'Accept':_0x56f28c('0x18')},'json':!![]};return _0x437488['authType']===_0x56f28c('0x4')&&(_0x51a7ff[_0x56f28c('0x20')][_0x56f28c('0x29')]=util['format'](_0x56f28c('0x34'),Buffer[_0x56f28c('0x6')](util[_0x56f28c('0x2b')]('%s:%s',_0x437488[_0x56f28c('0x21')],_0x437488[_0x56f28c('0x19')]))[_0x56f28c('0x16')](_0x56f28c('0x3e')))),rp(_0x51a7ff)['then'](function(_0x51782e){const _0x11331e=_0x56f28c;return _0x2ad427[_0x11331e('0x0')](_[_0x11331e('0x4a')](_0x51782e[_0x11331e('0x13')][_0x11331e('0x52')],function(_0x3910c1){const _0x4a2383=_0x11331e;return{'id':_0x3910c1['name'],'name':_0x3910c1[_0x4a2383('0xe')],'type':_0x3910c1['type'],'active':_0x3910c1[_0x4a2383('0x31')],'label':_0x3910c1[_0x4a2383('0x49')],'custom':!![]};}));});}})[_0x3d1327('0x4b')](function(_0x281f59){const _0x23ac32=_0x3d1327;return{'count':_0x281f59[_0x23ac32('0x26')],'rows':_0x281f59};})[_0x3d1327('0x4b')](respondWithResult(_0x2b6a58,null))[_0x3d1327('0x9')](function(_0x2c2cd2){const _0x10dd36=_0x3d1327;let _0x448aa4=_0x32b0ee[_0x10dd36('0x44')]['test']?0x1f4:_0x2c2cd2['statusCode']||0x1f4;logger[_0x10dd36('0x42')](_0x10dd36('0x10'),_0x10dd36('0x1d'),_0x448aa4,JSON['stringify'](_0x2c2cd2)),delete _0x2c2cd2[_0x10dd36('0xe')],_0x448aa4===0x191&&(_0x448aa4=0x190),_0x2b6a58['status'](_0x448aa4)[_0x10dd36('0x56')](_0x32b0ee['query'][_0x10dd36('0x2d')]?{'message':_0x10dd36('0x5'),'statusCode':_0x2c2cd2['statusCode']}:_0x2c2cd2);});}; \ No newline at end of file +const a229_0x5b42=['test','type','active','keys','findOne','format','like','request-promise-native','application/json','DeskConfiguration','name','include','Authorization','getConfigurations','getDescriptions','filters','label','includeAll','length','util','headers','sequelize','../../config/logger','Basic\x20%s','DeskField','offset','_embedded','fieldName','channel','remoteUri','from','base64','nolimit','query','sort','order','options','username','create','destroy','AccountId','limit','tokenSecret','intersection','error','GET','getFields','entries','Descriptions','addConfiguration','params','statusCode','password','catch','count','then','body','key','DeskAccount','json','token','fields','set','lodash','authType','Content-Range','toString','findAll','merge','update','Subjects','end','VIRTUAL','filter','rawAttributes','api','pick','rows','Wrong\x20credentials','%s/custom_fields','status','basic','model','slice','attributes','map','where','undefined','stringify'];(function(_0x25d0dd,_0x5b42ee){const _0x48d308=function(_0x4e8b62){while(--_0x4e8b62){_0x25d0dd['push'](_0x25d0dd['shift']());}};_0x48d308(++_0x5b42ee);}(a229_0x5b42,0x75));const a229_0x48d3=function(_0x25d0dd,_0x5b42ee){_0x25d0dd=_0x25d0dd-0x0;let _0x48d308=a229_0x5b42[_0x25d0dd];return _0x48d308;};const _0x57fe58=a229_0x48d3;'use strict';const rp=require(_0x57fe58('0x44')),util=require(_0x57fe58('0x50')),_=require(_0x57fe58('0x23')),qs=require('../../components/parsers/qs'),logger=require(_0x57fe58('0x53'))(_0x57fe58('0x2f')),db=require('../../mysqldb')['db'],{Op}=require(_0x57fe58('0x52')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x4e8b62,_0x18675c){return _0x18675c=_0x18675c||0xc8,function(_0x28cc0c){const _0x2a02a0=a229_0x48d3;if(_0x28cc0c)return _0x4e8b62[_0x2a02a0('0x34')](_0x18675c)[_0x2a02a0('0x1f')](_0x28cc0c);};}function respondWithFilteredResult(_0x436122,_0x12e2ac){return function(_0xfc62d3){const _0x1fc8e8=a229_0x48d3;if(_0xfc62d3){const _0x204261=_0xfc62d3[_0x1fc8e8('0x1a')],_0x167e08=_0x12e2ac[_0x1fc8e8('0x56')];let _0x1a4707=_0x12e2ac[_0x1fc8e8('0x56')]+_0x12e2ac[_0x1fc8e8('0xd')],_0x22a5d9;return _0x1a4707>=_0x204261?(_0x1a4707=_0x204261,_0x22a5d9=0xc8):_0x22a5d9=0xce,_0x436122[_0x1fc8e8('0x34')](_0x22a5d9),_0x436122[_0x1fc8e8('0x22')](_0x1fc8e8('0x25'),_0x167e08+'-'+_0x1a4707+'/'+_0x204261)[_0x1fc8e8('0x1f')](_0xfc62d3);}return null;};}function saveUpdates(_0x3e90ed){return function(_0x56e992){const _0x53599a=a229_0x48d3;if(_0x56e992)return _0x56e992[_0x53599a('0x29')](_0x3e90ed)[_0x53599a('0x1b')](function(_0x235cca){return _0x235cca;});return null;};}function removeEntity(_0x440372){return function(_0x388615){const _0x3b02a6=a229_0x48d3;if(_0x388615)return _0x388615['destroy']()[_0x3b02a6('0x1b')](function(){const _0x4d7381=_0x3b02a6;_0x440372[_0x4d7381('0x34')](0xcc)[_0x4d7381('0x2b')]();});};}function handleEntityNotFound(_0x56e8bf){return function(_0x47ca45){return!_0x47ca45&&_0x56e8bf['sendStatus'](0x194),_0x47ca45;};}function handleError(_0x29f041,_0x180022){return _0x180022=_0x180022||0x1f4,function(_0x2cf307){const _0x4b9d52=a229_0x48d3;logger['error'](_0x2cf307['stack']),_0x2cf307[_0x4b9d52('0x47')]&&delete _0x2cf307['name'],_0x29f041[_0x4b9d52('0x34')](_0x180022)['send'](_0x2cf307);};}exports['index']=function(_0x136d16,_0x38c9ae){const _0x4c466b=_0x57fe58;let _0x5adeef={};const _0x3dc62e={},_0x16898d={'count':0x0,'rows':[]},_0x1f4617=_[_0x4c466b('0x39')](db[_0x4c466b('0x1e')]['rawAttributes'],function(_0x4b4521){const _0x887f3a=_0x4c466b;return{'name':_0x4b4521[_0x887f3a('0x58')],'type':_0x4b4521[_0x887f3a('0x3e')][_0x887f3a('0x1d')]};});_0x3dc62e[_0x4c466b('0x36')]=_[_0x4c466b('0x39')](_0x1f4617,_0x4c466b('0x47')),_0x3dc62e['query']=_[_0x4c466b('0x40')](_0x136d16[_0x4c466b('0x5')]),_0x3dc62e[_0x4c466b('0x4c')]=_['intersection'](_0x3dc62e[_0x4c466b('0x36')],_0x3dc62e[_0x4c466b('0x5')]),_0x5adeef[_0x4c466b('0x38')]=_['intersection'](_0x3dc62e[_0x4c466b('0x36')],qs['fields'](_0x136d16[_0x4c466b('0x5')][_0x4c466b('0x21')])),_0x5adeef[_0x4c466b('0x38')]=_0x5adeef[_0x4c466b('0x38')][_0x4c466b('0x4f')]?_0x5adeef[_0x4c466b('0x38')]:_0x3dc62e['model'];typeof _0x136d16[_0x4c466b('0x5')][_0x4c466b('0x4')]===_0x4c466b('0x3b')&&(_0x5adeef[_0x4c466b('0xd')]=qs[_0x4c466b('0xd')](_0x136d16['query'][_0x4c466b('0xd')]),_0x5adeef[_0x4c466b('0x56')]=qs['offset'](_0x136d16['query']['offset']));_0x5adeef[_0x4c466b('0x7')]=qs[_0x4c466b('0x6')](_0x136d16[_0x4c466b('0x5')][_0x4c466b('0x6')]),_0x5adeef[_0x4c466b('0x3a')]=qs['filters'](_[_0x4c466b('0x30')](_0x136d16[_0x4c466b('0x5')],_0x3dc62e['filters']),_0x1f4617);_0x136d16[_0x4c466b('0x5')][_0x4c466b('0x2d')]&&(_0x5adeef[_0x4c466b('0x3a')]=_[_0x4c466b('0x28')](_0x5adeef[_0x4c466b('0x3a')],{[Op['or']]:_['map'](_0x1f4617,function(_0x29d778){const _0x54e3da=_0x4c466b;if(_0x29d778[_0x54e3da('0x3e')]!==_0x54e3da('0x2c')){const _0x3c86cf={};return _0x3c86cf[_0x29d778[_0x54e3da('0x47')]]={[Op[_0x54e3da('0x43')]]:'%'+_0x136d16[_0x54e3da('0x5')]['filter']+'%'},_0x3c86cf;}})}));_0x5adeef=_[_0x4c466b('0x28')]({},_0x5adeef,_0x136d16[_0x4c466b('0x8')]);const _0x2bb4fa={'where':_0x5adeef[_0x4c466b('0x3a')]};return db[_0x4c466b('0x1e')][_0x4c466b('0x1a')](_0x2bb4fa)[_0x4c466b('0x1b')](function(_0x355301){const _0x2ad5c5=_0x4c466b;return _0x16898d['count']=_0x355301,_0x136d16[_0x2ad5c5('0x5')][_0x2ad5c5('0x4e')]&&(_0x5adeef[_0x2ad5c5('0x48')]=[{'all':!![]}]),db[_0x2ad5c5('0x1e')][_0x2ad5c5('0x27')](_0x5adeef);})[_0x4c466b('0x1b')](function(_0x5446cd){const _0xcce5aa=_0x4c466b;return _0x16898d[_0xcce5aa('0x31')]=_0x5446cd,_0x16898d;})[_0x4c466b('0x1b')](respondWithFilteredResult(_0x38c9ae,_0x5adeef))[_0x4c466b('0x19')](handleError(_0x38c9ae,null));},exports['show']=function(_0x18a12a,_0x442e6c){const _0xcf1675=_0x57fe58;let _0x27d681={'raw':![],'where':{'id':_0x18a12a[_0xcf1675('0x16')]['id']}};const _0x3fa8ce={};return _0x3fa8ce['model']=_['keys'](db[_0xcf1675('0x1e')][_0xcf1675('0x2e')]),_0x3fa8ce['query']=_[_0xcf1675('0x40')](_0x18a12a[_0xcf1675('0x5')]),_0x3fa8ce['filters']=_['intersection'](_0x3fa8ce['model'],_0x3fa8ce[_0xcf1675('0x5')]),_0x27d681[_0xcf1675('0x38')]=_[_0xcf1675('0xf')](_0x3fa8ce[_0xcf1675('0x36')],qs['fields'](_0x18a12a[_0xcf1675('0x5')][_0xcf1675('0x21')])),_0x27d681['attributes']=_0x27d681[_0xcf1675('0x38')][_0xcf1675('0x4f')]?_0x27d681[_0xcf1675('0x38')]:_0x3fa8ce[_0xcf1675('0x36')],_0x18a12a['query']['includeAll']&&(_0x27d681[_0xcf1675('0x48')]=[{'all':!![]}]),_0x27d681=_[_0xcf1675('0x28')]({},_0x27d681,_0x18a12a['options']),db[_0xcf1675('0x1e')]['findOne'](_0x27d681)['then'](handleEntityNotFound(_0x442e6c,null))['then'](respondWithResult(_0x442e6c,null))[_0xcf1675('0x19')](handleError(_0x442e6c,null));},exports['create']=function(_0x1f8136,_0x19b40c){const _0x3d8420=_0x57fe58;return db[_0x3d8420('0x1e')][_0x3d8420('0xa')](_0x1f8136['body'],{})['then'](respondWithResult(_0x19b40c,0xc9))[_0x3d8420('0x19')](handleError(_0x19b40c,null));},exports['update']=function(_0xd9405e,_0x24d658){const _0x30f907=_0x57fe58;return _0xd9405e[_0x30f907('0x1c')]['id']&&delete _0xd9405e[_0x30f907('0x1c')]['id'],db[_0x30f907('0x1e')][_0x30f907('0x41')]({'where':{'id':_0xd9405e[_0x30f907('0x16')]['id']}})[_0x30f907('0x1b')](handleEntityNotFound(_0x24d658,null))[_0x30f907('0x1b')](saveUpdates(_0xd9405e['body'],null))[_0x30f907('0x1b')](respondWithResult(_0x24d658,null))['catch'](handleError(_0x24d658,null));},exports[_0x57fe58('0xb')]=function(_0x4294f9,_0x4793f){const _0x201f42=_0x57fe58;return db[_0x201f42('0x1e')][_0x201f42('0x41')]({'where':{'id':_0x4294f9[_0x201f42('0x16')]['id']}})[_0x201f42('0x1b')](handleEntityNotFound(_0x4793f,null))[_0x201f42('0x1b')](removeEntity(_0x4793f,null))[_0x201f42('0x19')](handleError(_0x4793f,null));},exports[_0x57fe58('0x4a')]=function(_0x525594,_0x3db6e2){const _0x27f8f4=_0x57fe58;let _0x4383a9={};const _0x32fa56={};let _0x5b6f9a,_0x55ba35;return db['DeskAccount'][_0x27f8f4('0x41')]({'where':{'id':_0x525594['params']['id']}})[_0x27f8f4('0x1b')](handleEntityNotFound(_0x3db6e2,null))[_0x27f8f4('0x1b')](function(_0x156952){const _0x1d79d9=_0x27f8f4;if(_0x156952)return _0x5b6f9a=_0x156952,_0x32fa56[_0x1d79d9('0x36')]=_[_0x1d79d9('0x40')](db[_0x1d79d9('0x46')][_0x1d79d9('0x2e')]),_0x32fa56[_0x1d79d9('0x5')]=_[_0x1d79d9('0x40')](_0x525594['query']),_0x32fa56['filters']=_[_0x1d79d9('0xf')](_0x32fa56['model'],_0x32fa56[_0x1d79d9('0x5')]),_0x4383a9['attributes']=_['intersection'](_0x32fa56[_0x1d79d9('0x36')],qs[_0x1d79d9('0x21')](_0x525594[_0x1d79d9('0x5')][_0x1d79d9('0x21')])),_0x4383a9[_0x1d79d9('0x38')]=_0x4383a9[_0x1d79d9('0x38')][_0x1d79d9('0x4f')]?_0x4383a9[_0x1d79d9('0x38')]:_0x32fa56[_0x1d79d9('0x36')],_0x4383a9[_0x1d79d9('0x7')]=qs[_0x1d79d9('0x6')](_0x525594[_0x1d79d9('0x5')]['sort']),_0x4383a9[_0x1d79d9('0x3a')]=qs['filters'](_[_0x1d79d9('0x30')](_0x525594[_0x1d79d9('0x5')],_0x32fa56['filters'])),_0x525594['query'][_0x1d79d9('0x2d')]&&(_0x4383a9[_0x1d79d9('0x3a')]=_['merge'](_0x4383a9[_0x1d79d9('0x3a')],{[Op['or']]:_[_0x1d79d9('0x39')](_0x4383a9['attributes'],function(_0x2f3c21){const _0x12c555=_0x1d79d9,_0x30ee53={};return _0x30ee53[_0x2f3c21]={[Op['like']]:'%'+_0x525594[_0x12c555('0x5')]['filter']+'%'},_0x30ee53;})})),_0x4383a9=_[_0x1d79d9('0x28')]({},_0x4383a9,_0x525594[_0x1d79d9('0x8')]),_0x5b6f9a[_0x1d79d9('0x4a')](_0x4383a9);})[_0x27f8f4('0x1b')](function(_0x2960d1){const _0x2f9274=_0x27f8f4;if(_0x2960d1)return _0x55ba35=_0x2960d1[_0x2f9274('0x4f')],typeof _0x525594[_0x2f9274('0x5')][_0x2f9274('0x4')]===_0x2f9274('0x3b')&&(_0x4383a9[_0x2f9274('0xd')]=qs[_0x2f9274('0xd')](_0x525594[_0x2f9274('0x5')][_0x2f9274('0xd')]),_0x4383a9[_0x2f9274('0x56')]=qs[_0x2f9274('0x56')](_0x525594['query'][_0x2f9274('0x56')])),_0x5b6f9a['getConfigurations'](_0x4383a9);})[_0x27f8f4('0x1b')](function(_0x35fb4b){if(_0x35fb4b)return _0x35fb4b?{'count':_0x55ba35,'rows':_0x35fb4b}:null;})[_0x27f8f4('0x1b')](respondWithResult(_0x3db6e2,null))['catch'](handleError(_0x3db6e2,null));},exports[_0x57fe58('0x15')]=function(_0x45b348,_0x3e6402){const _0x1c36ef=_0x57fe58;return _0x45b348[_0x1c36ef('0x1c')]['id']&&delete _0x45b348['body']['id'],db[_0x1c36ef('0x1e')][_0x1c36ef('0x41')]({'where':{'id':_0x45b348[_0x1c36ef('0x16')]['id']}})[_0x1c36ef('0x1b')](handleEntityNotFound(_0x3e6402,null))[_0x1c36ef('0x1b')](function(_0x48c9c8){const _0x44ecf2=_0x1c36ef;if(_0x48c9c8)return _0x45b348[_0x44ecf2('0x1c')][_0x44ecf2('0xc')]=_0x48c9c8['id'],_0x45b348[_0x44ecf2('0x1c')]['Subjects']=integrations['getSubjects'](_0x45b348['body'][_0x44ecf2('0x0')],_0x45b348['body']['type']),_0x45b348[_0x44ecf2('0x1c')][_0x44ecf2('0x14')]=integrations[_0x44ecf2('0x4b')](_0x45b348[_0x44ecf2('0x1c')][_0x44ecf2('0x0')],_0x45b348[_0x44ecf2('0x1c')]['type']),db[_0x44ecf2('0x46')][_0x44ecf2('0xa')](_0x45b348[_0x44ecf2('0x1c')],{'include':[{'model':db[_0x44ecf2('0x55')],'as':_0x44ecf2('0x2a')},{'model':db[_0x44ecf2('0x55')],'as':_0x44ecf2('0x14')}]});return null;})[_0x1c36ef('0x1b')](respondWithResult(_0x3e6402,null))[_0x1c36ef('0x19')](handleError(_0x3e6402,null));},exports[_0x57fe58('0x12')]=function(_0x481dfa,_0x1d8019){const _0x6563f5=_0x57fe58,_0x4fdab8=[{'name':'priority','label':'priority','custom':![],'options':[{'name':0x1,'value':0x1},{'name':0x2,'value':0x2},{'name':0x3,'value':0x3},{'name':0x4,'value':0x4},{'name':0x5,'value':0x5},{'name':0x6,'value':0x6},{'name':0x7,'value':0x7},{'name':0x8,'value':0x8},{'name':0x9,'value':0x9},{'name':0xa,'value':0xa}]}];let _0x5e8bae='';return db['DeskAccount'][_0x6563f5('0x41')]({'where':{'id':_0x481dfa[_0x6563f5('0x16')]['id']},'attributes':['id',_0x6563f5('0x1'),_0x6563f5('0x24'),_0x6563f5('0x9'),'password','consumerKey','consumerSecret',_0x6563f5('0x20'),_0x6563f5('0xe')]})[_0x6563f5('0x1b')](handleEntityNotFound(_0x1d8019,null))[_0x6563f5('0x1b')](function(_0x1506d9){const _0x196b1a=_0x6563f5;if(_0x1506d9){_0x5e8bae=_0x1506d9[_0x196b1a('0x1')];const _0x17f062=_0x5e8bae[_0x196b1a('0x37')](-0x1);_0x17f062==='/'&&(_0x5e8bae=_0x5e8bae['substring'](0x0,_0x5e8bae['lastIndexOf'](_0x17f062)));const _0x3c27f5={'method':_0x196b1a('0x11'),'uri':util[_0x196b1a('0x42')](_0x196b1a('0x33'),_0x5e8bae),'headers':{'Content-Type':'application/json','Accept':_0x196b1a('0x45')},'json':!![]};return _0x1506d9[_0x196b1a('0x24')]===_0x196b1a('0x35')&&(_0x3c27f5[_0x196b1a('0x51')][_0x196b1a('0x49')]=util[_0x196b1a('0x42')](_0x196b1a('0x54'),Buffer[_0x196b1a('0x2')](util[_0x196b1a('0x42')]('%s:%s',_0x1506d9[_0x196b1a('0x9')],_0x1506d9[_0x196b1a('0x18')]))[_0x196b1a('0x26')](_0x196b1a('0x3')))),rp(_0x3c27f5)[_0x196b1a('0x1b')](function(_0x52604e){const _0x4e2e97=_0x196b1a;return _0x4fdab8['concat'](_[_0x4e2e97('0x39')](_0x52604e[_0x4e2e97('0x57')][_0x4e2e97('0x13')],function(_0x2db0c1){const _0x1bfe39=_0x4e2e97;return{'id':_0x2db0c1[_0x1bfe39('0x47')],'name':_0x2db0c1[_0x1bfe39('0x47')],'type':_0x2db0c1[_0x1bfe39('0x3e')],'active':_0x2db0c1[_0x1bfe39('0x3f')],'label':_0x2db0c1[_0x1bfe39('0x4d')],'custom':!![]};}));});}})[_0x6563f5('0x1b')](function(_0x4b8797){const _0x51b13e=_0x6563f5;return{'count':_0x4b8797[_0x51b13e('0x4f')],'rows':_0x4b8797};})[_0x6563f5('0x1b')](respondWithResult(_0x1d8019,null))[_0x6563f5('0x19')](function(_0x2f007f){const _0x612201=_0x6563f5;let _0x4eb3e6=_0x481dfa[_0x612201('0x5')][_0x612201('0x3d')]?0x1f4:_0x2f007f['statusCode']||0x1f4;logger[_0x612201('0x10')]('getFields,\x20%s,\x20%s,\x20%s',_0x612201('0x12'),_0x4eb3e6,JSON[_0x612201('0x3c')](_0x2f007f)),delete _0x2f007f['name'],_0x4eb3e6===0x191&&(_0x4eb3e6=0x190),_0x1d8019[_0x612201('0x34')](_0x4eb3e6)['send'](_0x481dfa[_0x612201('0x5')][_0x612201('0x3d')]?{'message':_0x612201('0x32'),'statusCode':_0x2f007f[_0x612201('0x17')]}:_0x2f007f);});}; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.model.js b/server/api/intDeskAccount/intDeskAccount.model.js index 1f56d66..bc09dc8 100644 --- a/server/api/intDeskAccount/intDeskAccount.model.js +++ b/server/api/intDeskAccount/intDeskAccount.model.js @@ -1 +1 @@ -const a230_0x14ce=['exports','int_desk_accounts'];(function(_0x16eef4,_0x14cec7){const _0x5bf29a=function(_0x1bb5e2){while(--_0x1bb5e2){_0x16eef4['push'](_0x16eef4['shift']());}};_0x5bf29a(++_0x14cec7);}(a230_0x14ce,0xf9));const a230_0x5bf2=function(_0x16eef4,_0x14cec7){_0x16eef4=_0x16eef4-0x0;let _0x5bf29a=a230_0x14ce[_0x16eef4];return _0x5bf29a;};const _0x5413ab=a230_0x5bf2;'use strict';const attributes=require('./intDeskAccount.attributes');module[_0x5413ab('0x1')]=function(_0x1bb5e2){const _0x169c8f=_0x5413ab,_0x5469a9=_0x1bb5e2['define']('DeskAccount',attributes,{'tableName':_0x169c8f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5469a9;}; \ No newline at end of file +const a230_0x9021=['int_desk_accounts','define','exports'];(function(_0x2fbce1,_0x9021){const _0xb672e6=function(_0x540360){while(--_0x540360){_0x2fbce1['push'](_0x2fbce1['shift']());}};_0xb672e6(++_0x9021);}(a230_0x9021,0x92));const a230_0xb672=function(_0x2fbce1,_0x9021){_0x2fbce1=_0x2fbce1-0x0;let _0xb672e6=a230_0x9021[_0x2fbce1];return _0xb672e6;};const _0x340514=a230_0xb672;'use strict';const attributes=require('./intDeskAccount.attributes');module[_0x340514('0x0')]=function(_0x540360){const _0x1dd617=_0x340514,_0xd411c3=_0x540360[_0x1dd617('0x2')]('DeskAccount',attributes,{'tableName':_0x1dd617('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xd411c3;}; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.rpc.js b/server/api/intDeskAccount/intDeskAccount.rpc.js index 321074f..3be38ad 100644 --- a/server/api/intDeskAccount/intDeskAccount.rpc.js +++ b/server/api/intDeskAccount/intDeskAccount.rpc.js @@ -1 +1 @@ -const a231_0x4217=['lodash','attributes','findAll','../../mysqldb','message','ShowDeskAccount','debug','findOne','where','stringify','error','then','info','include','DeskAccount','options','../../config/logger','map','catch','model','GetDeskAccount','raw'];(function(_0x2a760a,_0x4217f5){const _0x446824=function(_0x1119af){while(--_0x1119af){_0x2a760a['push'](_0x2a760a['shift']());}};_0x446824(++_0x4217f5);}(a231_0x4217,0x19f));const a231_0x4468=function(_0x2a760a,_0x4217f5){_0x2a760a=_0x2a760a-0x0;let _0x446824=a231_0x4217[_0x2a760a];return _0x446824;};const _0x50dce9=a231_0x4468;'use strict';const _=require(_0x50dce9('0x3')),db=require(_0x50dce9('0x6'))['db'],logger=require(_0x50dce9('0x13'))('rpc');exports[_0x50dce9('0x1')]=function(_0x1119af){const _0x1dad38=this;return new Promise(function(_0x2084f4,_0x831848){const _0x3a5ba3=a231_0x4468;return db['DeskAccount'][_0x3a5ba3('0x5')]({'raw':_0x1119af[_0x3a5ba3('0x12')]?_0x1119af[_0x3a5ba3('0x12')][_0x3a5ba3('0x2')]===undefined?!![]:![]:!![],'where':_0x1119af[_0x3a5ba3('0x12')]?_0x1119af[_0x3a5ba3('0x12')][_0x3a5ba3('0xb')]||null:null,'attributes':_0x1119af[_0x3a5ba3('0x12')]?_0x1119af[_0x3a5ba3('0x12')][_0x3a5ba3('0x4')]||null:null,'limit':_0x1119af[_0x3a5ba3('0x12')]?_0x1119af['options']['limit']||null:null,'include':_0x1119af[_0x3a5ba3('0x12')]?_0x1119af[_0x3a5ba3('0x12')][_0x3a5ba3('0x10')]?_['map'](_0x1119af[_0x3a5ba3('0x12')][_0x3a5ba3('0x10')],function(_0x45d9f2){const _0xf0ae0a=_0x3a5ba3;return{'model':db[_0x45d9f2['model']],'as':_0x45d9f2['as'],'attributes':_0x45d9f2[_0xf0ae0a('0x4')],'include':_0x45d9f2[_0xf0ae0a('0x10')]?_['map'](_0x45d9f2['include'],function(_0x1cb9bd){const _0x2fd142=_0xf0ae0a;return{'model':db[_0x1cb9bd[_0x2fd142('0x0')]],'as':_0x1cb9bd['as'],'attributes':_0x1cb9bd[_0x2fd142('0x4')],'include':_0x1cb9bd[_0x2fd142('0x10')]?_[_0x2fd142('0x14')](_0x1cb9bd[_0x2fd142('0x10')],function(_0x54fe20){const _0x525a9b=_0x2fd142;return{'model':db[_0x54fe20[_0x525a9b('0x0')]],'as':_0x54fe20['as'],'attributes':_0x54fe20[_0x525a9b('0x4')]};}):[]};}):[]};}):[]:[]})[_0x3a5ba3('0xe')](function(_0x18eff3){const _0x5df612=_0x3a5ba3;logger['info'](_0x5df612('0x1'),_0x1119af),logger['debug']('GetDeskAccount',_0x1119af,JSON[_0x5df612('0xc')](_0x18eff3)),_0x2084f4(_0x18eff3);})['catch'](function(_0x1c883b){const _0x277e91=_0x3a5ba3;logger['error'](_0x277e91('0x1'),_0x1c883b[_0x277e91('0x7')],_0x1119af),_0x831848(_0x1dad38[_0x277e91('0xd')](0x1f4,_0x1c883b['message']));});});},exports['ShowDeskAccount']=function(_0x1f4eee){const _0x58cf12=this;return new Promise(function(_0x443d19,_0x16f9b3){const _0x83e30c=a231_0x4468;return db[_0x83e30c('0x11')][_0x83e30c('0xa')]({'raw':_0x1f4eee[_0x83e30c('0x12')]?_0x1f4eee[_0x83e30c('0x12')][_0x83e30c('0x2')]===undefined?!![]:![]:!![],'where':_0x1f4eee[_0x83e30c('0x12')]?_0x1f4eee[_0x83e30c('0x12')]['where']||null:null,'attributes':_0x1f4eee[_0x83e30c('0x12')]?_0x1f4eee[_0x83e30c('0x12')][_0x83e30c('0x4')]||null:null,'include':_0x1f4eee['options']?_0x1f4eee[_0x83e30c('0x12')][_0x83e30c('0x10')]?_[_0x83e30c('0x14')](_0x1f4eee[_0x83e30c('0x12')][_0x83e30c('0x10')],function(_0xf9fd5e){const _0x3561a9=_0x83e30c;return{'model':db[_0xf9fd5e[_0x3561a9('0x0')]],'as':_0xf9fd5e['as'],'attributes':_0xf9fd5e[_0x3561a9('0x4')],'include':_0xf9fd5e['include']?_['map'](_0xf9fd5e['include'],function(_0x5b0251){const _0x125581=_0x3561a9;return{'model':db[_0x5b0251[_0x125581('0x0')]],'as':_0x5b0251['as'],'attributes':_0x5b0251[_0x125581('0x4')],'include':_0x5b0251[_0x125581('0x10')]?_[_0x125581('0x14')](_0x5b0251['include'],function(_0x1a07f8){const _0x5cfe4e=_0x125581;return{'model':db[_0x1a07f8[_0x5cfe4e('0x0')]],'as':_0x1a07f8['as'],'attributes':_0x1a07f8[_0x5cfe4e('0x4')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xd19f42){const _0x1b4887=_0x83e30c;logger[_0x1b4887('0xf')](_0x1b4887('0x8'),_0x1f4eee),logger[_0x1b4887('0x9')](_0x1b4887('0x8'),_0x1f4eee,JSON[_0x1b4887('0xc')](_0xd19f42)),_0x443d19(_0xd19f42);})[_0x83e30c('0x15')](function(_0x182c88){const _0x1322d4=_0x83e30c;logger[_0x1322d4('0xd')](_0x1322d4('0x8'),_0x182c88['message'],_0x1f4eee),_0x16f9b3(_0x58cf12[_0x1322d4('0xd')](0x1f4,_0x182c88['message']));});});}; \ No newline at end of file +const a231_0x4ed8=['findOne','stringify','model','include','message','../../mysqldb','options','rpc','GetDeskAccount','error','ShowDeskAccount','DeskAccount','info','catch','attributes','limit','lodash','then','where','raw','map','debug'];(function(_0x38fde5,_0x4ed8d2){const _0x5b7ad5=function(_0x345aef){while(--_0x345aef){_0x38fde5['push'](_0x38fde5['shift']());}};_0x5b7ad5(++_0x4ed8d2);}(a231_0x4ed8,0x1f2));const a231_0x5b7a=function(_0x38fde5,_0x4ed8d2){_0x38fde5=_0x38fde5-0x0;let _0x5b7ad5=a231_0x4ed8[_0x38fde5];return _0x5b7ad5;};const _0xf4362d=a231_0x5b7a;'use strict';const _=require(_0xf4362d('0x2')),db=require(_0xf4362d('0xd'))['db'],logger=require('../../config/logger')(_0xf4362d('0xf'));exports[_0xf4362d('0x10')]=function(_0x345aef){const _0x70cdcc=this;return new Promise(function(_0xf5e88,_0x504f17){const _0x111ab1=a231_0x5b7a;return db[_0x111ab1('0x13')]['findAll']({'raw':_0x345aef[_0x111ab1('0xe')]?_0x345aef['options'][_0x111ab1('0x5')]===undefined?!![]:![]:!![],'where':_0x345aef[_0x111ab1('0xe')]?_0x345aef['options'][_0x111ab1('0x4')]||null:null,'attributes':_0x345aef[_0x111ab1('0xe')]?_0x345aef[_0x111ab1('0xe')][_0x111ab1('0x0')]||null:null,'limit':_0x345aef['options']?_0x345aef['options'][_0x111ab1('0x1')]||null:null,'include':_0x345aef[_0x111ab1('0xe')]?_0x345aef[_0x111ab1('0xe')][_0x111ab1('0xb')]?_['map'](_0x345aef[_0x111ab1('0xe')][_0x111ab1('0xb')],function(_0x4ebe4e){const _0x59f8ea=_0x111ab1;return{'model':db[_0x4ebe4e[_0x59f8ea('0xa')]],'as':_0x4ebe4e['as'],'attributes':_0x4ebe4e[_0x59f8ea('0x0')],'include':_0x4ebe4e[_0x59f8ea('0xb')]?_[_0x59f8ea('0x6')](_0x4ebe4e[_0x59f8ea('0xb')],function(_0x50b771){const _0x27e258=_0x59f8ea;return{'model':db[_0x50b771[_0x27e258('0xa')]],'as':_0x50b771['as'],'attributes':_0x50b771['attributes'],'include':_0x50b771[_0x27e258('0xb')]?_[_0x27e258('0x6')](_0x50b771['include'],function(_0x375c12){return{'model':db[_0x375c12['model']],'as':_0x375c12['as'],'attributes':_0x375c12['attributes']};}):[]};}):[]};}):[]:[]})[_0x111ab1('0x3')](function(_0x1bf929){const _0x468d9e=_0x111ab1;logger['info'](_0x468d9e('0x10'),_0x345aef),logger[_0x468d9e('0x7')](_0x468d9e('0x10'),_0x345aef,JSON[_0x468d9e('0x9')](_0x1bf929)),_0xf5e88(_0x1bf929);})['catch'](function(_0x18a23b){const _0x5ab077=_0x111ab1;logger[_0x5ab077('0x11')](_0x5ab077('0x10'),_0x18a23b[_0x5ab077('0xc')],_0x345aef),_0x504f17(_0x70cdcc[_0x5ab077('0x11')](0x1f4,_0x18a23b[_0x5ab077('0xc')]));});});},exports['ShowDeskAccount']=function(_0x2afba2){const _0xaa77bb=this;return new Promise(function(_0x43f5db,_0x1ac235){const _0x633bec=a231_0x5b7a;return db[_0x633bec('0x13')][_0x633bec('0x8')]({'raw':_0x2afba2[_0x633bec('0xe')]?_0x2afba2[_0x633bec('0xe')][_0x633bec('0x5')]===undefined?!![]:![]:!![],'where':_0x2afba2['options']?_0x2afba2['options'][_0x633bec('0x4')]||null:null,'attributes':_0x2afba2[_0x633bec('0xe')]?_0x2afba2[_0x633bec('0xe')][_0x633bec('0x0')]||null:null,'include':_0x2afba2[_0x633bec('0xe')]?_0x2afba2[_0x633bec('0xe')][_0x633bec('0xb')]?_[_0x633bec('0x6')](_0x2afba2[_0x633bec('0xe')][_0x633bec('0xb')],function(_0xf470f4){const _0x31a8b2=_0x633bec;return{'model':db[_0xf470f4[_0x31a8b2('0xa')]],'as':_0xf470f4['as'],'attributes':_0xf470f4[_0x31a8b2('0x0')],'include':_0xf470f4[_0x31a8b2('0xb')]?_[_0x31a8b2('0x6')](_0xf470f4[_0x31a8b2('0xb')],function(_0x22af22){const _0x244b1d=_0x31a8b2;return{'model':db[_0x22af22[_0x244b1d('0xa')]],'as':_0x22af22['as'],'attributes':_0x22af22['attributes'],'include':_0x22af22[_0x244b1d('0xb')]?_[_0x244b1d('0x6')](_0x22af22[_0x244b1d('0xb')],function(_0x48d6bd){const _0x3f1aa5=_0x244b1d;return{'model':db[_0x48d6bd[_0x3f1aa5('0xa')]],'as':_0x48d6bd['as'],'attributes':_0x48d6bd[_0x3f1aa5('0x0')]};}):[]};}):[]};}):[]:[]})[_0x633bec('0x3')](function(_0x146829){const _0x378354=_0x633bec;logger[_0x378354('0x14')](_0x378354('0x12'),_0x2afba2),logger[_0x378354('0x7')](_0x378354('0x12'),_0x2afba2,JSON[_0x378354('0x9')](_0x146829)),_0x43f5db(_0x146829);})[_0x633bec('0x15')](function(_0x558f0c){const _0x30eb68=_0x633bec;logger[_0x30eb68('0x11')]('ShowDeskAccount',_0x558f0c[_0x30eb68('0xc')],_0x2afba2),_0x1ac235(_0xaa77bb[_0x30eb68('0x11')](0x1f4,_0x558f0c[_0x30eb68('0xc')]));});});}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/index.js b/server/api/intDeskConfiguration/index.js index 2cdcedf..5f8667f 100644 --- a/server/api/intDeskConfiguration/index.js +++ b/server/api/intDeskConfiguration/index.js @@ -1 +1 @@ -const a232_0x1bb9=['/:id/descriptions','update','/:id','isAuthenticated','getSubjects','getFields','/:id/tags','Router','getDescriptions','exports','show','create','put','index','../../components/auth/service','./intDeskConfiguration.controller','get','delete','destroy','/:id/subjects'];(function(_0x55ceda,_0x1bb907){const _0x334bb2=function(_0x54bdf9){while(--_0x54bdf9){_0x55ceda['push'](_0x55ceda['shift']());}};_0x334bb2(++_0x1bb907);}(a232_0x1bb9,0xee));const a232_0x334b=function(_0x55ceda,_0x1bb907){_0x55ceda=_0x55ceda-0x0;let _0x334bb2=a232_0x1bb9[_0x55ceda];return _0x334bb2;};const _0x278deb=a232_0x334b;'use strict';const express=require('express'),router=express[_0x278deb('0x9')](),auth=require(_0x278deb('0x10')),controller=require(_0x278deb('0x11'));router[_0x278deb('0x12')]('/',auth[_0x278deb('0x5')](),controller[_0x278deb('0xf')]),router[_0x278deb('0x12')](_0x278deb('0x4'),auth[_0x278deb('0x5')](),controller[_0x278deb('0xc')]),router['get']('/:id/fields',auth[_0x278deb('0x5')](),controller[_0x278deb('0x7')]),router['get'](_0x278deb('0x1'),auth['isAuthenticated'](),controller[_0x278deb('0x6')]),router[_0x278deb('0x12')](_0x278deb('0x2'),auth['isAuthenticated'](),controller[_0x278deb('0xa')]),router[_0x278deb('0x12')]('/:id/tags',auth[_0x278deb('0x5')](),controller['getTags']),router['post']('/',auth[_0x278deb('0x5')](),controller[_0x278deb('0xd')]),router['post'](_0x278deb('0x8'),auth[_0x278deb('0x5')](),controller['setTags']),router[_0x278deb('0xe')]('/:id',auth[_0x278deb('0x5')](),controller[_0x278deb('0x3')]),router[_0x278deb('0x13')](_0x278deb('0x4'),auth['isAuthenticated'](),controller[_0x278deb('0x0')]),module[_0x278deb('0xb')]=router; \ No newline at end of file +const a232_0x27dd=['update','getDescriptions','/:id/descriptions','put','Router','create','exports','delete','./intDeskConfiguration.controller','/:id','../../components/auth/service','getTags','/:id/fields','post','isAuthenticated','get','/:id/tags','express','show'];(function(_0x24fa8d,_0x27ddbf){const _0xfeb129=function(_0x21f9ce){while(--_0x21f9ce){_0x24fa8d['push'](_0x24fa8d['shift']());}};_0xfeb129(++_0x27ddbf);}(a232_0x27dd,0x1d7));const a232_0xfeb1=function(_0x24fa8d,_0x27ddbf){_0x24fa8d=_0x24fa8d-0x0;let _0xfeb129=a232_0x27dd[_0x24fa8d];return _0xfeb129;};const _0x80ba9=a232_0xfeb1;'use strict';const express=require(_0x80ba9('0x2')),router=express[_0x80ba9('0x8')](),auth=require(_0x80ba9('0xe')),controller=require(_0x80ba9('0xc'));router[_0x80ba9('0x0')]('/',auth[_0x80ba9('0x12')](),controller['index']),router['get'](_0x80ba9('0xd'),auth[_0x80ba9('0x12')](),controller[_0x80ba9('0x3')]),router['get'](_0x80ba9('0x10'),auth[_0x80ba9('0x12')](),controller['getFields']),router[_0x80ba9('0x0')]('/:id/subjects',auth[_0x80ba9('0x12')](),controller['getSubjects']),router[_0x80ba9('0x0')](_0x80ba9('0x6'),auth['isAuthenticated'](),controller[_0x80ba9('0x5')]),router[_0x80ba9('0x0')](_0x80ba9('0x1'),auth[_0x80ba9('0x12')](),controller[_0x80ba9('0xf')]),router[_0x80ba9('0x11')]('/',auth['isAuthenticated'](),controller[_0x80ba9('0x9')]),router['post'](_0x80ba9('0x1'),auth['isAuthenticated'](),controller['setTags']),router[_0x80ba9('0x7')](_0x80ba9('0xd'),auth[_0x80ba9('0x12')](),controller[_0x80ba9('0x4')]),router[_0x80ba9('0xb')](_0x80ba9('0xd'),auth[_0x80ba9('0x12')](),controller['destroy']),module[_0x80ba9('0xa')]=router; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js index b3f9384..df940e2 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js @@ -1 +1 @@ -const a233_0x3d77=['exports','STRING','sequelize'];(function(_0x45f1ec,_0x3d7715){const _0x3d3582=function(_0x157aac){while(--_0x157aac){_0x45f1ec['push'](_0x45f1ec['shift']());}};_0x3d3582(++_0x3d7715);}(a233_0x3d77,0x1f4));const a233_0x3d35=function(_0x45f1ec,_0x3d7715){_0x45f1ec=_0x45f1ec-0x0;let _0x3d3582=a233_0x3d77[_0x45f1ec];return _0x3d3582;};const _0x5ae8f7=a233_0x3d35;'use strict';const Sequelize=require(_0x5ae8f7('0x0'));module[_0x5ae8f7('0x1')]={'name':{'type':Sequelize[_0x5ae8f7('0x2')]},'description':{'type':Sequelize[_0x5ae8f7('0x2')]}}; \ No newline at end of file +const a233_0x1e6f=['exports','STRING'];(function(_0x296537,_0x1e6f1a){const _0x11c9bc=function(_0x4e54e0){while(--_0x4e54e0){_0x296537['push'](_0x296537['shift']());}};_0x11c9bc(++_0x1e6f1a);}(a233_0x1e6f,0xb6));const a233_0x11c9=function(_0x296537,_0x1e6f1a){_0x296537=_0x296537-0x0;let _0x11c9bc=a233_0x1e6f[_0x296537];return _0x11c9bc;};const _0x5b1be3=a233_0x11c9;'use strict';const Sequelize=require('sequelize');module[_0x5b1be3('0x0')]={'name':{'type':Sequelize[_0x5b1be3('0x1')]},'description':{'type':Sequelize[_0x5b1be3('0x1')]}}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js index 0c4b9ff..d553328 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js @@ -1 +1 @@ -const a234_0x3981=['update','Tag','set','order','then','merge','index','getDescriptions','json','fieldName','undefined','limit','destroy','model','getFields','filters','like','create','length','send','include','attributes','Content-Range','findOne','filter','end','rawAttributes','nolimit','ids','map','DeskField','DeskConfiguration','catch','name','includeAll','../../config/logger','options','pick','../../mysqldb','rows','intersection','keys','show','query','sendStatus','count','offset','lodash','sort','error','getTags','VIRTUAL','type','params','status','body','stack','../../components/parsers/qs','where','getSubjects','fields','setTags'];(function(_0x1339de,_0x3981a6){const _0x169607=function(_0x1065cb){while(--_0x1065cb){_0x1339de['push'](_0x1339de['shift']());}};_0x169607(++_0x3981a6);}(a234_0x3981,0x68));const a234_0x1696=function(_0x1339de,_0x3981a6){_0x1339de=_0x1339de-0x0;let _0x169607=a234_0x3981[_0x1339de];return _0x169607;};const _0x4d9cfd=a234_0x1696;'use strict';const _=require(_0x4d9cfd('0x5')),qs=require(_0x4d9cfd('0xf')),logger=require(_0x4d9cfd('0x37'))('api'),db=require(_0x4d9cfd('0x3a'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1065cb,_0x2a9c08){return _0x2a9c08=_0x2a9c08||0xc8,function(_0x457ea5){const _0x113c22=a234_0x1696;if(_0x457ea5)return _0x1065cb[_0x113c22('0xc')](_0x2a9c08)[_0x113c22('0x1c')](_0x457ea5);};}function respondWithFilteredResult(_0x468653,_0x129e58){return function(_0x18f584){const _0x4ac3ea=a234_0x1696;if(_0x18f584){const _0x1d69a8=_0x18f584[_0x4ac3ea('0x3')],_0x3fc65b=_0x129e58[_0x4ac3ea('0x4')];let _0x2852e2=_0x129e58[_0x4ac3ea('0x4')]+_0x129e58[_0x4ac3ea('0x1f')],_0x3c467b;return _0x2852e2>=_0x1d69a8?(_0x2852e2=_0x1d69a8,_0x3c467b=0xc8):_0x3c467b=0xce,_0x468653[_0x4ac3ea('0xc')](_0x3c467b),_0x468653[_0x4ac3ea('0x16')](_0x4ac3ea('0x2a'),_0x3fc65b+'-'+_0x2852e2+'/'+_0x1d69a8)[_0x4ac3ea('0x1c')](_0x18f584);}return null;};}function saveUpdates(_0x2c43d2){return function(_0x5ba670){const _0x45b2ac=a234_0x1696;if(_0x5ba670)return _0x5ba670['update'](_0x2c43d2)[_0x45b2ac('0x18')](function(_0x3a92b8){return _0x3a92b8;});return null;};}function removeEntity(_0x2c8da6){return function(_0x166832){const _0x3a21de=a234_0x1696;if(_0x166832)return _0x166832[_0x3a21de('0x20')]()['then'](function(){const _0x57de6f=_0x3a21de;_0x2c8da6[_0x57de6f('0xc')](0xcc)[_0x57de6f('0x2d')]();});};}function handleEntityNotFound(_0x3701d8){return function(_0x4f27d3){const _0x1a39ae=a234_0x1696;return!_0x4f27d3&&_0x3701d8[_0x1a39ae('0x2')](0x194),_0x4f27d3;};}function handleError(_0x5487f9,_0x48bcd1){return _0x48bcd1=_0x48bcd1||0x1f4,function(_0x12f7c9){const _0x413a14=a234_0x1696;logger[_0x413a14('0x7')](_0x12f7c9[_0x413a14('0xe')]),_0x12f7c9['name']&&delete _0x12f7c9['name'],_0x5487f9[_0x413a14('0xc')](_0x48bcd1)[_0x413a14('0x27')](_0x12f7c9);};}exports[_0x4d9cfd('0x1a')]=function(_0x57b876,_0x584135){const _0x13c5eb=_0x4d9cfd;let _0x4cbe1f={};const _0x2e0162={},_0x4c3618={'count':0x0,'rows':[]},_0x1f6d3a=_[_0x13c5eb('0x31')](db[_0x13c5eb('0x33')]['rawAttributes'],function(_0x3cfa34){const _0x83705b=_0x13c5eb;return{'name':_0x3cfa34[_0x83705b('0x1d')],'type':_0x3cfa34[_0x83705b('0xa')]['key']};});_0x2e0162[_0x13c5eb('0x21')]=_[_0x13c5eb('0x31')](_0x1f6d3a,_0x13c5eb('0x35')),_0x2e0162[_0x13c5eb('0x1')]=_[_0x13c5eb('0x3d')](_0x57b876['query']),_0x2e0162[_0x13c5eb('0x23')]=_['intersection'](_0x2e0162[_0x13c5eb('0x21')],_0x2e0162['query']),_0x4cbe1f[_0x13c5eb('0x29')]=_[_0x13c5eb('0x3c')](_0x2e0162[_0x13c5eb('0x21')],qs[_0x13c5eb('0x12')](_0x57b876[_0x13c5eb('0x1')][_0x13c5eb('0x12')])),_0x4cbe1f[_0x13c5eb('0x29')]=_0x4cbe1f[_0x13c5eb('0x29')][_0x13c5eb('0x26')]?_0x4cbe1f[_0x13c5eb('0x29')]:_0x2e0162[_0x13c5eb('0x21')];typeof _0x57b876['query'][_0x13c5eb('0x2f')]==='undefined'&&(_0x4cbe1f[_0x13c5eb('0x1f')]=qs['limit'](_0x57b876['query'][_0x13c5eb('0x1f')]),_0x4cbe1f[_0x13c5eb('0x4')]=qs[_0x13c5eb('0x4')](_0x57b876[_0x13c5eb('0x1')][_0x13c5eb('0x4')]));_0x4cbe1f[_0x13c5eb('0x17')]=qs[_0x13c5eb('0x6')](_0x57b876[_0x13c5eb('0x1')][_0x13c5eb('0x6')]),_0x4cbe1f[_0x13c5eb('0x10')]=qs[_0x13c5eb('0x23')](_[_0x13c5eb('0x39')](_0x57b876[_0x13c5eb('0x1')],_0x2e0162['filters']),_0x1f6d3a);_0x57b876[_0x13c5eb('0x1')][_0x13c5eb('0x2c')]&&(_0x4cbe1f[_0x13c5eb('0x10')]=_[_0x13c5eb('0x19')](_0x4cbe1f[_0x13c5eb('0x10')],{[Op['or']]:_[_0x13c5eb('0x31')](_0x1f6d3a,function(_0x31fc33){const _0x9880f6=_0x13c5eb;if(_0x31fc33[_0x9880f6('0xa')]!==_0x9880f6('0x9')){const _0x41e588={};return _0x41e588[_0x31fc33[_0x9880f6('0x35')]]={[Op[_0x9880f6('0x24')]]:'%'+_0x57b876[_0x9880f6('0x1')][_0x9880f6('0x2c')]+'%'},_0x41e588;}})}));_0x4cbe1f=_['merge']({},_0x4cbe1f,_0x57b876[_0x13c5eb('0x38')]);const _0x678afa={'where':_0x4cbe1f[_0x13c5eb('0x10')]};return db['DeskConfiguration'][_0x13c5eb('0x3')](_0x678afa)[_0x13c5eb('0x18')](function(_0x3e1d1e){const _0x2a25ea=_0x13c5eb;return _0x4c3618[_0x2a25ea('0x3')]=_0x3e1d1e,_0x57b876['query'][_0x2a25ea('0x36')]&&(_0x4cbe1f['include']=[{'all':!![]}]),db[_0x2a25ea('0x33')]['findAll'](_0x4cbe1f);})[_0x13c5eb('0x18')](function(_0x2bc2c1){const _0x5d8a97=_0x13c5eb;return _0x4c3618[_0x5d8a97('0x3b')]=_0x2bc2c1,_0x4c3618;})[_0x13c5eb('0x18')](respondWithFilteredResult(_0x584135,_0x4cbe1f))[_0x13c5eb('0x34')](handleError(_0x584135,null));},exports[_0x4d9cfd('0x0')]=function(_0xe7e488,_0x42758c){const _0x338159=_0x4d9cfd;let _0x393d92={'raw':![],'where':{'id':_0xe7e488[_0x338159('0xb')]['id']}};const _0x40413d={};return _0x40413d['model']=_[_0x338159('0x3d')](db[_0x338159('0x33')][_0x338159('0x2e')]),_0x40413d[_0x338159('0x1')]=_[_0x338159('0x3d')](_0xe7e488[_0x338159('0x1')]),_0x40413d['filters']=_[_0x338159('0x3c')](_0x40413d[_0x338159('0x21')],_0x40413d[_0x338159('0x1')]),_0x393d92['attributes']=_[_0x338159('0x3c')](_0x40413d[_0x338159('0x21')],qs[_0x338159('0x12')](_0xe7e488[_0x338159('0x1')][_0x338159('0x12')])),_0x393d92[_0x338159('0x29')]=_0x393d92[_0x338159('0x29')]['length']?_0x393d92[_0x338159('0x29')]:_0x40413d[_0x338159('0x21')],_0xe7e488['query'][_0x338159('0x36')]&&(_0x393d92[_0x338159('0x28')]=[{'all':!![]}]),_0x393d92=_['merge']({},_0x393d92,_0xe7e488[_0x338159('0x38')]),db[_0x338159('0x33')][_0x338159('0x2b')](_0x393d92)[_0x338159('0x18')](handleEntityNotFound(_0x42758c,null))['then'](respondWithResult(_0x42758c,null))[_0x338159('0x34')](handleError(_0x42758c,null));},exports['create']=function(_0x234da5,_0x43ed0f){const _0x4ed386=_0x4d9cfd;return db['DeskConfiguration'][_0x4ed386('0x25')](_0x234da5['body'],{})[_0x4ed386('0x18')](respondWithResult(_0x43ed0f,0xc9))[_0x4ed386('0x34')](handleError(_0x43ed0f,null));},exports[_0x4d9cfd('0x14')]=function(_0x4770d0,_0x2b50cf){const _0x5410e8=_0x4d9cfd;return _0x4770d0[_0x5410e8('0xd')]['id']&&delete _0x4770d0[_0x5410e8('0xd')]['id'],db[_0x5410e8('0x33')][_0x5410e8('0x2b')]({'where':{'id':_0x4770d0[_0x5410e8('0xb')]['id']}})[_0x5410e8('0x18')](handleEntityNotFound(_0x2b50cf,null))['then'](saveUpdates(_0x4770d0[_0x5410e8('0xd')],null))[_0x5410e8('0x18')](respondWithResult(_0x2b50cf,null))[_0x5410e8('0x34')](handleError(_0x2b50cf,null));},exports[_0x4d9cfd('0x20')]=function(_0x2e144b,_0x5b171c){const _0x4da5fd=_0x4d9cfd;return db['DeskConfiguration'][_0x4da5fd('0x2b')]({'where':{'id':_0x2e144b['params']['id']}})[_0x4da5fd('0x18')](handleEntityNotFound(_0x5b171c,null))[_0x4da5fd('0x18')](removeEntity(_0x5b171c,null))['catch'](handleError(_0x5b171c,null));},exports[_0x4d9cfd('0x22')]=function(_0x5573d7,_0x4f8c36){const _0x716484=_0x4d9cfd;let _0x2b65fe={};const _0x5a3ff4={};let _0x46715c,_0x324585;return db[_0x716484('0x33')][_0x716484('0x2b')]({'where':{'id':_0x5573d7[_0x716484('0xb')]['id']}})[_0x716484('0x18')](handleEntityNotFound(_0x4f8c36,null))[_0x716484('0x18')](function(_0xf9f3b){const _0x76c2cb=_0x716484;if(_0xf9f3b)return _0x46715c=_0xf9f3b,_0x5a3ff4[_0x76c2cb('0x21')]=_[_0x76c2cb('0x3d')](db[_0x76c2cb('0x32')]['rawAttributes']),_0x5a3ff4[_0x76c2cb('0x1')]=_['keys'](_0x5573d7[_0x76c2cb('0x1')]),_0x5a3ff4['filters']=_[_0x76c2cb('0x3c')](_0x5a3ff4[_0x76c2cb('0x21')],_0x5a3ff4[_0x76c2cb('0x1')]),_0x2b65fe[_0x76c2cb('0x29')]=_['intersection'](_0x5a3ff4[_0x76c2cb('0x21')],qs['fields'](_0x5573d7['query']['fields'])),_0x2b65fe[_0x76c2cb('0x29')]=_0x2b65fe[_0x76c2cb('0x29')][_0x76c2cb('0x26')]?_0x2b65fe[_0x76c2cb('0x29')]:_0x5a3ff4[_0x76c2cb('0x21')],_0x2b65fe['order']=qs[_0x76c2cb('0x6')](_0x5573d7[_0x76c2cb('0x1')][_0x76c2cb('0x6')]),_0x2b65fe['where']=qs[_0x76c2cb('0x23')](_[_0x76c2cb('0x39')](_0x5573d7[_0x76c2cb('0x1')],_0x5a3ff4['filters'])),_0x5573d7['query'][_0x76c2cb('0x2c')]&&(_0x2b65fe['where']=_[_0x76c2cb('0x19')](_0x2b65fe[_0x76c2cb('0x10')],{[Op['or']]:_[_0x76c2cb('0x31')](_0x2b65fe['attributes'],function(_0x271af0){const _0x46f352=_0x76c2cb,_0x2840bb={};return _0x2840bb[_0x271af0]={[Op[_0x46f352('0x24')]]:'%'+_0x5573d7['query'][_0x46f352('0x2c')]+'%'},_0x2840bb;})})),_0x2b65fe=_[_0x76c2cb('0x19')]({},_0x2b65fe,_0x5573d7[_0x76c2cb('0x38')]),_0x46715c[_0x76c2cb('0x22')](_0x2b65fe);})[_0x716484('0x18')](function(_0x5e7f1c){const _0xa4d85b=_0x716484;if(_0x5e7f1c)return _0x324585=_0x5e7f1c[_0xa4d85b('0x26')],typeof _0x5573d7[_0xa4d85b('0x1')][_0xa4d85b('0x2f')]==='undefined'&&(_0x2b65fe[_0xa4d85b('0x1f')]=qs[_0xa4d85b('0x1f')](_0x5573d7[_0xa4d85b('0x1')][_0xa4d85b('0x1f')]),_0x2b65fe[_0xa4d85b('0x4')]=qs['offset'](_0x5573d7[_0xa4d85b('0x1')][_0xa4d85b('0x4')])),_0x46715c[_0xa4d85b('0x22')](_0x2b65fe);})[_0x716484('0x18')](function(_0x1113af){if(_0x1113af)return _0x1113af?{'count':_0x324585,'rows':_0x1113af}:null;})['then'](respondWithResult(_0x4f8c36,null))[_0x716484('0x34')](handleError(_0x4f8c36,null));},exports[_0x4d9cfd('0x11')]=function(_0x44f861,_0x322926){const _0x17368a=_0x4d9cfd;let _0x5b3a20={};const _0x5d6e48={};let _0x58df84,_0x253797;return db[_0x17368a('0x33')]['findOne']({'where':{'id':_0x44f861['params']['id']}})[_0x17368a('0x18')](handleEntityNotFound(_0x322926,null))[_0x17368a('0x18')](function(_0x518242){const _0xffe789=_0x17368a;if(_0x518242)return _0x58df84=_0x518242,_0x5d6e48['model']=_['keys'](db[_0xffe789('0x32')][_0xffe789('0x2e')]),_0x5d6e48[_0xffe789('0x1')]=_[_0xffe789('0x3d')](_0x44f861[_0xffe789('0x1')]),_0x5d6e48[_0xffe789('0x23')]=_['intersection'](_0x5d6e48['model'],_0x5d6e48[_0xffe789('0x1')]),_0x5b3a20[_0xffe789('0x29')]=_['intersection'](_0x5d6e48[_0xffe789('0x21')],qs[_0xffe789('0x12')](_0x44f861[_0xffe789('0x1')]['fields'])),_0x5b3a20[_0xffe789('0x29')]=_0x5b3a20[_0xffe789('0x29')][_0xffe789('0x26')]?_0x5b3a20[_0xffe789('0x29')]:_0x5d6e48[_0xffe789('0x21')],_0x5b3a20[_0xffe789('0x17')]=qs[_0xffe789('0x6')](_0x44f861[_0xffe789('0x1')][_0xffe789('0x6')]),_0x5b3a20[_0xffe789('0x10')]=qs[_0xffe789('0x23')](_[_0xffe789('0x39')](_0x44f861[_0xffe789('0x1')],_0x5d6e48[_0xffe789('0x23')])),_0x44f861[_0xffe789('0x1')][_0xffe789('0x2c')]&&(_0x5b3a20[_0xffe789('0x10')]=_[_0xffe789('0x19')](_0x5b3a20['where'],{[Op['or']]:_['map'](_0x5b3a20[_0xffe789('0x29')],function(_0x27e870){const _0x424594=_0xffe789,_0x3e90ed={};return _0x3e90ed[_0x27e870]={[Op[_0x424594('0x24')]]:'%'+_0x44f861[_0x424594('0x1')][_0x424594('0x2c')]+'%'},_0x3e90ed;})})),_0x5b3a20=_[_0xffe789('0x19')]({},_0x5b3a20,_0x44f861[_0xffe789('0x38')]),_0x58df84[_0xffe789('0x11')](_0x5b3a20);})[_0x17368a('0x18')](function(_0x4f61d1){const _0x1e4e82=_0x17368a;if(_0x4f61d1)return _0x253797=_0x4f61d1[_0x1e4e82('0x26')],typeof _0x44f861['query'][_0x1e4e82('0x2f')]===_0x1e4e82('0x1e')&&(_0x5b3a20[_0x1e4e82('0x1f')]=qs[_0x1e4e82('0x1f')](_0x44f861[_0x1e4e82('0x1')][_0x1e4e82('0x1f')]),_0x5b3a20[_0x1e4e82('0x4')]=qs[_0x1e4e82('0x4')](_0x44f861[_0x1e4e82('0x1')]['offset'])),_0x58df84[_0x1e4e82('0x11')](_0x5b3a20);})['then'](function(_0x407ad0){if(_0x407ad0)return _0x407ad0?{'count':_0x253797,'rows':_0x407ad0}:null;})[_0x17368a('0x18')](respondWithResult(_0x322926,null))['catch'](handleError(_0x322926,null));},exports[_0x4d9cfd('0x1b')]=function(_0xc4b093,_0x1298ed){const _0x28c538=_0x4d9cfd;let _0x5d839e={};const _0xbce497={};let _0x1d5e71,_0x2342cf;return db[_0x28c538('0x33')][_0x28c538('0x2b')]({'where':{'id':_0xc4b093[_0x28c538('0xb')]['id']}})[_0x28c538('0x18')](handleEntityNotFound(_0x1298ed,null))['then'](function(_0x8e53e){const _0x11cb31=_0x28c538;if(_0x8e53e)return _0x1d5e71=_0x8e53e,_0xbce497[_0x11cb31('0x21')]=_['keys'](db[_0x11cb31('0x32')][_0x11cb31('0x2e')]),_0xbce497[_0x11cb31('0x1')]=_[_0x11cb31('0x3d')](_0xc4b093[_0x11cb31('0x1')]),_0xbce497['filters']=_[_0x11cb31('0x3c')](_0xbce497[_0x11cb31('0x21')],_0xbce497['query']),_0x5d839e[_0x11cb31('0x29')]=_[_0x11cb31('0x3c')](_0xbce497['model'],qs[_0x11cb31('0x12')](_0xc4b093['query'][_0x11cb31('0x12')])),_0x5d839e[_0x11cb31('0x29')]=_0x5d839e[_0x11cb31('0x29')][_0x11cb31('0x26')]?_0x5d839e[_0x11cb31('0x29')]:_0xbce497[_0x11cb31('0x21')],_0x5d839e['order']=qs[_0x11cb31('0x6')](_0xc4b093[_0x11cb31('0x1')][_0x11cb31('0x6')]),_0x5d839e[_0x11cb31('0x10')]=qs[_0x11cb31('0x23')](_[_0x11cb31('0x39')](_0xc4b093[_0x11cb31('0x1')],_0xbce497[_0x11cb31('0x23')])),_0xc4b093[_0x11cb31('0x1')][_0x11cb31('0x2c')]&&(_0x5d839e[_0x11cb31('0x10')]=_[_0x11cb31('0x19')](_0x5d839e['where'],{[Op['or']]:_[_0x11cb31('0x31')](_0x5d839e[_0x11cb31('0x29')],function(_0x55813a){const _0x4b0a40=_0x11cb31,_0xb67d01={};return _0xb67d01[_0x55813a]={[Op[_0x4b0a40('0x24')]]:'%'+_0xc4b093[_0x4b0a40('0x1')][_0x4b0a40('0x2c')]+'%'},_0xb67d01;})})),_0x5d839e=_[_0x11cb31('0x19')]({},_0x5d839e,_0xc4b093['options']),_0x1d5e71[_0x11cb31('0x1b')](_0x5d839e);})[_0x28c538('0x18')](function(_0x4e6c62){const _0x316b33=_0x28c538;if(_0x4e6c62)return _0x2342cf=_0x4e6c62[_0x316b33('0x26')],typeof _0xc4b093[_0x316b33('0x1')][_0x316b33('0x2f')]==='undefined'&&(_0x5d839e[_0x316b33('0x1f')]=qs['limit'](_0xc4b093[_0x316b33('0x1')][_0x316b33('0x1f')]),_0x5d839e[_0x316b33('0x4')]=qs[_0x316b33('0x4')](_0xc4b093[_0x316b33('0x1')][_0x316b33('0x4')])),_0x1d5e71[_0x316b33('0x1b')](_0x5d839e);})[_0x28c538('0x18')](function(_0x18d26d){if(_0x18d26d)return _0x18d26d?{'count':_0x2342cf,'rows':_0x18d26d}:null;})[_0x28c538('0x18')](respondWithResult(_0x1298ed,null))[_0x28c538('0x34')](handleError(_0x1298ed,null));},exports[_0x4d9cfd('0x8')]=function(_0x5d412f,_0x3a6445){const _0xf60622=_0x4d9cfd;let _0x206cb4={};const _0x5dfa57={};let _0x281848,_0x52f3bd;return db['DeskConfiguration']['findOne']({'where':{'id':_0x5d412f['params']['id']}})[_0xf60622('0x18')](handleEntityNotFound(_0x3a6445,null))['then'](function(_0x201b1c){const _0x2da85c=_0xf60622;if(_0x201b1c)return _0x281848=_0x201b1c,_0x5dfa57[_0x2da85c('0x21')]=_[_0x2da85c('0x3d')](db[_0x2da85c('0x15')][_0x2da85c('0x2e')]),_0x5dfa57[_0x2da85c('0x1')]=_['keys'](_0x5d412f[_0x2da85c('0x1')]),_0x5dfa57[_0x2da85c('0x23')]=_[_0x2da85c('0x3c')](_0x5dfa57[_0x2da85c('0x21')],_0x5dfa57[_0x2da85c('0x1')]),_0x206cb4[_0x2da85c('0x29')]=_[_0x2da85c('0x3c')](_0x5dfa57['model'],qs['fields'](_0x5d412f[_0x2da85c('0x1')]['fields'])),_0x206cb4['attributes']=_0x206cb4[_0x2da85c('0x29')][_0x2da85c('0x26')]?_0x206cb4['attributes']:_0x5dfa57[_0x2da85c('0x21')],_0x206cb4[_0x2da85c('0x17')]=qs['sort'](_0x5d412f['query'][_0x2da85c('0x6')]),_0x206cb4[_0x2da85c('0x10')]=qs[_0x2da85c('0x23')](_[_0x2da85c('0x39')](_0x5d412f[_0x2da85c('0x1')],_0x5dfa57[_0x2da85c('0x23')])),_0x5d412f[_0x2da85c('0x1')][_0x2da85c('0x2c')]&&(_0x206cb4[_0x2da85c('0x10')]=_[_0x2da85c('0x19')](_0x206cb4[_0x2da85c('0x10')],{[Op['or']]:_[_0x2da85c('0x31')](_0x206cb4[_0x2da85c('0x29')],function(_0xe57089){const _0x144ccb=_0x2da85c,_0x1bae52={};return _0x1bae52[_0xe57089]={[Op[_0x144ccb('0x24')]]:'%'+_0x5d412f[_0x144ccb('0x1')][_0x144ccb('0x2c')]+'%'},_0x1bae52;})})),_0x206cb4=_['merge']({},_0x206cb4,_0x5d412f[_0x2da85c('0x38')]),_0x281848[_0x2da85c('0x8')](_0x206cb4);})[_0xf60622('0x18')](function(_0x5c2a61){const _0x2fb777=_0xf60622;if(_0x5c2a61)return _0x52f3bd=_0x5c2a61[_0x2fb777('0x26')],typeof _0x5d412f[_0x2fb777('0x1')][_0x2fb777('0x2f')]===_0x2fb777('0x1e')&&(_0x206cb4[_0x2fb777('0x1f')]=qs[_0x2fb777('0x1f')](_0x5d412f[_0x2fb777('0x1')][_0x2fb777('0x1f')]),_0x206cb4['offset']=qs[_0x2fb777('0x4')](_0x5d412f[_0x2fb777('0x1')]['offset'])),_0x281848[_0x2fb777('0x8')](_0x206cb4);})[_0xf60622('0x18')](function(_0x16eabc){if(_0x16eabc)return _0x16eabc?{'count':_0x52f3bd,'rows':_0x16eabc}:null;})[_0xf60622('0x18')](respondWithResult(_0x3a6445,null))['catch'](handleError(_0x3a6445,null));},exports[_0x4d9cfd('0x13')]=function(_0x25eae9,_0xe13e8c){const _0x22024e=_0x4d9cfd;return _0x25eae9[_0x22024e('0xd')]['id']&&delete _0x25eae9[_0x22024e('0xd')]['id'],db[_0x22024e('0x33')][_0x22024e('0x2b')]({'where':{'id':_0x25eae9[_0x22024e('0xb')]['id']}})[_0x22024e('0x18')](handleEntityNotFound(_0xe13e8c,null))['then'](function(_0x3f9795){const _0x127e46=_0x22024e;if(_0x3f9795)return _0x3f9795[_0x127e46('0x13')](_0x25eae9[_0x127e46('0xd')][_0x127e46('0x30')]||[]);return null;})['then'](respondWithResult(_0xe13e8c,null))[_0x22024e('0x34')](handleError(_0xe13e8c,null));}; \ No newline at end of file +const a234_0x46f1=['rawAttributes','limit','where','includeAll','query','../../config/logger','error','stack','status','options','sort','Content-Range','getSubjects','filters','end','merge','Tag','DeskField','VIRTUAL','filter','undefined','fieldName','show','attributes','sendStatus','name','intersection','getFields','sequelize','catch','findOne','then','order','include','set','model','DeskConfiguration','offset','nolimit','send','type','like','getDescriptions','length','pick','setTags','map','lodash','ids','key','params','update','create','fields','body','destroy','keys','getTags','findAll','count','json'];(function(_0x53f465,_0x46f1a3){const _0x4274f0=function(_0x5c479f){while(--_0x5c479f){_0x53f465['push'](_0x53f465['shift']());}};_0x4274f0(++_0x46f1a3);}(a234_0x46f1,0x149));const a234_0x4274=function(_0x53f465,_0x46f1a3){_0x53f465=_0x53f465-0x0;let _0x4274f0=a234_0x46f1[_0x53f465];return _0x4274f0;};const _0x260188=a234_0x4274;'use strict';const _=require(_0x260188('0x17')),qs=require('../../components/parsers/qs'),logger=require(_0x260188('0x2a'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x260188('0x4'));function respondWithResult(_0x5c479f,_0x35597c){return _0x35597c=_0x35597c||0xc8,function(_0x57029e){const _0x1cda4a=a234_0x4274;if(_0x57029e)return _0x5c479f[_0x1cda4a('0x2d')](_0x35597c)[_0x1cda4a('0x24')](_0x57029e);};}function respondWithFilteredResult(_0x44db81,_0x14ea3b){return function(_0x11908e){const _0x2eb753=a234_0x4274;if(_0x11908e){const _0x174079=_0x11908e['count'],_0x1ce357=_0x14ea3b[_0x2eb753('0xd')];let _0x121fa5=_0x14ea3b[_0x2eb753('0xd')]+_0x14ea3b['limit'],_0xcf6ccb;return _0x121fa5>=_0x174079?(_0x121fa5=_0x174079,_0xcf6ccb=0xc8):_0xcf6ccb=0xce,_0x44db81[_0x2eb753('0x2d')](_0xcf6ccb),_0x44db81[_0x2eb753('0xa')](_0x2eb753('0x30'),_0x1ce357+'-'+_0x121fa5+'/'+_0x174079)[_0x2eb753('0x24')](_0x11908e);}return null;};}function saveUpdates(_0x52fdf3){return function(_0x34f073){const _0x6df3f3=a234_0x4274;if(_0x34f073)return _0x34f073[_0x6df3f3('0x1b')](_0x52fdf3)[_0x6df3f3('0x7')](function(_0x5943d7){return _0x5943d7;});return null;};}function removeEntity(_0x1cf39d){return function(_0x12652e){const _0x249cfb=a234_0x4274;if(_0x12652e)return _0x12652e[_0x249cfb('0x1f')]()[_0x249cfb('0x7')](function(){const _0x196854=_0x249cfb;_0x1cf39d['status'](0xcc)[_0x196854('0x33')]();});};}function handleEntityNotFound(_0x227d09){return function(_0x39421c){const _0xcaf3b5=a234_0x4274;return!_0x39421c&&_0x227d09[_0xcaf3b5('0x0')](0x194),_0x39421c;};}function handleError(_0x3c324d,_0x4ed7c3){return _0x4ed7c3=_0x4ed7c3||0x1f4,function(_0x25c0d8){const _0x23842f=a234_0x4274;logger[_0x23842f('0x2b')](_0x25c0d8[_0x23842f('0x2c')]),_0x25c0d8['name']&&delete _0x25c0d8['name'],_0x3c324d[_0x23842f('0x2d')](_0x4ed7c3)[_0x23842f('0xf')](_0x25c0d8);};}exports['index']=function(_0x16829e,_0x464e16){const _0x38abd5=_0x260188;let _0x310b8a={};const _0x5cd573={},_0x3af18e={'count':0x0,'rows':[]},_0x341d13=_[_0x38abd5('0x16')](db[_0x38abd5('0xc')][_0x38abd5('0x25')],function(_0x20302a){const _0x48e843=_0x38abd5;return{'name':_0x20302a[_0x48e843('0x3a')],'type':_0x20302a[_0x48e843('0x10')][_0x48e843('0x19')]};});_0x5cd573[_0x38abd5('0xb')]=_[_0x38abd5('0x16')](_0x341d13,_0x38abd5('0x1')),_0x5cd573[_0x38abd5('0x29')]=_[_0x38abd5('0x20')](_0x16829e[_0x38abd5('0x29')]),_0x5cd573['filters']=_['intersection'](_0x5cd573[_0x38abd5('0xb')],_0x5cd573['query']),_0x310b8a[_0x38abd5('0x3c')]=_[_0x38abd5('0x2')](_0x5cd573[_0x38abd5('0xb')],qs[_0x38abd5('0x1d')](_0x16829e[_0x38abd5('0x29')][_0x38abd5('0x1d')])),_0x310b8a['attributes']=_0x310b8a[_0x38abd5('0x3c')][_0x38abd5('0x13')]?_0x310b8a[_0x38abd5('0x3c')]:_0x5cd573[_0x38abd5('0xb')];typeof _0x16829e[_0x38abd5('0x29')][_0x38abd5('0xe')]===_0x38abd5('0x39')&&(_0x310b8a[_0x38abd5('0x26')]=qs[_0x38abd5('0x26')](_0x16829e['query'][_0x38abd5('0x26')]),_0x310b8a[_0x38abd5('0xd')]=qs[_0x38abd5('0xd')](_0x16829e[_0x38abd5('0x29')][_0x38abd5('0xd')]));_0x310b8a[_0x38abd5('0x8')]=qs[_0x38abd5('0x2f')](_0x16829e[_0x38abd5('0x29')]['sort']),_0x310b8a[_0x38abd5('0x27')]=qs['filters'](_['pick'](_0x16829e[_0x38abd5('0x29')],_0x5cd573['filters']),_0x341d13);_0x16829e[_0x38abd5('0x29')][_0x38abd5('0x38')]&&(_0x310b8a[_0x38abd5('0x27')]=_[_0x38abd5('0x34')](_0x310b8a[_0x38abd5('0x27')],{[Op['or']]:_[_0x38abd5('0x16')](_0x341d13,function(_0x5e6f62){const _0xee3a9b=_0x38abd5;if(_0x5e6f62[_0xee3a9b('0x10')]!==_0xee3a9b('0x37')){const _0x5f5cef={};return _0x5f5cef[_0x5e6f62[_0xee3a9b('0x1')]]={[Op[_0xee3a9b('0x11')]]:'%'+_0x16829e['query'][_0xee3a9b('0x38')]+'%'},_0x5f5cef;}})}));_0x310b8a=_[_0x38abd5('0x34')]({},_0x310b8a,_0x16829e[_0x38abd5('0x2e')]);const _0xf9eb37={'where':_0x310b8a[_0x38abd5('0x27')]};return db[_0x38abd5('0xc')][_0x38abd5('0x23')](_0xf9eb37)[_0x38abd5('0x7')](function(_0x241539){const _0x4971f4=_0x38abd5;return _0x3af18e['count']=_0x241539,_0x16829e[_0x4971f4('0x29')][_0x4971f4('0x28')]&&(_0x310b8a[_0x4971f4('0x9')]=[{'all':!![]}]),db[_0x4971f4('0xc')][_0x4971f4('0x22')](_0x310b8a);})['then'](function(_0x3d9569){return _0x3af18e['rows']=_0x3d9569,_0x3af18e;})['then'](respondWithFilteredResult(_0x464e16,_0x310b8a))['catch'](handleError(_0x464e16,null));},exports[_0x260188('0x3b')]=function(_0xfe897c,_0x2905b2){const _0x5bedf8=_0x260188;let _0x279e13={'raw':![],'where':{'id':_0xfe897c[_0x5bedf8('0x1a')]['id']}};const _0x40604d={};return _0x40604d[_0x5bedf8('0xb')]=_[_0x5bedf8('0x20')](db[_0x5bedf8('0xc')][_0x5bedf8('0x25')]),_0x40604d[_0x5bedf8('0x29')]=_[_0x5bedf8('0x20')](_0xfe897c[_0x5bedf8('0x29')]),_0x40604d[_0x5bedf8('0x32')]=_[_0x5bedf8('0x2')](_0x40604d['model'],_0x40604d['query']),_0x279e13[_0x5bedf8('0x3c')]=_[_0x5bedf8('0x2')](_0x40604d[_0x5bedf8('0xb')],qs['fields'](_0xfe897c[_0x5bedf8('0x29')]['fields'])),_0x279e13[_0x5bedf8('0x3c')]=_0x279e13[_0x5bedf8('0x3c')]['length']?_0x279e13[_0x5bedf8('0x3c')]:_0x40604d[_0x5bedf8('0xb')],_0xfe897c[_0x5bedf8('0x29')][_0x5bedf8('0x28')]&&(_0x279e13[_0x5bedf8('0x9')]=[{'all':!![]}]),_0x279e13=_[_0x5bedf8('0x34')]({},_0x279e13,_0xfe897c['options']),db[_0x5bedf8('0xc')][_0x5bedf8('0x6')](_0x279e13)['then'](handleEntityNotFound(_0x2905b2,null))[_0x5bedf8('0x7')](respondWithResult(_0x2905b2,null))['catch'](handleError(_0x2905b2,null));},exports[_0x260188('0x1c')]=function(_0x5b9a72,_0x553d4e){const _0x4cb312=_0x260188;return db['DeskConfiguration']['create'](_0x5b9a72[_0x4cb312('0x1e')],{})[_0x4cb312('0x7')](respondWithResult(_0x553d4e,0xc9))['catch'](handleError(_0x553d4e,null));},exports[_0x260188('0x1b')]=function(_0x18941c,_0x964dd4){const _0x25906d=_0x260188;return _0x18941c[_0x25906d('0x1e')]['id']&&delete _0x18941c[_0x25906d('0x1e')]['id'],db[_0x25906d('0xc')][_0x25906d('0x6')]({'where':{'id':_0x18941c[_0x25906d('0x1a')]['id']}})[_0x25906d('0x7')](handleEntityNotFound(_0x964dd4,null))[_0x25906d('0x7')](saveUpdates(_0x18941c['body'],null))['then'](respondWithResult(_0x964dd4,null))[_0x25906d('0x5')](handleError(_0x964dd4,null));},exports[_0x260188('0x1f')]=function(_0x45de8d,_0x48cf18){const _0x419204=_0x260188;return db[_0x419204('0xc')][_0x419204('0x6')]({'where':{'id':_0x45de8d[_0x419204('0x1a')]['id']}})[_0x419204('0x7')](handleEntityNotFound(_0x48cf18,null))[_0x419204('0x7')](removeEntity(_0x48cf18,null))[_0x419204('0x5')](handleError(_0x48cf18,null));},exports[_0x260188('0x3')]=function(_0x4d2432,_0x39b782){const _0x3b2aba=_0x260188;let _0x489b7f={};const _0x1658a7={};let _0x2fbff1,_0x2f5e9a;return db['DeskConfiguration'][_0x3b2aba('0x6')]({'where':{'id':_0x4d2432[_0x3b2aba('0x1a')]['id']}})[_0x3b2aba('0x7')](handleEntityNotFound(_0x39b782,null))['then'](function(_0x37ef61){const _0x544108=_0x3b2aba;if(_0x37ef61)return _0x2fbff1=_0x37ef61,_0x1658a7[_0x544108('0xb')]=_[_0x544108('0x20')](db[_0x544108('0x36')][_0x544108('0x25')]),_0x1658a7[_0x544108('0x29')]=_[_0x544108('0x20')](_0x4d2432[_0x544108('0x29')]),_0x1658a7[_0x544108('0x32')]=_['intersection'](_0x1658a7[_0x544108('0xb')],_0x1658a7[_0x544108('0x29')]),_0x489b7f[_0x544108('0x3c')]=_['intersection'](_0x1658a7[_0x544108('0xb')],qs[_0x544108('0x1d')](_0x4d2432[_0x544108('0x29')][_0x544108('0x1d')])),_0x489b7f[_0x544108('0x3c')]=_0x489b7f['attributes']['length']?_0x489b7f[_0x544108('0x3c')]:_0x1658a7[_0x544108('0xb')],_0x489b7f[_0x544108('0x8')]=qs[_0x544108('0x2f')](_0x4d2432[_0x544108('0x29')]['sort']),_0x489b7f[_0x544108('0x27')]=qs['filters'](_[_0x544108('0x14')](_0x4d2432[_0x544108('0x29')],_0x1658a7['filters'])),_0x4d2432[_0x544108('0x29')][_0x544108('0x38')]&&(_0x489b7f[_0x544108('0x27')]=_['merge'](_0x489b7f[_0x544108('0x27')],{[Op['or']]:_[_0x544108('0x16')](_0x489b7f[_0x544108('0x3c')],function(_0x330334){const _0x37a814=_0x544108,_0x302973={};return _0x302973[_0x330334]={[Op[_0x37a814('0x11')]]:'%'+_0x4d2432[_0x37a814('0x29')][_0x37a814('0x38')]+'%'},_0x302973;})})),_0x489b7f=_[_0x544108('0x34')]({},_0x489b7f,_0x4d2432[_0x544108('0x2e')]),_0x2fbff1['getFields'](_0x489b7f);})[_0x3b2aba('0x7')](function(_0x36e413){const _0x3b4e22=_0x3b2aba;if(_0x36e413)return _0x2f5e9a=_0x36e413[_0x3b4e22('0x13')],typeof _0x4d2432[_0x3b4e22('0x29')][_0x3b4e22('0xe')]==='undefined'&&(_0x489b7f[_0x3b4e22('0x26')]=qs[_0x3b4e22('0x26')](_0x4d2432['query'][_0x3b4e22('0x26')]),_0x489b7f[_0x3b4e22('0xd')]=qs[_0x3b4e22('0xd')](_0x4d2432[_0x3b4e22('0x29')][_0x3b4e22('0xd')])),_0x2fbff1[_0x3b4e22('0x3')](_0x489b7f);})['then'](function(_0x59f577){if(_0x59f577)return _0x59f577?{'count':_0x2f5e9a,'rows':_0x59f577}:null;})[_0x3b2aba('0x7')](respondWithResult(_0x39b782,null))[_0x3b2aba('0x5')](handleError(_0x39b782,null));},exports[_0x260188('0x31')]=function(_0x19b5f8,_0x39aed2){const _0x69989c=_0x260188;let _0x404184={};const _0x2f66e6={};let _0x22531b,_0x2b9d04;return db[_0x69989c('0xc')]['findOne']({'where':{'id':_0x19b5f8['params']['id']}})['then'](handleEntityNotFound(_0x39aed2,null))[_0x69989c('0x7')](function(_0x9cdff9){const _0x271ccb=_0x69989c;if(_0x9cdff9)return _0x22531b=_0x9cdff9,_0x2f66e6[_0x271ccb('0xb')]=_[_0x271ccb('0x20')](db['DeskField'][_0x271ccb('0x25')]),_0x2f66e6[_0x271ccb('0x29')]=_['keys'](_0x19b5f8[_0x271ccb('0x29')]),_0x2f66e6[_0x271ccb('0x32')]=_[_0x271ccb('0x2')](_0x2f66e6[_0x271ccb('0xb')],_0x2f66e6[_0x271ccb('0x29')]),_0x404184['attributes']=_[_0x271ccb('0x2')](_0x2f66e6[_0x271ccb('0xb')],qs[_0x271ccb('0x1d')](_0x19b5f8[_0x271ccb('0x29')][_0x271ccb('0x1d')])),_0x404184[_0x271ccb('0x3c')]=_0x404184['attributes'][_0x271ccb('0x13')]?_0x404184[_0x271ccb('0x3c')]:_0x2f66e6[_0x271ccb('0xb')],_0x404184['order']=qs[_0x271ccb('0x2f')](_0x19b5f8[_0x271ccb('0x29')][_0x271ccb('0x2f')]),_0x404184[_0x271ccb('0x27')]=qs[_0x271ccb('0x32')](_[_0x271ccb('0x14')](_0x19b5f8['query'],_0x2f66e6[_0x271ccb('0x32')])),_0x19b5f8[_0x271ccb('0x29')][_0x271ccb('0x38')]&&(_0x404184[_0x271ccb('0x27')]=_[_0x271ccb('0x34')](_0x404184['where'],{[Op['or']]:_[_0x271ccb('0x16')](_0x404184[_0x271ccb('0x3c')],function(_0x22d0ea){const _0x117925=_0x271ccb,_0x597ac7={};return _0x597ac7[_0x22d0ea]={[Op[_0x117925('0x11')]]:'%'+_0x19b5f8[_0x117925('0x29')]['filter']+'%'},_0x597ac7;})})),_0x404184=_['merge']({},_0x404184,_0x19b5f8['options']),_0x22531b[_0x271ccb('0x31')](_0x404184);})[_0x69989c('0x7')](function(_0x1420fe){const _0x55c314=_0x69989c;if(_0x1420fe)return _0x2b9d04=_0x1420fe['length'],typeof _0x19b5f8[_0x55c314('0x29')][_0x55c314('0xe')]===_0x55c314('0x39')&&(_0x404184[_0x55c314('0x26')]=qs[_0x55c314('0x26')](_0x19b5f8['query']['limit']),_0x404184['offset']=qs[_0x55c314('0xd')](_0x19b5f8['query'][_0x55c314('0xd')])),_0x22531b[_0x55c314('0x31')](_0x404184);})[_0x69989c('0x7')](function(_0x15a049){if(_0x15a049)return _0x15a049?{'count':_0x2b9d04,'rows':_0x15a049}:null;})[_0x69989c('0x7')](respondWithResult(_0x39aed2,null))[_0x69989c('0x5')](handleError(_0x39aed2,null));},exports[_0x260188('0x12')]=function(_0x130919,_0x444621){const _0x28c85f=_0x260188;let _0xf06293={};const _0x473ca4={};let _0x19421e,_0x20efb0;return db[_0x28c85f('0xc')][_0x28c85f('0x6')]({'where':{'id':_0x130919[_0x28c85f('0x1a')]['id']}})['then'](handleEntityNotFound(_0x444621,null))[_0x28c85f('0x7')](function(_0xf4ad27){const _0x59b1fc=_0x28c85f;if(_0xf4ad27)return _0x19421e=_0xf4ad27,_0x473ca4[_0x59b1fc('0xb')]=_[_0x59b1fc('0x20')](db['DeskField'][_0x59b1fc('0x25')]),_0x473ca4['query']=_[_0x59b1fc('0x20')](_0x130919[_0x59b1fc('0x29')]),_0x473ca4[_0x59b1fc('0x32')]=_[_0x59b1fc('0x2')](_0x473ca4[_0x59b1fc('0xb')],_0x473ca4[_0x59b1fc('0x29')]),_0xf06293[_0x59b1fc('0x3c')]=_[_0x59b1fc('0x2')](_0x473ca4[_0x59b1fc('0xb')],qs['fields'](_0x130919[_0x59b1fc('0x29')][_0x59b1fc('0x1d')])),_0xf06293[_0x59b1fc('0x3c')]=_0xf06293[_0x59b1fc('0x3c')][_0x59b1fc('0x13')]?_0xf06293[_0x59b1fc('0x3c')]:_0x473ca4[_0x59b1fc('0xb')],_0xf06293[_0x59b1fc('0x8')]=qs[_0x59b1fc('0x2f')](_0x130919[_0x59b1fc('0x29')][_0x59b1fc('0x2f')]),_0xf06293[_0x59b1fc('0x27')]=qs['filters'](_[_0x59b1fc('0x14')](_0x130919[_0x59b1fc('0x29')],_0x473ca4[_0x59b1fc('0x32')])),_0x130919[_0x59b1fc('0x29')][_0x59b1fc('0x38')]&&(_0xf06293[_0x59b1fc('0x27')]=_[_0x59b1fc('0x34')](_0xf06293[_0x59b1fc('0x27')],{[Op['or']]:_[_0x59b1fc('0x16')](_0xf06293[_0x59b1fc('0x3c')],function(_0x347f14){const _0x102305=_0x59b1fc,_0x463b17={};return _0x463b17[_0x347f14]={[Op[_0x102305('0x11')]]:'%'+_0x130919[_0x102305('0x29')][_0x102305('0x38')]+'%'},_0x463b17;})})),_0xf06293=_[_0x59b1fc('0x34')]({},_0xf06293,_0x130919[_0x59b1fc('0x2e')]),_0x19421e[_0x59b1fc('0x12')](_0xf06293);})[_0x28c85f('0x7')](function(_0x810b6f){const _0x41409e=_0x28c85f;if(_0x810b6f)return _0x20efb0=_0x810b6f[_0x41409e('0x13')],typeof _0x130919[_0x41409e('0x29')]['nolimit']===_0x41409e('0x39')&&(_0xf06293[_0x41409e('0x26')]=qs[_0x41409e('0x26')](_0x130919[_0x41409e('0x29')][_0x41409e('0x26')]),_0xf06293[_0x41409e('0xd')]=qs[_0x41409e('0xd')](_0x130919[_0x41409e('0x29')][_0x41409e('0xd')])),_0x19421e['getDescriptions'](_0xf06293);})['then'](function(_0x243f0d){if(_0x243f0d)return _0x243f0d?{'count':_0x20efb0,'rows':_0x243f0d}:null;})['then'](respondWithResult(_0x444621,null))[_0x28c85f('0x5')](handleError(_0x444621,null));},exports[_0x260188('0x21')]=function(_0x84ab22,_0xfd0ed7){const _0x501d85=_0x260188;let _0x495b31={};const _0x430c50={};let _0x37a053,_0x20ddef;return db[_0x501d85('0xc')][_0x501d85('0x6')]({'where':{'id':_0x84ab22[_0x501d85('0x1a')]['id']}})[_0x501d85('0x7')](handleEntityNotFound(_0xfd0ed7,null))[_0x501d85('0x7')](function(_0x40f0ff){const _0x5149f1=_0x501d85;if(_0x40f0ff)return _0x37a053=_0x40f0ff,_0x430c50[_0x5149f1('0xb')]=_['keys'](db[_0x5149f1('0x35')][_0x5149f1('0x25')]),_0x430c50[_0x5149f1('0x29')]=_[_0x5149f1('0x20')](_0x84ab22['query']),_0x430c50[_0x5149f1('0x32')]=_[_0x5149f1('0x2')](_0x430c50[_0x5149f1('0xb')],_0x430c50[_0x5149f1('0x29')]),_0x495b31['attributes']=_['intersection'](_0x430c50[_0x5149f1('0xb')],qs[_0x5149f1('0x1d')](_0x84ab22['query'][_0x5149f1('0x1d')])),_0x495b31[_0x5149f1('0x3c')]=_0x495b31['attributes'][_0x5149f1('0x13')]?_0x495b31[_0x5149f1('0x3c')]:_0x430c50['model'],_0x495b31[_0x5149f1('0x8')]=qs[_0x5149f1('0x2f')](_0x84ab22[_0x5149f1('0x29')]['sort']),_0x495b31[_0x5149f1('0x27')]=qs[_0x5149f1('0x32')](_[_0x5149f1('0x14')](_0x84ab22[_0x5149f1('0x29')],_0x430c50[_0x5149f1('0x32')])),_0x84ab22[_0x5149f1('0x29')]['filter']&&(_0x495b31['where']=_['merge'](_0x495b31[_0x5149f1('0x27')],{[Op['or']]:_[_0x5149f1('0x16')](_0x495b31[_0x5149f1('0x3c')],function(_0x3458a3){const _0x23c7d4=_0x5149f1,_0x5526e7={};return _0x5526e7[_0x3458a3]={[Op['like']]:'%'+_0x84ab22[_0x23c7d4('0x29')][_0x23c7d4('0x38')]+'%'},_0x5526e7;})})),_0x495b31=_['merge']({},_0x495b31,_0x84ab22['options']),_0x37a053[_0x5149f1('0x21')](_0x495b31);})[_0x501d85('0x7')](function(_0xbb0c36){const _0x579cc5=_0x501d85;if(_0xbb0c36)return _0x20ddef=_0xbb0c36['length'],typeof _0x84ab22[_0x579cc5('0x29')][_0x579cc5('0xe')]===_0x579cc5('0x39')&&(_0x495b31[_0x579cc5('0x26')]=qs[_0x579cc5('0x26')](_0x84ab22[_0x579cc5('0x29')][_0x579cc5('0x26')]),_0x495b31[_0x579cc5('0xd')]=qs[_0x579cc5('0xd')](_0x84ab22['query']['offset'])),_0x37a053[_0x579cc5('0x21')](_0x495b31);})[_0x501d85('0x7')](function(_0x17ab91){if(_0x17ab91)return _0x17ab91?{'count':_0x20ddef,'rows':_0x17ab91}:null;})[_0x501d85('0x7')](respondWithResult(_0xfd0ed7,null))[_0x501d85('0x5')](handleError(_0xfd0ed7,null));},exports[_0x260188('0x15')]=function(_0x156d98,_0x171a25){const _0x4fc82e=_0x260188;return _0x156d98[_0x4fc82e('0x1e')]['id']&&delete _0x156d98['body']['id'],db['DeskConfiguration'][_0x4fc82e('0x6')]({'where':{'id':_0x156d98[_0x4fc82e('0x1a')]['id']}})[_0x4fc82e('0x7')](handleEntityNotFound(_0x171a25,null))[_0x4fc82e('0x7')](function(_0x19717e){const _0x2ee5e5=_0x4fc82e;if(_0x19717e)return _0x19717e[_0x2ee5e5('0x15')](_0x156d98[_0x2ee5e5('0x1e')][_0x2ee5e5('0x18')]||[]);return null;})[_0x4fc82e('0x7')](respondWithResult(_0x171a25,null))[_0x4fc82e('0x5')](handleError(_0x171a25,null));}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.model.js b/server/api/intDeskConfiguration/intDeskConfiguration.model.js index 1a995e1..b3c5f4a 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.model.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.model.js @@ -1 +1 @@ -const a235_0x3abe=['int_desk_configurations','define','DeskConfiguration','./intDeskConfiguration.attributes'];(function(_0xc55b1e,_0x3abea3){const _0x12e57c=function(_0x36da6d){while(--_0x36da6d){_0xc55b1e['push'](_0xc55b1e['shift']());}};_0x12e57c(++_0x3abea3);}(a235_0x3abe,0x167));const a235_0x12e5=function(_0xc55b1e,_0x3abea3){_0xc55b1e=_0xc55b1e-0x0;let _0x12e57c=a235_0x3abe[_0xc55b1e];return _0x12e57c;};const _0x1cb808=a235_0x12e5;'use strict';const attributes=require(_0x1cb808('0x0'));module['exports']=function(_0x36da6d){const _0x149b2b=_0x1cb808,_0x94b3ba=_0x36da6d[_0x149b2b('0x2')](_0x149b2b('0x3'),attributes,{'tableName':_0x149b2b('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x94b3ba;}; \ No newline at end of file +const a235_0x55e6=['DeskConfiguration','exports','./intDeskConfiguration.attributes','define'];(function(_0x4efc29,_0x55e6a){const _0x419d1c=function(_0x4170f5){while(--_0x4170f5){_0x4efc29['push'](_0x4efc29['shift']());}};_0x419d1c(++_0x55e6a);}(a235_0x55e6,0x187));const a235_0x419d=function(_0x4efc29,_0x55e6a){_0x4efc29=_0x4efc29-0x0;let _0x419d1c=a235_0x55e6[_0x4efc29];return _0x419d1c;};const _0x42eee4=a235_0x419d;'use strict';const attributes=require(_0x42eee4('0x3'));module[_0x42eee4('0x2')]=function(_0x4170f5){const _0x322647=_0x42eee4,_0x38d729=_0x4170f5[_0x322647('0x0')](_0x322647('0x1'),attributes,{'tableName':'int_desk_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x38d729;}; \ No newline at end of file diff --git a/server/api/intDeskField/index.js b/server/api/intDeskField/index.js index ee48bfe..08e424d 100644 --- a/server/api/intDeskField/index.js +++ b/server/api/intDeskField/index.js @@ -1 +1 @@ -const a236_0x4ab5=['express','get','update','Router','put','./intDeskField.controller','isAuthenticated','../../components/auth/service','create','delete','index','exports','/:id','destroy','post'];(function(_0x385a5e,_0x4ab5d6){const _0x13fab6=function(_0x2679c5){while(--_0x2679c5){_0x385a5e['push'](_0x385a5e['shift']());}};_0x13fab6(++_0x4ab5d6);}(a236_0x4ab5,0x1e8));const a236_0x13fa=function(_0x385a5e,_0x4ab5d6){_0x385a5e=_0x385a5e-0x0;let _0x13fab6=a236_0x4ab5[_0x385a5e];return _0x13fab6;};const _0x5dadc2=a236_0x13fa;'use strict';const express=require(_0x5dadc2('0x7')),router=express[_0x5dadc2('0xa')](),auth=require(_0x5dadc2('0xe')),controller=require(_0x5dadc2('0xc'));router[_0x5dadc2('0x8')]('/',auth[_0x5dadc2('0xd')](),controller[_0x5dadc2('0x2')]),router[_0x5dadc2('0x8')](_0x5dadc2('0x4'),auth[_0x5dadc2('0xd')](),controller['show']),router[_0x5dadc2('0x6')]('/',auth['isAuthenticated'](),controller[_0x5dadc2('0x0')]),router[_0x5dadc2('0xb')](_0x5dadc2('0x4'),auth['isAuthenticated'](),controller[_0x5dadc2('0x9')]),router[_0x5dadc2('0x1')](_0x5dadc2('0x4'),auth[_0x5dadc2('0xd')](),controller[_0x5dadc2('0x5')]),module[_0x5dadc2('0x3')]=router; \ No newline at end of file +const a236_0x2d8e=['destroy','/:id','delete','show','put','get','isAuthenticated','../../components/auth/service','express','exports','index','update','Router'];(function(_0x1342f1,_0x2d8e10){const _0x4e2dd2=function(_0x1e8b05){while(--_0x1e8b05){_0x1342f1['push'](_0x1342f1['shift']());}};_0x4e2dd2(++_0x2d8e10);}(a236_0x2d8e,0x1c7));const a236_0x4e2d=function(_0x1342f1,_0x2d8e10){_0x1342f1=_0x1342f1-0x0;let _0x4e2dd2=a236_0x2d8e[_0x1342f1];return _0x4e2dd2;};const _0x3ada63=a236_0x4e2d;'use strict';const express=require(_0x3ada63('0x8')),router=express[_0x3ada63('0xc')](),auth=require(_0x3ada63('0x7')),controller=require('./intDeskField.controller');router[_0x3ada63('0x5')]('/',auth['isAuthenticated'](),controller[_0x3ada63('0xa')]),router[_0x3ada63('0x5')]('/:id',auth[_0x3ada63('0x6')](),controller[_0x3ada63('0x3')]),router['post']('/',auth[_0x3ada63('0x6')](),controller['create']),router[_0x3ada63('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x3ada63('0xb')]),router[_0x3ada63('0x2')](_0x3ada63('0x1'),auth[_0x3ada63('0x6')](),controller[_0x3ada63('0x0')]),module[_0x3ada63('0x9')]=router; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.attributes.js b/server/api/intDeskField/intDeskField.attributes.js index 7cc1d85..80061a6 100644 --- a/server/api/intDeskField/intDeskField.attributes.js +++ b/server/api/intDeskField/intDeskField.attributes.js @@ -1 +1 @@ -const a237_0x1a55=['ENUM','exports','variable','keyValue','STRING','BOOLEAN','string','customVariable','sequelize'];(function(_0x377529,_0x1a5507){const _0x5c7bb5=function(_0x4475f3){while(--_0x4475f3){_0x377529['push'](_0x377529['shift']());}};_0x5c7bb5(++_0x1a5507);}(a237_0x1a55,0x168));const a237_0x5c7b=function(_0x377529,_0x1a5507){_0x377529=_0x377529-0x0;let _0x5c7bb5=a237_0x1a55[_0x377529];return _0x5c7bb5;};const _0xc01fb5=a237_0x5c7b;'use strict';const Sequelize=require(_0xc01fb5('0x8'));module[_0xc01fb5('0x1')]={'type':{'type':Sequelize[_0xc01fb5('0x0')]('string',_0xc01fb5('0x2'),_0xc01fb5('0x7'),_0xc01fb5('0x3')),'defaultValue':'string'},'content':{'type':Sequelize[_0xc01fb5('0x4')]},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize['ENUM'](_0xc01fb5('0x6'),'variable',_0xc01fb5('0x7'))},'keyContent':{'type':Sequelize[_0xc01fb5('0x4')]},'idField':{'type':Sequelize[_0xc01fb5('0x4')]},'nameField':{'type':Sequelize[_0xc01fb5('0x4')]},'customField':{'type':Sequelize[_0xc01fb5('0x5')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a237_0x1647=['STRING','exports','sequelize','customVariable','variable','keyValue','ENUM','string'];(function(_0xb6a2b5,_0x1647bb){const _0x50d4f3=function(_0x37d73c){while(--_0x37d73c){_0xb6a2b5['push'](_0xb6a2b5['shift']());}};_0x50d4f3(++_0x1647bb);}(a237_0x1647,0x7e));const a237_0x50d4=function(_0xb6a2b5,_0x1647bb){_0xb6a2b5=_0xb6a2b5-0x0;let _0x50d4f3=a237_0x1647[_0xb6a2b5];return _0x50d4f3;};const _0x1ef464=a237_0x50d4;'use strict';const Sequelize=require(_0x1ef464('0x4'));module[_0x1ef464('0x3')]={'type':{'type':Sequelize[_0x1ef464('0x0')](_0x1ef464('0x1'),_0x1ef464('0x6'),_0x1ef464('0x5'),_0x1ef464('0x7')),'defaultValue':_0x1ef464('0x1')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x1ef464('0x2')]},'keyType':{'type':Sequelize[_0x1ef464('0x0')](_0x1ef464('0x1'),_0x1ef464('0x6'),_0x1ef464('0x5'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x1ef464('0x2')]},'nameField':{'type':Sequelize[_0x1ef464('0x2')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.controller.js b/server/api/intDeskField/intDeskField.controller.js index 08a234f..1d6396d 100644 --- a/server/api/intDeskField/intDeskField.controller.js +++ b/server/api/intDeskField/intDeskField.controller.js @@ -1 +1 @@ -const a238_0x39ff=['update','where','VIRTUAL','api','limit','count','../../components/parsers/qs','model','name','show','then','rawAttributes','fields','../../mysqldb','set','stack','error','keys','offset','end','merge','filter','body','filters','json','includeAll','include','findAll','status','params','send','sequelize','index','sendStatus','catch','create','nolimit','Content-Range','DeskField','sort','map','length','findOne','order','intersection','undefined','attributes','destroy','options','type','query'];(function(_0x90fe3c,_0x39ffc8){const _0xdaf876=function(_0x5c2544){while(--_0x5c2544){_0x90fe3c['push'](_0x90fe3c['shift']());}};_0xdaf876(++_0x39ffc8);}(a238_0x39ff,0x18b));const a238_0xdaf8=function(_0x90fe3c,_0x39ffc8){_0x90fe3c=_0x90fe3c-0x0;let _0xdaf876=a238_0x39ff[_0x90fe3c];return _0xdaf876;};const _0xb8a13d=a238_0xdaf8;'use strict';const _=require('lodash'),qs=require(_0xb8a13d('0x13')),logger=require('../../config/logger')(_0xb8a13d('0x10')),db=require(_0xb8a13d('0x1a'))['db'],{Op}=require(_0xb8a13d('0x2c'));function respondWithResult(_0x5c2544,_0x1b2208){return _0x1b2208=_0x1b2208||0xc8,function(_0x7374f4){const _0x20e03c=a238_0xdaf8;if(_0x7374f4)return _0x5c2544[_0x20e03c('0x29')](_0x1b2208)[_0x20e03c('0x25')](_0x7374f4);};}function respondWithFilteredResult(_0x29ed6b,_0x5e6d32){return function(_0x21db3c){const _0x1fcce2=a238_0xdaf8;if(_0x21db3c){const _0x572229=_0x21db3c[_0x1fcce2('0x12')],_0x50194a=_0x5e6d32[_0x1fcce2('0x1f')];let _0x16d403=_0x5e6d32['offset']+_0x5e6d32[_0x1fcce2('0x11')],_0x254cba;return _0x16d403>=_0x572229?(_0x16d403=_0x572229,_0x254cba=0xc8):_0x254cba=0xce,_0x29ed6b[_0x1fcce2('0x29')](_0x254cba),_0x29ed6b[_0x1fcce2('0x1b')](_0x1fcce2('0x32'),_0x50194a+'-'+_0x16d403+'/'+_0x572229)['json'](_0x21db3c);}return null;};}function saveUpdates(_0x30a229){return function(_0x301a43){const _0x439157=a238_0xdaf8;if(_0x301a43)return _0x301a43[_0x439157('0xd')](_0x30a229)[_0x439157('0x17')](function(_0x16c4bf){return _0x16c4bf;});return null;};}function removeEntity(_0x2bd4f7){return function(_0x3b5593){if(_0x3b5593)return _0x3b5593['destroy']()['then'](function(){const _0x42147f=a238_0xdaf8;_0x2bd4f7[_0x42147f('0x29')](0xcc)[_0x42147f('0x20')]();});};}function handleEntityNotFound(_0x391486){return function(_0x128b96){const _0x17ead1=a238_0xdaf8;return!_0x128b96&&_0x391486[_0x17ead1('0x2e')](0x194),_0x128b96;};}function handleError(_0x1a5757,_0x5bc8dc){return _0x5bc8dc=_0x5bc8dc||0x1f4,function(_0x39e451){const _0x250887=a238_0xdaf8;logger[_0x250887('0x1d')](_0x39e451[_0x250887('0x1c')]),_0x39e451[_0x250887('0x15')]&&delete _0x39e451['name'],_0x1a5757[_0x250887('0x29')](_0x5bc8dc)[_0x250887('0x2b')](_0x39e451);};}exports[_0xb8a13d('0x2d')]=function(_0x31a01c,_0x590d9e){const _0x278a7f=_0xb8a13d;let _0x8e6cfe={};const _0x470595={},_0x376999={'count':0x0,'rows':[]},_0xfefda4=_['map'](db[_0x278a7f('0x0')]['rawAttributes'],function(_0x2d17e3){const _0x4d6c61=_0x278a7f;return{'name':_0x2d17e3['fieldName'],'type':_0x2d17e3[_0x4d6c61('0xb')]['key']};});_0x470595[_0x278a7f('0x14')]=_[_0x278a7f('0x2')](_0xfefda4,_0x278a7f('0x15')),_0x470595[_0x278a7f('0xc')]=_[_0x278a7f('0x1e')](_0x31a01c['query']),_0x470595[_0x278a7f('0x24')]=_[_0x278a7f('0x6')](_0x470595[_0x278a7f('0x14')],_0x470595[_0x278a7f('0xc')]),_0x8e6cfe[_0x278a7f('0x8')]=_[_0x278a7f('0x6')](_0x470595[_0x278a7f('0x14')],qs['fields'](_0x31a01c[_0x278a7f('0xc')][_0x278a7f('0x19')])),_0x8e6cfe['attributes']=_0x8e6cfe[_0x278a7f('0x8')]['length']?_0x8e6cfe[_0x278a7f('0x8')]:_0x470595['model'];typeof _0x31a01c['query'][_0x278a7f('0x31')]===_0x278a7f('0x7')&&(_0x8e6cfe['limit']=qs[_0x278a7f('0x11')](_0x31a01c['query'][_0x278a7f('0x11')]),_0x8e6cfe['offset']=qs[_0x278a7f('0x1f')](_0x31a01c[_0x278a7f('0xc')][_0x278a7f('0x1f')]));_0x8e6cfe[_0x278a7f('0x5')]=qs[_0x278a7f('0x1')](_0x31a01c[_0x278a7f('0xc')][_0x278a7f('0x1')]),_0x8e6cfe[_0x278a7f('0xe')]=qs['filters'](_['pick'](_0x31a01c[_0x278a7f('0xc')],_0x470595[_0x278a7f('0x24')]),_0xfefda4);_0x31a01c[_0x278a7f('0xc')][_0x278a7f('0x22')]&&(_0x8e6cfe[_0x278a7f('0xe')]=_[_0x278a7f('0x21')](_0x8e6cfe[_0x278a7f('0xe')],{[Op['or']]:_['map'](_0xfefda4,function(_0x4a14b9){const _0xe07c25=_0x278a7f;if(_0x4a14b9[_0xe07c25('0xb')]!==_0xe07c25('0xf')){const _0x53cc0d={};return _0x53cc0d[_0x4a14b9['name']]={[Op['like']]:'%'+_0x31a01c[_0xe07c25('0xc')]['filter']+'%'},_0x53cc0d;}})}));_0x8e6cfe=_[_0x278a7f('0x21')]({},_0x8e6cfe,_0x31a01c['options']);const _0xd1dd2d={'where':_0x8e6cfe[_0x278a7f('0xe')]};return db[_0x278a7f('0x0')][_0x278a7f('0x12')](_0xd1dd2d)[_0x278a7f('0x17')](function(_0x60bc02){const _0x58eca6=_0x278a7f;return _0x376999['count']=_0x60bc02,_0x31a01c[_0x58eca6('0xc')][_0x58eca6('0x26')]&&(_0x8e6cfe[_0x58eca6('0x27')]=[{'all':!![]}]),db['DeskField'][_0x58eca6('0x28')](_0x8e6cfe);})[_0x278a7f('0x17')](function(_0x3db21c){return _0x376999['rows']=_0x3db21c,_0x376999;})[_0x278a7f('0x17')](respondWithFilteredResult(_0x590d9e,_0x8e6cfe))[_0x278a7f('0x2f')](handleError(_0x590d9e,null));},exports[_0xb8a13d('0x16')]=function(_0x3c0be0,_0x2ab8eb){const _0x43b6ca=_0xb8a13d;let _0x17ff19={'raw':!![],'where':{'id':_0x3c0be0[_0x43b6ca('0x2a')]['id']}};const _0x1d14ba={};return _0x1d14ba[_0x43b6ca('0x14')]=_['keys'](db[_0x43b6ca('0x0')][_0x43b6ca('0x18')]),_0x1d14ba[_0x43b6ca('0xc')]=_[_0x43b6ca('0x1e')](_0x3c0be0[_0x43b6ca('0xc')]),_0x1d14ba[_0x43b6ca('0x24')]=_[_0x43b6ca('0x6')](_0x1d14ba[_0x43b6ca('0x14')],_0x1d14ba[_0x43b6ca('0xc')]),_0x17ff19['attributes']=_[_0x43b6ca('0x6')](_0x1d14ba['model'],qs[_0x43b6ca('0x19')](_0x3c0be0[_0x43b6ca('0xc')]['fields'])),_0x17ff19[_0x43b6ca('0x8')]=_0x17ff19[_0x43b6ca('0x8')][_0x43b6ca('0x3')]?_0x17ff19[_0x43b6ca('0x8')]:_0x1d14ba[_0x43b6ca('0x14')],_0x3c0be0['query'][_0x43b6ca('0x26')]&&(_0x17ff19[_0x43b6ca('0x27')]=[{'all':!![]}]),_0x17ff19=_[_0x43b6ca('0x21')]({},_0x17ff19,_0x3c0be0[_0x43b6ca('0xa')]),db['DeskField'][_0x43b6ca('0x4')](_0x17ff19)[_0x43b6ca('0x17')](handleEntityNotFound(_0x2ab8eb,null))[_0x43b6ca('0x17')](respondWithResult(_0x2ab8eb,null))[_0x43b6ca('0x2f')](handleError(_0x2ab8eb,null));},exports[_0xb8a13d('0x30')]=function(_0xb5b3fd,_0x5727d0){const _0x25f20c=_0xb8a13d;return db[_0x25f20c('0x0')][_0x25f20c('0x30')](_0xb5b3fd[_0x25f20c('0x23')],{})[_0x25f20c('0x17')](respondWithResult(_0x5727d0,0xc9))[_0x25f20c('0x2f')](handleError(_0x5727d0,null));},exports[_0xb8a13d('0xd')]=function(_0x1f4738,_0x1b4a6e){const _0x2ba3f6=_0xb8a13d;return _0x1f4738[_0x2ba3f6('0x23')]['id']&&delete _0x1f4738[_0x2ba3f6('0x23')]['id'],db[_0x2ba3f6('0x0')][_0x2ba3f6('0x4')]({'where':{'id':_0x1f4738[_0x2ba3f6('0x2a')]['id']}})['then'](handleEntityNotFound(_0x1b4a6e,null))[_0x2ba3f6('0x17')](saveUpdates(_0x1f4738['body'],null))[_0x2ba3f6('0x17')](respondWithResult(_0x1b4a6e,null))[_0x2ba3f6('0x2f')](handleError(_0x1b4a6e,null));},exports[_0xb8a13d('0x9')]=function(_0x58f17f,_0x385d19){const _0x44a42f=_0xb8a13d;return db[_0x44a42f('0x0')]['findOne']({'where':{'id':_0x58f17f[_0x44a42f('0x2a')]['id']}})[_0x44a42f('0x17')](handleEntityNotFound(_0x385d19,null))[_0x44a42f('0x17')](removeEntity(_0x385d19,null))[_0x44a42f('0x2f')](handleError(_0x385d19,null));}; \ No newline at end of file +const a238_0x2bbd=['sort','findAll','end','send','status','../../components/parsers/qs','includeAll','../../mysqldb','Content-Range','model','destroy','body','limit','key','create','lodash','merge','fields','filter','VIRTUAL','include','sendStatus','findOne','type','catch','name','pick','DeskField','query','attributes','like','order','offset','intersection','length','fieldName','update','where','rawAttributes','keys','then','../../config/logger','count','filters','map','api','params','json','undefined'];(function(_0x1fec0b,_0x2bbde5){const _0x1e1709=function(_0x2c2a81){while(--_0x2c2a81){_0x1fec0b['push'](_0x1fec0b['shift']());}};_0x1e1709(++_0x2bbde5);}(a238_0x2bbd,0x143));const a238_0x1e17=function(_0x1fec0b,_0x2bbde5){_0x1fec0b=_0x1fec0b-0x0;let _0x1e1709=a238_0x2bbd[_0x1fec0b];return _0x1e1709;};const _0x5510d9=a238_0x1e17;'use strict';const _=require(_0x5510d9('0x23')),qs=require(_0x5510d9('0x19')),logger=require(_0x5510d9('0xc'))(_0x5510d9('0x10')),db=require(_0x5510d9('0x1b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2c2a81,_0x1ca3e0){return _0x1ca3e0=_0x1ca3e0||0xc8,function(_0x2497db){const _0x4a75de=a238_0x1e17;if(_0x2497db)return _0x2c2a81['status'](_0x1ca3e0)[_0x4a75de('0x12')](_0x2497db);};}function respondWithFilteredResult(_0x19915b,_0x376528){return function(_0xf8921a){const _0x3d29f8=a238_0x1e17;if(_0xf8921a){const _0x2ce7ec=_0xf8921a[_0x3d29f8('0xd')],_0x24f7f3=_0x376528[_0x3d29f8('0x3')];let _0x465db8=_0x376528['offset']+_0x376528['limit'],_0x42f38c;return _0x465db8>=_0x2ce7ec?(_0x465db8=_0x2ce7ec,_0x42f38c=0xc8):_0x42f38c=0xce,_0x19915b[_0x3d29f8('0x18')](_0x42f38c),_0x19915b['set'](_0x3d29f8('0x1c'),_0x24f7f3+'-'+_0x465db8+'/'+_0x2ce7ec)[_0x3d29f8('0x12')](_0xf8921a);}return null;};}function saveUpdates(_0x3b7d5a){return function(_0x3ef488){const _0x119583=a238_0x1e17;if(_0x3ef488)return _0x3ef488[_0x119583('0x7')](_0x3b7d5a)[_0x119583('0xb')](function(_0x2c1020){return _0x2c1020;});return null;};}function removeEntity(_0x2ab125){return function(_0x415825){const _0x27b98c=a238_0x1e17;if(_0x415825)return _0x415825[_0x27b98c('0x1e')]()[_0x27b98c('0xb')](function(){const _0x1a60ab=_0x27b98c;_0x2ab125[_0x1a60ab('0x18')](0xcc)[_0x1a60ab('0x16')]();});};}function handleEntityNotFound(_0x1c8e5f){return function(_0x4a7fd2){const _0x5221b5=a238_0x1e17;return!_0x4a7fd2&&_0x1c8e5f[_0x5221b5('0x29')](0x194),_0x4a7fd2;};}function handleError(_0x487407,_0x530e43){return _0x530e43=_0x530e43||0x1f4,function(_0x294b81){const _0x3f9ddb=a238_0x1e17;logger['error'](_0x294b81['stack']),_0x294b81['name']&&delete _0x294b81['name'],_0x487407[_0x3f9ddb('0x18')](_0x530e43)[_0x3f9ddb('0x17')](_0x294b81);};}exports['index']=function(_0x33573e,_0x465333){const _0x137c49=_0x5510d9;let _0x3ab57c={};const _0x48d175={},_0x114e19={'count':0x0,'rows':[]},_0x3338de=_['map'](db[_0x137c49('0x2f')][_0x137c49('0x9')],function(_0x12225b){const _0x1e14bc=_0x137c49;return{'name':_0x12225b[_0x1e14bc('0x6')],'type':_0x12225b[_0x1e14bc('0x2b')][_0x1e14bc('0x21')]};});_0x48d175[_0x137c49('0x1d')]=_['map'](_0x3338de,'name'),_0x48d175['query']=_['keys'](_0x33573e[_0x137c49('0x30')]),_0x48d175[_0x137c49('0xe')]=_[_0x137c49('0x4')](_0x48d175[_0x137c49('0x1d')],_0x48d175[_0x137c49('0x30')]),_0x3ab57c[_0x137c49('0x0')]=_[_0x137c49('0x4')](_0x48d175['model'],qs['fields'](_0x33573e[_0x137c49('0x30')][_0x137c49('0x25')])),_0x3ab57c['attributes']=_0x3ab57c[_0x137c49('0x0')][_0x137c49('0x5')]?_0x3ab57c[_0x137c49('0x0')]:_0x48d175['model'];typeof _0x33573e[_0x137c49('0x30')]['nolimit']===_0x137c49('0x13')&&(_0x3ab57c[_0x137c49('0x20')]=qs['limit'](_0x33573e['query'][_0x137c49('0x20')]),_0x3ab57c[_0x137c49('0x3')]=qs[_0x137c49('0x3')](_0x33573e[_0x137c49('0x30')][_0x137c49('0x3')]));_0x3ab57c[_0x137c49('0x2')]=qs[_0x137c49('0x14')](_0x33573e[_0x137c49('0x30')][_0x137c49('0x14')]),_0x3ab57c[_0x137c49('0x8')]=qs[_0x137c49('0xe')](_[_0x137c49('0x2e')](_0x33573e[_0x137c49('0x30')],_0x48d175[_0x137c49('0xe')]),_0x3338de);_0x33573e[_0x137c49('0x30')]['filter']&&(_0x3ab57c[_0x137c49('0x8')]=_[_0x137c49('0x24')](_0x3ab57c[_0x137c49('0x8')],{[Op['or']]:_[_0x137c49('0xf')](_0x3338de,function(_0x516ce4){const _0x2b5e8f=_0x137c49;if(_0x516ce4['type']!==_0x2b5e8f('0x27')){const _0x52512e={};return _0x52512e[_0x516ce4[_0x2b5e8f('0x2d')]]={[Op[_0x2b5e8f('0x1')]]:'%'+_0x33573e[_0x2b5e8f('0x30')][_0x2b5e8f('0x26')]+'%'},_0x52512e;}})}));_0x3ab57c=_[_0x137c49('0x24')]({},_0x3ab57c,_0x33573e['options']);const _0x1f2908={'where':_0x3ab57c[_0x137c49('0x8')]};return db['DeskField'][_0x137c49('0xd')](_0x1f2908)[_0x137c49('0xb')](function(_0x194195){const _0x124b59=_0x137c49;return _0x114e19[_0x124b59('0xd')]=_0x194195,_0x33573e[_0x124b59('0x30')][_0x124b59('0x1a')]&&(_0x3ab57c['include']=[{'all':!![]}]),db[_0x124b59('0x2f')][_0x124b59('0x15')](_0x3ab57c);})[_0x137c49('0xb')](function(_0x3a3eeb){return _0x114e19['rows']=_0x3a3eeb,_0x114e19;})[_0x137c49('0xb')](respondWithFilteredResult(_0x465333,_0x3ab57c))[_0x137c49('0x2c')](handleError(_0x465333,null));},exports['show']=function(_0x160c79,_0xba9a32){const _0x382e02=_0x5510d9;let _0x46cc80={'raw':!![],'where':{'id':_0x160c79[_0x382e02('0x11')]['id']}};const _0x1464e0={};return _0x1464e0[_0x382e02('0x1d')]=_[_0x382e02('0xa')](db[_0x382e02('0x2f')]['rawAttributes']),_0x1464e0[_0x382e02('0x30')]=_[_0x382e02('0xa')](_0x160c79[_0x382e02('0x30')]),_0x1464e0[_0x382e02('0xe')]=_[_0x382e02('0x4')](_0x1464e0['model'],_0x1464e0[_0x382e02('0x30')]),_0x46cc80['attributes']=_[_0x382e02('0x4')](_0x1464e0[_0x382e02('0x1d')],qs['fields'](_0x160c79[_0x382e02('0x30')]['fields'])),_0x46cc80[_0x382e02('0x0')]=_0x46cc80[_0x382e02('0x0')][_0x382e02('0x5')]?_0x46cc80['attributes']:_0x1464e0[_0x382e02('0x1d')],_0x160c79[_0x382e02('0x30')][_0x382e02('0x1a')]&&(_0x46cc80[_0x382e02('0x28')]=[{'all':!![]}]),_0x46cc80=_[_0x382e02('0x24')]({},_0x46cc80,_0x160c79['options']),db['DeskField']['findOne'](_0x46cc80)[_0x382e02('0xb')](handleEntityNotFound(_0xba9a32,null))['then'](respondWithResult(_0xba9a32,null))[_0x382e02('0x2c')](handleError(_0xba9a32,null));},exports[_0x5510d9('0x22')]=function(_0x5a45fe,_0x65f1c0){const _0x1455e7=_0x5510d9;return db['DeskField']['create'](_0x5a45fe[_0x1455e7('0x1f')],{})[_0x1455e7('0xb')](respondWithResult(_0x65f1c0,0xc9))[_0x1455e7('0x2c')](handleError(_0x65f1c0,null));},exports[_0x5510d9('0x7')]=function(_0x530f92,_0x208a26){const _0x29b31c=_0x5510d9;return _0x530f92[_0x29b31c('0x1f')]['id']&&delete _0x530f92['body']['id'],db[_0x29b31c('0x2f')][_0x29b31c('0x2a')]({'where':{'id':_0x530f92['params']['id']}})[_0x29b31c('0xb')](handleEntityNotFound(_0x208a26,null))[_0x29b31c('0xb')](saveUpdates(_0x530f92[_0x29b31c('0x1f')],null))[_0x29b31c('0xb')](respondWithResult(_0x208a26,null))[_0x29b31c('0x2c')](handleError(_0x208a26,null));},exports[_0x5510d9('0x1e')]=function(_0x46a3bd,_0x3e32e7){const _0x485423=_0x5510d9;return db[_0x485423('0x2f')][_0x485423('0x2a')]({'where':{'id':_0x46a3bd[_0x485423('0x11')]['id']}})['then'](handleEntityNotFound(_0x3e32e7,null))['then'](removeEntity(_0x3e32e7,null))[_0x485423('0x2c')](handleError(_0x3e32e7,null));}; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.model.js b/server/api/intDeskField/intDeskField.model.js index 918969a..9c4182a 100644 --- a/server/api/intDeskField/intDeskField.model.js +++ b/server/api/intDeskField/intDeskField.model.js @@ -1 +1 @@ -const a239_0x3cd0=['define','int_desk_fields','DeskField','idField','FieldId','exports'];(function(_0x4831d1,_0x3cd0b8){const _0x357403=function(_0x49b0d0){while(--_0x49b0d0){_0x4831d1['push'](_0x4831d1['shift']());}};_0x357403(++_0x3cd0b8);}(a239_0x3cd0,0x1a3));const a239_0x3574=function(_0x4831d1,_0x3cd0b8){_0x4831d1=_0x4831d1-0x0;let _0x357403=a239_0x3cd0[_0x4831d1];return _0x357403;};const _0x4f771b=a239_0x3574;'use strict';const attributes=require('./intDeskField.attributes');module[_0x4f771b('0x0')]=function(_0x49b0d0){const _0x287a40=_0x4f771b,_0x4ffa1c=_0x49b0d0[_0x287a40('0x1')](_0x287a40('0x3'),attributes,{'tableName':_0x287a40('0x2'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x287a40('0x4'),_0x287a40('0x5')],'unique':!![]}],'timestamps':!![]});return _0x4ffa1c;}; \ No newline at end of file +const a239_0x5a7b=['int_desk_fields','DeskField','FieldId','idField'];(function(_0x8f3f18,_0x5a7b01){const _0x47de5e=function(_0x3b070d){while(--_0x3b070d){_0x8f3f18['push'](_0x8f3f18['shift']());}};_0x47de5e(++_0x5a7b01);}(a239_0x5a7b,0xba));const a239_0x47de=function(_0x8f3f18,_0x5a7b01){_0x8f3f18=_0x8f3f18-0x0;let _0x47de5e=a239_0x5a7b[_0x8f3f18];return _0x47de5e;};'use strict';const attributes=require('./intDeskField.attributes');module['exports']=function(_0x3b070d){const _0x512217=a239_0x47de,_0x21ff78=_0x3b070d['define'](_0x512217('0x3'),attributes,{'tableName':_0x512217('0x2'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x512217('0x1'),_0x512217('0x0')],'unique':!![]}],'timestamps':!![]});return _0x21ff78;}; \ No newline at end of file diff --git a/server/api/intDynamics365Account/index.js b/server/api/intDynamics365Account/index.js index dbfb83d..bdf98da 100644 --- a/server/api/intDynamics365Account/index.js +++ b/server/api/intDynamics365Account/index.js @@ -1 +1 @@ -const a240_0x1d75=['exports','get','isAuthenticated','/:id/configurations','update','delete','destroy','post','getFields','/:id','put','Router','./intDynamics365Account.controller','show','/:id/fields','../../components/auth/service'];(function(_0x1afc17,_0x1d7537){const _0x3a91f9=function(_0x560c7f){while(--_0x560c7f){_0x1afc17['push'](_0x1afc17['shift']());}};_0x3a91f9(++_0x1d7537);}(a240_0x1d75,0x152));const a240_0x3a91=function(_0x1afc17,_0x1d7537){_0x1afc17=_0x1afc17-0x0;let _0x3a91f9=a240_0x1d75[_0x1afc17];return _0x3a91f9;};const _0x69ce70=a240_0x3a91;'use strict';const express=require('express'),router=express[_0x69ce70('0x9')](),auth=require(_0x69ce70('0xd')),controller=require(_0x69ce70('0xa'));router[_0x69ce70('0xf')]('/',auth[_0x69ce70('0x0')](),controller['index']),router[_0x69ce70('0xf')](_0x69ce70('0x7'),auth[_0x69ce70('0x0')](),controller[_0x69ce70('0xb')]),router[_0x69ce70('0xf')](_0x69ce70('0x1'),auth[_0x69ce70('0x0')](),controller['getConfigurations']),router[_0x69ce70('0xf')](_0x69ce70('0xc'),auth[_0x69ce70('0x0')](),controller[_0x69ce70('0x6')]),router[_0x69ce70('0x5')]('/',auth['isAuthenticated'](),controller['create']),router[_0x69ce70('0x5')](_0x69ce70('0x1'),auth['isAuthenticated'](),controller['addConfiguration']),router[_0x69ce70('0x8')](_0x69ce70('0x7'),auth['isAuthenticated'](),controller[_0x69ce70('0x2')]),router[_0x69ce70('0x3')](_0x69ce70('0x7'),auth[_0x69ce70('0x0')](),controller[_0x69ce70('0x4')]),module[_0x69ce70('0xe')]=router; \ No newline at end of file +const a240_0x8b06=['/:id','./intDynamics365Account.controller','isAuthenticated','addConfiguration','create','get','../../components/auth/service','Router','destroy','express','getConfigurations','delete','getFields','/:id/fields','put','update','post','/:id/configurations','index'];(function(_0x43df2a,_0x8b0631){const _0x549cf5=function(_0x13b6fe){while(--_0x13b6fe){_0x43df2a['push'](_0x43df2a['shift']());}};_0x549cf5(++_0x8b0631);}(a240_0x8b06,0xca));const a240_0x549c=function(_0x43df2a,_0x8b0631){_0x43df2a=_0x43df2a-0x0;let _0x549cf5=a240_0x8b06[_0x43df2a];return _0x549cf5;};const _0x1f3924=a240_0x549c;'use strict';const express=require(_0x1f3924('0x10')),router=express[_0x1f3924('0xe')](),auth=require(_0x1f3924('0xd')),controller=require(_0x1f3924('0x8'));router[_0x1f3924('0xc')]('/',auth[_0x1f3924('0x9')](),controller[_0x1f3924('0x6')]),router[_0x1f3924('0xc')](_0x1f3924('0x7'),auth[_0x1f3924('0x9')](),controller['show']),router[_0x1f3924('0xc')]('/:id/configurations',auth[_0x1f3924('0x9')](),controller[_0x1f3924('0x11')]),router[_0x1f3924('0xc')](_0x1f3924('0x1'),auth[_0x1f3924('0x9')](),controller[_0x1f3924('0x0')]),router[_0x1f3924('0x4')]('/',auth[_0x1f3924('0x9')](),controller[_0x1f3924('0xb')]),router[_0x1f3924('0x4')](_0x1f3924('0x5'),auth[_0x1f3924('0x9')](),controller[_0x1f3924('0xa')]),router[_0x1f3924('0x2')](_0x1f3924('0x7'),auth[_0x1f3924('0x9')](),controller[_0x1f3924('0x3')]),router[_0x1f3924('0x12')]('/:id',auth[_0x1f3924('0x9')](),controller[_0x1f3924('0xf')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.attributes.js b/server/api/intDynamics365Account/intDynamics365Account.attributes.js index 1e76673..fa53d77 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.attributes.js +++ b/server/api/intDynamics365Account/intDynamics365Account.attributes.js @@ -1 +1 @@ -const a241_0x2799=['exports','sequelize','STRING'];(function(_0xcfa644,_0x27991c){const _0x1142e6=function(_0x1d9a46){while(--_0x1d9a46){_0xcfa644['push'](_0xcfa644['shift']());}};_0x1142e6(++_0x27991c);}(a241_0x2799,0x9e));const a241_0x1142=function(_0xcfa644,_0x27991c){_0xcfa644=_0xcfa644-0x0;let _0x1142e6=a241_0x2799[_0xcfa644];return _0x1142e6;};const _0x5a6821=a241_0x1142;'use strict';const Sequelize=require(_0x5a6821('0x2'));module[_0x5a6821('0x1')]={'name':{'type':Sequelize[_0x5a6821('0x0')]},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x5a6821('0x0')]},'remoteUri':{'type':Sequelize[_0x5a6821('0x0')]},'tenantId':{'type':Sequelize[_0x5a6821('0x0')]},'clientId':{'type':Sequelize[_0x5a6821('0x0')]},'clientSecret':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize[_0x5a6821('0x0')]},'description':{'type':Sequelize[_0x5a6821('0x0')]}}; \ No newline at end of file +const a241_0xd04b=['sequelize','STRING','exports'];(function(_0x4f4dd2,_0xd04b9){const _0x59eb6a=function(_0x377a6f){while(--_0x377a6f){_0x4f4dd2['push'](_0x4f4dd2['shift']());}};_0x59eb6a(++_0xd04b9);}(a241_0xd04b,0x8c));const a241_0x59eb=function(_0x4f4dd2,_0xd04b9){_0x4f4dd2=_0x4f4dd2-0x0;let _0x59eb6a=a241_0xd04b[_0x4f4dd2];return _0x59eb6a;};const _0x56dda3=a241_0x59eb;'use strict';const Sequelize=require(_0x56dda3('0x1'));module[_0x56dda3('0x0')]={'name':{'type':Sequelize[_0x56dda3('0x2')]},'username':{'type':Sequelize[_0x56dda3('0x2')]},'password':{'type':Sequelize[_0x56dda3('0x2')]},'remoteUri':{'type':Sequelize['STRING']},'tenantId':{'type':Sequelize['STRING']},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize[_0x56dda3('0x2')]},'serverUrl':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x56dda3('0x2')]}}; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.controller.js b/server/api/intDynamics365Account/intDynamics365Account.controller.js index a92096d..5096a9c 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.controller.js +++ b/server/api/intDynamics365Account/intDynamics365Account.controller.js @@ -1 +1 @@ -const a242_0x27a9=['type','include','ownerid','count',')?$select=LogicalName&$expand=Attributes($select=LogicalName)','resolvebykpiidname','customeridyominame','accountidyominame','Dynamics365Field','AccountId','intersection','actualserviceunits','offset','firstresponsebykpiidname','true','4.0','phonecall_activity_parties','Attributes','params','nolimit','password','fieldName','MetadataId','followupby','isNil','addConfiguration','importsequencenumber','like','emailaddress','findOne','StateAttributeMetadata','attributes','createdbyexternalpartyname','create','sort','createdbyexternalpartyyominame','tenantId','overriddencreatedon','../../components/parsers/qs','username','BooleanAttributeMetadata','GET','productserialnumber','numberofchildincidents','remoteUri','slice','undefined','modifiedbyexternalpartyname','slaname','Descriptions','api','order','json','traversedpath','Options','limit','msdyn_iotalertname','%s/api/data/v9.0/','concat','sequelize','error','UserLocalizedLabel','lastIndexOf','getSubjects','owneridyominame','$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','body','phonenumber','../../components/integrations/configuration','status','LogicalName','Subjects','createdon','destroy','clientId','filter','keys','modifiedonbehalfbyname','show','incident','POST','timezoneruleversionnumber','DoubleAttributeMetadata','model','masteridname','substring','directioncode','escalatedon','FalseOption','Dynamics365Configuration','Content-Range','getConfigurations','Dynamics365Account','false','length','stack','then','TrueOption','Wrong\x20credentials','where','update','DisplayName','PhoneCall','pick','lastonholdtime','customerid','options',')/Microsoft.Dynamics.CRM.','contactidyominame','ticketnumber','title','BigIntAttributeMetadata','onholdtime',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','../../config/logger','statecode','contactidname','sendStatus','all','EntityDefinitions(','kbarticleidname','createdonbehalfbyname','OptionSet','StringAttributeMetadata','util','transactioncurrencyidname','influencescore','IntegerAttributeMetadata','Incident','Label','push','filters','statusCode','caseorigincode',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','Bearer\x20','test','rawAttributes','fields','format','access_token','map','EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27','PicklistAttributeMetadata','modifiedonbehalfbyyominame','modifiedon','MemoAttributeMetadata','?$select=DisplayName,LogicalName','primarycontactidyominame','sentimentvalue','channel','StatusAttributeMetadata','../../mysqldb','end','msdyn_incidenttypename','EntityNameAttributeMetadata','description','@odata.type','socialprofileidname','send','statuscode',')/Attributes(','value','name','merge','versionnumber','lodash','exchangerate','clientSecret','entityimage_url','primarycontactidname','subjectidname','forEach','query','catch','includes','set'];(function(_0x2fa760,_0x27a98b){const _0x2d64c0=function(_0x4f43ec){while(--_0x4f43ec){_0x2fa760['push'](_0x2fa760['shift']());}};_0x2d64c0(++_0x27a98b);}(a242_0x27a9,0x152));const a242_0x2d64=function(_0x2fa760,_0x27a98b){_0x2fa760=_0x2fa760-0x0;let _0x2d64c0=a242_0x27a9[_0x2fa760];return _0x2d64c0;};const _0x25feb4=a242_0x2d64;'use strict';const rp=require('request-promise-native'),util=require(_0x25feb4('0x8c')),_=require(_0x25feb4('0x5')),qs=require(_0x25feb4('0x36')),logger=require(_0x25feb4('0x82'))(_0x25feb4('0x42')),db=require(_0x25feb4('0xa8'))['db'],{Op}=require(_0x25feb4('0x4b')),integrations=require(_0x25feb4('0x54'));function respondWithResult(_0x4f43ec,_0x59e75a){return _0x59e75a=_0x59e75a||0xc8,function(_0x3bfda2){const _0x454695=a242_0x2d64;if(_0x3bfda2)return _0x4f43ec[_0x454695('0x55')](_0x59e75a)['json'](_0x3bfda2);};}function respondWithFilteredResult(_0x1ef9e9,_0x3391a8){return function(_0x3550ef){const _0x4f4b6c=a242_0x2d64;if(_0x3550ef){const _0x5dfa03=_0x3550ef[_0x4f4b6c('0x13')],_0x25872c=_0x3391a8[_0x4f4b6c('0x1c')];let _0x32a4d1=_0x3391a8[_0x4f4b6c('0x1c')]+_0x3391a8['limit'],_0x30956d;return _0x32a4d1>=_0x5dfa03?(_0x32a4d1=_0x5dfa03,_0x30956d=0xc8):_0x30956d=0xce,_0x1ef9e9[_0x4f4b6c('0x55')](_0x30956d),_0x1ef9e9[_0x4f4b6c('0xf')](_0x4f4b6c('0x6a'),_0x25872c+'-'+_0x32a4d1+'/'+_0x5dfa03)[_0x4f4b6c('0x44')](_0x3550ef);}return null;};}function saveUpdates(_0x5a5143){return function(_0x55269e){const _0x1a66d4=a242_0x2d64;if(_0x55269e)return _0x55269e[_0x1a66d4('0x74')](_0x5a5143)[_0x1a66d4('0x70')](function(_0xde9f79){return _0xde9f79;});return null;};}function removeEntity(_0x445435){return function(_0xd5dad9){const _0x4378a3=a242_0x2d64;if(_0xd5dad9)return _0xd5dad9[_0x4378a3('0x59')]()[_0x4378a3('0x70')](function(){const _0x12c140=_0x4378a3;_0x445435[_0x12c140('0x55')](0xcc)[_0x12c140('0xa9')]();});};}function handleEntityNotFound(_0x4b6c33){return function(_0x4ce9fd){const _0x4d66cc=a242_0x2d64;return!_0x4ce9fd&&_0x4b6c33[_0x4d66cc('0x85')](0x194),_0x4ce9fd;};}function handleError(_0x4f50bf,_0x2fe763){return _0x2fe763=_0x2fe763||0x1f4,function(_0x496129){const _0x376646=a242_0x2d64;logger[_0x376646('0x4c')](_0x496129[_0x376646('0x6f')]),_0x496129[_0x376646('0x2')]&&delete _0x496129[_0x376646('0x2')],_0x4f50bf[_0x376646('0x55')](_0x2fe763)['send'](_0x496129);};}exports['index']=function(_0x19f100,_0x5b2d93){const _0x241c77=_0x25feb4;let _0x36c6bc={};const _0x9e40d1={},_0x46d776={'count':0x0,'rows':[]},_0x11a961=_['map'](db[_0x241c77('0x6c')][_0x241c77('0x99')],function(_0xe0fa6a){const _0x310edb=_0x241c77;return{'name':_0xe0fa6a[_0x310edb('0x25')],'type':_0xe0fa6a[_0x310edb('0x10')]['key']};});_0x9e40d1[_0x241c77('0x63')]=_[_0x241c77('0x9d')](_0x11a961,'name'),_0x9e40d1[_0x241c77('0xc')]=_[_0x241c77('0x5c')](_0x19f100['query']),_0x9e40d1[_0x241c77('0x93')]=_[_0x241c77('0x1a')](_0x9e40d1[_0x241c77('0x63')],_0x9e40d1[_0x241c77('0xc')]),_0x36c6bc[_0x241c77('0x2f')]=_['intersection'](_0x9e40d1[_0x241c77('0x63')],qs[_0x241c77('0x9a')](_0x19f100['query'][_0x241c77('0x9a')])),_0x36c6bc[_0x241c77('0x2f')]=_0x36c6bc['attributes'][_0x241c77('0x6e')]?_0x36c6bc[_0x241c77('0x2f')]:_0x9e40d1[_0x241c77('0x63')];typeof _0x19f100['query']['nolimit']===_0x241c77('0x3e')&&(_0x36c6bc['limit']=qs[_0x241c77('0x47')](_0x19f100['query'][_0x241c77('0x47')]),_0x36c6bc[_0x241c77('0x1c')]=qs[_0x241c77('0x1c')](_0x19f100['query'][_0x241c77('0x1c')]));_0x36c6bc[_0x241c77('0x43')]=qs[_0x241c77('0x32')](_0x19f100[_0x241c77('0xc')][_0x241c77('0x32')]),_0x36c6bc[_0x241c77('0x73')]=qs[_0x241c77('0x93')](_[_0x241c77('0x77')](_0x19f100['query'],_0x9e40d1[_0x241c77('0x93')]),_0x11a961);_0x19f100[_0x241c77('0xc')][_0x241c77('0x5b')]&&(_0x36c6bc['where']=_['merge'](_0x36c6bc[_0x241c77('0x73')],{[Op['or']]:_['map'](_0x11a961,function(_0x4d53bd){const _0x2000ba=_0x241c77;if(_0x4d53bd[_0x2000ba('0x10')]!=='VIRTUAL'){const _0x481251={};return _0x481251[_0x4d53bd[_0x2000ba('0x2')]]={[Op['like']]:'%'+_0x19f100[_0x2000ba('0xc')][_0x2000ba('0x5b')]+'%'},_0x481251;}})}));_0x36c6bc=_[_0x241c77('0x3')]({},_0x36c6bc,_0x19f100[_0x241c77('0x7a')]);const _0x11bc7f={'where':_0x36c6bc[_0x241c77('0x73')]};return db[_0x241c77('0x6c')]['count'](_0x11bc7f)['then'](function(_0x1b783b){const _0x556991=_0x241c77;return _0x46d776['count']=_0x1b783b,_0x19f100['query']['includeAll']&&(_0x36c6bc[_0x556991('0x11')]=[{'all':!![]}]),db[_0x556991('0x6c')]['findAll'](_0x36c6bc);})[_0x241c77('0x70')](function(_0x544e0c){return _0x46d776['rows']=_0x544e0c,_0x46d776;})[_0x241c77('0x70')](respondWithFilteredResult(_0x5b2d93,_0x36c6bc))[_0x241c77('0xd')](handleError(_0x5b2d93,null));},exports[_0x25feb4('0x5e')]=function(_0xa0025d,_0x4fc2e9){const _0x358709=_0x25feb4;let _0x5ee03d={'raw':![],'where':{'id':_0xa0025d[_0x358709('0x22')]['id']}};const _0xa08d1={};return _0xa08d1[_0x358709('0x63')]=_[_0x358709('0x5c')](db[_0x358709('0x6c')][_0x358709('0x99')]),_0xa08d1['query']=_[_0x358709('0x5c')](_0xa0025d[_0x358709('0xc')]),_0xa08d1[_0x358709('0x93')]=_[_0x358709('0x1a')](_0xa08d1[_0x358709('0x63')],_0xa08d1[_0x358709('0xc')]),_0x5ee03d[_0x358709('0x2f')]=_[_0x358709('0x1a')](_0xa08d1[_0x358709('0x63')],qs[_0x358709('0x9a')](_0xa0025d[_0x358709('0xc')]['fields'])),_0x5ee03d['attributes']=_0x5ee03d[_0x358709('0x2f')][_0x358709('0x6e')]?_0x5ee03d[_0x358709('0x2f')]:_0xa08d1[_0x358709('0x63')],_0xa0025d[_0x358709('0xc')]['includeAll']&&(_0x5ee03d[_0x358709('0x11')]=[{'all':!![]}]),_0x5ee03d=_['merge']({},_0x5ee03d,_0xa0025d[_0x358709('0x7a')]),db['Dynamics365Account']['findOne'](_0x5ee03d)[_0x358709('0x70')](handleEntityNotFound(_0x4fc2e9,null))[_0x358709('0x70')](respondWithResult(_0x4fc2e9,null))[_0x358709('0xd')](handleError(_0x4fc2e9,null));},exports[_0x25feb4('0x31')]=function(_0x2f3d16,_0x1566a5){const _0xde77e5=_0x25feb4;return db[_0xde77e5('0x6c')]['create'](_0x2f3d16[_0xde77e5('0x52')],{})[_0xde77e5('0x70')](respondWithResult(_0x1566a5,0xc9))[_0xde77e5('0xd')](handleError(_0x1566a5,null));},exports[_0x25feb4('0x74')]=function(_0x1402ce,_0x3b59db){const _0x28d026=_0x25feb4;return _0x1402ce[_0x28d026('0x52')]['id']&&delete _0x1402ce[_0x28d026('0x52')]['id'],db[_0x28d026('0x6c')]['findOne']({'where':{'id':_0x1402ce[_0x28d026('0x22')]['id']}})[_0x28d026('0x70')](handleEntityNotFound(_0x3b59db,null))[_0x28d026('0x70')](saveUpdates(_0x1402ce['body'],null))[_0x28d026('0x70')](respondWithResult(_0x3b59db,null))[_0x28d026('0xd')](handleError(_0x3b59db,null));},exports[_0x25feb4('0x59')]=function(_0x3baafd,_0x3879d7){const _0x816e1=_0x25feb4;return db[_0x816e1('0x6c')][_0x816e1('0x2d')]({'where':{'id':_0x3baafd[_0x816e1('0x22')]['id']}})[_0x816e1('0x70')](handleEntityNotFound(_0x3879d7,null))[_0x816e1('0x70')](removeEntity(_0x3879d7,null))['catch'](handleError(_0x3879d7,null));},exports['getConfigurations']=function(_0x17fe94,_0x49b99c){const _0x13ee62=_0x25feb4;let _0x4f6be4={};const _0x29a4a0={};let _0x159c50,_0xcc5350;return db[_0x13ee62('0x6c')][_0x13ee62('0x2d')]({'where':{'id':_0x17fe94[_0x13ee62('0x22')]['id']}})[_0x13ee62('0x70')](handleEntityNotFound(_0x49b99c,null))[_0x13ee62('0x70')](function(_0x153d26){const _0xb326ab=_0x13ee62;if(_0x153d26)return _0x159c50=_0x153d26,_0x29a4a0[_0xb326ab('0x63')]=_['keys'](db[_0xb326ab('0x69')][_0xb326ab('0x99')]),_0x29a4a0[_0xb326ab('0xc')]=_[_0xb326ab('0x5c')](_0x17fe94['query']),_0x29a4a0[_0xb326ab('0x93')]=_[_0xb326ab('0x1a')](_0x29a4a0[_0xb326ab('0x63')],_0x29a4a0[_0xb326ab('0xc')]),_0x4f6be4[_0xb326ab('0x2f')]=_['intersection'](_0x29a4a0['model'],qs[_0xb326ab('0x9a')](_0x17fe94['query'][_0xb326ab('0x9a')])),_0x4f6be4[_0xb326ab('0x2f')]=_0x4f6be4[_0xb326ab('0x2f')]['length']?_0x4f6be4[_0xb326ab('0x2f')]:_0x29a4a0[_0xb326ab('0x63')],_0x4f6be4['order']=qs[_0xb326ab('0x32')](_0x17fe94[_0xb326ab('0xc')]['sort']),_0x4f6be4[_0xb326ab('0x73')]=qs[_0xb326ab('0x93')](_[_0xb326ab('0x77')](_0x17fe94[_0xb326ab('0xc')],_0x29a4a0[_0xb326ab('0x93')])),_0x17fe94['query'][_0xb326ab('0x5b')]&&(_0x4f6be4[_0xb326ab('0x73')]=_[_0xb326ab('0x3')](_0x4f6be4[_0xb326ab('0x73')],{[Op['or']]:_['map'](_0x4f6be4[_0xb326ab('0x2f')],function(_0x1d43d2){const _0x3c7b60=_0xb326ab,_0x3d80cd={};return _0x3d80cd[_0x1d43d2]={[Op[_0x3c7b60('0x2b')]]:'%'+_0x17fe94['query'][_0x3c7b60('0x5b')]+'%'},_0x3d80cd;})})),_0x4f6be4=_[_0xb326ab('0x3')]({},_0x4f6be4,_0x17fe94[_0xb326ab('0x7a')]),_0x159c50[_0xb326ab('0x6b')](_0x4f6be4);})[_0x13ee62('0x70')](function(_0x9ed108){const _0x4f8f7b=_0x13ee62;if(_0x9ed108)return _0xcc5350=_0x9ed108[_0x4f8f7b('0x6e')],typeof _0x17fe94[_0x4f8f7b('0xc')][_0x4f8f7b('0x23')]==='undefined'&&(_0x4f6be4[_0x4f8f7b('0x47')]=qs['limit'](_0x17fe94[_0x4f8f7b('0xc')][_0x4f8f7b('0x47')]),_0x4f6be4['offset']=qs['offset'](_0x17fe94[_0x4f8f7b('0xc')][_0x4f8f7b('0x1c')])),_0x159c50['getConfigurations'](_0x4f6be4);})[_0x13ee62('0x70')](function(_0x2a8001){if(_0x2a8001)return _0x2a8001?{'count':_0xcc5350,'rows':_0x2a8001}:null;})['then'](respondWithResult(_0x49b99c,null))['catch'](handleError(_0x49b99c,null));},exports[_0x25feb4('0x29')]=function(_0xd9970b,_0x37ce2f){const _0x198ae0=_0x25feb4;return _0xd9970b[_0x198ae0('0x52')]['id']&&delete _0xd9970b['body']['id'],db[_0x198ae0('0x6c')][_0x198ae0('0x2d')]({'where':{'id':_0xd9970b[_0x198ae0('0x22')]['id']}})[_0x198ae0('0x70')](handleEntityNotFound(_0x37ce2f,null))[_0x198ae0('0x70')](function(_0x3980d0){const _0x1b88d9=_0x198ae0;if(_0x3980d0)return _0xd9970b['body'][_0x1b88d9('0x19')]=_0x3980d0['id'],_0xd9970b[_0x1b88d9('0x52')][_0x1b88d9('0x57')]=integrations[_0x1b88d9('0x4f')](_0xd9970b[_0x1b88d9('0x52')][_0x1b88d9('0xa6')],_0xd9970b['body'][_0x1b88d9('0x10')]),_0xd9970b[_0x1b88d9('0x52')][_0x1b88d9('0x41')]=integrations['getDescriptions'](_0xd9970b[_0x1b88d9('0x52')]['channel'],_0xd9970b[_0x1b88d9('0x52')][_0x1b88d9('0x10')]),db[_0x1b88d9('0x69')][_0x1b88d9('0x31')](_0xd9970b[_0x1b88d9('0x52')],{'include':[{'model':db[_0x1b88d9('0x18')],'as':_0x1b88d9('0x57')},{'model':db[_0x1b88d9('0x18')],'as':'Descriptions'}]});return null;})[_0x198ae0('0x70')](respondWithResult(_0x37ce2f,null))['catch'](handleError(_0x37ce2f,null));},exports['getFields']=function(_0xfbd538,_0x10e729){const _0x3c2ffa=_0x25feb4,_0x40968b=_0xfbd538[_0x3c2ffa('0xc')]['ticketType'],_0x7fde3=_0x40968b===_0x3c2ffa('0x5f')?_0x3c2ffa('0x90'):_0x3c2ffa('0x76');let _0x5f2ee8='',_0x79ef9='',_0x13ae24='',_0x36f8e5='',_0xd5da6d='',_0x144f8f='',_0x4e2171='',_0x5f4601='';const _0x5cb644=[_0x3c2ffa('0x7e'),_0x3c2ffa('0xac'),_0x3c2ffa('0x79'),_0x3c2ffa('0x12'),_0x3c2ffa('0x95'),'subject',_0x3c2ffa('0x53'),'regardingobjectid',_0x3c2ffa('0x66'),_0x3c2ffa('0x20')],_0x2e58ba=['accountidname',_0x3c2ffa('0x17'),_0x3c2ffa('0x1b'),'billedserviceunits',_0x3c2ffa('0x84'),_0x3c2ffa('0x7c'),'contractdetailidname','contractidname',_0x3c2ffa('0x30'),_0x3c2ffa('0x33'),'createdbyname','createdbyyominame',_0x3c2ffa('0x58'),_0x3c2ffa('0x89'),'createdonbehalfbyyominame','customeridname','customeridtype',_0x3c2ffa('0x16'),_0x3c2ffa('0x2c'),'entitlementidname','entityimage_timestamp',_0x3c2ffa('0x8'),_0x3c2ffa('0x67'),_0x3c2ffa('0x6'),_0x3c2ffa('0x1d'),_0x3c2ffa('0x27'),_0x3c2ffa('0x2a'),_0x3c2ffa('0x8e'),_0x3c2ffa('0x88'),_0x3c2ffa('0x78'),_0x3c2ffa('0x64'),_0x3c2ffa('0x3f'),'modifiedbyexternalpartyyominame','modifiedbyname','modifiedbyyominame',_0x3c2ffa('0xa1'),_0x3c2ffa('0x5d'),_0x3c2ffa('0xa0'),_0x3c2ffa('0xaa'),_0x3c2ffa('0x48'),_0x3c2ffa('0x3b'),_0x3c2ffa('0x80'),_0x3c2ffa('0x35'),'owneridname','owneridtype',_0x3c2ffa('0x50'),'parentcaseidname',_0x3c2ffa('0x9'),_0x3c2ffa('0xa4'),'prioritycodename','productidname',_0x3c2ffa('0x3a'),'resolveby',_0x3c2ffa('0x15'),'responseby','responsiblecontactidname','responsiblecontactidyominame',_0x3c2ffa('0xa5'),'slainvokedidname',_0x3c2ffa('0x40'),_0x3c2ffa('0xae'),_0x3c2ffa('0x83'),_0x3c2ffa('0xb0'),_0x3c2ffa('0xa'),_0x3c2ffa('0x7d'),_0x3c2ffa('0x61'),_0x3c2ffa('0x8d'),_0x3c2ffa('0x45'),'utcconversiontimezonecode',_0x3c2ffa('0x4')],_0x44610f=_0x5cb644['concat'](_0x2e58ba);return db[_0x3c2ffa('0x6c')][_0x3c2ffa('0x2d')]({'where':{'id':_0xfbd538[_0x3c2ffa('0x22')]['id']},'attributes':['id',_0x3c2ffa('0x37'),_0x3c2ffa('0x24'),'remoteUri',_0x3c2ffa('0x34'),_0x3c2ffa('0x5a'),'clientSecret']})[_0x3c2ffa('0x70')](handleEntityNotFound(_0x10e729,null))['then'](function(_0x31964e){const _0x14928a=_0x3c2ffa;if(_0x31964e){_0x5f4601=_0x31964e[_0x14928a('0x3c')];const _0x20c683=_0x5f4601[_0x14928a('0x3d')](-0x1);_0x20c683==='/'&&(_0x5f4601=_0x5f4601[_0x14928a('0x65')](0x0,_0x5f4601[_0x14928a('0x4e')](_0x20c683)));_0x4e2171=util[_0x14928a('0x9b')](_0x14928a('0x49'),_0x5f4601);const _0x5d926d={'method':_0x14928a('0x60'),'uri':'https://login.microsoftonline.com/'+_0x31964e['tenantId']+'/oauth2/token','form':{'client_id':_0x31964e[_0x14928a('0x5a')],'resource':_0x5f4601,'username':_0x31964e['username'],'password':_0x31964e[_0x14928a('0x24')],'grant_type':_0x14928a('0x24'),'client_secret':_0x31964e[_0x14928a('0x7')]},'json':!![]};return rp(_0x5d926d);}})[_0x3c2ffa('0x70')](function(_0x4c04a3){const _0x264f7c=_0x3c2ffa;_0x144f8f=_0x4c04a3[_0x264f7c('0x9c')];const _0x54949b={'method':'GET','uri':encodeURI(_0x4e2171+_0x264f7c('0x9e')+_0x7fde3+'\x27'),'headers':{'Authorization':_0x264f7c('0x97')+_0x144f8f,'If-None-Match':null,'OData-Version':_0x264f7c('0x1f')},'json':!![]};return rp(_0x54949b);})[_0x3c2ffa('0x70')](function(_0x27d15b){const _0xfbf45=_0x3c2ffa,_0x3c41fb=_0x27d15b[_0xfbf45('0x1')][0x0],_0x55bacc=_0x3c41fb[_0xfbf45('0x26')],_0x4a0a55={'method':_0xfbf45('0x39'),'uri':_0x4e2171+_0xfbf45('0x87')+_0x55bacc+_0xfbf45('0x14'),'headers':{'Authorization':'Bearer\x20'+_0x144f8f,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x4a0a55);})[_0x3c2ffa('0x70')](function(_0x5d6770){const _0xa08a32=_0x3c2ffa;_0x5f2ee8=_0x5d6770,_0x79ef9=_0x5f2ee8[_0xa08a32('0x21')],_0x79ef9=_['remove'](_0x79ef9,function(_0x379830){const _0x12468d=_0xa08a32;return!_0x44610f[_0x12468d('0xe')](_0x379830[_0x12468d('0x56')]);});const _0x8bfb37=[],_0x52d2d4=[];return _0x79ef9[_0xa08a32('0xb')](function(_0x55c1a6){const _0x59cd1d=_0xa08a32;if(_0x55c1a6['@odata.type']){const _0x333e7b=_0x55c1a6['@odata.type'][_0x59cd1d('0x65')](_0x55c1a6[_0x59cd1d('0xad')]['lastIndexOf']('.')+0x1);_0x333e7b===_0x59cd1d('0x9f')&&_0x8bfb37[_0x59cd1d('0x92')](getSelectList(_0x4e2171,_0x40968b,_0x52d2d4,_0x5f2ee8[_0x59cd1d('0x26')],_0x55c1a6['MetadataId'],_0x144f8f));}}),Promise[_0xa08a32('0x86')](_0x8bfb37);})[_0x3c2ffa('0x70')](function(_0x3a94fb){const _0x59ffc6=_0x3c2ffa;_0x13ae24=_0x3a94fb[0x0];const _0xdb7239=[],_0x53aa59=[];return _0x79ef9['forEach'](function(_0x4131f8){const _0x2393d2=a242_0x2d64;if(!_[_0x2393d2('0x28')](_0x4131f8['@odata.type'])){const _0x411340=_0x4131f8[_0x2393d2('0xad')][_0x2393d2('0x65')](_0x4131f8[_0x2393d2('0xad')][_0x2393d2('0x4e')]('.')+0x1);_0x411340===_0x2393d2('0x38')&&_0xdb7239[_0x2393d2('0x92')](getBooleanList(_0x4e2171,_0x40968b,_0x53aa59,_0x5f2ee8[_0x2393d2('0x26')],_0x4131f8[_0x2393d2('0x26')],_0x144f8f));}}),Promise[_0x59ffc6('0x86')](_0xdb7239);})[_0x3c2ffa('0x70')](function(_0x4a7874){const _0x2f0c99=_0x3c2ffa;_0x36f8e5=_0x4a7874[0x0];const _0x964a37=[],_0x24e359=[];return _0x79ef9[_0x2f0c99('0xb')](function(_0x10073a){const _0x196bd0=_0x2f0c99;if(_0x10073a['@odata.type']){const _0x32bb9b=_0x10073a[_0x196bd0('0xad')][_0x196bd0('0x65')](_0x10073a[_0x196bd0('0xad')][_0x196bd0('0x4e')]('.')+0x1);(_0x32bb9b===_0x196bd0('0x8b')||_0x32bb9b===_0x196bd0('0x62')||_0x32bb9b===_0x196bd0('0x7f')||_0x32bb9b===_0x196bd0('0x8f')||_0x32bb9b===_0x196bd0('0xa2')||_0x32bb9b==='DateTimeAttributeMetadata'||_0x32bb9b===_0x196bd0('0xa7')||_0x32bb9b===_0x196bd0('0xab')||_0x32bb9b===_0x196bd0('0x2e')||_0x32bb9b==='DecimalAttributeMetadata')&&_0x964a37[_0x196bd0('0x92')](getInputList(_0x4e2171,_0x40968b,_0x32bb9b,_0x24e359,_0x5f2ee8[_0x196bd0('0x26')],_0x10073a[_0x196bd0('0x26')],_0x144f8f));}}),Promise['all'](_0x964a37);})[_0x3c2ffa('0x70')](function(_0x2f2943){const _0x3b5549=_0x3c2ffa;_0xd5da6d=_0x2f2943[0x0];const _0x4fb9d7=_0x13ae24[_0x3b5549('0x4a')](_0x36f8e5)[_0x3b5549('0x4a')](_0xd5da6d),_0x1d4a27={'count':_0x4fb9d7[_0x3b5549('0x6e')],'rows':_0x4fb9d7};return _0x1d4a27;})['then'](respondWithResult(_0x10e729,null))[_0x3c2ffa('0xd')](function(_0x3d25be){const _0x3827fb=_0x3c2ffa;let _0x3c1e23=_0xfbd538['query'][_0x3827fb('0x98')]?0x1f4:_0x3d25be[_0x3827fb('0x94')]||0x1f4;logger[_0x3827fb('0x4c')](_0x3d25be['stack']),delete _0x3d25be[_0x3827fb('0x2')],_0x3c1e23===0x191&&(_0x3c1e23=0x190),_0x10e729[_0x3827fb('0x55')](_0x3c1e23)[_0x3827fb('0xaf')](_0xfbd538['query'][_0x3827fb('0x98')]?{'message':_0x3827fb('0x72'),'statusCode':_0x3d25be[_0x3827fb('0x94')]}:_0x3d25be);});};function getSelectList(_0x369586,_0x1eab90,_0x7d5e04,_0x4d69a7,_0x12fd56,_0x198d48){const _0x1c3033=_0x25feb4,_0x44c352={'method':_0x1c3033('0x39'),'uri':_0x369586+'EntityDefinitions('+_0x4d69a7+_0x1c3033('0x0')+_0x12fd56+_0x1c3033('0x81')+_0x1c3033('0x51'),'headers':{'Authorization':'Bearer\x20'+_0x198d48,'If-None-Match':null,'OData-Version':_0x1c3033('0x1f')},'json':!![]};return rp(_0x44c352)[_0x1c3033('0x70')](function(_0x139750){const _0xb1bb5a=_0x1c3033,_0x3fe2a2=[],_0x2ea330=_0x139750[_0xb1bb5a('0x8a')][_0xb1bb5a('0x46')];_0x2ea330[_0xb1bb5a('0xb')](function(_0x2063e0){const _0x196439=_0xb1bb5a;_0x3fe2a2[_0x196439('0x92')]({'name':_0x2063e0[_0x196439('0x91')][_0x196439('0x4d')][_0x196439('0x91')],'value':String(_0x2063e0['Value'])});});const _0x1ed263={'id':_0x1eab90+'_'+_0x139750[_0xb1bb5a('0x56')],'name':_0x139750['DisplayName'][_0xb1bb5a('0x4d')][_0xb1bb5a('0x91')],'custom':![],'options':_0x3fe2a2};return _0x7d5e04['push'](_0x1ed263),_0x7d5e04;});}function getBooleanList(_0xadc8a6,_0x79958d,_0x314758,_0xfa3387,_0x16b7a0,_0x56edba){const _0x25e19b=_0x25feb4,_0x2fd71e={'method':_0x25e19b('0x39'),'uri':_0xadc8a6+_0x25e19b('0x87')+_0xfa3387+_0x25e19b('0x0')+_0x16b7a0+_0x25e19b('0x96'),'headers':{'Authorization':_0x25e19b('0x97')+_0x56edba,'If-None-Match':null,'OData-Version':_0x25e19b('0x1f')},'json':!![]};return rp(_0x2fd71e)[_0x25e19b('0x70')](function(_0x449dd1){const _0x257648=_0x25e19b,_0x10bfcd=[];_0x10bfcd[_0x257648('0x92')]({'name':_0x449dd1[_0x257648('0x8a')][_0x257648('0x71')][_0x257648('0x91')]['UserLocalizedLabel'][_0x257648('0x91')],'value':_0x257648('0x1e')},{'name':_0x449dd1[_0x257648('0x8a')][_0x257648('0x68')][_0x257648('0x91')][_0x257648('0x4d')]['Label'],'value':_0x257648('0x6d')});const _0x439867={'id':_0x79958d+'_'+_0x449dd1[_0x257648('0x56')],'name':_0x449dd1[_0x257648('0x75')][_0x257648('0x4d')][_0x257648('0x91')],'custom':![],'options':_0x10bfcd};return _0x314758[_0x257648('0x92')](_0x439867),_0x314758;});}function getInputList(_0x4a7d9e,_0x526c24,_0x3420bb,_0x56cd91,_0x2bb44f,_0x4f4d62,_0x47fec5){const _0x2dbaa2=_0x25feb4,_0x5ad3a8={'method':_0x2dbaa2('0x39'),'uri':_0x4a7d9e+_0x2dbaa2('0x87')+_0x2bb44f+')/Attributes('+_0x4f4d62+_0x2dbaa2('0x7b')+_0x3420bb+_0x2dbaa2('0xa3'),'headers':{'Authorization':_0x2dbaa2('0x97')+_0x47fec5,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x5ad3a8)[_0x2dbaa2('0x70')](function(_0xa0cb9a){const _0x4daa49=_0x2dbaa2,_0x5cd5bd={'id':_0x526c24+'_'+_0xa0cb9a['LogicalName'],'name':_0xa0cb9a[_0x4daa49('0x75')]['UserLocalizedLabel']?_0xa0cb9a['DisplayName'][_0x4daa49('0x4d')][_0x4daa49('0x91')]:_0xa0cb9a['LogicalName'],'custom':![],'options':[]};return _0x56cd91[_0x4daa49('0x92')](_0x5cd5bd),_0x56cd91;});} \ No newline at end of file +const a242_0x590f=['order','error','PicklistAttributeMetadata','json','filter','Descriptions','name','like','statuscode','value','concat','set','model','@odata.type','exchangerate','prioritycodename','Label','clientSecret','emailaddress','DecimalAttributeMetadata','status','modifiedon','sort','modifiedbyyominame','merge','productidname','attributes','substring','Dynamics365Field','params','resolvebykpiidname','owneridyominame','description','statecode','Dynamics365Account','LogicalName','lastonholdtime','createdbyname','regardingobjectid','filters','MemoAttributeMetadata','then','Attributes','EntityNameAttributeMetadata','util','offset','stack','caseorigincode','query','owneridname',')/Attributes(','createdonbehalfbyname','billedserviceunits','Options','modifiedonbehalfbyname','responseby','format','slainvokedidname','primarycontactidname','/oauth2/token','slaname','update',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','rows','includes','send','Incident','Wrong\x20credentials','request-promise-native','include',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','count','utcconversiontimezonecode','sendStatus','subjectidname','catch','push','4.0','rawAttributes','owneridtype','modifiedbyexternalpartyyominame','remoteUri','versionnumber','actualserviceunits','Value','limit','entityimage_timestamp','subject','forEach','getFields','type','phonenumber','nolimit','customeridyominame','accountidyominame','options','socialprofileidname','POST','sentimentvalue','FalseOption','map','responsiblecontactidname','username','findOne','?$select=DisplayName,LogicalName','test',')/Microsoft.Dynamics.CRM.','create','statusCode','intersection','undefined','phonecall_activity_parties','UserLocalizedLabel','all','ticketnumber','directioncode','overriddencreatedon','modifiedbyname','access_token','influencescore','channel','importsequencenumber','createdon','fields','../../mysqldb','getSubjects','customeridtype','contractidname','AccountId','index','password','primarycontactidyominame','createdbyyominame','createdbyexternalpartyyominame','getConfigurations',')?$select=LogicalName&$expand=Attributes($select=LogicalName)','findAll','entityimage_url','BooleanAttributeMetadata','isNil','productserialnumber','timezoneruleversionnumber','msdyn_incidenttypename','parentcaseidname','tenantId','BigIntAttributeMetadata','TrueOption','lastIndexOf','StatusAttributeMetadata','Content-Range','VIRTUAL','Bearer\x20','clientId','GET','body','ticketType','firstresponsebykpiidname','EntityDefinitions(','destroy','keys','DisplayName','fieldName','../../components/parsers/qs','show','length','addConfiguration','masteridname','where','OptionSet','createdonbehalfbyyominame','contactidname','slice','entitlementidname','MetadataId','%s/api/data/v9.0/','sequelize','responsiblecontactidyominame','pick'];(function(_0x2d819e,_0x590f8d){const _0x4d29ab=function(_0x20d555){while(--_0x20d555){_0x2d819e['push'](_0x2d819e['shift']());}};_0x4d29ab(++_0x590f8d);}(a242_0x590f,0x140));const a242_0x4d29=function(_0x2d819e,_0x590f8d){_0x2d819e=_0x2d819e-0x0;let _0x4d29ab=a242_0x590f[_0x2d819e];return _0x4d29ab;};const _0x48c4b1=a242_0x4d29;'use strict';const rp=require(_0x48c4b1('0x68')),util=require(_0x48c4b1('0x50')),_=require('lodash'),qs=require(_0x48c4b1('0x14')),logger=require('../../config/logger')('api'),db=require(_0x48c4b1('0xa0'))['db'],{Op}=require(_0x48c4b1('0x21')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x20d555,_0x5a23fa){return _0x5a23fa=_0x5a23fa||0xc8,function(_0x45d158){const _0x1c3441=a242_0x4d29;if(_0x45d158)return _0x20d555[_0x1c3441('0x38')](_0x5a23fa)['json'](_0x45d158);};}function respondWithFilteredResult(_0x1875a4,_0xc30bbc){return function(_0x1f3c2a){const _0x367cdb=a242_0x4d29;if(_0x1f3c2a){const _0x2b9d12=_0x1f3c2a[_0x367cdb('0x6b')],_0x35f105=_0xc30bbc[_0x367cdb('0x51')];let _0x52566f=_0xc30bbc[_0x367cdb('0x51')]+_0xc30bbc[_0x367cdb('0x79')],_0x408da6;return _0x52566f>=_0x2b9d12?(_0x52566f=_0x2b9d12,_0x408da6=0xc8):_0x408da6=0xce,_0x1875a4[_0x367cdb('0x38')](_0x408da6),_0x1875a4[_0x367cdb('0x2f')](_0x367cdb('0x7'),_0x35f105+'-'+_0x52566f+'/'+_0x2b9d12)[_0x367cdb('0x27')](_0x1f3c2a);}return null;};}function saveUpdates(_0x1dd672){return function(_0x3efee7){const _0x30e26b=a242_0x4d29;if(_0x3efee7)return _0x3efee7['update'](_0x1dd672)[_0x30e26b('0x4d')](function(_0x15dc18){return _0x15dc18;});return null;};}function removeEntity(_0x36a2f7){return function(_0x1ced89){const _0x910e68=a242_0x4d29;if(_0x1ced89)return _0x1ced89[_0x910e68('0x10')]()[_0x910e68('0x4d')](function(){_0x36a2f7['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x5e5e77){return function(_0x25dced){const _0x47951c=a242_0x4d29;return!_0x25dced&&_0x5e5e77[_0x47951c('0x6d')](0x194),_0x25dced;};}function handleError(_0x1e74bc,_0x52e43e){return _0x52e43e=_0x52e43e||0x1f4,function(_0x11c126){const _0x651945=a242_0x4d29;logger[_0x651945('0x25')](_0x11c126['stack']),_0x11c126[_0x651945('0x2a')]&&delete _0x11c126['name'],_0x1e74bc[_0x651945('0x38')](_0x52e43e)[_0x651945('0x65')](_0x11c126);};}exports[_0x48c4b1('0xa5')]=function(_0x5a794b,_0xfe31ff){const _0x4799d0=_0x48c4b1;let _0x2bf647={};const _0x19be37={},_0x5604a7={'count':0x0,'rows':[]},_0x48e5ea=_[_0x4799d0('0x88')](db['Dynamics365Account'][_0x4799d0('0x72')],function(_0x237800){const _0x2e4313=_0x4799d0;return{'name':_0x237800[_0x2e4313('0x13')],'type':_0x237800[_0x2e4313('0x7e')]['key']};});_0x19be37[_0x4799d0('0x30')]=_[_0x4799d0('0x88')](_0x48e5ea,_0x4799d0('0x2a')),_0x19be37[_0x4799d0('0x54')]=_[_0x4799d0('0x11')](_0x5a794b[_0x4799d0('0x54')]),_0x19be37[_0x4799d0('0x4b')]=_[_0x4799d0('0x91')](_0x19be37[_0x4799d0('0x30')],_0x19be37[_0x4799d0('0x54')]),_0x2bf647[_0x4799d0('0x3e')]=_[_0x4799d0('0x91')](_0x19be37['model'],qs['fields'](_0x5a794b[_0x4799d0('0x54')][_0x4799d0('0x9f')])),_0x2bf647[_0x4799d0('0x3e')]=_0x2bf647['attributes']['length']?_0x2bf647['attributes']:_0x19be37[_0x4799d0('0x30')];typeof _0x5a794b['query'][_0x4799d0('0x80')]===_0x4799d0('0x92')&&(_0x2bf647[_0x4799d0('0x79')]=qs[_0x4799d0('0x79')](_0x5a794b[_0x4799d0('0x54')][_0x4799d0('0x79')]),_0x2bf647[_0x4799d0('0x51')]=qs['offset'](_0x5a794b[_0x4799d0('0x54')]['offset']));_0x2bf647['order']=qs[_0x4799d0('0x3a')](_0x5a794b['query'][_0x4799d0('0x3a')]),_0x2bf647[_0x4799d0('0x19')]=qs[_0x4799d0('0x4b')](_[_0x4799d0('0x23')](_0x5a794b[_0x4799d0('0x54')],_0x19be37[_0x4799d0('0x4b')]),_0x48e5ea);_0x5a794b[_0x4799d0('0x54')][_0x4799d0('0x28')]&&(_0x2bf647[_0x4799d0('0x19')]=_[_0x4799d0('0x3c')](_0x2bf647['where'],{[Op['or']]:_['map'](_0x48e5ea,function(_0x139553){const _0x321beb=_0x4799d0;if(_0x139553[_0x321beb('0x7e')]!==_0x321beb('0x8')){const _0x409e71={};return _0x409e71[_0x139553['name']]={[Op[_0x321beb('0x2b')]]:'%'+_0x5a794b[_0x321beb('0x54')]['filter']+'%'},_0x409e71;}})}));_0x2bf647=_[_0x4799d0('0x3c')]({},_0x2bf647,_0x5a794b['options']);const _0x213ae0={'where':_0x2bf647[_0x4799d0('0x19')]};return db['Dynamics365Account'][_0x4799d0('0x6b')](_0x213ae0)[_0x4799d0('0x4d')](function(_0x34af1f){const _0x2e86cd=_0x4799d0;return _0x5604a7[_0x2e86cd('0x6b')]=_0x34af1f,_0x5a794b[_0x2e86cd('0x54')]['includeAll']&&(_0x2bf647[_0x2e86cd('0x69')]=[{'all':!![]}]),db[_0x2e86cd('0x46')][_0x2e86cd('0xac')](_0x2bf647);})['then'](function(_0x3c2b60){const _0x49308f=_0x4799d0;return _0x5604a7[_0x49308f('0x63')]=_0x3c2b60,_0x5604a7;})[_0x4799d0('0x4d')](respondWithFilteredResult(_0xfe31ff,_0x2bf647))[_0x4799d0('0x6f')](handleError(_0xfe31ff,null));},exports[_0x48c4b1('0x15')]=function(_0x772a71,_0x9a4c69){const _0x456320=_0x48c4b1;let _0x431a9a={'raw':![],'where':{'id':_0x772a71[_0x456320('0x41')]['id']}};const _0x425157={};return _0x425157[_0x456320('0x30')]=_['keys'](db[_0x456320('0x46')][_0x456320('0x72')]),_0x425157[_0x456320('0x54')]=_[_0x456320('0x11')](_0x772a71['query']),_0x425157['filters']=_[_0x456320('0x91')](_0x425157[_0x456320('0x30')],_0x425157[_0x456320('0x54')]),_0x431a9a[_0x456320('0x3e')]=_['intersection'](_0x425157['model'],qs['fields'](_0x772a71[_0x456320('0x54')][_0x456320('0x9f')])),_0x431a9a['attributes']=_0x431a9a[_0x456320('0x3e')]['length']?_0x431a9a['attributes']:_0x425157[_0x456320('0x30')],_0x772a71[_0x456320('0x54')]['includeAll']&&(_0x431a9a['include']=[{'all':!![]}]),_0x431a9a=_['merge']({},_0x431a9a,_0x772a71[_0x456320('0x83')]),db[_0x456320('0x46')][_0x456320('0x8b')](_0x431a9a)['then'](handleEntityNotFound(_0x9a4c69,null))['then'](respondWithResult(_0x9a4c69,null))[_0x456320('0x6f')](handleError(_0x9a4c69,null));},exports[_0x48c4b1('0x8f')]=function(_0x69c661,_0x5e8b52){const _0x2dac6b=_0x48c4b1;return db['Dynamics365Account'][_0x2dac6b('0x8f')](_0x69c661[_0x2dac6b('0xc')],{})['then'](respondWithResult(_0x5e8b52,0xc9))[_0x2dac6b('0x6f')](handleError(_0x5e8b52,null));},exports[_0x48c4b1('0x61')]=function(_0x536513,_0x9d4251){const _0xbe81f5=_0x48c4b1;return _0x536513['body']['id']&&delete _0x536513[_0xbe81f5('0xc')]['id'],db[_0xbe81f5('0x46')][_0xbe81f5('0x8b')]({'where':{'id':_0x536513[_0xbe81f5('0x41')]['id']}})[_0xbe81f5('0x4d')](handleEntityNotFound(_0x9d4251,null))['then'](saveUpdates(_0x536513[_0xbe81f5('0xc')],null))[_0xbe81f5('0x4d')](respondWithResult(_0x9d4251,null))['catch'](handleError(_0x9d4251,null));},exports['destroy']=function(_0x1b1d86,_0xf52ad8){const _0x523bcb=_0x48c4b1;return db[_0x523bcb('0x46')]['findOne']({'where':{'id':_0x1b1d86[_0x523bcb('0x41')]['id']}})[_0x523bcb('0x4d')](handleEntityNotFound(_0xf52ad8,null))[_0x523bcb('0x4d')](removeEntity(_0xf52ad8,null))[_0x523bcb('0x6f')](handleError(_0xf52ad8,null));},exports[_0x48c4b1('0xaa')]=function(_0x1e3234,_0x3b7051){const _0x5d87de=_0x48c4b1;let _0x219ded={};const _0x7767d8={};let _0x3224e9,_0x2f0385;return db[_0x5d87de('0x46')][_0x5d87de('0x8b')]({'where':{'id':_0x1e3234[_0x5d87de('0x41')]['id']}})[_0x5d87de('0x4d')](handleEntityNotFound(_0x3b7051,null))[_0x5d87de('0x4d')](function(_0x74459){const _0x304f9f=_0x5d87de;if(_0x74459)return _0x3224e9=_0x74459,_0x7767d8['model']=_['keys'](db['Dynamics365Configuration'][_0x304f9f('0x72')]),_0x7767d8[_0x304f9f('0x54')]=_[_0x304f9f('0x11')](_0x1e3234[_0x304f9f('0x54')]),_0x7767d8[_0x304f9f('0x4b')]=_[_0x304f9f('0x91')](_0x7767d8[_0x304f9f('0x30')],_0x7767d8[_0x304f9f('0x54')]),_0x219ded['attributes']=_['intersection'](_0x7767d8[_0x304f9f('0x30')],qs['fields'](_0x1e3234['query'][_0x304f9f('0x9f')])),_0x219ded['attributes']=_0x219ded['attributes'][_0x304f9f('0x16')]?_0x219ded[_0x304f9f('0x3e')]:_0x7767d8[_0x304f9f('0x30')],_0x219ded[_0x304f9f('0x24')]=qs[_0x304f9f('0x3a')](_0x1e3234[_0x304f9f('0x54')]['sort']),_0x219ded['where']=qs[_0x304f9f('0x4b')](_[_0x304f9f('0x23')](_0x1e3234[_0x304f9f('0x54')],_0x7767d8['filters'])),_0x1e3234['query'][_0x304f9f('0x28')]&&(_0x219ded[_0x304f9f('0x19')]=_['merge'](_0x219ded['where'],{[Op['or']]:_[_0x304f9f('0x88')](_0x219ded['attributes'],function(_0x14726a){const _0x48cc91=_0x304f9f,_0x4926a4={};return _0x4926a4[_0x14726a]={[Op['like']]:'%'+_0x1e3234[_0x48cc91('0x54')][_0x48cc91('0x28')]+'%'},_0x4926a4;})})),_0x219ded=_['merge']({},_0x219ded,_0x1e3234[_0x304f9f('0x83')]),_0x3224e9[_0x304f9f('0xaa')](_0x219ded);})[_0x5d87de('0x4d')](function(_0x5cd847){const _0x5f3cf5=_0x5d87de;if(_0x5cd847)return _0x2f0385=_0x5cd847['length'],typeof _0x1e3234[_0x5f3cf5('0x54')][_0x5f3cf5('0x80')]==='undefined'&&(_0x219ded[_0x5f3cf5('0x79')]=qs[_0x5f3cf5('0x79')](_0x1e3234['query'][_0x5f3cf5('0x79')]),_0x219ded[_0x5f3cf5('0x51')]=qs[_0x5f3cf5('0x51')](_0x1e3234[_0x5f3cf5('0x54')]['offset'])),_0x3224e9['getConfigurations'](_0x219ded);})[_0x5d87de('0x4d')](function(_0x55ed44){if(_0x55ed44)return _0x55ed44?{'count':_0x2f0385,'rows':_0x55ed44}:null;})[_0x5d87de('0x4d')](respondWithResult(_0x3b7051,null))[_0x5d87de('0x6f')](handleError(_0x3b7051,null));},exports[_0x48c4b1('0x17')]=function(_0x144959,_0x214166){const _0x58e953=_0x48c4b1;return _0x144959[_0x58e953('0xc')]['id']&&delete _0x144959['body']['id'],db[_0x58e953('0x46')][_0x58e953('0x8b')]({'where':{'id':_0x144959[_0x58e953('0x41')]['id']}})[_0x58e953('0x4d')](handleEntityNotFound(_0x214166,null))[_0x58e953('0x4d')](function(_0x12da82){const _0x1ab5ce=_0x58e953;if(_0x12da82)return _0x144959[_0x1ab5ce('0xc')][_0x1ab5ce('0xa4')]=_0x12da82['id'],_0x144959['body']['Subjects']=integrations[_0x1ab5ce('0xa1')](_0x144959[_0x1ab5ce('0xc')][_0x1ab5ce('0x9c')],_0x144959[_0x1ab5ce('0xc')][_0x1ab5ce('0x7e')]),_0x144959[_0x1ab5ce('0xc')][_0x1ab5ce('0x29')]=integrations['getDescriptions'](_0x144959[_0x1ab5ce('0xc')]['channel'],_0x144959[_0x1ab5ce('0xc')][_0x1ab5ce('0x7e')]),db['Dynamics365Configuration'][_0x1ab5ce('0x8f')](_0x144959[_0x1ab5ce('0xc')],{'include':[{'model':db[_0x1ab5ce('0x40')],'as':'Subjects'},{'model':db[_0x1ab5ce('0x40')],'as':_0x1ab5ce('0x29')}]});return null;})['then'](respondWithResult(_0x214166,null))[_0x58e953('0x6f')](handleError(_0x214166,null));},exports[_0x48c4b1('0x7d')]=function(_0x3014fa,_0x3b60b3){const _0x3b56a0=_0x48c4b1,_0x1017c6=_0x3014fa[_0x3b56a0('0x54')][_0x3b56a0('0xd')],_0x1d9531=_0x1017c6==='incident'?_0x3b56a0('0x66'):'PhoneCall';let _0x3421b0='',_0x30b09a='',_0x5b315d='',_0x3fb42e='',_0x27a1a5='',_0xd011be='',_0x104105='',_0x59632e='';const _0x58cc0b=['title',_0x3b56a0('0x44'),'customerid','ownerid',_0x3b56a0('0x53'),_0x3b56a0('0x7b'),_0x3b56a0('0x7f'),_0x3b56a0('0x4a'),_0x3b56a0('0x97'),_0x3b56a0('0x93')],_0x260e78=['accountidname',_0x3b56a0('0x82'),_0x3b56a0('0x77'),_0x3b56a0('0x58'),_0x3b56a0('0x1c'),'contactidyominame','contractdetailidname',_0x3b56a0('0xa3'),'createdbyexternalpartyname',_0x3b56a0('0xa9'),_0x3b56a0('0x49'),_0x3b56a0('0xa8'),_0x3b56a0('0x9e'),_0x3b56a0('0x57'),_0x3b56a0('0x1b'),'customeridname',_0x3b56a0('0xa2'),_0x3b56a0('0x81'),_0x3b56a0('0x36'),_0x3b56a0('0x1e'),_0x3b56a0('0x7a'),_0x3b56a0('0xad'),'escalatedon',_0x3b56a0('0x32'),_0x3b56a0('0xe'),'followupby',_0x3b56a0('0x9d'),_0x3b56a0('0x9b'),'kbarticleidname',_0x3b56a0('0x48'),_0x3b56a0('0x18'),'modifiedbyexternalpartyname',_0x3b56a0('0x74'),_0x3b56a0('0x99'),_0x3b56a0('0x3b'),_0x3b56a0('0x39'),_0x3b56a0('0x5a'),'modifiedonbehalfbyyominame',_0x3b56a0('0x0'),'msdyn_iotalertname','numberofchildincidents','onholdtime',_0x3b56a0('0x98'),_0x3b56a0('0x55'),_0x3b56a0('0x73'),_0x3b56a0('0x43'),_0x3b56a0('0x1'),_0x3b56a0('0x5e'),_0x3b56a0('0xa7'),_0x3b56a0('0x33'),_0x3b56a0('0x3d'),_0x3b56a0('0xb0'),'resolveby',_0x3b56a0('0x42'),_0x3b56a0('0x5b'),_0x3b56a0('0x89'),_0x3b56a0('0x22'),_0x3b56a0('0x86'),_0x3b56a0('0x5d'),_0x3b56a0('0x60'),_0x3b56a0('0x84'),_0x3b56a0('0x45'),_0x3b56a0('0x2c'),_0x3b56a0('0x6e'),_0x3b56a0('0x96'),_0x3b56a0('0xb1'),'transactioncurrencyidname','traversedpath',_0x3b56a0('0x6c'),_0x3b56a0('0x76')],_0x64c7ab=_0x58cc0b['concat'](_0x260e78);return db[_0x3b56a0('0x46')][_0x3b56a0('0x8b')]({'where':{'id':_0x3014fa[_0x3b56a0('0x41')]['id']},'attributes':['id',_0x3b56a0('0x8a'),_0x3b56a0('0xa6'),_0x3b56a0('0x75'),_0x3b56a0('0x2'),'clientId',_0x3b56a0('0x35')]})[_0x3b56a0('0x4d')](handleEntityNotFound(_0x3b60b3,null))['then'](function(_0x4f08a7){const _0x495743=_0x3b56a0;if(_0x4f08a7){_0x59632e=_0x4f08a7[_0x495743('0x75')];const _0x16adcb=_0x59632e[_0x495743('0x1d')](-0x1);_0x16adcb==='/'&&(_0x59632e=_0x59632e[_0x495743('0x3f')](0x0,_0x59632e[_0x495743('0x5')](_0x16adcb)));_0x104105=util[_0x495743('0x5c')](_0x495743('0x20'),_0x59632e);const _0x3c8d21={'method':_0x495743('0x85'),'uri':'https://login.microsoftonline.com/'+_0x4f08a7[_0x495743('0x2')]+_0x495743('0x5f'),'form':{'client_id':_0x4f08a7[_0x495743('0xa')],'resource':_0x59632e,'username':_0x4f08a7[_0x495743('0x8a')],'password':_0x4f08a7[_0x495743('0xa6')],'grant_type':_0x495743('0xa6'),'client_secret':_0x4f08a7[_0x495743('0x35')]},'json':!![]};return rp(_0x3c8d21);}})[_0x3b56a0('0x4d')](function(_0x281a21){const _0x16b3ae=_0x3b56a0;_0xd011be=_0x281a21[_0x16b3ae('0x9a')];const _0x13ac3a={'method':'GET','uri':encodeURI(_0x104105+'EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27'+_0x1d9531+'\x27'),'headers':{'Authorization':_0x16b3ae('0x9')+_0xd011be,'If-None-Match':null,'OData-Version':_0x16b3ae('0x71')},'json':!![]};return rp(_0x13ac3a);})[_0x3b56a0('0x4d')](function(_0x3e1a57){const _0x72d849=_0x3b56a0,_0x1d7d78=_0x3e1a57[_0x72d849('0x2d')][0x0],_0x5e90ec=_0x1d7d78['MetadataId'],_0x3553ac={'method':_0x72d849('0xb'),'uri':_0x104105+_0x72d849('0xf')+_0x5e90ec+_0x72d849('0xab'),'headers':{'Authorization':_0x72d849('0x9')+_0xd011be,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x3553ac);})[_0x3b56a0('0x4d')](function(_0x32893f){const _0xa602f7=_0x3b56a0;_0x3421b0=_0x32893f,_0x30b09a=_0x3421b0[_0xa602f7('0x4e')],_0x30b09a=_['remove'](_0x30b09a,function(_0x4376be){const _0x2a70e2=_0xa602f7;return!_0x64c7ab[_0x2a70e2('0x64')](_0x4376be[_0x2a70e2('0x47')]);});const _0x286048=[],_0x182b7b=[];return _0x30b09a[_0xa602f7('0x7c')](function(_0x691e40){const _0x1aa0e8=_0xa602f7;if(_0x691e40['@odata.type']){const _0x528277=_0x691e40['@odata.type'][_0x1aa0e8('0x3f')](_0x691e40[_0x1aa0e8('0x31')][_0x1aa0e8('0x5')]('.')+0x1);_0x528277===_0x1aa0e8('0x26')&&_0x286048[_0x1aa0e8('0x70')](getSelectList(_0x104105,_0x1017c6,_0x182b7b,_0x3421b0[_0x1aa0e8('0x1f')],_0x691e40['MetadataId'],_0xd011be));}}),Promise['all'](_0x286048);})[_0x3b56a0('0x4d')](function(_0x2ba3cb){const _0x39f5f2=_0x3b56a0;_0x5b315d=_0x2ba3cb[0x0];const _0x239760=[],_0x521f7d=[];return _0x30b09a[_0x39f5f2('0x7c')](function(_0x2b0bd5){const _0x32e8b7=_0x39f5f2;if(!_[_0x32e8b7('0xaf')](_0x2b0bd5[_0x32e8b7('0x31')])){const _0x3b1df4=_0x2b0bd5[_0x32e8b7('0x31')]['substring'](_0x2b0bd5[_0x32e8b7('0x31')][_0x32e8b7('0x5')]('.')+0x1);_0x3b1df4===_0x32e8b7('0xae')&&_0x239760[_0x32e8b7('0x70')](getBooleanList(_0x104105,_0x1017c6,_0x521f7d,_0x3421b0[_0x32e8b7('0x1f')],_0x2b0bd5[_0x32e8b7('0x1f')],_0xd011be));}}),Promise[_0x39f5f2('0x95')](_0x239760);})[_0x3b56a0('0x4d')](function(_0xaf95ed){const _0x4737d0=_0x3b56a0;_0x3fb42e=_0xaf95ed[0x0];const _0x275db8=[],_0x24087e=[];return _0x30b09a[_0x4737d0('0x7c')](function(_0x802846){const _0x86b109=_0x4737d0;if(_0x802846[_0x86b109('0x31')]){const _0x25eacb=_0x802846[_0x86b109('0x31')][_0x86b109('0x3f')](_0x802846[_0x86b109('0x31')][_0x86b109('0x5')]('.')+0x1);(_0x25eacb==='StringAttributeMetadata'||_0x25eacb==='DoubleAttributeMetadata'||_0x25eacb===_0x86b109('0x3')||_0x25eacb==='IntegerAttributeMetadata'||_0x25eacb===_0x86b109('0x4c')||_0x25eacb==='DateTimeAttributeMetadata'||_0x25eacb===_0x86b109('0x6')||_0x25eacb===_0x86b109('0x4f')||_0x25eacb==='StateAttributeMetadata'||_0x25eacb===_0x86b109('0x37'))&&_0x275db8[_0x86b109('0x70')](getInputList(_0x104105,_0x1017c6,_0x25eacb,_0x24087e,_0x3421b0[_0x86b109('0x1f')],_0x802846[_0x86b109('0x1f')],_0xd011be));}}),Promise[_0x4737d0('0x95')](_0x275db8);})['then'](function(_0x5b9d77){const _0x2de5b5=_0x3b56a0;_0x27a1a5=_0x5b9d77[0x0];const _0x3ebfb7=_0x5b315d[_0x2de5b5('0x2e')](_0x3fb42e)[_0x2de5b5('0x2e')](_0x27a1a5),_0x274108={'count':_0x3ebfb7['length'],'rows':_0x3ebfb7};return _0x274108;})[_0x3b56a0('0x4d')](respondWithResult(_0x3b60b3,null))[_0x3b56a0('0x6f')](function(_0xbf728a){const _0x50494e=_0x3b56a0;let _0x1fb55c=_0x3014fa[_0x50494e('0x54')][_0x50494e('0x8d')]?0x1f4:_0xbf728a[_0x50494e('0x90')]||0x1f4;logger['error'](_0xbf728a[_0x50494e('0x52')]),delete _0xbf728a[_0x50494e('0x2a')],_0x1fb55c===0x191&&(_0x1fb55c=0x190),_0x3b60b3[_0x50494e('0x38')](_0x1fb55c)[_0x50494e('0x65')](_0x3014fa[_0x50494e('0x54')][_0x50494e('0x8d')]?{'message':_0x50494e('0x67'),'statusCode':_0xbf728a[_0x50494e('0x90')]}:_0xbf728a);});};function getSelectList(_0x2b2305,_0x521e47,_0x4e1142,_0x55ea03,_0x48c969,_0x1337c2){const _0x53e162=_0x48c4b1,_0x530ac8={'method':_0x53e162('0xb'),'uri':_0x2b2305+'EntityDefinitions('+_0x55ea03+_0x53e162('0x56')+_0x48c969+_0x53e162('0x62')+'$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','headers':{'Authorization':_0x53e162('0x9')+_0x1337c2,'If-None-Match':null,'OData-Version':_0x53e162('0x71')},'json':!![]};return rp(_0x530ac8)[_0x53e162('0x4d')](function(_0x2485c3){const _0x3e2776=_0x53e162,_0x22e326=[],_0x15eb92=_0x2485c3[_0x3e2776('0x1a')][_0x3e2776('0x59')];_0x15eb92[_0x3e2776('0x7c')](function(_0x28d5e4){const _0x5d201d=_0x3e2776;_0x22e326[_0x5d201d('0x70')]({'name':_0x28d5e4[_0x5d201d('0x34')]['UserLocalizedLabel'][_0x5d201d('0x34')],'value':String(_0x28d5e4[_0x5d201d('0x78')])});});const _0x38c949={'id':_0x521e47+'_'+_0x2485c3[_0x3e2776('0x47')],'name':_0x2485c3[_0x3e2776('0x12')][_0x3e2776('0x94')][_0x3e2776('0x34')],'custom':![],'options':_0x22e326};return _0x4e1142[_0x3e2776('0x70')](_0x38c949),_0x4e1142;});}function getBooleanList(_0xaf74b1,_0x445343,_0x3a80be,_0x127cc9,_0x471cab,_0x74d89){const _0x262f57=_0x48c4b1,_0x49fa68={'method':'GET','uri':_0xaf74b1+'EntityDefinitions('+_0x127cc9+_0x262f57('0x56')+_0x471cab+_0x262f57('0x6a'),'headers':{'Authorization':_0x262f57('0x9')+_0x74d89,'If-None-Match':null,'OData-Version':_0x262f57('0x71')},'json':!![]};return rp(_0x49fa68)['then'](function(_0x1d157a){const _0x2b4ef4=_0x262f57,_0x327ab4=[];_0x327ab4['push']({'name':_0x1d157a['OptionSet'][_0x2b4ef4('0x4')][_0x2b4ef4('0x34')][_0x2b4ef4('0x94')][_0x2b4ef4('0x34')],'value':'true'},{'name':_0x1d157a[_0x2b4ef4('0x1a')][_0x2b4ef4('0x87')]['Label'][_0x2b4ef4('0x94')]['Label'],'value':'false'});const _0x1b6752={'id':_0x445343+'_'+_0x1d157a[_0x2b4ef4('0x47')],'name':_0x1d157a[_0x2b4ef4('0x12')][_0x2b4ef4('0x94')][_0x2b4ef4('0x34')],'custom':![],'options':_0x327ab4};return _0x3a80be['push'](_0x1b6752),_0x3a80be;});}function getInputList(_0xb3f17,_0x249ce4,_0x2ac0a2,_0x3312e7,_0x4f21b2,_0xe6b92a,_0x63ae2a){const _0x1c1fdc=_0x48c4b1,_0x2b2a0c={'method':'GET','uri':_0xb3f17+_0x1c1fdc('0xf')+_0x4f21b2+_0x1c1fdc('0x56')+_0xe6b92a+_0x1c1fdc('0x8e')+_0x2ac0a2+_0x1c1fdc('0x8c'),'headers':{'Authorization':_0x1c1fdc('0x9')+_0x63ae2a,'If-None-Match':null,'OData-Version':_0x1c1fdc('0x71')},'json':!![]};return rp(_0x2b2a0c)[_0x1c1fdc('0x4d')](function(_0x5bae71){const _0x48cae4=_0x1c1fdc,_0x26e247={'id':_0x249ce4+'_'+_0x5bae71[_0x48cae4('0x47')],'name':_0x5bae71[_0x48cae4('0x12')][_0x48cae4('0x94')]?_0x5bae71[_0x48cae4('0x12')]['UserLocalizedLabel'][_0x48cae4('0x34')]:_0x5bae71[_0x48cae4('0x47')],'custom':![],'options':[]};return _0x3312e7[_0x48cae4('0x70')](_0x26e247),_0x3312e7;});} \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.model.js b/server/api/intDynamics365Account/intDynamics365Account.model.js index 5cf1dfa..ab6004a 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.model.js +++ b/server/api/intDynamics365Account/intDynamics365Account.model.js @@ -1 +1 @@ -const a243_0x3dbc=['define','./intDynamics365Account.attributes','Dynamics365Account','exports'];(function(_0x54f3be,_0x3dbcb2){const _0x4402cf=function(_0x272e26){while(--_0x272e26){_0x54f3be['push'](_0x54f3be['shift']());}};_0x4402cf(++_0x3dbcb2);}(a243_0x3dbc,0x94));const a243_0x4402=function(_0x54f3be,_0x3dbcb2){_0x54f3be=_0x54f3be-0x0;let _0x4402cf=a243_0x3dbc[_0x54f3be];return _0x4402cf;};const _0x2aaa73=a243_0x4402;'use strict';const attributes=require(_0x2aaa73('0x1'));module[_0x2aaa73('0x3')]=function(_0x272e26){const _0x4736e6=_0x2aaa73,_0x590e8b=_0x272e26[_0x4736e6('0x0')](_0x4736e6('0x2'),attributes,{'tableName':'int_dynamics365_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x590e8b;}; \ No newline at end of file +const a243_0xb60f=['./intDynamics365Account.attributes','exports','Dynamics365Account'];(function(_0xcbe59f,_0xb60f6){const _0x2ac924=function(_0x446141){while(--_0x446141){_0xcbe59f['push'](_0xcbe59f['shift']());}};_0x2ac924(++_0xb60f6);}(a243_0xb60f,0x1c5));const a243_0x2ac9=function(_0xcbe59f,_0xb60f6){_0xcbe59f=_0xcbe59f-0x0;let _0x2ac924=a243_0xb60f[_0xcbe59f];return _0x2ac924;};const _0xa9d194=a243_0x2ac9;'use strict';const attributes=require(_0xa9d194('0x0'));module[_0xa9d194('0x1')]=function(_0x446141){const _0xb7ca1b=_0xa9d194,_0x458519=_0x446141['define'](_0xb7ca1b('0x2'),attributes,{'tableName':'int_dynamics365_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x458519;}; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.rpc.js b/server/api/intDynamics365Account/intDynamics365Account.rpc.js index 664ee60..de75050 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.rpc.js +++ b/server/api/intDynamics365Account/intDynamics365Account.rpc.js @@ -1 +1 @@ -const a244_0x3a39=['model','findAll','raw','attributes','where','Dynamics365Account','debug','stringify','lodash','map','options','findOne','message','error','../../mysqldb','ShowDynamics365Account','rpc','include','../../config/logger','catch','info','GetDynamics365Account'];(function(_0x329459,_0x3a396e){const _0x388dec=function(_0x389a6c){while(--_0x389a6c){_0x329459['push'](_0x329459['shift']());}};_0x388dec(++_0x3a396e);}(a244_0x3a39,0x1cd));const a244_0x388d=function(_0x329459,_0x3a396e){_0x329459=_0x329459-0x0;let _0x388dec=a244_0x3a39[_0x329459];return _0x388dec;};const _0x1dd8d3=a244_0x388d;'use strict';const _=require(_0x1dd8d3('0x9')),db=require(_0x1dd8d3('0xf'))['db'],logger=require(_0x1dd8d3('0x13'))(_0x1dd8d3('0x11'));exports[_0x1dd8d3('0x0')]=function(_0x389a6c){const _0x304dde=this;return new Promise(function(_0x401cbd,_0x205f82){const _0x11cb8d=a244_0x388d;return db[_0x11cb8d('0x6')][_0x11cb8d('0x2')]({'raw':_0x389a6c[_0x11cb8d('0xb')]?_0x389a6c['options'][_0x11cb8d('0x3')]===undefined?!![]:![]:!![],'where':_0x389a6c[_0x11cb8d('0xb')]?_0x389a6c[_0x11cb8d('0xb')][_0x11cb8d('0x5')]||null:null,'attributes':_0x389a6c[_0x11cb8d('0xb')]?_0x389a6c['options'][_0x11cb8d('0x4')]||null:null,'limit':_0x389a6c[_0x11cb8d('0xb')]?_0x389a6c[_0x11cb8d('0xb')]['limit']||null:null,'include':_0x389a6c[_0x11cb8d('0xb')]?_0x389a6c[_0x11cb8d('0xb')][_0x11cb8d('0x12')]?_['map'](_0x389a6c[_0x11cb8d('0xb')][_0x11cb8d('0x12')],function(_0x55c92d){const _0x3c2923=_0x11cb8d;return{'model':db[_0x55c92d[_0x3c2923('0x1')]],'as':_0x55c92d['as'],'attributes':_0x55c92d['attributes'],'include':_0x55c92d[_0x3c2923('0x12')]?_['map'](_0x55c92d[_0x3c2923('0x12')],function(_0x3cbeb7){const _0x286342=_0x3c2923;return{'model':db[_0x3cbeb7[_0x286342('0x1')]],'as':_0x3cbeb7['as'],'attributes':_0x3cbeb7['attributes'],'include':_0x3cbeb7['include']?_['map'](_0x3cbeb7[_0x286342('0x12')],function(_0x1e6988){const _0x22a0a3=_0x286342;return{'model':db[_0x1e6988['model']],'as':_0x1e6988['as'],'attributes':_0x1e6988[_0x22a0a3('0x4')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2eb6c5){const _0x223222=_0x11cb8d;logger[_0x223222('0x15')](_0x223222('0x0'),_0x389a6c),logger[_0x223222('0x7')]('GetDynamics365Account',_0x389a6c,JSON[_0x223222('0x8')](_0x2eb6c5)),_0x401cbd(_0x2eb6c5);})[_0x11cb8d('0x14')](function(_0x15beef){const _0x1f01bd=_0x11cb8d;logger[_0x1f01bd('0xe')](_0x1f01bd('0x0'),_0x15beef[_0x1f01bd('0xd')],_0x389a6c),_0x205f82(_0x304dde[_0x1f01bd('0xe')](0x1f4,_0x15beef[_0x1f01bd('0xd')]));});});},exports['ShowDynamics365Account']=function(_0x3045ad){const _0x1fdb83=this;return new Promise(function(_0xc60077,_0x3f2762){const _0x22a0b2=a244_0x388d;return db['Dynamics365Account'][_0x22a0b2('0xc')]({'raw':_0x3045ad[_0x22a0b2('0xb')]?_0x3045ad[_0x22a0b2('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x3045ad['options']?_0x3045ad[_0x22a0b2('0xb')][_0x22a0b2('0x5')]||null:null,'attributes':_0x3045ad['options']?_0x3045ad[_0x22a0b2('0xb')][_0x22a0b2('0x4')]||null:null,'include':_0x3045ad[_0x22a0b2('0xb')]?_0x3045ad[_0x22a0b2('0xb')][_0x22a0b2('0x12')]?_[_0x22a0b2('0xa')](_0x3045ad[_0x22a0b2('0xb')][_0x22a0b2('0x12')],function(_0x3ee97e){const _0xe2b8b4=_0x22a0b2;return{'model':db[_0x3ee97e[_0xe2b8b4('0x1')]],'as':_0x3ee97e['as'],'attributes':_0x3ee97e['attributes'],'include':_0x3ee97e[_0xe2b8b4('0x12')]?_[_0xe2b8b4('0xa')](_0x3ee97e[_0xe2b8b4('0x12')],function(_0x1985c6){const _0x49c503=_0xe2b8b4;return{'model':db[_0x1985c6[_0x49c503('0x1')]],'as':_0x1985c6['as'],'attributes':_0x1985c6[_0x49c503('0x4')],'include':_0x1985c6['include']?_[_0x49c503('0xa')](_0x1985c6['include'],function(_0x193a06){return{'model':db[_0x193a06['model']],'as':_0x193a06['as'],'attributes':_0x193a06['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x1a98db){const _0x3debee=_0x22a0b2;logger[_0x3debee('0x15')](_0x3debee('0x10'),_0x3045ad),logger[_0x3debee('0x7')](_0x3debee('0x10'),_0x3045ad,JSON[_0x3debee('0x8')](_0x1a98db)),_0xc60077(_0x1a98db);})[_0x22a0b2('0x14')](function(_0x5bbcca){const _0x381014=_0x22a0b2;logger['error'](_0x381014('0x10'),_0x5bbcca['message'],_0x3045ad),_0x3f2762(_0x1fdb83[_0x381014('0xe')](0x1f4,_0x5bbcca[_0x381014('0xd')]));});});}; \ No newline at end of file +const a244_0x232b=['where','../../config/logger','attributes','then','debug','include','error','ShowDynamics365Account','raw','map','Dynamics365Account','GetDynamics365Account','info','options','limit','findOne','catch','message','stringify','model'];(function(_0x453e49,_0x232b9a){const _0xb85d7b=function(_0x405d3b){while(--_0x405d3b){_0x453e49['push'](_0x453e49['shift']());}};_0xb85d7b(++_0x232b9a);}(a244_0x232b,0x129));const a244_0xb85d=function(_0x453e49,_0x232b9a){_0x453e49=_0x453e49-0x0;let _0xb85d7b=a244_0x232b[_0x453e49];return _0xb85d7b;};const _0x1127f5=a244_0xb85d;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x1127f5('0x4'))('rpc');exports['GetDynamics365Account']=function(_0x405d3b){const _0x5cdc7c=this;return new Promise(function(_0x305f9e,_0x114cb5){const _0x205a24=a244_0xb85d;return db['Dynamics365Account']['findAll']({'raw':_0x405d3b['options']?_0x405d3b[_0x205a24('0x10')][_0x205a24('0xb')]===undefined?!![]:![]:!![],'where':_0x405d3b[_0x205a24('0x10')]?_0x405d3b[_0x205a24('0x10')][_0x205a24('0x3')]||null:null,'attributes':_0x405d3b[_0x205a24('0x10')]?_0x405d3b[_0x205a24('0x10')]['attributes']||null:null,'limit':_0x405d3b[_0x205a24('0x10')]?_0x405d3b['options'][_0x205a24('0x11')]||null:null,'include':_0x405d3b[_0x205a24('0x10')]?_0x405d3b['options']['include']?_[_0x205a24('0xc')](_0x405d3b[_0x205a24('0x10')][_0x205a24('0x8')],function(_0xc55c53){const _0x5c8e36=_0x205a24;return{'model':db[_0xc55c53['model']],'as':_0xc55c53['as'],'attributes':_0xc55c53[_0x5c8e36('0x5')],'include':_0xc55c53['include']?_['map'](_0xc55c53[_0x5c8e36('0x8')],function(_0x5a618f){const _0x1e67b9=_0x5c8e36;return{'model':db[_0x5a618f[_0x1e67b9('0x2')]],'as':_0x5a618f['as'],'attributes':_0x5a618f['attributes'],'include':_0x5a618f['include']?_[_0x1e67b9('0xc')](_0x5a618f[_0x1e67b9('0x8')],function(_0x2b483c){const _0x531a24=_0x1e67b9;return{'model':db[_0x2b483c[_0x531a24('0x2')]],'as':_0x2b483c['as'],'attributes':_0x2b483c[_0x531a24('0x5')]};}):[]};}):[]};}):[]:[]})[_0x205a24('0x6')](function(_0x45eb60){const _0x3aa2cc=_0x205a24;logger[_0x3aa2cc('0xf')](_0x3aa2cc('0xe'),_0x405d3b),logger[_0x3aa2cc('0x7')](_0x3aa2cc('0xe'),_0x405d3b,JSON[_0x3aa2cc('0x1')](_0x45eb60)),_0x305f9e(_0x45eb60);})[_0x205a24('0x13')](function(_0x476ba2){const _0x290b62=_0x205a24;logger[_0x290b62('0x9')](_0x290b62('0xe'),_0x476ba2[_0x290b62('0x0')],_0x405d3b),_0x114cb5(_0x5cdc7c['error'](0x1f4,_0x476ba2[_0x290b62('0x0')]));});});},exports[_0x1127f5('0xa')]=function(_0x1a8448){const _0x30dcc3=this;return new Promise(function(_0x92ff8,_0x2c1a2f){const _0x19d053=a244_0xb85d;return db[_0x19d053('0xd')][_0x19d053('0x12')]({'raw':_0x1a8448[_0x19d053('0x10')]?_0x1a8448[_0x19d053('0x10')][_0x19d053('0xb')]===undefined?!![]:![]:!![],'where':_0x1a8448[_0x19d053('0x10')]?_0x1a8448[_0x19d053('0x10')][_0x19d053('0x3')]||null:null,'attributes':_0x1a8448[_0x19d053('0x10')]?_0x1a8448[_0x19d053('0x10')][_0x19d053('0x5')]||null:null,'include':_0x1a8448[_0x19d053('0x10')]?_0x1a8448[_0x19d053('0x10')][_0x19d053('0x8')]?_['map'](_0x1a8448['options'][_0x19d053('0x8')],function(_0x2aa0ab){const _0x3058ab=_0x19d053;return{'model':db[_0x2aa0ab['model']],'as':_0x2aa0ab['as'],'attributes':_0x2aa0ab[_0x3058ab('0x5')],'include':_0x2aa0ab[_0x3058ab('0x8')]?_['map'](_0x2aa0ab['include'],function(_0x5ed0b9){const _0xc66a6c=_0x3058ab;return{'model':db[_0x5ed0b9[_0xc66a6c('0x2')]],'as':_0x5ed0b9['as'],'attributes':_0x5ed0b9['attributes'],'include':_0x5ed0b9[_0xc66a6c('0x8')]?_[_0xc66a6c('0xc')](_0x5ed0b9[_0xc66a6c('0x8')],function(_0x1c0582){const _0x415824=_0xc66a6c;return{'model':db[_0x1c0582[_0x415824('0x2')]],'as':_0x1c0582['as'],'attributes':_0x1c0582[_0x415824('0x5')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x34f761){const _0x55e06d=_0x19d053;logger[_0x55e06d('0xf')]('ShowDynamics365Account',_0x1a8448),logger[_0x55e06d('0x7')](_0x55e06d('0xa'),_0x1a8448,JSON['stringify'](_0x34f761)),_0x92ff8(_0x34f761);})[_0x19d053('0x13')](function(_0x3811ce){const _0x5155ab=_0x19d053;logger[_0x5155ab('0x9')]('ShowDynamics365Account',_0x3811ce[_0x5155ab('0x0')],_0x1a8448),_0x2c1a2f(_0x30dcc3[_0x5155ab('0x9')](0x1f4,_0x3811ce[_0x5155ab('0x0')]));});});}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/index.js b/server/api/intDynamics365Configuration/index.js index a9bdba4..e4ac6f1 100644 --- a/server/api/intDynamics365Configuration/index.js +++ b/server/api/intDynamics365Configuration/index.js @@ -1 +1 @@ -const a245_0x4460=['express','getFields','../../components/auth/service','Router','/:id/fields','get','post','/:id','getDescriptions','show','getSubjects','delete','isAuthenticated','put','create','update','/:id/subjects','/:id/descriptions','./intDynamics365Configuration.controller'];(function(_0x9f1d9c,_0x446078){const _0x454a26=function(_0x42eb8b){while(--_0x42eb8b){_0x9f1d9c['push'](_0x9f1d9c['shift']());}};_0x454a26(++_0x446078);}(a245_0x4460,0x95));const a245_0x454a=function(_0x9f1d9c,_0x446078){_0x9f1d9c=_0x9f1d9c-0x0;let _0x454a26=a245_0x4460[_0x9f1d9c];return _0x454a26;};const _0x19f29c=a245_0x454a;'use strict';const express=require(_0x19f29c('0x3')),router=express[_0x19f29c('0x6')](),auth=require(_0x19f29c('0x5')),controller=require(_0x19f29c('0x2'));router[_0x19f29c('0x8')]('/',auth[_0x19f29c('0xf')](),controller['index']),router[_0x19f29c('0x8')](_0x19f29c('0xa'),auth['isAuthenticated'](),controller[_0x19f29c('0xc')]),router[_0x19f29c('0x8')](_0x19f29c('0x7'),auth[_0x19f29c('0xf')](),controller[_0x19f29c('0x4')]),router['get'](_0x19f29c('0x0'),auth['isAuthenticated'](),controller[_0x19f29c('0xd')]),router[_0x19f29c('0x8')](_0x19f29c('0x1'),auth['isAuthenticated'](),controller[_0x19f29c('0xb')]),router[_0x19f29c('0x9')]('/',auth[_0x19f29c('0xf')](),controller[_0x19f29c('0x11')]),router[_0x19f29c('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x19f29c('0x12')]),router[_0x19f29c('0xe')](_0x19f29c('0xa'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a245_0x8223=['put','/:id','get','getFields','update','getDescriptions','delete','isAuthenticated','create','../../components/auth/service','exports','express','/:id/fields','show','/:id/descriptions','post','getSubjects','/:id/subjects'];(function(_0x2dccd5,_0x8223b0){const _0x314491=function(_0x29ce41){while(--_0x29ce41){_0x2dccd5['push'](_0x2dccd5['shift']());}};_0x314491(++_0x8223b0);}(a245_0x8223,0x1f4));const a245_0x3144=function(_0x2dccd5,_0x8223b0){_0x2dccd5=_0x2dccd5-0x0;let _0x314491=a245_0x8223[_0x2dccd5];return _0x314491;};const _0x2f780b=a245_0x3144;'use strict';const express=require(_0x2f780b('0xf')),router=express['Router'](),auth=require(_0x2f780b('0xd')),controller=require('./intDynamics365Configuration.controller');router[_0x2f780b('0x6')]('/',auth[_0x2f780b('0xb')](),controller['index']),router[_0x2f780b('0x6')]('/:id',auth[_0x2f780b('0xb')](),controller[_0x2f780b('0x11')]),router[_0x2f780b('0x6')](_0x2f780b('0x10'),auth[_0x2f780b('0xb')](),controller[_0x2f780b('0x7')]),router[_0x2f780b('0x6')](_0x2f780b('0x3'),auth[_0x2f780b('0xb')](),controller[_0x2f780b('0x2')]),router[_0x2f780b('0x6')](_0x2f780b('0x0'),auth[_0x2f780b('0xb')](),controller[_0x2f780b('0x9')]),router[_0x2f780b('0x1')]('/',auth['isAuthenticated'](),controller[_0x2f780b('0xc')]),router[_0x2f780b('0x4')](_0x2f780b('0x5'),auth[_0x2f780b('0xb')](),controller[_0x2f780b('0x8')]),router[_0x2f780b('0xa')](_0x2f780b('0x5'),auth[_0x2f780b('0xb')](),controller['destroy']),module[_0x2f780b('0xe')]=router; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js index d054b30..2bba6d0 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js @@ -1 +1 @@ -const a246_0x190e=['ENUM','phonecall','STRING','incident','exports'];(function(_0x135373,_0x190e84){const _0x433c77=function(_0x57ebcd){while(--_0x57ebcd){_0x135373['push'](_0x135373['shift']());}};_0x433c77(++_0x190e84);}(a246_0x190e,0x138));const a246_0x433c=function(_0x135373,_0x190e84){_0x135373=_0x135373-0x0;let _0x433c77=a246_0x190e[_0x135373];return _0x433c77;};const _0x31d14d=a246_0x433c;'use strict';const Sequelize=require('sequelize');module[_0x31d14d('0x2')]={'name':{'type':Sequelize[_0x31d14d('0x0')]},'description':{'type':Sequelize[_0x31d14d('0x0')]},'ticketType':{'type':Sequelize[_0x31d14d('0x3')](_0x31d14d('0x1'),_0x31d14d('0x4')),'defaultValue':_0x31d14d('0x1')}}; \ No newline at end of file +const a246_0x57ec=['sequelize','incident','ENUM','STRING'];(function(_0xa564cf,_0x57ecdc){const _0x1d9949=function(_0x35b89b){while(--_0x35b89b){_0xa564cf['push'](_0xa564cf['shift']());}};_0x1d9949(++_0x57ecdc);}(a246_0x57ec,0x138));const a246_0x1d99=function(_0xa564cf,_0x57ecdc){_0xa564cf=_0xa564cf-0x0;let _0x1d9949=a246_0x57ec[_0xa564cf];return _0x1d9949;};const _0x1be43f=a246_0x1d99;'use strict';const Sequelize=require(_0x1be43f('0x0'));module['exports']={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x1be43f('0x3')]},'ticketType':{'type':Sequelize[_0x1be43f('0x2')](_0x1be43f('0x1'),'phonecall'),'defaultValue':_0x1be43f('0x1')}}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js index d2d9ded..5b621cc 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js @@ -1 +1 @@ -const a247_0x3566=['catch','fieldName','set','nolimit','params','rawAttributes','sendStatus','query','show','fields','filter','api','../../mysqldb','findOne','stack','where','attributes','map','options','create','pick','includeAll','Dynamics365Field','json','intersection','getFields','status','filters','getDescriptions','VIRTUAL','Content-Range','type','offset','length','rows','model','update','merge','../../components/parsers/qs','like','lodash','../../config/logger','findAll','name','then','getSubjects','order','Dynamics365Configuration','key','sort','body','error','undefined','index','keys','include','limit','sequelize','send','count'];(function(_0xe7abd1,_0x356628){const _0x15cbb3=function(_0x337cde){while(--_0x337cde){_0xe7abd1['push'](_0xe7abd1['shift']());}};_0x15cbb3(++_0x356628);}(a247_0x3566,0xf5));const a247_0x15cb=function(_0xe7abd1,_0x356628){_0xe7abd1=_0xe7abd1-0x0;let _0x15cbb3=a247_0x3566[_0xe7abd1];return _0x15cbb3;};const _0x1908e7=a247_0x15cb;'use strict';const _=require(_0x1908e7('0x23')),qs=require(_0x1908e7('0x21')),logger=require(_0x1908e7('0x24'))(_0x1908e7('0x6')),db=require(_0x1908e7('0x7'))['db'],{Op}=require(_0x1908e7('0x34'));function respondWithResult(_0x337cde,_0x5a85ee){return _0x5a85ee=_0x5a85ee||0xc8,function(_0x484080){const _0x4ed648=a247_0x15cb;if(_0x484080)return _0x337cde[_0x4ed648('0x15')](_0x5a85ee)[_0x4ed648('0x12')](_0x484080);};}function respondWithFilteredResult(_0x3b0209,_0x3e9d12){return function(_0x4a3716){const _0x558caf=a247_0x15cb;if(_0x4a3716){const _0x3b93a4=_0x4a3716[_0x558caf('0x36')],_0x4eadbc=_0x3e9d12[_0x558caf('0x1b')];let _0xf66947=_0x3e9d12[_0x558caf('0x1b')]+_0x3e9d12[_0x558caf('0x33')],_0x2f920a;return _0xf66947>=_0x3b93a4?(_0xf66947=_0x3b93a4,_0x2f920a=0xc8):_0x2f920a=0xce,_0x3b0209['status'](_0x2f920a),_0x3b0209[_0x558caf('0x39')](_0x558caf('0x19'),_0x4eadbc+'-'+_0xf66947+'/'+_0x3b93a4)[_0x558caf('0x12')](_0x4a3716);}return null;};}function saveUpdates(_0x25ee0e){return function(_0x38e8d7){const _0x55dfcc=a247_0x15cb;if(_0x38e8d7)return _0x38e8d7[_0x55dfcc('0x1f')](_0x25ee0e)['then'](function(_0x13269b){return _0x13269b;});return null;};}function removeEntity(_0x4a5064){return function(_0xa061d8){const _0x55e9c4=a247_0x15cb;if(_0xa061d8)return _0xa061d8['destroy']()[_0x55e9c4('0x27')](function(){const _0xa9690c=_0x55e9c4;_0x4a5064[_0xa9690c('0x15')](0xcc)['end']();});};}function handleEntityNotFound(_0x2ff39e){return function(_0x190ae8){const _0x2f655d=a247_0x15cb;return!_0x190ae8&&_0x2ff39e[_0x2f655d('0x1')](0x194),_0x190ae8;};}function handleError(_0x37f018,_0x597c09){return _0x597c09=_0x597c09||0x1f4,function(_0xaf63c2){const _0x2e696c=a247_0x15cb;logger[_0x2e696c('0x2e')](_0xaf63c2[_0x2e696c('0x9')]),_0xaf63c2['name']&&delete _0xaf63c2[_0x2e696c('0x26')],_0x37f018[_0x2e696c('0x15')](_0x597c09)[_0x2e696c('0x35')](_0xaf63c2);};}exports[_0x1908e7('0x30')]=function(_0x32c0e2,_0x63891f){const _0x93dbc0=_0x1908e7;let _0x4d64d5={};const _0x31c940={},_0x303546={'count':0x0,'rows':[]},_0x5e5b60=_[_0x93dbc0('0xc')](db[_0x93dbc0('0x2a')]['rawAttributes'],function(_0x2f5170){const _0x31036d=_0x93dbc0;return{'name':_0x2f5170[_0x31036d('0x38')],'type':_0x2f5170[_0x31036d('0x1a')][_0x31036d('0x2b')]};});_0x31c940['model']=_['map'](_0x5e5b60,_0x93dbc0('0x26')),_0x31c940['query']=_['keys'](_0x32c0e2[_0x93dbc0('0x2')]),_0x31c940[_0x93dbc0('0x16')]=_['intersection'](_0x31c940[_0x93dbc0('0x1e')],_0x31c940[_0x93dbc0('0x2')]),_0x4d64d5['attributes']=_[_0x93dbc0('0x13')](_0x31c940[_0x93dbc0('0x1e')],qs[_0x93dbc0('0x4')](_0x32c0e2[_0x93dbc0('0x2')][_0x93dbc0('0x4')])),_0x4d64d5['attributes']=_0x4d64d5[_0x93dbc0('0xb')]['length']?_0x4d64d5['attributes']:_0x31c940[_0x93dbc0('0x1e')];typeof _0x32c0e2['query']['nolimit']===_0x93dbc0('0x2f')&&(_0x4d64d5[_0x93dbc0('0x33')]=qs[_0x93dbc0('0x33')](_0x32c0e2[_0x93dbc0('0x2')]['limit']),_0x4d64d5[_0x93dbc0('0x1b')]=qs[_0x93dbc0('0x1b')](_0x32c0e2['query'][_0x93dbc0('0x1b')]));_0x4d64d5[_0x93dbc0('0x29')]=qs[_0x93dbc0('0x2c')](_0x32c0e2[_0x93dbc0('0x2')]['sort']),_0x4d64d5['where']=qs[_0x93dbc0('0x16')](_[_0x93dbc0('0xf')](_0x32c0e2[_0x93dbc0('0x2')],_0x31c940[_0x93dbc0('0x16')]),_0x5e5b60);_0x32c0e2[_0x93dbc0('0x2')]['filter']&&(_0x4d64d5['where']=_[_0x93dbc0('0x20')](_0x4d64d5['where'],{[Op['or']]:_[_0x93dbc0('0xc')](_0x5e5b60,function(_0x3ce03b){const _0x56cb2e=_0x93dbc0;if(_0x3ce03b['type']!==_0x56cb2e('0x18')){const _0x211d32={};return _0x211d32[_0x3ce03b[_0x56cb2e('0x26')]]={[Op[_0x56cb2e('0x22')]]:'%'+_0x32c0e2[_0x56cb2e('0x2')][_0x56cb2e('0x5')]+'%'},_0x211d32;}})}));_0x4d64d5=_['merge']({},_0x4d64d5,_0x32c0e2[_0x93dbc0('0xd')]);const _0x301b7a={'where':_0x4d64d5[_0x93dbc0('0xa')]};return db[_0x93dbc0('0x2a')]['count'](_0x301b7a)[_0x93dbc0('0x27')](function(_0x14072a){const _0x2892b2=_0x93dbc0;return _0x303546[_0x2892b2('0x36')]=_0x14072a,_0x32c0e2['query'][_0x2892b2('0x10')]&&(_0x4d64d5[_0x2892b2('0x32')]=[{'all':!![]}]),db[_0x2892b2('0x2a')][_0x2892b2('0x25')](_0x4d64d5);})['then'](function(_0x35adbb){const _0x533425=_0x93dbc0;return _0x303546[_0x533425('0x1d')]=_0x35adbb,_0x303546;})['then'](respondWithFilteredResult(_0x63891f,_0x4d64d5))[_0x93dbc0('0x37')](handleError(_0x63891f,null));},exports[_0x1908e7('0x3')]=function(_0x89ffec,_0x4d933e){const _0x45bda9=_0x1908e7;let _0x2402a5={'raw':![],'where':{'id':_0x89ffec[_0x45bda9('0x3b')]['id']}};const _0x3fb7ac={};return _0x3fb7ac[_0x45bda9('0x1e')]=_[_0x45bda9('0x31')](db[_0x45bda9('0x2a')][_0x45bda9('0x0')]),_0x3fb7ac['query']=_['keys'](_0x89ffec[_0x45bda9('0x2')]),_0x3fb7ac['filters']=_[_0x45bda9('0x13')](_0x3fb7ac[_0x45bda9('0x1e')],_0x3fb7ac['query']),_0x2402a5[_0x45bda9('0xb')]=_[_0x45bda9('0x13')](_0x3fb7ac['model'],qs[_0x45bda9('0x4')](_0x89ffec['query'][_0x45bda9('0x4')])),_0x2402a5['attributes']=_0x2402a5[_0x45bda9('0xb')][_0x45bda9('0x1c')]?_0x2402a5[_0x45bda9('0xb')]:_0x3fb7ac[_0x45bda9('0x1e')],_0x89ffec[_0x45bda9('0x2')][_0x45bda9('0x10')]&&(_0x2402a5[_0x45bda9('0x32')]=[{'all':!![]}]),_0x2402a5=_[_0x45bda9('0x20')]({},_0x2402a5,_0x89ffec[_0x45bda9('0xd')]),db[_0x45bda9('0x2a')][_0x45bda9('0x8')](_0x2402a5)['then'](handleEntityNotFound(_0x4d933e,null))[_0x45bda9('0x27')](respondWithResult(_0x4d933e,null))[_0x45bda9('0x37')](handleError(_0x4d933e,null));},exports[_0x1908e7('0xe')]=function(_0x1e4df6,_0x2b0c9b){const _0x17215f=_0x1908e7;return db['Dynamics365Configuration'][_0x17215f('0xe')](_0x1e4df6[_0x17215f('0x2d')],{})[_0x17215f('0x27')](respondWithResult(_0x2b0c9b,0xc9))[_0x17215f('0x37')](handleError(_0x2b0c9b,null));},exports[_0x1908e7('0x1f')]=function(_0x93d1d2,_0x4e67f1){const _0x3b71bc=_0x1908e7;return _0x93d1d2[_0x3b71bc('0x2d')]['id']&&delete _0x93d1d2['body']['id'],db['Dynamics365Configuration']['findOne']({'where':{'id':_0x93d1d2[_0x3b71bc('0x3b')]['id']}})[_0x3b71bc('0x27')](handleEntityNotFound(_0x4e67f1,null))['then'](saveUpdates(_0x93d1d2[_0x3b71bc('0x2d')],null))[_0x3b71bc('0x27')](respondWithResult(_0x4e67f1,null))['catch'](handleError(_0x4e67f1,null));},exports['destroy']=function(_0x45f7bb,_0x10c893){const _0x7d196d=_0x1908e7;return db[_0x7d196d('0x2a')][_0x7d196d('0x8')]({'where':{'id':_0x45f7bb[_0x7d196d('0x3b')]['id']}})[_0x7d196d('0x27')](handleEntityNotFound(_0x10c893,null))[_0x7d196d('0x27')](removeEntity(_0x10c893,null))[_0x7d196d('0x37')](handleError(_0x10c893,null));},exports[_0x1908e7('0x14')]=function(_0x5371cd,_0xfa45d3){const _0x2d42a4=_0x1908e7;let _0x1a3a3f={};const _0x4fe4ec={};let _0x9b5e91,_0x4c8683;return db[_0x2d42a4('0x2a')][_0x2d42a4('0x8')]({'where':{'id':_0x5371cd['params']['id']}})[_0x2d42a4('0x27')](handleEntityNotFound(_0xfa45d3,null))['then'](function(_0x4068c7){const _0x210ef2=_0x2d42a4;if(_0x4068c7)return _0x9b5e91=_0x4068c7,_0x4fe4ec[_0x210ef2('0x1e')]=_['keys'](db[_0x210ef2('0x11')][_0x210ef2('0x0')]),_0x4fe4ec[_0x210ef2('0x2')]=_[_0x210ef2('0x31')](_0x5371cd[_0x210ef2('0x2')]),_0x4fe4ec[_0x210ef2('0x16')]=_[_0x210ef2('0x13')](_0x4fe4ec[_0x210ef2('0x1e')],_0x4fe4ec[_0x210ef2('0x2')]),_0x1a3a3f[_0x210ef2('0xb')]=_[_0x210ef2('0x13')](_0x4fe4ec[_0x210ef2('0x1e')],qs[_0x210ef2('0x4')](_0x5371cd[_0x210ef2('0x2')][_0x210ef2('0x4')])),_0x1a3a3f[_0x210ef2('0xb')]=_0x1a3a3f[_0x210ef2('0xb')]['length']?_0x1a3a3f[_0x210ef2('0xb')]:_0x4fe4ec[_0x210ef2('0x1e')],_0x1a3a3f['order']=qs[_0x210ef2('0x2c')](_0x5371cd[_0x210ef2('0x2')][_0x210ef2('0x2c')]),_0x1a3a3f[_0x210ef2('0xa')]=qs[_0x210ef2('0x16')](_['pick'](_0x5371cd[_0x210ef2('0x2')],_0x4fe4ec[_0x210ef2('0x16')])),_0x5371cd[_0x210ef2('0x2')]['filter']&&(_0x1a3a3f[_0x210ef2('0xa')]=_[_0x210ef2('0x20')](_0x1a3a3f['where'],{[Op['or']]:_[_0x210ef2('0xc')](_0x1a3a3f[_0x210ef2('0xb')],function(_0x598674){const _0x221c65=_0x210ef2,_0x20d999={};return _0x20d999[_0x598674]={[Op[_0x221c65('0x22')]]:'%'+_0x5371cd[_0x221c65('0x2')]['filter']+'%'},_0x20d999;})})),_0x1a3a3f=_[_0x210ef2('0x20')]({},_0x1a3a3f,_0x5371cd[_0x210ef2('0xd')]),_0x9b5e91[_0x210ef2('0x14')](_0x1a3a3f);})[_0x2d42a4('0x27')](function(_0x3e6857){const _0x4acbba=_0x2d42a4;if(_0x3e6857)return _0x4c8683=_0x3e6857['length'],typeof _0x5371cd[_0x4acbba('0x2')][_0x4acbba('0x3a')]===_0x4acbba('0x2f')&&(_0x1a3a3f[_0x4acbba('0x33')]=qs['limit'](_0x5371cd[_0x4acbba('0x2')]['limit']),_0x1a3a3f[_0x4acbba('0x1b')]=qs[_0x4acbba('0x1b')](_0x5371cd['query']['offset'])),_0x9b5e91[_0x4acbba('0x14')](_0x1a3a3f);})[_0x2d42a4('0x27')](function(_0x40167c){if(_0x40167c)return _0x40167c?{'count':_0x4c8683,'rows':_0x40167c}:null;})['then'](respondWithResult(_0xfa45d3,null))['catch'](handleError(_0xfa45d3,null));},exports[_0x1908e7('0x28')]=function(_0x2d7e66,_0x16719f){const _0x3e6ba5=_0x1908e7;let _0x1ad477={};const _0x2857bd={};let _0x16168a,_0x4d9b61;return db['Dynamics365Configuration'][_0x3e6ba5('0x8')]({'where':{'id':_0x2d7e66[_0x3e6ba5('0x3b')]['id']}})['then'](handleEntityNotFound(_0x16719f,null))[_0x3e6ba5('0x27')](function(_0x4103bf){const _0x53ae4d=_0x3e6ba5;if(_0x4103bf)return _0x16168a=_0x4103bf,_0x2857bd['model']=_['keys'](db['Dynamics365Field'][_0x53ae4d('0x0')]),_0x2857bd[_0x53ae4d('0x2')]=_[_0x53ae4d('0x31')](_0x2d7e66['query']),_0x2857bd[_0x53ae4d('0x16')]=_[_0x53ae4d('0x13')](_0x2857bd[_0x53ae4d('0x1e')],_0x2857bd[_0x53ae4d('0x2')]),_0x1ad477[_0x53ae4d('0xb')]=_[_0x53ae4d('0x13')](_0x2857bd[_0x53ae4d('0x1e')],qs[_0x53ae4d('0x4')](_0x2d7e66[_0x53ae4d('0x2')][_0x53ae4d('0x4')])),_0x1ad477[_0x53ae4d('0xb')]=_0x1ad477[_0x53ae4d('0xb')][_0x53ae4d('0x1c')]?_0x1ad477[_0x53ae4d('0xb')]:_0x2857bd[_0x53ae4d('0x1e')],_0x1ad477[_0x53ae4d('0x29')]=qs[_0x53ae4d('0x2c')](_0x2d7e66[_0x53ae4d('0x2')][_0x53ae4d('0x2c')]),_0x1ad477[_0x53ae4d('0xa')]=qs[_0x53ae4d('0x16')](_[_0x53ae4d('0xf')](_0x2d7e66['query'],_0x2857bd[_0x53ae4d('0x16')])),_0x2d7e66[_0x53ae4d('0x2')]['filter']&&(_0x1ad477[_0x53ae4d('0xa')]=_[_0x53ae4d('0x20')](_0x1ad477['where'],{[Op['or']]:_[_0x53ae4d('0xc')](_0x1ad477[_0x53ae4d('0xb')],function(_0x3a7931){const _0x5c6c91=_0x53ae4d,_0x44a7dd={};return _0x44a7dd[_0x3a7931]={[Op['like']]:'%'+_0x2d7e66[_0x5c6c91('0x2')][_0x5c6c91('0x5')]+'%'},_0x44a7dd;})})),_0x1ad477=_[_0x53ae4d('0x20')]({},_0x1ad477,_0x2d7e66[_0x53ae4d('0xd')]),_0x16168a[_0x53ae4d('0x28')](_0x1ad477);})[_0x3e6ba5('0x27')](function(_0x11ab5d){const _0x31ef63=_0x3e6ba5;if(_0x11ab5d)return _0x4d9b61=_0x11ab5d[_0x31ef63('0x1c')],typeof _0x2d7e66[_0x31ef63('0x2')][_0x31ef63('0x3a')]===_0x31ef63('0x2f')&&(_0x1ad477['limit']=qs[_0x31ef63('0x33')](_0x2d7e66[_0x31ef63('0x2')][_0x31ef63('0x33')]),_0x1ad477[_0x31ef63('0x1b')]=qs[_0x31ef63('0x1b')](_0x2d7e66[_0x31ef63('0x2')]['offset'])),_0x16168a[_0x31ef63('0x28')](_0x1ad477);})[_0x3e6ba5('0x27')](function(_0x3bc035){if(_0x3bc035)return _0x3bc035?{'count':_0x4d9b61,'rows':_0x3bc035}:null;})[_0x3e6ba5('0x27')](respondWithResult(_0x16719f,null))[_0x3e6ba5('0x37')](handleError(_0x16719f,null));},exports['getDescriptions']=function(_0x2c3f09,_0x15aa96){const _0x50f458=_0x1908e7;let _0x32a6cf={};const _0x18cf10={};let _0x19a8dd,_0x282f2a;return db[_0x50f458('0x2a')]['findOne']({'where':{'id':_0x2c3f09['params']['id']}})['then'](handleEntityNotFound(_0x15aa96,null))['then'](function(_0x4c8255){const _0x18ac76=_0x50f458;if(_0x4c8255)return _0x19a8dd=_0x4c8255,_0x18cf10[_0x18ac76('0x1e')]=_[_0x18ac76('0x31')](db[_0x18ac76('0x11')][_0x18ac76('0x0')]),_0x18cf10[_0x18ac76('0x2')]=_[_0x18ac76('0x31')](_0x2c3f09['query']),_0x18cf10[_0x18ac76('0x16')]=_[_0x18ac76('0x13')](_0x18cf10[_0x18ac76('0x1e')],_0x18cf10['query']),_0x32a6cf['attributes']=_[_0x18ac76('0x13')](_0x18cf10['model'],qs[_0x18ac76('0x4')](_0x2c3f09['query'][_0x18ac76('0x4')])),_0x32a6cf[_0x18ac76('0xb')]=_0x32a6cf[_0x18ac76('0xb')][_0x18ac76('0x1c')]?_0x32a6cf['attributes']:_0x18cf10[_0x18ac76('0x1e')],_0x32a6cf[_0x18ac76('0x29')]=qs[_0x18ac76('0x2c')](_0x2c3f09['query']['sort']),_0x32a6cf[_0x18ac76('0xa')]=qs[_0x18ac76('0x16')](_['pick'](_0x2c3f09[_0x18ac76('0x2')],_0x18cf10[_0x18ac76('0x16')])),_0x2c3f09[_0x18ac76('0x2')][_0x18ac76('0x5')]&&(_0x32a6cf['where']=_['merge'](_0x32a6cf[_0x18ac76('0xa')],{[Op['or']]:_[_0x18ac76('0xc')](_0x32a6cf[_0x18ac76('0xb')],function(_0x565641){const _0x1fa85c=_0x18ac76,_0x43e0d3={};return _0x43e0d3[_0x565641]={[Op[_0x1fa85c('0x22')]]:'%'+_0x2c3f09[_0x1fa85c('0x2')][_0x1fa85c('0x5')]+'%'},_0x43e0d3;})})),_0x32a6cf=_[_0x18ac76('0x20')]({},_0x32a6cf,_0x2c3f09[_0x18ac76('0xd')]),_0x19a8dd[_0x18ac76('0x17')](_0x32a6cf);})[_0x50f458('0x27')](function(_0x17a289){const _0xc21976=_0x50f458;if(_0x17a289)return _0x282f2a=_0x17a289[_0xc21976('0x1c')],typeof _0x2c3f09[_0xc21976('0x2')]['nolimit']===_0xc21976('0x2f')&&(_0x32a6cf['limit']=qs[_0xc21976('0x33')](_0x2c3f09['query'][_0xc21976('0x33')]),_0x32a6cf[_0xc21976('0x1b')]=qs[_0xc21976('0x1b')](_0x2c3f09[_0xc21976('0x2')]['offset'])),_0x19a8dd[_0xc21976('0x17')](_0x32a6cf);})[_0x50f458('0x27')](function(_0x1b2e58){if(_0x1b2e58)return _0x1b2e58?{'count':_0x282f2a,'rows':_0x1b2e58}:null;})[_0x50f458('0x27')](respondWithResult(_0x15aa96,null))['catch'](handleError(_0x15aa96,null));}; \ No newline at end of file +const a247_0x4acd=['includeAll','destroy','error','VIRTUAL','sort','Dynamics365Configuration','pick','filters','map','lodash','stack','name','Content-Range','then','json','undefined','../../config/logger','findOne','intersection','include','getDescriptions','../../mysqldb','options','offset','update','getSubjects','where','rows','merge','length','body','query','order','limit','nolimit','findAll','send','fieldName','end','keys','set','type','params','status','model','create','like','fields','count','getFields','Dynamics365Field','catch','sendStatus','key','attributes','show','rawAttributes','filter'];(function(_0x376a2f,_0x4acdee){const _0x524890=function(_0x569c52){while(--_0x569c52){_0x376a2f['push'](_0x376a2f['shift']());}};_0x524890(++_0x4acdee);}(a247_0x4acd,0x114));const a247_0x5248=function(_0x376a2f,_0x4acdee){_0x376a2f=_0x376a2f-0x0;let _0x524890=a247_0x4acd[_0x376a2f];return _0x524890;};const _0x276e60=a247_0x5248;'use strict';const _=require(_0x276e60('0x17')),qs=require('../../components/parsers/qs'),logger=require(_0x276e60('0x1e'))('api'),db=require(_0x276e60('0x23'))['db'],{Op}=require('sequelize');function respondWithResult(_0x569c52,_0x51b8b3){return _0x51b8b3=_0x51b8b3||0xc8,function(_0x50dfba){if(_0x50dfba)return _0x569c52['status'](_0x51b8b3)['json'](_0x50dfba);};}function respondWithFilteredResult(_0x4acb5c,_0x380ae3){return function(_0xa0bfc6){const _0x54c7c8=a247_0x5248;if(_0xa0bfc6){const _0x2d3d53=_0xa0bfc6['count'],_0x54609a=_0x380ae3[_0x54c7c8('0x25')];let _0x5e15d6=_0x380ae3['offset']+_0x380ae3[_0x54c7c8('0x2f')],_0x27c2f9;return _0x5e15d6>=_0x2d3d53?(_0x5e15d6=_0x2d3d53,_0x27c2f9=0xc8):_0x27c2f9=0xce,_0x4acb5c[_0x54c7c8('0x39')](_0x27c2f9),_0x4acb5c[_0x54c7c8('0x36')](_0x54c7c8('0x1a'),_0x54609a+'-'+_0x5e15d6+'/'+_0x2d3d53)[_0x54c7c8('0x1c')](_0xa0bfc6);}return null;};}function saveUpdates(_0x515e5e){return function(_0x4f7993){const _0x1ccf78=a247_0x5248;if(_0x4f7993)return _0x4f7993[_0x1ccf78('0x26')](_0x515e5e)[_0x1ccf78('0x1b')](function(_0x117735){return _0x117735;});return null;};}function removeEntity(_0x1010ae){return function(_0xc0846a){const _0x54245d=a247_0x5248;if(_0xc0846a)return _0xc0846a[_0x54245d('0xf')]()[_0x54245d('0x1b')](function(){const _0x574f1a=_0x54245d;_0x1010ae[_0x574f1a('0x39')](0xcc)[_0x574f1a('0x34')]();});};}function handleEntityNotFound(_0x337370){return function(_0x88d5ba){const _0x5a84d5=a247_0x5248;return!_0x88d5ba&&_0x337370[_0x5a84d5('0x8')](0x194),_0x88d5ba;};}function handleError(_0x2f41ed,_0x4f71af){return _0x4f71af=_0x4f71af||0x1f4,function(_0x87ae5b){const _0x42dd82=a247_0x5248;logger[_0x42dd82('0x10')](_0x87ae5b[_0x42dd82('0x18')]),_0x87ae5b['name']&&delete _0x87ae5b[_0x42dd82('0x19')],_0x2f41ed[_0x42dd82('0x39')](_0x4f71af)[_0x42dd82('0x32')](_0x87ae5b);};}exports['index']=function(_0x232b31,_0x229786){const _0x2520bd=_0x276e60;let _0x4da4e6={};const _0x21699c={},_0x37b620={'count':0x0,'rows':[]},_0x1e757e=_[_0x2520bd('0x16')](db['Dynamics365Configuration'][_0x2520bd('0xc')],function(_0x1e86f5){const _0x1a8a21=_0x2520bd;return{'name':_0x1e86f5[_0x1a8a21('0x33')],'type':_0x1e86f5[_0x1a8a21('0x37')][_0x1a8a21('0x9')]};});_0x21699c[_0x2520bd('0x0')]=_[_0x2520bd('0x16')](_0x1e757e,_0x2520bd('0x19')),_0x21699c[_0x2520bd('0x2d')]=_[_0x2520bd('0x35')](_0x232b31['query']),_0x21699c[_0x2520bd('0x15')]=_[_0x2520bd('0x20')](_0x21699c[_0x2520bd('0x0')],_0x21699c['query']),_0x4da4e6[_0x2520bd('0xa')]=_[_0x2520bd('0x20')](_0x21699c[_0x2520bd('0x0')],qs['fields'](_0x232b31[_0x2520bd('0x2d')]['fields'])),_0x4da4e6['attributes']=_0x4da4e6[_0x2520bd('0xa')][_0x2520bd('0x2b')]?_0x4da4e6[_0x2520bd('0xa')]:_0x21699c[_0x2520bd('0x0')];typeof _0x232b31[_0x2520bd('0x2d')][_0x2520bd('0x30')]==='undefined'&&(_0x4da4e6[_0x2520bd('0x2f')]=qs['limit'](_0x232b31[_0x2520bd('0x2d')]['limit']),_0x4da4e6[_0x2520bd('0x25')]=qs[_0x2520bd('0x25')](_0x232b31[_0x2520bd('0x2d')][_0x2520bd('0x25')]));_0x4da4e6[_0x2520bd('0x2e')]=qs[_0x2520bd('0x12')](_0x232b31[_0x2520bd('0x2d')][_0x2520bd('0x12')]),_0x4da4e6[_0x2520bd('0x28')]=qs[_0x2520bd('0x15')](_[_0x2520bd('0x14')](_0x232b31[_0x2520bd('0x2d')],_0x21699c[_0x2520bd('0x15')]),_0x1e757e);_0x232b31[_0x2520bd('0x2d')][_0x2520bd('0xd')]&&(_0x4da4e6[_0x2520bd('0x28')]=_['merge'](_0x4da4e6['where'],{[Op['or']]:_[_0x2520bd('0x16')](_0x1e757e,function(_0x13fe64){const _0x15cea3=_0x2520bd;if(_0x13fe64[_0x15cea3('0x37')]!==_0x15cea3('0x11')){const _0x406082={};return _0x406082[_0x13fe64['name']]={[Op[_0x15cea3('0x2')]]:'%'+_0x232b31[_0x15cea3('0x2d')][_0x15cea3('0xd')]+'%'},_0x406082;}})}));_0x4da4e6=_['merge']({},_0x4da4e6,_0x232b31[_0x2520bd('0x24')]);const _0x55c651={'where':_0x4da4e6['where']};return db[_0x2520bd('0x13')][_0x2520bd('0x4')](_0x55c651)['then'](function(_0x5e7027){const _0x3cd874=_0x2520bd;return _0x37b620[_0x3cd874('0x4')]=_0x5e7027,_0x232b31['query'][_0x3cd874('0xe')]&&(_0x4da4e6['include']=[{'all':!![]}]),db['Dynamics365Configuration'][_0x3cd874('0x31')](_0x4da4e6);})[_0x2520bd('0x1b')](function(_0x1f7ecf){const _0x32aa07=_0x2520bd;return _0x37b620[_0x32aa07('0x29')]=_0x1f7ecf,_0x37b620;})[_0x2520bd('0x1b')](respondWithFilteredResult(_0x229786,_0x4da4e6))[_0x2520bd('0x7')](handleError(_0x229786,null));},exports[_0x276e60('0xb')]=function(_0x28fd4c,_0x52ec8d){const _0x878fc0=_0x276e60;let _0x42d478={'raw':![],'where':{'id':_0x28fd4c[_0x878fc0('0x38')]['id']}};const _0xefccd5={};return _0xefccd5[_0x878fc0('0x0')]=_['keys'](db[_0x878fc0('0x13')][_0x878fc0('0xc')]),_0xefccd5[_0x878fc0('0x2d')]=_[_0x878fc0('0x35')](_0x28fd4c[_0x878fc0('0x2d')]),_0xefccd5[_0x878fc0('0x15')]=_[_0x878fc0('0x20')](_0xefccd5[_0x878fc0('0x0')],_0xefccd5[_0x878fc0('0x2d')]),_0x42d478['attributes']=_['intersection'](_0xefccd5[_0x878fc0('0x0')],qs['fields'](_0x28fd4c[_0x878fc0('0x2d')]['fields'])),_0x42d478[_0x878fc0('0xa')]=_0x42d478[_0x878fc0('0xa')][_0x878fc0('0x2b')]?_0x42d478[_0x878fc0('0xa')]:_0xefccd5['model'],_0x28fd4c['query']['includeAll']&&(_0x42d478[_0x878fc0('0x21')]=[{'all':!![]}]),_0x42d478=_['merge']({},_0x42d478,_0x28fd4c['options']),db['Dynamics365Configuration']['findOne'](_0x42d478)[_0x878fc0('0x1b')](handleEntityNotFound(_0x52ec8d,null))['then'](respondWithResult(_0x52ec8d,null))['catch'](handleError(_0x52ec8d,null));},exports[_0x276e60('0x1')]=function(_0x574a0f,_0x479283){const _0x5f37cb=_0x276e60;return db[_0x5f37cb('0x13')][_0x5f37cb('0x1')](_0x574a0f[_0x5f37cb('0x2c')],{})['then'](respondWithResult(_0x479283,0xc9))[_0x5f37cb('0x7')](handleError(_0x479283,null));},exports[_0x276e60('0x26')]=function(_0x39fb96,_0x591c56){const _0x1625a5=_0x276e60;return _0x39fb96[_0x1625a5('0x2c')]['id']&&delete _0x39fb96[_0x1625a5('0x2c')]['id'],db['Dynamics365Configuration'][_0x1625a5('0x1f')]({'where':{'id':_0x39fb96[_0x1625a5('0x38')]['id']}})[_0x1625a5('0x1b')](handleEntityNotFound(_0x591c56,null))[_0x1625a5('0x1b')](saveUpdates(_0x39fb96[_0x1625a5('0x2c')],null))[_0x1625a5('0x1b')](respondWithResult(_0x591c56,null))[_0x1625a5('0x7')](handleError(_0x591c56,null));},exports[_0x276e60('0xf')]=function(_0xd571dd,_0x1dab53){const _0x460346=_0x276e60;return db[_0x460346('0x13')]['findOne']({'where':{'id':_0xd571dd['params']['id']}})['then'](handleEntityNotFound(_0x1dab53,null))[_0x460346('0x1b')](removeEntity(_0x1dab53,null))[_0x460346('0x7')](handleError(_0x1dab53,null));},exports['getFields']=function(_0x5b1687,_0x2adfa4){const _0x307e09=_0x276e60;let _0x2c4f19={};const _0x40b0bf={};let _0x396126,_0xa640f6;return db[_0x307e09('0x13')][_0x307e09('0x1f')]({'where':{'id':_0x5b1687[_0x307e09('0x38')]['id']}})[_0x307e09('0x1b')](handleEntityNotFound(_0x2adfa4,null))[_0x307e09('0x1b')](function(_0x2c2d73){const _0x5bd67c=_0x307e09;if(_0x2c2d73)return _0x396126=_0x2c2d73,_0x40b0bf[_0x5bd67c('0x0')]=_[_0x5bd67c('0x35')](db[_0x5bd67c('0x6')]['rawAttributes']),_0x40b0bf[_0x5bd67c('0x2d')]=_[_0x5bd67c('0x35')](_0x5b1687[_0x5bd67c('0x2d')]),_0x40b0bf[_0x5bd67c('0x15')]=_['intersection'](_0x40b0bf[_0x5bd67c('0x0')],_0x40b0bf[_0x5bd67c('0x2d')]),_0x2c4f19[_0x5bd67c('0xa')]=_['intersection'](_0x40b0bf[_0x5bd67c('0x0')],qs['fields'](_0x5b1687['query']['fields'])),_0x2c4f19[_0x5bd67c('0xa')]=_0x2c4f19[_0x5bd67c('0xa')][_0x5bd67c('0x2b')]?_0x2c4f19[_0x5bd67c('0xa')]:_0x40b0bf['model'],_0x2c4f19[_0x5bd67c('0x2e')]=qs[_0x5bd67c('0x12')](_0x5b1687[_0x5bd67c('0x2d')][_0x5bd67c('0x12')]),_0x2c4f19[_0x5bd67c('0x28')]=qs[_0x5bd67c('0x15')](_[_0x5bd67c('0x14')](_0x5b1687[_0x5bd67c('0x2d')],_0x40b0bf[_0x5bd67c('0x15')])),_0x5b1687[_0x5bd67c('0x2d')]['filter']&&(_0x2c4f19[_0x5bd67c('0x28')]=_[_0x5bd67c('0x2a')](_0x2c4f19['where'],{[Op['or']]:_[_0x5bd67c('0x16')](_0x2c4f19['attributes'],function(_0x2c0ca5){const _0x1e7228=_0x5bd67c,_0x33fd7a={};return _0x33fd7a[_0x2c0ca5]={[Op[_0x1e7228('0x2')]]:'%'+_0x5b1687[_0x1e7228('0x2d')][_0x1e7228('0xd')]+'%'},_0x33fd7a;})})),_0x2c4f19=_[_0x5bd67c('0x2a')]({},_0x2c4f19,_0x5b1687['options']),_0x396126[_0x5bd67c('0x5')](_0x2c4f19);})[_0x307e09('0x1b')](function(_0x8a87e6){const _0x546a33=_0x307e09;if(_0x8a87e6)return _0xa640f6=_0x8a87e6[_0x546a33('0x2b')],typeof _0x5b1687[_0x546a33('0x2d')][_0x546a33('0x30')]===_0x546a33('0x1d')&&(_0x2c4f19[_0x546a33('0x2f')]=qs[_0x546a33('0x2f')](_0x5b1687['query'][_0x546a33('0x2f')]),_0x2c4f19[_0x546a33('0x25')]=qs[_0x546a33('0x25')](_0x5b1687[_0x546a33('0x2d')]['offset'])),_0x396126[_0x546a33('0x5')](_0x2c4f19);})[_0x307e09('0x1b')](function(_0x25167b){if(_0x25167b)return _0x25167b?{'count':_0xa640f6,'rows':_0x25167b}:null;})[_0x307e09('0x1b')](respondWithResult(_0x2adfa4,null))['catch'](handleError(_0x2adfa4,null));},exports[_0x276e60('0x27')]=function(_0x4ce28a,_0x2264a5){const _0x418fcd=_0x276e60;let _0x3e9750={};const _0x4303a3={};let _0x301d2e,_0x5e1345;return db[_0x418fcd('0x13')][_0x418fcd('0x1f')]({'where':{'id':_0x4ce28a[_0x418fcd('0x38')]['id']}})[_0x418fcd('0x1b')](handleEntityNotFound(_0x2264a5,null))[_0x418fcd('0x1b')](function(_0x5296cd){const _0x1518dd=_0x418fcd;if(_0x5296cd)return _0x301d2e=_0x5296cd,_0x4303a3['model']=_[_0x1518dd('0x35')](db[_0x1518dd('0x6')][_0x1518dd('0xc')]),_0x4303a3[_0x1518dd('0x2d')]=_[_0x1518dd('0x35')](_0x4ce28a[_0x1518dd('0x2d')]),_0x4303a3[_0x1518dd('0x15')]=_[_0x1518dd('0x20')](_0x4303a3[_0x1518dd('0x0')],_0x4303a3['query']),_0x3e9750['attributes']=_[_0x1518dd('0x20')](_0x4303a3['model'],qs[_0x1518dd('0x3')](_0x4ce28a['query'][_0x1518dd('0x3')])),_0x3e9750[_0x1518dd('0xa')]=_0x3e9750[_0x1518dd('0xa')][_0x1518dd('0x2b')]?_0x3e9750['attributes']:_0x4303a3['model'],_0x3e9750[_0x1518dd('0x2e')]=qs[_0x1518dd('0x12')](_0x4ce28a['query'][_0x1518dd('0x12')]),_0x3e9750['where']=qs[_0x1518dd('0x15')](_['pick'](_0x4ce28a[_0x1518dd('0x2d')],_0x4303a3[_0x1518dd('0x15')])),_0x4ce28a[_0x1518dd('0x2d')][_0x1518dd('0xd')]&&(_0x3e9750[_0x1518dd('0x28')]=_['merge'](_0x3e9750[_0x1518dd('0x28')],{[Op['or']]:_[_0x1518dd('0x16')](_0x3e9750['attributes'],function(_0x141207){const _0x1b53d5=_0x1518dd,_0x3c27a5={};return _0x3c27a5[_0x141207]={[Op['like']]:'%'+_0x4ce28a[_0x1b53d5('0x2d')][_0x1b53d5('0xd')]+'%'},_0x3c27a5;})})),_0x3e9750=_[_0x1518dd('0x2a')]({},_0x3e9750,_0x4ce28a['options']),_0x301d2e[_0x1518dd('0x27')](_0x3e9750);})[_0x418fcd('0x1b')](function(_0xca573a){const _0xa117c9=_0x418fcd;if(_0xca573a)return _0x5e1345=_0xca573a['length'],typeof _0x4ce28a[_0xa117c9('0x2d')][_0xa117c9('0x30')]===_0xa117c9('0x1d')&&(_0x3e9750['limit']=qs['limit'](_0x4ce28a[_0xa117c9('0x2d')][_0xa117c9('0x2f')]),_0x3e9750[_0xa117c9('0x25')]=qs[_0xa117c9('0x25')](_0x4ce28a['query'][_0xa117c9('0x25')])),_0x301d2e[_0xa117c9('0x27')](_0x3e9750);})['then'](function(_0x494f2d){if(_0x494f2d)return _0x494f2d?{'count':_0x5e1345,'rows':_0x494f2d}:null;})[_0x418fcd('0x1b')](respondWithResult(_0x2264a5,null))[_0x418fcd('0x7')](handleError(_0x2264a5,null));},exports[_0x276e60('0x22')]=function(_0x2d9cff,_0x3c938f){const _0x88b0e7=_0x276e60;let _0x31b60f={};const _0x131131={};let _0x2ca1f9,_0x3d66e4;return db[_0x88b0e7('0x13')]['findOne']({'where':{'id':_0x2d9cff[_0x88b0e7('0x38')]['id']}})[_0x88b0e7('0x1b')](handleEntityNotFound(_0x3c938f,null))[_0x88b0e7('0x1b')](function(_0x4d206f){const _0x29b650=_0x88b0e7;if(_0x4d206f)return _0x2ca1f9=_0x4d206f,_0x131131['model']=_['keys'](db[_0x29b650('0x6')]['rawAttributes']),_0x131131['query']=_['keys'](_0x2d9cff[_0x29b650('0x2d')]),_0x131131[_0x29b650('0x15')]=_[_0x29b650('0x20')](_0x131131[_0x29b650('0x0')],_0x131131[_0x29b650('0x2d')]),_0x31b60f['attributes']=_[_0x29b650('0x20')](_0x131131[_0x29b650('0x0')],qs['fields'](_0x2d9cff[_0x29b650('0x2d')][_0x29b650('0x3')])),_0x31b60f[_0x29b650('0xa')]=_0x31b60f[_0x29b650('0xa')][_0x29b650('0x2b')]?_0x31b60f['attributes']:_0x131131[_0x29b650('0x0')],_0x31b60f[_0x29b650('0x2e')]=qs[_0x29b650('0x12')](_0x2d9cff['query'][_0x29b650('0x12')]),_0x31b60f[_0x29b650('0x28')]=qs[_0x29b650('0x15')](_['pick'](_0x2d9cff[_0x29b650('0x2d')],_0x131131[_0x29b650('0x15')])),_0x2d9cff[_0x29b650('0x2d')][_0x29b650('0xd')]&&(_0x31b60f[_0x29b650('0x28')]=_[_0x29b650('0x2a')](_0x31b60f[_0x29b650('0x28')],{[Op['or']]:_[_0x29b650('0x16')](_0x31b60f[_0x29b650('0xa')],function(_0x121dfa){const _0x360978=_0x29b650,_0x40dcf9={};return _0x40dcf9[_0x121dfa]={[Op['like']]:'%'+_0x2d9cff[_0x360978('0x2d')][_0x360978('0xd')]+'%'},_0x40dcf9;})})),_0x31b60f=_[_0x29b650('0x2a')]({},_0x31b60f,_0x2d9cff[_0x29b650('0x24')]),_0x2ca1f9[_0x29b650('0x22')](_0x31b60f);})['then'](function(_0x25a2a7){const _0x2e52e=_0x88b0e7;if(_0x25a2a7)return _0x3d66e4=_0x25a2a7['length'],typeof _0x2d9cff[_0x2e52e('0x2d')][_0x2e52e('0x30')]===_0x2e52e('0x1d')&&(_0x31b60f[_0x2e52e('0x2f')]=qs['limit'](_0x2d9cff[_0x2e52e('0x2d')][_0x2e52e('0x2f')]),_0x31b60f['offset']=qs[_0x2e52e('0x25')](_0x2d9cff[_0x2e52e('0x2d')][_0x2e52e('0x25')])),_0x2ca1f9[_0x2e52e('0x22')](_0x31b60f);})[_0x88b0e7('0x1b')](function(_0x1a9100){if(_0x1a9100)return _0x1a9100?{'count':_0x3d66e4,'rows':_0x1a9100}:null;})[_0x88b0e7('0x1b')](respondWithResult(_0x3c938f,null))['catch'](handleError(_0x3c938f,null));}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js index d19c714..bd29cd1 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js @@ -1 +1 @@ -const a248_0x3556=['define','exports','./intDynamics365Configuration.attributes','int_dynamics365_configurations'];(function(_0x454dd0,_0x35569a){const _0x13ad84=function(_0x5cb412){while(--_0x5cb412){_0x454dd0['push'](_0x454dd0['shift']());}};_0x13ad84(++_0x35569a);}(a248_0x3556,0x1e4));const a248_0x13ad=function(_0x454dd0,_0x35569a){_0x454dd0=_0x454dd0-0x0;let _0x13ad84=a248_0x3556[_0x454dd0];return _0x13ad84;};const _0x5bab77=a248_0x13ad;'use strict';const attributes=require(_0x5bab77('0x2'));module[_0x5bab77('0x1')]=function(_0x5cb412){const _0x5c89ad=_0x5bab77,_0x261234=_0x5cb412[_0x5c89ad('0x0')]('Dynamics365Configuration',attributes,{'tableName':_0x5c89ad('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x261234;}; \ No newline at end of file +const a248_0x2617=['./intDynamics365Configuration.attributes','Dynamics365Configuration','int_dynamics365_configurations','define'];(function(_0xae6233,_0x261789){const _0x169663=function(_0x206fa6){while(--_0x206fa6){_0xae6233['push'](_0xae6233['shift']());}};_0x169663(++_0x261789);}(a248_0x2617,0x13a));const a248_0x1696=function(_0xae6233,_0x261789){_0xae6233=_0xae6233-0x0;let _0x169663=a248_0x2617[_0xae6233];return _0x169663;};const _0x1c2d6b=a248_0x1696;'use strict';const attributes=require(_0x1c2d6b('0x2'));module['exports']=function(_0x206fa6){const _0x113a46=_0x1c2d6b,_0x4c3c0a=_0x206fa6[_0x113a46('0x1')](_0x113a46('0x3'),attributes,{'tableName':_0x113a46('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c3c0a;}; \ No newline at end of file diff --git a/server/api/intDynamics365Field/index.js b/server/api/intDynamics365Field/index.js index ac1f23e..9fdb68b 100644 --- a/server/api/intDynamics365Field/index.js +++ b/server/api/intDynamics365Field/index.js @@ -1 +1 @@ -const a249_0x58f2=['put','get','/:id','isAuthenticated','./intDynamics365Field.controller','../../components/auth/service','create','delete','Router','express','post','index'];(function(_0x1d71a1,_0x58f2b3){const _0x121329=function(_0x1c6b24){while(--_0x1c6b24){_0x1d71a1['push'](_0x1d71a1['shift']());}};_0x121329(++_0x58f2b3);}(a249_0x58f2,0x1a3));const a249_0x1213=function(_0x1d71a1,_0x58f2b3){_0x1d71a1=_0x1d71a1-0x0;let _0x121329=a249_0x58f2[_0x1d71a1];return _0x121329;};const _0x4bd89c=a249_0x1213;'use strict';const express=require(_0x4bd89c('0xa')),router=express[_0x4bd89c('0x9')](),auth=require(_0x4bd89c('0x6')),controller=require(_0x4bd89c('0x5'));router[_0x4bd89c('0x2')]('/',auth[_0x4bd89c('0x4')](),controller[_0x4bd89c('0x0')]),router[_0x4bd89c('0x2')]('/:id',auth[_0x4bd89c('0x4')](),controller['show']),router[_0x4bd89c('0xb')]('/',auth[_0x4bd89c('0x4')](),controller[_0x4bd89c('0x7')]),router[_0x4bd89c('0x1')]('/:id',auth['isAuthenticated'](),controller['update']),router[_0x4bd89c('0x8')](_0x4bd89c('0x3'),auth[_0x4bd89c('0x4')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a249_0x57af=['exports','./intDynamics365Field.controller','create','post','/:id','update','isAuthenticated','../../components/auth/service','show','destroy','index','put','delete'];(function(_0x40c824,_0x57afdc){const _0x11c90e=function(_0x48bb62){while(--_0x48bb62){_0x40c824['push'](_0x40c824['shift']());}};_0x11c90e(++_0x57afdc);}(a249_0x57af,0x92));const a249_0x11c9=function(_0x40c824,_0x57afdc){_0x40c824=_0x40c824-0x0;let _0x11c90e=a249_0x57af[_0x40c824];return _0x11c90e;};const _0x5885ab=a249_0x11c9;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x5885ab('0x4')),controller=require(_0x5885ab('0xb'));router['get']('/',auth['isAuthenticated'](),controller[_0x5885ab('0x7')]),router['get'](_0x5885ab('0x1'),auth[_0x5885ab('0x3')](),controller[_0x5885ab('0x5')]),router[_0x5885ab('0x0')]('/',auth[_0x5885ab('0x3')](),controller[_0x5885ab('0xc')]),router[_0x5885ab('0x8')](_0x5885ab('0x1'),auth['isAuthenticated'](),controller[_0x5885ab('0x2')]),router[_0x5885ab('0x9')](_0x5885ab('0x1'),auth[_0x5885ab('0x3')](),controller[_0x5885ab('0x6')]),module[_0x5885ab('0xa')]=router; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.attributes.js b/server/api/intDynamics365Field/intDynamics365Field.attributes.js index 3772968..9f48c75 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.attributes.js +++ b/server/api/intDynamics365Field/intDynamics365Field.attributes.js @@ -1 +1 @@ -const a250_0x5d45=['STRING','ENUM','keyValue','exports','variable','customVariable','string'];(function(_0x5f00a4,_0x5d45cc){const _0x53cbf4=function(_0x578b6e){while(--_0x578b6e){_0x5f00a4['push'](_0x5f00a4['shift']());}};_0x53cbf4(++_0x5d45cc);}(a250_0x5d45,0x18f));const a250_0x53cb=function(_0x5f00a4,_0x5d45cc){_0x5f00a4=_0x5f00a4-0x0;let _0x53cbf4=a250_0x5d45[_0x5f00a4];return _0x53cbf4;};const _0x41cbba=a250_0x53cb;'use strict';const Sequelize=require('sequelize');module[_0x41cbba('0x3')]={'type':{'type':Sequelize[_0x41cbba('0x1')](_0x41cbba('0x6'),_0x41cbba('0x4'),_0x41cbba('0x5'),_0x41cbba('0x2')),'defaultValue':_0x41cbba('0x6')},'content':{'type':Sequelize[_0x41cbba('0x0')]},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize[_0x41cbba('0x1')](_0x41cbba('0x6'),_0x41cbba('0x4'),_0x41cbba('0x5'))},'keyContent':{'type':Sequelize[_0x41cbba('0x0')]},'idField':{'type':Sequelize[_0x41cbba('0x0')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x41cbba('0x0')]}}; \ No newline at end of file +const a250_0x5c1e=['variable','BOOLEAN','ENUM','sequelize','exports','string','customVariable','STRING'];(function(_0x362c8f,_0x5c1e45){const _0x239acc=function(_0x119290){while(--_0x119290){_0x362c8f['push'](_0x362c8f['shift']());}};_0x239acc(++_0x5c1e45);}(a250_0x5c1e,0x71));const a250_0x239a=function(_0x362c8f,_0x5c1e45){_0x362c8f=_0x362c8f-0x0;let _0x239acc=a250_0x5c1e[_0x362c8f];return _0x239acc;};const _0x1a7180=a250_0x239a;'use strict';const Sequelize=require(_0x1a7180('0x2'));module[_0x1a7180('0x3')]={'type':{'type':Sequelize[_0x1a7180('0x1')]('string',_0x1a7180('0x7'),_0x1a7180('0x5'),'keyValue'),'defaultValue':_0x1a7180('0x4')},'content':{'type':Sequelize[_0x1a7180('0x6')]},'key':{'type':Sequelize[_0x1a7180('0x6')]},'keyType':{'type':Sequelize[_0x1a7180('0x1')]('string',_0x1a7180('0x7'),_0x1a7180('0x5'))},'keyContent':{'type':Sequelize[_0x1a7180('0x6')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x1a7180('0x6')]},'customField':{'type':Sequelize[_0x1a7180('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x1a7180('0x6')]}}; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.controller.js b/server/api/intDynamics365Field/intDynamics365Field.controller.js index f2e95d7..acad316 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.controller.js +++ b/server/api/intDynamics365Field/intDynamics365Field.controller.js @@ -1 +1 @@ -const a251_0x22cd=['like','sort','name','intersection','query','fields','model','error','where','send','map','offset','../../mysqldb','../../components/parsers/qs','length','catch','order','undefined','keys','update','rows','options','filters','create','merge','../../config/logger','status','Dynamics365Field','end','filter','attributes','index','destroy','body','json','sendStatus','stack','then','include','type','pick','count','includeAll','api','VIRTUAL','limit','lodash','params','sequelize','key','nolimit','Content-Range'];(function(_0x4eb52b,_0x22cda7){const _0x237f32=function(_0x58d57f){while(--_0x58d57f){_0x4eb52b['push'](_0x4eb52b['shift']());}};_0x237f32(++_0x22cda7);}(a251_0x22cd,0x19c));const a251_0x237f=function(_0x4eb52b,_0x22cda7){_0x4eb52b=_0x4eb52b-0x0;let _0x237f32=a251_0x22cd[_0x4eb52b];return _0x237f32;};const _0x2596a9=a251_0x237f;'use strict';const _=require(_0x2596a9('0x32')),qs=require(_0x2596a9('0x11')),logger=require(_0x2596a9('0x1d'))(_0x2596a9('0x2f')),db=require(_0x2596a9('0x10'))['db'],{Op}=require(_0x2596a9('0x0'));function respondWithResult(_0x58d57f,_0x2fc4fc){return _0x2fc4fc=_0x2fc4fc||0xc8,function(_0x91f026){const _0x3b4be1=a251_0x237f;if(_0x91f026)return _0x58d57f[_0x3b4be1('0x1e')](_0x2fc4fc)[_0x3b4be1('0x26')](_0x91f026);};}function respondWithFilteredResult(_0x214375,_0xd57c41){return function(_0x2d7489){const _0x5cfce3=a251_0x237f;if(_0x2d7489){const _0x10e3b7=_0x2d7489['count'],_0x196be1=_0xd57c41[_0x5cfce3('0xf')];let _0xb7bd87=_0xd57c41[_0x5cfce3('0xf')]+_0xd57c41[_0x5cfce3('0x31')],_0x1ae609;return _0xb7bd87>=_0x10e3b7?(_0xb7bd87=_0x10e3b7,_0x1ae609=0xc8):_0x1ae609=0xce,_0x214375[_0x5cfce3('0x1e')](_0x1ae609),_0x214375['set'](_0x5cfce3('0x3'),_0x196be1+'-'+_0xb7bd87+'/'+_0x10e3b7)[_0x5cfce3('0x26')](_0x2d7489);}return null;};}function saveUpdates(_0x5aa31d){return function(_0x28ef8a){const _0x528aeb=a251_0x237f;if(_0x28ef8a)return _0x28ef8a[_0x528aeb('0x17')](_0x5aa31d)[_0x528aeb('0x29')](function(_0x2031fc){return _0x2031fc;});return null;};}function removeEntity(_0x2eeb29){return function(_0x5cb717){const _0x473042=a251_0x237f;if(_0x5cb717)return _0x5cb717['destroy']()[_0x473042('0x29')](function(){const _0x1ca31e=_0x473042;_0x2eeb29[_0x1ca31e('0x1e')](0xcc)[_0x1ca31e('0x20')]();});};}function handleEntityNotFound(_0x37f9e7){return function(_0x20f94e){const _0x46d8ee=a251_0x237f;return!_0x20f94e&&_0x37f9e7[_0x46d8ee('0x27')](0x194),_0x20f94e;};}function handleError(_0x13474e,_0x4d66e8){return _0x4d66e8=_0x4d66e8||0x1f4,function(_0x423b07){const _0x1dd56c=a251_0x237f;logger[_0x1dd56c('0xb')](_0x423b07[_0x1dd56c('0x28')]),_0x423b07[_0x1dd56c('0x6')]&&delete _0x423b07['name'],_0x13474e['status'](_0x4d66e8)[_0x1dd56c('0xd')](_0x423b07);};}exports[_0x2596a9('0x23')]=function(_0x5bc9fb,_0x3c4a61){const _0x48f430=_0x2596a9;let _0x121e17={};const _0x39f198={},_0x394a59={'count':0x0,'rows':[]},_0x6f2119=_[_0x48f430('0xe')](db[_0x48f430('0x1f')]['rawAttributes'],function(_0x36eb68){const _0x5bc340=_0x48f430;return{'name':_0x36eb68['fieldName'],'type':_0x36eb68[_0x5bc340('0x2b')][_0x5bc340('0x1')]};});_0x39f198[_0x48f430('0xa')]=_[_0x48f430('0xe')](_0x6f2119,_0x48f430('0x6')),_0x39f198[_0x48f430('0x8')]=_[_0x48f430('0x16')](_0x5bc9fb[_0x48f430('0x8')]),_0x39f198['filters']=_['intersection'](_0x39f198[_0x48f430('0xa')],_0x39f198[_0x48f430('0x8')]),_0x121e17[_0x48f430('0x22')]=_[_0x48f430('0x7')](_0x39f198[_0x48f430('0xa')],qs['fields'](_0x5bc9fb[_0x48f430('0x8')][_0x48f430('0x9')])),_0x121e17['attributes']=_0x121e17[_0x48f430('0x22')][_0x48f430('0x12')]?_0x121e17[_0x48f430('0x22')]:_0x39f198[_0x48f430('0xa')];typeof _0x5bc9fb[_0x48f430('0x8')][_0x48f430('0x2')]===_0x48f430('0x15')&&(_0x121e17[_0x48f430('0x31')]=qs[_0x48f430('0x31')](_0x5bc9fb['query'][_0x48f430('0x31')]),_0x121e17['offset']=qs['offset'](_0x5bc9fb[_0x48f430('0x8')][_0x48f430('0xf')]));_0x121e17[_0x48f430('0x14')]=qs[_0x48f430('0x5')](_0x5bc9fb[_0x48f430('0x8')]['sort']),_0x121e17[_0x48f430('0xc')]=qs[_0x48f430('0x1a')](_[_0x48f430('0x2c')](_0x5bc9fb['query'],_0x39f198[_0x48f430('0x1a')]),_0x6f2119);_0x5bc9fb[_0x48f430('0x8')]['filter']&&(_0x121e17[_0x48f430('0xc')]=_[_0x48f430('0x1c')](_0x121e17[_0x48f430('0xc')],{[Op['or']]:_[_0x48f430('0xe')](_0x6f2119,function(_0x2eebb9){const _0x4d1bd6=_0x48f430;if(_0x2eebb9[_0x4d1bd6('0x2b')]!==_0x4d1bd6('0x30')){const _0x4355ac={};return _0x4355ac[_0x2eebb9[_0x4d1bd6('0x6')]]={[Op[_0x4d1bd6('0x4')]]:'%'+_0x5bc9fb['query'][_0x4d1bd6('0x21')]+'%'},_0x4355ac;}})}));_0x121e17=_[_0x48f430('0x1c')]({},_0x121e17,_0x5bc9fb['options']);const _0x2ef794={'where':_0x121e17[_0x48f430('0xc')]};return db[_0x48f430('0x1f')][_0x48f430('0x2d')](_0x2ef794)[_0x48f430('0x29')](function(_0xc45f5f){const _0x3b8dda=_0x48f430;return _0x394a59[_0x3b8dda('0x2d')]=_0xc45f5f,_0x5bc9fb[_0x3b8dda('0x8')][_0x3b8dda('0x2e')]&&(_0x121e17['include']=[{'all':!![]}]),db[_0x3b8dda('0x1f')]['findAll'](_0x121e17);})['then'](function(_0x20d078){const _0x3e0e24=_0x48f430;return _0x394a59[_0x3e0e24('0x18')]=_0x20d078,_0x394a59;})['then'](respondWithFilteredResult(_0x3c4a61,_0x121e17))[_0x48f430('0x13')](handleError(_0x3c4a61,null));},exports['show']=function(_0x3c972e,_0x13d394){const _0x4cf936=_0x2596a9;let _0x6ba99c={'raw':!![],'where':{'id':_0x3c972e[_0x4cf936('0x33')]['id']}};const _0xf6385b={};return _0xf6385b[_0x4cf936('0xa')]=_[_0x4cf936('0x16')](db[_0x4cf936('0x1f')]['rawAttributes']),_0xf6385b[_0x4cf936('0x8')]=_[_0x4cf936('0x16')](_0x3c972e['query']),_0xf6385b[_0x4cf936('0x1a')]=_[_0x4cf936('0x7')](_0xf6385b[_0x4cf936('0xa')],_0xf6385b[_0x4cf936('0x8')]),_0x6ba99c[_0x4cf936('0x22')]=_[_0x4cf936('0x7')](_0xf6385b[_0x4cf936('0xa')],qs['fields'](_0x3c972e['query'][_0x4cf936('0x9')])),_0x6ba99c[_0x4cf936('0x22')]=_0x6ba99c['attributes']['length']?_0x6ba99c['attributes']:_0xf6385b[_0x4cf936('0xa')],_0x3c972e['query']['includeAll']&&(_0x6ba99c[_0x4cf936('0x2a')]=[{'all':!![]}]),_0x6ba99c=_['merge']({},_0x6ba99c,_0x3c972e[_0x4cf936('0x19')]),db[_0x4cf936('0x1f')]['findOne'](_0x6ba99c)['then'](handleEntityNotFound(_0x13d394,null))[_0x4cf936('0x29')](respondWithResult(_0x13d394,null))[_0x4cf936('0x13')](handleError(_0x13d394,null));},exports[_0x2596a9('0x1b')]=function(_0x50bec4,_0xc9f14c){const _0x5721ee=_0x2596a9;return db['Dynamics365Field'][_0x5721ee('0x1b')](_0x50bec4[_0x5721ee('0x25')],{})[_0x5721ee('0x29')](respondWithResult(_0xc9f14c,0xc9))[_0x5721ee('0x13')](handleError(_0xc9f14c,null));},exports[_0x2596a9('0x17')]=function(_0x411538,_0x5707ca){const _0x3c1429=_0x2596a9;return _0x411538['body']['id']&&delete _0x411538[_0x3c1429('0x25')]['id'],db[_0x3c1429('0x1f')]['findOne']({'where':{'id':_0x411538['params']['id']}})[_0x3c1429('0x29')](handleEntityNotFound(_0x5707ca,null))[_0x3c1429('0x29')](saveUpdates(_0x411538['body'],null))[_0x3c1429('0x29')](respondWithResult(_0x5707ca,null))[_0x3c1429('0x13')](handleError(_0x5707ca,null));},exports[_0x2596a9('0x24')]=function(_0x9d1cec,_0x4932a8){const _0x520801=_0x2596a9;return db['Dynamics365Field']['findOne']({'where':{'id':_0x9d1cec[_0x520801('0x33')]['id']}})['then'](handleEntityNotFound(_0x4932a8,null))[_0x520801('0x29')](removeEntity(_0x4932a8,null))[_0x520801('0x13')](handleError(_0x4932a8,null));}; \ No newline at end of file +const a251_0x3f00=['sequelize','filter','count','VIRTUAL','fields','findAll','destroy','merge','params','keys','query','sendStatus','catch','pick','undefined','where','status','key','map','error','../../config/logger','type','send','update','Dynamics365Field','end','offset','limit','length','filters','../../components/parsers/qs','options','model','like','create','sort','nolimit','rows','body','findOne','then','json','name','include','rawAttributes','includeAll','stack','intersection','Content-Range','index','attributes','show','order'];(function(_0x1ce1d6,_0x3f00ee){const _0x1cd55e=function(_0x156f86){while(--_0x156f86){_0x1ce1d6['push'](_0x1ce1d6['shift']());}};_0x1cd55e(++_0x3f00ee);}(a251_0x3f00,0x173));const a251_0x1cd5=function(_0x1ce1d6,_0x3f00ee){_0x1ce1d6=_0x1ce1d6-0x0;let _0x1cd55e=a251_0x3f00[_0x1ce1d6];return _0x1cd55e;};const _0x525159=a251_0x1cd5;'use strict';const _=require('lodash'),qs=require(_0x525159('0x1e')),logger=require(_0x525159('0x14'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x525159('0x0'));function respondWithResult(_0x156f86,_0x3c8643){return _0x3c8643=_0x3c8643||0xc8,function(_0x270357){const _0xf4d167=a251_0x1cd5;if(_0x270357)return _0x156f86['status'](_0x3c8643)[_0xf4d167('0x29')](_0x270357);};}function respondWithFilteredResult(_0x4b6472,_0x2484be){return function(_0x16d4ed){const _0x20899f=a251_0x1cd5;if(_0x16d4ed){const _0x133507=_0x16d4ed[_0x20899f('0x2')],_0x9e2c5d=_0x2484be[_0x20899f('0x1a')];let _0x64455=_0x2484be[_0x20899f('0x1a')]+_0x2484be['limit'],_0x2e9503;return _0x64455>=_0x133507?(_0x64455=_0x133507,_0x2e9503=0xc8):_0x2e9503=0xce,_0x4b6472[_0x20899f('0x10')](_0x2e9503),_0x4b6472['set'](_0x20899f('0x30'),_0x9e2c5d+'-'+_0x64455+'/'+_0x133507)['json'](_0x16d4ed);}return null;};}function saveUpdates(_0x5e4488){return function(_0x46230a){const _0xab97a2=a251_0x1cd5;if(_0x46230a)return _0x46230a[_0xab97a2('0x17')](_0x5e4488)[_0xab97a2('0x28')](function(_0x4c5cef){return _0x4c5cef;});return null;};}function removeEntity(_0x5e6128){return function(_0x31a498){const _0x37c0b4=a251_0x1cd5;if(_0x31a498)return _0x31a498[_0x37c0b4('0x6')]()['then'](function(){const _0x459d88=_0x37c0b4;_0x5e6128['status'](0xcc)[_0x459d88('0x19')]();});};}function handleEntityNotFound(_0x4e8093){return function(_0x4756a7){const _0x2b4ed8=a251_0x1cd5;return!_0x4756a7&&_0x4e8093[_0x2b4ed8('0xb')](0x194),_0x4756a7;};}function handleError(_0x1a0f7e,_0x18923a){return _0x18923a=_0x18923a||0x1f4,function(_0x2d29ce){const _0x26b299=a251_0x1cd5;logger[_0x26b299('0x13')](_0x2d29ce[_0x26b299('0x2e')]),_0x2d29ce[_0x26b299('0x2a')]&&delete _0x2d29ce['name'],_0x1a0f7e['status'](_0x18923a)[_0x26b299('0x16')](_0x2d29ce);};}exports[_0x525159('0x31')]=function(_0x64691b,_0x5a01f8){const _0xa09ba1=_0x525159;let _0x5e4a7d={};const _0x543338={},_0x454810={'count':0x0,'rows':[]},_0x5579ca=_[_0xa09ba1('0x12')](db[_0xa09ba1('0x18')][_0xa09ba1('0x2c')],function(_0x43c0fb){const _0x383af3=_0xa09ba1;return{'name':_0x43c0fb['fieldName'],'type':_0x43c0fb['type'][_0x383af3('0x11')]};});_0x543338['model']=_[_0xa09ba1('0x12')](_0x5579ca,_0xa09ba1('0x2a')),_0x543338[_0xa09ba1('0xa')]=_[_0xa09ba1('0x9')](_0x64691b['query']),_0x543338[_0xa09ba1('0x1d')]=_[_0xa09ba1('0x2f')](_0x543338[_0xa09ba1('0x20')],_0x543338[_0xa09ba1('0xa')]),_0x5e4a7d[_0xa09ba1('0x32')]=_[_0xa09ba1('0x2f')](_0x543338[_0xa09ba1('0x20')],qs[_0xa09ba1('0x4')](_0x64691b[_0xa09ba1('0xa')]['fields'])),_0x5e4a7d[_0xa09ba1('0x32')]=_0x5e4a7d[_0xa09ba1('0x32')][_0xa09ba1('0x1c')]?_0x5e4a7d['attributes']:_0x543338[_0xa09ba1('0x20')];typeof _0x64691b[_0xa09ba1('0xa')][_0xa09ba1('0x24')]===_0xa09ba1('0xe')&&(_0x5e4a7d[_0xa09ba1('0x1b')]=qs[_0xa09ba1('0x1b')](_0x64691b['query'][_0xa09ba1('0x1b')]),_0x5e4a7d[_0xa09ba1('0x1a')]=qs[_0xa09ba1('0x1a')](_0x64691b[_0xa09ba1('0xa')][_0xa09ba1('0x1a')]));_0x5e4a7d[_0xa09ba1('0x34')]=qs[_0xa09ba1('0x23')](_0x64691b[_0xa09ba1('0xa')][_0xa09ba1('0x23')]),_0x5e4a7d[_0xa09ba1('0xf')]=qs['filters'](_[_0xa09ba1('0xd')](_0x64691b[_0xa09ba1('0xa')],_0x543338[_0xa09ba1('0x1d')]),_0x5579ca);_0x64691b[_0xa09ba1('0xa')][_0xa09ba1('0x1')]&&(_0x5e4a7d['where']=_[_0xa09ba1('0x7')](_0x5e4a7d[_0xa09ba1('0xf')],{[Op['or']]:_['map'](_0x5579ca,function(_0x344384){const _0x45c132=_0xa09ba1;if(_0x344384[_0x45c132('0x15')]!==_0x45c132('0x3')){const _0x217536={};return _0x217536[_0x344384['name']]={[Op[_0x45c132('0x21')]]:'%'+_0x64691b[_0x45c132('0xa')][_0x45c132('0x1')]+'%'},_0x217536;}})}));_0x5e4a7d=_[_0xa09ba1('0x7')]({},_0x5e4a7d,_0x64691b[_0xa09ba1('0x1f')]);const _0x13a11e={'where':_0x5e4a7d[_0xa09ba1('0xf')]};return db['Dynamics365Field'][_0xa09ba1('0x2')](_0x13a11e)['then'](function(_0x3deae6){const _0x26fa9c=_0xa09ba1;return _0x454810['count']=_0x3deae6,_0x64691b[_0x26fa9c('0xa')]['includeAll']&&(_0x5e4a7d[_0x26fa9c('0x2b')]=[{'all':!![]}]),db['Dynamics365Field'][_0x26fa9c('0x5')](_0x5e4a7d);})[_0xa09ba1('0x28')](function(_0x49baff){const _0x3b6ecc=_0xa09ba1;return _0x454810[_0x3b6ecc('0x25')]=_0x49baff,_0x454810;})[_0xa09ba1('0x28')](respondWithFilteredResult(_0x5a01f8,_0x5e4a7d))[_0xa09ba1('0xc')](handleError(_0x5a01f8,null));},exports[_0x525159('0x33')]=function(_0x45b8c4,_0x4e57f4){const _0x32abef=_0x525159;let _0x2fd803={'raw':!![],'where':{'id':_0x45b8c4[_0x32abef('0x8')]['id']}};const _0x41cdd8={};return _0x41cdd8['model']=_[_0x32abef('0x9')](db[_0x32abef('0x18')][_0x32abef('0x2c')]),_0x41cdd8[_0x32abef('0xa')]=_[_0x32abef('0x9')](_0x45b8c4['query']),_0x41cdd8[_0x32abef('0x1d')]=_['intersection'](_0x41cdd8['model'],_0x41cdd8['query']),_0x2fd803[_0x32abef('0x32')]=_[_0x32abef('0x2f')](_0x41cdd8['model'],qs['fields'](_0x45b8c4['query']['fields'])),_0x2fd803[_0x32abef('0x32')]=_0x2fd803[_0x32abef('0x32')][_0x32abef('0x1c')]?_0x2fd803[_0x32abef('0x32')]:_0x41cdd8[_0x32abef('0x20')],_0x45b8c4['query'][_0x32abef('0x2d')]&&(_0x2fd803[_0x32abef('0x2b')]=[{'all':!![]}]),_0x2fd803=_[_0x32abef('0x7')]({},_0x2fd803,_0x45b8c4[_0x32abef('0x1f')]),db[_0x32abef('0x18')][_0x32abef('0x27')](_0x2fd803)[_0x32abef('0x28')](handleEntityNotFound(_0x4e57f4,null))[_0x32abef('0x28')](respondWithResult(_0x4e57f4,null))[_0x32abef('0xc')](handleError(_0x4e57f4,null));},exports['create']=function(_0x354133,_0x1a2d4c){const _0x404030=_0x525159;return db[_0x404030('0x18')][_0x404030('0x22')](_0x354133['body'],{})[_0x404030('0x28')](respondWithResult(_0x1a2d4c,0xc9))['catch'](handleError(_0x1a2d4c,null));},exports['update']=function(_0x2bf070,_0x2bd3e6){const _0x5200e6=_0x525159;return _0x2bf070['body']['id']&&delete _0x2bf070[_0x5200e6('0x26')]['id'],db[_0x5200e6('0x18')][_0x5200e6('0x27')]({'where':{'id':_0x2bf070[_0x5200e6('0x8')]['id']}})[_0x5200e6('0x28')](handleEntityNotFound(_0x2bd3e6,null))[_0x5200e6('0x28')](saveUpdates(_0x2bf070[_0x5200e6('0x26')],null))['then'](respondWithResult(_0x2bd3e6,null))[_0x5200e6('0xc')](handleError(_0x2bd3e6,null));},exports['destroy']=function(_0x76f833,_0x25bd66){const _0x1c2180=_0x525159;return db[_0x1c2180('0x18')]['findOne']({'where':{'id':_0x76f833[_0x1c2180('0x8')]['id']}})[_0x1c2180('0x28')](handleEntityNotFound(_0x25bd66,null))[_0x1c2180('0x28')](removeEntity(_0x25bd66,null))[_0x1c2180('0xc')](handleError(_0x25bd66,null));}; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.model.js b/server/api/intDynamics365Field/intDynamics365Field.model.js index 1c27525..9f8f5f4 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.model.js +++ b/server/api/intDynamics365Field/intDynamics365Field.model.js @@ -1 +1 @@ -const a252_0x27c6=['idField','int_dynamics365_fields','FieldId','./intDynamics365Field.attributes','Dynamics365Field','define','dynamics365_unique_index','exports'];(function(_0x921b2f,_0x27c64a){const _0x2a6c80=function(_0xc213a){while(--_0xc213a){_0x921b2f['push'](_0x921b2f['shift']());}};_0x2a6c80(++_0x27c64a);}(a252_0x27c6,0x187));const a252_0x2a6c=function(_0x921b2f,_0x27c64a){_0x921b2f=_0x921b2f-0x0;let _0x2a6c80=a252_0x27c6[_0x921b2f];return _0x2a6c80;};const _0x415cf6=a252_0x2a6c;'use strict';const attributes=require(_0x415cf6('0x4'));module[_0x415cf6('0x0')]=function(_0xc213a){const _0x568db1=_0x415cf6,_0x27a5ef=_0xc213a[_0x568db1('0x6')](_0x568db1('0x5'),attributes,{'tableName':_0x568db1('0x2'),'paranoid':![],'indexes':[{'name':_0x568db1('0x7'),'fields':[_0x568db1('0x1'),_0x568db1('0x3')],'unique':!![]}],'timestamps':!![]});return _0x27a5ef;}; \ No newline at end of file +const a252_0x3ddd=['define','int_dynamics365_fields','idField','FieldId','exports'];(function(_0x5c10ba,_0x3ddd4b){const _0x42f28f=function(_0x51be20){while(--_0x51be20){_0x5c10ba['push'](_0x5c10ba['shift']());}};_0x42f28f(++_0x3ddd4b);}(a252_0x3ddd,0xe3));const a252_0x42f2=function(_0x5c10ba,_0x3ddd4b){_0x5c10ba=_0x5c10ba-0x0;let _0x42f28f=a252_0x3ddd[_0x5c10ba];return _0x42f28f;};const _0x4ff6f4=a252_0x42f2;'use strict';const attributes=require('./intDynamics365Field.attributes');module[_0x4ff6f4('0x2')]=function(_0x51be20){const _0x1da8c4=_0x4ff6f4,_0x12a15f=_0x51be20[_0x1da8c4('0x3')]('Dynamics365Field',attributes,{'tableName':_0x1da8c4('0x4'),'paranoid':![],'indexes':[{'name':'dynamics365_unique_index','fields':[_0x1da8c4('0x0'),_0x1da8c4('0x1')],'unique':!![]}],'timestamps':!![]});return _0x12a15f;}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/index.js b/server/api/intFreshdeskAccount/index.js index 9efbd1d..1b554e6 100644 --- a/server/api/intFreshdeskAccount/index.js +++ b/server/api/intFreshdeskAccount/index.js @@ -1 +1 @@ -const a253_0x1d2e=['getConfigurations','exports','/:id','create','isAuthenticated','index','destroy','put','/:id/fields','../../components/auth/service','./intFreshdeskAccount.controller','show','get','addConfiguration','Router','post','/:id/configurations','update'];(function(_0x9f12f0,_0x1d2e97){const _0x369b9d=function(_0x4a909f){while(--_0x4a909f){_0x9f12f0['push'](_0x9f12f0['shift']());}};_0x369b9d(++_0x1d2e97);}(a253_0x1d2e,0x116));const a253_0x369b=function(_0x9f12f0,_0x1d2e97){_0x9f12f0=_0x9f12f0-0x0;let _0x369b9d=a253_0x1d2e[_0x9f12f0];return _0x369b9d;};const _0x3c9e82=a253_0x369b;'use strict';const express=require('express'),router=express[_0x3c9e82('0x6')](),auth=require(_0x3c9e82('0x1')),controller=require(_0x3c9e82('0x2'));router[_0x3c9e82('0x4')]('/',auth['isAuthenticated'](),controller[_0x3c9e82('0xf')]),router['get'](_0x3c9e82('0xc'),auth[_0x3c9e82('0xe')](),controller[_0x3c9e82('0x3')]),router[_0x3c9e82('0x4')](_0x3c9e82('0x8'),auth[_0x3c9e82('0xe')](),controller[_0x3c9e82('0xa')]),router[_0x3c9e82('0x4')](_0x3c9e82('0x0'),auth[_0x3c9e82('0xe')](),controller['getFields']),router[_0x3c9e82('0x7')]('/',auth['isAuthenticated'](),controller[_0x3c9e82('0xd')]),router['post']('/:id/configurations',auth[_0x3c9e82('0xe')](),controller[_0x3c9e82('0x5')]),router[_0x3c9e82('0x11')](_0x3c9e82('0xc'),auth['isAuthenticated'](),controller[_0x3c9e82('0x9')]),router['delete']('/:id',auth[_0x3c9e82('0xe')](),controller[_0x3c9e82('0x10')]),module[_0x3c9e82('0xb')]=router; \ No newline at end of file +const a253_0x2793=['create','put','./intFreshdeskAccount.controller','getFields','delete','getConfigurations','Router','/:id/fields','exports','addConfiguration','/:id/configurations','../../components/auth/service','get','/:id','isAuthenticated','post'];(function(_0xfe1c4b,_0x27931c){const _0x456dc3=function(_0x580958){while(--_0x580958){_0xfe1c4b['push'](_0xfe1c4b['shift']());}};_0x456dc3(++_0x27931c);}(a253_0x2793,0x156));const a253_0x456d=function(_0xfe1c4b,_0x27931c){_0xfe1c4b=_0xfe1c4b-0x0;let _0x456dc3=a253_0x2793[_0xfe1c4b];return _0x456dc3;};const _0x16076f=a253_0x456d;'use strict';const express=require('express'),router=express[_0x16076f('0x0')](),auth=require(_0x16076f('0x5')),controller=require(_0x16076f('0xc'));router['get']('/',auth[_0x16076f('0x8')](),controller['index']),router['get'](_0x16076f('0x7'),auth['isAuthenticated'](),controller['show']),router['get'](_0x16076f('0x4'),auth[_0x16076f('0x8')](),controller[_0x16076f('0xf')]),router[_0x16076f('0x6')](_0x16076f('0x1'),auth['isAuthenticated'](),controller[_0x16076f('0xd')]),router[_0x16076f('0x9')]('/',auth['isAuthenticated'](),controller[_0x16076f('0xa')]),router['post'](_0x16076f('0x4'),auth[_0x16076f('0x8')](),controller[_0x16076f('0x3')]),router[_0x16076f('0xb')](_0x16076f('0x7'),auth[_0x16076f('0x8')](),controller['update']),router[_0x16076f('0xe')](_0x16076f('0x7'),auth[_0x16076f('0x8')](),controller['destroy']),module[_0x16076f('0x2')]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js index 6be6c23..2da8774 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js @@ -1 +1 @@ -const a254_0x5873=['exports','STRING','username'];(function(_0x76e8ce,_0x5873e7){const _0x4f4716=function(_0x4ef746){while(--_0x4ef746){_0x76e8ce['push'](_0x76e8ce['shift']());}};_0x4f4716(++_0x5873e7);}(a254_0x5873,0x183));const a254_0x4f47=function(_0x76e8ce,_0x5873e7){_0x76e8ce=_0x76e8ce-0x0;let _0x4f4716=a254_0x5873[_0x76e8ce];return _0x4f4716;};const _0x87a0=a254_0x4f47;'use strict';const Sequelize=require('sequelize');module[_0x87a0('0x0')]={'name':{'type':Sequelize[_0x87a0('0x1')]},'description':{'type':Sequelize[_0x87a0('0x1')]},'username':{'type':Sequelize[_0x87a0('0x1')],'unique':_0x87a0('0x2')},'apiKey':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize['STRING'],'unique':'remoteUri'},'serverUrl':{'type':Sequelize[_0x87a0('0x1')]}}; \ No newline at end of file +const a254_0x5e53=['STRING','exports','sequelize','remoteUri'];(function(_0x50d596,_0x5e536c){const _0x93408b=function(_0x91effa){while(--_0x91effa){_0x50d596['push'](_0x50d596['shift']());}};_0x93408b(++_0x5e536c);}(a254_0x5e53,0x171));const a254_0x9340=function(_0x50d596,_0x5e536c){_0x50d596=_0x50d596-0x0;let _0x93408b=a254_0x5e53[_0x50d596];return _0x93408b;};const _0xae150a=a254_0x9340;'use strict';const Sequelize=require(_0xae150a('0x1'));module[_0xae150a('0x0')]={'name':{'type':Sequelize[_0xae150a('0x3')]},'description':{'type':Sequelize[_0xae150a('0x3')]},'username':{'type':Sequelize['STRING'],'unique':'username'},'apiKey':{'type':Sequelize[_0xae150a('0x3')]},'remoteUri':{'type':Sequelize[_0xae150a('0x3')],'unique':_0xae150a('0x2')},'serverUrl':{'type':Sequelize[_0xae150a('0x3')]}}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js index 7c7bb11..f141722 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js @@ -1 +1 @@ -const a255_0x3fb3=['custom_dropdown','map','source','addConfiguration','lastIndexOf','substring','then','company','request-promise-native','AccountId','../../mysqldb','send','where','sequelize','agent','destroy','getDescriptions','%s/%s','priority','fieldName','remoteUri','capitalize','FreshdeskAccount','group','VIRTUAL','Subjects','getFields','name','custom_text','status','util','update','format','slice','../../components/parsers/qs','choices','default','undefined','label','params','toString','rows','FreshdeskField','count','includeAll','getSubjects','json','length','fields','filter','offset','Wrong\x20credentials','apiKey','model','pick','order','getFields,\x20%s,\x20%s,\x20%s','includes','body','merge','show','filters','stack','stringify','options','findAll','include','Descriptions','sendStatus','description','create','attributes','FreshdeskConfiguration','keys','query','set','index','key','GET','catch','statusCode','limit','findOne','Content-Range','channel','error','rawAttributes','test','sort','api/v2/ticket_fields','base64','type','api','getConfigurations','requester','ticket_type','intersection'];(function(_0x4e38f4,_0x3fb307){const _0x4d15fd=function(_0xc2e87e){while(--_0xc2e87e){_0x4e38f4['push'](_0x4e38f4['shift']());}};_0x4d15fd(++_0x3fb307);}(a255_0x3fb3,0x1e7));const a255_0x4d15=function(_0x4e38f4,_0x3fb307){_0x4e38f4=_0x4e38f4-0x0;let _0x4d15fd=a255_0x3fb3[_0x4e38f4];return _0x4d15fd;};const _0x552b14=a255_0x4d15;'use strict';const rp=require(_0x552b14('0x6')),util=require(_0x552b14('0x1c')),_=require('lodash'),qs=require(_0x552b14('0x20')),logger=require('../../config/logger')(_0x552b14('0x5a')),db=require(_0x552b14('0x8'))['db'],{Op}=require(_0x552b14('0xb')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0xc2e87e,_0xe7bd87){return _0xe7bd87=_0xe7bd87||0xc8,function(_0x10e8f2){const _0x121948=a255_0x4d15;if(_0x10e8f2)return _0xc2e87e['status'](_0xe7bd87)[_0x121948('0x2c')](_0x10e8f2);};}function respondWithFilteredResult(_0x39d910,_0x32560e){return function(_0x4cf569){const _0x15fddc=a255_0x4d15;if(_0x4cf569){const _0x377ab8=_0x4cf569[_0x15fddc('0x29')],_0x4891e5=_0x32560e[_0x15fddc('0x30')];let _0x5c739e=_0x32560e[_0x15fddc('0x30')]+_0x32560e[_0x15fddc('0x4f')],_0x15a7bf;return _0x5c739e>=_0x377ab8?(_0x5c739e=_0x377ab8,_0x15a7bf=0xc8):_0x15a7bf=0xce,_0x39d910[_0x15fddc('0x1b')](_0x15a7bf),_0x39d910[_0x15fddc('0x49')](_0x15fddc('0x51'),_0x4891e5+'-'+_0x5c739e+'/'+_0x377ab8)[_0x15fddc('0x2c')](_0x4cf569);}return null;};}function saveUpdates(_0x459c16){return function(_0x28741d){const _0x4ebb6e=a255_0x4d15;if(_0x28741d)return _0x28741d[_0x4ebb6e('0x1d')](_0x459c16)[_0x4ebb6e('0x4')](function(_0x29dd15){return _0x29dd15;});return null;};}function removeEntity(_0x536e4a){return function(_0x45631a){const _0x44bdde=a255_0x4d15;if(_0x45631a)return _0x45631a[_0x44bdde('0xd')]()['then'](function(){const _0xea3677=_0x44bdde;_0x536e4a[_0xea3677('0x1b')](0xcc)['end']();});};}function handleEntityNotFound(_0x19dc23){return function(_0x2fa0f3){const _0x50d0b8=a255_0x4d15;return!_0x2fa0f3&&_0x19dc23[_0x50d0b8('0x42')](0x194),_0x2fa0f3;};}function handleError(_0x128d53,_0x288e09){return _0x288e09=_0x288e09||0x1f4,function(_0x1b28ee){const _0x26fb08=a255_0x4d15;logger[_0x26fb08('0x53')](_0x1b28ee[_0x26fb08('0x3c')]),_0x1b28ee[_0x26fb08('0x19')]&&delete _0x1b28ee['name'],_0x128d53[_0x26fb08('0x1b')](_0x288e09)[_0x26fb08('0x9')](_0x1b28ee);};}exports[_0x552b14('0x4a')]=function(_0x42d4fc,_0x23b61a){const _0x5138e5=_0x552b14;let _0x2c88dc={};const _0x27ce5a={},_0x4ace19={'count':0x0,'rows':[]},_0x3c64f2=_[_0x5138e5('0x60')](db[_0x5138e5('0x14')]['rawAttributes'],function(_0x15142a){const _0x58d78e=_0x5138e5;return{'name':_0x15142a[_0x58d78e('0x11')],'type':_0x15142a['type'][_0x58d78e('0x4b')]};});_0x27ce5a[_0x5138e5('0x33')]=_[_0x5138e5('0x60')](_0x3c64f2,_0x5138e5('0x19')),_0x27ce5a[_0x5138e5('0x48')]=_[_0x5138e5('0x47')](_0x42d4fc[_0x5138e5('0x48')]),_0x27ce5a[_0x5138e5('0x3b')]=_[_0x5138e5('0x5e')](_0x27ce5a[_0x5138e5('0x33')],_0x27ce5a[_0x5138e5('0x48')]),_0x2c88dc[_0x5138e5('0x45')]=_[_0x5138e5('0x5e')](_0x27ce5a['model'],qs[_0x5138e5('0x2e')](_0x42d4fc[_0x5138e5('0x48')][_0x5138e5('0x2e')])),_0x2c88dc[_0x5138e5('0x45')]=_0x2c88dc[_0x5138e5('0x45')]['length']?_0x2c88dc['attributes']:_0x27ce5a[_0x5138e5('0x33')];typeof _0x42d4fc[_0x5138e5('0x48')]['nolimit']==='undefined'&&(_0x2c88dc['limit']=qs[_0x5138e5('0x4f')](_0x42d4fc[_0x5138e5('0x48')][_0x5138e5('0x4f')]),_0x2c88dc['offset']=qs[_0x5138e5('0x30')](_0x42d4fc[_0x5138e5('0x48')][_0x5138e5('0x30')]));_0x2c88dc[_0x5138e5('0x35')]=qs[_0x5138e5('0x56')](_0x42d4fc[_0x5138e5('0x48')]['sort']),_0x2c88dc[_0x5138e5('0xa')]=qs['filters'](_[_0x5138e5('0x34')](_0x42d4fc[_0x5138e5('0x48')],_0x27ce5a[_0x5138e5('0x3b')]),_0x3c64f2);_0x42d4fc[_0x5138e5('0x48')][_0x5138e5('0x2f')]&&(_0x2c88dc[_0x5138e5('0xa')]=_[_0x5138e5('0x39')](_0x2c88dc[_0x5138e5('0xa')],{[Op['or']]:_['map'](_0x3c64f2,function(_0x3ab687){const _0x5b17b1=_0x5138e5;if(_0x3ab687[_0x5b17b1('0x59')]!==_0x5b17b1('0x16')){const _0x537afe={};return _0x537afe[_0x3ab687[_0x5b17b1('0x19')]]={[Op['like']]:'%'+_0x42d4fc[_0x5b17b1('0x48')][_0x5b17b1('0x2f')]+'%'},_0x537afe;}})}));_0x2c88dc=_[_0x5138e5('0x39')]({},_0x2c88dc,_0x42d4fc[_0x5138e5('0x3e')]);const _0x267d89={'where':_0x2c88dc[_0x5138e5('0xa')]};return db[_0x5138e5('0x14')][_0x5138e5('0x29')](_0x267d89)['then'](function(_0x24f14e){const _0x5a947e=_0x5138e5;return _0x4ace19[_0x5a947e('0x29')]=_0x24f14e,_0x42d4fc[_0x5a947e('0x48')][_0x5a947e('0x2a')]&&(_0x2c88dc[_0x5a947e('0x40')]=[{'all':!![]}]),db[_0x5a947e('0x14')][_0x5a947e('0x3f')](_0x2c88dc);})[_0x5138e5('0x4')](function(_0x21acc5){const _0x230cd2=_0x5138e5;return _0x4ace19[_0x230cd2('0x27')]=_0x21acc5,_0x4ace19;})[_0x5138e5('0x4')](respondWithFilteredResult(_0x23b61a,_0x2c88dc))['catch'](handleError(_0x23b61a,null));},exports[_0x552b14('0x3a')]=function(_0x5ef5a1,_0x18cb48){const _0x3af396=_0x552b14;let _0xa89f63={'raw':![],'where':{'id':_0x5ef5a1[_0x3af396('0x25')]['id']}};const _0x439064={};return _0x439064[_0x3af396('0x33')]=_['keys'](db[_0x3af396('0x14')][_0x3af396('0x54')]),_0x439064[_0x3af396('0x48')]=_[_0x3af396('0x47')](_0x5ef5a1[_0x3af396('0x48')]),_0x439064['filters']=_['intersection'](_0x439064[_0x3af396('0x33')],_0x439064[_0x3af396('0x48')]),_0xa89f63[_0x3af396('0x45')]=_[_0x3af396('0x5e')](_0x439064['model'],qs[_0x3af396('0x2e')](_0x5ef5a1[_0x3af396('0x48')][_0x3af396('0x2e')])),_0xa89f63[_0x3af396('0x45')]=_0xa89f63[_0x3af396('0x45')][_0x3af396('0x2d')]?_0xa89f63[_0x3af396('0x45')]:_0x439064[_0x3af396('0x33')],_0x5ef5a1['query']['includeAll']&&(_0xa89f63['include']=[{'all':!![]}]),_0xa89f63=_['merge']({},_0xa89f63,_0x5ef5a1[_0x3af396('0x3e')]),db[_0x3af396('0x14')]['findOne'](_0xa89f63)[_0x3af396('0x4')](handleEntityNotFound(_0x18cb48,null))[_0x3af396('0x4')](respondWithResult(_0x18cb48,null))[_0x3af396('0x4d')](handleError(_0x18cb48,null));},exports['create']=function(_0x3899e8,_0x581e6a){const _0x5bdae1=_0x552b14;return db['FreshdeskAccount'][_0x5bdae1('0x44')](_0x3899e8[_0x5bdae1('0x38')],{})[_0x5bdae1('0x4')](respondWithResult(_0x581e6a,0xc9))['catch'](handleError(_0x581e6a,null));},exports['update']=function(_0x42d289,_0x239129){const _0xb739b8=_0x552b14;return _0x42d289['body']['id']&&delete _0x42d289[_0xb739b8('0x38')]['id'],db[_0xb739b8('0x14')][_0xb739b8('0x50')]({'where':{'id':_0x42d289[_0xb739b8('0x25')]['id']}})[_0xb739b8('0x4')](handleEntityNotFound(_0x239129,null))[_0xb739b8('0x4')](saveUpdates(_0x42d289[_0xb739b8('0x38')],null))[_0xb739b8('0x4')](respondWithResult(_0x239129,null))['catch'](handleError(_0x239129,null));},exports[_0x552b14('0xd')]=function(_0x4faaae,_0x2384c2){const _0x42faf3=_0x552b14;return db[_0x42faf3('0x14')][_0x42faf3('0x50')]({'where':{'id':_0x4faaae[_0x42faf3('0x25')]['id']}})[_0x42faf3('0x4')](handleEntityNotFound(_0x2384c2,null))['then'](removeEntity(_0x2384c2,null))[_0x42faf3('0x4d')](handleError(_0x2384c2,null));},exports['getConfigurations']=function(_0x27c4d4,_0x5088dd){const _0x326cce=_0x552b14;let _0xa55835={};const _0x22ee88={};let _0x19f736,_0x1bca44;return db[_0x326cce('0x14')][_0x326cce('0x50')]({'where':{'id':_0x27c4d4['params']['id']}})[_0x326cce('0x4')](handleEntityNotFound(_0x5088dd,null))['then'](function(_0x5bdc88){const _0x544f48=_0x326cce;if(_0x5bdc88)return _0x19f736=_0x5bdc88,_0x22ee88[_0x544f48('0x33')]=_[_0x544f48('0x47')](db['FreshdeskConfiguration'][_0x544f48('0x54')]),_0x22ee88['query']=_['keys'](_0x27c4d4['query']),_0x22ee88['filters']=_[_0x544f48('0x5e')](_0x22ee88['model'],_0x22ee88[_0x544f48('0x48')]),_0xa55835[_0x544f48('0x45')]=_[_0x544f48('0x5e')](_0x22ee88['model'],qs['fields'](_0x27c4d4[_0x544f48('0x48')][_0x544f48('0x2e')])),_0xa55835[_0x544f48('0x45')]=_0xa55835[_0x544f48('0x45')][_0x544f48('0x2d')]?_0xa55835['attributes']:_0x22ee88[_0x544f48('0x33')],_0xa55835[_0x544f48('0x35')]=qs[_0x544f48('0x56')](_0x27c4d4[_0x544f48('0x48')][_0x544f48('0x56')]),_0xa55835[_0x544f48('0xa')]=qs[_0x544f48('0x3b')](_[_0x544f48('0x34')](_0x27c4d4['query'],_0x22ee88[_0x544f48('0x3b')])),_0x27c4d4[_0x544f48('0x48')][_0x544f48('0x2f')]&&(_0xa55835[_0x544f48('0xa')]=_['merge'](_0xa55835['where'],{[Op['or']]:_[_0x544f48('0x60')](_0xa55835[_0x544f48('0x45')],function(_0x29c9ee){const _0x3e6c2a=_0x544f48,_0x243834={};return _0x243834[_0x29c9ee]={[Op['like']]:'%'+_0x27c4d4[_0x3e6c2a('0x48')][_0x3e6c2a('0x2f')]+'%'},_0x243834;})})),_0xa55835=_['merge']({},_0xa55835,_0x27c4d4[_0x544f48('0x3e')]),_0x19f736[_0x544f48('0x5b')](_0xa55835);})[_0x326cce('0x4')](function(_0x5d5938){const _0x48679e=_0x326cce;if(_0x5d5938)return _0x1bca44=_0x5d5938[_0x48679e('0x2d')],typeof _0x27c4d4[_0x48679e('0x48')]['nolimit']===_0x48679e('0x23')&&(_0xa55835[_0x48679e('0x4f')]=qs['limit'](_0x27c4d4[_0x48679e('0x48')]['limit']),_0xa55835['offset']=qs[_0x48679e('0x30')](_0x27c4d4['query'][_0x48679e('0x30')])),_0x19f736[_0x48679e('0x5b')](_0xa55835);})[_0x326cce('0x4')](function(_0x13bf3f){if(_0x13bf3f)return _0x13bf3f?{'count':_0x1bca44,'rows':_0x13bf3f}:null;})['then'](respondWithResult(_0x5088dd,null))['catch'](handleError(_0x5088dd,null));},exports[_0x552b14('0x1')]=function(_0x24600e,_0x53d3da){const _0x4788a4=_0x552b14;return _0x24600e['body']['id']&&delete _0x24600e['body']['id'],db[_0x4788a4('0x14')][_0x4788a4('0x50')]({'where':{'id':_0x24600e['params']['id']}})[_0x4788a4('0x4')](handleEntityNotFound(_0x53d3da,null))['then'](function(_0x459f5b){const _0x2b7bc2=_0x4788a4;if(_0x459f5b)return _0x24600e[_0x2b7bc2('0x38')][_0x2b7bc2('0x7')]=_0x459f5b['id'],_0x24600e[_0x2b7bc2('0x38')][_0x2b7bc2('0x17')]=integrations[_0x2b7bc2('0x2b')](_0x24600e[_0x2b7bc2('0x38')]['channel'],_0x24600e[_0x2b7bc2('0x38')]['type']),_0x24600e['body'][_0x2b7bc2('0x41')]=integrations[_0x2b7bc2('0xe')](_0x24600e[_0x2b7bc2('0x38')][_0x2b7bc2('0x52')],_0x24600e[_0x2b7bc2('0x38')][_0x2b7bc2('0x59')]),db[_0x2b7bc2('0x46')][_0x2b7bc2('0x44')](_0x24600e[_0x2b7bc2('0x38')],{'include':[{'model':db[_0x2b7bc2('0x28')],'as':_0x2b7bc2('0x17')},{'model':db[_0x2b7bc2('0x28')],'as':_0x2b7bc2('0x41')}]});return null;})[_0x4788a4('0x4')](respondWithResult(_0x53d3da,null))[_0x4788a4('0x4d')](handleError(_0x53d3da,null));},exports[_0x552b14('0x18')]=function(_0x3b5e41,_0x2597a9){const _0x33afaa=_0x552b14;let _0x587691='';return db[_0x33afaa('0x14')][_0x33afaa('0x50')]({'where':{'id':_0x3b5e41[_0x33afaa('0x25')]['id']},'attributes':['id',_0x33afaa('0x12'),'apiKey']})[_0x33afaa('0x4')](handleEntityNotFound(_0x2597a9,null))[_0x33afaa('0x4')](function(_0x29b372){const _0x495d43=_0x33afaa;if(_0x29b372){_0x587691=_0x29b372[_0x495d43('0x12')];const _0x2626e8=_0x587691[_0x495d43('0x1f')](-0x1);return _0x2626e8==='/'&&(_0x587691=_0x587691[_0x495d43('0x3')](0x0,_0x587691[_0x495d43('0x2')](_0x2626e8))),rp({'method':_0x495d43('0x4c'),'uri':util['format'](_0x495d43('0xf'),_0x587691,_0x495d43('0x57')),'headers':{'Authorization':util[_0x495d43('0x1e')]('Basic\x20%s',Buffer['from'](util[_0x495d43('0x1e')]('%s:X',_0x29b372[_0x495d43('0x32')]))[_0x495d43('0x26')](_0x495d43('0x58')))},'json':!![]});}})[_0x33afaa('0x4')](function(_0x30320b){const _0x42f3f9=_0x33afaa;if(_0x30320b){const _0x281278=[_0x42f3f9('0x5c'),'subject',_0x42f3f9('0xc'),_0x42f3f9('0x43'),_0x42f3f9('0x1b'),_0x42f3f9('0x10'),_0x42f3f9('0x15'),_0x42f3f9('0x0'),_0x42f3f9('0x5d'),_0x42f3f9('0x15'),_0x42f3f9('0x5')];return _['remove'](_0x30320b,function(_0xdece6f){const _0x917e63=_0x42f3f9;return _0x281278[_0x917e63('0x37')](_0xdece6f['name'])||!_0xdece6f[_0x917e63('0x22')]&&_0xdece6f[_0x917e63('0x59')]!==_0x917e63('0x1a')&&_0xdece6f['type']!==_0x917e63('0x5f');}),{'count':_0x30320b[_0x42f3f9('0x2d')],'rows':_['map'](_0x30320b,function(_0x508e27){const _0x57801d=_0x42f3f9;return{'id':_0x508e27[_0x57801d('0x19')],'name':_0x508e27[_0x57801d('0x24')],'custom':!_0x508e27['default'],'options':_0x508e27['choices']?_[_0x57801d('0x60')](_0x508e27[_0x57801d('0x21')],function(_0x2a36bb){const _0x3fea2d=_0x57801d;return{'name':_[_0x3fea2d('0x13')](_0x2a36bb),'value':_0x2a36bb};}):[]};})};}})[_0x33afaa('0x4')](respondWithResult(_0x2597a9,null))[_0x33afaa('0x4d')](function(_0x1c9ffe){const _0x2a56f2=_0x33afaa;let _0x52070=_0x3b5e41[_0x2a56f2('0x48')][_0x2a56f2('0x55')]?0x1f4:_0x1c9ffe[_0x2a56f2('0x4e')]||0x1f4;logger[_0x2a56f2('0x53')](_0x2a56f2('0x36'),_0x2a56f2('0x18'),_0x52070,JSON[_0x2a56f2('0x3d')](_0x1c9ffe)),delete _0x1c9ffe[_0x2a56f2('0x19')],_0x52070===0x191&&(_0x52070=0x190),_0x2597a9['status'](_0x52070)[_0x2a56f2('0x9')](_0x3b5e41['query'][_0x2a56f2('0x55')]?{'message':_0x2a56f2('0x31'),'statusCode':_0x1c9ffe['statusCode']}:_0x1c9ffe);});}; \ No newline at end of file +const a255_0x15e1=['group','map','remoteUri','options','create','includeAll','findOne','statusCode','addConfiguration','custom_dropdown','lastIndexOf','count','index','source','name','error','ticket_type','fields','default','substring','getConfigurations','sort','rawAttributes','send','Content-Range','length','label','FreshdeskConfiguration','status','VIRTUAL','slice','filters','test','api/v2/ticket_fields','offset','%s/%s','filter','params','then','limit','FreshdeskField','intersection','fieldName','include','description','channel','choices','query','FreshdeskAccount','Subjects','requester','update','../../components/parsers/qs','sendStatus','merge','remove','keys','like','capitalize','format','pick','catch','from','undefined','destroy','Descriptions','../../mysqldb','order','stack','model','attributes','json','includes','Wrong\x20credentials','end','util','where','body','apiKey','subject','stringify','Basic\x20%s','type'];(function(_0x263413,_0x15e134){const _0x438344=function(_0x5d1ebe){while(--_0x5d1ebe){_0x263413['push'](_0x263413['shift']());}};_0x438344(++_0x15e134);}(a255_0x15e1,0x89));const a255_0x4383=function(_0x263413,_0x15e134){_0x263413=_0x263413-0x0;let _0x438344=a255_0x15e1[_0x263413];return _0x438344;};const _0x2572b7=a255_0x4383;'use strict';const rp=require('request-promise-native'),util=require(_0x2572b7('0x15')),_=require('lodash'),qs=require(_0x2572b7('0x51')),logger=require('../../config/logger')('api'),db=require(_0x2572b7('0xc'))['db'],{Op}=require('sequelize'),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x5d1ebe,_0x13e314){return _0x13e314=_0x13e314||0xc8,function(_0x545152){const _0x19a804=a255_0x4383;if(_0x545152)return _0x5d1ebe[_0x19a804('0x39')](_0x13e314)[_0x19a804('0x11')](_0x545152);};}function respondWithFilteredResult(_0x19b5ca,_0x6ebe98){return function(_0xb92958){const _0x522085=a255_0x4383;if(_0xb92958){const _0xbdcbd9=_0xb92958['count'],_0x55a63b=_0x6ebe98[_0x522085('0x3f')];let _0x11af31=_0x6ebe98[_0x522085('0x3f')]+_0x6ebe98[_0x522085('0x44')],_0x815f42;return _0x11af31>=_0xbdcbd9?(_0x11af31=_0xbdcbd9,_0x815f42=0xc8):_0x815f42=0xce,_0x19b5ca[_0x522085('0x39')](_0x815f42),_0x19b5ca['set'](_0x522085('0x35'),_0x55a63b+'-'+_0x11af31+'/'+_0xbdcbd9)[_0x522085('0x11')](_0xb92958);}return null;};}function saveUpdates(_0x280b97){return function(_0x10fc4b){const _0x51946e=a255_0x4383;if(_0x10fc4b)return _0x10fc4b[_0x51946e('0x50')](_0x280b97)[_0x51946e('0x43')](function(_0x4f52e6){return _0x4f52e6;});return null;};}function removeEntity(_0x128128){return function(_0x305285){const _0x13848f=a255_0x4383;if(_0x305285)return _0x305285[_0x13848f('0xa')]()[_0x13848f('0x43')](function(){const _0x600774=_0x13848f;_0x128128[_0x600774('0x39')](0xcc)[_0x600774('0x14')]();});};}function handleEntityNotFound(_0x49982c){return function(_0x2f6642){const _0x148666=a255_0x4383;return!_0x2f6642&&_0x49982c[_0x148666('0x52')](0x194),_0x2f6642;};}function handleError(_0x93a6ad,_0x9322e8){return _0x9322e8=_0x9322e8||0x1f4,function(_0x396fe3){const _0x8b91b4=a255_0x4383;logger[_0x8b91b4('0x2c')](_0x396fe3[_0x8b91b4('0xe')]),_0x396fe3['name']&&delete _0x396fe3['name'],_0x93a6ad[_0x8b91b4('0x39')](_0x9322e8)[_0x8b91b4('0x34')](_0x396fe3);};}exports[_0x2572b7('0x29')]=function(_0x345e9c,_0x5354e0){const _0x79474d=_0x2572b7;let _0x3664f6={};const _0x56f32a={},_0x5c0a3c={'count':0x0,'rows':[]},_0x2e7715=_[_0x79474d('0x1e')](db[_0x79474d('0x4d')][_0x79474d('0x33')],function(_0x4a0228){const _0x3c2477=_0x79474d;return{'name':_0x4a0228[_0x3c2477('0x47')],'type':_0x4a0228[_0x3c2477('0x1c')]['key']};});_0x56f32a[_0x79474d('0xf')]=_[_0x79474d('0x1e')](_0x2e7715,_0x79474d('0x2b')),_0x56f32a[_0x79474d('0x4c')]=_[_0x79474d('0x2')](_0x345e9c['query']),_0x56f32a[_0x79474d('0x3c')]=_[_0x79474d('0x46')](_0x56f32a[_0x79474d('0xf')],_0x56f32a[_0x79474d('0x4c')]),_0x3664f6[_0x79474d('0x10')]=_['intersection'](_0x56f32a['model'],qs[_0x79474d('0x2e')](_0x345e9c[_0x79474d('0x4c')][_0x79474d('0x2e')])),_0x3664f6[_0x79474d('0x10')]=_0x3664f6[_0x79474d('0x10')][_0x79474d('0x36')]?_0x3664f6[_0x79474d('0x10')]:_0x56f32a[_0x79474d('0xf')];typeof _0x345e9c[_0x79474d('0x4c')]['nolimit']===_0x79474d('0x9')&&(_0x3664f6[_0x79474d('0x44')]=qs[_0x79474d('0x44')](_0x345e9c[_0x79474d('0x4c')][_0x79474d('0x44')]),_0x3664f6[_0x79474d('0x3f')]=qs[_0x79474d('0x3f')](_0x345e9c[_0x79474d('0x4c')][_0x79474d('0x3f')]));_0x3664f6[_0x79474d('0xd')]=qs['sort'](_0x345e9c[_0x79474d('0x4c')][_0x79474d('0x32')]),_0x3664f6[_0x79474d('0x16')]=qs[_0x79474d('0x3c')](_[_0x79474d('0x6')](_0x345e9c[_0x79474d('0x4c')],_0x56f32a['filters']),_0x2e7715);_0x345e9c[_0x79474d('0x4c')][_0x79474d('0x41')]&&(_0x3664f6[_0x79474d('0x16')]=_[_0x79474d('0x0')](_0x3664f6[_0x79474d('0x16')],{[Op['or']]:_[_0x79474d('0x1e')](_0x2e7715,function(_0x1f637c){const _0x31d238=_0x79474d;if(_0x1f637c['type']!==_0x31d238('0x3a')){const _0x92cc4f={};return _0x92cc4f[_0x1f637c['name']]={[Op[_0x31d238('0x3')]]:'%'+_0x345e9c['query'][_0x31d238('0x41')]+'%'},_0x92cc4f;}})}));_0x3664f6=_[_0x79474d('0x0')]({},_0x3664f6,_0x345e9c[_0x79474d('0x20')]);const _0x5079be={'where':_0x3664f6['where']};return db['FreshdeskAccount']['count'](_0x5079be)[_0x79474d('0x43')](function(_0x1095d1){const _0x3480d7=_0x79474d;return _0x5c0a3c[_0x3480d7('0x28')]=_0x1095d1,_0x345e9c['query']['includeAll']&&(_0x3664f6[_0x3480d7('0x48')]=[{'all':!![]}]),db[_0x3480d7('0x4d')]['findAll'](_0x3664f6);})['then'](function(_0x37c09b){return _0x5c0a3c['rows']=_0x37c09b,_0x5c0a3c;})[_0x79474d('0x43')](respondWithFilteredResult(_0x5354e0,_0x3664f6))[_0x79474d('0x7')](handleError(_0x5354e0,null));},exports['show']=function(_0x43242b,_0x1e4dda){const _0x439183=_0x2572b7;let _0x175713={'raw':![],'where':{'id':_0x43242b['params']['id']}};const _0xf2de37={};return _0xf2de37[_0x439183('0xf')]=_[_0x439183('0x2')](db[_0x439183('0x4d')][_0x439183('0x33')]),_0xf2de37[_0x439183('0x4c')]=_['keys'](_0x43242b[_0x439183('0x4c')]),_0xf2de37['filters']=_['intersection'](_0xf2de37[_0x439183('0xf')],_0xf2de37['query']),_0x175713[_0x439183('0x10')]=_['intersection'](_0xf2de37[_0x439183('0xf')],qs[_0x439183('0x2e')](_0x43242b[_0x439183('0x4c')]['fields'])),_0x175713[_0x439183('0x10')]=_0x175713[_0x439183('0x10')][_0x439183('0x36')]?_0x175713[_0x439183('0x10')]:_0xf2de37[_0x439183('0xf')],_0x43242b[_0x439183('0x4c')][_0x439183('0x22')]&&(_0x175713[_0x439183('0x48')]=[{'all':!![]}]),_0x175713=_['merge']({},_0x175713,_0x43242b[_0x439183('0x20')]),db[_0x439183('0x4d')][_0x439183('0x23')](_0x175713)[_0x439183('0x43')](handleEntityNotFound(_0x1e4dda,null))[_0x439183('0x43')](respondWithResult(_0x1e4dda,null))[_0x439183('0x7')](handleError(_0x1e4dda,null));},exports[_0x2572b7('0x21')]=function(_0x2105ed,_0x1e0a7e){const _0x546954=_0x2572b7;return db[_0x546954('0x4d')][_0x546954('0x21')](_0x2105ed[_0x546954('0x17')],{})['then'](respondWithResult(_0x1e0a7e,0xc9))[_0x546954('0x7')](handleError(_0x1e0a7e,null));},exports[_0x2572b7('0x50')]=function(_0x437980,_0x296681){const _0x44e2c9=_0x2572b7;return _0x437980[_0x44e2c9('0x17')]['id']&&delete _0x437980[_0x44e2c9('0x17')]['id'],db[_0x44e2c9('0x4d')]['findOne']({'where':{'id':_0x437980[_0x44e2c9('0x42')]['id']}})[_0x44e2c9('0x43')](handleEntityNotFound(_0x296681,null))[_0x44e2c9('0x43')](saveUpdates(_0x437980[_0x44e2c9('0x17')],null))['then'](respondWithResult(_0x296681,null))[_0x44e2c9('0x7')](handleError(_0x296681,null));},exports[_0x2572b7('0xa')]=function(_0x2c8213,_0x22896d){const _0x330d89=_0x2572b7;return db[_0x330d89('0x4d')][_0x330d89('0x23')]({'where':{'id':_0x2c8213['params']['id']}})[_0x330d89('0x43')](handleEntityNotFound(_0x22896d,null))['then'](removeEntity(_0x22896d,null))['catch'](handleError(_0x22896d,null));},exports['getConfigurations']=function(_0x42060a,_0x620e19){const _0x275690=_0x2572b7;let _0xf3b197={};const _0x4d3d5a={};let _0x3cfd1d,_0x3ca137;return db[_0x275690('0x4d')][_0x275690('0x23')]({'where':{'id':_0x42060a[_0x275690('0x42')]['id']}})[_0x275690('0x43')](handleEntityNotFound(_0x620e19,null))['then'](function(_0x5c8f99){const _0x3545fd=_0x275690;if(_0x5c8f99)return _0x3cfd1d=_0x5c8f99,_0x4d3d5a[_0x3545fd('0xf')]=_['keys'](db['FreshdeskConfiguration']['rawAttributes']),_0x4d3d5a[_0x3545fd('0x4c')]=_[_0x3545fd('0x2')](_0x42060a[_0x3545fd('0x4c')]),_0x4d3d5a[_0x3545fd('0x3c')]=_['intersection'](_0x4d3d5a[_0x3545fd('0xf')],_0x4d3d5a[_0x3545fd('0x4c')]),_0xf3b197[_0x3545fd('0x10')]=_['intersection'](_0x4d3d5a[_0x3545fd('0xf')],qs[_0x3545fd('0x2e')](_0x42060a[_0x3545fd('0x4c')][_0x3545fd('0x2e')])),_0xf3b197[_0x3545fd('0x10')]=_0xf3b197[_0x3545fd('0x10')][_0x3545fd('0x36')]?_0xf3b197['attributes']:_0x4d3d5a['model'],_0xf3b197[_0x3545fd('0xd')]=qs[_0x3545fd('0x32')](_0x42060a[_0x3545fd('0x4c')][_0x3545fd('0x32')]),_0xf3b197[_0x3545fd('0x16')]=qs[_0x3545fd('0x3c')](_[_0x3545fd('0x6')](_0x42060a['query'],_0x4d3d5a[_0x3545fd('0x3c')])),_0x42060a[_0x3545fd('0x4c')]['filter']&&(_0xf3b197['where']=_[_0x3545fd('0x0')](_0xf3b197[_0x3545fd('0x16')],{[Op['or']]:_['map'](_0xf3b197['attributes'],function(_0x3c3ec2){const _0x3cf37e=_0x3545fd,_0xa39f79={};return _0xa39f79[_0x3c3ec2]={[Op[_0x3cf37e('0x3')]]:'%'+_0x42060a[_0x3cf37e('0x4c')][_0x3cf37e('0x41')]+'%'},_0xa39f79;})})),_0xf3b197=_[_0x3545fd('0x0')]({},_0xf3b197,_0x42060a[_0x3545fd('0x20')]),_0x3cfd1d[_0x3545fd('0x31')](_0xf3b197);})[_0x275690('0x43')](function(_0x1c62eb){const _0x105504=_0x275690;if(_0x1c62eb)return _0x3ca137=_0x1c62eb[_0x105504('0x36')],typeof _0x42060a[_0x105504('0x4c')]['nolimit']==='undefined'&&(_0xf3b197[_0x105504('0x44')]=qs[_0x105504('0x44')](_0x42060a[_0x105504('0x4c')][_0x105504('0x44')]),_0xf3b197[_0x105504('0x3f')]=qs[_0x105504('0x3f')](_0x42060a[_0x105504('0x4c')][_0x105504('0x3f')])),_0x3cfd1d['getConfigurations'](_0xf3b197);})['then'](function(_0x31b0c6){if(_0x31b0c6)return _0x31b0c6?{'count':_0x3ca137,'rows':_0x31b0c6}:null;})[_0x275690('0x43')](respondWithResult(_0x620e19,null))[_0x275690('0x7')](handleError(_0x620e19,null));},exports[_0x2572b7('0x25')]=function(_0x1c70a8,_0x4a3c28){const _0x23854f=_0x2572b7;return _0x1c70a8[_0x23854f('0x17')]['id']&&delete _0x1c70a8[_0x23854f('0x17')]['id'],db['FreshdeskAccount'][_0x23854f('0x23')]({'where':{'id':_0x1c70a8[_0x23854f('0x42')]['id']}})[_0x23854f('0x43')](handleEntityNotFound(_0x4a3c28,null))[_0x23854f('0x43')](function(_0x1c28e8){const _0x95560e=_0x23854f;if(_0x1c28e8)return _0x1c70a8['body']['AccountId']=_0x1c28e8['id'],_0x1c70a8[_0x95560e('0x17')][_0x95560e('0x4e')]=integrations['getSubjects'](_0x1c70a8[_0x95560e('0x17')][_0x95560e('0x4a')],_0x1c70a8[_0x95560e('0x17')][_0x95560e('0x1c')]),_0x1c70a8[_0x95560e('0x17')][_0x95560e('0xb')]=integrations['getDescriptions'](_0x1c70a8[_0x95560e('0x17')][_0x95560e('0x4a')],_0x1c70a8[_0x95560e('0x17')][_0x95560e('0x1c')]),db[_0x95560e('0x38')]['create'](_0x1c70a8[_0x95560e('0x17')],{'include':[{'model':db['FreshdeskField'],'as':_0x95560e('0x4e')},{'model':db[_0x95560e('0x45')],'as':'Descriptions'}]});return null;})['then'](respondWithResult(_0x4a3c28,null))[_0x23854f('0x7')](handleError(_0x4a3c28,null));},exports['getFields']=function(_0x1e0e6f,_0x3bfb93){const _0x2e4154=_0x2572b7;let _0x16df7f='';return db[_0x2e4154('0x4d')][_0x2e4154('0x23')]({'where':{'id':_0x1e0e6f[_0x2e4154('0x42')]['id']},'attributes':['id',_0x2e4154('0x1f'),_0x2e4154('0x18')]})[_0x2e4154('0x43')](handleEntityNotFound(_0x3bfb93,null))[_0x2e4154('0x43')](function(_0x400cb4){const _0x1a595b=_0x2e4154;if(_0x400cb4){_0x16df7f=_0x400cb4['remoteUri'];const _0x1394f4=_0x16df7f[_0x1a595b('0x3b')](-0x1);return _0x1394f4==='/'&&(_0x16df7f=_0x16df7f[_0x1a595b('0x30')](0x0,_0x16df7f[_0x1a595b('0x27')](_0x1394f4))),rp({'method':'GET','uri':util[_0x1a595b('0x5')](_0x1a595b('0x40'),_0x16df7f,_0x1a595b('0x3e')),'headers':{'Authorization':util[_0x1a595b('0x5')](_0x1a595b('0x1b'),Buffer[_0x1a595b('0x8')](util['format']('%s:X',_0x400cb4[_0x1a595b('0x18')]))['toString']('base64'))},'json':!![]});}})[_0x2e4154('0x43')](function(_0x4e6250){const _0x59093d=_0x2e4154;if(_0x4e6250){const _0x2cf225=[_0x59093d('0x4f'),_0x59093d('0x19'),'agent',_0x59093d('0x49'),_0x59093d('0x39'),'priority',_0x59093d('0x1d'),_0x59093d('0x2a'),_0x59093d('0x2d'),_0x59093d('0x1d'),'company'];return _[_0x59093d('0x1')](_0x4e6250,function(_0x49a9b6){const _0x4b8d68=_0x59093d;return _0x2cf225[_0x4b8d68('0x12')](_0x49a9b6[_0x4b8d68('0x2b')])||!_0x49a9b6[_0x4b8d68('0x2f')]&&_0x49a9b6['type']!=='custom_text'&&_0x49a9b6['type']!==_0x4b8d68('0x26');}),{'count':_0x4e6250['length'],'rows':_[_0x59093d('0x1e')](_0x4e6250,function(_0x106f10){const _0x48bf6c=_0x59093d;return{'id':_0x106f10['name'],'name':_0x106f10[_0x48bf6c('0x37')],'custom':!_0x106f10['default'],'options':_0x106f10['choices']?_[_0x48bf6c('0x1e')](_0x106f10[_0x48bf6c('0x4b')],function(_0x2c0732){const _0xe0981f=_0x48bf6c;return{'name':_[_0xe0981f('0x4')](_0x2c0732),'value':_0x2c0732};}):[]};})};}})[_0x2e4154('0x43')](respondWithResult(_0x3bfb93,null))[_0x2e4154('0x7')](function(_0xff66f8){const _0xebd22c=_0x2e4154;let _0x29eae3=_0x1e0e6f[_0xebd22c('0x4c')][_0xebd22c('0x3d')]?0x1f4:_0xff66f8[_0xebd22c('0x24')]||0x1f4;logger[_0xebd22c('0x2c')]('getFields,\x20%s,\x20%s,\x20%s','getFields',_0x29eae3,JSON[_0xebd22c('0x1a')](_0xff66f8)),delete _0xff66f8[_0xebd22c('0x2b')],_0x29eae3===0x191&&(_0x29eae3=0x190),_0x3bfb93[_0xebd22c('0x39')](_0x29eae3)[_0xebd22c('0x34')](_0x1e0e6f[_0xebd22c('0x4c')][_0xebd22c('0x3d')]?{'message':_0xebd22c('0x13'),'statusCode':_0xff66f8[_0xebd22c('0x24')]}:_0xff66f8);});}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js index f561f1d..ac6d0c8 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js @@ -1 +1 @@ -const a256_0x2d04=['exports'];(function(_0x339648,_0x2d04de){const _0x311c2a=function(_0x2e38ac){while(--_0x2e38ac){_0x339648['push'](_0x339648['shift']());}};_0x311c2a(++_0x2d04de);}(a256_0x2d04,0x1d0));const a256_0x311c=function(_0x339648,_0x2d04de){_0x339648=_0x339648-0x0;let _0x311c2a=a256_0x2d04[_0x339648];return _0x311c2a;};const _0x5e11c7=a256_0x311c;'use strict';const attributes=require('./intFreshdeskAccount.attributes');module[_0x5e11c7('0x0')]=function(_0x2e38ac){const _0x4b8534=_0x2e38ac['define']('FreshdeskAccount',attributes,{'tableName':'int_freshdesk_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4b8534;}; \ No newline at end of file +const a256_0x141d=['exports','./intFreshdeskAccount.attributes'];(function(_0x3dc5f1,_0x141d9d){const _0x5b936a=function(_0x1f0f0c){while(--_0x1f0f0c){_0x3dc5f1['push'](_0x3dc5f1['shift']());}};_0x5b936a(++_0x141d9d);}(a256_0x141d,0x18d));const a256_0x5b93=function(_0x3dc5f1,_0x141d9d){_0x3dc5f1=_0x3dc5f1-0x0;let _0x5b936a=a256_0x141d[_0x3dc5f1];return _0x5b936a;};const _0x5788f8=a256_0x5b93;'use strict';const attributes=require(_0x5788f8('0x0'));module[_0x5788f8('0x1')]=function(_0x1f0f0c){const _0x5e5bf5=_0x1f0f0c['define']('FreshdeskAccount',attributes,{'tableName':'int_freshdesk_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5e5bf5;}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js index fc7ccf4..a5e7ab3 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js @@ -1 +1 @@ -const a257_0xa713=['then','../../mysqldb','raw','catch','ShowFreshdeskAccount','where','map','model','message','lodash','include','debug','findAll','options','../../config/logger','info','GetFreshdeskAccount','limit','error','attributes','rpc','findOne','FreshdeskAccount'];(function(_0x32bf27,_0xa713da){const _0x114f7a=function(_0x5d3665){while(--_0x5d3665){_0x32bf27['push'](_0x32bf27['shift']());}};_0x114f7a(++_0xa713da);}(a257_0xa713,0xc4));const a257_0x114f=function(_0x32bf27,_0xa713da){_0x32bf27=_0x32bf27-0x0;let _0x114f7a=a257_0xa713[_0x32bf27];return _0x114f7a;};const _0x10365f=a257_0x114f;'use strict';const _=require(_0x10365f('0x14')),db=require(_0x10365f('0xc'))['db'],logger=require(_0x10365f('0x2'))(_0x10365f('0x8'));exports['GetFreshdeskAccount']=function(_0x5d3665){const _0x371dff=this;return new Promise(function(_0x26e4ed,_0x2d5bee){const _0x462f06=a257_0x114f;return db[_0x462f06('0xa')][_0x462f06('0x0')]({'raw':_0x5d3665['options']?_0x5d3665[_0x462f06('0x1')][_0x462f06('0xd')]===undefined?!![]:![]:!![],'where':_0x5d3665['options']?_0x5d3665[_0x462f06('0x1')][_0x462f06('0x10')]||null:null,'attributes':_0x5d3665[_0x462f06('0x1')]?_0x5d3665[_0x462f06('0x1')]['attributes']||null:null,'limit':_0x5d3665['options']?_0x5d3665[_0x462f06('0x1')][_0x462f06('0x5')]||null:null,'include':_0x5d3665[_0x462f06('0x1')]?_0x5d3665[_0x462f06('0x1')]['include']?_['map'](_0x5d3665[_0x462f06('0x1')][_0x462f06('0x15')],function(_0x31d50e){const _0x13c1b2=_0x462f06;return{'model':db[_0x31d50e[_0x13c1b2('0x12')]],'as':_0x31d50e['as'],'attributes':_0x31d50e[_0x13c1b2('0x7')],'include':_0x31d50e[_0x13c1b2('0x15')]?_[_0x13c1b2('0x11')](_0x31d50e[_0x13c1b2('0x15')],function(_0x5d558d){const _0x44e80a=_0x13c1b2;return{'model':db[_0x5d558d[_0x44e80a('0x12')]],'as':_0x5d558d['as'],'attributes':_0x5d558d[_0x44e80a('0x7')],'include':_0x5d558d[_0x44e80a('0x15')]?_[_0x44e80a('0x11')](_0x5d558d[_0x44e80a('0x15')],function(_0x242b82){return{'model':db[_0x242b82['model']],'as':_0x242b82['as'],'attributes':_0x242b82['attributes']};}):[]};}):[]};}):[]:[]})[_0x462f06('0xb')](function(_0xcd6fa4){const _0x4711db=_0x462f06;logger['info'](_0x4711db('0x4'),_0x5d3665),logger[_0x4711db('0x16')](_0x4711db('0x4'),_0x5d3665,JSON['stringify'](_0xcd6fa4)),_0x26e4ed(_0xcd6fa4);})[_0x462f06('0xe')](function(_0x4dd9c4){const _0x4319f2=_0x462f06;logger['error'](_0x4319f2('0x4'),_0x4dd9c4['message'],_0x5d3665),_0x2d5bee(_0x371dff[_0x4319f2('0x6')](0x1f4,_0x4dd9c4[_0x4319f2('0x13')]));});});},exports[_0x10365f('0xf')]=function(_0x3d73e4){const _0x530374=this;return new Promise(function(_0x405df3,_0x3fbd62){const _0x2ae871=a257_0x114f;return db[_0x2ae871('0xa')][_0x2ae871('0x9')]({'raw':_0x3d73e4[_0x2ae871('0x1')]?_0x3d73e4[_0x2ae871('0x1')][_0x2ae871('0xd')]===undefined?!![]:![]:!![],'where':_0x3d73e4[_0x2ae871('0x1')]?_0x3d73e4[_0x2ae871('0x1')][_0x2ae871('0x10')]||null:null,'attributes':_0x3d73e4[_0x2ae871('0x1')]?_0x3d73e4['options'][_0x2ae871('0x7')]||null:null,'include':_0x3d73e4['options']?_0x3d73e4['options'][_0x2ae871('0x15')]?_[_0x2ae871('0x11')](_0x3d73e4['options'][_0x2ae871('0x15')],function(_0x129eae){const _0x21051c=_0x2ae871;return{'model':db[_0x129eae[_0x21051c('0x12')]],'as':_0x129eae['as'],'attributes':_0x129eae[_0x21051c('0x7')],'include':_0x129eae[_0x21051c('0x15')]?_[_0x21051c('0x11')](_0x129eae[_0x21051c('0x15')],function(_0x562a0f){const _0x16ca29=_0x21051c;return{'model':db[_0x562a0f[_0x16ca29('0x12')]],'as':_0x562a0f['as'],'attributes':_0x562a0f[_0x16ca29('0x7')],'include':_0x562a0f[_0x16ca29('0x15')]?_[_0x16ca29('0x11')](_0x562a0f[_0x16ca29('0x15')],function(_0xb3a742){const _0x15c191=_0x16ca29;return{'model':db[_0xb3a742[_0x15c191('0x12')]],'as':_0xb3a742['as'],'attributes':_0xb3a742[_0x15c191('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x244233){const _0x2f66cc=_0x2ae871;logger[_0x2f66cc('0x3')](_0x2f66cc('0xf'),_0x3d73e4),logger[_0x2f66cc('0x16')](_0x2f66cc('0xf'),_0x3d73e4,JSON['stringify'](_0x244233)),_0x405df3(_0x244233);})[_0x2ae871('0xe')](function(_0x54995f){const _0x335e00=_0x2ae871;logger['error'](_0x335e00('0xf'),_0x54995f[_0x335e00('0x13')],_0x3d73e4),_0x3fbd62(_0x530374[_0x335e00('0x6')](0x1f4,_0x54995f[_0x335e00('0x13')]));});});}; \ No newline at end of file +const a257_0x496a=['error','catch','FreshdeskAccount','model','message','map','debug','raw','where','info','options','findOne','attributes','include','lodash','rpc','then','limit','GetFreshdeskAccount','ShowFreshdeskAccount'];(function(_0x47c225,_0x496a55){const _0x54b7ad=function(_0x12beb9){while(--_0x12beb9){_0x47c225['push'](_0x47c225['shift']());}};_0x54b7ad(++_0x496a55);}(a257_0x496a,0x17d));const a257_0x54b7=function(_0x47c225,_0x496a55){_0x47c225=_0x47c225-0x0;let _0x54b7ad=a257_0x496a[_0x47c225];return _0x54b7ad;};const _0x3a4889=a257_0x54b7;'use strict';const _=require(_0x3a4889('0xd')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x3a4889('0xe'));exports['GetFreshdeskAccount']=function(_0x12beb9){const _0x790c=this;return new Promise(function(_0x1ac4e6,_0x3ffb77){const _0x3c3833=a257_0x54b7;return db[_0x3c3833('0x1')]['findAll']({'raw':_0x12beb9[_0x3c3833('0x9')]?_0x12beb9['options'][_0x3c3833('0x6')]===undefined?!![]:![]:!![],'where':_0x12beb9[_0x3c3833('0x9')]?_0x12beb9[_0x3c3833('0x9')][_0x3c3833('0x7')]||null:null,'attributes':_0x12beb9[_0x3c3833('0x9')]?_0x12beb9[_0x3c3833('0x9')][_0x3c3833('0xb')]||null:null,'limit':_0x12beb9[_0x3c3833('0x9')]?_0x12beb9[_0x3c3833('0x9')][_0x3c3833('0x10')]||null:null,'include':_0x12beb9[_0x3c3833('0x9')]?_0x12beb9[_0x3c3833('0x9')][_0x3c3833('0xc')]?_[_0x3c3833('0x4')](_0x12beb9['options'][_0x3c3833('0xc')],function(_0x2c253b){const _0xce3aaa=_0x3c3833;return{'model':db[_0x2c253b[_0xce3aaa('0x2')]],'as':_0x2c253b['as'],'attributes':_0x2c253b[_0xce3aaa('0xb')],'include':_0x2c253b['include']?_[_0xce3aaa('0x4')](_0x2c253b['include'],function(_0x16bed6){const _0x160d1d=_0xce3aaa;return{'model':db[_0x16bed6[_0x160d1d('0x2')]],'as':_0x16bed6['as'],'attributes':_0x16bed6[_0x160d1d('0xb')],'include':_0x16bed6[_0x160d1d('0xc')]?_['map'](_0x16bed6['include'],function(_0x3d3702){const _0xe8905b=_0x160d1d;return{'model':db[_0x3d3702[_0xe8905b('0x2')]],'as':_0x3d3702['as'],'attributes':_0x3d3702[_0xe8905b('0xb')]};}):[]};}):[]};}):[]:[]})[_0x3c3833('0xf')](function(_0x261553){const _0x325a2=_0x3c3833;logger[_0x325a2('0x8')](_0x325a2('0x11'),_0x12beb9),logger[_0x325a2('0x5')](_0x325a2('0x11'),_0x12beb9,JSON['stringify'](_0x261553)),_0x1ac4e6(_0x261553);})[_0x3c3833('0x0')](function(_0x135422){const _0x3fc99f=_0x3c3833;logger[_0x3fc99f('0x13')](_0x3fc99f('0x11'),_0x135422[_0x3fc99f('0x3')],_0x12beb9),_0x3ffb77(_0x790c['error'](0x1f4,_0x135422[_0x3fc99f('0x3')]));});});},exports[_0x3a4889('0x12')]=function(_0x420956){const _0x3ad5e9=this;return new Promise(function(_0x685b49,_0x4f04f9){const _0x36fc08=a257_0x54b7;return db[_0x36fc08('0x1')][_0x36fc08('0xa')]({'raw':_0x420956[_0x36fc08('0x9')]?_0x420956[_0x36fc08('0x9')][_0x36fc08('0x6')]===undefined?!![]:![]:!![],'where':_0x420956[_0x36fc08('0x9')]?_0x420956[_0x36fc08('0x9')][_0x36fc08('0x7')]||null:null,'attributes':_0x420956['options']?_0x420956[_0x36fc08('0x9')]['attributes']||null:null,'include':_0x420956[_0x36fc08('0x9')]?_0x420956[_0x36fc08('0x9')]['include']?_[_0x36fc08('0x4')](_0x420956[_0x36fc08('0x9')][_0x36fc08('0xc')],function(_0x5c0b46){const _0x1fe8a1=_0x36fc08;return{'model':db[_0x5c0b46[_0x1fe8a1('0x2')]],'as':_0x5c0b46['as'],'attributes':_0x5c0b46[_0x1fe8a1('0xb')],'include':_0x5c0b46[_0x1fe8a1('0xc')]?_['map'](_0x5c0b46[_0x1fe8a1('0xc')],function(_0xdd148f){const _0xb61bec=_0x1fe8a1;return{'model':db[_0xdd148f[_0xb61bec('0x2')]],'as':_0xdd148f['as'],'attributes':_0xdd148f[_0xb61bec('0xb')],'include':_0xdd148f['include']?_[_0xb61bec('0x4')](_0xdd148f['include'],function(_0x3d0124){const _0x37cb9f=_0xb61bec;return{'model':db[_0x3d0124[_0x37cb9f('0x2')]],'as':_0x3d0124['as'],'attributes':_0x3d0124[_0x37cb9f('0xb')]};}):[]};}):[]};}):[]:[]})[_0x36fc08('0xf')](function(_0x4ff760){const _0x34297e=_0x36fc08;logger[_0x34297e('0x8')]('ShowFreshdeskAccount',_0x420956),logger['debug'](_0x34297e('0x12'),_0x420956,JSON['stringify'](_0x4ff760)),_0x685b49(_0x4ff760);})['catch'](function(_0x4540b1){const _0x3e33f6=_0x36fc08;logger[_0x3e33f6('0x13')](_0x3e33f6('0x12'),_0x4540b1[_0x3e33f6('0x3')],_0x420956),_0x4f04f9(_0x3ad5e9['error'](0x1f4,_0x4540b1['message']));});});}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/index.js b/server/api/intFreshdeskConfiguration/index.js index d76d8a8..a22d0e6 100644 --- a/server/api/intFreshdeskConfiguration/index.js +++ b/server/api/intFreshdeskConfiguration/index.js @@ -1 +1 @@ -const a258_0x35e7=['create','/:id','post','/:id/descriptions','express','get','isAuthenticated','/:id/tags','/:id/subjects','show','index','getFields','getTags','put','setTags','getSubjects','../../components/auth/service','delete'];(function(_0x3019ca,_0x35e75e){const _0x33fdb8=function(_0x1051f6){while(--_0x1051f6){_0x3019ca['push'](_0x3019ca['shift']());}};_0x33fdb8(++_0x35e75e);}(a258_0x35e7,0x13d));const a258_0x33fd=function(_0x3019ca,_0x35e75e){_0x3019ca=_0x3019ca-0x0;let _0x33fdb8=a258_0x35e7[_0x3019ca];return _0x33fdb8;};const _0x149451=a258_0x33fd;'use strict';const express=require(_0x149451('0xb')),router=express['Router'](),auth=require(_0x149451('0x5')),controller=require('./intFreshdeskConfiguration.controller');router[_0x149451('0xc')]('/',auth[_0x149451('0xd')](),controller[_0x149451('0x11')]),router[_0x149451('0xc')](_0x149451('0x8'),auth[_0x149451('0xd')](),controller[_0x149451('0x10')]),router[_0x149451('0xc')]('/:id/fields',auth['isAuthenticated'](),controller[_0x149451('0x0')]),router[_0x149451('0xc')](_0x149451('0xf'),auth[_0x149451('0xd')](),controller[_0x149451('0x4')]),router['get'](_0x149451('0xa'),auth[_0x149451('0xd')](),controller['getDescriptions']),router[_0x149451('0xc')](_0x149451('0xe'),auth['isAuthenticated'](),controller[_0x149451('0x1')]),router[_0x149451('0x9')]('/',auth[_0x149451('0xd')](),controller[_0x149451('0x7')]),router['post'](_0x149451('0xe'),auth['isAuthenticated'](),controller[_0x149451('0x3')]),router[_0x149451('0x2')](_0x149451('0x8'),auth['isAuthenticated'](),controller['update']),router[_0x149451('0x6')](_0x149451('0x8'),auth[_0x149451('0xd')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a258_0x344a=['../../components/auth/service','post','index','create','isAuthenticated','setTags','/:id/subjects','delete','getSubjects','express','getTags','put','get','/:id/tags','getFields','./intFreshdeskConfiguration.controller','/:id','Router','exports'];(function(_0x355022,_0x344a2c){const _0x14e229=function(_0x1f3daa){while(--_0x1f3daa){_0x355022['push'](_0x355022['shift']());}};_0x14e229(++_0x344a2c);}(a258_0x344a,0xc4));const a258_0x14e2=function(_0x355022,_0x344a2c){_0x355022=_0x355022-0x0;let _0x14e229=a258_0x344a[_0x355022];return _0x14e229;};const _0x52b46c=a258_0x14e2;'use strict';const express=require(_0x52b46c('0x3')),router=express[_0x52b46c('0xb')](),auth=require(_0x52b46c('0xd')),controller=require(_0x52b46c('0x9'));router[_0x52b46c('0x6')]('/',auth[_0x52b46c('0x11')](),controller[_0x52b46c('0xf')]),router[_0x52b46c('0x6')](_0x52b46c('0xa'),auth[_0x52b46c('0x11')](),controller['show']),router[_0x52b46c('0x6')]('/:id/fields',auth[_0x52b46c('0x11')](),controller[_0x52b46c('0x8')]),router['get'](_0x52b46c('0x0'),auth[_0x52b46c('0x11')](),controller[_0x52b46c('0x2')]),router[_0x52b46c('0x6')]('/:id/descriptions',auth[_0x52b46c('0x11')](),controller['getDescriptions']),router['get']('/:id/tags',auth[_0x52b46c('0x11')](),controller[_0x52b46c('0x4')]),router[_0x52b46c('0xe')]('/',auth[_0x52b46c('0x11')](),controller[_0x52b46c('0x10')]),router[_0x52b46c('0xe')](_0x52b46c('0x7'),auth[_0x52b46c('0x11')](),controller[_0x52b46c('0x12')]),router[_0x52b46c('0x5')](_0x52b46c('0xa'),auth[_0x52b46c('0x11')](),controller['update']),router[_0x52b46c('0x1')]('/:id',auth[_0x52b46c('0x11')](),controller['destroy']),module[_0x52b46c('0xc')]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js index b1bf44f..d8fdb7d 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js @@ -1 +1 @@ -const a259_0x269f=['sequelize','STRING','exports'];(function(_0x57daa6,_0x269f1f){const _0x1758d1=function(_0x162071){while(--_0x162071){_0x57daa6['push'](_0x57daa6['shift']());}};_0x1758d1(++_0x269f1f);}(a259_0x269f,0x144));const a259_0x1758=function(_0x57daa6,_0x269f1f){_0x57daa6=_0x57daa6-0x0;let _0x1758d1=a259_0x269f[_0x57daa6];return _0x1758d1;};const _0x343077=a259_0x1758;'use strict';const Sequelize=require(_0x343077('0x0'));module[_0x343077('0x2')]={'name':{'type':Sequelize[_0x343077('0x1')]},'description':{'type':Sequelize[_0x343077('0x1')]}}; \ No newline at end of file +const a259_0x53ac=['STRING','sequelize'];(function(_0x5dd36d,_0x53acab){const _0x1e5908=function(_0x1b681b){while(--_0x1b681b){_0x5dd36d['push'](_0x5dd36d['shift']());}};_0x1e5908(++_0x53acab);}(a259_0x53ac,0x13d));const a259_0x1e59=function(_0x5dd36d,_0x53acab){_0x5dd36d=_0x5dd36d-0x0;let _0x1e5908=a259_0x53ac[_0x5dd36d];return _0x1e5908;};const _0x42f806=a259_0x1e59;'use strict';const Sequelize=require(_0x42f806('0x0'));module['exports']={'name':{'type':Sequelize[_0x42f806('0x1')]},'description':{'type':Sequelize[_0x42f806('0x1')]}}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js index c488e16..234ae5a 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js @@ -1 +1 @@ -const a260_0xa6be=['includeAll','sort','key','options','api','undefined','destroy','length','set','status','update','../../config/logger','query','body','sequelize','fields','lodash','setTags','type','index','merge','filters','create','VIRTUAL','params','findOne','stack','fieldName','name','order','map','intersection','rawAttributes','Tag','include','count','getTags','pick','like','show','FreshdeskConfiguration','filter','sendStatus','findAll','end','limit','FreshdeskField','where','getSubjects','offset','attributes','keys','../../components/parsers/qs','model','error','getDescriptions','json','getFields','nolimit','then','../../mysqldb','rows','catch'];(function(_0x1a9414,_0xa6beb2){const _0x11a3ad=function(_0xbc4e2e){while(--_0xbc4e2e){_0x1a9414['push'](_0x1a9414['shift']());}};_0x11a3ad(++_0xa6beb2);}(a260_0xa6be,0xbd));const a260_0x11a3=function(_0x1a9414,_0xa6beb2){_0x1a9414=_0x1a9414-0x0;let _0x11a3ad=a260_0xa6be[_0x1a9414];return _0x11a3ad;};const _0x18fc3b=a260_0x11a3;'use strict';const _=require(_0x18fc3b('0x10')),qs=require(_0x18fc3b('0x34')),logger=require(_0x18fc3b('0xb'))(_0x18fc3b('0x4')),db=require(_0x18fc3b('0x3c'))['db'],{Op}=require(_0x18fc3b('0xe'));function respondWithResult(_0xbc4e2e,_0x1a29c6){return _0x1a29c6=_0x1a29c6||0xc8,function(_0x51dca6){const _0x2b31e2=a260_0x11a3;if(_0x51dca6)return _0xbc4e2e['status'](_0x1a29c6)[_0x2b31e2('0x38')](_0x51dca6);};}function respondWithFilteredResult(_0x2bece0,_0x1c5d37){return function(_0x1bf6fc){const _0x4a8ebc=a260_0x11a3;if(_0x1bf6fc){const _0x183e6a=_0x1bf6fc[_0x4a8ebc('0x23')],_0xdbd713=_0x1c5d37[_0x4a8ebc('0x31')];let _0x47a421=_0x1c5d37[_0x4a8ebc('0x31')]+_0x1c5d37[_0x4a8ebc('0x2d')],_0x5a4b16;return _0x47a421>=_0x183e6a?(_0x47a421=_0x183e6a,_0x5a4b16=0xc8):_0x5a4b16=0xce,_0x2bece0[_0x4a8ebc('0x9')](_0x5a4b16),_0x2bece0[_0x4a8ebc('0x8')]('Content-Range',_0xdbd713+'-'+_0x47a421+'/'+_0x183e6a)[_0x4a8ebc('0x38')](_0x1bf6fc);}return null;};}function saveUpdates(_0x20d7b1){return function(_0x3c0f5e){const _0x324f98=a260_0x11a3;if(_0x3c0f5e)return _0x3c0f5e['update'](_0x20d7b1)[_0x324f98('0x3b')](function(_0x5e4b6e){return _0x5e4b6e;});return null;};}function removeEntity(_0x44a320){return function(_0x17851b){const _0x4ffc29=a260_0x11a3;if(_0x17851b)return _0x17851b['destroy']()[_0x4ffc29('0x3b')](function(){const _0x5e61c3=_0x4ffc29;_0x44a320['status'](0xcc)[_0x5e61c3('0x2c')]();});};}function handleEntityNotFound(_0x1b882d){return function(_0x22a4dc){const _0x4ea3cd=a260_0x11a3;return!_0x22a4dc&&_0x1b882d[_0x4ea3cd('0x2a')](0x194),_0x22a4dc;};}function handleError(_0x285dfc,_0x22c948){return _0x22c948=_0x22c948||0x1f4,function(_0x31c19f){const _0x2e9092=a260_0x11a3;logger[_0x2e9092('0x36')](_0x31c19f[_0x2e9092('0x1a')]),_0x31c19f[_0x2e9092('0x1c')]&&delete _0x31c19f[_0x2e9092('0x1c')],_0x285dfc['status'](_0x22c948)['send'](_0x31c19f);};}exports[_0x18fc3b('0x13')]=function(_0x2680a5,_0x300cfb){const _0x5229fe=_0x18fc3b;let _0x57c0be={};const _0x10f77b={},_0x1ccca6={'count':0x0,'rows':[]},_0x4edf4e=_[_0x5229fe('0x1e')](db['FreshdeskConfiguration'][_0x5229fe('0x20')],function(_0x211157){const _0x1e294a=_0x5229fe;return{'name':_0x211157[_0x1e294a('0x1b')],'type':_0x211157[_0x1e294a('0x12')][_0x1e294a('0x2')]};});_0x10f77b['model']=_[_0x5229fe('0x1e')](_0x4edf4e,_0x5229fe('0x1c')),_0x10f77b[_0x5229fe('0xc')]=_[_0x5229fe('0x33')](_0x2680a5[_0x5229fe('0xc')]),_0x10f77b[_0x5229fe('0x15')]=_[_0x5229fe('0x1f')](_0x10f77b['model'],_0x10f77b[_0x5229fe('0xc')]),_0x57c0be[_0x5229fe('0x32')]=_[_0x5229fe('0x1f')](_0x10f77b[_0x5229fe('0x35')],qs[_0x5229fe('0xf')](_0x2680a5[_0x5229fe('0xc')][_0x5229fe('0xf')])),_0x57c0be[_0x5229fe('0x32')]=_0x57c0be[_0x5229fe('0x32')][_0x5229fe('0x7')]?_0x57c0be[_0x5229fe('0x32')]:_0x10f77b[_0x5229fe('0x35')];typeof _0x2680a5[_0x5229fe('0xc')][_0x5229fe('0x3a')]===_0x5229fe('0x5')&&(_0x57c0be['limit']=qs[_0x5229fe('0x2d')](_0x2680a5[_0x5229fe('0xc')][_0x5229fe('0x2d')]),_0x57c0be[_0x5229fe('0x31')]=qs['offset'](_0x2680a5[_0x5229fe('0xc')][_0x5229fe('0x31')]));_0x57c0be[_0x5229fe('0x1d')]=qs[_0x5229fe('0x1')](_0x2680a5[_0x5229fe('0xc')][_0x5229fe('0x1')]),_0x57c0be[_0x5229fe('0x2f')]=qs[_0x5229fe('0x15')](_[_0x5229fe('0x25')](_0x2680a5[_0x5229fe('0xc')],_0x10f77b['filters']),_0x4edf4e);_0x2680a5[_0x5229fe('0xc')]['filter']&&(_0x57c0be['where']=_[_0x5229fe('0x14')](_0x57c0be[_0x5229fe('0x2f')],{[Op['or']]:_[_0x5229fe('0x1e')](_0x4edf4e,function(_0x13cadd){const _0x46a540=_0x5229fe;if(_0x13cadd['type']!==_0x46a540('0x17')){const _0x2c1aae={};return _0x2c1aae[_0x13cadd['name']]={[Op['like']]:'%'+_0x2680a5[_0x46a540('0xc')][_0x46a540('0x29')]+'%'},_0x2c1aae;}})}));_0x57c0be=_['merge']({},_0x57c0be,_0x2680a5['options']);const _0x1fc3d5={'where':_0x57c0be[_0x5229fe('0x2f')]};return db[_0x5229fe('0x28')][_0x5229fe('0x23')](_0x1fc3d5)['then'](function(_0x4a67bb){const _0x6ce839=_0x5229fe;return _0x1ccca6[_0x6ce839('0x23')]=_0x4a67bb,_0x2680a5[_0x6ce839('0xc')]['includeAll']&&(_0x57c0be['include']=[{'all':!![]}]),db[_0x6ce839('0x28')][_0x6ce839('0x2b')](_0x57c0be);})[_0x5229fe('0x3b')](function(_0x22c78c){const _0x5c41d6=_0x5229fe;return _0x1ccca6[_0x5c41d6('0x3d')]=_0x22c78c,_0x1ccca6;})[_0x5229fe('0x3b')](respondWithFilteredResult(_0x300cfb,_0x57c0be))['catch'](handleError(_0x300cfb,null));},exports[_0x18fc3b('0x27')]=function(_0x5d7eab,_0x1b7e23){const _0xd31377=_0x18fc3b;let _0x6ac3d8={'raw':![],'where':{'id':_0x5d7eab[_0xd31377('0x18')]['id']}};const _0x4596d6={};return _0x4596d6['model']=_['keys'](db[_0xd31377('0x28')][_0xd31377('0x20')]),_0x4596d6['query']=_[_0xd31377('0x33')](_0x5d7eab[_0xd31377('0xc')]),_0x4596d6[_0xd31377('0x15')]=_[_0xd31377('0x1f')](_0x4596d6[_0xd31377('0x35')],_0x4596d6[_0xd31377('0xc')]),_0x6ac3d8[_0xd31377('0x32')]=_[_0xd31377('0x1f')](_0x4596d6[_0xd31377('0x35')],qs['fields'](_0x5d7eab[_0xd31377('0xc')][_0xd31377('0xf')])),_0x6ac3d8[_0xd31377('0x32')]=_0x6ac3d8[_0xd31377('0x32')][_0xd31377('0x7')]?_0x6ac3d8[_0xd31377('0x32')]:_0x4596d6[_0xd31377('0x35')],_0x5d7eab['query'][_0xd31377('0x0')]&&(_0x6ac3d8[_0xd31377('0x22')]=[{'all':!![]}]),_0x6ac3d8=_[_0xd31377('0x14')]({},_0x6ac3d8,_0x5d7eab[_0xd31377('0x3')]),db[_0xd31377('0x28')][_0xd31377('0x19')](_0x6ac3d8)[_0xd31377('0x3b')](handleEntityNotFound(_0x1b7e23,null))['then'](respondWithResult(_0x1b7e23,null))[_0xd31377('0x3e')](handleError(_0x1b7e23,null));},exports[_0x18fc3b('0x16')]=function(_0x205310,_0x252f59){const _0x5f03df=_0x18fc3b;return db[_0x5f03df('0x28')][_0x5f03df('0x16')](_0x205310[_0x5f03df('0xd')],{})[_0x5f03df('0x3b')](respondWithResult(_0x252f59,0xc9))[_0x5f03df('0x3e')](handleError(_0x252f59,null));},exports[_0x18fc3b('0xa')]=function(_0x3c513f,_0x344c37){const _0xea8674=_0x18fc3b;return _0x3c513f['body']['id']&&delete _0x3c513f['body']['id'],db[_0xea8674('0x28')]['findOne']({'where':{'id':_0x3c513f['params']['id']}})[_0xea8674('0x3b')](handleEntityNotFound(_0x344c37,null))[_0xea8674('0x3b')](saveUpdates(_0x3c513f['body'],null))[_0xea8674('0x3b')](respondWithResult(_0x344c37,null))['catch'](handleError(_0x344c37,null));},exports[_0x18fc3b('0x6')]=function(_0x18e921,_0x4fc588){const _0x5ec26c=_0x18fc3b;return db['FreshdeskConfiguration']['findOne']({'where':{'id':_0x18e921[_0x5ec26c('0x18')]['id']}})['then'](handleEntityNotFound(_0x4fc588,null))['then'](removeEntity(_0x4fc588,null))[_0x5ec26c('0x3e')](handleError(_0x4fc588,null));},exports[_0x18fc3b('0x39')]=function(_0x172ff6,_0x4231a6){const _0x207e68=_0x18fc3b;let _0x4b21dc={};const _0x7c01c5={};let _0x22c926,_0x30b482;return db[_0x207e68('0x28')]['findOne']({'where':{'id':_0x172ff6['params']['id']}})['then'](handleEntityNotFound(_0x4231a6,null))[_0x207e68('0x3b')](function(_0x3d18e6){const _0x20be18=_0x207e68;if(_0x3d18e6)return _0x22c926=_0x3d18e6,_0x7c01c5[_0x20be18('0x35')]=_['keys'](db['FreshdeskField'][_0x20be18('0x20')]),_0x7c01c5[_0x20be18('0xc')]=_['keys'](_0x172ff6[_0x20be18('0xc')]),_0x7c01c5[_0x20be18('0x15')]=_['intersection'](_0x7c01c5[_0x20be18('0x35')],_0x7c01c5[_0x20be18('0xc')]),_0x4b21dc[_0x20be18('0x32')]=_[_0x20be18('0x1f')](_0x7c01c5['model'],qs[_0x20be18('0xf')](_0x172ff6['query']['fields'])),_0x4b21dc[_0x20be18('0x32')]=_0x4b21dc['attributes'][_0x20be18('0x7')]?_0x4b21dc[_0x20be18('0x32')]:_0x7c01c5[_0x20be18('0x35')],_0x4b21dc[_0x20be18('0x1d')]=qs[_0x20be18('0x1')](_0x172ff6[_0x20be18('0xc')]['sort']),_0x4b21dc[_0x20be18('0x2f')]=qs['filters'](_[_0x20be18('0x25')](_0x172ff6[_0x20be18('0xc')],_0x7c01c5[_0x20be18('0x15')])),_0x172ff6[_0x20be18('0xc')][_0x20be18('0x29')]&&(_0x4b21dc[_0x20be18('0x2f')]=_[_0x20be18('0x14')](_0x4b21dc['where'],{[Op['or']]:_[_0x20be18('0x1e')](_0x4b21dc[_0x20be18('0x32')],function(_0xdde823){const _0x20a409=_0x20be18,_0x4601dd={};return _0x4601dd[_0xdde823]={[Op['like']]:'%'+_0x172ff6[_0x20a409('0xc')][_0x20a409('0x29')]+'%'},_0x4601dd;})})),_0x4b21dc=_[_0x20be18('0x14')]({},_0x4b21dc,_0x172ff6[_0x20be18('0x3')]),_0x22c926[_0x20be18('0x39')](_0x4b21dc);})['then'](function(_0x152713){const _0x46e65e=_0x207e68;if(_0x152713)return _0x30b482=_0x152713['length'],typeof _0x172ff6[_0x46e65e('0xc')][_0x46e65e('0x3a')]===_0x46e65e('0x5')&&(_0x4b21dc[_0x46e65e('0x2d')]=qs['limit'](_0x172ff6[_0x46e65e('0xc')][_0x46e65e('0x2d')]),_0x4b21dc[_0x46e65e('0x31')]=qs[_0x46e65e('0x31')](_0x172ff6['query']['offset'])),_0x22c926[_0x46e65e('0x39')](_0x4b21dc);})[_0x207e68('0x3b')](function(_0x2cf4df){if(_0x2cf4df)return _0x2cf4df?{'count':_0x30b482,'rows':_0x2cf4df}:null;})[_0x207e68('0x3b')](respondWithResult(_0x4231a6,null))[_0x207e68('0x3e')](handleError(_0x4231a6,null));},exports['getSubjects']=function(_0x1d82ad,_0x13cecf){const _0x223937=_0x18fc3b;let _0x2e71c2={};const _0x573256={};let _0x2d6450,_0x2a8e1c;return db[_0x223937('0x28')][_0x223937('0x19')]({'where':{'id':_0x1d82ad[_0x223937('0x18')]['id']}})[_0x223937('0x3b')](handleEntityNotFound(_0x13cecf,null))[_0x223937('0x3b')](function(_0xf0a39){const _0x2190b5=_0x223937;if(_0xf0a39)return _0x2d6450=_0xf0a39,_0x573256['model']=_[_0x2190b5('0x33')](db[_0x2190b5('0x2e')][_0x2190b5('0x20')]),_0x573256['query']=_[_0x2190b5('0x33')](_0x1d82ad[_0x2190b5('0xc')]),_0x573256[_0x2190b5('0x15')]=_[_0x2190b5('0x1f')](_0x573256[_0x2190b5('0x35')],_0x573256[_0x2190b5('0xc')]),_0x2e71c2['attributes']=_[_0x2190b5('0x1f')](_0x573256[_0x2190b5('0x35')],qs[_0x2190b5('0xf')](_0x1d82ad['query'][_0x2190b5('0xf')])),_0x2e71c2[_0x2190b5('0x32')]=_0x2e71c2[_0x2190b5('0x32')][_0x2190b5('0x7')]?_0x2e71c2[_0x2190b5('0x32')]:_0x573256[_0x2190b5('0x35')],_0x2e71c2[_0x2190b5('0x1d')]=qs[_0x2190b5('0x1')](_0x1d82ad[_0x2190b5('0xc')][_0x2190b5('0x1')]),_0x2e71c2[_0x2190b5('0x2f')]=qs[_0x2190b5('0x15')](_['pick'](_0x1d82ad['query'],_0x573256[_0x2190b5('0x15')])),_0x1d82ad['query'][_0x2190b5('0x29')]&&(_0x2e71c2['where']=_[_0x2190b5('0x14')](_0x2e71c2[_0x2190b5('0x2f')],{[Op['or']]:_['map'](_0x2e71c2['attributes'],function(_0x16825d){const _0x1a6143=_0x2190b5,_0x42620b={};return _0x42620b[_0x16825d]={[Op[_0x1a6143('0x26')]]:'%'+_0x1d82ad[_0x1a6143('0xc')][_0x1a6143('0x29')]+'%'},_0x42620b;})})),_0x2e71c2=_[_0x2190b5('0x14')]({},_0x2e71c2,_0x1d82ad[_0x2190b5('0x3')]),_0x2d6450[_0x2190b5('0x30')](_0x2e71c2);})[_0x223937('0x3b')](function(_0x17aa46){const _0x2753cd=_0x223937;if(_0x17aa46)return _0x2a8e1c=_0x17aa46[_0x2753cd('0x7')],typeof _0x1d82ad['query'][_0x2753cd('0x3a')]===_0x2753cd('0x5')&&(_0x2e71c2[_0x2753cd('0x2d')]=qs[_0x2753cd('0x2d')](_0x1d82ad[_0x2753cd('0xc')][_0x2753cd('0x2d')]),_0x2e71c2['offset']=qs[_0x2753cd('0x31')](_0x1d82ad[_0x2753cd('0xc')][_0x2753cd('0x31')])),_0x2d6450['getSubjects'](_0x2e71c2);})[_0x223937('0x3b')](function(_0x48d728){if(_0x48d728)return _0x48d728?{'count':_0x2a8e1c,'rows':_0x48d728}:null;})['then'](respondWithResult(_0x13cecf,null))[_0x223937('0x3e')](handleError(_0x13cecf,null));},exports[_0x18fc3b('0x37')]=function(_0x1588c9,_0x599a61){const _0x2e96f9=_0x18fc3b;let _0x471dc3={};const _0x46a1a5={};let _0x46018b,_0x406fa3;return db['FreshdeskConfiguration'][_0x2e96f9('0x19')]({'where':{'id':_0x1588c9['params']['id']}})[_0x2e96f9('0x3b')](handleEntityNotFound(_0x599a61,null))[_0x2e96f9('0x3b')](function(_0x5aaf5d){const _0x5d1c41=_0x2e96f9;if(_0x5aaf5d)return _0x46018b=_0x5aaf5d,_0x46a1a5['model']=_[_0x5d1c41('0x33')](db[_0x5d1c41('0x2e')][_0x5d1c41('0x20')]),_0x46a1a5[_0x5d1c41('0xc')]=_[_0x5d1c41('0x33')](_0x1588c9[_0x5d1c41('0xc')]),_0x46a1a5[_0x5d1c41('0x15')]=_['intersection'](_0x46a1a5['model'],_0x46a1a5[_0x5d1c41('0xc')]),_0x471dc3[_0x5d1c41('0x32')]=_['intersection'](_0x46a1a5['model'],qs[_0x5d1c41('0xf')](_0x1588c9[_0x5d1c41('0xc')][_0x5d1c41('0xf')])),_0x471dc3[_0x5d1c41('0x32')]=_0x471dc3['attributes']['length']?_0x471dc3[_0x5d1c41('0x32')]:_0x46a1a5['model'],_0x471dc3[_0x5d1c41('0x1d')]=qs[_0x5d1c41('0x1')](_0x1588c9[_0x5d1c41('0xc')]['sort']),_0x471dc3[_0x5d1c41('0x2f')]=qs[_0x5d1c41('0x15')](_[_0x5d1c41('0x25')](_0x1588c9[_0x5d1c41('0xc')],_0x46a1a5[_0x5d1c41('0x15')])),_0x1588c9[_0x5d1c41('0xc')][_0x5d1c41('0x29')]&&(_0x471dc3[_0x5d1c41('0x2f')]=_[_0x5d1c41('0x14')](_0x471dc3[_0x5d1c41('0x2f')],{[Op['or']]:_[_0x5d1c41('0x1e')](_0x471dc3[_0x5d1c41('0x32')],function(_0x4fab5f){const _0x4298a0=_0x5d1c41,_0x5c4be6={};return _0x5c4be6[_0x4fab5f]={[Op[_0x4298a0('0x26')]]:'%'+_0x1588c9[_0x4298a0('0xc')]['filter']+'%'},_0x5c4be6;})})),_0x471dc3=_[_0x5d1c41('0x14')]({},_0x471dc3,_0x1588c9[_0x5d1c41('0x3')]),_0x46018b['getDescriptions'](_0x471dc3);})[_0x2e96f9('0x3b')](function(_0x1980b1){const _0x426c1c=_0x2e96f9;if(_0x1980b1)return _0x406fa3=_0x1980b1[_0x426c1c('0x7')],typeof _0x1588c9[_0x426c1c('0xc')][_0x426c1c('0x3a')]===_0x426c1c('0x5')&&(_0x471dc3['limit']=qs[_0x426c1c('0x2d')](_0x1588c9[_0x426c1c('0xc')][_0x426c1c('0x2d')]),_0x471dc3['offset']=qs['offset'](_0x1588c9[_0x426c1c('0xc')][_0x426c1c('0x31')])),_0x46018b[_0x426c1c('0x37')](_0x471dc3);})[_0x2e96f9('0x3b')](function(_0x407550){if(_0x407550)return _0x407550?{'count':_0x406fa3,'rows':_0x407550}:null;})[_0x2e96f9('0x3b')](respondWithResult(_0x599a61,null))['catch'](handleError(_0x599a61,null));},exports[_0x18fc3b('0x24')]=function(_0x3044cf,_0x5a22c1){const _0x5234c7=_0x18fc3b;let _0x3b4c1b={};const _0x31c544={};let _0x39ca50,_0x1f96d5;return db['FreshdeskConfiguration'][_0x5234c7('0x19')]({'where':{'id':_0x3044cf['params']['id']}})[_0x5234c7('0x3b')](handleEntityNotFound(_0x5a22c1,null))[_0x5234c7('0x3b')](function(_0x41661d){const _0x6c6827=_0x5234c7;if(_0x41661d)return _0x39ca50=_0x41661d,_0x31c544[_0x6c6827('0x35')]=_['keys'](db[_0x6c6827('0x21')][_0x6c6827('0x20')]),_0x31c544[_0x6c6827('0xc')]=_[_0x6c6827('0x33')](_0x3044cf[_0x6c6827('0xc')]),_0x31c544[_0x6c6827('0x15')]=_['intersection'](_0x31c544['model'],_0x31c544[_0x6c6827('0xc')]),_0x3b4c1b[_0x6c6827('0x32')]=_[_0x6c6827('0x1f')](_0x31c544[_0x6c6827('0x35')],qs[_0x6c6827('0xf')](_0x3044cf[_0x6c6827('0xc')][_0x6c6827('0xf')])),_0x3b4c1b['attributes']=_0x3b4c1b['attributes'][_0x6c6827('0x7')]?_0x3b4c1b['attributes']:_0x31c544[_0x6c6827('0x35')],_0x3b4c1b[_0x6c6827('0x1d')]=qs[_0x6c6827('0x1')](_0x3044cf[_0x6c6827('0xc')][_0x6c6827('0x1')]),_0x3b4c1b[_0x6c6827('0x2f')]=qs[_0x6c6827('0x15')](_[_0x6c6827('0x25')](_0x3044cf[_0x6c6827('0xc')],_0x31c544[_0x6c6827('0x15')])),_0x3044cf['query']['filter']&&(_0x3b4c1b[_0x6c6827('0x2f')]=_[_0x6c6827('0x14')](_0x3b4c1b[_0x6c6827('0x2f')],{[Op['or']]:_[_0x6c6827('0x1e')](_0x3b4c1b[_0x6c6827('0x32')],function(_0x52e4ed){const _0x565f42=_0x6c6827,_0x346bb2={};return _0x346bb2[_0x52e4ed]={[Op[_0x565f42('0x26')]]:'%'+_0x3044cf[_0x565f42('0xc')][_0x565f42('0x29')]+'%'},_0x346bb2;})})),_0x3b4c1b=_['merge']({},_0x3b4c1b,_0x3044cf[_0x6c6827('0x3')]),_0x39ca50[_0x6c6827('0x24')](_0x3b4c1b);})[_0x5234c7('0x3b')](function(_0xb11036){const _0xd54c72=_0x5234c7;if(_0xb11036)return _0x1f96d5=_0xb11036[_0xd54c72('0x7')],typeof _0x3044cf[_0xd54c72('0xc')][_0xd54c72('0x3a')]===_0xd54c72('0x5')&&(_0x3b4c1b[_0xd54c72('0x2d')]=qs[_0xd54c72('0x2d')](_0x3044cf['query']['limit']),_0x3b4c1b['offset']=qs['offset'](_0x3044cf[_0xd54c72('0xc')][_0xd54c72('0x31')])),_0x39ca50[_0xd54c72('0x24')](_0x3b4c1b);})[_0x5234c7('0x3b')](function(_0x575aae){if(_0x575aae)return _0x575aae?{'count':_0x1f96d5,'rows':_0x575aae}:null;})[_0x5234c7('0x3b')](respondWithResult(_0x5a22c1,null))[_0x5234c7('0x3e')](handleError(_0x5a22c1,null));},exports[_0x18fc3b('0x11')]=function(_0x8d6ce7,_0x137d5a){const _0x20d631=_0x18fc3b;return _0x8d6ce7[_0x20d631('0xd')]['id']&&delete _0x8d6ce7[_0x20d631('0xd')]['id'],db[_0x20d631('0x28')][_0x20d631('0x19')]({'where':{'id':_0x8d6ce7[_0x20d631('0x18')]['id']}})[_0x20d631('0x3b')](handleEntityNotFound(_0x137d5a,null))[_0x20d631('0x3b')](function(_0xdc6327){const _0x574dfb=_0x20d631;if(_0xdc6327)return _0xdc6327[_0x574dfb('0x11')](_0x8d6ce7['body']['ids']||[]);return null;})['then'](respondWithResult(_0x137d5a,null))['catch'](handleError(_0x137d5a,null));}; \ No newline at end of file +const a260_0x7f12=['end','pick','attributes','../../components/parsers/qs','intersection','FreshdeskField','where','model','getDescriptions','query','merge','catch','params','name','FreshdeskConfiguration','include','sequelize','rows','filters','fieldName','options','setTags','map','getFields','filter','includeAll','send','offset','../../config/logger','getTags','count','undefined','like','Tag','Content-Range','body','create','nolimit','json','getSubjects','stack','then','set','keys','order','VIRTUAL','limit','sort','findAll','../../mysqldb','error','status','key','index','findOne','api','destroy','length','rawAttributes','fields'];(function(_0x5e8e97,_0x7f12f9){const _0xb94ed7=function(_0x4f91da){while(--_0x4f91da){_0x5e8e97['push'](_0x5e8e97['shift']());}};_0xb94ed7(++_0x7f12f9);}(a260_0x7f12,0x18d));const a260_0xb94e=function(_0x5e8e97,_0x7f12f9){_0x5e8e97=_0x5e8e97-0x0;let _0xb94ed7=a260_0x7f12[_0x5e8e97];return _0xb94ed7;};const _0x45ceb1=a260_0xb94e;'use strict';const _=require('lodash'),qs=require(_0x45ceb1('0x1a')),logger=require(_0x45ceb1('0x33'))(_0x45ceb1('0x12')),db=require(_0x45ceb1('0xc'))['db'],{Op}=require(_0x45ceb1('0x27'));function respondWithResult(_0x4f91da,_0x5a1e83){return _0x5a1e83=_0x5a1e83||0xc8,function(_0x496a38){const _0xd7bbb6=a260_0xb94e;if(_0x496a38)return _0x4f91da['status'](_0x5a1e83)[_0xd7bbb6('0x1')](_0x496a38);};}function respondWithFilteredResult(_0x543299,_0x3f825c){return function(_0x5b6a97){const _0x19ddca=a260_0xb94e;if(_0x5b6a97){const _0x22ea16=_0x5b6a97[_0x19ddca('0x35')],_0x11c074=_0x3f825c[_0x19ddca('0x32')];let _0x435e60=_0x3f825c['offset']+_0x3f825c['limit'],_0x1e28d9;return _0x435e60>=_0x22ea16?(_0x435e60=_0x22ea16,_0x1e28d9=0xc8):_0x1e28d9=0xce,_0x543299['status'](_0x1e28d9),_0x543299[_0x19ddca('0x5')](_0x19ddca('0x39'),_0x11c074+'-'+_0x435e60+'/'+_0x22ea16)[_0x19ddca('0x1')](_0x5b6a97);}return null;};}function saveUpdates(_0x44f997){return function(_0x16acac){const _0x1b44d5=a260_0xb94e;if(_0x16acac)return _0x16acac['update'](_0x44f997)[_0x1b44d5('0x4')](function(_0x4a7f2c){return _0x4a7f2c;});return null;};}function removeEntity(_0x2b08a5){return function(_0x5e7573){const _0x2743ad=a260_0xb94e;if(_0x5e7573)return _0x5e7573[_0x2743ad('0x13')]()['then'](function(){const _0x503f1e=_0x2743ad;_0x2b08a5[_0x503f1e('0xe')](0xcc)[_0x503f1e('0x17')]();});};}function handleEntityNotFound(_0x4afe8b){return function(_0x542b9e){return!_0x542b9e&&_0x4afe8b['sendStatus'](0x194),_0x542b9e;};}function handleError(_0x1a7d6b,_0x23ae6c){return _0x23ae6c=_0x23ae6c||0x1f4,function(_0x102e0c){const _0x1145d5=a260_0xb94e;logger[_0x1145d5('0xd')](_0x102e0c[_0x1145d5('0x3')]),_0x102e0c['name']&&delete _0x102e0c[_0x1145d5('0x24')],_0x1a7d6b[_0x1145d5('0xe')](_0x23ae6c)[_0x1145d5('0x31')](_0x102e0c);};}exports[_0x45ceb1('0x10')]=function(_0x35f894,_0x1dffb0){const _0xed7104=_0x45ceb1;let _0x4bd9ac={};const _0x4e4e24={},_0x593c97={'count':0x0,'rows':[]},_0x3fdc13=_[_0xed7104('0x2d')](db[_0xed7104('0x25')]['rawAttributes'],function(_0x85414){const _0x3312ba=_0xed7104;return{'name':_0x85414[_0x3312ba('0x2a')],'type':_0x85414['type'][_0x3312ba('0xf')]};});_0x4e4e24[_0xed7104('0x1e')]=_[_0xed7104('0x2d')](_0x3fdc13,'name'),_0x4e4e24['query']=_[_0xed7104('0x6')](_0x35f894[_0xed7104('0x20')]),_0x4e4e24[_0xed7104('0x29')]=_['intersection'](_0x4e4e24[_0xed7104('0x1e')],_0x4e4e24[_0xed7104('0x20')]),_0x4bd9ac[_0xed7104('0x19')]=_['intersection'](_0x4e4e24['model'],qs[_0xed7104('0x16')](_0x35f894[_0xed7104('0x20')]['fields'])),_0x4bd9ac[_0xed7104('0x19')]=_0x4bd9ac[_0xed7104('0x19')][_0xed7104('0x14')]?_0x4bd9ac[_0xed7104('0x19')]:_0x4e4e24['model'];typeof _0x35f894[_0xed7104('0x20')]['nolimit']===_0xed7104('0x36')&&(_0x4bd9ac['limit']=qs[_0xed7104('0x9')](_0x35f894['query'][_0xed7104('0x9')]),_0x4bd9ac[_0xed7104('0x32')]=qs[_0xed7104('0x32')](_0x35f894[_0xed7104('0x20')][_0xed7104('0x32')]));_0x4bd9ac['order']=qs[_0xed7104('0xa')](_0x35f894[_0xed7104('0x20')][_0xed7104('0xa')]),_0x4bd9ac[_0xed7104('0x1d')]=qs['filters'](_[_0xed7104('0x18')](_0x35f894['query'],_0x4e4e24[_0xed7104('0x29')]),_0x3fdc13);_0x35f894[_0xed7104('0x20')]['filter']&&(_0x4bd9ac[_0xed7104('0x1d')]=_['merge'](_0x4bd9ac[_0xed7104('0x1d')],{[Op['or']]:_[_0xed7104('0x2d')](_0x3fdc13,function(_0x513dad){const _0x4829ae=_0xed7104;if(_0x513dad['type']!==_0x4829ae('0x8')){const _0x2f9803={};return _0x2f9803[_0x513dad[_0x4829ae('0x24')]]={[Op[_0x4829ae('0x37')]]:'%'+_0x35f894[_0x4829ae('0x20')]['filter']+'%'},_0x2f9803;}})}));_0x4bd9ac=_[_0xed7104('0x21')]({},_0x4bd9ac,_0x35f894[_0xed7104('0x2b')]);const _0x4b7d73={'where':_0x4bd9ac['where']};return db[_0xed7104('0x25')][_0xed7104('0x35')](_0x4b7d73)[_0xed7104('0x4')](function(_0x523607){const _0x28fe81=_0xed7104;return _0x593c97[_0x28fe81('0x35')]=_0x523607,_0x35f894[_0x28fe81('0x20')][_0x28fe81('0x30')]&&(_0x4bd9ac[_0x28fe81('0x26')]=[{'all':!![]}]),db[_0x28fe81('0x25')][_0x28fe81('0xb')](_0x4bd9ac);})['then'](function(_0x1db117){const _0x453b5a=_0xed7104;return _0x593c97[_0x453b5a('0x28')]=_0x1db117,_0x593c97;})[_0xed7104('0x4')](respondWithFilteredResult(_0x1dffb0,_0x4bd9ac))['catch'](handleError(_0x1dffb0,null));},exports['show']=function(_0x399d6d,_0x581ebd){const _0x137236=_0x45ceb1;let _0xb25733={'raw':![],'where':{'id':_0x399d6d[_0x137236('0x23')]['id']}};const _0x2e810={};return _0x2e810['model']=_[_0x137236('0x6')](db[_0x137236('0x25')]['rawAttributes']),_0x2e810[_0x137236('0x20')]=_[_0x137236('0x6')](_0x399d6d['query']),_0x2e810[_0x137236('0x29')]=_[_0x137236('0x1b')](_0x2e810[_0x137236('0x1e')],_0x2e810['query']),_0xb25733['attributes']=_[_0x137236('0x1b')](_0x2e810[_0x137236('0x1e')],qs[_0x137236('0x16')](_0x399d6d['query'][_0x137236('0x16')])),_0xb25733['attributes']=_0xb25733[_0x137236('0x19')][_0x137236('0x14')]?_0xb25733[_0x137236('0x19')]:_0x2e810['model'],_0x399d6d[_0x137236('0x20')][_0x137236('0x30')]&&(_0xb25733[_0x137236('0x26')]=[{'all':!![]}]),_0xb25733=_[_0x137236('0x21')]({},_0xb25733,_0x399d6d[_0x137236('0x2b')]),db[_0x137236('0x25')][_0x137236('0x11')](_0xb25733)[_0x137236('0x4')](handleEntityNotFound(_0x581ebd,null))[_0x137236('0x4')](respondWithResult(_0x581ebd,null))[_0x137236('0x22')](handleError(_0x581ebd,null));},exports[_0x45ceb1('0x3b')]=function(_0x25cf52,_0x115445){const _0x5afd72=_0x45ceb1;return db[_0x5afd72('0x25')][_0x5afd72('0x3b')](_0x25cf52[_0x5afd72('0x3a')],{})['then'](respondWithResult(_0x115445,0xc9))[_0x5afd72('0x22')](handleError(_0x115445,null));},exports['update']=function(_0x7d7e67,_0x2ce753){const _0x54648a=_0x45ceb1;return _0x7d7e67['body']['id']&&delete _0x7d7e67['body']['id'],db['FreshdeskConfiguration'][_0x54648a('0x11')]({'where':{'id':_0x7d7e67[_0x54648a('0x23')]['id']}})['then'](handleEntityNotFound(_0x2ce753,null))['then'](saveUpdates(_0x7d7e67[_0x54648a('0x3a')],null))[_0x54648a('0x4')](respondWithResult(_0x2ce753,null))[_0x54648a('0x22')](handleError(_0x2ce753,null));},exports[_0x45ceb1('0x13')]=function(_0x5e3c4e,_0x4f5282){const _0x1658a6=_0x45ceb1;return db['FreshdeskConfiguration'][_0x1658a6('0x11')]({'where':{'id':_0x5e3c4e['params']['id']}})[_0x1658a6('0x4')](handleEntityNotFound(_0x4f5282,null))[_0x1658a6('0x4')](removeEntity(_0x4f5282,null))[_0x1658a6('0x22')](handleError(_0x4f5282,null));},exports['getFields']=function(_0xfb67c,_0x4670c6){const _0x1d5f47=_0x45ceb1;let _0xcafca7={};const _0x308e34={};let _0xf3e4f2,_0x198c34;return db[_0x1d5f47('0x25')]['findOne']({'where':{'id':_0xfb67c[_0x1d5f47('0x23')]['id']}})[_0x1d5f47('0x4')](handleEntityNotFound(_0x4670c6,null))['then'](function(_0x512598){const _0x5a17a2=_0x1d5f47;if(_0x512598)return _0xf3e4f2=_0x512598,_0x308e34[_0x5a17a2('0x1e')]=_[_0x5a17a2('0x6')](db[_0x5a17a2('0x1c')][_0x5a17a2('0x15')]),_0x308e34[_0x5a17a2('0x20')]=_[_0x5a17a2('0x6')](_0xfb67c[_0x5a17a2('0x20')]),_0x308e34[_0x5a17a2('0x29')]=_['intersection'](_0x308e34[_0x5a17a2('0x1e')],_0x308e34[_0x5a17a2('0x20')]),_0xcafca7['attributes']=_[_0x5a17a2('0x1b')](_0x308e34[_0x5a17a2('0x1e')],qs[_0x5a17a2('0x16')](_0xfb67c[_0x5a17a2('0x20')][_0x5a17a2('0x16')])),_0xcafca7[_0x5a17a2('0x19')]=_0xcafca7[_0x5a17a2('0x19')][_0x5a17a2('0x14')]?_0xcafca7['attributes']:_0x308e34[_0x5a17a2('0x1e')],_0xcafca7[_0x5a17a2('0x7')]=qs[_0x5a17a2('0xa')](_0xfb67c[_0x5a17a2('0x20')][_0x5a17a2('0xa')]),_0xcafca7[_0x5a17a2('0x1d')]=qs[_0x5a17a2('0x29')](_['pick'](_0xfb67c['query'],_0x308e34[_0x5a17a2('0x29')])),_0xfb67c[_0x5a17a2('0x20')][_0x5a17a2('0x2f')]&&(_0xcafca7[_0x5a17a2('0x1d')]=_[_0x5a17a2('0x21')](_0xcafca7[_0x5a17a2('0x1d')],{[Op['or']]:_['map'](_0xcafca7[_0x5a17a2('0x19')],function(_0x4db9fe){const _0x9031fe=_0x5a17a2,_0x11cb18={};return _0x11cb18[_0x4db9fe]={[Op[_0x9031fe('0x37')]]:'%'+_0xfb67c[_0x9031fe('0x20')][_0x9031fe('0x2f')]+'%'},_0x11cb18;})})),_0xcafca7=_['merge']({},_0xcafca7,_0xfb67c['options']),_0xf3e4f2['getFields'](_0xcafca7);})[_0x1d5f47('0x4')](function(_0x5a367f){const _0x5c4616=_0x1d5f47;if(_0x5a367f)return _0x198c34=_0x5a367f[_0x5c4616('0x14')],typeof _0xfb67c[_0x5c4616('0x20')][_0x5c4616('0x0')]===_0x5c4616('0x36')&&(_0xcafca7[_0x5c4616('0x9')]=qs[_0x5c4616('0x9')](_0xfb67c['query'][_0x5c4616('0x9')]),_0xcafca7[_0x5c4616('0x32')]=qs[_0x5c4616('0x32')](_0xfb67c['query']['offset'])),_0xf3e4f2[_0x5c4616('0x2e')](_0xcafca7);})['then'](function(_0x53da70){if(_0x53da70)return _0x53da70?{'count':_0x198c34,'rows':_0x53da70}:null;})[_0x1d5f47('0x4')](respondWithResult(_0x4670c6,null))['catch'](handleError(_0x4670c6,null));},exports[_0x45ceb1('0x2')]=function(_0x3d1d1f,_0x3f11e9){const _0x38654f=_0x45ceb1;let _0x46db7b={};const _0x38eb48={};let _0x59e80b,_0x460f27;return db[_0x38654f('0x25')][_0x38654f('0x11')]({'where':{'id':_0x3d1d1f['params']['id']}})[_0x38654f('0x4')](handleEntityNotFound(_0x3f11e9,null))[_0x38654f('0x4')](function(_0x1b2f43){const _0x2964f0=_0x38654f;if(_0x1b2f43)return _0x59e80b=_0x1b2f43,_0x38eb48[_0x2964f0('0x1e')]=_[_0x2964f0('0x6')](db[_0x2964f0('0x1c')][_0x2964f0('0x15')]),_0x38eb48[_0x2964f0('0x20')]=_['keys'](_0x3d1d1f[_0x2964f0('0x20')]),_0x38eb48[_0x2964f0('0x29')]=_[_0x2964f0('0x1b')](_0x38eb48[_0x2964f0('0x1e')],_0x38eb48[_0x2964f0('0x20')]),_0x46db7b[_0x2964f0('0x19')]=_[_0x2964f0('0x1b')](_0x38eb48[_0x2964f0('0x1e')],qs[_0x2964f0('0x16')](_0x3d1d1f['query'][_0x2964f0('0x16')])),_0x46db7b[_0x2964f0('0x19')]=_0x46db7b['attributes'][_0x2964f0('0x14')]?_0x46db7b[_0x2964f0('0x19')]:_0x38eb48[_0x2964f0('0x1e')],_0x46db7b[_0x2964f0('0x7')]=qs[_0x2964f0('0xa')](_0x3d1d1f[_0x2964f0('0x20')]['sort']),_0x46db7b[_0x2964f0('0x1d')]=qs['filters'](_[_0x2964f0('0x18')](_0x3d1d1f[_0x2964f0('0x20')],_0x38eb48[_0x2964f0('0x29')])),_0x3d1d1f[_0x2964f0('0x20')][_0x2964f0('0x2f')]&&(_0x46db7b['where']=_['merge'](_0x46db7b['where'],{[Op['or']]:_['map'](_0x46db7b[_0x2964f0('0x19')],function(_0x49bc84){const _0x4a8a75=_0x2964f0,_0x113dcc={};return _0x113dcc[_0x49bc84]={[Op[_0x4a8a75('0x37')]]:'%'+_0x3d1d1f[_0x4a8a75('0x20')]['filter']+'%'},_0x113dcc;})})),_0x46db7b=_[_0x2964f0('0x21')]({},_0x46db7b,_0x3d1d1f[_0x2964f0('0x2b')]),_0x59e80b[_0x2964f0('0x2')](_0x46db7b);})['then'](function(_0x212cf4){const _0x5bd7a7=_0x38654f;if(_0x212cf4)return _0x460f27=_0x212cf4[_0x5bd7a7('0x14')],typeof _0x3d1d1f['query']['nolimit']===_0x5bd7a7('0x36')&&(_0x46db7b[_0x5bd7a7('0x9')]=qs['limit'](_0x3d1d1f[_0x5bd7a7('0x20')][_0x5bd7a7('0x9')]),_0x46db7b[_0x5bd7a7('0x32')]=qs[_0x5bd7a7('0x32')](_0x3d1d1f[_0x5bd7a7('0x20')][_0x5bd7a7('0x32')])),_0x59e80b['getSubjects'](_0x46db7b);})[_0x38654f('0x4')](function(_0x5bd17d){if(_0x5bd17d)return _0x5bd17d?{'count':_0x460f27,'rows':_0x5bd17d}:null;})[_0x38654f('0x4')](respondWithResult(_0x3f11e9,null))['catch'](handleError(_0x3f11e9,null));},exports[_0x45ceb1('0x1f')]=function(_0x4135a1,_0xb1c15d){const _0x1815c1=_0x45ceb1;let _0x5443ab={};const _0x4a2edc={};let _0x2073fe,_0xcc064a;return db['FreshdeskConfiguration'][_0x1815c1('0x11')]({'where':{'id':_0x4135a1[_0x1815c1('0x23')]['id']}})[_0x1815c1('0x4')](handleEntityNotFound(_0xb1c15d,null))[_0x1815c1('0x4')](function(_0x389ee2){const _0x26b718=_0x1815c1;if(_0x389ee2)return _0x2073fe=_0x389ee2,_0x4a2edc[_0x26b718('0x1e')]=_[_0x26b718('0x6')](db['FreshdeskField']['rawAttributes']),_0x4a2edc[_0x26b718('0x20')]=_['keys'](_0x4135a1[_0x26b718('0x20')]),_0x4a2edc[_0x26b718('0x29')]=_['intersection'](_0x4a2edc[_0x26b718('0x1e')],_0x4a2edc['query']),_0x5443ab[_0x26b718('0x19')]=_[_0x26b718('0x1b')](_0x4a2edc[_0x26b718('0x1e')],qs['fields'](_0x4135a1[_0x26b718('0x20')][_0x26b718('0x16')])),_0x5443ab[_0x26b718('0x19')]=_0x5443ab['attributes']['length']?_0x5443ab[_0x26b718('0x19')]:_0x4a2edc['model'],_0x5443ab['order']=qs[_0x26b718('0xa')](_0x4135a1[_0x26b718('0x20')][_0x26b718('0xa')]),_0x5443ab[_0x26b718('0x1d')]=qs[_0x26b718('0x29')](_[_0x26b718('0x18')](_0x4135a1[_0x26b718('0x20')],_0x4a2edc[_0x26b718('0x29')])),_0x4135a1[_0x26b718('0x20')][_0x26b718('0x2f')]&&(_0x5443ab[_0x26b718('0x1d')]=_[_0x26b718('0x21')](_0x5443ab['where'],{[Op['or']]:_[_0x26b718('0x2d')](_0x5443ab[_0x26b718('0x19')],function(_0x177f97){const _0x5a15d1=_0x26b718,_0x5cce6b={};return _0x5cce6b[_0x177f97]={[Op[_0x5a15d1('0x37')]]:'%'+_0x4135a1[_0x5a15d1('0x20')]['filter']+'%'},_0x5cce6b;})})),_0x5443ab=_[_0x26b718('0x21')]({},_0x5443ab,_0x4135a1[_0x26b718('0x2b')]),_0x2073fe['getDescriptions'](_0x5443ab);})[_0x1815c1('0x4')](function(_0x24947a){const _0x214b17=_0x1815c1;if(_0x24947a)return _0xcc064a=_0x24947a['length'],typeof _0x4135a1['query'][_0x214b17('0x0')]==='undefined'&&(_0x5443ab[_0x214b17('0x9')]=qs['limit'](_0x4135a1[_0x214b17('0x20')][_0x214b17('0x9')]),_0x5443ab['offset']=qs[_0x214b17('0x32')](_0x4135a1[_0x214b17('0x20')]['offset'])),_0x2073fe[_0x214b17('0x1f')](_0x5443ab);})[_0x1815c1('0x4')](function(_0x12ab53){if(_0x12ab53)return _0x12ab53?{'count':_0xcc064a,'rows':_0x12ab53}:null;})['then'](respondWithResult(_0xb1c15d,null))[_0x1815c1('0x22')](handleError(_0xb1c15d,null));},exports[_0x45ceb1('0x34')]=function(_0x5c79eb,_0x47dbf9){const _0x501b78=_0x45ceb1;let _0x15b6a9={};const _0xec4ee={};let _0x3fa10f,_0x47c5f0;return db['FreshdeskConfiguration'][_0x501b78('0x11')]({'where':{'id':_0x5c79eb[_0x501b78('0x23')]['id']}})[_0x501b78('0x4')](handleEntityNotFound(_0x47dbf9,null))[_0x501b78('0x4')](function(_0x2bb31c){const _0x3373b7=_0x501b78;if(_0x2bb31c)return _0x3fa10f=_0x2bb31c,_0xec4ee[_0x3373b7('0x1e')]=_[_0x3373b7('0x6')](db[_0x3373b7('0x38')][_0x3373b7('0x15')]),_0xec4ee[_0x3373b7('0x20')]=_[_0x3373b7('0x6')](_0x5c79eb[_0x3373b7('0x20')]),_0xec4ee[_0x3373b7('0x29')]=_[_0x3373b7('0x1b')](_0xec4ee['model'],_0xec4ee['query']),_0x15b6a9[_0x3373b7('0x19')]=_[_0x3373b7('0x1b')](_0xec4ee['model'],qs[_0x3373b7('0x16')](_0x5c79eb['query'][_0x3373b7('0x16')])),_0x15b6a9[_0x3373b7('0x19')]=_0x15b6a9[_0x3373b7('0x19')][_0x3373b7('0x14')]?_0x15b6a9['attributes']:_0xec4ee[_0x3373b7('0x1e')],_0x15b6a9[_0x3373b7('0x7')]=qs['sort'](_0x5c79eb[_0x3373b7('0x20')][_0x3373b7('0xa')]),_0x15b6a9[_0x3373b7('0x1d')]=qs[_0x3373b7('0x29')](_['pick'](_0x5c79eb[_0x3373b7('0x20')],_0xec4ee['filters'])),_0x5c79eb[_0x3373b7('0x20')][_0x3373b7('0x2f')]&&(_0x15b6a9[_0x3373b7('0x1d')]=_['merge'](_0x15b6a9[_0x3373b7('0x1d')],{[Op['or']]:_[_0x3373b7('0x2d')](_0x15b6a9[_0x3373b7('0x19')],function(_0x388e68){const _0x5f44c6=_0x3373b7,_0x5a43db={};return _0x5a43db[_0x388e68]={[Op['like']]:'%'+_0x5c79eb[_0x5f44c6('0x20')][_0x5f44c6('0x2f')]+'%'},_0x5a43db;})})),_0x15b6a9=_['merge']({},_0x15b6a9,_0x5c79eb[_0x3373b7('0x2b')]),_0x3fa10f[_0x3373b7('0x34')](_0x15b6a9);})[_0x501b78('0x4')](function(_0x596ca7){const _0x1e29fe=_0x501b78;if(_0x596ca7)return _0x47c5f0=_0x596ca7['length'],typeof _0x5c79eb[_0x1e29fe('0x20')]['nolimit']===_0x1e29fe('0x36')&&(_0x15b6a9[_0x1e29fe('0x9')]=qs[_0x1e29fe('0x9')](_0x5c79eb[_0x1e29fe('0x20')][_0x1e29fe('0x9')]),_0x15b6a9[_0x1e29fe('0x32')]=qs[_0x1e29fe('0x32')](_0x5c79eb[_0x1e29fe('0x20')]['offset'])),_0x3fa10f[_0x1e29fe('0x34')](_0x15b6a9);})[_0x501b78('0x4')](function(_0x826fd9){if(_0x826fd9)return _0x826fd9?{'count':_0x47c5f0,'rows':_0x826fd9}:null;})['then'](respondWithResult(_0x47dbf9,null))['catch'](handleError(_0x47dbf9,null));},exports[_0x45ceb1('0x2c')]=function(_0x5c1ff7,_0x3d7ec8){const _0x2c0569=_0x45ceb1;return _0x5c1ff7[_0x2c0569('0x3a')]['id']&&delete _0x5c1ff7[_0x2c0569('0x3a')]['id'],db[_0x2c0569('0x25')][_0x2c0569('0x11')]({'where':{'id':_0x5c1ff7[_0x2c0569('0x23')]['id']}})[_0x2c0569('0x4')](handleEntityNotFound(_0x3d7ec8,null))[_0x2c0569('0x4')](function(_0x1dd1ab){const _0x4084a0=_0x2c0569;if(_0x1dd1ab)return _0x1dd1ab[_0x4084a0('0x2c')](_0x5c1ff7[_0x4084a0('0x3a')]['ids']||[]);return null;})['then'](respondWithResult(_0x3d7ec8,null))[_0x2c0569('0x22')](handleError(_0x3d7ec8,null));}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js index db0026e..1d8bd56 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js @@ -1 +1 @@ -const a261_0x916f=['int_freshdesk_configurations','./intFreshdeskConfiguration.attributes','exports','define','FreshdeskConfiguration'];(function(_0x48534d,_0x916f3){const _0x102206=function(_0x2e4751){while(--_0x2e4751){_0x48534d['push'](_0x48534d['shift']());}};_0x102206(++_0x916f3);}(a261_0x916f,0x159));const a261_0x1022=function(_0x48534d,_0x916f3){_0x48534d=_0x48534d-0x0;let _0x102206=a261_0x916f[_0x48534d];return _0x102206;};const _0x3c1a19=a261_0x1022;'use strict';const attributes=require(_0x3c1a19('0x1'));module[_0x3c1a19('0x2')]=function(_0x2e4751){const _0x3da0ea=_0x3c1a19,_0x2670e3=_0x2e4751[_0x3da0ea('0x3')](_0x3da0ea('0x4'),attributes,{'tableName':_0x3da0ea('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2670e3;}; \ No newline at end of file +const a261_0x28cf=['./intFreshdeskConfiguration.attributes','int_freshdesk_configurations','FreshdeskConfiguration'];(function(_0x3a3fe6,_0x28cf4f){const _0x35f5b2=function(_0x1543aa){while(--_0x1543aa){_0x3a3fe6['push'](_0x3a3fe6['shift']());}};_0x35f5b2(++_0x28cf4f);}(a261_0x28cf,0xd1));const a261_0x35f5=function(_0x3a3fe6,_0x28cf4f){_0x3a3fe6=_0x3a3fe6-0x0;let _0x35f5b2=a261_0x28cf[_0x3a3fe6];return _0x35f5b2;};const _0x130728=a261_0x35f5;'use strict';const attributes=require(_0x130728('0x1'));module['exports']=function(_0x1543aa){const _0x7329d1=_0x130728,_0x4a72f2=_0x1543aa['define'](_0x7329d1('0x0'),attributes,{'tableName':_0x7329d1('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4a72f2;}; \ No newline at end of file diff --git a/server/api/intFreshdeskField/index.js b/server/api/intFreshdeskField/index.js index deed039..7c05975 100644 --- a/server/api/intFreshdeskField/index.js +++ b/server/api/intFreshdeskField/index.js @@ -1 +1 @@ -const a262_0x10cc=['get','/:id','exports','put','Router','isAuthenticated','../../components/auth/service','./intFreshdeskField.controller','update','delete','express','post'];(function(_0x3c316e,_0x10cccd){const _0x3f3924=function(_0x6e78c){while(--_0x6e78c){_0x3c316e['push'](_0x3c316e['shift']());}};_0x3f3924(++_0x10cccd);}(a262_0x10cc,0x113));const a262_0x3f39=function(_0x3c316e,_0x10cccd){_0x3c316e=_0x3c316e-0x0;let _0x3f3924=a262_0x10cc[_0x3c316e];return _0x3f3924;};const _0x26e82d=a262_0x3f39;'use strict';const express=require(_0x26e82d('0xb')),router=express[_0x26e82d('0x5')](),auth=require(_0x26e82d('0x7')),controller=require(_0x26e82d('0x8'));router[_0x26e82d('0x1')]('/',auth['isAuthenticated'](),controller['index']),router[_0x26e82d('0x1')](_0x26e82d('0x2'),auth[_0x26e82d('0x6')](),controller['show']),router[_0x26e82d('0x0')]('/',auth[_0x26e82d('0x6')](),controller['create']),router[_0x26e82d('0x4')](_0x26e82d('0x2'),auth[_0x26e82d('0x6')](),controller[_0x26e82d('0x9')]),router[_0x26e82d('0xa')](_0x26e82d('0x2'),auth[_0x26e82d('0x6')](),controller['destroy']),module[_0x26e82d('0x3')]=router; \ No newline at end of file +const a262_0x5ec7=['Router','show','delete','isAuthenticated','destroy','get','../../components/auth/service','exports','post','index','put','./intFreshdeskField.controller','/:id'];(function(_0xa1cce5,_0x5ec79b){const _0x17c606=function(_0x53cff1){while(--_0x53cff1){_0xa1cce5['push'](_0xa1cce5['shift']());}};_0x17c606(++_0x5ec79b);}(a262_0x5ec7,0x16c));const a262_0x17c6=function(_0xa1cce5,_0x5ec79b){_0xa1cce5=_0xa1cce5-0x0;let _0x17c606=a262_0x5ec7[_0xa1cce5];return _0x17c606;};const _0x2b5b29=a262_0x17c6;'use strict';const express=require('express'),router=express[_0x2b5b29('0x0')](),auth=require(_0x2b5b29('0x6')),controller=require(_0x2b5b29('0xb'));router[_0x2b5b29('0x5')]('/',auth[_0x2b5b29('0x3')](),controller[_0x2b5b29('0x9')]),router['get'](_0x2b5b29('0xc'),auth[_0x2b5b29('0x3')](),controller[_0x2b5b29('0x1')]),router[_0x2b5b29('0x8')]('/',auth[_0x2b5b29('0x3')](),controller['create']),router[_0x2b5b29('0xa')](_0x2b5b29('0xc'),auth[_0x2b5b29('0x3')](),controller['update']),router[_0x2b5b29('0x2')]('/:id',auth['isAuthenticated'](),controller[_0x2b5b29('0x4')]),module[_0x2b5b29('0x7')]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.attributes.js b/server/api/intFreshdeskField/intFreshdeskField.attributes.js index 6e724bf..a6506d4 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.attributes.js +++ b/server/api/intFreshdeskField/intFreshdeskField.attributes.js @@ -1 +1 @@ -const a263_0xc31d=['exports','variable','ENUM','BOOLEAN','sequelize','customVariable','STRING','string','keyValue'];(function(_0x359ac0,_0xc31d93){const _0x109380=function(_0x304a48){while(--_0x304a48){_0x359ac0['push'](_0x359ac0['shift']());}};_0x109380(++_0xc31d93);}(a263_0xc31d,0x1eb));const a263_0x1093=function(_0x359ac0,_0xc31d93){_0x359ac0=_0x359ac0-0x0;let _0x109380=a263_0xc31d[_0x359ac0];return _0x109380;};const _0x582022=a263_0x1093;'use strict';const Sequelize=require(_0x582022('0x8'));module[_0x582022('0x4')]={'type':{'type':Sequelize[_0x582022('0x6')](_0x582022('0x2'),'variable',_0x582022('0x0'),_0x582022('0x3')),'defaultValue':'string'},'content':{'type':Sequelize[_0x582022('0x1')]},'key':{'type':Sequelize[_0x582022('0x1')]},'keyType':{'type':Sequelize[_0x582022('0x6')]('string',_0x582022('0x5'),'customVariable')},'keyContent':{'type':Sequelize[_0x582022('0x1')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x582022('0x1')]},'customField':{'type':Sequelize[_0x582022('0x7')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x582022('0x1')]}}; \ No newline at end of file +const a263_0x4a2a=['sequelize','keyValue','BOOLEAN','STRING','string','customVariable','variable','ENUM'];(function(_0x40b6f5,_0x4a2a90){const _0x1d6dac=function(_0x37279f){while(--_0x37279f){_0x40b6f5['push'](_0x40b6f5['shift']());}};_0x1d6dac(++_0x4a2a90);}(a263_0x4a2a,0xc3));const a263_0x1d6d=function(_0x40b6f5,_0x4a2a90){_0x40b6f5=_0x40b6f5-0x0;let _0x1d6dac=a263_0x4a2a[_0x40b6f5];return _0x1d6dac;};const _0x5c3289=a263_0x1d6d;'use strict';const Sequelize=require(_0x5c3289('0x5'));module['exports']={'type':{'type':Sequelize[_0x5c3289('0x4')](_0x5c3289('0x1'),_0x5c3289('0x3'),_0x5c3289('0x2'),_0x5c3289('0x6')),'defaultValue':_0x5c3289('0x1')},'content':{'type':Sequelize[_0x5c3289('0x0')]},'key':{'type':Sequelize[_0x5c3289('0x0')]},'keyType':{'type':Sequelize['ENUM'](_0x5c3289('0x1'),_0x5c3289('0x3'),_0x5c3289('0x2'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x5c3289('0x0')]},'nameField':{'type':Sequelize[_0x5c3289('0x0')]},'customField':{'type':Sequelize[_0x5c3289('0x7')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x5c3289('0x0')]}}; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.controller.js b/server/api/intFreshdeskField/intFreshdeskField.controller.js index 4244515..2632c34 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.controller.js +++ b/server/api/intFreshdeskField/intFreshdeskField.controller.js @@ -1 +1 @@ -const a264_0x530c=['update','sort','nolimit','fieldName','send','type','map','findAll','stack','params','then','keys','count','body','query','status','limit','filter','order','attributes','options','model','include','filters','name','merge','destroy','rawAttributes','VIRTUAL','findOne','../../components/parsers/qs','api','json','end','pick','sendStatus','key','../../mysqldb','create','length','show','FreshdeskField','catch','fields','Content-Range','../../config/logger','includeAll','intersection','offset','where'];(function(_0x23fbdd,_0x530c1b){const _0x259224=function(_0x1daa2c){while(--_0x1daa2c){_0x23fbdd['push'](_0x23fbdd['shift']());}};_0x259224(++_0x530c1b);}(a264_0x530c,0x68));const a264_0x2592=function(_0x23fbdd,_0x530c1b){_0x23fbdd=_0x23fbdd-0x0;let _0x259224=a264_0x530c[_0x23fbdd];return _0x259224;};const _0x1301a1=a264_0x2592;'use strict';const _=require('lodash'),qs=require(_0x1301a1('0x1a')),logger=require(_0x1301a1('0x29'))(_0x1301a1('0x1b')),db=require(_0x1301a1('0x21'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1daa2c,_0x431fee){return _0x431fee=_0x431fee||0xc8,function(_0x5a2427){const _0x579d58=a264_0x2592;if(_0x5a2427)return _0x1daa2c['status'](_0x431fee)[_0x579d58('0x1c')](_0x5a2427);};}function respondWithFilteredResult(_0x2b41bf,_0x365b53){return function(_0x20b37c){const _0x8a29f5=a264_0x2592;if(_0x20b37c){const _0xf0d34e=_0x20b37c[_0x8a29f5('0x8')],_0x27b687=_0x365b53[_0x8a29f5('0x2c')];let _0x3f7f78=_0x365b53['offset']+_0x365b53[_0x8a29f5('0xc')],_0xe44830;return _0x3f7f78>=_0xf0d34e?(_0x3f7f78=_0xf0d34e,_0xe44830=0xc8):_0xe44830=0xce,_0x2b41bf[_0x8a29f5('0xb')](_0xe44830),_0x2b41bf['set'](_0x8a29f5('0x28'),_0x27b687+'-'+_0x3f7f78+'/'+_0xf0d34e)[_0x8a29f5('0x1c')](_0x20b37c);}return null;};}function saveUpdates(_0x391f92){return function(_0x167425){if(_0x167425)return _0x167425['update'](_0x391f92)['then'](function(_0x2dde49){return _0x2dde49;});return null;};}function removeEntity(_0x2e02d9){return function(_0x598470){if(_0x598470)return _0x598470['destroy']()['then'](function(){const _0x1bfa04=a264_0x2592;_0x2e02d9[_0x1bfa04('0xb')](0xcc)[_0x1bfa04('0x1d')]();});};}function handleEntityNotFound(_0x17e520){return function(_0x12d5a6){const _0x1b954f=a264_0x2592;return!_0x12d5a6&&_0x17e520[_0x1b954f('0x1f')](0x194),_0x12d5a6;};}function handleError(_0x44ec3c,_0x2a27e7){return _0x2a27e7=_0x2a27e7||0x1f4,function(_0xea7bd7){const _0x25b9de=a264_0x2592;logger['error'](_0xea7bd7[_0x25b9de('0x4')]),_0xea7bd7[_0x25b9de('0x14')]&&delete _0xea7bd7[_0x25b9de('0x14')],_0x44ec3c[_0x25b9de('0xb')](_0x2a27e7)[_0x25b9de('0x0')](_0xea7bd7);};}exports['index']=function(_0x437b4a,_0x7545d9){const _0x8908e3=_0x1301a1;let _0xbda72a={};const _0x39b0c4={},_0x1333d5={'count':0x0,'rows':[]},_0x20f48d=_[_0x8908e3('0x2')](db[_0x8908e3('0x25')][_0x8908e3('0x17')],function(_0x33f01e){const _0x2de6c0=_0x8908e3;return{'name':_0x33f01e[_0x2de6c0('0x31')],'type':_0x33f01e[_0x2de6c0('0x1')][_0x2de6c0('0x20')]};});_0x39b0c4[_0x8908e3('0x11')]=_['map'](_0x20f48d,_0x8908e3('0x14')),_0x39b0c4[_0x8908e3('0xa')]=_['keys'](_0x437b4a[_0x8908e3('0xa')]),_0x39b0c4['filters']=_[_0x8908e3('0x2b')](_0x39b0c4[_0x8908e3('0x11')],_0x39b0c4[_0x8908e3('0xa')]),_0xbda72a['attributes']=_['intersection'](_0x39b0c4['model'],qs[_0x8908e3('0x27')](_0x437b4a['query'][_0x8908e3('0x27')])),_0xbda72a[_0x8908e3('0xf')]=_0xbda72a[_0x8908e3('0xf')]['length']?_0xbda72a['attributes']:_0x39b0c4[_0x8908e3('0x11')];typeof _0x437b4a[_0x8908e3('0xa')][_0x8908e3('0x30')]==='undefined'&&(_0xbda72a[_0x8908e3('0xc')]=qs[_0x8908e3('0xc')](_0x437b4a[_0x8908e3('0xa')][_0x8908e3('0xc')]),_0xbda72a[_0x8908e3('0x2c')]=qs[_0x8908e3('0x2c')](_0x437b4a[_0x8908e3('0xa')][_0x8908e3('0x2c')]));_0xbda72a[_0x8908e3('0xe')]=qs[_0x8908e3('0x2f')](_0x437b4a[_0x8908e3('0xa')][_0x8908e3('0x2f')]),_0xbda72a[_0x8908e3('0x2d')]=qs[_0x8908e3('0x13')](_[_0x8908e3('0x1e')](_0x437b4a[_0x8908e3('0xa')],_0x39b0c4[_0x8908e3('0x13')]),_0x20f48d);_0x437b4a[_0x8908e3('0xa')]['filter']&&(_0xbda72a[_0x8908e3('0x2d')]=_[_0x8908e3('0x15')](_0xbda72a[_0x8908e3('0x2d')],{[Op['or']]:_[_0x8908e3('0x2')](_0x20f48d,function(_0x33b8a3){const _0x93262b=_0x8908e3;if(_0x33b8a3[_0x93262b('0x1')]!==_0x93262b('0x18')){const _0x4308db={};return _0x4308db[_0x33b8a3[_0x93262b('0x14')]]={[Op['like']]:'%'+_0x437b4a[_0x93262b('0xa')][_0x93262b('0xd')]+'%'},_0x4308db;}})}));_0xbda72a=_[_0x8908e3('0x15')]({},_0xbda72a,_0x437b4a[_0x8908e3('0x10')]);const _0x3a99dc={'where':_0xbda72a[_0x8908e3('0x2d')]};return db['FreshdeskField'][_0x8908e3('0x8')](_0x3a99dc)[_0x8908e3('0x6')](function(_0x319b53){const _0x2d6606=_0x8908e3;return _0x1333d5['count']=_0x319b53,_0x437b4a[_0x2d6606('0xa')][_0x2d6606('0x2a')]&&(_0xbda72a[_0x2d6606('0x12')]=[{'all':!![]}]),db[_0x2d6606('0x25')][_0x2d6606('0x3')](_0xbda72a);})[_0x8908e3('0x6')](function(_0x5485cf){return _0x1333d5['rows']=_0x5485cf,_0x1333d5;})[_0x8908e3('0x6')](respondWithFilteredResult(_0x7545d9,_0xbda72a))[_0x8908e3('0x26')](handleError(_0x7545d9,null));},exports[_0x1301a1('0x24')]=function(_0x1c41b2,_0x10df2b){const _0x1453d0=_0x1301a1;let _0x4ab284={'raw':!![],'where':{'id':_0x1c41b2['params']['id']}};const _0x5a6391={};return _0x5a6391[_0x1453d0('0x11')]=_[_0x1453d0('0x7')](db[_0x1453d0('0x25')]['rawAttributes']),_0x5a6391[_0x1453d0('0xa')]=_[_0x1453d0('0x7')](_0x1c41b2[_0x1453d0('0xa')]),_0x5a6391['filters']=_[_0x1453d0('0x2b')](_0x5a6391['model'],_0x5a6391[_0x1453d0('0xa')]),_0x4ab284['attributes']=_[_0x1453d0('0x2b')](_0x5a6391[_0x1453d0('0x11')],qs[_0x1453d0('0x27')](_0x1c41b2[_0x1453d0('0xa')]['fields'])),_0x4ab284['attributes']=_0x4ab284[_0x1453d0('0xf')][_0x1453d0('0x23')]?_0x4ab284[_0x1453d0('0xf')]:_0x5a6391[_0x1453d0('0x11')],_0x1c41b2['query'][_0x1453d0('0x2a')]&&(_0x4ab284[_0x1453d0('0x12')]=[{'all':!![]}]),_0x4ab284=_[_0x1453d0('0x15')]({},_0x4ab284,_0x1c41b2[_0x1453d0('0x10')]),db[_0x1453d0('0x25')]['findOne'](_0x4ab284)[_0x1453d0('0x6')](handleEntityNotFound(_0x10df2b,null))['then'](respondWithResult(_0x10df2b,null))['catch'](handleError(_0x10df2b,null));},exports[_0x1301a1('0x22')]=function(_0x85d5c5,_0x233859){const _0x677b6b=_0x1301a1;return db[_0x677b6b('0x25')][_0x677b6b('0x22')](_0x85d5c5[_0x677b6b('0x9')],{})[_0x677b6b('0x6')](respondWithResult(_0x233859,0xc9))[_0x677b6b('0x26')](handleError(_0x233859,null));},exports[_0x1301a1('0x2e')]=function(_0x1c5fd2,_0x4ea428){const _0x378767=_0x1301a1;return _0x1c5fd2[_0x378767('0x9')]['id']&&delete _0x1c5fd2[_0x378767('0x9')]['id'],db[_0x378767('0x25')][_0x378767('0x19')]({'where':{'id':_0x1c5fd2[_0x378767('0x5')]['id']}})[_0x378767('0x6')](handleEntityNotFound(_0x4ea428,null))[_0x378767('0x6')](saveUpdates(_0x1c5fd2[_0x378767('0x9')],null))[_0x378767('0x6')](respondWithResult(_0x4ea428,null))[_0x378767('0x26')](handleError(_0x4ea428,null));},exports[_0x1301a1('0x16')]=function(_0x45aeed,_0x350306){const _0x2b713b=_0x1301a1;return db[_0x2b713b('0x25')][_0x2b713b('0x19')]({'where':{'id':_0x45aeed[_0x2b713b('0x5')]['id']}})[_0x2b713b('0x6')](handleEntityNotFound(_0x350306,null))['then'](removeEntity(_0x350306,null))[_0x2b713b('0x26')](handleError(_0x350306,null));}; \ No newline at end of file +const a264_0x5cb5=['include','where','map','merge','count','json','like','Content-Range','findOne','fieldName','index','attributes','length','findAll','key','rows','undefined','show','update','nolimit','FreshdeskField','create','body','status','fields','includeAll','offset','VIRTUAL','api','filters','set','name','filter','limit','catch','options','destroy','error','sendStatus','type','model','stack','order','keys','../../mysqldb','params','../../components/parsers/qs','intersection','query','../../config/logger','rawAttributes','sort','sequelize','then','end'];(function(_0x16983e,_0x5cb56a){const _0x3820df=function(_0x349478){while(--_0x349478){_0x16983e['push'](_0x16983e['shift']());}};_0x3820df(++_0x5cb56a);}(a264_0x5cb5,0x155));const a264_0x3820=function(_0x16983e,_0x5cb56a){_0x16983e=_0x16983e-0x0;let _0x3820df=a264_0x5cb5[_0x16983e];return _0x3820df;};const _0x3e466e=a264_0x3820;'use strict';const _=require('lodash'),qs=require(_0x3e466e('0x23')),logger=require(_0x3e466e('0x26'))(_0x3e466e('0x11')),db=require(_0x3e466e('0x21'))['db'],{Op}=require(_0x3e466e('0x29'));function respondWithResult(_0x349478,_0x1127e9){return _0x1127e9=_0x1127e9||0xc8,function(_0x159a3b){const _0x573caa=a264_0x3820;if(_0x159a3b)return _0x349478[_0x573caa('0xc')](_0x1127e9)['json'](_0x159a3b);};}function respondWithFilteredResult(_0x46546d,_0x229931){return function(_0x106f55){const _0x16af79=a264_0x3820;if(_0x106f55){const _0x257713=_0x106f55[_0x16af79('0x30')],_0x3026f1=_0x229931['offset'];let _0x6493c3=_0x229931[_0x16af79('0xf')]+_0x229931[_0x16af79('0x16')],_0x513a4b;return _0x6493c3>=_0x257713?(_0x6493c3=_0x257713,_0x513a4b=0xc8):_0x513a4b=0xce,_0x46546d[_0x16af79('0xc')](_0x513a4b),_0x46546d[_0x16af79('0x13')](_0x16af79('0x33'),_0x3026f1+'-'+_0x6493c3+'/'+_0x257713)[_0x16af79('0x31')](_0x106f55);}return null;};}function saveUpdates(_0x1a0c83){return function(_0x1e75d5){const _0x12bb61=a264_0x3820;if(_0x1e75d5)return _0x1e75d5[_0x12bb61('0x7')](_0x1a0c83)[_0x12bb61('0x2a')](function(_0x199eef){return _0x199eef;});return null;};}function removeEntity(_0x2afe81){return function(_0x1118a4){const _0x36e982=a264_0x3820;if(_0x1118a4)return _0x1118a4[_0x36e982('0x19')]()[_0x36e982('0x2a')](function(){const _0x527716=_0x36e982;_0x2afe81[_0x527716('0xc')](0xcc)[_0x527716('0x2b')]();});};}function handleEntityNotFound(_0x277478){return function(_0x47ab83){const _0x33747c=a264_0x3820;return!_0x47ab83&&_0x277478[_0x33747c('0x1b')](0x194),_0x47ab83;};}function handleError(_0x14f260,_0x2f41ad){return _0x2f41ad=_0x2f41ad||0x1f4,function(_0x23caba){const _0xc7598d=a264_0x3820;logger[_0xc7598d('0x1a')](_0x23caba[_0xc7598d('0x1e')]),_0x23caba[_0xc7598d('0x14')]&&delete _0x23caba[_0xc7598d('0x14')],_0x14f260[_0xc7598d('0xc')](_0x2f41ad)['send'](_0x23caba);};}exports[_0x3e466e('0x36')]=function(_0x5f0cf8,_0x314caa){const _0x4e1b9b=_0x3e466e;let _0x5b7fe7={};const _0x255297={},_0x78a991={'count':0x0,'rows':[]},_0x37b463=_[_0x4e1b9b('0x2e')](db[_0x4e1b9b('0x9')][_0x4e1b9b('0x27')],function(_0x1a0152){const _0x382008=_0x4e1b9b;return{'name':_0x1a0152[_0x382008('0x35')],'type':_0x1a0152['type'][_0x382008('0x3')]};});_0x255297[_0x4e1b9b('0x1d')]=_[_0x4e1b9b('0x2e')](_0x37b463,'name'),_0x255297[_0x4e1b9b('0x25')]=_[_0x4e1b9b('0x20')](_0x5f0cf8[_0x4e1b9b('0x25')]),_0x255297[_0x4e1b9b('0x12')]=_['intersection'](_0x255297[_0x4e1b9b('0x1d')],_0x255297[_0x4e1b9b('0x25')]),_0x5b7fe7[_0x4e1b9b('0x0')]=_[_0x4e1b9b('0x24')](_0x255297[_0x4e1b9b('0x1d')],qs[_0x4e1b9b('0xd')](_0x5f0cf8[_0x4e1b9b('0x25')][_0x4e1b9b('0xd')])),_0x5b7fe7[_0x4e1b9b('0x0')]=_0x5b7fe7[_0x4e1b9b('0x0')][_0x4e1b9b('0x1')]?_0x5b7fe7[_0x4e1b9b('0x0')]:_0x255297[_0x4e1b9b('0x1d')];typeof _0x5f0cf8[_0x4e1b9b('0x25')][_0x4e1b9b('0x8')]===_0x4e1b9b('0x5')&&(_0x5b7fe7[_0x4e1b9b('0x16')]=qs[_0x4e1b9b('0x16')](_0x5f0cf8[_0x4e1b9b('0x25')][_0x4e1b9b('0x16')]),_0x5b7fe7[_0x4e1b9b('0xf')]=qs[_0x4e1b9b('0xf')](_0x5f0cf8[_0x4e1b9b('0x25')][_0x4e1b9b('0xf')]));_0x5b7fe7[_0x4e1b9b('0x1f')]=qs[_0x4e1b9b('0x28')](_0x5f0cf8[_0x4e1b9b('0x25')][_0x4e1b9b('0x28')]),_0x5b7fe7[_0x4e1b9b('0x2d')]=qs[_0x4e1b9b('0x12')](_['pick'](_0x5f0cf8[_0x4e1b9b('0x25')],_0x255297[_0x4e1b9b('0x12')]),_0x37b463);_0x5f0cf8[_0x4e1b9b('0x25')][_0x4e1b9b('0x15')]&&(_0x5b7fe7[_0x4e1b9b('0x2d')]=_['merge'](_0x5b7fe7[_0x4e1b9b('0x2d')],{[Op['or']]:_[_0x4e1b9b('0x2e')](_0x37b463,function(_0x2781d2){const _0x17e4e6=_0x4e1b9b;if(_0x2781d2[_0x17e4e6('0x1c')]!==_0x17e4e6('0x10')){const _0x44cdfe={};return _0x44cdfe[_0x2781d2[_0x17e4e6('0x14')]]={[Op[_0x17e4e6('0x32')]]:'%'+_0x5f0cf8[_0x17e4e6('0x25')]['filter']+'%'},_0x44cdfe;}})}));_0x5b7fe7=_['merge']({},_0x5b7fe7,_0x5f0cf8[_0x4e1b9b('0x18')]);const _0x26115a={'where':_0x5b7fe7[_0x4e1b9b('0x2d')]};return db[_0x4e1b9b('0x9')][_0x4e1b9b('0x30')](_0x26115a)[_0x4e1b9b('0x2a')](function(_0x270bbd){const _0x36bf8c=_0x4e1b9b;return _0x78a991[_0x36bf8c('0x30')]=_0x270bbd,_0x5f0cf8[_0x36bf8c('0x25')][_0x36bf8c('0xe')]&&(_0x5b7fe7['include']=[{'all':!![]}]),db[_0x36bf8c('0x9')][_0x36bf8c('0x2')](_0x5b7fe7);})[_0x4e1b9b('0x2a')](function(_0x140eb5){const _0x23a25d=_0x4e1b9b;return _0x78a991[_0x23a25d('0x4')]=_0x140eb5,_0x78a991;})[_0x4e1b9b('0x2a')](respondWithFilteredResult(_0x314caa,_0x5b7fe7))[_0x4e1b9b('0x17')](handleError(_0x314caa,null));},exports[_0x3e466e('0x6')]=function(_0x113b75,_0x226f4d){const _0x231c73=_0x3e466e;let _0x1d5a9a={'raw':!![],'where':{'id':_0x113b75[_0x231c73('0x22')]['id']}};const _0x2022cc={};return _0x2022cc[_0x231c73('0x1d')]=_[_0x231c73('0x20')](db['FreshdeskField'][_0x231c73('0x27')]),_0x2022cc[_0x231c73('0x25')]=_[_0x231c73('0x20')](_0x113b75['query']),_0x2022cc['filters']=_[_0x231c73('0x24')](_0x2022cc[_0x231c73('0x1d')],_0x2022cc[_0x231c73('0x25')]),_0x1d5a9a[_0x231c73('0x0')]=_['intersection'](_0x2022cc['model'],qs['fields'](_0x113b75[_0x231c73('0x25')][_0x231c73('0xd')])),_0x1d5a9a[_0x231c73('0x0')]=_0x1d5a9a['attributes'][_0x231c73('0x1')]?_0x1d5a9a['attributes']:_0x2022cc[_0x231c73('0x1d')],_0x113b75[_0x231c73('0x25')]['includeAll']&&(_0x1d5a9a[_0x231c73('0x2c')]=[{'all':!![]}]),_0x1d5a9a=_[_0x231c73('0x2f')]({},_0x1d5a9a,_0x113b75[_0x231c73('0x18')]),db['FreshdeskField'][_0x231c73('0x34')](_0x1d5a9a)[_0x231c73('0x2a')](handleEntityNotFound(_0x226f4d,null))[_0x231c73('0x2a')](respondWithResult(_0x226f4d,null))[_0x231c73('0x17')](handleError(_0x226f4d,null));},exports[_0x3e466e('0xa')]=function(_0x371369,_0x521862){const _0xbc451d=_0x3e466e;return db['FreshdeskField'][_0xbc451d('0xa')](_0x371369[_0xbc451d('0xb')],{})['then'](respondWithResult(_0x521862,0xc9))[_0xbc451d('0x17')](handleError(_0x521862,null));},exports[_0x3e466e('0x7')]=function(_0xc927c1,_0x399df7){const _0x3d5fde=_0x3e466e;return _0xc927c1[_0x3d5fde('0xb')]['id']&&delete _0xc927c1[_0x3d5fde('0xb')]['id'],db[_0x3d5fde('0x9')][_0x3d5fde('0x34')]({'where':{'id':_0xc927c1[_0x3d5fde('0x22')]['id']}})[_0x3d5fde('0x2a')](handleEntityNotFound(_0x399df7,null))[_0x3d5fde('0x2a')](saveUpdates(_0xc927c1[_0x3d5fde('0xb')],null))['then'](respondWithResult(_0x399df7,null))[_0x3d5fde('0x17')](handleError(_0x399df7,null));},exports['destroy']=function(_0x2b7836,_0x4f618a){const _0x508da9=_0x3e466e;return db[_0x508da9('0x9')][_0x508da9('0x34')]({'where':{'id':_0x2b7836['params']['id']}})[_0x508da9('0x2a')](handleEntityNotFound(_0x4f618a,null))[_0x508da9('0x2a')](removeEntity(_0x4f618a,null))[_0x508da9('0x17')](handleError(_0x4f618a,null));}; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.model.js b/server/api/intFreshdeskField/intFreshdeskField.model.js index 1498b22..8569a25 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.model.js +++ b/server/api/intFreshdeskField/intFreshdeskField.model.js @@ -1 +1 @@ -const a265_0x1359=['FieldId','define','FreshdeskField','idField','./intFreshdeskField.attributes'];(function(_0x163e23,_0x13599f){const _0x36066c=function(_0x226d45){while(--_0x226d45){_0x163e23['push'](_0x163e23['shift']());}};_0x36066c(++_0x13599f);}(a265_0x1359,0x1b9));const a265_0x3606=function(_0x163e23,_0x13599f){_0x163e23=_0x163e23-0x0;let _0x36066c=a265_0x1359[_0x163e23];return _0x36066c;};const _0x3932e6=a265_0x3606;'use strict';const attributes=require(_0x3932e6('0x3'));module['exports']=function(_0x226d45){const _0x2c65ec=_0x3932e6,_0x49d06d=_0x226d45[_0x2c65ec('0x0')](_0x2c65ec('0x1'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':[_0x2c65ec('0x2'),_0x2c65ec('0x4')],'unique':!![]}],'timestamps':!![]});return _0x49d06d;}; \ No newline at end of file +const a265_0x475c=['int_freshdesk_fields','exports','define','FreshdeskField','idField'];(function(_0x63b852,_0x475c86){const _0x27d0a4=function(_0x52baeb){while(--_0x52baeb){_0x63b852['push'](_0x63b852['shift']());}};_0x27d0a4(++_0x475c86);}(a265_0x475c,0x1b7));const a265_0x27d0=function(_0x63b852,_0x475c86){_0x63b852=_0x63b852-0x0;let _0x27d0a4=a265_0x475c[_0x63b852];return _0x27d0a4;};const _0x5ee23e=a265_0x27d0;'use strict';const attributes=require('./intFreshdeskField.attributes');module[_0x5ee23e('0x2')]=function(_0x52baeb){const _0x325783=_0x5ee23e,_0x42ea48=_0x52baeb[_0x325783('0x3')](_0x325783('0x4'),attributes,{'tableName':_0x325783('0x1'),'paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':[_0x325783('0x0'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x42ea48;}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/index.js b/server/api/intFreshsalesAccount/index.js index b6a1da5..4063433 100644 --- a/server/api/intFreshsalesAccount/index.js +++ b/server/api/intFreshsalesAccount/index.js @@ -1 +1 @@ -const a266_0x4658=['exports','delete','create','getFields','index','post','getConfigurations','/:id','get','isAuthenticated','update','express','/:id/configurations','put','/:id/fields','addConfiguration','show'];(function(_0x514eb0,_0x465897){const _0x5c076c=function(_0x343331){while(--_0x343331){_0x514eb0['push'](_0x514eb0['shift']());}};_0x5c076c(++_0x465897);}(a266_0x4658,0x19b));const a266_0x5c07=function(_0x514eb0,_0x465897){_0x514eb0=_0x514eb0-0x0;let _0x5c076c=a266_0x4658[_0x514eb0];return _0x5c076c;};const _0x1fbcf3=a266_0x5c07;'use strict';const express=require(_0x1fbcf3('0x8')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./intFreshsalesAccount.controller');router['get']('/',auth[_0x1fbcf3('0x6')](),controller[_0x1fbcf3('0x1')]),router['get'](_0x1fbcf3('0x4'),auth[_0x1fbcf3('0x6')](),controller[_0x1fbcf3('0xd')]),router[_0x1fbcf3('0x5')](_0x1fbcf3('0x9'),auth['isAuthenticated'](),controller[_0x1fbcf3('0x3')]),router[_0x1fbcf3('0x5')](_0x1fbcf3('0xb'),auth[_0x1fbcf3('0x6')](),controller[_0x1fbcf3('0x0')]),router[_0x1fbcf3('0x2')]('/',auth[_0x1fbcf3('0x6')](),controller[_0x1fbcf3('0x10')]),router['post'](_0x1fbcf3('0x9'),auth['isAuthenticated'](),controller[_0x1fbcf3('0xc')]),router[_0x1fbcf3('0xa')](_0x1fbcf3('0x4'),auth[_0x1fbcf3('0x6')](),controller[_0x1fbcf3('0x7')]),router[_0x1fbcf3('0xf')](_0x1fbcf3('0x4'),auth[_0x1fbcf3('0x6')](),controller['destroy']),module[_0x1fbcf3('0xe')]=router; \ No newline at end of file +const a266_0x56b7=['getFields','exports','index','get','../../components/auth/service','/:id','create','getConfigurations','/:id/fields','isAuthenticated','put','destroy','addConfiguration','post','./intFreshsalesAccount.controller'];(function(_0x9b0547,_0x56b794){const _0x3dd0cf=function(_0x5a1c3f){while(--_0x5a1c3f){_0x9b0547['push'](_0x9b0547['shift']());}};_0x3dd0cf(++_0x56b794);}(a266_0x56b7,0x7d));const a266_0x3dd0=function(_0x9b0547,_0x56b794){_0x9b0547=_0x9b0547-0x0;let _0x3dd0cf=a266_0x56b7[_0x9b0547];return _0x3dd0cf;};const _0x1f12ce=a266_0x3dd0;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x1f12ce('0xe')),controller=require(_0x1f12ce('0x9'));router[_0x1f12ce('0xd')]('/',auth['isAuthenticated'](),controller[_0x1f12ce('0xc')]),router[_0x1f12ce('0xd')](_0x1f12ce('0x0'),auth['isAuthenticated'](),controller['show']),router[_0x1f12ce('0xd')]('/:id/configurations',auth[_0x1f12ce('0x4')](),controller[_0x1f12ce('0x2')]),router[_0x1f12ce('0xd')](_0x1f12ce('0x3'),auth[_0x1f12ce('0x4')](),controller[_0x1f12ce('0xa')]),router[_0x1f12ce('0x8')]('/',auth['isAuthenticated'](),controller[_0x1f12ce('0x1')]),router['post']('/:id/configurations',auth[_0x1f12ce('0x4')](),controller[_0x1f12ce('0x7')]),router[_0x1f12ce('0x5')](_0x1f12ce('0x0'),auth[_0x1f12ce('0x4')](),controller['update']),router['delete'](_0x1f12ce('0x0'),auth['isAuthenticated'](),controller[_0x1f12ce('0x6')]),module[_0x1f12ce('0xb')]=router; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js index 67ef234..24efaa0 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js @@ -1 +1 @@ -const a267_0x697e=['STRING','sequelize','exports'];(function(_0x3c2cde,_0x697e65){const _0x542fa8=function(_0x251425){while(--_0x251425){_0x3c2cde['push'](_0x3c2cde['shift']());}};_0x542fa8(++_0x697e65);}(a267_0x697e,0x74));const a267_0x542f=function(_0x3c2cde,_0x697e65){_0x3c2cde=_0x3c2cde-0x0;let _0x542fa8=a267_0x697e[_0x3c2cde];return _0x542fa8;};const _0x2b649f=a267_0x542f;'use strict';const Sequelize=require(_0x2b649f('0x2'));module[_0x2b649f('0x0')]={'name':{'type':Sequelize[_0x2b649f('0x1')]},'description':{'type':Sequelize[_0x2b649f('0x1')]},'username':{'type':Sequelize[_0x2b649f('0x1')],'unique':'username'},'apiKey':{'type':Sequelize[_0x2b649f('0x1')]},'remoteUri':{'type':Sequelize[_0x2b649f('0x1')],'unique':'remoteUri'},'serverUrl':{'type':Sequelize[_0x2b649f('0x1')]}}; \ No newline at end of file +const a267_0x2a95=['STRING','exports','remoteUri','sequelize'];(function(_0x468c23,_0x2a959b){const _0x1c7556=function(_0x6fba23){while(--_0x6fba23){_0x468c23['push'](_0x468c23['shift']());}};_0x1c7556(++_0x2a959b);}(a267_0x2a95,0x1e0));const a267_0x1c75=function(_0x468c23,_0x2a959b){_0x468c23=_0x468c23-0x0;let _0x1c7556=a267_0x2a95[_0x468c23];return _0x1c7556;};const _0x242f41=a267_0x1c75;'use strict';const Sequelize=require(_0x242f41('0x3'));module[_0x242f41('0x1')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x242f41('0x0')]},'username':{'type':Sequelize[_0x242f41('0x0')],'unique':'username'},'apiKey':{'type':Sequelize[_0x242f41('0x0')]},'remoteUri':{'type':Sequelize['STRING'],'unique':_0x242f41('0x2')},'serverUrl':{'type':Sequelize[_0x242f41('0x0')]}}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js index ee2e08f..1dc7d62 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js @@ -1 +1 @@ -const a268_0x169a=['fields','users','map','getFields','model','query','status','end','getSubjects','api','filters','FreshsalesAccount','options','../../components/parsers/qs','index','lodash','length','show','update','filter','name','stringify','body','nolimit','FreshsalesField','include','sort','GET','email','findOne','type','keys','../../components/integrations/configuration','json','getFields,\x20%s,\x20%s,\x20%s','getConfigurations','intersection','set','includeAll','Descriptions','order','like','rawAttributes','limit','where','apiKey','request-promise-native','attributes','catch','send','FreshsalesConfiguration','sequelize','stack','pick','remoteUri','/api/selector/owners','../../mysqldb','format','test','offset','rows','destroy','channel','Subjects','params','sendStatus','count','statusCode','%s%s','Content-Range','then','lastIndexOf','merge','Wrong\x20credentials','create','username','getDescriptions'];(function(_0x344e6d,_0x169ae4){const _0x5e39f3=function(_0x5866ef){while(--_0x5866ef){_0x344e6d['push'](_0x344e6d['shift']());}};_0x5e39f3(++_0x169ae4);}(a268_0x169a,0x161));const a268_0x5e39=function(_0x344e6d,_0x169ae4){_0x344e6d=_0x344e6d-0x0;let _0x5e39f3=a268_0x169a[_0x344e6d];return _0x5e39f3;};const _0x513c4d=a268_0x5e39;'use strict';const rp=require(_0x513c4d('0x1')),util=require('util'),_=require(_0x513c4d('0x2f')),qs=require(_0x513c4d('0x2d')),logger=require('../../config/logger')(_0x513c4d('0x29')),db=require(_0x513c4d('0xb'))['db'],{Op}=require(_0x513c4d('0x6')),integrations=require(_0x513c4d('0x40'));function respondWithResult(_0x5866ef,_0x374509){return _0x374509=_0x374509||0xc8,function(_0x2ee161){const _0x14f804=a268_0x5e39;if(_0x2ee161)return _0x5866ef[_0x14f804('0x26')](_0x374509)[_0x14f804('0x41')](_0x2ee161);};}function respondWithFilteredResult(_0x2052d4,_0x3bd3e6){return function(_0x7669da){const _0x1a3482=a268_0x5e39;if(_0x7669da){const _0x1acbcf=_0x7669da[_0x1a3482('0x15')],_0x53e036=_0x3bd3e6[_0x1a3482('0xe')];let _0x35bf99=_0x3bd3e6[_0x1a3482('0xe')]+_0x3bd3e6[_0x1a3482('0x4b')],_0x5af6a5;return _0x35bf99>=_0x1acbcf?(_0x35bf99=_0x1acbcf,_0x5af6a5=0xc8):_0x5af6a5=0xce,_0x2052d4['status'](_0x5af6a5),_0x2052d4[_0x1a3482('0x45')](_0x1a3482('0x18'),_0x53e036+'-'+_0x35bf99+'/'+_0x1acbcf)['json'](_0x7669da);}return null;};}function saveUpdates(_0xefecb){return function(_0x2d7a0b){const _0x1ba1ee=a268_0x5e39;if(_0x2d7a0b)return _0x2d7a0b[_0x1ba1ee('0x32')](_0xefecb)[_0x1ba1ee('0x19')](function(_0x3c0abe){return _0x3c0abe;});return null;};}function removeEntity(_0x5696f6){return function(_0x53bfe3){const _0x23cc20=a268_0x5e39;if(_0x53bfe3)return _0x53bfe3[_0x23cc20('0x10')]()[_0x23cc20('0x19')](function(){const _0x281b21=_0x23cc20;_0x5696f6['status'](0xcc)[_0x281b21('0x27')]();});};}function handleEntityNotFound(_0x204d84){return function(_0x44928f){const _0xc06a7f=a268_0x5e39;return!_0x44928f&&_0x204d84[_0xc06a7f('0x14')](0x194),_0x44928f;};}function handleError(_0x2bb65a,_0x5b4fbd){return _0x5b4fbd=_0x5b4fbd||0x1f4,function(_0x5e16ab){const _0x1a8806=a268_0x5e39;logger['error'](_0x5e16ab[_0x1a8806('0x7')]),_0x5e16ab['name']&&delete _0x5e16ab[_0x1a8806('0x34')],_0x2bb65a[_0x1a8806('0x26')](_0x5b4fbd)[_0x1a8806('0x4')](_0x5e16ab);};}exports[_0x513c4d('0x2e')]=function(_0x5138f0,_0xb3611c){const _0x49fd4b=_0x513c4d;let _0x300f4a={};const _0x485062={},_0x15958={'count':0x0,'rows':[]},_0x4ac129=_[_0x49fd4b('0x22')](db['FreshsalesAccount'][_0x49fd4b('0x4a')],function(_0x3c471d){const _0x3e7d13=_0x49fd4b;return{'name':_0x3c471d['fieldName'],'type':_0x3c471d[_0x3e7d13('0x3e')]['key']};});_0x485062[_0x49fd4b('0x24')]=_['map'](_0x4ac129,_0x49fd4b('0x34')),_0x485062[_0x49fd4b('0x25')]=_['keys'](_0x5138f0['query']),_0x485062[_0x49fd4b('0x2a')]=_[_0x49fd4b('0x44')](_0x485062[_0x49fd4b('0x24')],_0x485062[_0x49fd4b('0x25')]),_0x300f4a[_0x49fd4b('0x2')]=_[_0x49fd4b('0x44')](_0x485062['model'],qs[_0x49fd4b('0x20')](_0x5138f0[_0x49fd4b('0x25')][_0x49fd4b('0x20')])),_0x300f4a[_0x49fd4b('0x2')]=_0x300f4a[_0x49fd4b('0x2')][_0x49fd4b('0x30')]?_0x300f4a[_0x49fd4b('0x2')]:_0x485062[_0x49fd4b('0x24')];typeof _0x5138f0[_0x49fd4b('0x25')][_0x49fd4b('0x37')]==='undefined'&&(_0x300f4a[_0x49fd4b('0x4b')]=qs[_0x49fd4b('0x4b')](_0x5138f0[_0x49fd4b('0x25')][_0x49fd4b('0x4b')]),_0x300f4a['offset']=qs['offset'](_0x5138f0[_0x49fd4b('0x25')]['offset']));_0x300f4a[_0x49fd4b('0x48')]=qs[_0x49fd4b('0x3a')](_0x5138f0[_0x49fd4b('0x25')][_0x49fd4b('0x3a')]),_0x300f4a['where']=qs[_0x49fd4b('0x2a')](_[_0x49fd4b('0x8')](_0x5138f0[_0x49fd4b('0x25')],_0x485062[_0x49fd4b('0x2a')]),_0x4ac129);_0x5138f0[_0x49fd4b('0x25')][_0x49fd4b('0x33')]&&(_0x300f4a[_0x49fd4b('0x4c')]=_[_0x49fd4b('0x1b')](_0x300f4a[_0x49fd4b('0x4c')],{[Op['or']]:_[_0x49fd4b('0x22')](_0x4ac129,function(_0x518a59){const _0x15f2b5=_0x49fd4b;if(_0x518a59['type']!=='VIRTUAL'){const _0x506131={};return _0x506131[_0x518a59[_0x15f2b5('0x34')]]={[Op[_0x15f2b5('0x49')]]:'%'+_0x5138f0[_0x15f2b5('0x25')][_0x15f2b5('0x33')]+'%'},_0x506131;}})}));_0x300f4a=_[_0x49fd4b('0x1b')]({},_0x300f4a,_0x5138f0[_0x49fd4b('0x2c')]);const _0x5deda7={'where':_0x300f4a[_0x49fd4b('0x4c')]};return db[_0x49fd4b('0x2b')][_0x49fd4b('0x15')](_0x5deda7)[_0x49fd4b('0x19')](function(_0x1bd145){const _0x242647=_0x49fd4b;return _0x15958[_0x242647('0x15')]=_0x1bd145,_0x5138f0[_0x242647('0x25')][_0x242647('0x46')]&&(_0x300f4a[_0x242647('0x39')]=[{'all':!![]}]),db[_0x242647('0x2b')]['findAll'](_0x300f4a);})['then'](function(_0xbd469d){const _0x9a720a=_0x49fd4b;return _0x15958[_0x9a720a('0xf')]=_0xbd469d,_0x15958;})[_0x49fd4b('0x19')](respondWithFilteredResult(_0xb3611c,_0x300f4a))[_0x49fd4b('0x3')](handleError(_0xb3611c,null));},exports[_0x513c4d('0x31')]=function(_0x1a66d6,_0x5ac776){const _0x52d84e=_0x513c4d;let _0x27ad8c={'raw':![],'where':{'id':_0x1a66d6[_0x52d84e('0x13')]['id']}};const _0x217541={};return _0x217541[_0x52d84e('0x24')]=_[_0x52d84e('0x3f')](db[_0x52d84e('0x2b')][_0x52d84e('0x4a')]),_0x217541[_0x52d84e('0x25')]=_[_0x52d84e('0x3f')](_0x1a66d6[_0x52d84e('0x25')]),_0x217541[_0x52d84e('0x2a')]=_[_0x52d84e('0x44')](_0x217541[_0x52d84e('0x24')],_0x217541['query']),_0x27ad8c['attributes']=_[_0x52d84e('0x44')](_0x217541[_0x52d84e('0x24')],qs['fields'](_0x1a66d6['query'][_0x52d84e('0x20')])),_0x27ad8c['attributes']=_0x27ad8c[_0x52d84e('0x2')][_0x52d84e('0x30')]?_0x27ad8c['attributes']:_0x217541[_0x52d84e('0x24')],_0x1a66d6['query'][_0x52d84e('0x46')]&&(_0x27ad8c[_0x52d84e('0x39')]=[{'all':!![]}]),_0x27ad8c=_[_0x52d84e('0x1b')]({},_0x27ad8c,_0x1a66d6[_0x52d84e('0x2c')]),db[_0x52d84e('0x2b')][_0x52d84e('0x3d')](_0x27ad8c)[_0x52d84e('0x19')](handleEntityNotFound(_0x5ac776,null))[_0x52d84e('0x19')](respondWithResult(_0x5ac776,null))[_0x52d84e('0x3')](handleError(_0x5ac776,null));},exports[_0x513c4d('0x1d')]=function(_0x4733b3,_0x14a46b){const _0x2769fa=_0x513c4d;return db[_0x2769fa('0x2b')][_0x2769fa('0x1d')](_0x4733b3[_0x2769fa('0x36')],{})[_0x2769fa('0x19')](respondWithResult(_0x14a46b,0xc9))[_0x2769fa('0x3')](handleError(_0x14a46b,null));},exports['update']=function(_0x576a21,_0x44353b){const _0x115088=_0x513c4d;return _0x576a21['body']['id']&&delete _0x576a21[_0x115088('0x36')]['id'],db['FreshsalesAccount'][_0x115088('0x3d')]({'where':{'id':_0x576a21[_0x115088('0x13')]['id']}})[_0x115088('0x19')](handleEntityNotFound(_0x44353b,null))[_0x115088('0x19')](saveUpdates(_0x576a21[_0x115088('0x36')],null))[_0x115088('0x19')](respondWithResult(_0x44353b,null))[_0x115088('0x3')](handleError(_0x44353b,null));},exports[_0x513c4d('0x10')]=function(_0x3e7e4d,_0x81edf6){const _0x3b8a8d=_0x513c4d;return db[_0x3b8a8d('0x2b')][_0x3b8a8d('0x3d')]({'where':{'id':_0x3e7e4d[_0x3b8a8d('0x13')]['id']}})[_0x3b8a8d('0x19')](handleEntityNotFound(_0x81edf6,null))[_0x3b8a8d('0x19')](removeEntity(_0x81edf6,null))[_0x3b8a8d('0x3')](handleError(_0x81edf6,null));},exports['getConfigurations']=function(_0x588699,_0x34781a){const _0x351b25=_0x513c4d;let _0x50e841={};const _0x14544c={};let _0x5d1f18,_0x52ec4a;return db[_0x351b25('0x2b')][_0x351b25('0x3d')]({'where':{'id':_0x588699['params']['id']}})['then'](handleEntityNotFound(_0x34781a,null))[_0x351b25('0x19')](function(_0x18af38){const _0x5a143e=_0x351b25;if(_0x18af38)return _0x5d1f18=_0x18af38,_0x14544c[_0x5a143e('0x24')]=_[_0x5a143e('0x3f')](db[_0x5a143e('0x5')][_0x5a143e('0x4a')]),_0x14544c[_0x5a143e('0x25')]=_[_0x5a143e('0x3f')](_0x588699['query']),_0x14544c['filters']=_[_0x5a143e('0x44')](_0x14544c[_0x5a143e('0x24')],_0x14544c[_0x5a143e('0x25')]),_0x50e841['attributes']=_[_0x5a143e('0x44')](_0x14544c[_0x5a143e('0x24')],qs['fields'](_0x588699['query']['fields'])),_0x50e841['attributes']=_0x50e841[_0x5a143e('0x2')][_0x5a143e('0x30')]?_0x50e841[_0x5a143e('0x2')]:_0x14544c['model'],_0x50e841[_0x5a143e('0x48')]=qs['sort'](_0x588699[_0x5a143e('0x25')]['sort']),_0x50e841['where']=qs[_0x5a143e('0x2a')](_['pick'](_0x588699[_0x5a143e('0x25')],_0x14544c['filters'])),_0x588699[_0x5a143e('0x25')][_0x5a143e('0x33')]&&(_0x50e841['where']=_[_0x5a143e('0x1b')](_0x50e841[_0x5a143e('0x4c')],{[Op['or']]:_['map'](_0x50e841[_0x5a143e('0x2')],function(_0x4b4f6d){const _0x3f63c2=_0x5a143e,_0x463e04={};return _0x463e04[_0x4b4f6d]={[Op[_0x3f63c2('0x49')]]:'%'+_0x588699[_0x3f63c2('0x25')][_0x3f63c2('0x33')]+'%'},_0x463e04;})})),_0x50e841=_[_0x5a143e('0x1b')]({},_0x50e841,_0x588699[_0x5a143e('0x2c')]),_0x5d1f18[_0x5a143e('0x43')](_0x50e841);})[_0x351b25('0x19')](function(_0x29db9c){const _0x2be750=_0x351b25;if(_0x29db9c)return _0x52ec4a=_0x29db9c['length'],typeof _0x588699['query'][_0x2be750('0x37')]==='undefined'&&(_0x50e841[_0x2be750('0x4b')]=qs[_0x2be750('0x4b')](_0x588699[_0x2be750('0x25')]['limit']),_0x50e841['offset']=qs[_0x2be750('0xe')](_0x588699[_0x2be750('0x25')][_0x2be750('0xe')])),_0x5d1f18[_0x2be750('0x43')](_0x50e841);})[_0x351b25('0x19')](function(_0x4a72da){if(_0x4a72da)return _0x4a72da?{'count':_0x52ec4a,'rows':_0x4a72da}:null;})[_0x351b25('0x19')](respondWithResult(_0x34781a,null))[_0x351b25('0x3')](handleError(_0x34781a,null));},exports['addConfiguration']=function(_0x12f051,_0x1ac463){const _0x3792d1=_0x513c4d;return _0x12f051[_0x3792d1('0x36')]['id']&&delete _0x12f051[_0x3792d1('0x36')]['id'],db[_0x3792d1('0x2b')][_0x3792d1('0x3d')]({'where':{'id':_0x12f051[_0x3792d1('0x13')]['id']}})[_0x3792d1('0x19')](handleEntityNotFound(_0x1ac463,null))[_0x3792d1('0x19')](function(_0x2e8679){const _0x8f6806=_0x3792d1;if(_0x2e8679)return _0x12f051['body']['AccountId']=_0x2e8679['id'],_0x12f051[_0x8f6806('0x36')][_0x8f6806('0x12')]=integrations[_0x8f6806('0x28')](_0x12f051['body'][_0x8f6806('0x11')],_0x12f051[_0x8f6806('0x36')][_0x8f6806('0x3e')]),_0x12f051[_0x8f6806('0x36')][_0x8f6806('0x47')]=integrations[_0x8f6806('0x1f')](_0x12f051[_0x8f6806('0x36')][_0x8f6806('0x11')],_0x12f051['body'][_0x8f6806('0x3e')]),db[_0x8f6806('0x5')]['create'](_0x12f051[_0x8f6806('0x36')],{'include':[{'model':db[_0x8f6806('0x38')],'as':'Subjects'},{'model':db[_0x8f6806('0x38')],'as':_0x8f6806('0x47')}]});return null;})[_0x3792d1('0x19')](respondWithResult(_0x1ac463,null))['catch'](handleError(_0x1ac463,null));},exports[_0x513c4d('0x23')]=function(_0x59af9e,_0x4947c6){const _0x438fcf=_0x513c4d;let _0x4c9786='',_0x57a9ca='';return db[_0x438fcf('0x2b')][_0x438fcf('0x3d')]({'where':{'id':_0x59af9e['params']['id']},'attributes':['id','username',_0x438fcf('0x9'),'apiKey']})[_0x438fcf('0x19')](handleEntityNotFound(_0x4947c6,null))[_0x438fcf('0x19')](function(_0x14f451){const _0x5f1086=_0x438fcf;if(_0x14f451){_0x57a9ca=_0x14f451[_0x5f1086('0x1e')],_0x4c9786=_0x14f451[_0x5f1086('0x9')];const _0x2348b0=_0x14f451[_0x5f1086('0x9')]['slice'](-0x1);return _0x2348b0==='/'&&(_0x4c9786=_0x4c9786['substring'](0x0,_0x4c9786[_0x5f1086('0x1a')](_0x2348b0))),rp({'method':_0x5f1086('0x3b'),'uri':util[_0x5f1086('0xc')](_0x5f1086('0x17'),_0x4c9786,_0x5f1086('0xa')),'headers':{'Authorization':'Token\x20token='+_0x14f451[_0x5f1086('0x0')]},'json':!![]});}})[_0x438fcf('0x19')](function(_0x390dc8){const _0x5e92f1=_0x438fcf;if(_0x390dc8){const _0x2b9349=_0x390dc8[_0x5e92f1('0x21')];let _0x251307=![],_0x18d3c4=null;for(_0x18d3c4=0x0;_0x18d3c4<_0x2b9349[_0x5e92f1('0x30')];_0x18d3c4++){_0x2b9349[_0x18d3c4][_0x5e92f1('0x3c')]===_0x57a9ca&&(_0x251307=!![]);}if(_0x251307)return!![];else throw new Error({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}})[_0x438fcf('0x19')](respondWithResult(_0x4947c6,null))['catch'](function(_0x559f12){const _0xf3303a=_0x438fcf;let _0x24bd4a=_0x59af9e[_0xf3303a('0x25')][_0xf3303a('0xd')]?0x1f4:_0x559f12[_0xf3303a('0x16')]||0x1f4;logger['error'](_0xf3303a('0x42'),_0xf3303a('0x23'),_0x24bd4a,JSON[_0xf3303a('0x35')](_0x559f12)),delete _0x559f12['name'],_0x24bd4a===0x191&&(_0x24bd4a=0x190),_0x4947c6[_0xf3303a('0x26')](_0x24bd4a)['send'](_0x59af9e[_0xf3303a('0x25')]['test']?{'message':_0xf3303a('0x1c'),'statusCode':_0x559f12[_0xf3303a('0x16')]}:_0x559f12);});}; \ No newline at end of file +const a268_0x4cf2=['where','limit','order','remoteUri','stack','update','name','Wrong\x20credentials','username','Token\x20token=','GET','length','rawAttributes','pick','merge','map','%s%s','attributes','create','undefined','FreshsalesField','fields','sort','filters','model','FreshsalesConfiguration','send','params','Content-Range','sequelize','type','../../config/logger','email','body','Descriptions','options','like','lodash','keys','catch','count','../../components/integrations/configuration','../../mysqldb','query','status','FreshsalesAccount','channel','show','stringify','getConfigurations','json','end','statusCode','substring','filter','error','then','findOne','nolimit','getSubjects','includeAll','lastIndexOf','findAll','Subjects','format','offset','apiKey','getFields,\x20%s,\x20%s,\x20%s','/api/selector/owners','intersection','addConfiguration'];(function(_0x4087be,_0x4cf2f4){const _0x1d3756=function(_0x6a0210){while(--_0x6a0210){_0x4087be['push'](_0x4087be['shift']());}};_0x1d3756(++_0x4cf2f4);}(a268_0x4cf2,0x16c));const a268_0x1d37=function(_0x4087be,_0x4cf2f4){_0x4087be=_0x4087be-0x0;let _0x1d3756=a268_0x4cf2[_0x4087be];return _0x1d3756;};const _0x5bf9b6=a268_0x1d37;'use strict';const rp=require('request-promise-native'),util=require('util'),_=require(_0x5bf9b6('0x1c')),qs=require('../../components/parsers/qs'),logger=require(_0x5bf9b6('0x16'))('api'),db=require(_0x5bf9b6('0x21'))['db'],{Op}=require(_0x5bf9b6('0x14')),integrations=require(_0x5bf9b6('0x20'));function respondWithResult(_0x6a0210,_0x2fe66e){return _0x2fe66e=_0x2fe66e||0xc8,function(_0x35898c){const _0x15ebc5=a268_0x1d37;if(_0x35898c)return _0x6a0210[_0x15ebc5('0x23')](_0x2fe66e)['json'](_0x35898c);};}function respondWithFilteredResult(_0x283073,_0x490aad){return function(_0x2ac70e){const _0x3a0a0d=a268_0x1d37;if(_0x2ac70e){const _0x2fe3d4=_0x2ac70e[_0x3a0a0d('0x1f')],_0x4d302a=_0x490aad[_0x3a0a0d('0x38')];let _0x137f0d=_0x490aad[_0x3a0a0d('0x38')]+_0x490aad[_0x3a0a0d('0x3f')],_0x3c8625;return _0x137f0d>=_0x2fe3d4?(_0x137f0d=_0x2fe3d4,_0x3c8625=0xc8):_0x3c8625=0xce,_0x283073[_0x3a0a0d('0x23')](_0x3c8625),_0x283073['set'](_0x3a0a0d('0x13'),_0x4d302a+'-'+_0x137f0d+'/'+_0x2fe3d4)[_0x3a0a0d('0x29')](_0x2ac70e);}return null;};}function saveUpdates(_0x31f20c){return function(_0x96f0fb){const _0x614f2e=a268_0x1d37;if(_0x96f0fb)return _0x96f0fb[_0x614f2e('0x43')](_0x31f20c)[_0x614f2e('0x2f')](function(_0x2a2667){return _0x2a2667;});return null;};}function removeEntity(_0x8a1678){return function(_0x9f8776){const _0x1b94b7=a268_0x1d37;if(_0x9f8776)return _0x9f8776['destroy']()[_0x1b94b7('0x2f')](function(){const _0x4cbe36=_0x1b94b7;_0x8a1678[_0x4cbe36('0x23')](0xcc)[_0x4cbe36('0x2a')]();});};}function handleEntityNotFound(_0x12ca2f){return function(_0x579d67){return!_0x579d67&&_0x12ca2f['sendStatus'](0x194),_0x579d67;};}function handleError(_0x15b2f5,_0x137112){return _0x137112=_0x137112||0x1f4,function(_0x43cd5c){const _0x580575=a268_0x1d37;logger[_0x580575('0x2e')](_0x43cd5c[_0x580575('0x42')]),_0x43cd5c[_0x580575('0x44')]&&delete _0x43cd5c[_0x580575('0x44')],_0x15b2f5['status'](_0x137112)['send'](_0x43cd5c);};}exports['index']=function(_0x4e09bb,_0x115119){const _0x3b5f4d=_0x5bf9b6;let _0x213b48={};const _0x2b1157={},_0x3d4aba={'count':0x0,'rows':[]},_0x3d27b3=_[_0x3b5f4d('0x6')](db[_0x3b5f4d('0x24')][_0x3b5f4d('0x3')],function(_0x33b4ca){const _0x20ef9c=_0x3b5f4d;return{'name':_0x33b4ca['fieldName'],'type':_0x33b4ca[_0x20ef9c('0x15')]['key']};});_0x2b1157[_0x3b5f4d('0xf')]=_[_0x3b5f4d('0x6')](_0x3d27b3,_0x3b5f4d('0x44')),_0x2b1157[_0x3b5f4d('0x22')]=_[_0x3b5f4d('0x1d')](_0x4e09bb[_0x3b5f4d('0x22')]),_0x2b1157[_0x3b5f4d('0xe')]=_[_0x3b5f4d('0x3c')](_0x2b1157[_0x3b5f4d('0xf')],_0x2b1157['query']),_0x213b48[_0x3b5f4d('0x8')]=_['intersection'](_0x2b1157['model'],qs['fields'](_0x4e09bb[_0x3b5f4d('0x22')][_0x3b5f4d('0xc')])),_0x213b48[_0x3b5f4d('0x8')]=_0x213b48[_0x3b5f4d('0x8')]['length']?_0x213b48['attributes']:_0x2b1157['model'];typeof _0x4e09bb['query'][_0x3b5f4d('0x31')]==='undefined'&&(_0x213b48[_0x3b5f4d('0x3f')]=qs[_0x3b5f4d('0x3f')](_0x4e09bb[_0x3b5f4d('0x22')][_0x3b5f4d('0x3f')]),_0x213b48['offset']=qs[_0x3b5f4d('0x38')](_0x4e09bb[_0x3b5f4d('0x22')][_0x3b5f4d('0x38')]));_0x213b48[_0x3b5f4d('0x40')]=qs[_0x3b5f4d('0xd')](_0x4e09bb[_0x3b5f4d('0x22')]['sort']),_0x213b48[_0x3b5f4d('0x3e')]=qs[_0x3b5f4d('0xe')](_[_0x3b5f4d('0x4')](_0x4e09bb[_0x3b5f4d('0x22')],_0x2b1157[_0x3b5f4d('0xe')]),_0x3d27b3);_0x4e09bb['query'][_0x3b5f4d('0x2d')]&&(_0x213b48[_0x3b5f4d('0x3e')]=_[_0x3b5f4d('0x5')](_0x213b48[_0x3b5f4d('0x3e')],{[Op['or']]:_['map'](_0x3d27b3,function(_0x387425){const _0x42b0e6=_0x3b5f4d;if(_0x387425[_0x42b0e6('0x15')]!=='VIRTUAL'){const _0x58ca55={};return _0x58ca55[_0x387425[_0x42b0e6('0x44')]]={[Op[_0x42b0e6('0x1b')]]:'%'+_0x4e09bb[_0x42b0e6('0x22')][_0x42b0e6('0x2d')]+'%'},_0x58ca55;}})}));_0x213b48=_['merge']({},_0x213b48,_0x4e09bb['options']);const _0x3e2257={'where':_0x213b48['where']};return db[_0x3b5f4d('0x24')][_0x3b5f4d('0x1f')](_0x3e2257)['then'](function(_0x4c672f){const _0x39f092=_0x3b5f4d;return _0x3d4aba['count']=_0x4c672f,_0x4e09bb['query'][_0x39f092('0x33')]&&(_0x213b48['include']=[{'all':!![]}]),db[_0x39f092('0x24')][_0x39f092('0x35')](_0x213b48);})[_0x3b5f4d('0x2f')](function(_0x291973){return _0x3d4aba['rows']=_0x291973,_0x3d4aba;})[_0x3b5f4d('0x2f')](respondWithFilteredResult(_0x115119,_0x213b48))['catch'](handleError(_0x115119,null));},exports[_0x5bf9b6('0x26')]=function(_0x651946,_0x699bca){const _0x2b1384=_0x5bf9b6;let _0x3070f0={'raw':![],'where':{'id':_0x651946[_0x2b1384('0x12')]['id']}};const _0x397809={};return _0x397809[_0x2b1384('0xf')]=_[_0x2b1384('0x1d')](db['FreshsalesAccount'][_0x2b1384('0x3')]),_0x397809[_0x2b1384('0x22')]=_[_0x2b1384('0x1d')](_0x651946[_0x2b1384('0x22')]),_0x397809[_0x2b1384('0xe')]=_[_0x2b1384('0x3c')](_0x397809[_0x2b1384('0xf')],_0x397809['query']),_0x3070f0[_0x2b1384('0x8')]=_[_0x2b1384('0x3c')](_0x397809[_0x2b1384('0xf')],qs[_0x2b1384('0xc')](_0x651946[_0x2b1384('0x22')]['fields'])),_0x3070f0[_0x2b1384('0x8')]=_0x3070f0[_0x2b1384('0x8')]['length']?_0x3070f0['attributes']:_0x397809[_0x2b1384('0xf')],_0x651946[_0x2b1384('0x22')][_0x2b1384('0x33')]&&(_0x3070f0['include']=[{'all':!![]}]),_0x3070f0=_[_0x2b1384('0x5')]({},_0x3070f0,_0x651946[_0x2b1384('0x1a')]),db[_0x2b1384('0x24')][_0x2b1384('0x30')](_0x3070f0)[_0x2b1384('0x2f')](handleEntityNotFound(_0x699bca,null))[_0x2b1384('0x2f')](respondWithResult(_0x699bca,null))['catch'](handleError(_0x699bca,null));},exports[_0x5bf9b6('0x9')]=function(_0x355486,_0x5eec24){const _0x13a2ac=_0x5bf9b6;return db[_0x13a2ac('0x24')][_0x13a2ac('0x9')](_0x355486[_0x13a2ac('0x18')],{})['then'](respondWithResult(_0x5eec24,0xc9))['catch'](handleError(_0x5eec24,null));},exports[_0x5bf9b6('0x43')]=function(_0x3c8c99,_0x54194a){const _0x4a5214=_0x5bf9b6;return _0x3c8c99[_0x4a5214('0x18')]['id']&&delete _0x3c8c99[_0x4a5214('0x18')]['id'],db[_0x4a5214('0x24')][_0x4a5214('0x30')]({'where':{'id':_0x3c8c99[_0x4a5214('0x12')]['id']}})[_0x4a5214('0x2f')](handleEntityNotFound(_0x54194a,null))[_0x4a5214('0x2f')](saveUpdates(_0x3c8c99[_0x4a5214('0x18')],null))[_0x4a5214('0x2f')](respondWithResult(_0x54194a,null))[_0x4a5214('0x1e')](handleError(_0x54194a,null));},exports['destroy']=function(_0x5eaae0,_0x286f0a){const _0x1aeff4=_0x5bf9b6;return db['FreshsalesAccount'][_0x1aeff4('0x30')]({'where':{'id':_0x5eaae0[_0x1aeff4('0x12')]['id']}})[_0x1aeff4('0x2f')](handleEntityNotFound(_0x286f0a,null))['then'](removeEntity(_0x286f0a,null))[_0x1aeff4('0x1e')](handleError(_0x286f0a,null));},exports[_0x5bf9b6('0x28')]=function(_0x2ffc1e,_0x15ba17){const _0xbd2296=_0x5bf9b6;let _0x117c5c={};const _0x2f587e={};let _0x1d663f,_0x10da8f;return db[_0xbd2296('0x24')][_0xbd2296('0x30')]({'where':{'id':_0x2ffc1e[_0xbd2296('0x12')]['id']}})[_0xbd2296('0x2f')](handleEntityNotFound(_0x15ba17,null))[_0xbd2296('0x2f')](function(_0x202581){const _0x16b20e=_0xbd2296;if(_0x202581)return _0x1d663f=_0x202581,_0x2f587e[_0x16b20e('0xf')]=_[_0x16b20e('0x1d')](db['FreshsalesConfiguration'][_0x16b20e('0x3')]),_0x2f587e[_0x16b20e('0x22')]=_[_0x16b20e('0x1d')](_0x2ffc1e[_0x16b20e('0x22')]),_0x2f587e[_0x16b20e('0xe')]=_[_0x16b20e('0x3c')](_0x2f587e['model'],_0x2f587e[_0x16b20e('0x22')]),_0x117c5c['attributes']=_[_0x16b20e('0x3c')](_0x2f587e[_0x16b20e('0xf')],qs[_0x16b20e('0xc')](_0x2ffc1e[_0x16b20e('0x22')]['fields'])),_0x117c5c[_0x16b20e('0x8')]=_0x117c5c[_0x16b20e('0x8')][_0x16b20e('0x2')]?_0x117c5c['attributes']:_0x2f587e['model'],_0x117c5c[_0x16b20e('0x40')]=qs[_0x16b20e('0xd')](_0x2ffc1e['query'][_0x16b20e('0xd')]),_0x117c5c[_0x16b20e('0x3e')]=qs[_0x16b20e('0xe')](_[_0x16b20e('0x4')](_0x2ffc1e[_0x16b20e('0x22')],_0x2f587e[_0x16b20e('0xe')])),_0x2ffc1e[_0x16b20e('0x22')]['filter']&&(_0x117c5c[_0x16b20e('0x3e')]=_[_0x16b20e('0x5')](_0x117c5c[_0x16b20e('0x3e')],{[Op['or']]:_[_0x16b20e('0x6')](_0x117c5c['attributes'],function(_0x4eff11){const _0x9de915=_0x16b20e,_0x33b913={};return _0x33b913[_0x4eff11]={[Op[_0x9de915('0x1b')]]:'%'+_0x2ffc1e[_0x9de915('0x22')][_0x9de915('0x2d')]+'%'},_0x33b913;})})),_0x117c5c=_[_0x16b20e('0x5')]({},_0x117c5c,_0x2ffc1e[_0x16b20e('0x1a')]),_0x1d663f[_0x16b20e('0x28')](_0x117c5c);})[_0xbd2296('0x2f')](function(_0x5717fa){const _0x5e2da0=_0xbd2296;if(_0x5717fa)return _0x10da8f=_0x5717fa[_0x5e2da0('0x2')],typeof _0x2ffc1e[_0x5e2da0('0x22')][_0x5e2da0('0x31')]===_0x5e2da0('0xa')&&(_0x117c5c['limit']=qs[_0x5e2da0('0x3f')](_0x2ffc1e[_0x5e2da0('0x22')][_0x5e2da0('0x3f')]),_0x117c5c[_0x5e2da0('0x38')]=qs[_0x5e2da0('0x38')](_0x2ffc1e[_0x5e2da0('0x22')][_0x5e2da0('0x38')])),_0x1d663f[_0x5e2da0('0x28')](_0x117c5c);})[_0xbd2296('0x2f')](function(_0xf529bf){if(_0xf529bf)return _0xf529bf?{'count':_0x10da8f,'rows':_0xf529bf}:null;})[_0xbd2296('0x2f')](respondWithResult(_0x15ba17,null))[_0xbd2296('0x1e')](handleError(_0x15ba17,null));},exports[_0x5bf9b6('0x3d')]=function(_0x8e8d17,_0x4d3902){const _0x4a185e=_0x5bf9b6;return _0x8e8d17['body']['id']&&delete _0x8e8d17[_0x4a185e('0x18')]['id'],db[_0x4a185e('0x24')][_0x4a185e('0x30')]({'where':{'id':_0x8e8d17[_0x4a185e('0x12')]['id']}})['then'](handleEntityNotFound(_0x4d3902,null))[_0x4a185e('0x2f')](function(_0x575a65){const _0xb9dce=_0x4a185e;if(_0x575a65)return _0x8e8d17[_0xb9dce('0x18')]['AccountId']=_0x575a65['id'],_0x8e8d17['body'][_0xb9dce('0x36')]=integrations[_0xb9dce('0x32')](_0x8e8d17[_0xb9dce('0x18')][_0xb9dce('0x25')],_0x8e8d17['body'][_0xb9dce('0x15')]),_0x8e8d17[_0xb9dce('0x18')][_0xb9dce('0x19')]=integrations['getDescriptions'](_0x8e8d17['body'][_0xb9dce('0x25')],_0x8e8d17['body'][_0xb9dce('0x15')]),db[_0xb9dce('0x10')][_0xb9dce('0x9')](_0x8e8d17[_0xb9dce('0x18')],{'include':[{'model':db[_0xb9dce('0xb')],'as':_0xb9dce('0x36')},{'model':db[_0xb9dce('0xb')],'as':_0xb9dce('0x19')}]});return null;})[_0x4a185e('0x2f')](respondWithResult(_0x4d3902,null))[_0x4a185e('0x1e')](handleError(_0x4d3902,null));},exports['getFields']=function(_0x17a599,_0x5f1004){const _0x35015b=_0x5bf9b6;let _0x52de14='',_0x101d26='';return db[_0x35015b('0x24')][_0x35015b('0x30')]({'where':{'id':_0x17a599[_0x35015b('0x12')]['id']},'attributes':['id',_0x35015b('0x46'),_0x35015b('0x41'),_0x35015b('0x39')]})[_0x35015b('0x2f')](handleEntityNotFound(_0x5f1004,null))[_0x35015b('0x2f')](function(_0x302248){const _0x3eb054=_0x35015b;if(_0x302248){_0x101d26=_0x302248[_0x3eb054('0x46')],_0x52de14=_0x302248[_0x3eb054('0x41')];const _0x2a7650=_0x302248['remoteUri']['slice'](-0x1);return _0x2a7650==='/'&&(_0x52de14=_0x52de14[_0x3eb054('0x2c')](0x0,_0x52de14[_0x3eb054('0x34')](_0x2a7650))),rp({'method':_0x3eb054('0x1'),'uri':util[_0x3eb054('0x37')](_0x3eb054('0x7'),_0x52de14,_0x3eb054('0x3b')),'headers':{'Authorization':_0x3eb054('0x0')+_0x302248[_0x3eb054('0x39')]},'json':!![]});}})[_0x35015b('0x2f')](function(_0x54bf57){const _0x403580=_0x35015b;if(_0x54bf57){const _0x158ba9=_0x54bf57['users'];let _0x374fb9=![],_0x3d4f06=null;for(_0x3d4f06=0x0;_0x3d4f06<_0x158ba9[_0x403580('0x2')];_0x3d4f06++){_0x158ba9[_0x3d4f06][_0x403580('0x17')]===_0x101d26&&(_0x374fb9=!![]);}if(_0x374fb9)return!![];else throw new Error({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}})[_0x35015b('0x2f')](respondWithResult(_0x5f1004,null))['catch'](function(_0x126251){const _0x28761c=_0x35015b;let _0x13f11e=_0x17a599['query']['test']?0x1f4:_0x126251[_0x28761c('0x2b')]||0x1f4;logger['error'](_0x28761c('0x3a'),'getFields',_0x13f11e,JSON[_0x28761c('0x27')](_0x126251)),delete _0x126251[_0x28761c('0x44')],_0x13f11e===0x191&&(_0x13f11e=0x190),_0x5f1004[_0x28761c('0x23')](_0x13f11e)[_0x28761c('0x11')](_0x17a599[_0x28761c('0x22')]['test']?{'message':_0x28761c('0x45'),'statusCode':_0x126251[_0x28761c('0x2b')]}:_0x126251);});}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js index 364280d..66e5545 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js @@ -1 +1 @@ -const a269_0x5b25=['define','exports','FreshsalesAccount','int_freshsales_accounts'];(function(_0x2c5053,_0x5b2557){const _0x5ee710=function(_0x521b2f){while(--_0x521b2f){_0x2c5053['push'](_0x2c5053['shift']());}};_0x5ee710(++_0x5b2557);}(a269_0x5b25,0x7e));const a269_0x5ee7=function(_0x2c5053,_0x5b2557){_0x2c5053=_0x2c5053-0x0;let _0x5ee710=a269_0x5b25[_0x2c5053];return _0x5ee710;};const _0x2c642d=a269_0x5ee7;'use strict';const attributes=require('./intFreshsalesAccount.attributes');module[_0x2c642d('0x3')]=function(_0x521b2f){const _0xad4e04=_0x2c642d,_0x53b9b7=_0x521b2f[_0xad4e04('0x2')](_0xad4e04('0x0'),attributes,{'tableName':_0xad4e04('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x53b9b7;}; \ No newline at end of file +const a269_0x4b90=['FreshsalesAccount','define','./intFreshsalesAccount.attributes'];(function(_0x56bc01,_0x4b905e){const _0x1e359b=function(_0x36584c){while(--_0x36584c){_0x56bc01['push'](_0x56bc01['shift']());}};_0x1e359b(++_0x4b905e);}(a269_0x4b90,0x130));const a269_0x1e35=function(_0x56bc01,_0x4b905e){_0x56bc01=_0x56bc01-0x0;let _0x1e359b=a269_0x4b90[_0x56bc01];return _0x1e359b;};const _0x42b0b5=a269_0x1e35;'use strict';const attributes=require(_0x42b0b5('0x1'));module['exports']=function(_0x36584c){const _0x10fe05=_0x42b0b5,_0x3a578c=_0x36584c[_0x10fe05('0x0')](_0x10fe05('0x2'),attributes,{'tableName':'int_freshsales_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3a578c;}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js index 3cae476..6908fa9 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js @@ -1 +1 @@ -const a270_0x2bf1=['include','stringify','GetFreshsalesAccount','debug','info','catch','../../mysqldb','where','then','error','raw','model','FreshsalesAccount','options','message','ShowFreshsalesAccount','attributes','rpc','limit','../../config/logger','findOne','map'];(function(_0x4a386a,_0x2bf14c){const _0xf53a60=function(_0x183d76){while(--_0x183d76){_0x4a386a['push'](_0x4a386a['shift']());}};_0xf53a60(++_0x2bf14c);}(a270_0x2bf1,0x1e1));const a270_0xf53a=function(_0x4a386a,_0x2bf14c){_0x4a386a=_0x4a386a-0x0;let _0xf53a60=a270_0x2bf1[_0x4a386a];return _0xf53a60;};const _0x31ea4d=a270_0xf53a;'use strict';const _=require('lodash'),db=require(_0x31ea4d('0x9'))['db'],logger=require(_0x31ea4d('0x0'))(_0x31ea4d('0x14'));exports[_0x31ea4d('0x5')]=function(_0x183d76){const _0x2ffd69=this;return new Promise(function(_0x47e39f,_0x19dd91){const _0x36264d=a270_0xf53a;return db[_0x36264d('0xf')]['findAll']({'raw':_0x183d76[_0x36264d('0x10')]?_0x183d76['options']['raw']===undefined?!![]:![]:!![],'where':_0x183d76[_0x36264d('0x10')]?_0x183d76[_0x36264d('0x10')][_0x36264d('0xa')]||null:null,'attributes':_0x183d76[_0x36264d('0x10')]?_0x183d76[_0x36264d('0x10')]['attributes']||null:null,'limit':_0x183d76[_0x36264d('0x10')]?_0x183d76[_0x36264d('0x10')][_0x36264d('0x15')]||null:null,'include':_0x183d76[_0x36264d('0x10')]?_0x183d76[_0x36264d('0x10')][_0x36264d('0x3')]?_[_0x36264d('0x2')](_0x183d76[_0x36264d('0x10')][_0x36264d('0x3')],function(_0x5e47fa){const _0x35bdd3=_0x36264d;return{'model':db[_0x5e47fa[_0x35bdd3('0xe')]],'as':_0x5e47fa['as'],'attributes':_0x5e47fa[_0x35bdd3('0x13')],'include':_0x5e47fa['include']?_[_0x35bdd3('0x2')](_0x5e47fa[_0x35bdd3('0x3')],function(_0x4a5425){const _0x5f4523=_0x35bdd3;return{'model':db[_0x4a5425[_0x5f4523('0xe')]],'as':_0x4a5425['as'],'attributes':_0x4a5425['attributes'],'include':_0x4a5425[_0x5f4523('0x3')]?_[_0x5f4523('0x2')](_0x4a5425[_0x5f4523('0x3')],function(_0x20fe5a){const _0x20f1cb=_0x5f4523;return{'model':db[_0x20fe5a[_0x20f1cb('0xe')]],'as':_0x20fe5a['as'],'attributes':_0x20fe5a['attributes']};}):[]};}):[]};}):[]:[]})[_0x36264d('0xb')](function(_0x16beaf){const _0x1829dc=_0x36264d;logger['info']('GetFreshsalesAccount',_0x183d76),logger[_0x1829dc('0x6')]('GetFreshsalesAccount',_0x183d76,JSON[_0x1829dc('0x4')](_0x16beaf)),_0x47e39f(_0x16beaf);})[_0x36264d('0x8')](function(_0x58311a){const _0x19a44c=_0x36264d;logger[_0x19a44c('0xc')]('GetFreshsalesAccount',_0x58311a['message'],_0x183d76),_0x19dd91(_0x2ffd69[_0x19a44c('0xc')](0x1f4,_0x58311a[_0x19a44c('0x11')]));});});},exports[_0x31ea4d('0x12')]=function(_0x3106e4){const _0x28d8d3=this;return new Promise(function(_0x22be8e,_0x589a60){const _0x1bb279=a270_0xf53a;return db['FreshsalesAccount'][_0x1bb279('0x1')]({'raw':_0x3106e4[_0x1bb279('0x10')]?_0x3106e4[_0x1bb279('0x10')][_0x1bb279('0xd')]===undefined?!![]:![]:!![],'where':_0x3106e4[_0x1bb279('0x10')]?_0x3106e4[_0x1bb279('0x10')][_0x1bb279('0xa')]||null:null,'attributes':_0x3106e4[_0x1bb279('0x10')]?_0x3106e4[_0x1bb279('0x10')][_0x1bb279('0x13')]||null:null,'include':_0x3106e4['options']?_0x3106e4[_0x1bb279('0x10')]['include']?_[_0x1bb279('0x2')](_0x3106e4['options'][_0x1bb279('0x3')],function(_0x4c142b){const _0x392dcf=_0x1bb279;return{'model':db[_0x4c142b[_0x392dcf('0xe')]],'as':_0x4c142b['as'],'attributes':_0x4c142b['attributes'],'include':_0x4c142b[_0x392dcf('0x3')]?_[_0x392dcf('0x2')](_0x4c142b[_0x392dcf('0x3')],function(_0x5e2c73){const _0x448b61=_0x392dcf;return{'model':db[_0x5e2c73[_0x448b61('0xe')]],'as':_0x5e2c73['as'],'attributes':_0x5e2c73[_0x448b61('0x13')],'include':_0x5e2c73[_0x448b61('0x3')]?_[_0x448b61('0x2')](_0x5e2c73[_0x448b61('0x3')],function(_0x6be9be){const _0x2304f0=_0x448b61;return{'model':db[_0x6be9be[_0x2304f0('0xe')]],'as':_0x6be9be['as'],'attributes':_0x6be9be[_0x2304f0('0x13')]};}):[]};}):[]};}):[]:[]})[_0x1bb279('0xb')](function(_0x436406){const _0x2d47=_0x1bb279;logger[_0x2d47('0x7')]('ShowFreshsalesAccount',_0x3106e4),logger['debug'](_0x2d47('0x12'),_0x3106e4,JSON[_0x2d47('0x4')](_0x436406)),_0x22be8e(_0x436406);})['catch'](function(_0x551929){const _0x3ec13c=_0x1bb279;logger[_0x3ec13c('0xc')](_0x3ec13c('0x12'),_0x551929[_0x3ec13c('0x11')],_0x3106e4),_0x589a60(_0x28d8d3['error'](0x1f4,_0x551929[_0x3ec13c('0x11')]));});});}; \ No newline at end of file +const a270_0x4c82=['then','where','info','model','findOne','../../config/logger','error','map','ShowFreshsalesAccount','GetFreshsalesAccount','catch','attributes','../../mysqldb','include','rpc','raw','FreshsalesAccount','stringify','findAll','lodash','message','options'];(function(_0x22f539,_0x4c82e2){const _0x4abe17=function(_0x343f4d){while(--_0x343f4d){_0x22f539['push'](_0x22f539['shift']());}};_0x4abe17(++_0x4c82e2);}(a270_0x4c82,0xba));const a270_0x4abe=function(_0x22f539,_0x4c82e2){_0x22f539=_0x22f539-0x0;let _0x4abe17=a270_0x4c82[_0x22f539];return _0x4abe17;};const _0x326450=a270_0x4abe;'use strict';const _=require(_0x326450('0x9')),db=require(_0x326450('0x2'))['db'],logger=require(_0x326450('0x11'))(_0x326450('0x4'));exports[_0x326450('0x15')]=function(_0x343f4d){const _0x21b405=this;return new Promise(function(_0x57ff72,_0x3a857e){const _0x7cd66c=a270_0x4abe;return db[_0x7cd66c('0x6')][_0x7cd66c('0x8')]({'raw':_0x343f4d['options']?_0x343f4d[_0x7cd66c('0xb')][_0x7cd66c('0x5')]===undefined?!![]:![]:!![],'where':_0x343f4d[_0x7cd66c('0xb')]?_0x343f4d[_0x7cd66c('0xb')]['where']||null:null,'attributes':_0x343f4d[_0x7cd66c('0xb')]?_0x343f4d[_0x7cd66c('0xb')][_0x7cd66c('0x1')]||null:null,'limit':_0x343f4d[_0x7cd66c('0xb')]?_0x343f4d[_0x7cd66c('0xb')]['limit']||null:null,'include':_0x343f4d[_0x7cd66c('0xb')]?_0x343f4d['options'][_0x7cd66c('0x3')]?_[_0x7cd66c('0x13')](_0x343f4d[_0x7cd66c('0xb')]['include'],function(_0x55d36b){const _0x424b32=_0x7cd66c;return{'model':db[_0x55d36b['model']],'as':_0x55d36b['as'],'attributes':_0x55d36b['attributes'],'include':_0x55d36b['include']?_[_0x424b32('0x13')](_0x55d36b[_0x424b32('0x3')],function(_0x13a950){const _0x4e70f3=_0x424b32;return{'model':db[_0x13a950[_0x4e70f3('0xf')]],'as':_0x13a950['as'],'attributes':_0x13a950[_0x4e70f3('0x1')],'include':_0x13a950[_0x4e70f3('0x3')]?_[_0x4e70f3('0x13')](_0x13a950[_0x4e70f3('0x3')],function(_0x23a331){const _0x58b2d8=_0x4e70f3;return{'model':db[_0x23a331[_0x58b2d8('0xf')]],'as':_0x23a331['as'],'attributes':_0x23a331[_0x58b2d8('0x1')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x42571b){const _0x30f8a2=_0x7cd66c;logger['info']('GetFreshsalesAccount',_0x343f4d),logger['debug'](_0x30f8a2('0x15'),_0x343f4d,JSON[_0x30f8a2('0x7')](_0x42571b)),_0x57ff72(_0x42571b);})[_0x7cd66c('0x0')](function(_0x34ab36){const _0x19af83=_0x7cd66c;logger[_0x19af83('0x12')](_0x19af83('0x15'),_0x34ab36[_0x19af83('0xa')],_0x343f4d),_0x3a857e(_0x21b405[_0x19af83('0x12')](0x1f4,_0x34ab36[_0x19af83('0xa')]));});});},exports[_0x326450('0x14')]=function(_0x5ba9cb){const _0x39f938=this;return new Promise(function(_0x408b88,_0x2dc9b5){const _0x5be1b2=a270_0x4abe;return db[_0x5be1b2('0x6')][_0x5be1b2('0x10')]({'raw':_0x5ba9cb[_0x5be1b2('0xb')]?_0x5ba9cb[_0x5be1b2('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x5ba9cb[_0x5be1b2('0xb')]?_0x5ba9cb[_0x5be1b2('0xb')][_0x5be1b2('0xd')]||null:null,'attributes':_0x5ba9cb[_0x5be1b2('0xb')]?_0x5ba9cb[_0x5be1b2('0xb')][_0x5be1b2('0x1')]||null:null,'include':_0x5ba9cb['options']?_0x5ba9cb[_0x5be1b2('0xb')][_0x5be1b2('0x3')]?_['map'](_0x5ba9cb[_0x5be1b2('0xb')]['include'],function(_0x566844){const _0x370df5=_0x5be1b2;return{'model':db[_0x566844['model']],'as':_0x566844['as'],'attributes':_0x566844[_0x370df5('0x1')],'include':_0x566844[_0x370df5('0x3')]?_['map'](_0x566844[_0x370df5('0x3')],function(_0x51252c){const _0x2a29f7=_0x370df5;return{'model':db[_0x51252c[_0x2a29f7('0xf')]],'as':_0x51252c['as'],'attributes':_0x51252c[_0x2a29f7('0x1')],'include':_0x51252c[_0x2a29f7('0x3')]?_[_0x2a29f7('0x13')](_0x51252c['include'],function(_0x12d5e3){const _0x215308=_0x2a29f7;return{'model':db[_0x12d5e3[_0x215308('0xf')]],'as':_0x12d5e3['as'],'attributes':_0x12d5e3['attributes']};}):[]};}):[]};}):[]:[]})[_0x5be1b2('0xc')](function(_0x19ebae){const _0x425107=_0x5be1b2;logger[_0x425107('0xe')](_0x425107('0x14'),_0x5ba9cb),logger['debug'](_0x425107('0x14'),_0x5ba9cb,JSON[_0x425107('0x7')](_0x19ebae)),_0x408b88(_0x19ebae);})['catch'](function(_0x28ff14){const _0x4846fb=_0x5be1b2;logger[_0x4846fb('0x12')](_0x4846fb('0x14'),_0x28ff14[_0x4846fb('0xa')],_0x5ba9cb),_0x2dc9b5(_0x39f938[_0x4846fb('0x12')](0x1f4,_0x28ff14[_0x4846fb('0xa')]));});});}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/index.js b/server/api/intFreshsalesConfiguration/index.js index 1b1267a..6be5e20 100644 --- a/server/api/intFreshsalesConfiguration/index.js +++ b/server/api/intFreshsalesConfiguration/index.js @@ -1 +1 @@ -const a271_0x32ef=['express','get','/:id','getSubjects','destroy','update','delete','create','post','/:id/fields','isAuthenticated','getFields','./intFreshsalesConfiguration.controller','Router','put','show','/:id/descriptions','getDescriptions','../../components/auth/service'];(function(_0x245b0e,_0x32ef9e){const _0xb07eb1=function(_0x2bd968){while(--_0x2bd968){_0x245b0e['push'](_0x245b0e['shift']());}};_0xb07eb1(++_0x32ef9e);}(a271_0x32ef,0xfc));const a271_0xb07e=function(_0x245b0e,_0x32ef9e){_0x245b0e=_0x245b0e-0x0;let _0xb07eb1=a271_0x32ef[_0x245b0e];return _0xb07eb1;};const _0x33cf76=a271_0xb07e;'use strict';const express=require(_0x33cf76('0xe')),router=express[_0x33cf76('0x8')](),auth=require(_0x33cf76('0xd')),controller=require(_0x33cf76('0x7'));router[_0x33cf76('0xf')]('/',auth[_0x33cf76('0x5')](),controller['index']),router[_0x33cf76('0xf')]('/:id',auth[_0x33cf76('0x5')](),controller[_0x33cf76('0xa')]),router[_0x33cf76('0xf')]('/:id/subjects',auth[_0x33cf76('0x5')](),controller[_0x33cf76('0x11')]),router[_0x33cf76('0xf')](_0x33cf76('0xb'),auth[_0x33cf76('0x5')](),controller[_0x33cf76('0xc')]),router['get'](_0x33cf76('0x4'),auth[_0x33cf76('0x5')](),controller[_0x33cf76('0x6')]),router[_0x33cf76('0x3')]('/',auth['isAuthenticated'](),controller[_0x33cf76('0x2')]),router[_0x33cf76('0x9')](_0x33cf76('0x10'),auth[_0x33cf76('0x5')](),controller[_0x33cf76('0x0')]),router[_0x33cf76('0x1')](_0x33cf76('0x10'),auth[_0x33cf76('0x5')](),controller[_0x33cf76('0x12')]),module['exports']=router; \ No newline at end of file +const a271_0x17ca=['../../components/auth/service','/:id/descriptions','delete','getSubjects','./intFreshsalesConfiguration.controller','index','destroy','get','/:id','getFields','update','/:id/subjects','show','isAuthenticated','create','express','exports','post','getDescriptions','/:id/fields'];(function(_0x5db5e0,_0x17ca90){const _0x386ea1=function(_0x2eb226){while(--_0x2eb226){_0x5db5e0['push'](_0x5db5e0['shift']());}};_0x386ea1(++_0x17ca90);}(a271_0x17ca,0x129));const a271_0x386e=function(_0x5db5e0,_0x17ca90){_0x5db5e0=_0x5db5e0-0x0;let _0x386ea1=a271_0x17ca[_0x5db5e0];return _0x386ea1;};const _0xc2ab78=a271_0x386e;'use strict';const express=require(_0xc2ab78('0x12')),router=express['Router'](),auth=require(_0xc2ab78('0x3')),controller=require(_0xc2ab78('0x7'));router['get']('/',auth[_0xc2ab78('0x10')](),controller[_0xc2ab78('0x8')]),router['get'](_0xc2ab78('0xb'),auth[_0xc2ab78('0x10')](),controller[_0xc2ab78('0xf')]),router[_0xc2ab78('0xa')](_0xc2ab78('0xe'),auth['isAuthenticated'](),controller[_0xc2ab78('0x6')]),router[_0xc2ab78('0xa')](_0xc2ab78('0x4'),auth[_0xc2ab78('0x10')](),controller[_0xc2ab78('0x1')]),router[_0xc2ab78('0xa')](_0xc2ab78('0x2'),auth[_0xc2ab78('0x10')](),controller[_0xc2ab78('0xc')]),router[_0xc2ab78('0x0')]('/',auth[_0xc2ab78('0x10')](),controller[_0xc2ab78('0x11')]),router['put'](_0xc2ab78('0xb'),auth[_0xc2ab78('0x10')](),controller[_0xc2ab78('0xd')]),router[_0xc2ab78('0x5')](_0xc2ab78('0xb'),auth[_0xc2ab78('0x10')](),controller[_0xc2ab78('0x9')]),module[_0xc2ab78('0x13')]=router; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js index 95e4c0e..cfcea06 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js @@ -1 +1 @@ -const a272_0x3c5d=['sequelize','STRING','exports'];(function(_0x1112f2,_0x3c5d10){const _0x12c728=function(_0x2a1d81){while(--_0x2a1d81){_0x1112f2['push'](_0x1112f2['shift']());}};_0x12c728(++_0x3c5d10);}(a272_0x3c5d,0x15c));const a272_0x12c7=function(_0x1112f2,_0x3c5d10){_0x1112f2=_0x1112f2-0x0;let _0x12c728=a272_0x3c5d[_0x1112f2];return _0x12c728;};const _0x4ddc98=a272_0x12c7;'use strict';const Sequelize=require(_0x4ddc98('0x0'));module[_0x4ddc98('0x2')]={'name':{'type':Sequelize[_0x4ddc98('0x1')]},'description':{'type':Sequelize[_0x4ddc98('0x1')]}}; \ No newline at end of file +const a272_0x1fe0=['exports','STRING','sequelize'];(function(_0x5ce5f5,_0x1fe0a0){const _0x242b6d=function(_0x435282){while(--_0x435282){_0x5ce5f5['push'](_0x5ce5f5['shift']());}};_0x242b6d(++_0x1fe0a0);}(a272_0x1fe0,0x1b8));const a272_0x242b=function(_0x5ce5f5,_0x1fe0a0){_0x5ce5f5=_0x5ce5f5-0x0;let _0x242b6d=a272_0x1fe0[_0x5ce5f5];return _0x242b6d;};const _0x1e69c8=a272_0x242b;'use strict';const Sequelize=require(_0x1e69c8('0x0'));module[_0x1e69c8('0x1')]={'name':{'type':Sequelize[_0x1e69c8('0x2')]},'description':{'type':Sequelize[_0x1e69c8('0x2')]}}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js index b5dc242..4abdd89 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js @@ -1 +1 @@ -const a273_0x3b51=['include','limit','where','filter','show','like','Content-Range','intersection','catch','name','FreshsalesConfiguration','stack','offset','pick','model','length','rows','sendStatus','nolimit','merge','update','options','body','attributes','getDescriptions','filters','sort','key','VIRTUAL','destroy','rawAttributes','query','create','../../config/logger','params','json','../../components/parsers/qs','includeAll','getSubjects','FreshsalesField','map','order','then','type','status','count','lodash','fields','findAll','findOne','keys','getFields','set','undefined'];(function(_0x5d561b,_0x3b5129){const _0x4d12fb=function(_0x3001b4){while(--_0x3001b4){_0x5d561b['push'](_0x5d561b['shift']());}};_0x4d12fb(++_0x3b5129);}(a273_0x3b51,0x1ea));const a273_0x4d12=function(_0x5d561b,_0x3b5129){_0x5d561b=_0x5d561b-0x0;let _0x4d12fb=a273_0x3b51[_0x5d561b];return _0x4d12fb;};const _0x1bd53d=a273_0x4d12;'use strict';const _=require(_0x1bd53d('0x2a')),qs=require(_0x1bd53d('0x20')),logger=require(_0x1bd53d('0x1d'))('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x3001b4,_0x27cb78){return _0x27cb78=_0x27cb78||0xc8,function(_0x148a80){const _0x245247=a273_0x4d12;if(_0x148a80)return _0x3001b4[_0x245247('0x28')](_0x27cb78)[_0x245247('0x1f')](_0x148a80);};}function respondWithFilteredResult(_0x3ea170,_0x2327c9){return function(_0x17176b){const _0x42651d=a273_0x4d12;if(_0x17176b){const _0x8ae899=_0x17176b['count'],_0x2b058f=_0x2327c9[_0x42651d('0x8')];let _0x5ec627=_0x2327c9[_0x42651d('0x8')]+_0x2327c9[_0x42651d('0x33')],_0x3ce55f;return _0x5ec627>=_0x8ae899?(_0x5ec627=_0x8ae899,_0x3ce55f=0xc8):_0x3ce55f=0xce,_0x3ea170[_0x42651d('0x28')](_0x3ce55f),_0x3ea170[_0x42651d('0x30')](_0x42651d('0x2'),_0x2b058f+'-'+_0x5ec627+'/'+_0x8ae899)[_0x42651d('0x1f')](_0x17176b);}return null;};}function saveUpdates(_0x2879a6){return function(_0x1a8ab7){const _0x2984b9=a273_0x4d12;if(_0x1a8ab7)return _0x1a8ab7['update'](_0x2879a6)[_0x2984b9('0x26')](function(_0x5652c7){return _0x5652c7;});return null;};}function removeEntity(_0x1706e9){return function(_0x23507c){const _0x60ed56=a273_0x4d12;if(_0x23507c)return _0x23507c[_0x60ed56('0x19')]()[_0x60ed56('0x26')](function(){const _0x56b2bd=_0x60ed56;_0x1706e9[_0x56b2bd('0x28')](0xcc)['end']();});};}function handleEntityNotFound(_0x1d5b79){return function(_0x15fa6f){const _0x594bd8=a273_0x4d12;return!_0x15fa6f&&_0x1d5b79[_0x594bd8('0xd')](0x194),_0x15fa6f;};}function handleError(_0x546e92,_0x48f42d){return _0x48f42d=_0x48f42d||0x1f4,function(_0x2a5263){const _0x5a9a5a=a273_0x4d12;logger['error'](_0x2a5263[_0x5a9a5a('0x7')]),_0x2a5263[_0x5a9a5a('0x5')]&&delete _0x2a5263[_0x5a9a5a('0x5')],_0x546e92[_0x5a9a5a('0x28')](_0x48f42d)['send'](_0x2a5263);};}exports['index']=function(_0x2234a5,_0x32d959){const _0x105a09=_0x1bd53d;let _0x54336c={};const _0x5a0d33={},_0x3622b1={'count':0x0,'rows':[]},_0x56606a=_[_0x105a09('0x24')](db[_0x105a09('0x6')][_0x105a09('0x1a')],function(_0x533256){const _0x31fde3=_0x105a09;return{'name':_0x533256['fieldName'],'type':_0x533256[_0x31fde3('0x27')][_0x31fde3('0x17')]};});_0x5a0d33[_0x105a09('0xa')]=_[_0x105a09('0x24')](_0x56606a,_0x105a09('0x5')),_0x5a0d33[_0x105a09('0x1b')]=_['keys'](_0x2234a5[_0x105a09('0x1b')]),_0x5a0d33[_0x105a09('0x15')]=_['intersection'](_0x5a0d33['model'],_0x5a0d33[_0x105a09('0x1b')]),_0x54336c[_0x105a09('0x13')]=_[_0x105a09('0x3')](_0x5a0d33[_0x105a09('0xa')],qs[_0x105a09('0x2b')](_0x2234a5[_0x105a09('0x1b')][_0x105a09('0x2b')])),_0x54336c[_0x105a09('0x13')]=_0x54336c[_0x105a09('0x13')][_0x105a09('0xb')]?_0x54336c[_0x105a09('0x13')]:_0x5a0d33[_0x105a09('0xa')];typeof _0x2234a5[_0x105a09('0x1b')][_0x105a09('0xe')]==='undefined'&&(_0x54336c[_0x105a09('0x33')]=qs[_0x105a09('0x33')](_0x2234a5[_0x105a09('0x1b')][_0x105a09('0x33')]),_0x54336c[_0x105a09('0x8')]=qs[_0x105a09('0x8')](_0x2234a5[_0x105a09('0x1b')][_0x105a09('0x8')]));_0x54336c['order']=qs[_0x105a09('0x16')](_0x2234a5['query'][_0x105a09('0x16')]),_0x54336c[_0x105a09('0x34')]=qs[_0x105a09('0x15')](_[_0x105a09('0x9')](_0x2234a5[_0x105a09('0x1b')],_0x5a0d33[_0x105a09('0x15')]),_0x56606a);_0x2234a5[_0x105a09('0x1b')][_0x105a09('0x35')]&&(_0x54336c[_0x105a09('0x34')]=_[_0x105a09('0xf')](_0x54336c[_0x105a09('0x34')],{[Op['or']]:_[_0x105a09('0x24')](_0x56606a,function(_0x108ae3){const _0x3fd449=_0x105a09;if(_0x108ae3[_0x3fd449('0x27')]!==_0x3fd449('0x18')){const _0xb5a22a={};return _0xb5a22a[_0x108ae3[_0x3fd449('0x5')]]={[Op[_0x3fd449('0x1')]]:'%'+_0x2234a5[_0x3fd449('0x1b')][_0x3fd449('0x35')]+'%'},_0xb5a22a;}})}));_0x54336c=_[_0x105a09('0xf')]({},_0x54336c,_0x2234a5[_0x105a09('0x11')]);const _0x33ac70={'where':_0x54336c[_0x105a09('0x34')]};return db[_0x105a09('0x6')][_0x105a09('0x29')](_0x33ac70)[_0x105a09('0x26')](function(_0x3ff3ad){const _0x221052=_0x105a09;return _0x3622b1[_0x221052('0x29')]=_0x3ff3ad,_0x2234a5['query'][_0x221052('0x21')]&&(_0x54336c[_0x221052('0x32')]=[{'all':!![]}]),db[_0x221052('0x6')][_0x221052('0x2c')](_0x54336c);})[_0x105a09('0x26')](function(_0x2d0c3c){const _0x100932=_0x105a09;return _0x3622b1[_0x100932('0xc')]=_0x2d0c3c,_0x3622b1;})[_0x105a09('0x26')](respondWithFilteredResult(_0x32d959,_0x54336c))['catch'](handleError(_0x32d959,null));},exports[_0x1bd53d('0x0')]=function(_0x23a86a,_0x42b6b7){const _0x1bc3e4=_0x1bd53d;let _0x3c3381={'raw':![],'where':{'id':_0x23a86a[_0x1bc3e4('0x1e')]['id']}};const _0x3f177d={};return _0x3f177d['model']=_[_0x1bc3e4('0x2e')](db['FreshsalesConfiguration'][_0x1bc3e4('0x1a')]),_0x3f177d[_0x1bc3e4('0x1b')]=_['keys'](_0x23a86a['query']),_0x3f177d[_0x1bc3e4('0x15')]=_[_0x1bc3e4('0x3')](_0x3f177d['model'],_0x3f177d[_0x1bc3e4('0x1b')]),_0x3c3381['attributes']=_[_0x1bc3e4('0x3')](_0x3f177d[_0x1bc3e4('0xa')],qs[_0x1bc3e4('0x2b')](_0x23a86a[_0x1bc3e4('0x1b')][_0x1bc3e4('0x2b')])),_0x3c3381[_0x1bc3e4('0x13')]=_0x3c3381[_0x1bc3e4('0x13')][_0x1bc3e4('0xb')]?_0x3c3381[_0x1bc3e4('0x13')]:_0x3f177d[_0x1bc3e4('0xa')],_0x23a86a['query']['includeAll']&&(_0x3c3381[_0x1bc3e4('0x32')]=[{'all':!![]}]),_0x3c3381=_[_0x1bc3e4('0xf')]({},_0x3c3381,_0x23a86a[_0x1bc3e4('0x11')]),db[_0x1bc3e4('0x6')][_0x1bc3e4('0x2d')](_0x3c3381)[_0x1bc3e4('0x26')](handleEntityNotFound(_0x42b6b7,null))[_0x1bc3e4('0x26')](respondWithResult(_0x42b6b7,null))['catch'](handleError(_0x42b6b7,null));},exports[_0x1bd53d('0x1c')]=function(_0x643459,_0x3d5d9a){const _0x79167d=_0x1bd53d;return db[_0x79167d('0x6')]['create'](_0x643459[_0x79167d('0x12')],{})['then'](respondWithResult(_0x3d5d9a,0xc9))[_0x79167d('0x4')](handleError(_0x3d5d9a,null));},exports[_0x1bd53d('0x10')]=function(_0xff3a84,_0x2f69e3){const _0x35b2ed=_0x1bd53d;return _0xff3a84[_0x35b2ed('0x12')]['id']&&delete _0xff3a84[_0x35b2ed('0x12')]['id'],db['FreshsalesConfiguration']['findOne']({'where':{'id':_0xff3a84[_0x35b2ed('0x1e')]['id']}})['then'](handleEntityNotFound(_0x2f69e3,null))[_0x35b2ed('0x26')](saveUpdates(_0xff3a84['body'],null))['then'](respondWithResult(_0x2f69e3,null))['catch'](handleError(_0x2f69e3,null));},exports['destroy']=function(_0x4e66c7,_0x195350){const _0x4b450f=_0x1bd53d;return db[_0x4b450f('0x6')][_0x4b450f('0x2d')]({'where':{'id':_0x4e66c7[_0x4b450f('0x1e')]['id']}})['then'](handleEntityNotFound(_0x195350,null))[_0x4b450f('0x26')](removeEntity(_0x195350,null))[_0x4b450f('0x4')](handleError(_0x195350,null));},exports['getSubjects']=function(_0x2cc072,_0x239730){const _0x141559=_0x1bd53d;let _0xb09d1d={};const _0x4efc80={};let _0x54066b,_0x1757ba;return db[_0x141559('0x6')][_0x141559('0x2d')]({'where':{'id':_0x2cc072[_0x141559('0x1e')]['id']}})[_0x141559('0x26')](handleEntityNotFound(_0x239730,null))[_0x141559('0x26')](function(_0x665ddf){const _0x3360a5=_0x141559;if(_0x665ddf)return _0x54066b=_0x665ddf,_0x4efc80[_0x3360a5('0xa')]=_[_0x3360a5('0x2e')](db[_0x3360a5('0x23')][_0x3360a5('0x1a')]),_0x4efc80['query']=_[_0x3360a5('0x2e')](_0x2cc072[_0x3360a5('0x1b')]),_0x4efc80[_0x3360a5('0x15')]=_[_0x3360a5('0x3')](_0x4efc80['model'],_0x4efc80[_0x3360a5('0x1b')]),_0xb09d1d[_0x3360a5('0x13')]=_[_0x3360a5('0x3')](_0x4efc80[_0x3360a5('0xa')],qs[_0x3360a5('0x2b')](_0x2cc072[_0x3360a5('0x1b')][_0x3360a5('0x2b')])),_0xb09d1d[_0x3360a5('0x13')]=_0xb09d1d['attributes'][_0x3360a5('0xb')]?_0xb09d1d[_0x3360a5('0x13')]:_0x4efc80[_0x3360a5('0xa')],_0xb09d1d[_0x3360a5('0x25')]=qs[_0x3360a5('0x16')](_0x2cc072['query'][_0x3360a5('0x16')]),_0xb09d1d[_0x3360a5('0x34')]=qs['filters'](_[_0x3360a5('0x9')](_0x2cc072[_0x3360a5('0x1b')],_0x4efc80[_0x3360a5('0x15')])),_0x2cc072[_0x3360a5('0x1b')][_0x3360a5('0x35')]&&(_0xb09d1d['where']=_[_0x3360a5('0xf')](_0xb09d1d[_0x3360a5('0x34')],{[Op['or']]:_[_0x3360a5('0x24')](_0xb09d1d[_0x3360a5('0x13')],function(_0x372927){const _0x4d76a0=_0x3360a5,_0x5a37ad={};return _0x5a37ad[_0x372927]={[Op[_0x4d76a0('0x1')]]:'%'+_0x2cc072['query'][_0x4d76a0('0x35')]+'%'},_0x5a37ad;})})),_0xb09d1d=_[_0x3360a5('0xf')]({},_0xb09d1d,_0x2cc072[_0x3360a5('0x11')]),_0x54066b[_0x3360a5('0x22')](_0xb09d1d);})['then'](function(_0x3af6fa){const _0x37e12a=_0x141559;if(_0x3af6fa)return _0x1757ba=_0x3af6fa['length'],typeof _0x2cc072['query'][_0x37e12a('0xe')]==='undefined'&&(_0xb09d1d['limit']=qs[_0x37e12a('0x33')](_0x2cc072[_0x37e12a('0x1b')]['limit']),_0xb09d1d[_0x37e12a('0x8')]=qs['offset'](_0x2cc072[_0x37e12a('0x1b')][_0x37e12a('0x8')])),_0x54066b[_0x37e12a('0x22')](_0xb09d1d);})[_0x141559('0x26')](function(_0x2b5f32){if(_0x2b5f32)return _0x2b5f32?{'count':_0x1757ba,'rows':_0x2b5f32}:null;})['then'](respondWithResult(_0x239730,null))[_0x141559('0x4')](handleError(_0x239730,null));},exports[_0x1bd53d('0x14')]=function(_0x4b9aa2,_0x21dbe4){const _0x42fbcb=_0x1bd53d;let _0x3d6a91={};const _0x2f3a3c={};let _0xc9f5b,_0x5dbe53;return db['FreshsalesConfiguration'][_0x42fbcb('0x2d')]({'where':{'id':_0x4b9aa2[_0x42fbcb('0x1e')]['id']}})['then'](handleEntityNotFound(_0x21dbe4,null))[_0x42fbcb('0x26')](function(_0x24aa2c){const _0xd82796=_0x42fbcb;if(_0x24aa2c)return _0xc9f5b=_0x24aa2c,_0x2f3a3c[_0xd82796('0xa')]=_[_0xd82796('0x2e')](db[_0xd82796('0x23')][_0xd82796('0x1a')]),_0x2f3a3c[_0xd82796('0x1b')]=_[_0xd82796('0x2e')](_0x4b9aa2['query']),_0x2f3a3c[_0xd82796('0x15')]=_[_0xd82796('0x3')](_0x2f3a3c[_0xd82796('0xa')],_0x2f3a3c[_0xd82796('0x1b')]),_0x3d6a91['attributes']=_[_0xd82796('0x3')](_0x2f3a3c[_0xd82796('0xa')],qs[_0xd82796('0x2b')](_0x4b9aa2['query'][_0xd82796('0x2b')])),_0x3d6a91[_0xd82796('0x13')]=_0x3d6a91[_0xd82796('0x13')][_0xd82796('0xb')]?_0x3d6a91['attributes']:_0x2f3a3c[_0xd82796('0xa')],_0x3d6a91[_0xd82796('0x25')]=qs['sort'](_0x4b9aa2[_0xd82796('0x1b')][_0xd82796('0x16')]),_0x3d6a91[_0xd82796('0x34')]=qs['filters'](_[_0xd82796('0x9')](_0x4b9aa2['query'],_0x2f3a3c[_0xd82796('0x15')])),_0x4b9aa2[_0xd82796('0x1b')][_0xd82796('0x35')]&&(_0x3d6a91[_0xd82796('0x34')]=_[_0xd82796('0xf')](_0x3d6a91[_0xd82796('0x34')],{[Op['or']]:_['map'](_0x3d6a91[_0xd82796('0x13')],function(_0x4b3e44){const _0x3416ea=_0xd82796,_0x5c3161={};return _0x5c3161[_0x4b3e44]={[Op[_0x3416ea('0x1')]]:'%'+_0x4b9aa2[_0x3416ea('0x1b')][_0x3416ea('0x35')]+'%'},_0x5c3161;})})),_0x3d6a91=_[_0xd82796('0xf')]({},_0x3d6a91,_0x4b9aa2[_0xd82796('0x11')]),_0xc9f5b['getDescriptions'](_0x3d6a91);})[_0x42fbcb('0x26')](function(_0x49d091){const _0x4d86b7=_0x42fbcb;if(_0x49d091)return _0x5dbe53=_0x49d091[_0x4d86b7('0xb')],typeof _0x4b9aa2[_0x4d86b7('0x1b')]['nolimit']===_0x4d86b7('0x31')&&(_0x3d6a91[_0x4d86b7('0x33')]=qs[_0x4d86b7('0x33')](_0x4b9aa2[_0x4d86b7('0x1b')][_0x4d86b7('0x33')]),_0x3d6a91[_0x4d86b7('0x8')]=qs[_0x4d86b7('0x8')](_0x4b9aa2['query'][_0x4d86b7('0x8')])),_0xc9f5b[_0x4d86b7('0x14')](_0x3d6a91);})[_0x42fbcb('0x26')](function(_0x1149fd){if(_0x1149fd)return _0x1149fd?{'count':_0x5dbe53,'rows':_0x1149fd}:null;})[_0x42fbcb('0x26')](respondWithResult(_0x21dbe4,null))[_0x42fbcb('0x4')](handleError(_0x21dbe4,null));},exports[_0x1bd53d('0x2f')]=function(_0x3fcdac,_0x2a93e8){const _0x5c46b6=_0x1bd53d;let _0x559744={};const _0x264fca={};let _0x41f98b,_0x1e55de;return db[_0x5c46b6('0x6')][_0x5c46b6('0x2d')]({'where':{'id':_0x3fcdac[_0x5c46b6('0x1e')]['id']}})[_0x5c46b6('0x26')](handleEntityNotFound(_0x2a93e8,null))[_0x5c46b6('0x26')](function(_0x3b4fe7){const _0x44634e=_0x5c46b6;if(_0x3b4fe7)return _0x41f98b=_0x3b4fe7,_0x264fca[_0x44634e('0xa')]=_[_0x44634e('0x2e')](db['FreshsalesField'][_0x44634e('0x1a')]),_0x264fca[_0x44634e('0x1b')]=_[_0x44634e('0x2e')](_0x3fcdac[_0x44634e('0x1b')]),_0x264fca[_0x44634e('0x15')]=_[_0x44634e('0x3')](_0x264fca[_0x44634e('0xa')],_0x264fca['query']),_0x559744[_0x44634e('0x13')]=_['intersection'](_0x264fca[_0x44634e('0xa')],qs['fields'](_0x3fcdac[_0x44634e('0x1b')][_0x44634e('0x2b')])),_0x559744['attributes']=_0x559744[_0x44634e('0x13')][_0x44634e('0xb')]?_0x559744[_0x44634e('0x13')]:_0x264fca[_0x44634e('0xa')],_0x559744[_0x44634e('0x25')]=qs['sort'](_0x3fcdac[_0x44634e('0x1b')]['sort']),_0x559744[_0x44634e('0x34')]=qs[_0x44634e('0x15')](_[_0x44634e('0x9')](_0x3fcdac[_0x44634e('0x1b')],_0x264fca['filters'])),_0x3fcdac[_0x44634e('0x1b')][_0x44634e('0x35')]&&(_0x559744[_0x44634e('0x34')]=_[_0x44634e('0xf')](_0x559744[_0x44634e('0x34')],{[Op['or']]:_[_0x44634e('0x24')](_0x559744[_0x44634e('0x13')],function(_0x35d366){const _0x35903e=_0x44634e,_0x14a32d={};return _0x14a32d[_0x35d366]={[Op[_0x35903e('0x1')]]:'%'+_0x3fcdac[_0x35903e('0x1b')][_0x35903e('0x35')]+'%'},_0x14a32d;})})),_0x559744=_['merge']({},_0x559744,_0x3fcdac[_0x44634e('0x11')]),_0x41f98b[_0x44634e('0x2f')](_0x559744);})[_0x5c46b6('0x26')](function(_0x2d4bdb){const _0x4814a5=_0x5c46b6;if(_0x2d4bdb)return _0x1e55de=_0x2d4bdb[_0x4814a5('0xb')],typeof _0x3fcdac[_0x4814a5('0x1b')]['nolimit']===_0x4814a5('0x31')&&(_0x559744['limit']=qs[_0x4814a5('0x33')](_0x3fcdac[_0x4814a5('0x1b')][_0x4814a5('0x33')]),_0x559744[_0x4814a5('0x8')]=qs[_0x4814a5('0x8')](_0x3fcdac['query'][_0x4814a5('0x8')])),_0x41f98b[_0x4814a5('0x2f')](_0x559744);})[_0x5c46b6('0x26')](function(_0x3c511a){if(_0x3c511a)return _0x3c511a?{'count':_0x1e55de,'rows':_0x3c511a}:null;})['then'](respondWithResult(_0x2a93e8,null))['catch'](handleError(_0x2a93e8,null));}; \ No newline at end of file +const a273_0x3160=['end','FreshsalesConfiguration','where','error','show','nolimit','then','lodash','include','intersection','findOne','offset','filters','set','merge','Content-Range','undefined','update','create','limit','model','status','like','getSubjects','sort','fieldName','rawAttributes','VIRTUAL','destroy','sequelize','send','getFields','type','count','catch','api','name','options','params','body','filter','map','stack','includeAll','order','../../components/parsers/qs','length','pick','query','keys','getDescriptions','rows','attributes','../../config/logger','FreshsalesField','json','fields'];(function(_0xe10ff9,_0x316082){const _0x508183=function(_0x354761){while(--_0x354761){_0xe10ff9['push'](_0xe10ff9['shift']());}};_0x508183(++_0x316082);}(a273_0x3160,0x8e));const a273_0x5081=function(_0xe10ff9,_0x316082){_0xe10ff9=_0xe10ff9-0x0;let _0x508183=a273_0x3160[_0xe10ff9];return _0x508183;};const _0x434ab4=a273_0x5081;'use strict';const _=require(_0x434ab4('0x24')),qs=require(_0x434ab4('0x11')),logger=require(_0x434ab4('0x19'))(_0x434ab4('0x7')),db=require('../../mysqldb')['db'],{Op}=require(_0x434ab4('0x1'));function respondWithResult(_0x354761,_0x4930bb){return _0x4930bb=_0x4930bb||0xc8,function(_0x2387c1){const _0x8e87f4=a273_0x5081;if(_0x2387c1)return _0x354761[_0x8e87f4('0x32')](_0x4930bb)[_0x8e87f4('0x1b')](_0x2387c1);};}function respondWithFilteredResult(_0x50ae4c,_0x29738d){return function(_0x33da0f){const _0x4ef98b=a273_0x5081;if(_0x33da0f){const _0x391ab5=_0x33da0f[_0x4ef98b('0x5')],_0x14608f=_0x29738d[_0x4ef98b('0x28')];let _0x2cf1a4=_0x29738d[_0x4ef98b('0x28')]+_0x29738d['limit'],_0x2f8326;return _0x2cf1a4>=_0x391ab5?(_0x2cf1a4=_0x391ab5,_0x2f8326=0xc8):_0x2f8326=0xce,_0x50ae4c[_0x4ef98b('0x32')](_0x2f8326),_0x50ae4c[_0x4ef98b('0x2a')](_0x4ef98b('0x2c'),_0x14608f+'-'+_0x2cf1a4+'/'+_0x391ab5)[_0x4ef98b('0x1b')](_0x33da0f);}return null;};}function saveUpdates(_0x4cd9db){return function(_0x16a26a){const _0x4b7c16=a273_0x5081;if(_0x16a26a)return _0x16a26a['update'](_0x4cd9db)[_0x4b7c16('0x23')](function(_0x8bf4c4){return _0x8bf4c4;});return null;};}function removeEntity(_0x5300d0){return function(_0x46c140){const _0x17c726=a273_0x5081;if(_0x46c140)return _0x46c140[_0x17c726('0x0')]()['then'](function(){const _0x218292=_0x17c726;_0x5300d0['status'](0xcc)[_0x218292('0x1d')]();});};}function handleEntityNotFound(_0x5d73c5){return function(_0x22eda3){return!_0x22eda3&&_0x5d73c5['sendStatus'](0x194),_0x22eda3;};}function handleError(_0x1eeb32,_0x24b5f3){return _0x24b5f3=_0x24b5f3||0x1f4,function(_0xcc318){const _0x455822=a273_0x5081;logger[_0x455822('0x20')](_0xcc318[_0x455822('0xe')]),_0xcc318[_0x455822('0x8')]&&delete _0xcc318[_0x455822('0x8')],_0x1eeb32[_0x455822('0x32')](_0x24b5f3)[_0x455822('0x2')](_0xcc318);};}exports['index']=function(_0x1ad7f2,_0x164fc6){const _0x349a6c=_0x434ab4;let _0x2192e9={};const _0x13cc03={},_0x2b1e75={'count':0x0,'rows':[]},_0x152c4d=_[_0x349a6c('0xd')](db[_0x349a6c('0x1e')][_0x349a6c('0x37')],function(_0x256927){const _0x865f46=_0x349a6c;return{'name':_0x256927[_0x865f46('0x36')],'type':_0x256927[_0x865f46('0x4')]['key']};});_0x13cc03[_0x349a6c('0x31')]=_[_0x349a6c('0xd')](_0x152c4d,_0x349a6c('0x8')),_0x13cc03[_0x349a6c('0x14')]=_[_0x349a6c('0x15')](_0x1ad7f2[_0x349a6c('0x14')]),_0x13cc03[_0x349a6c('0x29')]=_[_0x349a6c('0x26')](_0x13cc03[_0x349a6c('0x31')],_0x13cc03[_0x349a6c('0x14')]),_0x2192e9['attributes']=_[_0x349a6c('0x26')](_0x13cc03[_0x349a6c('0x31')],qs[_0x349a6c('0x1c')](_0x1ad7f2[_0x349a6c('0x14')][_0x349a6c('0x1c')])),_0x2192e9[_0x349a6c('0x18')]=_0x2192e9[_0x349a6c('0x18')][_0x349a6c('0x12')]?_0x2192e9[_0x349a6c('0x18')]:_0x13cc03[_0x349a6c('0x31')];typeof _0x1ad7f2['query'][_0x349a6c('0x22')]==='undefined'&&(_0x2192e9[_0x349a6c('0x30')]=qs[_0x349a6c('0x30')](_0x1ad7f2[_0x349a6c('0x14')][_0x349a6c('0x30')]),_0x2192e9[_0x349a6c('0x28')]=qs['offset'](_0x1ad7f2[_0x349a6c('0x14')][_0x349a6c('0x28')]));_0x2192e9[_0x349a6c('0x10')]=qs[_0x349a6c('0x35')](_0x1ad7f2[_0x349a6c('0x14')][_0x349a6c('0x35')]),_0x2192e9['where']=qs['filters'](_[_0x349a6c('0x13')](_0x1ad7f2[_0x349a6c('0x14')],_0x13cc03[_0x349a6c('0x29')]),_0x152c4d);_0x1ad7f2[_0x349a6c('0x14')]['filter']&&(_0x2192e9[_0x349a6c('0x1f')]=_[_0x349a6c('0x2b')](_0x2192e9[_0x349a6c('0x1f')],{[Op['or']]:_[_0x349a6c('0xd')](_0x152c4d,function(_0x6e09e8){const _0x319656=_0x349a6c;if(_0x6e09e8[_0x319656('0x4')]!==_0x319656('0x38')){const _0x4c2cb9={};return _0x4c2cb9[_0x6e09e8['name']]={[Op[_0x319656('0x33')]]:'%'+_0x1ad7f2[_0x319656('0x14')][_0x319656('0xc')]+'%'},_0x4c2cb9;}})}));_0x2192e9=_[_0x349a6c('0x2b')]({},_0x2192e9,_0x1ad7f2[_0x349a6c('0x9')]);const _0x1d90a0={'where':_0x2192e9[_0x349a6c('0x1f')]};return db['FreshsalesConfiguration'][_0x349a6c('0x5')](_0x1d90a0)[_0x349a6c('0x23')](function(_0x3f17e2){const _0x453383=_0x349a6c;return _0x2b1e75[_0x453383('0x5')]=_0x3f17e2,_0x1ad7f2['query'][_0x453383('0xf')]&&(_0x2192e9[_0x453383('0x25')]=[{'all':!![]}]),db['FreshsalesConfiguration']['findAll'](_0x2192e9);})['then'](function(_0x3a697d){const _0x479c3a=_0x349a6c;return _0x2b1e75[_0x479c3a('0x17')]=_0x3a697d,_0x2b1e75;})[_0x349a6c('0x23')](respondWithFilteredResult(_0x164fc6,_0x2192e9))['catch'](handleError(_0x164fc6,null));},exports[_0x434ab4('0x21')]=function(_0x17c617,_0x4adc07){const _0x26ac6d=_0x434ab4;let _0xd7c106={'raw':![],'where':{'id':_0x17c617[_0x26ac6d('0xa')]['id']}};const _0x44864e={};return _0x44864e[_0x26ac6d('0x31')]=_[_0x26ac6d('0x15')](db[_0x26ac6d('0x1e')]['rawAttributes']),_0x44864e[_0x26ac6d('0x14')]=_[_0x26ac6d('0x15')](_0x17c617['query']),_0x44864e[_0x26ac6d('0x29')]=_[_0x26ac6d('0x26')](_0x44864e[_0x26ac6d('0x31')],_0x44864e[_0x26ac6d('0x14')]),_0xd7c106['attributes']=_[_0x26ac6d('0x26')](_0x44864e[_0x26ac6d('0x31')],qs[_0x26ac6d('0x1c')](_0x17c617[_0x26ac6d('0x14')]['fields'])),_0xd7c106[_0x26ac6d('0x18')]=_0xd7c106['attributes'][_0x26ac6d('0x12')]?_0xd7c106[_0x26ac6d('0x18')]:_0x44864e['model'],_0x17c617[_0x26ac6d('0x14')]['includeAll']&&(_0xd7c106[_0x26ac6d('0x25')]=[{'all':!![]}]),_0xd7c106=_[_0x26ac6d('0x2b')]({},_0xd7c106,_0x17c617[_0x26ac6d('0x9')]),db['FreshsalesConfiguration'][_0x26ac6d('0x27')](_0xd7c106)[_0x26ac6d('0x23')](handleEntityNotFound(_0x4adc07,null))[_0x26ac6d('0x23')](respondWithResult(_0x4adc07,null))[_0x26ac6d('0x6')](handleError(_0x4adc07,null));},exports[_0x434ab4('0x2f')]=function(_0x2d178d,_0x5978a7){const _0x2a19a8=_0x434ab4;return db[_0x2a19a8('0x1e')]['create'](_0x2d178d[_0x2a19a8('0xb')],{})[_0x2a19a8('0x23')](respondWithResult(_0x5978a7,0xc9))[_0x2a19a8('0x6')](handleError(_0x5978a7,null));},exports[_0x434ab4('0x2e')]=function(_0xf6d730,_0x2e5100){const _0x1f0a99=_0x434ab4;return _0xf6d730[_0x1f0a99('0xb')]['id']&&delete _0xf6d730['body']['id'],db[_0x1f0a99('0x1e')][_0x1f0a99('0x27')]({'where':{'id':_0xf6d730[_0x1f0a99('0xa')]['id']}})[_0x1f0a99('0x23')](handleEntityNotFound(_0x2e5100,null))[_0x1f0a99('0x23')](saveUpdates(_0xf6d730[_0x1f0a99('0xb')],null))[_0x1f0a99('0x23')](respondWithResult(_0x2e5100,null))['catch'](handleError(_0x2e5100,null));},exports['destroy']=function(_0x5b50e9,_0x5b8d58){const _0x310b18=_0x434ab4;return db['FreshsalesConfiguration'][_0x310b18('0x27')]({'where':{'id':_0x5b50e9[_0x310b18('0xa')]['id']}})[_0x310b18('0x23')](handleEntityNotFound(_0x5b8d58,null))[_0x310b18('0x23')](removeEntity(_0x5b8d58,null))['catch'](handleError(_0x5b8d58,null));},exports[_0x434ab4('0x34')]=function(_0x2d2a94,_0x21e8ff){const _0x4e6259=_0x434ab4;let _0x4d5ad6={};const _0x3c0a46={};let _0x4e2e71,_0x29dd3f;return db[_0x4e6259('0x1e')][_0x4e6259('0x27')]({'where':{'id':_0x2d2a94[_0x4e6259('0xa')]['id']}})[_0x4e6259('0x23')](handleEntityNotFound(_0x21e8ff,null))[_0x4e6259('0x23')](function(_0x228258){const _0xafa321=_0x4e6259;if(_0x228258)return _0x4e2e71=_0x228258,_0x3c0a46['model']=_[_0xafa321('0x15')](db[_0xafa321('0x1a')]['rawAttributes']),_0x3c0a46[_0xafa321('0x14')]=_[_0xafa321('0x15')](_0x2d2a94[_0xafa321('0x14')]),_0x3c0a46[_0xafa321('0x29')]=_['intersection'](_0x3c0a46[_0xafa321('0x31')],_0x3c0a46[_0xafa321('0x14')]),_0x4d5ad6['attributes']=_[_0xafa321('0x26')](_0x3c0a46[_0xafa321('0x31')],qs[_0xafa321('0x1c')](_0x2d2a94[_0xafa321('0x14')][_0xafa321('0x1c')])),_0x4d5ad6[_0xafa321('0x18')]=_0x4d5ad6[_0xafa321('0x18')]['length']?_0x4d5ad6['attributes']:_0x3c0a46[_0xafa321('0x31')],_0x4d5ad6[_0xafa321('0x10')]=qs[_0xafa321('0x35')](_0x2d2a94[_0xafa321('0x14')]['sort']),_0x4d5ad6[_0xafa321('0x1f')]=qs['filters'](_[_0xafa321('0x13')](_0x2d2a94['query'],_0x3c0a46[_0xafa321('0x29')])),_0x2d2a94['query'][_0xafa321('0xc')]&&(_0x4d5ad6[_0xafa321('0x1f')]=_[_0xafa321('0x2b')](_0x4d5ad6['where'],{[Op['or']]:_['map'](_0x4d5ad6[_0xafa321('0x18')],function(_0x90bf3){const _0x51778b=_0xafa321,_0x4f200a={};return _0x4f200a[_0x90bf3]={[Op[_0x51778b('0x33')]]:'%'+_0x2d2a94[_0x51778b('0x14')][_0x51778b('0xc')]+'%'},_0x4f200a;})})),_0x4d5ad6=_[_0xafa321('0x2b')]({},_0x4d5ad6,_0x2d2a94[_0xafa321('0x9')]),_0x4e2e71[_0xafa321('0x34')](_0x4d5ad6);})['then'](function(_0x1eaefd){const _0x156b12=_0x4e6259;if(_0x1eaefd)return _0x29dd3f=_0x1eaefd[_0x156b12('0x12')],typeof _0x2d2a94[_0x156b12('0x14')][_0x156b12('0x22')]===_0x156b12('0x2d')&&(_0x4d5ad6[_0x156b12('0x30')]=qs[_0x156b12('0x30')](_0x2d2a94[_0x156b12('0x14')][_0x156b12('0x30')]),_0x4d5ad6[_0x156b12('0x28')]=qs[_0x156b12('0x28')](_0x2d2a94[_0x156b12('0x14')]['offset'])),_0x4e2e71[_0x156b12('0x34')](_0x4d5ad6);})['then'](function(_0x14d620){if(_0x14d620)return _0x14d620?{'count':_0x29dd3f,'rows':_0x14d620}:null;})[_0x4e6259('0x23')](respondWithResult(_0x21e8ff,null))[_0x4e6259('0x6')](handleError(_0x21e8ff,null));},exports[_0x434ab4('0x16')]=function(_0x1710a9,_0x461583){const _0x14e53a=_0x434ab4;let _0x9c14c4={};const _0x304acd={};let _0x53e2d3,_0x3ecdc9;return db[_0x14e53a('0x1e')][_0x14e53a('0x27')]({'where':{'id':_0x1710a9[_0x14e53a('0xa')]['id']}})[_0x14e53a('0x23')](handleEntityNotFound(_0x461583,null))[_0x14e53a('0x23')](function(_0x5dfb27){const _0x4e7980=_0x14e53a;if(_0x5dfb27)return _0x53e2d3=_0x5dfb27,_0x304acd['model']=_[_0x4e7980('0x15')](db['FreshsalesField'][_0x4e7980('0x37')]),_0x304acd[_0x4e7980('0x14')]=_[_0x4e7980('0x15')](_0x1710a9['query']),_0x304acd[_0x4e7980('0x29')]=_['intersection'](_0x304acd['model'],_0x304acd[_0x4e7980('0x14')]),_0x9c14c4[_0x4e7980('0x18')]=_['intersection'](_0x304acd[_0x4e7980('0x31')],qs[_0x4e7980('0x1c')](_0x1710a9['query']['fields'])),_0x9c14c4[_0x4e7980('0x18')]=_0x9c14c4['attributes'][_0x4e7980('0x12')]?_0x9c14c4[_0x4e7980('0x18')]:_0x304acd[_0x4e7980('0x31')],_0x9c14c4[_0x4e7980('0x10')]=qs[_0x4e7980('0x35')](_0x1710a9[_0x4e7980('0x14')][_0x4e7980('0x35')]),_0x9c14c4[_0x4e7980('0x1f')]=qs[_0x4e7980('0x29')](_[_0x4e7980('0x13')](_0x1710a9[_0x4e7980('0x14')],_0x304acd['filters'])),_0x1710a9[_0x4e7980('0x14')][_0x4e7980('0xc')]&&(_0x9c14c4[_0x4e7980('0x1f')]=_[_0x4e7980('0x2b')](_0x9c14c4[_0x4e7980('0x1f')],{[Op['or']]:_[_0x4e7980('0xd')](_0x9c14c4[_0x4e7980('0x18')],function(_0x4740c9){const _0x1f8bc5=_0x4e7980,_0x399657={};return _0x399657[_0x4740c9]={[Op[_0x1f8bc5('0x33')]]:'%'+_0x1710a9[_0x1f8bc5('0x14')][_0x1f8bc5('0xc')]+'%'},_0x399657;})})),_0x9c14c4=_['merge']({},_0x9c14c4,_0x1710a9[_0x4e7980('0x9')]),_0x53e2d3[_0x4e7980('0x16')](_0x9c14c4);})[_0x14e53a('0x23')](function(_0x74a277){const _0x3afa49=_0x14e53a;if(_0x74a277)return _0x3ecdc9=_0x74a277[_0x3afa49('0x12')],typeof _0x1710a9['query'][_0x3afa49('0x22')]===_0x3afa49('0x2d')&&(_0x9c14c4[_0x3afa49('0x30')]=qs[_0x3afa49('0x30')](_0x1710a9[_0x3afa49('0x14')]['limit']),_0x9c14c4[_0x3afa49('0x28')]=qs[_0x3afa49('0x28')](_0x1710a9[_0x3afa49('0x14')][_0x3afa49('0x28')])),_0x53e2d3[_0x3afa49('0x16')](_0x9c14c4);})[_0x14e53a('0x23')](function(_0x1fcb93){if(_0x1fcb93)return _0x1fcb93?{'count':_0x3ecdc9,'rows':_0x1fcb93}:null;})[_0x14e53a('0x23')](respondWithResult(_0x461583,null))['catch'](handleError(_0x461583,null));},exports[_0x434ab4('0x3')]=function(_0x6280ae,_0x459e4d){const _0x467e19=_0x434ab4;let _0x1dcb4f={};const _0x469c9a={};let _0x439895,_0x33efcc;return db[_0x467e19('0x1e')][_0x467e19('0x27')]({'where':{'id':_0x6280ae[_0x467e19('0xa')]['id']}})[_0x467e19('0x23')](handleEntityNotFound(_0x459e4d,null))[_0x467e19('0x23')](function(_0x4540b2){const _0x26ad60=_0x467e19;if(_0x4540b2)return _0x439895=_0x4540b2,_0x469c9a['model']=_['keys'](db['FreshsalesField']['rawAttributes']),_0x469c9a[_0x26ad60('0x14')]=_[_0x26ad60('0x15')](_0x6280ae[_0x26ad60('0x14')]),_0x469c9a[_0x26ad60('0x29')]=_[_0x26ad60('0x26')](_0x469c9a[_0x26ad60('0x31')],_0x469c9a[_0x26ad60('0x14')]),_0x1dcb4f['attributes']=_['intersection'](_0x469c9a[_0x26ad60('0x31')],qs[_0x26ad60('0x1c')](_0x6280ae[_0x26ad60('0x14')][_0x26ad60('0x1c')])),_0x1dcb4f[_0x26ad60('0x18')]=_0x1dcb4f['attributes'][_0x26ad60('0x12')]?_0x1dcb4f[_0x26ad60('0x18')]:_0x469c9a['model'],_0x1dcb4f[_0x26ad60('0x10')]=qs[_0x26ad60('0x35')](_0x6280ae['query'][_0x26ad60('0x35')]),_0x1dcb4f[_0x26ad60('0x1f')]=qs[_0x26ad60('0x29')](_['pick'](_0x6280ae[_0x26ad60('0x14')],_0x469c9a[_0x26ad60('0x29')])),_0x6280ae[_0x26ad60('0x14')][_0x26ad60('0xc')]&&(_0x1dcb4f[_0x26ad60('0x1f')]=_[_0x26ad60('0x2b')](_0x1dcb4f[_0x26ad60('0x1f')],{[Op['or']]:_[_0x26ad60('0xd')](_0x1dcb4f[_0x26ad60('0x18')],function(_0x2c2003){const _0x57fd92=_0x26ad60,_0xbc9050={};return _0xbc9050[_0x2c2003]={[Op[_0x57fd92('0x33')]]:'%'+_0x6280ae['query'][_0x57fd92('0xc')]+'%'},_0xbc9050;})})),_0x1dcb4f=_['merge']({},_0x1dcb4f,_0x6280ae[_0x26ad60('0x9')]),_0x439895['getFields'](_0x1dcb4f);})[_0x467e19('0x23')](function(_0x37f466){const _0x3312bc=_0x467e19;if(_0x37f466)return _0x33efcc=_0x37f466[_0x3312bc('0x12')],typeof _0x6280ae[_0x3312bc('0x14')][_0x3312bc('0x22')]===_0x3312bc('0x2d')&&(_0x1dcb4f['limit']=qs['limit'](_0x6280ae['query'][_0x3312bc('0x30')]),_0x1dcb4f[_0x3312bc('0x28')]=qs[_0x3312bc('0x28')](_0x6280ae[_0x3312bc('0x14')][_0x3312bc('0x28')])),_0x439895[_0x3312bc('0x3')](_0x1dcb4f);})['then'](function(_0x5116c2){if(_0x5116c2)return _0x5116c2?{'count':_0x33efcc,'rows':_0x5116c2}:null;})[_0x467e19('0x23')](respondWithResult(_0x459e4d,null))[_0x467e19('0x6')](handleError(_0x459e4d,null));}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js index 88e656b..4284d6c 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js @@ -1 +1 @@ -const a274_0x16f0=['int_freshsales_configurations','exports','FreshsalesConfiguration','define'];(function(_0xcbffcd,_0x16f069){const _0x6c9867=function(_0xd44357){while(--_0xd44357){_0xcbffcd['push'](_0xcbffcd['shift']());}};_0x6c9867(++_0x16f069);}(a274_0x16f0,0xcc));const a274_0x6c98=function(_0xcbffcd,_0x16f069){_0xcbffcd=_0xcbffcd-0x0;let _0x6c9867=a274_0x16f0[_0xcbffcd];return _0x6c9867;};const _0x1ca5f1=a274_0x6c98;'use strict';const attributes=require('./intFreshsalesConfiguration.attributes');module[_0x1ca5f1('0x1')]=function(_0xd44357){const _0x36a946=_0x1ca5f1,_0x5c4ecf=_0xd44357[_0x36a946('0x3')](_0x36a946('0x2'),attributes,{'tableName':_0x36a946('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5c4ecf;}; \ No newline at end of file +const a274_0x183e=['./intFreshsalesConfiguration.attributes','FreshsalesConfiguration','int_freshsales_configurations','exports'];(function(_0x273dd3,_0x183e04){const _0x2b446c=function(_0x3594e1){while(--_0x3594e1){_0x273dd3['push'](_0x273dd3['shift']());}};_0x2b446c(++_0x183e04);}(a274_0x183e,0x1ed));const a274_0x2b44=function(_0x273dd3,_0x183e04){_0x273dd3=_0x273dd3-0x0;let _0x2b446c=a274_0x183e[_0x273dd3];return _0x2b446c;};const _0x396c9c=a274_0x2b44;'use strict';const attributes=require(_0x396c9c('0x3'));module[_0x396c9c('0x2')]=function(_0x3594e1){const _0xeff867=_0x396c9c,_0x576cb8=_0x3594e1['define'](_0xeff867('0x0'),attributes,{'tableName':_0xeff867('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x576cb8;}; \ No newline at end of file diff --git a/server/api/intFreshsalesField/index.js b/server/api/intFreshsalesField/index.js index 1b07cee..d571474 100644 --- a/server/api/intFreshsalesField/index.js +++ b/server/api/intFreshsalesField/index.js @@ -1 +1 @@ -const a275_0x4c52=['./intFreshsalesField.controller','show','get','/:id','post','destroy','update','put','create','exports','isAuthenticated','express'];(function(_0x389b5e,_0x4c52b3){const _0x5eae01=function(_0x2b5750){while(--_0x2b5750){_0x389b5e['push'](_0x389b5e['shift']());}};_0x5eae01(++_0x4c52b3);}(a275_0x4c52,0x1f4));const a275_0x5eae=function(_0x389b5e,_0x4c52b3){_0x389b5e=_0x389b5e-0x0;let _0x5eae01=a275_0x4c52[_0x389b5e];return _0x5eae01;};const _0xdac3c8=a275_0x5eae;'use strict';const express=require(_0xdac3c8('0x3')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0xdac3c8('0x4'));router[_0xdac3c8('0x6')]('/',auth[_0xdac3c8('0x2')](),controller['index']),router['get']('/:id',auth['isAuthenticated'](),controller[_0xdac3c8('0x5')]),router[_0xdac3c8('0x8')]('/',auth[_0xdac3c8('0x2')](),controller[_0xdac3c8('0x0')]),router[_0xdac3c8('0xb')](_0xdac3c8('0x7'),auth['isAuthenticated'](),controller[_0xdac3c8('0xa')]),router['delete'](_0xdac3c8('0x7'),auth[_0xdac3c8('0x2')](),controller[_0xdac3c8('0x9')]),module[_0xdac3c8('0x1')]=router; \ No newline at end of file +const a275_0x40b4=['../../components/auth/service','post','/:id','./intFreshsalesField.controller','delete','exports','get','index','create','isAuthenticated','update','destroy'];(function(_0x1318ad,_0x40b429){const _0x1bb456=function(_0x541a8d){while(--_0x541a8d){_0x1318ad['push'](_0x1318ad['shift']());}};_0x1bb456(++_0x40b429);}(a275_0x40b4,0xa2));const a275_0x1bb4=function(_0x1318ad,_0x40b429){_0x1318ad=_0x1318ad-0x0;let _0x1bb456=a275_0x40b4[_0x1318ad];return _0x1bb456;};const _0x213c8b=a275_0x1bb4;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x213c8b('0x6')),controller=require(_0x213c8b('0x9'));router[_0x213c8b('0x0')]('/',auth[_0x213c8b('0x3')](),controller[_0x213c8b('0x1')]),router[_0x213c8b('0x0')]('/:id',auth[_0x213c8b('0x3')](),controller['show']),router[_0x213c8b('0x7')]('/',auth[_0x213c8b('0x3')](),controller[_0x213c8b('0x2')]),router['put']('/:id',auth[_0x213c8b('0x3')](),controller[_0x213c8b('0x4')]),router[_0x213c8b('0xa')](_0x213c8b('0x8'),auth[_0x213c8b('0x3')](),controller[_0x213c8b('0x5')]),module[_0x213c8b('0xb')]=router; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.attributes.js b/server/api/intFreshsalesField/intFreshsalesField.attributes.js index 8cf0d71..d547dcd 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.attributes.js +++ b/server/api/intFreshsalesField/intFreshsalesField.attributes.js @@ -1 +1 @@ -const a276_0xe6e2=['BOOLEAN','string','STRING','variable','keyValue','customVariable','ENUM','sequelize'];(function(_0x801633,_0xe6e264){const _0x7f42e4=function(_0x169b40){while(--_0x169b40){_0x801633['push'](_0x801633['shift']());}};_0x7f42e4(++_0xe6e264);}(a276_0xe6e2,0x134));const a276_0x7f42=function(_0x801633,_0xe6e264){_0x801633=_0x801633-0x0;let _0x7f42e4=a276_0xe6e2[_0x801633];return _0x7f42e4;};const _0x364292=a276_0x7f42;'use strict';const Sequelize=require(_0x364292('0x3'));module['exports']={'type':{'type':Sequelize[_0x364292('0x2')](_0x364292('0x5'),_0x364292('0x7'),_0x364292('0x1'),_0x364292('0x0')),'defaultValue':_0x364292('0x5')},'content':{'type':Sequelize[_0x364292('0x6')]},'key':{'type':Sequelize[_0x364292('0x6')]},'keyType':{'type':Sequelize[_0x364292('0x2')](_0x364292('0x5'),_0x364292('0x7'),'customVariable')},'keyContent':{'type':Sequelize[_0x364292('0x6')]},'idField':{'type':Sequelize[_0x364292('0x6')]},'nameField':{'type':Sequelize[_0x364292('0x6')]},'customField':{'type':Sequelize[_0x364292('0x4')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x364292('0x6')]}}; \ No newline at end of file +const a276_0x45dd=['exports','ENUM','sequelize','customVariable','variable','string','STRING'];(function(_0x4163c4,_0x45dd09){const _0x39783e=function(_0x60aeb5){while(--_0x60aeb5){_0x4163c4['push'](_0x4163c4['shift']());}};_0x39783e(++_0x45dd09);}(a276_0x45dd,0x1ba));const a276_0x3978=function(_0x4163c4,_0x45dd09){_0x4163c4=_0x4163c4-0x0;let _0x39783e=a276_0x45dd[_0x4163c4];return _0x39783e;};const _0x16ff28=a276_0x3978;'use strict';const Sequelize=require(_0x16ff28('0x1'));module[_0x16ff28('0x6')]={'type':{'type':Sequelize[_0x16ff28('0x0')](_0x16ff28('0x4'),_0x16ff28('0x3'),_0x16ff28('0x2'),'keyValue'),'defaultValue':'string'},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x16ff28('0x5')]},'keyType':{'type':Sequelize[_0x16ff28('0x0')](_0x16ff28('0x4'),'variable','customVariable')},'keyContent':{'type':Sequelize[_0x16ff28('0x5')]},'idField':{'type':Sequelize[_0x16ff28('0x5')]},'nameField':{'type':Sequelize[_0x16ff28('0x5')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x16ff28('0x5')]}}; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.controller.js b/server/api/intFreshsalesField/intFreshsalesField.controller.js index 38374d6..ee28a30 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.controller.js +++ b/server/api/intFreshsalesField/intFreshsalesField.controller.js @@ -1 +1 @@ -const a277_0x307f=['include','error','options','create','json','lodash','where','filter','model','status','set','intersection','end','then','offset','rawAttributes','Content-Range','send','fields','findOne','../../mysqldb','includeAll','rows','merge','limit','sendStatus','catch','sort','fieldName','query','body','attributes','findAll','show','sequelize','destroy','VIRTUAL','keys','type','key','undefined','pick','filters','FreshsalesField','stack','update','name','params','../../config/logger','count'];(function(_0x3116cc,_0x307f13){const _0x44812b=function(_0x3170f6){while(--_0x3170f6){_0x3116cc['push'](_0x3116cc['shift']());}};_0x44812b(++_0x307f13);}(a277_0x307f,0x194));const a277_0x4481=function(_0x3116cc,_0x307f13){_0x3116cc=_0x3116cc-0x0;let _0x44812b=a277_0x307f[_0x3116cc];return _0x44812b;};const _0x46de73=a277_0x4481;'use strict';const _=require(_0x46de73('0x1')),qs=require('../../components/parsers/qs'),logger=require(_0x46de73('0x2c'))('api'),db=require(_0x46de73('0x10'))['db'],{Op}=require(_0x46de73('0x1e'));function respondWithResult(_0x3170f6,_0x52fdfe){return _0x52fdfe=_0x52fdfe||0xc8,function(_0x380951){const _0x2a380b=a277_0x4481;if(_0x380951)return _0x3170f6[_0x2a380b('0x5')](_0x52fdfe)[_0x2a380b('0x0')](_0x380951);};}function respondWithFilteredResult(_0x446e9e,_0xba07af){return function(_0x121943){const _0x468ca9=a277_0x4481;if(_0x121943){const _0x4805f0=_0x121943['count'],_0x3a27ad=_0xba07af[_0x468ca9('0xa')];let _0x2dae1d=_0xba07af[_0x468ca9('0xa')]+_0xba07af['limit'],_0x20d623;return _0x2dae1d>=_0x4805f0?(_0x2dae1d=_0x4805f0,_0x20d623=0xc8):_0x20d623=0xce,_0x446e9e[_0x468ca9('0x5')](_0x20d623),_0x446e9e[_0x468ca9('0x6')](_0x468ca9('0xc'),_0x3a27ad+'-'+_0x2dae1d+'/'+_0x4805f0)[_0x468ca9('0x0')](_0x121943);}return null;};}function saveUpdates(_0x1860b2){return function(_0x164473){const _0x283272=a277_0x4481;if(_0x164473)return _0x164473[_0x283272('0x29')](_0x1860b2)[_0x283272('0x9')](function(_0x2c44ff){return _0x2c44ff;});return null;};}function removeEntity(_0x53a3a5){return function(_0x3443e5){const _0x568b0d=a277_0x4481;if(_0x3443e5)return _0x3443e5[_0x568b0d('0x1f')]()[_0x568b0d('0x9')](function(){const _0x5958fa=_0x568b0d;_0x53a3a5['status'](0xcc)[_0x5958fa('0x8')]();});};}function handleEntityNotFound(_0x5043ab){return function(_0x4ae8be){const _0xe33152=a277_0x4481;return!_0x4ae8be&&_0x5043ab[_0xe33152('0x15')](0x194),_0x4ae8be;};}function handleError(_0x29ba99,_0x3d9410){return _0x3d9410=_0x3d9410||0x1f4,function(_0x12c4fe){const _0x2a736e=a277_0x4481;logger[_0x2a736e('0x2f')](_0x12c4fe[_0x2a736e('0x28')]),_0x12c4fe[_0x2a736e('0x2a')]&&delete _0x12c4fe[_0x2a736e('0x2a')],_0x29ba99['status'](_0x3d9410)[_0x2a736e('0xd')](_0x12c4fe);};}exports['index']=function(_0x2ef4df,_0x3d9a05){const _0x534660=_0x46de73;let _0x13cae7={};const _0x1f2b26={},_0x19d30b={'count':0x0,'rows':[]},_0x231d06=_['map'](db[_0x534660('0x27')]['rawAttributes'],function(_0x4899b6){const _0x1efd0b=_0x534660;return{'name':_0x4899b6[_0x1efd0b('0x18')],'type':_0x4899b6[_0x1efd0b('0x22')][_0x1efd0b('0x23')]};});_0x1f2b26[_0x534660('0x4')]=_['map'](_0x231d06,_0x534660('0x2a')),_0x1f2b26[_0x534660('0x19')]=_[_0x534660('0x21')](_0x2ef4df[_0x534660('0x19')]),_0x1f2b26[_0x534660('0x26')]=_[_0x534660('0x7')](_0x1f2b26[_0x534660('0x4')],_0x1f2b26[_0x534660('0x19')]),_0x13cae7['attributes']=_[_0x534660('0x7')](_0x1f2b26[_0x534660('0x4')],qs[_0x534660('0xe')](_0x2ef4df[_0x534660('0x19')]['fields'])),_0x13cae7[_0x534660('0x1b')]=_0x13cae7['attributes']['length']?_0x13cae7[_0x534660('0x1b')]:_0x1f2b26['model'];typeof _0x2ef4df[_0x534660('0x19')]['nolimit']===_0x534660('0x24')&&(_0x13cae7['limit']=qs[_0x534660('0x14')](_0x2ef4df[_0x534660('0x19')][_0x534660('0x14')]),_0x13cae7[_0x534660('0xa')]=qs[_0x534660('0xa')](_0x2ef4df[_0x534660('0x19')]['offset']));_0x13cae7['order']=qs[_0x534660('0x17')](_0x2ef4df[_0x534660('0x19')][_0x534660('0x17')]),_0x13cae7[_0x534660('0x2')]=qs[_0x534660('0x26')](_[_0x534660('0x25')](_0x2ef4df[_0x534660('0x19')],_0x1f2b26['filters']),_0x231d06);_0x2ef4df[_0x534660('0x19')][_0x534660('0x3')]&&(_0x13cae7[_0x534660('0x2')]=_[_0x534660('0x13')](_0x13cae7['where'],{[Op['or']]:_['map'](_0x231d06,function(_0x2545b9){const _0x385b6e=_0x534660;if(_0x2545b9[_0x385b6e('0x22')]!==_0x385b6e('0x20')){const _0x39ca02={};return _0x39ca02[_0x2545b9[_0x385b6e('0x2a')]]={[Op['like']]:'%'+_0x2ef4df[_0x385b6e('0x19')][_0x385b6e('0x3')]+'%'},_0x39ca02;}})}));_0x13cae7=_[_0x534660('0x13')]({},_0x13cae7,_0x2ef4df[_0x534660('0x30')]);const _0x589e2c={'where':_0x13cae7[_0x534660('0x2')]};return db['FreshsalesField'][_0x534660('0x2d')](_0x589e2c)['then'](function(_0x37d97a){const _0x143ae4=_0x534660;return _0x19d30b[_0x143ae4('0x2d')]=_0x37d97a,_0x2ef4df['query'][_0x143ae4('0x11')]&&(_0x13cae7[_0x143ae4('0x2e')]=[{'all':!![]}]),db['FreshsalesField'][_0x143ae4('0x1c')](_0x13cae7);})[_0x534660('0x9')](function(_0x4428ff){const _0xb8d3e6=_0x534660;return _0x19d30b[_0xb8d3e6('0x12')]=_0x4428ff,_0x19d30b;})['then'](respondWithFilteredResult(_0x3d9a05,_0x13cae7))[_0x534660('0x16')](handleError(_0x3d9a05,null));},exports[_0x46de73('0x1d')]=function(_0x44e0df,_0x111174){const _0x2a33f6=_0x46de73;let _0x15b513={'raw':!![],'where':{'id':_0x44e0df[_0x2a33f6('0x2b')]['id']}};const _0x5d02e6={};return _0x5d02e6[_0x2a33f6('0x4')]=_[_0x2a33f6('0x21')](db['FreshsalesField'][_0x2a33f6('0xb')]),_0x5d02e6[_0x2a33f6('0x19')]=_[_0x2a33f6('0x21')](_0x44e0df[_0x2a33f6('0x19')]),_0x5d02e6[_0x2a33f6('0x26')]=_[_0x2a33f6('0x7')](_0x5d02e6[_0x2a33f6('0x4')],_0x5d02e6[_0x2a33f6('0x19')]),_0x15b513['attributes']=_['intersection'](_0x5d02e6[_0x2a33f6('0x4')],qs['fields'](_0x44e0df[_0x2a33f6('0x19')]['fields'])),_0x15b513[_0x2a33f6('0x1b')]=_0x15b513[_0x2a33f6('0x1b')]['length']?_0x15b513[_0x2a33f6('0x1b')]:_0x5d02e6['model'],_0x44e0df['query'][_0x2a33f6('0x11')]&&(_0x15b513['include']=[{'all':!![]}]),_0x15b513=_[_0x2a33f6('0x13')]({},_0x15b513,_0x44e0df[_0x2a33f6('0x30')]),db[_0x2a33f6('0x27')][_0x2a33f6('0xf')](_0x15b513)[_0x2a33f6('0x9')](handleEntityNotFound(_0x111174,null))['then'](respondWithResult(_0x111174,null))[_0x2a33f6('0x16')](handleError(_0x111174,null));},exports[_0x46de73('0x31')]=function(_0x7c0988,_0x5c8e00){const _0x4a8477=_0x46de73;return db['FreshsalesField']['create'](_0x7c0988[_0x4a8477('0x1a')],{})[_0x4a8477('0x9')](respondWithResult(_0x5c8e00,0xc9))[_0x4a8477('0x16')](handleError(_0x5c8e00,null));},exports[_0x46de73('0x29')]=function(_0x5b05a9,_0x2691ce){const _0x40e386=_0x46de73;return _0x5b05a9['body']['id']&&delete _0x5b05a9[_0x40e386('0x1a')]['id'],db[_0x40e386('0x27')]['findOne']({'where':{'id':_0x5b05a9[_0x40e386('0x2b')]['id']}})['then'](handleEntityNotFound(_0x2691ce,null))[_0x40e386('0x9')](saveUpdates(_0x5b05a9[_0x40e386('0x1a')],null))['then'](respondWithResult(_0x2691ce,null))[_0x40e386('0x16')](handleError(_0x2691ce,null));},exports[_0x46de73('0x1f')]=function(_0x444ab0,_0x4d5185){const _0x1d83b2=_0x46de73;return db[_0x1d83b2('0x27')][_0x1d83b2('0xf')]({'where':{'id':_0x444ab0[_0x1d83b2('0x2b')]['id']}})[_0x1d83b2('0x9')](handleEntityNotFound(_0x4d5185,null))[_0x1d83b2('0x9')](removeEntity(_0x4d5185,null))['catch'](handleError(_0x4d5185,null));}; \ No newline at end of file +const a277_0x1c48=['rows','merge','VIRTUAL','error','type','catch','../../components/parsers/qs','lodash','api','status','index','../../mysqldb','intersection','destroy','fields','then','params','order','count','pick','../../config/logger','options','create','rawAttributes','map','include','keys','json','includeAll','length','update','like','filters','attributes','findOne','query','set','filter','undefined','FreshsalesField','where','offset','nolimit','show','fieldName','model','name','body','limit'];(function(_0x570491,_0x1c483b){const _0x3b6095=function(_0x2130ae){while(--_0x2130ae){_0x570491['push'](_0x570491['shift']());}};_0x3b6095(++_0x1c483b);}(a277_0x1c48,0x83));const a277_0x3b60=function(_0x570491,_0x1c483b){_0x570491=_0x570491-0x0;let _0x3b6095=a277_0x1c48[_0x570491];return _0x3b6095;};const _0x3b19a3=a277_0x3b60;'use strict';const _=require(_0x3b19a3('0x17')),qs=require(_0x3b19a3('0x16')),logger=require(_0x3b19a3('0x24'))(_0x3b19a3('0x18')),db=require(_0x3b19a3('0x1b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2130ae,_0x2c84d7){return _0x2c84d7=_0x2c84d7||0xc8,function(_0x2a0a9d){const _0x4debf9=a277_0x3b60;if(_0x2a0a9d)return _0x2130ae[_0x4debf9('0x19')](_0x2c84d7)['json'](_0x2a0a9d);};}function respondWithFilteredResult(_0x309f9e,_0x138211){return function(_0x19e04c){const _0x34589a=a277_0x3b60;if(_0x19e04c){const _0x5db7ec=_0x19e04c[_0x34589a('0x22')],_0x583e3c=_0x138211['offset'];let _0x18ba66=_0x138211[_0x34589a('0x8')]+_0x138211[_0x34589a('0xf')],_0x1453fb;return _0x18ba66>=_0x5db7ec?(_0x18ba66=_0x5db7ec,_0x1453fb=0xc8):_0x1453fb=0xce,_0x309f9e[_0x34589a('0x19')](_0x1453fb),_0x309f9e[_0x34589a('0x3')]('Content-Range',_0x583e3c+'-'+_0x18ba66+'/'+_0x5db7ec)[_0x34589a('0x2b')](_0x19e04c);}return null;};}function saveUpdates(_0x3fec86){return function(_0x28aa32){const _0x3053f0=a277_0x3b60;if(_0x28aa32)return _0x28aa32[_0x3053f0('0x2e')](_0x3fec86)['then'](function(_0x5eb645){return _0x5eb645;});return null;};}function removeEntity(_0x68cb40){return function(_0x1ebbb3){const _0x23b14e=a277_0x3b60;if(_0x1ebbb3)return _0x1ebbb3[_0x23b14e('0x1d')]()[_0x23b14e('0x1f')](function(){const _0x5da777=_0x23b14e;_0x68cb40[_0x5da777('0x19')](0xcc)['end']();});};}function handleEntityNotFound(_0x9052a4){return function(_0x4091d1){return!_0x4091d1&&_0x9052a4['sendStatus'](0x194),_0x4091d1;};}function handleError(_0xd2e89e,_0x1f29cc){return _0x1f29cc=_0x1f29cc||0x1f4,function(_0x399c67){const _0x445725=a277_0x3b60;logger[_0x445725('0x13')](_0x399c67['stack']),_0x399c67['name']&&delete _0x399c67[_0x445725('0xd')],_0xd2e89e[_0x445725('0x19')](_0x1f29cc)['send'](_0x399c67);};}exports[_0x3b19a3('0x1a')]=function(_0x557b13,_0x2125e1){const _0x5eb3ee=_0x3b19a3;let _0x43e6f5={};const _0x145361={},_0x507d87={'count':0x0,'rows':[]},_0x4542fb=_[_0x5eb3ee('0x28')](db['FreshsalesField'][_0x5eb3ee('0x27')],function(_0x2891c8){const _0xc13d69=_0x5eb3ee;return{'name':_0x2891c8[_0xc13d69('0xb')],'type':_0x2891c8[_0xc13d69('0x14')]['key']};});_0x145361[_0x5eb3ee('0xc')]=_[_0x5eb3ee('0x28')](_0x4542fb,_0x5eb3ee('0xd')),_0x145361[_0x5eb3ee('0x2')]=_['keys'](_0x557b13[_0x5eb3ee('0x2')]),_0x145361[_0x5eb3ee('0x30')]=_[_0x5eb3ee('0x1c')](_0x145361[_0x5eb3ee('0xc')],_0x145361[_0x5eb3ee('0x2')]),_0x43e6f5[_0x5eb3ee('0x0')]=_['intersection'](_0x145361['model'],qs[_0x5eb3ee('0x1e')](_0x557b13[_0x5eb3ee('0x2')][_0x5eb3ee('0x1e')])),_0x43e6f5[_0x5eb3ee('0x0')]=_0x43e6f5[_0x5eb3ee('0x0')][_0x5eb3ee('0x2d')]?_0x43e6f5[_0x5eb3ee('0x0')]:_0x145361[_0x5eb3ee('0xc')];typeof _0x557b13[_0x5eb3ee('0x2')][_0x5eb3ee('0x9')]===_0x5eb3ee('0x5')&&(_0x43e6f5['limit']=qs['limit'](_0x557b13[_0x5eb3ee('0x2')][_0x5eb3ee('0xf')]),_0x43e6f5[_0x5eb3ee('0x8')]=qs[_0x5eb3ee('0x8')](_0x557b13[_0x5eb3ee('0x2')][_0x5eb3ee('0x8')]));_0x43e6f5[_0x5eb3ee('0x21')]=qs['sort'](_0x557b13[_0x5eb3ee('0x2')]['sort']),_0x43e6f5[_0x5eb3ee('0x7')]=qs[_0x5eb3ee('0x30')](_[_0x5eb3ee('0x23')](_0x557b13[_0x5eb3ee('0x2')],_0x145361['filters']),_0x4542fb);_0x557b13[_0x5eb3ee('0x2')][_0x5eb3ee('0x4')]&&(_0x43e6f5[_0x5eb3ee('0x7')]=_[_0x5eb3ee('0x11')](_0x43e6f5[_0x5eb3ee('0x7')],{[Op['or']]:_[_0x5eb3ee('0x28')](_0x4542fb,function(_0x499458){const _0x540195=_0x5eb3ee;if(_0x499458[_0x540195('0x14')]!==_0x540195('0x12')){const _0x2cd702={};return _0x2cd702[_0x499458[_0x540195('0xd')]]={[Op[_0x540195('0x2f')]]:'%'+_0x557b13['query']['filter']+'%'},_0x2cd702;}})}));_0x43e6f5=_[_0x5eb3ee('0x11')]({},_0x43e6f5,_0x557b13['options']);const _0xf5f211={'where':_0x43e6f5[_0x5eb3ee('0x7')]};return db[_0x5eb3ee('0x6')][_0x5eb3ee('0x22')](_0xf5f211)[_0x5eb3ee('0x1f')](function(_0x59b9b4){const _0x5c0b78=_0x5eb3ee;return _0x507d87[_0x5c0b78('0x22')]=_0x59b9b4,_0x557b13['query']['includeAll']&&(_0x43e6f5[_0x5c0b78('0x29')]=[{'all':!![]}]),db[_0x5c0b78('0x6')]['findAll'](_0x43e6f5);})[_0x5eb3ee('0x1f')](function(_0x2b15f2){const _0x1f2851=_0x5eb3ee;return _0x507d87[_0x1f2851('0x10')]=_0x2b15f2,_0x507d87;})[_0x5eb3ee('0x1f')](respondWithFilteredResult(_0x2125e1,_0x43e6f5))[_0x5eb3ee('0x15')](handleError(_0x2125e1,null));},exports[_0x3b19a3('0xa')]=function(_0x3d26c9,_0x5e7b63){const _0x52db70=_0x3b19a3;let _0x1411bc={'raw':!![],'where':{'id':_0x3d26c9[_0x52db70('0x20')]['id']}};const _0x29b839={};return _0x29b839[_0x52db70('0xc')]=_[_0x52db70('0x2a')](db['FreshsalesField']['rawAttributes']),_0x29b839[_0x52db70('0x2')]=_[_0x52db70('0x2a')](_0x3d26c9['query']),_0x29b839['filters']=_['intersection'](_0x29b839[_0x52db70('0xc')],_0x29b839['query']),_0x1411bc[_0x52db70('0x0')]=_[_0x52db70('0x1c')](_0x29b839[_0x52db70('0xc')],qs[_0x52db70('0x1e')](_0x3d26c9[_0x52db70('0x2')][_0x52db70('0x1e')])),_0x1411bc[_0x52db70('0x0')]=_0x1411bc[_0x52db70('0x0')][_0x52db70('0x2d')]?_0x1411bc[_0x52db70('0x0')]:_0x29b839[_0x52db70('0xc')],_0x3d26c9[_0x52db70('0x2')][_0x52db70('0x2c')]&&(_0x1411bc[_0x52db70('0x29')]=[{'all':!![]}]),_0x1411bc=_[_0x52db70('0x11')]({},_0x1411bc,_0x3d26c9[_0x52db70('0x25')]),db[_0x52db70('0x6')][_0x52db70('0x1')](_0x1411bc)['then'](handleEntityNotFound(_0x5e7b63,null))[_0x52db70('0x1f')](respondWithResult(_0x5e7b63,null))[_0x52db70('0x15')](handleError(_0x5e7b63,null));},exports[_0x3b19a3('0x26')]=function(_0xdfcb39,_0x435d7a){const _0x443308=_0x3b19a3;return db[_0x443308('0x6')]['create'](_0xdfcb39[_0x443308('0xe')],{})['then'](respondWithResult(_0x435d7a,0xc9))[_0x443308('0x15')](handleError(_0x435d7a,null));},exports[_0x3b19a3('0x2e')]=function(_0x3de294,_0x449dba){const _0x52fa17=_0x3b19a3;return _0x3de294[_0x52fa17('0xe')]['id']&&delete _0x3de294[_0x52fa17('0xe')]['id'],db['FreshsalesField'][_0x52fa17('0x1')]({'where':{'id':_0x3de294[_0x52fa17('0x20')]['id']}})[_0x52fa17('0x1f')](handleEntityNotFound(_0x449dba,null))[_0x52fa17('0x1f')](saveUpdates(_0x3de294['body'],null))[_0x52fa17('0x1f')](respondWithResult(_0x449dba,null))[_0x52fa17('0x15')](handleError(_0x449dba,null));},exports[_0x3b19a3('0x1d')]=function(_0x473334,_0x219d77){const _0x257644=_0x3b19a3;return db[_0x257644('0x6')]['findOne']({'where':{'id':_0x473334[_0x257644('0x20')]['id']}})['then'](handleEntityNotFound(_0x219d77,null))[_0x257644('0x1f')](removeEntity(_0x219d77,null))[_0x257644('0x15')](handleError(_0x219d77,null));}; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.model.js b/server/api/intFreshsalesField/intFreshsalesField.model.js index 064f870..ef96d58 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.model.js +++ b/server/api/intFreshsalesField/intFreshsalesField.model.js @@ -1 +1 @@ -const a278_0x1a23=['FreshsalesField','FieldId','./intFreshsalesField.attributes','int_freshsales_fields','define','exports'];(function(_0x3a5044,_0x1a23e6){const _0x3fe6d9=function(_0x68557a){while(--_0x68557a){_0x3a5044['push'](_0x3a5044['shift']());}};_0x3fe6d9(++_0x1a23e6);}(a278_0x1a23,0x176));const a278_0x3fe6=function(_0x3a5044,_0x1a23e6){_0x3a5044=_0x3a5044-0x0;let _0x3fe6d9=a278_0x1a23[_0x3a5044];return _0x3fe6d9;};const _0xfc2e7=a278_0x3fe6;'use strict';const attributes=require(_0xfc2e7('0x0'));module[_0xfc2e7('0x3')]=function(_0x68557a){const _0x1a9df=_0xfc2e7,_0x2ba027=_0x68557a[_0x1a9df('0x2')](_0x1a9df('0x4'),attributes,{'tableName':_0x1a9df('0x1'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':['idField',_0x1a9df('0x5')],'unique':!![]}],'timestamps':!![]});return _0x2ba027;}; \ No newline at end of file +const a278_0x2916=['./intFreshsalesField.attributes','int_freshsales_fields','define','exports','freshsales_unique_index'];(function(_0x46d141,_0x291683){const _0xd956c0=function(_0x21649e){while(--_0x21649e){_0x46d141['push'](_0x46d141['shift']());}};_0xd956c0(++_0x291683);}(a278_0x2916,0x1d3));const a278_0xd956=function(_0x46d141,_0x291683){_0x46d141=_0x46d141-0x0;let _0xd956c0=a278_0x2916[_0x46d141];return _0xd956c0;};const _0x3c00e6=a278_0xd956;'use strict';const attributes=require(_0x3c00e6('0x3'));module[_0x3c00e6('0x1')]=function(_0x21649e){const _0x2bac65=_0x3c00e6,_0x40de68=_0x21649e[_0x2bac65('0x0')]('FreshsalesField',attributes,{'tableName':_0x2bac65('0x4'),'paranoid':![],'indexes':[{'name':_0x2bac65('0x2'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});return _0x40de68;}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/index.js b/server/api/intSalesforceAccount/index.js index 41948eb..df3e3a8 100644 --- a/server/api/intSalesforceAccount/index.js +++ b/server/api/intSalesforceAccount/index.js @@ -1 +1 @@ -const a279_0x3659=['delete','/:id/configurations','/:id','getFields','/:id/fields','get','express','show','exports','./intSalesforceAccount.controller','destroy','index','isAuthenticated','post','addConfiguration','create'];(function(_0x377853,_0x365966){const _0x2efabb=function(_0x30b0cc){while(--_0x30b0cc){_0x377853['push'](_0x377853['shift']());}};_0x2efabb(++_0x365966);}(a279_0x3659,0x1f4));const a279_0x2efa=function(_0x377853,_0x365966){_0x377853=_0x377853-0x0;let _0x2efabb=a279_0x3659[_0x377853];return _0x2efabb;};const _0x55574d=a279_0x2efa;'use strict';const express=require(_0x55574d('0x2')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x55574d('0x5'));router[_0x55574d('0x1')]('/',auth['isAuthenticated'](),controller[_0x55574d('0x7')]),router[_0x55574d('0x1')](_0x55574d('0xe'),auth['isAuthenticated'](),controller[_0x55574d('0x3')]),router['get'](_0x55574d('0xd'),auth[_0x55574d('0x8')](),controller['getConfigurations']),router[_0x55574d('0x1')](_0x55574d('0x0'),auth[_0x55574d('0x8')](),controller[_0x55574d('0xf')]),router[_0x55574d('0x9')]('/',auth[_0x55574d('0x8')](),controller[_0x55574d('0xb')]),router[_0x55574d('0x9')](_0x55574d('0xd'),auth[_0x55574d('0x8')](),controller[_0x55574d('0xa')]),router['put'](_0x55574d('0xe'),auth[_0x55574d('0x8')](),controller['update']),router[_0x55574d('0xc')](_0x55574d('0xe'),auth[_0x55574d('0x8')](),controller[_0x55574d('0x6')]),module[_0x55574d('0x4')]=router; \ No newline at end of file +const a279_0x2fb7=['/:id/fields','put','destroy','post','getConfigurations','get','./intSalesforceAccount.controller','/:id','express','getFields','Router','isAuthenticated','index','../../components/auth/service','exports','/:id/configurations','delete'];(function(_0x480eba,_0x2fb7de){const _0x5e851c=function(_0x375d76){while(--_0x375d76){_0x480eba['push'](_0x480eba['shift']());}};_0x5e851c(++_0x2fb7de);}(a279_0x2fb7,0x1b9));const a279_0x5e85=function(_0x480eba,_0x2fb7de){_0x480eba=_0x480eba-0x0;let _0x5e851c=a279_0x2fb7[_0x480eba];return _0x5e851c;};const _0x441eff=a279_0x5e85;'use strict';const express=require(_0x441eff('0x9')),router=express[_0x441eff('0xb')](),auth=require(_0x441eff('0xe')),controller=require(_0x441eff('0x7'));router[_0x441eff('0x6')]('/',auth[_0x441eff('0xc')](),controller[_0x441eff('0xd')]),router[_0x441eff('0x6')](_0x441eff('0x8'),auth[_0x441eff('0xc')](),controller['show']),router[_0x441eff('0x6')](_0x441eff('0x10'),auth[_0x441eff('0xc')](),controller[_0x441eff('0x5')]),router[_0x441eff('0x6')](_0x441eff('0x1'),auth[_0x441eff('0xc')](),controller[_0x441eff('0xa')]),router[_0x441eff('0x4')]('/',auth[_0x441eff('0xc')](),controller['create']),router['post'](_0x441eff('0x10'),auth['isAuthenticated'](),controller['addConfiguration']),router[_0x441eff('0x2')](_0x441eff('0x8'),auth['isAuthenticated'](),controller['update']),router[_0x441eff('0x0')]('/:id',auth['isAuthenticated'](),controller[_0x441eff('0x3')]),module[_0x441eff('0xf')]=router; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js index e87c0f0..2a7349a 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js @@ -1 +1 @@ -const a280_0x45a1=['newTab','STRING','integrationTab','ENUM','username','sequelize'];(function(_0x769b1,_0x45a1b6){const _0x433b6e=function(_0x31a1ae){while(--_0x31a1ae){_0x769b1['push'](_0x769b1['shift']());}};_0x433b6e(++_0x45a1b6);}(a280_0x45a1,0xd2));const a280_0x433b=function(_0x769b1,_0x45a1b6){_0x769b1=_0x769b1-0x0;let _0x433b6e=a280_0x45a1[_0x769b1];return _0x433b6e;};const _0x595d9f=a280_0x433b;'use strict';const Sequelize=require(_0x595d9f('0x5'));module['exports']={'name':{'type':Sequelize[_0x595d9f('0x1')]},'description':{'type':Sequelize[_0x595d9f('0x1')]},'username':{'type':Sequelize[_0x595d9f('0x1')],'unique':_0x595d9f('0x4')},'remoteUri':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x595d9f('0x1')]},'clientId':{'type':Sequelize[_0x595d9f('0x1')]},'clientSecret':{'type':Sequelize[_0x595d9f('0x1')]},'securityToken':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize[_0x595d9f('0x1')]},'type':{'type':Sequelize[_0x595d9f('0x3')](_0x595d9f('0x2'),_0x595d9f('0x0')),'defaultValue':_0x595d9f('0x2')}}; \ No newline at end of file +const a280_0x3047=['sequelize','username','newTab','STRING'];(function(_0x55428f,_0x304716){const _0x24ae05=function(_0x215560){while(--_0x215560){_0x55428f['push'](_0x55428f['shift']());}};_0x24ae05(++_0x304716);}(a280_0x3047,0x1f4));const a280_0x24ae=function(_0x55428f,_0x304716){_0x55428f=_0x55428f-0x0;let _0x24ae05=a280_0x3047[_0x55428f];return _0x24ae05;};const _0x2d6e13=a280_0x24ae;'use strict';const Sequelize=require(_0x2d6e13('0x0'));module['exports']={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x2d6e13('0x3')]},'username':{'type':Sequelize['STRING'],'unique':_0x2d6e13('0x1')},'remoteUri':{'type':Sequelize[_0x2d6e13('0x3')]},'password':{'type':Sequelize[_0x2d6e13('0x3')]},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize[_0x2d6e13('0x3')]},'securityToken':{'type':Sequelize[_0x2d6e13('0x3')]},'serverUrl':{'type':Sequelize[_0x2d6e13('0x3')]},'type':{'type':Sequelize['ENUM']('integrationTab',_0x2d6e13('0x2')),'defaultValue':'integrationTab'}}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js index 030352e..423aaf8 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js @@ -1 +1 @@ -const a281_0x5919=['lodash','SalesforceConfiguration','Priority','count','error','rows','Descriptions','name','options','Type','../../components/integrations/configuration','Status','clientId','stringify','destroy','fields','CallType','IsArchived','clientSecret','send','undefined','end','label','password','picklistValues','False','nolimit','pick','getConfigurations','status','like','sort','include','offset','then','substring','create','catch','includeAll','length','Case','update','sequelize','body','custom','Subjects','Origin','CallDurationInSeconds','filter','CallDisposition','IsEscalated','query','Wrong\x20credentials','keys','filters','stack','Content-Range','order','statusCode','securityToken','isNil','limit','Task','VIRTUAL','show','params','True','SalesforceAccount','lastIndexOf','getDescriptions','type','sobject','map','attributes','jsforce','findOne','test','remoteUri','SuppliedName','api','channel','sendStatus','getFields','merge','SuppliedCompany','key','ticketType','Connection','set','slice','intersection','getSubjects','Reason','includes','concat','username','json','boolean','SalesforceField','rawAttributes','../../components/parsers/qs','model','where'];(function(_0x55ff3d,_0x59195b){const _0x12c2f3=function(_0x28f0b3){while(--_0x28f0b3){_0x55ff3d['push'](_0x55ff3d['shift']());}};_0x12c2f3(++_0x59195b);}(a281_0x5919,0x1c8));const a281_0x12c2=function(_0x55ff3d,_0x59195b){_0x55ff3d=_0x55ff3d-0x0;let _0x12c2f3=a281_0x5919[_0x55ff3d];return _0x12c2f3;};const _0x51af2d=a281_0x12c2;'use strict';const _=require(_0x51af2d('0x3b')),jsforce=require(_0x51af2d('0x1e')),qs=require(_0x51af2d('0x38')),logger=require('../../config/logger')(_0x51af2d('0x23')),db=require('../../mysqldb')['db'],{Op}=require(_0x51af2d('0x65')),integrations=require(_0x51af2d('0x45'));function respondWithResult(_0x28f0b3,_0x245f55){return _0x245f55=_0x245f55||0xc8,function(_0x2f2997){const _0x2735be=a281_0x12c2;if(_0x2f2997)return _0x28f0b3[_0x2735be('0x58')](_0x245f55)[_0x2735be('0x34')](_0x2f2997);};}function respondWithFilteredResult(_0x2e40e7,_0x7a7c4a){return function(_0x4b419c){const _0x4ec782=a281_0x12c2;if(_0x4b419c){const _0x39ce1b=_0x4b419c[_0x4ec782('0x3e')],_0x454a93=_0x7a7c4a[_0x4ec782('0x5c')];let _0x5046e6=_0x7a7c4a[_0x4ec782('0x5c')]+_0x7a7c4a['limit'],_0x23f88e;return _0x5046e6>=_0x39ce1b?(_0x5046e6=_0x39ce1b,_0x23f88e=0xc8):_0x23f88e=0xce,_0x2e40e7['status'](_0x23f88e),_0x2e40e7[_0x4ec782('0x2c')](_0x4ec782('0xc'),_0x454a93+'-'+_0x5046e6+'/'+_0x39ce1b)[_0x4ec782('0x34')](_0x4b419c);}return null;};}function saveUpdates(_0x316fed){return function(_0x1414d9){const _0x50d642=a281_0x12c2;if(_0x1414d9)return _0x1414d9[_0x50d642('0x64')](_0x316fed)[_0x50d642('0x5d')](function(_0x131e78){return _0x131e78;});return null;};}function removeEntity(_0x293489){return function(_0x5b324b){const _0x4b3015=a281_0x12c2;if(_0x5b324b)return _0x5b324b['destroy']()[_0x4b3015('0x5d')](function(){const _0xe21f0c=_0x4b3015;_0x293489[_0xe21f0c('0x58')](0xcc)[_0xe21f0c('0x50')]();});};}function handleEntityNotFound(_0x59da4e){return function(_0x383ea0){const _0x56365a=a281_0x12c2;return!_0x383ea0&&_0x59da4e[_0x56365a('0x25')](0x194),_0x383ea0;};}function handleError(_0x5d9194,_0x6a9305){return _0x6a9305=_0x6a9305||0x1f4,function(_0x1a7261){const _0xdc3dc4=a281_0x12c2;logger[_0xdc3dc4('0x3f')](_0x1a7261[_0xdc3dc4('0xb')]),_0x1a7261[_0xdc3dc4('0x42')]&&delete _0x1a7261['name'],_0x5d9194['status'](_0x6a9305)['send'](_0x1a7261);};}exports['index']=function(_0x1c6149,_0x544f22){const _0x2a2cc5=_0x51af2d;let _0x1a7ec7={};const _0x468771={},_0x127846={'count':0x0,'rows':[]},_0x18f9ce=_[_0x2a2cc5('0x1c')](db[_0x2a2cc5('0x17')][_0x2a2cc5('0x37')],function(_0xe63843){const _0x3d1b5c=_0x2a2cc5;return{'name':_0xe63843['fieldName'],'type':_0xe63843[_0x3d1b5c('0x1a')][_0x3d1b5c('0x29')]};});_0x468771[_0x2a2cc5('0x39')]=_[_0x2a2cc5('0x1c')](_0x18f9ce,'name'),_0x468771['query']=_[_0x2a2cc5('0x9')](_0x1c6149[_0x2a2cc5('0x7')]),_0x468771[_0x2a2cc5('0xa')]=_[_0x2a2cc5('0x2e')](_0x468771[_0x2a2cc5('0x39')],_0x468771['query']),_0x1a7ec7[_0x2a2cc5('0x1d')]=_[_0x2a2cc5('0x2e')](_0x468771['model'],qs[_0x2a2cc5('0x4a')](_0x1c6149[_0x2a2cc5('0x7')][_0x2a2cc5('0x4a')])),_0x1a7ec7[_0x2a2cc5('0x1d')]=_0x1a7ec7[_0x2a2cc5('0x1d')][_0x2a2cc5('0x62')]?_0x1a7ec7[_0x2a2cc5('0x1d')]:_0x468771[_0x2a2cc5('0x39')];typeof _0x1c6149[_0x2a2cc5('0x7')]['nolimit']===_0x2a2cc5('0x4f')&&(_0x1a7ec7['limit']=qs[_0x2a2cc5('0x11')](_0x1c6149[_0x2a2cc5('0x7')][_0x2a2cc5('0x11')]),_0x1a7ec7[_0x2a2cc5('0x5c')]=qs[_0x2a2cc5('0x5c')](_0x1c6149[_0x2a2cc5('0x7')][_0x2a2cc5('0x5c')]));_0x1a7ec7['order']=qs['sort'](_0x1c6149[_0x2a2cc5('0x7')][_0x2a2cc5('0x5a')]),_0x1a7ec7['where']=qs[_0x2a2cc5('0xa')](_[_0x2a2cc5('0x56')](_0x1c6149[_0x2a2cc5('0x7')],_0x468771[_0x2a2cc5('0xa')]),_0x18f9ce);_0x1c6149[_0x2a2cc5('0x7')]['filter']&&(_0x1a7ec7[_0x2a2cc5('0x3a')]=_[_0x2a2cc5('0x27')](_0x1a7ec7[_0x2a2cc5('0x3a')],{[Op['or']]:_[_0x2a2cc5('0x1c')](_0x18f9ce,function(_0x13d7df){const _0xf0f791=_0x2a2cc5;if(_0x13d7df[_0xf0f791('0x1a')]!==_0xf0f791('0x13')){const _0x2f1d2a={};return _0x2f1d2a[_0x13d7df[_0xf0f791('0x42')]]={[Op[_0xf0f791('0x59')]]:'%'+_0x1c6149['query'][_0xf0f791('0x4')]+'%'},_0x2f1d2a;}})}));_0x1a7ec7=_[_0x2a2cc5('0x27')]({},_0x1a7ec7,_0x1c6149[_0x2a2cc5('0x43')]);const _0xac62fb={'where':_0x1a7ec7[_0x2a2cc5('0x3a')]};return db[_0x2a2cc5('0x17')][_0x2a2cc5('0x3e')](_0xac62fb)[_0x2a2cc5('0x5d')](function(_0x78c8bc){const _0x5572c=_0x2a2cc5;return _0x127846[_0x5572c('0x3e')]=_0x78c8bc,_0x1c6149[_0x5572c('0x7')][_0x5572c('0x61')]&&(_0x1a7ec7[_0x5572c('0x5b')]=[{'all':!![]}]),db[_0x5572c('0x17')]['findAll'](_0x1a7ec7);})[_0x2a2cc5('0x5d')](function(_0x5903f9){const _0x5e39be=_0x2a2cc5;return _0x127846[_0x5e39be('0x40')]=_0x5903f9,_0x127846;})[_0x2a2cc5('0x5d')](respondWithFilteredResult(_0x544f22,_0x1a7ec7))['catch'](handleError(_0x544f22,null));},exports[_0x51af2d('0x14')]=function(_0xaa3609,_0x1da305){const _0x1186eb=_0x51af2d;let _0x23b354={'raw':![],'where':{'id':_0xaa3609[_0x1186eb('0x15')]['id']}};const _0x1c9ce4={};return _0x1c9ce4[_0x1186eb('0x39')]=_[_0x1186eb('0x9')](db[_0x1186eb('0x17')]['rawAttributes']),_0x1c9ce4[_0x1186eb('0x7')]=_['keys'](_0xaa3609[_0x1186eb('0x7')]),_0x1c9ce4[_0x1186eb('0xa')]=_[_0x1186eb('0x2e')](_0x1c9ce4[_0x1186eb('0x39')],_0x1c9ce4[_0x1186eb('0x7')]),_0x23b354[_0x1186eb('0x1d')]=_['intersection'](_0x1c9ce4['model'],qs[_0x1186eb('0x4a')](_0xaa3609[_0x1186eb('0x7')][_0x1186eb('0x4a')])),_0x23b354['attributes']=_0x23b354[_0x1186eb('0x1d')][_0x1186eb('0x62')]?_0x23b354['attributes']:_0x1c9ce4[_0x1186eb('0x39')],_0xaa3609['query']['includeAll']&&(_0x23b354['include']=[{'all':!![]}]),_0x23b354=_[_0x1186eb('0x27')]({},_0x23b354,_0xaa3609['options']),db[_0x1186eb('0x17')][_0x1186eb('0x1f')](_0x23b354)[_0x1186eb('0x5d')](handleEntityNotFound(_0x1da305,null))['then'](respondWithResult(_0x1da305,null))[_0x1186eb('0x60')](handleError(_0x1da305,null));},exports[_0x51af2d('0x5f')]=function(_0x264775,_0x9759bd){const _0x5ba7a4=_0x51af2d;return db['SalesforceAccount']['create'](_0x264775[_0x5ba7a4('0x66')],{})[_0x5ba7a4('0x5d')](respondWithResult(_0x9759bd,0xc9))[_0x5ba7a4('0x60')](handleError(_0x9759bd,null));},exports[_0x51af2d('0x64')]=function(_0x3df552,_0x5e1842){const _0x47d4d0=_0x51af2d;return _0x3df552[_0x47d4d0('0x66')]['id']&&delete _0x3df552['body']['id'],db[_0x47d4d0('0x17')][_0x47d4d0('0x1f')]({'where':{'id':_0x3df552[_0x47d4d0('0x15')]['id']}})[_0x47d4d0('0x5d')](handleEntityNotFound(_0x5e1842,null))[_0x47d4d0('0x5d')](saveUpdates(_0x3df552[_0x47d4d0('0x66')],null))['then'](respondWithResult(_0x5e1842,null))[_0x47d4d0('0x60')](handleError(_0x5e1842,null));},exports[_0x51af2d('0x49')]=function(_0x18718b,_0x5b979b){const _0x5decfb=_0x51af2d;return db[_0x5decfb('0x17')][_0x5decfb('0x1f')]({'where':{'id':_0x18718b[_0x5decfb('0x15')]['id']}})[_0x5decfb('0x5d')](handleEntityNotFound(_0x5b979b,null))[_0x5decfb('0x5d')](removeEntity(_0x5b979b,null))[_0x5decfb('0x60')](handleError(_0x5b979b,null));},exports['getConfigurations']=function(_0x2d3232,_0x3ff8c4){const _0x52cb47=_0x51af2d;let _0x1f7340={};const _0x25c0ce={};let _0x1ba8a2,_0x2506ac;return db['SalesforceAccount'][_0x52cb47('0x1f')]({'where':{'id':_0x2d3232[_0x52cb47('0x15')]['id']}})[_0x52cb47('0x5d')](handleEntityNotFound(_0x3ff8c4,null))[_0x52cb47('0x5d')](function(_0x2ba626){const _0x1baa95=_0x52cb47;if(_0x2ba626)return _0x1ba8a2=_0x2ba626,_0x25c0ce[_0x1baa95('0x39')]=_[_0x1baa95('0x9')](db[_0x1baa95('0x3c')][_0x1baa95('0x37')]),_0x25c0ce[_0x1baa95('0x7')]=_[_0x1baa95('0x9')](_0x2d3232[_0x1baa95('0x7')]),_0x25c0ce[_0x1baa95('0xa')]=_[_0x1baa95('0x2e')](_0x25c0ce[_0x1baa95('0x39')],_0x25c0ce[_0x1baa95('0x7')]),_0x1f7340[_0x1baa95('0x1d')]=_[_0x1baa95('0x2e')](_0x25c0ce[_0x1baa95('0x39')],qs[_0x1baa95('0x4a')](_0x2d3232[_0x1baa95('0x7')][_0x1baa95('0x4a')])),_0x1f7340['attributes']=_0x1f7340['attributes'][_0x1baa95('0x62')]?_0x1f7340[_0x1baa95('0x1d')]:_0x25c0ce[_0x1baa95('0x39')],_0x1f7340[_0x1baa95('0xd')]=qs['sort'](_0x2d3232[_0x1baa95('0x7')][_0x1baa95('0x5a')]),_0x1f7340[_0x1baa95('0x3a')]=qs[_0x1baa95('0xa')](_[_0x1baa95('0x56')](_0x2d3232[_0x1baa95('0x7')],_0x25c0ce[_0x1baa95('0xa')])),_0x2d3232[_0x1baa95('0x7')]['filter']&&(_0x1f7340[_0x1baa95('0x3a')]=_[_0x1baa95('0x27')](_0x1f7340['where'],{[Op['or']]:_['map'](_0x1f7340['attributes'],function(_0x144c41){const _0x5455ef=_0x1baa95,_0x2d25ff={};return _0x2d25ff[_0x144c41]={[Op[_0x5455ef('0x59')]]:'%'+_0x2d3232['query'][_0x5455ef('0x4')]+'%'},_0x2d25ff;})})),_0x1f7340=_['merge']({},_0x1f7340,_0x2d3232[_0x1baa95('0x43')]),_0x1ba8a2[_0x1baa95('0x57')](_0x1f7340);})[_0x52cb47('0x5d')](function(_0x1c94fa){const _0x1a9e2d=_0x52cb47;if(_0x1c94fa)return _0x2506ac=_0x1c94fa['length'],typeof _0x2d3232[_0x1a9e2d('0x7')][_0x1a9e2d('0x55')]===_0x1a9e2d('0x4f')&&(_0x1f7340[_0x1a9e2d('0x11')]=qs['limit'](_0x2d3232[_0x1a9e2d('0x7')][_0x1a9e2d('0x11')]),_0x1f7340[_0x1a9e2d('0x5c')]=qs[_0x1a9e2d('0x5c')](_0x2d3232[_0x1a9e2d('0x7')][_0x1a9e2d('0x5c')])),_0x1ba8a2[_0x1a9e2d('0x57')](_0x1f7340);})[_0x52cb47('0x5d')](function(_0x55250c){if(_0x55250c)return _0x55250c?{'count':_0x2506ac,'rows':_0x55250c}:null;})[_0x52cb47('0x5d')](respondWithResult(_0x3ff8c4,null))['catch'](handleError(_0x3ff8c4,null));},exports['addConfiguration']=function(_0x9b4ca0,_0x4b122d){const _0x474986=_0x51af2d;return _0x9b4ca0[_0x474986('0x66')]['id']&&delete _0x9b4ca0['body']['id'],db[_0x474986('0x17')][_0x474986('0x1f')]({'where':{'id':_0x9b4ca0['params']['id']}})[_0x474986('0x5d')](handleEntityNotFound(_0x4b122d,null))['then'](function(_0x2b3859){const _0x3ee918=_0x474986;if(_0x2b3859)return _0x9b4ca0[_0x3ee918('0x66')]['AccountId']=_0x2b3859['id'],_0x9b4ca0[_0x3ee918('0x66')][_0x3ee918('0x1')]=integrations[_0x3ee918('0x2f')](_0x9b4ca0[_0x3ee918('0x66')]['channel'],_0x9b4ca0[_0x3ee918('0x66')]['type']),_0x9b4ca0[_0x3ee918('0x66')][_0x3ee918('0x41')]=integrations[_0x3ee918('0x19')](_0x9b4ca0[_0x3ee918('0x66')][_0x3ee918('0x24')],_0x9b4ca0['body']['type']),db[_0x3ee918('0x3c')][_0x3ee918('0x5f')](_0x9b4ca0[_0x3ee918('0x66')],{'include':[{'model':db[_0x3ee918('0x36')],'as':_0x3ee918('0x1')},{'model':db[_0x3ee918('0x36')],'as':'Descriptions'}]});return null;})[_0x474986('0x5d')](respondWithResult(_0x4b122d,null))[_0x474986('0x60')](handleError(_0x4b122d,null));},exports[_0x51af2d('0x26')]=function(_0x4c07cd,_0x38d0ce){const _0x37f164=_0x51af2d;let _0x201e34,_0x23add0='',_0x49cc22=_0x37f164('0x12');return db[_0x37f164('0x17')][_0x37f164('0x1f')]({'where':{'id':_0x4c07cd[_0x37f164('0x15')]['id']},'attributes':['id','remoteUri',_0x37f164('0x47'),_0x37f164('0x4d'),_0x37f164('0x33'),'password',_0x37f164('0xf')]})[_0x37f164('0x5d')](handleEntityNotFound(_0x38d0ce,null))[_0x37f164('0x5d')](function(_0x11c719){const _0x2c7bba=_0x37f164;if(_0x11c719){_0x23add0=_0x11c719[_0x2c7bba('0x21')];const _0x528f3e=_0x23add0[_0x2c7bba('0x2d')](-0x1);return _0x528f3e==='/'&&(_0x23add0=_0x23add0[_0x2c7bba('0x5e')](0x0,_0x23add0[_0x2c7bba('0x18')](_0x528f3e))),_0x201e34=new jsforce[(_0x2c7bba('0x2b'))]({'oauth2':{'loginUrl':_0x23add0,'clientId':_0x11c719[_0x2c7bba('0x47')],'clientSecret':_0x11c719[_0x2c7bba('0x4d')]}}),_0x201e34['login'](_0x11c719[_0x2c7bba('0x33')],_0x11c719[_0x2c7bba('0x52')][_0x2c7bba('0x32')](_0x11c719[_0x2c7bba('0xf')]));}})[_0x37f164('0x5d')](function(_0x3f5f83){const _0x5a51f6=_0x37f164;if(_0x3f5f83)return!_[_0x5a51f6('0x10')](_0x4c07cd[_0x5a51f6('0x7')]['ticketType'])&&(_0x49cc22=_0x4c07cd[_0x5a51f6('0x7')][_0x5a51f6('0x2a')]),_0x201e34[_0x5a51f6('0x1b')](_0x49cc22)['describe']();})['then'](function(_0x298918){const _0x2f2112=_0x37f164;let _0x6650da=[_0x2f2112('0x5'),_0x2f2112('0x3'),'CallObject',_0x2f2112('0x4b'),_0x2f2112('0x4c'),_0x2f2112('0x3d'),_0x2f2112('0x46'),_0x2f2112('0x44')];!_['isNil'](_0x4c07cd['query']['ticketType'])&&_0x4c07cd[_0x2f2112('0x7')][_0x2f2112('0x2a')]===_0x2f2112('0x63')&&(_0x6650da=[_0x2f2112('0x44'),_0x2f2112('0x2'),_0x2f2112('0x30'),_0x2f2112('0x46'),'Priority',_0x2f2112('0x6'),_0x2f2112('0x22'),_0x2f2112('0x28')]);if(_0x298918)return _['remove'](_0x298918['fields'],function(_0x42452e){const _0x2dd721=_0x2f2112;return _0x42452e[_0x2dd721('0x0')]===![]&&!_0x6650da[_0x2dd721('0x31')](_0x42452e[_0x2dd721('0x42')]);}),{'count':_0x298918[_0x2f2112('0x4a')][_0x2f2112('0x62')],'rows':_['map'](_0x298918['fields'],function(_0x212861){const _0x5130a7=_0x2f2112;return{'id':_0x212861[_0x5130a7('0x42')],'name':_0x212861['label'],'custom':_0x212861[_0x5130a7('0x0')],'options':_0x212861[_0x5130a7('0x53')][_0x5130a7('0x62')]>0x0?_[_0x5130a7('0x1c')](_0x212861['picklistValues'],function(_0x19d748){const _0x256bd4=_0x5130a7;return{'name':_0x19d748[_0x256bd4('0x51')],'value':_0x19d748['value']};}):_0x212861['type']==_0x5130a7('0x35')?[{'name':_0x5130a7('0x16'),'value':'true'},{'name':_0x5130a7('0x54'),'value':'false'}]:[]};})};})[_0x37f164('0x5d')](respondWithResult(_0x38d0ce,null))[_0x37f164('0x60')](function(_0x3f21d9){const _0x155bb1=_0x37f164;let _0x124b7a=_0x4c07cd['query'][_0x155bb1('0x20')]?0x1f4:_0x3f21d9[_0x155bb1('0xe')]||0x1f4;logger[_0x155bb1('0x3f')]('getFields,\x20%s,\x20%s,\x20%s','getFields',_0x124b7a,JSON[_0x155bb1('0x48')](_0x3f21d9)),delete _0x3f21d9[_0x155bb1('0x42')],_0x124b7a===0x191&&(_0x124b7a=0x190),_0x38d0ce[_0x155bb1('0x58')](_0x124b7a)[_0x155bb1('0x4e')](_0x4c07cd[_0x155bb1('0x7')]['test']?{'message':_0x155bb1('0x8'),'statusCode':_0x3f21d9[_0x155bb1('0xe')]}:_0x3f21d9);});}; \ No newline at end of file +const a281_0x49f0=['substring','statusCode','attributes','findAll','filters','set','../../components/parsers/qs','length','keys','filter','sort','SalesforceConfiguration','type','getDescriptions','Case','SalesforceAccount','catch','True','model','describe','clientSecret','channel','CallObject','map','AccountId','clientId','getFields','pick','Reason','username','params','error','order','concat','lodash','false','then','count','custom','jsforce','options','includes','include','login','create','update','Descriptions','remoteUri','Type','sendStatus','merge','value','show','SalesforceField','../../components/integrations/configuration','Origin','intersection','status','rows','picklistValues','json','offset','isNil','lastIndexOf','Subjects','where','getFields,\x20%s,\x20%s,\x20%s','nolimit','ticketType','limit','VIRTUAL','like','rawAttributes','sobject','fields','getSubjects','slice','../../mysqldb','password','sequelize','Priority','SuppliedCompany','Task','CallType','findOne','../../config/logger','fieldName','Status','label','body','Content-Range','api','getConfigurations','IsArchived','destroy','test','name','true','index','query','False','CallDisposition','includeAll','Wrong\x20credentials','securityToken'];(function(_0x4b0287,_0x49f088){const _0x5e885f=function(_0x274435){while(--_0x274435){_0x4b0287['push'](_0x4b0287['shift']());}};_0x5e885f(++_0x49f088);}(a281_0x49f0,0xfc));const a281_0x5e88=function(_0x4b0287,_0x49f088){_0x4b0287=_0x4b0287-0x0;let _0x5e885f=a281_0x49f0[_0x4b0287];return _0x5e885f;};const _0x12888e=a281_0x5e88;'use strict';const _=require(_0x12888e('0x61')),jsforce=require(_0x12888e('0x66')),qs=require(_0x12888e('0x45')),logger=require(_0x12888e('0x2b'))(_0x12888e('0x31')),db=require(_0x12888e('0x23'))['db'],{Op}=require(_0x12888e('0x25')),integrations=require(_0x12888e('0xc'));function respondWithResult(_0x274435,_0x5bc19c){return _0x5bc19c=_0x5bc19c||0xc8,function(_0x3ea903){const _0x5b5fc7=a281_0x5e88;if(_0x3ea903)return _0x274435[_0x5b5fc7('0xf')](_0x5bc19c)[_0x5b5fc7('0x12')](_0x3ea903);};}function respondWithFilteredResult(_0x4a51f1,_0x3612ff){return function(_0x5c5163){const _0x5d273b=a281_0x5e88;if(_0x5c5163){const _0x488cd6=_0x5c5163[_0x5d273b('0x64')],_0x1c2827=_0x3612ff[_0x5d273b('0x13')];let _0xe4b535=_0x3612ff['offset']+_0x3612ff['limit'],_0x4c6cde;return _0xe4b535>=_0x488cd6?(_0xe4b535=_0x488cd6,_0x4c6cde=0xc8):_0x4c6cde=0xce,_0x4a51f1['status'](_0x4c6cde),_0x4a51f1[_0x5d273b('0x44')](_0x5d273b('0x30'),_0x1c2827+'-'+_0xe4b535+'/'+_0x488cd6)['json'](_0x5c5163);}return null;};}function saveUpdates(_0x70a3e3){return function(_0x1aa4f7){const _0x292c40=a281_0x5e88;if(_0x1aa4f7)return _0x1aa4f7[_0x292c40('0x3')](_0x70a3e3)[_0x292c40('0x63')](function(_0x2425e8){return _0x2425e8;});return null;};}function removeEntity(_0x8b6e8b){return function(_0x18095e){const _0x17e2c6=a281_0x5e88;if(_0x18095e)return _0x18095e[_0x17e2c6('0x34')]()[_0x17e2c6('0x63')](function(){_0x8b6e8b['status'](0xcc)['end']();});};}function handleEntityNotFound(_0xbb5256){return function(_0x9f3931){const _0x2ccee8=a281_0x5e88;return!_0x9f3931&&_0xbb5256[_0x2ccee8('0x7')](0x194),_0x9f3931;};}function handleError(_0x2750b2,_0x533948){return _0x533948=_0x533948||0x1f4,function(_0x5d42e3){const _0x98164e=a281_0x5e88;logger[_0x98164e('0x5e')](_0x5d42e3['stack']),_0x5d42e3['name']&&delete _0x5d42e3[_0x98164e('0x36')],_0x2750b2['status'](_0x533948)['send'](_0x5d42e3);};}exports[_0x12888e('0x38')]=function(_0x3a9d7e,_0x5463a7){const _0x584879=_0x12888e;let _0x467bba={};const _0x202e26={},_0x59bd31={'count':0x0,'rows':[]},_0x3d95c6=_['map'](db[_0x584879('0x4e')][_0x584879('0x1e')],function(_0x25bb07){const _0x36f586=_0x584879;return{'name':_0x25bb07[_0x36f586('0x2c')],'type':_0x25bb07[_0x36f586('0x4b')]['key']};});_0x202e26[_0x584879('0x51')]=_[_0x584879('0x56')](_0x3d95c6,'name'),_0x202e26[_0x584879('0x39')]=_['keys'](_0x3a9d7e['query']),_0x202e26[_0x584879('0x43')]=_['intersection'](_0x202e26[_0x584879('0x51')],_0x202e26['query']),_0x467bba[_0x584879('0x41')]=_['intersection'](_0x202e26[_0x584879('0x51')],qs[_0x584879('0x20')](_0x3a9d7e[_0x584879('0x39')][_0x584879('0x20')])),_0x467bba['attributes']=_0x467bba[_0x584879('0x41')][_0x584879('0x46')]?_0x467bba['attributes']:_0x202e26[_0x584879('0x51')];typeof _0x3a9d7e[_0x584879('0x39')][_0x584879('0x19')]==='undefined'&&(_0x467bba[_0x584879('0x1b')]=qs[_0x584879('0x1b')](_0x3a9d7e[_0x584879('0x39')][_0x584879('0x1b')]),_0x467bba[_0x584879('0x13')]=qs['offset'](_0x3a9d7e[_0x584879('0x39')][_0x584879('0x13')]));_0x467bba[_0x584879('0x5f')]=qs[_0x584879('0x49')](_0x3a9d7e['query'][_0x584879('0x49')]),_0x467bba[_0x584879('0x17')]=qs['filters'](_[_0x584879('0x5a')](_0x3a9d7e[_0x584879('0x39')],_0x202e26[_0x584879('0x43')]),_0x3d95c6);_0x3a9d7e[_0x584879('0x39')]['filter']&&(_0x467bba['where']=_[_0x584879('0x8')](_0x467bba[_0x584879('0x17')],{[Op['or']]:_[_0x584879('0x56')](_0x3d95c6,function(_0x46b2cf){const _0x3a2f76=_0x584879;if(_0x46b2cf[_0x3a2f76('0x4b')]!==_0x3a2f76('0x1c')){const _0x41e7b8={};return _0x41e7b8[_0x46b2cf[_0x3a2f76('0x36')]]={[Op['like']]:'%'+_0x3a9d7e[_0x3a2f76('0x39')][_0x3a2f76('0x48')]+'%'},_0x41e7b8;}})}));_0x467bba=_[_0x584879('0x8')]({},_0x467bba,_0x3a9d7e[_0x584879('0x67')]);const _0x46eb5e={'where':_0x467bba['where']};return db[_0x584879('0x4e')][_0x584879('0x64')](_0x46eb5e)[_0x584879('0x63')](function(_0x43c72f){const _0x3f80ad=_0x584879;return _0x59bd31[_0x3f80ad('0x64')]=_0x43c72f,_0x3a9d7e[_0x3f80ad('0x39')][_0x3f80ad('0x3c')]&&(_0x467bba[_0x3f80ad('0x0')]=[{'all':!![]}]),db[_0x3f80ad('0x4e')][_0x3f80ad('0x42')](_0x467bba);})[_0x584879('0x63')](function(_0x298b70){const _0x7a457=_0x584879;return _0x59bd31[_0x7a457('0x10')]=_0x298b70,_0x59bd31;})[_0x584879('0x63')](respondWithFilteredResult(_0x5463a7,_0x467bba))[_0x584879('0x4f')](handleError(_0x5463a7,null));},exports[_0x12888e('0xa')]=function(_0x599363,_0x37af64){const _0x294725=_0x12888e;let _0x303f52={'raw':![],'where':{'id':_0x599363[_0x294725('0x5d')]['id']}};const _0x2c3534={};return _0x2c3534[_0x294725('0x51')]=_[_0x294725('0x47')](db[_0x294725('0x4e')][_0x294725('0x1e')]),_0x2c3534[_0x294725('0x39')]=_[_0x294725('0x47')](_0x599363['query']),_0x2c3534[_0x294725('0x43')]=_[_0x294725('0xe')](_0x2c3534[_0x294725('0x51')],_0x2c3534[_0x294725('0x39')]),_0x303f52[_0x294725('0x41')]=_[_0x294725('0xe')](_0x2c3534[_0x294725('0x51')],qs['fields'](_0x599363[_0x294725('0x39')][_0x294725('0x20')])),_0x303f52[_0x294725('0x41')]=_0x303f52[_0x294725('0x41')][_0x294725('0x46')]?_0x303f52[_0x294725('0x41')]:_0x2c3534[_0x294725('0x51')],_0x599363[_0x294725('0x39')][_0x294725('0x3c')]&&(_0x303f52[_0x294725('0x0')]=[{'all':!![]}]),_0x303f52=_[_0x294725('0x8')]({},_0x303f52,_0x599363[_0x294725('0x67')]),db['SalesforceAccount'][_0x294725('0x2a')](_0x303f52)[_0x294725('0x63')](handleEntityNotFound(_0x37af64,null))[_0x294725('0x63')](respondWithResult(_0x37af64,null))[_0x294725('0x4f')](handleError(_0x37af64,null));},exports[_0x12888e('0x2')]=function(_0x2702ed,_0x4a5ec0){const _0x2bac99=_0x12888e;return db[_0x2bac99('0x4e')][_0x2bac99('0x2')](_0x2702ed['body'],{})['then'](respondWithResult(_0x4a5ec0,0xc9))[_0x2bac99('0x4f')](handleError(_0x4a5ec0,null));},exports[_0x12888e('0x3')]=function(_0x30334b,_0x1b2f34){const _0x2cb047=_0x12888e;return _0x30334b['body']['id']&&delete _0x30334b[_0x2cb047('0x2f')]['id'],db[_0x2cb047('0x4e')][_0x2cb047('0x2a')]({'where':{'id':_0x30334b[_0x2cb047('0x5d')]['id']}})[_0x2cb047('0x63')](handleEntityNotFound(_0x1b2f34,null))[_0x2cb047('0x63')](saveUpdates(_0x30334b['body'],null))[_0x2cb047('0x63')](respondWithResult(_0x1b2f34,null))['catch'](handleError(_0x1b2f34,null));},exports[_0x12888e('0x34')]=function(_0xc147c7,_0x22be2a){const _0x29f767=_0x12888e;return db[_0x29f767('0x4e')]['findOne']({'where':{'id':_0xc147c7[_0x29f767('0x5d')]['id']}})[_0x29f767('0x63')](handleEntityNotFound(_0x22be2a,null))[_0x29f767('0x63')](removeEntity(_0x22be2a,null))[_0x29f767('0x4f')](handleError(_0x22be2a,null));},exports[_0x12888e('0x32')]=function(_0xc3175d,_0x16532c){const _0x24763f=_0x12888e;let _0x3c6423={};const _0x5ac7c4={};let _0x1da3b1,_0x222cc7;return db[_0x24763f('0x4e')][_0x24763f('0x2a')]({'where':{'id':_0xc3175d[_0x24763f('0x5d')]['id']}})[_0x24763f('0x63')](handleEntityNotFound(_0x16532c,null))[_0x24763f('0x63')](function(_0x5de46a){const _0x13df02=_0x24763f;if(_0x5de46a)return _0x1da3b1=_0x5de46a,_0x5ac7c4[_0x13df02('0x51')]=_[_0x13df02('0x47')](db[_0x13df02('0x4a')][_0x13df02('0x1e')]),_0x5ac7c4[_0x13df02('0x39')]=_['keys'](_0xc3175d[_0x13df02('0x39')]),_0x5ac7c4[_0x13df02('0x43')]=_[_0x13df02('0xe')](_0x5ac7c4[_0x13df02('0x51')],_0x5ac7c4['query']),_0x3c6423[_0x13df02('0x41')]=_['intersection'](_0x5ac7c4[_0x13df02('0x51')],qs[_0x13df02('0x20')](_0xc3175d[_0x13df02('0x39')]['fields'])),_0x3c6423[_0x13df02('0x41')]=_0x3c6423['attributes'][_0x13df02('0x46')]?_0x3c6423[_0x13df02('0x41')]:_0x5ac7c4[_0x13df02('0x51')],_0x3c6423['order']=qs[_0x13df02('0x49')](_0xc3175d[_0x13df02('0x39')][_0x13df02('0x49')]),_0x3c6423['where']=qs['filters'](_[_0x13df02('0x5a')](_0xc3175d['query'],_0x5ac7c4[_0x13df02('0x43')])),_0xc3175d[_0x13df02('0x39')][_0x13df02('0x48')]&&(_0x3c6423[_0x13df02('0x17')]=_[_0x13df02('0x8')](_0x3c6423['where'],{[Op['or']]:_[_0x13df02('0x56')](_0x3c6423[_0x13df02('0x41')],function(_0x294292){const _0x513a8b=_0x13df02,_0x1fb87d={};return _0x1fb87d[_0x294292]={[Op[_0x513a8b('0x1d')]]:'%'+_0xc3175d['query'][_0x513a8b('0x48')]+'%'},_0x1fb87d;})})),_0x3c6423=_[_0x13df02('0x8')]({},_0x3c6423,_0xc3175d['options']),_0x1da3b1[_0x13df02('0x32')](_0x3c6423);})[_0x24763f('0x63')](function(_0x15a46e){const _0xc2cb71=_0x24763f;if(_0x15a46e)return _0x222cc7=_0x15a46e[_0xc2cb71('0x46')],typeof _0xc3175d[_0xc2cb71('0x39')][_0xc2cb71('0x19')]==='undefined'&&(_0x3c6423[_0xc2cb71('0x1b')]=qs[_0xc2cb71('0x1b')](_0xc3175d[_0xc2cb71('0x39')][_0xc2cb71('0x1b')]),_0x3c6423['offset']=qs[_0xc2cb71('0x13')](_0xc3175d[_0xc2cb71('0x39')][_0xc2cb71('0x13')])),_0x1da3b1[_0xc2cb71('0x32')](_0x3c6423);})[_0x24763f('0x63')](function(_0x524430){if(_0x524430)return _0x524430?{'count':_0x222cc7,'rows':_0x524430}:null;})[_0x24763f('0x63')](respondWithResult(_0x16532c,null))['catch'](handleError(_0x16532c,null));},exports['addConfiguration']=function(_0x261287,_0x31857b){const _0x14aa45=_0x12888e;return _0x261287[_0x14aa45('0x2f')]['id']&&delete _0x261287[_0x14aa45('0x2f')]['id'],db[_0x14aa45('0x4e')][_0x14aa45('0x2a')]({'where':{'id':_0x261287[_0x14aa45('0x5d')]['id']}})[_0x14aa45('0x63')](handleEntityNotFound(_0x31857b,null))[_0x14aa45('0x63')](function(_0x37c8e8){const _0x4df09c=_0x14aa45;if(_0x37c8e8)return _0x261287['body'][_0x4df09c('0x57')]=_0x37c8e8['id'],_0x261287[_0x4df09c('0x2f')][_0x4df09c('0x16')]=integrations[_0x4df09c('0x21')](_0x261287['body']['channel'],_0x261287[_0x4df09c('0x2f')]['type']),_0x261287[_0x4df09c('0x2f')][_0x4df09c('0x4')]=integrations[_0x4df09c('0x4c')](_0x261287[_0x4df09c('0x2f')][_0x4df09c('0x54')],_0x261287['body'][_0x4df09c('0x4b')]),db[_0x4df09c('0x4a')][_0x4df09c('0x2')](_0x261287['body'],{'include':[{'model':db[_0x4df09c('0xb')],'as':_0x4df09c('0x16')},{'model':db[_0x4df09c('0xb')],'as':'Descriptions'}]});return null;})[_0x14aa45('0x63')](respondWithResult(_0x31857b,null))[_0x14aa45('0x4f')](handleError(_0x31857b,null));},exports[_0x12888e('0x59')]=function(_0x48d2c2,_0x5d6b72){const _0x46a505=_0x12888e;let _0x1bd7e1,_0x23e7bc='',_0x38fd05=_0x46a505('0x28');return db['SalesforceAccount']['findOne']({'where':{'id':_0x48d2c2[_0x46a505('0x5d')]['id']},'attributes':['id','remoteUri','clientId','clientSecret',_0x46a505('0x5c'),_0x46a505('0x24'),_0x46a505('0x3e')]})[_0x46a505('0x63')](handleEntityNotFound(_0x5d6b72,null))[_0x46a505('0x63')](function(_0x16cd69){const _0x49cb12=_0x46a505;if(_0x16cd69){_0x23e7bc=_0x16cd69[_0x49cb12('0x5')];const _0x5b386e=_0x23e7bc[_0x49cb12('0x22')](-0x1);return _0x5b386e==='/'&&(_0x23e7bc=_0x23e7bc[_0x49cb12('0x3f')](0x0,_0x23e7bc[_0x49cb12('0x15')](_0x5b386e))),_0x1bd7e1=new jsforce['Connection']({'oauth2':{'loginUrl':_0x23e7bc,'clientId':_0x16cd69[_0x49cb12('0x58')],'clientSecret':_0x16cd69[_0x49cb12('0x53')]}}),_0x1bd7e1[_0x49cb12('0x1')](_0x16cd69[_0x49cb12('0x5c')],_0x16cd69[_0x49cb12('0x24')][_0x49cb12('0x60')](_0x16cd69[_0x49cb12('0x3e')]));}})[_0x46a505('0x63')](function(_0x335586){const _0x132573=_0x46a505;if(_0x335586)return!_[_0x132573('0x14')](_0x48d2c2[_0x132573('0x39')][_0x132573('0x1a')])&&(_0x38fd05=_0x48d2c2[_0x132573('0x39')][_0x132573('0x1a')]),_0x1bd7e1[_0x132573('0x1f')](_0x38fd05)[_0x132573('0x52')]();})[_0x46a505('0x63')](function(_0x4baec5){const _0xfc66b2=_0x46a505;let _0x29a023=[_0xfc66b2('0x3b'),'CallDurationInSeconds',_0xfc66b2('0x55'),_0xfc66b2('0x29'),_0xfc66b2('0x33'),'Priority',_0xfc66b2('0x2d'),_0xfc66b2('0x6')];!_[_0xfc66b2('0x14')](_0x48d2c2[_0xfc66b2('0x39')][_0xfc66b2('0x1a')])&&_0x48d2c2[_0xfc66b2('0x39')][_0xfc66b2('0x1a')]===_0xfc66b2('0x4d')&&(_0x29a023=[_0xfc66b2('0x6'),_0xfc66b2('0xd'),_0xfc66b2('0x5b'),_0xfc66b2('0x2d'),_0xfc66b2('0x26'),'IsEscalated','SuppliedName',_0xfc66b2('0x27')]);if(_0x4baec5)return _['remove'](_0x4baec5[_0xfc66b2('0x20')],function(_0x5c5348){const _0x5f0d0c=_0xfc66b2;return _0x5c5348[_0x5f0d0c('0x65')]===![]&&!_0x29a023[_0x5f0d0c('0x68')](_0x5c5348['name']);}),{'count':_0x4baec5[_0xfc66b2('0x20')][_0xfc66b2('0x46')],'rows':_[_0xfc66b2('0x56')](_0x4baec5['fields'],function(_0x492332){const _0x582127=_0xfc66b2;return{'id':_0x492332[_0x582127('0x36')],'name':_0x492332[_0x582127('0x2e')],'custom':_0x492332[_0x582127('0x65')],'options':_0x492332[_0x582127('0x11')]['length']>0x0?_['map'](_0x492332[_0x582127('0x11')],function(_0x494df9){const _0x59e61e=_0x582127;return{'name':_0x494df9[_0x59e61e('0x2e')],'value':_0x494df9[_0x59e61e('0x9')]};}):_0x492332['type']=='boolean'?[{'name':_0x582127('0x50'),'value':_0x582127('0x37')},{'name':_0x582127('0x3a'),'value':_0x582127('0x62')}]:[]};})};})[_0x46a505('0x63')](respondWithResult(_0x5d6b72,null))[_0x46a505('0x4f')](function(_0x11f388){const _0x322b79=_0x46a505;let _0x258b48=_0x48d2c2[_0x322b79('0x39')][_0x322b79('0x35')]?0x1f4:_0x11f388[_0x322b79('0x40')]||0x1f4;logger[_0x322b79('0x5e')](_0x322b79('0x18'),_0x322b79('0x59'),_0x258b48,JSON['stringify'](_0x11f388)),delete _0x11f388[_0x322b79('0x36')],_0x258b48===0x191&&(_0x258b48=0x190),_0x5d6b72['status'](_0x258b48)['send'](_0x48d2c2[_0x322b79('0x39')][_0x322b79('0x35')]?{'message':_0x322b79('0x3d'),'statusCode':_0x11f388[_0x322b79('0x40')]}:_0x11f388);});}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.model.js b/server/api/intSalesforceAccount/intSalesforceAccount.model.js index 81ef946..9ae40c5 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.model.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.model.js @@ -1 +1 @@ -const a282_0x45b2=['exports','SalesforceAccount','int_salesforce_accounts','./intSalesforceAccount.attributes','define'];(function(_0x314221,_0x45b24f){const _0x3ba6ca=function(_0x1d497d){while(--_0x1d497d){_0x314221['push'](_0x314221['shift']());}};_0x3ba6ca(++_0x45b24f);}(a282_0x45b2,0xc0));const a282_0x3ba6=function(_0x314221,_0x45b24f){_0x314221=_0x314221-0x0;let _0x3ba6ca=a282_0x45b2[_0x314221];return _0x3ba6ca;};const _0xe39113=a282_0x3ba6;'use strict';const attributes=require(_0xe39113('0x1'));module[_0xe39113('0x3')]=function(_0x1d497d){const _0x2625b4=_0xe39113,_0x23c447=_0x1d497d[_0x2625b4('0x2')](_0x2625b4('0x4'),attributes,{'tableName':_0x2625b4('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x23c447;}; \ No newline at end of file +const a282_0x1294=['int_salesforce_accounts','define','SalesforceAccount','./intSalesforceAccount.attributes'];(function(_0x1dfbd6,_0x1294fc){const _0x3fafcb=function(_0x24562b){while(--_0x24562b){_0x1dfbd6['push'](_0x1dfbd6['shift']());}};_0x3fafcb(++_0x1294fc);}(a282_0x1294,0x115));const a282_0x3faf=function(_0x1dfbd6,_0x1294fc){_0x1dfbd6=_0x1dfbd6-0x0;let _0x3fafcb=a282_0x1294[_0x1dfbd6];return _0x3fafcb;};const _0x2386e1=a282_0x3faf;'use strict';const attributes=require(_0x2386e1('0x2'));module['exports']=function(_0x24562b){const _0xb22a72=_0x2386e1,_0x37d070=_0x24562b[_0xb22a72('0x0')](_0xb22a72('0x1'),attributes,{'tableName':_0xb22a72('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x37d070;}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js index d76ec44..9df7a4b 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js @@ -1 +1 @@ -const a283_0x56bc=['attributes','include','message','SalesforceAccount','ShowSalesforceAccount','model','findAll','stringify','info','raw','options','../../config/logger','rpc','limit','findOne','where','error','then','debug','catch','GetSalesforceAccount','map','../../mysqldb'];(function(_0xd997a3,_0x56bc9f){const _0x44f84b=function(_0x39eae0){while(--_0x39eae0){_0xd997a3['push'](_0xd997a3['shift']());}};_0x44f84b(++_0x56bc9f);}(a283_0x56bc,0xaf));const a283_0x44f8=function(_0xd997a3,_0x56bc9f){_0xd997a3=_0xd997a3-0x0;let _0x44f84b=a283_0x56bc[_0xd997a3];return _0x44f84b;};const _0x8175e7=a283_0x44f8;'use strict';const _=require('lodash'),db=require(_0x8175e7('0x8'))['db'],logger=require(_0x8175e7('0x14'))(_0x8175e7('0x15'));exports['GetSalesforceAccount']=function(_0x39eae0){const _0x4ea33f=this;return new Promise(function(_0x4edcb1,_0x556161){const _0x40eb53=a283_0x44f8;return db[_0x40eb53('0xc')][_0x40eb53('0xf')]({'raw':_0x39eae0[_0x40eb53('0x13')]?_0x39eae0['options'][_0x40eb53('0x12')]===undefined?!![]:![]:!![],'where':_0x39eae0['options']?_0x39eae0[_0x40eb53('0x13')]['where']||null:null,'attributes':_0x39eae0[_0x40eb53('0x13')]?_0x39eae0[_0x40eb53('0x13')][_0x40eb53('0x9')]||null:null,'limit':_0x39eae0[_0x40eb53('0x13')]?_0x39eae0[_0x40eb53('0x13')][_0x40eb53('0x16')]||null:null,'include':_0x39eae0[_0x40eb53('0x13')]?_0x39eae0[_0x40eb53('0x13')][_0x40eb53('0xa')]?_[_0x40eb53('0x7')](_0x39eae0[_0x40eb53('0x13')][_0x40eb53('0xa')],function(_0xa68777){const _0x25703a=_0x40eb53;return{'model':db[_0xa68777[_0x25703a('0xe')]],'as':_0xa68777['as'],'attributes':_0xa68777[_0x25703a('0x9')],'include':_0xa68777[_0x25703a('0xa')]?_[_0x25703a('0x7')](_0xa68777[_0x25703a('0xa')],function(_0x5b31f0){const _0x2e5dc=_0x25703a;return{'model':db[_0x5b31f0[_0x2e5dc('0xe')]],'as':_0x5b31f0['as'],'attributes':_0x5b31f0['attributes'],'include':_0x5b31f0[_0x2e5dc('0xa')]?_[_0x2e5dc('0x7')](_0x5b31f0[_0x2e5dc('0xa')],function(_0x24aed2){const _0x8cb3f2=_0x2e5dc;return{'model':db[_0x24aed2['model']],'as':_0x24aed2['as'],'attributes':_0x24aed2[_0x8cb3f2('0x9')]};}):[]};}):[]};}):[]:[]})[_0x40eb53('0x3')](function(_0x319980){const _0x3c162e=_0x40eb53;logger['info'](_0x3c162e('0x6'),_0x39eae0),logger[_0x3c162e('0x4')](_0x3c162e('0x6'),_0x39eae0,JSON[_0x3c162e('0x10')](_0x319980)),_0x4edcb1(_0x319980);})[_0x40eb53('0x5')](function(_0x52c92a){const _0x46edf2=_0x40eb53;logger[_0x46edf2('0x2')](_0x46edf2('0x6'),_0x52c92a[_0x46edf2('0xb')],_0x39eae0),_0x556161(_0x4ea33f[_0x46edf2('0x2')](0x1f4,_0x52c92a[_0x46edf2('0xb')]));});});},exports[_0x8175e7('0xd')]=function(_0x432270){const _0x473714=this;return new Promise(function(_0x7ee292,_0x1bbbaf){const _0x111bc=a283_0x44f8;return db[_0x111bc('0xc')][_0x111bc('0x0')]({'raw':_0x432270[_0x111bc('0x13')]?_0x432270[_0x111bc('0x13')][_0x111bc('0x12')]===undefined?!![]:![]:!![],'where':_0x432270[_0x111bc('0x13')]?_0x432270[_0x111bc('0x13')][_0x111bc('0x1')]||null:null,'attributes':_0x432270['options']?_0x432270[_0x111bc('0x13')][_0x111bc('0x9')]||null:null,'include':_0x432270['options']?_0x432270[_0x111bc('0x13')][_0x111bc('0xa')]?_[_0x111bc('0x7')](_0x432270[_0x111bc('0x13')][_0x111bc('0xa')],function(_0x336a63){const _0x567e54=_0x111bc;return{'model':db[_0x336a63[_0x567e54('0xe')]],'as':_0x336a63['as'],'attributes':_0x336a63['attributes'],'include':_0x336a63[_0x567e54('0xa')]?_[_0x567e54('0x7')](_0x336a63[_0x567e54('0xa')],function(_0x5a2378){const _0x38d9c0=_0x567e54;return{'model':db[_0x5a2378[_0x38d9c0('0xe')]],'as':_0x5a2378['as'],'attributes':_0x5a2378[_0x38d9c0('0x9')],'include':_0x5a2378[_0x38d9c0('0xa')]?_['map'](_0x5a2378[_0x38d9c0('0xa')],function(_0x242e31){const _0x192f1f=_0x38d9c0;return{'model':db[_0x242e31[_0x192f1f('0xe')]],'as':_0x242e31['as'],'attributes':_0x242e31[_0x192f1f('0x9')]};}):[]};}):[]};}):[]:[]})[_0x111bc('0x3')](function(_0x509156){const _0x4227ae=_0x111bc;logger[_0x4227ae('0x11')](_0x4227ae('0xd'),_0x432270),logger[_0x4227ae('0x4')](_0x4227ae('0xd'),_0x432270,JSON[_0x4227ae('0x10')](_0x509156)),_0x7ee292(_0x509156);})[_0x111bc('0x5')](function(_0x465654){const _0x98d3c0=_0x111bc;logger['error']('ShowSalesforceAccount',_0x465654['message'],_0x432270),_0x1bbbaf(_0x473714[_0x98d3c0('0x2')](0x1f4,_0x465654['message']));});});}; \ No newline at end of file +const a283_0x4ac5=['model','raw','limit','stringify','message','SalesforceAccount','lodash','options','debug','ShowSalesforceAccount','../../mysqldb','error','findAll','GetSalesforceAccount','../../config/logger','include','attributes','info','then','catch','rpc','where','map'];(function(_0x14e6a1,_0x4ac52a){const _0x41a1d2=function(_0x56ada9){while(--_0x56ada9){_0x14e6a1['push'](_0x14e6a1['shift']());}};_0x41a1d2(++_0x4ac52a);}(a283_0x4ac5,0xbb));const a283_0x41a1=function(_0x14e6a1,_0x4ac52a){_0x14e6a1=_0x14e6a1-0x0;let _0x41a1d2=a283_0x4ac5[_0x14e6a1];return _0x41a1d2;};const _0x373932=a283_0x41a1;'use strict';const _=require(_0x373932('0x3')),db=require(_0x373932('0x7'))['db'],logger=require(_0x373932('0xb'))(_0x373932('0x11'));exports[_0x373932('0xa')]=function(_0x56ada9){const _0x38119d=this;return new Promise(function(_0x3e9d37,_0x1e5eb5){const _0x1b0a7b=a283_0x41a1;return db[_0x1b0a7b('0x2')][_0x1b0a7b('0x9')]({'raw':_0x56ada9[_0x1b0a7b('0x4')]?_0x56ada9[_0x1b0a7b('0x4')][_0x1b0a7b('0x15')]===undefined?!![]:![]:!![],'where':_0x56ada9[_0x1b0a7b('0x4')]?_0x56ada9[_0x1b0a7b('0x4')][_0x1b0a7b('0x12')]||null:null,'attributes':_0x56ada9[_0x1b0a7b('0x4')]?_0x56ada9['options'][_0x1b0a7b('0xd')]||null:null,'limit':_0x56ada9[_0x1b0a7b('0x4')]?_0x56ada9[_0x1b0a7b('0x4')][_0x1b0a7b('0x16')]||null:null,'include':_0x56ada9[_0x1b0a7b('0x4')]?_0x56ada9['options'][_0x1b0a7b('0xc')]?_['map'](_0x56ada9['options'][_0x1b0a7b('0xc')],function(_0x4aa44f){const _0x278ab7=_0x1b0a7b;return{'model':db[_0x4aa44f[_0x278ab7('0x14')]],'as':_0x4aa44f['as'],'attributes':_0x4aa44f['attributes'],'include':_0x4aa44f[_0x278ab7('0xc')]?_[_0x278ab7('0x13')](_0x4aa44f[_0x278ab7('0xc')],function(_0x4a1b34){const _0x2678af=_0x278ab7;return{'model':db[_0x4a1b34[_0x2678af('0x14')]],'as':_0x4a1b34['as'],'attributes':_0x4a1b34[_0x2678af('0xd')],'include':_0x4a1b34['include']?_[_0x2678af('0x13')](_0x4a1b34[_0x2678af('0xc')],function(_0x2b10fa){const _0x27beb3=_0x2678af;return{'model':db[_0x2b10fa['model']],'as':_0x2b10fa['as'],'attributes':_0x2b10fa[_0x27beb3('0xd')]};}):[]};}):[]};}):[]:[]})[_0x1b0a7b('0xf')](function(_0x173c08){const _0x480746=_0x1b0a7b;logger[_0x480746('0xe')](_0x480746('0xa'),_0x56ada9),logger[_0x480746('0x5')](_0x480746('0xa'),_0x56ada9,JSON[_0x480746('0x0')](_0x173c08)),_0x3e9d37(_0x173c08);})[_0x1b0a7b('0x10')](function(_0x4101cb){const _0x48339=_0x1b0a7b;logger[_0x48339('0x8')](_0x48339('0xa'),_0x4101cb[_0x48339('0x1')],_0x56ada9),_0x1e5eb5(_0x38119d['error'](0x1f4,_0x4101cb[_0x48339('0x1')]));});});},exports[_0x373932('0x6')]=function(_0x3b7258){const _0x336f3d=this;return new Promise(function(_0x369894,_0xb98bd9){const _0x4e6fa2=a283_0x41a1;return db['SalesforceAccount']['findOne']({'raw':_0x3b7258['options']?_0x3b7258[_0x4e6fa2('0x4')][_0x4e6fa2('0x15')]===undefined?!![]:![]:!![],'where':_0x3b7258[_0x4e6fa2('0x4')]?_0x3b7258[_0x4e6fa2('0x4')]['where']||null:null,'attributes':_0x3b7258[_0x4e6fa2('0x4')]?_0x3b7258[_0x4e6fa2('0x4')][_0x4e6fa2('0xd')]||null:null,'include':_0x3b7258[_0x4e6fa2('0x4')]?_0x3b7258[_0x4e6fa2('0x4')][_0x4e6fa2('0xc')]?_[_0x4e6fa2('0x13')](_0x3b7258[_0x4e6fa2('0x4')][_0x4e6fa2('0xc')],function(_0x1c8fc9){const _0x5f8985=_0x4e6fa2;return{'model':db[_0x1c8fc9[_0x5f8985('0x14')]],'as':_0x1c8fc9['as'],'attributes':_0x1c8fc9[_0x5f8985('0xd')],'include':_0x1c8fc9['include']?_[_0x5f8985('0x13')](_0x1c8fc9[_0x5f8985('0xc')],function(_0xdc5966){const _0x140a4e=_0x5f8985;return{'model':db[_0xdc5966[_0x140a4e('0x14')]],'as':_0xdc5966['as'],'attributes':_0xdc5966[_0x140a4e('0xd')],'include':_0xdc5966[_0x140a4e('0xc')]?_[_0x140a4e('0x13')](_0xdc5966['include'],function(_0x456d38){const _0x21720c=_0x140a4e;return{'model':db[_0x456d38[_0x21720c('0x14')]],'as':_0x456d38['as'],'attributes':_0x456d38[_0x21720c('0xd')]};}):[]};}):[]};}):[]:[]})[_0x4e6fa2('0xf')](function(_0x120022){const _0x3f0940=_0x4e6fa2;logger['info'](_0x3f0940('0x6'),_0x3b7258),logger[_0x3f0940('0x5')]('ShowSalesforceAccount',_0x3b7258,JSON[_0x3f0940('0x0')](_0x120022)),_0x369894(_0x120022);})['catch'](function(_0x10097b){const _0x30b86c=_0x4e6fa2;logger[_0x30b86c('0x8')](_0x30b86c('0x6'),_0x10097b['message'],_0x3b7258),_0xb98bd9(_0x336f3d[_0x30b86c('0x8')](0x1f4,_0x10097b[_0x30b86c('0x1')]));});});}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/index.js b/server/api/intSalesforceConfiguration/index.js index c40f7c4..0ac5287 100644 --- a/server/api/intSalesforceConfiguration/index.js +++ b/server/api/intSalesforceConfiguration/index.js @@ -1 +1 @@ -const a284_0x412a=['exports','/:id','get','create','../../components/auth/service','getFields','index','./intSalesforceConfiguration.controller','/:id/subjects','/:id/fields','getSubjects','isAuthenticated','show','express','delete','post','put'];(function(_0x1f73e1,_0x412a54){const _0x358275=function(_0x3c20d8){while(--_0x3c20d8){_0x1f73e1['push'](_0x1f73e1['shift']());}};_0x358275(++_0x412a54);}(a284_0x412a,0x1e8));const a284_0x3582=function(_0x1f73e1,_0x412a54){_0x1f73e1=_0x1f73e1-0x0;let _0x358275=a284_0x412a[_0x1f73e1];return _0x358275;};const _0x3c7293=a284_0x3582;'use strict';const express=require(_0x3c7293('0x1')),router=express['Router'](),auth=require(_0x3c7293('0x9')),controller=require(_0x3c7293('0xc'));router['get']('/',auth['isAuthenticated'](),controller[_0x3c7293('0xb')]),router[_0x3c7293('0x7')](_0x3c7293('0x6'),auth['isAuthenticated'](),controller[_0x3c7293('0x0')]),router[_0x3c7293('0x7')](_0x3c7293('0xe'),auth[_0x3c7293('0x10')](),controller[_0x3c7293('0xa')]),router[_0x3c7293('0x7')](_0x3c7293('0xd'),auth[_0x3c7293('0x10')](),controller[_0x3c7293('0xf')]),router['get']('/:id/descriptions',auth['isAuthenticated'](),controller['getDescriptions']),router[_0x3c7293('0x3')]('/',auth[_0x3c7293('0x10')](),controller[_0x3c7293('0x8')]),router[_0x3c7293('0x4')](_0x3c7293('0x6'),auth[_0x3c7293('0x10')](),controller['update']),router[_0x3c7293('0x2')](_0x3c7293('0x6'),auth[_0x3c7293('0x10')](),controller['destroy']),module[_0x3c7293('0x5')]=router; \ No newline at end of file +const a284_0x1e90=['./intSalesforceConfiguration.controller','/:id/fields','/:id','isAuthenticated','show','delete','express','update','getSubjects','post','destroy','put','Router','getFields','exports','get'];(function(_0x40a7cf,_0x1e906c){const _0x4b4e91=function(_0xb9288f){while(--_0xb9288f){_0x40a7cf['push'](_0x40a7cf['shift']());}};_0x4b4e91(++_0x1e906c);}(a284_0x1e90,0xf7));const a284_0x4b4e=function(_0x40a7cf,_0x1e906c){_0x40a7cf=_0x40a7cf-0x0;let _0x4b4e91=a284_0x1e90[_0x40a7cf];return _0x4b4e91;};const _0x15376a=a284_0x4b4e;'use strict';const express=require(_0x15376a('0xf')),router=express[_0x15376a('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x15376a('0x9'));router[_0x15376a('0x8')]('/',auth[_0x15376a('0xc')](),controller['index']),router[_0x15376a('0x8')]('/:id',auth[_0x15376a('0xc')](),controller[_0x15376a('0xd')]),router['get'](_0x15376a('0xa'),auth[_0x15376a('0xc')](),controller[_0x15376a('0x6')]),router[_0x15376a('0x8')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x15376a('0x1')]),router[_0x15376a('0x8')]('/:id/descriptions',auth[_0x15376a('0xc')](),controller['getDescriptions']),router[_0x15376a('0x2')]('/',auth[_0x15376a('0xc')](),controller['create']),router[_0x15376a('0x4')](_0x15376a('0xb'),auth[_0x15376a('0xc')](),controller[_0x15376a('0x0')]),router[_0x15376a('0xe')](_0x15376a('0xb'),auth[_0x15376a('0xc')](),controller[_0x15376a('0x3')]),module[_0x15376a('0x7')]=router; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js index 480a960..a665fa9 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js @@ -1 +1 @@ -const a285_0xa200=['STRING','ENUM','Case','exports','sequelize','contact','Task','lead','contact_lead','nothing'];(function(_0x1d1661,_0xa2004d){const _0x18b81e=function(_0x26f22d){while(--_0x26f22d){_0x1d1661['push'](_0x1d1661['shift']());}};_0x18b81e(++_0xa2004d);}(a285_0xa200,0xf7));const a285_0x18b8=function(_0x1d1661,_0xa2004d){_0x1d1661=_0x1d1661-0x0;let _0x18b81e=a285_0xa200[_0x1d1661];return _0x18b81e;};const _0x3e69ba=a285_0x18b8;'use strict';const Sequelize=require(_0x3e69ba('0x7'));module[_0x3e69ba('0x6')]={'name':{'type':Sequelize[_0x3e69ba('0x3')]},'description':{'type':Sequelize[_0x3e69ba('0x3')]},'ticketType':{'type':Sequelize[_0x3e69ba('0x4')]('Task',_0x3e69ba('0x5')),'defaultValue':_0x3e69ba('0x9')},'moduleSearch':{'type':Sequelize[_0x3e69ba('0x4')](_0x3e69ba('0x1'),'contact',_0x3e69ba('0x0')),'defaultValue':'contact_lead'},'moduleCreate':{'type':Sequelize['ENUM'](_0x3e69ba('0x2'),_0x3e69ba('0x8'),_0x3e69ba('0x0')),'defaultValue':_0x3e69ba('0x0')}}; \ No newline at end of file +const a285_0x5ae9=['lead','ENUM','contact','sequelize','Case','STRING','contact_lead','nothing'];(function(_0x204712,_0x5ae916){const _0x4cf91c=function(_0x38edec){while(--_0x38edec){_0x204712['push'](_0x204712['shift']());}};_0x4cf91c(++_0x5ae916);}(a285_0x5ae9,0x1da));const a285_0x4cf9=function(_0x204712,_0x5ae916){_0x204712=_0x204712-0x0;let _0x4cf91c=a285_0x5ae9[_0x204712];return _0x4cf91c;};const _0x3d43b1=a285_0x4cf9;'use strict';const Sequelize=require(_0x3d43b1('0x1'));module['exports']={'name':{'type':Sequelize[_0x3d43b1('0x3')]},'description':{'type':Sequelize[_0x3d43b1('0x3')]},'ticketType':{'type':Sequelize[_0x3d43b1('0x7')]('Task',_0x3d43b1('0x2')),'defaultValue':'Task'},'moduleSearch':{'type':Sequelize[_0x3d43b1('0x7')](_0x3d43b1('0x4'),_0x3d43b1('0x0'),_0x3d43b1('0x6')),'defaultValue':_0x3d43b1('0x4')},'moduleCreate':{'type':Sequelize[_0x3d43b1('0x7')](_0x3d43b1('0x5'),_0x3d43b1('0x0'),_0x3d43b1('0x6')),'defaultValue':_0x3d43b1('0x6')}}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js index 0699657..25690d5 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js @@ -1 +1 @@ -const a286_0x590d=['length','order','intersection','status','SalesforceField','fieldName','update','../../config/logger','where','model','offset','error','query','pick','getDescriptions','like','catch','params','filter','map','sendStatus','getSubjects','getFields','type','limit','../../mysqldb','options','sort','attributes','rawAttributes','findOne','../../components/parsers/qs','api','set','merge','Content-Range','filters','keys','nolimit','findAll','show','SalesforceConfiguration','json','undefined','name','end','then','count','create','fields','lodash','stack','body','include','rows','includeAll'];(function(_0x276dc2,_0x590dbf){const _0x2db63d=function(_0x2724e1){while(--_0x2724e1){_0x276dc2['push'](_0x276dc2['shift']());}};_0x2db63d(++_0x590dbf);}(a286_0x590d,0xef));const a286_0x2db6=function(_0x276dc2,_0x590dbf){_0x276dc2=_0x276dc2-0x0;let _0x2db63d=a286_0x590d[_0x276dc2];return _0x2db63d;};const _0x1cf0d2=a286_0x2db6;'use strict';const _=require(_0x1cf0d2('0x23')),qs=require(_0x1cf0d2('0x10')),logger=require(_0x1cf0d2('0x30'))(_0x1cf0d2('0x11')),db=require(_0x1cf0d2('0xa'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2724e1,_0x49c159){return _0x49c159=_0x49c159||0xc8,function(_0x18574f){const _0x2f3983=a286_0x2db6;if(_0x18574f)return _0x2724e1[_0x2f3983('0x2c')](_0x49c159)[_0x2f3983('0x1b')](_0x18574f);};}function respondWithFilteredResult(_0x5e883e,_0x8d18ff){return function(_0x3f29b2){const _0x514a1d=a286_0x2db6;if(_0x3f29b2){const _0x4e4fa9=_0x3f29b2[_0x514a1d('0x20')],_0x4f43ce=_0x8d18ff['offset'];let _0x1327f9=_0x8d18ff[_0x514a1d('0x33')]+_0x8d18ff['limit'],_0x4e4147;return _0x1327f9>=_0x4e4fa9?(_0x1327f9=_0x4e4fa9,_0x4e4147=0xc8):_0x4e4147=0xce,_0x5e883e[_0x514a1d('0x2c')](_0x4e4147),_0x5e883e[_0x514a1d('0x12')](_0x514a1d('0x14'),_0x4f43ce+'-'+_0x1327f9+'/'+_0x4e4fa9)[_0x514a1d('0x1b')](_0x3f29b2);}return null;};}function saveUpdates(_0x1ad762){return function(_0x5ccc3c){const _0x31250e=a286_0x2db6;if(_0x5ccc3c)return _0x5ccc3c[_0x31250e('0x2f')](_0x1ad762)['then'](function(_0x40333b){return _0x40333b;});return null;};}function removeEntity(_0xd2ebce){return function(_0x2506bb){if(_0x2506bb)return _0x2506bb['destroy']()['then'](function(){const _0x4427be=a286_0x2db6;_0xd2ebce[_0x4427be('0x2c')](0xcc)[_0x4427be('0x1e')]();});};}function handleEntityNotFound(_0x5a3954){return function(_0x16f5bc){const _0x404a03=a286_0x2db6;return!_0x16f5bc&&_0x5a3954[_0x404a03('0x5')](0x194),_0x16f5bc;};}function handleError(_0x55adff,_0x267f87){return _0x267f87=_0x267f87||0x1f4,function(_0x56daa9){const _0x4aa8e3=a286_0x2db6;logger[_0x4aa8e3('0x34')](_0x56daa9[_0x4aa8e3('0x24')]),_0x56daa9[_0x4aa8e3('0x1d')]&&delete _0x56daa9['name'],_0x55adff[_0x4aa8e3('0x2c')](_0x267f87)['send'](_0x56daa9);};}exports['index']=function(_0x2b75cd,_0x16c67b){const _0xe1b67=_0x1cf0d2;let _0x133892={};const _0x3058c7={},_0xa984bc={'count':0x0,'rows':[]},_0x45e3e7=_[_0xe1b67('0x4')](db[_0xe1b67('0x1a')][_0xe1b67('0xe')],function(_0x356bc9){const _0x216942=_0xe1b67;return{'name':_0x356bc9[_0x216942('0x2e')],'type':_0x356bc9[_0x216942('0x8')]['key']};});_0x3058c7[_0xe1b67('0x32')]=_[_0xe1b67('0x4')](_0x45e3e7,_0xe1b67('0x1d')),_0x3058c7['query']=_[_0xe1b67('0x16')](_0x2b75cd['query']),_0x3058c7['filters']=_[_0xe1b67('0x2b')](_0x3058c7['model'],_0x3058c7[_0xe1b67('0x35')]),_0x133892[_0xe1b67('0xd')]=_[_0xe1b67('0x2b')](_0x3058c7[_0xe1b67('0x32')],qs[_0xe1b67('0x22')](_0x2b75cd[_0xe1b67('0x35')][_0xe1b67('0x22')])),_0x133892[_0xe1b67('0xd')]=_0x133892[_0xe1b67('0xd')][_0xe1b67('0x29')]?_0x133892[_0xe1b67('0xd')]:_0x3058c7['model'];typeof _0x2b75cd[_0xe1b67('0x35')][_0xe1b67('0x17')]===_0xe1b67('0x1c')&&(_0x133892[_0xe1b67('0x9')]=qs[_0xe1b67('0x9')](_0x2b75cd[_0xe1b67('0x35')][_0xe1b67('0x9')]),_0x133892[_0xe1b67('0x33')]=qs[_0xe1b67('0x33')](_0x2b75cd[_0xe1b67('0x35')][_0xe1b67('0x33')]));_0x133892['order']=qs[_0xe1b67('0xc')](_0x2b75cd['query']['sort']),_0x133892[_0xe1b67('0x31')]=qs[_0xe1b67('0x15')](_[_0xe1b67('0x36')](_0x2b75cd[_0xe1b67('0x35')],_0x3058c7[_0xe1b67('0x15')]),_0x45e3e7);_0x2b75cd['query']['filter']&&(_0x133892[_0xe1b67('0x31')]=_[_0xe1b67('0x13')](_0x133892[_0xe1b67('0x31')],{[Op['or']]:_[_0xe1b67('0x4')](_0x45e3e7,function(_0x1cd23f){const _0x5238d6=_0xe1b67;if(_0x1cd23f[_0x5238d6('0x8')]!=='VIRTUAL'){const _0x3c506c={};return _0x3c506c[_0x1cd23f['name']]={[Op['like']]:'%'+_0x2b75cd['query'][_0x5238d6('0x3')]+'%'},_0x3c506c;}})}));_0x133892=_['merge']({},_0x133892,_0x2b75cd['options']);const _0x1310bc={'where':_0x133892[_0xe1b67('0x31')]};return db[_0xe1b67('0x1a')][_0xe1b67('0x20')](_0x1310bc)['then'](function(_0xfefddd){const _0x5d2f10=_0xe1b67;return _0xa984bc[_0x5d2f10('0x20')]=_0xfefddd,_0x2b75cd[_0x5d2f10('0x35')]['includeAll']&&(_0x133892[_0x5d2f10('0x26')]=[{'all':!![]}]),db['SalesforceConfiguration'][_0x5d2f10('0x18')](_0x133892);})[_0xe1b67('0x1f')](function(_0x49af67){const _0x21c479=_0xe1b67;return _0xa984bc[_0x21c479('0x27')]=_0x49af67,_0xa984bc;})[_0xe1b67('0x1f')](respondWithFilteredResult(_0x16c67b,_0x133892))['catch'](handleError(_0x16c67b,null));},exports[_0x1cf0d2('0x19')]=function(_0x432116,_0xd0b455){const _0x5ee874=_0x1cf0d2;let _0x38db0f={'raw':![],'where':{'id':_0x432116['params']['id']}};const _0x74bd1a={};return _0x74bd1a[_0x5ee874('0x32')]=_['keys'](db[_0x5ee874('0x1a')][_0x5ee874('0xe')]),_0x74bd1a[_0x5ee874('0x35')]=_[_0x5ee874('0x16')](_0x432116[_0x5ee874('0x35')]),_0x74bd1a[_0x5ee874('0x15')]=_[_0x5ee874('0x2b')](_0x74bd1a[_0x5ee874('0x32')],_0x74bd1a[_0x5ee874('0x35')]),_0x38db0f[_0x5ee874('0xd')]=_[_0x5ee874('0x2b')](_0x74bd1a[_0x5ee874('0x32')],qs[_0x5ee874('0x22')](_0x432116[_0x5ee874('0x35')][_0x5ee874('0x22')])),_0x38db0f['attributes']=_0x38db0f[_0x5ee874('0xd')]['length']?_0x38db0f[_0x5ee874('0xd')]:_0x74bd1a[_0x5ee874('0x32')],_0x432116['query'][_0x5ee874('0x28')]&&(_0x38db0f[_0x5ee874('0x26')]=[{'all':!![]}]),_0x38db0f=_[_0x5ee874('0x13')]({},_0x38db0f,_0x432116[_0x5ee874('0xb')]),db['SalesforceConfiguration'][_0x5ee874('0xf')](_0x38db0f)[_0x5ee874('0x1f')](handleEntityNotFound(_0xd0b455,null))[_0x5ee874('0x1f')](respondWithResult(_0xd0b455,null))[_0x5ee874('0x1')](handleError(_0xd0b455,null));},exports[_0x1cf0d2('0x21')]=function(_0x1450c8,_0x127a96){const _0x474077=_0x1cf0d2;return db['SalesforceConfiguration'][_0x474077('0x21')](_0x1450c8[_0x474077('0x25')],{})[_0x474077('0x1f')](respondWithResult(_0x127a96,0xc9))['catch'](handleError(_0x127a96,null));},exports[_0x1cf0d2('0x2f')]=function(_0x4d4521,_0x1d5a40){const _0x24ec99=_0x1cf0d2;return _0x4d4521['body']['id']&&delete _0x4d4521[_0x24ec99('0x25')]['id'],db[_0x24ec99('0x1a')][_0x24ec99('0xf')]({'where':{'id':_0x4d4521[_0x24ec99('0x2')]['id']}})[_0x24ec99('0x1f')](handleEntityNotFound(_0x1d5a40,null))[_0x24ec99('0x1f')](saveUpdates(_0x4d4521[_0x24ec99('0x25')],null))[_0x24ec99('0x1f')](respondWithResult(_0x1d5a40,null))[_0x24ec99('0x1')](handleError(_0x1d5a40,null));},exports['destroy']=function(_0x3d3613,_0x58dad5){const _0x1c8fe2=_0x1cf0d2;return db[_0x1c8fe2('0x1a')][_0x1c8fe2('0xf')]({'where':{'id':_0x3d3613[_0x1c8fe2('0x2')]['id']}})['then'](handleEntityNotFound(_0x58dad5,null))['then'](removeEntity(_0x58dad5,null))[_0x1c8fe2('0x1')](handleError(_0x58dad5,null));},exports['getFields']=function(_0x56bc4b,_0x1c4b32){const _0x49e0cc=_0x1cf0d2;let _0x1788b7={};const _0x1b37d0={};let _0x37c78f,_0x559f9b;return db[_0x49e0cc('0x1a')][_0x49e0cc('0xf')]({'where':{'id':_0x56bc4b[_0x49e0cc('0x2')]['id']}})[_0x49e0cc('0x1f')](handleEntityNotFound(_0x1c4b32,null))['then'](function(_0x55b986){const _0x25de1b=_0x49e0cc;if(_0x55b986)return _0x37c78f=_0x55b986,_0x1b37d0[_0x25de1b('0x32')]=_['keys'](db[_0x25de1b('0x2d')][_0x25de1b('0xe')]),_0x1b37d0[_0x25de1b('0x35')]=_[_0x25de1b('0x16')](_0x56bc4b['query']),_0x1b37d0[_0x25de1b('0x15')]=_[_0x25de1b('0x2b')](_0x1b37d0[_0x25de1b('0x32')],_0x1b37d0[_0x25de1b('0x35')]),_0x1788b7[_0x25de1b('0xd')]=_[_0x25de1b('0x2b')](_0x1b37d0['model'],qs[_0x25de1b('0x22')](_0x56bc4b[_0x25de1b('0x35')][_0x25de1b('0x22')])),_0x1788b7[_0x25de1b('0xd')]=_0x1788b7[_0x25de1b('0xd')][_0x25de1b('0x29')]?_0x1788b7['attributes']:_0x1b37d0[_0x25de1b('0x32')],_0x1788b7[_0x25de1b('0x2a')]=qs['sort'](_0x56bc4b[_0x25de1b('0x35')][_0x25de1b('0xc')]),_0x1788b7[_0x25de1b('0x31')]=qs[_0x25de1b('0x15')](_['pick'](_0x56bc4b['query'],_0x1b37d0['filters'])),_0x56bc4b['query'][_0x25de1b('0x3')]&&(_0x1788b7[_0x25de1b('0x31')]=_[_0x25de1b('0x13')](_0x1788b7['where'],{[Op['or']]:_[_0x25de1b('0x4')](_0x1788b7[_0x25de1b('0xd')],function(_0x4e2e12){const _0x2a3b97=_0x25de1b,_0x34a9de={};return _0x34a9de[_0x4e2e12]={[Op[_0x2a3b97('0x0')]]:'%'+_0x56bc4b[_0x2a3b97('0x35')][_0x2a3b97('0x3')]+'%'},_0x34a9de;})})),_0x1788b7=_[_0x25de1b('0x13')]({},_0x1788b7,_0x56bc4b[_0x25de1b('0xb')]),_0x37c78f[_0x25de1b('0x7')](_0x1788b7);})[_0x49e0cc('0x1f')](function(_0x32aa13){const _0x1c009c=_0x49e0cc;if(_0x32aa13)return _0x559f9b=_0x32aa13['length'],typeof _0x56bc4b['query'][_0x1c009c('0x17')]===_0x1c009c('0x1c')&&(_0x1788b7[_0x1c009c('0x9')]=qs[_0x1c009c('0x9')](_0x56bc4b['query'][_0x1c009c('0x9')]),_0x1788b7['offset']=qs[_0x1c009c('0x33')](_0x56bc4b['query']['offset'])),_0x37c78f[_0x1c009c('0x7')](_0x1788b7);})[_0x49e0cc('0x1f')](function(_0x2bef10){if(_0x2bef10)return _0x2bef10?{'count':_0x559f9b,'rows':_0x2bef10}:null;})['then'](respondWithResult(_0x1c4b32,null))[_0x49e0cc('0x1')](handleError(_0x1c4b32,null));},exports[_0x1cf0d2('0x6')]=function(_0x3f6a4f,_0x5c99fe){const _0x23d534=_0x1cf0d2;let _0x1bb1f3={};const _0x6c7cad={};let _0x1f4f1e,_0x35e18c;return db['SalesforceConfiguration'][_0x23d534('0xf')]({'where':{'id':_0x3f6a4f[_0x23d534('0x2')]['id']}})[_0x23d534('0x1f')](handleEntityNotFound(_0x5c99fe,null))[_0x23d534('0x1f')](function(_0x4e52e6){const _0x4c33e7=_0x23d534;if(_0x4e52e6)return _0x1f4f1e=_0x4e52e6,_0x6c7cad[_0x4c33e7('0x32')]=_[_0x4c33e7('0x16')](db['SalesforceField'][_0x4c33e7('0xe')]),_0x6c7cad[_0x4c33e7('0x35')]=_['keys'](_0x3f6a4f['query']),_0x6c7cad[_0x4c33e7('0x15')]=_[_0x4c33e7('0x2b')](_0x6c7cad['model'],_0x6c7cad[_0x4c33e7('0x35')]),_0x1bb1f3[_0x4c33e7('0xd')]=_['intersection'](_0x6c7cad[_0x4c33e7('0x32')],qs['fields'](_0x3f6a4f[_0x4c33e7('0x35')][_0x4c33e7('0x22')])),_0x1bb1f3[_0x4c33e7('0xd')]=_0x1bb1f3['attributes'][_0x4c33e7('0x29')]?_0x1bb1f3[_0x4c33e7('0xd')]:_0x6c7cad['model'],_0x1bb1f3[_0x4c33e7('0x2a')]=qs[_0x4c33e7('0xc')](_0x3f6a4f[_0x4c33e7('0x35')][_0x4c33e7('0xc')]),_0x1bb1f3[_0x4c33e7('0x31')]=qs[_0x4c33e7('0x15')](_[_0x4c33e7('0x36')](_0x3f6a4f[_0x4c33e7('0x35')],_0x6c7cad[_0x4c33e7('0x15')])),_0x3f6a4f[_0x4c33e7('0x35')][_0x4c33e7('0x3')]&&(_0x1bb1f3[_0x4c33e7('0x31')]=_[_0x4c33e7('0x13')](_0x1bb1f3[_0x4c33e7('0x31')],{[Op['or']]:_[_0x4c33e7('0x4')](_0x1bb1f3['attributes'],function(_0x30356d){const _0x3016f1=_0x4c33e7,_0x5a2be3={};return _0x5a2be3[_0x30356d]={[Op[_0x3016f1('0x0')]]:'%'+_0x3f6a4f[_0x3016f1('0x35')][_0x3016f1('0x3')]+'%'},_0x5a2be3;})})),_0x1bb1f3=_['merge']({},_0x1bb1f3,_0x3f6a4f[_0x4c33e7('0xb')]),_0x1f4f1e['getSubjects'](_0x1bb1f3);})[_0x23d534('0x1f')](function(_0x5bf27c){const _0x3dfe9e=_0x23d534;if(_0x5bf27c)return _0x35e18c=_0x5bf27c[_0x3dfe9e('0x29')],typeof _0x3f6a4f['query'][_0x3dfe9e('0x17')]==='undefined'&&(_0x1bb1f3['limit']=qs[_0x3dfe9e('0x9')](_0x3f6a4f[_0x3dfe9e('0x35')]['limit']),_0x1bb1f3['offset']=qs[_0x3dfe9e('0x33')](_0x3f6a4f[_0x3dfe9e('0x35')][_0x3dfe9e('0x33')])),_0x1f4f1e['getSubjects'](_0x1bb1f3);})[_0x23d534('0x1f')](function(_0x112e3f){if(_0x112e3f)return _0x112e3f?{'count':_0x35e18c,'rows':_0x112e3f}:null;})[_0x23d534('0x1f')](respondWithResult(_0x5c99fe,null))[_0x23d534('0x1')](handleError(_0x5c99fe,null));},exports[_0x1cf0d2('0x37')]=function(_0x5b5770,_0x31b3e6){const _0x56f383=_0x1cf0d2;let _0x20cde1={};const _0x58ffa0={};let _0x319dd4,_0x2cdcc9;return db[_0x56f383('0x1a')][_0x56f383('0xf')]({'where':{'id':_0x5b5770['params']['id']}})[_0x56f383('0x1f')](handleEntityNotFound(_0x31b3e6,null))[_0x56f383('0x1f')](function(_0xac0faa){const _0x207487=_0x56f383;if(_0xac0faa)return _0x319dd4=_0xac0faa,_0x58ffa0[_0x207487('0x32')]=_['keys'](db[_0x207487('0x2d')][_0x207487('0xe')]),_0x58ffa0[_0x207487('0x35')]=_['keys'](_0x5b5770[_0x207487('0x35')]),_0x58ffa0[_0x207487('0x15')]=_[_0x207487('0x2b')](_0x58ffa0[_0x207487('0x32')],_0x58ffa0[_0x207487('0x35')]),_0x20cde1[_0x207487('0xd')]=_[_0x207487('0x2b')](_0x58ffa0[_0x207487('0x32')],qs[_0x207487('0x22')](_0x5b5770[_0x207487('0x35')][_0x207487('0x22')])),_0x20cde1[_0x207487('0xd')]=_0x20cde1[_0x207487('0xd')]['length']?_0x20cde1[_0x207487('0xd')]:_0x58ffa0[_0x207487('0x32')],_0x20cde1[_0x207487('0x2a')]=qs[_0x207487('0xc')](_0x5b5770[_0x207487('0x35')][_0x207487('0xc')]),_0x20cde1[_0x207487('0x31')]=qs[_0x207487('0x15')](_[_0x207487('0x36')](_0x5b5770[_0x207487('0x35')],_0x58ffa0['filters'])),_0x5b5770[_0x207487('0x35')]['filter']&&(_0x20cde1[_0x207487('0x31')]=_[_0x207487('0x13')](_0x20cde1[_0x207487('0x31')],{[Op['or']]:_['map'](_0x20cde1[_0x207487('0xd')],function(_0x547ced){const _0x18f5ac=_0x207487,_0x51d925={};return _0x51d925[_0x547ced]={[Op[_0x18f5ac('0x0')]]:'%'+_0x5b5770['query'][_0x18f5ac('0x3')]+'%'},_0x51d925;})})),_0x20cde1=_[_0x207487('0x13')]({},_0x20cde1,_0x5b5770[_0x207487('0xb')]),_0x319dd4['getDescriptions'](_0x20cde1);})[_0x56f383('0x1f')](function(_0x345288){const _0x444129=_0x56f383;if(_0x345288)return _0x2cdcc9=_0x345288[_0x444129('0x29')],typeof _0x5b5770[_0x444129('0x35')]['nolimit']===_0x444129('0x1c')&&(_0x20cde1[_0x444129('0x9')]=qs['limit'](_0x5b5770[_0x444129('0x35')][_0x444129('0x9')]),_0x20cde1[_0x444129('0x33')]=qs[_0x444129('0x33')](_0x5b5770[_0x444129('0x35')]['offset'])),_0x319dd4[_0x444129('0x37')](_0x20cde1);})[_0x56f383('0x1f')](function(_0x371158){if(_0x371158)return _0x371158?{'count':_0x2cdcc9,'rows':_0x371158}:null;})[_0x56f383('0x1f')](respondWithResult(_0x31b3e6,null))[_0x56f383('0x1')](handleError(_0x31b3e6,null));}; \ No newline at end of file +const a286_0x189f=['include','offset','update','filters','../../components/parsers/qs','undefined','pick','show','lodash','sequelize','nolimit','options','name','params','where','error','rawAttributes','includeAll','SalesforceField','length','merge','findAll','attributes','sendStatus','count','like','create','fieldName','Content-Range','rows','../../mysqldb','keys','type','end','api','limit','fields','send','catch','status','order','filter','set','model','then','../../config/logger','query','intersection','findOne','destroy','SalesforceConfiguration','getFields','body','map','getDescriptions','VIRTUAL','getSubjects','sort'];(function(_0x5f5bf6,_0x189f28){const _0x38fc6f=function(_0xb4b71f){while(--_0xb4b71f){_0x5f5bf6['push'](_0x5f5bf6['shift']());}};_0x38fc6f(++_0x189f28);}(a286_0x189f,0x187));const a286_0x38fc=function(_0x5f5bf6,_0x189f28){_0x5f5bf6=_0x5f5bf6-0x0;let _0x38fc6f=a286_0x189f[_0x5f5bf6];return _0x38fc6f;};const _0x1d3b3c=a286_0x38fc;'use strict';const _=require(_0x1d3b3c('0x17')),qs=require(_0x1d3b3c('0x13')),logger=require(_0x1d3b3c('0x2'))(_0x1d3b3c('0x31')),db=require(_0x1d3b3c('0x2d'))['db'],{Op}=require(_0x1d3b3c('0x18'));function respondWithResult(_0xb4b71f,_0x1f0ec1){return _0x1f0ec1=_0x1f0ec1||0xc8,function(_0x18fcfb){const _0x453367=a286_0x38fc;if(_0x18fcfb)return _0xb4b71f[_0x453367('0x36')](_0x1f0ec1)['json'](_0x18fcfb);};}function respondWithFilteredResult(_0x139c19,_0x1f8bb2){return function(_0x46a689){const _0xe91535=a286_0x38fc;if(_0x46a689){const _0x6c8b15=_0x46a689[_0xe91535('0x27')],_0x22b662=_0x1f8bb2['offset'];let _0x17907e=_0x1f8bb2[_0xe91535('0x10')]+_0x1f8bb2[_0xe91535('0x32')],_0x1080fb;return _0x17907e>=_0x6c8b15?(_0x17907e=_0x6c8b15,_0x1080fb=0xc8):_0x1080fb=0xce,_0x139c19[_0xe91535('0x36')](_0x1080fb),_0x139c19[_0xe91535('0x39')](_0xe91535('0x2b'),_0x22b662+'-'+_0x17907e+'/'+_0x6c8b15)['json'](_0x46a689);}return null;};}function saveUpdates(_0x4b119b){return function(_0x121ae9){const _0x1e850c=a286_0x38fc;if(_0x121ae9)return _0x121ae9['update'](_0x4b119b)[_0x1e850c('0x1')](function(_0x43b403){return _0x43b403;});return null;};}function removeEntity(_0xd5847a){return function(_0x5f1868){const _0x22cc54=a286_0x38fc;if(_0x5f1868)return _0x5f1868[_0x22cc54('0x6')]()[_0x22cc54('0x1')](function(){const _0x5c0452=_0x22cc54;_0xd5847a[_0x5c0452('0x36')](0xcc)[_0x5c0452('0x30')]();});};}function handleEntityNotFound(_0x52a1ac){return function(_0x4059a6){const _0x2be388=a286_0x38fc;return!_0x4059a6&&_0x52a1ac[_0x2be388('0x26')](0x194),_0x4059a6;};}function handleError(_0x5e9bba,_0x3330b1){return _0x3330b1=_0x3330b1||0x1f4,function(_0x476948){const _0x33f15c=a286_0x38fc;logger[_0x33f15c('0x1e')](_0x476948['stack']),_0x476948[_0x33f15c('0x1b')]&&delete _0x476948[_0x33f15c('0x1b')],_0x5e9bba[_0x33f15c('0x36')](_0x3330b1)[_0x33f15c('0x34')](_0x476948);};}exports['index']=function(_0x3cf987,_0x13c23b){const _0x5d5487=_0x1d3b3c;let _0x5b28e4={};const _0x186469={},_0x23201c={'count':0x0,'rows':[]},_0x41b9b1=_['map'](db['SalesforceConfiguration'][_0x5d5487('0x1f')],function(_0xe51c1){const _0xe55ccf=_0x5d5487;return{'name':_0xe51c1[_0xe55ccf('0x2a')],'type':_0xe51c1[_0xe55ccf('0x2f')]['key']};});_0x186469[_0x5d5487('0x0')]=_[_0x5d5487('0xa')](_0x41b9b1,_0x5d5487('0x1b')),_0x186469[_0x5d5487('0x3')]=_[_0x5d5487('0x2e')](_0x3cf987[_0x5d5487('0x3')]),_0x186469['filters']=_[_0x5d5487('0x4')](_0x186469[_0x5d5487('0x0')],_0x186469[_0x5d5487('0x3')]),_0x5b28e4[_0x5d5487('0x25')]=_['intersection'](_0x186469[_0x5d5487('0x0')],qs[_0x5d5487('0x33')](_0x3cf987[_0x5d5487('0x3')][_0x5d5487('0x33')])),_0x5b28e4[_0x5d5487('0x25')]=_0x5b28e4[_0x5d5487('0x25')]['length']?_0x5b28e4[_0x5d5487('0x25')]:_0x186469[_0x5d5487('0x0')];typeof _0x3cf987[_0x5d5487('0x3')][_0x5d5487('0x19')]==='undefined'&&(_0x5b28e4[_0x5d5487('0x32')]=qs['limit'](_0x3cf987['query'][_0x5d5487('0x32')]),_0x5b28e4[_0x5d5487('0x10')]=qs['offset'](_0x3cf987[_0x5d5487('0x3')]['offset']));_0x5b28e4['order']=qs[_0x5d5487('0xe')](_0x3cf987[_0x5d5487('0x3')][_0x5d5487('0xe')]),_0x5b28e4['where']=qs[_0x5d5487('0x12')](_[_0x5d5487('0x15')](_0x3cf987[_0x5d5487('0x3')],_0x186469[_0x5d5487('0x12')]),_0x41b9b1);_0x3cf987[_0x5d5487('0x3')][_0x5d5487('0x38')]&&(_0x5b28e4[_0x5d5487('0x1d')]=_[_0x5d5487('0x23')](_0x5b28e4['where'],{[Op['or']]:_['map'](_0x41b9b1,function(_0x2e9e9f){const _0x17e5ce=_0x5d5487;if(_0x2e9e9f[_0x17e5ce('0x2f')]!==_0x17e5ce('0xc')){const _0xb9b7f3={};return _0xb9b7f3[_0x2e9e9f[_0x17e5ce('0x1b')]]={[Op[_0x17e5ce('0x28')]]:'%'+_0x3cf987['query'][_0x17e5ce('0x38')]+'%'},_0xb9b7f3;}})}));_0x5b28e4=_[_0x5d5487('0x23')]({},_0x5b28e4,_0x3cf987[_0x5d5487('0x1a')]);const _0x1d2c1b={'where':_0x5b28e4[_0x5d5487('0x1d')]};return db[_0x5d5487('0x7')]['count'](_0x1d2c1b)[_0x5d5487('0x1')](function(_0x5d5b9c){const _0x43102b=_0x5d5487;return _0x23201c[_0x43102b('0x27')]=_0x5d5b9c,_0x3cf987['query'][_0x43102b('0x20')]&&(_0x5b28e4[_0x43102b('0xf')]=[{'all':!![]}]),db[_0x43102b('0x7')][_0x43102b('0x24')](_0x5b28e4);})[_0x5d5487('0x1')](function(_0x586c49){const _0x5d4170=_0x5d5487;return _0x23201c[_0x5d4170('0x2c')]=_0x586c49,_0x23201c;})[_0x5d5487('0x1')](respondWithFilteredResult(_0x13c23b,_0x5b28e4))[_0x5d5487('0x35')](handleError(_0x13c23b,null));},exports[_0x1d3b3c('0x16')]=function(_0x2280b9,_0x5f1f2a){const _0x6c2148=_0x1d3b3c;let _0x72e840={'raw':![],'where':{'id':_0x2280b9[_0x6c2148('0x1c')]['id']}};const _0x5c4d6d={};return _0x5c4d6d['model']=_[_0x6c2148('0x2e')](db[_0x6c2148('0x7')][_0x6c2148('0x1f')]),_0x5c4d6d[_0x6c2148('0x3')]=_[_0x6c2148('0x2e')](_0x2280b9[_0x6c2148('0x3')]),_0x5c4d6d['filters']=_['intersection'](_0x5c4d6d[_0x6c2148('0x0')],_0x5c4d6d[_0x6c2148('0x3')]),_0x72e840[_0x6c2148('0x25')]=_[_0x6c2148('0x4')](_0x5c4d6d['model'],qs[_0x6c2148('0x33')](_0x2280b9['query']['fields'])),_0x72e840[_0x6c2148('0x25')]=_0x72e840[_0x6c2148('0x25')]['length']?_0x72e840[_0x6c2148('0x25')]:_0x5c4d6d['model'],_0x2280b9['query'][_0x6c2148('0x20')]&&(_0x72e840['include']=[{'all':!![]}]),_0x72e840=_[_0x6c2148('0x23')]({},_0x72e840,_0x2280b9[_0x6c2148('0x1a')]),db[_0x6c2148('0x7')][_0x6c2148('0x5')](_0x72e840)[_0x6c2148('0x1')](handleEntityNotFound(_0x5f1f2a,null))[_0x6c2148('0x1')](respondWithResult(_0x5f1f2a,null))[_0x6c2148('0x35')](handleError(_0x5f1f2a,null));},exports[_0x1d3b3c('0x29')]=function(_0x25c091,_0x420f85){const _0x134d59=_0x1d3b3c;return db[_0x134d59('0x7')][_0x134d59('0x29')](_0x25c091[_0x134d59('0x9')],{})['then'](respondWithResult(_0x420f85,0xc9))[_0x134d59('0x35')](handleError(_0x420f85,null));},exports[_0x1d3b3c('0x11')]=function(_0x4dccba,_0x11bf4c){const _0x5e3b28=_0x1d3b3c;return _0x4dccba['body']['id']&&delete _0x4dccba['body']['id'],db[_0x5e3b28('0x7')]['findOne']({'where':{'id':_0x4dccba[_0x5e3b28('0x1c')]['id']}})[_0x5e3b28('0x1')](handleEntityNotFound(_0x11bf4c,null))[_0x5e3b28('0x1')](saveUpdates(_0x4dccba[_0x5e3b28('0x9')],null))[_0x5e3b28('0x1')](respondWithResult(_0x11bf4c,null))['catch'](handleError(_0x11bf4c,null));},exports['destroy']=function(_0x176f0c,_0x104a6a){const _0x21d8ad=_0x1d3b3c;return db[_0x21d8ad('0x7')][_0x21d8ad('0x5')]({'where':{'id':_0x176f0c[_0x21d8ad('0x1c')]['id']}})[_0x21d8ad('0x1')](handleEntityNotFound(_0x104a6a,null))['then'](removeEntity(_0x104a6a,null))['catch'](handleError(_0x104a6a,null));},exports[_0x1d3b3c('0x8')]=function(_0x25de57,_0x36e322){const _0x543115=_0x1d3b3c;let _0x33a50e={};const _0x463419={};let _0x46de98,_0x23a80e;return db[_0x543115('0x7')][_0x543115('0x5')]({'where':{'id':_0x25de57[_0x543115('0x1c')]['id']}})['then'](handleEntityNotFound(_0x36e322,null))['then'](function(_0x1a02bc){const _0xcaae9d=_0x543115;if(_0x1a02bc)return _0x46de98=_0x1a02bc,_0x463419['model']=_[_0xcaae9d('0x2e')](db['SalesforceField']['rawAttributes']),_0x463419[_0xcaae9d('0x3')]=_['keys'](_0x25de57[_0xcaae9d('0x3')]),_0x463419[_0xcaae9d('0x12')]=_['intersection'](_0x463419[_0xcaae9d('0x0')],_0x463419[_0xcaae9d('0x3')]),_0x33a50e[_0xcaae9d('0x25')]=_[_0xcaae9d('0x4')](_0x463419[_0xcaae9d('0x0')],qs['fields'](_0x25de57[_0xcaae9d('0x3')][_0xcaae9d('0x33')])),_0x33a50e[_0xcaae9d('0x25')]=_0x33a50e[_0xcaae9d('0x25')][_0xcaae9d('0x22')]?_0x33a50e[_0xcaae9d('0x25')]:_0x463419['model'],_0x33a50e[_0xcaae9d('0x37')]=qs[_0xcaae9d('0xe')](_0x25de57[_0xcaae9d('0x3')]['sort']),_0x33a50e[_0xcaae9d('0x1d')]=qs['filters'](_[_0xcaae9d('0x15')](_0x25de57['query'],_0x463419[_0xcaae9d('0x12')])),_0x25de57['query'][_0xcaae9d('0x38')]&&(_0x33a50e[_0xcaae9d('0x1d')]=_['merge'](_0x33a50e[_0xcaae9d('0x1d')],{[Op['or']]:_[_0xcaae9d('0xa')](_0x33a50e[_0xcaae9d('0x25')],function(_0x58ea34){const _0xf53f4b=_0xcaae9d,_0x41d240={};return _0x41d240[_0x58ea34]={[Op[_0xf53f4b('0x28')]]:'%'+_0x25de57[_0xf53f4b('0x3')][_0xf53f4b('0x38')]+'%'},_0x41d240;})})),_0x33a50e=_['merge']({},_0x33a50e,_0x25de57[_0xcaae9d('0x1a')]),_0x46de98[_0xcaae9d('0x8')](_0x33a50e);})[_0x543115('0x1')](function(_0x18b736){const _0x21799b=_0x543115;if(_0x18b736)return _0x23a80e=_0x18b736[_0x21799b('0x22')],typeof _0x25de57['query'][_0x21799b('0x19')]===_0x21799b('0x14')&&(_0x33a50e[_0x21799b('0x32')]=qs['limit'](_0x25de57[_0x21799b('0x3')]['limit']),_0x33a50e[_0x21799b('0x10')]=qs[_0x21799b('0x10')](_0x25de57[_0x21799b('0x3')][_0x21799b('0x10')])),_0x46de98[_0x21799b('0x8')](_0x33a50e);})['then'](function(_0x2b6e47){if(_0x2b6e47)return _0x2b6e47?{'count':_0x23a80e,'rows':_0x2b6e47}:null;})['then'](respondWithResult(_0x36e322,null))['catch'](handleError(_0x36e322,null));},exports[_0x1d3b3c('0xd')]=function(_0x5e12eb,_0x38188c){const _0x5c98d8=_0x1d3b3c;let _0x574378={};const _0x59ea6f={};let _0x3434c7,_0x16730b;return db[_0x5c98d8('0x7')][_0x5c98d8('0x5')]({'where':{'id':_0x5e12eb['params']['id']}})[_0x5c98d8('0x1')](handleEntityNotFound(_0x38188c,null))[_0x5c98d8('0x1')](function(_0x307799){const _0xe772d1=_0x5c98d8;if(_0x307799)return _0x3434c7=_0x307799,_0x59ea6f[_0xe772d1('0x0')]=_['keys'](db[_0xe772d1('0x21')][_0xe772d1('0x1f')]),_0x59ea6f[_0xe772d1('0x3')]=_[_0xe772d1('0x2e')](_0x5e12eb['query']),_0x59ea6f[_0xe772d1('0x12')]=_[_0xe772d1('0x4')](_0x59ea6f[_0xe772d1('0x0')],_0x59ea6f[_0xe772d1('0x3')]),_0x574378[_0xe772d1('0x25')]=_[_0xe772d1('0x4')](_0x59ea6f[_0xe772d1('0x0')],qs['fields'](_0x5e12eb[_0xe772d1('0x3')]['fields'])),_0x574378[_0xe772d1('0x25')]=_0x574378['attributes'][_0xe772d1('0x22')]?_0x574378['attributes']:_0x59ea6f[_0xe772d1('0x0')],_0x574378['order']=qs[_0xe772d1('0xe')](_0x5e12eb[_0xe772d1('0x3')][_0xe772d1('0xe')]),_0x574378['where']=qs[_0xe772d1('0x12')](_[_0xe772d1('0x15')](_0x5e12eb[_0xe772d1('0x3')],_0x59ea6f[_0xe772d1('0x12')])),_0x5e12eb[_0xe772d1('0x3')]['filter']&&(_0x574378['where']=_[_0xe772d1('0x23')](_0x574378[_0xe772d1('0x1d')],{[Op['or']]:_[_0xe772d1('0xa')](_0x574378['attributes'],function(_0x23dcb5){const _0x5d3800=_0xe772d1,_0x26c9e8={};return _0x26c9e8[_0x23dcb5]={[Op[_0x5d3800('0x28')]]:'%'+_0x5e12eb[_0x5d3800('0x3')][_0x5d3800('0x38')]+'%'},_0x26c9e8;})})),_0x574378=_[_0xe772d1('0x23')]({},_0x574378,_0x5e12eb[_0xe772d1('0x1a')]),_0x3434c7['getSubjects'](_0x574378);})['then'](function(_0x207d70){const _0x4175ad=_0x5c98d8;if(_0x207d70)return _0x16730b=_0x207d70[_0x4175ad('0x22')],typeof _0x5e12eb[_0x4175ad('0x3')][_0x4175ad('0x19')]===_0x4175ad('0x14')&&(_0x574378[_0x4175ad('0x32')]=qs[_0x4175ad('0x32')](_0x5e12eb[_0x4175ad('0x3')][_0x4175ad('0x32')]),_0x574378[_0x4175ad('0x10')]=qs[_0x4175ad('0x10')](_0x5e12eb[_0x4175ad('0x3')]['offset'])),_0x3434c7[_0x4175ad('0xd')](_0x574378);})[_0x5c98d8('0x1')](function(_0x1349d6){if(_0x1349d6)return _0x1349d6?{'count':_0x16730b,'rows':_0x1349d6}:null;})[_0x5c98d8('0x1')](respondWithResult(_0x38188c,null))[_0x5c98d8('0x35')](handleError(_0x38188c,null));},exports[_0x1d3b3c('0xb')]=function(_0x1ccb8b,_0x226449){const _0x4fa26b=_0x1d3b3c;let _0x7cd456={};const _0x2fc594={};let _0xd4c98d,_0x163f05;return db[_0x4fa26b('0x7')][_0x4fa26b('0x5')]({'where':{'id':_0x1ccb8b[_0x4fa26b('0x1c')]['id']}})[_0x4fa26b('0x1')](handleEntityNotFound(_0x226449,null))['then'](function(_0x2e952c){const _0x4419e0=_0x4fa26b;if(_0x2e952c)return _0xd4c98d=_0x2e952c,_0x2fc594[_0x4419e0('0x0')]=_[_0x4419e0('0x2e')](db['SalesforceField'][_0x4419e0('0x1f')]),_0x2fc594['query']=_[_0x4419e0('0x2e')](_0x1ccb8b['query']),_0x2fc594[_0x4419e0('0x12')]=_['intersection'](_0x2fc594[_0x4419e0('0x0')],_0x2fc594[_0x4419e0('0x3')]),_0x7cd456[_0x4419e0('0x25')]=_['intersection'](_0x2fc594[_0x4419e0('0x0')],qs[_0x4419e0('0x33')](_0x1ccb8b[_0x4419e0('0x3')][_0x4419e0('0x33')])),_0x7cd456[_0x4419e0('0x25')]=_0x7cd456[_0x4419e0('0x25')][_0x4419e0('0x22')]?_0x7cd456[_0x4419e0('0x25')]:_0x2fc594[_0x4419e0('0x0')],_0x7cd456[_0x4419e0('0x37')]=qs[_0x4419e0('0xe')](_0x1ccb8b[_0x4419e0('0x3')]['sort']),_0x7cd456[_0x4419e0('0x1d')]=qs['filters'](_[_0x4419e0('0x15')](_0x1ccb8b[_0x4419e0('0x3')],_0x2fc594['filters'])),_0x1ccb8b[_0x4419e0('0x3')]['filter']&&(_0x7cd456['where']=_[_0x4419e0('0x23')](_0x7cd456['where'],{[Op['or']]:_[_0x4419e0('0xa')](_0x7cd456[_0x4419e0('0x25')],function(_0x44c9b6){const _0x3db6c4=_0x4419e0,_0x2a52f0={};return _0x2a52f0[_0x44c9b6]={[Op[_0x3db6c4('0x28')]]:'%'+_0x1ccb8b[_0x3db6c4('0x3')][_0x3db6c4('0x38')]+'%'},_0x2a52f0;})})),_0x7cd456=_[_0x4419e0('0x23')]({},_0x7cd456,_0x1ccb8b[_0x4419e0('0x1a')]),_0xd4c98d[_0x4419e0('0xb')](_0x7cd456);})[_0x4fa26b('0x1')](function(_0x4d6337){const _0x352dbe=_0x4fa26b;if(_0x4d6337)return _0x163f05=_0x4d6337['length'],typeof _0x1ccb8b[_0x352dbe('0x3')][_0x352dbe('0x19')]===_0x352dbe('0x14')&&(_0x7cd456[_0x352dbe('0x32')]=qs[_0x352dbe('0x32')](_0x1ccb8b[_0x352dbe('0x3')][_0x352dbe('0x32')]),_0x7cd456[_0x352dbe('0x10')]=qs[_0x352dbe('0x10')](_0x1ccb8b[_0x352dbe('0x3')]['offset'])),_0xd4c98d['getDescriptions'](_0x7cd456);})[_0x4fa26b('0x1')](function(_0x2c5812){if(_0x2c5812)return _0x2c5812?{'count':_0x163f05,'rows':_0x2c5812}:null;})['then'](respondWithResult(_0x226449,null))[_0x4fa26b('0x35')](handleError(_0x226449,null));}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js index edc8fc9..53f58c6 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js @@ -1 +1 @@ -const a287_0x3610=['SalesforceConfiguration','int_salesforce_configurations','exports','./intSalesforceConfiguration.attributes','define'];(function(_0x50dc48,_0x3610be){const _0x1cff33=function(_0x3ef4d4){while(--_0x3ef4d4){_0x50dc48['push'](_0x50dc48['shift']());}};_0x1cff33(++_0x3610be);}(a287_0x3610,0x98));const a287_0x1cff=function(_0x50dc48,_0x3610be){_0x50dc48=_0x50dc48-0x0;let _0x1cff33=a287_0x3610[_0x50dc48];return _0x1cff33;};const _0x100924=a287_0x1cff;'use strict';const attributes=require(_0x100924('0x1'));module[_0x100924('0x0')]=function(_0x3ef4d4){const _0x32c3ec=_0x100924,_0x57ba76=_0x3ef4d4[_0x32c3ec('0x2')](_0x32c3ec('0x3'),attributes,{'tableName':_0x32c3ec('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x57ba76;}; \ No newline at end of file +const a287_0x213e=['int_salesforce_configurations','SalesforceConfiguration','./intSalesforceConfiguration.attributes','exports','define'];(function(_0x30afea,_0x213e67){const _0x177c73=function(_0x40040d){while(--_0x40040d){_0x30afea['push'](_0x30afea['shift']());}};_0x177c73(++_0x213e67);}(a287_0x213e,0xff));const a287_0x177c=function(_0x30afea,_0x213e67){_0x30afea=_0x30afea-0x0;let _0x177c73=a287_0x213e[_0x30afea];return _0x177c73;};const _0x39b0a2=a287_0x177c;'use strict';const attributes=require(_0x39b0a2('0x2'));module[_0x39b0a2('0x3')]=function(_0x40040d){const _0x24b2cd=_0x39b0a2,_0x183d42=_0x40040d[_0x24b2cd('0x4')](_0x24b2cd('0x1'),attributes,{'tableName':_0x24b2cd('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x183d42;}; \ No newline at end of file diff --git a/server/api/intSalesforceField/index.js b/server/api/intSalesforceField/index.js index d473f91..5d4de8e 100644 --- a/server/api/intSalesforceField/index.js +++ b/server/api/intSalesforceField/index.js @@ -1 +1 @@ -const a288_0x2251=['show','./intSalesforceField.controller','../../components/auth/service','delete','get','isAuthenticated','update','/:id','create','express','put','index','Router','destroy'];(function(_0x5216fd,_0x22511c){const _0x1c11dd=function(_0x3db9c8){while(--_0x3db9c8){_0x5216fd['push'](_0x5216fd['shift']());}};_0x1c11dd(++_0x22511c);}(a288_0x2251,0x84));const a288_0x1c11=function(_0x5216fd,_0x22511c){_0x5216fd=_0x5216fd-0x0;let _0x1c11dd=a288_0x2251[_0x5216fd];return _0x1c11dd;};const _0x5dd2c1=a288_0x1c11;'use strict';const express=require(_0x5dd2c1('0x3')),router=express[_0x5dd2c1('0x6')](),auth=require(_0x5dd2c1('0xa')),controller=require(_0x5dd2c1('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x5dd2c1('0x5')]),router[_0x5dd2c1('0xc')](_0x5dd2c1('0x1'),auth[_0x5dd2c1('0xd')](),controller[_0x5dd2c1('0x8')]),router['post']('/',auth[_0x5dd2c1('0xd')](),controller[_0x5dd2c1('0x2')]),router[_0x5dd2c1('0x4')]('/:id',auth[_0x5dd2c1('0xd')](),controller[_0x5dd2c1('0x0')]),router[_0x5dd2c1('0xb')](_0x5dd2c1('0x1'),auth[_0x5dd2c1('0xd')](),controller[_0x5dd2c1('0x7')]),module['exports']=router; \ No newline at end of file +const a288_0x45f2=['destroy','Router','index','get','./intSalesforceField.controller','create','../../components/auth/service','delete','/:id','express','isAuthenticated','show','put','update'];(function(_0x13111e,_0x45f23b){const _0x417d77=function(_0x193323){while(--_0x193323){_0x13111e['push'](_0x13111e['shift']());}};_0x417d77(++_0x45f23b);}(a288_0x45f2,0xaf));const a288_0x417d=function(_0x13111e,_0x45f23b){_0x13111e=_0x13111e-0x0;let _0x417d77=a288_0x45f2[_0x13111e];return _0x417d77;};const _0x34deea=a288_0x417d;'use strict';const express=require(_0x34deea('0x2')),router=express[_0x34deea('0x8')](),auth=require(_0x34deea('0xd')),controller=require(_0x34deea('0xb'));router[_0x34deea('0xa')]('/',auth['isAuthenticated'](),controller[_0x34deea('0x9')]),router[_0x34deea('0xa')](_0x34deea('0x1'),auth[_0x34deea('0x3')](),controller[_0x34deea('0x4')]),router['post']('/',auth[_0x34deea('0x3')](),controller[_0x34deea('0xc')]),router[_0x34deea('0x5')](_0x34deea('0x1'),auth[_0x34deea('0x3')](),controller[_0x34deea('0x6')]),router[_0x34deea('0x0')](_0x34deea('0x1'),auth[_0x34deea('0x3')](),controller[_0x34deea('0x7')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.attributes.js b/server/api/intSalesforceField/intSalesforceField.attributes.js index 8954401..c99d13f 100644 --- a/server/api/intSalesforceField/intSalesforceField.attributes.js +++ b/server/api/intSalesforceField/intSalesforceField.attributes.js @@ -1 +1 @@ -const a289_0x5b37=['ENUM','string','STRING','exports','customVariable','variable'];(function(_0x2ed23a,_0x5b3785){const _0x13dedd=function(_0x4d8b19){while(--_0x4d8b19){_0x2ed23a['push'](_0x2ed23a['shift']());}};_0x13dedd(++_0x5b3785);}(a289_0x5b37,0xfb));const a289_0x13de=function(_0x2ed23a,_0x5b3785){_0x2ed23a=_0x2ed23a-0x0;let _0x13dedd=a289_0x5b37[_0x2ed23a];return _0x13dedd;};const _0x551c10=a289_0x13de;'use strict';const Sequelize=require('sequelize');module[_0x551c10('0x4')]={'type':{'type':Sequelize[_0x551c10('0x1')]('string','variable',_0x551c10('0x5'),'keyValue'),'defaultValue':_0x551c10('0x2')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x551c10('0x3')]},'keyType':{'type':Sequelize[_0x551c10('0x1')]('string',_0x551c10('0x0'),_0x551c10('0x5'))},'keyContent':{'type':Sequelize[_0x551c10('0x3')]},'idField':{'type':Sequelize[_0x551c10('0x3')]},'variableName':{'type':Sequelize[_0x551c10('0x3')]}}; \ No newline at end of file +const a289_0x4883=['exports','ENUM','STRING','sequelize','variable','string','customVariable','keyValue'];(function(_0x1a6237,_0x488368){const _0x38e4d9=function(_0x36815e){while(--_0x36815e){_0x1a6237['push'](_0x1a6237['shift']());}};_0x38e4d9(++_0x488368);}(a289_0x4883,0x112));const a289_0x38e4=function(_0x1a6237,_0x488368){_0x1a6237=_0x1a6237-0x0;let _0x38e4d9=a289_0x4883[_0x1a6237];return _0x38e4d9;};const _0x1d827a=a289_0x38e4;'use strict';const Sequelize=require(_0x1d827a('0x1'));module[_0x1d827a('0x6')]={'type':{'type':Sequelize[_0x1d827a('0x7')](_0x1d827a('0x3'),_0x1d827a('0x2'),_0x1d827a('0x4'),_0x1d827a('0x5')),'defaultValue':_0x1d827a('0x3')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x1d827a('0x0')]},'keyType':{'type':Sequelize[_0x1d827a('0x7')]('string',_0x1d827a('0x2'),'customVariable')},'keyContent':{'type':Sequelize[_0x1d827a('0x0')]},'idField':{'type':Sequelize[_0x1d827a('0x0')]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.controller.js b/server/api/intSalesforceField/intSalesforceField.controller.js index 52ef890..ef9a710 100644 --- a/server/api/intSalesforceField/intSalesforceField.controller.js +++ b/server/api/intSalesforceField/intSalesforceField.controller.js @@ -1 +1 @@ -const a290_0x186a=['like','map','options','set','where','catch','SalesforceField','then','sort','destroy','order','intersection','nolimit','findOne','attributes','VIRTUAL','query','name','fieldName','rawAttributes','length','json','include','offset','merge','count','limit','update','filter','sequelize','rows','model','error','end','includeAll','create','fields','type','undefined','index','stack','params','keys','lodash','send','../../config/logger','body','pick','status','filters'];(function(_0x45bb62,_0x186a7a){const _0x139052=function(_0x22a103){while(--_0x22a103){_0x45bb62['push'](_0x45bb62['shift']());}};_0x139052(++_0x186a7a);}(a290_0x186a,0x1db));const a290_0x1390=function(_0x45bb62,_0x186a7a){_0x45bb62=_0x45bb62-0x0;let _0x139052=a290_0x186a[_0x45bb62];return _0x139052;};const _0x477db8=a290_0x1390;'use strict';const _=require(_0x477db8('0x12')),qs=require('../../components/parsers/qs'),logger=require(_0x477db8('0x14'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x477db8('0x4'));function respondWithResult(_0x22a103,_0x3046dd){return _0x3046dd=_0x3046dd||0xc8,function(_0x1ae4de){const _0x43bc64=a290_0x1390;if(_0x1ae4de)return _0x22a103[_0x43bc64('0x17')](_0x3046dd)[_0x43bc64('0x2e')](_0x1ae4de);};}function respondWithFilteredResult(_0x236f8f,_0x5cf255){return function(_0x447c4e){const _0x5bf6e2=a290_0x1390;if(_0x447c4e){const _0x7e9fc8=_0x447c4e[_0x5bf6e2('0x0')],_0x4a2285=_0x5cf255[_0x5bf6e2('0x30')];let _0x5087ed=_0x5cf255[_0x5bf6e2('0x30')]+_0x5cf255[_0x5bf6e2('0x1')],_0x5ec38a;return _0x5087ed>=_0x7e9fc8?(_0x5087ed=_0x7e9fc8,_0x5ec38a=0xc8):_0x5ec38a=0xce,_0x236f8f[_0x5bf6e2('0x17')](_0x5ec38a),_0x236f8f[_0x5bf6e2('0x1c')]('Content-Range',_0x4a2285+'-'+_0x5087ed+'/'+_0x7e9fc8)[_0x5bf6e2('0x2e')](_0x447c4e);}return null;};}function saveUpdates(_0x337c9b){return function(_0x4a6d1f){const _0xdf59b7=a290_0x1390;if(_0x4a6d1f)return _0x4a6d1f[_0xdf59b7('0x2')](_0x337c9b)['then'](function(_0x3406c7){return _0x3406c7;});return null;};}function removeEntity(_0x29067c){return function(_0x2b59ff){const _0x3ddc07=a290_0x1390;if(_0x2b59ff)return _0x2b59ff['destroy']()[_0x3ddc07('0x20')](function(){const _0xf65e4=_0x3ddc07;_0x29067c[_0xf65e4('0x17')](0xcc)[_0xf65e4('0x8')]();});};}function handleEntityNotFound(_0x1dea84){return function(_0x3bdd6e){return!_0x3bdd6e&&_0x1dea84['sendStatus'](0x194),_0x3bdd6e;};}function handleError(_0x35e761,_0x219571){return _0x219571=_0x219571||0x1f4,function(_0x36f73f){const _0x50ff20=a290_0x1390;logger[_0x50ff20('0x7')](_0x36f73f[_0x50ff20('0xf')]),_0x36f73f[_0x50ff20('0x2a')]&&delete _0x36f73f[_0x50ff20('0x2a')],_0x35e761[_0x50ff20('0x17')](_0x219571)[_0x50ff20('0x13')](_0x36f73f);};}exports[_0x477db8('0xe')]=function(_0x5f29f3,_0x3a910a){const _0x3db5c4=_0x477db8;let _0x4df654={};const _0x4371c2={},_0x475f26={'count':0x0,'rows':[]},_0x5a8d3b=_[_0x3db5c4('0x1a')](db[_0x3db5c4('0x1f')]['rawAttributes'],function(_0x5bb7c3){const _0x328f9b=_0x3db5c4;return{'name':_0x5bb7c3[_0x328f9b('0x2b')],'type':_0x5bb7c3[_0x328f9b('0xc')]['key']};});_0x4371c2[_0x3db5c4('0x6')]=_[_0x3db5c4('0x1a')](_0x5a8d3b,_0x3db5c4('0x2a')),_0x4371c2[_0x3db5c4('0x29')]=_[_0x3db5c4('0x11')](_0x5f29f3[_0x3db5c4('0x29')]),_0x4371c2[_0x3db5c4('0x18')]=_['intersection'](_0x4371c2[_0x3db5c4('0x6')],_0x4371c2[_0x3db5c4('0x29')]),_0x4df654[_0x3db5c4('0x27')]=_[_0x3db5c4('0x24')](_0x4371c2['model'],qs['fields'](_0x5f29f3[_0x3db5c4('0x29')]['fields'])),_0x4df654['attributes']=_0x4df654['attributes']['length']?_0x4df654['attributes']:_0x4371c2['model'];typeof _0x5f29f3[_0x3db5c4('0x29')][_0x3db5c4('0x25')]===_0x3db5c4('0xd')&&(_0x4df654[_0x3db5c4('0x1')]=qs[_0x3db5c4('0x1')](_0x5f29f3[_0x3db5c4('0x29')][_0x3db5c4('0x1')]),_0x4df654[_0x3db5c4('0x30')]=qs['offset'](_0x5f29f3['query'][_0x3db5c4('0x30')]));_0x4df654[_0x3db5c4('0x23')]=qs[_0x3db5c4('0x21')](_0x5f29f3[_0x3db5c4('0x29')][_0x3db5c4('0x21')]),_0x4df654['where']=qs[_0x3db5c4('0x18')](_[_0x3db5c4('0x16')](_0x5f29f3[_0x3db5c4('0x29')],_0x4371c2['filters']),_0x5a8d3b);_0x5f29f3[_0x3db5c4('0x29')]['filter']&&(_0x4df654[_0x3db5c4('0x1d')]=_['merge'](_0x4df654['where'],{[Op['or']]:_[_0x3db5c4('0x1a')](_0x5a8d3b,function(_0x15547e){const _0x5dee1b=_0x3db5c4;if(_0x15547e[_0x5dee1b('0xc')]!==_0x5dee1b('0x28')){const _0x5de196={};return _0x5de196[_0x15547e[_0x5dee1b('0x2a')]]={[Op[_0x5dee1b('0x19')]]:'%'+_0x5f29f3[_0x5dee1b('0x29')][_0x5dee1b('0x3')]+'%'},_0x5de196;}})}));_0x4df654=_[_0x3db5c4('0x31')]({},_0x4df654,_0x5f29f3[_0x3db5c4('0x1b')]);const _0x2ff864={'where':_0x4df654['where']};return db[_0x3db5c4('0x1f')][_0x3db5c4('0x0')](_0x2ff864)[_0x3db5c4('0x20')](function(_0x7de1f9){const _0x26f037=_0x3db5c4;return _0x475f26['count']=_0x7de1f9,_0x5f29f3[_0x26f037('0x29')][_0x26f037('0x9')]&&(_0x4df654[_0x26f037('0x2f')]=[{'all':!![]}]),db['SalesforceField']['findAll'](_0x4df654);})[_0x3db5c4('0x20')](function(_0x4fa180){const _0x1023cd=_0x3db5c4;return _0x475f26[_0x1023cd('0x5')]=_0x4fa180,_0x475f26;})['then'](respondWithFilteredResult(_0x3a910a,_0x4df654))['catch'](handleError(_0x3a910a,null));},exports['show']=function(_0x2e0e3a,_0x39e4e9){const _0xb52966=_0x477db8;let _0xfdffdb={'raw':!![],'where':{'id':_0x2e0e3a[_0xb52966('0x10')]['id']}};const _0x2a614e={};return _0x2a614e[_0xb52966('0x6')]=_[_0xb52966('0x11')](db['SalesforceField'][_0xb52966('0x2c')]),_0x2a614e[_0xb52966('0x29')]=_[_0xb52966('0x11')](_0x2e0e3a[_0xb52966('0x29')]),_0x2a614e[_0xb52966('0x18')]=_[_0xb52966('0x24')](_0x2a614e[_0xb52966('0x6')],_0x2a614e[_0xb52966('0x29')]),_0xfdffdb[_0xb52966('0x27')]=_[_0xb52966('0x24')](_0x2a614e[_0xb52966('0x6')],qs[_0xb52966('0xb')](_0x2e0e3a['query']['fields'])),_0xfdffdb[_0xb52966('0x27')]=_0xfdffdb['attributes'][_0xb52966('0x2d')]?_0xfdffdb[_0xb52966('0x27')]:_0x2a614e[_0xb52966('0x6')],_0x2e0e3a[_0xb52966('0x29')][_0xb52966('0x9')]&&(_0xfdffdb[_0xb52966('0x2f')]=[{'all':!![]}]),_0xfdffdb=_['merge']({},_0xfdffdb,_0x2e0e3a['options']),db['SalesforceField'][_0xb52966('0x26')](_0xfdffdb)[_0xb52966('0x20')](handleEntityNotFound(_0x39e4e9,null))[_0xb52966('0x20')](respondWithResult(_0x39e4e9,null))[_0xb52966('0x1e')](handleError(_0x39e4e9,null));},exports['create']=function(_0x1fe92a,_0x288910){const _0x1b9011=_0x477db8;return db['SalesforceField'][_0x1b9011('0xa')](_0x1fe92a[_0x1b9011('0x15')],{})['then'](respondWithResult(_0x288910,0xc9))[_0x1b9011('0x1e')](handleError(_0x288910,null));},exports[_0x477db8('0x2')]=function(_0x46ba9c,_0x314bf0){const _0x448091=_0x477db8;return _0x46ba9c[_0x448091('0x15')]['id']&&delete _0x46ba9c[_0x448091('0x15')]['id'],db[_0x448091('0x1f')]['findOne']({'where':{'id':_0x46ba9c[_0x448091('0x10')]['id']}})['then'](handleEntityNotFound(_0x314bf0,null))['then'](saveUpdates(_0x46ba9c[_0x448091('0x15')],null))[_0x448091('0x20')](respondWithResult(_0x314bf0,null))[_0x448091('0x1e')](handleError(_0x314bf0,null));},exports[_0x477db8('0x22')]=function(_0x202ef8,_0x87be50){const _0xdeb58c=_0x477db8;return db[_0xdeb58c('0x1f')]['findOne']({'where':{'id':_0x202ef8[_0xdeb58c('0x10')]['id']}})[_0xdeb58c('0x20')](handleEntityNotFound(_0x87be50,null))['then'](removeEntity(_0x87be50,null))['catch'](handleError(_0x87be50,null));}; \ No newline at end of file +const a290_0xfedb=['limit','sendStatus','findOne','json','order','sequelize','../../mysqldb','nolimit','intersection','include','options','length','filters','type','show','like','undefined','stack','keys','lodash','model','create','catch','api','../../config/logger','end','map','sort','send','params','error','rows','findAll','update','where','status','fields','then','includeAll','merge','name','body','attributes','query','VIRTUAL','fieldName','SalesforceField','filter','offset','rawAttributes','destroy'];(function(_0x432e3c,_0xfedb0f){const _0x123fed=function(_0xb4e013){while(--_0xb4e013){_0x432e3c['push'](_0x432e3c['shift']());}};_0x123fed(++_0xfedb0f);}(a290_0xfedb,0x17e));const a290_0x123f=function(_0x432e3c,_0xfedb0f){_0x432e3c=_0x432e3c-0x0;let _0x123fed=a290_0xfedb[_0x432e3c];return _0x123fed;};const _0x57854f=a290_0x123f;'use strict';const _=require(_0x57854f('0x2d')),qs=require('../../components/parsers/qs'),logger=require(_0x57854f('0x32'))(_0x57854f('0x31')),db=require(_0x57854f('0x20'))['db'],{Op}=require(_0x57854f('0x1f'));function respondWithResult(_0xb4e013,_0x5186cb){return _0x5186cb=_0x5186cb||0xc8,function(_0x13043c){const _0x13f408=a290_0x123f;if(_0x13043c)return _0xb4e013['status'](_0x5186cb)[_0x13f408('0x1d')](_0x13043c);};}function respondWithFilteredResult(_0xb06bf6,_0x4be087){return function(_0x210a53){const _0x40a79b=a290_0x123f;if(_0x210a53){const _0x5a86da=_0x210a53['count'],_0x213e51=_0x4be087[_0x40a79b('0x17')];let _0x2d7909=_0x4be087[_0x40a79b('0x17')]+_0x4be087['limit'],_0x47feb0;return _0x2d7909>=_0x5a86da?(_0x2d7909=_0x5a86da,_0x47feb0=0xc8):_0x47feb0=0xce,_0xb06bf6['status'](_0x47feb0),_0xb06bf6['set']('Content-Range',_0x213e51+'-'+_0x2d7909+'/'+_0x5a86da)[_0x40a79b('0x1d')](_0x210a53);}return null;};}function saveUpdates(_0x4f678f){return function(_0x204a2e){const _0x46e907=a290_0x123f;if(_0x204a2e)return _0x204a2e[_0x46e907('0x8')](_0x4f678f)['then'](function(_0x2648f4){return _0x2648f4;});return null;};}function removeEntity(_0x36a8d2){return function(_0x2577c9){const _0x4fcb4e=a290_0x123f;if(_0x2577c9)return _0x2577c9['destroy']()[_0x4fcb4e('0xc')](function(){const _0x2e92b9=_0x4fcb4e;_0x36a8d2[_0x2e92b9('0xa')](0xcc)[_0x2e92b9('0x0')]();});};}function handleEntityNotFound(_0x53a4a2){return function(_0x186208){const _0x27ff6b=a290_0x123f;return!_0x186208&&_0x53a4a2[_0x27ff6b('0x1b')](0x194),_0x186208;};}function handleError(_0x44dbe1,_0x5729dc){return _0x5729dc=_0x5729dc||0x1f4,function(_0x2ca9bb){const _0x1177b5=a290_0x123f;logger[_0x1177b5('0x5')](_0x2ca9bb[_0x1177b5('0x2b')]),_0x2ca9bb[_0x1177b5('0xf')]&&delete _0x2ca9bb['name'],_0x44dbe1[_0x1177b5('0xa')](_0x5729dc)[_0x1177b5('0x3')](_0x2ca9bb);};}exports['index']=function(_0x24291f,_0x418d0b){const _0x5bc2a8=_0x57854f;let _0x47a42b={};const _0x366e70={},_0x25dbb8={'count':0x0,'rows':[]},_0x5207ed=_[_0x5bc2a8('0x1')](db[_0x5bc2a8('0x15')][_0x5bc2a8('0x18')],function(_0x5d363c){const _0x5040ac=_0x5bc2a8;return{'name':_0x5d363c[_0x5040ac('0x14')],'type':_0x5d363c[_0x5040ac('0x27')]['key']};});_0x366e70['model']=_[_0x5bc2a8('0x1')](_0x5207ed,_0x5bc2a8('0xf')),_0x366e70[_0x5bc2a8('0x12')]=_[_0x5bc2a8('0x2c')](_0x24291f['query']),_0x366e70[_0x5bc2a8('0x26')]=_['intersection'](_0x366e70[_0x5bc2a8('0x2e')],_0x366e70['query']),_0x47a42b['attributes']=_[_0x5bc2a8('0x22')](_0x366e70[_0x5bc2a8('0x2e')],qs['fields'](_0x24291f[_0x5bc2a8('0x12')][_0x5bc2a8('0xb')])),_0x47a42b[_0x5bc2a8('0x11')]=_0x47a42b[_0x5bc2a8('0x11')][_0x5bc2a8('0x25')]?_0x47a42b['attributes']:_0x366e70[_0x5bc2a8('0x2e')];typeof _0x24291f[_0x5bc2a8('0x12')][_0x5bc2a8('0x21')]===_0x5bc2a8('0x2a')&&(_0x47a42b[_0x5bc2a8('0x1a')]=qs[_0x5bc2a8('0x1a')](_0x24291f['query']['limit']),_0x47a42b[_0x5bc2a8('0x17')]=qs['offset'](_0x24291f[_0x5bc2a8('0x12')][_0x5bc2a8('0x17')]));_0x47a42b[_0x5bc2a8('0x1e')]=qs['sort'](_0x24291f[_0x5bc2a8('0x12')][_0x5bc2a8('0x2')]),_0x47a42b[_0x5bc2a8('0x9')]=qs[_0x5bc2a8('0x26')](_['pick'](_0x24291f['query'],_0x366e70[_0x5bc2a8('0x26')]),_0x5207ed);_0x24291f[_0x5bc2a8('0x12')][_0x5bc2a8('0x16')]&&(_0x47a42b['where']=_[_0x5bc2a8('0xe')](_0x47a42b[_0x5bc2a8('0x9')],{[Op['or']]:_[_0x5bc2a8('0x1')](_0x5207ed,function(_0x67e35b){const _0x24a2e7=_0x5bc2a8;if(_0x67e35b[_0x24a2e7('0x27')]!==_0x24a2e7('0x13')){const _0x6a397c={};return _0x6a397c[_0x67e35b[_0x24a2e7('0xf')]]={[Op[_0x24a2e7('0x29')]]:'%'+_0x24291f[_0x24a2e7('0x12')][_0x24a2e7('0x16')]+'%'},_0x6a397c;}})}));_0x47a42b=_[_0x5bc2a8('0xe')]({},_0x47a42b,_0x24291f[_0x5bc2a8('0x24')]);const _0x5a1c5a={'where':_0x47a42b[_0x5bc2a8('0x9')]};return db[_0x5bc2a8('0x15')]['count'](_0x5a1c5a)[_0x5bc2a8('0xc')](function(_0x576912){const _0x2dc90d=_0x5bc2a8;return _0x25dbb8['count']=_0x576912,_0x24291f['query'][_0x2dc90d('0xd')]&&(_0x47a42b[_0x2dc90d('0x23')]=[{'all':!![]}]),db[_0x2dc90d('0x15')][_0x2dc90d('0x7')](_0x47a42b);})[_0x5bc2a8('0xc')](function(_0x4f0209){const _0x15b6ca=_0x5bc2a8;return _0x25dbb8[_0x15b6ca('0x6')]=_0x4f0209,_0x25dbb8;})[_0x5bc2a8('0xc')](respondWithFilteredResult(_0x418d0b,_0x47a42b))[_0x5bc2a8('0x30')](handleError(_0x418d0b,null));},exports[_0x57854f('0x28')]=function(_0xc75d5e,_0x57a3cf){const _0x322d85=_0x57854f;let _0x27766b={'raw':!![],'where':{'id':_0xc75d5e[_0x322d85('0x4')]['id']}};const _0x1d88d4={};return _0x1d88d4[_0x322d85('0x2e')]=_[_0x322d85('0x2c')](db['SalesforceField'][_0x322d85('0x18')]),_0x1d88d4['query']=_['keys'](_0xc75d5e[_0x322d85('0x12')]),_0x1d88d4[_0x322d85('0x26')]=_[_0x322d85('0x22')](_0x1d88d4[_0x322d85('0x2e')],_0x1d88d4[_0x322d85('0x12')]),_0x27766b['attributes']=_[_0x322d85('0x22')](_0x1d88d4[_0x322d85('0x2e')],qs[_0x322d85('0xb')](_0xc75d5e[_0x322d85('0x12')][_0x322d85('0xb')])),_0x27766b[_0x322d85('0x11')]=_0x27766b['attributes'][_0x322d85('0x25')]?_0x27766b['attributes']:_0x1d88d4[_0x322d85('0x2e')],_0xc75d5e['query'][_0x322d85('0xd')]&&(_0x27766b[_0x322d85('0x23')]=[{'all':!![]}]),_0x27766b=_[_0x322d85('0xe')]({},_0x27766b,_0xc75d5e[_0x322d85('0x24')]),db[_0x322d85('0x15')][_0x322d85('0x1c')](_0x27766b)[_0x322d85('0xc')](handleEntityNotFound(_0x57a3cf,null))['then'](respondWithResult(_0x57a3cf,null))[_0x322d85('0x30')](handleError(_0x57a3cf,null));},exports[_0x57854f('0x2f')]=function(_0x26aeee,_0x5b6369){const _0x57ce23=_0x57854f;return db[_0x57ce23('0x15')]['create'](_0x26aeee[_0x57ce23('0x10')],{})[_0x57ce23('0xc')](respondWithResult(_0x5b6369,0xc9))[_0x57ce23('0x30')](handleError(_0x5b6369,null));},exports[_0x57854f('0x8')]=function(_0xcbe410,_0x73873c){const _0x64974=_0x57854f;return _0xcbe410[_0x64974('0x10')]['id']&&delete _0xcbe410['body']['id'],db['SalesforceField']['findOne']({'where':{'id':_0xcbe410['params']['id']}})[_0x64974('0xc')](handleEntityNotFound(_0x73873c,null))[_0x64974('0xc')](saveUpdates(_0xcbe410['body'],null))[_0x64974('0xc')](respondWithResult(_0x73873c,null))[_0x64974('0x30')](handleError(_0x73873c,null));},exports[_0x57854f('0x19')]=function(_0x4f3493,_0x16d801){const _0xcbff01=_0x57854f;return db[_0xcbff01('0x15')]['findOne']({'where':{'id':_0x4f3493['params']['id']}})[_0xcbff01('0xc')](handleEntityNotFound(_0x16d801,null))['then'](removeEntity(_0x16d801,null))[_0xcbff01('0x30')](handleError(_0x16d801,null));}; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.model.js b/server/api/intSalesforceField/intSalesforceField.model.js index c00cf34..fbd1946 100644 --- a/server/api/intSalesforceField/intSalesforceField.model.js +++ b/server/api/intSalesforceField/intSalesforceField.model.js @@ -1 +1 @@ -const a291_0x262c=['idField','int_salesforce_fields','SalesforceField','exports','define','salesforce_unique_index','FieldId','./intSalesforceField.attributes'];(function(_0x58f1f0,_0x262cd9){const _0xfef0aa=function(_0x44afdb){while(--_0x44afdb){_0x58f1f0['push'](_0x58f1f0['shift']());}};_0xfef0aa(++_0x262cd9);}(a291_0x262c,0x1a1));const a291_0xfef0=function(_0x58f1f0,_0x262cd9){_0x58f1f0=_0x58f1f0-0x0;let _0xfef0aa=a291_0x262c[_0x58f1f0];return _0xfef0aa;};const _0x3b94d1=a291_0xfef0;'use strict';const attributes=require(_0x3b94d1('0x6'));module[_0x3b94d1('0x2')]=function(_0x44afdb){const _0x3847bc=_0x3b94d1,_0x41b422=_0x44afdb[_0x3847bc('0x3')](_0x3847bc('0x1'),attributes,{'tableName':_0x3847bc('0x0'),'paranoid':![],'indexes':[{'name':_0x3847bc('0x4'),'fields':[_0x3847bc('0x7'),_0x3847bc('0x5')],'unique':!![]}],'timestamps':!![]});return _0x41b422;}; \ No newline at end of file +const a291_0x5c5c=['FieldId','exports','int_salesforce_fields','salesforce_unique_index','SalesforceField'];(function(_0x155683,_0x5c5ce0){const _0x3dd7b7=function(_0x32fc31){while(--_0x32fc31){_0x155683['push'](_0x155683['shift']());}};_0x3dd7b7(++_0x5c5ce0);}(a291_0x5c5c,0xb4));const a291_0x3dd7=function(_0x155683,_0x5c5ce0){_0x155683=_0x155683-0x0;let _0x3dd7b7=a291_0x5c5c[_0x155683];return _0x3dd7b7;};const _0x35d4b6=a291_0x3dd7;'use strict';const attributes=require('./intSalesforceField.attributes');module[_0x35d4b6('0x1')]=function(_0x32fc31){const _0x366010=_0x35d4b6,_0x5b470e=_0x32fc31['define'](_0x366010('0x4'),attributes,{'tableName':_0x366010('0x2'),'paranoid':![],'indexes':[{'name':_0x366010('0x3'),'fields':['idField',_0x366010('0x0')],'unique':!![]}],'timestamps':!![]});return _0x5b470e;}; \ No newline at end of file diff --git a/server/api/intServicenowAccount/index.js b/server/api/intServicenowAccount/index.js index 8b50552..9cf18a2 100644 --- a/server/api/intServicenowAccount/index.js +++ b/server/api/intServicenowAccount/index.js @@ -1 +1 @@ -const a292_0x3cae=['/:id/configurations','show','../../components/auth/service','Router','isAuthenticated','/:id','delete','express','getFields','exports','create','update','post','/:id/fields','addConfiguration','index','get'];(function(_0x554ee4,_0x3cae3e){const _0x211db2=function(_0x1b7d43){while(--_0x1b7d43){_0x554ee4['push'](_0x554ee4['shift']());}};_0x211db2(++_0x3cae3e);}(a292_0x3cae,0x1a0));const a292_0x211d=function(_0x554ee4,_0x3cae3e){_0x554ee4=_0x554ee4-0x0;let _0x211db2=a292_0x3cae[_0x554ee4];return _0x211db2;};const _0x48174c=a292_0x211d;'use strict';const express=require(_0x48174c('0x10')),router=express[_0x48174c('0xc')](),auth=require(_0x48174c('0xb')),controller=require('./intServicenowAccount.controller');router[_0x48174c('0x8')]('/',auth['isAuthenticated'](),controller[_0x48174c('0x7')]),router[_0x48174c('0x8')](_0x48174c('0xe'),auth[_0x48174c('0xd')](),controller[_0x48174c('0xa')]),router[_0x48174c('0x8')](_0x48174c('0x9'),auth['isAuthenticated'](),controller['getConfigurations']),router[_0x48174c('0x8')](_0x48174c('0x5'),auth[_0x48174c('0xd')](),controller[_0x48174c('0x0')]),router[_0x48174c('0x4')]('/',auth[_0x48174c('0xd')](),controller[_0x48174c('0x2')]),router[_0x48174c('0x4')](_0x48174c('0x9'),auth[_0x48174c('0xd')](),controller[_0x48174c('0x6')]),router['put'](_0x48174c('0xe'),auth[_0x48174c('0xd')](),controller[_0x48174c('0x3')]),router[_0x48174c('0xf')](_0x48174c('0xe'),auth[_0x48174c('0xd')](),controller['destroy']),module[_0x48174c('0x1')]=router; \ No newline at end of file +const a292_0x2a2d=['put','destroy','create','Router','/:id','addConfiguration','./intServicenowAccount.controller','get','isAuthenticated','exports','post','delete','/:id/configurations','getFields','express','show'];(function(_0x156e32,_0x2a2dc3){const _0x3565cd=function(_0xd00236){while(--_0xd00236){_0x156e32['push'](_0x156e32['shift']());}};_0x3565cd(++_0x2a2dc3);}(a292_0x2a2d,0x11c));const a292_0x3565=function(_0x156e32,_0x2a2dc3){_0x156e32=_0x156e32-0x0;let _0x3565cd=a292_0x2a2d[_0x156e32];return _0x3565cd;};const _0x36f5f2=a292_0x3565;'use strict';const express=require(_0x36f5f2('0x2')),router=express[_0x36f5f2('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x36f5f2('0xa'));router[_0x36f5f2('0xb')]('/',auth[_0x36f5f2('0xc')](),controller['index']),router[_0x36f5f2('0xb')]('/:id',auth[_0x36f5f2('0xc')](),controller[_0x36f5f2('0x3')]),router[_0x36f5f2('0xb')](_0x36f5f2('0x0'),auth['isAuthenticated'](),controller['getConfigurations']),router[_0x36f5f2('0xb')]('/:id/fields',auth[_0x36f5f2('0xc')](),controller[_0x36f5f2('0x1')]),router[_0x36f5f2('0xe')]('/',auth[_0x36f5f2('0xc')](),controller[_0x36f5f2('0x6')]),router[_0x36f5f2('0xe')](_0x36f5f2('0x0'),auth[_0x36f5f2('0xc')](),controller[_0x36f5f2('0x9')]),router[_0x36f5f2('0x4')](_0x36f5f2('0x8'),auth[_0x36f5f2('0xc')](),controller['update']),router[_0x36f5f2('0xf')](_0x36f5f2('0x8'),auth['isAuthenticated'](),controller[_0x36f5f2('0x5')]),module[_0x36f5f2('0xd')]=router; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.attributes.js b/server/api/intServicenowAccount/intServicenowAccount.attributes.js index 0bbb183..6556fe0 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.attributes.js +++ b/server/api/intServicenowAccount/intServicenowAccount.attributes.js @@ -1 +1 @@ -const a293_0x7f98=['sequelize','remoteUri','STRING'];(function(_0x39aec4,_0x7f982){const _0x33bac2=function(_0x29b657){while(--_0x29b657){_0x39aec4['push'](_0x39aec4['shift']());}};_0x33bac2(++_0x7f982);}(a293_0x7f98,0xe5));const a293_0x33ba=function(_0x39aec4,_0x7f982){_0x39aec4=_0x39aec4-0x0;let _0x33bac2=a293_0x7f98[_0x39aec4];return _0x33bac2;};const _0x5c4051=a293_0x33ba;'use strict';const Sequelize=require(_0x5c4051('0x2'));module['exports']={'name':{'type':Sequelize[_0x5c4051('0x1')]},'description':{'type':Sequelize[_0x5c4051('0x1')]},'username':{'type':Sequelize[_0x5c4051('0x1')],'unique':'username'},'password':{'type':Sequelize[_0x5c4051('0x1')]},'email':{'type':Sequelize[_0x5c4051('0x1')]},'remoteUri':{'type':Sequelize['STRING'],'unique':_0x5c4051('0x0')},'serverUrl':{'type':Sequelize[_0x5c4051('0x1')]}}; \ No newline at end of file +const a293_0x2f84=['STRING','username','sequelize','remoteUri','exports'];(function(_0x45c7c7,_0x2f84f2){const _0x399322=function(_0xa92526){while(--_0xa92526){_0x45c7c7['push'](_0x45c7c7['shift']());}};_0x399322(++_0x2f84f2);}(a293_0x2f84,0xf3));const a293_0x3993=function(_0x45c7c7,_0x2f84f2){_0x45c7c7=_0x45c7c7-0x0;let _0x399322=a293_0x2f84[_0x45c7c7];return _0x399322;};const _0x5c7f40=a293_0x3993;'use strict';const Sequelize=require(_0x5c7f40('0x4'));module[_0x5c7f40('0x1')]={'name':{'type':Sequelize[_0x5c7f40('0x2')]},'description':{'type':Sequelize[_0x5c7f40('0x2')]},'username':{'type':Sequelize[_0x5c7f40('0x2')],'unique':_0x5c7f40('0x3')},'password':{'type':Sequelize[_0x5c7f40('0x2')]},'email':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize['STRING'],'unique':_0x5c7f40('0x0')},'serverUrl':{'type':Sequelize[_0x5c7f40('0x2')]}}; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.controller.js b/server/api/intServicenowAccount/intServicenowAccount.controller.js index a5fd858..cd69c04 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.controller.js +++ b/server/api/intServicenowAccount/intServicenowAccount.controller.js @@ -1 +1 @@ -const a294_0x4b25=['ServicenowConfiguration','incident_state','send','forEach','severity','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','../../components/parsers/qs','escalation','ServicenowAccount','catch','push','result','correlation_display','sys_mod_count','lastIndexOf','getConfigurations','stack','closed_at','getSubjects','GET','assign','urgency','model','destroy','subcategory','length','channel','%s/api/now/doc/table/schema/','company','filter','calendar_stc','work_notes','incident\x20table\x20objects','sys_choice?sysparm_query=name=incident^element=','substring','all','state','../../config/logger','query','hold_reason','ServicenowField','offset','inactive','sequelize','resolved_by','Wrong\x20credentials','fieldName','sys_created_by','options','rows','attributes','expected_start','sla_due','assignment_group','correlation_id','request-promise-native','sys_domain_path','findOne','business_stc','params','label','description','parent','close_notes','addConfiguration','approval','includes','undefined','priority','sys_domain','short_description','work_start','resolved_at','update','approval_set','upon_approval','remoteUri','password','sys_tags','name','log','false','%s/api/now/table/','calendar_duration','AccountId','keys','key','work_notes_list','business_duration','username','util','rawAttributes','boolean','sort','format','pick','test','sys_updated_on','type','sys_id','TCL:\x20_object','close_code','additional_assignee_list','active','False','work_end','body','reopened_time','VIRTUAL','status','internalType','set','comments_and_work_notes','../../mysqldb','sys_class_name','category','where','getFields','statusCode','business_service','end','ServiceNow\x20error:\x20','cmdb_ci','opened_by','limit','True','json','count','intersection','Subjects','findAll','filters','knowledge','opened_at','order','fields','api','includeAll','closed_by','merge','user_input','create','like','due_date','slice','activity_due','include','sys_updated_by','reassignment_count','comments','then','location','time_worked','show','map','number'];(function(_0x2925c7,_0x4b25ea){const _0x413792=function(_0x3a984b){while(--_0x3a984b){_0x2925c7['push'](_0x2925c7['shift']());}};_0x413792(++_0x4b25ea);}(a294_0x4b25,0xa7));const a294_0x4137=function(_0x2925c7,_0x4b25ea){_0x2925c7=_0x2925c7-0x0;let _0x413792=a294_0x4b25[_0x2925c7];return _0x413792;};const _0x1f4b5e=a294_0x4137;'use strict';const rp=require(_0x1f4b5e('0x2c')),util=require(_0x1f4b5e('0x4f')),_=require('lodash'),qs=require(_0x1f4b5e('0x97')),logger=require(_0x1f4b5e('0x1a'))(_0x1f4b5e('0x7d')),db=require(_0x1f4b5e('0x66'))['db'],{Op}=require(_0x1f4b5e('0x20')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x3a984b,_0x57db61){return _0x57db61=_0x57db61||0xc8,function(_0x5c44e3){const _0x294055=a294_0x4137;if(_0x5c44e3)return _0x3a984b['status'](_0x57db61)[_0x294055('0x73')](_0x5c44e3);};}function respondWithFilteredResult(_0x18111e,_0x5d1573){return function(_0x3d1a1f){const _0x46a376=a294_0x4137;if(_0x3d1a1f){const _0x19febd=_0x3d1a1f[_0x46a376('0x74')],_0x18ee15=_0x5d1573[_0x46a376('0x1e')];let _0x188e26=_0x5d1573[_0x46a376('0x1e')]+_0x5d1573[_0x46a376('0x71')],_0x164661;return _0x188e26>=_0x19febd?(_0x188e26=_0x19febd,_0x164661=0xc8):_0x164661=0xce,_0x18111e[_0x46a376('0x62')](_0x164661),_0x18111e[_0x46a376('0x64')]('Content-Range',_0x18ee15+'-'+_0x188e26+'/'+_0x19febd)['json'](_0x3d1a1f);}return null;};}function saveUpdates(_0x2feb64){return function(_0x4d80c1){const _0x3885ce=a294_0x4137;if(_0x4d80c1)return _0x4d80c1['update'](_0x2feb64)[_0x3885ce('0x8b')](function(_0x302694){return _0x302694;});return null;};}function removeEntity(_0x1b56e5){return function(_0x4bdb13){const _0x26db2f=a294_0x4137;if(_0x4bdb13)return _0x4bdb13[_0x26db2f('0xc')]()[_0x26db2f('0x8b')](function(){const _0x3b3377=_0x26db2f;_0x1b56e5[_0x3b3377('0x62')](0xcc)[_0x3b3377('0x6d')]();});};}function handleEntityNotFound(_0x28314c){return function(_0x2734a1){return!_0x2734a1&&_0x28314c['sendStatus'](0x194),_0x2734a1;};}function handleError(_0x1519e6,_0xf1fdee){return _0xf1fdee=_0xf1fdee||0x1f4,function(_0x24abdb){const _0xdb6bb8=a294_0x4137;logger['error'](_0x24abdb['stack']),_0x24abdb['name']&&delete _0x24abdb[_0xdb6bb8('0x44')],_0x1519e6[_0xdb6bb8('0x62')](_0xf1fdee)['send'](_0x24abdb);};}exports['index']=function(_0x4b606e,_0x3957f7){const _0x3ce4e0=_0x1f4b5e;let _0x3b6239={};const _0x3b7a2c={},_0x4ecd02={'count':0x0,'rows':[]},_0x2eb591=_['map'](db[_0x3ce4e0('0x99')][_0x3ce4e0('0x50')],function(_0x229975){const _0x4941cb=_0x3ce4e0;return{'name':_0x229975[_0x4941cb('0x23')],'type':_0x229975[_0x4941cb('0x57')][_0x4941cb('0x4b')]};});_0x3b7a2c[_0x3ce4e0('0xb')]=_[_0x3ce4e0('0x8f')](_0x2eb591,'name'),_0x3b7a2c[_0x3ce4e0('0x1b')]=_[_0x3ce4e0('0x4a')](_0x4b606e[_0x3ce4e0('0x1b')]),_0x3b7a2c[_0x3ce4e0('0x78')]=_['intersection'](_0x3b7a2c[_0x3ce4e0('0xb')],_0x3b7a2c[_0x3ce4e0('0x1b')]),_0x3b6239['attributes']=_[_0x3ce4e0('0x75')](_0x3b7a2c['model'],qs[_0x3ce4e0('0x7c')](_0x4b606e[_0x3ce4e0('0x1b')][_0x3ce4e0('0x7c')])),_0x3b6239['attributes']=_0x3b6239[_0x3ce4e0('0x27')][_0x3ce4e0('0xe')]?_0x3b6239['attributes']:_0x3b7a2c[_0x3ce4e0('0xb')];typeof _0x4b606e[_0x3ce4e0('0x1b')]['nolimit']===_0x3ce4e0('0x38')&&(_0x3b6239[_0x3ce4e0('0x71')]=qs[_0x3ce4e0('0x71')](_0x4b606e['query'][_0x3ce4e0('0x71')]),_0x3b6239[_0x3ce4e0('0x1e')]=qs[_0x3ce4e0('0x1e')](_0x4b606e['query'][_0x3ce4e0('0x1e')]));_0x3b6239[_0x3ce4e0('0x7b')]=qs['sort'](_0x4b606e[_0x3ce4e0('0x1b')]['sort']),_0x3b6239[_0x3ce4e0('0x69')]=qs['filters'](_['pick'](_0x4b606e['query'],_0x3b7a2c[_0x3ce4e0('0x78')]),_0x2eb591);_0x4b606e[_0x3ce4e0('0x1b')][_0x3ce4e0('0x12')]&&(_0x3b6239['where']=_['merge'](_0x3b6239['where'],{[Op['or']]:_[_0x3ce4e0('0x8f')](_0x2eb591,function(_0x18d889){const _0x679dcd=_0x3ce4e0;if(_0x18d889[_0x679dcd('0x57')]!==_0x679dcd('0x61')){const _0x4dd6a3={};return _0x4dd6a3[_0x18d889[_0x679dcd('0x44')]]={[Op[_0x679dcd('0x83')]]:'%'+_0x4b606e[_0x679dcd('0x1b')][_0x679dcd('0x12')]+'%'},_0x4dd6a3;}})}));_0x3b6239=_[_0x3ce4e0('0x80')]({},_0x3b6239,_0x4b606e[_0x3ce4e0('0x25')]);const _0x177609={'where':_0x3b6239[_0x3ce4e0('0x69')]};return db[_0x3ce4e0('0x99')][_0x3ce4e0('0x74')](_0x177609)[_0x3ce4e0('0x8b')](function(_0x4f3891){const _0x52ea87=_0x3ce4e0;return _0x4ecd02['count']=_0x4f3891,_0x4b606e[_0x52ea87('0x1b')]['includeAll']&&(_0x3b6239['include']=[{'all':!![]}]),db[_0x52ea87('0x99')][_0x52ea87('0x77')](_0x3b6239);})['then'](function(_0x178f40){const _0x4236c8=_0x3ce4e0;return _0x4ecd02[_0x4236c8('0x26')]=_0x178f40,_0x4ecd02;})['then'](respondWithFilteredResult(_0x3957f7,_0x3b6239))['catch'](handleError(_0x3957f7,null));},exports[_0x1f4b5e('0x8e')]=function(_0x4d0e95,_0x72adda){const _0x3c731c=_0x1f4b5e;let _0xd76650={'raw':![],'where':{'id':_0x4d0e95[_0x3c731c('0x30')]['id']}};const _0xbe782e={};return _0xbe782e[_0x3c731c('0xb')]=_[_0x3c731c('0x4a')](db[_0x3c731c('0x99')][_0x3c731c('0x50')]),_0xbe782e[_0x3c731c('0x1b')]=_[_0x3c731c('0x4a')](_0x4d0e95[_0x3c731c('0x1b')]),_0xbe782e[_0x3c731c('0x78')]=_[_0x3c731c('0x75')](_0xbe782e['model'],_0xbe782e[_0x3c731c('0x1b')]),_0xd76650['attributes']=_[_0x3c731c('0x75')](_0xbe782e[_0x3c731c('0xb')],qs[_0x3c731c('0x7c')](_0x4d0e95[_0x3c731c('0x1b')][_0x3c731c('0x7c')])),_0xd76650[_0x3c731c('0x27')]=_0xd76650[_0x3c731c('0x27')][_0x3c731c('0xe')]?_0xd76650[_0x3c731c('0x27')]:_0xbe782e[_0x3c731c('0xb')],_0x4d0e95[_0x3c731c('0x1b')][_0x3c731c('0x7e')]&&(_0xd76650[_0x3c731c('0x87')]=[{'all':!![]}]),_0xd76650=_[_0x3c731c('0x80')]({},_0xd76650,_0x4d0e95[_0x3c731c('0x25')]),db[_0x3c731c('0x99')][_0x3c731c('0x2e')](_0xd76650)[_0x3c731c('0x8b')](handleEntityNotFound(_0x72adda,null))[_0x3c731c('0x8b')](respondWithResult(_0x72adda,null))[_0x3c731c('0x9a')](handleError(_0x72adda,null));},exports[_0x1f4b5e('0x82')]=function(_0x231e51,_0x1fc8bf){const _0x4eb907=_0x1f4b5e;return db[_0x4eb907('0x99')][_0x4eb907('0x82')](_0x231e51[_0x4eb907('0x5f')],{})['then'](respondWithResult(_0x1fc8bf,0xc9))[_0x4eb907('0x9a')](handleError(_0x1fc8bf,null));},exports[_0x1f4b5e('0x3e')]=function(_0x55481d,_0x22149c){const _0x10f32c=_0x1f4b5e;return _0x55481d[_0x10f32c('0x5f')]['id']&&delete _0x55481d['body']['id'],db[_0x10f32c('0x99')]['findOne']({'where':{'id':_0x55481d['params']['id']}})[_0x10f32c('0x8b')](handleEntityNotFound(_0x22149c,null))[_0x10f32c('0x8b')](saveUpdates(_0x55481d['body'],null))[_0x10f32c('0x8b')](respondWithResult(_0x22149c,null))[_0x10f32c('0x9a')](handleError(_0x22149c,null));},exports[_0x1f4b5e('0xc')]=function(_0x253a65,_0x3e8a25){const _0x132812=_0x1f4b5e;return db[_0x132812('0x99')][_0x132812('0x2e')]({'where':{'id':_0x253a65[_0x132812('0x30')]['id']}})[_0x132812('0x8b')](handleEntityNotFound(_0x3e8a25,null))[_0x132812('0x8b')](removeEntity(_0x3e8a25,null))[_0x132812('0x9a')](handleError(_0x3e8a25,null));},exports[_0x1f4b5e('0x4')]=function(_0x5ddbb1,_0x59954b){const _0x4f5ae3=_0x1f4b5e;let _0x595694={};const _0x3096ff={};let _0x4f0daa,_0x285d39;return db[_0x4f5ae3('0x99')]['findOne']({'where':{'id':_0x5ddbb1[_0x4f5ae3('0x30')]['id']}})[_0x4f5ae3('0x8b')](handleEntityNotFound(_0x59954b,null))[_0x4f5ae3('0x8b')](function(_0x9e0cd){const _0x200ec1=_0x4f5ae3;if(_0x9e0cd)return _0x4f0daa=_0x9e0cd,_0x3096ff[_0x200ec1('0xb')]=_[_0x200ec1('0x4a')](db[_0x200ec1('0x91')][_0x200ec1('0x50')]),_0x3096ff[_0x200ec1('0x1b')]=_['keys'](_0x5ddbb1['query']),_0x3096ff[_0x200ec1('0x78')]=_[_0x200ec1('0x75')](_0x3096ff['model'],_0x3096ff['query']),_0x595694[_0x200ec1('0x27')]=_[_0x200ec1('0x75')](_0x3096ff[_0x200ec1('0xb')],qs[_0x200ec1('0x7c')](_0x5ddbb1[_0x200ec1('0x1b')][_0x200ec1('0x7c')])),_0x595694[_0x200ec1('0x27')]=_0x595694[_0x200ec1('0x27')][_0x200ec1('0xe')]?_0x595694[_0x200ec1('0x27')]:_0x3096ff[_0x200ec1('0xb')],_0x595694[_0x200ec1('0x7b')]=qs[_0x200ec1('0x52')](_0x5ddbb1[_0x200ec1('0x1b')][_0x200ec1('0x52')]),_0x595694[_0x200ec1('0x69')]=qs[_0x200ec1('0x78')](_[_0x200ec1('0x54')](_0x5ddbb1[_0x200ec1('0x1b')],_0x3096ff['filters'])),_0x5ddbb1[_0x200ec1('0x1b')][_0x200ec1('0x12')]&&(_0x595694['where']=_[_0x200ec1('0x80')](_0x595694['where'],{[Op['or']]:_[_0x200ec1('0x8f')](_0x595694[_0x200ec1('0x27')],function(_0x48e2b2){const _0x54cec5=_0x200ec1,_0x1c941f={};return _0x1c941f[_0x48e2b2]={[Op[_0x54cec5('0x83')]]:'%'+_0x5ddbb1['query'][_0x54cec5('0x12')]+'%'},_0x1c941f;})})),_0x595694=_[_0x200ec1('0x80')]({},_0x595694,_0x5ddbb1[_0x200ec1('0x25')]),_0x4f0daa[_0x200ec1('0x4')](_0x595694);})[_0x4f5ae3('0x8b')](function(_0x11e1d7){const _0x1edba=_0x4f5ae3;if(_0x11e1d7)return _0x285d39=_0x11e1d7['length'],typeof _0x5ddbb1[_0x1edba('0x1b')]['nolimit']===_0x1edba('0x38')&&(_0x595694[_0x1edba('0x71')]=qs['limit'](_0x5ddbb1['query'][_0x1edba('0x71')]),_0x595694[_0x1edba('0x1e')]=qs[_0x1edba('0x1e')](_0x5ddbb1[_0x1edba('0x1b')][_0x1edba('0x1e')])),_0x4f0daa[_0x1edba('0x4')](_0x595694);})['then'](function(_0x4b4fbe){if(_0x4b4fbe)return _0x4b4fbe?{'count':_0x285d39,'rows':_0x4b4fbe}:null;})[_0x4f5ae3('0x8b')](respondWithResult(_0x59954b,null))[_0x4f5ae3('0x9a')](handleError(_0x59954b,null));},exports[_0x1f4b5e('0x35')]=function(_0x40778e,_0x51ac30){const _0x200488=_0x1f4b5e;return _0x40778e[_0x200488('0x5f')]['id']&&delete _0x40778e[_0x200488('0x5f')]['id'],db['ServicenowAccount'][_0x200488('0x2e')]({'where':{'id':_0x40778e[_0x200488('0x30')]['id']}})[_0x200488('0x8b')](handleEntityNotFound(_0x51ac30,null))['then'](function(_0x2d616c){const _0x967da8=_0x200488;if(_0x2d616c)return _0x40778e['body'][_0x967da8('0x49')]=_0x2d616c['id'],_0x40778e[_0x967da8('0x5f')][_0x967da8('0x76')]=integrations[_0x967da8('0x7')](_0x40778e['body'][_0x967da8('0xf')],_0x40778e['body'][_0x967da8('0x57')]),_0x40778e[_0x967da8('0x5f')]['Descriptions']=integrations['getDescriptions'](_0x40778e[_0x967da8('0x5f')]['channel'],_0x40778e[_0x967da8('0x5f')][_0x967da8('0x57')]),db[_0x967da8('0x91')][_0x967da8('0x82')](_0x40778e[_0x967da8('0x5f')],{'include':[{'model':db[_0x967da8('0x1d')],'as':'Subjects'},{'model':db[_0x967da8('0x1d')],'as':'Descriptions'}]});return null;})['then'](respondWithResult(_0x51ac30,null))[_0x200488('0x9a')](handleError(_0x51ac30,null));},exports[_0x1f4b5e('0x6a')]=function(_0x22a336,_0x666c8c){const _0x4a8668=_0x1f4b5e,_0x52a4af=['made_sla',_0x4a8668('0x1c'),'knowledge',_0x4a8668('0xd'),'close_code','notify',_0x4a8668('0x92'),_0x4a8668('0x95'),_0x4a8668('0x68')],_0x68caa9=[_0x4a8668('0x33'),'made_sla','caused_by','watch_list','upon_reject',_0x4a8668('0x56'),'child_incidents',_0x4a8668('0x1c'),'approval_history',_0x4a8668('0x90'),_0x4a8668('0x21'),_0x4a8668('0x88'),_0x4a8668('0x70'),_0x4a8668('0x81'),'sys_created_on',_0x4a8668('0x3a'),_0x4a8668('0x19'),_0x4a8668('0x24'),_0x4a8668('0x79'),_0x4a8668('0x7b'),_0x4a8668('0x13'),_0x4a8668('0x6'),_0x4a8668('0x6f'),'delivery_plan','impact',_0x4a8668('0x5c'),_0x4a8668('0x4c'),_0x4a8668('0x6c'),_0x4a8668('0x39'),_0x4a8668('0x2d'),'rfc',_0x4a8668('0x8d'),_0x4a8668('0x28'),_0x4a8668('0x7a'),_0x4a8668('0x4d'),'group_list',_0x4a8668('0x5e'),_0x4a8668('0x60'),_0x4a8668('0x3d'),'caller_id',_0x4a8668('0x3f'),'subcategory',_0x4a8668('0x14'),_0x4a8668('0x3b'),_0x4a8668('0x5a'),_0x4a8668('0x1'),'delivery_task',_0x4a8668('0x3c'),_0x4a8668('0x2a'),_0x4a8668('0x2f'),_0x4a8668('0x5b'),_0x4a8668('0x32'),_0x4a8668('0x48'),'notify',_0x4a8668('0x67'),_0x4a8668('0x34'),_0x4a8668('0x7f'),'follow_up','parent_incident',_0x4a8668('0x58'),'contact_type','reopened_by',_0x4a8668('0x92'),_0x4a8668('0xa'),'problem_id',_0x4a8668('0x11'),_0x4a8668('0x89'),_0x4a8668('0x86'),'assigned_to',_0x4a8668('0x95'),_0x4a8668('0x8a'),_0x4a8668('0x29'),_0x4a8668('0x36'),_0x4a8668('0x65'),_0x4a8668('0x84'),_0x4a8668('0x2'),'reopen_count',_0x4a8668('0x43'),_0x4a8668('0x98'),_0x4a8668('0x40'),_0x4a8668('0x2b'),_0x4a8668('0x8c'),_0x4a8668('0x68')];let _0x52f49b='',_0x22d3ce='',_0x508d92=[],_0x5e5fb7='',_0x15295f='',_0xc981fa=[],_0x29413e='',_0x160d84='',_0x178b17={},_0x118a3d='';return db[_0x4a8668('0x99')][_0x4a8668('0x2e')]({'where':{'id':_0x22a336['params']['id']},'attributes':['id',_0x4a8668('0x4e'),_0x4a8668('0x42'),'email',_0x4a8668('0x41'),'serverUrl']})[_0x4a8668('0x8b')](handleEntityNotFound(_0x666c8c,null))[_0x4a8668('0x8b')](function(_0x34f1ca){const _0x2854ac=_0x4a8668;if(_0x34f1ca){_0x118a3d=_0x34f1ca[_0x2854ac('0x41')];const _0x2bf422=_0x118a3d[_0x2854ac('0x85')](-0x1);_0x2bf422==='/'&&(_0x118a3d=_0x118a3d[_0x2854ac('0x17')](0x0,_0x118a3d[_0x2854ac('0x3')](_0x2bf422)));_0x160d84=util[_0x2854ac('0x53')](_0x2854ac('0x10'),_0x118a3d),_0x29413e=util[_0x2854ac('0x53')](_0x2854ac('0x47'),_0x118a3d),_0x178b17={'user':_0x34f1ca[_0x2854ac('0x4e')],'pass':_0x34f1ca['password']};const _0x430bc0={'method':_0x2854ac('0x8'),'uri':_0x160d84+'incident?sysparm_display_value=all','auth':_0x178b17,'json':!![]};return rp(_0x430bc0);}})[_0x4a8668('0x8b')](function(_0x537b54){const _0x5af64b=_0x4a8668;return _0x537b54[_0x5af64b('0x0')]['length']>0x0&&(_0x52f49b=_0x537b54[_0x5af64b('0x0')]),console['log'](_0x5af64b('0x15'),_0x52f49b),_0xc981fa=[],_0x22d3ce=Object['assign']([],_0x52f49b),_['remove'](_0x22d3ce,function(_0x240cdc){const _0x2543e7=_0x5af64b;return!_0x52a4af[_0x2543e7('0x37')](_0x240cdc['name']);}),_0x22d3ce[_0x5af64b('0x94')](function(_0x2f86ce){const _0x300849=_0x5af64b,_0x233aa9=createFieldObject(_0x29413e,_0x178b17,_0x2f86ce[_0x300849('0x63')],_0x2f86ce['name'],_0x2f86ce[_0x300849('0x31')],![]);_0xc981fa[_0x300849('0x9b')](_0x233aa9);}),Promise['all'](_0xc981fa);})[_0x4a8668('0x8b')](function(_0x4205e2){const _0x3985e4=_0x4a8668;return _0x508d92=_0x4205e2,_0x5e5fb7=Object[_0x3985e4('0x9')]([],_0x52f49b),console[_0x3985e4('0x45')](_0x3985e4('0x59'),_0x52f49b),_['remove'](_0x5e5fb7,function(_0x5b0709){const _0x2ba609=_0x3985e4;return _0x68caa9['includes'](_0x5b0709[_0x2ba609('0x44')]);}),console[_0x3985e4('0x45')](_0x3985e4('0x96'),_0x5e5fb7),_0xc981fa=[],_0x5e5fb7[_0x3985e4('0x94')](function(_0x5b2b33){const _0x1bb45e=_0x3985e4,_0x1a1b2a=createFieldObject(_0x29413e,_0x178b17,_0x5b2b33[_0x1bb45e('0x63')],_0x5b2b33['name'],_0x5b2b33[_0x1bb45e('0x31')],!![]);_0xc981fa[_0x1bb45e('0x9b')](_0x1a1b2a);}),Promise[_0x3985e4('0x18')](_0xc981fa);})[_0x4a8668('0x8b')](function(_0x2707e6){_0x15295f=_0x2707e6;const _0x4f6bcc=_0x508d92['concat'](_0x15295f);return{'count':_0x4f6bcc['length'],'rows':_0x4f6bcc};})['then'](respondWithResult(_0x666c8c,null))[_0x4a8668('0x9a')](function(_0x24b704){const _0x46931b=_0x4a8668;console['log'](_0x46931b('0x6e')+_0x24b704);let _0x587659=_0x22a336[_0x46931b('0x1b')][_0x46931b('0x55')]?0x1f4:_0x24b704[_0x46931b('0x6b')]||0x1f4;logger['error'](_0x24b704[_0x46931b('0x5')]),delete _0x24b704[_0x46931b('0x44')],_0x587659===0x191&&(_0x587659=0x190),_0x666c8c[_0x46931b('0x62')](_0x587659)[_0x46931b('0x93')](_0x22a336['query'][_0x46931b('0x55')]?{'message':_0x46931b('0x22'),'statusCode':_0x24b704[_0x46931b('0x6b')]}:_0x24b704);});};function createFieldObject(_0x1d0d36,_0x4ee415,_0x579808,_0x811919,_0x116b08,_0x4bd28f){return new Promise(function(_0x1b647c){const _0x3763f8=a294_0x4137,_0x41845d={'id':_0x811919,'name':_0x116b08,'custom':_0x4bd28f};if(_0x579808===_0x3763f8('0x51'))_0x41845d[_0x3763f8('0x25')]=[{'name':_0x3763f8('0x72'),'value':'true'},{'name':_0x3763f8('0x5d'),'value':_0x3763f8('0x46')}],_0x1b647c(_0x41845d);else{const _0x5b96a8={'method':'GET','uri':_0x1d0d36+_0x3763f8('0x16')+_0x811919,'auth':_0x4ee415,'json':!![]};return rp(_0x5b96a8)[_0x3763f8('0x8b')](function(_0x2ca04b){const _0x57541b=_0x3763f8,_0x4244c3=[];_0x2ca04b[_0x57541b('0x0')][_0x57541b('0xe')]>0x0&&_0x2ca04b['result']['forEach'](function(_0x53ed37){const _0x406675=_0x57541b;if(_0x53ed37[_0x406675('0x1f')]===_0x406675('0x46')){const _0x123dfa={'name':_0x53ed37[_0x406675('0x31')],'value':_0x53ed37['value']};_0x4244c3[_0x406675('0x9b')](_0x123dfa);}}),_0x41845d['options']=_0x4244c3,_0x41845d[_0x57541b('0x25')][_0x57541b('0xe')]>0x0?_0x1b647c(_0x41845d):_0x4bd28f==![]?_0x1b647c():_0x1b647c(_0x41845d);});}});} \ No newline at end of file +const a294_0x361c=['caused_by','hold_reason','user_input','ServicenowField','Subjects','create','util','company','log','ServiceNow\x20error:\x20','getFields','merge','concat','notify','resolved_by','sla_due','attributes','severity','fieldName','child_incidents','made_sla','body','show','sort','delivery_task','subcategory','sequelize','request-promise-native','sys_class_name','channel','priority','params','includeAll','catch','sys_updated_by','filters','%s/api/now/doc/table/schema/','sys_id','description','query','reassignment_count','sys_domain_path','business_stc','cmdb_ci','include','work_notes','remove','close_code','value','sendStatus','business_service','work_notes_list','where','urgency','send','impact','../../components/integrations/configuration','fields','opened_by','status','opened_at','internalType','assignment_group','caller_id','../../config/logger','business_duration','test','then','category','username','map','TCL:\x20_object','Descriptions','assigned_to','push','reopened_by','sys_domain','key','sys_updated_on','getSubjects','reopen_count','undefined','rawAttributes','work_start','format','closed_at','../../components/parsers/qs','remoteUri','sys_mod_count','count','statusCode','lodash','all','json','correlation_id','options','delivery_plan','state','AccountId','incident?sysparm_display_value=all','due_date','sys_created_on','pick','slice','work_end','calendar_stc','resolved_at','assign','false','intersection','True','includes','filter','upon_approval','result','problem_id','GET','limit','comments','Content-Range','destroy','order','addConfiguration','expected_start','close_notes','nolimit','correlation_display','findOne','group_list','getConfigurations','activity_due','findAll','upon_reject','incident\x20table\x20objects','parent','substring','offset','rows','short_description','watch_list','stack','label','ServicenowConfiguration','update','inactive','reopened_time','end','api','true','incident_state','like','error','index','ServicenowAccount','email','serverUrl','knowledge','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','name','forEach','comments_and_work_notes','length','getDescriptions','type','model','keys'];(function(_0x1dd020,_0x361c19){const _0x229c08=function(_0xd4f116){while(--_0xd4f116){_0x1dd020['push'](_0x1dd020['shift']());}};_0x229c08(++_0x361c19);}(a294_0x361c,0x183));const a294_0x229c=function(_0x1dd020,_0x361c19){_0x1dd020=_0x1dd020-0x0;let _0x229c08=a294_0x361c[_0x1dd020];return _0x229c08;};const _0xdb09f4=a294_0x229c;'use strict';const rp=require(_0xdb09f4('0x8a')),util=require(_0xdb09f4('0x75')),_=require(_0xdb09f4('0x24')),qs=require(_0xdb09f4('0x1f')),logger=require(_0xdb09f4('0x9'))(_0xdb09f4('0x5c')),db=require('../../mysqldb')['db'],{Op}=require(_0xdb09f4('0x89')),integrations=require(_0xdb09f4('0x1'));function respondWithResult(_0xd4f116,_0x5c74ae){return _0x5c74ae=_0x5c74ae||0xc8,function(_0x1eebbb){const _0x481f59=a294_0x229c;if(_0x1eebbb)return _0xd4f116[_0x481f59('0x4')](_0x5c74ae)[_0x481f59('0x26')](_0x1eebbb);};}function respondWithFilteredResult(_0x995c71,_0x3f234a){return function(_0x2712e0){const _0x27f00e=a294_0x229c;if(_0x2712e0){const _0x19e00f=_0x2712e0[_0x27f00e('0x22')],_0xfb1755=_0x3f234a[_0x27f00e('0x51')];let _0x44fe65=_0x3f234a[_0x27f00e('0x51')]+_0x3f234a[_0x27f00e('0x3e')],_0x114c25;return _0x44fe65>=_0x19e00f?(_0x44fe65=_0x19e00f,_0x114c25=0xc8):_0x114c25=0xce,_0x995c71[_0x27f00e('0x4')](_0x114c25),_0x995c71['set'](_0x27f00e('0x40'),_0xfb1755+'-'+_0x44fe65+'/'+_0x19e00f)[_0x27f00e('0x26')](_0x2712e0);}return null;};}function saveUpdates(_0x4b2187){return function(_0xf3547){const _0x389a5a=a294_0x229c;if(_0xf3547)return _0xf3547[_0x389a5a('0x58')](_0x4b2187)[_0x389a5a('0xc')](function(_0x30be40){return _0x30be40;});return null;};}function removeEntity(_0x3e6b4b){return function(_0x418512){const _0x1a2533=a294_0x229c;if(_0x418512)return _0x418512[_0x1a2533('0x41')]()[_0x1a2533('0xc')](function(){const _0x7b7979=_0x1a2533;_0x3e6b4b[_0x7b7979('0x4')](0xcc)[_0x7b7979('0x5b')]();});};}function handleEntityNotFound(_0x2fe71a){return function(_0x5c67f8){const _0x1b1fe7=a294_0x229c;return!_0x5c67f8&&_0x2fe71a[_0x1b1fe7('0xa0')](0x194),_0x5c67f8;};}function handleError(_0x406854,_0x2dfccf){return _0x2dfccf=_0x2dfccf||0x1f4,function(_0x1f4643){const _0x452564=a294_0x229c;logger[_0x452564('0x60')](_0x1f4643['stack']),_0x1f4643[_0x452564('0x67')]&&delete _0x1f4643[_0x452564('0x67')],_0x406854[_0x452564('0x4')](_0x2dfccf)[_0x452564('0xa5')](_0x1f4643);};}exports[_0xdb09f4('0x61')]=function(_0x59ba68,_0x409d63){const _0xd8f67f=_0xdb09f4;let _0x4ba620={};const _0x2038d8={},_0x2e5cb1={'count':0x0,'rows':[]},_0x1fc425=_[_0xd8f67f('0xf')](db['ServicenowAccount'][_0xd8f67f('0x1b')],function(_0x221996){const _0x426af7=_0xd8f67f;return{'name':_0x221996[_0x426af7('0x81')],'type':_0x221996['type'][_0x426af7('0x16')]};});_0x2038d8[_0xd8f67f('0x6d')]=_[_0xd8f67f('0xf')](_0x1fc425,_0xd8f67f('0x67')),_0x2038d8['query']=_['keys'](_0x59ba68[_0xd8f67f('0x96')]),_0x2038d8[_0xd8f67f('0x92')]=_[_0xd8f67f('0x36')](_0x2038d8[_0xd8f67f('0x6d')],_0x2038d8[_0xd8f67f('0x96')]),_0x4ba620['attributes']=_[_0xd8f67f('0x36')](_0x2038d8[_0xd8f67f('0x6d')],qs[_0xd8f67f('0x2')](_0x59ba68[_0xd8f67f('0x96')][_0xd8f67f('0x2')])),_0x4ba620[_0xd8f67f('0x7f')]=_0x4ba620['attributes'][_0xd8f67f('0x6a')]?_0x4ba620['attributes']:_0x2038d8[_0xd8f67f('0x6d')];typeof _0x59ba68[_0xd8f67f('0x96')][_0xd8f67f('0x46')]===_0xd8f67f('0x1a')&&(_0x4ba620[_0xd8f67f('0x3e')]=qs[_0xd8f67f('0x3e')](_0x59ba68['query'][_0xd8f67f('0x3e')]),_0x4ba620[_0xd8f67f('0x51')]=qs[_0xd8f67f('0x51')](_0x59ba68[_0xd8f67f('0x96')]['offset']));_0x4ba620[_0xd8f67f('0x42')]=qs[_0xd8f67f('0x86')](_0x59ba68[_0xd8f67f('0x96')][_0xd8f67f('0x86')]),_0x4ba620[_0xd8f67f('0xa3')]=qs[_0xd8f67f('0x92')](_[_0xd8f67f('0x2f')](_0x59ba68['query'],_0x2038d8[_0xd8f67f('0x92')]),_0x1fc425);_0x59ba68[_0xd8f67f('0x96')][_0xd8f67f('0x39')]&&(_0x4ba620[_0xd8f67f('0xa3')]=_[_0xd8f67f('0x7a')](_0x4ba620[_0xd8f67f('0xa3')],{[Op['or']]:_['map'](_0x1fc425,function(_0x692765){const _0x34c1bb=_0xd8f67f;if(_0x692765[_0x34c1bb('0x6c')]!=='VIRTUAL'){const _0x31e4fa={};return _0x31e4fa[_0x692765[_0x34c1bb('0x67')]]={[Op['like']]:'%'+_0x59ba68[_0x34c1bb('0x96')][_0x34c1bb('0x39')]+'%'},_0x31e4fa;}})}));_0x4ba620=_['merge']({},_0x4ba620,_0x59ba68['options']);const _0x17e238={'where':_0x4ba620['where']};return db[_0xd8f67f('0x62')][_0xd8f67f('0x22')](_0x17e238)[_0xd8f67f('0xc')](function(_0x25bce4){const _0x43460b=_0xd8f67f;return _0x2e5cb1[_0x43460b('0x22')]=_0x25bce4,_0x59ba68['query'][_0x43460b('0x8f')]&&(_0x4ba620[_0x43460b('0x9b')]=[{'all':!![]}]),db[_0x43460b('0x62')][_0x43460b('0x4c')](_0x4ba620);})[_0xd8f67f('0xc')](function(_0x546e82){const _0x5376ac=_0xd8f67f;return _0x2e5cb1[_0x5376ac('0x52')]=_0x546e82,_0x2e5cb1;})[_0xd8f67f('0xc')](respondWithFilteredResult(_0x409d63,_0x4ba620))[_0xd8f67f('0x90')](handleError(_0x409d63,null));},exports[_0xdb09f4('0x85')]=function(_0x30b21e,_0x5bec30){const _0x49bd19=_0xdb09f4;let _0x5c7662={'raw':![],'where':{'id':_0x30b21e[_0x49bd19('0x8e')]['id']}};const _0x13ccc9={};return _0x13ccc9[_0x49bd19('0x6d')]=_[_0x49bd19('0x6e')](db[_0x49bd19('0x62')]['rawAttributes']),_0x13ccc9[_0x49bd19('0x96')]=_[_0x49bd19('0x6e')](_0x30b21e[_0x49bd19('0x96')]),_0x13ccc9['filters']=_[_0x49bd19('0x36')](_0x13ccc9[_0x49bd19('0x6d')],_0x13ccc9[_0x49bd19('0x96')]),_0x5c7662[_0x49bd19('0x7f')]=_[_0x49bd19('0x36')](_0x13ccc9[_0x49bd19('0x6d')],qs['fields'](_0x30b21e[_0x49bd19('0x96')][_0x49bd19('0x2')])),_0x5c7662[_0x49bd19('0x7f')]=_0x5c7662[_0x49bd19('0x7f')][_0x49bd19('0x6a')]?_0x5c7662[_0x49bd19('0x7f')]:_0x13ccc9[_0x49bd19('0x6d')],_0x30b21e[_0x49bd19('0x96')][_0x49bd19('0x8f')]&&(_0x5c7662[_0x49bd19('0x9b')]=[{'all':!![]}]),_0x5c7662=_[_0x49bd19('0x7a')]({},_0x5c7662,_0x30b21e['options']),db['ServicenowAccount'][_0x49bd19('0x48')](_0x5c7662)[_0x49bd19('0xc')](handleEntityNotFound(_0x5bec30,null))[_0x49bd19('0xc')](respondWithResult(_0x5bec30,null))[_0x49bd19('0x90')](handleError(_0x5bec30,null));},exports['create']=function(_0x117e63,_0x2ef613){const _0x29b3de=_0xdb09f4;return db[_0x29b3de('0x62')][_0x29b3de('0x74')](_0x117e63[_0x29b3de('0x84')],{})[_0x29b3de('0xc')](respondWithResult(_0x2ef613,0xc9))[_0x29b3de('0x90')](handleError(_0x2ef613,null));},exports[_0xdb09f4('0x58')]=function(_0x86c430,_0x2f2248){const _0x109984=_0xdb09f4;return _0x86c430[_0x109984('0x84')]['id']&&delete _0x86c430[_0x109984('0x84')]['id'],db[_0x109984('0x62')]['findOne']({'where':{'id':_0x86c430[_0x109984('0x8e')]['id']}})[_0x109984('0xc')](handleEntityNotFound(_0x2f2248,null))[_0x109984('0xc')](saveUpdates(_0x86c430[_0x109984('0x84')],null))['then'](respondWithResult(_0x2f2248,null))[_0x109984('0x90')](handleError(_0x2f2248,null));},exports[_0xdb09f4('0x41')]=function(_0x621e9a,_0x55e405){const _0x3dd34c=_0xdb09f4;return db[_0x3dd34c('0x62')][_0x3dd34c('0x48')]({'where':{'id':_0x621e9a['params']['id']}})[_0x3dd34c('0xc')](handleEntityNotFound(_0x55e405,null))[_0x3dd34c('0xc')](removeEntity(_0x55e405,null))['catch'](handleError(_0x55e405,null));},exports[_0xdb09f4('0x4a')]=function(_0x2a0c6f,_0x3b7039){const _0xc985d6=_0xdb09f4;let _0x35a9fd={};const _0x22399b={};let _0x5b6a5b,_0x15bdc0;return db[_0xc985d6('0x62')][_0xc985d6('0x48')]({'where':{'id':_0x2a0c6f['params']['id']}})[_0xc985d6('0xc')](handleEntityNotFound(_0x3b7039,null))[_0xc985d6('0xc')](function(_0x2922c1){const _0x17c4b2=_0xc985d6;if(_0x2922c1)return _0x5b6a5b=_0x2922c1,_0x22399b['model']=_[_0x17c4b2('0x6e')](db[_0x17c4b2('0x57')]['rawAttributes']),_0x22399b[_0x17c4b2('0x96')]=_[_0x17c4b2('0x6e')](_0x2a0c6f[_0x17c4b2('0x96')]),_0x22399b[_0x17c4b2('0x92')]=_[_0x17c4b2('0x36')](_0x22399b['model'],_0x22399b[_0x17c4b2('0x96')]),_0x35a9fd['attributes']=_[_0x17c4b2('0x36')](_0x22399b['model'],qs['fields'](_0x2a0c6f[_0x17c4b2('0x96')][_0x17c4b2('0x2')])),_0x35a9fd[_0x17c4b2('0x7f')]=_0x35a9fd[_0x17c4b2('0x7f')][_0x17c4b2('0x6a')]?_0x35a9fd['attributes']:_0x22399b[_0x17c4b2('0x6d')],_0x35a9fd[_0x17c4b2('0x42')]=qs['sort'](_0x2a0c6f[_0x17c4b2('0x96')]['sort']),_0x35a9fd[_0x17c4b2('0xa3')]=qs[_0x17c4b2('0x92')](_[_0x17c4b2('0x2f')](_0x2a0c6f[_0x17c4b2('0x96')],_0x22399b[_0x17c4b2('0x92')])),_0x2a0c6f[_0x17c4b2('0x96')][_0x17c4b2('0x39')]&&(_0x35a9fd[_0x17c4b2('0xa3')]=_[_0x17c4b2('0x7a')](_0x35a9fd[_0x17c4b2('0xa3')],{[Op['or']]:_[_0x17c4b2('0xf')](_0x35a9fd[_0x17c4b2('0x7f')],function(_0x1489a9){const _0x4a029a=_0x17c4b2,_0x5d9046={};return _0x5d9046[_0x1489a9]={[Op[_0x4a029a('0x5f')]]:'%'+_0x2a0c6f[_0x4a029a('0x96')][_0x4a029a('0x39')]+'%'},_0x5d9046;})})),_0x35a9fd=_['merge']({},_0x35a9fd,_0x2a0c6f[_0x17c4b2('0x28')]),_0x5b6a5b[_0x17c4b2('0x4a')](_0x35a9fd);})[_0xc985d6('0xc')](function(_0x4774be){const _0x4141dc=_0xc985d6;if(_0x4774be)return _0x15bdc0=_0x4774be[_0x4141dc('0x6a')],typeof _0x2a0c6f[_0x4141dc('0x96')][_0x4141dc('0x46')]===_0x4141dc('0x1a')&&(_0x35a9fd[_0x4141dc('0x3e')]=qs[_0x4141dc('0x3e')](_0x2a0c6f[_0x4141dc('0x96')][_0x4141dc('0x3e')]),_0x35a9fd[_0x4141dc('0x51')]=qs['offset'](_0x2a0c6f[_0x4141dc('0x96')][_0x4141dc('0x51')])),_0x5b6a5b['getConfigurations'](_0x35a9fd);})[_0xc985d6('0xc')](function(_0x21f6c9){if(_0x21f6c9)return _0x21f6c9?{'count':_0x15bdc0,'rows':_0x21f6c9}:null;})['then'](respondWithResult(_0x3b7039,null))[_0xc985d6('0x90')](handleError(_0x3b7039,null));},exports[_0xdb09f4('0x43')]=function(_0x2ecd11,_0x23945b){const _0x4d7cd0=_0xdb09f4;return _0x2ecd11[_0x4d7cd0('0x84')]['id']&&delete _0x2ecd11[_0x4d7cd0('0x84')]['id'],db[_0x4d7cd0('0x62')][_0x4d7cd0('0x48')]({'where':{'id':_0x2ecd11[_0x4d7cd0('0x8e')]['id']}})[_0x4d7cd0('0xc')](handleEntityNotFound(_0x23945b,null))['then'](function(_0x26df38){const _0x43ce9c=_0x4d7cd0;if(_0x26df38)return _0x2ecd11['body'][_0x43ce9c('0x2b')]=_0x26df38['id'],_0x2ecd11[_0x43ce9c('0x84')][_0x43ce9c('0x73')]=integrations[_0x43ce9c('0x18')](_0x2ecd11[_0x43ce9c('0x84')][_0x43ce9c('0x8c')],_0x2ecd11[_0x43ce9c('0x84')][_0x43ce9c('0x6c')]),_0x2ecd11[_0x43ce9c('0x84')][_0x43ce9c('0x11')]=integrations[_0x43ce9c('0x6b')](_0x2ecd11[_0x43ce9c('0x84')][_0x43ce9c('0x8c')],_0x2ecd11[_0x43ce9c('0x84')][_0x43ce9c('0x6c')]),db[_0x43ce9c('0x57')][_0x43ce9c('0x74')](_0x2ecd11[_0x43ce9c('0x84')],{'include':[{'model':db[_0x43ce9c('0x72')],'as':_0x43ce9c('0x73')},{'model':db[_0x43ce9c('0x72')],'as':_0x43ce9c('0x11')}]});return null;})[_0x4d7cd0('0xc')](respondWithResult(_0x23945b,null))['catch'](handleError(_0x23945b,null));},exports[_0xdb09f4('0x79')]=function(_0x580573,_0x1bb8fc){const _0x2587a5=_0xdb09f4,_0x4f10de=['made_sla',_0x2587a5('0x70'),_0x2587a5('0x65'),_0x2587a5('0x88'),_0x2587a5('0x9e'),'notify',_0x2587a5('0x5e'),_0x2587a5('0x80'),_0x2587a5('0xd')],_0x4b9de7=[_0x2587a5('0x4f'),_0x2587a5('0x83'),_0x2587a5('0x6f'),_0x2587a5('0x54'),_0x2587a5('0x4d'),_0x2587a5('0x17'),_0x2587a5('0x82'),_0x2587a5('0x70'),'approval_history','number',_0x2587a5('0x7d'),_0x2587a5('0x91'),_0x2587a5('0x3'),_0x2587a5('0x71'),_0x2587a5('0x2e'),_0x2587a5('0x15'),_0x2587a5('0x2a'),'sys_created_by',_0x2587a5('0x65'),_0x2587a5('0x42'),_0x2587a5('0x32'),_0x2587a5('0x1e'),_0x2587a5('0x9a'),_0x2587a5('0x29'),_0x2587a5('0x0'),'active',_0x2587a5('0xa2'),_0x2587a5('0xa1'),_0x2587a5('0x8d'),_0x2587a5('0x98'),'rfc','time_worked',_0x2587a5('0x44'),_0x2587a5('0x5'),_0x2587a5('0xa'),_0x2587a5('0x49'),_0x2587a5('0x31'),_0x2587a5('0x5a'),_0x2587a5('0x33'),_0x2587a5('0x8'),'approval_set','subcategory',_0x2587a5('0x9c'),_0x2587a5('0x53'),_0x2587a5('0x9e'),_0x2587a5('0x47'),_0x2587a5('0x87'),_0x2587a5('0x1c'),_0x2587a5('0x7'),_0x2587a5('0x99'),'additional_assignee_list',_0x2587a5('0x95'),'calendar_duration',_0x2587a5('0x7c'),_0x2587a5('0x8b'),_0x2587a5('0x45'),'closed_by','follow_up','parent_incident',_0x2587a5('0x94'),'contact_type',_0x2587a5('0x14'),_0x2587a5('0x5e'),_0x2587a5('0xa4'),_0x2587a5('0x3c'),_0x2587a5('0x76'),_0x2587a5('0x97'),_0x2587a5('0x4b'),_0x2587a5('0x12'),_0x2587a5('0x80'),_0x2587a5('0x3f'),_0x2587a5('0x7e'),'approval',_0x2587a5('0x69'),_0x2587a5('0x2d'),_0x2587a5('0x21'),_0x2587a5('0x19'),'sys_tags','escalation',_0x2587a5('0x3a'),_0x2587a5('0x27'),'location',_0x2587a5('0xd')];let _0x5a093e='',_0x135750='',_0x10769b=[],_0x4169fb='',_0x4221c9='',_0x3b0398=[],_0x5db889='',_0x476e0b='',_0x33d323={},_0x180b90='';return db[_0x2587a5('0x62')][_0x2587a5('0x48')]({'where':{'id':_0x580573['params']['id']},'attributes':['id',_0x2587a5('0xe'),'password',_0x2587a5('0x63'),_0x2587a5('0x20'),_0x2587a5('0x64')]})['then'](handleEntityNotFound(_0x1bb8fc,null))['then'](function(_0x5757d1){const _0x50a2e7=_0x2587a5;if(_0x5757d1){_0x180b90=_0x5757d1['remoteUri'];const _0x249bcc=_0x180b90[_0x50a2e7('0x30')](-0x1);_0x249bcc==='/'&&(_0x180b90=_0x180b90[_0x50a2e7('0x50')](0x0,_0x180b90['lastIndexOf'](_0x249bcc)));_0x476e0b=util[_0x50a2e7('0x1d')](_0x50a2e7('0x93'),_0x180b90),_0x5db889=util[_0x50a2e7('0x1d')]('%s/api/now/table/',_0x180b90),_0x33d323={'user':_0x5757d1[_0x50a2e7('0xe')],'pass':_0x5757d1['password']};const _0x434576={'method':'GET','uri':_0x476e0b+_0x50a2e7('0x2c'),'auth':_0x33d323,'json':!![]};return rp(_0x434576);}})[_0x2587a5('0xc')](function(_0x3e43e4){const _0x2952db=_0x2587a5;return _0x3e43e4[_0x2952db('0x3b')][_0x2952db('0x6a')]>0x0&&(_0x5a093e=_0x3e43e4['result']),console['log'](_0x2952db('0x4e'),_0x5a093e),_0x3b0398=[],_0x135750=Object[_0x2952db('0x34')]([],_0x5a093e),_[_0x2952db('0x9d')](_0x135750,function(_0x49f6cd){const _0x19e116=_0x2952db;return!_0x4f10de[_0x19e116('0x38')](_0x49f6cd['name']);}),_0x135750['forEach'](function(_0x5de9f8){const _0x153529=_0x2952db,_0x2b5fda=createFieldObject(_0x5db889,_0x33d323,_0x5de9f8[_0x153529('0x6')],_0x5de9f8[_0x153529('0x67')],_0x5de9f8[_0x153529('0x56')],![]);_0x3b0398['push'](_0x2b5fda);}),Promise[_0x2952db('0x25')](_0x3b0398);})[_0x2587a5('0xc')](function(_0x3ad6ba){const _0x24b2b6=_0x2587a5;return _0x10769b=_0x3ad6ba,_0x4169fb=Object[_0x24b2b6('0x34')]([],_0x5a093e),console[_0x24b2b6('0x77')](_0x24b2b6('0x10'),_0x5a093e),_[_0x24b2b6('0x9d')](_0x4169fb,function(_0x493301){const _0x28d583=_0x24b2b6;return _0x4b9de7['includes'](_0x493301[_0x28d583('0x67')]);}),console['log'](_0x24b2b6('0x66'),_0x4169fb),_0x3b0398=[],_0x4169fb[_0x24b2b6('0x68')](function(_0x455544){const _0x379198=_0x24b2b6,_0x250ad9=createFieldObject(_0x5db889,_0x33d323,_0x455544[_0x379198('0x6')],_0x455544[_0x379198('0x67')],_0x455544[_0x379198('0x56')],!![]);_0x3b0398[_0x379198('0x13')](_0x250ad9);}),Promise[_0x24b2b6('0x25')](_0x3b0398);})['then'](function(_0x2914fb){const _0xea835f=_0x2587a5;_0x4221c9=_0x2914fb;const _0x3573cd=_0x10769b[_0xea835f('0x7b')](_0x4221c9);return{'count':_0x3573cd[_0xea835f('0x6a')],'rows':_0x3573cd};})[_0x2587a5('0xc')](respondWithResult(_0x1bb8fc,null))[_0x2587a5('0x90')](function(_0x236211){const _0x39edd6=_0x2587a5;console[_0x39edd6('0x77')](_0x39edd6('0x78')+_0x236211);let _0x344570=_0x580573[_0x39edd6('0x96')][_0x39edd6('0xb')]?0x1f4:_0x236211[_0x39edd6('0x23')]||0x1f4;logger['error'](_0x236211[_0x39edd6('0x55')]),delete _0x236211[_0x39edd6('0x67')],_0x344570===0x191&&(_0x344570=0x190),_0x1bb8fc[_0x39edd6('0x4')](_0x344570)[_0x39edd6('0xa5')](_0x580573[_0x39edd6('0x96')][_0x39edd6('0xb')]?{'message':'Wrong\x20credentials','statusCode':_0x236211[_0x39edd6('0x23')]}:_0x236211);});};function createFieldObject(_0x5ef4c8,_0x1715e5,_0xc60754,_0x5f39f5,_0x82c19e,_0x48e339){return new Promise(function(_0x11f7ef){const _0x5c100a=a294_0x229c,_0x25e37b={'id':_0x5f39f5,'name':_0x82c19e,'custom':_0x48e339};if(_0xc60754==='boolean')_0x25e37b[_0x5c100a('0x28')]=[{'name':_0x5c100a('0x37'),'value':_0x5c100a('0x5d')},{'name':'False','value':'false'}],_0x11f7ef(_0x25e37b);else{const _0x52f5c7={'method':_0x5c100a('0x3d'),'uri':_0x5ef4c8+'sys_choice?sysparm_query=name=incident^element='+_0x5f39f5,'auth':_0x1715e5,'json':!![]};return rp(_0x52f5c7)[_0x5c100a('0xc')](function(_0x166c50){const _0x3bf129=_0x5c100a,_0x5089e5=[];_0x166c50[_0x3bf129('0x3b')]['length']>0x0&&_0x166c50['result'][_0x3bf129('0x68')](function(_0x131835){const _0x2ab094=_0x3bf129;if(_0x131835[_0x2ab094('0x59')]===_0x2ab094('0x35')){const _0x1b7320={'name':_0x131835['label'],'value':_0x131835[_0x2ab094('0x9f')]};_0x5089e5[_0x2ab094('0x13')](_0x1b7320);}}),_0x25e37b[_0x3bf129('0x28')]=_0x5089e5,_0x25e37b[_0x3bf129('0x28')][_0x3bf129('0x6a')]>0x0?_0x11f7ef(_0x25e37b):_0x48e339==![]?_0x11f7ef():_0x11f7ef(_0x25e37b);});}});} \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.model.js b/server/api/intServicenowAccount/intServicenowAccount.model.js index b587a75..ac4a816 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.model.js +++ b/server/api/intServicenowAccount/intServicenowAccount.model.js @@ -1 +1 @@ -const a295_0x35c8=['exports','int_servicenow_accounts','ServicenowAccount','./intServicenowAccount.attributes'];(function(_0x358156,_0x35c865){const _0x33e360=function(_0x4265a5){while(--_0x4265a5){_0x358156['push'](_0x358156['shift']());}};_0x33e360(++_0x35c865);}(a295_0x35c8,0xe0));const a295_0x33e3=function(_0x358156,_0x35c865){_0x358156=_0x358156-0x0;let _0x33e360=a295_0x35c8[_0x358156];return _0x33e360;};const _0x1441fe=a295_0x33e3;'use strict';const attributes=require(_0x1441fe('0x3'));module[_0x1441fe('0x0')]=function(_0x4265a5){const _0x410be0=_0x1441fe,_0x45ec24=_0x4265a5['define'](_0x410be0('0x2'),attributes,{'tableName':_0x410be0('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x45ec24;}; \ No newline at end of file +const a295_0x5d6c=['int_servicenow_accounts','ServicenowAccount','define','./intServicenowAccount.attributes'];(function(_0x5a9c3a,_0x5d6c7d){const _0x1b2107=function(_0x10cb99){while(--_0x10cb99){_0x5a9c3a['push'](_0x5a9c3a['shift']());}};_0x1b2107(++_0x5d6c7d);}(a295_0x5d6c,0x1c7));const a295_0x1b21=function(_0x5a9c3a,_0x5d6c7d){_0x5a9c3a=_0x5a9c3a-0x0;let _0x1b2107=a295_0x5d6c[_0x5a9c3a];return _0x1b2107;};const _0x53a6f8=a295_0x1b21;'use strict';const attributes=require(_0x53a6f8('0x0'));module['exports']=function(_0x10cb99){const _0x3d6993=_0x53a6f8,_0x4685=_0x10cb99[_0x3d6993('0x3')](_0x3d6993('0x2'),attributes,{'tableName':_0x3d6993('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4685;}; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.rpc.js b/server/api/intServicenowAccount/intServicenowAccount.rpc.js index 3431296..4cf21b6 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.rpc.js +++ b/server/api/intServicenowAccount/intServicenowAccount.rpc.js @@ -1 +1 @@ -const a296_0x280f=['then','attributes','lodash','options','../../config/logger','stringify','where','error','ShowServicenowAccount','catch','message','debug','map','GetServicenowAccount','ServicenowAccount','findAll','info','findOne','include','../../mysqldb','limit','raw','model'];(function(_0x1e48bc,_0x280fe2){const _0x5d8a42=function(_0x4f530f){while(--_0x4f530f){_0x1e48bc['push'](_0x1e48bc['shift']());}};_0x5d8a42(++_0x280fe2);}(a296_0x280f,0x126));const a296_0x5d8a=function(_0x1e48bc,_0x280fe2){_0x1e48bc=_0x1e48bc-0x0;let _0x5d8a42=a296_0x280f[_0x1e48bc];return _0x5d8a42;};const _0x347469=a296_0x5d8a;'use strict';const _=require(_0x347469('0x7')),db=require(_0x347469('0x1'))['db'],logger=require(_0x347469('0x9'))('rpc');exports[_0x347469('0x12')]=function(_0x4f530f){const _0xb05060=this;return new Promise(function(_0x519dfb,_0x1687c4){const _0x22571f=a296_0x5d8a;return db['ServicenowAccount'][_0x22571f('0x14')]({'raw':_0x4f530f[_0x22571f('0x8')]?_0x4f530f['options'][_0x22571f('0x3')]===undefined?!![]:![]:!![],'where':_0x4f530f['options']?_0x4f530f[_0x22571f('0x8')]['where']||null:null,'attributes':_0x4f530f[_0x22571f('0x8')]?_0x4f530f['options'][_0x22571f('0x6')]||null:null,'limit':_0x4f530f[_0x22571f('0x8')]?_0x4f530f[_0x22571f('0x8')][_0x22571f('0x2')]||null:null,'include':_0x4f530f[_0x22571f('0x8')]?_0x4f530f[_0x22571f('0x8')][_0x22571f('0x0')]?_[_0x22571f('0x11')](_0x4f530f[_0x22571f('0x8')][_0x22571f('0x0')],function(_0x3d6418){const _0x30c856=_0x22571f;return{'model':db[_0x3d6418[_0x30c856('0x4')]],'as':_0x3d6418['as'],'attributes':_0x3d6418['attributes'],'include':_0x3d6418[_0x30c856('0x0')]?_['map'](_0x3d6418['include'],function(_0x5540d4){const _0x5d1c85=_0x30c856;return{'model':db[_0x5540d4[_0x5d1c85('0x4')]],'as':_0x5540d4['as'],'attributes':_0x5540d4[_0x5d1c85('0x6')],'include':_0x5540d4[_0x5d1c85('0x0')]?_[_0x5d1c85('0x11')](_0x5540d4[_0x5d1c85('0x0')],function(_0x4b2f0a){const _0x46ca9a=_0x5d1c85;return{'model':db[_0x4b2f0a[_0x46ca9a('0x4')]],'as':_0x4b2f0a['as'],'attributes':_0x4b2f0a[_0x46ca9a('0x6')]};}):[]};}):[]};}):[]:[]})[_0x22571f('0x5')](function(_0x41b31a){const _0x4d3a4b=_0x22571f;logger[_0x4d3a4b('0x15')](_0x4d3a4b('0x12'),_0x4f530f),logger[_0x4d3a4b('0x10')]('GetServicenowAccount',_0x4f530f,JSON[_0x4d3a4b('0xa')](_0x41b31a)),_0x519dfb(_0x41b31a);})[_0x22571f('0xe')](function(_0x2edee2){const _0x34242e=_0x22571f;logger['error'](_0x34242e('0x12'),_0x2edee2[_0x34242e('0xf')],_0x4f530f),_0x1687c4(_0xb05060[_0x34242e('0xc')](0x1f4,_0x2edee2[_0x34242e('0xf')]));});});},exports['ShowServicenowAccount']=function(_0x114fc5){const _0xe6710d=this;return new Promise(function(_0x2bd3c1,_0x43b22b){const _0x288044=a296_0x5d8a;return db[_0x288044('0x13')][_0x288044('0x16')]({'raw':_0x114fc5[_0x288044('0x8')]?_0x114fc5[_0x288044('0x8')][_0x288044('0x3')]===undefined?!![]:![]:!![],'where':_0x114fc5[_0x288044('0x8')]?_0x114fc5[_0x288044('0x8')][_0x288044('0xb')]||null:null,'attributes':_0x114fc5[_0x288044('0x8')]?_0x114fc5['options'][_0x288044('0x6')]||null:null,'include':_0x114fc5[_0x288044('0x8')]?_0x114fc5[_0x288044('0x8')]['include']?_[_0x288044('0x11')](_0x114fc5[_0x288044('0x8')]['include'],function(_0x9d16ed){const _0x2c2a19=_0x288044;return{'model':db[_0x9d16ed[_0x2c2a19('0x4')]],'as':_0x9d16ed['as'],'attributes':_0x9d16ed[_0x2c2a19('0x6')],'include':_0x9d16ed['include']?_['map'](_0x9d16ed[_0x2c2a19('0x0')],function(_0x2946f2){const _0x25d81b=_0x2c2a19;return{'model':db[_0x2946f2[_0x25d81b('0x4')]],'as':_0x2946f2['as'],'attributes':_0x2946f2[_0x25d81b('0x6')],'include':_0x2946f2['include']?_[_0x25d81b('0x11')](_0x2946f2[_0x25d81b('0x0')],function(_0x192682){const _0x566e5e=_0x25d81b;return{'model':db[_0x192682[_0x566e5e('0x4')]],'as':_0x192682['as'],'attributes':_0x192682['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x4afaeb){const _0x283e3a=_0x288044;logger[_0x283e3a('0x15')](_0x283e3a('0xd'),_0x114fc5),logger['debug']('ShowServicenowAccount',_0x114fc5,JSON[_0x283e3a('0xa')](_0x4afaeb)),_0x2bd3c1(_0x4afaeb);})[_0x288044('0xe')](function(_0x4be3cc){const _0x5316d0=_0x288044;logger[_0x5316d0('0xc')](_0x5316d0('0xd'),_0x4be3cc[_0x5316d0('0xf')],_0x114fc5),_0x43b22b(_0xe6710d[_0x5316d0('0xc')](0x1f4,_0x4be3cc[_0x5316d0('0xf')]));});});}; \ No newline at end of file +const a296_0xd7b9=['ShowServicenowAccount','then','findAll','findOne','where','stringify','options','error','../../config/logger','message','include','ServicenowAccount','raw','model','map','info','limit','lodash','attributes','debug','catch','GetServicenowAccount'];(function(_0x1efb5b,_0xd7b92b){const _0x4c1aca=function(_0x1749da){while(--_0x1749da){_0x1efb5b['push'](_0x1efb5b['shift']());}};_0x4c1aca(++_0xd7b92b);}(a296_0xd7b9,0x1d8));const a296_0x4c1a=function(_0x1efb5b,_0xd7b92b){_0x1efb5b=_0x1efb5b-0x0;let _0x4c1aca=a296_0xd7b9[_0x1efb5b];return _0x4c1aca;};const _0x1b6bdb=a296_0x4c1a;'use strict';const _=require(_0x1b6bdb('0x7')),db=require('../../mysqldb')['db'],logger=require(_0x1b6bdb('0x14'))('rpc');exports['GetServicenowAccount']=function(_0x1749da){const _0x2aed87=this;return new Promise(function(_0x5c4e0f,_0x1e004c){const _0x58f010=a296_0x4c1a;return db[_0x58f010('0x1')][_0x58f010('0xe')]({'raw':_0x1749da[_0x58f010('0x12')]?_0x1749da['options']['raw']===undefined?!![]:![]:!![],'where':_0x1749da['options']?_0x1749da[_0x58f010('0x12')][_0x58f010('0x10')]||null:null,'attributes':_0x1749da[_0x58f010('0x12')]?_0x1749da[_0x58f010('0x12')][_0x58f010('0x8')]||null:null,'limit':_0x1749da[_0x58f010('0x12')]?_0x1749da['options'][_0x58f010('0x6')]||null:null,'include':_0x1749da[_0x58f010('0x12')]?_0x1749da['options']['include']?_[_0x58f010('0x4')](_0x1749da[_0x58f010('0x12')][_0x58f010('0x0')],function(_0x11dd13){const _0x1fa8d3=_0x58f010;return{'model':db[_0x11dd13[_0x1fa8d3('0x3')]],'as':_0x11dd13['as'],'attributes':_0x11dd13[_0x1fa8d3('0x8')],'include':_0x11dd13[_0x1fa8d3('0x0')]?_[_0x1fa8d3('0x4')](_0x11dd13[_0x1fa8d3('0x0')],function(_0x3b7ce0){const _0x13ec9d=_0x1fa8d3;return{'model':db[_0x3b7ce0[_0x13ec9d('0x3')]],'as':_0x3b7ce0['as'],'attributes':_0x3b7ce0[_0x13ec9d('0x8')],'include':_0x3b7ce0['include']?_[_0x13ec9d('0x4')](_0x3b7ce0[_0x13ec9d('0x0')],function(_0x1db89c){const _0x3b8d9a=_0x13ec9d;return{'model':db[_0x1db89c[_0x3b8d9a('0x3')]],'as':_0x1db89c['as'],'attributes':_0x1db89c[_0x3b8d9a('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x53b57d){const _0xd25f52=_0x58f010;logger[_0xd25f52('0x5')]('GetServicenowAccount',_0x1749da),logger[_0xd25f52('0x9')]('GetServicenowAccount',_0x1749da,JSON[_0xd25f52('0x11')](_0x53b57d)),_0x5c4e0f(_0x53b57d);})[_0x58f010('0xa')](function(_0x10eef9){const _0x566417=_0x58f010;logger['error'](_0x566417('0xb'),_0x10eef9['message'],_0x1749da),_0x1e004c(_0x2aed87[_0x566417('0x13')](0x1f4,_0x10eef9[_0x566417('0x15')]));});});},exports[_0x1b6bdb('0xc')]=function(_0x19d56a){const _0x3fb63d=this;return new Promise(function(_0x42429b,_0x1be7fb){const _0x51ad1f=a296_0x4c1a;return db['ServicenowAccount'][_0x51ad1f('0xf')]({'raw':_0x19d56a['options']?_0x19d56a['options'][_0x51ad1f('0x2')]===undefined?!![]:![]:!![],'where':_0x19d56a[_0x51ad1f('0x12')]?_0x19d56a[_0x51ad1f('0x12')][_0x51ad1f('0x10')]||null:null,'attributes':_0x19d56a[_0x51ad1f('0x12')]?_0x19d56a[_0x51ad1f('0x12')][_0x51ad1f('0x8')]||null:null,'include':_0x19d56a[_0x51ad1f('0x12')]?_0x19d56a['options'][_0x51ad1f('0x0')]?_[_0x51ad1f('0x4')](_0x19d56a[_0x51ad1f('0x12')][_0x51ad1f('0x0')],function(_0x3328b1){const _0x133324=_0x51ad1f;return{'model':db[_0x3328b1[_0x133324('0x3')]],'as':_0x3328b1['as'],'attributes':_0x3328b1[_0x133324('0x8')],'include':_0x3328b1[_0x133324('0x0')]?_['map'](_0x3328b1[_0x133324('0x0')],function(_0x2562ce){const _0x239c78=_0x133324;return{'model':db[_0x2562ce[_0x239c78('0x3')]],'as':_0x2562ce['as'],'attributes':_0x2562ce[_0x239c78('0x8')],'include':_0x2562ce[_0x239c78('0x0')]?_[_0x239c78('0x4')](_0x2562ce[_0x239c78('0x0')],function(_0x2dd988){const _0x516068=_0x239c78;return{'model':db[_0x2dd988[_0x516068('0x3')]],'as':_0x2dd988['as'],'attributes':_0x2dd988[_0x516068('0x8')]};}):[]};}):[]};}):[]:[]})[_0x51ad1f('0xd')](function(_0x517525){const _0x68627d=_0x51ad1f;logger[_0x68627d('0x5')](_0x68627d('0xc'),_0x19d56a),logger[_0x68627d('0x9')]('ShowServicenowAccount',_0x19d56a,JSON[_0x68627d('0x11')](_0x517525)),_0x42429b(_0x517525);})[_0x51ad1f('0xa')](function(_0x167c97){const _0x3863ee=_0x51ad1f;logger[_0x3863ee('0x13')](_0x3863ee('0xc'),_0x167c97[_0x3863ee('0x15')],_0x19d56a),_0x1be7fb(_0x3fb63d[_0x3863ee('0x13')](0x1f4,_0x167c97[_0x3863ee('0x15')]));});});}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/index.js b/server/api/intServicenowConfiguration/index.js index 1881137..9f6d98e 100644 --- a/server/api/intServicenowConfiguration/index.js +++ b/server/api/intServicenowConfiguration/index.js @@ -1 +1 @@ -const a297_0x1501=['get','exports','./intServicenowConfiguration.controller','isAuthenticated','/:id/descriptions','/:id','create','destroy','delete','../../components/auth/service','index','Router','put','/:id/fields','getDescriptions','update','getSubjects','getFields','express','post'];(function(_0x4314f6,_0x1501e8){const _0x417624=function(_0x24edbf){while(--_0x24edbf){_0x4314f6['push'](_0x4314f6['shift']());}};_0x417624(++_0x1501e8);}(a297_0x1501,0x1e4));const a297_0x4176=function(_0x4314f6,_0x1501e8){_0x4314f6=_0x4314f6-0x0;let _0x417624=a297_0x1501[_0x4314f6];return _0x417624;};const _0x4c2a0b=a297_0x4176;'use strict';const express=require(_0x4c2a0b('0xe')),router=express[_0x4c2a0b('0x7')](),auth=require(_0x4c2a0b('0x5')),controller=require(_0x4c2a0b('0x12'));router[_0x4c2a0b('0x10')]('/',auth['isAuthenticated'](),controller[_0x4c2a0b('0x6')]),router[_0x4c2a0b('0x10')]('/:id',auth[_0x4c2a0b('0x13')](),controller['show']),router[_0x4c2a0b('0x10')](_0x4c2a0b('0x9'),auth[_0x4c2a0b('0x13')](),controller[_0x4c2a0b('0xd')]),router[_0x4c2a0b('0x10')]('/:id/subjects',auth[_0x4c2a0b('0x13')](),controller[_0x4c2a0b('0xc')]),router[_0x4c2a0b('0x10')](_0x4c2a0b('0x0'),auth[_0x4c2a0b('0x13')](),controller[_0x4c2a0b('0xa')]),router[_0x4c2a0b('0xf')]('/',auth['isAuthenticated'](),controller[_0x4c2a0b('0x2')]),router[_0x4c2a0b('0x8')](_0x4c2a0b('0x1'),auth[_0x4c2a0b('0x13')](),controller[_0x4c2a0b('0xb')]),router[_0x4c2a0b('0x4')](_0x4c2a0b('0x1'),auth[_0x4c2a0b('0x13')](),controller[_0x4c2a0b('0x3')]),module[_0x4c2a0b('0x11')]=router; \ No newline at end of file +const a297_0x42e2=['/:id/subjects','delete','../../components/auth/service','Router','create','/:id/descriptions','isAuthenticated','getSubjects','/:id','index','show','get','exports','put'];(function(_0x3c131f,_0x42e282){const _0xa92a21=function(_0x51b317){while(--_0x51b317){_0x3c131f['push'](_0x3c131f['shift']());}};_0xa92a21(++_0x42e282);}(a297_0x42e2,0x198));const a297_0xa92a=function(_0x3c131f,_0x42e282){_0x3c131f=_0x3c131f-0x0;let _0xa92a21=a297_0x42e2[_0x3c131f];return _0xa92a21;};const _0xbf6cc9=a297_0xa92a;'use strict';const express=require('express'),router=express[_0xbf6cc9('0x1')](),auth=require(_0xbf6cc9('0x0')),controller=require('./intServicenowConfiguration.controller');router['get']('/',auth[_0xbf6cc9('0x4')](),controller[_0xbf6cc9('0x7')]),router[_0xbf6cc9('0x9')](_0xbf6cc9('0x6'),auth[_0xbf6cc9('0x4')](),controller[_0xbf6cc9('0x8')]),router[_0xbf6cc9('0x9')]('/:id/fields',auth[_0xbf6cc9('0x4')](),controller['getFields']),router[_0xbf6cc9('0x9')](_0xbf6cc9('0xc'),auth[_0xbf6cc9('0x4')](),controller[_0xbf6cc9('0x5')]),router[_0xbf6cc9('0x9')](_0xbf6cc9('0x3'),auth[_0xbf6cc9('0x4')](),controller['getDescriptions']),router['post']('/',auth[_0xbf6cc9('0x4')](),controller[_0xbf6cc9('0x2')]),router[_0xbf6cc9('0xb')](_0xbf6cc9('0x6'),auth[_0xbf6cc9('0x4')](),controller['update']),router[_0xbf6cc9('0xd')](_0xbf6cc9('0x6'),auth[_0xbf6cc9('0x4')](),controller['destroy']),module[_0xbf6cc9('0xa')]=router; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js index c23b09f..00c64ac 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js @@ -1 +1 @@ -const a298_0x3649=['STRING','sequelize'];(function(_0x4ed7de,_0x364958){const _0x4a4edc=function(_0x2045d2){while(--_0x2045d2){_0x4ed7de['push'](_0x4ed7de['shift']());}};_0x4a4edc(++_0x364958);}(a298_0x3649,0x81));const a298_0x4a4e=function(_0x4ed7de,_0x364958){_0x4ed7de=_0x4ed7de-0x0;let _0x4a4edc=a298_0x3649[_0x4ed7de];return _0x4a4edc;};const _0x59e2fc=a298_0x4a4e;'use strict';const Sequelize=require(_0x59e2fc('0x0'));module['exports']={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x59e2fc('0x1')]}}; \ No newline at end of file +const a298_0x4040=['STRING','sequelize','exports'];(function(_0x2ddd1f,_0x404068){const _0x3833ab=function(_0x3d62d4){while(--_0x3d62d4){_0x2ddd1f['push'](_0x2ddd1f['shift']());}};_0x3833ab(++_0x404068);}(a298_0x4040,0x149));const a298_0x3833=function(_0x2ddd1f,_0x404068){_0x2ddd1f=_0x2ddd1f-0x0;let _0x3833ab=a298_0x4040[_0x2ddd1f];return _0x3833ab;};const _0xaa1a39=a298_0x3833;'use strict';const Sequelize=require(_0xaa1a39('0x2'));module[_0xaa1a39('0x0')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0xaa1a39('0x1')]}}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js index af6444e..01f29b2 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js @@ -1 +1 @@ -const a299_0x7462=['fieldName','findAll','name','getDescriptions','create','end','getFields','filter','merge','destroy','sort','lodash','model','catch','count','keys','options','getSubjects','status','update','offset','where','fields','sequelize','includeAll','intersection','VIRTUAL','filters','like','Content-Range','ServicenowConfiguration','../../mysqldb','pick','map','ServicenowField','body','nolimit','undefined','include','order','key','findOne','attributes','../../components/parsers/qs','params','rawAttributes','query','length','limit','sendStatus','stack','../../config/logger','send','show','json','api','then','type'];(function(_0x22c685,_0x746273){const _0x5b3651=function(_0x1d6e15){while(--_0x1d6e15){_0x22c685['push'](_0x22c685['shift']());}};_0x5b3651(++_0x746273);}(a299_0x7462,0x8d));const a299_0x5b36=function(_0x22c685,_0x746273){_0x22c685=_0x22c685-0x0;let _0x5b3651=a299_0x7462[_0x22c685];return _0x5b3651;};const _0x1fc3bf=a299_0x5b36;'use strict';const _=require(_0x1fc3bf('0x2c')),qs=require(_0x1fc3bf('0x12')),logger=require(_0x1fc3bf('0x1a'))(_0x1fc3bf('0x1e')),db=require(_0x1fc3bf('0x6'))['db'],{Op}=require(_0x1fc3bf('0x38'));function respondWithResult(_0x1d6e15,_0x1aae68){return _0x1aae68=_0x1aae68||0xc8,function(_0x49623d){const _0x1f536f=a299_0x5b36;if(_0x49623d)return _0x1d6e15[_0x1f536f('0x33')](_0x1aae68)[_0x1f536f('0x1d')](_0x49623d);};}function respondWithFilteredResult(_0x42d111,_0x1cb168){return function(_0x3cd570){const _0x390de7=a299_0x5b36;if(_0x3cd570){const _0x316704=_0x3cd570[_0x390de7('0x2f')],_0x249fd9=_0x1cb168[_0x390de7('0x35')];let _0x24837f=_0x1cb168[_0x390de7('0x35')]+_0x1cb168[_0x390de7('0x17')],_0x361b81;return _0x24837f>=_0x316704?(_0x24837f=_0x316704,_0x361b81=0xc8):_0x361b81=0xce,_0x42d111[_0x390de7('0x33')](_0x361b81),_0x42d111['set'](_0x390de7('0x4'),_0x249fd9+'-'+_0x24837f+'/'+_0x316704)[_0x390de7('0x1d')](_0x3cd570);}return null;};}function saveUpdates(_0x546d6b){return function(_0x2f1b78){const _0x1e57a1=a299_0x5b36;if(_0x2f1b78)return _0x2f1b78[_0x1e57a1('0x34')](_0x546d6b)[_0x1e57a1('0x1f')](function(_0x5143c0){return _0x5143c0;});return null;};}function removeEntity(_0xf7f960){return function(_0x22f203){const _0x118840=a299_0x5b36;if(_0x22f203)return _0x22f203[_0x118840('0x2a')]()[_0x118840('0x1f')](function(){const _0x1167fe=_0x118840;_0xf7f960[_0x1167fe('0x33')](0xcc)[_0x1167fe('0x26')]();});};}function handleEntityNotFound(_0x34d601){return function(_0x522f21){const _0x588e3c=a299_0x5b36;return!_0x522f21&&_0x34d601[_0x588e3c('0x18')](0x194),_0x522f21;};}function handleError(_0x301369,_0x52fe76){return _0x52fe76=_0x52fe76||0x1f4,function(_0x451cd9){const _0xe7ed10=a299_0x5b36;logger['error'](_0x451cd9[_0xe7ed10('0x19')]),_0x451cd9[_0xe7ed10('0x23')]&&delete _0x451cd9[_0xe7ed10('0x23')],_0x301369[_0xe7ed10('0x33')](_0x52fe76)[_0xe7ed10('0x1b')](_0x451cd9);};}exports['index']=function(_0xe8eec4,_0x32dc94){const _0x2f8912=_0x1fc3bf;let _0x3891f0={};const _0x2be17c={},_0x27d271={'count':0x0,'rows':[]},_0x43a5a6=_['map'](db['ServicenowConfiguration'][_0x2f8912('0x14')],function(_0x3576e6){const _0x1c454b=_0x2f8912;return{'name':_0x3576e6[_0x1c454b('0x21')],'type':_0x3576e6['type'][_0x1c454b('0xf')]};});_0x2be17c[_0x2f8912('0x2d')]=_[_0x2f8912('0x8')](_0x43a5a6,_0x2f8912('0x23')),_0x2be17c[_0x2f8912('0x15')]=_[_0x2f8912('0x30')](_0xe8eec4['query']),_0x2be17c[_0x2f8912('0x2')]=_[_0x2f8912('0x0')](_0x2be17c[_0x2f8912('0x2d')],_0x2be17c['query']),_0x3891f0[_0x2f8912('0x11')]=_[_0x2f8912('0x0')](_0x2be17c[_0x2f8912('0x2d')],qs[_0x2f8912('0x37')](_0xe8eec4[_0x2f8912('0x15')][_0x2f8912('0x37')])),_0x3891f0['attributes']=_0x3891f0['attributes'][_0x2f8912('0x16')]?_0x3891f0[_0x2f8912('0x11')]:_0x2be17c[_0x2f8912('0x2d')];typeof _0xe8eec4[_0x2f8912('0x15')]['nolimit']==='undefined'&&(_0x3891f0['limit']=qs[_0x2f8912('0x17')](_0xe8eec4[_0x2f8912('0x15')][_0x2f8912('0x17')]),_0x3891f0['offset']=qs[_0x2f8912('0x35')](_0xe8eec4[_0x2f8912('0x15')][_0x2f8912('0x35')]));_0x3891f0['order']=qs[_0x2f8912('0x2b')](_0xe8eec4[_0x2f8912('0x15')][_0x2f8912('0x2b')]),_0x3891f0['where']=qs[_0x2f8912('0x2')](_[_0x2f8912('0x7')](_0xe8eec4[_0x2f8912('0x15')],_0x2be17c[_0x2f8912('0x2')]),_0x43a5a6);_0xe8eec4[_0x2f8912('0x15')][_0x2f8912('0x28')]&&(_0x3891f0[_0x2f8912('0x36')]=_['merge'](_0x3891f0[_0x2f8912('0x36')],{[Op['or']]:_['map'](_0x43a5a6,function(_0x1dd4db){const _0x4e0b81=_0x2f8912;if(_0x1dd4db[_0x4e0b81('0x20')]!==_0x4e0b81('0x1')){const _0x5b0716={};return _0x5b0716[_0x1dd4db[_0x4e0b81('0x23')]]={[Op[_0x4e0b81('0x3')]]:'%'+_0xe8eec4['query'][_0x4e0b81('0x28')]+'%'},_0x5b0716;}})}));_0x3891f0=_[_0x2f8912('0x29')]({},_0x3891f0,_0xe8eec4[_0x2f8912('0x31')]);const _0x320d4f={'where':_0x3891f0[_0x2f8912('0x36')]};return db['ServicenowConfiguration'][_0x2f8912('0x2f')](_0x320d4f)['then'](function(_0x5bacda){const _0x295af8=_0x2f8912;return _0x27d271[_0x295af8('0x2f')]=_0x5bacda,_0xe8eec4[_0x295af8('0x15')][_0x295af8('0x39')]&&(_0x3891f0[_0x295af8('0xd')]=[{'all':!![]}]),db[_0x295af8('0x5')][_0x295af8('0x22')](_0x3891f0);})[_0x2f8912('0x1f')](function(_0x2bd686){return _0x27d271['rows']=_0x2bd686,_0x27d271;})['then'](respondWithFilteredResult(_0x32dc94,_0x3891f0))['catch'](handleError(_0x32dc94,null));},exports[_0x1fc3bf('0x1c')]=function(_0x2b12ec,_0x471a76){const _0x17fdcb=_0x1fc3bf;let _0x1287f6={'raw':![],'where':{'id':_0x2b12ec[_0x17fdcb('0x13')]['id']}};const _0x26277e={};return _0x26277e[_0x17fdcb('0x2d')]=_[_0x17fdcb('0x30')](db['ServicenowConfiguration'][_0x17fdcb('0x14')]),_0x26277e[_0x17fdcb('0x15')]=_[_0x17fdcb('0x30')](_0x2b12ec[_0x17fdcb('0x15')]),_0x26277e[_0x17fdcb('0x2')]=_[_0x17fdcb('0x0')](_0x26277e[_0x17fdcb('0x2d')],_0x26277e['query']),_0x1287f6[_0x17fdcb('0x11')]=_['intersection'](_0x26277e['model'],qs[_0x17fdcb('0x37')](_0x2b12ec[_0x17fdcb('0x15')][_0x17fdcb('0x37')])),_0x1287f6[_0x17fdcb('0x11')]=_0x1287f6[_0x17fdcb('0x11')][_0x17fdcb('0x16')]?_0x1287f6[_0x17fdcb('0x11')]:_0x26277e[_0x17fdcb('0x2d')],_0x2b12ec[_0x17fdcb('0x15')][_0x17fdcb('0x39')]&&(_0x1287f6['include']=[{'all':!![]}]),_0x1287f6=_[_0x17fdcb('0x29')]({},_0x1287f6,_0x2b12ec[_0x17fdcb('0x31')]),db[_0x17fdcb('0x5')]['findOne'](_0x1287f6)[_0x17fdcb('0x1f')](handleEntityNotFound(_0x471a76,null))['then'](respondWithResult(_0x471a76,null))['catch'](handleError(_0x471a76,null));},exports[_0x1fc3bf('0x25')]=function(_0x595efc,_0x55a0f9){const _0x175db7=_0x1fc3bf;return db[_0x175db7('0x5')][_0x175db7('0x25')](_0x595efc[_0x175db7('0xa')],{})[_0x175db7('0x1f')](respondWithResult(_0x55a0f9,0xc9))[_0x175db7('0x2e')](handleError(_0x55a0f9,null));},exports[_0x1fc3bf('0x34')]=function(_0x468be7,_0x2810dd){const _0x273c9b=_0x1fc3bf;return _0x468be7[_0x273c9b('0xa')]['id']&&delete _0x468be7[_0x273c9b('0xa')]['id'],db['ServicenowConfiguration'][_0x273c9b('0x10')]({'where':{'id':_0x468be7[_0x273c9b('0x13')]['id']}})[_0x273c9b('0x1f')](handleEntityNotFound(_0x2810dd,null))['then'](saveUpdates(_0x468be7[_0x273c9b('0xa')],null))['then'](respondWithResult(_0x2810dd,null))[_0x273c9b('0x2e')](handleError(_0x2810dd,null));},exports[_0x1fc3bf('0x2a')]=function(_0x5c0333,_0x1ec6cf){const _0x58720c=_0x1fc3bf;return db['ServicenowConfiguration'][_0x58720c('0x10')]({'where':{'id':_0x5c0333[_0x58720c('0x13')]['id']}})['then'](handleEntityNotFound(_0x1ec6cf,null))[_0x58720c('0x1f')](removeEntity(_0x1ec6cf,null))[_0x58720c('0x2e')](handleError(_0x1ec6cf,null));},exports['getFields']=function(_0xf2757d,_0x862e60){const _0x4e92a4=_0x1fc3bf;let _0x28d364={};const _0xaef256={};let _0x495990,_0x531fe8;return db[_0x4e92a4('0x5')][_0x4e92a4('0x10')]({'where':{'id':_0xf2757d[_0x4e92a4('0x13')]['id']}})[_0x4e92a4('0x1f')](handleEntityNotFound(_0x862e60,null))[_0x4e92a4('0x1f')](function(_0x4aa11d){const _0x3a74f0=_0x4e92a4;if(_0x4aa11d)return _0x495990=_0x4aa11d,_0xaef256[_0x3a74f0('0x2d')]=_[_0x3a74f0('0x30')](db[_0x3a74f0('0x9')]['rawAttributes']),_0xaef256[_0x3a74f0('0x15')]=_[_0x3a74f0('0x30')](_0xf2757d[_0x3a74f0('0x15')]),_0xaef256[_0x3a74f0('0x2')]=_[_0x3a74f0('0x0')](_0xaef256[_0x3a74f0('0x2d')],_0xaef256[_0x3a74f0('0x15')]),_0x28d364[_0x3a74f0('0x11')]=_[_0x3a74f0('0x0')](_0xaef256[_0x3a74f0('0x2d')],qs['fields'](_0xf2757d[_0x3a74f0('0x15')][_0x3a74f0('0x37')])),_0x28d364['attributes']=_0x28d364['attributes'][_0x3a74f0('0x16')]?_0x28d364[_0x3a74f0('0x11')]:_0xaef256[_0x3a74f0('0x2d')],_0x28d364[_0x3a74f0('0xe')]=qs[_0x3a74f0('0x2b')](_0xf2757d['query']['sort']),_0x28d364[_0x3a74f0('0x36')]=qs['filters'](_[_0x3a74f0('0x7')](_0xf2757d[_0x3a74f0('0x15')],_0xaef256[_0x3a74f0('0x2')])),_0xf2757d['query'][_0x3a74f0('0x28')]&&(_0x28d364[_0x3a74f0('0x36')]=_[_0x3a74f0('0x29')](_0x28d364['where'],{[Op['or']]:_[_0x3a74f0('0x8')](_0x28d364[_0x3a74f0('0x11')],function(_0x4e3d38){const _0x197656={};return _0x197656[_0x4e3d38]={[Op['like']]:'%'+_0xf2757d['query']['filter']+'%'},_0x197656;})})),_0x28d364=_[_0x3a74f0('0x29')]({},_0x28d364,_0xf2757d['options']),_0x495990[_0x3a74f0('0x27')](_0x28d364);})[_0x4e92a4('0x1f')](function(_0x2ee1f7){const _0x5a1019=_0x4e92a4;if(_0x2ee1f7)return _0x531fe8=_0x2ee1f7[_0x5a1019('0x16')],typeof _0xf2757d[_0x5a1019('0x15')][_0x5a1019('0xb')]===_0x5a1019('0xc')&&(_0x28d364[_0x5a1019('0x17')]=qs['limit'](_0xf2757d[_0x5a1019('0x15')][_0x5a1019('0x17')]),_0x28d364['offset']=qs[_0x5a1019('0x35')](_0xf2757d[_0x5a1019('0x15')]['offset'])),_0x495990[_0x5a1019('0x27')](_0x28d364);})[_0x4e92a4('0x1f')](function(_0x48966d){if(_0x48966d)return _0x48966d?{'count':_0x531fe8,'rows':_0x48966d}:null;})['then'](respondWithResult(_0x862e60,null))[_0x4e92a4('0x2e')](handleError(_0x862e60,null));},exports['getSubjects']=function(_0x1f3044,_0x156e46){const _0x170332=_0x1fc3bf;let _0x387a18={};const _0x5ddf19={};let _0x1a0803,_0x1800cb;return db[_0x170332('0x5')][_0x170332('0x10')]({'where':{'id':_0x1f3044[_0x170332('0x13')]['id']}})['then'](handleEntityNotFound(_0x156e46,null))['then'](function(_0x5c4efb){const _0x7eb49c=_0x170332;if(_0x5c4efb)return _0x1a0803=_0x5c4efb,_0x5ddf19['model']=_['keys'](db[_0x7eb49c('0x9')]['rawAttributes']),_0x5ddf19[_0x7eb49c('0x15')]=_[_0x7eb49c('0x30')](_0x1f3044['query']),_0x5ddf19['filters']=_[_0x7eb49c('0x0')](_0x5ddf19[_0x7eb49c('0x2d')],_0x5ddf19[_0x7eb49c('0x15')]),_0x387a18[_0x7eb49c('0x11')]=_['intersection'](_0x5ddf19[_0x7eb49c('0x2d')],qs[_0x7eb49c('0x37')](_0x1f3044['query'][_0x7eb49c('0x37')])),_0x387a18[_0x7eb49c('0x11')]=_0x387a18[_0x7eb49c('0x11')][_0x7eb49c('0x16')]?_0x387a18['attributes']:_0x5ddf19[_0x7eb49c('0x2d')],_0x387a18[_0x7eb49c('0xe')]=qs[_0x7eb49c('0x2b')](_0x1f3044['query'][_0x7eb49c('0x2b')]),_0x387a18[_0x7eb49c('0x36')]=qs[_0x7eb49c('0x2')](_[_0x7eb49c('0x7')](_0x1f3044[_0x7eb49c('0x15')],_0x5ddf19['filters'])),_0x1f3044[_0x7eb49c('0x15')][_0x7eb49c('0x28')]&&(_0x387a18['where']=_[_0x7eb49c('0x29')](_0x387a18['where'],{[Op['or']]:_[_0x7eb49c('0x8')](_0x387a18[_0x7eb49c('0x11')],function(_0x849067){const _0x3f86f1=_0x7eb49c,_0x4c5c0e={};return _0x4c5c0e[_0x849067]={[Op[_0x3f86f1('0x3')]]:'%'+_0x1f3044[_0x3f86f1('0x15')]['filter']+'%'},_0x4c5c0e;})})),_0x387a18=_[_0x7eb49c('0x29')]({},_0x387a18,_0x1f3044['options']),_0x1a0803['getSubjects'](_0x387a18);})[_0x170332('0x1f')](function(_0x239d2d){const _0x14cd08=_0x170332;if(_0x239d2d)return _0x1800cb=_0x239d2d[_0x14cd08('0x16')],typeof _0x1f3044[_0x14cd08('0x15')][_0x14cd08('0xb')]===_0x14cd08('0xc')&&(_0x387a18[_0x14cd08('0x17')]=qs[_0x14cd08('0x17')](_0x1f3044[_0x14cd08('0x15')][_0x14cd08('0x17')]),_0x387a18['offset']=qs['offset'](_0x1f3044[_0x14cd08('0x15')][_0x14cd08('0x35')])),_0x1a0803[_0x14cd08('0x32')](_0x387a18);})[_0x170332('0x1f')](function(_0x28ea09){if(_0x28ea09)return _0x28ea09?{'count':_0x1800cb,'rows':_0x28ea09}:null;})[_0x170332('0x1f')](respondWithResult(_0x156e46,null))[_0x170332('0x2e')](handleError(_0x156e46,null));},exports[_0x1fc3bf('0x24')]=function(_0xc02306,_0x26d335){const _0x44247d=_0x1fc3bf;let _0x226403={};const _0x5c33ec={};let _0xe3ed67,_0x1fe3be;return db['ServicenowConfiguration']['findOne']({'where':{'id':_0xc02306[_0x44247d('0x13')]['id']}})['then'](handleEntityNotFound(_0x26d335,null))[_0x44247d('0x1f')](function(_0x59ec64){const _0xcba20e=_0x44247d;if(_0x59ec64)return _0xe3ed67=_0x59ec64,_0x5c33ec[_0xcba20e('0x2d')]=_[_0xcba20e('0x30')](db[_0xcba20e('0x9')][_0xcba20e('0x14')]),_0x5c33ec['query']=_[_0xcba20e('0x30')](_0xc02306[_0xcba20e('0x15')]),_0x5c33ec[_0xcba20e('0x2')]=_['intersection'](_0x5c33ec[_0xcba20e('0x2d')],_0x5c33ec[_0xcba20e('0x15')]),_0x226403[_0xcba20e('0x11')]=_['intersection'](_0x5c33ec[_0xcba20e('0x2d')],qs[_0xcba20e('0x37')](_0xc02306[_0xcba20e('0x15')][_0xcba20e('0x37')])),_0x226403[_0xcba20e('0x11')]=_0x226403[_0xcba20e('0x11')][_0xcba20e('0x16')]?_0x226403[_0xcba20e('0x11')]:_0x5c33ec[_0xcba20e('0x2d')],_0x226403[_0xcba20e('0xe')]=qs['sort'](_0xc02306[_0xcba20e('0x15')]['sort']),_0x226403[_0xcba20e('0x36')]=qs[_0xcba20e('0x2')](_[_0xcba20e('0x7')](_0xc02306[_0xcba20e('0x15')],_0x5c33ec[_0xcba20e('0x2')])),_0xc02306[_0xcba20e('0x15')][_0xcba20e('0x28')]&&(_0x226403[_0xcba20e('0x36')]=_[_0xcba20e('0x29')](_0x226403[_0xcba20e('0x36')],{[Op['or']]:_[_0xcba20e('0x8')](_0x226403[_0xcba20e('0x11')],function(_0x348c17){const _0x10f96f=_0xcba20e,_0xfecd19={};return _0xfecd19[_0x348c17]={[Op[_0x10f96f('0x3')]]:'%'+_0xc02306[_0x10f96f('0x15')][_0x10f96f('0x28')]+'%'},_0xfecd19;})})),_0x226403=_['merge']({},_0x226403,_0xc02306['options']),_0xe3ed67['getDescriptions'](_0x226403);})[_0x44247d('0x1f')](function(_0x407cd6){const _0x1a1590=_0x44247d;if(_0x407cd6)return _0x1fe3be=_0x407cd6['length'],typeof _0xc02306['query']['nolimit']===_0x1a1590('0xc')&&(_0x226403['limit']=qs[_0x1a1590('0x17')](_0xc02306['query']['limit']),_0x226403['offset']=qs['offset'](_0xc02306['query'][_0x1a1590('0x35')])),_0xe3ed67[_0x1a1590('0x24')](_0x226403);})['then'](function(_0x1b5191){if(_0x1b5191)return _0x1b5191?{'count':_0x1fe3be,'rows':_0x1b5191}:null;})[_0x44247d('0x1f')](respondWithResult(_0x26d335,null))[_0x44247d('0x2e')](handleError(_0x26d335,null));}; \ No newline at end of file +const a299_0x5ed6=['intersection','limit','rawAttributes','json','count','attributes','create','then','VIRTUAL','nolimit','where','end','api','undefined','merge','order','status','like','fields','destroy','Content-Range','getDescriptions','set','model','type','query','findAll','ServicenowConfiguration','../../config/logger','getSubjects','show','rows','send','catch','stack','includeAll','filter','offset','name','../../mysqldb','length','filters','map','index','ServicenowField','body','getFields','findOne','fieldName','include','keys','options','params','error','pick','sort'];(function(_0x3ba1b4,_0x5ed63b){const _0xa17854=function(_0x301c7f){while(--_0x301c7f){_0x3ba1b4['push'](_0x3ba1b4['shift']());}};_0xa17854(++_0x5ed63b);}(a299_0x5ed6,0x10d));const a299_0xa178=function(_0x3ba1b4,_0x5ed63b){_0x3ba1b4=_0x3ba1b4-0x0;let _0xa17854=a299_0x5ed6[_0x3ba1b4];return _0xa17854;};const _0x1dd4b6=a299_0xa178;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x1dd4b6('0x27'))(_0x1dd4b6('0x17')),db=require(_0x1dd4b6('0x32'))['db'],{Op}=require('sequelize');function respondWithResult(_0x301c7f,_0x25c45b){return _0x25c45b=_0x25c45b||0xc8,function(_0x3ee052){if(_0x3ee052)return _0x301c7f['status'](_0x25c45b)['json'](_0x3ee052);};}function respondWithFilteredResult(_0x280d18,_0x5c71b6){return function(_0x47731e){const _0x516047=a299_0xa178;if(_0x47731e){const _0xdd1124=_0x47731e['count'],_0x58c9ea=_0x5c71b6[_0x516047('0x30')];let _0x287382=_0x5c71b6['offset']+_0x5c71b6[_0x516047('0xc')],_0x2b1cbc;return _0x287382>=_0xdd1124?(_0x287382=_0xdd1124,_0x2b1cbc=0xc8):_0x2b1cbc=0xce,_0x280d18[_0x516047('0x1b')](_0x2b1cbc),_0x280d18[_0x516047('0x21')](_0x516047('0x1f'),_0x58c9ea+'-'+_0x287382+'/'+_0xdd1124)[_0x516047('0xe')](_0x47731e);}return null;};}function saveUpdates(_0x137a84){return function(_0x55cae0){const _0x218a2a=a299_0xa178;if(_0x55cae0)return _0x55cae0['update'](_0x137a84)[_0x218a2a('0x12')](function(_0x3c00ff){return _0x3c00ff;});return null;};}function removeEntity(_0x24b077){return function(_0x29d67d){const _0x4abecd=a299_0xa178;if(_0x29d67d)return _0x29d67d[_0x4abecd('0x1e')]()['then'](function(){const _0x4d6fe1=_0x4abecd;_0x24b077['status'](0xcc)[_0x4d6fe1('0x16')]();});};}function handleEntityNotFound(_0x55932f){return function(_0x4fe1bc){return!_0x4fe1bc&&_0x55932f['sendStatus'](0x194),_0x4fe1bc;};}function handleError(_0x40f9e9,_0x3f63b3){return _0x3f63b3=_0x3f63b3||0x1f4,function(_0x51a544){const _0x2cb24d=a299_0xa178;logger[_0x2cb24d('0x8')](_0x51a544[_0x2cb24d('0x2d')]),_0x51a544[_0x2cb24d('0x31')]&&delete _0x51a544[_0x2cb24d('0x31')],_0x40f9e9[_0x2cb24d('0x1b')](_0x3f63b3)[_0x2cb24d('0x2b')](_0x51a544);};}exports[_0x1dd4b6('0x36')]=function(_0x4ff01e,_0x3671f9){const _0x2df7ae=_0x1dd4b6;let _0x54ed72={};const _0x4c40ed={},_0x5c4551={'count':0x0,'rows':[]},_0x3239bc=_[_0x2df7ae('0x35')](db[_0x2df7ae('0x26')]['rawAttributes'],function(_0x340f57){const _0x1b9ceb=_0x2df7ae;return{'name':_0x340f57[_0x1b9ceb('0x3')],'type':_0x340f57[_0x1b9ceb('0x23')]['key']};});_0x4c40ed['model']=_[_0x2df7ae('0x35')](_0x3239bc,_0x2df7ae('0x31')),_0x4c40ed[_0x2df7ae('0x24')]=_[_0x2df7ae('0x5')](_0x4ff01e[_0x2df7ae('0x24')]),_0x4c40ed[_0x2df7ae('0x34')]=_[_0x2df7ae('0xb')](_0x4c40ed[_0x2df7ae('0x22')],_0x4c40ed[_0x2df7ae('0x24')]),_0x54ed72['attributes']=_['intersection'](_0x4c40ed[_0x2df7ae('0x22')],qs[_0x2df7ae('0x1d')](_0x4ff01e[_0x2df7ae('0x24')][_0x2df7ae('0x1d')])),_0x54ed72[_0x2df7ae('0x10')]=_0x54ed72['attributes'][_0x2df7ae('0x33')]?_0x54ed72[_0x2df7ae('0x10')]:_0x4c40ed[_0x2df7ae('0x22')];typeof _0x4ff01e[_0x2df7ae('0x24')][_0x2df7ae('0x14')]===_0x2df7ae('0x18')&&(_0x54ed72['limit']=qs[_0x2df7ae('0xc')](_0x4ff01e['query'][_0x2df7ae('0xc')]),_0x54ed72[_0x2df7ae('0x30')]=qs['offset'](_0x4ff01e[_0x2df7ae('0x24')][_0x2df7ae('0x30')]));_0x54ed72[_0x2df7ae('0x1a')]=qs['sort'](_0x4ff01e[_0x2df7ae('0x24')][_0x2df7ae('0xa')]),_0x54ed72['where']=qs[_0x2df7ae('0x34')](_[_0x2df7ae('0x9')](_0x4ff01e[_0x2df7ae('0x24')],_0x4c40ed[_0x2df7ae('0x34')]),_0x3239bc);_0x4ff01e['query'][_0x2df7ae('0x2f')]&&(_0x54ed72[_0x2df7ae('0x15')]=_[_0x2df7ae('0x19')](_0x54ed72[_0x2df7ae('0x15')],{[Op['or']]:_[_0x2df7ae('0x35')](_0x3239bc,function(_0x5833e0){const _0x1ec7b5=_0x2df7ae;if(_0x5833e0[_0x1ec7b5('0x23')]!==_0x1ec7b5('0x13')){const _0x51ce93={};return _0x51ce93[_0x5833e0[_0x1ec7b5('0x31')]]={[Op[_0x1ec7b5('0x1c')]]:'%'+_0x4ff01e['query']['filter']+'%'},_0x51ce93;}})}));_0x54ed72=_[_0x2df7ae('0x19')]({},_0x54ed72,_0x4ff01e[_0x2df7ae('0x6')]);const _0x34e09e={'where':_0x54ed72[_0x2df7ae('0x15')]};return db[_0x2df7ae('0x26')]['count'](_0x34e09e)[_0x2df7ae('0x12')](function(_0x52e754){const _0x4f3ec9=_0x2df7ae;return _0x5c4551[_0x4f3ec9('0xf')]=_0x52e754,_0x4ff01e[_0x4f3ec9('0x24')]['includeAll']&&(_0x54ed72[_0x4f3ec9('0x4')]=[{'all':!![]}]),db['ServicenowConfiguration'][_0x4f3ec9('0x25')](_0x54ed72);})[_0x2df7ae('0x12')](function(_0x7cdb57){const _0x2ea1dd=_0x2df7ae;return _0x5c4551[_0x2ea1dd('0x2a')]=_0x7cdb57,_0x5c4551;})[_0x2df7ae('0x12')](respondWithFilteredResult(_0x3671f9,_0x54ed72))[_0x2df7ae('0x2c')](handleError(_0x3671f9,null));},exports[_0x1dd4b6('0x29')]=function(_0x188574,_0x3312db){const _0x31b928=_0x1dd4b6;let _0x39d00a={'raw':![],'where':{'id':_0x188574['params']['id']}};const _0x271cc5={};return _0x271cc5[_0x31b928('0x22')]=_['keys'](db[_0x31b928('0x26')]['rawAttributes']),_0x271cc5['query']=_[_0x31b928('0x5')](_0x188574[_0x31b928('0x24')]),_0x271cc5['filters']=_[_0x31b928('0xb')](_0x271cc5[_0x31b928('0x22')],_0x271cc5[_0x31b928('0x24')]),_0x39d00a[_0x31b928('0x10')]=_[_0x31b928('0xb')](_0x271cc5[_0x31b928('0x22')],qs[_0x31b928('0x1d')](_0x188574[_0x31b928('0x24')][_0x31b928('0x1d')])),_0x39d00a['attributes']=_0x39d00a['attributes'][_0x31b928('0x33')]?_0x39d00a[_0x31b928('0x10')]:_0x271cc5['model'],_0x188574['query'][_0x31b928('0x2e')]&&(_0x39d00a['include']=[{'all':!![]}]),_0x39d00a=_[_0x31b928('0x19')]({},_0x39d00a,_0x188574[_0x31b928('0x6')]),db['ServicenowConfiguration'][_0x31b928('0x2')](_0x39d00a)[_0x31b928('0x12')](handleEntityNotFound(_0x3312db,null))[_0x31b928('0x12')](respondWithResult(_0x3312db,null))['catch'](handleError(_0x3312db,null));},exports[_0x1dd4b6('0x11')]=function(_0x4e6395,_0x6a30f0){const _0x4e3e66=_0x1dd4b6;return db['ServicenowConfiguration'][_0x4e3e66('0x11')](_0x4e6395[_0x4e3e66('0x0')],{})[_0x4e3e66('0x12')](respondWithResult(_0x6a30f0,0xc9))[_0x4e3e66('0x2c')](handleError(_0x6a30f0,null));},exports['update']=function(_0x3f5b84,_0x4058f4){const _0x1f6e20=_0x1dd4b6;return _0x3f5b84[_0x1f6e20('0x0')]['id']&&delete _0x3f5b84[_0x1f6e20('0x0')]['id'],db[_0x1f6e20('0x26')][_0x1f6e20('0x2')]({'where':{'id':_0x3f5b84[_0x1f6e20('0x7')]['id']}})[_0x1f6e20('0x12')](handleEntityNotFound(_0x4058f4,null))['then'](saveUpdates(_0x3f5b84['body'],null))[_0x1f6e20('0x12')](respondWithResult(_0x4058f4,null))['catch'](handleError(_0x4058f4,null));},exports[_0x1dd4b6('0x1e')]=function(_0x6b6433,_0x2fa978){const _0xe20aa2=_0x1dd4b6;return db[_0xe20aa2('0x26')][_0xe20aa2('0x2')]({'where':{'id':_0x6b6433[_0xe20aa2('0x7')]['id']}})[_0xe20aa2('0x12')](handleEntityNotFound(_0x2fa978,null))['then'](removeEntity(_0x2fa978,null))['catch'](handleError(_0x2fa978,null));},exports[_0x1dd4b6('0x1')]=function(_0x21ba41,_0x456059){const _0x10f40d=_0x1dd4b6;let _0x4ae7d3={};const _0x364090={};let _0x59b6c1,_0x17e0d5;return db[_0x10f40d('0x26')][_0x10f40d('0x2')]({'where':{'id':_0x21ba41[_0x10f40d('0x7')]['id']}})[_0x10f40d('0x12')](handleEntityNotFound(_0x456059,null))[_0x10f40d('0x12')](function(_0x548037){const _0x4afebc=_0x10f40d;if(_0x548037)return _0x59b6c1=_0x548037,_0x364090[_0x4afebc('0x22')]=_['keys'](db['ServicenowField']['rawAttributes']),_0x364090[_0x4afebc('0x24')]=_['keys'](_0x21ba41[_0x4afebc('0x24')]),_0x364090[_0x4afebc('0x34')]=_[_0x4afebc('0xb')](_0x364090[_0x4afebc('0x22')],_0x364090['query']),_0x4ae7d3[_0x4afebc('0x10')]=_['intersection'](_0x364090[_0x4afebc('0x22')],qs[_0x4afebc('0x1d')](_0x21ba41[_0x4afebc('0x24')][_0x4afebc('0x1d')])),_0x4ae7d3['attributes']=_0x4ae7d3[_0x4afebc('0x10')][_0x4afebc('0x33')]?_0x4ae7d3[_0x4afebc('0x10')]:_0x364090[_0x4afebc('0x22')],_0x4ae7d3[_0x4afebc('0x1a')]=qs[_0x4afebc('0xa')](_0x21ba41[_0x4afebc('0x24')][_0x4afebc('0xa')]),_0x4ae7d3['where']=qs[_0x4afebc('0x34')](_['pick'](_0x21ba41[_0x4afebc('0x24')],_0x364090[_0x4afebc('0x34')])),_0x21ba41['query'][_0x4afebc('0x2f')]&&(_0x4ae7d3[_0x4afebc('0x15')]=_[_0x4afebc('0x19')](_0x4ae7d3['where'],{[Op['or']]:_[_0x4afebc('0x35')](_0x4ae7d3[_0x4afebc('0x10')],function(_0x1b16d6){const _0x270454=_0x4afebc,_0x46aa1={};return _0x46aa1[_0x1b16d6]={[Op[_0x270454('0x1c')]]:'%'+_0x21ba41['query'][_0x270454('0x2f')]+'%'},_0x46aa1;})})),_0x4ae7d3=_['merge']({},_0x4ae7d3,_0x21ba41['options']),_0x59b6c1[_0x4afebc('0x1')](_0x4ae7d3);})[_0x10f40d('0x12')](function(_0x5b9dc9){const _0x526622=_0x10f40d;if(_0x5b9dc9)return _0x17e0d5=_0x5b9dc9[_0x526622('0x33')],typeof _0x21ba41[_0x526622('0x24')]['nolimit']==='undefined'&&(_0x4ae7d3[_0x526622('0xc')]=qs['limit'](_0x21ba41['query'][_0x526622('0xc')]),_0x4ae7d3['offset']=qs[_0x526622('0x30')](_0x21ba41[_0x526622('0x24')]['offset'])),_0x59b6c1['getFields'](_0x4ae7d3);})[_0x10f40d('0x12')](function(_0x264c65){if(_0x264c65)return _0x264c65?{'count':_0x17e0d5,'rows':_0x264c65}:null;})[_0x10f40d('0x12')](respondWithResult(_0x456059,null))[_0x10f40d('0x2c')](handleError(_0x456059,null));},exports[_0x1dd4b6('0x28')]=function(_0x30def7,_0x2353fd){const _0x309112=_0x1dd4b6;let _0x124e56={};const _0x20c4fc={};let _0x324866,_0x4054a0;return db[_0x309112('0x26')]['findOne']({'where':{'id':_0x30def7[_0x309112('0x7')]['id']}})[_0x309112('0x12')](handleEntityNotFound(_0x2353fd,null))[_0x309112('0x12')](function(_0x58f29e){const _0x47b749=_0x309112;if(_0x58f29e)return _0x324866=_0x58f29e,_0x20c4fc[_0x47b749('0x22')]=_[_0x47b749('0x5')](db[_0x47b749('0x37')][_0x47b749('0xd')]),_0x20c4fc['query']=_[_0x47b749('0x5')](_0x30def7['query']),_0x20c4fc['filters']=_['intersection'](_0x20c4fc[_0x47b749('0x22')],_0x20c4fc[_0x47b749('0x24')]),_0x124e56[_0x47b749('0x10')]=_[_0x47b749('0xb')](_0x20c4fc[_0x47b749('0x22')],qs[_0x47b749('0x1d')](_0x30def7[_0x47b749('0x24')]['fields'])),_0x124e56[_0x47b749('0x10')]=_0x124e56[_0x47b749('0x10')][_0x47b749('0x33')]?_0x124e56[_0x47b749('0x10')]:_0x20c4fc[_0x47b749('0x22')],_0x124e56[_0x47b749('0x1a')]=qs['sort'](_0x30def7[_0x47b749('0x24')]['sort']),_0x124e56['where']=qs[_0x47b749('0x34')](_[_0x47b749('0x9')](_0x30def7[_0x47b749('0x24')],_0x20c4fc[_0x47b749('0x34')])),_0x30def7['query'][_0x47b749('0x2f')]&&(_0x124e56[_0x47b749('0x15')]=_['merge'](_0x124e56[_0x47b749('0x15')],{[Op['or']]:_[_0x47b749('0x35')](_0x124e56['attributes'],function(_0x145d8c){const _0x2de150=_0x47b749,_0x3165a8={};return _0x3165a8[_0x145d8c]={[Op[_0x2de150('0x1c')]]:'%'+_0x30def7[_0x2de150('0x24')][_0x2de150('0x2f')]+'%'},_0x3165a8;})})),_0x124e56=_[_0x47b749('0x19')]({},_0x124e56,_0x30def7['options']),_0x324866[_0x47b749('0x28')](_0x124e56);})[_0x309112('0x12')](function(_0x52205f){const _0x47aff1=_0x309112;if(_0x52205f)return _0x4054a0=_0x52205f[_0x47aff1('0x33')],typeof _0x30def7[_0x47aff1('0x24')]['nolimit']===_0x47aff1('0x18')&&(_0x124e56[_0x47aff1('0xc')]=qs['limit'](_0x30def7[_0x47aff1('0x24')][_0x47aff1('0xc')]),_0x124e56[_0x47aff1('0x30')]=qs['offset'](_0x30def7[_0x47aff1('0x24')][_0x47aff1('0x30')])),_0x324866['getSubjects'](_0x124e56);})[_0x309112('0x12')](function(_0x57250a){if(_0x57250a)return _0x57250a?{'count':_0x4054a0,'rows':_0x57250a}:null;})[_0x309112('0x12')](respondWithResult(_0x2353fd,null))[_0x309112('0x2c')](handleError(_0x2353fd,null));},exports[_0x1dd4b6('0x20')]=function(_0x2a750f,_0x4c9b06){const _0x33cc6b=_0x1dd4b6;let _0x4084cc={};const _0x1b1ae7={};let _0x1075c7,_0x567707;return db[_0x33cc6b('0x26')][_0x33cc6b('0x2')]({'where':{'id':_0x2a750f[_0x33cc6b('0x7')]['id']}})['then'](handleEntityNotFound(_0x4c9b06,null))[_0x33cc6b('0x12')](function(_0x3ae537){const _0x18af1c=_0x33cc6b;if(_0x3ae537)return _0x1075c7=_0x3ae537,_0x1b1ae7[_0x18af1c('0x22')]=_['keys'](db[_0x18af1c('0x37')][_0x18af1c('0xd')]),_0x1b1ae7['query']=_[_0x18af1c('0x5')](_0x2a750f[_0x18af1c('0x24')]),_0x1b1ae7['filters']=_[_0x18af1c('0xb')](_0x1b1ae7[_0x18af1c('0x22')],_0x1b1ae7[_0x18af1c('0x24')]),_0x4084cc[_0x18af1c('0x10')]=_[_0x18af1c('0xb')](_0x1b1ae7['model'],qs[_0x18af1c('0x1d')](_0x2a750f[_0x18af1c('0x24')][_0x18af1c('0x1d')])),_0x4084cc[_0x18af1c('0x10')]=_0x4084cc[_0x18af1c('0x10')][_0x18af1c('0x33')]?_0x4084cc['attributes']:_0x1b1ae7[_0x18af1c('0x22')],_0x4084cc['order']=qs[_0x18af1c('0xa')](_0x2a750f[_0x18af1c('0x24')]['sort']),_0x4084cc[_0x18af1c('0x15')]=qs[_0x18af1c('0x34')](_['pick'](_0x2a750f['query'],_0x1b1ae7[_0x18af1c('0x34')])),_0x2a750f[_0x18af1c('0x24')][_0x18af1c('0x2f')]&&(_0x4084cc[_0x18af1c('0x15')]=_[_0x18af1c('0x19')](_0x4084cc[_0x18af1c('0x15')],{[Op['or']]:_[_0x18af1c('0x35')](_0x4084cc['attributes'],function(_0x13550c){const _0x35cc09=_0x18af1c,_0x808cf8={};return _0x808cf8[_0x13550c]={[Op[_0x35cc09('0x1c')]]:'%'+_0x2a750f[_0x35cc09('0x24')][_0x35cc09('0x2f')]+'%'},_0x808cf8;})})),_0x4084cc=_[_0x18af1c('0x19')]({},_0x4084cc,_0x2a750f['options']),_0x1075c7[_0x18af1c('0x20')](_0x4084cc);})[_0x33cc6b('0x12')](function(_0x284bb7){const _0x580c39=_0x33cc6b;if(_0x284bb7)return _0x567707=_0x284bb7[_0x580c39('0x33')],typeof _0x2a750f['query'][_0x580c39('0x14')]===_0x580c39('0x18')&&(_0x4084cc[_0x580c39('0xc')]=qs[_0x580c39('0xc')](_0x2a750f[_0x580c39('0x24')][_0x580c39('0xc')]),_0x4084cc['offset']=qs[_0x580c39('0x30')](_0x2a750f[_0x580c39('0x24')][_0x580c39('0x30')])),_0x1075c7[_0x580c39('0x20')](_0x4084cc);})[_0x33cc6b('0x12')](function(_0x504748){if(_0x504748)return _0x504748?{'count':_0x567707,'rows':_0x504748}:null;})[_0x33cc6b('0x12')](respondWithResult(_0x4c9b06,null))[_0x33cc6b('0x2c')](handleError(_0x4c9b06,null));}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js index 9919910..4bad3bb 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js @@ -1 +1 @@ -const a300_0x57e5=['define','./intServicenowConfiguration.attributes','ServicenowConfiguration','exports'];(function(_0x9b87b7,_0x57e5c6){const _0x88e437=function(_0x18c77f){while(--_0x18c77f){_0x9b87b7['push'](_0x9b87b7['shift']());}};_0x88e437(++_0x57e5c6);}(a300_0x57e5,0x18e));const a300_0x88e4=function(_0x9b87b7,_0x57e5c6){_0x9b87b7=_0x9b87b7-0x0;let _0x88e437=a300_0x57e5[_0x9b87b7];return _0x88e437;};const _0x480903=a300_0x88e4;'use strict';const attributes=require(_0x480903('0x3'));module[_0x480903('0x1')]=function(_0x18c77f){const _0x3c7d97=_0x480903,_0x39addf=_0x18c77f[_0x3c7d97('0x2')](_0x3c7d97('0x0'),attributes,{'tableName':'int_servicenow_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x39addf;}; \ No newline at end of file +const a300_0x20cf=['define'];(function(_0x16182c,_0x20cff9){const _0x5b6c9c=function(_0x1967f3){while(--_0x1967f3){_0x16182c['push'](_0x16182c['shift']());}};_0x5b6c9c(++_0x20cff9);}(a300_0x20cf,0x165));const a300_0x5b6c=function(_0x16182c,_0x20cff9){_0x16182c=_0x16182c-0x0;let _0x5b6c9c=a300_0x20cf[_0x16182c];return _0x5b6c9c;};'use strict';const attributes=require('./intServicenowConfiguration.attributes');module['exports']=function(_0x1967f3){const _0x50aa9d=a300_0x5b6c,_0x2a1aeb=_0x1967f3[_0x50aa9d('0x0')]('ServicenowConfiguration',attributes,{'tableName':'int_servicenow_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2a1aeb;}; \ No newline at end of file diff --git a/server/api/intServicenowField/index.js b/server/api/intServicenowField/index.js index 566a303..b76c558 100644 --- a/server/api/intServicenowField/index.js +++ b/server/api/intServicenowField/index.js @@ -1 +1 @@ -const a301_0x37fa=['./intServicenowField.controller','delete','update','express','create','put','post','isAuthenticated','get','/:id','index','exports'];(function(_0x52ce85,_0x37fa93){const _0x42f8e8=function(_0x14af97){while(--_0x14af97){_0x52ce85['push'](_0x52ce85['shift']());}};_0x42f8e8(++_0x37fa93);}(a301_0x37fa,0xc2));const a301_0x42f8=function(_0x52ce85,_0x37fa93){_0x52ce85=_0x52ce85-0x0;let _0x42f8e8=a301_0x37fa[_0x52ce85];return _0x42f8e8;};const _0x15c89d=a301_0x42f8;'use strict';const express=require(_0x15c89d('0x1')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x15c89d('0xa'));router[_0x15c89d('0x6')]('/',auth['isAuthenticated'](),controller[_0x15c89d('0x8')]),router[_0x15c89d('0x6')](_0x15c89d('0x7'),auth[_0x15c89d('0x5')](),controller['show']),router[_0x15c89d('0x4')]('/',auth[_0x15c89d('0x5')](),controller[_0x15c89d('0x2')]),router[_0x15c89d('0x3')]('/:id',auth[_0x15c89d('0x5')](),controller[_0x15c89d('0x0')]),router[_0x15c89d('0xb')](_0x15c89d('0x7'),auth[_0x15c89d('0x5')](),controller['destroy']),module[_0x15c89d('0x9')]=router; \ No newline at end of file +const a301_0x303a=['update','index','show','./intServicenowField.controller','post','put','isAuthenticated','/:id','destroy','delete'];(function(_0x28c714,_0x303af7){const _0x43f149=function(_0x590a3a){while(--_0x590a3a){_0x28c714['push'](_0x28c714['shift']());}};_0x43f149(++_0x303af7);}(a301_0x303a,0x114));const a301_0x43f1=function(_0x28c714,_0x303af7){_0x28c714=_0x28c714-0x0;let _0x43f149=a301_0x303a[_0x28c714];return _0x43f149;};const _0x5ee4ff=a301_0x43f1;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x5ee4ff('0x7'));router['get']('/',auth[_0x5ee4ff('0x0')](),controller[_0x5ee4ff('0x5')]),router['get'](_0x5ee4ff('0x1'),auth[_0x5ee4ff('0x0')](),controller[_0x5ee4ff('0x6')]),router[_0x5ee4ff('0x8')]('/',auth[_0x5ee4ff('0x0')](),controller['create']),router[_0x5ee4ff('0x9')](_0x5ee4ff('0x1'),auth['isAuthenticated'](),controller[_0x5ee4ff('0x4')]),router[_0x5ee4ff('0x3')](_0x5ee4ff('0x1'),auth[_0x5ee4ff('0x0')](),controller[_0x5ee4ff('0x2')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.attributes.js b/server/api/intServicenowField/intServicenowField.attributes.js index a176bcf..a1acff3 100644 --- a/server/api/intServicenowField/intServicenowField.attributes.js +++ b/server/api/intServicenowField/intServicenowField.attributes.js @@ -1 +1 @@ -const a302_0x55c3=['variable','customVariable','keyValue','STRING','sequelize','ENUM','BOOLEAN','string','exports'];(function(_0x1bff67,_0x55c3d8){const _0x54dc85=function(_0x329a46){while(--_0x329a46){_0x1bff67['push'](_0x1bff67['shift']());}};_0x54dc85(++_0x55c3d8);}(a302_0x55c3,0x1f0));const a302_0x54dc=function(_0x1bff67,_0x55c3d8){_0x1bff67=_0x1bff67-0x0;let _0x54dc85=a302_0x55c3[_0x1bff67];return _0x54dc85;};const _0x40ad7c=a302_0x54dc;'use strict';const Sequelize=require(_0x40ad7c('0x3'));module[_0x40ad7c('0x7')]={'type':{'type':Sequelize[_0x40ad7c('0x4')](_0x40ad7c('0x6'),_0x40ad7c('0x8'),_0x40ad7c('0x0'),_0x40ad7c('0x1')),'defaultValue':'string'},'content':{'type':Sequelize[_0x40ad7c('0x2')]},'key':{'type':Sequelize[_0x40ad7c('0x2')]},'keyType':{'type':Sequelize[_0x40ad7c('0x4')](_0x40ad7c('0x6'),_0x40ad7c('0x8'),_0x40ad7c('0x0'))},'keyContent':{'type':Sequelize[_0x40ad7c('0x2')]},'idField':{'type':Sequelize[_0x40ad7c('0x2')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x40ad7c('0x5')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x40ad7c('0x2')]}}; \ No newline at end of file +const a302_0x3060=['customVariable','STRING','variable','sequelize','ENUM','string'];(function(_0x5900e6,_0x3060e){const _0x57a90a=function(_0x17d05c){while(--_0x17d05c){_0x5900e6['push'](_0x5900e6['shift']());}};_0x57a90a(++_0x3060e);}(a302_0x3060,0xdd));const a302_0x57a9=function(_0x5900e6,_0x3060e){_0x5900e6=_0x5900e6-0x0;let _0x57a90a=a302_0x3060[_0x5900e6];return _0x57a90a;};const _0x58e2f7=a302_0x57a9;'use strict';const Sequelize=require(_0x58e2f7('0x4'));module['exports']={'type':{'type':Sequelize['ENUM'](_0x58e2f7('0x0'),_0x58e2f7('0x3'),_0x58e2f7('0x1'),'keyValue'),'defaultValue':_0x58e2f7('0x0')},'content':{'type':Sequelize[_0x58e2f7('0x2')]},'key':{'type':Sequelize[_0x58e2f7('0x2')]},'keyType':{'type':Sequelize[_0x58e2f7('0x5')](_0x58e2f7('0x0'),_0x58e2f7('0x3'),_0x58e2f7('0x1'))},'keyContent':{'type':Sequelize[_0x58e2f7('0x2')]},'idField':{'type':Sequelize[_0x58e2f7('0x2')]},'nameField':{'type':Sequelize[_0x58e2f7('0x2')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.controller.js b/server/api/intServicenowField/intServicenowField.controller.js index d6be033..d631624 100644 --- a/server/api/intServicenowField/intServicenowField.controller.js +++ b/server/api/intServicenowField/intServicenowField.controller.js @@ -1 +1 @@ -const a303_0x5a68=['attributes','sort','count','type','end','includeAll','sequelize','json','stack','keys','body','offset','undefined','order','update','map','params','rows','filters','catch','destroy','ServicenowField','fields','filter','options','set','../../config/logger','show','pick','findOne','merge','like','include','model','status','sendStatus','length','limit','query','index','error','Content-Range','name','api','send','where','then','../../mysqldb','intersection','create','VIRTUAL'];(function(_0xfcf303,_0x5a686c){const _0x2ac635=function(_0x1aba56){while(--_0x1aba56){_0xfcf303['push'](_0xfcf303['shift']());}};_0x2ac635(++_0x5a686c);}(a303_0x5a68,0x1b4));const a303_0x2ac6=function(_0xfcf303,_0x5a686c){_0xfcf303=_0xfcf303-0x0;let _0x2ac635=a303_0x5a68[_0xfcf303];return _0x2ac635;};const _0x5799de=a303_0x2ac6;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x5799de('0x31'))(_0x5799de('0xf')),db=require(_0x5799de('0x13'))['db'],{Op}=require(_0x5799de('0x1d'));function respondWithResult(_0x1aba56,_0x20f6e0){return _0x20f6e0=_0x20f6e0||0xc8,function(_0x1f748c){const _0x3f0e94=a303_0x2ac6;if(_0x1f748c)return _0x1aba56['status'](_0x20f6e0)[_0x3f0e94('0x1e')](_0x1f748c);};}function respondWithFilteredResult(_0x343dc1,_0x36c421){return function(_0x3d89fe){const _0x4d4a41=a303_0x2ac6;if(_0x3d89fe){const _0x21831c=_0x3d89fe[_0x4d4a41('0x19')],_0x2ab32e=_0x36c421[_0x4d4a41('0x22')];let _0x143be8=_0x36c421[_0x4d4a41('0x22')]+_0x36c421[_0x4d4a41('0x9')],_0x5af092;return _0x143be8>=_0x21831c?(_0x143be8=_0x21831c,_0x5af092=0xc8):_0x5af092=0xce,_0x343dc1[_0x4d4a41('0x6')](_0x5af092),_0x343dc1[_0x4d4a41('0x30')](_0x4d4a41('0xd'),_0x2ab32e+'-'+_0x143be8+'/'+_0x21831c)[_0x4d4a41('0x1e')](_0x3d89fe);}return null;};}function saveUpdates(_0x14e5de){return function(_0x2e0bed){const _0x395f3c=a303_0x2ac6;if(_0x2e0bed)return _0x2e0bed[_0x395f3c('0x25')](_0x14e5de)[_0x395f3c('0x12')](function(_0x59b0c4){return _0x59b0c4;});return null;};}function removeEntity(_0x43234f){return function(_0x132fbe){const _0x1f9b58=a303_0x2ac6;if(_0x132fbe)return _0x132fbe[_0x1f9b58('0x2b')]()[_0x1f9b58('0x12')](function(){const _0x17ada3=_0x1f9b58;_0x43234f[_0x17ada3('0x6')](0xcc)[_0x17ada3('0x1b')]();});};}function handleEntityNotFound(_0x2a65dc){return function(_0x591928){const _0x4f90a8=a303_0x2ac6;return!_0x591928&&_0x2a65dc[_0x4f90a8('0x7')](0x194),_0x591928;};}function handleError(_0x2b3936,_0x1027d1){return _0x1027d1=_0x1027d1||0x1f4,function(_0x2f912a){const _0x1edb4e=a303_0x2ac6;logger[_0x1edb4e('0xc')](_0x2f912a[_0x1edb4e('0x1f')]),_0x2f912a['name']&&delete _0x2f912a['name'],_0x2b3936['status'](_0x1027d1)[_0x1edb4e('0x10')](_0x2f912a);};}exports[_0x5799de('0xb')]=function(_0x4aa579,_0x128b7f){const _0x289f4f=_0x5799de;let _0x51b998={};const _0xf14714={},_0x5f17ed={'count':0x0,'rows':[]},_0x2895dd=_[_0x289f4f('0x26')](db[_0x289f4f('0x2c')]['rawAttributes'],function(_0x5282c3){const _0xca290=_0x289f4f;return{'name':_0x5282c3['fieldName'],'type':_0x5282c3[_0xca290('0x1a')]['key']};});_0xf14714[_0x289f4f('0x5')]=_[_0x289f4f('0x26')](_0x2895dd,_0x289f4f('0xe')),_0xf14714[_0x289f4f('0xa')]=_[_0x289f4f('0x20')](_0x4aa579['query']),_0xf14714[_0x289f4f('0x29')]=_[_0x289f4f('0x14')](_0xf14714[_0x289f4f('0x5')],_0xf14714[_0x289f4f('0xa')]),_0x51b998[_0x289f4f('0x17')]=_[_0x289f4f('0x14')](_0xf14714['model'],qs[_0x289f4f('0x2d')](_0x4aa579[_0x289f4f('0xa')]['fields'])),_0x51b998['attributes']=_0x51b998[_0x289f4f('0x17')][_0x289f4f('0x8')]?_0x51b998['attributes']:_0xf14714[_0x289f4f('0x5')];typeof _0x4aa579['query']['nolimit']===_0x289f4f('0x23')&&(_0x51b998[_0x289f4f('0x9')]=qs[_0x289f4f('0x9')](_0x4aa579[_0x289f4f('0xa')][_0x289f4f('0x9')]),_0x51b998['offset']=qs[_0x289f4f('0x22')](_0x4aa579['query'][_0x289f4f('0x22')]));_0x51b998[_0x289f4f('0x24')]=qs['sort'](_0x4aa579[_0x289f4f('0xa')][_0x289f4f('0x18')]),_0x51b998[_0x289f4f('0x11')]=qs['filters'](_[_0x289f4f('0x0')](_0x4aa579[_0x289f4f('0xa')],_0xf14714['filters']),_0x2895dd);_0x4aa579['query'][_0x289f4f('0x2e')]&&(_0x51b998['where']=_[_0x289f4f('0x2')](_0x51b998['where'],{[Op['or']]:_[_0x289f4f('0x26')](_0x2895dd,function(_0x2d8240){const _0x37acb0=_0x289f4f;if(_0x2d8240[_0x37acb0('0x1a')]!==_0x37acb0('0x16')){const _0x3f6c95={};return _0x3f6c95[_0x2d8240['name']]={[Op[_0x37acb0('0x3')]]:'%'+_0x4aa579[_0x37acb0('0xa')][_0x37acb0('0x2e')]+'%'},_0x3f6c95;}})}));_0x51b998=_[_0x289f4f('0x2')]({},_0x51b998,_0x4aa579[_0x289f4f('0x2f')]);const _0x56c004={'where':_0x51b998[_0x289f4f('0x11')]};return db[_0x289f4f('0x2c')][_0x289f4f('0x19')](_0x56c004)[_0x289f4f('0x12')](function(_0x4b7401){const _0x10bb65=_0x289f4f;return _0x5f17ed['count']=_0x4b7401,_0x4aa579[_0x10bb65('0xa')][_0x10bb65('0x1c')]&&(_0x51b998[_0x10bb65('0x4')]=[{'all':!![]}]),db[_0x10bb65('0x2c')]['findAll'](_0x51b998);})['then'](function(_0xc9a72e){const _0x37b7c6=_0x289f4f;return _0x5f17ed[_0x37b7c6('0x28')]=_0xc9a72e,_0x5f17ed;})[_0x289f4f('0x12')](respondWithFilteredResult(_0x128b7f,_0x51b998))[_0x289f4f('0x2a')](handleError(_0x128b7f,null));},exports[_0x5799de('0x32')]=function(_0xcbf93b,_0x30ef26){const _0x214e19=_0x5799de;let _0x5d7cb7={'raw':!![],'where':{'id':_0xcbf93b[_0x214e19('0x27')]['id']}};const _0xd36b5b={};return _0xd36b5b[_0x214e19('0x5')]=_[_0x214e19('0x20')](db[_0x214e19('0x2c')]['rawAttributes']),_0xd36b5b[_0x214e19('0xa')]=_[_0x214e19('0x20')](_0xcbf93b[_0x214e19('0xa')]),_0xd36b5b[_0x214e19('0x29')]=_[_0x214e19('0x14')](_0xd36b5b[_0x214e19('0x5')],_0xd36b5b['query']),_0x5d7cb7[_0x214e19('0x17')]=_[_0x214e19('0x14')](_0xd36b5b['model'],qs['fields'](_0xcbf93b[_0x214e19('0xa')][_0x214e19('0x2d')])),_0x5d7cb7[_0x214e19('0x17')]=_0x5d7cb7[_0x214e19('0x17')][_0x214e19('0x8')]?_0x5d7cb7[_0x214e19('0x17')]:_0xd36b5b[_0x214e19('0x5')],_0xcbf93b['query'][_0x214e19('0x1c')]&&(_0x5d7cb7['include']=[{'all':!![]}]),_0x5d7cb7=_[_0x214e19('0x2')]({},_0x5d7cb7,_0xcbf93b['options']),db[_0x214e19('0x2c')]['findOne'](_0x5d7cb7)[_0x214e19('0x12')](handleEntityNotFound(_0x30ef26,null))['then'](respondWithResult(_0x30ef26,null))[_0x214e19('0x2a')](handleError(_0x30ef26,null));},exports[_0x5799de('0x15')]=function(_0x3b6548,_0xd8a6d4){const _0x4b90f9=_0x5799de;return db[_0x4b90f9('0x2c')][_0x4b90f9('0x15')](_0x3b6548[_0x4b90f9('0x21')],{})[_0x4b90f9('0x12')](respondWithResult(_0xd8a6d4,0xc9))[_0x4b90f9('0x2a')](handleError(_0xd8a6d4,null));},exports[_0x5799de('0x25')]=function(_0x1ae2da,_0x11896a){const _0x5677be=_0x5799de;return _0x1ae2da[_0x5677be('0x21')]['id']&&delete _0x1ae2da['body']['id'],db[_0x5677be('0x2c')][_0x5677be('0x1')]({'where':{'id':_0x1ae2da['params']['id']}})[_0x5677be('0x12')](handleEntityNotFound(_0x11896a,null))['then'](saveUpdates(_0x1ae2da[_0x5677be('0x21')],null))['then'](respondWithResult(_0x11896a,null))[_0x5677be('0x2a')](handleError(_0x11896a,null));},exports[_0x5799de('0x2b')]=function(_0x342b5c,_0x3dc57e){const _0x2b7c60=_0x5799de;return db['ServicenowField'][_0x2b7c60('0x1')]({'where':{'id':_0x342b5c['params']['id']}})[_0x2b7c60('0x12')](handleEntityNotFound(_0x3dc57e,null))[_0x2b7c60('0x12')](removeEntity(_0x3dc57e,null))['catch'](handleError(_0x3dc57e,null));}; \ No newline at end of file +const a303_0x28f0=['order','merge','offset','count','sort','fields','sequelize','body','type','index','findAll','model','send','filters','include','attributes','show','params','where','create','rows','error','VIRTUAL','ServicenowField','name','limit','findOne','then','intersection','like','catch','destroy','key','end','length','Content-Range','pick','../../config/logger','update','options','status','map','keys','set','sendStatus','query','includeAll','lodash','rawAttributes'];(function(_0xb52c17,_0x28f062){const _0x407bd3=function(_0x45340b){while(--_0x45340b){_0xb52c17['push'](_0xb52c17['shift']());}};_0x407bd3(++_0x28f062);}(a303_0x28f0,0xb7));const a303_0x407b=function(_0xb52c17,_0x28f062){_0xb52c17=_0xb52c17-0x0;let _0x407bd3=a303_0x28f0[_0xb52c17];return _0x407bd3;};const _0x4df2b8=a303_0x407b;'use strict';const _=require(_0x4df2b8('0xb')),qs=require('../../components/parsers/qs'),logger=require(_0x4df2b8('0x1'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x4df2b8('0x13'));function respondWithResult(_0x45340b,_0x277af8){return _0x277af8=_0x277af8||0xc8,function(_0x3e8061){const _0x2fdefb=a303_0x407b;if(_0x3e8061)return _0x45340b[_0x2fdefb('0x4')](_0x277af8)['json'](_0x3e8061);};}function respondWithFilteredResult(_0x4e4f36,_0x192f12){return function(_0x20e388){const _0x35e61d=a303_0x407b;if(_0x20e388){const _0x38c4dd=_0x20e388[_0x35e61d('0x10')],_0x44f3b2=_0x192f12['offset'];let _0x585e3b=_0x192f12[_0x35e61d('0xf')]+_0x192f12['limit'],_0x4a879f;return _0x585e3b>=_0x38c4dd?(_0x585e3b=_0x38c4dd,_0x4a879f=0xc8):_0x4a879f=0xce,_0x4e4f36[_0x35e61d('0x4')](_0x4a879f),_0x4e4f36[_0x35e61d('0x7')](_0x35e61d('0x30'),_0x44f3b2+'-'+_0x585e3b+'/'+_0x38c4dd)['json'](_0x20e388);}return null;};}function saveUpdates(_0xe0d2cd){return function(_0x204801){const _0x62922a=a303_0x407b;if(_0x204801)return _0x204801[_0x62922a('0x2')](_0xe0d2cd)[_0x62922a('0x28')](function(_0x390c15){return _0x390c15;});return null;};}function removeEntity(_0x1c70d9){return function(_0x424eff){const _0x44524e=a303_0x407b;if(_0x424eff)return _0x424eff['destroy']()[_0x44524e('0x28')](function(){const _0x3a8dcc=_0x44524e;_0x1c70d9[_0x3a8dcc('0x4')](0xcc)[_0x3a8dcc('0x2e')]();});};}function handleEntityNotFound(_0x176719){return function(_0x43ce06){const _0x14f0a7=a303_0x407b;return!_0x43ce06&&_0x176719[_0x14f0a7('0x8')](0x194),_0x43ce06;};}function handleError(_0x43a2b5,_0x52e020){return _0x52e020=_0x52e020||0x1f4,function(_0x102a04){const _0x17194c=a303_0x407b;logger[_0x17194c('0x22')](_0x102a04['stack']),_0x102a04[_0x17194c('0x25')]&&delete _0x102a04['name'],_0x43a2b5[_0x17194c('0x4')](_0x52e020)[_0x17194c('0x19')](_0x102a04);};}exports[_0x4df2b8('0x16')]=function(_0x5a8dc6,_0x60d382){const _0x3b85ae=_0x4df2b8;let _0x2bd1da={};const _0x4152be={},_0x382d44={'count':0x0,'rows':[]},_0x88d204=_[_0x3b85ae('0x5')](db[_0x3b85ae('0x24')]['rawAttributes'],function(_0x3f5b4f){const _0x111d5d=_0x3b85ae;return{'name':_0x3f5b4f['fieldName'],'type':_0x3f5b4f[_0x111d5d('0x15')][_0x111d5d('0x2d')]};});_0x4152be[_0x3b85ae('0x18')]=_['map'](_0x88d204,_0x3b85ae('0x25')),_0x4152be[_0x3b85ae('0x9')]=_['keys'](_0x5a8dc6[_0x3b85ae('0x9')]),_0x4152be[_0x3b85ae('0x1a')]=_[_0x3b85ae('0x29')](_0x4152be[_0x3b85ae('0x18')],_0x4152be[_0x3b85ae('0x9')]),_0x2bd1da['attributes']=_['intersection'](_0x4152be[_0x3b85ae('0x18')],qs[_0x3b85ae('0x12')](_0x5a8dc6[_0x3b85ae('0x9')][_0x3b85ae('0x12')])),_0x2bd1da[_0x3b85ae('0x1c')]=_0x2bd1da[_0x3b85ae('0x1c')][_0x3b85ae('0x2f')]?_0x2bd1da[_0x3b85ae('0x1c')]:_0x4152be[_0x3b85ae('0x18')];typeof _0x5a8dc6[_0x3b85ae('0x9')]['nolimit']==='undefined'&&(_0x2bd1da[_0x3b85ae('0x26')]=qs['limit'](_0x5a8dc6['query'][_0x3b85ae('0x26')]),_0x2bd1da[_0x3b85ae('0xf')]=qs[_0x3b85ae('0xf')](_0x5a8dc6[_0x3b85ae('0x9')][_0x3b85ae('0xf')]));_0x2bd1da[_0x3b85ae('0xd')]=qs['sort'](_0x5a8dc6[_0x3b85ae('0x9')][_0x3b85ae('0x11')]),_0x2bd1da[_0x3b85ae('0x1f')]=qs['filters'](_[_0x3b85ae('0x0')](_0x5a8dc6[_0x3b85ae('0x9')],_0x4152be[_0x3b85ae('0x1a')]),_0x88d204);_0x5a8dc6[_0x3b85ae('0x9')]['filter']&&(_0x2bd1da[_0x3b85ae('0x1f')]=_[_0x3b85ae('0xe')](_0x2bd1da[_0x3b85ae('0x1f')],{[Op['or']]:_[_0x3b85ae('0x5')](_0x88d204,function(_0x1cc93c){const _0x27191e=_0x3b85ae;if(_0x1cc93c[_0x27191e('0x15')]!==_0x27191e('0x23')){const _0x39c429={};return _0x39c429[_0x1cc93c[_0x27191e('0x25')]]={[Op[_0x27191e('0x2a')]]:'%'+_0x5a8dc6['query']['filter']+'%'},_0x39c429;}})}));_0x2bd1da=_[_0x3b85ae('0xe')]({},_0x2bd1da,_0x5a8dc6['options']);const _0x14e2b3={'where':_0x2bd1da[_0x3b85ae('0x1f')]};return db[_0x3b85ae('0x24')][_0x3b85ae('0x10')](_0x14e2b3)[_0x3b85ae('0x28')](function(_0x399b9f){const _0x5a3aa9=_0x3b85ae;return _0x382d44[_0x5a3aa9('0x10')]=_0x399b9f,_0x5a8dc6[_0x5a3aa9('0x9')][_0x5a3aa9('0xa')]&&(_0x2bd1da[_0x5a3aa9('0x1b')]=[{'all':!![]}]),db['ServicenowField'][_0x5a3aa9('0x17')](_0x2bd1da);})[_0x3b85ae('0x28')](function(_0x34836b){const _0x25b3e1=_0x3b85ae;return _0x382d44[_0x25b3e1('0x21')]=_0x34836b,_0x382d44;})[_0x3b85ae('0x28')](respondWithFilteredResult(_0x60d382,_0x2bd1da))[_0x3b85ae('0x2b')](handleError(_0x60d382,null));},exports[_0x4df2b8('0x1d')]=function(_0x3c4d6a,_0x2a7079){const _0x1bcc7c=_0x4df2b8;let _0xad352={'raw':!![],'where':{'id':_0x3c4d6a[_0x1bcc7c('0x1e')]['id']}};const _0x49e2e9={};return _0x49e2e9[_0x1bcc7c('0x18')]=_['keys'](db['ServicenowField'][_0x1bcc7c('0xc')]),_0x49e2e9[_0x1bcc7c('0x9')]=_[_0x1bcc7c('0x6')](_0x3c4d6a['query']),_0x49e2e9[_0x1bcc7c('0x1a')]=_[_0x1bcc7c('0x29')](_0x49e2e9[_0x1bcc7c('0x18')],_0x49e2e9['query']),_0xad352['attributes']=_[_0x1bcc7c('0x29')](_0x49e2e9['model'],qs[_0x1bcc7c('0x12')](_0x3c4d6a['query'][_0x1bcc7c('0x12')])),_0xad352[_0x1bcc7c('0x1c')]=_0xad352[_0x1bcc7c('0x1c')][_0x1bcc7c('0x2f')]?_0xad352[_0x1bcc7c('0x1c')]:_0x49e2e9['model'],_0x3c4d6a[_0x1bcc7c('0x9')][_0x1bcc7c('0xa')]&&(_0xad352[_0x1bcc7c('0x1b')]=[{'all':!![]}]),_0xad352=_[_0x1bcc7c('0xe')]({},_0xad352,_0x3c4d6a[_0x1bcc7c('0x3')]),db['ServicenowField'][_0x1bcc7c('0x27')](_0xad352)[_0x1bcc7c('0x28')](handleEntityNotFound(_0x2a7079,null))[_0x1bcc7c('0x28')](respondWithResult(_0x2a7079,null))[_0x1bcc7c('0x2b')](handleError(_0x2a7079,null));},exports[_0x4df2b8('0x20')]=function(_0x26742b,_0xf75806){const _0x2b1b06=_0x4df2b8;return db['ServicenowField'][_0x2b1b06('0x20')](_0x26742b['body'],{})[_0x2b1b06('0x28')](respondWithResult(_0xf75806,0xc9))[_0x2b1b06('0x2b')](handleError(_0xf75806,null));},exports[_0x4df2b8('0x2')]=function(_0x190a9c,_0x185f01){const _0x3b5d16=_0x4df2b8;return _0x190a9c['body']['id']&&delete _0x190a9c['body']['id'],db['ServicenowField'][_0x3b5d16('0x27')]({'where':{'id':_0x190a9c[_0x3b5d16('0x1e')]['id']}})[_0x3b5d16('0x28')](handleEntityNotFound(_0x185f01,null))['then'](saveUpdates(_0x190a9c[_0x3b5d16('0x14')],null))[_0x3b5d16('0x28')](respondWithResult(_0x185f01,null))[_0x3b5d16('0x2b')](handleError(_0x185f01,null));},exports[_0x4df2b8('0x2c')]=function(_0x76fc19,_0x310b7d){const _0x3b8e5e=_0x4df2b8;return db[_0x3b8e5e('0x24')][_0x3b8e5e('0x27')]({'where':{'id':_0x76fc19[_0x3b8e5e('0x1e')]['id']}})[_0x3b8e5e('0x28')](handleEntityNotFound(_0x310b7d,null))[_0x3b8e5e('0x28')](removeEntity(_0x310b7d,null))[_0x3b8e5e('0x2b')](handleError(_0x310b7d,null));}; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.model.js b/server/api/intServicenowField/intServicenowField.model.js index d04a4e9..1775945 100644 --- a/server/api/intServicenowField/intServicenowField.model.js +++ b/server/api/intServicenowField/intServicenowField.model.js @@ -1 +1 @@ -const a304_0x5187=['idField','servicenow_unique_index','ServicenowField','int_servicenow_fields','define','exports','./intServicenowField.attributes'];(function(_0x489601,_0x518778){const _0x5bc5f8=function(_0x336333){while(--_0x336333){_0x489601['push'](_0x489601['shift']());}};_0x5bc5f8(++_0x518778);}(a304_0x5187,0x1ab));const a304_0x5bc5=function(_0x489601,_0x518778){_0x489601=_0x489601-0x0;let _0x5bc5f8=a304_0x5187[_0x489601];return _0x5bc5f8;};const _0x330f3f=a304_0x5bc5;'use strict';const attributes=require(_0x330f3f('0x6'));module[_0x330f3f('0x5')]=function(_0x336333){const _0x6a146c=_0x330f3f,_0x3e8898=_0x336333[_0x6a146c('0x4')](_0x6a146c('0x2'),attributes,{'tableName':_0x6a146c('0x3'),'paranoid':![],'indexes':[{'name':_0x6a146c('0x1'),'fields':[_0x6a146c('0x0'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x3e8898;}; \ No newline at end of file +const a304_0x450e=['define','ServicenowField','idField','int_servicenow_fields','./intServicenowField.attributes','servicenow_unique_index'];(function(_0x5119fb,_0x450e1f){const _0x4312af=function(_0x2328aa){while(--_0x2328aa){_0x5119fb['push'](_0x5119fb['shift']());}};_0x4312af(++_0x450e1f);}(a304_0x450e,0xde));const a304_0x4312=function(_0x5119fb,_0x450e1f){_0x5119fb=_0x5119fb-0x0;let _0x4312af=a304_0x450e[_0x5119fb];return _0x4312af;};const _0x2cfb66=a304_0x4312;'use strict';const attributes=require(_0x2cfb66('0x4'));module['exports']=function(_0x2328aa){const _0x1c5943=_0x2cfb66,_0x4fbe7c=_0x2328aa[_0x1c5943('0x0')](_0x1c5943('0x1'),attributes,{'tableName':_0x1c5943('0x3'),'paranoid':![],'indexes':[{'name':_0x1c5943('0x5'),'fields':[_0x1c5943('0x2'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x4fbe7c;}; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/index.js b/server/api/intSugarcrmAccount/index.js index f1f459c..9a8a86f 100644 --- a/server/api/intSugarcrmAccount/index.js +++ b/server/api/intSugarcrmAccount/index.js @@ -1 +1 @@ -const a305_0x17bd=['addConfiguration','update','/:id','create','get','isAuthenticated','getFields','/:id/fields','exports','post','./intSugarcrmAccount.controller','/:id/configurations','destroy'];(function(_0x55a3f7,_0x17bd0e){const _0x1a93ed=function(_0x4ece26){while(--_0x4ece26){_0x55a3f7['push'](_0x55a3f7['shift']());}};_0x1a93ed(++_0x17bd0e);}(a305_0x17bd,0x11d));const a305_0x1a93=function(_0x55a3f7,_0x17bd0e){_0x55a3f7=_0x55a3f7-0x0;let _0x1a93ed=a305_0x17bd[_0x55a3f7];return _0x1a93ed;};const _0x542239=a305_0x1a93;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x542239('0xb'));router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0x542239('0x5')]('/:id',auth[_0x542239('0x6')](),controller['show']),router['get'](_0x542239('0xc'),auth[_0x542239('0x6')](),controller['getConfigurations']),router[_0x542239('0x5')](_0x542239('0x8'),auth['isAuthenticated'](),controller[_0x542239('0x7')]),router[_0x542239('0xa')]('/',auth[_0x542239('0x6')](),controller[_0x542239('0x4')]),router[_0x542239('0xa')](_0x542239('0xc'),auth['isAuthenticated'](),controller[_0x542239('0x1')]),router['put'](_0x542239('0x3'),auth[_0x542239('0x6')](),controller[_0x542239('0x2')]),router['delete'](_0x542239('0x3'),auth[_0x542239('0x6')](),controller[_0x542239('0x0')]),module[_0x542239('0x9')]=router; \ No newline at end of file +const a305_0x3779=['Router','getFields','/:id','index','show','isAuthenticated','./intSugarcrmAccount.controller','getConfigurations','../../components/auth/service','express','/:id/configurations','post','destroy','get','/:id/fields','exports'];(function(_0x4f1957,_0x37792a){const _0x211452=function(_0x3deeec){while(--_0x3deeec){_0x4f1957['push'](_0x4f1957['shift']());}};_0x211452(++_0x37792a);}(a305_0x3779,0x142));const a305_0x2114=function(_0x4f1957,_0x37792a){_0x4f1957=_0x4f1957-0x0;let _0x211452=a305_0x3779[_0x4f1957];return _0x211452;};const _0x2c7f93=a305_0x2114;'use strict';const express=require(_0x2c7f93('0x7')),router=express[_0x2c7f93('0xe')](),auth=require(_0x2c7f93('0x6')),controller=require(_0x2c7f93('0x4'));router[_0x2c7f93('0xb')]('/',auth[_0x2c7f93('0x3')](),controller[_0x2c7f93('0x1')]),router['get'](_0x2c7f93('0x0'),auth[_0x2c7f93('0x3')](),controller[_0x2c7f93('0x2')]),router['get']('/:id/configurations',auth[_0x2c7f93('0x3')](),controller[_0x2c7f93('0x5')]),router['get'](_0x2c7f93('0xc'),auth['isAuthenticated'](),controller[_0x2c7f93('0xf')]),router[_0x2c7f93('0x9')]('/',auth[_0x2c7f93('0x3')](),controller['create']),router[_0x2c7f93('0x9')](_0x2c7f93('0x8'),auth[_0x2c7f93('0x3')](),controller['addConfiguration']),router['put']('/:id',auth[_0x2c7f93('0x3')](),controller['update']),router['delete'](_0x2c7f93('0x0'),auth[_0x2c7f93('0x3')](),controller[_0x2c7f93('0xa')]),module[_0x2c7f93('0xd')]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js index d8d18bf..cec272c 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js @@ -1 +1 @@ -const a306_0x10f0=['username','exports','STRING','sequelize'];(function(_0x1c96f8,_0x10f079){const _0x25d004=function(_0x2a17c2){while(--_0x2a17c2){_0x1c96f8['push'](_0x1c96f8['shift']());}};_0x25d004(++_0x10f079);}(a306_0x10f0,0x13d));const a306_0x25d0=function(_0x1c96f8,_0x10f079){_0x1c96f8=_0x1c96f8-0x0;let _0x25d004=a306_0x10f0[_0x1c96f8];return _0x25d004;};const _0x366227=a306_0x25d0;'use strict';const Sequelize=require(_0x366227('0x2'));module[_0x366227('0x0')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x366227('0x1')]},'username':{'type':Sequelize[_0x366227('0x1')],'unique':_0x366227('0x3')},'password':{'type':Sequelize[_0x366227('0x1')]},'remoteUri':{'type':Sequelize['STRING'],'unique':'remoteUri'},'serverUrl':{'type':Sequelize[_0x366227('0x1')]}}; \ No newline at end of file +const a306_0x25cc=['sequelize','exports','STRING'];(function(_0x4e1697,_0x25cc46){const _0x1dd5ba=function(_0x29d340){while(--_0x29d340){_0x4e1697['push'](_0x4e1697['shift']());}};_0x1dd5ba(++_0x25cc46);}(a306_0x25cc,0xb2));const a306_0x1dd5=function(_0x4e1697,_0x25cc46){_0x4e1697=_0x4e1697-0x0;let _0x1dd5ba=a306_0x25cc[_0x4e1697];return _0x1dd5ba;};const _0x5d1889=a306_0x1dd5;'use strict';const Sequelize=require(_0x5d1889('0x2'));module[_0x5d1889('0x0')]={'name':{'type':Sequelize[_0x5d1889('0x1')]},'description':{'type':Sequelize[_0x5d1889('0x1')]},'username':{'type':Sequelize[_0x5d1889('0x1')],'unique':'username'},'password':{'type':Sequelize[_0x5d1889('0x1')]},'remoteUri':{'type':Sequelize['STRING'],'unique':'remoteUri'},'serverUrl':{'type':Sequelize[_0x5d1889('0x1')]}}; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js index 3d64c1b..2c48366 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js @@ -1 +1 @@ -const a307_0x99ba=['includeAll','then','VIRTUAL','fieldName','Descriptions','label','channel','get_module_fields','where','like','destroy','direction','fields','sendStatus','findAll','update','Wrong\x20credentials','query','format','../../config/logger','pick','end','includes','length','count','send','name','create','slice','../../mysqldb','Invalid\x20Login','intersection','JSON','parent_name','parent_type','remoteUri','value','PLAIN','map','SugarcrmAccount','SugarcrmConfiguration','AccountId','assigned_user_id','model','include','password','stringify','params','getConfigurations','description','xCALLY\x20Motion\x20Integration','Password\x20Expired','merge','sequelize','body','request-promise-native','Subjects','values','endsWith','Calls','module_fields','filters','/service/v4_1/rest.php','getFields','offset','rawAttributes','status','username','undefined','findOne','order','type','api','POST','error','rows','addConfiguration','keys','set','../../components/parsers/qs','sort','statusCode','remove','attributes','nolimit','lodash','options','limit','%s%s','catch','filter','show','json','test','created_by'];(function(_0x260493,_0x99ba18){const _0x354739=function(_0x598f9f){while(--_0x598f9f){_0x260493['push'](_0x260493['shift']());}};_0x354739(++_0x99ba18);}(a307_0x99ba,0xce));const a307_0x3547=function(_0x260493,_0x99ba18){_0x260493=_0x260493-0x0;let _0x354739=a307_0x99ba[_0x260493];return _0x354739;};const _0x50131e=a307_0x3547;'use strict';const rp=require(_0x50131e('0x27')),util=require('util'),_=require(_0x50131e('0x45')),qs=require(_0x50131e('0x3f')),logger=require(_0x50131e('0x3'))(_0x50131e('0x38')),db=require(_0x50131e('0xd'))['db'],{Op}=require(_0x50131e('0x25')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x598f9f,_0x59f3ca){return _0x59f3ca=_0x59f3ca||0xc8,function(_0x4211f5){if(_0x4211f5)return _0x598f9f['status'](_0x59f3ca)['json'](_0x4211f5);};}function respondWithFilteredResult(_0x47a7ce,_0x19a1fd){return function(_0x3f5ba9){const _0x55e667=a307_0x3547;if(_0x3f5ba9){const _0x5d26d8=_0x3f5ba9[_0x55e667('0x8')],_0x35b735=_0x19a1fd['offset'];let _0x2f61ef=_0x19a1fd[_0x55e667('0x30')]+_0x19a1fd['limit'],_0x5644f8;return _0x2f61ef>=_0x5d26d8?(_0x2f61ef=_0x5d26d8,_0x5644f8=0xc8):_0x5644f8=0xce,_0x47a7ce['status'](_0x5644f8),_0x47a7ce[_0x55e667('0x3e')]('Content-Range',_0x35b735+'-'+_0x2f61ef+'/'+_0x5d26d8)[_0x55e667('0x4c')](_0x3f5ba9);}return null;};}function saveUpdates(_0x405950){return function(_0x1879c3){const _0x24ac6f=a307_0x3547;if(_0x1879c3)return _0x1879c3[_0x24ac6f('0x5e')](_0x405950)[_0x24ac6f('0x50')](function(_0x5755d4){return _0x5755d4;});return null;};}function removeEntity(_0x23c2e4){return function(_0xd3da8){const _0x53acb8=a307_0x3547;if(_0xd3da8)return _0xd3da8[_0x53acb8('0x59')]()[_0x53acb8('0x50')](function(){const _0x4f5585=_0x53acb8;_0x23c2e4[_0x4f5585('0x32')](0xcc)[_0x4f5585('0x5')]();});};}function handleEntityNotFound(_0x2c9e46){return function(_0x1a13b3){const _0x3c5209=a307_0x3547;return!_0x1a13b3&&_0x2c9e46[_0x3c5209('0x5c')](0x194),_0x1a13b3;};}function handleError(_0x155817,_0x42ab3e){return _0x42ab3e=_0x42ab3e||0x1f4,function(_0x497da0){const _0x3c1615=a307_0x3547;logger[_0x3c1615('0x3a')](_0x497da0['stack']),_0x497da0[_0x3c1615('0xa')]&&delete _0x497da0[_0x3c1615('0xa')],_0x155817[_0x3c1615('0x32')](_0x42ab3e)[_0x3c1615('0x9')](_0x497da0);};}exports['index']=function(_0x1cb0aa,_0x42b894){const _0x45d053=_0x50131e;let _0x2546e8={};const _0x3ecafb={},_0x5bf1cd={'count':0x0,'rows':[]},_0x52d82f=_[_0x45d053('0x16')](db[_0x45d053('0x17')]['rawAttributes'],function(_0x1cefcd){const _0x38f8c2=_0x45d053;return{'name':_0x1cefcd[_0x38f8c2('0x52')],'type':_0x1cefcd[_0x38f8c2('0x37')]['key']};});_0x3ecafb['model']=_[_0x45d053('0x16')](_0x52d82f,_0x45d053('0xa')),_0x3ecafb[_0x45d053('0x1')]=_['keys'](_0x1cb0aa['query']),_0x3ecafb[_0x45d053('0x2d')]=_[_0x45d053('0xf')](_0x3ecafb[_0x45d053('0x1b')],_0x3ecafb[_0x45d053('0x1')]),_0x2546e8['attributes']=_[_0x45d053('0xf')](_0x3ecafb[_0x45d053('0x1b')],qs[_0x45d053('0x5b')](_0x1cb0aa[_0x45d053('0x1')][_0x45d053('0x5b')])),_0x2546e8['attributes']=_0x2546e8[_0x45d053('0x43')][_0x45d053('0x7')]?_0x2546e8[_0x45d053('0x43')]:_0x3ecafb[_0x45d053('0x1b')];typeof _0x1cb0aa[_0x45d053('0x1')][_0x45d053('0x44')]===_0x45d053('0x34')&&(_0x2546e8[_0x45d053('0x47')]=qs['limit'](_0x1cb0aa['query'][_0x45d053('0x47')]),_0x2546e8[_0x45d053('0x30')]=qs[_0x45d053('0x30')](_0x1cb0aa[_0x45d053('0x1')]['offset']));_0x2546e8[_0x45d053('0x36')]=qs[_0x45d053('0x40')](_0x1cb0aa[_0x45d053('0x1')][_0x45d053('0x40')]),_0x2546e8['where']=qs[_0x45d053('0x2d')](_['pick'](_0x1cb0aa[_0x45d053('0x1')],_0x3ecafb['filters']),_0x52d82f);_0x1cb0aa['query'][_0x45d053('0x4a')]&&(_0x2546e8[_0x45d053('0x57')]=_['merge'](_0x2546e8[_0x45d053('0x57')],{[Op['or']]:_['map'](_0x52d82f,function(_0x559752){const _0x4c3a1a=_0x45d053;if(_0x559752['type']!==_0x4c3a1a('0x51')){const _0x5b8c93={};return _0x5b8c93[_0x559752[_0x4c3a1a('0xa')]]={[Op[_0x4c3a1a('0x58')]]:'%'+_0x1cb0aa['query'][_0x4c3a1a('0x4a')]+'%'},_0x5b8c93;}})}));_0x2546e8=_[_0x45d053('0x24')]({},_0x2546e8,_0x1cb0aa[_0x45d053('0x46')]);const _0x46c11b={'where':_0x2546e8[_0x45d053('0x57')]};return db[_0x45d053('0x17')][_0x45d053('0x8')](_0x46c11b)[_0x45d053('0x50')](function(_0x12accf){const _0x4bcfbd=_0x45d053;return _0x5bf1cd[_0x4bcfbd('0x8')]=_0x12accf,_0x1cb0aa[_0x4bcfbd('0x1')]['includeAll']&&(_0x2546e8[_0x4bcfbd('0x1c')]=[{'all':!![]}]),db[_0x4bcfbd('0x17')][_0x4bcfbd('0x5d')](_0x2546e8);})[_0x45d053('0x50')](function(_0x49a594){const _0x2f20ba=_0x45d053;return _0x5bf1cd[_0x2f20ba('0x3b')]=_0x49a594,_0x5bf1cd;})[_0x45d053('0x50')](respondWithFilteredResult(_0x42b894,_0x2546e8))[_0x45d053('0x49')](handleError(_0x42b894,null));},exports[_0x50131e('0x4b')]=function(_0x206a5d,_0x3171b7){const _0x378fcc=_0x50131e;let _0x813e6={'raw':![],'where':{'id':_0x206a5d[_0x378fcc('0x1f')]['id']}};const _0x1b4530={};return _0x1b4530[_0x378fcc('0x1b')]=_[_0x378fcc('0x3d')](db[_0x378fcc('0x17')][_0x378fcc('0x31')]),_0x1b4530[_0x378fcc('0x1')]=_[_0x378fcc('0x3d')](_0x206a5d['query']),_0x1b4530[_0x378fcc('0x2d')]=_[_0x378fcc('0xf')](_0x1b4530[_0x378fcc('0x1b')],_0x1b4530[_0x378fcc('0x1')]),_0x813e6[_0x378fcc('0x43')]=_['intersection'](_0x1b4530[_0x378fcc('0x1b')],qs['fields'](_0x206a5d['query'][_0x378fcc('0x5b')])),_0x813e6[_0x378fcc('0x43')]=_0x813e6[_0x378fcc('0x43')][_0x378fcc('0x7')]?_0x813e6[_0x378fcc('0x43')]:_0x1b4530[_0x378fcc('0x1b')],_0x206a5d['query'][_0x378fcc('0x4f')]&&(_0x813e6[_0x378fcc('0x1c')]=[{'all':!![]}]),_0x813e6=_[_0x378fcc('0x24')]({},_0x813e6,_0x206a5d[_0x378fcc('0x46')]),db[_0x378fcc('0x17')]['findOne'](_0x813e6)[_0x378fcc('0x50')](handleEntityNotFound(_0x3171b7,null))[_0x378fcc('0x50')](respondWithResult(_0x3171b7,null))[_0x378fcc('0x49')](handleError(_0x3171b7,null));},exports['create']=function(_0x15628a,_0x2d7a01){const _0x59f9ec=_0x50131e;return db['SugarcrmAccount']['create'](_0x15628a[_0x59f9ec('0x26')],{})[_0x59f9ec('0x50')](respondWithResult(_0x2d7a01,0xc9))[_0x59f9ec('0x49')](handleError(_0x2d7a01,null));},exports[_0x50131e('0x5e')]=function(_0x4d22f3,_0x185028){const _0x2b916b=_0x50131e;return _0x4d22f3['body']['id']&&delete _0x4d22f3[_0x2b916b('0x26')]['id'],db[_0x2b916b('0x17')][_0x2b916b('0x35')]({'where':{'id':_0x4d22f3['params']['id']}})['then'](handleEntityNotFound(_0x185028,null))[_0x2b916b('0x50')](saveUpdates(_0x4d22f3[_0x2b916b('0x26')],null))[_0x2b916b('0x50')](respondWithResult(_0x185028,null))[_0x2b916b('0x49')](handleError(_0x185028,null));},exports[_0x50131e('0x59')]=function(_0x5be1e4,_0x169793){const _0x37f5ad=_0x50131e;return db['SugarcrmAccount'][_0x37f5ad('0x35')]({'where':{'id':_0x5be1e4['params']['id']}})['then'](handleEntityNotFound(_0x169793,null))[_0x37f5ad('0x50')](removeEntity(_0x169793,null))[_0x37f5ad('0x49')](handleError(_0x169793,null));},exports[_0x50131e('0x20')]=function(_0x34b13d,_0xe6cce1){const _0x42c6b3=_0x50131e;let _0x494fb5={};const _0x4bfcc3={};let _0x11aae5,_0x19570a;return db[_0x42c6b3('0x17')][_0x42c6b3('0x35')]({'where':{'id':_0x34b13d[_0x42c6b3('0x1f')]['id']}})[_0x42c6b3('0x50')](handleEntityNotFound(_0xe6cce1,null))[_0x42c6b3('0x50')](function(_0x1e44a1){const _0x36dd6b=_0x42c6b3;if(_0x1e44a1)return _0x11aae5=_0x1e44a1,_0x4bfcc3[_0x36dd6b('0x1b')]=_[_0x36dd6b('0x3d')](db['SugarcrmConfiguration'][_0x36dd6b('0x31')]),_0x4bfcc3[_0x36dd6b('0x1')]=_[_0x36dd6b('0x3d')](_0x34b13d['query']),_0x4bfcc3[_0x36dd6b('0x2d')]=_[_0x36dd6b('0xf')](_0x4bfcc3[_0x36dd6b('0x1b')],_0x4bfcc3[_0x36dd6b('0x1')]),_0x494fb5[_0x36dd6b('0x43')]=_[_0x36dd6b('0xf')](_0x4bfcc3[_0x36dd6b('0x1b')],qs[_0x36dd6b('0x5b')](_0x34b13d[_0x36dd6b('0x1')][_0x36dd6b('0x5b')])),_0x494fb5[_0x36dd6b('0x43')]=_0x494fb5[_0x36dd6b('0x43')][_0x36dd6b('0x7')]?_0x494fb5['attributes']:_0x4bfcc3[_0x36dd6b('0x1b')],_0x494fb5[_0x36dd6b('0x36')]=qs[_0x36dd6b('0x40')](_0x34b13d[_0x36dd6b('0x1')][_0x36dd6b('0x40')]),_0x494fb5[_0x36dd6b('0x57')]=qs[_0x36dd6b('0x2d')](_[_0x36dd6b('0x4')](_0x34b13d[_0x36dd6b('0x1')],_0x4bfcc3[_0x36dd6b('0x2d')])),_0x34b13d[_0x36dd6b('0x1')][_0x36dd6b('0x4a')]&&(_0x494fb5[_0x36dd6b('0x57')]=_[_0x36dd6b('0x24')](_0x494fb5[_0x36dd6b('0x57')],{[Op['or']]:_[_0x36dd6b('0x16')](_0x494fb5[_0x36dd6b('0x43')],function(_0x3b738f){const _0x5148e5=_0x36dd6b,_0x38cd39={};return _0x38cd39[_0x3b738f]={[Op[_0x5148e5('0x58')]]:'%'+_0x34b13d[_0x5148e5('0x1')][_0x5148e5('0x4a')]+'%'},_0x38cd39;})})),_0x494fb5=_[_0x36dd6b('0x24')]({},_0x494fb5,_0x34b13d[_0x36dd6b('0x46')]),_0x11aae5[_0x36dd6b('0x20')](_0x494fb5);})[_0x42c6b3('0x50')](function(_0x27679f){const _0x367d6b=_0x42c6b3;if(_0x27679f)return _0x19570a=_0x27679f[_0x367d6b('0x7')],typeof _0x34b13d[_0x367d6b('0x1')][_0x367d6b('0x44')]===_0x367d6b('0x34')&&(_0x494fb5['limit']=qs[_0x367d6b('0x47')](_0x34b13d[_0x367d6b('0x1')][_0x367d6b('0x47')]),_0x494fb5[_0x367d6b('0x30')]=qs[_0x367d6b('0x30')](_0x34b13d[_0x367d6b('0x1')][_0x367d6b('0x30')])),_0x11aae5[_0x367d6b('0x20')](_0x494fb5);})[_0x42c6b3('0x50')](function(_0xb99b64){if(_0xb99b64)return _0xb99b64?{'count':_0x19570a,'rows':_0xb99b64}:null;})[_0x42c6b3('0x50')](respondWithResult(_0xe6cce1,null))[_0x42c6b3('0x49')](handleError(_0xe6cce1,null));},exports[_0x50131e('0x3c')]=function(_0x23ec25,_0x19e0ef){const _0x544ffd=_0x50131e;return _0x23ec25[_0x544ffd('0x26')]['id']&&delete _0x23ec25[_0x544ffd('0x26')]['id'],db[_0x544ffd('0x17')][_0x544ffd('0x35')]({'where':{'id':_0x23ec25[_0x544ffd('0x1f')]['id']}})[_0x544ffd('0x50')](handleEntityNotFound(_0x19e0ef,null))['then'](function(_0x519b6e){const _0x59818c=_0x544ffd;if(_0x519b6e)return _0x23ec25[_0x59818c('0x26')][_0x59818c('0x19')]=_0x519b6e['id'],_0x23ec25[_0x59818c('0x26')][_0x59818c('0x28')]=integrations['getSubjects'](_0x23ec25[_0x59818c('0x26')]['channel'],_0x23ec25[_0x59818c('0x26')][_0x59818c('0x37')]),_0x23ec25['body'][_0x59818c('0x53')]=integrations['getDescriptions'](_0x23ec25[_0x59818c('0x26')][_0x59818c('0x55')],_0x23ec25[_0x59818c('0x26')][_0x59818c('0x37')]),db[_0x59818c('0x18')][_0x59818c('0xb')](_0x23ec25[_0x59818c('0x26')],{'include':[{'model':db['SugarcrmField'],'as':'Subjects'},{'model':db['SugarcrmField'],'as':'Descriptions'}]});return null;})[_0x544ffd('0x50')](respondWithResult(_0x19e0ef,null))[_0x544ffd('0x49')](handleError(_0x19e0ef,null));},exports[_0x50131e('0x2f')]=function(_0x30dbd2,_0x40e958){const _0x456c83=_0x50131e;let _0x26b497='';const _0x4d9ff2=['id',_0x456c83('0xa'),_0x456c83('0x1a'),_0x456c83('0x4e'),_0x456c83('0x21'),'date_start','duration_hours','duration_minutes','parent_id',_0x456c83('0x12'),_0x456c83('0x11'),_0x456c83('0x5a')];return db[_0x456c83('0x17')]['findOne']({'where':{'id':_0x30dbd2[_0x456c83('0x1f')]['id']},'attributes':['id',_0x456c83('0x33'),_0x456c83('0x1d'),_0x456c83('0x13')]})[_0x456c83('0x50')](handleEntityNotFound(_0x40e958,null))['then'](function(_0x1e1066){const _0x308610=_0x456c83;if(_0x1e1066){_0x26b497=_0x1e1066[_0x308610('0x13')];const _0x22564b=_0x26b497[_0x308610('0xc')](-0x1);return _0x22564b==='/'&&(_0x26b497=_0x26b497['substring'](0x0,_0x26b497['lastIndexOf'](_0x22564b))),rp({'method':_0x308610('0x39'),'uri':util[_0x308610('0x2')](_0x308610('0x48'),_0x26b497,_0x308610('0x2e')),'json':!![],'form':{'method':'login','input_type':_0x308610('0x10'),'response_type':_0x308610('0x10'),'rest_data':JSON[_0x308610('0x1e')]({'user_auth':{'user_name':_0x1e1066['username'],'password':_0x1e1066[_0x308610('0x1d')],'encryption':_0x308610('0x15')},'application':_0x308610('0x22')})}});}})['then'](function(_0x345ac4){const _0x2b7f88=_0x456c83;if(_0x345ac4&&_0x345ac4['name']!==_0x2b7f88('0xe')&&_0x345ac4[_0x2b7f88('0xa')]!==_0x2b7f88('0x23'))return rp({'method':'POST','uri':util[_0x2b7f88('0x2')](_0x2b7f88('0x48'),_0x26b497,_0x2b7f88('0x2e')),'json':!![],'form':{'method':_0x2b7f88('0x56'),'input_type':'JSON','response_type':_0x2b7f88('0x10'),'rest_data':JSON[_0x2b7f88('0x1e')]({'session':_0x345ac4['id'],'module_name':_0x2b7f88('0x2b')})}})[_0x2b7f88('0x50')](function(_0x365074){const _0xf8fc2a=_0x2b7f88;if(_0x365074){const _0x3e7b5b=_[_0xf8fc2a('0x29')](_0x365074[_0xf8fc2a('0x2c')]);return _[_0xf8fc2a('0x42')](_0x3e7b5b,function(_0x2a1a5e){const _0x567673=_0xf8fc2a;return _0x4d9ff2[_0x567673('0x6')](_0x2a1a5e['name']);}),{'count':_0x3e7b5b['length'],'rows':_['map'](_0x3e7b5b,function(_0x16f9fa){const _0x4f5c10=_0xf8fc2a;return{'id':_0x16f9fa[_0x4f5c10('0xa')],'name':_0x16f9fa[_0x4f5c10('0x54')],'custom':_[_0x4f5c10('0x2a')](_0x16f9fa['name'],'_c')?!![]:![],'options':_0x16f9fa[_0x4f5c10('0x46')]?_[_0x4f5c10('0x16')](_[_0x4f5c10('0x29')](_0x16f9fa[_0x4f5c10('0x46')]),function(_0xe8684d){const _0x55c5a5=_0x4f5c10;return{'name':_0xe8684d[_0x55c5a5('0x14')],'value':_0xe8684d[_0x55c5a5('0xa')]};}):[]};})};}})[_0x2b7f88('0x50')](respondWithResult(_0x40e958,null))[_0x2b7f88('0x49')](function(_0x5877e6){const _0x33fec4=_0x2b7f88;let _0x20726f=_0x30dbd2['query']['test']?0x1f4:_0x5877e6['statusCode']||0x1f4;logger[_0x33fec4('0x3a')]('getFields,\x20%s,\x20%s,\x20%s',_0x33fec4('0x2f'),_0x20726f,JSON[_0x33fec4('0x1e')](_0x5877e6)),delete _0x5877e6[_0x33fec4('0xa')],_0x20726f===0x191&&(_0x20726f=0x190),_0x40e958[_0x33fec4('0x32')](_0x20726f)['send'](_0x30dbd2['query'][_0x33fec4('0x4d')]?{'message':_0x33fec4('0x0'),'statusCode':_0x5877e6[_0x33fec4('0x41')]}:_0x5877e6);});else{const _0x435dc5=0x1f4;_0x40e958[_0x2b7f88('0x32')](_0x435dc5)[_0x2b7f88('0x9')]({'message':'Wrong\x20credentials','statusCode':0x190});}});}; \ No newline at end of file +const a307_0x3281=['module_fields','undefined','query','include','get_module_fields','show','values','%s%s','VIRTUAL','addConfiguration','like','model','duration_hours','sendStatus','attributes','includeAll','destroy','filters','created_by','../../config/logger','getDescriptions','../../components/integrations/configuration','statusCode','rawAttributes','key','Password\x20Expired','SugarcrmAccount','channel','where','pick','create','../../mysqldb','stringify','remoteUri','login','limit','sequelize','set','intersection','findOne','password','params','error','getFields,\x20%s,\x20%s,\x20%s','PLAIN','slice','name','username','getSubjects','parent_name','/service/v4_1/rest.php','count','map','findAll','assigned_user_id','AccountId','merge','endsWith','order','then','Wrong\x20credentials','send','Descriptions','offset','Content-Range','xCALLY\x20Motion\x20Integration','POST','getFields','fields','options','request-promise-native','body','format','type','filter','Invalid\x20Login','date_start','test','length','sort','SugarcrmConfiguration','Subjects','Calls','fieldName','keys','rows','getConfigurations','catch','label','JSON','status','SugarcrmField'];(function(_0x539eec,_0x32814c){const _0x6afaef=function(_0x4dbc02){while(--_0x4dbc02){_0x539eec['push'](_0x539eec['shift']());}};_0x6afaef(++_0x32814c);}(a307_0x3281,0x131));const a307_0x6afa=function(_0x539eec,_0x32814c){_0x539eec=_0x539eec-0x0;let _0x6afaef=a307_0x3281[_0x539eec];return _0x6afaef;};const _0x51add4=a307_0x6afa;'use strict';const rp=require(_0x51add4('0x29')),util=require('util'),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x51add4('0x52'))('api'),db=require(_0x51add4('0x2'))['db'],{Op}=require(_0x51add4('0x7')),integrations=require(_0x51add4('0x54'));function respondWithResult(_0x4dbc02,_0x1b4b1f){return _0x1b4b1f=_0x1b4b1f||0xc8,function(_0x8af281){const _0x5e8397=a307_0x6afa;if(_0x8af281)return _0x4dbc02[_0x5e8397('0x3d')](_0x1b4b1f)['json'](_0x8af281);};}function respondWithFilteredResult(_0x201768,_0x2d001d){return function(_0x1527b0){const _0x37d78e=a307_0x6afa;if(_0x1527b0){const _0x4f0b8c=_0x1527b0[_0x37d78e('0x16')],_0x1aef3b=_0x2d001d[_0x37d78e('0x22')];let _0xbae70e=_0x2d001d[_0x37d78e('0x22')]+_0x2d001d[_0x37d78e('0x6')],_0x43f346;return _0xbae70e>=_0x4f0b8c?(_0xbae70e=_0x4f0b8c,_0x43f346=0xc8):_0x43f346=0xce,_0x201768[_0x37d78e('0x3d')](_0x43f346),_0x201768[_0x37d78e('0x8')](_0x37d78e('0x23'),_0x1aef3b+'-'+_0xbae70e+'/'+_0x4f0b8c)['json'](_0x1527b0);}return null;};}function saveUpdates(_0x1bd502){return function(_0x1290d3){const _0x197c95=a307_0x6afa;if(_0x1290d3)return _0x1290d3['update'](_0x1bd502)[_0x197c95('0x1e')](function(_0x414077){return _0x414077;});return null;};}function removeEntity(_0x5dcbe8){return function(_0x1f1e38){const _0x677305=a307_0x6afa;if(_0x1f1e38)return _0x1f1e38[_0x677305('0x4f')]()[_0x677305('0x1e')](function(){_0x5dcbe8['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x161c4e){return function(_0x3ec9e1){const _0x454c6d=a307_0x6afa;return!_0x3ec9e1&&_0x161c4e[_0x454c6d('0x4c')](0x194),_0x3ec9e1;};}function handleError(_0x279784,_0x7d50bf){return _0x7d50bf=_0x7d50bf||0x1f4,function(_0xa313da){const _0x3c5e7d=a307_0x6afa;logger[_0x3c5e7d('0xd')](_0xa313da['stack']),_0xa313da['name']&&delete _0xa313da[_0x3c5e7d('0x11')],_0x279784[_0x3c5e7d('0x3d')](_0x7d50bf)[_0x3c5e7d('0x20')](_0xa313da);};}exports['index']=function(_0xe7e914,_0x7a8180){const _0x31825a=_0x51add4;let _0x5e58d6={};const _0x2d5dd6={},_0x2ccca5={'count':0x0,'rows':[]},_0x48944f=_[_0x31825a('0x17')](db['SugarcrmAccount']['rawAttributes'],function(_0x177dff){const _0x2580d5=_0x31825a;return{'name':_0x177dff[_0x2580d5('0x36')],'type':_0x177dff[_0x2580d5('0x2c')][_0x2580d5('0x57')]};});_0x2d5dd6[_0x31825a('0x4a')]=_['map'](_0x48944f,_0x31825a('0x11')),_0x2d5dd6[_0x31825a('0x41')]=_[_0x31825a('0x37')](_0xe7e914[_0x31825a('0x41')]),_0x2d5dd6[_0x31825a('0x50')]=_[_0x31825a('0x9')](_0x2d5dd6[_0x31825a('0x4a')],_0x2d5dd6['query']),_0x5e58d6[_0x31825a('0x4d')]=_[_0x31825a('0x9')](_0x2d5dd6['model'],qs[_0x31825a('0x27')](_0xe7e914['query'][_0x31825a('0x27')])),_0x5e58d6[_0x31825a('0x4d')]=_0x5e58d6[_0x31825a('0x4d')]['length']?_0x5e58d6[_0x31825a('0x4d')]:_0x2d5dd6[_0x31825a('0x4a')];typeof _0xe7e914[_0x31825a('0x41')]['nolimit']===_0x31825a('0x40')&&(_0x5e58d6[_0x31825a('0x6')]=qs[_0x31825a('0x6')](_0xe7e914[_0x31825a('0x41')][_0x31825a('0x6')]),_0x5e58d6[_0x31825a('0x22')]=qs[_0x31825a('0x22')](_0xe7e914[_0x31825a('0x41')][_0x31825a('0x22')]));_0x5e58d6[_0x31825a('0x1d')]=qs['sort'](_0xe7e914[_0x31825a('0x41')][_0x31825a('0x32')]),_0x5e58d6[_0x31825a('0x5b')]=qs[_0x31825a('0x50')](_[_0x31825a('0x0')](_0xe7e914[_0x31825a('0x41')],_0x2d5dd6[_0x31825a('0x50')]),_0x48944f);_0xe7e914['query'][_0x31825a('0x2d')]&&(_0x5e58d6[_0x31825a('0x5b')]=_[_0x31825a('0x1b')](_0x5e58d6['where'],{[Op['or']]:_['map'](_0x48944f,function(_0x28ce08){const _0xb88cf=_0x31825a;if(_0x28ce08[_0xb88cf('0x2c')]!==_0xb88cf('0x47')){const _0x28360e={};return _0x28360e[_0x28ce08[_0xb88cf('0x11')]]={[Op['like']]:'%'+_0xe7e914[_0xb88cf('0x41')][_0xb88cf('0x2d')]+'%'},_0x28360e;}})}));_0x5e58d6=_[_0x31825a('0x1b')]({},_0x5e58d6,_0xe7e914['options']);const _0x26ad9f={'where':_0x5e58d6[_0x31825a('0x5b')]};return db[_0x31825a('0x59')][_0x31825a('0x16')](_0x26ad9f)[_0x31825a('0x1e')](function(_0x181f20){const _0x93ad64=_0x31825a;return _0x2ccca5[_0x93ad64('0x16')]=_0x181f20,_0xe7e914[_0x93ad64('0x41')][_0x93ad64('0x4e')]&&(_0x5e58d6[_0x93ad64('0x42')]=[{'all':!![]}]),db[_0x93ad64('0x59')][_0x93ad64('0x18')](_0x5e58d6);})['then'](function(_0x49f11f){const _0x5e0845=_0x31825a;return _0x2ccca5[_0x5e0845('0x38')]=_0x49f11f,_0x2ccca5;})[_0x31825a('0x1e')](respondWithFilteredResult(_0x7a8180,_0x5e58d6))[_0x31825a('0x3a')](handleError(_0x7a8180,null));},exports[_0x51add4('0x44')]=function(_0x171908,_0x2be899){const _0x5d3471=_0x51add4;let _0x583ae6={'raw':![],'where':{'id':_0x171908['params']['id']}};const _0x14048e={};return _0x14048e['model']=_[_0x5d3471('0x37')](db['SugarcrmAccount'][_0x5d3471('0x56')]),_0x14048e[_0x5d3471('0x41')]=_[_0x5d3471('0x37')](_0x171908[_0x5d3471('0x41')]),_0x14048e['filters']=_[_0x5d3471('0x9')](_0x14048e[_0x5d3471('0x4a')],_0x14048e[_0x5d3471('0x41')]),_0x583ae6[_0x5d3471('0x4d')]=_[_0x5d3471('0x9')](_0x14048e['model'],qs[_0x5d3471('0x27')](_0x171908['query'][_0x5d3471('0x27')])),_0x583ae6[_0x5d3471('0x4d')]=_0x583ae6[_0x5d3471('0x4d')][_0x5d3471('0x31')]?_0x583ae6[_0x5d3471('0x4d')]:_0x14048e[_0x5d3471('0x4a')],_0x171908[_0x5d3471('0x41')]['includeAll']&&(_0x583ae6[_0x5d3471('0x42')]=[{'all':!![]}]),_0x583ae6=_['merge']({},_0x583ae6,_0x171908[_0x5d3471('0x28')]),db[_0x5d3471('0x59')]['findOne'](_0x583ae6)['then'](handleEntityNotFound(_0x2be899,null))[_0x5d3471('0x1e')](respondWithResult(_0x2be899,null))[_0x5d3471('0x3a')](handleError(_0x2be899,null));},exports[_0x51add4('0x1')]=function(_0x30830,_0x6bcb06){const _0x48b9b1=_0x51add4;return db[_0x48b9b1('0x59')][_0x48b9b1('0x1')](_0x30830[_0x48b9b1('0x2a')],{})[_0x48b9b1('0x1e')](respondWithResult(_0x6bcb06,0xc9))['catch'](handleError(_0x6bcb06,null));},exports['update']=function(_0x288dfd,_0x3c7abc){const _0x4e8a83=_0x51add4;return _0x288dfd['body']['id']&&delete _0x288dfd['body']['id'],db[_0x4e8a83('0x59')][_0x4e8a83('0xa')]({'where':{'id':_0x288dfd[_0x4e8a83('0xc')]['id']}})['then'](handleEntityNotFound(_0x3c7abc,null))[_0x4e8a83('0x1e')](saveUpdates(_0x288dfd[_0x4e8a83('0x2a')],null))[_0x4e8a83('0x1e')](respondWithResult(_0x3c7abc,null))['catch'](handleError(_0x3c7abc,null));},exports[_0x51add4('0x4f')]=function(_0x53c91a,_0x598c25){const _0x50b70e=_0x51add4;return db['SugarcrmAccount'][_0x50b70e('0xa')]({'where':{'id':_0x53c91a[_0x50b70e('0xc')]['id']}})['then'](handleEntityNotFound(_0x598c25,null))[_0x50b70e('0x1e')](removeEntity(_0x598c25,null))['catch'](handleError(_0x598c25,null));},exports['getConfigurations']=function(_0xaa2b5f,_0x1e2d33){const _0x3f7b67=_0x51add4;let _0x869da5={};const _0x2a900a={};let _0x4ff6a7,_0x4d41cb;return db[_0x3f7b67('0x59')][_0x3f7b67('0xa')]({'where':{'id':_0xaa2b5f[_0x3f7b67('0xc')]['id']}})[_0x3f7b67('0x1e')](handleEntityNotFound(_0x1e2d33,null))['then'](function(_0x343697){const _0x3a0ce8=_0x3f7b67;if(_0x343697)return _0x4ff6a7=_0x343697,_0x2a900a[_0x3a0ce8('0x4a')]=_['keys'](db[_0x3a0ce8('0x33')][_0x3a0ce8('0x56')]),_0x2a900a[_0x3a0ce8('0x41')]=_[_0x3a0ce8('0x37')](_0xaa2b5f[_0x3a0ce8('0x41')]),_0x2a900a[_0x3a0ce8('0x50')]=_[_0x3a0ce8('0x9')](_0x2a900a[_0x3a0ce8('0x4a')],_0x2a900a[_0x3a0ce8('0x41')]),_0x869da5[_0x3a0ce8('0x4d')]=_[_0x3a0ce8('0x9')](_0x2a900a[_0x3a0ce8('0x4a')],qs['fields'](_0xaa2b5f[_0x3a0ce8('0x41')][_0x3a0ce8('0x27')])),_0x869da5['attributes']=_0x869da5[_0x3a0ce8('0x4d')][_0x3a0ce8('0x31')]?_0x869da5[_0x3a0ce8('0x4d')]:_0x2a900a[_0x3a0ce8('0x4a')],_0x869da5[_0x3a0ce8('0x1d')]=qs['sort'](_0xaa2b5f[_0x3a0ce8('0x41')][_0x3a0ce8('0x32')]),_0x869da5[_0x3a0ce8('0x5b')]=qs[_0x3a0ce8('0x50')](_[_0x3a0ce8('0x0')](_0xaa2b5f[_0x3a0ce8('0x41')],_0x2a900a[_0x3a0ce8('0x50')])),_0xaa2b5f[_0x3a0ce8('0x41')][_0x3a0ce8('0x2d')]&&(_0x869da5[_0x3a0ce8('0x5b')]=_[_0x3a0ce8('0x1b')](_0x869da5[_0x3a0ce8('0x5b')],{[Op['or']]:_[_0x3a0ce8('0x17')](_0x869da5[_0x3a0ce8('0x4d')],function(_0xcf3060){const _0x3f0671=_0x3a0ce8,_0x8411fc={};return _0x8411fc[_0xcf3060]={[Op[_0x3f0671('0x49')]]:'%'+_0xaa2b5f[_0x3f0671('0x41')]['filter']+'%'},_0x8411fc;})})),_0x869da5=_[_0x3a0ce8('0x1b')]({},_0x869da5,_0xaa2b5f['options']),_0x4ff6a7['getConfigurations'](_0x869da5);})[_0x3f7b67('0x1e')](function(_0x3674e7){const _0x3bb866=_0x3f7b67;if(_0x3674e7)return _0x4d41cb=_0x3674e7[_0x3bb866('0x31')],typeof _0xaa2b5f[_0x3bb866('0x41')]['nolimit']===_0x3bb866('0x40')&&(_0x869da5['limit']=qs[_0x3bb866('0x6')](_0xaa2b5f[_0x3bb866('0x41')][_0x3bb866('0x6')]),_0x869da5[_0x3bb866('0x22')]=qs[_0x3bb866('0x22')](_0xaa2b5f[_0x3bb866('0x41')][_0x3bb866('0x22')])),_0x4ff6a7[_0x3bb866('0x39')](_0x869da5);})[_0x3f7b67('0x1e')](function(_0x4bca77){if(_0x4bca77)return _0x4bca77?{'count':_0x4d41cb,'rows':_0x4bca77}:null;})[_0x3f7b67('0x1e')](respondWithResult(_0x1e2d33,null))[_0x3f7b67('0x3a')](handleError(_0x1e2d33,null));},exports[_0x51add4('0x48')]=function(_0x154bb3,_0x477d46){const _0x546334=_0x51add4;return _0x154bb3[_0x546334('0x2a')]['id']&&delete _0x154bb3[_0x546334('0x2a')]['id'],db[_0x546334('0x59')]['findOne']({'where':{'id':_0x154bb3[_0x546334('0xc')]['id']}})[_0x546334('0x1e')](handleEntityNotFound(_0x477d46,null))[_0x546334('0x1e')](function(_0x2a8989){const _0x1749c4=_0x546334;if(_0x2a8989)return _0x154bb3[_0x1749c4('0x2a')][_0x1749c4('0x1a')]=_0x2a8989['id'],_0x154bb3[_0x1749c4('0x2a')][_0x1749c4('0x34')]=integrations[_0x1749c4('0x13')](_0x154bb3[_0x1749c4('0x2a')]['channel'],_0x154bb3[_0x1749c4('0x2a')][_0x1749c4('0x2c')]),_0x154bb3[_0x1749c4('0x2a')][_0x1749c4('0x21')]=integrations[_0x1749c4('0x53')](_0x154bb3[_0x1749c4('0x2a')][_0x1749c4('0x5a')],_0x154bb3[_0x1749c4('0x2a')][_0x1749c4('0x2c')]),db['SugarcrmConfiguration'][_0x1749c4('0x1')](_0x154bb3[_0x1749c4('0x2a')],{'include':[{'model':db['SugarcrmField'],'as':_0x1749c4('0x34')},{'model':db[_0x1749c4('0x3e')],'as':_0x1749c4('0x21')}]});return null;})[_0x546334('0x1e')](respondWithResult(_0x477d46,null))['catch'](handleError(_0x477d46,null));},exports[_0x51add4('0x26')]=function(_0x199602,_0x5b3ce6){const _0x41331d=_0x51add4;let _0x10f355='';const _0x4496b9=['id',_0x41331d('0x11'),_0x41331d('0x19'),_0x41331d('0x51'),'description',_0x41331d('0x2f'),_0x41331d('0x4b'),'duration_minutes','parent_id','parent_type',_0x41331d('0x14'),'direction'];return db[_0x41331d('0x59')][_0x41331d('0xa')]({'where':{'id':_0x199602[_0x41331d('0xc')]['id']},'attributes':['id',_0x41331d('0x12'),_0x41331d('0xb'),_0x41331d('0x4')]})[_0x41331d('0x1e')](handleEntityNotFound(_0x5b3ce6,null))[_0x41331d('0x1e')](function(_0x1ff555){const _0x311a46=_0x41331d;if(_0x1ff555){_0x10f355=_0x1ff555[_0x311a46('0x4')];const _0x566a4d=_0x10f355[_0x311a46('0x10')](-0x1);return _0x566a4d==='/'&&(_0x10f355=_0x10f355['substring'](0x0,_0x10f355['lastIndexOf'](_0x566a4d))),rp({'method':'POST','uri':util[_0x311a46('0x2b')](_0x311a46('0x46'),_0x10f355,'/service/v4_1/rest.php'),'json':!![],'form':{'method':_0x311a46('0x5'),'input_type':_0x311a46('0x3c'),'response_type':_0x311a46('0x3c'),'rest_data':JSON[_0x311a46('0x3')]({'user_auth':{'user_name':_0x1ff555[_0x311a46('0x12')],'password':_0x1ff555[_0x311a46('0xb')],'encryption':_0x311a46('0xf')},'application':_0x311a46('0x24')})}});}})['then'](function(_0x4385a6){const _0x2eb9c0=_0x41331d;if(_0x4385a6&&_0x4385a6['name']!==_0x2eb9c0('0x2e')&&_0x4385a6[_0x2eb9c0('0x11')]!==_0x2eb9c0('0x58'))return rp({'method':_0x2eb9c0('0x25'),'uri':util[_0x2eb9c0('0x2b')]('%s%s',_0x10f355,_0x2eb9c0('0x15')),'json':!![],'form':{'method':_0x2eb9c0('0x43'),'input_type':_0x2eb9c0('0x3c'),'response_type':_0x2eb9c0('0x3c'),'rest_data':JSON['stringify']({'session':_0x4385a6['id'],'module_name':_0x2eb9c0('0x35')})}})[_0x2eb9c0('0x1e')](function(_0x35e4d1){const _0x4b3e94=_0x2eb9c0;if(_0x35e4d1){const _0x375e56=_[_0x4b3e94('0x45')](_0x35e4d1[_0x4b3e94('0x3f')]);return _['remove'](_0x375e56,function(_0x312c13){const _0x344af6=_0x4b3e94;return _0x4496b9['includes'](_0x312c13[_0x344af6('0x11')]);}),{'count':_0x375e56[_0x4b3e94('0x31')],'rows':_[_0x4b3e94('0x17')](_0x375e56,function(_0x2b764f){const _0x4c6a2f=_0x4b3e94;return{'id':_0x2b764f[_0x4c6a2f('0x11')],'name':_0x2b764f[_0x4c6a2f('0x3b')],'custom':_[_0x4c6a2f('0x1c')](_0x2b764f[_0x4c6a2f('0x11')],'_c')?!![]:![],'options':_0x2b764f[_0x4c6a2f('0x28')]?_[_0x4c6a2f('0x17')](_[_0x4c6a2f('0x45')](_0x2b764f[_0x4c6a2f('0x28')]),function(_0x1ac69d){return{'name':_0x1ac69d['value'],'value':_0x1ac69d['name']};}):[]};})};}})[_0x2eb9c0('0x1e')](respondWithResult(_0x5b3ce6,null))['catch'](function(_0x17e97b){const _0x45ccf6=_0x2eb9c0;let _0x10ad83=_0x199602['query'][_0x45ccf6('0x30')]?0x1f4:_0x17e97b[_0x45ccf6('0x55')]||0x1f4;logger[_0x45ccf6('0xd')](_0x45ccf6('0xe'),_0x45ccf6('0x26'),_0x10ad83,JSON[_0x45ccf6('0x3')](_0x17e97b)),delete _0x17e97b['name'],_0x10ad83===0x191&&(_0x10ad83=0x190),_0x5b3ce6['status'](_0x10ad83)['send'](_0x199602[_0x45ccf6('0x41')][_0x45ccf6('0x30')]?{'message':'Wrong\x20credentials','statusCode':_0x17e97b['statusCode']}:_0x17e97b);});else{const _0x141b34=0x1f4;_0x5b3ce6[_0x2eb9c0('0x3d')](_0x141b34)[_0x2eb9c0('0x20')]({'message':_0x2eb9c0('0x1f'),'statusCode':0x190});}});}; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js index c87cc74..bcb4f59 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js @@ -1 +1 @@ -const a308_0x5cc5=['int_sugarcrm_accounts','SugarcrmAccount','./intSugarcrmAccount.attributes','exports'];(function(_0x3d604e,_0x5cc516){const _0x399628=function(_0x207bd6){while(--_0x207bd6){_0x3d604e['push'](_0x3d604e['shift']());}};_0x399628(++_0x5cc516);}(a308_0x5cc5,0x171));const a308_0x3996=function(_0x3d604e,_0x5cc516){_0x3d604e=_0x3d604e-0x0;let _0x399628=a308_0x5cc5[_0x3d604e];return _0x399628;};const _0x2ccfd1=a308_0x3996;'use strict';const attributes=require(_0x2ccfd1('0x1'));module[_0x2ccfd1('0x2')]=function(_0x207bd6){const _0x5a5d33=_0x2ccfd1,_0x2fb07a=_0x207bd6['define'](_0x5a5d33('0x0'),attributes,{'tableName':_0x5a5d33('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2fb07a;}; \ No newline at end of file +const a308_0x362a=['define','exports'];(function(_0x13c20e,_0x362a19){const _0x474df9=function(_0x9b147b){while(--_0x9b147b){_0x13c20e['push'](_0x13c20e['shift']());}};_0x474df9(++_0x362a19);}(a308_0x362a,0xa9));const a308_0x474d=function(_0x13c20e,_0x362a19){_0x13c20e=_0x13c20e-0x0;let _0x474df9=a308_0x362a[_0x13c20e];return _0x474df9;};const _0x1d7e38=a308_0x474d;'use strict';const attributes=require('./intSugarcrmAccount.attributes');module[_0x1d7e38('0x0')]=function(_0x9b147b){const _0x46a89e=_0x1d7e38,_0x3a9926=_0x9b147b[_0x46a89e('0x1')]('SugarcrmAccount',attributes,{'tableName':'int_sugarcrm_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3a9926;}; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js index 039cc8c..ce8ee7a 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js @@ -1 +1 @@ -const a309_0xfa27=['include','options','SugarcrmAccount','findAll','error','ShowSugarcrmAccount','stringify','catch','../../config/logger','../../mysqldb','attributes','info','debug','then','where','GetSugarcrmAccount','map','lodash','message','raw','model','rpc'];(function(_0x1a12d1,_0xfa2767){const _0x29e9cf=function(_0x5164d5){while(--_0x5164d5){_0x1a12d1['push'](_0x1a12d1['shift']());}};_0x29e9cf(++_0xfa2767);}(a309_0xfa27,0x1e8));const a309_0x29e9=function(_0x1a12d1,_0xfa2767){_0x1a12d1=_0x1a12d1-0x0;let _0x29e9cf=a309_0xfa27[_0x1a12d1];return _0x29e9cf;};const _0x49d4df=a309_0x29e9;'use strict';const _=require(_0x49d4df('0xd')),db=require(_0x49d4df('0x5'))['db'],logger=require(_0x49d4df('0x4'))(_0x49d4df('0x11'));exports['GetSugarcrmAccount']=function(_0x5164d5){const _0x410b61=this;return new Promise(function(_0x2ecc0b,_0x5e707d){const _0x39a254=a309_0x29e9;return db[_0x39a254('0x14')][_0x39a254('0x15')]({'raw':_0x5164d5['options']?_0x5164d5[_0x39a254('0x13')][_0x39a254('0xf')]===undefined?!![]:![]:!![],'where':_0x5164d5[_0x39a254('0x13')]?_0x5164d5[_0x39a254('0x13')][_0x39a254('0xa')]||null:null,'attributes':_0x5164d5[_0x39a254('0x13')]?_0x5164d5['options'][_0x39a254('0x6')]||null:null,'limit':_0x5164d5[_0x39a254('0x13')]?_0x5164d5[_0x39a254('0x13')]['limit']||null:null,'include':_0x5164d5[_0x39a254('0x13')]?_0x5164d5[_0x39a254('0x13')]['include']?_[_0x39a254('0xc')](_0x5164d5[_0x39a254('0x13')][_0x39a254('0x12')],function(_0x4c518f){const _0x26cf37=_0x39a254;return{'model':db[_0x4c518f[_0x26cf37('0x10')]],'as':_0x4c518f['as'],'attributes':_0x4c518f[_0x26cf37('0x6')],'include':_0x4c518f['include']?_[_0x26cf37('0xc')](_0x4c518f['include'],function(_0x91c911){const _0x16dfb3=_0x26cf37;return{'model':db[_0x91c911[_0x16dfb3('0x10')]],'as':_0x91c911['as'],'attributes':_0x91c911[_0x16dfb3('0x6')],'include':_0x91c911[_0x16dfb3('0x12')]?_[_0x16dfb3('0xc')](_0x91c911['include'],function(_0x461095){const _0x418dc0=_0x16dfb3;return{'model':db[_0x461095[_0x418dc0('0x10')]],'as':_0x461095['as'],'attributes':_0x461095[_0x418dc0('0x6')]};}):[]};}):[]};}):[]:[]})[_0x39a254('0x9')](function(_0x4c1bb6){const _0x3bea27=_0x39a254;logger[_0x3bea27('0x7')]('GetSugarcrmAccount',_0x5164d5),logger['debug'](_0x3bea27('0xb'),_0x5164d5,JSON[_0x3bea27('0x2')](_0x4c1bb6)),_0x2ecc0b(_0x4c1bb6);})[_0x39a254('0x3')](function(_0xd6312b){const _0x47b54f=_0x39a254;logger['error'](_0x47b54f('0xb'),_0xd6312b[_0x47b54f('0xe')],_0x5164d5),_0x5e707d(_0x410b61[_0x47b54f('0x0')](0x1f4,_0xd6312b[_0x47b54f('0xe')]));});});},exports[_0x49d4df('0x1')]=function(_0x1bd94c){const _0x2161fe=this;return new Promise(function(_0x54b7a1,_0x7efb59){const _0x1419a4=a309_0x29e9;return db[_0x1419a4('0x14')]['findOne']({'raw':_0x1bd94c['options']?_0x1bd94c[_0x1419a4('0x13')][_0x1419a4('0xf')]===undefined?!![]:![]:!![],'where':_0x1bd94c['options']?_0x1bd94c[_0x1419a4('0x13')][_0x1419a4('0xa')]||null:null,'attributes':_0x1bd94c[_0x1419a4('0x13')]?_0x1bd94c['options']['attributes']||null:null,'include':_0x1bd94c[_0x1419a4('0x13')]?_0x1bd94c[_0x1419a4('0x13')]['include']?_[_0x1419a4('0xc')](_0x1bd94c['options'][_0x1419a4('0x12')],function(_0x361da1){const _0xe26985=_0x1419a4;return{'model':db[_0x361da1[_0xe26985('0x10')]],'as':_0x361da1['as'],'attributes':_0x361da1[_0xe26985('0x6')],'include':_0x361da1[_0xe26985('0x12')]?_[_0xe26985('0xc')](_0x361da1[_0xe26985('0x12')],function(_0x2f2f6d){const _0x483b9c=_0xe26985;return{'model':db[_0x2f2f6d[_0x483b9c('0x10')]],'as':_0x2f2f6d['as'],'attributes':_0x2f2f6d[_0x483b9c('0x6')],'include':_0x2f2f6d[_0x483b9c('0x12')]?_[_0x483b9c('0xc')](_0x2f2f6d[_0x483b9c('0x12')],function(_0x23c618){const _0x36026e=_0x483b9c;return{'model':db[_0x23c618[_0x36026e('0x10')]],'as':_0x23c618['as'],'attributes':_0x23c618[_0x36026e('0x6')]};}):[]};}):[]};}):[]:[]})[_0x1419a4('0x9')](function(_0x7c68e7){const _0x1385e4=_0x1419a4;logger[_0x1385e4('0x7')](_0x1385e4('0x1'),_0x1bd94c),logger[_0x1385e4('0x8')](_0x1385e4('0x1'),_0x1bd94c,JSON['stringify'](_0x7c68e7)),_0x54b7a1(_0x7c68e7);})['catch'](function(_0x265a5f){const _0xef6308=_0x1419a4;logger[_0xef6308('0x0')]('ShowSugarcrmAccount',_0x265a5f[_0xef6308('0xe')],_0x1bd94c),_0x7efb59(_0x2161fe[_0xef6308('0x0')](0x1f4,_0x265a5f['message']));});});}; \ No newline at end of file +const a309_0x2c50=['info','error','options','model','then','../../mysqldb','findAll','rpc','catch','../../config/logger','include','GetSugarcrmAccount','SugarcrmAccount','message','map','attributes','ShowSugarcrmAccount','where','raw','stringify','findOne','debug'];(function(_0x3086dd,_0x2c509c){const _0x57e700=function(_0x1865cf){while(--_0x1865cf){_0x3086dd['push'](_0x3086dd['shift']());}};_0x57e700(++_0x2c509c);}(a309_0x2c50,0xd7));const a309_0x57e7=function(_0x3086dd,_0x2c509c){_0x3086dd=_0x3086dd-0x0;let _0x57e700=a309_0x2c50[_0x3086dd];return _0x57e700;};const _0x2878f5=a309_0x57e7;'use strict';const _=require('lodash'),db=require(_0x2878f5('0xa'))['db'],logger=require(_0x2878f5('0xe'))(_0x2878f5('0xc'));exports[_0x2878f5('0x10')]=function(_0x1865cf){const _0x56224a=this;return new Promise(function(_0x267f5e,_0x338270){const _0x3c1408=a309_0x57e7;return db['SugarcrmAccount'][_0x3c1408('0xb')]({'raw':_0x1865cf[_0x3c1408('0x7')]?_0x1865cf[_0x3c1408('0x7')][_0x3c1408('0x1')]===undefined?!![]:![]:!![],'where':_0x1865cf[_0x3c1408('0x7')]?_0x1865cf['options'][_0x3c1408('0x0')]||null:null,'attributes':_0x1865cf[_0x3c1408('0x7')]?_0x1865cf[_0x3c1408('0x7')]['attributes']||null:null,'limit':_0x1865cf[_0x3c1408('0x7')]?_0x1865cf[_0x3c1408('0x7')]['limit']||null:null,'include':_0x1865cf[_0x3c1408('0x7')]?_0x1865cf[_0x3c1408('0x7')][_0x3c1408('0xf')]?_[_0x3c1408('0x13')](_0x1865cf[_0x3c1408('0x7')][_0x3c1408('0xf')],function(_0x5f5bed){const _0x5e83b9=_0x3c1408;return{'model':db[_0x5f5bed[_0x5e83b9('0x8')]],'as':_0x5f5bed['as'],'attributes':_0x5f5bed[_0x5e83b9('0x14')],'include':_0x5f5bed[_0x5e83b9('0xf')]?_['map'](_0x5f5bed[_0x5e83b9('0xf')],function(_0x1dec20){const _0x5dff99=_0x5e83b9;return{'model':db[_0x1dec20[_0x5dff99('0x8')]],'as':_0x1dec20['as'],'attributes':_0x1dec20['attributes'],'include':_0x1dec20[_0x5dff99('0xf')]?_['map'](_0x1dec20[_0x5dff99('0xf')],function(_0x485c01){const _0x469288=_0x5dff99;return{'model':db[_0x485c01[_0x469288('0x8')]],'as':_0x485c01['as'],'attributes':_0x485c01[_0x469288('0x14')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x12f920){const _0x29b2f1=_0x3c1408;logger[_0x29b2f1('0x5')](_0x29b2f1('0x10'),_0x1865cf),logger[_0x29b2f1('0x4')](_0x29b2f1('0x10'),_0x1865cf,JSON[_0x29b2f1('0x2')](_0x12f920)),_0x267f5e(_0x12f920);})[_0x3c1408('0xd')](function(_0x3cd258){const _0x365c83=_0x3c1408;logger[_0x365c83('0x6')](_0x365c83('0x10'),_0x3cd258[_0x365c83('0x12')],_0x1865cf),_0x338270(_0x56224a[_0x365c83('0x6')](0x1f4,_0x3cd258[_0x365c83('0x12')]));});});},exports[_0x2878f5('0x15')]=function(_0xc33747){const _0x20f742=this;return new Promise(function(_0x221ada,_0x5f6e7f){const _0x4aa010=a309_0x57e7;return db[_0x4aa010('0x11')][_0x4aa010('0x3')]({'raw':_0xc33747[_0x4aa010('0x7')]?_0xc33747[_0x4aa010('0x7')][_0x4aa010('0x1')]===undefined?!![]:![]:!![],'where':_0xc33747[_0x4aa010('0x7')]?_0xc33747['options'][_0x4aa010('0x0')]||null:null,'attributes':_0xc33747[_0x4aa010('0x7')]?_0xc33747[_0x4aa010('0x7')][_0x4aa010('0x14')]||null:null,'include':_0xc33747[_0x4aa010('0x7')]?_0xc33747[_0x4aa010('0x7')]['include']?_[_0x4aa010('0x13')](_0xc33747[_0x4aa010('0x7')]['include'],function(_0x4e9d14){const _0x45f1a3=_0x4aa010;return{'model':db[_0x4e9d14[_0x45f1a3('0x8')]],'as':_0x4e9d14['as'],'attributes':_0x4e9d14[_0x45f1a3('0x14')],'include':_0x4e9d14[_0x45f1a3('0xf')]?_[_0x45f1a3('0x13')](_0x4e9d14['include'],function(_0xebf242){const _0x22c15e=_0x45f1a3;return{'model':db[_0xebf242[_0x22c15e('0x8')]],'as':_0xebf242['as'],'attributes':_0xebf242[_0x22c15e('0x14')],'include':_0xebf242[_0x22c15e('0xf')]?_[_0x22c15e('0x13')](_0xebf242[_0x22c15e('0xf')],function(_0x57b4c1){const _0x40a94b=_0x22c15e;return{'model':db[_0x57b4c1[_0x40a94b('0x8')]],'as':_0x57b4c1['as'],'attributes':_0x57b4c1['attributes']};}):[]};}):[]};}):[]:[]})[_0x4aa010('0x9')](function(_0x4a2ad5){const _0x4d6bc3=_0x4aa010;logger[_0x4d6bc3('0x5')](_0x4d6bc3('0x15'),_0xc33747),logger[_0x4d6bc3('0x4')](_0x4d6bc3('0x15'),_0xc33747,JSON[_0x4d6bc3('0x2')](_0x4a2ad5)),_0x221ada(_0x4a2ad5);})[_0x4aa010('0xd')](function(_0x1d65e9){const _0x30003d=_0x4aa010;logger[_0x30003d('0x6')](_0x30003d('0x15'),_0x1d65e9[_0x30003d('0x12')],_0xc33747),_0x5f6e7f(_0x20f742[_0x30003d('0x6')](0x1f4,_0x1d65e9['message']));});});}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/index.js b/server/api/intSugarcrmConfiguration/index.js index b452914..900206b 100644 --- a/server/api/intSugarcrmConfiguration/index.js +++ b/server/api/intSugarcrmConfiguration/index.js @@ -1 +1 @@ -const a310_0xc178=['./intSugarcrmConfiguration.controller','post','/:id/subjects','/:id','delete','getDescriptions','destroy','/:id/fields','update','Router','put','get','exports','create','../../components/auth/service','express','isAuthenticated','/:id/descriptions'];(function(_0x5703a2,_0xc178ff){const _0x219fad=function(_0x310e96){while(--_0x310e96){_0x5703a2['push'](_0x5703a2['shift']());}};_0x219fad(++_0xc178ff);}(a310_0xc178,0x173));const a310_0x219f=function(_0x5703a2,_0xc178ff){_0x5703a2=_0x5703a2-0x0;let _0x219fad=a310_0xc178[_0x5703a2];return _0x219fad;};const _0x31e732=a310_0x219f;'use strict';const express=require(_0x31e732('0x4')),router=express[_0x31e732('0x10')](),auth=require(_0x31e732('0x3')),controller=require(_0x31e732('0x7'));router[_0x31e732('0x0')]('/',auth[_0x31e732('0x5')](),controller['index']),router[_0x31e732('0x0')](_0x31e732('0xa'),auth[_0x31e732('0x5')](),controller['show']),router[_0x31e732('0x0')](_0x31e732('0xe'),auth[_0x31e732('0x5')](),controller['getFields']),router[_0x31e732('0x0')](_0x31e732('0x9'),auth[_0x31e732('0x5')](),controller['getSubjects']),router[_0x31e732('0x0')](_0x31e732('0x6'),auth[_0x31e732('0x5')](),controller[_0x31e732('0xc')]),router[_0x31e732('0x8')]('/',auth[_0x31e732('0x5')](),controller[_0x31e732('0x2')]),router[_0x31e732('0x11')](_0x31e732('0xa'),auth[_0x31e732('0x5')](),controller[_0x31e732('0xf')]),router[_0x31e732('0xb')]('/:id',auth[_0x31e732('0x5')](),controller[_0x31e732('0xd')]),module[_0x31e732('0x1')]=router; \ No newline at end of file +const a310_0x1160=['delete','/:id/descriptions','exports','put','./intSugarcrmConfiguration.controller','getFields','../../components/auth/service','index','/:id','post','update','get','isAuthenticated','Router','show','/:id/subjects','/:id/fields','express'];(function(_0x21f63a,_0x11605c){const _0x179fcb=function(_0x3749e3){while(--_0x3749e3){_0x21f63a['push'](_0x21f63a['shift']());}};_0x179fcb(++_0x11605c);}(a310_0x1160,0x184));const a310_0x179f=function(_0x21f63a,_0x11605c){_0x21f63a=_0x21f63a-0x0;let _0x179fcb=a310_0x1160[_0x21f63a];return _0x179fcb;};const _0x3633bb=a310_0x179f;'use strict';const express=require(_0x3633bb('0x7')),router=express[_0x3633bb('0x3')](),auth=require(_0x3633bb('0xe')),controller=require(_0x3633bb('0xc'));router['get']('/',auth[_0x3633bb('0x2')](),controller[_0x3633bb('0xf')]),router[_0x3633bb('0x1')](_0x3633bb('0x10'),auth['isAuthenticated'](),controller[_0x3633bb('0x4')]),router[_0x3633bb('0x1')](_0x3633bb('0x6'),auth[_0x3633bb('0x2')](),controller[_0x3633bb('0xd')]),router['get'](_0x3633bb('0x5'),auth[_0x3633bb('0x2')](),controller['getSubjects']),router[_0x3633bb('0x1')](_0x3633bb('0x9'),auth[_0x3633bb('0x2')](),controller['getDescriptions']),router[_0x3633bb('0x11')]('/',auth[_0x3633bb('0x2')](),controller['create']),router[_0x3633bb('0xb')](_0x3633bb('0x10'),auth[_0x3633bb('0x2')](),controller[_0x3633bb('0x0')]),router[_0x3633bb('0x8')](_0x3633bb('0x10'),auth[_0x3633bb('0x2')](),controller['destroy']),module[_0x3633bb('0xa')]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js index 2264a24..f663d3b 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js @@ -1 +1 @@ -const a311_0x22b0=['exports'];(function(_0x514d9f,_0x22b0e5){const _0x1a3b2c=function(_0x5b5f0e){while(--_0x5b5f0e){_0x514d9f['push'](_0x514d9f['shift']());}};_0x1a3b2c(++_0x22b0e5);}(a311_0x22b0,0x1cf));const a311_0x1a3b=function(_0x514d9f,_0x22b0e5){_0x514d9f=_0x514d9f-0x0;let _0x1a3b2c=a311_0x22b0[_0x514d9f];return _0x1a3b2c;};const _0x27c8fb=a311_0x1a3b;'use strict';const Sequelize=require('sequelize');module[_0x27c8fb('0x0')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a311_0x4302=['sequelize','STRING','exports'];(function(_0x4c7fa6,_0x4302da){const _0x591738=function(_0x1bb787){while(--_0x1bb787){_0x4c7fa6['push'](_0x4c7fa6['shift']());}};_0x591738(++_0x4302da);}(a311_0x4302,0xe9));const a311_0x5917=function(_0x4c7fa6,_0x4302da){_0x4c7fa6=_0x4c7fa6-0x0;let _0x591738=a311_0x4302[_0x4c7fa6];return _0x591738;};const _0x3b2a37=a311_0x5917;'use strict';const Sequelize=require(_0x3b2a37('0x1'));module[_0x3b2a37('0x0')]={'name':{'type':Sequelize[_0x3b2a37('0x2')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js index 683f0d7..6eadd6f 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js @@ -1 +1 @@ -const a312_0x5f1e=['pick','filters','offset','body','index','create','where','map','json','params','type','sort','SugarcrmField','VIRTUAL','rows','intersection','model','../../mysqldb','sequelize','like','SugarcrmConfiguration','order','status','end','includeAll','update','show','getFields','error','../../config/logger','catch','filter','length','options','undefined','getDescriptions','query','attributes','limit','sendStatus','count','stack','then','name','getSubjects','findOne','fieldName','destroy','merge','lodash','nolimit','keys','fields','rawAttributes','send'];(function(_0xd35702,_0x5f1e67){const _0x4eb9af=function(_0x376efa){while(--_0x376efa){_0xd35702['push'](_0xd35702['shift']());}};_0x4eb9af(++_0x5f1e67);}(a312_0x5f1e,0x1dc));const a312_0x4eb9=function(_0xd35702,_0x5f1e67){_0xd35702=_0xd35702-0x0;let _0x4eb9af=a312_0x5f1e[_0xd35702];return _0x4eb9af;};const _0x308f00=a312_0x4eb9;'use strict';const _=require(_0x308f00('0xd')),qs=require('../../components/parsers/qs'),logger=require(_0x308f00('0x30'))('api'),db=require(_0x308f00('0x24'))['db'],{Op}=require(_0x308f00('0x25'));function respondWithResult(_0x376efa,_0x5b02aa){return _0x5b02aa=_0x5b02aa||0xc8,function(_0x5aad59){const _0x3a0247=a312_0x4eb9;if(_0x5aad59)return _0x376efa[_0x3a0247('0x29')](_0x5b02aa)[_0x3a0247('0x1b')](_0x5aad59);};}function respondWithFilteredResult(_0x3f5d5d,_0x4630dd){return function(_0x264cb7){const _0x83d81b=a312_0x4eb9;if(_0x264cb7){const _0x50eaef=_0x264cb7['count'],_0x2ec810=_0x4630dd[_0x83d81b('0x15')];let _0x5008cf=_0x4630dd[_0x83d81b('0x15')]+_0x4630dd[_0x83d81b('0x2')],_0x4b0725;return _0x5008cf>=_0x50eaef?(_0x5008cf=_0x50eaef,_0x4b0725=0xc8):_0x4b0725=0xce,_0x3f5d5d['status'](_0x4b0725),_0x3f5d5d['set']('Content-Range',_0x2ec810+'-'+_0x5008cf+'/'+_0x50eaef)[_0x83d81b('0x1b')](_0x264cb7);}return null;};}function saveUpdates(_0xe9cec8){return function(_0x51a8d0){const _0x1a77cb=a312_0x4eb9;if(_0x51a8d0)return _0x51a8d0[_0x1a77cb('0x2c')](_0xe9cec8)[_0x1a77cb('0x6')](function(_0x110e74){return _0x110e74;});return null;};}function removeEntity(_0x30457a){return function(_0x3746c6){const _0x3f6fd3=a312_0x4eb9;if(_0x3746c6)return _0x3746c6[_0x3f6fd3('0xb')]()[_0x3f6fd3('0x6')](function(){const _0x2cdfa9=_0x3f6fd3;_0x30457a[_0x2cdfa9('0x29')](0xcc)[_0x2cdfa9('0x2a')]();});};}function handleEntityNotFound(_0x28baf9){return function(_0x4f6182){const _0x4482f7=a312_0x4eb9;return!_0x4f6182&&_0x28baf9[_0x4482f7('0x3')](0x194),_0x4f6182;};}function handleError(_0x66d5a7,_0x1fcb40){return _0x1fcb40=_0x1fcb40||0x1f4,function(_0xf3df4e){const _0x511d0d=a312_0x4eb9;logger[_0x511d0d('0x2f')](_0xf3df4e[_0x511d0d('0x5')]),_0xf3df4e[_0x511d0d('0x7')]&&delete _0xf3df4e[_0x511d0d('0x7')],_0x66d5a7[_0x511d0d('0x29')](_0x1fcb40)[_0x511d0d('0x12')](_0xf3df4e);};}exports[_0x308f00('0x17')]=function(_0x58561f,_0x17185d){const _0x358503=_0x308f00;let _0x556680={};const _0x3c1092={},_0x34cd67={'count':0x0,'rows':[]},_0xf130b=_[_0x358503('0x1a')](db[_0x358503('0x27')][_0x358503('0x11')],function(_0x4dc7de){const _0x3bcf95=_0x358503;return{'name':_0x4dc7de[_0x3bcf95('0xa')],'type':_0x4dc7de[_0x3bcf95('0x1d')]['key']};});_0x3c1092[_0x358503('0x23')]=_[_0x358503('0x1a')](_0xf130b,_0x358503('0x7')),_0x3c1092[_0x358503('0x0')]=_[_0x358503('0xf')](_0x58561f['query']),_0x3c1092[_0x358503('0x14')]=_[_0x358503('0x22')](_0x3c1092[_0x358503('0x23')],_0x3c1092[_0x358503('0x0')]),_0x556680[_0x358503('0x1')]=_[_0x358503('0x22')](_0x3c1092['model'],qs['fields'](_0x58561f['query'][_0x358503('0x10')])),_0x556680[_0x358503('0x1')]=_0x556680[_0x358503('0x1')][_0x358503('0x33')]?_0x556680[_0x358503('0x1')]:_0x3c1092[_0x358503('0x23')];typeof _0x58561f[_0x358503('0x0')][_0x358503('0xe')]===_0x358503('0x35')&&(_0x556680[_0x358503('0x2')]=qs[_0x358503('0x2')](_0x58561f['query'][_0x358503('0x2')]),_0x556680['offset']=qs['offset'](_0x58561f[_0x358503('0x0')][_0x358503('0x15')]));_0x556680[_0x358503('0x28')]=qs[_0x358503('0x1e')](_0x58561f['query'][_0x358503('0x1e')]),_0x556680[_0x358503('0x19')]=qs[_0x358503('0x14')](_['pick'](_0x58561f[_0x358503('0x0')],_0x3c1092[_0x358503('0x14')]),_0xf130b);_0x58561f[_0x358503('0x0')][_0x358503('0x32')]&&(_0x556680[_0x358503('0x19')]=_[_0x358503('0xc')](_0x556680['where'],{[Op['or']]:_[_0x358503('0x1a')](_0xf130b,function(_0x2d16f4){const _0xb1ff5a=_0x358503;if(_0x2d16f4[_0xb1ff5a('0x1d')]!==_0xb1ff5a('0x20')){const _0x1eb695={};return _0x1eb695[_0x2d16f4[_0xb1ff5a('0x7')]]={[Op[_0xb1ff5a('0x26')]]:'%'+_0x58561f[_0xb1ff5a('0x0')]['filter']+'%'},_0x1eb695;}})}));_0x556680=_[_0x358503('0xc')]({},_0x556680,_0x58561f[_0x358503('0x34')]);const _0xcc1b58={'where':_0x556680[_0x358503('0x19')]};return db[_0x358503('0x27')][_0x358503('0x4')](_0xcc1b58)[_0x358503('0x6')](function(_0x1a4d45){const _0x494806=_0x358503;return _0x34cd67[_0x494806('0x4')]=_0x1a4d45,_0x58561f['query'][_0x494806('0x2b')]&&(_0x556680['include']=[{'all':!![]}]),db['SugarcrmConfiguration']['findAll'](_0x556680);})[_0x358503('0x6')](function(_0x1fa946){const _0x11208b=_0x358503;return _0x34cd67[_0x11208b('0x21')]=_0x1fa946,_0x34cd67;})[_0x358503('0x6')](respondWithFilteredResult(_0x17185d,_0x556680))['catch'](handleError(_0x17185d,null));},exports[_0x308f00('0x2d')]=function(_0x6f361c,_0x300bd8){const _0x2bc6fb=_0x308f00;let _0x1770da={'raw':![],'where':{'id':_0x6f361c[_0x2bc6fb('0x1c')]['id']}};const _0x5f5206={};return _0x5f5206[_0x2bc6fb('0x23')]=_[_0x2bc6fb('0xf')](db[_0x2bc6fb('0x27')][_0x2bc6fb('0x11')]),_0x5f5206[_0x2bc6fb('0x0')]=_[_0x2bc6fb('0xf')](_0x6f361c[_0x2bc6fb('0x0')]),_0x5f5206['filters']=_[_0x2bc6fb('0x22')](_0x5f5206[_0x2bc6fb('0x23')],_0x5f5206[_0x2bc6fb('0x0')]),_0x1770da[_0x2bc6fb('0x1')]=_[_0x2bc6fb('0x22')](_0x5f5206[_0x2bc6fb('0x23')],qs[_0x2bc6fb('0x10')](_0x6f361c['query'][_0x2bc6fb('0x10')])),_0x1770da['attributes']=_0x1770da[_0x2bc6fb('0x1')][_0x2bc6fb('0x33')]?_0x1770da[_0x2bc6fb('0x1')]:_0x5f5206[_0x2bc6fb('0x23')],_0x6f361c[_0x2bc6fb('0x0')][_0x2bc6fb('0x2b')]&&(_0x1770da['include']=[{'all':!![]}]),_0x1770da=_[_0x2bc6fb('0xc')]({},_0x1770da,_0x6f361c[_0x2bc6fb('0x34')]),db[_0x2bc6fb('0x27')][_0x2bc6fb('0x9')](_0x1770da)[_0x2bc6fb('0x6')](handleEntityNotFound(_0x300bd8,null))[_0x2bc6fb('0x6')](respondWithResult(_0x300bd8,null))[_0x2bc6fb('0x31')](handleError(_0x300bd8,null));},exports[_0x308f00('0x18')]=function(_0x7cdd0b,_0x538667){const _0x430e65=_0x308f00;return db[_0x430e65('0x27')][_0x430e65('0x18')](_0x7cdd0b[_0x430e65('0x16')],{})[_0x430e65('0x6')](respondWithResult(_0x538667,0xc9))[_0x430e65('0x31')](handleError(_0x538667,null));},exports[_0x308f00('0x2c')]=function(_0x1e0840,_0x3c6c7b){const _0x5009f8=_0x308f00;return _0x1e0840[_0x5009f8('0x16')]['id']&&delete _0x1e0840[_0x5009f8('0x16')]['id'],db[_0x5009f8('0x27')][_0x5009f8('0x9')]({'where':{'id':_0x1e0840[_0x5009f8('0x1c')]['id']}})[_0x5009f8('0x6')](handleEntityNotFound(_0x3c6c7b,null))[_0x5009f8('0x6')](saveUpdates(_0x1e0840['body'],null))[_0x5009f8('0x6')](respondWithResult(_0x3c6c7b,null))[_0x5009f8('0x31')](handleError(_0x3c6c7b,null));},exports['destroy']=function(_0x6a3aa0,_0x2e224f){const _0x38f662=_0x308f00;return db[_0x38f662('0x27')][_0x38f662('0x9')]({'where':{'id':_0x6a3aa0['params']['id']}})[_0x38f662('0x6')](handleEntityNotFound(_0x2e224f,null))['then'](removeEntity(_0x2e224f,null))['catch'](handleError(_0x2e224f,null));},exports[_0x308f00('0x2e')]=function(_0x69cc6a,_0x5ae48b){const _0xed3b79=_0x308f00;let _0x3de7a6={};const _0x52c95c={};let _0x433dd4,_0x3e5ca0;return db[_0xed3b79('0x27')][_0xed3b79('0x9')]({'where':{'id':_0x69cc6a[_0xed3b79('0x1c')]['id']}})[_0xed3b79('0x6')](handleEntityNotFound(_0x5ae48b,null))['then'](function(_0xfa69b7){const _0x3fbf20=_0xed3b79;if(_0xfa69b7)return _0x433dd4=_0xfa69b7,_0x52c95c['model']=_['keys'](db[_0x3fbf20('0x1f')]['rawAttributes']),_0x52c95c[_0x3fbf20('0x0')]=_[_0x3fbf20('0xf')](_0x69cc6a[_0x3fbf20('0x0')]),_0x52c95c[_0x3fbf20('0x14')]=_[_0x3fbf20('0x22')](_0x52c95c['model'],_0x52c95c['query']),_0x3de7a6[_0x3fbf20('0x1')]=_[_0x3fbf20('0x22')](_0x52c95c[_0x3fbf20('0x23')],qs[_0x3fbf20('0x10')](_0x69cc6a[_0x3fbf20('0x0')][_0x3fbf20('0x10')])),_0x3de7a6[_0x3fbf20('0x1')]=_0x3de7a6[_0x3fbf20('0x1')]['length']?_0x3de7a6[_0x3fbf20('0x1')]:_0x52c95c['model'],_0x3de7a6['order']=qs[_0x3fbf20('0x1e')](_0x69cc6a[_0x3fbf20('0x0')][_0x3fbf20('0x1e')]),_0x3de7a6[_0x3fbf20('0x19')]=qs[_0x3fbf20('0x14')](_[_0x3fbf20('0x13')](_0x69cc6a[_0x3fbf20('0x0')],_0x52c95c[_0x3fbf20('0x14')])),_0x69cc6a[_0x3fbf20('0x0')][_0x3fbf20('0x32')]&&(_0x3de7a6[_0x3fbf20('0x19')]=_[_0x3fbf20('0xc')](_0x3de7a6[_0x3fbf20('0x19')],{[Op['or']]:_['map'](_0x3de7a6[_0x3fbf20('0x1')],function(_0x2908dc){const _0x45dd22=_0x3fbf20,_0x189c29={};return _0x189c29[_0x2908dc]={[Op[_0x45dd22('0x26')]]:'%'+_0x69cc6a[_0x45dd22('0x0')][_0x45dd22('0x32')]+'%'},_0x189c29;})})),_0x3de7a6=_['merge']({},_0x3de7a6,_0x69cc6a[_0x3fbf20('0x34')]),_0x433dd4[_0x3fbf20('0x2e')](_0x3de7a6);})[_0xed3b79('0x6')](function(_0x4bf170){const _0x41494b=_0xed3b79;if(_0x4bf170)return _0x3e5ca0=_0x4bf170[_0x41494b('0x33')],typeof _0x69cc6a['query']['nolimit']===_0x41494b('0x35')&&(_0x3de7a6[_0x41494b('0x2')]=qs[_0x41494b('0x2')](_0x69cc6a['query'][_0x41494b('0x2')]),_0x3de7a6[_0x41494b('0x15')]=qs[_0x41494b('0x15')](_0x69cc6a['query']['offset'])),_0x433dd4[_0x41494b('0x2e')](_0x3de7a6);})[_0xed3b79('0x6')](function(_0x40df63){if(_0x40df63)return _0x40df63?{'count':_0x3e5ca0,'rows':_0x40df63}:null;})['then'](respondWithResult(_0x5ae48b,null))['catch'](handleError(_0x5ae48b,null));},exports[_0x308f00('0x8')]=function(_0x27ef69,_0x1eaaad){const _0x4a3fb4=_0x308f00;let _0x1e6a1c={};const _0x326be6={};let _0x703cf5,_0x515eb8;return db['SugarcrmConfiguration'][_0x4a3fb4('0x9')]({'where':{'id':_0x27ef69[_0x4a3fb4('0x1c')]['id']}})['then'](handleEntityNotFound(_0x1eaaad,null))[_0x4a3fb4('0x6')](function(_0x3dcb21){const _0x2db4d2=_0x4a3fb4;if(_0x3dcb21)return _0x703cf5=_0x3dcb21,_0x326be6[_0x2db4d2('0x23')]=_['keys'](db[_0x2db4d2('0x1f')][_0x2db4d2('0x11')]),_0x326be6[_0x2db4d2('0x0')]=_[_0x2db4d2('0xf')](_0x27ef69[_0x2db4d2('0x0')]),_0x326be6[_0x2db4d2('0x14')]=_[_0x2db4d2('0x22')](_0x326be6[_0x2db4d2('0x23')],_0x326be6[_0x2db4d2('0x0')]),_0x1e6a1c['attributes']=_[_0x2db4d2('0x22')](_0x326be6[_0x2db4d2('0x23')],qs[_0x2db4d2('0x10')](_0x27ef69[_0x2db4d2('0x0')]['fields'])),_0x1e6a1c[_0x2db4d2('0x1')]=_0x1e6a1c[_0x2db4d2('0x1')][_0x2db4d2('0x33')]?_0x1e6a1c[_0x2db4d2('0x1')]:_0x326be6[_0x2db4d2('0x23')],_0x1e6a1c['order']=qs[_0x2db4d2('0x1e')](_0x27ef69[_0x2db4d2('0x0')][_0x2db4d2('0x1e')]),_0x1e6a1c[_0x2db4d2('0x19')]=qs[_0x2db4d2('0x14')](_[_0x2db4d2('0x13')](_0x27ef69[_0x2db4d2('0x0')],_0x326be6[_0x2db4d2('0x14')])),_0x27ef69[_0x2db4d2('0x0')][_0x2db4d2('0x32')]&&(_0x1e6a1c['where']=_[_0x2db4d2('0xc')](_0x1e6a1c[_0x2db4d2('0x19')],{[Op['or']]:_[_0x2db4d2('0x1a')](_0x1e6a1c[_0x2db4d2('0x1')],function(_0x33811c){const _0xc8487f=_0x2db4d2,_0x29ae85={};return _0x29ae85[_0x33811c]={[Op[_0xc8487f('0x26')]]:'%'+_0x27ef69[_0xc8487f('0x0')]['filter']+'%'},_0x29ae85;})})),_0x1e6a1c=_[_0x2db4d2('0xc')]({},_0x1e6a1c,_0x27ef69[_0x2db4d2('0x34')]),_0x703cf5[_0x2db4d2('0x8')](_0x1e6a1c);})[_0x4a3fb4('0x6')](function(_0x197593){const _0x2945f7=_0x4a3fb4;if(_0x197593)return _0x515eb8=_0x197593[_0x2945f7('0x33')],typeof _0x27ef69[_0x2945f7('0x0')][_0x2945f7('0xe')]===_0x2945f7('0x35')&&(_0x1e6a1c[_0x2945f7('0x2')]=qs['limit'](_0x27ef69[_0x2945f7('0x0')]['limit']),_0x1e6a1c['offset']=qs['offset'](_0x27ef69[_0x2945f7('0x0')][_0x2945f7('0x15')])),_0x703cf5['getSubjects'](_0x1e6a1c);})[_0x4a3fb4('0x6')](function(_0x38c679){if(_0x38c679)return _0x38c679?{'count':_0x515eb8,'rows':_0x38c679}:null;})[_0x4a3fb4('0x6')](respondWithResult(_0x1eaaad,null))[_0x4a3fb4('0x31')](handleError(_0x1eaaad,null));},exports[_0x308f00('0x36')]=function(_0x542fc1,_0x4b0108){const _0x12f56d=_0x308f00;let _0x20a0a6={};const _0x5734bc={};let _0x31118c,_0x4ee1c5;return db['SugarcrmConfiguration'][_0x12f56d('0x9')]({'where':{'id':_0x542fc1[_0x12f56d('0x1c')]['id']}})[_0x12f56d('0x6')](handleEntityNotFound(_0x4b0108,null))[_0x12f56d('0x6')](function(_0x2c28bc){const _0x1b369f=_0x12f56d;if(_0x2c28bc)return _0x31118c=_0x2c28bc,_0x5734bc[_0x1b369f('0x23')]=_[_0x1b369f('0xf')](db[_0x1b369f('0x1f')][_0x1b369f('0x11')]),_0x5734bc[_0x1b369f('0x0')]=_['keys'](_0x542fc1[_0x1b369f('0x0')]),_0x5734bc['filters']=_['intersection'](_0x5734bc[_0x1b369f('0x23')],_0x5734bc[_0x1b369f('0x0')]),_0x20a0a6[_0x1b369f('0x1')]=_[_0x1b369f('0x22')](_0x5734bc[_0x1b369f('0x23')],qs[_0x1b369f('0x10')](_0x542fc1['query']['fields'])),_0x20a0a6[_0x1b369f('0x1')]=_0x20a0a6[_0x1b369f('0x1')][_0x1b369f('0x33')]?_0x20a0a6[_0x1b369f('0x1')]:_0x5734bc['model'],_0x20a0a6[_0x1b369f('0x28')]=qs[_0x1b369f('0x1e')](_0x542fc1[_0x1b369f('0x0')][_0x1b369f('0x1e')]),_0x20a0a6[_0x1b369f('0x19')]=qs[_0x1b369f('0x14')](_[_0x1b369f('0x13')](_0x542fc1['query'],_0x5734bc[_0x1b369f('0x14')])),_0x542fc1[_0x1b369f('0x0')]['filter']&&(_0x20a0a6[_0x1b369f('0x19')]=_['merge'](_0x20a0a6[_0x1b369f('0x19')],{[Op['or']]:_[_0x1b369f('0x1a')](_0x20a0a6['attributes'],function(_0x24898d){const _0x411386=_0x1b369f,_0x1e78d1={};return _0x1e78d1[_0x24898d]={[Op[_0x411386('0x26')]]:'%'+_0x542fc1['query'][_0x411386('0x32')]+'%'},_0x1e78d1;})})),_0x20a0a6=_['merge']({},_0x20a0a6,_0x542fc1[_0x1b369f('0x34')]),_0x31118c[_0x1b369f('0x36')](_0x20a0a6);})[_0x12f56d('0x6')](function(_0x20ffa8){const _0x30b738=_0x12f56d;if(_0x20ffa8)return _0x4ee1c5=_0x20ffa8[_0x30b738('0x33')],typeof _0x542fc1['query'][_0x30b738('0xe')]==='undefined'&&(_0x20a0a6['limit']=qs[_0x30b738('0x2')](_0x542fc1[_0x30b738('0x0')]['limit']),_0x20a0a6[_0x30b738('0x15')]=qs['offset'](_0x542fc1[_0x30b738('0x0')][_0x30b738('0x15')])),_0x31118c[_0x30b738('0x36')](_0x20a0a6);})['then'](function(_0x199599){if(_0x199599)return _0x199599?{'count':_0x4ee1c5,'rows':_0x199599}:null;})[_0x12f56d('0x6')](respondWithResult(_0x4b0108,null))[_0x12f56d('0x31')](handleError(_0x4b0108,null));}; \ No newline at end of file +const a312_0x344f=['api','fieldName','map','order','../../components/parsers/qs','keys','nolimit','SugarcrmConfiguration','offset','includeAll','filters','model','like','then','fields','rawAttributes','merge','lodash','stack','filter','create','send','sort','attributes','set','pick','getFields','update','../../config/logger','params','SugarcrmField','type','error','count','findOne','VIRTUAL','include','undefined','body','where','limit','getSubjects','name','options','length','destroy','end','json','key','status','getDescriptions','query','intersection','findAll','catch','sendStatus','Content-Range'];(function(_0x5cce29,_0x344f7b){const _0x37bc6e=function(_0x48dc1b){while(--_0x48dc1b){_0x5cce29['push'](_0x5cce29['shift']());}};_0x37bc6e(++_0x344f7b);}(a312_0x344f,0x1a6));const a312_0x37bc=function(_0x5cce29,_0x344f7b){_0x5cce29=_0x5cce29-0x0;let _0x37bc6e=a312_0x344f[_0x5cce29];return _0x37bc6e;};const _0x195db2=a312_0x37bc;'use strict';const _=require(_0x195db2('0x33')),qs=require(_0x195db2('0x26')),logger=require(_0x195db2('0x5'))(_0x195db2('0x22')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x48dc1b,_0x534ae){return _0x534ae=_0x534ae||0xc8,function(_0x467898){const _0x19c4c1=a312_0x37bc;if(_0x467898)return _0x48dc1b[_0x19c4c1('0x1a')](_0x534ae)['json'](_0x467898);};}function respondWithFilteredResult(_0x3f5978,_0x3d6495){return function(_0x8b67ca){const _0x2487ee=a312_0x37bc;if(_0x8b67ca){const _0x2c61bf=_0x8b67ca[_0x2487ee('0xa')],_0x5f128d=_0x3d6495[_0x2487ee('0x2a')];let _0x4d2a8a=_0x3d6495[_0x2487ee('0x2a')]+_0x3d6495[_0x2487ee('0x11')],_0xde40f0;return _0x4d2a8a>=_0x2c61bf?(_0x4d2a8a=_0x2c61bf,_0xde40f0=0xc8):_0xde40f0=0xce,_0x3f5978[_0x2487ee('0x1a')](_0xde40f0),_0x3f5978[_0x2487ee('0x1')](_0x2487ee('0x21'),_0x5f128d+'-'+_0x4d2a8a+'/'+_0x2c61bf)[_0x2487ee('0x18')](_0x8b67ca);}return null;};}function saveUpdates(_0x1f2926){return function(_0x2eef36){const _0x4c91a8=a312_0x37bc;if(_0x2eef36)return _0x2eef36[_0x4c91a8('0x4')](_0x1f2926)[_0x4c91a8('0x2f')](function(_0x22d0c5){return _0x22d0c5;});return null;};}function removeEntity(_0x45bdb1){return function(_0x530e48){const _0x59a86e=a312_0x37bc;if(_0x530e48)return _0x530e48[_0x59a86e('0x16')]()[_0x59a86e('0x2f')](function(){const _0xc989=_0x59a86e;_0x45bdb1[_0xc989('0x1a')](0xcc)[_0xc989('0x17')]();});};}function handleEntityNotFound(_0x4ca33b){return function(_0x395325){const _0x2cd1ff=a312_0x37bc;return!_0x395325&&_0x4ca33b[_0x2cd1ff('0x20')](0x194),_0x395325;};}function handleError(_0x5c7d94,_0x2ab1e7){return _0x2ab1e7=_0x2ab1e7||0x1f4,function(_0x16d44e){const _0x5716d0=a312_0x37bc;logger[_0x5716d0('0x9')](_0x16d44e[_0x5716d0('0x34')]),_0x16d44e[_0x5716d0('0x13')]&&delete _0x16d44e[_0x5716d0('0x13')],_0x5c7d94[_0x5716d0('0x1a')](_0x2ab1e7)[_0x5716d0('0x37')](_0x16d44e);};}exports['index']=function(_0x18a28c,_0x3971bc){const _0x492c7f=_0x195db2;let _0x54621b={};const _0x4e77d0={},_0x7982e1={'count':0x0,'rows':[]},_0x3d39d5=_[_0x492c7f('0x24')](db[_0x492c7f('0x29')][_0x492c7f('0x31')],function(_0xb7b3e4){const _0x247b33=_0x492c7f;return{'name':_0xb7b3e4[_0x247b33('0x23')],'type':_0xb7b3e4['type'][_0x247b33('0x19')]};});_0x4e77d0['model']=_[_0x492c7f('0x24')](_0x3d39d5,'name'),_0x4e77d0[_0x492c7f('0x1c')]=_[_0x492c7f('0x27')](_0x18a28c[_0x492c7f('0x1c')]),_0x4e77d0[_0x492c7f('0x2c')]=_[_0x492c7f('0x1d')](_0x4e77d0[_0x492c7f('0x2d')],_0x4e77d0[_0x492c7f('0x1c')]),_0x54621b[_0x492c7f('0x0')]=_[_0x492c7f('0x1d')](_0x4e77d0['model'],qs['fields'](_0x18a28c[_0x492c7f('0x1c')][_0x492c7f('0x30')])),_0x54621b[_0x492c7f('0x0')]=_0x54621b[_0x492c7f('0x0')][_0x492c7f('0x15')]?_0x54621b[_0x492c7f('0x0')]:_0x4e77d0['model'];typeof _0x18a28c[_0x492c7f('0x1c')][_0x492c7f('0x28')]===_0x492c7f('0xe')&&(_0x54621b[_0x492c7f('0x11')]=qs[_0x492c7f('0x11')](_0x18a28c[_0x492c7f('0x1c')][_0x492c7f('0x11')]),_0x54621b[_0x492c7f('0x2a')]=qs[_0x492c7f('0x2a')](_0x18a28c['query']['offset']));_0x54621b['order']=qs[_0x492c7f('0x38')](_0x18a28c[_0x492c7f('0x1c')][_0x492c7f('0x38')]),_0x54621b['where']=qs[_0x492c7f('0x2c')](_[_0x492c7f('0x2')](_0x18a28c[_0x492c7f('0x1c')],_0x4e77d0['filters']),_0x3d39d5);_0x18a28c['query'][_0x492c7f('0x35')]&&(_0x54621b[_0x492c7f('0x10')]=_['merge'](_0x54621b[_0x492c7f('0x10')],{[Op['or']]:_[_0x492c7f('0x24')](_0x3d39d5,function(_0x58ab78){const _0x32b4a8=_0x492c7f;if(_0x58ab78[_0x32b4a8('0x8')]!==_0x32b4a8('0xc')){const _0x113def={};return _0x113def[_0x58ab78[_0x32b4a8('0x13')]]={[Op[_0x32b4a8('0x2e')]]:'%'+_0x18a28c[_0x32b4a8('0x1c')][_0x32b4a8('0x35')]+'%'},_0x113def;}})}));_0x54621b=_[_0x492c7f('0x32')]({},_0x54621b,_0x18a28c['options']);const _0x11abaf={'where':_0x54621b[_0x492c7f('0x10')]};return db[_0x492c7f('0x29')][_0x492c7f('0xa')](_0x11abaf)[_0x492c7f('0x2f')](function(_0x57f571){const _0x1655ee=_0x492c7f;return _0x7982e1[_0x1655ee('0xa')]=_0x57f571,_0x18a28c[_0x1655ee('0x1c')][_0x1655ee('0x2b')]&&(_0x54621b['include']=[{'all':!![]}]),db[_0x1655ee('0x29')][_0x1655ee('0x1e')](_0x54621b);})[_0x492c7f('0x2f')](function(_0x22ec92){return _0x7982e1['rows']=_0x22ec92,_0x7982e1;})[_0x492c7f('0x2f')](respondWithFilteredResult(_0x3971bc,_0x54621b))['catch'](handleError(_0x3971bc,null));},exports['show']=function(_0x22bce2,_0x1699e5){const _0xbb4ce7=_0x195db2;let _0x2d19c2={'raw':![],'where':{'id':_0x22bce2[_0xbb4ce7('0x6')]['id']}};const _0x43860b={};return _0x43860b[_0xbb4ce7('0x2d')]=_['keys'](db[_0xbb4ce7('0x29')][_0xbb4ce7('0x31')]),_0x43860b['query']=_['keys'](_0x22bce2[_0xbb4ce7('0x1c')]),_0x43860b[_0xbb4ce7('0x2c')]=_[_0xbb4ce7('0x1d')](_0x43860b['model'],_0x43860b[_0xbb4ce7('0x1c')]),_0x2d19c2[_0xbb4ce7('0x0')]=_['intersection'](_0x43860b[_0xbb4ce7('0x2d')],qs[_0xbb4ce7('0x30')](_0x22bce2[_0xbb4ce7('0x1c')][_0xbb4ce7('0x30')])),_0x2d19c2[_0xbb4ce7('0x0')]=_0x2d19c2['attributes']['length']?_0x2d19c2['attributes']:_0x43860b['model'],_0x22bce2[_0xbb4ce7('0x1c')][_0xbb4ce7('0x2b')]&&(_0x2d19c2[_0xbb4ce7('0xd')]=[{'all':!![]}]),_0x2d19c2=_[_0xbb4ce7('0x32')]({},_0x2d19c2,_0x22bce2[_0xbb4ce7('0x14')]),db[_0xbb4ce7('0x29')][_0xbb4ce7('0xb')](_0x2d19c2)[_0xbb4ce7('0x2f')](handleEntityNotFound(_0x1699e5,null))[_0xbb4ce7('0x2f')](respondWithResult(_0x1699e5,null))[_0xbb4ce7('0x1f')](handleError(_0x1699e5,null));},exports[_0x195db2('0x36')]=function(_0x4656f0,_0x298f04){const _0x4e22a7=_0x195db2;return db[_0x4e22a7('0x29')][_0x4e22a7('0x36')](_0x4656f0[_0x4e22a7('0xf')],{})[_0x4e22a7('0x2f')](respondWithResult(_0x298f04,0xc9))[_0x4e22a7('0x1f')](handleError(_0x298f04,null));},exports[_0x195db2('0x4')]=function(_0x2fd42e,_0x3ed9f5){const _0xce702d=_0x195db2;return _0x2fd42e[_0xce702d('0xf')]['id']&&delete _0x2fd42e[_0xce702d('0xf')]['id'],db['SugarcrmConfiguration'][_0xce702d('0xb')]({'where':{'id':_0x2fd42e[_0xce702d('0x6')]['id']}})[_0xce702d('0x2f')](handleEntityNotFound(_0x3ed9f5,null))[_0xce702d('0x2f')](saveUpdates(_0x2fd42e[_0xce702d('0xf')],null))[_0xce702d('0x2f')](respondWithResult(_0x3ed9f5,null))[_0xce702d('0x1f')](handleError(_0x3ed9f5,null));},exports['destroy']=function(_0x475498,_0x575178){const _0x1e4da9=_0x195db2;return db[_0x1e4da9('0x29')][_0x1e4da9('0xb')]({'where':{'id':_0x475498[_0x1e4da9('0x6')]['id']}})[_0x1e4da9('0x2f')](handleEntityNotFound(_0x575178,null))['then'](removeEntity(_0x575178,null))[_0x1e4da9('0x1f')](handleError(_0x575178,null));},exports['getFields']=function(_0x58505f,_0x1b9776){const _0x27f7d8=_0x195db2;let _0x1a3fe9={};const _0x1bec32={};let _0xb54be1,_0x73b279;return db[_0x27f7d8('0x29')]['findOne']({'where':{'id':_0x58505f[_0x27f7d8('0x6')]['id']}})['then'](handleEntityNotFound(_0x1b9776,null))[_0x27f7d8('0x2f')](function(_0x3c2858){const _0x4fd7f6=_0x27f7d8;if(_0x3c2858)return _0xb54be1=_0x3c2858,_0x1bec32[_0x4fd7f6('0x2d')]=_['keys'](db[_0x4fd7f6('0x7')][_0x4fd7f6('0x31')]),_0x1bec32['query']=_[_0x4fd7f6('0x27')](_0x58505f[_0x4fd7f6('0x1c')]),_0x1bec32[_0x4fd7f6('0x2c')]=_[_0x4fd7f6('0x1d')](_0x1bec32[_0x4fd7f6('0x2d')],_0x1bec32[_0x4fd7f6('0x1c')]),_0x1a3fe9[_0x4fd7f6('0x0')]=_['intersection'](_0x1bec32[_0x4fd7f6('0x2d')],qs['fields'](_0x58505f['query'][_0x4fd7f6('0x30')])),_0x1a3fe9[_0x4fd7f6('0x0')]=_0x1a3fe9[_0x4fd7f6('0x0')][_0x4fd7f6('0x15')]?_0x1a3fe9['attributes']:_0x1bec32[_0x4fd7f6('0x2d')],_0x1a3fe9['order']=qs[_0x4fd7f6('0x38')](_0x58505f[_0x4fd7f6('0x1c')]['sort']),_0x1a3fe9[_0x4fd7f6('0x10')]=qs['filters'](_[_0x4fd7f6('0x2')](_0x58505f[_0x4fd7f6('0x1c')],_0x1bec32[_0x4fd7f6('0x2c')])),_0x58505f[_0x4fd7f6('0x1c')][_0x4fd7f6('0x35')]&&(_0x1a3fe9[_0x4fd7f6('0x10')]=_['merge'](_0x1a3fe9[_0x4fd7f6('0x10')],{[Op['or']]:_[_0x4fd7f6('0x24')](_0x1a3fe9[_0x4fd7f6('0x0')],function(_0x539757){const _0xa6d53d=_0x4fd7f6,_0x44aac9={};return _0x44aac9[_0x539757]={[Op['like']]:'%'+_0x58505f[_0xa6d53d('0x1c')][_0xa6d53d('0x35')]+'%'},_0x44aac9;})})),_0x1a3fe9=_[_0x4fd7f6('0x32')]({},_0x1a3fe9,_0x58505f['options']),_0xb54be1[_0x4fd7f6('0x3')](_0x1a3fe9);})[_0x27f7d8('0x2f')](function(_0x305a11){const _0x912d43=_0x27f7d8;if(_0x305a11)return _0x73b279=_0x305a11['length'],typeof _0x58505f[_0x912d43('0x1c')][_0x912d43('0x28')]===_0x912d43('0xe')&&(_0x1a3fe9[_0x912d43('0x11')]=qs[_0x912d43('0x11')](_0x58505f[_0x912d43('0x1c')]['limit']),_0x1a3fe9[_0x912d43('0x2a')]=qs[_0x912d43('0x2a')](_0x58505f[_0x912d43('0x1c')][_0x912d43('0x2a')])),_0xb54be1['getFields'](_0x1a3fe9);})[_0x27f7d8('0x2f')](function(_0x21d536){if(_0x21d536)return _0x21d536?{'count':_0x73b279,'rows':_0x21d536}:null;})[_0x27f7d8('0x2f')](respondWithResult(_0x1b9776,null))['catch'](handleError(_0x1b9776,null));},exports[_0x195db2('0x12')]=function(_0x3b7c8b,_0x47cb0d){const _0x3e374e=_0x195db2;let _0x205357={};const _0x453cf2={};let _0x26c677,_0x23e465;return db['SugarcrmConfiguration']['findOne']({'where':{'id':_0x3b7c8b[_0x3e374e('0x6')]['id']}})[_0x3e374e('0x2f')](handleEntityNotFound(_0x47cb0d,null))[_0x3e374e('0x2f')](function(_0x248e8f){const _0x417640=_0x3e374e;if(_0x248e8f)return _0x26c677=_0x248e8f,_0x453cf2[_0x417640('0x2d')]=_[_0x417640('0x27')](db[_0x417640('0x7')][_0x417640('0x31')]),_0x453cf2[_0x417640('0x1c')]=_[_0x417640('0x27')](_0x3b7c8b['query']),_0x453cf2[_0x417640('0x2c')]=_['intersection'](_0x453cf2['model'],_0x453cf2[_0x417640('0x1c')]),_0x205357[_0x417640('0x0')]=_['intersection'](_0x453cf2[_0x417640('0x2d')],qs[_0x417640('0x30')](_0x3b7c8b[_0x417640('0x1c')][_0x417640('0x30')])),_0x205357[_0x417640('0x0')]=_0x205357[_0x417640('0x0')]['length']?_0x205357[_0x417640('0x0')]:_0x453cf2[_0x417640('0x2d')],_0x205357[_0x417640('0x25')]=qs[_0x417640('0x38')](_0x3b7c8b['query']['sort']),_0x205357['where']=qs['filters'](_['pick'](_0x3b7c8b[_0x417640('0x1c')],_0x453cf2['filters'])),_0x3b7c8b[_0x417640('0x1c')][_0x417640('0x35')]&&(_0x205357[_0x417640('0x10')]=_[_0x417640('0x32')](_0x205357[_0x417640('0x10')],{[Op['or']]:_[_0x417640('0x24')](_0x205357[_0x417640('0x0')],function(_0x3b5df0){const _0xe80738=_0x417640,_0x55227d={};return _0x55227d[_0x3b5df0]={[Op[_0xe80738('0x2e')]]:'%'+_0x3b7c8b[_0xe80738('0x1c')][_0xe80738('0x35')]+'%'},_0x55227d;})})),_0x205357=_[_0x417640('0x32')]({},_0x205357,_0x3b7c8b['options']),_0x26c677[_0x417640('0x12')](_0x205357);})[_0x3e374e('0x2f')](function(_0x3de2fa){const _0x345e16=_0x3e374e;if(_0x3de2fa)return _0x23e465=_0x3de2fa[_0x345e16('0x15')],typeof _0x3b7c8b[_0x345e16('0x1c')][_0x345e16('0x28')]===_0x345e16('0xe')&&(_0x205357[_0x345e16('0x11')]=qs[_0x345e16('0x11')](_0x3b7c8b[_0x345e16('0x1c')][_0x345e16('0x11')]),_0x205357['offset']=qs[_0x345e16('0x2a')](_0x3b7c8b['query']['offset'])),_0x26c677[_0x345e16('0x12')](_0x205357);})[_0x3e374e('0x2f')](function(_0x3c97e2){if(_0x3c97e2)return _0x3c97e2?{'count':_0x23e465,'rows':_0x3c97e2}:null;})[_0x3e374e('0x2f')](respondWithResult(_0x47cb0d,null))['catch'](handleError(_0x47cb0d,null));},exports[_0x195db2('0x1b')]=function(_0x4c6410,_0x191b19){const _0x9efe8e=_0x195db2;let _0x5ae1b9={};const _0x4da8d9={};let _0x48df72,_0x481c96;return db['SugarcrmConfiguration']['findOne']({'where':{'id':_0x4c6410[_0x9efe8e('0x6')]['id']}})[_0x9efe8e('0x2f')](handleEntityNotFound(_0x191b19,null))[_0x9efe8e('0x2f')](function(_0x3f11d9){const _0x314b40=_0x9efe8e;if(_0x3f11d9)return _0x48df72=_0x3f11d9,_0x4da8d9[_0x314b40('0x2d')]=_[_0x314b40('0x27')](db[_0x314b40('0x7')][_0x314b40('0x31')]),_0x4da8d9[_0x314b40('0x1c')]=_[_0x314b40('0x27')](_0x4c6410[_0x314b40('0x1c')]),_0x4da8d9[_0x314b40('0x2c')]=_[_0x314b40('0x1d')](_0x4da8d9[_0x314b40('0x2d')],_0x4da8d9[_0x314b40('0x1c')]),_0x5ae1b9[_0x314b40('0x0')]=_[_0x314b40('0x1d')](_0x4da8d9[_0x314b40('0x2d')],qs['fields'](_0x4c6410[_0x314b40('0x1c')][_0x314b40('0x30')])),_0x5ae1b9[_0x314b40('0x0')]=_0x5ae1b9['attributes'][_0x314b40('0x15')]?_0x5ae1b9[_0x314b40('0x0')]:_0x4da8d9[_0x314b40('0x2d')],_0x5ae1b9['order']=qs[_0x314b40('0x38')](_0x4c6410[_0x314b40('0x1c')][_0x314b40('0x38')]),_0x5ae1b9[_0x314b40('0x10')]=qs['filters'](_[_0x314b40('0x2')](_0x4c6410[_0x314b40('0x1c')],_0x4da8d9['filters'])),_0x4c6410[_0x314b40('0x1c')][_0x314b40('0x35')]&&(_0x5ae1b9[_0x314b40('0x10')]=_['merge'](_0x5ae1b9[_0x314b40('0x10')],{[Op['or']]:_['map'](_0x5ae1b9[_0x314b40('0x0')],function(_0x2ceae8){const _0x5f510b=_0x314b40,_0x3b559f={};return _0x3b559f[_0x2ceae8]={[Op[_0x5f510b('0x2e')]]:'%'+_0x4c6410['query'][_0x5f510b('0x35')]+'%'},_0x3b559f;})})),_0x5ae1b9=_[_0x314b40('0x32')]({},_0x5ae1b9,_0x4c6410[_0x314b40('0x14')]),_0x48df72[_0x314b40('0x1b')](_0x5ae1b9);})[_0x9efe8e('0x2f')](function(_0x151904){const _0x8605bf=_0x9efe8e;if(_0x151904)return _0x481c96=_0x151904[_0x8605bf('0x15')],typeof _0x4c6410[_0x8605bf('0x1c')][_0x8605bf('0x28')]===_0x8605bf('0xe')&&(_0x5ae1b9[_0x8605bf('0x11')]=qs[_0x8605bf('0x11')](_0x4c6410[_0x8605bf('0x1c')][_0x8605bf('0x11')]),_0x5ae1b9[_0x8605bf('0x2a')]=qs[_0x8605bf('0x2a')](_0x4c6410[_0x8605bf('0x1c')][_0x8605bf('0x2a')])),_0x48df72[_0x8605bf('0x1b')](_0x5ae1b9);})[_0x9efe8e('0x2f')](function(_0x393ff8){if(_0x393ff8)return _0x393ff8?{'count':_0x481c96,'rows':_0x393ff8}:null;})[_0x9efe8e('0x2f')](respondWithResult(_0x191b19,null))['catch'](handleError(_0x191b19,null));}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js index 9b21b33..1f3f4eb 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js @@ -1 +1 @@ -const a313_0x512d=['SugarcrmConfiguration','define'];(function(_0x25e487,_0x512ddd){const _0x16f5e9=function(_0x4d49f1){while(--_0x4d49f1){_0x25e487['push'](_0x25e487['shift']());}};_0x16f5e9(++_0x512ddd);}(a313_0x512d,0x11e));const a313_0x16f5=function(_0x25e487,_0x512ddd){_0x25e487=_0x25e487-0x0;let _0x16f5e9=a313_0x512d[_0x25e487];return _0x16f5e9;};'use strict';const attributes=require('./intSugarcrmConfiguration.attributes');module['exports']=function(_0x4d49f1){const _0x2f5547=a313_0x16f5,_0x32a4c7=_0x4d49f1[_0x2f5547('0x1')](_0x2f5547('0x0'),attributes,{'tableName':'int_sugarcrm_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x32a4c7;}; \ No newline at end of file +const a313_0xbb44=['int_sugarcrm_configurations','exports','SugarcrmConfiguration','define'];(function(_0x554d59,_0xbb447e){const _0xcd5545=function(_0x513328){while(--_0x513328){_0x554d59['push'](_0x554d59['shift']());}};_0xcd5545(++_0xbb447e);}(a313_0xbb44,0x183));const a313_0xcd55=function(_0x554d59,_0xbb447e){_0x554d59=_0x554d59-0x0;let _0xcd5545=a313_0xbb44[_0x554d59];return _0xcd5545;};const _0x47a720=a313_0xcd55;'use strict';const attributes=require('./intSugarcrmConfiguration.attributes');module[_0x47a720('0x2')]=function(_0x513328){const _0x27d4ce=_0x47a720,_0x151d82=_0x513328[_0x27d4ce('0x0')](_0x27d4ce('0x3'),attributes,{'tableName':_0x27d4ce('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x151d82;}; \ No newline at end of file diff --git a/server/api/intSugarcrmField/index.js b/server/api/intSugarcrmField/index.js index c5f62db..bcb5a16 100644 --- a/server/api/intSugarcrmField/index.js +++ b/server/api/intSugarcrmField/index.js @@ -1 +1 @@ -const a314_0x4ad5=['../../components/auth/service','Router','show','destroy','isAuthenticated','express','exports','delete','/:id','get','update','post','./intSugarcrmField.controller','index'];(function(_0x11ba92,_0x4ad56f){const _0x151918=function(_0x1844bd){while(--_0x1844bd){_0x11ba92['push'](_0x11ba92['shift']());}};_0x151918(++_0x4ad56f);}(a314_0x4ad5,0xed));const a314_0x1519=function(_0x11ba92,_0x4ad56f){_0x11ba92=_0x11ba92-0x0;let _0x151918=a314_0x4ad5[_0x11ba92];return _0x151918;};const _0x105f5b=a314_0x1519;'use strict';const express=require(_0x105f5b('0x6')),router=express[_0x105f5b('0x2')](),auth=require(_0x105f5b('0x1')),controller=require(_0x105f5b('0xd'));router['get']('/',auth[_0x105f5b('0x5')](),controller[_0x105f5b('0x0')]),router[_0x105f5b('0xa')](_0x105f5b('0x9'),auth[_0x105f5b('0x5')](),controller[_0x105f5b('0x3')]),router[_0x105f5b('0xc')]('/',auth[_0x105f5b('0x5')](),controller['create']),router['put'](_0x105f5b('0x9'),auth['isAuthenticated'](),controller[_0x105f5b('0xb')]),router[_0x105f5b('0x8')](_0x105f5b('0x9'),auth[_0x105f5b('0x5')](),controller[_0x105f5b('0x4')]),module[_0x105f5b('0x7')]=router; \ No newline at end of file +const a314_0x55f8=['post','index','put','destroy','exports','/:id','./intSugarcrmField.controller','update','../../components/auth/service','delete','express','isAuthenticated','show','get'];(function(_0x1b7824,_0x55f87e){const _0x2b520b=function(_0x147334){while(--_0x147334){_0x1b7824['push'](_0x1b7824['shift']());}};_0x2b520b(++_0x55f87e);}(a314_0x55f8,0x1e8));const a314_0x2b52=function(_0x1b7824,_0x55f87e){_0x1b7824=_0x1b7824-0x0;let _0x2b520b=a314_0x55f8[_0x1b7824];return _0x2b520b;};const _0x232c17=a314_0x2b52;'use strict';const express=require(_0x232c17('0xc')),router=express['Router'](),auth=require(_0x232c17('0xa')),controller=require(_0x232c17('0x8'));router[_0x232c17('0x1')]('/',auth[_0x232c17('0xd')](),controller[_0x232c17('0x3')]),router[_0x232c17('0x1')](_0x232c17('0x7'),auth[_0x232c17('0xd')](),controller[_0x232c17('0x0')]),router[_0x232c17('0x2')]('/',auth[_0x232c17('0xd')](),controller['create']),router[_0x232c17('0x4')]('/:id',auth[_0x232c17('0xd')](),controller[_0x232c17('0x9')]),router[_0x232c17('0xb')]('/:id',auth[_0x232c17('0xd')](),controller[_0x232c17('0x5')]),module[_0x232c17('0x6')]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.attributes.js b/server/api/intSugarcrmField/intSugarcrmField.attributes.js index 7c061e8..a02d495 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.attributes.js +++ b/server/api/intSugarcrmField/intSugarcrmField.attributes.js @@ -1 +1 @@ -const a315_0x4364=['STRING','ENUM','sequelize','customVariable','variable','string','exports','keyValue'];(function(_0x2e1508,_0x4364fa){const _0x58f8e6=function(_0x227b68){while(--_0x227b68){_0x2e1508['push'](_0x2e1508['shift']());}};_0x58f8e6(++_0x4364fa);}(a315_0x4364,0x83));const a315_0x58f8=function(_0x2e1508,_0x4364fa){_0x2e1508=_0x2e1508-0x0;let _0x58f8e6=a315_0x4364[_0x2e1508];return _0x58f8e6;};const _0xcb1a77=a315_0x58f8;'use strict';const Sequelize=require(_0xcb1a77('0x7'));module[_0xcb1a77('0x3')]={'type':{'type':Sequelize['ENUM']('string',_0xcb1a77('0x1'),_0xcb1a77('0x0'),_0xcb1a77('0x4')),'defaultValue':_0xcb1a77('0x2')},'content':{'type':Sequelize[_0xcb1a77('0x5')]},'key':{'type':Sequelize[_0xcb1a77('0x5')]},'keyType':{'type':Sequelize[_0xcb1a77('0x6')](_0xcb1a77('0x2'),'variable',_0xcb1a77('0x0'))},'keyContent':{'type':Sequelize[_0xcb1a77('0x5')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0xcb1a77('0x5')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0xcb1a77('0x5')]}}; \ No newline at end of file +const a315_0x3e65=['keyValue','ENUM','string','sequelize','STRING','customVariable','variable','BOOLEAN'];(function(_0x274f67,_0x3e6575){const _0x17de8b=function(_0x1e9a29){while(--_0x1e9a29){_0x274f67['push'](_0x274f67['shift']());}};_0x17de8b(++_0x3e6575);}(a315_0x3e65,0x125));const a315_0x17de=function(_0x274f67,_0x3e6575){_0x274f67=_0x274f67-0x0;let _0x17de8b=a315_0x3e65[_0x274f67];return _0x17de8b;};const _0x17d15d=a315_0x17de;'use strict';const Sequelize=require(_0x17d15d('0x6'));module['exports']={'type':{'type':Sequelize[_0x17d15d('0x4')](_0x17d15d('0x5'),_0x17d15d('0x1'),_0x17d15d('0x0'),_0x17d15d('0x3')),'defaultValue':_0x17d15d('0x5')},'content':{'type':Sequelize[_0x17d15d('0x7')]},'key':{'type':Sequelize[_0x17d15d('0x7')]},'keyType':{'type':Sequelize[_0x17d15d('0x4')]('string',_0x17d15d('0x1'),_0x17d15d('0x0'))},'keyContent':{'type':Sequelize[_0x17d15d('0x7')]},'idField':{'type':Sequelize[_0x17d15d('0x7')]},'nameField':{'type':Sequelize[_0x17d15d('0x7')]},'customField':{'type':Sequelize[_0x17d15d('0x2')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x17d15d('0x7')]}}; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.controller.js b/server/api/intSugarcrmField/intSugarcrmField.controller.js index 942aaa1..c80cefb 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.controller.js +++ b/server/api/intSugarcrmField/intSugarcrmField.controller.js @@ -1 +1 @@ -const a316_0x4f1a=['offset','findOne','count','sort','keys','key','nolimit','send','sequelize','order','fields','error','map','body','catch','show','include','create','name','index','rawAttributes','status','like','attributes','../../config/logger','SugarcrmField','filter','query','type','length','model','then','limit','merge','intersection','api','filters','params','pick','destroy','VIRTUAL','options','../../mysqldb','where','fieldName','../../components/parsers/qs','update','lodash','set'];(function(_0x2b8fd2,_0x4f1ad8){const _0x92cc34=function(_0x208d71){while(--_0x208d71){_0x2b8fd2['push'](_0x2b8fd2['shift']());}};_0x92cc34(++_0x4f1ad8);}(a316_0x4f1a,0x8a));const a316_0x92cc=function(_0x2b8fd2,_0x4f1ad8){_0x2b8fd2=_0x2b8fd2-0x0;let _0x92cc34=a316_0x4f1a[_0x2b8fd2];return _0x92cc34;};const _0x58ab91=a316_0x92cc;'use strict';const _=require(_0x58ab91('0x7')),qs=require(_0x58ab91('0x5')),logger=require(_0x58ab91('0x21'))(_0x58ab91('0x2c')),db=require(_0x58ab91('0x2'))['db'],{Op}=require(_0x58ab91('0x11'));function respondWithResult(_0x208d71,_0x1bbe54){return _0x1bbe54=_0x1bbe54||0xc8,function(_0x2beb52){if(_0x2beb52)return _0x208d71['status'](_0x1bbe54)['json'](_0x2beb52);};}function respondWithFilteredResult(_0x5cc60d,_0x545650){return function(_0x37e749){const _0x49793c=a316_0x92cc;if(_0x37e749){const _0xc65145=_0x37e749[_0x49793c('0xb')],_0x2d357c=_0x545650[_0x49793c('0x9')];let _0x151cfa=_0x545650[_0x49793c('0x9')]+_0x545650[_0x49793c('0x29')],_0x3ed731;return _0x151cfa>=_0xc65145?(_0x151cfa=_0xc65145,_0x3ed731=0xc8):_0x3ed731=0xce,_0x5cc60d[_0x49793c('0x1e')](_0x3ed731),_0x5cc60d[_0x49793c('0x8')]('Content-Range',_0x2d357c+'-'+_0x151cfa+'/'+_0xc65145)['json'](_0x37e749);}return null;};}function saveUpdates(_0x5e3d94){return function(_0x1c9b2d){const _0x3dfe51=a316_0x92cc;if(_0x1c9b2d)return _0x1c9b2d[_0x3dfe51('0x6')](_0x5e3d94)[_0x3dfe51('0x28')](function(_0x2f56d){return _0x2f56d;});return null;};}function removeEntity(_0x5367f){return function(_0x538ed2){const _0x539962=a316_0x92cc;if(_0x538ed2)return _0x538ed2[_0x539962('0x30')]()[_0x539962('0x28')](function(){const _0x2c83b8=_0x539962;_0x5367f[_0x2c83b8('0x1e')](0xcc)['end']();});};}function handleEntityNotFound(_0x3d1040){return function(_0x32aa81){return!_0x32aa81&&_0x3d1040['sendStatus'](0x194),_0x32aa81;};}function handleError(_0x5f465a,_0x2e4ec5){return _0x2e4ec5=_0x2e4ec5||0x1f4,function(_0x31f7c8){const _0x1a6344=a316_0x92cc;logger[_0x1a6344('0x14')](_0x31f7c8['stack']),_0x31f7c8[_0x1a6344('0x1b')]&&delete _0x31f7c8[_0x1a6344('0x1b')],_0x5f465a[_0x1a6344('0x1e')](_0x2e4ec5)[_0x1a6344('0x10')](_0x31f7c8);};}exports[_0x58ab91('0x1c')]=function(_0x22acad,_0x4b1015){const _0x59a20e=_0x58ab91;let _0x1a573e={};const _0x409979={},_0x351e70={'count':0x0,'rows':[]},_0x1476ad=_[_0x59a20e('0x15')](db['SugarcrmField'][_0x59a20e('0x1d')],function(_0x57d463){const _0x36b7b8=_0x59a20e;return{'name':_0x57d463[_0x36b7b8('0x4')],'type':_0x57d463[_0x36b7b8('0x25')][_0x36b7b8('0xe')]};});_0x409979[_0x59a20e('0x27')]=_[_0x59a20e('0x15')](_0x1476ad,'name'),_0x409979[_0x59a20e('0x24')]=_[_0x59a20e('0xd')](_0x22acad['query']),_0x409979[_0x59a20e('0x2d')]=_['intersection'](_0x409979[_0x59a20e('0x27')],_0x409979[_0x59a20e('0x24')]),_0x1a573e[_0x59a20e('0x20')]=_[_0x59a20e('0x2b')](_0x409979[_0x59a20e('0x27')],qs[_0x59a20e('0x13')](_0x22acad[_0x59a20e('0x24')][_0x59a20e('0x13')])),_0x1a573e[_0x59a20e('0x20')]=_0x1a573e[_0x59a20e('0x20')][_0x59a20e('0x26')]?_0x1a573e['attributes']:_0x409979['model'];typeof _0x22acad[_0x59a20e('0x24')][_0x59a20e('0xf')]==='undefined'&&(_0x1a573e[_0x59a20e('0x29')]=qs[_0x59a20e('0x29')](_0x22acad[_0x59a20e('0x24')][_0x59a20e('0x29')]),_0x1a573e['offset']=qs[_0x59a20e('0x9')](_0x22acad[_0x59a20e('0x24')][_0x59a20e('0x9')]));_0x1a573e[_0x59a20e('0x12')]=qs[_0x59a20e('0xc')](_0x22acad[_0x59a20e('0x24')][_0x59a20e('0xc')]),_0x1a573e[_0x59a20e('0x3')]=qs[_0x59a20e('0x2d')](_[_0x59a20e('0x2f')](_0x22acad['query'],_0x409979[_0x59a20e('0x2d')]),_0x1476ad);_0x22acad['query'][_0x59a20e('0x23')]&&(_0x1a573e[_0x59a20e('0x3')]=_[_0x59a20e('0x2a')](_0x1a573e[_0x59a20e('0x3')],{[Op['or']]:_[_0x59a20e('0x15')](_0x1476ad,function(_0x165e13){const _0x45830f=_0x59a20e;if(_0x165e13[_0x45830f('0x25')]!==_0x45830f('0x0')){const _0x457f3d={};return _0x457f3d[_0x165e13[_0x45830f('0x1b')]]={[Op[_0x45830f('0x1f')]]:'%'+_0x22acad[_0x45830f('0x24')][_0x45830f('0x23')]+'%'},_0x457f3d;}})}));_0x1a573e=_['merge']({},_0x1a573e,_0x22acad['options']);const _0xd66007={'where':_0x1a573e[_0x59a20e('0x3')]};return db[_0x59a20e('0x22')][_0x59a20e('0xb')](_0xd66007)[_0x59a20e('0x28')](function(_0x17dbaa){const _0x17e302=_0x59a20e;return _0x351e70[_0x17e302('0xb')]=_0x17dbaa,_0x22acad[_0x17e302('0x24')]['includeAll']&&(_0x1a573e['include']=[{'all':!![]}]),db[_0x17e302('0x22')]['findAll'](_0x1a573e);})[_0x59a20e('0x28')](function(_0x3bfce6){return _0x351e70['rows']=_0x3bfce6,_0x351e70;})[_0x59a20e('0x28')](respondWithFilteredResult(_0x4b1015,_0x1a573e))[_0x59a20e('0x17')](handleError(_0x4b1015,null));},exports[_0x58ab91('0x18')]=function(_0x40d907,_0x1caf60){const _0x59cf42=_0x58ab91;let _0x5b52c5={'raw':!![],'where':{'id':_0x40d907[_0x59cf42('0x2e')]['id']}};const _0x324fbc={};return _0x324fbc[_0x59cf42('0x27')]=_['keys'](db[_0x59cf42('0x22')][_0x59cf42('0x1d')]),_0x324fbc[_0x59cf42('0x24')]=_[_0x59cf42('0xd')](_0x40d907['query']),_0x324fbc[_0x59cf42('0x2d')]=_[_0x59cf42('0x2b')](_0x324fbc['model'],_0x324fbc[_0x59cf42('0x24')]),_0x5b52c5[_0x59cf42('0x20')]=_[_0x59cf42('0x2b')](_0x324fbc[_0x59cf42('0x27')],qs[_0x59cf42('0x13')](_0x40d907[_0x59cf42('0x24')][_0x59cf42('0x13')])),_0x5b52c5['attributes']=_0x5b52c5[_0x59cf42('0x20')]['length']?_0x5b52c5[_0x59cf42('0x20')]:_0x324fbc[_0x59cf42('0x27')],_0x40d907[_0x59cf42('0x24')]['includeAll']&&(_0x5b52c5[_0x59cf42('0x19')]=[{'all':!![]}]),_0x5b52c5=_['merge']({},_0x5b52c5,_0x40d907[_0x59cf42('0x1')]),db[_0x59cf42('0x22')][_0x59cf42('0xa')](_0x5b52c5)[_0x59cf42('0x28')](handleEntityNotFound(_0x1caf60,null))[_0x59cf42('0x28')](respondWithResult(_0x1caf60,null))['catch'](handleError(_0x1caf60,null));},exports['create']=function(_0x54e952,_0x34a216){const _0x568033=_0x58ab91;return db[_0x568033('0x22')][_0x568033('0x1a')](_0x54e952['body'],{})[_0x568033('0x28')](respondWithResult(_0x34a216,0xc9))['catch'](handleError(_0x34a216,null));},exports[_0x58ab91('0x6')]=function(_0x3e470d,_0x21ccfe){const _0x25053b=_0x58ab91;return _0x3e470d['body']['id']&&delete _0x3e470d[_0x25053b('0x16')]['id'],db['SugarcrmField'][_0x25053b('0xa')]({'where':{'id':_0x3e470d[_0x25053b('0x2e')]['id']}})[_0x25053b('0x28')](handleEntityNotFound(_0x21ccfe,null))['then'](saveUpdates(_0x3e470d['body'],null))['then'](respondWithResult(_0x21ccfe,null))[_0x25053b('0x17')](handleError(_0x21ccfe,null));},exports['destroy']=function(_0x3aa803,_0x498e8d){const _0x17daf4=_0x58ab91;return db[_0x17daf4('0x22')][_0x17daf4('0xa')]({'where':{'id':_0x3aa803[_0x17daf4('0x2e')]['id']}})['then'](handleEntityNotFound(_0x498e8d,null))['then'](removeEntity(_0x498e8d,null))[_0x17daf4('0x17')](handleError(_0x498e8d,null));}; \ No newline at end of file +const a316_0x68c1=['model','merge','fields','update','count','status','catch','undefined','intersection','show','attributes','then','SugarcrmField','stack','where','pick','length','findOne','end','rows','query','api','options','nolimit','fieldName','sendStatus','VIRTUAL','type','rawAttributes','destroy','Content-Range','params','filters','create','key','offset','sort','index','error','include','body','findAll','map','like','keys','json','limit','name','../../mysqldb'];(function(_0x5d67a4,_0x68c19c){const _0x32b31d=function(_0x4734c4){while(--_0x4734c4){_0x5d67a4['push'](_0x5d67a4['shift']());}};_0x32b31d(++_0x68c19c);}(a316_0x68c1,0x1b2));const a316_0x32b3=function(_0x5d67a4,_0x68c19c){_0x5d67a4=_0x5d67a4-0x0;let _0x32b31d=a316_0x68c1[_0x5d67a4];return _0x32b31d;};const _0x5b06ce=a316_0x32b3;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x5b06ce('0x1c')),db=require(_0x5b06ce('0x6'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4734c4,_0x46eab5){return _0x46eab5=_0x46eab5||0xc8,function(_0x301750){const _0x4a73ee=a316_0x32b3;if(_0x301750)return _0x4734c4['status'](_0x46eab5)[_0x4a73ee('0x3')](_0x301750);};}function respondWithFilteredResult(_0xca96e9,_0x48451b){return function(_0x2fc536){const _0x50912f=a316_0x32b3;if(_0x2fc536){const _0x1b4436=_0x2fc536[_0x50912f('0xb')],_0x40dda1=_0x48451b['offset'];let _0x5da51f=_0x48451b['offset']+_0x48451b[_0x50912f('0x4')],_0x27cefe;return _0x5da51f>=_0x1b4436?(_0x5da51f=_0x1b4436,_0x27cefe=0xc8):_0x27cefe=0xce,_0xca96e9[_0x50912f('0xc')](_0x27cefe),_0xca96e9['set'](_0x50912f('0x25'),_0x40dda1+'-'+_0x5da51f+'/'+_0x1b4436)['json'](_0x2fc536);}return null;};}function saveUpdates(_0x55d94d){return function(_0x5507b3){const _0x366270=a316_0x32b3;if(_0x5507b3)return _0x5507b3[_0x366270('0xa')](_0x55d94d)[_0x366270('0x12')](function(_0x3c40e5){return _0x3c40e5;});return null;};}function removeEntity(_0x421963){return function(_0x2f139e){if(_0x2f139e)return _0x2f139e['destroy']()['then'](function(){const _0x2ab3d1=a316_0x32b3;_0x421963[_0x2ab3d1('0xc')](0xcc)[_0x2ab3d1('0x19')]();});};}function handleEntityNotFound(_0x4623e0){return function(_0x40b0cf){const _0x48a26d=a316_0x32b3;return!_0x40b0cf&&_0x4623e0[_0x48a26d('0x20')](0x194),_0x40b0cf;};}function handleError(_0x382d6c,_0x40a630){return _0x40a630=_0x40a630||0x1f4,function(_0x4b80d3){const _0xdc76a7=a316_0x32b3;logger[_0xdc76a7('0x2d')](_0x4b80d3[_0xdc76a7('0x14')]),_0x4b80d3[_0xdc76a7('0x5')]&&delete _0x4b80d3[_0xdc76a7('0x5')],_0x382d6c['status'](_0x40a630)['send'](_0x4b80d3);};}exports[_0x5b06ce('0x2c')]=function(_0xe9dbce,_0x1d4415){const _0x4eaddd=_0x5b06ce;let _0x515e52={};const _0x43e9d3={},_0x39b89e={'count':0x0,'rows':[]},_0x2a472b=_[_0x4eaddd('0x0')](db[_0x4eaddd('0x13')]['rawAttributes'],function(_0x38f932){const _0x296bba=_0x4eaddd;return{'name':_0x38f932[_0x296bba('0x1f')],'type':_0x38f932[_0x296bba('0x22')][_0x296bba('0x29')]};});_0x43e9d3[_0x4eaddd('0x7')]=_[_0x4eaddd('0x0')](_0x2a472b,_0x4eaddd('0x5')),_0x43e9d3['query']=_['keys'](_0xe9dbce['query']),_0x43e9d3[_0x4eaddd('0x27')]=_['intersection'](_0x43e9d3[_0x4eaddd('0x7')],_0x43e9d3[_0x4eaddd('0x1b')]),_0x515e52[_0x4eaddd('0x11')]=_[_0x4eaddd('0xf')](_0x43e9d3['model'],qs[_0x4eaddd('0x9')](_0xe9dbce[_0x4eaddd('0x1b')][_0x4eaddd('0x9')])),_0x515e52[_0x4eaddd('0x11')]=_0x515e52[_0x4eaddd('0x11')]['length']?_0x515e52[_0x4eaddd('0x11')]:_0x43e9d3[_0x4eaddd('0x7')];typeof _0xe9dbce[_0x4eaddd('0x1b')][_0x4eaddd('0x1e')]===_0x4eaddd('0xe')&&(_0x515e52[_0x4eaddd('0x4')]=qs[_0x4eaddd('0x4')](_0xe9dbce[_0x4eaddd('0x1b')]['limit']),_0x515e52[_0x4eaddd('0x2a')]=qs[_0x4eaddd('0x2a')](_0xe9dbce[_0x4eaddd('0x1b')]['offset']));_0x515e52['order']=qs[_0x4eaddd('0x2b')](_0xe9dbce[_0x4eaddd('0x1b')][_0x4eaddd('0x2b')]),_0x515e52[_0x4eaddd('0x15')]=qs['filters'](_[_0x4eaddd('0x16')](_0xe9dbce['query'],_0x43e9d3['filters']),_0x2a472b);_0xe9dbce[_0x4eaddd('0x1b')]['filter']&&(_0x515e52[_0x4eaddd('0x15')]=_[_0x4eaddd('0x8')](_0x515e52['where'],{[Op['or']]:_[_0x4eaddd('0x0')](_0x2a472b,function(_0x1e2eca){const _0x12c30a=_0x4eaddd;if(_0x1e2eca[_0x12c30a('0x22')]!==_0x12c30a('0x21')){const _0xe9fda3={};return _0xe9fda3[_0x1e2eca[_0x12c30a('0x5')]]={[Op[_0x12c30a('0x1')]]:'%'+_0xe9dbce[_0x12c30a('0x1b')]['filter']+'%'},_0xe9fda3;}})}));_0x515e52=_['merge']({},_0x515e52,_0xe9dbce[_0x4eaddd('0x1d')]);const _0x2eaecb={'where':_0x515e52[_0x4eaddd('0x15')]};return db[_0x4eaddd('0x13')][_0x4eaddd('0xb')](_0x2eaecb)[_0x4eaddd('0x12')](function(_0x641cfa){const _0x5ec796=_0x4eaddd;return _0x39b89e[_0x5ec796('0xb')]=_0x641cfa,_0xe9dbce[_0x5ec796('0x1b')]['includeAll']&&(_0x515e52[_0x5ec796('0x2e')]=[{'all':!![]}]),db[_0x5ec796('0x13')][_0x5ec796('0x30')](_0x515e52);})[_0x4eaddd('0x12')](function(_0xa3872c){const _0x33f179=_0x4eaddd;return _0x39b89e[_0x33f179('0x1a')]=_0xa3872c,_0x39b89e;})[_0x4eaddd('0x12')](respondWithFilteredResult(_0x1d4415,_0x515e52))[_0x4eaddd('0xd')](handleError(_0x1d4415,null));},exports[_0x5b06ce('0x10')]=function(_0x2d946b,_0x38a857){const _0x3e75dc=_0x5b06ce;let _0x26879c={'raw':!![],'where':{'id':_0x2d946b['params']['id']}};const _0x5cb360={};return _0x5cb360[_0x3e75dc('0x7')]=_['keys'](db[_0x3e75dc('0x13')][_0x3e75dc('0x23')]),_0x5cb360['query']=_[_0x3e75dc('0x2')](_0x2d946b[_0x3e75dc('0x1b')]),_0x5cb360[_0x3e75dc('0x27')]=_[_0x3e75dc('0xf')](_0x5cb360[_0x3e75dc('0x7')],_0x5cb360[_0x3e75dc('0x1b')]),_0x26879c[_0x3e75dc('0x11')]=_[_0x3e75dc('0xf')](_0x5cb360[_0x3e75dc('0x7')],qs[_0x3e75dc('0x9')](_0x2d946b[_0x3e75dc('0x1b')][_0x3e75dc('0x9')])),_0x26879c[_0x3e75dc('0x11')]=_0x26879c['attributes'][_0x3e75dc('0x17')]?_0x26879c['attributes']:_0x5cb360['model'],_0x2d946b[_0x3e75dc('0x1b')]['includeAll']&&(_0x26879c[_0x3e75dc('0x2e')]=[{'all':!![]}]),_0x26879c=_[_0x3e75dc('0x8')]({},_0x26879c,_0x2d946b[_0x3e75dc('0x1d')]),db['SugarcrmField'][_0x3e75dc('0x18')](_0x26879c)[_0x3e75dc('0x12')](handleEntityNotFound(_0x38a857,null))[_0x3e75dc('0x12')](respondWithResult(_0x38a857,null))['catch'](handleError(_0x38a857,null));},exports[_0x5b06ce('0x28')]=function(_0x25dcf7,_0x3e5082){const _0x29c064=_0x5b06ce;return db[_0x29c064('0x13')][_0x29c064('0x28')](_0x25dcf7[_0x29c064('0x2f')],{})[_0x29c064('0x12')](respondWithResult(_0x3e5082,0xc9))['catch'](handleError(_0x3e5082,null));},exports[_0x5b06ce('0xa')]=function(_0x5445b2,_0x5f070f){const _0xc3bdfe=_0x5b06ce;return _0x5445b2[_0xc3bdfe('0x2f')]['id']&&delete _0x5445b2[_0xc3bdfe('0x2f')]['id'],db[_0xc3bdfe('0x13')][_0xc3bdfe('0x18')]({'where':{'id':_0x5445b2[_0xc3bdfe('0x26')]['id']}})[_0xc3bdfe('0x12')](handleEntityNotFound(_0x5f070f,null))[_0xc3bdfe('0x12')](saveUpdates(_0x5445b2[_0xc3bdfe('0x2f')],null))['then'](respondWithResult(_0x5f070f,null))['catch'](handleError(_0x5f070f,null));},exports[_0x5b06ce('0x24')]=function(_0x4b4634,_0x55980f){const _0x4580fc=_0x5b06ce;return db[_0x4580fc('0x13')][_0x4580fc('0x18')]({'where':{'id':_0x4b4634[_0x4580fc('0x26')]['id']}})[_0x4580fc('0x12')](handleEntityNotFound(_0x55980f,null))[_0x4580fc('0x12')](removeEntity(_0x55980f,null))[_0x4580fc('0xd')](handleError(_0x55980f,null));}; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.model.js b/server/api/intSugarcrmField/intSugarcrmField.model.js index 4c2d415..d6dc9ee 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.model.js +++ b/server/api/intSugarcrmField/intSugarcrmField.model.js @@ -1 +1 @@ -const a317_0x2e74=['idField','int_sugarcrm_fields','SugarcrmField','FieldId','./intSugarcrmField.attributes'];(function(_0x18e3ec,_0x2e7479){const _0x283924=function(_0x51ba55){while(--_0x51ba55){_0x18e3ec['push'](_0x18e3ec['shift']());}};_0x283924(++_0x2e7479);}(a317_0x2e74,0x1e7));const a317_0x2839=function(_0x18e3ec,_0x2e7479){_0x18e3ec=_0x18e3ec-0x0;let _0x283924=a317_0x2e74[_0x18e3ec];return _0x283924;};const _0x8cbeac=a317_0x2839;'use strict';const attributes=require(_0x8cbeac('0x2'));module['exports']=function(_0x51ba55){const _0x44e641=_0x8cbeac,_0x434ea5=_0x51ba55['define'](_0x44e641('0x0'),attributes,{'tableName':_0x44e641('0x4'),'paranoid':![],'indexes':[{'name':'sugarcrm_unique_index','fields':[_0x44e641('0x3'),_0x44e641('0x1')],'unique':!![]}],'timestamps':!![]});return _0x434ea5;}; \ No newline at end of file +const a317_0x5ae4=['exports','define','./intSugarcrmField.attributes','idField','int_sugarcrm_fields'];(function(_0x1a1030,_0x5ae44e){const _0x2aad50=function(_0x4864c6){while(--_0x4864c6){_0x1a1030['push'](_0x1a1030['shift']());}};_0x2aad50(++_0x5ae44e);}(a317_0x5ae4,0x122));const a317_0x2aad=function(_0x1a1030,_0x5ae44e){_0x1a1030=_0x1a1030-0x0;let _0x2aad50=a317_0x5ae4[_0x1a1030];return _0x2aad50;};const _0x300c21=a317_0x2aad;'use strict';const attributes=require(_0x300c21('0x2'));module[_0x300c21('0x0')]=function(_0x4864c6){const _0x4f87c4=_0x300c21,_0x219a78=_0x4864c6[_0x4f87c4('0x1')]('SugarcrmField',attributes,{'tableName':_0x4f87c4('0x4'),'paranoid':![],'indexes':[{'name':'sugarcrm_unique_index','fields':[_0x4f87c4('0x3'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x219a78;}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/index.js b/server/api/intVtigerAccount/index.js index 147fbf5..5eb8500 100644 --- a/server/api/intVtigerAccount/index.js +++ b/server/api/intVtigerAccount/index.js @@ -1 +1 @@ -const a318_0x373a=['Router','/:id/fields','create','isAuthenticated','/:id','addConfiguration','./intVtigerAccount.controller','put','delete','get','express','post','show','exports','/:id/configurations','index'];(function(_0x4d7606,_0x373ab5){const _0x5da7de=function(_0x349e99){while(--_0x349e99){_0x4d7606['push'](_0x4d7606['shift']());}};_0x5da7de(++_0x373ab5);}(a318_0x373a,0x125));const a318_0x5da7=function(_0x4d7606,_0x373ab5){_0x4d7606=_0x4d7606-0x0;let _0x5da7de=a318_0x373a[_0x4d7606];return _0x5da7de;};const _0x514318=a318_0x5da7;'use strict';const express=require(_0x514318('0x5')),router=express[_0x514318('0xb')](),auth=require('../../components/auth/service'),controller=require(_0x514318('0x1'));router[_0x514318('0x4')]('/',auth[_0x514318('0xe')](),controller[_0x514318('0xa')]),router[_0x514318('0x4')](_0x514318('0xf'),auth[_0x514318('0xe')](),controller[_0x514318('0x7')]),router[_0x514318('0x4')](_0x514318('0x9'),auth['isAuthenticated'](),controller['getConfigurations']),router[_0x514318('0x4')](_0x514318('0xc'),auth['isAuthenticated'](),controller['getFields']),router[_0x514318('0x6')]('/',auth[_0x514318('0xe')](),controller[_0x514318('0xd')]),router[_0x514318('0x6')]('/:id/configurations',auth[_0x514318('0xe')](),controller[_0x514318('0x0')]),router[_0x514318('0x2')](_0x514318('0xf'),auth[_0x514318('0xe')](),controller['update']),router[_0x514318('0x3')](_0x514318('0xf'),auth[_0x514318('0xe')](),controller['destroy']),module[_0x514318('0x8')]=router; \ No newline at end of file +const a318_0x5c81=['post','put','../../components/auth/service','get','index','create','exports','./intVtigerAccount.controller','/:id/fields','Router','show','express','addConfiguration','/:id','isAuthenticated','/:id/configurations','destroy','getFields'];(function(_0x185020,_0x5c81e4){const _0x512003=function(_0x1b891d){while(--_0x1b891d){_0x185020['push'](_0x185020['shift']());}};_0x512003(++_0x5c81e4);}(a318_0x5c81,0x193));const a318_0x5120=function(_0x185020,_0x5c81e4){_0x185020=_0x185020-0x0;let _0x512003=a318_0x5c81[_0x185020];return _0x512003;};const _0x58d865=a318_0x5120;'use strict';const express=require(_0x58d865('0x4')),router=express[_0x58d865('0x2')](),auth=require(_0x58d865('0xd')),controller=require(_0x58d865('0x0'));router[_0x58d865('0xe')]('/',auth[_0x58d865('0x7')](),controller[_0x58d865('0xf')]),router[_0x58d865('0xe')](_0x58d865('0x6'),auth[_0x58d865('0x7')](),controller[_0x58d865('0x3')]),router[_0x58d865('0xe')](_0x58d865('0x8'),auth['isAuthenticated'](),controller['getConfigurations']),router[_0x58d865('0xe')](_0x58d865('0x1'),auth[_0x58d865('0x7')](),controller[_0x58d865('0xa')]),router[_0x58d865('0xb')]('/',auth[_0x58d865('0x7')](),controller[_0x58d865('0x10')]),router[_0x58d865('0xb')](_0x58d865('0x8'),auth['isAuthenticated'](),controller[_0x58d865('0x5')]),router[_0x58d865('0xc')]('/:id',auth[_0x58d865('0x7')](),controller['update']),router['delete'](_0x58d865('0x6'),auth[_0x58d865('0x7')](),controller[_0x58d865('0x9')]),module[_0x58d865('0x11')]=router; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.attributes.js b/server/api/intVtigerAccount/intVtigerAccount.attributes.js index fc82ff2..106e203 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.attributes.js +++ b/server/api/intVtigerAccount/intVtigerAccount.attributes.js @@ -1 +1 @@ -const a319_0xa317=['STRING','HelpDesk','exports'];(function(_0x1800e9,_0xa31783){const _0x5e66c2=function(_0x4e54a4){while(--_0x4e54a4){_0x1800e9['push'](_0x1800e9['shift']());}};_0x5e66c2(++_0xa31783);}(a319_0xa317,0x6c));const a319_0x5e66=function(_0x1800e9,_0xa31783){_0x1800e9=_0x1800e9-0x0;let _0x5e66c2=a319_0xa317[_0x1800e9];return _0x5e66c2;};const _0x14f9fd=a319_0x5e66;'use strict';const Sequelize=require('sequelize');module[_0x14f9fd('0x2')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x14f9fd('0x0')]},'username':{'type':Sequelize[_0x14f9fd('0x0')],'allowNull':![]},'moduleName':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x14f9fd('0x1')},'remoteUri':{'type':Sequelize[_0x14f9fd('0x0')],'allowNull':![]},'serverUrl':{'type':Sequelize[_0x14f9fd('0x0')]},'accessKey':{'type':Sequelize[_0x14f9fd('0x0')],'allowNull':![]}}; \ No newline at end of file +const a319_0x29b1=['HelpDesk','STRING'];(function(_0x5f218f,_0x29b116){const _0x1f7ff3=function(_0x562854){while(--_0x562854){_0x5f218f['push'](_0x5f218f['shift']());}};_0x1f7ff3(++_0x29b116);}(a319_0x29b1,0x160));const a319_0x1f7f=function(_0x5f218f,_0x29b116){_0x5f218f=_0x5f218f-0x0;let _0x1f7ff3=a319_0x29b1[_0x5f218f];return _0x1f7ff3;};const _0x4e363d=a319_0x1f7f;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x4e363d('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0x4e363d('0x1')]},'username':{'type':Sequelize['STRING'],'allowNull':![]},'moduleName':{'type':Sequelize[_0x4e363d('0x1')],'allowNull':![],'defaultValue':_0x4e363d('0x0')},'remoteUri':{'type':Sequelize['STRING'],'allowNull':![]},'serverUrl':{'type':Sequelize[_0x4e363d('0x1')]},'accessKey':{'type':Sequelize[_0x4e363d('0x1')],'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.controller.js b/server/api/intVtigerAccount/intVtigerAccount.controller.js index f02f856..6994f59 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.controller.js +++ b/server/api/intVtigerAccount/intVtigerAccount.controller.js @@ -1 +1 @@ -const a320_0x5ef0=['reference','md5','offset','order','length','attributes','log','then','key','VIRTUAL','limit','getConfigurations','api','VtigerAccount','username','includeAll','catch','stringify','status','format','name','accessKey','picklist','serverUrl','addConfiguration','stack','index','fields','cf_','json','channel','nolimit','false','VtigerConfiguration','end','../../components/parsers/qs','undefined','Content-Range','pick','slice','intersection','vTiger\x20error:\x20','filter','success','substring','owner','sort','show','lodash','map','send','filters','sequelize','rows','error','getDescriptions','getSubjects','getFields,\x20%s,\x20%s,\x20%s','describe','result','getFields','remoteUri','set','sendStatus','label','findOne','remove','AccountId','rawAttributes','fieldName','query','login','include','where','body','../../mysqldb','includes','findAll','Descriptions','update','type','editable','../../components/integrations/configuration','util','create','request-promise-native','model','%s/webservice.php','moduleName','startsWith','Subjects','picklistValues','params','VtigerField','merge','options','token','lastIndexOf','../../config/logger','POST','destroy','keys','test','like','count'];(function(_0x57227b,_0x5ef0f7){const _0x31803e=function(_0x40a7c4){while(--_0x40a7c4){_0x57227b['push'](_0x57227b['shift']());}};_0x31803e(++_0x5ef0f7);}(a320_0x5ef0,0x9d));const a320_0x3180=function(_0x57227b,_0x5ef0f7){_0x57227b=_0x57227b-0x0;let _0x31803e=a320_0x5ef0[_0x57227b];return _0x31803e;};const _0x43c5f9=a320_0x3180;'use strict';const rp=require(_0x43c5f9('0x21')),util=require(_0x43c5f9('0x1f')),_=require(_0x43c5f9('0x65')),qs=require(_0x43c5f9('0x58')),logger=require(_0x43c5f9('0x2e'))(_0x43c5f9('0x41')),db=require(_0x43c5f9('0x17'))['db'],{Op}=require(_0x43c5f9('0x0')),integrations=require(_0x43c5f9('0x1e'));function respondWithResult(_0x40a7c4,_0x2ce1a0){return _0x2ce1a0=_0x2ce1a0||0xc8,function(_0x513f26){const _0x30db53=a320_0x3180;if(_0x513f26)return _0x40a7c4['status'](_0x2ce1a0)[_0x30db53('0x52')](_0x513f26);};}function respondWithFilteredResult(_0x56ab29,_0x282395){return function(_0x428caf){const _0x521ee0=a320_0x3180;if(_0x428caf){const _0x387db2=_0x428caf[_0x521ee0('0x34')],_0x41a16f=_0x282395[_0x521ee0('0x37')];let _0x5fdefb=_0x282395['offset']+_0x282395[_0x521ee0('0x3f')],_0x435c31;return _0x5fdefb>=_0x387db2?(_0x5fdefb=_0x387db2,_0x435c31=0xc8):_0x435c31=0xce,_0x56ab29[_0x521ee0('0x47')](_0x435c31),_0x56ab29[_0x521ee0('0xa')](_0x521ee0('0x5a'),_0x41a16f+'-'+_0x5fdefb+'/'+_0x387db2)[_0x521ee0('0x52')](_0x428caf);}return null;};}function saveUpdates(_0x39f498){return function(_0x3fb005){const _0x55314d=a320_0x3180;if(_0x3fb005)return _0x3fb005[_0x55314d('0x1b')](_0x39f498)['then'](function(_0x2a3cd0){return _0x2a3cd0;});return null;};}function removeEntity(_0x231f6f){return function(_0x532a23){const _0x4d5571=a320_0x3180;if(_0x532a23)return _0x532a23[_0x4d5571('0x30')]()['then'](function(){const _0x3001de=_0x4d5571;_0x231f6f[_0x3001de('0x47')](0xcc)[_0x3001de('0x57')]();});};}function handleEntityNotFound(_0x21567c){return function(_0x3b5b7a){const _0x4212b9=a320_0x3180;return!_0x3b5b7a&&_0x21567c[_0x4212b9('0xb')](0x194),_0x3b5b7a;};}function handleError(_0x2b3f93,_0x2c3a0a){return _0x2c3a0a=_0x2c3a0a||0x1f4,function(_0x793b75){const _0x5974d4=a320_0x3180;logger[_0x5974d4('0x2')](_0x793b75[_0x5974d4('0x4e')]),_0x793b75[_0x5974d4('0x49')]&&delete _0x793b75['name'],_0x2b3f93[_0x5974d4('0x47')](_0x2c3a0a)[_0x5974d4('0x67')](_0x793b75);};}exports[_0x43c5f9('0x4f')]=function(_0x5a9b3a,_0x1ed3e5){const _0x1872a1=_0x43c5f9;let _0x54ec10={};const _0x1d898f={},_0xfce98b={'count':0x0,'rows':[]},_0x7d0370=_[_0x1872a1('0x66')](db[_0x1872a1('0x42')][_0x1872a1('0x10')],function(_0x4172a6){const _0x15b3dd=_0x1872a1;return{'name':_0x4172a6[_0x15b3dd('0x11')],'type':_0x4172a6[_0x15b3dd('0x1c')][_0x15b3dd('0x3d')]};});_0x1d898f[_0x1872a1('0x22')]=_['map'](_0x7d0370,'name'),_0x1d898f[_0x1872a1('0x12')]=_[_0x1872a1('0x31')](_0x5a9b3a[_0x1872a1('0x12')]),_0x1d898f[_0x1872a1('0x68')]=_[_0x1872a1('0x5d')](_0x1d898f['model'],_0x1d898f[_0x1872a1('0x12')]),_0x54ec10[_0x1872a1('0x3a')]=_[_0x1872a1('0x5d')](_0x1d898f[_0x1872a1('0x22')],qs[_0x1872a1('0x50')](_0x5a9b3a[_0x1872a1('0x12')][_0x1872a1('0x50')])),_0x54ec10[_0x1872a1('0x3a')]=_0x54ec10[_0x1872a1('0x3a')]['length']?_0x54ec10[_0x1872a1('0x3a')]:_0x1d898f[_0x1872a1('0x22')];typeof _0x5a9b3a['query'][_0x1872a1('0x54')]===_0x1872a1('0x59')&&(_0x54ec10[_0x1872a1('0x3f')]=qs[_0x1872a1('0x3f')](_0x5a9b3a['query'][_0x1872a1('0x3f')]),_0x54ec10[_0x1872a1('0x37')]=qs[_0x1872a1('0x37')](_0x5a9b3a[_0x1872a1('0x12')]['offset']));_0x54ec10[_0x1872a1('0x38')]=qs['sort'](_0x5a9b3a[_0x1872a1('0x12')][_0x1872a1('0x63')]),_0x54ec10[_0x1872a1('0x15')]=qs[_0x1872a1('0x68')](_[_0x1872a1('0x5b')](_0x5a9b3a[_0x1872a1('0x12')],_0x1d898f[_0x1872a1('0x68')]),_0x7d0370);_0x5a9b3a[_0x1872a1('0x12')]['filter']&&(_0x54ec10[_0x1872a1('0x15')]=_['merge'](_0x54ec10[_0x1872a1('0x15')],{[Op['or']]:_[_0x1872a1('0x66')](_0x7d0370,function(_0x33fe52){const _0x2aacb7=_0x1872a1;if(_0x33fe52[_0x2aacb7('0x1c')]!==_0x2aacb7('0x3e')){const _0x2041b4={};return _0x2041b4[_0x33fe52['name']]={[Op[_0x2aacb7('0x33')]]:'%'+_0x5a9b3a[_0x2aacb7('0x12')][_0x2aacb7('0x5f')]+'%'},_0x2041b4;}})}));_0x54ec10=_[_0x1872a1('0x2a')]({},_0x54ec10,_0x5a9b3a['options']);const _0x32abe7={'where':_0x54ec10[_0x1872a1('0x15')]};return db[_0x1872a1('0x42')][_0x1872a1('0x34')](_0x32abe7)[_0x1872a1('0x3c')](function(_0x3f4e57){const _0x2cbed1=_0x1872a1;return _0xfce98b[_0x2cbed1('0x34')]=_0x3f4e57,_0x5a9b3a['query'][_0x2cbed1('0x44')]&&(_0x54ec10[_0x2cbed1('0x14')]=[{'all':!![]}]),db[_0x2cbed1('0x42')][_0x2cbed1('0x19')](_0x54ec10);})[_0x1872a1('0x3c')](function(_0x385f19){const _0x23debb=_0x1872a1;return _0xfce98b[_0x23debb('0x1')]=_0x385f19,_0xfce98b;})[_0x1872a1('0x3c')](respondWithFilteredResult(_0x1ed3e5,_0x54ec10))['catch'](handleError(_0x1ed3e5,null));},exports[_0x43c5f9('0x64')]=function(_0x327363,_0x1ffac3){const _0x17702b=_0x43c5f9;let _0xe17992={'raw':![],'where':{'id':_0x327363['params']['id']}};const _0x105f1d={};return _0x105f1d['model']=_[_0x17702b('0x31')](db[_0x17702b('0x42')]['rawAttributes']),_0x105f1d[_0x17702b('0x12')]=_['keys'](_0x327363[_0x17702b('0x12')]),_0x105f1d[_0x17702b('0x68')]=_[_0x17702b('0x5d')](_0x105f1d['model'],_0x105f1d[_0x17702b('0x12')]),_0xe17992[_0x17702b('0x3a')]=_[_0x17702b('0x5d')](_0x105f1d[_0x17702b('0x22')],qs[_0x17702b('0x50')](_0x327363['query'][_0x17702b('0x50')])),_0xe17992[_0x17702b('0x3a')]=_0xe17992[_0x17702b('0x3a')][_0x17702b('0x39')]?_0xe17992[_0x17702b('0x3a')]:_0x105f1d['model'],_0x327363[_0x17702b('0x12')][_0x17702b('0x44')]&&(_0xe17992[_0x17702b('0x14')]=[{'all':!![]}]),_0xe17992=_[_0x17702b('0x2a')]({},_0xe17992,_0x327363[_0x17702b('0x2b')]),db['VtigerAccount'][_0x17702b('0xd')](_0xe17992)[_0x17702b('0x3c')](handleEntityNotFound(_0x1ffac3,null))[_0x17702b('0x3c')](respondWithResult(_0x1ffac3,null))[_0x17702b('0x45')](handleError(_0x1ffac3,null));},exports[_0x43c5f9('0x20')]=function(_0x3c636a,_0x5ba8cb){const _0x4414aa=_0x43c5f9;return db[_0x4414aa('0x42')]['create'](_0x3c636a[_0x4414aa('0x16')],{})[_0x4414aa('0x3c')](respondWithResult(_0x5ba8cb,0xc9))['catch'](handleError(_0x5ba8cb,null));},exports[_0x43c5f9('0x1b')]=function(_0x2bd7f5,_0x4bb2d7){const _0x594409=_0x43c5f9;return _0x2bd7f5['body']['id']&&delete _0x2bd7f5['body']['id'],db[_0x594409('0x42')][_0x594409('0xd')]({'where':{'id':_0x2bd7f5[_0x594409('0x28')]['id']}})[_0x594409('0x3c')](handleEntityNotFound(_0x4bb2d7,null))[_0x594409('0x3c')](saveUpdates(_0x2bd7f5[_0x594409('0x16')],null))[_0x594409('0x3c')](respondWithResult(_0x4bb2d7,null))[_0x594409('0x45')](handleError(_0x4bb2d7,null));},exports[_0x43c5f9('0x30')]=function(_0x33f763,_0x3fac4b){const _0x4c315c=_0x43c5f9;return db[_0x4c315c('0x42')][_0x4c315c('0xd')]({'where':{'id':_0x33f763[_0x4c315c('0x28')]['id']}})[_0x4c315c('0x3c')](handleEntityNotFound(_0x3fac4b,null))[_0x4c315c('0x3c')](removeEntity(_0x3fac4b,null))[_0x4c315c('0x45')](handleError(_0x3fac4b,null));},exports['getConfigurations']=function(_0x2754b4,_0x5846b8){const _0x54fa4b=_0x43c5f9;let _0x390e95={};const _0x2997ef={};let _0x649de1,_0x3636b8;return db['VtigerAccount'][_0x54fa4b('0xd')]({'where':{'id':_0x2754b4[_0x54fa4b('0x28')]['id']}})['then'](handleEntityNotFound(_0x5846b8,null))[_0x54fa4b('0x3c')](function(_0x25221b){const _0xecb5b2=_0x54fa4b;if(_0x25221b)return _0x649de1=_0x25221b,_0x2997ef[_0xecb5b2('0x22')]=_['keys'](db[_0xecb5b2('0x56')][_0xecb5b2('0x10')]),_0x2997ef[_0xecb5b2('0x12')]=_['keys'](_0x2754b4[_0xecb5b2('0x12')]),_0x2997ef['filters']=_[_0xecb5b2('0x5d')](_0x2997ef[_0xecb5b2('0x22')],_0x2997ef[_0xecb5b2('0x12')]),_0x390e95[_0xecb5b2('0x3a')]=_[_0xecb5b2('0x5d')](_0x2997ef[_0xecb5b2('0x22')],qs[_0xecb5b2('0x50')](_0x2754b4[_0xecb5b2('0x12')][_0xecb5b2('0x50')])),_0x390e95['attributes']=_0x390e95[_0xecb5b2('0x3a')]['length']?_0x390e95[_0xecb5b2('0x3a')]:_0x2997ef[_0xecb5b2('0x22')],_0x390e95[_0xecb5b2('0x38')]=qs[_0xecb5b2('0x63')](_0x2754b4[_0xecb5b2('0x12')][_0xecb5b2('0x63')]),_0x390e95[_0xecb5b2('0x15')]=qs['filters'](_[_0xecb5b2('0x5b')](_0x2754b4[_0xecb5b2('0x12')],_0x2997ef['filters'])),_0x2754b4[_0xecb5b2('0x12')][_0xecb5b2('0x5f')]&&(_0x390e95[_0xecb5b2('0x15')]=_[_0xecb5b2('0x2a')](_0x390e95['where'],{[Op['or']]:_[_0xecb5b2('0x66')](_0x390e95[_0xecb5b2('0x3a')],function(_0x2589cb){const _0x29b93c=_0xecb5b2,_0x522ea9={};return _0x522ea9[_0x2589cb]={[Op['like']]:'%'+_0x2754b4[_0x29b93c('0x12')][_0x29b93c('0x5f')]+'%'},_0x522ea9;})})),_0x390e95=_[_0xecb5b2('0x2a')]({},_0x390e95,_0x2754b4['options']),_0x649de1['getConfigurations'](_0x390e95);})[_0x54fa4b('0x3c')](function(_0x5d8f33){const _0x35db06=_0x54fa4b;if(_0x5d8f33)return _0x3636b8=_0x5d8f33[_0x35db06('0x39')],typeof _0x2754b4[_0x35db06('0x12')]['nolimit']==='undefined'&&(_0x390e95[_0x35db06('0x3f')]=qs[_0x35db06('0x3f')](_0x2754b4[_0x35db06('0x12')]['limit']),_0x390e95[_0x35db06('0x37')]=qs[_0x35db06('0x37')](_0x2754b4[_0x35db06('0x12')][_0x35db06('0x37')])),_0x649de1[_0x35db06('0x40')](_0x390e95);})['then'](function(_0x47eb01){if(_0x47eb01)return _0x47eb01?{'count':_0x3636b8,'rows':_0x47eb01}:null;})['then'](respondWithResult(_0x5846b8,null))[_0x54fa4b('0x45')](handleError(_0x5846b8,null));},exports[_0x43c5f9('0x4d')]=function(_0x1dc5f7,_0xf25217){const _0x5f53cb=_0x43c5f9;return _0x1dc5f7['body']['id']&&delete _0x1dc5f7[_0x5f53cb('0x16')]['id'],db['VtigerAccount'][_0x5f53cb('0xd')]({'where':{'id':_0x1dc5f7[_0x5f53cb('0x28')]['id']}})[_0x5f53cb('0x3c')](handleEntityNotFound(_0xf25217,null))[_0x5f53cb('0x3c')](function(_0x4b30f5){const _0x5bc706=_0x5f53cb;if(_0x4b30f5)return _0x1dc5f7[_0x5bc706('0x16')][_0x5bc706('0xf')]=_0x4b30f5['id'],_0x1dc5f7['body'][_0x5bc706('0x26')]=integrations[_0x5bc706('0x4')](_0x1dc5f7['body'][_0x5bc706('0x53')],_0x1dc5f7['body']['type']),_0x1dc5f7[_0x5bc706('0x16')]['Descriptions']=integrations[_0x5bc706('0x3')](_0x1dc5f7['body'][_0x5bc706('0x53')],_0x1dc5f7['body']['type']),db[_0x5bc706('0x56')][_0x5bc706('0x20')](_0x1dc5f7[_0x5bc706('0x16')],{'include':[{'model':db[_0x5bc706('0x29')],'as':'Subjects'},{'model':db[_0x5bc706('0x29')],'as':_0x5bc706('0x1a')}]});return null;})[_0x5f53cb('0x3c')](respondWithResult(_0xf25217,null))['catch'](handleError(_0xf25217,null));};const md5=require(_0x43c5f9('0x36'));exports[_0x43c5f9('0x8')]=function(_0x18fb19,_0xd324b1){const _0x13be79=_0x43c5f9;let _0x2527c7=null,_0x45da44=null,_0x49541e=null,_0xe93468=null,_0xbdf437='';return db['VtigerAccount'][_0x13be79('0xd')]({'where':{'id':_0x18fb19['params']['id']},'attributes':['id',_0x13be79('0x49'),_0x13be79('0x43'),'description',_0x13be79('0x24'),_0x13be79('0x9'),_0x13be79('0x4c'),'accessKey']})[_0x13be79('0x3c')](handleEntityNotFound(_0xd324b1,null))[_0x13be79('0x3c')](function(_0x27ef81){const _0x75a1a=_0x13be79;if(_0x27ef81){_0x2527c7=_0x27ef81['username'],_0x45da44=_0x27ef81[_0x75a1a('0x4a')],_0x49541e=_0x27ef81[_0x75a1a('0x24')],_0xbdf437=_0x27ef81[_0x75a1a('0x9')];const _0x11d954=_0xbdf437[_0x75a1a('0x5c')](-0x1);_0x11d954==='/'&&(_0xbdf437=_0xbdf437[_0x75a1a('0x61')](0x0,_0xbdf437[_0x75a1a('0x2d')](_0x11d954)));_0xe93468=util[_0x75a1a('0x48')](_0x75a1a('0x23'),_0xbdf437);const _0x5aa8ff={'method':'GET','uri':_0xe93468,'qs':{'operation':'getchallenge','username':_0x27ef81[_0x75a1a('0x43')]},'json':!![]};return rp(_0x5aa8ff);}})[_0x13be79('0x3c')](function(_0x56729d){const _0x4b7205=_0x13be79;if(_0x56729d['success']){const _0x27c0f3={'method':_0x4b7205('0x2f'),'uri':_0xe93468,'form':{'operation':_0x4b7205('0x13'),'username':_0x2527c7,'accessKey':md5(_0x56729d['result'][_0x4b7205('0x2c')]+_0x45da44)},'json':!![]};return rp(_0x27c0f3);}})[_0x13be79('0x3c')](function(_0x199e64){const _0x187140=_0x13be79;if(_0x199e64[_0x187140('0x60')]){const _0x2c27d1={'method':'GET','uri':_0xe93468,'qs':{'operation':_0x187140('0x6'),'username':_0x2527c7,'sessionName':_0x199e64['result']['sessionName'],'elementType':_0x49541e},'json':!![]};return rp(_0x2c27d1);}})[_0x13be79('0x3c')](function(_0x3d4669){const _0x4fcab5=_0x13be79;if(_0x3d4669[_0x4fcab5('0x60')]){const _0xb2314=['autogenerated',_0x4fcab5('0x35'),_0x4fcab5('0x62')];return _[_0x4fcab5('0xe')](_0x3d4669['result']['fields'],function(_0x3de274){const _0x1368fe=_0x4fcab5;return _0xb2314[_0x1368fe('0x18')](_0x3de274[_0x1368fe('0x1c')]['name']);}),_[_0x4fcab5('0xe')](_0x3d4669[_0x4fcab5('0x7')][_0x4fcab5('0x50')],function(_0x198467){const _0x69df7c=_0x4fcab5;return _0x198467[_0x69df7c('0x1d')]===_0x69df7c('0x55');}),{'count':_0x3d4669['result']['fields'][_0x4fcab5('0x39')],'rows':_['map'](_0x3d4669[_0x4fcab5('0x7')][_0x4fcab5('0x50')],function(_0xaf9f0){const _0x255a8d=_0x4fcab5;return{'id':_0xaf9f0[_0x255a8d('0x49')],'name':_0xaf9f0['label'],'custom':_[_0x255a8d('0x25')](_0xaf9f0[_0x255a8d('0x49')],_0x255a8d('0x51'))?!![]:![],'options':_0xaf9f0[_0x255a8d('0x1c')]['name']===_0x255a8d('0x4b')&&_0xaf9f0[_0x255a8d('0x1c')][_0x255a8d('0x27')][_0x255a8d('0x39')]>0x0?_[_0x255a8d('0x66')](_0xaf9f0[_0x255a8d('0x1c')]['picklistValues'],function(_0x19435d){const _0x128cc8=_0x255a8d;return{'name':_0x19435d[_0x128cc8('0xc')],'value':_0x19435d['value']};}):[]};})};}})['then'](respondWithResult(_0xd324b1,null))[_0x13be79('0x45')](function(_0x352c0d){const _0x336c7b=_0x13be79;console[_0x336c7b('0x3b')](_0x336c7b('0x5e')+_0x352c0d);let _0x12ad38=_0x18fb19[_0x336c7b('0x12')][_0x336c7b('0x32')]?0x1f4:_0x352c0d['statusCode']||0x1f4;logger[_0x336c7b('0x2')](_0x336c7b('0x5'),_0x336c7b('0x8'),_0x12ad38,JSON[_0x336c7b('0x46')](_0x352c0d)),delete _0x352c0d[_0x336c7b('0x49')],_0x12ad38===0x191&&(_0x12ad38=0x190),_0xd324b1[_0x336c7b('0x47')](_0x12ad38)[_0x336c7b('0x67')](_0x18fb19[_0x336c7b('0x12')]['test']?{'message':'Wrong\x20credentials','statusCode':_0x352c0d['statusCode']}:_0x352c0d);});}; \ No newline at end of file +const a320_0x44f8=['value','remove','getConfigurations','create','body','substring','set','owner','map','sessionName','filter','autogenerated','POST','findOne','request-promise-native','pick','sequelize','name','accessKey','editable','sort','serverUrl','addConfiguration','key','../../mysqldb','describe','fields','rows','model','picklistValues','AccountId','update','username','where','filters','rawAttributes','fieldName','order','slice','end','util','../../components/parsers/qs','result','reference','includes','nolimit','then','Content-Range','label','length','VtigerConfiguration','keys','include','merge','lastIndexOf','json','destroy','success','show','moduleName','params','like','error','offset','api','stringify','cf_','includeAll','sendStatus','limit','send','format','count','VtigerField','picklist','%s/webservice.php','VIRTUAL','catch','log','findAll','attributes','options','Subjects','lodash','../../config/logger','login','VtigerAccount','vTiger\x20error:\x20','intersection','Descriptions','Wrong\x20credentials','GET','query','type','statusCode','channel','token','status'];(function(_0x11f24f,_0x44f8cc){const _0x4ce82e=function(_0x50d79c){while(--_0x50d79c){_0x11f24f['push'](_0x11f24f['shift']());}};_0x4ce82e(++_0x44f8cc);}(a320_0x44f8,0xe3));const a320_0x4ce8=function(_0x11f24f,_0x44f8cc){_0x11f24f=_0x11f24f-0x0;let _0x4ce82e=a320_0x44f8[_0x11f24f];return _0x4ce82e;};const _0x303cf6=a320_0x4ce8;'use strict';const rp=require(_0x303cf6('0x51')),util=require(_0x303cf6('0x9')),_=require(_0x303cf6('0x34')),qs=require(_0x303cf6('0xa')),logger=require(_0x303cf6('0x35'))(_0x303cf6('0x21')),db=require(_0x303cf6('0x5b'))['db'],{Op}=require(_0x303cf6('0x53')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x50d79c,_0x3072a0){return _0x3072a0=_0x3072a0||0xc8,function(_0x32f3c6){const _0x5c1a9d=a320_0x4ce8;if(_0x32f3c6)return _0x50d79c[_0x5c1a9d('0x42')](_0x3072a0)[_0x5c1a9d('0x18')](_0x32f3c6);};}function respondWithFilteredResult(_0xd95893,_0x26b8fc){return function(_0x5dd71c){const _0x4a74b8=a320_0x4ce8;if(_0x5dd71c){const _0x270912=_0x5dd71c[_0x4a74b8('0x29')],_0x172559=_0x26b8fc[_0x4a74b8('0x20')];let _0x379929=_0x26b8fc[_0x4a74b8('0x20')]+_0x26b8fc[_0x4a74b8('0x26')],_0x2712ae;return _0x379929>=_0x270912?(_0x379929=_0x270912,_0x2712ae=0xc8):_0x2712ae=0xce,_0xd95893['status'](_0x2712ae),_0xd95893[_0x4a74b8('0x49')](_0x4a74b8('0x10'),_0x172559+'-'+_0x379929+'/'+_0x270912)['json'](_0x5dd71c);}return null;};}function saveUpdates(_0x3b6149){return function(_0x1b5c8b){const _0x15d6ff=a320_0x4ce8;if(_0x1b5c8b)return _0x1b5c8b[_0x15d6ff('0x0')](_0x3b6149)['then'](function(_0xcf9f96){return _0xcf9f96;});return null;};}function removeEntity(_0x5052ec){return function(_0x45806f){const _0x22b901=a320_0x4ce8;if(_0x45806f)return _0x45806f[_0x22b901('0x19')]()['then'](function(){const _0x5f13da=_0x22b901;_0x5052ec[_0x5f13da('0x42')](0xcc)[_0x5f13da('0x8')]();});};}function handleEntityNotFound(_0x4096c1){return function(_0x4ffcf0){const _0x2a4806=a320_0x4ce8;return!_0x4ffcf0&&_0x4096c1[_0x2a4806('0x25')](0x194),_0x4ffcf0;};}function handleError(_0xdf3b4f,_0x1fbe89){return _0x1fbe89=_0x1fbe89||0x1f4,function(_0x1ebd2c){const _0x52bdd3=a320_0x4ce8;logger[_0x52bdd3('0x1f')](_0x1ebd2c['stack']),_0x1ebd2c[_0x52bdd3('0x54')]&&delete _0x1ebd2c[_0x52bdd3('0x54')],_0xdf3b4f[_0x52bdd3('0x42')](_0x1fbe89)['send'](_0x1ebd2c);};}exports['index']=function(_0x4b14df,_0xbfc0f2){const _0x3ff96e=_0x303cf6;let _0x42cf84={};const _0x27e15c={},_0x34794e={'count':0x0,'rows':[]},_0x23535e=_[_0x3ff96e('0x4b')](db[_0x3ff96e('0x37')]['rawAttributes'],function(_0x4acf43){const _0x58a458=_0x3ff96e;return{'name':_0x4acf43[_0x58a458('0x5')],'type':_0x4acf43['type'][_0x58a458('0x5a')]};});_0x27e15c[_0x3ff96e('0x5f')]=_[_0x3ff96e('0x4b')](_0x23535e,_0x3ff96e('0x54')),_0x27e15c['query']=_[_0x3ff96e('0x14')](_0x4b14df['query']),_0x27e15c[_0x3ff96e('0x3')]=_[_0x3ff96e('0x39')](_0x27e15c[_0x3ff96e('0x5f')],_0x27e15c[_0x3ff96e('0x3d')]),_0x42cf84['attributes']=_['intersection'](_0x27e15c[_0x3ff96e('0x5f')],qs[_0x3ff96e('0x5d')](_0x4b14df['query'][_0x3ff96e('0x5d')])),_0x42cf84[_0x3ff96e('0x31')]=_0x42cf84[_0x3ff96e('0x31')]['length']?_0x42cf84[_0x3ff96e('0x31')]:_0x27e15c['model'];typeof _0x4b14df[_0x3ff96e('0x3d')][_0x3ff96e('0xe')]==='undefined'&&(_0x42cf84[_0x3ff96e('0x26')]=qs[_0x3ff96e('0x26')](_0x4b14df[_0x3ff96e('0x3d')]['limit']),_0x42cf84[_0x3ff96e('0x20')]=qs[_0x3ff96e('0x20')](_0x4b14df[_0x3ff96e('0x3d')][_0x3ff96e('0x20')]));_0x42cf84[_0x3ff96e('0x6')]=qs[_0x3ff96e('0x57')](_0x4b14df[_0x3ff96e('0x3d')][_0x3ff96e('0x57')]),_0x42cf84[_0x3ff96e('0x2')]=qs['filters'](_[_0x3ff96e('0x52')](_0x4b14df['query'],_0x27e15c['filters']),_0x23535e);_0x4b14df[_0x3ff96e('0x3d')]['filter']&&(_0x42cf84[_0x3ff96e('0x2')]=_[_0x3ff96e('0x16')](_0x42cf84['where'],{[Op['or']]:_[_0x3ff96e('0x4b')](_0x23535e,function(_0x1f42e7){const _0x37febb=_0x3ff96e;if(_0x1f42e7[_0x37febb('0x3e')]!==_0x37febb('0x2d')){const _0x174666={};return _0x174666[_0x1f42e7[_0x37febb('0x54')]]={[Op[_0x37febb('0x1e')]]:'%'+_0x4b14df[_0x37febb('0x3d')][_0x37febb('0x4d')]+'%'},_0x174666;}})}));_0x42cf84=_[_0x3ff96e('0x16')]({},_0x42cf84,_0x4b14df['options']);const _0x2474da={'where':_0x42cf84['where']};return db['VtigerAccount'][_0x3ff96e('0x29')](_0x2474da)['then'](function(_0x32ee59){const _0xf326af=_0x3ff96e;return _0x34794e['count']=_0x32ee59,_0x4b14df[_0xf326af('0x3d')][_0xf326af('0x24')]&&(_0x42cf84[_0xf326af('0x15')]=[{'all':!![]}]),db[_0xf326af('0x37')][_0xf326af('0x30')](_0x42cf84);})[_0x3ff96e('0xf')](function(_0x29c1ce){const _0x45b00e=_0x3ff96e;return _0x34794e[_0x45b00e('0x5e')]=_0x29c1ce,_0x34794e;})[_0x3ff96e('0xf')](respondWithFilteredResult(_0xbfc0f2,_0x42cf84))[_0x3ff96e('0x2e')](handleError(_0xbfc0f2,null));},exports[_0x303cf6('0x1b')]=function(_0x55b8ec,_0x2a7b5c){const _0x561f24=_0x303cf6;let _0x1c15bc={'raw':![],'where':{'id':_0x55b8ec['params']['id']}};const _0x22ea03={};return _0x22ea03['model']=_[_0x561f24('0x14')](db['VtigerAccount'][_0x561f24('0x4')]),_0x22ea03[_0x561f24('0x3d')]=_[_0x561f24('0x14')](_0x55b8ec[_0x561f24('0x3d')]),_0x22ea03[_0x561f24('0x3')]=_['intersection'](_0x22ea03[_0x561f24('0x5f')],_0x22ea03[_0x561f24('0x3d')]),_0x1c15bc[_0x561f24('0x31')]=_[_0x561f24('0x39')](_0x22ea03[_0x561f24('0x5f')],qs['fields'](_0x55b8ec['query']['fields'])),_0x1c15bc[_0x561f24('0x31')]=_0x1c15bc[_0x561f24('0x31')]['length']?_0x1c15bc[_0x561f24('0x31')]:_0x22ea03[_0x561f24('0x5f')],_0x55b8ec[_0x561f24('0x3d')][_0x561f24('0x24')]&&(_0x1c15bc['include']=[{'all':!![]}]),_0x1c15bc=_[_0x561f24('0x16')]({},_0x1c15bc,_0x55b8ec[_0x561f24('0x32')]),db[_0x561f24('0x37')][_0x561f24('0x50')](_0x1c15bc)[_0x561f24('0xf')](handleEntityNotFound(_0x2a7b5c,null))['then'](respondWithResult(_0x2a7b5c,null))[_0x561f24('0x2e')](handleError(_0x2a7b5c,null));},exports[_0x303cf6('0x46')]=function(_0x8c2627,_0x2351e6){const _0xedf1d2=_0x303cf6;return db['VtigerAccount']['create'](_0x8c2627[_0xedf1d2('0x47')],{})[_0xedf1d2('0xf')](respondWithResult(_0x2351e6,0xc9))[_0xedf1d2('0x2e')](handleError(_0x2351e6,null));},exports['update']=function(_0x40dbd7,_0x594998){const _0x437eac=_0x303cf6;return _0x40dbd7[_0x437eac('0x47')]['id']&&delete _0x40dbd7[_0x437eac('0x47')]['id'],db[_0x437eac('0x37')][_0x437eac('0x50')]({'where':{'id':_0x40dbd7[_0x437eac('0x1d')]['id']}})['then'](handleEntityNotFound(_0x594998,null))['then'](saveUpdates(_0x40dbd7[_0x437eac('0x47')],null))['then'](respondWithResult(_0x594998,null))[_0x437eac('0x2e')](handleError(_0x594998,null));},exports[_0x303cf6('0x19')]=function(_0x1e576d,_0x5bfa25){const _0x192b46=_0x303cf6;return db[_0x192b46('0x37')]['findOne']({'where':{'id':_0x1e576d[_0x192b46('0x1d')]['id']}})[_0x192b46('0xf')](handleEntityNotFound(_0x5bfa25,null))[_0x192b46('0xf')](removeEntity(_0x5bfa25,null))[_0x192b46('0x2e')](handleError(_0x5bfa25,null));},exports['getConfigurations']=function(_0x4d7b5b,_0x2f7fe7){const _0x37c276=_0x303cf6;let _0x5c8e7b={};const _0x4606b2={};let _0x19c2bc,_0x30fe16;return db[_0x37c276('0x37')][_0x37c276('0x50')]({'where':{'id':_0x4d7b5b[_0x37c276('0x1d')]['id']}})[_0x37c276('0xf')](handleEntityNotFound(_0x2f7fe7,null))[_0x37c276('0xf')](function(_0xb9017f){const _0xf269c2=_0x37c276;if(_0xb9017f)return _0x19c2bc=_0xb9017f,_0x4606b2[_0xf269c2('0x5f')]=_['keys'](db[_0xf269c2('0x13')][_0xf269c2('0x4')]),_0x4606b2[_0xf269c2('0x3d')]=_[_0xf269c2('0x14')](_0x4d7b5b[_0xf269c2('0x3d')]),_0x4606b2[_0xf269c2('0x3')]=_[_0xf269c2('0x39')](_0x4606b2['model'],_0x4606b2['query']),_0x5c8e7b[_0xf269c2('0x31')]=_['intersection'](_0x4606b2[_0xf269c2('0x5f')],qs['fields'](_0x4d7b5b[_0xf269c2('0x3d')][_0xf269c2('0x5d')])),_0x5c8e7b[_0xf269c2('0x31')]=_0x5c8e7b['attributes'][_0xf269c2('0x12')]?_0x5c8e7b[_0xf269c2('0x31')]:_0x4606b2[_0xf269c2('0x5f')],_0x5c8e7b[_0xf269c2('0x6')]=qs['sort'](_0x4d7b5b['query'][_0xf269c2('0x57')]),_0x5c8e7b[_0xf269c2('0x2')]=qs[_0xf269c2('0x3')](_['pick'](_0x4d7b5b[_0xf269c2('0x3d')],_0x4606b2[_0xf269c2('0x3')])),_0x4d7b5b['query'][_0xf269c2('0x4d')]&&(_0x5c8e7b['where']=_[_0xf269c2('0x16')](_0x5c8e7b[_0xf269c2('0x2')],{[Op['or']]:_[_0xf269c2('0x4b')](_0x5c8e7b[_0xf269c2('0x31')],function(_0x3cbd77){const _0x178fbf=_0xf269c2,_0x13790e={};return _0x13790e[_0x3cbd77]={[Op[_0x178fbf('0x1e')]]:'%'+_0x4d7b5b['query'][_0x178fbf('0x4d')]+'%'},_0x13790e;})})),_0x5c8e7b=_['merge']({},_0x5c8e7b,_0x4d7b5b[_0xf269c2('0x32')]),_0x19c2bc[_0xf269c2('0x45')](_0x5c8e7b);})[_0x37c276('0xf')](function(_0x422599){const _0x1b71f3=_0x37c276;if(_0x422599)return _0x30fe16=_0x422599[_0x1b71f3('0x12')],typeof _0x4d7b5b['query'][_0x1b71f3('0xe')]==='undefined'&&(_0x5c8e7b[_0x1b71f3('0x26')]=qs[_0x1b71f3('0x26')](_0x4d7b5b['query'][_0x1b71f3('0x26')]),_0x5c8e7b[_0x1b71f3('0x20')]=qs[_0x1b71f3('0x20')](_0x4d7b5b[_0x1b71f3('0x3d')][_0x1b71f3('0x20')])),_0x19c2bc['getConfigurations'](_0x5c8e7b);})['then'](function(_0xe02043){if(_0xe02043)return _0xe02043?{'count':_0x30fe16,'rows':_0xe02043}:null;})[_0x37c276('0xf')](respondWithResult(_0x2f7fe7,null))[_0x37c276('0x2e')](handleError(_0x2f7fe7,null));},exports[_0x303cf6('0x59')]=function(_0x106c2,_0x366b96){const _0x13acb4=_0x303cf6;return _0x106c2[_0x13acb4('0x47')]['id']&&delete _0x106c2[_0x13acb4('0x47')]['id'],db[_0x13acb4('0x37')][_0x13acb4('0x50')]({'where':{'id':_0x106c2['params']['id']}})[_0x13acb4('0xf')](handleEntityNotFound(_0x366b96,null))[_0x13acb4('0xf')](function(_0x441e9d){const _0x4abb7d=_0x13acb4;if(_0x441e9d)return _0x106c2[_0x4abb7d('0x47')][_0x4abb7d('0x61')]=_0x441e9d['id'],_0x106c2[_0x4abb7d('0x47')][_0x4abb7d('0x33')]=integrations['getSubjects'](_0x106c2[_0x4abb7d('0x47')][_0x4abb7d('0x40')],_0x106c2[_0x4abb7d('0x47')][_0x4abb7d('0x3e')]),_0x106c2[_0x4abb7d('0x47')][_0x4abb7d('0x3a')]=integrations['getDescriptions'](_0x106c2['body'][_0x4abb7d('0x40')],_0x106c2['body']['type']),db[_0x4abb7d('0x13')][_0x4abb7d('0x46')](_0x106c2[_0x4abb7d('0x47')],{'include':[{'model':db['VtigerField'],'as':_0x4abb7d('0x33')},{'model':db[_0x4abb7d('0x2a')],'as':_0x4abb7d('0x3a')}]});return null;})[_0x13acb4('0xf')](respondWithResult(_0x366b96,null))[_0x13acb4('0x2e')](handleError(_0x366b96,null));};const md5=require('md5');exports['getFields']=function(_0x1c3ba8,_0x16e846){const _0xf2cbb0=_0x303cf6;let _0x2b618a=null,_0x11f5bb=null,_0x17b009=null,_0xf85b9=null,_0x152637='';return db[_0xf2cbb0('0x37')][_0xf2cbb0('0x50')]({'where':{'id':_0x1c3ba8['params']['id']},'attributes':['id',_0xf2cbb0('0x54'),_0xf2cbb0('0x1'),'description',_0xf2cbb0('0x1c'),'remoteUri',_0xf2cbb0('0x58'),_0xf2cbb0('0x55')]})[_0xf2cbb0('0xf')](handleEntityNotFound(_0x16e846,null))[_0xf2cbb0('0xf')](function(_0x5d004e){const _0x16c3ca=_0xf2cbb0;if(_0x5d004e){_0x2b618a=_0x5d004e[_0x16c3ca('0x1')],_0x11f5bb=_0x5d004e[_0x16c3ca('0x55')],_0x17b009=_0x5d004e['moduleName'],_0x152637=_0x5d004e['remoteUri'];const _0x4689c4=_0x152637[_0x16c3ca('0x7')](-0x1);_0x4689c4==='/'&&(_0x152637=_0x152637[_0x16c3ca('0x48')](0x0,_0x152637[_0x16c3ca('0x17')](_0x4689c4)));_0xf85b9=util[_0x16c3ca('0x28')](_0x16c3ca('0x2c'),_0x152637);const _0x23ef5e={'method':_0x16c3ca('0x3c'),'uri':_0xf85b9,'qs':{'operation':'getchallenge','username':_0x5d004e['username']},'json':!![]};return rp(_0x23ef5e);}})['then'](function(_0x5a5cc4){const _0xcfecc=_0xf2cbb0;if(_0x5a5cc4[_0xcfecc('0x1a')]){const _0x53d24c={'method':_0xcfecc('0x4f'),'uri':_0xf85b9,'form':{'operation':_0xcfecc('0x36'),'username':_0x2b618a,'accessKey':md5(_0x5a5cc4['result'][_0xcfecc('0x41')]+_0x11f5bb)},'json':!![]};return rp(_0x53d24c);}})[_0xf2cbb0('0xf')](function(_0x5b6f17){const _0x2ebe22=_0xf2cbb0;if(_0x5b6f17[_0x2ebe22('0x1a')]){const _0x4194a4={'method':_0x2ebe22('0x3c'),'uri':_0xf85b9,'qs':{'operation':_0x2ebe22('0x5c'),'username':_0x2b618a,'sessionName':_0x5b6f17['result'][_0x2ebe22('0x4c')],'elementType':_0x17b009},'json':!![]};return rp(_0x4194a4);}})['then'](function(_0x3ea94a){const _0x5b2749=_0xf2cbb0;if(_0x3ea94a[_0x5b2749('0x1a')]){const _0x2b8780=[_0x5b2749('0x4e'),_0x5b2749('0xc'),_0x5b2749('0x4a')];return _[_0x5b2749('0x44')](_0x3ea94a[_0x5b2749('0xb')][_0x5b2749('0x5d')],function(_0x5bc574){const _0x373502=_0x5b2749;return _0x2b8780[_0x373502('0xd')](_0x5bc574['type'][_0x373502('0x54')]);}),_[_0x5b2749('0x44')](_0x3ea94a[_0x5b2749('0xb')]['fields'],function(_0x535b75){const _0xc703a7=_0x5b2749;return _0x535b75[_0xc703a7('0x56')]==='false';}),{'count':_0x3ea94a['result']['fields']['length'],'rows':_['map'](_0x3ea94a['result'][_0x5b2749('0x5d')],function(_0x16a819){const _0x571916=_0x5b2749;return{'id':_0x16a819[_0x571916('0x54')],'name':_0x16a819[_0x571916('0x11')],'custom':_['startsWith'](_0x16a819[_0x571916('0x54')],_0x571916('0x23'))?!![]:![],'options':_0x16a819['type']['name']===_0x571916('0x2b')&&_0x16a819[_0x571916('0x3e')][_0x571916('0x60')]['length']>0x0?_[_0x571916('0x4b')](_0x16a819['type'][_0x571916('0x60')],function(_0x41b243){const _0x2bcdef=_0x571916;return{'name':_0x41b243[_0x2bcdef('0x11')],'value':_0x41b243[_0x2bcdef('0x43')]};}):[]};})};}})[_0xf2cbb0('0xf')](respondWithResult(_0x16e846,null))[_0xf2cbb0('0x2e')](function(_0x1644d4){const _0x8f315d=_0xf2cbb0;console[_0x8f315d('0x2f')](_0x8f315d('0x38')+_0x1644d4);let _0x2dc07f=_0x1c3ba8[_0x8f315d('0x3d')]['test']?0x1f4:_0x1644d4[_0x8f315d('0x3f')]||0x1f4;logger[_0x8f315d('0x1f')]('getFields,\x20%s,\x20%s,\x20%s','getFields',_0x2dc07f,JSON[_0x8f315d('0x22')](_0x1644d4)),delete _0x1644d4['name'],_0x2dc07f===0x191&&(_0x2dc07f=0x190),_0x16e846['status'](_0x2dc07f)[_0x8f315d('0x27')](_0x1c3ba8['query']['test']?{'message':_0x8f315d('0x3b'),'statusCode':_0x1644d4['statusCode']}:_0x1644d4);});}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.model.js b/server/api/intVtigerAccount/intVtigerAccount.model.js index 584901d..3ab9bf2 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.model.js +++ b/server/api/intVtigerAccount/intVtigerAccount.model.js @@ -1 +1 @@ -const a321_0x1b1c=['define','exports','VtigerAccount'];(function(_0x3f440e,_0x1b1c10){const _0x50be3b=function(_0x216919){while(--_0x216919){_0x3f440e['push'](_0x3f440e['shift']());}};_0x50be3b(++_0x1b1c10);}(a321_0x1b1c,0x126));const a321_0x50be=function(_0x3f440e,_0x1b1c10){_0x3f440e=_0x3f440e-0x0;let _0x50be3b=a321_0x1b1c[_0x3f440e];return _0x50be3b;};const _0x49076b=a321_0x50be;'use strict';const attributes=require('./intVtigerAccount.attributes');module[_0x49076b('0x1')]=function(_0x216919){const _0x483f8d=_0x49076b,_0x22a59d=_0x216919[_0x483f8d('0x0')](_0x483f8d('0x2'),attributes,{'tableName':'int_vtiger_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x22a59d;}; \ No newline at end of file +const a321_0x3635=['int_vtiger_accounts','exports','./intVtigerAccount.attributes','VtigerAccount'];(function(_0x152885,_0x3635fc){const _0x1559d1=function(_0x18a937){while(--_0x18a937){_0x152885['push'](_0x152885['shift']());}};_0x1559d1(++_0x3635fc);}(a321_0x3635,0x181));const a321_0x1559=function(_0x152885,_0x3635fc){_0x152885=_0x152885-0x0;let _0x1559d1=a321_0x3635[_0x152885];return _0x1559d1;};const _0xf7adf7=a321_0x1559;'use strict';const attributes=require(_0xf7adf7('0x1'));module[_0xf7adf7('0x0')]=function(_0x18a937){const _0x40184a=_0xf7adf7,_0x4587c6=_0x18a937['define'](_0x40184a('0x2'),attributes,{'tableName':_0x40184a('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4587c6;}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.rpc.js b/server/api/intVtigerAccount/intVtigerAccount.rpc.js index 1f2db5d..bdeaa56 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.rpc.js +++ b/server/api/intVtigerAccount/intVtigerAccount.rpc.js @@ -1 +1 @@ -const a322_0x39de=['raw','info','stringify','error','catch','map','VtigerAccount','limit','include','model','attributes','findAll','where','ShowVtigerAccount','options','then','GetVtigerAccount','../../config/logger','lodash','message','findOne'];(function(_0x44d679,_0x39dec6){const _0x55f1c2=function(_0x4120da){while(--_0x4120da){_0x44d679['push'](_0x44d679['shift']());}};_0x55f1c2(++_0x39dec6);}(a322_0x39de,0x1f4));const a322_0x55f1=function(_0x44d679,_0x39dec6){_0x44d679=_0x44d679-0x0;let _0x55f1c2=a322_0x39de[_0x44d679];return _0x55f1c2;};const _0x57bce3=a322_0x55f1;'use strict';const _=require(_0x57bce3('0x1')),db=require('../../mysqldb')['db'],logger=require(_0x57bce3('0x0'))('rpc');exports[_0x57bce3('0x14')]=function(_0x4120da){const _0x55c8cf=this;return new Promise(function(_0x2a04ff,_0x7d2818){const _0x12649e=a322_0x55f1;return db[_0x12649e('0xa')][_0x12649e('0xf')]({'raw':_0x4120da['options']?_0x4120da[_0x12649e('0x12')][_0x12649e('0x4')]===undefined?!![]:![]:!![],'where':_0x4120da[_0x12649e('0x12')]?_0x4120da['options'][_0x12649e('0x10')]||null:null,'attributes':_0x4120da[_0x12649e('0x12')]?_0x4120da[_0x12649e('0x12')]['attributes']||null:null,'limit':_0x4120da['options']?_0x4120da[_0x12649e('0x12')][_0x12649e('0xb')]||null:null,'include':_0x4120da[_0x12649e('0x12')]?_0x4120da[_0x12649e('0x12')][_0x12649e('0xc')]?_[_0x12649e('0x9')](_0x4120da[_0x12649e('0x12')]['include'],function(_0x1cf0b8){const _0x55932e=_0x12649e;return{'model':db[_0x1cf0b8['model']],'as':_0x1cf0b8['as'],'attributes':_0x1cf0b8['attributes'],'include':_0x1cf0b8[_0x55932e('0xc')]?_['map'](_0x1cf0b8['include'],function(_0x50813a){const _0x49f6a3=_0x55932e;return{'model':db[_0x50813a['model']],'as':_0x50813a['as'],'attributes':_0x50813a[_0x49f6a3('0xe')],'include':_0x50813a[_0x49f6a3('0xc')]?_['map'](_0x50813a[_0x49f6a3('0xc')],function(_0x291159){const _0x2c85c9=_0x49f6a3;return{'model':db[_0x291159[_0x2c85c9('0xd')]],'as':_0x291159['as'],'attributes':_0x291159[_0x2c85c9('0xe')]};}):[]};}):[]};}):[]:[]})[_0x12649e('0x13')](function(_0x31370f){const _0x6e899e=_0x12649e;logger[_0x6e899e('0x5')](_0x6e899e('0x14'),_0x4120da),logger['debug'](_0x6e899e('0x14'),_0x4120da,JSON['stringify'](_0x31370f)),_0x2a04ff(_0x31370f);})[_0x12649e('0x8')](function(_0x124d29){const _0x1e2ae9=_0x12649e;logger[_0x1e2ae9('0x7')](_0x1e2ae9('0x14'),_0x124d29[_0x1e2ae9('0x2')],_0x4120da),_0x7d2818(_0x55c8cf[_0x1e2ae9('0x7')](0x1f4,_0x124d29[_0x1e2ae9('0x2')]));});});},exports[_0x57bce3('0x11')]=function(_0x1e9157){const _0x5d1000=this;return new Promise(function(_0x3535bf,_0x2a74cb){const _0x22ef9c=a322_0x55f1;return db['VtigerAccount'][_0x22ef9c('0x3')]({'raw':_0x1e9157[_0x22ef9c('0x12')]?_0x1e9157[_0x22ef9c('0x12')]['raw']===undefined?!![]:![]:!![],'where':_0x1e9157[_0x22ef9c('0x12')]?_0x1e9157['options'][_0x22ef9c('0x10')]||null:null,'attributes':_0x1e9157['options']?_0x1e9157[_0x22ef9c('0x12')]['attributes']||null:null,'include':_0x1e9157[_0x22ef9c('0x12')]?_0x1e9157[_0x22ef9c('0x12')]['include']?_[_0x22ef9c('0x9')](_0x1e9157[_0x22ef9c('0x12')][_0x22ef9c('0xc')],function(_0x582651){const _0x4da77a=_0x22ef9c;return{'model':db[_0x582651[_0x4da77a('0xd')]],'as':_0x582651['as'],'attributes':_0x582651[_0x4da77a('0xe')],'include':_0x582651[_0x4da77a('0xc')]?_[_0x4da77a('0x9')](_0x582651[_0x4da77a('0xc')],function(_0x3f9125){const _0xf59843=_0x4da77a;return{'model':db[_0x3f9125[_0xf59843('0xd')]],'as':_0x3f9125['as'],'attributes':_0x3f9125[_0xf59843('0xe')],'include':_0x3f9125[_0xf59843('0xc')]?_['map'](_0x3f9125['include'],function(_0x5bb759){return{'model':db[_0x5bb759['model']],'as':_0x5bb759['as'],'attributes':_0x5bb759['attributes']};}):[]};}):[]};}):[]:[]})[_0x22ef9c('0x13')](function(_0x45ea04){const _0x23310e=_0x22ef9c;logger['info'](_0x23310e('0x11'),_0x1e9157),logger['debug']('ShowVtigerAccount',_0x1e9157,JSON[_0x23310e('0x6')](_0x45ea04)),_0x3535bf(_0x45ea04);})[_0x22ef9c('0x8')](function(_0xf52799){const _0x4a1a26=_0x22ef9c;logger[_0x4a1a26('0x7')]('ShowVtigerAccount',_0xf52799['message'],_0x1e9157),_0x2a74cb(_0x5d1000[_0x4a1a26('0x7')](0x1f4,_0xf52799[_0x4a1a26('0x2')]));});});}; \ No newline at end of file +const a322_0x1bef=['lodash','message','limit','model','GetVtigerAccount','include','../../config/logger','map','stringify','ShowVtigerAccount','../../mysqldb','raw','error','then','rpc','VtigerAccount','options','debug','attributes','catch','where','info'];(function(_0x5653ab,_0x1bef8e){const _0x44a812=function(_0x4ce4e2){while(--_0x4ce4e2){_0x5653ab['push'](_0x5653ab['shift']());}};_0x44a812(++_0x1bef8e);}(a322_0x1bef,0xbf));const a322_0x44a8=function(_0x5653ab,_0x1bef8e){_0x5653ab=_0x5653ab-0x0;let _0x44a812=a322_0x1bef[_0x5653ab];return _0x44a812;};const _0x3e832c=a322_0x44a8;'use strict';const _=require(_0x3e832c('0x7')),db=require(_0x3e832c('0x11'))['db'],logger=require(_0x3e832c('0xd'))(_0x3e832c('0x15'));exports[_0x3e832c('0xb')]=function(_0x4ce4e2){const _0x2f72c2=this;return new Promise(function(_0x439af7,_0x2f7423){const _0x3f5a0f=a322_0x44a8;return db[_0x3f5a0f('0x0')]['findAll']({'raw':_0x4ce4e2['options']?_0x4ce4e2[_0x3f5a0f('0x1')][_0x3f5a0f('0x12')]===undefined?!![]:![]:!![],'where':_0x4ce4e2[_0x3f5a0f('0x1')]?_0x4ce4e2[_0x3f5a0f('0x1')][_0x3f5a0f('0x5')]||null:null,'attributes':_0x4ce4e2[_0x3f5a0f('0x1')]?_0x4ce4e2['options']['attributes']||null:null,'limit':_0x4ce4e2[_0x3f5a0f('0x1')]?_0x4ce4e2[_0x3f5a0f('0x1')][_0x3f5a0f('0x9')]||null:null,'include':_0x4ce4e2['options']?_0x4ce4e2[_0x3f5a0f('0x1')][_0x3f5a0f('0xc')]?_[_0x3f5a0f('0xe')](_0x4ce4e2[_0x3f5a0f('0x1')][_0x3f5a0f('0xc')],function(_0x34defa){const _0x2a63a6=_0x3f5a0f;return{'model':db[_0x34defa[_0x2a63a6('0xa')]],'as':_0x34defa['as'],'attributes':_0x34defa[_0x2a63a6('0x3')],'include':_0x34defa[_0x2a63a6('0xc')]?_[_0x2a63a6('0xe')](_0x34defa[_0x2a63a6('0xc')],function(_0x3112bb){const _0x519936=_0x2a63a6;return{'model':db[_0x3112bb[_0x519936('0xa')]],'as':_0x3112bb['as'],'attributes':_0x3112bb['attributes'],'include':_0x3112bb[_0x519936('0xc')]?_['map'](_0x3112bb[_0x519936('0xc')],function(_0x3d6526){const _0x225b08=_0x519936;return{'model':db[_0x3d6526['model']],'as':_0x3d6526['as'],'attributes':_0x3d6526[_0x225b08('0x3')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xe4c5e1){const _0x488091=_0x3f5a0f;logger['info'](_0x488091('0xb'),_0x4ce4e2),logger[_0x488091('0x2')](_0x488091('0xb'),_0x4ce4e2,JSON[_0x488091('0xf')](_0xe4c5e1)),_0x439af7(_0xe4c5e1);})[_0x3f5a0f('0x4')](function(_0x42e178){const _0x232ad9=_0x3f5a0f;logger[_0x232ad9('0x13')](_0x232ad9('0xb'),_0x42e178[_0x232ad9('0x8')],_0x4ce4e2),_0x2f7423(_0x2f72c2[_0x232ad9('0x13')](0x1f4,_0x42e178[_0x232ad9('0x8')]));});});},exports[_0x3e832c('0x10')]=function(_0x3abe07){const _0x216905=this;return new Promise(function(_0x50efec,_0x2f79c1){const _0x37f7ca=a322_0x44a8;return db[_0x37f7ca('0x0')]['findOne']({'raw':_0x3abe07['options']?_0x3abe07[_0x37f7ca('0x1')][_0x37f7ca('0x12')]===undefined?!![]:![]:!![],'where':_0x3abe07[_0x37f7ca('0x1')]?_0x3abe07['options'][_0x37f7ca('0x5')]||null:null,'attributes':_0x3abe07[_0x37f7ca('0x1')]?_0x3abe07[_0x37f7ca('0x1')][_0x37f7ca('0x3')]||null:null,'include':_0x3abe07[_0x37f7ca('0x1')]?_0x3abe07['options']['include']?_[_0x37f7ca('0xe')](_0x3abe07[_0x37f7ca('0x1')][_0x37f7ca('0xc')],function(_0x504cc5){const _0x398c34=_0x37f7ca;return{'model':db[_0x504cc5[_0x398c34('0xa')]],'as':_0x504cc5['as'],'attributes':_0x504cc5['attributes'],'include':_0x504cc5[_0x398c34('0xc')]?_[_0x398c34('0xe')](_0x504cc5['include'],function(_0x24690a){const _0x29d1f2=_0x398c34;return{'model':db[_0x24690a[_0x29d1f2('0xa')]],'as':_0x24690a['as'],'attributes':_0x24690a[_0x29d1f2('0x3')],'include':_0x24690a[_0x29d1f2('0xc')]?_[_0x29d1f2('0xe')](_0x24690a[_0x29d1f2('0xc')],function(_0x120a28){const _0x18f107=_0x29d1f2;return{'model':db[_0x120a28[_0x18f107('0xa')]],'as':_0x120a28['as'],'attributes':_0x120a28[_0x18f107('0x3')]};}):[]};}):[]};}):[]:[]})[_0x37f7ca('0x14')](function(_0x10a780){const _0x1678d4=_0x37f7ca;logger[_0x1678d4('0x6')](_0x1678d4('0x10'),_0x3abe07),logger[_0x1678d4('0x2')](_0x1678d4('0x10'),_0x3abe07,JSON[_0x1678d4('0xf')](_0x10a780)),_0x50efec(_0x10a780);})[_0x37f7ca('0x4')](function(_0x586e62){const _0x24de6e=_0x37f7ca;logger[_0x24de6e('0x13')]('ShowVtigerAccount',_0x586e62[_0x24de6e('0x8')],_0x3abe07),_0x2f79c1(_0x216905['error'](0x1f4,_0x586e62['message']));});});}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/index.js b/server/api/intVtigerConfiguration/index.js index 8f1b835..4a189ba 100644 --- a/server/api/intVtigerConfiguration/index.js +++ b/server/api/intVtigerConfiguration/index.js @@ -1 +1 @@ -const a323_0x3031=['get','create','getDescriptions','/:id','isAuthenticated','/:id/fields','../../components/auth/service','update','express','Router','./intVtigerConfiguration.controller','show','getSubjects','put','exports','destroy','/:id/descriptions','index','post','delete','/:id/subjects'];(function(_0x47f7d7,_0x3031a1){const _0x3475fd=function(_0x39d325){while(--_0x39d325){_0x47f7d7['push'](_0x47f7d7['shift']());}};_0x3475fd(++_0x3031a1);}(a323_0x3031,0xe1));const a323_0x3475=function(_0x47f7d7,_0x3031a1){_0x47f7d7=_0x47f7d7-0x0;let _0x3475fd=a323_0x3031[_0x47f7d7];return _0x3475fd;};const _0x988d92=a323_0x3475;'use strict';const express=require(_0x988d92('0xe')),router=express[_0x988d92('0xf')](),auth=require(_0x988d92('0xc')),controller=require(_0x988d92('0x10'));router[_0x988d92('0x6')]('/',auth[_0x988d92('0xa')](),controller[_0x988d92('0x2')]),router[_0x988d92('0x6')](_0x988d92('0x9'),auth[_0x988d92('0xa')](),controller[_0x988d92('0x11')]),router['get'](_0x988d92('0xb'),auth['isAuthenticated'](),controller['getFields']),router[_0x988d92('0x6')](_0x988d92('0x5'),auth['isAuthenticated'](),controller[_0x988d92('0x12')]),router[_0x988d92('0x6')](_0x988d92('0x1'),auth[_0x988d92('0xa')](),controller[_0x988d92('0x8')]),router[_0x988d92('0x3')]('/',auth[_0x988d92('0xa')](),controller[_0x988d92('0x7')]),router[_0x988d92('0x13')](_0x988d92('0x9'),auth['isAuthenticated'](),controller[_0x988d92('0xd')]),router[_0x988d92('0x4')](_0x988d92('0x9'),auth[_0x988d92('0xa')](),controller[_0x988d92('0x0')]),module[_0x988d92('0x14')]=router; \ No newline at end of file +const a323_0x49ae=['/:id','delete','show','/:id/subjects','post','isAuthenticated','/:id/fields','destroy','getSubjects','getDescriptions','getFields','index','put','update','exports','/:id/descriptions','create','get','Router'];(function(_0x2fa10d,_0x49aed){const _0x1ec803=function(_0x4ba765){while(--_0x4ba765){_0x2fa10d['push'](_0x2fa10d['shift']());}};_0x1ec803(++_0x49aed);}(a323_0x49ae,0x1c5));const a323_0x1ec8=function(_0x2fa10d,_0x49aed){_0x2fa10d=_0x2fa10d-0x0;let _0x1ec803=a323_0x49ae[_0x2fa10d];return _0x1ec803;};const _0x36168d=a323_0x1ec8;'use strict';const express=require('express'),router=express[_0x36168d('0x2')](),auth=require('../../components/auth/service'),controller=require('./intVtigerConfiguration.controller');router[_0x36168d('0x1')]('/',auth[_0x36168d('0x8')](),controller[_0x36168d('0xe')]),router['get'](_0x36168d('0x3'),auth[_0x36168d('0x8')](),controller[_0x36168d('0x5')]),router[_0x36168d('0x1')](_0x36168d('0x9'),auth[_0x36168d('0x8')](),controller[_0x36168d('0xd')]),router[_0x36168d('0x1')](_0x36168d('0x6'),auth['isAuthenticated'](),controller[_0x36168d('0xb')]),router[_0x36168d('0x1')](_0x36168d('0x12'),auth[_0x36168d('0x8')](),controller[_0x36168d('0xc')]),router[_0x36168d('0x7')]('/',auth[_0x36168d('0x8')](),controller[_0x36168d('0x0')]),router[_0x36168d('0xf')](_0x36168d('0x3'),auth[_0x36168d('0x8')](),controller[_0x36168d('0x10')]),router[_0x36168d('0x4')](_0x36168d('0x3'),auth[_0x36168d('0x8')](),controller[_0x36168d('0xa')]),module[_0x36168d('0x11')]=router; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js index 1c00710..93ddf92 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js @@ -1 +1 @@ -const a324_0x4808=['exports','sequelize','STRING'];(function(_0x387459,_0x48083c){const _0x391c61=function(_0x192b17){while(--_0x192b17){_0x387459['push'](_0x387459['shift']());}};_0x391c61(++_0x48083c);}(a324_0x4808,0x10b));const a324_0x391c=function(_0x387459,_0x48083c){_0x387459=_0x387459-0x0;let _0x391c61=a324_0x4808[_0x387459];return _0x391c61;};const _0x4adcdc=a324_0x391c;'use strict';const Sequelize=require(_0x4adcdc('0x1'));module[_0x4adcdc('0x0')]={'name':{'type':Sequelize[_0x4adcdc('0x2')]},'description':{'type':Sequelize[_0x4adcdc('0x2')]}}; \ No newline at end of file +const a324_0x3f01=['exports','sequelize'];(function(_0x1306f6,_0x3f010e){const _0x2f13f4=function(_0xde3fac){while(--_0xde3fac){_0x1306f6['push'](_0x1306f6['shift']());}};_0x2f13f4(++_0x3f010e);}(a324_0x3f01,0x117));const a324_0x2f13=function(_0x1306f6,_0x3f010e){_0x1306f6=_0x1306f6-0x0;let _0x2f13f4=a324_0x3f01[_0x1306f6];return _0x2f13f4;};const _0x32ff4b=a324_0x2f13;'use strict';const Sequelize=require(_0x32ff4b('0x0'));module[_0x32ff4b('0x1')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js index 947b499..f029f15 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js @@ -1 +1 @@ -const a325_0x2876=['rows','like','where','name','length','sort','findAll','stack','undefined','VtigerConfiguration','params','count','json','getDescriptions','merge','catch','filters','type','rawAttributes','map','index','pick','Content-Range','offset','intersection','query','options','getSubjects','getFields','show','update','sendStatus','order','limit','filter','set','end','attributes','status','keys','includeAll','key','create','include','send','then','nolimit','sequelize','findOne','body','destroy','fields','error','VtigerField','model','VIRTUAL'];(function(_0x1d865d,_0x287619){const _0x38ab93=function(_0x592c4d){while(--_0x592c4d){_0x1d865d['push'](_0x1d865d['shift']());}};_0x38ab93(++_0x287619);}(a325_0x2876,0xdf));const a325_0x38ab=function(_0x1d865d,_0x287619){_0x1d865d=_0x1d865d-0x0;let _0x38ab93=a325_0x2876[_0x1d865d];return _0x38ab93;};const _0x307204=a325_0x38ab;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x307204('0x30'));function respondWithResult(_0x592c4d,_0x1c1d8d){return _0x1c1d8d=_0x1c1d8d||0xc8,function(_0x22a436){const _0x6ed80b=a325_0x38ab;if(_0x22a436)return _0x592c4d[_0x6ed80b('0x27')](_0x1c1d8d)[_0x6ed80b('0xd')](_0x22a436);};}function respondWithFilteredResult(_0x4b49c5,_0x4cbd40){return function(_0xc69adb){const _0x52f27f=a325_0x38ab;if(_0xc69adb){const _0x17b52f=_0xc69adb[_0x52f27f('0xc')],_0x39bc4f=_0x4cbd40[_0x52f27f('0x18')];let _0x1797fe=_0x4cbd40[_0x52f27f('0x18')]+_0x4cbd40[_0x52f27f('0x22')],_0x307b1d;return _0x1797fe>=_0x17b52f?(_0x1797fe=_0x17b52f,_0x307b1d=0xc8):_0x307b1d=0xce,_0x4b49c5[_0x52f27f('0x27')](_0x307b1d),_0x4b49c5[_0x52f27f('0x24')](_0x52f27f('0x17'),_0x39bc4f+'-'+_0x1797fe+'/'+_0x17b52f)[_0x52f27f('0xd')](_0xc69adb);}return null;};}function saveUpdates(_0x2399f6){return function(_0x218179){const _0x1bc82e=a325_0x38ab;if(_0x218179)return _0x218179['update'](_0x2399f6)[_0x1bc82e('0x2e')](function(_0x295bac){return _0x295bac;});return null;};}function removeEntity(_0x20c93f){return function(_0x290803){const _0x52eb3f=a325_0x38ab;if(_0x290803)return _0x290803[_0x52eb3f('0x33')]()[_0x52eb3f('0x2e')](function(){const _0x3ebd3b=_0x52eb3f;_0x20c93f[_0x3ebd3b('0x27')](0xcc)[_0x3ebd3b('0x25')]();});};}function handleEntityNotFound(_0x1f45c6){return function(_0x221da3){const _0x4324d1=a325_0x38ab;return!_0x221da3&&_0x1f45c6[_0x4324d1('0x20')](0x194),_0x221da3;};}function handleError(_0x498572,_0x4adec5){return _0x4adec5=_0x4adec5||0x1f4,function(_0x31e375){const _0x239846=a325_0x38ab;logger[_0x239846('0x35')](_0x31e375[_0x239846('0x8')]),_0x31e375[_0x239846('0x4')]&&delete _0x31e375[_0x239846('0x4')],_0x498572[_0x239846('0x27')](_0x4adec5)[_0x239846('0x2d')](_0x31e375);};}exports[_0x307204('0x15')]=function(_0x539698,_0x4e8fe9){const _0x3ca3aa=_0x307204;let _0x22804c={};const _0x2cc0bd={},_0x12b8a6={'count':0x0,'rows':[]},_0x571d90=_[_0x3ca3aa('0x14')](db[_0x3ca3aa('0xa')][_0x3ca3aa('0x13')],function(_0x116e76){const _0x49f6b1=_0x3ca3aa;return{'name':_0x116e76['fieldName'],'type':_0x116e76['type'][_0x49f6b1('0x2a')]};});_0x2cc0bd[_0x3ca3aa('0x37')]=_['map'](_0x571d90,_0x3ca3aa('0x4')),_0x2cc0bd[_0x3ca3aa('0x1a')]=_[_0x3ca3aa('0x28')](_0x539698['query']),_0x2cc0bd[_0x3ca3aa('0x11')]=_[_0x3ca3aa('0x19')](_0x2cc0bd[_0x3ca3aa('0x37')],_0x2cc0bd['query']),_0x22804c[_0x3ca3aa('0x26')]=_[_0x3ca3aa('0x19')](_0x2cc0bd[_0x3ca3aa('0x37')],qs['fields'](_0x539698['query'][_0x3ca3aa('0x34')])),_0x22804c[_0x3ca3aa('0x26')]=_0x22804c['attributes']['length']?_0x22804c['attributes']:_0x2cc0bd[_0x3ca3aa('0x37')];typeof _0x539698[_0x3ca3aa('0x1a')]['nolimit']===_0x3ca3aa('0x9')&&(_0x22804c[_0x3ca3aa('0x22')]=qs['limit'](_0x539698['query'][_0x3ca3aa('0x22')]),_0x22804c['offset']=qs[_0x3ca3aa('0x18')](_0x539698[_0x3ca3aa('0x1a')][_0x3ca3aa('0x18')]));_0x22804c[_0x3ca3aa('0x21')]=qs['sort'](_0x539698['query']['sort']),_0x22804c[_0x3ca3aa('0x3')]=qs[_0x3ca3aa('0x11')](_[_0x3ca3aa('0x16')](_0x539698[_0x3ca3aa('0x1a')],_0x2cc0bd[_0x3ca3aa('0x11')]),_0x571d90);_0x539698[_0x3ca3aa('0x1a')][_0x3ca3aa('0x23')]&&(_0x22804c['where']=_[_0x3ca3aa('0xf')](_0x22804c['where'],{[Op['or']]:_[_0x3ca3aa('0x14')](_0x571d90,function(_0x3f2c02){const _0x2ed162=_0x3ca3aa;if(_0x3f2c02[_0x2ed162('0x12')]!==_0x2ed162('0x0')){const _0x282c00={};return _0x282c00[_0x3f2c02[_0x2ed162('0x4')]]={[Op[_0x2ed162('0x2')]]:'%'+_0x539698['query'][_0x2ed162('0x23')]+'%'},_0x282c00;}})}));_0x22804c=_['merge']({},_0x22804c,_0x539698[_0x3ca3aa('0x1b')]);const _0x57a0b4={'where':_0x22804c[_0x3ca3aa('0x3')]};return db[_0x3ca3aa('0xa')]['count'](_0x57a0b4)['then'](function(_0x308c39){const _0x34694b=_0x3ca3aa;return _0x12b8a6['count']=_0x308c39,_0x539698['query'][_0x34694b('0x29')]&&(_0x22804c[_0x34694b('0x2c')]=[{'all':!![]}]),db[_0x34694b('0xa')][_0x34694b('0x7')](_0x22804c);})['then'](function(_0x2a88b4){const _0x3c4e30=_0x3ca3aa;return _0x12b8a6[_0x3c4e30('0x1')]=_0x2a88b4,_0x12b8a6;})[_0x3ca3aa('0x2e')](respondWithFilteredResult(_0x4e8fe9,_0x22804c))['catch'](handleError(_0x4e8fe9,null));},exports[_0x307204('0x1e')]=function(_0x1b538b,_0x58ef02){const _0x41a03b=_0x307204;let _0x35c83d={'raw':![],'where':{'id':_0x1b538b[_0x41a03b('0xb')]['id']}};const _0x50a454={};return _0x50a454[_0x41a03b('0x37')]=_[_0x41a03b('0x28')](db['VtigerConfiguration'][_0x41a03b('0x13')]),_0x50a454[_0x41a03b('0x1a')]=_['keys'](_0x1b538b['query']),_0x50a454[_0x41a03b('0x11')]=_['intersection'](_0x50a454[_0x41a03b('0x37')],_0x50a454[_0x41a03b('0x1a')]),_0x35c83d[_0x41a03b('0x26')]=_[_0x41a03b('0x19')](_0x50a454['model'],qs[_0x41a03b('0x34')](_0x1b538b[_0x41a03b('0x1a')][_0x41a03b('0x34')])),_0x35c83d['attributes']=_0x35c83d['attributes'][_0x41a03b('0x5')]?_0x35c83d[_0x41a03b('0x26')]:_0x50a454[_0x41a03b('0x37')],_0x1b538b[_0x41a03b('0x1a')][_0x41a03b('0x29')]&&(_0x35c83d[_0x41a03b('0x2c')]=[{'all':!![]}]),_0x35c83d=_[_0x41a03b('0xf')]({},_0x35c83d,_0x1b538b[_0x41a03b('0x1b')]),db[_0x41a03b('0xa')][_0x41a03b('0x31')](_0x35c83d)['then'](handleEntityNotFound(_0x58ef02,null))['then'](respondWithResult(_0x58ef02,null))[_0x41a03b('0x10')](handleError(_0x58ef02,null));},exports['create']=function(_0x218ea5,_0x10463d){const _0x39418d=_0x307204;return db['VtigerConfiguration'][_0x39418d('0x2b')](_0x218ea5[_0x39418d('0x32')],{})[_0x39418d('0x2e')](respondWithResult(_0x10463d,0xc9))[_0x39418d('0x10')](handleError(_0x10463d,null));},exports[_0x307204('0x1f')]=function(_0xeeba8e,_0x75a174){const _0x57795b=_0x307204;return _0xeeba8e[_0x57795b('0x32')]['id']&&delete _0xeeba8e[_0x57795b('0x32')]['id'],db[_0x57795b('0xa')][_0x57795b('0x31')]({'where':{'id':_0xeeba8e[_0x57795b('0xb')]['id']}})[_0x57795b('0x2e')](handleEntityNotFound(_0x75a174,null))[_0x57795b('0x2e')](saveUpdates(_0xeeba8e[_0x57795b('0x32')],null))[_0x57795b('0x2e')](respondWithResult(_0x75a174,null))[_0x57795b('0x10')](handleError(_0x75a174,null));},exports['destroy']=function(_0x878201,_0x1fdaf4){const _0x46a8a9=_0x307204;return db[_0x46a8a9('0xa')][_0x46a8a9('0x31')]({'where':{'id':_0x878201[_0x46a8a9('0xb')]['id']}})[_0x46a8a9('0x2e')](handleEntityNotFound(_0x1fdaf4,null))['then'](removeEntity(_0x1fdaf4,null))['catch'](handleError(_0x1fdaf4,null));},exports['getFields']=function(_0x2025ff,_0x354d5b){const _0x1d5b83=_0x307204;let _0x43ddc7={};const _0xab3059={};let _0x42dc3f,_0x37220e;return db['VtigerConfiguration'][_0x1d5b83('0x31')]({'where':{'id':_0x2025ff[_0x1d5b83('0xb')]['id']}})[_0x1d5b83('0x2e')](handleEntityNotFound(_0x354d5b,null))[_0x1d5b83('0x2e')](function(_0x590efe){const _0x389233=_0x1d5b83;if(_0x590efe)return _0x42dc3f=_0x590efe,_0xab3059[_0x389233('0x37')]=_[_0x389233('0x28')](db[_0x389233('0x36')][_0x389233('0x13')]),_0xab3059[_0x389233('0x1a')]=_[_0x389233('0x28')](_0x2025ff[_0x389233('0x1a')]),_0xab3059[_0x389233('0x11')]=_[_0x389233('0x19')](_0xab3059[_0x389233('0x37')],_0xab3059[_0x389233('0x1a')]),_0x43ddc7[_0x389233('0x26')]=_[_0x389233('0x19')](_0xab3059[_0x389233('0x37')],qs['fields'](_0x2025ff[_0x389233('0x1a')][_0x389233('0x34')])),_0x43ddc7[_0x389233('0x26')]=_0x43ddc7[_0x389233('0x26')]['length']?_0x43ddc7[_0x389233('0x26')]:_0xab3059['model'],_0x43ddc7['order']=qs[_0x389233('0x6')](_0x2025ff[_0x389233('0x1a')]['sort']),_0x43ddc7[_0x389233('0x3')]=qs[_0x389233('0x11')](_['pick'](_0x2025ff[_0x389233('0x1a')],_0xab3059[_0x389233('0x11')])),_0x2025ff[_0x389233('0x1a')][_0x389233('0x23')]&&(_0x43ddc7[_0x389233('0x3')]=_[_0x389233('0xf')](_0x43ddc7[_0x389233('0x3')],{[Op['or']]:_['map'](_0x43ddc7['attributes'],function(_0x36873f){const _0x237585=_0x389233,_0x458324={};return _0x458324[_0x36873f]={[Op[_0x237585('0x2')]]:'%'+_0x2025ff['query']['filter']+'%'},_0x458324;})})),_0x43ddc7=_[_0x389233('0xf')]({},_0x43ddc7,_0x2025ff[_0x389233('0x1b')]),_0x42dc3f['getFields'](_0x43ddc7);})[_0x1d5b83('0x2e')](function(_0x54b0ef){const _0x4b1f21=_0x1d5b83;if(_0x54b0ef)return _0x37220e=_0x54b0ef['length'],typeof _0x2025ff[_0x4b1f21('0x1a')][_0x4b1f21('0x2f')]===_0x4b1f21('0x9')&&(_0x43ddc7[_0x4b1f21('0x22')]=qs[_0x4b1f21('0x22')](_0x2025ff[_0x4b1f21('0x1a')][_0x4b1f21('0x22')]),_0x43ddc7[_0x4b1f21('0x18')]=qs[_0x4b1f21('0x18')](_0x2025ff[_0x4b1f21('0x1a')][_0x4b1f21('0x18')])),_0x42dc3f[_0x4b1f21('0x1d')](_0x43ddc7);})[_0x1d5b83('0x2e')](function(_0x2f67f2){if(_0x2f67f2)return _0x2f67f2?{'count':_0x37220e,'rows':_0x2f67f2}:null;})[_0x1d5b83('0x2e')](respondWithResult(_0x354d5b,null))[_0x1d5b83('0x10')](handleError(_0x354d5b,null));},exports['getSubjects']=function(_0x2b4d8b,_0x115b3c){const _0x107552=_0x307204;let _0x495799={};const _0x13067e={};let _0x11ffec,_0x53c3a4;return db[_0x107552('0xa')][_0x107552('0x31')]({'where':{'id':_0x2b4d8b[_0x107552('0xb')]['id']}})[_0x107552('0x2e')](handleEntityNotFound(_0x115b3c,null))['then'](function(_0x114175){const _0x331ab6=_0x107552;if(_0x114175)return _0x11ffec=_0x114175,_0x13067e[_0x331ab6('0x37')]=_[_0x331ab6('0x28')](db[_0x331ab6('0x36')][_0x331ab6('0x13')]),_0x13067e['query']=_[_0x331ab6('0x28')](_0x2b4d8b[_0x331ab6('0x1a')]),_0x13067e[_0x331ab6('0x11')]=_[_0x331ab6('0x19')](_0x13067e[_0x331ab6('0x37')],_0x13067e[_0x331ab6('0x1a')]),_0x495799[_0x331ab6('0x26')]=_[_0x331ab6('0x19')](_0x13067e['model'],qs[_0x331ab6('0x34')](_0x2b4d8b[_0x331ab6('0x1a')][_0x331ab6('0x34')])),_0x495799[_0x331ab6('0x26')]=_0x495799['attributes'][_0x331ab6('0x5')]?_0x495799[_0x331ab6('0x26')]:_0x13067e['model'],_0x495799['order']=qs[_0x331ab6('0x6')](_0x2b4d8b[_0x331ab6('0x1a')]['sort']),_0x495799[_0x331ab6('0x3')]=qs[_0x331ab6('0x11')](_['pick'](_0x2b4d8b[_0x331ab6('0x1a')],_0x13067e[_0x331ab6('0x11')])),_0x2b4d8b[_0x331ab6('0x1a')][_0x331ab6('0x23')]&&(_0x495799[_0x331ab6('0x3')]=_[_0x331ab6('0xf')](_0x495799[_0x331ab6('0x3')],{[Op['or']]:_[_0x331ab6('0x14')](_0x495799['attributes'],function(_0x2a6984){const _0x48408b=_0x331ab6,_0x2c7624={};return _0x2c7624[_0x2a6984]={[Op[_0x48408b('0x2')]]:'%'+_0x2b4d8b['query'][_0x48408b('0x23')]+'%'},_0x2c7624;})})),_0x495799=_[_0x331ab6('0xf')]({},_0x495799,_0x2b4d8b[_0x331ab6('0x1b')]),_0x11ffec['getSubjects'](_0x495799);})['then'](function(_0x1fa41c){const _0xeaa257=_0x107552;if(_0x1fa41c)return _0x53c3a4=_0x1fa41c[_0xeaa257('0x5')],typeof _0x2b4d8b[_0xeaa257('0x1a')]['nolimit']===_0xeaa257('0x9')&&(_0x495799['limit']=qs['limit'](_0x2b4d8b['query'][_0xeaa257('0x22')]),_0x495799[_0xeaa257('0x18')]=qs[_0xeaa257('0x18')](_0x2b4d8b[_0xeaa257('0x1a')][_0xeaa257('0x18')])),_0x11ffec[_0xeaa257('0x1c')](_0x495799);})[_0x107552('0x2e')](function(_0xf76795){if(_0xf76795)return _0xf76795?{'count':_0x53c3a4,'rows':_0xf76795}:null;})[_0x107552('0x2e')](respondWithResult(_0x115b3c,null))['catch'](handleError(_0x115b3c,null));},exports['getDescriptions']=function(_0x39c7f0,_0x3d9fa9){const _0x62cb6e=_0x307204;let _0x58078e={};const _0x4535d6={};let _0x2a72ae,_0x1cd32d;return db['VtigerConfiguration'][_0x62cb6e('0x31')]({'where':{'id':_0x39c7f0[_0x62cb6e('0xb')]['id']}})[_0x62cb6e('0x2e')](handleEntityNotFound(_0x3d9fa9,null))['then'](function(_0x11da7c){const _0x124718=_0x62cb6e;if(_0x11da7c)return _0x2a72ae=_0x11da7c,_0x4535d6['model']=_[_0x124718('0x28')](db[_0x124718('0x36')][_0x124718('0x13')]),_0x4535d6[_0x124718('0x1a')]=_['keys'](_0x39c7f0[_0x124718('0x1a')]),_0x4535d6[_0x124718('0x11')]=_[_0x124718('0x19')](_0x4535d6[_0x124718('0x37')],_0x4535d6[_0x124718('0x1a')]),_0x58078e['attributes']=_[_0x124718('0x19')](_0x4535d6[_0x124718('0x37')],qs['fields'](_0x39c7f0['query'][_0x124718('0x34')])),_0x58078e[_0x124718('0x26')]=_0x58078e['attributes'][_0x124718('0x5')]?_0x58078e[_0x124718('0x26')]:_0x4535d6['model'],_0x58078e[_0x124718('0x21')]=qs[_0x124718('0x6')](_0x39c7f0[_0x124718('0x1a')][_0x124718('0x6')]),_0x58078e[_0x124718('0x3')]=qs[_0x124718('0x11')](_[_0x124718('0x16')](_0x39c7f0[_0x124718('0x1a')],_0x4535d6[_0x124718('0x11')])),_0x39c7f0[_0x124718('0x1a')][_0x124718('0x23')]&&(_0x58078e[_0x124718('0x3')]=_[_0x124718('0xf')](_0x58078e[_0x124718('0x3')],{[Op['or']]:_[_0x124718('0x14')](_0x58078e[_0x124718('0x26')],function(_0x41f605){const _0x3f1ff7=_0x124718,_0x18c69b={};return _0x18c69b[_0x41f605]={[Op[_0x3f1ff7('0x2')]]:'%'+_0x39c7f0[_0x3f1ff7('0x1a')][_0x3f1ff7('0x23')]+'%'},_0x18c69b;})})),_0x58078e=_[_0x124718('0xf')]({},_0x58078e,_0x39c7f0[_0x124718('0x1b')]),_0x2a72ae[_0x124718('0xe')](_0x58078e);})['then'](function(_0x4d7a92){const _0x368616=_0x62cb6e;if(_0x4d7a92)return _0x1cd32d=_0x4d7a92[_0x368616('0x5')],typeof _0x39c7f0['query']['nolimit']===_0x368616('0x9')&&(_0x58078e[_0x368616('0x22')]=qs['limit'](_0x39c7f0['query'][_0x368616('0x22')]),_0x58078e[_0x368616('0x18')]=qs['offset'](_0x39c7f0['query']['offset'])),_0x2a72ae[_0x368616('0xe')](_0x58078e);})[_0x62cb6e('0x2e')](function(_0x5a4cd5){if(_0x5a4cd5)return _0x5a4cd5?{'count':_0x1cd32d,'rows':_0x5a4cd5}:null;})['then'](respondWithResult(_0x3d9fa9,null))[_0x62cb6e('0x10')](handleError(_0x3d9fa9,null));}; \ No newline at end of file +const a325_0x5d43=['includeAll','keys','model','VtigerField','body','like','getFields','getDescriptions','map','then','stack','sort','fieldName','create','catch','json','attributes','options','send','undefined','Content-Range','query','destroy','end','include','rawAttributes','lodash','filter','intersection','VIRTUAL','merge','sequelize','length','count','../../mysqldb','offset','getSubjects','pick','index','order','limit','findOne','status','filters','show','nolimit','where','type','fields','params','error','VtigerConfiguration','../../config/logger','api','sendStatus','key','name'];(function(_0x16d188,_0x5d437a){const _0x2f3757=function(_0x235f76){while(--_0x235f76){_0x16d188['push'](_0x16d188['shift']());}};_0x2f3757(++_0x5d437a);}(a325_0x5d43,0x1ef));const a325_0x2f37=function(_0x16d188,_0x5d437a){_0x16d188=_0x16d188-0x0;let _0x2f3757=a325_0x5d43[_0x16d188];return _0x2f3757;};const _0x3f4e39=a325_0x2f37;'use strict';const _=require(_0x3f4e39('0x2c')),qs=require('../../components/parsers/qs'),logger=require(_0x3f4e39('0xd'))(_0x3f4e39('0xe')),db=require(_0x3f4e39('0x34'))['db'],{Op}=require(_0x3f4e39('0x31'));function respondWithResult(_0x235f76,_0x45f91b){return _0x45f91b=_0x45f91b||0xc8,function(_0x23958b){const _0x52a690=a325_0x2f37;if(_0x23958b)return _0x235f76['status'](_0x45f91b)[_0x52a690('0x21')](_0x23958b);};}function respondWithFilteredResult(_0x44a9d2,_0x210458){return function(_0x23f1d5){const _0x304e97=a325_0x2f37;if(_0x23f1d5){const _0x110344=_0x23f1d5[_0x304e97('0x33')],_0x342fbc=_0x210458[_0x304e97('0x35')];let _0xdbc60=_0x210458[_0x304e97('0x35')]+_0x210458[_0x304e97('0x1')],_0x531614;return _0xdbc60>=_0x110344?(_0xdbc60=_0x110344,_0x531614=0xc8):_0x531614=0xce,_0x44a9d2[_0x304e97('0x3')](_0x531614),_0x44a9d2['set'](_0x304e97('0x26'),_0x342fbc+'-'+_0xdbc60+'/'+_0x110344)['json'](_0x23f1d5);}return null;};}function saveUpdates(_0x3f5717){return function(_0x20ba54){const _0x5dc669=a325_0x2f37;if(_0x20ba54)return _0x20ba54['update'](_0x3f5717)[_0x5dc669('0x1b')](function(_0x36d227){return _0x36d227;});return null;};}function removeEntity(_0x2f7fda){return function(_0x175623){const _0x543c91=a325_0x2f37;if(_0x175623)return _0x175623['destroy']()[_0x543c91('0x1b')](function(){const _0x1f050e=_0x543c91;_0x2f7fda[_0x1f050e('0x3')](0xcc)[_0x1f050e('0x29')]();});};}function handleEntityNotFound(_0x3f701e){return function(_0x4bf1da){const _0x4d0d02=a325_0x2f37;return!_0x4bf1da&&_0x3f701e[_0x4d0d02('0xf')](0x194),_0x4bf1da;};}function handleError(_0xde2615,_0x4060e6){return _0x4060e6=_0x4060e6||0x1f4,function(_0x2fd32e){const _0x18da36=a325_0x2f37;logger[_0x18da36('0xb')](_0x2fd32e[_0x18da36('0x1c')]),_0x2fd32e[_0x18da36('0x11')]&&delete _0x2fd32e['name'],_0xde2615[_0x18da36('0x3')](_0x4060e6)[_0x18da36('0x24')](_0x2fd32e);};}exports[_0x3f4e39('0x38')]=function(_0x97aa7b,_0x427676){const _0x556fbb=_0x3f4e39;let _0x406113={};const _0x4f7a55={},_0x3dac05={'count':0x0,'rows':[]},_0x78d02=_[_0x556fbb('0x1a')](db[_0x556fbb('0xc')]['rawAttributes'],function(_0x1d41a9){const _0x18bcb4=_0x556fbb;return{'name':_0x1d41a9[_0x18bcb4('0x1e')],'type':_0x1d41a9[_0x18bcb4('0x8')][_0x18bcb4('0x10')]};});_0x4f7a55['model']=_[_0x556fbb('0x1a')](_0x78d02,'name'),_0x4f7a55['query']=_[_0x556fbb('0x13')](_0x97aa7b['query']),_0x4f7a55[_0x556fbb('0x4')]=_[_0x556fbb('0x2e')](_0x4f7a55['model'],_0x4f7a55[_0x556fbb('0x27')]),_0x406113[_0x556fbb('0x22')]=_['intersection'](_0x4f7a55[_0x556fbb('0x14')],qs[_0x556fbb('0x9')](_0x97aa7b[_0x556fbb('0x27')][_0x556fbb('0x9')])),_0x406113[_0x556fbb('0x22')]=_0x406113[_0x556fbb('0x22')][_0x556fbb('0x32')]?_0x406113['attributes']:_0x4f7a55['model'];typeof _0x97aa7b['query'][_0x556fbb('0x6')]===_0x556fbb('0x25')&&(_0x406113[_0x556fbb('0x1')]=qs[_0x556fbb('0x1')](_0x97aa7b['query'][_0x556fbb('0x1')]),_0x406113[_0x556fbb('0x35')]=qs[_0x556fbb('0x35')](_0x97aa7b[_0x556fbb('0x27')][_0x556fbb('0x35')]));_0x406113['order']=qs[_0x556fbb('0x1d')](_0x97aa7b[_0x556fbb('0x27')]['sort']),_0x406113['where']=qs[_0x556fbb('0x4')](_[_0x556fbb('0x37')](_0x97aa7b[_0x556fbb('0x27')],_0x4f7a55[_0x556fbb('0x4')]),_0x78d02);_0x97aa7b[_0x556fbb('0x27')][_0x556fbb('0x2d')]&&(_0x406113['where']=_[_0x556fbb('0x30')](_0x406113[_0x556fbb('0x7')],{[Op['or']]:_[_0x556fbb('0x1a')](_0x78d02,function(_0x49bf22){const _0x3d617e=_0x556fbb;if(_0x49bf22[_0x3d617e('0x8')]!==_0x3d617e('0x2f')){const _0x4fd8ce={};return _0x4fd8ce[_0x49bf22[_0x3d617e('0x11')]]={[Op[_0x3d617e('0x17')]]:'%'+_0x97aa7b[_0x3d617e('0x27')][_0x3d617e('0x2d')]+'%'},_0x4fd8ce;}})}));_0x406113=_[_0x556fbb('0x30')]({},_0x406113,_0x97aa7b[_0x556fbb('0x23')]);const _0x46dea8={'where':_0x406113[_0x556fbb('0x7')]};return db[_0x556fbb('0xc')]['count'](_0x46dea8)[_0x556fbb('0x1b')](function(_0x262c51){const _0x1afa33=_0x556fbb;return _0x3dac05[_0x1afa33('0x33')]=_0x262c51,_0x97aa7b[_0x1afa33('0x27')][_0x1afa33('0x12')]&&(_0x406113[_0x1afa33('0x2a')]=[{'all':!![]}]),db[_0x1afa33('0xc')]['findAll'](_0x406113);})[_0x556fbb('0x1b')](function(_0x228175){return _0x3dac05['rows']=_0x228175,_0x3dac05;})[_0x556fbb('0x1b')](respondWithFilteredResult(_0x427676,_0x406113))['catch'](handleError(_0x427676,null));},exports[_0x3f4e39('0x5')]=function(_0xb33c7f,_0x2a8738){const _0x1353a1=_0x3f4e39;let _0x397153={'raw':![],'where':{'id':_0xb33c7f[_0x1353a1('0xa')]['id']}};const _0x5a077b={};return _0x5a077b['model']=_[_0x1353a1('0x13')](db['VtigerConfiguration'][_0x1353a1('0x2b')]),_0x5a077b['query']=_[_0x1353a1('0x13')](_0xb33c7f['query']),_0x5a077b['filters']=_[_0x1353a1('0x2e')](_0x5a077b[_0x1353a1('0x14')],_0x5a077b[_0x1353a1('0x27')]),_0x397153['attributes']=_['intersection'](_0x5a077b['model'],qs['fields'](_0xb33c7f[_0x1353a1('0x27')]['fields'])),_0x397153['attributes']=_0x397153[_0x1353a1('0x22')][_0x1353a1('0x32')]?_0x397153[_0x1353a1('0x22')]:_0x5a077b['model'],_0xb33c7f[_0x1353a1('0x27')][_0x1353a1('0x12')]&&(_0x397153[_0x1353a1('0x2a')]=[{'all':!![]}]),_0x397153=_['merge']({},_0x397153,_0xb33c7f[_0x1353a1('0x23')]),db[_0x1353a1('0xc')]['findOne'](_0x397153)[_0x1353a1('0x1b')](handleEntityNotFound(_0x2a8738,null))[_0x1353a1('0x1b')](respondWithResult(_0x2a8738,null))[_0x1353a1('0x20')](handleError(_0x2a8738,null));},exports[_0x3f4e39('0x1f')]=function(_0x5bc193,_0x57a8e4){const _0x507c14=_0x3f4e39;return db[_0x507c14('0xc')][_0x507c14('0x1f')](_0x5bc193[_0x507c14('0x16')],{})['then'](respondWithResult(_0x57a8e4,0xc9))['catch'](handleError(_0x57a8e4,null));},exports['update']=function(_0x2b62b5,_0x56b3ca){const _0x1219e7=_0x3f4e39;return _0x2b62b5[_0x1219e7('0x16')]['id']&&delete _0x2b62b5['body']['id'],db[_0x1219e7('0xc')][_0x1219e7('0x2')]({'where':{'id':_0x2b62b5['params']['id']}})[_0x1219e7('0x1b')](handleEntityNotFound(_0x56b3ca,null))['then'](saveUpdates(_0x2b62b5[_0x1219e7('0x16')],null))['then'](respondWithResult(_0x56b3ca,null))[_0x1219e7('0x20')](handleError(_0x56b3ca,null));},exports[_0x3f4e39('0x28')]=function(_0x245539,_0xa8bdab){const _0x243bb0=_0x3f4e39;return db[_0x243bb0('0xc')]['findOne']({'where':{'id':_0x245539[_0x243bb0('0xa')]['id']}})[_0x243bb0('0x1b')](handleEntityNotFound(_0xa8bdab,null))['then'](removeEntity(_0xa8bdab,null))[_0x243bb0('0x20')](handleError(_0xa8bdab,null));},exports[_0x3f4e39('0x18')]=function(_0x116838,_0x7874){const _0x560eb7=_0x3f4e39;let _0x542b74={};const _0x492b68={};let _0x1b3ac1,_0x2700e1;return db[_0x560eb7('0xc')][_0x560eb7('0x2')]({'where':{'id':_0x116838[_0x560eb7('0xa')]['id']}})[_0x560eb7('0x1b')](handleEntityNotFound(_0x7874,null))['then'](function(_0x3e8ab5){const _0xdc3b3=_0x560eb7;if(_0x3e8ab5)return _0x1b3ac1=_0x3e8ab5,_0x492b68[_0xdc3b3('0x14')]=_[_0xdc3b3('0x13')](db[_0xdc3b3('0x15')][_0xdc3b3('0x2b')]),_0x492b68['query']=_[_0xdc3b3('0x13')](_0x116838['query']),_0x492b68[_0xdc3b3('0x4')]=_[_0xdc3b3('0x2e')](_0x492b68[_0xdc3b3('0x14')],_0x492b68['query']),_0x542b74['attributes']=_[_0xdc3b3('0x2e')](_0x492b68['model'],qs[_0xdc3b3('0x9')](_0x116838[_0xdc3b3('0x27')][_0xdc3b3('0x9')])),_0x542b74['attributes']=_0x542b74[_0xdc3b3('0x22')][_0xdc3b3('0x32')]?_0x542b74['attributes']:_0x492b68[_0xdc3b3('0x14')],_0x542b74[_0xdc3b3('0x0')]=qs[_0xdc3b3('0x1d')](_0x116838[_0xdc3b3('0x27')][_0xdc3b3('0x1d')]),_0x542b74['where']=qs[_0xdc3b3('0x4')](_[_0xdc3b3('0x37')](_0x116838[_0xdc3b3('0x27')],_0x492b68[_0xdc3b3('0x4')])),_0x116838[_0xdc3b3('0x27')]['filter']&&(_0x542b74['where']=_['merge'](_0x542b74[_0xdc3b3('0x7')],{[Op['or']]:_[_0xdc3b3('0x1a')](_0x542b74[_0xdc3b3('0x22')],function(_0x235925){const _0x1421be=_0xdc3b3,_0x2319fe={};return _0x2319fe[_0x235925]={[Op[_0x1421be('0x17')]]:'%'+_0x116838['query']['filter']+'%'},_0x2319fe;})})),_0x542b74=_['merge']({},_0x542b74,_0x116838[_0xdc3b3('0x23')]),_0x1b3ac1[_0xdc3b3('0x18')](_0x542b74);})['then'](function(_0x264d82){const _0x36f154=_0x560eb7;if(_0x264d82)return _0x2700e1=_0x264d82['length'],typeof _0x116838[_0x36f154('0x27')][_0x36f154('0x6')]===_0x36f154('0x25')&&(_0x542b74[_0x36f154('0x1')]=qs[_0x36f154('0x1')](_0x116838['query'][_0x36f154('0x1')]),_0x542b74[_0x36f154('0x35')]=qs[_0x36f154('0x35')](_0x116838[_0x36f154('0x27')]['offset'])),_0x1b3ac1[_0x36f154('0x18')](_0x542b74);})[_0x560eb7('0x1b')](function(_0x167927){if(_0x167927)return _0x167927?{'count':_0x2700e1,'rows':_0x167927}:null;})[_0x560eb7('0x1b')](respondWithResult(_0x7874,null))[_0x560eb7('0x20')](handleError(_0x7874,null));},exports[_0x3f4e39('0x36')]=function(_0x3f55d7,_0x195bf7){const _0x5817ba=_0x3f4e39;let _0x52e32e={};const _0x4bc340={};let _0x1ee5da,_0x1e935f;return db[_0x5817ba('0xc')][_0x5817ba('0x2')]({'where':{'id':_0x3f55d7[_0x5817ba('0xa')]['id']}})[_0x5817ba('0x1b')](handleEntityNotFound(_0x195bf7,null))['then'](function(_0x1da06b){const _0x544b8f=_0x5817ba;if(_0x1da06b)return _0x1ee5da=_0x1da06b,_0x4bc340[_0x544b8f('0x14')]=_[_0x544b8f('0x13')](db[_0x544b8f('0x15')][_0x544b8f('0x2b')]),_0x4bc340[_0x544b8f('0x27')]=_[_0x544b8f('0x13')](_0x3f55d7[_0x544b8f('0x27')]),_0x4bc340[_0x544b8f('0x4')]=_[_0x544b8f('0x2e')](_0x4bc340[_0x544b8f('0x14')],_0x4bc340[_0x544b8f('0x27')]),_0x52e32e[_0x544b8f('0x22')]=_[_0x544b8f('0x2e')](_0x4bc340[_0x544b8f('0x14')],qs[_0x544b8f('0x9')](_0x3f55d7[_0x544b8f('0x27')][_0x544b8f('0x9')])),_0x52e32e[_0x544b8f('0x22')]=_0x52e32e[_0x544b8f('0x22')][_0x544b8f('0x32')]?_0x52e32e['attributes']:_0x4bc340['model'],_0x52e32e[_0x544b8f('0x0')]=qs['sort'](_0x3f55d7[_0x544b8f('0x27')][_0x544b8f('0x1d')]),_0x52e32e[_0x544b8f('0x7')]=qs[_0x544b8f('0x4')](_[_0x544b8f('0x37')](_0x3f55d7[_0x544b8f('0x27')],_0x4bc340[_0x544b8f('0x4')])),_0x3f55d7[_0x544b8f('0x27')][_0x544b8f('0x2d')]&&(_0x52e32e['where']=_['merge'](_0x52e32e[_0x544b8f('0x7')],{[Op['or']]:_[_0x544b8f('0x1a')](_0x52e32e[_0x544b8f('0x22')],function(_0x2b59e7){const _0x2a95b7=_0x544b8f,_0x350cca={};return _0x350cca[_0x2b59e7]={[Op[_0x2a95b7('0x17')]]:'%'+_0x3f55d7['query']['filter']+'%'},_0x350cca;})})),_0x52e32e=_[_0x544b8f('0x30')]({},_0x52e32e,_0x3f55d7[_0x544b8f('0x23')]),_0x1ee5da[_0x544b8f('0x36')](_0x52e32e);})[_0x5817ba('0x1b')](function(_0x266698){const _0x42c8ed=_0x5817ba;if(_0x266698)return _0x1e935f=_0x266698[_0x42c8ed('0x32')],typeof _0x3f55d7[_0x42c8ed('0x27')]['nolimit']===_0x42c8ed('0x25')&&(_0x52e32e[_0x42c8ed('0x1')]=qs[_0x42c8ed('0x1')](_0x3f55d7['query'][_0x42c8ed('0x1')]),_0x52e32e['offset']=qs[_0x42c8ed('0x35')](_0x3f55d7[_0x42c8ed('0x27')][_0x42c8ed('0x35')])),_0x1ee5da[_0x42c8ed('0x36')](_0x52e32e);})[_0x5817ba('0x1b')](function(_0x16ed71){if(_0x16ed71)return _0x16ed71?{'count':_0x1e935f,'rows':_0x16ed71}:null;})['then'](respondWithResult(_0x195bf7,null))[_0x5817ba('0x20')](handleError(_0x195bf7,null));},exports[_0x3f4e39('0x19')]=function(_0x5d56a9,_0x2790e0){const _0x4b04ae=_0x3f4e39;let _0x1f2079={};const _0x25c70a={};let _0x657976,_0x39a476;return db[_0x4b04ae('0xc')][_0x4b04ae('0x2')]({'where':{'id':_0x5d56a9['params']['id']}})['then'](handleEntityNotFound(_0x2790e0,null))['then'](function(_0x5c41a2){const _0x4d17cd=_0x4b04ae;if(_0x5c41a2)return _0x657976=_0x5c41a2,_0x25c70a[_0x4d17cd('0x14')]=_[_0x4d17cd('0x13')](db[_0x4d17cd('0x15')]['rawAttributes']),_0x25c70a[_0x4d17cd('0x27')]=_['keys'](_0x5d56a9[_0x4d17cd('0x27')]),_0x25c70a[_0x4d17cd('0x4')]=_['intersection'](_0x25c70a[_0x4d17cd('0x14')],_0x25c70a['query']),_0x1f2079['attributes']=_['intersection'](_0x25c70a[_0x4d17cd('0x14')],qs[_0x4d17cd('0x9')](_0x5d56a9[_0x4d17cd('0x27')][_0x4d17cd('0x9')])),_0x1f2079[_0x4d17cd('0x22')]=_0x1f2079[_0x4d17cd('0x22')][_0x4d17cd('0x32')]?_0x1f2079[_0x4d17cd('0x22')]:_0x25c70a[_0x4d17cd('0x14')],_0x1f2079[_0x4d17cd('0x0')]=qs[_0x4d17cd('0x1d')](_0x5d56a9[_0x4d17cd('0x27')][_0x4d17cd('0x1d')]),_0x1f2079[_0x4d17cd('0x7')]=qs['filters'](_['pick'](_0x5d56a9[_0x4d17cd('0x27')],_0x25c70a[_0x4d17cd('0x4')])),_0x5d56a9[_0x4d17cd('0x27')][_0x4d17cd('0x2d')]&&(_0x1f2079['where']=_['merge'](_0x1f2079[_0x4d17cd('0x7')],{[Op['or']]:_[_0x4d17cd('0x1a')](_0x1f2079['attributes'],function(_0x50b879){const _0x38ce51=_0x4d17cd,_0x4d11fb={};return _0x4d11fb[_0x50b879]={[Op[_0x38ce51('0x17')]]:'%'+_0x5d56a9['query'][_0x38ce51('0x2d')]+'%'},_0x4d11fb;})})),_0x1f2079=_[_0x4d17cd('0x30')]({},_0x1f2079,_0x5d56a9[_0x4d17cd('0x23')]),_0x657976[_0x4d17cd('0x19')](_0x1f2079);})[_0x4b04ae('0x1b')](function(_0x394433){const _0x4973fa=_0x4b04ae;if(_0x394433)return _0x39a476=_0x394433[_0x4973fa('0x32')],typeof _0x5d56a9[_0x4973fa('0x27')][_0x4973fa('0x6')]===_0x4973fa('0x25')&&(_0x1f2079[_0x4973fa('0x1')]=qs[_0x4973fa('0x1')](_0x5d56a9[_0x4973fa('0x27')]['limit']),_0x1f2079[_0x4973fa('0x35')]=qs[_0x4973fa('0x35')](_0x5d56a9[_0x4973fa('0x27')][_0x4973fa('0x35')])),_0x657976['getDescriptions'](_0x1f2079);})[_0x4b04ae('0x1b')](function(_0x2d502c){if(_0x2d502c)return _0x2d502c?{'count':_0x39a476,'rows':_0x2d502c}:null;})[_0x4b04ae('0x1b')](respondWithResult(_0x2790e0,null))['catch'](handleError(_0x2790e0,null));}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js index c4e3fec..27fa7cf 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js @@ -1 +1 @@ -const a326_0x560b=['./intVtigerConfiguration.attributes','define','exports','int_vtiger_configurations','VtigerConfiguration'];(function(_0x2aaa61,_0x560bd3){const _0x3b3124=function(_0x1852db){while(--_0x1852db){_0x2aaa61['push'](_0x2aaa61['shift']());}};_0x3b3124(++_0x560bd3);}(a326_0x560b,0x105));const a326_0x3b31=function(_0x2aaa61,_0x560bd3){_0x2aaa61=_0x2aaa61-0x0;let _0x3b3124=a326_0x560b[_0x2aaa61];return _0x3b3124;};const _0x2dbb3f=a326_0x3b31;'use strict';const attributes=require(_0x2dbb3f('0x4'));module[_0x2dbb3f('0x1')]=function(_0x1852db){const _0x18467e=_0x2dbb3f,_0x295e49=_0x1852db[_0x18467e('0x0')](_0x18467e('0x3'),attributes,{'tableName':_0x18467e('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x295e49;}; \ No newline at end of file +const a326_0x52cb=['exports','define','int_vtiger_configurations','VtigerConfiguration'];(function(_0x7db17a,_0x52cb97){const _0x2a914e=function(_0x171586){while(--_0x171586){_0x7db17a['push'](_0x7db17a['shift']());}};_0x2a914e(++_0x52cb97);}(a326_0x52cb,0x1e7));const a326_0x2a91=function(_0x7db17a,_0x52cb97){_0x7db17a=_0x7db17a-0x0;let _0x2a914e=a326_0x52cb[_0x7db17a];return _0x2a914e;};const _0x3b623a=a326_0x2a91;'use strict';const attributes=require('./intVtigerConfiguration.attributes');module[_0x3b623a('0x1')]=function(_0x171586){const _0x455dcd=_0x3b623a,_0xce6b=_0x171586[_0x455dcd('0x2')](_0x455dcd('0x0'),attributes,{'tableName':_0x455dcd('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xce6b;}; \ No newline at end of file diff --git a/server/api/intVtigerField/index.js b/server/api/intVtigerField/index.js index a38eb90..26d8acb 100644 --- a/server/api/intVtigerField/index.js +++ b/server/api/intVtigerField/index.js @@ -1 +1 @@ -const a327_0x3f1f=['get','show','destroy','./intVtigerField.controller','put','../../components/auth/service','/:id','index','isAuthenticated','post','express','delete'];(function(_0x4d6fcf,_0x3f1f54){const _0x476caf=function(_0x36fe59){while(--_0x36fe59){_0x4d6fcf['push'](_0x4d6fcf['shift']());}};_0x476caf(++_0x3f1f54);}(a327_0x3f1f,0x74));const a327_0x476c=function(_0x4d6fcf,_0x3f1f54){_0x4d6fcf=_0x4d6fcf-0x0;let _0x476caf=a327_0x3f1f[_0x4d6fcf];return _0x476caf;};const _0x3c7edd=a327_0x476c;'use strict';const express=require(_0x3c7edd('0x2')),router=express['Router'](),auth=require(_0x3c7edd('0x9')),controller=require(_0x3c7edd('0x7'));router['get']('/',auth[_0x3c7edd('0x0')](),controller[_0x3c7edd('0xb')]),router[_0x3c7edd('0x4')](_0x3c7edd('0xa'),auth['isAuthenticated'](),controller[_0x3c7edd('0x5')]),router[_0x3c7edd('0x1')]('/',auth[_0x3c7edd('0x0')](),controller['create']),router[_0x3c7edd('0x8')](_0x3c7edd('0xa'),auth[_0x3c7edd('0x0')](),controller['update']),router[_0x3c7edd('0x3')](_0x3c7edd('0xa'),auth[_0x3c7edd('0x0')](),controller[_0x3c7edd('0x6')]),module['exports']=router; \ No newline at end of file +const a327_0x1992=['destroy','Router','delete','get','./intVtigerField.controller','express','../../components/auth/service','show','exports','index','/:id','put','isAuthenticated'];(function(_0x1515b4,_0x19926c){const _0x426d17=function(_0x1b9357){while(--_0x1b9357){_0x1515b4['push'](_0x1515b4['shift']());}};_0x426d17(++_0x19926c);}(a327_0x1992,0xfb));const a327_0x426d=function(_0x1515b4,_0x19926c){_0x1515b4=_0x1515b4-0x0;let _0x426d17=a327_0x1992[_0x1515b4];return _0x426d17;};const _0xf62147=a327_0x426d;'use strict';const express=require(_0xf62147('0x1')),router=express[_0xf62147('0xa')](),auth=require(_0xf62147('0x2')),controller=require(_0xf62147('0x0'));router['get']('/',auth[_0xf62147('0x8')](),controller[_0xf62147('0x5')]),router[_0xf62147('0xc')](_0xf62147('0x6'),auth['isAuthenticated'](),controller[_0xf62147('0x3')]),router['post']('/',auth[_0xf62147('0x8')](),controller['create']),router[_0xf62147('0x7')]('/:id',auth[_0xf62147('0x8')](),controller['update']),router[_0xf62147('0xb')](_0xf62147('0x6'),auth[_0xf62147('0x8')](),controller[_0xf62147('0x9')]),module[_0xf62147('0x4')]=router; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.attributes.js b/server/api/intVtigerField/intVtigerField.attributes.js index 2d7f037..c454387 100644 --- a/server/api/intVtigerField/intVtigerField.attributes.js +++ b/server/api/intVtigerField/intVtigerField.attributes.js @@ -1 +1 @@ -const a328_0x2b6f=['customVariable','string','exports','BOOLEAN','keyValue','STRING','ENUM'];(function(_0x4d8398,_0x2b6fd6){const _0x40def8=function(_0x524c2e){while(--_0x524c2e){_0x4d8398['push'](_0x4d8398['shift']());}};_0x40def8(++_0x2b6fd6);}(a328_0x2b6f,0x178));const a328_0x40de=function(_0x4d8398,_0x2b6fd6){_0x4d8398=_0x4d8398-0x0;let _0x40def8=a328_0x2b6f[_0x4d8398];return _0x40def8;};const _0x52f880=a328_0x40de;'use strict';const Sequelize=require('sequelize');module[_0x52f880('0x4')]={'type':{'type':Sequelize[_0x52f880('0x1')](_0x52f880('0x3'),'variable',_0x52f880('0x2'),_0x52f880('0x6')),'defaultValue':'string'},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x52f880('0x0')]},'keyType':{'type':Sequelize[_0x52f880('0x1')](_0x52f880('0x3'),'variable',_0x52f880('0x2'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x52f880('0x5')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a328_0x3836=['STRING','customVariable','string','variable','BOOLEAN','ENUM','sequelize'];(function(_0x2e8d00,_0x3836b8){const _0x1128d0=function(_0x92def1){while(--_0x92def1){_0x2e8d00['push'](_0x2e8d00['shift']());}};_0x1128d0(++_0x3836b8);}(a328_0x3836,0x9e));const a328_0x1128=function(_0x2e8d00,_0x3836b8){_0x2e8d00=_0x2e8d00-0x0;let _0x1128d0=a328_0x3836[_0x2e8d00];return _0x1128d0;};const _0x6c485a=a328_0x1128;'use strict';const Sequelize=require(_0x6c485a('0x2'));module['exports']={'type':{'type':Sequelize[_0x6c485a('0x1')](_0x6c485a('0x5'),_0x6c485a('0x6'),_0x6c485a('0x4'),'keyValue'),'defaultValue':_0x6c485a('0x5')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize[_0x6c485a('0x1')]('string',_0x6c485a('0x6'),_0x6c485a('0x4'))},'keyContent':{'type':Sequelize[_0x6c485a('0x3')]},'idField':{'type':Sequelize[_0x6c485a('0x3')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x6c485a('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x6c485a('0x3')]}}; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.controller.js b/server/api/intVtigerField/intVtigerField.controller.js index 7e7645f..0aa48ad 100644 --- a/server/api/intVtigerField/intVtigerField.controller.js +++ b/server/api/intVtigerField/intVtigerField.controller.js @@ -1 +1 @@ -const a329_0x3ce4=['length','status','type','set','api','end','then','nolimit','include','VtigerField','VIRTUAL','update','rawAttributes','count','sort','offset','filter','includeAll','show','json','options','name','model','pick','body','destroy','attributes','merge','key','send','findAll','lodash','like','map','sendStatus','rows','index','limit','error','findOne','../../mysqldb','fields','stack','catch','keys','query','params','fieldName','intersection','where','create','filters'];(function(_0x3dbd10,_0x3ce491){const _0x332712=function(_0x43d8b0){while(--_0x43d8b0){_0x3dbd10['push'](_0x3dbd10['shift']());}};_0x332712(++_0x3ce491);}(a329_0x3ce4,0x92));const a329_0x3327=function(_0x3dbd10,_0x3ce491){_0x3dbd10=_0x3dbd10-0x0;let _0x332712=a329_0x3ce4[_0x3dbd10];return _0x332712;};const _0x109705=a329_0x3327;'use strict';const _=require(_0x109705('0x29')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x109705('0xe')),db=require(_0x109705('0x32'))['db'],{Op}=require('sequelize');function respondWithResult(_0x43d8b0,_0x453beb){return _0x453beb=_0x453beb||0xc8,function(_0x1e3083){const _0xb39cc4=a329_0x3327;if(_0x1e3083)return _0x43d8b0[_0xb39cc4('0xb')](_0x453beb)['json'](_0x1e3083);};}function respondWithFilteredResult(_0x5e297b,_0x3d88ba){return function(_0x386596){const _0x8b21ea=a329_0x3327;if(_0x386596){const _0xa17bfb=_0x386596[_0x8b21ea('0x17')],_0xd19a2=_0x3d88ba[_0x8b21ea('0x19')];let _0x55a3c8=_0x3d88ba['offset']+_0x3d88ba[_0x8b21ea('0x2f')],_0x2eea49;return _0x55a3c8>=_0xa17bfb?(_0x55a3c8=_0xa17bfb,_0x2eea49=0xc8):_0x2eea49=0xce,_0x5e297b[_0x8b21ea('0xb')](_0x2eea49),_0x5e297b[_0x8b21ea('0xd')]('Content-Range',_0xd19a2+'-'+_0x55a3c8+'/'+_0xa17bfb)[_0x8b21ea('0x1d')](_0x386596);}return null;};}function saveUpdates(_0x48d7ec){return function(_0xedd2fd){const _0x307564=a329_0x3327;if(_0xedd2fd)return _0xedd2fd[_0x307564('0x15')](_0x48d7ec)[_0x307564('0x10')](function(_0x44cb35){return _0x44cb35;});return null;};}function removeEntity(_0x492aa4){return function(_0x55cb3d){if(_0x55cb3d)return _0x55cb3d['destroy']()['then'](function(){const _0x305d69=a329_0x3327;_0x492aa4[_0x305d69('0xb')](0xcc)[_0x305d69('0xf')]();});};}function handleEntityNotFound(_0x43f603){return function(_0x286341){const _0x30b57d=a329_0x3327;return!_0x286341&&_0x43f603[_0x30b57d('0x2c')](0x194),_0x286341;};}function handleError(_0x397a1e,_0x4e6805){return _0x4e6805=_0x4e6805||0x1f4,function(_0x5dfec8){const _0x223fe5=a329_0x3327;logger[_0x223fe5('0x30')](_0x5dfec8[_0x223fe5('0x0')]),_0x5dfec8[_0x223fe5('0x1f')]&&delete _0x5dfec8[_0x223fe5('0x1f')],_0x397a1e[_0x223fe5('0xb')](_0x4e6805)[_0x223fe5('0x27')](_0x5dfec8);};}exports[_0x109705('0x2e')]=function(_0x5a659b,_0x330a89){const _0x2f0653=_0x109705;let _0x5c9402={};const _0x3e0aa3={},_0x3e9920={'count':0x0,'rows':[]},_0x3e64fa=_['map'](db[_0x2f0653('0x13')][_0x2f0653('0x16')],function(_0x3c709b){const _0x12bae7=_0x2f0653;return{'name':_0x3c709b[_0x12bae7('0x5')],'type':_0x3c709b[_0x12bae7('0xc')][_0x12bae7('0x26')]};});_0x3e0aa3[_0x2f0653('0x20')]=_[_0x2f0653('0x2b')](_0x3e64fa,'name'),_0x3e0aa3[_0x2f0653('0x3')]=_[_0x2f0653('0x2')](_0x5a659b['query']),_0x3e0aa3[_0x2f0653('0x9')]=_[_0x2f0653('0x6')](_0x3e0aa3['model'],_0x3e0aa3[_0x2f0653('0x3')]),_0x5c9402['attributes']=_[_0x2f0653('0x6')](_0x3e0aa3[_0x2f0653('0x20')],qs[_0x2f0653('0x33')](_0x5a659b[_0x2f0653('0x3')][_0x2f0653('0x33')])),_0x5c9402[_0x2f0653('0x24')]=_0x5c9402[_0x2f0653('0x24')][_0x2f0653('0xa')]?_0x5c9402[_0x2f0653('0x24')]:_0x3e0aa3['model'];typeof _0x5a659b['query'][_0x2f0653('0x11')]==='undefined'&&(_0x5c9402[_0x2f0653('0x2f')]=qs[_0x2f0653('0x2f')](_0x5a659b[_0x2f0653('0x3')]['limit']),_0x5c9402[_0x2f0653('0x19')]=qs['offset'](_0x5a659b[_0x2f0653('0x3')][_0x2f0653('0x19')]));_0x5c9402['order']=qs['sort'](_0x5a659b['query'][_0x2f0653('0x18')]),_0x5c9402[_0x2f0653('0x7')]=qs[_0x2f0653('0x9')](_[_0x2f0653('0x21')](_0x5a659b[_0x2f0653('0x3')],_0x3e0aa3[_0x2f0653('0x9')]),_0x3e64fa);_0x5a659b['query'][_0x2f0653('0x1a')]&&(_0x5c9402[_0x2f0653('0x7')]=_[_0x2f0653('0x25')](_0x5c9402[_0x2f0653('0x7')],{[Op['or']]:_[_0x2f0653('0x2b')](_0x3e64fa,function(_0x178b43){const _0x5a6816=_0x2f0653;if(_0x178b43[_0x5a6816('0xc')]!==_0x5a6816('0x14')){const _0x4c5fd1={};return _0x4c5fd1[_0x178b43[_0x5a6816('0x1f')]]={[Op[_0x5a6816('0x2a')]]:'%'+_0x5a659b[_0x5a6816('0x3')][_0x5a6816('0x1a')]+'%'},_0x4c5fd1;}})}));_0x5c9402=_[_0x2f0653('0x25')]({},_0x5c9402,_0x5a659b[_0x2f0653('0x1e')]);const _0xcbf88e={'where':_0x5c9402[_0x2f0653('0x7')]};return db[_0x2f0653('0x13')][_0x2f0653('0x17')](_0xcbf88e)['then'](function(_0x46440b){const _0x456963=_0x2f0653;return _0x3e9920['count']=_0x46440b,_0x5a659b[_0x456963('0x3')]['includeAll']&&(_0x5c9402[_0x456963('0x12')]=[{'all':!![]}]),db[_0x456963('0x13')][_0x456963('0x28')](_0x5c9402);})['then'](function(_0x9eb2c1){const _0x177fa6=_0x2f0653;return _0x3e9920[_0x177fa6('0x2d')]=_0x9eb2c1,_0x3e9920;})[_0x2f0653('0x10')](respondWithFilteredResult(_0x330a89,_0x5c9402))[_0x2f0653('0x1')](handleError(_0x330a89,null));},exports[_0x109705('0x1c')]=function(_0x13bc31,_0x527507){const _0x5ef3ac=_0x109705;let _0x3b3d37={'raw':!![],'where':{'id':_0x13bc31[_0x5ef3ac('0x4')]['id']}};const _0x132660={};return _0x132660[_0x5ef3ac('0x20')]=_['keys'](db[_0x5ef3ac('0x13')][_0x5ef3ac('0x16')]),_0x132660[_0x5ef3ac('0x3')]=_[_0x5ef3ac('0x2')](_0x13bc31['query']),_0x132660[_0x5ef3ac('0x9')]=_[_0x5ef3ac('0x6')](_0x132660[_0x5ef3ac('0x20')],_0x132660[_0x5ef3ac('0x3')]),_0x3b3d37[_0x5ef3ac('0x24')]=_['intersection'](_0x132660[_0x5ef3ac('0x20')],qs[_0x5ef3ac('0x33')](_0x13bc31[_0x5ef3ac('0x3')][_0x5ef3ac('0x33')])),_0x3b3d37['attributes']=_0x3b3d37[_0x5ef3ac('0x24')]['length']?_0x3b3d37[_0x5ef3ac('0x24')]:_0x132660['model'],_0x13bc31['query'][_0x5ef3ac('0x1b')]&&(_0x3b3d37['include']=[{'all':!![]}]),_0x3b3d37=_[_0x5ef3ac('0x25')]({},_0x3b3d37,_0x13bc31[_0x5ef3ac('0x1e')]),db['VtigerField']['findOne'](_0x3b3d37)[_0x5ef3ac('0x10')](handleEntityNotFound(_0x527507,null))[_0x5ef3ac('0x10')](respondWithResult(_0x527507,null))[_0x5ef3ac('0x1')](handleError(_0x527507,null));},exports[_0x109705('0x8')]=function(_0x5b4010,_0x2f4475){const _0x4b9918=_0x109705;return db[_0x4b9918('0x13')]['create'](_0x5b4010[_0x4b9918('0x22')],{})['then'](respondWithResult(_0x2f4475,0xc9))[_0x4b9918('0x1')](handleError(_0x2f4475,null));},exports[_0x109705('0x15')]=function(_0xfc051d,_0x2bbd51){const _0x1a505a=_0x109705;return _0xfc051d[_0x1a505a('0x22')]['id']&&delete _0xfc051d[_0x1a505a('0x22')]['id'],db[_0x1a505a('0x13')][_0x1a505a('0x31')]({'where':{'id':_0xfc051d[_0x1a505a('0x4')]['id']}})[_0x1a505a('0x10')](handleEntityNotFound(_0x2bbd51,null))[_0x1a505a('0x10')](saveUpdates(_0xfc051d['body'],null))['then'](respondWithResult(_0x2bbd51,null))[_0x1a505a('0x1')](handleError(_0x2bbd51,null));},exports[_0x109705('0x23')]=function(_0x59ea9a,_0x3a8beb){const _0x355179=_0x109705;return db['VtigerField']['findOne']({'where':{'id':_0x59ea9a[_0x355179('0x4')]['id']}})[_0x355179('0x10')](handleEntityNotFound(_0x3a8beb,null))[_0x355179('0x10')](removeEntity(_0x3a8beb,null))[_0x355179('0x1')](handleError(_0x3a8beb,null));}; \ No newline at end of file +const a329_0x161b=['merge','status','../../config/logger','VtigerField','query','destroy','count','sendStatus','map','where','rows','include','then','limit','catch','order','lodash','attributes','length','name','set','options','body','end','nolimit','filters','type','../../mysqldb','rawAttributes','VIRTUAL','findOne','sort','key','index','send','keys','includeAll','undefined','filter','create','api','params','fields','offset','show','intersection','model','stack','json','findAll','like','../../components/parsers/qs'];(function(_0x4f7ea3,_0x161bdf){const _0x4d35b0=function(_0x10e1b8){while(--_0x10e1b8){_0x4f7ea3['push'](_0x4f7ea3['shift']());}};_0x4d35b0(++_0x161bdf);}(a329_0x161b,0x188));const a329_0x4d35=function(_0x4f7ea3,_0x161bdf){_0x4f7ea3=_0x4f7ea3-0x0;let _0x4d35b0=a329_0x161b[_0x4f7ea3];return _0x4d35b0;};const _0x3900ea=a329_0x4d35;'use strict';const _=require(_0x3900ea('0x28')),qs=require(_0x3900ea('0x17')),logger=require(_0x3900ea('0x1a'))(_0x3900ea('0xc')),db=require(_0x3900ea('0x33'))['db'],{Op}=require('sequelize');function respondWithResult(_0x10e1b8,_0x140ba0){return _0x140ba0=_0x140ba0||0xc8,function(_0x361860){const _0x78f9a=a329_0x4d35;if(_0x361860)return _0x10e1b8['status'](_0x140ba0)[_0x78f9a('0x14')](_0x361860);};}function respondWithFilteredResult(_0x1a8f48,_0x443e33){return function(_0x4ac41b){const _0xae47a0=a329_0x4d35;if(_0x4ac41b){const _0x2c618e=_0x4ac41b[_0xae47a0('0x1e')],_0x716aa0=_0x443e33[_0xae47a0('0xf')];let _0x3e0b8d=_0x443e33[_0xae47a0('0xf')]+_0x443e33[_0xae47a0('0x25')],_0x97f7b4;return _0x3e0b8d>=_0x2c618e?(_0x3e0b8d=_0x2c618e,_0x97f7b4=0xc8):_0x97f7b4=0xce,_0x1a8f48['status'](_0x97f7b4),_0x1a8f48[_0xae47a0('0x2c')]('Content-Range',_0x716aa0+'-'+_0x3e0b8d+'/'+_0x2c618e)[_0xae47a0('0x14')](_0x4ac41b);}return null;};}function saveUpdates(_0x5eb027){return function(_0x1f3b19){if(_0x1f3b19)return _0x1f3b19['update'](_0x5eb027)['then'](function(_0x4ea958){return _0x4ea958;});return null;};}function removeEntity(_0x27c521){return function(_0x7bbaa6){const _0x359241=a329_0x4d35;if(_0x7bbaa6)return _0x7bbaa6[_0x359241('0x1d')]()['then'](function(){const _0x2a7a2a=_0x359241;_0x27c521[_0x2a7a2a('0x19')](0xcc)[_0x2a7a2a('0x2f')]();});};}function handleEntityNotFound(_0x39f7a4){return function(_0xf7a506){const _0x409b91=a329_0x4d35;return!_0xf7a506&&_0x39f7a4[_0x409b91('0x1f')](0x194),_0xf7a506;};}function handleError(_0x2a09bb,_0x4e94eb){return _0x4e94eb=_0x4e94eb||0x1f4,function(_0x279f06){const _0x3a0b8a=a329_0x4d35;logger['error'](_0x279f06[_0x3a0b8a('0x13')]),_0x279f06[_0x3a0b8a('0x2b')]&&delete _0x279f06[_0x3a0b8a('0x2b')],_0x2a09bb[_0x3a0b8a('0x19')](_0x4e94eb)[_0x3a0b8a('0x6')](_0x279f06);};}exports[_0x3900ea('0x5')]=function(_0x513d93,_0x23e4b1){const _0x5a072e=_0x3900ea;let _0x14c0d8={};const _0xee3b1a={},_0x1ba810={'count':0x0,'rows':[]},_0x4ff1de=_[_0x5a072e('0x20')](db['VtigerField']['rawAttributes'],function(_0xc53c5b){const _0xd87b1=_0x5a072e;return{'name':_0xc53c5b['fieldName'],'type':_0xc53c5b[_0xd87b1('0x32')][_0xd87b1('0x4')]};});_0xee3b1a[_0x5a072e('0x12')]=_[_0x5a072e('0x20')](_0x4ff1de,_0x5a072e('0x2b')),_0xee3b1a['query']=_['keys'](_0x513d93[_0x5a072e('0x1c')]),_0xee3b1a['filters']=_['intersection'](_0xee3b1a[_0x5a072e('0x12')],_0xee3b1a[_0x5a072e('0x1c')]),_0x14c0d8['attributes']=_[_0x5a072e('0x11')](_0xee3b1a[_0x5a072e('0x12')],qs['fields'](_0x513d93[_0x5a072e('0x1c')][_0x5a072e('0xe')])),_0x14c0d8[_0x5a072e('0x29')]=_0x14c0d8[_0x5a072e('0x29')][_0x5a072e('0x2a')]?_0x14c0d8['attributes']:_0xee3b1a[_0x5a072e('0x12')];typeof _0x513d93[_0x5a072e('0x1c')][_0x5a072e('0x30')]===_0x5a072e('0x9')&&(_0x14c0d8[_0x5a072e('0x25')]=qs[_0x5a072e('0x25')](_0x513d93[_0x5a072e('0x1c')][_0x5a072e('0x25')]),_0x14c0d8[_0x5a072e('0xf')]=qs[_0x5a072e('0xf')](_0x513d93[_0x5a072e('0x1c')][_0x5a072e('0xf')]));_0x14c0d8[_0x5a072e('0x27')]=qs[_0x5a072e('0x3')](_0x513d93[_0x5a072e('0x1c')][_0x5a072e('0x3')]),_0x14c0d8[_0x5a072e('0x21')]=qs[_0x5a072e('0x31')](_['pick'](_0x513d93[_0x5a072e('0x1c')],_0xee3b1a[_0x5a072e('0x31')]),_0x4ff1de);_0x513d93['query'][_0x5a072e('0xa')]&&(_0x14c0d8[_0x5a072e('0x21')]=_[_0x5a072e('0x18')](_0x14c0d8[_0x5a072e('0x21')],{[Op['or']]:_[_0x5a072e('0x20')](_0x4ff1de,function(_0x36c9b1){const _0x2f0d93=_0x5a072e;if(_0x36c9b1[_0x2f0d93('0x32')]!==_0x2f0d93('0x1')){const _0x12c084={};return _0x12c084[_0x36c9b1[_0x2f0d93('0x2b')]]={[Op[_0x2f0d93('0x16')]]:'%'+_0x513d93[_0x2f0d93('0x1c')][_0x2f0d93('0xa')]+'%'},_0x12c084;}})}));_0x14c0d8=_[_0x5a072e('0x18')]({},_0x14c0d8,_0x513d93[_0x5a072e('0x2d')]);const _0x565c7f={'where':_0x14c0d8[_0x5a072e('0x21')]};return db[_0x5a072e('0x1b')][_0x5a072e('0x1e')](_0x565c7f)[_0x5a072e('0x24')](function(_0xb8bee8){const _0x23cca4=_0x5a072e;return _0x1ba810[_0x23cca4('0x1e')]=_0xb8bee8,_0x513d93['query'][_0x23cca4('0x8')]&&(_0x14c0d8[_0x23cca4('0x23')]=[{'all':!![]}]),db[_0x23cca4('0x1b')][_0x23cca4('0x15')](_0x14c0d8);})[_0x5a072e('0x24')](function(_0x2a4917){const _0x323ca2=_0x5a072e;return _0x1ba810[_0x323ca2('0x22')]=_0x2a4917,_0x1ba810;})['then'](respondWithFilteredResult(_0x23e4b1,_0x14c0d8))[_0x5a072e('0x26')](handleError(_0x23e4b1,null));},exports[_0x3900ea('0x10')]=function(_0xd86e44,_0x452daf){const _0x5b9442=_0x3900ea;let _0xa4389f={'raw':!![],'where':{'id':_0xd86e44['params']['id']}};const _0x3f2fac={};return _0x3f2fac[_0x5b9442('0x12')]=_['keys'](db[_0x5b9442('0x1b')][_0x5b9442('0x0')]),_0x3f2fac['query']=_[_0x5b9442('0x7')](_0xd86e44[_0x5b9442('0x1c')]),_0x3f2fac['filters']=_[_0x5b9442('0x11')](_0x3f2fac[_0x5b9442('0x12')],_0x3f2fac['query']),_0xa4389f[_0x5b9442('0x29')]=_[_0x5b9442('0x11')](_0x3f2fac['model'],qs['fields'](_0xd86e44[_0x5b9442('0x1c')][_0x5b9442('0xe')])),_0xa4389f[_0x5b9442('0x29')]=_0xa4389f[_0x5b9442('0x29')]['length']?_0xa4389f[_0x5b9442('0x29')]:_0x3f2fac['model'],_0xd86e44[_0x5b9442('0x1c')][_0x5b9442('0x8')]&&(_0xa4389f[_0x5b9442('0x23')]=[{'all':!![]}]),_0xa4389f=_['merge']({},_0xa4389f,_0xd86e44[_0x5b9442('0x2d')]),db[_0x5b9442('0x1b')]['findOne'](_0xa4389f)[_0x5b9442('0x24')](handleEntityNotFound(_0x452daf,null))[_0x5b9442('0x24')](respondWithResult(_0x452daf,null))[_0x5b9442('0x26')](handleError(_0x452daf,null));},exports[_0x3900ea('0xb')]=function(_0x3d27fc,_0x2501b6){const _0x305980=_0x3900ea;return db[_0x305980('0x1b')][_0x305980('0xb')](_0x3d27fc[_0x305980('0x2e')],{})[_0x305980('0x24')](respondWithResult(_0x2501b6,0xc9))[_0x305980('0x26')](handleError(_0x2501b6,null));},exports['update']=function(_0x34dbb1,_0x395ab4){const _0x19a2f4=_0x3900ea;return _0x34dbb1[_0x19a2f4('0x2e')]['id']&&delete _0x34dbb1['body']['id'],db[_0x19a2f4('0x1b')]['findOne']({'where':{'id':_0x34dbb1[_0x19a2f4('0xd')]['id']}})[_0x19a2f4('0x24')](handleEntityNotFound(_0x395ab4,null))[_0x19a2f4('0x24')](saveUpdates(_0x34dbb1[_0x19a2f4('0x2e')],null))[_0x19a2f4('0x24')](respondWithResult(_0x395ab4,null))['catch'](handleError(_0x395ab4,null));},exports['destroy']=function(_0x2b56ba,_0x53e736){const _0x9f1679=_0x3900ea;return db['VtigerField'][_0x9f1679('0x2')]({'where':{'id':_0x2b56ba[_0x9f1679('0xd')]['id']}})[_0x9f1679('0x24')](handleEntityNotFound(_0x53e736,null))[_0x9f1679('0x24')](removeEntity(_0x53e736,null))[_0x9f1679('0x26')](handleError(_0x53e736,null));}; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.model.js b/server/api/intVtigerField/intVtigerField.model.js index 7f58494..2c1291c 100644 --- a/server/api/intVtigerField/intVtigerField.model.js +++ b/server/api/intVtigerField/intVtigerField.model.js @@ -1 +1 @@ -const a330_0x2b8e=['./intVtigerField.attributes','vtiger_unique_index','FieldId','VtigerField','exports','define','idField'];(function(_0x3456dd,_0x2b8e79){const _0x3f2102=function(_0x10408f){while(--_0x10408f){_0x3456dd['push'](_0x3456dd['shift']());}};_0x3f2102(++_0x2b8e79);}(a330_0x2b8e,0x16d));const a330_0x3f21=function(_0x3456dd,_0x2b8e79){_0x3456dd=_0x3456dd-0x0;let _0x3f2102=a330_0x2b8e[_0x3456dd];return _0x3f2102;};const _0x177bb2=a330_0x3f21;'use strict';const attributes=require(_0x177bb2('0x6'));module[_0x177bb2('0x3')]=function(_0x10408f){const _0x22804e=_0x177bb2,_0x29a4f9=_0x10408f[_0x22804e('0x4')](_0x22804e('0x2'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':_0x22804e('0x0'),'fields':[_0x22804e('0x5'),_0x22804e('0x1')],'unique':!![]}],'timestamps':!![]});return _0x29a4f9;}; \ No newline at end of file +const a330_0x336e=['./intVtigerField.attributes','define','VtigerField','FieldId'];(function(_0x2fc902,_0x336e72){const _0x5fba20=function(_0x2eda31){while(--_0x2eda31){_0x2fc902['push'](_0x2fc902['shift']());}};_0x5fba20(++_0x336e72);}(a330_0x336e,0xe4));const a330_0x5fba=function(_0x2fc902,_0x336e72){_0x2fc902=_0x2fc902-0x0;let _0x5fba20=a330_0x336e[_0x2fc902];return _0x5fba20;};const _0x5ae1be=a330_0x5fba;'use strict';const attributes=require(_0x5ae1be('0x0'));module['exports']=function(_0x2eda31){const _0x2ed7e5=_0x5ae1be,_0x1c61b9=_0x2eda31[_0x2ed7e5('0x1')](_0x2ed7e5('0x2'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':'vtiger_unique_index','fields':['idField',_0x2ed7e5('0x3')],'unique':!![]}],'timestamps':!![]});return _0x1c61b9;}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/index.js b/server/api/intZendeskAccount/index.js index 3d85940..465fad8 100644 --- a/server/api/intZendeskAccount/index.js +++ b/server/api/intZendeskAccount/index.js @@ -1 +1 @@ -const a331_0x2ac9=['express','create','exports','/:id/configurations','get','./intZendeskAccount.controller','post','/:id','show','update','put','../../components/auth/service','Router','destroy','addConfiguration','index','isAuthenticated','delete'];(function(_0x306bcf,_0x2ac9b3){const _0x538fd4=function(_0x7e3482){while(--_0x7e3482){_0x306bcf['push'](_0x306bcf['shift']());}};_0x538fd4(++_0x2ac9b3);}(a331_0x2ac9,0x136));const a331_0x538f=function(_0x306bcf,_0x2ac9b3){_0x306bcf=_0x306bcf-0x0;let _0x538fd4=a331_0x2ac9[_0x306bcf];return _0x538fd4;};const _0x483e3f=a331_0x538f;'use strict';const express=require(_0x483e3f('0xe')),router=express[_0x483e3f('0x8')](),auth=require(_0x483e3f('0x7')),controller=require(_0x483e3f('0x1'));router['get']('/',auth[_0x483e3f('0xc')](),controller[_0x483e3f('0xb')]),router['get'](_0x483e3f('0x3'),auth['isAuthenticated'](),controller[_0x483e3f('0x4')]),router[_0x483e3f('0x0')](_0x483e3f('0x11'),auth[_0x483e3f('0xc')](),controller['getConfigurations']),router[_0x483e3f('0x0')]('/:id/fields',auth[_0x483e3f('0xc')](),controller['getFields']),router[_0x483e3f('0x2')]('/',auth[_0x483e3f('0xc')](),controller[_0x483e3f('0xf')]),router[_0x483e3f('0x2')]('/:id/configurations',auth[_0x483e3f('0xc')](),controller[_0x483e3f('0xa')]),router[_0x483e3f('0x6')](_0x483e3f('0x3'),auth[_0x483e3f('0xc')](),controller[_0x483e3f('0x5')]),router[_0x483e3f('0xd')](_0x483e3f('0x3'),auth[_0x483e3f('0xc')](),controller[_0x483e3f('0x9')]),module[_0x483e3f('0x10')]=router; \ No newline at end of file +const a331_0x3715=['create','post','/:id/fields','exports','../../components/auth/service','/:id','destroy','getConfigurations','./intZendeskAccount.controller','isAuthenticated','get','/:id/configurations','show','express','put','getFields','Router','addConfiguration'];(function(_0x2c96a0,_0x3715d8){const _0x1f9f6e=function(_0x8df34){while(--_0x8df34){_0x2c96a0['push'](_0x2c96a0['shift']());}};_0x1f9f6e(++_0x3715d8);}(a331_0x3715,0x16c));const a331_0x1f9f=function(_0x2c96a0,_0x3715d8){_0x2c96a0=_0x2c96a0-0x0;let _0x1f9f6e=a331_0x3715[_0x2c96a0];return _0x1f9f6e;};const _0x1e3d72=a331_0x1f9f;'use strict';const express=require(_0x1e3d72('0x9')),router=express[_0x1e3d72('0xc')](),auth=require(_0x1e3d72('0x0')),controller=require(_0x1e3d72('0x4'));router['get']('/',auth[_0x1e3d72('0x5')](),controller['index']),router[_0x1e3d72('0x6')](_0x1e3d72('0x1'),auth[_0x1e3d72('0x5')](),controller[_0x1e3d72('0x8')]),router[_0x1e3d72('0x6')](_0x1e3d72('0x7'),auth[_0x1e3d72('0x5')](),controller[_0x1e3d72('0x3')]),router[_0x1e3d72('0x6')](_0x1e3d72('0x10'),auth[_0x1e3d72('0x5')](),controller[_0x1e3d72('0xb')]),router[_0x1e3d72('0xf')]('/',auth[_0x1e3d72('0x5')](),controller[_0x1e3d72('0xe')]),router['post'](_0x1e3d72('0x7'),auth[_0x1e3d72('0x5')](),controller[_0x1e3d72('0xd')]),router[_0x1e3d72('0xa')]('/:id',auth[_0x1e3d72('0x5')](),controller['update']),router['delete'](_0x1e3d72('0x1'),auth['isAuthenticated'](),controller[_0x1e3d72('0x2')]),module[_0x1e3d72('0x11')]=router; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.attributes.js b/server/api/intZendeskAccount/intZendeskAccount.attributes.js index 6bd214e..2c01135 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.attributes.js +++ b/server/api/intZendeskAccount/intZendeskAccount.attributes.js @@ -1 +1 @@ -const a332_0x1d4a=['username','token','STRING','password','ENUM','sequelize','remoteUri','newTab'];(function(_0x3ab654,_0x1d4a9a){const _0x50a9b9=function(_0x30cbcd){while(--_0x30cbcd){_0x3ab654['push'](_0x3ab654['shift']());}};_0x50a9b9(++_0x1d4a9a);}(a332_0x1d4a,0x78));const a332_0x50a9=function(_0x3ab654,_0x1d4a9a){_0x3ab654=_0x3ab654-0x0;let _0x50a9b9=a332_0x1d4a[_0x3ab654];return _0x50a9b9;};const _0x2cd6fa=a332_0x50a9;'use strict';const Sequelize=require(_0x2cd6fa('0x5'));module['exports']={'name':{'type':Sequelize[_0x2cd6fa('0x2')]},'description':{'type':Sequelize[_0x2cd6fa('0x2')]},'username':{'type':Sequelize[_0x2cd6fa('0x2')],'unique':_0x2cd6fa('0x0')},'password':{'type':Sequelize['STRING']},'token':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize['STRING'],'unique':_0x2cd6fa('0x6')},'authType':{'type':Sequelize[_0x2cd6fa('0x4')](_0x2cd6fa('0x3'),_0x2cd6fa('0x1')),'defaultValue':_0x2cd6fa('0x3')},'serverUrl':{'type':Sequelize[_0x2cd6fa('0x2')]},'type':{'type':Sequelize['ENUM']('integrationTab',_0x2cd6fa('0x7')),'defaultValue':'integrationTab'}}; \ No newline at end of file +const a332_0x1365=['integrationTab','remoteUri','password','STRING','username','token','ENUM','newTab','exports'];(function(_0x29dd0c,_0x13654d){const _0x2f8ff3=function(_0x4d2998){while(--_0x4d2998){_0x29dd0c['push'](_0x29dd0c['shift']());}};_0x2f8ff3(++_0x13654d);}(a332_0x1365,0x1e6));const a332_0x2f8f=function(_0x29dd0c,_0x13654d){_0x29dd0c=_0x29dd0c-0x0;let _0x2f8ff3=a332_0x1365[_0x29dd0c];return _0x2f8ff3;};const _0xf2a57f=a332_0x2f8f;'use strict';const Sequelize=require('sequelize');module[_0xf2a57f('0x8')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0xf2a57f('0x3')]},'username':{'type':Sequelize['STRING'],'unique':_0xf2a57f('0x4')},'password':{'type':Sequelize['STRING']},'token':{'type':Sequelize[_0xf2a57f('0x3')]},'remoteUri':{'type':Sequelize[_0xf2a57f('0x3')],'unique':_0xf2a57f('0x1')},'authType':{'type':Sequelize[_0xf2a57f('0x6')](_0xf2a57f('0x2'),_0xf2a57f('0x5')),'defaultValue':'password'},'serverUrl':{'type':Sequelize[_0xf2a57f('0x3')]},'type':{'type':Sequelize['ENUM'](_0xf2a57f('0x0'),_0xf2a57f('0x7')),'defaultValue':_0xf2a57f('0x0')}}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.controller.js b/server/api/intZendeskAccount/intZendeskAccount.controller.js index 26afde3..31986c5 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.controller.js +++ b/server/api/intZendeskAccount/intZendeskAccount.controller.js @@ -1 +1 @@ -const a333_0xffea=['merge','request-promise-native','send','../../mysqldb','ZendeskConfiguration','like','getConfigurations','ticket_fields','description','subject','create','addConfiguration','getDescriptions','authType','ZendeskField','format','%s/%s','ZendeskAccount','findAll','params','fields','Sequelize','../../config/logger','token','body','undefined','filters','getSubjects','findOne','slice','destroy','custom_field_options','order','length','base64','options','offset','password','sequelize','stack','name','type','nolimit','Basic\x20%s','include','includeAll','toString','map','getFields,\x20%s,\x20%s,\x20%s','intersection','end','attributes','update','%s:%s','Descriptions','rawAttributes','pick','position','count','from','error','substring','then','filter','lodash','keys','where','ValidationError','remoteUri','index','sort','query','statusCode','fieldName','username','Content-Range','model','json','api','catch','channel','Subjects','../../components/parsers/qs','key','includes','GET','util','status','system_field_options','remove','test','lastIndexOf','getFields','limit','Unknown\x20authentication\x20type'];(function(_0x3b4675,_0xffea21){const _0x2d78f5=function(_0x5954a8){while(--_0x5954a8){_0x3b4675['push'](_0x3b4675['shift']());}};_0x2d78f5(++_0xffea21);}(a333_0xffea,0x121));const a333_0x2d78=function(_0x3b4675,_0xffea21){_0x3b4675=_0x3b4675-0x0;let _0x2d78f5=a333_0xffea[_0x3b4675];return _0x2d78f5;};const _0x4f33b0=a333_0x2d78;'use strict';const rp=require(_0x4f33b0('0x5c')),util=require(_0x4f33b0('0x52')),_=require(_0x4f33b0('0x3c')),qs=require(_0x4f33b0('0x4e')),logger=require(_0x4f33b0('0x12'))(_0x4f33b0('0x4a')),db=require(_0x4f33b0('0x5e'))['db'],{Op}=require(_0x4f33b0('0x22')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x5954a8,_0x31bd47){return _0x31bd47=_0x31bd47||0xc8,function(_0x2a321a){const _0x2cb084=a333_0x2d78;if(_0x2a321a)return _0x5954a8[_0x2cb084('0x53')](_0x31bd47)[_0x2cb084('0x49')](_0x2a321a);};}function respondWithFilteredResult(_0x316243,_0x300777){return function(_0x2bc528){const _0x468978=a333_0x2d78;if(_0x2bc528){const _0xe6dd8e=_0x2bc528[_0x468978('0x36')],_0x2e17ce=_0x300777[_0x468978('0x20')];let _0x248d3c=_0x300777[_0x468978('0x20')]+_0x300777[_0x468978('0x59')],_0xfb8802;return _0x248d3c>=_0xe6dd8e?(_0x248d3c=_0xe6dd8e,_0xfb8802=0xc8):_0xfb8802=0xce,_0x316243[_0x468978('0x53')](_0xfb8802),_0x316243['set'](_0x468978('0x47'),_0x2e17ce+'-'+_0x248d3c+'/'+_0xe6dd8e)[_0x468978('0x49')](_0x2bc528);}return null;};}function saveUpdates(_0x158a52){return function(_0x5c0d0a){const _0x41671a=a333_0x2d78;if(_0x5c0d0a)return _0x5c0d0a[_0x41671a('0x30')](_0x158a52)[_0x41671a('0x3a')](function(_0x124915){return _0x124915;});return null;};}function removeEntity(_0x39ad35){return function(_0x516fc8){const _0x57c6fa=a333_0x2d78;if(_0x516fc8)return _0x516fc8[_0x57c6fa('0x1a')]()[_0x57c6fa('0x3a')](function(){const _0x20ae5e=_0x57c6fa;_0x39ad35[_0x20ae5e('0x53')](0xcc)[_0x20ae5e('0x2e')]();});};}function handleEntityNotFound(_0x48d88e){return function(_0x14c429){return!_0x14c429&&_0x48d88e['sendStatus'](0x194),_0x14c429;};}function handleError(_0x19c64f,_0x179c2b){return _0x179c2b=_0x179c2b||0x1f4,function(_0x40eb04){const _0x313b7f=a333_0x2d78;logger[_0x313b7f('0x38')](_0x40eb04[_0x313b7f('0x23')]),_0x40eb04[_0x313b7f('0x24')]&&delete _0x40eb04[_0x313b7f('0x24')],_0x19c64f[_0x313b7f('0x53')](_0x179c2b)['send'](_0x40eb04);};}exports[_0x4f33b0('0x41')]=function(_0x3c6bf6,_0x5dce6c){const _0xcebcd9=_0x4f33b0;let _0xf14fc7={};const _0x48fa42={},_0x456d94={'count':0x0,'rows':[]},_0x5cf848=_[_0xcebcd9('0x2b')](db[_0xcebcd9('0xd')][_0xcebcd9('0x33')],function(_0x2155b9){const _0x2bd1bf=_0xcebcd9;return{'name':_0x2155b9[_0x2bd1bf('0x45')],'type':_0x2155b9[_0x2bd1bf('0x25')][_0x2bd1bf('0x4f')]};});_0x48fa42[_0xcebcd9('0x48')]=_[_0xcebcd9('0x2b')](_0x5cf848,'name'),_0x48fa42['query']=_[_0xcebcd9('0x3d')](_0x3c6bf6[_0xcebcd9('0x43')]),_0x48fa42[_0xcebcd9('0x16')]=_[_0xcebcd9('0x2d')](_0x48fa42['model'],_0x48fa42[_0xcebcd9('0x43')]),_0xf14fc7[_0xcebcd9('0x2f')]=_[_0xcebcd9('0x2d')](_0x48fa42[_0xcebcd9('0x48')],qs['fields'](_0x3c6bf6[_0xcebcd9('0x43')][_0xcebcd9('0x10')])),_0xf14fc7['attributes']=_0xf14fc7[_0xcebcd9('0x2f')][_0xcebcd9('0x1d')]?_0xf14fc7[_0xcebcd9('0x2f')]:_0x48fa42[_0xcebcd9('0x48')];typeof _0x3c6bf6['query'][_0xcebcd9('0x26')]==='undefined'&&(_0xf14fc7['limit']=qs[_0xcebcd9('0x59')](_0x3c6bf6[_0xcebcd9('0x43')][_0xcebcd9('0x59')]),_0xf14fc7[_0xcebcd9('0x20')]=qs[_0xcebcd9('0x20')](_0x3c6bf6[_0xcebcd9('0x43')][_0xcebcd9('0x20')]));_0xf14fc7[_0xcebcd9('0x1c')]=qs[_0xcebcd9('0x42')](_0x3c6bf6[_0xcebcd9('0x43')]['sort']),_0xf14fc7['where']=qs[_0xcebcd9('0x16')](_[_0xcebcd9('0x34')](_0x3c6bf6[_0xcebcd9('0x43')],_0x48fa42[_0xcebcd9('0x16')]),_0x5cf848);_0x3c6bf6[_0xcebcd9('0x43')][_0xcebcd9('0x3b')]&&(_0xf14fc7[_0xcebcd9('0x3e')]=_['merge'](_0xf14fc7[_0xcebcd9('0x3e')],{[Op['or']]:_['map'](_0x5cf848,function(_0x47d9e0){const _0x1f9a4e=_0xcebcd9;if(_0x47d9e0[_0x1f9a4e('0x25')]!=='VIRTUAL'){const _0x4fd17a={};return _0x4fd17a[_0x47d9e0['name']]={[Op[_0x1f9a4e('0x1')]]:'%'+_0x3c6bf6[_0x1f9a4e('0x43')][_0x1f9a4e('0x3b')]+'%'},_0x4fd17a;}})}));_0xf14fc7=_[_0xcebcd9('0x5b')]({},_0xf14fc7,_0x3c6bf6[_0xcebcd9('0x1f')]);const _0x5247a6={'where':_0xf14fc7[_0xcebcd9('0x3e')]};return db[_0xcebcd9('0xd')][_0xcebcd9('0x36')](_0x5247a6)[_0xcebcd9('0x3a')](function(_0x71d7d2){const _0x49b111=_0xcebcd9;return _0x456d94[_0x49b111('0x36')]=_0x71d7d2,_0x3c6bf6['query'][_0x49b111('0x29')]&&(_0xf14fc7[_0x49b111('0x28')]=[{'all':!![]}]),db[_0x49b111('0xd')][_0x49b111('0xe')](_0xf14fc7);})[_0xcebcd9('0x3a')](function(_0x5ed02c){return _0x456d94['rows']=_0x5ed02c,_0x456d94;})[_0xcebcd9('0x3a')](respondWithFilteredResult(_0x5dce6c,_0xf14fc7))['catch'](handleError(_0x5dce6c,null));},exports['show']=function(_0x51b354,_0x11e875){const _0x2eb068=_0x4f33b0;let _0x3ea547={'raw':![],'where':{'id':_0x51b354[_0x2eb068('0xf')]['id']}};const _0x1dc378={};return _0x1dc378['model']=_[_0x2eb068('0x3d')](db[_0x2eb068('0xd')][_0x2eb068('0x33')]),_0x1dc378[_0x2eb068('0x43')]=_['keys'](_0x51b354[_0x2eb068('0x43')]),_0x1dc378[_0x2eb068('0x16')]=_['intersection'](_0x1dc378[_0x2eb068('0x48')],_0x1dc378[_0x2eb068('0x43')]),_0x3ea547['attributes']=_[_0x2eb068('0x2d')](_0x1dc378['model'],qs[_0x2eb068('0x10')](_0x51b354[_0x2eb068('0x43')][_0x2eb068('0x10')])),_0x3ea547['attributes']=_0x3ea547[_0x2eb068('0x2f')][_0x2eb068('0x1d')]?_0x3ea547['attributes']:_0x1dc378[_0x2eb068('0x48')],_0x51b354[_0x2eb068('0x43')]['includeAll']&&(_0x3ea547[_0x2eb068('0x28')]=[{'all':!![]}]),_0x3ea547=_[_0x2eb068('0x5b')]({},_0x3ea547,_0x51b354[_0x2eb068('0x1f')]),db[_0x2eb068('0xd')]['findOne'](_0x3ea547)['then'](handleEntityNotFound(_0x11e875,null))[_0x2eb068('0x3a')](respondWithResult(_0x11e875,null))[_0x2eb068('0x4b')](handleError(_0x11e875,null));},exports[_0x4f33b0('0x6')]=function(_0x4fac90,_0x4857d7){const _0x1bfcd5=_0x4f33b0;return db[_0x1bfcd5('0xd')][_0x1bfcd5('0x6')](_0x4fac90[_0x1bfcd5('0x14')],{})[_0x1bfcd5('0x3a')](respondWithResult(_0x4857d7,0xc9))[_0x1bfcd5('0x4b')](handleError(_0x4857d7,null));},exports[_0x4f33b0('0x30')]=function(_0x21ab1c,_0x13f2f1){const _0x23a668=_0x4f33b0;return _0x21ab1c[_0x23a668('0x14')]['id']&&delete _0x21ab1c[_0x23a668('0x14')]['id'],db[_0x23a668('0xd')][_0x23a668('0x18')]({'where':{'id':_0x21ab1c[_0x23a668('0xf')]['id']}})['then'](handleEntityNotFound(_0x13f2f1,null))[_0x23a668('0x3a')](saveUpdates(_0x21ab1c['body'],null))[_0x23a668('0x3a')](respondWithResult(_0x13f2f1,null))[_0x23a668('0x4b')](handleError(_0x13f2f1,null));},exports[_0x4f33b0('0x1a')]=function(_0x4e1549,_0x14ff42){const _0x2a9b8a=_0x4f33b0;return db[_0x2a9b8a('0xd')][_0x2a9b8a('0x18')]({'where':{'id':_0x4e1549[_0x2a9b8a('0xf')]['id']}})[_0x2a9b8a('0x3a')](handleEntityNotFound(_0x14ff42,null))[_0x2a9b8a('0x3a')](removeEntity(_0x14ff42,null))['catch'](handleError(_0x14ff42,null));},exports[_0x4f33b0('0x2')]=function(_0x3c5b40,_0xefb1a4){const _0x5d72b1=_0x4f33b0;let _0x462603={};const _0x48377f={};let _0x4a935f,_0x1a0ca5;return db[_0x5d72b1('0xd')][_0x5d72b1('0x18')]({'where':{'id':_0x3c5b40[_0x5d72b1('0xf')]['id']}})[_0x5d72b1('0x3a')](handleEntityNotFound(_0xefb1a4,null))[_0x5d72b1('0x3a')](function(_0x4fb679){const _0x265235=_0x5d72b1;if(_0x4fb679)return _0x4a935f=_0x4fb679,_0x48377f[_0x265235('0x48')]=_[_0x265235('0x3d')](db[_0x265235('0x0')][_0x265235('0x33')]),_0x48377f[_0x265235('0x43')]=_[_0x265235('0x3d')](_0x3c5b40['query']),_0x48377f['filters']=_['intersection'](_0x48377f['model'],_0x48377f[_0x265235('0x43')]),_0x462603[_0x265235('0x2f')]=_['intersection'](_0x48377f[_0x265235('0x48')],qs[_0x265235('0x10')](_0x3c5b40[_0x265235('0x43')][_0x265235('0x10')])),_0x462603['attributes']=_0x462603[_0x265235('0x2f')]['length']?_0x462603[_0x265235('0x2f')]:_0x48377f['model'],_0x462603[_0x265235('0x1c')]=qs[_0x265235('0x42')](_0x3c5b40[_0x265235('0x43')][_0x265235('0x42')]),_0x462603['where']=qs[_0x265235('0x16')](_[_0x265235('0x34')](_0x3c5b40[_0x265235('0x43')],_0x48377f[_0x265235('0x16')])),_0x3c5b40[_0x265235('0x43')]['filter']&&(_0x462603['where']=_[_0x265235('0x5b')](_0x462603['where'],{[Op['or']]:_['map'](_0x462603[_0x265235('0x2f')],function(_0x5eb929){const _0x1e5283=_0x265235,_0x1bc48e={};return _0x1bc48e[_0x5eb929]={[Op[_0x1e5283('0x1')]]:'%'+_0x3c5b40[_0x1e5283('0x43')][_0x1e5283('0x3b')]+'%'},_0x1bc48e;})})),_0x462603=_[_0x265235('0x5b')]({},_0x462603,_0x3c5b40[_0x265235('0x1f')]),_0x4a935f[_0x265235('0x2')](_0x462603);})[_0x5d72b1('0x3a')](function(_0x2a082b){const _0x1748f7=_0x5d72b1;if(_0x2a082b)return _0x1a0ca5=_0x2a082b[_0x1748f7('0x1d')],typeof _0x3c5b40[_0x1748f7('0x43')][_0x1748f7('0x26')]===_0x1748f7('0x15')&&(_0x462603[_0x1748f7('0x59')]=qs[_0x1748f7('0x59')](_0x3c5b40['query']['limit']),_0x462603['offset']=qs['offset'](_0x3c5b40[_0x1748f7('0x43')][_0x1748f7('0x20')])),_0x4a935f[_0x1748f7('0x2')](_0x462603);})['then'](function(_0x361626){if(_0x361626)return _0x361626?{'count':_0x1a0ca5,'rows':_0x361626}:null;})['then'](respondWithResult(_0xefb1a4,null))['catch'](handleError(_0xefb1a4,null));},exports[_0x4f33b0('0x7')]=function(_0x12dbbd,_0x4b4c26){const _0x52b69d=_0x4f33b0;return _0x12dbbd[_0x52b69d('0x14')]['id']&&delete _0x12dbbd[_0x52b69d('0x14')]['id'],db[_0x52b69d('0xd')][_0x52b69d('0x18')]({'where':{'id':_0x12dbbd[_0x52b69d('0xf')]['id']}})[_0x52b69d('0x3a')](handleEntityNotFound(_0x4b4c26,null))['then'](function(_0x37fe7c){const _0x43cdf0=_0x52b69d;if(_0x37fe7c)return _0x12dbbd['body']['AccountId']=_0x37fe7c['id'],_0x12dbbd['body'][_0x43cdf0('0x4d')]=integrations[_0x43cdf0('0x17')](_0x12dbbd[_0x43cdf0('0x14')][_0x43cdf0('0x4c')],_0x12dbbd[_0x43cdf0('0x14')][_0x43cdf0('0x25')]),_0x12dbbd[_0x43cdf0('0x14')][_0x43cdf0('0x32')]=integrations[_0x43cdf0('0x8')](_0x12dbbd[_0x43cdf0('0x14')][_0x43cdf0('0x4c')],_0x12dbbd[_0x43cdf0('0x14')][_0x43cdf0('0x25')]),db['ZendeskConfiguration'][_0x43cdf0('0x6')](_0x12dbbd[_0x43cdf0('0x14')],{'include':[{'model':db[_0x43cdf0('0xa')],'as':_0x43cdf0('0x4d')},{'model':db['ZendeskField'],'as':_0x43cdf0('0x32')}]});return null;})[_0x52b69d('0x3a')](respondWithResult(_0x4b4c26,null))[_0x52b69d('0x4b')](handleError(_0x4b4c26,null));},exports[_0x4f33b0('0x58')]=function(_0x1d66bf,_0x1f33f8){const _0x439e93=_0x4f33b0;let _0x18cf8a='';return db[_0x439e93('0xd')][_0x439e93('0x18')]({'where':{'id':_0x1d66bf['params']['id']},'attributes':['id',_0x439e93('0x46'),_0x439e93('0x21'),_0x439e93('0x13'),_0x439e93('0x9'),_0x439e93('0x40')]})[_0x439e93('0x3a')](handleEntityNotFound(_0x1f33f8,null))['then'](function(_0x51063e){const _0x55c1ca=_0x439e93;if(_0x51063e){_0x18cf8a=_0x51063e[_0x55c1ca('0x40')];const _0x4b8d10=_0x18cf8a[_0x55c1ca('0x19')](-0x1);_0x4b8d10==='/'&&(_0x18cf8a=_0x18cf8a[_0x55c1ca('0x39')](0x0,_0x18cf8a[_0x55c1ca('0x57')](_0x4b8d10)));const _0x20b346={'method':_0x55c1ca('0x51'),'uri':util[_0x55c1ca('0xb')](_0x55c1ca('0xc'),_0x18cf8a,_0x55c1ca('0x3')),'json':!![]};switch(_0x51063e['authType']){case _0x55c1ca('0x21'):_0x20b346['headers']={'Authorization':util['format'](_0x55c1ca('0x27'),Buffer['from'](util['format'](_0x55c1ca('0x31'),_0x51063e[_0x55c1ca('0x46')],_0x51063e['password']))[_0x55c1ca('0x2a')](_0x55c1ca('0x1e')))};break;case _0x55c1ca('0x13'):_0x20b346['headers']={'Authorization':util[_0x55c1ca('0xb')]('Basic\x20%s',Buffer[_0x55c1ca('0x37')](util[_0x55c1ca('0xb')]('%s/token:%s',_0x51063e[_0x55c1ca('0x46')],_0x51063e['token']))[_0x55c1ca('0x2a')]('base64'))};break;default:throw new db[(_0x55c1ca('0x11'))][(_0x55c1ca('0x3f'))](_0x55c1ca('0x5a'));}return rp(_0x20b346);}})[_0x439e93('0x3a')](function(_0x9cae1a){const _0x3d579e=_0x439e93;if(_0x9cae1a){const _0x19355d=[_0x3d579e('0x5'),_0x3d579e('0x4'),'group','assignee'];return _[_0x3d579e('0x55')](_0x9cae1a[_0x3d579e('0x3')],function(_0x415e10){const _0x5a4efc=_0x3d579e;return _0x19355d[_0x5a4efc('0x50')](_0x415e10[_0x5a4efc('0x25')]);}),{'count':_0x9cae1a['ticket_fields'][_0x3d579e('0x1d')],'rows':_['map'](_0x9cae1a[_0x3d579e('0x3')],function(_0x15673c){const _0x256d6e=_0x3d579e;return{'id':_0x15673c['id'],'name':_0x15673c[_0x256d6e('0x35')]>0x7?_0x15673c['title']:_0x15673c[_0x256d6e('0x25')],'custom':_0x15673c[_0x256d6e('0x35')]>0x7?!![]:![],'options':_0x15673c[_0x256d6e('0x54')]?_0x15673c[_0x256d6e('0x54')]:_0x15673c['custom_field_options']?_0x15673c[_0x256d6e('0x1b')]:[]};})};}})[_0x439e93('0x3a')](respondWithResult(_0x1f33f8,null))[_0x439e93('0x4b')](function(_0x16c6ef){const _0x27cd3c=_0x439e93;let _0x62087a=_0x1d66bf['query'][_0x27cd3c('0x56')]?0x1f4:_0x16c6ef['statusCode']||0x1f4;logger['error'](_0x27cd3c('0x2c'),_0x27cd3c('0x58'),_0x62087a,JSON['stringify'](_0x16c6ef)),delete _0x16c6ef['name'],_0x62087a===0x191&&(_0x62087a=0x190),_0x1f33f8[_0x27cd3c('0x53')](_0x62087a)[_0x27cd3c('0x5d')](_0x1d66bf[_0x27cd3c('0x43')][_0x27cd3c('0x56')]?{'message':'Wrong\x20credentials','statusCode':_0x16c6ef[_0x27cd3c('0x44')]}:_0x16c6ef);});}; \ No newline at end of file +const a333_0x362c=['stack','type','remoteUri','subject','Unknown\x20authentication\x20type','slice','custom_field_options','nolimit','statusCode','filters','rawAttributes','rows','options','create','%s/token:%s','params','includeAll','query','ZendeskField','send','sort','base64','order','toString','%s/%s','ValidationError','attributes','headers','fields','sendStatus','findAll','Subjects','ZendeskConfiguration','test','position','getFields,\x20%s,\x20%s,\x20%s','Content-Range','addConfiguration','error','json','index','catch','update','undefined','substring','format','Wrong\x20credentials','%s:%s','model','VIRTUAL','lastIndexOf','include','getFields','length','Basic\x20%s','like','body','system_field_options','request-promise-native','from','ZendeskAccount','util','ticket_fields','AccountId','getConfigurations','limit','../../components/integrations/configuration','../../mysqldb','password','description','status','api','lodash','sequelize','map','token','findOne','includes','authType','../../components/parsers/qs','username','pick','where','GET','Descriptions','keys','fieldName','channel','merge','count','destroy','getSubjects','then','offset','name','intersection','filter','../../config/logger'];(function(_0x27739b,_0x362c0a){const _0x561388=function(_0x522564){while(--_0x522564){_0x27739b['push'](_0x27739b['shift']());}};_0x561388(++_0x362c0a);}(a333_0x362c,0x1dd));const a333_0x5613=function(_0x27739b,_0x362c0a){_0x27739b=_0x27739b-0x0;let _0x561388=a333_0x362c[_0x27739b];return _0x561388;};const _0x52ce14=a333_0x5613;'use strict';const rp=require(_0x52ce14('0x47')),util=require(_0x52ce14('0x4a')),_=require(_0x52ce14('0x55')),qs=require(_0x52ce14('0x5c')),logger=require(_0x52ce14('0xc'))(_0x52ce14('0x54')),db=require(_0x52ce14('0x50'))['db'],{Op}=require(_0x52ce14('0x56')),integrations=require(_0x52ce14('0x4f'));function respondWithResult(_0x522564,_0x74cb0a){return _0x74cb0a=_0x74cb0a||0xc8,function(_0x18aa7b){const _0x53ef2e=a333_0x5613;if(_0x18aa7b)return _0x522564[_0x53ef2e('0x53')](_0x74cb0a)[_0x53ef2e('0x34')](_0x18aa7b);};}function respondWithFilteredResult(_0x530e37,_0x24549a){return function(_0x335a16){const _0x39a5b4=a333_0x5613;if(_0x335a16){const _0x5e0e52=_0x335a16[_0x39a5b4('0x4')],_0x39cf67=_0x24549a[_0x39a5b4('0x8')];let _0x399f03=_0x24549a[_0x39a5b4('0x8')]+_0x24549a[_0x39a5b4('0x4e')],_0x24ecc5;return _0x399f03>=_0x5e0e52?(_0x399f03=_0x5e0e52,_0x24ecc5=0xc8):_0x24ecc5=0xce,_0x530e37['status'](_0x24ecc5),_0x530e37['set'](_0x39a5b4('0x31'),_0x39cf67+'-'+_0x399f03+'/'+_0x5e0e52)[_0x39a5b4('0x34')](_0x335a16);}return null;};}function saveUpdates(_0x8b68f2){return function(_0x210040){const _0x216f4a=a333_0x5613;if(_0x210040)return _0x210040['update'](_0x8b68f2)[_0x216f4a('0x7')](function(_0x4dfa95){return _0x4dfa95;});return null;};}function removeEntity(_0x143a76){return function(_0xb2471b){const _0xb6e4e4=a333_0x5613;if(_0xb2471b)return _0xb2471b[_0xb6e4e4('0x5')]()[_0xb6e4e4('0x7')](function(){const _0x410641=_0xb6e4e4;_0x143a76[_0x410641('0x53')](0xcc)['end']();});};}function handleEntityNotFound(_0x479c37){return function(_0x1d8188){const _0x24909c=a333_0x5613;return!_0x1d8188&&_0x479c37[_0x24909c('0x2a')](0x194),_0x1d8188;};}function handleError(_0x5b734a,_0x51cba9){return _0x51cba9=_0x51cba9||0x1f4,function(_0x39bbe1){const _0x5f2788=a333_0x5613;logger[_0x5f2788('0x33')](_0x39bbe1[_0x5f2788('0xd')]),_0x39bbe1[_0x5f2788('0x9')]&&delete _0x39bbe1['name'],_0x5b734a[_0x5f2788('0x53')](_0x51cba9)[_0x5f2788('0x20')](_0x39bbe1);};}exports[_0x52ce14('0x35')]=function(_0x477e40,_0xce9026){const _0x5c3d10=_0x52ce14;let _0x2fdd56={};const _0x1bb137={},_0x27c9f2={'count':0x0,'rows':[]},_0x25677c=_['map'](db['ZendeskAccount']['rawAttributes'],function(_0x321858){const _0x2ff692=a333_0x5613;return{'name':_0x321858[_0x2ff692('0x1')],'type':_0x321858[_0x2ff692('0xe')]['key']};});_0x1bb137[_0x5c3d10('0x3d')]=_[_0x5c3d10('0x57')](_0x25677c,_0x5c3d10('0x9')),_0x1bb137[_0x5c3d10('0x1e')]=_[_0x5c3d10('0x0')](_0x477e40[_0x5c3d10('0x1e')]),_0x1bb137[_0x5c3d10('0x16')]=_[_0x5c3d10('0xa')](_0x1bb137[_0x5c3d10('0x3d')],_0x1bb137[_0x5c3d10('0x1e')]),_0x2fdd56[_0x5c3d10('0x27')]=_[_0x5c3d10('0xa')](_0x1bb137[_0x5c3d10('0x3d')],qs[_0x5c3d10('0x29')](_0x477e40[_0x5c3d10('0x1e')][_0x5c3d10('0x29')])),_0x2fdd56[_0x5c3d10('0x27')]=_0x2fdd56[_0x5c3d10('0x27')][_0x5c3d10('0x42')]?_0x2fdd56['attributes']:_0x1bb137[_0x5c3d10('0x3d')];typeof _0x477e40['query'][_0x5c3d10('0x14')]==='undefined'&&(_0x2fdd56[_0x5c3d10('0x4e')]=qs[_0x5c3d10('0x4e')](_0x477e40[_0x5c3d10('0x1e')][_0x5c3d10('0x4e')]),_0x2fdd56['offset']=qs['offset'](_0x477e40[_0x5c3d10('0x1e')][_0x5c3d10('0x8')]));_0x2fdd56[_0x5c3d10('0x23')]=qs[_0x5c3d10('0x21')](_0x477e40['query'][_0x5c3d10('0x21')]),_0x2fdd56['where']=qs[_0x5c3d10('0x16')](_[_0x5c3d10('0x5e')](_0x477e40[_0x5c3d10('0x1e')],_0x1bb137[_0x5c3d10('0x16')]),_0x25677c);_0x477e40[_0x5c3d10('0x1e')]['filter']&&(_0x2fdd56[_0x5c3d10('0x5f')]=_[_0x5c3d10('0x3')](_0x2fdd56['where'],{[Op['or']]:_['map'](_0x25677c,function(_0x5534b8){const _0x93dfae=_0x5c3d10;if(_0x5534b8[_0x93dfae('0xe')]!==_0x93dfae('0x3e')){const _0x505f13={};return _0x505f13[_0x5534b8[_0x93dfae('0x9')]]={[Op[_0x93dfae('0x44')]]:'%'+_0x477e40[_0x93dfae('0x1e')][_0x93dfae('0xb')]+'%'},_0x505f13;}})}));_0x2fdd56=_[_0x5c3d10('0x3')]({},_0x2fdd56,_0x477e40[_0x5c3d10('0x19')]);const _0x63ecda={'where':_0x2fdd56[_0x5c3d10('0x5f')]};return db[_0x5c3d10('0x49')][_0x5c3d10('0x4')](_0x63ecda)[_0x5c3d10('0x7')](function(_0xf63213){const _0x1e5b36=_0x5c3d10;return _0x27c9f2[_0x1e5b36('0x4')]=_0xf63213,_0x477e40[_0x1e5b36('0x1e')][_0x1e5b36('0x1d')]&&(_0x2fdd56[_0x1e5b36('0x40')]=[{'all':!![]}]),db[_0x1e5b36('0x49')][_0x1e5b36('0x2b')](_0x2fdd56);})[_0x5c3d10('0x7')](function(_0x3facc7){const _0x584a5a=_0x5c3d10;return _0x27c9f2[_0x584a5a('0x18')]=_0x3facc7,_0x27c9f2;})[_0x5c3d10('0x7')](respondWithFilteredResult(_0xce9026,_0x2fdd56))[_0x5c3d10('0x36')](handleError(_0xce9026,null));},exports['show']=function(_0x42d875,_0x29a1b2){const _0xf0f48f=_0x52ce14;let _0x5c7d51={'raw':![],'where':{'id':_0x42d875['params']['id']}};const _0x1eb2cd={};return _0x1eb2cd[_0xf0f48f('0x3d')]=_['keys'](db['ZendeskAccount'][_0xf0f48f('0x17')]),_0x1eb2cd[_0xf0f48f('0x1e')]=_[_0xf0f48f('0x0')](_0x42d875[_0xf0f48f('0x1e')]),_0x1eb2cd[_0xf0f48f('0x16')]=_['intersection'](_0x1eb2cd[_0xf0f48f('0x3d')],_0x1eb2cd[_0xf0f48f('0x1e')]),_0x5c7d51[_0xf0f48f('0x27')]=_[_0xf0f48f('0xa')](_0x1eb2cd['model'],qs[_0xf0f48f('0x29')](_0x42d875[_0xf0f48f('0x1e')][_0xf0f48f('0x29')])),_0x5c7d51[_0xf0f48f('0x27')]=_0x5c7d51[_0xf0f48f('0x27')][_0xf0f48f('0x42')]?_0x5c7d51[_0xf0f48f('0x27')]:_0x1eb2cd['model'],_0x42d875['query']['includeAll']&&(_0x5c7d51['include']=[{'all':!![]}]),_0x5c7d51=_[_0xf0f48f('0x3')]({},_0x5c7d51,_0x42d875['options']),db[_0xf0f48f('0x49')][_0xf0f48f('0x59')](_0x5c7d51)[_0xf0f48f('0x7')](handleEntityNotFound(_0x29a1b2,null))['then'](respondWithResult(_0x29a1b2,null))[_0xf0f48f('0x36')](handleError(_0x29a1b2,null));},exports['create']=function(_0x468e82,_0xf7fb44){const _0x2c3190=_0x52ce14;return db[_0x2c3190('0x49')][_0x2c3190('0x1a')](_0x468e82[_0x2c3190('0x45')],{})[_0x2c3190('0x7')](respondWithResult(_0xf7fb44,0xc9))[_0x2c3190('0x36')](handleError(_0xf7fb44,null));},exports[_0x52ce14('0x37')]=function(_0x2f9522,_0x396060){const _0x36e754=_0x52ce14;return _0x2f9522[_0x36e754('0x45')]['id']&&delete _0x2f9522[_0x36e754('0x45')]['id'],db[_0x36e754('0x49')][_0x36e754('0x59')]({'where':{'id':_0x2f9522[_0x36e754('0x1c')]['id']}})['then'](handleEntityNotFound(_0x396060,null))[_0x36e754('0x7')](saveUpdates(_0x2f9522[_0x36e754('0x45')],null))[_0x36e754('0x7')](respondWithResult(_0x396060,null))[_0x36e754('0x36')](handleError(_0x396060,null));},exports[_0x52ce14('0x5')]=function(_0xd18c92,_0x2b3eb3){const _0x481846=_0x52ce14;return db['ZendeskAccount'][_0x481846('0x59')]({'where':{'id':_0xd18c92['params']['id']}})[_0x481846('0x7')](handleEntityNotFound(_0x2b3eb3,null))[_0x481846('0x7')](removeEntity(_0x2b3eb3,null))[_0x481846('0x36')](handleError(_0x2b3eb3,null));},exports[_0x52ce14('0x4d')]=function(_0x467e86,_0x104b16){const _0x211b82=_0x52ce14;let _0x4769c4={};const _0x58d1c8={};let _0xcccb2e,_0x6430ce;return db[_0x211b82('0x49')]['findOne']({'where':{'id':_0x467e86[_0x211b82('0x1c')]['id']}})[_0x211b82('0x7')](handleEntityNotFound(_0x104b16,null))[_0x211b82('0x7')](function(_0x268405){const _0x3839c5=_0x211b82;if(_0x268405)return _0xcccb2e=_0x268405,_0x58d1c8['model']=_['keys'](db[_0x3839c5('0x2d')]['rawAttributes']),_0x58d1c8[_0x3839c5('0x1e')]=_[_0x3839c5('0x0')](_0x467e86[_0x3839c5('0x1e')]),_0x58d1c8[_0x3839c5('0x16')]=_[_0x3839c5('0xa')](_0x58d1c8['model'],_0x58d1c8[_0x3839c5('0x1e')]),_0x4769c4[_0x3839c5('0x27')]=_['intersection'](_0x58d1c8['model'],qs[_0x3839c5('0x29')](_0x467e86[_0x3839c5('0x1e')][_0x3839c5('0x29')])),_0x4769c4[_0x3839c5('0x27')]=_0x4769c4[_0x3839c5('0x27')][_0x3839c5('0x42')]?_0x4769c4['attributes']:_0x58d1c8[_0x3839c5('0x3d')],_0x4769c4['order']=qs[_0x3839c5('0x21')](_0x467e86[_0x3839c5('0x1e')][_0x3839c5('0x21')]),_0x4769c4[_0x3839c5('0x5f')]=qs['filters'](_[_0x3839c5('0x5e')](_0x467e86['query'],_0x58d1c8['filters'])),_0x467e86['query'][_0x3839c5('0xb')]&&(_0x4769c4[_0x3839c5('0x5f')]=_['merge'](_0x4769c4[_0x3839c5('0x5f')],{[Op['or']]:_[_0x3839c5('0x57')](_0x4769c4['attributes'],function(_0x343bd6){const _0x5f25e9=_0x3839c5,_0x49f702={};return _0x49f702[_0x343bd6]={[Op['like']]:'%'+_0x467e86['query'][_0x5f25e9('0xb')]+'%'},_0x49f702;})})),_0x4769c4=_[_0x3839c5('0x3')]({},_0x4769c4,_0x467e86[_0x3839c5('0x19')]),_0xcccb2e[_0x3839c5('0x4d')](_0x4769c4);})[_0x211b82('0x7')](function(_0x294221){const _0x1df277=_0x211b82;if(_0x294221)return _0x6430ce=_0x294221[_0x1df277('0x42')],typeof _0x467e86['query']['nolimit']===_0x1df277('0x38')&&(_0x4769c4['limit']=qs[_0x1df277('0x4e')](_0x467e86[_0x1df277('0x1e')][_0x1df277('0x4e')]),_0x4769c4[_0x1df277('0x8')]=qs['offset'](_0x467e86[_0x1df277('0x1e')][_0x1df277('0x8')])),_0xcccb2e[_0x1df277('0x4d')](_0x4769c4);})['then'](function(_0x340aea){if(_0x340aea)return _0x340aea?{'count':_0x6430ce,'rows':_0x340aea}:null;})[_0x211b82('0x7')](respondWithResult(_0x104b16,null))[_0x211b82('0x36')](handleError(_0x104b16,null));},exports[_0x52ce14('0x32')]=function(_0x50dcb0,_0x479e5e){const _0x5b189c=_0x52ce14;return _0x50dcb0[_0x5b189c('0x45')]['id']&&delete _0x50dcb0[_0x5b189c('0x45')]['id'],db[_0x5b189c('0x49')][_0x5b189c('0x59')]({'where':{'id':_0x50dcb0[_0x5b189c('0x1c')]['id']}})[_0x5b189c('0x7')](handleEntityNotFound(_0x479e5e,null))[_0x5b189c('0x7')](function(_0x5d2b61){const _0x4cd0bb=_0x5b189c;if(_0x5d2b61)return _0x50dcb0[_0x4cd0bb('0x45')][_0x4cd0bb('0x4c')]=_0x5d2b61['id'],_0x50dcb0[_0x4cd0bb('0x45')][_0x4cd0bb('0x2c')]=integrations[_0x4cd0bb('0x6')](_0x50dcb0[_0x4cd0bb('0x45')][_0x4cd0bb('0x2')],_0x50dcb0[_0x4cd0bb('0x45')][_0x4cd0bb('0xe')]),_0x50dcb0[_0x4cd0bb('0x45')][_0x4cd0bb('0x61')]=integrations['getDescriptions'](_0x50dcb0['body'][_0x4cd0bb('0x2')],_0x50dcb0[_0x4cd0bb('0x45')]['type']),db['ZendeskConfiguration'][_0x4cd0bb('0x1a')](_0x50dcb0[_0x4cd0bb('0x45')],{'include':[{'model':db[_0x4cd0bb('0x1f')],'as':'Subjects'},{'model':db['ZendeskField'],'as':_0x4cd0bb('0x61')}]});return null;})[_0x5b189c('0x7')](respondWithResult(_0x479e5e,null))[_0x5b189c('0x36')](handleError(_0x479e5e,null));},exports[_0x52ce14('0x41')]=function(_0x408144,_0x245abd){const _0x2b42ae=_0x52ce14;let _0x1dce4b='';return db['ZendeskAccount'][_0x2b42ae('0x59')]({'where':{'id':_0x408144[_0x2b42ae('0x1c')]['id']},'attributes':['id','username',_0x2b42ae('0x51'),_0x2b42ae('0x58'),_0x2b42ae('0x5b'),'remoteUri']})[_0x2b42ae('0x7')](handleEntityNotFound(_0x245abd,null))[_0x2b42ae('0x7')](function(_0x5631b8){const _0x11f44b=_0x2b42ae;if(_0x5631b8){_0x1dce4b=_0x5631b8[_0x11f44b('0xf')];const _0x10455e=_0x1dce4b[_0x11f44b('0x12')](-0x1);_0x10455e==='/'&&(_0x1dce4b=_0x1dce4b[_0x11f44b('0x39')](0x0,_0x1dce4b[_0x11f44b('0x3f')](_0x10455e)));const _0x45c871={'method':_0x11f44b('0x60'),'uri':util[_0x11f44b('0x3a')](_0x11f44b('0x25'),_0x1dce4b,_0x11f44b('0x4b')),'json':!![]};switch(_0x5631b8['authType']){case _0x11f44b('0x51'):_0x45c871[_0x11f44b('0x28')]={'Authorization':util[_0x11f44b('0x3a')](_0x11f44b('0x43'),Buffer[_0x11f44b('0x48')](util[_0x11f44b('0x3a')](_0x11f44b('0x3c'),_0x5631b8[_0x11f44b('0x5d')],_0x5631b8['password']))[_0x11f44b('0x24')](_0x11f44b('0x22')))};break;case _0x11f44b('0x58'):_0x45c871[_0x11f44b('0x28')]={'Authorization':util['format'](_0x11f44b('0x43'),Buffer['from'](util[_0x11f44b('0x3a')](_0x11f44b('0x1b'),_0x5631b8[_0x11f44b('0x5d')],_0x5631b8[_0x11f44b('0x58')]))['toString'](_0x11f44b('0x22')))};break;default:throw new db['Sequelize'][(_0x11f44b('0x26'))](_0x11f44b('0x11'));}return rp(_0x45c871);}})['then'](function(_0x3174d4){const _0x2b785e=_0x2b42ae;if(_0x3174d4){const _0x35fde9=[_0x2b785e('0x10'),_0x2b785e('0x52'),'group','assignee'];return _['remove'](_0x3174d4['ticket_fields'],function(_0x3a9831){const _0x100828=_0x2b785e;return _0x35fde9[_0x100828('0x5a')](_0x3a9831[_0x100828('0xe')]);}),{'count':_0x3174d4[_0x2b785e('0x4b')][_0x2b785e('0x42')],'rows':_[_0x2b785e('0x57')](_0x3174d4['ticket_fields'],function(_0xc2d226){const _0x5b4bf7=_0x2b785e;return{'id':_0xc2d226['id'],'name':_0xc2d226[_0x5b4bf7('0x2f')]>0x7?_0xc2d226['title']:_0xc2d226['type'],'custom':_0xc2d226['position']>0x7?!![]:![],'options':_0xc2d226[_0x5b4bf7('0x46')]?_0xc2d226['system_field_options']:_0xc2d226[_0x5b4bf7('0x13')]?_0xc2d226[_0x5b4bf7('0x13')]:[]};})};}})[_0x2b42ae('0x7')](respondWithResult(_0x245abd,null))[_0x2b42ae('0x36')](function(_0x335eba){const _0x420153=_0x2b42ae;let _0x1ed1df=_0x408144['query'][_0x420153('0x2e')]?0x1f4:_0x335eba[_0x420153('0x15')]||0x1f4;logger[_0x420153('0x33')](_0x420153('0x30'),'getFields',_0x1ed1df,JSON['stringify'](_0x335eba)),delete _0x335eba[_0x420153('0x9')],_0x1ed1df===0x191&&(_0x1ed1df=0x190),_0x245abd[_0x420153('0x53')](_0x1ed1df)[_0x420153('0x20')](_0x408144['query'][_0x420153('0x2e')]?{'message':_0x420153('0x3b'),'statusCode':_0x335eba['statusCode']}:_0x335eba);});}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.model.js b/server/api/intZendeskAccount/intZendeskAccount.model.js index dc67ef3..99ac10a 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.model.js +++ b/server/api/intZendeskAccount/intZendeskAccount.model.js @@ -1 +1 @@ -const a334_0x76e1=['./intZendeskAccount.attributes','int_zendesk_accounts','define','exports'];(function(_0x5bad7b,_0x76e190){const _0x203576=function(_0x4839f8){while(--_0x4839f8){_0x5bad7b['push'](_0x5bad7b['shift']());}};_0x203576(++_0x76e190);}(a334_0x76e1,0x11e));const a334_0x2035=function(_0x5bad7b,_0x76e190){_0x5bad7b=_0x5bad7b-0x0;let _0x203576=a334_0x76e1[_0x5bad7b];return _0x203576;};const _0x21b78f=a334_0x2035;'use strict';const attributes=require(_0x21b78f('0x2'));module[_0x21b78f('0x1')]=function(_0x4839f8){const _0x29cc62=_0x21b78f,_0x31e130=_0x4839f8[_0x29cc62('0x0')]('ZendeskAccount',attributes,{'tableName':_0x29cc62('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x31e130;}; \ No newline at end of file +const a334_0x49c3=['exports','int_zendesk_accounts'];(function(_0x31c19a,_0x49c3b3){const _0x2d33a4=function(_0x3a7cdd){while(--_0x3a7cdd){_0x31c19a['push'](_0x31c19a['shift']());}};_0x2d33a4(++_0x49c3b3);}(a334_0x49c3,0x17c));const a334_0x2d33=function(_0x31c19a,_0x49c3b3){_0x31c19a=_0x31c19a-0x0;let _0x2d33a4=a334_0x49c3[_0x31c19a];return _0x2d33a4;};const _0x5d6455=a334_0x2d33;'use strict';const attributes=require('./intZendeskAccount.attributes');module[_0x5d6455('0x0')]=function(_0x3a7cdd){const _0x20ed4c=_0x5d6455,_0x4182f6=_0x3a7cdd['define']('ZendeskAccount',attributes,{'tableName':_0x20ed4c('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4182f6;}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.rpc.js b/server/api/intZendeskAccount/intZendeskAccount.rpc.js index 05a6aa8..23fbcd6 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.rpc.js +++ b/server/api/intZendeskAccount/intZendeskAccount.rpc.js @@ -1 +1 @@ -const a335_0x5db8=['map','stringify','where','error','../../config/logger','attributes','lodash','ZendeskAccount','raw','options','info','include','ShowZendeskAccount','GetZendeskAccount','then','catch','rpc','../../mysqldb','model','debug','message'];(function(_0x475e31,_0x5db80d){const _0x57ea9a=function(_0x54d012){while(--_0x54d012){_0x475e31['push'](_0x475e31['shift']());}};_0x57ea9a(++_0x5db80d);}(a335_0x5db8,0x188));const a335_0x57ea=function(_0x475e31,_0x5db80d){_0x475e31=_0x475e31-0x0;let _0x57ea9a=a335_0x5db8[_0x475e31];return _0x57ea9a;};const _0x4cbb10=a335_0x57ea;'use strict';const _=require(_0x4cbb10('0xd')),db=require(_0x4cbb10('0x3'))['db'],logger=require(_0x4cbb10('0xb'))(_0x4cbb10('0x2'));exports[_0x4cbb10('0x14')]=function(_0x54d012){const _0x35673f=this;return new Promise(function(_0x5f06c3,_0x4c1094){const _0x339e11=a335_0x57ea;return db[_0x339e11('0xe')]['findAll']({'raw':_0x54d012['options']?_0x54d012[_0x339e11('0x10')][_0x339e11('0xf')]===undefined?!![]:![]:!![],'where':_0x54d012['options']?_0x54d012[_0x339e11('0x10')]['where']||null:null,'attributes':_0x54d012[_0x339e11('0x10')]?_0x54d012[_0x339e11('0x10')]['attributes']||null:null,'limit':_0x54d012[_0x339e11('0x10')]?_0x54d012[_0x339e11('0x10')]['limit']||null:null,'include':_0x54d012[_0x339e11('0x10')]?_0x54d012[_0x339e11('0x10')]['include']?_[_0x339e11('0x7')](_0x54d012[_0x339e11('0x10')][_0x339e11('0x12')],function(_0x476db0){const _0x55b648=_0x339e11;return{'model':db[_0x476db0['model']],'as':_0x476db0['as'],'attributes':_0x476db0[_0x55b648('0xc')],'include':_0x476db0[_0x55b648('0x12')]?_[_0x55b648('0x7')](_0x476db0[_0x55b648('0x12')],function(_0x2e07a4){const _0x428021=_0x55b648;return{'model':db[_0x2e07a4[_0x428021('0x4')]],'as':_0x2e07a4['as'],'attributes':_0x2e07a4[_0x428021('0xc')],'include':_0x2e07a4['include']?_[_0x428021('0x7')](_0x2e07a4[_0x428021('0x12')],function(_0x25ea49){const _0x2f0a23=_0x428021;return{'model':db[_0x25ea49[_0x2f0a23('0x4')]],'as':_0x25ea49['as'],'attributes':_0x25ea49[_0x2f0a23('0xc')]};}):[]};}):[]};}):[]:[]})[_0x339e11('0x0')](function(_0x5be9de){const _0x188c96=_0x339e11;logger[_0x188c96('0x11')](_0x188c96('0x14'),_0x54d012),logger[_0x188c96('0x5')]('GetZendeskAccount',_0x54d012,JSON[_0x188c96('0x8')](_0x5be9de)),_0x5f06c3(_0x5be9de);})[_0x339e11('0x1')](function(_0x33c8ef){const _0x42ff68=_0x339e11;logger[_0x42ff68('0xa')]('GetZendeskAccount',_0x33c8ef[_0x42ff68('0x6')],_0x54d012),_0x4c1094(_0x35673f[_0x42ff68('0xa')](0x1f4,_0x33c8ef[_0x42ff68('0x6')]));});});},exports[_0x4cbb10('0x13')]=function(_0xe8d6b9){const _0x3131fa=this;return new Promise(function(_0x3fdb61,_0x2ea72a){const _0x2558f6=a335_0x57ea;return db[_0x2558f6('0xe')]['findOne']({'raw':_0xe8d6b9['options']?_0xe8d6b9[_0x2558f6('0x10')][_0x2558f6('0xf')]===undefined?!![]:![]:!![],'where':_0xe8d6b9[_0x2558f6('0x10')]?_0xe8d6b9[_0x2558f6('0x10')][_0x2558f6('0x9')]||null:null,'attributes':_0xe8d6b9[_0x2558f6('0x10')]?_0xe8d6b9['options'][_0x2558f6('0xc')]||null:null,'include':_0xe8d6b9[_0x2558f6('0x10')]?_0xe8d6b9['options'][_0x2558f6('0x12')]?_[_0x2558f6('0x7')](_0xe8d6b9[_0x2558f6('0x10')][_0x2558f6('0x12')],function(_0xddd7fe){const _0x5714b7=_0x2558f6;return{'model':db[_0xddd7fe['model']],'as':_0xddd7fe['as'],'attributes':_0xddd7fe[_0x5714b7('0xc')],'include':_0xddd7fe[_0x5714b7('0x12')]?_[_0x5714b7('0x7')](_0xddd7fe[_0x5714b7('0x12')],function(_0x25468d){const _0x1aceeb=_0x5714b7;return{'model':db[_0x25468d[_0x1aceeb('0x4')]],'as':_0x25468d['as'],'attributes':_0x25468d[_0x1aceeb('0xc')],'include':_0x25468d[_0x1aceeb('0x12')]?_[_0x1aceeb('0x7')](_0x25468d[_0x1aceeb('0x12')],function(_0x5ba4dc){const _0x13105c=_0x1aceeb;return{'model':db[_0x5ba4dc[_0x13105c('0x4')]],'as':_0x5ba4dc['as'],'attributes':_0x5ba4dc[_0x13105c('0xc')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xb42441){const _0x27c5ef=_0x2558f6;logger[_0x27c5ef('0x11')](_0x27c5ef('0x13'),_0xe8d6b9),logger[_0x27c5ef('0x5')](_0x27c5ef('0x13'),_0xe8d6b9,JSON['stringify'](_0xb42441)),_0x3fdb61(_0xb42441);})[_0x2558f6('0x1')](function(_0x14e733){const _0x3d3291=_0x2558f6;logger[_0x3d3291('0xa')](_0x3d3291('0x13'),_0x14e733[_0x3d3291('0x6')],_0xe8d6b9),_0x2ea72a(_0x3131fa['error'](0x1f4,_0x14e733[_0x3d3291('0x6')]));});});}; \ No newline at end of file +const a335_0x57c0=['message','include','GetZendeskAccount','attributes','options','findAll','limit','ShowZendeskAccount','error','rpc','then','model','../../mysqldb','lodash','debug','ZendeskAccount','map','raw','info','catch','where'];(function(_0x32d83f,_0x57c020){const _0x5a9590=function(_0xef12b9){while(--_0xef12b9){_0x32d83f['push'](_0x32d83f['shift']());}};_0x5a9590(++_0x57c020);}(a335_0x57c0,0xbe));const a335_0x5a95=function(_0x32d83f,_0x57c020){_0x32d83f=_0x32d83f-0x0;let _0x5a9590=a335_0x57c0[_0x32d83f];return _0x5a9590;};const _0xd923b8=a335_0x5a95;'use strict';const _=require(_0xd923b8('0xc')),db=require(_0xd923b8('0xb'))['db'],logger=require('../../config/logger')(_0xd923b8('0x8'));exports['GetZendeskAccount']=function(_0xef12b9){const _0x59efeb=this;return new Promise(function(_0x8a4ed9,_0x5265e6){const _0x14cafe=a335_0x5a95;return db['ZendeskAccount'][_0x14cafe('0x4')]({'raw':_0xef12b9[_0x14cafe('0x3')]?_0xef12b9[_0x14cafe('0x3')][_0x14cafe('0x10')]===undefined?!![]:![]:!![],'where':_0xef12b9[_0x14cafe('0x3')]?_0xef12b9[_0x14cafe('0x3')][_0x14cafe('0x13')]||null:null,'attributes':_0xef12b9[_0x14cafe('0x3')]?_0xef12b9[_0x14cafe('0x3')][_0x14cafe('0x2')]||null:null,'limit':_0xef12b9[_0x14cafe('0x3')]?_0xef12b9[_0x14cafe('0x3')][_0x14cafe('0x5')]||null:null,'include':_0xef12b9[_0x14cafe('0x3')]?_0xef12b9[_0x14cafe('0x3')][_0x14cafe('0x0')]?_[_0x14cafe('0xf')](_0xef12b9['options'][_0x14cafe('0x0')],function(_0xcbad7){const _0x41d361=_0x14cafe;return{'model':db[_0xcbad7[_0x41d361('0xa')]],'as':_0xcbad7['as'],'attributes':_0xcbad7[_0x41d361('0x2')],'include':_0xcbad7[_0x41d361('0x0')]?_[_0x41d361('0xf')](_0xcbad7[_0x41d361('0x0')],function(_0x199e53){const _0xd1d647=_0x41d361;return{'model':db[_0x199e53['model']],'as':_0x199e53['as'],'attributes':_0x199e53['attributes'],'include':_0x199e53[_0xd1d647('0x0')]?_['map'](_0x199e53['include'],function(_0xf6efa2){const _0x325b61=_0xd1d647;return{'model':db[_0xf6efa2[_0x325b61('0xa')]],'as':_0xf6efa2['as'],'attributes':_0xf6efa2[_0x325b61('0x2')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x37394a){const _0x1951f4=_0x14cafe;logger[_0x1951f4('0x11')](_0x1951f4('0x1'),_0xef12b9),logger[_0x1951f4('0xd')]('GetZendeskAccount',_0xef12b9,JSON['stringify'](_0x37394a)),_0x8a4ed9(_0x37394a);})[_0x14cafe('0x12')](function(_0x536813){const _0x1e5293=_0x14cafe;logger[_0x1e5293('0x7')](_0x1e5293('0x1'),_0x536813[_0x1e5293('0x14')],_0xef12b9),_0x5265e6(_0x59efeb[_0x1e5293('0x7')](0x1f4,_0x536813[_0x1e5293('0x14')]));});});},exports['ShowZendeskAccount']=function(_0x31f539){const _0x47f0d7=this;return new Promise(function(_0x3a8720,_0x1c6c99){const _0x1633a0=a335_0x5a95;return db[_0x1633a0('0xe')]['findOne']({'raw':_0x31f539[_0x1633a0('0x3')]?_0x31f539[_0x1633a0('0x3')]['raw']===undefined?!![]:![]:!![],'where':_0x31f539[_0x1633a0('0x3')]?_0x31f539[_0x1633a0('0x3')]['where']||null:null,'attributes':_0x31f539[_0x1633a0('0x3')]?_0x31f539['options'][_0x1633a0('0x2')]||null:null,'include':_0x31f539[_0x1633a0('0x3')]?_0x31f539['options'][_0x1633a0('0x0')]?_[_0x1633a0('0xf')](_0x31f539[_0x1633a0('0x3')]['include'],function(_0x1e5744){const _0x39bd02=_0x1633a0;return{'model':db[_0x1e5744[_0x39bd02('0xa')]],'as':_0x1e5744['as'],'attributes':_0x1e5744[_0x39bd02('0x2')],'include':_0x1e5744['include']?_[_0x39bd02('0xf')](_0x1e5744[_0x39bd02('0x0')],function(_0x402d92){const _0x3a562c=_0x39bd02;return{'model':db[_0x402d92[_0x3a562c('0xa')]],'as':_0x402d92['as'],'attributes':_0x402d92[_0x3a562c('0x2')],'include':_0x402d92[_0x3a562c('0x0')]?_[_0x3a562c('0xf')](_0x402d92['include'],function(_0x58f64f){const _0x53d921=_0x3a562c;return{'model':db[_0x58f64f[_0x53d921('0xa')]],'as':_0x58f64f['as'],'attributes':_0x58f64f[_0x53d921('0x2')]};}):[]};}):[]};}):[]:[]})[_0x1633a0('0x9')](function(_0x1f7115){const _0x4064a6=_0x1633a0;logger[_0x4064a6('0x11')](_0x4064a6('0x6'),_0x31f539),logger[_0x4064a6('0xd')](_0x4064a6('0x6'),_0x31f539,JSON['stringify'](_0x1f7115)),_0x3a8720(_0x1f7115);})[_0x1633a0('0x12')](function(_0x478070){const _0x107816=_0x1633a0;logger[_0x107816('0x7')](_0x107816('0x6'),_0x478070['message'],_0x31f539),_0x1c6c99(_0x47f0d7[_0x107816('0x7')](0x1f4,_0x478070['message']));});});}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/index.js b/server/api/intZendeskConfiguration/index.js index c13044d..63c82af 100644 --- a/server/api/intZendeskConfiguration/index.js +++ b/server/api/intZendeskConfiguration/index.js @@ -1 +1 @@ -const a336_0x2011=['Router','exports','getSubjects','index','put','get','getDescriptions','express','setTags','isAuthenticated','/:id/fields','/:id','show','/:id/tags','getFields','/:id/subjects','create','delete','update','post','destroy','./intZendeskConfiguration.controller'];(function(_0x9e3cc3,_0x201194){const _0x12461d=function(_0x98ec54){while(--_0x98ec54){_0x9e3cc3['push'](_0x9e3cc3['shift']());}};_0x12461d(++_0x201194);}(a336_0x2011,0x12c));const a336_0x1246=function(_0x9e3cc3,_0x201194){_0x9e3cc3=_0x9e3cc3-0x0;let _0x12461d=a336_0x2011[_0x9e3cc3];return _0x12461d;};const _0x35485a=a336_0x1246;'use strict';const express=require(_0x35485a('0xf')),router=express[_0x35485a('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x35485a('0x7'));router['get']('/',auth[_0x35485a('0x11')](),controller[_0x35485a('0xb')]),router[_0x35485a('0xd')](_0x35485a('0x13'),auth[_0x35485a('0x11')](),controller[_0x35485a('0x14')]),router[_0x35485a('0xd')](_0x35485a('0x12'),auth[_0x35485a('0x11')](),controller[_0x35485a('0x0')]),router[_0x35485a('0xd')](_0x35485a('0x1'),auth[_0x35485a('0x11')](),controller[_0x35485a('0xa')]),router['get']('/:id/descriptions',auth[_0x35485a('0x11')](),controller[_0x35485a('0xe')]),router['get'](_0x35485a('0x15'),auth[_0x35485a('0x11')](),controller['getTags']),router['post']('/',auth['isAuthenticated'](),controller[_0x35485a('0x2')]),router[_0x35485a('0x5')]('/:id/tags',auth[_0x35485a('0x11')](),controller[_0x35485a('0x10')]),router[_0x35485a('0xc')]('/:id',auth[_0x35485a('0x11')](),controller[_0x35485a('0x4')]),router[_0x35485a('0x3')](_0x35485a('0x13'),auth['isAuthenticated'](),controller[_0x35485a('0x6')]),module[_0x35485a('0x9')]=router; \ No newline at end of file +const a336_0x1cde=['/:id/tags','getFields','delete','exports','/:id/subjects','show','./intZendeskConfiguration.controller','Router','get','/:id/descriptions','../../components/auth/service','getDescriptions','put','/:id','express','isAuthenticated','index','post'];(function(_0x1de41c,_0x1cde99){const _0x5cd3b9=function(_0x180eee){while(--_0x180eee){_0x1de41c['push'](_0x1de41c['shift']());}};_0x5cd3b9(++_0x1cde99);}(a336_0x1cde,0x88));const a336_0x5cd3=function(_0x1de41c,_0x1cde99){_0x1de41c=_0x1de41c-0x0;let _0x5cd3b9=a336_0x1cde[_0x1de41c];return _0x5cd3b9;};const _0x378a6f=a336_0x5cd3;'use strict';const express=require(_0x378a6f('0x4')),router=express[_0x378a6f('0xf')](),auth=require(_0x378a6f('0x0')),controller=require(_0x378a6f('0xe'));router[_0x378a6f('0x10')]('/',auth['isAuthenticated'](),controller[_0x378a6f('0x6')]),router['get'](_0x378a6f('0x3'),auth[_0x378a6f('0x5')](),controller[_0x378a6f('0xd')]),router['get']('/:id/fields',auth[_0x378a6f('0x5')](),controller[_0x378a6f('0x9')]),router['get'](_0x378a6f('0xc'),auth[_0x378a6f('0x5')](),controller['getSubjects']),router[_0x378a6f('0x10')](_0x378a6f('0x11'),auth['isAuthenticated'](),controller[_0x378a6f('0x1')]),router[_0x378a6f('0x10')](_0x378a6f('0x8'),auth[_0x378a6f('0x5')](),controller['getTags']),router[_0x378a6f('0x7')]('/',auth['isAuthenticated'](),controller['create']),router[_0x378a6f('0x7')](_0x378a6f('0x8'),auth[_0x378a6f('0x5')](),controller['setTags']),router[_0x378a6f('0x2')](_0x378a6f('0x3'),auth[_0x378a6f('0x5')](),controller['update']),router[_0x378a6f('0xa')](_0x378a6f('0x3'),auth[_0x378a6f('0x5')](),controller['destroy']),module[_0x378a6f('0xb')]=router; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js index 33b416a..8f51bb6 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js @@ -1 +1 @@ -const a337_0x14ae=['STRING','sequelize'];(function(_0x3b6e33,_0x14ae6d){const _0x14f23a=function(_0x2f63e2){while(--_0x2f63e2){_0x3b6e33['push'](_0x3b6e33['shift']());}};_0x14f23a(++_0x14ae6d);}(a337_0x14ae,0x1ad));const a337_0x14f2=function(_0x3b6e33,_0x14ae6d){_0x3b6e33=_0x3b6e33-0x0;let _0x14f23a=a337_0x14ae[_0x3b6e33];return _0x14f23a;};const _0x430ea1=a337_0x14f2;'use strict';const Sequelize=require(_0x430ea1('0x0'));module['exports']={'name':{'type':Sequelize[_0x430ea1('0x1')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a337_0x1ace=['sequelize','STRING'];(function(_0x3ba352,_0x1ace19){const _0x45077f=function(_0x221b8a){while(--_0x221b8a){_0x3ba352['push'](_0x3ba352['shift']());}};_0x45077f(++_0x1ace19);}(a337_0x1ace,0x16b));const a337_0x4507=function(_0x3ba352,_0x1ace19){_0x3ba352=_0x3ba352-0x0;let _0x45077f=a337_0x1ace[_0x3ba352];return _0x45077f;};const _0x5edf03=a337_0x4507;'use strict';const Sequelize=require(_0x5edf03('0x1'));module['exports']={'name':{'type':Sequelize[_0x5edf03('0x0')]},'description':{'type':Sequelize[_0x5edf03('0x0')]}}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js index 0a84845..abc10e6 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js @@ -1 +1 @@ -const a338_0x2ef7=['rows','catch','sequelize','getFields','error','then','includeAll','sort','body','query','filters','api','key','like','../../config/logger','offset','intersection','Content-Range','getTags','Tag','count','nolimit','getSubjects','create','keys','setTags','undefined','pick','merge','attributes','params','ZendeskConfiguration','rawAttributes','order','lodash','json','send','limit','getDescriptions','type','destroy','length','model','sendStatus','../../mysqldb','where','ZendeskField','findOne','filter','end','fields','map','set','ids','findAll','show','include','stack','options','index','name'];(function(_0x6669de,_0x2ef781){const _0x5e28ba=function(_0x1c6633){while(--_0x1c6633){_0x6669de['push'](_0x6669de['shift']());}};_0x5e28ba(++_0x2ef781);}(a338_0x2ef7,0x100));const a338_0x5e28=function(_0x6669de,_0x2ef781){_0x6669de=_0x6669de-0x0;let _0x5e28ba=a338_0x2ef7[_0x6669de];return _0x5e28ba;};const _0x1e5729=a338_0x5e28;'use strict';const _=require(_0x1e5729('0x16')),qs=require('../../components/parsers/qs'),logger=require(_0x1e5729('0x2'))(_0x1e5729('0x3c')),db=require(_0x1e5729('0x20'))['db'],{Op}=require(_0x1e5729('0x33'));function respondWithResult(_0x1c6633,_0x22adf4){return _0x22adf4=_0x22adf4||0xc8,function(_0x2e40af){const _0x4537f6=a338_0x5e28;if(_0x2e40af)return _0x1c6633['status'](_0x22adf4)[_0x4537f6('0x17')](_0x2e40af);};}function respondWithFilteredResult(_0x42850c,_0x421ad5){return function(_0x482a0f){const _0xfff9d1=a338_0x5e28;if(_0x482a0f){const _0x15cad1=_0x482a0f[_0xfff9d1('0x8')],_0x56d41a=_0x421ad5[_0xfff9d1('0x3')];let _0x40ca24=_0x421ad5[_0xfff9d1('0x3')]+_0x421ad5[_0xfff9d1('0x19')],_0x1b190a;return _0x40ca24>=_0x15cad1?(_0x40ca24=_0x15cad1,_0x1b190a=0xc8):_0x1b190a=0xce,_0x42850c['status'](_0x1b190a),_0x42850c[_0xfff9d1('0x28')](_0xfff9d1('0x5'),_0x56d41a+'-'+_0x40ca24+'/'+_0x15cad1)[_0xfff9d1('0x17')](_0x482a0f);}return null;};}function saveUpdates(_0x46ddad){return function(_0x3f1677){const _0x512dda=a338_0x5e28;if(_0x3f1677)return _0x3f1677['update'](_0x46ddad)[_0x512dda('0x36')](function(_0x296a22){return _0x296a22;});return null;};}function removeEntity(_0x32a265){return function(_0x2ef1a8){const _0x4b66bb=a338_0x5e28;if(_0x2ef1a8)return _0x2ef1a8[_0x4b66bb('0x1c')]()[_0x4b66bb('0x36')](function(){const _0x3724eb=_0x4b66bb;_0x32a265['status'](0xcc)[_0x3724eb('0x25')]();});};}function handleEntityNotFound(_0x26f12e){return function(_0x2425b7){const _0x33098f=a338_0x5e28;return!_0x2425b7&&_0x26f12e[_0x33098f('0x1f')](0x194),_0x2425b7;};}function handleError(_0x1bddc2,_0xc278a0){return _0xc278a0=_0xc278a0||0x1f4,function(_0x3c0a54){const _0x4b011c=a338_0x5e28;logger[_0x4b011c('0x35')](_0x3c0a54[_0x4b011c('0x2d')]),_0x3c0a54[_0x4b011c('0x30')]&&delete _0x3c0a54['name'],_0x1bddc2['status'](_0xc278a0)[_0x4b011c('0x18')](_0x3c0a54);};}exports[_0x1e5729('0x2f')]=function(_0x2f2245,_0x1d5692){const _0x213759=_0x1e5729;let _0x5c8abc={};const _0x2f06c8={},_0x127a48={'count':0x0,'rows':[]},_0x5f22ee=_[_0x213759('0x27')](db[_0x213759('0x13')][_0x213759('0x14')],function(_0x1f577c){const _0x47fa5a=_0x213759;return{'name':_0x1f577c['fieldName'],'type':_0x1f577c[_0x47fa5a('0x1b')][_0x47fa5a('0x0')]};});_0x2f06c8[_0x213759('0x1e')]=_['map'](_0x5f22ee,_0x213759('0x30')),_0x2f06c8[_0x213759('0x3a')]=_[_0x213759('0xc')](_0x2f2245['query']),_0x2f06c8['filters']=_[_0x213759('0x4')](_0x2f06c8[_0x213759('0x1e')],_0x2f06c8['query']),_0x5c8abc[_0x213759('0x11')]=_[_0x213759('0x4')](_0x2f06c8['model'],qs[_0x213759('0x26')](_0x2f2245[_0x213759('0x3a')][_0x213759('0x26')])),_0x5c8abc[_0x213759('0x11')]=_0x5c8abc[_0x213759('0x11')][_0x213759('0x1d')]?_0x5c8abc['attributes']:_0x2f06c8[_0x213759('0x1e')];typeof _0x2f2245[_0x213759('0x3a')][_0x213759('0x9')]===_0x213759('0xe')&&(_0x5c8abc[_0x213759('0x19')]=qs[_0x213759('0x19')](_0x2f2245[_0x213759('0x3a')][_0x213759('0x19')]),_0x5c8abc[_0x213759('0x3')]=qs[_0x213759('0x3')](_0x2f2245[_0x213759('0x3a')]['offset']));_0x5c8abc[_0x213759('0x15')]=qs[_0x213759('0x38')](_0x2f2245['query'][_0x213759('0x38')]),_0x5c8abc[_0x213759('0x21')]=qs[_0x213759('0x3b')](_[_0x213759('0xf')](_0x2f2245['query'],_0x2f06c8[_0x213759('0x3b')]),_0x5f22ee);_0x2f2245['query'][_0x213759('0x24')]&&(_0x5c8abc[_0x213759('0x21')]=_[_0x213759('0x10')](_0x5c8abc[_0x213759('0x21')],{[Op['or']]:_[_0x213759('0x27')](_0x5f22ee,function(_0x1bc015){const _0x312756=_0x213759;if(_0x1bc015[_0x312756('0x1b')]!=='VIRTUAL'){const _0x424f49={};return _0x424f49[_0x1bc015[_0x312756('0x30')]]={[Op[_0x312756('0x1')]]:'%'+_0x2f2245[_0x312756('0x3a')][_0x312756('0x24')]+'%'},_0x424f49;}})}));_0x5c8abc=_['merge']({},_0x5c8abc,_0x2f2245['options']);const _0x4a4534={'where':_0x5c8abc[_0x213759('0x21')]};return db[_0x213759('0x13')][_0x213759('0x8')](_0x4a4534)['then'](function(_0x3700c5){const _0x12e8e6=_0x213759;return _0x127a48[_0x12e8e6('0x8')]=_0x3700c5,_0x2f2245[_0x12e8e6('0x3a')][_0x12e8e6('0x37')]&&(_0x5c8abc[_0x12e8e6('0x2c')]=[{'all':!![]}]),db[_0x12e8e6('0x13')][_0x12e8e6('0x2a')](_0x5c8abc);})[_0x213759('0x36')](function(_0x93c8c6){const _0x304708=_0x213759;return _0x127a48[_0x304708('0x31')]=_0x93c8c6,_0x127a48;})[_0x213759('0x36')](respondWithFilteredResult(_0x1d5692,_0x5c8abc))[_0x213759('0x32')](handleError(_0x1d5692,null));},exports[_0x1e5729('0x2b')]=function(_0x8fcab6,_0x46b37a){const _0x1af760=_0x1e5729;let _0x2a28f8={'raw':![],'where':{'id':_0x8fcab6[_0x1af760('0x12')]['id']}};const _0x488496={};return _0x488496[_0x1af760('0x1e')]=_[_0x1af760('0xc')](db[_0x1af760('0x13')][_0x1af760('0x14')]),_0x488496['query']=_[_0x1af760('0xc')](_0x8fcab6[_0x1af760('0x3a')]),_0x488496['filters']=_['intersection'](_0x488496[_0x1af760('0x1e')],_0x488496[_0x1af760('0x3a')]),_0x2a28f8[_0x1af760('0x11')]=_[_0x1af760('0x4')](_0x488496[_0x1af760('0x1e')],qs[_0x1af760('0x26')](_0x8fcab6[_0x1af760('0x3a')][_0x1af760('0x26')])),_0x2a28f8[_0x1af760('0x11')]=_0x2a28f8[_0x1af760('0x11')][_0x1af760('0x1d')]?_0x2a28f8['attributes']:_0x488496[_0x1af760('0x1e')],_0x8fcab6[_0x1af760('0x3a')][_0x1af760('0x37')]&&(_0x2a28f8[_0x1af760('0x2c')]=[{'all':!![]}]),_0x2a28f8=_[_0x1af760('0x10')]({},_0x2a28f8,_0x8fcab6[_0x1af760('0x2e')]),db[_0x1af760('0x13')]['findOne'](_0x2a28f8)[_0x1af760('0x36')](handleEntityNotFound(_0x46b37a,null))['then'](respondWithResult(_0x46b37a,null))[_0x1af760('0x32')](handleError(_0x46b37a,null));},exports[_0x1e5729('0xb')]=function(_0x28cd07,_0x3a2112){const _0x1d76b4=_0x1e5729;return db['ZendeskConfiguration']['create'](_0x28cd07[_0x1d76b4('0x39')],{})[_0x1d76b4('0x36')](respondWithResult(_0x3a2112,0xc9))[_0x1d76b4('0x32')](handleError(_0x3a2112,null));},exports['update']=function(_0x515d3a,_0xca4c1c){const _0x40b560=_0x1e5729;return _0x515d3a[_0x40b560('0x39')]['id']&&delete _0x515d3a[_0x40b560('0x39')]['id'],db['ZendeskConfiguration'][_0x40b560('0x23')]({'where':{'id':_0x515d3a[_0x40b560('0x12')]['id']}})[_0x40b560('0x36')](handleEntityNotFound(_0xca4c1c,null))[_0x40b560('0x36')](saveUpdates(_0x515d3a[_0x40b560('0x39')],null))['then'](respondWithResult(_0xca4c1c,null))[_0x40b560('0x32')](handleError(_0xca4c1c,null));},exports[_0x1e5729('0x1c')]=function(_0x5dd3bf,_0x102927){const _0x43e054=_0x1e5729;return db[_0x43e054('0x13')]['findOne']({'where':{'id':_0x5dd3bf[_0x43e054('0x12')]['id']}})[_0x43e054('0x36')](handleEntityNotFound(_0x102927,null))[_0x43e054('0x36')](removeEntity(_0x102927,null))[_0x43e054('0x32')](handleError(_0x102927,null));},exports[_0x1e5729('0x34')]=function(_0x5b5a4f,_0x92ac38){const _0x4ca90c=_0x1e5729;let _0x5ccf48={};const _0x14d4b2={};let _0x5d57ae,_0x18d48d;return db[_0x4ca90c('0x13')][_0x4ca90c('0x23')]({'where':{'id':_0x5b5a4f[_0x4ca90c('0x12')]['id']}})[_0x4ca90c('0x36')](handleEntityNotFound(_0x92ac38,null))[_0x4ca90c('0x36')](function(_0x4bbc8){const _0x274da0=_0x4ca90c;if(_0x4bbc8)return _0x5d57ae=_0x4bbc8,_0x14d4b2[_0x274da0('0x1e')]=_[_0x274da0('0xc')](db[_0x274da0('0x22')][_0x274da0('0x14')]),_0x14d4b2[_0x274da0('0x3a')]=_['keys'](_0x5b5a4f[_0x274da0('0x3a')]),_0x14d4b2[_0x274da0('0x3b')]=_[_0x274da0('0x4')](_0x14d4b2[_0x274da0('0x1e')],_0x14d4b2['query']),_0x5ccf48[_0x274da0('0x11')]=_['intersection'](_0x14d4b2[_0x274da0('0x1e')],qs['fields'](_0x5b5a4f['query']['fields'])),_0x5ccf48[_0x274da0('0x11')]=_0x5ccf48['attributes'][_0x274da0('0x1d')]?_0x5ccf48[_0x274da0('0x11')]:_0x14d4b2['model'],_0x5ccf48[_0x274da0('0x15')]=qs['sort'](_0x5b5a4f['query'][_0x274da0('0x38')]),_0x5ccf48[_0x274da0('0x21')]=qs[_0x274da0('0x3b')](_[_0x274da0('0xf')](_0x5b5a4f[_0x274da0('0x3a')],_0x14d4b2[_0x274da0('0x3b')])),_0x5b5a4f[_0x274da0('0x3a')][_0x274da0('0x24')]&&(_0x5ccf48[_0x274da0('0x21')]=_[_0x274da0('0x10')](_0x5ccf48[_0x274da0('0x21')],{[Op['or']]:_[_0x274da0('0x27')](_0x5ccf48[_0x274da0('0x11')],function(_0x3680f0){const _0x4b83ff=_0x274da0,_0x3f3d8a={};return _0x3f3d8a[_0x3680f0]={[Op['like']]:'%'+_0x5b5a4f[_0x4b83ff('0x3a')]['filter']+'%'},_0x3f3d8a;})})),_0x5ccf48=_[_0x274da0('0x10')]({},_0x5ccf48,_0x5b5a4f['options']),_0x5d57ae['getFields'](_0x5ccf48);})['then'](function(_0x484bd7){const _0x31d9cb=_0x4ca90c;if(_0x484bd7)return _0x18d48d=_0x484bd7[_0x31d9cb('0x1d')],typeof _0x5b5a4f[_0x31d9cb('0x3a')][_0x31d9cb('0x9')]===_0x31d9cb('0xe')&&(_0x5ccf48[_0x31d9cb('0x19')]=qs[_0x31d9cb('0x19')](_0x5b5a4f[_0x31d9cb('0x3a')][_0x31d9cb('0x19')]),_0x5ccf48[_0x31d9cb('0x3')]=qs[_0x31d9cb('0x3')](_0x5b5a4f[_0x31d9cb('0x3a')][_0x31d9cb('0x3')])),_0x5d57ae['getFields'](_0x5ccf48);})['then'](function(_0x136658){if(_0x136658)return _0x136658?{'count':_0x18d48d,'rows':_0x136658}:null;})[_0x4ca90c('0x36')](respondWithResult(_0x92ac38,null))[_0x4ca90c('0x32')](handleError(_0x92ac38,null));},exports[_0x1e5729('0xa')]=function(_0x3c7e46,_0x2f1455){const _0x15577e=_0x1e5729;let _0x1b10b6={};const _0x563447={};let _0x55fde9,_0x3aeb51;return db[_0x15577e('0x13')][_0x15577e('0x23')]({'where':{'id':_0x3c7e46[_0x15577e('0x12')]['id']}})[_0x15577e('0x36')](handleEntityNotFound(_0x2f1455,null))[_0x15577e('0x36')](function(_0x425b16){const _0x4c3f04=_0x15577e;if(_0x425b16)return _0x55fde9=_0x425b16,_0x563447[_0x4c3f04('0x1e')]=_['keys'](db[_0x4c3f04('0x22')][_0x4c3f04('0x14')]),_0x563447[_0x4c3f04('0x3a')]=_[_0x4c3f04('0xc')](_0x3c7e46['query']),_0x563447['filters']=_[_0x4c3f04('0x4')](_0x563447[_0x4c3f04('0x1e')],_0x563447[_0x4c3f04('0x3a')]),_0x1b10b6[_0x4c3f04('0x11')]=_[_0x4c3f04('0x4')](_0x563447['model'],qs[_0x4c3f04('0x26')](_0x3c7e46[_0x4c3f04('0x3a')][_0x4c3f04('0x26')])),_0x1b10b6[_0x4c3f04('0x11')]=_0x1b10b6[_0x4c3f04('0x11')]['length']?_0x1b10b6[_0x4c3f04('0x11')]:_0x563447[_0x4c3f04('0x1e')],_0x1b10b6[_0x4c3f04('0x15')]=qs[_0x4c3f04('0x38')](_0x3c7e46[_0x4c3f04('0x3a')]['sort']),_0x1b10b6['where']=qs[_0x4c3f04('0x3b')](_[_0x4c3f04('0xf')](_0x3c7e46[_0x4c3f04('0x3a')],_0x563447[_0x4c3f04('0x3b')])),_0x3c7e46['query']['filter']&&(_0x1b10b6[_0x4c3f04('0x21')]=_[_0x4c3f04('0x10')](_0x1b10b6[_0x4c3f04('0x21')],{[Op['or']]:_['map'](_0x1b10b6[_0x4c3f04('0x11')],function(_0x360755){const _0x326efd=_0x4c3f04,_0x1038b4={};return _0x1038b4[_0x360755]={[Op[_0x326efd('0x1')]]:'%'+_0x3c7e46[_0x326efd('0x3a')][_0x326efd('0x24')]+'%'},_0x1038b4;})})),_0x1b10b6=_[_0x4c3f04('0x10')]({},_0x1b10b6,_0x3c7e46[_0x4c3f04('0x2e')]),_0x55fde9[_0x4c3f04('0xa')](_0x1b10b6);})[_0x15577e('0x36')](function(_0x197b64){const _0x36d095=_0x15577e;if(_0x197b64)return _0x3aeb51=_0x197b64[_0x36d095('0x1d')],typeof _0x3c7e46[_0x36d095('0x3a')][_0x36d095('0x9')]===_0x36d095('0xe')&&(_0x1b10b6[_0x36d095('0x19')]=qs[_0x36d095('0x19')](_0x3c7e46[_0x36d095('0x3a')][_0x36d095('0x19')]),_0x1b10b6['offset']=qs[_0x36d095('0x3')](_0x3c7e46[_0x36d095('0x3a')][_0x36d095('0x3')])),_0x55fde9[_0x36d095('0xa')](_0x1b10b6);})['then'](function(_0xed7d82){if(_0xed7d82)return _0xed7d82?{'count':_0x3aeb51,'rows':_0xed7d82}:null;})['then'](respondWithResult(_0x2f1455,null))[_0x15577e('0x32')](handleError(_0x2f1455,null));},exports[_0x1e5729('0x1a')]=function(_0x3a69c7,_0x2d8291){const _0xaabb1f=_0x1e5729;let _0x1a5e18={};const _0x4c9520={};let _0x2ffba2,_0x1981d5;return db[_0xaabb1f('0x13')][_0xaabb1f('0x23')]({'where':{'id':_0x3a69c7[_0xaabb1f('0x12')]['id']}})[_0xaabb1f('0x36')](handleEntityNotFound(_0x2d8291,null))[_0xaabb1f('0x36')](function(_0x4224aa){const _0x462ef3=_0xaabb1f;if(_0x4224aa)return _0x2ffba2=_0x4224aa,_0x4c9520[_0x462ef3('0x1e')]=_[_0x462ef3('0xc')](db['ZendeskField']['rawAttributes']),_0x4c9520[_0x462ef3('0x3a')]=_['keys'](_0x3a69c7[_0x462ef3('0x3a')]),_0x4c9520['filters']=_[_0x462ef3('0x4')](_0x4c9520[_0x462ef3('0x1e')],_0x4c9520[_0x462ef3('0x3a')]),_0x1a5e18['attributes']=_[_0x462ef3('0x4')](_0x4c9520['model'],qs[_0x462ef3('0x26')](_0x3a69c7[_0x462ef3('0x3a')]['fields'])),_0x1a5e18[_0x462ef3('0x11')]=_0x1a5e18[_0x462ef3('0x11')][_0x462ef3('0x1d')]?_0x1a5e18['attributes']:_0x4c9520[_0x462ef3('0x1e')],_0x1a5e18[_0x462ef3('0x15')]=qs[_0x462ef3('0x38')](_0x3a69c7['query'][_0x462ef3('0x38')]),_0x1a5e18[_0x462ef3('0x21')]=qs[_0x462ef3('0x3b')](_['pick'](_0x3a69c7[_0x462ef3('0x3a')],_0x4c9520['filters'])),_0x3a69c7[_0x462ef3('0x3a')][_0x462ef3('0x24')]&&(_0x1a5e18['where']=_[_0x462ef3('0x10')](_0x1a5e18[_0x462ef3('0x21')],{[Op['or']]:_['map'](_0x1a5e18[_0x462ef3('0x11')],function(_0x405ea7){const _0x560fdb=_0x462ef3,_0x48602e={};return _0x48602e[_0x405ea7]={[Op[_0x560fdb('0x1')]]:'%'+_0x3a69c7[_0x560fdb('0x3a')]['filter']+'%'},_0x48602e;})})),_0x1a5e18=_['merge']({},_0x1a5e18,_0x3a69c7[_0x462ef3('0x2e')]),_0x2ffba2[_0x462ef3('0x1a')](_0x1a5e18);})[_0xaabb1f('0x36')](function(_0x3b01b0){const _0x4033d0=_0xaabb1f;if(_0x3b01b0)return _0x1981d5=_0x3b01b0[_0x4033d0('0x1d')],typeof _0x3a69c7[_0x4033d0('0x3a')][_0x4033d0('0x9')]==='undefined'&&(_0x1a5e18['limit']=qs[_0x4033d0('0x19')](_0x3a69c7[_0x4033d0('0x3a')]['limit']),_0x1a5e18['offset']=qs[_0x4033d0('0x3')](_0x3a69c7[_0x4033d0('0x3a')][_0x4033d0('0x3')])),_0x2ffba2['getDescriptions'](_0x1a5e18);})['then'](function(_0x2a82fb){if(_0x2a82fb)return _0x2a82fb?{'count':_0x1981d5,'rows':_0x2a82fb}:null;})[_0xaabb1f('0x36')](respondWithResult(_0x2d8291,null))[_0xaabb1f('0x32')](handleError(_0x2d8291,null));},exports['getTags']=function(_0x2517be,_0x55c6aa){const _0x52d012=_0x1e5729;let _0x414ae7={};const _0xbda74c={};let _0x134b57,_0x18082b;return db[_0x52d012('0x13')][_0x52d012('0x23')]({'where':{'id':_0x2517be[_0x52d012('0x12')]['id']}})[_0x52d012('0x36')](handleEntityNotFound(_0x55c6aa,null))[_0x52d012('0x36')](function(_0x46fcf0){const _0x65c050=_0x52d012;if(_0x46fcf0)return _0x134b57=_0x46fcf0,_0xbda74c[_0x65c050('0x1e')]=_[_0x65c050('0xc')](db[_0x65c050('0x7')][_0x65c050('0x14')]),_0xbda74c[_0x65c050('0x3a')]=_[_0x65c050('0xc')](_0x2517be[_0x65c050('0x3a')]),_0xbda74c[_0x65c050('0x3b')]=_[_0x65c050('0x4')](_0xbda74c[_0x65c050('0x1e')],_0xbda74c[_0x65c050('0x3a')]),_0x414ae7['attributes']=_[_0x65c050('0x4')](_0xbda74c[_0x65c050('0x1e')],qs[_0x65c050('0x26')](_0x2517be['query']['fields'])),_0x414ae7[_0x65c050('0x11')]=_0x414ae7[_0x65c050('0x11')][_0x65c050('0x1d')]?_0x414ae7[_0x65c050('0x11')]:_0xbda74c['model'],_0x414ae7[_0x65c050('0x15')]=qs['sort'](_0x2517be[_0x65c050('0x3a')][_0x65c050('0x38')]),_0x414ae7[_0x65c050('0x21')]=qs[_0x65c050('0x3b')](_[_0x65c050('0xf')](_0x2517be['query'],_0xbda74c[_0x65c050('0x3b')])),_0x2517be[_0x65c050('0x3a')]['filter']&&(_0x414ae7[_0x65c050('0x21')]=_[_0x65c050('0x10')](_0x414ae7[_0x65c050('0x21')],{[Op['or']]:_[_0x65c050('0x27')](_0x414ae7[_0x65c050('0x11')],function(_0x22f2e0){const _0x10b188=_0x65c050,_0x58a47b={};return _0x58a47b[_0x22f2e0]={[Op[_0x10b188('0x1')]]:'%'+_0x2517be[_0x10b188('0x3a')][_0x10b188('0x24')]+'%'},_0x58a47b;})})),_0x414ae7=_[_0x65c050('0x10')]({},_0x414ae7,_0x2517be[_0x65c050('0x2e')]),_0x134b57[_0x65c050('0x6')](_0x414ae7);})['then'](function(_0x45344f){const _0x521fd3=_0x52d012;if(_0x45344f)return _0x18082b=_0x45344f[_0x521fd3('0x1d')],typeof _0x2517be[_0x521fd3('0x3a')][_0x521fd3('0x9')]===_0x521fd3('0xe')&&(_0x414ae7[_0x521fd3('0x19')]=qs['limit'](_0x2517be[_0x521fd3('0x3a')][_0x521fd3('0x19')]),_0x414ae7[_0x521fd3('0x3')]=qs[_0x521fd3('0x3')](_0x2517be[_0x521fd3('0x3a')][_0x521fd3('0x3')])),_0x134b57[_0x521fd3('0x6')](_0x414ae7);})['then'](function(_0x25ae61){if(_0x25ae61)return _0x25ae61?{'count':_0x18082b,'rows':_0x25ae61}:null;})[_0x52d012('0x36')](respondWithResult(_0x55c6aa,null))[_0x52d012('0x32')](handleError(_0x55c6aa,null));},exports[_0x1e5729('0xd')]=function(_0x5d800f,_0x38296e){const _0x5707b9=_0x1e5729;return _0x5d800f[_0x5707b9('0x39')]['id']&&delete _0x5d800f[_0x5707b9('0x39')]['id'],db[_0x5707b9('0x13')][_0x5707b9('0x23')]({'where':{'id':_0x5d800f[_0x5707b9('0x12')]['id']}})['then'](handleEntityNotFound(_0x38296e,null))['then'](function(_0x3946d6){const _0x563199=_0x5707b9;if(_0x3946d6)return _0x3946d6[_0x563199('0xd')](_0x5d800f[_0x563199('0x39')][_0x563199('0x29')]||[]);return null;})[_0x5707b9('0x36')](respondWithResult(_0x38296e,null))[_0x5707b9('0x32')](handleError(_0x38296e,null));}; \ No newline at end of file +const a338_0x57f0=['order','sendStatus','intersection','undefined','set','include','../../components/parsers/qs','options','body','rows','sequelize','../../mysqldb','params','limit','ids','count','error','update','model','filters','name','pick','offset','ZendeskField','attributes','then','lodash','json','where','map','like','setTags','end','filter','getDescriptions','getTags','../../config/logger','catch','stack','type','getFields','sort','query','rawAttributes','merge','key','findAll','findOne','status','Tag','send','includeAll','ZendeskConfiguration','length','getSubjects','Content-Range','fields','nolimit','keys'];(function(_0x54700d,_0x57f014){const _0x411c38=function(_0x276ab6){while(--_0x276ab6){_0x54700d['push'](_0x54700d['shift']());}};_0x411c38(++_0x57f014);}(a338_0x57f0,0xda));const a338_0x411c=function(_0x54700d,_0x57f014){_0x54700d=_0x54700d-0x0;let _0x411c38=a338_0x57f0[_0x54700d];return _0x411c38;};const _0xd94e4d=a338_0x411c;'use strict';const _=require(_0xd94e4d('0x2c')),qs=require(_0xd94e4d('0x18')),logger=require(_0xd94e4d('0x36'))('api'),db=require(_0xd94e4d('0x1d'))['db'],{Op}=require(_0xd94e4d('0x1c'));function respondWithResult(_0x276ab6,_0x37ce79){return _0x37ce79=_0x37ce79||0xc8,function(_0x221bfc){const _0x2759b7=a338_0x411c;if(_0x221bfc)return _0x276ab6[_0x2759b7('0x7')](_0x37ce79)[_0x2759b7('0x2d')](_0x221bfc);};}function respondWithFilteredResult(_0x1b57bd,_0x2b9fbb){return function(_0x158e40){const _0x11612b=a338_0x411c;if(_0x158e40){const _0x1c050c=_0x158e40[_0x11612b('0x21')],_0x57e2cb=_0x2b9fbb[_0x11612b('0x28')];let _0x114165=_0x2b9fbb[_0x11612b('0x28')]+_0x2b9fbb[_0x11612b('0x1f')],_0x1b346a;return _0x114165>=_0x1c050c?(_0x114165=_0x1c050c,_0x1b346a=0xc8):_0x1b346a=0xce,_0x1b57bd['status'](_0x1b346a),_0x1b57bd[_0x11612b('0x16')](_0x11612b('0xe'),_0x57e2cb+'-'+_0x114165+'/'+_0x1c050c)[_0x11612b('0x2d')](_0x158e40);}return null;};}function saveUpdates(_0x144c55){return function(_0x3d9f9e){const _0xb584f0=a338_0x411c;if(_0x3d9f9e)return _0x3d9f9e['update'](_0x144c55)[_0xb584f0('0x2b')](function(_0x48f686){return _0x48f686;});return null;};}function removeEntity(_0x577ad3){return function(_0x304fbe){const _0x44148e=a338_0x411c;if(_0x304fbe)return _0x304fbe['destroy']()[_0x44148e('0x2b')](function(){const _0x3871f3=_0x44148e;_0x577ad3[_0x3871f3('0x7')](0xcc)[_0x3871f3('0x32')]();});};}function handleEntityNotFound(_0x27db48){return function(_0x2d64ed){const _0x44f065=a338_0x411c;return!_0x2d64ed&&_0x27db48[_0x44f065('0x13')](0x194),_0x2d64ed;};}function handleError(_0x2cb026,_0x55760a){return _0x55760a=_0x55760a||0x1f4,function(_0x1813b6){const _0x1f95d1=a338_0x411c;logger[_0x1f95d1('0x22')](_0x1813b6[_0x1f95d1('0x38')]),_0x1813b6[_0x1f95d1('0x26')]&&delete _0x1813b6[_0x1f95d1('0x26')],_0x2cb026[_0x1f95d1('0x7')](_0x55760a)[_0x1f95d1('0x9')](_0x1813b6);};}exports['index']=function(_0xf4c758,_0x4565ca){const _0x1e727a=_0xd94e4d;let _0x2840e1={};const _0x305f61={},_0x24aae6={'count':0x0,'rows':[]},_0x31e50b=_['map'](db[_0x1e727a('0xb')][_0x1e727a('0x2')],function(_0x4c55fe){const _0x4c3945=_0x1e727a;return{'name':_0x4c55fe['fieldName'],'type':_0x4c55fe['type'][_0x4c3945('0x4')]};});_0x305f61[_0x1e727a('0x24')]=_['map'](_0x31e50b,_0x1e727a('0x26')),_0x305f61[_0x1e727a('0x1')]=_[_0x1e727a('0x11')](_0xf4c758[_0x1e727a('0x1')]),_0x305f61[_0x1e727a('0x25')]=_[_0x1e727a('0x14')](_0x305f61[_0x1e727a('0x24')],_0x305f61[_0x1e727a('0x1')]),_0x2840e1[_0x1e727a('0x2a')]=_[_0x1e727a('0x14')](_0x305f61[_0x1e727a('0x24')],qs[_0x1e727a('0xf')](_0xf4c758['query']['fields'])),_0x2840e1[_0x1e727a('0x2a')]=_0x2840e1['attributes']['length']?_0x2840e1[_0x1e727a('0x2a')]:_0x305f61[_0x1e727a('0x24')];typeof _0xf4c758[_0x1e727a('0x1')][_0x1e727a('0x10')]===_0x1e727a('0x15')&&(_0x2840e1[_0x1e727a('0x1f')]=qs[_0x1e727a('0x1f')](_0xf4c758[_0x1e727a('0x1')][_0x1e727a('0x1f')]),_0x2840e1[_0x1e727a('0x28')]=qs[_0x1e727a('0x28')](_0xf4c758[_0x1e727a('0x1')]['offset']));_0x2840e1['order']=qs[_0x1e727a('0x0')](_0xf4c758[_0x1e727a('0x1')][_0x1e727a('0x0')]),_0x2840e1['where']=qs[_0x1e727a('0x25')](_[_0x1e727a('0x27')](_0xf4c758[_0x1e727a('0x1')],_0x305f61[_0x1e727a('0x25')]),_0x31e50b);_0xf4c758['query']['filter']&&(_0x2840e1['where']=_[_0x1e727a('0x3')](_0x2840e1[_0x1e727a('0x2e')],{[Op['or']]:_['map'](_0x31e50b,function(_0x50d77f){const _0x282ae9=_0x1e727a;if(_0x50d77f[_0x282ae9('0x39')]!=='VIRTUAL'){const _0x7949bb={};return _0x7949bb[_0x50d77f['name']]={[Op[_0x282ae9('0x30')]]:'%'+_0xf4c758[_0x282ae9('0x1')][_0x282ae9('0x33')]+'%'},_0x7949bb;}})}));_0x2840e1=_['merge']({},_0x2840e1,_0xf4c758[_0x1e727a('0x19')]);const _0x80dc22={'where':_0x2840e1['where']};return db[_0x1e727a('0xb')][_0x1e727a('0x21')](_0x80dc22)[_0x1e727a('0x2b')](function(_0x1dd074){const _0x3f09c1=_0x1e727a;return _0x24aae6[_0x3f09c1('0x21')]=_0x1dd074,_0xf4c758['query'][_0x3f09c1('0xa')]&&(_0x2840e1[_0x3f09c1('0x17')]=[{'all':!![]}]),db[_0x3f09c1('0xb')][_0x3f09c1('0x5')](_0x2840e1);})[_0x1e727a('0x2b')](function(_0x57889d){const _0x48a333=_0x1e727a;return _0x24aae6[_0x48a333('0x1b')]=_0x57889d,_0x24aae6;})[_0x1e727a('0x2b')](respondWithFilteredResult(_0x4565ca,_0x2840e1))[_0x1e727a('0x37')](handleError(_0x4565ca,null));},exports['show']=function(_0x5c813f,_0x3c4e61){const _0x5d523a=_0xd94e4d;let _0x7339ac={'raw':![],'where':{'id':_0x5c813f[_0x5d523a('0x1e')]['id']}};const _0xb1560b={};return _0xb1560b[_0x5d523a('0x24')]=_[_0x5d523a('0x11')](db[_0x5d523a('0xb')]['rawAttributes']),_0xb1560b[_0x5d523a('0x1')]=_[_0x5d523a('0x11')](_0x5c813f['query']),_0xb1560b['filters']=_['intersection'](_0xb1560b['model'],_0xb1560b[_0x5d523a('0x1')]),_0x7339ac[_0x5d523a('0x2a')]=_[_0x5d523a('0x14')](_0xb1560b[_0x5d523a('0x24')],qs[_0x5d523a('0xf')](_0x5c813f['query'][_0x5d523a('0xf')])),_0x7339ac[_0x5d523a('0x2a')]=_0x7339ac[_0x5d523a('0x2a')]['length']?_0x7339ac[_0x5d523a('0x2a')]:_0xb1560b[_0x5d523a('0x24')],_0x5c813f[_0x5d523a('0x1')][_0x5d523a('0xa')]&&(_0x7339ac[_0x5d523a('0x17')]=[{'all':!![]}]),_0x7339ac=_[_0x5d523a('0x3')]({},_0x7339ac,_0x5c813f[_0x5d523a('0x19')]),db[_0x5d523a('0xb')][_0x5d523a('0x6')](_0x7339ac)[_0x5d523a('0x2b')](handleEntityNotFound(_0x3c4e61,null))[_0x5d523a('0x2b')](respondWithResult(_0x3c4e61,null))[_0x5d523a('0x37')](handleError(_0x3c4e61,null));},exports['create']=function(_0x2b592a,_0x4d08ac){const _0x2e0582=_0xd94e4d;return db[_0x2e0582('0xb')]['create'](_0x2b592a['body'],{})[_0x2e0582('0x2b')](respondWithResult(_0x4d08ac,0xc9))[_0x2e0582('0x37')](handleError(_0x4d08ac,null));},exports[_0xd94e4d('0x23')]=function(_0x1f814c,_0xde1c57){const _0x2cddf2=_0xd94e4d;return _0x1f814c[_0x2cddf2('0x1a')]['id']&&delete _0x1f814c[_0x2cddf2('0x1a')]['id'],db[_0x2cddf2('0xb')][_0x2cddf2('0x6')]({'where':{'id':_0x1f814c[_0x2cddf2('0x1e')]['id']}})[_0x2cddf2('0x2b')](handleEntityNotFound(_0xde1c57,null))[_0x2cddf2('0x2b')](saveUpdates(_0x1f814c[_0x2cddf2('0x1a')],null))['then'](respondWithResult(_0xde1c57,null))[_0x2cddf2('0x37')](handleError(_0xde1c57,null));},exports['destroy']=function(_0x4fa3b3,_0x5313a1){const _0x383c4c=_0xd94e4d;return db[_0x383c4c('0xb')][_0x383c4c('0x6')]({'where':{'id':_0x4fa3b3[_0x383c4c('0x1e')]['id']}})[_0x383c4c('0x2b')](handleEntityNotFound(_0x5313a1,null))[_0x383c4c('0x2b')](removeEntity(_0x5313a1,null))[_0x383c4c('0x37')](handleError(_0x5313a1,null));},exports[_0xd94e4d('0x3a')]=function(_0x362102,_0x5b0d93){const _0x5c3f76=_0xd94e4d;let _0x21a3b2={};const _0x578fe7={};let _0x4d3ce6,_0x533062;return db[_0x5c3f76('0xb')][_0x5c3f76('0x6')]({'where':{'id':_0x362102[_0x5c3f76('0x1e')]['id']}})[_0x5c3f76('0x2b')](handleEntityNotFound(_0x5b0d93,null))['then'](function(_0x39ca0d){const _0x2afae8=_0x5c3f76;if(_0x39ca0d)return _0x4d3ce6=_0x39ca0d,_0x578fe7['model']=_[_0x2afae8('0x11')](db['ZendeskField'][_0x2afae8('0x2')]),_0x578fe7[_0x2afae8('0x1')]=_[_0x2afae8('0x11')](_0x362102[_0x2afae8('0x1')]),_0x578fe7[_0x2afae8('0x25')]=_[_0x2afae8('0x14')](_0x578fe7[_0x2afae8('0x24')],_0x578fe7[_0x2afae8('0x1')]),_0x21a3b2['attributes']=_[_0x2afae8('0x14')](_0x578fe7[_0x2afae8('0x24')],qs['fields'](_0x362102[_0x2afae8('0x1')][_0x2afae8('0xf')])),_0x21a3b2[_0x2afae8('0x2a')]=_0x21a3b2[_0x2afae8('0x2a')][_0x2afae8('0xc')]?_0x21a3b2[_0x2afae8('0x2a')]:_0x578fe7['model'],_0x21a3b2[_0x2afae8('0x12')]=qs[_0x2afae8('0x0')](_0x362102['query']['sort']),_0x21a3b2[_0x2afae8('0x2e')]=qs['filters'](_[_0x2afae8('0x27')](_0x362102['query'],_0x578fe7[_0x2afae8('0x25')])),_0x362102[_0x2afae8('0x1')][_0x2afae8('0x33')]&&(_0x21a3b2[_0x2afae8('0x2e')]=_['merge'](_0x21a3b2['where'],{[Op['or']]:_[_0x2afae8('0x2f')](_0x21a3b2[_0x2afae8('0x2a')],function(_0x49547b){const _0x49d228=_0x2afae8,_0x712a89={};return _0x712a89[_0x49547b]={[Op[_0x49d228('0x30')]]:'%'+_0x362102[_0x49d228('0x1')][_0x49d228('0x33')]+'%'},_0x712a89;})})),_0x21a3b2=_[_0x2afae8('0x3')]({},_0x21a3b2,_0x362102[_0x2afae8('0x19')]),_0x4d3ce6[_0x2afae8('0x3a')](_0x21a3b2);})[_0x5c3f76('0x2b')](function(_0x202c3b){const _0x31fb80=_0x5c3f76;if(_0x202c3b)return _0x533062=_0x202c3b['length'],typeof _0x362102['query']['nolimit']==='undefined'&&(_0x21a3b2[_0x31fb80('0x1f')]=qs['limit'](_0x362102[_0x31fb80('0x1')][_0x31fb80('0x1f')]),_0x21a3b2[_0x31fb80('0x28')]=qs[_0x31fb80('0x28')](_0x362102[_0x31fb80('0x1')][_0x31fb80('0x28')])),_0x4d3ce6[_0x31fb80('0x3a')](_0x21a3b2);})[_0x5c3f76('0x2b')](function(_0x49b8d5){if(_0x49b8d5)return _0x49b8d5?{'count':_0x533062,'rows':_0x49b8d5}:null;})[_0x5c3f76('0x2b')](respondWithResult(_0x5b0d93,null))[_0x5c3f76('0x37')](handleError(_0x5b0d93,null));},exports[_0xd94e4d('0xd')]=function(_0x52c8ed,_0x34e46b){const _0x2bc224=_0xd94e4d;let _0x4f3a26={};const _0x3f4b8f={};let _0xa0843a,_0x3f579b;return db[_0x2bc224('0xb')][_0x2bc224('0x6')]({'where':{'id':_0x52c8ed['params']['id']}})[_0x2bc224('0x2b')](handleEntityNotFound(_0x34e46b,null))[_0x2bc224('0x2b')](function(_0x47556c){const _0x37d54f=_0x2bc224;if(_0x47556c)return _0xa0843a=_0x47556c,_0x3f4b8f['model']=_[_0x37d54f('0x11')](db[_0x37d54f('0x29')][_0x37d54f('0x2')]),_0x3f4b8f['query']=_[_0x37d54f('0x11')](_0x52c8ed[_0x37d54f('0x1')]),_0x3f4b8f['filters']=_[_0x37d54f('0x14')](_0x3f4b8f[_0x37d54f('0x24')],_0x3f4b8f[_0x37d54f('0x1')]),_0x4f3a26['attributes']=_[_0x37d54f('0x14')](_0x3f4b8f[_0x37d54f('0x24')],qs['fields'](_0x52c8ed[_0x37d54f('0x1')][_0x37d54f('0xf')])),_0x4f3a26[_0x37d54f('0x2a')]=_0x4f3a26[_0x37d54f('0x2a')][_0x37d54f('0xc')]?_0x4f3a26[_0x37d54f('0x2a')]:_0x3f4b8f['model'],_0x4f3a26[_0x37d54f('0x12')]=qs[_0x37d54f('0x0')](_0x52c8ed[_0x37d54f('0x1')][_0x37d54f('0x0')]),_0x4f3a26['where']=qs[_0x37d54f('0x25')](_[_0x37d54f('0x27')](_0x52c8ed[_0x37d54f('0x1')],_0x3f4b8f[_0x37d54f('0x25')])),_0x52c8ed[_0x37d54f('0x1')]['filter']&&(_0x4f3a26[_0x37d54f('0x2e')]=_[_0x37d54f('0x3')](_0x4f3a26['where'],{[Op['or']]:_['map'](_0x4f3a26[_0x37d54f('0x2a')],function(_0x349eed){const _0x1d19af=_0x37d54f,_0x442e73={};return _0x442e73[_0x349eed]={[Op['like']]:'%'+_0x52c8ed['query'][_0x1d19af('0x33')]+'%'},_0x442e73;})})),_0x4f3a26=_[_0x37d54f('0x3')]({},_0x4f3a26,_0x52c8ed[_0x37d54f('0x19')]),_0xa0843a[_0x37d54f('0xd')](_0x4f3a26);})[_0x2bc224('0x2b')](function(_0x18d965){const _0x46ba61=_0x2bc224;if(_0x18d965)return _0x3f579b=_0x18d965[_0x46ba61('0xc')],typeof _0x52c8ed[_0x46ba61('0x1')][_0x46ba61('0x10')]==='undefined'&&(_0x4f3a26[_0x46ba61('0x1f')]=qs[_0x46ba61('0x1f')](_0x52c8ed['query']['limit']),_0x4f3a26[_0x46ba61('0x28')]=qs[_0x46ba61('0x28')](_0x52c8ed[_0x46ba61('0x1')][_0x46ba61('0x28')])),_0xa0843a['getSubjects'](_0x4f3a26);})[_0x2bc224('0x2b')](function(_0xd29d4d){if(_0xd29d4d)return _0xd29d4d?{'count':_0x3f579b,'rows':_0xd29d4d}:null;})[_0x2bc224('0x2b')](respondWithResult(_0x34e46b,null))[_0x2bc224('0x37')](handleError(_0x34e46b,null));},exports[_0xd94e4d('0x34')]=function(_0x116609,_0x447d15){const _0x74b9d3=_0xd94e4d;let _0x3f1fd5={};const _0x1db0dc={};let _0x111e26,_0x57e5b6;return db[_0x74b9d3('0xb')][_0x74b9d3('0x6')]({'where':{'id':_0x116609[_0x74b9d3('0x1e')]['id']}})['then'](handleEntityNotFound(_0x447d15,null))[_0x74b9d3('0x2b')](function(_0x42fcdd){const _0x2187f1=_0x74b9d3;if(_0x42fcdd)return _0x111e26=_0x42fcdd,_0x1db0dc[_0x2187f1('0x24')]=_[_0x2187f1('0x11')](db['ZendeskField'][_0x2187f1('0x2')]),_0x1db0dc[_0x2187f1('0x1')]=_[_0x2187f1('0x11')](_0x116609[_0x2187f1('0x1')]),_0x1db0dc[_0x2187f1('0x25')]=_[_0x2187f1('0x14')](_0x1db0dc['model'],_0x1db0dc['query']),_0x3f1fd5[_0x2187f1('0x2a')]=_[_0x2187f1('0x14')](_0x1db0dc[_0x2187f1('0x24')],qs['fields'](_0x116609[_0x2187f1('0x1')][_0x2187f1('0xf')])),_0x3f1fd5[_0x2187f1('0x2a')]=_0x3f1fd5[_0x2187f1('0x2a')][_0x2187f1('0xc')]?_0x3f1fd5['attributes']:_0x1db0dc[_0x2187f1('0x24')],_0x3f1fd5[_0x2187f1('0x12')]=qs[_0x2187f1('0x0')](_0x116609[_0x2187f1('0x1')][_0x2187f1('0x0')]),_0x3f1fd5[_0x2187f1('0x2e')]=qs[_0x2187f1('0x25')](_[_0x2187f1('0x27')](_0x116609[_0x2187f1('0x1')],_0x1db0dc[_0x2187f1('0x25')])),_0x116609[_0x2187f1('0x1')][_0x2187f1('0x33')]&&(_0x3f1fd5[_0x2187f1('0x2e')]=_[_0x2187f1('0x3')](_0x3f1fd5[_0x2187f1('0x2e')],{[Op['or']]:_['map'](_0x3f1fd5['attributes'],function(_0x53553d){const _0x49b389=_0x2187f1,_0x12ee95={};return _0x12ee95[_0x53553d]={[Op[_0x49b389('0x30')]]:'%'+_0x116609[_0x49b389('0x1')][_0x49b389('0x33')]+'%'},_0x12ee95;})})),_0x3f1fd5=_[_0x2187f1('0x3')]({},_0x3f1fd5,_0x116609['options']),_0x111e26[_0x2187f1('0x34')](_0x3f1fd5);})[_0x74b9d3('0x2b')](function(_0x206d2b){const _0x4fc7f1=_0x74b9d3;if(_0x206d2b)return _0x57e5b6=_0x206d2b[_0x4fc7f1('0xc')],typeof _0x116609[_0x4fc7f1('0x1')][_0x4fc7f1('0x10')]===_0x4fc7f1('0x15')&&(_0x3f1fd5[_0x4fc7f1('0x1f')]=qs[_0x4fc7f1('0x1f')](_0x116609[_0x4fc7f1('0x1')]['limit']),_0x3f1fd5[_0x4fc7f1('0x28')]=qs[_0x4fc7f1('0x28')](_0x116609[_0x4fc7f1('0x1')][_0x4fc7f1('0x28')])),_0x111e26[_0x4fc7f1('0x34')](_0x3f1fd5);})[_0x74b9d3('0x2b')](function(_0x4f2720){if(_0x4f2720)return _0x4f2720?{'count':_0x57e5b6,'rows':_0x4f2720}:null;})[_0x74b9d3('0x2b')](respondWithResult(_0x447d15,null))[_0x74b9d3('0x37')](handleError(_0x447d15,null));},exports['getTags']=function(_0x2a7c25,_0x496e4a){const _0x42a36a=_0xd94e4d;let _0x154b48={};const _0x36c5ea={};let _0x14b088,_0x159c1c;return db[_0x42a36a('0xb')][_0x42a36a('0x6')]({'where':{'id':_0x2a7c25[_0x42a36a('0x1e')]['id']}})['then'](handleEntityNotFound(_0x496e4a,null))[_0x42a36a('0x2b')](function(_0x8ecbcc){const _0x2d6d1d=_0x42a36a;if(_0x8ecbcc)return _0x14b088=_0x8ecbcc,_0x36c5ea['model']=_[_0x2d6d1d('0x11')](db[_0x2d6d1d('0x8')][_0x2d6d1d('0x2')]),_0x36c5ea[_0x2d6d1d('0x1')]=_[_0x2d6d1d('0x11')](_0x2a7c25[_0x2d6d1d('0x1')]),_0x36c5ea[_0x2d6d1d('0x25')]=_[_0x2d6d1d('0x14')](_0x36c5ea[_0x2d6d1d('0x24')],_0x36c5ea[_0x2d6d1d('0x1')]),_0x154b48['attributes']=_[_0x2d6d1d('0x14')](_0x36c5ea[_0x2d6d1d('0x24')],qs['fields'](_0x2a7c25[_0x2d6d1d('0x1')][_0x2d6d1d('0xf')])),_0x154b48[_0x2d6d1d('0x2a')]=_0x154b48[_0x2d6d1d('0x2a')][_0x2d6d1d('0xc')]?_0x154b48['attributes']:_0x36c5ea[_0x2d6d1d('0x24')],_0x154b48[_0x2d6d1d('0x12')]=qs[_0x2d6d1d('0x0')](_0x2a7c25['query'][_0x2d6d1d('0x0')]),_0x154b48[_0x2d6d1d('0x2e')]=qs['filters'](_[_0x2d6d1d('0x27')](_0x2a7c25['query'],_0x36c5ea[_0x2d6d1d('0x25')])),_0x2a7c25[_0x2d6d1d('0x1')][_0x2d6d1d('0x33')]&&(_0x154b48[_0x2d6d1d('0x2e')]=_[_0x2d6d1d('0x3')](_0x154b48['where'],{[Op['or']]:_[_0x2d6d1d('0x2f')](_0x154b48['attributes'],function(_0x2ecb76){const _0x5c3e04=_0x2d6d1d,_0x2e8863={};return _0x2e8863[_0x2ecb76]={[Op[_0x5c3e04('0x30')]]:'%'+_0x2a7c25['query'][_0x5c3e04('0x33')]+'%'},_0x2e8863;})})),_0x154b48=_[_0x2d6d1d('0x3')]({},_0x154b48,_0x2a7c25[_0x2d6d1d('0x19')]),_0x14b088[_0x2d6d1d('0x35')](_0x154b48);})['then'](function(_0x44853a){const _0x578dac=_0x42a36a;if(_0x44853a)return _0x159c1c=_0x44853a[_0x578dac('0xc')],typeof _0x2a7c25['query']['nolimit']===_0x578dac('0x15')&&(_0x154b48['limit']=qs['limit'](_0x2a7c25[_0x578dac('0x1')][_0x578dac('0x1f')]),_0x154b48[_0x578dac('0x28')]=qs[_0x578dac('0x28')](_0x2a7c25['query'][_0x578dac('0x28')])),_0x14b088[_0x578dac('0x35')](_0x154b48);})[_0x42a36a('0x2b')](function(_0x93d66f){if(_0x93d66f)return _0x93d66f?{'count':_0x159c1c,'rows':_0x93d66f}:null;})[_0x42a36a('0x2b')](respondWithResult(_0x496e4a,null))['catch'](handleError(_0x496e4a,null));},exports[_0xd94e4d('0x31')]=function(_0x306732,_0x5dbfc5){const _0x3b776f=_0xd94e4d;return _0x306732[_0x3b776f('0x1a')]['id']&&delete _0x306732[_0x3b776f('0x1a')]['id'],db[_0x3b776f('0xb')]['findOne']({'where':{'id':_0x306732[_0x3b776f('0x1e')]['id']}})[_0x3b776f('0x2b')](handleEntityNotFound(_0x5dbfc5,null))['then'](function(_0x19f70e){const _0x2e852f=_0x3b776f;if(_0x19f70e)return _0x19f70e[_0x2e852f('0x31')](_0x306732[_0x2e852f('0x1a')][_0x2e852f('0x20')]||[]);return null;})[_0x3b776f('0x2b')](respondWithResult(_0x5dbfc5,null))[_0x3b776f('0x37')](handleError(_0x5dbfc5,null));}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js index c766a14..2c436f1 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js @@ -1 +1 @@ -const a339_0x5b38=['./intZendeskConfiguration.attributes','exports','ZendeskConfiguration'];(function(_0x5f0712,_0x5b38a0){const _0x8525cd=function(_0x4d09fe){while(--_0x4d09fe){_0x5f0712['push'](_0x5f0712['shift']());}};_0x8525cd(++_0x5b38a0);}(a339_0x5b38,0x11e));const a339_0x8525=function(_0x5f0712,_0x5b38a0){_0x5f0712=_0x5f0712-0x0;let _0x8525cd=a339_0x5b38[_0x5f0712];return _0x8525cd;};const _0x57bca6=a339_0x8525;'use strict';const attributes=require(_0x57bca6('0x2'));module[_0x57bca6('0x0')]=function(_0x4d09fe){const _0x5657bc=_0x57bca6,_0x5644e6=_0x4d09fe['define'](_0x5657bc('0x1'),attributes,{'tableName':'int_zendesk_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5644e6;}; \ No newline at end of file +const a339_0x3adf=['define','exports','ZendeskConfiguration'];(function(_0x4dc340,_0x3adf43){const _0xe3d5e1=function(_0x339503){while(--_0x339503){_0x4dc340['push'](_0x4dc340['shift']());}};_0xe3d5e1(++_0x3adf43);}(a339_0x3adf,0x144));const a339_0xe3d5=function(_0x4dc340,_0x3adf43){_0x4dc340=_0x4dc340-0x0;let _0xe3d5e1=a339_0x3adf[_0x4dc340];return _0xe3d5e1;};const _0x27cb25=a339_0xe3d5;'use strict';const attributes=require('./intZendeskConfiguration.attributes');module[_0x27cb25('0x1')]=function(_0x339503){const _0x604d66=_0x27cb25,_0x36f57d=_0x339503[_0x604d66('0x0')](_0x604d66('0x2'),attributes,{'tableName':'int_zendesk_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x36f57d;}; \ No newline at end of file diff --git a/server/api/intZendeskField/index.js b/server/api/intZendeskField/index.js index 02f34d7..4f66c7e 100644 --- a/server/api/intZendeskField/index.js +++ b/server/api/intZendeskField/index.js @@ -1 +1 @@ -const a340_0x3a4d=['index','post','./intZendeskField.controller','exports','/:id','express','delete','isAuthenticated','update','destroy','create','put','get'];(function(_0x3e60ec,_0x3a4ddc){const _0x574362=function(_0x46e2ee){while(--_0x46e2ee){_0x3e60ec['push'](_0x3e60ec['shift']());}};_0x574362(++_0x3a4ddc);}(a340_0x3a4d,0x1da));const a340_0x5743=function(_0x3e60ec,_0x3a4ddc){_0x3e60ec=_0x3e60ec-0x0;let _0x574362=a340_0x3a4d[_0x3e60ec];return _0x574362;};const _0x551f49=a340_0x5743;'use strict';const express=require(_0x551f49('0xc')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x551f49('0x9'));router[_0x551f49('0x6')]('/',auth['isAuthenticated'](),controller[_0x551f49('0x7')]),router[_0x551f49('0x6')](_0x551f49('0xb'),auth['isAuthenticated'](),controller['show']),router[_0x551f49('0x8')]('/',auth['isAuthenticated'](),controller[_0x551f49('0x4')]),router[_0x551f49('0x5')](_0x551f49('0xb'),auth[_0x551f49('0x1')](),controller[_0x551f49('0x2')]),router[_0x551f49('0x0')](_0x551f49('0xb'),auth[_0x551f49('0x1')](),controller[_0x551f49('0x3')]),module[_0x551f49('0xa')]=router; \ No newline at end of file +const a340_0x2f69=['get','index','show','create','isAuthenticated','exports','Router','/:id','put','update','delete','express'];(function(_0x197202,_0x2f6968){const _0x7c1b5c=function(_0x17e170){while(--_0x17e170){_0x197202['push'](_0x197202['shift']());}};_0x7c1b5c(++_0x2f6968);}(a340_0x2f69,0x108));const a340_0x7c1b=function(_0x197202,_0x2f6968){_0x197202=_0x197202-0x0;let _0x7c1b5c=a340_0x2f69[_0x197202];return _0x7c1b5c;};const _0x2b32d1=a340_0x7c1b;'use strict';const express=require(_0x2b32d1('0xb')),router=express[_0x2b32d1('0x6')](),auth=require('../../components/auth/service'),controller=require('./intZendeskField.controller');router[_0x2b32d1('0x0')]('/',auth[_0x2b32d1('0x4')](),controller[_0x2b32d1('0x1')]),router[_0x2b32d1('0x0')]('/:id',auth['isAuthenticated'](),controller[_0x2b32d1('0x2')]),router['post']('/',auth['isAuthenticated'](),controller[_0x2b32d1('0x3')]),router[_0x2b32d1('0x8')](_0x2b32d1('0x7'),auth[_0x2b32d1('0x4')](),controller[_0x2b32d1('0x9')]),router[_0x2b32d1('0xa')](_0x2b32d1('0x7'),auth['isAuthenticated'](),controller['destroy']),module[_0x2b32d1('0x5')]=router; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.attributes.js b/server/api/intZendeskField/intZendeskField.attributes.js index 2db2068..427cf04 100644 --- a/server/api/intZendeskField/intZendeskField.attributes.js +++ b/server/api/intZendeskField/intZendeskField.attributes.js @@ -1 +1 @@ -const a341_0x1342=['BOOLEAN','string','customVariable','keyValue','exports','sequelize','variable','STRING'];(function(_0x372a1e,_0x134225){const _0x1f875a=function(_0x2308a6){while(--_0x2308a6){_0x372a1e['push'](_0x372a1e['shift']());}};_0x1f875a(++_0x134225);}(a341_0x1342,0x15c));const a341_0x1f87=function(_0x372a1e,_0x134225){_0x372a1e=_0x372a1e-0x0;let _0x1f875a=a341_0x1342[_0x372a1e];return _0x1f875a;};const _0x485a4b=a341_0x1f87;'use strict';const Sequelize=require(_0x485a4b('0x1'));module[_0x485a4b('0x0')]={'type':{'type':Sequelize['ENUM'](_0x485a4b('0x5'),'variable',_0x485a4b('0x6'),_0x485a4b('0x7')),'defaultValue':_0x485a4b('0x5')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x485a4b('0x3')]},'keyType':{'type':Sequelize['ENUM'](_0x485a4b('0x5'),_0x485a4b('0x2'),'customVariable')},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x485a4b('0x3')]},'nameField':{'type':Sequelize[_0x485a4b('0x3')]},'customField':{'type':Sequelize[_0x485a4b('0x4')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a341_0x2293=['customVariable','STRING','variable','keyValue','ENUM','exports','BOOLEAN','string'];(function(_0x4bb1d9,_0x22932e){const _0x36ee20=function(_0x5ca1b1){while(--_0x5ca1b1){_0x4bb1d9['push'](_0x4bb1d9['shift']());}};_0x36ee20(++_0x22932e);}(a341_0x2293,0xfb));const a341_0x36ee=function(_0x4bb1d9,_0x22932e){_0x4bb1d9=_0x4bb1d9-0x0;let _0x36ee20=a341_0x2293[_0x4bb1d9];return _0x36ee20;};const _0x1a2d81=a341_0x36ee;'use strict';const Sequelize=require('sequelize');module[_0x1a2d81('0x2')]={'type':{'type':Sequelize[_0x1a2d81('0x1')]('string','variable',_0x1a2d81('0x5'),_0x1a2d81('0x0')),'defaultValue':'string'},'content':{'type':Sequelize[_0x1a2d81('0x6')]},'key':{'type':Sequelize[_0x1a2d81('0x6')]},'keyType':{'type':Sequelize[_0x1a2d81('0x1')](_0x1a2d81('0x4'),_0x1a2d81('0x7'),'customVariable')},'keyContent':{'type':Sequelize[_0x1a2d81('0x6')]},'idField':{'type':Sequelize[_0x1a2d81('0x6')]},'nameField':{'type':Sequelize[_0x1a2d81('0x6')]},'customField':{'type':Sequelize[_0x1a2d81('0x3')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x1a2d81('0x6')]}}; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.controller.js b/server/api/intZendeskField/intZendeskField.controller.js index d241d8c..223dac6 100644 --- a/server/api/intZendeskField/intZendeskField.controller.js +++ b/server/api/intZendeskField/intZendeskField.controller.js @@ -1 +1 @@ -const a342_0x162d=['catch','sort','order','length','params','set','show','error','findOne','key','end','fields','limit','../../mysqldb','stack','include','filters','nolimit','intersection','name','filter','index','api','where','findAll','offset','attributes','like','pick','model','fieldName','send','type','sendStatus','body','ZendeskField','keys','options','rawAttributes','update','../../config/logger','destroy','includeAll','create','then','json','merge','status','map','count','query','lodash','../../components/parsers/qs'];(function(_0x5135cd,_0x162d7e){const _0x25054a=function(_0x5a6021){while(--_0x5a6021){_0x5135cd['push'](_0x5135cd['shift']());}};_0x25054a(++_0x162d7e);}(a342_0x162d,0xc9));const a342_0x2505=function(_0x5135cd,_0x162d7e){_0x5135cd=_0x5135cd-0x0;let _0x25054a=a342_0x162d[_0x5135cd];return _0x25054a;};const _0x5600df=a342_0x2505;'use strict';const _=require(_0x5600df('0x9')),qs=require(_0x5600df('0xa')),logger=require(_0x5600df('0x33'))(_0x5600df('0x21')),db=require(_0x5600df('0x18'))['db'],{Op}=require('sequelize');function respondWithResult(_0x5a6021,_0x37586a){return _0x37586a=_0x37586a||0xc8,function(_0x157be1){const _0x1b6da8=a342_0x2505;if(_0x157be1)return _0x5a6021[_0x1b6da8('0x5')](_0x37586a)[_0x1b6da8('0x3')](_0x157be1);};}function respondWithFilteredResult(_0x5da418,_0x409099){return function(_0x535e31){const _0xb79903=a342_0x2505;if(_0x535e31){const _0x5d4194=_0x535e31[_0xb79903('0x7')],_0x38bed1=_0x409099[_0xb79903('0x24')];let _0x53294c=_0x409099[_0xb79903('0x24')]+_0x409099['limit'],_0x478f96;return _0x53294c>=_0x5d4194?(_0x53294c=_0x5d4194,_0x478f96=0xc8):_0x478f96=0xce,_0x5da418['status'](_0x478f96),_0x5da418[_0xb79903('0x10')]('Content-Range',_0x38bed1+'-'+_0x53294c+'/'+_0x5d4194)[_0xb79903('0x3')](_0x535e31);}return null;};}function saveUpdates(_0x57a2cd){return function(_0x281809){const _0x3bb18b=a342_0x2505;if(_0x281809)return _0x281809[_0x3bb18b('0x32')](_0x57a2cd)[_0x3bb18b('0x2')](function(_0x1a76e6){return _0x1a76e6;});return null;};}function removeEntity(_0xed8e13){return function(_0x494505){const _0x299cf6=a342_0x2505;if(_0x494505)return _0x494505[_0x299cf6('0x34')]()[_0x299cf6('0x2')](function(){const _0xdf4c43=_0x299cf6;_0xed8e13[_0xdf4c43('0x5')](0xcc)[_0xdf4c43('0x15')]();});};}function handleEntityNotFound(_0x55c3c7){return function(_0x410a7a){const _0x36d8e4=a342_0x2505;return!_0x410a7a&&_0x55c3c7[_0x36d8e4('0x2c')](0x194),_0x410a7a;};}function handleError(_0x4195d1,_0x5c16a1){return _0x5c16a1=_0x5c16a1||0x1f4,function(_0x37f85b){const _0x299fa7=a342_0x2505;logger[_0x299fa7('0x12')](_0x37f85b[_0x299fa7('0x19')]),_0x37f85b['name']&&delete _0x37f85b[_0x299fa7('0x1e')],_0x4195d1[_0x299fa7('0x5')](_0x5c16a1)[_0x299fa7('0x2a')](_0x37f85b);};}exports[_0x5600df('0x20')]=function(_0x4942fe,_0x238d8b){const _0x4084a3=_0x5600df;let _0x33c8a7={};const _0x52d421={},_0xbb96f9={'count':0x0,'rows':[]},_0x91f3b7=_['map'](db[_0x4084a3('0x2e')][_0x4084a3('0x31')],function(_0x1a2350){const _0x1baa56=_0x4084a3;return{'name':_0x1a2350[_0x1baa56('0x29')],'type':_0x1a2350[_0x1baa56('0x2b')][_0x1baa56('0x14')]};});_0x52d421[_0x4084a3('0x28')]=_[_0x4084a3('0x6')](_0x91f3b7,'name'),_0x52d421[_0x4084a3('0x8')]=_['keys'](_0x4942fe[_0x4084a3('0x8')]),_0x52d421[_0x4084a3('0x1b')]=_['intersection'](_0x52d421[_0x4084a3('0x28')],_0x52d421[_0x4084a3('0x8')]),_0x33c8a7[_0x4084a3('0x25')]=_[_0x4084a3('0x1d')](_0x52d421[_0x4084a3('0x28')],qs[_0x4084a3('0x16')](_0x4942fe[_0x4084a3('0x8')][_0x4084a3('0x16')])),_0x33c8a7[_0x4084a3('0x25')]=_0x33c8a7['attributes'][_0x4084a3('0xe')]?_0x33c8a7[_0x4084a3('0x25')]:_0x52d421[_0x4084a3('0x28')];typeof _0x4942fe[_0x4084a3('0x8')][_0x4084a3('0x1c')]==='undefined'&&(_0x33c8a7[_0x4084a3('0x17')]=qs[_0x4084a3('0x17')](_0x4942fe[_0x4084a3('0x8')][_0x4084a3('0x17')]),_0x33c8a7['offset']=qs[_0x4084a3('0x24')](_0x4942fe['query'][_0x4084a3('0x24')]));_0x33c8a7[_0x4084a3('0xd')]=qs['sort'](_0x4942fe['query'][_0x4084a3('0xc')]),_0x33c8a7[_0x4084a3('0x22')]=qs[_0x4084a3('0x1b')](_[_0x4084a3('0x27')](_0x4942fe[_0x4084a3('0x8')],_0x52d421[_0x4084a3('0x1b')]),_0x91f3b7);_0x4942fe[_0x4084a3('0x8')][_0x4084a3('0x1f')]&&(_0x33c8a7[_0x4084a3('0x22')]=_[_0x4084a3('0x4')](_0x33c8a7[_0x4084a3('0x22')],{[Op['or']]:_['map'](_0x91f3b7,function(_0x3b9993){const _0x4f5c14=_0x4084a3;if(_0x3b9993[_0x4f5c14('0x2b')]!=='VIRTUAL'){const _0x23a6d2={};return _0x23a6d2[_0x3b9993[_0x4f5c14('0x1e')]]={[Op[_0x4f5c14('0x26')]]:'%'+_0x4942fe['query']['filter']+'%'},_0x23a6d2;}})}));_0x33c8a7=_[_0x4084a3('0x4')]({},_0x33c8a7,_0x4942fe[_0x4084a3('0x30')]);const _0x48cd02={'where':_0x33c8a7[_0x4084a3('0x22')]};return db[_0x4084a3('0x2e')][_0x4084a3('0x7')](_0x48cd02)[_0x4084a3('0x2')](function(_0x28d3c3){const _0x2dced5=_0x4084a3;return _0xbb96f9[_0x2dced5('0x7')]=_0x28d3c3,_0x4942fe[_0x2dced5('0x8')][_0x2dced5('0x0')]&&(_0x33c8a7[_0x2dced5('0x1a')]=[{'all':!![]}]),db[_0x2dced5('0x2e')][_0x2dced5('0x23')](_0x33c8a7);})[_0x4084a3('0x2')](function(_0x544e0f){return _0xbb96f9['rows']=_0x544e0f,_0xbb96f9;})['then'](respondWithFilteredResult(_0x238d8b,_0x33c8a7))[_0x4084a3('0xb')](handleError(_0x238d8b,null));},exports[_0x5600df('0x11')]=function(_0x27b97f,_0x524524){const _0x2f4214=_0x5600df;let _0x1b7d60={'raw':!![],'where':{'id':_0x27b97f[_0x2f4214('0xf')]['id']}};const _0x2eb869={};return _0x2eb869[_0x2f4214('0x28')]=_[_0x2f4214('0x2f')](db['ZendeskField'][_0x2f4214('0x31')]),_0x2eb869[_0x2f4214('0x8')]=_['keys'](_0x27b97f[_0x2f4214('0x8')]),_0x2eb869['filters']=_[_0x2f4214('0x1d')](_0x2eb869[_0x2f4214('0x28')],_0x2eb869[_0x2f4214('0x8')]),_0x1b7d60[_0x2f4214('0x25')]=_['intersection'](_0x2eb869[_0x2f4214('0x28')],qs['fields'](_0x27b97f[_0x2f4214('0x8')][_0x2f4214('0x16')])),_0x1b7d60['attributes']=_0x1b7d60['attributes'][_0x2f4214('0xe')]?_0x1b7d60['attributes']:_0x2eb869[_0x2f4214('0x28')],_0x27b97f[_0x2f4214('0x8')][_0x2f4214('0x0')]&&(_0x1b7d60[_0x2f4214('0x1a')]=[{'all':!![]}]),_0x1b7d60=_['merge']({},_0x1b7d60,_0x27b97f[_0x2f4214('0x30')]),db[_0x2f4214('0x2e')][_0x2f4214('0x13')](_0x1b7d60)['then'](handleEntityNotFound(_0x524524,null))[_0x2f4214('0x2')](respondWithResult(_0x524524,null))[_0x2f4214('0xb')](handleError(_0x524524,null));},exports[_0x5600df('0x1')]=function(_0x428621,_0x493462){const _0x21048c=_0x5600df;return db[_0x21048c('0x2e')][_0x21048c('0x1')](_0x428621[_0x21048c('0x2d')],{})[_0x21048c('0x2')](respondWithResult(_0x493462,0xc9))[_0x21048c('0xb')](handleError(_0x493462,null));},exports[_0x5600df('0x32')]=function(_0x29ab55,_0x113d5c){const _0x2eaed2=_0x5600df;return _0x29ab55[_0x2eaed2('0x2d')]['id']&&delete _0x29ab55[_0x2eaed2('0x2d')]['id'],db[_0x2eaed2('0x2e')][_0x2eaed2('0x13')]({'where':{'id':_0x29ab55[_0x2eaed2('0xf')]['id']}})[_0x2eaed2('0x2')](handleEntityNotFound(_0x113d5c,null))['then'](saveUpdates(_0x29ab55[_0x2eaed2('0x2d')],null))[_0x2eaed2('0x2')](respondWithResult(_0x113d5c,null))[_0x2eaed2('0xb')](handleError(_0x113d5c,null));},exports[_0x5600df('0x34')]=function(_0x42b517,_0x3b341b){const _0x4bee34=_0x5600df;return db[_0x4bee34('0x2e')][_0x4bee34('0x13')]({'where':{'id':_0x42b517[_0x4bee34('0xf')]['id']}})[_0x4bee34('0x2')](handleEntityNotFound(_0x3b341b,null))['then'](removeEntity(_0x3b341b,null))['catch'](handleError(_0x3b341b,null));}; \ No newline at end of file +const a342_0x3cd7=['model','findOne','then','includeAll','findAll','../../config/logger','destroy','show','like','merge','fields','intersection','name','index','offset','ZendeskField','set','../../mysqldb','api','status','json','filter','catch','where','key','stack','rows','params','map','type','Content-Range','limit','attributes','send','length','update','VIRTUAL','options','pick','query','create','count','sort','body','end','keys','rawAttributes','nolimit','filters','error','include'];(function(_0x4ce296,_0x3cd750){const _0x215a87=function(_0x428a6a){while(--_0x428a6a){_0x4ce296['push'](_0x4ce296['shift']());}};_0x215a87(++_0x3cd750);}(a342_0x3cd7,0x183));const a342_0x215a=function(_0x4ce296,_0x3cd750){_0x4ce296=_0x4ce296-0x0;let _0x215a87=a342_0x3cd7[_0x4ce296];return _0x215a87;};const _0x4a6b26=a342_0x215a;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x4a6b26('0x1a'))(_0x4a6b26('0x27')),db=require(_0x4a6b26('0x26'))['db'],{Op}=require('sequelize');function respondWithResult(_0x428a6a,_0x12ec6e){return _0x12ec6e=_0x12ec6e||0xc8,function(_0x48dba8){const _0x2bb82d=a342_0x215a;if(_0x48dba8)return _0x428a6a[_0x2bb82d('0x28')](_0x12ec6e)[_0x2bb82d('0x29')](_0x48dba8);};}function respondWithFilteredResult(_0x2f8e9d,_0x40dd40){return function(_0x2c0b69){const _0x489da0=a342_0x215a;if(_0x2c0b69){const _0x48520d=_0x2c0b69[_0x489da0('0xb')],_0x3eb243=_0x40dd40[_0x489da0('0x23')];let _0x3c5a26=_0x40dd40[_0x489da0('0x23')]+_0x40dd40[_0x489da0('0x1')],_0x15667b;return _0x3c5a26>=_0x48520d?(_0x3c5a26=_0x48520d,_0x15667b=0xc8):_0x15667b=0xce,_0x2f8e9d[_0x489da0('0x28')](_0x15667b),_0x2f8e9d[_0x489da0('0x25')](_0x489da0('0x0'),_0x3eb243+'-'+_0x3c5a26+'/'+_0x48520d)['json'](_0x2c0b69);}return null;};}function saveUpdates(_0x7f0a1d){return function(_0x34f606){const _0x275435=a342_0x215a;if(_0x34f606)return _0x34f606[_0x275435('0x5')](_0x7f0a1d)['then'](function(_0x1a3ff9){return _0x1a3ff9;});return null;};}function removeEntity(_0x208bfb){return function(_0x355055){const _0x2abda1=a342_0x215a;if(_0x355055)return _0x355055[_0x2abda1('0x1b')]()[_0x2abda1('0x17')](function(){const _0x48e678=_0x2abda1;_0x208bfb[_0x48e678('0x28')](0xcc)[_0x48e678('0xe')]();});};}function handleEntityNotFound(_0x10958e){return function(_0xe28206){return!_0xe28206&&_0x10958e['sendStatus'](0x194),_0xe28206;};}function handleError(_0x3315b9,_0x1e796d){return _0x1e796d=_0x1e796d||0x1f4,function(_0x1340eb){const _0x43dcdc=a342_0x215a;logger[_0x43dcdc('0x13')](_0x1340eb[_0x43dcdc('0x2e')]),_0x1340eb[_0x43dcdc('0x21')]&&delete _0x1340eb[_0x43dcdc('0x21')],_0x3315b9[_0x43dcdc('0x28')](_0x1e796d)[_0x43dcdc('0x3')](_0x1340eb);};}exports[_0x4a6b26('0x22')]=function(_0x452f67,_0x3cf94a){const _0x514472=_0x4a6b26;let _0x2ae94d={};const _0x43bee7={},_0x504453={'count':0x0,'rows':[]},_0x2dc848=_[_0x514472('0x31')](db[_0x514472('0x24')][_0x514472('0x10')],function(_0x196050){const _0x569768=_0x514472;return{'name':_0x196050['fieldName'],'type':_0x196050[_0x569768('0x32')][_0x569768('0x2d')]};});_0x43bee7[_0x514472('0x15')]=_[_0x514472('0x31')](_0x2dc848,_0x514472('0x21')),_0x43bee7[_0x514472('0x9')]=_[_0x514472('0xf')](_0x452f67[_0x514472('0x9')]),_0x43bee7['filters']=_[_0x514472('0x20')](_0x43bee7['model'],_0x43bee7[_0x514472('0x9')]),_0x2ae94d['attributes']=_['intersection'](_0x43bee7[_0x514472('0x15')],qs[_0x514472('0x1f')](_0x452f67['query']['fields'])),_0x2ae94d[_0x514472('0x2')]=_0x2ae94d[_0x514472('0x2')]['length']?_0x2ae94d[_0x514472('0x2')]:_0x43bee7[_0x514472('0x15')];typeof _0x452f67[_0x514472('0x9')][_0x514472('0x11')]==='undefined'&&(_0x2ae94d[_0x514472('0x1')]=qs['limit'](_0x452f67[_0x514472('0x9')][_0x514472('0x1')]),_0x2ae94d['offset']=qs['offset'](_0x452f67[_0x514472('0x9')][_0x514472('0x23')]));_0x2ae94d['order']=qs[_0x514472('0xc')](_0x452f67['query'][_0x514472('0xc')]),_0x2ae94d[_0x514472('0x2c')]=qs[_0x514472('0x12')](_[_0x514472('0x8')](_0x452f67[_0x514472('0x9')],_0x43bee7[_0x514472('0x12')]),_0x2dc848);_0x452f67[_0x514472('0x9')][_0x514472('0x2a')]&&(_0x2ae94d[_0x514472('0x2c')]=_[_0x514472('0x1e')](_0x2ae94d[_0x514472('0x2c')],{[Op['or']]:_['map'](_0x2dc848,function(_0x13a71e){const _0x359dc2=_0x514472;if(_0x13a71e[_0x359dc2('0x32')]!==_0x359dc2('0x6')){const _0x496a6e={};return _0x496a6e[_0x13a71e[_0x359dc2('0x21')]]={[Op[_0x359dc2('0x1d')]]:'%'+_0x452f67[_0x359dc2('0x9')][_0x359dc2('0x2a')]+'%'},_0x496a6e;}})}));_0x2ae94d=_['merge']({},_0x2ae94d,_0x452f67[_0x514472('0x7')]);const _0x517ca1={'where':_0x2ae94d['where']};return db['ZendeskField']['count'](_0x517ca1)['then'](function(_0x3fec26){const _0x21354a=_0x514472;return _0x504453['count']=_0x3fec26,_0x452f67['query']['includeAll']&&(_0x2ae94d[_0x21354a('0x14')]=[{'all':!![]}]),db['ZendeskField'][_0x21354a('0x19')](_0x2ae94d);})[_0x514472('0x17')](function(_0x5248b5){const _0x3368e1=_0x514472;return _0x504453[_0x3368e1('0x2f')]=_0x5248b5,_0x504453;})['then'](respondWithFilteredResult(_0x3cf94a,_0x2ae94d))[_0x514472('0x2b')](handleError(_0x3cf94a,null));},exports[_0x4a6b26('0x1c')]=function(_0x27a736,_0x57fa1d){const _0x3c95e0=_0x4a6b26;let _0x24eb01={'raw':!![],'where':{'id':_0x27a736['params']['id']}};const _0x5cfb20={};return _0x5cfb20[_0x3c95e0('0x15')]=_['keys'](db[_0x3c95e0('0x24')][_0x3c95e0('0x10')]),_0x5cfb20['query']=_['keys'](_0x27a736[_0x3c95e0('0x9')]),_0x5cfb20[_0x3c95e0('0x12')]=_[_0x3c95e0('0x20')](_0x5cfb20[_0x3c95e0('0x15')],_0x5cfb20[_0x3c95e0('0x9')]),_0x24eb01[_0x3c95e0('0x2')]=_[_0x3c95e0('0x20')](_0x5cfb20['model'],qs[_0x3c95e0('0x1f')](_0x27a736[_0x3c95e0('0x9')][_0x3c95e0('0x1f')])),_0x24eb01[_0x3c95e0('0x2')]=_0x24eb01['attributes'][_0x3c95e0('0x4')]?_0x24eb01[_0x3c95e0('0x2')]:_0x5cfb20[_0x3c95e0('0x15')],_0x27a736[_0x3c95e0('0x9')][_0x3c95e0('0x18')]&&(_0x24eb01[_0x3c95e0('0x14')]=[{'all':!![]}]),_0x24eb01=_['merge']({},_0x24eb01,_0x27a736[_0x3c95e0('0x7')]),db[_0x3c95e0('0x24')]['findOne'](_0x24eb01)[_0x3c95e0('0x17')](handleEntityNotFound(_0x57fa1d,null))[_0x3c95e0('0x17')](respondWithResult(_0x57fa1d,null))[_0x3c95e0('0x2b')](handleError(_0x57fa1d,null));},exports[_0x4a6b26('0xa')]=function(_0x3f262e,_0x153bb3){const _0x4df10d=_0x4a6b26;return db[_0x4df10d('0x24')][_0x4df10d('0xa')](_0x3f262e[_0x4df10d('0xd')],{})[_0x4df10d('0x17')](respondWithResult(_0x153bb3,0xc9))[_0x4df10d('0x2b')](handleError(_0x153bb3,null));},exports[_0x4a6b26('0x5')]=function(_0x22d956,_0xfc8ae8){const _0x2de660=_0x4a6b26;return _0x22d956['body']['id']&&delete _0x22d956['body']['id'],db['ZendeskField'][_0x2de660('0x16')]({'where':{'id':_0x22d956[_0x2de660('0x30')]['id']}})['then'](handleEntityNotFound(_0xfc8ae8,null))['then'](saveUpdates(_0x22d956[_0x2de660('0xd')],null))[_0x2de660('0x17')](respondWithResult(_0xfc8ae8,null))[_0x2de660('0x2b')](handleError(_0xfc8ae8,null));},exports[_0x4a6b26('0x1b')]=function(_0x19f8c3,_0x5a3485){const _0x4763a4=_0x4a6b26;return db[_0x4763a4('0x24')][_0x4763a4('0x16')]({'where':{'id':_0x19f8c3['params']['id']}})['then'](handleEntityNotFound(_0x5a3485,null))[_0x4763a4('0x17')](removeEntity(_0x5a3485,null))['catch'](handleError(_0x5a3485,null));}; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.model.js b/server/api/intZendeskField/intZendeskField.model.js index da00af1..6d68653 100644 --- a/server/api/intZendeskField/intZendeskField.model.js +++ b/server/api/intZendeskField/intZendeskField.model.js @@ -1 +1 @@ -const a343_0x32f1=['idField','define','FieldId','zendesk_unique_index','int_zendesk_fields','ZendeskField','./intZendeskField.attributes'];(function(_0x41517f,_0x32f13c){const _0xd2eff5=function(_0x2b1971){while(--_0x2b1971){_0x41517f['push'](_0x41517f['shift']());}};_0xd2eff5(++_0x32f13c);}(a343_0x32f1,0xee));const a343_0xd2ef=function(_0x41517f,_0x32f13c){_0x41517f=_0x41517f-0x0;let _0xd2eff5=a343_0x32f1[_0x41517f];return _0xd2eff5;};const _0x4fb31e=a343_0xd2ef;'use strict';const attributes=require(_0x4fb31e('0x6'));module['exports']=function(_0x2b1971){const _0x333f46=_0x4fb31e,_0x142701=_0x2b1971[_0x333f46('0x1')](_0x333f46('0x5'),attributes,{'tableName':_0x333f46('0x4'),'paranoid':![],'indexes':[{'name':_0x333f46('0x3'),'fields':[_0x333f46('0x0'),_0x333f46('0x2')],'unique':!![]}],'timestamps':!![]});return _0x142701;}; \ No newline at end of file +const a343_0x5be8=['define','./intZendeskField.attributes','FieldId','int_zendesk_fields','zendesk_unique_index'];(function(_0x3a0e3c,_0x5be810){const _0x3330e2=function(_0x2ce483){while(--_0x2ce483){_0x3a0e3c['push'](_0x3a0e3c['shift']());}};_0x3330e2(++_0x5be810);}(a343_0x5be8,0x1b6));const a343_0x3330=function(_0x3a0e3c,_0x5be810){_0x3a0e3c=_0x3a0e3c-0x0;let _0x3330e2=a343_0x5be8[_0x3a0e3c];return _0x3330e2;};const _0x122455=a343_0x3330;'use strict';const attributes=require(_0x122455('0x3'));module['exports']=function(_0x2ce483){const _0x2a37bc=_0x122455,_0x5a46e9=_0x2ce483[_0x2a37bc('0x2')]('ZendeskField',attributes,{'tableName':_0x2a37bc('0x0'),'paranoid':![],'indexes':[{'name':_0x2a37bc('0x1'),'fields':['idField',_0x2a37bc('0x4')],'unique':!![]}],'timestamps':!![]});return _0x5a46e9;}; \ No newline at end of file diff --git a/server/api/intZohoAccount/index.js b/server/api/intZohoAccount/index.js index c35b37c..7cd2f3b 100644 --- a/server/api/intZohoAccount/index.js +++ b/server/api/intZohoAccount/index.js @@ -1 +1 @@ -const a344_0x2f11=['getFields','getConfigurations','destroy','express','Router','isAuthenticated','addConfiguration','index','/:id','show','get','/:id/configurations','update','post','/:id/fields'];(function(_0x2e5fea,_0x2f1147){const _0x4a1f05=function(_0x427fba){while(--_0x427fba){_0x2e5fea['push'](_0x2e5fea['shift']());}};_0x4a1f05(++_0x2f1147);}(a344_0x2f11,0x1a3));const a344_0x4a1f=function(_0x2e5fea,_0x2f1147){_0x2e5fea=_0x2e5fea-0x0;let _0x4a1f05=a344_0x2f11[_0x2e5fea];return _0x4a1f05;};const _0x1a0cb9=a344_0x4a1f;'use strict';const express=require(_0x1a0cb9('0x4')),router=express[_0x1a0cb9('0x5')](),auth=require('../../components/auth/service'),controller=require('./intZohoAccount.controller');router[_0x1a0cb9('0xb')]('/',auth[_0x1a0cb9('0x6')](),controller[_0x1a0cb9('0x8')]),router[_0x1a0cb9('0xb')](_0x1a0cb9('0x9'),auth['isAuthenticated'](),controller[_0x1a0cb9('0xa')]),router[_0x1a0cb9('0xb')](_0x1a0cb9('0xc'),auth[_0x1a0cb9('0x6')](),controller[_0x1a0cb9('0x2')]),router[_0x1a0cb9('0xb')](_0x1a0cb9('0x0'),auth[_0x1a0cb9('0x6')](),controller[_0x1a0cb9('0x1')]),router[_0x1a0cb9('0xe')]('/',auth[_0x1a0cb9('0x6')](),controller['create']),router[_0x1a0cb9('0xe')](_0x1a0cb9('0xc'),auth[_0x1a0cb9('0x6')](),controller[_0x1a0cb9('0x7')]),router['put']('/:id',auth[_0x1a0cb9('0x6')](),controller[_0x1a0cb9('0xd')]),router['delete'](_0x1a0cb9('0x9'),auth['isAuthenticated'](),controller[_0x1a0cb9('0x3')]),module['exports']=router; \ No newline at end of file +const a344_0x1164=['./intZohoAccount.controller','../../components/auth/service','get','put','create','update','getFields','express','post','addConfiguration','/:id/configurations','getConfigurations','/:id','exports','/:id/fields','Router','isAuthenticated'];(function(_0x188f87,_0x1164e5){const _0x9e7ddc=function(_0x45540e){while(--_0x45540e){_0x188f87['push'](_0x188f87['shift']());}};_0x9e7ddc(++_0x1164e5);}(a344_0x1164,0x1a1));const a344_0x9e7d=function(_0x188f87,_0x1164e5){_0x188f87=_0x188f87-0x0;let _0x9e7ddc=a344_0x1164[_0x188f87];return _0x9e7ddc;};const _0x873c95=a344_0x9e7d;'use strict';const express=require(_0x873c95('0xf')),router=express[_0x873c95('0x6')](),auth=require(_0x873c95('0x9')),controller=require(_0x873c95('0x8'));router[_0x873c95('0xa')]('/',auth['isAuthenticated'](),controller['index']),router[_0x873c95('0xa')](_0x873c95('0x3'),auth[_0x873c95('0x7')](),controller['show']),router[_0x873c95('0xa')]('/:id/configurations',auth[_0x873c95('0x7')](),controller[_0x873c95('0x2')]),router[_0x873c95('0xa')](_0x873c95('0x5'),auth[_0x873c95('0x7')](),controller[_0x873c95('0xe')]),router['post']('/',auth['isAuthenticated'](),controller[_0x873c95('0xc')]),router[_0x873c95('0x10')](_0x873c95('0x1'),auth[_0x873c95('0x7')](),controller[_0x873c95('0x0')]),router[_0x873c95('0xb')](_0x873c95('0x3'),auth[_0x873c95('0x7')](),controller[_0x873c95('0xd')]),router['delete'](_0x873c95('0x3'),auth[_0x873c95('0x7')](),controller['destroy']),module[_0x873c95('0x4')]=router; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.attributes.js b/server/api/intZohoAccount/intZohoAccount.attributes.js index 4aa55d7..8d71d92 100644 --- a/server/api/intZohoAccount/intZohoAccount.attributes.js +++ b/server/api/intZohoAccount/intZohoAccount.attributes.js @@ -1 +1 @@ -const a345_0x5a95=['STRING','sequelize','exports'];(function(_0x367f4c,_0x5a952d){const _0x546b4f=function(_0x28b461){while(--_0x28b461){_0x367f4c['push'](_0x367f4c['shift']());}};_0x546b4f(++_0x5a952d);}(a345_0x5a95,0x19d));const a345_0x546b=function(_0x367f4c,_0x5a952d){_0x367f4c=_0x367f4c-0x0;let _0x546b4f=a345_0x5a95[_0x367f4c];return _0x546b4f;};const _0x6ae362=a345_0x546b;'use strict';const Sequelize=require(_0x6ae362('0x2'));module[_0x6ae362('0x0')]={'name':{'type':Sequelize[_0x6ae362('0x1')]},'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize[_0x6ae362('0x1')]},'zone':{'type':Sequelize[_0x6ae362('0x1')]},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize[_0x6ae362('0x1')]},'serverUrl':{'type':Sequelize[_0x6ae362('0x1')]},'code':{'type':Sequelize[_0x6ae362('0x1')]},'refreshToken':{'type':Sequelize[_0x6ae362('0x1')]}}; \ No newline at end of file +const a345_0x5656=['sequelize','exports','STRING'];(function(_0x24d564,_0x5656cc){const _0x37ba43=function(_0x32bbf1){while(--_0x32bbf1){_0x24d564['push'](_0x24d564['shift']());}};_0x37ba43(++_0x5656cc);}(a345_0x5656,0x1ec));const a345_0x37ba=function(_0x24d564,_0x5656cc){_0x24d564=_0x24d564-0x0;let _0x37ba43=a345_0x5656[_0x24d564];return _0x37ba43;};const _0x1bb02b=a345_0x37ba;'use strict';const Sequelize=require(_0x1bb02b('0x0'));module[_0x1bb02b('0x1')]={'name':{'type':Sequelize[_0x1bb02b('0x2')]},'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize['STRING']},'zone':{'type':Sequelize['STRING']},'clientId':{'type':Sequelize[_0x1bb02b('0x2')]},'clientSecret':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize['STRING']},'code':{'type':Sequelize[_0x1bb02b('0x2')]},'refreshToken':{'type':Sequelize[_0x1bb02b('0x2')]}}; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.controller.js b/server/api/intZohoAccount/intZohoAccount.controller.js index b7bf21c..426b9f0 100644 --- a/server/api/intZohoAccount/intZohoAccount.controller.js +++ b/server/api/intZohoAccount/intZohoAccount.controller.js @@ -1 +1 @@ -const a346_0x1838=['attributes','query','key','clientSecret','fieldName','../../mysqldb','status','ZohoField','system_mandatory','remove','lodash','api','format','access_token','data_type','length','intersection','zone','code','clientId','fields','ZohoConfiguration','merge','Description','limit','include','includes','type','../../config/logger','model','includeAll','getFields','GET','order','undefined','Refresh\x20Token\x20not\x20available\x20for\x20the\x20account','addConfiguration','stack','update','then','body','zoho.eu','util','where','show','api_name','map','AccountId','rawAttributes','test','Wrong\x20credentials','sendStatus','response','display_label','request-promise-native','/oauth/v2/token','pick','offset','like','Subjects','Descriptions','params','https://accounts.zoho.in','sequelize','serverUrl','com','error','getSubjects','Zoho-oauthtoken\x20','ZohoAccount','json','pick_list_values','message','filters','Content-Range','create','WhoId','keys','rows','findOne','count','https://accounts.zoho.eu','getConfigurations','catch','picklist','sort','getDescriptions','custom_field','host','getFields,\x20%s,\x20%s,\x20%s','Call_Type','Call_Result','channel','filter','findAll','https://accounts.zoho.com.cn','../../components/integrations/configuration','statusCode','name','options','refreshToken'];(function(_0x5d9dc7,_0x1838eb){const _0x310bec=function(_0x15bdb3){while(--_0x15bdb3){_0x5d9dc7['push'](_0x5d9dc7['shift']());}};_0x310bec(++_0x1838eb);}(a346_0x1838,0x164));const a346_0x310b=function(_0x5d9dc7,_0x1838eb){_0x5d9dc7=_0x5d9dc7-0x0;let _0x310bec=a346_0x1838[_0x5d9dc7];return _0x310bec;};const _0x337f41=a346_0x310b;'use strict';const rp=require(_0x337f41('0x1')),util=require(_0x337f41('0x5a')),_=require(_0x337f41('0x3a')),qs=require('../../components/parsers/qs'),logger=require(_0x337f41('0x4c'))(_0x337f41('0x3b')),db=require(_0x337f41('0x35'))['db'],{Op}=require(_0x337f41('0xa')),integrations=require(_0x337f41('0x2b'));function respondWithResult(_0x15bdb3,_0x5a61b3){return _0x5a61b3=_0x5a61b3||0xc8,function(_0xe80d6b){const _0x4b2387=a346_0x310b;if(_0xe80d6b)return _0x15bdb3[_0x4b2387('0x36')](_0x5a61b3)[_0x4b2387('0x11')](_0xe80d6b);};}function respondWithFilteredResult(_0x3a7b70,_0x43ceee){return function(_0x534124){const _0x454a13=a346_0x310b;if(_0x534124){const _0x42b711=_0x534124[_0x454a13('0x1b')],_0x299776=_0x43ceee[_0x454a13('0x4')];let _0xae8cc=_0x43ceee['offset']+_0x43ceee['limit'],_0x4b39b0;return _0xae8cc>=_0x42b711?(_0xae8cc=_0x42b711,_0x4b39b0=0xc8):_0x4b39b0=0xce,_0x3a7b70[_0x454a13('0x36')](_0x4b39b0),_0x3a7b70['set'](_0x454a13('0x15'),_0x299776+'-'+_0xae8cc+'/'+_0x42b711)['json'](_0x534124);}return null;};}function saveUpdates(_0x17f1ce){return function(_0x27c582){const _0x5e32fd=a346_0x310b;if(_0x27c582)return _0x27c582[_0x5e32fd('0x56')](_0x17f1ce)[_0x5e32fd('0x57')](function(_0x21298c){return _0x21298c;});return null;};}function removeEntity(_0x210d4d){return function(_0x5a55e6){const _0x7ce1c6=a346_0x310b;if(_0x5a55e6)return _0x5a55e6['destroy']()[_0x7ce1c6('0x57')](function(){_0x210d4d['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x22491e){return function(_0x24cb37){const _0x19bcf3=a346_0x310b;return!_0x24cb37&&_0x22491e[_0x19bcf3('0x63')](0x194),_0x24cb37;};}function handleError(_0x2831b1,_0x15834b){return _0x15834b=_0x15834b||0x1f4,function(_0x48a949){const _0xcd64d1=a346_0x310b;logger['error'](_0x48a949[_0xcd64d1('0x55')]),_0x48a949[_0xcd64d1('0x2d')]&&delete _0x48a949[_0xcd64d1('0x2d')],_0x2831b1['status'](_0x15834b)['send'](_0x48a949);};}exports['index']=function(_0x4a7ec8,_0x378dd3){const _0x484550=_0x337f41;let _0x19a3f1={};const _0x436774={},_0x4318da={'count':0x0,'rows':[]},_0x5e8f01=_[_0x484550('0x5e')](db[_0x484550('0x10')]['rawAttributes'],function(_0x489f44){const _0xa4ff1=_0x484550;return{'name':_0x489f44[_0xa4ff1('0x34')],'type':_0x489f44[_0xa4ff1('0x4b')][_0xa4ff1('0x32')]};});_0x436774[_0x484550('0x4d')]=_['map'](_0x5e8f01,'name'),_0x436774[_0x484550('0x31')]=_['keys'](_0x4a7ec8[_0x484550('0x31')]),_0x436774[_0x484550('0x14')]=_[_0x484550('0x40')](_0x436774[_0x484550('0x4d')],_0x436774[_0x484550('0x31')]),_0x19a3f1['attributes']=_[_0x484550('0x40')](_0x436774[_0x484550('0x4d')],qs[_0x484550('0x44')](_0x4a7ec8[_0x484550('0x31')][_0x484550('0x44')])),_0x19a3f1['attributes']=_0x19a3f1[_0x484550('0x30')][_0x484550('0x3f')]?_0x19a3f1[_0x484550('0x30')]:_0x436774[_0x484550('0x4d')];typeof _0x4a7ec8[_0x484550('0x31')]['nolimit']===_0x484550('0x52')&&(_0x19a3f1['limit']=qs[_0x484550('0x48')](_0x4a7ec8[_0x484550('0x31')][_0x484550('0x48')]),_0x19a3f1['offset']=qs[_0x484550('0x4')](_0x4a7ec8['query'][_0x484550('0x4')]));_0x19a3f1[_0x484550('0x51')]=qs[_0x484550('0x20')](_0x4a7ec8[_0x484550('0x31')][_0x484550('0x20')]),_0x19a3f1[_0x484550('0x5b')]=qs[_0x484550('0x14')](_[_0x484550('0x3')](_0x4a7ec8[_0x484550('0x31')],_0x436774[_0x484550('0x14')]),_0x5e8f01);_0x4a7ec8[_0x484550('0x31')][_0x484550('0x28')]&&(_0x19a3f1[_0x484550('0x5b')]=_[_0x484550('0x46')](_0x19a3f1[_0x484550('0x5b')],{[Op['or']]:_[_0x484550('0x5e')](_0x5e8f01,function(_0x28963a){const _0x5d8149=_0x484550;if(_0x28963a['type']!=='VIRTUAL'){const _0x4897b4={};return _0x4897b4[_0x28963a['name']]={[Op[_0x5d8149('0x5')]]:'%'+_0x4a7ec8[_0x5d8149('0x31')][_0x5d8149('0x28')]+'%'},_0x4897b4;}})}));_0x19a3f1=_['merge']({},_0x19a3f1,_0x4a7ec8[_0x484550('0x2e')]);const _0xd10313={'where':_0x19a3f1[_0x484550('0x5b')]};return db[_0x484550('0x10')][_0x484550('0x1b')](_0xd10313)[_0x484550('0x57')](function(_0x3d559c){const _0x4dc35f=_0x484550;return _0x4318da[_0x4dc35f('0x1b')]=_0x3d559c,_0x4a7ec8[_0x4dc35f('0x31')][_0x4dc35f('0x4e')]&&(_0x19a3f1[_0x4dc35f('0x49')]=[{'all':!![]}]),db['ZohoAccount'][_0x4dc35f('0x29')](_0x19a3f1);})[_0x484550('0x57')](function(_0x673cb5){const _0x4b74cd=_0x484550;return _0x4318da[_0x4b74cd('0x19')]=_0x673cb5,_0x4318da;})[_0x484550('0x57')](respondWithFilteredResult(_0x378dd3,_0x19a3f1))['catch'](handleError(_0x378dd3,null));},exports[_0x337f41('0x5c')]=function(_0x28d811,_0x364b33){const _0x130fe4=_0x337f41;let _0x5e326e={'raw':![],'where':{'id':_0x28d811[_0x130fe4('0x8')]['id']}};const _0x1b91ad={};return _0x1b91ad['model']=_['keys'](db[_0x130fe4('0x10')][_0x130fe4('0x60')]),_0x1b91ad[_0x130fe4('0x31')]=_[_0x130fe4('0x18')](_0x28d811[_0x130fe4('0x31')]),_0x1b91ad[_0x130fe4('0x14')]=_[_0x130fe4('0x40')](_0x1b91ad['model'],_0x1b91ad['query']),_0x5e326e[_0x130fe4('0x30')]=_[_0x130fe4('0x40')](_0x1b91ad[_0x130fe4('0x4d')],qs[_0x130fe4('0x44')](_0x28d811[_0x130fe4('0x31')][_0x130fe4('0x44')])),_0x5e326e['attributes']=_0x5e326e[_0x130fe4('0x30')][_0x130fe4('0x3f')]?_0x5e326e[_0x130fe4('0x30')]:_0x1b91ad[_0x130fe4('0x4d')],_0x28d811[_0x130fe4('0x31')][_0x130fe4('0x4e')]&&(_0x5e326e[_0x130fe4('0x49')]=[{'all':!![]}]),_0x5e326e=_[_0x130fe4('0x46')]({},_0x5e326e,_0x28d811['options']),db['ZohoAccount'][_0x130fe4('0x1a')](_0x5e326e)[_0x130fe4('0x57')](handleEntityNotFound(_0x364b33,null))['then'](respondWithResult(_0x364b33,null))[_0x130fe4('0x1e')](handleError(_0x364b33,null));},exports[_0x337f41('0x16')]=function(_0x226107,_0x1d8e2f){const _0x88d601=_0x337f41;return db[_0x88d601('0x10')][_0x88d601('0x16')](_0x226107[_0x88d601('0x58')],{})['then'](respondWithResult(_0x1d8e2f,0xc9))[_0x88d601('0x1e')](handleError(_0x1d8e2f,null));},exports[_0x337f41('0x56')]=function(_0x1595b9,_0x29c05e){const _0x3e712a=_0x337f41;return _0x1595b9[_0x3e712a('0x58')]['id']&&delete _0x1595b9[_0x3e712a('0x58')]['id'],db[_0x3e712a('0x10')][_0x3e712a('0x1a')]({'where':{'id':_0x1595b9[_0x3e712a('0x8')]['id']}})[_0x3e712a('0x57')](handleEntityNotFound(_0x29c05e,null))[_0x3e712a('0x57')](saveUpdates(_0x1595b9[_0x3e712a('0x58')],null))['then'](respondWithResult(_0x29c05e,null))[_0x3e712a('0x1e')](handleError(_0x29c05e,null));},exports['destroy']=function(_0x37625d,_0x2430df){const _0xc4d5e=_0x337f41;return db['ZohoAccount'][_0xc4d5e('0x1a')]({'where':{'id':_0x37625d[_0xc4d5e('0x8')]['id']}})[_0xc4d5e('0x57')](handleEntityNotFound(_0x2430df,null))[_0xc4d5e('0x57')](removeEntity(_0x2430df,null))['catch'](handleError(_0x2430df,null));},exports[_0x337f41('0x1d')]=function(_0x2df8c1,_0x2e0082){const _0x4d9f59=_0x337f41;let _0x39a9e1={};const _0x313b53={};let _0x5a1d45,_0x342049;return db[_0x4d9f59('0x10')][_0x4d9f59('0x1a')]({'where':{'id':_0x2df8c1[_0x4d9f59('0x8')]['id']}})[_0x4d9f59('0x57')](handleEntityNotFound(_0x2e0082,null))[_0x4d9f59('0x57')](function(_0x32e047){const _0x13ef0c=_0x4d9f59;if(_0x32e047)return _0x5a1d45=_0x32e047,_0x313b53[_0x13ef0c('0x4d')]=_[_0x13ef0c('0x18')](db['ZohoConfiguration'][_0x13ef0c('0x60')]),_0x313b53[_0x13ef0c('0x31')]=_[_0x13ef0c('0x18')](_0x2df8c1[_0x13ef0c('0x31')]),_0x313b53[_0x13ef0c('0x14')]=_[_0x13ef0c('0x40')](_0x313b53[_0x13ef0c('0x4d')],_0x313b53['query']),_0x39a9e1[_0x13ef0c('0x30')]=_[_0x13ef0c('0x40')](_0x313b53[_0x13ef0c('0x4d')],qs[_0x13ef0c('0x44')](_0x2df8c1[_0x13ef0c('0x31')][_0x13ef0c('0x44')])),_0x39a9e1['attributes']=_0x39a9e1[_0x13ef0c('0x30')][_0x13ef0c('0x3f')]?_0x39a9e1[_0x13ef0c('0x30')]:_0x313b53[_0x13ef0c('0x4d')],_0x39a9e1[_0x13ef0c('0x51')]=qs[_0x13ef0c('0x20')](_0x2df8c1[_0x13ef0c('0x31')][_0x13ef0c('0x20')]),_0x39a9e1[_0x13ef0c('0x5b')]=qs[_0x13ef0c('0x14')](_[_0x13ef0c('0x3')](_0x2df8c1['query'],_0x313b53[_0x13ef0c('0x14')])),_0x2df8c1[_0x13ef0c('0x31')][_0x13ef0c('0x28')]&&(_0x39a9e1[_0x13ef0c('0x5b')]=_['merge'](_0x39a9e1['where'],{[Op['or']]:_[_0x13ef0c('0x5e')](_0x39a9e1[_0x13ef0c('0x30')],function(_0x107de9){const _0x13a61d={};return _0x13a61d[_0x107de9]={[Op['like']]:'%'+_0x2df8c1['query']['filter']+'%'},_0x13a61d;})})),_0x39a9e1=_[_0x13ef0c('0x46')]({},_0x39a9e1,_0x2df8c1[_0x13ef0c('0x2e')]),_0x5a1d45[_0x13ef0c('0x1d')](_0x39a9e1);})[_0x4d9f59('0x57')](function(_0x1f671f){const _0x5874bf=_0x4d9f59;if(_0x1f671f)return _0x342049=_0x1f671f['length'],typeof _0x2df8c1[_0x5874bf('0x31')]['nolimit']===_0x5874bf('0x52')&&(_0x39a9e1[_0x5874bf('0x48')]=qs['limit'](_0x2df8c1[_0x5874bf('0x31')][_0x5874bf('0x48')]),_0x39a9e1[_0x5874bf('0x4')]=qs[_0x5874bf('0x4')](_0x2df8c1[_0x5874bf('0x31')][_0x5874bf('0x4')])),_0x5a1d45[_0x5874bf('0x1d')](_0x39a9e1);})[_0x4d9f59('0x57')](function(_0x5b3b1){if(_0x5b3b1)return _0x5b3b1?{'count':_0x342049,'rows':_0x5b3b1}:null;})[_0x4d9f59('0x57')](respondWithResult(_0x2e0082,null))[_0x4d9f59('0x1e')](handleError(_0x2e0082,null));},exports[_0x337f41('0x54')]=function(_0x4da840,_0x1615b5){const _0x1a96a3=_0x337f41;return _0x4da840[_0x1a96a3('0x58')]['id']&&delete _0x4da840[_0x1a96a3('0x58')]['id'],db['ZohoAccount'][_0x1a96a3('0x1a')]({'where':{'id':_0x4da840[_0x1a96a3('0x8')]['id']}})[_0x1a96a3('0x57')](handleEntityNotFound(_0x1615b5,null))['then'](function(_0x50cf37){const _0x192d08=_0x1a96a3;if(_0x50cf37)return _0x4da840[_0x192d08('0x58')][_0x192d08('0x5f')]=_0x50cf37['id'],_0x4da840[_0x192d08('0x58')][_0x192d08('0x6')]=integrations[_0x192d08('0xe')](_0x4da840[_0x192d08('0x58')][_0x192d08('0x27')],_0x4da840['body'][_0x192d08('0x4b')]),_0x4da840['body'][_0x192d08('0x7')]=integrations[_0x192d08('0x21')](_0x4da840['body'][_0x192d08('0x27')],_0x4da840[_0x192d08('0x58')]['type']),db[_0x192d08('0x45')]['create'](_0x4da840[_0x192d08('0x58')],{'include':[{'model':db[_0x192d08('0x37')],'as':_0x192d08('0x6')},{'model':db[_0x192d08('0x37')],'as':_0x192d08('0x7')}]});return null;})[_0x1a96a3('0x57')](respondWithResult(_0x1615b5,null))[_0x1a96a3('0x1e')](handleError(_0x1615b5,null));};function getAccessToken(_0x95d062){return new Promise(function(_0x535b7d,_0x415e7d){const _0x18fa0b=a346_0x310b;let _0xf2c936;switch(_0x95d062[_0x18fa0b('0x41')]){case'US':_0xf2c936='https://accounts.zoho.com';break;case'AU':_0xf2c936='https://accounts.zoho.com.au';break;case'EU':_0xf2c936='https://accounts.zoho.eu';break;case'IN':_0xf2c936=_0x18fa0b('0x9');break;case'CN':_0xf2c936=_0x18fa0b('0x2a');break;default:_0xf2c936=_0x18fa0b('0x1c');break;}const _0x1f1e94={'method':'POST','uri':_0xf2c936+_0x18fa0b('0x2'),'qs':{'refresh_token':_0x95d062['refreshToken'],'client_id':_0x95d062[_0x18fa0b('0x43')],'client_secret':_0x95d062[_0x18fa0b('0x33')],'grant_type':'refresh_token'},'json':!![]};return rp(_0x1f1e94)[_0x18fa0b('0x57')](function(_0x4b08d8){const _0x3ec718=_0x18fa0b;_0x4b08d8[_0x3ec718('0x3d')]?_0x535b7d(_0x4b08d8[_0x3ec718('0x3d')]):_0x415e7d('Unable\x20to\x20retrieve\x20the\x20access\x20token');})[_0x18fa0b('0x1e')](function(_0x144295){_0x415e7d(_0x144295);});});}exports[_0x337f41('0x4f')]=function(_0xad547b,_0xf55a21){const _0x414e6a=_0x337f41;let _0x8c0ba,_0x5667bb,_0x266760,_0x1af8d7;return db[_0x414e6a('0x10')][_0x414e6a('0x1a')]({'where':{'id':_0xad547b['params']['id']},'attributes':['id',_0x414e6a('0x23'),_0x414e6a('0x41'),_0x414e6a('0x43'),_0x414e6a('0x33'),_0x414e6a('0xb'),_0x414e6a('0x42'),_0x414e6a('0x2f')]})[_0x414e6a('0x57')](handleEntityNotFound(_0xf55a21,null))[_0x414e6a('0x57')](function(_0x118b3f){const _0x44b2e9=_0x414e6a;_0x1af8d7=_0x118b3f,_0x8c0ba=_0x1af8d7[_0x44b2e9('0x23')],_0x5667bb=_0x8c0ba===_0x44b2e9('0x59')?'eu':_0x44b2e9('0xc'),_0x266760=_0x1af8d7[_0x44b2e9('0xb')];const _0x5eb84f=_0x266760['slice'](-0x1);(_0x5eb84f==='/'||_0x5eb84f==='\x5c'||_0x5eb84f===':')&&(_0x266760=_0x266760['substring'](0x0,_0x266760['lastIndexOf'](_0x5eb84f)));if(!_0x1af8d7[_0x44b2e9('0x2f')])throw new Error(_0x44b2e9('0x53'));return getAccessToken(_0x1af8d7);})[_0x414e6a('0x57')](function(_0x44e052){const _0x4c7fc2=_0x414e6a;if(_0x44e052)return rp({'method':_0x4c7fc2('0x50'),'uri':util[_0x4c7fc2('0x3c')]('https://www.zohoapis.%s/crm/v2/settings/fields',_0x5667bb),'qs':{'module':'Calls'},'headers':{'Authorization':_0x4c7fc2('0xf')+_0x44e052},'json':!![]});})[_0x414e6a('0x57')](function(_0x5f1930){const _0x5c3419=_0x414e6a;if(_0x5f1930){if(_0x5f1930[_0x5c3419('0x64')]&&_0x5f1930['response'][_0x5c3419('0xd')])throw new Error(_0x5f1930[_0x5c3419('0x64')][_0x5c3419('0xd')][_0x5c3419('0x13')]);const _0xf81769=[];let _0x3c12f9=[];const _0x1ac970=['Owner','Subject',_0x5c3419('0x47'),_0x5c3419('0x17'),'Call_Duration',_0x5c3419('0x26'),'Call_Start_Time',_0x5c3419('0x25')];_0x3c12f9=_[_0x5c3419('0x39')](_0x5f1930['fields'],function(_0x822047){const _0x164a2a=_0x5c3419;return _0x1ac970[_0x164a2a('0x4a')](_0x822047[_0x164a2a('0x5d')]);});for(let _0x3969b5=0x0;_0x3969b5<_0x3c12f9[_0x5c3419('0x3f')];_0x3969b5++){_0x3c12f9[_0x3969b5][_0x5c3419('0x38')]===![]&&_0xf81769['push']({'id':_0x3c12f9[_0x3969b5]['id'],'name':_0x3c12f9[_0x3969b5][_0x5c3419('0x0')],'custom':_0x3c12f9[_0x3969b5][_0x5c3419('0x22')],'options':_0x3c12f9[_0x3969b5][_0x5c3419('0x3e')]===_0x5c3419('0x1f')&&_0x3c12f9[_0x3969b5][_0x5c3419('0x12')][_0x5c3419('0x3f')]>-0x1?_[_0x5c3419('0x5e')](_0x3c12f9[_0x3969b5][_0x5c3419('0x12')],function(_0x1480b1){return{'name':_0x1480b1,'value':_0x1480b1};}):[]});}return{'count':_0xf81769[_0x5c3419('0x3f')],'rows':_0xf81769};}else return{'count':0x0,'rows':[]};})[_0x414e6a('0x57')](respondWithResult(_0xf55a21,null))[_0x414e6a('0x1e')](function(_0x6c98d5){const _0x33642b=_0x414e6a;let _0x8b1ea3=_0xad547b[_0x33642b('0x31')]['test']?0x1f4:_0x6c98d5[_0x33642b('0x2c')]||0x1f4;logger[_0x33642b('0xd')](_0x33642b('0x24'),_0x33642b('0x4f'),_0x8b1ea3,JSON['stringify'](_0x6c98d5)),delete _0x6c98d5['name'],_0x8b1ea3===0x191&&(_0x8b1ea3=0x190),_0xf55a21[_0x33642b('0x36')](_0x8b1ea3)['send'](_0xad547b[_0x33642b('0x31')][_0x33642b('0x61')]?{'message':_0x33642b('0x62'),'statusCode':_0x6c98d5[_0x33642b('0x2c')]}:_0x6c98d5);});}; \ No newline at end of file +const a346_0x4957=['status','filters','AccountId','https://accounts.zoho.eu','model','update','offset','refreshToken','zone','json','Description','Refresh\x20Token\x20not\x20available\x20for\x20the\x20account','filter','name','undefined','substring','lodash','message','request-promise-native','Call_Type','ZohoConfiguration','sort','where','VIRTUAL','getConfigurations','test','../../mysqldb','count','catch','params','refresh_token','send','error','attributes','keys','WhoId','then','zoho.eu','Call_Duration','like','pick_list_values','channel','ZohoAccount','https://accounts.zoho.com.cn','ZohoField','sendStatus','Subjects','length','include','query','findAll','limit','statusCode','options','response','addConfiguration','stack','data_type','create','end','https://www.zohoapis.%s/crm/v2/settings/fields','POST','../../config/logger','Wrong\x20credentials','body','Descriptions','com','includeAll','show','map','custom_field','push','fields','/oauth/v2/token','clientId','slice','Call_Start_Time','intersection','findOne','format','system_mandatory','display_label','picklist','Owner','order','lastIndexOf','api_name','rawAttributes','nolimit','key','remove','../../components/parsers/qs','Subject','includes','type','Call_Result','Unable\x20to\x20retrieve\x20the\x20access\x20token','getFields','access_token','merge','https://accounts.zoho.com','pick','clientSecret','host','destroy'];(function(_0x2483cd,_0x4957bb){const _0x3c6ce0=function(_0xea203e){while(--_0xea203e){_0x2483cd['push'](_0x2483cd['shift']());}};_0x3c6ce0(++_0x4957bb);}(a346_0x4957,0xb8));const a346_0x3c6c=function(_0x2483cd,_0x4957bb){_0x2483cd=_0x2483cd-0x0;let _0x3c6ce0=a346_0x4957[_0x2483cd];return _0x3c6ce0;};const _0x59ac81=a346_0x3c6c;'use strict';const rp=require(_0x59ac81('0x2c')),util=require('util'),_=require(_0x59ac81('0x2a')),qs=require(_0x59ac81('0xc')),logger=require(_0x59ac81('0x58'))('api'),db=require(_0x59ac81('0x34'))['db'],{Op}=require('sequelize'),integrations=require('../../components/integrations/configuration');function respondWithResult(_0xea203e,_0x127b12){return _0x127b12=_0x127b12||0xc8,function(_0x2e5520){const _0x56c4d3=a346_0x3c6c;if(_0x2e5520)return _0xea203e[_0x56c4d3('0x1a')](_0x127b12)[_0x56c4d3('0x23')](_0x2e5520);};}function respondWithFilteredResult(_0x2bd436,_0x5dff0b){return function(_0x509409){const _0x5741d6=a346_0x3c6c;if(_0x509409){const _0x288fc0=_0x509409[_0x5741d6('0x35')],_0x113386=_0x5dff0b['offset'];let _0x3b593a=_0x5dff0b[_0x5741d6('0x20')]+_0x5dff0b[_0x5741d6('0x4d')],_0x584f18;return _0x3b593a>=_0x288fc0?(_0x3b593a=_0x288fc0,_0x584f18=0xc8):_0x584f18=0xce,_0x2bd436['status'](_0x584f18),_0x2bd436['set']('Content-Range',_0x113386+'-'+_0x3b593a+'/'+_0x288fc0)[_0x5741d6('0x23')](_0x509409);}return null;};}function saveUpdates(_0x19278f){return function(_0x384c92){const _0x2b54c4=a346_0x3c6c;if(_0x384c92)return _0x384c92[_0x2b54c4('0x1f')](_0x19278f)[_0x2b54c4('0x3e')](function(_0x5d892d){return _0x5d892d;});return null;};}function removeEntity(_0x56d113){return function(_0x5304d7){const _0x26ada2=a346_0x3c6c;if(_0x5304d7)return _0x5304d7[_0x26ada2('0x19')]()[_0x26ada2('0x3e')](function(){const _0xd0b07d=_0x26ada2;_0x56d113['status'](0xcc)[_0xd0b07d('0x55')]();});};}function handleEntityNotFound(_0x5b1986){return function(_0x3ff223){const _0x13e38d=a346_0x3c6c;return!_0x3ff223&&_0x5b1986[_0x13e38d('0x47')](0x194),_0x3ff223;};}function handleError(_0x3df936,_0x41e2cd){return _0x41e2cd=_0x41e2cd||0x1f4,function(_0x461358){const _0x5094b5=a346_0x3c6c;logger[_0x5094b5('0x3a')](_0x461358[_0x5094b5('0x52')]),_0x461358['name']&&delete _0x461358[_0x5094b5('0x27')],_0x3df936[_0x5094b5('0x1a')](_0x41e2cd)[_0x5094b5('0x39')](_0x461358);};}exports['index']=function(_0x3d5b4f,_0x269c91){const _0x2fc625=_0x59ac81;let _0x4692c9={};const _0xe590a0={},_0x5e9c4d={'count':0x0,'rows':[]},_0x447b1a=_['map'](db[_0x2fc625('0x44')][_0x2fc625('0x8')],function(_0x2e90e1){const _0x2ee085=_0x2fc625;return{'name':_0x2e90e1['fieldName'],'type':_0x2e90e1[_0x2ee085('0xf')][_0x2ee085('0xa')]};});_0xe590a0[_0x2fc625('0x1e')]=_[_0x2fc625('0x5f')](_0x447b1a,_0x2fc625('0x27')),_0xe590a0['query']=_['keys'](_0x3d5b4f['query']),_0xe590a0[_0x2fc625('0x1b')]=_[_0x2fc625('0x67')](_0xe590a0[_0x2fc625('0x1e')],_0xe590a0[_0x2fc625('0x4b')]),_0x4692c9[_0x2fc625('0x3b')]=_[_0x2fc625('0x67')](_0xe590a0[_0x2fc625('0x1e')],qs[_0x2fc625('0x62')](_0x3d5b4f[_0x2fc625('0x4b')][_0x2fc625('0x62')])),_0x4692c9['attributes']=_0x4692c9[_0x2fc625('0x3b')][_0x2fc625('0x49')]?_0x4692c9[_0x2fc625('0x3b')]:_0xe590a0[_0x2fc625('0x1e')];typeof _0x3d5b4f[_0x2fc625('0x4b')]['nolimit']==='undefined'&&(_0x4692c9[_0x2fc625('0x4d')]=qs[_0x2fc625('0x4d')](_0x3d5b4f['query'][_0x2fc625('0x4d')]),_0x4692c9[_0x2fc625('0x20')]=qs[_0x2fc625('0x20')](_0x3d5b4f[_0x2fc625('0x4b')][_0x2fc625('0x20')]));_0x4692c9[_0x2fc625('0x5')]=qs[_0x2fc625('0x2f')](_0x3d5b4f[_0x2fc625('0x4b')]['sort']),_0x4692c9[_0x2fc625('0x30')]=qs[_0x2fc625('0x1b')](_[_0x2fc625('0x16')](_0x3d5b4f[_0x2fc625('0x4b')],_0xe590a0[_0x2fc625('0x1b')]),_0x447b1a);_0x3d5b4f[_0x2fc625('0x4b')][_0x2fc625('0x26')]&&(_0x4692c9[_0x2fc625('0x30')]=_['merge'](_0x4692c9[_0x2fc625('0x30')],{[Op['or']]:_[_0x2fc625('0x5f')](_0x447b1a,function(_0x273690){const _0x56f0a5=_0x2fc625;if(_0x273690[_0x56f0a5('0xf')]!==_0x56f0a5('0x31')){const _0x2390a7={};return _0x2390a7[_0x273690['name']]={[Op[_0x56f0a5('0x41')]]:'%'+_0x3d5b4f[_0x56f0a5('0x4b')]['filter']+'%'},_0x2390a7;}})}));_0x4692c9=_[_0x2fc625('0x14')]({},_0x4692c9,_0x3d5b4f[_0x2fc625('0x4f')]);const _0xb64375={'where':_0x4692c9[_0x2fc625('0x30')]};return db[_0x2fc625('0x44')][_0x2fc625('0x35')](_0xb64375)[_0x2fc625('0x3e')](function(_0x586704){const _0x2e84f5=_0x2fc625;return _0x5e9c4d[_0x2e84f5('0x35')]=_0x586704,_0x3d5b4f['query'][_0x2e84f5('0x5d')]&&(_0x4692c9[_0x2e84f5('0x4a')]=[{'all':!![]}]),db[_0x2e84f5('0x44')][_0x2e84f5('0x4c')](_0x4692c9);})[_0x2fc625('0x3e')](function(_0x3b7c63){return _0x5e9c4d['rows']=_0x3b7c63,_0x5e9c4d;})[_0x2fc625('0x3e')](respondWithFilteredResult(_0x269c91,_0x4692c9))['catch'](handleError(_0x269c91,null));},exports[_0x59ac81('0x5e')]=function(_0x4d4f4b,_0x491f0b){const _0x47d5a7=_0x59ac81;let _0x498c75={'raw':![],'where':{'id':_0x4d4f4b['params']['id']}};const _0x148955={};return _0x148955['model']=_[_0x47d5a7('0x3c')](db[_0x47d5a7('0x44')][_0x47d5a7('0x8')]),_0x148955[_0x47d5a7('0x4b')]=_['keys'](_0x4d4f4b['query']),_0x148955[_0x47d5a7('0x1b')]=_[_0x47d5a7('0x67')](_0x148955[_0x47d5a7('0x1e')],_0x148955[_0x47d5a7('0x4b')]),_0x498c75[_0x47d5a7('0x3b')]=_[_0x47d5a7('0x67')](_0x148955[_0x47d5a7('0x1e')],qs[_0x47d5a7('0x62')](_0x4d4f4b[_0x47d5a7('0x4b')][_0x47d5a7('0x62')])),_0x498c75[_0x47d5a7('0x3b')]=_0x498c75[_0x47d5a7('0x3b')][_0x47d5a7('0x49')]?_0x498c75[_0x47d5a7('0x3b')]:_0x148955[_0x47d5a7('0x1e')],_0x4d4f4b[_0x47d5a7('0x4b')][_0x47d5a7('0x5d')]&&(_0x498c75['include']=[{'all':!![]}]),_0x498c75=_[_0x47d5a7('0x14')]({},_0x498c75,_0x4d4f4b[_0x47d5a7('0x4f')]),db[_0x47d5a7('0x44')]['findOne'](_0x498c75)[_0x47d5a7('0x3e')](handleEntityNotFound(_0x491f0b,null))['then'](respondWithResult(_0x491f0b,null))[_0x47d5a7('0x36')](handleError(_0x491f0b,null));},exports[_0x59ac81('0x54')]=function(_0x47c55c,_0x38e916){const _0x5cc631=_0x59ac81;return db[_0x5cc631('0x44')][_0x5cc631('0x54')](_0x47c55c['body'],{})['then'](respondWithResult(_0x38e916,0xc9))[_0x5cc631('0x36')](handleError(_0x38e916,null));},exports[_0x59ac81('0x1f')]=function(_0x4c8c16,_0xc5dfc8){const _0x14d886=_0x59ac81;return _0x4c8c16[_0x14d886('0x5a')]['id']&&delete _0x4c8c16['body']['id'],db[_0x14d886('0x44')][_0x14d886('0x68')]({'where':{'id':_0x4c8c16['params']['id']}})[_0x14d886('0x3e')](handleEntityNotFound(_0xc5dfc8,null))[_0x14d886('0x3e')](saveUpdates(_0x4c8c16['body'],null))[_0x14d886('0x3e')](respondWithResult(_0xc5dfc8,null))['catch'](handleError(_0xc5dfc8,null));},exports[_0x59ac81('0x19')]=function(_0x377770,_0x2de4d7){const _0x19a272=_0x59ac81;return db[_0x19a272('0x44')][_0x19a272('0x68')]({'where':{'id':_0x377770['params']['id']}})[_0x19a272('0x3e')](handleEntityNotFound(_0x2de4d7,null))['then'](removeEntity(_0x2de4d7,null))['catch'](handleError(_0x2de4d7,null));},exports[_0x59ac81('0x32')]=function(_0x1770e9,_0x5c786d){const _0x3c1253=_0x59ac81;let _0x13ad6d={};const _0x284c7e={};let _0x5cb4f7,_0xfc7a14;return db['ZohoAccount'][_0x3c1253('0x68')]({'where':{'id':_0x1770e9['params']['id']}})['then'](handleEntityNotFound(_0x5c786d,null))[_0x3c1253('0x3e')](function(_0x549a55){const _0x66e037=_0x3c1253;if(_0x549a55)return _0x5cb4f7=_0x549a55,_0x284c7e[_0x66e037('0x1e')]=_[_0x66e037('0x3c')](db['ZohoConfiguration']['rawAttributes']),_0x284c7e[_0x66e037('0x4b')]=_[_0x66e037('0x3c')](_0x1770e9[_0x66e037('0x4b')]),_0x284c7e['filters']=_[_0x66e037('0x67')](_0x284c7e[_0x66e037('0x1e')],_0x284c7e[_0x66e037('0x4b')]),_0x13ad6d['attributes']=_[_0x66e037('0x67')](_0x284c7e[_0x66e037('0x1e')],qs[_0x66e037('0x62')](_0x1770e9[_0x66e037('0x4b')]['fields'])),_0x13ad6d[_0x66e037('0x3b')]=_0x13ad6d['attributes'][_0x66e037('0x49')]?_0x13ad6d[_0x66e037('0x3b')]:_0x284c7e[_0x66e037('0x1e')],_0x13ad6d[_0x66e037('0x5')]=qs[_0x66e037('0x2f')](_0x1770e9[_0x66e037('0x4b')]['sort']),_0x13ad6d['where']=qs[_0x66e037('0x1b')](_[_0x66e037('0x16')](_0x1770e9['query'],_0x284c7e[_0x66e037('0x1b')])),_0x1770e9['query'][_0x66e037('0x26')]&&(_0x13ad6d[_0x66e037('0x30')]=_[_0x66e037('0x14')](_0x13ad6d[_0x66e037('0x30')],{[Op['or']]:_[_0x66e037('0x5f')](_0x13ad6d['attributes'],function(_0x592f13){const _0x5ec0c2=_0x66e037,_0x462ecd={};return _0x462ecd[_0x592f13]={[Op[_0x5ec0c2('0x41')]]:'%'+_0x1770e9[_0x5ec0c2('0x4b')][_0x5ec0c2('0x26')]+'%'},_0x462ecd;})})),_0x13ad6d=_['merge']({},_0x13ad6d,_0x1770e9[_0x66e037('0x4f')]),_0x5cb4f7[_0x66e037('0x32')](_0x13ad6d);})['then'](function(_0x3369b4){const _0x221719=_0x3c1253;if(_0x3369b4)return _0xfc7a14=_0x3369b4[_0x221719('0x49')],typeof _0x1770e9['query'][_0x221719('0x9')]===_0x221719('0x28')&&(_0x13ad6d['limit']=qs[_0x221719('0x4d')](_0x1770e9['query'][_0x221719('0x4d')]),_0x13ad6d['offset']=qs[_0x221719('0x20')](_0x1770e9['query']['offset'])),_0x5cb4f7[_0x221719('0x32')](_0x13ad6d);})[_0x3c1253('0x3e')](function(_0x1acd77){if(_0x1acd77)return _0x1acd77?{'count':_0xfc7a14,'rows':_0x1acd77}:null;})[_0x3c1253('0x3e')](respondWithResult(_0x5c786d,null))[_0x3c1253('0x36')](handleError(_0x5c786d,null));},exports[_0x59ac81('0x51')]=function(_0x4b4870,_0x12fbdc){const _0x557f14=_0x59ac81;return _0x4b4870[_0x557f14('0x5a')]['id']&&delete _0x4b4870[_0x557f14('0x5a')]['id'],db[_0x557f14('0x44')][_0x557f14('0x68')]({'where':{'id':_0x4b4870[_0x557f14('0x37')]['id']}})['then'](handleEntityNotFound(_0x12fbdc,null))[_0x557f14('0x3e')](function(_0x1b2b72){const _0x20a627=_0x557f14;if(_0x1b2b72)return _0x4b4870[_0x20a627('0x5a')][_0x20a627('0x1c')]=_0x1b2b72['id'],_0x4b4870[_0x20a627('0x5a')][_0x20a627('0x48')]=integrations['getSubjects'](_0x4b4870[_0x20a627('0x5a')][_0x20a627('0x43')],_0x4b4870[_0x20a627('0x5a')]['type']),_0x4b4870[_0x20a627('0x5a')][_0x20a627('0x5b')]=integrations['getDescriptions'](_0x4b4870[_0x20a627('0x5a')][_0x20a627('0x43')],_0x4b4870[_0x20a627('0x5a')][_0x20a627('0xf')]),db[_0x20a627('0x2e')][_0x20a627('0x54')](_0x4b4870['body'],{'include':[{'model':db['ZohoField'],'as':'Subjects'},{'model':db[_0x20a627('0x46')],'as':_0x20a627('0x5b')}]});return null;})[_0x557f14('0x3e')](respondWithResult(_0x12fbdc,null))[_0x557f14('0x36')](handleError(_0x12fbdc,null));};function getAccessToken(_0x4293d1){return new Promise(function(_0x2e7802,_0x41d90a){const _0x4e7e54=a346_0x3c6c;let _0x54a70e;switch(_0x4293d1[_0x4e7e54('0x22')]){case'US':_0x54a70e=_0x4e7e54('0x15');break;case'AU':_0x54a70e='https://accounts.zoho.com.au';break;case'EU':_0x54a70e='https://accounts.zoho.eu';break;case'IN':_0x54a70e='https://accounts.zoho.in';break;case'CN':_0x54a70e=_0x4e7e54('0x45');break;default:_0x54a70e=_0x4e7e54('0x1d');break;}const _0xd1b752={'method':_0x4e7e54('0x57'),'uri':_0x54a70e+_0x4e7e54('0x63'),'qs':{'refresh_token':_0x4293d1[_0x4e7e54('0x21')],'client_id':_0x4293d1[_0x4e7e54('0x64')],'client_secret':_0x4293d1[_0x4e7e54('0x17')],'grant_type':_0x4e7e54('0x38')},'json':!![]};return rp(_0xd1b752)['then'](function(_0x49d77f){const _0x53b42f=_0x4e7e54;_0x49d77f[_0x53b42f('0x13')]?_0x2e7802(_0x49d77f[_0x53b42f('0x13')]):_0x41d90a(_0x53b42f('0x11'));})['catch'](function(_0x16e76f){_0x41d90a(_0x16e76f);});});}exports[_0x59ac81('0x12')]=function(_0x4948b4,_0x995353){const _0x48bed5=_0x59ac81;let _0x542b4a,_0x53bd2a,_0x586651,_0x5b3e84;return db[_0x48bed5('0x44')]['findOne']({'where':{'id':_0x4948b4['params']['id']},'attributes':['id',_0x48bed5('0x18'),_0x48bed5('0x22'),'clientId',_0x48bed5('0x17'),'serverUrl','code',_0x48bed5('0x21')]})['then'](handleEntityNotFound(_0x995353,null))['then'](function(_0xf48f0d){const _0x2779bb=_0x48bed5;_0x5b3e84=_0xf48f0d,_0x542b4a=_0x5b3e84[_0x2779bb('0x18')],_0x53bd2a=_0x542b4a===_0x2779bb('0x3f')?'eu':_0x2779bb('0x5c'),_0x586651=_0x5b3e84['serverUrl'];const _0x549e14=_0x586651[_0x2779bb('0x65')](-0x1);(_0x549e14==='/'||_0x549e14==='\x5c'||_0x549e14===':')&&(_0x586651=_0x586651[_0x2779bb('0x29')](0x0,_0x586651[_0x2779bb('0x6')](_0x549e14)));if(!_0x5b3e84['refreshToken'])throw new Error(_0x2779bb('0x25'));return getAccessToken(_0x5b3e84);})[_0x48bed5('0x3e')](function(_0x3c581d){const _0x4ea457=_0x48bed5;if(_0x3c581d)return rp({'method':'GET','uri':util[_0x4ea457('0x0')](_0x4ea457('0x56'),_0x53bd2a),'qs':{'module':'Calls'},'headers':{'Authorization':'Zoho-oauthtoken\x20'+_0x3c581d},'json':!![]});})[_0x48bed5('0x3e')](function(_0x3d890c){const _0x59d987=_0x48bed5;if(_0x3d890c){if(_0x3d890c['response']&&_0x3d890c['response'][_0x59d987('0x3a')])throw new Error(_0x3d890c[_0x59d987('0x50')]['error'][_0x59d987('0x2b')]);const _0x18dee8=[];let _0x2c65f5=[];const _0x111bc7=[_0x59d987('0x4'),_0x59d987('0xd'),_0x59d987('0x24'),_0x59d987('0x3d'),_0x59d987('0x40'),_0x59d987('0x10'),_0x59d987('0x66'),_0x59d987('0x2d')];_0x2c65f5=_[_0x59d987('0xb')](_0x3d890c[_0x59d987('0x62')],function(_0x4162ed){const _0x4e4683=_0x59d987;return _0x111bc7[_0x4e4683('0xe')](_0x4162ed[_0x4e4683('0x7')]);});for(let _0xc13f0d=0x0;_0xc13f0d<_0x2c65f5[_0x59d987('0x49')];_0xc13f0d++){_0x2c65f5[_0xc13f0d][_0x59d987('0x1')]===![]&&_0x18dee8[_0x59d987('0x61')]({'id':_0x2c65f5[_0xc13f0d]['id'],'name':_0x2c65f5[_0xc13f0d][_0x59d987('0x2')],'custom':_0x2c65f5[_0xc13f0d][_0x59d987('0x60')],'options':_0x2c65f5[_0xc13f0d][_0x59d987('0x53')]===_0x59d987('0x3')&&_0x2c65f5[_0xc13f0d][_0x59d987('0x42')][_0x59d987('0x49')]>-0x1?_[_0x59d987('0x5f')](_0x2c65f5[_0xc13f0d][_0x59d987('0x42')],function(_0x507b6b){return{'name':_0x507b6b,'value':_0x507b6b};}):[]});}return{'count':_0x18dee8['length'],'rows':_0x18dee8};}else return{'count':0x0,'rows':[]};})[_0x48bed5('0x3e')](respondWithResult(_0x995353,null))[_0x48bed5('0x36')](function(_0x2942af){const _0x345a36=_0x48bed5;let _0x230af1=_0x4948b4['query'][_0x345a36('0x33')]?0x1f4:_0x2942af[_0x345a36('0x4e')]||0x1f4;logger['error']('getFields,\x20%s,\x20%s,\x20%s',_0x345a36('0x12'),_0x230af1,JSON['stringify'](_0x2942af)),delete _0x2942af['name'],_0x230af1===0x191&&(_0x230af1=0x190),_0x995353[_0x345a36('0x1a')](_0x230af1)[_0x345a36('0x39')](_0x4948b4[_0x345a36('0x4b')][_0x345a36('0x33')]?{'message':_0x345a36('0x59'),'statusCode':_0x2942af[_0x345a36('0x4e')]}:_0x2942af);});}; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.model.js b/server/api/intZohoAccount/intZohoAccount.model.js index 8f84c2d..ed1709f 100644 --- a/server/api/intZohoAccount/intZohoAccount.model.js +++ b/server/api/intZohoAccount/intZohoAccount.model.js @@ -1 +1 @@ -const a347_0x111f=['host','https://accounts.zoho.com.cn','inspect','format','clientSecret','refresh_token','define','serverUrl','substring','POST','lastIndexOf','util','/oauth/v2/token','api','https://accounts.zoho.in','then','refreshToken','catch','error','changed','clientId','https://accounts.zoho.com','slice','exports','info','name','parse','ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d','https://accounts.zoho.com.au','code','zone','https://accounts.zoho.eu','./intZohoAccount.attributes','authorization_code','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','application/x-www-form-urlencoded'];(function(_0x4112c5,_0x111ff0){const _0x3a53f4=function(_0x480969){while(--_0x480969){_0x4112c5['push'](_0x4112c5['shift']());}};_0x3a53f4(++_0x111ff0);}(a347_0x111f,0x186));const a347_0x3a53=function(_0x4112c5,_0x111ff0){_0x4112c5=_0x4112c5-0x0;let _0x3a53f4=a347_0x111f[_0x4112c5];return _0x3a53f4;};const _0x5775b0=a347_0x3a53;'use strict';const util=require(_0x5775b0('0x11')),logger=require('../../config/logger')(_0x5775b0('0x13')),rp=require('request-promise-native'),attributes=require(_0x5775b0('0x2'));module[_0x5775b0('0x1d')]=function(_0x480969){const _0x35ab70=_0x5775b0,_0x26413d=_0x480969[_0x35ab70('0xc')]('ZohoAccount',attributes,{'tableName':'int_zoho_accounts','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x3b0f6e){const _0x4a9a2f=_0x35ab70;if(_0x3b0f6e[_0x4a9a2f('0x19')](_0x4a9a2f('0x0'))||_0x3b0f6e[_0x4a9a2f('0x19')]('serverUrl')||_0x3b0f6e['changed'](_0x4a9a2f('0x1a'))||_0x3b0f6e[_0x4a9a2f('0x19')](_0x4a9a2f('0xa'))||_0x3b0f6e['changed'](_0x4a9a2f('0x23'))||_0x3b0f6e[_0x4a9a2f('0x19')]('host')){let _0xd6bc4b,_0x44c4fb;_0xd6bc4b=_0x3b0f6e[_0x4a9a2f('0xd')];const _0x1370f2=_0xd6bc4b[_0x4a9a2f('0x1c')](-0x1);(_0x1370f2==='/'||_0x1370f2==='\x5c'||_0x1370f2===':')&&(_0xd6bc4b=_0xd6bc4b[_0x4a9a2f('0xe')](0x0,_0xd6bc4b[_0x4a9a2f('0x10')](_0x1370f2)));switch(_0x3b0f6e[_0x4a9a2f('0x0')]){case'US':_0x44c4fb='https://accounts.zoho.com';break;case'AU':_0x44c4fb=_0x4a9a2f('0x22');break;case'IN':_0x44c4fb=_0x4a9a2f('0x14');break;case'CN':_0x44c4fb=_0x4a9a2f('0x7');break;default:_0x44c4fb=_0x4a9a2f('0x1');break;}const _0xd8c798={'method':_0x4a9a2f('0xf'),'uri':_0x44c4fb+'/oauth/v2/token','form':{'grant_type':_0x4a9a2f('0x3'),'client_id':_0x3b0f6e['clientId'],'client_secret':_0x3b0f6e[_0x4a9a2f('0xa')],'redirect_uri':_0x3b0f6e[_0x4a9a2f('0xd')],'code':_0x3b0f6e[_0x4a9a2f('0x23')]},'headers':{'Content-Type':_0x4a9a2f('0x5')}};let _0x1bd77d=null;return rp(_0xd8c798)[_0x4a9a2f('0x15')](function(_0x5b9a2d){const _0x15a50c=_0x4a9a2f;return _0x1bd77d=JSON[_0x15a50c('0x20')](_0x5b9a2d),_0x1bd77d[_0x15a50c('0xb')]?(_0x3b0f6e[_0x15a50c('0x16')]=_0x1bd77d['refresh_token'],logger[_0x15a50c('0x1e')](util[_0x15a50c('0x9')](_0x15a50c('0x21'),_0x3b0f6e[_0x15a50c('0x1f')],_0x3b0f6e['id']))):logger[_0x15a50c('0x18')](util[_0x15a50c('0x9')](_0x15a50c('0x4'),_0x3b0f6e['name'],_0x3b0f6e['id']),util[_0x15a50c('0x8')](_0x1bd77d,{'showHidden':![],'depth':null})),null;})['catch'](function(_0x23d56c){const _0x31c3d5=_0x4a9a2f;return logger['error'](util['format'](_0x31c3d5('0x4'),_0x3b0f6e[_0x31c3d5('0x1f')],_0x3b0f6e['id']),util['inspect'](_0x1bd77d,{'showHidden':![],'depth':null})),_0x23d56c;});}else return null;},'beforeUpdate':function(_0x305802){const _0x316d80=_0x35ab70;if(_0x305802[_0x316d80('0x19')](_0x316d80('0x0'))||_0x305802[_0x316d80('0x19')]('serverUrl')||_0x305802[_0x316d80('0x19')](_0x316d80('0x1a'))||_0x305802[_0x316d80('0x19')](_0x316d80('0xa'))||_0x305802[_0x316d80('0x19')](_0x316d80('0x23'))||_0x305802[_0x316d80('0x19')](_0x316d80('0x6'))){let _0x4e37ea,_0x47b7ee;_0x4e37ea=_0x305802[_0x316d80('0xd')];const _0x5183d0=_0x4e37ea['slice'](-0x1);(_0x5183d0==='/'||_0x5183d0==='\x5c'||_0x5183d0===':')&&(_0x4e37ea=_0x4e37ea[_0x316d80('0xe')](0x0,_0x4e37ea[_0x316d80('0x10')](_0x5183d0)));switch(_0x305802[_0x316d80('0x0')]){case'US':_0x47b7ee=_0x316d80('0x1b');break;case'AU':_0x47b7ee='https://accounts.zoho.com.au';break;case'IN':_0x47b7ee=_0x316d80('0x14');break;case'CN':_0x47b7ee=_0x316d80('0x7');break;default:_0x47b7ee=_0x316d80('0x1');break;}const _0x374421={'method':_0x316d80('0xf'),'uri':_0x47b7ee+_0x316d80('0x12'),'form':{'grant_type':_0x316d80('0x3'),'client_id':_0x305802[_0x316d80('0x1a')],'client_secret':_0x305802[_0x316d80('0xa')],'redirect_uri':_0x305802[_0x316d80('0xd')],'code':_0x305802[_0x316d80('0x23')]},'headers':{'Content-Type':'application/x-www-form-urlencoded'}};let _0x2c15eb=null;return rp(_0x374421)['then'](function(_0x6badf6){const _0x3c5ee1=_0x316d80;return _0x2c15eb=JSON[_0x3c5ee1('0x20')](_0x6badf6),_0x2c15eb[_0x3c5ee1('0xb')]?(_0x305802[_0x3c5ee1('0x16')]=_0x2c15eb['refresh_token'],logger['info'](util[_0x3c5ee1('0x9')](_0x3c5ee1('0x21'),_0x305802[_0x3c5ee1('0x1f')],_0x305802['id']))):logger['error'](util[_0x3c5ee1('0x9')](_0x3c5ee1('0x4'),_0x305802['name'],_0x305802['id']),util[_0x3c5ee1('0x8')](_0x2c15eb,{'showHidden':![],'depth':null})),null;})[_0x316d80('0x17')](function(_0x3d9902){const _0x558e90=_0x316d80;return logger['error'](util[_0x558e90('0x9')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x305802[_0x558e90('0x1f')],_0x305802['id']),util[_0x558e90('0x8')](_0x2c15eb,{'showHidden':![],'depth':null})),_0x3d9902;});}else return null;}}});return _0x26413d;}; \ No newline at end of file +const a347_0x305c=['parse','serverUrl','info','int_zoho_accounts','https://accounts.zoho.com.cn','zone','clientSecret','code','authorization_code','./intZohoAccount.attributes','clientId','util','format','inspect','exports','api','ZohoAccount','request-promise-native','/oauth/v2/token','https://accounts.zoho.eu','define','../../config/logger','refresh_token','https://accounts.zoho.in','catch','then','https://accounts.zoho.com.au','lastIndexOf','changed','name','host','POST','error','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','https://accounts.zoho.com','application/x-www-form-urlencoded','substring','slice','refreshToken','ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d'];(function(_0x50ee8c,_0x305cf6){const _0x5a4fce=function(_0x42b39e){while(--_0x42b39e){_0x50ee8c['push'](_0x50ee8c['shift']());}};_0x5a4fce(++_0x305cf6);}(a347_0x305c,0x147));const a347_0x5a4f=function(_0x50ee8c,_0x305cf6){_0x50ee8c=_0x50ee8c-0x0;let _0x5a4fce=a347_0x305c[_0x50ee8c];return _0x5a4fce;};const _0x4769b7=a347_0x5a4f;'use strict';const util=require(_0x4769b7('0x4')),logger=require(_0x4769b7('0xe'))(_0x4769b7('0x8')),rp=require(_0x4769b7('0xa')),attributes=require(_0x4769b7('0x2'));module[_0x4769b7('0x7')]=function(_0x42b39e){const _0x47a5f7=_0x4769b7,_0x8ed3f9=_0x42b39e[_0x47a5f7('0xd')](_0x47a5f7('0x9'),attributes,{'tableName':_0x47a5f7('0x24'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x4bf818){const _0x4f1788=_0x47a5f7;if(_0x4bf818[_0x4f1788('0x15')](_0x4f1788('0x26'))||_0x4bf818[_0x4f1788('0x15')]('serverUrl')||_0x4bf818[_0x4f1788('0x15')](_0x4f1788('0x3'))||_0x4bf818[_0x4f1788('0x15')](_0x4f1788('0x27'))||_0x4bf818[_0x4f1788('0x15')](_0x4f1788('0x0'))||_0x4bf818[_0x4f1788('0x15')](_0x4f1788('0x17'))){let _0x122752,_0xb30041;_0x122752=_0x4bf818[_0x4f1788('0x22')];const _0x1a25ef=_0x122752[_0x4f1788('0x1e')](-0x1);(_0x1a25ef==='/'||_0x1a25ef==='\x5c'||_0x1a25ef===':')&&(_0x122752=_0x122752[_0x4f1788('0x1d')](0x0,_0x122752[_0x4f1788('0x14')](_0x1a25ef)));switch(_0x4bf818[_0x4f1788('0x26')]){case'US':_0xb30041=_0x4f1788('0x1b');break;case'AU':_0xb30041=_0x4f1788('0x13');break;case'IN':_0xb30041=_0x4f1788('0x10');break;case'CN':_0xb30041=_0x4f1788('0x25');break;default:_0xb30041=_0x4f1788('0xc');break;}const _0x5b8a2e={'method':_0x4f1788('0x18'),'uri':_0xb30041+_0x4f1788('0xb'),'form':{'grant_type':_0x4f1788('0x1'),'client_id':_0x4bf818[_0x4f1788('0x3')],'client_secret':_0x4bf818['clientSecret'],'redirect_uri':_0x4bf818[_0x4f1788('0x22')],'code':_0x4bf818[_0x4f1788('0x0')]},'headers':{'Content-Type':'application/x-www-form-urlencoded'}};let _0x1c0971=null;return rp(_0x5b8a2e)[_0x4f1788('0x12')](function(_0x26dfd2){const _0x121e98=_0x4f1788;return _0x1c0971=JSON[_0x121e98('0x21')](_0x26dfd2),_0x1c0971[_0x121e98('0xf')]?(_0x4bf818[_0x121e98('0x1f')]=_0x1c0971[_0x121e98('0xf')],logger[_0x121e98('0x23')](util[_0x121e98('0x5')]('ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d',_0x4bf818[_0x121e98('0x16')],_0x4bf818['id']))):logger['error'](util['format'](_0x121e98('0x1a'),_0x4bf818[_0x121e98('0x16')],_0x4bf818['id']),util['inspect'](_0x1c0971,{'showHidden':![],'depth':null})),null;})[_0x4f1788('0x11')](function(_0x3f7a17){const _0x1ce804=_0x4f1788;return logger[_0x1ce804('0x19')](util[_0x1ce804('0x5')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x4bf818[_0x1ce804('0x16')],_0x4bf818['id']),util['inspect'](_0x1c0971,{'showHidden':![],'depth':null})),_0x3f7a17;});}else return null;},'beforeUpdate':function(_0x322d9f){const _0x5a1abf=_0x47a5f7;if(_0x322d9f[_0x5a1abf('0x15')]('zone')||_0x322d9f[_0x5a1abf('0x15')](_0x5a1abf('0x22'))||_0x322d9f[_0x5a1abf('0x15')](_0x5a1abf('0x3'))||_0x322d9f[_0x5a1abf('0x15')]('clientSecret')||_0x322d9f['changed'](_0x5a1abf('0x0'))||_0x322d9f['changed'](_0x5a1abf('0x17'))){let _0x9f75a7,_0x3bfb48;_0x9f75a7=_0x322d9f[_0x5a1abf('0x22')];const _0x229a59=_0x9f75a7['slice'](-0x1);(_0x229a59==='/'||_0x229a59==='\x5c'||_0x229a59===':')&&(_0x9f75a7=_0x9f75a7['substring'](0x0,_0x9f75a7['lastIndexOf'](_0x229a59)));switch(_0x322d9f[_0x5a1abf('0x26')]){case'US':_0x3bfb48=_0x5a1abf('0x1b');break;case'AU':_0x3bfb48='https://accounts.zoho.com.au';break;case'IN':_0x3bfb48=_0x5a1abf('0x10');break;case'CN':_0x3bfb48=_0x5a1abf('0x25');break;default:_0x3bfb48=_0x5a1abf('0xc');break;}const _0x3639b6={'method':_0x5a1abf('0x18'),'uri':_0x3bfb48+'/oauth/v2/token','form':{'grant_type':'authorization_code','client_id':_0x322d9f['clientId'],'client_secret':_0x322d9f['clientSecret'],'redirect_uri':_0x322d9f[_0x5a1abf('0x22')],'code':_0x322d9f[_0x5a1abf('0x0')]},'headers':{'Content-Type':_0x5a1abf('0x1c')}};let _0x4248b5=null;return rp(_0x3639b6)[_0x5a1abf('0x12')](function(_0x3329f8){const _0x411ce1=_0x5a1abf;return _0x4248b5=JSON[_0x411ce1('0x21')](_0x3329f8),_0x4248b5['refresh_token']?(_0x322d9f[_0x411ce1('0x1f')]=_0x4248b5['refresh_token'],logger[_0x411ce1('0x23')](util[_0x411ce1('0x5')](_0x411ce1('0x20'),_0x322d9f[_0x411ce1('0x16')],_0x322d9f['id']))):logger[_0x411ce1('0x19')](util[_0x411ce1('0x5')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x322d9f[_0x411ce1('0x16')],_0x322d9f['id']),util[_0x411ce1('0x6')](_0x4248b5,{'showHidden':![],'depth':null})),null;})[_0x5a1abf('0x11')](function(_0x42ebd8){const _0x7a51aa=_0x5a1abf;return logger[_0x7a51aa('0x19')](util[_0x7a51aa('0x5')](_0x7a51aa('0x1a'),_0x322d9f['name'],_0x322d9f['id']),util[_0x7a51aa('0x6')](_0x4248b5,{'showHidden':![],'depth':null})),_0x42ebd8;});}else return null;}}});return _0x8ed3f9;}; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.rpc.js b/server/api/intZohoAccount/intZohoAccount.rpc.js index 9f8759e..01790d8 100644 --- a/server/api/intZohoAccount/intZohoAccount.rpc.js +++ b/server/api/intZohoAccount/intZohoAccount.rpc.js @@ -1 +1 @@ -const a348_0x99ce=['limit','GetZohoAccount','catch','findAll','error','attributes','stringify','lodash','findOne','where','include','message','debug','ShowZohoAccount','raw','../../mysqldb','rpc','../../config/logger','model','options','map','ZohoAccount','then'];(function(_0x48f937,_0x99ce7){const _0x40f40b=function(_0x53479e){while(--_0x53479e){_0x48f937['push'](_0x48f937['shift']());}};_0x40f40b(++_0x99ce7);}(a348_0x99ce,0x1db));const a348_0x40f4=function(_0x48f937,_0x99ce7){_0x48f937=_0x48f937-0x0;let _0x40f40b=a348_0x99ce[_0x48f937];return _0x40f40b;};const _0x29dc2a=a348_0x40f4;'use strict';const _=require(_0x29dc2a('0xf')),db=require(_0x29dc2a('0x0'))['db'],logger=require(_0x29dc2a('0x2'))(_0x29dc2a('0x1'));exports[_0x29dc2a('0x9')]=function(_0x53479e){const _0x1afd98=this;return new Promise(function(_0x735baf,_0x9c8567){const _0x2d08fa=a348_0x40f4;return db['ZohoAccount'][_0x2d08fa('0xb')]({'raw':_0x53479e['options']?_0x53479e[_0x2d08fa('0x4')][_0x2d08fa('0x16')]===undefined?!![]:![]:!![],'where':_0x53479e[_0x2d08fa('0x4')]?_0x53479e[_0x2d08fa('0x4')]['where']||null:null,'attributes':_0x53479e[_0x2d08fa('0x4')]?_0x53479e[_0x2d08fa('0x4')][_0x2d08fa('0xd')]||null:null,'limit':_0x53479e[_0x2d08fa('0x4')]?_0x53479e[_0x2d08fa('0x4')][_0x2d08fa('0x8')]||null:null,'include':_0x53479e[_0x2d08fa('0x4')]?_0x53479e[_0x2d08fa('0x4')][_0x2d08fa('0x12')]?_[_0x2d08fa('0x5')](_0x53479e[_0x2d08fa('0x4')][_0x2d08fa('0x12')],function(_0x3bd079){const _0x16eaec=_0x2d08fa;return{'model':db[_0x3bd079[_0x16eaec('0x3')]],'as':_0x3bd079['as'],'attributes':_0x3bd079[_0x16eaec('0xd')],'include':_0x3bd079['include']?_[_0x16eaec('0x5')](_0x3bd079[_0x16eaec('0x12')],function(_0x3d27d8){const _0x12143f=_0x16eaec;return{'model':db[_0x3d27d8[_0x12143f('0x3')]],'as':_0x3d27d8['as'],'attributes':_0x3d27d8['attributes'],'include':_0x3d27d8[_0x12143f('0x12')]?_[_0x12143f('0x5')](_0x3d27d8[_0x12143f('0x12')],function(_0x567e4b){const _0x3bae0a=_0x12143f;return{'model':db[_0x567e4b[_0x3bae0a('0x3')]],'as':_0x567e4b['as'],'attributes':_0x567e4b['attributes']};}):[]};}):[]};}):[]:[]})[_0x2d08fa('0x7')](function(_0x157132){const _0x57c85d=_0x2d08fa;logger['info'](_0x57c85d('0x9'),_0x53479e),logger['debug']('GetZohoAccount',_0x53479e,JSON[_0x57c85d('0xe')](_0x157132)),_0x735baf(_0x157132);})['catch'](function(_0x1a4e2a){const _0x32d88d=_0x2d08fa;logger['error']('GetZohoAccount',_0x1a4e2a[_0x32d88d('0x13')],_0x53479e),_0x9c8567(_0x1afd98[_0x32d88d('0xc')](0x1f4,_0x1a4e2a[_0x32d88d('0x13')]));});});},exports[_0x29dc2a('0x15')]=function(_0x8c8c80){const _0x45f719=this;return new Promise(function(_0x16bf9a,_0x3ced1e){const _0x5325ae=a348_0x40f4;return db[_0x5325ae('0x6')][_0x5325ae('0x10')]({'raw':_0x8c8c80[_0x5325ae('0x4')]?_0x8c8c80[_0x5325ae('0x4')][_0x5325ae('0x16')]===undefined?!![]:![]:!![],'where':_0x8c8c80['options']?_0x8c8c80[_0x5325ae('0x4')][_0x5325ae('0x11')]||null:null,'attributes':_0x8c8c80[_0x5325ae('0x4')]?_0x8c8c80[_0x5325ae('0x4')]['attributes']||null:null,'include':_0x8c8c80['options']?_0x8c8c80[_0x5325ae('0x4')][_0x5325ae('0x12')]?_[_0x5325ae('0x5')](_0x8c8c80['options'][_0x5325ae('0x12')],function(_0x51e2d8){const _0x13bc2d=_0x5325ae;return{'model':db[_0x51e2d8[_0x13bc2d('0x3')]],'as':_0x51e2d8['as'],'attributes':_0x51e2d8[_0x13bc2d('0xd')],'include':_0x51e2d8[_0x13bc2d('0x12')]?_[_0x13bc2d('0x5')](_0x51e2d8[_0x13bc2d('0x12')],function(_0x439ee4){const _0x1fdf82=_0x13bc2d;return{'model':db[_0x439ee4['model']],'as':_0x439ee4['as'],'attributes':_0x439ee4['attributes'],'include':_0x439ee4['include']?_[_0x1fdf82('0x5')](_0x439ee4[_0x1fdf82('0x12')],function(_0xd11c20){const _0x15ac89=_0x1fdf82;return{'model':db[_0xd11c20[_0x15ac89('0x3')]],'as':_0xd11c20['as'],'attributes':_0xd11c20['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x14374b){const _0x141dc4=_0x5325ae;logger['info'](_0x141dc4('0x15'),_0x8c8c80),logger[_0x141dc4('0x14')]('ShowZohoAccount',_0x8c8c80,JSON[_0x141dc4('0xe')](_0x14374b)),_0x16bf9a(_0x14374b);})[_0x5325ae('0xa')](function(_0xe30a08){const _0x4c5e0d=_0x5325ae;logger[_0x4c5e0d('0xc')](_0x4c5e0d('0x15'),_0xe30a08[_0x4c5e0d('0x13')],_0x8c8c80),_0x3ced1e(_0x45f719['error'](0x1f4,_0xe30a08['message']));});});}; \ No newline at end of file +const a348_0x480b=['attributes','map','catch','limit','options','ShowZohoAccount','model','GetZohoAccount','rpc','message','where','stringify','then','ZohoAccount','error','findOne','../../config/logger','include','info','raw','debug','lodash'];(function(_0x5e327a,_0x480bbe){const _0x3e4b37=function(_0x35656f){while(--_0x35656f){_0x5e327a['push'](_0x5e327a['shift']());}};_0x3e4b37(++_0x480bbe);}(a348_0x480b,0x1b9));const a348_0x3e4b=function(_0x5e327a,_0x480bbe){_0x5e327a=_0x5e327a-0x0;let _0x3e4b37=a348_0x480b[_0x5e327a];return _0x3e4b37;};const _0x489382=a348_0x3e4b;'use strict';const _=require(_0x489382('0x14')),db=require('../../mysqldb')['db'],logger=require(_0x489382('0xf'))(_0x489382('0x7'));exports[_0x489382('0x6')]=function(_0x35656f){const _0x225579=this;return new Promise(function(_0x5d9149,_0x2926ff){const _0xeafb54=a348_0x3e4b;return db[_0xeafb54('0xc')]['findAll']({'raw':_0x35656f['options']?_0x35656f['options'][_0xeafb54('0x12')]===undefined?!![]:![]:!![],'where':_0x35656f[_0xeafb54('0x3')]?_0x35656f[_0xeafb54('0x3')][_0xeafb54('0x9')]||null:null,'attributes':_0x35656f[_0xeafb54('0x3')]?_0x35656f['options']['attributes']||null:null,'limit':_0x35656f[_0xeafb54('0x3')]?_0x35656f[_0xeafb54('0x3')][_0xeafb54('0x2')]||null:null,'include':_0x35656f[_0xeafb54('0x3')]?_0x35656f[_0xeafb54('0x3')][_0xeafb54('0x10')]?_[_0xeafb54('0x0')](_0x35656f[_0xeafb54('0x3')][_0xeafb54('0x10')],function(_0x3a3748){const _0x357142=_0xeafb54;return{'model':db[_0x3a3748[_0x357142('0x5')]],'as':_0x3a3748['as'],'attributes':_0x3a3748['attributes'],'include':_0x3a3748[_0x357142('0x10')]?_['map'](_0x3a3748[_0x357142('0x10')],function(_0xc797e8){const _0x3214a6=_0x357142;return{'model':db[_0xc797e8[_0x3214a6('0x5')]],'as':_0xc797e8['as'],'attributes':_0xc797e8[_0x3214a6('0x15')],'include':_0xc797e8[_0x3214a6('0x10')]?_['map'](_0xc797e8['include'],function(_0x529692){const _0x11615b=_0x3214a6;return{'model':db[_0x529692[_0x11615b('0x5')]],'as':_0x529692['as'],'attributes':_0x529692[_0x11615b('0x15')]};}):[]};}):[]};}):[]:[]})[_0xeafb54('0xb')](function(_0x2dbd2e){const _0x17e43a=_0xeafb54;logger['info'](_0x17e43a('0x6'),_0x35656f),logger[_0x17e43a('0x13')](_0x17e43a('0x6'),_0x35656f,JSON[_0x17e43a('0xa')](_0x2dbd2e)),_0x5d9149(_0x2dbd2e);})[_0xeafb54('0x1')](function(_0x3a4503){const _0x1e438c=_0xeafb54;logger['error'](_0x1e438c('0x6'),_0x3a4503[_0x1e438c('0x8')],_0x35656f),_0x2926ff(_0x225579[_0x1e438c('0xd')](0x1f4,_0x3a4503[_0x1e438c('0x8')]));});});},exports[_0x489382('0x4')]=function(_0x23b652){const _0x5ab4d0=this;return new Promise(function(_0x99628b,_0x2ba86b){const _0x2f7aec=a348_0x3e4b;return db[_0x2f7aec('0xc')][_0x2f7aec('0xe')]({'raw':_0x23b652[_0x2f7aec('0x3')]?_0x23b652[_0x2f7aec('0x3')]['raw']===undefined?!![]:![]:!![],'where':_0x23b652[_0x2f7aec('0x3')]?_0x23b652[_0x2f7aec('0x3')][_0x2f7aec('0x9')]||null:null,'attributes':_0x23b652['options']?_0x23b652[_0x2f7aec('0x3')]['attributes']||null:null,'include':_0x23b652['options']?_0x23b652[_0x2f7aec('0x3')][_0x2f7aec('0x10')]?_[_0x2f7aec('0x0')](_0x23b652[_0x2f7aec('0x3')][_0x2f7aec('0x10')],function(_0x5ac795){const _0x563a0c=_0x2f7aec;return{'model':db[_0x5ac795[_0x563a0c('0x5')]],'as':_0x5ac795['as'],'attributes':_0x5ac795[_0x563a0c('0x15')],'include':_0x5ac795[_0x563a0c('0x10')]?_[_0x563a0c('0x0')](_0x5ac795['include'],function(_0x4f4fdf){const _0x4cb5af=_0x563a0c;return{'model':db[_0x4f4fdf[_0x4cb5af('0x5')]],'as':_0x4f4fdf['as'],'attributes':_0x4f4fdf[_0x4cb5af('0x15')],'include':_0x4f4fdf['include']?_[_0x4cb5af('0x0')](_0x4f4fdf[_0x4cb5af('0x10')],function(_0x2698db){const _0x31c1a0=_0x4cb5af;return{'model':db[_0x2698db['model']],'as':_0x2698db['as'],'attributes':_0x2698db[_0x31c1a0('0x15')]};}):[]};}):[]};}):[]:[]})[_0x2f7aec('0xb')](function(_0x5774ad){const _0x12bf0f=_0x2f7aec;logger[_0x12bf0f('0x11')](_0x12bf0f('0x4'),_0x23b652),logger['debug'](_0x12bf0f('0x4'),_0x23b652,JSON[_0x12bf0f('0xa')](_0x5774ad)),_0x99628b(_0x5774ad);})[_0x2f7aec('0x1')](function(_0x4afe52){const _0x14d579=_0x2f7aec;logger[_0x14d579('0xd')]('ShowZohoAccount',_0x4afe52['message'],_0x23b652),_0x2ba86b(_0x5ab4d0[_0x14d579('0xd')](0x1f4,_0x4afe52['message']));});});}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/index.js b/server/api/intZohoConfiguration/index.js index a838bc8..bdbe095 100644 --- a/server/api/intZohoConfiguration/index.js +++ b/server/api/intZohoConfiguration/index.js @@ -1 +1 @@ -const a349_0xa028=['getSubjects','express','isAuthenticated','destroy','create','exports','show','update','./intZohoConfiguration.controller','getFields','getDescriptions','/:id','post','get','delete','Router'];(function(_0x40fef1,_0xa02837){const _0x3cd69c=function(_0x3cde27){while(--_0x3cde27){_0x40fef1['push'](_0x40fef1['shift']());}};_0x3cd69c(++_0xa02837);}(a349_0xa028,0x117));const a349_0x3cd6=function(_0x40fef1,_0xa02837){_0x40fef1=_0x40fef1-0x0;let _0x3cd69c=a349_0xa028[_0x40fef1];return _0x3cd69c;};const _0x81622b=a349_0x3cd6;'use strict';const express=require(_0x81622b('0xa')),router=express[_0x81622b('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x81622b('0x1'));router['get']('/',auth[_0x81622b('0xb')](),controller['index']),router[_0x81622b('0x6')]('/:id',auth[_0x81622b('0xb')](),controller[_0x81622b('0xf')]),router[_0x81622b('0x6')]('/:id/fields',auth[_0x81622b('0xb')](),controller[_0x81622b('0x2')]),router[_0x81622b('0x6')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x81622b('0x9')]),router[_0x81622b('0x6')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0x81622b('0x3')]),router[_0x81622b('0x5')]('/',auth[_0x81622b('0xb')](),controller[_0x81622b('0xd')]),router['put'](_0x81622b('0x4'),auth[_0x81622b('0xb')](),controller[_0x81622b('0x0')]),router[_0x81622b('0x7')](_0x81622b('0x4'),auth[_0x81622b('0xb')](),controller[_0x81622b('0xc')]),module[_0x81622b('0xe')]=router; \ No newline at end of file +const a349_0x1a48=['./intZohoConfiguration.controller','/:id/fields','index','delete','destroy','/:id','getSubjects','get','express','exports','/:id/descriptions','/:id/subjects','isAuthenticated','getFields','getDescriptions'];(function(_0x5330ca,_0x1a482c){const _0x3a6072=function(_0x1d7eed){while(--_0x1d7eed){_0x5330ca['push'](_0x5330ca['shift']());}};_0x3a6072(++_0x1a482c);}(a349_0x1a48,0x14d));const a349_0x3a60=function(_0x5330ca,_0x1a482c){_0x5330ca=_0x5330ca-0x0;let _0x3a6072=a349_0x1a48[_0x5330ca];return _0x3a6072;};const _0x36d46d=a349_0x3a60;'use strict';const express=require(_0x36d46d('0x5')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x36d46d('0xc'));router[_0x36d46d('0x4')]('/',auth[_0x36d46d('0x9')](),controller[_0x36d46d('0xe')]),router[_0x36d46d('0x4')](_0x36d46d('0x2'),auth[_0x36d46d('0x9')](),controller['show']),router[_0x36d46d('0x4')](_0x36d46d('0xd'),auth['isAuthenticated'](),controller[_0x36d46d('0xa')]),router[_0x36d46d('0x4')](_0x36d46d('0x8'),auth[_0x36d46d('0x9')](),controller[_0x36d46d('0x3')]),router[_0x36d46d('0x4')](_0x36d46d('0x7'),auth[_0x36d46d('0x9')](),controller[_0x36d46d('0xb')]),router['post']('/',auth[_0x36d46d('0x9')](),controller['create']),router['put'](_0x36d46d('0x2'),auth[_0x36d46d('0x9')](),controller['update']),router[_0x36d46d('0x0')](_0x36d46d('0x2'),auth[_0x36d46d('0x9')](),controller[_0x36d46d('0x1')]),module[_0x36d46d('0x6')]=router; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js index 6d85740..08dba71 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js @@ -1 +1 @@ -const a350_0x3037=['contact_lead','STRING','sequelize','contact','ENUM','lead','exports','nothing'];(function(_0x251deb,_0x30375b){const _0x56cb68=function(_0x1dc095){while(--_0x1dc095){_0x251deb['push'](_0x251deb['shift']());}};_0x56cb68(++_0x30375b);}(a350_0x3037,0x1d9));const a350_0x56cb=function(_0x251deb,_0x30375b){_0x251deb=_0x251deb-0x0;let _0x56cb68=a350_0x3037[_0x251deb];return _0x56cb68;};const _0x586e07=a350_0x56cb;'use strict';const Sequelize=require(_0x586e07('0x1'));module[_0x586e07('0x5')]={'name':{'type':Sequelize[_0x586e07('0x0')]},'moduleCreate':{'type':Sequelize[_0x586e07('0x3')](_0x586e07('0x4'),_0x586e07('0x2'),_0x586e07('0x6')),'defaultValue':_0x586e07('0x4')},'moduleSearch':{'type':Sequelize[_0x586e07('0x3')](_0x586e07('0x7'),_0x586e07('0x2'),'lead'),'defaultValue':'contact_lead'},'description':{'type':Sequelize[_0x586e07('0x0')]}}; \ No newline at end of file +const a350_0x570b=['nothing','exports','STRING','contact_lead','lead','ENUM','sequelize'];(function(_0x194857,_0x570b3e){const _0x4e0b63=function(_0x3aac7e){while(--_0x3aac7e){_0x194857['push'](_0x194857['shift']());}};_0x4e0b63(++_0x570b3e);}(a350_0x570b,0x98));const a350_0x4e0b=function(_0x194857,_0x570b3e){_0x194857=_0x194857-0x0;let _0x4e0b63=a350_0x570b[_0x194857];return _0x4e0b63;};const _0x2a8467=a350_0x4e0b;'use strict';const Sequelize=require(_0x2a8467('0x1'));module[_0x2a8467('0x3')]={'name':{'type':Sequelize['STRING']},'moduleCreate':{'type':Sequelize['ENUM'](_0x2a8467('0x6'),'contact',_0x2a8467('0x2')),'defaultValue':_0x2a8467('0x6')},'moduleSearch':{'type':Sequelize[_0x2a8467('0x0')](_0x2a8467('0x5'),'contact',_0x2a8467('0x6')),'defaultValue':_0x2a8467('0x5')},'description':{'type':Sequelize[_0x2a8467('0x4')]}}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js index 2fea790..a9974b8 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js @@ -1 +1 @@ -const a351_0xd180=['fields','end','where','count','fieldName','ZohoField','catch','create','ZohoConfiguration','map','intersection','query','like','options','findOne','limit','merge','error','stack','model','filter','length','key','params','getSubjects','getFields','keys','lodash','pick','Content-Range','update','order','api','offset','getDescriptions','type','filters','then','../../mysqldb','undefined','destroy','includeAll','json','sequelize','rawAttributes','sort','status','include','body','sendStatus','set','rows','nolimit','name','VIRTUAL','index','attributes','show'];(function(_0x4eb66f,_0xd18093){const _0x4993bc=function(_0x35ecb9){while(--_0x35ecb9){_0x4eb66f['push'](_0x4eb66f['shift']());}};_0x4993bc(++_0xd18093);}(a351_0xd180,0xef));const a351_0x4993=function(_0x4eb66f,_0xd18093){_0x4eb66f=_0x4eb66f-0x0;let _0x4993bc=a351_0xd180[_0x4eb66f];return _0x4993bc;};const _0x1e91b2=a351_0x4993;'use strict';const _=require(_0x1e91b2('0x14')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x1e91b2('0x19')),db=require(_0x1e91b2('0x1f'))['db'],{Op}=require(_0x1e91b2('0x24'));function respondWithResult(_0x35ecb9,_0x4e6dcf){return _0x4e6dcf=_0x4e6dcf||0xc8,function(_0x44377d){const _0x9c5206=a351_0x4993;if(_0x44377d)return _0x35ecb9['status'](_0x4e6dcf)[_0x9c5206('0x23')](_0x44377d);};}function respondWithFilteredResult(_0x53d21e,_0x4c1312){return function(_0x5e2b16){const _0x4ed00e=a351_0x4993;if(_0x5e2b16){const _0x11c446=_0x5e2b16[_0x4ed00e('0x36')],_0x586112=_0x4c1312[_0x4ed00e('0x1a')];let _0xdf4071=_0x4c1312['offset']+_0x4c1312['limit'],_0x2b0537;return _0xdf4071>=_0x11c446?(_0xdf4071=_0x11c446,_0x2b0537=0xc8):_0x2b0537=0xce,_0x53d21e[_0x4ed00e('0x27')](_0x2b0537),_0x53d21e[_0x4ed00e('0x2b')](_0x4ed00e('0x16'),_0x586112+'-'+_0xdf4071+'/'+_0x11c446)['json'](_0x5e2b16);}return null;};}function saveUpdates(_0x2cab4b){return function(_0x17a2b8){const _0x2886e7=a351_0x4993;if(_0x17a2b8)return _0x17a2b8[_0x2886e7('0x17')](_0x2cab4b)[_0x2886e7('0x1e')](function(_0xaa60fd){return _0xaa60fd;});return null;};}function removeEntity(_0x2b1a9a){return function(_0x6dda3b){const _0x42fdad=a351_0x4993;if(_0x6dda3b)return _0x6dda3b[_0x42fdad('0x21')]()['then'](function(){const _0x4bbcc4=_0x42fdad;_0x2b1a9a[_0x4bbcc4('0x27')](0xcc)[_0x4bbcc4('0x34')]();});};}function handleEntityNotFound(_0xc08c0f){return function(_0x196b7d){const _0x2e68a9=a351_0x4993;return!_0x196b7d&&_0xc08c0f[_0x2e68a9('0x2a')](0x194),_0x196b7d;};}function handleError(_0x22cad5,_0x44bb0d){return _0x44bb0d=_0x44bb0d||0x1f4,function(_0xf1bad0){const _0x5a609d=a351_0x4993;logger[_0x5a609d('0xa')](_0xf1bad0[_0x5a609d('0xb')]),_0xf1bad0['name']&&delete _0xf1bad0['name'],_0x22cad5[_0x5a609d('0x27')](_0x44bb0d)['send'](_0xf1bad0);};}exports[_0x1e91b2('0x30')]=function(_0x2fe4c4,_0x24794a){const _0x7ec826=_0x1e91b2;let _0x2df926={};const _0x5d1153={},_0x174cc5={'count':0x0,'rows':[]},_0xb4e643=_[_0x7ec826('0x2')](db['ZohoConfiguration'][_0x7ec826('0x25')],function(_0x2a2eb9){const _0x2c29ff=_0x7ec826;return{'name':_0x2a2eb9[_0x2c29ff('0x37')],'type':_0x2a2eb9['type'][_0x2c29ff('0xf')]};});_0x5d1153[_0x7ec826('0xc')]=_[_0x7ec826('0x2')](_0xb4e643,_0x7ec826('0x2e')),_0x5d1153[_0x7ec826('0x4')]=_[_0x7ec826('0x13')](_0x2fe4c4[_0x7ec826('0x4')]),_0x5d1153[_0x7ec826('0x1d')]=_[_0x7ec826('0x3')](_0x5d1153[_0x7ec826('0xc')],_0x5d1153['query']),_0x2df926[_0x7ec826('0x31')]=_['intersection'](_0x5d1153['model'],qs[_0x7ec826('0x33')](_0x2fe4c4[_0x7ec826('0x4')][_0x7ec826('0x33')])),_0x2df926['attributes']=_0x2df926[_0x7ec826('0x31')]['length']?_0x2df926['attributes']:_0x5d1153['model'];typeof _0x2fe4c4['query'][_0x7ec826('0x2d')]===_0x7ec826('0x20')&&(_0x2df926[_0x7ec826('0x8')]=qs['limit'](_0x2fe4c4[_0x7ec826('0x4')][_0x7ec826('0x8')]),_0x2df926[_0x7ec826('0x1a')]=qs[_0x7ec826('0x1a')](_0x2fe4c4[_0x7ec826('0x4')][_0x7ec826('0x1a')]));_0x2df926['order']=qs['sort'](_0x2fe4c4['query'][_0x7ec826('0x26')]),_0x2df926[_0x7ec826('0x35')]=qs['filters'](_[_0x7ec826('0x15')](_0x2fe4c4[_0x7ec826('0x4')],_0x5d1153[_0x7ec826('0x1d')]),_0xb4e643);_0x2fe4c4['query'][_0x7ec826('0xd')]&&(_0x2df926['where']=_[_0x7ec826('0x9')](_0x2df926[_0x7ec826('0x35')],{[Op['or']]:_[_0x7ec826('0x2')](_0xb4e643,function(_0x4c1c87){const _0x204817=_0x7ec826;if(_0x4c1c87[_0x204817('0x1c')]!==_0x204817('0x2f')){const _0x26417c={};return _0x26417c[_0x4c1c87[_0x204817('0x2e')]]={[Op[_0x204817('0x5')]]:'%'+_0x2fe4c4[_0x204817('0x4')]['filter']+'%'},_0x26417c;}})}));_0x2df926=_[_0x7ec826('0x9')]({},_0x2df926,_0x2fe4c4[_0x7ec826('0x6')]);const _0x30dae6={'where':_0x2df926[_0x7ec826('0x35')]};return db['ZohoConfiguration'][_0x7ec826('0x36')](_0x30dae6)[_0x7ec826('0x1e')](function(_0x5b4c6e){const _0x5cf873=_0x7ec826;return _0x174cc5['count']=_0x5b4c6e,_0x2fe4c4[_0x5cf873('0x4')][_0x5cf873('0x22')]&&(_0x2df926[_0x5cf873('0x28')]=[{'all':!![]}]),db[_0x5cf873('0x1')]['findAll'](_0x2df926);})[_0x7ec826('0x1e')](function(_0x40914a){const _0x29b19a=_0x7ec826;return _0x174cc5[_0x29b19a('0x2c')]=_0x40914a,_0x174cc5;})[_0x7ec826('0x1e')](respondWithFilteredResult(_0x24794a,_0x2df926))['catch'](handleError(_0x24794a,null));},exports[_0x1e91b2('0x32')]=function(_0x8783a3,_0xf9696c){const _0x5e2043=_0x1e91b2;let _0x2336ee={'raw':![],'where':{'id':_0x8783a3[_0x5e2043('0x10')]['id']}};const _0x55bf7a={};return _0x55bf7a['model']=_[_0x5e2043('0x13')](db[_0x5e2043('0x1')]['rawAttributes']),_0x55bf7a[_0x5e2043('0x4')]=_['keys'](_0x8783a3[_0x5e2043('0x4')]),_0x55bf7a[_0x5e2043('0x1d')]=_[_0x5e2043('0x3')](_0x55bf7a[_0x5e2043('0xc')],_0x55bf7a[_0x5e2043('0x4')]),_0x2336ee[_0x5e2043('0x31')]=_[_0x5e2043('0x3')](_0x55bf7a[_0x5e2043('0xc')],qs[_0x5e2043('0x33')](_0x8783a3['query']['fields'])),_0x2336ee['attributes']=_0x2336ee[_0x5e2043('0x31')][_0x5e2043('0xe')]?_0x2336ee[_0x5e2043('0x31')]:_0x55bf7a[_0x5e2043('0xc')],_0x8783a3[_0x5e2043('0x4')][_0x5e2043('0x22')]&&(_0x2336ee[_0x5e2043('0x28')]=[{'all':!![]}]),_0x2336ee=_[_0x5e2043('0x9')]({},_0x2336ee,_0x8783a3[_0x5e2043('0x6')]),db[_0x5e2043('0x1')][_0x5e2043('0x7')](_0x2336ee)['then'](handleEntityNotFound(_0xf9696c,null))[_0x5e2043('0x1e')](respondWithResult(_0xf9696c,null))[_0x5e2043('0x39')](handleError(_0xf9696c,null));},exports['create']=function(_0x30b004,_0x5e72b0){const _0x1604b6=_0x1e91b2;return db[_0x1604b6('0x1')][_0x1604b6('0x0')](_0x30b004[_0x1604b6('0x29')],{})['then'](respondWithResult(_0x5e72b0,0xc9))['catch'](handleError(_0x5e72b0,null));},exports[_0x1e91b2('0x17')]=function(_0x23ec93,_0xe6a766){const _0x20b6cd=_0x1e91b2;return _0x23ec93['body']['id']&&delete _0x23ec93[_0x20b6cd('0x29')]['id'],db['ZohoConfiguration'][_0x20b6cd('0x7')]({'where':{'id':_0x23ec93['params']['id']}})[_0x20b6cd('0x1e')](handleEntityNotFound(_0xe6a766,null))[_0x20b6cd('0x1e')](saveUpdates(_0x23ec93[_0x20b6cd('0x29')],null))[_0x20b6cd('0x1e')](respondWithResult(_0xe6a766,null))[_0x20b6cd('0x39')](handleError(_0xe6a766,null));},exports[_0x1e91b2('0x21')]=function(_0x3b0b88,_0x44f81e){const _0x1f48c4=_0x1e91b2;return db[_0x1f48c4('0x1')][_0x1f48c4('0x7')]({'where':{'id':_0x3b0b88[_0x1f48c4('0x10')]['id']}})[_0x1f48c4('0x1e')](handleEntityNotFound(_0x44f81e,null))[_0x1f48c4('0x1e')](removeEntity(_0x44f81e,null))[_0x1f48c4('0x39')](handleError(_0x44f81e,null));},exports['getFields']=function(_0x4db1cb,_0x5e9105){const _0xffc467=_0x1e91b2;let _0x9fa18c={};const _0x36265d={};let _0x30d0e0,_0x2665f6;return db[_0xffc467('0x1')][_0xffc467('0x7')]({'where':{'id':_0x4db1cb[_0xffc467('0x10')]['id']}})[_0xffc467('0x1e')](handleEntityNotFound(_0x5e9105,null))[_0xffc467('0x1e')](function(_0x21fea9){const _0x4927d1=_0xffc467;if(_0x21fea9)return _0x30d0e0=_0x21fea9,_0x36265d['model']=_['keys'](db[_0x4927d1('0x38')]['rawAttributes']),_0x36265d[_0x4927d1('0x4')]=_[_0x4927d1('0x13')](_0x4db1cb[_0x4927d1('0x4')]),_0x36265d[_0x4927d1('0x1d')]=_[_0x4927d1('0x3')](_0x36265d['model'],_0x36265d[_0x4927d1('0x4')]),_0x9fa18c[_0x4927d1('0x31')]=_[_0x4927d1('0x3')](_0x36265d[_0x4927d1('0xc')],qs[_0x4927d1('0x33')](_0x4db1cb[_0x4927d1('0x4')]['fields'])),_0x9fa18c[_0x4927d1('0x31')]=_0x9fa18c['attributes']['length']?_0x9fa18c[_0x4927d1('0x31')]:_0x36265d[_0x4927d1('0xc')],_0x9fa18c[_0x4927d1('0x18')]=qs[_0x4927d1('0x26')](_0x4db1cb[_0x4927d1('0x4')][_0x4927d1('0x26')]),_0x9fa18c[_0x4927d1('0x35')]=qs[_0x4927d1('0x1d')](_[_0x4927d1('0x15')](_0x4db1cb[_0x4927d1('0x4')],_0x36265d[_0x4927d1('0x1d')])),_0x4db1cb[_0x4927d1('0x4')]['filter']&&(_0x9fa18c[_0x4927d1('0x35')]=_['merge'](_0x9fa18c[_0x4927d1('0x35')],{[Op['or']]:_['map'](_0x9fa18c['attributes'],function(_0x3c8111){const _0x2f0c51=_0x4927d1,_0x3aab43={};return _0x3aab43[_0x3c8111]={[Op['like']]:'%'+_0x4db1cb[_0x2f0c51('0x4')]['filter']+'%'},_0x3aab43;})})),_0x9fa18c=_['merge']({},_0x9fa18c,_0x4db1cb[_0x4927d1('0x6')]),_0x30d0e0[_0x4927d1('0x12')](_0x9fa18c);})[_0xffc467('0x1e')](function(_0x2bd46d){const _0x338ae8=_0xffc467;if(_0x2bd46d)return _0x2665f6=_0x2bd46d[_0x338ae8('0xe')],typeof _0x4db1cb['query']['nolimit']===_0x338ae8('0x20')&&(_0x9fa18c[_0x338ae8('0x8')]=qs['limit'](_0x4db1cb[_0x338ae8('0x4')]['limit']),_0x9fa18c['offset']=qs['offset'](_0x4db1cb[_0x338ae8('0x4')]['offset'])),_0x30d0e0[_0x338ae8('0x12')](_0x9fa18c);})[_0xffc467('0x1e')](function(_0x3ba472){if(_0x3ba472)return _0x3ba472?{'count':_0x2665f6,'rows':_0x3ba472}:null;})[_0xffc467('0x1e')](respondWithResult(_0x5e9105,null))[_0xffc467('0x39')](handleError(_0x5e9105,null));},exports[_0x1e91b2('0x11')]=function(_0x553964,_0x7139ff){const _0x4148d9=_0x1e91b2;let _0x2409be={};const _0x1e1c60={};let _0xa1729a,_0x74672b;return db['ZohoConfiguration']['findOne']({'where':{'id':_0x553964[_0x4148d9('0x10')]['id']}})['then'](handleEntityNotFound(_0x7139ff,null))[_0x4148d9('0x1e')](function(_0x14738f){const _0xb8c4cc=_0x4148d9;if(_0x14738f)return _0xa1729a=_0x14738f,_0x1e1c60[_0xb8c4cc('0xc')]=_[_0xb8c4cc('0x13')](db['ZohoField']['rawAttributes']),_0x1e1c60[_0xb8c4cc('0x4')]=_[_0xb8c4cc('0x13')](_0x553964[_0xb8c4cc('0x4')]),_0x1e1c60[_0xb8c4cc('0x1d')]=_[_0xb8c4cc('0x3')](_0x1e1c60[_0xb8c4cc('0xc')],_0x1e1c60[_0xb8c4cc('0x4')]),_0x2409be['attributes']=_['intersection'](_0x1e1c60[_0xb8c4cc('0xc')],qs[_0xb8c4cc('0x33')](_0x553964[_0xb8c4cc('0x4')][_0xb8c4cc('0x33')])),_0x2409be['attributes']=_0x2409be[_0xb8c4cc('0x31')][_0xb8c4cc('0xe')]?_0x2409be[_0xb8c4cc('0x31')]:_0x1e1c60[_0xb8c4cc('0xc')],_0x2409be[_0xb8c4cc('0x18')]=qs['sort'](_0x553964[_0xb8c4cc('0x4')]['sort']),_0x2409be[_0xb8c4cc('0x35')]=qs[_0xb8c4cc('0x1d')](_['pick'](_0x553964[_0xb8c4cc('0x4')],_0x1e1c60['filters'])),_0x553964[_0xb8c4cc('0x4')]['filter']&&(_0x2409be[_0xb8c4cc('0x35')]=_[_0xb8c4cc('0x9')](_0x2409be['where'],{[Op['or']]:_['map'](_0x2409be['attributes'],function(_0x34cce7){const _0x469811=_0xb8c4cc,_0x26207a={};return _0x26207a[_0x34cce7]={[Op[_0x469811('0x5')]]:'%'+_0x553964[_0x469811('0x4')][_0x469811('0xd')]+'%'},_0x26207a;})})),_0x2409be=_['merge']({},_0x2409be,_0x553964[_0xb8c4cc('0x6')]),_0xa1729a[_0xb8c4cc('0x11')](_0x2409be);})[_0x4148d9('0x1e')](function(_0x2cbdc8){const _0xd7b88=_0x4148d9;if(_0x2cbdc8)return _0x74672b=_0x2cbdc8[_0xd7b88('0xe')],typeof _0x553964[_0xd7b88('0x4')][_0xd7b88('0x2d')]===_0xd7b88('0x20')&&(_0x2409be[_0xd7b88('0x8')]=qs[_0xd7b88('0x8')](_0x553964[_0xd7b88('0x4')]['limit']),_0x2409be[_0xd7b88('0x1a')]=qs[_0xd7b88('0x1a')](_0x553964[_0xd7b88('0x4')][_0xd7b88('0x1a')])),_0xa1729a['getSubjects'](_0x2409be);})[_0x4148d9('0x1e')](function(_0x43f59f){if(_0x43f59f)return _0x43f59f?{'count':_0x74672b,'rows':_0x43f59f}:null;})[_0x4148d9('0x1e')](respondWithResult(_0x7139ff,null))[_0x4148d9('0x39')](handleError(_0x7139ff,null));},exports[_0x1e91b2('0x1b')]=function(_0x2dd8cd,_0x3a8e01){const _0x2db9c1=_0x1e91b2;let _0x57677b={};const _0x1782a0={};let _0x327603,_0x190bd3;return db['ZohoConfiguration']['findOne']({'where':{'id':_0x2dd8cd[_0x2db9c1('0x10')]['id']}})[_0x2db9c1('0x1e')](handleEntityNotFound(_0x3a8e01,null))[_0x2db9c1('0x1e')](function(_0x1a6ca7){const _0x2763c1=_0x2db9c1;if(_0x1a6ca7)return _0x327603=_0x1a6ca7,_0x1782a0[_0x2763c1('0xc')]=_[_0x2763c1('0x13')](db[_0x2763c1('0x38')][_0x2763c1('0x25')]),_0x1782a0['query']=_[_0x2763c1('0x13')](_0x2dd8cd[_0x2763c1('0x4')]),_0x1782a0['filters']=_[_0x2763c1('0x3')](_0x1782a0[_0x2763c1('0xc')],_0x1782a0[_0x2763c1('0x4')]),_0x57677b['attributes']=_[_0x2763c1('0x3')](_0x1782a0[_0x2763c1('0xc')],qs['fields'](_0x2dd8cd[_0x2763c1('0x4')][_0x2763c1('0x33')])),_0x57677b[_0x2763c1('0x31')]=_0x57677b[_0x2763c1('0x31')]['length']?_0x57677b[_0x2763c1('0x31')]:_0x1782a0['model'],_0x57677b[_0x2763c1('0x18')]=qs[_0x2763c1('0x26')](_0x2dd8cd[_0x2763c1('0x4')]['sort']),_0x57677b['where']=qs['filters'](_[_0x2763c1('0x15')](_0x2dd8cd['query'],_0x1782a0[_0x2763c1('0x1d')])),_0x2dd8cd[_0x2763c1('0x4')]['filter']&&(_0x57677b[_0x2763c1('0x35')]=_['merge'](_0x57677b['where'],{[Op['or']]:_[_0x2763c1('0x2')](_0x57677b[_0x2763c1('0x31')],function(_0x58e6e4){const _0x467ece=_0x2763c1,_0x5b3542={};return _0x5b3542[_0x58e6e4]={[Op[_0x467ece('0x5')]]:'%'+_0x2dd8cd[_0x467ece('0x4')][_0x467ece('0xd')]+'%'},_0x5b3542;})})),_0x57677b=_[_0x2763c1('0x9')]({},_0x57677b,_0x2dd8cd[_0x2763c1('0x6')]),_0x327603['getDescriptions'](_0x57677b);})[_0x2db9c1('0x1e')](function(_0x109ea2){const _0x25c8ab=_0x2db9c1;if(_0x109ea2)return _0x190bd3=_0x109ea2[_0x25c8ab('0xe')],typeof _0x2dd8cd[_0x25c8ab('0x4')][_0x25c8ab('0x2d')]==='undefined'&&(_0x57677b[_0x25c8ab('0x8')]=qs[_0x25c8ab('0x8')](_0x2dd8cd['query'][_0x25c8ab('0x8')]),_0x57677b[_0x25c8ab('0x1a')]=qs[_0x25c8ab('0x1a')](_0x2dd8cd[_0x25c8ab('0x4')][_0x25c8ab('0x1a')])),_0x327603[_0x25c8ab('0x1b')](_0x57677b);})[_0x2db9c1('0x1e')](function(_0x5d7841){if(_0x5d7841)return _0x5d7841?{'count':_0x190bd3,'rows':_0x5d7841}:null;})[_0x2db9c1('0x1e')](respondWithResult(_0x3a8e01,null))[_0x2db9c1('0x39')](handleError(_0x3a8e01,null));}; \ No newline at end of file +const a351_0x1207=['findOne','where','json','undefined','getFields','filters','merge','offset','pick','sequelize','status','error','set','update','getDescriptions','limit','stack','attributes','lodash','model','fields','sort','ZohoField','map','getSubjects','create','rawAttributes','order','ZohoConfiguration','nolimit','body','../../config/logger','destroy','options','intersection','includeAll','rows','name','length','type','like','sendStatus','../../components/parsers/qs','show','count','send','key','VIRTUAL','catch','query','fieldName','params','keys','findAll','then','filter'];(function(_0x4a66c6,_0x1207ca){const _0x27cefd=function(_0x34e3a0){while(--_0x34e3a0){_0x4a66c6['push'](_0x4a66c6['shift']());}};_0x27cefd(++_0x1207ca);}(a351_0x1207,0xf5));const a351_0x27ce=function(_0x4a66c6,_0x1207ca){_0x4a66c6=_0x4a66c6-0x0;let _0x27cefd=a351_0x1207[_0x4a66c6];return _0x27cefd;};const _0x6721a7=a351_0x27ce;'use strict';const _=require(_0x6721a7('0x35')),qs=require(_0x6721a7('0x15')),logger=require(_0x6721a7('0xa'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x6721a7('0x2c'));function respondWithResult(_0x34e3a0,_0x133924){return _0x133924=_0x133924||0xc8,function(_0x20d178){const _0x36ea54=a351_0x27ce;if(_0x20d178)return _0x34e3a0[_0x36ea54('0x2d')](_0x133924)[_0x36ea54('0x25')](_0x20d178);};}function respondWithFilteredResult(_0x26f8ea,_0x20339f){return function(_0x3f9a04){const _0x533bd7=a351_0x27ce;if(_0x3f9a04){const _0x3538b7=_0x3f9a04['count'],_0x5a76da=_0x20339f[_0x533bd7('0x2a')];let _0x4e6b7d=_0x20339f[_0x533bd7('0x2a')]+_0x20339f['limit'],_0x32bc61;return _0x4e6b7d>=_0x3538b7?(_0x4e6b7d=_0x3538b7,_0x32bc61=0xc8):_0x32bc61=0xce,_0x26f8ea[_0x533bd7('0x2d')](_0x32bc61),_0x26f8ea[_0x533bd7('0x2f')]('Content-Range',_0x5a76da+'-'+_0x4e6b7d+'/'+_0x3538b7)['json'](_0x3f9a04);}return null;};}function saveUpdates(_0x10d4a9){return function(_0x5dc953){const _0x2026f4=a351_0x27ce;if(_0x5dc953)return _0x5dc953[_0x2026f4('0x30')](_0x10d4a9)[_0x2026f4('0x21')](function(_0x5a2102){return _0x5a2102;});return null;};}function removeEntity(_0x3140b4){return function(_0x1f078c){const _0x4153ac=a351_0x27ce;if(_0x1f078c)return _0x1f078c[_0x4153ac('0xb')]()['then'](function(){const _0xebdd36=_0x4153ac;_0x3140b4[_0xebdd36('0x2d')](0xcc)['end']();});};}function handleEntityNotFound(_0x327253){return function(_0x5d70b0){const _0x12e935=a351_0x27ce;return!_0x5d70b0&&_0x327253[_0x12e935('0x14')](0x194),_0x5d70b0;};}function handleError(_0x1c970b,_0xef1cc5){return _0xef1cc5=_0xef1cc5||0x1f4,function(_0x29d073){const _0x13a80b=a351_0x27ce;logger[_0x13a80b('0x2e')](_0x29d073[_0x13a80b('0x33')]),_0x29d073[_0x13a80b('0x10')]&&delete _0x29d073[_0x13a80b('0x10')],_0x1c970b[_0x13a80b('0x2d')](_0xef1cc5)[_0x13a80b('0x18')](_0x29d073);};}exports['index']=function(_0x50eece,_0x5c6f46){const _0x31ab19=_0x6721a7;let _0x2de452={};const _0x19b376={},_0x5009c6={'count':0x0,'rows':[]},_0x1f65c7=_[_0x31ab19('0x2')](db[_0x31ab19('0x7')][_0x31ab19('0x5')],function(_0x3fa746){const _0x5abfce=_0x31ab19;return{'name':_0x3fa746[_0x5abfce('0x1d')],'type':_0x3fa746[_0x5abfce('0x12')][_0x5abfce('0x19')]};});_0x19b376[_0x31ab19('0x36')]=_['map'](_0x1f65c7,_0x31ab19('0x10')),_0x19b376['query']=_['keys'](_0x50eece[_0x31ab19('0x1c')]),_0x19b376[_0x31ab19('0x28')]=_[_0x31ab19('0xd')](_0x19b376[_0x31ab19('0x36')],_0x19b376[_0x31ab19('0x1c')]),_0x2de452[_0x31ab19('0x34')]=_[_0x31ab19('0xd')](_0x19b376[_0x31ab19('0x36')],qs[_0x31ab19('0x37')](_0x50eece[_0x31ab19('0x1c')][_0x31ab19('0x37')])),_0x2de452['attributes']=_0x2de452[_0x31ab19('0x34')][_0x31ab19('0x11')]?_0x2de452[_0x31ab19('0x34')]:_0x19b376[_0x31ab19('0x36')];typeof _0x50eece[_0x31ab19('0x1c')][_0x31ab19('0x8')]===_0x31ab19('0x26')&&(_0x2de452[_0x31ab19('0x32')]=qs['limit'](_0x50eece['query']['limit']),_0x2de452['offset']=qs[_0x31ab19('0x2a')](_0x50eece[_0x31ab19('0x1c')]['offset']));_0x2de452[_0x31ab19('0x6')]=qs['sort'](_0x50eece[_0x31ab19('0x1c')][_0x31ab19('0x0')]),_0x2de452['where']=qs[_0x31ab19('0x28')](_[_0x31ab19('0x2b')](_0x50eece[_0x31ab19('0x1c')],_0x19b376[_0x31ab19('0x28')]),_0x1f65c7);_0x50eece[_0x31ab19('0x1c')][_0x31ab19('0x22')]&&(_0x2de452[_0x31ab19('0x24')]=_[_0x31ab19('0x29')](_0x2de452[_0x31ab19('0x24')],{[Op['or']]:_[_0x31ab19('0x2')](_0x1f65c7,function(_0x546f6a){const _0x431cfd=_0x31ab19;if(_0x546f6a[_0x431cfd('0x12')]!==_0x431cfd('0x1a')){const _0x295dee={};return _0x295dee[_0x546f6a[_0x431cfd('0x10')]]={[Op[_0x431cfd('0x13')]]:'%'+_0x50eece['query']['filter']+'%'},_0x295dee;}})}));_0x2de452=_['merge']({},_0x2de452,_0x50eece[_0x31ab19('0xc')]);const _0x4282d3={'where':_0x2de452[_0x31ab19('0x24')]};return db[_0x31ab19('0x7')]['count'](_0x4282d3)[_0x31ab19('0x21')](function(_0x551563){const _0x5eefa6=_0x31ab19;return _0x5009c6[_0x5eefa6('0x17')]=_0x551563,_0x50eece[_0x5eefa6('0x1c')]['includeAll']&&(_0x2de452['include']=[{'all':!![]}]),db[_0x5eefa6('0x7')][_0x5eefa6('0x20')](_0x2de452);})[_0x31ab19('0x21')](function(_0x5882ee){const _0x2af88c=_0x31ab19;return _0x5009c6[_0x2af88c('0xf')]=_0x5882ee,_0x5009c6;})[_0x31ab19('0x21')](respondWithFilteredResult(_0x5c6f46,_0x2de452))[_0x31ab19('0x1b')](handleError(_0x5c6f46,null));},exports[_0x6721a7('0x16')]=function(_0x4e0592,_0x115c4b){const _0x104671=_0x6721a7;let _0x77b695={'raw':![],'where':{'id':_0x4e0592[_0x104671('0x1e')]['id']}};const _0x1ac5c0={};return _0x1ac5c0['model']=_[_0x104671('0x1f')](db[_0x104671('0x7')][_0x104671('0x5')]),_0x1ac5c0[_0x104671('0x1c')]=_['keys'](_0x4e0592[_0x104671('0x1c')]),_0x1ac5c0[_0x104671('0x28')]=_[_0x104671('0xd')](_0x1ac5c0[_0x104671('0x36')],_0x1ac5c0[_0x104671('0x1c')]),_0x77b695['attributes']=_[_0x104671('0xd')](_0x1ac5c0[_0x104671('0x36')],qs[_0x104671('0x37')](_0x4e0592[_0x104671('0x1c')][_0x104671('0x37')])),_0x77b695[_0x104671('0x34')]=_0x77b695[_0x104671('0x34')][_0x104671('0x11')]?_0x77b695[_0x104671('0x34')]:_0x1ac5c0['model'],_0x4e0592[_0x104671('0x1c')][_0x104671('0xe')]&&(_0x77b695['include']=[{'all':!![]}]),_0x77b695=_['merge']({},_0x77b695,_0x4e0592[_0x104671('0xc')]),db[_0x104671('0x7')][_0x104671('0x23')](_0x77b695)[_0x104671('0x21')](handleEntityNotFound(_0x115c4b,null))[_0x104671('0x21')](respondWithResult(_0x115c4b,null))[_0x104671('0x1b')](handleError(_0x115c4b,null));},exports[_0x6721a7('0x4')]=function(_0x288429,_0xdd5d2c){const _0x50e1de=_0x6721a7;return db[_0x50e1de('0x7')]['create'](_0x288429['body'],{})['then'](respondWithResult(_0xdd5d2c,0xc9))['catch'](handleError(_0xdd5d2c,null));},exports[_0x6721a7('0x30')]=function(_0x3dffc8,_0x19960b){const _0x5e9f21=_0x6721a7;return _0x3dffc8[_0x5e9f21('0x9')]['id']&&delete _0x3dffc8['body']['id'],db[_0x5e9f21('0x7')][_0x5e9f21('0x23')]({'where':{'id':_0x3dffc8[_0x5e9f21('0x1e')]['id']}})[_0x5e9f21('0x21')](handleEntityNotFound(_0x19960b,null))[_0x5e9f21('0x21')](saveUpdates(_0x3dffc8[_0x5e9f21('0x9')],null))['then'](respondWithResult(_0x19960b,null))[_0x5e9f21('0x1b')](handleError(_0x19960b,null));},exports[_0x6721a7('0xb')]=function(_0x3d880e,_0x4a21f9){const _0x741f9e=_0x6721a7;return db[_0x741f9e('0x7')][_0x741f9e('0x23')]({'where':{'id':_0x3d880e[_0x741f9e('0x1e')]['id']}})['then'](handleEntityNotFound(_0x4a21f9,null))[_0x741f9e('0x21')](removeEntity(_0x4a21f9,null))['catch'](handleError(_0x4a21f9,null));},exports[_0x6721a7('0x27')]=function(_0x23f50a,_0x10a658){const _0x22eec8=_0x6721a7;let _0x5f0cff={};const _0x1e065f={};let _0x2711a4,_0x3fd1b2;return db['ZohoConfiguration'][_0x22eec8('0x23')]({'where':{'id':_0x23f50a[_0x22eec8('0x1e')]['id']}})['then'](handleEntityNotFound(_0x10a658,null))[_0x22eec8('0x21')](function(_0x3bf387){const _0x5560c8=_0x22eec8;if(_0x3bf387)return _0x2711a4=_0x3bf387,_0x1e065f[_0x5560c8('0x36')]=_[_0x5560c8('0x1f')](db[_0x5560c8('0x1')][_0x5560c8('0x5')]),_0x1e065f[_0x5560c8('0x1c')]=_[_0x5560c8('0x1f')](_0x23f50a[_0x5560c8('0x1c')]),_0x1e065f[_0x5560c8('0x28')]=_[_0x5560c8('0xd')](_0x1e065f[_0x5560c8('0x36')],_0x1e065f[_0x5560c8('0x1c')]),_0x5f0cff[_0x5560c8('0x34')]=_['intersection'](_0x1e065f[_0x5560c8('0x36')],qs[_0x5560c8('0x37')](_0x23f50a[_0x5560c8('0x1c')][_0x5560c8('0x37')])),_0x5f0cff[_0x5560c8('0x34')]=_0x5f0cff['attributes'][_0x5560c8('0x11')]?_0x5f0cff['attributes']:_0x1e065f[_0x5560c8('0x36')],_0x5f0cff[_0x5560c8('0x6')]=qs[_0x5560c8('0x0')](_0x23f50a[_0x5560c8('0x1c')][_0x5560c8('0x0')]),_0x5f0cff[_0x5560c8('0x24')]=qs[_0x5560c8('0x28')](_[_0x5560c8('0x2b')](_0x23f50a['query'],_0x1e065f[_0x5560c8('0x28')])),_0x23f50a[_0x5560c8('0x1c')][_0x5560c8('0x22')]&&(_0x5f0cff[_0x5560c8('0x24')]=_['merge'](_0x5f0cff[_0x5560c8('0x24')],{[Op['or']]:_[_0x5560c8('0x2')](_0x5f0cff[_0x5560c8('0x34')],function(_0x4df632){const _0x94847a=_0x5560c8,_0x381329={};return _0x381329[_0x4df632]={[Op[_0x94847a('0x13')]]:'%'+_0x23f50a[_0x94847a('0x1c')][_0x94847a('0x22')]+'%'},_0x381329;})})),_0x5f0cff=_['merge']({},_0x5f0cff,_0x23f50a[_0x5560c8('0xc')]),_0x2711a4[_0x5560c8('0x27')](_0x5f0cff);})[_0x22eec8('0x21')](function(_0x27db9d){const _0x3d7ce7=_0x22eec8;if(_0x27db9d)return _0x3fd1b2=_0x27db9d[_0x3d7ce7('0x11')],typeof _0x23f50a[_0x3d7ce7('0x1c')][_0x3d7ce7('0x8')]===_0x3d7ce7('0x26')&&(_0x5f0cff[_0x3d7ce7('0x32')]=qs[_0x3d7ce7('0x32')](_0x23f50a[_0x3d7ce7('0x1c')]['limit']),_0x5f0cff[_0x3d7ce7('0x2a')]=qs['offset'](_0x23f50a[_0x3d7ce7('0x1c')][_0x3d7ce7('0x2a')])),_0x2711a4[_0x3d7ce7('0x27')](_0x5f0cff);})[_0x22eec8('0x21')](function(_0x5c2ef1){if(_0x5c2ef1)return _0x5c2ef1?{'count':_0x3fd1b2,'rows':_0x5c2ef1}:null;})[_0x22eec8('0x21')](respondWithResult(_0x10a658,null))[_0x22eec8('0x1b')](handleError(_0x10a658,null));},exports[_0x6721a7('0x3')]=function(_0x5a0d94,_0x2cd219){const _0x546982=_0x6721a7;let _0x5c8e32={};const _0x3c1587={};let _0x19b986,_0x55d823;return db[_0x546982('0x7')][_0x546982('0x23')]({'where':{'id':_0x5a0d94['params']['id']}})['then'](handleEntityNotFound(_0x2cd219,null))[_0x546982('0x21')](function(_0x48922a){const _0x2dd5de=_0x546982;if(_0x48922a)return _0x19b986=_0x48922a,_0x3c1587[_0x2dd5de('0x36')]=_[_0x2dd5de('0x1f')](db[_0x2dd5de('0x1')][_0x2dd5de('0x5')]),_0x3c1587[_0x2dd5de('0x1c')]=_['keys'](_0x5a0d94[_0x2dd5de('0x1c')]),_0x3c1587[_0x2dd5de('0x28')]=_[_0x2dd5de('0xd')](_0x3c1587[_0x2dd5de('0x36')],_0x3c1587[_0x2dd5de('0x1c')]),_0x5c8e32[_0x2dd5de('0x34')]=_[_0x2dd5de('0xd')](_0x3c1587[_0x2dd5de('0x36')],qs[_0x2dd5de('0x37')](_0x5a0d94[_0x2dd5de('0x1c')][_0x2dd5de('0x37')])),_0x5c8e32[_0x2dd5de('0x34')]=_0x5c8e32[_0x2dd5de('0x34')]['length']?_0x5c8e32['attributes']:_0x3c1587[_0x2dd5de('0x36')],_0x5c8e32[_0x2dd5de('0x6')]=qs['sort'](_0x5a0d94[_0x2dd5de('0x1c')]['sort']),_0x5c8e32[_0x2dd5de('0x24')]=qs[_0x2dd5de('0x28')](_[_0x2dd5de('0x2b')](_0x5a0d94[_0x2dd5de('0x1c')],_0x3c1587[_0x2dd5de('0x28')])),_0x5a0d94['query']['filter']&&(_0x5c8e32[_0x2dd5de('0x24')]=_[_0x2dd5de('0x29')](_0x5c8e32[_0x2dd5de('0x24')],{[Op['or']]:_[_0x2dd5de('0x2')](_0x5c8e32[_0x2dd5de('0x34')],function(_0x940704){const _0x47c2a5=_0x2dd5de,_0x3317f3={};return _0x3317f3[_0x940704]={[Op[_0x47c2a5('0x13')]]:'%'+_0x5a0d94['query'][_0x47c2a5('0x22')]+'%'},_0x3317f3;})})),_0x5c8e32=_[_0x2dd5de('0x29')]({},_0x5c8e32,_0x5a0d94[_0x2dd5de('0xc')]),_0x19b986[_0x2dd5de('0x3')](_0x5c8e32);})[_0x546982('0x21')](function(_0x29bde3){const _0x79ffc5=_0x546982;if(_0x29bde3)return _0x55d823=_0x29bde3[_0x79ffc5('0x11')],typeof _0x5a0d94[_0x79ffc5('0x1c')]['nolimit']===_0x79ffc5('0x26')&&(_0x5c8e32[_0x79ffc5('0x32')]=qs[_0x79ffc5('0x32')](_0x5a0d94[_0x79ffc5('0x1c')][_0x79ffc5('0x32')]),_0x5c8e32[_0x79ffc5('0x2a')]=qs[_0x79ffc5('0x2a')](_0x5a0d94[_0x79ffc5('0x1c')][_0x79ffc5('0x2a')])),_0x19b986[_0x79ffc5('0x3')](_0x5c8e32);})[_0x546982('0x21')](function(_0x22cb06){if(_0x22cb06)return _0x22cb06?{'count':_0x55d823,'rows':_0x22cb06}:null;})[_0x546982('0x21')](respondWithResult(_0x2cd219,null))['catch'](handleError(_0x2cd219,null));},exports[_0x6721a7('0x31')]=function(_0x5a8fa2,_0x41048c){const _0x95a82=_0x6721a7;let _0x27735d={};const _0x128b7f={};let _0x2580e6,_0x303199;return db[_0x95a82('0x7')][_0x95a82('0x23')]({'where':{'id':_0x5a8fa2[_0x95a82('0x1e')]['id']}})['then'](handleEntityNotFound(_0x41048c,null))[_0x95a82('0x21')](function(_0x4dd9cc){const _0x41269d=_0x95a82;if(_0x4dd9cc)return _0x2580e6=_0x4dd9cc,_0x128b7f[_0x41269d('0x36')]=_[_0x41269d('0x1f')](db[_0x41269d('0x1')]['rawAttributes']),_0x128b7f[_0x41269d('0x1c')]=_[_0x41269d('0x1f')](_0x5a8fa2[_0x41269d('0x1c')]),_0x128b7f['filters']=_[_0x41269d('0xd')](_0x128b7f[_0x41269d('0x36')],_0x128b7f[_0x41269d('0x1c')]),_0x27735d[_0x41269d('0x34')]=_[_0x41269d('0xd')](_0x128b7f[_0x41269d('0x36')],qs[_0x41269d('0x37')](_0x5a8fa2[_0x41269d('0x1c')][_0x41269d('0x37')])),_0x27735d[_0x41269d('0x34')]=_0x27735d['attributes'][_0x41269d('0x11')]?_0x27735d[_0x41269d('0x34')]:_0x128b7f[_0x41269d('0x36')],_0x27735d['order']=qs['sort'](_0x5a8fa2[_0x41269d('0x1c')]['sort']),_0x27735d['where']=qs[_0x41269d('0x28')](_[_0x41269d('0x2b')](_0x5a8fa2[_0x41269d('0x1c')],_0x128b7f[_0x41269d('0x28')])),_0x5a8fa2[_0x41269d('0x1c')]['filter']&&(_0x27735d['where']=_['merge'](_0x27735d[_0x41269d('0x24')],{[Op['or']]:_[_0x41269d('0x2')](_0x27735d[_0x41269d('0x34')],function(_0x48e9cc){const _0x33c42d=_0x41269d,_0x4a8212={};return _0x4a8212[_0x48e9cc]={[Op[_0x33c42d('0x13')]]:'%'+_0x5a8fa2[_0x33c42d('0x1c')][_0x33c42d('0x22')]+'%'},_0x4a8212;})})),_0x27735d=_[_0x41269d('0x29')]({},_0x27735d,_0x5a8fa2[_0x41269d('0xc')]),_0x2580e6[_0x41269d('0x31')](_0x27735d);})['then'](function(_0x4a261a){const _0x8e4811=_0x95a82;if(_0x4a261a)return _0x303199=_0x4a261a[_0x8e4811('0x11')],typeof _0x5a8fa2[_0x8e4811('0x1c')][_0x8e4811('0x8')]===_0x8e4811('0x26')&&(_0x27735d['limit']=qs[_0x8e4811('0x32')](_0x5a8fa2[_0x8e4811('0x1c')][_0x8e4811('0x32')]),_0x27735d[_0x8e4811('0x2a')]=qs[_0x8e4811('0x2a')](_0x5a8fa2[_0x8e4811('0x1c')]['offset'])),_0x2580e6[_0x8e4811('0x31')](_0x27735d);})[_0x95a82('0x21')](function(_0x39d3aa){if(_0x39d3aa)return _0x39d3aa?{'count':_0x303199,'rows':_0x39d3aa}:null;})[_0x95a82('0x21')](respondWithResult(_0x41048c,null))[_0x95a82('0x1b')](handleError(_0x41048c,null));}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.model.js b/server/api/intZohoConfiguration/intZohoConfiguration.model.js index e0c92bf..ed77c71 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.model.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.model.js @@ -1 +1 @@ -const a352_0x2269=['./intZohoConfiguration.attributes','ZohoConfiguration','exports','int_zoho_configurations'];(function(_0x6d0f0c,_0x226987){const _0x23afcd=function(_0x1b2be5){while(--_0x1b2be5){_0x6d0f0c['push'](_0x6d0f0c['shift']());}};_0x23afcd(++_0x226987);}(a352_0x2269,0xc9));const a352_0x23af=function(_0x6d0f0c,_0x226987){_0x6d0f0c=_0x6d0f0c-0x0;let _0x23afcd=a352_0x2269[_0x6d0f0c];return _0x23afcd;};const _0x339f3b=a352_0x23af;'use strict';const attributes=require(_0x339f3b('0x3'));module[_0x339f3b('0x1')]=function(_0x1b2be5){const _0x2fe23a=_0x339f3b,_0x57f439=_0x1b2be5['define'](_0x2fe23a('0x0'),attributes,{'tableName':_0x2fe23a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x57f439;}; \ No newline at end of file +const a352_0x1a54=['define','./intZohoConfiguration.attributes','int_zoho_configurations','ZohoConfiguration'];(function(_0x1db3f1,_0x1a54fa){const _0x1a0ec3=function(_0x31097c){while(--_0x31097c){_0x1db3f1['push'](_0x1db3f1['shift']());}};_0x1a0ec3(++_0x1a54fa);}(a352_0x1a54,0x17a));const a352_0x1a0e=function(_0x1db3f1,_0x1a54fa){_0x1db3f1=_0x1db3f1-0x0;let _0x1a0ec3=a352_0x1a54[_0x1db3f1];return _0x1a0ec3;};const _0x4350bb=a352_0x1a0e;'use strict';const attributes=require(_0x4350bb('0x3'));module['exports']=function(_0x31097c){const _0x93246e=_0x4350bb,_0x268054=_0x31097c[_0x93246e('0x2')](_0x93246e('0x1'),attributes,{'tableName':_0x93246e('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x268054;}; \ No newline at end of file diff --git a/server/api/intZohoField/index.js b/server/api/intZohoField/index.js index 4d1e49b..a59d022 100644 --- a/server/api/intZohoField/index.js +++ b/server/api/intZohoField/index.js @@ -1 +1 @@ -const a353_0x317c=['../../components/auth/service','delete','index','destroy','Router','/:id','post','get','update','isAuthenticated','put','express','exports','./intZohoField.controller','create'];(function(_0x364c7b,_0x317cb0){const _0x2e597d=function(_0x134edf){while(--_0x134edf){_0x364c7b['push'](_0x364c7b['shift']());}};_0x2e597d(++_0x317cb0);}(a353_0x317c,0x115));const a353_0x2e59=function(_0x364c7b,_0x317cb0){_0x364c7b=_0x364c7b-0x0;let _0x2e597d=a353_0x317c[_0x364c7b];return _0x2e597d;};const _0x4d905b=a353_0x2e59;'use strict';const express=require(_0x4d905b('0x4')),router=express[_0x4d905b('0xc')](),auth=require(_0x4d905b('0x8')),controller=require(_0x4d905b('0x6'));router['get']('/',auth[_0x4d905b('0x2')](),controller[_0x4d905b('0xa')]),router[_0x4d905b('0x0')](_0x4d905b('0xd'),auth['isAuthenticated'](),controller['show']),router[_0x4d905b('0xe')]('/',auth[_0x4d905b('0x2')](),controller[_0x4d905b('0x7')]),router[_0x4d905b('0x3')]('/:id',auth['isAuthenticated'](),controller[_0x4d905b('0x1')]),router[_0x4d905b('0x9')](_0x4d905b('0xd'),auth['isAuthenticated'](),controller[_0x4d905b('0xb')]),module[_0x4d905b('0x5')]=router; \ No newline at end of file +const a353_0x3945=['get','create','destroy','index','isAuthenticated','update','show','delete','../../components/auth/service','/:id','Router'];(function(_0x1f80b5,_0x394514){const _0x5d78bd=function(_0x59ea37){while(--_0x59ea37){_0x1f80b5['push'](_0x1f80b5['shift']());}};_0x5d78bd(++_0x394514);}(a353_0x3945,0x77));const a353_0x5d78=function(_0x1f80b5,_0x394514){_0x1f80b5=_0x1f80b5-0x0;let _0x5d78bd=a353_0x3945[_0x1f80b5];return _0x5d78bd;};const _0x45b23b=a353_0x5d78;'use strict';const express=require('express'),router=express[_0x45b23b('0x1')](),auth=require(_0x45b23b('0xa')),controller=require('./intZohoField.controller');router[_0x45b23b('0x2')]('/',auth[_0x45b23b('0x6')](),controller[_0x45b23b('0x5')]),router[_0x45b23b('0x2')]('/:id',auth[_0x45b23b('0x6')](),controller[_0x45b23b('0x8')]),router['post']('/',auth[_0x45b23b('0x6')](),controller[_0x45b23b('0x3')]),router['put'](_0x45b23b('0x0'),auth[_0x45b23b('0x6')](),controller[_0x45b23b('0x7')]),router[_0x45b23b('0x9')](_0x45b23b('0x0'),auth[_0x45b23b('0x6')](),controller[_0x45b23b('0x4')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.attributes.js b/server/api/intZohoField/intZohoField.attributes.js index da2dedf..ab4fc4d 100644 --- a/server/api/intZohoField/intZohoField.attributes.js +++ b/server/api/intZohoField/intZohoField.attributes.js @@ -1 +1 @@ -const a354_0x2a37=['string','STRING','BOOLEAN','exports','sequelize','variable','customVariable'];(function(_0xefe851,_0x2a37a4){const _0x44f486=function(_0x2d63bb){while(--_0x2d63bb){_0xefe851['push'](_0xefe851['shift']());}};_0x44f486(++_0x2a37a4);}(a354_0x2a37,0x1a9));const a354_0x44f4=function(_0xefe851,_0x2a37a4){_0xefe851=_0xefe851-0x0;let _0x44f486=a354_0x2a37[_0xefe851];return _0x44f486;};const _0x498cd5=a354_0x44f4;'use strict';const Sequelize=require(_0x498cd5('0x6'));module[_0x498cd5('0x5')]={'type':{'type':Sequelize['ENUM'](_0x498cd5('0x2'),_0x498cd5('0x0'),_0x498cd5('0x1'),'keyValue'),'defaultValue':_0x498cd5('0x2')},'content':{'type':Sequelize[_0x498cd5('0x3')]},'key':{'type':Sequelize[_0x498cd5('0x3')]},'keyType':{'type':Sequelize['ENUM'](_0x498cd5('0x2'),_0x498cd5('0x0'),_0x498cd5('0x1'))},'keyContent':{'type':Sequelize[_0x498cd5('0x3')]},'idField':{'type':Sequelize[_0x498cd5('0x3')]},'nameField':{'type':Sequelize[_0x498cd5('0x3')]},'customField':{'type':Sequelize[_0x498cd5('0x4')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x498cd5('0x3')]}}; \ No newline at end of file +const a354_0x9aa8=['variable','customVariable','keyValue','STRING','ENUM','string','sequelize'];(function(_0x3a839a,_0x9aa826){const _0x257804=function(_0x371493){while(--_0x371493){_0x3a839a['push'](_0x3a839a['shift']());}};_0x257804(++_0x9aa826);}(a354_0x9aa8,0x1d8));const a354_0x2578=function(_0x3a839a,_0x9aa826){_0x3a839a=_0x3a839a-0x0;let _0x257804=a354_0x9aa8[_0x3a839a];return _0x257804;};const _0xfbfee1=a354_0x2578;'use strict';const Sequelize=require(_0xfbfee1('0x3'));module['exports']={'type':{'type':Sequelize[_0xfbfee1('0x1')](_0xfbfee1('0x2'),_0xfbfee1('0x4'),_0xfbfee1('0x5'),_0xfbfee1('0x6')),'defaultValue':'string'},'content':{'type':Sequelize[_0xfbfee1('0x0')]},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize[_0xfbfee1('0x1')](_0xfbfee1('0x2'),_0xfbfee1('0x4'),_0xfbfee1('0x5'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0xfbfee1('0x0')]},'nameField':{'type':Sequelize[_0xfbfee1('0x0')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0xfbfee1('0x0')]}}; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.controller.js b/server/api/intZohoField/intZohoField.controller.js index 7fb01df..e04406a 100644 --- a/server/api/intZohoField/intZohoField.controller.js +++ b/server/api/intZohoField/intZohoField.controller.js @@ -1 +1 @@ -const a355_0x33f9=['status','then','show','offset','params','set','options','model','name','type','keys','length','limit','fields','body','../../config/logger','include','findAll','api','findOne','../../components/parsers/qs','filters','attributes','query','VIRTUAL','merge','key','count','Content-Range','sendStatus','where','sort','intersection','send','fieldName','pick','destroy','stack','json','map','ZohoField','includeAll','catch','../../mysqldb','filter','rawAttributes','like','update'];(function(_0x506aaa,_0x33f9ee){const _0x109a46=function(_0x54001c){while(--_0x54001c){_0x506aaa['push'](_0x506aaa['shift']());}};_0x109a46(++_0x33f9ee);}(a355_0x33f9,0x1a6));const a355_0x109a=function(_0x506aaa,_0x33f9ee){_0x506aaa=_0x506aaa-0x0;let _0x109a46=a355_0x33f9[_0x506aaa];return _0x109a46;};const _0x5c86b1=a355_0x109a;'use strict';const _=require('lodash'),qs=require(_0x5c86b1('0x1e')),logger=require(_0x5c86b1('0x19'))(_0x5c86b1('0x1c')),db=require(_0x5c86b1('0x5'))['db'],{Op}=require('sequelize');function respondWithResult(_0x54001c,_0x5893b9){return _0x5893b9=_0x5893b9||0xc8,function(_0x3ec1c3){if(_0x3ec1c3)return _0x54001c['status'](_0x5893b9)['json'](_0x3ec1c3);};}function respondWithFilteredResult(_0x53a2ef,_0x3aca4b){return function(_0x110e27){const _0x1a638d=a355_0x109a;if(_0x110e27){const _0x2eb2bb=_0x110e27['count'],_0x438fa6=_0x3aca4b[_0x1a638d('0xd')];let _0x30b175=_0x3aca4b['offset']+_0x3aca4b[_0x1a638d('0x16')],_0x2adc38;return _0x30b175>=_0x2eb2bb?(_0x30b175=_0x2eb2bb,_0x2adc38=0xc8):_0x2adc38=0xce,_0x53a2ef[_0x1a638d('0xa')](_0x2adc38),_0x53a2ef[_0x1a638d('0xf')](_0x1a638d('0x26'),_0x438fa6+'-'+_0x30b175+'/'+_0x2eb2bb)[_0x1a638d('0x0')](_0x110e27);}return null;};}function saveUpdates(_0x585124){return function(_0x47d7f3){const _0x41f2ae=a355_0x109a;if(_0x47d7f3)return _0x47d7f3[_0x41f2ae('0x9')](_0x585124)['then'](function(_0x47a86f){return _0x47a86f;});return null;};}function removeEntity(_0x265202){return function(_0x3911b8){const _0xa97df5=a355_0x109a;if(_0x3911b8)return _0x3911b8[_0xa97df5('0x2e')]()[_0xa97df5('0xb')](function(){const _0x20ee71=_0xa97df5;_0x265202[_0x20ee71('0xa')](0xcc)['end']();});};}function handleEntityNotFound(_0x18063c){return function(_0x22c697){const _0x55af94=a355_0x109a;return!_0x22c697&&_0x18063c[_0x55af94('0x27')](0x194),_0x22c697;};}function handleError(_0x32dace,_0x5a056b){return _0x5a056b=_0x5a056b||0x1f4,function(_0x90f1dc){const _0x40878c=a355_0x109a;logger['error'](_0x90f1dc[_0x40878c('0x2f')]),_0x90f1dc[_0x40878c('0x12')]&&delete _0x90f1dc['name'],_0x32dace[_0x40878c('0xa')](_0x5a056b)[_0x40878c('0x2b')](_0x90f1dc);};}exports['index']=function(_0x2bfb2e,_0x17af24){const _0x9e9b41=_0x5c86b1;let _0x35b741={};const _0x45e5ab={},_0x19dbbc={'count':0x0,'rows':[]},_0x48e0d2=_[_0x9e9b41('0x1')](db[_0x9e9b41('0x2')][_0x9e9b41('0x7')],function(_0x5c9bfc){const _0x5cfd4e=_0x9e9b41;return{'name':_0x5c9bfc[_0x5cfd4e('0x2c')],'type':_0x5c9bfc[_0x5cfd4e('0x13')][_0x5cfd4e('0x24')]};});_0x45e5ab[_0x9e9b41('0x11')]=_[_0x9e9b41('0x1')](_0x48e0d2,_0x9e9b41('0x12')),_0x45e5ab[_0x9e9b41('0x21')]=_[_0x9e9b41('0x14')](_0x2bfb2e[_0x9e9b41('0x21')]),_0x45e5ab['filters']=_[_0x9e9b41('0x2a')](_0x45e5ab[_0x9e9b41('0x11')],_0x45e5ab[_0x9e9b41('0x21')]),_0x35b741[_0x9e9b41('0x20')]=_[_0x9e9b41('0x2a')](_0x45e5ab[_0x9e9b41('0x11')],qs['fields'](_0x2bfb2e[_0x9e9b41('0x21')][_0x9e9b41('0x17')])),_0x35b741[_0x9e9b41('0x20')]=_0x35b741[_0x9e9b41('0x20')][_0x9e9b41('0x15')]?_0x35b741[_0x9e9b41('0x20')]:_0x45e5ab['model'];typeof _0x2bfb2e[_0x9e9b41('0x21')]['nolimit']==='undefined'&&(_0x35b741[_0x9e9b41('0x16')]=qs[_0x9e9b41('0x16')](_0x2bfb2e['query'][_0x9e9b41('0x16')]),_0x35b741[_0x9e9b41('0xd')]=qs[_0x9e9b41('0xd')](_0x2bfb2e[_0x9e9b41('0x21')]['offset']));_0x35b741['order']=qs[_0x9e9b41('0x29')](_0x2bfb2e['query'][_0x9e9b41('0x29')]),_0x35b741[_0x9e9b41('0x28')]=qs[_0x9e9b41('0x1f')](_[_0x9e9b41('0x2d')](_0x2bfb2e[_0x9e9b41('0x21')],_0x45e5ab[_0x9e9b41('0x1f')]),_0x48e0d2);_0x2bfb2e[_0x9e9b41('0x21')][_0x9e9b41('0x6')]&&(_0x35b741[_0x9e9b41('0x28')]=_[_0x9e9b41('0x23')](_0x35b741[_0x9e9b41('0x28')],{[Op['or']]:_[_0x9e9b41('0x1')](_0x48e0d2,function(_0x423a03){const _0x58de1a=_0x9e9b41;if(_0x423a03[_0x58de1a('0x13')]!==_0x58de1a('0x22')){const _0x29c89c={};return _0x29c89c[_0x423a03[_0x58de1a('0x12')]]={[Op[_0x58de1a('0x8')]]:'%'+_0x2bfb2e[_0x58de1a('0x21')][_0x58de1a('0x6')]+'%'},_0x29c89c;}})}));_0x35b741=_[_0x9e9b41('0x23')]({},_0x35b741,_0x2bfb2e[_0x9e9b41('0x10')]);const _0x1309f6={'where':_0x35b741[_0x9e9b41('0x28')]};return db['ZohoField'][_0x9e9b41('0x25')](_0x1309f6)['then'](function(_0xffb20d){const _0x183d23=_0x9e9b41;return _0x19dbbc[_0x183d23('0x25')]=_0xffb20d,_0x2bfb2e['query'][_0x183d23('0x3')]&&(_0x35b741[_0x183d23('0x1a')]=[{'all':!![]}]),db[_0x183d23('0x2')][_0x183d23('0x1b')](_0x35b741);})['then'](function(_0x552d6a){return _0x19dbbc['rows']=_0x552d6a,_0x19dbbc;})[_0x9e9b41('0xb')](respondWithFilteredResult(_0x17af24,_0x35b741))[_0x9e9b41('0x4')](handleError(_0x17af24,null));},exports[_0x5c86b1('0xc')]=function(_0x201330,_0x288b81){const _0x23c5ab=_0x5c86b1;let _0x538508={'raw':!![],'where':{'id':_0x201330[_0x23c5ab('0xe')]['id']}};const _0x27ab7c={};return _0x27ab7c[_0x23c5ab('0x11')]=_[_0x23c5ab('0x14')](db[_0x23c5ab('0x2')][_0x23c5ab('0x7')]),_0x27ab7c['query']=_['keys'](_0x201330[_0x23c5ab('0x21')]),_0x27ab7c['filters']=_[_0x23c5ab('0x2a')](_0x27ab7c['model'],_0x27ab7c[_0x23c5ab('0x21')]),_0x538508[_0x23c5ab('0x20')]=_['intersection'](_0x27ab7c[_0x23c5ab('0x11')],qs[_0x23c5ab('0x17')](_0x201330[_0x23c5ab('0x21')][_0x23c5ab('0x17')])),_0x538508['attributes']=_0x538508[_0x23c5ab('0x20')][_0x23c5ab('0x15')]?_0x538508[_0x23c5ab('0x20')]:_0x27ab7c[_0x23c5ab('0x11')],_0x201330[_0x23c5ab('0x21')]['includeAll']&&(_0x538508[_0x23c5ab('0x1a')]=[{'all':!![]}]),_0x538508=_['merge']({},_0x538508,_0x201330[_0x23c5ab('0x10')]),db[_0x23c5ab('0x2')][_0x23c5ab('0x1d')](_0x538508)[_0x23c5ab('0xb')](handleEntityNotFound(_0x288b81,null))[_0x23c5ab('0xb')](respondWithResult(_0x288b81,null))['catch'](handleError(_0x288b81,null));},exports['create']=function(_0x20438a,_0x2431a1){const _0x470b13=_0x5c86b1;return db[_0x470b13('0x2')]['create'](_0x20438a[_0x470b13('0x18')],{})['then'](respondWithResult(_0x2431a1,0xc9))[_0x470b13('0x4')](handleError(_0x2431a1,null));},exports[_0x5c86b1('0x9')]=function(_0x30db76,_0x1aea01){const _0x425f28=_0x5c86b1;return _0x30db76[_0x425f28('0x18')]['id']&&delete _0x30db76['body']['id'],db[_0x425f28('0x2')][_0x425f28('0x1d')]({'where':{'id':_0x30db76[_0x425f28('0xe')]['id']}})[_0x425f28('0xb')](handleEntityNotFound(_0x1aea01,null))[_0x425f28('0xb')](saveUpdates(_0x30db76[_0x425f28('0x18')],null))['then'](respondWithResult(_0x1aea01,null))[_0x425f28('0x4')](handleError(_0x1aea01,null));},exports[_0x5c86b1('0x2e')]=function(_0x1ef798,_0x47ef14){const _0x4018c4=_0x5c86b1;return db[_0x4018c4('0x2')][_0x4018c4('0x1d')]({'where':{'id':_0x1ef798[_0x4018c4('0xe')]['id']}})[_0x4018c4('0xb')](handleEntityNotFound(_0x47ef14,null))['then'](removeEntity(_0x47ef14,null))[_0x4018c4('0x4')](handleError(_0x47ef14,null));}; \ No newline at end of file +const a355_0x4298=['../../components/parsers/qs','offset','query','limit','findAll','then','options','create','json','includeAll','pick','findOne','count','status','where','sort','model','intersection','key','filters','include','like','filter','catch','send','destroy','update','map','fields','name','fieldName','length','body','VIRTUAL','rawAttributes','nolimit','index','attributes','ZohoField','rows','keys','show','merge','params','type','../../config/logger'];(function(_0x1caaaf,_0x42983e){const _0x1efa5b=function(_0x359ee0){while(--_0x359ee0){_0x1caaaf['push'](_0x1caaaf['shift']());}};_0x1efa5b(++_0x42983e);}(a355_0x4298,0xc1));const a355_0x1efa=function(_0x1caaaf,_0x42983e){_0x1caaaf=_0x1caaaf-0x0;let _0x1efa5b=a355_0x4298[_0x1caaaf];return _0x1efa5b;};const _0x263f77=a355_0x1efa;'use strict';const _=require('lodash'),qs=require(_0x263f77('0x25')),logger=require(_0x263f77('0x24'))('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x359ee0,_0x434877){return _0x434877=_0x434877||0xc8,function(_0x4cf40f){const _0x49d6fc=a355_0x1efa;if(_0x4cf40f)return _0x359ee0[_0x49d6fc('0x4')](_0x434877)['json'](_0x4cf40f);};}function respondWithFilteredResult(_0x1ee01a,_0x17eddd){return function(_0x2e827a){const _0x116106=a355_0x1efa;if(_0x2e827a){const _0xe89ff9=_0x2e827a['count'],_0x53e57a=_0x17eddd[_0x116106('0x26')];let _0x3b053e=_0x17eddd[_0x116106('0x26')]+_0x17eddd[_0x116106('0x28')],_0x2c6755;return _0x3b053e>=_0xe89ff9?(_0x3b053e=_0xe89ff9,_0x2c6755=0xc8):_0x2c6755=0xce,_0x1ee01a[_0x116106('0x4')](_0x2c6755),_0x1ee01a['set']('Content-Range',_0x53e57a+'-'+_0x3b053e+'/'+_0xe89ff9)[_0x116106('0x2d')](_0x2e827a);}return null;};}function saveUpdates(_0x3614c0){return function(_0x47220b){const _0x488da3=a355_0x1efa;if(_0x47220b)return _0x47220b[_0x488da3('0x11')](_0x3614c0)[_0x488da3('0x2a')](function(_0x1a36ff){return _0x1a36ff;});return null;};}function removeEntity(_0x1b626e){return function(_0x51f279){if(_0x51f279)return _0x51f279['destroy']()['then'](function(){const _0x47ae2e=a355_0x1efa;_0x1b626e[_0x47ae2e('0x4')](0xcc)['end']();});};}function handleEntityNotFound(_0x4a7a63){return function(_0x2e8d37){return!_0x2e8d37&&_0x4a7a63['sendStatus'](0x194),_0x2e8d37;};}function handleError(_0x3414e7,_0x23f67d){return _0x23f67d=_0x23f67d||0x1f4,function(_0xef6eda){const _0x209b5e=a355_0x1efa;logger['error'](_0xef6eda['stack']),_0xef6eda[_0x209b5e('0x14')]&&delete _0xef6eda[_0x209b5e('0x14')],_0x3414e7[_0x209b5e('0x4')](_0x23f67d)[_0x209b5e('0xf')](_0xef6eda);};}exports[_0x263f77('0x1b')]=function(_0x55dd05,_0x5d88db){const _0x13efc2=_0x263f77;let _0x55f0ca={};const _0x7ee4e4={},_0x5b78d4={'count':0x0,'rows':[]},_0x5c1c2b=_[_0x13efc2('0x12')](db[_0x13efc2('0x1d')][_0x13efc2('0x19')],function(_0x274f97){const _0x372bf2=_0x13efc2;return{'name':_0x274f97[_0x372bf2('0x15')],'type':_0x274f97[_0x372bf2('0x23')][_0x372bf2('0x9')]};});_0x7ee4e4[_0x13efc2('0x7')]=_[_0x13efc2('0x12')](_0x5c1c2b,_0x13efc2('0x14')),_0x7ee4e4['query']=_[_0x13efc2('0x1f')](_0x55dd05[_0x13efc2('0x27')]),_0x7ee4e4[_0x13efc2('0xa')]=_[_0x13efc2('0x8')](_0x7ee4e4['model'],_0x7ee4e4['query']),_0x55f0ca[_0x13efc2('0x1c')]=_[_0x13efc2('0x8')](_0x7ee4e4[_0x13efc2('0x7')],qs[_0x13efc2('0x13')](_0x55dd05['query'][_0x13efc2('0x13')])),_0x55f0ca['attributes']=_0x55f0ca[_0x13efc2('0x1c')]['length']?_0x55f0ca['attributes']:_0x7ee4e4[_0x13efc2('0x7')];typeof _0x55dd05[_0x13efc2('0x27')][_0x13efc2('0x1a')]==='undefined'&&(_0x55f0ca['limit']=qs[_0x13efc2('0x28')](_0x55dd05[_0x13efc2('0x27')][_0x13efc2('0x28')]),_0x55f0ca[_0x13efc2('0x26')]=qs['offset'](_0x55dd05[_0x13efc2('0x27')][_0x13efc2('0x26')]));_0x55f0ca['order']=qs[_0x13efc2('0x6')](_0x55dd05[_0x13efc2('0x27')]['sort']),_0x55f0ca[_0x13efc2('0x5')]=qs[_0x13efc2('0xa')](_[_0x13efc2('0x1')](_0x55dd05[_0x13efc2('0x27')],_0x7ee4e4[_0x13efc2('0xa')]),_0x5c1c2b);_0x55dd05[_0x13efc2('0x27')][_0x13efc2('0xd')]&&(_0x55f0ca[_0x13efc2('0x5')]=_[_0x13efc2('0x21')](_0x55f0ca['where'],{[Op['or']]:_[_0x13efc2('0x12')](_0x5c1c2b,function(_0x31f7b3){const _0x15d07e=_0x13efc2;if(_0x31f7b3[_0x15d07e('0x23')]!==_0x15d07e('0x18')){const _0x2f42fe={};return _0x2f42fe[_0x31f7b3[_0x15d07e('0x14')]]={[Op[_0x15d07e('0xc')]]:'%'+_0x55dd05['query'][_0x15d07e('0xd')]+'%'},_0x2f42fe;}})}));_0x55f0ca=_['merge']({},_0x55f0ca,_0x55dd05[_0x13efc2('0x2b')]);const _0x87d22a={'where':_0x55f0ca[_0x13efc2('0x5')]};return db['ZohoField']['count'](_0x87d22a)[_0x13efc2('0x2a')](function(_0x33156d){const _0xbf2029=_0x13efc2;return _0x5b78d4[_0xbf2029('0x3')]=_0x33156d,_0x55dd05[_0xbf2029('0x27')][_0xbf2029('0x0')]&&(_0x55f0ca[_0xbf2029('0xb')]=[{'all':!![]}]),db[_0xbf2029('0x1d')][_0xbf2029('0x29')](_0x55f0ca);})[_0x13efc2('0x2a')](function(_0x555575){const _0x30f6d1=_0x13efc2;return _0x5b78d4[_0x30f6d1('0x1e')]=_0x555575,_0x5b78d4;})['then'](respondWithFilteredResult(_0x5d88db,_0x55f0ca))[_0x13efc2('0xe')](handleError(_0x5d88db,null));},exports[_0x263f77('0x20')]=function(_0x45b457,_0x7e356a){const _0x1f3b03=_0x263f77;let _0x38f9c8={'raw':!![],'where':{'id':_0x45b457[_0x1f3b03('0x22')]['id']}};const _0x53d426={};return _0x53d426[_0x1f3b03('0x7')]=_['keys'](db[_0x1f3b03('0x1d')][_0x1f3b03('0x19')]),_0x53d426[_0x1f3b03('0x27')]=_['keys'](_0x45b457['query']),_0x53d426[_0x1f3b03('0xa')]=_[_0x1f3b03('0x8')](_0x53d426[_0x1f3b03('0x7')],_0x53d426[_0x1f3b03('0x27')]),_0x38f9c8['attributes']=_[_0x1f3b03('0x8')](_0x53d426[_0x1f3b03('0x7')],qs['fields'](_0x45b457['query'][_0x1f3b03('0x13')])),_0x38f9c8['attributes']=_0x38f9c8[_0x1f3b03('0x1c')][_0x1f3b03('0x16')]?_0x38f9c8[_0x1f3b03('0x1c')]:_0x53d426['model'],_0x45b457['query']['includeAll']&&(_0x38f9c8[_0x1f3b03('0xb')]=[{'all':!![]}]),_0x38f9c8=_[_0x1f3b03('0x21')]({},_0x38f9c8,_0x45b457[_0x1f3b03('0x2b')]),db['ZohoField']['findOne'](_0x38f9c8)[_0x1f3b03('0x2a')](handleEntityNotFound(_0x7e356a,null))['then'](respondWithResult(_0x7e356a,null))[_0x1f3b03('0xe')](handleError(_0x7e356a,null));},exports[_0x263f77('0x2c')]=function(_0x3ca856,_0x183dee){const _0x2a2f99=_0x263f77;return db[_0x2a2f99('0x1d')][_0x2a2f99('0x2c')](_0x3ca856[_0x2a2f99('0x17')],{})[_0x2a2f99('0x2a')](respondWithResult(_0x183dee,0xc9))['catch'](handleError(_0x183dee,null));},exports[_0x263f77('0x11')]=function(_0x4d58ad,_0x31e26b){const _0x319da7=_0x263f77;return _0x4d58ad[_0x319da7('0x17')]['id']&&delete _0x4d58ad[_0x319da7('0x17')]['id'],db[_0x319da7('0x1d')][_0x319da7('0x2')]({'where':{'id':_0x4d58ad['params']['id']}})['then'](handleEntityNotFound(_0x31e26b,null))[_0x319da7('0x2a')](saveUpdates(_0x4d58ad[_0x319da7('0x17')],null))[_0x319da7('0x2a')](respondWithResult(_0x31e26b,null))[_0x319da7('0xe')](handleError(_0x31e26b,null));},exports[_0x263f77('0x10')]=function(_0x21e057,_0xf61377){const _0x5d9171=_0x263f77;return db[_0x5d9171('0x1d')][_0x5d9171('0x2')]({'where':{'id':_0x21e057[_0x5d9171('0x22')]['id']}})['then'](handleEntityNotFound(_0xf61377,null))['then'](removeEntity(_0xf61377,null))[_0x5d9171('0xe')](handleError(_0xf61377,null));}; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.model.js b/server/api/intZohoField/intZohoField.model.js index fed7e5c..6d6f6d2 100644 --- a/server/api/intZohoField/intZohoField.model.js +++ b/server/api/intZohoField/intZohoField.model.js @@ -1 +1 @@ -const a356_0x3046=['define','./intZohoField.attributes','zoho_unique_index','FieldId','idField','exports','ZohoField'];(function(_0x2b47e7,_0x304678){const _0x5b3e22=function(_0x39b01c){while(--_0x39b01c){_0x2b47e7['push'](_0x2b47e7['shift']());}};_0x5b3e22(++_0x304678);}(a356_0x3046,0x97));const a356_0x5b3e=function(_0x2b47e7,_0x304678){_0x2b47e7=_0x2b47e7-0x0;let _0x5b3e22=a356_0x3046[_0x2b47e7];return _0x5b3e22;};const _0x15e640=a356_0x5b3e;'use strict';const attributes=require(_0x15e640('0x4'));module[_0x15e640('0x1')]=function(_0x39b01c){const _0x2bdad4=_0x15e640,_0x1bae60=_0x39b01c[_0x2bdad4('0x3')](_0x2bdad4('0x2'),attributes,{'tableName':'int_zoho_fields','paranoid':![],'indexes':[{'name':_0x2bdad4('0x5'),'fields':[_0x2bdad4('0x0'),_0x2bdad4('0x6')],'unique':!![]}],'timestamps':!![]});return _0x1bae60;}; \ No newline at end of file +const a356_0x431a=['./intZohoField.attributes','zoho_unique_index','exports','FieldId','define','idField'];(function(_0xf66761,_0x431afa){const _0x200b96=function(_0x5e0262){while(--_0x5e0262){_0xf66761['push'](_0xf66761['shift']());}};_0x200b96(++_0x431afa);}(a356_0x431a,0xb8));const a356_0x200b=function(_0xf66761,_0x431afa){_0xf66761=_0xf66761-0x0;let _0x200b96=a356_0x431a[_0xf66761];return _0x200b96;};const _0x31c0b3=a356_0x200b;'use strict';const attributes=require(_0x31c0b3('0x2'));module[_0x31c0b3('0x4')]=function(_0x5e0262){const _0x5b4b79=_0x31c0b3,_0xcd8379=_0x5e0262[_0x5b4b79('0x0')]('ZohoField',attributes,{'tableName':'int_zoho_fields','paranoid':![],'indexes':[{'name':_0x5b4b79('0x3'),'fields':[_0x5b4b79('0x1'),_0x5b4b79('0x5')],'unique':!![]}],'timestamps':!![]});return _0xcd8379;}; \ No newline at end of file diff --git a/server/api/integration/index.js b/server/api/integration/index.js index 92d5b71..e434548 100644 --- a/server/api/integration/index.js +++ b/server/api/integration/index.js @@ -1 +1 @@ -const a357_0x1635=['exports'];(function(_0x39ad7d,_0x163571){const _0x59e2b9=function(_0x4867ce){while(--_0x4867ce){_0x39ad7d['push'](_0x39ad7d['shift']());}};_0x59e2b9(++_0x163571);}(a357_0x1635,0x11f));const a357_0x59e2=function(_0x39ad7d,_0x163571){_0x39ad7d=_0x39ad7d-0x0;let _0x59e2b9=a357_0x1635[_0x39ad7d];return _0x59e2b9;};const _0x440b2a=a357_0x59e2;'use strict';const express=require('express'),router=express['Router']();module[_0x440b2a('0x0')]=router; \ No newline at end of file +const a357_0x4461=['exports','express'];(function(_0x4d0ec6,_0x4461f5){const _0x32bd78=function(_0x3de99a){while(--_0x3de99a){_0x4d0ec6['push'](_0x4d0ec6['shift']());}};_0x32bd78(++_0x4461f5);}(a357_0x4461,0x97));const a357_0x32bd=function(_0x4d0ec6,_0x4461f5){_0x4d0ec6=_0x4d0ec6-0x0;let _0x32bd78=a357_0x4461[_0x4d0ec6];return _0x32bd78;};const _0x584466=a357_0x32bd;'use strict';const express=require(_0x584466('0x0')),router=express['Router']();module[_0x584466('0x1')]=router; \ No newline at end of file diff --git a/server/api/integration/integration.attributes.js b/server/api/integration/integration.attributes.js index 30fe838..88d61ca 100644 --- a/server/api/integration/integration.attributes.js +++ b/server/api/integration/integration.attributes.js @@ -1 +1 @@ -const a358_0x489e=['app.js','sequelize','exports','BOOLEAN','unique_name_and_version','STRING','INTEGER'];(function(_0x1742a3,_0x489ee3){const _0x1a68e1=function(_0xd3de53){while(--_0xd3de53){_0x1742a3['push'](_0x1742a3['shift']());}};_0x1a68e1(++_0x489ee3);}(a358_0x489e,0xf9));const a358_0x1a68=function(_0x1742a3,_0x489ee3){_0x1742a3=_0x1742a3-0x0;let _0x1a68e1=a358_0x489e[_0x1742a3];return _0x1a68e1;};const _0x252353=a358_0x1a68;'use strict';const Sequelize=require(_0x252353('0x4'));module[_0x252353('0x5')]={'name':{'type':Sequelize[_0x252353('0x1')],'allowNull':![],'unique':_0x252353('0x0')},'version':{'type':Sequelize[_0x252353('0x1')],'allowNull':![],'unique':'unique_name_and_version'},'main':{'type':Sequelize[_0x252353('0x1')],'defaultValue':_0x252353('0x3')},'filename':{'type':Sequelize[_0x252353('0x1')]},'path':{'type':Sequelize[_0x252353('0x1')]},'type':{'type':Sequelize['STRING']},'size':{'type':Sequelize[_0x252353('0x2')]},'active':{'type':Sequelize[_0x252353('0x6')],'defaultValue':![]},'author':{'type':Sequelize[_0x252353('0x1')]},'logo':{'type':Sequelize[_0x252353('0x1')]},'state':{'type':Sequelize[_0x252353('0x1')],'unique':'state'},'description':{'type':Sequelize[_0x252353('0x1')]},'title':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0x252353('0x1')]},'link':{'type':Sequelize[_0x252353('0x1')],'defaultValue':'#'}}; \ No newline at end of file +const a358_0x27c4=['exports','BOOLEAN','STRING','unique_name_and_version','state','app.js','INTEGER'];(function(_0x5c40a6,_0x27c4bf){const _0x1913d1=function(_0x5b4a99){while(--_0x5b4a99){_0x5c40a6['push'](_0x5c40a6['shift']());}};_0x1913d1(++_0x27c4bf);}(a358_0x27c4,0x1a7));const a358_0x1913=function(_0x5c40a6,_0x27c4bf){_0x5c40a6=_0x5c40a6-0x0;let _0x1913d1=a358_0x27c4[_0x5c40a6];return _0x1913d1;};const _0xa3dd89=a358_0x1913;'use strict';const Sequelize=require('sequelize');module[_0xa3dd89('0x4')]={'name':{'type':Sequelize[_0xa3dd89('0x6')],'allowNull':![],'unique':_0xa3dd89('0x0')},'version':{'type':Sequelize[_0xa3dd89('0x6')],'allowNull':![],'unique':'unique_name_and_version'},'main':{'type':Sequelize[_0xa3dd89('0x6')],'defaultValue':_0xa3dd89('0x2')},'filename':{'type':Sequelize[_0xa3dd89('0x6')]},'path':{'type':Sequelize[_0xa3dd89('0x6')]},'type':{'type':Sequelize[_0xa3dd89('0x6')]},'size':{'type':Sequelize[_0xa3dd89('0x3')]},'active':{'type':Sequelize[_0xa3dd89('0x5')],'defaultValue':![]},'author':{'type':Sequelize[_0xa3dd89('0x6')]},'logo':{'type':Sequelize['STRING']},'state':{'type':Sequelize['STRING'],'unique':_0xa3dd89('0x1')},'description':{'type':Sequelize[_0xa3dd89('0x6')]},'title':{'type':Sequelize[_0xa3dd89('0x6')]},'remoteUri':{'type':Sequelize[_0xa3dd89('0x6')]},'link':{'type':Sequelize[_0xa3dd89('0x6')],'defaultValue':'#'}}; \ No newline at end of file diff --git a/server/api/integration/integration.controller.js b/server/api/integration/integration.controller.js index 6c5d281..c58afeb 100644 --- a/server/api/integration/integration.controller.js +++ b/server/api/integration/integration.controller.js @@ -1 +1 @@ -const a359_0x4390=['rawAttributes','sendStatus','options','body','type','fieldName','count','send','include','map','catch','pick','fields','includeAll','status','length','../../mysqldb','filter','rows','limit','index','destroy','order','like','key','nolimit','sort','Content-Range','api','params','intersection','findOne','name','set','offset','where','merge','model','then','query','filters','update','create','lodash','stack','attributes','json','findAll','keys','show','Integration'];(function(_0x5b22f0,_0x4390ef){const _0x595e23=function(_0x44d206){while(--_0x44d206){_0x5b22f0['push'](_0x5b22f0['shift']());}};_0x595e23(++_0x4390ef);}(a359_0x4390,0xd3));const a359_0x595e=function(_0x5b22f0,_0x4390ef){_0x5b22f0=_0x5b22f0-0x0;let _0x595e23=a359_0x4390[_0x5b22f0];return _0x595e23;};const _0x84494c=a359_0x595e;'use strict';const _=require(_0x84494c('0x24')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x84494c('0x15')),db=require(_0x84494c('0x9'))['db'],{Op}=require('sequelize');function respondWithResult(_0x44d206,_0x90551f){return _0x90551f=_0x90551f||0xc8,function(_0x4f6ea6){const _0x383da0=a359_0x595e;if(_0x4f6ea6)return _0x44d206[_0x383da0('0x7')](_0x90551f)[_0x383da0('0x27')](_0x4f6ea6);};}function respondWithFilteredResult(_0x1b092c,_0x14b9ef){return function(_0x321fbf){const _0x40fcde=a359_0x595e;if(_0x321fbf){const _0x5d46c3=_0x321fbf[_0x40fcde('0x32')],_0xd66fe7=_0x14b9ef[_0x40fcde('0x1b')];let _0xebe966=_0x14b9ef[_0x40fcde('0x1b')]+_0x14b9ef['limit'],_0x482a49;return _0xebe966>=_0x5d46c3?(_0xebe966=_0x5d46c3,_0x482a49=0xc8):_0x482a49=0xce,_0x1b092c['status'](_0x482a49),_0x1b092c[_0x40fcde('0x1a')](_0x40fcde('0x14'),_0xd66fe7+'-'+_0xebe966+'/'+_0x5d46c3)[_0x40fcde('0x27')](_0x321fbf);}return null;};}function saveUpdates(_0x5a4196){return function(_0x2fc279){const _0x43c7e1=a359_0x595e;if(_0x2fc279)return _0x2fc279[_0x43c7e1('0x22')](_0x5a4196)['then'](function(_0x51274c){return _0x51274c;});return null;};}function removeEntity(_0x5696b9){return function(_0x20aaa5){const _0x41f1f9=a359_0x595e;if(_0x20aaa5)return _0x20aaa5[_0x41f1f9('0xe')]()[_0x41f1f9('0x1f')](function(){const _0x18ddb4=_0x41f1f9;_0x5696b9[_0x18ddb4('0x7')](0xcc)['end']();});};}function handleEntityNotFound(_0x2273a7){return function(_0x13aab2){const _0x3d35bf=a359_0x595e;return!_0x13aab2&&_0x2273a7[_0x3d35bf('0x2d')](0x194),_0x13aab2;};}function handleError(_0xe6316b,_0x42453f){return _0x42453f=_0x42453f||0x1f4,function(_0x12bbd7){const _0x472421=a359_0x595e;logger['error'](_0x12bbd7[_0x472421('0x25')]),_0x12bbd7[_0x472421('0x19')]&&delete _0x12bbd7[_0x472421('0x19')],_0xe6316b[_0x472421('0x7')](_0x42453f)[_0x472421('0x0')](_0x12bbd7);};}exports[_0x84494c('0xd')]=function(_0xadd109,_0x5f499a){const _0x4ab585=_0x84494c;let _0x34a0e9={};const _0x230f52={},_0x109b16={'count':0x0,'rows':[]},_0x3bece3=_['map'](db[_0x4ab585('0x2b')][_0x4ab585('0x2c')],function(_0x9f7cd6){const _0x5834b6=_0x4ab585;return{'name':_0x9f7cd6[_0x5834b6('0x31')],'type':_0x9f7cd6['type'][_0x5834b6('0x11')]};});_0x230f52['model']=_[_0x4ab585('0x2')](_0x3bece3,_0x4ab585('0x19')),_0x230f52['query']=_[_0x4ab585('0x29')](_0xadd109[_0x4ab585('0x20')]),_0x230f52[_0x4ab585('0x21')]=_['intersection'](_0x230f52['model'],_0x230f52['query']),_0x34a0e9[_0x4ab585('0x26')]=_[_0x4ab585('0x17')](_0x230f52[_0x4ab585('0x1e')],qs[_0x4ab585('0x5')](_0xadd109['query'][_0x4ab585('0x5')])),_0x34a0e9[_0x4ab585('0x26')]=_0x34a0e9[_0x4ab585('0x26')][_0x4ab585('0x8')]?_0x34a0e9[_0x4ab585('0x26')]:_0x230f52[_0x4ab585('0x1e')];typeof _0xadd109['query'][_0x4ab585('0x12')]==='undefined'&&(_0x34a0e9[_0x4ab585('0xc')]=qs[_0x4ab585('0xc')](_0xadd109[_0x4ab585('0x20')][_0x4ab585('0xc')]),_0x34a0e9[_0x4ab585('0x1b')]=qs['offset'](_0xadd109['query'][_0x4ab585('0x1b')]));_0x34a0e9[_0x4ab585('0xf')]=qs[_0x4ab585('0x13')](_0xadd109[_0x4ab585('0x20')]['sort']),_0x34a0e9[_0x4ab585('0x1c')]=qs[_0x4ab585('0x21')](_[_0x4ab585('0x4')](_0xadd109[_0x4ab585('0x20')],_0x230f52['filters']),_0x3bece3);_0xadd109[_0x4ab585('0x20')][_0x4ab585('0xa')]&&(_0x34a0e9[_0x4ab585('0x1c')]=_[_0x4ab585('0x1d')](_0x34a0e9['where'],{[Op['or']]:_[_0x4ab585('0x2')](_0x3bece3,function(_0x570faf){const _0xeeb250=_0x4ab585;if(_0x570faf[_0xeeb250('0x30')]!=='VIRTUAL'){const _0x19b4a4={};return _0x19b4a4[_0x570faf[_0xeeb250('0x19')]]={[Op[_0xeeb250('0x10')]]:'%'+_0xadd109[_0xeeb250('0x20')][_0xeeb250('0xa')]+'%'},_0x19b4a4;}})}));_0x34a0e9=_[_0x4ab585('0x1d')]({},_0x34a0e9,_0xadd109[_0x4ab585('0x2e')]);const _0x28bb83={'where':_0x34a0e9[_0x4ab585('0x1c')]};return db['Integration']['count'](_0x28bb83)[_0x4ab585('0x1f')](function(_0x2b4b41){const _0x3aa653=_0x4ab585;return _0x109b16[_0x3aa653('0x32')]=_0x2b4b41,_0xadd109[_0x3aa653('0x20')][_0x3aa653('0x6')]&&(_0x34a0e9[_0x3aa653('0x1')]=[{'all':!![]}]),db[_0x3aa653('0x2b')][_0x3aa653('0x28')](_0x34a0e9);})[_0x4ab585('0x1f')](function(_0x169300){const _0x59ed7a=_0x4ab585;return _0x109b16[_0x59ed7a('0xb')]=_0x169300,_0x109b16;})[_0x4ab585('0x1f')](respondWithFilteredResult(_0x5f499a,_0x34a0e9))['catch'](handleError(_0x5f499a,null));},exports[_0x84494c('0x2a')]=function(_0x4fcefd,_0x3724b3){const _0x939105=_0x84494c;let _0x3333b5={'raw':![],'where':{'id':_0x4fcefd[_0x939105('0x16')]['id']}};const _0x3b6ebe={};return _0x3b6ebe[_0x939105('0x1e')]=_[_0x939105('0x29')](db['Integration'][_0x939105('0x2c')]),_0x3b6ebe[_0x939105('0x20')]=_[_0x939105('0x29')](_0x4fcefd[_0x939105('0x20')]),_0x3b6ebe[_0x939105('0x21')]=_['intersection'](_0x3b6ebe[_0x939105('0x1e')],_0x3b6ebe[_0x939105('0x20')]),_0x3333b5['attributes']=_[_0x939105('0x17')](_0x3b6ebe[_0x939105('0x1e')],qs[_0x939105('0x5')](_0x4fcefd[_0x939105('0x20')][_0x939105('0x5')])),_0x3333b5[_0x939105('0x26')]=_0x3333b5[_0x939105('0x26')][_0x939105('0x8')]?_0x3333b5['attributes']:_0x3b6ebe['model'],_0x4fcefd[_0x939105('0x20')][_0x939105('0x6')]&&(_0x3333b5[_0x939105('0x1')]=[{'all':!![]}]),_0x3333b5=_[_0x939105('0x1d')]({},_0x3333b5,_0x4fcefd[_0x939105('0x2e')]),db[_0x939105('0x2b')][_0x939105('0x18')](_0x3333b5)[_0x939105('0x1f')](handleEntityNotFound(_0x3724b3,null))['then'](respondWithResult(_0x3724b3,null))['catch'](handleError(_0x3724b3,null));},exports[_0x84494c('0x23')]=function(_0x8fe81f,_0x2ed5de){const _0xfef010=_0x84494c;return db[_0xfef010('0x2b')][_0xfef010('0x23')](_0x8fe81f['body'],{})[_0xfef010('0x1f')](respondWithResult(_0x2ed5de,0xc9))[_0xfef010('0x3')](handleError(_0x2ed5de,null));},exports[_0x84494c('0x22')]=function(_0x3562f4,_0x7d0ba6){const _0x5ae538=_0x84494c;return _0x3562f4[_0x5ae538('0x2f')]['id']&&delete _0x3562f4['body']['id'],db[_0x5ae538('0x2b')][_0x5ae538('0x18')]({'where':{'id':_0x3562f4[_0x5ae538('0x16')]['id']}})[_0x5ae538('0x1f')](handleEntityNotFound(_0x7d0ba6,null))[_0x5ae538('0x1f')](saveUpdates(_0x3562f4[_0x5ae538('0x2f')],null))[_0x5ae538('0x1f')](respondWithResult(_0x7d0ba6,null))['catch'](handleError(_0x7d0ba6,null));},exports[_0x84494c('0xe')]=function(_0x425c68,_0x445fe0){const _0x237185=_0x84494c;return db[_0x237185('0x2b')][_0x237185('0x18')]({'where':{'id':_0x425c68['params']['id']}})[_0x237185('0x1f')](handleEntityNotFound(_0x445fe0,null))[_0x237185('0x1f')](removeEntity(_0x445fe0,null))[_0x237185('0x3')](handleError(_0x445fe0,null));}; \ No newline at end of file +const a359_0x553a=['limit','keys','count','length','then','name','includeAll','set','options','index','update','order','intersection','api','findAll','stack','create','catch','query','rows','body','status','offset','json','rawAttributes','pick','include','filter','error','like','../../mysqldb','map','nolimit','Integration','params','where','fields','../../config/logger','type','lodash','send','undefined','../../components/parsers/qs','filters','attributes','findOne','model','key','VIRTUAL','sort','merge','destroy','sequelize','sendStatus'];(function(_0x5a0a4f,_0x553af5){const _0x5b6fb9=function(_0x26c967){while(--_0x26c967){_0x5a0a4f['push'](_0x5a0a4f['shift']());}};_0x5b6fb9(++_0x553af5);}(a359_0x553a,0x15e));const a359_0x5b6f=function(_0x5a0a4f,_0x553af5){_0x5a0a4f=_0x5a0a4f-0x0;let _0x5b6fb9=a359_0x553a[_0x5a0a4f];return _0x5b6fb9;};const _0x5d9fa9=a359_0x5b6f;'use strict';const _=require(_0x5d9fa9('0xd')),qs=require(_0x5d9fa9('0x10')),logger=require(_0x5d9fa9('0xb'))(_0x5d9fa9('0x29')),db=require(_0x5d9fa9('0x4'))['db'],{Op}=require(_0x5d9fa9('0x1a'));function respondWithResult(_0x26c967,_0x367ea3){return _0x367ea3=_0x367ea3||0xc8,function(_0x54188c){const _0x16f3b6=a359_0x5b6f;if(_0x54188c)return _0x26c967['status'](_0x367ea3)[_0x16f3b6('0x33')](_0x54188c);};}function respondWithFilteredResult(_0x45ad1c,_0x2f8a17){return function(_0xa40220){const _0x347ae0=a359_0x5b6f;if(_0xa40220){const _0x1478ab=_0xa40220[_0x347ae0('0x1e')],_0x5a0a53=_0x2f8a17[_0x347ae0('0x32')];let _0x1a0ec9=_0x2f8a17[_0x347ae0('0x32')]+_0x2f8a17[_0x347ae0('0x1c')],_0x38199c;return _0x1a0ec9>=_0x1478ab?(_0x1a0ec9=_0x1478ab,_0x38199c=0xc8):_0x38199c=0xce,_0x45ad1c[_0x347ae0('0x31')](_0x38199c),_0x45ad1c[_0x347ae0('0x23')]('Content-Range',_0x5a0a53+'-'+_0x1a0ec9+'/'+_0x1478ab)[_0x347ae0('0x33')](_0xa40220);}return null;};}function saveUpdates(_0x233ef3){return function(_0x29e6dd){const _0x41d47d=a359_0x5b6f;if(_0x29e6dd)return _0x29e6dd[_0x41d47d('0x26')](_0x233ef3)['then'](function(_0x596f10){return _0x596f10;});return null;};}function removeEntity(_0x24782c){return function(_0x1a1d2d){const _0x51599a=a359_0x5b6f;if(_0x1a1d2d)return _0x1a1d2d[_0x51599a('0x19')]()[_0x51599a('0x20')](function(){_0x24782c['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x6a01cd){return function(_0x5bad3d){const _0x267a8f=a359_0x5b6f;return!_0x5bad3d&&_0x6a01cd[_0x267a8f('0x1b')](0x194),_0x5bad3d;};}function handleError(_0x31719f,_0x45ea67){return _0x45ea67=_0x45ea67||0x1f4,function(_0x56c7ae){const _0x28c740=a359_0x5b6f;logger[_0x28c740('0x2')](_0x56c7ae[_0x28c740('0x2b')]),_0x56c7ae['name']&&delete _0x56c7ae[_0x28c740('0x21')],_0x31719f[_0x28c740('0x31')](_0x45ea67)[_0x28c740('0xe')](_0x56c7ae);};}exports[_0x5d9fa9('0x25')]=function(_0x50c119,_0x4d5eed){const _0x28c658=_0x5d9fa9;let _0x39e43e={};const _0x55a11d={},_0x1910c7={'count':0x0,'rows':[]},_0x453cf6=_[_0x28c658('0x5')](db[_0x28c658('0x7')][_0x28c658('0x34')],function(_0x5766d4){const _0xc2c586=_0x28c658;return{'name':_0x5766d4['fieldName'],'type':_0x5766d4[_0xc2c586('0xc')][_0xc2c586('0x15')]};});_0x55a11d[_0x28c658('0x14')]=_[_0x28c658('0x5')](_0x453cf6,'name'),_0x55a11d['query']=_['keys'](_0x50c119[_0x28c658('0x2e')]),_0x55a11d[_0x28c658('0x11')]=_[_0x28c658('0x28')](_0x55a11d['model'],_0x55a11d[_0x28c658('0x2e')]),_0x39e43e[_0x28c658('0x12')]=_['intersection'](_0x55a11d['model'],qs[_0x28c658('0xa')](_0x50c119[_0x28c658('0x2e')][_0x28c658('0xa')])),_0x39e43e[_0x28c658('0x12')]=_0x39e43e[_0x28c658('0x12')]['length']?_0x39e43e[_0x28c658('0x12')]:_0x55a11d[_0x28c658('0x14')];typeof _0x50c119[_0x28c658('0x2e')][_0x28c658('0x6')]===_0x28c658('0xf')&&(_0x39e43e[_0x28c658('0x1c')]=qs[_0x28c658('0x1c')](_0x50c119['query']['limit']),_0x39e43e[_0x28c658('0x32')]=qs[_0x28c658('0x32')](_0x50c119[_0x28c658('0x2e')][_0x28c658('0x32')]));_0x39e43e[_0x28c658('0x27')]=qs['sort'](_0x50c119[_0x28c658('0x2e')][_0x28c658('0x17')]),_0x39e43e[_0x28c658('0x9')]=qs['filters'](_[_0x28c658('0x35')](_0x50c119[_0x28c658('0x2e')],_0x55a11d[_0x28c658('0x11')]),_0x453cf6);_0x50c119[_0x28c658('0x2e')][_0x28c658('0x1')]&&(_0x39e43e[_0x28c658('0x9')]=_['merge'](_0x39e43e['where'],{[Op['or']]:_['map'](_0x453cf6,function(_0x5656e2){const _0x4c438d=_0x28c658;if(_0x5656e2[_0x4c438d('0xc')]!==_0x4c438d('0x16')){const _0x59f8af={};return _0x59f8af[_0x5656e2[_0x4c438d('0x21')]]={[Op[_0x4c438d('0x3')]]:'%'+_0x50c119['query'][_0x4c438d('0x1')]+'%'},_0x59f8af;}})}));_0x39e43e=_[_0x28c658('0x18')]({},_0x39e43e,_0x50c119['options']);const _0x1c98a6={'where':_0x39e43e[_0x28c658('0x9')]};return db[_0x28c658('0x7')][_0x28c658('0x1e')](_0x1c98a6)[_0x28c658('0x20')](function(_0x285004){const _0x580216=_0x28c658;return _0x1910c7[_0x580216('0x1e')]=_0x285004,_0x50c119['query'][_0x580216('0x22')]&&(_0x39e43e['include']=[{'all':!![]}]),db[_0x580216('0x7')][_0x580216('0x2a')](_0x39e43e);})['then'](function(_0x20094e){const _0x13e334=_0x28c658;return _0x1910c7[_0x13e334('0x2f')]=_0x20094e,_0x1910c7;})['then'](respondWithFilteredResult(_0x4d5eed,_0x39e43e))[_0x28c658('0x2d')](handleError(_0x4d5eed,null));},exports['show']=function(_0x1c8045,_0x2fc17b){const _0xf771da=_0x5d9fa9;let _0x39b9d5={'raw':![],'where':{'id':_0x1c8045[_0xf771da('0x8')]['id']}};const _0x1023ef={};return _0x1023ef['model']=_[_0xf771da('0x1d')](db[_0xf771da('0x7')][_0xf771da('0x34')]),_0x1023ef[_0xf771da('0x2e')]=_[_0xf771da('0x1d')](_0x1c8045[_0xf771da('0x2e')]),_0x1023ef[_0xf771da('0x11')]=_[_0xf771da('0x28')](_0x1023ef[_0xf771da('0x14')],_0x1023ef[_0xf771da('0x2e')]),_0x39b9d5['attributes']=_['intersection'](_0x1023ef[_0xf771da('0x14')],qs[_0xf771da('0xa')](_0x1c8045[_0xf771da('0x2e')][_0xf771da('0xa')])),_0x39b9d5[_0xf771da('0x12')]=_0x39b9d5['attributes'][_0xf771da('0x1f')]?_0x39b9d5[_0xf771da('0x12')]:_0x1023ef[_0xf771da('0x14')],_0x1c8045['query']['includeAll']&&(_0x39b9d5[_0xf771da('0x0')]=[{'all':!![]}]),_0x39b9d5=_['merge']({},_0x39b9d5,_0x1c8045[_0xf771da('0x24')]),db[_0xf771da('0x7')][_0xf771da('0x13')](_0x39b9d5)[_0xf771da('0x20')](handleEntityNotFound(_0x2fc17b,null))['then'](respondWithResult(_0x2fc17b,null))['catch'](handleError(_0x2fc17b,null));},exports['create']=function(_0x3af260,_0x151cf0){const _0x54bf86=_0x5d9fa9;return db[_0x54bf86('0x7')][_0x54bf86('0x2c')](_0x3af260[_0x54bf86('0x30')],{})['then'](respondWithResult(_0x151cf0,0xc9))['catch'](handleError(_0x151cf0,null));},exports['update']=function(_0x2159f4,_0xe4a6cc){const _0x4e56e9=_0x5d9fa9;return _0x2159f4[_0x4e56e9('0x30')]['id']&&delete _0x2159f4[_0x4e56e9('0x30')]['id'],db[_0x4e56e9('0x7')][_0x4e56e9('0x13')]({'where':{'id':_0x2159f4[_0x4e56e9('0x8')]['id']}})['then'](handleEntityNotFound(_0xe4a6cc,null))[_0x4e56e9('0x20')](saveUpdates(_0x2159f4[_0x4e56e9('0x30')],null))['then'](respondWithResult(_0xe4a6cc,null))[_0x4e56e9('0x2d')](handleError(_0xe4a6cc,null));},exports[_0x5d9fa9('0x19')]=function(_0x4cd6b6,_0x19b80c){const _0xe33b82=_0x5d9fa9;return db[_0xe33b82('0x7')][_0xe33b82('0x13')]({'where':{'id':_0x4cd6b6[_0xe33b82('0x8')]['id']}})[_0xe33b82('0x20')](handleEntityNotFound(_0x19b80c,null))[_0xe33b82('0x20')](removeEntity(_0x19b80c,null))['catch'](handleError(_0x19b80c,null));}; \ No newline at end of file diff --git a/server/api/integration/integration.model.js b/server/api/integration/integration.model.js index 1566337..8be28c3 100644 --- a/server/api/integration/integration.model.js +++ b/server/api/integration/integration.model.js @@ -1 +1 @@ -const a360_0x3e4a=['integrations','define','./integration.attributes','Integration','exports'];(function(_0x1c2fe7,_0x3e4ac3){const _0x51e3e6=function(_0x348e58){while(--_0x348e58){_0x1c2fe7['push'](_0x1c2fe7['shift']());}};_0x51e3e6(++_0x3e4ac3);}(a360_0x3e4a,0x14a));const a360_0x51e3=function(_0x1c2fe7,_0x3e4ac3){_0x1c2fe7=_0x1c2fe7-0x0;let _0x51e3e6=a360_0x3e4a[_0x1c2fe7];return _0x51e3e6;};const _0x16a607=a360_0x51e3;'use strict';const attributes=require(_0x16a607('0x2'));module[_0x16a607('0x4')]=function(_0x348e58){const _0x4751ad=_0x16a607,_0x3652e6=_0x348e58[_0x4751ad('0x1')](_0x4751ad('0x3'),attributes,{'tableName':_0x4751ad('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3652e6;}; \ No newline at end of file +const a360_0x4343=['exports','./integration.attributes','define','integrations'];(function(_0x45787d,_0x43439b){const _0x13213d=function(_0x797a06){while(--_0x797a06){_0x45787d['push'](_0x45787d['shift']());}};_0x13213d(++_0x43439b);}(a360_0x4343,0x81));const a360_0x1321=function(_0x45787d,_0x43439b){_0x45787d=_0x45787d-0x0;let _0x13213d=a360_0x4343[_0x45787d];return _0x13213d;};const _0xa866ac=a360_0x1321;'use strict';const attributes=require(_0xa866ac('0x0'));module[_0xa866ac('0x3')]=function(_0x797a06){const _0x51a7ae=_0xa866ac,_0x27a997=_0x797a06[_0x51a7ae('0x1')]('Integration',attributes,{'tableName':_0x51a7ae('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x27a997;}; \ No newline at end of file diff --git a/server/api/integrationReport/index.js b/server/api/integrationReport/index.js index 2d80538..ef6e21e 100644 --- a/server/api/integrationReport/index.js +++ b/server/api/integrationReport/index.js @@ -1 +1 @@ -const a361_0x1ca4=['/:id','Router','express','../../components/auth/service','destroy','./integrationReport.controller','index','show','/describe','get','isAuthenticated','put','post','create','delete'];(function(_0xb43ea6,_0x1ca4f8){const _0x628070=function(_0x2df686){while(--_0x2df686){_0xb43ea6['push'](_0xb43ea6['shift']());}};_0x628070(++_0x1ca4f8);}(a361_0x1ca4,0x19e));const a361_0x6280=function(_0xb43ea6,_0x1ca4f8){_0xb43ea6=_0xb43ea6-0x0;let _0x628070=a361_0x1ca4[_0xb43ea6];return _0x628070;};const _0x30cf56=a361_0x6280;'use strict';const express=require(_0x30cf56('0x8')),router=express[_0x30cf56('0x7')](),auth=require(_0x30cf56('0x9')),controller=require(_0x30cf56('0xb'));router['get']('/',auth['isAuthenticated'](),controller[_0x30cf56('0xc')]),router[_0x30cf56('0x0')](_0x30cf56('0xe'),auth[_0x30cf56('0x1')](),controller['describe']),router[_0x30cf56('0x0')]('/:id',auth[_0x30cf56('0x1')](),controller[_0x30cf56('0xd')]),router[_0x30cf56('0x3')]('/',auth[_0x30cf56('0x1')](),controller[_0x30cf56('0x4')]),router[_0x30cf56('0x2')]('/:id',auth[_0x30cf56('0x1')](),controller['update']),router[_0x30cf56('0x5')](_0x30cf56('0x6'),auth['isAuthenticated'](),controller[_0x30cf56('0xa')]),module['exports']=router; \ No newline at end of file +const a361_0x4b46=['describe','/:id','post','destroy','create','./integrationReport.controller','express','/describe','update','Router','isAuthenticated','index','exports','get'];(function(_0x1a1fbe,_0x4b464b){const _0x4a96b0=function(_0x2d9674){while(--_0x2d9674){_0x1a1fbe['push'](_0x1a1fbe['shift']());}};_0x4a96b0(++_0x4b464b);}(a361_0x4b46,0x1ee));const a361_0x4a96=function(_0x1a1fbe,_0x4b464b){_0x1a1fbe=_0x1a1fbe-0x0;let _0x4a96b0=a361_0x4b46[_0x1a1fbe];return _0x4a96b0;};const _0x3059b1=a361_0x4a96;'use strict';const express=require(_0x3059b1('0x2')),router=express[_0x3059b1('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x3059b1('0x1'));router[_0x3059b1('0x9')]('/',auth[_0x3059b1('0x6')](),controller[_0x3059b1('0x7')]),router[_0x3059b1('0x9')](_0x3059b1('0x3'),auth[_0x3059b1('0x6')](),controller[_0x3059b1('0xa')]),router[_0x3059b1('0x9')](_0x3059b1('0xb'),auth[_0x3059b1('0x6')](),controller['show']),router[_0x3059b1('0xc')]('/',auth[_0x3059b1('0x6')](),controller[_0x3059b1('0x0')]),router['put']('/:id',auth[_0x3059b1('0x6')](),controller[_0x3059b1('0x4')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x3059b1('0xd')]),module[_0x3059b1('0x8')]=router; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.attributes.js b/server/api/integrationReport/integrationReport.attributes.js index 76eb414..35c9e4f 100644 --- a/server/api/integrationReport/integrationReport.attributes.js +++ b/server/api/integrationReport/integrationReport.attributes.js @@ -1 +1 @@ -const a362_0x57c4=['FAILED','SENT','INTEGER','TEXT','STRING','ENUM','sequelize','exports','DATE','RECEIVED','BOOLEAN'];(function(_0x4b8035,_0x57c429){const _0x2f48e5=function(_0x35e601){while(--_0x35e601){_0x4b8035['push'](_0x4b8035['shift']());}};_0x2f48e5(++_0x57c429);}(a362_0x57c4,0x94));const a362_0x2f48=function(_0x4b8035,_0x57c429){_0x4b8035=_0x4b8035-0x0;let _0x2f48e5=a362_0x57c4[_0x4b8035];return _0x2f48e5;};const _0x236680=a362_0x2f48;'use strict';const Sequelize=require(_0x236680('0x1'));module[_0x236680('0x2')]={'integration':{'type':Sequelize[_0x236680('0xa')]},'eventChannel':{'type':Sequelize['STRING']},'exitStatus':{'type':Sequelize[_0x236680('0xa')]},'ticketId':{'type':Sequelize[_0x236680('0xa')]},'integrationId':{'type':Sequelize['INTEGER']},'contacts':{'type':Sequelize[_0x236680('0xa')]},'uniqueid':{'type':Sequelize[_0x236680('0xa')]},'calleridnum':{'type':Sequelize[_0x236680('0xa')]},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x236680('0xa')]},'interface':{'type':Sequelize[_0x236680('0xa')]},'membername':{'type':Sequelize[_0x236680('0xa')]},'agentcalledAt':{'type':Sequelize[_0x236680('0x3')]},'agentconnectAt':{'type':Sequelize[_0x236680('0x3')]},'holdtime':{'type':Sequelize[_0x236680('0x8')]},'agentcomplete':{'type':Sequelize[_0x236680('0x5')],'defaultValue':![]},'agentcompleteAt':{'type':Sequelize[_0x236680('0x3')]},'talktime':{'type':Sequelize['INTEGER']},'agentacw':{'type':Sequelize[_0x236680('0x5')],'defaultValue':![]},'acwtime':{'type':Sequelize[_0x236680('0x8')]},'reason':{'type':Sequelize[_0x236680('0xa')]},'agentringnoanswer':{'type':Sequelize[_0x236680('0x5')],'defaultValue':![]},'agentringnoanswerAt':{'type':Sequelize[_0x236680('0x3')]},'agentdump':{'type':Sequelize[_0x236680('0x5')],'defaultValue':![]},'agentdumpAt':{'type':Sequelize['DATE']},'lastevent':{'type':Sequelize[_0x236680('0xa')]},'channel':{'type':Sequelize['STRING']},'channelstate':{'type':Sequelize[_0x236680('0x8')]},'channelstatedesc':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x236680('0xa')]},'language':{'type':Sequelize[_0x236680('0xa')]},'accountcode':{'type':Sequelize[_0x236680('0xa')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x236680('0xa')]},'priority':{'type':Sequelize[_0x236680('0xa')]},'destchannel':{'type':Sequelize[_0x236680('0xa')]},'destchannelstate':{'type':Sequelize[_0x236680('0x8')]},'destchannelstatedesc':{'type':Sequelize[_0x236680('0xa')]},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize[_0x236680('0xa')]},'destconnectedlinenum':{'type':Sequelize[_0x236680('0xa')]},'destconnectedlinename':{'type':Sequelize['STRING']},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize['STRING']},'destcontext':{'type':Sequelize[_0x236680('0xa')]},'destexten':{'type':Sequelize[_0x236680('0xa')]},'destpriority':{'type':Sequelize[_0x236680('0xa')]},'destuniqueid':{'type':Sequelize['STRING']},'messageId':{'type':Sequelize[_0x236680('0xa')]},'inReplyTo':{'type':Sequelize[_0x236680('0xa')]},'subject':{'type':Sequelize[_0x236680('0xa')]},'from':{'type':Sequelize[_0x236680('0xa')]},'to':{'type':Sequelize[_0x236680('0xa')]},'cc':{'type':Sequelize[_0x236680('0xa')]},'attachment':{'type':Sequelize['TEXT']},'html':{'type':Sequelize[_0x236680('0x9')]},'text':{'type':Sequelize[_0x236680('0x9')]},'status':{'type':Sequelize[_0x236680('0x0')](_0x236680('0x7'),'SENDING',_0x236680('0x4'),_0x236680('0x6'))},'url':{'type':Sequelize[_0x236680('0xa')]},'app':{'type':Sequelize['STRING']},'appdata':{'type':Sequelize[_0x236680('0xa')]},'projectId':{'type':Sequelize[_0x236680('0x8')]}}; \ No newline at end of file +const a362_0x4516=['BOOLEAN','sequelize','ENUM','STRING','RECEIVED','TEXT','SENDING','INTEGER','DATE','SENT'];(function(_0x2e9e28,_0x451601){const _0x214105=function(_0x4193fe){while(--_0x4193fe){_0x2e9e28['push'](_0x2e9e28['shift']());}};_0x214105(++_0x451601);}(a362_0x4516,0x1eb));const a362_0x2141=function(_0x2e9e28,_0x451601){_0x2e9e28=_0x2e9e28-0x0;let _0x214105=a362_0x4516[_0x2e9e28];return _0x214105;};const _0x3f439c=a362_0x2141;'use strict';const Sequelize=require(_0x3f439c('0x0'));module['exports']={'integration':{'type':Sequelize[_0x3f439c('0x2')]},'eventChannel':{'type':Sequelize[_0x3f439c('0x2')]},'exitStatus':{'type':Sequelize[_0x3f439c('0x2')]},'ticketId':{'type':Sequelize[_0x3f439c('0x2')]},'integrationId':{'type':Sequelize[_0x3f439c('0x6')]},'contacts':{'type':Sequelize[_0x3f439c('0x2')]},'uniqueid':{'type':Sequelize[_0x3f439c('0x2')]},'calleridnum':{'type':Sequelize[_0x3f439c('0x2')]},'calleridname':{'type':Sequelize[_0x3f439c('0x2')]},'queue':{'type':Sequelize[_0x3f439c('0x2')]},'interface':{'type':Sequelize[_0x3f439c('0x2')]},'membername':{'type':Sequelize[_0x3f439c('0x2')]},'agentcalledAt':{'type':Sequelize[_0x3f439c('0x7')]},'agentconnectAt':{'type':Sequelize[_0x3f439c('0x7')]},'holdtime':{'type':Sequelize[_0x3f439c('0x6')]},'agentcomplete':{'type':Sequelize[_0x3f439c('0x9')],'defaultValue':![]},'agentcompleteAt':{'type':Sequelize[_0x3f439c('0x7')]},'talktime':{'type':Sequelize[_0x3f439c('0x6')]},'agentacw':{'type':Sequelize[_0x3f439c('0x9')],'defaultValue':![]},'acwtime':{'type':Sequelize['INTEGER']},'reason':{'type':Sequelize[_0x3f439c('0x2')]},'agentringnoanswer':{'type':Sequelize[_0x3f439c('0x9')],'defaultValue':![]},'agentringnoanswerAt':{'type':Sequelize['DATE']},'agentdump':{'type':Sequelize[_0x3f439c('0x9')],'defaultValue':![]},'agentdumpAt':{'type':Sequelize[_0x3f439c('0x7')]},'lastevent':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x3f439c('0x2')]},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0x3f439c('0x2')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x3f439c('0x2')]},'language':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x3f439c('0x2')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x3f439c('0x2')]},'priority':{'type':Sequelize[_0x3f439c('0x2')]},'destchannel':{'type':Sequelize[_0x3f439c('0x2')]},'destchannelstate':{'type':Sequelize[_0x3f439c('0x6')]},'destchannelstatedesc':{'type':Sequelize[_0x3f439c('0x2')]},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize[_0x3f439c('0x2')]},'destconnectedlinenum':{'type':Sequelize[_0x3f439c('0x2')]},'destconnectedlinename':{'type':Sequelize[_0x3f439c('0x2')]},'destlanguage':{'type':Sequelize[_0x3f439c('0x2')]},'destaccountcode':{'type':Sequelize['STRING']},'destcontext':{'type':Sequelize[_0x3f439c('0x2')]},'destexten':{'type':Sequelize['STRING']},'destpriority':{'type':Sequelize[_0x3f439c('0x2')]},'destuniqueid':{'type':Sequelize[_0x3f439c('0x2')]},'messageId':{'type':Sequelize[_0x3f439c('0x2')]},'inReplyTo':{'type':Sequelize['STRING']},'subject':{'type':Sequelize[_0x3f439c('0x2')]},'from':{'type':Sequelize[_0x3f439c('0x2')]},'to':{'type':Sequelize[_0x3f439c('0x2')]},'cc':{'type':Sequelize['STRING']},'attachment':{'type':Sequelize[_0x3f439c('0x4')]},'html':{'type':Sequelize[_0x3f439c('0x4')]},'text':{'type':Sequelize['TEXT']},'status':{'type':Sequelize[_0x3f439c('0x1')](_0x3f439c('0x8'),_0x3f439c('0x5'),_0x3f439c('0x3'),'FAILED')},'url':{'type':Sequelize[_0x3f439c('0x2')]},'app':{'type':Sequelize[_0x3f439c('0x2')]},'appdata':{'type':Sequelize['STRING']},'projectId':{'type':Sequelize[_0x3f439c('0x6')]}}; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.controller.js b/server/api/integrationReport/integrationReport.controller.js index 7f0d9c4..b9151d9 100644 --- a/server/api/integrationReport/integrationReport.controller.js +++ b/server/api/integrationReport/integrationReport.controller.js @@ -1 +1 @@ -const a363_0x4dd4=['map','count','type','VIRTUAL','attributes','name','rows','json','findAll','sendStatus','undefined','query','order','filter','sort','keys','describe','findOne','params','include','fields','rawAttributes','like','send','set','merge','status','error','index','IntegrationReport','end','update','sequelize','../../mysqldb','filters','lodash','key','offset','destroy','then','limit','show','includeAll','where','nolimit','../../components/parsers/qs','catch','model','intersection','length','body','fieldName','options'];(function(_0xcbfe0,_0x4dd47f){const _0x2179e1=function(_0x268a4c){while(--_0x268a4c){_0xcbfe0['push'](_0xcbfe0['shift']());}};_0x2179e1(++_0x4dd47f);}(a363_0x4dd4,0x197));const a363_0x2179=function(_0xcbfe0,_0x4dd47f){_0xcbfe0=_0xcbfe0-0x0;let _0x2179e1=a363_0x4dd4[_0xcbfe0];return _0x2179e1;};const _0x4d490b=a363_0x2179;'use strict';const _=require(_0x4d490b('0x34')),qs=require(_0x4d490b('0x9')),logger=require('../../config/logger')('api'),db=require(_0x4d490b('0x32'))['db'],{Op}=require(_0x4d490b('0x31'));function respondWithResult(_0x268a4c,_0x4beb35){return _0x4beb35=_0x4beb35||0xc8,function(_0x411988){const _0x2da3e4=a363_0x2179;if(_0x411988)return _0x268a4c['status'](_0x4beb35)[_0x2da3e4('0x18')](_0x411988);};}function respondWithFilteredResult(_0x14aaf0,_0x9b3ada){return function(_0x383cfc){const _0x14e847=a363_0x2179;if(_0x383cfc){const _0x27ae6c=_0x383cfc[_0x14e847('0x12')],_0x148805=_0x9b3ada[_0x14e847('0x1')];let _0x49d3c0=_0x9b3ada[_0x14e847('0x1')]+_0x9b3ada[_0x14e847('0x4')],_0x4a29e2;return _0x49d3c0>=_0x27ae6c?(_0x49d3c0=_0x27ae6c,_0x4a29e2=0xc8):_0x4a29e2=0xce,_0x14aaf0[_0x14e847('0x2b')](_0x4a29e2),_0x14aaf0[_0x14e847('0x29')]('Content-Range',_0x148805+'-'+_0x49d3c0+'/'+_0x27ae6c)['json'](_0x383cfc);}return null;};}function saveUpdates(_0x19688d){return function(_0x25a89f){const _0x5126b4=a363_0x2179;if(_0x25a89f)return _0x25a89f[_0x5126b4('0x30')](_0x19688d)[_0x5126b4('0x3')](function(_0x38f180){return _0x38f180;});return null;};}function removeEntity(_0x236bc7){return function(_0x29b4bc){const _0x472d1f=a363_0x2179;if(_0x29b4bc)return _0x29b4bc['destroy']()[_0x472d1f('0x3')](function(){const _0x104462=_0x472d1f;_0x236bc7['status'](0xcc)[_0x104462('0x2f')]();});};}function handleEntityNotFound(_0x45785e){return function(_0x389192){const _0x1b1b35=a363_0x2179;return!_0x389192&&_0x45785e[_0x1b1b35('0x1a')](0x194),_0x389192;};}function handleError(_0x1f8b6e,_0x50f5b4){return _0x50f5b4=_0x50f5b4||0x1f4,function(_0x1d97d2){const _0x61105d=a363_0x2179;logger[_0x61105d('0x2c')](_0x1d97d2['stack']),_0x1d97d2['name']&&delete _0x1d97d2[_0x61105d('0x16')],_0x1f8b6e[_0x61105d('0x2b')](_0x50f5b4)[_0x61105d('0x28')](_0x1d97d2);};}exports[_0x4d490b('0x2d')]=function(_0x3832c7,_0x22dfe){const _0x2432a2=_0x4d490b;let _0x3f7f67={};const _0x36741f={},_0x4cb681={'count':0x0,'rows':[]},_0x26d76a=_['map'](db[_0x2432a2('0x2e')][_0x2432a2('0x26')],function(_0x3525cb){const _0x31d8e7=_0x2432a2;return{'name':_0x3525cb[_0x31d8e7('0xf')],'type':_0x3525cb[_0x31d8e7('0x13')][_0x31d8e7('0x0')]};});_0x36741f['model']=_[_0x2432a2('0x11')](_0x26d76a,_0x2432a2('0x16')),_0x36741f['query']=_[_0x2432a2('0x20')](_0x3832c7[_0x2432a2('0x1c')]),_0x36741f[_0x2432a2('0x33')]=_[_0x2432a2('0xc')](_0x36741f['model'],_0x36741f['query']),_0x3f7f67[_0x2432a2('0x15')]=_[_0x2432a2('0xc')](_0x36741f['model'],qs[_0x2432a2('0x25')](_0x3832c7['query']['fields'])),_0x3f7f67[_0x2432a2('0x15')]=_0x3f7f67[_0x2432a2('0x15')][_0x2432a2('0xd')]?_0x3f7f67[_0x2432a2('0x15')]:_0x36741f[_0x2432a2('0xb')];typeof _0x3832c7['query'][_0x2432a2('0x8')]===_0x2432a2('0x1b')&&(_0x3f7f67[_0x2432a2('0x4')]=qs[_0x2432a2('0x4')](_0x3832c7[_0x2432a2('0x1c')][_0x2432a2('0x4')]),_0x3f7f67[_0x2432a2('0x1')]=qs['offset'](_0x3832c7[_0x2432a2('0x1c')][_0x2432a2('0x1')]));_0x3f7f67[_0x2432a2('0x1d')]=qs[_0x2432a2('0x1f')](_0x3832c7[_0x2432a2('0x1c')][_0x2432a2('0x1f')]),_0x3f7f67[_0x2432a2('0x7')]=qs[_0x2432a2('0x33')](_['pick'](_0x3832c7[_0x2432a2('0x1c')],_0x36741f[_0x2432a2('0x33')]),_0x26d76a);_0x3832c7[_0x2432a2('0x1c')][_0x2432a2('0x1e')]&&(_0x3f7f67[_0x2432a2('0x7')]=_[_0x2432a2('0x2a')](_0x3f7f67[_0x2432a2('0x7')],{[Op['or']]:_[_0x2432a2('0x11')](_0x26d76a,function(_0xe0e993){const _0x1aa500=_0x2432a2;if(_0xe0e993[_0x1aa500('0x13')]!==_0x1aa500('0x14')){const _0x854137={};return _0x854137[_0xe0e993[_0x1aa500('0x16')]]={[Op[_0x1aa500('0x27')]]:'%'+_0x3832c7[_0x1aa500('0x1c')][_0x1aa500('0x1e')]+'%'},_0x854137;}})}));_0x3f7f67=_['merge']({},_0x3f7f67,_0x3832c7[_0x2432a2('0x10')]);const _0x3a9869={'where':_0x3f7f67[_0x2432a2('0x7')]};return db['IntegrationReport'][_0x2432a2('0x12')](_0x3a9869)[_0x2432a2('0x3')](function(_0x241c4d){const _0xeaff45=_0x2432a2;return _0x4cb681['count']=_0x241c4d,_0x3832c7[_0xeaff45('0x1c')][_0xeaff45('0x6')]&&(_0x3f7f67[_0xeaff45('0x24')]=[{'all':!![]}]),db[_0xeaff45('0x2e')][_0xeaff45('0x19')](_0x3f7f67);})['then'](function(_0x4f9494){const _0x42806b=_0x2432a2;return _0x4cb681[_0x42806b('0x17')]=_0x4f9494,_0x4cb681;})['then'](respondWithFilteredResult(_0x22dfe,_0x3f7f67))[_0x2432a2('0xa')](handleError(_0x22dfe,null));},exports[_0x4d490b('0x5')]=function(_0x478f59,_0x94c898){const _0x32e6c5=_0x4d490b;let _0x349ef8={'raw':![],'where':{'id':_0x478f59[_0x32e6c5('0x23')]['id']}};const _0x46819e={};return _0x46819e[_0x32e6c5('0xb')]=_[_0x32e6c5('0x20')](db[_0x32e6c5('0x2e')]['rawAttributes']),_0x46819e[_0x32e6c5('0x1c')]=_['keys'](_0x478f59[_0x32e6c5('0x1c')]),_0x46819e[_0x32e6c5('0x33')]=_[_0x32e6c5('0xc')](_0x46819e[_0x32e6c5('0xb')],_0x46819e[_0x32e6c5('0x1c')]),_0x349ef8[_0x32e6c5('0x15')]=_[_0x32e6c5('0xc')](_0x46819e[_0x32e6c5('0xb')],qs['fields'](_0x478f59[_0x32e6c5('0x1c')]['fields'])),_0x349ef8[_0x32e6c5('0x15')]=_0x349ef8[_0x32e6c5('0x15')][_0x32e6c5('0xd')]?_0x349ef8[_0x32e6c5('0x15')]:_0x46819e[_0x32e6c5('0xb')],_0x478f59[_0x32e6c5('0x1c')][_0x32e6c5('0x6')]&&(_0x349ef8[_0x32e6c5('0x24')]=[{'all':!![]}]),_0x349ef8=_[_0x32e6c5('0x2a')]({},_0x349ef8,_0x478f59[_0x32e6c5('0x10')]),db[_0x32e6c5('0x2e')][_0x32e6c5('0x22')](_0x349ef8)[_0x32e6c5('0x3')](handleEntityNotFound(_0x94c898,null))[_0x32e6c5('0x3')](respondWithResult(_0x94c898,null))['catch'](handleError(_0x94c898,null));},exports['create']=function(_0x3c842b,_0x5705c0){const _0x200108=_0x4d490b;return db[_0x200108('0x2e')]['create'](_0x3c842b[_0x200108('0xe')],{})[_0x200108('0x3')](respondWithResult(_0x5705c0,0xc9))['catch'](handleError(_0x5705c0,null));},exports[_0x4d490b('0x30')]=function(_0x58dd96,_0x4db912){const _0x3857ba=_0x4d490b;return _0x58dd96[_0x3857ba('0xe')]['id']&&delete _0x58dd96[_0x3857ba('0xe')]['id'],db[_0x3857ba('0x2e')]['findOne']({'where':{'id':_0x58dd96['params']['id']}})['then'](handleEntityNotFound(_0x4db912,null))[_0x3857ba('0x3')](saveUpdates(_0x58dd96[_0x3857ba('0xe')],null))['then'](respondWithResult(_0x4db912,null))[_0x3857ba('0xa')](handleError(_0x4db912,null));},exports[_0x4d490b('0x2')]=function(_0x13168d,_0x280c1f){const _0x4387f2=_0x4d490b;return db[_0x4387f2('0x2e')][_0x4387f2('0x22')]({'where':{'id':_0x13168d['params']['id']}})['then'](handleEntityNotFound(_0x280c1f,null))['then'](removeEntity(_0x280c1f,null))[_0x4387f2('0xa')](handleError(_0x280c1f,null));},exports['describe']=function(_0x479a53,_0x557a2a){const _0x2c9717=_0x4d490b;return db[_0x2c9717('0x2e')][_0x2c9717('0x21')]()[_0x2c9717('0x3')](respondWithResult(_0x557a2a,null))[_0x2c9717('0xa')](handleError(_0x557a2a,null));}; \ No newline at end of file +const a363_0x52ff=['map','query','model','where','describe','limit','Content-Range','status','options','offset','catch','stack','lodash','rawAttributes','merge','count','length','../../mysqldb','update','order','show','undefined','attributes','VIRTUAL','include','sort','api','create','intersection','includeAll','params','type','error','nolimit','keys','like','IntegrationReport','pick','findAll','findOne','fields','rows','sequelize','destroy','body','filter','json','name','then','end','set','filters'];(function(_0x3504ae,_0x52ff16){const _0x36fb2f=function(_0x56bffc){while(--_0x56bffc){_0x3504ae['push'](_0x3504ae['shift']());}};_0x36fb2f(++_0x52ff16);}(a363_0x52ff,0xbc));const a363_0x36fb=function(_0x3504ae,_0x52ff16){_0x3504ae=_0x3504ae-0x0;let _0x36fb2f=a363_0x52ff[_0x3504ae];return _0x36fb2f;};const _0x5a1293=a363_0x36fb;'use strict';const _=require(_0x5a1293('0x20')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x5a1293('0x2e')),db=require(_0x5a1293('0x25'))['db'],{Op}=require(_0x5a1293('0xa'));function respondWithResult(_0x56bffc,_0x56d002){return _0x56d002=_0x56d002||0xc8,function(_0x2150bf){const _0x18819f=a363_0x36fb;if(_0x2150bf)return _0x56bffc[_0x18819f('0x1b')](_0x56d002)['json'](_0x2150bf);};}function respondWithFilteredResult(_0x253d6e,_0x51350b){return function(_0x57cbc4){const _0x177f2d=a363_0x36fb;if(_0x57cbc4){const _0x3ebe38=_0x57cbc4[_0x177f2d('0x23')],_0x28c80e=_0x51350b['offset'];let _0x1f9bed=_0x51350b[_0x177f2d('0x1d')]+_0x51350b[_0x177f2d('0x19')],_0x30230c;return _0x1f9bed>=_0x3ebe38?(_0x1f9bed=_0x3ebe38,_0x30230c=0xc8):_0x30230c=0xce,_0x253d6e[_0x177f2d('0x1b')](_0x30230c),_0x253d6e[_0x177f2d('0x12')](_0x177f2d('0x1a'),_0x28c80e+'-'+_0x1f9bed+'/'+_0x3ebe38)[_0x177f2d('0xe')](_0x57cbc4);}return null;};}function saveUpdates(_0x141c9b){return function(_0x2883d5){const _0xbf4cb4=a363_0x36fb;if(_0x2883d5)return _0x2883d5[_0xbf4cb4('0x26')](_0x141c9b)[_0xbf4cb4('0x10')](function(_0x27214a){return _0x27214a;});return null;};}function removeEntity(_0x431a6e){return function(_0x21cd37){const _0x4b8f3e=a363_0x36fb;if(_0x21cd37)return _0x21cd37[_0x4b8f3e('0xb')]()[_0x4b8f3e('0x10')](function(){const _0x53edc2=_0x4b8f3e;_0x431a6e[_0x53edc2('0x1b')](0xcc)[_0x53edc2('0x11')]();});};}function handleEntityNotFound(_0x16800e){return function(_0x149153){return!_0x149153&&_0x16800e['sendStatus'](0x194),_0x149153;};}function handleError(_0x512d40,_0x1777dc){return _0x1777dc=_0x1777dc||0x1f4,function(_0x355458){const _0x48c560=a363_0x36fb;logger[_0x48c560('0x0')](_0x355458[_0x48c560('0x1f')]),_0x355458[_0x48c560('0xf')]&&delete _0x355458[_0x48c560('0xf')],_0x512d40[_0x48c560('0x1b')](_0x1777dc)['send'](_0x355458);};}exports['index']=function(_0x1e5a85,_0x19ea46){const _0x4defd2=_0x5a1293;let _0xf9dfcc={};const _0x23e59c={},_0x1fd9be={'count':0x0,'rows':[]},_0x2fae92=_[_0x4defd2('0x14')](db[_0x4defd2('0x4')][_0x4defd2('0x21')],function(_0x1e2f79){const _0x16b467=_0x4defd2;return{'name':_0x1e2f79['fieldName'],'type':_0x1e2f79[_0x16b467('0x33')]['key']};});_0x23e59c[_0x4defd2('0x16')]=_[_0x4defd2('0x14')](_0x2fae92,'name'),_0x23e59c[_0x4defd2('0x15')]=_['keys'](_0x1e5a85['query']),_0x23e59c['filters']=_[_0x4defd2('0x30')](_0x23e59c[_0x4defd2('0x16')],_0x23e59c[_0x4defd2('0x15')]),_0xf9dfcc[_0x4defd2('0x2a')]=_[_0x4defd2('0x30')](_0x23e59c[_0x4defd2('0x16')],qs['fields'](_0x1e5a85['query'][_0x4defd2('0x8')])),_0xf9dfcc[_0x4defd2('0x2a')]=_0xf9dfcc[_0x4defd2('0x2a')][_0x4defd2('0x24')]?_0xf9dfcc[_0x4defd2('0x2a')]:_0x23e59c[_0x4defd2('0x16')];typeof _0x1e5a85[_0x4defd2('0x15')][_0x4defd2('0x1')]===_0x4defd2('0x29')&&(_0xf9dfcc[_0x4defd2('0x19')]=qs[_0x4defd2('0x19')](_0x1e5a85[_0x4defd2('0x15')][_0x4defd2('0x19')]),_0xf9dfcc['offset']=qs['offset'](_0x1e5a85[_0x4defd2('0x15')][_0x4defd2('0x1d')]));_0xf9dfcc[_0x4defd2('0x27')]=qs[_0x4defd2('0x2d')](_0x1e5a85[_0x4defd2('0x15')]['sort']),_0xf9dfcc['where']=qs[_0x4defd2('0x13')](_[_0x4defd2('0x5')](_0x1e5a85[_0x4defd2('0x15')],_0x23e59c[_0x4defd2('0x13')]),_0x2fae92);_0x1e5a85[_0x4defd2('0x15')]['filter']&&(_0xf9dfcc[_0x4defd2('0x17')]=_['merge'](_0xf9dfcc[_0x4defd2('0x17')],{[Op['or']]:_[_0x4defd2('0x14')](_0x2fae92,function(_0x4a3602){const _0x576640=_0x4defd2;if(_0x4a3602[_0x576640('0x33')]!==_0x576640('0x2b')){const _0x772c2={};return _0x772c2[_0x4a3602[_0x576640('0xf')]]={[Op[_0x576640('0x3')]]:'%'+_0x1e5a85[_0x576640('0x15')][_0x576640('0xd')]+'%'},_0x772c2;}})}));_0xf9dfcc=_['merge']({},_0xf9dfcc,_0x1e5a85[_0x4defd2('0x1c')]);const _0x3bec12={'where':_0xf9dfcc['where']};return db[_0x4defd2('0x4')]['count'](_0x3bec12)[_0x4defd2('0x10')](function(_0x5c4c62){const _0x33652a=_0x4defd2;return _0x1fd9be[_0x33652a('0x23')]=_0x5c4c62,_0x1e5a85[_0x33652a('0x15')][_0x33652a('0x31')]&&(_0xf9dfcc[_0x33652a('0x2c')]=[{'all':!![]}]),db[_0x33652a('0x4')][_0x33652a('0x6')](_0xf9dfcc);})[_0x4defd2('0x10')](function(_0x132fd8){const _0xf1d9fa=_0x4defd2;return _0x1fd9be[_0xf1d9fa('0x9')]=_0x132fd8,_0x1fd9be;})[_0x4defd2('0x10')](respondWithFilteredResult(_0x19ea46,_0xf9dfcc))['catch'](handleError(_0x19ea46,null));},exports[_0x5a1293('0x28')]=function(_0x500902,_0x1cb4dc){const _0x1c0971=_0x5a1293;let _0x41c0d2={'raw':![],'where':{'id':_0x500902[_0x1c0971('0x32')]['id']}};const _0x423f7f={};return _0x423f7f['model']=_[_0x1c0971('0x2')](db[_0x1c0971('0x4')]['rawAttributes']),_0x423f7f['query']=_[_0x1c0971('0x2')](_0x500902[_0x1c0971('0x15')]),_0x423f7f['filters']=_[_0x1c0971('0x30')](_0x423f7f[_0x1c0971('0x16')],_0x423f7f[_0x1c0971('0x15')]),_0x41c0d2['attributes']=_[_0x1c0971('0x30')](_0x423f7f['model'],qs[_0x1c0971('0x8')](_0x500902[_0x1c0971('0x15')][_0x1c0971('0x8')])),_0x41c0d2['attributes']=_0x41c0d2[_0x1c0971('0x2a')][_0x1c0971('0x24')]?_0x41c0d2[_0x1c0971('0x2a')]:_0x423f7f[_0x1c0971('0x16')],_0x500902[_0x1c0971('0x15')][_0x1c0971('0x31')]&&(_0x41c0d2[_0x1c0971('0x2c')]=[{'all':!![]}]),_0x41c0d2=_[_0x1c0971('0x22')]({},_0x41c0d2,_0x500902['options']),db['IntegrationReport'][_0x1c0971('0x7')](_0x41c0d2)[_0x1c0971('0x10')](handleEntityNotFound(_0x1cb4dc,null))[_0x1c0971('0x10')](respondWithResult(_0x1cb4dc,null))[_0x1c0971('0x1e')](handleError(_0x1cb4dc,null));},exports[_0x5a1293('0x2f')]=function(_0x5d9ccf,_0x571cb8){const _0x4c5080=_0x5a1293;return db['IntegrationReport'][_0x4c5080('0x2f')](_0x5d9ccf[_0x4c5080('0xc')],{})[_0x4c5080('0x10')](respondWithResult(_0x571cb8,0xc9))[_0x4c5080('0x1e')](handleError(_0x571cb8,null));},exports[_0x5a1293('0x26')]=function(_0x5c63ed,_0x3c2d7c){const _0x3de4d4=_0x5a1293;return _0x5c63ed['body']['id']&&delete _0x5c63ed[_0x3de4d4('0xc')]['id'],db[_0x3de4d4('0x4')][_0x3de4d4('0x7')]({'where':{'id':_0x5c63ed[_0x3de4d4('0x32')]['id']}})['then'](handleEntityNotFound(_0x3c2d7c,null))[_0x3de4d4('0x10')](saveUpdates(_0x5c63ed[_0x3de4d4('0xc')],null))[_0x3de4d4('0x10')](respondWithResult(_0x3c2d7c,null))[_0x3de4d4('0x1e')](handleError(_0x3c2d7c,null));},exports[_0x5a1293('0xb')]=function(_0x296505,_0x17252c){const _0x92b988=_0x5a1293;return db['IntegrationReport']['findOne']({'where':{'id':_0x296505[_0x92b988('0x32')]['id']}})[_0x92b988('0x10')](handleEntityNotFound(_0x17252c,null))['then'](removeEntity(_0x17252c,null))[_0x92b988('0x1e')](handleError(_0x17252c,null));},exports[_0x5a1293('0x18')]=function(_0x19f96b,_0x3d1a5e){const _0xf556e=_0x5a1293;return db[_0xf556e('0x4')][_0xf556e('0x18')]()[_0xf556e('0x10')](respondWithResult(_0x3d1a5e,null))['catch'](handleError(_0x3d1a5e,null));}; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.model.js b/server/api/integrationReport/integrationReport.model.js index b1cafd5..e62c22d 100644 --- a/server/api/integrationReport/integrationReport.model.js +++ b/server/api/integrationReport/integrationReport.model.js @@ -1 +1 @@ -const a364_0xf4a4=['define','report_integration','exports','IntegrationReport'];(function(_0x3f0219,_0xf4a4e4){const _0xa8b1e5=function(_0x537db4){while(--_0x537db4){_0x3f0219['push'](_0x3f0219['shift']());}};_0xa8b1e5(++_0xf4a4e4);}(a364_0xf4a4,0x93));const a364_0xa8b1=function(_0x3f0219,_0xf4a4e4){_0x3f0219=_0x3f0219-0x0;let _0xa8b1e5=a364_0xf4a4[_0x3f0219];return _0xa8b1e5;};const _0x3b813e=a364_0xa8b1;'use strict';const attributes=require('./integrationReport.attributes');module[_0x3b813e('0x3')]=function(_0x537db4){const _0x3f2afb=_0x3b813e,_0x360566=_0x537db4[_0x3f2afb('0x1')](_0x3f2afb('0x0'),attributes,{'tableName':_0x3f2afb('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x360566;}; \ No newline at end of file +const a364_0xee7b=['define','./integrationReport.attributes','IntegrationReport','report_integration','exports'];(function(_0x531702,_0xee7b67){const _0x374014=function(_0x19c86b){while(--_0x19c86b){_0x531702['push'](_0x531702['shift']());}};_0x374014(++_0xee7b67);}(a364_0xee7b,0x147));const a364_0x3740=function(_0x531702,_0xee7b67){_0x531702=_0x531702-0x0;let _0x374014=a364_0xee7b[_0x531702];return _0x374014;};const _0x270c73=a364_0x3740;'use strict';const attributes=require(_0x270c73('0x4'));module[_0x270c73('0x2')]=function(_0x19c86b){const _0xf4e1a6=_0x270c73,_0x5d7ca7=_0x19c86b[_0xf4e1a6('0x3')](_0xf4e1a6('0x0'),attributes,{'tableName':_0xf4e1a6('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5d7ca7;}; \ No newline at end of file diff --git a/server/api/interval/index.js b/server/api/interval/index.js index acda9ef..d6824a1 100644 --- a/server/api/interval/index.js +++ b/server/api/interval/index.js @@ -1 +1 @@ -const a365_0x5f58=['../../components/auth/service','addInterval','/:id/sub_intervals/create_many','express','create','delete','show','isAuthenticated','getIntervals','/:id','exports','destroy','get','/:id/sub_intervals','./interval.controller','index','post','addIntervals'];(function(_0x4f7fc6,_0x5f5862){const _0x32fc85=function(_0xe4157e){while(--_0xe4157e){_0x4f7fc6['push'](_0x4f7fc6['shift']());}};_0x32fc85(++_0x5f5862);}(a365_0x5f58,0x119));const a365_0x32fc=function(_0x4f7fc6,_0x5f5862){_0x4f7fc6=_0x4f7fc6-0x0;let _0x32fc85=a365_0x5f58[_0x4f7fc6];return _0x32fc85;};const _0x4b426b=a365_0x32fc;'use strict';const express=require(_0x4b426b('0xa')),router=express['Router'](),auth=require(_0x4b426b('0x7')),controller=require(_0x4b426b('0x3'));router['get']('/',auth[_0x4b426b('0xe')](),controller[_0x4b426b('0x4')]),router[_0x4b426b('0x1')](_0x4b426b('0x10'),auth[_0x4b426b('0xe')](),controller[_0x4b426b('0xd')]),router[_0x4b426b('0x1')](_0x4b426b('0x2'),auth[_0x4b426b('0xe')](),controller[_0x4b426b('0xf')]),router[_0x4b426b('0x5')]('/',auth['isAuthenticated'](),controller[_0x4b426b('0xb')]),router[_0x4b426b('0x5')]('/:id/sub_intervals',auth[_0x4b426b('0xe')](),controller[_0x4b426b('0x8')]),router[_0x4b426b('0x5')](_0x4b426b('0x9'),auth[_0x4b426b('0xe')](),controller[_0x4b426b('0x6')]),router['put'](_0x4b426b('0x10'),auth[_0x4b426b('0xe')](),controller['update']),router[_0x4b426b('0xc')](_0x4b426b('0x10'),auth[_0x4b426b('0xe')](),controller[_0x4b426b('0x0')]),module[_0x4b426b('0x11')]=router; \ No newline at end of file +const a365_0x2fee=['getIntervals','put','post','index','show','destroy','addIntervals','../../components/auth/service','/:id','delete','update','express','get','create','/:id/sub_intervals/create_many','isAuthenticated','/:id/sub_intervals'];(function(_0x4d72de,_0x2fee6a){const _0x1d0dc2=function(_0x1e83b9){while(--_0x1e83b9){_0x4d72de['push'](_0x4d72de['shift']());}};_0x1d0dc2(++_0x2fee6a);}(a365_0x2fee,0x126));const a365_0x1d0d=function(_0x4d72de,_0x2fee6a){_0x4d72de=_0x4d72de-0x0;let _0x1d0dc2=a365_0x2fee[_0x4d72de];return _0x1d0dc2;};const _0x5335cb=a365_0x1d0d;'use strict';const express=require(_0x5335cb('0x6')),router=express['Router'](),auth=require(_0x5335cb('0x2')),controller=require('./interval.controller');router[_0x5335cb('0x7')]('/',auth[_0x5335cb('0xa')](),controller[_0x5335cb('0xf')]),router[_0x5335cb('0x7')](_0x5335cb('0x3'),auth['isAuthenticated'](),controller[_0x5335cb('0x10')]),router['get'](_0x5335cb('0xb'),auth[_0x5335cb('0xa')](),controller[_0x5335cb('0xc')]),router[_0x5335cb('0xe')]('/',auth[_0x5335cb('0xa')](),controller[_0x5335cb('0x8')]),router[_0x5335cb('0xe')](_0x5335cb('0xb'),auth[_0x5335cb('0xa')](),controller['addInterval']),router[_0x5335cb('0xe')](_0x5335cb('0x9'),auth[_0x5335cb('0xa')](),controller[_0x5335cb('0x1')]),router[_0x5335cb('0xd')](_0x5335cb('0x3'),auth[_0x5335cb('0xa')](),controller[_0x5335cb('0x5')]),router[_0x5335cb('0x4')](_0x5335cb('0x3'),auth['isAuthenticated'](),controller[_0x5335cb('0x0')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/interval/interval.attributes.js b/server/api/interval/interval.attributes.js index e20cc1d..e69090d 100644 --- a/server/api/interval/interval.attributes.js +++ b/server/api/interval/interval.attributes.js @@ -1 +1 @@ -const a366_0x1e12=['sequelize','STRING'];(function(_0x221101,_0x1e129f){const _0x22ef62=function(_0x120e00){while(--_0x120e00){_0x221101['push'](_0x221101['shift']());}};_0x22ef62(++_0x1e129f);}(a366_0x1e12,0xbe));const a366_0x22ef=function(_0x221101,_0x1e129f){_0x221101=_0x221101-0x0;let _0x22ef62=a366_0x1e12[_0x221101];return _0x22ef62;};const _0x4e51f7=a366_0x22ef;'use strict';const Sequelize=require(_0x4e51f7('0x0'));module['exports']={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x4e51f7('0x1')]},'interval':{'type':Sequelize[_0x4e51f7('0x1')],'allowNull':!![]}}; \ No newline at end of file +const a366_0x4157=['sequelize','exports','STRING'];(function(_0x4e7a5e,_0x4157a0){const _0x1efd7d=function(_0x39f88c){while(--_0x39f88c){_0x4e7a5e['push'](_0x4e7a5e['shift']());}};_0x1efd7d(++_0x4157a0);}(a366_0x4157,0x14f));const a366_0x1efd=function(_0x4e7a5e,_0x4157a0){_0x4e7a5e=_0x4e7a5e-0x0;let _0x1efd7d=a366_0x4157[_0x4e7a5e];return _0x1efd7d;};const _0x4c1daf=a366_0x1efd;'use strict';const Sequelize=require(_0x4c1daf('0x1'));module[_0x4c1daf('0x2')]={'name':{'type':Sequelize[_0x4c1daf('0x0')]},'description':{'type':Sequelize[_0x4c1daf('0x0')]},'interval':{'type':Sequelize['STRING'],'allowNull':!![]}}; \ No newline at end of file diff --git a/server/api/interval/interval.controller.js b/server/api/interval/interval.controller.js index 58c8f83..94e0805 100644 --- a/server/api/interval/interval.controller.js +++ b/server/api/interval/interval.controller.js @@ -1 +1 @@ -const a367_0x3703=['intersection','type','stack','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','order','update','../../mysqldb','findAll','rawAttributes','show','options','transaction','Interval','../../config/logger','UserProfileResource','json','model','get','send','rows','VIRTUAL','then','includeAll','where','UserProfileSection','getIntervals','like','api','count','nolimit','findOne','query','Intervals','name','status','addIntervals','lodash','pick','fieldName','fields','create','IntervalId','length','../../components/parsers/qs','user','index','params','bulkCreate','undefined','keys','Content-Range','key','filters','merge','filter','body','destroy','limit','map','attributes','addInterval','sort','autoAssociation','error','offset','end','role','catch','sequelize'];(function(_0x3cd1c1,_0x3703f1){const _0x58d2b1=function(_0x516934){while(--_0x516934){_0x3cd1c1['push'](_0x3cd1c1['shift']());}};_0x58d2b1(++_0x3703f1);}(a367_0x3703,0x19e));const a367_0x58d2=function(_0x3cd1c1,_0x3703f1){_0x3cd1c1=_0x3cd1c1-0x0;let _0x58d2b1=a367_0x3703[_0x3cd1c1];return _0x58d2b1;};const _0x211473=a367_0x58d2;'use strict';const _=require(_0x211473('0x24')),qs=require(_0x211473('0x2b')),logger=require(_0x211473('0xd'))(_0x211473('0x1b')),db=require(_0x211473('0x6'))['db'],{Op}=require(_0x211473('0x44'));function respondWithResult(_0x516934,_0x313977){return _0x313977=_0x313977||0xc8,function(_0x42a23a){const _0x2fd67=a367_0x58d2;if(_0x42a23a)return _0x516934[_0x2fd67('0x22')](_0x313977)[_0x2fd67('0xf')](_0x42a23a);};}function respondWithFilteredResult(_0x5591fe,_0x3f892d){return function(_0x5da9a4){const _0x948c2=a367_0x58d2;if(_0x5da9a4){const _0x379db5=_0x5da9a4['count'],_0x189b95=_0x3f892d[_0x948c2('0x40')];let _0x5c4ca7=_0x3f892d[_0x948c2('0x40')]+_0x3f892d[_0x948c2('0x39')],_0x3b388b;return _0x5c4ca7>=_0x379db5?(_0x5c4ca7=_0x379db5,_0x3b388b=0xc8):_0x3b388b=0xce,_0x5591fe[_0x948c2('0x22')](_0x3b388b),_0x5591fe['set'](_0x948c2('0x32'),_0x189b95+'-'+_0x5c4ca7+'/'+_0x379db5)[_0x948c2('0xf')](_0x5da9a4);}return null;};}function saveUpdates(_0x30ee66){return function(_0x2533f1){const _0x262c57=a367_0x58d2;if(_0x2533f1)return _0x2533f1[_0x262c57('0x5')](_0x30ee66)['then'](function(_0x2a0a05){return _0x2a0a05;});return null;};}function removeEntity(_0x5e6d6d){return function(_0x5a9325){const _0x36a942=a367_0x58d2;if(_0x5a9325)return _0x5a9325['destroy']()[_0x36a942('0x15')](function(){const _0x2e6ef3=_0x36a942,_0x5936e3=_0x5a9325['get']({'plain':!![]}),_0x12745e=_0x2e6ef3('0x20');return db['UserProfileResource']['destroy']({'where':{'type':_0x12745e,'resourceId':_0x5936e3['id']}})[_0x2e6ef3('0x15')](function(){return _0x5a9325;});})[_0x36a942('0x15')](function(){const _0x5a2fea=_0x36a942;_0x5e6d6d[_0x5a2fea('0x22')](0xcc)[_0x5a2fea('0x41')]();});};}function handleEntityNotFound(_0x5265dc){return function(_0x33b701){return!_0x33b701&&_0x5265dc['sendStatus'](0x194),_0x33b701;};}function handleError(_0x46b720,_0x11acda){return _0x11acda=_0x11acda||0x1f4,function(_0x43cc4e){const _0x4d676e=a367_0x58d2;logger[_0x4d676e('0x3f')](_0x43cc4e[_0x4d676e('0x2')]),_0x43cc4e[_0x4d676e('0x21')]&&delete _0x43cc4e[_0x4d676e('0x21')],_0x46b720[_0x4d676e('0x22')](_0x11acda)[_0x4d676e('0x12')](_0x43cc4e);};}exports[_0x211473('0x2d')]=function(_0x3afb3f,_0x27fc86){const _0x3db93b=_0x211473;let _0x5c2bd6={};const _0x4d4990={},_0xd3d274={'count':0x0,'rows':[]},_0x243f97=_[_0x3db93b('0x3a')](db['Interval'][_0x3db93b('0x8')],function(_0x55d239){const _0x6a9715=_0x3db93b;return{'name':_0x55d239[_0x6a9715('0x26')],'type':_0x55d239[_0x6a9715('0x1')][_0x6a9715('0x33')]};});_0x4d4990[_0x3db93b('0x10')]=_[_0x3db93b('0x3a')](_0x243f97,_0x3db93b('0x21')),_0x4d4990[_0x3db93b('0x1f')]=_['keys'](_0x3afb3f[_0x3db93b('0x1f')]),_0x4d4990[_0x3db93b('0x34')]=_[_0x3db93b('0x0')](_0x4d4990[_0x3db93b('0x10')],_0x4d4990[_0x3db93b('0x1f')]),_0x5c2bd6[_0x3db93b('0x3b')]=_[_0x3db93b('0x0')](_0x4d4990['model'],qs[_0x3db93b('0x27')](_0x3afb3f[_0x3db93b('0x1f')]['fields'])),_0x5c2bd6[_0x3db93b('0x3b')]=_0x5c2bd6[_0x3db93b('0x3b')][_0x3db93b('0x2a')]?_0x5c2bd6[_0x3db93b('0x3b')]:_0x4d4990[_0x3db93b('0x10')];typeof _0x3afb3f[_0x3db93b('0x1f')][_0x3db93b('0x1d')]===_0x3db93b('0x30')&&(_0x5c2bd6[_0x3db93b('0x39')]=qs[_0x3db93b('0x39')](_0x3afb3f[_0x3db93b('0x1f')][_0x3db93b('0x39')]),_0x5c2bd6[_0x3db93b('0x40')]=qs[_0x3db93b('0x40')](_0x3afb3f['query'][_0x3db93b('0x40')]));_0x5c2bd6['order']=qs[_0x3db93b('0x3d')](_0x3afb3f[_0x3db93b('0x1f')][_0x3db93b('0x3d')]),_0x5c2bd6[_0x3db93b('0x17')]=qs['filters'](_[_0x3db93b('0x25')](_0x3afb3f[_0x3db93b('0x1f')],_0x4d4990[_0x3db93b('0x34')]),_0x243f97);_0x3afb3f[_0x3db93b('0x1f')][_0x3db93b('0x36')]&&(_0x5c2bd6['where']=_[_0x3db93b('0x35')](_0x5c2bd6[_0x3db93b('0x17')],{[Op['or']]:_[_0x3db93b('0x3a')](_0x243f97,function(_0x22dab3){const _0x1c1e67=_0x3db93b;if(_0x22dab3['type']!==_0x1c1e67('0x14')){const _0x328091={};return _0x328091[_0x22dab3['name']]={[Op['like']]:'%'+_0x3afb3f[_0x1c1e67('0x1f')]['filter']+'%'},_0x328091;}})}));_0x5c2bd6=_[_0x3db93b('0x35')]({},_0x5c2bd6,_0x3afb3f[_0x3db93b('0xa')]);const _0x17d492={'where':_0x5c2bd6[_0x3db93b('0x17')]};return db[_0x3db93b('0xc')][_0x3db93b('0x1c')](_0x17d492)[_0x3db93b('0x15')](function(_0x4d2ea){const _0x4bfa64=_0x3db93b;return _0xd3d274[_0x4bfa64('0x1c')]=_0x4d2ea,_0x3afb3f[_0x4bfa64('0x1f')][_0x4bfa64('0x16')]&&(_0x5c2bd6['include']=[{'all':!![]}]),db[_0x4bfa64('0xc')][_0x4bfa64('0x7')](_0x5c2bd6);})[_0x3db93b('0x15')](function(_0x45d4fa){const _0x169b6a=_0x3db93b;return _0xd3d274[_0x169b6a('0x13')]=_0x45d4fa,_0xd3d274;})['then'](respondWithFilteredResult(_0x27fc86,_0x5c2bd6))['catch'](handleError(_0x27fc86,null));},exports[_0x211473('0x9')]=function(_0x1622b3,_0x17ae75){const _0x54e231=_0x211473;let _0x1260ce={'raw':!![],'where':{'id':_0x1622b3['params']['id']}};const _0x1de8d1={};return _0x1de8d1[_0x54e231('0x10')]=_[_0x54e231('0x31')](db[_0x54e231('0xc')]['rawAttributes']),_0x1de8d1[_0x54e231('0x1f')]=_[_0x54e231('0x31')](_0x1622b3['query']),_0x1de8d1['filters']=_[_0x54e231('0x0')](_0x1de8d1[_0x54e231('0x10')],_0x1de8d1[_0x54e231('0x1f')]),_0x1260ce[_0x54e231('0x3b')]=_[_0x54e231('0x0')](_0x1de8d1[_0x54e231('0x10')],qs[_0x54e231('0x27')](_0x1622b3[_0x54e231('0x1f')]['fields'])),_0x1260ce[_0x54e231('0x3b')]=_0x1260ce['attributes'][_0x54e231('0x2a')]?_0x1260ce['attributes']:_0x1de8d1['model'],_0x1622b3[_0x54e231('0x1f')][_0x54e231('0x16')]&&(_0x1260ce['include']=[{'all':!![]}]),_0x1260ce=_[_0x54e231('0x35')]({},_0x1260ce,_0x1622b3['options']),db[_0x54e231('0xc')]['findOne'](_0x1260ce)[_0x54e231('0x15')](handleEntityNotFound(_0x17ae75,null))[_0x54e231('0x15')](respondWithResult(_0x17ae75,null))['catch'](handleError(_0x17ae75,null));},exports[_0x211473('0x28')]=function(_0x2d10df,_0x472706){const _0x5c46d2=_0x211473;return db['Interval']['create'](_0x2d10df[_0x5c46d2('0x37')],{})[_0x5c46d2('0x15')](function(_0x295d1c){const _0x1823cb=_0x5c46d2,_0x3e593d=_0x2d10df[_0x1823cb('0x2c')]['get']({'plain':!![]});if(!_0x3e593d)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3e593d[_0x1823cb('0x42')]==='user'){const _0x1b5f02=_0x295d1c[_0x1823cb('0x11')]({'plain':!![]}),_0x5d6387='Intervals';return db[_0x1823cb('0x18')][_0x1823cb('0x1e')]({'where':{'name':_0x5d6387,'userProfileId':_0x3e593d['userProfileId']},'raw':!![]})[_0x1823cb('0x15')](function(_0x2d583c){const _0x7e5762=_0x1823cb;return _0x2d583c&&_0x2d583c[_0x7e5762('0x3e')]===0x0?db[_0x7e5762('0xe')][_0x7e5762('0x28')]({'name':_0x1b5f02[_0x7e5762('0x21')],'resourceId':_0x1b5f02['id'],'type':_0x2d583c[_0x7e5762('0x21')],'sectionId':_0x2d583c['id']},{})[_0x7e5762('0x15')](function(){return _0x295d1c;}):_0x295d1c;})['catch'](function(_0x1c2f48){const _0x148a88=_0x1823cb;logger[_0x148a88('0x3f')](_0x148a88('0x3'),_0x1c2f48);throw _0x1c2f48;});}return _0x295d1c;})[_0x5c46d2('0x15')](respondWithResult(_0x472706,0xc9))[_0x5c46d2('0x43')](handleError(_0x472706,null));},exports['update']=function(_0x281ec9,_0x5c0716){const _0xa425a9=_0x211473;return _0x281ec9[_0xa425a9('0x37')]['id']&&delete _0x281ec9[_0xa425a9('0x37')]['id'],db[_0xa425a9('0xc')]['findOne']({'where':{'id':_0x281ec9['params']['id']}})[_0xa425a9('0x15')](handleEntityNotFound(_0x5c0716,null))[_0xa425a9('0x15')](saveUpdates(_0x281ec9[_0xa425a9('0x37')],null))[_0xa425a9('0x15')](respondWithResult(_0x5c0716,null))[_0xa425a9('0x43')](handleError(_0x5c0716,null));},exports[_0x211473('0x38')]=function(_0x5236a0,_0x1821e5){const _0x297e3a=_0x211473;return db[_0x297e3a('0xc')]['findOne']({'where':{'id':_0x5236a0[_0x297e3a('0x2e')]['id']}})['then'](handleEntityNotFound(_0x1821e5,null))[_0x297e3a('0x15')](removeEntity(_0x1821e5,null))['catch'](handleError(_0x1821e5,null));},exports[_0x211473('0x3c')]=function(_0x52f615,_0x41eb96){const _0x4214ad=_0x211473;return _0x52f615['body']['id']&&delete _0x52f615[_0x4214ad('0x37')]['id'],db['Interval'][_0x4214ad('0x1e')]({'where':{'id':_0x52f615['params']['id']}})[_0x4214ad('0x15')](handleEntityNotFound(_0x41eb96,null))['then'](function(_0x3a15f2){const _0x36ac1a=_0x4214ad;if(_0x3a15f2)return _0x52f615['body'][_0x36ac1a('0x29')]=_0x3a15f2['id'],db[_0x36ac1a('0xc')][_0x36ac1a('0x28')](_0x52f615[_0x36ac1a('0x37')]);})[_0x4214ad('0x15')](respondWithResult(_0x41eb96,null))[_0x4214ad('0x43')](handleError(_0x41eb96,null));},exports[_0x211473('0x19')]=function(_0x28b444,_0x13bb00){const _0x13d9f3=_0x211473;let _0x5cb5d3={};const _0x3cffad={};let _0x2a77c4,_0x447950;return db[_0x13d9f3('0xc')]['findOne']({'where':{'id':_0x28b444[_0x13d9f3('0x2e')]['id']}})[_0x13d9f3('0x15')](handleEntityNotFound(_0x13bb00,null))[_0x13d9f3('0x15')](function(_0x11f7bc){const _0x593f4a=_0x13d9f3;if(_0x11f7bc)return _0x2a77c4=_0x11f7bc,_0x3cffad[_0x593f4a('0x10')]=_[_0x593f4a('0x31')](db[_0x593f4a('0xc')]['rawAttributes']),_0x3cffad[_0x593f4a('0x1f')]=_[_0x593f4a('0x31')](_0x28b444[_0x593f4a('0x1f')]),_0x3cffad['filters']=_[_0x593f4a('0x0')](_0x3cffad[_0x593f4a('0x10')],_0x3cffad[_0x593f4a('0x1f')]),_0x5cb5d3[_0x593f4a('0x3b')]=_['intersection'](_0x3cffad['model'],qs[_0x593f4a('0x27')](_0x28b444[_0x593f4a('0x1f')][_0x593f4a('0x27')])),_0x5cb5d3['attributes']=_0x5cb5d3[_0x593f4a('0x3b')][_0x593f4a('0x2a')]?_0x5cb5d3['attributes']:_0x3cffad[_0x593f4a('0x10')],_0x5cb5d3[_0x593f4a('0x4')]=qs[_0x593f4a('0x3d')](_0x28b444['query'][_0x593f4a('0x3d')]),_0x5cb5d3[_0x593f4a('0x17')]=qs[_0x593f4a('0x34')](_[_0x593f4a('0x25')](_0x28b444['query'],_0x3cffad[_0x593f4a('0x34')])),_0x28b444[_0x593f4a('0x1f')][_0x593f4a('0x36')]&&(_0x5cb5d3['where']=_[_0x593f4a('0x35')](_0x5cb5d3['where'],{[Op['or']]:_[_0x593f4a('0x3a')](_0x5cb5d3[_0x593f4a('0x3b')],function(_0x115f11){const _0x3a000e=_0x593f4a,_0x361371={};return _0x361371[_0x115f11]={[Op[_0x3a000e('0x1a')]]:'%'+_0x28b444[_0x3a000e('0x1f')][_0x3a000e('0x36')]+'%'},_0x361371;})})),_0x5cb5d3=_[_0x593f4a('0x35')]({},_0x5cb5d3,_0x28b444[_0x593f4a('0xa')]),_0x2a77c4[_0x593f4a('0x19')](_0x5cb5d3);})['then'](function(_0x25a07b){const _0x245c0b=_0x13d9f3;if(_0x25a07b)return _0x447950=_0x25a07b[_0x245c0b('0x2a')],typeof _0x28b444[_0x245c0b('0x1f')]['nolimit']===_0x245c0b('0x30')&&(_0x5cb5d3[_0x245c0b('0x39')]=qs['limit'](_0x28b444[_0x245c0b('0x1f')][_0x245c0b('0x39')]),_0x5cb5d3[_0x245c0b('0x40')]=qs['offset'](_0x28b444[_0x245c0b('0x1f')]['offset'])),_0x2a77c4['getIntervals'](_0x5cb5d3);})[_0x13d9f3('0x15')](function(_0x387efe){if(_0x387efe)return _0x387efe?{'count':_0x447950,'rows':_0x387efe}:null;})[_0x13d9f3('0x15')](respondWithResult(_0x13bb00,null))['catch'](handleError(_0x13bb00,null));},exports[_0x211473('0x23')]=function(_0x4c6ad0,_0x58a5ab){const _0x8eedce=_0x211473;return db[_0x8eedce('0xc')][_0x8eedce('0x1e')]({'where':{'id':_0x4c6ad0[_0x8eedce('0x2e')]['id']}})[_0x8eedce('0x15')](handleEntityNotFound(_0x58a5ab,null))[_0x8eedce('0x15')](function(_0x58a850){const _0x12f5cb=_0x8eedce;if(_0x58a850)return db[_0x12f5cb('0x44')][_0x12f5cb('0xb')](function(_0x45585b){const _0x202bc0=_0x12f5cb;return db[_0x202bc0('0xc')][_0x202bc0('0x38')]({'where':{'IntervalId':_0x4c6ad0['params']['id']},'transaction':_0x45585b})[_0x202bc0('0x15')](function(){const _0x560b71=_0x202bc0,_0x37c5fe=_['map'](_0x4c6ad0['body'],function(_0x463d51){const _0x44cd61=a367_0x58d2;return delete _0x463d51['id'],_0x463d51['IntervalId']=_0x4c6ad0[_0x44cd61('0x2e')]['id'],_0x463d51;});return db[_0x560b71('0xc')][_0x560b71('0x2f')](_0x37c5fe,{'transaction':_0x45585b});});})[_0x12f5cb('0x15')](function(){const _0xe3ce76=_0x12f5cb;return db[_0xe3ce76('0xc')][_0xe3ce76('0x7')]({'where':{'IntervalId':_0x4c6ad0[_0xe3ce76('0x2e')]['id']}});});})[_0x8eedce('0x15')](respondWithResult(_0x58a5ab,null))[_0x8eedce('0x43')](handleError(_0x58a5ab,null));}; \ No newline at end of file +const a367_0x35c8=['model','merge','undefined','IntervalId','filters','lodash','keys','findOne','status','like','includeAll','length','getIntervals','error','where','user','sendStatus','addInterval','filter','VIRTUAL','autoAssociation','map','body','options','api','pick','intersection','query','rows','addIntervals','fields','catch','count','update','json','fieldName','set','../../mysqldb','get','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','name','Interval','destroy','key','then','offset','bulkCreate','sequelize','create','rawAttributes','show','UserProfileSection','Intervals','sort','params','role','order','transaction','limit','type','attributes','findAll','index','include','UserProfileResource'];(function(_0x133975,_0x35c84f){const _0x14b3f3=function(_0x212fe4){while(--_0x212fe4){_0x133975['push'](_0x133975['shift']());}};_0x14b3f3(++_0x35c84f);}(a367_0x35c8,0x1a5));const a367_0x14b3=function(_0x133975,_0x35c84f){_0x133975=_0x133975-0x0;let _0x14b3f3=a367_0x35c8[_0x133975];return _0x14b3f3;};const _0x44afa8=a367_0x14b3;'use strict';const _=require(_0x44afa8('0x27')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x44afa8('0x3a')),db=require(_0x44afa8('0x6'))['db'],{Op}=require(_0x44afa8('0x10'));function respondWithResult(_0x212fe4,_0x6bb3f6){return _0x6bb3f6=_0x6bb3f6||0xc8,function(_0x7625c){const _0x88daa7=a367_0x14b3;if(_0x7625c)return _0x212fe4[_0x88daa7('0x2a')](_0x6bb3f6)[_0x88daa7('0x3')](_0x7625c);};}function respondWithFilteredResult(_0x36bf56,_0x570a16){return function(_0x37807c){const _0x40da56=a367_0x14b3;if(_0x37807c){const _0x12e07e=_0x37807c[_0x40da56('0x1')],_0x30f329=_0x570a16[_0x40da56('0xe')];let _0x3caaff=_0x570a16[_0x40da56('0xe')]+_0x570a16[_0x40da56('0x1b')],_0x2e89ae;return _0x3caaff>=_0x12e07e?(_0x3caaff=_0x12e07e,_0x2e89ae=0xc8):_0x2e89ae=0xce,_0x36bf56[_0x40da56('0x2a')](_0x2e89ae),_0x36bf56[_0x40da56('0x5')]('Content-Range',_0x30f329+'-'+_0x3caaff+'/'+_0x12e07e)[_0x40da56('0x3')](_0x37807c);}return null;};}function saveUpdates(_0x219a00){return function(_0x35cc56){const _0x1dac37=a367_0x14b3;if(_0x35cc56)return _0x35cc56['update'](_0x219a00)[_0x1dac37('0xd')](function(_0x5e11ad){return _0x5e11ad;});return null;};}function removeEntity(_0x5f52f3){return function(_0x50692b){const _0x5bfcb4=a367_0x14b3;if(_0x50692b)return _0x50692b[_0x5bfcb4('0xb')]()['then'](function(){const _0x32e518=_0x5bfcb4,_0x1b3358=_0x50692b[_0x32e518('0x7')]({'plain':!![]}),_0x46b191=_0x32e518('0x15');return db[_0x32e518('0x21')][_0x32e518('0xb')]({'where':{'type':_0x46b191,'resourceId':_0x1b3358['id']}})['then'](function(){return _0x50692b;});})[_0x5bfcb4('0xd')](function(){_0x5f52f3['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x251ccb){return function(_0xcac085){const _0x2733d8=a367_0x14b3;return!_0xcac085&&_0x251ccb[_0x2733d8('0x32')](0x194),_0xcac085;};}function handleError(_0x1939f4,_0x63f550){return _0x63f550=_0x63f550||0x1f4,function(_0x283321){const _0x23590b=a367_0x14b3;logger[_0x23590b('0x2f')](_0x283321['stack']),_0x283321[_0x23590b('0x9')]&&delete _0x283321[_0x23590b('0x9')],_0x1939f4[_0x23590b('0x2a')](_0x63f550)['send'](_0x283321);};}exports[_0x44afa8('0x1f')]=function(_0x4c3030,_0x2869d6){const _0x426a8b=_0x44afa8;let _0x14fa45={};const _0x58af5b={},_0x5c849f={'count':0x0,'rows':[]},_0x451eff=_[_0x426a8b('0x37')](db[_0x426a8b('0xa')][_0x426a8b('0x12')],function(_0x4821c7){const _0x2a334e=_0x426a8b;return{'name':_0x4821c7[_0x2a334e('0x4')],'type':_0x4821c7[_0x2a334e('0x1c')][_0x2a334e('0xc')]};});_0x58af5b[_0x426a8b('0x22')]=_['map'](_0x451eff,_0x426a8b('0x9')),_0x58af5b[_0x426a8b('0x3d')]=_[_0x426a8b('0x28')](_0x4c3030['query']),_0x58af5b['filters']=_[_0x426a8b('0x3c')](_0x58af5b[_0x426a8b('0x22')],_0x58af5b[_0x426a8b('0x3d')]),_0x14fa45[_0x426a8b('0x1d')]=_['intersection'](_0x58af5b[_0x426a8b('0x22')],qs[_0x426a8b('0x40')](_0x4c3030[_0x426a8b('0x3d')][_0x426a8b('0x40')])),_0x14fa45[_0x426a8b('0x1d')]=_0x14fa45[_0x426a8b('0x1d')][_0x426a8b('0x2d')]?_0x14fa45['attributes']:_0x58af5b[_0x426a8b('0x22')];typeof _0x4c3030[_0x426a8b('0x3d')]['nolimit']===_0x426a8b('0x24')&&(_0x14fa45[_0x426a8b('0x1b')]=qs['limit'](_0x4c3030[_0x426a8b('0x3d')][_0x426a8b('0x1b')]),_0x14fa45[_0x426a8b('0xe')]=qs['offset'](_0x4c3030[_0x426a8b('0x3d')][_0x426a8b('0xe')]));_0x14fa45[_0x426a8b('0x19')]=qs['sort'](_0x4c3030[_0x426a8b('0x3d')][_0x426a8b('0x16')]),_0x14fa45[_0x426a8b('0x30')]=qs[_0x426a8b('0x26')](_['pick'](_0x4c3030[_0x426a8b('0x3d')],_0x58af5b[_0x426a8b('0x26')]),_0x451eff);_0x4c3030[_0x426a8b('0x3d')][_0x426a8b('0x34')]&&(_0x14fa45[_0x426a8b('0x30')]=_['merge'](_0x14fa45[_0x426a8b('0x30')],{[Op['or']]:_[_0x426a8b('0x37')](_0x451eff,function(_0x235426){const _0xd729ca=_0x426a8b;if(_0x235426[_0xd729ca('0x1c')]!==_0xd729ca('0x35')){const _0x9a79ce={};return _0x9a79ce[_0x235426[_0xd729ca('0x9')]]={[Op[_0xd729ca('0x2b')]]:'%'+_0x4c3030['query'][_0xd729ca('0x34')]+'%'},_0x9a79ce;}})}));_0x14fa45=_[_0x426a8b('0x23')]({},_0x14fa45,_0x4c3030[_0x426a8b('0x39')]);const _0x5e53a0={'where':_0x14fa45[_0x426a8b('0x30')]};return db[_0x426a8b('0xa')]['count'](_0x5e53a0)[_0x426a8b('0xd')](function(_0x2aa74f){const _0x2ac679=_0x426a8b;return _0x5c849f[_0x2ac679('0x1')]=_0x2aa74f,_0x4c3030[_0x2ac679('0x3d')][_0x2ac679('0x2c')]&&(_0x14fa45[_0x2ac679('0x20')]=[{'all':!![]}]),db['Interval'][_0x2ac679('0x1e')](_0x14fa45);})['then'](function(_0x4ad9d6){const _0x566a40=_0x426a8b;return _0x5c849f[_0x566a40('0x3e')]=_0x4ad9d6,_0x5c849f;})[_0x426a8b('0xd')](respondWithFilteredResult(_0x2869d6,_0x14fa45))[_0x426a8b('0x0')](handleError(_0x2869d6,null));},exports[_0x44afa8('0x13')]=function(_0x5639ff,_0x9e09ec){const _0x52db4b=_0x44afa8;let _0x135430={'raw':!![],'where':{'id':_0x5639ff['params']['id']}};const _0x401dc5={};return _0x401dc5[_0x52db4b('0x22')]=_[_0x52db4b('0x28')](db['Interval'][_0x52db4b('0x12')]),_0x401dc5[_0x52db4b('0x3d')]=_[_0x52db4b('0x28')](_0x5639ff[_0x52db4b('0x3d')]),_0x401dc5[_0x52db4b('0x26')]=_[_0x52db4b('0x3c')](_0x401dc5[_0x52db4b('0x22')],_0x401dc5[_0x52db4b('0x3d')]),_0x135430['attributes']=_[_0x52db4b('0x3c')](_0x401dc5['model'],qs[_0x52db4b('0x40')](_0x5639ff['query'][_0x52db4b('0x40')])),_0x135430[_0x52db4b('0x1d')]=_0x135430['attributes']['length']?_0x135430['attributes']:_0x401dc5['model'],_0x5639ff['query'][_0x52db4b('0x2c')]&&(_0x135430['include']=[{'all':!![]}]),_0x135430=_[_0x52db4b('0x23')]({},_0x135430,_0x5639ff['options']),db[_0x52db4b('0xa')][_0x52db4b('0x29')](_0x135430)[_0x52db4b('0xd')](handleEntityNotFound(_0x9e09ec,null))[_0x52db4b('0xd')](respondWithResult(_0x9e09ec,null))[_0x52db4b('0x0')](handleError(_0x9e09ec,null));},exports['create']=function(_0x563cdc,_0x1325a7){const _0x4ad8ed=_0x44afa8;return db[_0x4ad8ed('0xa')]['create'](_0x563cdc[_0x4ad8ed('0x38')],{})[_0x4ad8ed('0xd')](function(_0x272451){const _0x3f1e65=_0x4ad8ed,_0x2c8723=_0x563cdc[_0x3f1e65('0x31')][_0x3f1e65('0x7')]({'plain':!![]});if(!_0x2c8723)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2c8723[_0x3f1e65('0x18')]==='user'){const _0x3a7bbd=_0x272451['get']({'plain':!![]}),_0x1f67dc='Intervals';return db[_0x3f1e65('0x14')]['findOne']({'where':{'name':_0x1f67dc,'userProfileId':_0x2c8723['userProfileId']},'raw':!![]})[_0x3f1e65('0xd')](function(_0x145216){const _0x4bf76b=_0x3f1e65;return _0x145216&&_0x145216[_0x4bf76b('0x36')]===0x0?db[_0x4bf76b('0x21')][_0x4bf76b('0x11')]({'name':_0x3a7bbd[_0x4bf76b('0x9')],'resourceId':_0x3a7bbd['id'],'type':_0x145216['name'],'sectionId':_0x145216['id']},{})[_0x4bf76b('0xd')](function(){return _0x272451;}):_0x272451;})[_0x3f1e65('0x0')](function(_0x1c4f28){const _0x281e75=_0x3f1e65;logger[_0x281e75('0x2f')](_0x281e75('0x8'),_0x1c4f28);throw _0x1c4f28;});}return _0x272451;})[_0x4ad8ed('0xd')](respondWithResult(_0x1325a7,0xc9))[_0x4ad8ed('0x0')](handleError(_0x1325a7,null));},exports[_0x44afa8('0x2')]=function(_0x49480b,_0x1835d9){const _0x4333fa=_0x44afa8;return _0x49480b[_0x4333fa('0x38')]['id']&&delete _0x49480b['body']['id'],db[_0x4333fa('0xa')][_0x4333fa('0x29')]({'where':{'id':_0x49480b['params']['id']}})[_0x4333fa('0xd')](handleEntityNotFound(_0x1835d9,null))['then'](saveUpdates(_0x49480b['body'],null))[_0x4333fa('0xd')](respondWithResult(_0x1835d9,null))[_0x4333fa('0x0')](handleError(_0x1835d9,null));},exports[_0x44afa8('0xb')]=function(_0x5b83ff,_0x21b1da){const _0x53df71=_0x44afa8;return db[_0x53df71('0xa')][_0x53df71('0x29')]({'where':{'id':_0x5b83ff['params']['id']}})['then'](handleEntityNotFound(_0x21b1da,null))['then'](removeEntity(_0x21b1da,null))[_0x53df71('0x0')](handleError(_0x21b1da,null));},exports[_0x44afa8('0x33')]=function(_0x3b425a,_0x20b78e){const _0x4061f0=_0x44afa8;return _0x3b425a[_0x4061f0('0x38')]['id']&&delete _0x3b425a[_0x4061f0('0x38')]['id'],db[_0x4061f0('0xa')][_0x4061f0('0x29')]({'where':{'id':_0x3b425a[_0x4061f0('0x17')]['id']}})[_0x4061f0('0xd')](handleEntityNotFound(_0x20b78e,null))[_0x4061f0('0xd')](function(_0x28df9b){const _0xc15410=_0x4061f0;if(_0x28df9b)return _0x3b425a['body'][_0xc15410('0x25')]=_0x28df9b['id'],db[_0xc15410('0xa')][_0xc15410('0x11')](_0x3b425a[_0xc15410('0x38')]);})[_0x4061f0('0xd')](respondWithResult(_0x20b78e,null))['catch'](handleError(_0x20b78e,null));},exports[_0x44afa8('0x2e')]=function(_0x40f8d7,_0x36d348){const _0x908ce5=_0x44afa8;let _0xcb15ac={};const _0x8b25ee={};let _0xc9982,_0x11b9d8;return db[_0x908ce5('0xa')][_0x908ce5('0x29')]({'where':{'id':_0x40f8d7[_0x908ce5('0x17')]['id']}})['then'](handleEntityNotFound(_0x36d348,null))[_0x908ce5('0xd')](function(_0x532f55){const _0x1bd80f=_0x908ce5;if(_0x532f55)return _0xc9982=_0x532f55,_0x8b25ee['model']=_[_0x1bd80f('0x28')](db[_0x1bd80f('0xa')][_0x1bd80f('0x12')]),_0x8b25ee[_0x1bd80f('0x3d')]=_[_0x1bd80f('0x28')](_0x40f8d7[_0x1bd80f('0x3d')]),_0x8b25ee['filters']=_[_0x1bd80f('0x3c')](_0x8b25ee['model'],_0x8b25ee[_0x1bd80f('0x3d')]),_0xcb15ac[_0x1bd80f('0x1d')]=_[_0x1bd80f('0x3c')](_0x8b25ee[_0x1bd80f('0x22')],qs[_0x1bd80f('0x40')](_0x40f8d7[_0x1bd80f('0x3d')][_0x1bd80f('0x40')])),_0xcb15ac[_0x1bd80f('0x1d')]=_0xcb15ac[_0x1bd80f('0x1d')][_0x1bd80f('0x2d')]?_0xcb15ac['attributes']:_0x8b25ee[_0x1bd80f('0x22')],_0xcb15ac[_0x1bd80f('0x19')]=qs[_0x1bd80f('0x16')](_0x40f8d7['query'][_0x1bd80f('0x16')]),_0xcb15ac['where']=qs['filters'](_[_0x1bd80f('0x3b')](_0x40f8d7[_0x1bd80f('0x3d')],_0x8b25ee[_0x1bd80f('0x26')])),_0x40f8d7[_0x1bd80f('0x3d')]['filter']&&(_0xcb15ac[_0x1bd80f('0x30')]=_[_0x1bd80f('0x23')](_0xcb15ac[_0x1bd80f('0x30')],{[Op['or']]:_[_0x1bd80f('0x37')](_0xcb15ac[_0x1bd80f('0x1d')],function(_0x46d785){const _0x47b17a=_0x1bd80f,_0x477318={};return _0x477318[_0x46d785]={[Op[_0x47b17a('0x2b')]]:'%'+_0x40f8d7[_0x47b17a('0x3d')][_0x47b17a('0x34')]+'%'},_0x477318;})})),_0xcb15ac=_[_0x1bd80f('0x23')]({},_0xcb15ac,_0x40f8d7[_0x1bd80f('0x39')]),_0xc9982[_0x1bd80f('0x2e')](_0xcb15ac);})[_0x908ce5('0xd')](function(_0x15f63f){const _0xc0f9d5=_0x908ce5;if(_0x15f63f)return _0x11b9d8=_0x15f63f[_0xc0f9d5('0x2d')],typeof _0x40f8d7['query']['nolimit']==='undefined'&&(_0xcb15ac[_0xc0f9d5('0x1b')]=qs['limit'](_0x40f8d7[_0xc0f9d5('0x3d')]['limit']),_0xcb15ac['offset']=qs[_0xc0f9d5('0xe')](_0x40f8d7[_0xc0f9d5('0x3d')]['offset'])),_0xc9982[_0xc0f9d5('0x2e')](_0xcb15ac);})[_0x908ce5('0xd')](function(_0x5602cf){if(_0x5602cf)return _0x5602cf?{'count':_0x11b9d8,'rows':_0x5602cf}:null;})[_0x908ce5('0xd')](respondWithResult(_0x36d348,null))['catch'](handleError(_0x36d348,null));},exports[_0x44afa8('0x3f')]=function(_0x381974,_0x173552){const _0x378d54=_0x44afa8;return db[_0x378d54('0xa')][_0x378d54('0x29')]({'where':{'id':_0x381974[_0x378d54('0x17')]['id']}})[_0x378d54('0xd')](handleEntityNotFound(_0x173552,null))[_0x378d54('0xd')](function(_0x14fc65){const _0x40e35b=_0x378d54;if(_0x14fc65)return db['sequelize'][_0x40e35b('0x1a')](function(_0x285974){const _0x5820f3=_0x40e35b;return db[_0x5820f3('0xa')][_0x5820f3('0xb')]({'where':{'IntervalId':_0x381974[_0x5820f3('0x17')]['id']},'transaction':_0x285974})[_0x5820f3('0xd')](function(){const _0x263e13=_0x5820f3,_0x34979f=_[_0x263e13('0x37')](_0x381974['body'],function(_0x45f40f){const _0x1e8acc=_0x263e13;return delete _0x45f40f['id'],_0x45f40f[_0x1e8acc('0x25')]=_0x381974[_0x1e8acc('0x17')]['id'],_0x45f40f;});return db['Interval'][_0x263e13('0xf')](_0x34979f,{'transaction':_0x285974});});})[_0x40e35b('0xd')](function(){const _0x4efeea=_0x40e35b;return db['Interval'][_0x4efeea('0x1e')]({'where':{'IntervalId':_0x381974['params']['id']}});});})[_0x378d54('0xd')](respondWithResult(_0x173552,null))['catch'](handleError(_0x173552,null));}; \ No newline at end of file diff --git a/server/api/interval/interval.model.js b/server/api/interval/interval.model.js index 7c64f8e..7c48584 100644 --- a/server/api/interval/interval.model.js +++ b/server/api/interval/interval.model.js @@ -1 +1 @@ -const a368_0x19c4=['tools_intervals','Interval','./interval.attributes','exports','rewrite','define'];(function(_0x500644,_0x19c497){const _0x1ceed8=function(_0x2361b6){while(--_0x2361b6){_0x500644['push'](_0x500644['shift']());}};_0x1ceed8(++_0x19c497);}(a368_0x19c4,0x193));const a368_0x1cee=function(_0x500644,_0x19c497){_0x500644=_0x500644-0x0;let _0x1ceed8=a368_0x19c4[_0x500644];return _0x1ceed8;};const _0x2531a0=a368_0x1cee;'use strict';const attributes=require(_0x2531a0('0x1')),extensions=require('../../components/extensions/rewrite');module[_0x2531a0('0x2')]=function(_0x2361b6){const _0x52c6a4=_0x2531a0,_0x1ebf35=_0x2361b6[_0x52c6a4('0x4')](_0x52c6a4('0x0'),attributes,{'tableName':_0x52c6a4('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x3b3be3){const _0x59df6f=_0x52c6a4;extensions[_0x59df6f('0x3')](_0x2361b6,_0x3b3be3);},'afterBulkCreate':function(_0x1a2a67){const _0x36be85=_0x52c6a4;extensions[_0x36be85('0x3')](_0x2361b6,_0x1a2a67[0x0]);},'afterUpdate':function(_0x738de7){const _0x21b97c=_0x52c6a4;extensions[_0x21b97c('0x3')](_0x2361b6,_0x738de7);},'afterDestroy':function(_0x12a3c4){const _0x22bfda=_0x52c6a4;extensions[_0x22bfda('0x3')](_0x2361b6,_0x12a3c4);}}});return _0x1ebf35;}; \ No newline at end of file +const a368_0xbc36=['rewrite','define','exports','tools_intervals','Interval','./interval.attributes'];(function(_0x1d11c0,_0xbc36d){const _0x1e0b62=function(_0x552897){while(--_0x552897){_0x1d11c0['push'](_0x1d11c0['shift']());}};_0x1e0b62(++_0xbc36d);}(a368_0xbc36,0xec));const a368_0x1e0b=function(_0x1d11c0,_0xbc36d){_0x1d11c0=_0x1d11c0-0x0;let _0x1e0b62=a368_0xbc36[_0x1d11c0];return _0x1e0b62;};const _0x1da09f=a368_0x1e0b;'use strict';const attributes=require(_0x1da09f('0x3')),extensions=require('../../components/extensions/rewrite');module[_0x1da09f('0x0')]=function(_0x552897){const _0x1ef05c=_0x1da09f,_0x3c10c2=_0x552897[_0x1ef05c('0x5')](_0x1ef05c('0x2'),attributes,{'tableName':_0x1ef05c('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x130bf3){const _0xad1e7d=_0x1ef05c;extensions[_0xad1e7d('0x4')](_0x552897,_0x130bf3);},'afterBulkCreate':function(_0x452d1a){const _0x15ce80=_0x1ef05c;extensions[_0x15ce80('0x4')](_0x552897,_0x452d1a[0x0]);},'afterUpdate':function(_0x276aeb){const _0x3f24a6=_0x1ef05c;extensions[_0x3f24a6('0x4')](_0x552897,_0x276aeb);},'afterDestroy':function(_0x468639){extensions['rewrite'](_0x552897,_0x468639);}}});return _0x3c10c2;}; \ No newline at end of file diff --git a/server/api/interval/interval.rpc.js b/server/api/interval/interval.rpc.js index 3516063..b1de15c 100644 --- a/server/api/interval/interval.rpc.js +++ b/server/api/interval/interval.rpc.js @@ -1 +1 @@ -const a369_0x4407=['model','include','stringify','findAll','options','message','raw','lodash','map','Interval','findOne','attributes','limit','../../config/logger','info','debug','error','catch','GetInterval','ShowInterval','then','rpc'];(function(_0x3aced8,_0x4407f3){const _0x5a50b3=function(_0x42208b){while(--_0x42208b){_0x3aced8['push'](_0x3aced8['shift']());}};_0x5a50b3(++_0x4407f3);}(a369_0x4407,0x1e7));const a369_0x5a50=function(_0x3aced8,_0x4407f3){_0x3aced8=_0x3aced8-0x0;let _0x5a50b3=a369_0x4407[_0x3aced8];return _0x5a50b3;};const _0x447f9d=a369_0x5a50;'use strict';const _=require(_0x447f9d('0x4')),db=require('../../mysqldb')['db'],logger=require(_0x447f9d('0xa'))(_0x447f9d('0x12'));exports['GetInterval']=function(_0x42208b){const _0x43fd64=this;return new Promise(function(_0x3c9059,_0x2ed49d){const _0x4817da=a369_0x5a50;return db[_0x4817da('0x6')][_0x4817da('0x0')]({'raw':_0x42208b['options']?_0x42208b[_0x4817da('0x1')][_0x4817da('0x3')]===undefined?!![]:![]:!![],'where':_0x42208b['options']?_0x42208b[_0x4817da('0x1')]['where']||null:null,'attributes':_0x42208b[_0x4817da('0x1')]?_0x42208b[_0x4817da('0x1')][_0x4817da('0x8')]||null:null,'limit':_0x42208b[_0x4817da('0x1')]?_0x42208b[_0x4817da('0x1')][_0x4817da('0x9')]||null:null,'include':_0x42208b[_0x4817da('0x1')]?_0x42208b[_0x4817da('0x1')][_0x4817da('0x14')]?_[_0x4817da('0x5')](_0x42208b[_0x4817da('0x1')][_0x4817da('0x14')],function(_0x1e97a7){const _0x159e37=_0x4817da;return{'model':db[_0x1e97a7['model']],'as':_0x1e97a7['as'],'attributes':_0x1e97a7[_0x159e37('0x8')],'include':_0x1e97a7[_0x159e37('0x14')]?_[_0x159e37('0x5')](_0x1e97a7[_0x159e37('0x14')],function(_0x4c2a52){const _0x1d12f0=_0x159e37;return{'model':db[_0x4c2a52['model']],'as':_0x4c2a52['as'],'attributes':_0x4c2a52[_0x1d12f0('0x8')],'include':_0x4c2a52[_0x1d12f0('0x14')]?_[_0x1d12f0('0x5')](_0x4c2a52[_0x1d12f0('0x14')],function(_0x3df8ae){const _0x18df97=_0x1d12f0;return{'model':db[_0x3df8ae[_0x18df97('0x13')]],'as':_0x3df8ae['as'],'attributes':_0x3df8ae[_0x18df97('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3e430f){const _0x23f65c=_0x4817da;logger[_0x23f65c('0xb')](_0x23f65c('0xf'),_0x42208b),logger['debug'](_0x23f65c('0xf'),_0x42208b,JSON[_0x23f65c('0x15')](_0x3e430f)),_0x3c9059(_0x3e430f);})['catch'](function(_0x51ec77){const _0x418e8d=_0x4817da;logger[_0x418e8d('0xd')]('GetInterval',_0x51ec77[_0x418e8d('0x2')],_0x42208b),_0x2ed49d(_0x43fd64[_0x418e8d('0xd')](0x1f4,_0x51ec77[_0x418e8d('0x2')]));});});},exports['ShowInterval']=function(_0x3e515d){const _0x4587a1=this;return new Promise(function(_0x53ce2b,_0x5a96b4){const _0x3685f0=a369_0x5a50;return db[_0x3685f0('0x6')][_0x3685f0('0x7')]({'raw':_0x3e515d[_0x3685f0('0x1')]?_0x3e515d[_0x3685f0('0x1')][_0x3685f0('0x3')]===undefined?!![]:![]:!![],'where':_0x3e515d[_0x3685f0('0x1')]?_0x3e515d['options']['where']||null:null,'attributes':_0x3e515d[_0x3685f0('0x1')]?_0x3e515d[_0x3685f0('0x1')][_0x3685f0('0x8')]||null:null,'include':_0x3e515d[_0x3685f0('0x1')]?_0x3e515d[_0x3685f0('0x1')][_0x3685f0('0x14')]?_['map'](_0x3e515d[_0x3685f0('0x1')][_0x3685f0('0x14')],function(_0x334c0b){const _0xab6634=_0x3685f0;return{'model':db[_0x334c0b[_0xab6634('0x13')]],'as':_0x334c0b['as'],'attributes':_0x334c0b[_0xab6634('0x8')],'include':_0x334c0b[_0xab6634('0x14')]?_[_0xab6634('0x5')](_0x334c0b[_0xab6634('0x14')],function(_0x175e2f){const _0x11f371=_0xab6634;return{'model':db[_0x175e2f['model']],'as':_0x175e2f['as'],'attributes':_0x175e2f['attributes'],'include':_0x175e2f['include']?_[_0x11f371('0x5')](_0x175e2f[_0x11f371('0x14')],function(_0x478260){return{'model':db[_0x478260['model']],'as':_0x478260['as'],'attributes':_0x478260['attributes']};}):[]};}):[]};}):[]:[]})[_0x3685f0('0x11')](function(_0x53a728){const _0xc96890=_0x3685f0;logger['info'](_0xc96890('0x10'),_0x3e515d),logger[_0xc96890('0xc')]('ShowInterval',_0x3e515d,JSON[_0xc96890('0x15')](_0x53a728)),_0x53ce2b(_0x53a728);})[_0x3685f0('0xe')](function(_0x400e01){const _0x1c8d96=_0x3685f0;logger[_0x1c8d96('0xd')](_0x1c8d96('0x10'),_0x400e01[_0x1c8d96('0x2')],_0x3e515d),_0x5a96b4(_0x4587a1['error'](0x1f4,_0x400e01['message']));});});}; \ No newline at end of file +const a369_0x5abe=['findAll','map','raw','limit','where','then','catch','rpc','../../mysqldb','options','error','GetInterval','info','debug','Interval','stringify','model','ShowInterval','message','attributes','../../config/logger','include'];(function(_0x3bac85,_0x5abe6c){const _0x585377=function(_0x4e1fa5){while(--_0x4e1fa5){_0x3bac85['push'](_0x3bac85['shift']());}};_0x585377(++_0x5abe6c);}(a369_0x5abe,0x1ef));const a369_0x5853=function(_0x3bac85,_0x5abe6c){_0x3bac85=_0x3bac85-0x0;let _0x585377=a369_0x5abe[_0x3bac85];return _0x585377;};const _0x1953a6=a369_0x5853;'use strict';const _=require('lodash'),db=require(_0x1953a6('0x13'))['db'],logger=require(_0x1953a6('0x9'))(_0x1953a6('0x12'));exports['GetInterval']=function(_0x4e1fa5){const _0x49fcb8=this;return new Promise(function(_0x2bc7c9,_0x2f0b38){const _0x2dd98c=a369_0x5853;return db[_0x2dd98c('0x3')][_0x2dd98c('0xb')]({'raw':_0x4e1fa5['options']?_0x4e1fa5[_0x2dd98c('0x14')][_0x2dd98c('0xd')]===undefined?!![]:![]:!![],'where':_0x4e1fa5[_0x2dd98c('0x14')]?_0x4e1fa5[_0x2dd98c('0x14')][_0x2dd98c('0xf')]||null:null,'attributes':_0x4e1fa5[_0x2dd98c('0x14')]?_0x4e1fa5[_0x2dd98c('0x14')][_0x2dd98c('0x8')]||null:null,'limit':_0x4e1fa5[_0x2dd98c('0x14')]?_0x4e1fa5[_0x2dd98c('0x14')][_0x2dd98c('0xe')]||null:null,'include':_0x4e1fa5[_0x2dd98c('0x14')]?_0x4e1fa5[_0x2dd98c('0x14')][_0x2dd98c('0xa')]?_['map'](_0x4e1fa5[_0x2dd98c('0x14')][_0x2dd98c('0xa')],function(_0xbb7312){const _0x17cc09=_0x2dd98c;return{'model':db[_0xbb7312[_0x17cc09('0x5')]],'as':_0xbb7312['as'],'attributes':_0xbb7312[_0x17cc09('0x8')],'include':_0xbb7312['include']?_['map'](_0xbb7312['include'],function(_0x3722f5){const _0x9883eb=_0x17cc09;return{'model':db[_0x3722f5[_0x9883eb('0x5')]],'as':_0x3722f5['as'],'attributes':_0x3722f5[_0x9883eb('0x8')],'include':_0x3722f5[_0x9883eb('0xa')]?_['map'](_0x3722f5[_0x9883eb('0xa')],function(_0x5cd9ba){const _0x54a46f=_0x9883eb;return{'model':db[_0x5cd9ba[_0x54a46f('0x5')]],'as':_0x5cd9ba['as'],'attributes':_0x5cd9ba[_0x54a46f('0x8')]};}):[]};}):[]};}):[]:[]})[_0x2dd98c('0x10')](function(_0xd5078c){const _0x308c06=_0x2dd98c;logger['info'](_0x308c06('0x0'),_0x4e1fa5),logger['debug'](_0x308c06('0x0'),_0x4e1fa5,JSON[_0x308c06('0x4')](_0xd5078c)),_0x2bc7c9(_0xd5078c);})[_0x2dd98c('0x11')](function(_0x350ea6){const _0x184dbf=_0x2dd98c;logger[_0x184dbf('0x15')](_0x184dbf('0x0'),_0x350ea6[_0x184dbf('0x7')],_0x4e1fa5),_0x2f0b38(_0x49fcb8['error'](0x1f4,_0x350ea6[_0x184dbf('0x7')]));});});},exports[_0x1953a6('0x6')]=function(_0x2d4a89){const _0x32b124=this;return new Promise(function(_0x46053a,_0x8688b7){const _0x31eb23=a369_0x5853;return db['Interval']['findOne']({'raw':_0x2d4a89[_0x31eb23('0x14')]?_0x2d4a89['options']['raw']===undefined?!![]:![]:!![],'where':_0x2d4a89[_0x31eb23('0x14')]?_0x2d4a89[_0x31eb23('0x14')][_0x31eb23('0xf')]||null:null,'attributes':_0x2d4a89['options']?_0x2d4a89[_0x31eb23('0x14')][_0x31eb23('0x8')]||null:null,'include':_0x2d4a89[_0x31eb23('0x14')]?_0x2d4a89['options'][_0x31eb23('0xa')]?_['map'](_0x2d4a89['options'][_0x31eb23('0xa')],function(_0x54f59e){const _0x402407=_0x31eb23;return{'model':db[_0x54f59e['model']],'as':_0x54f59e['as'],'attributes':_0x54f59e['attributes'],'include':_0x54f59e[_0x402407('0xa')]?_[_0x402407('0xc')](_0x54f59e[_0x402407('0xa')],function(_0x2d59e1){const _0x9ffe62=_0x402407;return{'model':db[_0x2d59e1[_0x9ffe62('0x5')]],'as':_0x2d59e1['as'],'attributes':_0x2d59e1[_0x9ffe62('0x8')],'include':_0x2d59e1[_0x9ffe62('0xa')]?_[_0x9ffe62('0xc')](_0x2d59e1[_0x9ffe62('0xa')],function(_0x281509){const _0x9a9bd7=_0x9ffe62;return{'model':db[_0x281509[_0x9a9bd7('0x5')]],'as':_0x281509['as'],'attributes':_0x281509['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2abca8){const _0x1eeac9=_0x31eb23;logger[_0x1eeac9('0x1')](_0x1eeac9('0x6'),_0x2d4a89),logger[_0x1eeac9('0x2')](_0x1eeac9('0x6'),_0x2d4a89,JSON[_0x1eeac9('0x4')](_0x2abca8)),_0x46053a(_0x2abca8);})['catch'](function(_0x59b4b9){const _0x130fd9=_0x31eb23;logger[_0x130fd9('0x15')](_0x130fd9('0x6'),_0x59b4b9['message'],_0x2d4a89),_0x8688b7(_0x32b124[_0x130fd9('0x15')](0x1f4,_0x59b4b9[_0x130fd9('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/jira/index.js b/server/api/jira/index.js index 96500bb..2e013e4 100644 --- a/server/api/jira/index.js +++ b/server/api/jira/index.js @@ -1 +1 @@ -const a370_0x9014=['exports','Router','send','post','express','isAuthenticated','./jira.controller','../../components/auth/service'];(function(_0x17fef5,_0x9014a8){const _0x1f72d9=function(_0xbd7cef){while(--_0xbd7cef){_0x17fef5['push'](_0x17fef5['shift']());}};_0x1f72d9(++_0x9014a8);}(a370_0x9014,0x7a));const a370_0x1f72=function(_0x17fef5,_0x9014a8){_0x17fef5=_0x17fef5-0x0;let _0x1f72d9=a370_0x9014[_0x17fef5];return _0x1f72d9;};const _0x505c7b=a370_0x1f72;'use strict';const express=require(_0x505c7b('0x2')),router=express[_0x505c7b('0x7')](),auth=require(_0x505c7b('0x5')),controller=require(_0x505c7b('0x4'));router[_0x505c7b('0x1')]('/',auth[_0x505c7b('0x3')](),controller[_0x505c7b('0x0')]),module[_0x505c7b('0x6')]=router; \ No newline at end of file +const a370_0x283e=['post','../../components/auth/service','send','exports','isAuthenticated','./jira.controller'];(function(_0x59de96,_0x283e68){const _0x19ca9f=function(_0x4b6901){while(--_0x4b6901){_0x59de96['push'](_0x59de96['shift']());}};_0x19ca9f(++_0x283e68);}(a370_0x283e,0x182));const a370_0x19ca=function(_0x59de96,_0x283e68){_0x59de96=_0x59de96-0x0;let _0x19ca9f=a370_0x283e[_0x59de96];return _0x19ca9f;};const _0x215c65=a370_0x19ca;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x215c65('0x5')),controller=require(_0x215c65('0x3'));router[_0x215c65('0x4')]('/',auth[_0x215c65('0x2')](),controller[_0x215c65('0x0')]),module[_0x215c65('0x1')]=router; \ No newline at end of file diff --git a/server/api/jira/jira.controller.js b/server/api/jira/jira.controller.js index b204fe5..1900971 100644 --- a/server/api/jira/jira.controller.js +++ b/server/api/jira/jira.controller.js @@ -1 +1 @@ -const a371_0x7b62=['customfield_10102','data','customfield_11501','support','connection','issuetype','name','key','api.jira','request','write','Bug','end','status','newToken','json','send','stringify','fields','parse','application/json','socket','https','customfield_11500','customfield_11503','error','x-forwarded-for','customfield_11504','email','base64','Basic\x20','remoteAddress','summary','/rest/api/2/issue'];(function(_0x51e7fe,_0x7b627e){const _0x45a6c8=function(_0x1a6e52){while(--_0x1a6e52){_0x51e7fe['push'](_0x51e7fe['shift']());}};_0x45a6c8(++_0x7b627e);}(a371_0x7b62,0xf4));const a371_0x45a6=function(_0x51e7fe,_0x7b627e){_0x51e7fe=_0x51e7fe-0x0;let _0x45a6c8=a371_0x7b62[_0x51e7fe];return _0x45a6c8;};const _0x3f16d3=a371_0x45a6;'use strict';const https=require(_0x3f16d3('0x10')),USERNAME=_0x3f16d3('0x1f'),PASSWORD='3eAmWpBVP0';function openIssue(_0x1a6e52,_0xa22c39){const _0x4a01b2=_0x3f16d3,_0x46b205={'fields':{'project':{'key':_0x1a6e52[_0x4a01b2('0x1')]||'MOTGUI'},'summary':(_0x1a6e52[_0x4a01b2('0x1a')]||'Report')+'\x20from\x20'+_0x1a6e52['ip'],'description':_0x1a6e52['description']||JSON[_0x4a01b2('0xb')](_0x1a6e52),'issuetype':{'name':_0x1a6e52[_0x4a01b2('0x21')]||_0x4a01b2('0x5')}}};_0x46b205['fields'][_0x4a01b2('0x11')]=_0x1a6e52[_0x4a01b2('0x16')],_0x46b205[_0x4a01b2('0xc')][_0x4a01b2('0x1e')]=_0x1a6e52['oldToken'],_0x46b205[_0x4a01b2('0xc')]['customfield_11502']=_0x1a6e52[_0x4a01b2('0x8')],_0x46b205[_0x4a01b2('0xc')][_0x4a01b2('0x12')]=_0x1a6e52[_0x4a01b2('0x0')],_0x46b205['fields'][_0x4a01b2('0x15')]=_0x1a6e52['reason'],_0x46b205[_0x4a01b2('0xc')][_0x4a01b2('0x1c')]=_0x1a6e52['ip'];const _0x42b54e={'host':'track.xcallymotion.com','port':0x1bb,'path':_0x4a01b2('0x1b'),'method':'POST','timeout':0x4e20,'headers':{'Content-Type':_0x4a01b2('0xe'),'Authorization':_0x4a01b2('0x18')+Buffer['from'](USERNAME+':'+PASSWORD)['toString'](_0x4a01b2('0x17'))}},_0x4f6795=JSON[_0x4a01b2('0xb')](_0x46b205),_0x1c7236=https[_0x4a01b2('0x3')](_0x42b54e,function(_0x5334c3){const _0x42bb1d=_0x4a01b2;_0x5334c3['setEncoding']('utf8');let _0x6d73ec='';_0x5334c3['on'](_0x42bb1d('0x1d'),function(_0x36901c){_0x6d73ec+=_0x36901c;}),_0x5334c3['on'](_0x42bb1d('0x6'),function(){const _0x529952=_0x42bb1d;if(_0xa22c39)return _0xa22c39[_0x529952('0x7')](_0x5334c3['statusCode'])[_0x529952('0x9')](JSON[_0x529952('0xd')](_0x6d73ec));});});_0x1c7236['on'](_0x4a01b2('0x13'),function(){const _0x40a273=_0x4a01b2;if(_0xa22c39)return _0xa22c39[_0x40a273('0x7')](0x1f4)[_0x40a273('0x9')]({'errors':[{'message':'Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','type':_0x40a273('0x2')}]});}),_0x1c7236[_0x4a01b2('0x4')](_0x4f6795),_0x1c7236[_0x4a01b2('0x6')]();}exports['openIssue']=openIssue,exports[_0x3f16d3('0xa')]=function(_0x21b8a6,_0x355930){const _0x346ba5=_0x3f16d3;return _0x21b8a6['body']['ip']=_0x21b8a6['headers'][_0x346ba5('0x14')]||_0x21b8a6[_0x346ba5('0x20')]['remoteAddress']||_0x21b8a6[_0x346ba5('0xf')][_0x346ba5('0x19')]||_0x21b8a6[_0x346ba5('0x20')][_0x346ba5('0xf')][_0x346ba5('0x19')],openIssue(_0x21b8a6['body'],_0x355930);}; \ No newline at end of file +const a371_0x593f=['socket','end','Basic\x20','customfield_11504','Report','customfield_11501','setEncoding','support','api.jira','customfield_11503','json','parse','reason','description','toString','customfield_11500','customfield_10102','remoteAddress','request','x-forwarded-for','name','connection','Bug','utf8','data','customfield_11502','https','POST','fields','statusCode','base64','stringify','body','openIssue','send','status','application/json','headers','issuetype','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request'];(function(_0x441c51,_0x593f0f){const _0x47634d=function(_0x40eb84){while(--_0x40eb84){_0x441c51['push'](_0x441c51['shift']());}};_0x47634d(++_0x593f0f);}(a371_0x593f,0xec));const a371_0x4763=function(_0x441c51,_0x593f0f){_0x441c51=_0x441c51-0x0;let _0x47634d=a371_0x593f[_0x441c51];return _0x47634d;};const _0x1372ea=a371_0x4763;'use strict';const https=require(_0x1372ea('0x1e')),USERNAME=_0x1372ea('0xb'),PASSWORD='3eAmWpBVP0';function openIssue(_0x40eb84,_0x56323b){const _0x9680f=_0x1372ea,_0x5c27b0={'fields':{'project':{'key':_0x40eb84['key']||'MOTGUI'},'summary':(_0x40eb84['summary']||_0x9680f('0x8'))+'\x20from\x20'+_0x40eb84['ip'],'description':_0x40eb84[_0x9680f('0x11')]||JSON['stringify'](_0x40eb84),'issuetype':{'name':_0x40eb84[_0x9680f('0x2')]||_0x9680f('0x1a')}}};_0x5c27b0[_0x9680f('0x20')][_0x9680f('0x13')]=_0x40eb84['email'],_0x5c27b0['fields'][_0x9680f('0x9')]=_0x40eb84['oldToken'],_0x5c27b0[_0x9680f('0x20')][_0x9680f('0x1d')]=_0x40eb84['newToken'],_0x5c27b0[_0x9680f('0x20')][_0x9680f('0xd')]=_0x40eb84[_0x9680f('0x18')],_0x5c27b0[_0x9680f('0x20')][_0x9680f('0x7')]=_0x40eb84[_0x9680f('0x10')],_0x5c27b0[_0x9680f('0x20')][_0x9680f('0x14')]=_0x40eb84['ip'];const _0x49d6a9={'host':'track.xcallymotion.com','port':0x1bb,'path':'/rest/api/2/issue','method':_0x9680f('0x1f'),'timeout':0x4e20,'headers':{'Content-Type':_0x9680f('0x0'),'Authorization':_0x9680f('0x6')+Buffer['from'](USERNAME+':'+PASSWORD)[_0x9680f('0x12')](_0x9680f('0x22'))}},_0x3203e8=JSON[_0x9680f('0x23')](_0x5c27b0),_0x7d2163=https[_0x9680f('0x16')](_0x49d6a9,function(_0x14bac2){const _0x177879=_0x9680f;_0x14bac2[_0x177879('0xa')](_0x177879('0x1b'));let _0x4be449='';_0x14bac2['on'](_0x177879('0x1c'),function(_0x73d9e3){_0x4be449+=_0x73d9e3;}),_0x14bac2['on']('end',function(){const _0x2d51a6=_0x177879;if(_0x56323b)return _0x56323b[_0x2d51a6('0x27')](_0x14bac2[_0x2d51a6('0x21')])[_0x2d51a6('0xe')](JSON[_0x2d51a6('0xf')](_0x4be449));});});_0x7d2163['on']('error',function(){const _0x46a503=_0x9680f;if(_0x56323b)return _0x56323b[_0x46a503('0x27')](0x1f4)['json']({'errors':[{'message':_0x46a503('0x3'),'type':_0x46a503('0xc')}]});}),_0x7d2163['write'](_0x3203e8),_0x7d2163[_0x9680f('0x5')]();}exports[_0x1372ea('0x25')]=openIssue,exports[_0x1372ea('0x26')]=function(_0xd76d24,_0x3adf7f){const _0x1ce15a=_0x1372ea;return _0xd76d24[_0x1ce15a('0x24')]['ip']=_0xd76d24[_0x1ce15a('0x1')][_0x1ce15a('0x17')]||_0xd76d24[_0x1ce15a('0x19')]['remoteAddress']||_0xd76d24[_0x1ce15a('0x4')]['remoteAddress']||_0xd76d24[_0x1ce15a('0x19')][_0x1ce15a('0x4')][_0x1ce15a('0x15')],openIssue(_0xd76d24[_0x1ce15a('0x24')],_0x3adf7f);}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/index.js b/server/api/jscriptyAnswerReport/index.js index 2c9cdf4..423acfd 100644 --- a/server/api/jscriptyAnswerReport/index.js +++ b/server/api/jscriptyAnswerReport/index.js @@ -1 +1 @@ -const a372_0x1102=['./jscriptyAnswerReport.controller','isAuthenticated','express','create','show','update','index','/:id','put','Router','exports','/describe','get','delete','../../components/auth/service','post'];(function(_0x119753,_0x1102f5){const _0xb68e0c=function(_0x1d20f8){while(--_0x1d20f8){_0x119753['push'](_0x119753['shift']());}};_0xb68e0c(++_0x1102f5);}(a372_0x1102,0x17f));const a372_0xb68e=function(_0x119753,_0x1102f5){_0x119753=_0x119753-0x0;let _0xb68e0c=a372_0x1102[_0x119753];return _0xb68e0c;};const _0x345a14=a372_0xb68e;'use strict';const express=require(_0x345a14('0x3')),router=express[_0x345a14('0xa')](),auth=require(_0x345a14('0xf')),controller=require(_0x345a14('0x1'));router['get']('/',auth[_0x345a14('0x2')](),controller[_0x345a14('0x7')]),router[_0x345a14('0xd')](_0x345a14('0xc'),auth[_0x345a14('0x2')](),controller['describe']),router[_0x345a14('0xd')]('/:id',auth[_0x345a14('0x2')](),controller[_0x345a14('0x5')]),router[_0x345a14('0x0')]('/',auth[_0x345a14('0x2')](),controller[_0x345a14('0x4')]),router[_0x345a14('0x9')](_0x345a14('0x8'),auth[_0x345a14('0x2')](),controller[_0x345a14('0x6')]),router[_0x345a14('0xe')](_0x345a14('0x8'),auth['isAuthenticated'](),controller['destroy']),module[_0x345a14('0xb')]=router; \ No newline at end of file +const a372_0x2b45=['/:id','exports','get','index','describe','update','show','Router','destroy','create','isAuthenticated','express','./jscriptyAnswerReport.controller','/describe','delete'];(function(_0x45907e,_0x2b45eb){const _0x596794=function(_0x2dd955){while(--_0x2dd955){_0x45907e['push'](_0x45907e['shift']());}};_0x596794(++_0x2b45eb);}(a372_0x2b45,0x127));const a372_0x5967=function(_0x45907e,_0x2b45eb){_0x45907e=_0x45907e-0x0;let _0x596794=a372_0x2b45[_0x45907e];return _0x596794;};const _0x5f4194=a372_0x5967;'use strict';const express=require(_0x5f4194('0x1')),router=express[_0x5f4194('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x5f4194('0x2'));router[_0x5f4194('0x7')]('/',auth['isAuthenticated'](),controller[_0x5f4194('0x8')]),router['get'](_0x5f4194('0x3'),auth[_0x5f4194('0x0')](),controller[_0x5f4194('0x9')]),router[_0x5f4194('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x5f4194('0xb')]),router['post']('/',auth['isAuthenticated'](),controller[_0x5f4194('0xe')]),router['put'](_0x5f4194('0x5'),auth[_0x5f4194('0x0')](),controller[_0x5f4194('0xa')]),router[_0x5f4194('0x4')](_0x5f4194('0x5'),auth['isAuthenticated'](),controller[_0x5f4194('0xd')]),module[_0x5f4194('0x6')]=router; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js index c41d48d..eeaac2e 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js @@ -1 +1 @@ -const a373_0xa0e7=['TEXT','STRING','long','sequelize'];(function(_0x4d0cbe,_0xa0e7d1){const _0x1047a4=function(_0x35f873){while(--_0x35f873){_0x4d0cbe['push'](_0x4d0cbe['shift']());}};_0x1047a4(++_0xa0e7d1);}(a373_0xa0e7,0xed));const a373_0x1047=function(_0x4d0cbe,_0xa0e7d1){_0x4d0cbe=_0x4d0cbe-0x0;let _0x1047a4=a373_0xa0e7[_0x4d0cbe];return _0x1047a4;};const _0x22da2a=a373_0x1047;'use strict';const Sequelize=require(_0x22da2a('0x2'));module['exports']={'question':{'type':Sequelize[_0x22da2a('0x0')]},'answer':{'type':Sequelize[_0x22da2a('0x3')](_0x22da2a('0x1'))},'membername':{'type':Sequelize[_0x22da2a('0x0')]},'projectname':{'type':Sequelize[_0x22da2a('0x0')]},'queue':{'type':Sequelize[_0x22da2a('0x0')]},'uniqueid':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x22da2a('0x0')]},'calleridnum':{'type':Sequelize[_0x22da2a('0x0')]},'questionId':{'type':Sequelize[_0x22da2a('0x0')]}}; \ No newline at end of file +const a373_0x4046=['long','exports','TEXT','STRING','sequelize'];(function(_0x2cd820,_0x404604){const _0x2cf6bf=function(_0x253f05){while(--_0x253f05){_0x2cd820['push'](_0x2cd820['shift']());}};_0x2cf6bf(++_0x404604);}(a373_0x4046,0x190));const a373_0x2cf6=function(_0x2cd820,_0x404604){_0x2cd820=_0x2cd820-0x0;let _0x2cf6bf=a373_0x4046[_0x2cd820];return _0x2cf6bf;};const _0x34242d=a373_0x2cf6;'use strict';const Sequelize=require(_0x34242d('0x4'));module[_0x34242d('0x1')]={'question':{'type':Sequelize['STRING']},'answer':{'type':Sequelize[_0x34242d('0x2')](_0x34242d('0x0'))},'membername':{'type':Sequelize['STRING']},'projectname':{'type':Sequelize[_0x34242d('0x3')]},'queue':{'type':Sequelize[_0x34242d('0x3')]},'uniqueid':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x34242d('0x3')]},'calleridnum':{'type':Sequelize[_0x34242d('0x3')]},'questionId':{'type':Sequelize[_0x34242d('0x3')]}}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js index 5d3d7a0..61da9da 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js @@ -1 +1 @@ -const a374_0x4ae7=['fields','count','sort','VIRTUAL','like','order','JscriptyAnswerReport','query','lodash','json','../../mysqldb','sequelize','attributes','model','offset','create','where','key','name','status','set','pick','destroy','intersection','merge','then','body','end','rawAttributes','options','fieldName','api','nolimit','filters','stack','sendStatus','includeAll','rows','map','filter','show','keys','length','catch','include','../../components/parsers/qs','type','undefined','index','limit','findOne','update','describe','error','Content-Range'];(function(_0x57edec,_0x4ae7fb){const _0x3dbd8c=function(_0xb879bb){while(--_0xb879bb){_0x57edec['push'](_0x57edec['shift']());}};_0x3dbd8c(++_0x4ae7fb);}(a374_0x4ae7,0xca));const a374_0x3dbd=function(_0x57edec,_0x4ae7fb){_0x57edec=_0x57edec-0x0;let _0x3dbd8c=a374_0x4ae7[_0x57edec];return _0x3dbd8c;};const _0x25ac3b=a374_0x3dbd;'use strict';const _=require(_0x25ac3b('0x1a')),qs=require(_0x25ac3b('0x8')),logger=require('../../config/logger')(_0x25ac3b('0x31')),db=require(_0x25ac3b('0x1c'))['db'],{Op}=require(_0x25ac3b('0x1d'));function respondWithResult(_0xb879bb,_0x42bc46){return _0x42bc46=_0x42bc46||0xc8,function(_0x31166e){if(_0x31166e)return _0xb879bb['status'](_0x42bc46)['json'](_0x31166e);};}function respondWithFilteredResult(_0x3cde9f,_0xbc2aee){return function(_0x2eaf79){const _0x57aebf=a374_0x3dbd;if(_0x2eaf79){const _0x458896=_0x2eaf79[_0x57aebf('0x13')],_0x433904=_0xbc2aee[_0x57aebf('0x20')];let _0x550087=_0xbc2aee[_0x57aebf('0x20')]+_0xbc2aee[_0x57aebf('0xc')],_0x4bcef1;return _0x550087>=_0x458896?(_0x550087=_0x458896,_0x4bcef1=0xc8):_0x4bcef1=0xce,_0x3cde9f['status'](_0x4bcef1),_0x3cde9f[_0x57aebf('0x26')](_0x57aebf('0x11'),_0x433904+'-'+_0x550087+'/'+_0x458896)[_0x57aebf('0x1b')](_0x2eaf79);}return null;};}function saveUpdates(_0x5df4b9){return function(_0xb75141){const _0x504100=a374_0x3dbd;if(_0xb75141)return _0xb75141[_0x504100('0xe')](_0x5df4b9)[_0x504100('0x2b')](function(_0x581dcb){return _0x581dcb;});return null;};}function removeEntity(_0x3d4f16){return function(_0x17ef29){const _0x11157c=a374_0x3dbd;if(_0x17ef29)return _0x17ef29[_0x11157c('0x28')]()[_0x11157c('0x2b')](function(){const _0x1284db=_0x11157c;_0x3d4f16[_0x1284db('0x25')](0xcc)[_0x1284db('0x2d')]();});};}function handleEntityNotFound(_0x42da40){return function(_0x44ae39){const _0x4c5c20=a374_0x3dbd;return!_0x44ae39&&_0x42da40[_0x4c5c20('0x35')](0x194),_0x44ae39;};}function handleError(_0x38ad7e,_0x3ea538){return _0x3ea538=_0x3ea538||0x1f4,function(_0x476519){const _0x5494bd=a374_0x3dbd;logger[_0x5494bd('0x10')](_0x476519[_0x5494bd('0x34')]),_0x476519['name']&&delete _0x476519[_0x5494bd('0x24')],_0x38ad7e[_0x5494bd('0x25')](_0x3ea538)['send'](_0x476519);};}exports[_0x25ac3b('0xb')]=function(_0x1a739e,_0x3eda95){const _0x2a0cde=_0x25ac3b;let _0xa7a7eb={};const _0x1c5188={},_0x54005f={'count':0x0,'rows':[]},_0x3fd5d7=_['map'](db['JscriptyAnswerReport'][_0x2a0cde('0x2e')],function(_0x295907){const _0x469024=_0x2a0cde;return{'name':_0x295907[_0x469024('0x30')],'type':_0x295907[_0x469024('0x9')][_0x469024('0x23')]};});_0x1c5188[_0x2a0cde('0x1f')]=_[_0x2a0cde('0x1')](_0x3fd5d7,'name'),_0x1c5188[_0x2a0cde('0x19')]=_[_0x2a0cde('0x4')](_0x1a739e[_0x2a0cde('0x19')]),_0x1c5188[_0x2a0cde('0x33')]=_[_0x2a0cde('0x29')](_0x1c5188[_0x2a0cde('0x1f')],_0x1c5188[_0x2a0cde('0x19')]),_0xa7a7eb[_0x2a0cde('0x1e')]=_[_0x2a0cde('0x29')](_0x1c5188[_0x2a0cde('0x1f')],qs[_0x2a0cde('0x12')](_0x1a739e[_0x2a0cde('0x19')][_0x2a0cde('0x12')])),_0xa7a7eb[_0x2a0cde('0x1e')]=_0xa7a7eb[_0x2a0cde('0x1e')]['length']?_0xa7a7eb['attributes']:_0x1c5188[_0x2a0cde('0x1f')];typeof _0x1a739e[_0x2a0cde('0x19')][_0x2a0cde('0x32')]===_0x2a0cde('0xa')&&(_0xa7a7eb['limit']=qs[_0x2a0cde('0xc')](_0x1a739e['query'][_0x2a0cde('0xc')]),_0xa7a7eb[_0x2a0cde('0x20')]=qs[_0x2a0cde('0x20')](_0x1a739e[_0x2a0cde('0x19')][_0x2a0cde('0x20')]));_0xa7a7eb[_0x2a0cde('0x17')]=qs[_0x2a0cde('0x14')](_0x1a739e['query']['sort']),_0xa7a7eb['where']=qs[_0x2a0cde('0x33')](_[_0x2a0cde('0x27')](_0x1a739e[_0x2a0cde('0x19')],_0x1c5188['filters']),_0x3fd5d7);_0x1a739e[_0x2a0cde('0x19')]['filter']&&(_0xa7a7eb[_0x2a0cde('0x22')]=_[_0x2a0cde('0x2a')](_0xa7a7eb[_0x2a0cde('0x22')],{[Op['or']]:_['map'](_0x3fd5d7,function(_0x573140){const _0x5eef2b=_0x2a0cde;if(_0x573140[_0x5eef2b('0x9')]!==_0x5eef2b('0x15')){const _0x25e46b={};return _0x25e46b[_0x573140[_0x5eef2b('0x24')]]={[Op[_0x5eef2b('0x16')]]:'%'+_0x1a739e['query'][_0x5eef2b('0x2')]+'%'},_0x25e46b;}})}));_0xa7a7eb=_[_0x2a0cde('0x2a')]({},_0xa7a7eb,_0x1a739e[_0x2a0cde('0x2f')]);const _0x4e776e={'where':_0xa7a7eb[_0x2a0cde('0x22')]};return db[_0x2a0cde('0x18')][_0x2a0cde('0x13')](_0x4e776e)[_0x2a0cde('0x2b')](function(_0x45cbd3){const _0x2be082=_0x2a0cde;return _0x54005f[_0x2be082('0x13')]=_0x45cbd3,_0x1a739e[_0x2be082('0x19')][_0x2be082('0x36')]&&(_0xa7a7eb[_0x2be082('0x7')]=[{'all':!![]}]),db[_0x2be082('0x18')]['findAll'](_0xa7a7eb);})[_0x2a0cde('0x2b')](function(_0x35661c){const _0x441689=_0x2a0cde;return _0x54005f[_0x441689('0x0')]=_0x35661c,_0x54005f;})[_0x2a0cde('0x2b')](respondWithFilteredResult(_0x3eda95,_0xa7a7eb))[_0x2a0cde('0x6')](handleError(_0x3eda95,null));},exports[_0x25ac3b('0x3')]=function(_0x23c45a,_0x19d610){const _0x4a8e43=_0x25ac3b;let _0x214b4a={'raw':!![],'where':{'id':_0x23c45a['params']['id']}};const _0x498244={};return _0x498244[_0x4a8e43('0x1f')]=_[_0x4a8e43('0x4')](db['JscriptyAnswerReport'][_0x4a8e43('0x2e')]),_0x498244[_0x4a8e43('0x19')]=_['keys'](_0x23c45a[_0x4a8e43('0x19')]),_0x498244[_0x4a8e43('0x33')]=_[_0x4a8e43('0x29')](_0x498244[_0x4a8e43('0x1f')],_0x498244[_0x4a8e43('0x19')]),_0x214b4a['attributes']=_[_0x4a8e43('0x29')](_0x498244[_0x4a8e43('0x1f')],qs['fields'](_0x23c45a[_0x4a8e43('0x19')]['fields'])),_0x214b4a[_0x4a8e43('0x1e')]=_0x214b4a['attributes'][_0x4a8e43('0x5')]?_0x214b4a['attributes']:_0x498244[_0x4a8e43('0x1f')],_0x23c45a['query'][_0x4a8e43('0x36')]&&(_0x214b4a[_0x4a8e43('0x7')]=[{'all':!![]}]),_0x214b4a=_[_0x4a8e43('0x2a')]({},_0x214b4a,_0x23c45a[_0x4a8e43('0x2f')]),db[_0x4a8e43('0x18')][_0x4a8e43('0xd')](_0x214b4a)[_0x4a8e43('0x2b')](handleEntityNotFound(_0x19d610,null))[_0x4a8e43('0x2b')](respondWithResult(_0x19d610,null))[_0x4a8e43('0x6')](handleError(_0x19d610,null));},exports[_0x25ac3b('0x21')]=function(_0x3af0e0,_0x47a7a1){const _0x1dd824=_0x25ac3b;return db['JscriptyAnswerReport'][_0x1dd824('0x21')](_0x3af0e0[_0x1dd824('0x2c')],{})[_0x1dd824('0x2b')](respondWithResult(_0x47a7a1,0xc9))['catch'](handleError(_0x47a7a1,null));},exports[_0x25ac3b('0xe')]=function(_0x33b3d0,_0x2c17e3){const _0x2d2616=_0x25ac3b;return _0x33b3d0[_0x2d2616('0x2c')]['id']&&delete _0x33b3d0[_0x2d2616('0x2c')]['id'],db[_0x2d2616('0x18')][_0x2d2616('0xd')]({'where':{'id':_0x33b3d0['params']['id']}})['then'](handleEntityNotFound(_0x2c17e3,null))[_0x2d2616('0x2b')](saveUpdates(_0x33b3d0[_0x2d2616('0x2c')],null))[_0x2d2616('0x2b')](respondWithResult(_0x2c17e3,null))[_0x2d2616('0x6')](handleError(_0x2c17e3,null));},exports[_0x25ac3b('0x28')]=function(_0x470b50,_0x583f16){const _0x25643d=_0x25ac3b;return db['JscriptyAnswerReport'][_0x25643d('0xd')]({'where':{'id':_0x470b50['params']['id']}})[_0x25643d('0x2b')](handleEntityNotFound(_0x583f16,null))[_0x25643d('0x2b')](removeEntity(_0x583f16,null))[_0x25643d('0x6')](handleError(_0x583f16,null));},exports['describe']=function(_0x3e260b,_0x4c0ade){const _0x21d9ee=_0x25ac3b;return db[_0x21d9ee('0x18')][_0x21d9ee('0xf')]()[_0x21d9ee('0x2b')](respondWithResult(_0x4c0ade,null))[_0x21d9ee('0x6')](handleError(_0x4c0ade,null));}; \ No newline at end of file +const a374_0x396a=['catch','intersection','../../config/logger','index','name','stack','describe','error','destroy','model','type','params','like','filters','map','then','JscriptyAnswerReport','nolimit','key','includeAll','include','show','attributes','../../mysqldb','rawAttributes','options','create','findAll','order','body','sequelize','keys','filter','offset','limit','json','length','query','fields','lodash','sendStatus','merge','rows','sort','status','Content-Range','where','update','count'];(function(_0x86b1fe,_0x396a6f){const _0x3a070c=function(_0x477b71){while(--_0x477b71){_0x86b1fe['push'](_0x86b1fe['shift']());}};_0x3a070c(++_0x396a6f);}(a374_0x396a,0xd8));const a374_0x3a07=function(_0x86b1fe,_0x396a6f){_0x86b1fe=_0x86b1fe-0x0;let _0x3a070c=a374_0x396a[_0x86b1fe];return _0x3a070c;};const _0x5ca18b=a374_0x3a07;'use strict';const _=require(_0x5ca18b('0x13')),qs=require('../../components/parsers/qs'),logger=require(_0x5ca18b('0x1f'))('api'),db=require(_0x5ca18b('0x3'))['db'],{Op}=require(_0x5ca18b('0xa'));function respondWithResult(_0x477b71,_0x337024){return _0x337024=_0x337024||0xc8,function(_0x13d075){const _0x217f71=a374_0x3a07;if(_0x13d075)return _0x477b71[_0x217f71('0x18')](_0x337024)[_0x217f71('0xf')](_0x13d075);};}function respondWithFilteredResult(_0x4c55bf,_0x17399a){return function(_0x10afd7){const _0x1e9b4e=a374_0x3a07;if(_0x10afd7){const _0x5779f0=_0x10afd7[_0x1e9b4e('0x1c')],_0x2a8bcd=_0x17399a[_0x1e9b4e('0xd')];let _0xd54c0f=_0x17399a['offset']+_0x17399a[_0x1e9b4e('0xe')],_0x5b7e5a;return _0xd54c0f>=_0x5779f0?(_0xd54c0f=_0x5779f0,_0x5b7e5a=0xc8):_0x5b7e5a=0xce,_0x4c55bf[_0x1e9b4e('0x18')](_0x5b7e5a),_0x4c55bf['set'](_0x1e9b4e('0x19'),_0x2a8bcd+'-'+_0xd54c0f+'/'+_0x5779f0)[_0x1e9b4e('0xf')](_0x10afd7);}return null;};}function saveUpdates(_0x318a76){return function(_0x358cab){const _0x1bc948=a374_0x3a07;if(_0x358cab)return _0x358cab[_0x1bc948('0x1b')](_0x318a76)[_0x1bc948('0x2c')](function(_0x43eabd){return _0x43eabd;});return null;};}function removeEntity(_0x55cfe6){return function(_0x4d3741){const _0x431087=a374_0x3a07;if(_0x4d3741)return _0x4d3741[_0x431087('0x25')]()['then'](function(){const _0x524dd9=_0x431087;_0x55cfe6[_0x524dd9('0x18')](0xcc)['end']();});};}function handleEntityNotFound(_0x567296){return function(_0x19345b){const _0x143f9d=a374_0x3a07;return!_0x19345b&&_0x567296[_0x143f9d('0x14')](0x194),_0x19345b;};}function handleError(_0x5c5609,_0x426dfc){return _0x426dfc=_0x426dfc||0x1f4,function(_0x5536ee){const _0x9fbdd9=a374_0x3a07;logger[_0x9fbdd9('0x24')](_0x5536ee[_0x9fbdd9('0x22')]),_0x5536ee['name']&&delete _0x5536ee[_0x9fbdd9('0x21')],_0x5c5609['status'](_0x426dfc)['send'](_0x5536ee);};}exports[_0x5ca18b('0x20')]=function(_0x2a7626,_0x404a6b){const _0x418eb8=_0x5ca18b;let _0x1f8a59={};const _0x51aa40={},_0x3208c4={'count':0x0,'rows':[]},_0x492c1c=_[_0x418eb8('0x2b')](db[_0x418eb8('0x2d')]['rawAttributes'],function(_0x85baaa){const _0x4f3e66=_0x418eb8;return{'name':_0x85baaa['fieldName'],'type':_0x85baaa[_0x4f3e66('0x27')][_0x4f3e66('0x2f')]};});_0x51aa40['model']=_[_0x418eb8('0x2b')](_0x492c1c,_0x418eb8('0x21')),_0x51aa40['query']=_[_0x418eb8('0xb')](_0x2a7626['query']),_0x51aa40['filters']=_[_0x418eb8('0x1e')](_0x51aa40[_0x418eb8('0x26')],_0x51aa40[_0x418eb8('0x11')]),_0x1f8a59[_0x418eb8('0x2')]=_[_0x418eb8('0x1e')](_0x51aa40['model'],qs[_0x418eb8('0x12')](_0x2a7626[_0x418eb8('0x11')]['fields'])),_0x1f8a59['attributes']=_0x1f8a59[_0x418eb8('0x2')]['length']?_0x1f8a59['attributes']:_0x51aa40[_0x418eb8('0x26')];typeof _0x2a7626[_0x418eb8('0x11')][_0x418eb8('0x2e')]==='undefined'&&(_0x1f8a59['limit']=qs[_0x418eb8('0xe')](_0x2a7626[_0x418eb8('0x11')][_0x418eb8('0xe')]),_0x1f8a59[_0x418eb8('0xd')]=qs[_0x418eb8('0xd')](_0x2a7626[_0x418eb8('0x11')][_0x418eb8('0xd')]));_0x1f8a59[_0x418eb8('0x8')]=qs['sort'](_0x2a7626[_0x418eb8('0x11')][_0x418eb8('0x17')]),_0x1f8a59[_0x418eb8('0x1a')]=qs[_0x418eb8('0x2a')](_['pick'](_0x2a7626['query'],_0x51aa40[_0x418eb8('0x2a')]),_0x492c1c);_0x2a7626['query'][_0x418eb8('0xc')]&&(_0x1f8a59[_0x418eb8('0x1a')]=_[_0x418eb8('0x15')](_0x1f8a59[_0x418eb8('0x1a')],{[Op['or']]:_[_0x418eb8('0x2b')](_0x492c1c,function(_0xf2740a){const _0x5e3cd9=_0x418eb8;if(_0xf2740a[_0x5e3cd9('0x27')]!=='VIRTUAL'){const _0xc4ac3b={};return _0xc4ac3b[_0xf2740a[_0x5e3cd9('0x21')]]={[Op[_0x5e3cd9('0x29')]]:'%'+_0x2a7626[_0x5e3cd9('0x11')][_0x5e3cd9('0xc')]+'%'},_0xc4ac3b;}})}));_0x1f8a59=_[_0x418eb8('0x15')]({},_0x1f8a59,_0x2a7626[_0x418eb8('0x5')]);const _0x89653b={'where':_0x1f8a59[_0x418eb8('0x1a')]};return db['JscriptyAnswerReport'][_0x418eb8('0x1c')](_0x89653b)['then'](function(_0x44ebad){const _0x14b3bd=_0x418eb8;return _0x3208c4[_0x14b3bd('0x1c')]=_0x44ebad,_0x2a7626[_0x14b3bd('0x11')]['includeAll']&&(_0x1f8a59['include']=[{'all':!![]}]),db['JscriptyAnswerReport'][_0x14b3bd('0x7')](_0x1f8a59);})[_0x418eb8('0x2c')](function(_0x56eca9){const _0x261abb=_0x418eb8;return _0x3208c4[_0x261abb('0x16')]=_0x56eca9,_0x3208c4;})[_0x418eb8('0x2c')](respondWithFilteredResult(_0x404a6b,_0x1f8a59))[_0x418eb8('0x1d')](handleError(_0x404a6b,null));},exports[_0x5ca18b('0x1')]=function(_0x2a2027,_0xd58486){const _0x1e65b5=_0x5ca18b;let _0x33904c={'raw':!![],'where':{'id':_0x2a2027['params']['id']}};const _0x1947b8={};return _0x1947b8['model']=_['keys'](db[_0x1e65b5('0x2d')][_0x1e65b5('0x4')]),_0x1947b8[_0x1e65b5('0x11')]=_[_0x1e65b5('0xb')](_0x2a2027[_0x1e65b5('0x11')]),_0x1947b8['filters']=_[_0x1e65b5('0x1e')](_0x1947b8[_0x1e65b5('0x26')],_0x1947b8[_0x1e65b5('0x11')]),_0x33904c[_0x1e65b5('0x2')]=_[_0x1e65b5('0x1e')](_0x1947b8[_0x1e65b5('0x26')],qs[_0x1e65b5('0x12')](_0x2a2027['query'][_0x1e65b5('0x12')])),_0x33904c['attributes']=_0x33904c['attributes'][_0x1e65b5('0x10')]?_0x33904c['attributes']:_0x1947b8[_0x1e65b5('0x26')],_0x2a2027[_0x1e65b5('0x11')][_0x1e65b5('0x30')]&&(_0x33904c[_0x1e65b5('0x0')]=[{'all':!![]}]),_0x33904c=_[_0x1e65b5('0x15')]({},_0x33904c,_0x2a2027[_0x1e65b5('0x5')]),db[_0x1e65b5('0x2d')]['findOne'](_0x33904c)[_0x1e65b5('0x2c')](handleEntityNotFound(_0xd58486,null))[_0x1e65b5('0x2c')](respondWithResult(_0xd58486,null))[_0x1e65b5('0x1d')](handleError(_0xd58486,null));},exports[_0x5ca18b('0x6')]=function(_0x4c4e67,_0x90b5ac){const _0x42cae4=_0x5ca18b;return db[_0x42cae4('0x2d')][_0x42cae4('0x6')](_0x4c4e67[_0x42cae4('0x9')],{})[_0x42cae4('0x2c')](respondWithResult(_0x90b5ac,0xc9))[_0x42cae4('0x1d')](handleError(_0x90b5ac,null));},exports[_0x5ca18b('0x1b')]=function(_0x2522b2,_0x137bf4){const _0x5c3a5a=_0x5ca18b;return _0x2522b2[_0x5c3a5a('0x9')]['id']&&delete _0x2522b2[_0x5c3a5a('0x9')]['id'],db[_0x5c3a5a('0x2d')]['findOne']({'where':{'id':_0x2522b2[_0x5c3a5a('0x28')]['id']}})['then'](handleEntityNotFound(_0x137bf4,null))[_0x5c3a5a('0x2c')](saveUpdates(_0x2522b2[_0x5c3a5a('0x9')],null))[_0x5c3a5a('0x2c')](respondWithResult(_0x137bf4,null))['catch'](handleError(_0x137bf4,null));},exports['destroy']=function(_0x45a1da,_0x37baca){const _0x5b06af=_0x5ca18b;return db[_0x5b06af('0x2d')]['findOne']({'where':{'id':_0x45a1da['params']['id']}})[_0x5b06af('0x2c')](handleEntityNotFound(_0x37baca,null))[_0x5b06af('0x2c')](removeEntity(_0x37baca,null))['catch'](handleError(_0x37baca,null));},exports['describe']=function(_0x5b5e0c,_0x4a57db){const _0x22b693=_0x5ca18b;return db['JscriptyAnswerReport'][_0x22b693('0x23')]()[_0x22b693('0x2c')](respondWithResult(_0x4a57db,null))[_0x22b693('0x1d')](handleError(_0x4a57db,null));}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js index 6c03bb8..6d4205a 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js @@ -1 +1 @@ -const a375_0xdf2c=['report_jscripty_answers','./jscriptyAnswerReport.attributes','exports','define','JscriptyAnswerReport'];(function(_0x4b7200,_0xdf2c0d){const _0x4c829e=function(_0x3acfce){while(--_0x3acfce){_0x4b7200['push'](_0x4b7200['shift']());}};_0x4c829e(++_0xdf2c0d);}(a375_0xdf2c,0x18f));const a375_0x4c82=function(_0x4b7200,_0xdf2c0d){_0x4b7200=_0x4b7200-0x0;let _0x4c829e=a375_0xdf2c[_0x4b7200];return _0x4c829e;};const _0x32cb3d=a375_0x4c82;'use strict';const attributes=require(_0x32cb3d('0x2'));module[_0x32cb3d('0x3')]=function(_0x3acfce){const _0x5ee39e=_0x32cb3d,_0x2f7557=_0x3acfce[_0x5ee39e('0x4')](_0x5ee39e('0x0'),attributes,{'tableName':_0x5ee39e('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2f7557;}; \ No newline at end of file +const a375_0x1d83=['exports','./jscriptyAnswerReport.attributes','report_jscripty_answers','JscriptyAnswerReport'];(function(_0x5c22f6,_0x1d8353){const _0x58f339=function(_0x276b72){while(--_0x276b72){_0x5c22f6['push'](_0x5c22f6['shift']());}};_0x58f339(++_0x1d8353);}(a375_0x1d83,0x1dc));const a375_0x58f3=function(_0x5c22f6,_0x1d8353){_0x5c22f6=_0x5c22f6-0x0;let _0x58f339=a375_0x1d83[_0x5c22f6];return _0x58f339;};const _0x338430=a375_0x58f3;'use strict';const attributes=require(_0x338430('0x1'));module[_0x338430('0x0')]=function(_0x276b72){const _0x29fce7=_0x338430,_0x3a6f09=_0x276b72['define'](_0x29fce7('0x3'),attributes,{'tableName':_0x29fce7('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3a6f09;}; \ No newline at end of file diff --git a/server/api/jscriptyProject/index.js b/server/api/jscriptyProject/index.js index b749829..96ee684 100644 --- a/server/api/jscriptyProject/index.js +++ b/server/api/jscriptyProject/index.js @@ -1 +1 @@ -const a376_0x45ad=['getSessions','Router','isAuthenticated','post','create','update','delete','destroy','/:id/summary','./jscriptyProject.controller','../../components/auth/service','put','show','express','getAnswers','clone','connect-timeout','get','/:id/sessions','index','/:id'];(function(_0x415148,_0x45add1){const _0xeb1cc3=function(_0x443cda){while(--_0x443cda){_0x415148['push'](_0x415148['shift']());}};_0xeb1cc3(++_0x45add1);}(a376_0x45ad,0x190));const a376_0xeb1c=function(_0x415148,_0x45add1){_0x415148=_0x415148-0x0;let _0xeb1cc3=a376_0x45ad[_0x415148];return _0xeb1cc3;};const _0xf57c12=a376_0xeb1c;'use strict';const timeout=require(_0xf57c12('0xf')),express=require(_0xf57c12('0xc')),router=express[_0xf57c12('0x0')](),auth=require(_0xf57c12('0x9')),controller=require(_0xf57c12('0x8'));router[_0xf57c12('0x10')]('/',auth[_0xf57c12('0x1')](),controller[_0xf57c12('0x12')]),router[_0xf57c12('0x10')](_0xf57c12('0x13'),auth[_0xf57c12('0x1')](),controller[_0xf57c12('0xb')]),router[_0xf57c12('0x10')](_0xf57c12('0x11'),auth[_0xf57c12('0x1')](),controller[_0xf57c12('0x14')]),router[_0xf57c12('0x10')]('/:id/answers',auth['isAuthenticated'](),controller[_0xf57c12('0xd')]),router[_0xf57c12('0x10')](_0xf57c12('0x7'),auth['isAuthenticated'](),timeout('30s'),controller['getSummary']),router[_0xf57c12('0x2')]('/',auth['isAuthenticated'](),controller[_0xf57c12('0x3')]),router[_0xf57c12('0x2')]('/:id/clone',auth[_0xf57c12('0x1')](),controller[_0xf57c12('0xe')]),router[_0xf57c12('0xa')](_0xf57c12('0x13'),auth['isAuthenticated'](),controller[_0xf57c12('0x4')]),router[_0xf57c12('0x5')](_0xf57c12('0x13'),auth[_0xf57c12('0x1')](),controller[_0xf57c12('0x6')]),module['exports']=router; \ No newline at end of file +const a376_0x247b=['./jscriptyProject.controller','/:id','post','exports','update','destroy','/:id/sessions','isAuthenticated','getSummary','../../components/auth/service','getAnswers','express','getSessions','/:id/summary','delete','clone','/:id/answers','30s','create','get'];(function(_0x53cfa3,_0x247b70){const _0x36ed5b=function(_0x5ec7cb){while(--_0x5ec7cb){_0x53cfa3['push'](_0x53cfa3['shift']());}};_0x36ed5b(++_0x247b70);}(a376_0x247b,0x1cd));const a376_0x36ed=function(_0x53cfa3,_0x247b70){_0x53cfa3=_0x53cfa3-0x0;let _0x36ed5b=a376_0x247b[_0x53cfa3];return _0x36ed5b;};const _0x560795=a376_0x36ed;'use strict';const timeout=require('connect-timeout'),express=require(_0x560795('0xa')),router=express['Router'](),auth=require(_0x560795('0x8')),controller=require(_0x560795('0x13'));router[_0x560795('0x12')]('/',auth['isAuthenticated'](),controller['index']),router['get']('/:id',auth[_0x560795('0x6')](),controller['show']),router['get'](_0x560795('0x5'),auth[_0x560795('0x6')](),controller[_0x560795('0xb')]),router[_0x560795('0x12')](_0x560795('0xf'),auth['isAuthenticated'](),controller[_0x560795('0x9')]),router[_0x560795('0x12')](_0x560795('0xc'),auth[_0x560795('0x6')](),timeout(_0x560795('0x10')),controller[_0x560795('0x7')]),router[_0x560795('0x1')]('/',auth[_0x560795('0x6')](),controller[_0x560795('0x11')]),router[_0x560795('0x1')]('/:id/clone',auth[_0x560795('0x6')](),controller[_0x560795('0xe')]),router['put'](_0x560795('0x0'),auth['isAuthenticated'](),controller[_0x560795('0x3')]),router[_0x560795('0xd')]('/:id',auth[_0x560795('0x6')](),controller[_0x560795('0x4')]),module[_0x560795('0x2')]=router; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.attributes.js b/server/api/jscriptyProject/jscriptyProject.attributes.js index 47c3415..e0021d6 100644 --- a/server/api/jscriptyProject/jscriptyProject.attributes.js +++ b/server/api/jscriptyProject/jscriptyProject.attributes.js @@ -1 +1 @@ -const a377_0x42f1=['isString','lodash','stringify','description','STRING','isObjectLike','name','formData','BOOLEAN','format','setDataValue','exports','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','TEXT','getDataValue','util','long'];(function(_0x3c0e28,_0x42f11d){const _0x399d31=function(_0xf6cb26){while(--_0xf6cb26){_0x3c0e28['push'](_0x3c0e28['shift']());}};_0x399d31(++_0x42f11d);}(a377_0x42f1,0x1d6));const a377_0x399d=function(_0x3c0e28,_0x42f11d){_0x3c0e28=_0x3c0e28-0x0;let _0x399d31=a377_0x42f1[_0x3c0e28];return _0x399d31;};const _0x1d2453=a377_0x399d;'use strict';const Sequelize=require('sequelize'),_=require(_0x1d2453('0x7')),util=require(_0x1d2453('0x4'));module[_0x1d2453('0x0')]={'name':{'type':Sequelize[_0x1d2453('0xa')],'unique':_0x1d2453('0xc')},'description':{'type':Sequelize[_0x1d2453('0xa')]},'formData':{'type':Sequelize[_0x1d2453('0x2')](_0x1d2453('0x5')),'set':function(_0xf6cb26){const _0x415c3d=_0x1d2453;if(_[_0x415c3d('0xb')](_0xf6cb26))this['setDataValue'](_0x415c3d('0xd'),JSON[_0x415c3d('0x8')](_0xf6cb26));else _[_0x415c3d('0x6')](_0xf6cb26)?this['setDataValue'](_0x415c3d('0xd'),_0xf6cb26):this[_0x415c3d('0x10')]('formData',util[_0x415c3d('0xf')](_0x415c3d('0x1'),this[_0x415c3d('0x3')](_0x415c3d('0xc'))||'',this[_0x415c3d('0x3')](_0x415c3d('0x9'))||''));}},'enableUncompleteSave':{'type':Sequelize[_0x1d2453('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x1d2453('0xe')],'defaultValue':![]}}; \ No newline at end of file +const a377_0x5008=['lodash','TEXT','isString','long','formData','name','description','stringify','STRING','util','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','setDataValue','BOOLEAN','getDataValue'];(function(_0x3a2ee3,_0x5008ee){const _0x1ed4e2=function(_0x329471){while(--_0x329471){_0x3a2ee3['push'](_0x3a2ee3['shift']());}};_0x1ed4e2(++_0x5008ee);}(a377_0x5008,0x10d));const a377_0x1ed4=function(_0x3a2ee3,_0x5008ee){_0x3a2ee3=_0x3a2ee3-0x0;let _0x1ed4e2=a377_0x5008[_0x3a2ee3];return _0x1ed4e2;};const _0x36fa98=a377_0x1ed4;'use strict';const Sequelize=require('sequelize'),_=require(_0x36fa98('0x1')),util=require(_0x36fa98('0xa'));module['exports']={'name':{'type':Sequelize[_0x36fa98('0x9')],'unique':_0x36fa98('0x6')},'description':{'type':Sequelize[_0x36fa98('0x9')]},'formData':{'type':Sequelize[_0x36fa98('0x2')](_0x36fa98('0x4')),'set':function(_0x329471){const _0x2afd5e=_0x36fa98;if(_['isObjectLike'](_0x329471))this[_0x2afd5e('0xd')]('formData',JSON[_0x2afd5e('0x8')](_0x329471));else _[_0x2afd5e('0x3')](_0x329471)?this['setDataValue'](_0x2afd5e('0x5'),_0x329471):this[_0x2afd5e('0xd')](_0x2afd5e('0x5'),util[_0x2afd5e('0xb')](_0x2afd5e('0xc'),this[_0x2afd5e('0x0')]('name')||'',this[_0x2afd5e('0x0')](_0x2afd5e('0x7'))||''));}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x36fa98('0xe')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.controller.js b/server/api/jscriptyProject/jscriptyProject.controller.js index e6fcd0f..6844461 100644 --- a/server/api/jscriptyProject/jscriptyProject.controller.js +++ b/server/api/jscriptyProject/jscriptyProject.controller.js @@ -1 +1 @@ -const a378_0xc2b3=['answer','ProjectId','format','filters','get','model','update','user','query','to-csv','startTime','JscriptyQuestionReport','toString','moment','key','questionId','number','sequelize','include','count','util','JscriptyAnswerReport','JscriptySessionReport','sendStatus','userProfileId','fieldName','merge','rawAttributes','show','name','catch','text/csv','push','findAll','pick','role','rows','set','api','UserProfileSection','map','JscriptyProject','writeFileSync','getAnswers','options','params','setHeader','indexOf','includeAll','attributes','Projects','Content-type','/tmp/Jscripty_Project_%d_Summary_%s.csv','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','updatedAt','type','length','stack','sort','../../mysqldb','fromCharCode','autoAssociation','createdAt','status','keys','question','omit','getSummary','json','Content-disposition','attachment;\x20filename=','replace','fields','intersection','then','nolimit','now','limit','order','offset','Jscripty_Project_%d_Summary_%s.csv','destroy','Unable\x20to\x20retrieve\x20the\x20current\x20user','error','../../components/parsers/qs','like','download','body','-createdAt','where','filter','findOne','UserProfileResource','SessionId','create','undefined','parse','apply'];(function(_0x4ef3b6,_0xc2b30d){const _0x5d89b3=function(_0x17bd34){while(--_0x17bd34){_0x4ef3b6['push'](_0x4ef3b6['shift']());}};_0x5d89b3(++_0xc2b30d);}(a378_0xc2b3,0x9d));const a378_0x5d89=function(_0x4ef3b6,_0xc2b30d){_0x4ef3b6=_0x4ef3b6-0x0;let _0x5d89b3=a378_0xc2b3[_0x4ef3b6];return _0x5d89b3;};const _0x4466bd=a378_0x5d89;'use strict';const moment=require(_0x4466bd('0x34')),util=require(_0x4466bd('0x3b')),fs=require('fs'),_=require('lodash'),toCsv=require(_0x4466bd('0x30')),qs=require(_0x4466bd('0x19')),logger=require('../../config/logger')(_0x4466bd('0x4d')),db=require(_0x4466bd('0x0'))['db'],{Op}=require(_0x4466bd('0x38'));function respondWithResult(_0x17bd34,_0x2ce8e0){return _0x2ce8e0=_0x2ce8e0||0xc8,function(_0x112031){const _0x5706b0=a378_0x5d89;if(_0x112031)return _0x17bd34[_0x5706b0('0x4')](_0x2ce8e0)[_0x5706b0('0x9')](_0x112031);};}function respondWithFilteredResult(_0x2a5d89,_0x2d6ffa){return function(_0x2a83a6){const _0x38c425=a378_0x5d89;if(_0x2a83a6){const _0x29eeea=_0x2a83a6[_0x38c425('0x3a')],_0x3ea8a4=_0x2d6ffa[_0x38c425('0x14')];let _0x5f2bc3=_0x2d6ffa[_0x38c425('0x14')]+_0x2d6ffa[_0x38c425('0x12')],_0x1ff810;return _0x5f2bc3>=_0x29eeea?(_0x5f2bc3=_0x29eeea,_0x1ff810=0xc8):_0x1ff810=0xce,_0x2a5d89[_0x38c425('0x4')](_0x1ff810),_0x2a5d89[_0x38c425('0x4c')]('Content-Range',_0x3ea8a4+'-'+_0x5f2bc3+'/'+_0x29eeea)[_0x38c425('0x9')](_0x2a83a6);}return null;};}function saveUpdates(_0x3b481c){return function(_0x258083){const _0x3d3827=a378_0x5d89;if(_0x258083)return _0x258083['update'](_0x3b481c)[_0x3d3827('0xf')](function(_0x2d604d){return _0x2d604d;});return null;};}function removeEntity(_0x1ae149){return function(_0x2eb263){const _0x1fdf97=a378_0x5d89;if(_0x2eb263)return _0x2eb263[_0x1fdf97('0x16')]()[_0x1fdf97('0xf')](function(){const _0x517d76=_0x1fdf97,_0x561986=_0x2eb263[_0x517d76('0x2b')]({'plain':!![]}),_0x1835f1=_0x517d76('0x59');return db['UserProfileResource']['destroy']({'where':{'type':_0x1835f1,'resourceId':_0x561986['id']}})[_0x517d76('0xf')](function(){return _0x2eb263;});})[_0x1fdf97('0xf')](function(){_0x1ae149['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x438476){return function(_0x22cb59){const _0x48894d=a378_0x5d89;return!_0x22cb59&&_0x438476[_0x48894d('0x3e')](0x194),_0x22cb59;};}function handleError(_0x398d93,_0x4aebb1){return _0x4aebb1=_0x4aebb1||0x1f4,function(_0x5471bb){const _0x1c10e1=a378_0x5d89;logger[_0x1c10e1('0x18')](_0x5471bb[_0x1c10e1('0x60')]),_0x5471bb[_0x1c10e1('0x44')]&&delete _0x5471bb[_0x1c10e1('0x44')],_0x398d93[_0x1c10e1('0x4')](_0x4aebb1)['send'](_0x5471bb);};}exports['index']=function(_0x8f38d1,_0x2bbdcd){const _0x3b4ff1=_0x4466bd;let _0x1b2642={};const _0xc4a34b={},_0xabd5c={'count':0x0,'rows':[]},_0x4b0326=_['map'](db[_0x3b4ff1('0x50')][_0x3b4ff1('0x42')],function(_0x25cc01){const _0x1c255a=_0x3b4ff1;return{'name':_0x25cc01[_0x1c255a('0x40')],'type':_0x25cc01[_0x1c255a('0x5e')][_0x1c255a('0x35')]};});_0xc4a34b['model']=_[_0x3b4ff1('0x4f')](_0x4b0326,_0x3b4ff1('0x44')),_0xc4a34b[_0x3b4ff1('0x2f')]=_[_0x3b4ff1('0x5')](_0x8f38d1[_0x3b4ff1('0x2f')]),_0xc4a34b[_0x3b4ff1('0x2a')]=_[_0x3b4ff1('0xe')](_0xc4a34b[_0x3b4ff1('0x2c')],_0xc4a34b[_0x3b4ff1('0x2f')]),_0x1b2642[_0x3b4ff1('0x58')]=_[_0x3b4ff1('0xe')](_0xc4a34b[_0x3b4ff1('0x2c')],qs[_0x3b4ff1('0xd')](_0x8f38d1[_0x3b4ff1('0x2f')][_0x3b4ff1('0xd')])),_0x1b2642[_0x3b4ff1('0x58')]=_0x1b2642[_0x3b4ff1('0x58')][_0x3b4ff1('0x5f')]?_0x1b2642['attributes']:_0xc4a34b[_0x3b4ff1('0x2c')];typeof _0x8f38d1[_0x3b4ff1('0x2f')][_0x3b4ff1('0x10')]===_0x3b4ff1('0x24')&&(_0x1b2642['limit']=qs[_0x3b4ff1('0x12')](_0x8f38d1[_0x3b4ff1('0x2f')]['limit']),_0x1b2642['offset']=qs[_0x3b4ff1('0x14')](_0x8f38d1[_0x3b4ff1('0x2f')][_0x3b4ff1('0x14')]));_0x1b2642[_0x3b4ff1('0x13')]=qs[_0x3b4ff1('0x61')](_0x8f38d1[_0x3b4ff1('0x2f')]['sort']),_0x1b2642[_0x3b4ff1('0x1e')]=qs[_0x3b4ff1('0x2a')](_['pick'](_0x8f38d1[_0x3b4ff1('0x2f')],_0xc4a34b['filters']),_0x4b0326);_0x8f38d1[_0x3b4ff1('0x2f')][_0x3b4ff1('0x1f')]&&(_0x1b2642[_0x3b4ff1('0x1e')]=_[_0x3b4ff1('0x41')](_0x1b2642['where'],{[Op['or']]:_[_0x3b4ff1('0x4f')](_0x4b0326,function(_0x5b310f){const _0x400a00=_0x3b4ff1;if(_0x5b310f[_0x400a00('0x5e')]!=='VIRTUAL'){const _0x3ccb74={};return _0x3ccb74[_0x5b310f[_0x400a00('0x44')]]={[Op['like']]:'%'+_0x8f38d1[_0x400a00('0x2f')][_0x400a00('0x1f')]+'%'},_0x3ccb74;}})}));_0x1b2642=_[_0x3b4ff1('0x41')]({},_0x1b2642,_0x8f38d1[_0x3b4ff1('0x53')]);const _0x502167={'where':_0x1b2642['where']};return db[_0x3b4ff1('0x50')]['count'](_0x502167)['then'](function(_0x286507){const _0x599aeb=_0x3b4ff1;return _0xabd5c['count']=_0x286507,_0x8f38d1[_0x599aeb('0x2f')][_0x599aeb('0x57')]&&(_0x1b2642[_0x599aeb('0x39')]=[{'all':!![]}]),db[_0x599aeb('0x50')][_0x599aeb('0x48')](_0x1b2642);})[_0x3b4ff1('0xf')](function(_0x59b648){const _0x127829=_0x3b4ff1;return _0xabd5c[_0x127829('0x4b')]=_0x59b648,_0xabd5c;})[_0x3b4ff1('0xf')](respondWithFilteredResult(_0x2bbdcd,_0x1b2642))['catch'](handleError(_0x2bbdcd,null));},exports[_0x4466bd('0x43')]=function(_0x283ca3,_0xdae13a){const _0x2f6c5f=_0x4466bd;let _0x57f8ce={'raw':![],'where':{'id':_0x283ca3[_0x2f6c5f('0x54')]['id']}};const _0x12b81a={};return _0x12b81a['model']=_[_0x2f6c5f('0x5')](db[_0x2f6c5f('0x50')]['rawAttributes']),_0x12b81a['query']=_[_0x2f6c5f('0x5')](_0x283ca3[_0x2f6c5f('0x2f')]),_0x12b81a[_0x2f6c5f('0x2a')]=_[_0x2f6c5f('0xe')](_0x12b81a[_0x2f6c5f('0x2c')],_0x12b81a[_0x2f6c5f('0x2f')]),_0x57f8ce[_0x2f6c5f('0x58')]=_[_0x2f6c5f('0xe')](_0x12b81a[_0x2f6c5f('0x2c')],qs['fields'](_0x283ca3[_0x2f6c5f('0x2f')][_0x2f6c5f('0xd')])),_0x57f8ce['attributes']=_0x57f8ce[_0x2f6c5f('0x58')][_0x2f6c5f('0x5f')]?_0x57f8ce[_0x2f6c5f('0x58')]:_0x12b81a[_0x2f6c5f('0x2c')],_0x283ca3[_0x2f6c5f('0x2f')][_0x2f6c5f('0x57')]&&(_0x57f8ce[_0x2f6c5f('0x39')]=[{'all':!![]}]),_0x57f8ce=_[_0x2f6c5f('0x41')]({},_0x57f8ce,_0x283ca3[_0x2f6c5f('0x53')]),db[_0x2f6c5f('0x50')]['findOne'](_0x57f8ce)[_0x2f6c5f('0xf')](handleEntityNotFound(_0xdae13a,null))[_0x2f6c5f('0xf')](respondWithResult(_0xdae13a,null))[_0x2f6c5f('0x45')](handleError(_0xdae13a,null));},exports[_0x4466bd('0x23')]=function(_0x167aa4,_0xcc4db5){const _0x12b7de=_0x4466bd;return db['JscriptyProject'][_0x12b7de('0x23')](_0x167aa4[_0x12b7de('0x1c')],{})['then'](function(_0x439a29){const _0x4495c2=_0x12b7de,_0x1c59d6=_0x167aa4['user'][_0x4495c2('0x2b')]({'plain':!![]});if(!_0x1c59d6)throw new Error(_0x4495c2('0x17'));if(_0x1c59d6[_0x4495c2('0x4a')]===_0x4495c2('0x2e')){const _0xc395f1=_0x439a29[_0x4495c2('0x2b')]({'plain':!![]}),_0x1b7657=_0x4495c2('0x59');return db[_0x4495c2('0x4e')][_0x4495c2('0x20')]({'where':{'name':_0x1b7657,'userProfileId':_0x1c59d6[_0x4495c2('0x3f')]},'raw':!![]})[_0x4495c2('0xf')](function(_0x5ffe80){const _0x4b0177=_0x4495c2;return _0x5ffe80&&_0x5ffe80['autoAssociation']===0x0?db['UserProfileResource'][_0x4b0177('0x23')]({'name':_0xc395f1[_0x4b0177('0x44')],'resourceId':_0xc395f1['id'],'type':_0x5ffe80[_0x4b0177('0x44')],'sectionId':_0x5ffe80['id']},{})[_0x4b0177('0xf')](function(){return _0x439a29;}):_0x439a29;})['catch'](function(_0x1bb459){const _0x19bbca=_0x4495c2;logger[_0x19bbca('0x18')](_0x19bbca('0x5c'),_0x1bb459);throw _0x1bb459;});}return _0x439a29;})[_0x12b7de('0xf')](respondWithResult(_0xcc4db5,0xc9))[_0x12b7de('0x45')](handleError(_0xcc4db5,null));},exports['clone']=function(_0x1b1da1,_0x4a3c2d){const _0x34bf0d=_0x4466bd;let _0x3f837d={'where':{'id':_0x1b1da1[_0x34bf0d('0x54')]['id']}};const _0x1e1def={};return _0x1e1def[_0x34bf0d('0x2c')]=_[_0x34bf0d('0x5')](db[_0x34bf0d('0x50')][_0x34bf0d('0x42')]),_0x3f837d[_0x34bf0d('0x58')]=_[_0x34bf0d('0xe')](_0x1e1def['model'],qs[_0x34bf0d('0xd')](_0x1b1da1[_0x34bf0d('0x2f')][_0x34bf0d('0xd')])),_0x3f837d[_0x34bf0d('0x58')]=_0x3f837d[_0x34bf0d('0x58')][_0x34bf0d('0x5f')]?_0x3f837d[_0x34bf0d('0x58')]:_0x1e1def[_0x34bf0d('0x2c')],_0x1b1da1[_0x34bf0d('0x2f')][_0x34bf0d('0x57')]&&(_0x3f837d[_0x34bf0d('0x39')]=[{'all':!![]}]),_0x3f837d=_[_0x34bf0d('0x41')]({},_0x3f837d,_0x1b1da1['options']),db[_0x34bf0d('0x50')]['findOne'](_0x3f837d)[_0x34bf0d('0xf')](handleEntityNotFound(_0x4a3c2d,null))[_0x34bf0d('0xf')](function(_0x5e9428){const _0x2d2cef=_0x34bf0d;if(_0x5e9428){let _0x3c6272=_0x5e9428['get']({'plain':!![]});return _0x3c6272=qs['omit'](_0x3c6272,['id',_0x2d2cef('0x3'),_0x2d2cef('0x5d')]),_0x1b1da1['body']=_[_0x2d2cef('0x7')](_0x1b1da1[_0x2d2cef('0x1c')],['id',_0x2d2cef('0x3'),_0x2d2cef('0x5d')]),db[_0x2d2cef('0x50')]['create'](_['merge'](_0x3c6272,_0x1b1da1[_0x2d2cef('0x1c')]),{'include':_0x1b1da1[_0x2d2cef('0x2f')]['includeAll']?[{'all':!![]}]:undefined})[_0x2d2cef('0xf')](function(_0x19146f){const _0x29440c=_0x2d2cef,_0x3c94b3=_0x1b1da1['user'][_0x29440c('0x2b')]({'plain':!![]});if(!_0x3c94b3)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3c94b3[_0x29440c('0x4a')]==='user'){const _0x27374d=_0x19146f[_0x29440c('0x2b')]({'plain':!![]}),_0x4324fd=_0x29440c('0x59');return db[_0x29440c('0x4e')]['findOne']({'where':{'name':_0x4324fd,'userProfileId':_0x3c94b3['userProfileId']},'raw':!![]})[_0x29440c('0xf')](function(_0x278d7a){const _0x1aee33=_0x29440c;return _0x278d7a&&_0x278d7a[_0x1aee33('0x2')]===0x0?db[_0x1aee33('0x21')][_0x1aee33('0x23')]({'name':_0x27374d[_0x1aee33('0x44')],'resourceId':_0x27374d['id'],'type':_0x278d7a[_0x1aee33('0x44')],'sectionId':_0x278d7a['id']},{})[_0x1aee33('0xf')](function(){return _0x19146f;}):_0x19146f;})[_0x29440c('0x45')](function(_0x1ac9bb){const _0x20eaa1=_0x29440c;logger['error'](_0x20eaa1('0x5c'),_0x1ac9bb);throw _0x1ac9bb;});}return _0x19146f;});}})[_0x34bf0d('0xf')](respondWithResult(_0x4a3c2d,0xc9))['catch'](handleError(_0x4a3c2d,null));},exports[_0x4466bd('0x2d')]=function(_0x2a1427,_0x3e1322){const _0x5ab9d3=_0x4466bd;return _0x2a1427[_0x5ab9d3('0x1c')]['id']&&delete _0x2a1427[_0x5ab9d3('0x1c')]['id'],db['JscriptyProject'][_0x5ab9d3('0x20')]({'where':{'id':_0x2a1427[_0x5ab9d3('0x54')]['id']}})[_0x5ab9d3('0xf')](handleEntityNotFound(_0x3e1322,null))[_0x5ab9d3('0xf')](saveUpdates(_0x2a1427[_0x5ab9d3('0x1c')],null))[_0x5ab9d3('0xf')](respondWithResult(_0x3e1322,null))[_0x5ab9d3('0x45')](handleError(_0x3e1322,null));},exports['destroy']=function(_0x5e2a9f,_0x50b863){const _0xcdc907=_0x4466bd;return db['JscriptyProject'][_0xcdc907('0x20')]({'where':{'id':_0x5e2a9f[_0xcdc907('0x54')]['id']}})['then'](handleEntityNotFound(_0x50b863,null))[_0xcdc907('0xf')](removeEntity(_0x50b863,null))['catch'](handleError(_0x50b863,null));},exports['getSessions']=function(_0x332546,_0x40fa86){const _0x5579f1=_0x4466bd;let _0x5a28a0={'raw':!![],'where':{}};const _0x39cf82={},_0x353525={'count':0x0,'rows':[]};return db[_0x5579f1('0x50')][_0x5579f1('0x20')]({'where':{'id':_0x332546[_0x5579f1('0x54')]['id']}})['then'](handleEntityNotFound(_0x40fa86,null))[_0x5579f1('0xf')](function(_0x2b2167){const _0x195d7c=_0x5579f1;if(_0x2b2167)return _0x39cf82[_0x195d7c('0x2c')]=_[_0x195d7c('0x5')](db[_0x195d7c('0x3d')][_0x195d7c('0x42')]),_0x39cf82[_0x195d7c('0x2f')]=_[_0x195d7c('0x5')](_0x332546['query']),_0x39cf82[_0x195d7c('0x2a')]=_['intersection'](_0x39cf82[_0x195d7c('0x2c')],_0x39cf82[_0x195d7c('0x2f')]),_0x5a28a0[_0x195d7c('0x58')]=_[_0x195d7c('0xe')](_0x39cf82[_0x195d7c('0x2c')],qs['fields'](_0x332546[_0x195d7c('0x2f')][_0x195d7c('0xd')])),_0x5a28a0['attributes']=_0x5a28a0[_0x195d7c('0x58')][_0x195d7c('0x5f')]?_0x5a28a0['attributes']:_0x39cf82[_0x195d7c('0x2c')],typeof _0x332546[_0x195d7c('0x2f')][_0x195d7c('0x10')]===_0x195d7c('0x24')&&(_0x5a28a0['limit']=qs[_0x195d7c('0x12')](_0x332546['query']['limit']),_0x5a28a0[_0x195d7c('0x14')]=qs[_0x195d7c('0x14')](_0x332546['query'][_0x195d7c('0x14')])),_0x5a28a0[_0x195d7c('0x13')]=qs[_0x195d7c('0x61')](_0x332546[_0x195d7c('0x2f')][_0x195d7c('0x61')]),_0x5a28a0[_0x195d7c('0x1e')]=qs['filters'](_[_0x195d7c('0x49')](_0x332546['query'],_0x39cf82['filters'])),_0x5a28a0[_0x195d7c('0x1e')][_0x195d7c('0x28')]=_0x2b2167['id'],_0x332546['query'][_0x195d7c('0x1f')]&&(_0x5a28a0[_0x195d7c('0x1e')]=_[_0x195d7c('0x41')](_0x5a28a0['where'],{[Op['or']]:_[_0x195d7c('0x4f')](_0x5a28a0[_0x195d7c('0x58')],function(_0x46fc60){const _0x293a28=_0x195d7c,_0x9179b2={};return _0x9179b2[_0x46fc60]={[Op[_0x293a28('0x1a')]]:'%'+_0x332546[_0x293a28('0x2f')][_0x293a28('0x1f')]+'%'},_0x9179b2;})})),_0x5a28a0=_[_0x195d7c('0x41')]({},_0x5a28a0,_0x332546[_0x195d7c('0x53')]),db[_0x195d7c('0x3d')][_0x195d7c('0x3a')]({'where':_0x5a28a0[_0x195d7c('0x1e')]})[_0x195d7c('0xf')](function(_0x1a9555){const _0x55ebb3=_0x195d7c;return _0x353525[_0x55ebb3('0x3a')]=_0x1a9555,_0x332546[_0x55ebb3('0x2f')]['includeAll']&&(_0x5a28a0['include']=[{'all':!![]}]),db[_0x55ebb3('0x3d')][_0x55ebb3('0x48')](_0x5a28a0);})['then'](function(_0x335eb5){const _0x5a099f=_0x195d7c;return _0x353525[_0x5a099f('0x4b')]=_0x335eb5,_0x353525;});})['then'](respondWithFilteredResult(_0x40fa86,_0x5a28a0))['catch'](handleError(_0x40fa86,null));},exports[_0x4466bd('0x52')]=function(_0x3c6b34,_0x4cbaa4){const _0x366afd=_0x4466bd;let _0x421e51={'raw':!![],'where':{}};const _0x131ea2={},_0x35cd48={'count':0x0,'rows':[]};return db[_0x366afd('0x50')][_0x366afd('0x20')]({'where':{'id':_0x3c6b34[_0x366afd('0x54')]['id']}})[_0x366afd('0xf')](handleEntityNotFound(_0x4cbaa4,null))[_0x366afd('0xf')](function(_0xe2be43){const _0x78964=_0x366afd;if(_0xe2be43)return _0x131ea2[_0x78964('0x2c')]=_[_0x78964('0x5')](db[_0x78964('0x3c')]['rawAttributes']),_0x131ea2[_0x78964('0x2f')]=_[_0x78964('0x5')](_0x3c6b34[_0x78964('0x2f')]),_0x131ea2[_0x78964('0x2a')]=_[_0x78964('0xe')](_0x131ea2[_0x78964('0x2c')],_0x131ea2[_0x78964('0x2f')]),_0x421e51[_0x78964('0x58')]=_['intersection'](_0x131ea2[_0x78964('0x2c')],qs[_0x78964('0xd')](_0x3c6b34[_0x78964('0x2f')][_0x78964('0xd')])),_0x421e51['attributes']=_0x421e51[_0x78964('0x58')][_0x78964('0x5f')]?_0x421e51[_0x78964('0x58')]:_0x131ea2[_0x78964('0x2c')],typeof _0x3c6b34[_0x78964('0x2f')][_0x78964('0x10')]===_0x78964('0x24')&&(_0x421e51[_0x78964('0x12')]=qs[_0x78964('0x12')](_0x3c6b34[_0x78964('0x2f')][_0x78964('0x12')]),_0x421e51[_0x78964('0x14')]=qs['offset'](_0x3c6b34[_0x78964('0x2f')][_0x78964('0x14')])),_0x421e51[_0x78964('0x13')]=qs[_0x78964('0x61')](_0x3c6b34[_0x78964('0x2f')][_0x78964('0x61')]),_0x421e51['where']=qs[_0x78964('0x2a')](_[_0x78964('0x49')](_0x3c6b34[_0x78964('0x2f')],_0x131ea2[_0x78964('0x2a')])),_0x421e51[_0x78964('0x1e')][_0x78964('0x28')]=_0xe2be43['id'],_0x3c6b34['query'][_0x78964('0x1f')]&&(_0x421e51[_0x78964('0x1e')]=_[_0x78964('0x41')](_0x421e51[_0x78964('0x1e')],{[Op['or']]:_['map'](_0x421e51[_0x78964('0x58')],function(_0x34e73e){const _0x248484=_0x78964,_0x4cf66b={};return _0x4cf66b[_0x34e73e]={[Op[_0x248484('0x1a')]]:'%'+_0x3c6b34[_0x248484('0x2f')][_0x248484('0x1f')]+'%'},_0x4cf66b;})})),_0x421e51=_[_0x78964('0x41')]({},_0x421e51,_0x3c6b34[_0x78964('0x53')]),db[_0x78964('0x3c')][_0x78964('0x3a')]({'where':_0x421e51[_0x78964('0x1e')]})[_0x78964('0xf')](function(_0x4e688a){const _0x4cad0a=_0x78964;return _0x35cd48[_0x4cad0a('0x3a')]=_0x4e688a,_0x3c6b34[_0x4cad0a('0x2f')][_0x4cad0a('0x57')]&&(_0x421e51['include']=[{'all':!![]}]),db['JscriptyAnswerReport'][_0x4cad0a('0x48')](_0x421e51);})[_0x78964('0xf')](function(_0xeb2ab1){const _0x5b74b0=_0x78964;return _0x35cd48[_0x5b74b0('0x4b')]=_0xeb2ab1,_0x35cd48;});})[_0x366afd('0xf')](respondWithFilteredResult(_0x4cbaa4,_0x421e51))[_0x366afd('0x45')](handleError(_0x4cbaa4,null));};function char(_0x1b6af1){const _0x233c0b=_0x4466bd;return _0x233c0b('0x37')===typeof _0x1b6af1?String[_0x233c0b('0x1')][_0x233c0b('0x26')](null,arguments):_0x1b6af1;}function needsEncapsulation(_0x22317f){const _0x503b7a=_0x4466bd;return!!_0x22317f&&(_0x22317f[_0x503b7a('0x33')]()[_0x503b7a('0x56')](char(0xd))>=0x0||_0x22317f[_0x503b7a('0x33')]()[_0x503b7a('0x56')](char(0xa))>=0x0||_0x22317f['toString']()[_0x503b7a('0x56')](char(0x2c))>=0x0||_0x22317f['toString']()[_0x503b7a('0x56')](char(0x22))>=0x0);}function encapsulate(_0x5104de){const _0x4fa6a4=_0x4466bd,_0x4796be=char(0x22),_0x308137='\x5c'+char(0x22),_0x86aee0=_0x5104de[_0x4fa6a4('0x33')]()[_0x4fa6a4('0xc')](new RegExp(_0x4796be,'g'),_0x308137);return _0x4796be+_0x86aee0+_0x4796be;}exports[_0x4466bd('0x8')]=function(_0x4aec5a,_0x205df6){const _0x53c08b=_0x4466bd;let _0x483b36,_0x7bed2a;const _0x57dc7c={'where':{'ProjectId':_0x4aec5a[_0x53c08b('0x54')]['id']}};return _0x4aec5a[_0x53c08b('0x2f')][_0x53c08b('0x31')]&&(_0x57dc7c['where']['starttime']=JSON[_0x53c08b('0x25')](_0x4aec5a[_0x53c08b('0x2f')]['startTime'])),db[_0x53c08b('0x3d')][_0x53c08b('0x48')](_0x57dc7c)[_0x53c08b('0xf')](handleEntityNotFound(_0x205df6,null))[_0x53c08b('0xf')](function(_0x2ebf02){const _0x34e62e=_0x53c08b;if(_0x2ebf02)return _0x483b36=_0x2ebf02,db[_0x34e62e('0x32')][_0x34e62e('0x48')]({'where':{'SessionId':{[Op['in']]:_[_0x34e62e('0x4f')](_0x483b36,'id')},'ProjectId':_0x4aec5a[_0x34e62e('0x54')]['id']},'order':_0x34e62e('0x1d')});})[_0x53c08b('0xf')](handleEntityNotFound(_0x205df6,null))[_0x53c08b('0xf')](function(_0x5a6bef){const _0x56bc0c=_0x53c08b;if(_0x5a6bef){_0x7bed2a=_0x5a6bef;const _0x2b4701={};for(let _0x1f836e=0x0,_0x396f92=_0x7bed2a[_0x56bc0c('0x5f')];_0x1f836e<_0x396f92;_0x1f836e++){typeof _0x2b4701[_0x7bed2a[_0x1f836e][_0x56bc0c('0x36')]]==='undefined'&&(_0x2b4701[_0x7bed2a[_0x1f836e][_0x56bc0c('0x36')]]=needsEncapsulation(_0x7bed2a[_0x1f836e][_0x56bc0c('0x6')])?encapsulate(_0x7bed2a[_0x1f836e][_0x56bc0c('0x6')]):_0x7bed2a[_0x1f836e]['question']);}const _0x316598=[];let _0x3f5114={};for(let _0x4e2dd3=0x0,_0x37fd47=_0x483b36[_0x56bc0c('0x5f')];_0x4e2dd3<_0x37fd47;_0x4e2dd3++){_0x3f5114={'ProjectId':_0x4aec5a[_0x56bc0c('0x54')]['id'],'SessionId':_0x483b36[_0x4e2dd3]['id'],'StartTime':moment(_0x483b36[_0x4e2dd3]['starttime'])[_0x56bc0c('0x29')]('YYYY-MM-DD\x20HH:mm:ss')};for(let _0x4357d5=0x0,_0x3f2844=_0x7bed2a['length'];_0x4357d5<_0x3f2844;_0x4357d5++){_0x7bed2a[_0x4357d5][_0x56bc0c('0x22')]===_0x483b36[_0x4e2dd3]['id']&&typeof _0x2b4701[_0x7bed2a[_0x4357d5][_0x56bc0c('0x36')]]!==_0x56bc0c('0x24')&&(_0x3f5114[_0x2b4701[_0x7bed2a[_0x4357d5][_0x56bc0c('0x36')]]]=_0x7bed2a[_0x4357d5][_0x56bc0c('0x27')]);}for(const _0x41b421 in _0x2b4701){typeof _0x3f5114[_0x2b4701[_0x41b421]]===_0x56bc0c('0x24')&&(_0x3f5114[_0x2b4701[_0x41b421]]=null);}_0x316598[_0x56bc0c('0x47')](_0x3f5114);}return _0x316598;}})[_0x53c08b('0xf')](function(_0x4b4cdd){const _0x3610bf=_0x53c08b;if(!_['isEmpty'](_0x4b4cdd)){const _0x201d0c=toCsv(_0x4b4cdd),_0x3d5756=Date[_0x3610bf('0x11')]();return fs[_0x3610bf('0x51')](util['format'](_0x3610bf('0x5b'),_0x4aec5a[_0x3610bf('0x54')]['id'],_0x3d5756),_0x201d0c),_0x205df6[_0x3610bf('0x55')](_0x3610bf('0xa'),_0x3610bf('0xb')+util[_0x3610bf('0x29')](_0x3610bf('0x15'),_0x4aec5a[_0x3610bf('0x54')]['id'],_0x3d5756)),_0x205df6[_0x3610bf('0x55')](_0x3610bf('0x5a'),_0x3610bf('0x46')),_0x205df6[_0x3610bf('0x1b')](util[_0x3610bf('0x29')](_0x3610bf('0x5b'),_0x4aec5a[_0x3610bf('0x54')]['id'],_0x3d5756));}else return _0x205df6[_0x3610bf('0x3e')](0xcc);})[_0x53c08b('0x45')](handleError(_0x205df6,null));}; \ No newline at end of file +const a378_0x4f19=['rows','UserProfileSection','JscriptySessionReport','Jscripty_Project_%d_Summary_%s.csv','query','getSummary','question','options','starttime','catch','getSessions','filters','undefined','../../config/logger','get','ProjectId','attributes','format','text/csv','where','nolimit','JscriptyQuestionReport','autoAssociation','now','model','user','userProfileId','length','util','count','JscriptyAnswerReport','send','json','set','../../components/parsers/qs','answer','to-csv','../../mysqldb','sendStatus','limit','attachment;\x20filename=','indexOf','rawAttributes','moment','push','pick','writeFileSync','error','like','toString','UserProfileResource','clone','JscriptyProject','keys','download','setHeader','then','order','SessionId','apply','sequelize','YYYY-MM-DD\x20HH:mm:ss','role','body','index','includeAll','offset','findOne','type','status','getAnswers','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Projects','createdAt','fieldName','replace','startTime','parse','create','name','findAll','intersection','lodash','Unable\x20to\x20retrieve\x20the\x20current\x20user','filter','include','destroy','merge','Content-disposition','number','map','params','fields','updatedAt','/tmp/Jscripty_Project_%d_Summary_%s.csv','Content-Range','sort','questionId','Content-type','fromCharCode'];(function(_0x114242,_0x4f1960){const _0x3c79af=function(_0x6c7c86){while(--_0x6c7c86){_0x114242['push'](_0x114242['shift']());}};_0x3c79af(++_0x4f1960);}(a378_0x4f19,0x183));const a378_0x3c79=function(_0x114242,_0x4f1960){_0x114242=_0x114242-0x0;let _0x3c79af=a378_0x4f19[_0x114242];return _0x3c79af;};const _0x105a10=a378_0x3c79;'use strict';const moment=require(_0x105a10('0x38')),util=require(_0x105a10('0x29')),fs=require('fs'),_=require(_0x105a10('0x5f')),toCsv=require(_0x105a10('0x31')),qs=require(_0x105a10('0x2f')),logger=require(_0x105a10('0x1a'))('api'),db=require(_0x105a10('0x32'))['db'],{Op}=require(_0x105a10('0x49'));function respondWithResult(_0x6c7c86,_0x94226e){return _0x94226e=_0x94226e||0xc8,function(_0x3b7c76){const _0x1ae664=a378_0x3c79;if(_0x3b7c76)return _0x6c7c86[_0x1ae664('0x52')](_0x94226e)[_0x1ae664('0x2d')](_0x3b7c76);};}function respondWithFilteredResult(_0x22deea,_0x3055af){return function(_0x47df5c){const _0x556425=a378_0x3c79;if(_0x47df5c){const _0x4360de=_0x47df5c[_0x556425('0x2a')],_0x50eb94=_0x3055af['offset'];let _0x477399=_0x3055af[_0x556425('0x4f')]+_0x3055af[_0x556425('0x34')],_0x4083c0;return _0x477399>=_0x4360de?(_0x477399=_0x4360de,_0x4083c0=0xc8):_0x4083c0=0xce,_0x22deea[_0x556425('0x52')](_0x4083c0),_0x22deea[_0x556425('0x2e')](_0x556425('0x8'),_0x50eb94+'-'+_0x477399+'/'+_0x4360de)['json'](_0x47df5c);}return null;};}function saveUpdates(_0x4f968f){return function(_0x27ba95){const _0x3d713a=a378_0x3c79;if(_0x27ba95)return _0x27ba95['update'](_0x4f968f)[_0x3d713a('0x45')](function(_0x1f2247){return _0x1f2247;});return null;};}function removeEntity(_0x20a0e0){return function(_0x591238){const _0x4c16e4=a378_0x3c79;if(_0x591238)return _0x591238['destroy']()['then'](function(){const _0x5da513=a378_0x3c79,_0xda51de=_0x591238[_0x5da513('0x1b')]({'plain':!![]}),_0x12b2ca=_0x5da513('0x55');return db[_0x5da513('0x3f')]['destroy']({'where':{'type':_0x12b2ca,'resourceId':_0xda51de['id']}})['then'](function(){return _0x591238;});})[_0x4c16e4('0x45')](function(){const _0x3ffed5=_0x4c16e4;_0x20a0e0[_0x3ffed5('0x52')](0xcc)['end']();});};}function handleEntityNotFound(_0x5bfa63){return function(_0x73b8e6){return!_0x73b8e6&&_0x5bfa63['sendStatus'](0x194),_0x73b8e6;};}function handleError(_0x196b4e,_0x18b21c){return _0x18b21c=_0x18b21c||0x1f4,function(_0x58d467){const _0x437127=a378_0x3c79;logger[_0x437127('0x3c')](_0x58d467['stack']),_0x58d467[_0x437127('0x5c')]&&delete _0x58d467[_0x437127('0x5c')],_0x196b4e[_0x437127('0x52')](_0x18b21c)[_0x437127('0x2c')](_0x58d467);};}exports[_0x105a10('0x4d')]=function(_0xf0f38a,_0x12c598){const _0x296aa7=_0x105a10;let _0x3941c0={};const _0x1f148e={},_0x38ad71={'count':0x0,'rows':[]},_0x502f2f=_['map'](db[_0x296aa7('0x41')][_0x296aa7('0x37')],function(_0x42500d){const _0x4c9b2e=_0x296aa7;return{'name':_0x42500d[_0x4c9b2e('0x57')],'type':_0x42500d[_0x4c9b2e('0x51')]['key']};});_0x1f148e[_0x296aa7('0x25')]=_[_0x296aa7('0x3')](_0x502f2f,_0x296aa7('0x5c')),_0x1f148e['query']=_[_0x296aa7('0x42')](_0xf0f38a[_0x296aa7('0x11')]),_0x1f148e[_0x296aa7('0x18')]=_[_0x296aa7('0x5e')](_0x1f148e[_0x296aa7('0x25')],_0x1f148e[_0x296aa7('0x11')]),_0x3941c0[_0x296aa7('0x1d')]=_[_0x296aa7('0x5e')](_0x1f148e[_0x296aa7('0x25')],qs['fields'](_0xf0f38a[_0x296aa7('0x11')][_0x296aa7('0x5')])),_0x3941c0['attributes']=_0x3941c0['attributes']['length']?_0x3941c0[_0x296aa7('0x1d')]:_0x1f148e[_0x296aa7('0x25')];typeof _0xf0f38a['query']['nolimit']===_0x296aa7('0x19')&&(_0x3941c0[_0x296aa7('0x34')]=qs['limit'](_0xf0f38a['query'][_0x296aa7('0x34')]),_0x3941c0[_0x296aa7('0x4f')]=qs[_0x296aa7('0x4f')](_0xf0f38a[_0x296aa7('0x11')]['offset']));_0x3941c0[_0x296aa7('0x46')]=qs[_0x296aa7('0x9')](_0xf0f38a[_0x296aa7('0x11')][_0x296aa7('0x9')]),_0x3941c0[_0x296aa7('0x20')]=qs['filters'](_['pick'](_0xf0f38a[_0x296aa7('0x11')],_0x1f148e['filters']),_0x502f2f);_0xf0f38a[_0x296aa7('0x11')][_0x296aa7('0x61')]&&(_0x3941c0[_0x296aa7('0x20')]=_[_0x296aa7('0x0')](_0x3941c0[_0x296aa7('0x20')],{[Op['or']]:_['map'](_0x502f2f,function(_0x432d31){const _0x7e83df=_0x296aa7;if(_0x432d31[_0x7e83df('0x51')]!=='VIRTUAL'){const _0x1122ed={};return _0x1122ed[_0x432d31['name']]={[Op[_0x7e83df('0x3d')]]:'%'+_0xf0f38a[_0x7e83df('0x11')][_0x7e83df('0x61')]+'%'},_0x1122ed;}})}));_0x3941c0=_[_0x296aa7('0x0')]({},_0x3941c0,_0xf0f38a[_0x296aa7('0x14')]);const _0x4cf3be={'where':_0x3941c0[_0x296aa7('0x20')]};return db[_0x296aa7('0x41')][_0x296aa7('0x2a')](_0x4cf3be)[_0x296aa7('0x45')](function(_0x27b261){const _0x6584a=_0x296aa7;return _0x38ad71[_0x6584a('0x2a')]=_0x27b261,_0xf0f38a[_0x6584a('0x11')][_0x6584a('0x4e')]&&(_0x3941c0[_0x6584a('0x62')]=[{'all':!![]}]),db[_0x6584a('0x41')][_0x6584a('0x5d')](_0x3941c0);})[_0x296aa7('0x45')](function(_0x5bdbff){const _0x54931e=_0x296aa7;return _0x38ad71[_0x54931e('0xd')]=_0x5bdbff,_0x38ad71;})[_0x296aa7('0x45')](respondWithFilteredResult(_0x12c598,_0x3941c0))[_0x296aa7('0x16')](handleError(_0x12c598,null));},exports['show']=function(_0x270794,_0x136e3f){const _0x590d03=_0x105a10;let _0x2986d4={'raw':![],'where':{'id':_0x270794['params']['id']}};const _0x5c78b9={};return _0x5c78b9[_0x590d03('0x25')]=_['keys'](db['JscriptyProject'][_0x590d03('0x37')]),_0x5c78b9['query']=_[_0x590d03('0x42')](_0x270794[_0x590d03('0x11')]),_0x5c78b9[_0x590d03('0x18')]=_[_0x590d03('0x5e')](_0x5c78b9[_0x590d03('0x25')],_0x5c78b9[_0x590d03('0x11')]),_0x2986d4[_0x590d03('0x1d')]=_[_0x590d03('0x5e')](_0x5c78b9[_0x590d03('0x25')],qs[_0x590d03('0x5')](_0x270794[_0x590d03('0x11')]['fields'])),_0x2986d4[_0x590d03('0x1d')]=_0x2986d4['attributes'][_0x590d03('0x28')]?_0x2986d4[_0x590d03('0x1d')]:_0x5c78b9[_0x590d03('0x25')],_0x270794['query'][_0x590d03('0x4e')]&&(_0x2986d4['include']=[{'all':!![]}]),_0x2986d4=_[_0x590d03('0x0')]({},_0x2986d4,_0x270794[_0x590d03('0x14')]),db[_0x590d03('0x41')][_0x590d03('0x50')](_0x2986d4)[_0x590d03('0x45')](handleEntityNotFound(_0x136e3f,null))['then'](respondWithResult(_0x136e3f,null))[_0x590d03('0x16')](handleError(_0x136e3f,null));},exports['create']=function(_0x50f143,_0x5355a4){const _0x2606fb=_0x105a10;return db[_0x2606fb('0x41')][_0x2606fb('0x5b')](_0x50f143[_0x2606fb('0x4c')],{})[_0x2606fb('0x45')](function(_0x3ebc79){const _0x4fd2cf=_0x2606fb,_0x433309=_0x50f143[_0x4fd2cf('0x26')][_0x4fd2cf('0x1b')]({'plain':!![]});if(!_0x433309)throw new Error(_0x4fd2cf('0x60'));if(_0x433309[_0x4fd2cf('0x4b')]==='user'){const _0x551df7=_0x3ebc79[_0x4fd2cf('0x1b')]({'plain':!![]}),_0x369b1a=_0x4fd2cf('0x55');return db[_0x4fd2cf('0xe')]['findOne']({'where':{'name':_0x369b1a,'userProfileId':_0x433309[_0x4fd2cf('0x27')]},'raw':!![]})[_0x4fd2cf('0x45')](function(_0x1e5360){const _0x4ee3b8=_0x4fd2cf;return _0x1e5360&&_0x1e5360[_0x4ee3b8('0x23')]===0x0?db[_0x4ee3b8('0x3f')]['create']({'name':_0x551df7['name'],'resourceId':_0x551df7['id'],'type':_0x1e5360['name'],'sectionId':_0x1e5360['id']},{})['then'](function(){return _0x3ebc79;}):_0x3ebc79;})['catch'](function(_0x5c8c39){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x5c8c39);throw _0x5c8c39;});}return _0x3ebc79;})[_0x2606fb('0x45')](respondWithResult(_0x5355a4,0xc9))[_0x2606fb('0x16')](handleError(_0x5355a4,null));},exports[_0x105a10('0x40')]=function(_0xc9bd13,_0x41b924){const _0x177e23=_0x105a10;let _0x492b87={'where':{'id':_0xc9bd13[_0x177e23('0x4')]['id']}};const _0xad74e7={};return _0xad74e7[_0x177e23('0x25')]=_['keys'](db['JscriptyProject'][_0x177e23('0x37')]),_0x492b87['attributes']=_[_0x177e23('0x5e')](_0xad74e7[_0x177e23('0x25')],qs[_0x177e23('0x5')](_0xc9bd13[_0x177e23('0x11')][_0x177e23('0x5')])),_0x492b87['attributes']=_0x492b87['attributes']['length']?_0x492b87[_0x177e23('0x1d')]:_0xad74e7[_0x177e23('0x25')],_0xc9bd13[_0x177e23('0x11')][_0x177e23('0x4e')]&&(_0x492b87['include']=[{'all':!![]}]),_0x492b87=_[_0x177e23('0x0')]({},_0x492b87,_0xc9bd13['options']),db[_0x177e23('0x41')][_0x177e23('0x50')](_0x492b87)[_0x177e23('0x45')](handleEntityNotFound(_0x41b924,null))['then'](function(_0x5e6c5b){const _0x3ca608=_0x177e23;if(_0x5e6c5b){let _0x44e598=_0x5e6c5b['get']({'plain':!![]});return _0x44e598=qs['omit'](_0x44e598,['id',_0x3ca608('0x56'),_0x3ca608('0x6')]),_0xc9bd13['body']=_['omit'](_0xc9bd13['body'],['id','createdAt','updatedAt']),db[_0x3ca608('0x41')][_0x3ca608('0x5b')](_[_0x3ca608('0x0')](_0x44e598,_0xc9bd13[_0x3ca608('0x4c')]),{'include':_0xc9bd13['query'][_0x3ca608('0x4e')]?[{'all':!![]}]:undefined})[_0x3ca608('0x45')](function(_0x582153){const _0x489987=_0x3ca608,_0x5c5a8a=_0xc9bd13[_0x489987('0x26')][_0x489987('0x1b')]({'plain':!![]});if(!_0x5c5a8a)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5c5a8a[_0x489987('0x4b')]===_0x489987('0x26')){const _0x1520d6=_0x582153['get']({'plain':!![]}),_0x5acead='Projects';return db['UserProfileSection'][_0x489987('0x50')]({'where':{'name':_0x5acead,'userProfileId':_0x5c5a8a[_0x489987('0x27')]},'raw':!![]})[_0x489987('0x45')](function(_0x15ebfa){const _0x2398a0=_0x489987;return _0x15ebfa&&_0x15ebfa[_0x2398a0('0x23')]===0x0?db[_0x2398a0('0x3f')][_0x2398a0('0x5b')]({'name':_0x1520d6['name'],'resourceId':_0x1520d6['id'],'type':_0x15ebfa[_0x2398a0('0x5c')],'sectionId':_0x15ebfa['id']},{})['then'](function(){return _0x582153;}):_0x582153;})['catch'](function(_0x14e73f){const _0x16c1dd=_0x489987;logger['error'](_0x16c1dd('0x54'),_0x14e73f);throw _0x14e73f;});}return _0x582153;});}})[_0x177e23('0x45')](respondWithResult(_0x41b924,0xc9))[_0x177e23('0x16')](handleError(_0x41b924,null));},exports['update']=function(_0x43cfaa,_0x28d255){const _0x112c23=_0x105a10;return _0x43cfaa[_0x112c23('0x4c')]['id']&&delete _0x43cfaa['body']['id'],db['JscriptyProject'][_0x112c23('0x50')]({'where':{'id':_0x43cfaa[_0x112c23('0x4')]['id']}})[_0x112c23('0x45')](handleEntityNotFound(_0x28d255,null))[_0x112c23('0x45')](saveUpdates(_0x43cfaa[_0x112c23('0x4c')],null))[_0x112c23('0x45')](respondWithResult(_0x28d255,null))[_0x112c23('0x16')](handleError(_0x28d255,null));},exports[_0x105a10('0x63')]=function(_0x17d03d,_0x78dac1){const _0x22e919=_0x105a10;return db[_0x22e919('0x41')][_0x22e919('0x50')]({'where':{'id':_0x17d03d['params']['id']}})[_0x22e919('0x45')](handleEntityNotFound(_0x78dac1,null))[_0x22e919('0x45')](removeEntity(_0x78dac1,null))[_0x22e919('0x16')](handleError(_0x78dac1,null));},exports[_0x105a10('0x17')]=function(_0x3cb498,_0x4b3839){const _0x2c0bd7=_0x105a10;let _0x427a62={'raw':!![],'where':{}};const _0x137173={},_0x5db83e={'count':0x0,'rows':[]};return db[_0x2c0bd7('0x41')]['findOne']({'where':{'id':_0x3cb498[_0x2c0bd7('0x4')]['id']}})[_0x2c0bd7('0x45')](handleEntityNotFound(_0x4b3839,null))[_0x2c0bd7('0x45')](function(_0x42390b){const _0x341a2e=_0x2c0bd7;if(_0x42390b)return _0x137173[_0x341a2e('0x25')]=_[_0x341a2e('0x42')](db[_0x341a2e('0xf')][_0x341a2e('0x37')]),_0x137173['query']=_[_0x341a2e('0x42')](_0x3cb498[_0x341a2e('0x11')]),_0x137173[_0x341a2e('0x18')]=_[_0x341a2e('0x5e')](_0x137173[_0x341a2e('0x25')],_0x137173[_0x341a2e('0x11')]),_0x427a62['attributes']=_[_0x341a2e('0x5e')](_0x137173[_0x341a2e('0x25')],qs[_0x341a2e('0x5')](_0x3cb498[_0x341a2e('0x11')]['fields'])),_0x427a62['attributes']=_0x427a62[_0x341a2e('0x1d')][_0x341a2e('0x28')]?_0x427a62[_0x341a2e('0x1d')]:_0x137173[_0x341a2e('0x25')],typeof _0x3cb498[_0x341a2e('0x11')][_0x341a2e('0x21')]===_0x341a2e('0x19')&&(_0x427a62[_0x341a2e('0x34')]=qs[_0x341a2e('0x34')](_0x3cb498[_0x341a2e('0x11')][_0x341a2e('0x34')]),_0x427a62['offset']=qs[_0x341a2e('0x4f')](_0x3cb498[_0x341a2e('0x11')]['offset'])),_0x427a62[_0x341a2e('0x46')]=qs[_0x341a2e('0x9')](_0x3cb498['query'][_0x341a2e('0x9')]),_0x427a62[_0x341a2e('0x20')]=qs[_0x341a2e('0x18')](_['pick'](_0x3cb498['query'],_0x137173[_0x341a2e('0x18')])),_0x427a62[_0x341a2e('0x20')][_0x341a2e('0x1c')]=_0x42390b['id'],_0x3cb498['query'][_0x341a2e('0x61')]&&(_0x427a62[_0x341a2e('0x20')]=_[_0x341a2e('0x0')](_0x427a62[_0x341a2e('0x20')],{[Op['or']]:_['map'](_0x427a62['attributes'],function(_0xce726f){const _0x493a41=_0x341a2e,_0x5de0e6={};return _0x5de0e6[_0xce726f]={[Op['like']]:'%'+_0x3cb498[_0x493a41('0x11')]['filter']+'%'},_0x5de0e6;})})),_0x427a62=_[_0x341a2e('0x0')]({},_0x427a62,_0x3cb498['options']),db['JscriptySessionReport'][_0x341a2e('0x2a')]({'where':_0x427a62[_0x341a2e('0x20')]})[_0x341a2e('0x45')](function(_0x4da303){const _0xdea94=_0x341a2e;return _0x5db83e[_0xdea94('0x2a')]=_0x4da303,_0x3cb498[_0xdea94('0x11')]['includeAll']&&(_0x427a62[_0xdea94('0x62')]=[{'all':!![]}]),db[_0xdea94('0xf')][_0xdea94('0x5d')](_0x427a62);})[_0x341a2e('0x45')](function(_0x3ae77c){const _0x128bc1=_0x341a2e;return _0x5db83e[_0x128bc1('0xd')]=_0x3ae77c,_0x5db83e;});})[_0x2c0bd7('0x45')](respondWithFilteredResult(_0x4b3839,_0x427a62))[_0x2c0bd7('0x16')](handleError(_0x4b3839,null));},exports[_0x105a10('0x53')]=function(_0x3665c6,_0x15b0b6){const _0x4d2e6b=_0x105a10;let _0x15e098={'raw':!![],'where':{}};const _0x3dfaf3={},_0x3222c0={'count':0x0,'rows':[]};return db[_0x4d2e6b('0x41')]['findOne']({'where':{'id':_0x3665c6[_0x4d2e6b('0x4')]['id']}})[_0x4d2e6b('0x45')](handleEntityNotFound(_0x15b0b6,null))[_0x4d2e6b('0x45')](function(_0x354acc){const _0xfb403f=_0x4d2e6b;if(_0x354acc)return _0x3dfaf3[_0xfb403f('0x25')]=_[_0xfb403f('0x42')](db[_0xfb403f('0x2b')]['rawAttributes']),_0x3dfaf3[_0xfb403f('0x11')]=_[_0xfb403f('0x42')](_0x3665c6[_0xfb403f('0x11')]),_0x3dfaf3[_0xfb403f('0x18')]=_[_0xfb403f('0x5e')](_0x3dfaf3[_0xfb403f('0x25')],_0x3dfaf3[_0xfb403f('0x11')]),_0x15e098[_0xfb403f('0x1d')]=_[_0xfb403f('0x5e')](_0x3dfaf3[_0xfb403f('0x25')],qs[_0xfb403f('0x5')](_0x3665c6[_0xfb403f('0x11')][_0xfb403f('0x5')])),_0x15e098[_0xfb403f('0x1d')]=_0x15e098[_0xfb403f('0x1d')][_0xfb403f('0x28')]?_0x15e098[_0xfb403f('0x1d')]:_0x3dfaf3[_0xfb403f('0x25')],typeof _0x3665c6[_0xfb403f('0x11')]['nolimit']===_0xfb403f('0x19')&&(_0x15e098[_0xfb403f('0x34')]=qs[_0xfb403f('0x34')](_0x3665c6[_0xfb403f('0x11')][_0xfb403f('0x34')]),_0x15e098[_0xfb403f('0x4f')]=qs[_0xfb403f('0x4f')](_0x3665c6[_0xfb403f('0x11')]['offset'])),_0x15e098[_0xfb403f('0x46')]=qs[_0xfb403f('0x9')](_0x3665c6[_0xfb403f('0x11')][_0xfb403f('0x9')]),_0x15e098[_0xfb403f('0x20')]=qs['filters'](_[_0xfb403f('0x3a')](_0x3665c6['query'],_0x3dfaf3[_0xfb403f('0x18')])),_0x15e098[_0xfb403f('0x20')][_0xfb403f('0x1c')]=_0x354acc['id'],_0x3665c6[_0xfb403f('0x11')][_0xfb403f('0x61')]&&(_0x15e098[_0xfb403f('0x20')]=_[_0xfb403f('0x0')](_0x15e098[_0xfb403f('0x20')],{[Op['or']]:_[_0xfb403f('0x3')](_0x15e098[_0xfb403f('0x1d')],function(_0x3cbf41){const _0x2a3258=_0xfb403f,_0x3d47f0={};return _0x3d47f0[_0x3cbf41]={[Op['like']]:'%'+_0x3665c6[_0x2a3258('0x11')][_0x2a3258('0x61')]+'%'},_0x3d47f0;})})),_0x15e098=_[_0xfb403f('0x0')]({},_0x15e098,_0x3665c6['options']),db[_0xfb403f('0x2b')][_0xfb403f('0x2a')]({'where':_0x15e098[_0xfb403f('0x20')]})[_0xfb403f('0x45')](function(_0x18457b){const _0x59ab1f=_0xfb403f;return _0x3222c0[_0x59ab1f('0x2a')]=_0x18457b,_0x3665c6['query'][_0x59ab1f('0x4e')]&&(_0x15e098[_0x59ab1f('0x62')]=[{'all':!![]}]),db['JscriptyAnswerReport'][_0x59ab1f('0x5d')](_0x15e098);})[_0xfb403f('0x45')](function(_0x3ced5c){const _0x4bb766=_0xfb403f;return _0x3222c0[_0x4bb766('0xd')]=_0x3ced5c,_0x3222c0;});})[_0x4d2e6b('0x45')](respondWithFilteredResult(_0x15b0b6,_0x15e098))[_0x4d2e6b('0x16')](handleError(_0x15b0b6,null));};function char(_0x339e5c){const _0x2f2747=_0x105a10;return _0x2f2747('0x2')===typeof _0x339e5c?String[_0x2f2747('0xc')][_0x2f2747('0x48')](null,arguments):_0x339e5c;}function needsEncapsulation(_0x978672){const _0x325004=_0x105a10;return!!_0x978672&&(_0x978672[_0x325004('0x3e')]()[_0x325004('0x36')](char(0xd))>=0x0||_0x978672[_0x325004('0x3e')]()[_0x325004('0x36')](char(0xa))>=0x0||_0x978672[_0x325004('0x3e')]()['indexOf'](char(0x2c))>=0x0||_0x978672[_0x325004('0x3e')]()['indexOf'](char(0x22))>=0x0);}function encapsulate(_0x2ce4ba){const _0x213c72=_0x105a10,_0x8c07f6=char(0x22),_0x3a3226='\x5c'+char(0x22),_0x409ea6=_0x2ce4ba[_0x213c72('0x3e')]()[_0x213c72('0x58')](new RegExp(_0x8c07f6,'g'),_0x3a3226);return _0x8c07f6+_0x409ea6+_0x8c07f6;}exports[_0x105a10('0x12')]=function(_0x111647,_0x1af36a){const _0x48322f=_0x105a10;let _0xb6fd7f,_0x4040ec;const _0x31adc0={'where':{'ProjectId':_0x111647[_0x48322f('0x4')]['id']}};return _0x111647[_0x48322f('0x11')]['startTime']&&(_0x31adc0['where'][_0x48322f('0x15')]=JSON[_0x48322f('0x5a')](_0x111647[_0x48322f('0x11')][_0x48322f('0x59')])),db[_0x48322f('0xf')][_0x48322f('0x5d')](_0x31adc0)[_0x48322f('0x45')](handleEntityNotFound(_0x1af36a,null))['then'](function(_0x53156d){const _0x5a41c0=_0x48322f;if(_0x53156d)return _0xb6fd7f=_0x53156d,db[_0x5a41c0('0x22')][_0x5a41c0('0x5d')]({'where':{'SessionId':{[Op['in']]:_[_0x5a41c0('0x3')](_0xb6fd7f,'id')},'ProjectId':_0x111647['params']['id']},'order':'-createdAt'});})[_0x48322f('0x45')](handleEntityNotFound(_0x1af36a,null))[_0x48322f('0x45')](function(_0x9447d3){const _0x3e2778=_0x48322f;if(_0x9447d3){_0x4040ec=_0x9447d3;const _0x142759={};for(let _0x1d3677=0x0,_0x55e162=_0x4040ec[_0x3e2778('0x28')];_0x1d3677<_0x55e162;_0x1d3677++){typeof _0x142759[_0x4040ec[_0x1d3677]['questionId']]==='undefined'&&(_0x142759[_0x4040ec[_0x1d3677][_0x3e2778('0xa')]]=needsEncapsulation(_0x4040ec[_0x1d3677][_0x3e2778('0x13')])?encapsulate(_0x4040ec[_0x1d3677][_0x3e2778('0x13')]):_0x4040ec[_0x1d3677][_0x3e2778('0x13')]);}const _0x4f8818=[];let _0x187e68={};for(let _0x45faa8=0x0,_0x231c28=_0xb6fd7f[_0x3e2778('0x28')];_0x45faa8<_0x231c28;_0x45faa8++){_0x187e68={'ProjectId':_0x111647[_0x3e2778('0x4')]['id'],'SessionId':_0xb6fd7f[_0x45faa8]['id'],'StartTime':moment(_0xb6fd7f[_0x45faa8]['starttime'])[_0x3e2778('0x1e')](_0x3e2778('0x4a'))};for(let _0x3ac992=0x0,_0x3a74ae=_0x4040ec[_0x3e2778('0x28')];_0x3ac992<_0x3a74ae;_0x3ac992++){_0x4040ec[_0x3ac992][_0x3e2778('0x47')]===_0xb6fd7f[_0x45faa8]['id']&&typeof _0x142759[_0x4040ec[_0x3ac992][_0x3e2778('0xa')]]!=='undefined'&&(_0x187e68[_0x142759[_0x4040ec[_0x3ac992][_0x3e2778('0xa')]]]=_0x4040ec[_0x3ac992][_0x3e2778('0x30')]);}for(const _0x313c30 in _0x142759){typeof _0x187e68[_0x142759[_0x313c30]]===_0x3e2778('0x19')&&(_0x187e68[_0x142759[_0x313c30]]=null);}_0x4f8818[_0x3e2778('0x39')](_0x187e68);}return _0x4f8818;}})[_0x48322f('0x45')](function(_0x125604){const _0x5d0fce=_0x48322f;if(!_['isEmpty'](_0x125604)){const _0x57c6a9=toCsv(_0x125604),_0x7f5ac0=Date[_0x5d0fce('0x24')]();return fs[_0x5d0fce('0x3b')](util[_0x5d0fce('0x1e')](_0x5d0fce('0x7'),_0x111647[_0x5d0fce('0x4')]['id'],_0x7f5ac0),_0x57c6a9),_0x1af36a[_0x5d0fce('0x44')](_0x5d0fce('0x1'),_0x5d0fce('0x35')+util['format'](_0x5d0fce('0x10'),_0x111647[_0x5d0fce('0x4')]['id'],_0x7f5ac0)),_0x1af36a['setHeader'](_0x5d0fce('0xb'),_0x5d0fce('0x1f')),_0x1af36a[_0x5d0fce('0x43')](util[_0x5d0fce('0x1e')](_0x5d0fce('0x7'),_0x111647[_0x5d0fce('0x4')]['id'],_0x7f5ac0));}else return _0x1af36a[_0x5d0fce('0x33')](0xcc);})['catch'](handleError(_0x1af36a,null));}; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.model.js b/server/api/jscriptyProject/jscriptyProject.model.js index fc8d16b..e6f9106 100644 --- a/server/api/jscriptyProject/jscriptyProject.model.js +++ b/server/api/jscriptyProject/jscriptyProject.model.js @@ -1 +1 @@ -const a379_0x35ba=['exports','JscriptyProject','./jscriptyProject.attributes','jscripty_projects'];(function(_0x4b1403,_0x35baaa){const _0x1058e5=function(_0x44147a){while(--_0x44147a){_0x4b1403['push'](_0x4b1403['shift']());}};_0x1058e5(++_0x35baaa);}(a379_0x35ba,0xfc));const a379_0x1058=function(_0x4b1403,_0x35baaa){_0x4b1403=_0x4b1403-0x0;let _0x1058e5=a379_0x35ba[_0x4b1403];return _0x1058e5;};const _0x312d5=a379_0x1058;'use strict';const attributes=require(_0x312d5('0x2'));module[_0x312d5('0x0')]=function(_0x44147a){const _0x2c323b=_0x312d5,_0x26003c=_0x44147a['define'](_0x2c323b('0x1'),attributes,{'tableName':_0x2c323b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x26003c;}; \ No newline at end of file +const a379_0x604f=['define','./jscriptyProject.attributes','exports','JscriptyProject','jscripty_projects'];(function(_0x30ff4d,_0x604f29){const _0x5257bd=function(_0x353bf5){while(--_0x353bf5){_0x30ff4d['push'](_0x30ff4d['shift']());}};_0x5257bd(++_0x604f29);}(a379_0x604f,0x1b3));const a379_0x5257=function(_0x30ff4d,_0x604f29){_0x30ff4d=_0x30ff4d-0x0;let _0x5257bd=a379_0x604f[_0x30ff4d];return _0x5257bd;};const _0x33b7b0=a379_0x5257;'use strict';const attributes=require(_0x33b7b0('0x1'));module[_0x33b7b0('0x2')]=function(_0x353bf5){const _0x539fcb=_0x33b7b0,_0x2ad3f0=_0x353bf5[_0x539fcb('0x0')](_0x539fcb('0x3'),attributes,{'tableName':_0x539fcb('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2ad3f0;}; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/index.js b/server/api/jscriptyQuestionReport/index.js index 49a37b0..30d9781 100644 --- a/server/api/jscriptyQuestionReport/index.js +++ b/server/api/jscriptyQuestionReport/index.js @@ -1 +1 @@ -const a380_0x5f33=['describe','/:id','create','isAuthenticated','destroy','exports','express','Router','update','/describe','index','get','./jscriptyQuestionReport.controller','../../components/auth/service','show'];(function(_0x2f91fa,_0x5f33ed){const _0x44c539=function(_0x350b12){while(--_0x350b12){_0x2f91fa['push'](_0x2f91fa['shift']());}};_0x44c539(++_0x5f33ed);}(a380_0x5f33,0x1b3));const a380_0x44c5=function(_0x2f91fa,_0x5f33ed){_0x2f91fa=_0x2f91fa-0x0;let _0x44c539=a380_0x5f33[_0x2f91fa];return _0x44c539;};const _0x10717e=a380_0x44c5;'use strict';const express=require(_0x10717e('0x6')),router=express[_0x10717e('0x7')](),auth=require(_0x10717e('0xd')),controller=require(_0x10717e('0xc'));router[_0x10717e('0xb')]('/',auth['isAuthenticated'](),controller[_0x10717e('0xa')]),router[_0x10717e('0xb')](_0x10717e('0x9'),auth[_0x10717e('0x3')](),controller[_0x10717e('0x0')]),router['get'](_0x10717e('0x1'),auth[_0x10717e('0x3')](),controller[_0x10717e('0xe')]),router['post']('/',auth['isAuthenticated'](),controller[_0x10717e('0x2')]),router['put'](_0x10717e('0x1'),auth[_0x10717e('0x3')](),controller[_0x10717e('0x8')]),router['delete'](_0x10717e('0x1'),auth[_0x10717e('0x3')](),controller[_0x10717e('0x4')]),module[_0x10717e('0x5')]=router; \ No newline at end of file +const a380_0x4846=['./jscriptyQuestionReport.controller','put','isAuthenticated','/:id','post','get','../../components/auth/service','Router','create','update'];(function(_0x6165e2,_0x48466){const _0x3e8af2=function(_0x5a54f3){while(--_0x5a54f3){_0x6165e2['push'](_0x6165e2['shift']());}};_0x3e8af2(++_0x48466);}(a380_0x4846,0x8a));const a380_0x3e8a=function(_0x6165e2,_0x48466){_0x6165e2=_0x6165e2-0x0;let _0x3e8af2=a380_0x4846[_0x6165e2];return _0x3e8af2;};const _0x388495=a380_0x3e8a;'use strict';const express=require('express'),router=express[_0x388495('0x9')](),auth=require(_0x388495('0x8')),controller=require(_0x388495('0x2'));router['get']('/',auth[_0x388495('0x4')](),controller['index']),router[_0x388495('0x7')]('/describe',auth['isAuthenticated'](),controller['describe']),router[_0x388495('0x7')](_0x388495('0x5'),auth['isAuthenticated'](),controller['show']),router[_0x388495('0x6')]('/',auth['isAuthenticated'](),controller[_0x388495('0x0')]),router[_0x388495('0x3')](_0x388495('0x5'),auth[_0x388495('0x4')](),controller[_0x388495('0x1')]),router['delete'](_0x388495('0x5'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js index 4d65786..d605146 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js @@ -1 +1 @@ -const a381_0x5ca5=['TEXT','STRING','exports','sequelize'];(function(_0x3dcc19,_0x5ca583){const _0x371310=function(_0x47639b){while(--_0x47639b){_0x3dcc19['push'](_0x3dcc19['shift']());}};_0x371310(++_0x5ca583);}(a381_0x5ca5,0x128));const a381_0x3713=function(_0x3dcc19,_0x5ca583){_0x3dcc19=_0x3dcc19-0x0;let _0x371310=a381_0x5ca5[_0x3dcc19];return _0x371310;};const _0x1d6751=a381_0x3713;'use strict';const Sequelize=require(_0x1d6751('0x3'));module[_0x1d6751('0x2')]={'question':{'type':Sequelize['STRING']},'answer':{'type':Sequelize[_0x1d6751('0x0')]('long')},'membername':{'type':Sequelize['STRING']},'projectname':{'type':Sequelize[_0x1d6751('0x1')]},'queue':{'type':Sequelize[_0x1d6751('0x1')]},'uniqueid':{'type':Sequelize[_0x1d6751('0x1')]},'calleridname':{'type':Sequelize[_0x1d6751('0x1')]},'calleridnum':{'type':Sequelize[_0x1d6751('0x1')]},'questionId':{'type':Sequelize[_0x1d6751('0x1')]}}; \ No newline at end of file +const a381_0x1cc5=['STRING','long','exports','TEXT','sequelize'];(function(_0x3d9cf1,_0x1cc500){const _0x1e5f5f=function(_0x1e2cb7){while(--_0x1e2cb7){_0x3d9cf1['push'](_0x3d9cf1['shift']());}};_0x1e5f5f(++_0x1cc500);}(a381_0x1cc5,0x72));const a381_0x1e5f=function(_0x3d9cf1,_0x1cc500){_0x3d9cf1=_0x3d9cf1-0x0;let _0x1e5f5f=a381_0x1cc5[_0x3d9cf1];return _0x1e5f5f;};const _0x90e2b4=a381_0x1e5f;'use strict';const Sequelize=require(_0x90e2b4('0x0'));module[_0x90e2b4('0x3')]={'question':{'type':Sequelize[_0x90e2b4('0x1')]},'answer':{'type':Sequelize[_0x90e2b4('0x4')](_0x90e2b4('0x2'))},'membername':{'type':Sequelize['STRING']},'projectname':{'type':Sequelize[_0x90e2b4('0x1')]},'queue':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x90e2b4('0x1')]},'calleridname':{'type':Sequelize[_0x90e2b4('0x1')]},'calleridnum':{'type':Sequelize[_0x90e2b4('0x1')]},'questionId':{'type':Sequelize[_0x90e2b4('0x1')]}}; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js index 5d7d9e4..9e27099 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js @@ -1 +1 @@ -const a382_0x2436=['json','nolimit','name','undefined','findOne','include','fields','JscriptyQuestionReport','../../mysqldb','offset','create','order','count','key','update','index','limit','describe','options','error','body','status','like','type','stack','where','destroy','send','catch','intersection','filters','fieldName','show','pick','sort','keys','findAll','attributes','includeAll','model','../../config/logger','VIRTUAL','filter','query','length','merge','end','sequelize','params','then','map','Content-Range'];(function(_0x5c74c3,_0x243688){const _0x39b4e5=function(_0x4c7e09){while(--_0x4c7e09){_0x5c74c3['push'](_0x5c74c3['shift']());}};_0x39b4e5(++_0x243688);}(a382_0x2436,0x117));const a382_0x39b4=function(_0x5c74c3,_0x243688){_0x5c74c3=_0x5c74c3-0x0;let _0x39b4e5=a382_0x2436[_0x5c74c3];return _0x39b4e5;};const _0x3a55b8=a382_0x39b4;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x3a55b8('0x15'))('api'),db=require(_0x3a55b8('0x29'))['db'],{Op}=require(_0x3a55b8('0x1c'));function respondWithResult(_0x4c7e09,_0x19821e){return _0x19821e=_0x19821e||0xc8,function(_0x4050ba){const _0x5beea7=a382_0x39b4;if(_0x4050ba)return _0x4c7e09[_0x5beea7('0x2')](_0x19821e)[_0x5beea7('0x21')](_0x4050ba);};}function respondWithFilteredResult(_0x273eeb,_0x1183b5){return function(_0x449d20){const _0x4fa01a=a382_0x39b4;if(_0x449d20){const _0x21cfb6=_0x449d20[_0x4fa01a('0x2d')],_0x507758=_0x1183b5[_0x4fa01a('0x2a')];let _0x59b344=_0x1183b5[_0x4fa01a('0x2a')]+_0x1183b5[_0x4fa01a('0x31')],_0x4ccf4a;return _0x59b344>=_0x21cfb6?(_0x59b344=_0x21cfb6,_0x4ccf4a=0xc8):_0x4ccf4a=0xce,_0x273eeb[_0x4fa01a('0x2')](_0x4ccf4a),_0x273eeb['set'](_0x4fa01a('0x20'),_0x507758+'-'+_0x59b344+'/'+_0x21cfb6)[_0x4fa01a('0x21')](_0x449d20);}return null;};}function saveUpdates(_0x86a6a6){return function(_0x5035f3){const _0x4d5a63=a382_0x39b4;if(_0x5035f3)return _0x5035f3[_0x4d5a63('0x2f')](_0x86a6a6)[_0x4d5a63('0x1e')](function(_0x2810dc){return _0x2810dc;});return null;};}function removeEntity(_0x35d84d){return function(_0x4dcdf3){const _0x42b3b2=a382_0x39b4;if(_0x4dcdf3)return _0x4dcdf3[_0x42b3b2('0x7')]()[_0x42b3b2('0x1e')](function(){const _0x1da610=_0x42b3b2;_0x35d84d['status'](0xcc)[_0x1da610('0x1b')]();});};}function handleEntityNotFound(_0xb64450){return function(_0x2501d1){return!_0x2501d1&&_0xb64450['sendStatus'](0x194),_0x2501d1;};}function handleError(_0x328623,_0x1b21d2){return _0x1b21d2=_0x1b21d2||0x1f4,function(_0x46f977){const _0x9e7758=a382_0x39b4;logger[_0x9e7758('0x0')](_0x46f977[_0x9e7758('0x5')]),_0x46f977[_0x9e7758('0x23')]&&delete _0x46f977['name'],_0x328623[_0x9e7758('0x2')](_0x1b21d2)[_0x9e7758('0x8')](_0x46f977);};}exports[_0x3a55b8('0x30')]=function(_0x2d6cd9,_0x2bc85a){const _0x561f70=_0x3a55b8;let _0x2037e8={};const _0x96a9d4={},_0x4b3d38={'count':0x0,'rows':[]},_0x433546=_[_0x561f70('0x1f')](db['JscriptyQuestionReport']['rawAttributes'],function(_0x51af36){const _0xaa05c7=_0x561f70;return{'name':_0x51af36[_0xaa05c7('0xc')],'type':_0x51af36['type'][_0xaa05c7('0x2e')]};});_0x96a9d4[_0x561f70('0x14')]=_[_0x561f70('0x1f')](_0x433546,_0x561f70('0x23')),_0x96a9d4[_0x561f70('0x18')]=_[_0x561f70('0x10')](_0x2d6cd9[_0x561f70('0x18')]),_0x96a9d4[_0x561f70('0xb')]=_[_0x561f70('0xa')](_0x96a9d4[_0x561f70('0x14')],_0x96a9d4['query']),_0x2037e8[_0x561f70('0x12')]=_['intersection'](_0x96a9d4[_0x561f70('0x14')],qs[_0x561f70('0x27')](_0x2d6cd9[_0x561f70('0x18')]['fields'])),_0x2037e8[_0x561f70('0x12')]=_0x2037e8[_0x561f70('0x12')][_0x561f70('0x19')]?_0x2037e8[_0x561f70('0x12')]:_0x96a9d4[_0x561f70('0x14')];typeof _0x2d6cd9['query'][_0x561f70('0x22')]===_0x561f70('0x24')&&(_0x2037e8[_0x561f70('0x31')]=qs[_0x561f70('0x31')](_0x2d6cd9['query'][_0x561f70('0x31')]),_0x2037e8['offset']=qs['offset'](_0x2d6cd9[_0x561f70('0x18')][_0x561f70('0x2a')]));_0x2037e8[_0x561f70('0x2c')]=qs[_0x561f70('0xf')](_0x2d6cd9['query'][_0x561f70('0xf')]),_0x2037e8['where']=qs['filters'](_[_0x561f70('0xe')](_0x2d6cd9[_0x561f70('0x18')],_0x96a9d4[_0x561f70('0xb')]),_0x433546);_0x2d6cd9['query']['filter']&&(_0x2037e8[_0x561f70('0x6')]=_[_0x561f70('0x1a')](_0x2037e8[_0x561f70('0x6')],{[Op['or']]:_[_0x561f70('0x1f')](_0x433546,function(_0x14a042){const _0x3395eb=_0x561f70;if(_0x14a042[_0x3395eb('0x4')]!==_0x3395eb('0x16')){const _0x46c018={};return _0x46c018[_0x14a042['name']]={[Op[_0x3395eb('0x3')]]:'%'+_0x2d6cd9[_0x3395eb('0x18')][_0x3395eb('0x17')]+'%'},_0x46c018;}})}));_0x2037e8=_[_0x561f70('0x1a')]({},_0x2037e8,_0x2d6cd9['options']);const _0x33aab0={'where':_0x2037e8['where']};return db['JscriptyQuestionReport'][_0x561f70('0x2d')](_0x33aab0)[_0x561f70('0x1e')](function(_0x3268f5){const _0x475106=_0x561f70;return _0x4b3d38[_0x475106('0x2d')]=_0x3268f5,_0x2d6cd9['query'][_0x475106('0x13')]&&(_0x2037e8['include']=[{'all':!![]}]),db[_0x475106('0x28')][_0x475106('0x11')](_0x2037e8);})[_0x561f70('0x1e')](function(_0xf085a1){return _0x4b3d38['rows']=_0xf085a1,_0x4b3d38;})[_0x561f70('0x1e')](respondWithFilteredResult(_0x2bc85a,_0x2037e8))[_0x561f70('0x9')](handleError(_0x2bc85a,null));},exports[_0x3a55b8('0xd')]=function(_0x11a174,_0x39d12a){const _0x291f1e=_0x3a55b8;let _0x2bc623={'raw':!![],'where':{'id':_0x11a174[_0x291f1e('0x1d')]['id']}};const _0x2c346b={};return _0x2c346b[_0x291f1e('0x14')]=_[_0x291f1e('0x10')](db[_0x291f1e('0x28')]['rawAttributes']),_0x2c346b[_0x291f1e('0x18')]=_[_0x291f1e('0x10')](_0x11a174[_0x291f1e('0x18')]),_0x2c346b[_0x291f1e('0xb')]=_[_0x291f1e('0xa')](_0x2c346b['model'],_0x2c346b[_0x291f1e('0x18')]),_0x2bc623[_0x291f1e('0x12')]=_[_0x291f1e('0xa')](_0x2c346b[_0x291f1e('0x14')],qs[_0x291f1e('0x27')](_0x11a174[_0x291f1e('0x18')]['fields'])),_0x2bc623[_0x291f1e('0x12')]=_0x2bc623[_0x291f1e('0x12')][_0x291f1e('0x19')]?_0x2bc623['attributes']:_0x2c346b[_0x291f1e('0x14')],_0x11a174['query'][_0x291f1e('0x13')]&&(_0x2bc623[_0x291f1e('0x26')]=[{'all':!![]}]),_0x2bc623=_[_0x291f1e('0x1a')]({},_0x2bc623,_0x11a174[_0x291f1e('0x33')]),db['JscriptyQuestionReport'][_0x291f1e('0x25')](_0x2bc623)['then'](handleEntityNotFound(_0x39d12a,null))[_0x291f1e('0x1e')](respondWithResult(_0x39d12a,null))['catch'](handleError(_0x39d12a,null));},exports[_0x3a55b8('0x2b')]=function(_0xc9b81a,_0xa74a4a){const _0xf1a570=_0x3a55b8;return db[_0xf1a570('0x28')]['create'](_0xc9b81a[_0xf1a570('0x1')],{})['then'](respondWithResult(_0xa74a4a,0xc9))['catch'](handleError(_0xa74a4a,null));},exports[_0x3a55b8('0x2f')]=function(_0x307360,_0x5548f7){const _0x3ef4bf=_0x3a55b8;return _0x307360[_0x3ef4bf('0x1')]['id']&&delete _0x307360[_0x3ef4bf('0x1')]['id'],db[_0x3ef4bf('0x28')][_0x3ef4bf('0x25')]({'where':{'id':_0x307360[_0x3ef4bf('0x1d')]['id']}})[_0x3ef4bf('0x1e')](handleEntityNotFound(_0x5548f7,null))[_0x3ef4bf('0x1e')](saveUpdates(_0x307360['body'],null))[_0x3ef4bf('0x1e')](respondWithResult(_0x5548f7,null))['catch'](handleError(_0x5548f7,null));},exports[_0x3a55b8('0x7')]=function(_0x4e0976,_0x17e6f8){const _0x55dc0e=_0x3a55b8;return db[_0x55dc0e('0x28')][_0x55dc0e('0x25')]({'where':{'id':_0x4e0976['params']['id']}})[_0x55dc0e('0x1e')](handleEntityNotFound(_0x17e6f8,null))[_0x55dc0e('0x1e')](removeEntity(_0x17e6f8,null))['catch'](handleError(_0x17e6f8,null));},exports[_0x3a55b8('0x32')]=function(_0x2d6158,_0xdd246a){const _0x5262ab=_0x3a55b8;return db[_0x5262ab('0x28')][_0x5262ab('0x32')]()[_0x5262ab('0x1e')](respondWithResult(_0xdd246a,null))['catch'](handleError(_0xdd246a,null));}; \ No newline at end of file +const a382_0x29b9=['includeAll','key','JscriptyQuestionReport','sequelize','send','catch','count','include','rawAttributes','offset','lodash','Content-Range','nolimit','../../config/logger','attributes','name','undefined','model','set','rows','type','findOne','body','where','end','update','params','then','create','length','limit','map','filter','like','fields','query','stack','json','../../mysqldb','intersection','merge','order','describe','show','keys','status','../../components/parsers/qs','destroy','filters','options'];(function(_0x1586be,_0x29b953){const _0x252e5f=function(_0x95413e){while(--_0x95413e){_0x1586be['push'](_0x1586be['shift']());}};_0x252e5f(++_0x29b953);}(a382_0x29b9,0xff));const a382_0x252e=function(_0x1586be,_0x29b953){_0x1586be=_0x1586be-0x0;let _0x252e5f=a382_0x29b9[_0x1586be];return _0x252e5f;};const _0x53da92=a382_0x252e;'use strict';const _=require(_0x53da92('0x5')),qs=require(_0x53da92('0x29')),logger=require(_0x53da92('0x8'))('api'),db=require(_0x53da92('0x21'))['db'],{Op}=require(_0x53da92('0x30'));function respondWithResult(_0x95413e,_0xffcb31){return _0xffcb31=_0xffcb31||0xc8,function(_0x485591){const _0x566543=a382_0x252e;if(_0x485591)return _0x95413e[_0x566543('0x28')](_0xffcb31)[_0x566543('0x20')](_0x485591);};}function respondWithFilteredResult(_0x2cc49b,_0x31b6c1){return function(_0x44f1ab){const _0xd41d1e=a382_0x252e;if(_0x44f1ab){const _0x4373f4=_0x44f1ab['count'],_0x5116f4=_0x31b6c1[_0xd41d1e('0x4')];let _0x143170=_0x31b6c1[_0xd41d1e('0x4')]+_0x31b6c1['limit'],_0x4c86fa;return _0x143170>=_0x4373f4?(_0x143170=_0x4373f4,_0x4c86fa=0xc8):_0x4c86fa=0xce,_0x2cc49b[_0xd41d1e('0x28')](_0x4c86fa),_0x2cc49b[_0xd41d1e('0xd')](_0xd41d1e('0x6'),_0x5116f4+'-'+_0x143170+'/'+_0x4373f4)['json'](_0x44f1ab);}return null;};}function saveUpdates(_0x30721f){return function(_0x4b17d8){const _0x3d9d5e=a382_0x252e;if(_0x4b17d8)return _0x4b17d8[_0x3d9d5e('0x14')](_0x30721f)[_0x3d9d5e('0x16')](function(_0x272b88){return _0x272b88;});return null;};}function removeEntity(_0x5c2ed6){return function(_0x105879){if(_0x105879)return _0x105879['destroy']()['then'](function(){const _0x17e53e=a382_0x252e;_0x5c2ed6[_0x17e53e('0x28')](0xcc)[_0x17e53e('0x13')]();});};}function handleEntityNotFound(_0x3712fd){return function(_0x403ef8){return!_0x403ef8&&_0x3712fd['sendStatus'](0x194),_0x403ef8;};}function handleError(_0x42b67c,_0x3cba67){return _0x3cba67=_0x3cba67||0x1f4,function(_0x1bdc35){const _0x34431a=a382_0x252e;logger['error'](_0x1bdc35[_0x34431a('0x1f')]),_0x1bdc35[_0x34431a('0xa')]&&delete _0x1bdc35['name'],_0x42b67c[_0x34431a('0x28')](_0x3cba67)[_0x34431a('0x31')](_0x1bdc35);};}exports['index']=function(_0x56aa4c,_0x137da8){const _0x399862=_0x53da92;let _0x2cede1={};const _0x17e302={},_0x236e6c={'count':0x0,'rows':[]},_0x1edd73=_['map'](db[_0x399862('0x2f')][_0x399862('0x3')],function(_0xcd41e5){const _0x1d780c=_0x399862;return{'name':_0xcd41e5['fieldName'],'type':_0xcd41e5[_0x1d780c('0xf')][_0x1d780c('0x2e')]};});_0x17e302[_0x399862('0xc')]=_[_0x399862('0x1a')](_0x1edd73,_0x399862('0xa')),_0x17e302['query']=_[_0x399862('0x27')](_0x56aa4c['query']),_0x17e302[_0x399862('0x2b')]=_['intersection'](_0x17e302['model'],_0x17e302['query']),_0x2cede1[_0x399862('0x9')]=_['intersection'](_0x17e302[_0x399862('0xc')],qs[_0x399862('0x1d')](_0x56aa4c[_0x399862('0x1e')][_0x399862('0x1d')])),_0x2cede1[_0x399862('0x9')]=_0x2cede1[_0x399862('0x9')][_0x399862('0x18')]?_0x2cede1[_0x399862('0x9')]:_0x17e302[_0x399862('0xc')];typeof _0x56aa4c[_0x399862('0x1e')][_0x399862('0x7')]===_0x399862('0xb')&&(_0x2cede1[_0x399862('0x19')]=qs['limit'](_0x56aa4c[_0x399862('0x1e')][_0x399862('0x19')]),_0x2cede1[_0x399862('0x4')]=qs['offset'](_0x56aa4c[_0x399862('0x1e')][_0x399862('0x4')]));_0x2cede1[_0x399862('0x24')]=qs['sort'](_0x56aa4c['query']['sort']),_0x2cede1['where']=qs[_0x399862('0x2b')](_['pick'](_0x56aa4c[_0x399862('0x1e')],_0x17e302[_0x399862('0x2b')]),_0x1edd73);_0x56aa4c[_0x399862('0x1e')][_0x399862('0x1b')]&&(_0x2cede1[_0x399862('0x12')]=_[_0x399862('0x23')](_0x2cede1[_0x399862('0x12')],{[Op['or']]:_[_0x399862('0x1a')](_0x1edd73,function(_0x213153){const _0x59d47b=_0x399862;if(_0x213153['type']!=='VIRTUAL'){const _0x5dd6d3={};return _0x5dd6d3[_0x213153['name']]={[Op[_0x59d47b('0x1c')]]:'%'+_0x56aa4c[_0x59d47b('0x1e')][_0x59d47b('0x1b')]+'%'},_0x5dd6d3;}})}));_0x2cede1=_['merge']({},_0x2cede1,_0x56aa4c[_0x399862('0x2c')]);const _0x7db95d={'where':_0x2cede1[_0x399862('0x12')]};return db['JscriptyQuestionReport'][_0x399862('0x1')](_0x7db95d)[_0x399862('0x16')](function(_0x146d89){const _0x593d33=_0x399862;return _0x236e6c[_0x593d33('0x1')]=_0x146d89,_0x56aa4c[_0x593d33('0x1e')][_0x593d33('0x2d')]&&(_0x2cede1[_0x593d33('0x2')]=[{'all':!![]}]),db[_0x593d33('0x2f')]['findAll'](_0x2cede1);})['then'](function(_0x3b48a8){const _0x81be4d=_0x399862;return _0x236e6c[_0x81be4d('0xe')]=_0x3b48a8,_0x236e6c;})['then'](respondWithFilteredResult(_0x137da8,_0x2cede1))[_0x399862('0x0')](handleError(_0x137da8,null));},exports[_0x53da92('0x26')]=function(_0x4a0bf,_0x137c31){const _0x1f2831=_0x53da92;let _0x4c1e40={'raw':!![],'where':{'id':_0x4a0bf[_0x1f2831('0x15')]['id']}};const _0x543ce7={};return _0x543ce7[_0x1f2831('0xc')]=_[_0x1f2831('0x27')](db[_0x1f2831('0x2f')]['rawAttributes']),_0x543ce7['query']=_[_0x1f2831('0x27')](_0x4a0bf[_0x1f2831('0x1e')]),_0x543ce7[_0x1f2831('0x2b')]=_[_0x1f2831('0x22')](_0x543ce7[_0x1f2831('0xc')],_0x543ce7['query']),_0x4c1e40[_0x1f2831('0x9')]=_[_0x1f2831('0x22')](_0x543ce7[_0x1f2831('0xc')],qs[_0x1f2831('0x1d')](_0x4a0bf[_0x1f2831('0x1e')][_0x1f2831('0x1d')])),_0x4c1e40['attributes']=_0x4c1e40['attributes'][_0x1f2831('0x18')]?_0x4c1e40[_0x1f2831('0x9')]:_0x543ce7[_0x1f2831('0xc')],_0x4a0bf[_0x1f2831('0x1e')]['includeAll']&&(_0x4c1e40[_0x1f2831('0x2')]=[{'all':!![]}]),_0x4c1e40=_[_0x1f2831('0x23')]({},_0x4c1e40,_0x4a0bf[_0x1f2831('0x2c')]),db[_0x1f2831('0x2f')]['findOne'](_0x4c1e40)[_0x1f2831('0x16')](handleEntityNotFound(_0x137c31,null))[_0x1f2831('0x16')](respondWithResult(_0x137c31,null))[_0x1f2831('0x0')](handleError(_0x137c31,null));},exports[_0x53da92('0x17')]=function(_0x62cb4e,_0x31a8a1){const _0x59ef97=_0x53da92;return db[_0x59ef97('0x2f')][_0x59ef97('0x17')](_0x62cb4e[_0x59ef97('0x11')],{})[_0x59ef97('0x16')](respondWithResult(_0x31a8a1,0xc9))[_0x59ef97('0x0')](handleError(_0x31a8a1,null));},exports[_0x53da92('0x14')]=function(_0x4353b7,_0x19c1af){const _0x198bb3=_0x53da92;return _0x4353b7[_0x198bb3('0x11')]['id']&&delete _0x4353b7[_0x198bb3('0x11')]['id'],db[_0x198bb3('0x2f')][_0x198bb3('0x10')]({'where':{'id':_0x4353b7['params']['id']}})[_0x198bb3('0x16')](handleEntityNotFound(_0x19c1af,null))[_0x198bb3('0x16')](saveUpdates(_0x4353b7[_0x198bb3('0x11')],null))[_0x198bb3('0x16')](respondWithResult(_0x19c1af,null))['catch'](handleError(_0x19c1af,null));},exports[_0x53da92('0x2a')]=function(_0x50a201,_0x470252){const _0x264162=_0x53da92;return db[_0x264162('0x2f')]['findOne']({'where':{'id':_0x50a201[_0x264162('0x15')]['id']}})[_0x264162('0x16')](handleEntityNotFound(_0x470252,null))[_0x264162('0x16')](removeEntity(_0x470252,null))[_0x264162('0x0')](handleError(_0x470252,null));},exports[_0x53da92('0x25')]=function(_0xe6b0,_0x4dc2ba){const _0x5a6739=_0x53da92;return db[_0x5a6739('0x2f')][_0x5a6739('0x25')]()[_0x5a6739('0x16')](respondWithResult(_0x4dc2ba,null))[_0x5a6739('0x0')](handleError(_0x4dc2ba,null));}; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js index 679d75c..d410e51 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js @@ -1 +1 @@ -const a383_0x3b8c=['report_jscripty_questions'];(function(_0x741dd3,_0x3b8c3c){const _0x283266=function(_0x1187f0){while(--_0x1187f0){_0x741dd3['push'](_0x741dd3['shift']());}};_0x283266(++_0x3b8c3c);}(a383_0x3b8c,0x15a));const a383_0x2832=function(_0x741dd3,_0x3b8c3c){_0x741dd3=_0x741dd3-0x0;let _0x283266=a383_0x3b8c[_0x741dd3];return _0x283266;};'use strict';const attributes=require('./jscriptyQuestionReport.attributes');module['exports']=function(_0x1187f0){const _0x58c723=a383_0x2832,_0x5e4368=_0x1187f0['define']('JscriptyQuestionReport',attributes,{'tableName':_0x58c723('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5e4368;}; \ No newline at end of file +const a383_0x125a=['./jscriptyQuestionReport.attributes','report_jscripty_questions','exports','define','JscriptyQuestionReport'];(function(_0x1c0a36,_0x125ac1){const _0x20be9b=function(_0x224c9a){while(--_0x224c9a){_0x1c0a36['push'](_0x1c0a36['shift']());}};_0x20be9b(++_0x125ac1);}(a383_0x125a,0x185));const a383_0x20be=function(_0x1c0a36,_0x125ac1){_0x1c0a36=_0x1c0a36-0x0;let _0x20be9b=a383_0x125a[_0x1c0a36];return _0x20be9b;};const _0x13febd=a383_0x20be;'use strict';const attributes=require(_0x13febd('0x1'));module[_0x13febd('0x3')]=function(_0x224c9a){const _0x57ef54=_0x13febd,_0x39ea7f=_0x224c9a[_0x57ef54('0x4')](_0x57ef54('0x0'),attributes,{'tableName':_0x57ef54('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x39ea7f;}; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/index.js b/server/api/jscriptySessionReport/index.js index 1dd2cd7..d27110d 100644 --- a/server/api/jscriptySessionReport/index.js +++ b/server/api/jscriptySessionReport/index.js @@ -1 +1 @@ -const a384_0x9b19=['index','exports','describe','create','put','/:id/questions','/:id','isAuthenticated','/describe','delete','express','show','./jscriptySessionReport.controller','post','getQuestions','get'];(function(_0x48b454,_0x9b19c3){const _0x413629=function(_0x38c14a){while(--_0x38c14a){_0x48b454['push'](_0x48b454['shift']());}};_0x413629(++_0x9b19c3);}(a384_0x9b19,0xa9));const a384_0x4136=function(_0x48b454,_0x9b19c3){_0x48b454=_0x48b454-0x0;let _0x413629=a384_0x9b19[_0x48b454];return _0x413629;};const _0x295b05=a384_0x4136;'use strict';const express=require(_0x295b05('0x1')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x295b05('0x3'));router['get']('/',auth[_0x295b05('0xe')](),controller[_0x295b05('0x7')]),router['get'](_0x295b05('0xf'),auth[_0x295b05('0xe')](),controller[_0x295b05('0x9')]),router[_0x295b05('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x295b05('0x2')]),router[_0x295b05('0x6')](_0x295b05('0xc'),auth[_0x295b05('0xe')](),controller[_0x295b05('0x5')]),router[_0x295b05('0x4')]('/',auth[_0x295b05('0xe')](),controller[_0x295b05('0xa')]),router[_0x295b05('0xb')]('/:id',auth[_0x295b05('0xe')](),controller['update']),router[_0x295b05('0x0')](_0x295b05('0xd'),auth[_0x295b05('0xe')](),controller['destroy']),module[_0x295b05('0x8')]=router; \ No newline at end of file +const a384_0xd6f4=['show','get','Router','exports','create','describe','isAuthenticated','../../components/auth/service','put','/describe','/:id','express','post','/:id/questions','destroy'];(function(_0x1829de,_0xd6f467){const _0x3cc09f=function(_0x438d2d){while(--_0x438d2d){_0x1829de['push'](_0x1829de['shift']());}};_0x3cc09f(++_0xd6f467);}(a384_0xd6f4,0x84));const a384_0x3cc0=function(_0x1829de,_0xd6f467){_0x1829de=_0x1829de-0x0;let _0x3cc09f=a384_0xd6f4[_0x1829de];return _0x3cc09f;};const _0x3c6aca=a384_0x3cc0;'use strict';const express=require(_0x3c6aca('0xe')),router=express[_0x3c6aca('0x5')](),auth=require(_0x3c6aca('0xa')),controller=require('./jscriptySessionReport.controller');router['get']('/',auth[_0x3c6aca('0x9')](),controller['index']),router[_0x3c6aca('0x4')](_0x3c6aca('0xc'),auth[_0x3c6aca('0x9')](),controller[_0x3c6aca('0x8')]),router[_0x3c6aca('0x4')](_0x3c6aca('0xd'),auth['isAuthenticated'](),controller[_0x3c6aca('0x3')]),router[_0x3c6aca('0x4')](_0x3c6aca('0x1'),auth[_0x3c6aca('0x9')](),controller['getQuestions']),router[_0x3c6aca('0x0')]('/',auth[_0x3c6aca('0x9')](),controller[_0x3c6aca('0x7')]),router[_0x3c6aca('0xb')](_0x3c6aca('0xd'),auth['isAuthenticated'](),controller['update']),router['delete'](_0x3c6aca('0xd'),auth['isAuthenticated'](),controller[_0x3c6aca('0x2')]),module[_0x3c6aca('0x6')]=router; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js index ed09e64..740fdc1 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js @@ -1 +1 @@ -const a385_0x4fb2=['moment','setDataValue','STRING','BOOLEAN','DATE','exports','endtime'];(function(_0x5765cd,_0x4fb229){const _0xe5ba89=function(_0x510ffa){while(--_0x510ffa){_0x5765cd['push'](_0x5765cd['shift']());}};_0xe5ba89(++_0x4fb229);}(a385_0x4fb2,0x95));const a385_0xe5ba=function(_0x5765cd,_0x4fb229){_0x5765cd=_0x5765cd-0x0;let _0xe5ba89=a385_0x4fb2[_0x5765cd];return _0xe5ba89;};const _0x4a7cc1=a385_0xe5ba;'use strict';const moment=require(_0x4a7cc1('0x5')),Sequelize=require('sequelize');module[_0x4a7cc1('0x3')]={'starttime':{'type':Sequelize[_0x4a7cc1('0x2')],'set':function(_0x510ffa){const _0x988178=_0x4a7cc1;this[_0x988178('0x6')]('starttime',_0x510ffa),this[_0x988178('0x6')](_0x988178('0x4'),moment()['format']('YYYY-MM-DD\x20HH:mm:ss'));}},'endtime':{'type':Sequelize[_0x4a7cc1('0x2')]},'membername':{'type':Sequelize[_0x4a7cc1('0x0')]},'projectname':{'type':Sequelize[_0x4a7cc1('0x0')]},'queue':{'type':Sequelize[_0x4a7cc1('0x0')]},'uniqueid':{'type':Sequelize[_0x4a7cc1('0x0')]},'calleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x4a7cc1('0x0')]},'completed':{'type':Sequelize[_0x4a7cc1('0x1')],'defaultValue':![]}}; \ No newline at end of file +const a385_0x8413=['sequelize','DATE','BOOLEAN','YYYY-MM-DD\x20HH:mm:ss','starttime','setDataValue','STRING','endtime'];(function(_0x241b87,_0x8413bf){const _0x2e7f87=function(_0x16bcf8){while(--_0x16bcf8){_0x241b87['push'](_0x241b87['shift']());}};_0x2e7f87(++_0x8413bf);}(a385_0x8413,0x163));const a385_0x2e7f=function(_0x241b87,_0x8413bf){_0x241b87=_0x241b87-0x0;let _0x2e7f87=a385_0x8413[_0x241b87];return _0x2e7f87;};const _0x560071=a385_0x2e7f;'use strict';const moment=require('moment'),Sequelize=require(_0x560071('0x5'));module['exports']={'starttime':{'type':Sequelize[_0x560071('0x6')],'set':function(_0x16bcf8){const _0x231a7b=_0x560071;this[_0x231a7b('0x2')](_0x231a7b('0x1'),_0x16bcf8),this['setDataValue'](_0x231a7b('0x4'),moment()['format'](_0x231a7b('0x0')));}},'endtime':{'type':Sequelize[_0x560071('0x6')]},'membername':{'type':Sequelize['STRING']},'projectname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x560071('0x3')]},'uniqueid':{'type':Sequelize[_0x560071('0x3')]},'calleridname':{'type':Sequelize[_0x560071('0x3')]},'calleridnum':{'type':Sequelize[_0x560071('0x3')]},'completed':{'type':Sequelize[_0x560071('0x7')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js index 5b80b9c..e8881fc 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js @@ -1 +1 @@ -const a386_0x5791=['findAll','error','type','model','options','json','filter','send','limit','order','fields','sequelize','end','catch','then','sendStatus','JscriptySessionReport','findOne','length','show','getQuestions','api','count','includeAll','where','merge','destroy','fieldName','undefined','rows','key','nolimit','keys','attributes','body','intersection','status','include','lodash','pick','query','describe','offset','filters','Content-Range','like','params','JscriptyQuestionReport','stack','../../components/parsers/qs','../../config/logger','map','sort','set','name','update','create'];(function(_0x5db669,_0x5791fd){const _0x568231=function(_0x42b063){while(--_0x42b063){_0x5db669['push'](_0x5db669['shift']());}};_0x568231(++_0x5791fd);}(a386_0x5791,0x89));const a386_0x5682=function(_0x5db669,_0x5791fd){_0x5db669=_0x5db669-0x0;let _0x568231=a386_0x5791[_0x5db669];return _0x568231;};const _0x376e02=a386_0x5682;'use strict';const _=require(_0x376e02('0xf')),qs=require(_0x376e02('0x1a')),logger=require(_0x376e02('0x1b'))(_0x376e02('0x37')),db=require('../../mysqldb')['db'],{Op}=require(_0x376e02('0x2d'));function respondWithResult(_0x42b063,_0x1bf006){return _0x1bf006=_0x1bf006||0xc8,function(_0x4906f9){const _0x2d5318=a386_0x5682;if(_0x4906f9)return _0x42b063[_0x2d5318('0xd')](_0x1bf006)[_0x2d5318('0x27')](_0x4906f9);};}function respondWithFilteredResult(_0x3438cb,_0x23d025){return function(_0x36099f){const _0x4dac10=a386_0x5682;if(_0x36099f){const _0xd79d03=_0x36099f['count'],_0x5cf2f2=_0x23d025[_0x4dac10('0x13')];let _0x5698e2=_0x23d025['offset']+_0x23d025[_0x4dac10('0x2a')],_0x234d46;return _0x5698e2>=_0xd79d03?(_0x5698e2=_0xd79d03,_0x234d46=0xc8):_0x234d46=0xce,_0x3438cb[_0x4dac10('0xd')](_0x234d46),_0x3438cb[_0x4dac10('0x1e')](_0x4dac10('0x15'),_0x5cf2f2+'-'+_0x5698e2+'/'+_0xd79d03)[_0x4dac10('0x27')](_0x36099f);}return null;};}function saveUpdates(_0x5f5d2c){return function(_0x1e8faa){const _0x5b1646=a386_0x5682;if(_0x1e8faa)return _0x1e8faa[_0x5b1646('0x20')](_0x5f5d2c)[_0x5b1646('0x30')](function(_0x49f791){return _0x49f791;});return null;};}function removeEntity(_0x3d6909){return function(_0x47183a){const _0x460790=a386_0x5682;if(_0x47183a)return _0x47183a[_0x460790('0x3')]()[_0x460790('0x30')](function(){const _0x32fe44=_0x460790;_0x3d6909[_0x32fe44('0xd')](0xcc)[_0x32fe44('0x2e')]();});};}function handleEntityNotFound(_0x1f1f89){return function(_0x126b0d){const _0x1fd347=a386_0x5682;return!_0x126b0d&&_0x1f1f89[_0x1fd347('0x31')](0x194),_0x126b0d;};}function handleError(_0x42e446,_0x54f7f7){return _0x54f7f7=_0x54f7f7||0x1f4,function(_0x5716ce){const _0x3a8c97=a386_0x5682;logger[_0x3a8c97('0x23')](_0x5716ce[_0x3a8c97('0x19')]),_0x5716ce[_0x3a8c97('0x1f')]&&delete _0x5716ce[_0x3a8c97('0x1f')],_0x42e446[_0x3a8c97('0xd')](_0x54f7f7)[_0x3a8c97('0x29')](_0x5716ce);};}exports['index']=function(_0x3a6cae,_0x5205fd){const _0x2bd4ae=_0x376e02;let _0x10c711={};const _0xf6ea81={},_0x1f644f={'count':0x0,'rows':[]},_0x114af8=_[_0x2bd4ae('0x1c')](db[_0x2bd4ae('0x32')]['rawAttributes'],function(_0x41fa5f){const _0x202c52=_0x2bd4ae;return{'name':_0x41fa5f[_0x202c52('0x4')],'type':_0x41fa5f[_0x202c52('0x24')][_0x202c52('0x7')]};});_0xf6ea81[_0x2bd4ae('0x25')]=_[_0x2bd4ae('0x1c')](_0x114af8,_0x2bd4ae('0x1f')),_0xf6ea81[_0x2bd4ae('0x11')]=_[_0x2bd4ae('0x9')](_0x3a6cae[_0x2bd4ae('0x11')]),_0xf6ea81[_0x2bd4ae('0x14')]=_[_0x2bd4ae('0xc')](_0xf6ea81[_0x2bd4ae('0x25')],_0xf6ea81[_0x2bd4ae('0x11')]),_0x10c711[_0x2bd4ae('0xa')]=_[_0x2bd4ae('0xc')](_0xf6ea81[_0x2bd4ae('0x25')],qs['fields'](_0x3a6cae[_0x2bd4ae('0x11')][_0x2bd4ae('0x2c')])),_0x10c711[_0x2bd4ae('0xa')]=_0x10c711['attributes'][_0x2bd4ae('0x34')]?_0x10c711['attributes']:_0xf6ea81[_0x2bd4ae('0x25')];typeof _0x3a6cae['query'][_0x2bd4ae('0x8')]===_0x2bd4ae('0x5')&&(_0x10c711[_0x2bd4ae('0x2a')]=qs[_0x2bd4ae('0x2a')](_0x3a6cae[_0x2bd4ae('0x11')][_0x2bd4ae('0x2a')]),_0x10c711[_0x2bd4ae('0x13')]=qs[_0x2bd4ae('0x13')](_0x3a6cae[_0x2bd4ae('0x11')][_0x2bd4ae('0x13')]));_0x10c711[_0x2bd4ae('0x2b')]=qs[_0x2bd4ae('0x1d')](_0x3a6cae[_0x2bd4ae('0x11')]['sort']),_0x10c711['where']=qs[_0x2bd4ae('0x14')](_[_0x2bd4ae('0x10')](_0x3a6cae[_0x2bd4ae('0x11')],_0xf6ea81['filters']),_0x114af8);_0x3a6cae[_0x2bd4ae('0x11')][_0x2bd4ae('0x28')]&&(_0x10c711['where']=_[_0x2bd4ae('0x2')](_0x10c711['where'],{[Op['or']]:_[_0x2bd4ae('0x1c')](_0x114af8,function(_0x478a0f){const _0x3f8d06=_0x2bd4ae;if(_0x478a0f['type']!=='VIRTUAL'){const _0x4d2c3c={};return _0x4d2c3c[_0x478a0f[_0x3f8d06('0x1f')]]={[Op['like']]:'%'+_0x3a6cae[_0x3f8d06('0x11')]['filter']+'%'},_0x4d2c3c;}})}));_0x10c711=_[_0x2bd4ae('0x2')]({},_0x10c711,_0x3a6cae[_0x2bd4ae('0x26')]);const _0x5391b7={'where':_0x10c711[_0x2bd4ae('0x1')]};return db[_0x2bd4ae('0x32')][_0x2bd4ae('0x38')](_0x5391b7)[_0x2bd4ae('0x30')](function(_0x17d620){const _0x2c9c1d=_0x2bd4ae;return _0x1f644f[_0x2c9c1d('0x38')]=_0x17d620,_0x3a6cae[_0x2c9c1d('0x11')][_0x2c9c1d('0x0')]&&(_0x10c711[_0x2c9c1d('0xe')]=[{'all':!![]}]),db[_0x2c9c1d('0x32')][_0x2c9c1d('0x22')](_0x10c711);})[_0x2bd4ae('0x30')](function(_0x527f8f){const _0x47316d=_0x2bd4ae;return _0x1f644f[_0x47316d('0x6')]=_0x527f8f,_0x1f644f;})['then'](respondWithFilteredResult(_0x5205fd,_0x10c711))[_0x2bd4ae('0x2f')](handleError(_0x5205fd,null));},exports[_0x376e02('0x35')]=function(_0x13673d,_0x1d7e45){const _0x5ba27b=_0x376e02;let _0x1e696f={'raw':!![],'where':{'id':_0x13673d[_0x5ba27b('0x17')]['id']}};const _0x37a11b={};return _0x37a11b[_0x5ba27b('0x25')]=_['keys'](db['JscriptySessionReport']['rawAttributes']),_0x37a11b[_0x5ba27b('0x11')]=_[_0x5ba27b('0x9')](_0x13673d[_0x5ba27b('0x11')]),_0x37a11b[_0x5ba27b('0x14')]=_[_0x5ba27b('0xc')](_0x37a11b['model'],_0x37a11b[_0x5ba27b('0x11')]),_0x1e696f['attributes']=_[_0x5ba27b('0xc')](_0x37a11b['model'],qs[_0x5ba27b('0x2c')](_0x13673d['query'][_0x5ba27b('0x2c')])),_0x1e696f[_0x5ba27b('0xa')]=_0x1e696f['attributes'][_0x5ba27b('0x34')]?_0x1e696f['attributes']:_0x37a11b[_0x5ba27b('0x25')],_0x13673d['query'][_0x5ba27b('0x0')]&&(_0x1e696f[_0x5ba27b('0xe')]=[{'all':!![]}]),_0x1e696f=_[_0x5ba27b('0x2')]({},_0x1e696f,_0x13673d['options']),db[_0x5ba27b('0x32')][_0x5ba27b('0x33')](_0x1e696f)[_0x5ba27b('0x30')](handleEntityNotFound(_0x1d7e45,null))[_0x5ba27b('0x30')](respondWithResult(_0x1d7e45,null))[_0x5ba27b('0x2f')](handleError(_0x1d7e45,null));},exports[_0x376e02('0x21')]=function(_0x13cd60,_0x49ae86){const _0x3d1584=_0x376e02;return db['JscriptySessionReport']['create'](_0x13cd60[_0x3d1584('0xb')],{})[_0x3d1584('0x30')](respondWithResult(_0x49ae86,0xc9))['catch'](handleError(_0x49ae86,null));},exports['update']=function(_0x3b61a2,_0x5f4362){const _0x49d74a=_0x376e02;return _0x3b61a2[_0x49d74a('0xb')]['id']&&delete _0x3b61a2[_0x49d74a('0xb')]['id'],db[_0x49d74a('0x32')]['findOne']({'where':{'id':_0x3b61a2[_0x49d74a('0x17')]['id']}})[_0x49d74a('0x30')](handleEntityNotFound(_0x5f4362,null))[_0x49d74a('0x30')](saveUpdates(_0x3b61a2[_0x49d74a('0xb')],null))[_0x49d74a('0x30')](respondWithResult(_0x5f4362,null))[_0x49d74a('0x2f')](handleError(_0x5f4362,null));},exports['destroy']=function(_0x2783f9,_0x295807){const _0x3e3a5c=_0x376e02;return db[_0x3e3a5c('0x32')][_0x3e3a5c('0x33')]({'where':{'id':_0x2783f9[_0x3e3a5c('0x17')]['id']}})[_0x3e3a5c('0x30')](handleEntityNotFound(_0x295807,null))[_0x3e3a5c('0x30')](removeEntity(_0x295807,null))[_0x3e3a5c('0x2f')](handleError(_0x295807,null));},exports[_0x376e02('0x12')]=function(_0x431ace,_0x5baf4c){const _0x55e268=_0x376e02;return db[_0x55e268('0x32')][_0x55e268('0x12')]()[_0x55e268('0x30')](respondWithResult(_0x5baf4c,null))['catch'](handleError(_0x5baf4c,null));},exports[_0x376e02('0x36')]=function(_0x1e4960,_0x3a4af1){const _0x4f433d=_0x376e02;let _0x50596e={'raw':!![],'where':{}};const _0x440701={},_0x50790d={'count':0x0,'rows':[]};return db[_0x4f433d('0x32')][_0x4f433d('0x33')]({'where':{'id':_0x1e4960['params']['id']}})[_0x4f433d('0x30')](handleEntityNotFound(_0x3a4af1,null))[_0x4f433d('0x30')](function(_0x5131e5){const _0x449d00=_0x4f433d;if(_0x5131e5)return _0x440701['model']=_[_0x449d00('0x9')](db[_0x449d00('0x18')]['rawAttributes']),_0x440701[_0x449d00('0x11')]=_[_0x449d00('0x9')](_0x1e4960[_0x449d00('0x11')]),_0x440701[_0x449d00('0x14')]=_[_0x449d00('0xc')](_0x440701['model'],_0x440701[_0x449d00('0x11')]),_0x50596e[_0x449d00('0xa')]=_['intersection'](_0x440701[_0x449d00('0x25')],qs[_0x449d00('0x2c')](_0x1e4960['query'][_0x449d00('0x2c')])),_0x50596e[_0x449d00('0xa')]=_0x50596e[_0x449d00('0xa')][_0x449d00('0x34')]?_0x50596e[_0x449d00('0xa')]:_0x440701[_0x449d00('0x25')],typeof _0x1e4960[_0x449d00('0x11')][_0x449d00('0x8')]==='undefined'&&(_0x50596e[_0x449d00('0x2a')]=qs[_0x449d00('0x2a')](_0x1e4960[_0x449d00('0x11')]['limit']),_0x50596e['offset']=qs[_0x449d00('0x13')](_0x1e4960[_0x449d00('0x11')][_0x449d00('0x13')])),_0x50596e[_0x449d00('0x2b')]=qs[_0x449d00('0x1d')](_0x1e4960[_0x449d00('0x11')][_0x449d00('0x1d')]),_0x50596e[_0x449d00('0x1')]=qs[_0x449d00('0x14')](_[_0x449d00('0x10')](_0x1e4960[_0x449d00('0x11')],_0x440701[_0x449d00('0x14')])),_0x50596e['where']['SessionId']=_0x5131e5['id'],_0x1e4960[_0x449d00('0x11')][_0x449d00('0x28')]&&(_0x50596e[_0x449d00('0x1')]=_[_0x449d00('0x2')](_0x50596e[_0x449d00('0x1')],{[Op['or']]:_[_0x449d00('0x1c')](_0x50596e[_0x449d00('0xa')],function(_0x852471){const _0x4b2308=_0x449d00,_0x18d01b={};return _0x18d01b[_0x852471]={[Op[_0x4b2308('0x16')]]:'%'+_0x1e4960['query']['filter']+'%'},_0x18d01b;})})),_0x50596e=_[_0x449d00('0x2')]({},_0x50596e,_0x1e4960[_0x449d00('0x26')]),db[_0x449d00('0x18')][_0x449d00('0x38')]({'where':_0x50596e[_0x449d00('0x1')]})[_0x449d00('0x30')](function(_0x4620be){const _0x25785f=_0x449d00;return _0x50790d['count']=_0x4620be,_0x1e4960[_0x25785f('0x11')][_0x25785f('0x0')]&&(_0x50596e[_0x25785f('0xe')]=[{'all':!![]}]),db[_0x25785f('0x18')][_0x25785f('0x22')](_0x50596e);})[_0x449d00('0x30')](function(_0x2c604c){const _0x40c48c=_0x449d00;return _0x50790d[_0x40c48c('0x6')]=_0x2c604c,_0x50790d;});})[_0x4f433d('0x30')](respondWithFilteredResult(_0x3a4af1,_0x50596e))[_0x4f433d('0x2f')](handleError(_0x3a4af1,null));}; \ No newline at end of file +const a386_0x3e5d=['index','json','filter','status','findAll','set','SessionId','sendStatus','catch','length','sort','order','type','nolimit','send','limit','include','options','show','pick','VIRTUAL','like','name','offset','findOne','describe','params','query','api','where','rawAttributes','attributes','filters','keys','sequelize','intersection','Content-Range','fields','count','lodash','body','JscriptySessionReport','getQuestions','fieldName','then','merge','undefined','model','rows','map','update','create','JscriptyQuestionReport','includeAll'];(function(_0x410b07,_0x3e5dec){const _0x2f7683=function(_0x33680d){while(--_0x33680d){_0x410b07['push'](_0x410b07['shift']());}};_0x2f7683(++_0x3e5dec);}(a386_0x3e5d,0x1bd));const a386_0x2f76=function(_0x410b07,_0x3e5dec){_0x410b07=_0x410b07-0x0;let _0x2f7683=a386_0x3e5d[_0x410b07];return _0x2f7683;};const _0xb0c4dc=a386_0x2f76;'use strict';const _=require(_0xb0c4dc('0x1a')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0xb0c4dc('0xf')),db=require('../../mysqldb')['db'],{Op}=require(_0xb0c4dc('0x15'));function respondWithResult(_0x33680d,_0x413eca){return _0x413eca=_0x413eca||0xc8,function(_0x245dd7){const _0x143461=a386_0x2f76;if(_0x245dd7)return _0x33680d[_0x143461('0x2c')](_0x413eca)[_0x143461('0x2a')](_0x245dd7);};}function respondWithFilteredResult(_0x652274,_0x306a32){return function(_0x17f859){const _0xeb44c0=a386_0x2f76;if(_0x17f859){const _0x2676bb=_0x17f859[_0xeb44c0('0x19')],_0x118a82=_0x306a32[_0xeb44c0('0xa')];let _0x1bb43c=_0x306a32[_0xeb44c0('0xa')]+_0x306a32[_0xeb44c0('0x2')],_0x16fb65;return _0x1bb43c>=_0x2676bb?(_0x1bb43c=_0x2676bb,_0x16fb65=0xc8):_0x16fb65=0xce,_0x652274[_0xeb44c0('0x2c')](_0x16fb65),_0x652274[_0xeb44c0('0x2e')](_0xeb44c0('0x17'),_0x118a82+'-'+_0x1bb43c+'/'+_0x2676bb)[_0xeb44c0('0x2a')](_0x17f859);}return null;};}function saveUpdates(_0x2aabca){return function(_0x22f9f1){const _0x25c7fb=a386_0x2f76;if(_0x22f9f1)return _0x22f9f1[_0x25c7fb('0x25')](_0x2aabca)['then'](function(_0x77e7c7){return _0x77e7c7;});return null;};}function removeEntity(_0x34e388){return function(_0x101170){const _0x2bdb51=a386_0x2f76;if(_0x101170)return _0x101170['destroy']()[_0x2bdb51('0x1f')](function(){const _0x13bdf4=_0x2bdb51;_0x34e388[_0x13bdf4('0x2c')](0xcc)['end']();});};}function handleEntityNotFound(_0x3af12c){return function(_0x4ea8bb){const _0x1ac62b=a386_0x2f76;return!_0x4ea8bb&&_0x3af12c[_0x1ac62b('0x30')](0x194),_0x4ea8bb;};}function handleError(_0x446414,_0xc190fd){return _0xc190fd=_0xc190fd||0x1f4,function(_0xc6bb19){const _0x15b765=a386_0x2f76;logger['error'](_0xc6bb19['stack']),_0xc6bb19[_0x15b765('0x9')]&&delete _0xc6bb19[_0x15b765('0x9')],_0x446414[_0x15b765('0x2c')](_0xc190fd)[_0x15b765('0x1')](_0xc6bb19);};}exports[_0xb0c4dc('0x29')]=function(_0x51e5dc,_0x571d81){const _0xbc68d0=_0xb0c4dc;let _0x3fe400={};const _0x3042e2={},_0x44a9a2={'count':0x0,'rows':[]},_0x57323e=_[_0xbc68d0('0x24')](db['JscriptySessionReport'][_0xbc68d0('0x11')],function(_0x569af7){const _0x1e490d=_0xbc68d0;return{'name':_0x569af7[_0x1e490d('0x1e')],'type':_0x569af7['type']['key']};});_0x3042e2[_0xbc68d0('0x22')]=_[_0xbc68d0('0x24')](_0x57323e,'name'),_0x3042e2[_0xbc68d0('0xe')]=_[_0xbc68d0('0x14')](_0x51e5dc[_0xbc68d0('0xe')]),_0x3042e2[_0xbc68d0('0x13')]=_[_0xbc68d0('0x16')](_0x3042e2['model'],_0x3042e2[_0xbc68d0('0xe')]),_0x3fe400[_0xbc68d0('0x12')]=_['intersection'](_0x3042e2[_0xbc68d0('0x22')],qs[_0xbc68d0('0x18')](_0x51e5dc['query'][_0xbc68d0('0x18')])),_0x3fe400[_0xbc68d0('0x12')]=_0x3fe400['attributes'][_0xbc68d0('0x32')]?_0x3fe400[_0xbc68d0('0x12')]:_0x3042e2[_0xbc68d0('0x22')];typeof _0x51e5dc['query'][_0xbc68d0('0x0')]===_0xbc68d0('0x21')&&(_0x3fe400[_0xbc68d0('0x2')]=qs['limit'](_0x51e5dc[_0xbc68d0('0xe')]['limit']),_0x3fe400[_0xbc68d0('0xa')]=qs[_0xbc68d0('0xa')](_0x51e5dc['query']['offset']));_0x3fe400[_0xbc68d0('0x34')]=qs[_0xbc68d0('0x33')](_0x51e5dc[_0xbc68d0('0xe')][_0xbc68d0('0x33')]),_0x3fe400[_0xbc68d0('0x10')]=qs[_0xbc68d0('0x13')](_[_0xbc68d0('0x6')](_0x51e5dc['query'],_0x3042e2['filters']),_0x57323e);_0x51e5dc[_0xbc68d0('0xe')][_0xbc68d0('0x2b')]&&(_0x3fe400[_0xbc68d0('0x10')]=_[_0xbc68d0('0x20')](_0x3fe400[_0xbc68d0('0x10')],{[Op['or']]:_[_0xbc68d0('0x24')](_0x57323e,function(_0x277365){const _0x34cd7a=_0xbc68d0;if(_0x277365[_0x34cd7a('0x35')]!==_0x34cd7a('0x7')){const _0x28eefa={};return _0x28eefa[_0x277365['name']]={[Op[_0x34cd7a('0x8')]]:'%'+_0x51e5dc[_0x34cd7a('0xe')][_0x34cd7a('0x2b')]+'%'},_0x28eefa;}})}));_0x3fe400=_['merge']({},_0x3fe400,_0x51e5dc['options']);const _0x18476c={'where':_0x3fe400[_0xbc68d0('0x10')]};return db['JscriptySessionReport']['count'](_0x18476c)[_0xbc68d0('0x1f')](function(_0x2fb173){const _0x3888b7=_0xbc68d0;return _0x44a9a2['count']=_0x2fb173,_0x51e5dc[_0x3888b7('0xe')][_0x3888b7('0x28')]&&(_0x3fe400['include']=[{'all':!![]}]),db[_0x3888b7('0x1c')][_0x3888b7('0x2d')](_0x3fe400);})['then'](function(_0x19fc99){const _0x77f8fa=_0xbc68d0;return _0x44a9a2[_0x77f8fa('0x23')]=_0x19fc99,_0x44a9a2;})[_0xbc68d0('0x1f')](respondWithFilteredResult(_0x571d81,_0x3fe400))[_0xbc68d0('0x31')](handleError(_0x571d81,null));},exports[_0xb0c4dc('0x5')]=function(_0x44615a,_0x189082){const _0x195ef6=_0xb0c4dc;let _0xc9f573={'raw':!![],'where':{'id':_0x44615a['params']['id']}};const _0x10d3a2={};return _0x10d3a2[_0x195ef6('0x22')]=_[_0x195ef6('0x14')](db[_0x195ef6('0x1c')][_0x195ef6('0x11')]),_0x10d3a2[_0x195ef6('0xe')]=_[_0x195ef6('0x14')](_0x44615a[_0x195ef6('0xe')]),_0x10d3a2[_0x195ef6('0x13')]=_[_0x195ef6('0x16')](_0x10d3a2[_0x195ef6('0x22')],_0x10d3a2[_0x195ef6('0xe')]),_0xc9f573[_0x195ef6('0x12')]=_[_0x195ef6('0x16')](_0x10d3a2[_0x195ef6('0x22')],qs['fields'](_0x44615a[_0x195ef6('0xe')][_0x195ef6('0x18')])),_0xc9f573[_0x195ef6('0x12')]=_0xc9f573['attributes']['length']?_0xc9f573[_0x195ef6('0x12')]:_0x10d3a2['model'],_0x44615a[_0x195ef6('0xe')][_0x195ef6('0x28')]&&(_0xc9f573[_0x195ef6('0x3')]=[{'all':!![]}]),_0xc9f573=_[_0x195ef6('0x20')]({},_0xc9f573,_0x44615a[_0x195ef6('0x4')]),db[_0x195ef6('0x1c')][_0x195ef6('0xb')](_0xc9f573)[_0x195ef6('0x1f')](handleEntityNotFound(_0x189082,null))['then'](respondWithResult(_0x189082,null))[_0x195ef6('0x31')](handleError(_0x189082,null));},exports[_0xb0c4dc('0x26')]=function(_0x803ef6,_0x213e7c){const _0x2ce555=_0xb0c4dc;return db[_0x2ce555('0x1c')][_0x2ce555('0x26')](_0x803ef6['body'],{})[_0x2ce555('0x1f')](respondWithResult(_0x213e7c,0xc9))[_0x2ce555('0x31')](handleError(_0x213e7c,null));},exports[_0xb0c4dc('0x25')]=function(_0x59c63c,_0x4c7cad){const _0x1c92ab=_0xb0c4dc;return _0x59c63c[_0x1c92ab('0x1b')]['id']&&delete _0x59c63c[_0x1c92ab('0x1b')]['id'],db[_0x1c92ab('0x1c')][_0x1c92ab('0xb')]({'where':{'id':_0x59c63c[_0x1c92ab('0xd')]['id']}})[_0x1c92ab('0x1f')](handleEntityNotFound(_0x4c7cad,null))['then'](saveUpdates(_0x59c63c[_0x1c92ab('0x1b')],null))[_0x1c92ab('0x1f')](respondWithResult(_0x4c7cad,null))[_0x1c92ab('0x31')](handleError(_0x4c7cad,null));},exports['destroy']=function(_0x382e72,_0x13279b){const _0x10399a=_0xb0c4dc;return db['JscriptySessionReport'][_0x10399a('0xb')]({'where':{'id':_0x382e72[_0x10399a('0xd')]['id']}})[_0x10399a('0x1f')](handleEntityNotFound(_0x13279b,null))[_0x10399a('0x1f')](removeEntity(_0x13279b,null))[_0x10399a('0x31')](handleError(_0x13279b,null));},exports[_0xb0c4dc('0xc')]=function(_0x5d9440,_0x395852){const _0x86f876=_0xb0c4dc;return db[_0x86f876('0x1c')][_0x86f876('0xc')]()[_0x86f876('0x1f')](respondWithResult(_0x395852,null))[_0x86f876('0x31')](handleError(_0x395852,null));},exports[_0xb0c4dc('0x1d')]=function(_0x435abd,_0x102b4a){const _0x6f0b00=_0xb0c4dc;let _0x3e915b={'raw':!![],'where':{}};const _0x4a090c={},_0x373f48={'count':0x0,'rows':[]};return db['JscriptySessionReport'][_0x6f0b00('0xb')]({'where':{'id':_0x435abd['params']['id']}})[_0x6f0b00('0x1f')](handleEntityNotFound(_0x102b4a,null))['then'](function(_0x363b55){const _0x384e78=_0x6f0b00;if(_0x363b55)return _0x4a090c[_0x384e78('0x22')]=_[_0x384e78('0x14')](db['JscriptyQuestionReport'][_0x384e78('0x11')]),_0x4a090c[_0x384e78('0xe')]=_[_0x384e78('0x14')](_0x435abd[_0x384e78('0xe')]),_0x4a090c[_0x384e78('0x13')]=_['intersection'](_0x4a090c[_0x384e78('0x22')],_0x4a090c[_0x384e78('0xe')]),_0x3e915b[_0x384e78('0x12')]=_[_0x384e78('0x16')](_0x4a090c['model'],qs[_0x384e78('0x18')](_0x435abd[_0x384e78('0xe')][_0x384e78('0x18')])),_0x3e915b[_0x384e78('0x12')]=_0x3e915b['attributes'][_0x384e78('0x32')]?_0x3e915b[_0x384e78('0x12')]:_0x4a090c['model'],typeof _0x435abd[_0x384e78('0xe')][_0x384e78('0x0')]===_0x384e78('0x21')&&(_0x3e915b[_0x384e78('0x2')]=qs[_0x384e78('0x2')](_0x435abd[_0x384e78('0xe')][_0x384e78('0x2')]),_0x3e915b[_0x384e78('0xa')]=qs[_0x384e78('0xa')](_0x435abd[_0x384e78('0xe')]['offset'])),_0x3e915b[_0x384e78('0x34')]=qs['sort'](_0x435abd[_0x384e78('0xe')][_0x384e78('0x33')]),_0x3e915b['where']=qs[_0x384e78('0x13')](_[_0x384e78('0x6')](_0x435abd['query'],_0x4a090c['filters'])),_0x3e915b[_0x384e78('0x10')][_0x384e78('0x2f')]=_0x363b55['id'],_0x435abd[_0x384e78('0xe')]['filter']&&(_0x3e915b[_0x384e78('0x10')]=_[_0x384e78('0x20')](_0x3e915b['where'],{[Op['or']]:_[_0x384e78('0x24')](_0x3e915b[_0x384e78('0x12')],function(_0x35304b){const _0x111f83=_0x384e78,_0x2a7f6f={};return _0x2a7f6f[_0x35304b]={[Op[_0x111f83('0x8')]]:'%'+_0x435abd[_0x111f83('0xe')][_0x111f83('0x2b')]+'%'},_0x2a7f6f;})})),_0x3e915b=_[_0x384e78('0x20')]({},_0x3e915b,_0x435abd['options']),db[_0x384e78('0x27')][_0x384e78('0x19')]({'where':_0x3e915b[_0x384e78('0x10')]})[_0x384e78('0x1f')](function(_0x1a17bc){const _0x163aeb=_0x384e78;return _0x373f48[_0x163aeb('0x19')]=_0x1a17bc,_0x435abd[_0x163aeb('0xe')][_0x163aeb('0x28')]&&(_0x3e915b[_0x163aeb('0x3')]=[{'all':!![]}]),db[_0x163aeb('0x27')][_0x163aeb('0x2d')](_0x3e915b);})[_0x384e78('0x1f')](function(_0x237984){const _0x58efe8=_0x384e78;return _0x373f48[_0x58efe8('0x23')]=_0x237984,_0x373f48;});})['then'](respondWithFilteredResult(_0x102b4a,_0x3e915b))[_0x6f0b00('0x31')](handleError(_0x102b4a,null));}; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.model.js b/server/api/jscriptySessionReport/jscriptySessionReport.model.js index aa442c2..0cfa479 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.model.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.model.js @@ -1 +1 @@ -const a387_0x22a4=['exports','report_jscripty_sessions','./jscriptySessionReport.attributes'];(function(_0x4ce1fa,_0x22a485){const _0x392996=function(_0x55dd45){while(--_0x55dd45){_0x4ce1fa['push'](_0x4ce1fa['shift']());}};_0x392996(++_0x22a485);}(a387_0x22a4,0x19b));const a387_0x3929=function(_0x4ce1fa,_0x22a485){_0x4ce1fa=_0x4ce1fa-0x0;let _0x392996=a387_0x22a4[_0x4ce1fa];return _0x392996;};const _0x461905=a387_0x3929;'use strict';const attributes=require(_0x461905('0x2'));module[_0x461905('0x0')]=function(_0x55dd45){const _0x45b48e=_0x461905,_0x1f25d1=_0x55dd45['define']('JscriptySessionReport',attributes,{'tableName':_0x45b48e('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1f25d1;}; \ No newline at end of file +const a387_0x31c9=['JscriptySessionReport','exports','./jscriptySessionReport.attributes','report_jscripty_sessions'];(function(_0x33ed9f,_0x31c942){const _0x4d9f77=function(_0x5a33fb){while(--_0x5a33fb){_0x33ed9f['push'](_0x33ed9f['shift']());}};_0x4d9f77(++_0x31c942);}(a387_0x31c9,0x164));const a387_0x4d9f=function(_0x33ed9f,_0x31c942){_0x33ed9f=_0x33ed9f-0x0;let _0x4d9f77=a387_0x31c9[_0x33ed9f];return _0x4d9f77;};const _0x30c29d=a387_0x4d9f;'use strict';const attributes=require(_0x30c29d('0x2'));module[_0x30c29d('0x1')]=function(_0x5a33fb){const _0x3dbcd0=_0x30c29d,_0x1c4870=_0x5a33fb['define'](_0x3dbcd0('0x0'),attributes,{'tableName':_0x3dbcd0('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1c4870;}; \ No newline at end of file diff --git a/server/api/license/index.js b/server/api/license/index.js index 20306eb..870384a 100644 --- a/server/api/license/index.js +++ b/server/api/license/index.js @@ -1 +1 @@ -const a388_0x1637=['get','index','exports','/:id','update','./license.controller','Router','put','express','isAuthenticated'];(function(_0x31f3dc,_0x163783){const _0x158b35=function(_0x178558){while(--_0x178558){_0x31f3dc['push'](_0x31f3dc['shift']());}};_0x158b35(++_0x163783);}(a388_0x1637,0x16f));const a388_0x158b=function(_0x31f3dc,_0x163783){_0x31f3dc=_0x31f3dc-0x0;let _0x158b35=a388_0x1637[_0x31f3dc];return _0x158b35;};const _0x537d30=a388_0x158b;'use strict';const express=require(_0x537d30('0x1')),router=express[_0x537d30('0x9')](),auth=require('../../components/auth/service'),controller=require(_0x537d30('0x8'));router[_0x537d30('0x3')]('/',controller[_0x537d30('0x4')]),router[_0x537d30('0x0')](_0x537d30('0x6'),auth[_0x537d30('0x2')](),controller[_0x537d30('0x7')]),module[_0x537d30('0x5')]=router; \ No newline at end of file +const a388_0x3f8d=['get','Router','express','exports','index','isAuthenticated','./license.controller','update','../../components/auth/service'];(function(_0x4e7ed0,_0x3f8d62){const _0x2e01f2=function(_0x19c627){while(--_0x19c627){_0x4e7ed0['push'](_0x4e7ed0['shift']());}};_0x2e01f2(++_0x3f8d62);}(a388_0x3f8d,0x1b4));const a388_0x2e01=function(_0x4e7ed0,_0x3f8d62){_0x4e7ed0=_0x4e7ed0-0x0;let _0x2e01f2=a388_0x3f8d[_0x4e7ed0];return _0x2e01f2;};const _0x3faf03=a388_0x2e01;'use strict';const express=require(_0x3faf03('0x7')),router=express[_0x3faf03('0x6')](),auth=require(_0x3faf03('0x4')),controller=require(_0x3faf03('0x2'));router[_0x3faf03('0x5')]('/',controller[_0x3faf03('0x0')]),router['put']('/:id',auth[_0x3faf03('0x1')](),controller[_0x3faf03('0x3')]),module[_0x3faf03('0x8')]=router; \ No newline at end of file diff --git a/server/api/license/license.attributes.js b/server/api/license/license.attributes.js index 7243aca..61367c0 100644 --- a/server/api/license/license.attributes.js +++ b/server/api/license/license.attributes.js @@ -1 +1 @@ -const a389_0x4c8a=['STRING','TEXT','INTEGER','sequelize','exports'];(function(_0x502d7c,_0x4c8a8d){const _0x5e88c2=function(_0x377f41){while(--_0x377f41){_0x502d7c['push'](_0x502d7c['shift']());}};_0x5e88c2(++_0x4c8a8d);}(a389_0x4c8a,0x68));const a389_0x5e88=function(_0x502d7c,_0x4c8a8d){_0x502d7c=_0x502d7c-0x0;let _0x5e88c2=a389_0x4c8a[_0x502d7c];return _0x5e88c2;};const _0x417711=a389_0x5e88;'use strict';const Sequelize=require(_0x417711('0x4'));module[_0x417711('0x0')]={'license':{'type':Sequelize[_0x417711('0x2')]},'data1':{'type':Sequelize[_0x417711('0x1')]},'data2':{'type':Sequelize['STRING']},'chatLicenseExceeded':{'type':Sequelize[_0x417711('0x3')],'defaultValue':0x0}}; \ No newline at end of file +const a389_0x7812=['TEXT','exports','STRING','INTEGER','sequelize'];(function(_0x256742,_0x781223){const _0x24d7f9=function(_0x20d2ea){while(--_0x20d2ea){_0x256742['push'](_0x256742['shift']());}};_0x24d7f9(++_0x781223);}(a389_0x7812,0x15e));const a389_0x24d7=function(_0x256742,_0x781223){_0x256742=_0x256742-0x0;let _0x24d7f9=a389_0x7812[_0x256742];return _0x24d7f9;};const _0x1c35aa=a389_0x24d7;'use strict';const Sequelize=require(_0x1c35aa('0x4'));module[_0x1c35aa('0x1')]={'license':{'type':Sequelize[_0x1c35aa('0x0')]},'data1':{'type':Sequelize[_0x1c35aa('0x2')]},'data2':{'type':Sequelize[_0x1c35aa('0x2')]},'chatLicenseExceeded':{'type':Sequelize[_0x1c35aa('0x3')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/license/license.controller.js b/server/api/license/license.controller.js index 40ef177..2b915b2 100644 --- a/server/api/license/license.controller.js +++ b/server/api/license/license.controller.js @@ -1 +1 @@ -const a390_0x5ab3=['model','body','catch','stack','intersection','options','length','update','json','get','send','params','keys','name','checkLicense','License','lodash','fields','sendStatus','../../config/license/util','demo','filters','attributes','query','merge','getLicense','then'];(function(_0x48a5f5,_0x5ab35a){const _0x3bd168=function(_0x3115ba){while(--_0x3115ba){_0x48a5f5['push'](_0x48a5f5['shift']());}};_0x3bd168(++_0x5ab35a);}(a390_0x5ab3,0x1ab));const a390_0x3bd1=function(_0x48a5f5,_0x5ab35a){_0x48a5f5=_0x48a5f5-0x0;let _0x3bd168=a390_0x5ab3[_0x48a5f5];return _0x3bd168;};const _0xec08a6=a390_0x3bd1;'use strict';const _=require(_0xec08a6('0x15')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'];function respondWithResult(_0x3115ba,_0xd5fd73){return _0xd5fd73=_0xd5fd73||0xc8,function(_0x54ab96){const _0x119e89=a390_0x3bd1;if(_0x54ab96)return _0x3115ba['status'](_0xd5fd73)[_0x119e89('0xd')](_0x54ab96);};}function saveUpdates(_0x5bc030){return function(_0x30464d){const _0x211ca5=a390_0x3bd1;if(_0x30464d)return _0x30464d[_0x211ca5('0xc')](_0x5bc030)['then'](function(_0x52ac87){return _0x52ac87;});return null;};}function handleEntityNotFound(_0x5d9e05){return function(_0x1dd53d){const _0x29cc8b=a390_0x3bd1;return!_0x1dd53d&&_0x5d9e05[_0x29cc8b('0x17')](0x194),_0x1dd53d;};}function handleError(_0x2f0151,_0x55b3d5){return _0x55b3d5=_0x55b3d5||0x1f4,function(_0x1cfdb0){const _0xacd8d4=a390_0x3bd1;logger['error'](_0x1cfdb0[_0xacd8d4('0x8')]),_0x1cfdb0[_0xacd8d4('0x12')]&&delete _0x1cfdb0['name'],_0x2f0151['status'](_0x55b3d5)[_0xacd8d4('0xf')](_0x1cfdb0);};}const utilLicense=require(_0xec08a6('0x18'));exports['index']=function(_0x5263cd,_0x168fa9){const _0x181a86=_0xec08a6;let _0x12f952={'raw':!![],'where':{'id':0x1}};const _0x43f003={};return _0x43f003[_0x181a86('0x5')]=_['keys'](db[_0x181a86('0x14')]['rawAttributes']),_0x43f003[_0x181a86('0x1')]=_[_0x181a86('0x11')](_0x5263cd['query']),_0x43f003[_0x181a86('0x1a')]=_[_0x181a86('0x9')](_0x43f003[_0x181a86('0x5')],_0x43f003[_0x181a86('0x1')]),_0x12f952[_0x181a86('0x0')]=_['intersection'](_0x43f003[_0x181a86('0x5')],qs[_0x181a86('0x16')](_0x5263cd[_0x181a86('0x1')][_0x181a86('0x16')])),_0x12f952[_0x181a86('0x0')]=_0x12f952[_0x181a86('0x0')][_0x181a86('0xb')]?_0x12f952[_0x181a86('0x0')]:_0x43f003[_0x181a86('0x5')],_0x12f952=_[_0x181a86('0x2')]({},_0x12f952,_0x5263cd[_0x181a86('0xa')]),utilLicense[_0x181a86('0x3')](_0x12f952)[_0x181a86('0x4')](respondWithResult(_0x168fa9,null))['catch'](handleError(_0x168fa9,null));},exports[_0xec08a6('0xc')]=function(_0x4937a5,_0x5810fd){const _0x56fb52=_0xec08a6;return _0x4937a5['body']['id']&&delete _0x4937a5[_0x56fb52('0x6')]['id'],db['License']['findOne']({'where':{'id':_0x4937a5[_0x56fb52('0x10')]['id']}})[_0x56fb52('0x4')](handleEntityNotFound(_0x5810fd,null))[_0x56fb52('0x4')](function(_0x542654){const _0x57ef33=_0x56fb52,_0x2933a6=_0x542654[_0x57ef33('0xe')]({'plain':!![]});return utilLicense[_0x57ef33('0x13')](_0x2933a6,_0x4937a5[_0x57ef33('0x6')]['key']);})[_0x56fb52('0x4')](function(_0x4ece53){const _0x32dbbc=_0x56fb52;if(!_0x4ece53[_0x32dbbc('0x19')])return saveUpdates(_0x4937a5[_0x32dbbc('0x6')],null);return _0x4ece53;})['then'](respondWithResult(_0x5810fd,null))[_0x56fb52('0x7')](handleError(_0x5810fd,null));}; \ No newline at end of file +const a390_0x5a51=['send','findOne','update','error','json','attributes','model','intersection','License','checkLicense','../../config/license/util','keys','getLicense','name','fields','../../config/logger','status','then','../../mysqldb','rawAttributes','get','body','demo','options','api','params','catch','query','lodash','merge'];(function(_0x31dacd,_0x5a51e3){const _0x1efde9=function(_0x58e0f7){while(--_0x58e0f7){_0x31dacd['push'](_0x31dacd['shift']());}};_0x1efde9(++_0x5a51e3);}(a390_0x5a51,0x1b8));const a390_0x1efd=function(_0x31dacd,_0x5a51e3){_0x31dacd=_0x31dacd-0x0;let _0x1efde9=a390_0x5a51[_0x31dacd];return _0x1efde9;};const _0x3109c2=a390_0x1efd;'use strict';const _=require(_0x3109c2('0x8')),qs=require('../../components/parsers/qs'),logger=require(_0x3109c2('0x19'))(_0x3109c2('0x4')),db=require(_0x3109c2('0x1c'))['db'];function respondWithResult(_0x58e0f7,_0x47bfb0){return _0x47bfb0=_0x47bfb0||0xc8,function(_0x356d34){const _0x58d06e=a390_0x1efd;if(_0x356d34)return _0x58e0f7[_0x58d06e('0x1a')](_0x47bfb0)[_0x58d06e('0xe')](_0x356d34);};}function saveUpdates(_0x55b024){return function(_0x2db77c){const _0x28d4b0=a390_0x1efd;if(_0x2db77c)return _0x2db77c[_0x28d4b0('0xc')](_0x55b024)[_0x28d4b0('0x1b')](function(_0x37b2e2){return _0x37b2e2;});return null;};}function handleEntityNotFound(_0x988061){return function(_0x519d0e){return!_0x519d0e&&_0x988061['sendStatus'](0x194),_0x519d0e;};}function handleError(_0x100739,_0x546455){return _0x546455=_0x546455||0x1f4,function(_0x35c262){const _0x2a5aa1=a390_0x1efd;logger[_0x2a5aa1('0xd')](_0x35c262['stack']),_0x35c262[_0x2a5aa1('0x17')]&&delete _0x35c262[_0x2a5aa1('0x17')],_0x100739[_0x2a5aa1('0x1a')](_0x546455)[_0x2a5aa1('0xa')](_0x35c262);};}const utilLicense=require(_0x3109c2('0x14'));exports['index']=function(_0x4395f9,_0x14f8d7){const _0x50df33=_0x3109c2;let _0x1849fd={'raw':!![],'where':{'id':0x1}};const _0x45b0c4={};return _0x45b0c4[_0x50df33('0x10')]=_['keys'](db[_0x50df33('0x12')][_0x50df33('0x1d')]),_0x45b0c4[_0x50df33('0x7')]=_[_0x50df33('0x15')](_0x4395f9[_0x50df33('0x7')]),_0x45b0c4['filters']=_[_0x50df33('0x11')](_0x45b0c4[_0x50df33('0x10')],_0x45b0c4[_0x50df33('0x7')]),_0x1849fd[_0x50df33('0xf')]=_[_0x50df33('0x11')](_0x45b0c4[_0x50df33('0x10')],qs[_0x50df33('0x18')](_0x4395f9[_0x50df33('0x7')][_0x50df33('0x18')])),_0x1849fd[_0x50df33('0xf')]=_0x1849fd['attributes']['length']?_0x1849fd['attributes']:_0x45b0c4[_0x50df33('0x10')],_0x1849fd=_[_0x50df33('0x9')]({},_0x1849fd,_0x4395f9[_0x50df33('0x3')]),utilLicense[_0x50df33('0x16')](_0x1849fd)[_0x50df33('0x1b')](respondWithResult(_0x14f8d7,null))[_0x50df33('0x6')](handleError(_0x14f8d7,null));},exports['update']=function(_0x3cebdc,_0x568673){const _0x2b87d4=_0x3109c2;return _0x3cebdc[_0x2b87d4('0x1')]['id']&&delete _0x3cebdc[_0x2b87d4('0x1')]['id'],db[_0x2b87d4('0x12')][_0x2b87d4('0xb')]({'where':{'id':_0x3cebdc[_0x2b87d4('0x5')]['id']}})[_0x2b87d4('0x1b')](handleEntityNotFound(_0x568673,null))[_0x2b87d4('0x1b')](function(_0x534536){const _0x1327cb=_0x2b87d4,_0x5864f3=_0x534536[_0x1327cb('0x0')]({'plain':!![]});return utilLicense[_0x1327cb('0x13')](_0x5864f3,_0x3cebdc[_0x1327cb('0x1')]['key']);})['then'](function(_0x556da9){const _0xec4fa=_0x2b87d4;if(!_0x556da9[_0xec4fa('0x2')])return saveUpdates(_0x3cebdc[_0xec4fa('0x1')],null);return _0x556da9;})[_0x2b87d4('0x1b')](respondWithResult(_0x568673,null))[_0x2b87d4('0x6')](handleError(_0x568673,null));}; \ No newline at end of file diff --git a/server/api/license/license.model.js b/server/api/license/license.model.js index 0897f77..da28a4f 100644 --- a/server/api/license/license.model.js +++ b/server/api/license/license.model.js @@ -1 +1 @@ -const a391_0x5de5=['./license.attributes','exports','license','License','define'];(function(_0x38722e,_0x5de5fb){const _0x4bf5d8=function(_0x199f86){while(--_0x199f86){_0x38722e['push'](_0x38722e['shift']());}};_0x4bf5d8(++_0x5de5fb);}(a391_0x5de5,0x15d));const a391_0x4bf5=function(_0x38722e,_0x5de5fb){_0x38722e=_0x38722e-0x0;let _0x4bf5d8=a391_0x5de5[_0x38722e];return _0x4bf5d8;};const _0x522703=a391_0x4bf5;'use strict';const attributes=require(_0x522703('0x1'));module[_0x522703('0x2')]=function(_0x199f86){const _0x4b73ae=_0x522703,_0x4c81e6=_0x199f86[_0x4b73ae('0x0')](_0x4b73ae('0x4'),attributes,{'tableName':_0x4b73ae('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c81e6;}; \ No newline at end of file +const a391_0x44b2=['./license.attributes','license','License'];(function(_0x2b33fc,_0x44b2ba){const _0x311239=function(_0x3109cc){while(--_0x3109cc){_0x2b33fc['push'](_0x2b33fc['shift']());}};_0x311239(++_0x44b2ba);}(a391_0x44b2,0xb0));const a391_0x3112=function(_0x2b33fc,_0x44b2ba){_0x2b33fc=_0x2b33fc-0x0;let _0x311239=a391_0x44b2[_0x2b33fc];return _0x311239;};const _0x3bdc8f=a391_0x3112;'use strict';const attributes=require(_0x3bdc8f('0x1'));module['exports']=function(_0x3109cc){const _0xfa156f=_0x3bdc8f,_0x48a723=_0x3109cc['define'](_0xfa156f('0x0'),attributes,{'tableName':_0xfa156f('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x48a723;}; \ No newline at end of file diff --git a/server/api/mailAccount/index.js b/server/api/mailAccount/index.js index 1e28abd..21ca180 100644 --- a/server/api/mailAccount/index.js +++ b/server/api/mailAccount/index.js @@ -1 +1 @@ -const a392_0x2335=['exports','addApplications','removeDispositions','getApplications','describe','removeImap','/:id/applications','getMessages','verifySmtp','/:id/messages','addAnswer','express','/:id/out_servers','getAgents','destroy','removeAnswers','getDispositions','get','update','removeAgents','addSmtp','Router','show','addDisposition','/:id/dispositions','removeSmtp','addAgents','/:id/verify','getInteractions','post','/describe','/:id/users','index','put','isAuthenticated','/:id','/:id/canned_answers','/:id/interactions','getSmtp','delete','/:id/in_servers','./mailAccount.controller','addImap'];(function(_0x15e266,_0x23358f){const _0x378352=function(_0x1ef8de){while(--_0x1ef8de){_0x15e266['push'](_0x15e266['shift']());}};_0x378352(++_0x23358f);}(a392_0x2335,0x148));const a392_0x3783=function(_0x15e266,_0x23358f){_0x15e266=_0x15e266-0x0;let _0x378352=a392_0x2335[_0x15e266];return _0x378352;};const _0x273d4a=a392_0x3783;'use strict';const express=require(_0x273d4a('0x1b')),router=express[_0x273d4a('0x25')](),auth=require('../../components/auth/service'),controller=require(_0x273d4a('0xe'));router[_0x273d4a('0x21')]('/',auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x5')]),router[_0x273d4a('0x21')](_0x273d4a('0x3'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x14')]),router[_0x273d4a('0x21')](_0x273d4a('0x8'),auth['isAuthenticated'](),controller[_0x273d4a('0x26')]),router[_0x273d4a('0x21')](_0x273d4a('0x28'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x20')]),router[_0x273d4a('0x21')]('/:id/canned_answers',auth[_0x273d4a('0x7')](),controller['getAnswers']),router[_0x273d4a('0x21')](_0x273d4a('0xd'),auth[_0x273d4a('0x7')](),controller['getImap']),router[_0x273d4a('0x21')]('/:id/out_servers',auth[_0x273d4a('0x7')](),controller[_0x273d4a('0xb')]),router[_0x273d4a('0x21')](_0x273d4a('0xa'),auth['isAuthenticated'](),controller[_0x273d4a('0x1')]),router['get'](_0x273d4a('0x16'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x13')]),router[_0x273d4a('0x21')](_0x273d4a('0x19'),auth['isAuthenticated'](),controller[_0x273d4a('0x17')]),router[_0x273d4a('0x21')](_0x273d4a('0x0'),auth['isAuthenticated'](),controller[_0x273d4a('0x18')]),router['get']('/:id/users',auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x1d')]),router[_0x273d4a('0x2')]('/:id/dispositions',auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x27')]),router[_0x273d4a('0x2')](_0x273d4a('0x9'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x1a')]),router[_0x273d4a('0x2')]('/',auth[_0x273d4a('0x7')](),controller['create']),router[_0x273d4a('0x2')](_0x273d4a('0xd'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0xf')]),router[_0x273d4a('0x2')](_0x273d4a('0x1c'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x24')]),router[_0x273d4a('0x2')]('/:id/interactions',auth['isAuthenticated'](),controller['addInteraction']),router[_0x273d4a('0x2')](_0x273d4a('0x16'),auth['isAuthenticated'](),controller[_0x273d4a('0x11')]),router[_0x273d4a('0x2')]('/:id/send',auth['isAuthenticated'](),controller['send']),router[_0x273d4a('0x2')]('/:id/users',auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x2a')]),router[_0x273d4a('0x6')](_0x273d4a('0x8'),auth['isAuthenticated'](),controller[_0x273d4a('0x22')]),router[_0x273d4a('0xc')](_0x273d4a('0x28'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x12')]),router[_0x273d4a('0xc')](_0x273d4a('0x9'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x1f')]),router['delete'](_0x273d4a('0xd'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x15')]),router[_0x273d4a('0xc')](_0x273d4a('0x1c'),auth['isAuthenticated'](),controller[_0x273d4a('0x29')]),router[_0x273d4a('0xc')](_0x273d4a('0x8'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x1e')]),router[_0x273d4a('0xc')](_0x273d4a('0x4'),auth[_0x273d4a('0x7')](),controller[_0x273d4a('0x23')]),module[_0x273d4a('0x10')]=router; \ No newline at end of file +const a392_0x332d=['get','/:id/canned_answers','getApplications','post','send','/:id/applications','/:id/dispositions','removeImap','removeAgents','/describe','/:id/messages','addDisposition','delete','/:id/out_servers','getAnswers','/:id/in_servers','addApplications','getImap','express','getDispositions','Router','isAuthenticated','/:id/verify','verifySmtp','removeDispositions','getSmtp','/:id','/:id/users','index','show','addAnswer','./mailAccount.controller','addAgents','../../components/auth/service','removeAnswers','getAgents','update','describe'];(function(_0x1e96a5,_0x332d52){const _0x5c4de0=function(_0xe2db21){while(--_0xe2db21){_0x1e96a5['push'](_0x1e96a5['shift']());}};_0x5c4de0(++_0x332d52);}(a392_0x332d,0x1a1));const a392_0x5c4d=function(_0x1e96a5,_0x332d52){_0x1e96a5=_0x1e96a5-0x0;let _0x5c4de0=a392_0x332d[_0x1e96a5];return _0x5c4de0;};const _0x5d6acb=a392_0x5c4d;'use strict';const express=require(_0x5d6acb('0x13')),router=express[_0x5d6acb('0x15')](),auth=require(_0x5d6acb('0x22')),controller=require(_0x5d6acb('0x20'));router[_0x5d6acb('0x1')]('/',auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x1d')]),router[_0x5d6acb('0x1')](_0x5d6acb('0xa'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x0')]),router['get'](_0x5d6acb('0x1b'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x1e')]),router[_0x5d6acb('0x1')](_0x5d6acb('0x7'),auth['isAuthenticated'](),controller[_0x5d6acb('0x14')]),router[_0x5d6acb('0x1')](_0x5d6acb('0x2'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0xf')]),router[_0x5d6acb('0x1')]('/:id/in_servers',auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x12')]),router[_0x5d6acb('0x1')](_0x5d6acb('0xe'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x1a')]),router[_0x5d6acb('0x1')]('/:id/interactions',auth[_0x5d6acb('0x16')](),controller['getInteractions']),router[_0x5d6acb('0x1')](_0x5d6acb('0x6'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x3')]),router[_0x5d6acb('0x1')](_0x5d6acb('0xb'),auth[_0x5d6acb('0x16')](),controller['getMessages']),router[_0x5d6acb('0x1')](_0x5d6acb('0x17'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x18')]),router[_0x5d6acb('0x1')](_0x5d6acb('0x1c'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x24')]),router[_0x5d6acb('0x4')](_0x5d6acb('0x7'),auth['isAuthenticated'](),controller[_0x5d6acb('0xc')]),router[_0x5d6acb('0x4')](_0x5d6acb('0x2'),auth['isAuthenticated'](),controller[_0x5d6acb('0x1f')]),router[_0x5d6acb('0x4')]('/',auth[_0x5d6acb('0x16')](),controller['create']),router[_0x5d6acb('0x4')]('/:id/in_servers',auth[_0x5d6acb('0x16')](),controller['addImap']),router[_0x5d6acb('0x4')](_0x5d6acb('0xe'),auth[_0x5d6acb('0x16')](),controller['addSmtp']),router['post']('/:id/interactions',auth[_0x5d6acb('0x16')](),controller['addInteraction']),router[_0x5d6acb('0x4')](_0x5d6acb('0x6'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x11')]),router[_0x5d6acb('0x4')]('/:id/send',auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x5')]),router['post'](_0x5d6acb('0x1c'),auth['isAuthenticated'](),controller[_0x5d6acb('0x21')]),router['put'](_0x5d6acb('0x1b'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x25')]),router['delete'](_0x5d6acb('0x7'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x19')]),router[_0x5d6acb('0xd')](_0x5d6acb('0x2'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x23')]),router[_0x5d6acb('0xd')](_0x5d6acb('0x10'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x8')]),router[_0x5d6acb('0xd')]('/:id/out_servers',auth[_0x5d6acb('0x16')](),controller['removeSmtp']),router[_0x5d6acb('0xd')](_0x5d6acb('0x1b'),auth[_0x5d6acb('0x16')](),controller['destroy']),router[_0x5d6acb('0xd')](_0x5d6acb('0x1c'),auth[_0x5d6acb('0x16')](),controller[_0x5d6acb('0x9')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.attributes.js b/server/api/mailAccount/mailAccount.attributes.js index 76ce984..3b526ec 100644 --- a/server/api/mailAccount/mailAccount.attributes.js +++ b/server/api/mailAccount/mailAccount.attributes.js @@ -1 +1 @@ -const a393_0x17cc=['mandatoryDisposition','mandatoryDispositionPauseId','TEXT','STRING','UNSIGNED','exports','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}','setDataValue','INTEGER','BOOLEAN'];(function(_0x1ea8f2,_0x17cc6d){const _0x399138=function(_0x37ea08){while(--_0x37ea08){_0x1ea8f2['push'](_0x1ea8f2['shift']());}};_0x399138(++_0x17cc6d);}(a393_0x17cc,0x195));const a393_0x3991=function(_0x1ea8f2,_0x17cc6d){_0x1ea8f2=_0x1ea8f2-0x0;let _0x399138=a393_0x17cc[_0x1ea8f2];return _0x399138;};const _0x1f8910=a393_0x3991;'use strict';const Sequelize=require('sequelize');module[_0x1f8910('0x7')]={'description':{'type':Sequelize[_0x1f8910('0x5')]},'name':{'type':Sequelize[_0x1f8910('0x5')],'allowNull':![]},'service':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'active':{'type':Sequelize[_0x1f8910('0x1')],'defaultValue':!![]},'key':{'type':Sequelize[_0x1f8910('0x5')],'allowNull':![]},'template':{'type':Sequelize[_0x1f8910('0x4')]},'markAsUnread':{'type':Sequelize[_0x1f8910('0x1')],'defaultValue':![]},'fontFamily':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'},'fontSize':{'type':Sequelize[_0x1f8910('0x0')](0x2)[_0x1f8910('0x6')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x1a6a82=_0x1f8910;return _0x1a6a82('0x9');}},'notificationSound':{'type':Sequelize[_0x1f8910('0x1')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x1f8910('0x1')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x1f8910('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x1f8910('0x1')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x1f8910('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x1f8910('0x1')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x1f8910('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x1f8910('0x0')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x1f8910('0x1')],'defaultValue':![],'comment':_0x1f8910('0x8'),'set':function(_0x37ea08){const _0x1cde32=_0x1f8910;if(!_0x37ea08)this[_0x1cde32('0xa')](_0x1cde32('0x3'),null);this['setDataValue'](_0x1cde32('0x2'),_0x37ea08);}}}; \ No newline at end of file +const a393_0x89e7=['TEXT','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','BOOLEAN','Arial,Helvetica,sans-serif','mandatoryDispositionPauseId','setDataValue','mandatoryDisposition','exports','INTEGER','STRING','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}','UNSIGNED','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue'];(function(_0x29adb3,_0x89e74f){const _0x354e85=function(_0x4e49a9){while(--_0x4e49a9){_0x29adb3['push'](_0x29adb3['shift']());}};_0x354e85(++_0x89e74f);}(a393_0x89e7,0xd3));const a393_0x354e=function(_0x29adb3,_0x89e74f){_0x29adb3=_0x29adb3-0x0;let _0x354e85=a393_0x89e7[_0x29adb3];return _0x354e85;};const _0x28f91d=a393_0x354e;'use strict';const Sequelize=require('sequelize');module[_0x28f91d('0x4')]={'description':{'type':Sequelize[_0x28f91d('0x6')]},'name':{'type':Sequelize[_0x28f91d('0x6')],'allowNull':![]},'service':{'type':Sequelize[_0x28f91d('0xc')],'defaultValue':![]},'email':{'type':Sequelize[_0x28f91d('0x6')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize[_0x28f91d('0xc')],'defaultValue':!![]},'key':{'type':Sequelize[_0x28f91d('0x6')],'allowNull':![]},'template':{'type':Sequelize[_0x28f91d('0xa')]},'markAsUnread':{'type':Sequelize[_0x28f91d('0xc')],'defaultValue':![]},'fontFamily':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x28f91d('0x0')},'fontSize':{'type':Sequelize[_0x28f91d('0x5')](0x2)[_0x28f91d('0x8')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x3ac589=_0x28f91d;return _0x3ac589('0x7');}},'notificationSound':{'type':Sequelize[_0x28f91d('0xc')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x28f91d('0xc')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x28f91d('0xc')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x28f91d('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x28f91d('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x28f91d('0x5')],'allowNull':!![],'defaultValue':null,'comment':_0x28f91d('0xb')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x28f91d('0x9'),'set':function(_0x4e49a9){const _0x3cc4d8=_0x28f91d;if(!_0x4e49a9)this[_0x3cc4d8('0x2')](_0x3cc4d8('0x1'),null);this[_0x3cc4d8('0x2')](_0x3cc4d8('0x3'),_0x4e49a9);}}}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.controller.js b/server/api/mailAccount/mailAccount.controller.js index 5a8cd18..8150312 100644 --- a/server/api/mailAccount/mailAccount.controller.js +++ b/server/api/mailAccount/mailAccount.controller.js @@ -1 +1 @@ -const a394_0x563c=['bulkCreate','cservice','create','sequelize','addAnswer','MailInteraction','util','update','rows','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../mysqldb','query','params','attachments','result','index','attach','transaction','ValidationError','includeAll','emit','limit','../../config/environment','message','Disposition','userMailAccount:save','role','MailServerOut','SendMail','../../components/parsers/qs','UserProfileSection','path','host','key','cpassword','client','MailAccountId','CmContact','ids','rawAttributes','../../rediscache','auth','active','server/files/attachments','MailAccount,\x20%s,\x20%s','secure','You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account','verifySmtp','MailServerIn','addDisposition','removeSmtp','Tag','register','map','addInteraction','pick','fields','priority','UserProfileResource','removeAnswers','user','email','request\x20sent','cuser','get','undefined','nolimit','status','autoAssociation','order','Contacts','YYYY-MM-DD\x20HH:mm:ss','findAndCountAll','List','Unable\x20to\x20retrieve\x20the\x20current\x20user','getAgents','then','messageId','gte','isNil','addApplications','../../config/logger','MailAccount','tag','getImap','getApplications','password','findOne','isArray','omit','request','like','from','catch','description','MailAccounts','CmList','count','addAgents','removeDispositions','Pause','destroy','VIRTUAL','sendStatus','MailMessage','error','authentication','port','Messages','split','fullname','body','format','info','model','User','keys','out','Sequelize','./mailAccount.socket','api','MailApplication','removeAgents','Tags','userMailAccount:remove','subject','name','json','ListId','describe','send','%s\x20<%s>','where','intersection','Contact','Interaction','end','internal','$gte','getDispositions','stack','findAll','show','service','getInteractions','mandatoryDispositionPause','http','attributes','root','Imap','join','filters','length','pass','fieldName','CannedAnswer','getSmtp','Smtp','include','merge','List\x20not\x20found','filter','getMessages','sort','Owner','removeImap','addImap','lodash','type','defaults','offset','options'];(function(_0x3d9648,_0x563cfd){const _0x3696ee=function(_0x5e4cbb){while(--_0x5e4cbb){_0x3d9648['push'](_0x3d9648['shift']());}};_0x3696ee(++_0x563cfd);}(a394_0x563c,0x1a5));const a394_0x3696=function(_0x3d9648,_0x563cfd){_0x3d9648=_0x3d9648-0x0;let _0x3696ee=a394_0x563c[_0x3d9648];return _0x3696ee;};const _0x198ae4=a394_0x3696;'use strict';const moment=require('moment'),util=require(_0x198ae4('0x65')),path=require(_0x198ae4('0x7e')),_=require(_0x198ae4('0x5a')),{getSocket}=require(_0x198ae4('0x87')),socket=getSocket(),qs=require(_0x198ae4('0x7c')),logger=require(_0x198ae4('0x4'))(_0x198ae4('0x2b')),config=require(_0x198ae4('0x75')),db=require(_0x198ae4('0x69'))['db'],{Op}=require(_0x198ae4('0x62'));require(_0x198ae4('0x2a'))[_0x198ae4('0x93')](socket);const jayson=require('jayson/promise'),client=jayson[_0x198ae4('0x82')][_0x198ae4('0x45')]({'port':0x232b});function respondWithRpcPromise(_0x5e4cbb,_0x1e4112,_0x3b77f9,_0x300916){return new Promise(function(_0x56af1e,_0x1c29ee){const _0x436ef6=a394_0x3696,_0x458a51=_0x300916||client;return _0x458a51[_0x436ef6('0xd')](_0x5e4cbb,_0x3b77f9)[_0x436ef6('0xab')](function(_0x1f5652){const _0x1cd4b0=_0x436ef6;logger[_0x1cd4b0('0x24')](_0x1cd4b0('0x8b'),_0x1e4112,_0x1cd4b0('0x9d')),logger['debug']('MailAccount,\x20%s,\x20%s,\x20%s',_0x1e4112,'request\x20sent',JSON['stringify'](_0x1f5652));if(_0x1f5652['error']){if(_0x1f5652[_0x1cd4b0('0x1c')]['code']===0x1f4)return logger[_0x1cd4b0('0x1c')]('MailAccount,\x20%s,\x20%s',_0x1e4112,_0x1f5652[_0x1cd4b0('0x1c')]['message']),_0x1c29ee(_0x1f5652[_0x1cd4b0('0x1c')][_0x1cd4b0('0x76')]);return logger[_0x1cd4b0('0x1c')]('MailAccount,\x20%s,\x20%s',_0x1e4112,_0x1f5652[_0x1cd4b0('0x1c')][_0x1cd4b0('0x76')]),_0x56af1e(_0x1f5652[_0x1cd4b0('0x1c')][_0x1cd4b0('0x76')]);}else logger[_0x1cd4b0('0x24')](_0x1cd4b0('0x8b'),_0x1e4112,'request\x20sent'),_0x56af1e(_0x1f5652[_0x1cd4b0('0x6d')]['message']);})[_0x436ef6('0x10')](function(_0x55f05d){const _0x37947b=_0x436ef6;logger[_0x37947b('0x1c')]('MailAccount,\x20%s,\x20%s',_0x1e4112,_0x55f05d),_0x1c29ee(_0x55f05d);});});}function respondWithStatusCode(_0x98f379,_0x327fbc){return _0x327fbc=_0x327fbc||0xcc,function(_0x407dd3){const _0x80db81=a394_0x3696;if(_0x407dd3)return _0x98f379[_0x80db81('0x1a')](_0x327fbc);return _0x98f379[_0x80db81('0xa2')](_0x327fbc)[_0x80db81('0x3b')]();};}function respondWithResult(_0x2bed05,_0x240798){return _0x240798=_0x240798||0xc8,function(_0x266b5d){const _0xbec591=a394_0x3696;if(_0x266b5d)return _0x2bed05[_0xbec591('0xa2')](_0x240798)[_0xbec591('0x32')](_0x266b5d);};}function respondWithFilteredResult(_0x547bf0,_0x1e797c){return function(_0x28f3fc){const _0x1fed9c=a394_0x3696;if(_0x28f3fc){const _0x1a3b55=_0x28f3fc[_0x1fed9c('0x14')],_0x3d0f33=_0x1e797c['offset'];let _0x442e2e=_0x1e797c[_0x1fed9c('0x5d')]+_0x1e797c[_0x1fed9c('0x74')],_0x3e1036;return _0x442e2e>=_0x1a3b55?(_0x442e2e=_0x1a3b55,_0x3e1036=0xc8):_0x3e1036=0xce,_0x547bf0['status'](_0x3e1036),_0x547bf0['set']('Content-Range',_0x3d0f33+'-'+_0x442e2e+'/'+_0x1a3b55)[_0x1fed9c('0x32')](_0x28f3fc);}return null;};}function saveUpdates(_0x57bfba){return function(_0x1a92cb){const _0x33a9d4=a394_0x3696;if(_0x1a92cb)return _0x1a92cb[_0x33a9d4('0x66')](_0x57bfba)[_0x33a9d4('0xab')](function(_0x2b5603){return _0x2b5603;});return null;};}function removeEntity(_0x13af37){return function(_0x417043){const _0x403d95=a394_0x3696;if(_0x417043)return _0x417043[_0x403d95('0x18')]()[_0x403d95('0xab')](function(){const _0x4845cc=_0x403d95,_0xc1f834=_0x417043[_0x4845cc('0x9f')]({'plain':!![]}),_0x5dc618=_0x4845cc('0x12');return db['UserProfileResource'][_0x4845cc('0x18')]({'where':{'type':_0x5dc618,'resourceId':_0xc1f834['id']}})[_0x4845cc('0xab')](function(){return _0x417043;});})['then'](function(){const _0x139e10=_0x403d95;_0x13af37[_0x139e10('0xa2')](0xcc)[_0x139e10('0x3b')]();});};}function handleEntityNotFound(_0x2d4a3a){return function(_0xa21b99){const _0xcdb3cb=a394_0x3696;return!_0xa21b99&&_0x2d4a3a[_0xcdb3cb('0x1a')](0x194),_0xa21b99;};}function handleError(_0x46c321,_0xe3ef39){return _0xe3ef39=_0xe3ef39||0x1f4,function(_0x1807e4){const _0x5667ed=a394_0x3696;logger[_0x5667ed('0x1c')](_0x1807e4[_0x5667ed('0x3f')]),_0x1807e4['name']&&delete _0x1807e4['name'],_0x46c321[_0x5667ed('0xa2')](_0xe3ef39)[_0x5667ed('0x35')](_0x1807e4);};}exports[_0x198ae4('0x6e')]=function(_0x7b9c8d,_0x1d61df){const _0x50c8ba=_0x198ae4;let _0x1f9290={'include':[{'model':db[_0x50c8ba('0x8f')],'as':_0x50c8ba('0x48')},{'model':db[_0x50c8ba('0x7a')],'as':'Smtp'},{'model':db[_0x50c8ba('0x17')],'as':_0x50c8ba('0x44')}]};const _0x38c4ef={},_0x3a66a6={'count':0x0,'rows':[]},_0x4f88ef=_['map'](db[_0x50c8ba('0x5')][_0x50c8ba('0x86')],function(_0x5f371f){const _0xbf963=_0x50c8ba;return{'name':_0x5f371f[_0xbf963('0x4d')],'type':_0x5f371f[_0xbf963('0x5b')][_0xbf963('0x80')]};});_0x38c4ef['model']=_[_0x50c8ba('0x94')](_0x4f88ef,_0x50c8ba('0x31')),_0x38c4ef[_0x50c8ba('0x6a')]=_[_0x50c8ba('0x27')](_0x7b9c8d[_0x50c8ba('0x6a')]),_0x38c4ef[_0x50c8ba('0x4a')]=_[_0x50c8ba('0x38')](_0x38c4ef[_0x50c8ba('0x25')],_0x38c4ef[_0x50c8ba('0x6a')]),_0x1f9290[_0x50c8ba('0x46')]=_[_0x50c8ba('0x38')](_0x38c4ef[_0x50c8ba('0x25')],qs[_0x50c8ba('0x97')](_0x7b9c8d['query'][_0x50c8ba('0x97')])),_0x1f9290[_0x50c8ba('0x46')]=_0x1f9290[_0x50c8ba('0x46')]['length']?_0x1f9290['attributes']:_0x38c4ef[_0x50c8ba('0x25')];typeof _0x7b9c8d[_0x50c8ba('0x6a')]['nolimit']==='undefined'&&(_0x1f9290['limit']=qs['limit'](_0x7b9c8d[_0x50c8ba('0x6a')][_0x50c8ba('0x74')]),_0x1f9290[_0x50c8ba('0x5d')]=qs[_0x50c8ba('0x5d')](_0x7b9c8d[_0x50c8ba('0x6a')]['offset']));_0x1f9290[_0x50c8ba('0xa4')]=qs[_0x50c8ba('0x56')](_0x7b9c8d[_0x50c8ba('0x6a')][_0x50c8ba('0x56')]),_0x1f9290['where']=qs[_0x50c8ba('0x4a')](_['pick'](_0x7b9c8d[_0x50c8ba('0x6a')],_0x38c4ef[_0x50c8ba('0x4a')]),_0x4f88ef);_0x7b9c8d[_0x50c8ba('0x6a')][_0x50c8ba('0x54')]&&(_0x1f9290[_0x50c8ba('0x37')]=_[_0x50c8ba('0x52')](_0x1f9290['where'],{[Op['or']]:_['map'](_0x4f88ef,function(_0x39b1ab){const _0x51d4f8=_0x50c8ba;if(_0x39b1ab[_0x51d4f8('0x5b')]!==_0x51d4f8('0x19')){const _0x4fd86c={};return _0x4fd86c[_0x39b1ab[_0x51d4f8('0x31')]]={[Op[_0x51d4f8('0xe')]]:'%'+_0x7b9c8d[_0x51d4f8('0x6a')][_0x51d4f8('0x54')]+'%'},_0x4fd86c;}})}));_0x1f9290=_[_0x50c8ba('0x52')]({},_0x1f9290,_0x7b9c8d['options']);const _0x2ff9f2={'where':_0x1f9290[_0x50c8ba('0x37')]};return db[_0x50c8ba('0x5')][_0x50c8ba('0x14')](_0x2ff9f2)['then'](function(_0x47f48b){const _0xfcca67=_0x50c8ba;return _0x3a66a6[_0xfcca67('0x14')]=_0x47f48b,_0x7b9c8d[_0xfcca67('0x6a')][_0xfcca67('0x72')]&&(_0x1f9290['include']=[{'all':!![]}]),db[_0xfcca67('0x5')]['findAll'](_0x1f9290);})[_0x50c8ba('0xab')](function(_0x23eb71){return _0x3a66a6['rows']=_0x23eb71,_0x3a66a6;})[_0x50c8ba('0xab')](respondWithFilteredResult(_0x1d61df,_0x1f9290))[_0x50c8ba('0x10')](handleError(_0x1d61df,null));},exports[_0x198ae4('0x41')]=function(_0xadc4a8,_0x2ca995){const _0x5eda87=_0x198ae4;let _0x597594={'raw':![],'where':{'id':_0xadc4a8[_0x5eda87('0x6b')]['id']},'include':[{'model':db[_0x5eda87('0x8f')],'as':_0x5eda87('0x48')},{'model':db['MailServerOut'],'as':'Smtp'},{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x18eabb={};return _0x18eabb[_0x5eda87('0x25')]=_[_0x5eda87('0x27')](db[_0x5eda87('0x5')][_0x5eda87('0x86')]),_0x18eabb[_0x5eda87('0x6a')]=_[_0x5eda87('0x27')](_0xadc4a8[_0x5eda87('0x6a')]),_0x18eabb[_0x5eda87('0x4a')]=_[_0x5eda87('0x38')](_0x18eabb[_0x5eda87('0x25')],_0x18eabb[_0x5eda87('0x6a')]),_0x597594[_0x5eda87('0x46')]=_[_0x5eda87('0x38')](_0x18eabb[_0x5eda87('0x25')],qs[_0x5eda87('0x97')](_0xadc4a8['query'][_0x5eda87('0x97')])),_0x597594[_0x5eda87('0x46')]=_0x597594[_0x5eda87('0x46')][_0x5eda87('0x4b')]?_0x597594['attributes']:_0x18eabb[_0x5eda87('0x25')],_0xadc4a8['query']['includeAll']&&(_0x597594['include']=[{'all':!![]}]),_0x597594=_[_0x5eda87('0x52')]({},_0x597594,_0xadc4a8[_0x5eda87('0x5e')]),db['MailAccount'][_0x5eda87('0xa')](_0x597594)[_0x5eda87('0xab')](handleEntityNotFound(_0x2ca995,null))[_0x5eda87('0xab')](respondWithResult(_0x2ca995,null))[_0x5eda87('0x10')](handleError(_0x2ca995,null));},exports[_0x198ae4('0x66')]=function(_0x136261,_0x506bae){const _0x3d4e23=_0x198ae4;return _0x136261[_0x3d4e23('0x22')]['id']&&delete _0x136261[_0x3d4e23('0x22')]['id'],db[_0x3d4e23('0x5')][_0x3d4e23('0xa')]({'where':{'id':_0x136261[_0x3d4e23('0x6b')]['id']},'include':[{'model':db[_0x3d4e23('0x8f')],'as':'Imap'},{'model':db[_0x3d4e23('0x7a')],'as':_0x3d4e23('0x50')},{'model':db[_0x3d4e23('0x17')],'as':_0x3d4e23('0x44')}]})[_0x3d4e23('0xab')](handleEntityNotFound(_0x506bae,null))[_0x3d4e23('0xab')](saveUpdates(_0x136261[_0x3d4e23('0x22')],null))[_0x3d4e23('0xab')](function(_0x34b38c){const _0x364155=_0x3d4e23;if(_0x34b38c&&_0x136261[_0x364155('0x22')][_0x364155('0x48')])return db[_0x364155('0x8f')][_0x364155('0x66')](_0x136261['body']['Imap'],{'where':{'MailAccountId':_0x34b38c['id']}})[_0x364155('0xab')](function(){return _0x34b38c;});return _0x34b38c;})['then'](function(_0x53da7a){const _0x3381c9=_0x3d4e23;if(_0x53da7a&&_0x136261[_0x3381c9('0x22')][_0x3381c9('0x50')])return db[_0x3381c9('0x7a')]['update'](_0x136261[_0x3381c9('0x22')][_0x3381c9('0x50')],{'where':{'MailAccountId':_0x53da7a['id']}})[_0x3381c9('0xab')](function(){return _0x53da7a;});return _0x53da7a;})['then'](respondWithResult(_0x506bae,null))[_0x3d4e23('0x10')](handleError(_0x506bae,null));},exports[_0x198ae4('0x34')]=function(_0x2a3be7,_0x306e69){const _0x112fa9=_0x198ae4;return db['MailAccount']['describe']()['then'](respondWithResult(_0x306e69,null))[_0x112fa9('0x10')](handleError(_0x306e69,null));},exports[_0x198ae4('0x90')]=function(_0x3024f8,_0x4a66a8){const _0xddc07b=_0x198ae4;return _0x3024f8[_0xddc07b('0x22')]['id']&&delete _0x3024f8[_0xddc07b('0x22')]['id'],db['MailAccount']['findOne']({'where':{'id':_0x3024f8[_0xddc07b('0x6b')]['id']}})[_0xddc07b('0xab')](handleEntityNotFound(_0x4a66a8,null))[_0xddc07b('0xab')](function(_0x30e22e){const _0x1185f5=_0xddc07b;if(_0x30e22e)return _0x3024f8[_0x1185f5('0x22')][_0x1185f5('0x83')]=_0x30e22e['id'],db[_0x1185f5('0x77')][_0x1185f5('0x61')](_0x3024f8['body']);})[_0xddc07b('0xab')](respondWithResult(_0x4a66a8,null))[_0xddc07b('0x10')](handleError(_0x4a66a8,null));},exports[_0x198ae4('0x3e')]=function(_0x2cf6be,_0xbf4992){const _0x35690d=_0x198ae4;let _0x51f219={'raw':![],'where':{}};const _0x23289e={},_0x174268={'count':0x0,'rows':[]};return db[_0x35690d('0x5')][_0x35690d('0xa')]({'where':{'id':_0x2cf6be[_0x35690d('0x6b')]['id']}})[_0x35690d('0xab')](handleEntityNotFound(_0xbf4992,null))[_0x35690d('0xab')](function(_0x256379){const _0x1c9709=_0x35690d;if(_0x256379)return _0x23289e[_0x1c9709('0x25')]=_[_0x1c9709('0x27')](db[_0x1c9709('0x77')]['rawAttributes']),_0x23289e[_0x1c9709('0x6a')]=_[_0x1c9709('0x27')](_0x2cf6be[_0x1c9709('0x6a')]),_0x23289e[_0x1c9709('0x4a')]=_[_0x1c9709('0x38')](_0x23289e[_0x1c9709('0x25')],_0x23289e[_0x1c9709('0x6a')]),_0x51f219[_0x1c9709('0x46')]=_[_0x1c9709('0x38')](_0x23289e['model'],qs[_0x1c9709('0x97')](_0x2cf6be[_0x1c9709('0x6a')][_0x1c9709('0x97')])),_0x51f219['attributes']=_0x51f219['attributes'][_0x1c9709('0x4b')]?_0x51f219[_0x1c9709('0x46')]:_0x23289e[_0x1c9709('0x25')],typeof _0x2cf6be[_0x1c9709('0x6a')][_0x1c9709('0xa1')]===_0x1c9709('0xa0')&&(_0x51f219[_0x1c9709('0x74')]=qs[_0x1c9709('0x74')](_0x2cf6be[_0x1c9709('0x6a')][_0x1c9709('0x74')]),_0x51f219['offset']=qs[_0x1c9709('0x5d')](_0x2cf6be[_0x1c9709('0x6a')]['offset'])),_0x51f219[_0x1c9709('0xa4')]=qs[_0x1c9709('0x56')](_0x2cf6be[_0x1c9709('0x6a')]['sort']),_0x51f219['where']=qs['filters'](_[_0x1c9709('0x96')](_0x2cf6be[_0x1c9709('0x6a')],_0x23289e[_0x1c9709('0x4a')])),_0x51f219[_0x1c9709('0x37')][_0x1c9709('0x83')]=_0x256379['id'],_0x2cf6be['query']['filter']&&(_0x51f219[_0x1c9709('0x37')]=_['merge'](_0x51f219[_0x1c9709('0x37')],{[Op['or']]:_['map'](_0x51f219[_0x1c9709('0x46')],function(_0x262cc0){const _0x5dc66c=_0x1c9709,_0x5a8e0b={};return _0x5a8e0b[_0x262cc0]={[Op[_0x5dc66c('0xe')]]:'%'+_0x2cf6be[_0x5dc66c('0x6a')][_0x5dc66c('0x54')]+'%'},_0x5a8e0b;})})),_0x51f219=_[_0x1c9709('0x52')]({},_0x51f219,_0x2cf6be[_0x1c9709('0x5e')]),db[_0x1c9709('0x77')]['count']({'where':_0x51f219['where']})[_0x1c9709('0xab')](function(_0x1fac45){const _0x4c9d8d=_0x1c9709;return _0x174268[_0x4c9d8d('0x14')]=_0x1fac45,_0x2cf6be[_0x4c9d8d('0x6a')][_0x4c9d8d('0x72')]&&(_0x51f219['include']=[{'all':!![]}]),db[_0x4c9d8d('0x77')]['findAll'](_0x51f219);})[_0x1c9709('0xab')](function(_0x366b10){const _0x3cb899=_0x1c9709;return _0x174268[_0x3cb899('0x67')]=_0x366b10,_0x174268;});})[_0x35690d('0xab')](respondWithFilteredResult(_0xbf4992,_0x51f219))[_0x35690d('0x10')](handleError(_0xbf4992,null));},exports[_0x198ae4('0x16')]=function(_0x440960,_0x303ceb){const _0x1a94aa=_0x198ae4;return db[_0x1a94aa('0x5')][_0x1a94aa('0xa')]({'where':{'id':_0x440960[_0x1a94aa('0x6b')]['id']}})['then'](handleEntityNotFound(_0x303ceb,null))['then'](function(_0x3f1f81){const _0x1bb53a=_0x1a94aa;if(_0x3f1f81)return _0x3f1f81[_0x1bb53a('0x16')](_0x440960[_0x1bb53a('0x6a')][_0x1bb53a('0x85')]);})[_0x1a94aa('0xab')](respondWithStatusCode(_0x303ceb,null))[_0x1a94aa('0x10')](handleError(_0x303ceb,null));},exports[_0x198ae4('0x63')]=function(_0x532481,_0x192730){const _0x220d04=_0x198ae4;return _0x532481[_0x220d04('0x22')]['id']&&delete _0x532481[_0x220d04('0x22')]['id'],db[_0x220d04('0x5')][_0x220d04('0xa')]({'where':{'id':_0x532481[_0x220d04('0x6b')]['id']}})['then'](handleEntityNotFound(_0x192730,null))[_0x220d04('0xab')](function(_0x38965e){const _0x15be36=_0x220d04;if(_0x38965e)return _0x532481[_0x15be36('0x22')]['MailAccountId']=_0x38965e['id'],db[_0x15be36('0x4e')][_0x15be36('0x61')](_0x532481[_0x15be36('0x22')]);})[_0x220d04('0xab')](respondWithResult(_0x192730,null))[_0x220d04('0x10')](handleError(_0x192730,null));},exports['getAnswers']=function(_0x3efe3d,_0x26b670){const _0x209616=_0x198ae4;let _0x219d5a={'raw':![],'where':{}};const _0x27f245={},_0x2a9fd9={'count':0x0,'rows':[]};return db[_0x209616('0x5')][_0x209616('0xa')]({'where':{'id':_0x3efe3d['params']['id']}})[_0x209616('0xab')](handleEntityNotFound(_0x26b670,null))[_0x209616('0xab')](function(_0x2711c3){const _0x17f544=_0x209616;if(_0x2711c3)return _0x27f245['model']=_[_0x17f544('0x27')](db[_0x17f544('0x4e')]['rawAttributes']),_0x27f245['query']=_['keys'](_0x3efe3d[_0x17f544('0x6a')]),_0x27f245[_0x17f544('0x4a')]=_['intersection'](_0x27f245['model'],_0x27f245[_0x17f544('0x6a')]),_0x219d5a['attributes']=_['intersection'](_0x27f245[_0x17f544('0x25')],qs[_0x17f544('0x97')](_0x3efe3d['query'][_0x17f544('0x97')])),_0x219d5a[_0x17f544('0x46')]=_0x219d5a['attributes'][_0x17f544('0x4b')]?_0x219d5a[_0x17f544('0x46')]:_0x27f245[_0x17f544('0x25')],typeof _0x3efe3d[_0x17f544('0x6a')]['nolimit']===_0x17f544('0xa0')&&(_0x219d5a[_0x17f544('0x74')]=qs[_0x17f544('0x74')](_0x3efe3d['query'][_0x17f544('0x74')]),_0x219d5a[_0x17f544('0x5d')]=qs['offset'](_0x3efe3d[_0x17f544('0x6a')][_0x17f544('0x5d')])),_0x219d5a[_0x17f544('0xa4')]=qs['sort'](_0x3efe3d[_0x17f544('0x6a')][_0x17f544('0x56')]),_0x219d5a[_0x17f544('0x37')]=qs[_0x17f544('0x4a')](_['pick'](_0x3efe3d[_0x17f544('0x6a')],_0x27f245[_0x17f544('0x4a')])),_0x219d5a[_0x17f544('0x37')][_0x17f544('0x83')]=_0x2711c3['id'],_0x3efe3d[_0x17f544('0x6a')]['filter']&&(_0x219d5a[_0x17f544('0x37')]=_[_0x17f544('0x52')](_0x219d5a[_0x17f544('0x37')],{[Op['or']]:_['map'](_0x219d5a[_0x17f544('0x46')],function(_0x5bedf0){const _0x43081d=_0x17f544,_0xe1a910={};return _0xe1a910[_0x5bedf0]={[Op[_0x43081d('0xe')]]:'%'+_0x3efe3d[_0x43081d('0x6a')][_0x43081d('0x54')]+'%'},_0xe1a910;})})),_0x219d5a=_['merge']({},_0x219d5a,_0x3efe3d[_0x17f544('0x5e')]),db[_0x17f544('0x4e')][_0x17f544('0x14')]({'where':_0x219d5a[_0x17f544('0x37')]})[_0x17f544('0xab')](function(_0x5943b6){const _0xfb8b05=_0x17f544;return _0x2a9fd9[_0xfb8b05('0x14')]=_0x5943b6,_0x3efe3d[_0xfb8b05('0x6a')][_0xfb8b05('0x72')]&&(_0x219d5a[_0xfb8b05('0x51')]=[{'all':!![]}]),db['CannedAnswer'][_0xfb8b05('0x40')](_0x219d5a);})[_0x17f544('0xab')](function(_0xf3368d){const _0x48a8e1=_0x17f544;return _0x2a9fd9[_0x48a8e1('0x67')]=_0xf3368d,_0x2a9fd9;});})[_0x209616('0xab')](respondWithFilteredResult(_0x26b670,_0x219d5a))['catch'](handleError(_0x26b670,null));},exports[_0x198ae4('0x9a')]=function(_0x529930,_0x297c3c){const _0xd4c0b3=_0x198ae4;return db['MailAccount'][_0xd4c0b3('0xa')]({'where':{'id':_0x529930['params']['id']}})[_0xd4c0b3('0xab')](handleEntityNotFound(_0x297c3c,null))[_0xd4c0b3('0xab')](function(_0x520d46){const _0x4bd793=_0xd4c0b3;if(_0x520d46)return _0x520d46[_0x4bd793('0x9a')](_0x529930['query'][_0x4bd793('0x85')]);})['then'](respondWithStatusCode(_0x297c3c,null))[_0xd4c0b3('0x10')](handleError(_0x297c3c,null));},exports[_0x198ae4('0x61')]=function(_0x47f1af,_0xfd32f3){const _0x441efb=_0x198ae4,_0x28add6={'name':_0x47f1af['body'][_0x441efb('0x31')],'key':_0x47f1af['body'][_0x441efb('0x80')],'email':_0x47f1af[_0x441efb('0x22')][_0x441efb('0x9c')],'ListId':_0x47f1af[_0x441efb('0x22')]['ListId'],'active':!_[_0x441efb('0x2')](_0x47f1af[_0x441efb('0x22')][_0x441efb('0x89')])?_0x47f1af['body'][_0x441efb('0x89')]:!![],'description':_0x47f1af['body'][_0x441efb('0x11')]||null,'Imap':{},'Smtp':{}};return _[_0x441efb('0x2')](_0x47f1af[_0x441efb('0x22')][_0x441efb('0x60')])?(_0x47f1af[_0x441efb('0x22')]['cauthentication']?(_0x28add6[_0x441efb('0x48')][_0x441efb('0x9b')]=_0x47f1af['body'][_0x441efb('0x9e')],_0x28add6[_0x441efb('0x50')]['user']=_0x47f1af[_0x441efb('0x22')][_0x441efb('0x9e')],_0x28add6[_0x441efb('0x48')]['password']=_0x47f1af[_0x441efb('0x22')]['cpassword'],_0x28add6['Smtp']['pass']=_0x47f1af[_0x441efb('0x22')][_0x441efb('0x81')]):(_0x28add6[_0x441efb('0x48')][_0x441efb('0x1d')]=![],_0x28add6[_0x441efb('0x50')][_0x441efb('0x1d')]=![]),_0x28add6[_0x441efb('0x48')][_0x441efb('0x7f')]=_0x47f1af['body'][_0x441efb('0x48')][_0x441efb('0x7f')],_0x28add6[_0x441efb('0x48')]['port']=_0x47f1af['body'][_0x441efb('0x48')]['port'],_0x28add6['Smtp'][_0x441efb('0x7f')]=_0x47f1af[_0x441efb('0x22')][_0x441efb('0x50')][_0x441efb('0x7f')],_0x28add6[_0x441efb('0x50')][_0x441efb('0x1e')]=_0x47f1af[_0x441efb('0x22')][_0x441efb('0x50')][_0x441efb('0x1e')]):(_0x28add6[_0x441efb('0x48')]['service']=_0x47f1af[_0x441efb('0x22')]['cservice'],_0x28add6[_0x441efb('0x50')][_0x441efb('0x42')]=_0x47f1af['body']['cservice'],_0x28add6[_0x441efb('0x48')][_0x441efb('0x9b')]=_0x47f1af[_0x441efb('0x22')][_0x441efb('0x9e')],_0x28add6['Smtp'][_0x441efb('0x9b')]=_0x47f1af[_0x441efb('0x22')][_0x441efb('0x9e')],_0x28add6[_0x441efb('0x48')][_0x441efb('0x9')]=_0x47f1af[_0x441efb('0x22')]['cpassword'],_0x28add6[_0x441efb('0x50')][_0x441efb('0x4c')]=_0x47f1af[_0x441efb('0x22')][_0x441efb('0x81')]),db[_0x441efb('0x5')][_0x441efb('0x61')](_0x28add6,{'include':[{'model':db[_0x441efb('0x7a')],'as':_0x441efb('0x50')},{'model':db[_0x441efb('0x8f')],'as':_0x441efb('0x48')}]})[_0x441efb('0xab')](function(_0x36dc9f){const _0x32c603=_0x441efb,_0x1b9a1c=_0x47f1af['user']['get']({'plain':!![]});if(!_0x1b9a1c)throw new Error(_0x32c603('0xa9'));if(_0x1b9a1c[_0x32c603('0x79')]===_0x32c603('0x9b')){const _0x2a7efc=_0x36dc9f[_0x32c603('0x9f')]({'plain':!![]});return db[_0x32c603('0x7d')][_0x32c603('0xa')]({'where':{'name':_0x32c603('0x12'),'userProfileId':_0x1b9a1c['userProfileId']},'raw':!![]})[_0x32c603('0xab')](function(_0x41a755){const _0x5cb064=_0x32c603;return _0x41a755&&_0x41a755[_0x5cb064('0xa3')]===0x0?db[_0x5cb064('0x99')][_0x5cb064('0x61')]({'name':_0x2a7efc['name'],'resourceId':_0x2a7efc['id'],'type':_0x41a755['name'],'sectionId':_0x41a755['id']},{})[_0x5cb064('0xab')](function(){return _0x36dc9f;}):_0x36dc9f;})[_0x32c603('0x10')](function(_0x394c4b){const _0x186cfc=_0x32c603;logger[_0x186cfc('0x1c')](_0x186cfc('0x68'),_0x394c4b);throw _0x394c4b;});}return _0x36dc9f;})['then'](respondWithResult(_0xfd32f3,0xc9))[_0x441efb('0x10')](handleError(_0xfd32f3,null));},exports[_0x198ae4('0x7')]=function(_0x19bfb3,_0xdda86b){const _0x3174cb=_0x198ae4;return db['MailAccount'][_0x3174cb('0xa')]({'where':{'id':_0x19bfb3[_0x3174cb('0x6b')]['id']}})[_0x3174cb('0xab')](handleEntityNotFound(_0xdda86b,null))[_0x3174cb('0xab')](function(_0x3007fb){const _0x53f43f=_0x3174cb;if(_0x3007fb)return _0x3007fb[_0x53f43f('0x7')]();return null;})[_0x3174cb('0xab')](respondWithResult(_0xdda86b,null))[_0x3174cb('0x10')](handleError(_0xdda86b,null));},exports[_0x198ae4('0x59')]=function(_0x3855a2,_0x5cc6b6){const _0xa7c0ca=_0x198ae4;return _0x3855a2[_0xa7c0ca('0x22')]['id']&&delete _0x3855a2[_0xa7c0ca('0x22')]['id'],db[_0xa7c0ca('0x5')]['findOne']({'where':{'id':_0x3855a2[_0xa7c0ca('0x6b')]['id']}})[_0xa7c0ca('0xab')](handleEntityNotFound(_0x5cc6b6,null))[_0xa7c0ca('0xab')](function(_0x30e438){const _0x5ac176=_0xa7c0ca;if(_0x30e438)return _0x3855a2[_0x5ac176('0x22')][_0x5ac176('0x83')]=_0x30e438['id'],db[_0x5ac176('0x8f')][_0x5ac176('0x61')](_0x3855a2[_0x5ac176('0x22')]);})[_0xa7c0ca('0xab')](respondWithResult(_0x5cc6b6,null))['catch'](handleError(_0x5cc6b6,null));},exports[_0x198ae4('0x58')]=function(_0x1d52f9,_0x13fee9){const _0x574c0c=_0x198ae4;return db[_0x574c0c('0x5')][_0x574c0c('0xa')]({'where':{'id':_0x1d52f9[_0x574c0c('0x6b')]['id']}})['then'](handleEntityNotFound(_0x13fee9,null))[_0x574c0c('0xab')](function(_0x43bfcd){if(_0x43bfcd)return _0x43bfcd['setImap'](null);return null;})[_0x574c0c('0xab')](respondWithStatusCode(_0x13fee9,null))[_0x574c0c('0x10')](handleError(_0x13fee9,null));},exports[_0x198ae4('0x4f')]=function(_0x553387,_0x1124ec){const _0x35a47e=_0x198ae4;return db[_0x35a47e('0x5')]['findOne']({'where':{'id':_0x553387['params']['id']}})[_0x35a47e('0xab')](handleEntityNotFound(_0x1124ec,null))['then'](function(_0x1dbc93){const _0x491e0c=_0x35a47e;if(_0x1dbc93)return _0x1dbc93[_0x491e0c('0x4f')]();return null;})['then'](respondWithResult(_0x1124ec,null))[_0x35a47e('0x10')](handleError(_0x1124ec,null));},exports['addSmtp']=function(_0x4eca3c,_0x54cf8c){const _0x5aeed9=_0x198ae4;return _0x4eca3c[_0x5aeed9('0x22')]['id']&&delete _0x4eca3c[_0x5aeed9('0x22')]['id'],db[_0x5aeed9('0x5')][_0x5aeed9('0xa')]({'where':{'id':_0x4eca3c['params']['id']}})['then'](handleEntityNotFound(_0x54cf8c,null))[_0x5aeed9('0xab')](function(_0x4aed8b){const _0x2baea8=_0x5aeed9;if(_0x4aed8b)return _0x4eca3c['body'][_0x2baea8('0x83')]=_0x4aed8b['id'],db[_0x2baea8('0x7a')][_0x2baea8('0x61')](_0x4eca3c['body']);})[_0x5aeed9('0xab')](respondWithResult(_0x54cf8c,null))[_0x5aeed9('0x10')](handleError(_0x54cf8c,null));},exports[_0x198ae4('0x91')]=function(_0x425864,_0x5d7721){const _0xb1686c=_0x198ae4;return db[_0xb1686c('0x5')][_0xb1686c('0xa')]({'where':{'id':_0x425864[_0xb1686c('0x6b')]['id']}})[_0xb1686c('0xab')](handleEntityNotFound(_0x5d7721,null))[_0xb1686c('0xab')](function(_0x4f888e){if(_0x4f888e)return _0x4f888e['setSmtp'](null);return null;})[_0xb1686c('0xab')](respondWithStatusCode(_0x5d7721,null))[_0xb1686c('0x10')](handleError(_0x5d7721,null));},exports[_0x198ae4('0x95')]=function(_0x289878,_0x2fa631){const _0x4cff8d=_0x198ae4;return db[_0x4cff8d('0x64')][_0x4cff8d('0xa')]({'where':{'id':_0x289878['params']['id']}})[_0x4cff8d('0xab')](function(_0x5b61d6){const _0x227257=_0x4cff8d;if(_0x5b61d6)return _0x5b61d6[_0x227257('0x95')](_0x289878[_0x227257('0x22')][_0x227257('0x85')],{'through':_['omit'](_0x289878['body'],[_0x227257('0x85'),'id'])});})[_0x4cff8d('0xab')](respondWithResult(_0x2fa631,null))[_0x4cff8d('0x10')](handleError(_0x2fa631,null));},exports[_0x198ae4('0x43')]=function(_0x362fc3,_0x628f4f){const _0x16da9b=_0x198ae4;let _0x341d32={'raw':![],'where':{}};const _0x53cbcc={},_0x244d78={'count':0x0,'rows':[]};return db[_0x16da9b('0x5')]['findOne']({'where':{'id':_0x362fc3[_0x16da9b('0x6b')]['id']}})[_0x16da9b('0xab')](handleEntityNotFound(_0x628f4f,null))[_0x16da9b('0xab')](function(_0x1fd337){const _0x4602a0=_0x16da9b;if(_0x1fd337)return _0x53cbcc[_0x4602a0('0x25')]=_[_0x4602a0('0x27')](db[_0x4602a0('0x64')]['rawAttributes']),_0x53cbcc[_0x4602a0('0x6a')]=_[_0x4602a0('0x27')](_0x362fc3['query']),_0x53cbcc[_0x4602a0('0x4a')]=_[_0x4602a0('0x38')](_0x53cbcc['model'],_0x53cbcc[_0x4602a0('0x6a')]),_0x341d32[_0x4602a0('0x46')]=_[_0x4602a0('0x38')](_0x53cbcc['model'],qs[_0x4602a0('0x97')](_0x362fc3[_0x4602a0('0x6a')]['fields'])),_0x341d32[_0x4602a0('0x46')]=_0x341d32['attributes'][_0x4602a0('0x4b')]?_0x341d32['attributes']:_0x53cbcc['model'],typeof _0x362fc3[_0x4602a0('0x6a')][_0x4602a0('0xa1')]===_0x4602a0('0xa0')&&(_0x341d32['limit']=qs['limit'](_0x362fc3['query'][_0x4602a0('0x74')]),_0x341d32[_0x4602a0('0x5d')]=qs['offset'](_0x362fc3[_0x4602a0('0x6a')][_0x4602a0('0x5d')])),_0x341d32[_0x4602a0('0xa4')]=qs[_0x4602a0('0x56')](_0x362fc3[_0x4602a0('0x6a')][_0x4602a0('0x56')]),_0x341d32['where']=qs[_0x4602a0('0x4a')](_[_0x4602a0('0x96')](_0x362fc3[_0x4602a0('0x6a')],_0x53cbcc[_0x4602a0('0x4a')])),_0x341d32['where']['MailAccountId']=_0x1fd337['id'],_0x362fc3['query'][_0x4602a0('0x54')]&&(_0x341d32[_0x4602a0('0x37')]=_[_0x4602a0('0x52')](_0x341d32[_0x4602a0('0x37')],{[Op['or']]:_[_0x4602a0('0x94')](_0x341d32[_0x4602a0('0x46')],function(_0x1c58ef){const _0x394e48=_0x4602a0,_0x31827f={};return _0x31827f[_0x1c58ef]={[Op[_0x394e48('0xe')]]:'%'+_0x362fc3[_0x394e48('0x6a')][_0x394e48('0x54')]+'%'},_0x31827f;})})),_0x341d32=_['merge']({},_0x341d32,_0x362fc3['options']),db['MailInteraction'][_0x4602a0('0x14')]({'where':_0x341d32[_0x4602a0('0x37')]})[_0x4602a0('0xab')](function(_0x241657){const _0x500255=_0x4602a0;return _0x244d78[_0x500255('0x14')]=_0x241657,_0x362fc3[_0x500255('0x6a')][_0x500255('0x72')]&&(_0x341d32[_0x500255('0x51')]=[{'model':db[_0x500255('0x84')],'as':_0x500255('0x39'),'required':![]},{'model':db[_0x500255('0x26')],'as':_0x500255('0x57'),'attributes':[_0x500255('0x31'),_0x500255('0x21'),_0x500255('0x3c')],'required':![]},{'model':db[_0x500255('0x92')],'as':_0x500255('0x2e'),'attributes':['id',_0x500255('0x31'),'color'],'where':_0x362fc3[_0x500255('0x6a')][_0x500255('0x6')]?{'id':_0x362fc3[_0x500255('0x6a')][_0x500255('0x6')]}:undefined,'required':_0x362fc3['query'][_0x500255('0x6')]?!![]:![]}]),db[_0x500255('0x64')]['findAll'](_0x341d32);})[_0x4602a0('0xab')](function(_0x1ec46b){const _0x3e17c7=_0x4602a0;return _0x244d78[_0x3e17c7('0x67')]=_0x1ec46b,_0x244d78;});})[_0x16da9b('0xab')](respondWithFilteredResult(_0x628f4f,_0x341d32))[_0x16da9b('0x10')](handleError(_0x628f4f,null));},exports[_0x198ae4('0x3')]=function(_0x1aaf21,_0x2fe49b){const _0x264421=_0x198ae4;return db[_0x264421('0x5')][_0x264421('0xa')]({'where':{'id':_0x1aaf21[_0x264421('0x6b')]['id']}})[_0x264421('0xab')](handleEntityNotFound(_0x2fe49b,null))[_0x264421('0xab')](function(_0x1f2e05){const _0x2a9f3c=_0x264421;if(_0x1f2e05)return db[_0x2a9f3c('0x62')][_0x2a9f3c('0x70')](function(_0x30de1a){const _0x3a2e76=_0x2a9f3c;return db['MailApplication'][_0x3a2e76('0x18')]({'where':{'MailAccountId':_0x1aaf21[_0x3a2e76('0x6b')]['id']},'transaction':_0x30de1a})[_0x3a2e76('0xab')](function(){const _0x5f57d3=_0x3a2e76,_0x526fa9=_[_0x5f57d3('0x94')](_0x1aaf21[_0x5f57d3('0x22')],function(_0x5b0230){const _0x3537c8=_0x5f57d3;return _0x5b0230[_0x3537c8('0x83')]=_0x1aaf21['params']['id'],_0x5b0230;});return db[_0x5f57d3('0x2c')][_0x5f57d3('0x5f')](_0x526fa9,{'transaction':_0x30de1a});});})[_0x2a9f3c('0xab')](function(){const _0x415c17=_0x2a9f3c;return db[_0x415c17('0x2c')][_0x415c17('0xa7')]({'where':{'MailAccountId':_0x1aaf21[_0x415c17('0x6b')]['id']},'order':_0x415c17('0x98')});});})['then'](respondWithResult(_0x2fe49b,null))[_0x264421('0x10')](handleError(_0x2fe49b,null));},exports['getApplications']=function(_0x10a7f4,_0x149dad){const _0x515179=_0x198ae4;let _0x4198de={};const _0x4486d5={};let _0xc8595,_0x3c1bd5;return db[_0x515179('0x5')]['findOne']({'where':{'id':_0x10a7f4[_0x515179('0x6b')]['id']}})[_0x515179('0xab')](handleEntityNotFound(_0x149dad,null))[_0x515179('0xab')](function(_0x1bffb5){const _0x40c45b=_0x515179;if(_0x1bffb5)return _0xc8595=_0x1bffb5,_0x4486d5[_0x40c45b('0x25')]=_[_0x40c45b('0x27')](db[_0x40c45b('0x2c')][_0x40c45b('0x86')]),_0x4486d5[_0x40c45b('0x6a')]=_[_0x40c45b('0x27')](_0x10a7f4[_0x40c45b('0x6a')]),_0x4486d5['filters']=_[_0x40c45b('0x38')](_0x4486d5[_0x40c45b('0x25')],_0x4486d5[_0x40c45b('0x6a')]),_0x4198de[_0x40c45b('0x46')]=_[_0x40c45b('0x38')](_0x4486d5[_0x40c45b('0x25')],qs['fields'](_0x10a7f4[_0x40c45b('0x6a')][_0x40c45b('0x97')])),_0x4198de[_0x40c45b('0x46')]=_0x4198de[_0x40c45b('0x46')]['length']?_0x4198de[_0x40c45b('0x46')]:_0x4486d5[_0x40c45b('0x25')],_0x4198de[_0x40c45b('0xa4')]=qs[_0x40c45b('0x56')](_0x10a7f4[_0x40c45b('0x6a')]['sort']),_0x4198de['where']=qs['filters'](_[_0x40c45b('0x96')](_0x10a7f4[_0x40c45b('0x6a')],_0x4486d5[_0x40c45b('0x4a')])),_0x10a7f4[_0x40c45b('0x6a')][_0x40c45b('0x54')]&&(_0x4198de[_0x40c45b('0x37')]=_[_0x40c45b('0x52')](_0x4198de[_0x40c45b('0x37')],{[Op['or']]:_[_0x40c45b('0x94')](_0x4198de[_0x40c45b('0x46')],function(_0x1e0572){const _0x445b94=_0x40c45b,_0xca61ca={};return _0xca61ca[_0x1e0572]={[Op[_0x445b94('0xe')]]:'%'+_0x10a7f4[_0x445b94('0x6a')][_0x445b94('0x54')]+'%'},_0xca61ca;})})),_0x4198de=_[_0x40c45b('0x52')]({},_0x4198de,_0x10a7f4[_0x40c45b('0x5e')]),_0xc8595[_0x40c45b('0x8')](_0x4198de);})[_0x515179('0xab')](function(_0x3fdfcc){const _0x4a74da=_0x515179;if(_0x3fdfcc)return _0x3c1bd5=_0x3fdfcc['length'],typeof _0x10a7f4[_0x4a74da('0x6a')][_0x4a74da('0xa1')]===_0x4a74da('0xa0')&&(_0x4198de['limit']=qs[_0x4a74da('0x74')](_0x10a7f4[_0x4a74da('0x6a')][_0x4a74da('0x74')]),_0x4198de['offset']=qs[_0x4a74da('0x5d')](_0x10a7f4[_0x4a74da('0x6a')][_0x4a74da('0x5d')])),_0xc8595[_0x4a74da('0x8')](_0x4198de);})['then'](function(_0x4a3f82){if(_0x4a3f82)return _0x4a3f82?{'count':_0x3c1bd5,'rows':_0x4a3f82}:null;})['then'](respondWithResult(_0x149dad,null))['catch'](handleError(_0x149dad,null));},exports[_0x198ae4('0x55')]=function(_0x11223d,_0x5b7edd){const _0x5bcdac=_0x198ae4;let _0x1b003a={'raw':!![],'where':{}};const _0x1cada1={},_0x435780={'count':0x0,'rows':[]};return db[_0x5bcdac('0x5')]['findOne']({'where':{'id':_0x11223d['params']['id']}})[_0x5bcdac('0xab')](handleEntityNotFound(_0x5b7edd,null))['then'](function(_0x63265b){const _0x4e02f3=_0x5bcdac;if(_0x63265b){_0x1cada1[_0x4e02f3('0x25')]=_[_0x4e02f3('0x27')](db[_0x4e02f3('0x1b')][_0x4e02f3('0x86')]),_0x1cada1[_0x4e02f3('0x6a')]=_[_0x4e02f3('0x27')](_0x11223d[_0x4e02f3('0x6a')]),_0x1cada1[_0x4e02f3('0x4a')]=_[_0x4e02f3('0x38')](_0x1cada1[_0x4e02f3('0x25')],_0x1cada1[_0x4e02f3('0x6a')]),_0x1b003a['attributes']=_[_0x4e02f3('0x38')](_0x1cada1[_0x4e02f3('0x25')],qs[_0x4e02f3('0x97')](_0x11223d[_0x4e02f3('0x6a')][_0x4e02f3('0x97')])),_0x1b003a['attributes']=_0x1b003a[_0x4e02f3('0x46')][_0x4e02f3('0x4b')]?_0x1b003a['attributes']:_0x1cada1[_0x4e02f3('0x25')];typeof _0x11223d[_0x4e02f3('0x6a')][_0x4e02f3('0xa1')]===_0x4e02f3('0xa0')&&(_0x1b003a[_0x4e02f3('0x74')]=qs[_0x4e02f3('0x74')](_0x11223d[_0x4e02f3('0x6a')]['limit']),_0x1b003a[_0x4e02f3('0x5d')]=qs[_0x4e02f3('0x5d')](_0x11223d[_0x4e02f3('0x6a')][_0x4e02f3('0x5d')]));_0x1b003a['order']=qs[_0x4e02f3('0x56')](_0x11223d[_0x4e02f3('0x6a')][_0x4e02f3('0x56')]),_0x1b003a[_0x4e02f3('0x37')]=qs['filters'](_[_0x4e02f3('0x96')](_0x11223d[_0x4e02f3('0x6a')],_0x1cada1[_0x4e02f3('0x4a')])),_0x1b003a[_0x4e02f3('0x37')][_0x4e02f3('0x83')]=_0x63265b['id'];_0x11223d[_0x4e02f3('0x6a')][_0x4e02f3('0x54')]&&(_0x1b003a['where']=_[_0x4e02f3('0x52')](_0x1b003a[_0x4e02f3('0x37')],{[Op['or']]:_[_0x4e02f3('0x94')](_0x1b003a[_0x4e02f3('0x46')],function(_0x3fb40d){const _0x5bacaf=_0x4e02f3,_0x5ccd5c={};return _0x5ccd5c[_0x3fb40d]={[Op['like']]:'%'+_0x11223d['query'][_0x5bacaf('0x54')]+'%'},_0x5ccd5c;})}));if(_0x11223d[_0x4e02f3('0x6a')][_0x4e02f3('0x3d')]){const _0x102381=_0x11223d[_0x4e02f3('0x6a')][_0x4e02f3('0x3d')]['split'](','),_0x3aaa79={};_0x3aaa79[_0x102381[0x0]]={[Op[_0x4e02f3('0x1')]]:moment(_0x102381[0x1])[_0x4e02f3('0x23')](_0x4e02f3('0xa6'))},_0x1b003a[_0x4e02f3('0x37')]=_[_0x4e02f3('0x52')](_0x1b003a[_0x4e02f3('0x37')],_0x3aaa79);}return _0x1b003a=_[_0x4e02f3('0x52')]({},_0x1b003a,_0x11223d[_0x4e02f3('0x5e')]),db[_0x4e02f3('0x1b')][_0x4e02f3('0x14')]({'where':_0x1b003a['where']})['then'](function(_0x387958){const _0x55e045=_0x4e02f3;return _0x435780[_0x55e045('0x14')]=_0x387958,_0x11223d['query'][_0x55e045('0x72')]&&(_0x1b003a['include']=[{'all':!![]}]),db[_0x55e045('0x1b')][_0x55e045('0x40')](_0x1b003a);})[_0x4e02f3('0xab')](function(_0x46fb9c){const _0x406a67=_0x4e02f3;return _0x435780[_0x406a67('0x67')]=_0x46fb9c,_0x435780;});}})[_0x5bcdac('0xab')](respondWithFilteredResult(_0x5b7edd,_0x1b003a))[_0x5bcdac('0x10')](handleError(_0x5b7edd,null));},exports[_0x198ae4('0x35')]=function(_0x47af69,_0xf62f3e){const _0x2bcead=_0x198ae4;let _0x201e77,_0x376c52={},_0x54e269;return _0x47af69[_0x2bcead('0x22')]['to']&&(_0x54e269=_0x47af69[_0x2bcead('0x22')]['to'][_0x2bcead('0x20')](',')[0x0]),db[_0x2bcead('0x5')]['findOne']({'where':{'id':_0x47af69[_0x2bcead('0x6b')]['id']},'include':[{'model':db[_0x2bcead('0x13')],'as':_0x2bcead('0xa8'),'include':[{'model':db[_0x2bcead('0x84')],'as':'Contacts','where':{'email':_0x54e269},'limit':0x1,'order':[['updatedAt','DESC']]}]},{'model':db['MailServerOut'],'as':'Smtp','raw':!![]}]})[_0x2bcead('0xab')](handleEntityNotFound(_0xf62f3e,null))['then'](function(_0x42ec6c){const _0x1d7ed6=_0x2bcead;if(_0x42ec6c){_0x201e77=_0x42ec6c;if(_0x42ec6c[_0x1d7ed6('0x50')]){_['isNil'](_0x47af69[_0x1d7ed6('0x22')][_0x1d7ed6('0xf')])&&(_0x47af69[_0x1d7ed6('0x22')][_0x1d7ed6('0xf')]=util[_0x1d7ed6('0x23')](_0x1d7ed6('0x36'),_0x42ec6c[_0x1d7ed6('0x31')],_0x42ec6c[_0x1d7ed6('0x9c')]||_0x42ec6c[_0x1d7ed6('0x50')][_0x1d7ed6('0x9b')]));if(_0x47af69['body'][_0x1d7ed6('0x6c')]&&_0x47af69[_0x1d7ed6('0x22')][_0x1d7ed6('0x6c')][_0x1d7ed6('0x4b')])for(let _0x578e57=0x0;_0x578e57<_0x47af69[_0x1d7ed6('0x22')]['attachments'][_0x1d7ed6('0x4b')];_0x578e57+=0x1){_0x47af69['body']['attachments'][_0x578e57]={'filename':_0x47af69['body'][_0x1d7ed6('0x6c')][_0x578e57][_0x1d7ed6('0x31')],'path':path[_0x1d7ed6('0x49')](config[_0x1d7ed6('0x47')],_0x1d7ed6('0x8a'),_0x47af69[_0x1d7ed6('0x22')][_0x1d7ed6('0x6c')][_0x578e57]['basename'])};}const _0x507d6a={'tls':{'rejectUnauthorized':![]}};return _[_0x1d7ed6('0x2')](_0x42ec6c[_0x1d7ed6('0x50')][_0x1d7ed6('0x42')])?(_0x42ec6c[_0x1d7ed6('0x50')]['authentication']&&(_0x507d6a[_0x1d7ed6('0x88')]={'user':_0x42ec6c['Smtp']['user'],'pass':_0x42ec6c[_0x1d7ed6('0x50')][_0x1d7ed6('0x4c')]}),_0x507d6a[_0x1d7ed6('0x7f')]=_0x42ec6c[_0x1d7ed6('0x50')][_0x1d7ed6('0x7f')],_0x507d6a[_0x1d7ed6('0x1e')]=_0x42ec6c[_0x1d7ed6('0x50')]['port'],_0x507d6a['secure']=_0x42ec6c[_0x1d7ed6('0x50')][_0x1d7ed6('0x8c')]):(_0x507d6a[_0x1d7ed6('0x42')]=_0x42ec6c[_0x1d7ed6('0x50')][_0x1d7ed6('0x42')],_0x507d6a[_0x1d7ed6('0x88')]={'user':_0x42ec6c[_0x1d7ed6('0x50')][_0x1d7ed6('0x9b')],'pass':_0x42ec6c[_0x1d7ed6('0x50')][_0x1d7ed6('0x4c')]}),respondWithRpcPromise(_0x1d7ed6('0x7b'),'sendMail',{'account':_0x507d6a,'message':_0x47af69[_0x1d7ed6('0x22')]});}else throw new Error('List\x20not\x20found');}})[_0x2bcead('0xab')](function(_0x8b566e){const _0x5cc7d8=_0x2bcead;if(_0x8b566e){_0x376c52=_0x8b566e;if(_0x201e77[_0x5cc7d8('0xa8')])return _0x201e77['List'][_0x5cc7d8('0xa5')]['length']?_0x201e77[_0x5cc7d8('0xa8')][_0x5cc7d8('0xa5')][0x0]:db[_0x5cc7d8('0x84')]['create'](_[_0x5cc7d8('0x5c')](_0x47af69['body'],{'firstName':_0x47af69['body']['to'],'email':_0x47af69[_0x5cc7d8('0x22')]['to'],'phone':_0x47af69[_0x5cc7d8('0x22')]['to'],'ListId':_0x201e77[_0x5cc7d8('0x33')]}));else throw new Error(_0x5cc7d8('0x53'));}})[_0x2bcead('0xab')](function(_0x3e3a63){const _0x3d98b6=_0x2bcead;if(_0x3e3a63){let _0x1ac81d={'UserId':_0x47af69[_0x3d98b6('0x9b')]['id'],'ContactId':_0x3e3a63['id'],'MailAccountId':_0x201e77['id'],'inReplyTo':_0x376c52[_0x3d98b6('0x0')],'to':_0x47af69[_0x3d98b6('0x22')]['from'],'cc':_0x47af69[_0x3d98b6('0x22')]['cc'],'subject':_0x47af69[_0x3d98b6('0x22')][_0x3d98b6('0x30')],'attach':_0x47af69[_0x3d98b6('0x22')][_0x3d98b6('0x6f')],'firstMsgDirection':_0x3d98b6('0x28'),'lastMsgAt':moment()['format'](_0x3d98b6('0xa6')),'lastMsgDirection':_0x3d98b6('0x28'),'lastMsgBody':_0x47af69['body'][_0x3d98b6('0x22')],'Messages':[_[_0x3d98b6('0x52')](_0x47af69[_0x3d98b6('0x22')],{'messageId':_0x376c52[_0x3d98b6('0x0')],'sentAt':moment()[_0x3d98b6('0x23')](_0x3d98b6('0xa6')),'read':!![],'MailAccountId':_0x201e77['id'],'UserId':_0x47af69[_0x3d98b6('0x9b')]['id'],'ContactId':_0x3e3a63['id']})]};return _0x47af69[_0x3d98b6('0x22')][_0x3d98b6('0x3a')]&&(_0x1ac81d=_[_0x3d98b6('0x52')](_0x1ac81d,_0x47af69['body']['Interaction'])),db[_0x3d98b6('0x64')][_0x3d98b6('0x61')](_0x1ac81d,{'include':[{'model':db[_0x3d98b6('0x1b')],'as':_0x3d98b6('0x1f')}]});}})[_0x2bcead('0xab')](respondWithResult(_0xf62f3e,null))[_0x2bcead('0x10')](handleError(_0xf62f3e,null));},exports[_0x198ae4('0x8e')]=function(_0x1cde22,_0x2f752d){const _0x5fe50d=_0x198ae4;return db['MailAccount'][_0x5fe50d('0xa')]({'where':{'id':_0x1cde22[_0x5fe50d('0x6b')]['id']},'include':[{'model':db[_0x5fe50d('0x7a')],'as':_0x5fe50d('0x50'),'raw':!![]}]})['then'](handleEntityNotFound(_0x2f752d,null))[_0x5fe50d('0xab')](function(_0x538f20){const _0x3c494c=_0x5fe50d;if(_0x538f20&&_0x538f20[_0x3c494c('0x50')]){const _0x42bae8={'id':_0x538f20['id'],'tls':{'rejectUnauthorized':![]}};return _0x538f20[_0x3c494c('0x50')][_0x3c494c('0x42')]?_0x42bae8[_0x3c494c('0x42')]=_0x538f20['Smtp'][_0x3c494c('0x42')]:(_0x42bae8[_0x3c494c('0x7f')]=_0x538f20['Smtp'][_0x3c494c('0x7f')],_0x42bae8[_0x3c494c('0x1e')]=_0x538f20[_0x3c494c('0x50')][_0x3c494c('0x1e')],_0x42bae8[_0x3c494c('0x8c')]=_0x538f20[_0x3c494c('0x50')][_0x3c494c('0x8c')]),_0x538f20['Smtp']['authentication']&&(_0x42bae8[_0x3c494c('0x88')]={'user':_0x538f20['Smtp'][_0x3c494c('0x9b')],'pass':_0x538f20[_0x3c494c('0x50')][_0x3c494c('0x4c')]}),respondWithRpcPromise('VerifySmtp','verifySmtp',{'account':_0x42bae8});}})[_0x5fe50d('0xab')](respondWithResult(_0x2f752d,null))[_0x5fe50d('0x10')](handleError(_0x2f752d,null));},exports['destroy']=function(_0x2e8524,_0x1ac237){const _0x18e71c=_0x198ae4;return db[_0x18e71c('0x5')][_0x18e71c('0xa')]({'where':{'id':_0x2e8524['params']['id']}})[_0x18e71c('0xab')](handleEntityNotFound(_0x1ac237,null))[_0x18e71c('0xab')](function(_0xec6f16){const _0x8f3d89=_0x18e71c;if(_0xec6f16&&_0xec6f16[_0x8f3d89('0x42')])throw new db[(_0x8f3d89('0x29'))][(_0x8f3d89('0x71'))](_0x8f3d89('0x8d'));return _0xec6f16;})[_0x18e71c('0xab')](removeEntity(_0x1ac237,null))['catch'](handleError(_0x1ac237,null));},exports[_0x198ae4('0x15')]=function(_0x4fe8df,_0xdceaaa){const _0x42cb3f=_0x198ae4;return db[_0x42cb3f('0x5')][_0x42cb3f('0xa')]({'where':{'id':_0x4fe8df['params']['id']}})['then'](function(_0x1d0fa2){const _0x3cee97=_0x42cb3f;if(_0x1d0fa2)return _0x1d0fa2['addAgents'](_0x4fe8df['body'][_0x3cee97('0x85')],{'through':_[_0x3cee97('0xc')](_0x4fe8df[_0x3cee97('0x22')],['ids','id'])})[_0x3cee97('0xab')](function(_0x4fe604){const _0x36f830=_0x3cee97;for(let _0x564c1a=0x0;_0x564c1a<_0x4fe8df['body']['ids'][_0x36f830('0x4b')];_0x564c1a+=0x1){socket['emit'](_0x36f830('0x78'),{'UserId':_0x4fe8df[_0x36f830('0x22')][_0x36f830('0x85')][_0x564c1a],'MailAccountId':_0x4fe8df[_0x36f830('0x6b')]['id']});}return _0x4fe604;});})['then'](respondWithResult(_0xdceaaa,null))['catch'](handleError(_0xdceaaa,null));},exports[_0x198ae4('0x2d')]=function(_0x15a2ad,_0x2b3e3f){const _0x1c144a=_0x198ae4;return db['MailAccount'][_0x1c144a('0xa')]({'where':{'id':_0x15a2ad[_0x1c144a('0x6b')]['id']}})[_0x1c144a('0xab')](handleEntityNotFound(_0x2b3e3f,null))[_0x1c144a('0xab')](function(_0x2c2d84){const _0x2a8baa=_0x1c144a;if(_0x2c2d84)return _0x2c2d84[_0x2a8baa('0x2d')](_0x15a2ad[_0x2a8baa('0x6a')]['ids'])[_0x2a8baa('0xab')](function(){const _0x528ef9=_0x2a8baa;if(_[_0x528ef9('0xb')](_0x15a2ad[_0x528ef9('0x6a')][_0x528ef9('0x85')]))for(let _0x1d9a18=0x0;_0x1d9a18<_0x15a2ad[_0x528ef9('0x6a')][_0x528ef9('0x85')][_0x528ef9('0x4b')];_0x1d9a18+=0x1){socket[_0x528ef9('0x73')](_0x528ef9('0x2f'),{'UserId':Number(_0x15a2ad[_0x528ef9('0x6a')][_0x528ef9('0x85')][_0x1d9a18]),'MailAccountId':Number(_0x15a2ad[_0x528ef9('0x6b')]['id'])});}else socket['emit']('userMailAccount:remove',{'UserId':Number(_0x15a2ad[_0x528ef9('0x6a')]['ids']),'MailAccountId':Number(_0x15a2ad[_0x528ef9('0x6b')]['id'])});});})[_0x1c144a('0xab')](respondWithStatusCode(_0x2b3e3f,null))[_0x1c144a('0x10')](handleError(_0x2b3e3f,null));},exports[_0x198ae4('0xaa')]=function(_0x36712a,_0x213ca5){const _0x4aae89=_0x198ae4;let _0x144bf5={};const _0x341904={};let _0x41e912,_0x15ed26;return db[_0x4aae89('0x5')][_0x4aae89('0xa')]({'where':{'id':_0x36712a[_0x4aae89('0x6b')]['id']}})[_0x4aae89('0xab')](handleEntityNotFound(_0x213ca5,null))[_0x4aae89('0xab')](function(_0x44fe27){const _0x22c7e9=_0x4aae89;if(_0x44fe27)return _0x41e912=_0x44fe27,_0x341904['model']=_[_0x22c7e9('0x27')](db[_0x22c7e9('0x26')][_0x22c7e9('0x86')]),_0x341904['query']=_[_0x22c7e9('0x27')](_0x36712a[_0x22c7e9('0x6a')]),_0x341904[_0x22c7e9('0x4a')]=_[_0x22c7e9('0x38')](_0x341904[_0x22c7e9('0x25')],_0x341904[_0x22c7e9('0x6a')]),_0x144bf5[_0x22c7e9('0x46')]=_[_0x22c7e9('0x38')](_0x341904['model'],qs['fields'](_0x36712a[_0x22c7e9('0x6a')][_0x22c7e9('0x97')])),_0x144bf5[_0x22c7e9('0x46')]=_0x144bf5['attributes'][_0x22c7e9('0x4b')]?_0x144bf5['attributes']:_0x341904[_0x22c7e9('0x25')],_0x144bf5[_0x22c7e9('0xa4')]=qs[_0x22c7e9('0x56')](_0x36712a[_0x22c7e9('0x6a')][_0x22c7e9('0x56')]),_0x144bf5[_0x22c7e9('0x37')]=qs[_0x22c7e9('0x4a')](_[_0x22c7e9('0x96')](_0x36712a['query'],_0x341904[_0x22c7e9('0x4a')])),_0x36712a[_0x22c7e9('0x6a')]['filter']&&(_0x144bf5[_0x22c7e9('0x37')]=_[_0x22c7e9('0x52')](_0x144bf5['where'],{[Op['or']]:_['map'](_0x144bf5[_0x22c7e9('0x46')],function(_0x248d69){const _0x3839f4=_0x22c7e9,_0x2573ee={};return _0x2573ee[_0x248d69]={[Op[_0x3839f4('0xe')]]:'%'+_0x36712a[_0x3839f4('0x6a')]['filter']+'%'},_0x2573ee;})})),_0x144bf5=_[_0x22c7e9('0x52')]({},_0x144bf5,_0x36712a[_0x22c7e9('0x5e')]),_0x41e912[_0x22c7e9('0xaa')](_0x144bf5);})[_0x4aae89('0xab')](function(_0x106423){const _0x36a56c=_0x4aae89;if(_0x106423)return _0x15ed26=_0x106423[_0x36a56c('0x4b')],typeof _0x36712a['query'][_0x36a56c('0xa1')]===_0x36a56c('0xa0')&&(_0x144bf5['limit']=qs[_0x36a56c('0x74')](_0x36712a[_0x36a56c('0x6a')][_0x36a56c('0x74')]),_0x144bf5['offset']=qs[_0x36a56c('0x5d')](_0x36712a['query'][_0x36a56c('0x5d')])),_0x41e912[_0x36a56c('0xaa')](_0x144bf5);})[_0x4aae89('0xab')](function(_0x5e7a04){if(_0x5e7a04)return _0x5e7a04?{'count':_0x15ed26,'rows':_0x5e7a04}:null;})[_0x4aae89('0xab')](respondWithResult(_0x213ca5,null))['catch'](handleError(_0x213ca5,null));}; \ No newline at end of file +const a394_0x3ca0=['getAgents','List','Messages','Contacts','../../rediscache','key','Disposition','error','where','service','internal','stringify','sequelize','model','include','catch','setSmtp','transaction','destroy','../../components/parsers/qs','attributes','MailMessage','findAll','pass','result','stack','getAnswers','attachments','update','server/files/attachments','end','Pause','Content-Range','port','out','like','cpassword','password','intersection','MailAccount,\x20%s,\x20%s','secure','updatedAt','emit','status','CannedAnswer','type','tag','query','Owner','./mailAccount.socket','removeImap','http','Imap','body','fields','filters','format','map','YYYY-MM-DD\x20HH:mm:ss','MailInteraction','pick','active','cuser','host','ListId','keys','user','findAndCountAll','length','MailApplication','addApplications','../../config/logger','count','request','addDisposition','Unable\x20to\x20retrieve\x20the\x20current\x20user','getInteractions','split','util','nolimit','moment','Smtp','auth','You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account','Sequelize','ids','userMailAccount:save','verifySmtp','autoAssociation','params','addAnswer','addImap','omit','messageId','DESC','undefined','filter','describe','lodash','rawAttributes','request\x20sent','findOne','order','SendMail','limit','UserProfileSection','../../mysqldb','sendStatus','json','removeDispositions','sort','MailServerIn','UserProfileResource','isArray','basename','mandatoryDispositionPause','rows','removeAgents','includeAll','Interaction','join','MailAccountId','setImap','attach','fieldName','ValidationError','root','CmContact','options','MailAccount','then','User','client','message','MailServerOut','List\x20not\x20found','merge','bulkCreate','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','removeSmtp','offset','email','send','MailAccount,\x20%s,\x20%s,\x20%s','name','fullname','authentication','jayson/promise','cservice','getApplications','create','get','addInteraction','userMailAccount:remove','addAgents','index','register','set','$gte','MailAccounts','isNil','getImap','VerifySmtp','Contact','removeAnswers','getSmtp','from','description'];(function(_0x4eac6f,_0x3ca028){const _0x57d9d4=function(_0x215d38){while(--_0x215d38){_0x4eac6f['push'](_0x4eac6f['shift']());}};_0x57d9d4(++_0x3ca028);}(a394_0x3ca0,0x104));const a394_0x57d9=function(_0x4eac6f,_0x3ca028){_0x4eac6f=_0x4eac6f-0x0;let _0x57d9d4=a394_0x3ca0[_0x4eac6f];return _0x57d9d4;};const _0x358eb7=a394_0x57d9;'use strict';const moment=require(_0x358eb7('0x9c')),util=require(_0x358eb7('0x9a')),path=require('path'),_=require(_0x358eb7('0x6')),{getSocket}=require(_0x358eb7('0x50')),socket=getSocket(),qs=require(_0x358eb7('0x5f')),logger=require(_0x358eb7('0x93'))('api'),config=require('../../config/environment'),db=require(_0x358eb7('0xe'))['db'],{Op}=require('sequelize');require(_0x358eb7('0x7d'))[_0x358eb7('0x40')](socket);const jayson=require(_0x358eb7('0x37')),client=jayson[_0x358eb7('0x28')][_0x358eb7('0x7f')]({'port':0x232b});function respondWithRpcPromise(_0x215d38,_0x453f59,_0x3ff1c4,_0x3fd5bb){return new Promise(function(_0x3d3fa7,_0x416b19){const _0x5ddf4d=a394_0x57d9,_0x53a5c5=_0x3fd5bb||client;return _0x53a5c5[_0x5ddf4d('0x95')](_0x215d38,_0x3ff1c4)[_0x5ddf4d('0x26')](function(_0x415785){const _0x5e5dcd=_0x5ddf4d;logger['info'](_0x5e5dcd('0x73'),_0x453f59,_0x5e5dcd('0x8')),logger['debug'](_0x5e5dcd('0x33'),_0x453f59,_0x5e5dcd('0x8'),JSON[_0x5e5dcd('0x57')](_0x415785));if(_0x415785['error']){if(_0x415785[_0x5e5dcd('0x53')]['code']===0x1f4)return logger[_0x5e5dcd('0x53')](_0x5e5dcd('0x73'),_0x453f59,_0x415785[_0x5e5dcd('0x53')][_0x5e5dcd('0x29')]),_0x416b19(_0x415785['error'][_0x5e5dcd('0x29')]);return logger[_0x5e5dcd('0x53')](_0x5e5dcd('0x73'),_0x453f59,_0x415785[_0x5e5dcd('0x53')][_0x5e5dcd('0x29')]),_0x3d3fa7(_0x415785[_0x5e5dcd('0x53')][_0x5e5dcd('0x29')]);}else logger['info'](_0x5e5dcd('0x73'),_0x453f59,_0x5e5dcd('0x8')),_0x3d3fa7(_0x415785[_0x5e5dcd('0x64')]['message']);})[_0x5ddf4d('0x5b')](function(_0x58cddf){const _0xf4ee0f=_0x5ddf4d;logger[_0xf4ee0f('0x53')](_0xf4ee0f('0x73'),_0x453f59,_0x58cddf),_0x416b19(_0x58cddf);});});}function respondWithStatusCode(_0x39bfa4,_0x29ce2c){return _0x29ce2c=_0x29ce2c||0xcc,function(_0x249345){const _0x3ac40f=a394_0x57d9;if(_0x249345)return _0x39bfa4[_0x3ac40f('0xf')](_0x29ce2c);return _0x39bfa4[_0x3ac40f('0x77')](_0x29ce2c)[_0x3ac40f('0x6a')]();};}function respondWithResult(_0x29aa14,_0x255271){return _0x255271=_0x255271||0xc8,function(_0x47ea4b){const _0x4f7273=a394_0x57d9;if(_0x47ea4b)return _0x29aa14[_0x4f7273('0x77')](_0x255271)[_0x4f7273('0x10')](_0x47ea4b);};}function respondWithFilteredResult(_0x4f91c6,_0x394345){return function(_0x46248e){const _0x10fc64=a394_0x57d9;if(_0x46248e){const _0x12a9f1=_0x46248e[_0x10fc64('0x94')],_0x790233=_0x394345['offset'];let _0x54d58f=_0x394345[_0x10fc64('0x30')]+_0x394345['limit'],_0x499818;return _0x54d58f>=_0x12a9f1?(_0x54d58f=_0x12a9f1,_0x499818=0xc8):_0x499818=0xce,_0x4f91c6['status'](_0x499818),_0x4f91c6[_0x10fc64('0x41')](_0x10fc64('0x6c'),_0x790233+'-'+_0x54d58f+'/'+_0x12a9f1)['json'](_0x46248e);}return null;};}function saveUpdates(_0x5d9d7a){return function(_0x5004df){const _0x5ebcbe=a394_0x57d9;if(_0x5004df)return _0x5004df[_0x5ebcbe('0x68')](_0x5d9d7a)[_0x5ebcbe('0x26')](function(_0x73e409){return _0x73e409;});return null;};}function removeEntity(_0x49e03e){return function(_0x4391f6){const _0x5ec77f=a394_0x57d9;if(_0x4391f6)return _0x4391f6[_0x5ec77f('0x5e')]()[_0x5ec77f('0x26')](function(){const _0x1ccbc6=_0x5ec77f,_0x1587ce=_0x4391f6[_0x1ccbc6('0x3b')]({'plain':!![]}),_0x15827f='MailAccounts';return db[_0x1ccbc6('0x14')][_0x1ccbc6('0x5e')]({'where':{'type':_0x15827f,'resourceId':_0x1587ce['id']}})['then'](function(){return _0x4391f6;});})[_0x5ec77f('0x26')](function(){const _0x178bc6=_0x5ec77f;_0x49e03e[_0x178bc6('0x77')](0xcc)['end']();});};}function handleEntityNotFound(_0x1649f6){return function(_0x3d2168){return!_0x3d2168&&_0x1649f6['sendStatus'](0x194),_0x3d2168;};}function handleError(_0x123578,_0x2239bb){return _0x2239bb=_0x2239bb||0x1f4,function(_0x472451){const _0x1b3ba9=a394_0x57d9;logger[_0x1b3ba9('0x53')](_0x472451[_0x1b3ba9('0x65')]),_0x472451[_0x1b3ba9('0x34')]&&delete _0x472451[_0x1b3ba9('0x34')],_0x123578['status'](_0x2239bb)['send'](_0x472451);};}exports[_0x358eb7('0x3f')]=function(_0x4f870b,_0x713074){const _0x32c910=_0x358eb7;let _0x19fa87={'include':[{'model':db[_0x32c910('0x13')],'as':_0x32c910('0x80')},{'model':db['MailServerOut'],'as':_0x32c910('0x9d')},{'model':db[_0x32c910('0x6b')],'as':'mandatoryDispositionPause'}]};const _0x1ba2a5={},_0x34e943={'count':0x0,'rows':[]},_0x2eff77=_[_0x32c910('0x85')](db[_0x32c910('0x25')][_0x32c910('0x7')],function(_0x4d76ea){const _0x133ef1=_0x32c910;return{'name':_0x4d76ea[_0x133ef1('0x20')],'type':_0x4d76ea[_0x133ef1('0x79')][_0x133ef1('0x51')]};});_0x1ba2a5[_0x32c910('0x59')]=_[_0x32c910('0x85')](_0x2eff77,_0x32c910('0x34')),_0x1ba2a5[_0x32c910('0x7b')]=_[_0x32c910('0x8d')](_0x4f870b[_0x32c910('0x7b')]),_0x1ba2a5[_0x32c910('0x83')]=_[_0x32c910('0x72')](_0x1ba2a5[_0x32c910('0x59')],_0x1ba2a5['query']),_0x19fa87['attributes']=_[_0x32c910('0x72')](_0x1ba2a5['model'],qs[_0x32c910('0x82')](_0x4f870b[_0x32c910('0x7b')][_0x32c910('0x82')])),_0x19fa87[_0x32c910('0x60')]=_0x19fa87['attributes'][_0x32c910('0x90')]?_0x19fa87[_0x32c910('0x60')]:_0x1ba2a5[_0x32c910('0x59')];typeof _0x4f870b[_0x32c910('0x7b')]['nolimit']===_0x32c910('0x3')&&(_0x19fa87['limit']=qs[_0x32c910('0xc')](_0x4f870b[_0x32c910('0x7b')][_0x32c910('0xc')]),_0x19fa87[_0x32c910('0x30')]=qs[_0x32c910('0x30')](_0x4f870b[_0x32c910('0x7b')][_0x32c910('0x30')]));_0x19fa87[_0x32c910('0xa')]=qs[_0x32c910('0x12')](_0x4f870b[_0x32c910('0x7b')]['sort']),_0x19fa87[_0x32c910('0x54')]=qs['filters'](_[_0x32c910('0x88')](_0x4f870b[_0x32c910('0x7b')],_0x1ba2a5[_0x32c910('0x83')]),_0x2eff77);_0x4f870b[_0x32c910('0x7b')][_0x32c910('0x4')]&&(_0x19fa87[_0x32c910('0x54')]=_[_0x32c910('0x2c')](_0x19fa87[_0x32c910('0x54')],{[Op['or']]:_['map'](_0x2eff77,function(_0x31c538){const _0x8cb478=_0x32c910;if(_0x31c538['type']!=='VIRTUAL'){const _0x24c328={};return _0x24c328[_0x31c538[_0x8cb478('0x34')]]={[Op['like']]:'%'+_0x4f870b[_0x8cb478('0x7b')]['filter']+'%'},_0x24c328;}})}));_0x19fa87=_['merge']({},_0x19fa87,_0x4f870b[_0x32c910('0x24')]);const _0x2e991c={'where':_0x19fa87[_0x32c910('0x54')]};return db[_0x32c910('0x25')]['count'](_0x2e991c)[_0x32c910('0x26')](function(_0x4284de){const _0x40b063=_0x32c910;return _0x34e943[_0x40b063('0x94')]=_0x4284de,_0x4f870b[_0x40b063('0x7b')][_0x40b063('0x1a')]&&(_0x19fa87[_0x40b063('0x5a')]=[{'all':!![]}]),db[_0x40b063('0x25')][_0x40b063('0x62')](_0x19fa87);})[_0x32c910('0x26')](function(_0xed7e37){const _0x3135b6=_0x32c910;return _0x34e943[_0x3135b6('0x18')]=_0xed7e37,_0x34e943;})[_0x32c910('0x26')](respondWithFilteredResult(_0x713074,_0x19fa87))[_0x32c910('0x5b')](handleError(_0x713074,null));},exports['show']=function(_0x4388c4,_0x310838){const _0x25902f=_0x358eb7;let _0x8cfc38={'raw':![],'where':{'id':_0x4388c4[_0x25902f('0xa5')]['id']},'include':[{'model':db['MailServerIn'],'as':_0x25902f('0x80')},{'model':db['MailServerOut'],'as':_0x25902f('0x9d')},{'model':db[_0x25902f('0x6b')],'as':_0x25902f('0x17')}]};const _0x5e0b59={};return _0x5e0b59[_0x25902f('0x59')]=_[_0x25902f('0x8d')](db[_0x25902f('0x25')][_0x25902f('0x7')]),_0x5e0b59[_0x25902f('0x7b')]=_[_0x25902f('0x8d')](_0x4388c4['query']),_0x5e0b59[_0x25902f('0x83')]=_[_0x25902f('0x72')](_0x5e0b59['model'],_0x5e0b59[_0x25902f('0x7b')]),_0x8cfc38[_0x25902f('0x60')]=_['intersection'](_0x5e0b59[_0x25902f('0x59')],qs['fields'](_0x4388c4[_0x25902f('0x7b')][_0x25902f('0x82')])),_0x8cfc38[_0x25902f('0x60')]=_0x8cfc38[_0x25902f('0x60')][_0x25902f('0x90')]?_0x8cfc38[_0x25902f('0x60')]:_0x5e0b59[_0x25902f('0x59')],_0x4388c4[_0x25902f('0x7b')]['includeAll']&&(_0x8cfc38['include']=[{'all':!![]}]),_0x8cfc38=_['merge']({},_0x8cfc38,_0x4388c4[_0x25902f('0x24')]),db[_0x25902f('0x25')][_0x25902f('0x9')](_0x8cfc38)['then'](handleEntityNotFound(_0x310838,null))[_0x25902f('0x26')](respondWithResult(_0x310838,null))[_0x25902f('0x5b')](handleError(_0x310838,null));},exports[_0x358eb7('0x68')]=function(_0x296823,_0x4a14a8){const _0xc5542e=_0x358eb7;return _0x296823['body']['id']&&delete _0x296823[_0xc5542e('0x81')]['id'],db[_0xc5542e('0x25')][_0xc5542e('0x9')]({'where':{'id':_0x296823[_0xc5542e('0xa5')]['id']},'include':[{'model':db[_0xc5542e('0x13')],'as':_0xc5542e('0x80')},{'model':db[_0xc5542e('0x2a')],'as':_0xc5542e('0x9d')},{'model':db['Pause'],'as':_0xc5542e('0x17')}]})['then'](handleEntityNotFound(_0x4a14a8,null))[_0xc5542e('0x26')](saveUpdates(_0x296823[_0xc5542e('0x81')],null))[_0xc5542e('0x26')](function(_0x19b80e){const _0x58ccdb=_0xc5542e;if(_0x19b80e&&_0x296823[_0x58ccdb('0x81')][_0x58ccdb('0x80')])return db['MailServerIn']['update'](_0x296823[_0x58ccdb('0x81')]['Imap'],{'where':{'MailAccountId':_0x19b80e['id']}})['then'](function(){return _0x19b80e;});return _0x19b80e;})[_0xc5542e('0x26')](function(_0x5d948f){const _0x14df2c=_0xc5542e;if(_0x5d948f&&_0x296823['body']['Smtp'])return db[_0x14df2c('0x2a')][_0x14df2c('0x68')](_0x296823[_0x14df2c('0x81')][_0x14df2c('0x9d')],{'where':{'MailAccountId':_0x5d948f['id']}})[_0x14df2c('0x26')](function(){return _0x5d948f;});return _0x5d948f;})[_0xc5542e('0x26')](respondWithResult(_0x4a14a8,null))[_0xc5542e('0x5b')](handleError(_0x4a14a8,null));},exports[_0x358eb7('0x5')]=function(_0x22cf54,_0x15a04d){const _0x11e773=_0x358eb7;return db[_0x11e773('0x25')][_0x11e773('0x5')]()['then'](respondWithResult(_0x15a04d,null))[_0x11e773('0x5b')](handleError(_0x15a04d,null));},exports[_0x358eb7('0x96')]=function(_0x4bdecf,_0xae534d){const _0x4e03af=_0x358eb7;return _0x4bdecf[_0x4e03af('0x81')]['id']&&delete _0x4bdecf[_0x4e03af('0x81')]['id'],db[_0x4e03af('0x25')]['findOne']({'where':{'id':_0x4bdecf['params']['id']}})[_0x4e03af('0x26')](handleEntityNotFound(_0xae534d,null))[_0x4e03af('0x26')](function(_0x3ba796){const _0x210dcd=_0x4e03af;if(_0x3ba796)return _0x4bdecf[_0x210dcd('0x81')]['MailAccountId']=_0x3ba796['id'],db['Disposition'][_0x210dcd('0x3a')](_0x4bdecf[_0x210dcd('0x81')]);})[_0x4e03af('0x26')](respondWithResult(_0xae534d,null))['catch'](handleError(_0xae534d,null));},exports['getDispositions']=function(_0x43c8c0,_0x200049){const _0x44c7eb=_0x358eb7;let _0x5d55aa={'raw':![],'where':{}};const _0x2ec5a6={},_0x1d2c7a={'count':0x0,'rows':[]};return db[_0x44c7eb('0x25')][_0x44c7eb('0x9')]({'where':{'id':_0x43c8c0[_0x44c7eb('0xa5')]['id']}})['then'](handleEntityNotFound(_0x200049,null))[_0x44c7eb('0x26')](function(_0x47551b){const _0x37a69c=_0x44c7eb;if(_0x47551b)return _0x2ec5a6['model']=_['keys'](db['Disposition']['rawAttributes']),_0x2ec5a6[_0x37a69c('0x7b')]=_[_0x37a69c('0x8d')](_0x43c8c0[_0x37a69c('0x7b')]),_0x2ec5a6[_0x37a69c('0x83')]=_[_0x37a69c('0x72')](_0x2ec5a6[_0x37a69c('0x59')],_0x2ec5a6[_0x37a69c('0x7b')]),_0x5d55aa[_0x37a69c('0x60')]=_['intersection'](_0x2ec5a6['model'],qs[_0x37a69c('0x82')](_0x43c8c0['query'][_0x37a69c('0x82')])),_0x5d55aa[_0x37a69c('0x60')]=_0x5d55aa[_0x37a69c('0x60')][_0x37a69c('0x90')]?_0x5d55aa[_0x37a69c('0x60')]:_0x2ec5a6[_0x37a69c('0x59')],typeof _0x43c8c0[_0x37a69c('0x7b')]['nolimit']===_0x37a69c('0x3')&&(_0x5d55aa[_0x37a69c('0xc')]=qs['limit'](_0x43c8c0[_0x37a69c('0x7b')][_0x37a69c('0xc')]),_0x5d55aa['offset']=qs['offset'](_0x43c8c0['query']['offset'])),_0x5d55aa[_0x37a69c('0xa')]=qs[_0x37a69c('0x12')](_0x43c8c0['query']['sort']),_0x5d55aa[_0x37a69c('0x54')]=qs[_0x37a69c('0x83')](_['pick'](_0x43c8c0['query'],_0x2ec5a6[_0x37a69c('0x83')])),_0x5d55aa[_0x37a69c('0x54')][_0x37a69c('0x1d')]=_0x47551b['id'],_0x43c8c0['query']['filter']&&(_0x5d55aa['where']=_[_0x37a69c('0x2c')](_0x5d55aa['where'],{[Op['or']]:_[_0x37a69c('0x85')](_0x5d55aa[_0x37a69c('0x60')],function(_0x8b1e21){const _0x4fed2f=_0x37a69c,_0x4db4b0={};return _0x4db4b0[_0x8b1e21]={[Op[_0x4fed2f('0x6f')]]:'%'+_0x43c8c0[_0x4fed2f('0x7b')][_0x4fed2f('0x4')]+'%'},_0x4db4b0;})})),_0x5d55aa=_[_0x37a69c('0x2c')]({},_0x5d55aa,_0x43c8c0[_0x37a69c('0x24')]),db['Disposition']['count']({'where':_0x5d55aa[_0x37a69c('0x54')]})[_0x37a69c('0x26')](function(_0x39ffbf){const _0x395291=_0x37a69c;return _0x1d2c7a['count']=_0x39ffbf,_0x43c8c0['query'][_0x395291('0x1a')]&&(_0x5d55aa[_0x395291('0x5a')]=[{'all':!![]}]),db[_0x395291('0x52')][_0x395291('0x62')](_0x5d55aa);})[_0x37a69c('0x26')](function(_0x2c82e0){const _0x21d57d=_0x37a69c;return _0x1d2c7a[_0x21d57d('0x18')]=_0x2c82e0,_0x1d2c7a;});})['then'](respondWithFilteredResult(_0x200049,_0x5d55aa))[_0x44c7eb('0x5b')](handleError(_0x200049,null));},exports[_0x358eb7('0x11')]=function(_0x32141a,_0x3b6922){const _0x283108=_0x358eb7;return db[_0x283108('0x25')][_0x283108('0x9')]({'where':{'id':_0x32141a[_0x283108('0xa5')]['id']}})[_0x283108('0x26')](handleEntityNotFound(_0x3b6922,null))['then'](function(_0x1afe72){const _0x21614d=_0x283108;if(_0x1afe72)return _0x1afe72[_0x21614d('0x11')](_0x32141a[_0x21614d('0x7b')][_0x21614d('0xa1')]);})['then'](respondWithStatusCode(_0x3b6922,null))[_0x283108('0x5b')](handleError(_0x3b6922,null));},exports[_0x358eb7('0xa6')]=function(_0x7fa46e,_0x4d5dd3){const _0xc95448=_0x358eb7;return _0x7fa46e[_0xc95448('0x81')]['id']&&delete _0x7fa46e[_0xc95448('0x81')]['id'],db[_0xc95448('0x25')][_0xc95448('0x9')]({'where':{'id':_0x7fa46e[_0xc95448('0xa5')]['id']}})[_0xc95448('0x26')](handleEntityNotFound(_0x4d5dd3,null))[_0xc95448('0x26')](function(_0x12125a){const _0x387d1a=_0xc95448;if(_0x12125a)return _0x7fa46e[_0x387d1a('0x81')][_0x387d1a('0x1d')]=_0x12125a['id'],db[_0x387d1a('0x78')][_0x387d1a('0x3a')](_0x7fa46e[_0x387d1a('0x81')]);})['then'](respondWithResult(_0x4d5dd3,null))[_0xc95448('0x5b')](handleError(_0x4d5dd3,null));},exports[_0x358eb7('0x66')]=function(_0x374ff6,_0x198683){const _0x231313=_0x358eb7;let _0x1938c4={'raw':![],'where':{}};const _0x395d92={},_0x59ef88={'count':0x0,'rows':[]};return db[_0x231313('0x25')][_0x231313('0x9')]({'where':{'id':_0x374ff6['params']['id']}})[_0x231313('0x26')](handleEntityNotFound(_0x198683,null))[_0x231313('0x26')](function(_0x885230){const _0x4535fe=_0x231313;if(_0x885230)return _0x395d92[_0x4535fe('0x59')]=_[_0x4535fe('0x8d')](db['CannedAnswer'][_0x4535fe('0x7')]),_0x395d92[_0x4535fe('0x7b')]=_[_0x4535fe('0x8d')](_0x374ff6['query']),_0x395d92['filters']=_['intersection'](_0x395d92[_0x4535fe('0x59')],_0x395d92['query']),_0x1938c4['attributes']=_[_0x4535fe('0x72')](_0x395d92[_0x4535fe('0x59')],qs[_0x4535fe('0x82')](_0x374ff6[_0x4535fe('0x7b')][_0x4535fe('0x82')])),_0x1938c4[_0x4535fe('0x60')]=_0x1938c4[_0x4535fe('0x60')][_0x4535fe('0x90')]?_0x1938c4[_0x4535fe('0x60')]:_0x395d92[_0x4535fe('0x59')],typeof _0x374ff6['query'][_0x4535fe('0x9b')]==='undefined'&&(_0x1938c4[_0x4535fe('0xc')]=qs[_0x4535fe('0xc')](_0x374ff6[_0x4535fe('0x7b')][_0x4535fe('0xc')]),_0x1938c4['offset']=qs[_0x4535fe('0x30')](_0x374ff6[_0x4535fe('0x7b')][_0x4535fe('0x30')])),_0x1938c4[_0x4535fe('0xa')]=qs['sort'](_0x374ff6[_0x4535fe('0x7b')][_0x4535fe('0x12')]),_0x1938c4[_0x4535fe('0x54')]=qs['filters'](_[_0x4535fe('0x88')](_0x374ff6[_0x4535fe('0x7b')],_0x395d92[_0x4535fe('0x83')])),_0x1938c4['where']['MailAccountId']=_0x885230['id'],_0x374ff6[_0x4535fe('0x7b')][_0x4535fe('0x4')]&&(_0x1938c4[_0x4535fe('0x54')]=_[_0x4535fe('0x2c')](_0x1938c4['where'],{[Op['or']]:_[_0x4535fe('0x85')](_0x1938c4[_0x4535fe('0x60')],function(_0x4e43b2){const _0x354366=_0x4535fe,_0xfaa864={};return _0xfaa864[_0x4e43b2]={[Op[_0x354366('0x6f')]]:'%'+_0x374ff6[_0x354366('0x7b')]['filter']+'%'},_0xfaa864;})})),_0x1938c4=_[_0x4535fe('0x2c')]({},_0x1938c4,_0x374ff6[_0x4535fe('0x24')]),db[_0x4535fe('0x78')][_0x4535fe('0x94')]({'where':_0x1938c4[_0x4535fe('0x54')]})[_0x4535fe('0x26')](function(_0x4dca9a){const _0x44a25c=_0x4535fe;return _0x59ef88[_0x44a25c('0x94')]=_0x4dca9a,_0x374ff6[_0x44a25c('0x7b')]['includeAll']&&(_0x1938c4['include']=[{'all':!![]}]),db['CannedAnswer'][_0x44a25c('0x62')](_0x1938c4);})[_0x4535fe('0x26')](function(_0x12d913){const _0x209a7f=_0x4535fe;return _0x59ef88[_0x209a7f('0x18')]=_0x12d913,_0x59ef88;});})[_0x231313('0x26')](respondWithFilteredResult(_0x198683,_0x1938c4))['catch'](handleError(_0x198683,null));},exports['removeAnswers']=function(_0x4791bf,_0x40e1e3){const _0x38e1f4=_0x358eb7;return db[_0x38e1f4('0x25')]['findOne']({'where':{'id':_0x4791bf['params']['id']}})[_0x38e1f4('0x26')](handleEntityNotFound(_0x40e1e3,null))[_0x38e1f4('0x26')](function(_0x4bfb8f){const _0x230440=_0x38e1f4;if(_0x4bfb8f)return _0x4bfb8f[_0x230440('0x48')](_0x4791bf[_0x230440('0x7b')][_0x230440('0xa1')]);})['then'](respondWithStatusCode(_0x40e1e3,null))[_0x38e1f4('0x5b')](handleError(_0x40e1e3,null));},exports['create']=function(_0x67be38,_0x50d832){const _0x562303=_0x358eb7,_0x543f50={'name':_0x67be38['body']['name'],'key':_0x67be38['body'][_0x562303('0x51')],'email':_0x67be38[_0x562303('0x81')][_0x562303('0x31')],'ListId':_0x67be38[_0x562303('0x81')][_0x562303('0x8c')],'active':!_[_0x562303('0x44')](_0x67be38['body'][_0x562303('0x89')])?_0x67be38['body'][_0x562303('0x89')]:!![],'description':_0x67be38[_0x562303('0x81')][_0x562303('0x4b')]||null,'Imap':{},'Smtp':{}};return _[_0x562303('0x44')](_0x67be38[_0x562303('0x81')][_0x562303('0x38')])?(_0x67be38[_0x562303('0x81')]['cauthentication']?(_0x543f50['Imap'][_0x562303('0x8e')]=_0x67be38[_0x562303('0x81')]['cuser'],_0x543f50[_0x562303('0x9d')][_0x562303('0x8e')]=_0x67be38[_0x562303('0x81')][_0x562303('0x8a')],_0x543f50[_0x562303('0x80')]['password']=_0x67be38[_0x562303('0x81')][_0x562303('0x70')],_0x543f50[_0x562303('0x9d')][_0x562303('0x63')]=_0x67be38['body'][_0x562303('0x70')]):(_0x543f50['Imap'][_0x562303('0x36')]=![],_0x543f50[_0x562303('0x9d')][_0x562303('0x36')]=![]),_0x543f50[_0x562303('0x80')]['host']=_0x67be38[_0x562303('0x81')][_0x562303('0x80')][_0x562303('0x8b')],_0x543f50[_0x562303('0x80')][_0x562303('0x6d')]=_0x67be38[_0x562303('0x81')][_0x562303('0x80')][_0x562303('0x6d')],_0x543f50[_0x562303('0x9d')][_0x562303('0x8b')]=_0x67be38[_0x562303('0x81')][_0x562303('0x9d')][_0x562303('0x8b')],_0x543f50['Smtp'][_0x562303('0x6d')]=_0x67be38[_0x562303('0x81')]['Smtp'][_0x562303('0x6d')]):(_0x543f50[_0x562303('0x80')]['service']=_0x67be38[_0x562303('0x81')][_0x562303('0x38')],_0x543f50[_0x562303('0x9d')]['service']=_0x67be38['body'][_0x562303('0x38')],_0x543f50[_0x562303('0x80')][_0x562303('0x8e')]=_0x67be38[_0x562303('0x81')][_0x562303('0x8a')],_0x543f50[_0x562303('0x9d')][_0x562303('0x8e')]=_0x67be38[_0x562303('0x81')][_0x562303('0x8a')],_0x543f50[_0x562303('0x80')][_0x562303('0x71')]=_0x67be38[_0x562303('0x81')][_0x562303('0x70')],_0x543f50[_0x562303('0x9d')]['pass']=_0x67be38['body'][_0x562303('0x70')]),db[_0x562303('0x25')]['create'](_0x543f50,{'include':[{'model':db['MailServerOut'],'as':_0x562303('0x9d')},{'model':db[_0x562303('0x13')],'as':_0x562303('0x80')}]})[_0x562303('0x26')](function(_0x3ba3f1){const _0x53eebe=_0x562303,_0x4d57fc=_0x67be38['user']['get']({'plain':!![]});if(!_0x4d57fc)throw new Error(_0x53eebe('0x97'));if(_0x4d57fc['role']===_0x53eebe('0x8e')){const _0x2b81bd=_0x3ba3f1[_0x53eebe('0x3b')]({'plain':!![]});return db[_0x53eebe('0xd')][_0x53eebe('0x9')]({'where':{'name':_0x53eebe('0x43'),'userProfileId':_0x4d57fc['userProfileId']},'raw':!![]})[_0x53eebe('0x26')](function(_0x52aa40){const _0x235119=_0x53eebe;return _0x52aa40&&_0x52aa40[_0x235119('0xa4')]===0x0?db[_0x235119('0x14')][_0x235119('0x3a')]({'name':_0x2b81bd['name'],'resourceId':_0x2b81bd['id'],'type':_0x52aa40['name'],'sectionId':_0x52aa40['id']},{})['then'](function(){return _0x3ba3f1;}):_0x3ba3f1;})[_0x53eebe('0x5b')](function(_0x31316b){const _0x322620=_0x53eebe;logger[_0x322620('0x53')](_0x322620('0x2e'),_0x31316b);throw _0x31316b;});}return _0x3ba3f1;})['then'](respondWithResult(_0x50d832,0xc9))['catch'](handleError(_0x50d832,null));},exports[_0x358eb7('0x45')]=function(_0x40f01a,_0x40b187){const _0x8a7e60=_0x358eb7;return db['MailAccount'][_0x8a7e60('0x9')]({'where':{'id':_0x40f01a[_0x8a7e60('0xa5')]['id']}})[_0x8a7e60('0x26')](handleEntityNotFound(_0x40b187,null))[_0x8a7e60('0x26')](function(_0x5e3e22){const _0x45b3f9=_0x8a7e60;if(_0x5e3e22)return _0x5e3e22[_0x45b3f9('0x45')]();return null;})[_0x8a7e60('0x26')](respondWithResult(_0x40b187,null))['catch'](handleError(_0x40b187,null));},exports[_0x358eb7('0xa7')]=function(_0x33750e,_0x404b1d){const _0x396f03=_0x358eb7;return _0x33750e[_0x396f03('0x81')]['id']&&delete _0x33750e[_0x396f03('0x81')]['id'],db['MailAccount'][_0x396f03('0x9')]({'where':{'id':_0x33750e[_0x396f03('0xa5')]['id']}})[_0x396f03('0x26')](handleEntityNotFound(_0x404b1d,null))['then'](function(_0x5f2708){const _0x1b880c=_0x396f03;if(_0x5f2708)return _0x33750e['body'][_0x1b880c('0x1d')]=_0x5f2708['id'],db[_0x1b880c('0x13')][_0x1b880c('0x3a')](_0x33750e[_0x1b880c('0x81')]);})[_0x396f03('0x26')](respondWithResult(_0x404b1d,null))[_0x396f03('0x5b')](handleError(_0x404b1d,null));},exports[_0x358eb7('0x7e')]=function(_0x28fd9e,_0x2a8bc8){const _0x48c76a=_0x358eb7;return db[_0x48c76a('0x25')][_0x48c76a('0x9')]({'where':{'id':_0x28fd9e['params']['id']}})[_0x48c76a('0x26')](handleEntityNotFound(_0x2a8bc8,null))['then'](function(_0x684d88){const _0x4f0f4a=_0x48c76a;if(_0x684d88)return _0x684d88[_0x4f0f4a('0x1e')](null);return null;})[_0x48c76a('0x26')](respondWithStatusCode(_0x2a8bc8,null))[_0x48c76a('0x5b')](handleError(_0x2a8bc8,null));},exports[_0x358eb7('0x49')]=function(_0x43bd72,_0x7712d0){const _0x3d46df=_0x358eb7;return db[_0x3d46df('0x25')]['findOne']({'where':{'id':_0x43bd72['params']['id']}})[_0x3d46df('0x26')](handleEntityNotFound(_0x7712d0,null))[_0x3d46df('0x26')](function(_0x3b523d){const _0x59c280=_0x3d46df;if(_0x3b523d)return _0x3b523d[_0x59c280('0x49')]();return null;})[_0x3d46df('0x26')](respondWithResult(_0x7712d0,null))[_0x3d46df('0x5b')](handleError(_0x7712d0,null));},exports['addSmtp']=function(_0x141bd8,_0x5c3332){const _0x1c7bd8=_0x358eb7;return _0x141bd8[_0x1c7bd8('0x81')]['id']&&delete _0x141bd8[_0x1c7bd8('0x81')]['id'],db[_0x1c7bd8('0x25')][_0x1c7bd8('0x9')]({'where':{'id':_0x141bd8[_0x1c7bd8('0xa5')]['id']}})[_0x1c7bd8('0x26')](handleEntityNotFound(_0x5c3332,null))[_0x1c7bd8('0x26')](function(_0x29157a){const _0x5e857d=_0x1c7bd8;if(_0x29157a)return _0x141bd8[_0x5e857d('0x81')][_0x5e857d('0x1d')]=_0x29157a['id'],db[_0x5e857d('0x2a')][_0x5e857d('0x3a')](_0x141bd8[_0x5e857d('0x81')]);})[_0x1c7bd8('0x26')](respondWithResult(_0x5c3332,null))[_0x1c7bd8('0x5b')](handleError(_0x5c3332,null));},exports[_0x358eb7('0x2f')]=function(_0x4c9fba,_0x15a0e5){const _0x2c1cc6=_0x358eb7;return db[_0x2c1cc6('0x25')][_0x2c1cc6('0x9')]({'where':{'id':_0x4c9fba[_0x2c1cc6('0xa5')]['id']}})[_0x2c1cc6('0x26')](handleEntityNotFound(_0x15a0e5,null))[_0x2c1cc6('0x26')](function(_0x5a5783){const _0x13e5c4=_0x2c1cc6;if(_0x5a5783)return _0x5a5783[_0x13e5c4('0x5c')](null);return null;})[_0x2c1cc6('0x26')](respondWithStatusCode(_0x15a0e5,null))[_0x2c1cc6('0x5b')](handleError(_0x15a0e5,null));},exports[_0x358eb7('0x3c')]=function(_0x171329,_0x1550b0){const _0x200662=_0x358eb7;return db[_0x200662('0x87')][_0x200662('0x9')]({'where':{'id':_0x171329[_0x200662('0xa5')]['id']}})[_0x200662('0x26')](function(_0x578a2c){const _0xfd5a31=_0x200662;if(_0x578a2c)return _0x578a2c[_0xfd5a31('0x3c')](_0x171329[_0xfd5a31('0x81')][_0xfd5a31('0xa1')],{'through':_['omit'](_0x171329[_0xfd5a31('0x81')],['ids','id'])});})[_0x200662('0x26')](respondWithResult(_0x1550b0,null))[_0x200662('0x5b')](handleError(_0x1550b0,null));},exports[_0x358eb7('0x98')]=function(_0x169f84,_0x136b07){const _0x2e8038=_0x358eb7;let _0x57ec1c={'raw':![],'where':{}};const _0x276016={},_0x2f7742={'count':0x0,'rows':[]};return db['MailAccount'][_0x2e8038('0x9')]({'where':{'id':_0x169f84[_0x2e8038('0xa5')]['id']}})[_0x2e8038('0x26')](handleEntityNotFound(_0x136b07,null))['then'](function(_0x521b30){const _0xc92bba=_0x2e8038;if(_0x521b30)return _0x276016[_0xc92bba('0x59')]=_[_0xc92bba('0x8d')](db[_0xc92bba('0x87')][_0xc92bba('0x7')]),_0x276016[_0xc92bba('0x7b')]=_[_0xc92bba('0x8d')](_0x169f84[_0xc92bba('0x7b')]),_0x276016[_0xc92bba('0x83')]=_[_0xc92bba('0x72')](_0x276016[_0xc92bba('0x59')],_0x276016[_0xc92bba('0x7b')]),_0x57ec1c[_0xc92bba('0x60')]=_['intersection'](_0x276016[_0xc92bba('0x59')],qs[_0xc92bba('0x82')](_0x169f84[_0xc92bba('0x7b')][_0xc92bba('0x82')])),_0x57ec1c['attributes']=_0x57ec1c['attributes']['length']?_0x57ec1c['attributes']:_0x276016[_0xc92bba('0x59')],typeof _0x169f84[_0xc92bba('0x7b')]['nolimit']===_0xc92bba('0x3')&&(_0x57ec1c[_0xc92bba('0xc')]=qs[_0xc92bba('0xc')](_0x169f84['query'][_0xc92bba('0xc')]),_0x57ec1c[_0xc92bba('0x30')]=qs[_0xc92bba('0x30')](_0x169f84[_0xc92bba('0x7b')][_0xc92bba('0x30')])),_0x57ec1c[_0xc92bba('0xa')]=qs['sort'](_0x169f84[_0xc92bba('0x7b')][_0xc92bba('0x12')]),_0x57ec1c[_0xc92bba('0x54')]=qs[_0xc92bba('0x83')](_[_0xc92bba('0x88')](_0x169f84[_0xc92bba('0x7b')],_0x276016[_0xc92bba('0x83')])),_0x57ec1c[_0xc92bba('0x54')][_0xc92bba('0x1d')]=_0x521b30['id'],_0x169f84[_0xc92bba('0x7b')][_0xc92bba('0x4')]&&(_0x57ec1c[_0xc92bba('0x54')]=_['merge'](_0x57ec1c[_0xc92bba('0x54')],{[Op['or']]:_['map'](_0x57ec1c[_0xc92bba('0x60')],function(_0x2cb030){const _0x225d15=_0xc92bba,_0xf2da0b={};return _0xf2da0b[_0x2cb030]={[Op[_0x225d15('0x6f')]]:'%'+_0x169f84['query'][_0x225d15('0x4')]+'%'},_0xf2da0b;})})),_0x57ec1c=_[_0xc92bba('0x2c')]({},_0x57ec1c,_0x169f84[_0xc92bba('0x24')]),db[_0xc92bba('0x87')][_0xc92bba('0x94')]({'where':_0x57ec1c[_0xc92bba('0x54')]})[_0xc92bba('0x26')](function(_0x253aab){const _0x34831b=_0xc92bba;return _0x2f7742['count']=_0x253aab,_0x169f84[_0x34831b('0x7b')]['includeAll']&&(_0x57ec1c[_0x34831b('0x5a')]=[{'model':db[_0x34831b('0x23')],'as':_0x34831b('0x47'),'required':![]},{'model':db[_0x34831b('0x27')],'as':_0x34831b('0x7c'),'attributes':[_0x34831b('0x34'),_0x34831b('0x35'),_0x34831b('0x56')],'required':![]},{'model':db['Tag'],'as':'Tags','attributes':['id',_0x34831b('0x34'),'color'],'where':_0x169f84[_0x34831b('0x7b')][_0x34831b('0x7a')]?{'id':_0x169f84[_0x34831b('0x7b')][_0x34831b('0x7a')]}:undefined,'required':_0x169f84[_0x34831b('0x7b')][_0x34831b('0x7a')]?!![]:![]}]),db[_0x34831b('0x87')]['findAll'](_0x57ec1c);})[_0xc92bba('0x26')](function(_0x1d6296){const _0x233cdf=_0xc92bba;return _0x2f7742[_0x233cdf('0x18')]=_0x1d6296,_0x2f7742;});})['then'](respondWithFilteredResult(_0x136b07,_0x57ec1c))['catch'](handleError(_0x136b07,null));},exports[_0x358eb7('0x92')]=function(_0x4c4f0d,_0x2290a3){const _0x1725a6=_0x358eb7;return db[_0x1725a6('0x25')][_0x1725a6('0x9')]({'where':{'id':_0x4c4f0d[_0x1725a6('0xa5')]['id']}})['then'](handleEntityNotFound(_0x2290a3,null))[_0x1725a6('0x26')](function(_0x2cc1e4){const _0x1d5efb=_0x1725a6;if(_0x2cc1e4)return db[_0x1d5efb('0x58')][_0x1d5efb('0x5d')](function(_0x262469){const _0x3d6db6=_0x1d5efb;return db[_0x3d6db6('0x91')]['destroy']({'where':{'MailAccountId':_0x4c4f0d[_0x3d6db6('0xa5')]['id']},'transaction':_0x262469})[_0x3d6db6('0x26')](function(){const _0x1690c5=_0x3d6db6,_0x64d96a=_['map'](_0x4c4f0d[_0x1690c5('0x81')],function(_0x4b21e2){const _0x49a07f=_0x1690c5;return _0x4b21e2[_0x49a07f('0x1d')]=_0x4c4f0d[_0x49a07f('0xa5')]['id'],_0x4b21e2;});return db[_0x1690c5('0x91')][_0x1690c5('0x2d')](_0x64d96a,{'transaction':_0x262469});});})[_0x1d5efb('0x26')](function(){const _0x75c21=_0x1d5efb;return db[_0x75c21('0x91')][_0x75c21('0x8f')]({'where':{'MailAccountId':_0x4c4f0d[_0x75c21('0xa5')]['id']},'order':'priority'});});})['then'](respondWithResult(_0x2290a3,null))[_0x1725a6('0x5b')](handleError(_0x2290a3,null));},exports[_0x358eb7('0x39')]=function(_0x4164fa,_0x53db02){const _0x26434f=_0x358eb7;let _0x556020={};const _0x59ded1={};let _0x4d097a,_0x57d1d4;return db[_0x26434f('0x25')][_0x26434f('0x9')]({'where':{'id':_0x4164fa[_0x26434f('0xa5')]['id']}})['then'](handleEntityNotFound(_0x53db02,null))['then'](function(_0x4103fd){const _0x5ebf2d=_0x26434f;if(_0x4103fd)return _0x4d097a=_0x4103fd,_0x59ded1[_0x5ebf2d('0x59')]=_[_0x5ebf2d('0x8d')](db[_0x5ebf2d('0x91')][_0x5ebf2d('0x7')]),_0x59ded1['query']=_[_0x5ebf2d('0x8d')](_0x4164fa[_0x5ebf2d('0x7b')]),_0x59ded1['filters']=_[_0x5ebf2d('0x72')](_0x59ded1[_0x5ebf2d('0x59')],_0x59ded1[_0x5ebf2d('0x7b')]),_0x556020[_0x5ebf2d('0x60')]=_[_0x5ebf2d('0x72')](_0x59ded1[_0x5ebf2d('0x59')],qs[_0x5ebf2d('0x82')](_0x4164fa['query']['fields'])),_0x556020[_0x5ebf2d('0x60')]=_0x556020['attributes'][_0x5ebf2d('0x90')]?_0x556020[_0x5ebf2d('0x60')]:_0x59ded1[_0x5ebf2d('0x59')],_0x556020['order']=qs[_0x5ebf2d('0x12')](_0x4164fa[_0x5ebf2d('0x7b')][_0x5ebf2d('0x12')]),_0x556020[_0x5ebf2d('0x54')]=qs[_0x5ebf2d('0x83')](_[_0x5ebf2d('0x88')](_0x4164fa[_0x5ebf2d('0x7b')],_0x59ded1[_0x5ebf2d('0x83')])),_0x4164fa['query']['filter']&&(_0x556020[_0x5ebf2d('0x54')]=_[_0x5ebf2d('0x2c')](_0x556020[_0x5ebf2d('0x54')],{[Op['or']]:_[_0x5ebf2d('0x85')](_0x556020[_0x5ebf2d('0x60')],function(_0x57e81d){const _0x53a64e=_0x5ebf2d,_0x3aaf26={};return _0x3aaf26[_0x57e81d]={[Op[_0x53a64e('0x6f')]]:'%'+_0x4164fa[_0x53a64e('0x7b')][_0x53a64e('0x4')]+'%'},_0x3aaf26;})})),_0x556020=_[_0x5ebf2d('0x2c')]({},_0x556020,_0x4164fa[_0x5ebf2d('0x24')]),_0x4d097a[_0x5ebf2d('0x39')](_0x556020);})[_0x26434f('0x26')](function(_0xf72716){const _0x31c7d0=_0x26434f;if(_0xf72716)return _0x57d1d4=_0xf72716[_0x31c7d0('0x90')],typeof _0x4164fa['query'][_0x31c7d0('0x9b')]===_0x31c7d0('0x3')&&(_0x556020[_0x31c7d0('0xc')]=qs[_0x31c7d0('0xc')](_0x4164fa[_0x31c7d0('0x7b')][_0x31c7d0('0xc')]),_0x556020[_0x31c7d0('0x30')]=qs[_0x31c7d0('0x30')](_0x4164fa[_0x31c7d0('0x7b')][_0x31c7d0('0x30')])),_0x4d097a[_0x31c7d0('0x39')](_0x556020);})[_0x26434f('0x26')](function(_0x37c32d){if(_0x37c32d)return _0x37c32d?{'count':_0x57d1d4,'rows':_0x37c32d}:null;})[_0x26434f('0x26')](respondWithResult(_0x53db02,null))[_0x26434f('0x5b')](handleError(_0x53db02,null));},exports['getMessages']=function(_0x231fc3,_0xa4e8c7){const _0x219bbe=_0x358eb7;let _0x34294e={'raw':!![],'where':{}};const _0x509732={},_0x2b12fa={'count':0x0,'rows':[]};return db['MailAccount']['findOne']({'where':{'id':_0x231fc3['params']['id']}})[_0x219bbe('0x26')](handleEntityNotFound(_0xa4e8c7,null))[_0x219bbe('0x26')](function(_0x57421e){const _0x1280e9=_0x219bbe;if(_0x57421e){_0x509732[_0x1280e9('0x59')]=_[_0x1280e9('0x8d')](db['MailMessage'][_0x1280e9('0x7')]),_0x509732[_0x1280e9('0x7b')]=_['keys'](_0x231fc3[_0x1280e9('0x7b')]),_0x509732['filters']=_[_0x1280e9('0x72')](_0x509732[_0x1280e9('0x59')],_0x509732[_0x1280e9('0x7b')]),_0x34294e[_0x1280e9('0x60')]=_[_0x1280e9('0x72')](_0x509732[_0x1280e9('0x59')],qs[_0x1280e9('0x82')](_0x231fc3[_0x1280e9('0x7b')][_0x1280e9('0x82')])),_0x34294e[_0x1280e9('0x60')]=_0x34294e['attributes']['length']?_0x34294e[_0x1280e9('0x60')]:_0x509732['model'];typeof _0x231fc3[_0x1280e9('0x7b')][_0x1280e9('0x9b')]===_0x1280e9('0x3')&&(_0x34294e[_0x1280e9('0xc')]=qs['limit'](_0x231fc3[_0x1280e9('0x7b')][_0x1280e9('0xc')]),_0x34294e[_0x1280e9('0x30')]=qs[_0x1280e9('0x30')](_0x231fc3[_0x1280e9('0x7b')][_0x1280e9('0x30')]));_0x34294e[_0x1280e9('0xa')]=qs['sort'](_0x231fc3[_0x1280e9('0x7b')]['sort']),_0x34294e[_0x1280e9('0x54')]=qs[_0x1280e9('0x83')](_['pick'](_0x231fc3['query'],_0x509732['filters'])),_0x34294e[_0x1280e9('0x54')][_0x1280e9('0x1d')]=_0x57421e['id'];_0x231fc3[_0x1280e9('0x7b')][_0x1280e9('0x4')]&&(_0x34294e[_0x1280e9('0x54')]=_[_0x1280e9('0x2c')](_0x34294e['where'],{[Op['or']]:_[_0x1280e9('0x85')](_0x34294e[_0x1280e9('0x60')],function(_0x418afb){const _0x54eed6=_0x1280e9,_0x29dc6a={};return _0x29dc6a[_0x418afb]={[Op[_0x54eed6('0x6f')]]:'%'+_0x231fc3[_0x54eed6('0x7b')]['filter']+'%'},_0x29dc6a;})}));if(_0x231fc3[_0x1280e9('0x7b')][_0x1280e9('0x42')]){const _0x20223a=_0x231fc3[_0x1280e9('0x7b')][_0x1280e9('0x42')][_0x1280e9('0x99')](','),_0x2148a5={};_0x2148a5[_0x20223a[0x0]]={[Op['gte']]:moment(_0x20223a[0x1])['format'](_0x1280e9('0x86'))},_0x34294e[_0x1280e9('0x54')]=_[_0x1280e9('0x2c')](_0x34294e[_0x1280e9('0x54')],_0x2148a5);}return _0x34294e=_[_0x1280e9('0x2c')]({},_0x34294e,_0x231fc3[_0x1280e9('0x24')]),db[_0x1280e9('0x61')][_0x1280e9('0x94')]({'where':_0x34294e[_0x1280e9('0x54')]})[_0x1280e9('0x26')](function(_0xae5104){const _0x3a1382=_0x1280e9;return _0x2b12fa[_0x3a1382('0x94')]=_0xae5104,_0x231fc3[_0x3a1382('0x7b')][_0x3a1382('0x1a')]&&(_0x34294e[_0x3a1382('0x5a')]=[{'all':!![]}]),db[_0x3a1382('0x61')]['findAll'](_0x34294e);})[_0x1280e9('0x26')](function(_0x4f875b){const _0x575db8=_0x1280e9;return _0x2b12fa[_0x575db8('0x18')]=_0x4f875b,_0x2b12fa;});}})[_0x219bbe('0x26')](respondWithFilteredResult(_0xa4e8c7,_0x34294e))['catch'](handleError(_0xa4e8c7,null));},exports[_0x358eb7('0x32')]=function(_0x467289,_0x5c6b07){const _0x33d637=_0x358eb7;let _0xbdd793,_0x14ca17={},_0x59692b;return _0x467289[_0x33d637('0x81')]['to']&&(_0x59692b=_0x467289[_0x33d637('0x81')]['to'][_0x33d637('0x99')](',')[0x0]),db[_0x33d637('0x25')][_0x33d637('0x9')]({'where':{'id':_0x467289[_0x33d637('0xa5')]['id']},'include':[{'model':db['CmList'],'as':_0x33d637('0x4d'),'include':[{'model':db['CmContact'],'as':'Contacts','where':{'email':_0x59692b},'limit':0x1,'order':[[_0x33d637('0x75'),_0x33d637('0x2')]]}]},{'model':db[_0x33d637('0x2a')],'as':_0x33d637('0x9d'),'raw':!![]}]})['then'](handleEntityNotFound(_0x5c6b07,null))[_0x33d637('0x26')](function(_0x560af9){const _0x237d09=_0x33d637;if(_0x560af9){_0xbdd793=_0x560af9;if(_0x560af9[_0x237d09('0x9d')]){_[_0x237d09('0x44')](_0x467289['body'][_0x237d09('0x4a')])&&(_0x467289[_0x237d09('0x81')]['from']=util[_0x237d09('0x84')]('%s\x20<%s>',_0x560af9[_0x237d09('0x34')],_0x560af9[_0x237d09('0x31')]||_0x560af9[_0x237d09('0x9d')][_0x237d09('0x8e')]));if(_0x467289[_0x237d09('0x81')]['attachments']&&_0x467289[_0x237d09('0x81')][_0x237d09('0x67')][_0x237d09('0x90')])for(let _0x3070e5=0x0;_0x3070e5<_0x467289[_0x237d09('0x81')][_0x237d09('0x67')][_0x237d09('0x90')];_0x3070e5+=0x1){_0x467289[_0x237d09('0x81')][_0x237d09('0x67')][_0x3070e5]={'filename':_0x467289[_0x237d09('0x81')][_0x237d09('0x67')][_0x3070e5]['name'],'path':path[_0x237d09('0x1c')](config[_0x237d09('0x22')],_0x237d09('0x69'),_0x467289[_0x237d09('0x81')]['attachments'][_0x3070e5][_0x237d09('0x16')])};}const _0x28629b={'tls':{'rejectUnauthorized':![]}};return _[_0x237d09('0x44')](_0x560af9['Smtp'][_0x237d09('0x55')])?(_0x560af9[_0x237d09('0x9d')][_0x237d09('0x36')]&&(_0x28629b[_0x237d09('0x9e')]={'user':_0x560af9['Smtp'][_0x237d09('0x8e')],'pass':_0x560af9[_0x237d09('0x9d')]['pass']}),_0x28629b[_0x237d09('0x8b')]=_0x560af9[_0x237d09('0x9d')][_0x237d09('0x8b')],_0x28629b[_0x237d09('0x6d')]=_0x560af9['Smtp'][_0x237d09('0x6d')],_0x28629b[_0x237d09('0x74')]=_0x560af9[_0x237d09('0x9d')]['secure']):(_0x28629b['service']=_0x560af9[_0x237d09('0x9d')][_0x237d09('0x55')],_0x28629b[_0x237d09('0x9e')]={'user':_0x560af9[_0x237d09('0x9d')][_0x237d09('0x8e')],'pass':_0x560af9[_0x237d09('0x9d')][_0x237d09('0x63')]}),respondWithRpcPromise(_0x237d09('0xb'),'sendMail',{'account':_0x28629b,'message':_0x467289[_0x237d09('0x81')]});}else throw new Error(_0x237d09('0x2b'));}})['then'](function(_0x3de7db){const _0x332c88=_0x33d637;if(_0x3de7db){_0x14ca17=_0x3de7db;if(_0xbdd793['List'])return _0xbdd793['List'][_0x332c88('0x4f')]['length']?_0xbdd793['List'][_0x332c88('0x4f')][0x0]:db['CmContact'][_0x332c88('0x3a')](_['defaults'](_0x467289['body'],{'firstName':_0x467289[_0x332c88('0x81')]['to'],'email':_0x467289[_0x332c88('0x81')]['to'],'phone':_0x467289[_0x332c88('0x81')]['to'],'ListId':_0xbdd793['ListId']}));else throw new Error(_0x332c88('0x2b'));}})[_0x33d637('0x26')](function(_0x2cb4ae){const _0x471f26=_0x33d637;if(_0x2cb4ae){let _0x413ab4={'UserId':_0x467289[_0x471f26('0x8e')]['id'],'ContactId':_0x2cb4ae['id'],'MailAccountId':_0xbdd793['id'],'inReplyTo':_0x14ca17[_0x471f26('0x1')],'to':_0x467289['body'][_0x471f26('0x4a')],'cc':_0x467289[_0x471f26('0x81')]['cc'],'subject':_0x467289[_0x471f26('0x81')]['subject'],'attach':_0x467289[_0x471f26('0x81')][_0x471f26('0x1f')],'firstMsgDirection':_0x471f26('0x6e'),'lastMsgAt':moment()[_0x471f26('0x84')]('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':'out','lastMsgBody':_0x467289[_0x471f26('0x81')]['body'],'Messages':[_['merge'](_0x467289[_0x471f26('0x81')],{'messageId':_0x14ca17[_0x471f26('0x1')],'sentAt':moment()[_0x471f26('0x84')](_0x471f26('0x86')),'read':!![],'MailAccountId':_0xbdd793['id'],'UserId':_0x467289[_0x471f26('0x8e')]['id'],'ContactId':_0x2cb4ae['id']})]};return _0x467289[_0x471f26('0x81')][_0x471f26('0x1b')]&&(_0x413ab4=_[_0x471f26('0x2c')](_0x413ab4,_0x467289[_0x471f26('0x81')][_0x471f26('0x1b')])),db['MailInteraction']['create'](_0x413ab4,{'include':[{'model':db['MailMessage'],'as':_0x471f26('0x4e')}]});}})['then'](respondWithResult(_0x5c6b07,null))[_0x33d637('0x5b')](handleError(_0x5c6b07,null));},exports['verifySmtp']=function(_0x5e33e4,_0x45c3f5){const _0x24b1e8=_0x358eb7;return db[_0x24b1e8('0x25')][_0x24b1e8('0x9')]({'where':{'id':_0x5e33e4[_0x24b1e8('0xa5')]['id']},'include':[{'model':db[_0x24b1e8('0x2a')],'as':_0x24b1e8('0x9d'),'raw':!![]}]})[_0x24b1e8('0x26')](handleEntityNotFound(_0x45c3f5,null))[_0x24b1e8('0x26')](function(_0x12e453){const _0x40ed70=_0x24b1e8;if(_0x12e453&&_0x12e453[_0x40ed70('0x9d')]){const _0x54e26e={'id':_0x12e453['id'],'tls':{'rejectUnauthorized':![]}};return _0x12e453[_0x40ed70('0x9d')]['service']?_0x54e26e[_0x40ed70('0x55')]=_0x12e453[_0x40ed70('0x9d')][_0x40ed70('0x55')]:(_0x54e26e[_0x40ed70('0x8b')]=_0x12e453[_0x40ed70('0x9d')][_0x40ed70('0x8b')],_0x54e26e[_0x40ed70('0x6d')]=_0x12e453[_0x40ed70('0x9d')][_0x40ed70('0x6d')],_0x54e26e['secure']=_0x12e453[_0x40ed70('0x9d')][_0x40ed70('0x74')]),_0x12e453['Smtp'][_0x40ed70('0x36')]&&(_0x54e26e[_0x40ed70('0x9e')]={'user':_0x12e453[_0x40ed70('0x9d')][_0x40ed70('0x8e')],'pass':_0x12e453[_0x40ed70('0x9d')][_0x40ed70('0x63')]}),respondWithRpcPromise(_0x40ed70('0x46'),_0x40ed70('0xa3'),{'account':_0x54e26e});}})[_0x24b1e8('0x26')](respondWithResult(_0x45c3f5,null))[_0x24b1e8('0x5b')](handleError(_0x45c3f5,null));},exports['destroy']=function(_0x5b53dd,_0x34dbf0){const _0xef731f=_0x358eb7;return db[_0xef731f('0x25')][_0xef731f('0x9')]({'where':{'id':_0x5b53dd[_0xef731f('0xa5')]['id']}})[_0xef731f('0x26')](handleEntityNotFound(_0x34dbf0,null))[_0xef731f('0x26')](function(_0x4513fd){const _0x37305c=_0xef731f;if(_0x4513fd&&_0x4513fd[_0x37305c('0x55')])throw new db[(_0x37305c('0xa0'))][(_0x37305c('0x21'))](_0x37305c('0x9f'));return _0x4513fd;})[_0xef731f('0x26')](removeEntity(_0x34dbf0,null))[_0xef731f('0x5b')](handleError(_0x34dbf0,null));},exports[_0x358eb7('0x3e')]=function(_0x306e79,_0x56b8b5){const _0x26e190=_0x358eb7;return db[_0x26e190('0x25')]['findOne']({'where':{'id':_0x306e79[_0x26e190('0xa5')]['id']}})[_0x26e190('0x26')](function(_0x3c26ab){const _0x349453=_0x26e190;if(_0x3c26ab)return _0x3c26ab['addAgents'](_0x306e79[_0x349453('0x81')][_0x349453('0xa1')],{'through':_[_0x349453('0x0')](_0x306e79['body'],[_0x349453('0xa1'),'id'])})['then'](function(_0x5d2ded){const _0x1021f7=_0x349453;for(let _0xaeac5b=0x0;_0xaeac5b<_0x306e79[_0x1021f7('0x81')][_0x1021f7('0xa1')][_0x1021f7('0x90')];_0xaeac5b+=0x1){socket[_0x1021f7('0x76')](_0x1021f7('0xa2'),{'UserId':_0x306e79['body'][_0x1021f7('0xa1')][_0xaeac5b],'MailAccountId':_0x306e79[_0x1021f7('0xa5')]['id']});}return _0x5d2ded;});})['then'](respondWithResult(_0x56b8b5,null))[_0x26e190('0x5b')](handleError(_0x56b8b5,null));},exports[_0x358eb7('0x19')]=function(_0xdf1f8f,_0x405d93){const _0x3d5928=_0x358eb7;return db[_0x3d5928('0x25')][_0x3d5928('0x9')]({'where':{'id':_0xdf1f8f[_0x3d5928('0xa5')]['id']}})[_0x3d5928('0x26')](handleEntityNotFound(_0x405d93,null))[_0x3d5928('0x26')](function(_0x2fa3f9){const _0x49e59f=_0x3d5928;if(_0x2fa3f9)return _0x2fa3f9[_0x49e59f('0x19')](_0xdf1f8f['query'][_0x49e59f('0xa1')])['then'](function(){const _0x45681b=_0x49e59f;if(_[_0x45681b('0x15')](_0xdf1f8f['query'][_0x45681b('0xa1')]))for(let _0x89efa9=0x0;_0x89efa9<_0xdf1f8f['query'][_0x45681b('0xa1')][_0x45681b('0x90')];_0x89efa9+=0x1){socket[_0x45681b('0x76')](_0x45681b('0x3d'),{'UserId':Number(_0xdf1f8f[_0x45681b('0x7b')][_0x45681b('0xa1')][_0x89efa9]),'MailAccountId':Number(_0xdf1f8f[_0x45681b('0xa5')]['id'])});}else socket[_0x45681b('0x76')](_0x45681b('0x3d'),{'UserId':Number(_0xdf1f8f[_0x45681b('0x7b')][_0x45681b('0xa1')]),'MailAccountId':Number(_0xdf1f8f['params']['id'])});});})['then'](respondWithStatusCode(_0x405d93,null))['catch'](handleError(_0x405d93,null));},exports[_0x358eb7('0x4c')]=function(_0x4be984,_0x1508dd){const _0x3ab421=_0x358eb7;let _0x29369a={};const _0x50c422={};let _0xe71f7,_0x341c62;return db[_0x3ab421('0x25')][_0x3ab421('0x9')]({'where':{'id':_0x4be984[_0x3ab421('0xa5')]['id']}})[_0x3ab421('0x26')](handleEntityNotFound(_0x1508dd,null))['then'](function(_0x2c273a){const _0x3b7d09=_0x3ab421;if(_0x2c273a)return _0xe71f7=_0x2c273a,_0x50c422[_0x3b7d09('0x59')]=_[_0x3b7d09('0x8d')](db[_0x3b7d09('0x27')][_0x3b7d09('0x7')]),_0x50c422[_0x3b7d09('0x7b')]=_[_0x3b7d09('0x8d')](_0x4be984['query']),_0x50c422[_0x3b7d09('0x83')]=_[_0x3b7d09('0x72')](_0x50c422[_0x3b7d09('0x59')],_0x50c422[_0x3b7d09('0x7b')]),_0x29369a['attributes']=_[_0x3b7d09('0x72')](_0x50c422[_0x3b7d09('0x59')],qs[_0x3b7d09('0x82')](_0x4be984[_0x3b7d09('0x7b')][_0x3b7d09('0x82')])),_0x29369a[_0x3b7d09('0x60')]=_0x29369a[_0x3b7d09('0x60')]['length']?_0x29369a['attributes']:_0x50c422['model'],_0x29369a['order']=qs['sort'](_0x4be984[_0x3b7d09('0x7b')]['sort']),_0x29369a['where']=qs[_0x3b7d09('0x83')](_[_0x3b7d09('0x88')](_0x4be984[_0x3b7d09('0x7b')],_0x50c422['filters'])),_0x4be984[_0x3b7d09('0x7b')][_0x3b7d09('0x4')]&&(_0x29369a[_0x3b7d09('0x54')]=_[_0x3b7d09('0x2c')](_0x29369a[_0x3b7d09('0x54')],{[Op['or']]:_[_0x3b7d09('0x85')](_0x29369a[_0x3b7d09('0x60')],function(_0x18d3a0){const _0x2feab6=_0x3b7d09,_0x2292b4={};return _0x2292b4[_0x18d3a0]={[Op[_0x2feab6('0x6f')]]:'%'+_0x4be984[_0x2feab6('0x7b')][_0x2feab6('0x4')]+'%'},_0x2292b4;})})),_0x29369a=_[_0x3b7d09('0x2c')]({},_0x29369a,_0x4be984[_0x3b7d09('0x24')]),_0xe71f7['getAgents'](_0x29369a);})['then'](function(_0x1b1a40){const _0x11c9ad=_0x3ab421;if(_0x1b1a40)return _0x341c62=_0x1b1a40['length'],typeof _0x4be984[_0x11c9ad('0x7b')][_0x11c9ad('0x9b')]==='undefined'&&(_0x29369a['limit']=qs[_0x11c9ad('0xc')](_0x4be984[_0x11c9ad('0x7b')][_0x11c9ad('0xc')]),_0x29369a[_0x11c9ad('0x30')]=qs['offset'](_0x4be984['query'][_0x11c9ad('0x30')])),_0xe71f7[_0x11c9ad('0x4c')](_0x29369a);})[_0x3ab421('0x26')](function(_0x24e51a){if(_0x24e51a)return _0x24e51a?{'count':_0x341c62,'rows':_0x24e51a}:null;})[_0x3ab421('0x26')](respondWithResult(_0x1508dd,null))[_0x3ab421('0x5b')](handleError(_0x1508dd,null));}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.events.js b/server/api/mailAccount/mailAccount.events.js index bd1610e..ddefe45 100644 --- a/server/api/mailAccount/mailAccount.events.js +++ b/server/api/mailAccount/mailAccount.events.js @@ -1 +1 @@ -const a395_0x2bb0=['events','update','save','emit','setMaxListeners'];(function(_0x2eea5f,_0x2bb09f){const _0xe2a67e=function(_0x336771){while(--_0x336771){_0x2eea5f['push'](_0x2eea5f['shift']());}};_0xe2a67e(++_0x2bb09f);}(a395_0x2bb0,0x133));const a395_0xe2a6=function(_0x2eea5f,_0x2bb09f){_0x2eea5f=_0x2eea5f-0x0;let _0xe2a67e=a395_0x2bb0[_0x2eea5f];return _0xe2a67e;};const _0x2a542f=a395_0xe2a6;'use strict';const EventEmitter=require(_0x2a542f('0x3')),MailAccount=require('../../mysqldb')['db']['MailAccount'],MailAccountEvents=new EventEmitter();MailAccountEvents[_0x2a542f('0x2')](0x0);const events={'afterCreate':_0x2a542f('0x0'),'afterUpdate':_0x2a542f('0x4'),'afterDestroy':'remove'};function emitEvent(_0x336771){return function(_0x3ddc68){const _0x95b1d3=a395_0xe2a6;MailAccountEvents[_0x95b1d3('0x1')](_0x336771+':'+_0x3ddc68['id'],_0x3ddc68),MailAccountEvents[_0x95b1d3('0x1')](_0x336771,_0x3ddc68);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailAccount['addHook'](e,emitEvent(event));}}module['exports']=MailAccountEvents; \ No newline at end of file +const a395_0xf5b4=['exports','emit','addHook','remove','undefined','MailAccount','events','../../mysqldb','save','update'];(function(_0x154c06,_0xf5b4e){const _0x422893=function(_0x50967a){while(--_0x50967a){_0x154c06['push'](_0x154c06['shift']());}};_0x422893(++_0xf5b4e);}(a395_0xf5b4,0x8d));const a395_0x4228=function(_0x154c06,_0xf5b4e){_0x154c06=_0x154c06-0x0;let _0x422893=a395_0xf5b4[_0x154c06];return _0x422893;};const _0x1d7c12=a395_0x4228;'use strict';const EventEmitter=require(_0x1d7c12('0x5')),MailAccount=require(_0x1d7c12('0x6'))['db'][_0x1d7c12('0x4')],MailAccountEvents=new EventEmitter();MailAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x1d7c12('0x7'),'afterUpdate':_0x1d7c12('0x8'),'afterDestroy':_0x1d7c12('0x2')};function emitEvent(_0x50967a){return function(_0x19af63){const _0x2da2a0=a395_0x4228;MailAccountEvents['emit'](_0x50967a+':'+_0x19af63['id'],_0x19af63),MailAccountEvents[_0x2da2a0('0x0')](_0x50967a,_0x19af63);};}for(const e in events){if(typeof events[e]!==_0x1d7c12('0x3')){const event=events[e];MailAccount[_0x1d7c12('0x1')](e,emitEvent(event));}}module[_0x1d7c12('0x9')]=MailAccountEvents; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.model.js b/server/api/mailAccount/mailAccount.model.js index fd8eef2..830c7ca 100644 --- a/server/api/mailAccount/mailAccount.model.js +++ b/server/api/mailAccount/mailAccount.model.js @@ -1 +1 @@ -const a396_0xd827=['exports','./mailAccount.attributes','mail_accounts','MailAccount'];(function(_0x2962fc,_0xd82749){const _0x4209da=function(_0x2d5a7e){while(--_0x2d5a7e){_0x2962fc['push'](_0x2962fc['shift']());}};_0x4209da(++_0xd82749);}(a396_0xd827,0x1e7));const a396_0x4209=function(_0x2962fc,_0xd82749){_0x2962fc=_0x2962fc-0x0;let _0x4209da=a396_0xd827[_0x2962fc];return _0x4209da;};const _0x689e1e=a396_0x4209;'use strict';const attributes=require(_0x689e1e('0x2'));module[_0x689e1e('0x1')]=function(_0x2d5a7e){const _0x429f80=_0x689e1e,_0x17f02d=_0x2d5a7e['define'](_0x429f80('0x0'),attributes,{'tableName':_0x429f80('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x17f02d;}; \ No newline at end of file +const a396_0x50e3=['MailAccount','./mailAccount.attributes','exports','mail_accounts'];(function(_0x2c672,_0x50e371){const _0x47118b=function(_0x117dab){while(--_0x117dab){_0x2c672['push'](_0x2c672['shift']());}};_0x47118b(++_0x50e371);}(a396_0x50e3,0x1ef));const a396_0x4711=function(_0x2c672,_0x50e371){_0x2c672=_0x2c672-0x0;let _0x47118b=a396_0x50e3[_0x2c672];return _0x47118b;};const _0x37838a=a396_0x4711;'use strict';const attributes=require(_0x37838a('0x2'));module[_0x37838a('0x3')]=function(_0x117dab){const _0x283dbb=_0x37838a,_0xaf656e=_0x117dab['define'](_0x283dbb('0x1'),attributes,{'tableName':_0x283dbb('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xaf656e;}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.rpc.js b/server/api/mailAccount/mailAccount.rpc.js index a6a3ff1..7abfdc9 100644 --- a/server/api/mailAccount/mailAccount.rpc.js +++ b/server/api/mailAccount/mailAccount.rpc.js @@ -1 +1 @@ -const a397_0x3472=['CmContact','mapKey','message','MailMessage','list','Smtp','format','User','contact','priority','debug','CompanyId','MailApplication','mail','List','isNil','model','http','result','body\x20is\x20mandatory\x20and\x20not\x20empty','rawAttributes','code','attachments','create','DESC','lodash','ListId','includes','map','request\x20sent','close','error','options','autoclose','where','startRouting','updatedAt','../../config/logger','raw','then','createdAt','attributes','subject','ShowMailAccount','asc','MailInteraction','originTo','difference','generate','MailAccount','Contacts','keys','length','Contact\x20not\x20found','from\x20is\x20mandatory','moment','limit','register','update','account','*,*,*,*','Attachment','interaction','MailAccount,\x20%s,\x20%s','MailServerOut','findOne','body','Applications','inReplyTo','name','Messages','CmList','messageId','info','defaults','stringify','agent','applications','MailAccount,\x20%s,\x20%s,\x20%s','omit','from','catch','UserId','request','get','client','orderBy','YYYY-MM-DD\x20HH:mm:ss','include','GetMailAccount','rpc','unshift','attach','bcc','jayson/promise'];(function(_0x1d7278,_0x34724d){const _0x585aa0=function(_0x214e1c){while(--_0x214e1c){_0x1d7278['push'](_0x1d7278['shift']());}};_0x585aa0(++_0x34724d);}(a397_0x3472,0x1d3));const a397_0x585a=function(_0x1d7278,_0x34724d){_0x1d7278=_0x1d7278-0x0;let _0x585aa0=a397_0x3472[_0x1d7278];return _0x585aa0;};const _0x54fd58=a397_0x585a;'use strict';const _=require(_0x54fd58('0x21')),db=require('../../mysqldb')['db'],logger=require(_0x54fd58('0x2d'))(_0x54fd58('0x3')),{getSocket}=require('../../rediscache'),socket=getSocket(),rs=require('randomstring'),moment=require(_0x54fd58('0x3f')),jayson=require(_0x54fd58('0x7')),client=jayson[_0x54fd58('0x5d')][_0x54fd58('0x19')]({'port':0x232c});require('./mailAccount.socket')[_0x54fd58('0x41')](socket);function respondWithRpcPromise(_0x214e1c,_0x231962,_0x232930){return new Promise(function(_0x1f127b,_0x589f7b){const _0x22de68=a397_0x585a;return client[_0x22de68('0x5b')](_0x214e1c,_0x232930)[_0x22de68('0x2f')](function(_0x4a2624){const _0x3bef5a=_0x22de68;logger[_0x3bef5a('0x51')](_0x3bef5a('0x47'),_0x231962,_0x3bef5a('0x25')),logger['debug'](_0x3bef5a('0x56'),_0x231962,'request\x20sent',JSON[_0x3bef5a('0x53')](_0x4a2624));if(_0x4a2624[_0x3bef5a('0x27')]){if(_0x4a2624[_0x3bef5a('0x27')][_0x3bef5a('0x1d')]===0x1f4)return logger[_0x3bef5a('0x27')](_0x3bef5a('0x47'),_0x231962,_0x4a2624[_0x3bef5a('0x27')]['message']),_0x589f7b(_0x4a2624[_0x3bef5a('0x27')][_0x3bef5a('0xa')]);return logger['error'](_0x3bef5a('0x47'),_0x231962,_0x4a2624[_0x3bef5a('0x27')][_0x3bef5a('0xa')]),_0x1f127b(_0x4a2624[_0x3bef5a('0x27')][_0x3bef5a('0xa')]);}else logger[_0x3bef5a('0x51')](_0x3bef5a('0x47'),_0x231962,_0x3bef5a('0x25')),_0x1f127b(_0x4a2624[_0x3bef5a('0x1a')]['message']);})[_0x22de68('0x59')](function(_0x2f1ec1){const _0x131bf7=_0x22de68;logger['error'](_0x131bf7('0x47'),_0x231962,_0x2f1ec1),_0x589f7b(_0x2f1ec1);});});}exports['GetMailAccount']=function(_0xf30b8f){const _0x19a113=this;return new Promise(function(_0x4deb1f,_0x4e8e90){const _0x3d0a89=a397_0x585a;return db[_0x3d0a89('0x39')]['findAll']({'raw':_0xf30b8f[_0x3d0a89('0x28')]?_0xf30b8f[_0x3d0a89('0x28')]['raw']===undefined?!![]:![]:!![],'where':_0xf30b8f[_0x3d0a89('0x28')]?_0xf30b8f[_0x3d0a89('0x28')][_0x3d0a89('0x2a')]||null:null,'attributes':_0xf30b8f[_0x3d0a89('0x28')]?_0xf30b8f[_0x3d0a89('0x28')][_0x3d0a89('0x31')]||null:null,'limit':_0xf30b8f['options']?_0xf30b8f[_0x3d0a89('0x28')][_0x3d0a89('0x40')]||null:null,'include':_0xf30b8f[_0x3d0a89('0x28')]?_0xf30b8f[_0x3d0a89('0x28')][_0x3d0a89('0x1')]?_['map'](_0xf30b8f[_0x3d0a89('0x28')][_0x3d0a89('0x1')],function(_0x53565e){const _0x2a9203=_0x3d0a89;return{'model':db[_0x53565e[_0x2a9203('0x18')]],'as':_0x53565e['as'],'attributes':_0x53565e[_0x2a9203('0x31')],'include':_0x53565e[_0x2a9203('0x1')]?_[_0x2a9203('0x24')](_0x53565e[_0x2a9203('0x1')],function(_0x2eab29){const _0x36b617=_0x2a9203;return{'model':db[_0x2eab29[_0x36b617('0x18')]],'as':_0x2eab29['as'],'attributes':_0x2eab29[_0x36b617('0x31')],'include':_0x2eab29['include']?_[_0x36b617('0x24')](_0x2eab29[_0x36b617('0x1')],function(_0x416253){return{'model':db[_0x416253['model']],'as':_0x416253['as'],'attributes':_0x416253['attributes']};}):[]};}):[]};}):[]:[]})[_0x3d0a89('0x2f')](function(_0x2dc87a){const _0x1912e3=_0x3d0a89;logger[_0x1912e3('0x51')](_0x1912e3('0x2'),_0xf30b8f),logger['debug'](_0x1912e3('0x2'),_0xf30b8f,JSON[_0x1912e3('0x53')](_0x2dc87a)),_0x4deb1f(_0x2dc87a);})[_0x3d0a89('0x59')](function(_0x5c77b2){const _0x269054=_0x3d0a89;logger[_0x269054('0x27')](_0x269054('0x2'),_0x5c77b2[_0x269054('0xa')],_0xf30b8f),_0x4e8e90(_0x19a113[_0x269054('0x27')](0x1f4,_0x5c77b2[_0x269054('0xa')]));});});},exports['ShowMailAccount']=function(_0xfb3d1c){const _0x20042f=this;return new Promise(function(_0x572294,_0x47a820){const _0x3a2518=a397_0x585a;return db[_0x3a2518('0x39')][_0x3a2518('0x49')]({'raw':_0xfb3d1c['options']?_0xfb3d1c['options'][_0x3a2518('0x2e')]===undefined?!![]:![]:!![],'where':_0xfb3d1c[_0x3a2518('0x28')]?_0xfb3d1c['options'][_0x3a2518('0x2a')]||null:null,'attributes':_0xfb3d1c[_0x3a2518('0x28')]?_0xfb3d1c[_0x3a2518('0x28')][_0x3a2518('0x31')]||null:null,'include':_0xfb3d1c[_0x3a2518('0x28')]?_0xfb3d1c['options'][_0x3a2518('0x1')]?_[_0x3a2518('0x24')](_0xfb3d1c[_0x3a2518('0x28')][_0x3a2518('0x1')],function(_0x22ca0f){const _0x5e27bc=_0x3a2518;return{'model':db[_0x22ca0f[_0x5e27bc('0x18')]],'as':_0x22ca0f['as'],'attributes':_0x22ca0f[_0x5e27bc('0x31')],'include':_0x22ca0f[_0x5e27bc('0x1')]?_[_0x5e27bc('0x24')](_0x22ca0f['include'],function(_0x169b0e){const _0x50ae17=_0x5e27bc;return{'model':db[_0x169b0e[_0x50ae17('0x18')]],'as':_0x169b0e['as'],'attributes':_0x169b0e['attributes'],'include':_0x169b0e['include']?_[_0x50ae17('0x24')](_0x169b0e[_0x50ae17('0x1')],function(_0xa6e084){const _0x2b8d01=_0x50ae17;return{'model':db[_0xa6e084[_0x2b8d01('0x18')]],'as':_0xa6e084['as'],'attributes':_0xa6e084[_0x2b8d01('0x31')]};}):[]};}):[]};}):[]:[]})[_0x3a2518('0x2f')](function(_0x1725f7){const _0x42565b=_0x3a2518;logger['info'](_0x42565b('0x33'),_0xfb3d1c),logger[_0x42565b('0x12')]('ShowMailAccount',_0xfb3d1c,JSON[_0x42565b('0x53')](_0x1725f7)),_0x572294(_0x1725f7);})[_0x3a2518('0x59')](function(_0x2cefc0){const _0x410b80=_0x3a2518;logger[_0x410b80('0x27')](_0x410b80('0x33'),_0x2cefc0[_0x410b80('0xa')],_0xfb3d1c),_0x47a820(_0x20042f[_0x410b80('0x27')](0x1f4,_0x2cefc0[_0x410b80('0xa')]));});});},exports['NotifyMailAccount']=function(_0x3d4dd2){const _0x397562=this;return new Promise(function(_0x5645f5,_0x409124){const _0x58a0f9=a397_0x585a,_0x3e5cee={'body':_0x3d4dd2[_0x58a0f9('0x4a')],'channel':_0x58a0f9('0x15')},_0x1dd940=_[_0x58a0f9('0x37')](_[_0x58a0f9('0x3b')](db[_0x58a0f9('0x8')][_0x58a0f9('0x1c')]),[_0x58a0f9('0x30'),'updatedAt',_0x58a0f9('0x13'),_0x58a0f9('0x22')]);let _0x10ef2a=![];_0x3d4dd2[_0x58a0f9('0x4a')]['id']&&delete _0x3d4dd2[_0x58a0f9('0x4a')]['id'];if(_[_0x58a0f9('0x17')](_0x3d4dd2['body'][_0x58a0f9('0x58')]))return _0x409124(_0x397562['error'](0x1f4,_0x58a0f9('0x3e')));if(_[_0x58a0f9('0x17')](_0x3d4dd2['body']['body'])||_0x3d4dd2['body'][_0x58a0f9('0x4a')]==='')return _0x409124(_0x397562[_0x58a0f9('0x27')](0x1f4,_0x58a0f9('0x1b')));if(_['isNil'](_0x3d4dd2[_0x58a0f9('0x4a')][_0x58a0f9('0x9')]))return _0x409124(_0x397562['error'](0x1f4,'mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x1dd940));if(!_[_0x58a0f9('0x23')](_0x1dd940,_0x3d4dd2['body']['mapKey']))return _0x409124(_0x397562[_0x58a0f9('0x27')](0x1f4,'mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x1dd940));const _0x1d01ff={};return _0x1d01ff[_0x3d4dd2[_0x58a0f9('0x4a')]['mapKey']]=_0x3d4dd2[_0x58a0f9('0x4a')]['from'],db[_0x58a0f9('0x39')][_0x58a0f9('0x49')]({'where':{'id':_0x3d4dd2[_0x58a0f9('0x43')]['id']},'include':[{'model':db[_0x58a0f9('0x4f')],'as':'List','include':[{'model':db['CmContact'],'as':_0x58a0f9('0x3a'),'where':_0x1d01ff,'limit':0x1,'order':[[_0x58a0f9('0x2c'),_0x58a0f9('0x20')]]}]},{'model':db[_0x58a0f9('0x14')],'as':_0x58a0f9('0x4b')},{'model':db[_0x58a0f9('0x48')],'as':_0x58a0f9('0xd')}]})[_0x58a0f9('0x2f')](function(_0x512153){const _0xa887b8=_0x58a0f9;if(_0x512153&&_0x512153[_0xa887b8('0x16')]){const _0x5f3fe0=_0x512153['get']({'plain':!![]});_0x3e5cee[_0xa887b8('0x43')]=_[_0xa887b8('0x57')](_0x5f3fe0,[_0xa887b8('0x4b'),_0xa887b8('0x16')]),_0x3e5cee[_0xa887b8('0x55')]=_0x5f3fe0[_0xa887b8('0x4b')],_0x3e5cee[_0xa887b8('0xc')]=_0x5f3fe0['List'],_0x3e5cee['applications']=_[_0xa887b8('0x5e')](_0x3e5cee[_0xa887b8('0x55')],[_0xa887b8('0x11')],[_0xa887b8('0x34')]);_0x3e5cee[_0xa887b8('0x43')]&&_0x3e5cee[_0xa887b8('0x43')][_0xa887b8('0x29')]&&_0x3e5cee[_0xa887b8('0x55')]['push']({'id':0x0,'priority':_0x3e5cee[_0xa887b8('0x55')][_0xa887b8('0x3c')]+0x1,'app':_0xa887b8('0x26'),'appdata':'autoclose','interval':_0xa887b8('0x44')});_0x3e5cee[_0xa887b8('0x43')][_0xa887b8('0x4b')]&&delete _0x3e5cee['account']['Applications'];_0x3e5cee[_0xa887b8('0x43')][_0xa887b8('0x16')]&&delete _0x3e5cee[_0xa887b8('0x43')][_0xa887b8('0x16')];if(_0x5f3fe0['List'][_0xa887b8('0x3a')][_0xa887b8('0x3c')])return _0x5f3fe0[_0xa887b8('0x16')][_0xa887b8('0x3a')][0x0];const _0x21862c=_[_0xa887b8('0x52')](_0x3d4dd2['body'],{'firstName':_0x3d4dd2[_0xa887b8('0x4a')][_0xa887b8('0x58')],'ListId':_0x5f3fe0[_0xa887b8('0x22')]});return _0x21862c[_0x3d4dd2['body'][_0xa887b8('0x9')]]=_0x3d4dd2[_0xa887b8('0x4a')]['from'],db['CmContact'][_0xa887b8('0x1f')](_0x21862c);}else throw new Error('List\x20not\x20found');})[_0x58a0f9('0x2f')](function(_0x204674){const _0x9d2a03=_0x58a0f9;_0x3e5cee[_0x9d2a03('0x10')]=_0x204674;if(_0x204674){!_0x3d4dd2[_0x9d2a03('0x4a')][_0x9d2a03('0xa')][_0x9d2a03('0x50')]&&(_0x3d4dd2[_0x9d2a03('0x4a')][_0x9d2a03('0xa')][_0x9d2a03('0x50')]=rs[_0x9d2a03('0x38')]()+'\x20'+_0x3d4dd2[_0x9d2a03('0x4a')]['message']['from']);const _0xc0ef35={'ContactId':_0x204674['id'],'MailAccountId':_0x3d4dd2[_0x9d2a03('0x43')]['id'],'inReplyTo':_0x3d4dd2[_0x9d2a03('0x4a')][_0x9d2a03('0xa')]['messageId'],'to':_0x3d4dd2[_0x9d2a03('0x4a')][_0x9d2a03('0xa')][_0x9d2a03('0x58')],'cc':_0x3d4dd2[_0x9d2a03('0x4a')]['message']['cc'],'subject':_0x3d4dd2[_0x9d2a03('0x4a')][_0x9d2a03('0xa')][_0x9d2a03('0x32')],'attach':_0x3d4dd2[_0x9d2a03('0x4a')][_0x9d2a03('0xa')][_0x9d2a03('0x5')],'lastMsgAt':moment()[_0x9d2a03('0xe')](_0x9d2a03('0x0')),'lastMsgDirection':'in','lastMsgBody':_0x3d4dd2[_0x9d2a03('0x4a')][_0x9d2a03('0x4a')]};return db[_0x9d2a03('0x35')][_0x9d2a03('0x49')]({'where':{'closed':![],'MailAccountId':_0x3d4dd2[_0x9d2a03('0x43')]['id']},'include':[{'model':db[_0x9d2a03('0xb')],'as':_0x9d2a03('0x4e'),'attributes':[_0x9d2a03('0x50')],'where':{'messageId':_0x3d4dd2[_0x9d2a03('0x4a')][_0x9d2a03('0xa')][_0x9d2a03('0x4c')]}}]})[_0x9d2a03('0x2f')](function(_0x2c58ef){const _0x31490a=_0x9d2a03;if(_0x2c58ef)return[_0x2c58ef,![]];return db[_0x31490a('0x35')][_0x31490a('0x1f')](_0xc0ef35)[_0x31490a('0x2f')](function(_0x357f3e){return[_0x357f3e,!![]];});});}else throw new Error(_0x9d2a03('0x3d'));})[_0x58a0f9('0x2f')](function([_0x2b8d69,_0x56ea22]){const _0x447170=_0x58a0f9;if(_0x2b8d69)return _0x10ef2a=_0x56ea22,!_0x56ea22?_0x2b8d69[_0x447170('0x42')]({'inReplyTo':_0x3d4dd2[_0x447170('0x4a')][_0x447170('0xa')][_0x447170('0x50')],'to':_0x3d4dd2['body'][_0x447170('0xa')]['from'],'cc':_0x3d4dd2[_0x447170('0x4a')]['message']['cc'],'subject':_0x3d4dd2['body'][_0x447170('0xa')][_0x447170('0x32')],'attach':_0x2b8d69[_0x447170('0x5')]?_0x2b8d69[_0x447170('0x5')]:_0x3d4dd2[_0x447170('0x4a')][_0x447170('0xa')][_0x447170('0x5')],'substatus':null,'substatusAt':moment()[_0x447170('0xe')](_0x447170('0x0')),'lastMsgAt':moment()['format'](_0x447170('0x0')),'lastMsgDirection':'in','lastMsgBody':_0x3d4dd2[_0x447170('0x4a')][_0x447170('0x4a')]}):_0x2b8d69;})['then'](function(_0x5cc1f1){const _0x13be4b=_0x58a0f9;return _0x3e5cee[_0x13be4b('0x46')]=_0x5cc1f1[_0x13be4b('0x5c')]({'plain':!![]}),_0x3e5cee[_0x13be4b('0x46')]['created']=_0x10ef2a,db['MailMessage']['create']({'body':_0x3d4dd2['body'][_0x13be4b('0x4a')],'MailAccountId':_0x3d4dd2[_0x13be4b('0x43')]['id'],'MailInteractionId':_0x5cc1f1['id'],'direction':'in','ContactId':_0x3e5cee[_0x13be4b('0x10')]['id'],'messageId':_0x3d4dd2[_0x13be4b('0x4a')][_0x13be4b('0xa')]['messageId'],'from':_0x3d4dd2[_0x13be4b('0x4a')][_0x13be4b('0xa')][_0x13be4b('0x58')],'to':_0x3d4dd2['body'][_0x13be4b('0xa')]['to'],'cc':_0x3d4dd2[_0x13be4b('0x4a')][_0x13be4b('0xa')]['cc'],'subject':_0x3d4dd2['body'][_0x13be4b('0xa')][_0x13be4b('0x32')],'attach':_0x3d4dd2[_0x13be4b('0x4a')][_0x13be4b('0xa')][_0x13be4b('0x5')],'Attachments':_0x3d4dd2['body']['message'][_0x13be4b('0x1e')],'originTo':_0x3d4dd2[_0x13be4b('0x4a')][_0x13be4b('0xa')][_0x13be4b('0x36')],'originCc':_0x3d4dd2['body'][_0x13be4b('0xa')]['originCc'],'bcc':_0x3d4dd2['body'][_0x13be4b('0xa')][_0x13be4b('0x6')]},{'include':[{'model':db[_0x13be4b('0x45')],'as':'Attachments'}]});})[_0x58a0f9('0x2f')](function(_0x3c2d68){const _0x4e8fe5=_0x58a0f9;_0x3e5cee[_0x4e8fe5('0xa')]=_0x3c2d68;if(_0x3e5cee[_0x4e8fe5('0x46')][_0x4e8fe5('0x5a')])return db[_0x4e8fe5('0xf')][_0x4e8fe5('0x49')]({'attributes':['id',_0x4e8fe5('0x4d')],'where':{'id':_0x3e5cee[_0x4e8fe5('0x46')]['UserId']}})['then'](function(_0x3cfea2){const _0x5b1be3=_0x4e8fe5;return _0x3cfea2&&_0x3e5cee[_0x5b1be3('0x55')][_0x5b1be3('0x4')]({'id':0x0,'priority':0x0,'app':_0x5b1be3('0x54'),'appdata':_0x3cfea2['name']+','+(_0x3e5cee[_0x5b1be3('0x43')]['waitForTheAssignedAgent']||0xa),'interval':_0x5b1be3('0x44')}),respondWithRpcPromise('Start','startRouting',_0x3e5cee);});return respondWithRpcPromise('Start',_0x4e8fe5('0x2b'),_0x3e5cee);})[_0x58a0f9('0x2f')](function(_0x257158){_0x5645f5(_0x257158);})[_0x58a0f9('0x59')](function(_0x8190f8){const _0x4570d0=_0x58a0f9;_0x409124(_0x397562[_0x4570d0('0x27')](0x1f4,_0x8190f8[_0x4570d0('0xa')]));});});}; \ No newline at end of file +const a397_0x2420=['length','findOne','CmContact','defaults','update','format','http','create','account','get','result','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','agent','includes','options','client','MailAccount,\x20%s,\x20%s,\x20%s','then','MailApplication','lodash','message','from','MailServerOut','include','rawAttributes','mapKey','attach','contact','isNil','stringify','MailMessage','NotifyMailAccount','debug','raw','autoclose','error','keys','Contacts','messageId','ListId','list','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','Applications','subject','../../mysqldb','UserId','body','*,*,*,*','updatedAt','Messages','GetMailAccount','map','Attachment','startRouting','orderBy','where','../../rediscache','List','close','Start','generate','bcc','interaction','limit','jayson/promise','code','MailInteraction','difference','mail','priority','../../config/logger','originTo','YYYY-MM-DD\x20HH:mm:ss','omit','applications','register','ShowMailAccount','Smtp','info','model','unshift','asc','name','attributes','waitForTheAssignedAgent','MailAccount','request\x20sent','rpc','MailAccount,\x20%s,\x20%s','catch'];(function(_0x180e03,_0x24208e){const _0x42931a=function(_0x29e916){while(--_0x29e916){_0x180e03['push'](_0x180e03['shift']());}};_0x42931a(++_0x24208e);}(a397_0x2420,0x19b));const a397_0x4293=function(_0x180e03,_0x24208e){_0x180e03=_0x180e03-0x0;let _0x42931a=a397_0x2420[_0x180e03];return _0x42931a;};const _0x5c7261=a397_0x4293;'use strict';const _=require(_0x5c7261('0x3a')),db=require(_0x5c7261('0x53'))['db'],logger=require(_0x5c7261('0x13'))(_0x5c7261('0x24')),{getSocket}=require(_0x5c7261('0x5')),socket=getSocket(),rs=require('randomstring'),moment=require('moment'),jayson=require(_0x5c7261('0xd')),client=jayson[_0x5c7261('0x36')][_0x5c7261('0x2d')]({'port':0x232c});require('./mailAccount.socket')[_0x5c7261('0x18')](socket);function respondWithRpcPromise(_0x29e916,_0x496631,_0x47ab5f){return new Promise(function(_0x8e830d,_0x17d52f){const _0x29cc62=a397_0x4293;return client['request'](_0x29e916,_0x47ab5f)[_0x29cc62('0x38')](function(_0x252a3e){const _0x5da6eb=_0x29cc62;logger[_0x5da6eb('0x1b')](_0x5da6eb('0x25'),_0x496631,_0x5da6eb('0x23')),logger[_0x5da6eb('0x47')](_0x5da6eb('0x37'),_0x496631,_0x5da6eb('0x23'),JSON[_0x5da6eb('0x44')](_0x252a3e));if(_0x252a3e[_0x5da6eb('0x4a')]){if(_0x252a3e[_0x5da6eb('0x4a')][_0x5da6eb('0xe')]===0x1f4)return logger[_0x5da6eb('0x4a')]('MailAccount,\x20%s,\x20%s',_0x496631,_0x252a3e[_0x5da6eb('0x4a')][_0x5da6eb('0x3b')]),_0x17d52f(_0x252a3e[_0x5da6eb('0x4a')]['message']);return logger[_0x5da6eb('0x4a')](_0x5da6eb('0x25'),_0x496631,_0x252a3e[_0x5da6eb('0x4a')][_0x5da6eb('0x3b')]),_0x8e830d(_0x252a3e['error'][_0x5da6eb('0x3b')]);}else logger[_0x5da6eb('0x1b')](_0x5da6eb('0x25'),_0x496631,'request\x20sent'),_0x8e830d(_0x252a3e[_0x5da6eb('0x31')][_0x5da6eb('0x3b')]);})[_0x29cc62('0x26')](function(_0xb85ab2){const _0x14b870=_0x29cc62;logger[_0x14b870('0x4a')]('MailAccount,\x20%s,\x20%s',_0x496631,_0xb85ab2),_0x17d52f(_0xb85ab2);});});}exports[_0x5c7261('0x59')]=function(_0x140f91){const _0x1a2bac=this;return new Promise(function(_0x84c069,_0x1fda5e){const _0x993d1b=a397_0x4293;return db[_0x993d1b('0x22')]['findAll']({'raw':_0x140f91[_0x993d1b('0x35')]?_0x140f91['options']['raw']===undefined?!![]:![]:!![],'where':_0x140f91[_0x993d1b('0x35')]?_0x140f91['options'][_0x993d1b('0x4')]||null:null,'attributes':_0x140f91[_0x993d1b('0x35')]?_0x140f91[_0x993d1b('0x35')]['attributes']||null:null,'limit':_0x140f91[_0x993d1b('0x35')]?_0x140f91[_0x993d1b('0x35')][_0x993d1b('0xc')]||null:null,'include':_0x140f91[_0x993d1b('0x35')]?_0x140f91[_0x993d1b('0x35')][_0x993d1b('0x3e')]?_[_0x993d1b('0x0')](_0x140f91[_0x993d1b('0x35')]['include'],function(_0x1b8184){const _0x3d2ec8=_0x993d1b;return{'model':db[_0x1b8184[_0x3d2ec8('0x1c')]],'as':_0x1b8184['as'],'attributes':_0x1b8184[_0x3d2ec8('0x20')],'include':_0x1b8184[_0x3d2ec8('0x3e')]?_['map'](_0x1b8184[_0x3d2ec8('0x3e')],function(_0x3570c0){const _0x4a1803=_0x3d2ec8;return{'model':db[_0x3570c0['model']],'as':_0x3570c0['as'],'attributes':_0x3570c0[_0x4a1803('0x20')],'include':_0x3570c0[_0x4a1803('0x3e')]?_[_0x4a1803('0x0')](_0x3570c0[_0x4a1803('0x3e')],function(_0x454374){const _0x621938=_0x4a1803;return{'model':db[_0x454374[_0x621938('0x1c')]],'as':_0x454374['as'],'attributes':_0x454374[_0x621938('0x20')]};}):[]};}):[]};}):[]:[]})[_0x993d1b('0x38')](function(_0x30708d){const _0x5621ad=_0x993d1b;logger['info'](_0x5621ad('0x59'),_0x140f91),logger['debug'](_0x5621ad('0x59'),_0x140f91,JSON[_0x5621ad('0x44')](_0x30708d)),_0x84c069(_0x30708d);})[_0x993d1b('0x26')](function(_0x57f6b1){const _0x35d19a=_0x993d1b;logger[_0x35d19a('0x4a')](_0x35d19a('0x59'),_0x57f6b1[_0x35d19a('0x3b')],_0x140f91),_0x1fda5e(_0x1a2bac[_0x35d19a('0x4a')](0x1f4,_0x57f6b1[_0x35d19a('0x3b')]));});});},exports[_0x5c7261('0x19')]=function(_0x12c458){const _0x3d7c99=this;return new Promise(function(_0x40b1be,_0x161b13){const _0x66f1ae=a397_0x4293;return db[_0x66f1ae('0x22')][_0x66f1ae('0x28')]({'raw':_0x12c458[_0x66f1ae('0x35')]?_0x12c458[_0x66f1ae('0x35')][_0x66f1ae('0x48')]===undefined?!![]:![]:!![],'where':_0x12c458[_0x66f1ae('0x35')]?_0x12c458[_0x66f1ae('0x35')]['where']||null:null,'attributes':_0x12c458[_0x66f1ae('0x35')]?_0x12c458['options']['attributes']||null:null,'include':_0x12c458[_0x66f1ae('0x35')]?_0x12c458[_0x66f1ae('0x35')][_0x66f1ae('0x3e')]?_[_0x66f1ae('0x0')](_0x12c458['options'][_0x66f1ae('0x3e')],function(_0x491838){const _0x50d721=_0x66f1ae;return{'model':db[_0x491838[_0x50d721('0x1c')]],'as':_0x491838['as'],'attributes':_0x491838[_0x50d721('0x20')],'include':_0x491838[_0x50d721('0x3e')]?_[_0x50d721('0x0')](_0x491838['include'],function(_0x43f073){const _0x3ce22e=_0x50d721;return{'model':db[_0x43f073[_0x3ce22e('0x1c')]],'as':_0x43f073['as'],'attributes':_0x43f073[_0x3ce22e('0x20')],'include':_0x43f073[_0x3ce22e('0x3e')]?_['map'](_0x43f073[_0x3ce22e('0x3e')],function(_0xd84cee){const _0xc0c3e0=_0x3ce22e;return{'model':db[_0xd84cee['model']],'as':_0xd84cee['as'],'attributes':_0xd84cee[_0xc0c3e0('0x20')]};}):[]};}):[]};}):[]:[]})[_0x66f1ae('0x38')](function(_0x2c999f){const _0x6207f0=_0x66f1ae;logger[_0x6207f0('0x1b')](_0x6207f0('0x19'),_0x12c458),logger[_0x6207f0('0x47')](_0x6207f0('0x19'),_0x12c458,JSON[_0x6207f0('0x44')](_0x2c999f)),_0x40b1be(_0x2c999f);})[_0x66f1ae('0x26')](function(_0x2ae9a1){const _0x34a947=_0x66f1ae;logger[_0x34a947('0x4a')](_0x34a947('0x19'),_0x2ae9a1[_0x34a947('0x3b')],_0x12c458),_0x161b13(_0x3d7c99[_0x34a947('0x4a')](0x1f4,_0x2ae9a1[_0x34a947('0x3b')]));});});},exports[_0x5c7261('0x46')]=function(_0x35eb07){const _0xad4cb1=this;return new Promise(function(_0x1c94f0,_0xb4abe1){const _0x1f57a6=a397_0x4293,_0xdd0aea={'body':_0x35eb07['body'],'channel':_0x1f57a6('0x11')},_0x14bcd8=_[_0x1f57a6('0x10')](_[_0x1f57a6('0x4b')](db[_0x1f57a6('0x29')][_0x1f57a6('0x3f')]),['createdAt',_0x1f57a6('0x57'),'CompanyId',_0x1f57a6('0x4e')]);let _0x1a3df4=![];_0x35eb07[_0x1f57a6('0x55')]['id']&&delete _0x35eb07[_0x1f57a6('0x55')]['id'];if(_[_0x1f57a6('0x43')](_0x35eb07[_0x1f57a6('0x55')][_0x1f57a6('0x3c')]))return _0xb4abe1(_0xad4cb1[_0x1f57a6('0x4a')](0x1f4,'from\x20is\x20mandatory'));if(_[_0x1f57a6('0x43')](_0x35eb07[_0x1f57a6('0x55')]['body'])||_0x35eb07[_0x1f57a6('0x55')][_0x1f57a6('0x55')]==='')return _0xb4abe1(_0xad4cb1['error'](0x1f4,'body\x20is\x20mandatory\x20and\x20not\x20empty'));if(_[_0x1f57a6('0x43')](_0x35eb07['body'][_0x1f57a6('0x40')]))return _0xb4abe1(_0xad4cb1[_0x1f57a6('0x4a')](0x1f4,_0x1f57a6('0x50')+_0x14bcd8));if(!_[_0x1f57a6('0x34')](_0x14bcd8,_0x35eb07[_0x1f57a6('0x55')][_0x1f57a6('0x40')]))return _0xb4abe1(_0xad4cb1['error'](0x1f4,_0x1f57a6('0x32')+_0x14bcd8));const _0x31028e={};return _0x31028e[_0x35eb07[_0x1f57a6('0x55')][_0x1f57a6('0x40')]]=_0x35eb07[_0x1f57a6('0x55')][_0x1f57a6('0x3c')],db[_0x1f57a6('0x22')]['findOne']({'where':{'id':_0x35eb07[_0x1f57a6('0x2f')]['id']},'include':[{'model':db['CmList'],'as':'List','include':[{'model':db[_0x1f57a6('0x29')],'as':_0x1f57a6('0x4c'),'where':_0x31028e,'limit':0x1,'order':[['updatedAt','DESC']]}]},{'model':db[_0x1f57a6('0x39')],'as':_0x1f57a6('0x51')},{'model':db[_0x1f57a6('0x3d')],'as':_0x1f57a6('0x1a')}]})[_0x1f57a6('0x38')](function(_0x5203a1){const _0x1ffe26=_0x1f57a6;if(_0x5203a1&&_0x5203a1[_0x1ffe26('0x6')]){const _0xb2be55=_0x5203a1[_0x1ffe26('0x30')]({'plain':!![]});_0xdd0aea['account']=_[_0x1ffe26('0x16')](_0xb2be55,[_0x1ffe26('0x51'),_0x1ffe26('0x6')]),_0xdd0aea[_0x1ffe26('0x17')]=_0xb2be55[_0x1ffe26('0x51')],_0xdd0aea[_0x1ffe26('0x4f')]=_0xb2be55[_0x1ffe26('0x6')],_0xdd0aea[_0x1ffe26('0x17')]=_[_0x1ffe26('0x3')](_0xdd0aea[_0x1ffe26('0x17')],[_0x1ffe26('0x12')],[_0x1ffe26('0x1e')]);_0xdd0aea[_0x1ffe26('0x2f')]&&_0xdd0aea['account'][_0x1ffe26('0x49')]&&_0xdd0aea['applications']['push']({'id':0x0,'priority':_0xdd0aea[_0x1ffe26('0x17')][_0x1ffe26('0x27')]+0x1,'app':_0x1ffe26('0x7'),'appdata':_0x1ffe26('0x49'),'interval':_0x1ffe26('0x56')});_0xdd0aea[_0x1ffe26('0x2f')][_0x1ffe26('0x51')]&&delete _0xdd0aea['account'][_0x1ffe26('0x51')];_0xdd0aea[_0x1ffe26('0x2f')]['List']&&delete _0xdd0aea[_0x1ffe26('0x2f')][_0x1ffe26('0x6')];if(_0xb2be55[_0x1ffe26('0x6')][_0x1ffe26('0x4c')][_0x1ffe26('0x27')])return _0xb2be55[_0x1ffe26('0x6')]['Contacts'][0x0];const _0x6a03b0=_[_0x1ffe26('0x2a')](_0x35eb07[_0x1ffe26('0x55')],{'firstName':_0x35eb07[_0x1ffe26('0x55')][_0x1ffe26('0x3c')],'ListId':_0xb2be55[_0x1ffe26('0x4e')]});return _0x6a03b0[_0x35eb07[_0x1ffe26('0x55')][_0x1ffe26('0x40')]]=_0x35eb07['body'][_0x1ffe26('0x3c')],db['CmContact'][_0x1ffe26('0x2e')](_0x6a03b0);}else throw new Error('List\x20not\x20found');})[_0x1f57a6('0x38')](function(_0x39e6ff){const _0x4f0783=_0x1f57a6;_0xdd0aea[_0x4f0783('0x42')]=_0x39e6ff;if(_0x39e6ff){!_0x35eb07[_0x4f0783('0x55')][_0x4f0783('0x3b')][_0x4f0783('0x4d')]&&(_0x35eb07[_0x4f0783('0x55')][_0x4f0783('0x3b')][_0x4f0783('0x4d')]=rs[_0x4f0783('0x9')]()+'\x20'+_0x35eb07['body'][_0x4f0783('0x3b')][_0x4f0783('0x3c')]);const _0x3a7e46={'ContactId':_0x39e6ff['id'],'MailAccountId':_0x35eb07[_0x4f0783('0x2f')]['id'],'inReplyTo':_0x35eb07[_0x4f0783('0x55')][_0x4f0783('0x3b')][_0x4f0783('0x4d')],'to':_0x35eb07[_0x4f0783('0x55')][_0x4f0783('0x3b')][_0x4f0783('0x3c')],'cc':_0x35eb07['body'][_0x4f0783('0x3b')]['cc'],'subject':_0x35eb07[_0x4f0783('0x55')][_0x4f0783('0x3b')][_0x4f0783('0x52')],'attach':_0x35eb07[_0x4f0783('0x55')]['message'][_0x4f0783('0x41')],'lastMsgAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':'in','lastMsgBody':_0x35eb07[_0x4f0783('0x55')][_0x4f0783('0x55')]};return db[_0x4f0783('0xf')]['findOne']({'where':{'closed':![],'MailAccountId':_0x35eb07[_0x4f0783('0x2f')]['id']},'include':[{'model':db['MailMessage'],'as':_0x4f0783('0x58'),'attributes':[_0x4f0783('0x4d')],'where':{'messageId':_0x35eb07[_0x4f0783('0x55')][_0x4f0783('0x3b')]['inReplyTo']}}]})[_0x4f0783('0x38')](function(_0x436c0b){const _0x245aa6=_0x4f0783;if(_0x436c0b)return[_0x436c0b,![]];return db['MailInteraction']['create'](_0x3a7e46)[_0x245aa6('0x38')](function(_0x4912c5){return[_0x4912c5,!![]];});});}else throw new Error('Contact\x20not\x20found');})[_0x1f57a6('0x38')](function([_0x518e23,_0x4f3970]){const _0x3940fd=_0x1f57a6;if(_0x518e23)return _0x1a3df4=_0x4f3970,!_0x4f3970?_0x518e23[_0x3940fd('0x2b')]({'inReplyTo':_0x35eb07[_0x3940fd('0x55')][_0x3940fd('0x3b')][_0x3940fd('0x4d')],'to':_0x35eb07['body'][_0x3940fd('0x3b')][_0x3940fd('0x3c')],'cc':_0x35eb07['body'][_0x3940fd('0x3b')]['cc'],'subject':_0x35eb07['body'][_0x3940fd('0x3b')][_0x3940fd('0x52')],'attach':_0x518e23[_0x3940fd('0x41')]?_0x518e23[_0x3940fd('0x41')]:_0x35eb07[_0x3940fd('0x55')][_0x3940fd('0x3b')][_0x3940fd('0x41')],'substatus':null,'substatusAt':moment()['format'](_0x3940fd('0x15')),'lastMsgAt':moment()[_0x3940fd('0x2c')](_0x3940fd('0x15')),'lastMsgDirection':'in','lastMsgBody':_0x35eb07[_0x3940fd('0x55')][_0x3940fd('0x55')]}):_0x518e23;})[_0x1f57a6('0x38')](function(_0x1cab5c){const _0x4ade80=_0x1f57a6;return _0xdd0aea['interaction']=_0x1cab5c[_0x4ade80('0x30')]({'plain':!![]}),_0xdd0aea[_0x4ade80('0xb')]['created']=_0x1a3df4,db[_0x4ade80('0x45')][_0x4ade80('0x2e')]({'body':_0x35eb07[_0x4ade80('0x55')][_0x4ade80('0x55')],'MailAccountId':_0x35eb07['account']['id'],'MailInteractionId':_0x1cab5c['id'],'direction':'in','ContactId':_0xdd0aea[_0x4ade80('0x42')]['id'],'messageId':_0x35eb07[_0x4ade80('0x55')][_0x4ade80('0x3b')]['messageId'],'from':_0x35eb07[_0x4ade80('0x55')]['message'][_0x4ade80('0x3c')],'to':_0x35eb07[_0x4ade80('0x55')]['message']['to'],'cc':_0x35eb07['body'][_0x4ade80('0x3b')]['cc'],'subject':_0x35eb07['body']['message'][_0x4ade80('0x52')],'attach':_0x35eb07[_0x4ade80('0x55')][_0x4ade80('0x3b')]['attach'],'Attachments':_0x35eb07['body'][_0x4ade80('0x3b')]['attachments'],'originTo':_0x35eb07[_0x4ade80('0x55')]['message'][_0x4ade80('0x14')],'originCc':_0x35eb07[_0x4ade80('0x55')][_0x4ade80('0x3b')]['originCc'],'bcc':_0x35eb07[_0x4ade80('0x55')][_0x4ade80('0x3b')][_0x4ade80('0xa')]},{'include':[{'model':db[_0x4ade80('0x1')],'as':'Attachments'}]});})[_0x1f57a6('0x38')](function(_0x30bc1b){const _0xc7e97d=_0x1f57a6;_0xdd0aea[_0xc7e97d('0x3b')]=_0x30bc1b;if(_0xdd0aea[_0xc7e97d('0xb')][_0xc7e97d('0x54')])return db['User'][_0xc7e97d('0x28')]({'attributes':['id',_0xc7e97d('0x1f')],'where':{'id':_0xdd0aea[_0xc7e97d('0xb')][_0xc7e97d('0x54')]}})[_0xc7e97d('0x38')](function(_0x61c5b6){const _0x5c9125=_0xc7e97d;return _0x61c5b6&&_0xdd0aea[_0x5c9125('0x17')][_0x5c9125('0x1d')]({'id':0x0,'priority':0x0,'app':_0x5c9125('0x33'),'appdata':_0x61c5b6[_0x5c9125('0x1f')]+','+(_0xdd0aea[_0x5c9125('0x2f')][_0x5c9125('0x21')]||0xa),'interval':'*,*,*,*'}),respondWithRpcPromise(_0x5c9125('0x8'),_0x5c9125('0x2'),_0xdd0aea);});return respondWithRpcPromise(_0xc7e97d('0x8'),_0xc7e97d('0x2'),_0xdd0aea);})[_0x1f57a6('0x38')](function(_0xe3f326){_0x1c94f0(_0xe3f326);})[_0x1f57a6('0x26')](function(_0x195a8b){const _0x17628f=_0x1f57a6;_0xb4abe1(_0xad4cb1[_0x17628f('0x4a')](0x1f4,_0x195a8b['message']));});});}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.socket.js b/server/api/mailAccount/mailAccount.socket.js index 0e6ee9d..06d4c1a 100644 --- a/server/api/mailAccount/mailAccount.socket.js +++ b/server/api/mailAccount/mailAccount.socket.js @@ -1 +1 @@ -const a398_0x1bef=['length','./mailAccount.events','remove','emit','save'];(function(_0x4348c9,_0x1bef71){const _0x514914=function(_0x2d9a8e){while(--_0x2d9a8e){_0x4348c9['push'](_0x4348c9['shift']());}};_0x514914(++_0x1bef71);}(a398_0x1bef,0x7b));const a398_0x5149=function(_0x4348c9,_0x1bef71){_0x4348c9=_0x4348c9-0x0;let _0x514914=a398_0x1bef[_0x4348c9];return _0x514914;};const _0x52c0e1=a398_0x5149;'use strict';const MailAccountEvents=require(_0x52c0e1('0x3')),events=[_0x52c0e1('0x1'),_0x52c0e1('0x4'),'update'];function createListener(_0x2d9a8e,_0xe530db){return function(_0x3ffa44){const _0x18c71a=a398_0x5149;_0xe530db[_0x18c71a('0x0')](_0x2d9a8e,_0x3ffa44);};}exports['register']=function(_0x3ccf33){const _0x12a425=_0x52c0e1;for(let _0x5e4f22=0x0,_0x2dab93=events[_0x12a425('0x2')];_0x5e4f22<_0x2dab93;_0x5e4f22++){const _0x24c6c3=events[_0x5e4f22],_0x2dc52a=createListener('mailAccount:'+_0x24c6c3,_0x3ccf33);MailAccountEvents['on'](_0x24c6c3,_0x2dc52a);}}; \ No newline at end of file +const a398_0x33d9=['emit','mailAccount:','./mailAccount.events','update','save','length','register','remove'];(function(_0x58e1db,_0x33d9c4){const _0xc06b79=function(_0x35f576){while(--_0x35f576){_0x58e1db['push'](_0x58e1db['shift']());}};_0xc06b79(++_0x33d9c4);}(a398_0x33d9,0x81));const a398_0xc06b=function(_0x58e1db,_0x33d9c4){_0x58e1db=_0x58e1db-0x0;let _0xc06b79=a398_0x33d9[_0x58e1db];return _0xc06b79;};const _0x3a6d91=a398_0xc06b;'use strict';const MailAccountEvents=require(_0x3a6d91('0x1')),events=[_0x3a6d91('0x3'),_0x3a6d91('0x6'),_0x3a6d91('0x2')];function createListener(_0x35f576,_0x193116){return function(_0x196c6a){const _0xf87c6=a398_0xc06b;_0x193116[_0xf87c6('0x7')](_0x35f576,_0x196c6a);};}exports[_0x3a6d91('0x5')]=function(_0x56e166){const _0xfa40fa=_0x3a6d91;for(let _0x18dec7=0x0,_0x43a644=events[_0xfa40fa('0x4')];_0x18dec7<_0x43a644;_0x18dec7++){const _0x4ec4ba=events[_0x18dec7],_0xafe47a=createListener(_0xfa40fa('0x0')+_0x4ec4ba,_0x56e166);MailAccountEvents['on'](_0x4ec4ba,_0xafe47a);}}; \ No newline at end of file diff --git a/server/api/mailApplication/index.js b/server/api/mailApplication/index.js index c36d70a..6e7f748 100644 --- a/server/api/mailApplication/index.js +++ b/server/api/mailApplication/index.js @@ -1 +1 @@ -const a399_0x38d4=['destroy','/:id','Router','isAuthenticated','get','../../components/auth/service','express','put','exports','show'];(function(_0x139b99,_0x38d458){const _0x52a1ba=function(_0x1086ed){while(--_0x1086ed){_0x139b99['push'](_0x139b99['shift']());}};_0x52a1ba(++_0x38d458);}(a399_0x38d4,0xc8));const a399_0x52a1=function(_0x139b99,_0x38d458){_0x139b99=_0x139b99-0x0;let _0x52a1ba=a399_0x38d4[_0x139b99];return _0x52a1ba;};const _0x34dcab=a399_0x52a1;'use strict';const express=require(_0x34dcab('0x6')),router=express[_0x34dcab('0x2')](),auth=require(_0x34dcab('0x5')),controller=require('./mailApplication.controller');router[_0x34dcab('0x4')](_0x34dcab('0x1'),auth[_0x34dcab('0x3')](),controller[_0x34dcab('0x9')]),router[_0x34dcab('0x7')]('/:id',auth['isAuthenticated'](),controller['update']),router['delete'](_0x34dcab('0x1'),auth[_0x34dcab('0x3')](),controller[_0x34dcab('0x0')]),module[_0x34dcab('0x8')]=router; \ No newline at end of file +const a399_0x4879=['destroy','/:id','put','Router','show','../../components/auth/service','exports','isAuthenticated','update','delete'];(function(_0x3b3394,_0x487904){const _0x118d66=function(_0x551109){while(--_0x551109){_0x3b3394['push'](_0x3b3394['shift']());}};_0x118d66(++_0x487904);}(a399_0x4879,0x18f));const a399_0x118d=function(_0x3b3394,_0x487904){_0x3b3394=_0x3b3394-0x0;let _0x118d66=a399_0x4879[_0x3b3394];return _0x118d66;};const _0x34ba8f=a399_0x118d;'use strict';const express=require('express'),router=express[_0x34ba8f('0x4')](),auth=require(_0x34ba8f('0x6')),controller=require('./mailApplication.controller');router['get'](_0x34ba8f('0x2'),auth[_0x34ba8f('0x8')](),controller[_0x34ba8f('0x5')]),router[_0x34ba8f('0x3')](_0x34ba8f('0x2'),auth[_0x34ba8f('0x8')](),controller[_0x34ba8f('0x9')]),router[_0x34ba8f('0x0')]('/:id',auth[_0x34ba8f('0x8')](),controller[_0x34ba8f('0x1')]),module[_0x34ba8f('0x7')]=router; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.attributes.js b/server/api/mailApplication/mailApplication.attributes.js index 0fb1779..43d9446 100644 --- a/server/api/mailApplication/mailApplication.attributes.js +++ b/server/api/mailApplication/mailApplication.attributes.js @@ -1 +1 @@ -const a400_0x156b=['noop','sequelize','INTEGER','STRING','*,*,*,*'];(function(_0x24f4de,_0x156be6){const _0x45fa95=function(_0x1ce65a){while(--_0x1ce65a){_0x24f4de['push'](_0x24f4de['shift']());}};_0x45fa95(++_0x156be6);}(a400_0x156b,0x184));const a400_0x45fa=function(_0x24f4de,_0x156be6){_0x24f4de=_0x24f4de-0x0;let _0x45fa95=a400_0x156b[_0x24f4de];return _0x45fa95;};const _0x2ba6bd=a400_0x45fa;'use strict';const Sequelize=require(_0x2ba6bd('0x3'));module['exports']={'priority':{'type':Sequelize[_0x2ba6bd('0x4')],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x2ba6bd('0x2')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x2ba6bd('0x0')]},'interval':{'type':Sequelize[_0x2ba6bd('0x0')],'defaultValue':_0x2ba6bd('0x1')}}; \ No newline at end of file +const a400_0x16e1=['noop','sequelize','*,*,*,*','INTEGER','STRING','exports'];(function(_0x3728b6,_0x16e18a){const _0x2a539c=function(_0x78b8f5){while(--_0x78b8f5){_0x3728b6['push'](_0x3728b6['shift']());}};_0x2a539c(++_0x16e18a);}(a400_0x16e1,0x1f2));const a400_0x2a53=function(_0x3728b6,_0x16e18a){_0x3728b6=_0x3728b6-0x0;let _0x2a539c=a400_0x16e1[_0x3728b6];return _0x2a539c;};const _0x2ce10a=a400_0x2a53;'use strict';const Sequelize=require(_0x2ce10a('0x1'));module[_0x2ce10a('0x5')]={'priority':{'type':Sequelize[_0x2ce10a('0x3')],'allowNull':![]},'app':{'type':Sequelize[_0x2ce10a('0x4')],'allowNull':![],'defaultValue':_0x2ce10a('0x0')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x2ce10a('0x4')]},'interval':{'type':Sequelize[_0x2ce10a('0x4')],'defaultValue':_0x2ce10a('0x2')}}; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.controller.js b/server/api/mailApplication/mailApplication.controller.js index 4c3b7ee..4fc4768 100644 --- a/server/api/mailApplication/mailApplication.controller.js +++ b/server/api/mailApplication/mailApplication.controller.js @@ -1 +1 @@ -const a401_0x33ef=['json','params','MailApplication','sendStatus','status','intersection','update','destroy','../../components/parsers/qs','body','includeAll','stack','../../config/logger','name','options','then','length','merge','keys','attributes','findOne','model','catch','lodash','filters','error','fields','api','query'];(function(_0x4cf31a,_0x33ef2b){const _0x3248bb=function(_0x350432){while(--_0x350432){_0x4cf31a['push'](_0x4cf31a['shift']());}};_0x3248bb(++_0x33ef2b);}(a401_0x33ef,0x1f2));const a401_0x3248=function(_0x4cf31a,_0x33ef2b){_0x4cf31a=_0x4cf31a-0x0;let _0x3248bb=a401_0x33ef[_0x4cf31a];return _0x3248bb;};const _0x394bd9=a401_0x3248;'use strict';const _=require(_0x394bd9('0x12')),qs=require(_0x394bd9('0x3')),logger=require(_0x394bd9('0x7'))(_0x394bd9('0x16')),db=require('../../mysqldb')['db'];function respondWithResult(_0x350432,_0x426c97){return _0x426c97=_0x426c97||0xc8,function(_0x58989d){const _0x37df0c=a401_0x3248;if(_0x58989d)return _0x350432[_0x37df0c('0x1c')](_0x426c97)[_0x37df0c('0x18')](_0x58989d);};}function saveUpdates(_0x2db670){return function(_0x33f242){const _0x5bb83b=a401_0x3248;if(_0x33f242)return _0x33f242['update'](_0x2db670)[_0x5bb83b('0xa')](function(_0x41f3fa){return _0x41f3fa;});return null;};}function removeEntity(_0x3b0b8c){return function(_0x5662b8){const _0x2402ea=a401_0x3248;if(_0x5662b8)return _0x5662b8[_0x2402ea('0x2')]()[_0x2402ea('0xa')](function(){const _0x4998f8=_0x2402ea;_0x3b0b8c[_0x4998f8('0x1c')](0xcc)['end']();});};}function handleEntityNotFound(_0x1f138d){return function(_0x4d0584){const _0x1b54ac=a401_0x3248;return!_0x4d0584&&_0x1f138d[_0x1b54ac('0x1b')](0x194),_0x4d0584;};}function handleError(_0x4d5887,_0x576950){return _0x576950=_0x576950||0x1f4,function(_0x10d0d4){const _0x19397d=a401_0x3248;logger[_0x19397d('0x14')](_0x10d0d4[_0x19397d('0x6')]),_0x10d0d4[_0x19397d('0x8')]&&delete _0x10d0d4['name'],_0x4d5887[_0x19397d('0x1c')](_0x576950)['send'](_0x10d0d4);};}exports['show']=function(_0x44421c,_0x472e6d){const _0x54bd85=_0x394bd9;let _0x275439={'raw':!![],'where':{'id':_0x44421c[_0x54bd85('0x19')]['id']}};const _0x1a317d={};return _0x1a317d['model']=_[_0x54bd85('0xd')](db[_0x54bd85('0x1a')]['rawAttributes']),_0x1a317d[_0x54bd85('0x17')]=_[_0x54bd85('0xd')](_0x44421c['query']),_0x1a317d[_0x54bd85('0x13')]=_['intersection'](_0x1a317d[_0x54bd85('0x10')],_0x1a317d['query']),_0x275439[_0x54bd85('0xe')]=_[_0x54bd85('0x0')](_0x1a317d['model'],qs[_0x54bd85('0x15')](_0x44421c['query'][_0x54bd85('0x15')])),_0x275439[_0x54bd85('0xe')]=_0x275439[_0x54bd85('0xe')][_0x54bd85('0xb')]?_0x275439[_0x54bd85('0xe')]:_0x1a317d[_0x54bd85('0x10')],_0x44421c[_0x54bd85('0x17')][_0x54bd85('0x5')]&&(_0x275439['include']=[{'all':!![]}]),_0x275439=_[_0x54bd85('0xc')]({},_0x275439,_0x44421c[_0x54bd85('0x9')]),db['MailApplication'][_0x54bd85('0xf')](_0x275439)['then'](handleEntityNotFound(_0x472e6d,null))[_0x54bd85('0xa')](respondWithResult(_0x472e6d,null))[_0x54bd85('0x11')](handleError(_0x472e6d,null));},exports[_0x394bd9('0x1')]=function(_0x198ac2,_0x27f9cc){const _0x4e5cba=_0x394bd9;return _0x198ac2[_0x4e5cba('0x4')]['id']&&delete _0x198ac2[_0x4e5cba('0x4')]['id'],db['MailApplication']['findOne']({'where':{'id':_0x198ac2[_0x4e5cba('0x19')]['id']}})[_0x4e5cba('0xa')](handleEntityNotFound(_0x27f9cc,null))[_0x4e5cba('0xa')](saveUpdates(_0x198ac2[_0x4e5cba('0x4')],null))[_0x4e5cba('0xa')](respondWithResult(_0x27f9cc,null))[_0x4e5cba('0x11')](handleError(_0x27f9cc,null));},exports[_0x394bd9('0x2')]=function(_0x3c6ae9,_0x10c46b){const _0x51b5d3=_0x394bd9;return db[_0x51b5d3('0x1a')][_0x51b5d3('0xf')]({'where':{'id':_0x3c6ae9[_0x51b5d3('0x19')]['id']}})[_0x51b5d3('0xa')](handleEntityNotFound(_0x10c46b,null))['then'](removeEntity(_0x10c46b,null))[_0x51b5d3('0x11')](handleError(_0x10c46b,null));}; \ No newline at end of file +const a401_0xa948=['fields','../../components/parsers/qs','filters','catch','destroy','MailApplication','keys','query','sendStatus','body','intersection','status','options','json','findOne','attributes','api','lodash','rawAttributes','update','then','includeAll','params','model','error','stack','end','name','show','../../config/logger'];(function(_0x6c433c,_0xa94811){const _0x1404bc=function(_0x163247){while(--_0x163247){_0x6c433c['push'](_0x6c433c['shift']());}};_0x1404bc(++_0xa94811);}(a401_0xa948,0xc0));const a401_0x1404=function(_0x6c433c,_0xa94811){_0x6c433c=_0x6c433c-0x0;let _0x1404bc=a401_0xa948[_0x6c433c];return _0x1404bc;};const _0x561df2=a401_0x1404;'use strict';const _=require(_0x561df2('0x5')),qs=require(_0x561df2('0x13')),logger=require(_0x561df2('0x11'))(_0x561df2('0x4')),db=require('../../mysqldb')['db'];function respondWithResult(_0x163247,_0x2319f7){return _0x2319f7=_0x2319f7||0xc8,function(_0x34d04f){const _0x27497e=a401_0x1404;if(_0x34d04f)return _0x163247['status'](_0x2319f7)[_0x27497e('0x1')](_0x34d04f);};}function saveUpdates(_0x30e32f){return function(_0x24ff7e){const _0x45c1c1=a401_0x1404;if(_0x24ff7e)return _0x24ff7e[_0x45c1c1('0x7')](_0x30e32f)['then'](function(_0x2092d2){return _0x2092d2;});return null;};}function removeEntity(_0x4337f6){return function(_0x3da789){const _0x25f856=a401_0x1404;if(_0x3da789)return _0x3da789[_0x25f856('0x16')]()[_0x25f856('0x8')](function(){const _0x330c56=_0x25f856;_0x4337f6[_0x330c56('0x1d')](0xcc)[_0x330c56('0xe')]();});};}function handleEntityNotFound(_0x93487f){return function(_0xbcc244){const _0x1e31a7=a401_0x1404;return!_0xbcc244&&_0x93487f[_0x1e31a7('0x1a')](0x194),_0xbcc244;};}function handleError(_0x1e60fb,_0xbd349e){return _0xbd349e=_0xbd349e||0x1f4,function(_0x431cee){const _0x4884b1=a401_0x1404;logger[_0x4884b1('0xc')](_0x431cee[_0x4884b1('0xd')]),_0x431cee[_0x4884b1('0xf')]&&delete _0x431cee[_0x4884b1('0xf')],_0x1e60fb[_0x4884b1('0x1d')](_0xbd349e)['send'](_0x431cee);};}exports[_0x561df2('0x10')]=function(_0x5ec81b,_0x5eeec3){const _0x1260e3=_0x561df2;let _0x8c3157={'raw':!![],'where':{'id':_0x5ec81b[_0x1260e3('0xa')]['id']}};const _0x40b64b={};return _0x40b64b[_0x1260e3('0xb')]=_[_0x1260e3('0x18')](db[_0x1260e3('0x17')][_0x1260e3('0x6')]),_0x40b64b['query']=_[_0x1260e3('0x18')](_0x5ec81b[_0x1260e3('0x19')]),_0x40b64b[_0x1260e3('0x14')]=_[_0x1260e3('0x1c')](_0x40b64b[_0x1260e3('0xb')],_0x40b64b[_0x1260e3('0x19')]),_0x8c3157['attributes']=_[_0x1260e3('0x1c')](_0x40b64b[_0x1260e3('0xb')],qs[_0x1260e3('0x12')](_0x5ec81b[_0x1260e3('0x19')][_0x1260e3('0x12')])),_0x8c3157[_0x1260e3('0x3')]=_0x8c3157[_0x1260e3('0x3')]['length']?_0x8c3157['attributes']:_0x40b64b[_0x1260e3('0xb')],_0x5ec81b[_0x1260e3('0x19')][_0x1260e3('0x9')]&&(_0x8c3157['include']=[{'all':!![]}]),_0x8c3157=_['merge']({},_0x8c3157,_0x5ec81b[_0x1260e3('0x0')]),db['MailApplication']['findOne'](_0x8c3157)[_0x1260e3('0x8')](handleEntityNotFound(_0x5eeec3,null))[_0x1260e3('0x8')](respondWithResult(_0x5eeec3,null))['catch'](handleError(_0x5eeec3,null));},exports['update']=function(_0x5c3d3b,_0x575d7a){const _0x4070fa=_0x561df2;return _0x5c3d3b['body']['id']&&delete _0x5c3d3b[_0x4070fa('0x1b')]['id'],db[_0x4070fa('0x17')]['findOne']({'where':{'id':_0x5c3d3b[_0x4070fa('0xa')]['id']}})[_0x4070fa('0x8')](handleEntityNotFound(_0x575d7a,null))['then'](saveUpdates(_0x5c3d3b[_0x4070fa('0x1b')],null))[_0x4070fa('0x8')](respondWithResult(_0x575d7a,null))[_0x4070fa('0x15')](handleError(_0x575d7a,null));},exports['destroy']=function(_0x5280cf,_0x58a85a){const _0x2901d0=_0x561df2;return db[_0x2901d0('0x17')][_0x2901d0('0x2')]({'where':{'id':_0x5280cf[_0x2901d0('0xa')]['id']}})[_0x2901d0('0x8')](handleEntityNotFound(_0x58a85a,null))[_0x2901d0('0x8')](removeEntity(_0x58a85a,null))[_0x2901d0('0x15')](handleError(_0x58a85a,null));}; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.model.js b/server/api/mailApplication/mailApplication.model.js index 4a2cfb3..89ed245 100644 --- a/server/api/mailApplication/mailApplication.model.js +++ b/server/api/mailApplication/mailApplication.model.js @@ -1 +1 @@ -const a402_0x1ec6=['mail_applications','MailApplication','utf8mb4_unicode_ci','./mailApplication.attributes','utf8mb4','define'];(function(_0x39d15e,_0x1ec6d2){const _0x293b4a=function(_0x382144){while(--_0x382144){_0x39d15e['push'](_0x39d15e['shift']());}};_0x293b4a(++_0x1ec6d2);}(a402_0x1ec6,0x1bc));const a402_0x293b=function(_0x39d15e,_0x1ec6d2){_0x39d15e=_0x39d15e-0x0;let _0x293b4a=a402_0x1ec6[_0x39d15e];return _0x293b4a;};const _0x407a95=a402_0x293b;'use strict';const attributes=require(_0x407a95('0x3'));module['exports']=function(_0x382144){const _0xb65da9=_0x407a95,_0x550b38=_0x382144[_0xb65da9('0x5')](_0xb65da9('0x1'),attributes,{'tableName':_0xb65da9('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xb65da9('0x4'),'collate':_0xb65da9('0x2')});return _0x550b38;}; \ No newline at end of file +const a402_0x4939=['utf8mb4','exports','utf8mb4_unicode_ci','MailApplication','mail_applications'];(function(_0x194963,_0x4939f1){const _0x10b5ac=function(_0x3db6c1){while(--_0x3db6c1){_0x194963['push'](_0x194963['shift']());}};_0x10b5ac(++_0x4939f1);}(a402_0x4939,0xd3));const a402_0x10b5=function(_0x194963,_0x4939f1){_0x194963=_0x194963-0x0;let _0x10b5ac=a402_0x4939[_0x194963];return _0x10b5ac;};const _0x17e864=a402_0x10b5;'use strict';const attributes=require('./mailApplication.attributes');module[_0x17e864('0x0')]=function(_0x3db6c1){const _0x43ed64=_0x17e864,_0x1a85be=_0x3db6c1['define'](_0x43ed64('0x2'),attributes,{'tableName':_0x43ed64('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x43ed64('0x4'),'collate':_0x43ed64('0x1')});return _0x1a85be;}; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.rpc.js b/server/api/mailApplication/mailApplication.rpc.js index b6cef04..86e5a8a 100644 --- a/server/api/mailApplication/mailApplication.rpc.js +++ b/server/api/mailApplication/mailApplication.rpc.js @@ -1 +1 @@ -const a403_0x5c9a=['debug','raw','MailApplication','limit','info','message','error','options','UpdateMailApplication','../../mysqldb','rpc','stringify','attributes','../../config/logger'];(function(_0x2ec92e,_0x5c9ab4){const _0x53f374=function(_0x3cc79a){while(--_0x3cc79a){_0x2ec92e['push'](_0x2ec92e['shift']());}};_0x53f374(++_0x5c9ab4);}(a403_0x5c9a,0x1cb));const a403_0x53f3=function(_0x2ec92e,_0x5c9ab4){_0x2ec92e=_0x2ec92e-0x0;let _0x53f374=a403_0x5c9a[_0x2ec92e];return _0x53f374;};const _0x13ca51=a403_0x53f3;'use strict';const db=require(_0x13ca51('0xc'))['db'],logger=require(_0x13ca51('0x2'))(_0x13ca51('0xd'));exports[_0x13ca51('0xb')]=function(_0x3cc79a){const _0xc4029e=this;return new Promise(function(_0x50cb24,_0xf973af){const _0x5985a8=a403_0x53f3;return db[_0x5985a8('0x5')]['update'](_0x3cc79a['body'],{'raw':_0x3cc79a[_0x5985a8('0xa')]?_0x3cc79a[_0x5985a8('0xa')][_0x5985a8('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3cc79a[_0x5985a8('0xa')]?_0x3cc79a[_0x5985a8('0xa')]['where']||null:null,'attributes':_0x3cc79a[_0x5985a8('0xa')]?_0x3cc79a[_0x5985a8('0xa')][_0x5985a8('0x1')]||null:null,'limit':_0x3cc79a['options']?_0x3cc79a[_0x5985a8('0xa')][_0x5985a8('0x6')]||null:null})['then'](function(_0x40d203){const _0x33385c=_0x5985a8;logger[_0x33385c('0x7')](_0x33385c('0xb'),_0x3cc79a),logger[_0x33385c('0x3')](_0x33385c('0xb'),_0x3cc79a,JSON[_0x33385c('0x0')](_0x40d203)),_0x50cb24(_0x40d203);})['catch'](function(_0x1ba241){const _0x32e2a2=_0x5985a8;logger['error']('UpdateMailApplication',_0x1ba241[_0x32e2a2('0x8')],_0x3cc79a),_0xf973af(_0xc4029e[_0x32e2a2('0x9')](0x1f4,_0x1ba241[_0x32e2a2('0x8')]));});});}; \ No newline at end of file +const a403_0x291a=['stringify','body','options','debug','attributes','update','error','rpc','../../config/logger','message','then','MailApplication','UpdateMailApplication'];(function(_0x48f208,_0x291a91){const _0x387abc=function(_0x153671){while(--_0x153671){_0x48f208['push'](_0x48f208['shift']());}};_0x387abc(++_0x291a91);}(a403_0x291a,0x17a));const a403_0x387a=function(_0x48f208,_0x291a91){_0x48f208=_0x48f208-0x0;let _0x387abc=a403_0x291a[_0x48f208];return _0x387abc;};const _0x50e27f=a403_0x387a;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x50e27f('0x7'))(_0x50e27f('0x6'));exports[_0x50e27f('0xb')]=function(_0x153671){const _0x2ae3e3=this;return new Promise(function(_0x52fa60,_0x6c014c){const _0x10cb8a=a403_0x387a;return db[_0x10cb8a('0xa')][_0x10cb8a('0x4')](_0x153671[_0x10cb8a('0x0')],{'raw':_0x153671[_0x10cb8a('0x1')]?_0x153671[_0x10cb8a('0x1')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x153671['options']?_0x153671[_0x10cb8a('0x1')]['where']||null:null,'attributes':_0x153671['options']?_0x153671['options'][_0x10cb8a('0x3')]||null:null,'limit':_0x153671['options']?_0x153671['options']['limit']||null:null})[_0x10cb8a('0x9')](function(_0x6edf28){const _0x301f61=_0x10cb8a;logger['info'](_0x301f61('0xb'),_0x153671),logger[_0x301f61('0x2')](_0x301f61('0xb'),_0x153671,JSON[_0x301f61('0xc')](_0x6edf28)),_0x52fa60(_0x6edf28);})['catch'](function(_0x3faf90){const _0x518c56=_0x10cb8a;logger['error'](_0x518c56('0xb'),_0x3faf90[_0x518c56('0x8')],_0x153671),_0x6c014c(_0x2ae3e3[_0x518c56('0x5')](0x1f4,_0x3faf90[_0x518c56('0x8')]));});});}; \ No newline at end of file diff --git a/server/api/mailInteraction/index.js b/server/api/mailInteraction/index.js index 3b824a1..9c8b8cf 100644 --- a/server/api/mailInteraction/index.js +++ b/server/api/mailInteraction/index.js @@ -1 +1 @@ -const a404_0x2c89=['removeTags','put','get','destroy','delete','express','addMessage','mailinteraction:destroy','/:id/tags','getMessages','tracked','/:id/messages','isAuthenticated','/describe','describe','update','mail','index','../../components/interaction/service','../../components/auth/service','./mailInteraction.controller','Router','post','addTags','/:id','/:id/download'];(function(_0x3923e1,_0x2c8922){const _0x529f62=function(_0x30b3e2){while(--_0x30b3e2){_0x3923e1['push'](_0x3923e1['shift']());}};_0x529f62(++_0x2c8922);}(a404_0x2c89,0x6c));const a404_0x529f=function(_0x3923e1,_0x2c8922){_0x3923e1=_0x3923e1-0x0;let _0x529f62=a404_0x2c89[_0x3923e1];return _0x529f62;};const _0x54b2fb=a404_0x529f;'use strict';const express=require(_0x54b2fb('0x1')),router=express[_0x54b2fb('0x11')](),auth=require(_0x54b2fb('0xf')),interaction=require(_0x54b2fb('0xe')),controller=require(_0x54b2fb('0x10'));router[_0x54b2fb('0x18')]('/',auth[_0x54b2fb('0x8')](),controller[_0x54b2fb('0xd')]),router['get'](_0x54b2fb('0x9'),auth[_0x54b2fb('0x8')](),controller[_0x54b2fb('0xa')]),router['get'](_0x54b2fb('0x14'),auth[_0x54b2fb('0x8')](),controller['show']),router[_0x54b2fb('0x18')](_0x54b2fb('0x7'),auth[_0x54b2fb('0x8')](),controller[_0x54b2fb('0x5')]),router[_0x54b2fb('0x18')](_0x54b2fb('0x15'),auth[_0x54b2fb('0x8')](),controller['download']),router[_0x54b2fb('0x12')]('/',auth[_0x54b2fb('0x8')](),controller['create']),router[_0x54b2fb('0x12')](_0x54b2fb('0x7'),auth['isAuthenticated'](),controller[_0x54b2fb('0x2')]),router['post'](_0x54b2fb('0x4'),auth[_0x54b2fb('0x8')](),interaction['tracked'](_0x54b2fb('0xc'),'mailinteraction:addtags'),controller[_0x54b2fb('0x13')]),router[_0x54b2fb('0x17')](_0x54b2fb('0x14'),auth[_0x54b2fb('0x8')](),interaction['tracked'](_0x54b2fb('0xc'),'mailinteraction:update'),controller[_0x54b2fb('0xb')]),router[_0x54b2fb('0x0')](_0x54b2fb('0x14'),auth[_0x54b2fb('0x8')](),interaction[_0x54b2fb('0x6')](_0x54b2fb('0xc'),_0x54b2fb('0x3')),controller[_0x54b2fb('0x19')]),router['delete'](_0x54b2fb('0x4'),auth[_0x54b2fb('0x8')](),controller[_0x54b2fb('0x16')]),module['exports']=router; \ No newline at end of file +const a404_0x54ea=['mailinteraction:destroy','download','mailinteraction:addtags','/:id/tags','describe','update','/:id/download','tracked','get','express','./mailInteraction.controller','index','destroy','/:id','isAuthenticated','addMessage','show','getMessages','post','../../components/auth/service','delete','../../components/interaction/service','Router','put','mail','removeTags'];(function(_0x30ca18,_0x54ead2){const _0x2ad6d2=function(_0x3ed6da){while(--_0x3ed6da){_0x30ca18['push'](_0x30ca18['shift']());}};_0x2ad6d2(++_0x54ead2);}(a404_0x54ea,0x122));const a404_0x2ad6=function(_0x30ca18,_0x54ead2){_0x30ca18=_0x30ca18-0x0;let _0x2ad6d2=a404_0x54ea[_0x30ca18];return _0x2ad6d2;};const _0x270138=a404_0x2ad6;'use strict';const express=require(_0x270138('0x5')),router=express[_0x270138('0x12')](),auth=require(_0x270138('0xf')),interaction=require(_0x270138('0x11')),controller=require(_0x270138('0x6'));router[_0x270138('0x4')]('/',auth['isAuthenticated'](),controller[_0x270138('0x7')]),router[_0x270138('0x4')]('/describe',auth['isAuthenticated'](),controller[_0x270138('0x0')]),router[_0x270138('0x4')](_0x270138('0x9'),auth[_0x270138('0xa')](),controller[_0x270138('0xc')]),router[_0x270138('0x4')]('/:id/messages',auth[_0x270138('0xa')](),controller[_0x270138('0xd')]),router[_0x270138('0x4')](_0x270138('0x2'),auth[_0x270138('0xa')](),controller[_0x270138('0x17')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x270138('0xe')]('/:id/messages',auth[_0x270138('0xa')](),controller[_0x270138('0xb')]),router['post'](_0x270138('0x19'),auth['isAuthenticated'](),interaction['tracked']('mail',_0x270138('0x18')),controller['addTags']),router[_0x270138('0x13')](_0x270138('0x9'),auth[_0x270138('0xa')](),interaction[_0x270138('0x3')](_0x270138('0x14'),'mailinteraction:update'),controller[_0x270138('0x1')]),router['delete'](_0x270138('0x9'),auth[_0x270138('0xa')](),interaction[_0x270138('0x3')](_0x270138('0x14'),_0x270138('0x16')),controller[_0x270138('0x8')]),router[_0x270138('0x10')](_0x270138('0x19'),auth['isAuthenticated'](),controller[_0x270138('0x15')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.attributes.js b/server/api/mailInteraction/mailInteraction.attributes.js index 06eb157..826eff2 100644 --- a/server/api/mailInteraction/mailInteraction.attributes.js +++ b/server/api/mailInteraction/mailInteraction.attributes.js @@ -1 +1 @@ -const a405_0x23f4=['exports','STRING','ENUM','TEXT','DATE','long'];(function(_0x11c71c,_0x23f4d7){const _0x3d9ff0=function(_0x57333d){while(--_0x57333d){_0x11c71c['push'](_0x11c71c['shift']());}};_0x3d9ff0(++_0x23f4d7);}(a405_0x23f4,0x18b));const a405_0x3d9f=function(_0x11c71c,_0x23f4d7){_0x11c71c=_0x11c71c-0x0;let _0x3d9ff0=a405_0x23f4[_0x11c71c];return _0x3d9ff0;};const _0x1cbda0=a405_0x3d9f;'use strict';const Sequelize=require('sequelize');module[_0x1cbda0('0x1')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x1cbda0('0x5')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x1cbda0('0x2')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x1cbda0('0x2')]},'inReplyTo':{'type':Sequelize[_0x1cbda0('0x2')](0x1fe)},'to':{'type':Sequelize[_0x1cbda0('0x2')]},'cc':{'type':Sequelize['TEXT'](_0x1cbda0('0x0'))},'subject':{'type':Sequelize[_0x1cbda0('0x4')]()},'attach':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'read1stAt':{'type':Sequelize['DATE']},'substatus':{'type':Sequelize[_0x1cbda0('0x2')](0x3c)},'substatusAt':{'type':Sequelize[_0x1cbda0('0x5')]},'firstMsgDirection':{'type':Sequelize[_0x1cbda0('0x3')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x1cbda0('0x5')]},'lastMsgDirection':{'type':Sequelize[_0x1cbda0('0x3')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x1cbda0('0x4')](_0x1cbda0('0x0'))},'lastMsgText':{'type':Sequelize[_0x1cbda0('0x4')](_0x1cbda0('0x0'))}}; \ No newline at end of file +const a405_0x2108=['long','BOOLEAN','out','DATE','exports','sequelize','TEXT','ENUM','STRING'];(function(_0x7f3863,_0x2108a5){const _0x311a64=function(_0xea98db){while(--_0xea98db){_0x7f3863['push'](_0x7f3863['shift']());}};_0x311a64(++_0x2108a5);}(a405_0x2108,0xcd));const a405_0x311a=function(_0x7f3863,_0x2108a5){_0x7f3863=_0x7f3863-0x0;let _0x311a64=a405_0x2108[_0x7f3863];return _0x311a64;};const _0x1062bf=a405_0x311a;'use strict';const Sequelize=require(_0x1062bf('0x7'));module[_0x1062bf('0x6')]={'closed':{'type':Sequelize[_0x1062bf('0x3')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x1062bf('0x5')]},'disposition':{'type':Sequelize[_0x1062bf('0x1')]},'secondDisposition':{'type':Sequelize[_0x1062bf('0x1')]},'thirdDisposition':{'type':Sequelize[_0x1062bf('0x1')]},'note':{'type':Sequelize[_0x1062bf('0x1')]},'inReplyTo':{'type':Sequelize[_0x1062bf('0x1')](0x1fe)},'to':{'type':Sequelize['STRING']},'cc':{'type':Sequelize['TEXT'](_0x1062bf('0x2'))},'subject':{'type':Sequelize[_0x1062bf('0x8')]()},'attach':{'type':Sequelize[_0x1062bf('0x3')],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0x1062bf('0x5')]},'substatus':{'type':Sequelize[_0x1062bf('0x1')](0x3c)},'substatusAt':{'type':Sequelize[_0x1062bf('0x5')]},'firstMsgDirection':{'type':Sequelize[_0x1062bf('0x0')]('in',_0x1062bf('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x1062bf('0x5')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x1062bf('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x1062bf('0x8')](_0x1062bf('0x2'))},'lastMsgText':{'type':Sequelize[_0x1062bf('0x8')](_0x1062bf('0x2'))}}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.controller.js b/server/api/mailInteraction/mailInteraction.controller.js index b7ca6a0..6733008 100644 --- a/server/api/mailInteraction/mailInteraction.controller.js +++ b/server/api/mailInteraction/mailInteraction.controller.js @@ -1 +1 @@ -const a406_0x22f3=['Tag','`\x20>\x200','Messages','conditions','i.MailAccountId\x20IS\x20NULL','set','map','ids','like','tag','tmp','read','rimraf','lastMsgText','Setting','parseSearch','name','mail_accounts','headers','nolimit','fieldName','getMailAccounts','all','unlinkSync','intersection','MailInteraction','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','c.firstName','parse','i.lastMsgAt','filters','c.lastName','rawAttributes','split','keyBy','QueryTypes','UserId','i.secondDisposition','addMessage','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','concat','field','keys','util','buildExpression','c.fax','sendStatus','replace','Contact.firstName','c.email','attributes','color','ContactId','Contact.phone','select','SELECT','then','../../config/logger','Contact.mobile','limit','Contact','some','union','groupBy','Contact.fax','omit','./mailInteraction.socket','bcc','status','\x27\x27\x27\x27','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','destroy','mkdirSync','Users','log','clone','describe','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','basename','it.MailInteractionId\x20=\x20i.id','files','o.internal','resolve','i.disposition','rows','gte','order','index','attachments','options','error','merge','params','undefined','../../components/parsers/qs','tools_tags','getFullTextValue','where','`unreadMessages`\x20=\x200','a.mandatoryDisposition','find','i.to','fromString','stack','create','i.MailAccountId\x20IS\x20NOT\x20NULL','include','t.id\x20=\x20it.TagId','Attachments','mail_messages','DESC','Contact.lastName','c.phone','trimStart','value','root','MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','zip-dir','type','enableEmailPreview','Account.key','search','from','offset','send','GROUP_CONCAT(DISTINCT\x20t.id)','ui.MailInteractionId','i.lastMsgDirection','`unreadMessages`\x20>\x200','count','fields','catch','start','transcript-%d-%s.zip','sort','findOne','build','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','i.closedAt','left_join','i.thirdDisposition','unix','a.key','me.MailInteractionId\x20=\x20i.id','i.id','isEmpty','lastMsgBody','Content-Range','isEmail','text','MailInteractionId','mail_interaction_has_tags','sequelize','i.createdAt','Account.mandatoryDisposition','ui.MailInteractionId\x20IN\x20?','eml-format','i.subject','query','download','u.fullname','\x20IS\x20NULL','having','html-to-text','join','push','show','users','$lte','YYYY-MM-DD\x20HH:mm:ss','c.email\x20LIKE\x20?','message%d.eml','compact','filter','o.fullname','includeAll','i.updatedAt','getMessages','addTags','i.id\x20LIKE\x20?','readFileSync','MailMessage','json','pick','isNumeric','../../config/environment','subject','createdAt','mail_interactions','group','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','i.closed','unreadMessages','$gte','length','squel','removeTags','$substring','server','user','\x20=\x20?','`\x20=\x200','cm_contacts','body','model','user_has_mail_interactions','journey','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','../../rediscache','findAll','expr','Tags','end','emit','TagIds','operator','i.MailAccountId\x20IN\x20?','i.UserId','plainBody','format','MailAccountId','t.id\x20IN\x20?','u.id\x20=\x20ui.UserId','forEach','isArray','toString','err','existsSync'];(function(_0x4a1a2d,_0x22f351){const _0x5b0c4a=function(_0x2473ac){while(--_0x2473ac){_0x4a1a2d['push'](_0x4a1a2d['shift']());}};_0x5b0c4a(++_0x22f351);}(a406_0x22f3,0x12e));const a406_0x5b0c=function(_0x4a1a2d,_0x22f351){_0x4a1a2d=_0x4a1a2d-0x0;let _0x5b0c4a=a406_0x22f3[_0x4a1a2d];return _0x5b0c4a;};const _0x536e28=a406_0x5b0c;'use strict';const emlformat=require(_0x536e28('0x54')),rimraf=require(_0x536e28('0xa8')),zipdir=require(_0x536e28('0x2d')),moment=require('moment'),util=require(_0x536e28('0xc7')),path=require('path'),fs=require('fs'),_=require('lodash'),squel=require(_0x536e28('0x7b')),htmlToText=require(_0x536e28('0x5b')),{getSocket}=require(_0x536e28('0x88')),socket=getSocket(),qs=require(_0x536e28('0x16')),as=require('../../components/parsers/advancedSearch'),logger=require(_0x536e28('0xd5'))('api'),config=require(_0x536e28('0x71')),db=require('../../mysqldb')['db'],{Op}=require(_0x536e28('0x50'));require(_0x536e28('0xde'))['register'](socket);function respondWithStatusCode(_0x2473ac,_0x272b45){return _0x272b45=_0x272b45||0xcc,function(_0x3d2b23){const _0x3ba742=a406_0x5b0c;if(_0x3d2b23)return _0x2473ac['sendStatus'](_0x272b45);return _0x2473ac[_0x3ba742('0xe0')](_0x272b45)[_0x3ba742('0x8c')]();};}function respondWithResult(_0x11164e,_0x40d8b4){return _0x40d8b4=_0x40d8b4||0xc8,function(_0xea18d1){const _0x3d80a9=a406_0x5b0c;if(_0xea18d1)return _0x11164e[_0x3d80a9('0xe0')](_0x40d8b4)[_0x3d80a9('0x6e')](_0xea18d1);};}function respondWithFilteredResult(_0x15d9fc,_0x4b5e31){return function(_0xa7519b){const _0x51bcaa=a406_0x5b0c;if(_0xa7519b){const _0xc5524f=_0xa7519b['count'],_0xc7ea6c=_0x4b5e31[_0x51bcaa('0x33')];let _0x454784=_0x4b5e31[_0x51bcaa('0x33')]+_0x4b5e31[_0x51bcaa('0xd7')],_0x222178;return _0x454784>=_0xc5524f?(_0x454784=_0xc5524f,_0x222178=0xc8):_0x222178=0xce,_0x15d9fc['status'](_0x222178),_0x15d9fc[_0x51bcaa('0xa1')](_0x51bcaa('0x4b'),_0xc7ea6c+'-'+_0x454784+'/'+_0xc5524f)['json'](_0xa7519b);}return null;};}function saveUpdates(_0x20b0f3){return function(_0x2b7fcf){const _0x7e47e3=a406_0x5b0c;if(_0x2b7fcf)return _0x2b7fcf['update'](_0x20b0f3)[_0x7e47e3('0xd4')](function(_0x55485d){return _0x55485d;});return null;};}function removeEntity(_0x571134){return function(_0x50784b){const _0x3226f8=a406_0x5b0c;if(_0x50784b)return _0x50784b['destroy']()[_0x3226f8('0xd4')](function(){const _0x4b0247=_0x3226f8;_0x571134[_0x4b0247('0xe0')](0xcc)[_0x4b0247('0x8c')]();});};}function handleEntityNotFound(_0xbfae35){return function(_0x55efee){const _0x370285=a406_0x5b0c;return!_0x55efee&&_0xbfae35[_0x370285('0xca')](0x194),_0x55efee;};}function handleError(_0x3f71c5,_0x4d4bae){return _0x4d4bae=_0x4d4bae||0x1f4,function(_0x26a727){const _0x6a4328=a406_0x5b0c;logger[_0x6a4328('0x12')](_0x26a727[_0x6a4328('0x1f')]),_0x26a727['name']&&delete _0x26a727[_0x6a4328('0xac')],_0x3f71c5['status'](_0x4d4bae)[_0x6a4328('0x34')](_0x26a727);};}function getInteractionUsers(_0x4a149a,_0xaf2e45){return new Promise(function(_0xc43227,_0x326e95){const _0x322f6a=a406_0x5b0c;try{_0xaf2e45[_0x4a149a['id']]&&(_0x4a149a[_0x322f6a('0x0')]=_[_0x322f6a('0xa2')](_0xaf2e45[_0x4a149a['id']],function(_0x36b03e){return{'id':_0x36b03e['id'],'fullname':_0x36b03e['fullname']};}));}catch(_0x168e61){_0x326e95(_0x168e61);}_0xc43227(_0x4a149a);});}function getInteractionTags(_0x3b5e1b,_0x560244){return new Promise(function(_0x154005,_0x210cbf){const _0x4230d5=a406_0x5b0c;try{_0x3b5e1b['TagIds']&&(_0x3b5e1b[_0x4230d5('0x8b')]=[],_0x3b5e1b[_0x4230d5('0x8e')][_0x4230d5('0xbd')](',')[_0x4230d5('0x97')](function(_0x4b8bbf){const _0x57c8ee=_0x4230d5;_0x3b5e1b[_0x57c8ee('0x8b')][_0x57c8ee('0x5d')](_0x560244[_0x4b8bbf]);})),delete _0x3b5e1b[_0x4230d5('0x8e')];}catch(_0x427b47){_0x210cbf(_0x427b47);}_0x154005(_0x3b5e1b);});}function getLastMessageText(_0x471f78){return new Promise(function(_0x5f3daa,_0x426994){const _0x2f79dd=a406_0x5b0c;return db[_0x2f79dd('0xb5')][_0x2f79dd('0x3f')]({'where':{'id':_0x471f78['id']},'attributes':[_0x2f79dd('0x4a'),_0x2f79dd('0xa9')],'raw':!![]})[_0x2f79dd('0xd4')](function(_0x2fdd53){const _0x112a5c=_0x2f79dd;!_0x2fdd53[_0x112a5c('0xa9')]?_0x471f78[_0x112a5c('0xa9')]=_[_0x112a5c('0x29')](htmlToText[_0x112a5c('0x1e')](_0x2fdd53[_0x112a5c('0x4a')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x471f78[_0x112a5c('0xa9')]=_0x2fdd53[_0x112a5c('0xa9')],_0x5f3daa(_0x471f78);})[_0x2f79dd('0x3b')](function(_0x510772){_0x426994(_0x510772);});});}function updateMailInteraction(_0x2ece9f,_0xcbd272,_0x953da0,_0xc5a4c6){return new Promise(function(_0x480b7d,_0x375e17){const _0xd76af2=a406_0x5b0c;return getInteractionUsers(_0x2ece9f,_0x953da0)[_0xd76af2('0xd4')](function(_0x5240a8){return getInteractionTags(_0x5240a8,_0xcbd272);})[_0xd76af2('0xd4')](function(_0x8f9f65){_0xc5a4c6?_0x480b7d(getLastMessageText(_0x8f9f65)):_0x480b7d(_0x8f9f65);})[_0xd76af2('0x3b')](function(_0x3f410a){_0x375e17(_0x3f410a);});});}exports[_0x536e28('0xf')]=function(_0x1761ff,_0xa88d38){const _0x3062cb=_0x536e28,_0x1cdd44={},_0x4ed0b9={},_0x268a89={'count':0x0,'rows':[]},_0x18ad0a=_['map'](db['MailInteraction'][_0x3062cb('0xbc')],function(_0x13a064){const _0xd84a81=_0x3062cb;return{'name':_0x13a064[_0xd84a81('0xb0')],'type':_0x13a064[_0xd84a81('0x2e')]['key']};});_0x4ed0b9[_0x3062cb('0x84')]=_['map'](_0x18ad0a,_0x3062cb('0xac')),_0x4ed0b9[_0x3062cb('0x56')]=_['keys'](_0x1761ff['query']),_0x4ed0b9[_0x3062cb('0xba')]=_[_0x3062cb('0xb4')](_0x4ed0b9[_0x3062cb('0x84')],_0x4ed0b9[_0x3062cb('0x56')]),_0x1cdd44[_0x3062cb('0xce')]=_[_0x3062cb('0xb4')](_0x4ed0b9[_0x3062cb('0x84')],qs[_0x3062cb('0x3a')](_0x1761ff[_0x3062cb('0x56')]['fields'])),_0x1cdd44[_0x3062cb('0xce')]=_0x1cdd44['attributes']['length']?_0x1cdd44[_0x3062cb('0xce')]:_0x4ed0b9['model'];typeof _0x1761ff[_0x3062cb('0x56')][_0x3062cb('0xaf')]===_0x3062cb('0x15')&&(_0x1cdd44[_0x3062cb('0xd7')]=qs['limit'](_0x1761ff['query'][_0x3062cb('0xd7')]),_0x1cdd44[_0x3062cb('0x33')]=qs[_0x3062cb('0x33')](_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0x33')]));_0x1cdd44['order']=qs[_0x3062cb('0x3e')](_0x1761ff['query'][_0x3062cb('0x3e')]),_0x1cdd44['where']=qs[_0x3062cb('0xba')](_[_0x3062cb('0x6f')](_0x1761ff[_0x3062cb('0x56')],_0x4ed0b9[_0x3062cb('0xba')]),_0x18ad0a);let _0x3b5500=[];const _0x16e1bc=squel[_0x3062cb('0xd2')]()[_0x3062cb('0xc5')]('id')['field'](_0x3062cb('0xac'))['field'](_0x3062cb('0xcf'))[_0x3062cb('0x32')]('tools_tags'),_0xd856f=squel['select']()['field']('u.id')['field'](_0x3062cb('0x58'))[_0x3062cb('0xc5')](_0x3062cb('0x36'))[_0x3062cb('0x32')](_0x3062cb('0x85'),'ui')[_0x3062cb('0x43')](_0x3062cb('0x5f'),'u',_0x3062cb('0x96')),_0x308d6a=squel['select']()[_0x3062cb('0x32')](_0x3062cb('0x74'),'i')[_0x3062cb('0x43')](_0x3062cb('0x82'),'c',_0x3062cb('0x76'))[_0x3062cb('0x43')](_0x3062cb('0x5f'),'o','o.id\x20=\x20i.UserId')[_0x3062cb('0x43')](_0x3062cb('0xad'),'a','a.id\x20=\x20i.MailAccountId')[_0x3062cb('0x43')](_0x3062cb('0x25'),'me',_0x3062cb('0x47'))[_0x3062cb('0x43')](_0x3062cb('0x4f'),'it',_0x3062cb('0x7'))[_0x3062cb('0x43')](_0x3062cb('0x17'),'t',_0x3062cb('0x23')),_0x1395bc=squel['expr']();let _0x8c71a1=[];const _0x11b778=squel[_0x3062cb('0x8a')]();let _0x4c12aa;if(_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0x31')]){_0x4c12aa=as[_0x3062cb('0xab')](_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0x31')]);const _0x1e466a=_0x4c12aa['sqlOperator'];for(let _0x2e039a=0x0;_0x2e039a<_0x4c12aa[_0x3062cb('0x9f')]['length'];_0x2e039a++){const _0x36043a=_0x4c12aa[_0x3062cb('0x9f')][_0x2e039a],_0x1f7e5b='i';let _0x46ffc5,_0x1c2740=_[_0x3062cb('0x1c')](_0x18ad0a,[_0x3062cb('0xac'),_0x36043a[_0x3062cb('0xc5')]]);if(!_0x1c2740)switch(_0x36043a[_0x3062cb('0xc5')]){case _0x3062cb('0x78'):_0x36043a[_0x3062cb('0x2a')]==0x1?_0x308d6a['having']('`'+_0x36043a[_0x3062cb('0xc5')]+_0x3062cb('0x81')):_0x308d6a[_0x3062cb('0x5a')]('`'+_0x36043a[_0x3062cb('0xc5')]+_0x3062cb('0x9d'));break;case _0x3062cb('0xd8'):if(_0x36043a[_0x3062cb('0x8f')]==='$substring'){if(_0x36043a[_0x3062cb('0x2a')][_0x3062cb('0xbd')]('\x20')[_0x3062cb('0x7a')]>0x1)_0x1395bc[_0x1e466a](_0x3062cb('0x5'),qs['getFullTextValue'](_0x36043a[_0x3062cb('0x2a')]),null);else{const _0x297fbc='%'+_0x36043a[_0x3062cb('0x2a')]+'%';_0x1395bc[_0x1e466a](_0x3062cb('0x41'),_0x297fbc,_0x297fbc,_0x297fbc);}}else _0x1c2740=_[_0x3062cb('0x1c')](_0x18ad0a,[_0x3062cb('0xac'),'ContactId']),_0x36043a[_0x3062cb('0xc5')]=_0x3062cb('0xd0'),_0x46ffc5=as[_0x3062cb('0xc8')](_0x1f7e5b,_0x1c2740[_0x3062cb('0x2e')],_0x36043a),_0x1395bc[_0x1e466a](_0x46ffc5['text'],_0x46ffc5[_0x3062cb('0x2a')][_0x3062cb('0x3c')],_0x46ffc5[_0x3062cb('0x2a')]['end']);break;case'Tag':{const _0x42ab24=_0x36043a['value'][_0x3062cb('0xbd')](',')[_0x3062cb('0xa2')](function(_0x21e1eb){return Number(_0x21e1eb);});_0x42ab24[_0x3062cb('0x97')](function(_0x2dcda2){_0x11b778['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x2dcda2+',%');}),_0x8c71a1=_[_0x3062cb('0xda')](_0x8c71a1,_0x42ab24);}break;case'User':_0x36043a[_0x3062cb('0x8f')]===_0x3062cb('0x7d')?_0x1395bc[_0x1e466a](_0x3062cb('0x4'),'%'+_0x36043a['value']+'%',null):(_0x1c2740=_[_0x3062cb('0x1c')](_0x18ad0a,['name',_0x3062cb('0xc0')]),_0x36043a['field']='UserId',_0x46ffc5=as[_0x3062cb('0xc8')](_0x1f7e5b,_0x1c2740[_0x3062cb('0x2e')],_0x36043a),_0x1395bc[_0x1e466a](_0x46ffc5[_0x3062cb('0x4d')],_0x46ffc5[_0x3062cb('0x2a')][_0x3062cb('0x3c')],_0x46ffc5[_0x3062cb('0x2a')][_0x3062cb('0x8c')]));break;case _0x3062cb('0x92'):_0x46ffc5=as['buildExpression']('me',null,_0x36043a),_0x1395bc[_0x1e466a](_0x46ffc5[_0x3062cb('0x4d')],_0x46ffc5[_0x3062cb('0x2a')][_0x3062cb('0x3c')],_0x46ffc5[_0x3062cb('0x2a')][_0x3062cb('0x8c')]);break;}else _0x46ffc5=as[_0x3062cb('0xc8')](_0x1f7e5b,_0x1c2740[_0x3062cb('0x2e')],_0x36043a),_0x1395bc[_0x1e466a](_0x46ffc5[_0x3062cb('0x4d')],_0x46ffc5[_0x3062cb('0x2a')][_0x3062cb('0x3c')],_0x46ffc5['value'][_0x3062cb('0x8c')]);}}else{const _0x57a684=_(_0x1761ff[_0x3062cb('0x56')])['keys']()['map'](function(_0x48f7cb){const _0x421610=_0x3062cb;return _[_0x421610('0xd9')](_0x18ad0a,['name',_0x48f7cb])?_0x48f7cb:undefined;})[_0x3062cb('0x64')]()[_0x3062cb('0x2a')]();!_[_0x3062cb('0x49')](_0x57a684)&&_0x57a684[_0x3062cb('0x97')](function(_0x121b13){const _0x3133d1=_0x3062cb;if(_0x121b13===_0x3133d1('0x94'))_0x308d6a[_0x3133d1('0x19')]('i.MailAccountId\x20IN\x20?',[][_0x3133d1('0xc4')](_0x1761ff[_0x3133d1('0x56')][_0x121b13]));else{if(_0x121b13==='createdAt'){const _0x39157f=JSON[_0x3133d1('0xb8')](_0x1761ff['query'][_0x121b13])[_0x3133d1('0x79')],_0x556ea9=JSON[_0x3133d1('0xb8')](_0x1761ff[_0x3133d1('0x56')][_0x121b13])[_0x3133d1('0x60')];_0x308d6a[_0x3133d1('0x19')](_0x3133d1('0xc3'),_0x39157f,_0x556ea9);}else _0x1761ff['query'][_0x121b13]==='null'?_0x308d6a['where']('i.'+_0x121b13+_0x3133d1('0x59')):_0x308d6a[_0x3133d1('0x19')]('i.'+_0x121b13+_0x3133d1('0x80'),_0x1761ff[_0x3133d1('0x56')][_0x121b13]);}});_0x1761ff['query'][_0x3062cb('0xa7')]&&(_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0xa7')]==0x1?_0x308d6a[_0x3062cb('0x5a')](_0x3062cb('0x1a')):_0x308d6a[_0x3062cb('0x5a')](_0x3062cb('0x38')));_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0xa5')]&&(_0x8c71a1=_[_0x3062cb('0x98')](_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0xa5')])?_0x1761ff['query']['tag']:new Array(_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0xa5')]),_0x8c71a1[_0x3062cb('0x97')](function(_0x419383){const _0x437076=_0x3062cb;_0x11b778['or'](_0x437076('0x87'),'%,'+_0x419383+',%');}));if(_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0x65')]){const _0x346031=_0x1761ff[_0x3062cb('0x56')][_0x3062cb('0x65')][_0x3062cb('0xcb')]('\x5c','\x5c\x5c')[_0x3062cb('0xcb')]('\x27\x27',_0x3062cb('0xe1'));if(qs[_0x3062cb('0x70')](_0x346031))_0x1395bc['or'](_0x3062cb('0x6b'),_0x346031+'%');else qs[_0x3062cb('0x4c')](_0x346031)?_0x1395bc['or'](_0x3062cb('0x62'),_0x346031+'%'):_0x1395bc['or'](_0x3062cb('0x2c'),qs[_0x3062cb('0x18')](_0x346031))['or']('MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x3062cb('0x18')](_0x346031));}}_0x308d6a[_0x3062cb('0x19')](_0x1395bc),_0x308d6a[_0x3062cb('0x75')]('i.id');let _0x47345d={'type':db['Sequelize'][_0x3062cb('0xbf')][_0x3062cb('0xd3')],'raw':!![]};const _0x25efc6=_0x308d6a[_0x3062cb('0x2')]();_0x25efc6[_0x3062cb('0xc5')](_0x3062cb('0x48')),_0x25efc6[_0x3062cb('0xc5')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x3062cb('0x78')),_0x1cdd44[_0x3062cb('0xe')]&&_0x1cdd44[_0x3062cb('0xe')][_0x3062cb('0x97')](function(_0x575772){const _0x24590d=_0x3062cb;_0x308d6a[_0x24590d('0xe')]('i.'+_0x575772[0x0],_0x575772[0x1]===_0x24590d('0x26')?![]:!![]);}),!_['isEmpty'](_0x8c71a1)&&(_0x308d6a[_0x3062cb('0x5a')](_0x11b778),_0x25efc6[_0x3062cb('0x19')](_0x3062cb('0x95'),_0x8c71a1)),Promise[_0x3062cb('0xa')]()[_0x3062cb('0xd4')](function(){const _0x296aa8=_0x3062cb;if(!_0x4c12aa){if(_0x1761ff[_0x296aa8('0x56')][_0x296aa8('0x94')]||_0x1761ff[_0x296aa8('0x56')][_0x296aa8('0x86')])return;_0x25efc6[_0x296aa8('0x19')](_0x296aa8('0x21')),_0x308d6a['where']('i.MailAccountId\x20IS\x20NOT\x20NULL');return;}return _0x1761ff[_0x296aa8('0x7f')][_0x296aa8('0xb1')]({'attributes':['id'],'raw':!![]})[_0x296aa8('0xd4')](function(_0x16df42){const _0x22afe2=_0x296aa8;_[_0x22afe2('0x49')](_0x16df42)?(_0x25efc6[_0x22afe2('0x19')](_0x22afe2('0xa0')),_0x308d6a[_0x22afe2('0x19')]('i.MailAccountId\x20IS\x20NULL')):(_0x25efc6[_0x22afe2('0x19')]('i.MailAccountId\x20IN\x20?',_['map'](_0x16df42,'id')),_0x308d6a['where'](_0x22afe2('0x90'),_[_0x22afe2('0xa2')](_0x16df42,'id')));});})['then'](function(){const _0x41cef5=_0x3062cb;db[_0x41cef5('0x50')]['query'](_0x25efc6['toString'](),_0x47345d)[_0x41cef5('0xd4')](function(_0x3fbd70){const _0x44bca2=_0x41cef5;_0x268a89[_0x44bca2('0x39')]=_0x3fbd70[_0x44bca2('0x7a')];if(_0x268a89[_0x44bca2('0x39')]===0x0)return[];return db[_0x44bca2('0x50')][_0x44bca2('0x56')](_0x16e1bc[_0x44bca2('0x99')](),_0x47345d)['then'](function(_0x5024f6){const _0x104a19=_0x44bca2;_0x3b5500=_[_0x104a19('0xbe')](_0x5024f6,'id'),_0x47345d=_['merge'](_0x47345d,{'model':db['MailInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x1761ff['query']['fields']?_0x1cdd44[_0x104a19('0xce')][_0x104a19('0x97')](function(_0x227fe7){const _0x5dab97=_0x104a19;_0x308d6a[_0x5dab97('0xc5')]('i.'+_0x227fe7);}):(_0x308d6a[_0x104a19('0xc5')](_0x104a19('0xb6'),_0x104a19('0x78')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x46'),_0x104a19('0x30')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x1b'),_0x104a19('0x52')),_0x308d6a['field'](_0x104a19('0x48')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x51')),_0x308d6a['field'](_0x104a19('0x68')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x77')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x42')),_0x308d6a['field']('i.attach'),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0xb9')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x37')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x55')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0xb')),_0x308d6a['field'](_0x104a19('0xc1')),_0x308d6a['field'](_0x104a19('0x44')),_0x308d6a[_0x104a19('0xc5')]('i.substatus'),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x1d')),_0x308d6a[_0x104a19('0xc5')]('i.ContactId'),_0x308d6a[_0x104a19('0xc5')]('i.MailAccountId'),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x91')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0xb7'),_0x104a19('0xcc')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0xbb'),_0x104a19('0x27')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0xcd'),'Contact.email'),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x28'),_0x104a19('0xd1')),_0x308d6a['field']('c.mobile',_0x104a19('0xd6')),_0x308d6a['field'](_0x104a19('0xc9'),_0x104a19('0xdc')),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x66'),'Owner.fullname'),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x9'),'Owner.internal'),_0x308d6a[_0x104a19('0xc5')](_0x104a19('0x35'),_0x104a19('0x8e')));if(_0x1cdd44[_0x104a19('0xd7')])_0x308d6a[_0x104a19('0xd7')](_0x1cdd44[_0x104a19('0xd7')]);if(_0x1cdd44['offset'])_0x308d6a[_0x104a19('0x33')](_0x1cdd44[_0x104a19('0x33')]);return db[_0x104a19('0x50')][_0x104a19('0x56')](_0x308d6a[_0x104a19('0x99')](),_0x47345d);})['then'](function(_0x4fdf56){const _0xa97877=_0x44bca2;return _0xd856f[_0xa97877('0x19')](_0xa97877('0x53'),_[_0xa97877('0xa2')](_0x4fdf56,'id')),db['sequelize']['query'](_0xd856f[_0xa97877('0x99')](),_0x47345d)['then'](function(_0x3f44c6){const _0x217ec1=_0xa97877,_0x1e218d=_[_0x217ec1('0xdb')](_0x3f44c6,_0x217ec1('0x4e')),_0x56c4fc=[];return db[_0x217ec1('0xaa')][_0x217ec1('0x3f')]({'attributes':['enableEmailPreview'],'raw':!![]})['then'](function(_0x5969e8){const _0x33c9fb=_0x217ec1,_0x4400f4=_0x5969e8[_0x33c9fb('0x2f')];return _0x4fdf56[_0x33c9fb('0x97')](function(_0x5c0e26){_0x56c4fc['push'](updateMailInteraction(_0x5c0e26,_0x3b5500,_0x1e218d,_0x4400f4));}),Promise[_0x33c9fb('0xb2')](_0x56c4fc);});});});})[_0x41cef5('0xd4')](function(_0x36a839){const _0x3f6d47=_0x41cef5;return _0x268a89[_0x3f6d47('0xc')]=_0x36a839,_0x268a89;})[_0x41cef5('0xd4')](respondWithFilteredResult(_0xa88d38,_0x1cdd44));})['catch'](handleError(_0xa88d38,null));},exports[_0x536e28('0x5e')]=function(_0x1bdbaa,_0x5aa58c){const _0x2510c5=_0x536e28;let _0xc28067={'raw':![],'where':{'id':_0x1bdbaa['params']['id']}};const _0x3af6f4={};return _0x3af6f4['model']=_[_0x2510c5('0xc6')](db[_0x2510c5('0xb5')]['rawAttributes']),_0x3af6f4[_0x2510c5('0x56')]=_['keys'](_0x1bdbaa['query']),_0x3af6f4[_0x2510c5('0xba')]=_['intersection'](_0x3af6f4['model'],_0x3af6f4['query']),_0xc28067[_0x2510c5('0xce')]=_[_0x2510c5('0xb4')](_0x3af6f4['model'],qs['fields'](_0x1bdbaa[_0x2510c5('0x56')][_0x2510c5('0x3a')])),_0xc28067[_0x2510c5('0xce')]=_0xc28067[_0x2510c5('0xce')][_0x2510c5('0x7a')]?_0xc28067[_0x2510c5('0xce')]:_0x3af6f4[_0x2510c5('0x84')],_0x1bdbaa['query'][_0x2510c5('0x67')]&&(_0xc28067[_0x2510c5('0x22')]=[{'all':!![]}]),_0xc28067=_['merge']({},_0xc28067,_0x1bdbaa['options']),db[_0x2510c5('0xb5')]['findOne'](_0xc28067)['then'](handleEntityNotFound(_0x5aa58c,null))[_0x2510c5('0xd4')](respondWithResult(_0x5aa58c,null))[_0x2510c5('0x3b')](handleError(_0x5aa58c,null));},exports[_0x536e28('0x20')]=function(_0x44391d,_0x26d029){const _0x22960e=_0x536e28;return db['MailInteraction'][_0x22960e('0x20')](_0x44391d[_0x22960e('0x83')],{})[_0x22960e('0xd4')](respondWithResult(_0x26d029,0xc9))[_0x22960e('0x3b')](handleError(_0x26d029,null));},exports['update']=function(_0x12e9d8,_0x2677b2){const _0x1e542c=_0x536e28;return _0x12e9d8['body']['id']&&delete _0x12e9d8[_0x1e542c('0x83')]['id'],db['MailInteraction']['findOne']({'where':{'id':_0x12e9d8['params']['id']}})['then'](handleEntityNotFound(_0x2677b2,null))[_0x1e542c('0xd4')](saveUpdates(_0x12e9d8[_0x1e542c('0x83')],null))['then'](respondWithResult(_0x2677b2,null))[_0x1e542c('0x3b')](handleError(_0x2677b2,null));},exports[_0x536e28('0xe3')]=function(_0x28d1aa,_0x545335){const _0x3d81ed=_0x536e28;return db[_0x3d81ed('0xb5')][_0x3d81ed('0x3f')]({'where':{'id':_0x28d1aa['params']['id']}})[_0x3d81ed('0xd4')](handleEntityNotFound(_0x545335,null))[_0x3d81ed('0xd4')](removeEntity(_0x545335,null))[_0x3d81ed('0x3b')](handleError(_0x545335,null));},exports[_0x536e28('0x3')]=function(_0x3fd0e1,_0x4e9dc4){const _0x21145d=_0x536e28;return db[_0x21145d('0xb5')][_0x21145d('0x3')]()['then'](respondWithResult(_0x4e9dc4,null))[_0x21145d('0x3b')](handleError(_0x4e9dc4,null));},exports[_0x536e28('0xc2')]=function(_0x2bfbb7,_0x5c924a){const _0x2c0365=_0x536e28;return db[_0x2c0365('0x6d')][_0x2c0365('0x3f')]({'where':{'id':_0x2bfbb7[_0x2c0365('0x14')]['id']}})[_0x2c0365('0xd4')](function(_0x3eb67a){const _0x19d37b=_0x2c0365;if(_0x3eb67a)return _0x3eb67a[_0x19d37b('0xc2')](_0x2bfbb7['body']['ids'],{'through':_[_0x19d37b('0xdd')](_0x2bfbb7[_0x19d37b('0x83')],['ids','id'])});})['then'](respondWithResult(_0x5c924a,null))[_0x2c0365('0x3b')](handleError(_0x5c924a,null));},exports[_0x536e28('0x69')]=function(_0x54da10,_0x346d9f){const _0xde81a4=_0x536e28;let _0x73bbd2={'raw':![],'where':{}};const _0x1605a3={},_0x3ac70d={'count':0x0,'rows':[]};return db[_0xde81a4('0xb5')][_0xde81a4('0x3f')]({'where':{'id':_0x54da10[_0xde81a4('0x14')]['id']}})[_0xde81a4('0xd4')](handleEntityNotFound(_0x346d9f,null))[_0xde81a4('0xd4')](function(_0x37f57b){const _0x30d0e0=_0xde81a4;if(_0x37f57b){_0x1605a3['model']=_[_0x30d0e0('0xc6')](db[_0x30d0e0('0x6d')][_0x30d0e0('0xbc')]),_0x1605a3['query']=_['keys'](_0x54da10[_0x30d0e0('0x56')]),_0x1605a3['filters']=_[_0x30d0e0('0xb4')](_0x1605a3[_0x30d0e0('0x84')],_0x1605a3['query']),_0x73bbd2[_0x30d0e0('0xce')]=_[_0x30d0e0('0xb4')](_0x1605a3[_0x30d0e0('0x84')],qs[_0x30d0e0('0x3a')](_0x54da10[_0x30d0e0('0x56')]['fields'])),_0x73bbd2[_0x30d0e0('0xce')]=_0x73bbd2[_0x30d0e0('0xce')][_0x30d0e0('0x7a')]?_0x73bbd2['attributes']:_0x1605a3[_0x30d0e0('0x84')];typeof _0x54da10[_0x30d0e0('0x56')][_0x30d0e0('0xaf')]===_0x30d0e0('0x15')&&(_0x73bbd2[_0x30d0e0('0xd7')]=qs[_0x30d0e0('0xd7')](_0x54da10[_0x30d0e0('0x56')][_0x30d0e0('0xd7')]),_0x73bbd2['offset']=qs[_0x30d0e0('0x33')](_0x54da10[_0x30d0e0('0x56')][_0x30d0e0('0x33')]));_0x73bbd2['order']=qs[_0x30d0e0('0x3e')](_0x54da10[_0x30d0e0('0x56')]['sort']),_0x73bbd2['where']=qs['filters'](_[_0x30d0e0('0x6f')](_0x54da10[_0x30d0e0('0x56')],_0x1605a3['filters'])),_0x73bbd2[_0x30d0e0('0x19')]['MailInteractionId']=_0x37f57b['id'];_0x54da10[_0x30d0e0('0x56')][_0x30d0e0('0x65')]&&(_0x73bbd2[_0x30d0e0('0x19')]=_[_0x30d0e0('0x13')](_0x73bbd2['where'],{[Op['or']]:_[_0x30d0e0('0xa2')](_0x73bbd2['attributes'],function(_0x315759){const _0x2f4980=_0x30d0e0,_0x58475d={};return _0x58475d[_0x315759]={[Op[_0x2f4980('0xa4')]]:'%'+_0x54da10[_0x2f4980('0x56')][_0x2f4980('0x65')]+'%'},_0x58475d;})}));if(_0x54da10['query'][_0x30d0e0('0x79')]){const _0x57f0d7=_0x54da10[_0x30d0e0('0x56')]['$gte'][_0x30d0e0('0xbd')](','),_0x3f4b86={};_0x3f4b86[_0x57f0d7[0x0]]={[Op[_0x30d0e0('0xd')]]:moment(_0x57f0d7[0x1])[_0x30d0e0('0x93')](_0x30d0e0('0x61'))},_0x73bbd2[_0x30d0e0('0x19')]=_[_0x30d0e0('0x13')](_0x73bbd2[_0x30d0e0('0x19')],_0x3f4b86);}return _0x73bbd2=_[_0x30d0e0('0x13')]({},_0x73bbd2,_0x54da10[_0x30d0e0('0x11')]),db['MailMessage']['count']({'where':_0x73bbd2[_0x30d0e0('0x19')]})['then'](function(_0x1a3a38){const _0x4eeb21=_0x30d0e0;return _0x3ac70d[_0x4eeb21('0x39')]=_0x1a3a38,_0x54da10[_0x4eeb21('0x56')][_0x4eeb21('0x67')]&&(_0x73bbd2[_0x4eeb21('0x22')]=[{'all':!![]}]),db[_0x4eeb21('0x6d')][_0x4eeb21('0x89')](_0x73bbd2);})[_0x30d0e0('0xd4')](function(_0x637cda){return _0x3ac70d['rows']=_0x637cda,_0x3ac70d;});}})[_0xde81a4('0xd4')](respondWithFilteredResult(_0x346d9f,_0x73bbd2))[_0xde81a4('0x3b')](handleError(_0x346d9f,null));},exports[_0x536e28('0x6a')]=function(_0x38cbd6,_0x37ea58){const _0xbfde17=_0x536e28;return db['MailInteraction'][_0xbfde17('0x3f')]({'where':{'id':_0x38cbd6[_0xbfde17('0x14')]['id']}})['then'](function(_0x577e77){const _0x297942=_0xbfde17;if(_0x577e77)return _0x577e77['setTags'](_0x38cbd6[_0x297942('0x83')][_0x297942('0xa3')],{'through':_[_0x297942('0xdd')](_0x38cbd6[_0x297942('0x83')],[_0x297942('0xa3'),'id'])})['then'](function(){const _0x3534f2=_0x297942;return db[_0x3534f2('0x9c')][_0x3534f2('0x89')]({'attributes':['id',_0x3534f2('0xac'),_0x3534f2('0xcf')],'where':{'id':_0x38cbd6[_0x3534f2('0x83')]['ids']}});})['then'](function(_0x208e6c){const _0x3ba87e=_0x297942;return socket[_0x3ba87e('0x8d')]('mailInteractionTags:save',{'id':Number(_0x38cbd6[_0x3ba87e('0x14')]['id']),'tags':_0x208e6c||[]}),{'id':Number(_0x38cbd6[_0x3ba87e('0x14')]['id']),'tags':_0x208e6c||[]};});})['then'](respondWithResult(_0x37ea58,null))[_0xbfde17('0x3b')](handleError(_0x37ea58,null));},exports[_0x536e28('0x7c')]=function(_0x3d04f8,_0x117ac5){const _0x225ab1=_0x536e28;return db[_0x225ab1('0xb5')][_0x225ab1('0x3f')]({'where':{'id':_0x3d04f8['params']['id']}})['then'](handleEntityNotFound(_0x117ac5,null))['then'](function(_0x39f724){const _0x3af0b0=_0x225ab1;if(_0x39f724)return _0x39f724[_0x3af0b0('0x7c')](_0x3d04f8['query'][_0x3af0b0('0xa3')]);})[_0x225ab1('0xd4')](respondWithStatusCode(_0x117ac5,null))[_0x225ab1('0x3b')](handleError(_0x117ac5,null));},exports['download']=function(_0x218242,_0x63c3b7){const _0xbe78ba=_0x536e28,_0x42ba22=moment()[_0xbe78ba('0x45')]()[_0xbe78ba('0x99')](),_0x89e8a2=path[_0xbe78ba('0x5c')](config[_0xbe78ba('0x2b')],_0xbe78ba('0x7e'),'files',_0xbe78ba('0xa6')),_0x2c11c9=path[_0xbe78ba('0x5c')](config[_0xbe78ba('0x2b')],_0xbe78ba('0x7e'),_0xbe78ba('0x8'),_0xbe78ba('0x10')),_0x331da3=path[_0xbe78ba('0x5c')](_0x89e8a2,_0x42ba22),_0x4355b8=util[_0xbe78ba('0x93')](_0xbe78ba('0x3d'),_0x218242[_0xbe78ba('0x14')]['id'],_0x42ba22),_0x24dacc=path['join'](_0x89e8a2,_0x4355b8),_0x19a660=[];_0x218242[_0xbe78ba('0x56')][_0xbe78ba('0x10')]&&_0x19a660['push']({'model':db['Attachment'],'as':_0xbe78ba('0x24'),'raw':!![]});const _0x311e4d=[{'model':db['MailMessage'],'as':_0xbe78ba('0x9e'),'attributes':['id',_0xbe78ba('0x83'),_0xbe78ba('0x32'),'to','cc',_0xbe78ba('0xdf'),_0xbe78ba('0x72'),_0xbe78ba('0x73')],'where':{'secret':![]},'order':qs[_0xbe78ba('0x3e')]('id'),'include':_0x19a660}];return db[_0xbe78ba('0xb5')][_0xbe78ba('0x3f')]({'where':{'id':_0x218242[_0xbe78ba('0x14')]['id']},'include':_0x311e4d})['then'](handleEntityNotFound(_0x63c3b7,null))['then'](function(_0x2d8173){const _0x5c7614=_0xbe78ba;if(_0x2d8173&&_0x2d8173[_0x5c7614('0x9e')]){const _0x5b7a45=_0x2d8173['get']({'plain':!![]});return fs[_0x5c7614('0xe4')](_0x331da3),Promise['each'](_0x5b7a45[_0x5c7614('0x9e')],function(_0x99d03e,_0x106671){const _0x1d422a=_0x5c7614,_0x463669={'from':_0x99d03e[_0x1d422a('0x32')],'to':_0x99d03e['to'],'subject':_0x99d03e['subject'],'html':_0x99d03e[_0x1d422a('0x83')],'headers':{'Date':moment(_0x99d03e[_0x1d422a('0x73')])[_0x1d422a('0x93')](_0x1d422a('0xe2'))},'attachments':[]};return _0x99d03e['cc']&&(_0x463669[_0x1d422a('0xae')]['Cc']=_0x99d03e['cc']),_0x99d03e[_0x1d422a('0xdf')]&&(_0x463669[_0x1d422a('0xae')]['Bcc']=_0x99d03e['bcc']),new Promise(function(_0x523b3a,_0x21833e){const _0xe62118=_0x1d422a;if(_0x99d03e[_0xe62118('0x24')])for(let _0x2a225a=0x0;_0x2a225a<_0x99d03e[_0xe62118('0x24')][_0xe62118('0x7a')];_0x2a225a++){const _0x3988ed=_0x99d03e[_0xe62118('0x24')][_0x2a225a],_0x310eaf=path['join'](_0x2c11c9,_0x3988ed[_0xe62118('0x6')]);fs[_0xe62118('0x9b')](_0x310eaf)&&_0x463669['attachments'][_0xe62118('0x5d')]({'name':_0x3988ed[_0xe62118('0xac')],'contentType':_0x3988ed[_0xe62118('0x2e')],'data':fs[_0xe62118('0x6c')](_0x310eaf)});}emlformat[_0xe62118('0x40')](_0x463669,function(_0x553346,_0x57da91){const _0x4e2a0e=_0xe62118;if(_0x553346)return _0x21833e(_0x553346);return fs['writeFileSync'](path[_0x4e2a0e('0x5c')](_0x331da3,util[_0x4e2a0e('0x93')](_0x4e2a0e('0x63'),_0x106671)),_0x57da91),_0x523b3a(_0x57da91);});});})[_0x5c7614('0xd4')](function(){const _0x42652a=_0x5c7614;return new Promise(function(_0x128180,_0x5b9be0){zipdir(_0x331da3,{'saveTo':_0x24dacc},function(_0x40ccab,_0x784a5f){if(_0x40ccab)return _0x5b9be0(_0x40ccab);return _0x128180(_0x784a5f);});})[_0x42652a('0xd4')](function(){return new Promise(function(_0x3bb7ca,_0x56ed1a){rimraf(_0x331da3,function(_0x550454){if(_0x550454)_0x56ed1a(_0x550454);return _0x3bb7ca();});});})[_0x42652a('0xd4')](function(){const _0x3e06a3=_0x42652a;return _0x63c3b7[_0x3e06a3('0x57')](_0x24dacc,_0x4355b8,function(_0x234e38){const _0x14d34e=_0x3e06a3;_0x234e38?console[_0x14d34e('0x1')](_0x14d34e('0x9a'),_0x234e38):fs[_0x14d34e('0xb3')](_0x24dacc);});});});}else return _0x63c3b7[_0x5c7614('0xca')](0xc8);})[_0xbe78ba('0x3b')](handleError(_0x63c3b7,null));}; \ No newline at end of file +const a406_0x4833=['map','mail_messages','rows','createdAt','Contact.firstName','UserId','root','c.phone','\x27\x27\x27\x27','i.id\x20LIKE\x20?','key','concat','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','i.subject','text','stack','model','Account.mandatoryDisposition','i.MailAccountId\x20IS\x20NOT\x20NULL','search','c.email\x20LIKE\x20?','User','files','sequelize','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','../../config/logger','../../components/parsers/qs','length','select','limit','lodash','`\x20>\x200','Contact.phone','find','tag','nolimit','subject','Contact.mobile','clone','o.id\x20=\x20i.UserId','operator','send','include','c.firstName','i.thirdDisposition','i.id','describe','headers','html-to-text','user','$substring','findAll','parse','omit','i.ContactId','Contact.email','body','isNumeric','Content-Range','union','Attachments','i.MailAccountId\x20IS\x20NULL','all','attachments','t.id\x20IN\x20?','toString','Messages','Account.key','i.lastMsgDirection','query','../../components/parsers/advancedSearch','count','bcc','MailInteractionId','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','status','c.mobile','name','err','findOne','read','c.fax','i.MailAccountId\x20IN\x20?','removeTags','MailMessage','mail_accounts','forEach','users','having','i.createdAt','includeAll','register','filter','c.lastName','keys','left_join','u.id','unreadMessages','each','gte','where','tools_tags','Tag','format','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','destroy','Contact.fax','catch','create','server','some','t.id\x20=\x20it.TagId','order','transcript-%d-%s.zip','enableEmailPreview','isEmpty','writeFileSync','pick','params','join','mail_interaction_has_tags','$lte','`unreadMessages`\x20>\x200','mail_interactions','i.attach','split','journey','lastMsgText','emit','Setting','sort','i.MailAccountId','c.email','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','conditions','groupBy','MailInteraction','i.lastMsgAt','ui.MailInteractionId','fullname','buildExpression','field','fromString','fields','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','tmp','type','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','../../rediscache','rawAttributes','value','TagIds','MailAccountId','color','eml-format','json','Sequelize','replace','Contact.lastName','a.mandatoryDisposition','Contact','moment','filters','Bcc','offset','readFileSync','ids','me.MailInteractionId\x20=\x20i.id','i.closed','i.updatedAt','\x20=\x20?','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','$gte','GROUP_CONCAT(DISTINCT\x20t.id)','i.disposition','get','set','sendStatus','`unreadMessages`\x20=\x200','squel','then','Attachment','SELECT','../../mysqldb','unix','push','setTags','Tags','o.fullname','util','error','isEmail','isArray','`\x20=\x200','end','ContactId','intersection','getMailAccounts','u.fullname','zip-dir','i.substatus','from','build','message%d.eml','update','merge','addMessage','existsSync','\x20IS\x20NULL','attributes','download','o.internal','i.closedAt','getFullTextValue','sqlOperator','DESC','u.id\x20=\x20ui.UserId','lastMsgBody','expr','show','plainBody','Owner.internal','start','rimraf'];(function(_0x3dc92a,_0x483321){const _0x4c884c=function(_0x49e6cf){while(--_0x49e6cf){_0x3dc92a['push'](_0x3dc92a['shift']());}};_0x4c884c(++_0x483321);}(a406_0x4833,0x193));const a406_0x4c88=function(_0x3dc92a,_0x483321){_0x3dc92a=_0x3dc92a-0x0;let _0x4c884c=a406_0x4833[_0x3dc92a];return _0x4c884c;};const _0x206161=a406_0x4c88;'use strict';const emlformat=require(_0x206161('0xc7')),rimraf=require(_0x206161('0x2c')),zipdir=require(_0x206161('0x14')),moment=require(_0x206161('0xce')),util=require(_0x206161('0xa')),path=require('path'),fs=require('fs'),_=require(_0x206161('0x4b')),squel=require(_0x206161('0x0')),htmlToText=require(_0x206161('0x5d')),{getSocket}=require(_0x206161('0xc1')),socket=getSocket(),qs=require(_0x206161('0x47')),as=require(_0x206161('0x73')),logger=require(_0x206161('0x46'))('api'),config=require('../../config/environment'),db=require(_0x206161('0x4'))['db'],{Op}=require(_0x206161('0x44'));require('./mailInteraction.socket')[_0x206161('0x88')](socket);function respondWithStatusCode(_0x49e6cf,_0x5ac763){return _0x5ac763=_0x5ac763||0xcc,function(_0x852a90){const _0xb0a207=a406_0x4c88;if(_0x852a90)return _0x49e6cf[_0xb0a207('0xde')](_0x5ac763);return _0x49e6cf[_0xb0a207('0x78')](_0x5ac763)[_0xb0a207('0xf')]();};}function respondWithResult(_0x345dc7,_0x3aac11){return _0x3aac11=_0x3aac11||0xc8,function(_0xd47017){const _0x28df57=a406_0x4c88;if(_0xd47017)return _0x345dc7[_0x28df57('0x78')](_0x3aac11)[_0x28df57('0xc8')](_0xd47017);};}function respondWithFilteredResult(_0x14b6f7,_0x4d46b2){return function(_0x13bfde){const _0x2b6735=a406_0x4c88;if(_0x13bfde){const _0x1a67da=_0x13bfde[_0x2b6735('0x74')],_0x4ef264=_0x4d46b2[_0x2b6735('0xd1')];let _0x49e969=_0x4d46b2[_0x2b6735('0xd1')]+_0x4d46b2[_0x2b6735('0x4a')],_0xe83549;return _0x49e969>=_0x1a67da?(_0x49e969=_0x1a67da,_0xe83549=0xc8):_0xe83549=0xce,_0x14b6f7[_0x2b6735('0x78')](_0xe83549),_0x14b6f7[_0x2b6735('0xdd')](_0x2b6735('0x67'),_0x4ef264+'-'+_0x49e969+'/'+_0x1a67da)[_0x2b6735('0xc8')](_0x13bfde);}return null;};}function saveUpdates(_0x22439f){return function(_0x3a967f){const _0x2a8b44=a406_0x4c88;if(_0x3a967f)return _0x3a967f[_0x2a8b44('0x19')](_0x22439f)['then'](function(_0x186ecb){return _0x186ecb;});return null;};}function removeEntity(_0x2a3f4b){return function(_0x3cffd3){const _0x244dcf=a406_0x4c88;if(_0x3cffd3)return _0x3cffd3[_0x244dcf('0x96')]()[_0x244dcf('0x1')](function(){const _0x44faad=_0x244dcf;_0x2a3f4b[_0x44faad('0x78')](0xcc)['end']();});};}function handleEntityNotFound(_0x16d6d3){return function(_0x3be966){const _0x51f2aa=a406_0x4c88;return!_0x3be966&&_0x16d6d3[_0x51f2aa('0xde')](0x194),_0x3be966;};}function handleError(_0x38992d,_0xbf7802){return _0xbf7802=_0xbf7802||0x1f4,function(_0x33c002){const _0x2799ef=a406_0x4c88;logger[_0x2799ef('0xb')](_0x33c002[_0x2799ef('0x3c')]),_0x33c002[_0x2799ef('0x7a')]&&delete _0x33c002[_0x2799ef('0x7a')],_0x38992d[_0x2799ef('0x78')](_0xbf7802)[_0x2799ef('0x56')](_0x33c002);};}function getInteractionUsers(_0x17b52f,_0x1858eb){return new Promise(function(_0x5205ae,_0x11b7a5){const _0x54de78=a406_0x4c88;try{_0x1858eb[_0x17b52f['id']]&&(_0x17b52f['Users']=_[_0x54de78('0x2d')](_0x1858eb[_0x17b52f['id']],function(_0x25a2dd){const _0x14cf57=_0x54de78;return{'id':_0x25a2dd['id'],'fullname':_0x25a2dd[_0x14cf57('0xb8')]};}));}catch(_0x5e49ef){_0x11b7a5(_0x5e49ef);}_0x5205ae(_0x17b52f);});}function getInteractionTags(_0xd01dc,_0x54f010){return new Promise(function(_0x40eed8,_0x47d409){const _0x12e21f=a406_0x4c88;try{_0xd01dc[_0x12e21f('0xc4')]&&(_0xd01dc[_0x12e21f('0x8')]=[],_0xd01dc[_0x12e21f('0xc4')][_0x12e21f('0xaa')](',')[_0x12e21f('0x83')](function(_0x414fa3){const _0x3c67a8=_0x12e21f;_0xd01dc[_0x3c67a8('0x8')][_0x3c67a8('0x6')](_0x54f010[_0x414fa3]);})),delete _0xd01dc[_0x12e21f('0xc4')];}catch(_0x5847d1){_0x47d409(_0x5847d1);}_0x40eed8(_0xd01dc);});}function getLastMessageText(_0x2a78a8){return new Promise(function(_0x32a7e1,_0x15d35b){const _0x224181=a406_0x4c88;return db[_0x224181('0xb5')]['findOne']({'where':{'id':_0x2a78a8['id']},'attributes':[_0x224181('0x26'),_0x224181('0xac')],'raw':!![]})[_0x224181('0x1')](function(_0x515141){const _0x5a8106=_0x224181;!_0x515141[_0x5a8106('0xac')]?_0x2a78a8[_0x5a8106('0xac')]=_['trimStart'](htmlToText[_0x5a8106('0xbb')](_0x515141[_0x5a8106('0x26')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x2a78a8[_0x5a8106('0xac')]=_0x515141[_0x5a8106('0xac')],_0x32a7e1(_0x2a78a8);})[_0x224181('0x98')](function(_0x1b13ea){_0x15d35b(_0x1b13ea);});});}function updateMailInteraction(_0x44e5db,_0x421e51,_0xd14ddf,_0x260f0a){return new Promise(function(_0x3decd9,_0x5ce0f7){const _0x261ba0=a406_0x4c88;return getInteractionUsers(_0x44e5db,_0xd14ddf)[_0x261ba0('0x1')](function(_0x14d90e){return getInteractionTags(_0x14d90e,_0x421e51);})['then'](function(_0x460192){_0x260f0a?_0x3decd9(getLastMessageText(_0x460192)):_0x3decd9(_0x460192);})[_0x261ba0('0x98')](function(_0x314a53){_0x5ce0f7(_0x314a53);});});}exports['index']=function(_0x4c79b3,_0x3e5e1a){const _0xdff84d=_0x206161,_0x252d25={},_0x432562={},_0x3d9841={'count':0x0,'rows':[]},_0x200523=_[_0xdff84d('0x2d')](db[_0xdff84d('0xb5')][_0xdff84d('0xc2')],function(_0x3611b8){const _0x426e9b=_0xdff84d;return{'name':_0x3611b8['fieldName'],'type':_0x3611b8['type'][_0x426e9b('0x37')]};});_0x432562['model']=_[_0xdff84d('0x2d')](_0x200523,'name'),_0x432562[_0xdff84d('0x72')]=_[_0xdff84d('0x8b')](_0x4c79b3[_0xdff84d('0x72')]),_0x432562[_0xdff84d('0xcf')]=_[_0xdff84d('0x11')](_0x432562[_0xdff84d('0x3d')],_0x432562['query']),_0x252d25[_0xdff84d('0x1e')]=_[_0xdff84d('0x11')](_0x432562['model'],qs[_0xdff84d('0xbc')](_0x4c79b3['query']['fields'])),_0x252d25['attributes']=_0x252d25[_0xdff84d('0x1e')][_0xdff84d('0x48')]?_0x252d25[_0xdff84d('0x1e')]:_0x432562[_0xdff84d('0x3d')];typeof _0x4c79b3['query']['nolimit']==='undefined'&&(_0x252d25[_0xdff84d('0x4a')]=qs[_0xdff84d('0x4a')](_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0x4a')]),_0x252d25['offset']=qs['offset'](_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0xd1')]));_0x252d25['order']=qs[_0xdff84d('0xaf')](_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0xaf')]),_0x252d25[_0xdff84d('0x91')]=qs[_0xdff84d('0xcf')](_[_0xdff84d('0xa2')](_0x4c79b3[_0xdff84d('0x72')],_0x432562[_0xdff84d('0xcf')]),_0x200523);let _0x2590f7=[];const _0x4bae88=squel[_0xdff84d('0x49')]()['field']('id')[_0xdff84d('0xba')](_0xdff84d('0x7a'))[_0xdff84d('0xba')](_0xdff84d('0xc6'))[_0xdff84d('0x16')]('tools_tags'),_0x54f181=squel[_0xdff84d('0x49')]()['field'](_0xdff84d('0x8d'))['field'](_0xdff84d('0x13'))['field'](_0xdff84d('0xb7'))['from']('user_has_mail_interactions','ui')[_0xdff84d('0x8c')](_0xdff84d('0x84'),'u',_0xdff84d('0x25')),_0x719376=squel[_0xdff84d('0x49')]()[_0xdff84d('0x16')](_0xdff84d('0xa8'),'i')[_0xdff84d('0x8c')]('cm_contacts','c',_0xdff84d('0xc0'))[_0xdff84d('0x8c')](_0xdff84d('0x84'),'o',_0xdff84d('0x54'))[_0xdff84d('0x8c')](_0xdff84d('0x82'),'a','a.id\x20=\x20i.MailAccountId')[_0xdff84d('0x8c')](_0xdff84d('0x2e'),'me',_0xdff84d('0xd4'))['left_join'](_0xdff84d('0xa5'),'it','it.MailInteractionId\x20=\x20i.id')[_0xdff84d('0x8c')](_0xdff84d('0x92'),'t',_0xdff84d('0x9c')),_0x278c79=squel[_0xdff84d('0x27')]();let _0x1c779e=[];const _0x31b910=squel[_0xdff84d('0x27')]();let _0x35530a;if(_0x4c79b3['query'][_0xdff84d('0x40')]){_0x35530a=as['parseSearch'](_0x4c79b3[_0xdff84d('0x72')]['search']);const _0x29e279=_0x35530a[_0xdff84d('0x23')];for(let _0x53c07e=0x0;_0x53c07e<_0x35530a[_0xdff84d('0xb3')]['length'];_0x53c07e++){const _0x5002c1=_0x35530a[_0xdff84d('0xb3')][_0x53c07e],_0x440c16='i';let _0x4b3658,_0x977e1a=_[_0xdff84d('0x4e')](_0x200523,['name',_0x5002c1['field']]);if(!_0x977e1a)switch(_0x5002c1['field']){case'unreadMessages':_0x5002c1[_0xdff84d('0xc3')]==0x1?_0x719376[_0xdff84d('0x85')]('`'+_0x5002c1[_0xdff84d('0xba')]+_0xdff84d('0xe')):_0x719376[_0xdff84d('0x85')]('`'+_0x5002c1['field']+_0xdff84d('0x4c'));break;case _0xdff84d('0xcd'):if(_0x5002c1[_0xdff84d('0x55')]===_0xdff84d('0x5f')){if(_0x5002c1[_0xdff84d('0xc3')]['split']('\x20')[_0xdff84d('0x48')]>0x1)_0x278c79[_0x29e279](_0xdff84d('0xd8'),qs['getFullTextValue'](_0x5002c1['value']),null);else{const _0x527891='%'+_0x5002c1[_0xdff84d('0xc3')]+'%';_0x278c79[_0x29e279](_0xdff84d('0xb2'),_0x527891,_0x527891,_0x527891);}}else _0x977e1a=_['find'](_0x200523,['name',_0xdff84d('0x10')]),_0x5002c1['field']=_0xdff84d('0x10'),_0x4b3658=as['buildExpression'](_0x440c16,_0x977e1a[_0xdff84d('0xbf')],_0x5002c1),_0x278c79[_0x29e279](_0x4b3658[_0xdff84d('0x3b')],_0x4b3658[_0xdff84d('0xc3')][_0xdff84d('0x2b')],_0x4b3658['value']['end']);break;case _0xdff84d('0x93'):{const _0x5a9493=_0x5002c1['value'][_0xdff84d('0xaa')](',')['map'](function(_0x3f57fd){return Number(_0x3f57fd);});_0x5a9493['forEach'](function(_0x11c78a){const _0x1df70f=_0xdff84d;_0x31b910['or'](_0x1df70f('0xbd'),'%,'+_0x11c78a+',%');}),_0x1c779e=_[_0xdff84d('0x68')](_0x1c779e,_0x5a9493);}break;case _0xdff84d('0x42'):_0x5002c1['operator']==='$substring'?_0x278c79[_0x29e279]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x5002c1[_0xdff84d('0xc3')]+'%',null):(_0x977e1a=_[_0xdff84d('0x4e')](_0x200523,[_0xdff84d('0x7a'),_0xdff84d('0x32')]),_0x5002c1[_0xdff84d('0xba')]='UserId',_0x4b3658=as[_0xdff84d('0xb9')](_0x440c16,_0x977e1a['type'],_0x5002c1),_0x278c79[_0x29e279](_0x4b3658[_0xdff84d('0x3b')],_0x4b3658[_0xdff84d('0xc3')][_0xdff84d('0x2b')],_0x4b3658[_0xdff84d('0xc3')][_0xdff84d('0xf')]));break;case _0xdff84d('0x29'):_0x4b3658=as[_0xdff84d('0xb9')]('me',null,_0x5002c1),_0x278c79[_0x29e279](_0x4b3658[_0xdff84d('0x3b')],_0x4b3658[_0xdff84d('0xc3')][_0xdff84d('0x2b')],_0x4b3658[_0xdff84d('0xc3')][_0xdff84d('0xf')]);break;}else _0x4b3658=as[_0xdff84d('0xb9')](_0x440c16,_0x977e1a[_0xdff84d('0xbf')],_0x5002c1),_0x278c79[_0x29e279](_0x4b3658[_0xdff84d('0x3b')],_0x4b3658[_0xdff84d('0xc3')][_0xdff84d('0x2b')],_0x4b3658[_0xdff84d('0xc3')][_0xdff84d('0xf')]);}}else{const _0x1258d7=_(_0x4c79b3[_0xdff84d('0x72')])[_0xdff84d('0x8b')]()[_0xdff84d('0x2d')](function(_0x4335c4){const _0x740efa=_0xdff84d;return _[_0x740efa('0x9b')](_0x200523,[_0x740efa('0x7a'),_0x4335c4])?_0x4335c4:undefined;})['compact']()[_0xdff84d('0xc3')]();!_[_0xdff84d('0xa0')](_0x1258d7)&&_0x1258d7[_0xdff84d('0x83')](function(_0x10ebf5){const _0x4b2664=_0xdff84d;if(_0x10ebf5===_0x4b2664('0xc5'))_0x719376['where']('i.MailAccountId\x20IN\x20?',[][_0x4b2664('0x38')](_0x4c79b3[_0x4b2664('0x72')][_0x10ebf5]));else{if(_0x10ebf5==='createdAt'){const _0x468028=JSON[_0x4b2664('0x61')](_0x4c79b3[_0x4b2664('0x72')][_0x10ebf5])[_0x4b2664('0xd9')],_0x4cac81=JSON[_0x4b2664('0x61')](_0x4c79b3[_0x4b2664('0x72')][_0x10ebf5])[_0x4b2664('0xa6')];_0x719376[_0x4b2664('0x91')](_0x4b2664('0x45'),_0x468028,_0x4cac81);}else _0x4c79b3[_0x4b2664('0x72')][_0x10ebf5]==='null'?_0x719376[_0x4b2664('0x91')]('i.'+_0x10ebf5+_0x4b2664('0x1d')):_0x719376[_0x4b2664('0x91')]('i.'+_0x10ebf5+_0x4b2664('0xd7'),_0x4c79b3[_0x4b2664('0x72')][_0x10ebf5]);}});_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0x7d')]&&(_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0x7d')]==0x1?_0x719376[_0xdff84d('0x85')](_0xdff84d('0xdf')):_0x719376['having'](_0xdff84d('0xa7')));_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0x4f')]&&(_0x1c779e=_[_0xdff84d('0xd')](_0x4c79b3['query']['tag'])?_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0x4f')]:new Array(_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0x4f')]),_0x1c779e[_0xdff84d('0x83')](function(_0x26411a){const _0x587529=_0xdff84d;_0x31b910['or'](_0x587529('0xbd'),'%,'+_0x26411a+',%');}));if(_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0x89')]){const _0x36865d=_0x4c79b3[_0xdff84d('0x72')][_0xdff84d('0x89')][_0xdff84d('0xca')]('\x5c','\x5c\x5c')[_0xdff84d('0xca')]('\x27\x27',_0xdff84d('0x35'));if(qs[_0xdff84d('0x66')](_0x36865d))_0x278c79['or'](_0xdff84d('0x36'),_0x36865d+'%');else qs[_0xdff84d('0xc')](_0x36865d)?_0x278c79['or'](_0xdff84d('0x41'),_0x36865d+'%'):_0x278c79['or']('MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0xdff84d('0x22')](_0x36865d))['or'](_0xdff84d('0x39'),qs[_0xdff84d('0x22')](_0x36865d));}}_0x719376['where'](_0x278c79),_0x719376['group']('i.id');let _0x2a73ca={'type':db[_0xdff84d('0xc9')]['QueryTypes'][_0xdff84d('0x3')],'raw':!![]};const _0x3a54a0=_0x719376[_0xdff84d('0x53')]();_0x3a54a0[_0xdff84d('0xba')]('i.id'),_0x3a54a0['field'](_0xdff84d('0x95'),_0xdff84d('0x8e')),_0x252d25[_0xdff84d('0x9d')]&&_0x252d25[_0xdff84d('0x9d')][_0xdff84d('0x83')](function(_0x2ee18b){const _0x45baca=_0xdff84d;_0x719376[_0x45baca('0x9d')]('i.'+_0x2ee18b[0x0],_0x2ee18b[0x1]===_0x45baca('0x24')?![]:!![]);}),!_[_0xdff84d('0xa0')](_0x1c779e)&&(_0x719376[_0xdff84d('0x85')](_0x31b910),_0x3a54a0[_0xdff84d('0x91')](_0xdff84d('0x6d'),_0x1c779e)),Promise['resolve']()[_0xdff84d('0x1')](function(){const _0x41485b=_0xdff84d;if(!_0x35530a){if(_0x4c79b3[_0x41485b('0x72')][_0x41485b('0xc5')]||_0x4c79b3[_0x41485b('0x72')][_0x41485b('0xab')])return;_0x3a54a0[_0x41485b('0x91')](_0x41485b('0x3f')),_0x719376[_0x41485b('0x91')](_0x41485b('0x3f'));return;}return _0x4c79b3[_0x41485b('0x5e')][_0x41485b('0x12')]({'attributes':['id'],'raw':!![]})[_0x41485b('0x1')](function(_0x946352){const _0x5f4ebe=_0x41485b;_[_0x5f4ebe('0xa0')](_0x946352)?(_0x3a54a0[_0x5f4ebe('0x91')](_0x5f4ebe('0x6a')),_0x719376[_0x5f4ebe('0x91')]('i.MailAccountId\x20IS\x20NULL')):(_0x3a54a0[_0x5f4ebe('0x91')]('i.MailAccountId\x20IN\x20?',_['map'](_0x946352,'id')),_0x719376[_0x5f4ebe('0x91')](_0x5f4ebe('0x7f'),_['map'](_0x946352,'id')));});})['then'](function(){const _0x3449ce=_0xdff84d;db[_0x3449ce('0x44')][_0x3449ce('0x72')](_0x3a54a0[_0x3449ce('0x6e')](),_0x2a73ca)[_0x3449ce('0x1')](function(_0x5ec397){const _0x33dbcf=_0x3449ce;_0x3d9841['count']=_0x5ec397[_0x33dbcf('0x48')];if(_0x3d9841[_0x33dbcf('0x74')]===0x0)return[];return db[_0x33dbcf('0x44')][_0x33dbcf('0x72')](_0x4bae88[_0x33dbcf('0x6e')](),_0x2a73ca)[_0x33dbcf('0x1')](function(_0x2d283d){const _0x3b408a=_0x33dbcf;_0x2590f7=_['keyBy'](_0x2d283d,'id'),_0x2a73ca=_[_0x3b408a('0x1a')](_0x2a73ca,{'model':db[_0x3b408a('0xb5')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x4c79b3['query'][_0x3b408a('0xbc')]?_0x252d25['attributes'][_0x3b408a('0x83')](function(_0x28ff90){const _0x55ad61=_0x3b408a;_0x719376[_0x55ad61('0xba')]('i.'+_0x28ff90);}):(_0x719376[_0x3b408a('0xba')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x3b408a('0x8e')),_0x719376[_0x3b408a('0xba')]('a.key',_0x3b408a('0x70')),_0x719376['field'](_0x3b408a('0xcc'),_0x3b408a('0x3e')),_0x719376['field'](_0x3b408a('0x5a')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x86')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0xd6')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0xd5')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x21')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0xa9')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0xb6')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x71')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x3a')),_0x719376['field'](_0x3b408a('0xdb')),_0x719376['field']('i.secondDisposition'),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x59')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x15')),_0x719376[_0x3b408a('0xba')]('i.to'),_0x719376['field'](_0x3b408a('0x63')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0xb0')),_0x719376['field']('i.UserId'),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x58'),_0x3b408a('0x31')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x8a'),_0x3b408a('0xcb')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0xb1'),_0x3b408a('0x64')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x34'),_0x3b408a('0x4d')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x79'),_0x3b408a('0x52')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x7e'),_0x3b408a('0x97')),_0x719376['field'](_0x3b408a('0x9'),'Owner.fullname'),_0x719376[_0x3b408a('0xba')](_0x3b408a('0x20'),_0x3b408a('0x2a')),_0x719376[_0x3b408a('0xba')](_0x3b408a('0xda'),_0x3b408a('0xc4')));if(_0x252d25['limit'])_0x719376[_0x3b408a('0x4a')](_0x252d25[_0x3b408a('0x4a')]);if(_0x252d25[_0x3b408a('0xd1')])_0x719376[_0x3b408a('0xd1')](_0x252d25[_0x3b408a('0xd1')]);return db[_0x3b408a('0x44')][_0x3b408a('0x72')](_0x719376[_0x3b408a('0x6e')](),_0x2a73ca);})['then'](function(_0x5f514c){const _0x41b83f=_0x33dbcf;return _0x54f181[_0x41b83f('0x91')]('ui.MailInteractionId\x20IN\x20?',_['map'](_0x5f514c,'id')),db[_0x41b83f('0x44')]['query'](_0x54f181[_0x41b83f('0x6e')](),_0x2a73ca)['then'](function(_0x3e06ce){const _0x1a6064=_0x41b83f,_0x3eb5ca=_[_0x1a6064('0xb4')](_0x3e06ce,_0x1a6064('0x76')),_0x41159c=[];return db[_0x1a6064('0xae')]['findOne']({'attributes':[_0x1a6064('0x9f')],'raw':!![]})[_0x1a6064('0x1')](function(_0x404ffb){const _0x2743b7=_0x1a6064,_0x243f6f=_0x404ffb['enableEmailPreview'];return _0x5f514c[_0x2743b7('0x83')](function(_0x551af8){const _0x5cf5d5=_0x2743b7;_0x41159c[_0x5cf5d5('0x6')](updateMailInteraction(_0x551af8,_0x2590f7,_0x3eb5ca,_0x243f6f));}),Promise[_0x2743b7('0x6b')](_0x41159c);});});});})[_0x3449ce('0x1')](function(_0x2751e1){return _0x3d9841['rows']=_0x2751e1,_0x3d9841;})[_0x3449ce('0x1')](respondWithFilteredResult(_0x3e5e1a,_0x252d25));})[_0xdff84d('0x98')](handleError(_0x3e5e1a,null));},exports[_0x206161('0x28')]=function(_0x5a8537,_0x2ed006){const _0x1a7722=_0x206161;let _0x42fd09={'raw':![],'where':{'id':_0x5a8537[_0x1a7722('0xa3')]['id']}};const _0x44377b={};return _0x44377b[_0x1a7722('0x3d')]=_[_0x1a7722('0x8b')](db[_0x1a7722('0xb5')][_0x1a7722('0xc2')]),_0x44377b[_0x1a7722('0x72')]=_[_0x1a7722('0x8b')](_0x5a8537[_0x1a7722('0x72')]),_0x44377b[_0x1a7722('0xcf')]=_[_0x1a7722('0x11')](_0x44377b['model'],_0x44377b[_0x1a7722('0x72')]),_0x42fd09[_0x1a7722('0x1e')]=_[_0x1a7722('0x11')](_0x44377b[_0x1a7722('0x3d')],qs[_0x1a7722('0xbc')](_0x5a8537['query'][_0x1a7722('0xbc')])),_0x42fd09[_0x1a7722('0x1e')]=_0x42fd09[_0x1a7722('0x1e')]['length']?_0x42fd09['attributes']:_0x44377b[_0x1a7722('0x3d')],_0x5a8537[_0x1a7722('0x72')][_0x1a7722('0x87')]&&(_0x42fd09[_0x1a7722('0x57')]=[{'all':!![]}]),_0x42fd09=_[_0x1a7722('0x1a')]({},_0x42fd09,_0x5a8537['options']),db[_0x1a7722('0xb5')]['findOne'](_0x42fd09)[_0x1a7722('0x1')](handleEntityNotFound(_0x2ed006,null))[_0x1a7722('0x1')](respondWithResult(_0x2ed006,null))[_0x1a7722('0x98')](handleError(_0x2ed006,null));},exports[_0x206161('0x99')]=function(_0x312a49,_0x71bdc1){const _0x332da9=_0x206161;return db[_0x332da9('0xb5')][_0x332da9('0x99')](_0x312a49[_0x332da9('0x65')],{})[_0x332da9('0x1')](respondWithResult(_0x71bdc1,0xc9))[_0x332da9('0x98')](handleError(_0x71bdc1,null));},exports[_0x206161('0x19')]=function(_0x14b021,_0x5e7dd7){const _0x5cf916=_0x206161;return _0x14b021['body']['id']&&delete _0x14b021[_0x5cf916('0x65')]['id'],db['MailInteraction'][_0x5cf916('0x7c')]({'where':{'id':_0x14b021[_0x5cf916('0xa3')]['id']}})[_0x5cf916('0x1')](handleEntityNotFound(_0x5e7dd7,null))['then'](saveUpdates(_0x14b021[_0x5cf916('0x65')],null))[_0x5cf916('0x1')](respondWithResult(_0x5e7dd7,null))[_0x5cf916('0x98')](handleError(_0x5e7dd7,null));},exports['destroy']=function(_0x566e6a,_0x324b86){const _0x1e0701=_0x206161;return db['MailInteraction'][_0x1e0701('0x7c')]({'where':{'id':_0x566e6a['params']['id']}})[_0x1e0701('0x1')](handleEntityNotFound(_0x324b86,null))[_0x1e0701('0x1')](removeEntity(_0x324b86,null))[_0x1e0701('0x98')](handleError(_0x324b86,null));},exports[_0x206161('0x5b')]=function(_0x5789b2,_0x4fe028){const _0x55148c=_0x206161;return db[_0x55148c('0xb5')]['describe']()[_0x55148c('0x1')](respondWithResult(_0x4fe028,null))['catch'](handleError(_0x4fe028,null));},exports['addMessage']=function(_0x2d03d0,_0x355f58){const _0x34a77a=_0x206161;return db[_0x34a77a('0x81')]['findOne']({'where':{'id':_0x2d03d0[_0x34a77a('0xa3')]['id']}})[_0x34a77a('0x1')](function(_0x2ffcbf){const _0x555690=_0x34a77a;if(_0x2ffcbf)return _0x2ffcbf[_0x555690('0x1b')](_0x2d03d0[_0x555690('0x65')][_0x555690('0xd3')],{'through':_[_0x555690('0x62')](_0x2d03d0[_0x555690('0x65')],[_0x555690('0xd3'),'id'])});})[_0x34a77a('0x1')](respondWithResult(_0x355f58,null))[_0x34a77a('0x98')](handleError(_0x355f58,null));},exports['getMessages']=function(_0x27ece0,_0x5e4ed9){const _0x2e0049=_0x206161;let _0x1b41d0={'raw':![],'where':{}};const _0x107a95={},_0x3bca5c={'count':0x0,'rows':[]};return db[_0x2e0049('0xb5')][_0x2e0049('0x7c')]({'where':{'id':_0x27ece0[_0x2e0049('0xa3')]['id']}})[_0x2e0049('0x1')](handleEntityNotFound(_0x5e4ed9,null))[_0x2e0049('0x1')](function(_0x3a1134){const _0x740317=_0x2e0049;if(_0x3a1134){_0x107a95[_0x740317('0x3d')]=_[_0x740317('0x8b')](db[_0x740317('0x81')][_0x740317('0xc2')]),_0x107a95['query']=_[_0x740317('0x8b')](_0x27ece0[_0x740317('0x72')]),_0x107a95[_0x740317('0xcf')]=_['intersection'](_0x107a95['model'],_0x107a95[_0x740317('0x72')]),_0x1b41d0[_0x740317('0x1e')]=_[_0x740317('0x11')](_0x107a95['model'],qs[_0x740317('0xbc')](_0x27ece0[_0x740317('0x72')][_0x740317('0xbc')])),_0x1b41d0['attributes']=_0x1b41d0[_0x740317('0x1e')][_0x740317('0x48')]?_0x1b41d0[_0x740317('0x1e')]:_0x107a95['model'];typeof _0x27ece0[_0x740317('0x72')][_0x740317('0x50')]==='undefined'&&(_0x1b41d0[_0x740317('0x4a')]=qs[_0x740317('0x4a')](_0x27ece0[_0x740317('0x72')][_0x740317('0x4a')]),_0x1b41d0['offset']=qs[_0x740317('0xd1')](_0x27ece0[_0x740317('0x72')][_0x740317('0xd1')]));_0x1b41d0[_0x740317('0x9d')]=qs[_0x740317('0xaf')](_0x27ece0[_0x740317('0x72')][_0x740317('0xaf')]),_0x1b41d0[_0x740317('0x91')]=qs[_0x740317('0xcf')](_[_0x740317('0xa2')](_0x27ece0[_0x740317('0x72')],_0x107a95[_0x740317('0xcf')])),_0x1b41d0[_0x740317('0x91')]['MailInteractionId']=_0x3a1134['id'];_0x27ece0[_0x740317('0x72')][_0x740317('0x89')]&&(_0x1b41d0[_0x740317('0x91')]=_[_0x740317('0x1a')](_0x1b41d0['where'],{[Op['or']]:_[_0x740317('0x2d')](_0x1b41d0[_0x740317('0x1e')],function(_0x1b1776){const _0x265dbc=_0x740317,_0x4ebebc={};return _0x4ebebc[_0x1b1776]={[Op['like']]:'%'+_0x27ece0[_0x265dbc('0x72')][_0x265dbc('0x89')]+'%'},_0x4ebebc;})}));if(_0x27ece0[_0x740317('0x72')][_0x740317('0xd9')]){const _0x141091=_0x27ece0[_0x740317('0x72')][_0x740317('0xd9')][_0x740317('0xaa')](','),_0x2dc588={};_0x2dc588[_0x141091[0x0]]={[Op[_0x740317('0x90')]]:moment(_0x141091[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0x1b41d0['where']=_['merge'](_0x1b41d0['where'],_0x2dc588);}return _0x1b41d0=_['merge']({},_0x1b41d0,_0x27ece0['options']),db['MailMessage'][_0x740317('0x74')]({'where':_0x1b41d0[_0x740317('0x91')]})['then'](function(_0x513197){const _0x23f4e1=_0x740317;return _0x3bca5c[_0x23f4e1('0x74')]=_0x513197,_0x27ece0[_0x23f4e1('0x72')][_0x23f4e1('0x87')]&&(_0x1b41d0['include']=[{'all':!![]}]),db['MailMessage'][_0x23f4e1('0x60')](_0x1b41d0);})['then'](function(_0x571bd8){const _0x3c89ed=_0x740317;return _0x3bca5c[_0x3c89ed('0x2f')]=_0x571bd8,_0x3bca5c;});}})[_0x2e0049('0x1')](respondWithFilteredResult(_0x5e4ed9,_0x1b41d0))[_0x2e0049('0x98')](handleError(_0x5e4ed9,null));},exports['addTags']=function(_0x989976,_0x44cd07){const _0x201718=_0x206161;return db[_0x201718('0xb5')][_0x201718('0x7c')]({'where':{'id':_0x989976[_0x201718('0xa3')]['id']}})['then'](function(_0x30f4e3){const _0x3d1bf2=_0x201718;if(_0x30f4e3)return _0x30f4e3[_0x3d1bf2('0x7')](_0x989976['body'][_0x3d1bf2('0xd3')],{'through':_['omit'](_0x989976[_0x3d1bf2('0x65')],['ids','id'])})[_0x3d1bf2('0x1')](function(){const _0x24cb91=_0x3d1bf2;return db['Tag'][_0x24cb91('0x60')]({'attributes':['id',_0x24cb91('0x7a'),'color'],'where':{'id':_0x989976[_0x24cb91('0x65')][_0x24cb91('0xd3')]}});})[_0x3d1bf2('0x1')](function(_0x140d6f){const _0x15e7e0=_0x3d1bf2;return socket[_0x15e7e0('0xad')]('mailInteractionTags:save',{'id':Number(_0x989976[_0x15e7e0('0xa3')]['id']),'tags':_0x140d6f||[]}),{'id':Number(_0x989976[_0x15e7e0('0xa3')]['id']),'tags':_0x140d6f||[]};});})['then'](respondWithResult(_0x44cd07,null))[_0x201718('0x98')](handleError(_0x44cd07,null));},exports[_0x206161('0x80')]=function(_0xae3701,_0x52ef9c){const _0x4eab61=_0x206161;return db[_0x4eab61('0xb5')][_0x4eab61('0x7c')]({'where':{'id':_0xae3701[_0x4eab61('0xa3')]['id']}})[_0x4eab61('0x1')](handleEntityNotFound(_0x52ef9c,null))[_0x4eab61('0x1')](function(_0x2184b4){const _0x344bfb=_0x4eab61;if(_0x2184b4)return _0x2184b4['removeTags'](_0xae3701[_0x344bfb('0x72')][_0x344bfb('0xd3')]);})['then'](respondWithStatusCode(_0x52ef9c,null))[_0x4eab61('0x98')](handleError(_0x52ef9c,null));},exports[_0x206161('0x1f')]=function(_0x187aec,_0x356ca6){const _0x3df885=_0x206161,_0x46670b=moment()[_0x3df885('0x5')]()[_0x3df885('0x6e')](),_0x14e12d=path[_0x3df885('0xa4')](config['root'],'server',_0x3df885('0x43'),_0x3df885('0xbe')),_0x5059fc=path[_0x3df885('0xa4')](config[_0x3df885('0x33')],_0x3df885('0x9a'),_0x3df885('0x43'),_0x3df885('0x6c')),_0x15088b=path[_0x3df885('0xa4')](_0x14e12d,_0x46670b),_0x5e184b=util[_0x3df885('0x94')](_0x3df885('0x9e'),_0x187aec['params']['id'],_0x46670b),_0x5b06c5=path[_0x3df885('0xa4')](_0x14e12d,_0x5e184b),_0x36e5d5=[];_0x187aec[_0x3df885('0x72')]['attachments']&&_0x36e5d5[_0x3df885('0x6')]({'model':db[_0x3df885('0x2')],'as':_0x3df885('0x69'),'raw':!![]});const _0x422a08=[{'model':db['MailMessage'],'as':_0x3df885('0x6f'),'attributes':['id',_0x3df885('0x65'),_0x3df885('0x16'),'to','cc',_0x3df885('0x75'),_0x3df885('0x51'),'createdAt'],'where':{'secret':![]},'order':qs['sort']('id'),'include':_0x36e5d5}];return db['MailInteraction'][_0x3df885('0x7c')]({'where':{'id':_0x187aec[_0x3df885('0xa3')]['id']},'include':_0x422a08})[_0x3df885('0x1')](handleEntityNotFound(_0x356ca6,null))['then'](function(_0x69cc99){const _0x9b4298=_0x3df885;if(_0x69cc99&&_0x69cc99['Messages']){const _0x45680e=_0x69cc99[_0x9b4298('0xdc')]({'plain':!![]});return fs['mkdirSync'](_0x15088b),Promise[_0x9b4298('0x8f')](_0x45680e[_0x9b4298('0x6f')],function(_0x24df36,_0x5ba10c){const _0x550e1f=_0x9b4298,_0x8f5841={'from':_0x24df36[_0x550e1f('0x16')],'to':_0x24df36['to'],'subject':_0x24df36['subject'],'html':_0x24df36[_0x550e1f('0x65')],'headers':{'Date':moment(_0x24df36[_0x550e1f('0x30')])[_0x550e1f('0x94')](_0x550e1f('0x77'))},'attachments':[]};return _0x24df36['cc']&&(_0x8f5841[_0x550e1f('0x5c')]['Cc']=_0x24df36['cc']),_0x24df36['bcc']&&(_0x8f5841[_0x550e1f('0x5c')][_0x550e1f('0xd0')]=_0x24df36[_0x550e1f('0x75')]),new Promise(function(_0x50ce5a,_0x1ea8bd){const _0x49aa82=_0x550e1f;if(_0x24df36[_0x49aa82('0x69')])for(let _0x5c6844=0x0;_0x5c6844<_0x24df36['Attachments'][_0x49aa82('0x48')];_0x5c6844++){const _0x4179dc=_0x24df36[_0x49aa82('0x69')][_0x5c6844],_0x2efc54=path[_0x49aa82('0xa4')](_0x5059fc,_0x4179dc['basename']);fs[_0x49aa82('0x1c')](_0x2efc54)&&_0x8f5841['attachments'][_0x49aa82('0x6')]({'name':_0x4179dc[_0x49aa82('0x7a')],'contentType':_0x4179dc[_0x49aa82('0xbf')],'data':fs[_0x49aa82('0xd2')](_0x2efc54)});}emlformat[_0x49aa82('0x17')](_0x8f5841,function(_0x407f6c,_0x4b5f67){const _0x35ef59=_0x49aa82;if(_0x407f6c)return _0x1ea8bd(_0x407f6c);return fs[_0x35ef59('0xa1')](path[_0x35ef59('0xa4')](_0x15088b,util[_0x35ef59('0x94')](_0x35ef59('0x18'),_0x5ba10c)),_0x4b5f67),_0x50ce5a(_0x4b5f67);});});})[_0x9b4298('0x1')](function(){const _0x237d39=_0x9b4298;return new Promise(function(_0x42cf1c,_0x3da9d7){zipdir(_0x15088b,{'saveTo':_0x5b06c5},function(_0x4c6018,_0x2c69e9){if(_0x4c6018)return _0x3da9d7(_0x4c6018);return _0x42cf1c(_0x2c69e9);});})[_0x237d39('0x1')](function(){return new Promise(function(_0x5d3421,_0x46601e){rimraf(_0x15088b,function(_0x5d1de9){if(_0x5d1de9)_0x46601e(_0x5d1de9);return _0x5d3421();});});})[_0x237d39('0x1')](function(){const _0x33a57c=_0x237d39;return _0x356ca6[_0x33a57c('0x1f')](_0x5b06c5,_0x5e184b,function(_0x23f7bf){const _0x18d3d9=_0x33a57c;_0x23f7bf?console['log'](_0x18d3d9('0x7b'),_0x23f7bf):fs['unlinkSync'](_0x5b06c5);});});});}else return _0x356ca6['sendStatus'](0xc8);})[_0x3df885('0x98')](handleError(_0x356ca6,null));}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.events.js b/server/api/mailInteraction/mailInteraction.events.js index 89b353c..7e55a4f 100644 --- a/server/api/mailInteraction/mailInteraction.events.js +++ b/server/api/mailInteraction/mailInteraction.events.js @@ -1 +1 @@ -const a407_0x3366=['setMaxListeners','save','update','remove','exports','events','unreadMessages','findAll','MailInteraction','then','MailMessage','Users','map','getUsers','emit','addHook','setDataValue'];(function(_0x544734,_0x336652){const _0x325751=function(_0x1760d3){while(--_0x1760d3){_0x544734['push'](_0x544734['shift']());}};_0x325751(++_0x336652);}(a407_0x3366,0x8b));const a407_0x3257=function(_0x544734,_0x336652){_0x544734=_0x544734-0x0;let _0x325751=a407_0x3366[_0x544734];return _0x325751;};const _0x52cd9d=a407_0x3257;'use strict';const EventEmitter=require(_0x52cd9d('0x2')),MailInteraction=require('../../mysqldb')['db'][_0x52cd9d('0x5')],MailMessage=require('../../mysqldb')['db'][_0x52cd9d('0x7')],MailInteractionEvents=new EventEmitter();MailInteractionEvents[_0x52cd9d('0xe')](0x0);const events={'afterCreate':_0x52cd9d('0xf'),'afterUpdate':_0x52cd9d('0x10'),'afterDestroy':_0x52cd9d('0x0')};function emitEvent(_0x1760d3){return function(_0x485e02){const _0x516621=a407_0x3257;_0x485e02[_0x516621('0xa')]({'attributes':['id'],'raw':!![]})[_0x516621('0x6')](function(_0x707c2){const _0x1facbf=_0x516621;return _0x485e02[_0x1facbf('0xd')](_0x1facbf('0x8'),_0x707c2[_0x1facbf('0x9')](function(_0x3c7b0e){return{'id':_0x3c7b0e['id']};})),MailMessage[_0x1facbf('0x4')]({'where':{'MailInteractionId':_0x485e02['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x3e7af7){const _0x25038d=_0x516621;_0x485e02[_0x25038d('0xd')](_0x25038d('0x3'),_0x3e7af7['length']),MailInteractionEvents[_0x25038d('0xb')](_0x1760d3+':'+_0x485e02['id'],_0x485e02),MailInteractionEvents[_0x25038d('0xb')](_0x1760d3,_0x485e02);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailInteraction[_0x52cd9d('0xc')](e,emitEvent(event));}}module[_0x52cd9d('0x1')]=MailInteractionEvents; \ No newline at end of file +const a407_0x3eff=['catch','findAll','setDataValue','events','update','remove','unreadMessages','addHook','then','undefined','save','MailMessage','emit','getUsers','../../mysqldb','setMaxListeners'];(function(_0x5becc1,_0x3eff85){const _0xfd56a=function(_0x58f3f2){while(--_0x58f3f2){_0x5becc1['push'](_0x5becc1['shift']());}};_0xfd56a(++_0x3eff85);}(a407_0x3eff,0x14f));const a407_0xfd56=function(_0x5becc1,_0x3eff85){_0x5becc1=_0x5becc1-0x0;let _0xfd56a=a407_0x3eff[_0x5becc1];return _0xfd56a;};const _0x1fab2c=a407_0xfd56;'use strict';const EventEmitter=require(_0x1fab2c('0x4')),MailInteraction=require('../../mysqldb')['db']['MailInteraction'],MailMessage=require(_0x1fab2c('0xf'))['db'][_0x1fab2c('0xc')],MailInteractionEvents=new EventEmitter();MailInteractionEvents[_0x1fab2c('0x0')](0x0);const events={'afterCreate':_0x1fab2c('0xb'),'afterUpdate':_0x1fab2c('0x5'),'afterDestroy':_0x1fab2c('0x6')};function emitEvent(_0x58f3f2){return function(_0x2f050e){const _0x3967ef=a407_0xfd56;_0x2f050e[_0x3967ef('0xe')]({'attributes':['id'],'raw':!![]})[_0x3967ef('0x9')](function(_0x87b339){const _0x327340=_0x3967ef;return _0x2f050e[_0x327340('0x3')]('Users',_0x87b339['map'](function(_0x5b71a4){return{'id':_0x5b71a4['id']};})),MailMessage[_0x327340('0x2')]({'where':{'MailInteractionId':_0x2f050e['id'],'direction':'in','read':![]},'raw':!![]});})[_0x3967ef('0x9')](function(_0x477372){const _0x584d13=_0x3967ef;_0x2f050e[_0x584d13('0x3')](_0x584d13('0x7'),_0x477372['length']),MailInteractionEvents[_0x584d13('0xd')](_0x58f3f2+':'+_0x2f050e['id'],_0x2f050e),MailInteractionEvents[_0x584d13('0xd')](_0x58f3f2,_0x2f050e);})[_0x3967ef('0x1')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x1fab2c('0xa')){const event=events[e];MailInteraction[_0x1fab2c('0x8')](e,emitEvent(event));}}module['exports']=MailInteractionEvents; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.model.js b/server/api/mailInteraction/mailInteraction.model.js index 6c936c2..5e86ff3 100644 --- a/server/api/mailInteraction/mailInteraction.model.js +++ b/server/api/mailInteraction/mailInteraction.model.js @@ -1 +1 @@ -const a408_0x3fc5=['models','define','substatusAt','closedAt','exports','./mailInteraction.attributes','get','changed','fti_mail_interactions','update','utf8mb4','mail_interactions','moment','FULLTEXT','catch','closed','format','substatus','YYYY-MM-DD\x20HH:mm:ss','MailMessage','subject'];(function(_0x85d507,_0x3fc528){const _0x3b7a81=function(_0x2514f3){while(--_0x2514f3){_0x85d507['push'](_0x85d507['shift']());}};_0x3b7a81(++_0x3fc528);}(a408_0x3fc5,0x117));const a408_0x3b7a=function(_0x85d507,_0x3fc528){_0x85d507=_0x85d507-0x0;let _0x3b7a81=a408_0x3fc5[_0x85d507];return _0x3b7a81;};const _0x151738=a408_0x3b7a;'use strict';const moment=require(_0x151738('0x6')),attributes=require(_0x151738('0x14'));module[_0x151738('0x13')]=function(_0x2514f3){const _0x38624e=_0x151738,_0x347b39=_0x2514f3[_0x38624e('0xf')],_0x2733bd=_0x2514f3[_0x38624e('0x10')]('MailInteraction',attributes,{'tableName':_0x38624e('0x5'),'paranoid':![],'indexes':[{'name':_0x38624e('0x2'),'fields':[_0x38624e('0xe'),'to'],'type':_0x38624e('0x7')}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x29410b){const _0x2465d3=_0x38624e;_0x29410b[_0x2465d3('0xb')]&&(_0x29410b[_0x2465d3('0x11')]=moment()[_0x2465d3('0xa')](_0x2465d3('0xc'))),_0x29410b['closed']&&(_0x29410b[_0x2465d3('0x12')]=moment()[_0x2465d3('0xa')]('YYYY-MM-DD\x20HH:mm:ss'));},'beforeUpdate':function(_0x29e644){const _0x35e645=_0x38624e;_0x29e644[_0x35e645('0x1')](_0x35e645('0xb'))&&(_0x29e644[_0x35e645('0x11')]=_0x29e644[_0x35e645('0xb')]?moment()[_0x35e645('0xa')](_0x35e645('0xc')):null),_0x29e644[_0x35e645('0x1')](_0x35e645('0x9'))&&(_0x29e644[_0x35e645('0x12')]=moment()[_0x35e645('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),_0x29e644[_0x35e645('0xb')]=null,_0x29e644['substatusAt']=null);},'afterUpdate':function(_0x1265cc){const _0x140e39=_0x38624e,_0x211c40=_0x1265cc[_0x140e39('0x0')]({'plain':!![]});if(_0x211c40[_0x140e39('0x9')])return _0x347b39[_0x140e39('0xd')][_0x140e39('0x3')]({'read':!![]},{'where':{'MailInteractionId':_0x211c40['id']}})[_0x140e39('0x8')](function(_0x15f2d1){return _0x15f2d1;});}},'charset':_0x38624e('0x4'),'collate':'utf8mb4_unicode_ci'});return _0x2733bd;}; \ No newline at end of file +const a408_0x1d7d=['mail_interactions','YYYY-MM-DD\x20HH:mm:ss','MailInteraction','closed','catch','format','closedAt','update','substatus','substatusAt','changed','subject','exports','get','FULLTEXT','fti_mail_interactions'];(function(_0x4557b1,_0x1d7d58){const _0x520c47=function(_0x2d653b){while(--_0x2d653b){_0x4557b1['push'](_0x4557b1['shift']());}};_0x520c47(++_0x1d7d58);}(a408_0x1d7d,0x70));const a408_0x520c=function(_0x4557b1,_0x1d7d58){_0x4557b1=_0x4557b1-0x0;let _0x520c47=a408_0x1d7d[_0x4557b1];return _0x520c47;};const _0x1692be=a408_0x520c;'use strict';const moment=require('moment'),attributes=require('./mailInteraction.attributes');module[_0x1692be('0xc')]=function(_0x2d653b){const _0x33682d=_0x1692be,_0x42b5b5=_0x2d653b['models'],_0x4f2d55=_0x2d653b['define'](_0x33682d('0x2'),attributes,{'tableName':_0x33682d('0x0'),'paranoid':![],'indexes':[{'name':_0x33682d('0xf'),'fields':[_0x33682d('0xb'),'to'],'type':_0x33682d('0xe')}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x5d846e){const _0x2665c5=_0x33682d;_0x5d846e[_0x2665c5('0x8')]&&(_0x5d846e[_0x2665c5('0x9')]=moment()[_0x2665c5('0x5')]('YYYY-MM-DD\x20HH:mm:ss')),_0x5d846e[_0x2665c5('0x3')]&&(_0x5d846e[_0x2665c5('0x6')]=moment()[_0x2665c5('0x5')](_0x2665c5('0x1')));},'beforeUpdate':function(_0x1f2223){const _0x3edfd9=_0x33682d;_0x1f2223['changed'](_0x3edfd9('0x8'))&&(_0x1f2223[_0x3edfd9('0x9')]=_0x1f2223[_0x3edfd9('0x8')]?moment()[_0x3edfd9('0x5')](_0x3edfd9('0x1')):null),_0x1f2223[_0x3edfd9('0xa')](_0x3edfd9('0x3'))&&(_0x1f2223[_0x3edfd9('0x6')]=moment()['format'](_0x3edfd9('0x1')),_0x1f2223[_0x3edfd9('0x8')]=null,_0x1f2223[_0x3edfd9('0x9')]=null);},'afterUpdate':function(_0x29dea0){const _0x18e871=_0x33682d,_0x26a851=_0x29dea0[_0x18e871('0xd')]({'plain':!![]});if(_0x26a851[_0x18e871('0x3')])return _0x42b5b5['MailMessage'][_0x18e871('0x7')]({'read':!![]},{'where':{'MailInteractionId':_0x26a851['id']}})[_0x18e871('0x4')](function(_0x2a5d74){return _0x2a5d74;});}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x4f2d55;}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.rpc.js b/server/api/mailInteraction/mailInteraction.rpc.js index 01726cc..4de002c 100644 --- a/server/api/mailInteraction/mailInteraction.rpc.js +++ b/server/api/mailInteraction/mailInteraction.rpc.js @@ -1 +1 @@ -const a409_0x5df5=['register','MailInteraction','info','../../config/logger','addTags','ids','UpdateMailInteraction','catch','AddTags','./mailInteraction.socket','omit','message','debug','body','findOne','stringify','error','limit','options','raw','then','update','attributes','rpc','../../mysqldb'];(function(_0x2a0bd2,_0x5df5df){const _0x29e667=function(_0x4fa244){while(--_0x4fa244){_0x2a0bd2['push'](_0x2a0bd2['shift']());}};_0x29e667(++_0x5df5df);}(a409_0x5df5,0x12b));const a409_0x29e6=function(_0x2a0bd2,_0x5df5df){_0x2a0bd2=_0x2a0bd2-0x0;let _0x29e667=a409_0x5df5[_0x2a0bd2];return _0x29e667;};const _0x5a6596=a409_0x29e6;'use strict';const _=require('lodash'),db=require(_0x5a6596('0x0'))['db'],logger=require(_0x5a6596('0x4'))(_0x5a6596('0x18')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x5a6596('0xa'))[_0x5a6596('0x1')](socket),exports['UpdateMailInteraction']=function(_0x4fa244){const _0x512e21=this;return new Promise(function(_0x1ffe0a,_0x4f7620){const _0x242e4d=a409_0x29e6;return db[_0x242e4d('0x2')][_0x242e4d('0x16')](_0x4fa244[_0x242e4d('0xe')],{'raw':_0x4fa244[_0x242e4d('0x13')]?_0x4fa244[_0x242e4d('0x13')][_0x242e4d('0x14')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4fa244[_0x242e4d('0x13')]?_0x4fa244[_0x242e4d('0x13')]['where']||null:null,'attributes':_0x4fa244[_0x242e4d('0x13')]?_0x4fa244[_0x242e4d('0x13')][_0x242e4d('0x17')]||null:null,'limit':_0x4fa244[_0x242e4d('0x13')]?_0x4fa244['options'][_0x242e4d('0x12')]||null:null})[_0x242e4d('0x15')](function(_0x3e10b7){const _0x3d51b4=_0x242e4d;logger[_0x3d51b4('0x3')](_0x3d51b4('0x7'),_0x4fa244),logger[_0x3d51b4('0xd')]('UpdateMailInteraction',_0x4fa244,JSON[_0x3d51b4('0x10')](_0x3e10b7)),_0x1ffe0a(_0x3e10b7);})[_0x242e4d('0x8')](function(_0x157066){const _0x15851b=_0x242e4d;logger[_0x15851b('0x11')]('UpdateMailInteraction',_0x157066[_0x15851b('0xc')],_0x4fa244),_0x4f7620(_0x512e21[_0x15851b('0x11')](0x1f4,_0x157066[_0x15851b('0xc')]));});});},exports['AddTagsToMailInteraction']=function(_0x1436f8){const _0x3961ff=this;return new Promise(function(_0x1a22a8,_0x57f97a){const _0x1d18e1=a409_0x29e6;return db[_0x1d18e1('0x2')][_0x1d18e1('0xf')]({'where':_0x1436f8[_0x1d18e1('0x13')]?_0x1436f8[_0x1d18e1('0x13')]['where']||null:null})['then'](function(_0x571d24){const _0x126fea=_0x1d18e1;if(_0x571d24)return _0x571d24[_0x126fea('0x5')](_0x1436f8[_0x126fea('0xe')][_0x126fea('0x6')],{'through':_[_0x126fea('0xb')](_0x1436f8[_0x126fea('0xe')],['ids','id'])});})['then'](function([_0x423182]){const _0x19f016=_0x1d18e1;logger[_0x19f016('0x3')](_0x19f016('0x9'),_0x1436f8),logger[_0x19f016('0xd')](_0x19f016('0x9'),_0x1436f8,JSON[_0x19f016('0x10')](_0x423182)),_0x1a22a8(_0x423182);})[_0x1d18e1('0x8')](function(_0x568bc3){const _0x429063=_0x1d18e1;logger[_0x429063('0x11')](_0x429063('0x9'),_0x568bc3[_0x429063('0xc')],_0x1436f8),_0x57f97a(_0x3961ff['error'](0x1f4,_0x568bc3[_0x429063('0xc')]));});});}; \ No newline at end of file +const a409_0x3d8a=['options','then','omit','body','../../config/logger','update','raw','./mailInteraction.socket','../../rediscache','message','MailInteraction','stringify','AddTagsToMailInteraction','where','debug','info','rpc','../../mysqldb','catch','addTags','ids','UpdateMailInteraction','register','AddTags','error'];(function(_0x491db3,_0x3d8a1e){const _0x34b452=function(_0x37dffc){while(--_0x37dffc){_0x491db3['push'](_0x491db3['shift']());}};_0x34b452(++_0x3d8a1e);}(a409_0x3d8a,0x7d));const a409_0x34b4=function(_0x491db3,_0x3d8a1e){_0x491db3=_0x491db3-0x0;let _0x34b452=a409_0x3d8a[_0x491db3];return _0x34b452;};const _0x172807=a409_0x34b4;'use strict';const _=require('lodash'),db=require(_0x172807('0x11'))['db'],logger=require(_0x172807('0x4'))(_0x172807('0x10')),{getSocket}=require(_0x172807('0x8')),socket=getSocket();require(_0x172807('0x7'))[_0x172807('0x16')](socket),exports['UpdateMailInteraction']=function(_0x37dffc){const _0x439a3e=this;return new Promise(function(_0xb81dcb,_0x5834c7){const _0x27badf=a409_0x34b4;return db['MailInteraction'][_0x27badf('0x5')](_0x37dffc[_0x27badf('0x3')],{'raw':_0x37dffc['options']?_0x37dffc[_0x27badf('0x0')][_0x27badf('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x37dffc['options']?_0x37dffc['options'][_0x27badf('0xd')]||null:null,'attributes':_0x37dffc[_0x27badf('0x0')]?_0x37dffc[_0x27badf('0x0')]['attributes']||null:null,'limit':_0x37dffc['options']?_0x37dffc[_0x27badf('0x0')]['limit']||null:null})['then'](function(_0x4f0f5e){const _0x3dd403=_0x27badf;logger[_0x3dd403('0xf')](_0x3dd403('0x15'),_0x37dffc),logger['debug'](_0x3dd403('0x15'),_0x37dffc,JSON[_0x3dd403('0xb')](_0x4f0f5e)),_0xb81dcb(_0x4f0f5e);})['catch'](function(_0x488b55){const _0x1c846d=_0x27badf;logger[_0x1c846d('0x18')](_0x1c846d('0x15'),_0x488b55[_0x1c846d('0x9')],_0x37dffc),_0x5834c7(_0x439a3e[_0x1c846d('0x18')](0x1f4,_0x488b55[_0x1c846d('0x9')]));});});},exports[_0x172807('0xc')]=function(_0x284749){const _0x1c727c=this;return new Promise(function(_0x501dcc,_0x2ed1ad){const _0x4a9758=a409_0x34b4;return db[_0x4a9758('0xa')]['findOne']({'where':_0x284749[_0x4a9758('0x0')]?_0x284749['options'][_0x4a9758('0xd')]||null:null})[_0x4a9758('0x1')](function(_0x29656d){const _0x5b7039=_0x4a9758;if(_0x29656d)return _0x29656d[_0x5b7039('0x13')](_0x284749[_0x5b7039('0x3')][_0x5b7039('0x14')],{'through':_[_0x5b7039('0x2')](_0x284749[_0x5b7039('0x3')],[_0x5b7039('0x14'),'id'])});})[_0x4a9758('0x1')](function([_0x158e55]){const _0x53fb23=_0x4a9758;logger[_0x53fb23('0xf')](_0x53fb23('0x17'),_0x284749),logger[_0x53fb23('0xe')](_0x53fb23('0x17'),_0x284749,JSON[_0x53fb23('0xb')](_0x158e55)),_0x501dcc(_0x158e55);})[_0x4a9758('0x12')](function(_0xf1ef4d){const _0x498ec4=_0x4a9758;logger[_0x498ec4('0x18')]('AddTags',_0xf1ef4d[_0x498ec4('0x9')],_0x284749),_0x2ed1ad(_0x1c727c[_0x498ec4('0x18')](0x1f4,_0xf1ef4d[_0x498ec4('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.socket.js b/server/api/mailInteraction/mailInteraction.socket.js index 2d40c5d..6a1e31b 100644 --- a/server/api/mailInteraction/mailInteraction.socket.js +++ b/server/api/mailInteraction/mailInteraction.socket.js @@ -1 +1 @@ -const a410_0x38f7=['register','mailInteraction:','remove','length','./mailInteraction.events','emit','save','update'];(function(_0x1f9732,_0x38f768){const _0x255455=function(_0x1f8c01){while(--_0x1f8c01){_0x1f9732['push'](_0x1f9732['shift']());}};_0x255455(++_0x38f768);}(a410_0x38f7,0x1f3));const a410_0x2554=function(_0x1f9732,_0x38f768){_0x1f9732=_0x1f9732-0x0;let _0x255455=a410_0x38f7[_0x1f9732];return _0x255455;};const _0x537aed=a410_0x2554;'use strict';const MailInteractionEvents=require(_0x537aed('0x1')),events=[_0x537aed('0x3'),_0x537aed('0x7'),_0x537aed('0x4')];function createListener(_0x1f8c01,_0x21821c){return function(_0xd4ac26){const _0x1309b1=a410_0x2554;_0x21821c[_0x1309b1('0x2')](_0x1f8c01,_0xd4ac26);};}exports[_0x537aed('0x5')]=function(_0x4a7457){const _0x53bec7=_0x537aed;for(let _0xbdcb9d=0x0,_0x3792bb=events[_0x53bec7('0x0')];_0xbdcb9d<_0x3792bb;_0xbdcb9d++){const _0x2e1c12=events[_0xbdcb9d],_0x3b3cc0=createListener(_0x53bec7('0x6')+_0x2e1c12,_0x4a7457);MailInteractionEvents['on'](_0x2e1c12,_0x3b3cc0);}}; \ No newline at end of file +const a410_0x5879=['save','register','update','./mailInteraction.events','emit','remove'];(function(_0x33351d,_0x587971){const _0x50e500=function(_0x278e0b){while(--_0x278e0b){_0x33351d['push'](_0x33351d['shift']());}};_0x50e500(++_0x587971);}(a410_0x5879,0xb5));const a410_0x50e5=function(_0x33351d,_0x587971){_0x33351d=_0x33351d-0x0;let _0x50e500=a410_0x5879[_0x33351d];return _0x50e500;};const _0x30898e=a410_0x50e5;'use strict';const MailInteractionEvents=require(_0x30898e('0x2')),events=[_0x30898e('0x5'),_0x30898e('0x4'),_0x30898e('0x1')];function createListener(_0x278e0b,_0x211dfc){return function(_0x1e8879){const _0x51be22=a410_0x50e5;_0x211dfc[_0x51be22('0x3')](_0x278e0b,_0x1e8879);};}exports[_0x30898e('0x0')]=function(_0x3c8b7b){for(let _0x5bc54e=0x0,_0x38a5ae=events['length'];_0x5bc54e<_0x38a5ae;_0x5bc54e++){const _0x2d3bec=events[_0x5bc54e],_0xb29b2d=createListener('mailInteraction:'+_0x2d3bec,_0x3c8b7b);MailInteractionEvents['on'](_0x2d3bec,_0xb29b2d);}}; \ No newline at end of file diff --git a/server/api/mailMessage/index.js b/server/api/mailMessage/index.js index 440686a..7f094ea 100644 --- a/server/api/mailMessage/index.js +++ b/server/api/mailMessage/index.js @@ -1 +1 @@ -const a411_0xae6b=['/:id','/:id/accept','destroy','mail','isAuthenticated','../../components/interaction/service','update','express','../../components/auth/service','create','/:id/download','accept','show','describe','exports','get','index','/:id/reject','post','./mailMessage.controller','put','/describe','reject','download'];(function(_0x4c898c,_0xae6b10){const _0x1ce295=function(_0x3e97a8){while(--_0x3e97a8){_0x4c898c['push'](_0x4c898c['shift']());}};_0x1ce295(++_0xae6b10);}(a411_0xae6b,0xcd));const a411_0x1ce2=function(_0x4c898c,_0xae6b10){_0x4c898c=_0x4c898c-0x0;let _0x1ce295=a411_0xae6b[_0x4c898c];return _0x1ce295;};const _0x40ff73=a411_0x1ce2;'use strict';const express=require(_0x40ff73('0x12')),router=express['Router'](),auth=require(_0x40ff73('0x13')),interaction=require(_0x40ff73('0x10')),controller=require(_0x40ff73('0x6'));router[_0x40ff73('0x2')]('/',auth[_0x40ff73('0xf')](),controller[_0x40ff73('0x3')]),router[_0x40ff73('0x2')](_0x40ff73('0x8'),auth[_0x40ff73('0xf')](),controller[_0x40ff73('0x0')]),router[_0x40ff73('0x2')](_0x40ff73('0xb'),auth[_0x40ff73('0xf')](),controller[_0x40ff73('0x17')]),router['get'](_0x40ff73('0x15'),auth[_0x40ff73('0xf')](),controller[_0x40ff73('0xa')]),router[_0x40ff73('0x5')]('/',auth[_0x40ff73('0xf')](),interaction['tracked'](_0x40ff73('0xe'),'mailmessage:create'),controller[_0x40ff73('0x14')]),router[_0x40ff73('0x7')](_0x40ff73('0xb'),auth[_0x40ff73('0xf')](),controller[_0x40ff73('0x11')]),router[_0x40ff73('0x7')](_0x40ff73('0xc'),auth[_0x40ff73('0xf')](),controller[_0x40ff73('0x16')]),router[_0x40ff73('0x7')](_0x40ff73('0x4'),auth[_0x40ff73('0xf')](),controller[_0x40ff73('0x9')]),router['delete']('/:id',auth[_0x40ff73('0xf')](),controller[_0x40ff73('0xd')]),module[_0x40ff73('0x1')]=router; \ No newline at end of file +const a411_0x3b7e=['download','put','../../components/auth/service','/:id/reject','tracked','/:id/download','/describe','/:id/accept','./mailMessage.controller','isAuthenticated','mail','/:id','delete','exports','Router','destroy','create','get','../../components/interaction/service','mailmessage:create','index','express','update'];(function(_0x3ce986,_0x3b7e46){const _0x54ffae=function(_0x335bcf){while(--_0x335bcf){_0x3ce986['push'](_0x3ce986['shift']());}};_0x54ffae(++_0x3b7e46);}(a411_0x3b7e,0x10f));const a411_0x54ff=function(_0x3ce986,_0x3b7e46){_0x3ce986=_0x3ce986-0x0;let _0x54ffae=a411_0x3b7e[_0x3ce986];return _0x54ffae;};const _0x3adc63=a411_0x54ff;'use strict';const express=require(_0x3adc63('0x3')),router=express[_0x3adc63('0x13')](),auth=require(_0x3adc63('0x7')),interaction=require(_0x3adc63('0x0')),controller=require(_0x3adc63('0xd'));router[_0x3adc63('0x16')]('/',auth['isAuthenticated'](),controller[_0x3adc63('0x2')]),router[_0x3adc63('0x16')](_0x3adc63('0xb'),auth['isAuthenticated'](),controller['describe']),router['get']('/:id',auth[_0x3adc63('0xe')](),controller['show']),router[_0x3adc63('0x16')](_0x3adc63('0xa'),auth['isAuthenticated'](),controller[_0x3adc63('0x5')]),router['post']('/',auth[_0x3adc63('0xe')](),interaction[_0x3adc63('0x9')](_0x3adc63('0xf'),_0x3adc63('0x1')),controller[_0x3adc63('0x15')]),router['put'](_0x3adc63('0x10'),auth[_0x3adc63('0xe')](),controller[_0x3adc63('0x4')]),router['put'](_0x3adc63('0xc'),auth[_0x3adc63('0xe')](),controller['accept']),router[_0x3adc63('0x6')](_0x3adc63('0x8'),auth[_0x3adc63('0xe')](),controller['reject']),router[_0x3adc63('0x11')]('/:id',auth[_0x3adc63('0xe')](),controller[_0x3adc63('0x14')]),module[_0x3adc63('0x12')]=router; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.attributes.js b/server/api/mailMessage/mailMessage.attributes.js index 46225a9..e6bdaf3 100644 --- a/server/api/mailMessage/mailMessage.attributes.js +++ b/server/api/mailMessage/mailMessage.attributes.js @@ -1 +1 @@ -const a412_0x3dab=['STRING','out','DATE','INTEGER','long','sequelize','ENUM','BOOLEAN','TEXT','medium'];(function(_0x15d25f,_0x3dab2b){const _0x407e42=function(_0x2bdf56){while(--_0x2bdf56){_0x15d25f['push'](_0x15d25f['shift']());}};_0x407e42(++_0x3dab2b);}(a412_0x3dab,0x1db));const a412_0x407e=function(_0x15d25f,_0x3dab2b){_0x15d25f=_0x15d25f-0x0;let _0x407e42=a412_0x3dab[_0x15d25f];return _0x407e42;};const _0x51caec=a412_0x407e;'use strict';const Sequelize=require(_0x51caec('0x0'));module['exports']={'body':{'type':Sequelize[_0x51caec('0x3')](_0x51caec('0x9')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x51caec('0x3')](_0x51caec('0x4'))},'read':{'type':Sequelize[_0x51caec('0x2')],'defaultValue':![]},'direction':{'type':Sequelize[_0x51caec('0x1')]('in','out'),'defaultValue':_0x51caec('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0x51caec('0x5')](0x1fe)},'from':{'type':Sequelize[_0x51caec('0x5')]},'to':{'type':Sequelize[_0x51caec('0x3')](_0x51caec('0x9'))},'cc':{'type':Sequelize[_0x51caec('0x3')](_0x51caec('0x9'))},'bcc':{'type':Sequelize[_0x51caec('0x3')](_0x51caec('0x9'))},'subject':{'type':Sequelize[_0x51caec('0x3')]},'sentAt':{'type':Sequelize[_0x51caec('0x7')]},'attach':{'type':Sequelize[_0x51caec('0x8')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x51caec('0x2')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x51caec('0x7')]},'originTo':{'type':Sequelize['TEXT'](_0x51caec('0x9'))},'originCc':{'type':Sequelize[_0x51caec('0x3')](_0x51caec('0x9'))}}; \ No newline at end of file +const a412_0x5b69=['ENUM','DATE','long','out','sequelize','STRING','BOOLEAN','medium','TEXT'];(function(_0x325266,_0x5b69cf){const _0x51679c=function(_0x268435){while(--_0x268435){_0x325266['push'](_0x325266['shift']());}};_0x51679c(++_0x5b69cf);}(a412_0x5b69,0xf8));const a412_0x5167=function(_0x325266,_0x5b69cf){_0x325266=_0x325266-0x0;let _0x51679c=a412_0x5b69[_0x325266];return _0x51679c;};const _0x13a858=a412_0x5167;'use strict';const Sequelize=require(_0x13a858('0x8'));module['exports']={'body':{'type':Sequelize[_0x13a858('0x3')](_0x13a858('0x6')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x13a858('0x3')](_0x13a858('0x2'))},'read':{'type':Sequelize[_0x13a858('0x1')],'defaultValue':![]},'direction':{'type':Sequelize[_0x13a858('0x4')]('in',_0x13a858('0x7')),'defaultValue':_0x13a858('0x7'),'allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize[_0x13a858('0x0')]},'to':{'type':Sequelize['TEXT'](_0x13a858('0x6'))},'cc':{'type':Sequelize[_0x13a858('0x3')]('long')},'bcc':{'type':Sequelize[_0x13a858('0x3')]('long')},'subject':{'type':Sequelize[_0x13a858('0x3')]},'sentAt':{'type':Sequelize[_0x13a858('0x5')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x13a858('0x1')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x13a858('0x5')]},'originTo':{'type':Sequelize[_0x13a858('0x3')](_0x13a858('0x6'))},'originCc':{'type':Sequelize[_0x13a858('0x3')](_0x13a858('0x6'))}}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.controller.js b/server/api/mailMessage/mailMessage.controller.js index d6d781b..e91a2b3 100644 --- a/server/api/mailMessage/mailMessage.controller.js +++ b/server/api/mailMessage/mailMessage.controller.js @@ -1 +1 @@ -const a413_0x7bfa=['service','accept','unix','query','RejectMessage','filter','Smtp','bcc','null','model','manual','MailAccount','set','split','YYYY-MM-DD\x20HH:mm:ss','fields','body','mail','Contacts','Attachments','type','toString','./mailMessage.socket','status','existsSync','map','info','fieldName','CmContact','Bcc','moment','util','SIP/%s','params','sort','MailMessage,\x20%s,\x20%s','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','../../config/logger','code','../../rediscache','DESC','order','stack','Contact','err','readFileSync','filters','update','intersection','acceptmessage','headers','root','pick','auth','download','subject','log','basename','count','sequelize','MailInteraction','sendStatus','name','MailServerOut','role','limit','interaction','pass','show','MailMessage,\x20%s,\x20%s,\x20%s','Attachment','get','request','read1stAt','read','acceptMessage','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','create','server/files/attachments','where','nolimit','authentication','include','index','register','lodash','attributes','format','server','EventManager','api','http','secure','MailMessage','List','../../mysqldb','options','event','attachments','stringify','message','updatedAt','length','messageId','from','AcceptMessage','rawAttributes','reject','json','UserId','merge','writeFileSync','request\x20sent','catch','then','eml-format','keys','client','like','channel','host','createdAt','describe','isNil','rejectMessage','findOne','files','findAll','jayson/promise','List\x20not\x20found','../../config/environment','path','sendMail','includeAll','join','undefined','CmList','interface','offset','direction','SendMail','build','error','Content-Range','user','destroy','message-%s.eml'];(function(_0x41cce8,_0x7bfa0e){const _0x566b19=function(_0x3efe8b){while(--_0x3efe8b){_0x41cce8['push'](_0x41cce8['shift']());}};_0x566b19(++_0x7bfa0e);}(a413_0x7bfa,0x160));const a413_0x566b=function(_0x41cce8,_0x7bfa0e){_0x41cce8=_0x41cce8-0x0;let _0x566b19=a413_0x7bfa[_0x41cce8];return _0x566b19;};const _0x311749=a413_0x566b;'use strict';const emlformat=require(_0x311749('0x39')),moment=require(_0x311749('0x77')),util=require(_0x311749('0x78')),path=require(_0x311749('0x49')),fs=require('fs'),_=require(_0x311749('0x1b')),{getSocket}=require(_0x311749('0x80')),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0x311749('0x7e'))(_0x311749('0x20')),config=require(_0x311749('0x48')),interaction_log=require(_0x311749('0x7e'))('mail-interactions'),db=require(_0x311749('0x25'))['db'],{Op}=require(_0x311749('0x1'));require(_0x311749('0x6f'))[_0x311749('0x1a')](socket);const jayson=require(_0x311749('0x46')),client=jayson[_0x311749('0x3b')]['http']({'port':0x232c}),client9003=jayson[_0x311749('0x3b')][_0x311749('0x21')]({'port':0x232b}),client9002=jayson[_0x311749('0x3b')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3efe8b,_0x4df2c8,_0x2ce0dc,_0x3b304e){return new Promise(function(_0x5928ca,_0x477b74){const _0x50f229=a413_0x566b,_0x49dc8c=_0x3b304e||client;return _0x49dc8c[_0x50f229('0xe')](_0x3efe8b,_0x2ce0dc)[_0x50f229('0x38')](function(_0x123892){const _0x311223=_0x50f229;logger['info'](_0x311223('0x7c'),_0x4df2c8,_0x311223('0x36')),logger['debug'](_0x311223('0xb'),_0x4df2c8,_0x311223('0x36'),JSON[_0x311223('0x29')](_0x123892));if(_0x123892[_0x311223('0x54')]){if(_0x123892[_0x311223('0x54')][_0x311223('0x7f')]===0x1f4)return logger['error'](_0x311223('0x7c'),_0x4df2c8,_0x123892[_0x311223('0x54')][_0x311223('0x2a')]),_0x477b74(_0x123892['error']['message']);return logger[_0x311223('0x54')](_0x311223('0x7c'),_0x4df2c8,_0x123892[_0x311223('0x54')][_0x311223('0x2a')]),_0x5928ca(_0x123892[_0x311223('0x54')][_0x311223('0x2a')]);}else logger['info'](_0x311223('0x7c'),_0x4df2c8,_0x311223('0x36')),_0x5928ca(_0x123892['result'][_0x311223('0x2a')]);})['catch'](function(_0x5b02a2){const _0x5bd3d8=_0x50f229;logger[_0x5bd3d8('0x54')]('MailMessage,\x20%s,\x20%s',_0x4df2c8,_0x5b02a2),_0x477b74(_0x5b02a2);});});}function respondWithResult(_0xfabcbf,_0x4326c0){return _0x4326c0=_0x4326c0||0xc8,function(_0x2cc561){const _0x251218=a413_0x566b;if(_0x2cc561)return _0xfabcbf[_0x251218('0x70')](_0x4326c0)[_0x251218('0x32')](_0x2cc561);};}function respondWithFilteredResult(_0x5adf61,_0x2bb774){return function(_0x4d8e1d){const _0x24d5ff=a413_0x566b;if(_0x4d8e1d){const _0x3a8a94=_0x4d8e1d['count'],_0x46070e=_0x2bb774[_0x24d5ff('0x50')];let _0x30202a=_0x2bb774[_0x24d5ff('0x50')]+_0x2bb774[_0x24d5ff('0x7')],_0x114d54;return _0x30202a>=_0x3a8a94?(_0x30202a=_0x3a8a94,_0x114d54=0xc8):_0x114d54=0xce,_0x5adf61[_0x24d5ff('0x70')](_0x114d54),_0x5adf61[_0x24d5ff('0x65')](_0x24d5ff('0x55'),_0x46070e+'-'+_0x30202a+'/'+_0x3a8a94)[_0x24d5ff('0x32')](_0x4d8e1d);}return null;};}function saveUpdates(_0xcc96c){return function(_0x43d918){const _0x3fa089=a413_0x566b;if(_0x43d918)return _0x43d918[_0x3fa089('0x88')](_0xcc96c)[_0x3fa089('0x38')](function(_0x2455bf){return _0x2455bf;});return null;};}function removeEntity(_0x5d2ccb){return function(_0x589fd3){const _0x496f3e=a413_0x566b;if(_0x589fd3)return _0x589fd3[_0x496f3e('0x57')]()['then'](function(){const _0x1d46f0=_0x496f3e;_0x5d2ccb[_0x1d46f0('0x70')](0xcc)['end']();});};}function handleEntityNotFound(_0x11012e){return function(_0x461298){const _0x43245b=a413_0x566b;return!_0x461298&&_0x11012e[_0x43245b('0x3')](0x194),_0x461298;};}function handleError(_0x196029,_0x5d30cf){return _0x5d30cf=_0x5d30cf||0x1f4,function(_0xbd1415){const _0x1538bf=a413_0x566b;logger['error'](_0xbd1415[_0x1538bf('0x83')]),_0xbd1415['name']&&delete _0xbd1415[_0x1538bf('0x4')],_0x196029[_0x1538bf('0x70')](_0x5d30cf)['send'](_0xbd1415);};}exports[_0x311749('0x19')]=function(_0x4fde4d,_0x49c27e){const _0x24b886=_0x311749;let _0x1c8cd1={};const _0x5a537b={},_0x23ff0f={'count':0x0,'rows':[]},_0x36c58b=_['map'](db[_0x24b886('0x23')]['rawAttributes'],function(_0x116447){const _0x3891cc=_0x24b886;return{'name':_0x116447[_0x3891cc('0x74')],'type':_0x116447[_0x3891cc('0x6d')]['key']};});_0x5a537b[_0x24b886('0x62')]=_[_0x24b886('0x72')](_0x36c58b,_0x24b886('0x4')),_0x5a537b[_0x24b886('0x5c')]=_['keys'](_0x4fde4d[_0x24b886('0x5c')]),_0x5a537b[_0x24b886('0x87')]=_[_0x24b886('0x89')](_0x5a537b[_0x24b886('0x62')],_0x5a537b['query']),_0x1c8cd1[_0x24b886('0x1c')]=_[_0x24b886('0x89')](_0x5a537b[_0x24b886('0x62')],qs[_0x24b886('0x68')](_0x4fde4d['query'][_0x24b886('0x68')])),_0x1c8cd1[_0x24b886('0x1c')]=_0x1c8cd1[_0x24b886('0x1c')][_0x24b886('0x2c')]?_0x1c8cd1[_0x24b886('0x1c')]:_0x5a537b[_0x24b886('0x62')];typeof _0x4fde4d[_0x24b886('0x5c')][_0x24b886('0x16')]===_0x24b886('0x4d')&&(_0x1c8cd1[_0x24b886('0x7')]=qs[_0x24b886('0x7')](_0x4fde4d[_0x24b886('0x5c')][_0x24b886('0x7')]),_0x1c8cd1['offset']=qs[_0x24b886('0x50')](_0x4fde4d[_0x24b886('0x5c')]['offset']));_0x1c8cd1[_0x24b886('0x82')]=qs[_0x24b886('0x7b')](_0x4fde4d[_0x24b886('0x5c')][_0x24b886('0x7b')]),_0x1c8cd1[_0x24b886('0x15')]=qs[_0x24b886('0x87')](_[_0x24b886('0x8d')](_0x4fde4d[_0x24b886('0x5c')],_0x5a537b[_0x24b886('0x87')]),_0x36c58b);_0x4fde4d[_0x24b886('0x5c')][_0x24b886('0x5e')]&&(_0x1c8cd1[_0x24b886('0x15')]=_[_0x24b886('0x34')](_0x1c8cd1[_0x24b886('0x15')],{[Op['or']]:_[_0x24b886('0x72')](_0x36c58b,function(_0x57077c){const _0x259a47=_0x24b886;if(_0x57077c[_0x259a47('0x6d')]!=='VIRTUAL'){const _0x1e0224={};return _0x1e0224[_0x57077c[_0x259a47('0x4')]]={[Op[_0x259a47('0x3c')]]:'%'+_0x4fde4d['query'][_0x259a47('0x5e')]+'%'},_0x1e0224;}})}));_0x1c8cd1=_['merge']({},_0x1c8cd1,_0x4fde4d[_0x24b886('0x26')]);const _0x3a94e8={'where':_0x1c8cd1[_0x24b886('0x15')]};return db[_0x24b886('0x23')][_0x24b886('0x0')](_0x3a94e8)[_0x24b886('0x38')](function(_0x3398a0){const _0x5461a5=_0x24b886;return _0x23ff0f[_0x5461a5('0x0')]=_0x3398a0,_0x4fde4d['query'][_0x5461a5('0x4b')]&&(_0x1c8cd1[_0x5461a5('0x18')]=[{'all':!![]}]),db['MailMessage'][_0x5461a5('0x45')](_0x1c8cd1);})['then'](function(_0x350087){return _0x23ff0f['rows']=_0x350087,_0x23ff0f;})[_0x24b886('0x38')](respondWithFilteredResult(_0x49c27e,_0x1c8cd1))[_0x24b886('0x37')](handleError(_0x49c27e,null));},exports[_0x311749('0xa')]=function(_0x437825,_0x28b7d0){const _0x4fd80a=_0x311749;let _0x47bebe={'raw':!![],'where':{'id':_0x437825[_0x4fd80a('0x7a')]['id']}};const _0x2763ab={};return _0x2763ab['model']=_[_0x4fd80a('0x3a')](db[_0x4fd80a('0x23')][_0x4fd80a('0x30')]),_0x2763ab[_0x4fd80a('0x5c')]=_[_0x4fd80a('0x3a')](_0x437825[_0x4fd80a('0x5c')]),_0x2763ab[_0x4fd80a('0x87')]=_['intersection'](_0x2763ab[_0x4fd80a('0x62')],_0x2763ab[_0x4fd80a('0x5c')]),_0x47bebe['attributes']=_['intersection'](_0x2763ab[_0x4fd80a('0x62')],qs['fields'](_0x437825[_0x4fd80a('0x5c')][_0x4fd80a('0x68')])),_0x47bebe[_0x4fd80a('0x1c')]=_0x47bebe[_0x4fd80a('0x1c')][_0x4fd80a('0x2c')]?_0x47bebe[_0x4fd80a('0x1c')]:_0x2763ab[_0x4fd80a('0x62')],_0x437825[_0x4fd80a('0x5c')][_0x4fd80a('0x4b')]&&(_0x47bebe[_0x4fd80a('0x18')]=[{'all':!![]}]),_0x47bebe=_[_0x4fd80a('0x34')]({},_0x47bebe,_0x437825[_0x4fd80a('0x26')]),db[_0x4fd80a('0x23')][_0x4fd80a('0x43')](_0x47bebe)[_0x4fd80a('0x38')](handleEntityNotFound(_0x28b7d0,null))[_0x4fd80a('0x38')](respondWithResult(_0x28b7d0,null))[_0x4fd80a('0x37')](handleError(_0x28b7d0,null));},exports['update']=function(_0x37a49d,_0x34ad79){const _0x29ca6f=_0x311749;return _0x37a49d['body']['id']&&delete _0x37a49d[_0x29ca6f('0x69')]['id'],db[_0x29ca6f('0x23')][_0x29ca6f('0x43')]({'where':{'id':_0x37a49d[_0x29ca6f('0x7a')]['id']}})['then'](handleEntityNotFound(_0x34ad79,null))['then'](saveUpdates(_0x37a49d['body'],null))[_0x29ca6f('0x38')](respondWithResult(_0x34ad79,null))[_0x29ca6f('0x37')](handleError(_0x34ad79,null));},exports['destroy']=function(_0xd9df8e,_0x2c79ed){const _0x476bcf=_0x311749;return db[_0x476bcf('0x23')][_0x476bcf('0x43')]({'where':{'id':_0xd9df8e['params']['id']}})[_0x476bcf('0x38')](handleEntityNotFound(_0x2c79ed,null))[_0x476bcf('0x38')](removeEntity(_0x2c79ed,null))[_0x476bcf('0x37')](handleError(_0x2c79ed,null));},exports[_0x311749('0x40')]=function(_0x1ae039,_0x38b66){const _0x457cbd=_0x311749;return db[_0x457cbd('0x23')][_0x457cbd('0x40')]()[_0x457cbd('0x38')](respondWithResult(_0x38b66,null))[_0x457cbd('0x37')](handleError(_0x38b66,null));},exports[_0x311749('0x13')]=function(_0x449e4f,_0xebf0a0){const _0x51ce12=_0x311749;return db['MailMessage']['create'](_0x449e4f['body'])[_0x51ce12('0x38')](function(_0x2d1f5a){const _0x30ae80=_0x51ce12;if(_0x2d1f5a){if(_0x2d1f5a[_0x30ae80('0x51')]==='out'&&!_0x2d1f5a['secret']){let _0x280c25,_0x559d74,_0x40a70e;return _0x449e4f[_0x30ae80('0x69')]['to']&&(_0x559d74=_0x449e4f[_0x30ae80('0x69')]['to'][_0x30ae80('0x66')](',')[0x0]),db[_0x30ae80('0x64')][_0x30ae80('0x43')]({'where':{'id':_0x2d1f5a['MailAccountId']},'include':[{'model':db[_0x30ae80('0x4e')],'as':_0x30ae80('0x24'),'include':[{'model':db[_0x30ae80('0x75')],'as':'Contacts','where':{'email':_0x559d74},'limit':0x1,'order':[[_0x30ae80('0x2b'),_0x30ae80('0x81')]]}]},{'model':db[_0x30ae80('0x5')],'as':'Smtp','raw':!![]}]})[_0x30ae80('0x38')](function(_0x5ec801){const _0xe81594=_0x30ae80;_0x280c25=_0x5ec801;if(_0x280c25&&_0x280c25[_0xe81594('0x5f')]){const _0x27547c={'tls':{'rejectUnauthorized':![]}};_[_0xe81594('0x41')](_0x280c25[_0xe81594('0x5f')][_0xe81594('0x59')])?(_0x27547c[_0xe81594('0x3e')]=_0x280c25[_0xe81594('0x5f')][_0xe81594('0x3e')],_0x27547c['port']=_0x280c25[_0xe81594('0x5f')]['port'],_0x27547c[_0xe81594('0x22')]=_0x280c25['Smtp'][_0xe81594('0x22')],_0x280c25[_0xe81594('0x5f')][_0xe81594('0x17')]&&(_0x27547c[_0xe81594('0x8e')]={'user':_0x280c25['Smtp']['user'],'pass':_0x280c25[_0xe81594('0x5f')][_0xe81594('0x9')]})):(_0x27547c[_0xe81594('0x59')]=_0x280c25[_0xe81594('0x5f')][_0xe81594('0x59')],_0x27547c[_0xe81594('0x8e')]={'user':_0x280c25[_0xe81594('0x5f')][_0xe81594('0x56')],'pass':_0x280c25['Smtp'][_0xe81594('0x9')]},_0x27547c[_0xe81594('0x22')]=_0x280c25['Smtp'][_0xe81594('0x22')]);if(_0x449e4f[_0xe81594('0x69')][_0xe81594('0x28')]&&_0x449e4f['body'][_0xe81594('0x28')][_0xe81594('0x2c')])for(let _0xc2d2fa=0x0;_0xc2d2fa<_0x449e4f[_0xe81594('0x69')]['attachments']['length'];_0xc2d2fa+=0x1){_0x449e4f['body'][_0xe81594('0x28')][_0xc2d2fa]={'filename':_0x449e4f[_0xe81594('0x69')][_0xe81594('0x28')][_0xc2d2fa]['name'],'path':path[_0xe81594('0x4c')](config[_0xe81594('0x8c')],_0xe81594('0x14'),_0x449e4f[_0xe81594('0x69')]['attachments'][_0xc2d2fa][_0xe81594('0x92')])};}_0x40a70e={'account':_0x27547c,'message':_0x449e4f[_0xe81594('0x69')]};return;}})['then'](function(){const _0x443ada=_0x30ae80;if(_0x280c25[_0x443ada('0x24')])return _0x280c25[_0x443ada('0x24')][_0x443ada('0x6b')][_0x443ada('0x2c')]?_0x280c25[_0x443ada('0x24')][_0x443ada('0x6b')][0x0]:db[_0x443ada('0x75')][_0x443ada('0x13')](_['defaults'](_0x449e4f[_0x443ada('0x69')],{'firstName':_0x449e4f['body']['to'],'email':_0x449e4f[_0x443ada('0x69')]['to'],'phone':_0x449e4f[_0x443ada('0x69')]['to'],'ListId':_0x280c25['ListId']}));else throw new Error(_0x443ada('0x47'));})[_0x30ae80('0x38')](function(){const _0x4093c6=_0x30ae80;if(_0x40a70e)return respondWithRpcPromise(_0x4093c6('0x52'),_0x4093c6('0x4a'),_0x40a70e,client9003)[_0x4093c6('0x38')](function(_0xd8255d){const _0x1ffbec=_0x4093c6;return _0x2d1f5a[_0x1ffbec('0x88')]({'read':!![],'messageId':_0xd8255d[_0x1ffbec('0x2d')],'sentAt':moment()['format'](_0x1ffbec('0x67'))});})['catch'](function(_0x5f2b41){const _0x5d346e=_0x4093c6;return logger[_0x5d346e('0x54')]('%s',JSON[_0x5d346e('0x29')](_0x5f2b41)),_0x2d1f5a;});return _0x2d1f5a;});}return _0x2d1f5a;}})[_0x51ce12('0x38')](respondWithResult(_0xebf0a0,0xc9))[_0x51ce12('0x37')](handleError(_0xebf0a0,null));},exports['accept']=function(_0x2bdd6a,_0x256f37){const _0xf84ef1=_0x311749,_0x1c1764={'channel':_0xf84ef1('0x6a')};return _0x2bdd6a[_0xf84ef1('0x69')]['id']&&delete _0x2bdd6a['body']['id'],_0x2bdd6a[_0xf84ef1('0x69')][_0xf84ef1('0x10')]=!![],_0x2bdd6a[_0xf84ef1('0x69')]['readAt']=moment()[_0xf84ef1('0x1d')](_0xf84ef1('0x67')),_0x2bdd6a[_0xf84ef1('0x69')][_0xf84ef1('0x33')]=_0x2bdd6a[_0xf84ef1('0x69')][_0xf84ef1('0x33')]||_0x2bdd6a[_0xf84ef1('0x56')]['id'],db[_0xf84ef1('0x23')][_0xf84ef1('0x43')]({'where':{'id':_0x2bdd6a[_0xf84ef1('0x7a')]['id'],'UserId':null},'include':[{'model':db[_0xf84ef1('0x75')],'as':_0xf84ef1('0x84')}]})['then'](handleEntityNotFound(_0x256f37,null))[_0xf84ef1('0x38')](saveUpdates(_0x2bdd6a['body'],null))[_0xf84ef1('0x38')](function(_0x4d6cd5){const _0x181836=_0xf84ef1;if(_0x4d6cd5)return _0x1c1764[_0x181836('0x2a')]=_0x4d6cd5[_0x181836('0xd')]({'plain':!![]}),db[_0x181836('0x2')][_0x181836('0x43')]({'where':{'id':_0x4d6cd5['MailInteractionId']}});return null;})[_0xf84ef1('0x38')](handleEntityNotFound(_0x256f37,null))[_0xf84ef1('0x38')](function(_0x4d5fc0){const _0x34d46b=_0xf84ef1;if(_0x4d5fc0)return _0x4d5fc0['update']({'UserId':_0x2bdd6a['body']['UserId'],'read1stAt':_[_0x34d46b('0x41')](_0x4d5fc0[_0x34d46b('0xf')])?moment()[_0x34d46b('0x1d')](_0x34d46b('0x67')):undefined});return null;})[_0xf84ef1('0x38')](function(_0x9f93ba){const _0x16979a=_0xf84ef1;if(_0x9f93ba)return _0x1c1764[_0x16979a('0x8')]=_0x9f93ba['get']({'plain':!![]}),interaction_log[_0x16979a('0x73')](_0x16979a('0x12'),_0x2bdd6a[_0x16979a('0x56')]['id'],_0x2bdd6a['user'][_0x16979a('0x4')],_0x2bdd6a['user'][_0x16979a('0x6')],_0x1c1764['interaction']['id'],_0x2bdd6a['body']?JSON[_0x16979a('0x29')](_0x2bdd6a[_0x16979a('0x69')]):_0x16979a('0x61')),respondWithRpcPromise(_0x16979a('0x2f'),_0x16979a('0x11'),_0x1c1764);return null;})[_0xf84ef1('0x38')](function(_0x1642eb){const _0xbdfc23=_0xf84ef1;if(_0x1642eb){if(_0x2bdd6a[_0xbdfc23('0x69')][_0xbdfc23('0x63')])return _0x1c1764['message'][_0xbdfc23('0x4f')]=util[_0xbdfc23('0x1d')](_0xbdfc23('0x79'),_0x2bdd6a[_0xbdfc23('0x56')][_0xbdfc23('0x4')]),_0x1c1764[_0xbdfc23('0x2a')]['channel']=_0x1c1764[_0xbdfc23('0x3d')],_0x1c1764[_0xbdfc23('0x2a')][_0xbdfc23('0x27')]=_0xbdfc23('0x5a'),respondWithRpcPromise('EventManager','EventManager',{'event':_0xbdfc23('0x8a'),'message':_0x1c1764[_0xbdfc23('0x2a')]},client9002)[_0xbdfc23('0x38')](function(){return _0x1c1764;});return _0x1c1764;}return null;})['then'](respondWithResult(_0x256f37,null))[_0xf84ef1('0x37')](handleError(_0x256f37,null));},exports['reject']=function(_0x31eaaa,_0x301dff){const _0x11cd1e=_0x311749,_0x2406e2={'agent':{},'channel':_0x11cd1e('0x6a')};return _0x31eaaa[_0x11cd1e('0x69')]['id']&&delete _0x31eaaa[_0x11cd1e('0x69')]['id'],_0x31eaaa[_0x11cd1e('0x69')][_0x11cd1e('0x33')]=_0x31eaaa[_0x11cd1e('0x69')][_0x11cd1e('0x33')]||_0x31eaaa[_0x11cd1e('0x56')]['id'],_0x2406e2['agent']['id']=_0x31eaaa[_0x11cd1e('0x69')]['UserId'],db[_0x11cd1e('0x23')][_0x11cd1e('0x43')]({'where':{'id':_0x31eaaa[_0x11cd1e('0x7a')]['id'],'UserId':null}})[_0x11cd1e('0x38')](handleEntityNotFound(_0x301dff,null))[_0x11cd1e('0x38')](function(_0x51d31d){const _0x63e3dd=_0x11cd1e;if(_0x51d31d)return _0x2406e2[_0x63e3dd('0x2a')]=_0x51d31d[_0x63e3dd('0xd')]({'plain':!![]}),db[_0x63e3dd('0x2')][_0x63e3dd('0x43')]({'where':{'id':_0x51d31d['MailInteractionId']}});return null;})[_0x11cd1e('0x38')](handleEntityNotFound(_0x301dff,null))[_0x11cd1e('0x38')](function(_0x1745a8){const _0x1cc5fc=_0x11cd1e;if(_0x1745a8)return _0x2406e2['interaction']=_0x1745a8['get']({'plain':!![]}),interaction_log[_0x1cc5fc('0x73')]('[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x31eaaa[_0x1cc5fc('0x56')]['id'],_0x31eaaa[_0x1cc5fc('0x56')][_0x1cc5fc('0x4')],_0x31eaaa[_0x1cc5fc('0x56')][_0x1cc5fc('0x6')],_0x2406e2[_0x1cc5fc('0x8')]['id'],_0x31eaaa[_0x1cc5fc('0x69')]?JSON[_0x1cc5fc('0x29')](_0x31eaaa['body']):'null'),respondWithRpcPromise(_0x1cc5fc('0x5d'),_0x1cc5fc('0x42'),_0x2406e2);return null;})[_0x11cd1e('0x38')](function(_0x3639ca){const _0x427b46=_0x11cd1e;if(_0x3639ca)return _0x3639ca[_0x427b46('0x2a')]['interface']=util[_0x427b46('0x1d')](_0x427b46('0x79'),_0x31eaaa[_0x427b46('0x56')][_0x427b46('0x4')]),_0x3639ca[_0x427b46('0x2a')][_0x427b46('0x3d')]=_0x2406e2[_0x427b46('0x3d')],_0x3639ca[_0x427b46('0x2a')][_0x427b46('0x27')]=_0x427b46('0x31'),respondWithRpcPromise(_0x427b46('0x1f'),_0x427b46('0x1f'),{'event':'rejectmessage','message':_0x3639ca['message']},client9002),_0x2406e2;return null;})[_0x11cd1e('0x38')](respondWithResult(_0x301dff,null))[_0x11cd1e('0x37')](handleError(_0x301dff,null));},exports[_0x311749('0x8f')]=function(_0x5da60b,_0xfedcf1){const _0x58be15=_0x311749,_0x347ff0=moment()[_0x58be15('0x5b')]()[_0x58be15('0x6e')](),_0x326b8a=path[_0x58be15('0x4c')](config[_0x58be15('0x8c')],_0x58be15('0x1e'),_0x58be15('0x44'),'tmp'),_0x59a156=path[_0x58be15('0x4c')](config[_0x58be15('0x8c')],'server',_0x58be15('0x44'),_0x58be15('0x28')),_0x3077eb=util[_0x58be15('0x1d')](_0x58be15('0x58'),_0x347ff0);return db[_0x58be15('0x23')][_0x58be15('0x43')]({'where':{'id':_0x5da60b[_0x58be15('0x7a')]['id']},'attributes':['id','body','from','to','cc',_0x58be15('0x60'),_0x58be15('0x90'),_0x58be15('0x3f')],'include':_0x5da60b[_0x58be15('0x5c')][_0x58be15('0x28')]?[{'model':db[_0x58be15('0xc')],'as':'Attachments'}]:undefined})['then'](handleEntityNotFound(_0xfedcf1,null))['then'](function(_0x30f0d9){const _0x2bcae1=_0x58be15;if(_0x30f0d9){const _0x2288fc=_0x30f0d9,_0x5db6f2={'from':_0x2288fc[_0x2bcae1('0x2e')],'to':_0x2288fc['to'],'subject':_0x2288fc['subject'],'html':_0x2288fc[_0x2bcae1('0x69')],'headers':{'Date':moment(_0x2288fc[_0x2bcae1('0x3f')])[_0x2bcae1('0x1d')](_0x2bcae1('0x7d'))},'attachments':[]};return _0x30f0d9['cc']&&(_0x5db6f2[_0x2bcae1('0x8b')]['Cc']=_0x30f0d9['cc']),_0x30f0d9[_0x2bcae1('0x60')]&&(_0x5db6f2[_0x2bcae1('0x8b')][_0x2bcae1('0x76')]=_0x30f0d9[_0x2bcae1('0x60')]),new Promise(function(_0x1869d4,_0x34f1f6){const _0x232e09=_0x2bcae1;if(_0x30f0d9[_0x232e09('0x6c')])for(let _0x2806a9=0x0;_0x2806a9<_0x30f0d9[_0x232e09('0x6c')]['length'];_0x2806a9++){const _0x1efba3=_0x30f0d9[_0x232e09('0x6c')][_0x2806a9],_0x2d4412=path[_0x232e09('0x4c')](_0x59a156,_0x1efba3[_0x232e09('0x92')]);fs[_0x232e09('0x71')](_0x2d4412)&&_0x5db6f2[_0x232e09('0x28')]['push']({'name':_0x1efba3[_0x232e09('0x4')],'contentType':_0x1efba3[_0x232e09('0x6d')],'data':fs[_0x232e09('0x86')](_0x2d4412)});}emlformat[_0x232e09('0x53')](_0x5db6f2,function(_0x5de9c4,_0x217c6d){const _0x1d874f=_0x232e09;if(_0x5de9c4)return _0x34f1f6(_0x5de9c4);return fs[_0x1d874f('0x35')](path[_0x1d874f('0x4c')](_0x326b8a,_0x3077eb),_0x217c6d),_0x1869d4(_0x217c6d);});});}})[_0x58be15('0x38')](function(_0x49fc2c){const _0x3da428=_0x58be15;if(_0x49fc2c)return _0xfedcf1['download'](path[_0x3da428('0x4c')](_0x326b8a,_0x3077eb),_0x3077eb,function(_0x39646e){const _0x1129b6=_0x3da428;_0x39646e?console[_0x1129b6('0x91')](_0x1129b6('0x85'),_0x39646e):fs['unlinkSync'](path[_0x1129b6('0x4c')](_0x326b8a,_0x3077eb));});})[_0x58be15('0x37')](handleError(_0xfedcf1,null));}; \ No newline at end of file +const a413_0xe8d7=['format','interface','manual','MailMessage,\x20%s,\x20%s','user','MailServerOut','updatedAt','MailMessage','join','service','event','fieldName','Content-Range','set','SendMail','null','CmList','count','VIRTUAL','error','stringify','nolimit','update','MailInteraction','keys','Contacts','message','show','mail-interactions','mail','type','server','attributes','destroy','existsSync','debug','UserId','defaults','../../config/logger','offset','reject','message-%s.eml','headers','findOne','Bcc','sequelize','order','name','model','err','unlinkSync','../../mysqldb','where','YYYY-MM-DD\x20HH:mm:ss','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','filters','AcceptMessage','length','filter','rejectMessage','index','role','send','DESC','agent','download','lodash','../../rediscache','host','push','then','ListId','port','bcc','acceptmessage','http','params','sort','jayson/promise','CmContact','query','catch','map','end','isNil','createdAt','secure','from','describe','pick','undefined','acceptMessage','basename','rejectmessage','info','MailInteractionId','writeFileSync','accept','limit','files','status','../../components/parsers/qs','secret','code','Smtp','interaction','options','create','util','findAll','request\x20sent','root','readAt','build','Attachments','get','api','server/files/attachments','request','unix','EventManager','stack','direction','pass','List\x20not\x20found','includeAll','intersection','SIP/%s','merge','attachments','json','moment','read','register','client','body','include','out','path','toString','log','channel','fields','List'];(function(_0x519071,_0xe8d709){const _0x4093be=function(_0x3a4546){while(--_0x3a4546){_0x519071['push'](_0x519071['shift']());}};_0x4093be(++_0xe8d709);}(a413_0xe8d7,0xf4));const a413_0x4093=function(_0x519071,_0xe8d709){_0x519071=_0x519071-0x0;let _0x4093be=a413_0xe8d7[_0x519071];return _0x4093be;};const _0x26b451=a413_0x4093;'use strict';const emlformat=require('eml-format'),moment=require(_0x26b451('0x1f')),util=require(_0x26b451('0x8')),path=require(_0x26b451('0x26')),fs=require('fs'),_=require(_0x26b451('0x6e')),{getSocket}=require(_0x26b451('0x6f')),socket=getSocket(),qs=require(_0x26b451('0x1')),logger=require(_0x26b451('0x52'))(_0x26b451('0x10')),config=require('../../config/environment'),interaction_log=require(_0x26b451('0x52'))(_0x26b451('0x48')),db=require(_0x26b451('0x5f'))['db'],{Op}=require(_0x26b451('0x59'));require('./mailMessage.socket')[_0x26b451('0x21')](socket);const jayson=require(_0x26b451('0x7a')),client=jayson[_0x26b451('0x22')][_0x26b451('0x77')]({'port':0x232c}),client9003=jayson[_0x26b451('0x22')][_0x26b451('0x77')]({'port':0x232b}),client9002=jayson[_0x26b451('0x22')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3a4546,_0xffc2b1,_0x1bc426,_0x45a271){return new Promise(function(_0x22d367,_0x3795b3){const _0x57f24d=a413_0x4093,_0x40002b=_0x45a271||client;return _0x40002b[_0x57f24d('0x12')](_0x3a4546,_0x1bc426)[_0x57f24d('0x72')](function(_0x43d64f){const _0x987555=_0x57f24d;logger[_0x987555('0x8a')](_0x987555('0x2f'),_0xffc2b1,_0x987555('0xa')),logger[_0x987555('0x4f')]('MailMessage,\x20%s,\x20%s,\x20%s',_0xffc2b1,_0x987555('0xa'),JSON[_0x987555('0x40')](_0x43d64f));if(_0x43d64f[_0x987555('0x3f')]){if(_0x43d64f[_0x987555('0x3f')][_0x987555('0x3')]===0x1f4)return logger['error'](_0x987555('0x2f'),_0xffc2b1,_0x43d64f[_0x987555('0x3f')][_0x987555('0x46')]),_0x3795b3(_0x43d64f['error'][_0x987555('0x46')]);return logger[_0x987555('0x3f')](_0x987555('0x2f'),_0xffc2b1,_0x43d64f[_0x987555('0x3f')][_0x987555('0x46')]),_0x22d367(_0x43d64f['error'][_0x987555('0x46')]);}else logger[_0x987555('0x8a')]('MailMessage,\x20%s,\x20%s',_0xffc2b1,_0x987555('0xa')),_0x22d367(_0x43d64f['result'][_0x987555('0x46')]);})['catch'](function(_0x264061){const _0x5e5507=_0x57f24d;logger[_0x5e5507('0x3f')](_0x5e5507('0x2f'),_0xffc2b1,_0x264061),_0x3795b3(_0x264061);});});}function respondWithResult(_0x4d8d5a,_0x39e8f4){return _0x39e8f4=_0x39e8f4||0xc8,function(_0x433d3d){const _0x4ef800=a413_0x4093;if(_0x433d3d)return _0x4d8d5a[_0x4ef800('0x0')](_0x39e8f4)[_0x4ef800('0x1e')](_0x433d3d);};}function respondWithFilteredResult(_0x12dd00,_0x2a6da3){return function(_0x437810){const _0x37de9e=a413_0x4093;if(_0x437810){const _0x2c7795=_0x437810[_0x37de9e('0x3d')],_0x7322f4=_0x2a6da3['offset'];let _0x3d9b2d=_0x2a6da3[_0x37de9e('0x53')]+_0x2a6da3[_0x37de9e('0x8e')],_0x22e888;return _0x3d9b2d>=_0x2c7795?(_0x3d9b2d=_0x2c7795,_0x22e888=0xc8):_0x22e888=0xce,_0x12dd00[_0x37de9e('0x0')](_0x22e888),_0x12dd00[_0x37de9e('0x39')](_0x37de9e('0x38'),_0x7322f4+'-'+_0x3d9b2d+'/'+_0x2c7795)['json'](_0x437810);}return null;};}function saveUpdates(_0x50dd24){return function(_0x4ba3b4){const _0x5e7235=a413_0x4093;if(_0x4ba3b4)return _0x4ba3b4['update'](_0x50dd24)[_0x5e7235('0x72')](function(_0x5cfcca){return _0x5cfcca;});return null;};}function removeEntity(_0x339a92){return function(_0x501f51){const _0x3d2c21=a413_0x4093;if(_0x501f51)return _0x501f51[_0x3d2c21('0x4d')]()[_0x3d2c21('0x72')](function(){const _0x5f31bd=_0x3d2c21;_0x339a92[_0x5f31bd('0x0')](0xcc)[_0x5f31bd('0x7f')]();});};}function handleEntityNotFound(_0x505b81){return function(_0x289242){return!_0x289242&&_0x505b81['sendStatus'](0x194),_0x289242;};}function handleError(_0x1c5b1a,_0x8c7167){return _0x8c7167=_0x8c7167||0x1f4,function(_0x608287){const _0x3ae962=a413_0x4093;logger[_0x3ae962('0x3f')](_0x608287[_0x3ae962('0x15')]),_0x608287[_0x3ae962('0x5b')]&&delete _0x608287[_0x3ae962('0x5b')],_0x1c5b1a[_0x3ae962('0x0')](_0x8c7167)[_0x3ae962('0x6a')](_0x608287);};}exports[_0x26b451('0x68')]=function(_0x58f555,_0x1fce20){const _0x3cb40b=_0x26b451;let _0x275000={};const _0x3d3f44={},_0x549ab7={'count':0x0,'rows':[]},_0x1015ae=_[_0x3cb40b('0x7e')](db[_0x3cb40b('0x33')]['rawAttributes'],function(_0x2e4320){const _0x4cc5b1=_0x3cb40b;return{'name':_0x2e4320[_0x4cc5b1('0x37')],'type':_0x2e4320[_0x4cc5b1('0x4a')]['key']};});_0x3d3f44['model']=_[_0x3cb40b('0x7e')](_0x1015ae,_0x3cb40b('0x5b')),_0x3d3f44[_0x3cb40b('0x7c')]=_[_0x3cb40b('0x44')](_0x58f555['query']),_0x3d3f44['filters']=_[_0x3cb40b('0x1a')](_0x3d3f44[_0x3cb40b('0x5c')],_0x3d3f44[_0x3cb40b('0x7c')]),_0x275000[_0x3cb40b('0x4c')]=_[_0x3cb40b('0x1a')](_0x3d3f44[_0x3cb40b('0x5c')],qs[_0x3cb40b('0x2a')](_0x58f555[_0x3cb40b('0x7c')][_0x3cb40b('0x2a')])),_0x275000[_0x3cb40b('0x4c')]=_0x275000['attributes']['length']?_0x275000['attributes']:_0x3d3f44[_0x3cb40b('0x5c')];typeof _0x58f555[_0x3cb40b('0x7c')][_0x3cb40b('0x41')]===_0x3cb40b('0x86')&&(_0x275000[_0x3cb40b('0x8e')]=qs[_0x3cb40b('0x8e')](_0x58f555[_0x3cb40b('0x7c')][_0x3cb40b('0x8e')]),_0x275000['offset']=qs[_0x3cb40b('0x53')](_0x58f555[_0x3cb40b('0x7c')][_0x3cb40b('0x53')]));_0x275000[_0x3cb40b('0x5a')]=qs[_0x3cb40b('0x79')](_0x58f555[_0x3cb40b('0x7c')]['sort']),_0x275000[_0x3cb40b('0x60')]=qs[_0x3cb40b('0x63')](_[_0x3cb40b('0x85')](_0x58f555[_0x3cb40b('0x7c')],_0x3d3f44[_0x3cb40b('0x63')]),_0x1015ae);_0x58f555[_0x3cb40b('0x7c')]['filter']&&(_0x275000[_0x3cb40b('0x60')]=_['merge'](_0x275000[_0x3cb40b('0x60')],{[Op['or']]:_['map'](_0x1015ae,function(_0x153fbe){const _0x220442=_0x3cb40b;if(_0x153fbe[_0x220442('0x4a')]!==_0x220442('0x3e')){const _0x50c36e={};return _0x50c36e[_0x153fbe[_0x220442('0x5b')]]={[Op['like']]:'%'+_0x58f555[_0x220442('0x7c')][_0x220442('0x66')]+'%'},_0x50c36e;}})}));_0x275000=_[_0x3cb40b('0x1c')]({},_0x275000,_0x58f555[_0x3cb40b('0x6')]);const _0x54d9c1={'where':_0x275000[_0x3cb40b('0x60')]};return db[_0x3cb40b('0x33')][_0x3cb40b('0x3d')](_0x54d9c1)[_0x3cb40b('0x72')](function(_0x1bc4be){const _0x561679=_0x3cb40b;return _0x549ab7['count']=_0x1bc4be,_0x58f555[_0x561679('0x7c')][_0x561679('0x19')]&&(_0x275000[_0x561679('0x24')]=[{'all':!![]}]),db[_0x561679('0x33')][_0x561679('0x9')](_0x275000);})[_0x3cb40b('0x72')](function(_0x2e50){return _0x549ab7['rows']=_0x2e50,_0x549ab7;})[_0x3cb40b('0x72')](respondWithFilteredResult(_0x1fce20,_0x275000))['catch'](handleError(_0x1fce20,null));},exports[_0x26b451('0x47')]=function(_0x3de6d9,_0x46d0d2){const _0x352bfb=_0x26b451;let _0x1412c4={'raw':!![],'where':{'id':_0x3de6d9[_0x352bfb('0x78')]['id']}};const _0x1d226c={};return _0x1d226c[_0x352bfb('0x5c')]=_[_0x352bfb('0x44')](db['MailMessage']['rawAttributes']),_0x1d226c[_0x352bfb('0x7c')]=_[_0x352bfb('0x44')](_0x3de6d9[_0x352bfb('0x7c')]),_0x1d226c[_0x352bfb('0x63')]=_[_0x352bfb('0x1a')](_0x1d226c[_0x352bfb('0x5c')],_0x1d226c['query']),_0x1412c4[_0x352bfb('0x4c')]=_[_0x352bfb('0x1a')](_0x1d226c[_0x352bfb('0x5c')],qs['fields'](_0x3de6d9['query'][_0x352bfb('0x2a')])),_0x1412c4[_0x352bfb('0x4c')]=_0x1412c4['attributes'][_0x352bfb('0x65')]?_0x1412c4['attributes']:_0x1d226c['model'],_0x3de6d9['query'][_0x352bfb('0x19')]&&(_0x1412c4[_0x352bfb('0x24')]=[{'all':!![]}]),_0x1412c4=_['merge']({},_0x1412c4,_0x3de6d9['options']),db[_0x352bfb('0x33')][_0x352bfb('0x57')](_0x1412c4)['then'](handleEntityNotFound(_0x46d0d2,null))[_0x352bfb('0x72')](respondWithResult(_0x46d0d2,null))[_0x352bfb('0x7d')](handleError(_0x46d0d2,null));},exports[_0x26b451('0x42')]=function(_0x36dbb0,_0xdb4c6a){const _0x38a3a8=_0x26b451;return _0x36dbb0['body']['id']&&delete _0x36dbb0[_0x38a3a8('0x23')]['id'],db[_0x38a3a8('0x33')][_0x38a3a8('0x57')]({'where':{'id':_0x36dbb0['params']['id']}})[_0x38a3a8('0x72')](handleEntityNotFound(_0xdb4c6a,null))[_0x38a3a8('0x72')](saveUpdates(_0x36dbb0['body'],null))['then'](respondWithResult(_0xdb4c6a,null))[_0x38a3a8('0x7d')](handleError(_0xdb4c6a,null));},exports['destroy']=function(_0x2a074f,_0xd71b5a){const _0x4d1937=_0x26b451;return db['MailMessage'][_0x4d1937('0x57')]({'where':{'id':_0x2a074f[_0x4d1937('0x78')]['id']}})['then'](handleEntityNotFound(_0xd71b5a,null))[_0x4d1937('0x72')](removeEntity(_0xd71b5a,null))[_0x4d1937('0x7d')](handleError(_0xd71b5a,null));},exports[_0x26b451('0x84')]=function(_0x407ec9,_0x2dc445){const _0x22658e=_0x26b451;return db['MailMessage'][_0x22658e('0x84')]()[_0x22658e('0x72')](respondWithResult(_0x2dc445,null))[_0x22658e('0x7d')](handleError(_0x2dc445,null));},exports['create']=function(_0x821632,_0x585809){const _0x590636=_0x26b451;return db[_0x590636('0x33')][_0x590636('0x7')](_0x821632[_0x590636('0x23')])[_0x590636('0x72')](function(_0x48249a){const _0x4e8fdc=_0x590636;if(_0x48249a){if(_0x48249a[_0x4e8fdc('0x16')]===_0x4e8fdc('0x25')&&!_0x48249a[_0x4e8fdc('0x2')]){let _0x14b4d7,_0x185ef7,_0x5e5b5d;return _0x821632[_0x4e8fdc('0x23')]['to']&&(_0x185ef7=_0x821632[_0x4e8fdc('0x23')]['to']['split'](',')[0x0]),db['MailAccount']['findOne']({'where':{'id':_0x48249a['MailAccountId']},'include':[{'model':db[_0x4e8fdc('0x3c')],'as':_0x4e8fdc('0x2b'),'include':[{'model':db[_0x4e8fdc('0x7b')],'as':_0x4e8fdc('0x45'),'where':{'email':_0x185ef7},'limit':0x1,'order':[[_0x4e8fdc('0x32'),_0x4e8fdc('0x6b')]]}]},{'model':db[_0x4e8fdc('0x31')],'as':'Smtp','raw':!![]}]})[_0x4e8fdc('0x72')](function(_0x3d59c1){const _0x5315cb=_0x4e8fdc;_0x14b4d7=_0x3d59c1;if(_0x14b4d7&&_0x14b4d7[_0x5315cb('0x4')]){const _0x2585e0={'tls':{'rejectUnauthorized':![]}};_['isNil'](_0x14b4d7[_0x5315cb('0x4')]['service'])?(_0x2585e0[_0x5315cb('0x70')]=_0x14b4d7['Smtp'][_0x5315cb('0x70')],_0x2585e0[_0x5315cb('0x74')]=_0x14b4d7[_0x5315cb('0x4')][_0x5315cb('0x74')],_0x2585e0['secure']=_0x14b4d7[_0x5315cb('0x4')][_0x5315cb('0x82')],_0x14b4d7[_0x5315cb('0x4')]['authentication']&&(_0x2585e0['auth']={'user':_0x14b4d7[_0x5315cb('0x4')][_0x5315cb('0x30')],'pass':_0x14b4d7['Smtp'][_0x5315cb('0x17')]})):(_0x2585e0[_0x5315cb('0x35')]=_0x14b4d7[_0x5315cb('0x4')]['service'],_0x2585e0['auth']={'user':_0x14b4d7['Smtp'][_0x5315cb('0x30')],'pass':_0x14b4d7[_0x5315cb('0x4')][_0x5315cb('0x17')]},_0x2585e0['secure']=_0x14b4d7[_0x5315cb('0x4')][_0x5315cb('0x82')]);if(_0x821632['body'][_0x5315cb('0x1d')]&&_0x821632['body'][_0x5315cb('0x1d')][_0x5315cb('0x65')])for(let _0x2b117e=0x0;_0x2b117e<_0x821632[_0x5315cb('0x23')][_0x5315cb('0x1d')]['length'];_0x2b117e+=0x1){_0x821632[_0x5315cb('0x23')][_0x5315cb('0x1d')][_0x2b117e]={'filename':_0x821632[_0x5315cb('0x23')][_0x5315cb('0x1d')][_0x2b117e][_0x5315cb('0x5b')],'path':path[_0x5315cb('0x34')](config[_0x5315cb('0xb')],_0x5315cb('0x11'),_0x821632[_0x5315cb('0x23')][_0x5315cb('0x1d')][_0x2b117e]['basename'])};}_0x5e5b5d={'account':_0x2585e0,'message':_0x821632['body']};return;}})[_0x4e8fdc('0x72')](function(){const _0x531088=_0x4e8fdc;if(_0x14b4d7[_0x531088('0x2b')])return _0x14b4d7[_0x531088('0x2b')][_0x531088('0x45')][_0x531088('0x65')]?_0x14b4d7[_0x531088('0x2b')]['Contacts'][0x0]:db[_0x531088('0x7b')]['create'](_[_0x531088('0x51')](_0x821632[_0x531088('0x23')],{'firstName':_0x821632[_0x531088('0x23')]['to'],'email':_0x821632[_0x531088('0x23')]['to'],'phone':_0x821632[_0x531088('0x23')]['to'],'ListId':_0x14b4d7[_0x531088('0x73')]}));else throw new Error(_0x531088('0x18'));})['then'](function(){const _0x3f6736=_0x4e8fdc;if(_0x5e5b5d)return respondWithRpcPromise(_0x3f6736('0x3a'),'sendMail',_0x5e5b5d,client9003)[_0x3f6736('0x72')](function(_0x55b98c){const _0xd73571=_0x3f6736;return _0x48249a['update']({'read':!![],'messageId':_0x55b98c['messageId'],'sentAt':moment()[_0xd73571('0x2c')](_0xd73571('0x61'))});})[_0x3f6736('0x7d')](function(_0x4b5ac0){const _0x53a1a7=_0x3f6736;return logger[_0x53a1a7('0x3f')]('%s',JSON['stringify'](_0x4b5ac0)),_0x48249a;});return _0x48249a;});}return _0x48249a;}})[_0x590636('0x72')](respondWithResult(_0x585809,0xc9))['catch'](handleError(_0x585809,null));},exports[_0x26b451('0x8d')]=function(_0x4062ec,_0x53f2d7){const _0x4a46aa=_0x26b451,_0xf57b5b={'channel':'mail'};return _0x4062ec[_0x4a46aa('0x23')]['id']&&delete _0x4062ec[_0x4a46aa('0x23')]['id'],_0x4062ec[_0x4a46aa('0x23')][_0x4a46aa('0x20')]=!![],_0x4062ec[_0x4a46aa('0x23')][_0x4a46aa('0xc')]=moment()[_0x4a46aa('0x2c')](_0x4a46aa('0x61')),_0x4062ec['body'][_0x4a46aa('0x50')]=_0x4062ec[_0x4a46aa('0x23')][_0x4a46aa('0x50')]||_0x4062ec['user']['id'],db[_0x4a46aa('0x33')]['findOne']({'where':{'id':_0x4062ec[_0x4a46aa('0x78')]['id'],'UserId':null},'include':[{'model':db[_0x4a46aa('0x7b')],'as':'Contact'}]})['then'](handleEntityNotFound(_0x53f2d7,null))[_0x4a46aa('0x72')](saveUpdates(_0x4062ec[_0x4a46aa('0x23')],null))[_0x4a46aa('0x72')](function(_0x590871){const _0x71d89f=_0x4a46aa;if(_0x590871)return _0xf57b5b[_0x71d89f('0x46')]=_0x590871[_0x71d89f('0xf')]({'plain':!![]}),db[_0x71d89f('0x43')]['findOne']({'where':{'id':_0x590871[_0x71d89f('0x8b')]}});return null;})['then'](handleEntityNotFound(_0x53f2d7,null))[_0x4a46aa('0x72')](function(_0x111134){const _0x1cadd3=_0x4a46aa;if(_0x111134)return _0x111134[_0x1cadd3('0x42')]({'UserId':_0x4062ec[_0x1cadd3('0x23')][_0x1cadd3('0x50')],'read1stAt':_[_0x1cadd3('0x80')](_0x111134['read1stAt'])?moment()['format'](_0x1cadd3('0x61')):undefined});return null;})[_0x4a46aa('0x72')](function(_0x4fe0e8){const _0x13429e=_0x4a46aa;if(_0x4fe0e8)return _0xf57b5b[_0x13429e('0x5')]=_0x4fe0e8[_0x13429e('0xf')]({'plain':!![]}),interaction_log['info'](_0x13429e('0x62'),_0x4062ec[_0x13429e('0x30')]['id'],_0x4062ec[_0x13429e('0x30')][_0x13429e('0x5b')],_0x4062ec['user'][_0x13429e('0x69')],_0xf57b5b[_0x13429e('0x5')]['id'],_0x4062ec[_0x13429e('0x23')]?JSON['stringify'](_0x4062ec[_0x13429e('0x23')]):'null'),respondWithRpcPromise(_0x13429e('0x64'),_0x13429e('0x87'),_0xf57b5b);return null;})[_0x4a46aa('0x72')](function(_0x3dbef4){const _0x44641a=_0x4a46aa;if(_0x3dbef4){if(_0x4062ec[_0x44641a('0x23')][_0x44641a('0x2e')])return _0xf57b5b['message'][_0x44641a('0x2d')]=util[_0x44641a('0x2c')](_0x44641a('0x1b'),_0x4062ec[_0x44641a('0x30')]['name']),_0xf57b5b[_0x44641a('0x46')][_0x44641a('0x29')]=_0xf57b5b[_0x44641a('0x29')],_0xf57b5b['message']['event']=_0x44641a('0x8d'),respondWithRpcPromise(_0x44641a('0x14'),'EventManager',{'event':_0x44641a('0x76'),'message':_0xf57b5b[_0x44641a('0x46')]},client9002)['then'](function(){return _0xf57b5b;});return _0xf57b5b;}return null;})[_0x4a46aa('0x72')](respondWithResult(_0x53f2d7,null))[_0x4a46aa('0x7d')](handleError(_0x53f2d7,null));},exports['reject']=function(_0x2f0f13,_0x784b1d){const _0x15e792=_0x26b451,_0x3e1b40={'agent':{},'channel':_0x15e792('0x49')};return _0x2f0f13[_0x15e792('0x23')]['id']&&delete _0x2f0f13[_0x15e792('0x23')]['id'],_0x2f0f13[_0x15e792('0x23')][_0x15e792('0x50')]=_0x2f0f13['body'][_0x15e792('0x50')]||_0x2f0f13[_0x15e792('0x30')]['id'],_0x3e1b40[_0x15e792('0x6c')]['id']=_0x2f0f13[_0x15e792('0x23')][_0x15e792('0x50')],db[_0x15e792('0x33')]['findOne']({'where':{'id':_0x2f0f13[_0x15e792('0x78')]['id'],'UserId':null}})[_0x15e792('0x72')](handleEntityNotFound(_0x784b1d,null))[_0x15e792('0x72')](function(_0x532f04){const _0x26d019=_0x15e792;if(_0x532f04)return _0x3e1b40['message']=_0x532f04[_0x26d019('0xf')]({'plain':!![]}),db[_0x26d019('0x43')]['findOne']({'where':{'id':_0x532f04[_0x26d019('0x8b')]}});return null;})[_0x15e792('0x72')](handleEntityNotFound(_0x784b1d,null))['then'](function(_0x4deb56){const _0x3aec23=_0x15e792;if(_0x4deb56)return _0x3e1b40[_0x3aec23('0x5')]=_0x4deb56[_0x3aec23('0xf')]({'plain':!![]}),interaction_log[_0x3aec23('0x8a')]('[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x2f0f13[_0x3aec23('0x30')]['id'],_0x2f0f13[_0x3aec23('0x30')][_0x3aec23('0x5b')],_0x2f0f13[_0x3aec23('0x30')]['role'],_0x3e1b40[_0x3aec23('0x5')]['id'],_0x2f0f13[_0x3aec23('0x23')]?JSON[_0x3aec23('0x40')](_0x2f0f13[_0x3aec23('0x23')]):_0x3aec23('0x3b')),respondWithRpcPromise('RejectMessage',_0x3aec23('0x67'),_0x3e1b40);return null;})[_0x15e792('0x72')](function(_0x59e1ce){const _0xa7844a=_0x15e792;if(_0x59e1ce)return _0x59e1ce[_0xa7844a('0x46')][_0xa7844a('0x2d')]=util[_0xa7844a('0x2c')](_0xa7844a('0x1b'),_0x2f0f13['user']['name']),_0x59e1ce[_0xa7844a('0x46')][_0xa7844a('0x29')]=_0x3e1b40['channel'],_0x59e1ce['message'][_0xa7844a('0x36')]=_0xa7844a('0x54'),respondWithRpcPromise(_0xa7844a('0x14'),_0xa7844a('0x14'),{'event':_0xa7844a('0x89'),'message':_0x59e1ce[_0xa7844a('0x46')]},client9002),_0x3e1b40;return null;})[_0x15e792('0x72')](respondWithResult(_0x784b1d,null))[_0x15e792('0x7d')](handleError(_0x784b1d,null));},exports[_0x26b451('0x6d')]=function(_0x862c88,_0x4a3e88){const _0x4cd007=_0x26b451,_0x489215=moment()[_0x4cd007('0x13')]()[_0x4cd007('0x27')](),_0x14a88b=path['join'](config[_0x4cd007('0xb')],_0x4cd007('0x4b'),_0x4cd007('0x8f'),'tmp'),_0x5acc29=path[_0x4cd007('0x34')](config[_0x4cd007('0xb')],_0x4cd007('0x4b'),_0x4cd007('0x8f'),_0x4cd007('0x1d')),_0x27926b=util[_0x4cd007('0x2c')](_0x4cd007('0x55'),_0x489215);return db[_0x4cd007('0x33')]['findOne']({'where':{'id':_0x862c88[_0x4cd007('0x78')]['id']},'attributes':['id',_0x4cd007('0x23'),_0x4cd007('0x83'),'to','cc',_0x4cd007('0x75'),'subject',_0x4cd007('0x81')],'include':_0x862c88['query']['attachments']?[{'model':db['Attachment'],'as':_0x4cd007('0xe')}]:undefined})[_0x4cd007('0x72')](handleEntityNotFound(_0x4a3e88,null))['then'](function(_0x1a6793){const _0x2d1d51=_0x4cd007;if(_0x1a6793){const _0x31199c=_0x1a6793,_0x46e701={'from':_0x31199c[_0x2d1d51('0x83')],'to':_0x31199c['to'],'subject':_0x31199c['subject'],'html':_0x31199c[_0x2d1d51('0x23')],'headers':{'Date':moment(_0x31199c['createdAt'])['format']('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x1a6793['cc']&&(_0x46e701['headers']['Cc']=_0x1a6793['cc']),_0x1a6793['bcc']&&(_0x46e701[_0x2d1d51('0x56')][_0x2d1d51('0x58')]=_0x1a6793[_0x2d1d51('0x75')]),new Promise(function(_0x130a3a,_0xfa80fd){const _0x1d13ff=_0x2d1d51;if(_0x1a6793['Attachments'])for(let _0x2cf13f=0x0;_0x2cf13f<_0x1a6793[_0x1d13ff('0xe')][_0x1d13ff('0x65')];_0x2cf13f++){const _0x58683a=_0x1a6793[_0x1d13ff('0xe')][_0x2cf13f],_0x1b8b00=path['join'](_0x5acc29,_0x58683a[_0x1d13ff('0x88')]);fs[_0x1d13ff('0x4e')](_0x1b8b00)&&_0x46e701['attachments'][_0x1d13ff('0x71')]({'name':_0x58683a[_0x1d13ff('0x5b')],'contentType':_0x58683a[_0x1d13ff('0x4a')],'data':fs['readFileSync'](_0x1b8b00)});}emlformat[_0x1d13ff('0xd')](_0x46e701,function(_0x5db704,_0x3655a2){const _0x261c4c=_0x1d13ff;if(_0x5db704)return _0xfa80fd(_0x5db704);return fs[_0x261c4c('0x8c')](path[_0x261c4c('0x34')](_0x14a88b,_0x27926b),_0x3655a2),_0x130a3a(_0x3655a2);});});}})[_0x4cd007('0x72')](function(_0x36d854){const _0x283da0=_0x4cd007;if(_0x36d854)return _0x4a3e88[_0x283da0('0x6d')](path[_0x283da0('0x34')](_0x14a88b,_0x27926b),_0x27926b,function(_0x40984b){const _0x375165=_0x283da0;_0x40984b?console[_0x375165('0x28')](_0x375165('0x5d'),_0x40984b):fs[_0x375165('0x5e')](path[_0x375165('0x34')](_0x14a88b,_0x27926b));});})['catch'](handleError(_0x4a3e88,null));}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.events.js b/server/api/mailMessage/mailMessage.events.js index 3e9b5a7..5de8c7e 100644 --- a/server/api/mailMessage/mailMessage.events.js +++ b/server/api/mailMessage/mailMessage.events.js @@ -1 +1 @@ -const a414_0x1fb9=['setMaxListeners','exports','emit','MailMessage','remove','events','save','../../mysqldb'];(function(_0x2bf050,_0x1fb9f8){const _0x431b5a=function(_0x5121d8){while(--_0x5121d8){_0x2bf050['push'](_0x2bf050['shift']());}};_0x431b5a(++_0x1fb9f8);}(a414_0x1fb9,0x1e2));const a414_0x431b=function(_0x2bf050,_0x1fb9f8){_0x2bf050=_0x2bf050-0x0;let _0x431b5a=a414_0x1fb9[_0x2bf050];return _0x431b5a;};const _0x2e0eae=a414_0x431b;'use strict';const EventEmitter=require(_0x2e0eae('0x3')),MailMessage=require(_0x2e0eae('0x5'))['db'][_0x2e0eae('0x1')],MailMessageEvents=new EventEmitter();MailMessageEvents[_0x2e0eae('0x6')](0x0);const events={'afterCreate':_0x2e0eae('0x4'),'afterUpdate':'update','afterDestroy':_0x2e0eae('0x2')};function emitEvent(_0x5121d8){return function(_0x525fb3){const _0x194a94=a414_0x431b;MailMessageEvents['emit'](_0x5121d8+':'+_0x525fb3['id'],_0x525fb3),MailMessageEvents[_0x194a94('0x0')](_0x5121d8,_0x525fb3);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailMessage['addHook'](e,emitEvent(event));}}module[_0x2e0eae('0x7')]=MailMessageEvents; \ No newline at end of file +const a414_0x1de5=['../../mysqldb','events','addHook','update','undefined','setMaxListeners','emit','save'];(function(_0x257632,_0x1de5a5){const _0x21e504=function(_0x4eef33){while(--_0x4eef33){_0x257632['push'](_0x257632['shift']());}};_0x21e504(++_0x1de5a5);}(a414_0x1de5,0x187));const a414_0x21e5=function(_0x257632,_0x1de5a5){_0x257632=_0x257632-0x0;let _0x21e504=a414_0x1de5[_0x257632];return _0x21e504;};const _0x21d0ab=a414_0x21e5;'use strict';const EventEmitter=require(_0x21d0ab('0x2')),MailMessage=require(_0x21d0ab('0x1'))['db']['MailMessage'],MailMessageEvents=new EventEmitter();MailMessageEvents[_0x21d0ab('0x6')](0x0);const events={'afterCreate':_0x21d0ab('0x0'),'afterUpdate':_0x21d0ab('0x4'),'afterDestroy':'remove'};function emitEvent(_0x4eef33){return function(_0x1485e5){const _0x25a709=a414_0x21e5;MailMessageEvents[_0x25a709('0x7')](_0x4eef33+':'+_0x1485e5['id'],_0x1485e5),MailMessageEvents[_0x25a709('0x7')](_0x4eef33,_0x1485e5);};}for(const e in events){if(typeof events[e]!==_0x21d0ab('0x5')){const event=events[e];MailMessage[_0x21d0ab('0x3')](e,emitEvent(event));}}module['exports']=MailMessageEvents; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.model.js b/server/api/mailMessage/mailMessage.model.js index 597fed1..37857e2 100644 --- a/server/api/mailMessage/mailMessage.model.js +++ b/server/api/mailMessage/mailMessage.model.js @@ -1 +1 @@ -const a415_0x2c2a=['secret','html-to-text','lodash','mail_messages','get','error','define','body','isNil','createdAt','toLowerCase','utf8mb4_unicode_ci','direction','MailInteractionId','MailMessage','exports','subject','catch','messageId','out','models','fti_mail_messages','then','MailInteraction','plainBody','FULLTEXT','findOne','./mailMessage.attributes'];(function(_0x60acf1,_0x2c2a4e){const _0xeecb1d=function(_0x2ba071){while(--_0x2ba071){_0x60acf1['push'](_0x60acf1['shift']());}};_0xeecb1d(++_0x2c2a4e);}(a415_0x2c2a,0xf6));const a415_0xeecb=function(_0x60acf1,_0x2c2a4e){_0x60acf1=_0x60acf1-0x0;let _0xeecb1d=a415_0x2c2a[_0x60acf1];return _0xeecb1d;};const _0xccf77a=a415_0xeecb;'use strict';const _=require(_0xccf77a('0x8')),htmlToText=require(_0xccf77a('0x7')),attributes=require(_0xccf77a('0x5'));module[_0xccf77a('0x15')]=function(_0x2ba071){const _0x5271ae=_0xccf77a,_0x53fe26=_0x2ba071[_0x5271ae('0x1a')],_0x484ece=_0x2ba071[_0x5271ae('0xc')](_0x5271ae('0x14'),attributes,{'tableName':_0x5271ae('0x9'),'paranoid':![],'indexes':[{'name':_0x5271ae('0x18'),'fields':[_0x5271ae('0x18')]},{'name':_0x5271ae('0x1b'),'fields':[_0x5271ae('0x2'),_0x5271ae('0x16')],'type':_0x5271ae('0x3')}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x6b08da){const _0x49f998=_0x5271ae;_0x6b08da['body']&&(_0x6b08da[_0x49f998('0x2')]=htmlToText['fromString'](_0x6b08da[_0x49f998('0xd')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x2616aa){const _0x6390b7=_0x5271ae,_0x432873=_0x2616aa[_0x6390b7('0xa')]({'plain':!![]});(_0x432873[_0x6390b7('0x12')][_0x6390b7('0x10')]()==='in'||_0x432873[_0x6390b7('0x12')]['toLowerCase']()===_0x6390b7('0x19')&&!_0x432873[_0x6390b7('0x6')]&&!_[_0x6390b7('0xe')](_0x432873['UserId']))&&_0x53fe26[_0x6390b7('0x1')][_0x6390b7('0x4')]({'where':{'id':_0x432873[_0x6390b7('0x13')]}})[_0x6390b7('0x0')](function(_0x420e0e){const _0x2c7589=_0x6390b7;_0x420e0e&&_0x420e0e['update']({'lastMsgAt':_0x432873[_0x2c7589('0xf')],'lastMsgDirection':_0x432873[_0x2c7589('0x12')][_0x2c7589('0x10')](),'lastMsgBody':_0x432873[_0x2c7589('0xd')]});})[_0x6390b7('0x17')](function(_0x7dfbff){const _0x1998b8=_0x6390b7;console[_0x1998b8('0xb')](_0x7dfbff);});}},'charset':'utf8mb4','collate':_0x5271ae('0x11')});return _0x484ece;}; \ No newline at end of file +const a415_0x1800=['mail_messages','isNil','subject','MailMessage','UserId','direction','messageId','MailInteractionId','utf8mb4','then','secret','body','html-to-text','define','exports','toLowerCase','utf8mb4_unicode_ci','MailInteraction','createdAt','out','update','fti_mail_messages','plainBody','catch','fromString','findOne','error'];(function(_0x539f72,_0x180084){const _0x4f2c78=function(_0xbc5e46){while(--_0xbc5e46){_0x539f72['push'](_0x539f72['shift']());}};_0x4f2c78(++_0x180084);}(a415_0x1800,0xd3));const a415_0x4f2c=function(_0x539f72,_0x180084){_0x539f72=_0x539f72-0x0;let _0x4f2c78=a415_0x1800[_0x539f72];return _0x4f2c78;};const _0x13db12=a415_0x4f2c;'use strict';const _=require('lodash'),htmlToText=require(_0x13db12('0x11')),attributes=require('./mailMessage.attributes');module[_0x13db12('0x13')]=function(_0xbc5e46){const _0x531a17=_0x13db12,_0x29bcbc=_0xbc5e46['models'],_0x44b814=_0xbc5e46[_0x531a17('0x12')](_0x531a17('0x8'),attributes,{'tableName':_0x531a17('0x5'),'paranoid':![],'indexes':[{'name':'messageId','fields':[_0x531a17('0xb')]},{'name':_0x531a17('0x1a'),'fields':[_0x531a17('0x0'),_0x531a17('0x7')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x640b5d){const _0x3bc04c=_0x531a17;_0x640b5d['body']&&(_0x640b5d[_0x3bc04c('0x0')]=htmlToText[_0x3bc04c('0x2')](_0x640b5d[_0x3bc04c('0x10')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0xf2388e){const _0x454564=_0x531a17,_0x182d14=_0xf2388e['get']({'plain':!![]});(_0x182d14[_0x454564('0xa')][_0x454564('0x14')]()==='in'||_0x182d14['direction']['toLowerCase']()===_0x454564('0x18')&&!_0x182d14[_0x454564('0xf')]&&!_[_0x454564('0x6')](_0x182d14[_0x454564('0x9')]))&&_0x29bcbc[_0x454564('0x16')][_0x454564('0x3')]({'where':{'id':_0x182d14[_0x454564('0xc')]}})[_0x454564('0xe')](function(_0x577955){const _0x325200=_0x454564;_0x577955&&_0x577955[_0x325200('0x19')]({'lastMsgAt':_0x182d14[_0x325200('0x17')],'lastMsgDirection':_0x182d14[_0x325200('0xa')][_0x325200('0x14')](),'lastMsgBody':_0x182d14[_0x325200('0x10')]});})[_0x454564('0x1')](function(_0x5c3c36){const _0x1b8948=_0x454564;console[_0x1b8948('0x4')](_0x5c3c36);});}},'charset':_0x531a17('0xd'),'collate':_0x531a17('0x15')});return _0x44b814;}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.rpc.js b/server/api/mailMessage/mailMessage.rpc.js index 800ec16..d170cb8 100644 --- a/server/api/mailMessage/mailMessage.rpc.js +++ b/server/api/mailMessage/mailMessage.rpc.js @@ -1 +1 @@ -const a416_0x3a80=['register','../../rediscache','MailMessage','debug','body','then','error','create','CreateMailMessage','options','catch','./mailMessage.socket','info','../../config/logger','../../mysqldb','raw'];(function(_0x292c94,_0x3a802f){const _0x3b2fc3=function(_0x31123e){while(--_0x31123e){_0x292c94['push'](_0x292c94['shift']());}};_0x3b2fc3(++_0x3a802f);}(a416_0x3a80,0xe7));const a416_0x3b2f=function(_0x292c94,_0x3a802f){_0x292c94=_0x292c94-0x0;let _0x3b2fc3=a416_0x3a80[_0x292c94];return _0x3b2fc3;};const _0x5bba70=a416_0x3b2f;'use strict';const db=require(_0x5bba70('0x7'))['db'],logger=require(_0x5bba70('0x6'))('rpc'),{getSocket}=require(_0x5bba70('0xa')),socket=getSocket();require(_0x5bba70('0x4'))[_0x5bba70('0x9')](socket),exports['CreateMailMessage']=function(_0x31123e){const _0x566c96=this;return new Promise(function(_0x2d45a8,_0x255dd8){const _0x57f64f=a416_0x3b2f;return db[_0x57f64f('0xb')][_0x57f64f('0x0')](_0x31123e[_0x57f64f('0xd')],{'raw':_0x31123e[_0x57f64f('0x2')]?_0x31123e['options'][_0x57f64f('0x8')]===undefined?!![]:![]:!![]})[_0x57f64f('0xe')](function(_0x183f4b){const _0x2f0348=_0x57f64f;logger[_0x2f0348('0x5')](_0x2f0348('0x1'),_0x31123e),logger[_0x2f0348('0xc')](_0x2f0348('0x1'),_0x31123e,JSON['stringify'](_0x183f4b)),_0x2d45a8(_0x183f4b);})[_0x57f64f('0x3')](function(_0x519768){const _0x3ef346=_0x57f64f;logger[_0x3ef346('0xf')]('CreateMailMessage',_0x519768['message'],_0x31123e),_0x255dd8(_0x566c96[_0x3ef346('0xf')](0x1f4,_0x519768['message']));});});}; \ No newline at end of file +const a416_0x3c1c=['debug','create','../../config/logger','register','../../rediscache','rpc','stringify','message','info','options','./mailMessage.socket','body','../../mysqldb','then','raw','CreateMailMessage'];(function(_0x496ec3,_0x3c1c3c){const _0x227b4d=function(_0x50567e){while(--_0x50567e){_0x496ec3['push'](_0x496ec3['shift']());}};_0x227b4d(++_0x3c1c3c);}(a416_0x3c1c,0x85));const a416_0x227b=function(_0x496ec3,_0x3c1c3c){_0x496ec3=_0x496ec3-0x0;let _0x227b4d=a416_0x3c1c[_0x496ec3];return _0x227b4d;};const _0x2dd73e=a416_0x227b;'use strict';const db=require(_0x2dd73e('0x7'))['db'],logger=require(_0x2dd73e('0xd'))(_0x2dd73e('0x0')),{getSocket}=require(_0x2dd73e('0xf')),socket=getSocket();require(_0x2dd73e('0x5'))[_0x2dd73e('0xe')](socket),exports[_0x2dd73e('0xa')]=function(_0x50567e){const _0x56128e=this;return new Promise(function(_0x543149,_0x486cc1){const _0x1df43d=a416_0x227b;return db['MailMessage'][_0x1df43d('0xc')](_0x50567e[_0x1df43d('0x6')],{'raw':_0x50567e[_0x1df43d('0x4')]?_0x50567e[_0x1df43d('0x4')][_0x1df43d('0x9')]===undefined?!![]:![]:!![]})[_0x1df43d('0x8')](function(_0xa5e25b){const _0x3886f7=_0x1df43d;logger[_0x3886f7('0x3')](_0x3886f7('0xa'),_0x50567e),logger[_0x3886f7('0xb')]('CreateMailMessage',_0x50567e,JSON[_0x3886f7('0x1')](_0xa5e25b)),_0x543149(_0xa5e25b);})['catch'](function(_0x2a86a3){const _0x610397=_0x1df43d;logger['error'](_0x610397('0xa'),_0x2a86a3[_0x610397('0x2')],_0x50567e),_0x486cc1(_0x56128e['error'](0x1f4,_0x2a86a3[_0x610397('0x2')]));});});}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.socket.js b/server/api/mailMessage/mailMessage.socket.js index 974cba5..a7fb341 100644 --- a/server/api/mailMessage/mailMessage.socket.js +++ b/server/api/mailMessage/mailMessage.socket.js @@ -1 +1 @@ -const a417_0x4053=['update','register','./mailMessage.events','length','emit','save','mailMessage:','remove'];(function(_0x54bea5,_0x40535c){const _0x2a9b9f=function(_0x51426b){while(--_0x51426b){_0x54bea5['push'](_0x54bea5['shift']());}};_0x2a9b9f(++_0x40535c);}(a417_0x4053,0x18c));const a417_0x2a9b=function(_0x54bea5,_0x40535c){_0x54bea5=_0x54bea5-0x0;let _0x2a9b9f=a417_0x4053[_0x54bea5];return _0x2a9b9f;};const _0x30eccf=a417_0x2a9b;'use strict';const MailMessageEvents=require(_0x30eccf('0x6')),events=[_0x30eccf('0x1'),_0x30eccf('0x3'),_0x30eccf('0x4')];function createListener(_0x51426b,_0x52e1c3){return function(_0x53b0ab){const _0x1ddfbc=a417_0x2a9b;_0x52e1c3[_0x1ddfbc('0x0')](_0x51426b,_0x53b0ab);};}exports[_0x30eccf('0x5')]=function(_0x1d1ce3){const _0x161385=_0x30eccf;for(let _0x33bef9=0x0,_0x4ce46a=events[_0x161385('0x7')];_0x33bef9<_0x4ce46a;_0x33bef9++){const _0x5dc5c5=events[_0x33bef9],_0x34959a=createListener(_0x161385('0x2')+_0x5dc5c5,_0x1d1ce3);MailMessageEvents['on'](_0x5dc5c5,_0x34959a);}}; \ No newline at end of file +const a417_0x5043=['save','emit','remove','./mailMessage.events','mailMessage:','register','length','update'];(function(_0x47da5b,_0x50437a){const _0x1b2bd3=function(_0x16cb9e){while(--_0x16cb9e){_0x47da5b['push'](_0x47da5b['shift']());}};_0x1b2bd3(++_0x50437a);}(a417_0x5043,0x1c8));const a417_0x1b2b=function(_0x47da5b,_0x50437a){_0x47da5b=_0x47da5b-0x0;let _0x1b2bd3=a417_0x5043[_0x47da5b];return _0x1b2bd3;};const _0x4f68d4=a417_0x1b2b;'use strict';const MailMessageEvents=require(_0x4f68d4('0x3')),events=[_0x4f68d4('0x0'),_0x4f68d4('0x2'),_0x4f68d4('0x7')];function createListener(_0x16cb9e,_0x31c56a){return function(_0x24e07f){const _0xfc7e4a=a417_0x1b2b;_0x31c56a[_0xfc7e4a('0x1')](_0x16cb9e,_0x24e07f);};}exports[_0x4f68d4('0x5')]=function(_0x380066){const _0xfd2a50=_0x4f68d4;for(let _0x413723=0x0,_0x11c0d5=events[_0xfd2a50('0x6')];_0x413723<_0x11c0d5;_0x413723++){const _0x489d28=events[_0x413723],_0x20dc56=createListener(_0xfd2a50('0x4')+_0x489d28,_0x380066);MailMessageEvents['on'](_0x489d28,_0x20dc56);}}; \ No newline at end of file diff --git a/server/api/mailQueue/index.js b/server/api/mailQueue/index.js index f5b708b..f0a41f8 100644 --- a/server/api/mailQueue/index.js +++ b/server/api/mailQueue/index.js @@ -1 +1 @@ -const a418_0x3c20=['destroy','addAgents','update','/:id/teams','post','delete','removeAgents','/:id/users','describe','get','isAuthenticated','/:id/members','show','exports','Router','put','getAgents','getMembers','/describe','create','/:id','removeTeams','addTeams'];(function(_0x45bd21,_0x3c2090){const _0x8d3f0c=function(_0x49347b){while(--_0x49347b){_0x45bd21['push'](_0x45bd21['shift']());}};_0x8d3f0c(++_0x3c2090);}(a418_0x3c20,0x9a));const a418_0x8d3f=function(_0x45bd21,_0x3c2090){_0x45bd21=_0x45bd21-0x0;let _0x8d3f0c=a418_0x3c20[_0x45bd21];return _0x8d3f0c;};const _0x1fbcb2=a418_0x8d3f;'use strict';const express=require('express'),router=express[_0x1fbcb2('0x15')](),auth=require('../../components/auth/service'),controller=require('./mailQueue.controller');router[_0x1fbcb2('0x10')]('/',auth[_0x1fbcb2('0x11')](),controller['index']),router['get'](_0x1fbcb2('0x2'),auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0xf')]),router[_0x1fbcb2('0x10')](_0x1fbcb2('0x4'),auth['isAuthenticated'](),controller[_0x1fbcb2('0x13')]),router[_0x1fbcb2('0x10')](_0x1fbcb2('0x12'),auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0x1')]),router[_0x1fbcb2('0x10')](_0x1fbcb2('0xa'),auth['isAuthenticated'](),controller['getTeams']),router[_0x1fbcb2('0x10')](_0x1fbcb2('0xe'),auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0x0')]),router[_0x1fbcb2('0xb')]('/',auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0x3')]),router['post'](_0x1fbcb2('0xa'),auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0x6')]),router[_0x1fbcb2('0xb')](_0x1fbcb2('0xe'),auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0x8')]),router[_0x1fbcb2('0x16')](_0x1fbcb2('0x4'),auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0x9')]),router['delete'](_0x1fbcb2('0x4'),auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0x7')]),router[_0x1fbcb2('0xc')]('/:id/teams',auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0x5')]),router[_0x1fbcb2('0xc')](_0x1fbcb2('0xe'),auth[_0x1fbcb2('0x11')](),controller[_0x1fbcb2('0xd')]),module[_0x1fbcb2('0x14')]=router; \ No newline at end of file +const a418_0x3a25=['post','destroy','addAgents','update','get','/:id','addTeams','removeAgents','/:id/teams','removeTeams','/describe','create','isAuthenticated','put','/:id/users','getTeams','getAgents','express','./mailQueue.controller','delete','../../components/auth/service'];(function(_0x6428f0,_0x3a25f9){const _0x2a023b=function(_0x3c93a4){while(--_0x3c93a4){_0x6428f0['push'](_0x6428f0['shift']());}};_0x2a023b(++_0x3a25f9);}(a418_0x3a25,0x1c8));const a418_0x2a02=function(_0x6428f0,_0x3a25f9){_0x6428f0=_0x6428f0-0x0;let _0x2a023b=a418_0x3a25[_0x6428f0];return _0x2a023b;};const _0x130e2b=a418_0x2a02;'use strict';const express=require(_0x130e2b('0x2')),router=express['Router'](),auth=require(_0x130e2b('0x5')),controller=require(_0x130e2b('0x3'));router[_0x130e2b('0xa')]('/',auth[_0x130e2b('0x12')](),controller['index']),router[_0x130e2b('0xa')](_0x130e2b('0x10'),auth[_0x130e2b('0x12')](),controller['describe']),router[_0x130e2b('0xa')](_0x130e2b('0xb'),auth[_0x130e2b('0x12')](),controller['show']),router[_0x130e2b('0xa')]('/:id/members',auth[_0x130e2b('0x12')](),controller['getMembers']),router[_0x130e2b('0xa')](_0x130e2b('0xe'),auth[_0x130e2b('0x12')](),controller[_0x130e2b('0x0')]),router[_0x130e2b('0xa')](_0x130e2b('0x14'),auth[_0x130e2b('0x12')](),controller[_0x130e2b('0x1')]),router[_0x130e2b('0x6')]('/',auth['isAuthenticated'](),controller[_0x130e2b('0x11')]),router['post']('/:id/teams',auth[_0x130e2b('0x12')](),controller[_0x130e2b('0xc')]),router[_0x130e2b('0x6')](_0x130e2b('0x14'),auth['isAuthenticated'](),controller[_0x130e2b('0x8')]),router[_0x130e2b('0x13')](_0x130e2b('0xb'),auth[_0x130e2b('0x12')](),controller[_0x130e2b('0x9')]),router[_0x130e2b('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x130e2b('0x7')]),router[_0x130e2b('0x4')]('/:id/teams',auth[_0x130e2b('0x12')](),controller[_0x130e2b('0xf')]),router[_0x130e2b('0x4')](_0x130e2b('0x14'),auth[_0x130e2b('0x12')](),controller[_0x130e2b('0xd')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.attributes.js b/server/api/mailQueue/mailQueue.attributes.js index 9a56da6..092230c 100644 --- a/server/api/mailQueue/mailQueue.attributes.js +++ b/server/api/mailQueue/mailQueue.attributes.js @@ -1 +1 @@ -const a419_0x5473=['name','beepall','roundrobin','rrmemory','STRING'];(function(_0x567dec,_0x54730d){const _0x544ace=function(_0x4ebdc1){while(--_0x4ebdc1){_0x567dec['push'](_0x567dec['shift']());}};_0x544ace(++_0x54730d);}(a419_0x5473,0xcf));const a419_0x544a=function(_0x567dec,_0x54730d){_0x567dec=_0x567dec-0x0;let _0x544ace=a419_0x5473[_0x567dec];return _0x544ace;};const _0x26763a=a419_0x544a;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x26763a('0x2')],'unique':_0x26763a('0x3'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x26763a('0x2')]},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM'](_0x26763a('0x1'),_0x26763a('0x4'),_0x26763a('0x0'))}}; \ No newline at end of file +const a419_0x52cd=['sequelize','INTEGER','exports','name','STRING'];(function(_0x343373,_0x52cd94){const _0x55371e=function(_0xb146df){while(--_0xb146df){_0x343373['push'](_0x343373['shift']());}};_0x55371e(++_0x52cd94);}(a419_0x52cd,0x1c9));const a419_0x5537=function(_0x343373,_0x52cd94){_0x343373=_0x343373-0x0;let _0x55371e=a419_0x52cd[_0x343373];return _0x55371e;};const _0x377e46=a419_0x5537;'use strict';const Sequelize=require(_0x377e46('0x3'));module[_0x377e46('0x0')]={'name':{'type':Sequelize[_0x377e46('0x2')],'unique':_0x377e46('0x1'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x377e46('0x2')]},'timeout':{'type':Sequelize[_0x377e46('0x4')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM']('rrmemory','beepall','roundrobin')}}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.controller.js b/server/api/mailQueue/mailQueue.controller.js index b194616..3b02d2b 100644 --- a/server/api/mailQueue/mailQueue.controller.js +++ b/server/api/mailQueue/mailQueue.controller.js @@ -1 +1 @@ -const a420_0x4c51=['removeTeams','mailPause','key','getAgents','send','voicePause','UserProfileResource','../../components/parsers/qs','omit','name','findAndCountAll','getTeams','findOne','map','nolimit','MailQueueId','MailQueue','User','attributes','MailQueueId\x20=\x20?','rows','fieldName','includeAll','each','count','agent','options','Agents','clone','VIRTUAL','index','filter','catch','status','createdAt','toString','emit','MailQueues','every','destroy','value','includes','UserProfileSection','then','create','findOrCreate','../../config/logger','ut.TeamId\x20=\x20tq.TeamId','squel','./mailQueue.socket','addAgents','where','union','intersection','model','limit','format','user','findAll','filters','forEach','order','end','show','../../rediscache','merge','compact','register','type','%s/%s','sort','get','../../mysqldb','set','userMailQueue:save','SIP','userMailQueue:remove','error','like','json','offset','length','push','fields','from','isEmpty','rawAttributes','keys','api','updatedAt','removeAgents','tq.TeamId','body','UserMailQueue','describe','ids','all','flatMap','SELECT','lodash','pick','join','query','Team','userProfileId','include','undefined','sequelize','addTeams','params','Content-Range','transaction','getMembers'];(function(_0x1020e1,_0x4c514f){const _0x3453f7=function(_0x3bb68c){while(--_0x3bb68c){_0x1020e1['push'](_0x1020e1['shift']());}};_0x3453f7(++_0x4c514f);}(a420_0x4c51,0x14f));const a420_0x3453=function(_0x1020e1,_0x4c514f){_0x1020e1=_0x1020e1-0x0;let _0x3453f7=a420_0x4c51[_0x1020e1];return _0x3453f7;};const _0x584fd5=a420_0x3453;'use strict';const util=require('util'),_=require(_0x584fd5('0x67')),squel=require(_0x584fd5('0x34')),qs=require(_0x584fd5('0xb')),logger=require(_0x584fd5('0x32'))(_0x584fd5('0x5c')),{getSocket}=require(_0x584fd5('0x44')),socket=getSocket(),db=require(_0x584fd5('0x4c'))['db'],{Op}=require(_0x584fd5('0x6f'));require(_0x584fd5('0x35'))[_0x584fd5('0x47')](socket);function respondWithStatusCode(_0x3bb68c,_0xfb5dc2){return _0xfb5dc2=_0xfb5dc2||0xcc,function(_0x3f95ee){const _0x69f200=a420_0x3453;if(_0x3f95ee)return _0x3bb68c['sendStatus'](_0xfb5dc2);return _0x3bb68c[_0x69f200('0x25')](_0xfb5dc2)[_0x69f200('0x42')]();};}function respondWithResult(_0x57aed2,_0x3fc8d7){return _0x3fc8d7=_0x3fc8d7||0xc8,function(_0x1e0ff8){const _0x54a624=a420_0x3453;if(_0x1e0ff8)return _0x57aed2[_0x54a624('0x25')](_0x3fc8d7)[_0x54a624('0x53')](_0x1e0ff8);};}function respondWithFilteredResult(_0x569fd4,_0x223b3b){return function(_0x2f98d2){const _0x352b9c=a420_0x3453;if(_0x2f98d2){const _0x5e42dd=_0x2f98d2[_0x352b9c('0x1c')],_0x5ed9c4=_0x223b3b[_0x352b9c('0x54')];let _0x322fea=_0x223b3b['offset']+_0x223b3b['limit'],_0x2c5df4;return _0x322fea>=_0x5e42dd?(_0x322fea=_0x5e42dd,_0x2c5df4=0xc8):_0x2c5df4=0xce,_0x569fd4['status'](_0x2c5df4),_0x569fd4[_0x352b9c('0x4d')](_0x352b9c('0x1'),_0x5ed9c4+'-'+_0x322fea+'/'+_0x5e42dd)[_0x352b9c('0x53')](_0x2f98d2);}return null;};}function saveUpdates(_0x334d72){return function(_0x49a785){const _0x5127ff=a420_0x3453;if(_0x49a785)return _0x49a785['update'](_0x334d72)[_0x5127ff('0x2f')](function(_0x4de234){return _0x4de234;});return null;};}function removeEntity(_0x6594a9){return function(_0x36b2fa){const _0x1085de=a420_0x3453;if(_0x36b2fa)return _0x36b2fa[_0x1085de('0x2b')]()['then'](function(){const _0x377306=_0x1085de,_0x58382a=_0x36b2fa[_0x377306('0x4b')]({'plain':!![]}),_0x562254=_0x377306('0x29');return db['UserProfileResource'][_0x377306('0x2b')]({'where':{'type':_0x562254,'resourceId':_0x58382a['id']}})[_0x377306('0x2f')](function(){return _0x36b2fa;});})[_0x1085de('0x2f')](function(){const _0x194083=_0x1085de;_0x6594a9[_0x194083('0x25')](0xcc)['end']();});};}function handleEntityNotFound(_0x3439c4){return function(_0x2350fd){return!_0x2350fd&&_0x3439c4['sendStatus'](0x194),_0x2350fd;};}function handleError(_0x15a97a,_0x3fd122){return _0x3fd122=_0x3fd122||0x1f4,function(_0x276597){const _0x4aba15=a420_0x3453;logger[_0x4aba15('0x51')](_0x276597['stack']),_0x276597['name']&&delete _0x276597[_0x4aba15('0xd')],_0x15a97a[_0x4aba15('0x25')](_0x3fd122)[_0x4aba15('0x8')](_0x276597);};}exports[_0x584fd5('0x22')]=function(_0x502f19,_0x3edac1){const _0x19d9f9=_0x584fd5;let _0x4e1aa2={};const _0x27b571={},_0x4c3b9c={'count':0x0,'rows':[]},_0x2d3026=_[_0x19d9f9('0x11')](db['MailQueue'][_0x19d9f9('0x5a')],function(_0x334e7b){const _0x4fa733=_0x19d9f9;return{'name':_0x334e7b[_0x4fa733('0x19')],'type':_0x334e7b['type'][_0x4fa733('0x6')]};});_0x27b571[_0x19d9f9('0x3a')]=_[_0x19d9f9('0x11')](_0x2d3026,_0x19d9f9('0xd')),_0x27b571[_0x19d9f9('0x6a')]=_[_0x19d9f9('0x5b')](_0x502f19['query']),_0x27b571['filters']=_[_0x19d9f9('0x39')](_0x27b571[_0x19d9f9('0x3a')],_0x27b571[_0x19d9f9('0x6a')]),_0x4e1aa2[_0x19d9f9('0x16')]=_['intersection'](_0x27b571['model'],qs[_0x19d9f9('0x57')](_0x502f19[_0x19d9f9('0x6a')][_0x19d9f9('0x57')])),_0x4e1aa2[_0x19d9f9('0x16')]=_0x4e1aa2[_0x19d9f9('0x16')][_0x19d9f9('0x55')]?_0x4e1aa2[_0x19d9f9('0x16')]:_0x27b571[_0x19d9f9('0x3a')];typeof _0x502f19[_0x19d9f9('0x6a')][_0x19d9f9('0x12')]===_0x19d9f9('0x6e')&&(_0x4e1aa2[_0x19d9f9('0x3b')]=qs[_0x19d9f9('0x3b')](_0x502f19['query']['limit']),_0x4e1aa2[_0x19d9f9('0x54')]=qs[_0x19d9f9('0x54')](_0x502f19[_0x19d9f9('0x6a')][_0x19d9f9('0x54')]));_0x4e1aa2['order']=qs[_0x19d9f9('0x4a')](_0x502f19[_0x19d9f9('0x6a')][_0x19d9f9('0x4a')]),_0x4e1aa2[_0x19d9f9('0x37')]=qs[_0x19d9f9('0x3f')](_[_0x19d9f9('0x68')](_0x502f19[_0x19d9f9('0x6a')],_0x27b571[_0x19d9f9('0x3f')]),_0x2d3026);_0x502f19[_0x19d9f9('0x6a')]['filter']&&(_0x4e1aa2[_0x19d9f9('0x37')]=_[_0x19d9f9('0x45')](_0x4e1aa2[_0x19d9f9('0x37')],{[Op['or']]:_[_0x19d9f9('0x11')](_0x2d3026,function(_0x3f3919){const _0x321c52=_0x19d9f9;if(_0x3f3919[_0x321c52('0x48')]!==_0x321c52('0x21')){const _0x3a4e50={};return _0x3a4e50[_0x3f3919[_0x321c52('0xd')]]={[Op[_0x321c52('0x52')]]:'%'+_0x502f19[_0x321c52('0x6a')][_0x321c52('0x23')]+'%'},_0x3a4e50;}})}));_0x4e1aa2=_[_0x19d9f9('0x45')]({},_0x4e1aa2,_0x502f19[_0x19d9f9('0x1e')]);const _0x27b65b={'where':_0x4e1aa2['where']};return db[_0x19d9f9('0x14')][_0x19d9f9('0x1c')](_0x27b65b)[_0x19d9f9('0x2f')](function(_0x51330b){const _0x4f0523=_0x19d9f9;return _0x4c3b9c[_0x4f0523('0x1c')]=_0x51330b,_0x502f19[_0x4f0523('0x6a')][_0x4f0523('0x1a')]&&(_0x4e1aa2['include']=[{'all':!![]}]),db[_0x4f0523('0x14')][_0x4f0523('0x3e')](_0x4e1aa2);})[_0x19d9f9('0x2f')](function(_0x147e58){const _0x29b679=_0x19d9f9;return _0x4c3b9c[_0x29b679('0x18')]=_0x147e58,_0x4c3b9c;})[_0x19d9f9('0x2f')](respondWithFilteredResult(_0x3edac1,_0x4e1aa2))['catch'](handleError(_0x3edac1,null));},exports[_0x584fd5('0x43')]=function(_0x4d2460,_0x2dc6b7){const _0x3bcc36=_0x584fd5;let _0x2b1fdd={'raw':!![],'where':{'id':_0x4d2460['params']['id']}};const _0x111376={};return _0x111376[_0x3bcc36('0x3a')]=_['keys'](db['MailQueue'][_0x3bcc36('0x5a')]),_0x111376[_0x3bcc36('0x6a')]=_[_0x3bcc36('0x5b')](_0x4d2460[_0x3bcc36('0x6a')]),_0x111376[_0x3bcc36('0x3f')]=_[_0x3bcc36('0x39')](_0x111376[_0x3bcc36('0x3a')],_0x111376['query']),_0x2b1fdd['attributes']=_['intersection'](_0x111376[_0x3bcc36('0x3a')],qs[_0x3bcc36('0x57')](_0x4d2460['query']['fields'])),_0x2b1fdd['attributes']=_0x2b1fdd[_0x3bcc36('0x16')][_0x3bcc36('0x55')]?_0x2b1fdd[_0x3bcc36('0x16')]:_0x111376['model'],_0x4d2460[_0x3bcc36('0x6a')]['includeAll']&&(_0x2b1fdd[_0x3bcc36('0x6d')]=[{'all':!![]}]),_0x2b1fdd=_['merge']({},_0x2b1fdd,_0x4d2460[_0x3bcc36('0x1e')]),db['MailQueue'][_0x3bcc36('0x10')](_0x2b1fdd)[_0x3bcc36('0x2f')](handleEntityNotFound(_0x2dc6b7,null))['then'](respondWithResult(_0x2dc6b7,null))[_0x3bcc36('0x24')](handleError(_0x2dc6b7,null));},exports['create']=function(_0x2cd0a5,_0x4a45b1){const _0x50399a=_0x584fd5;return db['MailQueue'][_0x50399a('0x30')](_0x2cd0a5['body'],{})[_0x50399a('0x2f')](function(_0x83fb5b){const _0x5e5d7a=_0x50399a,_0x5a6c75=_0x2cd0a5[_0x5e5d7a('0x3d')]['get']({'plain':!![]});if(!_0x5a6c75)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5a6c75['role']===_0x5e5d7a('0x3d')){const _0x3305e9=_0x83fb5b[_0x5e5d7a('0x4b')]({'plain':!![]}),_0x1101bd=_0x5e5d7a('0x29');return db[_0x5e5d7a('0x2e')][_0x5e5d7a('0x10')]({'where':{'name':_0x1101bd,'userProfileId':_0x5a6c75[_0x5e5d7a('0x6c')]},'raw':!![]})['then'](function(_0x13cbc8){const _0x2626f3=_0x5e5d7a;return _0x13cbc8&&_0x13cbc8['autoAssociation']===0x0?db[_0x2626f3('0xa')]['create']({'name':_0x3305e9['name'],'resourceId':_0x3305e9['id'],'type':_0x13cbc8['name'],'sectionId':_0x13cbc8['id']},{})[_0x2626f3('0x2f')](function(){return _0x83fb5b;}):_0x83fb5b;})[_0x5e5d7a('0x24')](function(_0x4b4f52){const _0x212e80=_0x5e5d7a;logger[_0x212e80('0x51')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4b4f52);throw _0x4b4f52;});}return _0x83fb5b;})[_0x50399a('0x2f')](respondWithResult(_0x4a45b1,0xc9))[_0x50399a('0x24')](handleError(_0x4a45b1,null));},exports['update']=function(_0x23c12a,_0x5b621f){const _0x4cc0ea=_0x584fd5;return _0x23c12a['body']['id']&&delete _0x23c12a['body']['id'],db[_0x4cc0ea('0x14')][_0x4cc0ea('0x10')]({'where':{'id':_0x23c12a['params']['id']}})[_0x4cc0ea('0x2f')](handleEntityNotFound(_0x5b621f,null))[_0x4cc0ea('0x2f')](saveUpdates(_0x23c12a[_0x4cc0ea('0x60')],null))['then'](respondWithResult(_0x5b621f,null))['catch'](handleError(_0x5b621f,null));},exports[_0x584fd5('0x2b')]=function(_0x299e87,_0x51689d){const _0xf37744=_0x584fd5;return db['MailQueue'][_0xf37744('0x10')]({'where':{'id':_0x299e87[_0xf37744('0x0')]['id']}})[_0xf37744('0x2f')](handleEntityNotFound(_0x51689d,null))[_0xf37744('0x2f')](removeEntity(_0x51689d,null))[_0xf37744('0x24')](handleError(_0x51689d,null));},exports[_0x584fd5('0x62')]=function(_0x5818c8,_0x4f76a9){const _0x202a29=_0x584fd5;return db[_0x202a29('0x14')][_0x202a29('0x62')]()[_0x202a29('0x2f')](respondWithResult(_0x4f76a9,null))[_0x202a29('0x24')](handleError(_0x4f76a9,null));},exports[_0x584fd5('0x3')]=function(_0x1737fb,_0x3dd177){const _0x511fae=_0x584fd5;let _0x4c7421={'raw':!![],'where':{}};const _0x1f4901={};let _0x50252e;return db[_0x511fae('0x14')][_0x511fae('0x10')]({'where':{'id':_0x1737fb['params']['id']}})[_0x511fae('0x2f')](handleEntityNotFound(_0x3dd177,null))[_0x511fae('0x2f')](function(_0x3f4619){const _0x42fbad=_0x511fae;if(_0x3f4619)return _0x50252e=_0x3f4619['get']({'plain':!![]}),_0x1f4901[_0x42fbad('0x3a')]=_['keys'](db[_0x42fbad('0x61')]['rawAttributes']),_0x1f4901['query']=_[_0x42fbad('0x5b')](_0x1737fb['query']),_0x1f4901[_0x42fbad('0x3f')]=_[_0x42fbad('0x39')](_0x1f4901[_0x42fbad('0x3a')],_0x1f4901[_0x42fbad('0x6a')]),_0x4c7421[_0x42fbad('0x16')]=_['intersection'](_0x1f4901['model'],qs[_0x42fbad('0x57')](_0x1737fb[_0x42fbad('0x6a')][_0x42fbad('0x57')])),_0x4c7421[_0x42fbad('0x16')]=_0x4c7421['attributes']['length']?_0x4c7421[_0x42fbad('0x16')]:_0x1f4901[_0x42fbad('0x3a')],typeof _0x1737fb[_0x42fbad('0x6a')][_0x42fbad('0x12')]===_0x42fbad('0x6e')&&(_0x4c7421['limit']=qs['limit'](_0x1737fb[_0x42fbad('0x6a')][_0x42fbad('0x3b')]),_0x4c7421[_0x42fbad('0x54')]=qs[_0x42fbad('0x54')](_0x1737fb['query']['offset'])),_0x4c7421[_0x42fbad('0x41')]=qs[_0x42fbad('0x4a')](_0x1737fb[_0x42fbad('0x6a')][_0x42fbad('0x4a')]),_0x4c7421[_0x42fbad('0x37')]=qs[_0x42fbad('0x3f')](_['pick'](_0x1737fb[_0x42fbad('0x6a')],_0x1f4901[_0x42fbad('0x3f')])),_0x4c7421[_0x42fbad('0x37')][_0x42fbad('0x13')]=_0x3f4619['id'],_0x1737fb[_0x42fbad('0x6a')][_0x42fbad('0x23')]&&(_0x4c7421[_0x42fbad('0x37')]=_[_0x42fbad('0x45')](_0x4c7421['where'],{[Op['or']]:_[_0x42fbad('0x11')](_0x4c7421[_0x42fbad('0x16')],function(_0x2c6a3a){const _0x28ee5c=_0x42fbad,_0x1fbd87={};return _0x1fbd87[_0x2c6a3a]={[Op['like']]:'%'+_0x1737fb[_0x28ee5c('0x6a')]['filter']+'%'},_0x1fbd87;})})),_0x4c7421=_[_0x42fbad('0x45')]({},_0x4c7421,_0x1737fb['options']),db[_0x42fbad('0x61')][_0x42fbad('0x3e')](_0x4c7421);})[_0x511fae('0x2f')](function(_0x519e89){const _0x35aa21=_0x511fae;if(_0x519e89)return db[_0x35aa21('0x15')][_0x35aa21('0xe')]({'where':{'id':_[_0x35aa21('0x11')](_0x519e89,'UserId'),'role':_0x35aa21('0x1d')},'attributes':['id','name','mailPause','updatedAt',_0x35aa21('0x26')]});})[_0x511fae('0x2f')](function(_0x5ce073){const _0x222db5=_0x511fae;return _0x5ce073?{'count':_0x5ce073[_0x222db5('0x1c')],'rows':_[_0x222db5('0x11')](_0x5ce073[_0x222db5('0x18')],function(_0xb7c8d5){const _0x31780f=_0x222db5;return{'membername':_0xb7c8d5[_0x31780f('0xd')],'UserId':_0xb7c8d5['id'],'queue_name':_0x50252e[_0x31780f('0xd')],'MailQueueId':_0x50252e['id'],'interface':util[_0x31780f('0x3c')](_0x31780f('0x49'),_0x31780f('0x4f'),_0xb7c8d5[_0x31780f('0xd')]),'penalty':0x0,'paused':_0xb7c8d5[_0x31780f('0x5')],'createdAt':_0xb7c8d5[_0x31780f('0x26')],'updatedAt':_0xb7c8d5[_0x31780f('0x5d')]};})}:{'count':0x0,'rows':[]};})[_0x511fae('0x2f')](respondWithFilteredResult(_0x3dd177,_0x4c7421))['catch'](handleError(_0x3dd177,null));},exports[_0x584fd5('0xf')]=function(_0xda5f27,_0x543c9b){const _0x1f0837=_0x584fd5;let _0x240f08={};const _0x1cf976={};let _0x4e5f2e,_0x2cb7b6;return db['MailQueue'][_0x1f0837('0x10')]({'where':{'id':_0xda5f27['params']['id']}})[_0x1f0837('0x2f')](handleEntityNotFound(_0x543c9b,null))[_0x1f0837('0x2f')](function(_0x3ddb1f){const _0x3223d9=_0x1f0837;if(_0x3ddb1f)return _0x4e5f2e=_0x3ddb1f,_0x1cf976['model']=_[_0x3223d9('0x5b')](db[_0x3223d9('0x6b')][_0x3223d9('0x5a')]),_0x1cf976['query']=_[_0x3223d9('0x5b')](_0xda5f27[_0x3223d9('0x6a')]),_0x1cf976[_0x3223d9('0x3f')]=_[_0x3223d9('0x39')](_0x1cf976[_0x3223d9('0x3a')],_0x1cf976[_0x3223d9('0x6a')]),_0x240f08[_0x3223d9('0x16')]=_[_0x3223d9('0x39')](_0x1cf976['model'],qs[_0x3223d9('0x57')](_0xda5f27[_0x3223d9('0x6a')][_0x3223d9('0x57')])),_0x240f08[_0x3223d9('0x16')]=_0x240f08[_0x3223d9('0x16')][_0x3223d9('0x55')]?_0x240f08[_0x3223d9('0x16')]:_0x1cf976[_0x3223d9('0x3a')],_0x240f08[_0x3223d9('0x41')]=qs[_0x3223d9('0x4a')](_0xda5f27[_0x3223d9('0x6a')][_0x3223d9('0x4a')]),_0x240f08[_0x3223d9('0x37')]=qs[_0x3223d9('0x3f')](_[_0x3223d9('0x68')](_0xda5f27[_0x3223d9('0x6a')],_0x1cf976['filters'])),_0xda5f27[_0x3223d9('0x6a')]['filter']&&(_0x240f08[_0x3223d9('0x37')]=_['merge'](_0x240f08[_0x3223d9('0x37')],{[Op['or']]:_[_0x3223d9('0x11')](_0x240f08[_0x3223d9('0x16')],function(_0x187041){const _0x3a9e29=_0x3223d9,_0x2d4eb6={};return _0x2d4eb6[_0x187041]={[Op[_0x3a9e29('0x52')]]:'%'+_0xda5f27[_0x3a9e29('0x6a')]['filter']+'%'},_0x2d4eb6;})})),_0x240f08=_[_0x3223d9('0x45')]({},_0x240f08,_0xda5f27[_0x3223d9('0x1e')]),_0x4e5f2e['getTeams'](_0x240f08);})[_0x1f0837('0x2f')](function(_0x1c7e02){const _0x5546a9=_0x1f0837;if(_0x1c7e02)return _0x2cb7b6=_0x1c7e02[_0x5546a9('0x55')],typeof _0xda5f27[_0x5546a9('0x6a')][_0x5546a9('0x12')]===_0x5546a9('0x6e')&&(_0x240f08[_0x5546a9('0x3b')]=qs[_0x5546a9('0x3b')](_0xda5f27[_0x5546a9('0x6a')][_0x5546a9('0x3b')]),_0x240f08['offset']=qs['offset'](_0xda5f27[_0x5546a9('0x6a')]['offset'])),_0x4e5f2e[_0x5546a9('0xf')](_0x240f08);})['then'](function(_0x9dccec){if(_0x9dccec)return _0x9dccec?{'count':_0x2cb7b6,'rows':_0x9dccec}:null;})[_0x1f0837('0x2f')](respondWithResult(_0x543c9b,null))['catch'](handleError(_0x543c9b,null));},exports[_0x584fd5('0x70')]=function(_0x257997,_0x43aa0f){const _0x1ca6f0=_0x584fd5,_0x14d173=_0x257997[_0x1ca6f0('0x60')][_0x1ca6f0('0x63')];return db['Team'][_0x1ca6f0('0x3e')]({'where':{'id':_0x14d173},'attributes':['id'],'include':[{'model':db[_0x1ca6f0('0x15')],'as':_0x1ca6f0('0x1f'),'attributes':['id',_0x1ca6f0('0xd'),'online',_0x1ca6f0('0x9'),'interface'],'raw':!![]}]})[_0x1ca6f0('0x2f')](function(_0x2750c8){const _0x3eef7c=_0x1ca6f0;if(_0x2750c8){const _0x329f56=_[_0x3eef7c('0x65')](_0x2750c8,function(_0x348b38){const _0x5d5859=_0x3eef7c,_0x589faf=_0x348b38[_0x5d5859('0x4b')]({'plain':!![]});return _0x589faf[_0x5d5859('0x1f')];});return db['MailQueue'][_0x3eef7c('0x10')]({'where':{'id':_0x257997[_0x3eef7c('0x0')]['id']}})[_0x3eef7c('0x2f')](function(_0x3e1807){const _0x316b40=_0x3eef7c;return db[_0x316b40('0x6f')][_0x316b40('0x2')](function(_0x479e72){const _0x54c1d4=_0x316b40;return _0x3e1807['addTeams'](_0x14d173,{'transaction':_0x479e72})[_0x54c1d4('0x2f')](function(){const _0x4d604d=_0x54c1d4;return Promise[_0x4d604d('0x1b')](_0x329f56,function(_0x1d3f91){const _0x1e4d6f=_0x4d604d;return db[_0x1e4d6f('0x61')][_0x1e4d6f('0x31')]({'where':{'UserId':_0x1d3f91['id'],'MailQueueId':_0x257997['params']['id']},'transaction':_0x479e72});});})['then'](function(){const _0x581041=_0x54c1d4;_0x329f56[_0x581041('0x40')](function(_0x27e3aa){const _0x2f3012=_0x581041;socket[_0x2f3012('0x28')](_0x2f3012('0x4e'),{'UserId':_0x27e3aa['id'],'MailQueueId':_0x3e1807['id']});});});});});}})[_0x1ca6f0('0x2f')](respondWithStatusCode(_0x43aa0f,null))[_0x1ca6f0('0x24')](handleError(_0x43aa0f,null));},exports[_0x584fd5('0x4')]=function(_0xca0fdb,_0x119dd9){const _0x259678=_0x584fd5;return db['Team'][_0x259678('0x3e')]({'where':{'id':_0xca0fdb[_0x259678('0x6a')][_0x259678('0x63')]},'attributes':['id'],'include':[{'model':db[_0x259678('0x15')],'as':'Agents','attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x119dd9,null))[_0x259678('0x2f')](function(_0x3e3a4f){const _0x4b5b2e=_0x259678,_0x359b57=_[_0x4b5b2e('0x11')](_0x3e3a4f,'id');let _0x4c51ed=[];const _0x362fdf=[],_0x328004=squel['select']();_0x328004['field'](_0x4b5b2e('0x5f'))[_0x4b5b2e('0x58')]('team_has_mail_queues','tq')[_0x4b5b2e('0x69')]('user_has_teams','ut',_0x4b5b2e('0x33'))[_0x4b5b2e('0x37')](_0x4b5b2e('0x17'),_0xca0fdb['params']['id']);for(let _0x4db95=0x0;_0x4db95<_0x3e3a4f[_0x4b5b2e('0x55')];_0x4db95+=0x1){const _0xbe112c=_0x3e3a4f[_0x4db95];for(let _0x20a0d3=0x0;_0x20a0d3<_0xbe112c[_0x4b5b2e('0x1f')][_0x4b5b2e('0x55')];_0x20a0d3+=0x1){const _0x16fb86=_0xbe112c[_0x4b5b2e('0x1f')][_0x20a0d3],_0x3ba804=_0x328004[_0x4b5b2e('0x20')]();_0x3ba804['where']('ut.UserId\x20=\x20?',_0x16fb86['id']),_0x362fdf[_0x4b5b2e('0x56')](db[_0x4b5b2e('0x6f')][_0x4b5b2e('0x6a')](_0x3ba804[_0x4b5b2e('0x27')](),{'type':db['sequelize']['QueryTypes'][_0x4b5b2e('0x66')]})[_0x4b5b2e('0x2f')](function(_0x5d0e5e){const _0x587c4f=_0x4b5b2e;if(_0x5d0e5e[_0x587c4f('0x55')]===0x1)return _0x16fb86['id'];else{const _0x19f166=_[_0x587c4f('0x2a')](_[_0x587c4f('0x11')](_0x5d0e5e,'TeamId'),function(_0x3ea7bf){const _0x2ed150=_0x587c4f;return _[_0x2ed150('0x2d')](_0x359b57,_0x3ea7bf);});if(_0x19f166)return _0x16fb86['id'];}}));}}return Promise[_0x4b5b2e('0x64')](_0x362fdf)['then'](function(_0x1d6334){const _0xd88926=_0x4b5b2e;return _0x4c51ed=_(_0x4c51ed)[_0xd88926('0x38')](_0x1d6334)[_0xd88926('0x46')]()[_0xd88926('0x2c')](),db[_0xd88926('0x14')][_0xd88926('0x10')]({'where':{'id':_0xca0fdb[_0xd88926('0x0')]['id']}})['then'](function(_0x55dc30){const _0xa108c4=_0xd88926;return db['sequelize'][_0xa108c4('0x2')](function(_0x3dcd85){const _0x605d1a=_0xa108c4;return _0x55dc30['removeTeams'](_0xca0fdb[_0x605d1a('0x6a')][_0x605d1a('0x63')],{'transaction':_0x3dcd85})['then'](function(){const _0x40cb04=_0x605d1a;if(!_[_0x40cb04('0x59')](_0x4c51ed))return _0x55dc30[_0x40cb04('0x5e')](_0x4c51ed,{'transaction':_0x3dcd85});})['then'](function(){const _0x316871=_0x605d1a;_0x4c51ed[_0x316871('0x40')](function(_0x19c6ca){const _0x303ec2=_0x316871;socket['emit'](_0x303ec2('0x50'),{'UserId':_0x19c6ca,'MailQueueId':_0x55dc30['id']});});});});});});})[_0x259678('0x2f')](respondWithStatusCode(_0x119dd9,null))[_0x259678('0x24')](handleError(_0x119dd9,null));},exports[_0x584fd5('0x36')]=function(_0x301684,_0x1c8f5b){const _0x591533=_0x584fd5;return db['MailQueue']['findOne']({'where':{'id':_0x301684['params']['id']}})[_0x591533('0x2f')](function(_0x4dda92){const _0x20bf0b=_0x591533;if(_0x4dda92)return _0x4dda92[_0x20bf0b('0x36')](_0x301684[_0x20bf0b('0x60')][_0x20bf0b('0x63')],{'through':_[_0x20bf0b('0xc')](_0x301684[_0x20bf0b('0x60')],[_0x20bf0b('0x63'),'id'])})['then'](function(_0x420ba0){const _0x44b3ac=_0x20bf0b;for(let _0x1f96f1=0x0;_0x1f96f1<_0x301684[_0x44b3ac('0x60')][_0x44b3ac('0x63')][_0x44b3ac('0x55')];_0x1f96f1+=0x1){socket['emit'](_0x44b3ac('0x4e'),{'UserId':_0x301684[_0x44b3ac('0x60')]['ids'][_0x1f96f1],'MailQueueId':_0x301684[_0x44b3ac('0x0')]['id']});}return _0x420ba0;});})[_0x591533('0x2f')](respondWithResult(_0x1c8f5b,null))[_0x591533('0x24')](handleError(_0x1c8f5b,null));},exports[_0x584fd5('0x5e')]=function(_0x1e2352,_0x52ffb9){const _0x32b9f4=_0x584fd5;return db[_0x32b9f4('0x14')][_0x32b9f4('0x10')]({'where':{'id':_0x1e2352['params']['id']}})[_0x32b9f4('0x2f')](handleEntityNotFound(_0x52ffb9,null))[_0x32b9f4('0x2f')](function(_0x5b63b3){const _0x7f77d4=_0x32b9f4;if(_0x5b63b3)return _0x5b63b3[_0x7f77d4('0x5e')](_0x1e2352[_0x7f77d4('0x6a')][_0x7f77d4('0x63')])['then'](function(){const _0xe0edb9=_0x7f77d4;if(_['isArray'](_0x1e2352[_0xe0edb9('0x6a')][_0xe0edb9('0x63')]))for(let _0x5da3f9=0x0;_0x5da3f9<_0x1e2352[_0xe0edb9('0x6a')][_0xe0edb9('0x63')][_0xe0edb9('0x55')];_0x5da3f9+=0x1){socket[_0xe0edb9('0x28')](_0xe0edb9('0x50'),{'UserId':Number(_0x1e2352[_0xe0edb9('0x6a')][_0xe0edb9('0x63')][_0x5da3f9]),'MailQueueId':Number(_0x1e2352[_0xe0edb9('0x0')]['id'])});}else socket['emit'](_0xe0edb9('0x50'),{'UserId':Number(_0x1e2352[_0xe0edb9('0x6a')]['ids']),'MailQueueId':Number(_0x1e2352['params']['id'])});});})[_0x32b9f4('0x2f')](respondWithStatusCode(_0x52ffb9,null))[_0x32b9f4('0x24')](handleError(_0x52ffb9,null));},exports['getAgents']=function(_0x29c743,_0x5d7381){const _0x3b55eb=_0x584fd5;let _0x2241c3={};const _0x367586={};let _0x103149,_0x463bd9;return db['MailQueue'][_0x3b55eb('0x10')]({'where':{'id':_0x29c743[_0x3b55eb('0x0')]['id']}})[_0x3b55eb('0x2f')](handleEntityNotFound(_0x5d7381,null))[_0x3b55eb('0x2f')](function(_0x3b3b18){const _0x5ed2b1=_0x3b55eb;if(_0x3b3b18)return _0x103149=_0x3b3b18,_0x367586[_0x5ed2b1('0x3a')]=_[_0x5ed2b1('0x5b')](db[_0x5ed2b1('0x15')][_0x5ed2b1('0x5a')]),_0x367586[_0x5ed2b1('0x6a')]=_[_0x5ed2b1('0x5b')](_0x29c743[_0x5ed2b1('0x6a')]),_0x367586[_0x5ed2b1('0x3f')]=_[_0x5ed2b1('0x39')](_0x367586[_0x5ed2b1('0x3a')],_0x367586['query']),_0x2241c3['attributes']=_['intersection'](_0x367586[_0x5ed2b1('0x3a')],qs['fields'](_0x29c743[_0x5ed2b1('0x6a')][_0x5ed2b1('0x57')])),_0x2241c3[_0x5ed2b1('0x16')]=_0x2241c3[_0x5ed2b1('0x16')]['length']?_0x2241c3[_0x5ed2b1('0x16')]:_0x367586['model'],_0x2241c3[_0x5ed2b1('0x41')]=qs[_0x5ed2b1('0x4a')](_0x29c743['query'][_0x5ed2b1('0x4a')]),_0x2241c3[_0x5ed2b1('0x37')]=qs[_0x5ed2b1('0x3f')](_[_0x5ed2b1('0x68')](_0x29c743[_0x5ed2b1('0x6a')],_0x367586[_0x5ed2b1('0x3f')])),_0x29c743[_0x5ed2b1('0x6a')][_0x5ed2b1('0x23')]&&(_0x2241c3['where']=_[_0x5ed2b1('0x45')](_0x2241c3[_0x5ed2b1('0x37')],{[Op['or']]:_[_0x5ed2b1('0x11')](_0x2241c3[_0x5ed2b1('0x16')],function(_0x18ceeb){const _0x481865=_0x5ed2b1,_0x3e14e4={};return _0x3e14e4[_0x18ceeb]={[Op[_0x481865('0x52')]]:'%'+_0x29c743['query'][_0x481865('0x23')]+'%'},_0x3e14e4;})})),_0x2241c3=_[_0x5ed2b1('0x45')]({},_0x2241c3,_0x29c743[_0x5ed2b1('0x1e')]),_0x103149['getAgents'](_0x2241c3);})[_0x3b55eb('0x2f')](function(_0x29e9a6){const _0x4645f0=_0x3b55eb;if(_0x29e9a6)return _0x463bd9=_0x29e9a6['length'],typeof _0x29c743[_0x4645f0('0x6a')]['nolimit']===_0x4645f0('0x6e')&&(_0x2241c3[_0x4645f0('0x3b')]=qs['limit'](_0x29c743[_0x4645f0('0x6a')][_0x4645f0('0x3b')]),_0x2241c3[_0x4645f0('0x54')]=qs['offset'](_0x29c743['query'][_0x4645f0('0x54')])),_0x103149[_0x4645f0('0x7')](_0x2241c3);})[_0x3b55eb('0x2f')](function(_0x43225d){if(_0x43225d)return _0x43225d?{'count':_0x463bd9,'rows':_0x43225d}:null;})[_0x3b55eb('0x2f')](respondWithResult(_0x5d7381,null))[_0x3b55eb('0x24')](handleError(_0x5d7381,null));}; \ No newline at end of file +const a420_0x3f77=['squel','removeAgents','destroy','intersection','get','clone','error','interface','catch','compact','createdAt','findOne','ut.UserId\x20=\x20?','then','include','register','field','tq.TeamId','body','agent','MailQueueId\x20=\x20?','ut.TeamId\x20=\x20tq.TeamId','model','length','flatMap','order','like','value','autoAssociation','end','findAndCountAll','../../mysqldb','filters','merge','Team','union','includeAll','type','getTeams','UserProfileResource','getMembers','stack','transaction','getAgents','sort','team_has_mail_queues','UserMailQueue','create','addAgents','pick','status','toString','params','join','userMailQueue:save','json','describe','user_has_teams','keys','forEach','sendStatus','isEmpty','all','updatedAt','userProfileId','update','../../components/parsers/qs','fields','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','every','attributes','each','user','options','../../config/logger','name','show','rows','User','MailQueueId','MailQueue','addTeams','Unable\x20to\x20retrieve\x20the\x20current\x20user','rawAttributes','query','limit','omit','MailQueues','mailPause','ids','nolimit','sequelize','emit','count','offset','where','Agents','filter','SIP','util','findAll','role','undefined','map','userMailQueue:remove','%s/%s','key','removeTeams','lodash','./mailQueue.socket'];(function(_0x50966b,_0x3f77c7){const _0x1f0efb=function(_0x21d0e3){while(--_0x21d0e3){_0x50966b['push'](_0x50966b['shift']());}};_0x1f0efb(++_0x3f77c7);}(a420_0x3f77,0x197));const a420_0x1f0e=function(_0x50966b,_0x3f77c7){_0x50966b=_0x50966b-0x0;let _0x1f0efb=a420_0x3f77[_0x50966b];return _0x1f0efb;};const _0xf6633b=a420_0x1f0e;'use strict';const util=require(_0xf6633b('0x16')),_=require(_0xf6633b('0x1f')),squel=require(_0xf6633b('0x21')),qs=require(_0xf6633b('0x63')),logger=require(_0xf6633b('0x6b'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0xf6633b('0x40'))['db'],{Op}=require(_0xf6633b('0xe'));require(_0xf6633b('0x20'))[_0xf6633b('0x30')](socket);function respondWithStatusCode(_0x21d0e3,_0x47a908){return _0x47a908=_0x47a908||0xcc,function(_0x1ef86d){const _0x429e61=a420_0x1f0e;if(_0x1ef86d)return _0x21d0e3['sendStatus'](_0x47a908);return _0x21d0e3[_0x429e61('0x53')](_0x47a908)['end']();};}function respondWithResult(_0x1ab45f,_0x5cc948){return _0x5cc948=_0x5cc948||0xc8,function(_0x4dcf4a){const _0x5f5393=a420_0x1f0e;if(_0x4dcf4a)return _0x1ab45f[_0x5f5393('0x53')](_0x5cc948)[_0x5f5393('0x58')](_0x4dcf4a);};}function respondWithFilteredResult(_0x9efd4d,_0x2a9ae4){return function(_0x433cb6){const _0x1827b2=a420_0x1f0e;if(_0x433cb6){const _0x2449a6=_0x433cb6[_0x1827b2('0x10')],_0xd2be7f=_0x2a9ae4[_0x1827b2('0x11')];let _0x433d53=_0x2a9ae4['offset']+_0x2a9ae4['limit'],_0x49a06e;return _0x433d53>=_0x2449a6?(_0x433d53=_0x2449a6,_0x49a06e=0xc8):_0x49a06e=0xce,_0x9efd4d['status'](_0x49a06e),_0x9efd4d['set']('Content-Range',_0xd2be7f+'-'+_0x433d53+'/'+_0x2449a6)[_0x1827b2('0x58')](_0x433cb6);}return null;};}function saveUpdates(_0xa8dbd4){return function(_0x3e6012){const _0x40021d=a420_0x1f0e;if(_0x3e6012)return _0x3e6012[_0x40021d('0x62')](_0xa8dbd4)[_0x40021d('0x2e')](function(_0x37c9dd){return _0x37c9dd;});return null;};}function removeEntity(_0x3765dd){return function(_0x383d55){const _0x377db3=a420_0x1f0e;if(_0x383d55)return _0x383d55[_0x377db3('0x23')]()[_0x377db3('0x2e')](function(){const _0x3b0f30=_0x377db3,_0x2dc2f0=_0x383d55['get']({'plain':!![]}),_0x16916c=_0x3b0f30('0xa');return db['UserProfileResource'][_0x3b0f30('0x23')]({'where':{'type':_0x16916c,'resourceId':_0x2dc2f0['id']}})[_0x3b0f30('0x2e')](function(){return _0x383d55;});})[_0x377db3('0x2e')](function(){const _0x1e7a17=_0x377db3;_0x3765dd[_0x1e7a17('0x53')](0xcc)[_0x1e7a17('0x3e')]();});};}function handleEntityNotFound(_0xa5d1a6){return function(_0x1146ee){const _0x2cb4d7=a420_0x1f0e;return!_0x1146ee&&_0xa5d1a6[_0x2cb4d7('0x5d')](0x194),_0x1146ee;};}function handleError(_0x541493,_0x5f1d9d){return _0x5f1d9d=_0x5f1d9d||0x1f4,function(_0x3c057b){const _0x3666d8=a420_0x1f0e;logger[_0x3666d8('0x27')](_0x3c057b[_0x3666d8('0x4a')]),_0x3c057b['name']&&delete _0x3c057b[_0x3666d8('0x6c')],_0x541493[_0x3666d8('0x53')](_0x5f1d9d)['send'](_0x3c057b);};}exports['index']=function(_0xf87cd5,_0x20f021){const _0x35812c=_0xf6633b;let _0x1cb1d0={};const _0x4899c4={},_0x521b08={'count':0x0,'rows':[]},_0x1618ed=_['map'](db[_0x35812c('0x3')][_0x35812c('0x6')],function(_0x25132d){const _0x2fd4e8=_0x35812c;return{'name':_0x25132d['fieldName'],'type':_0x25132d[_0x2fd4e8('0x46')][_0x2fd4e8('0x1d')]};});_0x4899c4[_0x35812c('0x37')]=_[_0x35812c('0x1a')](_0x1618ed,'name'),_0x4899c4[_0x35812c('0x7')]=_['keys'](_0xf87cd5[_0x35812c('0x7')]),_0x4899c4[_0x35812c('0x41')]=_[_0x35812c('0x24')](_0x4899c4[_0x35812c('0x37')],_0x4899c4['query']),_0x1cb1d0[_0x35812c('0x67')]=_[_0x35812c('0x24')](_0x4899c4[_0x35812c('0x37')],qs[_0x35812c('0x64')](_0xf87cd5[_0x35812c('0x7')][_0x35812c('0x64')])),_0x1cb1d0[_0x35812c('0x67')]=_0x1cb1d0['attributes'][_0x35812c('0x38')]?_0x1cb1d0[_0x35812c('0x67')]:_0x4899c4[_0x35812c('0x37')];typeof _0xf87cd5[_0x35812c('0x7')][_0x35812c('0xd')]===_0x35812c('0x19')&&(_0x1cb1d0['limit']=qs[_0x35812c('0x8')](_0xf87cd5[_0x35812c('0x7')]['limit']),_0x1cb1d0[_0x35812c('0x11')]=qs[_0x35812c('0x11')](_0xf87cd5['query']['offset']));_0x1cb1d0[_0x35812c('0x3a')]=qs[_0x35812c('0x4d')](_0xf87cd5[_0x35812c('0x7')][_0x35812c('0x4d')]),_0x1cb1d0[_0x35812c('0x12')]=qs[_0x35812c('0x41')](_['pick'](_0xf87cd5[_0x35812c('0x7')],_0x4899c4[_0x35812c('0x41')]),_0x1618ed);_0xf87cd5[_0x35812c('0x7')]['filter']&&(_0x1cb1d0[_0x35812c('0x12')]=_[_0x35812c('0x42')](_0x1cb1d0[_0x35812c('0x12')],{[Op['or']]:_[_0x35812c('0x1a')](_0x1618ed,function(_0x5b7477){const _0x618710=_0x35812c;if(_0x5b7477[_0x618710('0x46')]!=='VIRTUAL'){const _0x4bf83c={};return _0x4bf83c[_0x5b7477[_0x618710('0x6c')]]={[Op['like']]:'%'+_0xf87cd5[_0x618710('0x7')]['filter']+'%'},_0x4bf83c;}})}));_0x1cb1d0=_[_0x35812c('0x42')]({},_0x1cb1d0,_0xf87cd5[_0x35812c('0x6a')]);const _0x5f3afd={'where':_0x1cb1d0[_0x35812c('0x12')]};return db['MailQueue']['count'](_0x5f3afd)[_0x35812c('0x2e')](function(_0xba2dac){const _0x391294=_0x35812c;return _0x521b08[_0x391294('0x10')]=_0xba2dac,_0xf87cd5[_0x391294('0x7')][_0x391294('0x45')]&&(_0x1cb1d0[_0x391294('0x2f')]=[{'all':!![]}]),db[_0x391294('0x3')]['findAll'](_0x1cb1d0);})['then'](function(_0x596817){const _0x483527=_0x35812c;return _0x521b08[_0x483527('0x0')]=_0x596817,_0x521b08;})['then'](respondWithFilteredResult(_0x20f021,_0x1cb1d0))[_0x35812c('0x29')](handleError(_0x20f021,null));},exports[_0xf6633b('0x6d')]=function(_0x49e2bb,_0x563d49){const _0x5bbc00=_0xf6633b;let _0x4d402a={'raw':!![],'where':{'id':_0x49e2bb[_0x5bbc00('0x55')]['id']}};const _0x2aab07={};return _0x2aab07['model']=_[_0x5bbc00('0x5b')](db['MailQueue']['rawAttributes']),_0x2aab07[_0x5bbc00('0x7')]=_['keys'](_0x49e2bb[_0x5bbc00('0x7')]),_0x2aab07[_0x5bbc00('0x41')]=_[_0x5bbc00('0x24')](_0x2aab07[_0x5bbc00('0x37')],_0x2aab07['query']),_0x4d402a[_0x5bbc00('0x67')]=_[_0x5bbc00('0x24')](_0x2aab07[_0x5bbc00('0x37')],qs['fields'](_0x49e2bb['query'][_0x5bbc00('0x64')])),_0x4d402a[_0x5bbc00('0x67')]=_0x4d402a[_0x5bbc00('0x67')]['length']?_0x4d402a[_0x5bbc00('0x67')]:_0x2aab07[_0x5bbc00('0x37')],_0x49e2bb[_0x5bbc00('0x7')][_0x5bbc00('0x45')]&&(_0x4d402a[_0x5bbc00('0x2f')]=[{'all':!![]}]),_0x4d402a=_[_0x5bbc00('0x42')]({},_0x4d402a,_0x49e2bb[_0x5bbc00('0x6a')]),db[_0x5bbc00('0x3')][_0x5bbc00('0x2c')](_0x4d402a)[_0x5bbc00('0x2e')](handleEntityNotFound(_0x563d49,null))[_0x5bbc00('0x2e')](respondWithResult(_0x563d49,null))[_0x5bbc00('0x29')](handleError(_0x563d49,null));},exports['create']=function(_0x39d56c,_0x1471fb){const _0x225e66=_0xf6633b;return db[_0x225e66('0x3')][_0x225e66('0x50')](_0x39d56c[_0x225e66('0x33')],{})[_0x225e66('0x2e')](function(_0x275c67){const _0x49ad0f=_0x225e66,_0x46d249=_0x39d56c[_0x49ad0f('0x69')]['get']({'plain':!![]});if(!_0x46d249)throw new Error(_0x49ad0f('0x5'));if(_0x46d249[_0x49ad0f('0x18')]===_0x49ad0f('0x69')){const _0x15696b=_0x275c67[_0x49ad0f('0x25')]({'plain':!![]}),_0x7b6107=_0x49ad0f('0xa');return db['UserProfileSection'][_0x49ad0f('0x2c')]({'where':{'name':_0x7b6107,'userProfileId':_0x46d249[_0x49ad0f('0x61')]},'raw':!![]})['then'](function(_0x569acc){const _0x258fcc=_0x49ad0f;return _0x569acc&&_0x569acc[_0x258fcc('0x3d')]===0x0?db[_0x258fcc('0x48')][_0x258fcc('0x50')]({'name':_0x15696b[_0x258fcc('0x6c')],'resourceId':_0x15696b['id'],'type':_0x569acc[_0x258fcc('0x6c')],'sectionId':_0x569acc['id']},{})['then'](function(){return _0x275c67;}):_0x275c67;})[_0x49ad0f('0x29')](function(_0x4ab258){const _0x29c047=_0x49ad0f;logger['error'](_0x29c047('0x65'),_0x4ab258);throw _0x4ab258;});}return _0x275c67;})[_0x225e66('0x2e')](respondWithResult(_0x1471fb,0xc9))[_0x225e66('0x29')](handleError(_0x1471fb,null));},exports['update']=function(_0x53a6e6,_0x19307c){const _0x3e88d8=_0xf6633b;return _0x53a6e6[_0x3e88d8('0x33')]['id']&&delete _0x53a6e6[_0x3e88d8('0x33')]['id'],db['MailQueue'][_0x3e88d8('0x2c')]({'where':{'id':_0x53a6e6['params']['id']}})['then'](handleEntityNotFound(_0x19307c,null))[_0x3e88d8('0x2e')](saveUpdates(_0x53a6e6[_0x3e88d8('0x33')],null))[_0x3e88d8('0x2e')](respondWithResult(_0x19307c,null))[_0x3e88d8('0x29')](handleError(_0x19307c,null));},exports['destroy']=function(_0x436f85,_0x3a0c15){const _0x5ec682=_0xf6633b;return db[_0x5ec682('0x3')][_0x5ec682('0x2c')]({'where':{'id':_0x436f85[_0x5ec682('0x55')]['id']}})[_0x5ec682('0x2e')](handleEntityNotFound(_0x3a0c15,null))['then'](removeEntity(_0x3a0c15,null))[_0x5ec682('0x29')](handleError(_0x3a0c15,null));},exports[_0xf6633b('0x59')]=function(_0x54bb8e,_0x50d88d){const _0x50f967=_0xf6633b;return db[_0x50f967('0x3')][_0x50f967('0x59')]()['then'](respondWithResult(_0x50d88d,null))['catch'](handleError(_0x50d88d,null));},exports[_0xf6633b('0x49')]=function(_0x4c3dc9,_0x4811d8){const _0x5a35f7=_0xf6633b;let _0x16f5b4={'raw':!![],'where':{}};const _0x16c135={};let _0x3cf7e1;return db[_0x5a35f7('0x3')][_0x5a35f7('0x2c')]({'where':{'id':_0x4c3dc9[_0x5a35f7('0x55')]['id']}})[_0x5a35f7('0x2e')](handleEntityNotFound(_0x4811d8,null))[_0x5a35f7('0x2e')](function(_0x7be047){const _0x1f976b=_0x5a35f7;if(_0x7be047)return _0x3cf7e1=_0x7be047[_0x1f976b('0x25')]({'plain':!![]}),_0x16c135[_0x1f976b('0x37')]=_[_0x1f976b('0x5b')](db[_0x1f976b('0x4f')][_0x1f976b('0x6')]),_0x16c135[_0x1f976b('0x7')]=_['keys'](_0x4c3dc9[_0x1f976b('0x7')]),_0x16c135['filters']=_['intersection'](_0x16c135[_0x1f976b('0x37')],_0x16c135[_0x1f976b('0x7')]),_0x16f5b4[_0x1f976b('0x67')]=_[_0x1f976b('0x24')](_0x16c135['model'],qs[_0x1f976b('0x64')](_0x4c3dc9[_0x1f976b('0x7')][_0x1f976b('0x64')])),_0x16f5b4[_0x1f976b('0x67')]=_0x16f5b4[_0x1f976b('0x67')][_0x1f976b('0x38')]?_0x16f5b4[_0x1f976b('0x67')]:_0x16c135['model'],typeof _0x4c3dc9[_0x1f976b('0x7')]['nolimit']===_0x1f976b('0x19')&&(_0x16f5b4['limit']=qs[_0x1f976b('0x8')](_0x4c3dc9[_0x1f976b('0x7')][_0x1f976b('0x8')]),_0x16f5b4[_0x1f976b('0x11')]=qs['offset'](_0x4c3dc9[_0x1f976b('0x7')][_0x1f976b('0x11')])),_0x16f5b4[_0x1f976b('0x3a')]=qs[_0x1f976b('0x4d')](_0x4c3dc9[_0x1f976b('0x7')]['sort']),_0x16f5b4[_0x1f976b('0x12')]=qs[_0x1f976b('0x41')](_[_0x1f976b('0x52')](_0x4c3dc9[_0x1f976b('0x7')],_0x16c135['filters'])),_0x16f5b4[_0x1f976b('0x12')][_0x1f976b('0x2')]=_0x7be047['id'],_0x4c3dc9['query']['filter']&&(_0x16f5b4['where']=_[_0x1f976b('0x42')](_0x16f5b4[_0x1f976b('0x12')],{[Op['or']]:_[_0x1f976b('0x1a')](_0x16f5b4[_0x1f976b('0x67')],function(_0x15964d){const _0x20be0f=_0x1f976b,_0x37f58a={};return _0x37f58a[_0x15964d]={[Op[_0x20be0f('0x3b')]]:'%'+_0x4c3dc9['query'][_0x20be0f('0x14')]+'%'},_0x37f58a;})})),_0x16f5b4=_[_0x1f976b('0x42')]({},_0x16f5b4,_0x4c3dc9[_0x1f976b('0x6a')]),db[_0x1f976b('0x4f')]['findAll'](_0x16f5b4);})[_0x5a35f7('0x2e')](function(_0x4c5037){const _0x22993f=_0x5a35f7;if(_0x4c5037)return db[_0x22993f('0x1')][_0x22993f('0x3f')]({'where':{'id':_[_0x22993f('0x1a')](_0x4c5037,'UserId'),'role':_0x22993f('0x34')},'attributes':['id',_0x22993f('0x6c'),_0x22993f('0xb'),_0x22993f('0x60'),_0x22993f('0x2b')]});})['then'](function(_0xbddaac){const _0x133d46=_0x5a35f7;return _0xbddaac?{'count':_0xbddaac[_0x133d46('0x10')],'rows':_[_0x133d46('0x1a')](_0xbddaac[_0x133d46('0x0')],function(_0x6deb4f){const _0x75ac1a=_0x133d46;return{'membername':_0x6deb4f[_0x75ac1a('0x6c')],'UserId':_0x6deb4f['id'],'queue_name':_0x3cf7e1[_0x75ac1a('0x6c')],'MailQueueId':_0x3cf7e1['id'],'interface':util['format'](_0x75ac1a('0x1c'),_0x75ac1a('0x15'),_0x6deb4f[_0x75ac1a('0x6c')]),'penalty':0x0,'paused':_0x6deb4f['mailPause'],'createdAt':_0x6deb4f[_0x75ac1a('0x2b')],'updatedAt':_0x6deb4f[_0x75ac1a('0x60')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x4811d8,_0x16f5b4))[_0x5a35f7('0x29')](handleError(_0x4811d8,null));},exports[_0xf6633b('0x47')]=function(_0xbab764,_0x3f323a){const _0x85faa0=_0xf6633b;let _0x1a4b0e={};const _0x3eb013={};let _0x33934d,_0x25aa65;return db['MailQueue'][_0x85faa0('0x2c')]({'where':{'id':_0xbab764[_0x85faa0('0x55')]['id']}})['then'](handleEntityNotFound(_0x3f323a,null))[_0x85faa0('0x2e')](function(_0xda2ca4){const _0x2ceab5=_0x85faa0;if(_0xda2ca4)return _0x33934d=_0xda2ca4,_0x3eb013[_0x2ceab5('0x37')]=_[_0x2ceab5('0x5b')](db[_0x2ceab5('0x43')][_0x2ceab5('0x6')]),_0x3eb013[_0x2ceab5('0x7')]=_[_0x2ceab5('0x5b')](_0xbab764[_0x2ceab5('0x7')]),_0x3eb013['filters']=_[_0x2ceab5('0x24')](_0x3eb013[_0x2ceab5('0x37')],_0x3eb013[_0x2ceab5('0x7')]),_0x1a4b0e[_0x2ceab5('0x67')]=_[_0x2ceab5('0x24')](_0x3eb013[_0x2ceab5('0x37')],qs[_0x2ceab5('0x64')](_0xbab764['query'][_0x2ceab5('0x64')])),_0x1a4b0e[_0x2ceab5('0x67')]=_0x1a4b0e[_0x2ceab5('0x67')][_0x2ceab5('0x38')]?_0x1a4b0e['attributes']:_0x3eb013[_0x2ceab5('0x37')],_0x1a4b0e['order']=qs[_0x2ceab5('0x4d')](_0xbab764[_0x2ceab5('0x7')][_0x2ceab5('0x4d')]),_0x1a4b0e[_0x2ceab5('0x12')]=qs[_0x2ceab5('0x41')](_['pick'](_0xbab764[_0x2ceab5('0x7')],_0x3eb013[_0x2ceab5('0x41')])),_0xbab764[_0x2ceab5('0x7')][_0x2ceab5('0x14')]&&(_0x1a4b0e[_0x2ceab5('0x12')]=_[_0x2ceab5('0x42')](_0x1a4b0e['where'],{[Op['or']]:_[_0x2ceab5('0x1a')](_0x1a4b0e[_0x2ceab5('0x67')],function(_0x4b19f1){const _0x34b6ef=_0x2ceab5,_0x564497={};return _0x564497[_0x4b19f1]={[Op[_0x34b6ef('0x3b')]]:'%'+_0xbab764[_0x34b6ef('0x7')][_0x34b6ef('0x14')]+'%'},_0x564497;})})),_0x1a4b0e=_[_0x2ceab5('0x42')]({},_0x1a4b0e,_0xbab764[_0x2ceab5('0x6a')]),_0x33934d[_0x2ceab5('0x47')](_0x1a4b0e);})[_0x85faa0('0x2e')](function(_0x489604){const _0x20bd32=_0x85faa0;if(_0x489604)return _0x25aa65=_0x489604[_0x20bd32('0x38')],typeof _0xbab764['query']['nolimit']==='undefined'&&(_0x1a4b0e[_0x20bd32('0x8')]=qs[_0x20bd32('0x8')](_0xbab764[_0x20bd32('0x7')]['limit']),_0x1a4b0e[_0x20bd32('0x11')]=qs['offset'](_0xbab764[_0x20bd32('0x7')]['offset'])),_0x33934d[_0x20bd32('0x47')](_0x1a4b0e);})[_0x85faa0('0x2e')](function(_0xe520d8){if(_0xe520d8)return _0xe520d8?{'count':_0x25aa65,'rows':_0xe520d8}:null;})[_0x85faa0('0x2e')](respondWithResult(_0x3f323a,null))[_0x85faa0('0x29')](handleError(_0x3f323a,null));},exports['addTeams']=function(_0x3be9fc,_0x2a2f15){const _0x44bc4e=_0xf6633b,_0x2d5755=_0x3be9fc[_0x44bc4e('0x33')][_0x44bc4e('0xc')];return db[_0x44bc4e('0x43')][_0x44bc4e('0x17')]({'where':{'id':_0x2d5755},'attributes':['id'],'include':[{'model':db['User'],'as':_0x44bc4e('0x13'),'attributes':['id',_0x44bc4e('0x6c'),'online','voicePause',_0x44bc4e('0x28')],'raw':!![]}]})[_0x44bc4e('0x2e')](function(_0x327916){const _0x4d8fae=_0x44bc4e;if(_0x327916){const _0x5ea87e=_[_0x4d8fae('0x39')](_0x327916,function(_0xbf6e31){const _0x1f342c=_0x4d8fae,_0x1a421d=_0xbf6e31[_0x1f342c('0x25')]({'plain':!![]});return _0x1a421d[_0x1f342c('0x13')];});return db['MailQueue']['findOne']({'where':{'id':_0x3be9fc[_0x4d8fae('0x55')]['id']}})[_0x4d8fae('0x2e')](function(_0x40372d){const _0x564575=_0x4d8fae;return db[_0x564575('0xe')]['transaction'](function(_0x33e7ce){const _0x160c4a=_0x564575;return _0x40372d[_0x160c4a('0x4')](_0x2d5755,{'transaction':_0x33e7ce})['then'](function(){const _0x366652=_0x160c4a;return Promise[_0x366652('0x68')](_0x5ea87e,function(_0x401103){const _0x5e6789=_0x366652;return db[_0x5e6789('0x4f')]['findOrCreate']({'where':{'UserId':_0x401103['id'],'MailQueueId':_0x3be9fc[_0x5e6789('0x55')]['id']},'transaction':_0x33e7ce});});})[_0x160c4a('0x2e')](function(){const _0xb06c3=_0x160c4a;_0x5ea87e[_0xb06c3('0x5c')](function(_0x3ce93c){const _0x339530=_0xb06c3;socket[_0x339530('0xf')]('userMailQueue:save',{'UserId':_0x3ce93c['id'],'MailQueueId':_0x40372d['id']});});});});});}})[_0x44bc4e('0x2e')](respondWithStatusCode(_0x2a2f15,null))[_0x44bc4e('0x29')](handleError(_0x2a2f15,null));},exports[_0xf6633b('0x1e')]=function(_0x90d7ec,_0x44425c){const _0x285149=_0xf6633b;return db['Team'][_0x285149('0x17')]({'where':{'id':_0x90d7ec[_0x285149('0x7')][_0x285149('0xc')]},'attributes':['id'],'include':[{'model':db[_0x285149('0x1')],'as':_0x285149('0x13'),'attributes':['id'],'raw':!![]}]})[_0x285149('0x2e')](handleEntityNotFound(_0x44425c,null))[_0x285149('0x2e')](function(_0xe9c01e){const _0x37617a=_0x285149,_0x475bdf=_[_0x37617a('0x1a')](_0xe9c01e,'id');let _0x60292b=[];const _0x522e91=[],_0x3a1259=squel['select']();_0x3a1259[_0x37617a('0x31')](_0x37617a('0x32'))['from'](_0x37617a('0x4e'),'tq')[_0x37617a('0x56')](_0x37617a('0x5a'),'ut',_0x37617a('0x36'))[_0x37617a('0x12')](_0x37617a('0x35'),_0x90d7ec[_0x37617a('0x55')]['id']);for(let _0x36cd53=0x0;_0x36cd53<_0xe9c01e[_0x37617a('0x38')];_0x36cd53+=0x1){const _0x4e092a=_0xe9c01e[_0x36cd53];for(let _0x325882=0x0;_0x325882<_0x4e092a[_0x37617a('0x13')]['length'];_0x325882+=0x1){const _0x31a6fc=_0x4e092a[_0x37617a('0x13')][_0x325882],_0x16cf1b=_0x3a1259[_0x37617a('0x26')]();_0x16cf1b['where'](_0x37617a('0x2d'),_0x31a6fc['id']),_0x522e91['push'](db[_0x37617a('0xe')][_0x37617a('0x7')](_0x16cf1b[_0x37617a('0x54')](),{'type':db[_0x37617a('0xe')]['QueryTypes']['SELECT']})['then'](function(_0x1b4a8b){const _0xefebbc=_0x37617a;if(_0x1b4a8b[_0xefebbc('0x38')]===0x1)return _0x31a6fc['id'];else{const _0x1de26f=_[_0xefebbc('0x66')](_[_0xefebbc('0x1a')](_0x1b4a8b,'TeamId'),function(_0x3b90dc){return _['includes'](_0x475bdf,_0x3b90dc);});if(_0x1de26f)return _0x31a6fc['id'];}}));}}return Promise[_0x37617a('0x5f')](_0x522e91)[_0x37617a('0x2e')](function(_0x3e528b){const _0x162a7d=_0x37617a;return _0x60292b=_(_0x60292b)[_0x162a7d('0x44')](_0x3e528b)[_0x162a7d('0x2a')]()[_0x162a7d('0x3c')](),db[_0x162a7d('0x3')]['findOne']({'where':{'id':_0x90d7ec[_0x162a7d('0x55')]['id']}})[_0x162a7d('0x2e')](function(_0x15c528){const _0x33458a=_0x162a7d;return db[_0x33458a('0xe')][_0x33458a('0x4b')](function(_0x151139){const _0x117c9e=_0x33458a;return _0x15c528['removeTeams'](_0x90d7ec[_0x117c9e('0x7')]['ids'],{'transaction':_0x151139})['then'](function(){const _0x7c0934=_0x117c9e;if(!_[_0x7c0934('0x5e')](_0x60292b))return _0x15c528[_0x7c0934('0x22')](_0x60292b,{'transaction':_0x151139});})[_0x117c9e('0x2e')](function(){const _0x51d22f=_0x117c9e;_0x60292b[_0x51d22f('0x5c')](function(_0x457cc6){const _0x1e3e81=_0x51d22f;socket[_0x1e3e81('0xf')](_0x1e3e81('0x1b'),{'UserId':_0x457cc6,'MailQueueId':_0x15c528['id']});});});});});});})[_0x285149('0x2e')](respondWithStatusCode(_0x44425c,null))[_0x285149('0x29')](handleError(_0x44425c,null));},exports[_0xf6633b('0x51')]=function(_0xaf292b,_0x2c4442){const _0x2d4daa=_0xf6633b;return db['MailQueue'][_0x2d4daa('0x2c')]({'where':{'id':_0xaf292b['params']['id']}})[_0x2d4daa('0x2e')](function(_0x152aca){const _0x49d5e3=_0x2d4daa;if(_0x152aca)return _0x152aca['addAgents'](_0xaf292b[_0x49d5e3('0x33')][_0x49d5e3('0xc')],{'through':_[_0x49d5e3('0x9')](_0xaf292b['body'],['ids','id'])})[_0x49d5e3('0x2e')](function(_0x16d8f0){const _0x328c70=_0x49d5e3;for(let _0x26c97a=0x0;_0x26c97a<_0xaf292b['body'][_0x328c70('0xc')][_0x328c70('0x38')];_0x26c97a+=0x1){socket[_0x328c70('0xf')](_0x328c70('0x57'),{'UserId':_0xaf292b[_0x328c70('0x33')][_0x328c70('0xc')][_0x26c97a],'MailQueueId':_0xaf292b[_0x328c70('0x55')]['id']});}return _0x16d8f0;});})['then'](respondWithResult(_0x2c4442,null))[_0x2d4daa('0x29')](handleError(_0x2c4442,null));},exports[_0xf6633b('0x22')]=function(_0xc5db17,_0x36890b){const _0x2d663c=_0xf6633b;return db[_0x2d663c('0x3')][_0x2d663c('0x2c')]({'where':{'id':_0xc5db17[_0x2d663c('0x55')]['id']}})[_0x2d663c('0x2e')](handleEntityNotFound(_0x36890b,null))[_0x2d663c('0x2e')](function(_0x29f0b6){const _0x5856da=_0x2d663c;if(_0x29f0b6)return _0x29f0b6[_0x5856da('0x22')](_0xc5db17[_0x5856da('0x7')][_0x5856da('0xc')])['then'](function(){const _0x49d680=_0x5856da;if(_['isArray'](_0xc5db17[_0x49d680('0x7')][_0x49d680('0xc')]))for(let _0xe2f46e=0x0;_0xe2f46e<_0xc5db17[_0x49d680('0x7')][_0x49d680('0xc')][_0x49d680('0x38')];_0xe2f46e+=0x1){socket[_0x49d680('0xf')](_0x49d680('0x1b'),{'UserId':Number(_0xc5db17['query'][_0x49d680('0xc')][_0xe2f46e]),'MailQueueId':Number(_0xc5db17[_0x49d680('0x55')]['id'])});}else socket['emit'](_0x49d680('0x1b'),{'UserId':Number(_0xc5db17[_0x49d680('0x7')][_0x49d680('0xc')]),'MailQueueId':Number(_0xc5db17[_0x49d680('0x55')]['id'])});});})['then'](respondWithStatusCode(_0x36890b,null))[_0x2d663c('0x29')](handleError(_0x36890b,null));},exports[_0xf6633b('0x4c')]=function(_0x13bfa5,_0x403947){const _0x2a22b6=_0xf6633b;let _0x5c6cca={};const _0x5483b1={};let _0x109ca8,_0x6c67d6;return db['MailQueue'][_0x2a22b6('0x2c')]({'where':{'id':_0x13bfa5['params']['id']}})[_0x2a22b6('0x2e')](handleEntityNotFound(_0x403947,null))[_0x2a22b6('0x2e')](function(_0x50b2f1){const _0x4ecf3d=_0x2a22b6;if(_0x50b2f1)return _0x109ca8=_0x50b2f1,_0x5483b1[_0x4ecf3d('0x37')]=_[_0x4ecf3d('0x5b')](db['User'][_0x4ecf3d('0x6')]),_0x5483b1['query']=_[_0x4ecf3d('0x5b')](_0x13bfa5[_0x4ecf3d('0x7')]),_0x5483b1[_0x4ecf3d('0x41')]=_[_0x4ecf3d('0x24')](_0x5483b1['model'],_0x5483b1[_0x4ecf3d('0x7')]),_0x5c6cca[_0x4ecf3d('0x67')]=_[_0x4ecf3d('0x24')](_0x5483b1[_0x4ecf3d('0x37')],qs[_0x4ecf3d('0x64')](_0x13bfa5[_0x4ecf3d('0x7')]['fields'])),_0x5c6cca[_0x4ecf3d('0x67')]=_0x5c6cca[_0x4ecf3d('0x67')]['length']?_0x5c6cca[_0x4ecf3d('0x67')]:_0x5483b1[_0x4ecf3d('0x37')],_0x5c6cca[_0x4ecf3d('0x3a')]=qs[_0x4ecf3d('0x4d')](_0x13bfa5[_0x4ecf3d('0x7')]['sort']),_0x5c6cca[_0x4ecf3d('0x12')]=qs[_0x4ecf3d('0x41')](_[_0x4ecf3d('0x52')](_0x13bfa5[_0x4ecf3d('0x7')],_0x5483b1[_0x4ecf3d('0x41')])),_0x13bfa5[_0x4ecf3d('0x7')][_0x4ecf3d('0x14')]&&(_0x5c6cca[_0x4ecf3d('0x12')]=_[_0x4ecf3d('0x42')](_0x5c6cca[_0x4ecf3d('0x12')],{[Op['or']]:_[_0x4ecf3d('0x1a')](_0x5c6cca[_0x4ecf3d('0x67')],function(_0x277d86){const _0x349e64=_0x4ecf3d,_0x232e87={};return _0x232e87[_0x277d86]={[Op['like']]:'%'+_0x13bfa5[_0x349e64('0x7')][_0x349e64('0x14')]+'%'},_0x232e87;})})),_0x5c6cca=_[_0x4ecf3d('0x42')]({},_0x5c6cca,_0x13bfa5[_0x4ecf3d('0x6a')]),_0x109ca8[_0x4ecf3d('0x4c')](_0x5c6cca);})[_0x2a22b6('0x2e')](function(_0x8be726){const _0x38df43=_0x2a22b6;if(_0x8be726)return _0x6c67d6=_0x8be726['length'],typeof _0x13bfa5['query']['nolimit']===_0x38df43('0x19')&&(_0x5c6cca['limit']=qs[_0x38df43('0x8')](_0x13bfa5[_0x38df43('0x7')][_0x38df43('0x8')]),_0x5c6cca[_0x38df43('0x11')]=qs[_0x38df43('0x11')](_0x13bfa5['query'][_0x38df43('0x11')])),_0x109ca8['getAgents'](_0x5c6cca);})[_0x2a22b6('0x2e')](function(_0x4de697){if(_0x4de697)return _0x4de697?{'count':_0x6c67d6,'rows':_0x4de697}:null;})[_0x2a22b6('0x2e')](respondWithResult(_0x403947,null))[_0x2a22b6('0x29')](handleError(_0x403947,null));}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.events.js b/server/api/mailQueue/mailQueue.events.js index 302caaf..f49190d 100644 --- a/server/api/mailQueue/mailQueue.events.js +++ b/server/api/mailQueue/mailQueue.events.js @@ -1 +1 @@ -const a421_0xb58f=['../../mysqldb','update','MailQueue','setMaxListeners','exports','emit','events','addHook'];(function(_0x27689f,_0xb58f5b){const _0x12e29c=function(_0x32cab1){while(--_0x32cab1){_0x27689f['push'](_0x27689f['shift']());}};_0x12e29c(++_0xb58f5b);}(a421_0xb58f,0xed));const a421_0x12e2=function(_0x27689f,_0xb58f5b){_0x27689f=_0x27689f-0x0;let _0x12e29c=a421_0xb58f[_0x27689f];return _0x12e29c;};const _0x282d8e=a421_0x12e2;'use strict';const EventEmitter=require(_0x282d8e('0x1')),MailQueue=require(_0x282d8e('0x3'))['db'][_0x282d8e('0x5')],MailQueueEvents=new EventEmitter();MailQueueEvents[_0x282d8e('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':_0x282d8e('0x4'),'afterDestroy':'remove'};function emitEvent(_0x32cab1){return function(_0x358a9b){const _0x1fda69=a421_0x12e2;MailQueueEvents[_0x1fda69('0x0')](_0x32cab1+':'+_0x358a9b['id'],_0x358a9b),MailQueueEvents[_0x1fda69('0x0')](_0x32cab1,_0x358a9b);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailQueue[_0x282d8e('0x2')](e,emitEvent(event));}}module[_0x282d8e('0x7')]=MailQueueEvents; \ No newline at end of file +const a421_0x4a7c=['emit','update','setMaxListeners','events','addHook','../../mysqldb','MailQueue','undefined','exports'];(function(_0x5c28a3,_0x4a7c0a){const _0x235309=function(_0x4e7ba4){while(--_0x4e7ba4){_0x5c28a3['push'](_0x5c28a3['shift']());}};_0x235309(++_0x4a7c0a);}(a421_0x4a7c,0xfb));const a421_0x2353=function(_0x5c28a3,_0x4a7c0a){_0x5c28a3=_0x5c28a3-0x0;let _0x235309=a421_0x4a7c[_0x5c28a3];return _0x235309;};const _0x535ca8=a421_0x2353;'use strict';const EventEmitter=require(_0x535ca8('0x4')),MailQueue=require(_0x535ca8('0x6'))['db'][_0x535ca8('0x7')],MailQueueEvents=new EventEmitter();MailQueueEvents[_0x535ca8('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':_0x535ca8('0x2'),'afterDestroy':'remove'};function emitEvent(_0x4e7ba4){return function(_0x267bc3){const _0x5b529c=a421_0x2353;MailQueueEvents[_0x5b529c('0x1')](_0x4e7ba4+':'+_0x267bc3['id'],_0x267bc3),MailQueueEvents[_0x5b529c('0x1')](_0x4e7ba4,_0x267bc3);};}for(const e in events){if(typeof events[e]!==_0x535ca8('0x8')){const event=events[e];MailQueue[_0x535ca8('0x5')](e,emitEvent(event));}}module[_0x535ca8('0x0')]=MailQueueEvents; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.model.js b/server/api/mailQueue/mailQueue.model.js index d967a0b..818d012 100644 --- a/server/api/mailQueue/mailQueue.model.js +++ b/server/api/mailQueue/mailQueue.model.js @@ -1 +1 @@ -const a422_0x2735=['MailQueue','mail_queues','./mailQueue.attributes','exports'];(function(_0xc28d0f,_0x2735cb){const _0xddf8b7=function(_0x345255){while(--_0x345255){_0xc28d0f['push'](_0xc28d0f['shift']());}};_0xddf8b7(++_0x2735cb);}(a422_0x2735,0x148));const a422_0xddf8=function(_0xc28d0f,_0x2735cb){_0xc28d0f=_0xc28d0f-0x0;let _0xddf8b7=a422_0x2735[_0xc28d0f];return _0xddf8b7;};const _0x53291a=a422_0xddf8;'use strict';const attributes=require(_0x53291a('0x2'));module[_0x53291a('0x3')]=function(_0x345255){const _0x2721dd=_0x53291a,_0x4904f5=_0x345255['define'](_0x2721dd('0x0'),attributes,{'tableName':_0x2721dd('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4904f5;}; \ No newline at end of file +const a422_0x40a0=['define','mail_queues','exports','./mailQueue.attributes'];(function(_0x1efebd,_0x40a00b){const _0x4fd1f4=function(_0x5e16c4){while(--_0x5e16c4){_0x1efebd['push'](_0x1efebd['shift']());}};_0x4fd1f4(++_0x40a00b);}(a422_0x40a0,0x16c));const a422_0x4fd1=function(_0x1efebd,_0x40a00b){_0x1efebd=_0x1efebd-0x0;let _0x4fd1f4=a422_0x40a0[_0x1efebd];return _0x4fd1f4;};const _0x4dc534=a422_0x4fd1;'use strict';const attributes=require(_0x4dc534('0x3'));module[_0x4dc534('0x2')]=function(_0x5e16c4){const _0x6aa77d=_0x4dc534,_0x58b831=_0x5e16c4[_0x6aa77d('0x0')]('MailQueue',attributes,{'tableName':_0x6aa77d('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x58b831;}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.rpc.js b/server/api/mailQueue/mailQueue.rpc.js index 85c7fe2..05f9185 100644 --- a/server/api/mailQueue/mailQueue.rpc.js +++ b/server/api/mailQueue/mailQueue.rpc.js @@ -1 +1 @@ -const a423_0x4fbb=['debug','where','raw','map','findOne','limit','ShowMailQueue','register','GetMailQueue','stringify','MailQueue','rpc','attributes','findAll','lodash','then','catch','options','message','model','../../rediscache','error','include','info'];(function(_0x32f093,_0x4fbbfa){const _0x2abb6c=function(_0x3f9771){while(--_0x3f9771){_0x32f093['push'](_0x32f093['shift']());}};_0x2abb6c(++_0x4fbbfa);}(a423_0x4fbb,0x195));const a423_0x2abb=function(_0x32f093,_0x4fbbfa){_0x32f093=_0x32f093-0x0;let _0x2abb6c=a423_0x4fbb[_0x32f093];return _0x2abb6c;};const _0xfa8018=a423_0x2abb;'use strict';const _=require(_0xfa8018('0x11')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0xfa8018('0xe')),{getSocket}=require(_0xfa8018('0x17')),socket=getSocket();require('./mailQueue.socket')[_0xfa8018('0xa')](socket),exports[_0xfa8018('0xb')]=function(_0x3f9771){const _0x488dbe=this;return new Promise(function(_0x263ddc,_0x53c220){const _0x2d55a2=a423_0x2abb;return db[_0x2d55a2('0xd')][_0x2d55a2('0x10')]({'raw':_0x3f9771[_0x2d55a2('0x14')]?_0x3f9771[_0x2d55a2('0x14')][_0x2d55a2('0x5')]===undefined?!![]:![]:!![],'where':_0x3f9771[_0x2d55a2('0x14')]?_0x3f9771['options'][_0x2d55a2('0x4')]||null:null,'attributes':_0x3f9771[_0x2d55a2('0x14')]?_0x3f9771[_0x2d55a2('0x14')]['attributes']||null:null,'limit':_0x3f9771[_0x2d55a2('0x14')]?_0x3f9771[_0x2d55a2('0x14')][_0x2d55a2('0x8')]||null:null,'include':_0x3f9771[_0x2d55a2('0x14')]?_0x3f9771['options'][_0x2d55a2('0x1')]?_['map'](_0x3f9771['options']['include'],function(_0x2c431d){const _0x1d7da9=_0x2d55a2;return{'model':db[_0x2c431d[_0x1d7da9('0x16')]],'as':_0x2c431d['as'],'attributes':_0x2c431d[_0x1d7da9('0xf')],'include':_0x2c431d[_0x1d7da9('0x1')]?_[_0x1d7da9('0x6')](_0x2c431d[_0x1d7da9('0x1')],function(_0x2bd122){const _0x25eb7d=_0x1d7da9;return{'model':db[_0x2bd122[_0x25eb7d('0x16')]],'as':_0x2bd122['as'],'attributes':_0x2bd122[_0x25eb7d('0xf')],'include':_0x2bd122[_0x25eb7d('0x1')]?_[_0x25eb7d('0x6')](_0x2bd122['include'],function(_0x56e5f9){const _0x40b1c9=_0x25eb7d;return{'model':db[_0x56e5f9[_0x40b1c9('0x16')]],'as':_0x56e5f9['as'],'attributes':_0x56e5f9[_0x40b1c9('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4be985){const _0x4b297b=_0x2d55a2;logger[_0x4b297b('0x2')](_0x4b297b('0xb'),_0x3f9771),logger[_0x4b297b('0x3')](_0x4b297b('0xb'),_0x3f9771,JSON[_0x4b297b('0xc')](_0x4be985)),_0x263ddc(_0x4be985);})['catch'](function(_0x5a1438){const _0x5e6e1f=_0x2d55a2;logger['error']('GetMailQueue',_0x5a1438['message'],_0x3f9771),_0x53c220(_0x488dbe[_0x5e6e1f('0x0')](0x1f4,_0x5a1438['message']));});});},exports[_0xfa8018('0x9')]=function(_0x3e9b1a){const _0x4aff2f=this;return new Promise(function(_0x497e40,_0x32a7d4){const _0xd56d70=a423_0x2abb;return db[_0xd56d70('0xd')][_0xd56d70('0x7')]({'raw':_0x3e9b1a['options']?_0x3e9b1a[_0xd56d70('0x14')][_0xd56d70('0x5')]===undefined?!![]:![]:!![],'where':_0x3e9b1a[_0xd56d70('0x14')]?_0x3e9b1a[_0xd56d70('0x14')][_0xd56d70('0x4')]||null:null,'attributes':_0x3e9b1a[_0xd56d70('0x14')]?_0x3e9b1a[_0xd56d70('0x14')][_0xd56d70('0xf')]||null:null,'include':_0x3e9b1a[_0xd56d70('0x14')]?_0x3e9b1a[_0xd56d70('0x14')][_0xd56d70('0x1')]?_['map'](_0x3e9b1a[_0xd56d70('0x14')][_0xd56d70('0x1')],function(_0xd0019c){const _0x26cb22=_0xd56d70;return{'model':db[_0xd0019c[_0x26cb22('0x16')]],'as':_0xd0019c['as'],'attributes':_0xd0019c['attributes'],'include':_0xd0019c[_0x26cb22('0x1')]?_[_0x26cb22('0x6')](_0xd0019c[_0x26cb22('0x1')],function(_0x2f0055){const _0x443c07=_0x26cb22;return{'model':db[_0x2f0055[_0x443c07('0x16')]],'as':_0x2f0055['as'],'attributes':_0x2f0055[_0x443c07('0xf')],'include':_0x2f0055[_0x443c07('0x1')]?_[_0x443c07('0x6')](_0x2f0055[_0x443c07('0x1')],function(_0x276b12){const _0x717ab1=_0x443c07;return{'model':db[_0x276b12[_0x717ab1('0x16')]],'as':_0x276b12['as'],'attributes':_0x276b12[_0x717ab1('0xf')]};}):[]};}):[]};}):[]:[]})[_0xd56d70('0x12')](function(_0x79705e){const _0x44c939=_0xd56d70;logger[_0x44c939('0x2')](_0x44c939('0x9'),_0x3e9b1a),logger[_0x44c939('0x3')]('ShowMailQueue',_0x3e9b1a,JSON['stringify'](_0x79705e)),_0x497e40(_0x79705e);})[_0xd56d70('0x13')](function(_0x34d6b7){const _0x2b8d95=_0xd56d70;logger[_0x2b8d95('0x0')]('ShowMailQueue',_0x34d6b7[_0x2b8d95('0x15')],_0x3e9b1a),_0x32a7d4(_0x4aff2f[_0x2b8d95('0x0')](0x1f4,_0x34d6b7[_0x2b8d95('0x15')]));});});}; \ No newline at end of file +const a423_0x175a=['debug','findAll','include','MailQueue','attributes','rpc','catch','lodash','ShowMailQueue','./mailQueue.socket','../../rediscache','message','limit','../../mysqldb','raw','register','options','info','map','stringify','where','then','error','GetMailQueue','model','../../config/logger'];(function(_0x8f4e7e,_0x175a9e){const _0x79d3d3=function(_0x4f6559){while(--_0x4f6559){_0x8f4e7e['push'](_0x8f4e7e['shift']());}};_0x79d3d3(++_0x175a9e);}(a423_0x175a,0x14e));const a423_0x79d3=function(_0x8f4e7e,_0x175a9e){_0x8f4e7e=_0x8f4e7e-0x0;let _0x79d3d3=a423_0x175a[_0x8f4e7e];return _0x79d3d3;};const _0x29e6ff=a423_0x79d3;'use strict';const _=require(_0x29e6ff('0xb')),db=require(_0x29e6ff('0x11'))['db'],logger=require(_0x29e6ff('0x3'))(_0x29e6ff('0x9')),{getSocket}=require(_0x29e6ff('0xe')),socket=getSocket();require(_0x29e6ff('0xd'))[_0x29e6ff('0x13')](socket),exports['GetMailQueue']=function(_0x4f6559){const _0x32081b=this;return new Promise(function(_0x5e9432,_0x115e7e){const _0x23bee8=a423_0x79d3;return db['MailQueue'][_0x23bee8('0x5')]({'raw':_0x4f6559[_0x23bee8('0x14')]?_0x4f6559[_0x23bee8('0x14')]['raw']===undefined?!![]:![]:!![],'where':_0x4f6559[_0x23bee8('0x14')]?_0x4f6559[_0x23bee8('0x14')]['where']||null:null,'attributes':_0x4f6559[_0x23bee8('0x14')]?_0x4f6559['options'][_0x23bee8('0x8')]||null:null,'limit':_0x4f6559['options']?_0x4f6559[_0x23bee8('0x14')][_0x23bee8('0x10')]||null:null,'include':_0x4f6559['options']?_0x4f6559[_0x23bee8('0x14')][_0x23bee8('0x6')]?_['map'](_0x4f6559[_0x23bee8('0x14')][_0x23bee8('0x6')],function(_0x5214ad){const _0x543199=_0x23bee8;return{'model':db[_0x5214ad[_0x543199('0x2')]],'as':_0x5214ad['as'],'attributes':_0x5214ad[_0x543199('0x8')],'include':_0x5214ad[_0x543199('0x6')]?_[_0x543199('0x16')](_0x5214ad[_0x543199('0x6')],function(_0x3855ed){const _0x5d142c=_0x543199;return{'model':db[_0x3855ed[_0x5d142c('0x2')]],'as':_0x3855ed['as'],'attributes':_0x3855ed[_0x5d142c('0x8')],'include':_0x3855ed[_0x5d142c('0x6')]?_[_0x5d142c('0x16')](_0x3855ed[_0x5d142c('0x6')],function(_0x31b912){const _0x2e6f93=_0x5d142c;return{'model':db[_0x31b912[_0x2e6f93('0x2')]],'as':_0x31b912['as'],'attributes':_0x31b912[_0x2e6f93('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1d21d6){const _0x34426d=_0x23bee8;logger['info']('GetMailQueue',_0x4f6559),logger[_0x34426d('0x4')]('GetMailQueue',_0x4f6559,JSON[_0x34426d('0x17')](_0x1d21d6)),_0x5e9432(_0x1d21d6);})[_0x23bee8('0xa')](function(_0x1d32cc){const _0x43278c=_0x23bee8;logger[_0x43278c('0x0')](_0x43278c('0x1'),_0x1d32cc['message'],_0x4f6559),_0x115e7e(_0x32081b[_0x43278c('0x0')](0x1f4,_0x1d32cc[_0x43278c('0xf')]));});});},exports[_0x29e6ff('0xc')]=function(_0x6830e1){const _0x1d0ecf=this;return new Promise(function(_0x3fb8bd,_0x5be47b){const _0x44a55d=a423_0x79d3;return db[_0x44a55d('0x7')]['findOne']({'raw':_0x6830e1[_0x44a55d('0x14')]?_0x6830e1[_0x44a55d('0x14')][_0x44a55d('0x12')]===undefined?!![]:![]:!![],'where':_0x6830e1['options']?_0x6830e1[_0x44a55d('0x14')][_0x44a55d('0x18')]||null:null,'attributes':_0x6830e1[_0x44a55d('0x14')]?_0x6830e1[_0x44a55d('0x14')]['attributes']||null:null,'include':_0x6830e1[_0x44a55d('0x14')]?_0x6830e1[_0x44a55d('0x14')]['include']?_['map'](_0x6830e1[_0x44a55d('0x14')][_0x44a55d('0x6')],function(_0x22dc44){const _0x66862a=_0x44a55d;return{'model':db[_0x22dc44['model']],'as':_0x22dc44['as'],'attributes':_0x22dc44[_0x66862a('0x8')],'include':_0x22dc44[_0x66862a('0x6')]?_[_0x66862a('0x16')](_0x22dc44[_0x66862a('0x6')],function(_0x126ba3){const _0x455b70=_0x66862a;return{'model':db[_0x126ba3[_0x455b70('0x2')]],'as':_0x126ba3['as'],'attributes':_0x126ba3['attributes'],'include':_0x126ba3[_0x455b70('0x6')]?_[_0x455b70('0x16')](_0x126ba3[_0x455b70('0x6')],function(_0x1c6b02){const _0x2b7f06=_0x455b70;return{'model':db[_0x1c6b02[_0x2b7f06('0x2')]],'as':_0x1c6b02['as'],'attributes':_0x1c6b02[_0x2b7f06('0x8')]};}):[]};}):[]};}):[]:[]})[_0x44a55d('0x19')](function(_0x1d3668){const _0x210848=_0x44a55d;logger[_0x210848('0x15')]('ShowMailQueue',_0x6830e1),logger['debug'](_0x210848('0xc'),_0x6830e1,JSON['stringify'](_0x1d3668)),_0x3fb8bd(_0x1d3668);})[_0x44a55d('0xa')](function(_0x540225){const _0x5e13d2=_0x44a55d;logger['error'](_0x5e13d2('0xc'),_0x540225[_0x5e13d2('0xf')],_0x6830e1),_0x5be47b(_0x1d0ecf[_0x5e13d2('0x0')](0x1f4,_0x540225[_0x5e13d2('0xf')]));});});}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.socket.js b/server/api/mailQueue/mailQueue.socket.js index 2d1fbf2..215d35e 100644 --- a/server/api/mailQueue/mailQueue.socket.js +++ b/server/api/mailQueue/mailQueue.socket.js @@ -1 +1 @@ -const a424_0x30b3=['length','save','mailQueue:','update','emit','remove'];(function(_0x5ae585,_0x30b3a9){const _0x12e8bc=function(_0x6459f5){while(--_0x6459f5){_0x5ae585['push'](_0x5ae585['shift']());}};_0x12e8bc(++_0x30b3a9);}(a424_0x30b3,0xa2));const a424_0x12e8=function(_0x5ae585,_0x30b3a9){_0x5ae585=_0x5ae585-0x0;let _0x12e8bc=a424_0x30b3[_0x5ae585];return _0x12e8bc;};const _0x5c798a=a424_0x12e8;'use strict';const MailQueueEvents=require('./mailQueue.events'),events=[_0x5c798a('0x1'),_0x5c798a('0x5'),_0x5c798a('0x3')];function createListener(_0x6459f5,_0x5a2233){return function(_0x14a8a4){const _0x449308=a424_0x12e8;_0x5a2233[_0x449308('0x4')](_0x6459f5,_0x14a8a4);};}exports['register']=function(_0x3efd80){const _0x18694d=_0x5c798a;for(let _0x1aaea1=0x0,_0x5583e4=events[_0x18694d('0x0')];_0x1aaea1<_0x5583e4;_0x1aaea1++){const _0x3f4fa1=events[_0x1aaea1],_0x52feea=createListener(_0x18694d('0x2')+_0x3f4fa1,_0x3efd80);MailQueueEvents['on'](_0x3f4fa1,_0x52feea);}}; \ No newline at end of file +const a424_0x118d=['./mailQueue.events','emit','save','remove','update'];(function(_0x25b9f6,_0x118d35){const _0xe4b5b1=function(_0x313648){while(--_0x313648){_0x25b9f6['push'](_0x25b9f6['shift']());}};_0xe4b5b1(++_0x118d35);}(a424_0x118d,0x6c));const a424_0xe4b5=function(_0x25b9f6,_0x118d35){_0x25b9f6=_0x25b9f6-0x0;let _0xe4b5b1=a424_0x118d[_0x25b9f6];return _0xe4b5b1;};const _0x55d207=a424_0xe4b5;'use strict';const MailQueueEvents=require(_0x55d207('0x2')),events=[_0x55d207('0x4'),_0x55d207('0x0'),_0x55d207('0x1')];function createListener(_0x313648,_0x303e79){return function(_0x1cb747){const _0x28dd96=a424_0xe4b5;_0x303e79[_0x28dd96('0x3')](_0x313648,_0x1cb747);};}exports['register']=function(_0x1633d7){for(let _0x2c71ef=0x0,_0x4a2a5e=events['length'];_0x2c71ef<_0x4a2a5e;_0x2c71ef++){const _0x37c92b=events[_0x2c71ef],_0x2a929b=createListener('mailQueue:'+_0x37c92b,_0x1633d7);MailQueueEvents['on'](_0x37c92b,_0x2a929b);}}; \ No newline at end of file diff --git a/server/api/mailQueueReport/index.js b/server/api/mailQueueReport/index.js index 1443ac7..c6a05fb 100644 --- a/server/api/mailQueueReport/index.js +++ b/server/api/mailQueueReport/index.js @@ -1 +1 @@ -const a425_0x15e0=['destroy','Router','/:id','delete','index','exports','/describe','put','describe','show','isAuthenticated','get','post','express'];(function(_0x33b39a,_0x15e071){const _0x4a9ec6=function(_0xc6d156){while(--_0xc6d156){_0x33b39a['push'](_0x33b39a['shift']());}};_0x4a9ec6(++_0x15e071);}(a425_0x15e0,0x1e2));const a425_0x4a9e=function(_0x33b39a,_0x15e071){_0x33b39a=_0x33b39a-0x0;let _0x4a9ec6=a425_0x15e0[_0x33b39a];return _0x4a9ec6;};const _0x554946=a425_0x4a9e;'use strict';const express=require(_0x554946('0x7')),router=express[_0x554946('0x9')](),auth=require('../../components/auth/service'),controller=require('./mailQueueReport.controller');router[_0x554946('0x5')]('/',auth[_0x554946('0x4')](),controller[_0x554946('0xc')]),router[_0x554946('0x5')](_0x554946('0x0'),auth[_0x554946('0x4')](),controller[_0x554946('0x2')]),router[_0x554946('0x5')](_0x554946('0xa'),auth[_0x554946('0x4')](),controller[_0x554946('0x3')]),router[_0x554946('0x6')]('/',auth[_0x554946('0x4')](),controller['create']),router[_0x554946('0x1')](_0x554946('0xa'),auth[_0x554946('0x4')](),controller['update']),router[_0x554946('0xb')](_0x554946('0xa'),auth[_0x554946('0x4')](),controller[_0x554946('0x8')]),module[_0x554946('0xd')]=router; \ No newline at end of file +const a425_0x174d=['show','index','/:id','destroy','Router','isAuthenticated','../../components/auth/service','express','delete','get','exports','update','create','/describe','describe','put'];(function(_0x59016a,_0x174dab){const _0x27eca9=function(_0x9a39e){while(--_0x9a39e){_0x59016a['push'](_0x59016a['shift']());}};_0x27eca9(++_0x174dab);}(a425_0x174d,0x152));const a425_0x27ec=function(_0x59016a,_0x174dab){_0x59016a=_0x59016a-0x0;let _0x27eca9=a425_0x174d[_0x59016a];return _0x27eca9;};const _0x863919=a425_0x27ec;'use strict';const express=require(_0x863919('0x5')),router=express[_0x863919('0x2')](),auth=require(_0x863919('0x4')),controller=require('./mailQueueReport.controller');router[_0x863919('0x7')]('/',auth[_0x863919('0x3')](),controller[_0x863919('0xf')]),router['get'](_0x863919('0xb'),auth[_0x863919('0x3')](),controller[_0x863919('0xc')]),router[_0x863919('0x7')]('/:id',auth[_0x863919('0x3')](),controller[_0x863919('0xe')]),router['post']('/',auth[_0x863919('0x3')](),controller[_0x863919('0xa')]),router[_0x863919('0xd')](_0x863919('0x0'),auth[_0x863919('0x3')](),controller[_0x863919('0x9')]),router[_0x863919('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x863919('0x1')]),module[_0x863919('0x8')]=router; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.attributes.js b/server/api/mailQueueReport/mailQueueReport.attributes.js index 6bca104..80f821a 100644 --- a/server/api/mailQueueReport/mailQueueReport.attributes.js +++ b/server/api/mailQueueReport/mailQueueReport.attributes.js @@ -1 +1 @@ -const a426_0x2768=['STRING','sequelize','DATE','exports'];(function(_0x55b9be,_0x27683c){const _0x42dcca=function(_0xf02831){while(--_0xf02831){_0x55b9be['push'](_0x55b9be['shift']());}};_0x42dcca(++_0x27683c);}(a426_0x2768,0x1d0));const a426_0x42dc=function(_0x55b9be,_0x27683c){_0x55b9be=_0x55b9be-0x0;let _0x42dcca=a426_0x2768[_0x55b9be];return _0x42dcca;};const _0x356b7b=a426_0x42dc;'use strict';const Sequelize=require(_0x356b7b('0x1'));module[_0x356b7b('0x3')]={'uniqueid':{'type':Sequelize[_0x356b7b('0x0')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0x356b7b('0x2')]},'acceptAt':{'type':Sequelize[_0x356b7b('0x2')]},'exitAt':{'type':Sequelize[_0x356b7b('0x2')]},'reason':{'type':Sequelize[_0x356b7b('0x0')]}}; \ No newline at end of file +const a426_0x403b=['DATE','exports','STRING'];(function(_0x44b470,_0x403b58){const _0x2885d7=function(_0x55d0d8){while(--_0x55d0d8){_0x44b470['push'](_0x44b470['shift']());}};_0x2885d7(++_0x403b58);}(a426_0x403b,0x149));const a426_0x2885=function(_0x44b470,_0x403b58){_0x44b470=_0x44b470-0x0;let _0x2885d7=a426_0x403b[_0x44b470];return _0x2885d7;};const _0x517516=a426_0x2885;'use strict';const Sequelize=require('sequelize');module[_0x517516('0x2')]={'uniqueid':{'type':Sequelize[_0x517516('0x0')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x517516('0x1')]},'leaveAt':{'type':Sequelize[_0x517516('0x1')]},'acceptAt':{'type':Sequelize[_0x517516('0x1')]},'exitAt':{'type':Sequelize[_0x517516('0x1')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.controller.js b/server/api/mailQueueReport/mailQueueReport.controller.js index 57707bb..0e6a1eb 100644 --- a/server/api/mailQueueReport/mailQueueReport.controller.js +++ b/server/api/mailQueueReport/mailQueueReport.controller.js @@ -1 +1 @@ -const a427_0x1e5b=['describe','lodash','model','body','sequelize','length','sort','nolimit','intersection','end','like','options','MailQueueReport','then','rawAttributes','index','query','name','map','catch','json','update','findAll','findOne','api','offset','include','fields','params','status','filters','sendStatus','error','show','includeAll','count','fieldName','limit','destroy','set','attributes','merge','filter','Content-Range','type','pick','send','create','keys','stack','rows','where'];(function(_0x2b3d17,_0x1e5b50){const _0x8e9da9=function(_0x187a27){while(--_0x187a27){_0x2b3d17['push'](_0x2b3d17['shift']());}};_0x8e9da9(++_0x1e5b50);}(a427_0x1e5b,0x12a));const a427_0x8e9d=function(_0x2b3d17,_0x1e5b50){_0x2b3d17=_0x2b3d17-0x0;let _0x8e9da9=a427_0x1e5b[_0x2b3d17];return _0x8e9da9;};const _0x33bc34=a427_0x8e9d;'use strict';const _=require(_0x33bc34('0xf')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x33bc34('0x26')),db=require('../../mysqldb')['db'],{Op}=require(_0x33bc34('0x12'));function respondWithResult(_0x187a27,_0x2e03ef){return _0x2e03ef=_0x2e03ef||0xc8,function(_0x417798){const _0x2d1ebf=a427_0x8e9d;if(_0x417798)return _0x187a27[_0x2d1ebf('0x2b')](_0x2e03ef)[_0x2d1ebf('0x22')](_0x417798);};}function respondWithFilteredResult(_0x39104a,_0xa12dce){return function(_0x1e3089){const _0x4199f6=a427_0x8e9d;if(_0x1e3089){const _0x1b13ef=_0x1e3089['count'],_0x36ba8a=_0xa12dce[_0x4199f6('0x27')];let _0x8e8891=_0xa12dce['offset']+_0xa12dce[_0x4199f6('0x33')],_0x356c50;return _0x8e8891>=_0x1b13ef?(_0x8e8891=_0x1b13ef,_0x356c50=0xc8):_0x356c50=0xce,_0x39104a[_0x4199f6('0x2b')](_0x356c50),_0x39104a[_0x4199f6('0x1')](_0x4199f6('0x5'),_0x36ba8a+'-'+_0x8e8891+'/'+_0x1b13ef)['json'](_0x1e3089);}return null;};}function saveUpdates(_0x503e57){return function(_0x50830b){const _0x12e654=a427_0x8e9d;if(_0x50830b)return _0x50830b[_0x12e654('0x23')](_0x503e57)[_0x12e654('0x1b')](function(_0x515b5e){return _0x515b5e;});return null;};}function removeEntity(_0x3edd82){return function(_0x3ef1bb){const _0x241321=a427_0x8e9d;if(_0x3ef1bb)return _0x3ef1bb[_0x241321('0x0')]()[_0x241321('0x1b')](function(){const _0x178da6=_0x241321;_0x3edd82[_0x178da6('0x2b')](0xcc)[_0x178da6('0x17')]();});};}function handleEntityNotFound(_0x1002e0){return function(_0x49dfb9){const _0x29f320=a427_0x8e9d;return!_0x49dfb9&&_0x1002e0[_0x29f320('0x2d')](0x194),_0x49dfb9;};}function handleError(_0x46ac5e,_0x4cc646){return _0x4cc646=_0x4cc646||0x1f4,function(_0x1b8bb6){const _0x440114=a427_0x8e9d;logger[_0x440114('0x2e')](_0x1b8bb6[_0x440114('0xb')]),_0x1b8bb6[_0x440114('0x1f')]&&delete _0x1b8bb6['name'],_0x46ac5e[_0x440114('0x2b')](_0x4cc646)[_0x440114('0x8')](_0x1b8bb6);};}exports[_0x33bc34('0x1d')]=function(_0x4cd17c,_0xdb92cc){const _0x98e31c=_0x33bc34;let _0xfa17fc={};const _0x1bd2bf={},_0x5a73d6={'count':0x0,'rows':[]},_0x18774e=_[_0x98e31c('0x20')](db[_0x98e31c('0x1a')][_0x98e31c('0x1c')],function(_0x204034){const _0x125843=_0x98e31c;return{'name':_0x204034[_0x125843('0x32')],'type':_0x204034[_0x125843('0x6')]['key']};});_0x1bd2bf['model']=_[_0x98e31c('0x20')](_0x18774e,_0x98e31c('0x1f')),_0x1bd2bf[_0x98e31c('0x1e')]=_[_0x98e31c('0xa')](_0x4cd17c[_0x98e31c('0x1e')]),_0x1bd2bf[_0x98e31c('0x2c')]=_[_0x98e31c('0x16')](_0x1bd2bf[_0x98e31c('0x10')],_0x1bd2bf['query']),_0xfa17fc[_0x98e31c('0x2')]=_[_0x98e31c('0x16')](_0x1bd2bf['model'],qs[_0x98e31c('0x29')](_0x4cd17c[_0x98e31c('0x1e')][_0x98e31c('0x29')])),_0xfa17fc['attributes']=_0xfa17fc[_0x98e31c('0x2')][_0x98e31c('0x13')]?_0xfa17fc[_0x98e31c('0x2')]:_0x1bd2bf['model'];typeof _0x4cd17c[_0x98e31c('0x1e')][_0x98e31c('0x15')]==='undefined'&&(_0xfa17fc[_0x98e31c('0x33')]=qs[_0x98e31c('0x33')](_0x4cd17c['query'][_0x98e31c('0x33')]),_0xfa17fc['offset']=qs[_0x98e31c('0x27')](_0x4cd17c[_0x98e31c('0x1e')][_0x98e31c('0x27')]));_0xfa17fc['order']=qs[_0x98e31c('0x14')](_0x4cd17c[_0x98e31c('0x1e')][_0x98e31c('0x14')]),_0xfa17fc['where']=qs[_0x98e31c('0x2c')](_[_0x98e31c('0x7')](_0x4cd17c[_0x98e31c('0x1e')],_0x1bd2bf[_0x98e31c('0x2c')]),_0x18774e);_0x4cd17c[_0x98e31c('0x1e')][_0x98e31c('0x4')]&&(_0xfa17fc[_0x98e31c('0xd')]=_['merge'](_0xfa17fc[_0x98e31c('0xd')],{[Op['or']]:_['map'](_0x18774e,function(_0x119a6a){const _0x113001=_0x98e31c;if(_0x119a6a[_0x113001('0x6')]!=='VIRTUAL'){const _0x119a40={};return _0x119a40[_0x119a6a[_0x113001('0x1f')]]={[Op[_0x113001('0x18')]]:'%'+_0x4cd17c[_0x113001('0x1e')][_0x113001('0x4')]+'%'},_0x119a40;}})}));_0xfa17fc=_['merge']({},_0xfa17fc,_0x4cd17c[_0x98e31c('0x19')]);const _0x27ae3e={'where':_0xfa17fc['where']};return db['MailQueueReport'][_0x98e31c('0x31')](_0x27ae3e)[_0x98e31c('0x1b')](function(_0x43dc65){const _0x3b9c71=_0x98e31c;return _0x5a73d6[_0x3b9c71('0x31')]=_0x43dc65,_0x4cd17c[_0x3b9c71('0x1e')]['includeAll']&&(_0xfa17fc[_0x3b9c71('0x28')]=[{'all':!![]}]),db['MailQueueReport'][_0x3b9c71('0x24')](_0xfa17fc);})[_0x98e31c('0x1b')](function(_0x13f5d7){const _0x24ec2c=_0x98e31c;return _0x5a73d6[_0x24ec2c('0xc')]=_0x13f5d7,_0x5a73d6;})[_0x98e31c('0x1b')](respondWithFilteredResult(_0xdb92cc,_0xfa17fc))['catch'](handleError(_0xdb92cc,null));},exports[_0x33bc34('0x2f')]=function(_0x2db865,_0x2df76d){const _0x1cdb55=_0x33bc34;let _0x312904={'raw':!![],'where':{'id':_0x2db865[_0x1cdb55('0x2a')]['id']}};const _0x1b5059={};return _0x1b5059[_0x1cdb55('0x10')]=_[_0x1cdb55('0xa')](db[_0x1cdb55('0x1a')][_0x1cdb55('0x1c')]),_0x1b5059[_0x1cdb55('0x1e')]=_[_0x1cdb55('0xa')](_0x2db865[_0x1cdb55('0x1e')]),_0x1b5059[_0x1cdb55('0x2c')]=_['intersection'](_0x1b5059[_0x1cdb55('0x10')],_0x1b5059['query']),_0x312904['attributes']=_[_0x1cdb55('0x16')](_0x1b5059['model'],qs[_0x1cdb55('0x29')](_0x2db865[_0x1cdb55('0x1e')][_0x1cdb55('0x29')])),_0x312904[_0x1cdb55('0x2')]=_0x312904[_0x1cdb55('0x2')]['length']?_0x312904[_0x1cdb55('0x2')]:_0x1b5059[_0x1cdb55('0x10')],_0x2db865[_0x1cdb55('0x1e')][_0x1cdb55('0x30')]&&(_0x312904['include']=[{'all':!![]}]),_0x312904=_[_0x1cdb55('0x3')]({},_0x312904,_0x2db865[_0x1cdb55('0x19')]),db['MailQueueReport'][_0x1cdb55('0x25')](_0x312904)[_0x1cdb55('0x1b')](handleEntityNotFound(_0x2df76d,null))[_0x1cdb55('0x1b')](respondWithResult(_0x2df76d,null))[_0x1cdb55('0x21')](handleError(_0x2df76d,null));},exports[_0x33bc34('0x9')]=function(_0x19edb8,_0x2bdc59){const _0x2654a6=_0x33bc34;return db['MailQueueReport'][_0x2654a6('0x9')](_0x19edb8[_0x2654a6('0x11')],{})['then'](respondWithResult(_0x2bdc59,0xc9))[_0x2654a6('0x21')](handleError(_0x2bdc59,null));},exports[_0x33bc34('0x23')]=function(_0x5e80eb,_0x5c9c23){const _0x467a87=_0x33bc34;return _0x5e80eb[_0x467a87('0x11')]['id']&&delete _0x5e80eb['body']['id'],db[_0x467a87('0x1a')][_0x467a87('0x25')]({'where':{'id':_0x5e80eb[_0x467a87('0x2a')]['id']}})[_0x467a87('0x1b')](handleEntityNotFound(_0x5c9c23,null))[_0x467a87('0x1b')](saveUpdates(_0x5e80eb[_0x467a87('0x11')],null))['then'](respondWithResult(_0x5c9c23,null))[_0x467a87('0x21')](handleError(_0x5c9c23,null));},exports[_0x33bc34('0x0')]=function(_0x37b566,_0x25374c){const _0x503fa0=_0x33bc34;return db[_0x503fa0('0x1a')]['findOne']({'where':{'id':_0x37b566[_0x503fa0('0x2a')]['id']}})[_0x503fa0('0x1b')](handleEntityNotFound(_0x25374c,null))[_0x503fa0('0x1b')](removeEntity(_0x25374c,null))[_0x503fa0('0x21')](handleError(_0x25374c,null));},exports[_0x33bc34('0xe')]=function(_0x56597b,_0x3371a8){const _0x4ccd0f=_0x33bc34;return db[_0x4ccd0f('0x1a')]['describe']()[_0x4ccd0f('0x1b')](respondWithResult(_0x3371a8,null))[_0x4ccd0f('0x21')](handleError(_0x3371a8,null));}; \ No newline at end of file +const a427_0x4ce3=['order','keys','stack','status','sendStatus','offset','../../components/parsers/qs','params','attributes','count','filters','../../config/logger','where','fields','query','body','../../mysqldb','describe','VIRTUAL','then','includeAll','length','nolimit','include','destroy','json','merge','filter','map','key','limit','sort','error','create','like','MailQueueReport','Content-Range','type','update','model','show','options','intersection','fieldName','catch','rows','findOne','name','end'];(function(_0x296c2c,_0x4ce33e){const _0x3c38d9=function(_0x2f4e7b){while(--_0x2f4e7b){_0x296c2c['push'](_0x296c2c['shift']());}};_0x3c38d9(++_0x4ce33e);}(a427_0x4ce3,0x9f));const a427_0x3c38=function(_0x296c2c,_0x4ce33e){_0x296c2c=_0x296c2c-0x0;let _0x3c38d9=a427_0x4ce3[_0x296c2c];return _0x3c38d9;};const _0xea00ad=a427_0x3c38;'use strict';const _=require('lodash'),qs=require(_0xea00ad('0x2b')),logger=require(_0xea00ad('0x30'))('api'),db=require(_0xea00ad('0x4'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2f4e7b,_0x419dae){return _0x419dae=_0x419dae||0xc8,function(_0x48decd){const _0x134a09=a427_0x3c38;if(_0x48decd)return _0x2f4e7b[_0x134a09('0x28')](_0x419dae)[_0x134a09('0xd')](_0x48decd);};}function respondWithFilteredResult(_0x46c134,_0x7c2a63){return function(_0x3a5929){const _0x36b907=a427_0x3c38;if(_0x3a5929){const _0x2b0165=_0x3a5929['count'],_0x3676fa=_0x7c2a63[_0x36b907('0x2a')];let _0xb434ea=_0x7c2a63[_0x36b907('0x2a')]+_0x7c2a63['limit'],_0x54e5e5;return _0xb434ea>=_0x2b0165?(_0xb434ea=_0x2b0165,_0x54e5e5=0xc8):_0x54e5e5=0xce,_0x46c134[_0x36b907('0x28')](_0x54e5e5),_0x46c134['set'](_0x36b907('0x18'),_0x3676fa+'-'+_0xb434ea+'/'+_0x2b0165)[_0x36b907('0xd')](_0x3a5929);}return null;};}function saveUpdates(_0x2bcbdc){return function(_0x589bbe){const _0x353bb4=a427_0x3c38;if(_0x589bbe)return _0x589bbe['update'](_0x2bcbdc)[_0x353bb4('0x7')](function(_0x469a8e){return _0x469a8e;});return null;};}function removeEntity(_0x2bbc4b){return function(_0xc872ee){const _0x24510c=a427_0x3c38;if(_0xc872ee)return _0xc872ee[_0x24510c('0xc')]()[_0x24510c('0x7')](function(){const _0x3b0d21=_0x24510c;_0x2bbc4b[_0x3b0d21('0x28')](0xcc)[_0x3b0d21('0x24')]();});};}function handleEntityNotFound(_0x18b8b7){return function(_0x52797f){const _0x249a3b=a427_0x3c38;return!_0x52797f&&_0x18b8b7[_0x249a3b('0x29')](0x194),_0x52797f;};}function handleError(_0x2d81b5,_0x53baca){return _0x53baca=_0x53baca||0x1f4,function(_0x4244ce){const _0xed6780=a427_0x3c38;logger[_0xed6780('0x14')](_0x4244ce[_0xed6780('0x27')]),_0x4244ce[_0xed6780('0x23')]&&delete _0x4244ce['name'],_0x2d81b5[_0xed6780('0x28')](_0x53baca)['send'](_0x4244ce);};}exports['index']=function(_0x54d792,_0x270555){const _0x34a5c3=_0xea00ad;let _0x305fb4={};const _0x50fc10={},_0x4e562c={'count':0x0,'rows':[]},_0x346ad0=_['map'](db[_0x34a5c3('0x17')]['rawAttributes'],function(_0x2b600f){const _0x5a1d6e=_0x34a5c3;return{'name':_0x2b600f[_0x5a1d6e('0x1f')],'type':_0x2b600f[_0x5a1d6e('0x19')][_0x5a1d6e('0x11')]};});_0x50fc10[_0x34a5c3('0x1b')]=_[_0x34a5c3('0x10')](_0x346ad0,_0x34a5c3('0x23')),_0x50fc10[_0x34a5c3('0x2')]=_[_0x34a5c3('0x26')](_0x54d792[_0x34a5c3('0x2')]),_0x50fc10['filters']=_[_0x34a5c3('0x1e')](_0x50fc10[_0x34a5c3('0x1b')],_0x50fc10[_0x34a5c3('0x2')]),_0x305fb4[_0x34a5c3('0x2d')]=_[_0x34a5c3('0x1e')](_0x50fc10[_0x34a5c3('0x1b')],qs[_0x34a5c3('0x1')](_0x54d792[_0x34a5c3('0x2')][_0x34a5c3('0x1')])),_0x305fb4[_0x34a5c3('0x2d')]=_0x305fb4[_0x34a5c3('0x2d')][_0x34a5c3('0x9')]?_0x305fb4[_0x34a5c3('0x2d')]:_0x50fc10[_0x34a5c3('0x1b')];typeof _0x54d792[_0x34a5c3('0x2')][_0x34a5c3('0xa')]==='undefined'&&(_0x305fb4[_0x34a5c3('0x12')]=qs[_0x34a5c3('0x12')](_0x54d792[_0x34a5c3('0x2')][_0x34a5c3('0x12')]),_0x305fb4['offset']=qs[_0x34a5c3('0x2a')](_0x54d792['query']['offset']));_0x305fb4[_0x34a5c3('0x25')]=qs['sort'](_0x54d792['query'][_0x34a5c3('0x13')]),_0x305fb4[_0x34a5c3('0x0')]=qs[_0x34a5c3('0x2f')](_['pick'](_0x54d792[_0x34a5c3('0x2')],_0x50fc10['filters']),_0x346ad0);_0x54d792[_0x34a5c3('0x2')]['filter']&&(_0x305fb4[_0x34a5c3('0x0')]=_[_0x34a5c3('0xe')](_0x305fb4['where'],{[Op['or']]:_[_0x34a5c3('0x10')](_0x346ad0,function(_0x5877ab){const _0x4b725e=_0x34a5c3;if(_0x5877ab['type']!==_0x4b725e('0x6')){const _0x50e97f={};return _0x50e97f[_0x5877ab[_0x4b725e('0x23')]]={[Op[_0x4b725e('0x16')]]:'%'+_0x54d792['query'][_0x4b725e('0xf')]+'%'},_0x50e97f;}})}));_0x305fb4=_[_0x34a5c3('0xe')]({},_0x305fb4,_0x54d792[_0x34a5c3('0x1d')]);const _0x2b29ca={'where':_0x305fb4['where']};return db[_0x34a5c3('0x17')][_0x34a5c3('0x2e')](_0x2b29ca)['then'](function(_0x3ffd83){const _0x48455d=_0x34a5c3;return _0x4e562c[_0x48455d('0x2e')]=_0x3ffd83,_0x54d792[_0x48455d('0x2')][_0x48455d('0x8')]&&(_0x305fb4[_0x48455d('0xb')]=[{'all':!![]}]),db[_0x48455d('0x17')]['findAll'](_0x305fb4);})[_0x34a5c3('0x7')](function(_0x2c92e2){const _0x5a1604=_0x34a5c3;return _0x4e562c[_0x5a1604('0x21')]=_0x2c92e2,_0x4e562c;})['then'](respondWithFilteredResult(_0x270555,_0x305fb4))[_0x34a5c3('0x20')](handleError(_0x270555,null));},exports[_0xea00ad('0x1c')]=function(_0xf645fe,_0x3ced44){const _0x274c76=_0xea00ad;let _0x1af520={'raw':!![],'where':{'id':_0xf645fe[_0x274c76('0x2c')]['id']}};const _0x58b5db={};return _0x58b5db[_0x274c76('0x1b')]=_[_0x274c76('0x26')](db['MailQueueReport']['rawAttributes']),_0x58b5db[_0x274c76('0x2')]=_[_0x274c76('0x26')](_0xf645fe['query']),_0x58b5db['filters']=_[_0x274c76('0x1e')](_0x58b5db['model'],_0x58b5db[_0x274c76('0x2')]),_0x1af520[_0x274c76('0x2d')]=_[_0x274c76('0x1e')](_0x58b5db['model'],qs['fields'](_0xf645fe[_0x274c76('0x2')][_0x274c76('0x1')])),_0x1af520[_0x274c76('0x2d')]=_0x1af520[_0x274c76('0x2d')][_0x274c76('0x9')]?_0x1af520[_0x274c76('0x2d')]:_0x58b5db[_0x274c76('0x1b')],_0xf645fe[_0x274c76('0x2')][_0x274c76('0x8')]&&(_0x1af520[_0x274c76('0xb')]=[{'all':!![]}]),_0x1af520=_['merge']({},_0x1af520,_0xf645fe['options']),db[_0x274c76('0x17')][_0x274c76('0x22')](_0x1af520)[_0x274c76('0x7')](handleEntityNotFound(_0x3ced44,null))[_0x274c76('0x7')](respondWithResult(_0x3ced44,null))[_0x274c76('0x20')](handleError(_0x3ced44,null));},exports[_0xea00ad('0x15')]=function(_0x2d0bbb,_0x184b07){const _0x16bc6c=_0xea00ad;return db[_0x16bc6c('0x17')][_0x16bc6c('0x15')](_0x2d0bbb[_0x16bc6c('0x3')],{})[_0x16bc6c('0x7')](respondWithResult(_0x184b07,0xc9))[_0x16bc6c('0x20')](handleError(_0x184b07,null));},exports[_0xea00ad('0x1a')]=function(_0xebb1f7,_0x1e740f){const _0x54edf3=_0xea00ad;return _0xebb1f7['body']['id']&&delete _0xebb1f7[_0x54edf3('0x3')]['id'],db['MailQueueReport']['findOne']({'where':{'id':_0xebb1f7[_0x54edf3('0x2c')]['id']}})[_0x54edf3('0x7')](handleEntityNotFound(_0x1e740f,null))['then'](saveUpdates(_0xebb1f7[_0x54edf3('0x3')],null))[_0x54edf3('0x7')](respondWithResult(_0x1e740f,null))[_0x54edf3('0x20')](handleError(_0x1e740f,null));},exports[_0xea00ad('0xc')]=function(_0x544ae4,_0x359ef3){const _0x4227f2=_0xea00ad;return db[_0x4227f2('0x17')][_0x4227f2('0x22')]({'where':{'id':_0x544ae4[_0x4227f2('0x2c')]['id']}})[_0x4227f2('0x7')](handleEntityNotFound(_0x359ef3,null))[_0x4227f2('0x7')](removeEntity(_0x359ef3,null))['catch'](handleError(_0x359ef3,null));},exports[_0xea00ad('0x5')]=function(_0x561e3f,_0x448ece){const _0x4d7668=_0xea00ad;return db[_0x4d7668('0x17')][_0x4d7668('0x5')]()[_0x4d7668('0x7')](respondWithResult(_0x448ece,null))[_0x4d7668('0x20')](handleError(_0x448ece,null));}; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.model.js b/server/api/mailQueueReport/mailQueueReport.model.js index 617a018..5642be9 100644 --- a/server/api/mailQueueReport/mailQueueReport.model.js +++ b/server/api/mailQueueReport/mailQueueReport.model.js @@ -1 +1 @@ -const a428_0x1a7a=['MailQueueReport','exports','uniqueid'];(function(_0x3063d3,_0x1a7a47){const _0x2d29b8=function(_0x1e3440){while(--_0x1e3440){_0x3063d3['push'](_0x3063d3['shift']());}};_0x2d29b8(++_0x1a7a47);}(a428_0x1a7a,0xf1));const a428_0x2d29=function(_0x3063d3,_0x1a7a47){_0x3063d3=_0x3063d3-0x0;let _0x2d29b8=a428_0x1a7a[_0x3063d3];return _0x2d29b8;};const _0x3ed6a1=a428_0x2d29;'use strict';const attributes=require('./mailQueueReport.attributes');module[_0x3ed6a1('0x0')]=function(_0x1e3440){const _0xdaffcb=_0x3ed6a1,_0xd97f5f=_0x1e3440['define'](_0xdaffcb('0x2'),attributes,{'tableName':'report_mail_queue','paranoid':![],'indexes':[{'name':_0xdaffcb('0x1'),'fields':['uniqueid']}],'timestamps':!![]});return _0xd97f5f;}; \ No newline at end of file +const a428_0x3d1a=['report_mail_queue','uniqueid','MailQueueReport','./mailQueueReport.attributes','exports','define'];(function(_0x138e0c,_0x3d1a13){const _0x26adec=function(_0x11d5e0){while(--_0x11d5e0){_0x138e0c['push'](_0x138e0c['shift']());}};_0x26adec(++_0x3d1a13);}(a428_0x3d1a,0x1a3));const a428_0x26ad=function(_0x138e0c,_0x3d1a13){_0x138e0c=_0x138e0c-0x0;let _0x26adec=a428_0x3d1a[_0x138e0c];return _0x26adec;};const _0x535163=a428_0x26ad;'use strict';const attributes=require(_0x535163('0x4'));module[_0x535163('0x5')]=function(_0x11d5e0){const _0x317150=_0x535163,_0x2dc5a8=_0x11d5e0[_0x317150('0x0')](_0x317150('0x3'),attributes,{'tableName':_0x317150('0x1'),'paranoid':![],'indexes':[{'name':_0x317150('0x2'),'fields':[_0x317150('0x2')]}],'timestamps':!![]});return _0x2dc5a8;}; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.rpc.js b/server/api/mailQueueReport/mailQueueReport.rpc.js index 07e985c..fc388e4 100644 --- a/server/api/mailQueueReport/mailQueueReport.rpc.js +++ b/server/api/mailQueueReport/mailQueueReport.rpc.js @@ -1 +1 @@ -const a429_0x8a9d=['info','MailQueueReport','body','UpdateMailQueueReport','catch','raw','then','where','limit','debug','stringify','message','rpc','../../mysqldb','CreateMailQueueReport','update','options','attributes','error'];(function(_0x17ee7d,_0x8a9da4){const _0x351fd5=function(_0x5941b1){while(--_0x5941b1){_0x17ee7d['push'](_0x17ee7d['shift']());}};_0x351fd5(++_0x8a9da4);}(a429_0x8a9d,0x11f));const a429_0x351f=function(_0x17ee7d,_0x8a9da4){_0x17ee7d=_0x17ee7d-0x0;let _0x351fd5=a429_0x8a9d[_0x17ee7d];return _0x351fd5;};const _0x28f368=a429_0x351f;'use strict';const db=require(_0x28f368('0xb'))['db'],logger=require('../../config/logger')(_0x28f368('0xa'));exports['CreateMailQueueReport']=function(_0x5941b1){const _0x1f4c77=this;return new Promise(function(_0x32e459,_0x43f8d8){const _0x11bad2=a429_0x351f;return db['MailQueueReport']['create'](_0x5941b1[_0x11bad2('0x0')],{'raw':_0x5941b1[_0x11bad2('0xe')]?_0x5941b1[_0x11bad2('0xe')]['raw']===undefined?!![]:![]:!![]})[_0x11bad2('0x4')](function(_0xa1f24c){const _0x479464=_0x11bad2;logger[_0x479464('0x11')](_0x479464('0xc'),_0x5941b1),logger[_0x479464('0x7')](_0x479464('0xc'),_0x5941b1,JSON['stringify'](_0xa1f24c)),_0x32e459(_0xa1f24c);})[_0x11bad2('0x2')](function(_0x3f9712){const _0x120ac0=_0x11bad2;logger[_0x120ac0('0x10')](_0x120ac0('0xc'),_0x3f9712[_0x120ac0('0x9')],_0x5941b1),_0x43f8d8(_0x1f4c77[_0x120ac0('0x10')](0x1f4,_0x3f9712[_0x120ac0('0x9')]));});});},exports['UpdateMailQueueReport']=function(_0x4fe662){const _0x170c29=this;return new Promise(function(_0xcd9245,_0x48d6fd){const _0x464b18=a429_0x351f;return db[_0x464b18('0x12')][_0x464b18('0xd')](_0x4fe662[_0x464b18('0x0')],{'raw':_0x4fe662['options']?_0x4fe662[_0x464b18('0xe')][_0x464b18('0x3')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4fe662[_0x464b18('0xe')]?_0x4fe662[_0x464b18('0xe')][_0x464b18('0x5')]||null:null,'attributes':_0x4fe662[_0x464b18('0xe')]?_0x4fe662[_0x464b18('0xe')][_0x464b18('0xf')]||null:null,'limit':_0x4fe662[_0x464b18('0xe')]?_0x4fe662[_0x464b18('0xe')][_0x464b18('0x6')]||null:null})[_0x464b18('0x4')](function(_0x207fa1){const _0x2e30fb=_0x464b18;logger[_0x2e30fb('0x11')]('UpdateMailQueueReport',_0x4fe662),logger['debug'](_0x2e30fb('0x1'),_0x4fe662,JSON[_0x2e30fb('0x8')](_0x207fa1)),_0xcd9245(_0x207fa1);})['catch'](function(_0x2dbdbe){const _0x2b26d0=_0x464b18;logger[_0x2b26d0('0x10')](_0x2b26d0('0x1'),_0x2dbdbe['message'],_0x4fe662),_0x48d6fd(_0x170c29[_0x2b26d0('0x10')](0x1f4,_0x2dbdbe[_0x2b26d0('0x9')]));});});}; \ No newline at end of file +const a429_0x5d60=['limit','options','raw','../../mysqldb','CreateMailQueueReport','UpdateMailQueueReport','then','stringify','debug','rpc','catch','message','error','where','create','info','MailQueueReport','../../config/logger','attributes'];(function(_0x20b47d,_0x5d60dc){const _0x43784f=function(_0x2e107c){while(--_0x2e107c){_0x20b47d['push'](_0x20b47d['shift']());}};_0x43784f(++_0x5d60dc);}(a429_0x5d60,0x1d6));const a429_0x4378=function(_0x20b47d,_0x5d60dc){_0x20b47d=_0x20b47d-0x0;let _0x43784f=a429_0x5d60[_0x20b47d];return _0x43784f;};const _0x933f2b=a429_0x4378;'use strict';const db=require(_0x933f2b('0x8'))['db'],logger=require(_0x933f2b('0x3'))(_0x933f2b('0xe'));exports[_0x933f2b('0x9')]=function(_0x2e107c){const _0x29efe9=this;return new Promise(function(_0x103c37,_0x1a8e67){const _0x4e84f4=a429_0x4378;return db[_0x4e84f4('0x2')][_0x4e84f4('0x0')](_0x2e107c['body'],{'raw':_0x2e107c[_0x4e84f4('0x6')]?_0x2e107c[_0x4e84f4('0x6')][_0x4e84f4('0x7')]===undefined?!![]:![]:!![]})[_0x4e84f4('0xb')](function(_0x5d32f4){const _0x34d977=_0x4e84f4;logger[_0x34d977('0x1')](_0x34d977('0x9'),_0x2e107c),logger[_0x34d977('0xd')](_0x34d977('0x9'),_0x2e107c,JSON[_0x34d977('0xc')](_0x5d32f4)),_0x103c37(_0x5d32f4);})[_0x4e84f4('0xf')](function(_0x385c91){const _0xbf1834=_0x4e84f4;logger['error'](_0xbf1834('0x9'),_0x385c91[_0xbf1834('0x10')],_0x2e107c),_0x1a8e67(_0x29efe9[_0xbf1834('0x11')](0x1f4,_0x385c91[_0xbf1834('0x10')]));});});},exports[_0x933f2b('0xa')]=function(_0x99d7e4){const _0x8cec9d=this;return new Promise(function(_0x9199a2,_0x546d56){const _0x54fd85=a429_0x4378;return db[_0x54fd85('0x2')]['update'](_0x99d7e4['body'],{'raw':_0x99d7e4['options']?_0x99d7e4['options'][_0x54fd85('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x99d7e4['options']?_0x99d7e4['options'][_0x54fd85('0x12')]||null:null,'attributes':_0x99d7e4[_0x54fd85('0x6')]?_0x99d7e4[_0x54fd85('0x6')][_0x54fd85('0x4')]||null:null,'limit':_0x99d7e4['options']?_0x99d7e4[_0x54fd85('0x6')][_0x54fd85('0x5')]||null:null})[_0x54fd85('0xb')](function(_0xeddeb2){const _0x1a68c7=_0x54fd85;logger[_0x1a68c7('0x1')](_0x1a68c7('0xa'),_0x99d7e4),logger[_0x1a68c7('0xd')](_0x1a68c7('0xa'),_0x99d7e4,JSON['stringify'](_0xeddeb2)),_0x9199a2(_0xeddeb2);})[_0x54fd85('0xf')](function(_0x368754){const _0x4642a2=_0x54fd85;logger[_0x4642a2('0x11')](_0x4642a2('0xa'),_0x368754[_0x4642a2('0x10')],_0x99d7e4),_0x546d56(_0x8cec9d[_0x4642a2('0x11')](0x1f4,_0x368754[_0x4642a2('0x10')]));});});}; \ No newline at end of file diff --git a/server/api/mailServerIn/index.js b/server/api/mailServerIn/index.js index 93e55a9..fa7abd0 100644 --- a/server/api/mailServerIn/index.js +++ b/server/api/mailServerIn/index.js @@ -1 +1 @@ -const a430_0xc090=['express','Router'];(function(_0x1db6bc,_0xc090cb){const _0x3739d5=function(_0xef5cfe){while(--_0xef5cfe){_0x1db6bc['push'](_0x1db6bc['shift']());}};_0x3739d5(++_0xc090cb);}(a430_0xc090,0x11e));const a430_0x3739=function(_0x1db6bc,_0xc090cb){_0x1db6bc=_0x1db6bc-0x0;let _0x3739d5=a430_0xc090[_0x1db6bc];return _0x3739d5;};const _0x589012=a430_0x3739;'use strict';const express=require(_0x589012('0x0')),router=express[_0x589012('0x1')]();module['exports']=router; \ No newline at end of file +const a430_0x3df5=['Router','exports'];(function(_0x27a954,_0x3df54b){const _0x5de05b=function(_0x47f0a6){while(--_0x47f0a6){_0x27a954['push'](_0x27a954['shift']());}};_0x5de05b(++_0x3df54b);}(a430_0x3df5,0xbc));const a430_0x5de0=function(_0x27a954,_0x3df54b){_0x27a954=_0x27a954-0x0;let _0x5de05b=a430_0x3df5[_0x27a954];return _0x5de05b;};const _0x1d37af=a430_0x5de0;'use strict';const express=require('express'),router=express[_0x1d37af('0x0')]();module[_0x1d37af('0x1')]=router; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.attributes.js b/server/api/mailServerIn/mailServerIn.attributes.js index b1d2507..889ad41 100644 --- a/server/api/mailServerIn/mailServerIn.attributes.js +++ b/server/api/mailServerIn/mailServerIn.attributes.js @@ -1 +1 @@ -const a431_0x49f1=['exports','INTEGER','STRING','INBOX','username','BOOLEAN','sequelize'];(function(_0x197344,_0x49f1c5){const _0x1fea2d=function(_0x2032fb){while(--_0x2032fb){_0x197344['push'](_0x197344['shift']());}};_0x1fea2d(++_0x49f1c5);}(a431_0x49f1,0x14d));const a431_0x1fea=function(_0x197344,_0x49f1c5){_0x197344=_0x197344-0x0;let _0x1fea2d=a431_0x49f1[_0x197344];return _0x1fea2d;};const _0x4ed86b=a431_0x1fea;'use strict';const Sequelize=require(_0x4ed86b('0x2'));module[_0x4ed86b('0x3')]={'description':{'type':Sequelize[_0x4ed86b('0x5')]},'host':{'type':Sequelize[_0x4ed86b('0x5')]},'authentication':{'type':Sequelize[_0x4ed86b('0x1')],'defaultValue':!![]},'user':{'type':Sequelize[_0x4ed86b('0x5')],'unique':_0x4ed86b('0x0')},'password':{'type':Sequelize[_0x4ed86b('0x5')]},'port':{'type':Sequelize['INTEGER']},'tls':{'type':Sequelize[_0x4ed86b('0x1')],'defaultValue':!![]},'mailbox':{'type':Sequelize[_0x4ed86b('0x5')],'defaultValue':_0x4ed86b('0x6')},'connTimeout':{'type':Sequelize[_0x4ed86b('0x4')],'defaultValue':0xa},'authTimeout':{'type':Sequelize[_0x4ed86b('0x4')],'defaultValue':0x5},'service':{'type':Sequelize[_0x4ed86b('0x5')]}}; \ No newline at end of file +const a431_0x1ce8=['INBOX','STRING','INTEGER','BOOLEAN','sequelize'];(function(_0x24df4e,_0x1ce8b0){const _0x1d8914=function(_0x3f218f){while(--_0x3f218f){_0x24df4e['push'](_0x24df4e['shift']());}};_0x1d8914(++_0x1ce8b0);}(a431_0x1ce8,0x1e3));const a431_0x1d89=function(_0x24df4e,_0x1ce8b0){_0x24df4e=_0x24df4e-0x0;let _0x1d8914=a431_0x1ce8[_0x24df4e];return _0x1d8914;};const _0x136f1d=a431_0x1d89;'use strict';const Sequelize=require(_0x136f1d('0x1'));module['exports']={'description':{'type':Sequelize[_0x136f1d('0x3')]},'host':{'type':Sequelize[_0x136f1d('0x3')]},'authentication':{'type':Sequelize[_0x136f1d('0x0')],'defaultValue':!![]},'user':{'type':Sequelize[_0x136f1d('0x3')],'unique':'username'},'password':{'type':Sequelize['STRING']},'port':{'type':Sequelize[_0x136f1d('0x4')]},'tls':{'type':Sequelize[_0x136f1d('0x0')],'defaultValue':!![]},'mailbox':{'type':Sequelize[_0x136f1d('0x3')],'defaultValue':_0x136f1d('0x2')},'connTimeout':{'type':Sequelize[_0x136f1d('0x4')],'defaultValue':0xa},'authTimeout':{'type':Sequelize['INTEGER'],'defaultValue':0x5},'service':{'type':Sequelize[_0x136f1d('0x3')]}}; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.model.js b/server/api/mailServerIn/mailServerIn.model.js index a7e062f..99b8181 100644 --- a/server/api/mailServerIn/mailServerIn.model.js +++ b/server/api/mailServerIn/mailServerIn.model.js @@ -1 +1 @@ -const a432_0x34dc=['define','exports','mail_servers_in'];(function(_0x2a406f,_0x34dc95){const _0x1296bc=function(_0x3863fe){while(--_0x3863fe){_0x2a406f['push'](_0x2a406f['shift']());}};_0x1296bc(++_0x34dc95);}(a432_0x34dc,0xfe));const a432_0x1296=function(_0x2a406f,_0x34dc95){_0x2a406f=_0x2a406f-0x0;let _0x1296bc=a432_0x34dc[_0x2a406f];return _0x1296bc;};const _0x182072=a432_0x1296;'use strict';const attributes=require('./mailServerIn.attributes');module[_0x182072('0x2')]=function(_0x3863fe){const _0x4a5296=_0x182072,_0x533c60=_0x3863fe[_0x4a5296('0x1')]('MailServerIn',attributes,{'tableName':_0x4a5296('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x533c60;}; \ No newline at end of file +const a432_0x5454=['MailServerIn','exports','define'];(function(_0x485eae,_0x5454c6){const _0x54f546=function(_0xb0f10b){while(--_0xb0f10b){_0x485eae['push'](_0x485eae['shift']());}};_0x54f546(++_0x5454c6);}(a432_0x5454,0x142));const a432_0x54f5=function(_0x485eae,_0x5454c6){_0x485eae=_0x485eae-0x0;let _0x54f546=a432_0x5454[_0x485eae];return _0x54f546;};const _0x32bced=a432_0x54f5;'use strict';const attributes=require('./mailServerIn.attributes');module[_0x32bced('0x0')]=function(_0xb0f10b){const _0x35d3d3=_0x32bced,_0x34268f=_0xb0f10b[_0x35d3d3('0x1')](_0x35d3d3('0x2'),attributes,{'tableName':'mail_servers_in','paranoid':![],'indexes':[],'timestamps':!![]});return _0x34268f;}; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.rpc.js b/server/api/mailServerIn/mailServerIn.rpc.js index e4ae5a9..f1edec8 100644 --- a/server/api/mailServerIn/mailServerIn.rpc.js +++ b/server/api/mailServerIn/mailServerIn.rpc.js @@ -1 +1 @@ -const a433_0x792e=['info','message','../../mysqldb','model','map','lodash','rpc','findAll','limit','error','where','include','debug','MailServerIn','attributes','options','../../config/logger','GetMailServerIn','then'];(function(_0x3d2ce2,_0x792ee4){const _0x487668=function(_0x30c308){while(--_0x30c308){_0x3d2ce2['push'](_0x3d2ce2['shift']());}};_0x487668(++_0x792ee4);}(a433_0x792e,0xcc));const a433_0x4876=function(_0x3d2ce2,_0x792ee4){_0x3d2ce2=_0x3d2ce2-0x0;let _0x487668=a433_0x792e[_0x3d2ce2];return _0x487668;};const _0x2bab2d=a433_0x4876;'use strict';const _=require(_0x2bab2d('0xa')),db=require(_0x2bab2d('0x7'))['db'],logger=require(_0x2bab2d('0x2'))(_0x2bab2d('0xb'));exports['GetMailServerIn']=function(_0x30c308){const _0x212188=this;return new Promise(function(_0x16f1bf,_0x5bc7c0){const _0x532297=a433_0x4876;return db[_0x532297('0x12')][_0x532297('0xc')]({'raw':_0x30c308[_0x532297('0x1')]?_0x30c308[_0x532297('0x1')]['raw']===undefined?!![]:![]:!![],'where':_0x30c308['options']?_0x30c308[_0x532297('0x1')][_0x532297('0xf')]||null:null,'attributes':_0x30c308[_0x532297('0x1')]?_0x30c308['options'][_0x532297('0x0')]||null:null,'limit':_0x30c308[_0x532297('0x1')]?_0x30c308['options'][_0x532297('0xd')]||null:null,'include':_0x30c308[_0x532297('0x1')]?_0x30c308[_0x532297('0x1')][_0x532297('0x10')]?_[_0x532297('0x9')](_0x30c308[_0x532297('0x1')][_0x532297('0x10')],function(_0xa8ec3){const _0x1da857=_0x532297;return{'model':db[_0xa8ec3[_0x1da857('0x8')]],'as':_0xa8ec3['as'],'attributes':_0xa8ec3[_0x1da857('0x0')],'include':_0xa8ec3[_0x1da857('0x10')]?_[_0x1da857('0x9')](_0xa8ec3[_0x1da857('0x10')],function(_0x4b2b67){const _0x201b97=_0x1da857;return{'model':db[_0x4b2b67[_0x201b97('0x8')]],'as':_0x4b2b67['as'],'attributes':_0x4b2b67['attributes'],'include':_0x4b2b67[_0x201b97('0x10')]?_[_0x201b97('0x9')](_0x4b2b67[_0x201b97('0x10')],function(_0x57caf3){const _0x1a67b7=_0x201b97;return{'model':db[_0x57caf3['model']],'as':_0x57caf3['as'],'attributes':_0x57caf3[_0x1a67b7('0x0')]};}):[]};}):[]};}):[]:[]})[_0x532297('0x4')](function(_0x489dfc){const _0x3d378c=_0x532297;logger[_0x3d378c('0x5')](_0x3d378c('0x3'),_0x30c308),logger[_0x3d378c('0x11')](_0x3d378c('0x3'),_0x30c308,JSON['stringify'](_0x489dfc)),_0x16f1bf(_0x489dfc);})['catch'](function(_0xf651b2){const _0x3cf19e=_0x532297;logger[_0x3cf19e('0xe')](_0x3cf19e('0x3'),_0xf651b2[_0x3cf19e('0x6')],_0x30c308),_0x5bc7c0(_0x212188[_0x3cf19e('0xe')](0x1f4,_0xf651b2[_0x3cf19e('0x6')]));});});}; \ No newline at end of file +const a433_0x1dd9=['../../mysqldb','options','message','attributes','raw','findAll','stringify','MailServerIn','include','where','model','rpc','limit','then','map','GetMailServerIn','lodash','info','error','catch'];(function(_0x47eea5,_0x1dd964){const _0x1c7876=function(_0x1af2da){while(--_0x1af2da){_0x47eea5['push'](_0x47eea5['shift']());}};_0x1c7876(++_0x1dd964);}(a433_0x1dd9,0xd2));const a433_0x1c78=function(_0x47eea5,_0x1dd964){_0x47eea5=_0x47eea5-0x0;let _0x1c7876=a433_0x1dd9[_0x47eea5];return _0x1c7876;};const _0x5559e3=a433_0x1c78;'use strict';const _=require(_0x5559e3('0x6')),db=require(_0x5559e3('0xa'))['db'],logger=require('../../config/logger')(_0x5559e3('0x1'));exports[_0x5559e3('0x5')]=function(_0x1af2da){const _0x39c6ec=this;return new Promise(function(_0x23ef54,_0x5bb82b){const _0x3db6b8=a433_0x1c78;return db[_0x3db6b8('0x11')][_0x3db6b8('0xf')]({'raw':_0x1af2da[_0x3db6b8('0xb')]?_0x1af2da[_0x3db6b8('0xb')][_0x3db6b8('0xe')]===undefined?!![]:![]:!![],'where':_0x1af2da['options']?_0x1af2da[_0x3db6b8('0xb')][_0x3db6b8('0x13')]||null:null,'attributes':_0x1af2da[_0x3db6b8('0xb')]?_0x1af2da[_0x3db6b8('0xb')][_0x3db6b8('0xd')]||null:null,'limit':_0x1af2da['options']?_0x1af2da[_0x3db6b8('0xb')][_0x3db6b8('0x2')]||null:null,'include':_0x1af2da[_0x3db6b8('0xb')]?_0x1af2da[_0x3db6b8('0xb')][_0x3db6b8('0x12')]?_[_0x3db6b8('0x4')](_0x1af2da[_0x3db6b8('0xb')]['include'],function(_0x1f46e4){const _0x10f854=_0x3db6b8;return{'model':db[_0x1f46e4[_0x10f854('0x0')]],'as':_0x1f46e4['as'],'attributes':_0x1f46e4[_0x10f854('0xd')],'include':_0x1f46e4[_0x10f854('0x12')]?_[_0x10f854('0x4')](_0x1f46e4[_0x10f854('0x12')],function(_0x18e752){const _0x141414=_0x10f854;return{'model':db[_0x18e752['model']],'as':_0x18e752['as'],'attributes':_0x18e752[_0x141414('0xd')],'include':_0x18e752['include']?_[_0x141414('0x4')](_0x18e752[_0x141414('0x12')],function(_0x5920ee){const _0x15737b=_0x141414;return{'model':db[_0x5920ee[_0x15737b('0x0')]],'as':_0x5920ee['as'],'attributes':_0x5920ee['attributes']};}):[]};}):[]};}):[]:[]})[_0x3db6b8('0x3')](function(_0x57b325){const _0xd7ee12=_0x3db6b8;logger[_0xd7ee12('0x7')]('GetMailServerIn',_0x1af2da),logger['debug'](_0xd7ee12('0x5'),_0x1af2da,JSON[_0xd7ee12('0x10')](_0x57b325)),_0x23ef54(_0x57b325);})[_0x3db6b8('0x9')](function(_0xc7f685){const _0x1e3f64=_0x3db6b8;logger['error'](_0x1e3f64('0x5'),_0xc7f685[_0x1e3f64('0xc')],_0x1af2da),_0x5bb82b(_0x39c6ec[_0x1e3f64('0x8')](0x1f4,_0xc7f685[_0x1e3f64('0xc')]));});});}; \ No newline at end of file diff --git a/server/api/mailServerOut/index.js b/server/api/mailServerOut/index.js index 5208227..5d9fa6a 100644 --- a/server/api/mailServerOut/index.js +++ b/server/api/mailServerOut/index.js @@ -1 +1 @@ -const a434_0x3947=['delete','exports','isAuthenticated','show','index','create','Router','/:id','get','destroy','update','../../components/auth/service','post','put','express','./mailServerOut.controller'];(function(_0xbad88f,_0x39476b){const _0x509d50=function(_0x189be0){while(--_0x189be0){_0xbad88f['push'](_0xbad88f['shift']());}};_0x509d50(++_0x39476b);}(a434_0x3947,0x140));const a434_0x509d=function(_0xbad88f,_0x39476b){_0xbad88f=_0xbad88f-0x0;let _0x509d50=a434_0x3947[_0xbad88f];return _0x509d50;};const _0x1f01f9=a434_0x509d;'use strict';const express=require(_0x1f01f9('0xe')),router=express[_0x1f01f9('0x6')](),auth=require(_0x1f01f9('0xb')),controller=require(_0x1f01f9('0xf'));router['get']('/',auth[_0x1f01f9('0x2')](),controller[_0x1f01f9('0x4')]),router[_0x1f01f9('0x8')](_0x1f01f9('0x7'),auth[_0x1f01f9('0x2')](),controller[_0x1f01f9('0x3')]),router[_0x1f01f9('0xc')]('/',auth[_0x1f01f9('0x2')](),controller[_0x1f01f9('0x5')]),router[_0x1f01f9('0xd')](_0x1f01f9('0x7'),auth[_0x1f01f9('0x2')](),controller[_0x1f01f9('0xa')]),router[_0x1f01f9('0x0')](_0x1f01f9('0x7'),auth[_0x1f01f9('0x2')](),controller[_0x1f01f9('0x9')]),module[_0x1f01f9('0x1')]=router; \ No newline at end of file +const a434_0x3924=['show','index','create','Router','post','put','update','express','get','isAuthenticated','./mailServerOut.controller','/:id','delete','../../components/auth/service'];(function(_0x4b51f7,_0x3924c5){const _0x1424d3=function(_0xc23013){while(--_0xc23013){_0x4b51f7['push'](_0x4b51f7['shift']());}};_0x1424d3(++_0x3924c5);}(a434_0x3924,0x6d));const a434_0x1424=function(_0x4b51f7,_0x3924c5){_0x4b51f7=_0x4b51f7-0x0;let _0x1424d3=a434_0x3924[_0x4b51f7];return _0x1424d3;};const _0x54fc21=a434_0x1424;'use strict';const express=require(_0x54fc21('0xa')),router=express[_0x54fc21('0x6')](),auth=require(_0x54fc21('0x2')),controller=require(_0x54fc21('0xd'));router['get']('/',auth['isAuthenticated'](),controller[_0x54fc21('0x4')]),router[_0x54fc21('0xb')](_0x54fc21('0x0'),auth[_0x54fc21('0xc')](),controller[_0x54fc21('0x3')]),router[_0x54fc21('0x7')]('/',auth['isAuthenticated'](),controller[_0x54fc21('0x5')]),router[_0x54fc21('0x8')]('/:id',auth[_0x54fc21('0xc')](),controller[_0x54fc21('0x9')]),router[_0x54fc21('0x1')](_0x54fc21('0x0'),auth[_0x54fc21('0xc')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.attributes.js b/server/api/mailServerOut/mailServerOut.attributes.js index 168e45f..fd94219 100644 --- a/server/api/mailServerOut/mailServerOut.attributes.js +++ b/server/api/mailServerOut/mailServerOut.attributes.js @@ -1 +1 @@ -const a435_0xcae1=['BOOLEAN','INTEGER','STRING','sequelize'];(function(_0x1492e4,_0xcae1c8){const _0x2c178c=function(_0x378a12){while(--_0x378a12){_0x1492e4['push'](_0x1492e4['shift']());}};_0x2c178c(++_0xcae1c8);}(a435_0xcae1,0x178));const a435_0x2c17=function(_0x1492e4,_0xcae1c8){_0x1492e4=_0x1492e4-0x0;let _0x2c178c=a435_0xcae1[_0x1492e4];return _0x2c178c;};const _0xf2378d=a435_0x2c17;'use strict';const Sequelize=require(_0xf2378d('0x3'));module['exports']={'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize[_0xf2378d('0x2')]},'user':{'type':Sequelize[_0xf2378d('0x2')]},'pass':{'type':Sequelize[_0xf2378d('0x2')]},'port':{'type':Sequelize[_0xf2378d('0x1')]},'secure':{'type':Sequelize[_0xf2378d('0x0')],'defaultValue':![]},'service':{'type':Sequelize[_0xf2378d('0x2')]},'authentication':{'type':Sequelize[_0xf2378d('0x0')],'defaultValue':!![]}}; \ No newline at end of file +const a435_0x4629=['INTEGER','sequelize','BOOLEAN','STRING'];(function(_0x52fdfa,_0x4629c9){const _0x593fb9=function(_0x3c449f){while(--_0x3c449f){_0x52fdfa['push'](_0x52fdfa['shift']());}};_0x593fb9(++_0x4629c9);}(a435_0x4629,0x108));const a435_0x593f=function(_0x52fdfa,_0x4629c9){_0x52fdfa=_0x52fdfa-0x0;let _0x593fb9=a435_0x4629[_0x52fdfa];return _0x593fb9;};const _0x4300ed=a435_0x593f;'use strict';const Sequelize=require(_0x4300ed('0x1'));module['exports']={'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize[_0x4300ed('0x3')]},'user':{'type':Sequelize['STRING']},'pass':{'type':Sequelize[_0x4300ed('0x3')]},'port':{'type':Sequelize[_0x4300ed('0x0')]},'secure':{'type':Sequelize[_0x4300ed('0x2')],'defaultValue':![]},'service':{'type':Sequelize[_0x4300ed('0x3')]},'authentication':{'type':Sequelize[_0x4300ed('0x2')],'defaultValue':!![]}}; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.controller.js b/server/api/mailServerOut/mailServerOut.controller.js index 81af782..7749a0a 100644 --- a/server/api/mailServerOut/mailServerOut.controller.js +++ b/server/api/mailServerOut/mailServerOut.controller.js @@ -1 +1 @@ -const a436_0xb458=['Content-Range','count','model','query','merge','filters','catch','type','rows','params','update','name','limit','nolimit','findOne','sequelize','then','../../config/logger','body','length','MailServerOut','destroy','create','map','end','attributes','sort','key','index','findAll','fieldName','send','sendStatus','includeAll','fields','where','api','filter','order','include','rawAttributes','json','error','offset','../../mysqldb','status','intersection','keys'];(function(_0x1c9e53,_0xb458b1){const _0xffebd7=function(_0xa8dfa8){while(--_0xa8dfa8){_0x1c9e53['push'](_0x1c9e53['shift']());}};_0xffebd7(++_0xb458b1);}(a436_0xb458,0x143));const a436_0xffeb=function(_0x1c9e53,_0xb458b1){_0x1c9e53=_0x1c9e53-0x0;let _0xffebd7=a436_0xb458[_0x1c9e53];return _0xffebd7;};const _0x21ae04=a436_0xffeb;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x21ae04('0x1e'))(_0x21ae04('0x1')),db=require(_0x21ae04('0x9'))['db'],{Op}=require(_0x21ae04('0x1c'));function respondWithResult(_0xa8dfa8,_0x8948ef){return _0x8948ef=_0x8948ef||0xc8,function(_0x47f261){const _0x366494=a436_0xffeb;if(_0x47f261)return _0xa8dfa8[_0x366494('0xa')](_0x8948ef)['json'](_0x47f261);};}function respondWithFilteredResult(_0x5ec509,_0x4963e6){return function(_0x55a098){const _0xbcd301=a436_0xffeb;if(_0x55a098){const _0x3ef9db=_0x55a098[_0xbcd301('0xe')],_0x562da9=_0x4963e6[_0xbcd301('0x8')];let _0x87a225=_0x4963e6['offset']+_0x4963e6[_0xbcd301('0x19')],_0xc5e794;return _0x87a225>=_0x3ef9db?(_0x87a225=_0x3ef9db,_0xc5e794=0xc8):_0xc5e794=0xce,_0x5ec509[_0xbcd301('0xa')](_0xc5e794),_0x5ec509['set'](_0xbcd301('0xd'),_0x562da9+'-'+_0x87a225+'/'+_0x3ef9db)[_0xbcd301('0x6')](_0x55a098);}return null;};}function saveUpdates(_0x1153da){return function(_0x53012e){const _0x13b0ae=a436_0xffeb;if(_0x53012e)return _0x53012e[_0x13b0ae('0x17')](_0x1153da)[_0x13b0ae('0x1d')](function(_0x305021){return _0x305021;});return null;};}function removeEntity(_0xf1b3ed){return function(_0x1d231f){const _0x1d66c5=a436_0xffeb;if(_0x1d231f)return _0x1d231f['destroy']()[_0x1d66c5('0x1d')](function(){const _0x2f8d96=_0x1d66c5;_0xf1b3ed[_0x2f8d96('0xa')](0xcc)[_0x2f8d96('0x25')]();});};}function handleEntityNotFound(_0x5d68d5){return function(_0x15070e){const _0x529447=a436_0xffeb;return!_0x15070e&&_0x5d68d5[_0x529447('0x2d')](0x194),_0x15070e;};}function handleError(_0x3eb8b4,_0xaa0ae0){return _0xaa0ae0=_0xaa0ae0||0x1f4,function(_0x251e68){const _0x1a931a=a436_0xffeb;logger[_0x1a931a('0x7')](_0x251e68['stack']),_0x251e68[_0x1a931a('0x18')]&&delete _0x251e68[_0x1a931a('0x18')],_0x3eb8b4['status'](_0xaa0ae0)[_0x1a931a('0x2c')](_0x251e68);};}exports[_0x21ae04('0x29')]=function(_0x521d6c,_0x587014){const _0x151cd4=_0x21ae04;let _0x178410={};const _0x131985={},_0x3f42fb={'count':0x0,'rows':[]},_0x3c4388=_[_0x151cd4('0x24')](db['MailServerOut'][_0x151cd4('0x5')],function(_0x3f8c11){const _0x29c2d2=_0x151cd4;return{'name':_0x3f8c11[_0x29c2d2('0x2b')],'type':_0x3f8c11['type'][_0x29c2d2('0x28')]};});_0x131985[_0x151cd4('0xf')]=_[_0x151cd4('0x24')](_0x3c4388,_0x151cd4('0x18')),_0x131985[_0x151cd4('0x10')]=_[_0x151cd4('0xc')](_0x521d6c[_0x151cd4('0x10')]),_0x131985[_0x151cd4('0x12')]=_[_0x151cd4('0xb')](_0x131985['model'],_0x131985[_0x151cd4('0x10')]),_0x178410[_0x151cd4('0x26')]=_[_0x151cd4('0xb')](_0x131985[_0x151cd4('0xf')],qs[_0x151cd4('0x2f')](_0x521d6c[_0x151cd4('0x10')][_0x151cd4('0x2f')])),_0x178410['attributes']=_0x178410[_0x151cd4('0x26')][_0x151cd4('0x20')]?_0x178410[_0x151cd4('0x26')]:_0x131985[_0x151cd4('0xf')];typeof _0x521d6c['query'][_0x151cd4('0x1a')]==='undefined'&&(_0x178410[_0x151cd4('0x19')]=qs['limit'](_0x521d6c[_0x151cd4('0x10')][_0x151cd4('0x19')]),_0x178410[_0x151cd4('0x8')]=qs[_0x151cd4('0x8')](_0x521d6c[_0x151cd4('0x10')][_0x151cd4('0x8')]));_0x178410[_0x151cd4('0x3')]=qs[_0x151cd4('0x27')](_0x521d6c['query']['sort']),_0x178410[_0x151cd4('0x0')]=qs['filters'](_['pick'](_0x521d6c['query'],_0x131985[_0x151cd4('0x12')]),_0x3c4388);_0x521d6c['query'][_0x151cd4('0x2')]&&(_0x178410[_0x151cd4('0x0')]=_[_0x151cd4('0x11')](_0x178410[_0x151cd4('0x0')],{[Op['or']]:_['map'](_0x3c4388,function(_0x307e3b){const _0x42c9fd=_0x151cd4;if(_0x307e3b[_0x42c9fd('0x14')]!=='VIRTUAL'){const _0x34c2dd={};return _0x34c2dd[_0x307e3b[_0x42c9fd('0x18')]]={[Op['like']]:'%'+_0x521d6c[_0x42c9fd('0x10')][_0x42c9fd('0x2')]+'%'},_0x34c2dd;}})}));_0x178410=_[_0x151cd4('0x11')]({},_0x178410,_0x521d6c['options']);const _0x4545b6={'where':_0x178410[_0x151cd4('0x0')]};return db[_0x151cd4('0x21')][_0x151cd4('0xe')](_0x4545b6)[_0x151cd4('0x1d')](function(_0x597db7){const _0x880535=_0x151cd4;return _0x3f42fb['count']=_0x597db7,_0x521d6c['query'][_0x880535('0x2e')]&&(_0x178410[_0x880535('0x4')]=[{'all':!![]}]),db[_0x880535('0x21')][_0x880535('0x2a')](_0x178410);})[_0x151cd4('0x1d')](function(_0x23e9d3){const _0x1127ad=_0x151cd4;return _0x3f42fb[_0x1127ad('0x15')]=_0x23e9d3,_0x3f42fb;})[_0x151cd4('0x1d')](respondWithFilteredResult(_0x587014,_0x178410))[_0x151cd4('0x13')](handleError(_0x587014,null));},exports['show']=function(_0x56acf5,_0xade73c){const _0x336620=_0x21ae04;let _0x138d23={'raw':!![],'where':{'id':_0x56acf5[_0x336620('0x16')]['id']}};const _0x2c64f8={};return _0x2c64f8[_0x336620('0xf')]=_[_0x336620('0xc')](db[_0x336620('0x21')][_0x336620('0x5')]),_0x2c64f8[_0x336620('0x10')]=_[_0x336620('0xc')](_0x56acf5['query']),_0x2c64f8[_0x336620('0x12')]=_[_0x336620('0xb')](_0x2c64f8[_0x336620('0xf')],_0x2c64f8[_0x336620('0x10')]),_0x138d23['attributes']=_[_0x336620('0xb')](_0x2c64f8[_0x336620('0xf')],qs[_0x336620('0x2f')](_0x56acf5[_0x336620('0x10')][_0x336620('0x2f')])),_0x138d23[_0x336620('0x26')]=_0x138d23[_0x336620('0x26')][_0x336620('0x20')]?_0x138d23['attributes']:_0x2c64f8[_0x336620('0xf')],_0x56acf5['query']['includeAll']&&(_0x138d23[_0x336620('0x4')]=[{'all':!![]}]),_0x138d23=_[_0x336620('0x11')]({},_0x138d23,_0x56acf5['options']),db[_0x336620('0x21')]['findOne'](_0x138d23)[_0x336620('0x1d')](handleEntityNotFound(_0xade73c,null))[_0x336620('0x1d')](respondWithResult(_0xade73c,null))[_0x336620('0x13')](handleError(_0xade73c,null));},exports[_0x21ae04('0x23')]=function(_0xa090b6,_0x508f67){const _0x4bca33=_0x21ae04;return db[_0x4bca33('0x21')][_0x4bca33('0x23')](_0xa090b6[_0x4bca33('0x1f')],{})[_0x4bca33('0x1d')](respondWithResult(_0x508f67,0xc9))[_0x4bca33('0x13')](handleError(_0x508f67,null));},exports[_0x21ae04('0x17')]=function(_0x57c38c,_0x5867b3){const _0x92745e=_0x21ae04;return _0x57c38c[_0x92745e('0x1f')]['id']&&delete _0x57c38c[_0x92745e('0x1f')]['id'],db[_0x92745e('0x21')][_0x92745e('0x1b')]({'where':{'id':_0x57c38c['params']['id']}})[_0x92745e('0x1d')](handleEntityNotFound(_0x5867b3,null))[_0x92745e('0x1d')](saveUpdates(_0x57c38c['body'],null))[_0x92745e('0x1d')](respondWithResult(_0x5867b3,null))[_0x92745e('0x13')](handleError(_0x5867b3,null));},exports[_0x21ae04('0x22')]=function(_0x13b91b,_0x1aca19){const _0x4597f4=_0x21ae04;return db[_0x4597f4('0x21')]['findOne']({'where':{'id':_0x13b91b[_0x4597f4('0x16')]['id']}})[_0x4597f4('0x1d')](handleEntityNotFound(_0x1aca19,null))[_0x4597f4('0x1d')](removeEntity(_0x1aca19,null))[_0x4597f4('0x13')](handleError(_0x1aca19,null));}; \ No newline at end of file +const a436_0x1867=['stack','intersection','create','length','body','status','sort','offset','then','findOne','count','limit','update','set','includeAll','model','map','Content-Range','fieldName','where','../../components/parsers/qs','fields','error','query','keys','destroy','order','include','params','VIRTUAL','lodash','json','MailServerOut','name','catch','filter','type','key','attributes','options','rawAttributes','../../config/logger','sequelize','send','merge','filters','undefined'];(function(_0x3f4b24,_0x18672f){const _0x25098c=function(_0x3bdc7c){while(--_0x3bdc7c){_0x3f4b24['push'](_0x3f4b24['shift']());}};_0x25098c(++_0x18672f);}(a436_0x1867,0x1c3));const a436_0x2509=function(_0x3f4b24,_0x18672f){_0x3f4b24=_0x3f4b24-0x0;let _0x25098c=a436_0x1867[_0x3f4b24];return _0x25098c;};const _0x8c7120=a436_0x2509;'use strict';const _=require(_0x8c7120('0x2')),qs=require(_0x8c7120('0x27')),logger=require(_0x8c7120('0xd'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x8c7120('0xe'));function respondWithResult(_0x3bdc7c,_0x550b2a){return _0x550b2a=_0x550b2a||0xc8,function(_0x960578){const _0x1bc9a3=a436_0x2509;if(_0x960578)return _0x3bdc7c['status'](_0x550b2a)[_0x1bc9a3('0x3')](_0x960578);};}function respondWithFilteredResult(_0x1728e9,_0xb2e99){return function(_0x32e3c0){const _0x6023f0=a436_0x2509;if(_0x32e3c0){const _0x12d2a8=_0x32e3c0[_0x6023f0('0x1d')],_0x28e75f=_0xb2e99[_0x6023f0('0x1a')];let _0x26c2b8=_0xb2e99[_0x6023f0('0x1a')]+_0xb2e99['limit'],_0x392cbb;return _0x26c2b8>=_0x12d2a8?(_0x26c2b8=_0x12d2a8,_0x392cbb=0xc8):_0x392cbb=0xce,_0x1728e9[_0x6023f0('0x18')](_0x392cbb),_0x1728e9[_0x6023f0('0x20')](_0x6023f0('0x24'),_0x28e75f+'-'+_0x26c2b8+'/'+_0x12d2a8)[_0x6023f0('0x3')](_0x32e3c0);}return null;};}function saveUpdates(_0x43417e){return function(_0x1ea263){const _0x204b03=a436_0x2509;if(_0x1ea263)return _0x1ea263[_0x204b03('0x1f')](_0x43417e)[_0x204b03('0x1b')](function(_0x31ccac){return _0x31ccac;});return null;};}function removeEntity(_0x48e8b1){return function(_0x57146d){const _0x4bd42c=a436_0x2509;if(_0x57146d)return _0x57146d['destroy']()[_0x4bd42c('0x1b')](function(){const _0x330cc8=_0x4bd42c;_0x48e8b1[_0x330cc8('0x18')](0xcc)['end']();});};}function handleEntityNotFound(_0x293f90){return function(_0x30e2b2){return!_0x30e2b2&&_0x293f90['sendStatus'](0x194),_0x30e2b2;};}function handleError(_0x444ebf,_0xf0177){return _0xf0177=_0xf0177||0x1f4,function(_0x27bc64){const _0xe74925=a436_0x2509;logger[_0xe74925('0x29')](_0x27bc64[_0xe74925('0x13')]),_0x27bc64[_0xe74925('0x5')]&&delete _0x27bc64[_0xe74925('0x5')],_0x444ebf[_0xe74925('0x18')](_0xf0177)[_0xe74925('0xf')](_0x27bc64);};}exports['index']=function(_0x3e88bc,_0xcd59d1){const _0x35b726=_0x8c7120;let _0x5a85fd={};const _0x1f796c={},_0x4d3153={'count':0x0,'rows':[]},_0x25c42e=_[_0x35b726('0x23')](db['MailServerOut'][_0x35b726('0xc')],function(_0x4c41dd){const _0x116c27=_0x35b726;return{'name':_0x4c41dd[_0x116c27('0x25')],'type':_0x4c41dd[_0x116c27('0x8')][_0x116c27('0x9')]};});_0x1f796c[_0x35b726('0x22')]=_[_0x35b726('0x23')](_0x25c42e,'name'),_0x1f796c['query']=_[_0x35b726('0x2b')](_0x3e88bc[_0x35b726('0x2a')]),_0x1f796c['filters']=_[_0x35b726('0x14')](_0x1f796c['model'],_0x1f796c['query']),_0x5a85fd[_0x35b726('0xa')]=_[_0x35b726('0x14')](_0x1f796c['model'],qs['fields'](_0x3e88bc[_0x35b726('0x2a')]['fields'])),_0x5a85fd[_0x35b726('0xa')]=_0x5a85fd[_0x35b726('0xa')]['length']?_0x5a85fd[_0x35b726('0xa')]:_0x1f796c[_0x35b726('0x22')];typeof _0x3e88bc['query']['nolimit']===_0x35b726('0x12')&&(_0x5a85fd[_0x35b726('0x1e')]=qs[_0x35b726('0x1e')](_0x3e88bc['query']['limit']),_0x5a85fd['offset']=qs[_0x35b726('0x1a')](_0x3e88bc[_0x35b726('0x2a')]['offset']));_0x5a85fd[_0x35b726('0x2d')]=qs[_0x35b726('0x19')](_0x3e88bc[_0x35b726('0x2a')][_0x35b726('0x19')]),_0x5a85fd['where']=qs[_0x35b726('0x11')](_['pick'](_0x3e88bc[_0x35b726('0x2a')],_0x1f796c['filters']),_0x25c42e);_0x3e88bc[_0x35b726('0x2a')][_0x35b726('0x7')]&&(_0x5a85fd[_0x35b726('0x26')]=_[_0x35b726('0x10')](_0x5a85fd[_0x35b726('0x26')],{[Op['or']]:_[_0x35b726('0x23')](_0x25c42e,function(_0x414037){const _0x460d24=_0x35b726;if(_0x414037[_0x460d24('0x8')]!==_0x460d24('0x1')){const _0x1b8816={};return _0x1b8816[_0x414037[_0x460d24('0x5')]]={[Op['like']]:'%'+_0x3e88bc[_0x460d24('0x2a')][_0x460d24('0x7')]+'%'},_0x1b8816;}})}));_0x5a85fd=_['merge']({},_0x5a85fd,_0x3e88bc[_0x35b726('0xb')]);const _0x1a7381={'where':_0x5a85fd[_0x35b726('0x26')]};return db[_0x35b726('0x4')]['count'](_0x1a7381)['then'](function(_0xd28712){const _0x5d47f7=_0x35b726;return _0x4d3153[_0x5d47f7('0x1d')]=_0xd28712,_0x3e88bc[_0x5d47f7('0x2a')]['includeAll']&&(_0x5a85fd[_0x5d47f7('0x2e')]=[{'all':!![]}]),db[_0x5d47f7('0x4')]['findAll'](_0x5a85fd);})[_0x35b726('0x1b')](function(_0x3dd61f){return _0x4d3153['rows']=_0x3dd61f,_0x4d3153;})[_0x35b726('0x1b')](respondWithFilteredResult(_0xcd59d1,_0x5a85fd))[_0x35b726('0x6')](handleError(_0xcd59d1,null));},exports['show']=function(_0x2063fd,_0x36184c){const _0x149f07=_0x8c7120;let _0x1d453b={'raw':!![],'where':{'id':_0x2063fd[_0x149f07('0x0')]['id']}};const _0x6e8be9={};return _0x6e8be9[_0x149f07('0x22')]=_[_0x149f07('0x2b')](db[_0x149f07('0x4')][_0x149f07('0xc')]),_0x6e8be9[_0x149f07('0x2a')]=_['keys'](_0x2063fd[_0x149f07('0x2a')]),_0x6e8be9['filters']=_[_0x149f07('0x14')](_0x6e8be9[_0x149f07('0x22')],_0x6e8be9['query']),_0x1d453b[_0x149f07('0xa')]=_[_0x149f07('0x14')](_0x6e8be9[_0x149f07('0x22')],qs[_0x149f07('0x28')](_0x2063fd[_0x149f07('0x2a')]['fields'])),_0x1d453b[_0x149f07('0xa')]=_0x1d453b[_0x149f07('0xa')][_0x149f07('0x16')]?_0x1d453b[_0x149f07('0xa')]:_0x6e8be9[_0x149f07('0x22')],_0x2063fd['query'][_0x149f07('0x21')]&&(_0x1d453b[_0x149f07('0x2e')]=[{'all':!![]}]),_0x1d453b=_[_0x149f07('0x10')]({},_0x1d453b,_0x2063fd['options']),db['MailServerOut'][_0x149f07('0x1c')](_0x1d453b)[_0x149f07('0x1b')](handleEntityNotFound(_0x36184c,null))[_0x149f07('0x1b')](respondWithResult(_0x36184c,null))[_0x149f07('0x6')](handleError(_0x36184c,null));},exports[_0x8c7120('0x15')]=function(_0x21ec7d,_0x583f6d){const _0x51e5c2=_0x8c7120;return db[_0x51e5c2('0x4')]['create'](_0x21ec7d[_0x51e5c2('0x17')],{})['then'](respondWithResult(_0x583f6d,0xc9))[_0x51e5c2('0x6')](handleError(_0x583f6d,null));},exports[_0x8c7120('0x1f')]=function(_0x2c3af2,_0x2af375){const _0x5d7443=_0x8c7120;return _0x2c3af2[_0x5d7443('0x17')]['id']&&delete _0x2c3af2[_0x5d7443('0x17')]['id'],db[_0x5d7443('0x4')]['findOne']({'where':{'id':_0x2c3af2[_0x5d7443('0x0')]['id']}})[_0x5d7443('0x1b')](handleEntityNotFound(_0x2af375,null))[_0x5d7443('0x1b')](saveUpdates(_0x2c3af2[_0x5d7443('0x17')],null))[_0x5d7443('0x1b')](respondWithResult(_0x2af375,null))[_0x5d7443('0x6')](handleError(_0x2af375,null));},exports[_0x8c7120('0x2c')]=function(_0x1afe72,_0x4f8bdc){const _0x4fa489=_0x8c7120;return db[_0x4fa489('0x4')][_0x4fa489('0x1c')]({'where':{'id':_0x1afe72[_0x4fa489('0x0')]['id']}})[_0x4fa489('0x1b')](handleEntityNotFound(_0x4f8bdc,null))[_0x4fa489('0x1b')](removeEntity(_0x4f8bdc,null))[_0x4fa489('0x6')](handleError(_0x4f8bdc,null));}; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.model.js b/server/api/mailServerOut/mailServerOut.model.js index 8efc72f..7a34dd1 100644 --- a/server/api/mailServerOut/mailServerOut.model.js +++ b/server/api/mailServerOut/mailServerOut.model.js @@ -1 +1 @@ -const a437_0x113c=['define','./mailServerOut.attributes','mail_servers_out','exports'];(function(_0x45125a,_0x113c70){const _0x399872=function(_0x2c3566){while(--_0x2c3566){_0x45125a['push'](_0x45125a['shift']());}};_0x399872(++_0x113c70);}(a437_0x113c,0x151));const a437_0x3998=function(_0x45125a,_0x113c70){_0x45125a=_0x45125a-0x0;let _0x399872=a437_0x113c[_0x45125a];return _0x399872;};const _0x3a165f=a437_0x3998;'use strict';const attributes=require(_0x3a165f('0x0'));module[_0x3a165f('0x2')]=function(_0x2c3566){const _0x4e1e66=_0x3a165f,_0x26e21f=_0x2c3566[_0x4e1e66('0x3')]('MailServerOut',attributes,{'tableName':_0x4e1e66('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x26e21f;}; \ No newline at end of file +const a437_0x5b07=['MailServerOut','exports','define','./mailServerOut.attributes','mail_servers_out'];(function(_0x3070ed,_0x5b073b){const _0x3ac678=function(_0x121751){while(--_0x121751){_0x3070ed['push'](_0x3070ed['shift']());}};_0x3ac678(++_0x5b073b);}(a437_0x5b07,0xbe));const a437_0x3ac6=function(_0x3070ed,_0x5b073b){_0x3070ed=_0x3070ed-0x0;let _0x3ac678=a437_0x5b07[_0x3070ed];return _0x3ac678;};const _0x2685f1=a437_0x3ac6;'use strict';const attributes=require(_0x2685f1('0x3'));module[_0x2685f1('0x1')]=function(_0x121751){const _0x3e704d=_0x2685f1,_0x52bd9d=_0x121751[_0x3e704d('0x2')](_0x3e704d('0x0'),attributes,{'tableName':_0x3e704d('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x52bd9d;}; \ No newline at end of file diff --git a/server/api/mailSubstatus/index.js b/server/api/mailSubstatus/index.js index ab52d1c..8c99da8 100644 --- a/server/api/mailSubstatus/index.js +++ b/server/api/mailSubstatus/index.js @@ -1 +1 @@ -const a438_0x1225=['/:id','update','../../components/auth/service','post','delete','get','./mailSubstatus.controller','describe','put','exports','isAuthenticated','index','show','express','destroy'];(function(_0x2073d9,_0x122584){const _0xda9fd2=function(_0x2126e9){while(--_0x2126e9){_0x2073d9['push'](_0x2073d9['shift']());}};_0xda9fd2(++_0x122584);}(a438_0x1225,0x12e));const a438_0xda9f=function(_0x2073d9,_0x122584){_0x2073d9=_0x2073d9-0x0;let _0xda9fd2=a438_0x1225[_0x2073d9];return _0xda9fd2;};const _0x4611e5=a438_0xda9f;'use strict';const express=require(_0x4611e5('0xb')),router=express['Router'](),auth=require(_0x4611e5('0x0')),controller=require(_0x4611e5('0x4'));router['get']('/',auth[_0x4611e5('0x8')](),controller[_0x4611e5('0x9')]),router[_0x4611e5('0x3')]('/describe',auth[_0x4611e5('0x8')](),controller[_0x4611e5('0x5')]),router['get']('/:id',auth[_0x4611e5('0x8')](),controller[_0x4611e5('0xa')]),router[_0x4611e5('0x1')]('/',auth[_0x4611e5('0x8')](),controller['create']),router[_0x4611e5('0x6')]('/:id',auth[_0x4611e5('0x8')](),controller[_0x4611e5('0xe')]),router[_0x4611e5('0x2')](_0x4611e5('0xd'),auth[_0x4611e5('0x8')](),controller[_0x4611e5('0xc')]),module[_0x4611e5('0x7')]=router; \ No newline at end of file +const a438_0x1264=['show','put','/:id','express','delete','post','index','get','../../components/auth/service','/describe','exports','describe','create','isAuthenticated'];(function(_0x52732b,_0x12644d){const _0x50ad3c=function(_0x2635ee){while(--_0x2635ee){_0x52732b['push'](_0x52732b['shift']());}};_0x50ad3c(++_0x12644d);}(a438_0x1264,0x143));const a438_0x50ad=function(_0x52732b,_0x12644d){_0x52732b=_0x52732b-0x0;let _0x50ad3c=a438_0x1264[_0x52732b];return _0x50ad3c;};const _0x465b8a=a438_0x50ad;'use strict';const express=require(_0x465b8a('0x2')),router=express['Router'](),auth=require(_0x465b8a('0x7')),controller=require('./mailSubstatus.controller');router[_0x465b8a('0x6')]('/',auth[_0x465b8a('0xc')](),controller[_0x465b8a('0x5')]),router[_0x465b8a('0x6')](_0x465b8a('0x8'),auth[_0x465b8a('0xc')](),controller[_0x465b8a('0xa')]),router['get']('/:id',auth[_0x465b8a('0xc')](),controller[_0x465b8a('0xd')]),router[_0x465b8a('0x4')]('/',auth['isAuthenticated'](),controller[_0x465b8a('0xb')]),router[_0x465b8a('0x0')]('/:id',auth[_0x465b8a('0xc')](),controller['update']),router[_0x465b8a('0x3')](_0x465b8a('0x1'),auth[_0x465b8a('0xc')](),controller['destroy']),module[_0x465b8a('0x9')]=router; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.attributes.js b/server/api/mailSubstatus/mailSubstatus.attributes.js index d7e6e6c..1f966c8 100644 --- a/server/api/mailSubstatus/mailSubstatus.attributes.js +++ b/server/api/mailSubstatus/mailSubstatus.attributes.js @@ -1 +1 @@ -const a439_0x19a2=['sequelize','STRING','exports'];(function(_0x271911,_0x19a2ca){const _0x58d09d=function(_0x4308b5){while(--_0x4308b5){_0x271911['push'](_0x271911['shift']());}};_0x58d09d(++_0x19a2ca);}(a439_0x19a2,0x188));const a439_0x58d0=function(_0x271911,_0x19a2ca){_0x271911=_0x271911-0x0;let _0x58d09d=a439_0x19a2[_0x271911];return _0x58d09d;};const _0x45a8d3=a439_0x58d0;'use strict';const Sequelize=require(_0x45a8d3('0x1'));module[_0x45a8d3('0x0')]={'name':{'type':Sequelize[_0x45a8d3('0x2')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a439_0x323d=['name','STRING','sequelize','exports'];(function(_0x7d43c4,_0x323d33){const _0x49d57c=function(_0x1dafb8){while(--_0x1dafb8){_0x7d43c4['push'](_0x7d43c4['shift']());}};_0x49d57c(++_0x323d33);}(a439_0x323d,0x1e1));const a439_0x49d5=function(_0x7d43c4,_0x323d33){_0x7d43c4=_0x7d43c4-0x0;let _0x49d57c=a439_0x323d[_0x7d43c4];return _0x49d57c;};const _0x401b98=a439_0x49d5;'use strict';const Sequelize=require(_0x401b98('0x1'));module[_0x401b98('0x2')]={'name':{'type':Sequelize[_0x401b98('0x0')],'unique':_0x401b98('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x401b98('0x0')]}}; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.controller.js b/server/api/mailSubstatus/mailSubstatus.controller.js index efb0bb7..a70f981 100644 --- a/server/api/mailSubstatus/mailSubstatus.controller.js +++ b/server/api/mailSubstatus/mailSubstatus.controller.js @@ -1 +1 @@ -const a440_0x550f=['sendStatus','MailSubstatus','fieldName','length','findOne','pick','model','rawAttributes','findAll','params','body','update','filter','include','stack','destroy','order','name','map','status','query','merge','includeAll','limit','sort','key','show','sequelize','then','../../config/logger','count','intersection','describe','Content-Range','fields','rows','send','catch','where','options','keys','offset','set','filters','type','nolimit','error','create','../../mysqldb','api','json','attributes'];(function(_0x63fcfc,_0x550f92){const _0x38e966=function(_0x178d59){while(--_0x178d59){_0x63fcfc['push'](_0x63fcfc['shift']());}};_0x38e966(++_0x550f92);}(a440_0x550f,0x10d));const a440_0x38e9=function(_0x63fcfc,_0x550f92){_0x63fcfc=_0x63fcfc-0x0;let _0x38e966=a440_0x550f[_0x63fcfc];return _0x38e966;};const _0x4e5fd2=a440_0x38e9;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x4e5fd2('0x14'))(_0x4e5fd2('0x28')),db=require(_0x4e5fd2('0x27'))['db'],{Op}=require(_0x4e5fd2('0x12'));function respondWithResult(_0x178d59,_0x429dae){return _0x429dae=_0x429dae||0xc8,function(_0x5742fe){if(_0x5742fe)return _0x178d59['status'](_0x429dae)['json'](_0x5742fe);};}function respondWithFilteredResult(_0x55f40e,_0x2d31bb){return function(_0x557d1c){const _0x14e35d=a440_0x38e9;if(_0x557d1c){const _0x2eecb4=_0x557d1c['count'],_0x28c164=_0x2d31bb[_0x14e35d('0x20')];let _0x4fe6fc=_0x2d31bb[_0x14e35d('0x20')]+_0x2d31bb[_0x14e35d('0xe')],_0x1f6212;return _0x4fe6fc>=_0x2eecb4?(_0x4fe6fc=_0x2eecb4,_0x1f6212=0xc8):_0x1f6212=0xce,_0x55f40e[_0x14e35d('0xa')](_0x1f6212),_0x55f40e[_0x14e35d('0x21')](_0x14e35d('0x18'),_0x28c164+'-'+_0x4fe6fc+'/'+_0x2eecb4)[_0x14e35d('0x29')](_0x557d1c);}return null;};}function saveUpdates(_0x4fc024){return function(_0x2f4465){const _0x4ca504=a440_0x38e9;if(_0x2f4465)return _0x2f4465[_0x4ca504('0x2')](_0x4fc024)[_0x4ca504('0x13')](function(_0x348bf5){return _0x348bf5;});return null;};}function removeEntity(_0x263ac5){return function(_0x3639cb){const _0x20e498=a440_0x38e9;if(_0x3639cb)return _0x3639cb[_0x20e498('0x6')]()[_0x20e498('0x13')](function(){_0x263ac5['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x12bbab){return function(_0x117ca5){const _0x501982=a440_0x38e9;return!_0x117ca5&&_0x12bbab[_0x501982('0x2b')](0x194),_0x117ca5;};}function handleError(_0x5e2919,_0x513344){return _0x513344=_0x513344||0x1f4,function(_0x5bed1d){const _0x148bf9=a440_0x38e9;logger[_0x148bf9('0x25')](_0x5bed1d[_0x148bf9('0x5')]),_0x5bed1d[_0x148bf9('0x8')]&&delete _0x5bed1d[_0x148bf9('0x8')],_0x5e2919['status'](_0x513344)[_0x148bf9('0x1b')](_0x5bed1d);};}exports['index']=function(_0x412b1e,_0x445091){const _0x7fc67c=_0x4e5fd2;let _0xf95e62={};const _0x2c6c83={},_0x121726={'count':0x0,'rows':[]},_0x3b35cc=_[_0x7fc67c('0x9')](db[_0x7fc67c('0x2c')][_0x7fc67c('0x32')],function(_0xd99cc8){const _0x198702=_0x7fc67c;return{'name':_0xd99cc8[_0x198702('0x2d')],'type':_0xd99cc8[_0x198702('0x23')][_0x198702('0x10')]};});_0x2c6c83[_0x7fc67c('0x31')]=_[_0x7fc67c('0x9')](_0x3b35cc,_0x7fc67c('0x8')),_0x2c6c83[_0x7fc67c('0xb')]=_[_0x7fc67c('0x1f')](_0x412b1e[_0x7fc67c('0xb')]),_0x2c6c83[_0x7fc67c('0x22')]=_[_0x7fc67c('0x16')](_0x2c6c83[_0x7fc67c('0x31')],_0x2c6c83[_0x7fc67c('0xb')]),_0xf95e62[_0x7fc67c('0x2a')]=_['intersection'](_0x2c6c83[_0x7fc67c('0x31')],qs[_0x7fc67c('0x19')](_0x412b1e[_0x7fc67c('0xb')][_0x7fc67c('0x19')])),_0xf95e62['attributes']=_0xf95e62[_0x7fc67c('0x2a')]['length']?_0xf95e62[_0x7fc67c('0x2a')]:_0x2c6c83[_0x7fc67c('0x31')];typeof _0x412b1e[_0x7fc67c('0xb')][_0x7fc67c('0x24')]==='undefined'&&(_0xf95e62['limit']=qs[_0x7fc67c('0xe')](_0x412b1e[_0x7fc67c('0xb')][_0x7fc67c('0xe')]),_0xf95e62[_0x7fc67c('0x20')]=qs[_0x7fc67c('0x20')](_0x412b1e['query'][_0x7fc67c('0x20')]));_0xf95e62[_0x7fc67c('0x7')]=qs[_0x7fc67c('0xf')](_0x412b1e['query']['sort']),_0xf95e62['where']=qs[_0x7fc67c('0x22')](_[_0x7fc67c('0x30')](_0x412b1e[_0x7fc67c('0xb')],_0x2c6c83[_0x7fc67c('0x22')]),_0x3b35cc);_0x412b1e[_0x7fc67c('0xb')][_0x7fc67c('0x3')]&&(_0xf95e62[_0x7fc67c('0x1d')]=_[_0x7fc67c('0xc')](_0xf95e62[_0x7fc67c('0x1d')],{[Op['or']]:_[_0x7fc67c('0x9')](_0x3b35cc,function(_0x5a8d37){const _0x11108f=_0x7fc67c;if(_0x5a8d37[_0x11108f('0x23')]!=='VIRTUAL'){const _0xa1016a={};return _0xa1016a[_0x5a8d37[_0x11108f('0x8')]]={[Op['like']]:'%'+_0x412b1e['query']['filter']+'%'},_0xa1016a;}})}));_0xf95e62=_[_0x7fc67c('0xc')]({},_0xf95e62,_0x412b1e['options']);const _0x36faf1={'where':_0xf95e62[_0x7fc67c('0x1d')]};return db[_0x7fc67c('0x2c')][_0x7fc67c('0x15')](_0x36faf1)[_0x7fc67c('0x13')](function(_0x149cfe){const _0x4912a1=_0x7fc67c;return _0x121726[_0x4912a1('0x15')]=_0x149cfe,_0x412b1e['query']['includeAll']&&(_0xf95e62[_0x4912a1('0x4')]=[{'all':!![]}]),db['MailSubstatus'][_0x4912a1('0x33')](_0xf95e62);})[_0x7fc67c('0x13')](function(_0x5389e5){const _0x3491e8=_0x7fc67c;return _0x121726[_0x3491e8('0x1a')]=_0x5389e5,_0x121726;})['then'](respondWithFilteredResult(_0x445091,_0xf95e62))[_0x7fc67c('0x1c')](handleError(_0x445091,null));},exports[_0x4e5fd2('0x11')]=function(_0x333fd3,_0x24df11){const _0x563552=_0x4e5fd2;let _0x5b912e={'raw':!![],'where':{'id':_0x333fd3[_0x563552('0x0')]['id']}};const _0x11c1bb={};return _0x11c1bb[_0x563552('0x31')]=_[_0x563552('0x1f')](db['MailSubstatus'][_0x563552('0x32')]),_0x11c1bb[_0x563552('0xb')]=_['keys'](_0x333fd3[_0x563552('0xb')]),_0x11c1bb['filters']=_['intersection'](_0x11c1bb[_0x563552('0x31')],_0x11c1bb[_0x563552('0xb')]),_0x5b912e[_0x563552('0x2a')]=_[_0x563552('0x16')](_0x11c1bb[_0x563552('0x31')],qs[_0x563552('0x19')](_0x333fd3['query'][_0x563552('0x19')])),_0x5b912e[_0x563552('0x2a')]=_0x5b912e[_0x563552('0x2a')][_0x563552('0x2e')]?_0x5b912e['attributes']:_0x11c1bb[_0x563552('0x31')],_0x333fd3[_0x563552('0xb')][_0x563552('0xd')]&&(_0x5b912e[_0x563552('0x4')]=[{'all':!![]}]),_0x5b912e=_[_0x563552('0xc')]({},_0x5b912e,_0x333fd3[_0x563552('0x1e')]),db[_0x563552('0x2c')][_0x563552('0x2f')](_0x5b912e)[_0x563552('0x13')](handleEntityNotFound(_0x24df11,null))[_0x563552('0x13')](respondWithResult(_0x24df11,null))['catch'](handleError(_0x24df11,null));},exports[_0x4e5fd2('0x26')]=function(_0x413018,_0x2ec307){const _0x16a428=_0x4e5fd2;return db['MailSubstatus'][_0x16a428('0x26')](_0x413018[_0x16a428('0x1')],{})[_0x16a428('0x13')](respondWithResult(_0x2ec307,0xc9))[_0x16a428('0x1c')](handleError(_0x2ec307,null));},exports['update']=function(_0x5e89ae,_0x322bc3){const _0x51a6d1=_0x4e5fd2;return _0x5e89ae[_0x51a6d1('0x1')]['id']&&delete _0x5e89ae[_0x51a6d1('0x1')]['id'],db[_0x51a6d1('0x2c')][_0x51a6d1('0x2f')]({'where':{'id':_0x5e89ae['params']['id']}})[_0x51a6d1('0x13')](handleEntityNotFound(_0x322bc3,null))['then'](saveUpdates(_0x5e89ae['body'],null))[_0x51a6d1('0x13')](respondWithResult(_0x322bc3,null))['catch'](handleError(_0x322bc3,null));},exports['destroy']=function(_0x2def0a,_0x230899){const _0x121400=_0x4e5fd2;return db['MailSubstatus'][_0x121400('0x2f')]({'where':{'id':_0x2def0a[_0x121400('0x0')]['id']}})[_0x121400('0x13')](handleEntityNotFound(_0x230899,null))[_0x121400('0x13')](removeEntity(_0x230899,null))[_0x121400('0x1c')](handleError(_0x230899,null));},exports['describe']=function(_0x43f34d,_0x3972b8){const _0x398f4e=_0x4e5fd2;return db['MailSubstatus'][_0x398f4e('0x17')]()[_0x398f4e('0x13')](respondWithResult(_0x3972b8,null))[_0x398f4e('0x1c')](handleError(_0x3972b8,null));}; \ No newline at end of file +const a440_0x104a=['then','name','fieldName','merge','undefined','VIRTUAL','error','count','query','attributes','filters','map','set','catch','includeAll','body','options','model','destroy','MailSubstatus','filter','limit','order','describe','where','length','fields','include','nolimit','sendStatus','../../components/parsers/qs','json','update','../../mysqldb','sequelize','rawAttributes','index','status','pick','offset','create','key','params','api','like','keys','send','sort','lodash','findOne','intersection','show','../../config/logger','type'];(function(_0x2afaeb,_0x104a84){const _0x46b176=function(_0x26c23c){while(--_0x26c23c){_0x2afaeb['push'](_0x2afaeb['shift']());}};_0x46b176(++_0x104a84);}(a440_0x104a,0x1ca));const a440_0x46b1=function(_0x2afaeb,_0x104a84){_0x2afaeb=_0x2afaeb-0x0;let _0x46b176=a440_0x104a[_0x2afaeb];return _0x46b176;};const _0x293356=a440_0x46b1;'use strict';const _=require(_0x293356('0x16')),qs=require(_0x293356('0x4')),logger=require(_0x293356('0x1a'))(_0x293356('0x11')),db=require(_0x293356('0x7'))['db'],{Op}=require(_0x293356('0x8'));function respondWithResult(_0x26c23c,_0x4b6c06){return _0x4b6c06=_0x4b6c06||0xc8,function(_0x1662cf){const _0x1502c7=a440_0x46b1;if(_0x1662cf)return _0x26c23c[_0x1502c7('0xb')](_0x4b6c06)[_0x1502c7('0x5')](_0x1662cf);};}function respondWithFilteredResult(_0x40f12d,_0x3f2e10){return function(_0x153718){const _0x5f2ce7=a440_0x46b1;if(_0x153718){const _0x33e4f4=_0x153718['count'],_0x123a88=_0x3f2e10[_0x5f2ce7('0xd')];let _0x32214f=_0x3f2e10[_0x5f2ce7('0xd')]+_0x3f2e10[_0x5f2ce7('0x31')],_0x10d17c;return _0x32214f>=_0x33e4f4?(_0x32214f=_0x33e4f4,_0x10d17c=0xc8):_0x10d17c=0xce,_0x40f12d[_0x5f2ce7('0xb')](_0x10d17c),_0x40f12d[_0x5f2ce7('0x28')]('Content-Range',_0x123a88+'-'+_0x32214f+'/'+_0x33e4f4)['json'](_0x153718);}return null;};}function saveUpdates(_0x1eb953){return function(_0x915513){const _0x17212d=a440_0x46b1;if(_0x915513)return _0x915513[_0x17212d('0x6')](_0x1eb953)[_0x17212d('0x1c')](function(_0x3ce7d0){return _0x3ce7d0;});return null;};}function removeEntity(_0x39b64f){return function(_0x4dd97f){const _0x24c553=a440_0x46b1;if(_0x4dd97f)return _0x4dd97f[_0x24c553('0x2e')]()[_0x24c553('0x1c')](function(){const _0x4764b6=_0x24c553;_0x39b64f[_0x4764b6('0xb')](0xcc)['end']();});};}function handleEntityNotFound(_0x5cbaf7){return function(_0x2d2ddb){const _0x1e215b=a440_0x46b1;return!_0x2d2ddb&&_0x5cbaf7[_0x1e215b('0x3')](0x194),_0x2d2ddb;};}function handleError(_0x1b0a00,_0x2f6427){return _0x2f6427=_0x2f6427||0x1f4,function(_0x53b78e){const _0x42ea7a=a440_0x46b1;logger[_0x42ea7a('0x22')](_0x53b78e['stack']),_0x53b78e[_0x42ea7a('0x1d')]&&delete _0x53b78e['name'],_0x1b0a00[_0x42ea7a('0xb')](_0x2f6427)[_0x42ea7a('0x14')](_0x53b78e);};}exports[_0x293356('0xa')]=function(_0x40e219,_0x784f5c){const _0x5b59a4=_0x293356;let _0x2d5940={};const _0x3eee5f={},_0x61b2e7={'count':0x0,'rows':[]},_0x2d8897=_[_0x5b59a4('0x27')](db[_0x5b59a4('0x2f')][_0x5b59a4('0x9')],function(_0x18632d){const _0x5d3879=_0x5b59a4;return{'name':_0x18632d[_0x5d3879('0x1e')],'type':_0x18632d[_0x5d3879('0x1b')][_0x5d3879('0xf')]};});_0x3eee5f[_0x5b59a4('0x2d')]=_[_0x5b59a4('0x27')](_0x2d8897,_0x5b59a4('0x1d')),_0x3eee5f[_0x5b59a4('0x24')]=_[_0x5b59a4('0x13')](_0x40e219[_0x5b59a4('0x24')]),_0x3eee5f[_0x5b59a4('0x26')]=_['intersection'](_0x3eee5f[_0x5b59a4('0x2d')],_0x3eee5f[_0x5b59a4('0x24')]),_0x2d5940[_0x5b59a4('0x25')]=_[_0x5b59a4('0x18')](_0x3eee5f[_0x5b59a4('0x2d')],qs[_0x5b59a4('0x0')](_0x40e219[_0x5b59a4('0x24')][_0x5b59a4('0x0')])),_0x2d5940[_0x5b59a4('0x25')]=_0x2d5940['attributes'][_0x5b59a4('0x35')]?_0x2d5940['attributes']:_0x3eee5f['model'];typeof _0x40e219[_0x5b59a4('0x24')][_0x5b59a4('0x2')]===_0x5b59a4('0x20')&&(_0x2d5940[_0x5b59a4('0x31')]=qs[_0x5b59a4('0x31')](_0x40e219['query'][_0x5b59a4('0x31')]),_0x2d5940[_0x5b59a4('0xd')]=qs['offset'](_0x40e219[_0x5b59a4('0x24')][_0x5b59a4('0xd')]));_0x2d5940[_0x5b59a4('0x32')]=qs['sort'](_0x40e219[_0x5b59a4('0x24')][_0x5b59a4('0x15')]),_0x2d5940['where']=qs['filters'](_[_0x5b59a4('0xc')](_0x40e219['query'],_0x3eee5f[_0x5b59a4('0x26')]),_0x2d8897);_0x40e219[_0x5b59a4('0x24')][_0x5b59a4('0x30')]&&(_0x2d5940[_0x5b59a4('0x34')]=_[_0x5b59a4('0x1f')](_0x2d5940['where'],{[Op['or']]:_[_0x5b59a4('0x27')](_0x2d8897,function(_0x108efd){const _0x3faee7=_0x5b59a4;if(_0x108efd[_0x3faee7('0x1b')]!==_0x3faee7('0x21')){const _0x414505={};return _0x414505[_0x108efd[_0x3faee7('0x1d')]]={[Op[_0x3faee7('0x12')]]:'%'+_0x40e219[_0x3faee7('0x24')]['filter']+'%'},_0x414505;}})}));_0x2d5940=_[_0x5b59a4('0x1f')]({},_0x2d5940,_0x40e219[_0x5b59a4('0x2c')]);const _0x238b94={'where':_0x2d5940[_0x5b59a4('0x34')]};return db[_0x5b59a4('0x2f')][_0x5b59a4('0x23')](_0x238b94)['then'](function(_0x2819a7){const _0x19feac=_0x5b59a4;return _0x61b2e7['count']=_0x2819a7,_0x40e219[_0x19feac('0x24')][_0x19feac('0x2a')]&&(_0x2d5940[_0x19feac('0x1')]=[{'all':!![]}]),db[_0x19feac('0x2f')]['findAll'](_0x2d5940);})[_0x5b59a4('0x1c')](function(_0x1d6b8c){return _0x61b2e7['rows']=_0x1d6b8c,_0x61b2e7;})['then'](respondWithFilteredResult(_0x784f5c,_0x2d5940))[_0x5b59a4('0x29')](handleError(_0x784f5c,null));},exports[_0x293356('0x19')]=function(_0x597182,_0x92ed7){const _0x10e010=_0x293356;let _0x1b118b={'raw':!![],'where':{'id':_0x597182['params']['id']}};const _0x5894e1={};return _0x5894e1[_0x10e010('0x2d')]=_[_0x10e010('0x13')](db['MailSubstatus']['rawAttributes']),_0x5894e1[_0x10e010('0x24')]=_[_0x10e010('0x13')](_0x597182[_0x10e010('0x24')]),_0x5894e1['filters']=_[_0x10e010('0x18')](_0x5894e1['model'],_0x5894e1['query']),_0x1b118b[_0x10e010('0x25')]=_[_0x10e010('0x18')](_0x5894e1[_0x10e010('0x2d')],qs[_0x10e010('0x0')](_0x597182[_0x10e010('0x24')]['fields'])),_0x1b118b[_0x10e010('0x25')]=_0x1b118b['attributes']['length']?_0x1b118b[_0x10e010('0x25')]:_0x5894e1[_0x10e010('0x2d')],_0x597182[_0x10e010('0x24')][_0x10e010('0x2a')]&&(_0x1b118b[_0x10e010('0x1')]=[{'all':!![]}]),_0x1b118b=_[_0x10e010('0x1f')]({},_0x1b118b,_0x597182[_0x10e010('0x2c')]),db['MailSubstatus'][_0x10e010('0x17')](_0x1b118b)[_0x10e010('0x1c')](handleEntityNotFound(_0x92ed7,null))[_0x10e010('0x1c')](respondWithResult(_0x92ed7,null))[_0x10e010('0x29')](handleError(_0x92ed7,null));},exports[_0x293356('0xe')]=function(_0x51b038,_0x170f8b){const _0x2858e2=_0x293356;return db[_0x2858e2('0x2f')][_0x2858e2('0xe')](_0x51b038[_0x2858e2('0x2b')],{})[_0x2858e2('0x1c')](respondWithResult(_0x170f8b,0xc9))[_0x2858e2('0x29')](handleError(_0x170f8b,null));},exports[_0x293356('0x6')]=function(_0x3b3ecf,_0x11bfce){const _0xd44007=_0x293356;return _0x3b3ecf[_0xd44007('0x2b')]['id']&&delete _0x3b3ecf[_0xd44007('0x2b')]['id'],db[_0xd44007('0x2f')][_0xd44007('0x17')]({'where':{'id':_0x3b3ecf[_0xd44007('0x10')]['id']}})[_0xd44007('0x1c')](handleEntityNotFound(_0x11bfce,null))[_0xd44007('0x1c')](saveUpdates(_0x3b3ecf[_0xd44007('0x2b')],null))['then'](respondWithResult(_0x11bfce,null))[_0xd44007('0x29')](handleError(_0x11bfce,null));},exports[_0x293356('0x2e')]=function(_0x42cf90,_0xe9fd53){const _0x5b287e=_0x293356;return db['MailSubstatus'][_0x5b287e('0x17')]({'where':{'id':_0x42cf90[_0x5b287e('0x10')]['id']}})[_0x5b287e('0x1c')](handleEntityNotFound(_0xe9fd53,null))['then'](removeEntity(_0xe9fd53,null))[_0x5b287e('0x29')](handleError(_0xe9fd53,null));},exports[_0x293356('0x33')]=function(_0xdff445,_0x53d1a2){const _0x2f9ed8=_0x293356;return db[_0x2f9ed8('0x2f')]['describe']()[_0x2f9ed8('0x1c')](respondWithResult(_0x53d1a2,null))[_0x2f9ed8('0x29')](handleError(_0x53d1a2,null));}; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.model.js b/server/api/mailSubstatus/mailSubstatus.model.js index 4fb5a6a..0cf538c 100644 --- a/server/api/mailSubstatus/mailSubstatus.model.js +++ b/server/api/mailSubstatus/mailSubstatus.model.js @@ -1 +1 @@ -const a441_0x4037=['mail_substatuses','define','MailSubstatus'];(function(_0x1a1f99,_0x4037f4){const _0x4ff9fb=function(_0x1ab072){while(--_0x1ab072){_0x1a1f99['push'](_0x1a1f99['shift']());}};_0x4ff9fb(++_0x4037f4);}(a441_0x4037,0x64));const a441_0x4ff9=function(_0x1a1f99,_0x4037f4){_0x1a1f99=_0x1a1f99-0x0;let _0x4ff9fb=a441_0x4037[_0x1a1f99];return _0x4ff9fb;};'use strict';const attributes=require('./mailSubstatus.attributes');module['exports']=function(_0x1ab072){const _0x37bd1d=a441_0x4ff9,_0xeaf4d0=_0x1ab072[_0x37bd1d('0x0')](_0x37bd1d('0x1'),attributes,{'tableName':_0x37bd1d('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xeaf4d0;}; \ No newline at end of file +const a441_0x5697=['MailSubstatus','exports','mail_substatuses'];(function(_0x5727cb,_0x5697f4){const _0x5db039=function(_0x406e2b){while(--_0x406e2b){_0x5727cb['push'](_0x5727cb['shift']());}};_0x5db039(++_0x5697f4);}(a441_0x5697,0x199));const a441_0x5db0=function(_0x5727cb,_0x5697f4){_0x5727cb=_0x5727cb-0x0;let _0x5db039=a441_0x5697[_0x5727cb];return _0x5db039;};const _0x29a0aa=a441_0x5db0;'use strict';const attributes=require('./mailSubstatus.attributes');module[_0x29a0aa('0x0')]=function(_0x406e2b){const _0x3c2d1d=_0x29a0aa,_0x20e7fb=_0x406e2b['define'](_0x3c2d1d('0x2'),attributes,{'tableName':_0x3c2d1d('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x20e7fb;}; \ No newline at end of file diff --git a/server/api/mailTransferReport/index.js b/server/api/mailTransferReport/index.js index 2deeb0a..1cc37fc 100644 --- a/server/api/mailTransferReport/index.js +++ b/server/api/mailTransferReport/index.js @@ -1 +1 @@ -const a442_0x2cb7=['update','/:id','show','delete','/describe','destroy','post','get','./mailTransferReport.controller','../../components/auth/service','express','create','index','isAuthenticated','exports','describe','Router','put'];(function(_0x5a8736,_0x2cb71e){const _0x2f84f6=function(_0x1eb21b){while(--_0x1eb21b){_0x5a8736['push'](_0x5a8736['shift']());}};_0x2f84f6(++_0x2cb71e);}(a442_0x2cb7,0x1a0));const a442_0x2f84=function(_0x5a8736,_0x2cb71e){_0x5a8736=_0x5a8736-0x0;let _0x2f84f6=a442_0x2cb7[_0x5a8736];return _0x2f84f6;};const _0x577757=a442_0x2f84;'use strict';const express=require(_0x577757('0x8')),router=express[_0x577757('0xe')](),auth=require(_0x577757('0x7')),controller=require(_0x577757('0x6'));router[_0x577757('0x5')]('/',auth[_0x577757('0xb')](),controller[_0x577757('0xa')]),router[_0x577757('0x5')](_0x577757('0x2'),auth[_0x577757('0xb')](),controller[_0x577757('0xd')]),router[_0x577757('0x5')](_0x577757('0x11'),auth[_0x577757('0xb')](),controller[_0x577757('0x0')]),router[_0x577757('0x4')]('/',auth['isAuthenticated'](),controller[_0x577757('0x9')]),router[_0x577757('0xf')](_0x577757('0x11'),auth['isAuthenticated'](),controller[_0x577757('0x10')]),router[_0x577757('0x1')](_0x577757('0x11'),auth[_0x577757('0xb')](),controller[_0x577757('0x3')]),module[_0x577757('0xc')]=router; \ No newline at end of file +const a442_0x4a32=['create','show','./mailTransferReport.controller','index','post','/:id','../../components/auth/service','isAuthenticated','express','Router','put','get'];(function(_0x4da7e3,_0x4a329a){const _0x149b53=function(_0x133e28){while(--_0x133e28){_0x4da7e3['push'](_0x4da7e3['shift']());}};_0x149b53(++_0x4a329a);}(a442_0x4a32,0xe3));const a442_0x149b=function(_0x4da7e3,_0x4a329a){_0x4da7e3=_0x4da7e3-0x0;let _0x149b53=a442_0x4a32[_0x4da7e3];return _0x149b53;};const _0x210b0e=a442_0x149b;'use strict';const express=require(_0x210b0e('0x9')),router=express[_0x210b0e('0xa')](),auth=require(_0x210b0e('0x7')),controller=require(_0x210b0e('0x3'));router[_0x210b0e('0x0')]('/',auth[_0x210b0e('0x8')](),controller[_0x210b0e('0x4')]),router[_0x210b0e('0x0')]('/describe',auth[_0x210b0e('0x8')](),controller['describe']),router[_0x210b0e('0x0')](_0x210b0e('0x6'),auth[_0x210b0e('0x8')](),controller[_0x210b0e('0x2')]),router[_0x210b0e('0x5')]('/',auth['isAuthenticated'](),controller[_0x210b0e('0x1')]),router[_0x210b0e('0xb')](_0x210b0e('0x6'),auth['isAuthenticated'](),controller['update']),router['delete'](_0x210b0e('0x6'),auth[_0x210b0e('0x8')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.attributes.js b/server/api/mailTransferReport/mailTransferReport.attributes.js index 241d00b..5bccec4 100644 --- a/server/api/mailTransferReport/mailTransferReport.attributes.js +++ b/server/api/mailTransferReport/mailTransferReport.attributes.js @@ -1 +1 @@ -const a443_0x4e03=['queue','sequelize','agent','DATE','STRING'];(function(_0x37a6aa,_0x4e032f){const _0x2a0836=function(_0x277fbd){while(--_0x277fbd){_0x37a6aa['push'](_0x37a6aa['shift']());}};_0x2a0836(++_0x4e032f);}(a443_0x4e03,0x129));const a443_0x2a08=function(_0x37a6aa,_0x4e032f){_0x37a6aa=_0x37a6aa-0x0;let _0x2a0836=a443_0x4e03[_0x37a6aa];return _0x2a0836;};const _0x306e0e=a443_0x2a08;'use strict';const Sequelize=require(_0x306e0e('0x4'));module['exports']={'uniqueid':{'type':Sequelize[_0x306e0e('0x2')],'allowNull':![]},'type':{'type':Sequelize['ENUM']('account',_0x306e0e('0x0'),_0x306e0e('0x3')),'allowNull':![],'defaultValue':_0x306e0e('0x3')},'transferredAt':{'type':Sequelize[_0x306e0e('0x1')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a443_0x3dcf=['sequelize','account','STRING','queue','exports','DATE','ENUM'];(function(_0x4082ed,_0x3dcfd8){const _0x4c4e7a=function(_0x2f810b){while(--_0x2f810b){_0x4082ed['push'](_0x4082ed['shift']());}};_0x4c4e7a(++_0x3dcfd8);}(a443_0x3dcf,0x91));const a443_0x4c4e=function(_0x4082ed,_0x3dcfd8){_0x4082ed=_0x4082ed-0x0;let _0x4c4e7a=a443_0x3dcf[_0x4082ed];return _0x4c4e7a;};const _0x24d9fa=a443_0x4c4e;'use strict';const Sequelize=require(_0x24d9fa('0x2'));module[_0x24d9fa('0x6')]={'uniqueid':{'type':Sequelize[_0x24d9fa('0x4')],'allowNull':![]},'type':{'type':Sequelize[_0x24d9fa('0x1')](_0x24d9fa('0x3'),'agent',_0x24d9fa('0x5')),'allowNull':![],'defaultValue':_0x24d9fa('0x5')},'transferredAt':{'type':Sequelize[_0x24d9fa('0x0')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.controller.js b/server/api/mailTransferReport/mailTransferReport.controller.js index 4ace5dc..695877c 100644 --- a/server/api/mailTransferReport/mailTransferReport.controller.js +++ b/server/api/mailTransferReport/mailTransferReport.controller.js @@ -1 +1 @@ -const a444_0xfd30=['create','rows','../../mysqldb','includeAll','count','send','key','filter','rawAttributes','where','stack','query','sendStatus','lodash','../../components/parsers/qs','model','keys','findOne','map','../../config/logger','params','sort','error','filters','sequelize','Content-Range','include','status','VIRTUAL','length','merge','fieldName','MailTransferReport','json','destroy','offset','show','index','intersection','nolimit','catch','update','fields','then','order','body','attributes','name','api','type','limit','describe','like','set','findAll','options'];(function(_0x1575e9,_0xfd3009){const _0xf88cb7=function(_0x411cac){while(--_0x411cac){_0x1575e9['push'](_0x1575e9['shift']());}};_0xf88cb7(++_0xfd3009);}(a444_0xfd30,0x86));const a444_0xf88c=function(_0x1575e9,_0xfd3009){_0x1575e9=_0x1575e9-0x0;let _0xf88cb7=a444_0xfd30[_0x1575e9];return _0xf88cb7;};const _0x7580d5=a444_0xf88c;'use strict';const _=require(_0x7580d5('0x2f')),qs=require(_0x7580d5('0x30')),logger=require(_0x7580d5('0x35'))(_0x7580d5('0x1a')),db=require(_0x7580d5('0x24'))['db'],{Op}=require(_0x7580d5('0x2'));function respondWithResult(_0x411cac,_0x1f127d){return _0x1f127d=_0x1f127d||0xc8,function(_0x2d634b){const _0x2ee33d=a444_0xf88c;if(_0x2d634b)return _0x411cac['status'](_0x1f127d)[_0x2ee33d('0xb')](_0x2d634b);};}function respondWithFilteredResult(_0x35e8a8,_0x23fe9f){return function(_0x5f368f){const _0x3f4b96=a444_0xf88c;if(_0x5f368f){const _0x145c28=_0x5f368f['count'],_0x3ee27b=_0x23fe9f[_0x3f4b96('0xd')];let _0x2bb02b=_0x23fe9f['offset']+_0x23fe9f['limit'],_0x56f1ff;return _0x2bb02b>=_0x145c28?(_0x2bb02b=_0x145c28,_0x56f1ff=0xc8):_0x56f1ff=0xce,_0x35e8a8['status'](_0x56f1ff),_0x35e8a8[_0x3f4b96('0x1f')](_0x3f4b96('0x3'),_0x3ee27b+'-'+_0x2bb02b+'/'+_0x145c28)['json'](_0x5f368f);}return null;};}function saveUpdates(_0xb929b){return function(_0x4db2c7){const _0xa8ace4=a444_0xf88c;if(_0x4db2c7)return _0x4db2c7[_0xa8ace4('0x13')](_0xb929b)[_0xa8ace4('0x15')](function(_0x3693d4){return _0x3693d4;});return null;};}function removeEntity(_0x27976e){return function(_0x5b14e1){const _0x3b844d=a444_0xf88c;if(_0x5b14e1)return _0x5b14e1[_0x3b844d('0xc')]()['then'](function(){_0x27976e['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x6dd468){return function(_0x39c77c){const _0x466cc0=a444_0xf88c;return!_0x39c77c&&_0x6dd468[_0x466cc0('0x2e')](0x194),_0x39c77c;};}function handleError(_0x2bb667,_0x5a0858){return _0x5a0858=_0x5a0858||0x1f4,function(_0x257811){const _0x5483d9=a444_0xf88c;logger[_0x5483d9('0x0')](_0x257811[_0x5483d9('0x2c')]),_0x257811[_0x5483d9('0x19')]&&delete _0x257811[_0x5483d9('0x19')],_0x2bb667[_0x5483d9('0x5')](_0x5a0858)[_0x5483d9('0x27')](_0x257811);};}exports[_0x7580d5('0xf')]=function(_0x436f5c,_0x4726d0){const _0x18f5b1=_0x7580d5;let _0x5bbd02={};const _0x2fb16d={},_0x3a9419={'count':0x0,'rows':[]},_0x54d386=_[_0x18f5b1('0x34')](db[_0x18f5b1('0xa')]['rawAttributes'],function(_0x113c5b){const _0x4697e1=_0x18f5b1;return{'name':_0x113c5b[_0x4697e1('0x9')],'type':_0x113c5b[_0x4697e1('0x1b')][_0x4697e1('0x28')]};});_0x2fb16d[_0x18f5b1('0x31')]=_['map'](_0x54d386,'name'),_0x2fb16d[_0x18f5b1('0x2d')]=_[_0x18f5b1('0x32')](_0x436f5c['query']),_0x2fb16d[_0x18f5b1('0x1')]=_[_0x18f5b1('0x10')](_0x2fb16d[_0x18f5b1('0x31')],_0x2fb16d['query']),_0x5bbd02[_0x18f5b1('0x18')]=_[_0x18f5b1('0x10')](_0x2fb16d[_0x18f5b1('0x31')],qs[_0x18f5b1('0x14')](_0x436f5c[_0x18f5b1('0x2d')][_0x18f5b1('0x14')])),_0x5bbd02[_0x18f5b1('0x18')]=_0x5bbd02[_0x18f5b1('0x18')][_0x18f5b1('0x7')]?_0x5bbd02[_0x18f5b1('0x18')]:_0x2fb16d['model'];typeof _0x436f5c['query'][_0x18f5b1('0x11')]==='undefined'&&(_0x5bbd02[_0x18f5b1('0x1c')]=qs[_0x18f5b1('0x1c')](_0x436f5c[_0x18f5b1('0x2d')][_0x18f5b1('0x1c')]),_0x5bbd02[_0x18f5b1('0xd')]=qs['offset'](_0x436f5c[_0x18f5b1('0x2d')][_0x18f5b1('0xd')]));_0x5bbd02[_0x18f5b1('0x16')]=qs[_0x18f5b1('0x37')](_0x436f5c[_0x18f5b1('0x2d')][_0x18f5b1('0x37')]),_0x5bbd02[_0x18f5b1('0x2b')]=qs[_0x18f5b1('0x1')](_['pick'](_0x436f5c[_0x18f5b1('0x2d')],_0x2fb16d[_0x18f5b1('0x1')]),_0x54d386);_0x436f5c[_0x18f5b1('0x2d')][_0x18f5b1('0x29')]&&(_0x5bbd02[_0x18f5b1('0x2b')]=_[_0x18f5b1('0x8')](_0x5bbd02[_0x18f5b1('0x2b')],{[Op['or']]:_[_0x18f5b1('0x34')](_0x54d386,function(_0x53a6fc){const _0x48f65e=_0x18f5b1;if(_0x53a6fc['type']!==_0x48f65e('0x6')){const _0x17e8a5={};return _0x17e8a5[_0x53a6fc[_0x48f65e('0x19')]]={[Op[_0x48f65e('0x1e')]]:'%'+_0x436f5c[_0x48f65e('0x2d')][_0x48f65e('0x29')]+'%'},_0x17e8a5;}})}));_0x5bbd02=_['merge']({},_0x5bbd02,_0x436f5c[_0x18f5b1('0x21')]);const _0xa2fdcd={'where':_0x5bbd02[_0x18f5b1('0x2b')]};return db[_0x18f5b1('0xa')]['count'](_0xa2fdcd)[_0x18f5b1('0x15')](function(_0x163b6d){const _0x4d981f=_0x18f5b1;return _0x3a9419[_0x4d981f('0x26')]=_0x163b6d,_0x436f5c['query']['includeAll']&&(_0x5bbd02[_0x4d981f('0x4')]=[{'all':!![]}]),db['MailTransferReport'][_0x4d981f('0x20')](_0x5bbd02);})[_0x18f5b1('0x15')](function(_0x27d1ae){const _0x5dad76=_0x18f5b1;return _0x3a9419[_0x5dad76('0x23')]=_0x27d1ae,_0x3a9419;})[_0x18f5b1('0x15')](respondWithFilteredResult(_0x4726d0,_0x5bbd02))['catch'](handleError(_0x4726d0,null));},exports[_0x7580d5('0xe')]=function(_0x21276e,_0x516cf9){const _0x2b1a1a=_0x7580d5;let _0x54953b={'raw':!![],'where':{'id':_0x21276e[_0x2b1a1a('0x36')]['id']}};const _0x249774={};return _0x249774['model']=_['keys'](db[_0x2b1a1a('0xa')][_0x2b1a1a('0x2a')]),_0x249774['query']=_[_0x2b1a1a('0x32')](_0x21276e[_0x2b1a1a('0x2d')]),_0x249774[_0x2b1a1a('0x1')]=_['intersection'](_0x249774[_0x2b1a1a('0x31')],_0x249774[_0x2b1a1a('0x2d')]),_0x54953b[_0x2b1a1a('0x18')]=_[_0x2b1a1a('0x10')](_0x249774['model'],qs[_0x2b1a1a('0x14')](_0x21276e[_0x2b1a1a('0x2d')]['fields'])),_0x54953b[_0x2b1a1a('0x18')]=_0x54953b[_0x2b1a1a('0x18')][_0x2b1a1a('0x7')]?_0x54953b['attributes']:_0x249774['model'],_0x21276e['query'][_0x2b1a1a('0x25')]&&(_0x54953b[_0x2b1a1a('0x4')]=[{'all':!![]}]),_0x54953b=_[_0x2b1a1a('0x8')]({},_0x54953b,_0x21276e[_0x2b1a1a('0x21')]),db[_0x2b1a1a('0xa')]['findOne'](_0x54953b)[_0x2b1a1a('0x15')](handleEntityNotFound(_0x516cf9,null))[_0x2b1a1a('0x15')](respondWithResult(_0x516cf9,null))[_0x2b1a1a('0x12')](handleError(_0x516cf9,null));},exports[_0x7580d5('0x22')]=function(_0x2d5d31,_0x1d2533){const _0x2f58ae=_0x7580d5;return db[_0x2f58ae('0xa')]['create'](_0x2d5d31[_0x2f58ae('0x17')],{})[_0x2f58ae('0x15')](respondWithResult(_0x1d2533,0xc9))[_0x2f58ae('0x12')](handleError(_0x1d2533,null));},exports['update']=function(_0x5dffe5,_0x4229f7){const _0x1250fb=_0x7580d5;return _0x5dffe5[_0x1250fb('0x17')]['id']&&delete _0x5dffe5[_0x1250fb('0x17')]['id'],db[_0x1250fb('0xa')][_0x1250fb('0x33')]({'where':{'id':_0x5dffe5[_0x1250fb('0x36')]['id']}})[_0x1250fb('0x15')](handleEntityNotFound(_0x4229f7,null))[_0x1250fb('0x15')](saveUpdates(_0x5dffe5[_0x1250fb('0x17')],null))['then'](respondWithResult(_0x4229f7,null))[_0x1250fb('0x12')](handleError(_0x4229f7,null));},exports['destroy']=function(_0x59720d,_0x22e74d){const _0x205b4e=_0x7580d5;return db[_0x205b4e('0xa')][_0x205b4e('0x33')]({'where':{'id':_0x59720d[_0x205b4e('0x36')]['id']}})['then'](handleEntityNotFound(_0x22e74d,null))[_0x205b4e('0x15')](removeEntity(_0x22e74d,null))[_0x205b4e('0x12')](handleError(_0x22e74d,null));},exports[_0x7580d5('0x1d')]=function(_0x3f5092,_0x191d56){const _0x2896d3=_0x7580d5;return db[_0x2896d3('0xa')]['describe']()[_0x2896d3('0x15')](respondWithResult(_0x191d56,null))[_0x2896d3('0x12')](handleError(_0x191d56,null));}; \ No newline at end of file +const a444_0x4d28=['json','order','keys','set','../../components/parsers/qs','findAll','../../mysqldb','params','includeAll','create','findOne','catch','send','destroy','limit','then','body','filters','fieldName','like','merge','status','map','where','describe','update','filter','offset','model','../../config/logger','name','intersection','MailTransferReport','rawAttributes','api','index','attributes','undefined','length','lodash','rows','key','options','pick','sequelize','sort','count','type','fields','query'];(function(_0x35af52,_0x4d2817){const _0x2dbff4=function(_0x25e86a){while(--_0x25e86a){_0x35af52['push'](_0x35af52['shift']());}};_0x2dbff4(++_0x4d2817);}(a444_0x4d28,0x1eb));const a444_0x2dbf=function(_0x35af52,_0x4d2817){_0x35af52=_0x35af52-0x0;let _0x2dbff4=a444_0x4d28[_0x35af52];return _0x2dbff4;};const _0x57e792=a444_0x2dbf;'use strict';const _=require(_0x57e792('0x30')),qs=require(_0x57e792('0xd')),logger=require(_0x57e792('0x26'))(_0x57e792('0x2b')),db=require(_0x57e792('0xf'))['db'],{Op}=require(_0x57e792('0x3'));function respondWithResult(_0x25e86a,_0x43ca80){return _0x43ca80=_0x43ca80||0xc8,function(_0x181603){const _0x4c6d86=a444_0x2dbf;if(_0x181603)return _0x25e86a[_0x4c6d86('0x1e')](_0x43ca80)['json'](_0x181603);};}function respondWithFilteredResult(_0x48e5b3,_0xa06f24){return function(_0x42f6dd){const _0x10fa3e=a444_0x2dbf;if(_0x42f6dd){const _0x3ae333=_0x42f6dd[_0x10fa3e('0x5')],_0x41c49a=_0xa06f24[_0x10fa3e('0x24')];let _0x3d8d13=_0xa06f24[_0x10fa3e('0x24')]+_0xa06f24[_0x10fa3e('0x17')],_0x567366;return _0x3d8d13>=_0x3ae333?(_0x3d8d13=_0x3ae333,_0x567366=0xc8):_0x567366=0xce,_0x48e5b3[_0x10fa3e('0x1e')](_0x567366),_0x48e5b3[_0x10fa3e('0xc')]('Content-Range',_0x41c49a+'-'+_0x3d8d13+'/'+_0x3ae333)[_0x10fa3e('0x9')](_0x42f6dd);}return null;};}function saveUpdates(_0xd07927){return function(_0x82e0de){const _0x21fc5f=a444_0x2dbf;if(_0x82e0de)return _0x82e0de[_0x21fc5f('0x22')](_0xd07927)[_0x21fc5f('0x18')](function(_0x55a6c6){return _0x55a6c6;});return null;};}function removeEntity(_0x8f8fef){return function(_0x22ebed){const _0x1a0016=a444_0x2dbf;if(_0x22ebed)return _0x22ebed[_0x1a0016('0x16')]()[_0x1a0016('0x18')](function(){const _0x2e13c2=_0x1a0016;_0x8f8fef[_0x2e13c2('0x1e')](0xcc)['end']();});};}function handleEntityNotFound(_0x116cd8){return function(_0x53b03f){return!_0x53b03f&&_0x116cd8['sendStatus'](0x194),_0x53b03f;};}function handleError(_0x2a51a3,_0x399d51){return _0x399d51=_0x399d51||0x1f4,function(_0x3f6aac){const _0x1609f8=a444_0x2dbf;logger['error'](_0x3f6aac['stack']),_0x3f6aac['name']&&delete _0x3f6aac[_0x1609f8('0x27')],_0x2a51a3[_0x1609f8('0x1e')](_0x399d51)[_0x1609f8('0x15')](_0x3f6aac);};}exports[_0x57e792('0x2c')]=function(_0x70739b,_0x5b5d6a){const _0x3f1bdb=_0x57e792;let _0x1700f1={};const _0x1fafcd={},_0x3c454e={'count':0x0,'rows':[]},_0x2726b9=_[_0x3f1bdb('0x1f')](db[_0x3f1bdb('0x29')][_0x3f1bdb('0x2a')],function(_0x12d19a){const _0x5654e1=_0x3f1bdb;return{'name':_0x12d19a[_0x5654e1('0x1b')],'type':_0x12d19a[_0x5654e1('0x6')][_0x5654e1('0x0')]};});_0x1fafcd[_0x3f1bdb('0x25')]=_[_0x3f1bdb('0x1f')](_0x2726b9,_0x3f1bdb('0x27')),_0x1fafcd[_0x3f1bdb('0x8')]=_[_0x3f1bdb('0xb')](_0x70739b[_0x3f1bdb('0x8')]),_0x1fafcd[_0x3f1bdb('0x1a')]=_[_0x3f1bdb('0x28')](_0x1fafcd['model'],_0x1fafcd[_0x3f1bdb('0x8')]),_0x1700f1[_0x3f1bdb('0x2d')]=_[_0x3f1bdb('0x28')](_0x1fafcd[_0x3f1bdb('0x25')],qs[_0x3f1bdb('0x7')](_0x70739b[_0x3f1bdb('0x8')][_0x3f1bdb('0x7')])),_0x1700f1[_0x3f1bdb('0x2d')]=_0x1700f1[_0x3f1bdb('0x2d')][_0x3f1bdb('0x2f')]?_0x1700f1['attributes']:_0x1fafcd[_0x3f1bdb('0x25')];typeof _0x70739b[_0x3f1bdb('0x8')]['nolimit']===_0x3f1bdb('0x2e')&&(_0x1700f1[_0x3f1bdb('0x17')]=qs[_0x3f1bdb('0x17')](_0x70739b[_0x3f1bdb('0x8')][_0x3f1bdb('0x17')]),_0x1700f1[_0x3f1bdb('0x24')]=qs[_0x3f1bdb('0x24')](_0x70739b[_0x3f1bdb('0x8')][_0x3f1bdb('0x24')]));_0x1700f1[_0x3f1bdb('0xa')]=qs[_0x3f1bdb('0x4')](_0x70739b[_0x3f1bdb('0x8')][_0x3f1bdb('0x4')]),_0x1700f1[_0x3f1bdb('0x20')]=qs['filters'](_[_0x3f1bdb('0x2')](_0x70739b[_0x3f1bdb('0x8')],_0x1fafcd[_0x3f1bdb('0x1a')]),_0x2726b9);_0x70739b['query'][_0x3f1bdb('0x23')]&&(_0x1700f1['where']=_[_0x3f1bdb('0x1d')](_0x1700f1[_0x3f1bdb('0x20')],{[Op['or']]:_[_0x3f1bdb('0x1f')](_0x2726b9,function(_0x28dc29){const _0x2cdbf6=_0x3f1bdb;if(_0x28dc29[_0x2cdbf6('0x6')]!=='VIRTUAL'){const _0x2687b9={};return _0x2687b9[_0x28dc29[_0x2cdbf6('0x27')]]={[Op[_0x2cdbf6('0x1c')]]:'%'+_0x70739b[_0x2cdbf6('0x8')][_0x2cdbf6('0x23')]+'%'},_0x2687b9;}})}));_0x1700f1=_[_0x3f1bdb('0x1d')]({},_0x1700f1,_0x70739b[_0x3f1bdb('0x1')]);const _0x16bb8d={'where':_0x1700f1['where']};return db[_0x3f1bdb('0x29')][_0x3f1bdb('0x5')](_0x16bb8d)['then'](function(_0x5bd371){const _0x5ac48a=_0x3f1bdb;return _0x3c454e[_0x5ac48a('0x5')]=_0x5bd371,_0x70739b[_0x5ac48a('0x8')][_0x5ac48a('0x11')]&&(_0x1700f1['include']=[{'all':!![]}]),db[_0x5ac48a('0x29')][_0x5ac48a('0xe')](_0x1700f1);})[_0x3f1bdb('0x18')](function(_0x13d317){const _0x53ae33=_0x3f1bdb;return _0x3c454e[_0x53ae33('0x31')]=_0x13d317,_0x3c454e;})[_0x3f1bdb('0x18')](respondWithFilteredResult(_0x5b5d6a,_0x1700f1))[_0x3f1bdb('0x14')](handleError(_0x5b5d6a,null));},exports['show']=function(_0x2e8060,_0x10bb8c){const _0x3a9b27=_0x57e792;let _0x334b64={'raw':!![],'where':{'id':_0x2e8060[_0x3a9b27('0x10')]['id']}};const _0x459dfc={};return _0x459dfc[_0x3a9b27('0x25')]=_[_0x3a9b27('0xb')](db['MailTransferReport'][_0x3a9b27('0x2a')]),_0x459dfc['query']=_[_0x3a9b27('0xb')](_0x2e8060['query']),_0x459dfc[_0x3a9b27('0x1a')]=_['intersection'](_0x459dfc['model'],_0x459dfc[_0x3a9b27('0x8')]),_0x334b64[_0x3a9b27('0x2d')]=_['intersection'](_0x459dfc[_0x3a9b27('0x25')],qs[_0x3a9b27('0x7')](_0x2e8060[_0x3a9b27('0x8')][_0x3a9b27('0x7')])),_0x334b64[_0x3a9b27('0x2d')]=_0x334b64[_0x3a9b27('0x2d')][_0x3a9b27('0x2f')]?_0x334b64[_0x3a9b27('0x2d')]:_0x459dfc[_0x3a9b27('0x25')],_0x2e8060[_0x3a9b27('0x8')][_0x3a9b27('0x11')]&&(_0x334b64['include']=[{'all':!![]}]),_0x334b64=_['merge']({},_0x334b64,_0x2e8060['options']),db[_0x3a9b27('0x29')][_0x3a9b27('0x13')](_0x334b64)[_0x3a9b27('0x18')](handleEntityNotFound(_0x10bb8c,null))[_0x3a9b27('0x18')](respondWithResult(_0x10bb8c,null))[_0x3a9b27('0x14')](handleError(_0x10bb8c,null));},exports[_0x57e792('0x12')]=function(_0x25d4df,_0x359a4a){const _0xcddb66=_0x57e792;return db[_0xcddb66('0x29')]['create'](_0x25d4df[_0xcddb66('0x19')],{})[_0xcddb66('0x18')](respondWithResult(_0x359a4a,0xc9))[_0xcddb66('0x14')](handleError(_0x359a4a,null));},exports[_0x57e792('0x22')]=function(_0x250f7f,_0x1f167b){const _0x4560d2=_0x57e792;return _0x250f7f[_0x4560d2('0x19')]['id']&&delete _0x250f7f[_0x4560d2('0x19')]['id'],db[_0x4560d2('0x29')][_0x4560d2('0x13')]({'where':{'id':_0x250f7f[_0x4560d2('0x10')]['id']}})[_0x4560d2('0x18')](handleEntityNotFound(_0x1f167b,null))[_0x4560d2('0x18')](saveUpdates(_0x250f7f['body'],null))['then'](respondWithResult(_0x1f167b,null))[_0x4560d2('0x14')](handleError(_0x1f167b,null));},exports[_0x57e792('0x16')]=function(_0x50fe23,_0x5cd3e6){const _0x303d97=_0x57e792;return db[_0x303d97('0x29')][_0x303d97('0x13')]({'where':{'id':_0x50fe23[_0x303d97('0x10')]['id']}})['then'](handleEntityNotFound(_0x5cd3e6,null))['then'](removeEntity(_0x5cd3e6,null))['catch'](handleError(_0x5cd3e6,null));},exports[_0x57e792('0x21')]=function(_0x2d2cc2,_0x540eeb){const _0x4dc794=_0x57e792;return db[_0x4dc794('0x29')][_0x4dc794('0x21')]()[_0x4dc794('0x18')](respondWithResult(_0x540eeb,null))[_0x4dc794('0x14')](handleError(_0x540eeb,null));}; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.model.js b/server/api/mailTransferReport/mailTransferReport.model.js index 0cf3891..4f547ea 100644 --- a/server/api/mailTransferReport/mailTransferReport.model.js +++ b/server/api/mailTransferReport/mailTransferReport.model.js @@ -1 +1 @@ -const a445_0x218f=['uniqueid','define','exports','./mailTransferReport.attributes','MailTransferReport'];(function(_0xb9a5f3,_0x218f22){const _0x1b90cd=function(_0x558939){while(--_0x558939){_0xb9a5f3['push'](_0xb9a5f3['shift']());}};_0x1b90cd(++_0x218f22);}(a445_0x218f,0xd2));const a445_0x1b90=function(_0xb9a5f3,_0x218f22){_0xb9a5f3=_0xb9a5f3-0x0;let _0x1b90cd=a445_0x218f[_0xb9a5f3];return _0x1b90cd;};const _0x233ab7=a445_0x1b90;'use strict';const attributes=require(_0x233ab7('0x3'));module[_0x233ab7('0x2')]=function(_0x558939){const _0x484279=_0x233ab7,_0x437bfc=_0x558939[_0x484279('0x1')](_0x484279('0x4'),attributes,{'tableName':'report_mail_transfer','paranoid':![],'indexes':[{'name':_0x484279('0x0'),'fields':[_0x484279('0x0')]}],'timestamps':!![]});return _0x437bfc;}; \ No newline at end of file +const a445_0x4368=['MailTransferReport','uniqueid','./mailTransferReport.attributes','define'];(function(_0x41b30a,_0x436870){const _0x49206f=function(_0x547191){while(--_0x547191){_0x41b30a['push'](_0x41b30a['shift']());}};_0x49206f(++_0x436870);}(a445_0x4368,0x1b0));const a445_0x4920=function(_0x41b30a,_0x436870){_0x41b30a=_0x41b30a-0x0;let _0x49206f=a445_0x4368[_0x41b30a];return _0x49206f;};const _0x4cf053=a445_0x4920;'use strict';const attributes=require(_0x4cf053('0x2'));module['exports']=function(_0x547191){const _0x2d8d6c=_0x4cf053,_0x207837=_0x547191[_0x2d8d6c('0x3')](_0x2d8d6c('0x0'),attributes,{'tableName':'report_mail_transfer','paranoid':![],'indexes':[{'name':_0x2d8d6c('0x1'),'fields':[_0x2d8d6c('0x1')]}],'timestamps':!![]});return _0x207837;}; \ No newline at end of file diff --git a/server/api/memberReport/index.js b/server/api/memberReport/index.js index 4f70c87..5816223 100644 --- a/server/api/memberReport/index.js +++ b/server/api/memberReport/index.js @@ -1 +1 @@ -const a446_0xd693=['express','show','/describe','delete','../../components/auth/service','isAuthenticated','destroy','index','Router','post','describe','get','put','/:id','create','./memberReport.controller','exports'];(function(_0x3fdf8e,_0xd693e8){const _0x379e76=function(_0x1347a4){while(--_0x1347a4){_0x3fdf8e['push'](_0x3fdf8e['shift']());}};_0x379e76(++_0xd693e8);}(a446_0xd693,0x192));const a446_0x379e=function(_0x3fdf8e,_0xd693e8){_0x3fdf8e=_0x3fdf8e-0x0;let _0x379e76=a446_0xd693[_0x3fdf8e];return _0x379e76;};const _0x3bb814=a446_0x379e;'use strict';const express=require(_0x3bb814('0x6')),router=express[_0x3bb814('0xe')](),auth=require(_0x3bb814('0xa')),controller=require(_0x3bb814('0x4'));router[_0x3bb814('0x0')]('/',auth['isAuthenticated'](),controller[_0x3bb814('0xd')]),router[_0x3bb814('0x0')](_0x3bb814('0x8'),auth[_0x3bb814('0xb')](),controller[_0x3bb814('0x10')]),router[_0x3bb814('0x0')](_0x3bb814('0x2'),auth[_0x3bb814('0xb')](),controller[_0x3bb814('0x7')]),router[_0x3bb814('0xf')]('/',auth[_0x3bb814('0xb')](),controller[_0x3bb814('0x3')]),router[_0x3bb814('0x1')](_0x3bb814('0x2'),auth[_0x3bb814('0xb')](),controller['update']),router[_0x3bb814('0x9')](_0x3bb814('0x2'),auth['isAuthenticated'](),controller[_0x3bb814('0xc')]),module[_0x3bb814('0x5')]=router; \ No newline at end of file +const a446_0xbd82=['./memberReport.controller','index','post','get','destroy','exports','express','isAuthenticated','/:id','update','../../components/auth/service','show'];(function(_0x6fcf40,_0xbd822f){const _0x42108e=function(_0x459e91){while(--_0x459e91){_0x6fcf40['push'](_0x6fcf40['shift']());}};_0x42108e(++_0xbd822f);}(a446_0xbd82,0x145));const a446_0x4210=function(_0x6fcf40,_0xbd822f){_0x6fcf40=_0x6fcf40-0x0;let _0x42108e=a446_0xbd82[_0x6fcf40];return _0x42108e;};const _0x2f6715=a446_0x4210;'use strict';const express=require(_0x2f6715('0x5')),router=express['Router'](),auth=require(_0x2f6715('0x9')),controller=require(_0x2f6715('0xb'));router[_0x2f6715('0x2')]('/',auth[_0x2f6715('0x6')](),controller[_0x2f6715('0x0')]),router[_0x2f6715('0x2')]('/describe',auth['isAuthenticated'](),controller['describe']),router[_0x2f6715('0x2')](_0x2f6715('0x7'),auth['isAuthenticated'](),controller[_0x2f6715('0xa')]),router[_0x2f6715('0x1')]('/',auth[_0x2f6715('0x6')](),controller['create']),router['put'](_0x2f6715('0x7'),auth[_0x2f6715('0x6')](),controller[_0x2f6715('0x8')]),router['delete']('/:id',auth[_0x2f6715('0x6')](),controller[_0x2f6715('0x3')]),module[_0x2f6715('0x4')]=router; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.attributes.js b/server/api/memberReport/memberReport.attributes.js index d068828..ba81176 100644 --- a/server/api/memberReport/memberReport.attributes.js +++ b/server/api/memberReport/memberReport.attributes.js @@ -1 +1 @@ -const a447_0x12eb=['STRING','duration','LOGIN,\x20PAUSE,\x20TALKING','talk:[queue]','talk:[start]','exports','seconds','exitAt','talk:[destination]','talk:[inbound,\x20outbound],\x20pause:[reason]','setDataValue','moment','diff','INTEGER','DEFAULT\x20PAUSE','talk:[dial\x20string]'];(function(_0x439338,_0x12eb5f){const _0x305d32=function(_0x504e7f){while(--_0x504e7f){_0x439338['push'](_0x439338['shift']());}};_0x305d32(++_0x12eb5f);}(a447_0x12eb,0x70));const a447_0x305d=function(_0x439338,_0x12eb5f){_0x439338=_0x439338-0x0;let _0x305d32=a447_0x12eb[_0x439338];return _0x305d32;};const _0x11f7e1=a447_0x305d;'use strict';const Sequelize=require('sequelize'),moment=require(_0x11f7e1('0xb'));module[_0x11f7e1('0x5')]={'channel':{'type':Sequelize[_0x11f7e1('0x0')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0x11f7e1('0x0')]},'type':{'type':Sequelize[_0x11f7e1('0x0')],'defaultValue':_0x11f7e1('0xe'),'comment':_0x11f7e1('0x2')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x504e7f){const _0x1c6425=_0x11f7e1,_0x5ced1a=moment(_0x504e7f),_0x34a778=moment(this['getDataValue']('enterAt')),_0x54c34a=_0x5ced1a[_0x1c6425('0xc')](_0x34a778,_0x1c6425('0x6'));this[_0x1c6425('0xa')](_0x1c6425('0x7'),_0x504e7f),this[_0x1c6425('0xa')](_0x1c6425('0x1'),_0x54c34a||null);}},'data1':{'type':Sequelize[_0x11f7e1('0x0')],'comment':_0x11f7e1('0x9')},'data2':{'type':Sequelize[_0x11f7e1('0x0')],'comment':_0x11f7e1('0x4')},'data3':{'type':Sequelize[_0x11f7e1('0x0')],'comment':_0x11f7e1('0x8')},'data4':{'type':Sequelize[_0x11f7e1('0x0')],'comment':_0x11f7e1('0xf')},'data5':{'type':Sequelize[_0x11f7e1('0x0')],'comment':_0x11f7e1('0x3')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0x11f7e1('0xd')]},'uniqueid':{'type':Sequelize[_0x11f7e1('0x0')]}}; \ No newline at end of file +const a447_0xec22=['INTEGER','exitAt','diff','seconds','LOGIN,\x20PAUSE,\x20TALKING','talk:[queue]','sequelize','DATE','duration','setDataValue','talk:[start]','STRING'];(function(_0x485fd8,_0xec2259){const _0x53bc12=function(_0x78796){while(--_0x78796){_0x485fd8['push'](_0x485fd8['shift']());}};_0x53bc12(++_0xec2259);}(a447_0xec22,0x1e1));const a447_0x53bc=function(_0x485fd8,_0xec2259){_0x485fd8=_0x485fd8-0x0;let _0x53bc12=a447_0xec22[_0x485fd8];return _0x53bc12;};const _0x3f2a40=a447_0x53bc;'use strict';const Sequelize=require(_0x3f2a40('0x5')),moment=require('moment');module['exports']={'channel':{'type':Sequelize[_0x3f2a40('0xa')]},'membername':{'type':Sequelize[_0x3f2a40('0xa')]},'interface':{'type':Sequelize[_0x3f2a40('0xa')]},'type':{'type':Sequelize[_0x3f2a40('0xa')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x3f2a40('0x3')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x3f2a40('0x6')],'set':function(_0x78796){const _0x185e22=_0x3f2a40,_0x45dd28=moment(_0x78796),_0x474080=moment(this['getDataValue']('enterAt')),_0x349f05=_0x45dd28[_0x185e22('0x1')](_0x474080,_0x185e22('0x2'));this[_0x185e22('0x8')](_0x185e22('0x0'),_0x78796),this[_0x185e22('0x8')](_0x185e22('0x7'),_0x349f05||null);}},'data1':{'type':Sequelize[_0x3f2a40('0xa')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize[_0x3f2a40('0xa')],'comment':_0x3f2a40('0x9')},'data3':{'type':Sequelize[_0x3f2a40('0xa')],'comment':'talk:[destination]'},'data4':{'type':Sequelize[_0x3f2a40('0xa')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x3f2a40('0xa')],'comment':_0x3f2a40('0x4')},'role':{'type':Sequelize[_0x3f2a40('0xa')]},'internal':{'type':Sequelize[_0x3f2a40('0xb')]},'uniqueid':{'type':Sequelize[_0x3f2a40('0xa')]}}; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.controller.js b/server/api/memberReport/memberReport.controller.js index 7315f2f..3246527 100644 --- a/server/api/memberReport/memberReport.controller.js +++ b/server/api/memberReport/memberReport.controller.js @@ -1 +1 @@ -const a448_0x45bd=['sequelize','index','rows','stack','filters','where','end','limit','count','show','includeAll','then','sort','include','pick','keys','sendStatus','nolimit','length','key','Content-Range','status','intersection','like','MemberReport','json','catch','map','rawAttributes','fields','findAll','findOne','describe','VIRTUAL','merge','attributes','model','undefined','send','fieldName','order','options','update','api','set','offset','query','error','name','filter','../../config/logger','../../mysqldb','type','destroy','params','body','create'];(function(_0x573620,_0x45bd4a){const _0x43bc40=function(_0x150704){while(--_0x150704){_0x573620['push'](_0x573620['shift']());}};_0x43bc40(++_0x45bd4a);}(a448_0x45bd,0x1d6));const a448_0x43bc=function(_0x573620,_0x45bd4a){_0x573620=_0x573620-0x0;let _0x43bc40=a448_0x45bd[_0x573620];return _0x43bc40;};const _0x228add=a448_0x43bc;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x228add('0x24'))(_0x228add('0x1d')),db=require(_0x228add('0x25'))['db'],{Op}=require(_0x228add('0x2b'));function respondWithResult(_0x150704,_0x78c240){return _0x78c240=_0x78c240||0xc8,function(_0x50822f){const _0x206819=a448_0x43bc;if(_0x50822f)return _0x150704[_0x206819('0x7')](_0x78c240)[_0x206819('0xb')](_0x50822f);};}function respondWithFilteredResult(_0x2b0d97,_0x59563c){return function(_0x37b1fd){const _0x1922d0=a448_0x43bc;if(_0x37b1fd){const _0x111c36=_0x37b1fd['count'],_0x10ad43=_0x59563c[_0x1922d0('0x1f')];let _0x364032=_0x59563c['offset']+_0x59563c[_0x1922d0('0x32')],_0x65fc58;return _0x364032>=_0x111c36?(_0x364032=_0x111c36,_0x65fc58=0xc8):_0x65fc58=0xce,_0x2b0d97['status'](_0x65fc58),_0x2b0d97[_0x1922d0('0x1e')](_0x1922d0('0x6'),_0x10ad43+'-'+_0x364032+'/'+_0x111c36)['json'](_0x37b1fd);}return null;};}function saveUpdates(_0x2fd632){return function(_0x29658f){const _0x29bd34=a448_0x43bc;if(_0x29658f)return _0x29658f[_0x29bd34('0x1c')](_0x2fd632)[_0x29bd34('0x36')](function(_0x14033e){return _0x14033e;});return null;};}function removeEntity(_0x3b98e9){return function(_0x5cecc6){const _0x38052d=a448_0x43bc;if(_0x5cecc6)return _0x5cecc6['destroy']()[_0x38052d('0x36')](function(){const _0x9c7cee=_0x38052d;_0x3b98e9[_0x9c7cee('0x7')](0xcc)[_0x9c7cee('0x31')]();});};}function handleEntityNotFound(_0x5d4235){return function(_0x3e51fd){const _0x2d2b9d=a448_0x43bc;return!_0x3e51fd&&_0x5d4235[_0x2d2b9d('0x2')](0x194),_0x3e51fd;};}function handleError(_0x4bcd8e,_0x263790){return _0x263790=_0x263790||0x1f4,function(_0x25e77b){const _0x113446=a448_0x43bc;logger[_0x113446('0x21')](_0x25e77b[_0x113446('0x2e')]),_0x25e77b[_0x113446('0x22')]&&delete _0x25e77b[_0x113446('0x22')],_0x4bcd8e['status'](_0x263790)[_0x113446('0x18')](_0x25e77b);};}exports[_0x228add('0x2c')]=function(_0x13b8f2,_0x252b56){const _0xa2ac7=_0x228add;let _0x400a78={};const _0x4cd2da={},_0x4a3f06={'count':0x0,'rows':[]},_0x28bebe=_[_0xa2ac7('0xd')](db['MemberReport'][_0xa2ac7('0xe')],function(_0x28ccec){const _0x5f83b7=_0xa2ac7;return{'name':_0x28ccec[_0x5f83b7('0x19')],'type':_0x28ccec[_0x5f83b7('0x26')][_0x5f83b7('0x5')]};});_0x4cd2da[_0xa2ac7('0x16')]=_[_0xa2ac7('0xd')](_0x28bebe,_0xa2ac7('0x22')),_0x4cd2da[_0xa2ac7('0x20')]=_[_0xa2ac7('0x1')](_0x13b8f2['query']),_0x4cd2da[_0xa2ac7('0x2f')]=_[_0xa2ac7('0x8')](_0x4cd2da[_0xa2ac7('0x16')],_0x4cd2da['query']),_0x400a78[_0xa2ac7('0x15')]=_[_0xa2ac7('0x8')](_0x4cd2da['model'],qs['fields'](_0x13b8f2[_0xa2ac7('0x20')]['fields'])),_0x400a78[_0xa2ac7('0x15')]=_0x400a78['attributes'][_0xa2ac7('0x4')]?_0x400a78[_0xa2ac7('0x15')]:_0x4cd2da[_0xa2ac7('0x16')];typeof _0x13b8f2[_0xa2ac7('0x20')][_0xa2ac7('0x3')]===_0xa2ac7('0x17')&&(_0x400a78[_0xa2ac7('0x32')]=qs[_0xa2ac7('0x32')](_0x13b8f2[_0xa2ac7('0x20')]['limit']),_0x400a78[_0xa2ac7('0x1f')]=qs['offset'](_0x13b8f2[_0xa2ac7('0x20')][_0xa2ac7('0x1f')]));_0x400a78[_0xa2ac7('0x1a')]=qs['sort'](_0x13b8f2['query'][_0xa2ac7('0x37')]),_0x400a78['where']=qs[_0xa2ac7('0x2f')](_[_0xa2ac7('0x0')](_0x13b8f2['query'],_0x4cd2da[_0xa2ac7('0x2f')]),_0x28bebe);_0x13b8f2[_0xa2ac7('0x20')][_0xa2ac7('0x23')]&&(_0x400a78[_0xa2ac7('0x30')]=_[_0xa2ac7('0x14')](_0x400a78['where'],{[Op['or']]:_[_0xa2ac7('0xd')](_0x28bebe,function(_0x54e8b8){const _0x59a690=_0xa2ac7;if(_0x54e8b8[_0x59a690('0x26')]!==_0x59a690('0x13')){const _0x2b5b62={};return _0x2b5b62[_0x54e8b8[_0x59a690('0x22')]]={[Op[_0x59a690('0x9')]]:'%'+_0x13b8f2[_0x59a690('0x20')][_0x59a690('0x23')]+'%'},_0x2b5b62;}})}));_0x400a78=_[_0xa2ac7('0x14')]({},_0x400a78,_0x13b8f2[_0xa2ac7('0x1b')]);const _0x5d0f93={'where':_0x400a78[_0xa2ac7('0x30')]};return db[_0xa2ac7('0xa')][_0xa2ac7('0x33')](_0x5d0f93)[_0xa2ac7('0x36')](function(_0x163f93){const _0x37c0ae=_0xa2ac7;return _0x4a3f06[_0x37c0ae('0x33')]=_0x163f93,_0x13b8f2[_0x37c0ae('0x20')]['includeAll']&&(_0x400a78[_0x37c0ae('0x38')]=[{'all':!![]}]),db['MemberReport'][_0x37c0ae('0x10')](_0x400a78);})[_0xa2ac7('0x36')](function(_0x29565b){const _0x4d2719=_0xa2ac7;return _0x4a3f06[_0x4d2719('0x2d')]=_0x29565b,_0x4a3f06;})[_0xa2ac7('0x36')](respondWithFilteredResult(_0x252b56,_0x400a78))[_0xa2ac7('0xc')](handleError(_0x252b56,null));},exports[_0x228add('0x34')]=function(_0x143746,_0x22d6a4){const _0x45d76b=_0x228add;let _0xcb76f3={'raw':!![],'where':{'id':_0x143746[_0x45d76b('0x28')]['id']}};const _0x1e2764={};return _0x1e2764[_0x45d76b('0x16')]=_[_0x45d76b('0x1')](db[_0x45d76b('0xa')][_0x45d76b('0xe')]),_0x1e2764[_0x45d76b('0x20')]=_[_0x45d76b('0x1')](_0x143746['query']),_0x1e2764[_0x45d76b('0x2f')]=_[_0x45d76b('0x8')](_0x1e2764[_0x45d76b('0x16')],_0x1e2764[_0x45d76b('0x20')]),_0xcb76f3[_0x45d76b('0x15')]=_['intersection'](_0x1e2764['model'],qs[_0x45d76b('0xf')](_0x143746[_0x45d76b('0x20')][_0x45d76b('0xf')])),_0xcb76f3['attributes']=_0xcb76f3['attributes'][_0x45d76b('0x4')]?_0xcb76f3['attributes']:_0x1e2764[_0x45d76b('0x16')],_0x143746[_0x45d76b('0x20')][_0x45d76b('0x35')]&&(_0xcb76f3[_0x45d76b('0x38')]=[{'all':!![]}]),_0xcb76f3=_[_0x45d76b('0x14')]({},_0xcb76f3,_0x143746[_0x45d76b('0x1b')]),db[_0x45d76b('0xa')][_0x45d76b('0x11')](_0xcb76f3)[_0x45d76b('0x36')](handleEntityNotFound(_0x22d6a4,null))[_0x45d76b('0x36')](respondWithResult(_0x22d6a4,null))['catch'](handleError(_0x22d6a4,null));},exports[_0x228add('0x2a')]=function(_0x57bef0,_0x17e936){const _0x1309c7=_0x228add;return db[_0x1309c7('0xa')]['create'](_0x57bef0[_0x1309c7('0x29')],{})[_0x1309c7('0x36')](respondWithResult(_0x17e936,0xc9))[_0x1309c7('0xc')](handleError(_0x17e936,null));},exports[_0x228add('0x1c')]=function(_0x208fa3,_0x5d51f4){const _0x12ff15=_0x228add;return _0x208fa3['body']['id']&&delete _0x208fa3[_0x12ff15('0x29')]['id'],db[_0x12ff15('0xa')]['findOne']({'where':{'id':_0x208fa3[_0x12ff15('0x28')]['id']}})[_0x12ff15('0x36')](handleEntityNotFound(_0x5d51f4,null))['then'](saveUpdates(_0x208fa3[_0x12ff15('0x29')],null))['then'](respondWithResult(_0x5d51f4,null))['catch'](handleError(_0x5d51f4,null));},exports[_0x228add('0x27')]=function(_0x32d3ec,_0xc2c97d){const _0x587aa4=_0x228add;return db[_0x587aa4('0xa')][_0x587aa4('0x11')]({'where':{'id':_0x32d3ec[_0x587aa4('0x28')]['id']}})[_0x587aa4('0x36')](handleEntityNotFound(_0xc2c97d,null))[_0x587aa4('0x36')](removeEntity(_0xc2c97d,null))[_0x587aa4('0xc')](handleError(_0xc2c97d,null));},exports['describe']=function(_0x5cc6de,_0x4f83f2){const _0x5d01e6=_0x228add;return db[_0x5d01e6('0xa')][_0x5d01e6('0x12')]()[_0x5d01e6('0x36')](respondWithResult(_0x4f83f2,null))[_0x5d01e6('0xc')](handleError(_0x4f83f2,null));}; \ No newline at end of file +const a448_0x2047=['../../mysqldb','status','sendStatus','body','index','findOne','where','error','lodash','model','query','Content-Range','keys','type','map','end','destroy','api','intersection','sort','then','merge','MemberReport','attributes','fields','show','../../components/parsers/qs','update','includeAll','name','length','include','rows','sequelize','key','catch','offset','params','filter','create','stack','filters','json','fieldName','pick','count','describe','send','VIRTUAL','undefined','order','options','like','limit','rawAttributes','../../config/logger'];(function(_0x1d605d,_0x20473a){const _0x22585a=function(_0x110518){while(--_0x110518){_0x1d605d['push'](_0x1d605d['shift']());}};_0x22585a(++_0x20473a);}(a448_0x2047,0xce));const a448_0x2258=function(_0x1d605d,_0x20473a){_0x1d605d=_0x1d605d-0x0;let _0x22585a=a448_0x2047[_0x1d605d];return _0x22585a;};const _0x2b76dd=a448_0x2258;'use strict';const _=require(_0x2b76dd('0x1a')),qs=require(_0x2b76dd('0x2c')),logger=require(_0x2b76dd('0x11'))(_0x2b76dd('0x23')),db=require(_0x2b76dd('0x12'))['db'],{Op}=require(_0x2b76dd('0x33'));function respondWithResult(_0x110518,_0x1c21de){return _0x1c21de=_0x1c21de||0xc8,function(_0x444aeb){const _0x3c837a=a448_0x2258;if(_0x444aeb)return _0x110518[_0x3c837a('0x13')](_0x1c21de)[_0x3c837a('0x4')](_0x444aeb);};}function respondWithFilteredResult(_0x388c74,_0x2c0ceb){return function(_0x3d6318){const _0x59d95c=a448_0x2258;if(_0x3d6318){const _0x43f147=_0x3d6318[_0x59d95c('0x7')],_0x3e5c98=_0x2c0ceb[_0x59d95c('0x36')];let _0x3c9a16=_0x2c0ceb['offset']+_0x2c0ceb[_0x59d95c('0xf')],_0x594981;return _0x3c9a16>=_0x43f147?(_0x3c9a16=_0x43f147,_0x594981=0xc8):_0x594981=0xce,_0x388c74[_0x59d95c('0x13')](_0x594981),_0x388c74['set'](_0x59d95c('0x1d'),_0x3e5c98+'-'+_0x3c9a16+'/'+_0x43f147)[_0x59d95c('0x4')](_0x3d6318);}return null;};}function saveUpdates(_0x48f3e9){return function(_0xc6bf09){const _0x2cbd36=a448_0x2258;if(_0xc6bf09)return _0xc6bf09[_0x2cbd36('0x2d')](_0x48f3e9)[_0x2cbd36('0x26')](function(_0x3b0b4f){return _0x3b0b4f;});return null;};}function removeEntity(_0x304015){return function(_0x5a99fa){const _0x5bf713=a448_0x2258;if(_0x5a99fa)return _0x5a99fa['destroy']()[_0x5bf713('0x26')](function(){const _0x5926c2=_0x5bf713;_0x304015[_0x5926c2('0x13')](0xcc)[_0x5926c2('0x21')]();});};}function handleEntityNotFound(_0x20a05c){return function(_0x1ef6be){const _0x53650e=a448_0x2258;return!_0x1ef6be&&_0x20a05c[_0x53650e('0x14')](0x194),_0x1ef6be;};}function handleError(_0xe334b7,_0x1af813){return _0x1af813=_0x1af813||0x1f4,function(_0x34895f){const _0x5d52d6=a448_0x2258;logger[_0x5d52d6('0x19')](_0x34895f[_0x5d52d6('0x2')]),_0x34895f[_0x5d52d6('0x2f')]&&delete _0x34895f[_0x5d52d6('0x2f')],_0xe334b7[_0x5d52d6('0x13')](_0x1af813)[_0x5d52d6('0x9')](_0x34895f);};}exports[_0x2b76dd('0x16')]=function(_0x3a3439,_0x136922){const _0x2dfcef=_0x2b76dd;let _0x173c6a={};const _0x21aede={},_0x344df6={'count':0x0,'rows':[]},_0x4e9569=_['map'](db[_0x2dfcef('0x28')]['rawAttributes'],function(_0x2886f1){const _0x57ce4b=_0x2dfcef;return{'name':_0x2886f1[_0x57ce4b('0x5')],'type':_0x2886f1['type'][_0x57ce4b('0x34')]};});_0x21aede[_0x2dfcef('0x1b')]=_[_0x2dfcef('0x20')](_0x4e9569,_0x2dfcef('0x2f')),_0x21aede[_0x2dfcef('0x1c')]=_[_0x2dfcef('0x1e')](_0x3a3439[_0x2dfcef('0x1c')]),_0x21aede[_0x2dfcef('0x3')]=_[_0x2dfcef('0x24')](_0x21aede['model'],_0x21aede[_0x2dfcef('0x1c')]),_0x173c6a[_0x2dfcef('0x29')]=_[_0x2dfcef('0x24')](_0x21aede['model'],qs[_0x2dfcef('0x2a')](_0x3a3439['query'][_0x2dfcef('0x2a')])),_0x173c6a[_0x2dfcef('0x29')]=_0x173c6a[_0x2dfcef('0x29')][_0x2dfcef('0x30')]?_0x173c6a[_0x2dfcef('0x29')]:_0x21aede[_0x2dfcef('0x1b')];typeof _0x3a3439[_0x2dfcef('0x1c')]['nolimit']===_0x2dfcef('0xb')&&(_0x173c6a[_0x2dfcef('0xf')]=qs[_0x2dfcef('0xf')](_0x3a3439[_0x2dfcef('0x1c')][_0x2dfcef('0xf')]),_0x173c6a[_0x2dfcef('0x36')]=qs[_0x2dfcef('0x36')](_0x3a3439['query'][_0x2dfcef('0x36')]));_0x173c6a[_0x2dfcef('0xc')]=qs[_0x2dfcef('0x25')](_0x3a3439[_0x2dfcef('0x1c')][_0x2dfcef('0x25')]),_0x173c6a['where']=qs[_0x2dfcef('0x3')](_[_0x2dfcef('0x6')](_0x3a3439['query'],_0x21aede[_0x2dfcef('0x3')]),_0x4e9569);_0x3a3439[_0x2dfcef('0x1c')][_0x2dfcef('0x0')]&&(_0x173c6a[_0x2dfcef('0x18')]=_[_0x2dfcef('0x27')](_0x173c6a[_0x2dfcef('0x18')],{[Op['or']]:_[_0x2dfcef('0x20')](_0x4e9569,function(_0x232bf4){const _0x5ca5d0=_0x2dfcef;if(_0x232bf4[_0x5ca5d0('0x1f')]!==_0x5ca5d0('0xa')){const _0x5245a2={};return _0x5245a2[_0x232bf4[_0x5ca5d0('0x2f')]]={[Op[_0x5ca5d0('0xe')]]:'%'+_0x3a3439[_0x5ca5d0('0x1c')]['filter']+'%'},_0x5245a2;}})}));_0x173c6a=_[_0x2dfcef('0x27')]({},_0x173c6a,_0x3a3439[_0x2dfcef('0xd')]);const _0xde7be7={'where':_0x173c6a[_0x2dfcef('0x18')]};return db['MemberReport'][_0x2dfcef('0x7')](_0xde7be7)['then'](function(_0x298138){const _0x7925=_0x2dfcef;return _0x344df6['count']=_0x298138,_0x3a3439[_0x7925('0x1c')][_0x7925('0x2e')]&&(_0x173c6a[_0x7925('0x31')]=[{'all':!![]}]),db[_0x7925('0x28')]['findAll'](_0x173c6a);})[_0x2dfcef('0x26')](function(_0x30f911){const _0x42c6cf=_0x2dfcef;return _0x344df6[_0x42c6cf('0x32')]=_0x30f911,_0x344df6;})['then'](respondWithFilteredResult(_0x136922,_0x173c6a))['catch'](handleError(_0x136922,null));},exports[_0x2b76dd('0x2b')]=function(_0x30512c,_0x36630f){const _0x2d3da1=_0x2b76dd;let _0x3f776c={'raw':!![],'where':{'id':_0x30512c[_0x2d3da1('0x37')]['id']}};const _0x3fa57f={};return _0x3fa57f['model']=_[_0x2d3da1('0x1e')](db[_0x2d3da1('0x28')][_0x2d3da1('0x10')]),_0x3fa57f[_0x2d3da1('0x1c')]=_['keys'](_0x30512c[_0x2d3da1('0x1c')]),_0x3fa57f[_0x2d3da1('0x3')]=_['intersection'](_0x3fa57f[_0x2d3da1('0x1b')],_0x3fa57f[_0x2d3da1('0x1c')]),_0x3f776c[_0x2d3da1('0x29')]=_[_0x2d3da1('0x24')](_0x3fa57f[_0x2d3da1('0x1b')],qs[_0x2d3da1('0x2a')](_0x30512c['query'][_0x2d3da1('0x2a')])),_0x3f776c[_0x2d3da1('0x29')]=_0x3f776c[_0x2d3da1('0x29')][_0x2d3da1('0x30')]?_0x3f776c[_0x2d3da1('0x29')]:_0x3fa57f[_0x2d3da1('0x1b')],_0x30512c[_0x2d3da1('0x1c')][_0x2d3da1('0x2e')]&&(_0x3f776c[_0x2d3da1('0x31')]=[{'all':!![]}]),_0x3f776c=_[_0x2d3da1('0x27')]({},_0x3f776c,_0x30512c[_0x2d3da1('0xd')]),db['MemberReport'][_0x2d3da1('0x17')](_0x3f776c)[_0x2d3da1('0x26')](handleEntityNotFound(_0x36630f,null))[_0x2d3da1('0x26')](respondWithResult(_0x36630f,null))[_0x2d3da1('0x35')](handleError(_0x36630f,null));},exports[_0x2b76dd('0x1')]=function(_0x2b6e67,_0x309b67){const _0xd36b5a=_0x2b76dd;return db[_0xd36b5a('0x28')][_0xd36b5a('0x1')](_0x2b6e67[_0xd36b5a('0x15')],{})[_0xd36b5a('0x26')](respondWithResult(_0x309b67,0xc9))[_0xd36b5a('0x35')](handleError(_0x309b67,null));},exports[_0x2b76dd('0x2d')]=function(_0x42e2d3,_0x4e4772){const _0x50a812=_0x2b76dd;return _0x42e2d3[_0x50a812('0x15')]['id']&&delete _0x42e2d3[_0x50a812('0x15')]['id'],db[_0x50a812('0x28')][_0x50a812('0x17')]({'where':{'id':_0x42e2d3[_0x50a812('0x37')]['id']}})[_0x50a812('0x26')](handleEntityNotFound(_0x4e4772,null))[_0x50a812('0x26')](saveUpdates(_0x42e2d3[_0x50a812('0x15')],null))['then'](respondWithResult(_0x4e4772,null))['catch'](handleError(_0x4e4772,null));},exports[_0x2b76dd('0x22')]=function(_0x17059c,_0x1a119f){const _0xed5c18=_0x2b76dd;return db[_0xed5c18('0x28')][_0xed5c18('0x17')]({'where':{'id':_0x17059c[_0xed5c18('0x37')]['id']}})[_0xed5c18('0x26')](handleEntityNotFound(_0x1a119f,null))['then'](removeEntity(_0x1a119f,null))[_0xed5c18('0x35')](handleError(_0x1a119f,null));},exports['describe']=function(_0x10efdc,_0xa90f7b){const _0x5a5866=_0x2b76dd;return db[_0x5a5866('0x28')][_0x5a5866('0x8')]()['then'](respondWithResult(_0xa90f7b,null))[_0x5a5866('0x35')](handleError(_0xa90f7b,null));}; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.model.js b/server/api/memberReport/memberReport.model.js index 94cfd6c..f9f1de2 100644 --- a/server/api/memberReport/memberReport.model.js +++ b/server/api/memberReport/memberReport.model.js @@ -1 +1 @@ -const a449_0x4eb5=['define','report_member','membername','./memberReport.attributes','MemberReport'];(function(_0xf77d2b,_0x4eb578){const _0x3fe53c=function(_0x2191b0){while(--_0x2191b0){_0xf77d2b['push'](_0xf77d2b['shift']());}};_0x3fe53c(++_0x4eb578);}(a449_0x4eb5,0xa9));const a449_0x3fe5=function(_0xf77d2b,_0x4eb578){_0xf77d2b=_0xf77d2b-0x0;let _0x3fe53c=a449_0x4eb5[_0xf77d2b];return _0x3fe53c;};const _0x4763e9=a449_0x3fe5;'use strict';const attributes=require(_0x4763e9('0x4'));module['exports']=function(_0x2191b0){const _0x27522d=_0x4763e9,_0x21fd74=_0x2191b0[_0x27522d('0x1')](_0x27522d('0x0'),attributes,{'tableName':_0x27522d('0x2'),'paranoid':![],'indexes':[{'name':'membername_interface','fields':[_0x27522d('0x3'),'interface']}],'timestamps':!![]});return _0x21fd74;}; \ No newline at end of file +const a449_0xf916=['interface','./memberReport.attributes','MemberReport','membername_interface','exports','report_member'];(function(_0x539db3,_0xf91648){const _0x36305f=function(_0x3d8fe3){while(--_0x3d8fe3){_0x539db3['push'](_0x539db3['shift']());}};_0x36305f(++_0xf91648);}(a449_0xf916,0x1e5));const a449_0x3630=function(_0x539db3,_0xf91648){_0x539db3=_0x539db3-0x0;let _0x36305f=a449_0xf916[_0x539db3];return _0x36305f;};const _0x28d078=a449_0x3630;'use strict';const attributes=require(_0x28d078('0x2'));module[_0x28d078('0x5')]=function(_0x3d8fe3){const _0x5295ca=_0x28d078,_0x32210d=_0x3d8fe3['define'](_0x5295ca('0x3'),attributes,{'tableName':_0x5295ca('0x0'),'paranoid':![],'indexes':[{'name':_0x5295ca('0x4'),'fields':['membername',_0x5295ca('0x1')]}],'timestamps':!![]});return _0x32210d;}; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.rpc.js b/server/api/memberReport/memberReport.rpc.js index b475c58..183cf50 100644 --- a/server/api/memberReport/memberReport.rpc.js +++ b/server/api/memberReport/memberReport.rpc.js @@ -1 +1 @@ -const a450_0x59d9=['CreateMemberReport','UpdateMemberReport','MemberReport','info','raw','../../config/logger','include','message','error','debug','create','lodash','attributes','body','limit','where','GetMemberReport','map','then','stringify','findAll','model','catch','options'];(function(_0x49d74d,_0x59d97a){const _0x23f5c9=function(_0x3320ee){while(--_0x3320ee){_0x49d74d['push'](_0x49d74d['shift']());}};_0x23f5c9(++_0x59d97a);}(a450_0x59d9,0xb3));const a450_0x23f5=function(_0x49d74d,_0x59d97a){_0x49d74d=_0x49d74d-0x0;let _0x23f5c9=a450_0x59d9[_0x49d74d];return _0x23f5c9;};const _0x8003d6=a450_0x23f5;'use strict';const _=require(_0x8003d6('0x0')),db=require('../../mysqldb')['db'],logger=require(_0x8003d6('0x12'))('rpc');exports[_0x8003d6('0x5')]=function(_0x3320ee){const _0x51f332=this;return new Promise(function(_0x29571e,_0x3eba4b){const _0x4c918e=a450_0x23f5;return db['MemberReport'][_0x4c918e('0x9')]({'raw':_0x3320ee[_0x4c918e('0xc')]?_0x3320ee[_0x4c918e('0xc')][_0x4c918e('0x11')]===undefined?!![]:![]:!![],'where':_0x3320ee[_0x4c918e('0xc')]?_0x3320ee[_0x4c918e('0xc')][_0x4c918e('0x4')]||null:null,'attributes':_0x3320ee[_0x4c918e('0xc')]?_0x3320ee[_0x4c918e('0xc')]['attributes']||null:null,'limit':_0x3320ee[_0x4c918e('0xc')]?_0x3320ee[_0x4c918e('0xc')]['limit']||null:null,'include':_0x3320ee[_0x4c918e('0xc')]?_0x3320ee['options'][_0x4c918e('0x13')]?_['map'](_0x3320ee['options'][_0x4c918e('0x13')],function(_0x133383){const _0x2eb77a=_0x4c918e;return{'model':db[_0x133383[_0x2eb77a('0xa')]],'as':_0x133383['as'],'attributes':_0x133383['attributes'],'include':_0x133383[_0x2eb77a('0x13')]?_[_0x2eb77a('0x6')](_0x133383[_0x2eb77a('0x13')],function(_0x51386d){const _0x13c49f=_0x2eb77a;return{'model':db[_0x51386d[_0x13c49f('0xa')]],'as':_0x51386d['as'],'attributes':_0x51386d[_0x13c49f('0x1')],'include':_0x51386d[_0x13c49f('0x13')]?_[_0x13c49f('0x6')](_0x51386d[_0x13c49f('0x13')],function(_0x2f71df){const _0x36b689=_0x13c49f;return{'model':db[_0x2f71df[_0x36b689('0xa')]],'as':_0x2f71df['as'],'attributes':_0x2f71df[_0x36b689('0x1')]};}):[]};}):[]};}):[]:[]})[_0x4c918e('0x7')](function(_0x58e460){const _0x532603=_0x4c918e;logger['info'](_0x532603('0x5'),_0x3320ee),logger[_0x532603('0x16')](_0x532603('0x5'),_0x3320ee,JSON[_0x532603('0x8')](_0x58e460)),_0x29571e(_0x58e460);})[_0x4c918e('0xb')](function(_0x32bfef){const _0x20d090=_0x4c918e;logger[_0x20d090('0x15')]('GetMemberReport',_0x32bfef[_0x20d090('0x14')],_0x3320ee),_0x3eba4b(_0x51f332[_0x20d090('0x15')](0x1f4,_0x32bfef[_0x20d090('0x14')]));});});},exports[_0x8003d6('0xd')]=function(_0x35331f){const _0x357154=this;return new Promise(function(_0x375480,_0x5851f4){const _0x406416=a450_0x23f5;return db[_0x406416('0xf')][_0x406416('0x17')](_0x35331f[_0x406416('0x2')],{'raw':_0x35331f[_0x406416('0xc')]?_0x35331f[_0x406416('0xc')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x54ec3c){const _0x4efe3d=_0x406416;logger[_0x4efe3d('0x10')](_0x4efe3d('0xd'),_0x35331f),logger[_0x4efe3d('0x16')](_0x4efe3d('0xd'),_0x35331f,JSON[_0x4efe3d('0x8')](_0x54ec3c)),_0x375480(_0x54ec3c);})[_0x406416('0xb')](function(_0x25cf0d){const _0x2a762b=_0x406416;logger[_0x2a762b('0x15')](_0x2a762b('0xd'),_0x25cf0d[_0x2a762b('0x14')],_0x35331f),_0x5851f4(_0x357154['error'](0x1f4,_0x25cf0d[_0x2a762b('0x14')]));});});},exports['UpdateMemberReport']=function(_0x47e537){const _0x5c59a1=this;return new Promise(function(_0xa3b8ad,_0xf6be8d){const _0xf5a5f6=a450_0x23f5;return db[_0xf5a5f6('0xf')]['update'](_0x47e537['body'],{'raw':_0x47e537['options']?_0x47e537['options'][_0xf5a5f6('0x11')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x47e537['options']?_0x47e537[_0xf5a5f6('0xc')]['where']||null:null,'attributes':_0x47e537['options']?_0x47e537['options'][_0xf5a5f6('0x1')]||null:null,'limit':_0x47e537[_0xf5a5f6('0xc')]?_0x47e537[_0xf5a5f6('0xc')][_0xf5a5f6('0x3')]||null:null})[_0xf5a5f6('0x7')](function(_0x428eed){const _0x539800=_0xf5a5f6;logger[_0x539800('0x10')](_0x539800('0xe'),_0x47e537),logger[_0x539800('0x16')](_0x539800('0xe'),_0x47e537,JSON[_0x539800('0x8')](_0x428eed)),_0xa3b8ad(_0x428eed);})['catch'](function(_0x2f9aaa){const _0x156f74=_0xf5a5f6;logger[_0x156f74('0x15')](_0x156f74('0xe'),_0x2f9aaa[_0x156f74('0x14')],_0x47e537),_0xf6be8d(_0x5c59a1[_0x156f74('0x15')](0x1f4,_0x2f9aaa[_0x156f74('0x14')]));});});}; \ No newline at end of file +const a450_0x3851=['MemberReport','findAll','include','model','limit','lodash','CreateMemberReport','options','UpdateMemberReport','stringify','body','../../mysqldb','error','where','message','info','then','catch','debug','attributes','GetMemberReport','map'];(function(_0x200f28,_0x3851e1){const _0x223b8c=function(_0x520985){while(--_0x520985){_0x200f28['push'](_0x200f28['shift']());}};_0x223b8c(++_0x3851e1);}(a450_0x3851,0xaf));const a450_0x223b=function(_0x200f28,_0x3851e1){_0x200f28=_0x200f28-0x0;let _0x223b8c=a450_0x3851[_0x200f28];return _0x223b8c;};const _0x60f757=a450_0x223b;'use strict';const _=require(_0x60f757('0x6')),db=require(_0x60f757('0xc'))['db'],logger=require('../../config/logger')('rpc');exports[_0x60f757('0x15')]=function(_0x520985){const _0x40ce21=this;return new Promise(function(_0xba67a0,_0x51f87e){const _0x28fcc3=a450_0x223b;return db[_0x28fcc3('0x1')][_0x28fcc3('0x2')]({'raw':_0x520985[_0x28fcc3('0x8')]?_0x520985[_0x28fcc3('0x8')]['raw']===undefined?!![]:![]:!![],'where':_0x520985[_0x28fcc3('0x8')]?_0x520985[_0x28fcc3('0x8')][_0x28fcc3('0xe')]||null:null,'attributes':_0x520985[_0x28fcc3('0x8')]?_0x520985['options'][_0x28fcc3('0x14')]||null:null,'limit':_0x520985[_0x28fcc3('0x8')]?_0x520985[_0x28fcc3('0x8')][_0x28fcc3('0x5')]||null:null,'include':_0x520985[_0x28fcc3('0x8')]?_0x520985['options']['include']?_[_0x28fcc3('0x0')](_0x520985[_0x28fcc3('0x8')]['include'],function(_0x4ed83b){const _0x5eff24=_0x28fcc3;return{'model':db[_0x4ed83b[_0x5eff24('0x4')]],'as':_0x4ed83b['as'],'attributes':_0x4ed83b[_0x5eff24('0x14')],'include':_0x4ed83b[_0x5eff24('0x3')]?_[_0x5eff24('0x0')](_0x4ed83b[_0x5eff24('0x3')],function(_0x2467fe){const _0x3e9aee=_0x5eff24;return{'model':db[_0x2467fe[_0x3e9aee('0x4')]],'as':_0x2467fe['as'],'attributes':_0x2467fe[_0x3e9aee('0x14')],'include':_0x2467fe[_0x3e9aee('0x3')]?_[_0x3e9aee('0x0')](_0x2467fe[_0x3e9aee('0x3')],function(_0xe39e1d){const _0x584a92=_0x3e9aee;return{'model':db[_0xe39e1d[_0x584a92('0x4')]],'as':_0xe39e1d['as'],'attributes':_0xe39e1d[_0x584a92('0x14')]};}):[]};}):[]};}):[]:[]})[_0x28fcc3('0x11')](function(_0x2ffe92){const _0x559a5b=_0x28fcc3;logger[_0x559a5b('0x10')](_0x559a5b('0x15'),_0x520985),logger['debug'](_0x559a5b('0x15'),_0x520985,JSON['stringify'](_0x2ffe92)),_0xba67a0(_0x2ffe92);})[_0x28fcc3('0x12')](function(_0x43b59a){const _0x2b3bb7=_0x28fcc3;logger[_0x2b3bb7('0xd')]('GetMemberReport',_0x43b59a['message'],_0x520985),_0x51f87e(_0x40ce21[_0x2b3bb7('0xd')](0x1f4,_0x43b59a['message']));});});},exports['CreateMemberReport']=function(_0x34bb26){const _0x320cfe=this;return new Promise(function(_0x3cf267,_0x55939d){const _0x367a4b=a450_0x223b;return db['MemberReport']['create'](_0x34bb26[_0x367a4b('0xb')],{'raw':_0x34bb26[_0x367a4b('0x8')]?_0x34bb26[_0x367a4b('0x8')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x1760a5){const _0x61e391=_0x367a4b;logger[_0x61e391('0x10')](_0x61e391('0x7'),_0x34bb26),logger['debug']('CreateMemberReport',_0x34bb26,JSON['stringify'](_0x1760a5)),_0x3cf267(_0x1760a5);})['catch'](function(_0x5d59df){const _0x458263=_0x367a4b;logger[_0x458263('0xd')](_0x458263('0x7'),_0x5d59df['message'],_0x34bb26),_0x55939d(_0x320cfe[_0x458263('0xd')](0x1f4,_0x5d59df['message']));});});},exports[_0x60f757('0x9')]=function(_0xb601eb){const _0x341455=this;return new Promise(function(_0x24415f,_0x59b46a){const _0x1c28dd=a450_0x223b;return db[_0x1c28dd('0x1')]['update'](_0xb601eb[_0x1c28dd('0xb')],{'raw':_0xb601eb[_0x1c28dd('0x8')]?_0xb601eb[_0x1c28dd('0x8')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xb601eb[_0x1c28dd('0x8')]?_0xb601eb[_0x1c28dd('0x8')]['where']||null:null,'attributes':_0xb601eb['options']?_0xb601eb['options'][_0x1c28dd('0x14')]||null:null,'limit':_0xb601eb[_0x1c28dd('0x8')]?_0xb601eb[_0x1c28dd('0x8')][_0x1c28dd('0x5')]||null:null})[_0x1c28dd('0x11')](function(_0x5da911){const _0x5b411c=_0x1c28dd;logger[_0x5b411c('0x10')](_0x5b411c('0x9'),_0xb601eb),logger[_0x5b411c('0x13')](_0x5b411c('0x9'),_0xb601eb,JSON[_0x5b411c('0xa')](_0x5da911)),_0x24415f(_0x5da911);})[_0x1c28dd('0x12')](function(_0x2c0c65){const _0x3d096b=_0x1c28dd;logger[_0x3d096b('0xd')](_0x3d096b('0x9'),_0x2c0c65[_0x3d096b('0xf')],_0xb601eb),_0x59b46a(_0x341455['error'](0x1f4,_0x2c0c65[_0x3d096b('0xf')]));});});}; \ No newline at end of file diff --git a/server/api/migration/index.js b/server/api/migration/index.js index a67bd51..1e4ea6d 100644 --- a/server/api/migration/index.js +++ b/server/api/migration/index.js @@ -1 +1 @@ -const a451_0x44da=['./migration.controller','get','Router','express','index'];(function(_0x2bfd81,_0x44da35){const _0x178632=function(_0x1a3868){while(--_0x1a3868){_0x2bfd81['push'](_0x2bfd81['shift']());}};_0x178632(++_0x44da35);}(a451_0x44da,0x95));const a451_0x1786=function(_0x2bfd81,_0x44da35){_0x2bfd81=_0x2bfd81-0x0;let _0x178632=a451_0x44da[_0x2bfd81];return _0x178632;};const _0x11a430=a451_0x1786;'use strict';const express=require(_0x11a430('0x4')),router=express[_0x11a430('0x3')](),controller=require(_0x11a430('0x1'));router[_0x11a430('0x2')]('/',controller[_0x11a430('0x0')]),module['exports']=router; \ No newline at end of file +const a451_0x4806=['exports','Router','index','./migration.controller'];(function(_0x401b8d,_0x48067a){const _0x32bd33=function(_0x5ede68){while(--_0x5ede68){_0x401b8d['push'](_0x401b8d['shift']());}};_0x32bd33(++_0x48067a);}(a451_0x4806,0x112));const a451_0x32bd=function(_0x401b8d,_0x48067a){_0x401b8d=_0x401b8d-0x0;let _0x32bd33=a451_0x4806[_0x401b8d];return _0x32bd33;};const _0x46b709=a451_0x32bd;'use strict';const express=require('express'),router=express[_0x46b709('0x3')](),controller=require(_0x46b709('0x1'));router['get']('/',controller[_0x46b709('0x0')]),module[_0x46b709('0x2')]=router; \ No newline at end of file diff --git a/server/api/migration/migration.attributes.js b/server/api/migration/migration.attributes.js index 8d2e0da..5554eb7 100644 --- a/server/api/migration/migration.attributes.js +++ b/server/api/migration/migration.attributes.js @@ -1 +1 @@ -const a452_0x38bf=['sequelize','STRING','exports','version'];(function(_0x25dfcc,_0x38bf72){const _0x5e47db=function(_0x71e389){while(--_0x71e389){_0x25dfcc['push'](_0x25dfcc['shift']());}};_0x5e47db(++_0x38bf72);}(a452_0x38bf,0xc9));const a452_0x5e47=function(_0x25dfcc,_0x38bf72){_0x25dfcc=_0x25dfcc-0x0;let _0x5e47db=a452_0x38bf[_0x25dfcc];return _0x5e47db;};const _0x505c09=a452_0x5e47;'use strict';const Sequelize=require(_0x505c09('0x3'));module[_0x505c09('0x1')]={'version':{'type':Sequelize[_0x505c09('0x0')],'unique':_0x505c09('0x2')}}; \ No newline at end of file +const a452_0x3196=['version','sequelize'];(function(_0x5f5347,_0x3196ee){const _0x221969=function(_0x3ddc50){while(--_0x3ddc50){_0x5f5347['push'](_0x5f5347['shift']());}};_0x221969(++_0x3196ee);}(a452_0x3196,0x68));const a452_0x2219=function(_0x5f5347,_0x3196ee){_0x5f5347=_0x5f5347-0x0;let _0x221969=a452_0x3196[_0x5f5347];return _0x221969;};const _0x1d67b8=a452_0x2219;'use strict';const Sequelize=require(_0x1d67b8('0x1'));module['exports']={'version':{'type':Sequelize['STRING'],'unique':_0x1d67b8('0x0')}}; \ No newline at end of file diff --git a/server/api/migration/migration.controller.js b/server/api/migration/migration.controller.js index 446bc79..8ec30db 100644 --- a/server/api/migration/migration.controller.js +++ b/server/api/migration/migration.controller.js @@ -1 +1 @@ -const a453_0xe666=['Migration','like','filters','send','findAll','catch','limit','length','VIRTUAL','Content-Range','then','sort','set','include','merge','type','undefined','intersection','filter','map','../../mysqldb','pick','count','rawAttributes','key','includeAll','where','nolimit','status','model','lodash','api','fieldName','name','offset','order','attributes','query','json'];(function(_0x29080e,_0xe66674){const _0x41c203=function(_0x570241){while(--_0x570241){_0x29080e['push'](_0x29080e['shift']());}};_0x41c203(++_0xe66674);}(a453_0xe666,0xcb));const a453_0x41c2=function(_0x29080e,_0xe66674){_0x29080e=_0x29080e-0x0;let _0x41c203=a453_0xe666[_0x29080e];return _0x41c203;};const _0x504e50=a453_0x41c2;'use strict';const _=require(_0x504e50('0x16')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x504e50('0x17')),db=require(_0x504e50('0xc'))['db'],{Op}=require('sequelize');function respondWithFilteredResult(_0x570241,_0x2b18d3){return function(_0x2f944b){const _0x405713=a453_0x41c2;if(_0x2f944b){const _0x5e4f23=_0x2f944b[_0x405713('0xe')],_0x3ae91e=_0x2b18d3[_0x405713('0x1a')];let _0x2af66f=_0x2b18d3[_0x405713('0x1a')]+_0x2b18d3['limit'],_0x33b53e;return _0x2af66f>=_0x5e4f23?(_0x2af66f=_0x5e4f23,_0x33b53e=0xc8):_0x33b53e=0xce,_0x570241[_0x405713('0x14')](_0x33b53e),_0x570241[_0x405713('0x4')](_0x405713('0x1'),_0x3ae91e+'-'+_0x2af66f+'/'+_0x5e4f23)[_0x405713('0x1e')](_0x2f944b);}return null;};}function handleError(_0x12ba28,_0x445a20){return _0x445a20=_0x445a20||0x1f4,function(_0x51c4b1){const _0x5c3d67=a453_0x41c2;logger['error'](_0x51c4b1['stack']),_0x51c4b1[_0x5c3d67('0x19')]&&delete _0x51c4b1[_0x5c3d67('0x19')],_0x12ba28[_0x5c3d67('0x14')](_0x445a20)[_0x5c3d67('0x22')](_0x51c4b1);};}exports['index']=function(_0x32499d,_0xa6b85d){const _0x267eb4=_0x504e50;let _0x2671de={};const _0x1b1b07={},_0x26a9ab={'count':0x0,'rows':[]},_0x31d74d=_[_0x267eb4('0xb')](db[_0x267eb4('0x1f')][_0x267eb4('0xf')],function(_0x26d5e4){const _0x32eed4=_0x267eb4;return{'name':_0x26d5e4[_0x32eed4('0x18')],'type':_0x26d5e4[_0x32eed4('0x7')][_0x32eed4('0x10')]};});_0x1b1b07[_0x267eb4('0x15')]=_['map'](_0x31d74d,_0x267eb4('0x19')),_0x1b1b07['query']=_['keys'](_0x32499d[_0x267eb4('0x1d')]),_0x1b1b07[_0x267eb4('0x21')]=_[_0x267eb4('0x9')](_0x1b1b07[_0x267eb4('0x15')],_0x1b1b07[_0x267eb4('0x1d')]),_0x2671de[_0x267eb4('0x1c')]=_['intersection'](_0x1b1b07['model'],qs['fields'](_0x32499d[_0x267eb4('0x1d')]['fields'])),_0x2671de['attributes']=_0x2671de[_0x267eb4('0x1c')][_0x267eb4('0x26')]?_0x2671de[_0x267eb4('0x1c')]:_0x1b1b07['model'];typeof _0x32499d[_0x267eb4('0x1d')][_0x267eb4('0x13')]===_0x267eb4('0x8')&&(_0x2671de[_0x267eb4('0x25')]=qs[_0x267eb4('0x25')](_0x32499d[_0x267eb4('0x1d')][_0x267eb4('0x25')]),_0x2671de[_0x267eb4('0x1a')]=qs[_0x267eb4('0x1a')](_0x32499d[_0x267eb4('0x1d')][_0x267eb4('0x1a')]));_0x2671de[_0x267eb4('0x1b')]=qs[_0x267eb4('0x3')](_0x32499d[_0x267eb4('0x1d')][_0x267eb4('0x3')]),_0x2671de[_0x267eb4('0x12')]=qs[_0x267eb4('0x21')](_[_0x267eb4('0xd')](_0x32499d[_0x267eb4('0x1d')],_0x1b1b07[_0x267eb4('0x21')]),_0x31d74d);_0x32499d['query'][_0x267eb4('0xa')]&&(_0x2671de[_0x267eb4('0x12')]=_['merge'](_0x2671de[_0x267eb4('0x12')],{[Op['or']]:_[_0x267eb4('0xb')](_0x31d74d,function(_0x30ce82){const _0x2eb21b=_0x267eb4;if(_0x30ce82['type']!==_0x2eb21b('0x0')){const _0x407f57={};return _0x407f57[_0x30ce82[_0x2eb21b('0x19')]]={[Op[_0x2eb21b('0x20')]]:'%'+_0x32499d[_0x2eb21b('0x1d')]['filter']+'%'},_0x407f57;}})}));_0x2671de=_[_0x267eb4('0x6')]({},_0x2671de,_0x32499d['options']);const _0x14346={'where':_0x2671de[_0x267eb4('0x12')]};return db[_0x267eb4('0x1f')][_0x267eb4('0xe')](_0x14346)['then'](function(_0x2fbc2f){const _0x14a15b=_0x267eb4;return _0x26a9ab[_0x14a15b('0xe')]=_0x2fbc2f,_0x32499d[_0x14a15b('0x1d')][_0x14a15b('0x11')]&&(_0x2671de[_0x14a15b('0x5')]=[{'all':!![]}]),db[_0x14a15b('0x1f')][_0x14a15b('0x23')](_0x2671de);})['then'](function(_0x51122d){return _0x26a9ab['rows']=_0x51122d,_0x26a9ab;})[_0x267eb4('0x2')](respondWithFilteredResult(_0xa6b85d,_0x2671de))[_0x267eb4('0x24')](handleError(_0xa6b85d,null));}; \ No newline at end of file +const a453_0x4ca4=['lodash','count','rows','filter','fieldName','stack','offset','limit','map','rawAttributes','fields','filters','undefined','where','status','sequelize','nolimit','key','model','pick','then','name','intersection','json','query','set','Migration','../../components/parsers/qs','include','api','length','error','Content-Range','VIRTUAL','index','like','attributes','options','catch','includeAll','merge','type','findAll','keys','../../mysqldb'];(function(_0xcb8790,_0x4ca44d){const _0x7b5c4b=function(_0x6f41a0){while(--_0x6f41a0){_0xcb8790['push'](_0xcb8790['shift']());}};_0x7b5c4b(++_0x4ca44d);}(a453_0x4ca4,0xda));const a453_0x7b5c=function(_0xcb8790,_0x4ca44d){_0xcb8790=_0xcb8790-0x0;let _0x7b5c4b=a453_0x4ca4[_0xcb8790];return _0x7b5c4b;};const _0x217f59=a453_0x7b5c;'use strict';const _=require(_0x217f59('0x7')),qs=require(_0x217f59('0x22')),logger=require('../../config/logger')(_0x217f59('0x24')),db=require(_0x217f59('0x6'))['db'],{Op}=require(_0x217f59('0x16'));function respondWithFilteredResult(_0x6f41a0,_0x2706a7){return function(_0xdd943e){const _0x4aa82c=a453_0x7b5c;if(_0xdd943e){const _0xe823ce=_0xdd943e['count'],_0x123908=_0x2706a7[_0x4aa82c('0xd')];let _0x35e6d5=_0x2706a7['offset']+_0x2706a7[_0x4aa82c('0xe')],_0x4aeffe;return _0x35e6d5>=_0xe823ce?(_0x35e6d5=_0xe823ce,_0x4aeffe=0xc8):_0x4aeffe=0xce,_0x6f41a0[_0x4aa82c('0x15')](_0x4aeffe),_0x6f41a0[_0x4aa82c('0x20')](_0x4aa82c('0x27'),_0x123908+'-'+_0x35e6d5+'/'+_0xe823ce)[_0x4aa82c('0x1e')](_0xdd943e);}return null;};}function handleError(_0x1a1c6a,_0x10bc13){return _0x10bc13=_0x10bc13||0x1f4,function(_0x634749){const _0x49264f=a453_0x7b5c;logger[_0x49264f('0x26')](_0x634749[_0x49264f('0xc')]),_0x634749[_0x49264f('0x1c')]&&delete _0x634749[_0x49264f('0x1c')],_0x1a1c6a[_0x49264f('0x15')](_0x10bc13)['send'](_0x634749);};}exports[_0x217f59('0x29')]=function(_0x3e8d6b,_0x37f1ca){const _0x553474=_0x217f59;let _0x4ada32={};const _0x2f61d9={},_0x5dd5a9={'count':0x0,'rows':[]},_0x1ab6aa=_[_0x553474('0xf')](db[_0x553474('0x21')][_0x553474('0x10')],function(_0x496987){const _0x278b0f=_0x553474;return{'name':_0x496987[_0x278b0f('0xb')],'type':_0x496987['type'][_0x278b0f('0x18')]};});_0x2f61d9[_0x553474('0x19')]=_['map'](_0x1ab6aa,_0x553474('0x1c')),_0x2f61d9[_0x553474('0x1f')]=_[_0x553474('0x5')](_0x3e8d6b[_0x553474('0x1f')]),_0x2f61d9[_0x553474('0x12')]=_[_0x553474('0x1d')](_0x2f61d9[_0x553474('0x19')],_0x2f61d9['query']),_0x4ada32[_0x553474('0x2b')]=_[_0x553474('0x1d')](_0x2f61d9[_0x553474('0x19')],qs[_0x553474('0x11')](_0x3e8d6b[_0x553474('0x1f')][_0x553474('0x11')])),_0x4ada32[_0x553474('0x2b')]=_0x4ada32[_0x553474('0x2b')][_0x553474('0x25')]?_0x4ada32[_0x553474('0x2b')]:_0x2f61d9[_0x553474('0x19')];typeof _0x3e8d6b['query'][_0x553474('0x17')]===_0x553474('0x13')&&(_0x4ada32[_0x553474('0xe')]=qs[_0x553474('0xe')](_0x3e8d6b[_0x553474('0x1f')][_0x553474('0xe')]),_0x4ada32['offset']=qs[_0x553474('0xd')](_0x3e8d6b[_0x553474('0x1f')][_0x553474('0xd')]));_0x4ada32['order']=qs['sort'](_0x3e8d6b['query']['sort']),_0x4ada32[_0x553474('0x14')]=qs[_0x553474('0x12')](_[_0x553474('0x1a')](_0x3e8d6b[_0x553474('0x1f')],_0x2f61d9[_0x553474('0x12')]),_0x1ab6aa);_0x3e8d6b['query'][_0x553474('0xa')]&&(_0x4ada32[_0x553474('0x14')]=_[_0x553474('0x2')](_0x4ada32['where'],{[Op['or']]:_[_0x553474('0xf')](_0x1ab6aa,function(_0x48e16d){const _0xbb5d68=_0x553474;if(_0x48e16d[_0xbb5d68('0x3')]!==_0xbb5d68('0x28')){const _0x45679e={};return _0x45679e[_0x48e16d['name']]={[Op[_0xbb5d68('0x2a')]]:'%'+_0x3e8d6b[_0xbb5d68('0x1f')][_0xbb5d68('0xa')]+'%'},_0x45679e;}})}));_0x4ada32=_[_0x553474('0x2')]({},_0x4ada32,_0x3e8d6b[_0x553474('0x2c')]);const _0x2c5949={'where':_0x4ada32['where']};return db[_0x553474('0x21')][_0x553474('0x8')](_0x2c5949)['then'](function(_0x3e1eb3){const _0x39127d=_0x553474;return _0x5dd5a9[_0x39127d('0x8')]=_0x3e1eb3,_0x3e8d6b[_0x39127d('0x1f')][_0x39127d('0x1')]&&(_0x4ada32[_0x39127d('0x23')]=[{'all':!![]}]),db[_0x39127d('0x21')][_0x39127d('0x4')](_0x4ada32);})[_0x553474('0x1b')](function(_0x2b14b8){const _0xcf5343=_0x553474;return _0x5dd5a9[_0xcf5343('0x9')]=_0x2b14b8,_0x5dd5a9;})[_0x553474('0x1b')](respondWithFilteredResult(_0x37f1ca,_0x4ada32))[_0x553474('0x0')](handleError(_0x37f1ca,null));}; \ No newline at end of file diff --git a/server/api/migration/migration.model.js b/server/api/migration/migration.model.js index ab9422f..95ca442 100644 --- a/server/api/migration/migration.model.js +++ b/server/api/migration/migration.model.js @@ -1 +1 @@ -const a454_0x59e6=['migrations','./migration.attributes','Migration'];(function(_0x278622,_0x59e68a){const _0x53c208=function(_0x4d9be4){while(--_0x4d9be4){_0x278622['push'](_0x278622['shift']());}};_0x53c208(++_0x59e68a);}(a454_0x59e6,0xd0));const a454_0x53c2=function(_0x278622,_0x59e68a){_0x278622=_0x278622-0x0;let _0x53c208=a454_0x59e6[_0x278622];return _0x53c208;};const _0x3f3860=a454_0x53c2;'use strict';const attributes=require(_0x3f3860('0x0'));module['exports']=function(_0x4d9be4){const _0x2553a0=_0x3f3860,_0x35929c=_0x4d9be4['define'](_0x2553a0('0x1'),attributes,{'tableName':_0x2553a0('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x35929c;}; \ No newline at end of file +const a454_0x4dc3=['Migration','exports','./migration.attributes'];(function(_0x42b739,_0x4dc358){const _0x90d9ae=function(_0x259f6f){while(--_0x259f6f){_0x42b739['push'](_0x42b739['shift']());}};_0x90d9ae(++_0x4dc358);}(a454_0x4dc3,0xed));const a454_0x90d9=function(_0x42b739,_0x4dc358){_0x42b739=_0x42b739-0x0;let _0x90d9ae=a454_0x4dc3[_0x42b739];return _0x90d9ae;};const _0x24ace7=a454_0x90d9;'use strict';const attributes=require(_0x24ace7('0x2'));module[_0x24ace7('0x1')]=function(_0x259f6f){const _0x8c8482=_0x24ace7,_0x23d261=_0x259f6f['define'](_0x8c8482('0x0'),attributes,{'tableName':'migrations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x23d261;}; \ No newline at end of file diff --git a/server/api/network/index.js b/server/api/network/index.js index 66d0f2a..681a3fb 100644 --- a/server/api/network/index.js +++ b/server/api/network/index.js @@ -1 +1 @@ -const a455_0x2f3e=['put','/:id','get','create','delete','post','../../components/auth/service','isAuthenticated','show','./network.controller','index'];(function(_0x4f3569,_0x2f3e52){const _0x4ce2b3=function(_0x551efe){while(--_0x551efe){_0x4f3569['push'](_0x4f3569['shift']());}};_0x4ce2b3(++_0x2f3e52);}(a455_0x2f3e,0x137));const a455_0x4ce2=function(_0x4f3569,_0x2f3e52){_0x4f3569=_0x4f3569-0x0;let _0x4ce2b3=a455_0x2f3e[_0x4f3569];return _0x4ce2b3;};const _0x4ea09c=a455_0x4ce2;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x4ea09c('0x3')),controller=require(_0x4ea09c('0x6'));router[_0x4ea09c('0xa')]('/',auth['isAuthenticated'](),controller[_0x4ea09c('0x7')]),router[_0x4ea09c('0xa')](_0x4ea09c('0x9'),auth[_0x4ea09c('0x4')](),controller[_0x4ea09c('0x5')]),router[_0x4ea09c('0x2')]('/',auth[_0x4ea09c('0x4')](),controller[_0x4ea09c('0x0')]),router[_0x4ea09c('0x8')](_0x4ea09c('0x9'),auth[_0x4ea09c('0x4')](),controller['update']),router[_0x4ea09c('0x1')](_0x4ea09c('0x9'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a455_0x5271=['express','delete','/:id','exports','destroy','./network.controller','get','isAuthenticated','update','Router','show','create'];(function(_0x1b2281,_0x527109){const _0x2bb9fc=function(_0x26a6cf){while(--_0x26a6cf){_0x1b2281['push'](_0x1b2281['shift']());}};_0x2bb9fc(++_0x527109);}(a455_0x5271,0x103));const a455_0x2bb9=function(_0x1b2281,_0x527109){_0x1b2281=_0x1b2281-0x0;let _0x2bb9fc=a455_0x5271[_0x1b2281];return _0x2bb9fc;};const _0x4ee19a=a455_0x2bb9;'use strict';const express=require(_0x4ee19a('0x5')),router=express[_0x4ee19a('0x2')](),auth=require('../../components/auth/service'),controller=require(_0x4ee19a('0xa'));router[_0x4ee19a('0xb')]('/',auth['isAuthenticated'](),controller['index']),router['get']('/:id',auth[_0x4ee19a('0x0')](),controller[_0x4ee19a('0x3')]),router['post']('/',auth[_0x4ee19a('0x0')](),controller[_0x4ee19a('0x4')]),router['put'](_0x4ee19a('0x7'),auth[_0x4ee19a('0x0')](),controller[_0x4ee19a('0x1')]),router[_0x4ee19a('0x6')]('/:id',auth[_0x4ee19a('0x0')](),controller[_0x4ee19a('0x9')]),module[_0x4ee19a('0x8')]=router; \ No newline at end of file diff --git a/server/api/network/network.attributes.js b/server/api/network/network.attributes.js index df31f7f..9103f04 100644 --- a/server/api/network/network.attributes.js +++ b/server/api/network/network.attributes.js @@ -1 +1 @@ -const a456_0x3dc5=['stun','turn','ENUM','exports','sequelize','STRING'];(function(_0x4d5896,_0x3dc59f){const _0x33dcac=function(_0x9bd00b){while(--_0x9bd00b){_0x4d5896['push'](_0x4d5896['shift']());}};_0x33dcac(++_0x3dc59f);}(a456_0x3dc5,0x190));const a456_0x33dc=function(_0x4d5896,_0x3dc59f){_0x4d5896=_0x4d5896-0x0;let _0x33dcac=a456_0x3dc5[_0x4d5896];return _0x33dcac;};const _0xf623d2=a456_0x33dc;'use strict';const Sequelize=require(_0xf623d2('0x0'));module[_0xf623d2('0x5')]={'type':{'type':Sequelize[_0xf623d2('0x4')]('localnet','externip',_0xf623d2('0x2'),_0xf623d2('0x3'))},'value':{'type':Sequelize['STRING']},'username':{'type':Sequelize[_0xf623d2('0x1')]},'password':{'type':Sequelize[_0xf623d2('0x1')]}}; \ No newline at end of file +const a456_0x43fd=['stun','localnet','externip','sequelize','STRING','ENUM'];(function(_0x5dbb97,_0x43fd3a){const _0x227c53=function(_0x21ffa6){while(--_0x21ffa6){_0x5dbb97['push'](_0x5dbb97['shift']());}};_0x227c53(++_0x43fd3a);}(a456_0x43fd,0x78));const a456_0x227c=function(_0x5dbb97,_0x43fd3a){_0x5dbb97=_0x5dbb97-0x0;let _0x227c53=a456_0x43fd[_0x5dbb97];return _0x227c53;};const _0xa64788=a456_0x227c;'use strict';const Sequelize=require(_0xa64788('0x3'));module['exports']={'type':{'type':Sequelize[_0xa64788('0x5')](_0xa64788('0x1'),_0xa64788('0x2'),_0xa64788('0x0'),'turn')},'value':{'type':Sequelize[_0xa64788('0x4')]},'username':{'type':Sequelize[_0xa64788('0x4')]},'password':{'type':Sequelize[_0xa64788('0x4')]}}; \ No newline at end of file diff --git a/server/api/network/network.controller.js b/server/api/network/network.controller.js index 47d5c43..cf1838a 100644 --- a/server/api/network/network.controller.js +++ b/server/api/network/network.controller.js @@ -1 +1 @@ -const a457_0x15e8=['utf8','transaction','findAll','server/files/templates/stun_multiple.ejs','pick','body','model','fields','../../config/environment','api','path','toLowerCase','merge','index','Network','key','keys','show','attributes','chan_sip.so','writeFileSync','message','../../mysqldb','request\x20sent','Network,\x20%s,\x20%s,\x20%s','sort','where','options','set','sendStatus','Content-Range','ejs','result','debug','Network,\x20%s,\x20%s','length','/etc/asterisk/turn_xcally.conf','name','query','info','undefined','http','root','offset','format','include','create','then','VIRTUAL','status','../../config/logger','client','res_stun_monitor.so','update','request','end','destroy','rawAttributes','join','filter','nolimit','send','limit','server/files/templates/turn_multiple.ejs','error','intersection','catch','render','/etc/asterisk/sip_xcally_%s.conf','includeAll','Reload','lodash','type','filters','jayson/promise','sequelize','server/files/templates/network.ejs','like','count','findOne','map','json','util','toUpperCase','params','readFileSync','/etc/asterisk/stun_xcally.conf'];(function(_0x439367,_0x15e85d){const _0x4ebce4=function(_0x59b346){while(--_0x59b346){_0x439367['push'](_0x439367['shift']());}};_0x4ebce4(++_0x15e85d);}(a457_0x15e8,0x6e));const a457_0x4ebc=function(_0x439367,_0x15e85d){_0x439367=_0x439367-0x0;let _0x4ebce4=a457_0x15e8[_0x439367];return _0x4ebce4;};const _0x2e8a69=a457_0x4ebc;'use strict';const util=require(_0x2e8a69('0x3b')),path=require(_0x2e8a69('0x4a')),ejs=require(_0x2e8a69('0x8')),fs=require('fs'),_=require(_0x2e8a69('0x30')),qs=require('../../components/parsers/qs'),logger=require(_0x2e8a69('0x1b'))(_0x2e8a69('0x49')),config=require(_0x2e8a69('0x48')),db=require(_0x2e8a69('0x56'))['db'],{Op}=require(_0x2e8a69('0x34')),jayson=require(_0x2e8a69('0x33')),client=jayson[_0x2e8a69('0x1c')][_0x2e8a69('0x12')]({'port':0x232a});function respondWithRpcPromise(_0x59b346,_0x284305,_0x2c7deb,_0xfd0a58){return new Promise(function(_0x7df138,_0x4b6191){const _0x507ac4=a457_0x4ebc,_0xc9e7f9=_0xfd0a58||client;return _0xc9e7f9[_0x507ac4('0x1f')](_0x59b346,_0x2c7deb)[_0x507ac4('0x18')](function(_0xd6add2){const _0x806af6=_0x507ac4;logger[_0x806af6('0x10')](_0x806af6('0xb'),_0x284305,_0x806af6('0x0')),logger[_0x806af6('0xa')](_0x806af6('0x1'),_0x284305,_0x806af6('0x0'),JSON['stringify'](_0xd6add2));if(_0xd6add2[_0x806af6('0x29')]){if(_0xd6add2[_0x806af6('0x29')]['code']===0x1f4)return logger[_0x806af6('0x29')]('Network,\x20%s,\x20%s',_0x284305,_0xd6add2[_0x806af6('0x29')][_0x806af6('0x55')]),_0x4b6191(_0xd6add2[_0x806af6('0x29')][_0x806af6('0x55')]);return logger[_0x806af6('0x29')]('Network,\x20%s,\x20%s',_0x284305,_0xd6add2[_0x806af6('0x29')][_0x806af6('0x55')]),_0x7df138(_0xd6add2[_0x806af6('0x29')][_0x806af6('0x55')]);}else logger[_0x806af6('0x10')](_0x806af6('0xb'),_0x284305,_0x806af6('0x0')),_0x7df138(_0xd6add2[_0x806af6('0x9')]['message']);})[_0x507ac4('0x2b')](function(_0x19487b){const _0xb0f234=_0x507ac4;logger[_0xb0f234('0x29')](_0xb0f234('0xb'),_0x284305,_0x19487b),_0x4b6191(_0x19487b);});});}function respondWithResult(_0xc64d51,_0x4f7961){return _0x4f7961=_0x4f7961||0xc8,function(_0x1b65c6){const _0x316752=a457_0x4ebc;if(_0x1b65c6)return _0xc64d51[_0x316752('0x1a')](_0x4f7961)[_0x316752('0x3a')](_0x1b65c6);};}function respondWithFilteredResult(_0x895734,_0x567696){return function(_0x43d75e){const _0x39aa2c=a457_0x4ebc;if(_0x43d75e){const _0x5de016=_0x43d75e[_0x39aa2c('0x37')],_0x45bdee=_0x567696[_0x39aa2c('0x14')];let _0x13675b=_0x567696[_0x39aa2c('0x14')]+_0x567696[_0x39aa2c('0x27')],_0x47751a;return _0x13675b>=_0x5de016?(_0x13675b=_0x5de016,_0x47751a=0xc8):_0x47751a=0xce,_0x895734[_0x39aa2c('0x1a')](_0x47751a),_0x895734[_0x39aa2c('0x5')](_0x39aa2c('0x7'),_0x45bdee+'-'+_0x13675b+'/'+_0x5de016)[_0x39aa2c('0x3a')](_0x43d75e);}return null;};}function saveUpdates(_0x5d578c){return function(_0x313d9d){const _0x49cd9c=a457_0x4ebc;if(_0x313d9d)return _0x313d9d[_0x49cd9c('0x1e')](_0x5d578c)[_0x49cd9c('0x18')](function(_0x24032d){return _0x24032d;});return null;};}function removeEntity(_0x25e1a0){return function(_0xf5b16d){const _0x28ad4d=a457_0x4ebc;if(_0xf5b16d)return _0xf5b16d[_0x28ad4d('0x21')]()[_0x28ad4d('0x18')](function(){const _0x9ca81d=_0x28ad4d;_0x25e1a0[_0x9ca81d('0x1a')](0xcc)[_0x9ca81d('0x20')]();});};}function handleEntityNotFound(_0x37edfa){return function(_0x2dc7a5){const _0x4e62bf=a457_0x4ebc;return!_0x2dc7a5&&_0x37edfa[_0x4e62bf('0x6')](0x194),_0x2dc7a5;};}function handleError(_0x405c40,_0x3a39b5){return _0x3a39b5=_0x3a39b5||0x1f4,function(_0x1fa0a4){const _0x7639c7=a457_0x4ebc;logger[_0x7639c7('0x29')](_0x1fa0a4['stack']),_0x1fa0a4['name']&&delete _0x1fa0a4[_0x7639c7('0xe')],_0x405c40[_0x7639c7('0x1a')](_0x3a39b5)[_0x7639c7('0x26')](_0x1fa0a4);};}exports[_0x2e8a69('0x4d')]=function(_0x19d0ff,_0x1b1bc9){const _0x3ce2a5=_0x2e8a69;let _0x41e5b7={};const _0x54b5de={},_0x1df60b={'count':0x0,'rows':[]},_0x5eb36a=_[_0x3ce2a5('0x39')](db[_0x3ce2a5('0x4e')][_0x3ce2a5('0x22')],function(_0x179963){const _0x54cead=_0x3ce2a5;return{'name':_0x179963['fieldName'],'type':_0x179963['type'][_0x54cead('0x4f')]};});_0x54b5de['model']=_[_0x3ce2a5('0x39')](_0x5eb36a,_0x3ce2a5('0xe')),_0x54b5de[_0x3ce2a5('0xf')]=_[_0x3ce2a5('0x50')](_0x19d0ff[_0x3ce2a5('0xf')]),_0x54b5de['filters']=_[_0x3ce2a5('0x2a')](_0x54b5de[_0x3ce2a5('0x46')],_0x54b5de[_0x3ce2a5('0xf')]),_0x41e5b7[_0x3ce2a5('0x52')]=_['intersection'](_0x54b5de['model'],qs[_0x3ce2a5('0x47')](_0x19d0ff[_0x3ce2a5('0xf')][_0x3ce2a5('0x47')])),_0x41e5b7['attributes']=_0x41e5b7[_0x3ce2a5('0x52')]['length']?_0x41e5b7[_0x3ce2a5('0x52')]:_0x54b5de[_0x3ce2a5('0x46')];typeof _0x19d0ff['query'][_0x3ce2a5('0x25')]===_0x3ce2a5('0x11')&&(_0x41e5b7[_0x3ce2a5('0x27')]=qs[_0x3ce2a5('0x27')](_0x19d0ff[_0x3ce2a5('0xf')][_0x3ce2a5('0x27')]),_0x41e5b7[_0x3ce2a5('0x14')]=qs[_0x3ce2a5('0x14')](_0x19d0ff[_0x3ce2a5('0xf')][_0x3ce2a5('0x14')]));_0x41e5b7['order']=qs[_0x3ce2a5('0x2')](_0x19d0ff['query'][_0x3ce2a5('0x2')]),_0x41e5b7['where']=qs[_0x3ce2a5('0x32')](_[_0x3ce2a5('0x44')](_0x19d0ff['query'],_0x54b5de[_0x3ce2a5('0x32')]),_0x5eb36a);_0x19d0ff['query'][_0x3ce2a5('0x24')]&&(_0x41e5b7[_0x3ce2a5('0x3')]=_[_0x3ce2a5('0x4c')](_0x41e5b7[_0x3ce2a5('0x3')],{[Op['or']]:_['map'](_0x5eb36a,function(_0x545d48){const _0x39986c=_0x3ce2a5;if(_0x545d48[_0x39986c('0x31')]!==_0x39986c('0x19')){const _0xc850fd={};return _0xc850fd[_0x545d48[_0x39986c('0xe')]]={[Op[_0x39986c('0x36')]]:'%'+_0x19d0ff[_0x39986c('0xf')]['filter']+'%'},_0xc850fd;}})}));_0x41e5b7=_['merge']({},_0x41e5b7,_0x19d0ff['options']);const _0x7886b2={'where':_0x41e5b7[_0x3ce2a5('0x3')]};return db[_0x3ce2a5('0x4e')][_0x3ce2a5('0x37')](_0x7886b2)[_0x3ce2a5('0x18')](function(_0x3519c4){const _0x24b34b=_0x3ce2a5;return _0x1df60b[_0x24b34b('0x37')]=_0x3519c4,_0x19d0ff[_0x24b34b('0xf')][_0x24b34b('0x2e')]&&(_0x41e5b7['include']=[{'all':!![]}]),db[_0x24b34b('0x4e')][_0x24b34b('0x42')](_0x41e5b7);})[_0x3ce2a5('0x18')](function(_0x33894c){return _0x1df60b['rows']=_0x33894c,_0x1df60b;})[_0x3ce2a5('0x18')](respondWithFilteredResult(_0x1b1bc9,_0x41e5b7))[_0x3ce2a5('0x2b')](handleError(_0x1b1bc9,null));},exports[_0x2e8a69('0x51')]=function(_0x45e833,_0x442f20){const _0x3010eb=_0x2e8a69;let _0x7e7723={'raw':!![],'where':{'id':_0x45e833[_0x3010eb('0x3d')]['id']}};const _0x9430e0={};return _0x9430e0[_0x3010eb('0x46')]=_['keys'](db['Network'][_0x3010eb('0x22')]),_0x9430e0['query']=_[_0x3010eb('0x50')](_0x45e833[_0x3010eb('0xf')]),_0x9430e0['filters']=_['intersection'](_0x9430e0[_0x3010eb('0x46')],_0x9430e0[_0x3010eb('0xf')]),_0x7e7723['attributes']=_[_0x3010eb('0x2a')](_0x9430e0[_0x3010eb('0x46')],qs[_0x3010eb('0x47')](_0x45e833[_0x3010eb('0xf')]['fields'])),_0x7e7723[_0x3010eb('0x52')]=_0x7e7723[_0x3010eb('0x52')][_0x3010eb('0xc')]?_0x7e7723[_0x3010eb('0x52')]:_0x9430e0[_0x3010eb('0x46')],_0x45e833[_0x3010eb('0xf')]['includeAll']&&(_0x7e7723[_0x3010eb('0x16')]=[{'all':!![]}]),_0x7e7723=_[_0x3010eb('0x4c')]({},_0x7e7723,_0x45e833[_0x3010eb('0x4')]),db[_0x3010eb('0x4e')][_0x3010eb('0x38')](_0x7e7723)[_0x3010eb('0x18')](handleEntityNotFound(_0x442f20,null))[_0x3010eb('0x18')](respondWithResult(_0x442f20,null))[_0x3010eb('0x2b')](handleError(_0x442f20,null));},exports[_0x2e8a69('0x17')]=function(_0xc5c4ee,_0x131d67){const _0x146cbd=_0x2e8a69;let _0x49c4cc;return db[_0x146cbd('0x34')][_0x146cbd('0x41')](function(){const _0x1f98ca=_0x146cbd;return db[_0x1f98ca('0x4e')][_0x1f98ca('0x17')](_0xc5c4ee[_0x1f98ca('0x45')],{'raw':!![]})[_0x1f98ca('0x18')](function(_0x2acc27){const _0x4afcea=_0x1f98ca;return _0x49c4cc=_0x2acc27,db[_0x4afcea('0x4e')][_0x4afcea('0x42')]({'where':{'type':_0xc5c4ee[_0x4afcea('0x45')][_0x4afcea('0x31')]},'raw':!![]});})['then'](function(_0x390e08){const _0x15d37f=_0x1f98ca;if(_0x49c4cc[_0x15d37f('0x31')]['toUpperCase']()=='STUN'){const _0x38ac09=fs[_0x15d37f('0x3e')](path['join'](config['root'],_0x15d37f('0x43')),_0x15d37f('0x40')),_0x207c4b=ejs[_0x15d37f('0x2c')](_0x38ac09,{'networks':_0x390e08||[]});return fs['writeFileSync']('/etc/asterisk/stun_xcally.conf',_0x207c4b),respondWithRpcPromise('Reload','create',{'module':_0x15d37f('0x1d')});}else{if(_0x49c4cc[_0x15d37f('0x31')]['toUpperCase']()=='TURN'){const _0x5938bd=fs['readFileSync'](path[_0x15d37f('0x23')](config[_0x15d37f('0x13')],_0x15d37f('0x28')),'utf8'),_0x569006=ejs['render'](_0x5938bd,{'networks':_0x390e08||[]});return fs[_0x15d37f('0x54')](_0x15d37f('0xd'),_0x569006),respondWithRpcPromise(_0x15d37f('0x2f'),_0x15d37f('0x17'),{'module':'res_stun_monitor.so'});}else{const _0x258887=fs[_0x15d37f('0x3e')](path['join'](config[_0x15d37f('0x13')],_0x15d37f('0x35')),_0x15d37f('0x40')),_0x59783f=ejs[_0x15d37f('0x2c')](_0x258887,{'networks':_0x390e08||[]});return fs[_0x15d37f('0x54')](util['format'](_0x15d37f('0x2d'),_0xc5c4ee[_0x15d37f('0x45')][_0x15d37f('0x31')][_0x15d37f('0x4b')]()),_0x59783f),respondWithRpcPromise(_0x15d37f('0x2f'),_0x15d37f('0x17'),{'module':_0x15d37f('0x53')});}}})[_0x1f98ca('0x18')](function(){return _0x49c4cc;});})[_0x146cbd('0x18')](respondWithResult(_0x131d67,0xc9))[_0x146cbd('0x2b')](handleError(_0x131d67,null));},exports[_0x2e8a69('0x1e')]=function(_0x47aada,_0x57e7dd){const _0x22148d=_0x2e8a69;let _0x3b0b34;return db[_0x22148d('0x34')][_0x22148d('0x41')](function(){const _0x33d146=_0x22148d;return db['Network']['findOne']({'where':{'id':_0x47aada[_0x33d146('0x3d')]['id']}})[_0x33d146('0x18')](handleEntityNotFound(_0x57e7dd,null))[_0x33d146('0x18')](saveUpdates(_0x47aada['body'],null))['then'](function(_0x5b0e78){const _0x47c667=_0x33d146;if(_0x5b0e78)return _0x3b0b34=_0x5b0e78,db[_0x47c667('0x4e')][_0x47c667('0x42')]({'where':{'type':_0x3b0b34['type']},'raw':!![]});return null;})['then'](function(_0x1eb7ae){const _0x103c18=_0x33d146;if(_0x3b0b34['type'][_0x103c18('0x3c')]()=='STUN'){const _0x3496ca=fs[_0x103c18('0x3e')](path['join'](config['root'],_0x103c18('0x43')),_0x103c18('0x40')),_0x3c89e3=ejs[_0x103c18('0x2c')](_0x3496ca,{'networks':_0x1eb7ae||[]});return fs[_0x103c18('0x54')]('/etc/asterisk/stun_xcally.conf',_0x3c89e3),respondWithRpcPromise(_0x103c18('0x2f'),_0x103c18('0x1e'),{'module':_0x103c18('0x1d')});}else{if(_0x3b0b34['type']['toUpperCase']()=='TURN'){const _0x4d686b=fs['readFileSync'](path[_0x103c18('0x23')](config[_0x103c18('0x13')],'server/files/templates/turn_multiple.ejs'),_0x103c18('0x40')),_0x2a632d=ejs[_0x103c18('0x2c')](_0x4d686b,{'networks':_0x1eb7ae||[]});return fs[_0x103c18('0x54')](_0x103c18('0xd'),_0x2a632d),respondWithRpcPromise(_0x103c18('0x2f'),'update',{'module':_0x103c18('0x1d')});}else{const _0x3c0752=fs[_0x103c18('0x3e')](path[_0x103c18('0x23')](config[_0x103c18('0x13')],_0x103c18('0x35')),_0x103c18('0x40')),_0x435b7f=ejs[_0x103c18('0x2c')](_0x3c0752,{'networks':_0x1eb7ae||[]});return fs[_0x103c18('0x54')](util[_0x103c18('0x15')](_0x103c18('0x2d'),_0x47aada[_0x103c18('0x45')][_0x103c18('0x31')][_0x103c18('0x4b')]()),_0x435b7f),respondWithRpcPromise(_0x103c18('0x2f'),_0x103c18('0x1e'),{'module':_0x103c18('0x53')});}}})[_0x33d146('0x18')](function(_0x49babf){if(_0x49babf)return _0x3b0b34;return null;});})[_0x22148d('0x18')](respondWithResult(_0x57e7dd,null))['catch'](handleError(_0x57e7dd,null));},exports[_0x2e8a69('0x21')]=function(_0xe873b6,_0x5c8399){const _0x5aea66=_0x2e8a69;let _0x594a7f;return db[_0x5aea66('0x4e')][_0x5aea66('0x38')]({'where':{'id':_0xe873b6[_0x5aea66('0x3d')]['id']}})[_0x5aea66('0x18')](function(_0x430f5d){return _0x594a7f=_0x430f5d,_0x430f5d;})['then'](handleEntityNotFound(_0x5c8399,null))[_0x5aea66('0x18')](removeEntity(_0x5c8399,null))[_0x5aea66('0x18')](function(){const _0x366523=_0x5aea66;if(_0x594a7f)return db['Network'][_0x366523('0x42')]({'where':{'type':_0x594a7f['type']},'raw':!![]});})[_0x5aea66('0x18')](function(_0x5a8639){const _0xa2ca27=_0x5aea66;if(_0x594a7f[_0xa2ca27('0x31')]['toUpperCase']()=='STUN'){const _0x524bc0=fs[_0xa2ca27('0x3e')](path[_0xa2ca27('0x23')](config['root'],_0xa2ca27('0x43')),_0xa2ca27('0x40')),_0x15117=ejs['render'](_0x524bc0,{'networks':_0x5a8639||[]});return fs['writeFileSync'](_0xa2ca27('0x3f'),_0x15117),respondWithRpcPromise(_0xa2ca27('0x2f'),_0xa2ca27('0x21'),{'module':_0xa2ca27('0x1d')});}else{if(_0x594a7f['type'][_0xa2ca27('0x3c')]()=='TURN'){const _0x40120f=fs[_0xa2ca27('0x3e')](path['join'](config[_0xa2ca27('0x13')],_0xa2ca27('0x28')),'utf8'),_0x3d85cd=ejs['render'](_0x40120f,{'networks':_0x5a8639||[]});return fs[_0xa2ca27('0x54')]('/etc/asterisk/turn_xcally.conf',_0x3d85cd),respondWithRpcPromise('Reload',_0xa2ca27('0x21'),{'module':'res_stun_monitor.so'});}else{const _0xde90e5=fs[_0xa2ca27('0x3e')](path[_0xa2ca27('0x23')](config['root'],_0xa2ca27('0x35')),_0xa2ca27('0x40')),_0x551ead=ejs[_0xa2ca27('0x2c')](_0xde90e5,{'networks':_0x5a8639||[]});return fs['writeFileSync'](util[_0xa2ca27('0x15')]('/etc/asterisk/sip_xcally_%s.conf',_0xe873b6[_0xa2ca27('0x45')]['type'][_0xa2ca27('0x4b')]()),_0x551ead),respondWithRpcPromise('Reload',_0xa2ca27('0x21'),{'module':_0xa2ca27('0x53')});}}})[_0x5aea66('0x2b')](handleError(_0x5c8399,null));}; \ No newline at end of file +const a457_0x2bd1=['client','/etc/asterisk/stun_xcally.conf','root','/etc/asterisk/sip_xcally_%s.conf','end','http','filter','body','stack','lodash','destroy','send','api','Network,\x20%s,\x20%s','ejs','../../components/parsers/qs','key','writeFileSync','Reload','json','transaction','res_stun_monitor.so','findOne','Content-Range','util','filters','pick','server/files/templates/turn_multiple.ejs','order','include','name','type','debug','sort','count','server/files/templates/network.ejs','undefined','format','readFileSync','sequelize','error','request\x20sent','merge','STUN','fields','toLowerCase','info','update','server/files/templates/stun_multiple.ejs','where','chan_sip.so','params','map','keys','options','limit','rows','model','findAll','message','TURN','nolimit','../../config/logger','Network','catch','/etc/asterisk/turn_xcally.conf','utf8','result','query','../../mysqldb','path','request','offset','then','join','toUpperCase','length','jayson/promise','attributes','intersection','status','create','../../config/environment','render'];(function(_0x254edb,_0x2bd10f){const _0x3bfb89=function(_0x1f9784){while(--_0x1f9784){_0x254edb['push'](_0x254edb['shift']());}};_0x3bfb89(++_0x2bd10f);}(a457_0x2bd1,0x111));const a457_0x3bfb=function(_0x254edb,_0x2bd10f){_0x254edb=_0x254edb-0x0;let _0x3bfb89=a457_0x2bd1[_0x254edb];return _0x3bfb89;};const _0x178916=a457_0x3bfb;'use strict';const util=require(_0x178916('0x3')),path=require(_0x178916('0x31')),ejs=require(_0x178916('0x4d')),fs=require('fs'),_=require(_0x178916('0x48')),qs=require(_0x178916('0x4e')),logger=require(_0x178916('0x29'))(_0x178916('0x4b')),config=require(_0x178916('0x3d')),db=require(_0x178916('0x30'))['db'],{Op}=require(_0x178916('0x12')),jayson=require(_0x178916('0x38')),client=jayson[_0x178916('0x3f')][_0x178916('0x44')]({'port':0x232a});function respondWithRpcPromise(_0x1f9784,_0x45892b,_0x8ffa5c,_0x4ec658){return new Promise(function(_0x4025ee,_0x1a7d03){const _0x58b4ed=a457_0x3bfb,_0x277d2c=_0x4ec658||client;return _0x277d2c[_0x58b4ed('0x32')](_0x1f9784,_0x8ffa5c)['then'](function(_0x4fdfbd){const _0x7a69e3=_0x58b4ed;logger[_0x7a69e3('0x19')](_0x7a69e3('0x4c'),_0x45892b,_0x7a69e3('0x14')),logger[_0x7a69e3('0xb')]('Network,\x20%s,\x20%s,\x20%s',_0x45892b,_0x7a69e3('0x14'),JSON['stringify'](_0x4fdfbd));if(_0x4fdfbd[_0x7a69e3('0x13')]){if(_0x4fdfbd[_0x7a69e3('0x13')]['code']===0x1f4)return logger['error'](_0x7a69e3('0x4c'),_0x45892b,_0x4fdfbd[_0x7a69e3('0x13')]['message']),_0x1a7d03(_0x4fdfbd[_0x7a69e3('0x13')][_0x7a69e3('0x26')]);return logger[_0x7a69e3('0x13')](_0x7a69e3('0x4c'),_0x45892b,_0x4fdfbd[_0x7a69e3('0x13')][_0x7a69e3('0x26')]),_0x4025ee(_0x4fdfbd[_0x7a69e3('0x13')][_0x7a69e3('0x26')]);}else logger[_0x7a69e3('0x19')](_0x7a69e3('0x4c'),_0x45892b,_0x7a69e3('0x14')),_0x4025ee(_0x4fdfbd[_0x7a69e3('0x2e')][_0x7a69e3('0x26')]);})['catch'](function(_0x2c1e74){const _0x3ce74a=_0x58b4ed;logger[_0x3ce74a('0x13')](_0x3ce74a('0x4c'),_0x45892b,_0x2c1e74),_0x1a7d03(_0x2c1e74);});});}function respondWithResult(_0x42b73a,_0x241420){return _0x241420=_0x241420||0xc8,function(_0x315c1a){const _0xa0128d=a457_0x3bfb;if(_0x315c1a)return _0x42b73a['status'](_0x241420)[_0xa0128d('0x52')](_0x315c1a);};}function respondWithFilteredResult(_0x359ba4,_0x37dbe9){return function(_0xe92d44){const _0x2928ba=a457_0x3bfb;if(_0xe92d44){const _0x407a00=_0xe92d44['count'],_0x56bfef=_0x37dbe9['offset'];let _0x2f2ca1=_0x37dbe9[_0x2928ba('0x33')]+_0x37dbe9[_0x2928ba('0x22')],_0x40cd07;return _0x2f2ca1>=_0x407a00?(_0x2f2ca1=_0x407a00,_0x40cd07=0xc8):_0x40cd07=0xce,_0x359ba4[_0x2928ba('0x3b')](_0x40cd07),_0x359ba4['set'](_0x2928ba('0x2'),_0x56bfef+'-'+_0x2f2ca1+'/'+_0x407a00)['json'](_0xe92d44);}return null;};}function saveUpdates(_0x49b6e4){return function(_0x1bbf7f){const _0x46ac39=a457_0x3bfb;if(_0x1bbf7f)return _0x1bbf7f[_0x46ac39('0x1a')](_0x49b6e4)['then'](function(_0x215158){return _0x215158;});return null;};}function removeEntity(_0x2d8fb6){return function(_0x4bc042){const _0x37ae14=a457_0x3bfb;if(_0x4bc042)return _0x4bc042[_0x37ae14('0x49')]()['then'](function(){const _0x3c38ba=_0x37ae14;_0x2d8fb6[_0x3c38ba('0x3b')](0xcc)[_0x3c38ba('0x43')]();});};}function handleEntityNotFound(_0x3db678){return function(_0x5818a4){return!_0x5818a4&&_0x3db678['sendStatus'](0x194),_0x5818a4;};}function handleError(_0x4c0b6e,_0x1c72aa){return _0x1c72aa=_0x1c72aa||0x1f4,function(_0x40fc16){const _0x3b7f47=a457_0x3bfb;logger[_0x3b7f47('0x13')](_0x40fc16[_0x3b7f47('0x47')]),_0x40fc16[_0x3b7f47('0x9')]&&delete _0x40fc16[_0x3b7f47('0x9')],_0x4c0b6e[_0x3b7f47('0x3b')](_0x1c72aa)[_0x3b7f47('0x4a')](_0x40fc16);};}exports['index']=function(_0x30f9ec,_0x5ea4d3){const _0x3ecd11=_0x178916;let _0x2a9cd6={};const _0x4cf416={},_0x297778={'count':0x0,'rows':[]},_0x18278a=_[_0x3ecd11('0x1f')](db[_0x3ecd11('0x2a')]['rawAttributes'],function(_0x5f14d2){const _0x5e84b4=_0x3ecd11;return{'name':_0x5f14d2['fieldName'],'type':_0x5f14d2['type'][_0x5e84b4('0x4f')]};});_0x4cf416[_0x3ecd11('0x24')]=_[_0x3ecd11('0x1f')](_0x18278a,_0x3ecd11('0x9')),_0x4cf416[_0x3ecd11('0x2f')]=_[_0x3ecd11('0x20')](_0x30f9ec[_0x3ecd11('0x2f')]),_0x4cf416['filters']=_[_0x3ecd11('0x3a')](_0x4cf416['model'],_0x4cf416[_0x3ecd11('0x2f')]),_0x2a9cd6[_0x3ecd11('0x39')]=_[_0x3ecd11('0x3a')](_0x4cf416[_0x3ecd11('0x24')],qs['fields'](_0x30f9ec[_0x3ecd11('0x2f')][_0x3ecd11('0x17')])),_0x2a9cd6[_0x3ecd11('0x39')]=_0x2a9cd6[_0x3ecd11('0x39')]['length']?_0x2a9cd6[_0x3ecd11('0x39')]:_0x4cf416[_0x3ecd11('0x24')];typeof _0x30f9ec[_0x3ecd11('0x2f')][_0x3ecd11('0x28')]===_0x3ecd11('0xf')&&(_0x2a9cd6['limit']=qs[_0x3ecd11('0x22')](_0x30f9ec[_0x3ecd11('0x2f')]['limit']),_0x2a9cd6['offset']=qs[_0x3ecd11('0x33')](_0x30f9ec[_0x3ecd11('0x2f')][_0x3ecd11('0x33')]));_0x2a9cd6[_0x3ecd11('0x7')]=qs['sort'](_0x30f9ec[_0x3ecd11('0x2f')][_0x3ecd11('0xc')]),_0x2a9cd6[_0x3ecd11('0x1c')]=qs[_0x3ecd11('0x4')](_[_0x3ecd11('0x5')](_0x30f9ec[_0x3ecd11('0x2f')],_0x4cf416[_0x3ecd11('0x4')]),_0x18278a);_0x30f9ec[_0x3ecd11('0x2f')][_0x3ecd11('0x45')]&&(_0x2a9cd6['where']=_[_0x3ecd11('0x15')](_0x2a9cd6['where'],{[Op['or']]:_[_0x3ecd11('0x1f')](_0x18278a,function(_0xa6932b){const _0x20170e=_0x3ecd11;if(_0xa6932b[_0x20170e('0xa')]!=='VIRTUAL'){const _0x218122={};return _0x218122[_0xa6932b[_0x20170e('0x9')]]={[Op['like']]:'%'+_0x30f9ec['query'][_0x20170e('0x45')]+'%'},_0x218122;}})}));_0x2a9cd6=_[_0x3ecd11('0x15')]({},_0x2a9cd6,_0x30f9ec[_0x3ecd11('0x21')]);const _0x379e03={'where':_0x2a9cd6[_0x3ecd11('0x1c')]};return db['Network'][_0x3ecd11('0xd')](_0x379e03)[_0x3ecd11('0x34')](function(_0x4e2268){const _0x2f598a=_0x3ecd11;return _0x297778[_0x2f598a('0xd')]=_0x4e2268,_0x30f9ec['query']['includeAll']&&(_0x2a9cd6[_0x2f598a('0x8')]=[{'all':!![]}]),db['Network'][_0x2f598a('0x25')](_0x2a9cd6);})[_0x3ecd11('0x34')](function(_0x34ea5c){const _0x5b4ecc=_0x3ecd11;return _0x297778[_0x5b4ecc('0x23')]=_0x34ea5c,_0x297778;})[_0x3ecd11('0x34')](respondWithFilteredResult(_0x5ea4d3,_0x2a9cd6))[_0x3ecd11('0x2b')](handleError(_0x5ea4d3,null));},exports['show']=function(_0x13a3a5,_0x1ccd96){const _0x448b8e=_0x178916;let _0x3b381b={'raw':!![],'where':{'id':_0x13a3a5[_0x448b8e('0x1e')]['id']}};const _0x2373bb={};return _0x2373bb[_0x448b8e('0x24')]=_['keys'](db['Network']['rawAttributes']),_0x2373bb[_0x448b8e('0x2f')]=_['keys'](_0x13a3a5['query']),_0x2373bb['filters']=_[_0x448b8e('0x3a')](_0x2373bb[_0x448b8e('0x24')],_0x2373bb[_0x448b8e('0x2f')]),_0x3b381b[_0x448b8e('0x39')]=_[_0x448b8e('0x3a')](_0x2373bb[_0x448b8e('0x24')],qs[_0x448b8e('0x17')](_0x13a3a5[_0x448b8e('0x2f')][_0x448b8e('0x17')])),_0x3b381b[_0x448b8e('0x39')]=_0x3b381b[_0x448b8e('0x39')][_0x448b8e('0x37')]?_0x3b381b['attributes']:_0x2373bb['model'],_0x13a3a5[_0x448b8e('0x2f')]['includeAll']&&(_0x3b381b['include']=[{'all':!![]}]),_0x3b381b=_[_0x448b8e('0x15')]({},_0x3b381b,_0x13a3a5[_0x448b8e('0x21')]),db['Network'][_0x448b8e('0x1')](_0x3b381b)[_0x448b8e('0x34')](handleEntityNotFound(_0x1ccd96,null))[_0x448b8e('0x34')](respondWithResult(_0x1ccd96,null))['catch'](handleError(_0x1ccd96,null));},exports[_0x178916('0x3c')]=function(_0x1e6d9c,_0x26fb1b){const _0x5606a8=_0x178916;let _0x43b263;return db[_0x5606a8('0x12')][_0x5606a8('0x53')](function(){const _0x544530=_0x5606a8;return db['Network'][_0x544530('0x3c')](_0x1e6d9c[_0x544530('0x46')],{'raw':!![]})[_0x544530('0x34')](function(_0x412c3c){const _0x566280=_0x544530;return _0x43b263=_0x412c3c,db['Network'][_0x566280('0x25')]({'where':{'type':_0x1e6d9c[_0x566280('0x46')]['type']},'raw':!![]});})['then'](function(_0x25c6d9){const _0x1f45dc=_0x544530;if(_0x43b263['type'][_0x1f45dc('0x36')]()=='STUN'){const _0x32b60d=fs[_0x1f45dc('0x11')](path['join'](config['root'],_0x1f45dc('0x1b')),_0x1f45dc('0x2d')),_0x39dd7f=ejs[_0x1f45dc('0x3e')](_0x32b60d,{'networks':_0x25c6d9||[]});return fs[_0x1f45dc('0x50')]('/etc/asterisk/stun_xcally.conf',_0x39dd7f),respondWithRpcPromise(_0x1f45dc('0x51'),_0x1f45dc('0x3c'),{'module':'res_stun_monitor.so'});}else{if(_0x43b263[_0x1f45dc('0xa')]['toUpperCase']()==_0x1f45dc('0x27')){const _0x43b996=fs[_0x1f45dc('0x11')](path['join'](config[_0x1f45dc('0x41')],_0x1f45dc('0x6')),_0x1f45dc('0x2d')),_0x22b7c4=ejs[_0x1f45dc('0x3e')](_0x43b996,{'networks':_0x25c6d9||[]});return fs[_0x1f45dc('0x50')]('/etc/asterisk/turn_xcally.conf',_0x22b7c4),respondWithRpcPromise('Reload','create',{'module':_0x1f45dc('0x0')});}else{const _0x18a23d=fs[_0x1f45dc('0x11')](path['join'](config[_0x1f45dc('0x41')],_0x1f45dc('0xe')),'utf8'),_0x1c74ab=ejs['render'](_0x18a23d,{'networks':_0x25c6d9||[]});return fs[_0x1f45dc('0x50')](util[_0x1f45dc('0x10')](_0x1f45dc('0x42'),_0x1e6d9c['body'][_0x1f45dc('0xa')][_0x1f45dc('0x18')]()),_0x1c74ab),respondWithRpcPromise(_0x1f45dc('0x51'),_0x1f45dc('0x3c'),{'module':_0x1f45dc('0x1d')});}}})['then'](function(){return _0x43b263;});})[_0x5606a8('0x34')](respondWithResult(_0x26fb1b,0xc9))[_0x5606a8('0x2b')](handleError(_0x26fb1b,null));},exports[_0x178916('0x1a')]=function(_0x7632f,_0x5633b4){const _0x4ff6d2=_0x178916;let _0x401dc6;return db[_0x4ff6d2('0x12')][_0x4ff6d2('0x53')](function(){const _0x55ef9a=_0x4ff6d2;return db['Network'][_0x55ef9a('0x1')]({'where':{'id':_0x7632f[_0x55ef9a('0x1e')]['id']}})[_0x55ef9a('0x34')](handleEntityNotFound(_0x5633b4,null))[_0x55ef9a('0x34')](saveUpdates(_0x7632f[_0x55ef9a('0x46')],null))[_0x55ef9a('0x34')](function(_0x94cb64){const _0x3033dd=_0x55ef9a;if(_0x94cb64)return _0x401dc6=_0x94cb64,db['Network'][_0x3033dd('0x25')]({'where':{'type':_0x401dc6[_0x3033dd('0xa')]},'raw':!![]});return null;})['then'](function(_0x479531){const _0x115d35=_0x55ef9a;if(_0x401dc6[_0x115d35('0xa')][_0x115d35('0x36')]()==_0x115d35('0x16')){const _0x36531f=fs['readFileSync'](path[_0x115d35('0x35')](config[_0x115d35('0x41')],_0x115d35('0x1b')),_0x115d35('0x2d')),_0x8912c3=ejs['render'](_0x36531f,{'networks':_0x479531||[]});return fs[_0x115d35('0x50')](_0x115d35('0x40'),_0x8912c3),respondWithRpcPromise(_0x115d35('0x51'),_0x115d35('0x1a'),{'module':_0x115d35('0x0')});}else{if(_0x401dc6[_0x115d35('0xa')]['toUpperCase']()=='TURN'){const _0x522718=fs[_0x115d35('0x11')](path['join'](config[_0x115d35('0x41')],_0x115d35('0x6')),'utf8'),_0x237695=ejs[_0x115d35('0x3e')](_0x522718,{'networks':_0x479531||[]});return fs[_0x115d35('0x50')]('/etc/asterisk/turn_xcally.conf',_0x237695),respondWithRpcPromise('Reload',_0x115d35('0x1a'),{'module':_0x115d35('0x0')});}else{const _0x5624b4=fs[_0x115d35('0x11')](path[_0x115d35('0x35')](config['root'],'server/files/templates/network.ejs'),_0x115d35('0x2d')),_0x5e44e4=ejs[_0x115d35('0x3e')](_0x5624b4,{'networks':_0x479531||[]});return fs[_0x115d35('0x50')](util[_0x115d35('0x10')]('/etc/asterisk/sip_xcally_%s.conf',_0x7632f[_0x115d35('0x46')][_0x115d35('0xa')][_0x115d35('0x18')]()),_0x5e44e4),respondWithRpcPromise(_0x115d35('0x51'),_0x115d35('0x1a'),{'module':_0x115d35('0x1d')});}}})['then'](function(_0x3fabe1){if(_0x3fabe1)return _0x401dc6;return null;});})[_0x4ff6d2('0x34')](respondWithResult(_0x5633b4,null))[_0x4ff6d2('0x2b')](handleError(_0x5633b4,null));},exports[_0x178916('0x49')]=function(_0x2f224f,_0x5f3636){const _0x1db9f3=_0x178916;let _0x71385b;return db[_0x1db9f3('0x2a')][_0x1db9f3('0x1')]({'where':{'id':_0x2f224f['params']['id']}})['then'](function(_0x24a314){return _0x71385b=_0x24a314,_0x24a314;})[_0x1db9f3('0x34')](handleEntityNotFound(_0x5f3636,null))[_0x1db9f3('0x34')](removeEntity(_0x5f3636,null))['then'](function(){const _0x2e7699=_0x1db9f3;if(_0x71385b)return db[_0x2e7699('0x2a')][_0x2e7699('0x25')]({'where':{'type':_0x71385b[_0x2e7699('0xa')]},'raw':!![]});})[_0x1db9f3('0x34')](function(_0xfdd52e){const _0x297e61=_0x1db9f3;if(_0x71385b[_0x297e61('0xa')][_0x297e61('0x36')]()==_0x297e61('0x16')){const _0x511729=fs[_0x297e61('0x11')](path[_0x297e61('0x35')](config[_0x297e61('0x41')],'server/files/templates/stun_multiple.ejs'),'utf8'),_0x31e501=ejs[_0x297e61('0x3e')](_0x511729,{'networks':_0xfdd52e||[]});return fs[_0x297e61('0x50')]('/etc/asterisk/stun_xcally.conf',_0x31e501),respondWithRpcPromise('Reload','destroy',{'module':'res_stun_monitor.so'});}else{if(_0x71385b['type'][_0x297e61('0x36')]()==_0x297e61('0x27')){const _0x13c29e=fs[_0x297e61('0x11')](path[_0x297e61('0x35')](config[_0x297e61('0x41')],_0x297e61('0x6')),_0x297e61('0x2d')),_0xe4f060=ejs[_0x297e61('0x3e')](_0x13c29e,{'networks':_0xfdd52e||[]});return fs[_0x297e61('0x50')](_0x297e61('0x2c'),_0xe4f060),respondWithRpcPromise(_0x297e61('0x51'),_0x297e61('0x49'),{'module':'res_stun_monitor.so'});}else{const _0x640d31=fs['readFileSync'](path[_0x297e61('0x35')](config[_0x297e61('0x41')],'server/files/templates/network.ejs'),_0x297e61('0x2d')),_0x51c156=ejs[_0x297e61('0x3e')](_0x640d31,{'networks':_0xfdd52e||[]});return fs[_0x297e61('0x50')](util['format'](_0x297e61('0x42'),_0x2f224f[_0x297e61('0x46')][_0x297e61('0xa')][_0x297e61('0x18')]()),_0x51c156),respondWithRpcPromise(_0x297e61('0x51'),_0x297e61('0x49'),{'module':'chan_sip.so'});}}})[_0x1db9f3('0x2b')](handleError(_0x5f3636,null));}; \ No newline at end of file diff --git a/server/api/network/network.model.js b/server/api/network/network.model.js index 92fb1e2..3595b8d 100644 --- a/server/api/network/network.model.js +++ b/server/api/network/network.model.js @@ -1 +1 @@ -const a458_0x3347=['exports','Network','network','define'];(function(_0x1f2546,_0x3347bb){const _0x504bec=function(_0x43e6d3){while(--_0x43e6d3){_0x1f2546['push'](_0x1f2546['shift']());}};_0x504bec(++_0x3347bb);}(a458_0x3347,0x1ce));const a458_0x504b=function(_0x1f2546,_0x3347bb){_0x1f2546=_0x1f2546-0x0;let _0x504bec=a458_0x3347[_0x1f2546];return _0x504bec;};const _0x22699e=a458_0x504b;'use strict';const attributes=require('./network.attributes');module[_0x22699e('0x2')]=function(_0x43e6d3){const _0x4612d0=_0x22699e,_0x1904dd=_0x43e6d3[_0x4612d0('0x1')](_0x4612d0('0x3'),attributes,{'tableName':_0x4612d0('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1904dd;}; \ No newline at end of file +const a458_0x422d=['Network','exports','network','./network.attributes','define'];(function(_0x41f214,_0x422d0c){const _0x5a07cc=function(_0xd2f8e6){while(--_0xd2f8e6){_0x41f214['push'](_0x41f214['shift']());}};_0x5a07cc(++_0x422d0c);}(a458_0x422d,0x164));const a458_0x5a07=function(_0x41f214,_0x422d0c){_0x41f214=_0x41f214-0x0;let _0x5a07cc=a458_0x422d[_0x41f214];return _0x5a07cc;};const _0x3121db=a458_0x5a07;'use strict';const attributes=require(_0x3121db('0x2'));module[_0x3121db('0x0')]=function(_0xd2f8e6){const _0x428a45=_0x3121db,_0x431261=_0xd2f8e6[_0x428a45('0x3')](_0x428a45('0x4'),attributes,{'tableName':_0x428a45('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x431261;}; \ No newline at end of file diff --git a/server/api/notification/index.js b/server/api/notification/index.js index c96b4ef..042f838 100644 --- a/server/api/notification/index.js +++ b/server/api/notification/index.js @@ -1 +1 @@ -const a459_0x5b0a=['isAuthenticated','exports','Router','sendNotification','./notification.controller','post'];(function(_0x532d43,_0x5b0ab7){const _0xde0c2f=function(_0x4948d9){while(--_0x4948d9){_0x532d43['push'](_0x532d43['shift']());}};_0xde0c2f(++_0x5b0ab7);}(a459_0x5b0a,0x106));const a459_0xde0c=function(_0x532d43,_0x5b0ab7){_0x532d43=_0x532d43-0x0;let _0xde0c2f=a459_0x5b0a[_0x532d43];return _0xde0c2f;};const _0x5defe0=a459_0xde0c;'use strict';const express=require('express'),router=express[_0x5defe0('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x5defe0('0x0'));router[_0x5defe0('0x1')]('/',auth[_0x5defe0('0x2')](),controller[_0x5defe0('0x5')]),module[_0x5defe0('0x3')]=router; \ No newline at end of file +const a459_0x2f73=['express','./notification.controller','exports','isAuthenticated','../../components/auth/service','post'];(function(_0x1613c2,_0x2f7307){const _0x240e90=function(_0x21b25b){while(--_0x21b25b){_0x1613c2['push'](_0x1613c2['shift']());}};_0x240e90(++_0x2f7307);}(a459_0x2f73,0x68));const a459_0x240e=function(_0x1613c2,_0x2f7307){_0x1613c2=_0x1613c2-0x0;let _0x240e90=a459_0x2f73[_0x1613c2];return _0x240e90;};const _0x1d2020=a459_0x240e;'use strict';const express=require(_0x1d2020('0x4')),router=express['Router'](),auth=require(_0x1d2020('0x2')),controller=require(_0x1d2020('0x5'));router[_0x1d2020('0x3')]('/',auth[_0x1d2020('0x1')](),controller['sendNotification']),module[_0x1d2020('0x0')]=router; \ No newline at end of file diff --git a/server/api/notification/notification.attributes.js b/server/api/notification/notification.attributes.js index b721e76..87f7a4a 100644 --- a/server/api/notification/notification.attributes.js +++ b/server/api/notification/notification.attributes.js @@ -1 +1 @@ -const a460_0x2b62=['BOOLEAN','STRING','TEXT'];(function(_0x41795f,_0x2b6292){const _0x4cf800=function(_0x478f13){while(--_0x478f13){_0x41795f['push'](_0x41795f['shift']());}};_0x4cf800(++_0x2b6292);}(a460_0x2b62,0x7d));const a460_0x4cf8=function(_0x41795f,_0x2b6292){_0x41795f=_0x41795f-0x0;let _0x4cf800=a460_0x2b62[_0x41795f];return _0x4cf800;};const _0x5611de=a460_0x4cf8;'use strict';const Sequelize=require('sequelize');module['exports']={'body':{'type':Sequelize['TEXT']},'senderName':{'type':Sequelize[_0x5611de('0x2')]},'recipientsId':{'type':Sequelize[_0x5611de('0x0')]},'recipientsDescription':{'type':Sequelize['STRING']},'beep':{'type':Sequelize[_0x5611de('0x1')]}}; \ No newline at end of file +const a460_0x5b1f=['BOOLEAN','sequelize','STRING','exports','TEXT'];(function(_0x76dff9,_0x5b1fcd){const _0x29794b=function(_0x196f41){while(--_0x196f41){_0x76dff9['push'](_0x76dff9['shift']());}};_0x29794b(++_0x5b1fcd);}(a460_0x5b1f,0x67));const a460_0x2979=function(_0x76dff9,_0x5b1fcd){_0x76dff9=_0x76dff9-0x0;let _0x29794b=a460_0x5b1f[_0x76dff9];return _0x29794b;};const _0x4e361d=a460_0x2979;'use strict';const Sequelize=require(_0x4e361d('0x3'));module[_0x4e361d('0x0')]={'body':{'type':Sequelize['TEXT']},'senderName':{'type':Sequelize[_0x4e361d('0x4')]},'recipientsId':{'type':Sequelize[_0x4e361d('0x1')]},'recipientsDescription':{'type':Sequelize['STRING']},'beep':{'type':Sequelize[_0x4e361d('0x2')]}}; \ No newline at end of file diff --git a/server/api/notification/notification.controller.js b/server/api/notification/notification.controller.js index 4c8bcdc..30aab81 100644 --- a/server/api/notification/notification.controller.js +++ b/server/api/notification/notification.controller.js @@ -1 +1 @@ -const a461_0x56aa=['catch','Invalid\x20\x27recipients\x27\x20object','Missing\x20\x27view\x27\x20parameter','user','html','team','recipientsId','error','send','parse','Missing\x20\x27recipients\x27\x20parameter','register','stack','ids','isEmpty','findOne','sequelize','includes','api','some','./notification.socket','sortBy','toLowerCase','voicequeue','replace','recipients','undefined','json','mustache','join','status','TemplateId','startCase','queue','senderName','faxqueue','emit','Invalid\x20model\x20in\x20\x27recipients\x27\x20object','view','../../mysqldb','text','forEach','recipient','Queue','../../config/logger','all','smsqueue','push','whatsappqueue','name','fullname','Sequelize','sendNotification','Template','Invalid\x20\x27TemplateId\x27\x20parameter','mailqueue','SenderId','beep','Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27','ValidationError','chatqueue','model','notification:send','then','getAgents','body','recipientsDescription','../../rediscache'];(function(_0x3c7ec5,_0x56aa17){const _0x11f07a=function(_0x5501f8){while(--_0x5501f8){_0x3c7ec5['push'](_0x3c7ec5['shift']());}};_0x11f07a(++_0x56aa17);}(a461_0x56aa,0x1f1));const a461_0x11f0=function(_0x3c7ec5,_0x56aa17){_0x3c7ec5=_0x3c7ec5-0x0;let _0x11f07a=a461_0x56aa[_0x3c7ec5];return _0x11f07a;};const _0x445964=a461_0x11f0;'use strict';const Mustache=require(_0x445964('0x7')),_=require('lodash'),logger=require(_0x445964('0x17'))(_0x445964('0x41')),{getSocket}=require(_0x445964('0x2e')),socket=getSocket(),db=require(_0x445964('0x12'))['db'];require(_0x445964('0x43'))[_0x445964('0x3a')](socket);function respondWithResult(_0x5501f8,_0x22cb66){return _0x22cb66=_0x22cb66||0xc8,function(_0x358ae0){const _0x1dbc13=a461_0x11f0;if(_0x358ae0)return _0x5501f8[_0x1dbc13('0x9')](_0x22cb66)[_0x1dbc13('0x6')](_0x358ae0);};}function handleError(_0xf64f09,_0x22bc47){return _0x22bc47=_0x22bc47||0x1f4,function(_0x5bd1d8){const _0x489ced=a461_0x11f0;logger[_0x489ced('0x36')](_0x5bd1d8[_0x489ced('0x3b')]),_0x5bd1d8[_0x489ced('0x1c')]&&delete _0x5bd1d8[_0x489ced('0x1c')],_0xf64f09[_0x489ced('0x9')](_0x22bc47)[_0x489ced('0x37')](_0x5bd1d8);};}exports[_0x445964('0x1f')]=function(_0x2a037b,_0x47e029){const _0x144da0=_0x445964;let _0x415f4f=[];if(typeof _0x2a037b[_0x144da0('0x2c')]['text']===_0x144da0('0x5')&&typeof _0x2a037b[_0x144da0('0x2c')][_0x144da0('0xa')]===_0x144da0('0x5'))throw new db[(_0x144da0('0x1e'))][(_0x144da0('0x26'))](_0x144da0('0x25'));else{if(typeof _0x2a037b[_0x144da0('0x2c')][_0x144da0('0xa')]!==_0x144da0('0x5')&&typeof _0x2a037b[_0x144da0('0x2c')][_0x144da0('0x11')]===_0x144da0('0x5'))throw new db[(_0x144da0('0x1e'))][(_0x144da0('0x26'))](_0x144da0('0x31'));if(typeof _0x2a037b[_0x144da0('0x2c')][_0x144da0('0x4')]===_0x144da0('0x5'))throw new db[(_0x144da0('0x1e'))][(_0x144da0('0x26'))](_0x144da0('0x39'));else{try{_0x415f4f=JSON[_0x144da0('0x38')](_0x2a037b[_0x144da0('0x2c')][_0x144da0('0x4')]);}catch(_0x6e146){logger[_0x144da0('0x36')](_0x6e146);throw new db[(_0x144da0('0x1e'))][(_0x144da0('0x26'))](_0x144da0('0x30'));}const _0x596bf3=[_0x144da0('0x27'),_0x144da0('0xe'),_0x144da0('0x22'),'openchannelqueue',_0x144da0('0x19'),_0x144da0('0x2'),_0x144da0('0x1b'),_0x144da0('0x34'),_0x144da0('0x32')];if(_[_0x144da0('0x42')](_0x415f4f,function(_0x2550b4){const _0x11cdc2=_0x144da0;return!_[_0x11cdc2('0x40')](_0x596bf3,_0x2550b4[_0x11cdc2('0x28')][_0x11cdc2('0x1')]());}))throw new db[(_0x144da0('0x1e'))][(_0x144da0('0x26'))](_0x144da0('0x10'));}}const _0x17cbe5={};return _0x17cbe5['senderName']=_0x2a037b['body']['senderName']?_0x2a037b[_0x144da0('0x2c')]['senderName']:_0x2a037b['user'][_0x144da0('0x1d')],_0x17cbe5[_0x144da0('0x2d')]=_[_0x144da0('0x3d')](_0x2a037b[_0x144da0('0x2c')][_0x144da0('0x2d')])?null:_0x2a037b[_0x144da0('0x2c')][_0x144da0('0x2d')],_0x17cbe5[_0x144da0('0x24')]=_0x2a037b[_0x144da0('0x2c')][_0x144da0('0x24')]||![],_0x17cbe5[_0x144da0('0x23')]=_0x2a037b[_0x144da0('0x32')]['id'],getContent(_0x2a037b[_0x144da0('0x2c')])[_0x144da0('0x2a')](function(_0x214e29){return _0x17cbe5['body']=_0x214e29,getRecipients(_0x415f4f);})['then'](function(_0x4b6c35){const _0x27371c=_0x144da0;return _0x17cbe5[_0x27371c('0x35')]=_[_0x27371c('0x0')](_0x4b6c35)[_0x27371c('0x8')](','),db[_0x27371c('0x3f')]['transaction'](function(_0x26db93){return db['Notification']['create'](_0x17cbe5,{'raw':!![],'transaction':_0x26db93})['then'](function(_0xcc7cff){const _0x23dcf2=a461_0x11f0,_0x214e33={'sender':_0x17cbe5[_0x23dcf2('0xd')],'description':_0x17cbe5[_0x23dcf2('0x2d')],'content':_0x17cbe5['body'],'beep':_0x17cbe5[_0x23dcf2('0x24')]};return _0x4b6c35[_0x23dcf2('0x14')](function(_0xf1c422){const _0x3b402f=_0x23dcf2;_0x214e33[_0x3b402f('0x15')]=_0xf1c422,socket[_0x3b402f('0xf')](_0x3b402f('0x29'),_0x214e33);}),_0xcc7cff;});});})[_0x144da0('0x2a')](respondWithResult(_0x47e029,0xc9))[_0x144da0('0x2f')](handleError(_0x47e029,null));};function getContent(_0x408988){return new Promise(function(_0x10328f,_0xbff043){const _0x340dc0=a461_0x11f0;if(_0x408988[_0x340dc0('0x13')]){_0x10328f(_0x408988[_0x340dc0('0x13')]);return;}return db[_0x340dc0('0x20')][_0x340dc0('0x3e')]({'attributes':[_0x340dc0('0x33')],'where':{'id':_0x408988['TemplateId']},'raw':!![]})[_0x340dc0('0x2a')](function(_0x11614b){const _0x50b252=_0x340dc0;if(!_0x11614b)throw new db[(_0x50b252('0x1e'))][(_0x50b252('0x26'))](_0x50b252('0x21'));const _0x5bae25=Mustache['render'](_0x11614b[_0x50b252('0x33')],_0x408988[_0x50b252('0x11')]);_0x10328f(_0x5bae25);})[_0x340dc0('0x2f')](function(_0x10fbc4){_0xbff043(_0x10fbc4);});});}function getRecipients(_0x372472){return new Promise(function(_0x42d3a6,_0x306063){const _0x57f8c4=a461_0x11f0;let _0x3afde1=[];const _0x6d2582=[];return _0x372472[_0x57f8c4('0x14')](function(_0x23be40){const _0x409f65=_0x57f8c4;let _0x2c6d8e=_[_0x409f65('0xb')](_0x23be40['model'][_0x409f65('0x1')]());if(_0x2c6d8e==='User')_0x3afde1=_['union'](_0x3afde1,_0x23be40[_0x409f65('0x3c')]);else{if(_[_0x409f65('0x40')](_0x2c6d8e,_0x409f65('0xc')))_0x2c6d8e=_0x2c6d8e[_0x409f65('0x3')](_0x409f65('0xc'),_0x409f65('0x16'));_0x23be40[_0x409f65('0x3c')][_0x409f65('0x14')](function(_0x482a48){const _0x142d61=_0x409f65;_0x6d2582[_0x142d61('0x1a')](getAgents(_0x2c6d8e,_0x482a48));});}}),Promise[_0x57f8c4('0x18')](_0x6d2582)['then'](function(_0x2f673b){_0x3afde1=_['union'](_0x3afde1,_['flatten'](_0x2f673b)),_0x42d3a6(_0x3afde1);})['catch'](function(_0x25ab2c){_0x306063(_0x25ab2c);});});}function getAgents(_0x37c963,_0x1bfe7f){return new Promise(function(_0x3ff74c,_0x479403){const _0x3f0089=a461_0x11f0;return db[_0x37c963][_0x3f0089('0x3e')]({'where':{'id':_0x1bfe7f}})[_0x3f0089('0x2a')](function(_0x4204ca){const _0xc0e2f6=_0x3f0089;return _0x4204ca[_0xc0e2f6('0x2b')]({'attributes':['id'],'raw':!![]})[_0xc0e2f6('0x2a')](function(_0xd23536){const _0x3e30d8=_['map'](_0xd23536,'id');_0x3ff74c(_0x3e30d8);});})[_0x3f0089('0x2f')](function(_0x17ea1a){_0x479403(_0x17ea1a);});});} \ No newline at end of file +const a461_0xa6f8=['Invalid\x20\x27recipients\x27\x20object','voicequeue','name','beep','forEach','SenderId','./notification.socket','body','senderName','join','flatten','../../config/logger','TemplateId','text','register','toLowerCase','send','some','json','Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27','faxqueue','recipient','map','Invalid\x20model\x20in\x20\x27recipients\x27\x20object','emit','Sequelize','status','ValidationError','lodash','sendNotification','parse','create','union','team','Template','getAgents','isEmpty','../../mysqldb','user','error','model','../../rediscache','mailqueue','recipients','recipientsDescription','whatsappqueue','ids','catch','view','api','Invalid\x20\x27TemplateId\x27\x20parameter','render','includes','recipientsId','push','queue','sequelize','undefined','smsqueue','Missing\x20\x27view\x27\x20parameter','transaction','Queue','User','notification:send','startCase','chatqueue','sortBy','then','html','Notification'];(function(_0x3fb1b8,_0xa6f800){const _0x19b076=function(_0x3687e6){while(--_0x3687e6){_0x3fb1b8['push'](_0x3fb1b8['shift']());}};_0x19b076(++_0xa6f800);}(a461_0xa6f8,0x121));const a461_0x19b0=function(_0x3fb1b8,_0xa6f800){_0x3fb1b8=_0x3fb1b8-0x0;let _0x19b076=a461_0xa6f8[_0x3fb1b8];return _0x19b076;};const _0x194638=a461_0x19b0;'use strict';const Mustache=require('mustache'),_=require(_0x194638('0x13')),logger=require(_0x194638('0x2'))(_0x194638('0x28')),{getSocket}=require(_0x194638('0x20')),socket=getSocket(),db=require(_0x194638('0x1c'))['db'];require(_0x194638('0x43'))[_0x194638('0x5')](socket);function respondWithResult(_0x3687e6,_0x1f5753){return _0x1f5753=_0x1f5753||0xc8,function(_0x318ad1){const _0xe28ea4=a461_0x19b0;if(_0x318ad1)return _0x3687e6[_0xe28ea4('0x11')](_0x1f5753)[_0xe28ea4('0x9')](_0x318ad1);};}function handleError(_0x12f111,_0x55cde3){return _0x55cde3=_0x55cde3||0x1f4,function(_0x586679){const _0x552348=a461_0x19b0;logger[_0x552348('0x1e')](_0x586679['stack']),_0x586679[_0x552348('0x3f')]&&delete _0x586679[_0x552348('0x3f')],_0x12f111['status'](_0x55cde3)[_0x552348('0x7')](_0x586679);};}exports[_0x194638('0x14')]=function(_0x1d90a3,_0x2fcf88){const _0x2d98a8=_0x194638;let _0x5bb54f=[];if(typeof _0x1d90a3['body'][_0x2d98a8('0x4')]===_0x2d98a8('0x30')&&typeof _0x1d90a3[_0x2d98a8('0x44')][_0x2d98a8('0x3')]===_0x2d98a8('0x30'))throw new db[(_0x2d98a8('0x10'))][(_0x2d98a8('0x12'))](_0x2d98a8('0xa'));else{if(typeof _0x1d90a3['body'][_0x2d98a8('0x3')]!=='undefined'&&typeof _0x1d90a3['body'][_0x2d98a8('0x27')]===_0x2d98a8('0x30'))throw new db[(_0x2d98a8('0x10'))][(_0x2d98a8('0x12'))](_0x2d98a8('0x32'));if(typeof _0x1d90a3['body'][_0x2d98a8('0x22')]==='undefined')throw new db['Sequelize'][(_0x2d98a8('0x12'))]('Missing\x20\x27recipients\x27\x20parameter');else{try{_0x5bb54f=JSON[_0x2d98a8('0x15')](_0x1d90a3[_0x2d98a8('0x44')][_0x2d98a8('0x22')]);}catch(_0x1a723e){logger[_0x2d98a8('0x1e')](_0x1a723e);throw new db[(_0x2d98a8('0x10'))][(_0x2d98a8('0x12'))](_0x2d98a8('0x3d'));}const _0x5133c4=[_0x2d98a8('0x38'),_0x2d98a8('0xb'),_0x2d98a8('0x21'),'openchannelqueue',_0x2d98a8('0x31'),_0x2d98a8('0x3e'),_0x2d98a8('0x24'),_0x2d98a8('0x18'),_0x2d98a8('0x1d')];if(_[_0x2d98a8('0x8')](_0x5bb54f,function(_0x3693e9){const _0x39f723=_0x2d98a8;return!_[_0x39f723('0x2b')](_0x5133c4,_0x3693e9[_0x39f723('0x1f')][_0x39f723('0x6')]());}))throw new db[(_0x2d98a8('0x10'))][(_0x2d98a8('0x12'))](_0x2d98a8('0xe'));}}const _0x1219ad={};return _0x1219ad['senderName']=_0x1d90a3[_0x2d98a8('0x44')]['senderName']?_0x1d90a3['body'][_0x2d98a8('0x45')]:_0x1d90a3[_0x2d98a8('0x1d')]['fullname'],_0x1219ad[_0x2d98a8('0x23')]=_[_0x2d98a8('0x1b')](_0x1d90a3[_0x2d98a8('0x44')][_0x2d98a8('0x23')])?null:_0x1d90a3[_0x2d98a8('0x44')][_0x2d98a8('0x23')],_0x1219ad[_0x2d98a8('0x40')]=_0x1d90a3['body'][_0x2d98a8('0x40')]||![],_0x1219ad[_0x2d98a8('0x42')]=_0x1d90a3[_0x2d98a8('0x1d')]['id'],getContent(_0x1d90a3[_0x2d98a8('0x44')])[_0x2d98a8('0x3a')](function(_0x7557f){return _0x1219ad['body']=_0x7557f,getRecipients(_0x5bb54f);})[_0x2d98a8('0x3a')](function(_0x546341){const _0x114506=_0x2d98a8;return _0x1219ad[_0x114506('0x2c')]=_[_0x114506('0x39')](_0x546341)[_0x114506('0x0')](','),db[_0x114506('0x2f')][_0x114506('0x33')](function(_0x567b03){const _0x27647e=_0x114506;return db[_0x27647e('0x3c')][_0x27647e('0x16')](_0x1219ad,{'raw':!![],'transaction':_0x567b03})[_0x27647e('0x3a')](function(_0x4efdf6){const _0xdbfeac=_0x27647e,_0x38ec70={'sender':_0x1219ad[_0xdbfeac('0x45')],'description':_0x1219ad[_0xdbfeac('0x23')],'content':_0x1219ad[_0xdbfeac('0x44')],'beep':_0x1219ad[_0xdbfeac('0x40')]};return _0x546341[_0xdbfeac('0x41')](function(_0x5d5c54){const _0x503125=_0xdbfeac;_0x38ec70[_0x503125('0xc')]=_0x5d5c54,socket[_0x503125('0xf')](_0x503125('0x36'),_0x38ec70);}),_0x4efdf6;});});})[_0x2d98a8('0x3a')](respondWithResult(_0x2fcf88,0xc9))[_0x2d98a8('0x26')](handleError(_0x2fcf88,null));};function getContent(_0x34f17b){return new Promise(function(_0x2135e4,_0x520ed3){const _0x453a85=a461_0x19b0;if(_0x34f17b[_0x453a85('0x4')]){_0x2135e4(_0x34f17b[_0x453a85('0x4')]);return;}return db[_0x453a85('0x19')]['findOne']({'attributes':[_0x453a85('0x3b')],'where':{'id':_0x34f17b[_0x453a85('0x3')]},'raw':!![]})[_0x453a85('0x3a')](function(_0x5ad106){const _0x37e418=_0x453a85;if(!_0x5ad106)throw new db[(_0x37e418('0x10'))][(_0x37e418('0x12'))](_0x37e418('0x29'));const _0x2a5321=Mustache[_0x37e418('0x2a')](_0x5ad106[_0x37e418('0x3b')],_0x34f17b['view']);_0x2135e4(_0x2a5321);})['catch'](function(_0x4a035f){_0x520ed3(_0x4a035f);});});}function getRecipients(_0x2b51cb){return new Promise(function(_0x1a1c66,_0x13c6b1){const _0x31abab=a461_0x19b0;let _0x5aea52=[];const _0x39e41b=[];return _0x2b51cb[_0x31abab('0x41')](function(_0x1ef5e5){const _0x4d89ed=_0x31abab;let _0x2e88e9=_[_0x4d89ed('0x37')](_0x1ef5e5[_0x4d89ed('0x1f')][_0x4d89ed('0x6')]());if(_0x2e88e9===_0x4d89ed('0x35'))_0x5aea52=_[_0x4d89ed('0x17')](_0x5aea52,_0x1ef5e5[_0x4d89ed('0x25')]);else{if(_['includes'](_0x2e88e9,_0x4d89ed('0x2e')))_0x2e88e9=_0x2e88e9['replace'](_0x4d89ed('0x2e'),_0x4d89ed('0x34'));_0x1ef5e5[_0x4d89ed('0x25')][_0x4d89ed('0x41')](function(_0x4643cc){const _0xf00d95=_0x4d89ed;_0x39e41b[_0xf00d95('0x2d')](getAgents(_0x2e88e9,_0x4643cc));});}}),Promise['all'](_0x39e41b)[_0x31abab('0x3a')](function(_0xbd211e){const _0x5e8d43=_0x31abab;_0x5aea52=_[_0x5e8d43('0x17')](_0x5aea52,_[_0x5e8d43('0x1')](_0xbd211e)),_0x1a1c66(_0x5aea52);})['catch'](function(_0x51df5a){_0x13c6b1(_0x51df5a);});});}function getAgents(_0x1358cf,_0x25aa33){return new Promise(function(_0x52027e,_0x4ac504){const _0x50dfd0=a461_0x19b0;return db[_0x1358cf]['findOne']({'where':{'id':_0x25aa33}})[_0x50dfd0('0x3a')](function(_0x548693){const _0x5cc791=_0x50dfd0;return _0x548693[_0x5cc791('0x1a')]({'attributes':['id'],'raw':!![]})[_0x5cc791('0x3a')](function(_0x3c5955){const _0x5a74af=_0x5cc791,_0x5223cf=_[_0x5a74af('0xd')](_0x3c5955,'id');_0x52027e(_0x5223cf);});})[_0x50dfd0('0x26')](function(_0x29b385){_0x4ac504(_0x29b385);});});} \ No newline at end of file diff --git a/server/api/notification/notification.events.js b/server/api/notification/notification.events.js index c16d649..57f12d2 100644 --- a/server/api/notification/notification.events.js +++ b/server/api/notification/notification.events.js @@ -1 +1 @@ -const a462_0x4063=['events','Notification','save','setMaxListeners','remove','emit','exports','update','undefined','../../mysqldb'];(function(_0x1780b2,_0x406374){const _0x4cfbec=function(_0xf3780e){while(--_0xf3780e){_0x1780b2['push'](_0x1780b2['shift']());}};_0x4cfbec(++_0x406374);}(a462_0x4063,0x1e4));const a462_0x4cfb=function(_0x1780b2,_0x406374){_0x1780b2=_0x1780b2-0x0;let _0x4cfbec=a462_0x4063[_0x1780b2];return _0x4cfbec;};const _0x2d947c=a462_0x4cfb;'use strict';const EventEmitter=require(_0x2d947c('0x6')),Notification=require(_0x2d947c('0x5'))['db'][_0x2d947c('0x7')],NotificationEvents=new EventEmitter();NotificationEvents[_0x2d947c('0x9')](0x0);const events={'afterCreate':_0x2d947c('0x8'),'afterUpdate':_0x2d947c('0x3'),'afterDestroy':_0x2d947c('0x0')};function emitEvent(_0xf3780e){return function(_0x5b1e64){const _0x1aa24e=a462_0x4cfb;NotificationEvents[_0x1aa24e('0x1')](_0xf3780e+':'+_0x5b1e64['id'],_0x5b1e64),NotificationEvents[_0x1aa24e('0x1')](_0xf3780e,_0x5b1e64);};}for(const e in events){if(typeof events[e]!==_0x2d947c('0x4')){const event=events[e];Notification['addHook'](e,emitEvent(event));}}module[_0x2d947c('0x2')]=NotificationEvents; \ No newline at end of file +const a462_0x3cce=['emit','setMaxListeners','save','../../mysqldb','undefined','addHook','Notification','remove','exports','update'];(function(_0x3a071b,_0x3cced5){const _0x925012=function(_0x5f40a6){while(--_0x5f40a6){_0x3a071b['push'](_0x3a071b['shift']());}};_0x925012(++_0x3cced5);}(a462_0x3cce,0xf0));const a462_0x9250=function(_0x3a071b,_0x3cced5){_0x3a071b=_0x3a071b-0x0;let _0x925012=a462_0x3cce[_0x3a071b];return _0x925012;};const _0x32ea92=a462_0x9250;'use strict';const EventEmitter=require('events'),Notification=require(_0x32ea92('0x3'))['db'][_0x32ea92('0x6')],NotificationEvents=new EventEmitter();NotificationEvents[_0x32ea92('0x1')](0x0);const events={'afterCreate':_0x32ea92('0x2'),'afterUpdate':_0x32ea92('0x9'),'afterDestroy':_0x32ea92('0x7')};function emitEvent(_0x5f40a6){return function(_0xff239a){const _0x33584d=a462_0x9250;NotificationEvents[_0x33584d('0x0')](_0x5f40a6+':'+_0xff239a['id'],_0xff239a),NotificationEvents[_0x33584d('0x0')](_0x5f40a6,_0xff239a);};}for(const e in events){if(typeof events[e]!==_0x32ea92('0x4')){const event=events[e];Notification[_0x32ea92('0x5')](e,emitEvent(event));}}module[_0x32ea92('0x8')]=NotificationEvents; \ No newline at end of file diff --git a/server/api/notification/notification.model.js b/server/api/notification/notification.model.js index 1ed9bbe..69f187c 100644 --- a/server/api/notification/notification.model.js +++ b/server/api/notification/notification.model.js @@ -1 +1 @@ -const a463_0x3ec2=['notifications','exports','define','utf8mb4_unicode_ci','./notification.attributes','utf8mb4'];(function(_0x25f176,_0x3ec25d){const _0x681d31=function(_0x3d1bc1){while(--_0x3d1bc1){_0x25f176['push'](_0x25f176['shift']());}};_0x681d31(++_0x3ec25d);}(a463_0x3ec2,0x12b));const a463_0x681d=function(_0x25f176,_0x3ec25d){_0x25f176=_0x25f176-0x0;let _0x681d31=a463_0x3ec2[_0x25f176];return _0x681d31;};const _0x29722c=a463_0x681d;'use strict';const attributes=require(_0x29722c('0x5'));module[_0x29722c('0x2')]=function(_0x3d1bc1){const _0xa33785=_0x29722c,_0x1d97ef=_0x3d1bc1[_0xa33785('0x3')]('Notification',attributes,{'tableName':_0xa33785('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xa33785('0x0'),'collate':_0xa33785('0x4')});return _0x1d97ef;}; \ No newline at end of file +const a463_0x313b=['define','utf8mb4_unicode_ci','./notification.attributes','exports','notifications','utf8mb4'];(function(_0x1aabfb,_0x313b1c){const _0x2973da=function(_0x4055eb){while(--_0x4055eb){_0x1aabfb['push'](_0x1aabfb['shift']());}};_0x2973da(++_0x313b1c);}(a463_0x313b,0x9e));const a463_0x2973=function(_0x1aabfb,_0x313b1c){_0x1aabfb=_0x1aabfb-0x0;let _0x2973da=a463_0x313b[_0x1aabfb];return _0x2973da;};const _0x332d17=a463_0x2973;'use strict';const attributes=require(_0x332d17('0x0'));module[_0x332d17('0x1')]=function(_0x4055eb){const _0x4157d8=_0x332d17,_0x58db8e=_0x4055eb[_0x4157d8('0x4')]('Notification',attributes,{'tableName':_0x4157d8('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4157d8('0x3'),'collate':_0x4157d8('0x5')});return _0x58db8e;}; \ No newline at end of file diff --git a/server/api/notification/notification.rpc.js b/server/api/notification/notification.rpc.js index 92c7799..224eb22 100644 --- a/server/api/notification/notification.rpc.js +++ b/server/api/notification/notification.rpc.js @@ -1 +1 @@ -const a464_0x4782=['register','./notification.socket'];(function(_0x2cfe6b,_0x478284){const _0x3b7848=function(_0x544338){while(--_0x544338){_0x2cfe6b['push'](_0x2cfe6b['shift']());}};_0x3b7848(++_0x478284);}(a464_0x4782,0x192));const a464_0x3b78=function(_0x2cfe6b,_0x478284){_0x2cfe6b=_0x2cfe6b-0x0;let _0x3b7848=a464_0x4782[_0x2cfe6b];return _0x3b7848;};const _0x277d1b=a464_0x3b78;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x277d1b('0x1'))[_0x277d1b('0x0')](socket); \ No newline at end of file +const a464_0x51ac=['../../rediscache','register'];(function(_0x2a547f,_0x51ac70){const _0x47f9df=function(_0x1f73e4){while(--_0x1f73e4){_0x2a547f['push'](_0x2a547f['shift']());}};_0x47f9df(++_0x51ac70);}(a464_0x51ac,0x104));const a464_0x47f9=function(_0x2a547f,_0x51ac70){_0x2a547f=_0x2a547f-0x0;let _0x47f9df=a464_0x51ac[_0x2a547f];return _0x47f9df;};const _0x1df5f1=a464_0x47f9;'use strict';const {getSocket}=require(_0x1df5f1('0x0')),socket=getSocket();require('./notification.socket')[_0x1df5f1('0x1')](socket); \ No newline at end of file diff --git a/server/api/notification/notification.socket.js b/server/api/notification/notification.socket.js index ab26a1a..fe84951 100644 --- a/server/api/notification/notification.socket.js +++ b/server/api/notification/notification.socket.js @@ -1 +1 @@ -const a465_0x296d=['./notification.events','notification:','emit','register','update'];(function(_0x17a6cb,_0x296db5){const _0x540c57=function(_0x397870){while(--_0x397870){_0x17a6cb['push'](_0x17a6cb['shift']());}};_0x540c57(++_0x296db5);}(a465_0x296d,0x106));const a465_0x540c=function(_0x17a6cb,_0x296db5){_0x17a6cb=_0x17a6cb-0x0;let _0x540c57=a465_0x296d[_0x17a6cb];return _0x540c57;};const _0x512332=a465_0x540c;'use strict';const NotificationEvents=require(_0x512332('0x3')),events=['save','remove',_0x512332('0x2')];function createListener(_0x397870,_0x4c365c){return function(_0x1f38b3){const _0x4b1d38=a465_0x540c;_0x4c365c[_0x4b1d38('0x0')](_0x397870,_0x1f38b3);};}exports[_0x512332('0x1')]=function(_0x4d4856){const _0x1b7864=_0x512332;for(let _0x47ec61=0x0,_0x464ee7=events['length'];_0x47ec61<_0x464ee7;_0x47ec61++){const _0x57afa2=events[_0x47ec61],_0x36b0da=createListener(_0x1b7864('0x4')+_0x57afa2,_0x4d4856);NotificationEvents['on'](_0x57afa2,_0x36b0da);}}; \ No newline at end of file +const a465_0xbe8c=['./notification.events','emit','remove','register','length','notification:'];(function(_0x4d2660,_0xbe8c13){const _0x25b858=function(_0x18beb8){while(--_0x18beb8){_0x4d2660['push'](_0x4d2660['shift']());}};_0x25b858(++_0xbe8c13);}(a465_0xbe8c,0x1e2));const a465_0x25b8=function(_0x4d2660,_0xbe8c13){_0x4d2660=_0x4d2660-0x0;let _0x25b858=a465_0xbe8c[_0x4d2660];return _0x25b858;};const _0x1bb786=a465_0x25b8;'use strict';const NotificationEvents=require(_0x1bb786('0x4')),events=['save',_0x1bb786('0x0'),'update'];function createListener(_0x18beb8,_0x26f91d){return function(_0x4d5606){const _0x21a516=a465_0x25b8;_0x26f91d[_0x21a516('0x5')](_0x18beb8,_0x4d5606);};}exports[_0x1bb786('0x1')]=function(_0x373eae){const _0x4c8ab6=_0x1bb786;for(let _0x5850b4=0x0,_0x3b4d48=events[_0x4c8ab6('0x2')];_0x5850b4<_0x3b4d48;_0x5850b4++){const _0x34cfb5=events[_0x5850b4],_0x549459=createListener(_0x4c8ab6('0x3')+_0x34cfb5,_0x373eae);NotificationEvents['on'](_0x34cfb5,_0x549459);}}; \ No newline at end of file diff --git a/server/api/openchannelAccount/index.js b/server/api/openchannelAccount/index.js index 3424ced..cabd042 100644 --- a/server/api/openchannelAccount/index.js +++ b/server/api/openchannelAccount/index.js @@ -1 +1 @@ -const a466_0x18f4=['delete','destroy','post','express','getApplications','/:id/users','removeAgents','getDispositions','isAuthenticated','create','/:id','/:id/send','show','exports','removeAnswers','addApplications','notify','describe','get','/:id/applications','update','/:id/interactions','/:id/dispositions','removeDispositions','/describe','../../components/auth/service','addAgents','getAnswers','Router','put','/:id/notify','/:id/canned_answers'];(function(_0x5ef9b0,_0x18f45b){const _0x64b967=function(_0x8ab87b){while(--_0x8ab87b){_0x5ef9b0['push'](_0x5ef9b0['shift']());}};_0x64b967(++_0x18f45b);}(a466_0x18f4,0x164));const a466_0x64b9=function(_0x5ef9b0,_0x18f45b){_0x5ef9b0=_0x5ef9b0-0x0;let _0x64b967=a466_0x18f4[_0x5ef9b0];return _0x64b967;};const _0x53660f=a466_0x64b9;'use strict';const express=require(_0x53660f('0x1f')),router=express[_0x53660f('0x18')](),auth=require(_0x53660f('0x15')),controller=require('./openchannelAccount.controller');router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0x53660f('0xe')](_0x53660f('0x14'),auth[_0x53660f('0x4')](),controller[_0x53660f('0xd')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x53660f('0x8')]),router['get'](_0x53660f('0x12'),auth[_0x53660f('0x4')](),controller[_0x53660f('0x3')]),router['get'](_0x53660f('0x1b'),auth[_0x53660f('0x4')](),controller[_0x53660f('0x17')]),router[_0x53660f('0xe')]('/:id/applications',auth[_0x53660f('0x4')](),controller[_0x53660f('0x0')]),router[_0x53660f('0xe')](_0x53660f('0x11'),auth[_0x53660f('0x4')](),controller['getInteractions']),router['get'](_0x53660f('0x1'),auth[_0x53660f('0x4')](),controller['getAgents']),router[_0x53660f('0x1e')]('/',auth[_0x53660f('0x4')](),controller[_0x53660f('0x5')]),router[_0x53660f('0x1e')](_0x53660f('0x12'),auth[_0x53660f('0x4')](),controller['addDisposition']),router[_0x53660f('0x1e')]('/:id/canned_answers',auth['isAuthenticated'](),controller['addAnswer']),router[_0x53660f('0x1e')](_0x53660f('0x1a'),controller[_0x53660f('0xc')]),router[_0x53660f('0x1e')](_0x53660f('0xf'),auth[_0x53660f('0x4')](),controller[_0x53660f('0xb')]),router[_0x53660f('0x1e')](_0x53660f('0x1'),auth['isAuthenticated'](),controller[_0x53660f('0x16')]),router[_0x53660f('0x1e')](_0x53660f('0x7'),auth[_0x53660f('0x4')](),controller['send']),router[_0x53660f('0x19')](_0x53660f('0x6'),auth['isAuthenticated'](),controller[_0x53660f('0x10')]),router[_0x53660f('0x1c')](_0x53660f('0x6'),auth[_0x53660f('0x4')](),controller[_0x53660f('0x1d')]),router[_0x53660f('0x1c')](_0x53660f('0x12'),auth['isAuthenticated'](),controller[_0x53660f('0x13')]),router[_0x53660f('0x1c')](_0x53660f('0x1b'),auth[_0x53660f('0x4')](),controller[_0x53660f('0xa')]),router[_0x53660f('0x1c')]('/:id/users',auth[_0x53660f('0x4')](),controller[_0x53660f('0x2')]),module[_0x53660f('0x9')]=router; \ No newline at end of file +const a466_0x2e8e=['/:id/canned_answers','removeAgents','notify','addDisposition','show','/:id/dispositions','put','/:id/users','update','Router','/:id/interactions','/:id/applications','exports','delete','/:id','describe','isAuthenticated','getApplications','index','/describe','getAnswers','post','getAgents','removeDispositions','get','getDispositions','removeAnswers','addAgents','addAnswer','/:id/notify'];(function(_0x5e24ab,_0x2e8e87){const _0xd41cfb=function(_0x5c8df5){while(--_0x5c8df5){_0x5e24ab['push'](_0x5e24ab['shift']());}};_0xd41cfb(++_0x2e8e87);}(a466_0x2e8e,0x95));const a466_0xd41c=function(_0x5e24ab,_0x2e8e87){_0x5e24ab=_0x5e24ab-0x0;let _0xd41cfb=a466_0x2e8e[_0x5e24ab];return _0xd41cfb;};const _0x1a9d44=a466_0xd41c;'use strict';const express=require('express'),router=express[_0x1a9d44('0xa')](),auth=require('../../components/auth/service'),controller=require('./openchannelAccount.controller');router['get']('/',auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x13')]),router[_0x1a9d44('0x19')](_0x1a9d44('0x14'),auth['isAuthenticated'](),controller[_0x1a9d44('0x10')]),router[_0x1a9d44('0x19')](_0x1a9d44('0xf'),auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x5')]),router['get'](_0x1a9d44('0x6'),auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x1a')]),router['get'](_0x1a9d44('0x1'),auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x15')]),router['get']('/:id/applications',auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x12')]),router[_0x1a9d44('0x19')](_0x1a9d44('0xb'),auth[_0x1a9d44('0x11')](),controller['getInteractions']),router['get']('/:id/users',auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x17')]),router[_0x1a9d44('0x16')]('/',auth[_0x1a9d44('0x11')](),controller['create']),router[_0x1a9d44('0x16')](_0x1a9d44('0x6'),auth['isAuthenticated'](),controller[_0x1a9d44('0x4')]),router['post'](_0x1a9d44('0x1'),auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x1d')]),router['post'](_0x1a9d44('0x0'),controller[_0x1a9d44('0x3')]),router[_0x1a9d44('0x16')](_0x1a9d44('0xc'),auth[_0x1a9d44('0x11')](),controller['addApplications']),router[_0x1a9d44('0x16')](_0x1a9d44('0x8'),auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x1c')]),router[_0x1a9d44('0x16')]('/:id/send',auth[_0x1a9d44('0x11')](),controller['send']),router[_0x1a9d44('0x7')](_0x1a9d44('0xf'),auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x9')]),router[_0x1a9d44('0xe')](_0x1a9d44('0xf'),auth['isAuthenticated'](),controller['destroy']),router[_0x1a9d44('0xe')](_0x1a9d44('0x6'),auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x18')]),router[_0x1a9d44('0xe')](_0x1a9d44('0x1'),auth[_0x1a9d44('0x11')](),controller[_0x1a9d44('0x1b')]),router[_0x1a9d44('0xe')]('/:id/users',auth['isAuthenticated'](),controller[_0x1a9d44('0x2')]),module[_0x1a9d44('0xd')]=router; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.attributes.js b/server/api/openchannelAccount/openchannelAccount.attributes.js index 7e40cbb..7e7dd60 100644 --- a/server/api/openchannelAccount/openchannelAccount.attributes.js +++ b/server/api/openchannelAccount/openchannelAccount.attributes.js @@ -1 +1 @@ -const a467_0x1214=['BOOLEAN','exports','generate','STRING','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','name','mandatoryDisposition','randomstring','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','setDataValue','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','INTEGER'];(function(_0x2667c9,_0x121425){const _0xe0e31c=function(_0xab2034){while(--_0xab2034){_0x2667c9['push'](_0x2667c9['shift']());}};_0xe0e31c(++_0x121425);}(a467_0x1214,0x19b));const a467_0xe0e3=function(_0x2667c9,_0x121425){_0x2667c9=_0x2667c9-0x0;let _0xe0e31c=a467_0x1214[_0x2667c9];return _0xe0e31c;};const _0x484e71=a467_0xe0e3;'use strict';const Sequelize=require('sequelize'),rs=require(_0x484e71('0xc'));module[_0x484e71('0x6')]={'name':{'type':Sequelize[_0x484e71('0x8')],'unique':_0x484e71('0xa'),'allowNull':![]},'description':{'type':Sequelize[_0x484e71('0x8')]},'token':{'type':Sequelize[_0x484e71('0x8')],'defaultValue':function(){const _0x522f81=_0x484e71;return rs[_0x522f81('0x7')]();}},'replyUri':{'type':Sequelize['STRING'],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x484e71('0x8')],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0xeb8c1a=_0x484e71;return _0xeb8c1a('0x9');}},'notificationSound':{'type':Sequelize[_0x484e71('0x5')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x484e71('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x484e71('0x8')]},'queueTransfer':{'type':Sequelize[_0x484e71('0x5')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x484e71('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x484e71('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':_0x484e71('0x3')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x484e71('0x0'),'set':function(_0xab2034){const _0x3056b6=_0x484e71;if(!_0xab2034)this[_0x3056b6('0x2')](_0x3056b6('0x1'),null);this[_0x3056b6('0x2')](_0x3056b6('0xb'),_0xab2034);}}}; \ No newline at end of file +const a467_0x17be=['Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','INTEGER','BOOLEAN','randomstring','mandatoryDisposition','setDataValue','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','STRING','exports','mandatoryDispositionPauseId','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','generate'];(function(_0x1f6a55,_0x17be07){const _0x1e43d1=function(_0x3e07b2){while(--_0x3e07b2){_0x1f6a55['push'](_0x1f6a55['shift']());}};_0x1e43d1(++_0x17be07);}(a467_0x17be,0xf2));const a467_0x1e43=function(_0x1f6a55,_0x17be07){_0x1f6a55=_0x1f6a55-0x0;let _0x1e43d1=a467_0x17be[_0x1f6a55];return _0x1e43d1;};const _0x2cdb22=a467_0x1e43;'use strict';const Sequelize=require('sequelize'),rs=require(_0x2cdb22('0x1'));module[_0x2cdb22('0x6')]={'name':{'type':Sequelize[_0x2cdb22('0x5')],'unique':'name','allowNull':![]},'description':{'type':Sequelize[_0x2cdb22('0x5')]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){const _0xbba982=_0x2cdb22;return rs[_0xbba982('0x9')]();}},'replyUri':{'type':Sequelize[_0x2cdb22('0x5')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize['STRING'],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x5c5a7b=_0x2cdb22;return _0x5c5a7b('0xa');}},'notificationSound':{'type':Sequelize[_0x2cdb22('0x0')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize['STRING']},'queueTransfer':{'type':Sequelize[_0x2cdb22('0x0')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x2cdb22('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x2cdb22('0x0')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x2cdb22('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x2cdb22('0xb')],'allowNull':!![],'defaultValue':null,'comment':_0x2cdb22('0x8')},'mandatoryDisposition':{'type':Sequelize[_0x2cdb22('0x0')],'defaultValue':![],'comment':_0x2cdb22('0x4'),'set':function(_0x3e07b2){const _0x50ee4=_0x2cdb22;if(!_0x3e07b2)this[_0x50ee4('0x3')](_0x50ee4('0x7'),null);this[_0x50ee4('0x3')](_0x50ee4('0x2'),_0x3e07b2);}}}; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.controller.js b/server/api/openchannelAccount/openchannelAccount.controller.js index a55fbfe..f8ad02c 100644 --- a/server/api/openchannelAccount/openchannelAccount.controller.js +++ b/server/api/openchannelAccount/openchannelAccount.controller.js @@ -1 +1 @@ -const a468_0x4dad=['Sequelize','mandatoryDispositionPause','push','jayson/promise','Applications','ids','OpenchannelInteraction','defaults','body','keys','type','agent','model','ListId','status','count','filters','CompanyId','from','tag','isArray','include','role','OpenchannelApplication','undefined','threadId','created','user','removeDispositions','out','attributes','interaction','Disposition','merge','OpenchannelMessage','offset','query','from\x20is\x20mandatory','sendStatus','json','pick','VIRTUAL','difference','emit','firstName','name','info','forcedOwnership','destroy','CannedAnswer','lastName','Start','limit','filter','*,*,*,*','Tag','removeAgents','stack','Contacts','autoAssociation','describe','messageId','where','like','Contact','OpenchannelAccounts','fields','message','OpenchannelAccount,\x20%s,\x20%s,\x20%s','addAnswer','Pause','order','unmanaged','createdAt','addDisposition','options','getDispositions','catch','includeAll','addAgents','../../components/parsers/qs','create','OpenchannelAccount','notify','set','end','sequelize','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','fullname','close','lodash','OpenchannelAccount,\x20%s,\x20%s','externalUrl','removeAnswers','then','intersection','api','update','getAgents','omit','request\x20sent','map','EventManager','get','getAnswers','dataValues','priority','applications','userOpenchannelAccount:save','request','nolimit','rows','getApplications','Messages','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','code','UserId','isNil','transaction','userOpenchannelAccount:remove','debug','sort','fieldName','stringify','User','send','params','openchannel','error','OpenchannelAccountId','Owner','AttachmentId','client','contact','rawAttributes','findAll','updatedAt','../../config/logger','Tags','startRouting','List','account','autoclose','findAndCountAll','length','CmList','ValidationError','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','userProfileId','body\x20is\x20mandatory\x20and\x20not\x20empty','CmContact','findOne','mapKey','UserProfileResource'];(function(_0x507f78,_0x4dad2b){const _0x468dfa=function(_0x3cf547){while(--_0x3cf547){_0x507f78['push'](_0x507f78['shift']());}};_0x468dfa(++_0x4dad2b);}(a468_0x4dad,0xb2));const a468_0x468d=function(_0x507f78,_0x4dad2b){_0x507f78=_0x507f78-0x0;let _0x468dfa=a468_0x4dad[_0x507f78];return _0x468dfa;};const _0x203747=a468_0x468d;'use strict';const _=require(_0x203747('0x42')),qs=require(_0x203747('0x38')),logger=require(_0x203747('0x71'))(_0x203747('0x48')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x203747('0x3e'));require('./openchannelAccount.socket')['register'](socket);const jayson=require(_0x203747('0x85')),client=jayson[_0x203747('0x6c')]['http']({'port':0x232c}),client9002=jayson[_0x203747('0x6c')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3cf547,_0x2e115f,_0x5dade7,_0x5d0d04){return new Promise(function(_0x1f7d66,_0xb3b9f){const _0x5e7815=a468_0x468d,_0x1d6cc7=_0x5d0d04||client;return _0x1d6cc7[_0x5e7815('0x55')](_0x3cf547,_0x5dade7)['then'](function(_0x54026e){const _0x51c875=_0x5e7815;logger['info'](_0x51c875('0x43'),_0x2e115f,'request\x20sent'),logger[_0x51c875('0x60')](_0x51c875('0x2c'),_0x2e115f,_0x51c875('0x4c'),JSON[_0x51c875('0x63')](_0x54026e));if(_0x54026e[_0x51c875('0x68')]){if(_0x54026e[_0x51c875('0x68')][_0x51c875('0x5b')]===0x1f4)return logger[_0x51c875('0x68')](_0x51c875('0x43'),_0x2e115f,_0x54026e[_0x51c875('0x68')][_0x51c875('0x2b')]),_0xb3b9f(_0x54026e[_0x51c875('0x68')][_0x51c875('0x2b')]);return logger[_0x51c875('0x68')](_0x51c875('0x43'),_0x2e115f,_0x54026e[_0x51c875('0x68')][_0x51c875('0x2b')]),_0x1f7d66(_0x54026e['error']['message']);}else logger[_0x51c875('0x16')](_0x51c875('0x43'),_0x2e115f,_0x51c875('0x4c')),_0x1f7d66(_0x54026e['result'][_0x51c875('0x2b')]);})[_0x5e7815('0x35')](function(_0x53aa82){const _0x3e0ff7=_0x5e7815;logger[_0x3e0ff7('0x68')](_0x3e0ff7('0x43'),_0x2e115f,_0x53aa82),_0xb3b9f(_0x53aa82);});});}function respondWithStatusCode(_0x1a5fca,_0x109e7e){return _0x109e7e=_0x109e7e||0xcc,function(_0x398b38){const _0x442909=a468_0x468d;if(_0x398b38)return _0x1a5fca[_0x442909('0xe')](_0x109e7e);return _0x1a5fca['status'](_0x109e7e)['end']();};}function respondWithResult(_0x1b41ab,_0x483e6f){return _0x483e6f=_0x483e6f||0xc8,function(_0x33be84){const _0x3818dd=a468_0x468d;if(_0x33be84)return _0x1b41ab[_0x3818dd('0x90')](_0x483e6f)[_0x3818dd('0xf')](_0x33be84);};}function respondWithFilteredResult(_0x5a91c2,_0x3085cc){return function(_0x2072a1){const _0xdac569=a468_0x468d;if(_0x2072a1){const _0x74541a=_0x2072a1[_0xdac569('0x91')],_0x4cc717=_0x3085cc[_0xdac569('0xb')];let _0x31e905=_0x3085cc[_0xdac569('0xb')]+_0x3085cc['limit'],_0x402a97;return _0x31e905>=_0x74541a?(_0x31e905=_0x74541a,_0x402a97=0xc8):_0x402a97=0xce,_0x5a91c2[_0xdac569('0x90')](_0x402a97),_0x5a91c2[_0xdac569('0x3c')]('Content-Range',_0x4cc717+'-'+_0x31e905+'/'+_0x74541a)['json'](_0x2072a1);}return null;};}function saveUpdates(_0x16fe39){return function(_0x232f53){const _0x476fe1=a468_0x468d;if(_0x232f53)return _0x232f53[_0x476fe1('0x49')](_0x16fe39)[_0x476fe1('0x46')](function(_0x12ac38){return _0x12ac38;});return null;};}function removeEntity(_0x1a2ea){return function(_0x2cf846){const _0x4cc904=a468_0x468d;if(_0x2cf846)return _0x2cf846[_0x4cc904('0x18')]()[_0x4cc904('0x46')](function(){const _0x41b0ae=_0x4cc904,_0x59c1dd=_0x2cf846[_0x41b0ae('0x4f')]({'plain':!![]}),_0x3ffe06=_0x41b0ae('0x29');return db[_0x41b0ae('0x81')][_0x41b0ae('0x18')]({'where':{'type':_0x3ffe06,'resourceId':_0x59c1dd['id']}})[_0x41b0ae('0x46')](function(){return _0x2cf846;});})[_0x4cc904('0x46')](function(){const _0x56d34e=_0x4cc904;_0x1a2ea[_0x56d34e('0x90')](0xcc)[_0x56d34e('0x3d')]();});};}function handleEntityNotFound(_0x2c192a){return function(_0x1ca886){const _0x4d3737=a468_0x468d;return!_0x1ca886&&_0x2c192a[_0x4d3737('0xe')](0x194),_0x1ca886;};}function handleError(_0x5c6e40,_0x2c77f4){return _0x2c77f4=_0x2c77f4||0x1f4,function(_0x4c032e){const _0x526733=a468_0x468d;logger[_0x526733('0x68')](_0x4c032e[_0x526733('0x21')]),_0x4c032e[_0x526733('0x15')]&&delete _0x4c032e[_0x526733('0x15')],_0x5c6e40['status'](_0x2c77f4)[_0x526733('0x65')](_0x4c032e);};}exports['index']=function(_0x4a42d2,_0x309ce3){const _0x25b110=_0x203747;let _0xb0c483={'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x533099={},_0xc9b5e0={'count':0x0,'rows':[]},_0x3a19d8=_[_0x25b110('0x4d')](db[_0x25b110('0x3a')][_0x25b110('0x6e')],function(_0x16342b){const _0x57ffa0=_0x25b110;return{'name':_0x16342b[_0x57ffa0('0x62')],'type':_0x16342b[_0x57ffa0('0x8c')]['key']};});_0x533099[_0x25b110('0x8e')]=_[_0x25b110('0x4d')](_0x3a19d8,_0x25b110('0x15')),_0x533099[_0x25b110('0xc')]=_[_0x25b110('0x8b')](_0x4a42d2[_0x25b110('0xc')]),_0x533099['filters']=_[_0x25b110('0x47')](_0x533099['model'],_0x533099[_0x25b110('0xc')]),_0xb0c483['attributes']=_[_0x25b110('0x47')](_0x533099[_0x25b110('0x8e')],qs['fields'](_0x4a42d2[_0x25b110('0xc')][_0x25b110('0x2a')])),_0xb0c483[_0x25b110('0x6')]=_0xb0c483[_0x25b110('0x6')][_0x25b110('0x78')]?_0xb0c483['attributes']:_0x533099[_0x25b110('0x8e')];typeof _0x4a42d2[_0x25b110('0xc')]['nolimit']===_0x25b110('0x0')&&(_0xb0c483[_0x25b110('0x1c')]=qs[_0x25b110('0x1c')](_0x4a42d2['query']['limit']),_0xb0c483[_0x25b110('0xb')]=qs[_0x25b110('0xb')](_0x4a42d2[_0x25b110('0xc')][_0x25b110('0xb')]));_0xb0c483['order']=qs['sort'](_0x4a42d2[_0x25b110('0xc')]['sort']),_0xb0c483[_0x25b110('0x26')]=qs['filters'](_[_0x25b110('0x10')](_0x4a42d2[_0x25b110('0xc')],_0x533099[_0x25b110('0x92')]),_0x3a19d8);_0x4a42d2['query']['filter']&&(_0xb0c483[_0x25b110('0x26')]=_[_0x25b110('0x9')](_0xb0c483[_0x25b110('0x26')],{[Op['or']]:_[_0x25b110('0x4d')](_0x3a19d8,function(_0xcb3740){const _0x31c413=_0x25b110;if(_0xcb3740[_0x31c413('0x8c')]!==_0x31c413('0x11')){const _0x373a4d={};return _0x373a4d[_0xcb3740[_0x31c413('0x15')]]={[Op[_0x31c413('0x27')]]:'%'+_0x4a42d2['query'][_0x31c413('0x1d')]+'%'},_0x373a4d;}})}));_0xb0c483=_['merge']({},_0xb0c483,_0x4a42d2[_0x25b110('0x33')]);const _0x5e1030={'where':_0xb0c483['where']};return db[_0x25b110('0x3a')][_0x25b110('0x91')](_0x5e1030)[_0x25b110('0x46')](function(_0x18b671){const _0x2f8b7a=_0x25b110;return _0xc9b5e0[_0x2f8b7a('0x91')]=_0x18b671,_0x4a42d2[_0x2f8b7a('0xc')][_0x2f8b7a('0x36')]&&(_0xb0c483[_0x2f8b7a('0x97')]=[{'all':!![]}]),db['OpenchannelAccount'][_0x2f8b7a('0x6f')](_0xb0c483);})[_0x25b110('0x46')](function(_0x559b16){const _0x1da389=_0x25b110;return _0xc9b5e0[_0x1da389('0x57')]=_0x559b16,_0xc9b5e0;})[_0x25b110('0x46')](respondWithFilteredResult(_0x309ce3,_0xb0c483))[_0x25b110('0x35')](handleError(_0x309ce3,null));},exports['show']=function(_0x48fa5d,_0xa8d6b0){const _0x4e7c4d=_0x203747;let _0x4801f3={'raw':![],'where':{'id':_0x48fa5d['params']['id']},'include':[{'model':db[_0x4e7c4d('0x2e')],'as':_0x4e7c4d('0x83')}]};const _0x2aae48={};return _0x2aae48[_0x4e7c4d('0x8e')]=_[_0x4e7c4d('0x8b')](db[_0x4e7c4d('0x3a')][_0x4e7c4d('0x6e')]),_0x2aae48[_0x4e7c4d('0xc')]=_[_0x4e7c4d('0x8b')](_0x48fa5d[_0x4e7c4d('0xc')]),_0x2aae48['filters']=_['intersection'](_0x2aae48[_0x4e7c4d('0x8e')],_0x2aae48[_0x4e7c4d('0xc')]),_0x4801f3[_0x4e7c4d('0x6')]=_[_0x4e7c4d('0x47')](_0x2aae48[_0x4e7c4d('0x8e')],qs[_0x4e7c4d('0x2a')](_0x48fa5d[_0x4e7c4d('0xc')][_0x4e7c4d('0x2a')])),_0x4801f3[_0x4e7c4d('0x6')]=_0x4801f3['attributes'][_0x4e7c4d('0x78')]?_0x4801f3[_0x4e7c4d('0x6')]:_0x2aae48['model'],_0x48fa5d[_0x4e7c4d('0xc')][_0x4e7c4d('0x36')]&&(_0x4801f3[_0x4e7c4d('0x97')]=[{'all':!![]}]),_0x4801f3=_[_0x4e7c4d('0x9')]({},_0x4801f3,_0x48fa5d[_0x4e7c4d('0x33')]),db[_0x4e7c4d('0x3a')][_0x4e7c4d('0x7f')](_0x4801f3)['then'](handleEntityNotFound(_0xa8d6b0,null))[_0x4e7c4d('0x46')](respondWithResult(_0xa8d6b0,null))[_0x4e7c4d('0x35')](handleError(_0xa8d6b0,null));},exports['create']=function(_0xc69165,_0x1674dc){const _0x3cff8c=_0x203747;return db[_0x3cff8c('0x3a')]['create'](_0xc69165[_0x3cff8c('0x8a')],{})[_0x3cff8c('0x46')](function(_0x3afaec){const _0x35ad0e=_0x3cff8c,_0x4b06ab=_0xc69165[_0x35ad0e('0x3')][_0x35ad0e('0x4f')]({'plain':!![]});if(!_0x4b06ab)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x4b06ab[_0x35ad0e('0x98')]===_0x35ad0e('0x3')){const _0x110498=_0x3afaec['get']({'plain':!![]}),_0x5db0af=_0x35ad0e('0x29');return db['UserProfileSection'][_0x35ad0e('0x7f')]({'where':{'name':_0x5db0af,'userProfileId':_0x4b06ab[_0x35ad0e('0x7c')]},'raw':!![]})[_0x35ad0e('0x46')](function(_0x7654be){const _0x1ae6d9=_0x35ad0e;return _0x7654be&&_0x7654be[_0x1ae6d9('0x23')]===0x0?db['UserProfileResource'][_0x1ae6d9('0x39')]({'name':_0x110498[_0x1ae6d9('0x15')],'resourceId':_0x110498['id'],'type':_0x7654be[_0x1ae6d9('0x15')],'sectionId':_0x7654be['id']},{})[_0x1ae6d9('0x46')](function(){return _0x3afaec;}):_0x3afaec;})['catch'](function(_0x52c0d0){const _0x493fbd=_0x35ad0e;logger['error'](_0x493fbd('0x3f'),_0x52c0d0);throw _0x52c0d0;});}return _0x3afaec;})['then'](respondWithResult(_0x1674dc,0xc9))[_0x3cff8c('0x35')](handleError(_0x1674dc,null));},exports[_0x203747('0x49')]=function(_0x583dfd,_0x41d923){const _0x815c71=_0x203747;return _0x583dfd[_0x815c71('0x8a')]['id']&&delete _0x583dfd[_0x815c71('0x8a')]['id'],db[_0x815c71('0x3a')][_0x815c71('0x7f')]({'where':{'id':_0x583dfd[_0x815c71('0x66')]['id']},'include':[{'model':db[_0x815c71('0x2e')],'as':'mandatoryDispositionPause'}]})['then'](handleEntityNotFound(_0x41d923,null))[_0x815c71('0x46')](saveUpdates(_0x583dfd['body'],null))[_0x815c71('0x46')](respondWithResult(_0x41d923,null))[_0x815c71('0x35')](handleError(_0x41d923,null));},exports[_0x203747('0x18')]=function(_0x4b5a4d,_0x34a821){const _0x5bb59e=_0x203747;return db['OpenchannelAccount'][_0x5bb59e('0x7f')]({'where':{'id':_0x4b5a4d[_0x5bb59e('0x66')]['id']}})[_0x5bb59e('0x46')](handleEntityNotFound(_0x34a821,null))[_0x5bb59e('0x46')](removeEntity(_0x34a821,null))[_0x5bb59e('0x35')](handleError(_0x34a821,null));},exports[_0x203747('0x24')]=function(_0x183ba8,_0x41d05a){const _0x224f4b=_0x203747;return db['OpenchannelAccount'][_0x224f4b('0x24')]()['then'](respondWithResult(_0x41d05a,null))[_0x224f4b('0x35')](handleError(_0x41d05a,null));},exports[_0x203747('0x32')]=function(_0xbf1970,_0x3de8ff){const _0x3f3644=_0x203747;return _0xbf1970[_0x3f3644('0x8a')]['id']&&delete _0xbf1970[_0x3f3644('0x8a')]['id'],db[_0x3f3644('0x3a')][_0x3f3644('0x7f')]({'where':{'id':_0xbf1970[_0x3f3644('0x66')]['id']}})['then'](handleEntityNotFound(_0x3de8ff,null))[_0x3f3644('0x46')](function(_0x1906c5){const _0x486218=_0x3f3644;if(_0x1906c5)return _0xbf1970[_0x486218('0x8a')][_0x486218('0x69')]=_0x1906c5['id'],db[_0x486218('0x8')][_0x486218('0x39')](_0xbf1970[_0x486218('0x8a')]);})['then'](respondWithResult(_0x3de8ff,null))[_0x3f3644('0x35')](handleError(_0x3de8ff,null));},exports[_0x203747('0x34')]=function(_0x494929,_0x2e604d){const _0x10ab5c=_0x203747;let _0x2a7112={'raw':![],'where':{}};const _0x178ac4={},_0x59ac88={'count':0x0,'rows':[]};return db[_0x10ab5c('0x3a')][_0x10ab5c('0x7f')]({'where':{'id':_0x494929['params']['id']}})[_0x10ab5c('0x46')](handleEntityNotFound(_0x2e604d,null))[_0x10ab5c('0x46')](function(_0x48ca63){const _0x5b33cc=_0x10ab5c;if(_0x48ca63)return _0x178ac4[_0x5b33cc('0x8e')]=_[_0x5b33cc('0x8b')](db[_0x5b33cc('0x8')][_0x5b33cc('0x6e')]),_0x178ac4[_0x5b33cc('0xc')]=_['keys'](_0x494929[_0x5b33cc('0xc')]),_0x178ac4['filters']=_[_0x5b33cc('0x47')](_0x178ac4['model'],_0x178ac4['query']),_0x2a7112[_0x5b33cc('0x6')]=_[_0x5b33cc('0x47')](_0x178ac4[_0x5b33cc('0x8e')],qs['fields'](_0x494929[_0x5b33cc('0xc')][_0x5b33cc('0x2a')])),_0x2a7112[_0x5b33cc('0x6')]=_0x2a7112[_0x5b33cc('0x6')][_0x5b33cc('0x78')]?_0x2a7112['attributes']:_0x178ac4[_0x5b33cc('0x8e')],typeof _0x494929[_0x5b33cc('0xc')][_0x5b33cc('0x56')]==='undefined'&&(_0x2a7112[_0x5b33cc('0x1c')]=qs[_0x5b33cc('0x1c')](_0x494929[_0x5b33cc('0xc')][_0x5b33cc('0x1c')]),_0x2a7112['offset']=qs[_0x5b33cc('0xb')](_0x494929[_0x5b33cc('0xc')]['offset'])),_0x2a7112[_0x5b33cc('0x2f')]=qs[_0x5b33cc('0x61')](_0x494929[_0x5b33cc('0xc')]['sort']),_0x2a7112[_0x5b33cc('0x26')]=qs[_0x5b33cc('0x92')](_['pick'](_0x494929[_0x5b33cc('0xc')],_0x178ac4['filters'])),_0x2a7112[_0x5b33cc('0x26')]['OpenchannelAccountId']=_0x48ca63['id'],_0x494929[_0x5b33cc('0xc')][_0x5b33cc('0x1d')]&&(_0x2a7112[_0x5b33cc('0x26')]=_[_0x5b33cc('0x9')](_0x2a7112[_0x5b33cc('0x26')],{[Op['or']]:_[_0x5b33cc('0x4d')](_0x2a7112[_0x5b33cc('0x6')],function(_0x4fb78d){const _0x583a8a=_0x5b33cc,_0x492b67={};return _0x492b67[_0x4fb78d]={[Op['like']]:'%'+_0x494929['query'][_0x583a8a('0x1d')]+'%'},_0x492b67;})})),_0x2a7112=_['merge']({},_0x2a7112,_0x494929[_0x5b33cc('0x33')]),db['Disposition'][_0x5b33cc('0x91')]({'where':_0x2a7112[_0x5b33cc('0x26')]})['then'](function(_0x41fb86){const _0x52aa09=_0x5b33cc;return _0x59ac88[_0x52aa09('0x91')]=_0x41fb86,_0x494929[_0x52aa09('0xc')][_0x52aa09('0x36')]&&(_0x2a7112['include']=[{'all':!![]}]),db[_0x52aa09('0x8')][_0x52aa09('0x6f')](_0x2a7112);})['then'](function(_0x37e702){const _0x261783=_0x5b33cc;return _0x59ac88[_0x261783('0x57')]=_0x37e702,_0x59ac88;});})['then'](respondWithFilteredResult(_0x2e604d,_0x2a7112))['catch'](handleError(_0x2e604d,null));},exports[_0x203747('0x4')]=function(_0x13368d,_0x5f02e0){const _0x4257fc=_0x203747;return db[_0x4257fc('0x3a')]['findOne']({'where':{'id':_0x13368d[_0x4257fc('0x66')]['id']}})[_0x4257fc('0x46')](handleEntityNotFound(_0x5f02e0,null))['then'](function(_0x1f762b){const _0x11a295=_0x4257fc;if(_0x1f762b)return _0x1f762b[_0x11a295('0x4')](_0x13368d[_0x11a295('0xc')][_0x11a295('0x87')]);})[_0x4257fc('0x46')](respondWithStatusCode(_0x5f02e0,null))[_0x4257fc('0x35')](handleError(_0x5f02e0,null));},exports[_0x203747('0x2d')]=function(_0x5e77ee,_0x4389e9){const _0x100201=_0x203747;return _0x5e77ee[_0x100201('0x8a')]['id']&&delete _0x5e77ee[_0x100201('0x8a')]['id'],db[_0x100201('0x3a')][_0x100201('0x7f')]({'where':{'id':_0x5e77ee['params']['id']}})[_0x100201('0x46')](handleEntityNotFound(_0x4389e9,null))[_0x100201('0x46')](function(_0x5ba1b1){const _0x3fa64f=_0x100201;if(_0x5ba1b1)return _0x5e77ee[_0x3fa64f('0x8a')][_0x3fa64f('0x69')]=_0x5ba1b1['id'],db[_0x3fa64f('0x19')][_0x3fa64f('0x39')](_0x5e77ee[_0x3fa64f('0x8a')]);})[_0x100201('0x46')](respondWithResult(_0x4389e9,null))['catch'](handleError(_0x4389e9,null));},exports[_0x203747('0x50')]=function(_0x51dd0a,_0x182002){const _0x4278f9=_0x203747;let _0xf9963e={'raw':![],'where':{}};const _0x12cadf={},_0x570f46={'count':0x0,'rows':[]};return db[_0x4278f9('0x3a')][_0x4278f9('0x7f')]({'where':{'id':_0x51dd0a['params']['id']}})[_0x4278f9('0x46')](handleEntityNotFound(_0x182002,null))['then'](function(_0xe4026a){const _0x1c8eaf=_0x4278f9;if(_0xe4026a)return _0x12cadf[_0x1c8eaf('0x8e')]=_[_0x1c8eaf('0x8b')](db[_0x1c8eaf('0x19')][_0x1c8eaf('0x6e')]),_0x12cadf['query']=_[_0x1c8eaf('0x8b')](_0x51dd0a[_0x1c8eaf('0xc')]),_0x12cadf[_0x1c8eaf('0x92')]=_[_0x1c8eaf('0x47')](_0x12cadf[_0x1c8eaf('0x8e')],_0x12cadf['query']),_0xf9963e[_0x1c8eaf('0x6')]=_['intersection'](_0x12cadf['model'],qs[_0x1c8eaf('0x2a')](_0x51dd0a['query'][_0x1c8eaf('0x2a')])),_0xf9963e['attributes']=_0xf9963e[_0x1c8eaf('0x6')][_0x1c8eaf('0x78')]?_0xf9963e[_0x1c8eaf('0x6')]:_0x12cadf[_0x1c8eaf('0x8e')],typeof _0x51dd0a[_0x1c8eaf('0xc')][_0x1c8eaf('0x56')]==='undefined'&&(_0xf9963e['limit']=qs[_0x1c8eaf('0x1c')](_0x51dd0a[_0x1c8eaf('0xc')][_0x1c8eaf('0x1c')]),_0xf9963e[_0x1c8eaf('0xb')]=qs[_0x1c8eaf('0xb')](_0x51dd0a[_0x1c8eaf('0xc')][_0x1c8eaf('0xb')])),_0xf9963e[_0x1c8eaf('0x2f')]=qs[_0x1c8eaf('0x61')](_0x51dd0a['query'][_0x1c8eaf('0x61')]),_0xf9963e[_0x1c8eaf('0x26')]=qs['filters'](_[_0x1c8eaf('0x10')](_0x51dd0a['query'],_0x12cadf['filters'])),_0xf9963e[_0x1c8eaf('0x26')][_0x1c8eaf('0x69')]=_0xe4026a['id'],_0x51dd0a[_0x1c8eaf('0xc')][_0x1c8eaf('0x1d')]&&(_0xf9963e[_0x1c8eaf('0x26')]=_['merge'](_0xf9963e['where'],{[Op['or']]:_['map'](_0xf9963e[_0x1c8eaf('0x6')],function(_0x1a5152){const _0x5557f4=_0x1c8eaf,_0x70b840={};return _0x70b840[_0x1a5152]={[Op['like']]:'%'+_0x51dd0a[_0x5557f4('0xc')][_0x5557f4('0x1d')]+'%'},_0x70b840;})})),_0xf9963e=_[_0x1c8eaf('0x9')]({},_0xf9963e,_0x51dd0a[_0x1c8eaf('0x33')]),db[_0x1c8eaf('0x19')][_0x1c8eaf('0x91')]({'where':_0xf9963e[_0x1c8eaf('0x26')]})['then'](function(_0x45c4fe){const _0x37949b=_0x1c8eaf;return _0x570f46[_0x37949b('0x91')]=_0x45c4fe,_0x51dd0a[_0x37949b('0xc')][_0x37949b('0x36')]&&(_0xf9963e[_0x37949b('0x97')]=[{'all':!![]}]),db[_0x37949b('0x19')][_0x37949b('0x6f')](_0xf9963e);})[_0x1c8eaf('0x46')](function(_0x1dadb8){const _0x2ee5cf=_0x1c8eaf;return _0x570f46[_0x2ee5cf('0x57')]=_0x1dadb8,_0x570f46;});})['then'](respondWithFilteredResult(_0x182002,_0xf9963e))[_0x4278f9('0x35')](handleError(_0x182002,null));},exports[_0x203747('0x45')]=function(_0x4910e1,_0x1af244){const _0x293704=_0x203747;return db[_0x293704('0x3a')][_0x293704('0x7f')]({'where':{'id':_0x4910e1[_0x293704('0x66')]['id']}})[_0x293704('0x46')](handleEntityNotFound(_0x1af244,null))['then'](function(_0xb9d806){const _0x537271=_0x293704;if(_0xb9d806)return _0xb9d806['removeAnswers'](_0x4910e1[_0x537271('0xc')][_0x537271('0x87')]);})['then'](respondWithStatusCode(_0x1af244,null))[_0x293704('0x35')](handleError(_0x1af244,null));},exports[_0x203747('0x3b')]=function(_0x431d9c,_0x66cd9){const _0x51407b=_0x203747,_0x15e2ba={'body':_0x431d9c['body'],'channel':_0x51407b('0x67')};let _0x2efcf7=[],_0x91e428=[];const _0x2b4bb7={};let _0x4cb4b2=![];return db[_0x51407b('0x7e')][_0x51407b('0x24')]()[_0x51407b('0x46')](function(_0x5ad41a){const _0x1c8381=_0x51407b;if(!_0x5ad41a)throw new db[(_0x1c8381('0x82'))]['ValidationError']('no\x20available\x20attributes');_0x2efcf7=_[_0x1c8381('0x12')](_[_0x1c8381('0x8b')](_0x5ad41a),[_0x1c8381('0x31'),_0x1c8381('0x70')]),_0x91e428=_[_0x1c8381('0x12')](_['keys'](_0x5ad41a),[_0x1c8381('0x31'),_0x1c8381('0x70'),_0x1c8381('0x93'),_0x1c8381('0x8f')]);_0x431d9c[_0x1c8381('0x8a')]['id']&&delete _0x431d9c['body']['id'];if(_['isNil'](_0x431d9c[_0x1c8381('0x8a')][_0x1c8381('0x94')]))throw new db[(_0x1c8381('0x82'))]['ValidationError'](_0x1c8381('0xd'));if(_[_0x1c8381('0x5d')](_0x431d9c[_0x1c8381('0x8a')][_0x1c8381('0x8a')])||_0x431d9c[_0x1c8381('0x8a')][_0x1c8381('0x8a')]==='')throw new db[(_0x1c8381('0x82'))][(_0x1c8381('0x7a'))](_0x1c8381('0x7d'));if(_[_0x1c8381('0x5d')](_0x431d9c[_0x1c8381('0x8a')][_0x1c8381('0x80')]))throw new db[(_0x1c8381('0x82'))][(_0x1c8381('0x7a'))](_0x1c8381('0x5a')+_0x91e428);if(!_['includes'](_0x91e428,_0x431d9c['body'][_0x1c8381('0x80')]))throw new db[(_0x1c8381('0x82'))][(_0x1c8381('0x7a'))](_0x1c8381('0x7b')+_0x91e428);_0x2b4bb7[_0x431d9c[_0x1c8381('0x8a')][_0x1c8381('0x80')]]=_0x431d9c['body'][_0x1c8381('0x94')];})['then'](function(){const _0x2c6106=_0x51407b;return db['OpenchannelAccount']['findOne']({'where':{'id':_0x431d9c['params']['id']},'include':[{'model':db['CmList'],'as':_0x2c6106('0x74'),'include':[{'model':db['CmContact'],'as':_0x2c6106('0x22'),'where':_0x2b4bb7,'limit':0x1,'order':[[_0x2c6106('0x70'),'DESC']]}]},{'model':db[_0x2c6106('0x99')],'as':'Applications'}]});})[_0x51407b('0x46')](handleEntityNotFound(_0x66cd9,null))[_0x51407b('0x46')](function(_0x520590){const _0xcf88fd=_0x51407b;if(_0x520590&&_0x520590['List']){_0x15e2ba[_0xcf88fd('0x75')]=_0x520590,_0x15e2ba[_0xcf88fd('0x53')]=_0x520590['Applications'],_0x15e2ba['list']=_0x520590[_0xcf88fd('0x74')],_0x15e2ba[_0xcf88fd('0x53')]=_['orderBy'](_0x15e2ba[_0xcf88fd('0x53')],['priority'],['asc']);_0x15e2ba[_0xcf88fd('0x75')][_0xcf88fd('0x86')]&&delete _0x15e2ba[_0xcf88fd('0x75')][_0xcf88fd('0x86')];if(_0x15e2ba[_0xcf88fd('0x75')][_0xcf88fd('0x74')]&&_0x15e2ba[_0xcf88fd('0x75')][_0xcf88fd('0x74')][_0xcf88fd('0x22')][_0xcf88fd('0x78')])return _0x15e2ba[_0xcf88fd('0x75')]['List'][_0xcf88fd('0x22')][0x0];const _0x236675=_['defaults'](_0x431d9c['body'],{'firstName':_0x431d9c[_0xcf88fd('0x8a')][_0xcf88fd('0x94')],'ListId':_0x520590[_0xcf88fd('0x8f')]});return _0x236675[_0x431d9c[_0xcf88fd('0x8a')][_0xcf88fd('0x80')]]=_0x431d9c['body'][_0xcf88fd('0x94')],db['CmContact'][_0xcf88fd('0x39')](_0x236675,{'fields':_0x2efcf7,'raw':!![]});}})[_0x51407b('0x46')](handleEntityNotFound(_0x66cd9,null))[_0x51407b('0x46')](function(_0x13cf13){const _0x32b9ad=_0x51407b;_0x15e2ba[_0x32b9ad('0x6d')]=_0x13cf13;if(_0x13cf13){const _0x52489b={'ContactId':_0x13cf13['id'],'OpenchannelAccountId':_0x431d9c['params']['id'],'from':(_0x13cf13[_0x32b9ad('0x14')]||'')+'\x20'+(_0x13cf13['lastName']||'')},_0x517505={'OpenchannelAccountId':_0x431d9c[_0x32b9ad('0x66')]['id'],'closed':![]};if(_0x431d9c[_0x32b9ad('0x8a')]['threadId'])return _0x517505[_0x32b9ad('0x1')]=_0x431d9c[_0x32b9ad('0x8a')][_0x32b9ad('0x1')],db[_0x32b9ad('0x88')][_0x32b9ad('0x7f')]({'where':_0x517505})[_0x32b9ad('0x46')](function(_0x48a202){const _0x33a181=_0x32b9ad;if(_0x48a202)return[_0x48a202,![]];return _0x52489b[_0x33a181('0x1')]=_0x431d9c['body'][_0x33a181('0x1')],_0x52489b[_0x33a181('0x44')]=_0x431d9c['body']['externalUrl'],db['OpenchannelInteraction'][_0x33a181('0x39')](_0x52489b)[_0x33a181('0x46')](function(_0x17f8ce){return[_0x17f8ce,!![]];});});else _0x517505[_0x32b9ad('0x1')]=null;return _0x517505['ContactId']=_0x13cf13['id'],db[_0x32b9ad('0x88')]['findOne']({'where':_0x517505})[_0x32b9ad('0x46')](function(_0x40bb0f){const _0x349e55=_0x32b9ad;if(_0x40bb0f)return[_0x40bb0f,![]];return db[_0x349e55('0x88')][_0x349e55('0x39')](_0x52489b)['then'](function(_0xd52c14){return[_0xd52c14,!![]];});});}})['then'](function([_0x4ec62f,_0x4582e7]){const _0x40b13f=_0x51407b;if(_0x4ec62f){_0x4cb4b2=_0x4582e7;if(!_0x4582e7){const _0xe3f789={'from':(_0x15e2ba['contact'][_0x40b13f('0x14')]||'')+'\x20'+(_0x15e2ba[_0x40b13f('0x6d')][_0x40b13f('0x1a')]||'')};return _0x431d9c[_0x40b13f('0x8a')][_0x40b13f('0x1')]&&_0x431d9c[_0x40b13f('0x8a')][_0x40b13f('0x25')]&&_0x431d9c[_0x40b13f('0x8a')][_0x40b13f('0x1')]!=_0x431d9c[_0x40b13f('0x8a')]['messageId']&&(_0xe3f789[_0x40b13f('0x1')]=_0x431d9c[_0x40b13f('0x8a')][_0x40b13f('0x25')]),_0x4ec62f[_0x40b13f('0x49')](_0xe3f789);}else return _0x4ec62f;}})[_0x51407b('0x46')](function(_0x1db19c){const _0x122242=_0x51407b;return _0x15e2ba['interaction']=_0x1db19c[_0x122242('0x4f')]({'plain':!![]}),_0x15e2ba['interaction'][_0x122242('0x2')]=_0x4cb4b2,_0x15e2ba['interaction'][_0x122242('0x2')]&&(_0x15e2ba[_0x122242('0x75')][_0x122242('0x76')]&&_0x15e2ba[_0x122242('0x53')][_0x122242('0x84')]({'id':0x0,'priority':_0x15e2ba[_0x122242('0x53')][_0x122242('0x78')]+0x1,'app':_0x122242('0x41'),'appdata':_0x122242('0x30'),'interval':_0x122242('0x1e')})),db[_0x122242('0xa')][_0x122242('0x39')]({'body':_0x431d9c[_0x122242('0x8a')][_0x122242('0x8a')],'OpenchannelAccountId':_0x431d9c[_0x122242('0x66')]['id'],'OpenchannelInteractionId':_0x1db19c['id'],'direction':'in','ContactId':_0x15e2ba[_0x122242('0x6d')]['id'],'AttachmentId':_0x431d9c[_0x122242('0x8a')][_0x122242('0x6b')]});})[_0x51407b('0x46')](function(_0x1a6c74){const _0x542466=_0x51407b;_0x15e2ba[_0x542466('0x2b')]=_0x1a6c74;if(_0x15e2ba[_0x542466('0x7')]['UserId'])return db[_0x542466('0x64')][_0x542466('0x7f')]({'attributes':['id',_0x542466('0x15')],'where':{'id':_0x15e2ba['interaction'][_0x542466('0x5c')]}})['then'](function(_0x5f300d){const _0x49c7b4=_0x542466;return _0x5f300d&&(_0x15e2ba[_0x49c7b4('0x53')]['unshift']({'id':0x0,'priority':0x0,'app':_0x49c7b4('0x8d'),'appdata':_0x5f300d['name']+','+(_0x15e2ba['account']['waitForTheAssignedAgent']||0xa),'interval':_0x49c7b4('0x1e')}),_0x15e2ba[_0x49c7b4('0x17')]=![]),respondWithRpcPromise(_0x49c7b4('0x1b'),_0x49c7b4('0x73'),_0x15e2ba);});return respondWithRpcPromise('Start','startRouting',_0x15e2ba);})[_0x51407b('0x46')](function(_0x5e7591){const _0x2c89b6=_0x51407b;return respondWithRpcPromise(_0x2c89b6('0x4e'),'EventManager',{'event':_0x2c89b6('0x3b'),'message':_0x5e7591},client9002),_0x5e7591;})[_0x51407b('0x46')](respondWithResult(_0x66cd9,null))[_0x51407b('0x35')](handleError(_0x66cd9,null));},exports['addApplications']=function(_0x460318,_0x4dd177){const _0x41c90f=_0x203747;return db[_0x41c90f('0x3a')][_0x41c90f('0x7f')]({'where':{'id':_0x460318['params']['id']}})[_0x41c90f('0x46')](handleEntityNotFound(_0x4dd177,null))[_0x41c90f('0x46')](function(_0x437183){const _0xeef404=_0x41c90f;if(_0x437183)return db[_0xeef404('0x3e')][_0xeef404('0x5e')](function(_0x3f5dd9){const _0x5d1546=_0xeef404;return db[_0x5d1546('0x99')][_0x5d1546('0x18')]({'where':{'OpenchannelAccountId':_0x460318[_0x5d1546('0x66')]['id']},'transaction':_0x3f5dd9})[_0x5d1546('0x46')](function(){const _0xbf5284=_0x5d1546,_0x59f1db=_['map'](_0x460318[_0xbf5284('0x8a')],function(_0x2d996f){const _0x4aab18=_0xbf5284;return _0x2d996f[_0x4aab18('0x69')]=_0x460318['params']['id'],_0x2d996f;});return db[_0xbf5284('0x99')]['bulkCreate'](_0x59f1db,{'transaction':_0x3f5dd9});});})[_0xeef404('0x46')](function(){const _0x358317=_0xeef404;return db[_0x358317('0x99')][_0x358317('0x77')]({'where':{'OpenchannelAccountId':_0x460318[_0x358317('0x66')]['id']},'order':_0x358317('0x52')});});})[_0x41c90f('0x46')](respondWithResult(_0x4dd177,null))[_0x41c90f('0x35')](handleError(_0x4dd177,null));},exports[_0x203747('0x58')]=function(_0x131f81,_0x400864){const _0x7611ee=_0x203747;let _0x11db40={};const _0x414538={};let _0x1fb899,_0xfe962;return db[_0x7611ee('0x3a')]['findOne']({'where':{'id':_0x131f81[_0x7611ee('0x66')]['id']}})[_0x7611ee('0x46')](handleEntityNotFound(_0x400864,null))[_0x7611ee('0x46')](function(_0x10e307){const _0x247b4c=_0x7611ee;if(_0x10e307)return _0x1fb899=_0x10e307,_0x414538['model']=_['keys'](db['OpenchannelApplication']['rawAttributes']),_0x414538['query']=_['keys'](_0x131f81[_0x247b4c('0xc')]),_0x414538[_0x247b4c('0x92')]=_[_0x247b4c('0x47')](_0x414538[_0x247b4c('0x8e')],_0x414538['query']),_0x11db40[_0x247b4c('0x6')]=_['intersection'](_0x414538['model'],qs[_0x247b4c('0x2a')](_0x131f81[_0x247b4c('0xc')]['fields'])),_0x11db40[_0x247b4c('0x6')]=_0x11db40[_0x247b4c('0x6')][_0x247b4c('0x78')]?_0x11db40['attributes']:_0x414538['model'],_0x11db40[_0x247b4c('0x2f')]=qs['sort'](_0x131f81[_0x247b4c('0xc')]['sort']),_0x11db40[_0x247b4c('0x26')]=qs[_0x247b4c('0x92')](_[_0x247b4c('0x10')](_0x131f81[_0x247b4c('0xc')],_0x414538[_0x247b4c('0x92')])),_0x131f81['query'][_0x247b4c('0x1d')]&&(_0x11db40[_0x247b4c('0x26')]=_[_0x247b4c('0x9')](_0x11db40[_0x247b4c('0x26')],{[Op['or']]:_[_0x247b4c('0x4d')](_0x11db40[_0x247b4c('0x6')],function(_0x38b291){const _0xbe0311=_0x247b4c,_0x285b40={};return _0x285b40[_0x38b291]={[Op['like']]:'%'+_0x131f81[_0xbe0311('0xc')][_0xbe0311('0x1d')]+'%'},_0x285b40;})})),_0x11db40=_[_0x247b4c('0x9')]({},_0x11db40,_0x131f81['options']),_0x1fb899['getApplications'](_0x11db40);})[_0x7611ee('0x46')](function(_0x34bc09){const _0x138867=_0x7611ee;if(_0x34bc09)return _0xfe962=_0x34bc09[_0x138867('0x78')],typeof _0x131f81['query']['nolimit']==='undefined'&&(_0x11db40[_0x138867('0x1c')]=qs[_0x138867('0x1c')](_0x131f81[_0x138867('0xc')][_0x138867('0x1c')]),_0x11db40[_0x138867('0xb')]=qs[_0x138867('0xb')](_0x131f81[_0x138867('0xc')]['offset'])),_0x1fb899['getApplications'](_0x11db40);})[_0x7611ee('0x46')](function(_0x1fde95){if(_0x1fde95)return _0x1fde95?{'count':_0xfe962,'rows':_0x1fde95}:null;})['then'](respondWithResult(_0x400864,null))['catch'](handleError(_0x400864,null));},exports['getInteractions']=function(_0x29b178,_0x5d372b){const _0xe45de6=_0x203747;let _0x19753d={'raw':![],'where':{}};const _0x49c17f={},_0x41c1d7={'count':0x0,'rows':[]};return db[_0xe45de6('0x3a')][_0xe45de6('0x7f')]({'where':{'id':_0x29b178[_0xe45de6('0x66')]['id']}})[_0xe45de6('0x46')](handleEntityNotFound(_0x5d372b,null))[_0xe45de6('0x46')](function(_0x40e132){const _0xd824b=_0xe45de6;if(_0x40e132)return _0x49c17f[_0xd824b('0x8e')]=_[_0xd824b('0x8b')](db[_0xd824b('0x88')][_0xd824b('0x6e')]),_0x49c17f[_0xd824b('0xc')]=_['keys'](_0x29b178[_0xd824b('0xc')]),_0x49c17f[_0xd824b('0x92')]=_[_0xd824b('0x47')](_0x49c17f[_0xd824b('0x8e')],_0x49c17f[_0xd824b('0xc')]),_0x19753d[_0xd824b('0x6')]=_[_0xd824b('0x47')](_0x49c17f['model'],qs[_0xd824b('0x2a')](_0x29b178[_0xd824b('0xc')][_0xd824b('0x2a')])),_0x19753d['attributes']=_0x19753d['attributes'][_0xd824b('0x78')]?_0x19753d[_0xd824b('0x6')]:_0x49c17f[_0xd824b('0x8e')],typeof _0x29b178[_0xd824b('0xc')][_0xd824b('0x56')]==='undefined'&&(_0x19753d['limit']=qs['limit'](_0x29b178[_0xd824b('0xc')][_0xd824b('0x1c')]),_0x19753d[_0xd824b('0xb')]=qs[_0xd824b('0xb')](_0x29b178[_0xd824b('0xc')][_0xd824b('0xb')])),_0x19753d[_0xd824b('0x2f')]=qs[_0xd824b('0x61')](_0x29b178['query'][_0xd824b('0x61')]),_0x19753d[_0xd824b('0x26')]=qs['filters'](_['pick'](_0x29b178[_0xd824b('0xc')],_0x49c17f['filters'])),_0x19753d[_0xd824b('0x26')][_0xd824b('0x69')]=_0x40e132['id'],_0x29b178[_0xd824b('0xc')][_0xd824b('0x1d')]&&(_0x19753d[_0xd824b('0x26')]=_[_0xd824b('0x9')](_0x19753d[_0xd824b('0x26')],{[Op['or']]:_[_0xd824b('0x4d')](_0x19753d[_0xd824b('0x6')],function(_0x448c44){const _0x2cb2f9=_0xd824b,_0x4bd24d={};return _0x4bd24d[_0x448c44]={[Op[_0x2cb2f9('0x27')]]:'%'+_0x29b178[_0x2cb2f9('0xc')][_0x2cb2f9('0x1d')]+'%'},_0x4bd24d;})})),_0x19753d=_[_0xd824b('0x9')]({},_0x19753d,_0x29b178['options']),db[_0xd824b('0x88')][_0xd824b('0x91')]({'where':_0x19753d[_0xd824b('0x26')]})[_0xd824b('0x46')](function(_0x410a50){const _0x2205d0=_0xd824b;return _0x41c1d7[_0x2205d0('0x91')]=_0x410a50,_0x29b178[_0x2205d0('0xc')][_0x2205d0('0x36')]&&(_0x19753d[_0x2205d0('0x97')]=[{'model':db[_0x2205d0('0x7e')],'as':_0x2205d0('0x28'),'required':![]},{'model':db['User'],'as':_0x2205d0('0x6a'),'attributes':[_0x2205d0('0x15'),_0x2205d0('0x40'),'internal'],'required':![]},{'model':db[_0x2205d0('0x1f')],'as':_0x2205d0('0x72'),'attributes':['id',_0x2205d0('0x15'),'color'],'where':_0x29b178[_0x2205d0('0xc')][_0x2205d0('0x95')]?{'id':_0x29b178[_0x2205d0('0xc')][_0x2205d0('0x95')]}:undefined,'required':_0x29b178['query'][_0x2205d0('0x95')]?!![]:![]}]),db[_0x2205d0('0x88')][_0x2205d0('0x6f')](_0x19753d);})['then'](function(_0x1f93dd){const _0x258067=_0xd824b;return _0x41c1d7[_0x258067('0x57')]=_0x1f93dd,_0x41c1d7;});})['then'](respondWithFilteredResult(_0x5d372b,_0x19753d))[_0xe45de6('0x35')](handleError(_0x5d372b,null));},exports[_0x203747('0x37')]=function(_0x3175da,_0x51bb79){const _0x48c3ba=_0x203747;return db[_0x48c3ba('0x3a')]['findOne']({'where':{'id':_0x3175da['params']['id']}})[_0x48c3ba('0x46')](function(_0x1c0ccb){const _0x10b06b=_0x48c3ba;if(_0x1c0ccb)return _0x1c0ccb[_0x10b06b('0x37')](_0x3175da[_0x10b06b('0x8a')][_0x10b06b('0x87')],{'through':_[_0x10b06b('0x4b')](_0x3175da[_0x10b06b('0x8a')],[_0x10b06b('0x87'),'id'])})[_0x10b06b('0x46')](function(_0x5beb52){const _0x10bba6=_0x10b06b;for(let _0x543acb=0x0;_0x543acb<_0x3175da['body'][_0x10bba6('0x87')]['length'];_0x543acb+=0x1){socket[_0x10bba6('0x13')](_0x10bba6('0x54'),{'UserId':_0x3175da[_0x10bba6('0x8a')][_0x10bba6('0x87')][_0x543acb],'OpenchannelAccountId':_0x3175da[_0x10bba6('0x66')]['id']});}return _0x5beb52;});})[_0x48c3ba('0x46')](respondWithResult(_0x51bb79,null))[_0x48c3ba('0x35')](handleError(_0x51bb79,null));},exports[_0x203747('0x20')]=function(_0xdff1a4,_0x3170ba){const _0x5262cd=_0x203747;return db[_0x5262cd('0x3a')]['findOne']({'where':{'id':_0xdff1a4[_0x5262cd('0x66')]['id']}})['then'](handleEntityNotFound(_0x3170ba,null))[_0x5262cd('0x46')](function(_0x2e2d62){const _0x277e32=_0x5262cd;if(_0x2e2d62)return _0x2e2d62[_0x277e32('0x20')](_0xdff1a4['query'][_0x277e32('0x87')])[_0x277e32('0x46')](function(){const _0x3c83b7=_0x277e32;if(_[_0x3c83b7('0x96')](_0xdff1a4[_0x3c83b7('0xc')][_0x3c83b7('0x87')]))for(let _0x5ec3cd=0x0;_0x5ec3cd<_0xdff1a4[_0x3c83b7('0xc')][_0x3c83b7('0x87')]['length'];_0x5ec3cd+=0x1){socket[_0x3c83b7('0x13')](_0x3c83b7('0x5f'),{'UserId':Number(_0xdff1a4[_0x3c83b7('0xc')][_0x3c83b7('0x87')][_0x5ec3cd]),'OpenchannelAccountId':Number(_0xdff1a4[_0x3c83b7('0x66')]['id'])});}else socket[_0x3c83b7('0x13')]('userOpenchannelAccount:remove',{'UserId':Number(_0xdff1a4[_0x3c83b7('0xc')][_0x3c83b7('0x87')]),'OpenchannelAccountId':Number(_0xdff1a4[_0x3c83b7('0x66')]['id'])});});})[_0x5262cd('0x46')](respondWithStatusCode(_0x3170ba,null))[_0x5262cd('0x35')](handleError(_0x3170ba,null));},exports[_0x203747('0x4a')]=function(_0x43442a,_0x3c44c7){const _0x411907=_0x203747;let _0x40e100={};const _0x51520d={};let _0x3000ea,_0x44954d;return db['OpenchannelAccount'][_0x411907('0x7f')]({'where':{'id':_0x43442a[_0x411907('0x66')]['id']}})[_0x411907('0x46')](handleEntityNotFound(_0x3c44c7,null))[_0x411907('0x46')](function(_0x518cdd){const _0x3d9a62=_0x411907;if(_0x518cdd)return _0x3000ea=_0x518cdd,_0x51520d[_0x3d9a62('0x8e')]=_['keys'](db[_0x3d9a62('0x64')][_0x3d9a62('0x6e')]),_0x51520d[_0x3d9a62('0xc')]=_[_0x3d9a62('0x8b')](_0x43442a[_0x3d9a62('0xc')]),_0x51520d[_0x3d9a62('0x92')]=_[_0x3d9a62('0x47')](_0x51520d[_0x3d9a62('0x8e')],_0x51520d[_0x3d9a62('0xc')]),_0x40e100['attributes']=_[_0x3d9a62('0x47')](_0x51520d['model'],qs[_0x3d9a62('0x2a')](_0x43442a[_0x3d9a62('0xc')][_0x3d9a62('0x2a')])),_0x40e100[_0x3d9a62('0x6')]=_0x40e100['attributes'][_0x3d9a62('0x78')]?_0x40e100[_0x3d9a62('0x6')]:_0x51520d[_0x3d9a62('0x8e')],_0x40e100[_0x3d9a62('0x2f')]=qs[_0x3d9a62('0x61')](_0x43442a[_0x3d9a62('0xc')][_0x3d9a62('0x61')]),_0x40e100[_0x3d9a62('0x26')]=qs[_0x3d9a62('0x92')](_[_0x3d9a62('0x10')](_0x43442a[_0x3d9a62('0xc')],_0x51520d['filters'])),_0x43442a[_0x3d9a62('0xc')]['filter']&&(_0x40e100[_0x3d9a62('0x26')]=_[_0x3d9a62('0x9')](_0x40e100[_0x3d9a62('0x26')],{[Op['or']]:_[_0x3d9a62('0x4d')](_0x40e100[_0x3d9a62('0x6')],function(_0x59894e){const _0xa53eb3=_0x3d9a62,_0x57e438={};return _0x57e438[_0x59894e]={[Op[_0xa53eb3('0x27')]]:'%'+_0x43442a[_0xa53eb3('0xc')][_0xa53eb3('0x1d')]+'%'},_0x57e438;})})),_0x40e100=_[_0x3d9a62('0x9')]({},_0x40e100,_0x43442a[_0x3d9a62('0x33')]),_0x3000ea['getAgents'](_0x40e100);})[_0x411907('0x46')](function(_0x463142){const _0x42b1fa=_0x411907;if(_0x463142)return _0x44954d=_0x463142[_0x42b1fa('0x78')],typeof _0x43442a['query'][_0x42b1fa('0x56')]==='undefined'&&(_0x40e100[_0x42b1fa('0x1c')]=qs[_0x42b1fa('0x1c')](_0x43442a[_0x42b1fa('0xc')]['limit']),_0x40e100[_0x42b1fa('0xb')]=qs[_0x42b1fa('0xb')](_0x43442a[_0x42b1fa('0xc')][_0x42b1fa('0xb')])),_0x3000ea[_0x42b1fa('0x4a')](_0x40e100);})['then'](function(_0x1d0b30){if(_0x1d0b30)return _0x1d0b30?{'count':_0x44954d,'rows':_0x1d0b30}:null;})[_0x411907('0x46')](respondWithResult(_0x3c44c7,null))[_0x411907('0x35')](handleError(_0x3c44c7,null));},exports['send']=function(_0x443139,_0x1db1e8){const _0xe99c7a=_0x203747;let _0x3d1647,_0x503357;if(_[_0xe99c7a('0x5d')](_0x443139[_0xe99c7a('0x8a')][_0xe99c7a('0x8a')])||_0x443139[_0xe99c7a('0x8a')]['body']==='')throw new db['Sequelize'][(_0xe99c7a('0x7a'))](_0xe99c7a('0x7d'));if(_['isNil'](_0x443139[_0xe99c7a('0x8a')]['to'])){}const _0x549735=_0x443139[_0xe99c7a('0x8a')]['to'];return db[_0xe99c7a('0x3a')]['findOne']({'where':{'id':_0x443139[_0xe99c7a('0x66')]['id']}})[_0xe99c7a('0x46')](handleEntityNotFound(_0x1db1e8,null))[_0xe99c7a('0x46')](function(_0x5e3246){const _0x29109e=_0xe99c7a;if(_0x5e3246)return db[_0x29109e('0x3a')][_0x29109e('0x7f')]({'where':{'id':_0x5e3246['id']},'include':[{'model':db[_0x29109e('0x79')],'as':'List','include':[{'model':db['CmContact'],'as':'Contacts','where':{[_0x5e3246[_0x29109e('0x80')]]:_0x549735},'limit':0x1,'order':[[_0x29109e('0x70'),'DESC']]}]}]})[_0x29109e('0x46')](handleEntityNotFound(_0x1db1e8,null))['then'](function(_0x8a3b11){const _0x1d60d7=_0x29109e;if(_0x8a3b11&&_0x8a3b11[_0x1d60d7('0x74')]){_0x3d1647=_0x8a3b11[_0x1d60d7('0x4f')]({'plain':!![]});if(_0x3d1647[_0x1d60d7('0x74')]&&_0x3d1647[_0x1d60d7('0x74')][_0x1d60d7('0x22')][_0x1d60d7('0x78')])return _0x3d1647['List'][_0x1d60d7('0x22')][0x0];return db[_0x1d60d7('0x7e')][_0x1d60d7('0x39')](_[_0x1d60d7('0x89')](_0x443139[_0x1d60d7('0x8a')],{'firstName':_0x549735,[_0x8a3b11[_0x1d60d7('0x80')]]:_0x549735,'phone':_0x549735,'ListId':_0x3d1647[_0x1d60d7('0x8f')]}));}})[_0x29109e('0x46')](handleEntityNotFound(_0x1db1e8,null))['then'](function(_0x421a4d){const _0x284e53=_0x29109e;if(_0x421a4d)return _0x503357=_0x421a4d,db[_0x284e53('0x88')]['findOne']({'where':{'ContactId':_0x503357['id'],'closed':![],'OpenchannelAccountId':_0x3d1647['id']}})[_0x284e53('0x46')](function(_0xac7692){const _0x39d572=_0x284e53;if(_0xac7692)return[_0xac7692,![]];return db[_0x39d572('0x88')][_0x39d572('0x39')]({'UserId':_0x443139[_0x39d572('0x3')]['id'],'ContactId':_0x503357['id'],'OpenchannelAccountId':_0x3d1647['id'],'lastMsgDirection':_0x39d572('0x5'),'Messages':[_[_0x39d572('0x9')](_0x443139[_0x39d572('0x8a')],{'read':![],'body':_0x443139[_0x39d572('0x8a')]['body'],'OpenchannelAccountId':_0x3d1647['id'],'UserId':_0x443139[_0x39d572('0x3')]['id'],'ContactId':_0x503357['id']})]},{'include':[{'model':db['OpenchannelMessage'],'as':_0x39d572('0x59')}]})[_0x39d572('0x46')](function(_0x5a3d1f){return[_0x5a3d1f,!![]];});});})[_0x29109e('0x46')](function([_0x24e0b1,_0x5284a1]){const _0x279b56=_0x29109e;if(_0x5284a1)return _0x24e0b1;return db[_0x279b56('0xa')][_0x279b56('0x39')](_['merge'](_0x443139[_0x279b56('0x8a')],{'read':![],'body':_0x443139[_0x279b56('0x8a')][_0x279b56('0x8a')],'OpenchannelAccountId':_0x3d1647['id'],'OpenchannelInteractionId':_0x24e0b1['id'],'UserId':_0x443139['user']['id'],'ContactId':_0x503357['id']}))[_0x279b56('0x46')](function(_0x313e30){const _0x1c8024=_0x279b56;return _0x24e0b1[_0x1c8024('0x51')][_0x1c8024('0x59')]=[],_0x24e0b1[_0x1c8024('0x51')][_0x1c8024('0x59')][_0x1c8024('0x84')](_0x313e30[_0x1c8024('0x51')]),_0x24e0b1;});});})[_0xe99c7a('0x46')](respondWithResult(_0x1db1e8,null))['catch'](handleError(_0x1db1e8,null));}; \ No newline at end of file +const a468_0x2c50=['DESC','no\x20available\x20attributes','addApplications','forcedOwnership','findAndCountAll','openchannel','result','Applications','UserProfileSection','update','agent','describe','merge','error','name','isArray','options','CmContact','created','query','user','applications','set','api','order','catch','getAnswers','waitForTheAssignedAgent','ContactId','isNil','type','OpenchannelMessage','findAll','end','OpenchannelAccountId','client','UserProfileResource','removeDispositions','Tags','CannedAnswer','removeAgents','*,*,*,*','list','VIRTUAL','debug','updatedAt','EventManager','create','undefined','emit','defaults','threadId','priority','getAgents','./openchannelAccount.socket','index','contact','sequelize','json','sort','firstName','Content-Range','model','OpenchannelAccount,\x20%s,\x20%s,\x20%s','info','length','notify','request\x20sent','send','Disposition','orderBy','message','lastName','OpenchannelApplication','count','OpenchannelAccount,\x20%s,\x20%s','findOne','offset','CmList','filters','close','omit','then','status','Start','getDispositions','Owner','account','Contact','include','rawAttributes','http','code','Messages','limit','unshift','rows','request','fullname','interaction','getApplications','show','keys','List','OpenchannelInteraction','where','Tag','startRouting','attributes','includeAll','sendStatus','Sequelize','internal','get','userOpenchannelAccount:remove','push','removeAnswers','../../components/parsers/qs','userOpenchannelAccount:save','ids','ValidationError','OpenchannelAccounts','pick','User','externalUrl','from','from\x20is\x20mandatory','lodash','getInteractions','nolimit','UserId','params','ListId','jayson/promise','fields','autoclose','body','dataValues','tag','like','Contacts','role','body\x20is\x20mandatory\x20and\x20not\x20empty','map','OpenchannelAccount','autoAssociation','filter','unmanaged','destroy','mapKey','intersection','createdAt','../../mysqldb','addAgents','mandatoryDispositionPause','Pause','messageId'];(function(_0x20eabd,_0x2c5043){const _0x4f93c1=function(_0x14ac89){while(--_0x14ac89){_0x20eabd['push'](_0x20eabd['shift']());}};_0x4f93c1(++_0x2c5043);}(a468_0x2c50,0x173));const a468_0x4f93=function(_0x20eabd,_0x2c5043){_0x20eabd=_0x20eabd-0x0;let _0x4f93c1=a468_0x2c50[_0x20eabd];return _0x4f93c1;};const _0x2eeb5f=a468_0x4f93;'use strict';const _=require(_0x2eeb5f('0x46')),qs=require(_0x2eeb5f('0x3c')),logger=require('../../config/logger')(_0x2eeb5f('0x7b')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x2eeb5f('0x5f'))['db'],{Op}=require(_0x2eeb5f('0x0'));require(_0x2eeb5f('0x9a'))['register'](socket);const jayson=require(_0x2eeb5f('0x4c')),client=jayson[_0x2eeb5f('0x87')][_0x2eeb5f('0x22')]({'port':0x232c}),client9002=jayson['client'][_0x2eeb5f('0x22')]({'port':0x232a});function respondWithRpcPromise(_0x14ac89,_0x4174cf,_0x5e64e3,_0x411199){return new Promise(function(_0x2b1871,_0x409077){const _0x48277c=a468_0x4f93,_0x2bee56=_0x411199||client;return _0x2bee56[_0x48277c('0x28')](_0x14ac89,_0x5e64e3)[_0x48277c('0x19')](function(_0x466473){const _0x1b2a95=_0x48277c;logger['info'](_0x1b2a95('0x12'),_0x4174cf,_0x1b2a95('0xa')),logger[_0x1b2a95('0x90')](_0x1b2a95('0x6'),_0x4174cf,_0x1b2a95('0xa'),JSON['stringify'](_0x466473));if(_0x466473[_0x1b2a95('0x71')]){if(_0x466473[_0x1b2a95('0x71')][_0x1b2a95('0x23')]===0x1f4)return logger[_0x1b2a95('0x71')](_0x1b2a95('0x12'),_0x4174cf,_0x466473[_0x1b2a95('0x71')]['message']),_0x409077(_0x466473['error'][_0x1b2a95('0xe')]);return logger[_0x1b2a95('0x71')]('OpenchannelAccount,\x20%s,\x20%s',_0x4174cf,_0x466473['error'][_0x1b2a95('0xe')]),_0x2b1871(_0x466473[_0x1b2a95('0x71')][_0x1b2a95('0xe')]);}else logger[_0x1b2a95('0x7')](_0x1b2a95('0x12'),_0x4174cf,_0x1b2a95('0xa')),_0x2b1871(_0x466473[_0x1b2a95('0x6a')]['message']);})[_0x48277c('0x7d')](function(_0x18533e){const _0x4d3fff=_0x48277c;logger[_0x4d3fff('0x71')]('OpenchannelAccount,\x20%s,\x20%s',_0x4174cf,_0x18533e),_0x409077(_0x18533e);});});}function respondWithStatusCode(_0x43b240,_0x39fae3){return _0x39fae3=_0x39fae3||0xcc,function(_0x588c26){const _0x5a743c=a468_0x4f93;if(_0x588c26)return _0x43b240[_0x5a743c('0x35')](_0x39fae3);return _0x43b240[_0x5a743c('0x1a')](_0x39fae3)['end']();};}function respondWithResult(_0x268a9d,_0x254e8c){return _0x254e8c=_0x254e8c||0xc8,function(_0x48d711){const _0x4bc794=a468_0x4f93;if(_0x48d711)return _0x268a9d[_0x4bc794('0x1a')](_0x254e8c)[_0x4bc794('0x1')](_0x48d711);};}function respondWithFilteredResult(_0x45bc55,_0x2d7824){return function(_0x5607c0){const _0x1fb0b5=a468_0x4f93;if(_0x5607c0){const _0x27967d=_0x5607c0[_0x1fb0b5('0x11')],_0x2d992b=_0x2d7824['offset'];let _0x40084d=_0x2d7824['offset']+_0x2d7824[_0x1fb0b5('0x25')],_0x5e3f55;return _0x40084d>=_0x27967d?(_0x40084d=_0x27967d,_0x5e3f55=0xc8):_0x5e3f55=0xce,_0x45bc55['status'](_0x5e3f55),_0x45bc55[_0x1fb0b5('0x7a')](_0x1fb0b5('0x4'),_0x2d992b+'-'+_0x40084d+'/'+_0x27967d)['json'](_0x5607c0);}return null;};}function saveUpdates(_0x26518d){return function(_0x5bd3ef){const _0x37e146=a468_0x4f93;if(_0x5bd3ef)return _0x5bd3ef[_0x37e146('0x6d')](_0x26518d)[_0x37e146('0x19')](function(_0x326c54){return _0x326c54;});return null;};}function removeEntity(_0x368551){return function(_0x416cbd){const _0x561ebe=a468_0x4f93;if(_0x416cbd)return _0x416cbd[_0x561ebe('0x5b')]()[_0x561ebe('0x19')](function(){const _0x1ea5a1=_0x561ebe,_0x1b7b31=_0x416cbd[_0x1ea5a1('0x38')]({'plain':!![]}),_0x26bde6=_0x1ea5a1('0x40');return db[_0x1ea5a1('0x88')][_0x1ea5a1('0x5b')]({'where':{'type':_0x26bde6,'resourceId':_0x1b7b31['id']}})[_0x1ea5a1('0x19')](function(){return _0x416cbd;});})['then'](function(){const _0x4a5ff7=_0x561ebe;_0x368551['status'](0xcc)[_0x4a5ff7('0x85')]();});};}function handleEntityNotFound(_0x1151b3){return function(_0x266a11){return!_0x266a11&&_0x1151b3['sendStatus'](0x194),_0x266a11;};}function handleError(_0x44b3e1,_0x4e1764){return _0x4e1764=_0x4e1764||0x1f4,function(_0xe4a6c0){const _0x1540bd=a468_0x4f93;logger[_0x1540bd('0x71')](_0xe4a6c0['stack']),_0xe4a6c0[_0x1540bd('0x72')]&&delete _0xe4a6c0['name'],_0x44b3e1['status'](_0x4e1764)[_0x1540bd('0xb')](_0xe4a6c0);};}exports[_0x2eeb5f('0x9b')]=function(_0x4cfd8f,_0x4bfe11){const _0x902bf=_0x2eeb5f;let _0x272b49={'include':[{'model':db[_0x902bf('0x62')],'as':_0x902bf('0x61')}]};const _0x34ba07={},_0x13ae6f={'count':0x0,'rows':[]},_0xe2c530=_[_0x902bf('0x56')](db[_0x902bf('0x57')][_0x902bf('0x21')],function(_0x4e32d5){const _0x5e0836=_0x902bf;return{'name':_0x4e32d5['fieldName'],'type':_0x4e32d5[_0x5e0836('0x82')]['key']};});_0x34ba07[_0x902bf('0x5')]=_[_0x902bf('0x56')](_0xe2c530,'name'),_0x34ba07[_0x902bf('0x77')]=_[_0x902bf('0x2d')](_0x4cfd8f[_0x902bf('0x77')]),_0x34ba07[_0x902bf('0x16')]=_[_0x902bf('0x5d')](_0x34ba07[_0x902bf('0x5')],_0x34ba07[_0x902bf('0x77')]),_0x272b49['attributes']=_[_0x902bf('0x5d')](_0x34ba07[_0x902bf('0x5')],qs[_0x902bf('0x4d')](_0x4cfd8f[_0x902bf('0x77')][_0x902bf('0x4d')])),_0x272b49[_0x902bf('0x33')]=_0x272b49[_0x902bf('0x33')]['length']?_0x272b49[_0x902bf('0x33')]:_0x34ba07[_0x902bf('0x5')];typeof _0x4cfd8f[_0x902bf('0x77')][_0x902bf('0x48')]===_0x902bf('0x94')&&(_0x272b49[_0x902bf('0x25')]=qs['limit'](_0x4cfd8f[_0x902bf('0x77')][_0x902bf('0x25')]),_0x272b49[_0x902bf('0x14')]=qs['offset'](_0x4cfd8f['query'][_0x902bf('0x14')]));_0x272b49[_0x902bf('0x7c')]=qs[_0x902bf('0x2')](_0x4cfd8f['query']['sort']),_0x272b49['where']=qs[_0x902bf('0x16')](_[_0x902bf('0x41')](_0x4cfd8f[_0x902bf('0x77')],_0x34ba07[_0x902bf('0x16')]),_0xe2c530);_0x4cfd8f[_0x902bf('0x77')][_0x902bf('0x59')]&&(_0x272b49[_0x902bf('0x30')]=_['merge'](_0x272b49[_0x902bf('0x30')],{[Op['or']]:_[_0x902bf('0x56')](_0xe2c530,function(_0x449045){const _0x37e7c9=_0x902bf;if(_0x449045['type']!==_0x37e7c9('0x8f')){const _0x33ddbd={};return _0x33ddbd[_0x449045['name']]={[Op[_0x37e7c9('0x52')]]:'%'+_0x4cfd8f['query']['filter']+'%'},_0x33ddbd;}})}));_0x272b49=_[_0x902bf('0x70')]({},_0x272b49,_0x4cfd8f[_0x902bf('0x74')]);const _0x4638e1={'where':_0x272b49[_0x902bf('0x30')]};return db[_0x902bf('0x57')][_0x902bf('0x11')](_0x4638e1)[_0x902bf('0x19')](function(_0x243e8c){const _0x5b5d39=_0x902bf;return _0x13ae6f[_0x5b5d39('0x11')]=_0x243e8c,_0x4cfd8f[_0x5b5d39('0x77')][_0x5b5d39('0x34')]&&(_0x272b49[_0x5b5d39('0x20')]=[{'all':!![]}]),db[_0x5b5d39('0x57')][_0x5b5d39('0x84')](_0x272b49);})[_0x902bf('0x19')](function(_0x3060da){const _0xeb99cc=_0x902bf;return _0x13ae6f[_0xeb99cc('0x27')]=_0x3060da,_0x13ae6f;})[_0x902bf('0x19')](respondWithFilteredResult(_0x4bfe11,_0x272b49))[_0x902bf('0x7d')](handleError(_0x4bfe11,null));},exports[_0x2eeb5f('0x2c')]=function(_0x4253fc,_0x96304c){const _0x507c97=_0x2eeb5f;let _0x4434b2={'raw':![],'where':{'id':_0x4253fc[_0x507c97('0x4a')]['id']},'include':[{'model':db[_0x507c97('0x62')],'as':_0x507c97('0x61')}]};const _0x4fa254={};return _0x4fa254[_0x507c97('0x5')]=_[_0x507c97('0x2d')](db[_0x507c97('0x57')][_0x507c97('0x21')]),_0x4fa254[_0x507c97('0x77')]=_[_0x507c97('0x2d')](_0x4253fc[_0x507c97('0x77')]),_0x4fa254['filters']=_[_0x507c97('0x5d')](_0x4fa254[_0x507c97('0x5')],_0x4fa254[_0x507c97('0x77')]),_0x4434b2[_0x507c97('0x33')]=_[_0x507c97('0x5d')](_0x4fa254['model'],qs[_0x507c97('0x4d')](_0x4253fc[_0x507c97('0x77')][_0x507c97('0x4d')])),_0x4434b2['attributes']=_0x4434b2[_0x507c97('0x33')][_0x507c97('0x8')]?_0x4434b2[_0x507c97('0x33')]:_0x4fa254[_0x507c97('0x5')],_0x4253fc['query'][_0x507c97('0x34')]&&(_0x4434b2[_0x507c97('0x20')]=[{'all':!![]}]),_0x4434b2=_['merge']({},_0x4434b2,_0x4253fc[_0x507c97('0x74')]),db[_0x507c97('0x57')][_0x507c97('0x13')](_0x4434b2)['then'](handleEntityNotFound(_0x96304c,null))['then'](respondWithResult(_0x96304c,null))[_0x507c97('0x7d')](handleError(_0x96304c,null));},exports[_0x2eeb5f('0x93')]=function(_0x1e73a4,_0x3a66a0){const _0x23022a=_0x2eeb5f;return db[_0x23022a('0x57')][_0x23022a('0x93')](_0x1e73a4[_0x23022a('0x4f')],{})[_0x23022a('0x19')](function(_0xf77380){const _0x219850=_0x23022a,_0x4cf5c4=_0x1e73a4[_0x219850('0x78')]['get']({'plain':!![]});if(!_0x4cf5c4)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x4cf5c4[_0x219850('0x54')]==='user'){const _0x2c8fdb=_0xf77380['get']({'plain':!![]}),_0x18f77a=_0x219850('0x40');return db[_0x219850('0x6c')][_0x219850('0x13')]({'where':{'name':_0x18f77a,'userProfileId':_0x4cf5c4['userProfileId']},'raw':!![]})[_0x219850('0x19')](function(_0x348e7a){const _0x3ec576=_0x219850;return _0x348e7a&&_0x348e7a[_0x3ec576('0x58')]===0x0?db[_0x3ec576('0x88')][_0x3ec576('0x93')]({'name':_0x2c8fdb[_0x3ec576('0x72')],'resourceId':_0x2c8fdb['id'],'type':_0x348e7a[_0x3ec576('0x72')],'sectionId':_0x348e7a['id']},{})[_0x3ec576('0x19')](function(){return _0xf77380;}):_0xf77380;})[_0x219850('0x7d')](function(_0x2d320c){const _0x4c2f56=_0x219850;logger[_0x4c2f56('0x71')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2d320c);throw _0x2d320c;});}return _0xf77380;})[_0x23022a('0x19')](respondWithResult(_0x3a66a0,0xc9))[_0x23022a('0x7d')](handleError(_0x3a66a0,null));},exports[_0x2eeb5f('0x6d')]=function(_0x3bb622,_0x56fda8){const _0x1a2f16=_0x2eeb5f;return _0x3bb622[_0x1a2f16('0x4f')]['id']&&delete _0x3bb622[_0x1a2f16('0x4f')]['id'],db['OpenchannelAccount'][_0x1a2f16('0x13')]({'where':{'id':_0x3bb622['params']['id']},'include':[{'model':db['Pause'],'as':_0x1a2f16('0x61')}]})[_0x1a2f16('0x19')](handleEntityNotFound(_0x56fda8,null))[_0x1a2f16('0x19')](saveUpdates(_0x3bb622[_0x1a2f16('0x4f')],null))[_0x1a2f16('0x19')](respondWithResult(_0x56fda8,null))['catch'](handleError(_0x56fda8,null));},exports[_0x2eeb5f('0x5b')]=function(_0x2a43cc,_0x5e7fde){const _0x46d9dc=_0x2eeb5f;return db['OpenchannelAccount'][_0x46d9dc('0x13')]({'where':{'id':_0x2a43cc[_0x46d9dc('0x4a')]['id']}})['then'](handleEntityNotFound(_0x5e7fde,null))['then'](removeEntity(_0x5e7fde,null))['catch'](handleError(_0x5e7fde,null));},exports[_0x2eeb5f('0x6f')]=function(_0x152db2,_0x2fa571){const _0x5d86cb=_0x2eeb5f;return db[_0x5d86cb('0x57')][_0x5d86cb('0x6f')]()[_0x5d86cb('0x19')](respondWithResult(_0x2fa571,null))[_0x5d86cb('0x7d')](handleError(_0x2fa571,null));},exports['addDisposition']=function(_0x3ab15e,_0x3e021d){const _0x4ec3be=_0x2eeb5f;return _0x3ab15e[_0x4ec3be('0x4f')]['id']&&delete _0x3ab15e[_0x4ec3be('0x4f')]['id'],db[_0x4ec3be('0x57')]['findOne']({'where':{'id':_0x3ab15e[_0x4ec3be('0x4a')]['id']}})[_0x4ec3be('0x19')](handleEntityNotFound(_0x3e021d,null))[_0x4ec3be('0x19')](function(_0x5c9fe9){const _0x59aa84=_0x4ec3be;if(_0x5c9fe9)return _0x3ab15e[_0x59aa84('0x4f')]['OpenchannelAccountId']=_0x5c9fe9['id'],db[_0x59aa84('0xc')][_0x59aa84('0x93')](_0x3ab15e['body']);})[_0x4ec3be('0x19')](respondWithResult(_0x3e021d,null))[_0x4ec3be('0x7d')](handleError(_0x3e021d,null));},exports[_0x2eeb5f('0x1c')]=function(_0x4f124f,_0x503468){const _0x4f081b=_0x2eeb5f;let _0x350a48={'raw':![],'where':{}};const _0x4fdb2d={},_0x2b870f={'count':0x0,'rows':[]};return db[_0x4f081b('0x57')]['findOne']({'where':{'id':_0x4f124f[_0x4f081b('0x4a')]['id']}})[_0x4f081b('0x19')](handleEntityNotFound(_0x503468,null))[_0x4f081b('0x19')](function(_0x4bb83b){const _0x28bb1c=_0x4f081b;if(_0x4bb83b)return _0x4fdb2d[_0x28bb1c('0x5')]=_[_0x28bb1c('0x2d')](db[_0x28bb1c('0xc')][_0x28bb1c('0x21')]),_0x4fdb2d[_0x28bb1c('0x77')]=_[_0x28bb1c('0x2d')](_0x4f124f[_0x28bb1c('0x77')]),_0x4fdb2d[_0x28bb1c('0x16')]=_[_0x28bb1c('0x5d')](_0x4fdb2d['model'],_0x4fdb2d[_0x28bb1c('0x77')]),_0x350a48[_0x28bb1c('0x33')]=_['intersection'](_0x4fdb2d[_0x28bb1c('0x5')],qs[_0x28bb1c('0x4d')](_0x4f124f[_0x28bb1c('0x77')][_0x28bb1c('0x4d')])),_0x350a48[_0x28bb1c('0x33')]=_0x350a48['attributes'][_0x28bb1c('0x8')]?_0x350a48[_0x28bb1c('0x33')]:_0x4fdb2d[_0x28bb1c('0x5')],typeof _0x4f124f[_0x28bb1c('0x77')][_0x28bb1c('0x48')]==='undefined'&&(_0x350a48[_0x28bb1c('0x25')]=qs[_0x28bb1c('0x25')](_0x4f124f[_0x28bb1c('0x77')]['limit']),_0x350a48['offset']=qs['offset'](_0x4f124f[_0x28bb1c('0x77')]['offset'])),_0x350a48[_0x28bb1c('0x7c')]=qs[_0x28bb1c('0x2')](_0x4f124f[_0x28bb1c('0x77')][_0x28bb1c('0x2')]),_0x350a48[_0x28bb1c('0x30')]=qs['filters'](_[_0x28bb1c('0x41')](_0x4f124f[_0x28bb1c('0x77')],_0x4fdb2d[_0x28bb1c('0x16')])),_0x350a48[_0x28bb1c('0x30')][_0x28bb1c('0x86')]=_0x4bb83b['id'],_0x4f124f[_0x28bb1c('0x77')][_0x28bb1c('0x59')]&&(_0x350a48[_0x28bb1c('0x30')]=_[_0x28bb1c('0x70')](_0x350a48['where'],{[Op['or']]:_[_0x28bb1c('0x56')](_0x350a48[_0x28bb1c('0x33')],function(_0x3fa424){const _0x26ad63=_0x28bb1c,_0xd9a00d={};return _0xd9a00d[_0x3fa424]={[Op['like']]:'%'+_0x4f124f[_0x26ad63('0x77')][_0x26ad63('0x59')]+'%'},_0xd9a00d;})})),_0x350a48=_[_0x28bb1c('0x70')]({},_0x350a48,_0x4f124f[_0x28bb1c('0x74')]),db[_0x28bb1c('0xc')][_0x28bb1c('0x11')]({'where':_0x350a48[_0x28bb1c('0x30')]})['then'](function(_0x19d2e2){const _0x26c54b=_0x28bb1c;return _0x2b870f[_0x26c54b('0x11')]=_0x19d2e2,_0x4f124f[_0x26c54b('0x77')]['includeAll']&&(_0x350a48[_0x26c54b('0x20')]=[{'all':!![]}]),db[_0x26c54b('0xc')]['findAll'](_0x350a48);})['then'](function(_0x42c0e9){const _0x11088e=_0x28bb1c;return _0x2b870f[_0x11088e('0x27')]=_0x42c0e9,_0x2b870f;});})[_0x4f081b('0x19')](respondWithFilteredResult(_0x503468,_0x350a48))[_0x4f081b('0x7d')](handleError(_0x503468,null));},exports[_0x2eeb5f('0x89')]=function(_0x4b6890,_0xedaaef){const _0x3c7c60=_0x2eeb5f;return db[_0x3c7c60('0x57')][_0x3c7c60('0x13')]({'where':{'id':_0x4b6890[_0x3c7c60('0x4a')]['id']}})[_0x3c7c60('0x19')](handleEntityNotFound(_0xedaaef,null))['then'](function(_0x454538){const _0x453e85=_0x3c7c60;if(_0x454538)return _0x454538[_0x453e85('0x89')](_0x4b6890[_0x453e85('0x77')][_0x453e85('0x3e')]);})[_0x3c7c60('0x19')](respondWithStatusCode(_0xedaaef,null))[_0x3c7c60('0x7d')](handleError(_0xedaaef,null));},exports['addAnswer']=function(_0x4d6ae8,_0x416c1f){const _0x187cff=_0x2eeb5f;return _0x4d6ae8['body']['id']&&delete _0x4d6ae8['body']['id'],db[_0x187cff('0x57')][_0x187cff('0x13')]({'where':{'id':_0x4d6ae8['params']['id']}})[_0x187cff('0x19')](handleEntityNotFound(_0x416c1f,null))['then'](function(_0x3cd4f0){const _0x1771f2=_0x187cff;if(_0x3cd4f0)return _0x4d6ae8[_0x1771f2('0x4f')]['OpenchannelAccountId']=_0x3cd4f0['id'],db['CannedAnswer']['create'](_0x4d6ae8[_0x1771f2('0x4f')]);})['then'](respondWithResult(_0x416c1f,null))[_0x187cff('0x7d')](handleError(_0x416c1f,null));},exports[_0x2eeb5f('0x7e')]=function(_0x131f83,_0x477164){const _0x58781d=_0x2eeb5f;let _0x16221c={'raw':![],'where':{}};const _0x425ed6={},_0x236cd2={'count':0x0,'rows':[]};return db[_0x58781d('0x57')][_0x58781d('0x13')]({'where':{'id':_0x131f83['params']['id']}})[_0x58781d('0x19')](handleEntityNotFound(_0x477164,null))[_0x58781d('0x19')](function(_0x2d0b0a){const _0x41cb9e=_0x58781d;if(_0x2d0b0a)return _0x425ed6[_0x41cb9e('0x5')]=_[_0x41cb9e('0x2d')](db[_0x41cb9e('0x8b')][_0x41cb9e('0x21')]),_0x425ed6[_0x41cb9e('0x77')]=_[_0x41cb9e('0x2d')](_0x131f83[_0x41cb9e('0x77')]),_0x425ed6['filters']=_['intersection'](_0x425ed6[_0x41cb9e('0x5')],_0x425ed6['query']),_0x16221c[_0x41cb9e('0x33')]=_[_0x41cb9e('0x5d')](_0x425ed6[_0x41cb9e('0x5')],qs[_0x41cb9e('0x4d')](_0x131f83[_0x41cb9e('0x77')][_0x41cb9e('0x4d')])),_0x16221c[_0x41cb9e('0x33')]=_0x16221c[_0x41cb9e('0x33')][_0x41cb9e('0x8')]?_0x16221c[_0x41cb9e('0x33')]:_0x425ed6[_0x41cb9e('0x5')],typeof _0x131f83[_0x41cb9e('0x77')][_0x41cb9e('0x48')]==='undefined'&&(_0x16221c[_0x41cb9e('0x25')]=qs['limit'](_0x131f83[_0x41cb9e('0x77')][_0x41cb9e('0x25')]),_0x16221c[_0x41cb9e('0x14')]=qs[_0x41cb9e('0x14')](_0x131f83['query'][_0x41cb9e('0x14')])),_0x16221c[_0x41cb9e('0x7c')]=qs[_0x41cb9e('0x2')](_0x131f83[_0x41cb9e('0x77')][_0x41cb9e('0x2')]),_0x16221c[_0x41cb9e('0x30')]=qs[_0x41cb9e('0x16')](_[_0x41cb9e('0x41')](_0x131f83['query'],_0x425ed6[_0x41cb9e('0x16')])),_0x16221c[_0x41cb9e('0x30')][_0x41cb9e('0x86')]=_0x2d0b0a['id'],_0x131f83[_0x41cb9e('0x77')][_0x41cb9e('0x59')]&&(_0x16221c[_0x41cb9e('0x30')]=_[_0x41cb9e('0x70')](_0x16221c[_0x41cb9e('0x30')],{[Op['or']]:_['map'](_0x16221c['attributes'],function(_0xa0ff20){const _0xb6d43=_0x41cb9e,_0x488cd0={};return _0x488cd0[_0xa0ff20]={[Op[_0xb6d43('0x52')]]:'%'+_0x131f83[_0xb6d43('0x77')]['filter']+'%'},_0x488cd0;})})),_0x16221c=_[_0x41cb9e('0x70')]({},_0x16221c,_0x131f83['options']),db[_0x41cb9e('0x8b')][_0x41cb9e('0x11')]({'where':_0x16221c[_0x41cb9e('0x30')]})['then'](function(_0x4d022a){const _0x22dfe7=_0x41cb9e;return _0x236cd2[_0x22dfe7('0x11')]=_0x4d022a,_0x131f83[_0x22dfe7('0x77')]['includeAll']&&(_0x16221c['include']=[{'all':!![]}]),db['CannedAnswer'][_0x22dfe7('0x84')](_0x16221c);})[_0x41cb9e('0x19')](function(_0x5bf5be){const _0x373ceb=_0x41cb9e;return _0x236cd2[_0x373ceb('0x27')]=_0x5bf5be,_0x236cd2;});})[_0x58781d('0x19')](respondWithFilteredResult(_0x477164,_0x16221c))[_0x58781d('0x7d')](handleError(_0x477164,null));},exports[_0x2eeb5f('0x3b')]=function(_0x429fab,_0x458529){const _0x3b8943=_0x2eeb5f;return db[_0x3b8943('0x57')]['findOne']({'where':{'id':_0x429fab['params']['id']}})['then'](handleEntityNotFound(_0x458529,null))[_0x3b8943('0x19')](function(_0x4a550f){const _0x593cc7=_0x3b8943;if(_0x4a550f)return _0x4a550f[_0x593cc7('0x3b')](_0x429fab[_0x593cc7('0x77')][_0x593cc7('0x3e')]);})[_0x3b8943('0x19')](respondWithStatusCode(_0x458529,null))[_0x3b8943('0x7d')](handleError(_0x458529,null));},exports[_0x2eeb5f('0x9')]=function(_0x4ac2c5,_0x565913){const _0x2a3a04=_0x2eeb5f,_0x18776c={'body':_0x4ac2c5[_0x2a3a04('0x4f')],'channel':_0x2a3a04('0x69')};let _0x366da8=[],_0x5b56a3=[];const _0x7c344e={};let _0x38b54c=![];return db[_0x2a3a04('0x75')][_0x2a3a04('0x6f')]()['then'](function(_0x31f447){const _0x3d5727=_0x2a3a04;if(!_0x31f447)throw new db[(_0x3d5727('0x36'))][(_0x3d5727('0x3f'))](_0x3d5727('0x65'));_0x366da8=_['difference'](_[_0x3d5727('0x2d')](_0x31f447),[_0x3d5727('0x5e'),_0x3d5727('0x91')]),_0x5b56a3=_['difference'](_['keys'](_0x31f447),[_0x3d5727('0x5e'),_0x3d5727('0x91'),'CompanyId',_0x3d5727('0x4b')]);_0x4ac2c5[_0x3d5727('0x4f')]['id']&&delete _0x4ac2c5['body']['id'];if(_[_0x3d5727('0x81')](_0x4ac2c5[_0x3d5727('0x4f')][_0x3d5727('0x44')]))throw new db[(_0x3d5727('0x36'))][(_0x3d5727('0x3f'))](_0x3d5727('0x45'));if(_[_0x3d5727('0x81')](_0x4ac2c5[_0x3d5727('0x4f')][_0x3d5727('0x4f')])||_0x4ac2c5[_0x3d5727('0x4f')][_0x3d5727('0x4f')]==='')throw new db['Sequelize'][(_0x3d5727('0x3f'))]('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x3d5727('0x81')](_0x4ac2c5[_0x3d5727('0x4f')]['mapKey']))throw new db[(_0x3d5727('0x36'))][(_0x3d5727('0x3f'))]('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x5b56a3);if(!_['includes'](_0x5b56a3,_0x4ac2c5[_0x3d5727('0x4f')][_0x3d5727('0x5c')]))throw new db[(_0x3d5727('0x36'))]['ValidationError']('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x5b56a3);_0x7c344e[_0x4ac2c5[_0x3d5727('0x4f')][_0x3d5727('0x5c')]]=_0x4ac2c5['body'][_0x3d5727('0x44')];})[_0x2a3a04('0x19')](function(){const _0x4b869c=_0x2a3a04;return db[_0x4b869c('0x57')][_0x4b869c('0x13')]({'where':{'id':_0x4ac2c5[_0x4b869c('0x4a')]['id']},'include':[{'model':db['CmList'],'as':'List','include':[{'model':db['CmContact'],'as':_0x4b869c('0x53'),'where':_0x7c344e,'limit':0x1,'order':[[_0x4b869c('0x91'),_0x4b869c('0x64')]]}]},{'model':db[_0x4b869c('0x10')],'as':'Applications'}]});})['then'](handleEntityNotFound(_0x565913,null))[_0x2a3a04('0x19')](function(_0x4e7396){const _0x299921=_0x2a3a04;if(_0x4e7396&&_0x4e7396['List']){_0x18776c[_0x299921('0x1e')]=_0x4e7396,_0x18776c[_0x299921('0x79')]=_0x4e7396[_0x299921('0x6b')],_0x18776c[_0x299921('0x8e')]=_0x4e7396[_0x299921('0x2e')],_0x18776c[_0x299921('0x79')]=_[_0x299921('0xd')](_0x18776c[_0x299921('0x79')],[_0x299921('0x98')],['asc']);_0x18776c['account']['Applications']&&delete _0x18776c[_0x299921('0x1e')][_0x299921('0x6b')];if(_0x18776c[_0x299921('0x1e')][_0x299921('0x2e')]&&_0x18776c[_0x299921('0x1e')][_0x299921('0x2e')][_0x299921('0x53')]['length'])return _0x18776c['account'][_0x299921('0x2e')]['Contacts'][0x0];const _0x2177fc=_[_0x299921('0x96')](_0x4ac2c5[_0x299921('0x4f')],{'firstName':_0x4ac2c5[_0x299921('0x4f')][_0x299921('0x44')],'ListId':_0x4e7396[_0x299921('0x4b')]});return _0x2177fc[_0x4ac2c5[_0x299921('0x4f')][_0x299921('0x5c')]]=_0x4ac2c5[_0x299921('0x4f')][_0x299921('0x44')],db['CmContact']['create'](_0x2177fc,{'fields':_0x366da8,'raw':!![]});}})[_0x2a3a04('0x19')](handleEntityNotFound(_0x565913,null))['then'](function(_0x163bc0){const _0xda2505=_0x2a3a04;_0x18776c['contact']=_0x163bc0;if(_0x163bc0){const _0x4f156a={'ContactId':_0x163bc0['id'],'OpenchannelAccountId':_0x4ac2c5[_0xda2505('0x4a')]['id'],'from':(_0x163bc0[_0xda2505('0x3')]||'')+'\x20'+(_0x163bc0[_0xda2505('0xf')]||'')},_0x3ae165={'OpenchannelAccountId':_0x4ac2c5['params']['id'],'closed':![]};if(_0x4ac2c5[_0xda2505('0x4f')]['threadId'])return _0x3ae165['threadId']=_0x4ac2c5['body'][_0xda2505('0x97')],db[_0xda2505('0x2f')][_0xda2505('0x13')]({'where':_0x3ae165})[_0xda2505('0x19')](function(_0x57bec5){const _0x6d4437=_0xda2505;if(_0x57bec5)return[_0x57bec5,![]];return _0x4f156a[_0x6d4437('0x97')]=_0x4ac2c5[_0x6d4437('0x4f')][_0x6d4437('0x97')],_0x4f156a[_0x6d4437('0x43')]=_0x4ac2c5[_0x6d4437('0x4f')]['externalUrl'],db['OpenchannelInteraction'][_0x6d4437('0x93')](_0x4f156a)['then'](function(_0x3b65b3){return[_0x3b65b3,!![]];});});else _0x3ae165[_0xda2505('0x97')]=null;return _0x3ae165[_0xda2505('0x80')]=_0x163bc0['id'],db[_0xda2505('0x2f')][_0xda2505('0x13')]({'where':_0x3ae165})[_0xda2505('0x19')](function(_0x44d065){const _0x9fdd8e=_0xda2505;if(_0x44d065)return[_0x44d065,![]];return db[_0x9fdd8e('0x2f')]['create'](_0x4f156a)[_0x9fdd8e('0x19')](function(_0x422b37){return[_0x422b37,!![]];});});}})['then'](function([_0x2b24b1,_0x41d5b2]){const _0x3edbaf=_0x2a3a04;if(_0x2b24b1){_0x38b54c=_0x41d5b2;if(!_0x41d5b2){const _0x1b6326={'from':(_0x18776c[_0x3edbaf('0x9c')][_0x3edbaf('0x3')]||'')+'\x20'+(_0x18776c[_0x3edbaf('0x9c')][_0x3edbaf('0xf')]||'')};return _0x4ac2c5[_0x3edbaf('0x4f')][_0x3edbaf('0x97')]&&_0x4ac2c5[_0x3edbaf('0x4f')][_0x3edbaf('0x63')]&&_0x4ac2c5[_0x3edbaf('0x4f')][_0x3edbaf('0x97')]!=_0x4ac2c5[_0x3edbaf('0x4f')][_0x3edbaf('0x63')]&&(_0x1b6326['threadId']=_0x4ac2c5[_0x3edbaf('0x4f')][_0x3edbaf('0x63')]),_0x2b24b1[_0x3edbaf('0x6d')](_0x1b6326);}else return _0x2b24b1;}})[_0x2a3a04('0x19')](function(_0x442e52){const _0x3e7d7f=_0x2a3a04;return _0x18776c[_0x3e7d7f('0x2a')]=_0x442e52[_0x3e7d7f('0x38')]({'plain':!![]}),_0x18776c[_0x3e7d7f('0x2a')][_0x3e7d7f('0x76')]=_0x38b54c,_0x18776c[_0x3e7d7f('0x2a')]['created']&&(_0x18776c['account'][_0x3e7d7f('0x4e')]&&_0x18776c[_0x3e7d7f('0x79')]['push']({'id':0x0,'priority':_0x18776c[_0x3e7d7f('0x79')][_0x3e7d7f('0x8')]+0x1,'app':_0x3e7d7f('0x17'),'appdata':_0x3e7d7f('0x5a'),'interval':_0x3e7d7f('0x8d')})),db['OpenchannelMessage'][_0x3e7d7f('0x93')]({'body':_0x4ac2c5[_0x3e7d7f('0x4f')][_0x3e7d7f('0x4f')],'OpenchannelAccountId':_0x4ac2c5[_0x3e7d7f('0x4a')]['id'],'OpenchannelInteractionId':_0x442e52['id'],'direction':'in','ContactId':_0x18776c[_0x3e7d7f('0x9c')]['id'],'AttachmentId':_0x4ac2c5[_0x3e7d7f('0x4f')]['AttachmentId']});})['then'](function(_0x290a90){const _0x1ccf61=_0x2a3a04;_0x18776c['message']=_0x290a90;if(_0x18776c[_0x1ccf61('0x2a')]['UserId'])return db[_0x1ccf61('0x42')][_0x1ccf61('0x13')]({'attributes':['id','name'],'where':{'id':_0x18776c[_0x1ccf61('0x2a')][_0x1ccf61('0x49')]}})[_0x1ccf61('0x19')](function(_0x252901){const _0x487009=_0x1ccf61;return _0x252901&&(_0x18776c[_0x487009('0x79')][_0x487009('0x26')]({'id':0x0,'priority':0x0,'app':_0x487009('0x6e'),'appdata':_0x252901[_0x487009('0x72')]+','+(_0x18776c[_0x487009('0x1e')][_0x487009('0x7f')]||0xa),'interval':_0x487009('0x8d')}),_0x18776c[_0x487009('0x67')]=![]),respondWithRpcPromise(_0x487009('0x1b'),_0x487009('0x32'),_0x18776c);});return respondWithRpcPromise('Start','startRouting',_0x18776c);})['then'](function(_0x5b936a){const _0x34bc70=_0x2a3a04;return respondWithRpcPromise('EventManager',_0x34bc70('0x92'),{'event':'notify','message':_0x5b936a},client9002),_0x5b936a;})['then'](respondWithResult(_0x565913,null))[_0x2a3a04('0x7d')](handleError(_0x565913,null));},exports[_0x2eeb5f('0x66')]=function(_0x3bcd1b,_0x43dd43){const _0x119f91=_0x2eeb5f;return db[_0x119f91('0x57')][_0x119f91('0x13')]({'where':{'id':_0x3bcd1b[_0x119f91('0x4a')]['id']}})[_0x119f91('0x19')](handleEntityNotFound(_0x43dd43,null))[_0x119f91('0x19')](function(_0xbcff0a){const _0xa80430=_0x119f91;if(_0xbcff0a)return db[_0xa80430('0x0')]['transaction'](function(_0x344799){const _0x1c617f=_0xa80430;return db['OpenchannelApplication'][_0x1c617f('0x5b')]({'where':{'OpenchannelAccountId':_0x3bcd1b[_0x1c617f('0x4a')]['id']},'transaction':_0x344799})[_0x1c617f('0x19')](function(){const _0x12a336=_0x1c617f,_0x3adc2b=_[_0x12a336('0x56')](_0x3bcd1b[_0x12a336('0x4f')],function(_0xe9beff){const _0x1e7001=_0x12a336;return _0xe9beff[_0x1e7001('0x86')]=_0x3bcd1b['params']['id'],_0xe9beff;});return db[_0x12a336('0x10')]['bulkCreate'](_0x3adc2b,{'transaction':_0x344799});});})[_0xa80430('0x19')](function(){const _0x92a208=_0xa80430;return db[_0x92a208('0x10')][_0x92a208('0x68')]({'where':{'OpenchannelAccountId':_0x3bcd1b['params']['id']},'order':_0x92a208('0x98')});});})['then'](respondWithResult(_0x43dd43,null))[_0x119f91('0x7d')](handleError(_0x43dd43,null));},exports[_0x2eeb5f('0x2b')]=function(_0x43972d,_0x3e19c4){const _0x39a665=_0x2eeb5f;let _0x328e72={};const _0x5080e0={};let _0x217cb9,_0x5292eb;return db[_0x39a665('0x57')][_0x39a665('0x13')]({'where':{'id':_0x43972d[_0x39a665('0x4a')]['id']}})['then'](handleEntityNotFound(_0x3e19c4,null))[_0x39a665('0x19')](function(_0x104b21){const _0x1960b6=_0x39a665;if(_0x104b21)return _0x217cb9=_0x104b21,_0x5080e0[_0x1960b6('0x5')]=_['keys'](db['OpenchannelApplication'][_0x1960b6('0x21')]),_0x5080e0['query']=_[_0x1960b6('0x2d')](_0x43972d[_0x1960b6('0x77')]),_0x5080e0[_0x1960b6('0x16')]=_[_0x1960b6('0x5d')](_0x5080e0[_0x1960b6('0x5')],_0x5080e0[_0x1960b6('0x77')]),_0x328e72[_0x1960b6('0x33')]=_['intersection'](_0x5080e0[_0x1960b6('0x5')],qs[_0x1960b6('0x4d')](_0x43972d[_0x1960b6('0x77')][_0x1960b6('0x4d')])),_0x328e72['attributes']=_0x328e72['attributes']['length']?_0x328e72[_0x1960b6('0x33')]:_0x5080e0['model'],_0x328e72['order']=qs[_0x1960b6('0x2')](_0x43972d['query'][_0x1960b6('0x2')]),_0x328e72[_0x1960b6('0x30')]=qs[_0x1960b6('0x16')](_[_0x1960b6('0x41')](_0x43972d[_0x1960b6('0x77')],_0x5080e0[_0x1960b6('0x16')])),_0x43972d[_0x1960b6('0x77')][_0x1960b6('0x59')]&&(_0x328e72[_0x1960b6('0x30')]=_[_0x1960b6('0x70')](_0x328e72[_0x1960b6('0x30')],{[Op['or']]:_['map'](_0x328e72[_0x1960b6('0x33')],function(_0x5b2b7b){const _0xf50631=_0x1960b6,_0x5a98b4={};return _0x5a98b4[_0x5b2b7b]={[Op[_0xf50631('0x52')]]:'%'+_0x43972d['query'][_0xf50631('0x59')]+'%'},_0x5a98b4;})})),_0x328e72=_[_0x1960b6('0x70')]({},_0x328e72,_0x43972d[_0x1960b6('0x74')]),_0x217cb9[_0x1960b6('0x2b')](_0x328e72);})['then'](function(_0x45b790){const _0x5a82ac=_0x39a665;if(_0x45b790)return _0x5292eb=_0x45b790[_0x5a82ac('0x8')],typeof _0x43972d[_0x5a82ac('0x77')][_0x5a82ac('0x48')]==='undefined'&&(_0x328e72[_0x5a82ac('0x25')]=qs[_0x5a82ac('0x25')](_0x43972d[_0x5a82ac('0x77')][_0x5a82ac('0x25')]),_0x328e72['offset']=qs[_0x5a82ac('0x14')](_0x43972d[_0x5a82ac('0x77')][_0x5a82ac('0x14')])),_0x217cb9['getApplications'](_0x328e72);})[_0x39a665('0x19')](function(_0xd6d2f4){if(_0xd6d2f4)return _0xd6d2f4?{'count':_0x5292eb,'rows':_0xd6d2f4}:null;})[_0x39a665('0x19')](respondWithResult(_0x3e19c4,null))[_0x39a665('0x7d')](handleError(_0x3e19c4,null));},exports[_0x2eeb5f('0x47')]=function(_0x3575fc,_0x29936c){const _0x24e0a6=_0x2eeb5f;let _0x5c7cc8={'raw':![],'where':{}};const _0x5852be={},_0x1bd9e2={'count':0x0,'rows':[]};return db[_0x24e0a6('0x57')][_0x24e0a6('0x13')]({'where':{'id':_0x3575fc[_0x24e0a6('0x4a')]['id']}})[_0x24e0a6('0x19')](handleEntityNotFound(_0x29936c,null))[_0x24e0a6('0x19')](function(_0x343285){const _0x54c132=_0x24e0a6;if(_0x343285)return _0x5852be[_0x54c132('0x5')]=_[_0x54c132('0x2d')](db[_0x54c132('0x2f')][_0x54c132('0x21')]),_0x5852be[_0x54c132('0x77')]=_[_0x54c132('0x2d')](_0x3575fc[_0x54c132('0x77')]),_0x5852be[_0x54c132('0x16')]=_[_0x54c132('0x5d')](_0x5852be[_0x54c132('0x5')],_0x5852be[_0x54c132('0x77')]),_0x5c7cc8['attributes']=_[_0x54c132('0x5d')](_0x5852be['model'],qs[_0x54c132('0x4d')](_0x3575fc['query'][_0x54c132('0x4d')])),_0x5c7cc8[_0x54c132('0x33')]=_0x5c7cc8[_0x54c132('0x33')][_0x54c132('0x8')]?_0x5c7cc8[_0x54c132('0x33')]:_0x5852be['model'],typeof _0x3575fc[_0x54c132('0x77')][_0x54c132('0x48')]==='undefined'&&(_0x5c7cc8['limit']=qs['limit'](_0x3575fc[_0x54c132('0x77')][_0x54c132('0x25')]),_0x5c7cc8['offset']=qs[_0x54c132('0x14')](_0x3575fc['query'][_0x54c132('0x14')])),_0x5c7cc8[_0x54c132('0x7c')]=qs['sort'](_0x3575fc[_0x54c132('0x77')][_0x54c132('0x2')]),_0x5c7cc8[_0x54c132('0x30')]=qs['filters'](_[_0x54c132('0x41')](_0x3575fc[_0x54c132('0x77')],_0x5852be[_0x54c132('0x16')])),_0x5c7cc8[_0x54c132('0x30')][_0x54c132('0x86')]=_0x343285['id'],_0x3575fc['query'][_0x54c132('0x59')]&&(_0x5c7cc8['where']=_['merge'](_0x5c7cc8[_0x54c132('0x30')],{[Op['or']]:_[_0x54c132('0x56')](_0x5c7cc8[_0x54c132('0x33')],function(_0x5871d7){const _0x8b4770=_0x54c132,_0xfe2d45={};return _0xfe2d45[_0x5871d7]={[Op[_0x8b4770('0x52')]]:'%'+_0x3575fc[_0x8b4770('0x77')][_0x8b4770('0x59')]+'%'},_0xfe2d45;})})),_0x5c7cc8=_[_0x54c132('0x70')]({},_0x5c7cc8,_0x3575fc[_0x54c132('0x74')]),db[_0x54c132('0x2f')][_0x54c132('0x11')]({'where':_0x5c7cc8['where']})[_0x54c132('0x19')](function(_0x515e06){const _0x4c8166=_0x54c132;return _0x1bd9e2['count']=_0x515e06,_0x3575fc['query'][_0x4c8166('0x34')]&&(_0x5c7cc8[_0x4c8166('0x20')]=[{'model':db[_0x4c8166('0x75')],'as':_0x4c8166('0x1f'),'required':![]},{'model':db[_0x4c8166('0x42')],'as':_0x4c8166('0x1d'),'attributes':['name',_0x4c8166('0x29'),_0x4c8166('0x37')],'required':![]},{'model':db[_0x4c8166('0x31')],'as':_0x4c8166('0x8a'),'attributes':['id',_0x4c8166('0x72'),'color'],'where':_0x3575fc[_0x4c8166('0x77')]['tag']?{'id':_0x3575fc[_0x4c8166('0x77')][_0x4c8166('0x51')]}:undefined,'required':_0x3575fc[_0x4c8166('0x77')][_0x4c8166('0x51')]?!![]:![]}]),db[_0x4c8166('0x2f')][_0x4c8166('0x84')](_0x5c7cc8);})[_0x54c132('0x19')](function(_0x341529){const _0x8bceab=_0x54c132;return _0x1bd9e2[_0x8bceab('0x27')]=_0x341529,_0x1bd9e2;});})[_0x24e0a6('0x19')](respondWithFilteredResult(_0x29936c,_0x5c7cc8))[_0x24e0a6('0x7d')](handleError(_0x29936c,null));},exports[_0x2eeb5f('0x60')]=function(_0x4e1cae,_0x522a54){const _0xf8cc8b=_0x2eeb5f;return db[_0xf8cc8b('0x57')][_0xf8cc8b('0x13')]({'where':{'id':_0x4e1cae[_0xf8cc8b('0x4a')]['id']}})[_0xf8cc8b('0x19')](function(_0x17e589){const _0x599a8f=_0xf8cc8b;if(_0x17e589)return _0x17e589[_0x599a8f('0x60')](_0x4e1cae[_0x599a8f('0x4f')]['ids'],{'through':_[_0x599a8f('0x18')](_0x4e1cae[_0x599a8f('0x4f')],['ids','id'])})[_0x599a8f('0x19')](function(_0x110526){const _0x28fc5b=_0x599a8f;for(let _0x198d76=0x0;_0x198d76<_0x4e1cae[_0x28fc5b('0x4f')][_0x28fc5b('0x3e')][_0x28fc5b('0x8')];_0x198d76+=0x1){socket[_0x28fc5b('0x95')](_0x28fc5b('0x3d'),{'UserId':_0x4e1cae[_0x28fc5b('0x4f')][_0x28fc5b('0x3e')][_0x198d76],'OpenchannelAccountId':_0x4e1cae[_0x28fc5b('0x4a')]['id']});}return _0x110526;});})['then'](respondWithResult(_0x522a54,null))[_0xf8cc8b('0x7d')](handleError(_0x522a54,null));},exports[_0x2eeb5f('0x8c')]=function(_0x453fbe,_0x98ada3){const _0x119465=_0x2eeb5f;return db[_0x119465('0x57')][_0x119465('0x13')]({'where':{'id':_0x453fbe[_0x119465('0x4a')]['id']}})['then'](handleEntityNotFound(_0x98ada3,null))[_0x119465('0x19')](function(_0x31e574){const _0xb93a9c=_0x119465;if(_0x31e574)return _0x31e574[_0xb93a9c('0x8c')](_0x453fbe[_0xb93a9c('0x77')][_0xb93a9c('0x3e')])[_0xb93a9c('0x19')](function(){const _0x347e9b=_0xb93a9c;if(_[_0x347e9b('0x73')](_0x453fbe['query'][_0x347e9b('0x3e')]))for(let _0x3d6e98=0x0;_0x3d6e98<_0x453fbe[_0x347e9b('0x77')][_0x347e9b('0x3e')][_0x347e9b('0x8')];_0x3d6e98+=0x1){socket[_0x347e9b('0x95')](_0x347e9b('0x39'),{'UserId':Number(_0x453fbe[_0x347e9b('0x77')][_0x347e9b('0x3e')][_0x3d6e98]),'OpenchannelAccountId':Number(_0x453fbe[_0x347e9b('0x4a')]['id'])});}else socket[_0x347e9b('0x95')](_0x347e9b('0x39'),{'UserId':Number(_0x453fbe[_0x347e9b('0x77')]['ids']),'OpenchannelAccountId':Number(_0x453fbe[_0x347e9b('0x4a')]['id'])});});})['then'](respondWithStatusCode(_0x98ada3,null))[_0x119465('0x7d')](handleError(_0x98ada3,null));},exports[_0x2eeb5f('0x99')]=function(_0xcf295a,_0x2390f2){const _0x226c74=_0x2eeb5f;let _0x596c6f={};const _0x2a1324={};let _0x1e8723,_0x130a00;return db[_0x226c74('0x57')][_0x226c74('0x13')]({'where':{'id':_0xcf295a[_0x226c74('0x4a')]['id']}})[_0x226c74('0x19')](handleEntityNotFound(_0x2390f2,null))[_0x226c74('0x19')](function(_0x57aaa5){const _0x4c9433=_0x226c74;if(_0x57aaa5)return _0x1e8723=_0x57aaa5,_0x2a1324[_0x4c9433('0x5')]=_[_0x4c9433('0x2d')](db[_0x4c9433('0x42')][_0x4c9433('0x21')]),_0x2a1324[_0x4c9433('0x77')]=_[_0x4c9433('0x2d')](_0xcf295a['query']),_0x2a1324[_0x4c9433('0x16')]=_[_0x4c9433('0x5d')](_0x2a1324['model'],_0x2a1324[_0x4c9433('0x77')]),_0x596c6f[_0x4c9433('0x33')]=_[_0x4c9433('0x5d')](_0x2a1324[_0x4c9433('0x5')],qs[_0x4c9433('0x4d')](_0xcf295a[_0x4c9433('0x77')][_0x4c9433('0x4d')])),_0x596c6f['attributes']=_0x596c6f['attributes'][_0x4c9433('0x8')]?_0x596c6f[_0x4c9433('0x33')]:_0x2a1324['model'],_0x596c6f[_0x4c9433('0x7c')]=qs[_0x4c9433('0x2')](_0xcf295a['query'][_0x4c9433('0x2')]),_0x596c6f['where']=qs[_0x4c9433('0x16')](_[_0x4c9433('0x41')](_0xcf295a['query'],_0x2a1324[_0x4c9433('0x16')])),_0xcf295a[_0x4c9433('0x77')][_0x4c9433('0x59')]&&(_0x596c6f['where']=_[_0x4c9433('0x70')](_0x596c6f['where'],{[Op['or']]:_[_0x4c9433('0x56')](_0x596c6f[_0x4c9433('0x33')],function(_0x2d70d4){const _0x5746f6=_0x4c9433,_0x11cf54={};return _0x11cf54[_0x2d70d4]={[Op[_0x5746f6('0x52')]]:'%'+_0xcf295a['query'][_0x5746f6('0x59')]+'%'},_0x11cf54;})})),_0x596c6f=_[_0x4c9433('0x70')]({},_0x596c6f,_0xcf295a[_0x4c9433('0x74')]),_0x1e8723['getAgents'](_0x596c6f);})[_0x226c74('0x19')](function(_0x422d14){const _0x4100d7=_0x226c74;if(_0x422d14)return _0x130a00=_0x422d14['length'],typeof _0xcf295a[_0x4100d7('0x77')][_0x4100d7('0x48')]==='undefined'&&(_0x596c6f[_0x4100d7('0x25')]=qs[_0x4100d7('0x25')](_0xcf295a[_0x4100d7('0x77')][_0x4100d7('0x25')]),_0x596c6f[_0x4100d7('0x14')]=qs[_0x4100d7('0x14')](_0xcf295a['query'][_0x4100d7('0x14')])),_0x1e8723['getAgents'](_0x596c6f);})[_0x226c74('0x19')](function(_0x31a702){if(_0x31a702)return _0x31a702?{'count':_0x130a00,'rows':_0x31a702}:null;})[_0x226c74('0x19')](respondWithResult(_0x2390f2,null))['catch'](handleError(_0x2390f2,null));},exports[_0x2eeb5f('0xb')]=function(_0x3a0a95,_0x19ceb4){const _0x24b7be=_0x2eeb5f;let _0x287323,_0x323986;if(_[_0x24b7be('0x81')](_0x3a0a95['body'][_0x24b7be('0x4f')])||_0x3a0a95['body'][_0x24b7be('0x4f')]==='')throw new db[(_0x24b7be('0x36'))][(_0x24b7be('0x3f'))](_0x24b7be('0x55'));if(_[_0x24b7be('0x81')](_0x3a0a95[_0x24b7be('0x4f')]['to'])){}const _0x5d9e6c=_0x3a0a95[_0x24b7be('0x4f')]['to'];return db[_0x24b7be('0x57')]['findOne']({'where':{'id':_0x3a0a95[_0x24b7be('0x4a')]['id']}})[_0x24b7be('0x19')](handleEntityNotFound(_0x19ceb4,null))['then'](function(_0x2a3447){const _0x91467d=_0x24b7be;if(_0x2a3447)return db[_0x91467d('0x57')][_0x91467d('0x13')]({'where':{'id':_0x2a3447['id']},'include':[{'model':db[_0x91467d('0x15')],'as':'List','include':[{'model':db[_0x91467d('0x75')],'as':_0x91467d('0x53'),'where':{[_0x2a3447[_0x91467d('0x5c')]]:_0x5d9e6c},'limit':0x1,'order':[[_0x91467d('0x91'),_0x91467d('0x64')]]}]}]})[_0x91467d('0x19')](handleEntityNotFound(_0x19ceb4,null))[_0x91467d('0x19')](function(_0x3a0db5){const _0x34b4dc=_0x91467d;if(_0x3a0db5&&_0x3a0db5[_0x34b4dc('0x2e')]){_0x287323=_0x3a0db5['get']({'plain':!![]});if(_0x287323[_0x34b4dc('0x2e')]&&_0x287323['List'][_0x34b4dc('0x53')][_0x34b4dc('0x8')])return _0x287323[_0x34b4dc('0x2e')][_0x34b4dc('0x53')][0x0];return db[_0x34b4dc('0x75')][_0x34b4dc('0x93')](_['defaults'](_0x3a0a95['body'],{'firstName':_0x5d9e6c,[_0x3a0db5[_0x34b4dc('0x5c')]]:_0x5d9e6c,'phone':_0x5d9e6c,'ListId':_0x287323['ListId']}));}})['then'](handleEntityNotFound(_0x19ceb4,null))[_0x91467d('0x19')](function(_0xb1de4f){const _0x4a71d6=_0x91467d;if(_0xb1de4f)return _0x323986=_0xb1de4f,db[_0x4a71d6('0x2f')]['findOne']({'where':{'ContactId':_0x323986['id'],'closed':![],'OpenchannelAccountId':_0x287323['id']}})[_0x4a71d6('0x19')](function(_0x13e02d){const _0x2b982a=_0x4a71d6;if(_0x13e02d)return[_0x13e02d,![]];return db[_0x2b982a('0x2f')]['create']({'UserId':_0x3a0a95[_0x2b982a('0x78')]['id'],'ContactId':_0x323986['id'],'OpenchannelAccountId':_0x287323['id'],'lastMsgDirection':'out','Messages':[_[_0x2b982a('0x70')](_0x3a0a95['body'],{'read':![],'body':_0x3a0a95[_0x2b982a('0x4f')]['body'],'OpenchannelAccountId':_0x287323['id'],'UserId':_0x3a0a95['user']['id'],'ContactId':_0x323986['id']})]},{'include':[{'model':db['OpenchannelMessage'],'as':'Messages'}]})['then'](function(_0xb5af74){return[_0xb5af74,!![]];});});})['then'](function([_0x3623c1,_0x4cdd81]){const _0x30ffe2=_0x91467d;if(_0x4cdd81)return _0x3623c1;return db[_0x30ffe2('0x83')][_0x30ffe2('0x93')](_[_0x30ffe2('0x70')](_0x3a0a95[_0x30ffe2('0x4f')],{'read':![],'body':_0x3a0a95[_0x30ffe2('0x4f')]['body'],'OpenchannelAccountId':_0x287323['id'],'OpenchannelInteractionId':_0x3623c1['id'],'UserId':_0x3a0a95['user']['id'],'ContactId':_0x323986['id']}))['then'](function(_0x558b20){const _0x179e24=_0x30ffe2;return _0x3623c1['dataValues'][_0x179e24('0x24')]=[],_0x3623c1['dataValues'][_0x179e24('0x24')][_0x179e24('0x3a')](_0x558b20[_0x179e24('0x50')]),_0x3623c1;});});})['then'](respondWithResult(_0x19ceb4,null))[_0x24b7be('0x7d')](handleError(_0x19ceb4,null));}; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.events.js b/server/api/openchannelAccount/openchannelAccount.events.js index f1dabb3..0d3936b 100644 --- a/server/api/openchannelAccount/openchannelAccount.events.js +++ b/server/api/openchannelAccount/openchannelAccount.events.js @@ -1 +1 @@ -const a469_0x347d=['remove','save','update','exports','addHook'];(function(_0xd761f9,_0x347d47){const _0x223e98=function(_0x3f534d){while(--_0x3f534d){_0xd761f9['push'](_0xd761f9['shift']());}};_0x223e98(++_0x347d47);}(a469_0x347d,0x181));const a469_0x223e=function(_0xd761f9,_0x347d47){_0xd761f9=_0xd761f9-0x0;let _0x223e98=a469_0x347d[_0xd761f9];return _0x223e98;};const _0x3d1475=a469_0x223e;'use strict';const EventEmitter=require('events'),OpenchannelAccount=require('../../mysqldb')['db']['OpenchannelAccount'],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x3d1475('0x1'),'afterUpdate':_0x3d1475('0x2'),'afterDestroy':_0x3d1475('0x0')};function emitEvent(_0x3f534d){return function(_0x461fac){OpenchannelAccountEvents['emit'](_0x3f534d+':'+_0x461fac['id'],_0x461fac),OpenchannelAccountEvents['emit'](_0x3f534d,_0x461fac);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelAccount[_0x3d1475('0x4')](e,emitEvent(event));}}module[_0x3d1475('0x3')]=OpenchannelAccountEvents; \ No newline at end of file +const a469_0x59a5=['addHook','update','emit','exports','../../mysqldb','save','remove','setMaxListeners'];(function(_0x5d2ad2,_0x59a58b){const _0x11843b=function(_0x2f6c06){while(--_0x2f6c06){_0x5d2ad2['push'](_0x5d2ad2['shift']());}};_0x11843b(++_0x59a58b);}(a469_0x59a5,0x9b));const a469_0x1184=function(_0x5d2ad2,_0x59a58b){_0x5d2ad2=_0x5d2ad2-0x0;let _0x11843b=a469_0x59a5[_0x5d2ad2];return _0x11843b;};const _0x8eb8a8=a469_0x1184;'use strict';const EventEmitter=require('events'),OpenchannelAccount=require(_0x8eb8a8('0x1'))['db']['OpenchannelAccount'],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[_0x8eb8a8('0x4')](0x0);const events={'afterCreate':_0x8eb8a8('0x2'),'afterUpdate':_0x8eb8a8('0x6'),'afterDestroy':_0x8eb8a8('0x3')};function emitEvent(_0x2f6c06){return function(_0x424c4f){const _0x566ef9=a469_0x1184;OpenchannelAccountEvents[_0x566ef9('0x7')](_0x2f6c06+':'+_0x424c4f['id'],_0x424c4f),OpenchannelAccountEvents['emit'](_0x2f6c06,_0x424c4f);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelAccount[_0x8eb8a8('0x5')](e,emitEvent(event));}}module[_0x8eb8a8('0x0')]=OpenchannelAccountEvents; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.model.js b/server/api/openchannelAccount/openchannelAccount.model.js index 8b630f7..5f8b420 100644 --- a/server/api/openchannelAccount/openchannelAccount.model.js +++ b/server/api/openchannelAccount/openchannelAccount.model.js @@ -1 +1 @@ -const a470_0x4a6a=['define','exports','OpenchannelAccount','openchannel_accounts'];(function(_0x2ca3b4,_0x4a6a7a){const _0x5ac313=function(_0x4693f7){while(--_0x4693f7){_0x2ca3b4['push'](_0x2ca3b4['shift']());}};_0x5ac313(++_0x4a6a7a);}(a470_0x4a6a,0x7b));const a470_0x5ac3=function(_0x2ca3b4,_0x4a6a7a){_0x2ca3b4=_0x2ca3b4-0x0;let _0x5ac313=a470_0x4a6a[_0x2ca3b4];return _0x5ac313;};const _0xb3e99a=a470_0x5ac3;'use strict';const attributes=require('./openchannelAccount.attributes');module[_0xb3e99a('0x2')]=function(_0x4693f7){const _0x1a0e15=_0xb3e99a,_0x65592=_0x4693f7[_0x1a0e15('0x1')](_0x1a0e15('0x3'),attributes,{'tableName':_0x1a0e15('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x65592;}; \ No newline at end of file +const a470_0x237e=['openchannel_accounts','exports'];(function(_0x2b6e29,_0x237ef){const _0x542e35=function(_0x3bd899){while(--_0x3bd899){_0x2b6e29['push'](_0x2b6e29['shift']());}};_0x542e35(++_0x237ef);}(a470_0x237e,0x102));const a470_0x542e=function(_0x2b6e29,_0x237ef){_0x2b6e29=_0x2b6e29-0x0;let _0x542e35=a470_0x237e[_0x2b6e29];return _0x542e35;};const _0x4d4a26=a470_0x542e;'use strict';const attributes=require('./openchannelAccount.attributes');module[_0x4d4a26('0x1')]=function(_0x3bd899){const _0x157cc5=_0x4d4a26,_0x5367b8=_0x3bd899['define']('OpenchannelAccount',attributes,{'tableName':_0x157cc5('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5367b8;}; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.rpc.js b/server/api/openchannelAccount/openchannelAccount.rpc.js index 9e2ed17..d14843a 100644 --- a/server/api/openchannelAccount/openchannelAccount.rpc.js +++ b/server/api/openchannelAccount/openchannelAccount.rpc.js @@ -1 +1 @@ -const a471_0x3ae8=['register','./openchannelAccount.socket'];(function(_0x1c406b,_0x3ae84a){const _0x1ce72b=function(_0x4f6c86){while(--_0x4f6c86){_0x1c406b['push'](_0x1c406b['shift']());}};_0x1ce72b(++_0x3ae84a);}(a471_0x3ae8,0x7d));const a471_0x1ce7=function(_0x1c406b,_0x3ae84a){_0x1c406b=_0x1c406b-0x0;let _0x1ce72b=a471_0x3ae8[_0x1c406b];return _0x1ce72b;};const _0x3b14a8=a471_0x1ce7;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x3b14a8('0x0'))[_0x3b14a8('0x1')](socket); \ No newline at end of file +const a471_0x1f4b=['./openchannelAccount.socket','../../rediscache','register'];(function(_0x5818b6,_0x1f4bbe){const _0x317e48=function(_0x2671b8){while(--_0x2671b8){_0x5818b6['push'](_0x5818b6['shift']());}};_0x317e48(++_0x1f4bbe);}(a471_0x1f4b,0x10f));const a471_0x317e=function(_0x5818b6,_0x1f4bbe){_0x5818b6=_0x5818b6-0x0;let _0x317e48=a471_0x1f4b[_0x5818b6];return _0x317e48;};const _0x4d59c7=a471_0x317e;'use strict';const {getSocket}=require(_0x4d59c7('0x0')),socket=getSocket();require(_0x4d59c7('0x2'))[_0x4d59c7('0x1')](socket); \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.socket.js b/server/api/openchannelAccount/openchannelAccount.socket.js index d6389a7..fde310f 100644 --- a/server/api/openchannelAccount/openchannelAccount.socket.js +++ b/server/api/openchannelAccount/openchannelAccount.socket.js @@ -1 +1 @@ -const a472_0x1f17=['save','openchannelAccount:','./openchannelAccount.events','remove','length','register','emit','update'];(function(_0x474719,_0x1f17c3){const _0x125a9d=function(_0x2ffc67){while(--_0x2ffc67){_0x474719['push'](_0x474719['shift']());}};_0x125a9d(++_0x1f17c3);}(a472_0x1f17,0x1c9));const a472_0x125a=function(_0x474719,_0x1f17c3){_0x474719=_0x474719-0x0;let _0x125a9d=a472_0x1f17[_0x474719];return _0x125a9d;};const _0xcbe5cb=a472_0x125a;'use strict';const OpenchannelAccountEvents=require(_0xcbe5cb('0x1')),events=[_0xcbe5cb('0x7'),_0xcbe5cb('0x2'),_0xcbe5cb('0x6')];function createListener(_0x2ffc67,_0x41792f){return function(_0x493fd8){const _0x4e33cc=a472_0x125a;_0x41792f[_0x4e33cc('0x5')](_0x2ffc67,_0x493fd8);};}exports[_0xcbe5cb('0x4')]=function(_0x5abe89){const _0x3063d3=_0xcbe5cb;for(let _0x46864c=0x0,_0xf2c7dc=events[_0x3063d3('0x3')];_0x46864c<_0xf2c7dc;_0x46864c++){const _0x55e0df=events[_0x46864c],_0x1ec24e=createListener(_0x3063d3('0x0')+_0x55e0df,_0x5abe89);OpenchannelAccountEvents['on'](_0x55e0df,_0x1ec24e);}}; \ No newline at end of file +const a472_0xe76a=['length','save','emit','remove','register','update','openchannelAccount:','./openchannelAccount.events'];(function(_0x402c23,_0xe76a10){const _0x41fc4b=function(_0x3dd15f){while(--_0x3dd15f){_0x402c23['push'](_0x402c23['shift']());}};_0x41fc4b(++_0xe76a10);}(a472_0xe76a,0x88));const a472_0x41fc=function(_0x402c23,_0xe76a10){_0x402c23=_0x402c23-0x0;let _0x41fc4b=a472_0xe76a[_0x402c23];return _0x41fc4b;};const _0x95c84c=a472_0x41fc;'use strict';const OpenchannelAccountEvents=require(_0x95c84c('0x7')),events=[_0x95c84c('0x1'),_0x95c84c('0x3'),_0x95c84c('0x5')];function createListener(_0x3dd15f,_0x2ed7d6){return function(_0x24d0e0){const _0x27bcf8=a472_0x41fc;_0x2ed7d6[_0x27bcf8('0x2')](_0x3dd15f,_0x24d0e0);};}exports[_0x95c84c('0x4')]=function(_0x4b53e0){const _0x44e2ca=_0x95c84c;for(let _0xf8b4c9=0x0,_0x7739a1=events[_0x44e2ca('0x0')];_0xf8b4c9<_0x7739a1;_0xf8b4c9++){const _0x5744b8=events[_0xf8b4c9],_0x51bdd4=createListener(_0x44e2ca('0x6')+_0x5744b8,_0x4b53e0);OpenchannelAccountEvents['on'](_0x5744b8,_0x51bdd4);}}; \ No newline at end of file diff --git a/server/api/openchannelApplication/index.js b/server/api/openchannelApplication/index.js index dcb2b24..748214e 100644 --- a/server/api/openchannelApplication/index.js +++ b/server/api/openchannelApplication/index.js @@ -1 +1 @@ -const a473_0x2dd9=['./openchannelApplication.controller','get','update','show','isAuthenticated','create','/:id','put','delete','exports','post','Router'];(function(_0x1bcf6c,_0x2dd934){const _0x4adb59=function(_0x54e7ef){while(--_0x54e7ef){_0x1bcf6c['push'](_0x1bcf6c['shift']());}};_0x4adb59(++_0x2dd934);}(a473_0x2dd9,0x126));const a473_0x4adb=function(_0x1bcf6c,_0x2dd934){_0x1bcf6c=_0x1bcf6c-0x0;let _0x4adb59=a473_0x2dd9[_0x1bcf6c];return _0x4adb59;};const _0x12fc04=a473_0x4adb;'use strict';const express=require('express'),router=express[_0x12fc04('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x12fc04('0x6'));router[_0x12fc04('0x7')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x12fc04('0x0'),auth[_0x12fc04('0xa')](),controller[_0x12fc04('0x9')]),router[_0x12fc04('0x4')]('/',auth[_0x12fc04('0xa')](),controller[_0x12fc04('0xb')]),router[_0x12fc04('0x1')](_0x12fc04('0x0'),auth['isAuthenticated'](),controller[_0x12fc04('0x8')]),router[_0x12fc04('0x2')]('/:id',auth[_0x12fc04('0xa')](),controller['destroy']),module[_0x12fc04('0x3')]=router; \ No newline at end of file +const a473_0xb1b9=['express','post','update','destroy','Router','create','index','isAuthenticated','delete','../../components/auth/service','get','/:id'];(function(_0x4f3537,_0xb1b984){const _0x37be5f=function(_0x2f3caa){while(--_0x2f3caa){_0x4f3537['push'](_0x4f3537['shift']());}};_0x37be5f(++_0xb1b984);}(a473_0xb1b9,0x198));const a473_0x37be=function(_0x4f3537,_0xb1b984){_0x4f3537=_0x4f3537-0x0;let _0x37be5f=a473_0xb1b9[_0x4f3537];return _0x37be5f;};const _0x2aa3af=a473_0x37be;'use strict';const express=require(_0x2aa3af('0x0')),router=express[_0x2aa3af('0x4')](),auth=require(_0x2aa3af('0x9')),controller=require('./openchannelApplication.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x2aa3af('0x6')]),router[_0x2aa3af('0xa')]('/:id',auth[_0x2aa3af('0x7')](),controller['show']),router[_0x2aa3af('0x1')]('/',auth[_0x2aa3af('0x7')](),controller[_0x2aa3af('0x5')]),router['put'](_0x2aa3af('0xb'),auth[_0x2aa3af('0x7')](),controller[_0x2aa3af('0x2')]),router[_0x2aa3af('0x8')](_0x2aa3af('0xb'),auth[_0x2aa3af('0x7')](),controller[_0x2aa3af('0x3')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.attributes.js b/server/api/openchannelApplication/openchannelApplication.attributes.js index b6a1e26..b800c2f 100644 --- a/server/api/openchannelApplication/openchannelApplication.attributes.js +++ b/server/api/openchannelApplication/openchannelApplication.attributes.js @@ -1 +1 @@ -const a474_0x4337=['STRING','sequelize','TEXT','exports','INTEGER','*,*,*,*','noop'];(function(_0x3287c3,_0x433785){const _0x31775f=function(_0x463686){while(--_0x463686){_0x3287c3['push'](_0x3287c3['shift']());}};_0x31775f(++_0x433785);}(a474_0x4337,0x1c9));const a474_0x3177=function(_0x3287c3,_0x433785){_0x3287c3=_0x3287c3-0x0;let _0x31775f=a474_0x4337[_0x3287c3];return _0x31775f;};const _0xe946c7=a474_0x3177;'use strict';const Sequelize=require(_0xe946c7('0x6'));module[_0xe946c7('0x1')]={'priority':{'type':Sequelize[_0xe946c7('0x2')],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xe946c7('0x4')},'appdata':{'type':Sequelize[_0xe946c7('0x0')]()},'description':{'type':Sequelize[_0xe946c7('0x5')]},'interval':{'type':Sequelize['STRING'],'defaultValue':_0xe946c7('0x3')}}; \ No newline at end of file +const a474_0x1477=['*,*,*,*','TEXT','STRING','noop','exports'];(function(_0x49fc79,_0x147734){const _0x2f2739=function(_0x55d249){while(--_0x55d249){_0x49fc79['push'](_0x49fc79['shift']());}};_0x2f2739(++_0x147734);}(a474_0x1477,0x95));const a474_0x2f27=function(_0x49fc79,_0x147734){_0x49fc79=_0x49fc79-0x0;let _0x2f2739=a474_0x1477[_0x49fc79];return _0x2f2739;};const _0xbc05c7=a474_0x2f27;'use strict';const Sequelize=require('sequelize');module[_0xbc05c7('0x0')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xbc05c7('0x4')},'appdata':{'type':Sequelize[_0xbc05c7('0x2')]()},'description':{'type':Sequelize[_0xbc05c7('0x3')]},'interval':{'type':Sequelize['STRING'],'defaultValue':_0xbc05c7('0x1')}}; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.controller.js b/server/api/openchannelApplication/openchannelApplication.controller.js index de2c1cc..0173c61 100644 --- a/server/api/openchannelApplication/openchannelApplication.controller.js +++ b/server/api/openchannelApplication/openchannelApplication.controller.js @@ -1 +1 @@ -const a475_0x2044=['../../config/logger','name','query','update','OpenchannelApplication','findAll','include','key','offset','merge','intersection','options','json','params','Content-Range','body','api','VIRTUAL','sort','create','where','../../mysqldb','nolimit','limit','rows','count','type','fields','model','catch','map','sendStatus','includeAll','filters','error','filter','show','keys','order','undefined','set','status','rawAttributes','destroy','like','length','then','findOne','index','attributes','fieldName','end','pick','sequelize'];(function(_0xb24b8e,_0x2044ba){const _0x10d265=function(_0x1c6d0e){while(--_0x1c6d0e){_0xb24b8e['push'](_0xb24b8e['shift']());}};_0x10d265(++_0x2044ba);}(a475_0x2044,0x6a));const a475_0x10d2=function(_0xb24b8e,_0x2044ba){_0xb24b8e=_0xb24b8e-0x0;let _0x10d265=a475_0x2044[_0xb24b8e];return _0x10d265;};const _0x1ed240=a475_0x10d2;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x1ed240('0x2'))(_0x1ed240('0x12')),db=require(_0x1ed240('0x17'))['db'],{Op}=require(_0x1ed240('0x1'));function respondWithResult(_0x1c6d0e,_0x4a4155){return _0x4a4155=_0x4a4155||0xc8,function(_0x1ebc30){const _0x4cd010=a475_0x10d2;if(_0x1ebc30)return _0x1c6d0e['status'](_0x4a4155)[_0x4cd010('0xe')](_0x1ebc30);};}function respondWithFilteredResult(_0x57aecb,_0x3aab06){return function(_0x4d4dab){const _0x365d1f=a475_0x10d2;if(_0x4d4dab){const _0x5cc7f3=_0x4d4dab[_0x365d1f('0x1b')],_0x389f87=_0x3aab06[_0x365d1f('0xa')];let _0x414d31=_0x3aab06[_0x365d1f('0xa')]+_0x3aab06[_0x365d1f('0x19')],_0x36233f;return _0x414d31>=_0x5cc7f3?(_0x414d31=_0x5cc7f3,_0x36233f=0xc8):_0x36233f=0xce,_0x57aecb['status'](_0x36233f),_0x57aecb[_0x365d1f('0x2a')](_0x365d1f('0x10'),_0x389f87+'-'+_0x414d31+'/'+_0x5cc7f3)[_0x365d1f('0xe')](_0x4d4dab);}return null;};}function saveUpdates(_0xdb15d6){return function(_0x499765){const _0x2d874a=a475_0x10d2;if(_0x499765)return _0x499765[_0x2d874a('0x5')](_0xdb15d6)[_0x2d874a('0x30')](function(_0x4d7890){return _0x4d7890;});return null;};}function removeEntity(_0x39c1e9){return function(_0x158f01){const _0x136176=a475_0x10d2;if(_0x158f01)return _0x158f01[_0x136176('0x2d')]()['then'](function(){const _0x3d3f7e=_0x136176;_0x39c1e9[_0x3d3f7e('0x2b')](0xcc)[_0x3d3f7e('0x35')]();});};}function handleEntityNotFound(_0x17cd9e){return function(_0x2914fd){const _0x2f24e0=a475_0x10d2;return!_0x2914fd&&_0x17cd9e[_0x2f24e0('0x21')](0x194),_0x2914fd;};}function handleError(_0x5607fa,_0x1049ae){return _0x1049ae=_0x1049ae||0x1f4,function(_0x1b7c36){const _0x30c482=a475_0x10d2;logger[_0x30c482('0x24')](_0x1b7c36['stack']),_0x1b7c36[_0x30c482('0x3')]&&delete _0x1b7c36[_0x30c482('0x3')],_0x5607fa[_0x30c482('0x2b')](_0x1049ae)['send'](_0x1b7c36);};}exports[_0x1ed240('0x32')]=function(_0x490849,_0x4703a1){const _0x26751e=_0x1ed240;let _0x2a13f3={};const _0x52842e={},_0x30700a={'count':0x0,'rows':[]},_0x4f3f03=_['map'](db[_0x26751e('0x6')][_0x26751e('0x2c')],function(_0x2ed464){const _0x1e473b=_0x26751e;return{'name':_0x2ed464[_0x1e473b('0x34')],'type':_0x2ed464['type'][_0x1e473b('0x9')]};});_0x52842e[_0x26751e('0x1e')]=_[_0x26751e('0x20')](_0x4f3f03,_0x26751e('0x3')),_0x52842e[_0x26751e('0x4')]=_['keys'](_0x490849[_0x26751e('0x4')]),_0x52842e[_0x26751e('0x23')]=_[_0x26751e('0xc')](_0x52842e[_0x26751e('0x1e')],_0x52842e[_0x26751e('0x4')]),_0x2a13f3[_0x26751e('0x33')]=_[_0x26751e('0xc')](_0x52842e[_0x26751e('0x1e')],qs[_0x26751e('0x1d')](_0x490849[_0x26751e('0x4')][_0x26751e('0x1d')])),_0x2a13f3[_0x26751e('0x33')]=_0x2a13f3[_0x26751e('0x33')]['length']?_0x2a13f3[_0x26751e('0x33')]:_0x52842e[_0x26751e('0x1e')];typeof _0x490849[_0x26751e('0x4')][_0x26751e('0x18')]===_0x26751e('0x29')&&(_0x2a13f3[_0x26751e('0x19')]=qs[_0x26751e('0x19')](_0x490849[_0x26751e('0x4')][_0x26751e('0x19')]),_0x2a13f3[_0x26751e('0xa')]=qs['offset'](_0x490849[_0x26751e('0x4')][_0x26751e('0xa')]));_0x2a13f3[_0x26751e('0x28')]=qs[_0x26751e('0x14')](_0x490849[_0x26751e('0x4')][_0x26751e('0x14')]),_0x2a13f3['where']=qs[_0x26751e('0x23')](_[_0x26751e('0x0')](_0x490849[_0x26751e('0x4')],_0x52842e[_0x26751e('0x23')]),_0x4f3f03);_0x490849['query']['filter']&&(_0x2a13f3[_0x26751e('0x16')]=_[_0x26751e('0xb')](_0x2a13f3[_0x26751e('0x16')],{[Op['or']]:_['map'](_0x4f3f03,function(_0x22a074){const _0x1c6a90=_0x26751e;if(_0x22a074[_0x1c6a90('0x1c')]!==_0x1c6a90('0x13')){const _0x387a0f={};return _0x387a0f[_0x22a074[_0x1c6a90('0x3')]]={[Op[_0x1c6a90('0x2e')]]:'%'+_0x490849['query'][_0x1c6a90('0x25')]+'%'},_0x387a0f;}})}));_0x2a13f3=_[_0x26751e('0xb')]({},_0x2a13f3,_0x490849[_0x26751e('0xd')]);const _0x2b4948={'where':_0x2a13f3[_0x26751e('0x16')]};return db[_0x26751e('0x6')]['count'](_0x2b4948)[_0x26751e('0x30')](function(_0x3680e5){const _0x3ae140=_0x26751e;return _0x30700a['count']=_0x3680e5,_0x490849[_0x3ae140('0x4')][_0x3ae140('0x22')]&&(_0x2a13f3[_0x3ae140('0x8')]=[{'all':!![]}]),db['OpenchannelApplication'][_0x3ae140('0x7')](_0x2a13f3);})[_0x26751e('0x30')](function(_0x1856dc){const _0x4fc299=_0x26751e;return _0x30700a[_0x4fc299('0x1a')]=_0x1856dc,_0x30700a;})[_0x26751e('0x30')](respondWithFilteredResult(_0x4703a1,_0x2a13f3))[_0x26751e('0x1f')](handleError(_0x4703a1,null));},exports[_0x1ed240('0x26')]=function(_0x4cc294,_0x585e4e){const _0x60de23=_0x1ed240;let _0x163f58={'raw':!![],'where':{'id':_0x4cc294[_0x60de23('0xf')]['id']}};const _0x397a2f={};return _0x397a2f[_0x60de23('0x1e')]=_[_0x60de23('0x27')](db[_0x60de23('0x6')][_0x60de23('0x2c')]),_0x397a2f['query']=_[_0x60de23('0x27')](_0x4cc294[_0x60de23('0x4')]),_0x397a2f[_0x60de23('0x23')]=_[_0x60de23('0xc')](_0x397a2f[_0x60de23('0x1e')],_0x397a2f[_0x60de23('0x4')]),_0x163f58[_0x60de23('0x33')]=_[_0x60de23('0xc')](_0x397a2f[_0x60de23('0x1e')],qs['fields'](_0x4cc294[_0x60de23('0x4')][_0x60de23('0x1d')])),_0x163f58[_0x60de23('0x33')]=_0x163f58[_0x60de23('0x33')][_0x60de23('0x2f')]?_0x163f58[_0x60de23('0x33')]:_0x397a2f[_0x60de23('0x1e')],_0x4cc294[_0x60de23('0x4')][_0x60de23('0x22')]&&(_0x163f58[_0x60de23('0x8')]=[{'all':!![]}]),_0x163f58=_[_0x60de23('0xb')]({},_0x163f58,_0x4cc294[_0x60de23('0xd')]),db[_0x60de23('0x6')]['findOne'](_0x163f58)[_0x60de23('0x30')](handleEntityNotFound(_0x585e4e,null))[_0x60de23('0x30')](respondWithResult(_0x585e4e,null))[_0x60de23('0x1f')](handleError(_0x585e4e,null));},exports[_0x1ed240('0x15')]=function(_0x2a71f4,_0x2a2e52){const _0x24aea6=_0x1ed240;return db[_0x24aea6('0x6')][_0x24aea6('0x15')](_0x2a71f4['body'],{})[_0x24aea6('0x30')](respondWithResult(_0x2a2e52,0xc9))[_0x24aea6('0x1f')](handleError(_0x2a2e52,null));},exports[_0x1ed240('0x5')]=function(_0x361e34,_0x2cf47e){const _0xaaaa24=_0x1ed240;return _0x361e34[_0xaaaa24('0x11')]['id']&&delete _0x361e34[_0xaaaa24('0x11')]['id'],db[_0xaaaa24('0x6')][_0xaaaa24('0x31')]({'where':{'id':_0x361e34['params']['id']}})[_0xaaaa24('0x30')](handleEntityNotFound(_0x2cf47e,null))['then'](saveUpdates(_0x361e34[_0xaaaa24('0x11')],null))[_0xaaaa24('0x30')](respondWithResult(_0x2cf47e,null))[_0xaaaa24('0x1f')](handleError(_0x2cf47e,null));},exports[_0x1ed240('0x2d')]=function(_0xc24a63,_0x126378){const _0x6298fa=_0x1ed240;return db[_0x6298fa('0x6')][_0x6298fa('0x31')]({'where':{'id':_0xc24a63['params']['id']}})[_0x6298fa('0x30')](handleEntityNotFound(_0x126378,null))[_0x6298fa('0x30')](removeEntity(_0x126378,null))[_0x6298fa('0x1f')](handleError(_0x126378,null));}; \ No newline at end of file +const a475_0x4596=['sequelize','Content-Range','status','model','undefined','includeAll','destroy','set','fields','filters','then','stack','query','rawAttributes','params','OpenchannelApplication','create','pick','index','end','limit','fieldName','name','json','sort','options','error','body','length','findOne','key','catch','send','../../config/logger','../../components/parsers/qs','update','like','count','api','map','offset','keys','../../mysqldb','VIRTUAL','where','intersection','lodash','attributes','merge','sendStatus','type'];(function(_0x3b9f30,_0x459681){const _0x2c244c=function(_0x33702f){while(--_0x33702f){_0x3b9f30['push'](_0x3b9f30['shift']());}};_0x2c244c(++_0x459681);}(a475_0x4596,0x109));const a475_0x2c24=function(_0x3b9f30,_0x459681){_0x3b9f30=_0x3b9f30-0x0;let _0x2c244c=a475_0x4596[_0x3b9f30];return _0x2c244c;};const _0x5af992=a475_0x2c24;'use strict';const _=require(_0x5af992('0x24')),qs=require(_0x5af992('0x18')),logger=require(_0x5af992('0x17'))(_0x5af992('0x1c')),db=require(_0x5af992('0x20'))['db'],{Op}=require(_0x5af992('0x29'));function respondWithResult(_0x33702f,_0x1e32e8){return _0x1e32e8=_0x1e32e8||0xc8,function(_0x266a5e){const _0x2ba4b7=a475_0x2c24;if(_0x266a5e)return _0x33702f[_0x2ba4b7('0x2b')](_0x1e32e8)[_0x2ba4b7('0xd')](_0x266a5e);};}function respondWithFilteredResult(_0x1c80af,_0x234b04){return function(_0x25ccdb){const _0xae9e42=a475_0x2c24;if(_0x25ccdb){const _0x4abf82=_0x25ccdb[_0xae9e42('0x1b')],_0xdb576d=_0x234b04[_0xae9e42('0x1e')];let _0xb7a986=_0x234b04[_0xae9e42('0x1e')]+_0x234b04[_0xae9e42('0xa')],_0xa33344;return _0xb7a986>=_0x4abf82?(_0xb7a986=_0x4abf82,_0xa33344=0xc8):_0xa33344=0xce,_0x1c80af[_0xae9e42('0x2b')](_0xa33344),_0x1c80af[_0xae9e42('0x30')](_0xae9e42('0x2a'),_0xdb576d+'-'+_0xb7a986+'/'+_0x4abf82)[_0xae9e42('0xd')](_0x25ccdb);}return null;};}function saveUpdates(_0x5b507d){return function(_0x1fc074){const _0x3b74ab=a475_0x2c24;if(_0x1fc074)return _0x1fc074['update'](_0x5b507d)[_0x3b74ab('0x0')](function(_0x41cb4e){return _0x41cb4e;});return null;};}function removeEntity(_0x53f0d4){return function(_0x46f889){const _0x4a731b=a475_0x2c24;if(_0x46f889)return _0x46f889[_0x4a731b('0x2f')]()[_0x4a731b('0x0')](function(){const _0x5289c3=_0x4a731b;_0x53f0d4[_0x5289c3('0x2b')](0xcc)[_0x5289c3('0x9')]();});};}function handleEntityNotFound(_0x537b4c){return function(_0x2c7b07){const _0x50a83e=a475_0x2c24;return!_0x2c7b07&&_0x537b4c[_0x50a83e('0x27')](0x194),_0x2c7b07;};}function handleError(_0x1e3d3f,_0x36cd3e){return _0x36cd3e=_0x36cd3e||0x1f4,function(_0x1969d1){const _0x4ad9fa=a475_0x2c24;logger[_0x4ad9fa('0x10')](_0x1969d1[_0x4ad9fa('0x1')]),_0x1969d1[_0x4ad9fa('0xc')]&&delete _0x1969d1[_0x4ad9fa('0xc')],_0x1e3d3f['status'](_0x36cd3e)[_0x4ad9fa('0x16')](_0x1969d1);};}exports[_0x5af992('0x8')]=function(_0x44d758,_0x57944e){const _0x30f67f=_0x5af992;let _0x55f120={};const _0x33bdd5={},_0xe0cb28={'count':0x0,'rows':[]},_0xf2bcbf=_[_0x30f67f('0x1d')](db[_0x30f67f('0x5')][_0x30f67f('0x3')],function(_0x1ca46b){const _0x38b83e=_0x30f67f;return{'name':_0x1ca46b[_0x38b83e('0xb')],'type':_0x1ca46b[_0x38b83e('0x28')][_0x38b83e('0x14')]};});_0x33bdd5[_0x30f67f('0x2c')]=_[_0x30f67f('0x1d')](_0xf2bcbf,_0x30f67f('0xc')),_0x33bdd5['query']=_[_0x30f67f('0x1f')](_0x44d758[_0x30f67f('0x2')]),_0x33bdd5[_0x30f67f('0x32')]=_[_0x30f67f('0x23')](_0x33bdd5[_0x30f67f('0x2c')],_0x33bdd5[_0x30f67f('0x2')]),_0x55f120[_0x30f67f('0x25')]=_[_0x30f67f('0x23')](_0x33bdd5[_0x30f67f('0x2c')],qs[_0x30f67f('0x31')](_0x44d758[_0x30f67f('0x2')]['fields'])),_0x55f120[_0x30f67f('0x25')]=_0x55f120[_0x30f67f('0x25')][_0x30f67f('0x12')]?_0x55f120['attributes']:_0x33bdd5[_0x30f67f('0x2c')];typeof _0x44d758['query']['nolimit']===_0x30f67f('0x2d')&&(_0x55f120[_0x30f67f('0xa')]=qs[_0x30f67f('0xa')](_0x44d758[_0x30f67f('0x2')][_0x30f67f('0xa')]),_0x55f120[_0x30f67f('0x1e')]=qs[_0x30f67f('0x1e')](_0x44d758[_0x30f67f('0x2')][_0x30f67f('0x1e')]));_0x55f120['order']=qs[_0x30f67f('0xe')](_0x44d758[_0x30f67f('0x2')][_0x30f67f('0xe')]),_0x55f120[_0x30f67f('0x22')]=qs[_0x30f67f('0x32')](_[_0x30f67f('0x7')](_0x44d758['query'],_0x33bdd5[_0x30f67f('0x32')]),_0xf2bcbf);_0x44d758['query']['filter']&&(_0x55f120['where']=_['merge'](_0x55f120[_0x30f67f('0x22')],{[Op['or']]:_[_0x30f67f('0x1d')](_0xf2bcbf,function(_0x324190){const _0x2ae740=_0x30f67f;if(_0x324190['type']!==_0x2ae740('0x21')){const _0x559da3={};return _0x559da3[_0x324190[_0x2ae740('0xc')]]={[Op[_0x2ae740('0x1a')]]:'%'+_0x44d758['query']['filter']+'%'},_0x559da3;}})}));_0x55f120=_[_0x30f67f('0x26')]({},_0x55f120,_0x44d758[_0x30f67f('0xf')]);const _0x191aa9={'where':_0x55f120['where']};return db[_0x30f67f('0x5')]['count'](_0x191aa9)[_0x30f67f('0x0')](function(_0x4248b5){const _0x4bc60c=_0x30f67f;return _0xe0cb28['count']=_0x4248b5,_0x44d758[_0x4bc60c('0x2')][_0x4bc60c('0x2e')]&&(_0x55f120['include']=[{'all':!![]}]),db[_0x4bc60c('0x5')]['findAll'](_0x55f120);})[_0x30f67f('0x0')](function(_0x512a2a){return _0xe0cb28['rows']=_0x512a2a,_0xe0cb28;})[_0x30f67f('0x0')](respondWithFilteredResult(_0x57944e,_0x55f120))[_0x30f67f('0x15')](handleError(_0x57944e,null));},exports['show']=function(_0x36929d,_0x581691){const _0x556487=_0x5af992;let _0x11460a={'raw':!![],'where':{'id':_0x36929d[_0x556487('0x4')]['id']}};const _0x27d41b={};return _0x27d41b['model']=_[_0x556487('0x1f')](db[_0x556487('0x5')][_0x556487('0x3')]),_0x27d41b['query']=_[_0x556487('0x1f')](_0x36929d['query']),_0x27d41b[_0x556487('0x32')]=_[_0x556487('0x23')](_0x27d41b[_0x556487('0x2c')],_0x27d41b['query']),_0x11460a[_0x556487('0x25')]=_[_0x556487('0x23')](_0x27d41b[_0x556487('0x2c')],qs[_0x556487('0x31')](_0x36929d[_0x556487('0x2')][_0x556487('0x31')])),_0x11460a[_0x556487('0x25')]=_0x11460a[_0x556487('0x25')][_0x556487('0x12')]?_0x11460a[_0x556487('0x25')]:_0x27d41b['model'],_0x36929d[_0x556487('0x2')]['includeAll']&&(_0x11460a['include']=[{'all':!![]}]),_0x11460a=_[_0x556487('0x26')]({},_0x11460a,_0x36929d[_0x556487('0xf')]),db[_0x556487('0x5')][_0x556487('0x13')](_0x11460a)[_0x556487('0x0')](handleEntityNotFound(_0x581691,null))['then'](respondWithResult(_0x581691,null))[_0x556487('0x15')](handleError(_0x581691,null));},exports[_0x5af992('0x6')]=function(_0xa7b78c,_0x5f0d14){const _0x57ab6f=_0x5af992;return db['OpenchannelApplication'][_0x57ab6f('0x6')](_0xa7b78c[_0x57ab6f('0x11')],{})[_0x57ab6f('0x0')](respondWithResult(_0x5f0d14,0xc9))[_0x57ab6f('0x15')](handleError(_0x5f0d14,null));},exports[_0x5af992('0x19')]=function(_0x3b4bc8,_0x1eda5d){const _0x2eaa3c=_0x5af992;return _0x3b4bc8[_0x2eaa3c('0x11')]['id']&&delete _0x3b4bc8[_0x2eaa3c('0x11')]['id'],db['OpenchannelApplication'][_0x2eaa3c('0x13')]({'where':{'id':_0x3b4bc8['params']['id']}})['then'](handleEntityNotFound(_0x1eda5d,null))[_0x2eaa3c('0x0')](saveUpdates(_0x3b4bc8[_0x2eaa3c('0x11')],null))[_0x2eaa3c('0x0')](respondWithResult(_0x1eda5d,null))[_0x2eaa3c('0x15')](handleError(_0x1eda5d,null));},exports[_0x5af992('0x2f')]=function(_0x364ebc,_0x154f78){const _0x2e7bda=_0x5af992;return db[_0x2e7bda('0x5')][_0x2e7bda('0x13')]({'where':{'id':_0x364ebc[_0x2e7bda('0x4')]['id']}})[_0x2e7bda('0x0')](handleEntityNotFound(_0x154f78,null))[_0x2e7bda('0x0')](removeEntity(_0x154f78,null))['catch'](handleError(_0x154f78,null));}; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.model.js b/server/api/openchannelApplication/openchannelApplication.model.js index 9c561f9..e26ad0c 100644 --- a/server/api/openchannelApplication/openchannelApplication.model.js +++ b/server/api/openchannelApplication/openchannelApplication.model.js @@ -1 +1 @@ -const a476_0x3623=['./openchannelApplication.attributes','OpenchannelApplication','exports','utf8mb4','openchannel_applications','utf8mb4_unicode_ci'];(function(_0x337120,_0x3623a9){const _0x28d8b1=function(_0x4bbf6e){while(--_0x4bbf6e){_0x337120['push'](_0x337120['shift']());}};_0x28d8b1(++_0x3623a9);}(a476_0x3623,0x164));const a476_0x28d8=function(_0x337120,_0x3623a9){_0x337120=_0x337120-0x0;let _0x28d8b1=a476_0x3623[_0x337120];return _0x28d8b1;};const _0x2538f7=a476_0x28d8;'use strict';const attributes=require(_0x2538f7('0x4'));module[_0x2538f7('0x0')]=function(_0x4bbf6e){const _0x55eded=_0x2538f7,_0x230fee=_0x4bbf6e['define'](_0x55eded('0x5'),attributes,{'tableName':_0x55eded('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x55eded('0x1'),'collate':_0x55eded('0x3')});return _0x230fee;}; \ No newline at end of file +const a476_0x1075=['utf8mb4_unicode_ci','./openchannelApplication.attributes','openchannel_applications','exports'];(function(_0x3a8956,_0x1075f1){const _0x29b6a8=function(_0x5b8445){while(--_0x5b8445){_0x3a8956['push'](_0x3a8956['shift']());}};_0x29b6a8(++_0x1075f1);}(a476_0x1075,0x126));const a476_0x29b6=function(_0x3a8956,_0x1075f1){_0x3a8956=_0x3a8956-0x0;let _0x29b6a8=a476_0x1075[_0x3a8956];return _0x29b6a8;};const _0x20091c=a476_0x29b6;'use strict';const attributes=require(_0x20091c('0x3'));module[_0x20091c('0x1')]=function(_0x5b8445){const _0x363747=_0x20091c,_0x1e4f36=_0x5b8445['define']('OpenchannelApplication',attributes,{'tableName':_0x363747('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x363747('0x2')});return _0x1e4f36;}; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.rpc.js b/server/api/openchannelApplication/openchannelApplication.rpc.js index aa98e10..41e9455 100644 --- a/server/api/openchannelApplication/openchannelApplication.rpc.js +++ b/server/api/openchannelApplication/openchannelApplication.rpc.js @@ -1 +1 @@ -const a477_0x3f88=['OpenchannelApplication','error','../../config/logger','then','debug','body','info','update','raw','catch','limit','stringify','options','message','UpdateOpenchannelApplication','rpc'];(function(_0x381348,_0x3f88f0){const _0x197d78=function(_0xd17db7){while(--_0xd17db7){_0x381348['push'](_0x381348['shift']());}};_0x197d78(++_0x3f88f0);}(a477_0x3f88,0x18b));const a477_0x197d=function(_0x381348,_0x3f88f0){_0x381348=_0x381348-0x0;let _0x197d78=a477_0x3f88[_0x381348];return _0x197d78;};const _0x8910b4=a477_0x197d;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x8910b4('0x7'))(_0x8910b4('0x4'));exports[_0x8910b4('0x3')]=function(_0xd17db7){const _0x234374=this;return new Promise(function(_0x3f5a03,_0x28d2c7){const _0x1fcc52=a477_0x197d;return db[_0x1fcc52('0x5')][_0x1fcc52('0xc')](_0xd17db7[_0x1fcc52('0xa')],{'raw':_0xd17db7[_0x1fcc52('0x1')]?_0xd17db7[_0x1fcc52('0x1')][_0x1fcc52('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xd17db7[_0x1fcc52('0x1')]?_0xd17db7[_0x1fcc52('0x1')]['where']||null:null,'attributes':_0xd17db7[_0x1fcc52('0x1')]?_0xd17db7['options']['attributes']||null:null,'limit':_0xd17db7['options']?_0xd17db7[_0x1fcc52('0x1')][_0x1fcc52('0xf')]||null:null})[_0x1fcc52('0x8')](function(_0x5ef56a){const _0x53c2d0=_0x1fcc52;logger[_0x53c2d0('0xb')](_0x53c2d0('0x3'),_0xd17db7),logger[_0x53c2d0('0x9')](_0x53c2d0('0x3'),_0xd17db7,JSON[_0x53c2d0('0x0')](_0x5ef56a)),_0x3f5a03(_0x5ef56a);})[_0x1fcc52('0xe')](function(_0x6e3650){const _0x53bc6c=_0x1fcc52;logger[_0x53bc6c('0x6')](_0x53bc6c('0x3'),_0x6e3650[_0x53bc6c('0x2')],_0xd17db7),_0x28d2c7(_0x234374[_0x53bc6c('0x6')](0x1f4,_0x6e3650[_0x53bc6c('0x2')]));});});}; \ No newline at end of file +const a477_0x1ffb=['options','stringify','attributes','raw','UpdateOpenchannelApplication','../../config/logger','../../mysqldb','body','info','error','rpc','message','update','debug'];(function(_0x4b2f0c,_0x1ffb64){const _0x47ed05=function(_0x18cb18){while(--_0x18cb18){_0x4b2f0c['push'](_0x4b2f0c['shift']());}};_0x47ed05(++_0x1ffb64);}(a477_0x1ffb,0x121));const a477_0x47ed=function(_0x4b2f0c,_0x1ffb64){_0x4b2f0c=_0x4b2f0c-0x0;let _0x47ed05=a477_0x1ffb[_0x4b2f0c];return _0x47ed05;};const _0x5bc547=a477_0x47ed;'use strict';const db=require(_0x5bc547('0xb'))['db'],logger=require(_0x5bc547('0xa'))(_0x5bc547('0x1'));exports[_0x5bc547('0x9')]=function(_0x18cb18){const _0x585349=this;return new Promise(function(_0x3f64ec,_0x42c8ff){const _0x4b3204=a477_0x47ed;return db['OpenchannelApplication'][_0x4b3204('0x3')](_0x18cb18[_0x4b3204('0xc')],{'raw':_0x18cb18[_0x4b3204('0x5')]?_0x18cb18['options'][_0x4b3204('0x8')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x18cb18[_0x4b3204('0x5')]?_0x18cb18[_0x4b3204('0x5')]['where']||null:null,'attributes':_0x18cb18[_0x4b3204('0x5')]?_0x18cb18[_0x4b3204('0x5')][_0x4b3204('0x7')]||null:null,'limit':_0x18cb18['options']?_0x18cb18['options']['limit']||null:null})['then'](function(_0x5e7f74){const _0x58991d=_0x4b3204;logger[_0x58991d('0xd')](_0x58991d('0x9'),_0x18cb18),logger[_0x58991d('0x4')](_0x58991d('0x9'),_0x18cb18,JSON[_0x58991d('0x6')](_0x5e7f74)),_0x3f64ec(_0x5e7f74);})['catch'](function(_0x48a96d){const _0x567a06=_0x4b3204;logger[_0x567a06('0x0')](_0x567a06('0x9'),_0x48a96d['message'],_0x18cb18),_0x42c8ff(_0x585349[_0x567a06('0x0')](0x1f4,_0x48a96d[_0x567a06('0x2')]));});});}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/index.js b/server/api/openchannelInteraction/index.js index cb3c83b..ee7facb 100644 --- a/server/api/openchannelInteraction/index.js +++ b/server/api/openchannelInteraction/index.js @@ -1 +1 @@ -const a478_0x1783=['put','delete','../../components/auth/service','create','post','/describe','express','index','addMessage','openchannel','/:id/download','download','show','/:id/tags','openchannelinteraction:addtags','/:id/messages','get','tracked','isAuthenticated','openchannelinteraction:destroy','removeTags','update','destroy','getMessages','../../components/interaction/service','./openchannelInteraction.controller','addTags','/:id'];(function(_0x34f0eb,_0x178399){const _0x2a5cd9=function(_0x3d71bd){while(--_0x3d71bd){_0x34f0eb['push'](_0x34f0eb['shift']());}};_0x2a5cd9(++_0x178399);}(a478_0x1783,0x78));const a478_0x2a5c=function(_0x34f0eb,_0x178399){_0x34f0eb=_0x34f0eb-0x0;let _0x2a5cd9=a478_0x1783[_0x34f0eb];return _0x2a5cd9;};const _0x4d8985=a478_0x2a5c;'use strict';const express=require(_0x4d8985('0x1a')),router=express['Router'](),auth=require(_0x4d8985('0x16')),interaction=require(_0x4d8985('0x10')),controller=require(_0x4d8985('0x11'));router[_0x4d8985('0x8')]('/',auth[_0x4d8985('0xa')](),controller[_0x4d8985('0x1b')]),router[_0x4d8985('0x8')](_0x4d8985('0x19'),auth[_0x4d8985('0xa')](),controller['describe']),router[_0x4d8985('0x8')](_0x4d8985('0x13'),auth[_0x4d8985('0xa')](),controller[_0x4d8985('0x4')]),router[_0x4d8985('0x8')]('/:id/messages',auth['isAuthenticated'](),controller[_0x4d8985('0xf')]),router[_0x4d8985('0x8')](_0x4d8985('0x2'),auth[_0x4d8985('0xa')](),controller[_0x4d8985('0x3')]),router[_0x4d8985('0x18')]('/',auth[_0x4d8985('0xa')](),controller[_0x4d8985('0x17')]),router[_0x4d8985('0x18')](_0x4d8985('0x7'),auth[_0x4d8985('0xa')](),controller[_0x4d8985('0x0')]),router[_0x4d8985('0x18')](_0x4d8985('0x5'),auth[_0x4d8985('0xa')](),interaction[_0x4d8985('0x9')](_0x4d8985('0x1'),_0x4d8985('0x6')),controller[_0x4d8985('0x12')]),router[_0x4d8985('0x14')](_0x4d8985('0x13'),auth['isAuthenticated'](),interaction['tracked'](_0x4d8985('0x1'),'openchannelinteraction:update'),controller[_0x4d8985('0xd')]),router[_0x4d8985('0x15')]('/:id',auth[_0x4d8985('0xa')](),interaction[_0x4d8985('0x9')](_0x4d8985('0x1'),_0x4d8985('0xb')),controller[_0x4d8985('0xe')]),router[_0x4d8985('0x15')](_0x4d8985('0x5'),auth[_0x4d8985('0xa')](),controller[_0x4d8985('0xc')]),module['exports']=router; \ No newline at end of file +const a478_0x59b3=['addTags','exports','delete','/:id/messages','create','show','/:id/download','post','/describe','openchannel','get','../../components/interaction/service','isAuthenticated','/:id/tags','put','express','addMessage','tracked','removeTags','/:id','describe','openchannelinteraction:addtags','download','update','destroy','../../components/auth/service','getMessages','openchannelinteraction:update','Router'];(function(_0x314bba,_0x59b3be){const _0x552b0e=function(_0x1c9686){while(--_0x1c9686){_0x314bba['push'](_0x314bba['shift']());}};_0x552b0e(++_0x59b3be);}(a478_0x59b3,0x1ef));const a478_0x552b=function(_0x314bba,_0x59b3be){_0x314bba=_0x314bba-0x0;let _0x552b0e=a478_0x59b3[_0x314bba];return _0x552b0e;};const _0x286c13=a478_0x552b;'use strict';const express=require(_0x286c13('0xd')),router=express[_0x286c13('0x1a')](),auth=require(_0x286c13('0x17')),interaction=require(_0x286c13('0x9')),controller=require('./openchannelInteraction.controller');router[_0x286c13('0x8')]('/',auth['isAuthenticated'](),controller['index']),router[_0x286c13('0x8')](_0x286c13('0x6'),auth[_0x286c13('0xa')](),controller[_0x286c13('0x12')]),router[_0x286c13('0x8')](_0x286c13('0x11'),auth[_0x286c13('0xa')](),controller[_0x286c13('0x3')]),router['get']('/:id/messages',auth['isAuthenticated'](),controller[_0x286c13('0x18')]),router[_0x286c13('0x8')](_0x286c13('0x4'),auth['isAuthenticated'](),controller[_0x286c13('0x14')]),router[_0x286c13('0x5')]('/',auth[_0x286c13('0xa')](),controller[_0x286c13('0x2')]),router[_0x286c13('0x5')](_0x286c13('0x1'),auth[_0x286c13('0xa')](),controller[_0x286c13('0xe')]),router['post'](_0x286c13('0xb'),auth[_0x286c13('0xa')](),interaction[_0x286c13('0xf')]('openchannel',_0x286c13('0x13')),controller[_0x286c13('0x1b')]),router[_0x286c13('0xc')](_0x286c13('0x11'),auth[_0x286c13('0xa')](),interaction[_0x286c13('0xf')](_0x286c13('0x7'),_0x286c13('0x19')),controller[_0x286c13('0x15')]),router[_0x286c13('0x0')]('/:id',auth[_0x286c13('0xa')](),interaction[_0x286c13('0xf')](_0x286c13('0x7'),'openchannelinteraction:destroy'),controller[_0x286c13('0x16')]),router[_0x286c13('0x0')](_0x286c13('0xb'),auth[_0x286c13('0xa')](),controller[_0x286c13('0x10')]),module[_0x286c13('0x1c')]=router; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.attributes.js b/server/api/openchannelInteraction/openchannelInteraction.attributes.js index 6c468e1..5d6b178 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.attributes.js +++ b/server/api/openchannelInteraction/openchannelInteraction.attributes.js @@ -1 +1 @@ -const a479_0x10cb=['DATE','BOOLEAN','ENUM','out','STRING','sequelize','exports'];(function(_0x1b4a44,_0x10cbf0){const _0x470cec=function(_0x41447c){while(--_0x41447c){_0x1b4a44['push'](_0x1b4a44['shift']());}};_0x470cec(++_0x10cbf0);}(a479_0x10cb,0xbb));const a479_0x470c=function(_0x1b4a44,_0x10cbf0){_0x1b4a44=_0x1b4a44-0x0;let _0x470cec=a479_0x10cb[_0x1b4a44];return _0x470cec;};const _0x4763dd=a479_0x470c;'use strict';const Sequelize=require(_0x4763dd('0x0'));module[_0x4763dd('0x1')]={'closed':{'type':Sequelize[_0x4763dd('0x3')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x4763dd('0x2')]},'disposition':{'type':Sequelize[_0x4763dd('0x6')]},'secondDisposition':{'type':Sequelize[_0x4763dd('0x6')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x4763dd('0x6')]},'read1stAt':{'type':Sequelize[_0x4763dd('0x2')]},'threadId':{'type':Sequelize[_0x4763dd('0x6')]},'externalUrl':{'type':Sequelize[_0x4763dd('0x6')]},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize[_0x4763dd('0x4')]('in',_0x4763dd('0x5')),'defaultValue':'in','allowNull':![]},'from':{'type':Sequelize[_0x4763dd('0x6')]}}; \ No newline at end of file +const a479_0x759a=['ENUM','STRING','exports','DATE','BOOLEAN'];(function(_0x4155ec,_0x759a87){const _0x55dcbc=function(_0x560a5b){while(--_0x560a5b){_0x4155ec['push'](_0x4155ec['shift']());}};_0x55dcbc(++_0x759a87);}(a479_0x759a,0x118));const a479_0x55dc=function(_0x4155ec,_0x759a87){_0x4155ec=_0x4155ec-0x0;let _0x55dcbc=a479_0x759a[_0x4155ec];return _0x55dcbc;};const _0x553fe6=a479_0x55dc;'use strict';const Sequelize=require('sequelize');module[_0x553fe6('0x2')]={'closed':{'type':Sequelize[_0x553fe6('0x4')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x553fe6('0x3')]},'disposition':{'type':Sequelize[_0x553fe6('0x1')]},'secondDisposition':{'type':Sequelize[_0x553fe6('0x1')]},'thirdDisposition':{'type':Sequelize[_0x553fe6('0x1')]},'note':{'type':Sequelize[_0x553fe6('0x1')]},'read1stAt':{'type':Sequelize[_0x553fe6('0x3')]},'threadId':{'type':Sequelize[_0x553fe6('0x1')]},'externalUrl':{'type':Sequelize[_0x553fe6('0x1')]},'lastMsgAt':{'type':Sequelize[_0x553fe6('0x3')]},'lastMsgDirection':{'type':Sequelize[_0x553fe6('0x0')]('in','out'),'defaultValue':'in','allowNull':![]},'from':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.controller.js b/server/api/openchannelInteraction/openchannelInteraction.controller.js index 538776b..2a75234 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.controller.js +++ b/server/api/openchannelInteraction/openchannelInteraction.controller.js @@ -1 +1 @@ -const a480_0x5804=['../../config/environment','server','getFullTextValue','offset','createdAt','format','c.mobile','threadId','html-pdf','i.OpenchannelAccountId\x20IN\x20?','tools_tags','union','openchannelInteractionTags:save','a.key','catch','sqlOperator','Tags','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','parseSearch','toString','where','Users','params','addTags','Account.key','files','parse','status','Owner.internal','ContactId','DESC','Private','mkdirSync','stack','YYYY-MM-DD','then','left_join','forEach','createWriteStream','firstName','u.fullname','addMessage','unreadMessages','secret','i.OpenchannelAccountId\x20IS\x20NULL','Owner','squel','limit','Contact.mobile','show','json','keyBy','select','null','OpenchannelAccountId','direction','\x20IS\x20NULL','read','\x20=\x20?','sequelize','journey','name','lastName','unix','expr','isEmpty','zip-dir','having','findAll','i.id','attachments','some','c.phone','intersection','$substring','`\x20>\x200','like','include','o.internal','sort','u.id\x20=\x20ui.UserId','Contact.email','closed','c.lastName','users','QueryTypes','it.OpenchannelInteractionId\x20=\x20i.id','findOne','cm_contacts','$gte','omit','value','CmContact','ids','from','compact','register','user','../../rediscache','get','openchannel_messages','end','merge','GROUP_CONCAT(DISTINCT\x20t.id)','Openchannel','conditions','text','join','query','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','attributes','path','tmp','replace','tag','operator','SELECT','field','index','isNumeric','rimraf','Account','isArray','emit','groupBy','a.mandatoryDisposition','`unreadMessages`\x20=\x200','Messages','transcript-%d-%s.zip','root','order','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','error','../../components/parsers/advancedSearch','`unreadMessages`\x20>\x200','Contact','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','u.id','destroy','`\x20=\x200','keys','send','rows','c.firstName','Contact.firstName','views','ejs','Attachment','t.id\x20=\x20it.TagId','getMessages','map','Contact.phone','Account.mandatoryDisposition','find','describe','update','filters','split','downloadInteraction.html','sendStatus','existsSync','$lte','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','count','start','Sequelize','type','model','40px','nolimit','createReadStream','System','basename','key','%s\x20#%d','TagIds','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','a.id\x20=\x20i.OpenchannelAccountId','all','rawAttributes','fieldName','set','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','Public','OpenchannelInteractionId','moment','disposition','User','length','openchannel_accounts','c.email','log','../../config/logger','err','color','transcript-','search','Owner.fullname','UserId','pick','.pdf','OpenchannelMessage','getOpenchannelAccounts','concat','create','undefined','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','push','removeTags','YYYY-MM-DD\x20HH:mm:ss','body','filter','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','o.fullname','renderFile','download','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','N.A.','Tag','fields','openchannel_interactions','buildExpression','user_has_openchannel_interactions','OpenchannelInteraction','out','ui.OpenchannelInteractionId','fullname'];(function(_0x421abe,_0x58041a){const _0x5744ef=function(_0x1a0ac1){while(--_0x1a0ac1){_0x421abe['push'](_0x421abe['shift']());}};_0x5744ef(++_0x58041a);}(a480_0x5804,0xf3));const a480_0x5744=function(_0x421abe,_0x58041a){_0x421abe=_0x421abe-0x0;let _0x5744ef=a480_0x5804[_0x421abe];return _0x5744ef;};const _0x4295cc=a480_0x5744;'use strict';const pdf=require(_0x4295cc('0xdd')),rimraf=require(_0x4295cc('0x69')),zipdir=require(_0x4295cc('0x33')),moment=require(_0x4295cc('0xaa')),util=require('util'),path=require(_0x4295cc('0x60')),ejs=require(_0x4295cc('0x83')),fs=require('fs'),_=require('lodash'),squel=require(_0x4295cc('0x1f')),{getSocket}=require(_0x4295cc('0x53')),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(_0x4295cc('0x76')),logger=require(_0x4295cc('0xb1'))('api'),config=require(_0x4295cc('0xd5')),db=require('../../mysqldb')['db'],{Op}=require(_0x4295cc('0x2c'));require('./openchannelInteraction.socket')[_0x4295cc('0x51')](socket);function respondWithStatusCode(_0x1a0ac1,_0x29bf62){return _0x29bf62=_0x29bf62||0xcc,function(_0xc98ae3){const _0x12f483=a480_0x5744;if(_0xc98ae3)return _0x1a0ac1[_0x12f483('0x90')](_0x29bf62);return _0x1a0ac1[_0x12f483('0xc')](_0x29bf62)['end']();};}function respondWithResult(_0x5b1d61,_0x32b914){return _0x32b914=_0x32b914||0xc8,function(_0x5a3569){const _0x264dcb=a480_0x5744;if(_0x5a3569)return _0x5b1d61[_0x264dcb('0xc')](_0x32b914)[_0x264dcb('0x23')](_0x5a3569);};}function respondWithFilteredResult(_0x847a66,_0x21fdda){return function(_0xb757d5){const _0x41ed3a=a480_0x5744;if(_0xb757d5){const _0x5ac09c=_0xb757d5[_0x41ed3a('0x94')],_0x46e9cd=_0x21fdda['offset'];let _0x406a6e=_0x21fdda[_0x41ed3a('0xd8')]+_0x21fdda[_0x41ed3a('0x20')],_0x27a3b5;return _0x406a6e>=_0x5ac09c?(_0x406a6e=_0x5ac09c,_0x27a3b5=0xc8):_0x27a3b5=0xce,_0x847a66['status'](_0x27a3b5),_0x847a66[_0x41ed3a('0xa6')]('Content-Range',_0x46e9cd+'-'+_0x406a6e+'/'+_0x5ac09c)['json'](_0xb757d5);}return null;};}function saveUpdates(_0x4d289f){return function(_0x10109a){const _0x2839fc=a480_0x5744;if(_0x10109a)return _0x10109a[_0x2839fc('0x8c')](_0x4d289f)['then'](function(_0x1c434b){return _0x1c434b;});return null;};}function removeEntity(_0x37bfc5){return function(_0x5423d0){const _0x2929eb=a480_0x5744;if(_0x5423d0)return _0x5423d0[_0x2929eb('0x7b')]()['then'](function(){const _0xc481d3=_0x2929eb;_0x37bfc5[_0xc481d3('0xc')](0xcc)[_0xc481d3('0x56')]();});};}function handleEntityNotFound(_0x116a79){return function(_0x28730f){const _0x250cdc=a480_0x5744;return!_0x28730f&&_0x116a79[_0x250cdc('0x90')](0x194),_0x28730f;};}function handleError(_0x4904a0,_0x43dd05){return _0x43dd05=_0x43dd05||0x1f4,function(_0x469612){const _0x4f9c87=a480_0x5744;logger[_0x4f9c87('0x75')](_0x469612[_0x4f9c87('0x12')]),_0x469612[_0x4f9c87('0x2e')]&&delete _0x469612[_0x4f9c87('0x2e')],_0x4904a0[_0x4f9c87('0xc')](_0x43dd05)[_0x4f9c87('0x7e')](_0x469612);};}function getInteractionUsers(_0x4c00a9,_0x57a120){return new Promise(function(_0x178cb8,_0x4be33b){const _0x48fd52=a480_0x5744;try{_0x57a120[_0x4c00a9['id']]&&(_0x4c00a9[_0x48fd52('0x6')]=_[_0x48fd52('0x87')](_0x57a120[_0x4c00a9['id']],function(_0x73d8c2){return{'id':_0x73d8c2['id'],'fullname':_0x73d8c2['fullname']};}));}catch(_0x21d193){_0x4be33b(_0x21d193);}_0x178cb8(_0x4c00a9);});}function getInteractionTags(_0x493eb2,_0x1638b0){return new Promise(function(_0x339b81,_0x12ee57){const _0x1e4423=a480_0x5744;try{_0x493eb2[_0x1e4423('0xa0')]&&(_0x493eb2['Tags']=[],_0x493eb2[_0x1e4423('0xa0')][_0x1e4423('0x8e')](',')['forEach'](function(_0x186ebc){const _0x32fc4d=_0x1e4423;_0x493eb2[_0x32fc4d('0x1')][_0x32fc4d('0xc0')](_0x1638b0[_0x186ebc]);})),delete _0x493eb2['TagIds'];}catch(_0x2f6985){_0x12ee57(_0x2f6985);}_0x339b81(_0x493eb2);});}function updateOpenchannelInteraction(_0x3bd237,_0x285c3c,_0x38ea0d){return new Promise(function(_0x495df3,_0x559c8a){const _0x127b3b=a480_0x5744;return getInteractionUsers(_0x3bd237,_0x38ea0d)[_0x127b3b('0x14')](function(_0x3095c4){return getInteractionTags(_0x3095c4,_0x285c3c);})[_0x127b3b('0x14')](function(_0x5951bb){_0x495df3(_0x5951bb);})[_0x127b3b('0xe3')](function(_0x14985b){_0x559c8a(_0x14985b);});});}exports[_0x4295cc('0x67')]=function(_0x133548,_0x430652){const _0x3c7ef1=_0x4295cc,_0x37d00d={},_0x519b1e={},_0x5e38cb={'count':0x0,'rows':[]},_0x59ba3b=_[_0x3c7ef1('0x87')](db[_0x3c7ef1('0xd1')][_0x3c7ef1('0xa4')],function(_0x4ab18f){const _0xa49cfa=_0x3c7ef1;return{'name':_0x4ab18f[_0xa49cfa('0xa5')],'type':_0x4ab18f[_0xa49cfa('0x97')][_0xa49cfa('0x9e')]};});_0x519b1e['model']=_['map'](_0x59ba3b,_0x3c7ef1('0x2e')),_0x519b1e[_0x3c7ef1('0x5d')]=_[_0x3c7ef1('0x7d')](_0x133548[_0x3c7ef1('0x5d')]),_0x519b1e['filters']=_['intersection'](_0x519b1e['model'],_0x519b1e[_0x3c7ef1('0x5d')]),_0x37d00d[_0x3c7ef1('0x5f')]=_[_0x3c7ef1('0x3a')](_0x519b1e['model'],qs[_0x3c7ef1('0xcd')](_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0xcd')])),_0x37d00d['attributes']=_0x37d00d[_0x3c7ef1('0x5f')][_0x3c7ef1('0xad')]?_0x37d00d[_0x3c7ef1('0x5f')]:_0x519b1e[_0x3c7ef1('0x98')];typeof _0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0x9a')]==='undefined'&&(_0x37d00d['limit']=qs[_0x3c7ef1('0x20')](_0x133548['query'][_0x3c7ef1('0x20')]),_0x37d00d[_0x3c7ef1('0xd8')]=qs[_0x3c7ef1('0xd8')](_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0xd8')]));_0x37d00d[_0x3c7ef1('0x73')]=qs[_0x3c7ef1('0x40')](_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0x40')]),_0x37d00d[_0x3c7ef1('0x5')]=qs['filters'](_['pick'](_0x133548['query'],_0x519b1e[_0x3c7ef1('0x8d')]),_0x59ba3b);let _0x2205ea=[];const _0x1249ae=squel[_0x3c7ef1('0x25')]()[_0x3c7ef1('0x66')]('id')[_0x3c7ef1('0x66')](_0x3c7ef1('0x2e'))[_0x3c7ef1('0x66')](_0x3c7ef1('0xb3'))['from'](_0x3c7ef1('0xdf')),_0x5b83b5=squel[_0x3c7ef1('0x25')]()[_0x3c7ef1('0x66')](_0x3c7ef1('0x7a'))[_0x3c7ef1('0x66')](_0x3c7ef1('0x19'))[_0x3c7ef1('0x66')](_0x3c7ef1('0xd3'))[_0x3c7ef1('0x4f')](_0x3c7ef1('0xd0'),'ui')[_0x3c7ef1('0x15')]('users','u',_0x3c7ef1('0x41')),_0x5e155a=squel[_0x3c7ef1('0x25')]()[_0x3c7ef1('0x4f')](_0x3c7ef1('0xce'),'i')[_0x3c7ef1('0x15')](_0x3c7ef1('0x49'),'c',_0x3c7ef1('0xa1'))[_0x3c7ef1('0x15')](_0x3c7ef1('0x45'),'o','o.id\x20=\x20i.UserId')[_0x3c7ef1('0x15')](_0x3c7ef1('0xae'),'a',_0x3c7ef1('0xa2'))[_0x3c7ef1('0x15')](_0x3c7ef1('0x55'),'me','me.OpenchannelInteractionId\x20=\x20i.id')['left_join']('openchannel_interaction_has_tags','it',_0x3c7ef1('0x47'))['left_join']('tools_tags','t',_0x3c7ef1('0x85')),_0x4ab174=squel[_0x3c7ef1('0x31')]();let _0x54d10e=[];const _0x5bf6e4=squel[_0x3c7ef1('0x31')]();let _0x4c2391;if(_0x133548['query'][_0x3c7ef1('0xb5')]){_0x4c2391=as[_0x3c7ef1('0x3')](_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0xb5')]);const _0x325499=_0x4c2391[_0x3c7ef1('0x0')];for(let _0x49ec77=0x0;_0x49ec77<_0x4c2391[_0x3c7ef1('0x5a')]['length'];_0x49ec77++){const _0x2b9dab=_0x4c2391['conditions'][_0x49ec77],_0x319753='i';let _0x12534b,_0x5cd50f=_[_0x3c7ef1('0x8a')](_0x59ba3b,[_0x3c7ef1('0x2e'),_0x2b9dab[_0x3c7ef1('0x66')]]);if(!_0x5cd50f)switch(_0x2b9dab[_0x3c7ef1('0x66')]){case _0x3c7ef1('0x1b'):_0x2b9dab['value']==0x1?_0x5e155a[_0x3c7ef1('0x34')]('`'+_0x2b9dab[_0x3c7ef1('0x66')]+_0x3c7ef1('0x7c')):_0x5e155a[_0x3c7ef1('0x34')]('`'+_0x2b9dab[_0x3c7ef1('0x66')]+_0x3c7ef1('0x3c'));break;case _0x3c7ef1('0x78'):if(_0x2b9dab[_0x3c7ef1('0x64')]===_0x3c7ef1('0x3b')){if(_0x2b9dab[_0x3c7ef1('0x4c')]['split']('\x20')['length']>0x1)_0x4ab174[_0x325499](_0x3c7ef1('0x93'),qs[_0x3c7ef1('0xd7')](_0x2b9dab[_0x3c7ef1('0x4c')]),null);else{const _0x252186='%'+_0x2b9dab[_0x3c7ef1('0x4c')]+'%';_0x4ab174[_0x325499](_0x3c7ef1('0xbf'),_0x252186,_0x252186,_0x252186);}}else _0x5cd50f=_[_0x3c7ef1('0x8a')](_0x59ba3b,[_0x3c7ef1('0x2e'),_0x3c7ef1('0xe')]),_0x2b9dab['field']=_0x3c7ef1('0xe'),_0x12534b=as['buildExpression'](_0x319753,_0x5cd50f['type'],_0x2b9dab),_0x4ab174[_0x325499](_0x12534b[_0x3c7ef1('0x5b')],_0x12534b[_0x3c7ef1('0x4c')][_0x3c7ef1('0x95')],_0x12534b[_0x3c7ef1('0x4c')]['end']);break;case _0x3c7ef1('0xcc'):{const _0x4104bc=_0x2b9dab['value'][_0x3c7ef1('0x8e')](',')[_0x3c7ef1('0x87')](function(_0x5dd0f7){return Number(_0x5dd0f7);});_0x4104bc[_0x3c7ef1('0x16')](function(_0x1189ad){const _0x4f62a7=_0x3c7ef1;_0x5bf6e4['or'](_0x4f62a7('0x74'),'%,'+_0x1189ad+',%');}),_0x54d10e=_[_0x3c7ef1('0xe0')](_0x54d10e,_0x4104bc);}break;case _0x3c7ef1('0xac'):_0x2b9dab[_0x3c7ef1('0x64')]===_0x3c7ef1('0x3b')?_0x4ab174[_0x325499](_0x3c7ef1('0xca'),'%'+_0x2b9dab[_0x3c7ef1('0x4c')]+'%',null):(_0x5cd50f=_[_0x3c7ef1('0x8a')](_0x59ba3b,[_0x3c7ef1('0x2e'),_0x3c7ef1('0xb7')]),_0x2b9dab[_0x3c7ef1('0x66')]='UserId',_0x12534b=as[_0x3c7ef1('0xcf')](_0x319753,_0x5cd50f[_0x3c7ef1('0x97')],_0x2b9dab),_0x4ab174[_0x325499](_0x12534b['text'],_0x12534b['value'][_0x3c7ef1('0x95')],_0x12534b['value']['end']));break;case _0x3c7ef1('0xc3'):_0x12534b=as[_0x3c7ef1('0xcf')]('me',null,_0x2b9dab),_0x4ab174[_0x325499](_0x12534b[_0x3c7ef1('0x5b')],_0x12534b[_0x3c7ef1('0x4c')][_0x3c7ef1('0x95')],_0x12534b['value']['end']);break;}else _0x12534b=as[_0x3c7ef1('0xcf')](_0x319753,_0x5cd50f['type'],_0x2b9dab),_0x4ab174[_0x325499](_0x12534b[_0x3c7ef1('0x5b')],_0x12534b[_0x3c7ef1('0x4c')][_0x3c7ef1('0x95')],_0x12534b['value'][_0x3c7ef1('0x56')]);}}else{const _0x9801d7=_(_0x133548[_0x3c7ef1('0x5d')])['keys']()[_0x3c7ef1('0x87')](function(_0x106e48){const _0xeacb14=_0x3c7ef1;return _[_0xeacb14('0x38')](_0x59ba3b,['name',_0x106e48])?_0x106e48:undefined;})[_0x3c7ef1('0x50')]()[_0x3c7ef1('0x4c')]();!_[_0x3c7ef1('0x32')](_0x9801d7)&&_0x9801d7[_0x3c7ef1('0x16')](function(_0x917c97){const _0x596796=_0x3c7ef1;if(_0x917c97===_0x596796('0x27'))_0x5e155a[_0x596796('0x5')](_0x596796('0xde'),[][_0x596796('0xbc')](_0x133548[_0x596796('0x5d')][_0x917c97]));else{if(_0x917c97===_0x596796('0xd9')){const _0xf6516d=JSON[_0x596796('0xb')](_0x133548[_0x596796('0x5d')][_0x917c97])[_0x596796('0x4a')],_0x254493=JSON[_0x596796('0xb')](_0x133548[_0x596796('0x5d')][_0x917c97])[_0x596796('0x92')];_0x5e155a[_0x596796('0x5')](_0x596796('0xa7'),_0xf6516d,_0x254493);}else _0x133548[_0x596796('0x5d')][_0x917c97]===_0x596796('0x26')?_0x5e155a[_0x596796('0x5')]('i.'+_0x917c97+_0x596796('0x29')):_0x5e155a[_0x596796('0x5')]('i.'+_0x917c97+_0x596796('0x2b'),_0x133548['query'][_0x917c97]);}});_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0x2a')]&&(_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0x2a')]==0x1?_0x5e155a[_0x3c7ef1('0x34')](_0x3c7ef1('0x6f')):_0x5e155a[_0x3c7ef1('0x34')](_0x3c7ef1('0x77')));_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0x63')]&&(_0x54d10e=_[_0x3c7ef1('0x6b')](_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0x63')])?_0x133548['query'][_0x3c7ef1('0x63')]:new Array(_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0x63')]),_0x54d10e[_0x3c7ef1('0x16')](function(_0x59a7c7){const _0x34a7c0=_0x3c7ef1;_0x5bf6e4['or'](_0x34a7c0('0x74'),'%,'+_0x59a7c7+',%');}));if(_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0xc4')]){const _0x463b60=_0x133548[_0x3c7ef1('0x5d')][_0x3c7ef1('0xc4')][_0x3c7ef1('0x62')]('\x5c','\x5c\x5c')[_0x3c7ef1('0x62')]('\x27\x27','\x27\x27\x27\x27');qs[_0x3c7ef1('0x68')](_0x463b60)?_0x4ab174['or']('i.id\x20LIKE\x20?',_0x463b60+'%'):_0x4ab174['or'](_0x3c7ef1('0xc5'),qs[_0x3c7ef1('0xd7')](_0x463b60))['or']('i.from\x20LIKE\x20?',_0x463b60+'%')['or'](_0x3c7ef1('0x2'),_0x463b60+'%');}}_0x5e155a[_0x3c7ef1('0x5')](_0x4ab174),_0x5e155a['group'](_0x3c7ef1('0x36'));let _0x272da7={'type':db[_0x3c7ef1('0x96')][_0x3c7ef1('0x46')][_0x3c7ef1('0x65')],'raw':!![]};const _0x2c6962=_0x5e155a['clone']();_0x2c6962['field']('i.id'),_0x2c6962[_0x3c7ef1('0x66')](_0x3c7ef1('0xc6'),_0x3c7ef1('0x1b')),_0x37d00d['order']&&_0x37d00d[_0x3c7ef1('0x73')][_0x3c7ef1('0x16')](function(_0x458883){const _0x32ee3e=_0x3c7ef1;_0x5e155a['order']('i.'+_0x458883[0x0],_0x458883[0x1]===_0x32ee3e('0xf')?![]:!![]);}),!_[_0x3c7ef1('0x32')](_0x54d10e)&&(_0x5e155a[_0x3c7ef1('0x34')](_0x5bf6e4),_0x2c6962[_0x3c7ef1('0x5')]('t.id\x20IN\x20?',_0x54d10e)),Promise['resolve']()[_0x3c7ef1('0x14')](function(){const _0x145367=_0x3c7ef1;if(!_0x4c2391){if(_0x133548[_0x145367('0x5d')][_0x145367('0x27')]||_0x133548[_0x145367('0x5d')][_0x145367('0x2d')])return;_0x2c6962['where'](_0x145367('0x5e')),_0x5e155a['where'](_0x145367('0x5e'));return;}return _0x133548[_0x145367('0x52')][_0x145367('0xbb')]({'attributes':['id'],'raw':!![]})[_0x145367('0x14')](function(_0x2cba30){const _0x593ad0=_0x145367;_[_0x593ad0('0x32')](_0x2cba30)?(_0x2c6962[_0x593ad0('0x5')](_0x593ad0('0x1d')),_0x5e155a[_0x593ad0('0x5')](_0x593ad0('0x1d'))):(_0x2c6962['where'](_0x593ad0('0xde'),_['map'](_0x2cba30,'id')),_0x5e155a['where'](_0x593ad0('0xde'),_[_0x593ad0('0x87')](_0x2cba30,'id')));});})['then'](function(){const _0x214b01=_0x3c7ef1;db[_0x214b01('0x2c')][_0x214b01('0x5d')](_0x2c6962[_0x214b01('0x4')](),_0x272da7)['then'](function(_0x1ac988){const _0x4265d0=_0x214b01;_0x5e38cb[_0x4265d0('0x94')]=_0x1ac988[_0x4265d0('0xad')];if(_0x5e38cb[_0x4265d0('0x94')]===0x0)return[];return db[_0x4265d0('0x2c')][_0x4265d0('0x5d')](_0x1249ae[_0x4265d0('0x4')](),_0x272da7)[_0x4265d0('0x14')](function(_0x5a2625){const _0x3da4bc=_0x4265d0;_0x2205ea=_[_0x3da4bc('0x24')](_0x5a2625,'id'),_0x272da7=_[_0x3da4bc('0x57')](_0x272da7,{'model':db[_0x3da4bc('0xd1')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x133548[_0x3da4bc('0x5d')][_0x3da4bc('0xcd')]?_0x37d00d[_0x3da4bc('0x5f')][_0x3da4bc('0x16')](function(_0xab85a1){const _0x29241a=_0x3da4bc;_0x5e155a[_0x29241a('0x66')]('i.'+_0xab85a1);}):(_0x5e155a[_0x3da4bc('0x66')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x5e155a['field'](_0x3da4bc('0xe2'),_0x3da4bc('0x9')),_0x5e155a[_0x3da4bc('0x66')](_0x3da4bc('0x6e'),_0x3da4bc('0x89')),_0x5e155a[_0x3da4bc('0x66')]('i.*'),_0x5e155a[_0x3da4bc('0x66')](_0x3da4bc('0x80'),_0x3da4bc('0x81')),_0x5e155a['field'](_0x3da4bc('0x44'),'Contact.lastName'),_0x5e155a[_0x3da4bc('0x66')](_0x3da4bc('0xaf'),_0x3da4bc('0x42')),_0x5e155a[_0x3da4bc('0x66')](_0x3da4bc('0x39'),_0x3da4bc('0x88')),_0x5e155a[_0x3da4bc('0x66')](_0x3da4bc('0xdb'),_0x3da4bc('0x21')),_0x5e155a['field']('c.fax','Contact.fax'),_0x5e155a['field'](_0x3da4bc('0xc7'),_0x3da4bc('0xb6')),_0x5e155a[_0x3da4bc('0x66')](_0x3da4bc('0x3f'),_0x3da4bc('0xd')),_0x5e155a[_0x3da4bc('0x66')](_0x3da4bc('0x58'),_0x3da4bc('0xa0')));if(_0x37d00d[_0x3da4bc('0x20')])_0x5e155a[_0x3da4bc('0x20')](_0x37d00d[_0x3da4bc('0x20')]);if(_0x37d00d[_0x3da4bc('0xd8')])_0x5e155a[_0x3da4bc('0xd8')](_0x37d00d[_0x3da4bc('0xd8')]);return db['sequelize']['query'](_0x5e155a[_0x3da4bc('0x4')](),_0x272da7);})[_0x4265d0('0x14')](function(_0x2ad320){const _0x1c9988=_0x4265d0;return _0x5b83b5[_0x1c9988('0x5')]('ui.OpenchannelInteractionId\x20IN\x20?',_[_0x1c9988('0x87')](_0x2ad320,'id')),db['sequelize'][_0x1c9988('0x5d')](_0x5b83b5[_0x1c9988('0x4')](),_0x272da7)['then'](function(_0x538fab){const _0xcc81ca=_0x1c9988,_0x528398=_[_0xcc81ca('0x6d')](_0x538fab,_0xcc81ca('0xa9')),_0x3f917e=[];return _0x2ad320['forEach'](function(_0x51413d){_0x3f917e['push'](updateOpenchannelInteraction(_0x51413d,_0x2205ea,_0x528398));}),Promise[_0xcc81ca('0xa3')](_0x3f917e);});});})[_0x214b01('0x14')](function(_0x1540d0){const _0x1fae37=_0x214b01;return _0x5e38cb[_0x1fae37('0x7f')]=_0x1540d0,_0x5e38cb;})[_0x214b01('0x14')](respondWithFilteredResult(_0x430652,_0x37d00d));})[_0x3c7ef1('0xe3')](handleError(_0x430652,null));},exports[_0x4295cc('0x22')]=function(_0x538fc5,_0x21dab6){const _0x142084=_0x4295cc,_0x1c676c={};_0x538fc5[_0x142084('0x5d')]['type']&&_0x538fc5[_0x142084('0x5d')][_0x142084('0x97')]==='from'?_0x1c676c[_0x142084('0x4f')]=_0x538fc5[_0x142084('0x7')]['id']:_0x1c676c['id']=_0x538fc5[_0x142084('0x7')]['id'];let _0x3c800e={'raw':![],'where':_0x1c676c};const _0x2d94c0={};return _0x2d94c0[_0x142084('0x98')]=_[_0x142084('0x7d')](db['OpenchannelInteraction']['rawAttributes']),_0x2d94c0['query']=_['keys'](_0x538fc5[_0x142084('0x5d')]),_0x2d94c0[_0x142084('0x8d')]=_[_0x142084('0x3a')](_0x2d94c0[_0x142084('0x98')],_0x2d94c0[_0x142084('0x5d')]),_0x3c800e[_0x142084('0x5f')]=_[_0x142084('0x3a')](_0x2d94c0[_0x142084('0x98')],qs[_0x142084('0xcd')](_0x538fc5['query']['fields'])),_0x3c800e[_0x142084('0x5f')]=_0x3c800e['attributes'][_0x142084('0xad')]?_0x3c800e[_0x142084('0x5f')]:_0x2d94c0['model'],_0x538fc5['query']['includeAll']&&(_0x3c800e[_0x142084('0x3e')]=[{'all':!![]}]),_0x3c800e=_[_0x142084('0x57')]({},_0x3c800e,_0x538fc5['options']),db['OpenchannelInteraction'][_0x142084('0x48')](_0x3c800e)['then'](handleEntityNotFound(_0x21dab6,null))[_0x142084('0x14')](respondWithResult(_0x21dab6,null))['catch'](handleError(_0x21dab6,null));},exports[_0x4295cc('0xbd')]=function(_0x224927,_0x38f257){const _0x3e4260=_0x4295cc;return db[_0x3e4260('0xd1')]['create'](_0x224927[_0x3e4260('0xc3')],{})[_0x3e4260('0x14')](respondWithResult(_0x38f257,0xc9))[_0x3e4260('0xe3')](handleError(_0x38f257,null));},exports['update']=function(_0x2745da,_0x3640a1){const _0x209d2a=_0x4295cc;return _0x2745da[_0x209d2a('0xc3')]['id']&&delete _0x2745da[_0x209d2a('0xc3')]['id'],db['OpenchannelInteraction']['findOne']({'where':{'id':_0x2745da[_0x209d2a('0x7')]['id']}})[_0x209d2a('0x14')](handleEntityNotFound(_0x3640a1,null))[_0x209d2a('0x14')](saveUpdates(_0x2745da[_0x209d2a('0xc3')],null))[_0x209d2a('0x14')](respondWithResult(_0x3640a1,null))[_0x209d2a('0xe3')](handleError(_0x3640a1,null));},exports[_0x4295cc('0x7b')]=function(_0x1fb488,_0x110a14){const _0x14ba9c=_0x4295cc;return db[_0x14ba9c('0xd1')][_0x14ba9c('0x48')]({'where':{'id':_0x1fb488['params']['id']}})[_0x14ba9c('0x14')](handleEntityNotFound(_0x110a14,null))[_0x14ba9c('0x14')](removeEntity(_0x110a14,null))[_0x14ba9c('0xe3')](handleError(_0x110a14,null));},exports[_0x4295cc('0x8b')]=function(_0xbfab28,_0x254906){const _0x220431=_0x4295cc;return db['OpenchannelInteraction'][_0x220431('0x8b')]()[_0x220431('0x14')](respondWithResult(_0x254906,null))[_0x220431('0xe3')](handleError(_0x254906,null));},exports[_0x4295cc('0x1a')]=function(_0x420331,_0x45527d){const _0x4d2ed3=_0x4295cc;return db[_0x4d2ed3('0xba')]['findOne']({'where':{'id':_0x420331[_0x4d2ed3('0x7')]['id']}})[_0x4d2ed3('0x14')](function(_0x10e798){const _0x54506e=_0x4d2ed3;if(_0x10e798)return _0x10e798['addMessage'](_0x420331[_0x54506e('0xc3')][_0x54506e('0x4e')],{'through':_[_0x54506e('0x4b')](_0x420331[_0x54506e('0xc3')],[_0x54506e('0x4e'),'id'])});})[_0x4d2ed3('0x14')](respondWithResult(_0x45527d,null))[_0x4d2ed3('0xe3')](handleError(_0x45527d,null));},exports[_0x4295cc('0x86')]=function(_0x5b8dd9,_0x346ba7){const _0x8d48fe=_0x4295cc;let _0x4b156f={'raw':![],'where':{}};const _0x58c2d2={},_0x210fcb={'count':0x0,'rows':[]};return db[_0x8d48fe('0xd1')]['findOne']({'where':{'id':_0x5b8dd9[_0x8d48fe('0x7')]['id']}})[_0x8d48fe('0x14')](handleEntityNotFound(_0x346ba7,null))['then'](function(_0x4f83c3){const _0x1d2760=_0x8d48fe;if(_0x4f83c3){_0x58c2d2[_0x1d2760('0x98')]=_[_0x1d2760('0x7d')](db[_0x1d2760('0xba')][_0x1d2760('0xa4')]),_0x58c2d2['query']=_[_0x1d2760('0x7d')](_0x5b8dd9['query']),_0x58c2d2[_0x1d2760('0x8d')]=_[_0x1d2760('0x3a')](_0x58c2d2[_0x1d2760('0x98')],_0x58c2d2[_0x1d2760('0x5d')]),_0x4b156f[_0x1d2760('0x5f')]=_['intersection'](_0x58c2d2[_0x1d2760('0x98')],qs[_0x1d2760('0xcd')](_0x5b8dd9[_0x1d2760('0x5d')][_0x1d2760('0xcd')])),_0x4b156f[_0x1d2760('0x5f')]=_0x4b156f['attributes'][_0x1d2760('0xad')]?_0x4b156f[_0x1d2760('0x5f')]:_0x58c2d2[_0x1d2760('0x98')];typeof _0x5b8dd9[_0x1d2760('0x5d')][_0x1d2760('0x9a')]===_0x1d2760('0xbe')&&(_0x4b156f['limit']=qs['limit'](_0x5b8dd9[_0x1d2760('0x5d')]['limit']),_0x4b156f[_0x1d2760('0xd8')]=qs[_0x1d2760('0xd8')](_0x5b8dd9[_0x1d2760('0x5d')]['offset']));_0x4b156f[_0x1d2760('0x73')]=qs[_0x1d2760('0x40')](_0x5b8dd9[_0x1d2760('0x5d')][_0x1d2760('0x40')]),_0x4b156f['where']=qs['filters'](_[_0x1d2760('0xb8')](_0x5b8dd9['query'],_0x58c2d2[_0x1d2760('0x8d')])),_0x4b156f[_0x1d2760('0x5')]['OpenchannelInteractionId']=_0x4f83c3['id'];_0x5b8dd9[_0x1d2760('0x5d')][_0x1d2760('0xc4')]&&(_0x4b156f['where']=_[_0x1d2760('0x57')](_0x4b156f[_0x1d2760('0x5')],{[Op['or']]:_[_0x1d2760('0x87')](_0x4b156f[_0x1d2760('0x5f')],function(_0x59df1c){const _0x200d38=_0x1d2760,_0x7dbbc2={};return _0x7dbbc2[_0x59df1c]={[Op[_0x200d38('0x3d')]]:'%'+_0x5b8dd9['query'][_0x200d38('0xc4')]+'%'},_0x7dbbc2;})}));if(_0x5b8dd9['query'][_0x1d2760('0x4a')]){const _0x168d5c=_0x5b8dd9['query'][_0x1d2760('0x4a')]['split'](','),_0x49051d={};_0x49051d[_0x168d5c[0x0]]={[Op['gte']]:moment(_0x168d5c[0x1])[_0x1d2760('0xda')](_0x1d2760('0xc2'))},_0x4b156f[_0x1d2760('0x5')]=_[_0x1d2760('0x57')](_0x4b156f['where'],_0x49051d);}return _0x4b156f=_['merge']({},_0x4b156f,_0x5b8dd9['options']),db['OpenchannelMessage'][_0x1d2760('0x94')]({'where':_0x4b156f[_0x1d2760('0x5')]})['then'](function(_0x3e25d9){const _0x36f7d3=_0x1d2760;return _0x210fcb[_0x36f7d3('0x94')]=_0x3e25d9,_0x5b8dd9[_0x36f7d3('0x5d')]['includeAll']&&(_0x4b156f[_0x36f7d3('0x3e')]=[{'all':!![]}]),db[_0x36f7d3('0xba')][_0x36f7d3('0x35')](_0x4b156f);})['then'](function(_0x1873cf){const _0x2622ea=_0x1d2760;return _0x210fcb[_0x2622ea('0x7f')]=_0x1873cf,_0x210fcb;});}})[_0x8d48fe('0x14')](respondWithFilteredResult(_0x346ba7,_0x4b156f))['catch'](handleError(_0x346ba7,null));},exports[_0x4295cc('0x8')]=function(_0x1b588e,_0x30bcf2){const _0x5b54f8=_0x4295cc;return db[_0x5b54f8('0xd1')][_0x5b54f8('0x48')]({'where':{'id':_0x1b588e[_0x5b54f8('0x7')]['id']}})[_0x5b54f8('0x14')](function(_0x14d87e){const _0x158366=_0x5b54f8;if(_0x14d87e)return _0x14d87e['setTags'](_0x1b588e[_0x158366('0xc3')][_0x158366('0x4e')],{'through':_[_0x158366('0x4b')](_0x1b588e[_0x158366('0xc3')],[_0x158366('0x4e'),'id'])})[_0x158366('0x14')](function(){const _0x560b03=_0x158366;return db[_0x560b03('0xcc')][_0x560b03('0x35')]({'attributes':['id',_0x560b03('0x2e'),_0x560b03('0xb3')],'where':{'id':_0x1b588e[_0x560b03('0xc3')][_0x560b03('0x4e')]}});})[_0x158366('0x14')](function(_0x1e7188){const _0x5a1296=_0x158366;return socket[_0x5a1296('0x6c')](_0x5a1296('0xe1'),{'id':Number(_0x1b588e['params']['id']),'tags':_0x1e7188||[]}),{'id':Number(_0x1b588e[_0x5a1296('0x7')]['id']),'tags':_0x1e7188||[]};});})[_0x5b54f8('0x14')](respondWithResult(_0x30bcf2,null))[_0x5b54f8('0xe3')](handleError(_0x30bcf2,null));},exports[_0x4295cc('0xc1')]=function(_0x1a1d9c,_0x4fb937){const _0x35fcc7=_0x4295cc;return db['OpenchannelInteraction'][_0x35fcc7('0x48')]({'where':{'id':_0x1a1d9c[_0x35fcc7('0x7')]['id']}})['then'](handleEntityNotFound(_0x4fb937,null))['then'](function(_0x47248b){const _0x32c4eb=_0x35fcc7;if(_0x47248b)return _0x47248b[_0x32c4eb('0xc1')](_0x1a1d9c['query'][_0x32c4eb('0x4e')]);})[_0x35fcc7('0x14')](respondWithStatusCode(_0x4fb937,null))['catch'](handleError(_0x4fb937,null));},exports[_0x4295cc('0xc9')]=function(_0x1de427,_0xd481ef){const _0x131ad6=_0x4295cc,_0x92e79e=moment()[_0x131ad6('0x30')]()[_0x131ad6('0x4')](),_0x260869=path['join'](config['root'],'server',_0x131ad6('0xa'),_0x131ad6('0x61')),_0x2feae3=path['join'](config[_0x131ad6('0x72')],_0x131ad6('0xd6'),_0x131ad6('0xa'),_0x131ad6('0x37')),_0xa44aa8=path[_0x131ad6('0x5c')](_0x260869,_0x92e79e),_0x5399fc=util[_0x131ad6('0xda')](_0x131ad6('0x71'),_0x1de427['params']['id'],_0x92e79e),_0x46b276=path['join'](_0x260869,_0x5399fc),_0x567ec0=[];_0x567ec0[_0x131ad6('0xc0')]({'model':db[_0x131ad6('0xac')],'as':_0x131ad6('0xac'),'attributes':['id',_0x131ad6('0xd4')],'raw':!![]}),_0x567ec0[_0x131ad6('0xc0')]({'model':db[_0x131ad6('0x4d')],'as':_0x131ad6('0x78'),'attributes':['id','firstName',_0x131ad6('0x2f')],'raw':!![]});_0x1de427[_0x131ad6('0x5d')][_0x131ad6('0x37')]&&_0x567ec0[_0x131ad6('0xc0')]({'model':db[_0x131ad6('0x84')],'as':'Attachment','raw':!![]});const _0x42ef39=[{'model':db['OpenchannelMessage'],'as':_0x131ad6('0x70'),'attributes':['id',_0x131ad6('0xc3'),_0x131ad6('0xd9'),_0x131ad6('0x28'),_0x131ad6('0x1c'),'read'],'include':_0x567ec0}];return _0x42ef39[_0x131ad6('0xc0')]({'model':db['OpenchannelAccount'],'as':'Account','attributes':['id',_0x131ad6('0x2e')]}),_0x42ef39[_0x131ad6('0xc0')]({'model':db[_0x131ad6('0xac')],'as':_0x131ad6('0x1e'),'attributes':['id',_0x131ad6('0xd4')]}),db[_0x131ad6('0xd1')]['findOne']({'where':{'id':_0x1de427['params']['id']},'include':_0x42ef39})[_0x131ad6('0x14')](handleEntityNotFound(_0xd481ef,null))[_0x131ad6('0x14')](function(_0x4eadb1){const _0x493714=_0x131ad6;if(_0x4eadb1){const _0xc8eb38=_0x4eadb1[_0x493714('0x54')]({'plain':!![]});fs[_0x493714('0x11')](_0xa44aa8);const _0x1ed832={'format':'A4','border':'10px','header':{'height':_0x493714('0x99'),'contents':{'first':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
Interaction\x20Transcript
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}},'footer':{'height':'30px','contents':{'default':util[_0x493714('0xda')](_0x493714('0x79'),util[_0x493714('0xda')](_0x493714('0x9f'),'Openchannel',_0xc8eb38['id']),moment()['format'](_0x493714('0x13'))[_0x493714('0x4')]())}}},_0x579d0e={'channel':_0x493714('0x59'),'account':_0xc8eb38[_0x493714('0x6a')][_0x493714('0x2e')],'agent':_0xc8eb38[_0x493714('0x1e')]?_0xc8eb38[_0x493714('0x1e')][_0x493714('0xd4')]:_0x493714('0xcb'),'createdAt':moment(_0xc8eb38['createdAt'])[_0x493714('0xda')](_0x493714('0xc2'))[_0x493714('0x4')](),'closedAt':_0xc8eb38[_0x493714('0x43')]?moment(_0xc8eb38['closedAt'])[_0x493714('0xda')](_0x493714('0xc2'))[_0x493714('0x4')]():'','disposition':_0xc8eb38[_0x493714('0xab')],'visibility':_0xc8eb38[_0x493714('0xdc')]?_0x493714('0xa8'):_0x493714('0x10'),'messages':_(_0xc8eb38[_0x493714('0x70')])[_0x493714('0xc4')]({'secret':![]})[_0x493714('0x87')](function(_0xb0850b){const _0x547865=_0x493714;if(_0xb0850b[_0x547865('0x84')]){const _0x275a14=path['join'](_0x2feae3,_0xb0850b[_0x547865('0x84')]['basename']);fs[_0x547865('0x91')](_0x275a14)&&fs[_0x547865('0x9b')](_0x275a14)['pipe'](fs[_0x547865('0x17')](path[_0x547865('0x5c')](_0xa44aa8,_0xb0850b[_0x547865('0x84')][_0x547865('0x9d')])));}return{'date':moment(_0xb0850b[_0x547865('0xd9')])[_0x547865('0xda')]('YYYY-MM-DD\x20HH:mm:ss')['toString'](),'sender':_0xb0850b[_0x547865('0x28')]===_0x547865('0xd2')?_0xb0850b[_0x547865('0xac')]?_0xb0850b[_0x547865('0xac')][_0x547865('0xd4')]:_0x547865('0x9c'):_0xb0850b[_0x547865('0x78')][_0x547865('0x18')]+(_0xb0850b[_0x547865('0x78')]['lastName']?'\x20'+_0xb0850b['Contact'][_0x547865('0x2f')]:''),'body':_0xb0850b[_0x547865('0x84')]?_0xb0850b['Attachment'][_0x547865('0x9d')]:_0xb0850b['body'],'direction':_0xb0850b[_0x547865('0x28')]===_0x547865('0xd2')?'A':'C','secret':_0xb0850b[_0x547865('0x1c')],'read':_0xb0850b[_0x547865('0x2a')],'attachment':_0xb0850b[_0x547865('0x84')]};})['value']()};return ejs[_0x493714('0xc8')](path['join'](config[_0x493714('0x72')],_0x493714('0xd6'),_0x493714('0x82'),_0x493714('0x8f')),{'interaction':_0x579d0e})[_0x493714('0x14')](function(_0x174976){return new Promise(function(_0x15c124,_0x51df19){const _0x3003d4=a480_0x5744;pdf[_0x3003d4('0xbd')](_0x174976,_0x1ed832)['toFile'](path[_0x3003d4('0x5c')](_0xa44aa8,_0x3003d4('0xb4')+_0xc8eb38['id']+'-'+_0x92e79e+_0x3003d4('0xb9')),function(_0x594ca5,_0x2b0956){if(_0x594ca5)return _0x51df19(_0x594ca5);_0x15c124(_0x2b0956);});});})['then'](function(){const _0x230122=_0x493714;return new Promise(function(_0x1883e5,_0x4aaa97){zipdir(_0xa44aa8,{'saveTo':_0x46b276},function(_0x442fd1,_0x2ac360){if(_0x442fd1)return _0x4aaa97(_0x442fd1);return _0x1883e5(_0x2ac360);});})[_0x230122('0x14')](function(){return new Promise(function(_0x711c18,_0x3ae7b1){rimraf(_0xa44aa8,function(_0x1f690f){if(_0x1f690f)_0x3ae7b1(_0x1f690f);return _0x711c18();});});})['then'](function(){const _0x216d39=_0x230122;return _0xd481ef[_0x216d39('0xc9')](_0x46b276,_0x5399fc,function(_0xa03301){const _0x43e50c=_0x216d39;_0xa03301?console[_0x43e50c('0xb0')](_0x43e50c('0xb2'),_0xa03301):fs['unlinkSync'](_0x46b276);});});});}else return _0xd481ef[_0x493714('0x90')](0xc8);})[_0x131ad6('0xe3')](handleError(_0xd481ef,null));}; \ No newline at end of file +const a480_0x5c84=['OpenchannelMessage','text','i.id','Contact.fax','tools_tags','gte','%s\x20#%d','OpenchannelInteraction','ui.OpenchannelInteractionId\x20IN\x20?','openchannel_messages','secret','having','length','downloadInteraction.html','index','api','ui.OpenchannelInteractionId','operator','get','destroy','40px','create','Account','Contact.lastName','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','findOne','c.lastName','$gte','createdAt','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','10px','sqlOperator','closedAt','conditions','Tags','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
Interaction\x20Transcript
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','addMessage','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','getFullTextValue','Tag','isEmpty','TagIds','catch','buildExpression','c.email','c.fax','search','log','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','CmContact','push','group','path','join','forEach','../../config/logger','i.OpenchannelAccountId\x20IN\x20?','includeAll','../../components/parsers/advancedSearch','toString','name','disposition','c.mobile','format','undefined','expr','json','./openchannelInteraction.socket','user_has_openchannel_interactions','describe','body','ids','concat','existsSync','Private','GROUP_CONCAT(DISTINCT\x20t.id)','YYYY-MM-DD\x20HH:mm:ss','query','update','N.A.','o.id\x20=\x20i.UserId','pick','removeTags','order','i.from\x20LIKE\x20?','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','SELECT','basename','color','isArray','unix','System','start','html-pdf','options','closed','Owner.internal','Owner','sort','\x20=\x20?','Attachment','c.phone','some','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','show','t.id\x20IN\x20?','renderFile','model','nolimit','c.firstName','../../mysqldb','tag','threadId','sequelize','../../config/environment','Sequelize','ContactId','count','fields','server','i.id\x20LIKE\x20?','include','left_join','User','moment','users','err','split','a.mandatoryDisposition','like','offset','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','Account.key','filters','direction','keys','i.OpenchannelAccountId\x20IS\x20NULL','key','set','openchannelInteractionTags:save','Users','status','from','attachments','Contact.email','a.key','omit','parse','transcript-%d-%s.zip','mkdirSync','stack','$substring','Messages','o.internal','30px','find','rawAttributes','intersection','filter','groupBy','Contact.firstName','OpenchannelAccountId','resolve','user','u.fullname','rows','value','map','u.id\x20=\x20ui.UserId','register','\x20IS\x20NULL','firstName','OpenchannelInteractionId','params','UserId','out','getMessages','setTags','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','type','download','getOpenchannelAccounts','lodash','it.OpenchannelInteractionId\x20=\x20i.id','cm_contacts','OpenchannelAccount','files','../../components/parsers/qs','root','replace','where','compact','sendStatus','limit','Openchannel','i.*','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','fieldName','field','lastName','merge','then','openchannel_interaction_has_tags','read','tmp','unreadMessages','Contact','fullname','o.fullname','u.id','attributes','select','end'];(function(_0x38464f,_0x5c848a){const _0x151e20=function(_0x399e19){while(--_0x399e19){_0x38464f['push'](_0x38464f['shift']());}};_0x151e20(++_0x5c848a);}(a480_0x5c84,0xb7));const a480_0x151e=function(_0x38464f,_0x5c848a){_0x38464f=_0x38464f-0x0;let _0x151e20=a480_0x5c84[_0x38464f];return _0x151e20;};const _0x5bb67f=a480_0x151e;'use strict';const pdf=require(_0x5bb67f('0x7b')),rimraf=require('rimraf'),zipdir=require('zip-dir'),moment=require(_0x5bb67f('0x9a')),util=require('util'),path=require(_0x5bb67f('0x52')),ejs=require('ejs'),fs=require('fs'),_=require(_0x5bb67f('0xd4')),squel=require('squel'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x5bb67f('0x4')),as=require(_0x5bb67f('0x58')),logger=require(_0x5bb67f('0x55'))(_0x5bb67f('0x2d')),config=require(_0x5bb67f('0x90')),db=require(_0x5bb67f('0x8c'))['db'],{Op}=require(_0x5bb67f('0x8f'));require(_0x5bb67f('0x61'))[_0x5bb67f('0xc7')](socket);function respondWithStatusCode(_0x399e19,_0x1dd5ac){return _0x1dd5ac=_0x1dd5ac||0xcc,function(_0x164cb8){const _0x180c45=a480_0x151e;if(_0x164cb8)return _0x399e19[_0x180c45('0x9')](_0x1dd5ac);return _0x399e19['status'](_0x1dd5ac)[_0x180c45('0x1d')]();};}function respondWithResult(_0x1c4499,_0x38a1f2){return _0x38a1f2=_0x38a1f2||0xc8,function(_0x1ee1c3){const _0xca9805=a480_0x151e;if(_0x1ee1c3)return _0x1c4499[_0xca9805('0xab')](_0x38a1f2)[_0xca9805('0x60')](_0x1ee1c3);};}function respondWithFilteredResult(_0x504ee6,_0x151820){return function(_0x2de674){const _0xae0e03=a480_0x151e;if(_0x2de674){const _0x53cf19=_0x2de674[_0xae0e03('0x93')],_0x4dd66b=_0x151820[_0xae0e03('0xa0')];let _0x1fa92e=_0x151820[_0xae0e03('0xa0')]+_0x151820[_0xae0e03('0xa')],_0x380873;return _0x1fa92e>=_0x53cf19?(_0x1fa92e=_0x53cf19,_0x380873=0xc8):_0x380873=0xce,_0x504ee6[_0xae0e03('0xab')](_0x380873),_0x504ee6[_0xae0e03('0xa8')]('Content-Range',_0x4dd66b+'-'+_0x1fa92e+'/'+_0x53cf19)[_0xae0e03('0x60')](_0x2de674);}return null;};}function saveUpdates(_0x25ce09){return function(_0x55e0c4){const _0x2eb914=a480_0x151e;if(_0x55e0c4)return _0x55e0c4[_0x2eb914('0x6c')](_0x25ce09)['then'](function(_0x476b6c){return _0x476b6c;});return null;};}function removeEntity(_0x96b2d3){return function(_0x30de88){const _0x5c274f=a480_0x151e;if(_0x30de88)return _0x30de88[_0x5c274f('0x31')]()[_0x5c274f('0x12')](function(){const _0x46d9d0=_0x5c274f;_0x96b2d3[_0x46d9d0('0xab')](0xcc)[_0x46d9d0('0x1d')]();});};}function handleEntityNotFound(_0x5ed896){return function(_0x1682e1){const _0x44fee7=a480_0x151e;return!_0x1682e1&&_0x5ed896[_0x44fee7('0x9')](0x194),_0x1682e1;};}function handleError(_0x16c13e,_0x5539de){return _0x5539de=_0x5539de||0x1f4,function(_0xc9a7eb){const _0x48b93=a480_0x151e;logger['error'](_0xc9a7eb[_0x48b93('0xb4')]),_0xc9a7eb[_0x48b93('0x5a')]&&delete _0xc9a7eb['name'],_0x16c13e[_0x48b93('0xab')](_0x5539de)['send'](_0xc9a7eb);};}function getInteractionUsers(_0x14afd4,_0xd3d46e){return new Promise(function(_0x154be4,_0x581161){const _0x256059=a480_0x151e;try{_0xd3d46e[_0x14afd4['id']]&&(_0x14afd4[_0x256059('0xaa')]=_['map'](_0xd3d46e[_0x14afd4['id']],function(_0x3f7750){const _0x210d70=_0x256059;return{'id':_0x3f7750['id'],'fullname':_0x3f7750[_0x210d70('0x18')]};}));}catch(_0x594d4e){_0x581161(_0x594d4e);}_0x154be4(_0x14afd4);});}function getInteractionTags(_0x53d887,_0x383cab){return new Promise(function(_0x539f76,_0x332317){const _0x139f17=a480_0x151e;try{_0x53d887[_0x139f17('0x47')]&&(_0x53d887[_0x139f17('0x40')]=[],_0x53d887['TagIds'][_0x139f17('0x9d')](',')[_0x139f17('0x54')](function(_0x31cc2a){const _0x5ab6fb=_0x139f17;_0x53d887[_0x5ab6fb('0x40')][_0x5ab6fb('0x50')](_0x383cab[_0x31cc2a]);})),delete _0x53d887['TagIds'];}catch(_0x3cc29a){_0x332317(_0x3cc29a);}_0x539f76(_0x53d887);});}function updateOpenchannelInteraction(_0x20bdea,_0x39ad29,_0x55e77f){return new Promise(function(_0x1e0d64,_0x262c63){const _0x2fde36=a480_0x151e;return getInteractionUsers(_0x20bdea,_0x55e77f)[_0x2fde36('0x12')](function(_0x1f491){return getInteractionTags(_0x1f491,_0x39ad29);})[_0x2fde36('0x12')](function(_0x2a5159){_0x1e0d64(_0x2a5159);})[_0x2fde36('0x48')](function(_0xaef447){_0x262c63(_0xaef447);});});}exports[_0x5bb67f('0x2c')]=function(_0x2663b0,_0x33a232){const _0x3e81b7=_0x5bb67f,_0x331ca7={},_0xef59ec={},_0x5b58e5={'count':0x0,'rows':[]},_0x3be384=_[_0x3e81b7('0xc5')](db[_0x3e81b7('0x25')][_0x3e81b7('0xba')],function(_0x325a5b){const _0x19e5e2=_0x3e81b7;return{'name':_0x325a5b[_0x19e5e2('0xe')],'type':_0x325a5b[_0x19e5e2('0xd1')][_0x19e5e2('0xa7')]};});_0xef59ec['model']=_[_0x3e81b7('0xc5')](_0x3be384,_0x3e81b7('0x5a')),_0xef59ec[_0x3e81b7('0x6b')]=_[_0x3e81b7('0xa5')](_0x2663b0[_0x3e81b7('0x6b')]),_0xef59ec[_0x3e81b7('0xa3')]=_[_0x3e81b7('0xbb')](_0xef59ec[_0x3e81b7('0x89')],_0xef59ec['query']),_0x331ca7[_0x3e81b7('0x1b')]=_[_0x3e81b7('0xbb')](_0xef59ec[_0x3e81b7('0x89')],qs['fields'](_0x2663b0[_0x3e81b7('0x6b')]['fields'])),_0x331ca7[_0x3e81b7('0x1b')]=_0x331ca7[_0x3e81b7('0x1b')]['length']?_0x331ca7[_0x3e81b7('0x1b')]:_0xef59ec[_0x3e81b7('0x89')];typeof _0x2663b0[_0x3e81b7('0x6b')][_0x3e81b7('0x8a')]===_0x3e81b7('0x5e')&&(_0x331ca7[_0x3e81b7('0xa')]=qs[_0x3e81b7('0xa')](_0x2663b0['query'][_0x3e81b7('0xa')]),_0x331ca7[_0x3e81b7('0xa0')]=qs[_0x3e81b7('0xa0')](_0x2663b0[_0x3e81b7('0x6b')][_0x3e81b7('0xa0')]));_0x331ca7['order']=qs[_0x3e81b7('0x80')](_0x2663b0[_0x3e81b7('0x6b')][_0x3e81b7('0x80')]),_0x331ca7[_0x3e81b7('0x7')]=qs[_0x3e81b7('0xa3')](_[_0x3e81b7('0x6f')](_0x2663b0['query'],_0xef59ec[_0x3e81b7('0xa3')]),_0x3be384);let _0x42d427=[];const _0x398c0b=squel['select']()[_0x3e81b7('0xf')]('id')[_0x3e81b7('0xf')](_0x3e81b7('0x5a'))[_0x3e81b7('0xf')](_0x3e81b7('0x76'))[_0x3e81b7('0xac')](_0x3e81b7('0x22')),_0x30d218=squel['select']()[_0x3e81b7('0xf')](_0x3e81b7('0x1a'))[_0x3e81b7('0xf')](_0x3e81b7('0xc2'))[_0x3e81b7('0xf')](_0x3e81b7('0x2e'))[_0x3e81b7('0xac')](_0x3e81b7('0x62'),'ui')['left_join'](_0x3e81b7('0x9b'),'u',_0x3e81b7('0xc6')),_0x238e37=squel[_0x3e81b7('0x1c')]()[_0x3e81b7('0xac')]('openchannel_interactions','i')[_0x3e81b7('0x98')](_0x3e81b7('0x1'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')[_0x3e81b7('0x98')](_0x3e81b7('0x9b'),'o',_0x3e81b7('0x6e'))[_0x3e81b7('0x98')]('openchannel_accounts','a','a.id\x20=\x20i.OpenchannelAccountId')['left_join'](_0x3e81b7('0x27'),'me','me.OpenchannelInteractionId\x20=\x20i.id')[_0x3e81b7('0x98')](_0x3e81b7('0x13'),'it',_0x3e81b7('0x0'))[_0x3e81b7('0x98')](_0x3e81b7('0x22'),'t','t.id\x20=\x20it.TagId'),_0x15caab=squel[_0x3e81b7('0x5f')]();let _0x184304=[];const _0x1062dc=squel[_0x3e81b7('0x5f')]();let _0x24e1a0;if(_0x2663b0[_0x3e81b7('0x6b')][_0x3e81b7('0x4c')]){_0x24e1a0=as['parseSearch'](_0x2663b0[_0x3e81b7('0x6b')][_0x3e81b7('0x4c')]);const _0x427807=_0x24e1a0[_0x3e81b7('0x3d')];for(let _0x54db6f=0x0;_0x54db6f<_0x24e1a0[_0x3e81b7('0x3f')][_0x3e81b7('0x2a')];_0x54db6f++){const _0x406b9c=_0x24e1a0[_0x3e81b7('0x3f')][_0x54db6f],_0x4435d4='i';let _0x22ab17,_0x1f4571=_['find'](_0x3be384,[_0x3e81b7('0x5a'),_0x406b9c[_0x3e81b7('0xf')]]);if(!_0x1f4571)switch(_0x406b9c['field']){case _0x3e81b7('0x16'):_0x406b9c[_0x3e81b7('0xc4')]==0x1?_0x238e37[_0x3e81b7('0x29')]('`'+_0x406b9c['field']+'`\x20=\x200'):_0x238e37[_0x3e81b7('0x29')]('`'+_0x406b9c[_0x3e81b7('0xf')]+'`\x20>\x200');break;case _0x3e81b7('0x17'):if(_0x406b9c[_0x3e81b7('0x2f')]===_0x3e81b7('0xb5')){if(_0x406b9c[_0x3e81b7('0xc4')]['split']('\x20')['length']>0x1)_0x15caab[_0x427807](_0x3e81b7('0x43'),qs[_0x3e81b7('0x44')](_0x406b9c[_0x3e81b7('0xc4')]),null);else{const _0x4926ce='%'+_0x406b9c[_0x3e81b7('0xc4')]+'%';_0x15caab[_0x427807]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x4926ce,_0x4926ce,_0x4926ce);}}else _0x1f4571=_[_0x3e81b7('0xb9')](_0x3be384,[_0x3e81b7('0x5a'),_0x3e81b7('0x92')]),_0x406b9c[_0x3e81b7('0xf')]='ContactId',_0x22ab17=as[_0x3e81b7('0x49')](_0x4435d4,_0x1f4571['type'],_0x406b9c),_0x15caab[_0x427807](_0x22ab17[_0x3e81b7('0x1f')],_0x22ab17['value'][_0x3e81b7('0x7a')],_0x22ab17[_0x3e81b7('0xc4')]['end']);break;case _0x3e81b7('0x45'):{const _0x474c28=_0x406b9c[_0x3e81b7('0xc4')][_0x3e81b7('0x9d')](',')[_0x3e81b7('0xc5')](function(_0x1b4477){return Number(_0x1b4477);});_0x474c28['forEach'](function(_0x5a0e6a){const _0x6bdf57=_0x3e81b7;_0x1062dc['or'](_0x6bdf57('0xa1'),'%,'+_0x5a0e6a+',%');}),_0x184304=_['union'](_0x184304,_0x474c28);}break;case'User':_0x406b9c[_0x3e81b7('0x2f')]===_0x3e81b7('0xb5')?_0x15caab[_0x427807](_0x3e81b7('0x73'),'%'+_0x406b9c['value']+'%',null):(_0x1f4571=_['find'](_0x3be384,[_0x3e81b7('0x5a'),_0x3e81b7('0xcc')]),_0x406b9c['field']=_0x3e81b7('0xcc'),_0x22ab17=as['buildExpression'](_0x4435d4,_0x1f4571[_0x3e81b7('0xd1')],_0x406b9c),_0x15caab[_0x427807](_0x22ab17['text'],_0x22ab17['value']['start'],_0x22ab17['value'][_0x3e81b7('0x1d')]));break;case _0x3e81b7('0x64'):_0x22ab17=as['buildExpression']('me',null,_0x406b9c),_0x15caab[_0x427807](_0x22ab17[_0x3e81b7('0x1f')],_0x22ab17[_0x3e81b7('0xc4')]['start'],_0x22ab17[_0x3e81b7('0xc4')][_0x3e81b7('0x1d')]);break;}else _0x22ab17=as[_0x3e81b7('0x49')](_0x4435d4,_0x1f4571[_0x3e81b7('0xd1')],_0x406b9c),_0x15caab[_0x427807](_0x22ab17['text'],_0x22ab17[_0x3e81b7('0xc4')][_0x3e81b7('0x7a')],_0x22ab17[_0x3e81b7('0xc4')][_0x3e81b7('0x1d')]);}}else{const _0x2e0718=_(_0x2663b0[_0x3e81b7('0x6b')])[_0x3e81b7('0xa5')]()[_0x3e81b7('0xc5')](function(_0x1ee4b4){const _0x3af257=_0x3e81b7;return _[_0x3af257('0x84')](_0x3be384,[_0x3af257('0x5a'),_0x1ee4b4])?_0x1ee4b4:undefined;})[_0x3e81b7('0x8')]()[_0x3e81b7('0xc4')]();!_[_0x3e81b7('0x46')](_0x2e0718)&&_0x2e0718['forEach'](function(_0x4f6d30){const _0xc483a0=_0x3e81b7;if(_0x4f6d30===_0xc483a0('0xbf'))_0x238e37[_0xc483a0('0x7')](_0xc483a0('0x56'),[][_0xc483a0('0x66')](_0x2663b0[_0xc483a0('0x6b')][_0x4f6d30]));else{if(_0x4f6d30==='createdAt'){const _0x50bec8=JSON[_0xc483a0('0xb1')](_0x2663b0[_0xc483a0('0x6b')][_0x4f6d30])[_0xc483a0('0x39')],_0x5a1392=JSON['parse'](_0x2663b0['query'][_0x4f6d30])['$lte'];_0x238e37['where'](_0xc483a0('0x85'),_0x50bec8,_0x5a1392);}else _0x2663b0[_0xc483a0('0x6b')][_0x4f6d30]==='null'?_0x238e37[_0xc483a0('0x7')]('i.'+_0x4f6d30+_0xc483a0('0xc8')):_0x238e37['where']('i.'+_0x4f6d30+_0xc483a0('0x81'),_0x2663b0[_0xc483a0('0x6b')][_0x4f6d30]);}});_0x2663b0['query']['read']&&(_0x2663b0[_0x3e81b7('0x6b')][_0x3e81b7('0x14')]==0x1?_0x238e37[_0x3e81b7('0x29')]('`unreadMessages`\x20=\x200'):_0x238e37[_0x3e81b7('0x29')]('`unreadMessages`\x20>\x200'));_0x2663b0[_0x3e81b7('0x6b')][_0x3e81b7('0x8d')]&&(_0x184304=_[_0x3e81b7('0x77')](_0x2663b0[_0x3e81b7('0x6b')][_0x3e81b7('0x8d')])?_0x2663b0[_0x3e81b7('0x6b')]['tag']:new Array(_0x2663b0[_0x3e81b7('0x6b')]['tag']),_0x184304['forEach'](function(_0x4cb0cc){const _0x249fd6=_0x3e81b7;_0x1062dc['or'](_0x249fd6('0xa1'),'%,'+_0x4cb0cc+',%');}));if(_0x2663b0['query'][_0x3e81b7('0xbc')]){const _0x11f21e=_0x2663b0['query'][_0x3e81b7('0xbc')]['replace']('\x5c','\x5c\x5c')[_0x3e81b7('0x6')]('\x27\x27','\x27\x27\x27\x27');qs['isNumeric'](_0x11f21e)?_0x15caab['or'](_0x3e81b7('0x96'),_0x11f21e+'%'):_0x15caab['or'](_0x3e81b7('0xd0'),qs[_0x3e81b7('0x44')](_0x11f21e))['or'](_0x3e81b7('0x72'),_0x11f21e+'%')['or'](_0x3e81b7('0x36'),_0x11f21e+'%');}}_0x238e37['where'](_0x15caab),_0x238e37[_0x3e81b7('0x51')](_0x3e81b7('0x20'));let _0x115572={'type':db[_0x3e81b7('0x91')]['QueryTypes'][_0x3e81b7('0x74')],'raw':!![]};const _0x368341=_0x238e37['clone']();_0x368341[_0x3e81b7('0xf')](_0x3e81b7('0x20')),_0x368341['field'](_0x3e81b7('0xd'),_0x3e81b7('0x16')),_0x331ca7['order']&&_0x331ca7[_0x3e81b7('0x71')][_0x3e81b7('0x54')](function(_0x4ff9c4){const _0x804f20=_0x3e81b7;_0x238e37[_0x804f20('0x71')]('i.'+_0x4ff9c4[0x0],_0x4ff9c4[0x1]==='DESC'?![]:!![]);}),!_['isEmpty'](_0x184304)&&(_0x238e37[_0x3e81b7('0x29')](_0x1062dc),_0x368341['where'](_0x3e81b7('0x87'),_0x184304)),Promise[_0x3e81b7('0xc0')]()['then'](function(){const _0x26c6cc=_0x3e81b7;if(!_0x24e1a0){if(_0x2663b0['query'][_0x26c6cc('0xbf')]||_0x2663b0[_0x26c6cc('0x6b')]['journey'])return;_0x368341[_0x26c6cc('0x7')](_0x26c6cc('0x3b')),_0x238e37[_0x26c6cc('0x7')](_0x26c6cc('0x3b'));return;}return _0x2663b0[_0x26c6cc('0xc1')][_0x26c6cc('0xd3')]({'attributes':['id'],'raw':!![]})[_0x26c6cc('0x12')](function(_0x14e2cb){const _0x380fcf=_0x26c6cc;_['isEmpty'](_0x14e2cb)?(_0x368341[_0x380fcf('0x7')](_0x380fcf('0xa6')),_0x238e37[_0x380fcf('0x7')](_0x380fcf('0xa6'))):(_0x368341['where'](_0x380fcf('0x56'),_[_0x380fcf('0xc5')](_0x14e2cb,'id')),_0x238e37['where'](_0x380fcf('0x56'),_['map'](_0x14e2cb,'id')));});})[_0x3e81b7('0x12')](function(){const _0x5b4996=_0x3e81b7;db[_0x5b4996('0x8f')][_0x5b4996('0x6b')](_0x368341['toString'](),_0x115572)[_0x5b4996('0x12')](function(_0x52328d){const _0x5d4e43=_0x5b4996;_0x5b58e5[_0x5d4e43('0x93')]=_0x52328d[_0x5d4e43('0x2a')];if(_0x5b58e5[_0x5d4e43('0x93')]===0x0)return[];return db[_0x5d4e43('0x8f')][_0x5d4e43('0x6b')](_0x398c0b[_0x5d4e43('0x59')](),_0x115572)['then'](function(_0x3c9eff){const _0x240ca9=_0x5d4e43;_0x42d427=_['keyBy'](_0x3c9eff,'id'),_0x115572=_[_0x240ca9('0x11')](_0x115572,{'model':db['OpenchannelInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x2663b0[_0x240ca9('0x6b')][_0x240ca9('0x94')]?_0x331ca7['attributes']['forEach'](function(_0x33958e){const _0x3e807d=_0x240ca9;_0x238e37[_0x3e807d('0xf')]('i.'+_0x33958e);}):(_0x238e37[_0x240ca9('0xf')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x240ca9('0x16')),_0x238e37['field'](_0x240ca9('0xaf'),_0x240ca9('0xa2')),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0x9e'),'Account.mandatoryDisposition'),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0xc')),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0x8b'),_0x240ca9('0xbe')),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0x38'),_0x240ca9('0x35')),_0x238e37['field'](_0x240ca9('0x4a'),_0x240ca9('0xae')),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0x83'),'Contact.phone'),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0x5c'),'Contact.mobile'),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0x4b'),_0x240ca9('0x21')),_0x238e37['field'](_0x240ca9('0x19'),'Owner.fullname'),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0xb7'),_0x240ca9('0x7e')),_0x238e37[_0x240ca9('0xf')](_0x240ca9('0x69'),_0x240ca9('0x47')));if(_0x331ca7[_0x240ca9('0xa')])_0x238e37['limit'](_0x331ca7[_0x240ca9('0xa')]);if(_0x331ca7['offset'])_0x238e37[_0x240ca9('0xa0')](_0x331ca7[_0x240ca9('0xa0')]);return db[_0x240ca9('0x8f')]['query'](_0x238e37['toString'](),_0x115572);})[_0x5d4e43('0x12')](function(_0x155e30){const _0x57c2f5=_0x5d4e43;return _0x30d218['where'](_0x57c2f5('0x26'),_['map'](_0x155e30,'id')),db[_0x57c2f5('0x8f')][_0x57c2f5('0x6b')](_0x30d218[_0x57c2f5('0x59')](),_0x115572)['then'](function(_0x1f264b){const _0x454072=_0x57c2f5,_0x300c3d=_[_0x454072('0xbd')](_0x1f264b,'OpenchannelInteractionId'),_0x5dc7d7=[];return _0x155e30[_0x454072('0x54')](function(_0x77ddea){_0x5dc7d7['push'](updateOpenchannelInteraction(_0x77ddea,_0x42d427,_0x300c3d));}),Promise['all'](_0x5dc7d7);});});})[_0x5b4996('0x12')](function(_0x612822){const _0x20847a=_0x5b4996;return _0x5b58e5[_0x20847a('0xc3')]=_0x612822,_0x5b58e5;})['then'](respondWithFilteredResult(_0x33a232,_0x331ca7));})['catch'](handleError(_0x33a232,null));},exports[_0x5bb67f('0x86')]=function(_0x379d05,_0x3ed7b0){const _0x361aad=_0x5bb67f,_0x1a5d8d={};_0x379d05[_0x361aad('0x6b')][_0x361aad('0xd1')]&&_0x379d05['query'][_0x361aad('0xd1')]===_0x361aad('0xac')?_0x1a5d8d['from']=_0x379d05[_0x361aad('0xcb')]['id']:_0x1a5d8d['id']=_0x379d05[_0x361aad('0xcb')]['id'];let _0x406f99={'raw':![],'where':_0x1a5d8d};const _0x5c7e39={};return _0x5c7e39[_0x361aad('0x89')]=_['keys'](db[_0x361aad('0x25')][_0x361aad('0xba')]),_0x5c7e39[_0x361aad('0x6b')]=_['keys'](_0x379d05['query']),_0x5c7e39['filters']=_['intersection'](_0x5c7e39['model'],_0x5c7e39['query']),_0x406f99['attributes']=_[_0x361aad('0xbb')](_0x5c7e39[_0x361aad('0x89')],qs[_0x361aad('0x94')](_0x379d05[_0x361aad('0x6b')][_0x361aad('0x94')])),_0x406f99[_0x361aad('0x1b')]=_0x406f99[_0x361aad('0x1b')][_0x361aad('0x2a')]?_0x406f99[_0x361aad('0x1b')]:_0x5c7e39[_0x361aad('0x89')],_0x379d05[_0x361aad('0x6b')][_0x361aad('0x57')]&&(_0x406f99[_0x361aad('0x97')]=[{'all':!![]}]),_0x406f99=_[_0x361aad('0x11')]({},_0x406f99,_0x379d05[_0x361aad('0x7c')]),db[_0x361aad('0x25')][_0x361aad('0x37')](_0x406f99)[_0x361aad('0x12')](handleEntityNotFound(_0x3ed7b0,null))[_0x361aad('0x12')](respondWithResult(_0x3ed7b0,null))['catch'](handleError(_0x3ed7b0,null));},exports['create']=function(_0x512826,_0xdad15f){const _0x76c238=_0x5bb67f;return db[_0x76c238('0x25')][_0x76c238('0x33')](_0x512826['body'],{})['then'](respondWithResult(_0xdad15f,0xc9))[_0x76c238('0x48')](handleError(_0xdad15f,null));},exports[_0x5bb67f('0x6c')]=function(_0x12e01a,_0x38bdbb){const _0x1303a5=_0x5bb67f;return _0x12e01a[_0x1303a5('0x64')]['id']&&delete _0x12e01a[_0x1303a5('0x64')]['id'],db[_0x1303a5('0x25')][_0x1303a5('0x37')]({'where':{'id':_0x12e01a[_0x1303a5('0xcb')]['id']}})[_0x1303a5('0x12')](handleEntityNotFound(_0x38bdbb,null))[_0x1303a5('0x12')](saveUpdates(_0x12e01a['body'],null))[_0x1303a5('0x12')](respondWithResult(_0x38bdbb,null))[_0x1303a5('0x48')](handleError(_0x38bdbb,null));},exports['destroy']=function(_0x54e69e,_0x3cee6d){const _0x2e9fdf=_0x5bb67f;return db[_0x2e9fdf('0x25')][_0x2e9fdf('0x37')]({'where':{'id':_0x54e69e[_0x2e9fdf('0xcb')]['id']}})['then'](handleEntityNotFound(_0x3cee6d,null))[_0x2e9fdf('0x12')](removeEntity(_0x3cee6d,null))['catch'](handleError(_0x3cee6d,null));},exports[_0x5bb67f('0x63')]=function(_0x33b8a2,_0x1999a0){const _0x95ace7=_0x5bb67f;return db[_0x95ace7('0x25')][_0x95ace7('0x63')]()['then'](respondWithResult(_0x1999a0,null))[_0x95ace7('0x48')](handleError(_0x1999a0,null));},exports[_0x5bb67f('0x42')]=function(_0x486a98,_0x3d83f1){const _0x76881=_0x5bb67f;return db['OpenchannelMessage'][_0x76881('0x37')]({'where':{'id':_0x486a98[_0x76881('0xcb')]['id']}})['then'](function(_0x50611e){const _0x13e18a=_0x76881;if(_0x50611e)return _0x50611e['addMessage'](_0x486a98['body']['ids'],{'through':_[_0x13e18a('0xb0')](_0x486a98[_0x13e18a('0x64')],['ids','id'])});})[_0x76881('0x12')](respondWithResult(_0x3d83f1,null))['catch'](handleError(_0x3d83f1,null));},exports[_0x5bb67f('0xce')]=function(_0x1fcc71,_0x34ff47){const _0xa11de8=_0x5bb67f;let _0x4c97f0={'raw':![],'where':{}};const _0x25a26a={},_0x27bd69={'count':0x0,'rows':[]};return db[_0xa11de8('0x25')][_0xa11de8('0x37')]({'where':{'id':_0x1fcc71[_0xa11de8('0xcb')]['id']}})['then'](handleEntityNotFound(_0x34ff47,null))[_0xa11de8('0x12')](function(_0x425544){const _0x2463e5=_0xa11de8;if(_0x425544){_0x25a26a['model']=_[_0x2463e5('0xa5')](db[_0x2463e5('0x1e')][_0x2463e5('0xba')]),_0x25a26a[_0x2463e5('0x6b')]=_[_0x2463e5('0xa5')](_0x1fcc71[_0x2463e5('0x6b')]),_0x25a26a['filters']=_['intersection'](_0x25a26a['model'],_0x25a26a[_0x2463e5('0x6b')]),_0x4c97f0[_0x2463e5('0x1b')]=_['intersection'](_0x25a26a[_0x2463e5('0x89')],qs[_0x2463e5('0x94')](_0x1fcc71[_0x2463e5('0x6b')][_0x2463e5('0x94')])),_0x4c97f0['attributes']=_0x4c97f0[_0x2463e5('0x1b')][_0x2463e5('0x2a')]?_0x4c97f0[_0x2463e5('0x1b')]:_0x25a26a['model'];typeof _0x1fcc71['query'][_0x2463e5('0x8a')]==='undefined'&&(_0x4c97f0[_0x2463e5('0xa')]=qs[_0x2463e5('0xa')](_0x1fcc71[_0x2463e5('0x6b')][_0x2463e5('0xa')]),_0x4c97f0['offset']=qs[_0x2463e5('0xa0')](_0x1fcc71[_0x2463e5('0x6b')][_0x2463e5('0xa0')]));_0x4c97f0[_0x2463e5('0x71')]=qs[_0x2463e5('0x80')](_0x1fcc71[_0x2463e5('0x6b')][_0x2463e5('0x80')]),_0x4c97f0['where']=qs[_0x2463e5('0xa3')](_[_0x2463e5('0x6f')](_0x1fcc71['query'],_0x25a26a[_0x2463e5('0xa3')])),_0x4c97f0[_0x2463e5('0x7')][_0x2463e5('0xca')]=_0x425544['id'];_0x1fcc71['query']['filter']&&(_0x4c97f0[_0x2463e5('0x7')]=_[_0x2463e5('0x11')](_0x4c97f0[_0x2463e5('0x7')],{[Op['or']]:_['map'](_0x4c97f0[_0x2463e5('0x1b')],function(_0x84ce47){const _0x256e4f=_0x2463e5,_0x464709={};return _0x464709[_0x84ce47]={[Op[_0x256e4f('0x9f')]]:'%'+_0x1fcc71[_0x256e4f('0x6b')][_0x256e4f('0xbc')]+'%'},_0x464709;})}));if(_0x1fcc71[_0x2463e5('0x6b')][_0x2463e5('0x39')]){const _0x2004ba=_0x1fcc71[_0x2463e5('0x6b')][_0x2463e5('0x39')][_0x2463e5('0x9d')](','),_0x480de4={};_0x480de4[_0x2004ba[0x0]]={[Op[_0x2463e5('0x23')]]:moment(_0x2004ba[0x1])[_0x2463e5('0x5d')](_0x2463e5('0x6a'))},_0x4c97f0[_0x2463e5('0x7')]=_[_0x2463e5('0x11')](_0x4c97f0[_0x2463e5('0x7')],_0x480de4);}return _0x4c97f0=_[_0x2463e5('0x11')]({},_0x4c97f0,_0x1fcc71[_0x2463e5('0x7c')]),db['OpenchannelMessage'][_0x2463e5('0x93')]({'where':_0x4c97f0[_0x2463e5('0x7')]})['then'](function(_0x2ba5e2){const _0x41235d=_0x2463e5;return _0x27bd69[_0x41235d('0x93')]=_0x2ba5e2,_0x1fcc71['query'][_0x41235d('0x57')]&&(_0x4c97f0[_0x41235d('0x97')]=[{'all':!![]}]),db[_0x41235d('0x1e')]['findAll'](_0x4c97f0);})[_0x2463e5('0x12')](function(_0x3d0295){const _0x1c8252=_0x2463e5;return _0x27bd69[_0x1c8252('0xc3')]=_0x3d0295,_0x27bd69;});}})[_0xa11de8('0x12')](respondWithFilteredResult(_0x34ff47,_0x4c97f0))[_0xa11de8('0x48')](handleError(_0x34ff47,null));},exports['addTags']=function(_0x3fdd1b,_0x2336eb){const _0x32266a=_0x5bb67f;return db[_0x32266a('0x25')][_0x32266a('0x37')]({'where':{'id':_0x3fdd1b[_0x32266a('0xcb')]['id']}})[_0x32266a('0x12')](function(_0x21d18b){const _0x5ade0e=_0x32266a;if(_0x21d18b)return _0x21d18b[_0x5ade0e('0xcf')](_0x3fdd1b[_0x5ade0e('0x64')][_0x5ade0e('0x65')],{'through':_[_0x5ade0e('0xb0')](_0x3fdd1b[_0x5ade0e('0x64')],[_0x5ade0e('0x65'),'id'])})[_0x5ade0e('0x12')](function(){const _0x5dd747=_0x5ade0e;return db[_0x5dd747('0x45')]['findAll']({'attributes':['id','name','color'],'where':{'id':_0x3fdd1b[_0x5dd747('0x64')][_0x5dd747('0x65')]}});})[_0x5ade0e('0x12')](function(_0x1406c2){const _0x5bfa32=_0x5ade0e;return socket['emit'](_0x5bfa32('0xa9'),{'id':Number(_0x3fdd1b[_0x5bfa32('0xcb')]['id']),'tags':_0x1406c2||[]}),{'id':Number(_0x3fdd1b[_0x5bfa32('0xcb')]['id']),'tags':_0x1406c2||[]};});})['then'](respondWithResult(_0x2336eb,null))['catch'](handleError(_0x2336eb,null));},exports[_0x5bb67f('0x70')]=function(_0x52c150,_0x410d27){const _0x344bab=_0x5bb67f;return db['OpenchannelInteraction'][_0x344bab('0x37')]({'where':{'id':_0x52c150[_0x344bab('0xcb')]['id']}})[_0x344bab('0x12')](handleEntityNotFound(_0x410d27,null))[_0x344bab('0x12')](function(_0x565743){const _0x59b478=_0x344bab;if(_0x565743)return _0x565743[_0x59b478('0x70')](_0x52c150[_0x59b478('0x6b')][_0x59b478('0x65')]);})[_0x344bab('0x12')](respondWithStatusCode(_0x410d27,null))[_0x344bab('0x48')](handleError(_0x410d27,null));},exports[_0x5bb67f('0xd2')]=function(_0x3810d7,_0xff7152){const _0x37f99a=_0x5bb67f,_0x201c4f=moment()[_0x37f99a('0x78')]()[_0x37f99a('0x59')](),_0x567cf8=path[_0x37f99a('0x53')](config['root'],_0x37f99a('0x95'),_0x37f99a('0x3'),_0x37f99a('0x15')),_0x12845f=path[_0x37f99a('0x53')](config['root'],_0x37f99a('0x95'),_0x37f99a('0x3'),_0x37f99a('0xad')),_0x207833=path[_0x37f99a('0x53')](_0x567cf8,_0x201c4f),_0x246918=util[_0x37f99a('0x5d')](_0x37f99a('0xb2'),_0x3810d7[_0x37f99a('0xcb')]['id'],_0x201c4f),_0xb9a6d1=path[_0x37f99a('0x53')](_0x567cf8,_0x246918),_0x1a7687=[];_0x1a7687[_0x37f99a('0x50')]({'model':db[_0x37f99a('0x99')],'as':_0x37f99a('0x99'),'attributes':['id',_0x37f99a('0x18')],'raw':!![]}),_0x1a7687[_0x37f99a('0x50')]({'model':db[_0x37f99a('0x4f')],'as':_0x37f99a('0x17'),'attributes':['id','firstName',_0x37f99a('0x10')],'raw':!![]});_0x3810d7[_0x37f99a('0x6b')][_0x37f99a('0xad')]&&_0x1a7687['push']({'model':db['Attachment'],'as':_0x37f99a('0x82'),'raw':!![]});const _0x191b0e=[{'model':db[_0x37f99a('0x1e')],'as':_0x37f99a('0xb6'),'attributes':['id',_0x37f99a('0x64'),'createdAt','direction',_0x37f99a('0x28'),_0x37f99a('0x14')],'include':_0x1a7687}];return _0x191b0e['push']({'model':db[_0x37f99a('0x2')],'as':_0x37f99a('0x34'),'attributes':['id',_0x37f99a('0x5a')]}),_0x191b0e[_0x37f99a('0x50')]({'model':db[_0x37f99a('0x99')],'as':_0x37f99a('0x7f'),'attributes':['id','fullname']}),db['OpenchannelInteraction'][_0x37f99a('0x37')]({'where':{'id':_0x3810d7[_0x37f99a('0xcb')]['id']},'include':_0x191b0e})[_0x37f99a('0x12')](handleEntityNotFound(_0xff7152,null))[_0x37f99a('0x12')](function(_0x46558c){const _0x5d7021=_0x37f99a;if(_0x46558c){const _0x4af670=_0x46558c[_0x5d7021('0x30')]({'plain':!![]});fs[_0x5d7021('0xb3')](_0x207833);const _0x16a57d={'format':'A4','border':_0x5d7021('0x3c'),'header':{'height':_0x5d7021('0x32'),'contents':{'first':_0x5d7021('0x41')}},'footer':{'height':_0x5d7021('0xb8'),'contents':{'default':util[_0x5d7021('0x5d')](_0x5d7021('0x4e'),util[_0x5d7021('0x5d')](_0x5d7021('0x24'),'Openchannel',_0x4af670['id']),moment()[_0x5d7021('0x5d')]('YYYY-MM-DD')['toString']())}}},_0x46fed9={'channel':_0x5d7021('0xb'),'account':_0x4af670['Account'][_0x5d7021('0x5a')],'agent':_0x4af670['Owner']?_0x4af670[_0x5d7021('0x7f')]['fullname']:_0x5d7021('0x6d'),'createdAt':moment(_0x4af670['createdAt'])['format']('YYYY-MM-DD\x20HH:mm:ss')[_0x5d7021('0x59')](),'closedAt':_0x4af670[_0x5d7021('0x7d')]?moment(_0x4af670[_0x5d7021('0x3e')])[_0x5d7021('0x5d')](_0x5d7021('0x6a'))['toString']():'','disposition':_0x4af670[_0x5d7021('0x5b')],'visibility':_0x4af670[_0x5d7021('0x8e')]?'Public':_0x5d7021('0x68'),'messages':_(_0x4af670[_0x5d7021('0xb6')])[_0x5d7021('0xbc')]({'secret':![]})[_0x5d7021('0xc5')](function(_0x5f0d21){const _0x27a866=_0x5d7021;if(_0x5f0d21[_0x27a866('0x82')]){const _0x525f08=path[_0x27a866('0x53')](_0x12845f,_0x5f0d21[_0x27a866('0x82')]['basename']);fs[_0x27a866('0x67')](_0x525f08)&&fs['createReadStream'](_0x525f08)['pipe'](fs['createWriteStream'](path['join'](_0x207833,_0x5f0d21[_0x27a866('0x82')]['basename'])));}return{'date':moment(_0x5f0d21[_0x27a866('0x3a')])['format'](_0x27a866('0x6a'))[_0x27a866('0x59')](),'sender':_0x5f0d21[_0x27a866('0xa4')]===_0x27a866('0xcd')?_0x5f0d21['User']?_0x5f0d21[_0x27a866('0x99')][_0x27a866('0x18')]:_0x27a866('0x79'):_0x5f0d21[_0x27a866('0x17')][_0x27a866('0xc9')]+(_0x5f0d21[_0x27a866('0x17')][_0x27a866('0x10')]?'\x20'+_0x5f0d21[_0x27a866('0x17')][_0x27a866('0x10')]:''),'body':_0x5f0d21[_0x27a866('0x82')]?_0x5f0d21[_0x27a866('0x82')][_0x27a866('0x75')]:_0x5f0d21[_0x27a866('0x64')],'direction':_0x5f0d21['direction']==='out'?'A':'C','secret':_0x5f0d21[_0x27a866('0x28')],'read':_0x5f0d21[_0x27a866('0x14')],'attachment':_0x5f0d21[_0x27a866('0x82')]};})[_0x5d7021('0xc4')]()};return ejs[_0x5d7021('0x88')](path[_0x5d7021('0x53')](config[_0x5d7021('0x5')],'server','views',_0x5d7021('0x2b')),{'interaction':_0x46fed9})[_0x5d7021('0x12')](function(_0xfa92f0){return new Promise(function(_0x3e96cc,_0x5a4d1f){const _0x4afbcb=a480_0x151e;pdf[_0x4afbcb('0x33')](_0xfa92f0,_0x16a57d)['toFile'](path[_0x4afbcb('0x53')](_0x207833,'transcript-'+_0x4af670['id']+'-'+_0x201c4f+'.pdf'),function(_0x1c4cba,_0x2dc230){if(_0x1c4cba)return _0x5a4d1f(_0x1c4cba);_0x3e96cc(_0x2dc230);});});})[_0x5d7021('0x12')](function(){const _0x43ecac=_0x5d7021;return new Promise(function(_0x38831f,_0x55b411){zipdir(_0x207833,{'saveTo':_0xb9a6d1},function(_0x3a3930,_0x3ee481){if(_0x3a3930)return _0x55b411(_0x3a3930);return _0x38831f(_0x3ee481);});})[_0x43ecac('0x12')](function(){return new Promise(function(_0x5eeb79,_0x53af68){rimraf(_0x207833,function(_0x1651ed){if(_0x1651ed)_0x53af68(_0x1651ed);return _0x5eeb79();});});})[_0x43ecac('0x12')](function(){return _0xff7152['download'](_0xb9a6d1,_0x246918,function(_0xb818ae){const _0x248100=a480_0x151e;_0xb818ae?console[_0x248100('0x4d')](_0x248100('0x9c'),_0xb818ae):fs['unlinkSync'](_0xb9a6d1);});});});}else return _0xff7152[_0x5d7021('0x9')](0xc8);})[_0x37f99a('0x48')](handleError(_0xff7152,null));}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.events.js b/server/api/openchannelInteraction/openchannelInteraction.events.js index f0868d9..c10f183 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.events.js +++ b/server/api/openchannelInteraction/openchannelInteraction.events.js @@ -1 +1 @@ -const a481_0x25ef=['setDataValue','OpenchannelMessage','unreadMessages','findAll','events','setMaxListeners','remove','Users','map','exports','emit','length','update','getUsers','addHook','../../mysqldb','OpenchannelInteraction','then'];(function(_0x5e346a,_0x25efdd){const _0x3ac472=function(_0x36fbc3){while(--_0x36fbc3){_0x5e346a['push'](_0x5e346a['shift']());}};_0x3ac472(++_0x25efdd);}(a481_0x25ef,0x17c));const a481_0x3ac4=function(_0x5e346a,_0x25efdd){_0x5e346a=_0x5e346a-0x0;let _0x3ac472=a481_0x25ef[_0x5e346a];return _0x3ac472;};const _0x188240=a481_0x3ac4;'use strict';const EventEmitter=require(_0x188240('0x2')),OpenchannelInteraction=require(_0x188240('0xd'))['db'][_0x188240('0xe')],OpenchannelMessage=require(_0x188240('0xd'))['db'][_0x188240('0x11')],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[_0x188240('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':_0x188240('0xa'),'afterDestroy':_0x188240('0x4')};function emitEvent(_0x36fbc3){return function(_0x472b16){const _0x59ce0a=a481_0x3ac4;_0x472b16[_0x59ce0a('0xb')]({'attributes':['id'],'raw':!![]})[_0x59ce0a('0xf')](function(_0x3f0788){const _0x4038f9=_0x59ce0a;return _0x472b16['setDataValue'](_0x4038f9('0x5'),_0x3f0788[_0x4038f9('0x6')](function(_0x25da28){return{'id':_0x25da28['id']};})),OpenchannelMessage[_0x4038f9('0x1')]({'where':{'OpenchannelInteractionId':_0x472b16['id'],'direction':'in','read':![]},'raw':!![]});})[_0x59ce0a('0xf')](function(_0xb9d7cd){const _0x310157=_0x59ce0a;_0x472b16[_0x310157('0x10')](_0x310157('0x0'),_0xb9d7cd[_0x310157('0x9')]),OpenchannelInteractionEvents[_0x310157('0x8')](_0x36fbc3+':'+_0x472b16['id'],_0x472b16),OpenchannelInteractionEvents['emit'](_0x36fbc3,_0x472b16);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelInteraction[_0x188240('0xc')](e,emitEvent(event));}}module[_0x188240('0x7')]=OpenchannelInteractionEvents; \ No newline at end of file +const a481_0x33b9=['emit','length','update','OpenchannelMessage','findAll','addHook','map','catch','OpenchannelInteraction','getUsers','setMaxListeners','remove','setDataValue','unreadMessages','then','exports','undefined','../../mysqldb'];(function(_0x32dd02,_0x33b901){const _0x2e5e7d=function(_0x40cc87){while(--_0x40cc87){_0x32dd02['push'](_0x32dd02['shift']());}};_0x2e5e7d(++_0x33b901);}(a481_0x33b9,0x9b));const a481_0x2e5e=function(_0x32dd02,_0x33b901){_0x32dd02=_0x32dd02-0x0;let _0x2e5e7d=a481_0x33b9[_0x32dd02];return _0x2e5e7d;};const _0x1cf600=a481_0x2e5e;'use strict';const EventEmitter=require('events'),OpenchannelInteraction=require(_0x1cf600('0x6'))['db'][_0x1cf600('0xf')],OpenchannelMessage=require(_0x1cf600('0x6'))['db'][_0x1cf600('0xa')],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[_0x1cf600('0x11')](0x0);const events={'afterCreate':'save','afterUpdate':_0x1cf600('0x9'),'afterDestroy':_0x1cf600('0x0')};function emitEvent(_0x40cc87){return function(_0x5901fa){const _0x8c330f=a481_0x2e5e;_0x5901fa[_0x8c330f('0x10')]({'attributes':['id'],'raw':!![]})[_0x8c330f('0x3')](function(_0x57ec99){const _0x3859c2=_0x8c330f;return _0x5901fa[_0x3859c2('0x1')]('Users',_0x57ec99[_0x3859c2('0xd')](function(_0x17bff6){return{'id':_0x17bff6['id']};})),OpenchannelMessage[_0x3859c2('0xb')]({'where':{'OpenchannelInteractionId':_0x5901fa['id'],'direction':'in','read':![]},'raw':!![]});})[_0x8c330f('0x3')](function(_0x43ef1e){const _0x32e10f=_0x8c330f;_0x5901fa['setDataValue'](_0x32e10f('0x2'),_0x43ef1e[_0x32e10f('0x8')]),OpenchannelInteractionEvents[_0x32e10f('0x7')](_0x40cc87+':'+_0x5901fa['id'],_0x5901fa),OpenchannelInteractionEvents['emit'](_0x40cc87,_0x5901fa);})[_0x8c330f('0xe')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x1cf600('0x5')){const event=events[e];OpenchannelInteraction[_0x1cf600('0xc')](e,emitEvent(event));}}module[_0x1cf600('0x4')]=OpenchannelInteractionEvents; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.model.js b/server/api/openchannelInteraction/openchannelInteraction.model.js index ed2d6b5..e82ef2b 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.model.js +++ b/server/api/openchannelInteraction/openchannelInteraction.model.js @@ -1 +1 @@ -const a482_0x4798=['openchannel_interactions','closedAt','YYYY-MM-DD\x20HH:mm:ss','./openchannelInteraction.attributes','define','changed','format'];(function(_0x5a4780,_0x479842){const _0x3ad2cb=function(_0x1f314d){while(--_0x1f314d){_0x5a4780['push'](_0x5a4780['shift']());}};_0x3ad2cb(++_0x479842);}(a482_0x4798,0xe0));const a482_0x3ad2=function(_0x5a4780,_0x479842){_0x5a4780=_0x5a4780-0x0;let _0x3ad2cb=a482_0x4798[_0x5a4780];return _0x3ad2cb;};const _0x597361=a482_0x3ad2;'use strict';const moment=require('moment'),attributes=require(_0x597361('0x3'));module['exports']=function(_0x1f314d){const _0xa08a4b=_0x597361,_0x39dcbd=_0x1f314d[_0xa08a4b('0x4')]('OpenchannelInteraction',attributes,{'tableName':_0xa08a4b('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x42b484){const _0x3ffd9f=_0xa08a4b;_0x42b484[_0x3ffd9f('0x5')]('closed')&&(_0x42b484[_0x3ffd9f('0x1')]=moment()[_0x3ffd9f('0x6')](_0x3ffd9f('0x2')));}}});return _0x39dcbd;}; \ No newline at end of file +const a482_0x913f=['openchannel_interactions','closedAt','YYYY-MM-DD\x20HH:mm:ss','./openchannelInteraction.attributes','format','exports','OpenchannelInteraction'];(function(_0x109626,_0x913f79){const _0xe09852=function(_0x111fce){while(--_0x111fce){_0x109626['push'](_0x109626['shift']());}};_0xe09852(++_0x913f79);}(a482_0x913f,0x192));const a482_0xe098=function(_0x109626,_0x913f79){_0x109626=_0x109626-0x0;let _0xe09852=a482_0x913f[_0x109626];return _0xe09852;};const _0x8cb51a=a482_0xe098;'use strict';const moment=require('moment'),attributes=require(_0x8cb51a('0x0'));module[_0x8cb51a('0x2')]=function(_0x111fce){const _0x5ca6e6=_0x8cb51a,_0x4c1d66=_0x111fce['define'](_0x5ca6e6('0x3'),attributes,{'tableName':_0x5ca6e6('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x353cfc){const _0x2e47bc=_0x5ca6e6;_0x353cfc['changed']('closed')&&(_0x353cfc[_0x2e47bc('0x5')]=moment()[_0x2e47bc('0x1')](_0x2e47bc('0x6')));}}});return _0x4c1d66;}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.rpc.js b/server/api/openchannelInteraction/openchannelInteraction.rpc.js index f381721..b5fbef1 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.rpc.js +++ b/server/api/openchannelInteraction/openchannelInteraction.rpc.js @@ -1 +1 @@ -const a483_0x3b3b=['AddTags','addTags','limit','info','stringify','debug','../../rediscache','options','catch','OpenchannelInteraction','../../config/logger','rpc','findOne','./openchannelInteraction.socket','body','attributes','omit','update','UpdateOpenchannelInteraction','AddTagsToOpenchannelInteraction','message','then','ids','where','error'];(function(_0x3d0ddb,_0x3b3b4f){const _0x41d19f=function(_0xa4774){while(--_0xa4774){_0x3d0ddb['push'](_0x3d0ddb['shift']());}};_0x41d19f(++_0x3b3b4f);}(a483_0x3b3b,0x136));const a483_0x41d1=function(_0x3d0ddb,_0x3b3b4f){_0x3d0ddb=_0x3d0ddb-0x0;let _0x41d19f=a483_0x3b3b[_0x3d0ddb];return _0x41d19f;};const _0x313324=a483_0x41d1;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x313324('0x0'))(_0x313324('0x1')),{getSocket}=require(_0x313324('0x15')),socket=getSocket();require(_0x313324('0x3'))['register'](socket),exports['UpdateOpenchannelInteraction']=function(_0xa4774){const _0x2a0c86=this;return new Promise(function(_0x22c586,_0x5dcf62){const _0x4ce9da=a483_0x41d1;return db[_0x4ce9da('0x18')][_0x4ce9da('0x7')](_0xa4774['body'],{'raw':_0xa4774[_0x4ce9da('0x16')]?_0xa4774[_0x4ce9da('0x16')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xa4774[_0x4ce9da('0x16')]?_0xa4774[_0x4ce9da('0x16')][_0x4ce9da('0xd')]||null:null,'attributes':_0xa4774[_0x4ce9da('0x16')]?_0xa4774[_0x4ce9da('0x16')][_0x4ce9da('0x5')]||null:null,'limit':_0xa4774['options']?_0xa4774[_0x4ce9da('0x16')][_0x4ce9da('0x11')]||null:null})['then'](function(_0x46cf70){const _0x25172e=_0x4ce9da;logger[_0x25172e('0x12')](_0x25172e('0x8'),_0xa4774),logger[_0x25172e('0x14')](_0x25172e('0x8'),_0xa4774,JSON[_0x25172e('0x13')](_0x46cf70)),_0x22c586(_0x46cf70);})['catch'](function(_0x4e2adc){const _0x5c9b8b=_0x4ce9da;logger[_0x5c9b8b('0xe')](_0x5c9b8b('0x8'),_0x4e2adc[_0x5c9b8b('0xa')],_0xa4774),_0x5dcf62(_0x2a0c86[_0x5c9b8b('0xe')](0x1f4,_0x4e2adc['message']));});});},exports[_0x313324('0x9')]=function(_0x493d9a){const _0x1e8bf0=this;return new Promise(function(_0x15278a,_0x5e7aae){const _0x3fcc4f=a483_0x41d1;return db[_0x3fcc4f('0x18')][_0x3fcc4f('0x2')]({'where':_0x493d9a[_0x3fcc4f('0x16')]?_0x493d9a['options'][_0x3fcc4f('0xd')]||null:null})['then'](function(_0x15a9e6){const _0x569755=_0x3fcc4f;if(_0x15a9e6)return _0x15a9e6[_0x569755('0x10')](_0x493d9a[_0x569755('0x4')][_0x569755('0xc')],{'through':_[_0x569755('0x6')](_0x493d9a[_0x569755('0x4')],[_0x569755('0xc'),'id'])});})[_0x3fcc4f('0xb')](function([_0x4f4c91]){const _0x5e0490=_0x3fcc4f;logger[_0x5e0490('0x12')](_0x5e0490('0xf'),_0x493d9a),logger['debug'](_0x5e0490('0xf'),_0x493d9a,JSON[_0x5e0490('0x13')](_0x4f4c91)),_0x15278a(_0x4f4c91);})[_0x3fcc4f('0x17')](function(_0x42f002){const _0x560c5f=_0x3fcc4f;logger[_0x560c5f('0xe')](_0x560c5f('0xf'),_0x42f002['message'],_0x493d9a),_0x5e7aae(_0x1e8bf0[_0x560c5f('0xe')](0x1f4,_0x42f002['message']));});});}; \ No newline at end of file +const a483_0x5951=['rpc','where','options','UpdateOpenchannelInteraction','info','update','attributes','then','findOne','ids','limit','omit','../../config/logger','message','stringify','debug','addTags','lodash','AddTags','error','OpenchannelInteraction','AddTagsToOpenchannelInteraction','body','../../mysqldb','catch'];(function(_0x24105d,_0x5951c1){const _0x47fa7b=function(_0x106a1b){while(--_0x106a1b){_0x24105d['push'](_0x24105d['shift']());}};_0x47fa7b(++_0x5951c1);}(a483_0x5951,0x164));const a483_0x47fa=function(_0x24105d,_0x5951c1){_0x24105d=_0x24105d-0x0;let _0x47fa7b=a483_0x5951[_0x24105d];return _0x47fa7b;};const _0x2c9d7a=a483_0x47fa;'use strict';const _=require(_0x2c9d7a('0xb')),db=require(_0x2c9d7a('0x11'))['db'],logger=require(_0x2c9d7a('0x6'))(_0x2c9d7a('0x13')),{getSocket}=require('../../rediscache'),socket=getSocket();require('./openchannelInteraction.socket')['register'](socket),exports['UpdateOpenchannelInteraction']=function(_0x106a1b){const _0x5e5986=this;return new Promise(function(_0x4097ba,_0x34e2c0){const _0x5b3e53=a483_0x47fa;return db[_0x5b3e53('0xe')][_0x5b3e53('0x18')](_0x106a1b[_0x5b3e53('0x10')],{'raw':_0x106a1b[_0x5b3e53('0x15')]?_0x106a1b[_0x5b3e53('0x15')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x106a1b[_0x5b3e53('0x15')]?_0x106a1b[_0x5b3e53('0x15')][_0x5b3e53('0x14')]||null:null,'attributes':_0x106a1b['options']?_0x106a1b['options'][_0x5b3e53('0x0')]||null:null,'limit':_0x106a1b[_0x5b3e53('0x15')]?_0x106a1b[_0x5b3e53('0x15')][_0x5b3e53('0x4')]||null:null})['then'](function(_0x244591){const _0x88c96=_0x5b3e53;logger[_0x88c96('0x17')](_0x88c96('0x16'),_0x106a1b),logger[_0x88c96('0x9')](_0x88c96('0x16'),_0x106a1b,JSON[_0x88c96('0x8')](_0x244591)),_0x4097ba(_0x244591);})[_0x5b3e53('0x12')](function(_0x2013eb){const _0x4c87ca=_0x5b3e53;logger['error']('UpdateOpenchannelInteraction',_0x2013eb[_0x4c87ca('0x7')],_0x106a1b),_0x34e2c0(_0x5e5986[_0x4c87ca('0xd')](0x1f4,_0x2013eb[_0x4c87ca('0x7')]));});});},exports[_0x2c9d7a('0xf')]=function(_0x123f3f){const _0x6f8a0=this;return new Promise(function(_0x1fcd9f,_0x13907a){const _0x502b5f=a483_0x47fa;return db['OpenchannelInteraction'][_0x502b5f('0x2')]({'where':_0x123f3f['options']?_0x123f3f[_0x502b5f('0x15')][_0x502b5f('0x14')]||null:null})[_0x502b5f('0x1')](function(_0x261c6d){const _0x4b1e36=_0x502b5f;if(_0x261c6d)return _0x261c6d[_0x4b1e36('0xa')](_0x123f3f[_0x4b1e36('0x10')][_0x4b1e36('0x3')],{'through':_[_0x4b1e36('0x5')](_0x123f3f['body'],[_0x4b1e36('0x3'),'id'])});})[_0x502b5f('0x1')](function([_0x20c5d2]){const _0x35dafa=_0x502b5f;logger[_0x35dafa('0x17')]('AddTags',_0x123f3f),logger[_0x35dafa('0x9')]('AddTags',_0x123f3f,JSON['stringify'](_0x20c5d2)),_0x1fcd9f(_0x20c5d2);})[_0x502b5f('0x12')](function(_0x35fc4e){const _0x409b87=_0x502b5f;logger['error'](_0x409b87('0xc'),_0x35fc4e[_0x409b87('0x7')],_0x123f3f),_0x13907a(_0x6f8a0[_0x409b87('0xd')](0x1f4,_0x35fc4e[_0x409b87('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.socket.js b/server/api/openchannelInteraction/openchannelInteraction.socket.js index 9c50de9..f71b0bd 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.socket.js +++ b/server/api/openchannelInteraction/openchannelInteraction.socket.js @@ -1 +1 @@ -const a484_0x14ab=['register','length','openchannelInteraction:','remove','update','save'];(function(_0x100419,_0x14ab7a){const _0x4b73ff=function(_0x539973){while(--_0x539973){_0x100419['push'](_0x100419['shift']());}};_0x4b73ff(++_0x14ab7a);}(a484_0x14ab,0x1d4));const a484_0x4b73=function(_0x100419,_0x14ab7a){_0x100419=_0x100419-0x0;let _0x4b73ff=a484_0x14ab[_0x100419];return _0x4b73ff;};const _0x1eed0d=a484_0x4b73;'use strict';const OpenchannelInteractionEvents=require('./openchannelInteraction.events'),events=[_0x1eed0d('0x5'),_0x1eed0d('0x3'),_0x1eed0d('0x4')];function createListener(_0x539973,_0x49598e){return function(_0x15de6b){_0x49598e['emit'](_0x539973,_0x15de6b);};}exports[_0x1eed0d('0x0')]=function(_0x10975c){const _0x59c444=_0x1eed0d;for(let _0xfddc1e=0x0,_0x1f665d=events[_0x59c444('0x1')];_0xfddc1e<_0x1f665d;_0xfddc1e++){const _0x3bf3fd=events[_0xfddc1e],_0x599f91=createListener(_0x59c444('0x2')+_0x3bf3fd,_0x10975c);OpenchannelInteractionEvents['on'](_0x3bf3fd,_0x599f91);}}; \ No newline at end of file +const a484_0x2868=['register','remove','emit','save','openchannelInteraction:','update'];(function(_0x5d9b17,_0x286851){const _0x1424f8=function(_0x5c93ce){while(--_0x5c93ce){_0x5d9b17['push'](_0x5d9b17['shift']());}};_0x1424f8(++_0x286851);}(a484_0x2868,0x93));const a484_0x1424=function(_0x5d9b17,_0x286851){_0x5d9b17=_0x5d9b17-0x0;let _0x1424f8=a484_0x2868[_0x5d9b17];return _0x1424f8;};const _0x13906c=a484_0x1424;'use strict';const OpenchannelInteractionEvents=require('./openchannelInteraction.events'),events=[_0x13906c('0x0'),_0x13906c('0x4'),_0x13906c('0x2')];function createListener(_0x5c93ce,_0x4205f2){return function(_0x5a74ab){const _0x3ab003=a484_0x1424;_0x4205f2[_0x3ab003('0x5')](_0x5c93ce,_0x5a74ab);};}exports[_0x13906c('0x3')]=function(_0x659e4d){const _0x1fa781=_0x13906c;for(let _0xafae1a=0x0,_0x282a4e=events['length'];_0xafae1a<_0x282a4e;_0xafae1a++){const _0x40f2fe=events[_0xafae1a],_0x248be3=createListener(_0x1fa781('0x1')+_0x40f2fe,_0x659e4d);OpenchannelInteractionEvents['on'](_0x40f2fe,_0x248be3);}}; \ No newline at end of file diff --git a/server/api/openchannelMessage/index.js b/server/api/openchannelMessage/index.js index 6a18669..f808e01 100644 --- a/server/api/openchannelMessage/index.js +++ b/server/api/openchannelMessage/index.js @@ -1 +1 @@ -const a485_0x56ab=['express','/:id/reject','destroy','delete','exports','create','get','Router','/:id/accept','tracked','openchannelmessage:create','/:id','show','isAuthenticated','../../components/auth/service','put','describe','reject','/describe','post'];(function(_0x23a07a,_0x56abbb){const _0x15d44c=function(_0x20bdf8){while(--_0x20bdf8){_0x23a07a['push'](_0x23a07a['shift']());}};_0x15d44c(++_0x56abbb);}(a485_0x56ab,0x114));const a485_0x15d4=function(_0x23a07a,_0x56abbb){_0x23a07a=_0x23a07a-0x0;let _0x15d44c=a485_0x56ab[_0x23a07a];return _0x15d44c;};const _0x8bd43d=a485_0x15d4;'use strict';const express=require(_0x8bd43d('0x4')),router=express[_0x8bd43d('0xb')](),auth=require(_0x8bd43d('0x12')),interaction=require('../../components/interaction/service'),controller=require('./openchannelMessage.controller');router[_0x8bd43d('0xa')]('/',auth['isAuthenticated'](),controller['index']),router[_0x8bd43d('0xa')](_0x8bd43d('0x2'),auth[_0x8bd43d('0x11')](),controller[_0x8bd43d('0x0')]),router[_0x8bd43d('0xa')](_0x8bd43d('0xf'),auth[_0x8bd43d('0x11')](),controller[_0x8bd43d('0x10')]),router[_0x8bd43d('0x3')]('/',auth['isAuthenticated'](),interaction[_0x8bd43d('0xd')]('openchannel',_0x8bd43d('0xe')),controller[_0x8bd43d('0x9')]),router[_0x8bd43d('0x13')](_0x8bd43d('0xf'),auth[_0x8bd43d('0x11')](),controller['update']),router['put'](_0x8bd43d('0xc'),auth[_0x8bd43d('0x11')](),controller['accept']),router[_0x8bd43d('0x13')](_0x8bd43d('0x5'),auth['isAuthenticated'](),controller[_0x8bd43d('0x1')]),router[_0x8bd43d('0x7')]('/:id',auth[_0x8bd43d('0x11')](),controller[_0x8bd43d('0x6')]),module[_0x8bd43d('0x8')]=router; \ No newline at end of file +const a485_0x17dd=['show','tracked','index','../../components/auth/service','reject','isAuthenticated','create','describe','../../components/interaction/service','post','destroy','put','/:id/accept','update','exports','get','/:id/reject','openchannel','/describe','Router','/:id','express','accept'];(function(_0x32b492,_0x17dd39){const _0x4b088e=function(_0x41db34){while(--_0x41db34){_0x32b492['push'](_0x32b492['shift']());}};_0x4b088e(++_0x17dd39);}(a485_0x17dd,0x1d3));const a485_0x4b08=function(_0x32b492,_0x17dd39){_0x32b492=_0x32b492-0x0;let _0x4b088e=a485_0x17dd[_0x32b492];return _0x4b088e;};const _0x6c2523=a485_0x4b08;'use strict';const express=require(_0x6c2523('0xe')),router=express[_0x6c2523('0xc')](),auth=require(_0x6c2523('0x13')),interaction=require(_0x6c2523('0x1')),controller=require('./openchannelMessage.controller');router[_0x6c2523('0x8')]('/',auth[_0x6c2523('0x15')](),controller[_0x6c2523('0x12')]),router['get'](_0x6c2523('0xb'),auth[_0x6c2523('0x15')](),controller[_0x6c2523('0x0')]),router[_0x6c2523('0x8')](_0x6c2523('0xd'),auth[_0x6c2523('0x15')](),controller[_0x6c2523('0x10')]),router[_0x6c2523('0x2')]('/',auth['isAuthenticated'](),interaction[_0x6c2523('0x11')](_0x6c2523('0xa'),'openchannelmessage:create'),controller[_0x6c2523('0x16')]),router[_0x6c2523('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x6c2523('0x6')]),router[_0x6c2523('0x4')](_0x6c2523('0x5'),auth[_0x6c2523('0x15')](),controller[_0x6c2523('0xf')]),router[_0x6c2523('0x4')](_0x6c2523('0x9'),auth['isAuthenticated'](),controller[_0x6c2523('0x14')]),router['delete'](_0x6c2523('0xd'),auth[_0x6c2523('0x15')](),controller[_0x6c2523('0x3')]),module[_0x6c2523('0x7')]=router; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.attributes.js b/server/api/openchannelMessage/openchannelMessage.attributes.js index 2769443..e3a9790 100644 --- a/server/api/openchannelMessage/openchannelMessage.attributes.js +++ b/server/api/openchannelMessage/openchannelMessage.attributes.js @@ -1 +1 @@ -const a486_0x1349=['sequelize','exports','out','DATE','medium','BOOLEAN'];(function(_0x286b3a,_0x1349c4){const _0x32e0d1=function(_0x13dd3f){while(--_0x13dd3f){_0x286b3a['push'](_0x286b3a['shift']());}};_0x32e0d1(++_0x1349c4);}(a486_0x1349,0x16d));const a486_0x32e0=function(_0x286b3a,_0x1349c4){_0x286b3a=_0x286b3a-0x0;let _0x32e0d1=a486_0x1349[_0x286b3a];return _0x32e0d1;};const _0x746840=a486_0x32e0;'use strict';const Sequelize=require(_0x746840('0x1'));module[_0x746840('0x2')]={'body':{'type':Sequelize['TEXT'](_0x746840('0x5')),'allowNull':![]},'read':{'type':Sequelize[_0x746840('0x0')],'defaultValue':![]},'secret':{'type':Sequelize[_0x746840('0x0')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in','out'),'defaultValue':_0x746840('0x3'),'allowNull':![]},'readAt':{'type':Sequelize[_0x746840('0x4')]}}; \ No newline at end of file +const a486_0x17b9=['out','DATE','sequelize','exports','ENUM','medium','BOOLEAN'];(function(_0x38de84,_0x17b9cc){const _0x66d525=function(_0x439eeb){while(--_0x439eeb){_0x38de84['push'](_0x38de84['shift']());}};_0x66d525(++_0x17b9cc);}(a486_0x17b9,0x13c));const a486_0x66d5=function(_0x38de84,_0x17b9cc){_0x38de84=_0x38de84-0x0;let _0x66d525=a486_0x17b9[_0x38de84];return _0x66d525;};const _0x5e68c5=a486_0x66d5;'use strict';const Sequelize=require(_0x5e68c5('0x1'));module[_0x5e68c5('0x2')]={'body':{'type':Sequelize['TEXT'](_0x5e68c5('0x4')),'allowNull':![]},'read':{'type':Sequelize[_0x5e68c5('0x5')],'defaultValue':![]},'secret':{'type':Sequelize[_0x5e68c5('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x5e68c5('0x3')]('in',_0x5e68c5('0x6')),'defaultValue':'out','allowNull':![]},'readAt':{'type':Sequelize[_0x5e68c5('0x0')]}}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.controller.js b/server/api/openchannelMessage/openchannelMessage.controller.js index c4054cd..d1a61db 100644 --- a/server/api/openchannelMessage/openchannelMessage.controller.js +++ b/server/api/openchannelMessage/openchannelMessage.controller.js @@ -1 +1 @@ -const a487_0x46f9=['type','limit','util','UserId','user','request\x20sent','result','VIRTUAL','client','openchannel-interactions','openchannel','params','[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','undefined','sort','http','../../mysqldb','count','../../components/parsers/qs','error','code','name','rejectMessage','null','catch','keys','like','EventManager','get','intersection','body','stringify','findOne','format','event','order','message','update','OpenchannelMessage,\x20%s,\x20%s','role','map','request','AcceptMessage','where','include','send','includeAll','OpenchannelMessage','set','create','options','merge','manual','sequelize','filter','json','rejectmessage','SIP/%s','../../rediscache','reject','model','rows','acceptMessage','YYYY-MM-DD\x20HH:mm:ss','info','length','stack','../../config/logger','interface','[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','api','jayson/promise','offset','rawAttributes','interaction','findAll','query','OpenchannelInteraction','Content-Range','then','isNil','destroy','fields','filters','attributes','OpenchannelMessage,\x20%s,\x20%s,\x20%s','describe','show','acceptmessage','channel','Contact','pick','status','read1stAt'];(function(_0x6d4caf,_0x46f97c){const _0x5a8b09=function(_0x5b5185){while(--_0x5b5185){_0x6d4caf['push'](_0x6d4caf['shift']());}};_0x5a8b09(++_0x46f97c);}(a487_0x46f9,0x1e7));const a487_0x5a8b=function(_0x6d4caf,_0x46f97c){_0x6d4caf=_0x6d4caf-0x0;let _0x5a8b09=a487_0x46f9[_0x6d4caf];return _0x5a8b09;};const _0x153920=a487_0x5a8b;'use strict';const moment=require('moment'),util=require(_0x153920('0x4f')),_=require('lodash'),qs=require(_0x153920('0x1')),logger=require(_0x153920('0x32'))(_0x153920('0x35')),{getSocket}=require(_0x153920('0x29')),socket=getSocket(),interaction_log=require(_0x153920('0x32'))(_0x153920('0x56')),db=require(_0x153920('0x5d'))['db'],{Op}=require(_0x153920('0x24'));require('./openchannelMessage.socket')['register'](socket);const jayson=require(_0x153920('0x36')),client=jayson[_0x153920('0x55')][_0x153920('0x5c')]({'port':0x232c}),client9002=jayson[_0x153920('0x55')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5b5185,_0x38af4a,_0xf41fd1,_0x835c64){return new Promise(function(_0x1460e1,_0xd0365){const _0x27d2f5=a487_0x5a8b,_0x5251a5=_0x835c64||client;return _0x5251a5[_0x27d2f5('0x18')](_0x5b5185,_0xf41fd1)[_0x27d2f5('0x3e')](function(_0x4e1c53){const _0x52bad5=_0x27d2f5;logger[_0x52bad5('0x2f')](_0x52bad5('0x15'),_0x38af4a,_0x52bad5('0x52')),logger['debug'](_0x52bad5('0x44'),_0x38af4a,'request\x20sent',JSON[_0x52bad5('0xe')](_0x4e1c53));if(_0x4e1c53[_0x52bad5('0x2')]){if(_0x4e1c53[_0x52bad5('0x2')][_0x52bad5('0x3')]===0x1f4)return logger['error'](_0x52bad5('0x15'),_0x38af4a,_0x4e1c53[_0x52bad5('0x2')][_0x52bad5('0x13')]),_0xd0365(_0x4e1c53[_0x52bad5('0x2')][_0x52bad5('0x13')]);return logger[_0x52bad5('0x2')](_0x52bad5('0x15'),_0x38af4a,_0x4e1c53[_0x52bad5('0x2')][_0x52bad5('0x13')]),_0x1460e1(_0x4e1c53['error'][_0x52bad5('0x13')]);}else logger[_0x52bad5('0x2f')]('OpenchannelMessage,\x20%s,\x20%s',_0x38af4a,'request\x20sent'),_0x1460e1(_0x4e1c53[_0x52bad5('0x53')][_0x52bad5('0x13')]);})['catch'](function(_0x5ddb4c){const _0x8190ae=_0x27d2f5;logger[_0x8190ae('0x2')](_0x8190ae('0x15'),_0x38af4a,_0x5ddb4c),_0xd0365(_0x5ddb4c);});});}function respondWithResult(_0x5ddbda,_0x5f225a){return _0x5f225a=_0x5f225a||0xc8,function(_0x3d265){const _0x5de368=a487_0x5a8b;if(_0x3d265)return _0x5ddbda[_0x5de368('0x4b')](_0x5f225a)[_0x5de368('0x26')](_0x3d265);};}function respondWithFilteredResult(_0x4a0aa0,_0x1e2043){return function(_0x40938f){const _0x222583=a487_0x5a8b;if(_0x40938f){const _0x3f9d8f=_0x40938f[_0x222583('0x0')],_0x130a28=_0x1e2043[_0x222583('0x37')];let _0x5e1734=_0x1e2043['offset']+_0x1e2043[_0x222583('0x4e')],_0x1ca840;return _0x5e1734>=_0x3f9d8f?(_0x5e1734=_0x3f9d8f,_0x1ca840=0xc8):_0x1ca840=0xce,_0x4a0aa0[_0x222583('0x4b')](_0x1ca840),_0x4a0aa0[_0x222583('0x1f')](_0x222583('0x3d'),_0x130a28+'-'+_0x5e1734+'/'+_0x3f9d8f)[_0x222583('0x26')](_0x40938f);}return null;};}function saveUpdates(_0x58c6e0){return function(_0x47af0a){const _0x4dfe3d=a487_0x5a8b;if(_0x47af0a)return _0x47af0a[_0x4dfe3d('0x14')](_0x58c6e0)[_0x4dfe3d('0x3e')](function(_0x3da92a){return _0x3da92a;});return null;};}function removeEntity(_0x2fa39c){return function(_0x3896b5){const _0x3e28d8=a487_0x5a8b;if(_0x3896b5)return _0x3896b5[_0x3e28d8('0x40')]()[_0x3e28d8('0x3e')](function(){_0x2fa39c['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x597ac1){return function(_0xea195){return!_0xea195&&_0x597ac1['sendStatus'](0x194),_0xea195;};}function handleError(_0x12c7dc,_0x131855){return _0x131855=_0x131855||0x1f4,function(_0x5dfa7d){const _0x109318=a487_0x5a8b;logger[_0x109318('0x2')](_0x5dfa7d[_0x109318('0x31')]),_0x5dfa7d['name']&&delete _0x5dfa7d[_0x109318('0x4')],_0x12c7dc[_0x109318('0x4b')](_0x131855)[_0x109318('0x1c')](_0x5dfa7d);};}exports['index']=function(_0x1f4d23,_0x58cea1){const _0x21a0f9=_0x153920;let _0x174b40={};const _0x39eaa5={},_0x5f3a3f={'count':0x0,'rows':[]},_0x1179c5=_['map'](db[_0x21a0f9('0x1e')]['rawAttributes'],function(_0x458126){const _0x134072=_0x21a0f9;return{'name':_0x458126['fieldName'],'type':_0x458126[_0x134072('0x4d')]['key']};});_0x39eaa5[_0x21a0f9('0x2b')]=_['map'](_0x1179c5,_0x21a0f9('0x4')),_0x39eaa5[_0x21a0f9('0x3b')]=_[_0x21a0f9('0x8')](_0x1f4d23[_0x21a0f9('0x3b')]),_0x39eaa5[_0x21a0f9('0x42')]=_[_0x21a0f9('0xc')](_0x39eaa5[_0x21a0f9('0x2b')],_0x39eaa5['query']),_0x174b40[_0x21a0f9('0x43')]=_[_0x21a0f9('0xc')](_0x39eaa5[_0x21a0f9('0x2b')],qs[_0x21a0f9('0x41')](_0x1f4d23['query'][_0x21a0f9('0x41')])),_0x174b40[_0x21a0f9('0x43')]=_0x174b40[_0x21a0f9('0x43')][_0x21a0f9('0x30')]?_0x174b40['attributes']:_0x39eaa5[_0x21a0f9('0x2b')];typeof _0x1f4d23['query']['nolimit']===_0x21a0f9('0x5a')&&(_0x174b40[_0x21a0f9('0x4e')]=qs['limit'](_0x1f4d23[_0x21a0f9('0x3b')][_0x21a0f9('0x4e')]),_0x174b40['offset']=qs[_0x21a0f9('0x37')](_0x1f4d23['query'][_0x21a0f9('0x37')]));_0x174b40[_0x21a0f9('0x12')]=qs[_0x21a0f9('0x5b')](_0x1f4d23['query'][_0x21a0f9('0x5b')]),_0x174b40[_0x21a0f9('0x1a')]=qs[_0x21a0f9('0x42')](_[_0x21a0f9('0x4a')](_0x1f4d23['query'],_0x39eaa5[_0x21a0f9('0x42')]),_0x1179c5);_0x1f4d23[_0x21a0f9('0x3b')]['filter']&&(_0x174b40[_0x21a0f9('0x1a')]=_['merge'](_0x174b40[_0x21a0f9('0x1a')],{[Op['or']]:_[_0x21a0f9('0x17')](_0x1179c5,function(_0x1ac50d){const _0x461c81=_0x21a0f9;if(_0x1ac50d['type']!==_0x461c81('0x54')){const _0x211355={};return _0x211355[_0x1ac50d[_0x461c81('0x4')]]={[Op[_0x461c81('0x9')]]:'%'+_0x1f4d23['query'][_0x461c81('0x25')]+'%'},_0x211355;}})}));_0x174b40=_['merge']({},_0x174b40,_0x1f4d23[_0x21a0f9('0x21')]);const _0x4867b9={'where':_0x174b40[_0x21a0f9('0x1a')]};return db['OpenchannelMessage'][_0x21a0f9('0x0')](_0x4867b9)[_0x21a0f9('0x3e')](function(_0x51117f){const _0x4efc36=_0x21a0f9;return _0x5f3a3f[_0x4efc36('0x0')]=_0x51117f,_0x1f4d23[_0x4efc36('0x3b')][_0x4efc36('0x1d')]&&(_0x174b40[_0x4efc36('0x1b')]=[{'all':!![]}]),db[_0x4efc36('0x1e')][_0x4efc36('0x3a')](_0x174b40);})[_0x21a0f9('0x3e')](function(_0x1a8f18){const _0x27304e=_0x21a0f9;return _0x5f3a3f[_0x27304e('0x2c')]=_0x1a8f18,_0x5f3a3f;})[_0x21a0f9('0x3e')](respondWithFilteredResult(_0x58cea1,_0x174b40))[_0x21a0f9('0x7')](handleError(_0x58cea1,null));},exports[_0x153920('0x46')]=function(_0x1957ca,_0x158229){const _0x1ba8c1=_0x153920;let _0x1ef0d6={'raw':!![],'where':{'id':_0x1957ca[_0x1ba8c1('0x58')]['id']}};const _0x3393c9={};return _0x3393c9[_0x1ba8c1('0x2b')]=_[_0x1ba8c1('0x8')](db[_0x1ba8c1('0x1e')][_0x1ba8c1('0x38')]),_0x3393c9['query']=_['keys'](_0x1957ca['query']),_0x3393c9[_0x1ba8c1('0x42')]=_['intersection'](_0x3393c9[_0x1ba8c1('0x2b')],_0x3393c9[_0x1ba8c1('0x3b')]),_0x1ef0d6['attributes']=_[_0x1ba8c1('0xc')](_0x3393c9[_0x1ba8c1('0x2b')],qs[_0x1ba8c1('0x41')](_0x1957ca[_0x1ba8c1('0x3b')][_0x1ba8c1('0x41')])),_0x1ef0d6[_0x1ba8c1('0x43')]=_0x1ef0d6[_0x1ba8c1('0x43')][_0x1ba8c1('0x30')]?_0x1ef0d6[_0x1ba8c1('0x43')]:_0x3393c9[_0x1ba8c1('0x2b')],_0x1957ca[_0x1ba8c1('0x3b')]['includeAll']&&(_0x1ef0d6[_0x1ba8c1('0x1b')]=[{'all':!![]}]),_0x1ef0d6=_[_0x1ba8c1('0x22')]({},_0x1ef0d6,_0x1957ca[_0x1ba8c1('0x21')]),db[_0x1ba8c1('0x1e')]['findOne'](_0x1ef0d6)[_0x1ba8c1('0x3e')](handleEntityNotFound(_0x158229,null))[_0x1ba8c1('0x3e')](respondWithResult(_0x158229,null))[_0x1ba8c1('0x7')](handleError(_0x158229,null));},exports[_0x153920('0x20')]=function(_0x3c7578,_0x4dcce4){const _0x16421a=_0x153920;return db['OpenchannelMessage'][_0x16421a('0x20')](_0x3c7578[_0x16421a('0xd')],{})[_0x16421a('0x3e')](respondWithResult(_0x4dcce4,0xc9))[_0x16421a('0x7')](handleError(_0x4dcce4,null));},exports[_0x153920('0x14')]=function(_0x48ac3e,_0x927f04){const _0x42c185=_0x153920;return _0x48ac3e[_0x42c185('0xd')]['id']&&delete _0x48ac3e[_0x42c185('0xd')]['id'],db[_0x42c185('0x1e')][_0x42c185('0xf')]({'where':{'id':_0x48ac3e['params']['id']}})[_0x42c185('0x3e')](handleEntityNotFound(_0x927f04,null))['then'](saveUpdates(_0x48ac3e['body'],null))['then'](respondWithResult(_0x927f04,null))['catch'](handleError(_0x927f04,null));},exports[_0x153920('0x40')]=function(_0x5f3301,_0x6bfc2a){const _0x50b65e=_0x153920;return db[_0x50b65e('0x1e')]['findOne']({'where':{'id':_0x5f3301[_0x50b65e('0x58')]['id']}})['then'](handleEntityNotFound(_0x6bfc2a,null))['then'](removeEntity(_0x6bfc2a,null))[_0x50b65e('0x7')](handleError(_0x6bfc2a,null));},exports[_0x153920('0x45')]=function(_0x5957d8,_0x1f9661){const _0xa470b4=_0x153920;return db[_0xa470b4('0x1e')]['describe']()['then'](respondWithResult(_0x1f9661,null))[_0xa470b4('0x7')](handleError(_0x1f9661,null));},exports['accept']=function(_0x2629a7,_0x510e92){const _0x1fdc94=_0x153920,_0x342433={'channel':_0x1fdc94('0x57')};return _0x2629a7['body']['id']&&delete _0x2629a7[_0x1fdc94('0xd')]['id'],_0x2629a7[_0x1fdc94('0xd')]['read']=!![],_0x2629a7[_0x1fdc94('0xd')]['readAt']=moment()[_0x1fdc94('0x10')](_0x1fdc94('0x2e')),_0x2629a7['body']['UserId']=_0x2629a7[_0x1fdc94('0xd')][_0x1fdc94('0x50')]||_0x2629a7['user']['id'],db[_0x1fdc94('0x1e')]['findOne']({'where':{'id':_0x2629a7['params']['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':_0x1fdc94('0x49')}]})[_0x1fdc94('0x3e')](handleEntityNotFound(_0x510e92,null))[_0x1fdc94('0x3e')](saveUpdates(_0x2629a7['body'],null))[_0x1fdc94('0x3e')](function(_0x63f2e3){const _0x3779f1=_0x1fdc94;if(_0x63f2e3)return _0x342433[_0x3779f1('0x13')]=_0x63f2e3[_0x3779f1('0xb')]({'plain':!![]}),db['OpenchannelInteraction'][_0x3779f1('0xf')]({'where':{'id':_0x63f2e3['OpenchannelInteractionId']}});return null;})[_0x1fdc94('0x3e')](handleEntityNotFound(_0x510e92,null))[_0x1fdc94('0x3e')](function(_0x12b295){const _0x20b095=_0x1fdc94;if(_0x12b295)return _0x12b295[_0x20b095('0x14')]({'UserId':_0x2629a7[_0x20b095('0xd')][_0x20b095('0x50')],'read1stAt':_[_0x20b095('0x3f')](_0x12b295[_0x20b095('0x4c')])?moment()['format'](_0x20b095('0x2e')):undefined});return null;})[_0x1fdc94('0x3e')](function(_0x18a89b){const _0x4fc3c8=_0x1fdc94;if(_0x18a89b)return _0x342433[_0x4fc3c8('0x39')]=_0x18a89b[_0x4fc3c8('0xb')]({'plain':!![]}),interaction_log[_0x4fc3c8('0x2f')](_0x4fc3c8('0x59'),_0x2629a7[_0x4fc3c8('0x51')]['id'],_0x2629a7['user'][_0x4fc3c8('0x4')],_0x2629a7[_0x4fc3c8('0x51')][_0x4fc3c8('0x16')],_0x342433[_0x4fc3c8('0x39')]['id'],_0x2629a7[_0x4fc3c8('0xd')]?JSON[_0x4fc3c8('0xe')](_0x2629a7['body']):_0x4fc3c8('0x6')),respondWithRpcPromise(_0x4fc3c8('0x19'),_0x4fc3c8('0x2d'),_0x342433);return null;})[_0x1fdc94('0x3e')](function(_0x1e6f8d){const _0x22cbeb=_0x1fdc94;if(_0x1e6f8d){if(_0x2629a7[_0x22cbeb('0xd')][_0x22cbeb('0x23')])return _0x342433[_0x22cbeb('0x13')][_0x22cbeb('0x33')]=util[_0x22cbeb('0x10')]('SIP/%s',_0x2629a7[_0x22cbeb('0x51')][_0x22cbeb('0x4')]),_0x342433[_0x22cbeb('0x13')]['channel']=_0x342433['channel'],_0x342433[_0x22cbeb('0x13')][_0x22cbeb('0x11')]='accept',respondWithRpcPromise(_0x22cbeb('0xa'),_0x22cbeb('0xa'),{'event':_0x22cbeb('0x47'),'message':_0x342433[_0x22cbeb('0x13')]},client9002)[_0x22cbeb('0x3e')](function(){return _0x342433;});return _0x342433;}return null;})[_0x1fdc94('0x3e')](respondWithResult(_0x510e92,null))['catch'](handleError(_0x510e92,null));},exports[_0x153920('0x2a')]=function(_0x10ae95,_0x6e7cbe){const _0x29fdb2=_0x153920,_0x1db365={'agent':{},'channel':_0x29fdb2('0x57')};return _0x10ae95[_0x29fdb2('0xd')]['id']&&delete _0x10ae95['body']['id'],_0x10ae95[_0x29fdb2('0xd')]['UserId']=_0x10ae95[_0x29fdb2('0xd')]['UserId']||_0x10ae95[_0x29fdb2('0x51')]['id'],_0x1db365['agent']['id']=_0x10ae95[_0x29fdb2('0xd')]['UserId'],db['OpenchannelMessage'][_0x29fdb2('0xf')]({'where':{'id':_0x10ae95[_0x29fdb2('0x58')]['id'],'UserId':null}})[_0x29fdb2('0x3e')](handleEntityNotFound(_0x6e7cbe,null))[_0x29fdb2('0x3e')](function(_0x34a055){const _0x3075e8=_0x29fdb2;if(_0x34a055)return _0x1db365['message']=_0x34a055[_0x3075e8('0xb')]({'plain':!![]}),db[_0x3075e8('0x3c')][_0x3075e8('0xf')]({'where':{'id':_0x34a055['OpenchannelInteractionId']}});return null;})[_0x29fdb2('0x3e')](handleEntityNotFound(_0x6e7cbe,null))[_0x29fdb2('0x3e')](function(_0x24032e){const _0x4e0ef9=_0x29fdb2;if(_0x24032e)return _0x1db365[_0x4e0ef9('0x39')]=_0x24032e['get']({'plain':!![]}),interaction_log[_0x4e0ef9('0x2f')](_0x4e0ef9('0x34'),_0x10ae95[_0x4e0ef9('0x51')]['id'],_0x10ae95[_0x4e0ef9('0x51')]['name'],_0x10ae95[_0x4e0ef9('0x51')][_0x4e0ef9('0x16')],_0x1db365[_0x4e0ef9('0x39')]['id'],_0x10ae95['body']?JSON['stringify'](_0x10ae95[_0x4e0ef9('0xd')]):_0x4e0ef9('0x6')),respondWithRpcPromise('RejectMessage',_0x4e0ef9('0x5'),_0x1db365);return null;})['then'](function(_0x5ae8b7){const _0x3a0dc0=_0x29fdb2;if(_0x5ae8b7)return _0x5ae8b7['message'][_0x3a0dc0('0x33')]=util[_0x3a0dc0('0x10')](_0x3a0dc0('0x28'),_0x10ae95['user']['name']),_0x5ae8b7[_0x3a0dc0('0x13')][_0x3a0dc0('0x48')]=_0x1db365['channel'],_0x5ae8b7[_0x3a0dc0('0x13')][_0x3a0dc0('0x11')]=_0x3a0dc0('0x2a'),respondWithRpcPromise(_0x3a0dc0('0xa'),_0x3a0dc0('0xa'),{'event':_0x3a0dc0('0x27'),'message':_0x5ae8b7[_0x3a0dc0('0x13')]},client9002),_0x1db365;return null;})['then'](respondWithResult(_0x6e7cbe,null))[_0x29fdb2('0x7')](handleError(_0x6e7cbe,null));}; \ No newline at end of file +const a487_0x5d7a=['index','status','json','OpenchannelInteractionId','acceptmessage','RejectMessage','options','role','YYYY-MM-DD\x20HH:mm:ss','end','then','findAll','user','update','[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','limit','params','format','openchannel-interactions','rows','like','code','../../rediscache','order','channel','interaction','moment','where','lodash','error','OpenchannelMessage','stack','show','send','query','rawAttributes','openchannel','manual','stringify','intersection','include','type','message','count','set','jayson/promise','[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','../../mysqldb','UserId','request\x20sent','request','EventManager','merge','sort','fields','OpenchannelMessage,\x20%s,\x20%s','catch','VIRTUAL','SIP/%s','rejectmessage','sequelize','interface','get','filters','body','OpenchannelInteraction','describe','rejectMessage','includeAll','undefined','event','http','info','filter','map','findOne','nolimit','reject','attributes','client','../../config/logger','pick','null','isNil','length','name','register','CmContact','debug','./openchannelMessage.socket','destroy','model','offset','create'];(function(_0x45cfd6,_0x5d7a85){const _0x177fdb=function(_0xec2de3){while(--_0xec2de3){_0x45cfd6['push'](_0x45cfd6['shift']());}};_0x177fdb(++_0x5d7a85);}(a487_0x5d7a,0xb4));const a487_0x177f=function(_0x45cfd6,_0x5d7a85){_0x45cfd6=_0x45cfd6-0x0;let _0x177fdb=a487_0x5d7a[_0x45cfd6];return _0x177fdb;};const _0x1e28c7=a487_0x177f;'use strict';const moment=require(_0x1e28c7('0x22')),util=require('util'),_=require(_0x1e28c7('0x24')),qs=require('../../components/parsers/qs'),logger=require(_0x1e28c7('0x58'))('api'),{getSocket}=require(_0x1e28c7('0x1e')),socket=getSocket(),interaction_log=require(_0x1e28c7('0x58'))(_0x1e28c7('0x1a')),db=require(_0x1e28c7('0x37'))['db'],{Op}=require(_0x1e28c7('0x44'));require(_0x1e28c7('0x3'))[_0x1e28c7('0x0')](socket);const jayson=require(_0x1e28c7('0x35')),client=jayson[_0x1e28c7('0x57')][_0x1e28c7('0x4f')]({'port':0x232c}),client9002=jayson['client'][_0x1e28c7('0x4f')]({'port':0x232a});function respondWithRpcPromise(_0xec2de3,_0x41906a,_0x13fc9d,_0x3a600e){return new Promise(function(_0x132271,_0x2eec69){const _0x18af5e=a487_0x177f,_0x5e1bfd=_0x3a600e||client;return _0x5e1bfd[_0x18af5e('0x3a')](_0xec2de3,_0x13fc9d)['then'](function(_0x1bb4e9){const _0x30f51a=_0x18af5e;logger[_0x30f51a('0x50')]('OpenchannelMessage,\x20%s,\x20%s',_0x41906a,_0x30f51a('0x39')),logger[_0x30f51a('0x2')]('OpenchannelMessage,\x20%s,\x20%s,\x20%s',_0x41906a,'request\x20sent',JSON['stringify'](_0x1bb4e9));if(_0x1bb4e9['error']){if(_0x1bb4e9[_0x30f51a('0x25')][_0x30f51a('0x1d')]===0x1f4)return logger[_0x30f51a('0x25')]('OpenchannelMessage,\x20%s,\x20%s',_0x41906a,_0x1bb4e9['error'][_0x30f51a('0x32')]),_0x2eec69(_0x1bb4e9[_0x30f51a('0x25')][_0x30f51a('0x32')]);return logger[_0x30f51a('0x25')](_0x30f51a('0x3f'),_0x41906a,_0x1bb4e9[_0x30f51a('0x25')][_0x30f51a('0x32')]),_0x132271(_0x1bb4e9[_0x30f51a('0x25')][_0x30f51a('0x32')]);}else logger[_0x30f51a('0x50')]('OpenchannelMessage,\x20%s,\x20%s',_0x41906a,_0x30f51a('0x39')),_0x132271(_0x1bb4e9['result'][_0x30f51a('0x32')]);})['catch'](function(_0x1cdb10){const _0x1dba17=_0x18af5e;logger['error'](_0x1dba17('0x3f'),_0x41906a,_0x1cdb10),_0x2eec69(_0x1cdb10);});});}function respondWithResult(_0x23e048,_0x4ee235){return _0x4ee235=_0x4ee235||0xc8,function(_0x441d57){if(_0x441d57)return _0x23e048['status'](_0x4ee235)['json'](_0x441d57);};}function respondWithFilteredResult(_0x3931e3,_0x33069e){return function(_0xcf7734){const _0x499021=a487_0x177f;if(_0xcf7734){const _0x18337d=_0xcf7734[_0x499021('0x33')],_0x2e6663=_0x33069e[_0x499021('0x6')];let _0x4cbede=_0x33069e['offset']+_0x33069e[_0x499021('0x17')],_0x11a2f4;return _0x4cbede>=_0x18337d?(_0x4cbede=_0x18337d,_0x11a2f4=0xc8):_0x11a2f4=0xce,_0x3931e3[_0x499021('0x9')](_0x11a2f4),_0x3931e3[_0x499021('0x34')]('Content-Range',_0x2e6663+'-'+_0x4cbede+'/'+_0x18337d)[_0x499021('0xa')](_0xcf7734);}return null;};}function saveUpdates(_0x5b6fc9){return function(_0xe648e0){const _0x1d2043=a487_0x177f;if(_0xe648e0)return _0xe648e0['update'](_0x5b6fc9)[_0x1d2043('0x12')](function(_0x35cf76){return _0x35cf76;});return null;};}function removeEntity(_0x538edd){return function(_0x144706){const _0xc28cf5=a487_0x177f;if(_0x144706)return _0x144706[_0xc28cf5('0x4')]()['then'](function(){const _0x30d8bd=_0xc28cf5;_0x538edd[_0x30d8bd('0x9')](0xcc)[_0x30d8bd('0x11')]();});};}function handleEntityNotFound(_0x54a70f){return function(_0x50e059){return!_0x50e059&&_0x54a70f['sendStatus'](0x194),_0x50e059;};}function handleError(_0x144545,_0x220b3a){return _0x220b3a=_0x220b3a||0x1f4,function(_0x4c9a4c){const _0x115819=a487_0x177f;logger[_0x115819('0x25')](_0x4c9a4c[_0x115819('0x27')]),_0x4c9a4c[_0x115819('0x5d')]&&delete _0x4c9a4c[_0x115819('0x5d')],_0x144545[_0x115819('0x9')](_0x220b3a)[_0x115819('0x29')](_0x4c9a4c);};}exports[_0x1e28c7('0x8')]=function(_0x732f42,_0x5d6e7a){const _0x593f44=_0x1e28c7;let _0x56ba6f={};const _0x2f07c0={},_0x53b1fa={'count':0x0,'rows':[]},_0x5d0039=_[_0x593f44('0x52')](db[_0x593f44('0x26')][_0x593f44('0x2b')],function(_0x4b42e9){const _0x24e203=_0x593f44;return{'name':_0x4b42e9['fieldName'],'type':_0x4b42e9[_0x24e203('0x31')]['key']};});_0x2f07c0[_0x593f44('0x5')]=_['map'](_0x5d0039,'name'),_0x2f07c0[_0x593f44('0x2a')]=_['keys'](_0x732f42[_0x593f44('0x2a')]),_0x2f07c0['filters']=_[_0x593f44('0x2f')](_0x2f07c0[_0x593f44('0x5')],_0x2f07c0[_0x593f44('0x2a')]),_0x56ba6f[_0x593f44('0x56')]=_[_0x593f44('0x2f')](_0x2f07c0[_0x593f44('0x5')],qs[_0x593f44('0x3e')](_0x732f42[_0x593f44('0x2a')][_0x593f44('0x3e')])),_0x56ba6f[_0x593f44('0x56')]=_0x56ba6f[_0x593f44('0x56')][_0x593f44('0x5c')]?_0x56ba6f['attributes']:_0x2f07c0['model'];typeof _0x732f42['query'][_0x593f44('0x54')]===_0x593f44('0x4d')&&(_0x56ba6f['limit']=qs[_0x593f44('0x17')](_0x732f42[_0x593f44('0x2a')][_0x593f44('0x17')]),_0x56ba6f[_0x593f44('0x6')]=qs['offset'](_0x732f42['query'][_0x593f44('0x6')]));_0x56ba6f[_0x593f44('0x1f')]=qs[_0x593f44('0x3d')](_0x732f42[_0x593f44('0x2a')][_0x593f44('0x3d')]),_0x56ba6f['where']=qs[_0x593f44('0x47')](_[_0x593f44('0x59')](_0x732f42[_0x593f44('0x2a')],_0x2f07c0[_0x593f44('0x47')]),_0x5d0039);_0x732f42['query'][_0x593f44('0x51')]&&(_0x56ba6f[_0x593f44('0x23')]=_[_0x593f44('0x3c')](_0x56ba6f['where'],{[Op['or']]:_[_0x593f44('0x52')](_0x5d0039,function(_0x8f24e7){const _0x260c1a=_0x593f44;if(_0x8f24e7['type']!==_0x260c1a('0x41')){const _0x374f1a={};return _0x374f1a[_0x8f24e7[_0x260c1a('0x5d')]]={[Op[_0x260c1a('0x1c')]]:'%'+_0x732f42['query']['filter']+'%'},_0x374f1a;}})}));_0x56ba6f=_[_0x593f44('0x3c')]({},_0x56ba6f,_0x732f42[_0x593f44('0xe')]);const _0xa278b8={'where':_0x56ba6f[_0x593f44('0x23')]};return db[_0x593f44('0x26')]['count'](_0xa278b8)[_0x593f44('0x12')](function(_0x287435){const _0x46909e=_0x593f44;return _0x53b1fa[_0x46909e('0x33')]=_0x287435,_0x732f42[_0x46909e('0x2a')][_0x46909e('0x4c')]&&(_0x56ba6f[_0x46909e('0x30')]=[{'all':!![]}]),db['OpenchannelMessage'][_0x46909e('0x13')](_0x56ba6f);})['then'](function(_0x2805ed){const _0x5ecb0c=_0x593f44;return _0x53b1fa[_0x5ecb0c('0x1b')]=_0x2805ed,_0x53b1fa;})[_0x593f44('0x12')](respondWithFilteredResult(_0x5d6e7a,_0x56ba6f))[_0x593f44('0x40')](handleError(_0x5d6e7a,null));},exports[_0x1e28c7('0x28')]=function(_0x6f16a8,_0x571aa6){const _0x51e81a=_0x1e28c7;let _0x1f2b18={'raw':!![],'where':{'id':_0x6f16a8[_0x51e81a('0x18')]['id']}};const _0x2fbb89={};return _0x2fbb89[_0x51e81a('0x5')]=_['keys'](db[_0x51e81a('0x26')][_0x51e81a('0x2b')]),_0x2fbb89['query']=_['keys'](_0x6f16a8[_0x51e81a('0x2a')]),_0x2fbb89[_0x51e81a('0x47')]=_[_0x51e81a('0x2f')](_0x2fbb89['model'],_0x2fbb89[_0x51e81a('0x2a')]),_0x1f2b18[_0x51e81a('0x56')]=_[_0x51e81a('0x2f')](_0x2fbb89[_0x51e81a('0x5')],qs['fields'](_0x6f16a8[_0x51e81a('0x2a')][_0x51e81a('0x3e')])),_0x1f2b18[_0x51e81a('0x56')]=_0x1f2b18[_0x51e81a('0x56')][_0x51e81a('0x5c')]?_0x1f2b18[_0x51e81a('0x56')]:_0x2fbb89['model'],_0x6f16a8['query'][_0x51e81a('0x4c')]&&(_0x1f2b18['include']=[{'all':!![]}]),_0x1f2b18=_['merge']({},_0x1f2b18,_0x6f16a8[_0x51e81a('0xe')]),db[_0x51e81a('0x26')]['findOne'](_0x1f2b18)[_0x51e81a('0x12')](handleEntityNotFound(_0x571aa6,null))[_0x51e81a('0x12')](respondWithResult(_0x571aa6,null))[_0x51e81a('0x40')](handleError(_0x571aa6,null));},exports[_0x1e28c7('0x7')]=function(_0x31d31b,_0x4354e2){const _0x2630ee=_0x1e28c7;return db[_0x2630ee('0x26')][_0x2630ee('0x7')](_0x31d31b[_0x2630ee('0x48')],{})['then'](respondWithResult(_0x4354e2,0xc9))[_0x2630ee('0x40')](handleError(_0x4354e2,null));},exports[_0x1e28c7('0x15')]=function(_0x2bb342,_0x4595bf){const _0x20c5ee=_0x1e28c7;return _0x2bb342[_0x20c5ee('0x48')]['id']&&delete _0x2bb342[_0x20c5ee('0x48')]['id'],db[_0x20c5ee('0x26')][_0x20c5ee('0x53')]({'where':{'id':_0x2bb342[_0x20c5ee('0x18')]['id']}})[_0x20c5ee('0x12')](handleEntityNotFound(_0x4595bf,null))[_0x20c5ee('0x12')](saveUpdates(_0x2bb342[_0x20c5ee('0x48')],null))[_0x20c5ee('0x12')](respondWithResult(_0x4595bf,null))[_0x20c5ee('0x40')](handleError(_0x4595bf,null));},exports[_0x1e28c7('0x4')]=function(_0x18daf0,_0x52298f){const _0x442c71=_0x1e28c7;return db['OpenchannelMessage'][_0x442c71('0x53')]({'where':{'id':_0x18daf0[_0x442c71('0x18')]['id']}})[_0x442c71('0x12')](handleEntityNotFound(_0x52298f,null))['then'](removeEntity(_0x52298f,null))[_0x442c71('0x40')](handleError(_0x52298f,null));},exports[_0x1e28c7('0x4a')]=function(_0x299564,_0x4dc5be){const _0x5afebc=_0x1e28c7;return db[_0x5afebc('0x26')]['describe']()[_0x5afebc('0x12')](respondWithResult(_0x4dc5be,null))['catch'](handleError(_0x4dc5be,null));},exports['accept']=function(_0x430639,_0x3ff92c){const _0x14ed81=_0x1e28c7,_0x230f89={'channel':_0x14ed81('0x2c')};return _0x430639[_0x14ed81('0x48')]['id']&&delete _0x430639[_0x14ed81('0x48')]['id'],_0x430639[_0x14ed81('0x48')]['read']=!![],_0x430639['body']['readAt']=moment()[_0x14ed81('0x19')](_0x14ed81('0x10')),_0x430639[_0x14ed81('0x48')][_0x14ed81('0x38')]=_0x430639['body'][_0x14ed81('0x38')]||_0x430639[_0x14ed81('0x14')]['id'],db['OpenchannelMessage'][_0x14ed81('0x53')]({'where':{'id':_0x430639['params']['id'],'UserId':null},'include':[{'model':db[_0x14ed81('0x1')],'as':'Contact'}]})[_0x14ed81('0x12')](handleEntityNotFound(_0x3ff92c,null))[_0x14ed81('0x12')](saveUpdates(_0x430639[_0x14ed81('0x48')],null))[_0x14ed81('0x12')](function(_0xe660e0){const _0xd23a98=_0x14ed81;if(_0xe660e0)return _0x230f89[_0xd23a98('0x32')]=_0xe660e0[_0xd23a98('0x46')]({'plain':!![]}),db[_0xd23a98('0x49')][_0xd23a98('0x53')]({'where':{'id':_0xe660e0[_0xd23a98('0xb')]}});return null;})['then'](handleEntityNotFound(_0x3ff92c,null))[_0x14ed81('0x12')](function(_0x240ea0){const _0x56bad4=_0x14ed81;if(_0x240ea0)return _0x240ea0[_0x56bad4('0x15')]({'UserId':_0x430639[_0x56bad4('0x48')][_0x56bad4('0x38')],'read1stAt':_[_0x56bad4('0x5b')](_0x240ea0['read1stAt'])?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})['then'](function(_0x35dac9){const _0x42cfce=_0x14ed81;if(_0x35dac9)return _0x230f89[_0x42cfce('0x21')]=_0x35dac9['get']({'plain':!![]}),interaction_log['info'](_0x42cfce('0x36'),_0x430639[_0x42cfce('0x14')]['id'],_0x430639['user'][_0x42cfce('0x5d')],_0x430639[_0x42cfce('0x14')][_0x42cfce('0xf')],_0x230f89[_0x42cfce('0x21')]['id'],_0x430639['body']?JSON[_0x42cfce('0x2e')](_0x430639[_0x42cfce('0x48')]):_0x42cfce('0x5a')),respondWithRpcPromise('AcceptMessage','acceptMessage',_0x230f89);return null;})[_0x14ed81('0x12')](function(_0xb37440){const _0x1df155=_0x14ed81;if(_0xb37440){if(_0x430639['body'][_0x1df155('0x2d')])return _0x230f89['message'][_0x1df155('0x45')]=util[_0x1df155('0x19')](_0x1df155('0x42'),_0x430639[_0x1df155('0x14')][_0x1df155('0x5d')]),_0x230f89[_0x1df155('0x32')][_0x1df155('0x20')]=_0x230f89[_0x1df155('0x20')],_0x230f89[_0x1df155('0x32')]['event']='accept',respondWithRpcPromise('EventManager',_0x1df155('0x3b'),{'event':_0x1df155('0xc'),'message':_0x230f89[_0x1df155('0x32')]},client9002)[_0x1df155('0x12')](function(){return _0x230f89;});return _0x230f89;}return null;})[_0x14ed81('0x12')](respondWithResult(_0x3ff92c,null))['catch'](handleError(_0x3ff92c,null));},exports[_0x1e28c7('0x55')]=function(_0x470d3b,_0x548df0){const _0x198b2a=_0x1e28c7,_0x24e78e={'agent':{},'channel':_0x198b2a('0x2c')};return _0x470d3b['body']['id']&&delete _0x470d3b[_0x198b2a('0x48')]['id'],_0x470d3b[_0x198b2a('0x48')][_0x198b2a('0x38')]=_0x470d3b['body'][_0x198b2a('0x38')]||_0x470d3b['user']['id'],_0x24e78e['agent']['id']=_0x470d3b[_0x198b2a('0x48')]['UserId'],db[_0x198b2a('0x26')][_0x198b2a('0x53')]({'where':{'id':_0x470d3b[_0x198b2a('0x18')]['id'],'UserId':null}})[_0x198b2a('0x12')](handleEntityNotFound(_0x548df0,null))[_0x198b2a('0x12')](function(_0xb74e04){const _0xd0d89a=_0x198b2a;if(_0xb74e04)return _0x24e78e['message']=_0xb74e04[_0xd0d89a('0x46')]({'plain':!![]}),db['OpenchannelInteraction'][_0xd0d89a('0x53')]({'where':{'id':_0xb74e04['OpenchannelInteractionId']}});return null;})[_0x198b2a('0x12')](handleEntityNotFound(_0x548df0,null))[_0x198b2a('0x12')](function(_0x3a5de7){const _0x4e28bb=_0x198b2a;if(_0x3a5de7)return _0x24e78e['interaction']=_0x3a5de7['get']({'plain':!![]}),interaction_log['info'](_0x4e28bb('0x16'),_0x470d3b['user']['id'],_0x470d3b[_0x4e28bb('0x14')][_0x4e28bb('0x5d')],_0x470d3b[_0x4e28bb('0x14')][_0x4e28bb('0xf')],_0x24e78e['interaction']['id'],_0x470d3b['body']?JSON[_0x4e28bb('0x2e')](_0x470d3b['body']):_0x4e28bb('0x5a')),respondWithRpcPromise(_0x4e28bb('0xd'),_0x4e28bb('0x4b'),_0x24e78e);return null;})[_0x198b2a('0x12')](function(_0x3c3f5e){const _0xba151c=_0x198b2a;if(_0x3c3f5e)return _0x3c3f5e['message'][_0xba151c('0x45')]=util[_0xba151c('0x19')]('SIP/%s',_0x470d3b[_0xba151c('0x14')][_0xba151c('0x5d')]),_0x3c3f5e['message'][_0xba151c('0x20')]=_0x24e78e[_0xba151c('0x20')],_0x3c3f5e[_0xba151c('0x32')][_0xba151c('0x4e')]='reject',respondWithRpcPromise('EventManager','EventManager',{'event':_0xba151c('0x43'),'message':_0x3c3f5e[_0xba151c('0x32')]},client9002),_0x24e78e;return null;})[_0x198b2a('0x12')](respondWithResult(_0x548df0,null))[_0x198b2a('0x40')](handleError(_0x548df0,null));}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.events.js b/server/api/openchannelMessage/openchannelMessage.events.js index ba9d113..7d47903 100644 --- a/server/api/openchannelMessage/openchannelMessage.events.js +++ b/server/api/openchannelMessage/openchannelMessage.events.js @@ -1 +1 @@ -const a488_0x5832=['undefined','exports','save','addHook','remove','emit','setMaxListeners','events','update','../../mysqldb'];(function(_0x24def3,_0x583219){const _0x3e041d=function(_0xb182a7){while(--_0xb182a7){_0x24def3['push'](_0x24def3['shift']());}};_0x3e041d(++_0x583219);}(a488_0x5832,0xfe));const a488_0x3e04=function(_0x24def3,_0x583219){_0x24def3=_0x24def3-0x0;let _0x3e041d=a488_0x5832[_0x24def3];return _0x3e041d;};const _0x5da72a=a488_0x3e04;'use strict';const EventEmitter=require(_0x5da72a('0x3')),OpenchannelMessage=require(_0x5da72a('0x5'))['db']['OpenchannelMessage'],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0x5da72a('0x2')](0x0);const events={'afterCreate':_0x5da72a('0x8'),'afterUpdate':_0x5da72a('0x4'),'afterDestroy':_0x5da72a('0x0')};function emitEvent(_0xb182a7){return function(_0x12ebb1){const _0x44c092=a488_0x3e04;OpenchannelMessageEvents[_0x44c092('0x1')](_0xb182a7+':'+_0x12ebb1['id'],_0x12ebb1),OpenchannelMessageEvents['emit'](_0xb182a7,_0x12ebb1);};}for(const e in events){if(typeof events[e]!==_0x5da72a('0x6')){const event=events[e];OpenchannelMessage[_0x5da72a('0x9')](e,emitEvent(event));}}module[_0x5da72a('0x7')]=OpenchannelMessageEvents; \ No newline at end of file +const a488_0x5b47=['events','OpenchannelMessage','exports','emit','addHook','remove','setMaxListeners'];(function(_0x30701f,_0x5b47f6){const _0x1464e5=function(_0x165882){while(--_0x165882){_0x30701f['push'](_0x30701f['shift']());}};_0x1464e5(++_0x5b47f6);}(a488_0x5b47,0x16d));const a488_0x1464=function(_0x30701f,_0x5b47f6){_0x30701f=_0x30701f-0x0;let _0x1464e5=a488_0x5b47[_0x30701f];return _0x1464e5;};const _0x211ae7=a488_0x1464;'use strict';const EventEmitter=require(_0x211ae7('0x6')),OpenchannelMessage=require('../../mysqldb')['db'][_0x211ae7('0x0')],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0x211ae7('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x211ae7('0x4')};function emitEvent(_0x165882){return function(_0x5b68bc){const _0x19a862=a488_0x1464;OpenchannelMessageEvents[_0x19a862('0x2')](_0x165882+':'+_0x5b68bc['id'],_0x5b68bc),OpenchannelMessageEvents['emit'](_0x165882,_0x5b68bc);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelMessage[_0x211ae7('0x3')](e,emitEvent(event));}}module[_0x211ae7('0x1')]=OpenchannelMessageEvents; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.model.js b/server/api/openchannelMessage/openchannelMessage.model.js index fbc3a54..8b3f36e 100644 --- a/server/api/openchannelMessage/openchannelMessage.model.js +++ b/server/api/openchannelMessage/openchannelMessage.model.js @@ -1 +1 @@ -const a489_0x36ee=['OpenchannelAccount','toLowerCase','../../config/logger','direction','error','body','get','method','utf8mb4_unicode_ci','fti_openchannel_messages','threadId','util','define','OpenchannelInteractionId','CmContact','FULLTEXT','models','catch','length','OpenchannelInteraction','exports','isNil','./openchannelMessage.attributes','describe','afterCreate','Forwarding\x20message\x20%d\x20to\x20%s','Interaction','GET','Message\x20%d\x20forwarded\x20to\x20%s','utf8mb4','out','update','POST','omit','Contact','OpenchannelMessage','openchannel_messages','OpenchannelMessage,\x20%s,\x20%s','UserId','inspect','replyUri','then','findOne','keys','secret','info','Interactions','lodash','OpenchannelAccountId','api','format'];(function(_0x3281a6,_0x36ee89){const _0x348466=function(_0x90e6e8){while(--_0x90e6e8){_0x3281a6['push'](_0x3281a6['shift']());}};_0x348466(++_0x36ee89);}(a489_0x36ee,0x95));const a489_0x3484=function(_0x3281a6,_0x36ee89){_0x3281a6=_0x3281a6-0x0;let _0x348466=a489_0x36ee[_0x3281a6];return _0x348466;};const _0x1bd652=a489_0x3484;'use strict';const _=require(_0x1bd652('0x0')),util=require(_0x1bd652('0xf')),logger=require(_0x1bd652('0x6'))(_0x1bd652('0x2')),rp=require('request-promise-native'),attributes=require(_0x1bd652('0x1a'));module[_0x1bd652('0x18')]=function(_0x90e6e8){const _0x4e24be=_0x1bd652,_0x3c1a17=_0x90e6e8[_0x4e24be('0x14')],_0x170201=_0x90e6e8[_0x4e24be('0x10')](_0x4e24be('0x27'),attributes,{'tableName':_0x4e24be('0x28'),'paranoid':![],'indexes':[{'name':_0x4e24be('0xd'),'fields':[_0x4e24be('0x9')],'type':_0x4e24be('0x13')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x538f15){const _0x4c8e80=_0x4e24be,_0x18d86d=_0x538f15[_0x4c8e80('0xa')]({'plain':!![]});(_0x18d86d[_0x4c8e80('0x7')][_0x4c8e80('0x5')]()==='in'||_0x18d86d[_0x4c8e80('0x7')][_0x4c8e80('0x5')]()===_0x4c8e80('0x22')&&!_0x18d86d[_0x4c8e80('0x30')]&&!_[_0x4c8e80('0x19')](_0x18d86d[_0x4c8e80('0x2a')]))&&_0x3c1a17[_0x4c8e80('0x17')]['findOne']({'where':{'id':_0x18d86d[_0x4c8e80('0x11')]}})[_0x4c8e80('0x2d')](function(_0x5671cf){const _0x6aad29=_0x4c8e80;_0x5671cf&&_0x5671cf[_0x6aad29('0x23')]({'lastMsgAt':_0x18d86d['createdAt'],'lastMsgDirection':_0x18d86d[_0x6aad29('0x7')]['toLowerCase']()});})[_0x4c8e80('0x15')](function(_0x495a58){const _0x4c6ba6=_0x4c8e80;console[_0x4c6ba6('0x8')](_0x495a58);});if(_0x18d86d[_0x4c8e80('0x7')]===_0x4c8e80('0x22')&&!_0x18d86d['secret']){let _0x13385f;_0x3c1a17['CmContact'][_0x4c8e80('0x1b')]()[_0x4c8e80('0x2d')](function(_0x1e5804){const _0x528343=_0x4c8e80;return _0x3c1a17[_0x528343('0x4')][_0x528343('0x2e')]({'where':{'id':_0x18d86d[_0x528343('0x1')]},'include':[{'model':_0x3c1a17[_0x528343('0x17')],'as':_0x528343('0x32'),'where':{'id':_0x18d86d[_0x528343('0x11')]},'limit':0x1,'include':[{'model':_0x3c1a17[_0x528343('0x12')],'as':_0x528343('0x26'),'attributes':_[_0x528343('0x2f')](_0x1e5804)}]}]});})['then'](function(_0x3d290b){const _0x311308=_0x4c8e80;_0x13385f=_0x3d290b[_0x311308('0xa')]({'plain':!![]});if(_0x13385f&&_0x13385f[_0x311308('0x2c')]){logger[_0x311308('0x31')]('OpenchannelMessage,\x20%s,\x20%s','afterCreate',util[_0x311308('0x3')](_0x311308('0x1d'),_0x18d86d['id'],_0x13385f[_0x311308('0x2c')]));_0x13385f['Interactions']&&_0x13385f[_0x311308('0x32')][_0x311308('0x16')]&&(_0x18d86d['Interaction']=_[_0x311308('0x25')](_0x13385f[_0x311308('0x32')][0x0],_0x311308('0x26')),_0x18d86d[_0x311308('0x26')]=_0x13385f[_0x311308('0x32')][0x0]['Contact']);const _0x3293d6={'method':_0x311308('0x24'),'uri':encodeURI(_0x13385f['replyUri']),'json':!![],'resolveWithFullResponse':!![]};switch(_0x3293d6[_0x311308('0xb')]){case _0x311308('0x1f'):_0x3293d6['qs']=_0x18d86d;break;case _0x311308('0x24'):_0x3293d6[_0x311308('0x9')]=_0x18d86d;break;}return rp(_0x3293d6)['then'](function(_0x464c1e){const _0x16cb8d=_0x311308;logger[_0x16cb8d('0x31')](_0x16cb8d('0x29'),_0x16cb8d('0x1c'),util[_0x16cb8d('0x3')](_0x16cb8d('0x20'),_0x18d86d['id'],_0x13385f['replyUri']));if(_0x464c1e['body']['threadId']&&_0x464c1e[_0x16cb8d('0x9')][_0x16cb8d('0xe')]!=_0x18d86d[_0x16cb8d('0x1e')][_0x16cb8d('0xe')])return _0x3c1a17[_0x16cb8d('0x17')][_0x16cb8d('0x23')]({'threadId':_0x464c1e[_0x16cb8d('0x9')]['threadId']},{'logging':!![],'where':{'id':_0x18d86d[_0x16cb8d('0x1e')]['id']}});else return;})[_0x311308('0x2d')](function(){return _0x538f15['update']({'read':!![]});})[_0x311308('0x15')](function(_0x21ad0b){const _0x104669=_0x311308;logger[_0x104669('0x8')]('OpenchannelMessage,\x20%s,\x20%s',_0x104669('0x1c'),util[_0x104669('0x2b')](_0x21ad0b,{'showHidden':![],'depth':null}));});}})['finally'](function(){return null;});}else return null;}},'charset':_0x4e24be('0x21'),'collate':_0x4e24be('0xc')});return _0x170201;}; \ No newline at end of file +const a489_0x1cc4=['OpenchannelInteraction','secret','info','inspect','Message\x20%d\x20forwarded\x20to\x20%s','finally','exports','error','catch','utf8mb4','api','utf8mb4_unicode_ci','threadId','omit','findOne','replyUri','then','Forwarding\x20message\x20%d\x20to\x20%s','out','models','createdAt','method','UserId','update','afterCreate','toLowerCase','request-promise-native','Interactions','isNil','Contact','CmContact','direction','keys','OpenchannelMessage,\x20%s,\x20%s','openchannel_messages','format','Interaction','FULLTEXT','get','length','OpenchannelInteractionId','POST','../../config/logger','util','body','GET'];(function(_0x21b033,_0x1cc467){const _0x55914c=function(_0x47cf9c){while(--_0x47cf9c){_0x21b033['push'](_0x21b033['shift']());}};_0x55914c(++_0x1cc467);}(a489_0x1cc4,0x1a0));const a489_0x5591=function(_0x21b033,_0x1cc467){_0x21b033=_0x21b033-0x0;let _0x55914c=a489_0x1cc4[_0x21b033];return _0x55914c;};const _0x1def5c=a489_0x5591;'use strict';const _=require('lodash'),util=require(_0x1def5c('0x29')),logger=require(_0x1def5c('0x28'))(_0x1def5c('0x8')),rp=require(_0x1def5c('0x18')),attributes=require('./openchannelMessage.attributes');module[_0x1def5c('0x4')]=function(_0x47cf9c){const _0x4a1e13=_0x1def5c,_0x204689=_0x47cf9c[_0x4a1e13('0x11')],_0x32601e=_0x47cf9c['define']('OpenchannelMessage',attributes,{'tableName':_0x4a1e13('0x20'),'paranoid':![],'indexes':[{'name':'fti_openchannel_messages','fields':['body'],'type':_0x4a1e13('0x23')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x268b08){const _0x3dfc13=_0x4a1e13,_0xbe1723=_0x268b08[_0x3dfc13('0x24')]({'plain':!![]});(_0xbe1723['direction'][_0x3dfc13('0x17')]()==='in'||_0xbe1723[_0x3dfc13('0x1d')][_0x3dfc13('0x17')]()===_0x3dfc13('0x10')&&!_0xbe1723['secret']&&!_[_0x3dfc13('0x1a')](_0xbe1723[_0x3dfc13('0x14')]))&&_0x204689[_0x3dfc13('0x2c')][_0x3dfc13('0xc')]({'where':{'id':_0xbe1723[_0x3dfc13('0x26')]}})[_0x3dfc13('0xe')](function(_0x3c89eb){const _0x3b9da7=_0x3dfc13;_0x3c89eb&&_0x3c89eb[_0x3b9da7('0x15')]({'lastMsgAt':_0xbe1723[_0x3b9da7('0x12')],'lastMsgDirection':_0xbe1723['direction'][_0x3b9da7('0x17')]()});})['catch'](function(_0x496add){const _0x54a29c=_0x3dfc13;console[_0x54a29c('0x5')](_0x496add);});if(_0xbe1723['direction']===_0x3dfc13('0x10')&&!_0xbe1723[_0x3dfc13('0x2d')]){let _0x365572;_0x204689[_0x3dfc13('0x1c')]['describe']()['then'](function(_0x1e999b){const _0x45c430=_0x3dfc13;return _0x204689['OpenchannelAccount'][_0x45c430('0xc')]({'where':{'id':_0xbe1723['OpenchannelAccountId']},'include':[{'model':_0x204689['OpenchannelInteraction'],'as':_0x45c430('0x19'),'where':{'id':_0xbe1723[_0x45c430('0x26')]},'limit':0x1,'include':[{'model':_0x204689['CmContact'],'as':_0x45c430('0x1b'),'attributes':_[_0x45c430('0x1e')](_0x1e999b)}]}]});})['then'](function(_0x1b74e7){const _0x26be5e=_0x3dfc13;_0x365572=_0x1b74e7[_0x26be5e('0x24')]({'plain':!![]});if(_0x365572&&_0x365572[_0x26be5e('0xd')]){logger[_0x26be5e('0x0')](_0x26be5e('0x1f'),'afterCreate',util[_0x26be5e('0x21')](_0x26be5e('0xf'),_0xbe1723['id'],_0x365572[_0x26be5e('0xd')]));_0x365572[_0x26be5e('0x19')]&&_0x365572['Interactions'][_0x26be5e('0x25')]&&(_0xbe1723['Interaction']=_[_0x26be5e('0xb')](_0x365572[_0x26be5e('0x19')][0x0],_0x26be5e('0x1b')),_0xbe1723[_0x26be5e('0x1b')]=_0x365572['Interactions'][0x0][_0x26be5e('0x1b')]);const _0x1bb1df={'method':_0x26be5e('0x27'),'uri':encodeURI(_0x365572[_0x26be5e('0xd')]),'json':!![],'resolveWithFullResponse':!![]};switch(_0x1bb1df[_0x26be5e('0x13')]){case _0x26be5e('0x2b'):_0x1bb1df['qs']=_0xbe1723;break;case _0x26be5e('0x27'):_0x1bb1df[_0x26be5e('0x2a')]=_0xbe1723;break;}return rp(_0x1bb1df)['then'](function(_0x8927d0){const _0x3353e0=_0x26be5e;logger['info'](_0x3353e0('0x1f'),_0x3353e0('0x16'),util[_0x3353e0('0x21')](_0x3353e0('0x2'),_0xbe1723['id'],_0x365572[_0x3353e0('0xd')]));if(_0x8927d0[_0x3353e0('0x2a')][_0x3353e0('0xa')]&&_0x8927d0[_0x3353e0('0x2a')][_0x3353e0('0xa')]!=_0xbe1723[_0x3353e0('0x22')][_0x3353e0('0xa')])return _0x204689[_0x3353e0('0x2c')][_0x3353e0('0x15')]({'threadId':_0x8927d0[_0x3353e0('0x2a')][_0x3353e0('0xa')]},{'logging':!![],'where':{'id':_0xbe1723[_0x3353e0('0x22')]['id']}});else return;})[_0x26be5e('0xe')](function(){const _0x3434bd=_0x26be5e;return _0x268b08[_0x3434bd('0x15')]({'read':!![]});})[_0x26be5e('0x6')](function(_0x3e6223){const _0xe6dd8d=_0x26be5e;logger['error'](_0xe6dd8d('0x1f'),_0xe6dd8d('0x16'),util[_0xe6dd8d('0x1')](_0x3e6223,{'showHidden':![],'depth':null}));});}})[_0x3dfc13('0x3')](function(){return null;});}else return null;}},'charset':_0x4a1e13('0x7'),'collate':_0x4a1e13('0x9')});return _0x32601e;}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.rpc.js b/server/api/openchannelMessage/openchannelMessage.rpc.js index 05a8f3b..030de31 100644 --- a/server/api/openchannelMessage/openchannelMessage.rpc.js +++ b/server/api/openchannelMessage/openchannelMessage.rpc.js @@ -1 +1 @@ -const a490_0x3618=['OpenchannelMessage','CreateOpenchannelMessage','stringify','debug','error','../../rediscache','then','../../config/logger','./openchannelMessage.socket','catch','../../mysqldb','raw','options','rpc','info','message','register'];(function(_0x5c1bd3,_0x3618b4){const _0x3d4414=function(_0x3b3fff){while(--_0x3b3fff){_0x5c1bd3['push'](_0x5c1bd3['shift']());}};_0x3d4414(++_0x3618b4);}(a490_0x3618,0x69));const a490_0x3d44=function(_0x5c1bd3,_0x3618b4){_0x5c1bd3=_0x5c1bd3-0x0;let _0x3d4414=a490_0x3618[_0x5c1bd3];return _0x3d4414;};const _0x266e93=a490_0x3d44;'use strict';const db=require(_0x266e93('0x7'))['db'],logger=require(_0x266e93('0x4'))(_0x266e93('0xa')),{getSocket}=require(_0x266e93('0x2')),socket=getSocket();require(_0x266e93('0x5'))[_0x266e93('0xd')](socket),exports[_0x266e93('0xf')]=function(_0x3b3fff){const _0x111803=this;return new Promise(function(_0x31f5e1,_0x463b91){const _0x359587=a490_0x3d44;return db[_0x359587('0xe')]['create'](_0x3b3fff['body'],{'raw':_0x3b3fff[_0x359587('0x9')]?_0x3b3fff[_0x359587('0x9')][_0x359587('0x8')]===undefined?!![]:![]:!![]})[_0x359587('0x3')](function(_0x45ac10){const _0x5dde86=_0x359587;logger[_0x5dde86('0xb')](_0x5dde86('0xf'),_0x3b3fff),logger[_0x5dde86('0x0')](_0x5dde86('0xf'),_0x3b3fff,JSON[_0x5dde86('0x10')](_0x45ac10)),_0x31f5e1(_0x45ac10);})[_0x359587('0x6')](function(_0x269097){const _0x493e58=_0x359587;logger[_0x493e58('0x1')]('CreateOpenchannelMessage',_0x269097[_0x493e58('0xc')],_0x3b3fff),_0x463b91(_0x111803['error'](0x1f4,_0x269097[_0x493e58('0xc')]));});});}; \ No newline at end of file +const a490_0x8c9d=['../../rediscache','message','raw','debug','CreateOpenchannelMessage','catch','error','../../config/logger','options','./openchannelMessage.socket','register','OpenchannelMessage','then','info','create','rpc'];(function(_0xaab037,_0x8c9d52){const _0x2ccf00=function(_0x563077){while(--_0x563077){_0xaab037['push'](_0xaab037['shift']());}};_0x2ccf00(++_0x8c9d52);}(a490_0x8c9d,0xbc));const a490_0x2ccf=function(_0xaab037,_0x8c9d52){_0xaab037=_0xaab037-0x0;let _0x2ccf00=a490_0x8c9d[_0xaab037];return _0x2ccf00;};const _0x258b10=a490_0x2ccf;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x258b10('0xb'))(_0x258b10('0x3')),{getSocket}=require(_0x258b10('0x4')),socket=getSocket();require(_0x258b10('0xd'))[_0x258b10('0xe')](socket),exports[_0x258b10('0x8')]=function(_0x563077){const _0x1302c9=this;return new Promise(function(_0x6399cb,_0x4ed3c8){const _0x159ff8=a490_0x2ccf;return db[_0x159ff8('0xf')][_0x159ff8('0x2')](_0x563077['body'],{'raw':_0x563077[_0x159ff8('0xc')]?_0x563077[_0x159ff8('0xc')][_0x159ff8('0x6')]===undefined?!![]:![]:!![]})[_0x159ff8('0x0')](function(_0x915c07){const _0x3af94c=_0x159ff8;logger[_0x3af94c('0x1')](_0x3af94c('0x8'),_0x563077),logger[_0x3af94c('0x7')](_0x3af94c('0x8'),_0x563077,JSON['stringify'](_0x915c07)),_0x6399cb(_0x915c07);})[_0x159ff8('0x9')](function(_0x5bc3fb){const _0x171b65=_0x159ff8;logger[_0x171b65('0xa')](_0x171b65('0x8'),_0x5bc3fb[_0x171b65('0x5')],_0x563077),_0x4ed3c8(_0x1302c9[_0x171b65('0xa')](0x1f4,_0x5bc3fb[_0x171b65('0x5')]));});});}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.socket.js b/server/api/openchannelMessage/openchannelMessage.socket.js index 6ba9bb0..277504b 100644 --- a/server/api/openchannelMessage/openchannelMessage.socket.js +++ b/server/api/openchannelMessage/openchannelMessage.socket.js @@ -1 +1 @@ -const a491_0x360f=['./openchannelMessage.events','length','remove','register'];(function(_0x39a4d1,_0x360ff0){const _0x4e352a=function(_0x18865c){while(--_0x18865c){_0x39a4d1['push'](_0x39a4d1['shift']());}};_0x4e352a(++_0x360ff0);}(a491_0x360f,0x1e5));const a491_0x4e35=function(_0x39a4d1,_0x360ff0){_0x39a4d1=_0x39a4d1-0x0;let _0x4e352a=a491_0x360f[_0x39a4d1];return _0x4e352a;};const _0x23c1ff=a491_0x4e35;'use strict';const OpenchannelMessageEvents=require(_0x23c1ff('0x3')),events=['save',_0x23c1ff('0x1'),'update'];function createListener(_0x18865c,_0x187400){return function(_0x1ffb8e){_0x187400['emit'](_0x18865c,_0x1ffb8e);};}exports[_0x23c1ff('0x2')]=function(_0xa0def6){const _0x2036a0=_0x23c1ff;for(let _0x2b4861=0x0,_0xeb60f5=events[_0x2036a0('0x0')];_0x2b4861<_0xeb60f5;_0x2b4861++){const _0x491d76=events[_0x2b4861],_0x344927=createListener('openchannelMessage:'+_0x491d76,_0xa0def6);OpenchannelMessageEvents['on'](_0x491d76,_0x344927);}}; \ No newline at end of file +const a491_0x229b=['./openchannelMessage.events','update','length','save','emit','openchannelMessage:','remove'];(function(_0x347cca,_0x229b5c){const _0x419448=function(_0x10dc18){while(--_0x10dc18){_0x347cca['push'](_0x347cca['shift']());}};_0x419448(++_0x229b5c);}(a491_0x229b,0xfa));const a491_0x4194=function(_0x347cca,_0x229b5c){_0x347cca=_0x347cca-0x0;let _0x419448=a491_0x229b[_0x347cca];return _0x419448;};const _0x51353e=a491_0x4194;'use strict';const OpenchannelMessageEvents=require(_0x51353e('0x2')),events=[_0x51353e('0x5'),_0x51353e('0x1'),_0x51353e('0x3')];function createListener(_0x10dc18,_0x51adf0){return function(_0x78823c){const _0x369f2c=a491_0x4194;_0x51adf0[_0x369f2c('0x6')](_0x10dc18,_0x78823c);};}exports['register']=function(_0x488497){const _0x190f2a=_0x51353e;for(let _0x5516b6=0x0,_0x26e1f7=events[_0x190f2a('0x4')];_0x5516b6<_0x26e1f7;_0x5516b6++){const _0x1856f6=events[_0x5516b6],_0x115797=createListener(_0x190f2a('0x0')+_0x1856f6,_0x488497);OpenchannelMessageEvents['on'](_0x1856f6,_0x115797);}}; \ No newline at end of file diff --git a/server/api/openchannelQueue/index.js b/server/api/openchannelQueue/index.js index de07ce7..d50c1ee 100644 --- a/server/api/openchannelQueue/index.js +++ b/server/api/openchannelQueue/index.js @@ -1 +1 @@ -const a492_0x29ac=['./openchannelQueue.controller','put','get','show','post','removeTeams','/:id/users','destroy','create','isAuthenticated','/:id','exports','../../components/auth/service','express','/describe','getMembers','update','getAgents','removeAgents','delete','/:id/members','getTeams','addTeams','index','/:id/teams'];(function(_0x4a866d,_0x29ac05){const _0x2d7f41=function(_0x2b826e){while(--_0x2b826e){_0x4a866d['push'](_0x4a866d['shift']());}};_0x2d7f41(++_0x29ac05);}(a492_0x29ac,0x98));const a492_0x2d7f=function(_0x4a866d,_0x29ac05){_0x4a866d=_0x4a866d-0x0;let _0x2d7f41=a492_0x29ac[_0x4a866d];return _0x2d7f41;};const _0x29d49e=a492_0x2d7f;'use strict';const express=require(_0x29d49e('0xb')),router=express['Router'](),auth=require(_0x29d49e('0xa')),controller=require(_0x29d49e('0x17'));router['get']('/',auth[_0x29d49e('0x7')](),controller[_0x29d49e('0x15')]),router[_0x29d49e('0x0')](_0x29d49e('0xc'),auth[_0x29d49e('0x7')](),controller['describe']),router[_0x29d49e('0x0')]('/:id',auth[_0x29d49e('0x7')](),controller[_0x29d49e('0x1')]),router[_0x29d49e('0x0')](_0x29d49e('0x12'),auth['isAuthenticated'](),controller[_0x29d49e('0xd')]),router[_0x29d49e('0x0')]('/:id/teams',auth[_0x29d49e('0x7')](),controller[_0x29d49e('0x13')]),router['get'](_0x29d49e('0x4'),auth[_0x29d49e('0x7')](),controller[_0x29d49e('0xf')]),router[_0x29d49e('0x2')]('/',auth[_0x29d49e('0x7')](),controller[_0x29d49e('0x6')]),router['post'](_0x29d49e('0x16'),auth[_0x29d49e('0x7')](),controller[_0x29d49e('0x14')]),router[_0x29d49e('0x2')](_0x29d49e('0x4'),auth['isAuthenticated'](),controller['addAgents']),router[_0x29d49e('0x18')](_0x29d49e('0x8'),auth['isAuthenticated'](),controller[_0x29d49e('0xe')]),router['delete'](_0x29d49e('0x8'),auth['isAuthenticated'](),controller[_0x29d49e('0x5')]),router['delete'](_0x29d49e('0x16'),auth['isAuthenticated'](),controller[_0x29d49e('0x3')]),router[_0x29d49e('0x11')](_0x29d49e('0x4'),auth[_0x29d49e('0x7')](),controller[_0x29d49e('0x10')]),module[_0x29d49e('0x9')]=router; \ No newline at end of file +const a492_0x36c5=['update','put','../../components/auth/service','removeTeams','isAuthenticated','removeAgents','/:id/teams','./openchannelQueue.controller','/describe','destroy','/:id/users','addTeams','post','getTeams','/:id/members','Router','/:id','create','delete','get'];(function(_0x3e6285,_0x36c5de){const _0x10d600=function(_0x59b810){while(--_0x59b810){_0x3e6285['push'](_0x3e6285['shift']());}};_0x10d600(++_0x36c5de);}(a492_0x36c5,0xf3));const a492_0x10d6=function(_0x3e6285,_0x36c5de){_0x3e6285=_0x3e6285-0x0;let _0x10d600=a492_0x36c5[_0x3e6285];return _0x10d600;};const _0x31e45e=a492_0x10d6;'use strict';const express=require('express'),router=express[_0x31e45e('0xc')](),auth=require(_0x31e45e('0x13')),controller=require(_0x31e45e('0x4'));router['get']('/',auth[_0x31e45e('0x1')](),controller['index']),router[_0x31e45e('0x10')](_0x31e45e('0x5'),auth['isAuthenticated'](),controller['describe']),router[_0x31e45e('0x10')](_0x31e45e('0xd'),auth['isAuthenticated'](),controller['show']),router[_0x31e45e('0x10')](_0x31e45e('0xb'),auth['isAuthenticated'](),controller['getMembers']),router['get'](_0x31e45e('0x3'),auth[_0x31e45e('0x1')](),controller[_0x31e45e('0xa')]),router[_0x31e45e('0x10')](_0x31e45e('0x7'),auth[_0x31e45e('0x1')](),controller['getAgents']),router[_0x31e45e('0x9')]('/',auth['isAuthenticated'](),controller[_0x31e45e('0xe')]),router['post'](_0x31e45e('0x3'),auth[_0x31e45e('0x1')](),controller[_0x31e45e('0x8')]),router[_0x31e45e('0x9')](_0x31e45e('0x7'),auth[_0x31e45e('0x1')](),controller['addAgents']),router[_0x31e45e('0x12')](_0x31e45e('0xd'),auth[_0x31e45e('0x1')](),controller[_0x31e45e('0x11')]),router['delete'](_0x31e45e('0xd'),auth['isAuthenticated'](),controller[_0x31e45e('0x6')]),router[_0x31e45e('0xf')](_0x31e45e('0x3'),auth[_0x31e45e('0x1')](),controller[_0x31e45e('0x0')]),router[_0x31e45e('0xf')]('/:id/users',auth['isAuthenticated'](),controller[_0x31e45e('0x2')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.attributes.js b/server/api/openchannelQueue/openchannelQueue.attributes.js index 061e8d3..cf30eeb 100644 --- a/server/api/openchannelQueue/openchannelQueue.attributes.js +++ b/server/api/openchannelQueue/openchannelQueue.attributes.js @@ -1 +1 @@ -const a493_0x4ac2=['rrmemory','name','INTEGER','ENUM','sequelize','roundrobin','STRING'];(function(_0x5a7e1f,_0x4ac2c3){const _0x5ed5d8=function(_0x3c40fc){while(--_0x3c40fc){_0x5a7e1f['push'](_0x5a7e1f['shift']());}};_0x5ed5d8(++_0x4ac2c3);}(a493_0x4ac2,0x6b));const a493_0x5ed5=function(_0x5a7e1f,_0x4ac2c3){_0x5a7e1f=_0x5a7e1f-0x0;let _0x5ed5d8=a493_0x4ac2[_0x5a7e1f];return _0x5ed5d8;};const _0x44b198=a493_0x5ed5;'use strict';const Sequelize=require(_0x44b198('0x2'));module['exports']={'name':{'type':Sequelize[_0x44b198('0x4')],'unique':_0x44b198('0x6'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x44b198('0x4')]},'timeout':{'type':Sequelize[_0x44b198('0x0')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x44b198('0x1')](_0x44b198('0x5'),'beepall',_0x44b198('0x3'))}}; \ No newline at end of file +const a493_0x43b1=['name','roundrobin','beepall','rrmemory','ENUM','INTEGER','STRING'];(function(_0x4e7b03,_0x43b1e2){const _0x27dbb9=function(_0x4b3abb){while(--_0x4b3abb){_0x4e7b03['push'](_0x4e7b03['shift']());}};_0x27dbb9(++_0x43b1e2);}(a493_0x43b1,0x183));const a493_0x27db=function(_0x4e7b03,_0x43b1e2){_0x4e7b03=_0x4e7b03-0x0;let _0x27dbb9=a493_0x43b1[_0x4e7b03];return _0x27dbb9;};const _0x33f343=a493_0x27db;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x33f343('0x4')],'unique':_0x33f343('0x5'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x33f343('0x4')]},'timeout':{'type':Sequelize[_0x33f343('0x3')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x33f343('0x2')](_0x33f343('0x1'),_0x33f343('0x0'),_0x33f343('0x6'))}}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.controller.js b/server/api/openchannelQueue/openchannelQueue.controller.js index 80066d1..0f490b3 100644 --- a/server/api/openchannelQueue/openchannelQueue.controller.js +++ b/server/api/openchannelQueue/openchannelQueue.controller.js @@ -1 +1 @@ -const a494_0x543b=['sendStatus','keys','pick','OpenchannelQueueId','compact','like','squel','role','lodash','getAgents','end','intersection','body','model','field','OpenchannelQueue','query','online','flatMap','error','destroy','../../components/parsers/qs','every','ids','create','findOne','count','../../rediscache','createdAt','length','select','union','isArray','filters','options','UserProfileResource','all','fields','params','getTeams','undefined','autoAssociation','forEach','user','user_has_teams','where','order','addAgents','%s/%s','attributes','catch','OpenchannelQueueId\x20=\x20?','../../config/logger','rows','Agents','userOpenchannelQueue:remove','transaction','set','toString','Unable\x20to\x20retrieve\x20the\x20current\x20user','clone','stack','describe','emit','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','SIP','Content-Range','isEmpty','UserOpenchannelQueue','then','removeTeams','User','map','QueryTypes','interface','nolimit','type','get','updatedAt','filter','OpenchannelQueues','includes','sequelize','userProfileId','voicePause','VIRTUAL','show','findAll','include','key','rawAttributes','sort','status','includeAll','limit','omit','format','join','../../mysqldb','addTeams','merge','update','UserProfileSection','./openchannelQueue.socket','Team','userOpenchannelQueue:save','findOrCreate','json','offset','TeamId','index','fieldName','tq.TeamId','name','send'];(function(_0x26152b,_0x543b87){const _0x200824=function(_0x5b5190){while(--_0x5b5190){_0x26152b['push'](_0x26152b['shift']());}};_0x200824(++_0x543b87);}(a494_0x543b,0x185));const a494_0x2008=function(_0x26152b,_0x543b87){_0x26152b=_0x26152b-0x0;let _0x200824=a494_0x543b[_0x26152b];return _0x200824;};const _0x2c9c45=a494_0x2008;'use strict';const util=require('util'),_=require(_0x2c9c45('0x4f')),squel=require(_0x2c9c45('0x4d')),qs=require(_0x2c9c45('0x5c')),logger=require(_0x2c9c45('0x8'))('api'),{getSocket}=require(_0x2c9c45('0x62')),socket=getSocket(),db=require(_0x2c9c45('0x36'))['db'],{Op}=require(_0x2c9c45('0x26'));require(_0x2c9c45('0x3b'))['register'](socket);function respondWithStatusCode(_0x5b5190,_0x331c39){return _0x331c39=_0x331c39||0xcc,function(_0x539ca4){const _0x2108b8=a494_0x2008;if(_0x539ca4)return _0x5b5190[_0x2108b8('0x47')](_0x331c39);return _0x5b5190[_0x2108b8('0x30')](_0x331c39)[_0x2108b8('0x51')]();};}function respondWithResult(_0x2163f8,_0x49db02){return _0x49db02=_0x49db02||0xc8,function(_0x140d82){const _0x28820e=a494_0x2008;if(_0x140d82)return _0x2163f8[_0x28820e('0x30')](_0x49db02)[_0x28820e('0x3f')](_0x140d82);};}function respondWithFilteredResult(_0x510173,_0x461818){return function(_0x124301){const _0x3c3f9c=a494_0x2008;if(_0x124301){const _0x4b0c40=_0x124301[_0x3c3f9c('0x61')],_0x42fe49=_0x461818[_0x3c3f9c('0x40')];let _0x54f763=_0x461818['offset']+_0x461818[_0x3c3f9c('0x32')],_0x34c4fb;return _0x54f763>=_0x4b0c40?(_0x54f763=_0x4b0c40,_0x34c4fb=0xc8):_0x34c4fb=0xce,_0x510173[_0x3c3f9c('0x30')](_0x34c4fb),_0x510173[_0x3c3f9c('0xd')](_0x3c3f9c('0x16'),_0x42fe49+'-'+_0x54f763+'/'+_0x4b0c40)[_0x3c3f9c('0x3f')](_0x124301);}return null;};}function saveUpdates(_0x48121c){return function(_0x247984){const _0x2dd202=a494_0x2008;if(_0x247984)return _0x247984[_0x2dd202('0x39')](_0x48121c)[_0x2dd202('0x19')](function(_0x19104e){return _0x19104e;});return null;};}function removeEntity(_0x26f996){return function(_0x19e411){const _0x44baf9=a494_0x2008;if(_0x19e411)return _0x19e411[_0x44baf9('0x5b')]()[_0x44baf9('0x19')](function(){const _0x53aec5=_0x44baf9,_0xadd2ff=_0x19e411[_0x53aec5('0x21')]({'plain':!![]}),_0x51b8c0='OpenchannelQueues';return db['UserProfileResource'][_0x53aec5('0x5b')]({'where':{'type':_0x51b8c0,'resourceId':_0xadd2ff['id']}})['then'](function(){return _0x19e411;});})[_0x44baf9('0x19')](function(){const _0x3eb1cf=_0x44baf9;_0x26f996['status'](0xcc)[_0x3eb1cf('0x51')]();});};}function handleEntityNotFound(_0x5943a8){return function(_0x162b3b){return!_0x162b3b&&_0x5943a8['sendStatus'](0x194),_0x162b3b;};}function handleError(_0xacc33d,_0xccd0bd){return _0xccd0bd=_0xccd0bd||0x1f4,function(_0x4ae593){const _0x197361=a494_0x2008;logger[_0x197361('0x5a')](_0x4ae593[_0x197361('0x11')]),_0x4ae593['name']&&delete _0x4ae593[_0x197361('0x45')],_0xacc33d['status'](_0xccd0bd)[_0x197361('0x46')](_0x4ae593);};}exports[_0x2c9c45('0x42')]=function(_0x4c5cce,_0x5e9a17){const _0x459965=_0x2c9c45;let _0x442de5={};const _0x427421={},_0x548617={'count':0x0,'rows':[]},_0x5a9242=_[_0x459965('0x1c')](db[_0x459965('0x56')]['rawAttributes'],function(_0x1b1fb8){const _0x1666ff=_0x459965;return{'name':_0x1b1fb8[_0x1666ff('0x43')],'type':_0x1b1fb8[_0x1666ff('0x20')][_0x1666ff('0x2d')]};});_0x427421[_0x459965('0x54')]=_[_0x459965('0x1c')](_0x5a9242,_0x459965('0x45')),_0x427421[_0x459965('0x57')]=_[_0x459965('0x48')](_0x4c5cce[_0x459965('0x57')]),_0x427421[_0x459965('0x68')]=_[_0x459965('0x52')](_0x427421['model'],_0x427421[_0x459965('0x57')]),_0x442de5[_0x459965('0x5')]=_[_0x459965('0x52')](_0x427421[_0x459965('0x54')],qs[_0x459965('0x6c')](_0x4c5cce['query'][_0x459965('0x6c')])),_0x442de5[_0x459965('0x5')]=_0x442de5[_0x459965('0x5')][_0x459965('0x64')]?_0x442de5['attributes']:_0x427421[_0x459965('0x54')];typeof _0x4c5cce[_0x459965('0x57')][_0x459965('0x1f')]===_0x459965('0x6f')&&(_0x442de5[_0x459965('0x32')]=qs['limit'](_0x4c5cce['query'][_0x459965('0x32')]),_0x442de5['offset']=qs['offset'](_0x4c5cce[_0x459965('0x57')]['offset']));_0x442de5[_0x459965('0x2')]=qs['sort'](_0x4c5cce[_0x459965('0x57')]['sort']),_0x442de5[_0x459965('0x1')]=qs[_0x459965('0x68')](_[_0x459965('0x49')](_0x4c5cce['query'],_0x427421['filters']),_0x5a9242);_0x4c5cce[_0x459965('0x57')]['filter']&&(_0x442de5[_0x459965('0x1')]=_[_0x459965('0x38')](_0x442de5[_0x459965('0x1')],{[Op['or']]:_[_0x459965('0x1c')](_0x5a9242,function(_0x2db3e6){const _0x271d62=_0x459965;if(_0x2db3e6[_0x271d62('0x20')]!==_0x271d62('0x29')){const _0x4e60ee={};return _0x4e60ee[_0x2db3e6[_0x271d62('0x45')]]={[Op[_0x271d62('0x4c')]]:'%'+_0x4c5cce[_0x271d62('0x57')][_0x271d62('0x23')]+'%'},_0x4e60ee;}})}));_0x442de5=_['merge']({},_0x442de5,_0x4c5cce[_0x459965('0x69')]);const _0x2d5ec3={'where':_0x442de5['where']};return db[_0x459965('0x56')]['count'](_0x2d5ec3)[_0x459965('0x19')](function(_0x19fb5f){const _0x53ff2d=_0x459965;return _0x548617[_0x53ff2d('0x61')]=_0x19fb5f,_0x4c5cce[_0x53ff2d('0x57')][_0x53ff2d('0x31')]&&(_0x442de5['include']=[{'all':!![]}]),db[_0x53ff2d('0x56')][_0x53ff2d('0x2b')](_0x442de5);})[_0x459965('0x19')](function(_0x57445a){const _0x2bb627=_0x459965;return _0x548617[_0x2bb627('0x9')]=_0x57445a,_0x548617;})['then'](respondWithFilteredResult(_0x5e9a17,_0x442de5))[_0x459965('0x6')](handleError(_0x5e9a17,null));},exports[_0x2c9c45('0x2a')]=function(_0x2d010a,_0x462800){const _0x555fcc=_0x2c9c45;let _0x484fd6={'raw':!![],'where':{'id':_0x2d010a[_0x555fcc('0x6d')]['id']}};const _0x333fba={};return _0x333fba[_0x555fcc('0x54')]=_[_0x555fcc('0x48')](db['OpenchannelQueue'][_0x555fcc('0x2e')]),_0x333fba[_0x555fcc('0x57')]=_['keys'](_0x2d010a[_0x555fcc('0x57')]),_0x333fba[_0x555fcc('0x68')]=_[_0x555fcc('0x52')](_0x333fba['model'],_0x333fba['query']),_0x484fd6['attributes']=_['intersection'](_0x333fba[_0x555fcc('0x54')],qs[_0x555fcc('0x6c')](_0x2d010a[_0x555fcc('0x57')][_0x555fcc('0x6c')])),_0x484fd6[_0x555fcc('0x5')]=_0x484fd6['attributes'][_0x555fcc('0x64')]?_0x484fd6['attributes']:_0x333fba[_0x555fcc('0x54')],_0x2d010a[_0x555fcc('0x57')][_0x555fcc('0x31')]&&(_0x484fd6[_0x555fcc('0x2c')]=[{'all':!![]}]),_0x484fd6=_[_0x555fcc('0x38')]({},_0x484fd6,_0x2d010a[_0x555fcc('0x69')]),db[_0x555fcc('0x56')]['findOne'](_0x484fd6)[_0x555fcc('0x19')](handleEntityNotFound(_0x462800,null))['then'](respondWithResult(_0x462800,null))[_0x555fcc('0x6')](handleError(_0x462800,null));},exports[_0x2c9c45('0x5f')]=function(_0x2cc089,_0x4e1370){const _0x41a79c=_0x2c9c45;return db[_0x41a79c('0x56')][_0x41a79c('0x5f')](_0x2cc089[_0x41a79c('0x53')],{})[_0x41a79c('0x19')](function(_0x4ea75f){const _0x3c216e=_0x41a79c,_0x1c1006=_0x2cc089[_0x3c216e('0x72')][_0x3c216e('0x21')]({'plain':!![]});if(!_0x1c1006)throw new Error(_0x3c216e('0xf'));if(_0x1c1006[_0x3c216e('0x4e')]===_0x3c216e('0x72')){const _0x4b4a61=_0x4ea75f[_0x3c216e('0x21')]({'plain':!![]}),_0x149ed2=_0x3c216e('0x24');return db[_0x3c216e('0x3a')][_0x3c216e('0x60')]({'where':{'name':_0x149ed2,'userProfileId':_0x1c1006[_0x3c216e('0x27')]},'raw':!![]})[_0x3c216e('0x19')](function(_0x485ed5){const _0x1490a5=_0x3c216e;return _0x485ed5&&_0x485ed5[_0x1490a5('0x70')]===0x0?db[_0x1490a5('0x6a')]['create']({'name':_0x4b4a61['name'],'resourceId':_0x4b4a61['id'],'type':_0x485ed5['name'],'sectionId':_0x485ed5['id']},{})['then'](function(){return _0x4ea75f;}):_0x4ea75f;})[_0x3c216e('0x6')](function(_0xe74e95){const _0x319c43=_0x3c216e;logger[_0x319c43('0x5a')](_0x319c43('0x14'),_0xe74e95);throw _0xe74e95;});}return _0x4ea75f;})[_0x41a79c('0x19')](respondWithResult(_0x4e1370,0xc9))[_0x41a79c('0x6')](handleError(_0x4e1370,null));},exports['update']=function(_0x3c39f3,_0x5b56ef){const _0x20442f=_0x2c9c45;return _0x3c39f3[_0x20442f('0x53')]['id']&&delete _0x3c39f3[_0x20442f('0x53')]['id'],db[_0x20442f('0x56')][_0x20442f('0x60')]({'where':{'id':_0x3c39f3['params']['id']}})[_0x20442f('0x19')](handleEntityNotFound(_0x5b56ef,null))[_0x20442f('0x19')](saveUpdates(_0x3c39f3[_0x20442f('0x53')],null))[_0x20442f('0x19')](respondWithResult(_0x5b56ef,null))[_0x20442f('0x6')](handleError(_0x5b56ef,null));},exports[_0x2c9c45('0x5b')]=function(_0x1b56f4,_0x39de22){const _0x17dae4=_0x2c9c45;return db[_0x17dae4('0x56')]['findOne']({'where':{'id':_0x1b56f4[_0x17dae4('0x6d')]['id']}})[_0x17dae4('0x19')](handleEntityNotFound(_0x39de22,null))[_0x17dae4('0x19')](removeEntity(_0x39de22,null))['catch'](handleError(_0x39de22,null));},exports[_0x2c9c45('0x12')]=function(_0xdca4be,_0x3d24d4){const _0x4f9f74=_0x2c9c45;return db[_0x4f9f74('0x56')]['describe']()['then'](respondWithResult(_0x3d24d4,null))[_0x4f9f74('0x6')](handleError(_0x3d24d4,null));},exports['getMembers']=function(_0x734b04,_0x375bae){const _0x2a94ce=_0x2c9c45;let _0x21c3b4={'raw':!![],'where':{}};const _0x53d3f5={};let _0x347151;return db['OpenchannelQueue']['findOne']({'where':{'id':_0x734b04[_0x2a94ce('0x6d')]['id']}})['then'](handleEntityNotFound(_0x375bae,null))[_0x2a94ce('0x19')](function(_0x430174){const _0x11d1cb=_0x2a94ce;if(_0x430174)return _0x347151=_0x430174[_0x11d1cb('0x21')]({'plain':!![]}),_0x53d3f5['model']=_[_0x11d1cb('0x48')](db[_0x11d1cb('0x18')]['rawAttributes']),_0x53d3f5[_0x11d1cb('0x57')]=_[_0x11d1cb('0x48')](_0x734b04['query']),_0x53d3f5[_0x11d1cb('0x68')]=_['intersection'](_0x53d3f5[_0x11d1cb('0x54')],_0x53d3f5[_0x11d1cb('0x57')]),_0x21c3b4[_0x11d1cb('0x5')]=_[_0x11d1cb('0x52')](_0x53d3f5[_0x11d1cb('0x54')],qs[_0x11d1cb('0x6c')](_0x734b04[_0x11d1cb('0x57')][_0x11d1cb('0x6c')])),_0x21c3b4[_0x11d1cb('0x5')]=_0x21c3b4[_0x11d1cb('0x5')][_0x11d1cb('0x64')]?_0x21c3b4['attributes']:_0x53d3f5['model'],typeof _0x734b04[_0x11d1cb('0x57')]['nolimit']===_0x11d1cb('0x6f')&&(_0x21c3b4[_0x11d1cb('0x32')]=qs[_0x11d1cb('0x32')](_0x734b04[_0x11d1cb('0x57')][_0x11d1cb('0x32')]),_0x21c3b4[_0x11d1cb('0x40')]=qs[_0x11d1cb('0x40')](_0x734b04[_0x11d1cb('0x57')]['offset'])),_0x21c3b4[_0x11d1cb('0x2')]=qs[_0x11d1cb('0x2f')](_0x734b04['query'][_0x11d1cb('0x2f')]),_0x21c3b4[_0x11d1cb('0x1')]=qs[_0x11d1cb('0x68')](_[_0x11d1cb('0x49')](_0x734b04[_0x11d1cb('0x57')],_0x53d3f5[_0x11d1cb('0x68')])),_0x21c3b4['where'][_0x11d1cb('0x4a')]=_0x430174['id'],_0x734b04[_0x11d1cb('0x57')]['filter']&&(_0x21c3b4[_0x11d1cb('0x1')]=_[_0x11d1cb('0x38')](_0x21c3b4['where'],{[Op['or']]:_[_0x11d1cb('0x1c')](_0x21c3b4[_0x11d1cb('0x5')],function(_0x681347){const _0x15a324={};return _0x15a324[_0x681347]={[Op['like']]:'%'+_0x734b04['query']['filter']+'%'},_0x15a324;})})),_0x21c3b4=_['merge']({},_0x21c3b4,_0x734b04[_0x11d1cb('0x69')]),db[_0x11d1cb('0x18')][_0x11d1cb('0x2b')](_0x21c3b4);})[_0x2a94ce('0x19')](function(_0x1fb880){const _0x5c3c14=_0x2a94ce;if(_0x1fb880)return db['User']['findAndCountAll']({'where':{'id':_[_0x5c3c14('0x1c')](_0x1fb880,'UserId'),'role':'agent'},'attributes':['id','name','openchannelPause',_0x5c3c14('0x22'),'createdAt']});})[_0x2a94ce('0x19')](function(_0x585ec2){const _0x3b34db=_0x2a94ce;return _0x585ec2?{'count':_0x585ec2[_0x3b34db('0x61')],'rows':_[_0x3b34db('0x1c')](_0x585ec2[_0x3b34db('0x9')],function(_0x5f0872){const _0x54d802=_0x3b34db;return{'membername':_0x5f0872[_0x54d802('0x45')],'UserId':_0x5f0872['id'],'queue_name':_0x347151['name'],'OpenchannelQueueId':_0x347151['id'],'interface':util[_0x54d802('0x34')](_0x54d802('0x4'),_0x54d802('0x15'),_0x5f0872[_0x54d802('0x45')]),'penalty':0x0,'paused':_0x5f0872['openchannelPause'],'createdAt':_0x5f0872[_0x54d802('0x63')],'updatedAt':_0x5f0872[_0x54d802('0x22')]};})}:{'count':0x0,'rows':[]};})[_0x2a94ce('0x19')](respondWithFilteredResult(_0x375bae,_0x21c3b4))[_0x2a94ce('0x6')](handleError(_0x375bae,null));},exports['getTeams']=function(_0x512e0d,_0x2e0f53){const _0x2e299e=_0x2c9c45;let _0x2a031c={};const _0x3bcc3d={};let _0x35b18d,_0x3e9f7a;return db[_0x2e299e('0x56')][_0x2e299e('0x60')]({'where':{'id':_0x512e0d[_0x2e299e('0x6d')]['id']}})[_0x2e299e('0x19')](handleEntityNotFound(_0x2e0f53,null))[_0x2e299e('0x19')](function(_0x29b746){const _0x380073=_0x2e299e;if(_0x29b746)return _0x35b18d=_0x29b746,_0x3bcc3d[_0x380073('0x54')]=_[_0x380073('0x48')](db[_0x380073('0x3c')][_0x380073('0x2e')]),_0x3bcc3d[_0x380073('0x57')]=_['keys'](_0x512e0d[_0x380073('0x57')]),_0x3bcc3d['filters']=_[_0x380073('0x52')](_0x3bcc3d[_0x380073('0x54')],_0x3bcc3d[_0x380073('0x57')]),_0x2a031c['attributes']=_[_0x380073('0x52')](_0x3bcc3d['model'],qs['fields'](_0x512e0d[_0x380073('0x57')][_0x380073('0x6c')])),_0x2a031c[_0x380073('0x5')]=_0x2a031c[_0x380073('0x5')][_0x380073('0x64')]?_0x2a031c[_0x380073('0x5')]:_0x3bcc3d['model'],_0x2a031c[_0x380073('0x2')]=qs[_0x380073('0x2f')](_0x512e0d['query']['sort']),_0x2a031c['where']=qs['filters'](_[_0x380073('0x49')](_0x512e0d[_0x380073('0x57')],_0x3bcc3d[_0x380073('0x68')])),_0x512e0d[_0x380073('0x57')][_0x380073('0x23')]&&(_0x2a031c['where']=_[_0x380073('0x38')](_0x2a031c[_0x380073('0x1')],{[Op['or']]:_['map'](_0x2a031c[_0x380073('0x5')],function(_0x2ed491){const _0x56f024=_0x380073,_0x3a06e4={};return _0x3a06e4[_0x2ed491]={[Op['like']]:'%'+_0x512e0d[_0x56f024('0x57')][_0x56f024('0x23')]+'%'},_0x3a06e4;})})),_0x2a031c=_['merge']({},_0x2a031c,_0x512e0d[_0x380073('0x69')]),_0x35b18d[_0x380073('0x6e')](_0x2a031c);})[_0x2e299e('0x19')](function(_0xbb2138){const _0x2ac7ca=_0x2e299e;if(_0xbb2138)return _0x3e9f7a=_0xbb2138[_0x2ac7ca('0x64')],typeof _0x512e0d[_0x2ac7ca('0x57')]['nolimit']===_0x2ac7ca('0x6f')&&(_0x2a031c[_0x2ac7ca('0x32')]=qs[_0x2ac7ca('0x32')](_0x512e0d[_0x2ac7ca('0x57')]['limit']),_0x2a031c[_0x2ac7ca('0x40')]=qs[_0x2ac7ca('0x40')](_0x512e0d['query'][_0x2ac7ca('0x40')])),_0x35b18d[_0x2ac7ca('0x6e')](_0x2a031c);})[_0x2e299e('0x19')](function(_0x2b56af){if(_0x2b56af)return _0x2b56af?{'count':_0x3e9f7a,'rows':_0x2b56af}:null;})['then'](respondWithResult(_0x2e0f53,null))[_0x2e299e('0x6')](handleError(_0x2e0f53,null));},exports[_0x2c9c45('0x37')]=function(_0x14016d,_0x5d97a6){const _0x2568b9=_0x2c9c45,_0x3b7d67=_0x14016d[_0x2568b9('0x53')][_0x2568b9('0x5e')];return db[_0x2568b9('0x3c')][_0x2568b9('0x2b')]({'where':{'id':_0x3b7d67},'attributes':['id'],'include':[{'model':db['User'],'as':_0x2568b9('0xa'),'attributes':['id',_0x2568b9('0x45'),_0x2568b9('0x58'),_0x2568b9('0x28'),_0x2568b9('0x1e')],'raw':!![]}]})[_0x2568b9('0x19')](function(_0x1fbcc0){const _0x37a8c3=_0x2568b9;if(_0x1fbcc0){const _0x232ecd=_[_0x37a8c3('0x59')](_0x1fbcc0,function(_0x4afc5b){const _0x5d79cc=_0x37a8c3,_0x567fc8=_0x4afc5b[_0x5d79cc('0x21')]({'plain':!![]});return _0x567fc8['Agents'];});return db['OpenchannelQueue'][_0x37a8c3('0x60')]({'where':{'id':_0x14016d[_0x37a8c3('0x6d')]['id']}})['then'](function(_0x4a1de3){const _0x48425a=_0x37a8c3;return db['sequelize'][_0x48425a('0xc')](function(_0x2f62f4){const _0x33c3dc=_0x48425a;return _0x4a1de3['addTeams'](_0x3b7d67,{'transaction':_0x2f62f4})[_0x33c3dc('0x19')](function(){return Promise['each'](_0x232ecd,function(_0x4313d3){const _0x5c902c=a494_0x2008;return db['UserOpenchannelQueue'][_0x5c902c('0x3e')]({'where':{'UserId':_0x4313d3['id'],'OpenchannelQueueId':_0x14016d[_0x5c902c('0x6d')]['id']},'transaction':_0x2f62f4});});})[_0x33c3dc('0x19')](function(){const _0x742e1c=_0x33c3dc;_0x232ecd[_0x742e1c('0x71')](function(_0x21f8de){const _0x4c808e=_0x742e1c;socket[_0x4c808e('0x13')](_0x4c808e('0x3d'),{'UserId':_0x21f8de['id'],'OpenchannelQueueId':_0x4a1de3['id']});});});});});}})['then'](respondWithStatusCode(_0x5d97a6,null))[_0x2568b9('0x6')](handleError(_0x5d97a6,null));},exports['removeTeams']=function(_0x1a41cd,_0x1d7192){const _0x587ddc=_0x2c9c45;return db[_0x587ddc('0x3c')][_0x587ddc('0x2b')]({'where':{'id':_0x1a41cd[_0x587ddc('0x57')]['ids']},'attributes':['id'],'include':[{'model':db[_0x587ddc('0x1b')],'as':_0x587ddc('0xa'),'attributes':['id'],'raw':!![]}]})[_0x587ddc('0x19')](handleEntityNotFound(_0x1d7192,null))['then'](function(_0x50aa98){const _0x8b58c0=_0x587ddc,_0x315298=_[_0x8b58c0('0x1c')](_0x50aa98,'id');let _0x2011a4=[];const _0x54e5ab=[],_0x2645f9=squel[_0x8b58c0('0x65')]();_0x2645f9[_0x8b58c0('0x55')](_0x8b58c0('0x44'))['from']('team_has_openchannel_queues','tq')[_0x8b58c0('0x35')](_0x8b58c0('0x0'),'ut','ut.TeamId\x20=\x20tq.TeamId')[_0x8b58c0('0x1')](_0x8b58c0('0x7'),_0x1a41cd[_0x8b58c0('0x6d')]['id']);for(let _0x190bf7=0x0;_0x190bf7<_0x50aa98[_0x8b58c0('0x64')];_0x190bf7+=0x1){const _0x2d1988=_0x50aa98[_0x190bf7];for(let _0x275743=0x0;_0x275743<_0x2d1988['Agents'][_0x8b58c0('0x64')];_0x275743+=0x1){const _0x5cdeaa=_0x2d1988[_0x8b58c0('0xa')][_0x275743],_0x35f961=_0x2645f9[_0x8b58c0('0x10')]();_0x35f961[_0x8b58c0('0x1')]('ut.UserId\x20=\x20?',_0x5cdeaa['id']),_0x54e5ab['push'](db[_0x8b58c0('0x26')]['query'](_0x35f961[_0x8b58c0('0xe')](),{'type':db['sequelize'][_0x8b58c0('0x1d')]['SELECT']})[_0x8b58c0('0x19')](function(_0x20af5f){const _0x73b341=_0x8b58c0;if(_0x20af5f[_0x73b341('0x64')]===0x1)return _0x5cdeaa['id'];else{const _0x29503e=_[_0x73b341('0x5d')](_[_0x73b341('0x1c')](_0x20af5f,_0x73b341('0x41')),function(_0x127aa2){const _0x126ea1=_0x73b341;return _[_0x126ea1('0x25')](_0x315298,_0x127aa2);});if(_0x29503e)return _0x5cdeaa['id'];}}));}}return Promise[_0x8b58c0('0x6b')](_0x54e5ab)['then'](function(_0x12b0b8){const _0x4cd9ad=_0x8b58c0;return _0x2011a4=_(_0x2011a4)[_0x4cd9ad('0x66')](_0x12b0b8)[_0x4cd9ad('0x4b')]()['value'](),db[_0x4cd9ad('0x56')][_0x4cd9ad('0x60')]({'where':{'id':_0x1a41cd[_0x4cd9ad('0x6d')]['id']}})['then'](function(_0x451250){const _0x1b71e4=_0x4cd9ad;return db[_0x1b71e4('0x26')][_0x1b71e4('0xc')](function(_0x5ce0f3){const _0x320f70=_0x1b71e4;return _0x451250[_0x320f70('0x1a')](_0x1a41cd[_0x320f70('0x57')][_0x320f70('0x5e')],{'transaction':_0x5ce0f3})['then'](function(){const _0x164a64=_0x320f70;if(!_[_0x164a64('0x17')](_0x2011a4))return _0x451250['removeAgents'](_0x2011a4,{'transaction':_0x5ce0f3});})[_0x320f70('0x19')](function(){const _0x5ebb9d=_0x320f70;_0x2011a4[_0x5ebb9d('0x71')](function(_0x1acc8f){const _0x1f5db2=_0x5ebb9d;socket[_0x1f5db2('0x13')]('userOpenchannelQueue:remove',{'UserId':_0x1acc8f,'OpenchannelQueueId':_0x451250['id']});});});});});});})[_0x587ddc('0x19')](respondWithStatusCode(_0x1d7192,null))[_0x587ddc('0x6')](handleError(_0x1d7192,null));},exports['addAgents']=function(_0x576628,_0x4dbd95){const _0x416aa5=_0x2c9c45;return db[_0x416aa5('0x56')][_0x416aa5('0x60')]({'where':{'id':_0x576628[_0x416aa5('0x6d')]['id']}})[_0x416aa5('0x19')](function(_0x5bb193){const _0x4f7a67=_0x416aa5;if(_0x5bb193)return _0x5bb193[_0x4f7a67('0x3')](_0x576628[_0x4f7a67('0x53')][_0x4f7a67('0x5e')],{'through':_[_0x4f7a67('0x33')](_0x576628['body'],['ids','id'])})[_0x4f7a67('0x19')](function(_0x500e43){const _0x1c4754=_0x4f7a67;for(let _0x343413=0x0;_0x343413<_0x576628[_0x1c4754('0x53')][_0x1c4754('0x5e')][_0x1c4754('0x64')];_0x343413+=0x1){socket[_0x1c4754('0x13')](_0x1c4754('0x3d'),{'UserId':_0x576628[_0x1c4754('0x53')]['ids'][_0x343413],'OpenchannelQueueId':_0x576628['params']['id']});}return _0x500e43;});})[_0x416aa5('0x19')](respondWithResult(_0x4dbd95,null))[_0x416aa5('0x6')](handleError(_0x4dbd95,null));},exports['removeAgents']=function(_0x1e112b,_0x517dd8){const _0x4415cc=_0x2c9c45;return db['OpenchannelQueue']['findOne']({'where':{'id':_0x1e112b[_0x4415cc('0x6d')]['id']}})[_0x4415cc('0x19')](handleEntityNotFound(_0x517dd8,null))[_0x4415cc('0x19')](function(_0xa60e77){const _0x454f96=_0x4415cc;if(_0xa60e77)return _0xa60e77['removeAgents'](_0x1e112b['query'][_0x454f96('0x5e')])['then'](function(){const _0x7c44f9=_0x454f96;if(_[_0x7c44f9('0x67')](_0x1e112b[_0x7c44f9('0x57')]['ids']))for(let _0x144891=0x0;_0x144891<_0x1e112b[_0x7c44f9('0x57')][_0x7c44f9('0x5e')][_0x7c44f9('0x64')];_0x144891+=0x1){socket[_0x7c44f9('0x13')](_0x7c44f9('0xb'),{'UserId':Number(_0x1e112b[_0x7c44f9('0x57')][_0x7c44f9('0x5e')][_0x144891]),'OpenchannelQueueId':Number(_0x1e112b[_0x7c44f9('0x6d')]['id'])});}else socket['emit'](_0x7c44f9('0xb'),{'UserId':Number(_0x1e112b[_0x7c44f9('0x57')][_0x7c44f9('0x5e')]),'OpenchannelQueueId':Number(_0x1e112b['params']['id'])});});})[_0x4415cc('0x19')](respondWithStatusCode(_0x517dd8,null))['catch'](handleError(_0x517dd8,null));},exports[_0x2c9c45('0x50')]=function(_0x3e5f73,_0x5084c6){const _0x1bc315=_0x2c9c45;let _0x489ccc={};const _0x1378c4={};let _0x298923,_0x191a3f;return db[_0x1bc315('0x56')][_0x1bc315('0x60')]({'where':{'id':_0x3e5f73[_0x1bc315('0x6d')]['id']}})[_0x1bc315('0x19')](handleEntityNotFound(_0x5084c6,null))[_0x1bc315('0x19')](function(_0x378bd2){const _0x122411=_0x1bc315;if(_0x378bd2)return _0x298923=_0x378bd2,_0x1378c4[_0x122411('0x54')]=_[_0x122411('0x48')](db['User']['rawAttributes']),_0x1378c4[_0x122411('0x57')]=_[_0x122411('0x48')](_0x3e5f73[_0x122411('0x57')]),_0x1378c4[_0x122411('0x68')]=_[_0x122411('0x52')](_0x1378c4['model'],_0x1378c4[_0x122411('0x57')]),_0x489ccc[_0x122411('0x5')]=_['intersection'](_0x1378c4[_0x122411('0x54')],qs[_0x122411('0x6c')](_0x3e5f73['query']['fields'])),_0x489ccc[_0x122411('0x5')]=_0x489ccc[_0x122411('0x5')]['length']?_0x489ccc[_0x122411('0x5')]:_0x1378c4['model'],_0x489ccc[_0x122411('0x2')]=qs[_0x122411('0x2f')](_0x3e5f73[_0x122411('0x57')][_0x122411('0x2f')]),_0x489ccc[_0x122411('0x1')]=qs['filters'](_[_0x122411('0x49')](_0x3e5f73['query'],_0x1378c4[_0x122411('0x68')])),_0x3e5f73[_0x122411('0x57')][_0x122411('0x23')]&&(_0x489ccc[_0x122411('0x1')]=_['merge'](_0x489ccc['where'],{[Op['or']]:_['map'](_0x489ccc[_0x122411('0x5')],function(_0x164f2e){const _0x467d7e=_0x122411,_0x14d06b={};return _0x14d06b[_0x164f2e]={[Op[_0x467d7e('0x4c')]]:'%'+_0x3e5f73['query']['filter']+'%'},_0x14d06b;})})),_0x489ccc=_[_0x122411('0x38')]({},_0x489ccc,_0x3e5f73[_0x122411('0x69')]),_0x298923[_0x122411('0x50')](_0x489ccc);})[_0x1bc315('0x19')](function(_0x2c59a2){const _0x5e2ae6=_0x1bc315;if(_0x2c59a2)return _0x191a3f=_0x2c59a2[_0x5e2ae6('0x64')],typeof _0x3e5f73[_0x5e2ae6('0x57')][_0x5e2ae6('0x1f')]==='undefined'&&(_0x489ccc[_0x5e2ae6('0x32')]=qs['limit'](_0x3e5f73[_0x5e2ae6('0x57')][_0x5e2ae6('0x32')]),_0x489ccc[_0x5e2ae6('0x40')]=qs[_0x5e2ae6('0x40')](_0x3e5f73['query']['offset'])),_0x298923[_0x5e2ae6('0x50')](_0x489ccc);})[_0x1bc315('0x19')](function(_0x4f5dec){if(_0x4f5dec)return _0x4f5dec?{'count':_0x191a3f,'rows':_0x4f5dec}:null;})[_0x1bc315('0x19')](respondWithResult(_0x5084c6,null))[_0x1bc315('0x6')](handleError(_0x5084c6,null));}; \ No newline at end of file +const a494_0x2945=['getMembers','format','UserProfileResource','findAll','addAgents','destroy','merge','squel','agent','%s/%s','field','rows','undefined','../../config/logger','push','body','where','UserOpenchannelQueue','show','OpenchannelQueueId','api','value','count','filter','keys','query','../../mysqldb','clone','userOpenchannelQueue:remove','update','rawAttributes','offset','Unable\x20to\x20retrieve\x20the\x20current\x20user','limit','flatMap','catch','voicePause','includeAll','online','transaction','map','name','Agents','includes','VIRTUAL','emit','every','nolimit','fieldName','set','status','pick','addTeams','join','sendStatus','get','params','filters','then','intersection','attributes','error','like','./openchannelQueue.socket','openchannelPause','send','OpenchannelQueue','userOpenchannelQueue:save','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','register','create','all','compact','isArray','SIP','findOne','userProfileId','length','options','include','sequelize','model','util','forEach','TeamId','ut.TeamId\x20=\x20tq.TeamId','describe','fields','removeTeams','json','User','getAgents','sort','type','lodash','stack','user_has_teams','user','role','each','QueryTypes','OpenchannelQueues','updatedAt','index','SELECT','union','toString','select','removeAgents','createdAt','Team','order','../../components/parsers/qs','getTeams','omit','ids','../../rediscache','end'];(function(_0x1da1ee,_0x294546){const _0x35ec82=function(_0x255619){while(--_0x255619){_0x1da1ee['push'](_0x1da1ee['shift']());}};_0x35ec82(++_0x294546);}(a494_0x2945,0xe9));const a494_0x35ec=function(_0x1da1ee,_0x294546){_0x1da1ee=_0x1da1ee-0x0;let _0x35ec82=a494_0x2945[_0x1da1ee];return _0x35ec82;};const _0x4875cb=a494_0x35ec;'use strict';const util=require(_0x4875cb('0x55')),_=require(_0x4875cb('0x61')),squel=require(_0x4875cb('0xa')),qs=require(_0x4875cb('0x73')),logger=require(_0x4875cb('0x10'))(_0x4875cb('0x17')),{getSocket}=require(_0x4875cb('0x1')),socket=getSocket(),db=require(_0x4875cb('0x1d'))['db'],{Op}=require(_0x4875cb('0x53'));require(_0x4875cb('0x42'))[_0x4875cb('0x48')](socket);function respondWithStatusCode(_0x255619,_0x568cb1){return _0x568cb1=_0x568cb1||0xcc,function(_0x50ea18){const _0x25e734=a494_0x35ec;if(_0x50ea18)return _0x255619[_0x25e734('0x39')](_0x568cb1);return _0x255619['status'](_0x568cb1)[_0x25e734('0x2')]();};}function respondWithResult(_0x2c5559,_0x2f8202){return _0x2f8202=_0x2f8202||0xc8,function(_0x49b4d5){const _0x1fd3f5=a494_0x35ec;if(_0x49b4d5)return _0x2c5559[_0x1fd3f5('0x35')](_0x2f8202)['json'](_0x49b4d5);};}function respondWithFilteredResult(_0x10b4e6,_0x471691){return function(_0x1f5a04){const _0x585de2=a494_0x35ec;if(_0x1f5a04){const _0x569848=_0x1f5a04[_0x585de2('0x19')],_0xbd4210=_0x471691['offset'];let _0x3d7d41=_0x471691[_0x585de2('0x22')]+_0x471691[_0x585de2('0x24')],_0x1b2e3d;return _0x3d7d41>=_0x569848?(_0x3d7d41=_0x569848,_0x1b2e3d=0xc8):_0x1b2e3d=0xce,_0x10b4e6[_0x585de2('0x35')](_0x1b2e3d),_0x10b4e6[_0x585de2('0x34')]('Content-Range',_0xbd4210+'-'+_0x3d7d41+'/'+_0x569848)[_0x585de2('0x5c')](_0x1f5a04);}return null;};}function saveUpdates(_0x5bdeae){return function(_0x3e09a7){const _0x51b115=a494_0x35ec;if(_0x3e09a7)return _0x3e09a7[_0x51b115('0x20')](_0x5bdeae)['then'](function(_0x2a906f){return _0x2a906f;});return null;};}function removeEntity(_0x13d051){return function(_0x384cbf){const _0x25f3eb=a494_0x35ec;if(_0x384cbf)return _0x384cbf['destroy']()[_0x25f3eb('0x3d')](function(){const _0x5e48f3=_0x25f3eb,_0x5a8403=_0x384cbf[_0x5e48f3('0x3a')]({'plain':!![]}),_0x58b4ee=_0x5e48f3('0x68');return db[_0x5e48f3('0x5')][_0x5e48f3('0x8')]({'where':{'type':_0x58b4ee,'resourceId':_0x5a8403['id']}})[_0x5e48f3('0x3d')](function(){return _0x384cbf;});})['then'](function(){const _0x3b7eb3=_0x25f3eb;_0x13d051[_0x3b7eb3('0x35')](0xcc)['end']();});};}function handleEntityNotFound(_0x519314){return function(_0x3e84de){return!_0x3e84de&&_0x519314['sendStatus'](0x194),_0x3e84de;};}function handleError(_0x830799,_0x26a75d){return _0x26a75d=_0x26a75d||0x1f4,function(_0x518841){const _0x244efc=a494_0x35ec;logger[_0x244efc('0x40')](_0x518841[_0x244efc('0x62')]),_0x518841[_0x244efc('0x2c')]&&delete _0x518841[_0x244efc('0x2c')],_0x830799[_0x244efc('0x35')](_0x26a75d)[_0x244efc('0x44')](_0x518841);};}exports[_0x4875cb('0x6a')]=function(_0x22fb64,_0xb898fd){const _0x1e3a85=_0x4875cb;let _0x434e16={};const _0x13e1de={},_0x383d10={'count':0x0,'rows':[]},_0x5c7f3f=_['map'](db[_0x1e3a85('0x45')][_0x1e3a85('0x21')],function(_0x136896){const _0x48ec37=_0x1e3a85;return{'name':_0x136896[_0x48ec37('0x33')],'type':_0x136896['type']['key']};});_0x13e1de[_0x1e3a85('0x54')]=_[_0x1e3a85('0x2b')](_0x5c7f3f,_0x1e3a85('0x2c')),_0x13e1de['query']=_[_0x1e3a85('0x1b')](_0x22fb64['query']),_0x13e1de[_0x1e3a85('0x3c')]=_[_0x1e3a85('0x3e')](_0x13e1de[_0x1e3a85('0x54')],_0x13e1de[_0x1e3a85('0x1c')]),_0x434e16[_0x1e3a85('0x3f')]=_[_0x1e3a85('0x3e')](_0x13e1de[_0x1e3a85('0x54')],qs[_0x1e3a85('0x5a')](_0x22fb64['query'][_0x1e3a85('0x5a')])),_0x434e16[_0x1e3a85('0x3f')]=_0x434e16[_0x1e3a85('0x3f')][_0x1e3a85('0x50')]?_0x434e16['attributes']:_0x13e1de[_0x1e3a85('0x54')];typeof _0x22fb64['query'][_0x1e3a85('0x32')]===_0x1e3a85('0xf')&&(_0x434e16[_0x1e3a85('0x24')]=qs[_0x1e3a85('0x24')](_0x22fb64[_0x1e3a85('0x1c')]['limit']),_0x434e16['offset']=qs[_0x1e3a85('0x22')](_0x22fb64[_0x1e3a85('0x1c')][_0x1e3a85('0x22')]));_0x434e16[_0x1e3a85('0x72')]=qs[_0x1e3a85('0x5f')](_0x22fb64[_0x1e3a85('0x1c')]['sort']),_0x434e16['where']=qs[_0x1e3a85('0x3c')](_[_0x1e3a85('0x36')](_0x22fb64['query'],_0x13e1de[_0x1e3a85('0x3c')]),_0x5c7f3f);_0x22fb64['query']['filter']&&(_0x434e16['where']=_['merge'](_0x434e16[_0x1e3a85('0x13')],{[Op['or']]:_[_0x1e3a85('0x2b')](_0x5c7f3f,function(_0x1c263f){const _0x1bb303=_0x1e3a85;if(_0x1c263f[_0x1bb303('0x60')]!==_0x1bb303('0x2f')){const _0x376596={};return _0x376596[_0x1c263f[_0x1bb303('0x2c')]]={[Op[_0x1bb303('0x41')]]:'%'+_0x22fb64[_0x1bb303('0x1c')]['filter']+'%'},_0x376596;}})}));_0x434e16=_['merge']({},_0x434e16,_0x22fb64[_0x1e3a85('0x51')]);const _0x4c1f40={'where':_0x434e16['where']};return db[_0x1e3a85('0x45')][_0x1e3a85('0x19')](_0x4c1f40)['then'](function(_0x37138d){const _0x5c8981=_0x1e3a85;return _0x383d10[_0x5c8981('0x19')]=_0x37138d,_0x22fb64[_0x5c8981('0x1c')][_0x5c8981('0x28')]&&(_0x434e16[_0x5c8981('0x52')]=[{'all':!![]}]),db[_0x5c8981('0x45')][_0x5c8981('0x6')](_0x434e16);})[_0x1e3a85('0x3d')](function(_0x5aee92){const _0x12c9ac=_0x1e3a85;return _0x383d10[_0x12c9ac('0xe')]=_0x5aee92,_0x383d10;})[_0x1e3a85('0x3d')](respondWithFilteredResult(_0xb898fd,_0x434e16))['catch'](handleError(_0xb898fd,null));},exports[_0x4875cb('0x15')]=function(_0x4b85c9,_0x279862){const _0x47ae59=_0x4875cb;let _0x5d395e={'raw':!![],'where':{'id':_0x4b85c9[_0x47ae59('0x3b')]['id']}};const _0x2e9642={};return _0x2e9642[_0x47ae59('0x54')]=_[_0x47ae59('0x1b')](db[_0x47ae59('0x45')][_0x47ae59('0x21')]),_0x2e9642[_0x47ae59('0x1c')]=_['keys'](_0x4b85c9['query']),_0x2e9642['filters']=_['intersection'](_0x2e9642[_0x47ae59('0x54')],_0x2e9642['query']),_0x5d395e['attributes']=_[_0x47ae59('0x3e')](_0x2e9642[_0x47ae59('0x54')],qs['fields'](_0x4b85c9['query'][_0x47ae59('0x5a')])),_0x5d395e['attributes']=_0x5d395e['attributes'][_0x47ae59('0x50')]?_0x5d395e[_0x47ae59('0x3f')]:_0x2e9642['model'],_0x4b85c9[_0x47ae59('0x1c')][_0x47ae59('0x28')]&&(_0x5d395e['include']=[{'all':!![]}]),_0x5d395e=_[_0x47ae59('0x9')]({},_0x5d395e,_0x4b85c9[_0x47ae59('0x51')]),db[_0x47ae59('0x45')][_0x47ae59('0x4e')](_0x5d395e)[_0x47ae59('0x3d')](handleEntityNotFound(_0x279862,null))['then'](respondWithResult(_0x279862,null))[_0x47ae59('0x26')](handleError(_0x279862,null));},exports[_0x4875cb('0x49')]=function(_0x38cd94,_0x23ebeb){const _0x252b2e=_0x4875cb;return db[_0x252b2e('0x45')]['create'](_0x38cd94['body'],{})['then'](function(_0x361aa1){const _0x507c73=_0x252b2e,_0xbafb69=_0x38cd94[_0x507c73('0x64')][_0x507c73('0x3a')]({'plain':!![]});if(!_0xbafb69)throw new Error(_0x507c73('0x23'));if(_0xbafb69[_0x507c73('0x65')]===_0x507c73('0x64')){const _0x116a33=_0x361aa1[_0x507c73('0x3a')]({'plain':!![]}),_0x15dcce='OpenchannelQueues';return db['UserProfileSection'][_0x507c73('0x4e')]({'where':{'name':_0x15dcce,'userProfileId':_0xbafb69[_0x507c73('0x4f')]},'raw':!![]})[_0x507c73('0x3d')](function(_0x15bec5){const _0x2c1634=_0x507c73;return _0x15bec5&&_0x15bec5['autoAssociation']===0x0?db['UserProfileResource']['create']({'name':_0x116a33[_0x2c1634('0x2c')],'resourceId':_0x116a33['id'],'type':_0x15bec5[_0x2c1634('0x2c')],'sectionId':_0x15bec5['id']},{})[_0x2c1634('0x3d')](function(){return _0x361aa1;}):_0x361aa1;})[_0x507c73('0x26')](function(_0x50bd8e){const _0x460c37=_0x507c73;logger['error'](_0x460c37('0x47'),_0x50bd8e);throw _0x50bd8e;});}return _0x361aa1;})[_0x252b2e('0x3d')](respondWithResult(_0x23ebeb,0xc9))['catch'](handleError(_0x23ebeb,null));},exports[_0x4875cb('0x20')]=function(_0x59e02b,_0x45db3c){const _0x4eddb2=_0x4875cb;return _0x59e02b[_0x4eddb2('0x12')]['id']&&delete _0x59e02b[_0x4eddb2('0x12')]['id'],db['OpenchannelQueue'][_0x4eddb2('0x4e')]({'where':{'id':_0x59e02b[_0x4eddb2('0x3b')]['id']}})['then'](handleEntityNotFound(_0x45db3c,null))[_0x4eddb2('0x3d')](saveUpdates(_0x59e02b[_0x4eddb2('0x12')],null))[_0x4eddb2('0x3d')](respondWithResult(_0x45db3c,null))[_0x4eddb2('0x26')](handleError(_0x45db3c,null));},exports[_0x4875cb('0x8')]=function(_0x353eac,_0x356bb2){const _0x4648d8=_0x4875cb;return db[_0x4648d8('0x45')]['findOne']({'where':{'id':_0x353eac[_0x4648d8('0x3b')]['id']}})['then'](handleEntityNotFound(_0x356bb2,null))['then'](removeEntity(_0x356bb2,null))['catch'](handleError(_0x356bb2,null));},exports[_0x4875cb('0x59')]=function(_0x132a92,_0x24d8ce){const _0x3816ef=_0x4875cb;return db[_0x3816ef('0x45')][_0x3816ef('0x59')]()[_0x3816ef('0x3d')](respondWithResult(_0x24d8ce,null))[_0x3816ef('0x26')](handleError(_0x24d8ce,null));},exports[_0x4875cb('0x3')]=function(_0x48c826,_0x60c593){const _0x9737db=_0x4875cb;let _0x1bacc3={'raw':!![],'where':{}};const _0x6648cf={};let _0x4c6c9e;return db[_0x9737db('0x45')]['findOne']({'where':{'id':_0x48c826[_0x9737db('0x3b')]['id']}})[_0x9737db('0x3d')](handleEntityNotFound(_0x60c593,null))['then'](function(_0x1fd40f){const _0x39738a=_0x9737db;if(_0x1fd40f)return _0x4c6c9e=_0x1fd40f[_0x39738a('0x3a')]({'plain':!![]}),_0x6648cf[_0x39738a('0x54')]=_[_0x39738a('0x1b')](db[_0x39738a('0x14')][_0x39738a('0x21')]),_0x6648cf[_0x39738a('0x1c')]=_[_0x39738a('0x1b')](_0x48c826[_0x39738a('0x1c')]),_0x6648cf['filters']=_[_0x39738a('0x3e')](_0x6648cf[_0x39738a('0x54')],_0x6648cf[_0x39738a('0x1c')]),_0x1bacc3[_0x39738a('0x3f')]=_['intersection'](_0x6648cf[_0x39738a('0x54')],qs[_0x39738a('0x5a')](_0x48c826[_0x39738a('0x1c')][_0x39738a('0x5a')])),_0x1bacc3[_0x39738a('0x3f')]=_0x1bacc3[_0x39738a('0x3f')][_0x39738a('0x50')]?_0x1bacc3[_0x39738a('0x3f')]:_0x6648cf[_0x39738a('0x54')],typeof _0x48c826[_0x39738a('0x1c')]['nolimit']==='undefined'&&(_0x1bacc3[_0x39738a('0x24')]=qs[_0x39738a('0x24')](_0x48c826[_0x39738a('0x1c')][_0x39738a('0x24')]),_0x1bacc3['offset']=qs[_0x39738a('0x22')](_0x48c826[_0x39738a('0x1c')][_0x39738a('0x22')])),_0x1bacc3[_0x39738a('0x72')]=qs[_0x39738a('0x5f')](_0x48c826[_0x39738a('0x1c')][_0x39738a('0x5f')]),_0x1bacc3[_0x39738a('0x13')]=qs[_0x39738a('0x3c')](_['pick'](_0x48c826[_0x39738a('0x1c')],_0x6648cf[_0x39738a('0x3c')])),_0x1bacc3[_0x39738a('0x13')][_0x39738a('0x16')]=_0x1fd40f['id'],_0x48c826['query'][_0x39738a('0x1a')]&&(_0x1bacc3[_0x39738a('0x13')]=_[_0x39738a('0x9')](_0x1bacc3[_0x39738a('0x13')],{[Op['or']]:_['map'](_0x1bacc3[_0x39738a('0x3f')],function(_0x572373){const _0x2e1daf=_0x39738a,_0xf2d540={};return _0xf2d540[_0x572373]={[Op[_0x2e1daf('0x41')]]:'%'+_0x48c826['query'][_0x2e1daf('0x1a')]+'%'},_0xf2d540;})})),_0x1bacc3=_[_0x39738a('0x9')]({},_0x1bacc3,_0x48c826['options']),db[_0x39738a('0x14')][_0x39738a('0x6')](_0x1bacc3);})['then'](function(_0x4662d5){const _0x2b0cde=_0x9737db;if(_0x4662d5)return db[_0x2b0cde('0x5d')]['findAndCountAll']({'where':{'id':_[_0x2b0cde('0x2b')](_0x4662d5,'UserId'),'role':_0x2b0cde('0xb')},'attributes':['id',_0x2b0cde('0x2c'),_0x2b0cde('0x43'),_0x2b0cde('0x69'),_0x2b0cde('0x70')]});})['then'](function(_0x4e174d){const _0xfabfa8=_0x9737db;return _0x4e174d?{'count':_0x4e174d[_0xfabfa8('0x19')],'rows':_['map'](_0x4e174d[_0xfabfa8('0xe')],function(_0x58194e){const _0xf4df3f=_0xfabfa8;return{'membername':_0x58194e[_0xf4df3f('0x2c')],'UserId':_0x58194e['id'],'queue_name':_0x4c6c9e[_0xf4df3f('0x2c')],'OpenchannelQueueId':_0x4c6c9e['id'],'interface':util[_0xf4df3f('0x4')](_0xf4df3f('0xc'),_0xf4df3f('0x4d'),_0x58194e[_0xf4df3f('0x2c')]),'penalty':0x0,'paused':_0x58194e[_0xf4df3f('0x43')],'createdAt':_0x58194e[_0xf4df3f('0x70')],'updatedAt':_0x58194e[_0xf4df3f('0x69')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x60c593,_0x1bacc3))[_0x9737db('0x26')](handleError(_0x60c593,null));},exports[_0x4875cb('0x74')]=function(_0x1103c7,_0x5d7fcc){const _0x423590=_0x4875cb;let _0x3efed8={};const _0x717982={};let _0x16c929,_0x3a6a4d;return db[_0x423590('0x45')][_0x423590('0x4e')]({'where':{'id':_0x1103c7[_0x423590('0x3b')]['id']}})['then'](handleEntityNotFound(_0x5d7fcc,null))[_0x423590('0x3d')](function(_0x47deea){const _0x3de297=_0x423590;if(_0x47deea)return _0x16c929=_0x47deea,_0x717982[_0x3de297('0x54')]=_[_0x3de297('0x1b')](db['Team']['rawAttributes']),_0x717982[_0x3de297('0x1c')]=_[_0x3de297('0x1b')](_0x1103c7['query']),_0x717982['filters']=_[_0x3de297('0x3e')](_0x717982[_0x3de297('0x54')],_0x717982[_0x3de297('0x1c')]),_0x3efed8[_0x3de297('0x3f')]=_[_0x3de297('0x3e')](_0x717982[_0x3de297('0x54')],qs[_0x3de297('0x5a')](_0x1103c7['query']['fields'])),_0x3efed8[_0x3de297('0x3f')]=_0x3efed8[_0x3de297('0x3f')]['length']?_0x3efed8['attributes']:_0x717982[_0x3de297('0x54')],_0x3efed8[_0x3de297('0x72')]=qs[_0x3de297('0x5f')](_0x1103c7[_0x3de297('0x1c')][_0x3de297('0x5f')]),_0x3efed8[_0x3de297('0x13')]=qs[_0x3de297('0x3c')](_[_0x3de297('0x36')](_0x1103c7['query'],_0x717982[_0x3de297('0x3c')])),_0x1103c7[_0x3de297('0x1c')]['filter']&&(_0x3efed8[_0x3de297('0x13')]=_[_0x3de297('0x9')](_0x3efed8[_0x3de297('0x13')],{[Op['or']]:_[_0x3de297('0x2b')](_0x3efed8['attributes'],function(_0x4c3e5d){const _0xeaf5b=_0x3de297,_0x4db94a={};return _0x4db94a[_0x4c3e5d]={[Op['like']]:'%'+_0x1103c7[_0xeaf5b('0x1c')]['filter']+'%'},_0x4db94a;})})),_0x3efed8=_['merge']({},_0x3efed8,_0x1103c7[_0x3de297('0x51')]),_0x16c929[_0x3de297('0x74')](_0x3efed8);})[_0x423590('0x3d')](function(_0x5a940f){const _0x306170=_0x423590;if(_0x5a940f)return _0x3a6a4d=_0x5a940f[_0x306170('0x50')],typeof _0x1103c7[_0x306170('0x1c')][_0x306170('0x32')]==='undefined'&&(_0x3efed8['limit']=qs[_0x306170('0x24')](_0x1103c7[_0x306170('0x1c')][_0x306170('0x24')]),_0x3efed8[_0x306170('0x22')]=qs['offset'](_0x1103c7[_0x306170('0x1c')][_0x306170('0x22')])),_0x16c929[_0x306170('0x74')](_0x3efed8);})[_0x423590('0x3d')](function(_0x289056){if(_0x289056)return _0x289056?{'count':_0x3a6a4d,'rows':_0x289056}:null;})[_0x423590('0x3d')](respondWithResult(_0x5d7fcc,null))['catch'](handleError(_0x5d7fcc,null));},exports[_0x4875cb('0x37')]=function(_0x5d96ba,_0x15d4fa){const _0x17c77e=_0x4875cb,_0x112ca1=_0x5d96ba['body'][_0x17c77e('0x0')];return db[_0x17c77e('0x71')][_0x17c77e('0x6')]({'where':{'id':_0x112ca1},'attributes':['id'],'include':[{'model':db[_0x17c77e('0x5d')],'as':'Agents','attributes':['id',_0x17c77e('0x2c'),_0x17c77e('0x29'),_0x17c77e('0x27'),'interface'],'raw':!![]}]})[_0x17c77e('0x3d')](function(_0xfd2e4d){const _0x31e760=_0x17c77e;if(_0xfd2e4d){const _0xa48d8=_[_0x31e760('0x25')](_0xfd2e4d,function(_0x28575d){const _0x4068d8=_0x31e760,_0x171906=_0x28575d[_0x4068d8('0x3a')]({'plain':!![]});return _0x171906[_0x4068d8('0x2d')];});return db[_0x31e760('0x45')][_0x31e760('0x4e')]({'where':{'id':_0x5d96ba[_0x31e760('0x3b')]['id']}})[_0x31e760('0x3d')](function(_0x2153fc){return db['sequelize']['transaction'](function(_0xe0aa26){const _0x2c782a=a494_0x35ec;return _0x2153fc['addTeams'](_0x112ca1,{'transaction':_0xe0aa26})['then'](function(){const _0x5b0cb6=a494_0x35ec;return Promise[_0x5b0cb6('0x66')](_0xa48d8,function(_0x35f9c6){const _0x3ca9be=_0x5b0cb6;return db[_0x3ca9be('0x14')]['findOrCreate']({'where':{'UserId':_0x35f9c6['id'],'OpenchannelQueueId':_0x5d96ba[_0x3ca9be('0x3b')]['id']},'transaction':_0xe0aa26});});})[_0x2c782a('0x3d')](function(){const _0x257621=_0x2c782a;_0xa48d8[_0x257621('0x56')](function(_0x3954d3){const _0x507aa3=_0x257621;socket[_0x507aa3('0x30')](_0x507aa3('0x46'),{'UserId':_0x3954d3['id'],'OpenchannelQueueId':_0x2153fc['id']});});});});});}})[_0x17c77e('0x3d')](respondWithStatusCode(_0x15d4fa,null))[_0x17c77e('0x26')](handleError(_0x15d4fa,null));},exports[_0x4875cb('0x5b')]=function(_0xfdf305,_0x29fd5f){const _0x3557a8=_0x4875cb;return db[_0x3557a8('0x71')][_0x3557a8('0x6')]({'where':{'id':_0xfdf305[_0x3557a8('0x1c')][_0x3557a8('0x0')]},'attributes':['id'],'include':[{'model':db['User'],'as':_0x3557a8('0x2d'),'attributes':['id'],'raw':!![]}]})[_0x3557a8('0x3d')](handleEntityNotFound(_0x29fd5f,null))[_0x3557a8('0x3d')](function(_0x524308){const _0x575c20=_0x3557a8,_0x4ab12a=_[_0x575c20('0x2b')](_0x524308,'id');let _0x2624a9=[];const _0x2ec8c4=[],_0xd9eab=squel[_0x575c20('0x6e')]();_0xd9eab[_0x575c20('0xd')]('tq.TeamId')['from']('team_has_openchannel_queues','tq')[_0x575c20('0x38')](_0x575c20('0x63'),'ut',_0x575c20('0x58'))[_0x575c20('0x13')]('OpenchannelQueueId\x20=\x20?',_0xfdf305[_0x575c20('0x3b')]['id']);for(let _0x9df926=0x0;_0x9df926<_0x524308['length'];_0x9df926+=0x1){const _0xd540fd=_0x524308[_0x9df926];for(let _0x433432=0x0;_0x433432<_0xd540fd[_0x575c20('0x2d')][_0x575c20('0x50')];_0x433432+=0x1){const _0x391320=_0xd540fd[_0x575c20('0x2d')][_0x433432],_0x184002=_0xd9eab[_0x575c20('0x1e')]();_0x184002[_0x575c20('0x13')]('ut.UserId\x20=\x20?',_0x391320['id']),_0x2ec8c4[_0x575c20('0x11')](db[_0x575c20('0x53')][_0x575c20('0x1c')](_0x184002[_0x575c20('0x6d')](),{'type':db['sequelize'][_0x575c20('0x67')][_0x575c20('0x6b')]})[_0x575c20('0x3d')](function(_0x5b1800){const _0xabd3d9=_0x575c20;if(_0x5b1800['length']===0x1)return _0x391320['id'];else{const _0x1c8db6=_[_0xabd3d9('0x31')](_[_0xabd3d9('0x2b')](_0x5b1800,_0xabd3d9('0x57')),function(_0x3acd17){const _0x366ccf=_0xabd3d9;return _[_0x366ccf('0x2e')](_0x4ab12a,_0x3acd17);});if(_0x1c8db6)return _0x391320['id'];}}));}}return Promise[_0x575c20('0x4a')](_0x2ec8c4)[_0x575c20('0x3d')](function(_0x109d7c){const _0x3966d6=_0x575c20;return _0x2624a9=_(_0x2624a9)[_0x3966d6('0x6c')](_0x109d7c)[_0x3966d6('0x4b')]()[_0x3966d6('0x18')](),db[_0x3966d6('0x45')][_0x3966d6('0x4e')]({'where':{'id':_0xfdf305[_0x3966d6('0x3b')]['id']}})['then'](function(_0x32e494){const _0x22f3ed=_0x3966d6;return db[_0x22f3ed('0x53')][_0x22f3ed('0x2a')](function(_0xda3358){const _0x49b533=_0x22f3ed;return _0x32e494['removeTeams'](_0xfdf305[_0x49b533('0x1c')]['ids'],{'transaction':_0xda3358})['then'](function(){if(!_['isEmpty'](_0x2624a9))return _0x32e494['removeAgents'](_0x2624a9,{'transaction':_0xda3358});})[_0x49b533('0x3d')](function(){const _0x560a4f=_0x49b533;_0x2624a9[_0x560a4f('0x56')](function(_0x67e98c){const _0x5e8ecb=_0x560a4f;socket['emit'](_0x5e8ecb('0x1f'),{'UserId':_0x67e98c,'OpenchannelQueueId':_0x32e494['id']});});});});});});})[_0x3557a8('0x3d')](respondWithStatusCode(_0x29fd5f,null))['catch'](handleError(_0x29fd5f,null));},exports['addAgents']=function(_0x870d9f,_0x1d0881){const _0x4d2ce1=_0x4875cb;return db['OpenchannelQueue']['findOne']({'where':{'id':_0x870d9f['params']['id']}})[_0x4d2ce1('0x3d')](function(_0x1468f2){const _0x333e4c=_0x4d2ce1;if(_0x1468f2)return _0x1468f2[_0x333e4c('0x7')](_0x870d9f[_0x333e4c('0x12')][_0x333e4c('0x0')],{'through':_[_0x333e4c('0x75')](_0x870d9f[_0x333e4c('0x12')],['ids','id'])})[_0x333e4c('0x3d')](function(_0x5055f8){const _0x17312b=_0x333e4c;for(let _0x540653=0x0;_0x540653<_0x870d9f[_0x17312b('0x12')]['ids'][_0x17312b('0x50')];_0x540653+=0x1){socket['emit'](_0x17312b('0x46'),{'UserId':_0x870d9f[_0x17312b('0x12')][_0x17312b('0x0')][_0x540653],'OpenchannelQueueId':_0x870d9f[_0x17312b('0x3b')]['id']});}return _0x5055f8;});})[_0x4d2ce1('0x3d')](respondWithResult(_0x1d0881,null))[_0x4d2ce1('0x26')](handleError(_0x1d0881,null));},exports[_0x4875cb('0x6f')]=function(_0x30d140,_0x968292){const _0x18c1a1=_0x4875cb;return db[_0x18c1a1('0x45')][_0x18c1a1('0x4e')]({'where':{'id':_0x30d140[_0x18c1a1('0x3b')]['id']}})['then'](handleEntityNotFound(_0x968292,null))[_0x18c1a1('0x3d')](function(_0x3116e9){const _0x1a7756=_0x18c1a1;if(_0x3116e9)return _0x3116e9['removeAgents'](_0x30d140[_0x1a7756('0x1c')]['ids'])[_0x1a7756('0x3d')](function(){const _0x2ddf68=_0x1a7756;if(_[_0x2ddf68('0x4c')](_0x30d140[_0x2ddf68('0x1c')]['ids']))for(let _0x826500=0x0;_0x826500<_0x30d140['query'][_0x2ddf68('0x0')]['length'];_0x826500+=0x1){socket[_0x2ddf68('0x30')]('userOpenchannelQueue:remove',{'UserId':Number(_0x30d140[_0x2ddf68('0x1c')][_0x2ddf68('0x0')][_0x826500]),'OpenchannelQueueId':Number(_0x30d140[_0x2ddf68('0x3b')]['id'])});}else socket[_0x2ddf68('0x30')](_0x2ddf68('0x1f'),{'UserId':Number(_0x30d140[_0x2ddf68('0x1c')][_0x2ddf68('0x0')]),'OpenchannelQueueId':Number(_0x30d140[_0x2ddf68('0x3b')]['id'])});});})[_0x18c1a1('0x3d')](respondWithStatusCode(_0x968292,null))[_0x18c1a1('0x26')](handleError(_0x968292,null));},exports[_0x4875cb('0x5e')]=function(_0x32d82d,_0x355132){const _0x38f431=_0x4875cb;let _0x26d99a={};const _0x33e41e={};let _0x3ede6d,_0x289e7e;return db['OpenchannelQueue'][_0x38f431('0x4e')]({'where':{'id':_0x32d82d[_0x38f431('0x3b')]['id']}})[_0x38f431('0x3d')](handleEntityNotFound(_0x355132,null))['then'](function(_0x5694a3){const _0x351634=_0x38f431;if(_0x5694a3)return _0x3ede6d=_0x5694a3,_0x33e41e['model']=_['keys'](db['User'][_0x351634('0x21')]),_0x33e41e[_0x351634('0x1c')]=_[_0x351634('0x1b')](_0x32d82d[_0x351634('0x1c')]),_0x33e41e[_0x351634('0x3c')]=_[_0x351634('0x3e')](_0x33e41e[_0x351634('0x54')],_0x33e41e['query']),_0x26d99a[_0x351634('0x3f')]=_[_0x351634('0x3e')](_0x33e41e['model'],qs[_0x351634('0x5a')](_0x32d82d[_0x351634('0x1c')]['fields'])),_0x26d99a['attributes']=_0x26d99a['attributes'][_0x351634('0x50')]?_0x26d99a[_0x351634('0x3f')]:_0x33e41e[_0x351634('0x54')],_0x26d99a[_0x351634('0x72')]=qs[_0x351634('0x5f')](_0x32d82d[_0x351634('0x1c')][_0x351634('0x5f')]),_0x26d99a[_0x351634('0x13')]=qs[_0x351634('0x3c')](_[_0x351634('0x36')](_0x32d82d[_0x351634('0x1c')],_0x33e41e[_0x351634('0x3c')])),_0x32d82d['query'][_0x351634('0x1a')]&&(_0x26d99a[_0x351634('0x13')]=_[_0x351634('0x9')](_0x26d99a[_0x351634('0x13')],{[Op['or']]:_[_0x351634('0x2b')](_0x26d99a[_0x351634('0x3f')],function(_0x38d757){const _0x5623f0=_0x351634,_0x2c74d5={};return _0x2c74d5[_0x38d757]={[Op[_0x5623f0('0x41')]]:'%'+_0x32d82d[_0x5623f0('0x1c')]['filter']+'%'},_0x2c74d5;})})),_0x26d99a=_[_0x351634('0x9')]({},_0x26d99a,_0x32d82d[_0x351634('0x51')]),_0x3ede6d[_0x351634('0x5e')](_0x26d99a);})[_0x38f431('0x3d')](function(_0x3b7a8d){const _0xe08f67=_0x38f431;if(_0x3b7a8d)return _0x289e7e=_0x3b7a8d[_0xe08f67('0x50')],typeof _0x32d82d[_0xe08f67('0x1c')][_0xe08f67('0x32')]===_0xe08f67('0xf')&&(_0x26d99a[_0xe08f67('0x24')]=qs[_0xe08f67('0x24')](_0x32d82d[_0xe08f67('0x1c')][_0xe08f67('0x24')]),_0x26d99a[_0xe08f67('0x22')]=qs['offset'](_0x32d82d['query']['offset'])),_0x3ede6d[_0xe08f67('0x5e')](_0x26d99a);})[_0x38f431('0x3d')](function(_0x4af197){if(_0x4af197)return _0x4af197?{'count':_0x289e7e,'rows':_0x4af197}:null;})[_0x38f431('0x3d')](respondWithResult(_0x355132,null))['catch'](handleError(_0x355132,null));}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.events.js b/server/api/openchannelQueue/openchannelQueue.events.js index eb69af4..6262761 100644 --- a/server/api/openchannelQueue/openchannelQueue.events.js +++ b/server/api/openchannelQueue/openchannelQueue.events.js @@ -1 +1 @@ -const a495_0x22b7=['save','events','../../mysqldb','setMaxListeners','addHook','exports','update','remove','undefined','emit','OpenchannelQueue'];(function(_0x98039a,_0x22b7e2){const _0x1dd4b2=function(_0x5afdea){while(--_0x5afdea){_0x98039a['push'](_0x98039a['shift']());}};_0x1dd4b2(++_0x22b7e2);}(a495_0x22b7,0x16d));const a495_0x1dd4=function(_0x98039a,_0x22b7e2){_0x98039a=_0x98039a-0x0;let _0x1dd4b2=a495_0x22b7[_0x98039a];return _0x1dd4b2;};const _0xb6b15c=a495_0x1dd4;'use strict';const EventEmitter=require(_0xb6b15c('0xa')),OpenchannelQueue=require(_0xb6b15c('0x0'))['db'][_0xb6b15c('0x8')],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0xb6b15c('0x1')](0x0);const events={'afterCreate':_0xb6b15c('0x9'),'afterUpdate':_0xb6b15c('0x4'),'afterDestroy':_0xb6b15c('0x5')};function emitEvent(_0x5afdea){return function(_0x7ffeeb){const _0xfdd55a=a495_0x1dd4;OpenchannelQueueEvents[_0xfdd55a('0x7')](_0x5afdea+':'+_0x7ffeeb['id'],_0x7ffeeb),OpenchannelQueueEvents[_0xfdd55a('0x7')](_0x5afdea,_0x7ffeeb);};}for(const e in events){if(typeof events[e]!==_0xb6b15c('0x6')){const event=events[e];OpenchannelQueue[_0xb6b15c('0x2')](e,emitEvent(event));}}module[_0xb6b15c('0x3')]=OpenchannelQueueEvents; \ No newline at end of file +const a495_0xed20=['update','addHook','exports','setMaxListeners','undefined','emit','events','remove','OpenchannelQueue','../../mysqldb','save'];(function(_0x55ff70,_0xed205d){const _0x270247=function(_0x3fe7da){while(--_0x3fe7da){_0x55ff70['push'](_0x55ff70['shift']());}};_0x270247(++_0xed205d);}(a495_0xed20,0xc2));const a495_0x2702=function(_0x55ff70,_0xed205d){_0x55ff70=_0x55ff70-0x0;let _0x270247=a495_0xed20[_0x55ff70];return _0x270247;};const _0x21ed9b=a495_0x2702;'use strict';const EventEmitter=require(_0x21ed9b('0xa')),OpenchannelQueue=require(_0x21ed9b('0x2'))['db'][_0x21ed9b('0x1')],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0x21ed9b('0x7')](0x0);const events={'afterCreate':_0x21ed9b('0x3'),'afterUpdate':_0x21ed9b('0x4'),'afterDestroy':_0x21ed9b('0x0')};function emitEvent(_0x3fe7da){return function(_0x3b0261){const _0x9f30e0=a495_0x2702;OpenchannelQueueEvents['emit'](_0x3fe7da+':'+_0x3b0261['id'],_0x3b0261),OpenchannelQueueEvents[_0x9f30e0('0x9')](_0x3fe7da,_0x3b0261);};}for(const e in events){if(typeof events[e]!==_0x21ed9b('0x8')){const event=events[e];OpenchannelQueue[_0x21ed9b('0x5')](e,emitEvent(event));}}module[_0x21ed9b('0x6')]=OpenchannelQueueEvents; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.model.js b/server/api/openchannelQueue/openchannelQueue.model.js index 23fa935..dccc0f5 100644 --- a/server/api/openchannelQueue/openchannelQueue.model.js +++ b/server/api/openchannelQueue/openchannelQueue.model.js @@ -1 +1 @@ -const a496_0x16d2=['OpenchannelQueue','openchannel_queues','./openchannelQueue.attributes','exports','define'];(function(_0x3212c1,_0x16d288){const _0x316917=function(_0x5a9659){while(--_0x5a9659){_0x3212c1['push'](_0x3212c1['shift']());}};_0x316917(++_0x16d288);}(a496_0x16d2,0x1cd));const a496_0x3169=function(_0x3212c1,_0x16d288){_0x3212c1=_0x3212c1-0x0;let _0x316917=a496_0x16d2[_0x3212c1];return _0x316917;};const _0x5b6485=a496_0x3169;'use strict';const attributes=require(_0x5b6485('0x1'));module[_0x5b6485('0x2')]=function(_0x5a9659){const _0x3dfaf3=_0x5b6485,_0x174ad5=_0x5a9659[_0x3dfaf3('0x3')](_0x3dfaf3('0x4'),attributes,{'tableName':_0x3dfaf3('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x174ad5;}; \ No newline at end of file +const a496_0x4c75=['./openchannelQueue.attributes','define','OpenchannelQueue','openchannel_queues'];(function(_0x444387,_0x4c7500){const _0x2950a4=function(_0x39bfc6){while(--_0x39bfc6){_0x444387['push'](_0x444387['shift']());}};_0x2950a4(++_0x4c7500);}(a496_0x4c75,0x13d));const a496_0x2950=function(_0x444387,_0x4c7500){_0x444387=_0x444387-0x0;let _0x2950a4=a496_0x4c75[_0x444387];return _0x2950a4;};const _0x5a7db9=a496_0x2950;'use strict';const attributes=require(_0x5a7db9('0x3'));module['exports']=function(_0x39bfc6){const _0x46660d=_0x5a7db9,_0x84d5a0=_0x39bfc6[_0x46660d('0x0')](_0x46660d('0x1'),attributes,{'tableName':_0x46660d('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x84d5a0;}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.rpc.js b/server/api/openchannelQueue/openchannelQueue.rpc.js index d495008..edd9a19 100644 --- a/server/api/openchannelQueue/openchannelQueue.rpc.js +++ b/server/api/openchannelQueue/openchannelQueue.rpc.js @@ -1 +1 @@ -const a497_0x2b43=['map','then','findOne','where','rpc','catch','info','attributes','../../rediscache','model','raw','OpenchannelQueue','./openchannelQueue.socket','limit','stringify','../../config/logger','ShowOpenchannelQueue','options','include','register','message','error','GetOpenchannelQueue','findAll','debug'];(function(_0x156b4f,_0x2b43d1){const _0x363ac4=function(_0x1707c6){while(--_0x1707c6){_0x156b4f['push'](_0x156b4f['shift']());}};_0x363ac4(++_0x2b43d1);}(a497_0x2b43,0xc3));const a497_0x363a=function(_0x156b4f,_0x2b43d1){_0x156b4f=_0x156b4f-0x0;let _0x363ac4=a497_0x2b43[_0x156b4f];return _0x363ac4;};const _0x1d7a93=a497_0x363a;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x1d7a93('0x14'))(_0x1d7a93('0x9')),{getSocket}=require(_0x1d7a93('0xd')),socket=getSocket();require(_0x1d7a93('0x11'))[_0x1d7a93('0x18')](socket),exports[_0x1d7a93('0x2')]=function(_0x1707c6){const _0x248e62=this;return new Promise(function(_0x449305,_0x2aa9a9){const _0x1b52e9=a497_0x363a;return db[_0x1b52e9('0x10')][_0x1b52e9('0x3')]({'raw':_0x1707c6[_0x1b52e9('0x16')]?_0x1707c6[_0x1b52e9('0x16')][_0x1b52e9('0xf')]===undefined?!![]:![]:!![],'where':_0x1707c6[_0x1b52e9('0x16')]?_0x1707c6[_0x1b52e9('0x16')][_0x1b52e9('0x8')]||null:null,'attributes':_0x1707c6[_0x1b52e9('0x16')]?_0x1707c6['options'][_0x1b52e9('0xc')]||null:null,'limit':_0x1707c6['options']?_0x1707c6[_0x1b52e9('0x16')][_0x1b52e9('0x12')]||null:null,'include':_0x1707c6[_0x1b52e9('0x16')]?_0x1707c6['options'][_0x1b52e9('0x17')]?_[_0x1b52e9('0x5')](_0x1707c6[_0x1b52e9('0x16')][_0x1b52e9('0x17')],function(_0x144b9a){const _0x508ef8=_0x1b52e9;return{'model':db[_0x144b9a['model']],'as':_0x144b9a['as'],'attributes':_0x144b9a['attributes'],'include':_0x144b9a['include']?_['map'](_0x144b9a[_0x508ef8('0x17')],function(_0x1ddfaa){const _0x11e659=_0x508ef8;return{'model':db[_0x1ddfaa[_0x11e659('0xe')]],'as':_0x1ddfaa['as'],'attributes':_0x1ddfaa[_0x11e659('0xc')],'include':_0x1ddfaa[_0x11e659('0x17')]?_['map'](_0x1ddfaa['include'],function(_0x212a7d){const _0x4884b0=_0x11e659;return{'model':db[_0x212a7d[_0x4884b0('0xe')]],'as':_0x212a7d['as'],'attributes':_0x212a7d[_0x4884b0('0xc')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x46d045){const _0xf4af05=_0x1b52e9;logger[_0xf4af05('0xb')](_0xf4af05('0x2'),_0x1707c6),logger[_0xf4af05('0x4')](_0xf4af05('0x2'),_0x1707c6,JSON['stringify'](_0x46d045)),_0x449305(_0x46d045);})[_0x1b52e9('0xa')](function(_0x57b7cc){const _0xbbf2ce=_0x1b52e9;logger[_0xbbf2ce('0x1')](_0xbbf2ce('0x2'),_0x57b7cc[_0xbbf2ce('0x0')],_0x1707c6),_0x2aa9a9(_0x248e62[_0xbbf2ce('0x1')](0x1f4,_0x57b7cc[_0xbbf2ce('0x0')]));});});},exports[_0x1d7a93('0x15')]=function(_0x22ae8c){const _0x15b6d1=this;return new Promise(function(_0x1a9256,_0x479182){const _0x352251=a497_0x363a;return db['OpenchannelQueue'][_0x352251('0x7')]({'raw':_0x22ae8c[_0x352251('0x16')]?_0x22ae8c[_0x352251('0x16')][_0x352251('0xf')]===undefined?!![]:![]:!![],'where':_0x22ae8c[_0x352251('0x16')]?_0x22ae8c[_0x352251('0x16')][_0x352251('0x8')]||null:null,'attributes':_0x22ae8c['options']?_0x22ae8c[_0x352251('0x16')][_0x352251('0xc')]||null:null,'include':_0x22ae8c[_0x352251('0x16')]?_0x22ae8c['options'][_0x352251('0x17')]?_[_0x352251('0x5')](_0x22ae8c[_0x352251('0x16')][_0x352251('0x17')],function(_0x1a2af3){const _0x903c55=_0x352251;return{'model':db[_0x1a2af3[_0x903c55('0xe')]],'as':_0x1a2af3['as'],'attributes':_0x1a2af3[_0x903c55('0xc')],'include':_0x1a2af3[_0x903c55('0x17')]?_[_0x903c55('0x5')](_0x1a2af3[_0x903c55('0x17')],function(_0x3a09ec){const _0x5f32df=_0x903c55;return{'model':db[_0x3a09ec[_0x5f32df('0xe')]],'as':_0x3a09ec['as'],'attributes':_0x3a09ec[_0x5f32df('0xc')],'include':_0x3a09ec[_0x5f32df('0x17')]?_['map'](_0x3a09ec[_0x5f32df('0x17')],function(_0x18bb88){const _0xb015f4=_0x5f32df;return{'model':db[_0x18bb88[_0xb015f4('0xe')]],'as':_0x18bb88['as'],'attributes':_0x18bb88[_0xb015f4('0xc')]};}):[]};}):[]};}):[]:[]})[_0x352251('0x6')](function(_0xfb63d){const _0x1051e4=_0x352251;logger[_0x1051e4('0xb')](_0x1051e4('0x15'),_0x22ae8c),logger['debug']('ShowOpenchannelQueue',_0x22ae8c,JSON[_0x1051e4('0x13')](_0xfb63d)),_0x1a9256(_0xfb63d);})[_0x352251('0xa')](function(_0x492350){const _0x4d41e7=_0x352251;logger[_0x4d41e7('0x1')](_0x4d41e7('0x15'),_0x492350[_0x4d41e7('0x0')],_0x22ae8c),_0x479182(_0x15b6d1[_0x4d41e7('0x1')](0x1f4,_0x492350[_0x4d41e7('0x0')]));});});}; \ No newline at end of file +const a497_0x2b8d=['error','stringify','map','./openchannelQueue.socket','message','register','model','../../mysqldb','attributes','debug','../../rediscache','findAll','findOne','raw','OpenchannelQueue','catch','../../config/logger','lodash','include','info','ShowOpenchannelQueue','GetOpenchannelQueue','then','where','options','rpc'];(function(_0x48693c,_0x2b8d99){const _0x46daca=function(_0x4c7b7e){while(--_0x4c7b7e){_0x48693c['push'](_0x48693c['shift']());}};_0x46daca(++_0x2b8d99);}(a497_0x2b8d,0x14a));const a497_0x46da=function(_0x48693c,_0x2b8d99){_0x48693c=_0x48693c-0x0;let _0x46daca=a497_0x2b8d[_0x48693c];return _0x46daca;};const _0x7aaf36=a497_0x46da;'use strict';const _=require(_0x7aaf36('0x19')),db=require(_0x7aaf36('0xf'))['db'],logger=require(_0x7aaf36('0x18'))(_0x7aaf36('0x7')),{getSocket}=require(_0x7aaf36('0x12')),socket=getSocket();require(_0x7aaf36('0xb'))[_0x7aaf36('0xd')](socket),exports[_0x7aaf36('0x3')]=function(_0x4c7b7e){const _0xde876=this;return new Promise(function(_0x120c56,_0x258fae){const _0x29d9ae=a497_0x46da;return db['OpenchannelQueue'][_0x29d9ae('0x13')]({'raw':_0x4c7b7e['options']?_0x4c7b7e[_0x29d9ae('0x6')]['raw']===undefined?!![]:![]:!![],'where':_0x4c7b7e[_0x29d9ae('0x6')]?_0x4c7b7e[_0x29d9ae('0x6')][_0x29d9ae('0x5')]||null:null,'attributes':_0x4c7b7e[_0x29d9ae('0x6')]?_0x4c7b7e['options'][_0x29d9ae('0x10')]||null:null,'limit':_0x4c7b7e[_0x29d9ae('0x6')]?_0x4c7b7e[_0x29d9ae('0x6')]['limit']||null:null,'include':_0x4c7b7e['options']?_0x4c7b7e[_0x29d9ae('0x6')][_0x29d9ae('0x0')]?_[_0x29d9ae('0xa')](_0x4c7b7e[_0x29d9ae('0x6')][_0x29d9ae('0x0')],function(_0xbfeda3){const _0x3f9675=_0x29d9ae;return{'model':db[_0xbfeda3[_0x3f9675('0xe')]],'as':_0xbfeda3['as'],'attributes':_0xbfeda3[_0x3f9675('0x10')],'include':_0xbfeda3['include']?_[_0x3f9675('0xa')](_0xbfeda3[_0x3f9675('0x0')],function(_0x196e0f){const _0x28020f=_0x3f9675;return{'model':db[_0x196e0f[_0x28020f('0xe')]],'as':_0x196e0f['as'],'attributes':_0x196e0f[_0x28020f('0x10')],'include':_0x196e0f[_0x28020f('0x0')]?_['map'](_0x196e0f[_0x28020f('0x0')],function(_0x303bc8){const _0x2a70b3=_0x28020f;return{'model':db[_0x303bc8[_0x2a70b3('0xe')]],'as':_0x303bc8['as'],'attributes':_0x303bc8['attributes']};}):[]};}):[]};}):[]:[]})[_0x29d9ae('0x4')](function(_0x303d9d){const _0x51afb8=_0x29d9ae;logger['info']('GetOpenchannelQueue',_0x4c7b7e),logger[_0x51afb8('0x11')](_0x51afb8('0x3'),_0x4c7b7e,JSON[_0x51afb8('0x9')](_0x303d9d)),_0x120c56(_0x303d9d);})[_0x29d9ae('0x17')](function(_0x597281){const _0x280809=_0x29d9ae;logger[_0x280809('0x8')](_0x280809('0x3'),_0x597281[_0x280809('0xc')],_0x4c7b7e),_0x258fae(_0xde876[_0x280809('0x8')](0x1f4,_0x597281[_0x280809('0xc')]));});});},exports[_0x7aaf36('0x2')]=function(_0x3310a9){const _0x41f335=this;return new Promise(function(_0x58b1dd,_0x2d5efd){const _0x2cbe01=a497_0x46da;return db[_0x2cbe01('0x16')][_0x2cbe01('0x14')]({'raw':_0x3310a9[_0x2cbe01('0x6')]?_0x3310a9[_0x2cbe01('0x6')][_0x2cbe01('0x15')]===undefined?!![]:![]:!![],'where':_0x3310a9[_0x2cbe01('0x6')]?_0x3310a9[_0x2cbe01('0x6')][_0x2cbe01('0x5')]||null:null,'attributes':_0x3310a9[_0x2cbe01('0x6')]?_0x3310a9[_0x2cbe01('0x6')]['attributes']||null:null,'include':_0x3310a9['options']?_0x3310a9[_0x2cbe01('0x6')][_0x2cbe01('0x0')]?_[_0x2cbe01('0xa')](_0x3310a9[_0x2cbe01('0x6')][_0x2cbe01('0x0')],function(_0x34888d){const _0x39876d=_0x2cbe01;return{'model':db[_0x34888d[_0x39876d('0xe')]],'as':_0x34888d['as'],'attributes':_0x34888d['attributes'],'include':_0x34888d[_0x39876d('0x0')]?_[_0x39876d('0xa')](_0x34888d[_0x39876d('0x0')],function(_0x11c859){const _0x5b67bc=_0x39876d;return{'model':db[_0x11c859[_0x5b67bc('0xe')]],'as':_0x11c859['as'],'attributes':_0x11c859[_0x5b67bc('0x10')],'include':_0x11c859[_0x5b67bc('0x0')]?_[_0x5b67bc('0xa')](_0x11c859[_0x5b67bc('0x0')],function(_0x103112){const _0x38e04d=_0x5b67bc;return{'model':db[_0x103112[_0x38e04d('0xe')]],'as':_0x103112['as'],'attributes':_0x103112[_0x38e04d('0x10')]};}):[]};}):[]};}):[]:[]})[_0x2cbe01('0x4')](function(_0x5541a5){const _0x9419a2=_0x2cbe01;logger[_0x9419a2('0x1')](_0x9419a2('0x2'),_0x3310a9),logger[_0x9419a2('0x11')]('ShowOpenchannelQueue',_0x3310a9,JSON['stringify'](_0x5541a5)),_0x58b1dd(_0x5541a5);})['catch'](function(_0x49bc93){const _0x3381c1=_0x2cbe01;logger['error'](_0x3381c1('0x2'),_0x49bc93[_0x3381c1('0xc')],_0x3310a9),_0x2d5efd(_0x41f335['error'](0x1f4,_0x49bc93['message']));});});}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.socket.js b/server/api/openchannelQueue/openchannelQueue.socket.js index 45aa4c5..7ca8ded 100644 --- a/server/api/openchannelQueue/openchannelQueue.socket.js +++ b/server/api/openchannelQueue/openchannelQueue.socket.js @@ -1 +1 @@ -const a498_0x58d0=['save','length','openchannelQueue:','./openchannelQueue.events','emit'];(function(_0x413b3a,_0x58d0af){const _0x543b75=function(_0x1e6a1d){while(--_0x1e6a1d){_0x413b3a['push'](_0x413b3a['shift']());}};_0x543b75(++_0x58d0af);}(a498_0x58d0,0x153));const a498_0x543b=function(_0x413b3a,_0x58d0af){_0x413b3a=_0x413b3a-0x0;let _0x543b75=a498_0x58d0[_0x413b3a];return _0x543b75;};const _0x47ee1d=a498_0x543b;'use strict';const OpenchannelQueueEvents=require(_0x47ee1d('0x4')),events=[_0x47ee1d('0x1'),'remove','update'];function createListener(_0x1e6a1d,_0x1f6c82){return function(_0xac5d4b){const _0x3e2394=a498_0x543b;_0x1f6c82[_0x3e2394('0x0')](_0x1e6a1d,_0xac5d4b);};}exports['register']=function(_0x25ef35){const _0x2d52cf=_0x47ee1d;for(let _0xcfe0c4=0x0,_0x2727c4=events[_0x2d52cf('0x2')];_0xcfe0c4<_0x2727c4;_0xcfe0c4++){const _0x123c40=events[_0xcfe0c4],_0x258def=createListener(_0x2d52cf('0x3')+_0x123c40,_0x25ef35);OpenchannelQueueEvents['on'](_0x123c40,_0x258def);}}; \ No newline at end of file +const a498_0x1186=['./openchannelQueue.events','remove','register','save','emit','update'];(function(_0x246695,_0x1186a9){const _0x45d751=function(_0x420fd9){while(--_0x420fd9){_0x246695['push'](_0x246695['shift']());}};_0x45d751(++_0x1186a9);}(a498_0x1186,0x1aa));const a498_0x45d7=function(_0x246695,_0x1186a9){_0x246695=_0x246695-0x0;let _0x45d751=a498_0x1186[_0x246695];return _0x45d751;};const _0x19d546=a498_0x45d7;'use strict';const OpenchannelQueueEvents=require(_0x19d546('0x0')),events=[_0x19d546('0x3'),_0x19d546('0x1'),_0x19d546('0x5')];function createListener(_0x420fd9,_0x41b42d){return function(_0xd21843){const _0x461f4f=a498_0x45d7;_0x41b42d[_0x461f4f('0x4')](_0x420fd9,_0xd21843);};}exports[_0x19d546('0x2')]=function(_0x11a283){for(let _0x168441=0x0,_0x37e0b4=events['length'];_0x168441<_0x37e0b4;_0x168441++){const _0x3c8028=events[_0x168441],_0x397e5d=createListener('openchannelQueue:'+_0x3c8028,_0x11a283);OpenchannelQueueEvents['on'](_0x3c8028,_0x397e5d);}}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/index.js b/server/api/openchannelQueueReport/index.js index e62316c..c056151 100644 --- a/server/api/openchannelQueueReport/index.js +++ b/server/api/openchannelQueueReport/index.js @@ -1 +1 @@ -const a499_0x3dd0=['/:id','post','update','create','express','../../components/auth/service','delete','/describe','put','./openchannelQueueReport.controller','get','index','exports','isAuthenticated','Router','destroy'];(function(_0x2d101d,_0x3dd028){const _0x53d914=function(_0x3b81d0){while(--_0x3b81d0){_0x2d101d['push'](_0x2d101d['shift']());}};_0x53d914(++_0x3dd028);}(a499_0x3dd0,0x147));const a499_0x53d9=function(_0x2d101d,_0x3dd028){_0x2d101d=_0x2d101d-0x0;let _0x53d914=a499_0x3dd0[_0x2d101d];return _0x53d914;};const _0x2591b1=a499_0x53d9;'use strict';const express=require(_0x2591b1('0xd')),router=express[_0x2591b1('0x7')](),auth=require(_0x2591b1('0xe')),controller=require(_0x2591b1('0x2'));router['get']('/',auth[_0x2591b1('0x6')](),controller[_0x2591b1('0x4')]),router[_0x2591b1('0x3')](_0x2591b1('0x0'),auth[_0x2591b1('0x6')](),controller['describe']),router[_0x2591b1('0x3')](_0x2591b1('0x9'),auth[_0x2591b1('0x6')](),controller['show']),router[_0x2591b1('0xa')]('/',auth[_0x2591b1('0x6')](),controller[_0x2591b1('0xc')]),router[_0x2591b1('0x1')]('/:id',auth[_0x2591b1('0x6')](),controller[_0x2591b1('0xb')]),router[_0x2591b1('0xf')]('/:id',auth[_0x2591b1('0x6')](),controller[_0x2591b1('0x8')]),module[_0x2591b1('0x5')]=router; \ No newline at end of file +const a499_0x4def=['express','show','/describe','index','isAuthenticated','./openchannelQueueReport.controller','create','post','/:id','get','exports','describe','../../components/auth/service','destroy','update'];(function(_0x231538,_0x4def72){const _0x379385=function(_0x3b1d8a){while(--_0x3b1d8a){_0x231538['push'](_0x231538['shift']());}};_0x379385(++_0x4def72);}(a499_0x4def,0x138));const a499_0x3793=function(_0x231538,_0x4def72){_0x231538=_0x231538-0x0;let _0x379385=a499_0x4def[_0x231538];return _0x379385;};const _0x574a34=a499_0x3793;'use strict';const express=require(_0x574a34('0x3')),router=express['Router'](),auth=require(_0x574a34('0x0')),controller=require(_0x574a34('0x8'));router[_0x574a34('0xc')]('/',auth[_0x574a34('0x7')](),controller[_0x574a34('0x6')]),router[_0x574a34('0xc')](_0x574a34('0x5'),auth['isAuthenticated'](),controller[_0x574a34('0xe')]),router[_0x574a34('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x574a34('0x4')]),router[_0x574a34('0xa')]('/',auth[_0x574a34('0x7')](),controller[_0x574a34('0x9')]),router['put'](_0x574a34('0xb'),auth[_0x574a34('0x7')](),controller[_0x574a34('0x2')]),router['delete'](_0x574a34('0xb'),auth[_0x574a34('0x7')](),controller[_0x574a34('0x1')]),module[_0x574a34('0xd')]=router; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js index c8c0847..fb05206 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js @@ -1 +1 @@ -const a500_0x4d12=['exports','STRING','sequelize','DATE'];(function(_0x34b300,_0x4d12ad){const _0x150dad=function(_0x4008eb){while(--_0x4008eb){_0x34b300['push'](_0x34b300['shift']());}};_0x150dad(++_0x4d12ad);}(a500_0x4d12,0x123));const a500_0x150d=function(_0x34b300,_0x4d12ad){_0x34b300=_0x34b300-0x0;let _0x150dad=a500_0x4d12[_0x34b300];return _0x150dad;};const _0x3f57e3=a500_0x150d;'use strict';const Sequelize=require(_0x3f57e3('0x3'));module[_0x3f57e3('0x1')]={'uniqueid':{'type':Sequelize[_0x3f57e3('0x2')],'allowNull':![]},'from':{'type':Sequelize[_0x3f57e3('0x2')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x3f57e3('0x0')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a500_0x48ae=['exports','DATE','STRING','sequelize'];(function(_0x39ea77,_0x48ae3c){const _0x21e33d=function(_0x5c9f98){while(--_0x5c9f98){_0x39ea77['push'](_0x39ea77['shift']());}};_0x21e33d(++_0x48ae3c);}(a500_0x48ae,0x122));const a500_0x21e3=function(_0x39ea77,_0x48ae3c){_0x39ea77=_0x39ea77-0x0;let _0x21e33d=a500_0x48ae[_0x39ea77];return _0x21e33d;};const _0x3133dc=a500_0x21e3;'use strict';const Sequelize=require(_0x3133dc('0x1'));module[_0x3133dc('0x2')]={'uniqueid':{'type':Sequelize[_0x3133dc('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0x3133dc('0x0')]},'joinAt':{'type':Sequelize[_0x3133dc('0x3')]},'leaveAt':{'type':Sequelize[_0x3133dc('0x3')]},'acceptAt':{'type':Sequelize[_0x3133dc('0x3')]},'exitAt':{'type':Sequelize[_0x3133dc('0x3')]},'reason':{'type':Sequelize[_0x3133dc('0x0')]}}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js index 3ccdb6b..74e5936 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js @@ -1 +1 @@ -const a501_0xae94=['includeAll','OpenchannelQueueReport','offset','body','options','map','lodash','where','filters','length','intersection','order','merge','set','include','count','status','fieldName','query','end','api','params','filter','stack','keys','undefined','rawAttributes','error','model','limit','sendStatus','destroy','describe','../../config/logger','../../components/parsers/qs','show','VIRTUAL','update','json','attributes','catch','rows','create','type','like','pick','sequelize','name','nolimit','then','fields','index','findOne','../../mysqldb'];(function(_0x59af6f,_0xae94a6){const _0x3e021d=function(_0x4235a6){while(--_0x4235a6){_0x59af6f['push'](_0x59af6f['shift']());}};_0x3e021d(++_0xae94a6);}(a501_0xae94,0x135));const a501_0x3e02=function(_0x59af6f,_0xae94a6){_0x59af6f=_0x59af6f-0x0;let _0x3e021d=a501_0xae94[_0x59af6f];return _0x3e021d;};const _0x4482eb=a501_0x3e02;'use strict';const _=require(_0x4482eb('0x15')),qs=require(_0x4482eb('0x31')),logger=require(_0x4482eb('0x30'))(_0x4482eb('0x23')),db=require(_0x4482eb('0xe'))['db'],{Op}=require(_0x4482eb('0x7'));function respondWithResult(_0x4235a6,_0x231f63){return _0x231f63=_0x231f63||0xc8,function(_0x365faa){const _0xadf236=a501_0x3e02;if(_0x365faa)return _0x4235a6[_0xadf236('0x1f')](_0x231f63)[_0xadf236('0x35')](_0x365faa);};}function respondWithFilteredResult(_0x2c75fb,_0x16d936){return function(_0x5f0696){const _0x4a13de=a501_0x3e02;if(_0x5f0696){const _0x29f1b7=_0x5f0696[_0x4a13de('0x1e')],_0x3f5ba3=_0x16d936['offset'];let _0x5775aa=_0x16d936[_0x4a13de('0x11')]+_0x16d936[_0x4a13de('0x2c')],_0x2da157;return _0x5775aa>=_0x29f1b7?(_0x5775aa=_0x29f1b7,_0x2da157=0xc8):_0x2da157=0xce,_0x2c75fb['status'](_0x2da157),_0x2c75fb[_0x4a13de('0x1c')]('Content-Range',_0x3f5ba3+'-'+_0x5775aa+'/'+_0x29f1b7)[_0x4a13de('0x35')](_0x5f0696);}return null;};}function saveUpdates(_0x214d2c){return function(_0x480ae2){const _0x36832a=a501_0x3e02;if(_0x480ae2)return _0x480ae2[_0x36832a('0x34')](_0x214d2c)[_0x36832a('0xa')](function(_0x1fab43){return _0x1fab43;});return null;};}function removeEntity(_0xc9f5cb){return function(_0x292f31){const _0x1b1344=a501_0x3e02;if(_0x292f31)return _0x292f31[_0x1b1344('0x2e')]()[_0x1b1344('0xa')](function(){const _0x39de94=_0x1b1344;_0xc9f5cb['status'](0xcc)[_0x39de94('0x22')]();});};}function handleEntityNotFound(_0x491f89){return function(_0x1c6a19){const _0x3311ae=a501_0x3e02;return!_0x1c6a19&&_0x491f89[_0x3311ae('0x2d')](0x194),_0x1c6a19;};}function handleError(_0x599c5a,_0x1f4673){return _0x1f4673=_0x1f4673||0x1f4,function(_0x3cd437){const _0x28cf90=a501_0x3e02;logger[_0x28cf90('0x2a')](_0x3cd437[_0x28cf90('0x26')]),_0x3cd437[_0x28cf90('0x8')]&&delete _0x3cd437[_0x28cf90('0x8')],_0x599c5a[_0x28cf90('0x1f')](_0x1f4673)['send'](_0x3cd437);};}exports[_0x4482eb('0xc')]=function(_0xac9b09,_0x280a4a){const _0x5320a0=_0x4482eb;let _0x40c1d9={};const _0x58ac31={},_0x2cf9db={'count':0x0,'rows':[]},_0x5c12ed=_[_0x5320a0('0x14')](db[_0x5320a0('0x10')][_0x5320a0('0x29')],function(_0x4f995c){const _0x1618b9=_0x5320a0;return{'name':_0x4f995c[_0x1618b9('0x20')],'type':_0x4f995c['type']['key']};});_0x58ac31[_0x5320a0('0x2b')]=_[_0x5320a0('0x14')](_0x5c12ed,_0x5320a0('0x8')),_0x58ac31['query']=_[_0x5320a0('0x27')](_0xac9b09[_0x5320a0('0x21')]),_0x58ac31[_0x5320a0('0x17')]=_[_0x5320a0('0x19')](_0x58ac31[_0x5320a0('0x2b')],_0x58ac31['query']),_0x40c1d9['attributes']=_[_0x5320a0('0x19')](_0x58ac31[_0x5320a0('0x2b')],qs[_0x5320a0('0xb')](_0xac9b09[_0x5320a0('0x21')][_0x5320a0('0xb')])),_0x40c1d9['attributes']=_0x40c1d9[_0x5320a0('0x0')][_0x5320a0('0x18')]?_0x40c1d9['attributes']:_0x58ac31[_0x5320a0('0x2b')];typeof _0xac9b09[_0x5320a0('0x21')][_0x5320a0('0x9')]===_0x5320a0('0x28')&&(_0x40c1d9['limit']=qs[_0x5320a0('0x2c')](_0xac9b09['query']['limit']),_0x40c1d9['offset']=qs['offset'](_0xac9b09[_0x5320a0('0x21')][_0x5320a0('0x11')]));_0x40c1d9[_0x5320a0('0x1a')]=qs['sort'](_0xac9b09[_0x5320a0('0x21')]['sort']),_0x40c1d9[_0x5320a0('0x16')]=qs[_0x5320a0('0x17')](_[_0x5320a0('0x6')](_0xac9b09[_0x5320a0('0x21')],_0x58ac31[_0x5320a0('0x17')]),_0x5c12ed);_0xac9b09['query'][_0x5320a0('0x25')]&&(_0x40c1d9[_0x5320a0('0x16')]=_[_0x5320a0('0x1b')](_0x40c1d9[_0x5320a0('0x16')],{[Op['or']]:_[_0x5320a0('0x14')](_0x5c12ed,function(_0x33999a){const _0x45e805=_0x5320a0;if(_0x33999a[_0x45e805('0x4')]!==_0x45e805('0x33')){const _0x5beae7={};return _0x5beae7[_0x33999a[_0x45e805('0x8')]]={[Op[_0x45e805('0x5')]]:'%'+_0xac9b09[_0x45e805('0x21')]['filter']+'%'},_0x5beae7;}})}));_0x40c1d9=_['merge']({},_0x40c1d9,_0xac9b09['options']);const _0x3b0f20={'where':_0x40c1d9[_0x5320a0('0x16')]};return db[_0x5320a0('0x10')][_0x5320a0('0x1e')](_0x3b0f20)['then'](function(_0x1916f2){const _0x2ebda7=_0x5320a0;return _0x2cf9db['count']=_0x1916f2,_0xac9b09[_0x2ebda7('0x21')]['includeAll']&&(_0x40c1d9[_0x2ebda7('0x1d')]=[{'all':!![]}]),db[_0x2ebda7('0x10')]['findAll'](_0x40c1d9);})['then'](function(_0xef3171){const _0x561929=_0x5320a0;return _0x2cf9db[_0x561929('0x2')]=_0xef3171,_0x2cf9db;})[_0x5320a0('0xa')](respondWithFilteredResult(_0x280a4a,_0x40c1d9))[_0x5320a0('0x1')](handleError(_0x280a4a,null));},exports[_0x4482eb('0x32')]=function(_0x1a8e81,_0x1e113f){const _0xb49744=_0x4482eb;let _0x360674={'raw':!![],'where':{'id':_0x1a8e81[_0xb49744('0x24')]['id']}};const _0x4c64d9={};return _0x4c64d9[_0xb49744('0x2b')]=_[_0xb49744('0x27')](db[_0xb49744('0x10')][_0xb49744('0x29')]),_0x4c64d9['query']=_[_0xb49744('0x27')](_0x1a8e81['query']),_0x4c64d9[_0xb49744('0x17')]=_[_0xb49744('0x19')](_0x4c64d9[_0xb49744('0x2b')],_0x4c64d9[_0xb49744('0x21')]),_0x360674[_0xb49744('0x0')]=_[_0xb49744('0x19')](_0x4c64d9[_0xb49744('0x2b')],qs[_0xb49744('0xb')](_0x1a8e81[_0xb49744('0x21')][_0xb49744('0xb')])),_0x360674[_0xb49744('0x0')]=_0x360674[_0xb49744('0x0')][_0xb49744('0x18')]?_0x360674['attributes']:_0x4c64d9['model'],_0x1a8e81['query'][_0xb49744('0xf')]&&(_0x360674[_0xb49744('0x1d')]=[{'all':!![]}]),_0x360674=_[_0xb49744('0x1b')]({},_0x360674,_0x1a8e81[_0xb49744('0x13')]),db[_0xb49744('0x10')][_0xb49744('0xd')](_0x360674)[_0xb49744('0xa')](handleEntityNotFound(_0x1e113f,null))['then'](respondWithResult(_0x1e113f,null))['catch'](handleError(_0x1e113f,null));},exports[_0x4482eb('0x3')]=function(_0x27094b,_0x2c4b88){const _0x28f004=_0x4482eb;return db[_0x28f004('0x10')][_0x28f004('0x3')](_0x27094b['body'],{})[_0x28f004('0xa')](respondWithResult(_0x2c4b88,0xc9))['catch'](handleError(_0x2c4b88,null));},exports[_0x4482eb('0x34')]=function(_0x19ce5e,_0x33b4fd){const _0x36c2b0=_0x4482eb;return _0x19ce5e[_0x36c2b0('0x12')]['id']&&delete _0x19ce5e[_0x36c2b0('0x12')]['id'],db[_0x36c2b0('0x10')][_0x36c2b0('0xd')]({'where':{'id':_0x19ce5e['params']['id']}})[_0x36c2b0('0xa')](handleEntityNotFound(_0x33b4fd,null))[_0x36c2b0('0xa')](saveUpdates(_0x19ce5e[_0x36c2b0('0x12')],null))[_0x36c2b0('0xa')](respondWithResult(_0x33b4fd,null))[_0x36c2b0('0x1')](handleError(_0x33b4fd,null));},exports['destroy']=function(_0x3ce836,_0x5581c7){const _0x1a2c3c=_0x4482eb;return db['OpenchannelQueueReport'][_0x1a2c3c('0xd')]({'where':{'id':_0x3ce836[_0x1a2c3c('0x24')]['id']}})[_0x1a2c3c('0xa')](handleEntityNotFound(_0x5581c7,null))['then'](removeEntity(_0x5581c7,null))[_0x1a2c3c('0x1')](handleError(_0x5581c7,null));},exports[_0x4482eb('0x2f')]=function(_0x3e5a87,_0x45ed3a){const _0x299b6b=_0x4482eb;return db[_0x299b6b('0x10')]['describe']()[_0x299b6b('0xa')](respondWithResult(_0x45ed3a,null))[_0x299b6b('0x1')](handleError(_0x45ed3a,null));}; \ No newline at end of file +const a501_0x4bc7=['rawAttributes','sort','where','intersection','key','like','body','../../components/parsers/qs','destroy','describe','then','../../mysqldb','json','offset','send','count','status','../../config/logger','keys','map','filters','name','order','index','attributes','create','merge','VIRTUAL','findOne','include','api','sendStatus','Content-Range','params','limit','show','length','rows','filter','OpenchannelQueueReport','fields','query','nolimit','fieldName','type','catch','model','options','includeAll'];(function(_0x585c79,_0x4bc766){const _0x253562=function(_0x44950b){while(--_0x44950b){_0x585c79['push'](_0x585c79['shift']());}};_0x253562(++_0x4bc766);}(a501_0x4bc7,0xf0));const a501_0x2535=function(_0x585c79,_0x4bc766){_0x585c79=_0x585c79-0x0;let _0x253562=a501_0x4bc7[_0x585c79];return _0x253562;};const _0x1b16a7=a501_0x2535;'use strict';const _=require('lodash'),qs=require(_0x1b16a7('0xc')),logger=require(_0x1b16a7('0x16'))(_0x1b16a7('0x23')),db=require(_0x1b16a7('0x10'))['db'],{Op}=require('sequelize');function respondWithResult(_0x44950b,_0x1649fd){return _0x1649fd=_0x1649fd||0xc8,function(_0x300782){const _0xfcbb0b=a501_0x2535;if(_0x300782)return _0x44950b[_0xfcbb0b('0x15')](_0x1649fd)[_0xfcbb0b('0x11')](_0x300782);};}function respondWithFilteredResult(_0x47fd90,_0x2ee8a9){return function(_0x119203){const _0x417f46=a501_0x2535;if(_0x119203){const _0x48ab9f=_0x119203[_0x417f46('0x14')],_0x323e3d=_0x2ee8a9['offset'];let _0x190395=_0x2ee8a9[_0x417f46('0x12')]+_0x2ee8a9[_0x417f46('0x27')],_0x5abb22;return _0x190395>=_0x48ab9f?(_0x190395=_0x48ab9f,_0x5abb22=0xc8):_0x5abb22=0xce,_0x47fd90['status'](_0x5abb22),_0x47fd90['set'](_0x417f46('0x25'),_0x323e3d+'-'+_0x190395+'/'+_0x48ab9f)[_0x417f46('0x11')](_0x119203);}return null;};}function saveUpdates(_0x66f267){return function(_0x47e367){const _0x1f8f47=a501_0x2535;if(_0x47e367)return _0x47e367['update'](_0x66f267)[_0x1f8f47('0xf')](function(_0x3fede9){return _0x3fede9;});return null;};}function removeEntity(_0x2544ea){return function(_0x20505e){const _0x525ef4=a501_0x2535;if(_0x20505e)return _0x20505e[_0x525ef4('0xd')]()[_0x525ef4('0xf')](function(){_0x2544ea['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x3b17ff){return function(_0x517e29){const _0x2d1d70=a501_0x2535;return!_0x517e29&&_0x3b17ff[_0x2d1d70('0x24')](0x194),_0x517e29;};}function handleError(_0x3f331f,_0x4702d5){return _0x4702d5=_0x4702d5||0x1f4,function(_0x524a6e){const _0x4bc7fe=a501_0x2535;logger['error'](_0x524a6e['stack']),_0x524a6e[_0x4bc7fe('0x1a')]&&delete _0x524a6e['name'],_0x3f331f['status'](_0x4702d5)[_0x4bc7fe('0x13')](_0x524a6e);};}exports[_0x1b16a7('0x1c')]=function(_0x23cfcb,_0x49c7f4){const _0x16fa09=_0x1b16a7;let _0x213b1e={};const _0x1ce289={},_0x359f60={'count':0x0,'rows':[]},_0x1cb798=_['map'](db['OpenchannelQueueReport'][_0x16fa09('0x5')],function(_0x1d9cc7){const _0x3aea5c=_0x16fa09;return{'name':_0x1d9cc7[_0x3aea5c('0x30')],'type':_0x1d9cc7[_0x3aea5c('0x0')][_0x3aea5c('0x9')]};});_0x1ce289[_0x16fa09('0x2')]=_[_0x16fa09('0x18')](_0x1cb798,'name'),_0x1ce289[_0x16fa09('0x2e')]=_[_0x16fa09('0x17')](_0x23cfcb[_0x16fa09('0x2e')]),_0x1ce289[_0x16fa09('0x19')]=_['intersection'](_0x1ce289[_0x16fa09('0x2')],_0x1ce289['query']),_0x213b1e[_0x16fa09('0x1d')]=_[_0x16fa09('0x8')](_0x1ce289[_0x16fa09('0x2')],qs[_0x16fa09('0x2d')](_0x23cfcb[_0x16fa09('0x2e')][_0x16fa09('0x2d')])),_0x213b1e[_0x16fa09('0x1d')]=_0x213b1e[_0x16fa09('0x1d')][_0x16fa09('0x29')]?_0x213b1e[_0x16fa09('0x1d')]:_0x1ce289[_0x16fa09('0x2')];typeof _0x23cfcb[_0x16fa09('0x2e')][_0x16fa09('0x2f')]==='undefined'&&(_0x213b1e[_0x16fa09('0x27')]=qs[_0x16fa09('0x27')](_0x23cfcb[_0x16fa09('0x2e')][_0x16fa09('0x27')]),_0x213b1e['offset']=qs[_0x16fa09('0x12')](_0x23cfcb[_0x16fa09('0x2e')][_0x16fa09('0x12')]));_0x213b1e[_0x16fa09('0x1b')]=qs[_0x16fa09('0x6')](_0x23cfcb[_0x16fa09('0x2e')][_0x16fa09('0x6')]),_0x213b1e['where']=qs['filters'](_['pick'](_0x23cfcb[_0x16fa09('0x2e')],_0x1ce289[_0x16fa09('0x19')]),_0x1cb798);_0x23cfcb[_0x16fa09('0x2e')][_0x16fa09('0x2b')]&&(_0x213b1e[_0x16fa09('0x7')]=_['merge'](_0x213b1e[_0x16fa09('0x7')],{[Op['or']]:_['map'](_0x1cb798,function(_0x39bd15){const _0x20c3b0=_0x16fa09;if(_0x39bd15['type']!==_0x20c3b0('0x20')){const _0x4a092c={};return _0x4a092c[_0x39bd15[_0x20c3b0('0x1a')]]={[Op[_0x20c3b0('0xa')]]:'%'+_0x23cfcb[_0x20c3b0('0x2e')]['filter']+'%'},_0x4a092c;}})}));_0x213b1e=_[_0x16fa09('0x1f')]({},_0x213b1e,_0x23cfcb[_0x16fa09('0x3')]);const _0x475c4d={'where':_0x213b1e[_0x16fa09('0x7')]};return db[_0x16fa09('0x2c')][_0x16fa09('0x14')](_0x475c4d)[_0x16fa09('0xf')](function(_0x10486d){const _0x191b71=_0x16fa09;return _0x359f60[_0x191b71('0x14')]=_0x10486d,_0x23cfcb[_0x191b71('0x2e')][_0x191b71('0x4')]&&(_0x213b1e[_0x191b71('0x22')]=[{'all':!![]}]),db[_0x191b71('0x2c')]['findAll'](_0x213b1e);})[_0x16fa09('0xf')](function(_0x81cbc1){const _0x18e6ef=_0x16fa09;return _0x359f60[_0x18e6ef('0x2a')]=_0x81cbc1,_0x359f60;})['then'](respondWithFilteredResult(_0x49c7f4,_0x213b1e))[_0x16fa09('0x1')](handleError(_0x49c7f4,null));},exports[_0x1b16a7('0x28')]=function(_0x27a6fe,_0xddf21a){const _0xa8bed5=_0x1b16a7;let _0x4cf099={'raw':!![],'where':{'id':_0x27a6fe[_0xa8bed5('0x26')]['id']}};const _0x1b6387={};return _0x1b6387[_0xa8bed5('0x2')]=_['keys'](db[_0xa8bed5('0x2c')][_0xa8bed5('0x5')]),_0x1b6387[_0xa8bed5('0x2e')]=_[_0xa8bed5('0x17')](_0x27a6fe[_0xa8bed5('0x2e')]),_0x1b6387['filters']=_[_0xa8bed5('0x8')](_0x1b6387[_0xa8bed5('0x2')],_0x1b6387[_0xa8bed5('0x2e')]),_0x4cf099[_0xa8bed5('0x1d')]=_['intersection'](_0x1b6387['model'],qs[_0xa8bed5('0x2d')](_0x27a6fe['query'][_0xa8bed5('0x2d')])),_0x4cf099[_0xa8bed5('0x1d')]=_0x4cf099[_0xa8bed5('0x1d')][_0xa8bed5('0x29')]?_0x4cf099[_0xa8bed5('0x1d')]:_0x1b6387[_0xa8bed5('0x2')],_0x27a6fe[_0xa8bed5('0x2e')][_0xa8bed5('0x4')]&&(_0x4cf099[_0xa8bed5('0x22')]=[{'all':!![]}]),_0x4cf099=_['merge']({},_0x4cf099,_0x27a6fe[_0xa8bed5('0x3')]),db['OpenchannelQueueReport']['findOne'](_0x4cf099)[_0xa8bed5('0xf')](handleEntityNotFound(_0xddf21a,null))[_0xa8bed5('0xf')](respondWithResult(_0xddf21a,null))[_0xa8bed5('0x1')](handleError(_0xddf21a,null));},exports[_0x1b16a7('0x1e')]=function(_0x1d54d7,_0x1f7e66){const _0x24d763=_0x1b16a7;return db['OpenchannelQueueReport'][_0x24d763('0x1e')](_0x1d54d7['body'],{})[_0x24d763('0xf')](respondWithResult(_0x1f7e66,0xc9))[_0x24d763('0x1')](handleError(_0x1f7e66,null));},exports['update']=function(_0x3153ef,_0x80047b){const _0xbb6663=_0x1b16a7;return _0x3153ef['body']['id']&&delete _0x3153ef[_0xbb6663('0xb')]['id'],db['OpenchannelQueueReport'][_0xbb6663('0x21')]({'where':{'id':_0x3153ef[_0xbb6663('0x26')]['id']}})[_0xbb6663('0xf')](handleEntityNotFound(_0x80047b,null))['then'](saveUpdates(_0x3153ef[_0xbb6663('0xb')],null))[_0xbb6663('0xf')](respondWithResult(_0x80047b,null))[_0xbb6663('0x1')](handleError(_0x80047b,null));},exports[_0x1b16a7('0xd')]=function(_0x1df7ae,_0x46b309){const _0x47f335=_0x1b16a7;return db[_0x47f335('0x2c')]['findOne']({'where':{'id':_0x1df7ae[_0x47f335('0x26')]['id']}})['then'](handleEntityNotFound(_0x46b309,null))[_0x47f335('0xf')](removeEntity(_0x46b309,null))[_0x47f335('0x1')](handleError(_0x46b309,null));},exports[_0x1b16a7('0xe')]=function(_0x333dfe,_0x1781f4){const _0x5e1e67=_0x1b16a7;return db[_0x5e1e67('0x2c')][_0x5e1e67('0xe')]()[_0x5e1e67('0xf')](respondWithResult(_0x1781f4,null))[_0x5e1e67('0x1')](handleError(_0x1781f4,null));}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.model.js b/server/api/openchannelQueueReport/openchannelQueueReport.model.js index f8c6fa6..bac46fb 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.model.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.model.js @@ -1 +1 @@ -const a502_0x3c17=['uniqueid','./openchannelQueueReport.attributes','exports','OpenchannelQueueReport','define'];(function(_0x2ca3d5,_0x3c173f){const _0x3be042=function(_0x194708){while(--_0x194708){_0x2ca3d5['push'](_0x2ca3d5['shift']());}};_0x3be042(++_0x3c173f);}(a502_0x3c17,0xff));const a502_0x3be0=function(_0x2ca3d5,_0x3c173f){_0x2ca3d5=_0x2ca3d5-0x0;let _0x3be042=a502_0x3c17[_0x2ca3d5];return _0x3be042;};const _0x2c64f9=a502_0x3be0;'use strict';const attributes=require(_0x2c64f9('0x1'));module[_0x2c64f9('0x2')]=function(_0x194708){const _0x25291f=_0x2c64f9,_0x779ebc=_0x194708[_0x25291f('0x4')](_0x25291f('0x3'),attributes,{'tableName':'report_openchannel_queue','paranoid':![],'indexes':[{'name':_0x25291f('0x0'),'fields':[_0x25291f('0x0')]}],'timestamps':!![]});return _0x779ebc;}; \ No newline at end of file +const a502_0x19c1=['exports','define','uniqueid','OpenchannelQueueReport','report_openchannel_queue','./openchannelQueueReport.attributes'];(function(_0x143549,_0x19c1a6){const _0x44ed45=function(_0x1197f9){while(--_0x1197f9){_0x143549['push'](_0x143549['shift']());}};_0x44ed45(++_0x19c1a6);}(a502_0x19c1,0x122));const a502_0x44ed=function(_0x143549,_0x19c1a6){_0x143549=_0x143549-0x0;let _0x44ed45=a502_0x19c1[_0x143549];return _0x44ed45;};const _0x4c9fe7=a502_0x44ed;'use strict';const attributes=require(_0x4c9fe7('0x3'));module[_0x4c9fe7('0x4')]=function(_0x1197f9){const _0x127d28=_0x4c9fe7,_0x2a9172=_0x1197f9[_0x127d28('0x5')](_0x127d28('0x1'),attributes,{'tableName':_0x127d28('0x2'),'paranoid':![],'indexes':[{'name':_0x127d28('0x0'),'fields':['uniqueid']}],'timestamps':!![]});return _0x2a9172;}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js index 9c05913..a7f6434 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js @@ -1 +1 @@ -const a503_0x335d=['CreateOpenchannelQueueReport','error','raw','body','stringify','../../config/logger','message','create','info','UpdateOpenchannelQueueReport','where','then','attributes','update','rpc','catch','../../mysqldb','options'];(function(_0x1bf2c6,_0x335da9){const _0x24f78d=function(_0x341059){while(--_0x341059){_0x1bf2c6['push'](_0x1bf2c6['shift']());}};_0x24f78d(++_0x335da9);}(a503_0x335d,0x102));const a503_0x24f7=function(_0x1bf2c6,_0x335da9){_0x1bf2c6=_0x1bf2c6-0x0;let _0x24f78d=a503_0x335d[_0x1bf2c6];return _0x24f78d;};const _0x2e7af8=a503_0x24f7;'use strict';const db=require(_0x2e7af8('0xa'))['db'],logger=require(_0x2e7af8('0x11'))(_0x2e7af8('0x8'));exports[_0x2e7af8('0xc')]=function(_0x341059){const _0x2746c2=this;return new Promise(function(_0x5df21b,_0x146711){const _0x212acc=a503_0x24f7;return db['OpenchannelQueueReport'][_0x212acc('0x1')](_0x341059[_0x212acc('0xf')],{'raw':_0x341059[_0x212acc('0xb')]?_0x341059[_0x212acc('0xb')][_0x212acc('0xe')]===undefined?!![]:![]:!![]})[_0x212acc('0x5')](function(_0x4e86d0){const _0x431668=_0x212acc;logger[_0x431668('0x2')](_0x431668('0xc'),_0x341059),logger['debug'](_0x431668('0xc'),_0x341059,JSON['stringify'](_0x4e86d0)),_0x5df21b(_0x4e86d0);})[_0x212acc('0x9')](function(_0x3c02f6){const _0x5e97bf=_0x212acc;logger[_0x5e97bf('0xd')](_0x5e97bf('0xc'),_0x3c02f6['message'],_0x341059),_0x146711(_0x2746c2[_0x5e97bf('0xd')](0x1f4,_0x3c02f6[_0x5e97bf('0x0')]));});});},exports[_0x2e7af8('0x3')]=function(_0x2c544c){const _0x20edd3=this;return new Promise(function(_0x45d9de,_0x333d78){const _0x5c7d23=a503_0x24f7;return db['OpenchannelQueueReport'][_0x5c7d23('0x7')](_0x2c544c[_0x5c7d23('0xf')],{'raw':_0x2c544c[_0x5c7d23('0xb')]?_0x2c544c[_0x5c7d23('0xb')][_0x5c7d23('0xe')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2c544c[_0x5c7d23('0xb')]?_0x2c544c['options'][_0x5c7d23('0x4')]||null:null,'attributes':_0x2c544c[_0x5c7d23('0xb')]?_0x2c544c['options'][_0x5c7d23('0x6')]||null:null,'limit':_0x2c544c[_0x5c7d23('0xb')]?_0x2c544c[_0x5c7d23('0xb')]['limit']||null:null})['then'](function(_0x10fcbb){const _0x499ab2=_0x5c7d23;logger[_0x499ab2('0x2')](_0x499ab2('0x3'),_0x2c544c),logger['debug'](_0x499ab2('0x3'),_0x2c544c,JSON[_0x499ab2('0x10')](_0x10fcbb)),_0x45d9de(_0x10fcbb);})[_0x5c7d23('0x9')](function(_0x512a82){const _0x7e2559=_0x5c7d23;logger[_0x7e2559('0xd')]('UpdateOpenchannelQueueReport',_0x512a82['message'],_0x2c544c),_0x333d78(_0x20edd3[_0x7e2559('0xd')](0x1f4,_0x512a82[_0x7e2559('0x0')]));});});}; \ No newline at end of file +const a503_0x9d1b=['rpc','body','update','error','UpdateOpenchannelQueueReport','../../config/logger','OpenchannelQueueReport','stringify','then','CreateOpenchannelQueueReport','info','options','raw','attributes','debug','where','message','catch'];(function(_0x234618,_0x9d1b25){const _0x507a5d=function(_0x240108){while(--_0x240108){_0x234618['push'](_0x234618['shift']());}};_0x507a5d(++_0x9d1b25);}(a503_0x9d1b,0xa4));const a503_0x507a=function(_0x234618,_0x9d1b25){_0x234618=_0x234618-0x0;let _0x507a5d=a503_0x9d1b[_0x234618];return _0x507a5d;};const _0x3bce3a=a503_0x507a;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x3bce3a('0x3'))(_0x3bce3a('0x10'));exports[_0x3bce3a('0x7')]=function(_0x240108){const _0x928834=this;return new Promise(function(_0x3424f0,_0x305bb3){const _0x2b6620=a503_0x507a;return db[_0x2b6620('0x4')]['create'](_0x240108[_0x2b6620('0x11')],{'raw':_0x240108[_0x2b6620('0x9')]?_0x240108[_0x2b6620('0x9')][_0x2b6620('0xa')]===undefined?!![]:![]:!![]})[_0x2b6620('0x6')](function(_0xb6fa07){const _0x3c8159=_0x2b6620;logger[_0x3c8159('0x8')](_0x3c8159('0x7'),_0x240108),logger[_0x3c8159('0xc')](_0x3c8159('0x7'),_0x240108,JSON['stringify'](_0xb6fa07)),_0x3424f0(_0xb6fa07);})[_0x2b6620('0xf')](function(_0x362a96){const _0x6d5509=_0x2b6620;logger['error'](_0x6d5509('0x7'),_0x362a96[_0x6d5509('0xe')],_0x240108),_0x305bb3(_0x928834['error'](0x1f4,_0x362a96['message']));});});},exports['UpdateOpenchannelQueueReport']=function(_0x9efdce){const _0x2a1696=this;return new Promise(function(_0x60e8b2,_0x60b9ab){const _0xcb16af=a503_0x507a;return db[_0xcb16af('0x4')][_0xcb16af('0x0')](_0x9efdce[_0xcb16af('0x11')],{'raw':_0x9efdce[_0xcb16af('0x9')]?_0x9efdce[_0xcb16af('0x9')][_0xcb16af('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x9efdce[_0xcb16af('0x9')]?_0x9efdce[_0xcb16af('0x9')][_0xcb16af('0xd')]||null:null,'attributes':_0x9efdce[_0xcb16af('0x9')]?_0x9efdce[_0xcb16af('0x9')][_0xcb16af('0xb')]||null:null,'limit':_0x9efdce[_0xcb16af('0x9')]?_0x9efdce[_0xcb16af('0x9')]['limit']||null:null})['then'](function(_0x1702e2){const _0x460cda=_0xcb16af;logger['info'](_0x460cda('0x2'),_0x9efdce),logger['debug']('UpdateOpenchannelQueueReport',_0x9efdce,JSON[_0x460cda('0x5')](_0x1702e2)),_0x60e8b2(_0x1702e2);})[_0xcb16af('0xf')](function(_0x29b6cf){const _0x54af8c=_0xcb16af;logger['error']('UpdateOpenchannelQueueReport',_0x29b6cf[_0x54af8c('0xe')],_0x9efdce),_0x60b9ab(_0x2a1696[_0x54af8c('0x1')](0x1f4,_0x29b6cf['message']));});});}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/index.js b/server/api/openchannelTransferReport/index.js index 4e2787d..b3e49e3 100644 --- a/server/api/openchannelTransferReport/index.js +++ b/server/api/openchannelTransferReport/index.js @@ -1 +1 @@ -const a504_0x55de=['destroy','index','create','get','/describe','../../components/auth/service','show','describe','update','post','./openchannelTransferReport.controller','/:id','express','delete','isAuthenticated','put'];(function(_0x3dcf41,_0x55de7a){const _0x12d89b=function(_0x31c7b0){while(--_0x31c7b0){_0x3dcf41['push'](_0x3dcf41['shift']());}};_0x12d89b(++_0x55de7a);}(a504_0x55de,0xb6));const a504_0x12d8=function(_0x3dcf41,_0x55de7a){_0x3dcf41=_0x3dcf41-0x0;let _0x12d89b=a504_0x55de[_0x3dcf41];return _0x12d89b;};const _0x4f43f0=a504_0x12d8;'use strict';const express=require(_0x4f43f0('0x6')),router=express['Router'](),auth=require(_0x4f43f0('0xf')),controller=require(_0x4f43f0('0x4'));router[_0x4f43f0('0xd')]('/',auth[_0x4f43f0('0x8')](),controller[_0x4f43f0('0xb')]),router['get'](_0x4f43f0('0xe'),auth[_0x4f43f0('0x8')](),controller[_0x4f43f0('0x1')]),router[_0x4f43f0('0xd')](_0x4f43f0('0x5'),auth[_0x4f43f0('0x8')](),controller[_0x4f43f0('0x0')]),router[_0x4f43f0('0x3')]('/',auth[_0x4f43f0('0x8')](),controller[_0x4f43f0('0xc')]),router[_0x4f43f0('0x9')]('/:id',auth[_0x4f43f0('0x8')](),controller[_0x4f43f0('0x2')]),router[_0x4f43f0('0x7')](_0x4f43f0('0x5'),auth[_0x4f43f0('0x8')](),controller[_0x4f43f0('0xa')]),module['exports']=router; \ No newline at end of file +const a504_0xd690=['index','destroy','get','describe','express','show','../../components/auth/service','/:id','create','put','isAuthenticated','./openchannelTransferReport.controller','delete','Router'];(function(_0x19ccee,_0xd690b4){const _0x34f382=function(_0x1c4af5){while(--_0x1c4af5){_0x19ccee['push'](_0x19ccee['shift']());}};_0x34f382(++_0xd690b4);}(a504_0xd690,0x1b1));const a504_0x34f3=function(_0x19ccee,_0xd690b4){_0x19ccee=_0x19ccee-0x0;let _0x34f382=a504_0xd690[_0x19ccee];return _0x34f382;};const _0x1ee1ce=a504_0x34f3;'use strict';const express=require(_0x1ee1ce('0x5')),router=express[_0x1ee1ce('0x0')](),auth=require(_0x1ee1ce('0x7')),controller=require(_0x1ee1ce('0xc'));router[_0x1ee1ce('0x3')]('/',auth['isAuthenticated'](),controller[_0x1ee1ce('0x1')]),router[_0x1ee1ce('0x3')]('/describe',auth[_0x1ee1ce('0xb')](),controller[_0x1ee1ce('0x4')]),router[_0x1ee1ce('0x3')](_0x1ee1ce('0x8'),auth[_0x1ee1ce('0xb')](),controller[_0x1ee1ce('0x6')]),router['post']('/',auth['isAuthenticated'](),controller[_0x1ee1ce('0x9')]),router[_0x1ee1ce('0xa')](_0x1ee1ce('0x8'),auth[_0x1ee1ce('0xb')](),controller['update']),router[_0x1ee1ce('0xd')](_0x1ee1ce('0x8'),auth['isAuthenticated'](),controller[_0x1ee1ce('0x2')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js index ba39ee0..e19cffb 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js @@ -1 +1 @@ -const a505_0x1bbf=['queue','NOW','STRING','DATE','agent','ENUM','exports'];(function(_0x3de254,_0x1bbf8e){const _0x55abfa=function(_0x480043){while(--_0x480043){_0x3de254['push'](_0x3de254['shift']());}};_0x55abfa(++_0x1bbf8e);}(a505_0x1bbf,0x7a));const a505_0x55ab=function(_0x3de254,_0x1bbf8e){_0x3de254=_0x3de254-0x0;let _0x55abfa=a505_0x1bbf[_0x3de254];return _0x55abfa;};const _0x22e52e=a505_0x55ab;'use strict';const Sequelize=require('sequelize');module[_0x22e52e('0x3')]={'uniqueid':{'type':Sequelize[_0x22e52e('0x6')],'allowNull':![]},'type':{'type':Sequelize[_0x22e52e('0x2')]('account',_0x22e52e('0x1'),'queue'),'allowNull':![],'defaultValue':_0x22e52e('0x4')},'transferredAt':{'type':Sequelize[_0x22e52e('0x0')],'allowNull':![],'defaultValue':Sequelize[_0x22e52e('0x5')]}}; \ No newline at end of file +const a505_0x181d=['NOW','exports','queue','account','sequelize','DATE','agent'];(function(_0x413657,_0x181d9a){const _0x31b11e=function(_0x2b3943){while(--_0x2b3943){_0x413657['push'](_0x413657['shift']());}};_0x31b11e(++_0x181d9a);}(a505_0x181d,0x1c2));const a505_0x31b1=function(_0x413657,_0x181d9a){_0x413657=_0x413657-0x0;let _0x31b11e=a505_0x181d[_0x413657];return _0x31b11e;};const _0x3cf1cc=a505_0x31b1;'use strict';const Sequelize=require(_0x3cf1cc('0x2'));module[_0x3cf1cc('0x6')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x3cf1cc('0x1'),_0x3cf1cc('0x4'),_0x3cf1cc('0x0')),'allowNull':![],'defaultValue':_0x3cf1cc('0x0')},'transferredAt':{'type':Sequelize[_0x3cf1cc('0x3')],'allowNull':![],'defaultValue':Sequelize[_0x3cf1cc('0x5')]}}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js index f38baa5..278055b 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js @@ -1 +1 @@ -const a506_0x4247=['undefined','rows','type','model','index','name','sort','fields','destroy','findOne','length','send','../../config/logger','OpenchannelTransferReport','like','map','attributes','intersection','filters','update','then','pick','describe','includeAll','lodash','show','key','api','fieldName','include','options','create','limit','where','stack','json','params','../../components/parsers/qs','error','catch','status','rawAttributes','query','body','filter','offset','keys','set'];(function(_0x5ed046,_0x42471a){const _0x4c39c2=function(_0xb9b18a){while(--_0xb9b18a){_0x5ed046['push'](_0x5ed046['shift']());}};_0x4c39c2(++_0x42471a);}(a506_0x4247,0x15c));const a506_0x4c39=function(_0x5ed046,_0x42471a){_0x5ed046=_0x5ed046-0x0;let _0x4c39c2=a506_0x4247[_0x5ed046];return _0x4c39c2;};const _0x4adfe2=a506_0x4c39;'use strict';const _=require(_0x4adfe2('0xc')),qs=require(_0x4adfe2('0x19')),logger=require(_0x4adfe2('0x0'))(_0x4adfe2('0xf')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0xb9b18a,_0x496ecc){return _0x496ecc=_0x496ecc||0xc8,function(_0x358845){const _0x358630=a506_0x4c39;if(_0x358845)return _0xb9b18a[_0x358630('0x1c')](_0x496ecc)[_0x358630('0x17')](_0x358845);};}function respondWithFilteredResult(_0x5ac35d,_0x3848bc){return function(_0x168361){const _0x5c615a=a506_0x4c39;if(_0x168361){const _0x21b773=_0x168361['count'],_0xa96aa2=_0x3848bc[_0x5c615a('0x21')];let _0x5c74bf=_0x3848bc['offset']+_0x3848bc[_0x5c615a('0x14')],_0x484b93;return _0x5c74bf>=_0x21b773?(_0x5c74bf=_0x21b773,_0x484b93=0xc8):_0x484b93=0xce,_0x5ac35d[_0x5c615a('0x1c')](_0x484b93),_0x5ac35d[_0x5c615a('0x23')]('Content-Range',_0xa96aa2+'-'+_0x5c74bf+'/'+_0x21b773)[_0x5c615a('0x17')](_0x168361);}return null;};}function saveUpdates(_0x4df213){return function(_0x3b6546){const _0x3b5a84=a506_0x4c39;if(_0x3b6546)return _0x3b6546[_0x3b5a84('0x7')](_0x4df213)['then'](function(_0x2684ed){return _0x2684ed;});return null;};}function removeEntity(_0xba6c9f){return function(_0x23c06d){if(_0x23c06d)return _0x23c06d['destroy']()['then'](function(){_0xba6c9f['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x26e335){return function(_0x421e6d){return!_0x421e6d&&_0x26e335['sendStatus'](0x194),_0x421e6d;};}function handleError(_0x50766c,_0x321548){return _0x321548=_0x321548||0x1f4,function(_0x163dde){const _0x5a559c=a506_0x4c39;logger[_0x5a559c('0x1a')](_0x163dde[_0x5a559c('0x16')]),_0x163dde[_0x5a559c('0x29')]&&delete _0x163dde[_0x5a559c('0x29')],_0x50766c[_0x5a559c('0x1c')](_0x321548)[_0x5a559c('0x2f')](_0x163dde);};}exports[_0x4adfe2('0x28')]=function(_0x5dadb5,_0x5d24){const _0x36012b=_0x4adfe2;let _0x3f12c0={};const _0x4c3470={},_0x25509c={'count':0x0,'rows':[]},_0x3a4bff=_[_0x36012b('0x3')](db['OpenchannelTransferReport']['rawAttributes'],function(_0xa90314){const _0x209cd8=_0x36012b;return{'name':_0xa90314[_0x209cd8('0x10')],'type':_0xa90314[_0x209cd8('0x26')][_0x209cd8('0xe')]};});_0x4c3470[_0x36012b('0x27')]=_[_0x36012b('0x3')](_0x3a4bff,_0x36012b('0x29')),_0x4c3470['query']=_['keys'](_0x5dadb5['query']),_0x4c3470[_0x36012b('0x6')]=_['intersection'](_0x4c3470[_0x36012b('0x27')],_0x4c3470[_0x36012b('0x1e')]),_0x3f12c0['attributes']=_[_0x36012b('0x5')](_0x4c3470[_0x36012b('0x27')],qs['fields'](_0x5dadb5[_0x36012b('0x1e')][_0x36012b('0x2b')])),_0x3f12c0[_0x36012b('0x4')]=_0x3f12c0[_0x36012b('0x4')]['length']?_0x3f12c0[_0x36012b('0x4')]:_0x4c3470[_0x36012b('0x27')];typeof _0x5dadb5['query']['nolimit']===_0x36012b('0x24')&&(_0x3f12c0[_0x36012b('0x14')]=qs['limit'](_0x5dadb5[_0x36012b('0x1e')][_0x36012b('0x14')]),_0x3f12c0[_0x36012b('0x21')]=qs[_0x36012b('0x21')](_0x5dadb5[_0x36012b('0x1e')][_0x36012b('0x21')]));_0x3f12c0['order']=qs[_0x36012b('0x2a')](_0x5dadb5[_0x36012b('0x1e')][_0x36012b('0x2a')]),_0x3f12c0['where']=qs[_0x36012b('0x6')](_[_0x36012b('0x9')](_0x5dadb5['query'],_0x4c3470['filters']),_0x3a4bff);_0x5dadb5[_0x36012b('0x1e')][_0x36012b('0x20')]&&(_0x3f12c0[_0x36012b('0x15')]=_['merge'](_0x3f12c0['where'],{[Op['or']]:_['map'](_0x3a4bff,function(_0x35f161){const _0x3ba834=_0x36012b;if(_0x35f161[_0x3ba834('0x26')]!=='VIRTUAL'){const _0x4e0c81={};return _0x4e0c81[_0x35f161[_0x3ba834('0x29')]]={[Op[_0x3ba834('0x2')]]:'%'+_0x5dadb5[_0x3ba834('0x1e')][_0x3ba834('0x20')]+'%'},_0x4e0c81;}})}));_0x3f12c0=_['merge']({},_0x3f12c0,_0x5dadb5[_0x36012b('0x12')]);const _0x322f5e={'where':_0x3f12c0['where']};return db[_0x36012b('0x1')]['count'](_0x322f5e)[_0x36012b('0x8')](function(_0x3df0e1){const _0x31f252=_0x36012b;return _0x25509c['count']=_0x3df0e1,_0x5dadb5[_0x31f252('0x1e')][_0x31f252('0xb')]&&(_0x3f12c0[_0x31f252('0x11')]=[{'all':!![]}]),db[_0x31f252('0x1')]['findAll'](_0x3f12c0);})[_0x36012b('0x8')](function(_0x2597fe){const _0x4b7ac0=_0x36012b;return _0x25509c[_0x4b7ac0('0x25')]=_0x2597fe,_0x25509c;})['then'](respondWithFilteredResult(_0x5d24,_0x3f12c0))[_0x36012b('0x1b')](handleError(_0x5d24,null));},exports[_0x4adfe2('0xd')]=function(_0x495c38,_0x626c86){const _0x3a7880=_0x4adfe2;let _0x408bcf={'raw':!![],'where':{'id':_0x495c38[_0x3a7880('0x18')]['id']}};const _0xbd8283={};return _0xbd8283[_0x3a7880('0x27')]=_[_0x3a7880('0x22')](db[_0x3a7880('0x1')][_0x3a7880('0x1d')]),_0xbd8283[_0x3a7880('0x1e')]=_[_0x3a7880('0x22')](_0x495c38[_0x3a7880('0x1e')]),_0xbd8283[_0x3a7880('0x6')]=_[_0x3a7880('0x5')](_0xbd8283[_0x3a7880('0x27')],_0xbd8283[_0x3a7880('0x1e')]),_0x408bcf[_0x3a7880('0x4')]=_[_0x3a7880('0x5')](_0xbd8283[_0x3a7880('0x27')],qs['fields'](_0x495c38[_0x3a7880('0x1e')][_0x3a7880('0x2b')])),_0x408bcf[_0x3a7880('0x4')]=_0x408bcf[_0x3a7880('0x4')][_0x3a7880('0x2e')]?_0x408bcf[_0x3a7880('0x4')]:_0xbd8283['model'],_0x495c38[_0x3a7880('0x1e')][_0x3a7880('0xb')]&&(_0x408bcf[_0x3a7880('0x11')]=[{'all':!![]}]),_0x408bcf=_['merge']({},_0x408bcf,_0x495c38['options']),db[_0x3a7880('0x1')][_0x3a7880('0x2d')](_0x408bcf)[_0x3a7880('0x8')](handleEntityNotFound(_0x626c86,null))[_0x3a7880('0x8')](respondWithResult(_0x626c86,null))[_0x3a7880('0x1b')](handleError(_0x626c86,null));},exports[_0x4adfe2('0x13')]=function(_0x5c43dd,_0x5db927){const _0x3d542a=_0x4adfe2;return db[_0x3d542a('0x1')][_0x3d542a('0x13')](_0x5c43dd[_0x3d542a('0x1f')],{})[_0x3d542a('0x8')](respondWithResult(_0x5db927,0xc9))[_0x3d542a('0x1b')](handleError(_0x5db927,null));},exports['update']=function(_0x5ab419,_0x4535ee){const _0x22df3d=_0x4adfe2;return _0x5ab419[_0x22df3d('0x1f')]['id']&&delete _0x5ab419[_0x22df3d('0x1f')]['id'],db[_0x22df3d('0x1')]['findOne']({'where':{'id':_0x5ab419[_0x22df3d('0x18')]['id']}})[_0x22df3d('0x8')](handleEntityNotFound(_0x4535ee,null))['then'](saveUpdates(_0x5ab419[_0x22df3d('0x1f')],null))[_0x22df3d('0x8')](respondWithResult(_0x4535ee,null))['catch'](handleError(_0x4535ee,null));},exports[_0x4adfe2('0x2c')]=function(_0x19e88b,_0x1cc52f){const _0x51a5d8=_0x4adfe2;return db[_0x51a5d8('0x1')]['findOne']({'where':{'id':_0x19e88b[_0x51a5d8('0x18')]['id']}})['then'](handleEntityNotFound(_0x1cc52f,null))[_0x51a5d8('0x8')](removeEntity(_0x1cc52f,null))[_0x51a5d8('0x1b')](handleError(_0x1cc52f,null));},exports['describe']=function(_0x41934f,_0x4b0707){const _0x4f2267=_0x4adfe2;return db['OpenchannelTransferReport'][_0x4f2267('0xa')]()['then'](respondWithResult(_0x4b0707,null))['catch'](handleError(_0x4b0707,null));}; \ No newline at end of file +const a506_0x454d=['destroy','type','lodash','sendStatus','nolimit','status','sort','key','offset','create','../../components/parsers/qs','VIRTUAL','count','set','attributes','catch','describe','body','keys','findOne','fields','show','order','../../mysqldb','then','query','api','where','like','includeAll','error','options','intersection','name','map','merge','model','filters','OpenchannelTransferReport','include','end','rawAttributes','limit','update','params','Content-Range','fieldName','pick','rows','json','filter','sequelize','length'];(function(_0x2c72ad,_0x454dff){const _0x2f7aff=function(_0x1285b3){while(--_0x1285b3){_0x2c72ad['push'](_0x2c72ad['shift']());}};_0x2f7aff(++_0x454dff);}(a506_0x454d,0x128));const a506_0x2f7a=function(_0x2c72ad,_0x454dff){_0x2c72ad=_0x2c72ad-0x0;let _0x2f7aff=a506_0x454d[_0x2c72ad];return _0x2f7aff;};const _0x9813b8=a506_0x2f7a;'use strict';const _=require(_0x9813b8('0x18')),qs=require(_0x9813b8('0x20')),logger=require('../../config/logger')(_0x9813b8('0x30')),db=require(_0x9813b8('0x2d'))['db'],{Op}=require(_0x9813b8('0x14'));function respondWithResult(_0x1285b3,_0x4b6a89){return _0x4b6a89=_0x4b6a89||0xc8,function(_0x1ec9bf){const _0xa2091=a506_0x2f7a;if(_0x1ec9bf)return _0x1285b3['status'](_0x4b6a89)[_0xa2091('0x12')](_0x1ec9bf);};}function respondWithFilteredResult(_0x21db8b,_0x23cf52){return function(_0x2df6a4){const _0x1dd2a4=a506_0x2f7a;if(_0x2df6a4){const _0x448aa3=_0x2df6a4[_0x1dd2a4('0x22')],_0xfd7e1b=_0x23cf52[_0x1dd2a4('0x1e')];let _0x1f537c=_0x23cf52[_0x1dd2a4('0x1e')]+_0x23cf52[_0x1dd2a4('0xb')],_0x2cc50a;return _0x1f537c>=_0x448aa3?(_0x1f537c=_0x448aa3,_0x2cc50a=0xc8):_0x2cc50a=0xce,_0x21db8b[_0x1dd2a4('0x1b')](_0x2cc50a),_0x21db8b[_0x1dd2a4('0x23')](_0x1dd2a4('0xe'),_0xfd7e1b+'-'+_0x1f537c+'/'+_0x448aa3)[_0x1dd2a4('0x12')](_0x2df6a4);}return null;};}function saveUpdates(_0x28d4d0){return function(_0x509da4){const _0x349c4d=a506_0x2f7a;if(_0x509da4)return _0x509da4[_0x349c4d('0xc')](_0x28d4d0)[_0x349c4d('0x2e')](function(_0x2857b0){return _0x2857b0;});return null;};}function removeEntity(_0x2817e5){return function(_0x54380f){const _0x377502=a506_0x2f7a;if(_0x54380f)return _0x54380f[_0x377502('0x16')]()[_0x377502('0x2e')](function(){const _0x55d938=_0x377502;_0x2817e5[_0x55d938('0x1b')](0xcc)[_0x55d938('0x9')]();});};}function handleEntityNotFound(_0x2e022b){return function(_0x5bb734){const _0x195230=a506_0x2f7a;return!_0x5bb734&&_0x2e022b[_0x195230('0x19')](0x194),_0x5bb734;};}function handleError(_0x19f228,_0x182372){return _0x182372=_0x182372||0x1f4,function(_0x37981d){const _0x4ac142=a506_0x2f7a;logger[_0x4ac142('0x34')](_0x37981d['stack']),_0x37981d[_0x4ac142('0x2')]&&delete _0x37981d[_0x4ac142('0x2')],_0x19f228[_0x4ac142('0x1b')](_0x182372)['send'](_0x37981d);};}exports['index']=function(_0x3d0fee,_0x11d832){const _0x578cf0=_0x9813b8;let _0x2f62f4={};const _0x3cc88b={},_0x5364d0={'count':0x0,'rows':[]},_0x469b20=_[_0x578cf0('0x3')](db[_0x578cf0('0x7')][_0x578cf0('0xa')],function(_0x5bdb3e){const _0x36ce2d=_0x578cf0;return{'name':_0x5bdb3e[_0x36ce2d('0xf')],'type':_0x5bdb3e[_0x36ce2d('0x17')][_0x36ce2d('0x1d')]};});_0x3cc88b[_0x578cf0('0x5')]=_[_0x578cf0('0x3')](_0x469b20,_0x578cf0('0x2')),_0x3cc88b[_0x578cf0('0x2f')]=_[_0x578cf0('0x28')](_0x3d0fee[_0x578cf0('0x2f')]),_0x3cc88b[_0x578cf0('0x6')]=_[_0x578cf0('0x1')](_0x3cc88b['model'],_0x3cc88b[_0x578cf0('0x2f')]),_0x2f62f4[_0x578cf0('0x24')]=_['intersection'](_0x3cc88b[_0x578cf0('0x5')],qs[_0x578cf0('0x2a')](_0x3d0fee[_0x578cf0('0x2f')]['fields'])),_0x2f62f4[_0x578cf0('0x24')]=_0x2f62f4[_0x578cf0('0x24')][_0x578cf0('0x15')]?_0x2f62f4['attributes']:_0x3cc88b[_0x578cf0('0x5')];typeof _0x3d0fee[_0x578cf0('0x2f')][_0x578cf0('0x1a')]==='undefined'&&(_0x2f62f4['limit']=qs[_0x578cf0('0xb')](_0x3d0fee['query'][_0x578cf0('0xb')]),_0x2f62f4[_0x578cf0('0x1e')]=qs[_0x578cf0('0x1e')](_0x3d0fee['query'][_0x578cf0('0x1e')]));_0x2f62f4[_0x578cf0('0x2c')]=qs[_0x578cf0('0x1c')](_0x3d0fee['query'][_0x578cf0('0x1c')]),_0x2f62f4[_0x578cf0('0x31')]=qs[_0x578cf0('0x6')](_[_0x578cf0('0x10')](_0x3d0fee['query'],_0x3cc88b[_0x578cf0('0x6')]),_0x469b20);_0x3d0fee['query'][_0x578cf0('0x13')]&&(_0x2f62f4[_0x578cf0('0x31')]=_[_0x578cf0('0x4')](_0x2f62f4[_0x578cf0('0x31')],{[Op['or']]:_[_0x578cf0('0x3')](_0x469b20,function(_0x55af6a){const _0x3bb677=_0x578cf0;if(_0x55af6a[_0x3bb677('0x17')]!==_0x3bb677('0x21')){const _0x5b18b1={};return _0x5b18b1[_0x55af6a['name']]={[Op[_0x3bb677('0x32')]]:'%'+_0x3d0fee['query'][_0x3bb677('0x13')]+'%'},_0x5b18b1;}})}));_0x2f62f4=_[_0x578cf0('0x4')]({},_0x2f62f4,_0x3d0fee[_0x578cf0('0x0')]);const _0x36e39c={'where':_0x2f62f4[_0x578cf0('0x31')]};return db['OpenchannelTransferReport'][_0x578cf0('0x22')](_0x36e39c)[_0x578cf0('0x2e')](function(_0x2d5047){const _0x362b0c=_0x578cf0;return _0x5364d0[_0x362b0c('0x22')]=_0x2d5047,_0x3d0fee[_0x362b0c('0x2f')][_0x362b0c('0x33')]&&(_0x2f62f4[_0x362b0c('0x8')]=[{'all':!![]}]),db[_0x362b0c('0x7')]['findAll'](_0x2f62f4);})[_0x578cf0('0x2e')](function(_0x23034c){const _0x192ede=_0x578cf0;return _0x5364d0[_0x192ede('0x11')]=_0x23034c,_0x5364d0;})[_0x578cf0('0x2e')](respondWithFilteredResult(_0x11d832,_0x2f62f4))[_0x578cf0('0x25')](handleError(_0x11d832,null));},exports[_0x9813b8('0x2b')]=function(_0x3615da,_0x3626a4){const _0x2a85ce=_0x9813b8;let _0x3ff071={'raw':!![],'where':{'id':_0x3615da['params']['id']}};const _0x337cc7={};return _0x337cc7['model']=_['keys'](db[_0x2a85ce('0x7')][_0x2a85ce('0xa')]),_0x337cc7[_0x2a85ce('0x2f')]=_[_0x2a85ce('0x28')](_0x3615da[_0x2a85ce('0x2f')]),_0x337cc7['filters']=_[_0x2a85ce('0x1')](_0x337cc7[_0x2a85ce('0x5')],_0x337cc7[_0x2a85ce('0x2f')]),_0x3ff071[_0x2a85ce('0x24')]=_[_0x2a85ce('0x1')](_0x337cc7[_0x2a85ce('0x5')],qs[_0x2a85ce('0x2a')](_0x3615da[_0x2a85ce('0x2f')][_0x2a85ce('0x2a')])),_0x3ff071[_0x2a85ce('0x24')]=_0x3ff071[_0x2a85ce('0x24')]['length']?_0x3ff071[_0x2a85ce('0x24')]:_0x337cc7[_0x2a85ce('0x5')],_0x3615da[_0x2a85ce('0x2f')]['includeAll']&&(_0x3ff071[_0x2a85ce('0x8')]=[{'all':!![]}]),_0x3ff071=_[_0x2a85ce('0x4')]({},_0x3ff071,_0x3615da[_0x2a85ce('0x0')]),db[_0x2a85ce('0x7')][_0x2a85ce('0x29')](_0x3ff071)[_0x2a85ce('0x2e')](handleEntityNotFound(_0x3626a4,null))[_0x2a85ce('0x2e')](respondWithResult(_0x3626a4,null))[_0x2a85ce('0x25')](handleError(_0x3626a4,null));},exports[_0x9813b8('0x1f')]=function(_0x3b2463,_0x1110f8){const _0x1ccf48=_0x9813b8;return db['OpenchannelTransferReport'][_0x1ccf48('0x1f')](_0x3b2463['body'],{})['then'](respondWithResult(_0x1110f8,0xc9))[_0x1ccf48('0x25')](handleError(_0x1110f8,null));},exports[_0x9813b8('0xc')]=function(_0xfb6578,_0x3d257d){const _0x58f0c6=_0x9813b8;return _0xfb6578['body']['id']&&delete _0xfb6578[_0x58f0c6('0x27')]['id'],db[_0x58f0c6('0x7')]['findOne']({'where':{'id':_0xfb6578[_0x58f0c6('0xd')]['id']}})['then'](handleEntityNotFound(_0x3d257d,null))['then'](saveUpdates(_0xfb6578['body'],null))[_0x58f0c6('0x2e')](respondWithResult(_0x3d257d,null))[_0x58f0c6('0x25')](handleError(_0x3d257d,null));},exports[_0x9813b8('0x16')]=function(_0x3eedbb,_0x463a6b){const _0x2144a8=_0x9813b8;return db[_0x2144a8('0x7')][_0x2144a8('0x29')]({'where':{'id':_0x3eedbb[_0x2144a8('0xd')]['id']}})['then'](handleEntityNotFound(_0x463a6b,null))[_0x2144a8('0x2e')](removeEntity(_0x463a6b,null))[_0x2144a8('0x25')](handleError(_0x463a6b,null));},exports[_0x9813b8('0x26')]=function(_0x2a0a59,_0x253bba){const _0x3e5ea8=_0x9813b8;return db[_0x3e5ea8('0x7')]['describe']()[_0x3e5ea8('0x2e')](respondWithResult(_0x253bba,null))['catch'](handleError(_0x253bba,null));}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.model.js b/server/api/openchannelTransferReport/openchannelTransferReport.model.js index c5d5a61..3459b89 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.model.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.model.js @@ -1 +1 @@ -const a507_0x5df3=['uniqueid','OpenchannelTransferReport','./openchannelTransferReport.attributes','report_openchannel_transfer'];(function(_0x1d134a,_0x5df348){const _0xb06fa2=function(_0x55341f){while(--_0x55341f){_0x1d134a['push'](_0x1d134a['shift']());}};_0xb06fa2(++_0x5df348);}(a507_0x5df3,0xf4));const a507_0xb06f=function(_0x1d134a,_0x5df348){_0x1d134a=_0x1d134a-0x0;let _0xb06fa2=a507_0x5df3[_0x1d134a];return _0xb06fa2;};const _0x112abf=a507_0xb06f;'use strict';const attributes=require(_0x112abf('0x2'));module['exports']=function(_0x55341f){const _0x507f60=_0x112abf,_0x31121a=_0x55341f['define'](_0x507f60('0x1'),attributes,{'tableName':_0x507f60('0x3'),'paranoid':![],'indexes':[{'name':_0x507f60('0x0'),'fields':[_0x507f60('0x0')]}],'timestamps':!![]});return _0x31121a;}; \ No newline at end of file +const a507_0x1d02=['./openchannelTransferReport.attributes','OpenchannelTransferReport','define','uniqueid','exports','report_openchannel_transfer'];(function(_0x3e0c6c,_0x1d0298){const _0x333e81=function(_0x1f929f){while(--_0x1f929f){_0x3e0c6c['push'](_0x3e0c6c['shift']());}};_0x333e81(++_0x1d0298);}(a507_0x1d02,0x1f1));const a507_0x333e=function(_0x3e0c6c,_0x1d0298){_0x3e0c6c=_0x3e0c6c-0x0;let _0x333e81=a507_0x1d02[_0x3e0c6c];return _0x333e81;};const _0x3ec4e6=a507_0x333e;'use strict';const attributes=require(_0x3ec4e6('0x1'));module[_0x3ec4e6('0x5')]=function(_0x1f929f){const _0x1c029e=_0x3ec4e6,_0x3ce2a0=_0x1f929f[_0x1c029e('0x3')](_0x1c029e('0x2'),attributes,{'tableName':_0x1c029e('0x0'),'paranoid':![],'indexes':[{'name':_0x1c029e('0x4'),'fields':[_0x1c029e('0x4')]}],'timestamps':!![]});return _0x3ce2a0;}; \ No newline at end of file diff --git a/server/api/pause/index.js b/server/api/pause/index.js index 810d1c0..9e18469 100644 --- a/server/api/pause/index.js +++ b/server/api/pause/index.js @@ -1 +1 @@ -const a508_0x4f31=['get','../../components/auth/service','update','put','create','destroy','show','Router','isAuthenticated','express','exports','index','post','delete'];(function(_0x294bfc,_0x4f314e){const _0x1539ce=function(_0x42c566){while(--_0x42c566){_0x294bfc['push'](_0x294bfc['shift']());}};_0x1539ce(++_0x4f314e);}(a508_0x4f31,0x141));const a508_0x1539=function(_0x294bfc,_0x4f314e){_0x294bfc=_0x294bfc-0x0;let _0x1539ce=a508_0x4f31[_0x294bfc];return _0x1539ce;};const _0x1c05b6=a508_0x1539;'use strict';const express=require(_0x1c05b6('0xa')),router=express[_0x1c05b6('0x8')](),auth=require(_0x1c05b6('0x2')),controller=require('./pause.controller');router[_0x1c05b6('0x1')]('/',auth[_0x1c05b6('0x9')](),controller[_0x1c05b6('0xc')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x1c05b6('0x7')]),router[_0x1c05b6('0xd')]('/',auth[_0x1c05b6('0x9')](),controller[_0x1c05b6('0x5')]),router[_0x1c05b6('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x1c05b6('0x3')]),router[_0x1c05b6('0x0')]('/:id',auth[_0x1c05b6('0x9')](),controller[_0x1c05b6('0x6')]),module[_0x1c05b6('0xb')]=router; \ No newline at end of file +const a508_0x4545=['put','isAuthenticated','../../components/auth/service','post','destroy','delete','create','update','Router','/:id','exports','index'];(function(_0x12d6fb,_0x454557){const _0x5b575=function(_0x5bce2e){while(--_0x5bce2e){_0x12d6fb['push'](_0x12d6fb['shift']());}};_0x5b575(++_0x454557);}(a508_0x4545,0x102));const a508_0x5b57=function(_0x12d6fb,_0x454557){_0x12d6fb=_0x12d6fb-0x0;let _0x5b575=a508_0x4545[_0x12d6fb];return _0x5b575;};const _0x2d6b23=a508_0x5b57;'use strict';const express=require('express'),router=express[_0x2d6b23('0x2')](),auth=require(_0x2d6b23('0x8')),controller=require('./pause.controller');router['get']('/',auth[_0x2d6b23('0x7')](),controller[_0x2d6b23('0x5')]),router['get']('/:id',auth['isAuthenticated'](),controller['show']),router[_0x2d6b23('0x9')]('/',auth['isAuthenticated'](),controller[_0x2d6b23('0x0')]),router[_0x2d6b23('0x6')](_0x2d6b23('0x3'),auth['isAuthenticated'](),controller[_0x2d6b23('0x1')]),router[_0x2d6b23('0xb')]('/:id',auth[_0x2d6b23('0x7')](),controller[_0x2d6b23('0xa')]),module[_0x2d6b23('0x4')]=router; \ No newline at end of file diff --git a/server/api/pause/pause.attributes.js b/server/api/pause/pause.attributes.js index 4cf95ad..b32cb43 100644 --- a/server/api/pause/pause.attributes.js +++ b/server/api/pause/pause.attributes.js @@ -1 +1 @@ -const a509_0x3d84=['STRING','name','sequelize','exports'];(function(_0x4123b2,_0x3d8417){const _0x7fae5c=function(_0x2ba523){while(--_0x2ba523){_0x4123b2['push'](_0x4123b2['shift']());}};_0x7fae5c(++_0x3d8417);}(a509_0x3d84,0xaa));const a509_0x7fae=function(_0x4123b2,_0x3d8417){_0x4123b2=_0x4123b2-0x0;let _0x7fae5c=a509_0x3d84[_0x4123b2];return _0x7fae5c;};const _0x5349ab=a509_0x7fae;'use strict';const Sequelize=require(_0x5349ab('0x0'));module[_0x5349ab('0x1')]={'name':{'type':Sequelize[_0x5349ab('0x2')],'unique':_0x5349ab('0x3'),'allowNull':![]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a509_0x303f=['sequelize','name','STRING'];(function(_0x2b856c,_0x303fba){const _0x5dd19d=function(_0x34d160){while(--_0x34d160){_0x2b856c['push'](_0x2b856c['shift']());}};_0x5dd19d(++_0x303fba);}(a509_0x303f,0x171));const a509_0x5dd1=function(_0x2b856c,_0x303fba){_0x2b856c=_0x2b856c-0x0;let _0x5dd19d=a509_0x303f[_0x2b856c];return _0x5dd19d;};const _0x1b022f=a509_0x5dd1;'use strict';const Sequelize=require(_0x1b022f('0x0'));module['exports']={'name':{'type':Sequelize[_0x1b022f('0x2')],'unique':_0x1b022f('0x1'),'allowNull':![]},'description':{'type':Sequelize[_0x1b022f('0x2')]}}; \ No newline at end of file diff --git a/server/api/pause/pause.controller.js b/server/api/pause/pause.controller.js index 1557a82..348c22c 100644 --- a/server/api/pause/pause.controller.js +++ b/server/api/pause/pause.controller.js @@ -1 +1 @@ -const a510_0x31a9=['intersection','update','role','model','set','query','../../config/logger','length','Content-Range','fieldName','VIRTUAL','send','fields','error','attributes','status','undefined','json','findOne','show','sort','userProfileId','sendStatus','where','filter','map','params','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Pause','nolimit','end','pick','name','destroy','sequelize','index','type','offset','options','includeAll','user','then','keys','limit','filters','rawAttributes','key','include','../../mysqldb','Unable\x20to\x20retrieve\x20the\x20current\x20user','autoAssociation','UserProfileResource','api','lodash','count','Pauses','like','order','UserProfileSection','merge','create','catch','get','body'];(function(_0x1957b2,_0x31a9d5){const _0xa10e8=function(_0x366fda){while(--_0x366fda){_0x1957b2['push'](_0x1957b2['shift']());}};_0xa10e8(++_0x31a9d5);}(a510_0x31a9,0x1e9));const a510_0xa10e=function(_0x1957b2,_0x31a9d5){_0x1957b2=_0x1957b2-0x0;let _0xa10e8=a510_0x31a9[_0x1957b2];return _0xa10e8;};const _0x1b7542=a510_0xa10e;'use strict';const _=require(_0x1b7542('0xc')),qs=require('../../components/parsers/qs'),logger=require(_0x1b7542('0x1d'))(_0x1b7542('0xb')),db=require(_0x1b7542('0x7'))['db'],{Op}=require(_0x1b7542('0x39'));function respondWithResult(_0x366fda,_0x5d749b){return _0x5d749b=_0x5d749b||0xc8,function(_0x53e7ad){const _0x1139a5=a510_0xa10e;if(_0x53e7ad)return _0x366fda[_0x1139a5('0x26')](_0x5d749b)[_0x1139a5('0x28')](_0x53e7ad);};}function respondWithFilteredResult(_0x3f4b0e,_0x3a4e43){return function(_0x374dc7){const _0x882407=a510_0xa10e;if(_0x374dc7){const _0x19cb72=_0x374dc7[_0x882407('0xd')],_0x180ec9=_0x3a4e43['offset'];let _0x502762=_0x3a4e43['offset']+_0x3a4e43[_0x882407('0x2')],_0x3867b8;return _0x502762>=_0x19cb72?(_0x502762=_0x19cb72,_0x3867b8=0xc8):_0x3867b8=0xce,_0x3f4b0e['status'](_0x3867b8),_0x3f4b0e[_0x882407('0x1b')](_0x882407('0x1f'),_0x180ec9+'-'+_0x502762+'/'+_0x19cb72)[_0x882407('0x28')](_0x374dc7);}return null;};}function saveUpdates(_0x7e1887){return function(_0x3519e9){const _0x25898f=a510_0xa10e;if(_0x3519e9)return _0x3519e9[_0x25898f('0x18')](_0x7e1887)[_0x25898f('0x0')](function(_0xa48c5b){return _0xa48c5b;});return null;};}function removeEntity(_0x534949){return function(_0x52434d){const _0x434837=a510_0xa10e;if(_0x52434d)return _0x52434d[_0x434837('0x38')]()[_0x434837('0x0')](function(){const _0x51b4d1=_0x434837,_0x128126=_0x52434d[_0x51b4d1('0x15')]({'plain':!![]}),_0x15db82=_0x51b4d1('0xe');return db[_0x51b4d1('0xa')][_0x51b4d1('0x38')]({'where':{'type':_0x15db82,'resourceId':_0x128126['id']}})['then'](function(){return _0x52434d;});})[_0x434837('0x0')](function(){const _0x3907da=_0x434837;_0x534949[_0x3907da('0x26')](0xcc)[_0x3907da('0x35')]();});};}function handleEntityNotFound(_0x2bbdce){return function(_0x3f0e6c){const _0x510e7e=a510_0xa10e;return!_0x3f0e6c&&_0x2bbdce[_0x510e7e('0x2d')](0x194),_0x3f0e6c;};}function handleError(_0x16b056,_0x1a6604){return _0x1a6604=_0x1a6604||0x1f4,function(_0x222cbd){const _0x3b2df9=a510_0xa10e;logger[_0x3b2df9('0x24')](_0x222cbd['stack']),_0x222cbd[_0x3b2df9('0x37')]&&delete _0x222cbd[_0x3b2df9('0x37')],_0x16b056[_0x3b2df9('0x26')](_0x1a6604)[_0x3b2df9('0x22')](_0x222cbd);};}exports[_0x1b7542('0x3a')]=function(_0xc6bdb1,_0x1e240c){const _0x1a28ae=_0x1b7542;let _0x2386f2={};const _0x4b0780={},_0x13e9b8={'count':0x0,'rows':[]},_0x1d4586=_['map'](db[_0x1a28ae('0x33')][_0x1a28ae('0x4')],function(_0x434ab0){const _0x44c536=_0x1a28ae;return{'name':_0x434ab0[_0x44c536('0x20')],'type':_0x434ab0[_0x44c536('0x3b')][_0x44c536('0x5')]};});_0x4b0780[_0x1a28ae('0x1a')]=_[_0x1a28ae('0x30')](_0x1d4586,_0x1a28ae('0x37')),_0x4b0780[_0x1a28ae('0x1c')]=_[_0x1a28ae('0x1')](_0xc6bdb1['query']),_0x4b0780['filters']=_[_0x1a28ae('0x17')](_0x4b0780['model'],_0x4b0780['query']),_0x2386f2[_0x1a28ae('0x25')]=_['intersection'](_0x4b0780[_0x1a28ae('0x1a')],qs[_0x1a28ae('0x23')](_0xc6bdb1[_0x1a28ae('0x1c')][_0x1a28ae('0x23')])),_0x2386f2[_0x1a28ae('0x25')]=_0x2386f2['attributes']['length']?_0x2386f2[_0x1a28ae('0x25')]:_0x4b0780[_0x1a28ae('0x1a')];typeof _0xc6bdb1['query'][_0x1a28ae('0x34')]===_0x1a28ae('0x27')&&(_0x2386f2[_0x1a28ae('0x2')]=qs[_0x1a28ae('0x2')](_0xc6bdb1['query'][_0x1a28ae('0x2')]),_0x2386f2[_0x1a28ae('0x3c')]=qs[_0x1a28ae('0x3c')](_0xc6bdb1[_0x1a28ae('0x1c')][_0x1a28ae('0x3c')]));_0x2386f2[_0x1a28ae('0x10')]=qs[_0x1a28ae('0x2b')](_0xc6bdb1[_0x1a28ae('0x1c')][_0x1a28ae('0x2b')]),_0x2386f2['where']=qs['filters'](_[_0x1a28ae('0x36')](_0xc6bdb1['query'],_0x4b0780[_0x1a28ae('0x3')]),_0x1d4586);_0xc6bdb1[_0x1a28ae('0x1c')][_0x1a28ae('0x2f')]&&(_0x2386f2[_0x1a28ae('0x2e')]=_[_0x1a28ae('0x12')](_0x2386f2[_0x1a28ae('0x2e')],{[Op['or']]:_[_0x1a28ae('0x30')](_0x1d4586,function(_0x38c123){const _0xe55b13=_0x1a28ae;if(_0x38c123[_0xe55b13('0x3b')]!==_0xe55b13('0x21')){const _0xb08cc0={};return _0xb08cc0[_0x38c123['name']]={[Op[_0xe55b13('0xf')]]:'%'+_0xc6bdb1[_0xe55b13('0x1c')]['filter']+'%'},_0xb08cc0;}})}));_0x2386f2=_[_0x1a28ae('0x12')]({},_0x2386f2,_0xc6bdb1[_0x1a28ae('0x3d')]);const _0x2ef2ef={'where':_0x2386f2[_0x1a28ae('0x2e')]};return db['Pause'][_0x1a28ae('0xd')](_0x2ef2ef)[_0x1a28ae('0x0')](function(_0x177bc9){const _0x542685=_0x1a28ae;return _0x13e9b8[_0x542685('0xd')]=_0x177bc9,_0xc6bdb1[_0x542685('0x1c')]['includeAll']&&(_0x2386f2[_0x542685('0x6')]=[{'all':!![]}]),db[_0x542685('0x33')]['findAll'](_0x2386f2);})[_0x1a28ae('0x0')](function(_0x287eec){return _0x13e9b8['rows']=_0x287eec,_0x13e9b8;})[_0x1a28ae('0x0')](respondWithFilteredResult(_0x1e240c,_0x2386f2))[_0x1a28ae('0x14')](handleError(_0x1e240c,null));},exports[_0x1b7542('0x2a')]=function(_0x1c2dc6,_0x898a15){const _0x15cf05=_0x1b7542;let _0x37f8a3={'raw':!![],'where':{'id':_0x1c2dc6[_0x15cf05('0x31')]['id']}};const _0x16ee77={};return _0x16ee77[_0x15cf05('0x1a')]=_[_0x15cf05('0x1')](db[_0x15cf05('0x33')][_0x15cf05('0x4')]),_0x16ee77[_0x15cf05('0x1c')]=_[_0x15cf05('0x1')](_0x1c2dc6[_0x15cf05('0x1c')]),_0x16ee77[_0x15cf05('0x3')]=_[_0x15cf05('0x17')](_0x16ee77[_0x15cf05('0x1a')],_0x16ee77['query']),_0x37f8a3[_0x15cf05('0x25')]=_[_0x15cf05('0x17')](_0x16ee77[_0x15cf05('0x1a')],qs[_0x15cf05('0x23')](_0x1c2dc6[_0x15cf05('0x1c')][_0x15cf05('0x23')])),_0x37f8a3[_0x15cf05('0x25')]=_0x37f8a3[_0x15cf05('0x25')][_0x15cf05('0x1e')]?_0x37f8a3['attributes']:_0x16ee77['model'],_0x1c2dc6[_0x15cf05('0x1c')][_0x15cf05('0x3e')]&&(_0x37f8a3[_0x15cf05('0x6')]=[{'all':!![]}]),_0x37f8a3=_['merge']({},_0x37f8a3,_0x1c2dc6[_0x15cf05('0x3d')]),db[_0x15cf05('0x33')][_0x15cf05('0x29')](_0x37f8a3)[_0x15cf05('0x0')](handleEntityNotFound(_0x898a15,null))['then'](respondWithResult(_0x898a15,null))[_0x15cf05('0x14')](handleError(_0x898a15,null));},exports['create']=function(_0x59c121,_0x528453){const _0x780229=_0x1b7542;return db[_0x780229('0x33')][_0x780229('0x13')](_0x59c121[_0x780229('0x16')],{})[_0x780229('0x0')](function(_0x53763e){const _0x3b7807=_0x780229,_0x58aeaf=_0x59c121[_0x3b7807('0x3f')][_0x3b7807('0x15')]({'plain':!![]});if(!_0x58aeaf)throw new Error(_0x3b7807('0x8'));if(_0x58aeaf[_0x3b7807('0x19')]===_0x3b7807('0x3f')){const _0x55b455=_0x53763e['get']({'plain':!![]}),_0x593183='Pauses';return db[_0x3b7807('0x11')][_0x3b7807('0x29')]({'where':{'name':_0x593183,'userProfileId':_0x58aeaf[_0x3b7807('0x2c')]},'raw':!![]})['then'](function(_0x296964){const _0x481ca6=_0x3b7807;return _0x296964&&_0x296964[_0x481ca6('0x9')]===0x0?db['UserProfileResource'][_0x481ca6('0x13')]({'name':_0x55b455['name'],'resourceId':_0x55b455['id'],'type':_0x296964['name'],'sectionId':_0x296964['id']},{})[_0x481ca6('0x0')](function(){return _0x53763e;}):_0x53763e;})['catch'](function(_0x48db92){const _0x50b541=_0x3b7807;logger[_0x50b541('0x24')](_0x50b541('0x32'),_0x48db92);throw _0x48db92;});}return _0x53763e;})[_0x780229('0x0')](respondWithResult(_0x528453,0xc9))['catch'](handleError(_0x528453,null));},exports[_0x1b7542('0x18')]=function(_0x523a84,_0x4e31e7){const _0x2ac915=_0x1b7542;return _0x523a84[_0x2ac915('0x16')]['id']&&delete _0x523a84['body']['id'],db[_0x2ac915('0x33')]['findOne']({'where':{'id':_0x523a84[_0x2ac915('0x31')]['id']}})[_0x2ac915('0x0')](handleEntityNotFound(_0x4e31e7,null))[_0x2ac915('0x0')](saveUpdates(_0x523a84[_0x2ac915('0x16')],null))['then'](respondWithResult(_0x4e31e7,null))[_0x2ac915('0x14')](handleError(_0x4e31e7,null));},exports[_0x1b7542('0x38')]=function(_0x56997d,_0x55e198){const _0x431403=_0x1b7542;return db[_0x431403('0x33')][_0x431403('0x29')]({'where':{'id':_0x56997d['params']['id']}})['then'](handleEntityNotFound(_0x55e198,null))[_0x431403('0x0')](removeEntity(_0x55e198,null))[_0x431403('0x14')](handleError(_0x55e198,null));}; \ No newline at end of file +const a510_0xcc18=['Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','keys','findOne','key','Pauses','offset','sendStatus','stack','rows','rawAttributes','include','VIRTUAL','update','catch','../../mysqldb','fields','count','includeAll','send','query','merge','UserProfileResource','filter','attributes','json','params','like','length','user','intersection','filters','show','Unable\x20to\x20retrieve\x20the\x20current\x20user','map','error','findAll','destroy','role','status','body','limit','create','then','options','where','model','name','pick','undefined','fieldName','sort','sequelize','set','Pause','get','UserProfileSection','userProfileId','type','index'];(function(_0x20b323,_0xcc187a){const _0x638d2=function(_0x3b37b5){while(--_0x3b37b5){_0x20b323['push'](_0x20b323['shift']());}};_0x638d2(++_0xcc187a);}(a510_0xcc18,0xff));const a510_0x638d=function(_0x20b323,_0xcc187a){_0x20b323=_0x20b323-0x0;let _0x638d2=a510_0xcc18[_0x20b323];return _0x638d2;};const _0x12ebe8=a510_0x638d;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x12ebe8('0x36'))['db'],{Op}=require(_0x12ebe8('0x20'));function respondWithResult(_0x3b37b5,_0x27d4a3){return _0x27d4a3=_0x27d4a3||0xc8,function(_0x33cd81){const _0x3b370c=a510_0x638d;if(_0x33cd81)return _0x3b37b5[_0x3b370c('0x13')](_0x27d4a3)['json'](_0x33cd81);};}function respondWithFilteredResult(_0x4b6e14,_0x36a9e2){return function(_0x13a839){const _0x5ca8f5=a510_0x638d;if(_0x13a839){const _0x2d7dd0=_0x13a839[_0x5ca8f5('0x38')],_0x75bb98=_0x36a9e2['offset'];let _0x3a95f1=_0x36a9e2[_0x5ca8f5('0x2d')]+_0x36a9e2[_0x5ca8f5('0x15')],_0x129c9d;return _0x3a95f1>=_0x2d7dd0?(_0x3a95f1=_0x2d7dd0,_0x129c9d=0xc8):_0x129c9d=0xce,_0x4b6e14[_0x5ca8f5('0x13')](_0x129c9d),_0x4b6e14[_0x5ca8f5('0x21')]('Content-Range',_0x75bb98+'-'+_0x3a95f1+'/'+_0x2d7dd0)[_0x5ca8f5('0x5')](_0x13a839);}return null;};}function saveUpdates(_0x3d1126){return function(_0x59cfa3){const _0x558cfc=a510_0x638d;if(_0x59cfa3)return _0x59cfa3[_0x558cfc('0x34')](_0x3d1126)[_0x558cfc('0x17')](function(_0x902640){return _0x902640;});return null;};}function removeEntity(_0x2b5fb6){return function(_0x5137fd){const _0x52e14b=a510_0x638d;if(_0x5137fd)return _0x5137fd[_0x52e14b('0x11')]()[_0x52e14b('0x17')](function(){const _0x500ef6=_0x52e14b,_0x29b07b=_0x5137fd[_0x500ef6('0x23')]({'plain':!![]}),_0x3e703f=_0x500ef6('0x2c');return db['UserProfileResource'][_0x500ef6('0x11')]({'where':{'type':_0x3e703f,'resourceId':_0x29b07b['id']}})['then'](function(){return _0x5137fd;});})['then'](function(){const _0x200036=_0x52e14b;_0x2b5fb6[_0x200036('0x13')](0xcc)['end']();});};}function handleEntityNotFound(_0x4c0200){return function(_0xb1b40d){const _0x2819d6=a510_0x638d;return!_0xb1b40d&&_0x4c0200[_0x2819d6('0x2e')](0x194),_0xb1b40d;};}function handleError(_0x850087,_0x42e7ba){return _0x42e7ba=_0x42e7ba||0x1f4,function(_0x49cb24){const _0x5c5ca1=a510_0x638d;logger['error'](_0x49cb24[_0x5c5ca1('0x2f')]),_0x49cb24['name']&&delete _0x49cb24[_0x5c5ca1('0x1b')],_0x850087[_0x5c5ca1('0x13')](_0x42e7ba)[_0x5c5ca1('0x3a')](_0x49cb24);};}exports[_0x12ebe8('0x27')]=function(_0x48f501,_0x3cc1cc){const _0x44a83a=_0x12ebe8;let _0x3ab0ae={};const _0x35aa3c={},_0x60a55f={'count':0x0,'rows':[]},_0x2bda0a=_['map'](db[_0x44a83a('0x22')]['rawAttributes'],function(_0x1a35b5){const _0x3af2b9=_0x44a83a;return{'name':_0x1a35b5[_0x3af2b9('0x1e')],'type':_0x1a35b5[_0x3af2b9('0x26')][_0x3af2b9('0x2b')]};});_0x35aa3c[_0x44a83a('0x1a')]=_[_0x44a83a('0xe')](_0x2bda0a,_0x44a83a('0x1b')),_0x35aa3c['query']=_[_0x44a83a('0x29')](_0x48f501[_0x44a83a('0x0')]),_0x35aa3c['filters']=_[_0x44a83a('0xa')](_0x35aa3c['model'],_0x35aa3c[_0x44a83a('0x0')]),_0x3ab0ae[_0x44a83a('0x4')]=_['intersection'](_0x35aa3c[_0x44a83a('0x1a')],qs[_0x44a83a('0x37')](_0x48f501[_0x44a83a('0x0')][_0x44a83a('0x37')])),_0x3ab0ae[_0x44a83a('0x4')]=_0x3ab0ae[_0x44a83a('0x4')]['length']?_0x3ab0ae[_0x44a83a('0x4')]:_0x35aa3c[_0x44a83a('0x1a')];typeof _0x48f501[_0x44a83a('0x0')]['nolimit']===_0x44a83a('0x1d')&&(_0x3ab0ae[_0x44a83a('0x15')]=qs[_0x44a83a('0x15')](_0x48f501['query'][_0x44a83a('0x15')]),_0x3ab0ae[_0x44a83a('0x2d')]=qs[_0x44a83a('0x2d')](_0x48f501['query'][_0x44a83a('0x2d')]));_0x3ab0ae['order']=qs[_0x44a83a('0x1f')](_0x48f501[_0x44a83a('0x0')]['sort']),_0x3ab0ae[_0x44a83a('0x19')]=qs['filters'](_[_0x44a83a('0x1c')](_0x48f501[_0x44a83a('0x0')],_0x35aa3c[_0x44a83a('0xb')]),_0x2bda0a);_0x48f501[_0x44a83a('0x0')][_0x44a83a('0x3')]&&(_0x3ab0ae['where']=_[_0x44a83a('0x1')](_0x3ab0ae[_0x44a83a('0x19')],{[Op['or']]:_[_0x44a83a('0xe')](_0x2bda0a,function(_0x124be8){const _0x3bac46=_0x44a83a;if(_0x124be8[_0x3bac46('0x26')]!==_0x3bac46('0x33')){const _0x111334={};return _0x111334[_0x124be8[_0x3bac46('0x1b')]]={[Op[_0x3bac46('0x7')]]:'%'+_0x48f501['query'][_0x3bac46('0x3')]+'%'},_0x111334;}})}));_0x3ab0ae=_[_0x44a83a('0x1')]({},_0x3ab0ae,_0x48f501[_0x44a83a('0x18')]);const _0x5c6290={'where':_0x3ab0ae['where']};return db[_0x44a83a('0x22')][_0x44a83a('0x38')](_0x5c6290)[_0x44a83a('0x17')](function(_0x56d769){const _0x22dc5f=_0x44a83a;return _0x60a55f[_0x22dc5f('0x38')]=_0x56d769,_0x48f501[_0x22dc5f('0x0')][_0x22dc5f('0x39')]&&(_0x3ab0ae[_0x22dc5f('0x32')]=[{'all':!![]}]),db[_0x22dc5f('0x22')][_0x22dc5f('0x10')](_0x3ab0ae);})[_0x44a83a('0x17')](function(_0x421387){const _0x5469bb=_0x44a83a;return _0x60a55f[_0x5469bb('0x30')]=_0x421387,_0x60a55f;})['then'](respondWithFilteredResult(_0x3cc1cc,_0x3ab0ae))['catch'](handleError(_0x3cc1cc,null));},exports[_0x12ebe8('0xc')]=function(_0x10d873,_0x4a6c0b){const _0x4ab1d5=_0x12ebe8;let _0x53f8d0={'raw':!![],'where':{'id':_0x10d873['params']['id']}};const _0x22f456={};return _0x22f456[_0x4ab1d5('0x1a')]=_[_0x4ab1d5('0x29')](db[_0x4ab1d5('0x22')][_0x4ab1d5('0x31')]),_0x22f456[_0x4ab1d5('0x0')]=_['keys'](_0x10d873[_0x4ab1d5('0x0')]),_0x22f456[_0x4ab1d5('0xb')]=_[_0x4ab1d5('0xa')](_0x22f456[_0x4ab1d5('0x1a')],_0x22f456[_0x4ab1d5('0x0')]),_0x53f8d0[_0x4ab1d5('0x4')]=_[_0x4ab1d5('0xa')](_0x22f456['model'],qs[_0x4ab1d5('0x37')](_0x10d873[_0x4ab1d5('0x0')]['fields'])),_0x53f8d0['attributes']=_0x53f8d0[_0x4ab1d5('0x4')][_0x4ab1d5('0x8')]?_0x53f8d0['attributes']:_0x22f456[_0x4ab1d5('0x1a')],_0x10d873[_0x4ab1d5('0x0')][_0x4ab1d5('0x39')]&&(_0x53f8d0['include']=[{'all':!![]}]),_0x53f8d0=_[_0x4ab1d5('0x1')]({},_0x53f8d0,_0x10d873['options']),db[_0x4ab1d5('0x22')][_0x4ab1d5('0x2a')](_0x53f8d0)[_0x4ab1d5('0x17')](handleEntityNotFound(_0x4a6c0b,null))['then'](respondWithResult(_0x4a6c0b,null))[_0x4ab1d5('0x35')](handleError(_0x4a6c0b,null));},exports['create']=function(_0x5d5fd1,_0x342057){const _0x2e04eb=_0x12ebe8;return db['Pause'][_0x2e04eb('0x16')](_0x5d5fd1[_0x2e04eb('0x14')],{})['then'](function(_0x39ea5d){const _0x19c513=_0x2e04eb,_0x4ad8c7=_0x5d5fd1[_0x19c513('0x9')][_0x19c513('0x23')]({'plain':!![]});if(!_0x4ad8c7)throw new Error(_0x19c513('0xd'));if(_0x4ad8c7[_0x19c513('0x12')]===_0x19c513('0x9')){const _0x517953=_0x39ea5d['get']({'plain':!![]}),_0x552c9f=_0x19c513('0x2c');return db[_0x19c513('0x24')][_0x19c513('0x2a')]({'where':{'name':_0x552c9f,'userProfileId':_0x4ad8c7[_0x19c513('0x25')]},'raw':!![]})[_0x19c513('0x17')](function(_0x37f582){const _0x4df816=_0x19c513;return _0x37f582&&_0x37f582['autoAssociation']===0x0?db[_0x4df816('0x2')][_0x4df816('0x16')]({'name':_0x517953[_0x4df816('0x1b')],'resourceId':_0x517953['id'],'type':_0x37f582[_0x4df816('0x1b')],'sectionId':_0x37f582['id']},{})[_0x4df816('0x17')](function(){return _0x39ea5d;}):_0x39ea5d;})['catch'](function(_0x1ad71a){const _0x260caa=_0x19c513;logger[_0x260caa('0xf')](_0x260caa('0x28'),_0x1ad71a);throw _0x1ad71a;});}return _0x39ea5d;})[_0x2e04eb('0x17')](respondWithResult(_0x342057,0xc9))[_0x2e04eb('0x35')](handleError(_0x342057,null));},exports[_0x12ebe8('0x34')]=function(_0x44153f,_0x22a087){const _0x146104=_0x12ebe8;return _0x44153f['body']['id']&&delete _0x44153f[_0x146104('0x14')]['id'],db[_0x146104('0x22')][_0x146104('0x2a')]({'where':{'id':_0x44153f[_0x146104('0x6')]['id']}})['then'](handleEntityNotFound(_0x22a087,null))[_0x146104('0x17')](saveUpdates(_0x44153f[_0x146104('0x14')],null))[_0x146104('0x17')](respondWithResult(_0x22a087,null))[_0x146104('0x35')](handleError(_0x22a087,null));},exports[_0x12ebe8('0x11')]=function(_0xa85a58,_0x24ccd4){const _0x3f2534=_0x12ebe8;return db[_0x3f2534('0x22')][_0x3f2534('0x2a')]({'where':{'id':_0xa85a58[_0x3f2534('0x6')]['id']}})[_0x3f2534('0x17')](handleEntityNotFound(_0x24ccd4,null))['then'](removeEntity(_0x24ccd4,null))['catch'](handleError(_0x24ccd4,null));}; \ No newline at end of file diff --git a/server/api/pause/pause.model.js b/server/api/pause/pause.model.js index ebe2dd0..5569c47 100644 --- a/server/api/pause/pause.model.js +++ b/server/api/pause/pause.model.js @@ -1 +1 @@ -const a511_0x24c5=['exports','./pause.attributes','define','Pause'];(function(_0x3cb1f8,_0x24c56c){const _0x231168=function(_0x4c182b){while(--_0x4c182b){_0x3cb1f8['push'](_0x3cb1f8['shift']());}};_0x231168(++_0x24c56c);}(a511_0x24c5,0x1d1));const a511_0x2311=function(_0x3cb1f8,_0x24c56c){_0x3cb1f8=_0x3cb1f8-0x0;let _0x231168=a511_0x24c5[_0x3cb1f8];return _0x231168;};const _0x1381c0=a511_0x2311;'use strict';const attributes=require(_0x1381c0('0x0'));module[_0x1381c0('0x3')]=function(_0x4c182b){const _0x5c7bc2=_0x1381c0,_0x172d47=_0x4c182b[_0x5c7bc2('0x1')](_0x5c7bc2('0x2'),attributes,{'tableName':'tools_pauses','paranoid':![],'indexes':[],'timestamps':!![]});return _0x172d47;}; \ No newline at end of file +const a511_0xf6b0=['exports','Pause','tools_pauses','define','./pause.attributes'];(function(_0x4209e2,_0xf6b02){const _0x17a42b=function(_0x1cd2cb){while(--_0x1cd2cb){_0x4209e2['push'](_0x4209e2['shift']());}};_0x17a42b(++_0xf6b02);}(a511_0xf6b0,0x73));const a511_0x17a4=function(_0x4209e2,_0xf6b02){_0x4209e2=_0x4209e2-0x0;let _0x17a42b=a511_0xf6b0[_0x4209e2];return _0x17a42b;};const _0xb641f1=a511_0x17a4;'use strict';const attributes=require(_0xb641f1('0x4'));module[_0xb641f1('0x0')]=function(_0x1cd2cb){const _0x5a6d66=_0xb641f1,_0x110288=_0x1cd2cb[_0x5a6d66('0x3')](_0x5a6d66('0x1'),attributes,{'tableName':_0x5a6d66('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x110288;}; \ No newline at end of file diff --git a/server/api/pause/pause.rpc.js b/server/api/pause/pause.rpc.js index ba91f16..464f868 100644 --- a/server/api/pause/pause.rpc.js +++ b/server/api/pause/pause.rpc.js @@ -1 +1 @@ -const a512_0x2442=['then','../../mysqldb','model','../../config/logger','findOne','info','ShowPause','options','catch','message','include','attributes','map','where','Pause','stringify','raw','lodash','rpc'];(function(_0x8d24c0,_0x2442b6){const _0x8ac268=function(_0xfc76b2){while(--_0xfc76b2){_0x8d24c0['push'](_0x8d24c0['shift']());}};_0x8ac268(++_0x2442b6);}(a512_0x2442,0x166));const a512_0x8ac2=function(_0x8d24c0,_0x2442b6){_0x8d24c0=_0x8d24c0-0x0;let _0x8ac268=a512_0x2442[_0x8d24c0];return _0x8ac268;};const _0x5e760b=a512_0x8ac2;'use strict';const db=require(_0x5e760b('0x4'))['db'],logger=require(_0x5e760b('0x6'))(_0x5e760b('0x2')),_=require(_0x5e760b('0x1'));exports[_0x5e760b('0x9')]=function(_0xfc76b2){const _0xb21af0=this;return new Promise(function(_0x1b084f,_0x5bcdcf){const _0x4c9a8f=a512_0x8ac2;return db[_0x4c9a8f('0x11')][_0x4c9a8f('0x7')]({'raw':_0xfc76b2[_0x4c9a8f('0xa')]?_0xfc76b2['options'][_0x4c9a8f('0x0')]===undefined?!![]:![]:!![],'where':_0xfc76b2[_0x4c9a8f('0xa')]?_0xfc76b2['options'][_0x4c9a8f('0x10')]||null:null,'attributes':_0xfc76b2['options']?_0xfc76b2[_0x4c9a8f('0xa')][_0x4c9a8f('0xe')]||null:null,'include':_0xfc76b2[_0x4c9a8f('0xa')]?_0xfc76b2[_0x4c9a8f('0xa')][_0x4c9a8f('0xd')]?_[_0x4c9a8f('0xf')](_0xfc76b2[_0x4c9a8f('0xa')]['include'],function(_0x59ef40){const _0x4101a2=_0x4c9a8f;return{'model':db[_0x59ef40['model']],'as':_0x59ef40['as'],'attributes':_0x59ef40[_0x4101a2('0xe')],'include':_0x59ef40[_0x4101a2('0xd')]?_[_0x4101a2('0xf')](_0x59ef40['include'],function(_0x383ed4){const _0x39024c=_0x4101a2;return{'model':db[_0x383ed4[_0x39024c('0x5')]],'as':_0x383ed4['as'],'attributes':_0x383ed4[_0x39024c('0xe')],'include':_0x383ed4[_0x39024c('0xd')]?_[_0x39024c('0xf')](_0x383ed4[_0x39024c('0xd')],function(_0x265543){const _0x341b81=_0x39024c;return{'model':db[_0x265543[_0x341b81('0x5')]],'as':_0x265543['as'],'attributes':_0x265543[_0x341b81('0xe')]};}):[]};}):[]};}):[]:[]})[_0x4c9a8f('0x3')](function(_0x1b1f1e){const _0x491cc5=_0x4c9a8f;logger[_0x491cc5('0x8')](_0x491cc5('0x9'),_0xfc76b2),logger['debug']('ShowPause',_0xfc76b2,JSON[_0x491cc5('0x12')](_0x1b1f1e)),_0x1b084f(_0x1b1f1e);})[_0x4c9a8f('0xb')](function(_0x418e32){const _0xba0f63=_0x4c9a8f;logger['error']('ShowPause',_0x418e32[_0xba0f63('0xc')],_0xfc76b2),_0x5bcdcf(_0xb21af0['error'](0x1f4,_0x418e32[_0xba0f63('0xc')]));});});}; \ No newline at end of file +const a512_0x1888=['attributes','../../mysqldb','where','map','include','options','stringify','findOne','Pause','lodash','error','ShowPause','message','debug','model'];(function(_0x106928,_0x18887b){const _0x1af7c4=function(_0x1cd876){while(--_0x1cd876){_0x106928['push'](_0x106928['shift']());}};_0x1af7c4(++_0x18887b);}(a512_0x1888,0x12f));const a512_0x1af7=function(_0x106928,_0x18887b){_0x106928=_0x106928-0x0;let _0x1af7c4=a512_0x1888[_0x106928];return _0x1af7c4;};const _0x370b96=a512_0x1af7;'use strict';const db=require(_0x370b96('0xd'))['db'],logger=require('../../config/logger')('rpc'),_=require(_0x370b96('0x6'));exports[_0x370b96('0x8')]=function(_0x1cd876){const _0x49dbc0=this;return new Promise(function(_0x23ba69,_0x1714e8){const _0x5ddfff=a512_0x1af7;return db[_0x5ddfff('0x5')][_0x5ddfff('0x4')]({'raw':_0x1cd876[_0x5ddfff('0x2')]?_0x1cd876['options']['raw']===undefined?!![]:![]:!![],'where':_0x1cd876[_0x5ddfff('0x2')]?_0x1cd876[_0x5ddfff('0x2')][_0x5ddfff('0xe')]||null:null,'attributes':_0x1cd876[_0x5ddfff('0x2')]?_0x1cd876[_0x5ddfff('0x2')][_0x5ddfff('0xc')]||null:null,'include':_0x1cd876[_0x5ddfff('0x2')]?_0x1cd876['options'][_0x5ddfff('0x1')]?_['map'](_0x1cd876[_0x5ddfff('0x2')][_0x5ddfff('0x1')],function(_0x13d095){const _0x5980bc=_0x5ddfff;return{'model':db[_0x13d095[_0x5980bc('0xb')]],'as':_0x13d095['as'],'attributes':_0x13d095['attributes'],'include':_0x13d095['include']?_[_0x5980bc('0x0')](_0x13d095[_0x5980bc('0x1')],function(_0x1aadb0){const _0x16d91e=_0x5980bc;return{'model':db[_0x1aadb0[_0x16d91e('0xb')]],'as':_0x1aadb0['as'],'attributes':_0x1aadb0[_0x16d91e('0xc')],'include':_0x1aadb0[_0x16d91e('0x1')]?_['map'](_0x1aadb0[_0x16d91e('0x1')],function(_0x233141){const _0x28d50f=_0x16d91e;return{'model':db[_0x233141[_0x28d50f('0xb')]],'as':_0x233141['as'],'attributes':_0x233141[_0x28d50f('0xc')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1296a5){const _0x640f22=_0x5ddfff;logger['info'](_0x640f22('0x8'),_0x1cd876),logger[_0x640f22('0xa')](_0x640f22('0x8'),_0x1cd876,JSON[_0x640f22('0x3')](_0x1296a5)),_0x23ba69(_0x1296a5);})['catch'](function(_0x5a7489){const _0x202b42=_0x5ddfff;logger[_0x202b42('0x7')](_0x202b42('0x8'),_0x5a7489['message'],_0x1cd876),_0x1714e8(_0x49dbc0[_0x202b42('0x7')](0x1f4,_0x5a7489[_0x202b42('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/plugin/index.js b/server/api/plugin/index.js index 9978fe1..074f269 100644 --- a/server/api/plugin/index.js +++ b/server/api/plugin/index.js @@ -1 +1 @@ -const a513_0x12ef=['diskStorage','../../components/auth/service','%s-%s%s','/:id','delete','/:id/download','exports','/webhook','isAuthenticated','util','server/files/plugins','path','root','show','format','file','update','webhookGet','get','multer','webhookPost','index','post','upload','extname','originalname','../../config/environment','./plugin.controller','download','single'];(function(_0x448de1,_0x12ef00){const _0xfa2c7c=function(_0x2b82a){while(--_0x2b82a){_0x448de1['push'](_0x448de1['shift']());}};_0xfa2c7c(++_0x12ef00);}(a513_0x12ef,0xd0));const a513_0xfa2c=function(_0x448de1,_0x12ef00){_0x448de1=_0x448de1-0x0;let _0xfa2c7c=a513_0x12ef[_0x448de1];return _0xfa2c7c;};const _0x2fd9db=a513_0xfa2c;'use strict';const multer=require(_0x2fd9db('0x15')),util=require(_0x2fd9db('0xb')),path=require(_0x2fd9db('0xd')),express=require('express'),router=express['Router'](),auth=require(_0x2fd9db('0x3')),config=require(_0x2fd9db('0x1c')),controller=require(_0x2fd9db('0x1d'));router['get']('/',auth['isAuthenticated'](),controller[_0x2fd9db('0x17')]),router['get'](_0x2fd9db('0x9'),controller[_0x2fd9db('0x13')]),router['get'](_0x2fd9db('0x5'),auth[_0x2fd9db('0xa')](),controller[_0x2fd9db('0xf')]),router[_0x2fd9db('0x14')](_0x2fd9db('0x7'),auth[_0x2fd9db('0xa')](),controller[_0x2fd9db('0x0')]);const upload=multer({'storage':multer[_0x2fd9db('0x2')]({'destination':function(_0x2b82a,_0x941dc3,_0x10c7d3){const _0x4f04c6=_0x2fd9db;_0x10c7d3(null,path['join'](config[_0x4f04c6('0xe')],_0x4f04c6('0xc')));},'filename':function(_0x5728f4,_0x5cbc53,_0xf95ebe){const _0x2becad=_0x2fd9db;_0x5cbc53['originalname']=_0x5cbc53[_0x2becad('0x1b')]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0xf95ebe(null,util[_0x2becad('0x10')](_0x2becad('0x4'),path['basename'](_0x5cbc53[_0x2becad('0x1b')],path[_0x2becad('0x1a')](_0x5cbc53[_0x2becad('0x1b')])),Date['now'](),path[_0x2becad('0x1a')](_0x5cbc53[_0x2becad('0x1b')])));}})});router[_0x2fd9db('0x18')]('/',upload[_0x2fd9db('0x1')](_0x2fd9db('0x11')),controller[_0x2fd9db('0x19')]),router[_0x2fd9db('0x18')](_0x2fd9db('0x9'),controller[_0x2fd9db('0x16')]),router['put'](_0x2fd9db('0x5'),auth[_0x2fd9db('0xa')](),controller[_0x2fd9db('0x12')]),router[_0x2fd9db('0x6')](_0x2fd9db('0x5'),auth['isAuthenticated'](),controller[_0x2fd9db('0x6')]),module[_0x2fd9db('0x8')]=router; \ No newline at end of file +const a513_0x26ca=['isAuthenticated','/webhook','../../components/auth/service','show','/:id','%s-%s%s','upload','file','download','format','extname','server/files/plugins','index','now','originalname','join','delete','diskStorage','multer','get','exports','/:id/download','update','webhookGet','webhookPost','Router','./plugin.controller'];(function(_0x2d7869,_0x26ca43){const _0x4e2225=function(_0x390687){while(--_0x390687){_0x2d7869['push'](_0x2d7869['shift']());}};_0x4e2225(++_0x26ca43);}(a513_0x26ca,0xd0));const a513_0x4e22=function(_0x2d7869,_0x26ca43){_0x2d7869=_0x2d7869-0x0;let _0x4e2225=a513_0x26ca[_0x2d7869];return _0x4e2225;};const _0x2b55df=a513_0x4e22;'use strict';const multer=require(_0x2b55df('0x1a')),util=require('util'),path=require('path'),express=require('express'),router=express[_0x2b55df('0x6')](),auth=require(_0x2b55df('0xa')),config=require('../../config/environment'),controller=require(_0x2b55df('0x7'));router[_0x2b55df('0x0')]('/',auth[_0x2b55df('0x8')](),controller[_0x2b55df('0x14')]),router[_0x2b55df('0x0')](_0x2b55df('0x9'),controller[_0x2b55df('0x4')]),router[_0x2b55df('0x0')](_0x2b55df('0xc'),auth[_0x2b55df('0x8')](),controller[_0x2b55df('0xb')]),router['get'](_0x2b55df('0x2'),auth[_0x2b55df('0x8')](),controller[_0x2b55df('0x10')]);const upload=multer({'storage':multer[_0x2b55df('0x19')]({'destination':function(_0x390687,_0x223914,_0x19d79c){const _0x445701=_0x2b55df;_0x19d79c(null,path[_0x445701('0x17')](config['root'],_0x445701('0x13')));},'filename':function(_0x16dc91,_0xd48575,_0x2c2720){const _0x14a144=_0x2b55df;_0xd48575[_0x14a144('0x16')]=_0xd48575[_0x14a144('0x16')]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x2c2720(null,util[_0x14a144('0x11')](_0x14a144('0xd'),path['basename'](_0xd48575[_0x14a144('0x16')],path[_0x14a144('0x12')](_0xd48575['originalname'])),Date[_0x14a144('0x15')](),path[_0x14a144('0x12')](_0xd48575[_0x14a144('0x16')])));}})});router['post']('/',upload['single'](_0x2b55df('0xf')),controller[_0x2b55df('0xe')]),router['post']('/webhook',controller[_0x2b55df('0x5')]),router['put'](_0x2b55df('0xc'),auth[_0x2b55df('0x8')](),controller[_0x2b55df('0x3')]),router['delete'](_0x2b55df('0xc'),auth[_0x2b55df('0x8')](),controller[_0x2b55df('0x18')]),module[_0x2b55df('0x1')]=router; \ No newline at end of file diff --git a/server/api/plugin/plugin.attributes.js b/server/api/plugin/plugin.attributes.js index 1c96f74..7cc711c 100644 --- a/server/api/plugin/plugin.attributes.js +++ b/server/api/plugin/plugin.attributes.js @@ -1 +1 @@ -const a514_0x4b72=['sequelize','adminOnly','agentOnly','always','Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.','exports','script','BOOLEAN','ENUM','TEXT','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.','STRING'];(function(_0x60de1a,_0x4b720f){const _0x39aa95=function(_0x28ec0e){while(--_0x28ec0e){_0x60de1a['push'](_0x60de1a['shift']());}};_0x39aa95(++_0x4b720f);}(a514_0x4b72,0xed));const a514_0x39aa=function(_0x60de1a,_0x4b720f){_0x60de1a=_0x60de1a-0x0;let _0x39aa95=a514_0x4b72[_0x60de1a];return _0x39aa95;};const _0xcd1d84=a514_0x39aa;'use strict';const Sequelize=require(_0xcd1d84('0xa'));module[_0xcd1d84('0x3')]={'name':{'type':Sequelize[_0xcd1d84('0x9')]},'type':{'type':Sequelize[_0xcd1d84('0x6')]('html',_0xcd1d84('0x4'))},'description':{'type':Sequelize[_0xcd1d84('0x7')]},'version':{'type':Sequelize[_0xcd1d84('0x7')]},'path':{'type':Sequelize[_0xcd1d84('0x9')],'comment':_0xcd1d84('0x8')},'active':{'type':Sequelize[_0xcd1d84('0x5')],'defaultValue':0x0,'comment':_0xcd1d84('0x2')},'sidebar':{'type':Sequelize[_0xcd1d84('0x6')](_0xcd1d84('0xb'),_0xcd1d84('0xc'),_0xcd1d84('0x0'),'never'),'defaultValue':'always','comment':_0xcd1d84('0x1')},'icon':{'type':Sequelize['STRING']},'adminUrl':{'type':Sequelize[_0xcd1d84('0x9')]},'agentUrl':{'type':Sequelize['STRING']},'scriptName':{'type':Sequelize[_0xcd1d84('0x9')]},'scriptPath':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a514_0x968e=['TEXT','sequelize','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.','ENUM','agentOnly','exports','BOOLEAN','never','Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.','adminOnly','STRING','always','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.'];(function(_0x871766,_0x968e7c){const _0x3e3824=function(_0x406989){while(--_0x406989){_0x871766['push'](_0x871766['shift']());}};_0x3e3824(++_0x968e7c);}(a514_0x968e,0x1b2));const a514_0x3e38=function(_0x871766,_0x968e7c){_0x871766=_0x871766-0x0;let _0x3e3824=a514_0x968e[_0x871766];return _0x3e3824;};const _0x57423f=a514_0x3e38;'use strict';const Sequelize=require(_0x57423f('0x9'));module[_0x57423f('0x0')]={'name':{'type':Sequelize[_0x57423f('0x5')]},'type':{'type':Sequelize[_0x57423f('0xb')]('html','script')},'description':{'type':Sequelize[_0x57423f('0x8')]},'version':{'type':Sequelize['TEXT']},'path':{'type':Sequelize[_0x57423f('0x5')],'comment':_0x57423f('0x7')},'active':{'type':Sequelize[_0x57423f('0x1')],'defaultValue':0x0,'comment':_0x57423f('0xa')},'sidebar':{'type':Sequelize[_0x57423f('0xb')](_0x57423f('0x4'),_0x57423f('0xc'),_0x57423f('0x6'),_0x57423f('0x2')),'defaultValue':_0x57423f('0x6'),'comment':_0x57423f('0x3')},'icon':{'type':Sequelize[_0x57423f('0x5')]},'adminUrl':{'type':Sequelize['STRING']},'agentUrl':{'type':Sequelize['STRING']},'scriptName':{'type':Sequelize[_0x57423f('0x5')]},'scriptPath':{'type':Sequelize[_0x57423f('0x5')]}}; \ No newline at end of file diff --git a/server/api/plugin/plugin.controller.js b/server/api/plugin/plugin.controller.js index 223d9ca..513f1b8 100644 --- a/server/api/plugin/plugin.controller.js +++ b/server/api/plugin/plugin.controller.js @@ -1 +1 @@ -const a515_0x2b57=['ENOENT','includeAll','UserProfileSection','dirname','extract-zip','views','limit','parse','always','create','agent','status','Plugin\x20upload\x20filepath:\x20%s','../../components/parsers/qs','description','content-type','filename','findOne','parameters','finalize','icon-apps','Invalid\x20manifest:\x20type\x20missing','rawAttributes','Sequelize','sendStatus','rimraf','Error\x20while\x20downloading\x20the\x20plugin','some','join','Warning:\x20agent\x20view\x20not\x20specified','query','Temporary\x20file\x20removed','offset','count','server/files/plugins','Invalid\x20plugin\x20structure','order','hostname','Plugins','content-length','script','Invalid\x20manifest:\x20parameters\x20missing','intersection','update','basename','Plugin\x20upload\x20destination:\x20%s','../../config/logger','statusCode','model','filter','path','test','manifest.json','delete','createWriteStream','where','Invalid\x20manifest:\x20views\x20missing','undefined','options','error','set','lstatSync','merge','length','http://localhost:','webhookPost','format','userProfileId','download','Invalid\x20manifest:\x20script\x20name\x20missing','root','Download\x20completed','sidebar','unlinkSync','findAll','admin','lodash','Invalid\x20manifest:\x20script\x20path\x20missing','0777','type','then','existsSync','index','catch','scriptPath','Invalid\x20manifest:\x20version\x20not\x20specified','Invalid\x20manifest:\x20no\x20view\x20specified','rows','%s.zip','json','info','version','pipe','attachments/**/*','readFileSync','close','headers','nolimit','filters','plugins','role','autoAssociation','body','encoding','Error','method','end','isFile','glob','extname','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','map','include','destroy','Plugin','request-promise-native','Error\x20while\x20generating\x20the\x20zip\x20archive','endsWith','../../mysqldb','name','readdirSync','resolve','show','html','node_modules/**/*','%s%s','pick','Extracted\x20folder\x20removed','file','Invalid\x20manifest:\x20name\x20missing','warning','send','VIRTUAL','sort','user','fields','keys','Plugin\x20not\x20found','UserProfileResource','register','params','fieldName','port','stack','scriptName','\x27PATH\x27\x20parameter\x20not\x20specified','attributes'];(function(_0x5b52e6,_0x2b57ab){const _0x49b815=function(_0x4a8fc3){while(--_0x4a8fc3){_0x5b52e6['push'](_0x5b52e6['shift']());}};_0x49b815(++_0x2b57ab);}(a515_0x2b57,0x147));const a515_0x49b8=function(_0x5b52e6,_0x2b57ab){_0x5b52e6=_0x5b52e6-0x0;let _0x49b815=a515_0x2b57[_0x5b52e6];return _0x49b815;};const _0x5937e1=a515_0x49b8;'use strict';const rp=require(_0x5937e1('0x52')),util=require('util'),path=require('path'),fs=require('fs'),_=require(_0x5937e1('0x2b')),extract=require(_0x5937e1('0x76')),rimraf=require(_0x5937e1('0x8b')),archiver=require('archiver'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x5937e1('0x7f')),logger=require(_0x5937e1('0xd'))('api'),config=require('../../config/environment'),db=require(_0x5937e1('0x55'))['db'],{Op}=require('sequelize');require('./plugin.socket')[_0x5937e1('0x6a')](socket);function respondWithStatusCode(_0x4a8fc3,_0x5a7298){return _0x5a7298=_0x5a7298||0xcc,function(_0x5527e2){const _0x26ebf0=a515_0x49b8;if(_0x5527e2)return _0x4a8fc3['sendStatus'](_0x5a7298);return _0x4a8fc3[_0x26ebf0('0x7d')](_0x5a7298)[_0x26ebf0('0x49')]();};}function respondWithResult(_0x5ca26,_0x3ee8aa){return _0x3ee8aa=_0x3ee8aa||0xc8,function(_0x8e44f7){const _0x3751a0=a515_0x49b8;if(_0x8e44f7)return _0x5ca26[_0x3751a0('0x7d')](_0x3ee8aa)[_0x3751a0('0x38')](_0x8e44f7);};}function respondWithFilteredResult(_0x7fdf44,_0x38484c){return function(_0x2ddc7e){const _0x3706c9=a515_0x49b8;if(_0x2ddc7e){const _0x14aaf6=_0x2ddc7e[_0x3706c9('0x0')],_0x1c05d8=_0x38484c[_0x3706c9('0x92')];let _0x1ba780=_0x38484c[_0x3706c9('0x92')]+_0x38484c[_0x3706c9('0x78')],_0xdde459;return _0x1ba780>=_0x14aaf6?(_0x1ba780=_0x14aaf6,_0xdde459=0xc8):_0xdde459=0xce,_0x7fdf44[_0x3706c9('0x7d')](_0xdde459),_0x7fdf44[_0x3706c9('0x1b')]('Content-Range',_0x1c05d8+'-'+_0x1ba780+'/'+_0x14aaf6)[_0x3706c9('0x38')](_0x2ddc7e);}return null;};}function saveUpdates(_0x48b9ea){return function(_0x3856d1){const _0x191b19=a515_0x49b8;if(_0x3856d1)return _0x3856d1[_0x191b19('0xa')](_0x48b9ea)['then'](function(_0x24faee){return _0x24faee;});return null;};}function handleEntityNotFound(_0x3c052e){return function(_0x4e15ce){const _0x3af1e4=a515_0x49b8;return!_0x4e15ce&&_0x3c052e[_0x3af1e4('0x8a')](0x194),_0x4e15ce;};}function handleError(_0x377e3d,_0x41b985){return _0x41b985=_0x41b985||0x1f4,function(_0x2155d6){const _0x16dce3=a515_0x49b8;logger[_0x16dce3('0x1a')](_0x2155d6[_0x16dce3('0x6e')]),_0x2155d6[_0x16dce3('0x56')]&&delete _0x2155d6[_0x16dce3('0x56')],_0x377e3d[_0x16dce3('0x7d')](_0x41b985)['send'](_0x2155d6);};}exports[_0x5937e1('0x31')]=function(_0x4d5b73,_0x11cb0b){const _0x381b5e=_0x5937e1;let _0x58674f={};const _0x34fb21={},_0x56367e={'count':0x0,'rows':[]},_0x5575ab=_[_0x381b5e('0x4e')](db['Plugin']['rawAttributes'],function(_0x38a08f){const _0x101b90=_0x381b5e;return{'name':_0x38a08f[_0x101b90('0x6c')],'type':_0x38a08f[_0x101b90('0x2e')]['key']};});_0x34fb21[_0x381b5e('0xf')]=_['map'](_0x5575ab,_0x381b5e('0x56')),_0x34fb21[_0x381b5e('0x90')]=_['keys'](_0x4d5b73[_0x381b5e('0x90')]),_0x34fb21[_0x381b5e('0x41')]=_[_0x381b5e('0x9')](_0x34fb21[_0x381b5e('0xf')],_0x34fb21[_0x381b5e('0x90')]),_0x58674f[_0x381b5e('0x71')]=_['intersection'](_0x34fb21[_0x381b5e('0xf')],qs[_0x381b5e('0x66')](_0x4d5b73['query'][_0x381b5e('0x66')])),_0x58674f['attributes']=_0x58674f[_0x381b5e('0x71')][_0x381b5e('0x1e')]?_0x58674f[_0x381b5e('0x71')]:_0x34fb21[_0x381b5e('0xf')];typeof _0x4d5b73['query'][_0x381b5e('0x40')]==='undefined'&&(_0x58674f[_0x381b5e('0x78')]=qs[_0x381b5e('0x78')](_0x4d5b73[_0x381b5e('0x90')][_0x381b5e('0x78')]),_0x58674f[_0x381b5e('0x92')]=qs[_0x381b5e('0x92')](_0x4d5b73[_0x381b5e('0x90')]['offset']));_0x58674f[_0x381b5e('0x3')]=qs['sort'](_0x4d5b73[_0x381b5e('0x90')][_0x381b5e('0x64')]),_0x58674f[_0x381b5e('0x16')]=qs[_0x381b5e('0x41')](_[_0x381b5e('0x5d')](_0x4d5b73[_0x381b5e('0x90')],_0x34fb21[_0x381b5e('0x41')]),_0x5575ab);_0x4d5b73[_0x381b5e('0x90')]['filter']&&(_0x58674f['where']=_['merge'](_0x58674f['where'],{[Op['or']]:_['map'](_0x5575ab,function(_0x2c74fc){const _0x23d4fb=_0x381b5e;if(_0x2c74fc[_0x23d4fb('0x2e')]!==_0x23d4fb('0x63')){const _0x26ae3c={};return _0x26ae3c[_0x2c74fc[_0x23d4fb('0x56')]]={[Op['like']]:'%'+_0x4d5b73[_0x23d4fb('0x90')][_0x23d4fb('0x10')]+'%'},_0x26ae3c;}})}));_0x58674f=_[_0x381b5e('0x1d')]({},_0x58674f,_0x4d5b73[_0x381b5e('0x19')]);const _0x21e3d2={'where':_0x58674f[_0x381b5e('0x16')]};return db[_0x381b5e('0x51')]['count'](_0x21e3d2)[_0x381b5e('0x2f')](function(_0xdc7372){const _0x2608b3=_0x381b5e;return _0x56367e['count']=_0xdc7372,_0x4d5b73[_0x2608b3('0x90')][_0x2608b3('0x73')]&&(_0x58674f['include']=[{'all':!![]}]),db[_0x2608b3('0x51')][_0x2608b3('0x29')](_0x58674f);})[_0x381b5e('0x2f')](function(_0x508161){const _0x52d65d=_0x381b5e;return _0x56367e[_0x52d65d('0x36')]=_0x508161,_0x56367e;})[_0x381b5e('0x2f')](respondWithFilteredResult(_0x11cb0b,_0x58674f))['catch'](handleError(_0x11cb0b,null));},exports[_0x5937e1('0x59')]=function(_0x55803b,_0x41977f){const _0x33e746=_0x5937e1;let _0x107a15={'raw':!![],'where':{'id':_0x55803b['params']['id']}};const _0x135b96={};return _0x135b96['model']=_[_0x33e746('0x67')](db['Plugin'][_0x33e746('0x88')]),_0x135b96[_0x33e746('0x90')]=_['keys'](_0x55803b['query']),_0x135b96[_0x33e746('0x41')]=_[_0x33e746('0x9')](_0x135b96[_0x33e746('0xf')],_0x135b96['query']),_0x107a15[_0x33e746('0x71')]=_[_0x33e746('0x9')](_0x135b96[_0x33e746('0xf')],qs[_0x33e746('0x66')](_0x55803b['query'][_0x33e746('0x66')])),_0x107a15[_0x33e746('0x71')]=_0x107a15[_0x33e746('0x71')][_0x33e746('0x1e')]?_0x107a15[_0x33e746('0x71')]:_0x135b96['model'],_0x55803b['query'][_0x33e746('0x73')]&&(_0x107a15[_0x33e746('0x4f')]=[{'all':!![]}]),_0x107a15=_['merge']({},_0x107a15,_0x55803b[_0x33e746('0x19')]),db[_0x33e746('0x51')]['findOne'](_0x107a15)['then'](handleEntityNotFound(_0x41977f))['then'](respondWithResult(_0x41977f,null))[_0x33e746('0x32')](handleError(_0x41977f,null));},exports[_0x5937e1('0x23')]=function(_0x34a50e,_0x4f8fd5){const _0x5ed48d=_0x5937e1;return db[_0x5ed48d('0x51')][_0x5ed48d('0x83')]({'where':{'id':_0x34a50e[_0x5ed48d('0x6b')]['id']},'attributes':[_0x5ed48d('0x56'),_0x5ed48d('0x11')],'raw':!![]})[_0x5ed48d('0x2f')](handleEntityNotFound(_0x4f8fd5))[_0x5ed48d('0x2f')](function(_0x451786){const _0x2532ba=_0x5ed48d;if(_0x451786){const _0x282645=path[_0x2532ba('0x8e')](config['root'],_0x2532ba('0x1'),util['format'](_0x2532ba('0x37'),path[_0x2532ba('0xb')](_0x451786[_0x2532ba('0x11')]))),_0x1a46e8=fs[_0x2532ba('0x15')](_0x282645),_0x3d1d90=archiver('zip',{'zlib':{'level':0x9}});_0x3d1d90['on'](_0x2532ba('0x61'),function(_0x18015c){const _0x13f3b2=_0x2532ba;if(_0x18015c['code']===_0x13f3b2('0x72'))logger[_0x13f3b2('0x1a')](_0x18015c);else throw new db[(_0x13f3b2('0x89'))][(_0x13f3b2('0x47'))](_0x13f3b2('0x53'));}),_0x3d1d90['on']('error',function(){const _0x59383b=_0x2532ba;throw new db[(_0x59383b('0x89'))]['Error'](_0x59383b('0x53'));}),_0x3d1d90[_0x2532ba('0x3b')](_0x1a46e8),_0x3d1d90[_0x2532ba('0x4b')]('**/*',{'cwd':path['join'](config[_0x2532ba('0x25')],_0x2532ba('0x1'),path[_0x2532ba('0x75')](_0x451786[_0x2532ba('0x11')])),'ignore':[path[_0x2532ba('0x8e')](path[_0x2532ba('0xb')](_0x451786[_0x2532ba('0x11')]),_0x2532ba('0x5b')),path['join'](path[_0x2532ba('0xb')](_0x451786['path']),_0x2532ba('0x3c'))],'nodir':!![]})[_0x2532ba('0x85')](),_0x1a46e8['on'](_0x2532ba('0x3e'),function(){const _0x263381=_0x2532ba;if(!fs[_0x263381('0x30')](_0x282645))throw new db['Sequelize'][(_0x263381('0x47'))](_0x263381('0x68'));return _0x4f8fd5['download'](_0x282645,util[_0x263381('0x21')]('%s.zip',path['basename'](_0x451786[_0x263381('0x11')])),function(_0x31d35c){const _0x53255b=_0x263381;if(_0x31d35c)throw new db['Sequelize']['Error'](_0x53255b('0x8c'));fs[_0x53255b('0x28')](_0x282645),logger[_0x53255b('0x39')](_0x53255b('0x26')),logger[_0x53255b('0x39')](_0x53255b('0x91'));});});}return null;})[_0x5ed48d('0x32')](handleError(_0x4f8fd5,null));},exports['upload']=function(_0x33cc58,_0x2a9a24,_0x5a5cd0){const _0x22978c=_0x5937e1,_0x34d8d8=path[_0x22978c('0xb')](_0x33cc58[_0x22978c('0x5f')][_0x22978c('0x82')],path[_0x22978c('0x4c')](_0x33cc58[_0x22978c('0x5f')][_0x22978c('0x82')])),_0x1747a5=path[_0x22978c('0x8e')](config[_0x22978c('0x25')],_0x22978c('0x1'),_0x33cc58['file']['filename']),_0x4db630=path[_0x22978c('0x8e')](config['root'],'server/files/plugins',_0x34d8d8);logger[_0x22978c('0x39')](_0x22978c('0x7e'),_0x1747a5),logger[_0x22978c('0x39')](_0x22978c('0xc'),_0x4db630);try{fs['chmodSync'](_0x1747a5,parseInt(_0x22978c('0x2d'),0x8)),extract(_0x1747a5,{'dir':_0x4db630},function(_0x233654){const _0x4e781d=_0x22978c;_0x233654&&(logger['error'](_0x233654),handleError(_0x233654,!![]));const _0xf8fd5e=fs[_0x4e781d('0x57')](_0x4db630);if(_0xf8fd5e[_0x4e781d('0x1e')]>0x1)return removeReferences(_0x1747a5,_0x4db630),logger[_0x4e781d('0x1a')](_0x4e781d('0x2')),_0x5a5cd0(new Error('Invalid\x20plugin\x20structure'));const _0x30d297=fs[_0x4e781d('0x1c')](path[_0x4e781d('0x8e')](_0x4db630,_0xf8fd5e[0x0]));if(_0x30d297[_0x4e781d('0x4a')]())return removeReferences(_0x1747a5,_0x4db630),logger[_0x4e781d('0x1a')](_0x4e781d('0x2')),_0x5a5cd0(new Error(_0x4e781d('0x2')));if(_0x30d297['isDirectory']()){const _0x578ab7=fs[_0x4e781d('0x57')](path['join'](_0x4db630,_0xf8fd5e[0x0]));if(_0x578ab7[_0x4e781d('0x1e')]===0x0)return removeReferences(_0x1747a5,_0x4db630),logger[_0x4e781d('0x1a')](_0x4e781d('0x2')),_0x5a5cd0(new Error(_0x4e781d('0x2')));const _0x2b5080=_0x578ab7[_0x4e781d('0x8d')](function(_0x2a7847){const _0x27ff92=_0x4e781d;return _0x2a7847===_0x27ff92('0x13');});if(!_0x2b5080)return _0x5a5cd0(new Error('Plugin\x20manifest\x20missing'));const _0x41d96c=fs[_0x4e781d('0x3d')](path[_0x4e781d('0x8e')](_0x4db630,_0xf8fd5e[0x0],'manifest.json')),_0x4cbdb7=JSON[_0x4e781d('0x79')](_0x41d96c);if('undefined'==typeof _0x4cbdb7[_0x4e781d('0x56')])return _0x5a5cd0(new Error(_0x4e781d('0x60')));if(_0x4e781d('0x18')==typeof _0x4cbdb7['type'])return _0x5a5cd0(new Error(_0x4e781d('0x87')));if('undefined'==typeof _0x4cbdb7[_0x4e781d('0x3a')])return _0x5a5cd0(new Error(_0x4e781d('0x34')));if(_0x4e781d('0x18')==typeof _0x4cbdb7['parameters'])return _0x5a5cd0(new Error(_0x4e781d('0x8')));if(_0x4cbdb7[_0x4e781d('0x2e')]===_0x4e781d('0x5a')){if(_0x4e781d('0x18')==typeof _0x4cbdb7[_0x4e781d('0x84')][_0x4e781d('0x77')])return _0x5a5cd0(new Error(_0x4e781d('0x17')));if('undefined'==typeof _0x4cbdb7[_0x4e781d('0x84')][_0x4e781d('0x77')][_0x4e781d('0x2a')]&&_0x4e781d('0x18')==typeof _0x4cbdb7[_0x4e781d('0x84')][_0x4e781d('0x77')][_0x4e781d('0x7c')])return _0x5a5cd0(new Error(_0x4e781d('0x35')));}else{if(_0x4cbdb7[_0x4e781d('0x2e')]===_0x4e781d('0x7')){if(_0x4e781d('0x18')==typeof _0x4cbdb7[_0x4e781d('0x84')]['scriptName'])return _0x5a5cd0(new Error(_0x4e781d('0x24')));if(_0x4e781d('0x18')==typeof _0x4cbdb7['parameters'][_0x4e781d('0x33')])return _0x5a5cd0(new Error(_0x4e781d('0x2c')));}else return _0x5a5cd0(new Error('Invalid\x20manifest:\x20invalid\x20type'));}const _0xad9b5a=_0x4cbdb7['name'],_0x30a483=_0x4cbdb7[_0x4e781d('0x80')],_0x36c3df=_0x4cbdb7[_0x4e781d('0x2e')],_0x4d7e20=_0x4cbdb7[_0x4e781d('0x27')]?_0x4cbdb7[_0x4e781d('0x27')]:_0x4e781d('0x7a'),_0x445936=_0x4cbdb7['icon']?_0x4cbdb7['icon']:_0x4e781d('0x86');let _0x5a789e='',_0x14db2f='',_0x32a47a='',_0x28a81e='';const _0x298f8c=_0x4cbdb7[_0x4e781d('0x3a')];if(_0x36c3df==='html'){if(_0x4e781d('0x18')!=typeof _0x4cbdb7[_0x4e781d('0x84')]['views'][_0x4e781d('0x2a')]){const _0x201e7d=_0x4cbdb7['parameters']['views'][_0x4e781d('0x2a')];!/^(f|ht)tps?:\/\//i[_0x4e781d('0x12')](_0x201e7d)?_0x5a789e=path[_0x4e781d('0x8e')]('plugins',_0x34d8d8,_0xf8fd5e[0x0],_0x201e7d):_0x5a789e=_0x201e7d;}else logger[_0x4e781d('0x39')]('Warning:\x20admin\x20view\x20not\x20specified');if(_0x4e781d('0x18')!=typeof _0x4cbdb7['parameters']['views'][_0x4e781d('0x7c')]){const _0x41e849=_0x4cbdb7[_0x4e781d('0x84')]['views']['agent'];!/^(f|ht)tps?:\/\//i['test'](_0x41e849)?_0x14db2f=path[_0x4e781d('0x8e')](_0x4e781d('0x42'),_0x34d8d8,_0xf8fd5e[0x0],_0x41e849):_0x14db2f=_0x41e849;}else logger['info'](_0x4e781d('0x8f'));}else{if(_0x36c3df==='script'){_0x32a47a=_0x4cbdb7[_0x4e781d('0x84')][_0x4e781d('0x6f')],_0x28a81e=_0x4cbdb7[_0x4e781d('0x84')][_0x4e781d('0x33')];if('undefined'!=typeof _0x4cbdb7[_0x4e781d('0x84')][_0x4e781d('0x77')]){if(_0x4e781d('0x18')!=typeof _0x4cbdb7[_0x4e781d('0x84')]['views'][_0x4e781d('0x2a')]){const _0x54eb9a=_0x4cbdb7[_0x4e781d('0x84')][_0x4e781d('0x77')]['admin'];!/^(f|ht)tps?:\/\//i[_0x4e781d('0x12')](_0x54eb9a)?_0x5a789e=path['join'](_0x4e781d('0x42'),_0x34d8d8,_0xf8fd5e[0x0],_0x54eb9a):_0x5a789e=_0x54eb9a;}if(_0x4e781d('0x18')!=typeof _0x4cbdb7['parameters']['views'][_0x4e781d('0x7c')]){const _0x559ee6=_0x4cbdb7[_0x4e781d('0x84')]['views'][_0x4e781d('0x7c')];!/^(f|ht)tps?:\/\//i['test'](_0x559ee6)?_0x14db2f=path[_0x4e781d('0x8e')](_0x4e781d('0x42'),_0x34d8d8,_0xf8fd5e[0x0],_0x559ee6):_0x14db2f=_0x559ee6;}}}}const _0x1b7e1e={'name':_0xad9b5a,'description':_0x30a483,'path':path[_0x4e781d('0x8e')](_0x34d8d8,_0xf8fd5e[0x0]),'type':_0x36c3df,'sidebar':_0x4d7e20,'icon':_0x445936,'adminUrl':_0x5a789e,'agentUrl':_0x14db2f,'scriptName':_0x32a47a,'scriptPath':_0x28a81e,'version':_0x298f8c};return removeReferences(_0x1747a5,null),db[_0x4e781d('0x51')][_0x4e781d('0x7b')](_0x1b7e1e)[_0x4e781d('0x2f')](function(_0x5dcdc6){const _0x129dc0=_0x4e781d,_0x2b110e={'role':_0x33cc58['body'][_0x129dc0('0x43')],'userProfileId':_0x33cc58[_0x129dc0('0x45')][_0x129dc0('0x22')]};if(!_0x2b110e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2b110e['role']===_0x129dc0('0x65')){const _0xd30b6b=_0x5dcdc6['get']({'plain':!![]});return db[_0x129dc0('0x74')][_0x129dc0('0x83')]({'where':{'name':_0x129dc0('0x5'),'userProfileId':_0x2b110e[_0x129dc0('0x22')]},'raw':!![]})[_0x129dc0('0x2f')](function(_0x31865e){const _0x423f46=_0x129dc0;return _0x31865e&&_0x31865e[_0x423f46('0x44')]===0x0?db[_0x423f46('0x69')][_0x423f46('0x7b')]({'name':_0xd30b6b[_0x423f46('0x56')],'resourceId':_0xd30b6b['id'],'type':_0x31865e['name'],'sectionId':_0x31865e['id']},{})[_0x423f46('0x2f')](function(){return _0x5dcdc6;}):_0x5dcdc6;})[_0x129dc0('0x32')](function(_0x19c6da){const _0x156b46=_0x129dc0;logger[_0x156b46('0x1a')](_0x156b46('0x4d'),_0x19c6da);throw _0x19c6da;});}return _0x5dcdc6;})[_0x4e781d('0x2f')](respondWithResult(_0x2a9a24,null))['catch'](handleError(_0x2a9a24,null));}});}catch(_0x49092e){_0x2a9a24[_0x22978c('0x7d')](0x1f4)['send'](_0x49092e);}};function removeReferences(_0x534f56,_0x1b495a){const _0x44d3ee=_0x5937e1;try{_0x534f56&&(fs[_0x44d3ee('0x28')](_0x534f56),logger['info']('Zip\x20archive\x20removed')),_0x1b495a&&(rimraf(_0x1b495a,function(){}),logger[_0x44d3ee('0x39')](_0x44d3ee('0x5e')));}catch(_0x13d287){logger['error'](_0x13d287);}}exports[_0x5937e1('0xa')]=function(_0x50ebae,_0xf5fadf){const _0x122828=_0x5937e1;return db[_0x122828('0x51')][_0x122828('0x83')]({'where':{'id':_0x50ebae[_0x122828('0x6b')]['id']}})[_0x122828('0x2f')](handleEntityNotFound(_0xf5fadf))[_0x122828('0x2f')](saveUpdates(_0x50ebae[_0x122828('0x45')]))[_0x122828('0x2f')](respondWithResult(_0xf5fadf,null))[_0x122828('0x32')](handleError(_0xf5fadf,null));},exports[_0x5937e1('0x14')]=function(_0x5abe7b,_0x4b89e8){const _0x3c9471=_0x5937e1;return db[_0x3c9471('0x51')][_0x3c9471('0x83')]({'where':{'id':_0x5abe7b[_0x3c9471('0x6b')]['id']}})[_0x3c9471('0x2f')](function(_0x377765){const _0x115419=_0x3c9471;if(_0x377765)return _0x377765[_0x115419('0x50')]();})[_0x3c9471('0x2f')](function(_0x42627c){const _0x29622d=_0x3c9471;return rimraf(path[_0x29622d('0x8e')](config[_0x29622d('0x25')],'server/files/plugins',path[_0x29622d('0x75')](_0x42627c[_0x29622d('0x11')])),function(){}),_0x42627c;})[_0x3c9471('0x2f')](handleEntityNotFound(_0x4b89e8))[_0x3c9471('0x2f')](respondWithStatusCode(_0x4b89e8,null))['catch'](handleError(_0x4b89e8,null));},exports['webhookGet']=function(_0x39fefb,_0x23e977){const _0x2abcc1=_0x5937e1;return Promise[_0x2abcc1('0x58')]()[_0x2abcc1('0x2f')](function(){const _0x3d6049=_0x2abcc1;if(!_0x39fefb[_0x3d6049('0x90')][_0x3d6049('0x11')])throw new Error(_0x3d6049('0x70'));if(!_0x39fefb[_0x3d6049('0x90')][_0x3d6049('0x6d')])throw new Error('\x27PORT\x27\x20parameter\x20not\x20specified');const _0x14248a=_0x39fefb[_0x3d6049('0x90')][_0x3d6049('0x4')]?_0x39fefb[_0x3d6049('0x90')][_0x3d6049('0x4')]+':'+_0x39fefb['query'][_0x3d6049('0x6d')]:_0x3d6049('0x1f')+_0x39fefb['query'][_0x3d6049('0x6d')],_0xae967e=_0x39fefb[_0x3d6049('0x90')][_0x3d6049('0x38')]?_0x39fefb['query'][_0x3d6049('0x38')]:!![],_0x4fb407=_0x39fefb[_0x3d6049('0x90')][_0x3d6049('0x46')]?_0x39fefb[_0x3d6049('0x90')][_0x3d6049('0x46')]:null,_0x233737={'method':_0x39fefb[_0x3d6049('0x48')],'uri':util[_0x3d6049('0x21')](_0x3d6049('0x5c'),_0x14248a,_0x39fefb[_0x3d6049('0x90')][_0x3d6049('0x11')]),'json':_0xae967e,'resolveWithFullResponse':!![],'encoding':_0x4fb407,'qs':_0x39fefb['query']};return _0x39fefb[_0x3d6049('0x3f')]&&(_0x233737[_0x3d6049('0x3f')]=_0x39fefb['headers'],_0x233737[_0x3d6049('0x3f')][_0x3d6049('0x6')]&&delete _0x233737[_0x3d6049('0x3f')][_0x3d6049('0x6')]),_0x233737[_0x3d6049('0x3f')][_0x3d6049('0x81')]&&delete _0x233737['headers']['content-type'],rp(_0x233737);})[_0x2abcc1('0x2f')](function(_0x3fbb2d){const _0x25ba19=_0x2abcc1;return _0x3fbb2d?(_0x23e977[_0x25ba19('0x1b')](_0x3fbb2d[_0x25ba19('0x3f')]),logger[_0x25ba19('0x39')](_0x3fbb2d['body']),_[_0x25ba19('0x54')](_0x39fefb[_0x25ba19('0x90')][_0x25ba19('0x11')],'download')&&_0x3fbb2d[_0x25ba19('0xe')]==0x1f4?_0x23e977[_0x25ba19('0x8a')](_0x3fbb2d[_0x25ba19('0xe')]):_0x23e977[_0x25ba19('0x7d')](_0x3fbb2d[_0x25ba19('0xe')])[_0x25ba19('0x62')](_0x3fbb2d[_0x25ba19('0x45')])):_0x23e977['sendStatus'](0xc8);})[_0x2abcc1('0x32')](handleError(_0x23e977,null));},exports[_0x5937e1('0x20')]=function(_0x14273a,_0x538c1c){const _0x1be3a2=_0x5937e1;return Promise[_0x1be3a2('0x58')]()[_0x1be3a2('0x2f')](function(){const _0x3d3e14=_0x1be3a2;if(!_0x14273a['query'][_0x3d3e14('0x11')])throw new Error(_0x3d3e14('0x70'));if(!_0x14273a[_0x3d3e14('0x90')][_0x3d3e14('0x6d')])throw new Error('\x27PORT\x27\x20parameter\x20not\x20specified');const _0x4e1357=_0x14273a[_0x3d3e14('0x90')][_0x3d3e14('0x4')]?_0x14273a[_0x3d3e14('0x90')][_0x3d3e14('0x4')]+':'+_0x14273a[_0x3d3e14('0x90')][_0x3d3e14('0x6d')]:_0x3d3e14('0x1f')+_0x14273a['query'][_0x3d3e14('0x6d')],_0x229640=_0x14273a[_0x3d3e14('0x90')][_0x3d3e14('0x38')]?_0x14273a[_0x3d3e14('0x90')][_0x3d3e14('0x38')]:!![],_0x1f28af=_0x14273a['query'][_0x3d3e14('0x46')]?_0x14273a[_0x3d3e14('0x90')][_0x3d3e14('0x46')]:null,_0xe86a1e={'method':_0x14273a['method'],'uri':util[_0x3d3e14('0x21')]('%s%s',_0x4e1357,_0x14273a[_0x3d3e14('0x90')][_0x3d3e14('0x11')]),'json':_0x229640,'resolveWithFullResponse':!![],'encoding':_0x1f28af,'body':_0x14273a[_0x3d3e14('0x45')]};return _0x14273a[_0x3d3e14('0x3f')]&&(_0xe86a1e[_0x3d3e14('0x3f')]=_0x14273a[_0x3d3e14('0x3f')],_0xe86a1e[_0x3d3e14('0x3f')][_0x3d3e14('0x6')]&&delete _0xe86a1e[_0x3d3e14('0x3f')][_0x3d3e14('0x6')]),_0xe86a1e[_0x3d3e14('0x3f')][_0x3d3e14('0x81')]&&delete _0xe86a1e[_0x3d3e14('0x3f')]['content-type'],rp(_0xe86a1e);})[_0x1be3a2('0x2f')](function(_0x32465b){const _0x4bb714=_0x1be3a2;return _0x32465b?(_0x538c1c['set'](_0x32465b[_0x4bb714('0x3f')]),logger[_0x4bb714('0x39')](_0x32465b[_0x4bb714('0x45')]),_0x538c1c[_0x4bb714('0x7d')](_0x32465b[_0x4bb714('0xe')])[_0x4bb714('0x62')](_0x32465b[_0x4bb714('0x45')])):_0x538c1c['sendStatus'](0xc8);})['catch'](handleError(_0x538c1c,null));}; \ No newline at end of file +const a515_0x294f=['../../config/logger','user','basename','Content-Range','%s.zip','include','VIRTUAL','format','Invalid\x20manifest:\x20type\x20missing','undefined','where','offset','rimraf','0777','path','icon','./plugin.socket','includeAll','status','http://localhost:','Invalid\x20manifest:\x20version\x20not\x20specified','sequelize','create','Invalid\x20manifest:\x20name\x20missing','rawAttributes','existsSync','send','readdirSync','join','upload','extname','extract-zip','Plugin\x20not\x20found','fieldName','../../rediscache','../../config/environment','port','node_modules/**/*','method','\x27PORT\x27\x20parameter\x20not\x20specified','isDirectory','model','webhookPost','Plugin','endsWith','order','limit','code','findOne','finalize','register','type','**/*','agent','isFile','map','update','Error','hostname','count','parameters','Error\x20while\x20generating\x20the\x20zip\x20archive','json','dirname','findAll','Sequelize','some','Zip\x20archive\x20removed','info','Invalid\x20manifest:\x20no\x20view\x20specified','sendStatus','test','manifest.json','pipe','catch','close','chmodSync','error','../../mysqldb','zip','description','file','body','params','Invalid\x20manifest:\x20script\x20name\x20missing','Invalid\x20manifest:\x20parameters\x20missing','UserProfileSection','script','Invalid\x20plugin\x20structure','root','name','pick','like','%s%s','fields','unlinkSync','role','archiver','Invalid\x20manifest:\x20script\x20path\x20missing','Invalid\x20manifest:\x20invalid\x20type','plugins','show','version','end','scriptName','Invalid\x20manifest:\x20views\x20missing','Error\x20while\x20downloading\x20the\x20plugin','icon-apps','key','scriptPath','attachments/**/*','stack','Plugins','views','sidebar','then','filters','length','resolve','content-type','options','html','intersection','request-promise-native','Plugin\x20upload\x20filepath:\x20%s','server/files/plugins','autoAssociation','content-length','nolimit','UserProfileResource','encoding','statusCode','keys','admin','download','userProfileId','attributes','../../components/parsers/qs','set','query','ENOENT','Warning:\x20admin\x20view\x20not\x20specified','filter','merge','headers','filename'];(function(_0x3e729c,_0x294f0d){const _0x412e98=function(_0x33a71b){while(--_0x33a71b){_0x3e729c['push'](_0x3e729c['shift']());}};_0x412e98(++_0x294f0d);}(a515_0x294f,0x1e3));const a515_0x412e=function(_0x3e729c,_0x294f0d){_0x3e729c=_0x3e729c-0x0;let _0x412e98=a515_0x294f[_0x3e729c];return _0x412e98;};const _0x574151=a515_0x412e;'use strict';const rp=require(_0x574151('0x4e')),util=require('util'),path=require(_0x574151('0x73')),fs=require('fs'),_=require('lodash'),extract=require(_0x574151('0x84')),rimraf=require(_0x574151('0x71')),archiver=require(_0x574151('0x34')),{getSocket}=require(_0x574151('0x87')),socket=getSocket(),qs=require(_0x574151('0x5c')),logger=require(_0x574151('0x65'))('api'),config=require(_0x574151('0x88')),db=require(_0x574151('0x21'))['db'],{Op}=require(_0x574151('0x7a'));require(_0x574151('0x75'))[_0x574151('0x5')](socket);function respondWithStatusCode(_0x33a71b,_0x5cb905){return _0x5cb905=_0x5cb905||0xcc,function(_0x2f3a88){const _0x3df832=a515_0x412e;if(_0x2f3a88)return _0x33a71b['sendStatus'](_0x5cb905);return _0x33a71b[_0x3df832('0x77')](_0x5cb905)[_0x3df832('0x3a')]();};}function respondWithResult(_0x14f4c7,_0x182e3d){return _0x182e3d=_0x182e3d||0xc8,function(_0x486622){if(_0x486622)return _0x14f4c7['status'](_0x182e3d)['json'](_0x486622);};}function respondWithFilteredResult(_0x204d6,_0x4e230f){return function(_0x20d825){const _0x4cfaf7=a515_0x412e;if(_0x20d825){const _0x427120=_0x20d825[_0x4cfaf7('0xe')],_0x588b9b=_0x4e230f[_0x4cfaf7('0x70')];let _0x93c158=_0x4e230f[_0x4cfaf7('0x70')]+_0x4e230f[_0x4cfaf7('0x1')],_0x26f576;return _0x93c158>=_0x427120?(_0x93c158=_0x427120,_0x26f576=0xc8):_0x26f576=0xce,_0x204d6[_0x4cfaf7('0x77')](_0x26f576),_0x204d6['set'](_0x4cfaf7('0x68'),_0x588b9b+'-'+_0x93c158+'/'+_0x427120)[_0x4cfaf7('0x11')](_0x20d825);}return null;};}function saveUpdates(_0x4422e8){return function(_0x1b4687){const _0x258ad0=a515_0x412e;if(_0x1b4687)return _0x1b4687[_0x258ad0('0xb')](_0x4422e8)[_0x258ad0('0x46')](function(_0x3c46f3){return _0x3c46f3;});return null;};}function handleEntityNotFound(_0xe40561){return function(_0x13dc08){const _0x2e3dd6=a515_0x412e;return!_0x13dc08&&_0xe40561[_0x2e3dd6('0x19')](0x194),_0x13dc08;};}function handleError(_0x2743fa,_0x2c5184){return _0x2c5184=_0x2c5184||0x1f4,function(_0x697d23){const _0x4ca043=a515_0x412e;logger['error'](_0x697d23[_0x4ca043('0x42')]),_0x697d23[_0x4ca043('0x2d')]&&delete _0x697d23[_0x4ca043('0x2d')],_0x2743fa[_0x4ca043('0x77')](_0x2c5184)[_0x4ca043('0x7f')](_0x697d23);};}exports['index']=function(_0x1928be,_0x40d6ff){const _0x357cd3=_0x574151;let _0x37c1d3={};const _0xb0cc5={},_0x432c45={'count':0x0,'rows':[]},_0x50664d=_[_0x357cd3('0xa')](db['Plugin'][_0x357cd3('0x7d')],function(_0x34c4ea){const _0x3eafec=_0x357cd3;return{'name':_0x34c4ea[_0x3eafec('0x86')],'type':_0x34c4ea['type'][_0x3eafec('0x3f')]};});_0xb0cc5[_0x357cd3('0x8e')]=_['map'](_0x50664d,_0x357cd3('0x2d')),_0xb0cc5['query']=_[_0x357cd3('0x57')](_0x1928be[_0x357cd3('0x5e')]),_0xb0cc5['filters']=_[_0x357cd3('0x4d')](_0xb0cc5['model'],_0xb0cc5[_0x357cd3('0x5e')]),_0x37c1d3[_0x357cd3('0x5b')]=_[_0x357cd3('0x4d')](_0xb0cc5[_0x357cd3('0x8e')],qs[_0x357cd3('0x31')](_0x1928be[_0x357cd3('0x5e')][_0x357cd3('0x31')])),_0x37c1d3[_0x357cd3('0x5b')]=_0x37c1d3[_0x357cd3('0x5b')]['length']?_0x37c1d3['attributes']:_0xb0cc5['model'];typeof _0x1928be[_0x357cd3('0x5e')][_0x357cd3('0x53')]===_0x357cd3('0x6e')&&(_0x37c1d3[_0x357cd3('0x1')]=qs[_0x357cd3('0x1')](_0x1928be[_0x357cd3('0x5e')][_0x357cd3('0x1')]),_0x37c1d3[_0x357cd3('0x70')]=qs[_0x357cd3('0x70')](_0x1928be['query'][_0x357cd3('0x70')]));_0x37c1d3[_0x357cd3('0x0')]=qs['sort'](_0x1928be['query']['sort']),_0x37c1d3[_0x357cd3('0x6f')]=qs[_0x357cd3('0x47')](_[_0x357cd3('0x2e')](_0x1928be['query'],_0xb0cc5[_0x357cd3('0x47')]),_0x50664d);_0x1928be[_0x357cd3('0x5e')][_0x357cd3('0x61')]&&(_0x37c1d3['where']=_[_0x357cd3('0x62')](_0x37c1d3[_0x357cd3('0x6f')],{[Op['or']]:_[_0x357cd3('0xa')](_0x50664d,function(_0x114c45){const _0x51309b=_0x357cd3;if(_0x114c45[_0x51309b('0x6')]!==_0x51309b('0x6b')){const _0x2c2f41={};return _0x2c2f41[_0x114c45['name']]={[Op[_0x51309b('0x2f')]]:'%'+_0x1928be[_0x51309b('0x5e')][_0x51309b('0x61')]+'%'},_0x2c2f41;}})}));_0x37c1d3=_[_0x357cd3('0x62')]({},_0x37c1d3,_0x1928be['options']);const _0x367997={'where':_0x37c1d3[_0x357cd3('0x6f')]};return db['Plugin'][_0x357cd3('0xe')](_0x367997)[_0x357cd3('0x46')](function(_0x6a73c5){const _0x3084e0=_0x357cd3;return _0x432c45['count']=_0x6a73c5,_0x1928be[_0x3084e0('0x5e')][_0x3084e0('0x76')]&&(_0x37c1d3[_0x3084e0('0x6a')]=[{'all':!![]}]),db[_0x3084e0('0x90')][_0x3084e0('0x13')](_0x37c1d3);})['then'](function(_0x5e1a96){return _0x432c45['rows']=_0x5e1a96,_0x432c45;})[_0x357cd3('0x46')](respondWithFilteredResult(_0x40d6ff,_0x37c1d3))[_0x357cd3('0x1d')](handleError(_0x40d6ff,null));},exports[_0x574151('0x38')]=function(_0x37ea19,_0x3d006e){const _0x520c63=_0x574151;let _0x28816b={'raw':!![],'where':{'id':_0x37ea19[_0x520c63('0x26')]['id']}};const _0x491bf9={};return _0x491bf9['model']=_[_0x520c63('0x57')](db[_0x520c63('0x90')]['rawAttributes']),_0x491bf9[_0x520c63('0x5e')]=_[_0x520c63('0x57')](_0x37ea19['query']),_0x491bf9[_0x520c63('0x47')]=_[_0x520c63('0x4d')](_0x491bf9[_0x520c63('0x8e')],_0x491bf9['query']),_0x28816b[_0x520c63('0x5b')]=_['intersection'](_0x491bf9[_0x520c63('0x8e')],qs[_0x520c63('0x31')](_0x37ea19[_0x520c63('0x5e')]['fields'])),_0x28816b[_0x520c63('0x5b')]=_0x28816b[_0x520c63('0x5b')][_0x520c63('0x48')]?_0x28816b[_0x520c63('0x5b')]:_0x491bf9[_0x520c63('0x8e')],_0x37ea19[_0x520c63('0x5e')][_0x520c63('0x76')]&&(_0x28816b[_0x520c63('0x6a')]=[{'all':!![]}]),_0x28816b=_[_0x520c63('0x62')]({},_0x28816b,_0x37ea19[_0x520c63('0x4b')]),db[_0x520c63('0x90')][_0x520c63('0x3')](_0x28816b)[_0x520c63('0x46')](handleEntityNotFound(_0x3d006e))[_0x520c63('0x46')](respondWithResult(_0x3d006e,null))['catch'](handleError(_0x3d006e,null));},exports['download']=function(_0x123fc3,_0x53af50){const _0x5eb7ce=_0x574151;return db['Plugin'][_0x5eb7ce('0x3')]({'where':{'id':_0x123fc3[_0x5eb7ce('0x26')]['id']},'attributes':[_0x5eb7ce('0x2d'),_0x5eb7ce('0x73')],'raw':!![]})[_0x5eb7ce('0x46')](handleEntityNotFound(_0x53af50))['then'](function(_0x21fe2c){const _0x5bb6c0=_0x5eb7ce;if(_0x21fe2c){const _0x17dcda=path[_0x5bb6c0('0x81')](config[_0x5bb6c0('0x2c')],'server/files/plugins',util[_0x5bb6c0('0x6c')](_0x5bb6c0('0x69'),path[_0x5bb6c0('0x67')](_0x21fe2c[_0x5bb6c0('0x73')]))),_0x7cde8d=fs['createWriteStream'](_0x17dcda),_0x2eea95=archiver(_0x5bb6c0('0x22'),{'zlib':{'level':0x9}});_0x2eea95['on']('warning',function(_0x16bae6){const _0x14d892=_0x5bb6c0;if(_0x16bae6[_0x14d892('0x2')]===_0x14d892('0x5f'))logger[_0x14d892('0x20')](_0x16bae6);else throw new db[(_0x14d892('0x14'))][(_0x14d892('0xc'))]('Error\x20while\x20generating\x20the\x20zip\x20archive');}),_0x2eea95['on']('error',function(){const _0x14b7d9=_0x5bb6c0;throw new db[(_0x14b7d9('0x14'))]['Error'](_0x14b7d9('0x10'));}),_0x2eea95[_0x5bb6c0('0x1c')](_0x7cde8d),_0x2eea95['glob'](_0x5bb6c0('0x7'),{'cwd':path[_0x5bb6c0('0x81')](config['root'],_0x5bb6c0('0x50'),path[_0x5bb6c0('0x12')](_0x21fe2c[_0x5bb6c0('0x73')])),'ignore':[path[_0x5bb6c0('0x81')](path[_0x5bb6c0('0x67')](_0x21fe2c[_0x5bb6c0('0x73')]),_0x5bb6c0('0x8a')),path[_0x5bb6c0('0x81')](path[_0x5bb6c0('0x67')](_0x21fe2c['path']),_0x5bb6c0('0x41'))],'nodir':!![]})[_0x5bb6c0('0x4')](),_0x7cde8d['on'](_0x5bb6c0('0x1e'),function(){const _0x2e2467=_0x5bb6c0;if(!fs[_0x2e2467('0x7e')](_0x17dcda))throw new db['Sequelize']['Error'](_0x2e2467('0x85'));return _0x53af50[_0x2e2467('0x59')](_0x17dcda,util[_0x2e2467('0x6c')]('%s.zip',path[_0x2e2467('0x67')](_0x21fe2c[_0x2e2467('0x73')])),function(_0xc75b4a){const _0x33fdb6=_0x2e2467;if(_0xc75b4a)throw new db[(_0x33fdb6('0x14'))]['Error'](_0x33fdb6('0x3d'));fs[_0x33fdb6('0x32')](_0x17dcda),logger['info']('Download\x20completed'),logger['info']('Temporary\x20file\x20removed');});});}return null;})[_0x5eb7ce('0x1d')](handleError(_0x53af50,null));},exports[_0x574151('0x82')]=function(_0xadabd,_0x146f43,_0x30b478){const _0x58c31a=_0x574151,_0x1e49e3=path[_0x58c31a('0x67')](_0xadabd['file'][_0x58c31a('0x64')],path[_0x58c31a('0x83')](_0xadabd[_0x58c31a('0x24')][_0x58c31a('0x64')])),_0x5616df=path[_0x58c31a('0x81')](config[_0x58c31a('0x2c')],_0x58c31a('0x50'),_0xadabd['file'][_0x58c31a('0x64')]),_0x32f0e3=path[_0x58c31a('0x81')](config[_0x58c31a('0x2c')],_0x58c31a('0x50'),_0x1e49e3);logger['info'](_0x58c31a('0x4f'),_0x5616df),logger[_0x58c31a('0x17')]('Plugin\x20upload\x20destination:\x20%s',_0x32f0e3);try{fs[_0x58c31a('0x1f')](_0x5616df,parseInt(_0x58c31a('0x72'),0x8)),extract(_0x5616df,{'dir':_0x32f0e3},function(_0x4a14f7){const _0x5b371f=_0x58c31a;_0x4a14f7&&(logger['error'](_0x4a14f7),handleError(_0x4a14f7,!![]));const _0x1957a3=fs[_0x5b371f('0x80')](_0x32f0e3);if(_0x1957a3['length']>0x1)return removeReferences(_0x5616df,_0x32f0e3),logger[_0x5b371f('0x20')](_0x5b371f('0x2b')),_0x30b478(new Error(_0x5b371f('0x2b')));const _0x5dbb96=fs['lstatSync'](path[_0x5b371f('0x81')](_0x32f0e3,_0x1957a3[0x0]));if(_0x5dbb96[_0x5b371f('0x9')]())return removeReferences(_0x5616df,_0x32f0e3),logger[_0x5b371f('0x20')](_0x5b371f('0x2b')),_0x30b478(new Error(_0x5b371f('0x2b')));if(_0x5dbb96[_0x5b371f('0x8d')]()){const _0x1e8bc4=fs[_0x5b371f('0x80')](path[_0x5b371f('0x81')](_0x32f0e3,_0x1957a3[0x0]));if(_0x1e8bc4['length']===0x0)return removeReferences(_0x5616df,_0x32f0e3),logger[_0x5b371f('0x20')]('Invalid\x20plugin\x20structure'),_0x30b478(new Error('Invalid\x20plugin\x20structure'));const _0x4de053=_0x1e8bc4[_0x5b371f('0x15')](function(_0x50728b){const _0x14e5e4=_0x5b371f;return _0x50728b===_0x14e5e4('0x1b');});if(!_0x4de053)return _0x30b478(new Error('Plugin\x20manifest\x20missing'));const _0x11c7f8=fs['readFileSync'](path['join'](_0x32f0e3,_0x1957a3[0x0],_0x5b371f('0x1b'))),_0x452cd2=JSON['parse'](_0x11c7f8);if('undefined'==typeof _0x452cd2[_0x5b371f('0x2d')])return _0x30b478(new Error(_0x5b371f('0x7c')));if(_0x5b371f('0x6e')==typeof _0x452cd2[_0x5b371f('0x6')])return _0x30b478(new Error(_0x5b371f('0x6d')));if(_0x5b371f('0x6e')==typeof _0x452cd2[_0x5b371f('0x39')])return _0x30b478(new Error(_0x5b371f('0x79')));if(_0x5b371f('0x6e')==typeof _0x452cd2['parameters'])return _0x30b478(new Error(_0x5b371f('0x28')));if(_0x452cd2[_0x5b371f('0x6')]===_0x5b371f('0x4c')){if('undefined'==typeof _0x452cd2[_0x5b371f('0xf')][_0x5b371f('0x44')])return _0x30b478(new Error(_0x5b371f('0x3c')));if(_0x5b371f('0x6e')==typeof _0x452cd2['parameters'][_0x5b371f('0x44')][_0x5b371f('0x58')]&&'undefined'==typeof _0x452cd2[_0x5b371f('0xf')][_0x5b371f('0x44')][_0x5b371f('0x8')])return _0x30b478(new Error(_0x5b371f('0x18')));}else{if(_0x452cd2[_0x5b371f('0x6')]===_0x5b371f('0x2a')){if(_0x5b371f('0x6e')==typeof _0x452cd2[_0x5b371f('0xf')][_0x5b371f('0x3b')])return _0x30b478(new Error(_0x5b371f('0x27')));if(_0x5b371f('0x6e')==typeof _0x452cd2['parameters'][_0x5b371f('0x40')])return _0x30b478(new Error(_0x5b371f('0x35')));}else return _0x30b478(new Error(_0x5b371f('0x36')));}const _0xa3666a=_0x452cd2['name'],_0x23722d=_0x452cd2[_0x5b371f('0x23')],_0x2abfd4=_0x452cd2['type'],_0x4d1763=_0x452cd2['sidebar']?_0x452cd2[_0x5b371f('0x45')]:'always',_0x2f0c21=_0x452cd2['icon']?_0x452cd2[_0x5b371f('0x74')]:_0x5b371f('0x3e');let _0x216814='',_0x475f06='',_0x4cff9f='',_0xd56e7='';const _0x177f2=_0x452cd2[_0x5b371f('0x39')];if(_0x2abfd4==='html'){if(_0x5b371f('0x6e')!=typeof _0x452cd2['parameters']['views'][_0x5b371f('0x58')]){const _0xbb197c=_0x452cd2[_0x5b371f('0xf')]['views']['admin'];!/^(f|ht)tps?:\/\//i[_0x5b371f('0x1a')](_0xbb197c)?_0x216814=path[_0x5b371f('0x81')](_0x5b371f('0x37'),_0x1e49e3,_0x1957a3[0x0],_0xbb197c):_0x216814=_0xbb197c;}else logger['info'](_0x5b371f('0x60'));if('undefined'!=typeof _0x452cd2[_0x5b371f('0xf')][_0x5b371f('0x44')][_0x5b371f('0x8')]){const _0x26cf49=_0x452cd2['parameters']['views']['agent'];!/^(f|ht)tps?:\/\//i[_0x5b371f('0x1a')](_0x26cf49)?_0x475f06=path[_0x5b371f('0x81')]('plugins',_0x1e49e3,_0x1957a3[0x0],_0x26cf49):_0x475f06=_0x26cf49;}else logger['info']('Warning:\x20agent\x20view\x20not\x20specified');}else{if(_0x2abfd4===_0x5b371f('0x2a')){_0x4cff9f=_0x452cd2[_0x5b371f('0xf')]['scriptName'],_0xd56e7=_0x452cd2[_0x5b371f('0xf')][_0x5b371f('0x40')];if(_0x5b371f('0x6e')!=typeof _0x452cd2[_0x5b371f('0xf')][_0x5b371f('0x44')]){if(_0x5b371f('0x6e')!=typeof _0x452cd2[_0x5b371f('0xf')][_0x5b371f('0x44')][_0x5b371f('0x58')]){const _0x12241a=_0x452cd2['parameters'][_0x5b371f('0x44')][_0x5b371f('0x58')];!/^(f|ht)tps?:\/\//i[_0x5b371f('0x1a')](_0x12241a)?_0x216814=path[_0x5b371f('0x81')](_0x5b371f('0x37'),_0x1e49e3,_0x1957a3[0x0],_0x12241a):_0x216814=_0x12241a;}if(_0x5b371f('0x6e')!=typeof _0x452cd2[_0x5b371f('0xf')][_0x5b371f('0x44')][_0x5b371f('0x8')]){const _0x3c9942=_0x452cd2[_0x5b371f('0xf')]['views'][_0x5b371f('0x8')];!/^(f|ht)tps?:\/\//i[_0x5b371f('0x1a')](_0x3c9942)?_0x475f06=path[_0x5b371f('0x81')](_0x5b371f('0x37'),_0x1e49e3,_0x1957a3[0x0],_0x3c9942):_0x475f06=_0x3c9942;}}}}const _0x576a55={'name':_0xa3666a,'description':_0x23722d,'path':path[_0x5b371f('0x81')](_0x1e49e3,_0x1957a3[0x0]),'type':_0x2abfd4,'sidebar':_0x4d1763,'icon':_0x2f0c21,'adminUrl':_0x216814,'agentUrl':_0x475f06,'scriptName':_0x4cff9f,'scriptPath':_0xd56e7,'version':_0x177f2};return removeReferences(_0x5616df,null),db[_0x5b371f('0x90')][_0x5b371f('0x7b')](_0x576a55)[_0x5b371f('0x46')](function(_0x271012){const _0x40406f=_0x5b371f,_0x514d09={'role':_0xadabd[_0x40406f('0x25')][_0x40406f('0x33')],'userProfileId':_0xadabd[_0x40406f('0x25')][_0x40406f('0x5a')]};if(!_0x514d09)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x514d09[_0x40406f('0x33')]===_0x40406f('0x66')){const _0x158c35=_0x271012['get']({'plain':!![]});return db[_0x40406f('0x29')]['findOne']({'where':{'name':_0x40406f('0x43'),'userProfileId':_0x514d09[_0x40406f('0x5a')]},'raw':!![]})['then'](function(_0x583df5){const _0x41b937=_0x40406f;return _0x583df5&&_0x583df5[_0x41b937('0x51')]===0x0?db[_0x41b937('0x54')][_0x41b937('0x7b')]({'name':_0x158c35[_0x41b937('0x2d')],'resourceId':_0x158c35['id'],'type':_0x583df5['name'],'sectionId':_0x583df5['id']},{})[_0x41b937('0x46')](function(){return _0x271012;}):_0x271012;})[_0x40406f('0x1d')](function(_0x1c93eb){const _0x5d9729=_0x40406f;logger[_0x5d9729('0x20')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x1c93eb);throw _0x1c93eb;});}return _0x271012;})[_0x5b371f('0x46')](respondWithResult(_0x146f43,null))[_0x5b371f('0x1d')](handleError(_0x146f43,null));}});}catch(_0x24a476){_0x146f43[_0x58c31a('0x77')](0x1f4)[_0x58c31a('0x7f')](_0x24a476);}};function removeReferences(_0x3fee19,_0x18efe0){const _0x1615d6=_0x574151;try{_0x3fee19&&(fs['unlinkSync'](_0x3fee19),logger[_0x1615d6('0x17')](_0x1615d6('0x16'))),_0x18efe0&&(rimraf(_0x18efe0,function(){}),logger[_0x1615d6('0x17')]('Extracted\x20folder\x20removed'));}catch(_0xea9532){logger[_0x1615d6('0x20')](_0xea9532);}}exports[_0x574151('0xb')]=function(_0x3dc137,_0x1739d8){const _0x380f83=_0x574151;return db['Plugin'][_0x380f83('0x3')]({'where':{'id':_0x3dc137['params']['id']}})[_0x380f83('0x46')](handleEntityNotFound(_0x1739d8))['then'](saveUpdates(_0x3dc137[_0x380f83('0x25')]))['then'](respondWithResult(_0x1739d8,null))[_0x380f83('0x1d')](handleError(_0x1739d8,null));},exports['delete']=function(_0x478716,_0x413ae8){const _0x55c01c=_0x574151;return db[_0x55c01c('0x90')][_0x55c01c('0x3')]({'where':{'id':_0x478716['params']['id']}})[_0x55c01c('0x46')](function(_0x47cd2d){if(_0x47cd2d)return _0x47cd2d['destroy']();})[_0x55c01c('0x46')](function(_0x3482a){const _0x513cb6=_0x55c01c;return rimraf(path[_0x513cb6('0x81')](config['root'],_0x513cb6('0x50'),path[_0x513cb6('0x12')](_0x3482a['path'])),function(){}),_0x3482a;})[_0x55c01c('0x46')](handleEntityNotFound(_0x413ae8))[_0x55c01c('0x46')](respondWithStatusCode(_0x413ae8,null))[_0x55c01c('0x1d')](handleError(_0x413ae8,null));},exports['webhookGet']=function(_0x470d44,_0x49f56b){const _0x4a1526=_0x574151;return Promise[_0x4a1526('0x49')]()['then'](function(){const _0x92e8b9=_0x4a1526;if(!_0x470d44[_0x92e8b9('0x5e')][_0x92e8b9('0x73')])throw new Error('\x27PATH\x27\x20parameter\x20not\x20specified');if(!_0x470d44['query'][_0x92e8b9('0x89')])throw new Error(_0x92e8b9('0x8c'));const _0x3c7c83=_0x470d44[_0x92e8b9('0x5e')][_0x92e8b9('0xd')]?_0x470d44[_0x92e8b9('0x5e')][_0x92e8b9('0xd')]+':'+_0x470d44[_0x92e8b9('0x5e')][_0x92e8b9('0x89')]:'http://localhost:'+_0x470d44[_0x92e8b9('0x5e')][_0x92e8b9('0x89')],_0x1864cd=_0x470d44[_0x92e8b9('0x5e')]['json']?_0x470d44['query'][_0x92e8b9('0x11')]:!![],_0x55a689=_0x470d44[_0x92e8b9('0x5e')][_0x92e8b9('0x55')]?_0x470d44[_0x92e8b9('0x5e')][_0x92e8b9('0x55')]:null,_0x3cf8d9={'method':_0x470d44[_0x92e8b9('0x8b')],'uri':util[_0x92e8b9('0x6c')](_0x92e8b9('0x30'),_0x3c7c83,_0x470d44[_0x92e8b9('0x5e')][_0x92e8b9('0x73')]),'json':_0x1864cd,'resolveWithFullResponse':!![],'encoding':_0x55a689,'qs':_0x470d44[_0x92e8b9('0x5e')]};return _0x470d44[_0x92e8b9('0x63')]&&(_0x3cf8d9[_0x92e8b9('0x63')]=_0x470d44['headers'],_0x3cf8d9[_0x92e8b9('0x63')][_0x92e8b9('0x52')]&&delete _0x3cf8d9[_0x92e8b9('0x63')]['content-length']),_0x3cf8d9['headers'][_0x92e8b9('0x4a')]&&delete _0x3cf8d9['headers'][_0x92e8b9('0x4a')],rp(_0x3cf8d9);})[_0x4a1526('0x46')](function(_0x54951b){const _0x2f5186=_0x4a1526;return _0x54951b?(_0x49f56b[_0x2f5186('0x5d')](_0x54951b[_0x2f5186('0x63')]),logger[_0x2f5186('0x17')](_0x54951b[_0x2f5186('0x25')]),_[_0x2f5186('0x91')](_0x470d44[_0x2f5186('0x5e')]['path'],_0x2f5186('0x59'))&&_0x54951b[_0x2f5186('0x56')]==0x1f4?_0x49f56b[_0x2f5186('0x19')](_0x54951b['statusCode']):_0x49f56b[_0x2f5186('0x77')](_0x54951b[_0x2f5186('0x56')])[_0x2f5186('0x7f')](_0x54951b[_0x2f5186('0x25')])):_0x49f56b['sendStatus'](0xc8);})[_0x4a1526('0x1d')](handleError(_0x49f56b,null));},exports[_0x574151('0x8f')]=function(_0x2cd6af,_0x5cac0a){const _0x388a32=_0x574151;return Promise[_0x388a32('0x49')]()[_0x388a32('0x46')](function(){const _0x134512=_0x388a32;if(!_0x2cd6af['query']['path'])throw new Error('\x27PATH\x27\x20parameter\x20not\x20specified');if(!_0x2cd6af[_0x134512('0x5e')][_0x134512('0x89')])throw new Error(_0x134512('0x8c'));const _0x2e0b19=_0x2cd6af[_0x134512('0x5e')][_0x134512('0xd')]?_0x2cd6af['query'][_0x134512('0xd')]+':'+_0x2cd6af[_0x134512('0x5e')][_0x134512('0x89')]:_0x134512('0x78')+_0x2cd6af['query'][_0x134512('0x89')],_0x1ecff6=_0x2cd6af[_0x134512('0x5e')][_0x134512('0x11')]?_0x2cd6af[_0x134512('0x5e')][_0x134512('0x11')]:!![],_0x33cdaa=_0x2cd6af[_0x134512('0x5e')][_0x134512('0x55')]?_0x2cd6af[_0x134512('0x5e')][_0x134512('0x55')]:null,_0x198958={'method':_0x2cd6af['method'],'uri':util[_0x134512('0x6c')](_0x134512('0x30'),_0x2e0b19,_0x2cd6af[_0x134512('0x5e')]['path']),'json':_0x1ecff6,'resolveWithFullResponse':!![],'encoding':_0x33cdaa,'body':_0x2cd6af[_0x134512('0x25')]};return _0x2cd6af[_0x134512('0x63')]&&(_0x198958[_0x134512('0x63')]=_0x2cd6af[_0x134512('0x63')],_0x198958['headers'][_0x134512('0x52')]&&delete _0x198958[_0x134512('0x63')][_0x134512('0x52')]),_0x198958[_0x134512('0x63')][_0x134512('0x4a')]&&delete _0x198958[_0x134512('0x63')][_0x134512('0x4a')],rp(_0x198958);})[_0x388a32('0x46')](function(_0x5bb189){const _0x1e0a66=_0x388a32;return _0x5bb189?(_0x5cac0a[_0x1e0a66('0x5d')](_0x5bb189['headers']),logger[_0x1e0a66('0x17')](_0x5bb189['body']),_0x5cac0a[_0x1e0a66('0x77')](_0x5bb189['statusCode'])[_0x1e0a66('0x7f')](_0x5bb189[_0x1e0a66('0x25')])):_0x5cac0a[_0x1e0a66('0x19')](0xc8);})['catch'](handleError(_0x5cac0a,null));}; \ No newline at end of file diff --git a/server/api/plugin/plugin.events.js b/server/api/plugin/plugin.events.js index 65d2c6a..7d4b117 100644 --- a/server/api/plugin/plugin.events.js +++ b/server/api/plugin/plugin.events.js @@ -1 +1 @@ -const a516_0x828d=['exports','remove','emit','undefined','update','../../mysqldb','addHook','events','Plugin'];(function(_0x108464,_0x828d99){const _0x501fe3=function(_0x219a64){while(--_0x219a64){_0x108464['push'](_0x108464['shift']());}};_0x501fe3(++_0x828d99);}(a516_0x828d,0x1ef));const a516_0x501f=function(_0x108464,_0x828d99){_0x108464=_0x108464-0x0;let _0x501fe3=a516_0x828d[_0x108464];return _0x501fe3;};const _0x48140f=a516_0x501f;'use strict';const EventEmitter=require(_0x48140f('0x7')),Plugin=require(_0x48140f('0x5'))['db'][_0x48140f('0x8')],PluginEvents=new EventEmitter();PluginEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':_0x48140f('0x4'),'afterDestroy':_0x48140f('0x1')};function emitEvent(_0x219a64){return function(_0xf48dee){const _0x5c82ad=a516_0x501f;PluginEvents[_0x5c82ad('0x2')](_0x219a64+':'+_0xf48dee['id'],_0xf48dee),PluginEvents[_0x5c82ad('0x2')](_0x219a64,_0xf48dee);};}for(const e in events){if(typeof events[e]!==_0x48140f('0x3')){const event=events[e];Plugin[_0x48140f('0x6')](e,emitEvent(event));}}module[_0x48140f('0x0')]=PluginEvents; \ No newline at end of file +const a516_0x355a=['../../mysqldb','Plugin','setMaxListeners','emit','save'];(function(_0x416a66,_0x355a25){const _0x117531=function(_0x123778){while(--_0x123778){_0x416a66['push'](_0x416a66['shift']());}};_0x117531(++_0x355a25);}(a516_0x355a,0x14e));const a516_0x1175=function(_0x416a66,_0x355a25){_0x416a66=_0x416a66-0x0;let _0x117531=a516_0x355a[_0x416a66];return _0x117531;};const _0xad8f9a=a516_0x1175;'use strict';const EventEmitter=require('events'),Plugin=require(_0xad8f9a('0x1'))['db'][_0xad8f9a('0x2')],PluginEvents=new EventEmitter();PluginEvents[_0xad8f9a('0x3')](0x0);const events={'afterCreate':_0xad8f9a('0x0'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x123778){return function(_0x139109){const _0x40469e=a516_0x1175;PluginEvents['emit'](_0x123778+':'+_0x139109['id'],_0x139109),PluginEvents[_0x40469e('0x4')](_0x123778,_0x139109);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Plugin['addHook'](e,emitEvent(event));}}module['exports']=PluginEvents; \ No newline at end of file diff --git a/server/api/plugin/plugin.model.js b/server/api/plugin/plugin.model.js index c0310c1..a6166fa 100644 --- a/server/api/plugin/plugin.model.js +++ b/server/api/plugin/plugin.model.js @@ -1 +1 @@ -const a517_0x161e=['exports','plugins','./plugin.attributes','define'];(function(_0x352149,_0x161ebc){const _0x575a10=function(_0x27a71d){while(--_0x27a71d){_0x352149['push'](_0x352149['shift']());}};_0x575a10(++_0x161ebc);}(a517_0x161e,0x139));const a517_0x575a=function(_0x352149,_0x161ebc){_0x352149=_0x352149-0x0;let _0x575a10=a517_0x161e[_0x352149];return _0x575a10;};const _0x14978d=a517_0x575a;'use strict';const attributes=require(_0x14978d('0x1'));module[_0x14978d('0x3')]=function(_0x27a71d){const _0xaf30db=_0x14978d,_0x578cc7=_0x27a71d[_0xaf30db('0x2')]('Plugin',attributes,{'tableName':_0xaf30db('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x578cc7;}; \ No newline at end of file +const a517_0xaa05=['plugins','Plugin','./plugin.attributes','define','exports'];(function(_0x3469f7,_0xaa052b){const _0x542c65=function(_0x104630){while(--_0x104630){_0x3469f7['push'](_0x3469f7['shift']());}};_0x542c65(++_0xaa052b);}(a517_0xaa05,0x1de));const a517_0x542c=function(_0x3469f7,_0xaa052b){_0x3469f7=_0x3469f7-0x0;let _0x542c65=a517_0xaa05[_0x3469f7];return _0x542c65;};const _0x577f46=a517_0x542c;'use strict';const attributes=require(_0x577f46('0x4'));module[_0x577f46('0x1')]=function(_0x104630){const _0x25f127=_0x577f46,_0x360db8=_0x104630[_0x25f127('0x0')](_0x25f127('0x3'),attributes,{'tableName':_0x25f127('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x360db8;}; \ No newline at end of file diff --git a/server/api/plugin/plugin.rpc.js b/server/api/plugin/plugin.rpc.js index d7a44c4..e05a155 100644 --- a/server/api/plugin/plugin.rpc.js +++ b/server/api/plugin/plugin.rpc.js @@ -1 +1 @@ -const a518_0x2231=['register','stringify','CreatePlugin','debug','error','./plugin.socket','../../mysqldb','create','options','body','raw','../../rediscache','../../config/logger','rpc','then','Plugin'];(function(_0x60b76,_0x22313e){const _0x1d7a83=function(_0x591da5){while(--_0x591da5){_0x60b76['push'](_0x60b76['shift']());}};_0x1d7a83(++_0x22313e);}(a518_0x2231,0x1ee));const a518_0x1d7a=function(_0x60b76,_0x22313e){_0x60b76=_0x60b76-0x0;let _0x1d7a83=a518_0x2231[_0x60b76];return _0x1d7a83;};const _0x287360=a518_0x1d7a;'use strict';const db=require(_0x287360('0x8'))['db'],logger=require(_0x287360('0xe'))(_0x287360('0xf')),{getSocket}=require(_0x287360('0xd')),socket=getSocket();require(_0x287360('0x7'))[_0x287360('0x2')](socket),exports[_0x287360('0x4')]=function(_0x591da5){const _0x286e03=this;return new Promise(function(_0x1ceaba,_0x2028c6){const _0x1dccc1=a518_0x1d7a;return db[_0x1dccc1('0x1')][_0x1dccc1('0x9')](_0x591da5[_0x1dccc1('0xb')],{'raw':_0x591da5[_0x1dccc1('0xa')]?_0x591da5[_0x1dccc1('0xa')][_0x1dccc1('0xc')]===undefined?!![]:![]:!![]})[_0x1dccc1('0x0')](function(_0x3c9900){const _0x26e4d1=_0x1dccc1;logger['info']('CreatePlugin',_0x591da5),logger[_0x26e4d1('0x5')]('CreatePlugin',_0x591da5,JSON[_0x26e4d1('0x3')](_0x3c9900)),_0x1ceaba(_0x3c9900);})['catch'](function(_0x451a31){const _0x3aa8a5=_0x1dccc1;logger[_0x3aa8a5('0x6')](_0x3aa8a5('0x4'),_0x451a31['message'],_0x591da5),_0x2028c6(_0x286e03['error'](0x1f4,_0x451a31['message']));});});}; \ No newline at end of file +const a518_0xe90b=['../../mysqldb','stringify','../../config/logger','debug','create','../../rediscache','error','CreatePlugin','catch','Plugin','options','register','info','./plugin.socket','message'];(function(_0x13263b,_0xe90be){const _0x254422=function(_0x2564af){while(--_0x2564af){_0x13263b['push'](_0x13263b['shift']());}};_0x254422(++_0xe90be);}(a518_0xe90b,0x149));const a518_0x2544=function(_0x13263b,_0xe90be){_0x13263b=_0x13263b-0x0;let _0x254422=a518_0xe90b[_0x13263b];return _0x254422;};const _0x263895=a518_0x2544;'use strict';const db=require(_0x263895('0x1'))['db'],logger=require(_0x263895('0x3'))('rpc'),{getSocket}=require(_0x263895('0x6')),socket=getSocket();require(_0x263895('0xe'))[_0x263895('0xc')](socket),exports[_0x263895('0x8')]=function(_0x2564af){const _0x2bc8b4=this;return new Promise(function(_0x5ac0fb,_0x44cea4){const _0x32e5a3=a518_0x2544;return db[_0x32e5a3('0xa')][_0x32e5a3('0x5')](_0x2564af['body'],{'raw':_0x2564af[_0x32e5a3('0xb')]?_0x2564af[_0x32e5a3('0xb')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x4df9dd){const _0x4cea41=_0x32e5a3;logger[_0x4cea41('0xd')]('CreatePlugin',_0x2564af),logger[_0x4cea41('0x4')]('CreatePlugin',_0x2564af,JSON[_0x4cea41('0x2')](_0x4df9dd)),_0x5ac0fb(_0x4df9dd);})[_0x32e5a3('0x9')](function(_0x49ac54){const _0x5a6a86=_0x32e5a3;logger[_0x5a6a86('0x7')]('CreatePlugin',_0x49ac54['message'],_0x2564af),_0x44cea4(_0x2bc8b4[_0x5a6a86('0x7')](0x1f4,_0x49ac54[_0x5a6a86('0x0')]));});});}; \ No newline at end of file diff --git a/server/api/plugin/plugin.socket.js b/server/api/plugin/plugin.socket.js index 195765f..9585f96 100644 --- a/server/api/plugin/plugin.socket.js +++ b/server/api/plugin/plugin.socket.js @@ -1 +1 @@ -const a519_0x2a51=['remove','register','length','save','./plugin.events'];(function(_0x50d308,_0x2a5141){const _0x1d744d=function(_0x577753){while(--_0x577753){_0x50d308['push'](_0x50d308['shift']());}};_0x1d744d(++_0x2a5141);}(a519_0x2a51,0x14f));const a519_0x1d74=function(_0x50d308,_0x2a5141){_0x50d308=_0x50d308-0x0;let _0x1d744d=a519_0x2a51[_0x50d308];return _0x1d744d;};const _0x306654=a519_0x1d74;'use strict';const PluginEvents=require(_0x306654('0x4')),events=[_0x306654('0x3'),_0x306654('0x0'),'update'];function createListener(_0x577753,_0x3f5597){return function(_0x43da04){_0x3f5597['emit'](_0x577753,_0x43da04);};}exports[_0x306654('0x1')]=function(_0x2d22c3){const _0x9c3023=_0x306654;for(let _0xcae6fd=0x0,_0x7b8e25=events[_0x9c3023('0x2')];_0xcae6fd<_0x7b8e25;_0xcae6fd++){const _0x27d7b8=events[_0xcae6fd],_0x22f4fa=createListener('plugin:'+_0x27d7b8,_0x2d22c3);PluginEvents['on'](_0x27d7b8,_0x22f4fa);}}; \ No newline at end of file +const a519_0x8817=['plugin:','./plugin.events','save','register','emit','length','update'];(function(_0xc95e40,_0x881700){const _0x274e70=function(_0x444d4c){while(--_0x444d4c){_0xc95e40['push'](_0xc95e40['shift']());}};_0x274e70(++_0x881700);}(a519_0x8817,0x10c));const a519_0x274e=function(_0xc95e40,_0x881700){_0xc95e40=_0xc95e40-0x0;let _0x274e70=a519_0x8817[_0xc95e40];return _0x274e70;};const _0xf20b00=a519_0x274e;'use strict';const PluginEvents=require(_0xf20b00('0x6')),events=[_0xf20b00('0x0'),'remove',_0xf20b00('0x4')];function createListener(_0x444d4c,_0x3f4811){return function(_0xb80e05){const _0x428512=a519_0x274e;_0x3f4811[_0x428512('0x2')](_0x444d4c,_0xb80e05);};}exports[_0xf20b00('0x1')]=function(_0xc342c1){const _0x14e899=_0xf20b00;for(let _0x10c2a2=0x0,_0x2d4f8f=events[_0x14e899('0x3')];_0x10c2a2<_0x2d4f8f;_0x10c2a2++){const _0x49f2a5=events[_0x10c2a2],_0x2ee1d2=createListener(_0x14e899('0x5')+_0x49f2a5,_0xc342c1);PluginEvents['on'](_0x49f2a5,_0x2ee1d2);}}; \ No newline at end of file diff --git a/server/api/pm2/index.js b/server/api/pm2/index.js index b41f0e1..2c48e3e 100644 --- a/server/api/pm2/index.js +++ b/server/api/pm2/index.js @@ -1 +1 @@ -const a520_0x549f=['express','./pm2.controller','isAuthenticated','/:id','post','get','show','update','index','delete','Router','create','exports'];(function(_0x564c79,_0x549f78){const _0x19ad15=function(_0x3bf79b){while(--_0x3bf79b){_0x564c79['push'](_0x564c79['shift']());}};_0x19ad15(++_0x549f78);}(a520_0x549f,0xfd));const a520_0x19ad=function(_0x564c79,_0x549f78){_0x564c79=_0x564c79-0x0;let _0x19ad15=a520_0x549f[_0x564c79];return _0x19ad15;};const _0x17383d=a520_0x19ad;'use strict';const express=require(_0x17383d('0x7')),router=express[_0x17383d('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x17383d('0x8'));router[_0x17383d('0xc')]('/',auth[_0x17383d('0x9')](),controller[_0x17383d('0x2')]),router[_0x17383d('0xc')](_0x17383d('0xa'),auth[_0x17383d('0x9')](),controller[_0x17383d('0x0')]),router[_0x17383d('0xb')]('/',auth[_0x17383d('0x9')](),controller[_0x17383d('0x5')]),router['put'](_0x17383d('0xa'),auth[_0x17383d('0x9')](),controller[_0x17383d('0x1')]),router[_0x17383d('0x3')](_0x17383d('0xa'),auth[_0x17383d('0x9')](),controller['destroy']),module[_0x17383d('0x6')]=router; \ No newline at end of file +const a520_0x4ff1=['get','destroy','exports','isAuthenticated','put','Router','update','/:id','delete','post'];(function(_0x10e3ec,_0x4ff156){const _0x15ef64=function(_0x5633d9){while(--_0x5633d9){_0x10e3ec['push'](_0x10e3ec['shift']());}};_0x15ef64(++_0x4ff156);}(a520_0x4ff1,0x195));const a520_0x15ef=function(_0x10e3ec,_0x4ff156){_0x10e3ec=_0x10e3ec-0x0;let _0x15ef64=a520_0x4ff1[_0x10e3ec];return _0x15ef64;};const _0x32cd3d=a520_0x15ef;'use strict';const express=require('express'),router=express[_0x32cd3d('0x0')](),auth=require('../../components/auth/service'),controller=require('./pm2.controller');router[_0x32cd3d('0x5')]('/',auth['isAuthenticated'](),controller['index']),router[_0x32cd3d('0x5')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x32cd3d('0x4')]('/',auth[_0x32cd3d('0x8')](),controller['create']),router[_0x32cd3d('0x9')](_0x32cd3d('0x2'),auth['isAuthenticated'](),controller[_0x32cd3d('0x1')]),router[_0x32cd3d('0x3')](_0x32cd3d('0x2'),auth[_0x32cd3d('0x8')](),controller[_0x32cd3d('0x6')]),module[_0x32cd3d('0x7')]=router; \ No newline at end of file diff --git a/server/api/pm2/pm2.controller.js b/server/api/pm2/pm2.controller.js index d72803e..db03eb9 100644 --- a/server/api/pm2/pm2.controller.js +++ b/server/api/pm2/pm2.controller.js @@ -1 +1 @@ -const a521_0x3fef=['Unknown\x20id','then','motion2','exec','name','dump','params','body','restart','error','script','info','list','../../config/logger','reject','destroy','stack','stop','api','index','child_process','update','Unknown\x20status','chdir','../../config/pm2','../../files/plugins','send','status','catch','delete','Missing\x20name\x20and/or\x20path','dirname','npm\x20install','path','start','show','sendStatus','json'];(function(_0x30550b,_0x3fef8c){const _0x20c21b=function(_0x146f74){while(--_0x146f74){_0x30550b['push'](_0x30550b['shift']());}};_0x20c21b(++_0x3fef8c);}(a521_0x3fef,0x16c));const a521_0x20c2=function(_0x30550b,_0x3fef8c){_0x30550b=_0x30550b-0x0;let _0x20c21b=a521_0x3fef[_0x30550b];return _0x20c21b;};const _0x466949=a521_0x20c2;'use strict';const _=require('lodash'),pm2=require(_0x466949('0x2')),logger=require(_0x466949('0x1d'))(_0x466949('0x22')),path=require(_0x466949('0xb')),exec=require(_0x466949('0x24'))[_0x466949('0x13')];function handleEntityNotFound(_0x146f74){return function(_0x4fc2e7){const _0x15983a=a521_0x20c2;return!_0x4fc2e7&&_0x146f74[_0x15983a('0xe')](0x194),_0x4fc2e7;};}function respondWithResult(_0x526721,_0x4875b9){return _0x4875b9=_0x4875b9||0xc8,function(_0x22baed){const _0xa99787=a521_0x20c2;if(_0x22baed)return _0x526721[_0xa99787('0x5')](_0x4875b9)[_0xa99787('0xf')](_0x22baed);return null;};}function handleError(_0x2d451d,_0x47d32f){return _0x47d32f=_0x47d32f||0x1f4,function(_0x2674e9){const _0x1cb066=a521_0x20c2;logger[_0x1cb066('0x19')](_0x2674e9[_0x1cb066('0x20')]),_0x2674e9[_0x1cb066('0x14')]&&delete _0x2674e9['name'],_0x2d451d[_0x1cb066('0x5')](_0x47d32f)['send'](_0x2674e9);};}function execChildProcess(){return new Promise(function(_0xe477d9,_0xfb68a2){const _0x39283d=a521_0x20c2;exec(_0x39283d('0xa'),function(_0x219ca4,_0x579f10,_0x351f45){const _0x79ea1c=_0x39283d;logger[_0x79ea1c('0x1b')](_0x579f10),logger['info'](_0x351f45);if(_0x219ca4)return logger[_0x79ea1c('0x19')](_0x219ca4),_0xfb68a2(_0x219ca4);return _0xe477d9(_0x579f10);});});}exports[_0x466949('0x23')]=function(_0x168191,_0x2c2515){const _0x3c3705=_0x466949;return pm2[_0x3c3705('0x1c')]()[_0x3c3705('0x11')](function(_0x511e75){const _0x2b3fc1=_0x3c3705;if(_0x511e75){const _0x5ba328=_[_0x2b3fc1('0x1e')](_0x511e75,function(_0x1f6d4a){const _0x430165=_0x2b3fc1;return _0x1f6d4a[_0x430165('0x14')]==='express'||_0x1f6d4a[_0x430165('0x14')]===_0x430165('0x12');});return{'rows':_0x5ba328,'count':_0x5ba328['length']};}return null;})[_0x3c3705('0x11')](respondWithResult(_0x2c2515,null))[_0x3c3705('0x6')](handleError(_0x2c2515,null));},exports[_0x466949('0xd')]=function(_0x2d58dd,_0x53b26f){const _0x5565f5=_0x466949;return pm2['describe'](_0x2d58dd[_0x5565f5('0x16')]['id'])[_0x5565f5('0x11')](respondWithResult(_0x53b26f,null))[_0x5565f5('0x11')](handleEntityNotFound(_0x53b26f,null))[_0x5565f5('0x6')](handleError(_0x53b26f,null));},exports['create']=function(_0x240948,_0x110ee7){const _0x3406d8=_0x466949;if(_0x240948[_0x3406d8('0x17')][_0x3406d8('0x14')]&&_0x240948['body'][_0x3406d8('0x1a')]){const _0x1ac383=path['join'](__dirname,_0x3406d8('0x3'),_0x240948[_0x3406d8('0x17')][_0x3406d8('0x1a')]),_0x454ac0=process['cwd']();return process[_0x3406d8('0x1')](path[_0x3406d8('0x9')](_0x1ac383)),execChildProcess()[_0x3406d8('0x11')](function(){const _0x419a5d=_0x3406d8;return process['chdir'](_0x454ac0),pm2[_0x419a5d('0xc')]({'name':_0x240948['body'][_0x419a5d('0x14')],'script':_0x1ac383});})[_0x3406d8('0x11')](function(_0x421f1a){const _0x569e0b=_0x3406d8;return pm2[_0x569e0b('0x15')](),_0x421f1a[0x0];})[_0x3406d8('0x11')](respondWithResult(_0x110ee7,0xc9))[_0x3406d8('0x6')](handleError(_0x110ee7,null));}else return _0x110ee7[_0x3406d8('0x5')](0x1f4)['send']({'message':_0x3406d8('0x8')});},exports[_0x466949('0x25')]=function(_0x49571d,_0x1d5d64){const _0x328a25=_0x466949;_0x49571d['body']['id']&&delete _0x49571d[_0x328a25('0x17')]['id'];const _0x4ccbc4={'online':_0x328a25('0x18'),'stopped':_0x328a25('0x21')};return typeof _0x4ccbc4[_0x49571d[_0x328a25('0x17')][_0x328a25('0x5')]]!=='undefined'?pm2[_0x4ccbc4[_0x49571d[_0x328a25('0x17')][_0x328a25('0x5')]]](_0x49571d[_0x328a25('0x16')]['id'])['then'](respondWithResult(_0x1d5d64,0xc8))[_0x328a25('0x6')](handleError(_0x1d5d64,null)):_0x1d5d64[_0x328a25('0x5')](0x1f4)[_0x328a25('0x4')]({'message':_0x328a25('0x0')});},exports[_0x466949('0x1f')]=function(_0x219f9f,_0x46b097){const _0x4357f2=_0x466949;return _0x219f9f[_0x4357f2('0x17')]['id']&&delete _0x219f9f[_0x4357f2('0x17')]['id'],_0x219f9f['params']['id']?pm2[_0x4357f2('0x7')](_0x219f9f[_0x4357f2('0x16')]['id'])[_0x4357f2('0x11')](function(_0x67e436){const _0x105cc1=_0x4357f2;return pm2[_0x105cc1('0x15')](),_0x67e436[0x0];})[_0x4357f2('0x11')](respondWithResult(_0x46b097,null))[_0x4357f2('0x6')](handleError(_0x46b097,null)):_0x46b097['status'](0x1f4)['send']({'message':_0x4357f2('0x10')});}; \ No newline at end of file +const a521_0xe5e5=['script','name','create','api','dirname','../../config/logger','restart','list','error','dump','Unknown\x20status','motion2','length','params','exec','stop','status','destroy','json','cwd','undefined','describe','reject','send','npm\x20install','show','child_process','catch','../../files/plugins','delete','Unknown\x20id','body','join','stack','Missing\x20name\x20and/or\x20path','index','then','lodash','sendStatus','info','chdir','express'];(function(_0x3828ff,_0xe5e5a2){const _0x374240=function(_0x551fe6){while(--_0x551fe6){_0x3828ff['push'](_0x3828ff['shift']());}};_0x374240(++_0xe5e5a2);}(a521_0xe5e5,0x76));const a521_0x3742=function(_0x3828ff,_0xe5e5a2){_0x3828ff=_0x3828ff-0x0;let _0x374240=a521_0xe5e5[_0x3828ff];return _0x374240;};const _0x338b7b=a521_0x3742;'use strict';const _=require(_0x338b7b('0x3')),pm2=require('../../config/pm2'),logger=require(_0x338b7b('0xd'))(_0x338b7b('0xb')),path=require('path'),exec=require(_0x338b7b('0x22'))[_0x338b7b('0x16')];function handleEntityNotFound(_0x551fe6){return function(_0x5e6c4f){const _0xe5558b=a521_0x3742;return!_0x5e6c4f&&_0x551fe6[_0xe5558b('0x4')](0x194),_0x5e6c4f;};}function respondWithResult(_0x59711e,_0x5949eb){return _0x5949eb=_0x5949eb||0xc8,function(_0x37de7c){const _0xde223e=a521_0x3742;if(_0x37de7c)return _0x59711e[_0xde223e('0x18')](_0x5949eb)[_0xde223e('0x1a')](_0x37de7c);return null;};}function handleError(_0x3f5c87,_0x4e62e0){return _0x4e62e0=_0x4e62e0||0x1f4,function(_0x56bed0){const _0x2a6ea2=a521_0x3742;logger[_0x2a6ea2('0x10')](_0x56bed0[_0x2a6ea2('0x29')]),_0x56bed0['name']&&delete _0x56bed0[_0x2a6ea2('0x9')],_0x3f5c87[_0x2a6ea2('0x18')](_0x4e62e0)[_0x2a6ea2('0x1f')](_0x56bed0);};}function execChildProcess(){return new Promise(function(_0x5bd2c2,_0x12ec82){const _0x258b2c=a521_0x3742;exec(_0x258b2c('0x20'),function(_0x33fb65,_0x2e3c1f,_0x176e61){const _0x378482=_0x258b2c;logger['info'](_0x2e3c1f),logger[_0x378482('0x5')](_0x176e61);if(_0x33fb65)return logger[_0x378482('0x10')](_0x33fb65),_0x12ec82(_0x33fb65);return _0x5bd2c2(_0x2e3c1f);});});}exports[_0x338b7b('0x1')]=function(_0x819b36,_0x1e1b29){const _0x19af11=_0x338b7b;return pm2[_0x19af11('0xf')]()[_0x19af11('0x2')](function(_0x4e4253){const _0x59ce9d=_0x19af11;if(_0x4e4253){const _0x277403=_[_0x59ce9d('0x1e')](_0x4e4253,function(_0x41deb6){const _0x108199=_0x59ce9d;return _0x41deb6[_0x108199('0x9')]===_0x108199('0x7')||_0x41deb6[_0x108199('0x9')]===_0x108199('0x13');});return{'rows':_0x277403,'count':_0x277403[_0x59ce9d('0x14')]};}return null;})[_0x19af11('0x2')](respondWithResult(_0x1e1b29,null))[_0x19af11('0x23')](handleError(_0x1e1b29,null));},exports[_0x338b7b('0x21')]=function(_0x427961,_0x3a11de){const _0x27d2af=_0x338b7b;return pm2[_0x27d2af('0x1d')](_0x427961[_0x27d2af('0x15')]['id'])[_0x27d2af('0x2')](respondWithResult(_0x3a11de,null))[_0x27d2af('0x2')](handleEntityNotFound(_0x3a11de,null))[_0x27d2af('0x23')](handleError(_0x3a11de,null));},exports[_0x338b7b('0xa')]=function(_0x2132ac,_0x52c2a1){const _0x1d4a1d=_0x338b7b;if(_0x2132ac['body']['name']&&_0x2132ac[_0x1d4a1d('0x27')][_0x1d4a1d('0x8')]){const _0x1cba72=path[_0x1d4a1d('0x28')](__dirname,_0x1d4a1d('0x24'),_0x2132ac[_0x1d4a1d('0x27')][_0x1d4a1d('0x8')]),_0x1e43cf=process[_0x1d4a1d('0x1b')]();return process[_0x1d4a1d('0x6')](path[_0x1d4a1d('0xc')](_0x1cba72)),execChildProcess()[_0x1d4a1d('0x2')](function(){const _0x227b6a=_0x1d4a1d;return process[_0x227b6a('0x6')](_0x1e43cf),pm2['start']({'name':_0x2132ac[_0x227b6a('0x27')]['name'],'script':_0x1cba72});})[_0x1d4a1d('0x2')](function(_0xa998aa){const _0x9bb31d=_0x1d4a1d;return pm2[_0x9bb31d('0x11')](),_0xa998aa[0x0];})[_0x1d4a1d('0x2')](respondWithResult(_0x52c2a1,0xc9))['catch'](handleError(_0x52c2a1,null));}else return _0x52c2a1[_0x1d4a1d('0x18')](0x1f4)[_0x1d4a1d('0x1f')]({'message':_0x1d4a1d('0x0')});},exports['update']=function(_0x2fbb60,_0x434353){const _0xcce5b2=_0x338b7b;_0x2fbb60[_0xcce5b2('0x27')]['id']&&delete _0x2fbb60[_0xcce5b2('0x27')]['id'];const _0x59fb70={'online':_0xcce5b2('0xe'),'stopped':_0xcce5b2('0x17')};return typeof _0x59fb70[_0x2fbb60[_0xcce5b2('0x27')][_0xcce5b2('0x18')]]!==_0xcce5b2('0x1c')?pm2[_0x59fb70[_0x2fbb60[_0xcce5b2('0x27')]['status']]](_0x2fbb60[_0xcce5b2('0x15')]['id'])[_0xcce5b2('0x2')](respondWithResult(_0x434353,0xc8))[_0xcce5b2('0x23')](handleError(_0x434353,null)):_0x434353[_0xcce5b2('0x18')](0x1f4)[_0xcce5b2('0x1f')]({'message':_0xcce5b2('0x12')});},exports[_0x338b7b('0x19')]=function(_0x2c38c6,_0x54c52f){const _0x13318e=_0x338b7b;return _0x2c38c6['body']['id']&&delete _0x2c38c6[_0x13318e('0x27')]['id'],_0x2c38c6[_0x13318e('0x15')]['id']?pm2[_0x13318e('0x25')](_0x2c38c6[_0x13318e('0x15')]['id'])[_0x13318e('0x2')](function(_0x5bf747){const _0x5645d4=_0x13318e;return pm2[_0x5645d4('0x11')](),_0x5bf747[0x0];})[_0x13318e('0x2')](respondWithResult(_0x54c52f,null))[_0x13318e('0x23')](handleError(_0x54c52f,null)):_0x54c52f['status'](0x1f4)[_0x13318e('0x1f')]({'message':_0x13318e('0x26')});}; \ No newline at end of file diff --git a/server/api/reportAgentPreview/index.js b/server/api/reportAgentPreview/index.js index 1666fbf..e191536 100644 --- a/server/api/reportAgentPreview/index.js +++ b/server/api/reportAgentPreview/index.js @@ -1 +1 @@ -const a522_0x21d2=['express','exports'];(function(_0x2a4c9b,_0x21d2b6){const _0x933db8=function(_0x1c1264){while(--_0x1c1264){_0x2a4c9b['push'](_0x2a4c9b['shift']());}};_0x933db8(++_0x21d2b6);}(a522_0x21d2,0x1ae));const a522_0x933d=function(_0x2a4c9b,_0x21d2b6){_0x2a4c9b=_0x2a4c9b-0x0;let _0x933db8=a522_0x21d2[_0x2a4c9b];return _0x933db8;};const _0x39c4aa=a522_0x933d;'use strict';const express=require(_0x39c4aa('0x0')),router=express['Router']();module[_0x39c4aa('0x1')]=router; \ No newline at end of file +const a522_0x3aa8=['Router','express','exports'];(function(_0x13d8cf,_0x3aa8da){const _0x3db4d4=function(_0xacb13){while(--_0xacb13){_0x13d8cf['push'](_0x13d8cf['shift']());}};_0x3db4d4(++_0x3aa8da);}(a522_0x3aa8,0x67));const a522_0x3db4=function(_0x13d8cf,_0x3aa8da){_0x13d8cf=_0x13d8cf-0x0;let _0x3db4d4=a522_0x3aa8[_0x13d8cf];return _0x3db4d4;};const _0x2d3eb8=a522_0x3db4;'use strict';const express=require(_0x2d3eb8('0x0')),router=express[_0x2d3eb8('0x2')]();module[_0x2d3eb8('0x1')]=router; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.attributes.js b/server/api/reportAgentPreview/reportAgentPreview.attributes.js index df55088..9140656 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.attributes.js +++ b/server/api/reportAgentPreview/reportAgentPreview.attributes.js @@ -1 +1 @@ -const a523_0xd410=['DATE','INTEGER','STRING'];(function(_0x1177cd,_0xd41055){const _0x5daef0=function(_0x5b5de5){while(--_0x5b5de5){_0x1177cd['push'](_0x1177cd['shift']());}};_0x5daef0(++_0xd41055);}(a523_0xd410,0x1e4));const a523_0x5dae=function(_0x1177cd,_0xd41055){_0x1177cd=_0x1177cd-0x0;let _0x5daef0=a523_0xd410[_0x1177cd];return _0x5daef0;};const _0x4a74c6=a523_0x5dae;'use strict';const Sequelize=require('sequelize');module['exports']={'state':{'type':Sequelize[_0x4a74c6('0x0')](0x2)},'statedesc':{'type':Sequelize['STRING']},'scheduledat':{'type':Sequelize[_0x4a74c6('0x2')]},'uniqueid':{'type':Sequelize[_0x4a74c6('0x1')]},'starttime':{'type':Sequelize['DATE']},'responsetime':{'type':Sequelize[_0x4a74c6('0x2')]},'ringtime':{'type':Sequelize[_0x4a74c6('0x0')],'defaultValue':0x0},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize[_0x4a74c6('0x1')]},'membername':{'type':Sequelize[_0x4a74c6('0x1')]}}; \ No newline at end of file +const a523_0x1d86=['DATE','INTEGER','sequelize','exports','STRING'];(function(_0x55fdfa,_0x1d8601){const _0x2de3b3=function(_0x16564b){while(--_0x16564b){_0x55fdfa['push'](_0x55fdfa['shift']());}};_0x2de3b3(++_0x1d8601);}(a523_0x1d86,0xb5));const a523_0x2de3=function(_0x55fdfa,_0x1d8601){_0x55fdfa=_0x55fdfa-0x0;let _0x2de3b3=a523_0x1d86[_0x55fdfa];return _0x2de3b3;};const _0x3506fd=a523_0x2de3;'use strict';const Sequelize=require(_0x3506fd('0x1'));module[_0x3506fd('0x2')]={'state':{'type':Sequelize[_0x3506fd('0x0')](0x2)},'statedesc':{'type':Sequelize[_0x3506fd('0x3')]},'scheduledat':{'type':Sequelize[_0x3506fd('0x4')]},'uniqueid':{'type':Sequelize[_0x3506fd('0x3')]},'starttime':{'type':Sequelize['DATE']},'responsetime':{'type':Sequelize[_0x3506fd('0x4')]},'ringtime':{'type':Sequelize[_0x3506fd('0x0')],'defaultValue':0x0},'campaign':{'type':Sequelize[_0x3506fd('0x3')]},'campaigntype':{'type':Sequelize[_0x3506fd('0x3')]},'membername':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.model.js b/server/api/reportAgentPreview/reportAgentPreview.model.js index 53ad5b3..e9ad48d 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.model.js +++ b/server/api/reportAgentPreview/reportAgentPreview.model.js @@ -1 +1 @@ -const a524_0x6b9b=['define','report_agent_preview','./reportAgentPreview.attributes','exports','ReportAgentPreview'];(function(_0x4a93dc,_0x6b9b64){const _0x45870c=function(_0x500fca){while(--_0x500fca){_0x4a93dc['push'](_0x4a93dc['shift']());}};_0x45870c(++_0x6b9b64);}(a524_0x6b9b,0x1a6));const a524_0x4587=function(_0x4a93dc,_0x6b9b64){_0x4a93dc=_0x4a93dc-0x0;let _0x45870c=a524_0x6b9b[_0x4a93dc];return _0x45870c;};const _0x5cb2ae=a524_0x4587;'use strict';const attributes=require(_0x5cb2ae('0x0'));module[_0x5cb2ae('0x1')]=function(_0x500fca){const _0x12ff1c=_0x5cb2ae,_0x5181a9=_0x500fca[_0x12ff1c('0x3')](_0x12ff1c('0x2'),attributes,{'tableName':_0x12ff1c('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5181a9;}; \ No newline at end of file +const a524_0x3e3b=['define','ReportAgentPreview'];(function(_0x2b98e8,_0x3e3b7a){const _0x347fcc=function(_0x1bbe41){while(--_0x1bbe41){_0x2b98e8['push'](_0x2b98e8['shift']());}};_0x347fcc(++_0x3e3b7a);}(a524_0x3e3b,0x19c));const a524_0x347f=function(_0x2b98e8,_0x3e3b7a){_0x2b98e8=_0x2b98e8-0x0;let _0x347fcc=a524_0x3e3b[_0x2b98e8];return _0x347fcc;};'use strict';const attributes=require('./reportAgentPreview.attributes');module['exports']=function(_0x1bbe41){const _0x2e6206=a524_0x347f,_0x3c7fc8=_0x1bbe41[_0x2e6206('0x0')](_0x2e6206('0x1'),attributes,{'tableName':'report_agent_preview','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3c7fc8;}; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.rpc.js b/server/api/reportAgentPreview/reportAgentPreview.rpc.js index c161231..2c51b8b 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.rpc.js +++ b/server/api/reportAgentPreview/reportAgentPreview.rpc.js @@ -1 +1 @@ -const a525_0x4965=['error','catch','CreateReportAgentPreview','debug','options','message','info','stringify','../../mysqldb','body','create','then','ReportAgentPreview','rpc'];(function(_0x532e7f,_0x49654d){const _0x166e3c=function(_0x1910b0){while(--_0x1910b0){_0x532e7f['push'](_0x532e7f['shift']());}};_0x166e3c(++_0x49654d);}(a525_0x4965,0x80));const a525_0x166e=function(_0x532e7f,_0x49654d){_0x532e7f=_0x532e7f-0x0;let _0x166e3c=a525_0x4965[_0x532e7f];return _0x166e3c;};const _0x272324=a525_0x166e;'use strict';const db=require(_0x272324('0x6'))['db'],logger=require('../../config/logger')(_0x272324('0xb'));exports['CreateReportAgentPreview']=function(_0x1910b0){const _0x30b181=this;return new Promise(function(_0x1ee624,_0xea313b){const _0x3b51eb=a525_0x166e;return db[_0x3b51eb('0xa')][_0x3b51eb('0x8')](_0x1910b0[_0x3b51eb('0x7')],{'raw':_0x1910b0[_0x3b51eb('0x2')]?_0x1910b0[_0x3b51eb('0x2')]['raw']===undefined?!![]:![]:!![]})[_0x3b51eb('0x9')](function(_0x30bb2b){const _0x1d683f=_0x3b51eb;logger[_0x1d683f('0x4')](_0x1d683f('0x0'),_0x1910b0),logger[_0x1d683f('0x1')](_0x1d683f('0x0'),_0x1910b0,JSON[_0x1d683f('0x5')](_0x30bb2b)),_0x1ee624(_0x30bb2b);})[_0x3b51eb('0xd')](function(_0x39a724){const _0x5e470f=_0x3b51eb;logger[_0x5e470f('0xc')](_0x5e470f('0x0'),_0x39a724['message'],_0x1910b0),_0xea313b(_0x30b181[_0x5e470f('0xc')](0x1f4,_0x39a724[_0x5e470f('0x3')]));});});}; \ No newline at end of file +const a525_0xac9e=['../../config/logger','rpc','catch','message','debug','error','create','info','../../mysqldb','CreateReportAgentPreview','stringify','options'];(function(_0x40d04f,_0xac9e98){const _0x355c6=function(_0x1abb85){while(--_0x1abb85){_0x40d04f['push'](_0x40d04f['shift']());}};_0x355c6(++_0xac9e98);}(a525_0xac9e,0xbb));const a525_0x355c=function(_0x40d04f,_0xac9e98){_0x40d04f=_0x40d04f-0x0;let _0x355c6=a525_0xac9e[_0x40d04f];return _0x355c6;};const _0x243fbe=a525_0x355c;'use strict';const db=require(_0x243fbe('0x1'))['db'],logger=require(_0x243fbe('0x5'))(_0x243fbe('0x6'));exports[_0x243fbe('0x2')]=function(_0x1abb85){const _0x30bb73=this;return new Promise(function(_0x5c369e,_0x4475a2){const _0xde5978=a525_0x355c;return db['ReportAgentPreview'][_0xde5978('0xb')](_0x1abb85['body'],{'raw':_0x1abb85[_0xde5978('0x4')]?_0x1abb85[_0xde5978('0x4')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x4d391e){const _0x46ca1b=_0xde5978;logger[_0x46ca1b('0x0')](_0x46ca1b('0x2'),_0x1abb85),logger[_0x46ca1b('0x9')]('CreateReportAgentPreview',_0x1abb85,JSON[_0x46ca1b('0x3')](_0x4d391e)),_0x5c369e(_0x4d391e);})[_0xde5978('0x7')](function(_0x195ebd){const _0x1dae07=_0xde5978;logger[_0x1dae07('0xa')]('CreateReportAgentPreview',_0x195ebd[_0x1dae07('0x8')],_0x1abb85),_0x4475a2(_0x30bb73['error'](0x1f4,_0x195ebd['message']));});});}; \ No newline at end of file diff --git a/server/api/rpc/index.js b/server/api/rpc/index.js index d7129a9..19d8266 100644 --- a/server/api/rpc/index.js +++ b/server/api/rpc/index.js @@ -1 +1 @@ -const a526_0x2317=['/whatsapp/queues','/fax/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/voice/queues/channels/:uniqueid/hangup','outboundChannels','/sms/queues','/openchannel/queues/:id/notify','/chat/queues','showOpenchannelQueues','exports','/openchannel/queues/:id','/voice/channels','faxAccounts','/mail/queues/:id/notify','agents','voiceQueues','sms','voiceQueuesPreview','/whatsapp/queues/waitinginteractions','/mail/accounts','./rpc.controller','trunks','/whatsapp/queues/:id','faxQueues','telephones','/outbound','showSmsQueues','/chat/queues/:id','put','/agents/:id/notify','voiceChannelMixMonitor','mailAccounts','/voice/queues/:id','agentCapacity','mailQueues','/agents','/agents/:id/capacity','isAuthenticated','voiceQueuesChannel','queueNotify','/fax/queues/:id','openchannelQueuesIdWaitingInteractions','/trunks','showMailQueues','/fax/queues/:id/notify','faxQueuesWaitingInteractions','/voice/queues/channels/:uniqueid','voiceQueuesChannelRedirect','voiceChannelStopMixMonitor','get','/campaigns','/sms/queues/:id/notify','whatsappQueuesWaitingInteractions','agentNotify','/openchannel/queues/:id/waitinginteractions','showChatQueues','chat','chatQueues','campaigns','openchannel','openchannelQueues','/mail/queues','mail','/chat/queues/waitinginteractions','/telephones','/mail/queues/waitinginteractions','smsQueues','/mail/queues/:id','post','/voice/queues/channels','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','whatsappQueues','smsQueuesWaitingInteractions','../../components/auth/service','/chat/queues/:id/notify','/voice/queues','/fax/accounts','outbound'];(function(_0x3665d2,_0x2317bb){const _0x455a7f=function(_0x4dec8b){while(--_0x4dec8b){_0x3665d2['push'](_0x3665d2['shift']());}};_0x455a7f(++_0x2317bb);}(a526_0x2317,0x123));const a526_0x455a=function(_0x3665d2,_0x2317bb){_0x3665d2=_0x3665d2-0x0;let _0x455a7f=a526_0x2317[_0x3665d2];return _0x455a7f;};const _0x43e41b=a526_0x455a;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x43e41b('0x14')),controller=require(_0x43e41b('0x2d'));router[_0x43e41b('0x4a')](_0x43e41b('0x24'),auth[_0x43e41b('0x3e')](),controller['voiceChannels']),router[_0x43e41b('0x4a')]('/voice/channels/:uniqueid/mixmonitor',auth['isAuthenticated'](),controller[_0x43e41b('0x37')]),router[_0x43e41b('0x4a')]('/voice/channels/:uniqueid/stopmixmonitor',auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x49')]),router[_0x43e41b('0x4a')](_0x43e41b('0x16'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x28')]),router[_0x43e41b('0x4a')](_0x43e41b('0x20'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x3')]),router[_0x43e41b('0x4a')](_0x43e41b('0x7'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x3b')]),router['get'](_0x43e41b('0x2c'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x38')]),router[_0x43e41b('0x4a')]('/openchannel/queues',auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x6')]),router['get'](_0x43e41b('0x1e'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0xc')]),router[_0x43e41b('0x4a')](_0x43e41b('0x19'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x12')]),router[_0x43e41b('0x4a')]('/fax/queues',auth['isAuthenticated'](),controller[_0x43e41b('0x30')]),router['get']('/voice/queues/preview/:id',auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x2a')]),router[_0x43e41b('0x4a')](_0x43e41b('0xf'),auth[_0x43e41b('0x3e')](),controller['voiceQueuesChannels']),router[_0x43e41b('0x4a')](_0x43e41b('0x47'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x3f')]),router[_0x43e41b('0x4a')](_0x43e41b('0x1c'),auth[_0x43e41b('0x3e')](),controller['voiceQueuesChannelHangup']),router[_0x43e41b('0x4a')]('/voice/queues/channels/:uniqueid/redirect/:exten',auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x48')]),router[_0x43e41b('0x4a')](_0x43e41b('0x39'),auth[_0x43e41b('0x3e')](),controller['showVoiceQueues']),router[_0x43e41b('0x4a')](_0x43e41b('0x32'),auth['isAuthenticated'](),controller[_0x43e41b('0x18')]),router['get']('/outbound/channels',auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x1d')]),router[_0x43e41b('0x4a')](_0x43e41b('0x3c'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x27')]),router[_0x43e41b('0x35')](_0x43e41b('0x3d'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x3a')]),router['get'](_0x43e41b('0xa'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x31')]),router['get'](_0x43e41b('0x43'),auth['isAuthenticated'](),controller[_0x43e41b('0x2e')]),router[_0x43e41b('0x4a')](_0x43e41b('0x4b'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x4')]),router['get'](_0x43e41b('0x17'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x25')]),router[_0x43e41b('0x4a')](_0x43e41b('0x9'),auth[_0x43e41b('0x3e')](),controller['chatQueuesWaitingInteractions']),router[_0x43e41b('0x4a')](_0x43e41b('0xb'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x10')]),router[_0x43e41b('0x4a')](_0x43e41b('0x11'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x1b')]),router[_0x43e41b('0x4a')](_0x43e41b('0x0'),auth['isAuthenticated'](),controller[_0x43e41b('0x42')]),router['get']('/sms/queues/waitinginteractions',auth['isAuthenticated'](),controller[_0x43e41b('0x13')]),router[_0x43e41b('0x4a')](_0x43e41b('0x2b'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x4d')]),router['get'](_0x43e41b('0x1a'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x46')]),router[_0x43e41b('0xe')](_0x43e41b('0x26'),auth['isAuthenticated'](),controller[_0x43e41b('0x40')](_0x43e41b('0x8'))),router['get'](_0x43e41b('0xd'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x44')]),router[_0x43e41b('0xe')](_0x43e41b('0x15'),auth['isAuthenticated'](),controller[_0x43e41b('0x40')](_0x43e41b('0x2'))),router[_0x43e41b('0x4a')](_0x43e41b('0x34'),auth['isAuthenticated'](),controller[_0x43e41b('0x1')]),router[_0x43e41b('0xe')](_0x43e41b('0x45'),auth[_0x43e41b('0x3e')](),controller['queueNotify']('fax')),router[_0x43e41b('0x4a')](_0x43e41b('0x41'),auth[_0x43e41b('0x3e')](),controller['showFaxQueues']),router['post'](_0x43e41b('0x1f'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x40')](_0x43e41b('0x5'))),router[_0x43e41b('0x4a')](_0x43e41b('0x23'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x21')]),router[_0x43e41b('0xe')](_0x43e41b('0x4c'),auth['isAuthenticated'](),controller[_0x43e41b('0x40')](_0x43e41b('0x29'))),router[_0x43e41b('0xe')]('/whatsapp/queues/:id/notify',auth[_0x43e41b('0x3e')](),controller['queueNotify']('whatsapp')),router[_0x43e41b('0x4a')]('/sms/queues/:id',auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x33')]),router[_0x43e41b('0x4a')](_0x43e41b('0x2f'),auth[_0x43e41b('0x3e')](),controller['showWhatsappQueues']),router[_0x43e41b('0xe')](_0x43e41b('0x36'),auth[_0x43e41b('0x3e')](),controller[_0x43e41b('0x4e')]),module[_0x43e41b('0x22')]=router; \ No newline at end of file +const a526_0x396a=['/chat/queues/:id','post','isAuthenticated','mail','/outbound/channels','/fax/queues/waitinginteractions','showFaxQueues','voiceChannels','openchannelQueues','whatsappQueuesWaitingInteractions','chatQueues','Router','/telephones','/sms/queues/:id','/voice/queues/channels/:uniqueid','/openchannel/queues/:id/notify','/voice/channels/:uniqueid/mixmonitor','voiceQueuesChannelHangup','get','voiceChannelStopMixMonitor','/voice/queues/preview/:id','voiceQueues','outboundChannels','/openchannel/queues/:id','showMailQueues','/mail/queues/:id/notify','exports','/whatsapp/queues/:id/notify','/mail/queues/:id','openchannel','/agents','mailAccounts','openchannelQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','voiceQueuesChannelRedirect','showWhatsappQueues','/voice/queues/:id','smsQueues','/voice/queues','showChatQueues','/whatsapp/queues','/chat/queues/waitinginteractions','agentCapacity','/agents/:id/notify','faxQueues','showOpenchannelQueues','/sms/queues','express','/sms/queues/:id/notify','/sms/queues/waitinginteractions','mailQueuesWaitingInteractions','showVoiceQueues','/trunks','/agents/:id/capacity','/chat/queues/:id/notify','voiceQueuesPreview','telephones','/voice/channels/:uniqueid/stopmixmonitor','queueNotify','/voice/channels','/fax/queues/:id/notify','fax','campaigns','/campaigns','/fax/accounts','/whatsapp/queues/:id','voiceQueuesChannels','put','trunks','/openchannel/queues','/voice/queues/channels','faxQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','/mail/queues','/voice/queues/channels/:uniqueid/redirect/:exten','/fax/queues','/openchannel/queues/:id/waitinginteractions','outbound','mailQueues','/voice/queues/channels/:uniqueid/hangup','sms'];(function(_0x5740b2,_0x396ad3){const _0x349ed2=function(_0x316056){while(--_0x316056){_0x5740b2['push'](_0x5740b2['shift']());}};_0x349ed2(++_0x396ad3);}(a526_0x396a,0x153));const a526_0x349e=function(_0x5740b2,_0x396ad3){_0x5740b2=_0x5740b2-0x0;let _0x349ed2=a526_0x396a[_0x5740b2];return _0x349ed2;};const _0xb6e407=a526_0x349e;'use strict';const express=require(_0xb6e407('0x20')),router=express[_0xb6e407('0x4d')](),auth=require('../../components/auth/service'),controller=require('./rpc.controller');router[_0xb6e407('0x3')](_0xb6e407('0x2c'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x49')]),router[_0xb6e407('0x3')](_0xb6e407('0x1'),auth['isAuthenticated'](),controller['voiceChannelMixMonitor']),router[_0xb6e407('0x3')](_0xb6e407('0x2a'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x4')]),router[_0xb6e407('0x3')](_0xb6e407('0x17'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x6')]),router['get']('/chat/queues',auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x4c')]),router[_0xb6e407('0x3')](_0xb6e407('0x3a'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x3f')]),router['get']('/mail/accounts',auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x10')]),router[_0xb6e407('0x3')](_0xb6e407('0x36'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x4a')]),router[_0xb6e407('0x3')](_0xb6e407('0x1f'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x16')]),router[_0xb6e407('0x3')](_0xb6e407('0x19'),auth[_0xb6e407('0x44')](),controller['whatsappQueues']),router['get'](_0xb6e407('0x3c'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x1d')]),router[_0xb6e407('0x3')](_0xb6e407('0x5'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x28')]),router[_0xb6e407('0x3')](_0xb6e407('0x37'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x33')]),router[_0xb6e407('0x3')](_0xb6e407('0x50'),auth[_0xb6e407('0x44')](),controller['voiceQueuesChannel']),router[_0xb6e407('0x3')](_0xb6e407('0x40'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x2')]),router[_0xb6e407('0x3')](_0xb6e407('0x3b'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x13')]),router[_0xb6e407('0x3')](_0xb6e407('0x15'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x24')]),router[_0xb6e407('0x3')]('/outbound',auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x3e')]),router[_0xb6e407('0x3')](_0xb6e407('0x46'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x7')]),router[_0xb6e407('0x3')](_0xb6e407('0xf'),auth[_0xb6e407('0x44')](),controller['agents']),router[_0xb6e407('0x34')](_0xb6e407('0x26'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x1b')]),router[_0xb6e407('0x3')](_0xb6e407('0x4e'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x29')]),router[_0xb6e407('0x3')](_0xb6e407('0x25'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x35')]),router[_0xb6e407('0x3')](_0xb6e407('0x30'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x2f')]),router[_0xb6e407('0x3')](_0xb6e407('0x31'),auth['isAuthenticated'](),controller['faxAccounts']),router[_0xb6e407('0x3')](_0xb6e407('0x1a'),auth[_0xb6e407('0x44')](),controller['chatQueuesWaitingInteractions']),router[_0xb6e407('0x3')]('/mail/queues/waitinginteractions',auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x23')]),router['get'](_0xb6e407('0x39'),auth['isAuthenticated'](),controller[_0xb6e407('0x11')]),router['get'](_0xb6e407('0x3d'),auth[_0xb6e407('0x44')](),controller['openchannelQueuesIdWaitingInteractions']),router['get'](_0xb6e407('0x22'),auth[_0xb6e407('0x44')](),controller['smsQueuesWaitingInteractions']),router[_0xb6e407('0x3')](_0xb6e407('0x12'),auth['isAuthenticated'](),controller[_0xb6e407('0x4b')]),router['get'](_0xb6e407('0x47'),auth['isAuthenticated'](),controller[_0xb6e407('0x38')]),router[_0xb6e407('0x43')](_0xb6e407('0xa'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x2b')](_0xb6e407('0x45'))),router[_0xb6e407('0x3')](_0xb6e407('0xd'),auth['isAuthenticated'](),controller[_0xb6e407('0x9')]),router['post'](_0xb6e407('0x27'),auth[_0xb6e407('0x44')](),controller['queueNotify']('chat')),router['get'](_0xb6e407('0x42'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x18')]),router[_0xb6e407('0x43')](_0xb6e407('0x2d'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x2b')](_0xb6e407('0x2e'))),router['get']('/fax/queues/:id',auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x48')]),router['post'](_0xb6e407('0x0'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x2b')](_0xb6e407('0xe'))),router[_0xb6e407('0x3')](_0xb6e407('0x8'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x1e')]),router[_0xb6e407('0x43')](_0xb6e407('0x21'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x2b')](_0xb6e407('0x41'))),router[_0xb6e407('0x43')](_0xb6e407('0xc'),auth['isAuthenticated'](),controller[_0xb6e407('0x2b')]('whatsapp')),router[_0xb6e407('0x3')](_0xb6e407('0x4f'),auth[_0xb6e407('0x44')](),controller['showSmsQueues']),router[_0xb6e407('0x3')](_0xb6e407('0x32'),auth[_0xb6e407('0x44')](),controller[_0xb6e407('0x14')]),router['post'](_0xb6e407('0x1c'),auth[_0xb6e407('0x44')](),controller['agentNotify']),module[_0xb6e407('0xb')]=router; \ No newline at end of file diff --git a/server/api/rpc/rpc.controller.js b/server/api/rpc/rpc.controller.js index 3a492a4..2b440a7 100644 --- a/server/api/rpc/rpc.controller.js +++ b/server/api/rpc/rpc.controller.js @@ -1 +1 @@ -const a527_0x115b=['voiceChannels','Queue','request','User','showChatQueues','interface','agentNotify','capacity','rows','queue_id','findOrCreate','uniq','YYYY-MM-DD\x20HH:mm:ss','QueueId','findOne','ChatQueues','MemberReport','openchannelQueuesIdWaitingInteractions','body','lodash','VoiceChannelMixMonitor','OpenchannelQueuesWaitingInteractions','VoiceQueues','whatsappQueues','messageId','chat','jayson/promise','WhatsappQueuesWaitingInteractions','chatQueuesWaitingInteractions','create','json','ChatQueuesWaitingInteractions','showWhatsappQueues','Website','Outbound','VoiceQueuesChannel','showSmsQueues','util','SIP/%s','type','filter','capitalize','agentCapacity','user','FaxAccounts','FaxQueues','notIn','queueNotify','queue','findAll','OutboundChannels','Message','Account','interaction','campaigns','Channel\x20field\x20is\x20mandatory','error','VoiceQueuesChannelRedirect','agentTransferTimeout','Start','format','openchannelQueuesWaitingInteractions','Interaction','mailQueues','showFaxQueues','client','length','MailQueues','SmsQueues','merge','outbound','../../mysqldb','status','voiceQueuesChannelRedirect','MailQueuesWaitingInteractions','showOpenchannelQueues','smsQueuesWaitingInteractions','MailAccounts','agents','moment','voiceQueuesPreview','code','voiceQueues','MessageId','showMailQueues','undefined','voiceChannelStopMixMonitor','faxAccounts','Telephones','params','name','catch','api','OpenchannelQueues','faxQueuesWaitingInteractions','InteractionId','trunks','\x20Message\x20not\x20found','From','update','INTERACTION','queueTransferTimeout','Campaigns','\x20Queue\x20not\x20found','WhatsappQueues','mailAccounts','http','indexOf','faxQueues','query','VoiceQueuesChannelHangup','internal','VoiceChannelStopMixMonitor','result','openchannelQueues','VoiceChannels','then','channel','SmsQueuesWaitingInteractions','isNil','agent','voiceQueuesChannel','TransferReport','Agents','voiceQueuesChannels','sequelize','outboundChannels','sendStatus','voiceChannelMixMonitor'];(function(_0x5b879c,_0x115bf4){const _0x55aaef=function(_0x5b3f82){while(--_0x5b3f82){_0x5b879c['push'](_0x5b879c['shift']());}};_0x55aaef(++_0x115bf4);}(a527_0x115b,0x116));const a527_0x55aa=function(_0x5b879c,_0x115bf4){_0x5b879c=_0x5b879c-0x0;let _0x55aaef=a527_0x115b[_0x5b879c];return _0x55aaef;};const _0x5bf72e=a527_0x55aa;'use strict';const moment=require(_0x5bf72e('0x3b')),_=require(_0x5bf72e('0x80')),util=require(_0x5bf72e('0x11')),db=require(_0x5bf72e('0x33'))['db'],{Op}=require(_0x5bf72e('0x69')),logger=require('../../config/logger')(_0x5bf72e('0x48')),jayson=require(_0x5bf72e('0x6')),amiClient=jayson['client'][_0x5bf72e('0x56')]({'port':0x232a}),mailClient=jayson['client'][_0x5bf72e('0x56')]({'port':0x232b}),routingClient=jayson[_0x5bf72e('0x2d')][_0x5bf72e('0x56')]({'port':0x232c});function respondWithRpcPromise(_0x5b3f82,_0x12e23c,_0x403af1){return new Promise(function(_0x416b6b,_0x4db99d){const _0x21d825=a527_0x55aa,_0x4def0f=_0x403af1?_0x403af1:amiClient;return _0x4def0f[_0x21d825('0x6f')](_0x5b3f82,_0x12e23c)[_0x21d825('0x60')](function(_0x507c46){const _0x2d732c=_0x21d825;if(_0x507c46[_0x2d732c('0x24')]){if(_0x507c46[_0x2d732c('0x24')][_0x2d732c('0x3d')]===0x1f4)return _0x4db99d(_0x507c46[_0x2d732c('0x24')]['message']);return _0x416b6b(_0x507c46[_0x2d732c('0x24')]['message']);}else _0x416b6b(_0x507c46[_0x2d732c('0x5d')]);})[_0x21d825('0x47')](function(_0x2660ff){_0x4db99d(_0x2660ff);});});}function respondWithResult(_0x258880,_0x1c34ae){return _0x1c34ae=_0x1c34ae||0xc8,function(_0x423e82){const _0x6b0fb1=a527_0x55aa;if(_0x423e82)return _0x258880[_0x6b0fb1('0x34')](_0x1c34ae)[_0x6b0fb1('0xa')](_0x423e82);return _0x258880[_0x6b0fb1('0x6b')](0x194);};}function handleError(_0x16ebef,_0x520b6d){return _0x520b6d=_0x520b6d||0x1f4,function(_0xeb903a){const _0x66d0a1=a527_0x55aa;logger[_0x66d0a1('0x24')](_0xeb903a['stack']),_0xeb903a[_0x66d0a1('0x46')]&&delete _0xeb903a[_0x66d0a1('0x46')],_0x16ebef[_0x66d0a1('0x34')](_0x520b6d)['send'](_0xeb903a);};}function findById(_0x3b3060){return function(_0x46c7a6){const _0x10836f=a527_0x55aa;if(!_[_0x10836f('0x63')](_0x3b3060)&&!_[_0x10836f('0x63')](_0x46c7a6)&&!_[_0x10836f('0x63')](_0x46c7a6[_0x10836f('0x75')]))return _['find'](_0x46c7a6['rows'],function(_0x132f40){return _0x132f40['id']==_0x3b3060;});return null;};}exports[_0x5bf72e('0x6d')]=function(_0x292d13,_0x25888b){const _0x3b7427=_0x5bf72e;return respondWithRpcPromise(_0x3b7427('0x5f'),_0x292d13[_0x3b7427('0x59')])['then'](respondWithResult(_0x25888b,null))[_0x3b7427('0x47')](handleError(_0x25888b,null));},exports[_0x5bf72e('0x6c')]=function(_0x28f77b,_0x3f79c9){const _0x5545a7=_0x5bf72e;return respondWithRpcPromise(_0x5545a7('0x0'),_[_0x5545a7('0x31')](_0x28f77b['query'],_0x28f77b[_0x5545a7('0x45')]))[_0x5545a7('0x60')](respondWithResult(_0x3f79c9,null))[_0x5545a7('0x47')](handleError(_0x3f79c9,null));},exports[_0x5bf72e('0x42')]=function(_0x1573e9,_0x348d55){const _0x5069bd=_0x5bf72e;return respondWithRpcPromise(_0x5069bd('0x5c'),_[_0x5069bd('0x31')](_0x1573e9[_0x5069bd('0x59')],_0x1573e9['params']))[_0x5069bd('0x60')](respondWithResult(_0x348d55,null))['catch'](handleError(_0x348d55,null));},exports[_0x5bf72e('0x3e')]=function(_0x2e76d8,_0x927add){const _0x2995c1=_0x5bf72e;return respondWithRpcPromise(_0x2995c1('0x2'),_0x2e76d8[_0x2995c1('0x59')])[_0x2995c1('0x60')](respondWithResult(_0x927add,null))['catch'](handleError(_0x927add,null));},exports['showVoiceQueues']=function(_0x22625a,_0x34c3e7){const _0x425500=_0x5bf72e;return respondWithRpcPromise(_0x425500('0x2'),_0x22625a[_0x425500('0x59')])[_0x425500('0x60')](findById(_0x22625a[_0x425500('0x45')]['id']))['then'](respondWithResult(_0x34c3e7,null))[_0x425500('0x47')](handleError(_0x34c3e7,null));},exports[_0x5bf72e('0x3c')]=function(_0x1e8ded,_0x39c4c3){const _0x3b53b8=_0x5bf72e;return respondWithRpcPromise('VoiceQueuesPreview',_['merge'](_0x1e8ded[_0x3b53b8('0x59')],_0x1e8ded[_0x3b53b8('0x45')]))[_0x3b53b8('0x60')](respondWithResult(_0x39c4c3,null))['catch'](handleError(_0x39c4c3,null));},exports[_0x5bf72e('0x68')]=function(_0x1221f3,_0x1d6dba){const _0x3bef3d=_0x5bf72e;return respondWithRpcPromise('VoiceQueuesChannels',_0x1221f3['query'])[_0x3bef3d('0x60')](respondWithResult(_0x1d6dba,null))[_0x3bef3d('0x47')](handleError(_0x1d6dba,null));},exports[_0x5bf72e('0x65')]=function(_0x5672a7,_0xe09bb5){const _0x3cdd93=_0x5bf72e;return respondWithRpcPromise(_0x3cdd93('0xf'),_['merge'](_0x5672a7[_0x3cdd93('0x59')],_0x5672a7[_0x3cdd93('0x45')]))[_0x3cdd93('0x60')](respondWithResult(_0xe09bb5,null))[_0x3cdd93('0x47')](handleError(_0xe09bb5,null));},exports['voiceQueuesChannelHangup']=function(_0x29b36b,_0x3e8ad6){const _0x50ff80=_0x5bf72e;return respondWithRpcPromise(_0x50ff80('0x5a'),_[_0x50ff80('0x31')](_0x29b36b[_0x50ff80('0x59')],_0x29b36b['params']))[_0x50ff80('0x60')](respondWithResult(_0x3e8ad6,null))[_0x50ff80('0x47')](handleError(_0x3e8ad6,null));},exports[_0x5bf72e('0x35')]=function(_0x485117,_0x440f9c){const _0x105210=_0x5bf72e;return respondWithRpcPromise(_0x105210('0x25'),_[_0x105210('0x31')](_0x485117[_0x105210('0x59')],_0x485117[_0x105210('0x45')]))['then'](respondWithResult(_0x440f9c,null))[_0x105210('0x47')](handleError(_0x440f9c,null));},exports[_0x5bf72e('0x32')]=function(_0x142585,_0x2b0cf6){const _0x57ffef=_0x5bf72e;return respondWithRpcPromise(_0x57ffef('0xe'),_0x142585['query'])[_0x57ffef('0x60')](respondWithResult(_0x2b0cf6,null))[_0x57ffef('0x47')](handleError(_0x2b0cf6,null));},exports[_0x5bf72e('0x6a')]=function(_0x51e2c0,_0x368421){const _0x154f58=_0x5bf72e;return respondWithRpcPromise(_0x154f58('0x1e'),_0x51e2c0['query'])[_0x154f58('0x60')](respondWithResult(_0x368421,null))['catch'](handleError(_0x368421,null));},exports[_0x5bf72e('0x3a')]=function(_0x4d1fe6,_0x4c7ab7){const _0x4b36b9=_0x5bf72e;let _0x21167a;return respondWithRpcPromise(_0x4b36b9('0x67'),_0x4d1fe6['query'])['then'](function(_0x141988){const _0xc45aa0=_0x4b36b9;return _0x21167a=_0x141988,respondWithRpcPromise(_0xc45aa0('0x67'),_0x4d1fe6[_0xc45aa0('0x59')],routingClient);})[_0x4b36b9('0x60')](function(_0x31bd84){const _0x2bd3f8=_0x4b36b9;return _[_0x2bd3f8('0x31')]({},_0x31bd84,_0x21167a);})['then'](respondWithResult(_0x4c7ab7,null))[_0x4b36b9('0x47')](handleError(_0x4c7ab7,null));},exports[_0x5bf72e('0x16')]=function(_0x10e035,_0xd3b390){const _0x562b44=_0x5bf72e;if(_0x10e035['body']&&_0x10e035[_0x562b44('0x7f')][_0x562b44('0x21')]&&_0x10e035[_0x562b44('0x17')]&&_0x10e035['user'][_0x562b44('0x46')])for(const _0x2e198e in _0x10e035[_0x562b44('0x7f')][_0x562b44('0x21')]){if(typeof _0x10e035[_0x562b44('0x7f')][_0x562b44('0x21')][_0x2e198e]!==_0x562b44('0x41')){db[_0x562b44('0x7d')][_0x562b44('0x1d')]({'where':{'channel':_0x2e198e,'membername':_0x10e035[_0x562b44('0x17')][_0x562b44('0x46')],'type':_0x562b44('0x50'),'exitAt':null,'uniqueid':_0x10e035[_0x562b44('0x7f')]['interaction'][_0x2e198e]&&_0x10e035[_0x562b44('0x7f')][_0x562b44('0x21')][_0x2e198e][_0x562b44('0x2e')]?{[Op[_0x562b44('0x1a')]]:_0x10e035[_0x562b44('0x7f')]['interaction'][_0x2e198e]}:{[Op['ne']]:null}}})['then'](function(_0x1a8af0){const _0x1a6f80=_0x562b44,_0x23d393=moment()[_0x1a6f80('0x28')](_0x1a6f80('0x79'));for(let _0x373873=0x0,_0x18239f=_0x1a8af0['length'];_0x373873<_0x18239f;_0x373873+=0x1){_0x1a8af0[_0x373873][_0x1a6f80('0x4f')]({'exitAt':_0x23d393});}});for(let _0x1e2d62=0x0;_0x1e2d62<_0x10e035[_0x562b44('0x7f')][_0x562b44('0x21')][_0x2e198e][_0x562b44('0x2e')];_0x1e2d62+=0x1){db[_0x562b44('0x7d')][_0x562b44('0x77')]({'where':{'channel':_0x2e198e,'membername':_0x10e035[_0x562b44('0x17')]['name'],'type':_0x562b44('0x50'),'uniqueid':_0x10e035[_0x562b44('0x7f')][_0x562b44('0x21')][_0x2e198e][_0x1e2d62],'exitAt':null},'defaults':{'channel':_0x2e198e,'membername':_0x10e035[_0x562b44('0x17')][_0x562b44('0x46')],'interface':_['isNil'](_0x10e035[_0x562b44('0x17')][_0x562b44('0x72')])?util[_0x562b44('0x28')](_0x562b44('0x12'),_0x10e035[_0x562b44('0x17')][_0x562b44('0x46')]):_0x10e035['user'][_0x562b44('0x72')],'type':_0x562b44('0x50'),'enterAt':moment()['format'](_0x562b44('0x79')),'role':_0x562b44('0x64'),'internal':_0x10e035[_0x562b44('0x17')][_0x562b44('0x5b')],'uniqueid':_0x10e035[_0x562b44('0x7f')]['interaction'][_0x2e198e][_0x1e2d62]}});}}}return respondWithRpcPromise('AgentCapacity',{'id':_0x10e035[_0x562b44('0x45')]['id'],'capacity':_0x10e035[_0x562b44('0x7f')][_0x562b44('0x74')]},routingClient)[_0x562b44('0x60')](respondWithResult(_0xd3b390,null))[_0x562b44('0x47')](handleError(_0xd3b390,null));},exports['telephones']=function(_0x566797,_0xc1108c){const _0x3aa3b8=_0x5bf72e;return respondWithRpcPromise(_0x3aa3b8('0x44'),_0x566797['query'])[_0x3aa3b8('0x60')](respondWithResult(_0xc1108c,null))['catch'](handleError(_0xc1108c,null));},exports[_0x5bf72e('0x4c')]=function(_0x424c28,_0x588a65){const _0x73b8cb=_0x5bf72e;return respondWithRpcPromise('Trunks',_0x424c28[_0x73b8cb('0x59')])['then'](respondWithResult(_0x588a65,null))[_0x73b8cb('0x47')](handleError(_0x588a65,null));},exports[_0x5bf72e('0x22')]=function(_0x26fbf3,_0xa149ff){const _0x40150f=_0x5bf72e;return respondWithRpcPromise(_0x40150f('0x52'),_0x26fbf3[_0x40150f('0x59')])[_0x40150f('0x60')](respondWithResult(_0xa149ff,null))[_0x40150f('0x47')](handleError(_0xa149ff,null));},exports['chatQueues']=function(_0x182e96,_0x19a7ee){const _0x3a5c33=_0x5bf72e;return respondWithRpcPromise('ChatQueues',_0x182e96[_0x3a5c33('0x59')],routingClient)[_0x3a5c33('0x60')](respondWithResult(_0x19a7ee,null))['catch'](handleError(_0x19a7ee,null));},exports[_0x5bf72e('0x71')]=function(_0x47ac51,_0x189f53){const _0xede1e4=_0x5bf72e;return respondWithRpcPromise(_0xede1e4('0x7c'),_0x47ac51['query'],routingClient)[_0xede1e4('0x60')](findById(_0x47ac51[_0xede1e4('0x45')]['id']))[_0xede1e4('0x60')](respondWithResult(_0x189f53,null))['catch'](handleError(_0x189f53,null));},exports[_0x5bf72e('0x2b')]=function(_0x9fbd7c,_0x5dad9b){const _0x926165=_0x5bf72e;return respondWithRpcPromise(_0x926165('0x2f'),_0x9fbd7c[_0x926165('0x59')],routingClient)[_0x926165('0x60')](respondWithResult(_0x5dad9b,null))[_0x926165('0x47')](handleError(_0x5dad9b,null));},exports[_0x5bf72e('0x40')]=function(_0x293538,_0x10c2ac){const _0x1585a0=_0x5bf72e;return respondWithRpcPromise(_0x1585a0('0x2f'),_0x293538[_0x1585a0('0x59')],routingClient)[_0x1585a0('0x60')](findById(_0x293538[_0x1585a0('0x45')]['id']))[_0x1585a0('0x60')](respondWithResult(_0x10c2ac,null))[_0x1585a0('0x47')](handleError(_0x10c2ac,null));},exports[_0x5bf72e('0x55')]=function(_0x570267,_0xb85f7f){const _0xfab017=_0x5bf72e;return respondWithRpcPromise(_0xfab017('0x39'),_0x570267[_0xfab017('0x59')],mailClient)[_0xfab017('0x60')](respondWithResult(_0xb85f7f,null))[_0xfab017('0x47')](handleError(_0xb85f7f,null));},exports[_0x5bf72e('0x5e')]=function(_0x74a52a,_0x3bbf61){const _0x2728f5=_0x5bf72e;return respondWithRpcPromise(_0x2728f5('0x49'),_0x74a52a[_0x2728f5('0x59')],routingClient)[_0x2728f5('0x60')](respondWithResult(_0x3bbf61,null))['catch'](handleError(_0x3bbf61,null));},exports[_0x5bf72e('0x37')]=function(_0x5cdbbd,_0x5a157f){const _0x39cd49=_0x5bf72e;return respondWithRpcPromise(_0x39cd49('0x49'),_0x5cdbbd[_0x39cd49('0x59')],routingClient)[_0x39cd49('0x60')](findById(_0x5cdbbd['params']['id']))[_0x39cd49('0x60')](respondWithResult(_0x5a157f,null))[_0x39cd49('0x47')](handleError(_0x5a157f,null));},exports['smsQueues']=function(_0x69d9a3,_0x49145b){const _0x20340a=_0x5bf72e;return respondWithRpcPromise(_0x20340a('0x30'),_0x69d9a3[_0x20340a('0x59')],routingClient)[_0x20340a('0x60')](respondWithResult(_0x49145b,null))['catch'](handleError(_0x49145b,null));},exports[_0x5bf72e('0x10')]=function(_0x5a366c,_0x465cdb){const _0x6c2367=_0x5bf72e;return respondWithRpcPromise(_0x6c2367('0x30'),_0x5a366c[_0x6c2367('0x59')],routingClient)[_0x6c2367('0x60')](findById(_0x5a366c['params']['id']))[_0x6c2367('0x60')](respondWithResult(_0x465cdb,null))[_0x6c2367('0x47')](handleError(_0x465cdb,null));},exports[_0x5bf72e('0x3')]=function(_0x311e57,_0x40115d){const _0x35e41d=_0x5bf72e;return respondWithRpcPromise(_0x35e41d('0x54'),_0x311e57['query'],routingClient)[_0x35e41d('0x60')](respondWithResult(_0x40115d,null))['catch'](handleError(_0x40115d,null));},exports[_0x5bf72e('0xc')]=function(_0x133beb,_0xe208c9){const _0x8dc064=_0x5bf72e;return respondWithRpcPromise(_0x8dc064('0x54'),_0x133beb[_0x8dc064('0x59')],routingClient)[_0x8dc064('0x60')](findById(_0x133beb[_0x8dc064('0x45')]['id']))[_0x8dc064('0x60')](respondWithResult(_0xe208c9,null))[_0x8dc064('0x47')](handleError(_0xe208c9,null));},exports[_0x5bf72e('0x58')]=function(_0x29bc29,_0x2b7694){const _0x195d4d=_0x5bf72e;return respondWithRpcPromise(_0x195d4d('0x19'),_0x29bc29[_0x195d4d('0x59')],routingClient)['then'](respondWithResult(_0x2b7694,null))[_0x195d4d('0x47')](handleError(_0x2b7694,null));},exports[_0x5bf72e('0x2c')]=function(_0x198c8a,_0x3d2f75){const _0x431c56=_0x5bf72e;return respondWithRpcPromise(_0x431c56('0x19'),_0x198c8a[_0x431c56('0x59')],routingClient)[_0x431c56('0x60')](findById(_0x198c8a[_0x431c56('0x45')]['id']))[_0x431c56('0x60')](respondWithResult(_0x3d2f75,null))[_0x431c56('0x47')](handleError(_0x3d2f75,null));},exports[_0x5bf72e('0x43')]=function(_0x14910e,_0x3e1cf){const _0x11357f=_0x5bf72e;return respondWithRpcPromise(_0x11357f('0x18'),_0x14910e[_0x11357f('0x59')])['then'](respondWithResult(_0x3e1cf,null))[_0x11357f('0x47')](handleError(_0x3e1cf,null));},exports[_0x5bf72e('0x8')]=function(_0x41dc42,_0x5ef294){const _0x3e3573=_0x5bf72e;return respondWithRpcPromise(_0x3e3573('0xb'),_0x41dc42['query'],routingClient)['then'](respondWithResult(_0x5ef294,null))[_0x3e3573('0x47')](handleError(_0x5ef294,null));},exports['mailQueuesWaitingInteractions']=function(_0x2bba2f,_0x5d9865){const _0x3533c9=_0x5bf72e;return respondWithRpcPromise(_0x3533c9('0x36'),_0x2bba2f[_0x3533c9('0x59')],routingClient)['then'](respondWithResult(_0x5d9865,null))['catch'](handleError(_0x5d9865,null));},exports[_0x5bf72e('0x29')]=function(_0x11aa0b,_0x42c94){const _0x2992c7=_0x5bf72e;return respondWithRpcPromise('OpenchannelQueuesWaitingInteractions',_0x11aa0b[_0x2992c7('0x59')],routingClient)[_0x2992c7('0x60')](respondWithResult(_0x42c94,null))[_0x2992c7('0x47')](handleError(_0x42c94,null));},exports[_0x5bf72e('0x7e')]=function(_0x5174ba,_0x475f64){const _0x58eae6=_0x5bf72e;return respondWithRpcPromise(_0x58eae6('0x1'),_0x5174ba['query'],routingClient)['then'](function(_0x56b053){const _0x3b3ad2=_0x58eae6;if(_0x5174ba[_0x3b3ad2('0x59')][_0x3b3ad2('0x13')]!==undefined){const _0x2df259=_(_0x56b053[_0x3b3ad2('0x75')])[_0x3b3ad2('0x14')]([_0x5174ba['query'][_0x3b3ad2('0x13')],_0x5174ba[_0x3b3ad2('0x45')]['id']])['map']('queue_id')[_0x3b3ad2('0x78')]()['value']();return _0x56b053[_0x3b3ad2('0x75')][_0x3b3ad2('0x14')](function(_0x331439){const _0x4917c8=_0x3b3ad2;return _0x2df259[_0x4917c8('0x57')](_0x331439[_0x4917c8('0x76')])>-0x1;});}else return _0x56b053[_0x3b3ad2('0x75')][_0x3b3ad2('0x14')](function(_0x491da1){const _0x366eae=_0x3b3ad2;return _0x491da1[_0x366eae('0x76')]===parseInt(_0x5174ba[_0x366eae('0x45')]['id']);});})[_0x58eae6('0x60')](respondWithResult(_0x475f64,null))['catch'](handleError(_0x475f64,null));},exports[_0x5bf72e('0x38')]=function(_0x28b1e2,_0x2ff6e9){const _0x4a9ee8=_0x5bf72e;return respondWithRpcPromise(_0x4a9ee8('0x62'),_0x28b1e2['query'],routingClient)[_0x4a9ee8('0x60')](respondWithResult(_0x2ff6e9,null))['catch'](handleError(_0x2ff6e9,null));},exports['whatsappQueuesWaitingInteractions']=function(_0x11fc53,_0x38478d){const _0x295b51=_0x5bf72e;return respondWithRpcPromise(_0x295b51('0x7'),_0x11fc53[_0x295b51('0x59')],routingClient)[_0x295b51('0x60')](respondWithResult(_0x38478d,null))[_0x295b51('0x47')](handleError(_0x38478d,null));},exports[_0x5bf72e('0x4a')]=function(_0x453a03,_0x2e4c58){const _0x7e855f=_0x5bf72e;return respondWithRpcPromise('FaxQueuesWaitingInteractions',_0x453a03['query'],routingClient)[_0x7e855f('0x60')](respondWithResult(_0x2e4c58,null))[_0x7e855f('0x47')](handleError(_0x2e4c58,null));},exports[_0x5bf72e('0x1b')]=function(_0x3ac740){return function(_0x428120,_0x366d81){const _0x2fa373=a527_0x55aa;let _0x3bd233,_0x4f96d5;const _0x4a9148=_[_0x2fa373('0x15')](_0x3ac740),_0x1d91a1=_0x3ac740===_0x2fa373('0x5')?_0x2fa373('0xd'):'Account';return db[_0x4a9148+_0x2fa373('0x6e')]['findOne']({'raw':!![],'where':{'id':_0x428120[_0x2fa373('0x45')]['id']}})['then'](function(_0x2dc186){const _0x94c3f1=_0x2fa373;if(_[_0x94c3f1('0x63')](_0x2dc186))throw new Error(_0x4a9148+_0x94c3f1('0x53'));return _0x3bd233=_0x2dc186,db[_0x4a9148+'Message']['findOne']({'where':{'id':_0x428120[_0x94c3f1('0x7f')][_0x94c3f1('0x4')]},'include':[{'model':db[_0x4a9148+_0x94c3f1('0x2a')],'as':_0x94c3f1('0x2a')},{'model':db[_0x4a9148+_0x1d91a1],'as':_0x94c3f1('0x20')}]});})[_0x2fa373('0x60')](function(_0x5ac976){const _0x47c542=_0x2fa373;if(_[_0x47c542('0x63')](_0x5ac976))throw new Error(_0x4a9148+_0x47c542('0x4d'));return _0x4f96d5=_0x5ac976,_0x5ac976[_0x47c542('0x4f')]({'read':0x0,'readAt':null,'UserId':null});})[_0x2fa373('0x60')](function(){const _0x5caa6e=_0x2fa373,_0x276f08={'uniqueid':_0x3ac740+'.'+_0x4f96d5['id']+'.'+_0x4f96d5['Interaction']['id'],'FromUserId':_0x428120[_0x5caa6e('0x17')]['id'],'type':_0x5caa6e('0x1c')};return _0x276f08[_0x4a9148+'MessageId']=_0x4f96d5['id'],_0x276f08[_0x4a9148+_0x5caa6e('0x4b')]=_0x4f96d5[_0x5caa6e('0x2a')]['id'],_0x276f08[_0x5caa6e('0x4e')+_0x4a9148+_0x1d91a1+'Id']=_0x4f96d5['Account']['id'],_0x276f08['To'+_0x4a9148+_0x5caa6e('0x7a')]=_0x3bd233['id'],db[_0x4a9148+'TransferReport'][_0x5caa6e('0x9')](_0x276f08);})[_0x2fa373('0x60')](function(){const _0x4241f0=_0x2fa373;return respondWithRpcPromise('Start',{'channel':_0x3ac740,'interaction':_0x4f96d5[_0x4241f0('0x2a')],'message':_0x4f96d5,'account':_0x4f96d5[_0x4241f0('0x20')],'applications':[{'id':0x0,'priority':0x1,'app':_0x4241f0('0x1c'),'appdata':_0x3bd233[_0x4241f0('0x46')]+','+(_0x4f96d5['Account'][_0x4241f0('0x51')]||0x12c),'interval':'*,*,*,*'}]},routingClient);})['then'](respondWithResult(_0x366d81,null))[_0x2fa373('0x47')](handleError(_0x366d81,null));};},exports[_0x5bf72e('0x73')]=function(_0xc66f70,_0x488038){const _0xb4bee2=_0x5bf72e;let _0x1104db,_0x2135c1;if(_[_0xb4bee2('0x63')](_0xc66f70[_0xb4bee2('0x7f')][_0xb4bee2('0x61')]))throw new Error(_0xb4bee2('0x23'));const _0x822bf9=_0xc66f70[_0xb4bee2('0x7f')][_0xb4bee2('0x61')],_0x6281dd=_[_0xb4bee2('0x15')](_0x822bf9),_0xf2f289=_0x822bf9===_0xb4bee2('0x5')?_0xb4bee2('0xd'):_0xb4bee2('0x20');return db[_0xb4bee2('0x70')][_0xb4bee2('0x7b')]({'raw':!![],'where':{'id':_0xc66f70[_0xb4bee2('0x45')]['id'],'role':'agent'}})[_0xb4bee2('0x60')](function(_0x1defe5){const _0x55e94d=_0xb4bee2;if(_[_0x55e94d('0x63')](_0x1defe5))throw new Error('Agent\x20not\x20found');return _0x1104db=_0x1defe5,db[_0x6281dd+_0x55e94d('0x1f')]['findOne']({'where':{'id':_0xc66f70[_0x55e94d('0x7f')][_0x55e94d('0x4')]},'include':[{'model':db[_0x6281dd+_0x55e94d('0x2a')],'as':_0x55e94d('0x2a')},{'model':db[_0x6281dd+_0xf2f289],'as':_0x55e94d('0x20')}]});})['then'](function(_0x2e48b0){const _0x5c2189=_0xb4bee2;if(_[_0x5c2189('0x63')](_0x2e48b0))throw new Error(_0x6281dd+_0x5c2189('0x4d'));return _0x2135c1=_0x2e48b0,_0x2e48b0[_0x5c2189('0x4f')]({'read':0x0,'readAt':null,'UserId':null});})[_0xb4bee2('0x60')](function(){const _0x43c530=_0xb4bee2,_0x16b00f={'uniqueid':_0x822bf9+'.'+_0x2135c1['id']+'.'+_0x2135c1['Interaction']['id'],'FromUserId':_0xc66f70['user']['id'],'type':_0x43c530('0x1c'),'ToUserId':_0x1104db['id']};return _0x16b00f[_0x6281dd+_0x43c530('0x3f')]=_0x2135c1['id'],_0x16b00f[_0x6281dd+'InteractionId']=_0x2135c1[_0x43c530('0x2a')]['id'],_0x16b00f[_0x43c530('0x4e')+_0x6281dd+_0xf2f289+'Id']=_0x2135c1['Account']['id'],db[_0x6281dd+_0x43c530('0x66')][_0x43c530('0x9')](_0x16b00f);})[_0xb4bee2('0x60')](function(){const _0x5e927a=_0xb4bee2;return respondWithRpcPromise(_0x5e927a('0x27'),{'channel':_0x822bf9,'interaction':_0x2135c1[_0x5e927a('0x2a')],'message':_0x2135c1,'account':_0x2135c1[_0x5e927a('0x20')],'applications':[{'id':0x0,'priority':0x1,'app':_0x5e927a('0x64'),'appdata':_0x1104db[_0x5e927a('0x46')]+','+(_0x2135c1[_0x5e927a('0x20')][_0x5e927a('0x26')]||0x12c),'interval':'*,*,*,*'}]},routingClient);})[_0xb4bee2('0x60')](respondWithResult(_0x488038,null))[_0xb4bee2('0x47')](handleError(_0x488038,null));}; \ No newline at end of file +const a527_0x2ff5=['showVoiceQueues','voiceQueuesChannelRedirect','merge','openchannelQueues','showOpenchannelQueues','showFaxQueues','ChatQueues','Channel\x20field\x20is\x20mandatory','InteractionId','moment','chatQueuesWaitingInteractions','MailQueues','*,*,*,*','findOne','outboundChannels','messageId','Account','OpenchannelQueuesWaitingInteractions','voiceQueuesChannel','Interaction','trunks','VoiceChannelMixMonitor','findAll','error','api','voiceQueues','interface','isNil','MailQueuesWaitingInteractions','lodash','voiceQueuesChannelHangup','MailAccounts','From','Outbound','catch','AgentCapacity','../../mysqldb','Trunks','VoiceQueues','channel','QueueId','format','openchannelQueuesIdWaitingInteractions','json','code','then','filter','MessageId','agent','voiceQueuesChannels','capitalize','create','INTERACTION','send','SmsQueues','Message','SmsQueuesWaitingInteractions','queueNotify','faxQueuesWaitingInteractions','VoiceQueuesChannels','mailAccounts','outbound','Website','VoiceQueuesChannelRedirect','\x20Message\x20not\x20found','params','YYYY-MM-DD\x20HH:mm:ss','notIn','FaxQueues','VoiceChannelStopMixMonitor','whatsappQueues','chat','mailQueues','http','TransferReport','voiceChannelMixMonitor','faxAccounts','smsQueuesWaitingInteractions','capacity','find','SIP/%s','query','queue_id','agentCapacity','queue','showSmsQueues','Campaigns','body','WhatsappQueuesWaitingInteractions','undefined','VoiceChannels','smsQueues','rows','voiceChannelStopMixMonitor','message','Agents','MemberReport','type','agentNotify','openchannelQueuesWaitingInteractions','status','stack','value','agentTransferTimeout','length','interaction','OutboundChannels','update','client','VoiceQueuesChannel','user','OpenchannelQueues','queueTransferTimeout','../../config/logger','Start','request','WhatsappQueues','VoiceQueuesPreview','name','voiceChannels','result','jayson/promise'];(function(_0xd60c15,_0x2ff563){const _0x19bd56=function(_0x31eecd){while(--_0x31eecd){_0xd60c15['push'](_0xd60c15['shift']());}};_0x19bd56(++_0x2ff563);}(a527_0x2ff5,0xe2));const a527_0x19bd=function(_0xd60c15,_0x2ff563){_0xd60c15=_0xd60c15-0x0;let _0x19bd56=a527_0x2ff5[_0xd60c15];return _0x19bd56;};const _0x1fe0ae=a527_0x19bd;'use strict';const moment=require(_0x1fe0ae('0x1b')),_=require(_0x1fe0ae('0x2f')),util=require('util'),db=require(_0x1fe0ae('0x36'))['db'],{Op}=require('sequelize'),logger=require(_0x1fe0ae('0x9'))(_0x1fe0ae('0x2a')),jayson=require(_0x1fe0ae('0x11')),amiClient=jayson[_0x1fe0ae('0x4')][_0x1fe0ae('0x5b')]({'port':0x232a}),mailClient=jayson[_0x1fe0ae('0x4')][_0x1fe0ae('0x5b')]({'port':0x232b}),routingClient=jayson[_0x1fe0ae('0x4')][_0x1fe0ae('0x5b')]({'port':0x232c});function respondWithRpcPromise(_0x31eecd,_0x372f0b,_0x3165d0){return new Promise(function(_0x4eee48,_0x1c92e0){const _0x1e2f65=a527_0x19bd,_0xabb953=_0x3165d0?_0x3165d0:amiClient;return _0xabb953[_0x1e2f65('0xb')](_0x31eecd,_0x372f0b)[_0x1e2f65('0x3f')](function(_0x347c75){const _0x2bf14b=_0x1e2f65;if(_0x347c75[_0x2bf14b('0x29')]){if(_0x347c75[_0x2bf14b('0x29')][_0x2bf14b('0x3e')]===0x1f4)return _0x1c92e0(_0x347c75[_0x2bf14b('0x29')][_0x2bf14b('0x70')]);return _0x4eee48(_0x347c75['error'][_0x2bf14b('0x70')]);}else _0x4eee48(_0x347c75[_0x2bf14b('0x10')]);})['catch'](function(_0x3dd190){_0x1c92e0(_0x3dd190);});});}function respondWithResult(_0x37660c,_0x334499){return _0x334499=_0x334499||0xc8,function(_0x2b012f){const _0x3bc042=a527_0x19bd;if(_0x2b012f)return _0x37660c[_0x3bc042('0x76')](_0x334499)[_0x3bc042('0x3d')](_0x2b012f);return _0x37660c['sendStatus'](0x194);};}function handleError(_0x1dcca6,_0xbab082){return _0xbab082=_0xbab082||0x1f4,function(_0x1ce9af){const _0x4aeeea=a527_0x19bd;logger['error'](_0x1ce9af[_0x4aeeea('0x77')]),_0x1ce9af[_0x4aeeea('0xe')]&&delete _0x1ce9af['name'],_0x1dcca6[_0x4aeeea('0x76')](_0xbab082)[_0x4aeeea('0x47')](_0x1ce9af);};}function findById(_0x28181f){return function(_0x2d355c){const _0x1b5ae6=a527_0x19bd;if(!_[_0x1b5ae6('0x2d')](_0x28181f)&&!_[_0x1b5ae6('0x2d')](_0x2d355c)&&!_['isNil'](_0x2d355c[_0x1b5ae6('0x6e')]))return _[_0x1b5ae6('0x61')](_0x2d355c[_0x1b5ae6('0x6e')],function(_0x36d39a){return _0x36d39a['id']==_0x28181f;});return null;};}exports[_0x1fe0ae('0xf')]=function(_0x3d28e9,_0x563916){const _0x1ed5a6=_0x1fe0ae;return respondWithRpcPromise(_0x1ed5a6('0x6c'),_0x3d28e9[_0x1ed5a6('0x63')])[_0x1ed5a6('0x3f')](respondWithResult(_0x563916,null))[_0x1ed5a6('0x34')](handleError(_0x563916,null));},exports[_0x1fe0ae('0x5d')]=function(_0x132acf,_0x2c98fd){const _0x3bb657=_0x1fe0ae;return respondWithRpcPromise(_0x3bb657('0x27'),_[_0x3bb657('0x14')](_0x132acf[_0x3bb657('0x63')],_0x132acf[_0x3bb657('0x53')]))['then'](respondWithResult(_0x2c98fd,null))[_0x3bb657('0x34')](handleError(_0x2c98fd,null));},exports[_0x1fe0ae('0x6f')]=function(_0x5aef66,_0x3ab761){const _0x181d82=_0x1fe0ae;return respondWithRpcPromise(_0x181d82('0x57'),_[_0x181d82('0x14')](_0x5aef66['query'],_0x5aef66[_0x181d82('0x53')]))['then'](respondWithResult(_0x3ab761,null))[_0x181d82('0x34')](handleError(_0x3ab761,null));},exports[_0x1fe0ae('0x2b')]=function(_0x28bf5b,_0x33cc16){const _0x3b1b65=_0x1fe0ae;return respondWithRpcPromise('VoiceQueues',_0x28bf5b[_0x3b1b65('0x63')])['then'](respondWithResult(_0x33cc16,null))['catch'](handleError(_0x33cc16,null));},exports[_0x1fe0ae('0x12')]=function(_0x4c1f71,_0x1176c5){const _0xa1a79d=_0x1fe0ae;return respondWithRpcPromise(_0xa1a79d('0x38'),_0x4c1f71[_0xa1a79d('0x63')])[_0xa1a79d('0x3f')](findById(_0x4c1f71[_0xa1a79d('0x53')]['id']))[_0xa1a79d('0x3f')](respondWithResult(_0x1176c5,null))[_0xa1a79d('0x34')](handleError(_0x1176c5,null));},exports['voiceQueuesPreview']=function(_0x582936,_0xe6fe09){const _0x3b4555=_0x1fe0ae;return respondWithRpcPromise(_0x3b4555('0xd'),_[_0x3b4555('0x14')](_0x582936[_0x3b4555('0x63')],_0x582936['params']))[_0x3b4555('0x3f')](respondWithResult(_0xe6fe09,null))['catch'](handleError(_0xe6fe09,null));},exports[_0x1fe0ae('0x43')]=function(_0x3cffc2,_0x566b7c){const _0x5c7deb=_0x1fe0ae;return respondWithRpcPromise(_0x5c7deb('0x4d'),_0x3cffc2[_0x5c7deb('0x63')])[_0x5c7deb('0x3f')](respondWithResult(_0x566b7c,null))['catch'](handleError(_0x566b7c,null));},exports[_0x1fe0ae('0x24')]=function(_0x23ed8a,_0x571c74){const _0x3ce8ac=_0x1fe0ae;return respondWithRpcPromise(_0x3ce8ac('0x5'),_['merge'](_0x23ed8a[_0x3ce8ac('0x63')],_0x23ed8a[_0x3ce8ac('0x53')]))[_0x3ce8ac('0x3f')](respondWithResult(_0x571c74,null))['catch'](handleError(_0x571c74,null));},exports[_0x1fe0ae('0x30')]=function(_0x1530c2,_0x9a263c){const _0x48bca1=_0x1fe0ae;return respondWithRpcPromise('VoiceQueuesChannelHangup',_[_0x48bca1('0x14')](_0x1530c2[_0x48bca1('0x63')],_0x1530c2[_0x48bca1('0x53')]))[_0x48bca1('0x3f')](respondWithResult(_0x9a263c,null))[_0x48bca1('0x34')](handleError(_0x9a263c,null));},exports[_0x1fe0ae('0x13')]=function(_0xf44ef5,_0xde9a94){const _0x45da73=_0x1fe0ae;return respondWithRpcPromise(_0x45da73('0x51'),_[_0x45da73('0x14')](_0xf44ef5['query'],_0xf44ef5['params']))[_0x45da73('0x3f')](respondWithResult(_0xde9a94,null))[_0x45da73('0x34')](handleError(_0xde9a94,null));},exports[_0x1fe0ae('0x4f')]=function(_0x3683c0,_0x2627e7){const _0x230582=_0x1fe0ae;return respondWithRpcPromise(_0x230582('0x33'),_0x3683c0['query'])['then'](respondWithResult(_0x2627e7,null))[_0x230582('0x34')](handleError(_0x2627e7,null));},exports[_0x1fe0ae('0x20')]=function(_0x19dd37,_0x203b8e){const _0x29a7c5=_0x1fe0ae;return respondWithRpcPromise(_0x29a7c5('0x2'),_0x19dd37[_0x29a7c5('0x63')])[_0x29a7c5('0x3f')](respondWithResult(_0x203b8e,null))[_0x29a7c5('0x34')](handleError(_0x203b8e,null));},exports['agents']=function(_0x51baf9,_0x80d2cc){const _0x58f781=_0x1fe0ae;let _0x744b34;return respondWithRpcPromise(_0x58f781('0x71'),_0x51baf9[_0x58f781('0x63')])[_0x58f781('0x3f')](function(_0x322a0d){const _0x20a0b8=_0x58f781;return _0x744b34=_0x322a0d,respondWithRpcPromise(_0x20a0b8('0x71'),_0x51baf9['query'],routingClient);})['then'](function(_0x2055aa){const _0x254388=_0x58f781;return _[_0x254388('0x14')]({},_0x2055aa,_0x744b34);})[_0x58f781('0x3f')](respondWithResult(_0x80d2cc,null))[_0x58f781('0x34')](handleError(_0x80d2cc,null));},exports[_0x1fe0ae('0x65')]=function(_0x16bc04,_0x50e4f8){const _0x40346a=_0x1fe0ae;if(_0x16bc04[_0x40346a('0x69')]&&_0x16bc04[_0x40346a('0x69')]['interaction']&&_0x16bc04[_0x40346a('0x6')]&&_0x16bc04['user']['name'])for(const _0x39af62 in _0x16bc04['body'][_0x40346a('0x1')]){if(typeof _0x16bc04['body'][_0x40346a('0x1')][_0x39af62]!==_0x40346a('0x6b')){db['MemberReport'][_0x40346a('0x28')]({'where':{'channel':_0x39af62,'membername':_0x16bc04[_0x40346a('0x6')][_0x40346a('0xe')],'type':_0x40346a('0x46'),'exitAt':null,'uniqueid':_0x16bc04['body'][_0x40346a('0x1')][_0x39af62]&&_0x16bc04[_0x40346a('0x69')]['interaction'][_0x39af62][_0x40346a('0x0')]?{[Op[_0x40346a('0x55')]]:_0x16bc04[_0x40346a('0x69')]['interaction'][_0x39af62]}:{[Op['ne']]:null}}})['then'](function(_0x321892){const _0xa8ac09=_0x40346a,_0x371fee=moment()[_0xa8ac09('0x3b')](_0xa8ac09('0x54'));for(let _0x1bbe40=0x0,_0x57e6f4=_0x321892[_0xa8ac09('0x0')];_0x1bbe40<_0x57e6f4;_0x1bbe40+=0x1){_0x321892[_0x1bbe40]['update']({'exitAt':_0x371fee});}});for(let _0x187bc5=0x0;_0x187bc5<_0x16bc04[_0x40346a('0x69')]['interaction'][_0x39af62][_0x40346a('0x0')];_0x187bc5+=0x1){db[_0x40346a('0x72')]['findOrCreate']({'where':{'channel':_0x39af62,'membername':_0x16bc04[_0x40346a('0x6')][_0x40346a('0xe')],'type':_0x40346a('0x46'),'uniqueid':_0x16bc04[_0x40346a('0x69')]['interaction'][_0x39af62][_0x187bc5],'exitAt':null},'defaults':{'channel':_0x39af62,'membername':_0x16bc04[_0x40346a('0x6')][_0x40346a('0xe')],'interface':_['isNil'](_0x16bc04[_0x40346a('0x6')][_0x40346a('0x2c')])?util['format'](_0x40346a('0x62'),_0x16bc04['user'][_0x40346a('0xe')]):_0x16bc04['user'][_0x40346a('0x2c')],'type':_0x40346a('0x46'),'enterAt':moment()[_0x40346a('0x3b')]('YYYY-MM-DD\x20HH:mm:ss'),'role':'agent','internal':_0x16bc04[_0x40346a('0x6')]['internal'],'uniqueid':_0x16bc04[_0x40346a('0x69')][_0x40346a('0x1')][_0x39af62][_0x187bc5]}});}}}return respondWithRpcPromise(_0x40346a('0x35'),{'id':_0x16bc04['params']['id'],'capacity':_0x16bc04['body'][_0x40346a('0x60')]},routingClient)[_0x40346a('0x3f')](respondWithResult(_0x50e4f8,null))[_0x40346a('0x34')](handleError(_0x50e4f8,null));},exports['telephones']=function(_0x44d97b,_0x5d836a){const _0x3f25cf=_0x1fe0ae;return respondWithRpcPromise('Telephones',_0x44d97b[_0x3f25cf('0x63')])[_0x3f25cf('0x3f')](respondWithResult(_0x5d836a,null))['catch'](handleError(_0x5d836a,null));},exports[_0x1fe0ae('0x26')]=function(_0x4f6ce1,_0x2193c6){const _0x5a11e6=_0x1fe0ae;return respondWithRpcPromise(_0x5a11e6('0x37'),_0x4f6ce1[_0x5a11e6('0x63')])[_0x5a11e6('0x3f')](respondWithResult(_0x2193c6,null))[_0x5a11e6('0x34')](handleError(_0x2193c6,null));},exports['campaigns']=function(_0x343571,_0x3e4b63){const _0x296661=_0x1fe0ae;return respondWithRpcPromise(_0x296661('0x68'),_0x343571[_0x296661('0x63')])['then'](respondWithResult(_0x3e4b63,null))[_0x296661('0x34')](handleError(_0x3e4b63,null));},exports['chatQueues']=function(_0x522af8,_0x57c1b2){const _0xff2fc0=_0x1fe0ae;return respondWithRpcPromise(_0xff2fc0('0x18'),_0x522af8['query'],routingClient)[_0xff2fc0('0x3f')](respondWithResult(_0x57c1b2,null))[_0xff2fc0('0x34')](handleError(_0x57c1b2,null));},exports['showChatQueues']=function(_0x24b2c4,_0x2ae39b){const _0x4a0ad1=_0x1fe0ae;return respondWithRpcPromise(_0x4a0ad1('0x18'),_0x24b2c4[_0x4a0ad1('0x63')],routingClient)[_0x4a0ad1('0x3f')](findById(_0x24b2c4[_0x4a0ad1('0x53')]['id']))[_0x4a0ad1('0x3f')](respondWithResult(_0x2ae39b,null))[_0x4a0ad1('0x34')](handleError(_0x2ae39b,null));},exports[_0x1fe0ae('0x5a')]=function(_0x2a4bed,_0x2e2b0c){const _0x29237c=_0x1fe0ae;return respondWithRpcPromise(_0x29237c('0x1d'),_0x2a4bed['query'],routingClient)['then'](respondWithResult(_0x2e2b0c,null))[_0x29237c('0x34')](handleError(_0x2e2b0c,null));},exports['showMailQueues']=function(_0x3defda,_0x5ccfe1){const _0x475d06=_0x1fe0ae;return respondWithRpcPromise(_0x475d06('0x1d'),_0x3defda[_0x475d06('0x63')],routingClient)[_0x475d06('0x3f')](findById(_0x3defda[_0x475d06('0x53')]['id']))[_0x475d06('0x3f')](respondWithResult(_0x5ccfe1,null))[_0x475d06('0x34')](handleError(_0x5ccfe1,null));},exports[_0x1fe0ae('0x4e')]=function(_0x5aeb54,_0x50e708){const _0x469bd3=_0x1fe0ae;return respondWithRpcPromise(_0x469bd3('0x31'),_0x5aeb54[_0x469bd3('0x63')],mailClient)['then'](respondWithResult(_0x50e708,null))[_0x469bd3('0x34')](handleError(_0x50e708,null));},exports[_0x1fe0ae('0x15')]=function(_0x3404f4,_0x468bca){const _0x2255ac=_0x1fe0ae;return respondWithRpcPromise(_0x2255ac('0x7'),_0x3404f4[_0x2255ac('0x63')],routingClient)[_0x2255ac('0x3f')](respondWithResult(_0x468bca,null))['catch'](handleError(_0x468bca,null));},exports[_0x1fe0ae('0x16')]=function(_0x383ba2,_0x3815b3){const _0x2a631=_0x1fe0ae;return respondWithRpcPromise('OpenchannelQueues',_0x383ba2[_0x2a631('0x63')],routingClient)[_0x2a631('0x3f')](findById(_0x383ba2[_0x2a631('0x53')]['id']))['then'](respondWithResult(_0x3815b3,null))['catch'](handleError(_0x3815b3,null));},exports[_0x1fe0ae('0x6d')]=function(_0x29ce1f,_0x34358c){const _0x392b19=_0x1fe0ae;return respondWithRpcPromise(_0x392b19('0x48'),_0x29ce1f[_0x392b19('0x63')],routingClient)[_0x392b19('0x3f')](respondWithResult(_0x34358c,null))[_0x392b19('0x34')](handleError(_0x34358c,null));},exports[_0x1fe0ae('0x67')]=function(_0x230e43,_0x25b7ab){const _0x17830a=_0x1fe0ae;return respondWithRpcPromise(_0x17830a('0x48'),_0x230e43[_0x17830a('0x63')],routingClient)[_0x17830a('0x3f')](findById(_0x230e43['params']['id']))['then'](respondWithResult(_0x25b7ab,null))[_0x17830a('0x34')](handleError(_0x25b7ab,null));},exports[_0x1fe0ae('0x58')]=function(_0x1339d2,_0x592e6d){const _0x36194a=_0x1fe0ae;return respondWithRpcPromise(_0x36194a('0xc'),_0x1339d2[_0x36194a('0x63')],routingClient)['then'](respondWithResult(_0x592e6d,null))[_0x36194a('0x34')](handleError(_0x592e6d,null));},exports['showWhatsappQueues']=function(_0x563bc6,_0x1b4274){const _0x2e4537=_0x1fe0ae;return respondWithRpcPromise(_0x2e4537('0xc'),_0x563bc6[_0x2e4537('0x63')],routingClient)[_0x2e4537('0x3f')](findById(_0x563bc6[_0x2e4537('0x53')]['id']))[_0x2e4537('0x3f')](respondWithResult(_0x1b4274,null))['catch'](handleError(_0x1b4274,null));},exports['faxQueues']=function(_0x583958,_0x264675){const _0x3d49c6=_0x1fe0ae;return respondWithRpcPromise(_0x3d49c6('0x56'),_0x583958[_0x3d49c6('0x63')],routingClient)[_0x3d49c6('0x3f')](respondWithResult(_0x264675,null))[_0x3d49c6('0x34')](handleError(_0x264675,null));},exports[_0x1fe0ae('0x17')]=function(_0x4c8cf0,_0x4b4bc1){const _0x9f9874=_0x1fe0ae;return respondWithRpcPromise(_0x9f9874('0x56'),_0x4c8cf0[_0x9f9874('0x63')],routingClient)[_0x9f9874('0x3f')](findById(_0x4c8cf0['params']['id']))[_0x9f9874('0x3f')](respondWithResult(_0x4b4bc1,null))[_0x9f9874('0x34')](handleError(_0x4b4bc1,null));},exports[_0x1fe0ae('0x5e')]=function(_0x2785ad,_0x35bd2c){const _0xad5162=_0x1fe0ae;return respondWithRpcPromise('FaxAccounts',_0x2785ad[_0xad5162('0x63')])['then'](respondWithResult(_0x35bd2c,null))[_0xad5162('0x34')](handleError(_0x35bd2c,null));},exports[_0x1fe0ae('0x1c')]=function(_0x5de5da,_0x1c1de7){const _0x4a12b0=_0x1fe0ae;return respondWithRpcPromise('ChatQueuesWaitingInteractions',_0x5de5da[_0x4a12b0('0x63')],routingClient)[_0x4a12b0('0x3f')](respondWithResult(_0x1c1de7,null))[_0x4a12b0('0x34')](handleError(_0x1c1de7,null));},exports['mailQueuesWaitingInteractions']=function(_0x324578,_0x5034eb){const _0x1affda=_0x1fe0ae;return respondWithRpcPromise(_0x1affda('0x2e'),_0x324578[_0x1affda('0x63')],routingClient)['then'](respondWithResult(_0x5034eb,null))[_0x1affda('0x34')](handleError(_0x5034eb,null));},exports[_0x1fe0ae('0x75')]=function(_0x158883,_0x3dd7d3){const _0x2571b4=_0x1fe0ae;return respondWithRpcPromise(_0x2571b4('0x23'),_0x158883[_0x2571b4('0x63')],routingClient)[_0x2571b4('0x3f')](respondWithResult(_0x3dd7d3,null))[_0x2571b4('0x34')](handleError(_0x3dd7d3,null));},exports[_0x1fe0ae('0x3c')]=function(_0x3f0276,_0x59faee){const _0x2eb9a9=_0x1fe0ae;return respondWithRpcPromise(_0x2eb9a9('0x23'),_0x3f0276[_0x2eb9a9('0x63')],routingClient)['then'](function(_0x498d88){const _0x4ba402=_0x2eb9a9;if(_0x3f0276['query'][_0x4ba402('0x73')]!==undefined){const _0x3bcfea=_(_0x498d88[_0x4ba402('0x6e')])[_0x4ba402('0x40')]([_0x3f0276[_0x4ba402('0x63')][_0x4ba402('0x73')],_0x3f0276['params']['id']])['map'](_0x4ba402('0x64'))['uniq']()[_0x4ba402('0x78')]();return _0x498d88[_0x4ba402('0x6e')][_0x4ba402('0x40')](function(_0x7a56c3){const _0x2b8b07=_0x4ba402;return _0x3bcfea['indexOf'](_0x7a56c3[_0x2b8b07('0x64')])>-0x1;});}else return _0x498d88[_0x4ba402('0x6e')][_0x4ba402('0x40')](function(_0x56e8b3){const _0x4d0bcb=_0x4ba402;return _0x56e8b3[_0x4d0bcb('0x64')]===parseInt(_0x3f0276[_0x4d0bcb('0x53')]['id']);});})[_0x2eb9a9('0x3f')](respondWithResult(_0x59faee,null))[_0x2eb9a9('0x34')](handleError(_0x59faee,null));},exports[_0x1fe0ae('0x5f')]=function(_0x47e415,_0x641f0d){const _0x1506a9=_0x1fe0ae;return respondWithRpcPromise(_0x1506a9('0x4a'),_0x47e415['query'],routingClient)['then'](respondWithResult(_0x641f0d,null))['catch'](handleError(_0x641f0d,null));},exports['whatsappQueuesWaitingInteractions']=function(_0x3a5ca6,_0x3ef155){const _0x4f5f7c=_0x1fe0ae;return respondWithRpcPromise(_0x4f5f7c('0x6a'),_0x3a5ca6[_0x4f5f7c('0x63')],routingClient)[_0x4f5f7c('0x3f')](respondWithResult(_0x3ef155,null))[_0x4f5f7c('0x34')](handleError(_0x3ef155,null));},exports[_0x1fe0ae('0x4c')]=function(_0x554109,_0x55acc4){const _0x3ed888=_0x1fe0ae;return respondWithRpcPromise('FaxQueuesWaitingInteractions',_0x554109[_0x3ed888('0x63')],routingClient)[_0x3ed888('0x3f')](respondWithResult(_0x55acc4,null))['catch'](handleError(_0x55acc4,null));},exports[_0x1fe0ae('0x4b')]=function(_0x560829){return function(_0x565109,_0x440285){const _0x3129dc=a527_0x19bd;let _0x50d3b9,_0x3cb31a;const _0x575415=_[_0x3129dc('0x44')](_0x560829),_0x25836f=_0x560829===_0x3129dc('0x59')?_0x3129dc('0x50'):_0x3129dc('0x22');return db[_0x575415+'Queue'][_0x3129dc('0x1f')]({'raw':!![],'where':{'id':_0x565109[_0x3129dc('0x53')]['id']}})['then'](function(_0x1b188a){const _0x6ef440=_0x3129dc;if(_[_0x6ef440('0x2d')](_0x1b188a))throw new Error(_0x575415+'\x20Queue\x20not\x20found');return _0x50d3b9=_0x1b188a,db[_0x575415+_0x6ef440('0x49')][_0x6ef440('0x1f')]({'where':{'id':_0x565109['body'][_0x6ef440('0x21')]},'include':[{'model':db[_0x575415+_0x6ef440('0x25')],'as':_0x6ef440('0x25')},{'model':db[_0x575415+_0x25836f],'as':_0x6ef440('0x22')}]});})[_0x3129dc('0x3f')](function(_0x237e2c){const _0x5c542e=_0x3129dc;if(_['isNil'](_0x237e2c))throw new Error(_0x575415+_0x5c542e('0x52'));return _0x3cb31a=_0x237e2c,_0x237e2c[_0x5c542e('0x3')]({'read':0x0,'readAt':null,'UserId':null});})[_0x3129dc('0x3f')](function(){const _0x329acb=_0x3129dc,_0xae0586={'uniqueid':_0x560829+'.'+_0x3cb31a['id']+'.'+_0x3cb31a['Interaction']['id'],'FromUserId':_0x565109[_0x329acb('0x6')]['id'],'type':_0x329acb('0x66')};return _0xae0586[_0x575415+_0x329acb('0x41')]=_0x3cb31a['id'],_0xae0586[_0x575415+_0x329acb('0x1a')]=_0x3cb31a[_0x329acb('0x25')]['id'],_0xae0586[_0x329acb('0x32')+_0x575415+_0x25836f+'Id']=_0x3cb31a[_0x329acb('0x22')]['id'],_0xae0586['To'+_0x575415+_0x329acb('0x3a')]=_0x50d3b9['id'],db[_0x575415+_0x329acb('0x5c')][_0x329acb('0x45')](_0xae0586);})[_0x3129dc('0x3f')](function(){const _0x49d789=_0x3129dc;return respondWithRpcPromise(_0x49d789('0xa'),{'channel':_0x560829,'interaction':_0x3cb31a[_0x49d789('0x25')],'message':_0x3cb31a,'account':_0x3cb31a[_0x49d789('0x22')],'applications':[{'id':0x0,'priority':0x1,'app':_0x49d789('0x66'),'appdata':_0x50d3b9[_0x49d789('0xe')]+','+(_0x3cb31a['Account'][_0x49d789('0x8')]||0x12c),'interval':_0x49d789('0x1e')}]},routingClient);})[_0x3129dc('0x3f')](respondWithResult(_0x440285,null))[_0x3129dc('0x34')](handleError(_0x440285,null));};},exports[_0x1fe0ae('0x74')]=function(_0x189fd8,_0x1fb556){const _0x24cc2e=_0x1fe0ae;let _0x405d04,_0x2d46a7;if(_[_0x24cc2e('0x2d')](_0x189fd8[_0x24cc2e('0x69')][_0x24cc2e('0x39')]))throw new Error(_0x24cc2e('0x19'));const _0x4900ad=_0x189fd8[_0x24cc2e('0x69')][_0x24cc2e('0x39')],_0x1d723a=_[_0x24cc2e('0x44')](_0x4900ad),_0x5f2d8f=_0x4900ad===_0x24cc2e('0x59')?_0x24cc2e('0x50'):_0x24cc2e('0x22');return db['User'][_0x24cc2e('0x1f')]({'raw':!![],'where':{'id':_0x189fd8[_0x24cc2e('0x53')]['id'],'role':_0x24cc2e('0x42')}})[_0x24cc2e('0x3f')](function(_0x1f5ecb){const _0x2e5d8d=_0x24cc2e;if(_[_0x2e5d8d('0x2d')](_0x1f5ecb))throw new Error('Agent\x20not\x20found');return _0x405d04=_0x1f5ecb,db[_0x1d723a+'Message'][_0x2e5d8d('0x1f')]({'where':{'id':_0x189fd8[_0x2e5d8d('0x69')][_0x2e5d8d('0x21')]},'include':[{'model':db[_0x1d723a+_0x2e5d8d('0x25')],'as':_0x2e5d8d('0x25')},{'model':db[_0x1d723a+_0x5f2d8f],'as':_0x2e5d8d('0x22')}]});})[_0x24cc2e('0x3f')](function(_0x3f5e06){const _0xcbd1a1=_0x24cc2e;if(_['isNil'](_0x3f5e06))throw new Error(_0x1d723a+_0xcbd1a1('0x52'));return _0x2d46a7=_0x3f5e06,_0x3f5e06[_0xcbd1a1('0x3')]({'read':0x0,'readAt':null,'UserId':null});})[_0x24cc2e('0x3f')](function(){const _0x3799fa=_0x24cc2e,_0x4351bf={'uniqueid':_0x4900ad+'.'+_0x2d46a7['id']+'.'+_0x2d46a7[_0x3799fa('0x25')]['id'],'FromUserId':_0x189fd8[_0x3799fa('0x6')]['id'],'type':_0x3799fa('0x66'),'ToUserId':_0x405d04['id']};return _0x4351bf[_0x1d723a+_0x3799fa('0x41')]=_0x2d46a7['id'],_0x4351bf[_0x1d723a+_0x3799fa('0x1a')]=_0x2d46a7[_0x3799fa('0x25')]['id'],_0x4351bf[_0x3799fa('0x32')+_0x1d723a+_0x5f2d8f+'Id']=_0x2d46a7[_0x3799fa('0x22')]['id'],db[_0x1d723a+_0x3799fa('0x5c')][_0x3799fa('0x45')](_0x4351bf);})[_0x24cc2e('0x3f')](function(){const _0x3441da=_0x24cc2e;return respondWithRpcPromise('Start',{'channel':_0x4900ad,'interaction':_0x2d46a7['Interaction'],'message':_0x2d46a7,'account':_0x2d46a7['Account'],'applications':[{'id':0x0,'priority':0x1,'app':_0x3441da('0x42'),'appdata':_0x405d04[_0x3441da('0xe')]+','+(_0x2d46a7['Account'][_0x3441da('0x79')]||0x12c),'interval':_0x3441da('0x1e')}]},routingClient);})[_0x24cc2e('0x3f')](respondWithResult(_0x1fb556,null))[_0x24cc2e('0x34')](handleError(_0x1fb556,null));}; \ No newline at end of file diff --git a/server/api/schedule/index.js b/server/api/schedule/index.js index 08a5e35..52b0d9a 100644 --- a/server/api/schedule/index.js +++ b/server/api/schedule/index.js @@ -1 +1 @@ -const a528_0xdf61=['run','express','Router','index','show','../../components/auth/service','isAuthenticated','/:id','./schedule.controller','get','update','put','create'];(function(_0x1df0bd,_0xdf6114){const _0x5b28ec=function(_0x24fa9b){while(--_0x24fa9b){_0x1df0bd['push'](_0x1df0bd['shift']());}};_0x5b28ec(++_0xdf6114);}(a528_0xdf61,0x19c));const a528_0x5b28=function(_0x1df0bd,_0xdf6114){_0x1df0bd=_0x1df0bd-0x0;let _0x5b28ec=a528_0xdf61[_0x1df0bd];return _0x5b28ec;};const _0x57fc36=a528_0x5b28;'use strict';const express=require(_0x57fc36('0x5')),router=express[_0x57fc36('0x6')](),auth=require(_0x57fc36('0x9')),controller=require(_0x57fc36('0xc'));router[_0x57fc36('0x0')]('/',auth[_0x57fc36('0xa')](),controller[_0x57fc36('0x7')]),router[_0x57fc36('0x0')](_0x57fc36('0xb'),auth['isAuthenticated'](),controller[_0x57fc36('0x8')]),router[_0x57fc36('0x0')]('/:id/run',auth['isAuthenticated'](),controller[_0x57fc36('0x4')]),router['post']('/',auth[_0x57fc36('0xa')](),controller[_0x57fc36('0x3')]),router[_0x57fc36('0x2')](_0x57fc36('0xb'),auth['isAuthenticated'](),controller[_0x57fc36('0x1')]),router['delete'](_0x57fc36('0xb'),auth[_0x57fc36('0xa')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a528_0x2528=['update','/:id','get','put','isAuthenticated','index','create','show','delete'];(function(_0x4f34b0,_0x25281c){const _0x53e0c2=function(_0x54c60d){while(--_0x54c60d){_0x4f34b0['push'](_0x4f34b0['shift']());}};_0x53e0c2(++_0x25281c);}(a528_0x2528,0x13b));const a528_0x53e0=function(_0x4f34b0,_0x25281c){_0x4f34b0=_0x4f34b0-0x0;let _0x53e0c2=a528_0x2528[_0x4f34b0];return _0x53e0c2;};const _0x2b19eb=a528_0x53e0;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./schedule.controller');router[_0x2b19eb('0x2')]('/',auth['isAuthenticated'](),controller[_0x2b19eb('0x5')]),router['get'](_0x2b19eb('0x1'),auth[_0x2b19eb('0x4')](),controller[_0x2b19eb('0x7')]),router['get']('/:id/run',auth[_0x2b19eb('0x4')](),controller['run']),router['post']('/',auth[_0x2b19eb('0x4')](),controller[_0x2b19eb('0x6')]),router[_0x2b19eb('0x3')](_0x2b19eb('0x1'),auth[_0x2b19eb('0x4')](),controller[_0x2b19eb('0x0')]),router[_0x2b19eb('0x8')](_0x2b19eb('0x1'),auth[_0x2b19eb('0x4')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/schedule/schedule.attributes.js b/server/api/schedule/schedule.attributes.js index a505f39..5b50844 100644 --- a/server/api/schedule/schedule.attributes.js +++ b/server/api/schedule/schedule.attributes.js @@ -1 +1 @@ -const a529_0x4b7b=['custom','days','minutes','quarters','STRING','hours','exports','INTEGER','xlsx','TEXT','DATE','csv','ENUM','weeks','BOOLEAN','years','sequelize'];(function(_0x395e0c,_0x4b7b2b){const _0x12861d=function(_0x164393){while(--_0x164393){_0x395e0c['push'](_0x395e0c['shift']());}};_0x12861d(++_0x4b7b2b);}(a529_0x4b7b,0x7c));const a529_0x1286=function(_0x395e0c,_0x4b7b2b){_0x395e0c=_0x395e0c-0x0;let _0x12861d=a529_0x4b7b[_0x395e0c];return _0x12861d;};const _0x1983ea=a529_0x1286;'use strict';const Sequelize=require(_0x1983ea('0xb'));module[_0x1983ea('0x1')]={'name':{'type':Sequelize[_0x1983ea('0x10')],'allowNull':![]},'description':{'type':Sequelize[_0x1983ea('0x10')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x1983ea('0x10')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0x1983ea('0x5')],'allowNull':![]},'endAt':{'type':Sequelize[_0x1983ea('0x5')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x1983ea('0x2')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0x1983ea('0xa'),_0x1983ea('0xf'),'months',_0x1983ea('0x8'),_0x1983ea('0xd'),_0x1983ea('0x0'),_0x1983ea('0xe')),'allowNull':![],'defaultValue':_0x1983ea('0xd')},'output':{'type':Sequelize[_0x1983ea('0x7')](_0x1983ea('0x6'),'pdf',_0x1983ea('0x3')),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize[_0x1983ea('0x7')](_0x1983ea('0xc'),'default'),'allowNull':![],'defaultValue':_0x1983ea('0xc')},'sendMail':{'type':Sequelize[_0x1983ea('0x9')],'defaultValue':![]},'email':{'type':Sequelize[_0x1983ea('0x10')]},'cc':{'type':Sequelize[_0x1983ea('0x4')]},'bcc':{'type':Sequelize[_0x1983ea('0x4')]},'sendIfEmpty':{'type':Sequelize[_0x1983ea('0x9')],'defaultValue':!![]}}; \ No newline at end of file +const a529_0x49f7=['xlsx','BOOLEAN','0\x200\x20*\x20*\x20*','quarters','pdf','STRING','default','days','csv','ENUM','minutes','hours','years','weeks'];(function(_0x52c1b4,_0x49f70f){const _0x2c5a3e=function(_0x525828){while(--_0x525828){_0x52c1b4['push'](_0x52c1b4['shift']());}};_0x2c5a3e(++_0x49f70f);}(a529_0x49f7,0x9f));const a529_0x2c5a=function(_0x52c1b4,_0x49f70f){_0x52c1b4=_0x52c1b4-0x0;let _0x2c5a3e=a529_0x49f7[_0x52c1b4];return _0x2c5a3e;};const _0xfca350=a529_0x2c5a;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xfca350('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0xfca350('0x0')]},'active':{'type':Sequelize[_0xfca350('0xa')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0xfca350('0x0')],'allowNull':![],'defaultValue':_0xfca350('0xb')},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0xfca350('0x7'),_0xfca350('0xc'),'months',_0xfca350('0x8'),_0xfca350('0x2'),_0xfca350('0x6'),_0xfca350('0x5')),'allowNull':![],'defaultValue':_0xfca350('0x2')},'output':{'type':Sequelize[_0xfca350('0x4')](_0xfca350('0x3'),_0xfca350('0xd'),_0xfca350('0x9')),'allowNull':![],'defaultValue':_0xfca350('0x3')},'type':{'type':Sequelize[_0xfca350('0x4')]('custom',_0xfca350('0x1')),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0xfca350('0xa')],'defaultValue':![]},'email':{'type':Sequelize[_0xfca350('0x0')]},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file diff --git a/server/api/schedule/schedule.controller.js b/server/api/schedule/schedule.controller.js index 34c6f24..9b9d0f6 100644 --- a/server/api/schedule/schedule.controller.js +++ b/server/api/schedule/schedule.controller.js @@ -1 +1 @@ -const a530_0xcc34=['json','role','stack','Schedule','keys','Scheduler','findOne','api','run','create','sendStatus','userProfileId','type','options','end','get','nolimit','set','autoAssociation','../../components/parsers/qs','body','../../mysqldb','params','intersection','user','destroy','length','filters','UserProfileResource','filter','catch','like','sequelize','rows','VIRTUAL','sort','name','then','limit','pick','attributes','rawAttributes','count','findAll','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','fields','Unable\x20to\x20retrieve\x20the\x20current\x20user','status','map','merge','key','includeAll','../../config/logger','error','query','offset','model','update','index','send','UserProfileSection','Content-Range','show','where','order'];(function(_0x29b878,_0xcc3480){const _0x269fe7=function(_0x37b880){while(--_0x37b880){_0x29b878['push'](_0x29b878['shift']());}};_0x269fe7(++_0xcc3480);}(a530_0xcc34,0x13d));const a530_0x269f=function(_0x29b878,_0xcc3480){_0x29b878=_0x29b878-0x0;let _0x269fe7=a530_0xcc34[_0x29b878];return _0x269fe7;};const _0x279737=a530_0x269f;'use strict';const _=require('lodash'),qs=require(_0x279737('0x1b')),logger=require(_0x279737('0x3c'))(_0x279737('0xf')),db=require(_0x279737('0x1d'))['db'],{Op}=require(_0x279737('0x28'));function respondWithStatusCode(_0x37b880,_0x524611){return _0x524611=_0x524611||0xcc,function(_0x38ac0c){const _0x1a1ab1=a530_0x269f;if(_0x38ac0c)return _0x37b880[_0x1a1ab1('0x12')](_0x524611);return _0x37b880[_0x1a1ab1('0x37')](_0x524611)[_0x1a1ab1('0x16')]();};}function respondWithResult(_0x20504e,_0x5e3e79){return _0x5e3e79=_0x5e3e79||0xc8,function(_0x196c0d){const _0x1cbedb=a530_0x269f;if(_0x196c0d)return _0x20504e[_0x1cbedb('0x37')](_0x5e3e79)[_0x1cbedb('0x8')](_0x196c0d);};}function respondWithFilteredResult(_0x2f5f66,_0x10f20b){return function(_0x55edbc){const _0x263214=a530_0x269f;if(_0x55edbc){const _0x3fb527=_0x55edbc['count'],_0x3ea538=_0x10f20b['offset'];let _0x3794dc=_0x10f20b[_0x263214('0x3f')]+_0x10f20b['limit'],_0x5e339c;return _0x3794dc>=_0x3fb527?(_0x3794dc=_0x3fb527,_0x5e339c=0xc8):_0x5e339c=0xce,_0x2f5f66[_0x263214('0x37')](_0x5e339c),_0x2f5f66[_0x263214('0x19')](_0x263214('0x4'),_0x3ea538+'-'+_0x3794dc+'/'+_0x3fb527)[_0x263214('0x8')](_0x55edbc);}return null;};}function saveUpdates(_0x36a53d){return function(_0x3df61e){const _0x4968d9=a530_0x269f;if(_0x3df61e)return _0x3df61e[_0x4968d9('0x0')](_0x36a53d)[_0x4968d9('0x2d')](function(_0x4c7fe0){return _0x4c7fe0;});return null;};}function removeEntity(_0x34e527){return function(_0x2c3b6b){const _0x5eebfe=a530_0x269f;if(_0x2c3b6b)return _0x2c3b6b[_0x5eebfe('0x21')]()[_0x5eebfe('0x2d')](function(){const _0x228ce7=_0x5eebfe,_0x5e14f9=_0x2c3b6b[_0x228ce7('0x17')]({'plain':!![]}),_0x510de9='Scheduler';return db[_0x228ce7('0x24')]['destroy']({'where':{'type':_0x510de9,'resourceId':_0x5e14f9['id']}})['then'](function(){return _0x2c3b6b;});})['then'](function(){const _0x570ab4=_0x5eebfe;_0x34e527['status'](0xcc)[_0x570ab4('0x16')]();});};}function handleEntityNotFound(_0x26bf21){return function(_0x2ea045){const _0x17d73c=a530_0x269f;return!_0x2ea045&&_0x26bf21[_0x17d73c('0x12')](0x194),_0x2ea045;};}function handleError(_0x5ac949,_0x2a04d7){return _0x2a04d7=_0x2a04d7||0x1f4,function(_0x18efe9){const _0x4aedfa=a530_0x269f;logger[_0x4aedfa('0x3d')](_0x18efe9[_0x4aedfa('0xa')]),_0x18efe9[_0x4aedfa('0x2c')]&&delete _0x18efe9[_0x4aedfa('0x2c')],_0x5ac949[_0x4aedfa('0x37')](_0x2a04d7)[_0x4aedfa('0x2')](_0x18efe9);};}exports[_0x279737('0x1')]=function(_0x528dd6,_0x40c960){const _0x45d5fa=_0x279737;let _0x392690={};const _0x56a9a3={},_0xf4258e={'count':0x0,'rows':[]},_0x5edfdf=_[_0x45d5fa('0x38')](db[_0x45d5fa('0xb')][_0x45d5fa('0x31')],function(_0x3d905b){const _0x30accb=_0x45d5fa;return{'name':_0x3d905b['fieldName'],'type':_0x3d905b[_0x30accb('0x14')][_0x30accb('0x3a')]};});_0x56a9a3['model']=_[_0x45d5fa('0x38')](_0x5edfdf,_0x45d5fa('0x2c')),_0x56a9a3[_0x45d5fa('0x3e')]=_['keys'](_0x528dd6[_0x45d5fa('0x3e')]),_0x56a9a3[_0x45d5fa('0x23')]=_[_0x45d5fa('0x1f')](_0x56a9a3[_0x45d5fa('0x40')],_0x56a9a3['query']),_0x392690[_0x45d5fa('0x30')]=_[_0x45d5fa('0x1f')](_0x56a9a3[_0x45d5fa('0x40')],qs[_0x45d5fa('0x35')](_0x528dd6[_0x45d5fa('0x3e')][_0x45d5fa('0x35')])),_0x392690[_0x45d5fa('0x30')]=_0x392690[_0x45d5fa('0x30')][_0x45d5fa('0x22')]?_0x392690[_0x45d5fa('0x30')]:_0x56a9a3[_0x45d5fa('0x40')];typeof _0x528dd6['query'][_0x45d5fa('0x18')]==='undefined'&&(_0x392690[_0x45d5fa('0x2e')]=qs['limit'](_0x528dd6['query'][_0x45d5fa('0x2e')]),_0x392690['offset']=qs[_0x45d5fa('0x3f')](_0x528dd6[_0x45d5fa('0x3e')][_0x45d5fa('0x3f')]));_0x392690[_0x45d5fa('0x7')]=qs['sort'](_0x528dd6[_0x45d5fa('0x3e')][_0x45d5fa('0x2b')]),_0x392690['where']=qs['filters'](_[_0x45d5fa('0x2f')](_0x528dd6['query'],_0x56a9a3[_0x45d5fa('0x23')]),_0x5edfdf);_0x528dd6[_0x45d5fa('0x3e')][_0x45d5fa('0x25')]&&(_0x392690['where']=_[_0x45d5fa('0x39')](_0x392690['where'],{[Op['or']]:_['map'](_0x5edfdf,function(_0x2d9594){const _0x4782e0=_0x45d5fa;if(_0x2d9594['type']!==_0x4782e0('0x2a')){const _0x55b934={};return _0x55b934[_0x2d9594['name']]={[Op[_0x4782e0('0x27')]]:'%'+_0x528dd6[_0x4782e0('0x3e')][_0x4782e0('0x25')]+'%'},_0x55b934;}})}));_0x392690=_[_0x45d5fa('0x39')]({},_0x392690,_0x528dd6[_0x45d5fa('0x15')]);const _0x202f5e={'where':_0x392690[_0x45d5fa('0x6')]};return db[_0x45d5fa('0xb')][_0x45d5fa('0x32')](_0x202f5e)[_0x45d5fa('0x2d')](function(_0x3e0f59){const _0x36009c=_0x45d5fa;return _0xf4258e['count']=_0x3e0f59,_0x528dd6[_0x36009c('0x3e')][_0x36009c('0x3b')]&&(_0x392690['include']=[{'all':!![]}]),db[_0x36009c('0xb')][_0x36009c('0x33')](_0x392690);})[_0x45d5fa('0x2d')](function(_0x287b97){const _0x63986a=_0x45d5fa;return _0xf4258e[_0x63986a('0x29')]=_0x287b97,_0xf4258e;})[_0x45d5fa('0x2d')](respondWithFilteredResult(_0x40c960,_0x392690))[_0x45d5fa('0x26')](handleError(_0x40c960,null));},exports[_0x279737('0x5')]=function(_0x57aabc,_0x1d1a83){const _0x5762d5=_0x279737;let _0x34ec2a={'raw':![],'where':{'id':_0x57aabc[_0x5762d5('0x1e')]['id']}};const _0x56eea9={};return _0x56eea9[_0x5762d5('0x40')]=_['keys'](db[_0x5762d5('0xb')]['rawAttributes']),_0x56eea9[_0x5762d5('0x3e')]=_[_0x5762d5('0xc')](_0x57aabc[_0x5762d5('0x3e')]),_0x56eea9['filters']=_[_0x5762d5('0x1f')](_0x56eea9[_0x5762d5('0x40')],_0x56eea9[_0x5762d5('0x3e')]),_0x34ec2a['attributes']=_[_0x5762d5('0x1f')](_0x56eea9[_0x5762d5('0x40')],qs['fields'](_0x57aabc[_0x5762d5('0x3e')][_0x5762d5('0x35')])),_0x34ec2a[_0x5762d5('0x30')]=_0x34ec2a[_0x5762d5('0x30')][_0x5762d5('0x22')]?_0x34ec2a['attributes']:_0x56eea9[_0x5762d5('0x40')],_0x57aabc[_0x5762d5('0x3e')][_0x5762d5('0x3b')]&&(_0x34ec2a['include']=[{'all':!![]}]),_0x34ec2a=_['merge']({},_0x34ec2a,_0x57aabc[_0x5762d5('0x15')]),db['Schedule'][_0x5762d5('0xe')](_0x34ec2a)['then'](handleEntityNotFound(_0x1d1a83,null))[_0x5762d5('0x2d')](respondWithResult(_0x1d1a83,null))[_0x5762d5('0x26')](handleError(_0x1d1a83,null));},exports['create']=function(_0x263ff0,_0x14c33c){const _0x1e137b=_0x279737;return db[_0x1e137b('0xb')][_0x1e137b('0x11')](_0x263ff0[_0x1e137b('0x1c')],{})[_0x1e137b('0x2d')](function(_0x272336){const _0x1db5da=_0x1e137b,_0x5177d0=_0x263ff0[_0x1db5da('0x20')][_0x1db5da('0x17')]({'plain':!![]});if(!_0x5177d0)throw new Error(_0x1db5da('0x36'));if(_0x5177d0[_0x1db5da('0x9')]===_0x1db5da('0x20')){const _0x3745a3=_0x272336[_0x1db5da('0x17')]({'plain':!![]}),_0x32ce9b=_0x1db5da('0xd');return db[_0x1db5da('0x3')][_0x1db5da('0xe')]({'where':{'name':_0x32ce9b,'userProfileId':_0x5177d0[_0x1db5da('0x13')]},'raw':!![]})[_0x1db5da('0x2d')](function(_0x4392b8){const _0x2fe432=_0x1db5da;return _0x4392b8&&_0x4392b8[_0x2fe432('0x1a')]===0x0?db[_0x2fe432('0x24')][_0x2fe432('0x11')]({'name':_0x3745a3[_0x2fe432('0x2c')],'resourceId':_0x3745a3['id'],'type':_0x4392b8[_0x2fe432('0x2c')],'sectionId':_0x4392b8['id']},{})[_0x2fe432('0x2d')](function(){return _0x272336;}):_0x272336;})[_0x1db5da('0x26')](function(_0x135ead){const _0x363161=_0x1db5da;logger[_0x363161('0x3d')](_0x363161('0x34'),_0x135ead);throw _0x135ead;});}return _0x272336;})[_0x1e137b('0x2d')](respondWithResult(_0x14c33c,0xc9))['catch'](handleError(_0x14c33c,null));},exports['update']=function(_0x233b7b,_0x5473bb){const _0xb909a9=_0x279737;return _0x233b7b[_0xb909a9('0x1c')]['id']&&delete _0x233b7b['body']['id'],db['Schedule']['findOne']({'where':{'id':_0x233b7b[_0xb909a9('0x1e')]['id']}})[_0xb909a9('0x2d')](handleEntityNotFound(_0x5473bb,null))[_0xb909a9('0x2d')](saveUpdates(_0x233b7b[_0xb909a9('0x1c')],null))[_0xb909a9('0x2d')](respondWithResult(_0x5473bb,null))[_0xb909a9('0x26')](handleError(_0x5473bb,null));},exports[_0x279737('0x21')]=function(_0x77b38c,_0x4d615a){const _0x3e0776=_0x279737;return db[_0x3e0776('0xb')][_0x3e0776('0xe')]({'where':{'id':_0x77b38c[_0x3e0776('0x1e')]['id']}})[_0x3e0776('0x2d')](handleEntityNotFound(_0x4d615a,null))['then'](removeEntity(_0x4d615a,null))[_0x3e0776('0x26')](handleError(_0x4d615a,null));},exports[_0x279737('0x10')]=function(_0x217ed3,_0x3e2c99){const _0x4871ca=_0x279737,_0x2ae7af=require('../../config/schedule');return db[_0x4871ca('0xb')]['findOne']({'where':{'id':_0x217ed3[_0x4871ca('0x1e')]['id']},'raw':!![]})[_0x4871ca('0x2d')](handleEntityNotFound(_0x3e2c99,null))[_0x4871ca('0x2d')](function(){const _0x225ca7=_0x4871ca;_0x2ae7af[_0x225ca7('0x10')](_0x217ed3[_0x225ca7('0x1e')]['id']);})[_0x4871ca('0x2d')](respondWithStatusCode(_0x3e2c99,null))['catch'](handleError(_0x3e2c99,null));}; \ No newline at end of file +const a530_0x4e09=['body','offset','include','merge','run','intersection','user','keys','model','then','userProfileId','Scheduler','options','Content-Range','destroy','type','show','index','catch','create','filters','order','fields','query','stack','findAll','update','api','where','../../config/schedule','filter','status','UserProfileSection','sendStatus','rows','map','name','error','rawAttributes','fieldName','VIRTUAL','attributes','count','get','params','end','key','like','findOne','lodash','autoAssociation','limit','Schedule','sort','send','../../mysqldb','length','../../config/logger'];(function(_0x5f2184,_0x4e099f){const _0x3ccce3=function(_0x42649e){while(--_0x42649e){_0x5f2184['push'](_0x5f2184['shift']());}};_0x3ccce3(++_0x4e099f);}(a530_0x4e09,0x183));const a530_0x3ccc=function(_0x5f2184,_0x4e099f){_0x5f2184=_0x5f2184-0x0;let _0x3ccce3=a530_0x4e09[_0x5f2184];return _0x3ccce3;};const _0x54a7c5=a530_0x3ccc;'use strict';const _=require(_0x54a7c5('0xa')),qs=require('../../components/parsers/qs'),logger=require(_0x54a7c5('0x12'))(_0x54a7c5('0x2e')),db=require(_0x54a7c5('0x10'))['db'],{Op}=require('sequelize');function respondWithStatusCode(_0x42649e,_0x1e191c){return _0x1e191c=_0x1e191c||0xcc,function(_0x2f665c){const _0x4f6ab8=a530_0x3ccc;if(_0x2f665c)return _0x42649e[_0x4f6ab8('0x34')](_0x1e191c);return _0x42649e[_0x4f6ab8('0x32')](_0x1e191c)['end']();};}function respondWithResult(_0x104f43,_0x3aa6e2){return _0x3aa6e2=_0x3aa6e2||0xc8,function(_0xbadd18){const _0x5b1c90=a530_0x3ccc;if(_0xbadd18)return _0x104f43[_0x5b1c90('0x32')](_0x3aa6e2)['json'](_0xbadd18);};}function respondWithFilteredResult(_0x1c6f1c,_0x5eae81){return function(_0x114afb){const _0x2b1839=a530_0x3ccc;if(_0x114afb){const _0x476a5a=_0x114afb[_0x2b1839('0x3')],_0x27cfc6=_0x5eae81[_0x2b1839('0x14')];let _0x5f2046=_0x5eae81['offset']+_0x5eae81[_0x2b1839('0xc')],_0x358a64;return _0x5f2046>=_0x476a5a?(_0x5f2046=_0x476a5a,_0x358a64=0xc8):_0x358a64=0xce,_0x1c6f1c['status'](_0x358a64),_0x1c6f1c['set'](_0x2b1839('0x20'),_0x27cfc6+'-'+_0x5f2046+'/'+_0x476a5a)['json'](_0x114afb);}return null;};}function saveUpdates(_0x798504){return function(_0x59bab1){const _0x2535a6=a530_0x3ccc;if(_0x59bab1)return _0x59bab1[_0x2535a6('0x2d')](_0x798504)[_0x2535a6('0x1c')](function(_0x5720c0){return _0x5720c0;});return null;};}function removeEntity(_0x292af9){return function(_0x21fa17){const _0x327224=a530_0x3ccc;if(_0x21fa17)return _0x21fa17['destroy']()[_0x327224('0x1c')](function(){const _0x5955ae=_0x327224,_0x25d0ef=_0x21fa17[_0x5955ae('0x4')]({'plain':!![]}),_0x3b47e7='Scheduler';return db['UserProfileResource'][_0x5955ae('0x21')]({'where':{'type':_0x3b47e7,'resourceId':_0x25d0ef['id']}})[_0x5955ae('0x1c')](function(){return _0x21fa17;});})[_0x327224('0x1c')](function(){const _0x52ce8e=_0x327224;_0x292af9['status'](0xcc)[_0x52ce8e('0x6')]();});};}function handleEntityNotFound(_0x49d8a0){return function(_0x599871){const _0x397fd4=a530_0x3ccc;return!_0x599871&&_0x49d8a0[_0x397fd4('0x34')](0x194),_0x599871;};}function handleError(_0x30f51f,_0x4a6f83){return _0x4a6f83=_0x4a6f83||0x1f4,function(_0x3f8de1){const _0x4d29d3=a530_0x3ccc;logger['error'](_0x3f8de1[_0x4d29d3('0x2b')]),_0x3f8de1[_0x4d29d3('0x37')]&&delete _0x3f8de1[_0x4d29d3('0x37')],_0x30f51f[_0x4d29d3('0x32')](_0x4a6f83)[_0x4d29d3('0xf')](_0x3f8de1);};}exports[_0x54a7c5('0x24')]=function(_0x599e83,_0x294cd5){const _0x5e5bc3=_0x54a7c5;let _0x1d4464={};const _0xa90321={},_0x5f4c9b={'count':0x0,'rows':[]},_0x1749ab=_[_0x5e5bc3('0x36')](db[_0x5e5bc3('0xd')][_0x5e5bc3('0x39')],function(_0x26c5a1){const _0x250edc=_0x5e5bc3;return{'name':_0x26c5a1[_0x250edc('0x0')],'type':_0x26c5a1[_0x250edc('0x22')][_0x250edc('0x7')]};});_0xa90321[_0x5e5bc3('0x1b')]=_[_0x5e5bc3('0x36')](_0x1749ab,_0x5e5bc3('0x37')),_0xa90321[_0x5e5bc3('0x2a')]=_[_0x5e5bc3('0x1a')](_0x599e83[_0x5e5bc3('0x2a')]),_0xa90321['filters']=_[_0x5e5bc3('0x18')](_0xa90321[_0x5e5bc3('0x1b')],_0xa90321[_0x5e5bc3('0x2a')]),_0x1d4464[_0x5e5bc3('0x2')]=_[_0x5e5bc3('0x18')](_0xa90321['model'],qs[_0x5e5bc3('0x29')](_0x599e83[_0x5e5bc3('0x2a')][_0x5e5bc3('0x29')])),_0x1d4464[_0x5e5bc3('0x2')]=_0x1d4464[_0x5e5bc3('0x2')][_0x5e5bc3('0x11')]?_0x1d4464[_0x5e5bc3('0x2')]:_0xa90321[_0x5e5bc3('0x1b')];typeof _0x599e83[_0x5e5bc3('0x2a')]['nolimit']==='undefined'&&(_0x1d4464[_0x5e5bc3('0xc')]=qs[_0x5e5bc3('0xc')](_0x599e83[_0x5e5bc3('0x2a')][_0x5e5bc3('0xc')]),_0x1d4464[_0x5e5bc3('0x14')]=qs[_0x5e5bc3('0x14')](_0x599e83[_0x5e5bc3('0x2a')][_0x5e5bc3('0x14')]));_0x1d4464[_0x5e5bc3('0x28')]=qs[_0x5e5bc3('0xe')](_0x599e83['query'][_0x5e5bc3('0xe')]),_0x1d4464[_0x5e5bc3('0x2f')]=qs[_0x5e5bc3('0x27')](_['pick'](_0x599e83[_0x5e5bc3('0x2a')],_0xa90321['filters']),_0x1749ab);_0x599e83[_0x5e5bc3('0x2a')]['filter']&&(_0x1d4464[_0x5e5bc3('0x2f')]=_[_0x5e5bc3('0x16')](_0x1d4464[_0x5e5bc3('0x2f')],{[Op['or']]:_[_0x5e5bc3('0x36')](_0x1749ab,function(_0xe5c538){const _0x5c137d=_0x5e5bc3;if(_0xe5c538[_0x5c137d('0x22')]!==_0x5c137d('0x1')){const _0xd10643={};return _0xd10643[_0xe5c538['name']]={[Op[_0x5c137d('0x8')]]:'%'+_0x599e83[_0x5c137d('0x2a')][_0x5c137d('0x31')]+'%'},_0xd10643;}})}));_0x1d4464=_[_0x5e5bc3('0x16')]({},_0x1d4464,_0x599e83[_0x5e5bc3('0x1f')]);const _0xe826fc={'where':_0x1d4464[_0x5e5bc3('0x2f')]};return db[_0x5e5bc3('0xd')]['count'](_0xe826fc)['then'](function(_0x2a364e){const _0x10c6fe=_0x5e5bc3;return _0x5f4c9b[_0x10c6fe('0x3')]=_0x2a364e,_0x599e83[_0x10c6fe('0x2a')]['includeAll']&&(_0x1d4464[_0x10c6fe('0x15')]=[{'all':!![]}]),db['Schedule'][_0x10c6fe('0x2c')](_0x1d4464);})[_0x5e5bc3('0x1c')](function(_0x5eb529){const _0x4a01e9=_0x5e5bc3;return _0x5f4c9b[_0x4a01e9('0x35')]=_0x5eb529,_0x5f4c9b;})[_0x5e5bc3('0x1c')](respondWithFilteredResult(_0x294cd5,_0x1d4464))[_0x5e5bc3('0x25')](handleError(_0x294cd5,null));},exports[_0x54a7c5('0x23')]=function(_0x257d60,_0x353f59){const _0x2f6962=_0x54a7c5;let _0x16e20e={'raw':![],'where':{'id':_0x257d60[_0x2f6962('0x5')]['id']}};const _0x1d19ae={};return _0x1d19ae['model']=_[_0x2f6962('0x1a')](db['Schedule'][_0x2f6962('0x39')]),_0x1d19ae[_0x2f6962('0x2a')]=_[_0x2f6962('0x1a')](_0x257d60[_0x2f6962('0x2a')]),_0x1d19ae[_0x2f6962('0x27')]=_[_0x2f6962('0x18')](_0x1d19ae[_0x2f6962('0x1b')],_0x1d19ae['query']),_0x16e20e[_0x2f6962('0x2')]=_[_0x2f6962('0x18')](_0x1d19ae[_0x2f6962('0x1b')],qs[_0x2f6962('0x29')](_0x257d60[_0x2f6962('0x2a')]['fields'])),_0x16e20e[_0x2f6962('0x2')]=_0x16e20e[_0x2f6962('0x2')][_0x2f6962('0x11')]?_0x16e20e[_0x2f6962('0x2')]:_0x1d19ae[_0x2f6962('0x1b')],_0x257d60[_0x2f6962('0x2a')]['includeAll']&&(_0x16e20e[_0x2f6962('0x15')]=[{'all':!![]}]),_0x16e20e=_[_0x2f6962('0x16')]({},_0x16e20e,_0x257d60[_0x2f6962('0x1f')]),db['Schedule']['findOne'](_0x16e20e)[_0x2f6962('0x1c')](handleEntityNotFound(_0x353f59,null))[_0x2f6962('0x1c')](respondWithResult(_0x353f59,null))[_0x2f6962('0x25')](handleError(_0x353f59,null));},exports['create']=function(_0x3ddd17,_0x1d5b75){const _0x4f6a9e=_0x54a7c5;return db[_0x4f6a9e('0xd')]['create'](_0x3ddd17[_0x4f6a9e('0x13')],{})['then'](function(_0x35e206){const _0xc96337=_0x4f6a9e,_0x4588bf=_0x3ddd17[_0xc96337('0x19')]['get']({'plain':!![]});if(!_0x4588bf)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x4588bf['role']===_0xc96337('0x19')){const _0x59825e=_0x35e206[_0xc96337('0x4')]({'plain':!![]}),_0xfc26bb=_0xc96337('0x1e');return db[_0xc96337('0x33')]['findOne']({'where':{'name':_0xfc26bb,'userProfileId':_0x4588bf[_0xc96337('0x1d')]},'raw':!![]})['then'](function(_0x38692b){const _0x28e255=_0xc96337;return _0x38692b&&_0x38692b[_0x28e255('0xb')]===0x0?db['UserProfileResource'][_0x28e255('0x26')]({'name':_0x59825e[_0x28e255('0x37')],'resourceId':_0x59825e['id'],'type':_0x38692b[_0x28e255('0x37')],'sectionId':_0x38692b['id']},{})[_0x28e255('0x1c')](function(){return _0x35e206;}):_0x35e206;})['catch'](function(_0x399b65){const _0xd24c14=_0xc96337;logger[_0xd24c14('0x38')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x399b65);throw _0x399b65;});}return _0x35e206;})[_0x4f6a9e('0x1c')](respondWithResult(_0x1d5b75,0xc9))[_0x4f6a9e('0x25')](handleError(_0x1d5b75,null));},exports[_0x54a7c5('0x2d')]=function(_0x3b5d48,_0x14a6e9){const _0x182ad2=_0x54a7c5;return _0x3b5d48[_0x182ad2('0x13')]['id']&&delete _0x3b5d48[_0x182ad2('0x13')]['id'],db['Schedule']['findOne']({'where':{'id':_0x3b5d48[_0x182ad2('0x5')]['id']}})[_0x182ad2('0x1c')](handleEntityNotFound(_0x14a6e9,null))[_0x182ad2('0x1c')](saveUpdates(_0x3b5d48[_0x182ad2('0x13')],null))['then'](respondWithResult(_0x14a6e9,null))['catch'](handleError(_0x14a6e9,null));},exports[_0x54a7c5('0x21')]=function(_0xe70506,_0x194cba){const _0x173f5b=_0x54a7c5;return db[_0x173f5b('0xd')][_0x173f5b('0x9')]({'where':{'id':_0xe70506['params']['id']}})[_0x173f5b('0x1c')](handleEntityNotFound(_0x194cba,null))[_0x173f5b('0x1c')](removeEntity(_0x194cba,null))[_0x173f5b('0x25')](handleError(_0x194cba,null));},exports[_0x54a7c5('0x17')]=function(_0x3da2cf,_0xd3e7ac){const _0x4e3939=_0x54a7c5,_0x5709c8=require(_0x4e3939('0x30'));return db['Schedule'][_0x4e3939('0x9')]({'where':{'id':_0x3da2cf[_0x4e3939('0x5')]['id']},'raw':!![]})['then'](handleEntityNotFound(_0xd3e7ac,null))[_0x4e3939('0x1c')](function(){const _0x654069=_0x4e3939;_0x5709c8[_0x654069('0x17')](_0x3da2cf[_0x654069('0x5')]['id']);})[_0x4e3939('0x1c')](respondWithStatusCode(_0xd3e7ac,null))['catch'](handleError(_0xd3e7ac,null));}; \ No newline at end of file diff --git a/server/api/schedule/schedule.model.js b/server/api/schedule/schedule.model.js index c40c335..d7f75d6 100644 --- a/server/api/schedule/schedule.model.js +++ b/server/api/schedule/schedule.model.js @@ -1 +1 @@ -const a531_0x4229=['./schedule.attributes','tools_schedules','exports','define'];(function(_0x507ee8,_0x422956){const _0x465bcf=function(_0x2972bd){while(--_0x2972bd){_0x507ee8['push'](_0x507ee8['shift']());}};_0x465bcf(++_0x422956);}(a531_0x4229,0x142));const a531_0x465b=function(_0x507ee8,_0x422956){_0x507ee8=_0x507ee8-0x0;let _0x465bcf=a531_0x4229[_0x507ee8];return _0x465bcf;};const _0x11b475=a531_0x465b;'use strict';const attributes=require(_0x11b475('0x2'));module[_0x11b475('0x0')]=function(_0x2972bd){const _0x25693c=_0x11b475,_0x5a9204=_0x2972bd[_0x25693c('0x1')]('Schedule',attributes,{'tableName':_0x25693c('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5a9204;}; \ No newline at end of file +const a531_0x1fd2=['tools_schedules','exports'];(function(_0x41af9e,_0x1fd2f8){const _0x3be56b=function(_0x10acd6){while(--_0x10acd6){_0x41af9e['push'](_0x41af9e['shift']());}};_0x3be56b(++_0x1fd2f8);}(a531_0x1fd2,0x1d7));const a531_0x3be5=function(_0x41af9e,_0x1fd2f8){_0x41af9e=_0x41af9e-0x0;let _0x3be56b=a531_0x1fd2[_0x41af9e];return _0x3be56b;};const _0x3e1427=a531_0x3be5;'use strict';const attributes=require('./schedule.attributes');module[_0x3e1427('0x0')]=function(_0x10acd6){const _0x49237f=_0x3e1427,_0x36bdba=_0x10acd6['define']('Schedule',attributes,{'tableName':_0x49237f('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x36bdba;}; \ No newline at end of file diff --git a/server/api/screenRecording/index.js b/server/api/screenRecording/index.js index 3df052d..b4147a8 100644 --- a/server/api/screenRecording/index.js +++ b/server/api/screenRecording/index.js @@ -1 +1 @@ -const a532_0x5ddd=['describe','./screenRecording.controller','create','delete','update','put','/:id','show','/:id/download','get','index','../../components/auth/service','exports','download','post','isAuthenticated'];(function(_0x174360,_0x5ddd8){const _0x477d29=function(_0x55313f){while(--_0x55313f){_0x174360['push'](_0x174360['shift']());}};_0x477d29(++_0x5ddd8);}(a532_0x5ddd,0x1ea));const a532_0x477d=function(_0x174360,_0x5ddd8){_0x174360=_0x174360-0x0;let _0x477d29=a532_0x5ddd[_0x174360];return _0x477d29;};const _0x219ecd=a532_0x477d;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x219ecd('0x1')),controller=require(_0x219ecd('0x7'));router['get']('/',auth[_0x219ecd('0x5')](),controller[_0x219ecd('0x0')]),router[_0x219ecd('0xf')]('/describe',auth[_0x219ecd('0x5')](),controller[_0x219ecd('0x6')]),router[_0x219ecd('0xf')](_0x219ecd('0xc'),auth[_0x219ecd('0x5')](),controller[_0x219ecd('0xd')]),router[_0x219ecd('0xf')](_0x219ecd('0xe'),auth[_0x219ecd('0x5')](),controller[_0x219ecd('0x3')]),router[_0x219ecd('0x4')]('/',auth[_0x219ecd('0x5')](),controller[_0x219ecd('0x8')]),router[_0x219ecd('0xb')](_0x219ecd('0xc'),auth['isAuthenticated'](),controller[_0x219ecd('0xa')]),router[_0x219ecd('0x9')](_0x219ecd('0xc'),auth[_0x219ecd('0x5')](),controller['destroy']),module[_0x219ecd('0x2')]=router; \ No newline at end of file +const a532_0x3a42=['post','create','Router','delete','/describe','/:id','show','/:id/download','../../components/auth/service','download','put','./screenRecording.controller','get','isAuthenticated'];(function(_0x6c8f17,_0x3a4261){const _0x2e053d=function(_0x5b8097){while(--_0x5b8097){_0x6c8f17['push'](_0x6c8f17['shift']());}};_0x2e053d(++_0x3a4261);}(a532_0x3a42,0xcd));const a532_0x2e05=function(_0x6c8f17,_0x3a4261){_0x6c8f17=_0x6c8f17-0x0;let _0x2e053d=a532_0x3a42[_0x6c8f17];return _0x2e053d;};const _0x448f18=a532_0x2e05;'use strict';const express=require('express'),router=express[_0x448f18('0x7')](),auth=require(_0x448f18('0xd')),controller=require(_0x448f18('0x2'));router[_0x448f18('0x3')]('/',auth[_0x448f18('0x4')](),controller['index']),router[_0x448f18('0x3')](_0x448f18('0x9'),auth[_0x448f18('0x4')](),controller['describe']),router[_0x448f18('0x3')](_0x448f18('0xa'),auth['isAuthenticated'](),controller[_0x448f18('0xb')]),router[_0x448f18('0x3')](_0x448f18('0xc'),auth['isAuthenticated'](),controller[_0x448f18('0x0')]),router[_0x448f18('0x5')]('/',auth[_0x448f18('0x4')](),controller[_0x448f18('0x6')]),router[_0x448f18('0x1')](_0x448f18('0xa'),auth[_0x448f18('0x4')](),controller['update']),router[_0x448f18('0x8')](_0x448f18('0xa'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.attributes.js b/server/api/screenRecording/screenRecording.attributes.js index 1fbf516..cf047d7 100644 --- a/server/api/screenRecording/screenRecording.attributes.js +++ b/server/api/screenRecording/screenRecording.attributes.js @@ -1 +1 @@ -const a533_0x4b57=['moment','toString','DATE','setDataValue','STRING','MM-DD-YYYY\x20HH:mm','getDataValue','startedAt','closedAt','duration','VIRTUAL','value','updatedAt','replace','path','format','subtract','INTEGER','sequelize'];(function(_0x4c72f5,_0x4b574b){const _0x5b7ef4=function(_0x2ceda0){while(--_0x2ceda0){_0x4c72f5['push'](_0x4c72f5['shift']());}};_0x5b7ef4(++_0x4b574b);}(a533_0x4b57,0xc2));const a533_0x5b7e=function(_0x4c72f5,_0x4b574b){_0x4c72f5=_0x4c72f5-0x0;let _0x5b7ef4=a533_0x4b57[_0x4c72f5];return _0x5b7ef4;};const _0x2a4dcd=a533_0x5b7e;'use strict';const Sequelize=require(_0x2a4dcd('0xe')),moment=require(_0x2a4dcd('0xf')),path=require(_0x2a4dcd('0xa'));module['exports']={'format':{'type':Sequelize[_0x2a4dcd('0x6')],'get':function(){const _0x2588bb=_0x2a4dcd;return this['getDataValue'](_0x2588bb('0x7'))?path['extname'](this[_0x2588bb('0x2')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0x2a4dcd('0x0')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x2a4dcd('0x0')],'set':function(_0x2ceda0){const _0x187582=_0x2a4dcd,_0x3d4e0a=_0x2ceda0[_0x187582('0x9')](/\\/g,'/');this['setDataValue']('value',_0x3d4e0a);}},'rating':{'type':Sequelize[_0x2a4dcd('0xd')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x2a4dcd('0xd')],'set':function(_0x59b803){const _0x5b98eb=_0x2a4dcd;this['setDataValue'](_0x5b98eb('0x3'),moment()[_0x5b98eb('0xc')](_0x59b803,'ms')),this[_0x5b98eb('0x12')](_0x5b98eb('0x4'),moment()),this['setDataValue'](_0x5b98eb('0x5'),_0x59b803);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){const _0x33d9be=_0x2a4dcd;return moment(this[_0x33d9be('0x2')](_0x33d9be('0x3')))[_0x33d9be('0xb')](_0x33d9be('0x1'))[_0x33d9be('0x10')]();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){const _0x10ee55=_0x2a4dcd;return moment(this[_0x10ee55('0x2')]('closedAt'))['format'](_0x10ee55('0x1'))['toString']();}},'createdAt':{'type':Sequelize[_0x2a4dcd('0x11')],'get':function(){const _0x511fac=_0x2a4dcd;return moment(this[_0x511fac('0x2')]('createdAt'))['format'](_0x511fac('0x1'))[_0x511fac('0x10')]();}},'updatedAt':{'type':Sequelize[_0x2a4dcd('0x11')],'get':function(){const _0x1ada92=_0x2a4dcd;return moment(this['getDataValue'](_0x1ada92('0x8')))[_0x1ada92('0xb')](_0x1ada92('0x1'))[_0x1ada92('0x10')]();}}}; \ No newline at end of file +const a533_0x59a1=['toString','value','DATE','format','exports','getDataValue','duration','VIRTUAL','subtract','createdAt','moment','MM-DD-YYYY\x20HH:mm','STRING','INTEGER','closedAt','path','sequelize','setDataValue','replace','startedAt'];(function(_0x3f9490,_0x59a10c){const _0x100d86=function(_0x29c4d2){while(--_0x29c4d2){_0x3f9490['push'](_0x3f9490['shift']());}};_0x100d86(++_0x59a10c);}(a533_0x59a1,0xa2));const a533_0x100d=function(_0x3f9490,_0x59a10c){_0x3f9490=_0x3f9490-0x0;let _0x100d86=a533_0x59a1[_0x3f9490];return _0x100d86;};const _0xbbf915=a533_0x100d;'use strict';const Sequelize=require(_0xbbf915('0xe')),moment=require(_0xbbf915('0x8')),path=require(_0xbbf915('0xd'));module[_0xbbf915('0x2')]={'format':{'type':Sequelize[_0xbbf915('0x5')],'get':function(){const _0x34685a=_0xbbf915;return this['getDataValue']('value')?path['extname'](this[_0x34685a('0x3')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0xbbf915('0xa')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0xbbf915('0xa')],'set':function(_0x29c4d2){const _0x25913b=_0xbbf915,_0x22d1de=_0x29c4d2[_0x25913b('0x10')](/\\/g,'/');this[_0x25913b('0xf')](_0x25913b('0x13'),_0x22d1de);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xbbf915('0xb')],'set':function(_0x4e2745){const _0x247cfc=_0xbbf915;this['setDataValue'](_0x247cfc('0x11'),moment()[_0x247cfc('0x6')](_0x4e2745,'ms')),this[_0x247cfc('0xf')](_0x247cfc('0xc'),moment()),this[_0x247cfc('0xf')](_0x247cfc('0x4'),_0x4e2745);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){const _0x2a757c=_0xbbf915;return moment(this[_0x2a757c('0x3')](_0x2a757c('0x11')))[_0x2a757c('0x1')]('MM-DD-YYYY\x20HH:mm')[_0x2a757c('0x12')]();}},'closedAt':{'type':Sequelize[_0xbbf915('0x0')],'get':function(){const _0x5b3c47=_0xbbf915;return moment(this[_0x5b3c47('0x3')](_0x5b3c47('0xc')))[_0x5b3c47('0x1')](_0x5b3c47('0x9'))['toString']();}},'createdAt':{'type':Sequelize[_0xbbf915('0x0')],'get':function(){const _0xcd2500=_0xbbf915;return moment(this[_0xcd2500('0x3')](_0xcd2500('0x7')))[_0xcd2500('0x1')]('MM-DD-YYYY\x20HH:mm')[_0xcd2500('0x12')]();}},'updatedAt':{'type':Sequelize[_0xbbf915('0x0')],'get':function(){const _0x48e4ec=_0xbbf915;return moment(this[_0x48e4ec('0x3')]('updatedAt'))[_0x48e4ec('0x1')](_0x48e4ec('0x9'))[_0x48e4ec('0x12')]();}}}; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.controller.js b/server/api/screenRecording/screenRecording.controller.js index 9d6edcc..e44592d 100644 --- a/server/api/screenRecording/screenRecording.controller.js +++ b/server/api/screenRecording/screenRecording.controller.js @@ -1 +1 @@ -const a534_0x3efa=['merge','unlinkSync','query','set','unlink','describe','findOne','length','keys','%s.cypher','recording','body','key','fieldName','model','includeAll','filters','join','rawAttributes','.cypher','VIRTUAL','ScreenRecording\x20not\x20found','show','Entity\x20not\x20found','nolimit','root','info','Not\x20found','index','extname','offset','intersection','../../components/encryptor','params','error-middleware/errors','Sequelize','sequelize','json','format','../../config/logger','destroy','isNil','server/files/screen_recordings','then','include','sort','closedAt','catch','pick','api','create','differenceBy','ScreenRecording','value','util','File:\x20\x22','update','existsSync','../../config/environment','rows','fields','map','limit','name','../../mysqldb','findAll','lodash','Content-Range','filter','stack','uniqueid','sendStatus','where','secrets','cancellazione\x20fisica\x20documento\x20%s','type','status','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','attributes','download','createdAt','message','path','count','options'];(function(_0x18ae85,_0x3efaa5){const _0x33af8a=function(_0x434a49){while(--_0x434a49){_0x18ae85['push'](_0x18ae85['shift']());}};_0x33af8a(++_0x3efaa5);}(a534_0x3efa,0x197));const a534_0x33af=function(_0x18ae85,_0x3efaa5){_0x18ae85=_0x18ae85-0x0;let _0x33af8a=a534_0x3efa[_0x18ae85];return _0x33af8a;};const _0x2d2132=a534_0x33af;'use strict';const util=require(_0x2d2132('0x48')),path=require(_0x2d2132('0xf')),fs=require('fs'),_=require(_0x2d2132('0x54')),qs=require('../../components/parsers/qs'),logger=require(_0x2d2132('0x39'))(_0x2d2132('0x43')),config=require(_0x2d2132('0x4c')),db=require(_0x2d2132('0x52'))['db'],{Op}=require(_0x2d2132('0x36')),{InternalError}=require(_0x2d2132('0x34'));function respondWithResult(_0x434a49,_0xc6c7a3){return _0xc6c7a3=_0xc6c7a3||0xc8,function(_0x169e8a){const _0x5219b2=a534_0x33af;if(_0x169e8a)return _0x434a49[_0x5219b2('0x9')](_0xc6c7a3)[_0x5219b2('0x37')](_0x169e8a);};}function respondWithFilteredResult(_0x25b15f,_0x10ed30){return function(_0x557189){const _0x4a7bb0=a534_0x33af;if(_0x557189){const _0x3aef4d=_0x557189[_0x4a7bb0('0x10')],_0x21a5be=_0x10ed30[_0x4a7bb0('0x30')];let _0x1a330e=_0x10ed30[_0x4a7bb0('0x30')]+_0x10ed30['limit'],_0x1b356f;return _0x1a330e>=_0x3aef4d?(_0x1a330e=_0x3aef4d,_0x1b356f=0xc8):_0x1b356f=0xce,_0x25b15f[_0x4a7bb0('0x9')](_0x1b356f),_0x25b15f[_0x4a7bb0('0x15')](_0x4a7bb0('0x0'),_0x21a5be+'-'+_0x1a330e+'/'+_0x3aef4d)['json'](_0x557189);}return null;};}function saveUpdates(_0x1adfcf){return function(_0x46fef2){const _0x500177=a534_0x33af;if(_0x46fef2)return _0x46fef2[_0x500177('0x4a')](_0x1adfcf)[_0x500177('0x3d')](function(_0x58c01b){return _0x58c01b;});return null;};}function handleEntityNotFound(_0x23502e){return function(_0x221ff1){const _0x10d317=a534_0x33af;return!_0x221ff1&&_0x23502e[_0x10d317('0x4')](0x194),_0x221ff1;};}function handleError(_0x1a791a,_0x43961d){return _0x43961d=_0x43961d||0x1f4,function(_0x37c002){const _0xeb91a4=a534_0x33af;logger['error'](_0x37c002[_0xeb91a4('0x2')]),_0x37c002[_0xeb91a4('0x51')]&&delete _0x37c002[_0xeb91a4('0x51')],_0x1a791a[_0xeb91a4('0x9')](_0x43961d)['send'](_0x37c002);};}exports[_0x2d2132('0x2e')]=function(_0x22dcd1,_0x1f235e){const _0x18da62=_0x2d2132;let _0x30fcf0={};const _0x13fbcf={},_0xd2f6ec={'count':0x0,'rows':[]},_0x28fac1=_[_0x18da62('0x4f')](db['ScreenRecording'][_0x18da62('0x24')],function(_0x3fca8d){const _0x518d1c=_0x18da62;return{'name':_0x3fca8d[_0x518d1c('0x1f')],'type':_0x3fca8d['type'][_0x518d1c('0x1e')]};});_0x13fbcf['model']=_[_0x18da62('0x45')](_[_0x18da62('0x4f')](_0x28fac1,_0x18da62('0x51')),['format']),_0x13fbcf[_0x18da62('0x14')]=_[_0x18da62('0x1a')](_0x22dcd1[_0x18da62('0x14')]),_0x13fbcf[_0x18da62('0x22')]=_['intersection'](_0x13fbcf[_0x18da62('0x20')],_0x13fbcf[_0x18da62('0x14')]),_0x30fcf0[_0x18da62('0xb')]=_[_0x18da62('0x31')](_0x13fbcf[_0x18da62('0x20')],qs[_0x18da62('0x4e')](_0x22dcd1[_0x18da62('0x14')][_0x18da62('0x4e')])),_0x30fcf0[_0x18da62('0xb')]=_0x30fcf0['attributes'][_0x18da62('0x19')]?_0x30fcf0[_0x18da62('0xb')]:_0x13fbcf[_0x18da62('0x20')];typeof _0x22dcd1[_0x18da62('0x14')][_0x18da62('0x2a')]==='undefined'&&(_0x30fcf0[_0x18da62('0x50')]=qs[_0x18da62('0x50')](_0x22dcd1[_0x18da62('0x14')][_0x18da62('0x50')]),_0x30fcf0[_0x18da62('0x30')]=qs[_0x18da62('0x30')](_0x22dcd1[_0x18da62('0x14')][_0x18da62('0x30')]));_0x30fcf0['order']=qs[_0x18da62('0x3f')](_0x22dcd1['query'][_0x18da62('0x3f')]),_0x30fcf0[_0x18da62('0x5')]=qs[_0x18da62('0x22')](_[_0x18da62('0x42')](_0x22dcd1[_0x18da62('0x14')],_0x13fbcf[_0x18da62('0x22')]),_0x28fac1);_0x22dcd1['query'][_0x18da62('0x1')]&&(_0x30fcf0[_0x18da62('0x5')]=_[_0x18da62('0x12')](_0x30fcf0[_0x18da62('0x5')],{[Op['or']]:_[_0x18da62('0x4f')](_0x28fac1,function(_0x379ac0){const _0x1b7742=_0x18da62;if(_0x379ac0['type']!==_0x1b7742('0x26')){const _0x58b8fc={};return _0x58b8fc[_0x379ac0[_0x1b7742('0x51')]]={[Op['like']]:'%'+_0x22dcd1[_0x1b7742('0x14')][_0x1b7742('0x1')]+'%'},_0x58b8fc;}})}));_0x30fcf0=_[_0x18da62('0x12')]({},_0x30fcf0,_0x22dcd1['options']);const _0x46c922={'where':_0x30fcf0[_0x18da62('0x5')]};return db[_0x18da62('0x46')]['count'](_0x46c922)[_0x18da62('0x3d')](function(_0x2fe199){const _0x53ad7e=_0x18da62;return _0xd2f6ec['count']=_0x2fe199,_0x22dcd1[_0x53ad7e('0x14')][_0x53ad7e('0x21')]&&(_0x30fcf0[_0x53ad7e('0x3e')]=[{'all':!![]}]),db['ScreenRecording'][_0x53ad7e('0x53')](_0x30fcf0);})[_0x18da62('0x3d')](function(_0x1b9a01){const _0xbcd527=_0x18da62;return _0xd2f6ec[_0xbcd527('0x4d')]=_0x1b9a01,_0xd2f6ec;})[_0x18da62('0x3d')](respondWithFilteredResult(_0x1f235e,_0x30fcf0))[_0x18da62('0x41')](handleError(_0x1f235e,null));},exports[_0x2d2132('0x28')]=function(_0x1ede5b,_0x17fcb5){const _0x18ed22=_0x2d2132;let _0x4be02b={'raw':![],'where':{'id':_0x1ede5b[_0x18ed22('0x33')]['id']}};const _0x140e17={};return _0x140e17[_0x18ed22('0x20')]=_[_0x18ed22('0x1a')](db[_0x18ed22('0x46')][_0x18ed22('0x24')]),_0x140e17[_0x18ed22('0x14')]=_[_0x18ed22('0x1a')](_0x1ede5b[_0x18ed22('0x14')]),_0x140e17['filters']=_[_0x18ed22('0x31')](_0x140e17[_0x18ed22('0x20')],_0x140e17[_0x18ed22('0x14')]),_0x4be02b[_0x18ed22('0xb')]=_[_0x18ed22('0x31')](_0x140e17[_0x18ed22('0x20')],qs[_0x18ed22('0x4e')](_0x1ede5b[_0x18ed22('0x14')]['fields'])),_0x4be02b[_0x18ed22('0xb')]=_0x4be02b['attributes'][_0x18ed22('0x19')]?_0x4be02b['attributes']:_0x140e17[_0x18ed22('0x20')],_0x1ede5b[_0x18ed22('0x14')]['includeAll']&&(_0x4be02b[_0x18ed22('0x3e')]=[{'all':!![]}]),_0x4be02b=_[_0x18ed22('0x12')]({},_0x4be02b,_0x1ede5b[_0x18ed22('0x11')]),db[_0x18ed22('0x46')][_0x18ed22('0x18')](_0x4be02b)['then'](handleEntityNotFound(_0x17fcb5,null))[_0x18ed22('0x3d')](respondWithResult(_0x17fcb5,null))[_0x18ed22('0x41')](handleError(_0x17fcb5,null));},exports[_0x2d2132('0x44')]=function(_0x32e7e9,_0xf8b0c1){const _0x1783f8=_0x2d2132;return db[_0x1783f8('0x46')][_0x1783f8('0x44')](_0x32e7e9[_0x1783f8('0x1d')],{})['then'](respondWithResult(_0xf8b0c1,0xc9))[_0x1783f8('0x41')](handleError(_0xf8b0c1,null));},exports[_0x2d2132('0x4a')]=function(_0x13e6d8,_0x2d2dc2){const _0x358bb1=_0x2d2132;return _0x13e6d8[_0x358bb1('0x1d')]['id']&&delete _0x13e6d8[_0x358bb1('0x1d')]['id'],delete _0x13e6d8[_0x358bb1('0x1d')]['duration'],delete _0x13e6d8[_0x358bb1('0x1d')][_0x358bb1('0xd')],delete _0x13e6d8[_0x358bb1('0x1d')][_0x358bb1('0x40')],delete _0x13e6d8['body'][_0x358bb1('0x47')],db[_0x358bb1('0x46')][_0x358bb1('0x18')]({'where':{'id':_0x13e6d8['params']['id']}})[_0x358bb1('0x3d')](handleEntityNotFound(_0x2d2dc2,null))['then'](saveUpdates(_0x13e6d8[_0x358bb1('0x1d')],null))['then'](respondWithResult(_0x2d2dc2,null))['catch'](handleError(_0x2d2dc2,null));},exports[_0x2d2132('0x17')]=function(_0x5385d6,_0x31aad0){const _0xc1b836=_0x2d2132;return db[_0xc1b836('0x46')][_0xc1b836('0x17')]()[_0xc1b836('0x3d')](respondWithResult(_0x31aad0,null))[_0xc1b836('0x41')](handleError(_0x31aad0,null));},exports[_0x2d2132('0xc')]=function(_0x1b460c,_0x247285){const _0x23ec53=_0x2d2132,_0x52e329=require(_0x23ec53('0x32'));let _0x45fa01=![];const _0x96159={};return _0x1b460c[_0x23ec53('0x14')][_0x23ec53('0x8')]&&_0x1b460c['query'][_0x23ec53('0x8')]===_0x23ec53('0x3')?_0x96159[_0x23ec53('0x3')]=_0x1b460c['params']['id']:_0x96159['id']=_0x1b460c[_0x23ec53('0x33')]['id'],db[_0x23ec53('0x46')][_0x23ec53('0x18')]({'where':_0x96159,'attributes':['id','value'],'raw':!![]})[_0x23ec53('0x3d')](handleEntityNotFound(_0x247285,null))[_0x23ec53('0x3d')](function(_0x20a507){const _0x583313=_0x23ec53;if(_0x20a507){const _0x1a0528=path[_0x583313('0x23')](config[_0x583313('0x2b')],_0x583313('0x3c'),_0x20a507[_0x583313('0x47')]),_0x1f6056=util[_0x583313('0x38')](_0x583313('0x1b'),_0x1a0528);if(fs[_0x583313('0x4b')](_0x1f6056))return _0x45fa01=!![],_0x52e329['decryptFile'](_0x1f6056,_0x1a0528,config[_0x583313('0x6')][_0x583313('0x1c')])[_0x583313('0x3d')](function(){return _0x20a507;});return _0x20a507;}})['then'](function(_0x823c24){const _0x15645e=_0x23ec53;if(_0x823c24){const _0x1d3e1c=path[_0x15645e('0x23')](config[_0x15645e('0x2b')],_0x15645e('0x3c'),_0x823c24['value']);if(!fs[_0x15645e('0x4b')](_0x1d3e1c))throw new db[(_0x15645e('0x35'))]['ValidationError']('ScreenRecording\x20not\x20found');return _0x823c24['filename']?_0x247285[_0x15645e('0xc')](_0x1d3e1c,_0x823c24['filename']+path[_0x15645e('0x2f')](_0x1d3e1c),function(){const _0x6d0706=_0x15645e;_0x45fa01&&fs[_0x6d0706('0x16')](_0x1d3e1c);}):_0x247285[_0x15645e('0xc')](_0x1d3e1c,function(){const _0x25aa0e=_0x15645e;_0x45fa01&&fs[_0x25aa0e('0x16')](_0x1d3e1c);});}})[_0x23ec53('0x41')](function(_0x561aa3){const _0x404856=_0x23ec53;if(_0x561aa3[_0x404856('0xe')]===_0x404856('0x27'))_0x247285[_0x404856('0x9')](0x194)['send'](_0x404856('0x2d'));else return handleError(_0x247285,null);});},exports[_0x2d2132('0x3a')]=function(_0x20012a,_0x1fa488){const _0x46a57e=_0x2d2132;return db[_0x46a57e('0x46')][_0x46a57e('0x18')]({'where':{'id':_0x20012a[_0x46a57e('0x33')]['id']}})['then'](function(_0x3fe355){const _0x476edc=_0x46a57e;if(!_0x3fe355)throw new ReferenceError(_0x476edc('0x29'));return _0x3fe355;})['then'](function(_0x524176){const _0x20f13a=_0x46a57e;let _0x395a3f=path[_0x20f13a('0x23')](config[_0x20f13a('0x2b')],_0x20f13a('0x3c'),_0x524176[_0x20f13a('0x47')]);return logger[_0x20f13a('0x2c')](_0x20f13a('0x7'),_0x395a3f),!_[_0x20f13a('0x3b')](_0x524176[_0x20f13a('0x47')])&&fs[_0x20f13a('0x4b')](_0x395a3f)&&(logger[_0x20f13a('0x2c')]('File:\x20\x22'+_0x395a3f+_0x20f13a('0xa')),fs[_0x20f13a('0x13')](_0x395a3f)),_0x395a3f=_0x395a3f+_0x20f13a('0x25'),!_['isNil'](_0x524176[_0x20f13a('0x47')])&&fs[_0x20f13a('0x4b')](_0x395a3f)&&(logger[_0x20f13a('0x2c')](_0x20f13a('0x49')+_0x395a3f+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs['unlinkSync'](_0x395a3f)),_0x524176;})[_0x46a57e('0x3d')](function(_0x450271){if(!_0x450271)throw new InternalError();return _0x450271['destroy']();})['then'](function(){_0x1fa488['status'](0xcc)['end']();})[_0x46a57e('0x41')](handleError(_0x1fa488,null));}; \ No newline at end of file +const a534_0xb5e7=['then','info','end','join','index','type','show','value','limit','attributes','create','sort','sendStatus','filter','send','keys','order','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','stack','extname','unlinkSync','api','name','body','ScreenRecording\x20not\x20found','closedAt','includeAll','undefined','format','intersection','../../config/environment','map','status','query','filename','differenceBy','catch','fieldName','.cypher','server/files/screen_recordings','sequelize','length','include','params','filters','recording','options','nolimit','merge','lodash','%s.cypher','where','update','existsSync','isNil','ValidationError','decryptFile','ScreenRecording','secrets','describe','util','key','File:\x20\x22','fields','download','error','../../config/logger','error-middleware/errors','count','findAll','uniqueid','offset','model','path','pick','Entity\x20not\x20found','rawAttributes','destroy','unlink','createdAt','message','findOne','root','cancellazione\x20fisica\x20documento\x20%s'];(function(_0x502353,_0xb5e7b8){const _0x363ffc=function(_0x3367e9){while(--_0x3367e9){_0x502353['push'](_0x502353['shift']());}};_0x363ffc(++_0xb5e7b8);}(a534_0xb5e7,0x12b));const a534_0x363f=function(_0x502353,_0xb5e7b8){_0x502353=_0x502353-0x0;let _0x363ffc=a534_0xb5e7[_0x502353];return _0x363ffc;};const _0x3ac2f7=a534_0x363f;'use strict';const util=require(_0x3ac2f7('0xd')),path=require(_0x3ac2f7('0x1a')),fs=require('fs'),_=require(_0x3ac2f7('0x2')),qs=require('../../components/parsers/qs'),logger=require(_0x3ac2f7('0x13'))(_0x3ac2f7('0x3a')),config=require(_0x3ac2f7('0x43')),db=require('../../mysqldb')['db'],{Op}=require(_0x3ac2f7('0x4d')),{InternalError}=require(_0x3ac2f7('0x14'));function respondWithResult(_0x3367e9,_0xd92978){return _0xd92978=_0xd92978||0xc8,function(_0x2bac3c){const _0x5b31f4=a534_0x363f;if(_0x2bac3c)return _0x3367e9[_0x5b31f4('0x45')](_0xd92978)['json'](_0x2bac3c);};}function respondWithFilteredResult(_0x11cff5,_0x437dfb){return function(_0x298f56){const _0x4f9783=a534_0x363f;if(_0x298f56){const _0x59939d=_0x298f56[_0x4f9783('0x15')],_0x16fdc1=_0x437dfb[_0x4f9783('0x18')];let _0x303bd6=_0x437dfb[_0x4f9783('0x18')]+_0x437dfb['limit'],_0x266cfb;return _0x303bd6>=_0x59939d?(_0x303bd6=_0x59939d,_0x266cfb=0xc8):_0x266cfb=0xce,_0x11cff5['status'](_0x266cfb),_0x11cff5['set']('Content-Range',_0x16fdc1+'-'+_0x303bd6+'/'+_0x59939d)['json'](_0x298f56);}return null;};}function saveUpdates(_0x353f2e){return function(_0x3e834e){const _0x5bface=a534_0x363f;if(_0x3e834e)return _0x3e834e[_0x5bface('0x5')](_0x353f2e)[_0x5bface('0x25')](function(_0x4b27da){return _0x4b27da;});return null;};}function handleEntityNotFound(_0x3d8371){return function(_0x22388e){const _0xfc8760=a534_0x363f;return!_0x22388e&&_0x3d8371[_0xfc8760('0x31')](0x194),_0x22388e;};}function handleError(_0x17cfdb,_0x24e83d){return _0x24e83d=_0x24e83d||0x1f4,function(_0x2b3e7e){const _0x48dfaa=a534_0x363f;logger[_0x48dfaa('0x12')](_0x2b3e7e[_0x48dfaa('0x37')]),_0x2b3e7e[_0x48dfaa('0x3b')]&&delete _0x2b3e7e[_0x48dfaa('0x3b')],_0x17cfdb[_0x48dfaa('0x45')](_0x24e83d)[_0x48dfaa('0x33')](_0x2b3e7e);};}exports[_0x3ac2f7('0x29')]=function(_0x5e4410,_0x54dd45){const _0x4f4986=_0x3ac2f7;let _0xa25370={};const _0x3b9c41={},_0x1516a5={'count':0x0,'rows':[]},_0x2d20c3=_[_0x4f4986('0x44')](db['ScreenRecording']['rawAttributes'],function(_0x29dacb){const _0x5bfdf5=_0x4f4986;return{'name':_0x29dacb[_0x5bfdf5('0x4a')],'type':_0x29dacb[_0x5bfdf5('0x2a')][_0x5bfdf5('0xe')]};});_0x3b9c41[_0x4f4986('0x19')]=_[_0x4f4986('0x48')](_[_0x4f4986('0x44')](_0x2d20c3,_0x4f4986('0x3b')),[_0x4f4986('0x41')]),_0x3b9c41['query']=_[_0x4f4986('0x34')](_0x5e4410['query']),_0x3b9c41[_0x4f4986('0x51')]=_['intersection'](_0x3b9c41[_0x4f4986('0x19')],_0x3b9c41[_0x4f4986('0x46')]),_0xa25370[_0x4f4986('0x2e')]=_[_0x4f4986('0x42')](_0x3b9c41[_0x4f4986('0x19')],qs[_0x4f4986('0x10')](_0x5e4410[_0x4f4986('0x46')][_0x4f4986('0x10')])),_0xa25370[_0x4f4986('0x2e')]=_0xa25370[_0x4f4986('0x2e')][_0x4f4986('0x4e')]?_0xa25370[_0x4f4986('0x2e')]:_0x3b9c41['model'];typeof _0x5e4410[_0x4f4986('0x46')][_0x4f4986('0x0')]===_0x4f4986('0x40')&&(_0xa25370[_0x4f4986('0x2d')]=qs['limit'](_0x5e4410[_0x4f4986('0x46')]['limit']),_0xa25370['offset']=qs[_0x4f4986('0x18')](_0x5e4410[_0x4f4986('0x46')][_0x4f4986('0x18')]));_0xa25370[_0x4f4986('0x35')]=qs[_0x4f4986('0x30')](_0x5e4410[_0x4f4986('0x46')][_0x4f4986('0x30')]),_0xa25370['where']=qs[_0x4f4986('0x51')](_[_0x4f4986('0x1b')](_0x5e4410[_0x4f4986('0x46')],_0x3b9c41['filters']),_0x2d20c3);_0x5e4410['query'][_0x4f4986('0x32')]&&(_0xa25370[_0x4f4986('0x4')]=_[_0x4f4986('0x1')](_0xa25370[_0x4f4986('0x4')],{[Op['or']]:_['map'](_0x2d20c3,function(_0xcc61c5){const _0x48aafc=_0x4f4986;if(_0xcc61c5[_0x48aafc('0x2a')]!=='VIRTUAL'){const _0x5aa069={};return _0x5aa069[_0xcc61c5[_0x48aafc('0x3b')]]={[Op['like']]:'%'+_0x5e4410[_0x48aafc('0x46')][_0x48aafc('0x32')]+'%'},_0x5aa069;}})}));_0xa25370=_[_0x4f4986('0x1')]({},_0xa25370,_0x5e4410[_0x4f4986('0x53')]);const _0x2195ab={'where':_0xa25370['where']};return db[_0x4f4986('0xa')][_0x4f4986('0x15')](_0x2195ab)['then'](function(_0x3a8323){const _0x453166=_0x4f4986;return _0x1516a5['count']=_0x3a8323,_0x5e4410[_0x453166('0x46')][_0x453166('0x3f')]&&(_0xa25370['include']=[{'all':!![]}]),db[_0x453166('0xa')][_0x453166('0x16')](_0xa25370);})[_0x4f4986('0x25')](function(_0xe7e249){return _0x1516a5['rows']=_0xe7e249,_0x1516a5;})[_0x4f4986('0x25')](respondWithFilteredResult(_0x54dd45,_0xa25370))['catch'](handleError(_0x54dd45,null));},exports[_0x3ac2f7('0x2b')]=function(_0x513756,_0x452cc1){const _0x2702bc=_0x3ac2f7;let _0x5eea7b={'raw':![],'where':{'id':_0x513756['params']['id']}};const _0x200346={};return _0x200346[_0x2702bc('0x19')]=_['keys'](db['ScreenRecording'][_0x2702bc('0x1d')]),_0x200346[_0x2702bc('0x46')]=_['keys'](_0x513756[_0x2702bc('0x46')]),_0x200346['filters']=_[_0x2702bc('0x42')](_0x200346[_0x2702bc('0x19')],_0x200346[_0x2702bc('0x46')]),_0x5eea7b[_0x2702bc('0x2e')]=_[_0x2702bc('0x42')](_0x200346[_0x2702bc('0x19')],qs[_0x2702bc('0x10')](_0x513756['query'][_0x2702bc('0x10')])),_0x5eea7b['attributes']=_0x5eea7b[_0x2702bc('0x2e')][_0x2702bc('0x4e')]?_0x5eea7b['attributes']:_0x200346[_0x2702bc('0x19')],_0x513756['query'][_0x2702bc('0x3f')]&&(_0x5eea7b[_0x2702bc('0x4f')]=[{'all':!![]}]),_0x5eea7b=_[_0x2702bc('0x1')]({},_0x5eea7b,_0x513756[_0x2702bc('0x53')]),db[_0x2702bc('0xa')][_0x2702bc('0x22')](_0x5eea7b)[_0x2702bc('0x25')](handleEntityNotFound(_0x452cc1,null))['then'](respondWithResult(_0x452cc1,null))['catch'](handleError(_0x452cc1,null));},exports['create']=function(_0x5c11e6,_0x4b7666){const _0x1064a8=_0x3ac2f7;return db['ScreenRecording'][_0x1064a8('0x2f')](_0x5c11e6[_0x1064a8('0x3c')],{})['then'](respondWithResult(_0x4b7666,0xc9))[_0x1064a8('0x49')](handleError(_0x4b7666,null));},exports[_0x3ac2f7('0x5')]=function(_0x306cd5,_0x3d766c){const _0x2b1b3d=_0x3ac2f7;return _0x306cd5[_0x2b1b3d('0x3c')]['id']&&delete _0x306cd5['body']['id'],delete _0x306cd5[_0x2b1b3d('0x3c')]['duration'],delete _0x306cd5[_0x2b1b3d('0x3c')][_0x2b1b3d('0x20')],delete _0x306cd5[_0x2b1b3d('0x3c')][_0x2b1b3d('0x3e')],delete _0x306cd5[_0x2b1b3d('0x3c')]['value'],db['ScreenRecording'][_0x2b1b3d('0x22')]({'where':{'id':_0x306cd5['params']['id']}})[_0x2b1b3d('0x25')](handleEntityNotFound(_0x3d766c,null))[_0x2b1b3d('0x25')](saveUpdates(_0x306cd5[_0x2b1b3d('0x3c')],null))[_0x2b1b3d('0x25')](respondWithResult(_0x3d766c,null))[_0x2b1b3d('0x49')](handleError(_0x3d766c,null));},exports['describe']=function(_0x2a4bff,_0x55334b){const _0x7a75ce=_0x3ac2f7;return db['ScreenRecording'][_0x7a75ce('0xc')]()[_0x7a75ce('0x25')](respondWithResult(_0x55334b,null))['catch'](handleError(_0x55334b,null));},exports[_0x3ac2f7('0x11')]=function(_0xdd457b,_0x4cd2d0){const _0x17d3ed=_0x3ac2f7,_0x2917af=require('../../components/encryptor');let _0x2a3de2=![];const _0x1c6cc4={};return _0xdd457b['query'][_0x17d3ed('0x2a')]&&_0xdd457b[_0x17d3ed('0x46')][_0x17d3ed('0x2a')]===_0x17d3ed('0x17')?_0x1c6cc4[_0x17d3ed('0x17')]=_0xdd457b[_0x17d3ed('0x50')]['id']:_0x1c6cc4['id']=_0xdd457b['params']['id'],db[_0x17d3ed('0xa')]['findOne']({'where':_0x1c6cc4,'attributes':['id',_0x17d3ed('0x2c')],'raw':!![]})[_0x17d3ed('0x25')](handleEntityNotFound(_0x4cd2d0,null))['then'](function(_0x45580a){const _0x530736=_0x17d3ed;if(_0x45580a){const _0x44f690=path[_0x530736('0x28')](config[_0x530736('0x23')],'server/files/screen_recordings',_0x45580a[_0x530736('0x2c')]),_0x4acaed=util[_0x530736('0x41')](_0x530736('0x3'),_0x44f690);if(fs['existsSync'](_0x4acaed))return _0x2a3de2=!![],_0x2917af[_0x530736('0x9')](_0x4acaed,_0x44f690,config[_0x530736('0xb')][_0x530736('0x52')])['then'](function(){return _0x45580a;});return _0x45580a;}})[_0x17d3ed('0x25')](function(_0x3c76b5){const _0x61c4f9=_0x17d3ed;if(_0x3c76b5){const _0x301ea7=path[_0x61c4f9('0x28')](config[_0x61c4f9('0x23')],_0x61c4f9('0x4c'),_0x3c76b5[_0x61c4f9('0x2c')]);if(!fs[_0x61c4f9('0x6')](_0x301ea7))throw new db['Sequelize'][(_0x61c4f9('0x8'))](_0x61c4f9('0x3d'));return _0x3c76b5[_0x61c4f9('0x47')]?_0x4cd2d0[_0x61c4f9('0x11')](_0x301ea7,_0x3c76b5[_0x61c4f9('0x47')]+path[_0x61c4f9('0x38')](_0x301ea7),function(){const _0xec733e=_0x61c4f9;_0x2a3de2&&fs[_0xec733e('0x1f')](_0x301ea7);}):_0x4cd2d0[_0x61c4f9('0x11')](_0x301ea7,function(){_0x2a3de2&&fs['unlink'](_0x301ea7);});}})[_0x17d3ed('0x49')](function(_0x21894d){const _0x3cc655=_0x17d3ed;if(_0x21894d[_0x3cc655('0x21')]===_0x3cc655('0x3d'))_0x4cd2d0[_0x3cc655('0x45')](0x194)['send']('Not\x20found');else return handleError(_0x4cd2d0,null);});},exports[_0x3ac2f7('0x1e')]=function(_0x5a6b05,_0x1d24ac){const _0x13383b=_0x3ac2f7;return db['ScreenRecording'][_0x13383b('0x22')]({'where':{'id':_0x5a6b05['params']['id']}})[_0x13383b('0x25')](function(_0x104f38){const _0x3ab905=_0x13383b;if(!_0x104f38)throw new ReferenceError(_0x3ab905('0x1c'));return _0x104f38;})[_0x13383b('0x25')](function(_0x2c911a){const _0x3dbb3d=_0x13383b;let _0x4c3d50=path[_0x3dbb3d('0x28')](config[_0x3dbb3d('0x23')],'server/files/screen_recordings',_0x2c911a[_0x3dbb3d('0x2c')]);return logger[_0x3dbb3d('0x26')](_0x3dbb3d('0x24'),_0x4c3d50),!_[_0x3dbb3d('0x7')](_0x2c911a[_0x3dbb3d('0x2c')])&&fs[_0x3dbb3d('0x6')](_0x4c3d50)&&(logger['info'](_0x3dbb3d('0xf')+_0x4c3d50+_0x3dbb3d('0x36')),fs[_0x3dbb3d('0x39')](_0x4c3d50)),_0x4c3d50=_0x4c3d50+_0x3dbb3d('0x4b'),!_[_0x3dbb3d('0x7')](_0x2c911a['value'])&&fs['existsSync'](_0x4c3d50)&&(logger[_0x3dbb3d('0x26')](_0x3dbb3d('0xf')+_0x4c3d50+_0x3dbb3d('0x36')),fs[_0x3dbb3d('0x39')](_0x4c3d50)),_0x2c911a;})['then'](function(_0xcab218){if(!_0xcab218)throw new InternalError();return _0xcab218['destroy']();})['then'](function(){const _0x3d5f3e=_0x13383b;_0x1d24ac['status'](0xcc)[_0x3d5f3e('0x27')]();})[_0x13383b('0x49')](handleError(_0x1d24ac,null));}; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.model.js b/server/api/screenRecording/screenRecording.model.js index 58aba0b..ba507eb 100644 --- a/server/api/screenRecording/screenRecording.model.js +++ b/server/api/screenRecording/screenRecording.model.js @@ -1 +1 @@ -const a535_0x28e1=['ScreenRecording','screen_recordings','./screenRecording.attributes','interactionid'];(function(_0x3aa9e2,_0x28e1ac){const _0x12174b=function(_0x223410){while(--_0x223410){_0x3aa9e2['push'](_0x3aa9e2['shift']());}};_0x12174b(++_0x28e1ac);}(a535_0x28e1,0x90));const a535_0x1217=function(_0x3aa9e2,_0x28e1ac){_0x3aa9e2=_0x3aa9e2-0x0;let _0x12174b=a535_0x28e1[_0x3aa9e2];return _0x12174b;};const _0x20945f=a535_0x1217;'use strict';const attributes=require(_0x20945f('0x2'));module['exports']=function(_0x223410){const _0x39d75f=_0x20945f,_0x410322=_0x223410['define'](_0x39d75f('0x0'),attributes,{'tableName':_0x39d75f('0x1'),'paranoid':![],'indexes':[{'name':_0x39d75f('0x3'),'fields':[_0x39d75f('0x3')]}],'timestamps':!![]});return _0x410322;}; \ No newline at end of file +const a535_0x4d09=['interactionid','exports','./screenRecording.attributes','define'];(function(_0x1ff765,_0x4d0969){const _0x560db0=function(_0x342a34){while(--_0x342a34){_0x1ff765['push'](_0x1ff765['shift']());}};_0x560db0(++_0x4d0969);}(a535_0x4d09,0x1eb));const a535_0x560d=function(_0x1ff765,_0x4d0969){_0x1ff765=_0x1ff765-0x0;let _0x560db0=a535_0x4d09[_0x1ff765];return _0x560db0;};const _0x2be2fe=a535_0x560d;'use strict';const attributes=require(_0x2be2fe('0x3'));module[_0x2be2fe('0x2')]=function(_0x342a34){const _0x51fdbd=_0x2be2fe,_0x374534=_0x342a34[_0x51fdbd('0x0')]('ScreenRecording',attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':_0x51fdbd('0x1'),'fields':[_0x51fdbd('0x1')]}],'timestamps':!![]});return _0x374534;}; \ No newline at end of file diff --git a/server/api/setting/index.js b/server/api/setting/index.js index 2f48990..d3b90cb 100644 --- a/server/api/setting/index.js +++ b/server/api/setting/index.js @@ -1 +1 @@ -const a536_0x1575=['favicon','addLogo','./setting.controller','../../components/auth/service','exports','getPreferred','multer','getLogo','/:id/logo','/:id/favicon','/:id/preferred','originalname','util','join','addPreferred','addFavicon','addLogoLogin','/:id','post','getLogoLogin','logologin','file','/:id/gdpr','diskStorage','show','Router','../../config/environment','gdpr','single','index','logo','server/files/images/logos/','format','extname','getFavicon','express','get','update','/:id/logo_login'];(function(_0x100b7c,_0x157571){const _0x14384d=function(_0x2ef154){while(--_0x2ef154){_0x100b7c['push'](_0x100b7c['shift']());}};_0x14384d(++_0x157571);}(a536_0x1575,0x102));const a536_0x1438=function(_0x100b7c,_0x157571){_0x100b7c=_0x100b7c-0x0;let _0x14384d=a536_0x1575[_0x100b7c];return _0x14384d;};const _0x296181=a536_0x1438;'use strict';const multer=require(_0x296181('0x15')),util=require(_0x296181('0x1b')),path=require('path'),express=require(_0x296181('0xb')),router=express[_0x296181('0x1')](),auth=require(_0x296181('0x12')),config=require(_0x296181('0x2')),controller=require(_0x296181('0x11')),upload=_0x2ef154=>multer({'storage':multer[_0x296181('0x26')]({'destination':function(_0x582f17,_0x303701,_0x4aab2f){const _0x16e9a4=_0x296181;_0x4aab2f(null,path[_0x16e9a4('0x1c')](config['root'],_0x16e9a4('0x7')));},'filename':function(_0x2b1e65,_0x51ce73,_0x166437){const _0x365e6e=_0x296181;_0x166437(null,util[_0x365e6e('0x8')]('%s%s',_0x2ef154,path[_0x365e6e('0x9')](_0x51ce73[_0x365e6e('0x1a')])));}})});router[_0x296181('0xc')]('/',auth['isAuthenticated'](),controller[_0x296181('0x5')]),router[_0x296181('0xc')]('/:id',controller[_0x296181('0x0')]),router[_0x296181('0xc')](_0x296181('0x17'),controller[_0x296181('0x16')]),router['get'](_0x296181('0xe'),controller[_0x296181('0x22')]),router[_0x296181('0xc')](_0x296181('0x25'),controller[_0x296181('0x3')]),router[_0x296181('0xc')]('/:id/preferred',controller[_0x296181('0x14')]),router[_0x296181('0xc')]('/:id/favicon',controller[_0x296181('0xa')]),router[_0x296181('0x21')](_0x296181('0x17'),upload(_0x296181('0x6'))['single']('file'),controller[_0x296181('0x10')]),router[_0x296181('0x21')]('/:id/logo_login',upload(_0x296181('0x23'))[_0x296181('0x4')](_0x296181('0x24')),controller[_0x296181('0x1f')]),router['post'](_0x296181('0x19'),upload('preferred')[_0x296181('0x4')](_0x296181('0x24')),controller[_0x296181('0x1d')]),router[_0x296181('0x21')](_0x296181('0x18'),upload(_0x296181('0xf'))[_0x296181('0x4')](_0x296181('0x24')),controller[_0x296181('0x1e')]),router['put'](_0x296181('0x20'),auth['isAuthenticated'](),controller[_0x296181('0xd')]),module[_0x296181('0x13')]=router; \ No newline at end of file +const a536_0x165d=['Router','post','/:id/favicon','format','update','index','/:id/preferred','/:id/logo_login','multer','addLogo','/:id','/:id/logo','file','logo','single','util','isAuthenticated','exports','getLogo','%s%s','logologin','./setting.controller','preferred','diskStorage','root','server/files/images/logos/','gdpr','getFavicon','put','favicon','path','../../components/auth/service','express','get','getPreferred'];(function(_0x2846cf,_0x165d41){const _0x22d41c=function(_0x57b9aa){while(--_0x57b9aa){_0x2846cf['push'](_0x2846cf['shift']());}};_0x22d41c(++_0x165d41);}(a536_0x165d,0x171));const a536_0x22d4=function(_0x2846cf,_0x165d41){_0x2846cf=_0x2846cf-0x0;let _0x22d41c=a536_0x165d[_0x2846cf];return _0x22d41c;};const _0x142a6a=a536_0x22d4;'use strict';const multer=require(_0x142a6a('0x18')),util=require(_0x142a6a('0x1f')),path=require(_0x142a6a('0xb')),express=require(_0x142a6a('0xd')),router=express[_0x142a6a('0x10')](),auth=require(_0x142a6a('0xc')),config=require('../../config/environment'),controller=require(_0x142a6a('0x2')),upload=_0x57b9aa=>multer({'storage':multer[_0x142a6a('0x4')]({'destination':function(_0x1df54f,_0x381cf9,_0x4e4c26){const _0x80f00d=_0x142a6a;_0x4e4c26(null,path['join'](config[_0x80f00d('0x5')],_0x80f00d('0x6')));},'filename':function(_0x1ca633,_0x2257fb,_0x517141){const _0x5c7ab0=_0x142a6a;_0x517141(null,util[_0x5c7ab0('0x13')](_0x5c7ab0('0x0'),_0x57b9aa,path['extname'](_0x2257fb['originalname'])));}})});router[_0x142a6a('0xe')]('/',auth[_0x142a6a('0x20')](),controller[_0x142a6a('0x15')]),router['get'](_0x142a6a('0x1a'),controller['show']),router[_0x142a6a('0xe')](_0x142a6a('0x1b'),controller[_0x142a6a('0x22')]),router[_0x142a6a('0xe')](_0x142a6a('0x17'),controller['getLogoLogin']),router['get']('/:id/gdpr',controller[_0x142a6a('0x7')]),router['get'](_0x142a6a('0x16'),controller[_0x142a6a('0xf')]),router[_0x142a6a('0xe')](_0x142a6a('0x12'),controller[_0x142a6a('0x8')]),router[_0x142a6a('0x11')]('/:id/logo',upload(_0x142a6a('0x1d'))[_0x142a6a('0x1e')](_0x142a6a('0x1c')),controller[_0x142a6a('0x19')]),router[_0x142a6a('0x11')]('/:id/logo_login',upload(_0x142a6a('0x1'))[_0x142a6a('0x1e')](_0x142a6a('0x1c')),controller['addLogoLogin']),router[_0x142a6a('0x11')](_0x142a6a('0x16'),upload(_0x142a6a('0x3'))[_0x142a6a('0x1e')](_0x142a6a('0x1c')),controller['addPreferred']),router[_0x142a6a('0x11')]('/:id/favicon',upload(_0x142a6a('0xa'))[_0x142a6a('0x1e')]('file'),controller['addFavicon']),router[_0x142a6a('0x9')](_0x142a6a('0x1a'),auth[_0x142a6a('0x20')](),controller[_0x142a6a('0x14')]),module[_0x142a6a('0x21')]=router; \ No newline at end of file diff --git a/server/api/setting/setting.attributes.js b/server/api/setting/setting.attributes.js index 6ebd6d2..77134fa 100644 --- a/server/api/setting/setting.attributes.js +++ b/server/api/setting/setting.attributes.js @@ -1 +1 @@ -const a537_0x5b3e=['sequelize','min_mailbox','BOOLEAN','STRING','exports','https://www.xcally.com/bar/phonebar/autoupdater.xml','UNSIGNED','INTEGER'];(function(_0x277e30,_0x5b3e75){const _0x201905=function(_0x2549a1){while(--_0x2549a1){_0x277e30['push'](_0x277e30['shift']());}};_0x201905(++_0x5b3e75);}(a537_0x5b3e,0x76));const a537_0x2019=function(_0x277e30,_0x5b3e75){_0x277e30=_0x277e30-0x0;let _0x201905=a537_0x5b3e[_0x277e30];return _0x201905;};const _0x4d6c26=a537_0x2019;'use strict';const Sequelize=require(_0x4d6c26('0x2'));module[_0x4d6c26('0x6')]={'min_internal':{'type':Sequelize[_0x4d6c26('0x1')](0xb),'unique':'min_internal','defaultValue':0x3e8},'min_mailbox':{'type':Sequelize[_0x4d6c26('0x1')](0xb),'unique':_0x4d6c26('0x3'),'defaultValue':0x3e8},'agi_port':{'type':Sequelize[_0x4d6c26('0x1')](0xb),'defaultValue':0x11dd},'soundPath':{'type':Sequelize[_0x4d6c26('0x5')],'defaultValue':'/var/opt/motion2/server/files/sounds/converted'},'logo':{'type':Sequelize[_0x4d6c26('0x5')]},'defaultLogo':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'loginLogo':{'type':Sequelize[_0x4d6c26('0x5')]},'defaultLoginLogo':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'headerWhiteLabel':{'type':Sequelize[_0x4d6c26('0x5')]},'defaultHeaderWhiteLabel':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'securePassword':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'firstSetup':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'stunaddr':{'type':Sequelize[_0x4d6c26('0x5')]},'turnaddr':{'type':Sequelize[_0x4d6c26('0x5')]},'turnusername':{'type':Sequelize['STRING']},'turnpassword':{'type':Sequelize[_0x4d6c26('0x5')]},'pageTitle':{'type':Sequelize[_0x4d6c26('0x5')]},'defaultPageTitle':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'callRecordingEncryption':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':![]},'passwordExpiresDays':{'type':Sequelize[_0x4d6c26('0x1')](0xb),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':Sequelize[_0x4d6c26('0x5')],'defaultValue':_0x4d6c26('0x7')},'enableEmailPreview':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':![]},'split':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'splitSizeCsv':{'type':Sequelize[_0x4d6c26('0x1')],'defaultValue':0x1388},'splitSizePdf':{'type':Sequelize[_0x4d6c26('0x1')],'defaultValue':0x1388},'splitSizeXlsx':{'type':Sequelize[_0x4d6c26('0x1')],'defaultValue':0x1388},'messagesAlignment':{'type':Sequelize[_0x4d6c26('0x5')],'defaultValue':'alternate'},'chatTimeout':{'type':Sequelize[_0x4d6c26('0x1')],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'preferred':{'type':Sequelize[_0x4d6c26('0x5')]},'defaultPreferred':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'rtlSupport':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':![]},'defaultScreenRecordingPath':{'type':Sequelize[_0x4d6c26('0x5')]},'allowedLoginAttempts':{'type':Sequelize['INTEGER'],'defaultValue':0x5},'blockDuration':{'type':Sequelize[_0x4d6c26('0x1')],'defaultValue':0xa},'favicon':{'type':Sequelize[_0x4d6c26('0x5')]},'defaultFavicon':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'loginMailFrequency':{'type':Sequelize[_0x4d6c26('0x1')],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':![]},'automaticTranscribe':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':![]},'transcribeAccountId':{'type':Sequelize['INTEGER']},'transcribeRegion':{'type':Sequelize['STRING']},'sentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'automaticSentiment':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':![]},'sentimentAccountId':{'type':Sequelize[_0x4d6c26('0x1')]},'sentimentRegion':{'type':Sequelize['STRING']},'language':{'type':Sequelize[_0x4d6c26('0x5')]},'bucket':{'type':Sequelize[_0x4d6c26('0x5')]},'googleSsoEnabled':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':![]},'enforcePasswordHistory':{'type':Sequelize[_0x4d6c26('0x4')],'defaultValue':!![]},'passwordHistoryLimit':{'type':Sequelize[_0x4d6c26('0x1')](0x2)[_0x4d6c26('0x0')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}}; \ No newline at end of file +const a537_0x43e6=['UNSIGNED','alternate','BOOLEAN','STRING','min_internal','sequelize','min_mailbox','/var/opt/motion2/server/files/sounds/converted','INTEGER','https://www.xcally.com/bar/phonebar/autoupdater.xml'];(function(_0x573515,_0x43e6a3){const _0x4c1be7=function(_0x2e5758){while(--_0x2e5758){_0x573515['push'](_0x573515['shift']());}};_0x4c1be7(++_0x43e6a3);}(a537_0x43e6,0xe1));const a537_0x4c1b=function(_0x573515,_0x43e6a3){_0x573515=_0x573515-0x0;let _0x4c1be7=a537_0x43e6[_0x573515];return _0x4c1be7;};const _0x33f888=a537_0x4c1b;'use strict';const Sequelize=require(_0x33f888('0x0'));module['exports']={'min_internal':{'type':Sequelize['INTEGER'](0xb),'unique':_0x33f888('0x9'),'defaultValue':0x3e8},'min_mailbox':{'type':Sequelize[_0x33f888('0x3')](0xb),'unique':_0x33f888('0x1'),'defaultValue':0x3e8},'agi_port':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x11dd},'soundPath':{'type':Sequelize[_0x33f888('0x8')],'defaultValue':_0x33f888('0x2')},'logo':{'type':Sequelize[_0x33f888('0x8')]},'defaultLogo':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'loginLogo':{'type':Sequelize[_0x33f888('0x8')]},'defaultLoginLogo':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'headerWhiteLabel':{'type':Sequelize[_0x33f888('0x8')]},'defaultHeaderWhiteLabel':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'securePassword':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'firstSetup':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'stunaddr':{'type':Sequelize[_0x33f888('0x8')]},'turnaddr':{'type':Sequelize[_0x33f888('0x8')]},'turnusername':{'type':Sequelize[_0x33f888('0x8')]},'turnpassword':{'type':Sequelize[_0x33f888('0x8')]},'pageTitle':{'type':Sequelize[_0x33f888('0x8')]},'defaultPageTitle':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'callRecordingEncryption':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'passwordExpiresDays':{'type':Sequelize[_0x33f888('0x3')](0xb),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':Sequelize[_0x33f888('0x8')],'defaultValue':_0x33f888('0x4')},'enableEmailPreview':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'split':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'splitSizeCsv':{'type':Sequelize[_0x33f888('0x3')],'defaultValue':0x1388},'splitSizePdf':{'type':Sequelize[_0x33f888('0x3')],'defaultValue':0x1388},'splitSizeXlsx':{'type':Sequelize[_0x33f888('0x3')],'defaultValue':0x1388},'messagesAlignment':{'type':Sequelize[_0x33f888('0x8')],'defaultValue':_0x33f888('0x6')},'chatTimeout':{'type':Sequelize['INTEGER'],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'preferred':{'type':Sequelize['STRING']},'defaultPreferred':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'rtlSupport':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':![]},'defaultScreenRecordingPath':{'type':Sequelize[_0x33f888('0x8')]},'allowedLoginAttempts':{'type':Sequelize['INTEGER'],'defaultValue':0x5},'blockDuration':{'type':Sequelize[_0x33f888('0x3')],'defaultValue':0xa},'favicon':{'type':Sequelize['STRING']},'defaultFavicon':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'loginMailFrequency':{'type':Sequelize[_0x33f888('0x3')],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':![]},'automaticTranscribe':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':![]},'transcribeAccountId':{'type':Sequelize[_0x33f888('0x3')]},'transcribeRegion':{'type':Sequelize[_0x33f888('0x8')]},'sentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'automaticSentiment':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':![]},'sentimentAccountId':{'type':Sequelize['INTEGER']},'sentimentRegion':{'type':Sequelize[_0x33f888('0x8')]},'language':{'type':Sequelize[_0x33f888('0x8')]},'bucket':{'type':Sequelize[_0x33f888('0x8')]},'googleSsoEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enforcePasswordHistory':{'type':Sequelize[_0x33f888('0x7')],'defaultValue':!![]},'passwordHistoryLimit':{'type':Sequelize[_0x33f888('0x3')](0x2)[_0x33f888('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}}; \ No newline at end of file diff --git a/server/api/setting/setting.controller.js b/server/api/setting/setting.controller.js index 2e1dd3c..cf014f6 100644 --- a/server/api/setting/setting.controller.js +++ b/server/api/setting/setting.controller.js @@ -1 +1 @@ -const a538_0x2f2b=['api','loginLogo','VIRTUAL','like','error','addLogo','catch','then','addLogoLogin','path','getLogoLogin','ValidationError','nolimit','order','filter','custom','sequelize','gdpr','\x20not\x20found','securePassword','filters','body','existsSync','logo','type','fields','default_preferred.png','query','options','map','model','Setting','files/images/logos','keys','key','getLogo','includeAll','sort','root','../../config/environment','download','show','include','defaultLoginLogo','getLicense','send','getPreferred','file','offset','Sequelize','status','toLower','update','default','../../config/logger','where','merge','defaultFavicon','filename','defaultLogo','name','default_logo.svg','default_loginLogo.svg','default_favicon.ico','defaultPreferred','../../config/license/util','upperFirst','rawAttributes','getFavicon','count','params','findAll','join','attributes','findOne','../../components/parsers/qs','intersection','length','fieldName','addPreferred','limit','favicon','preferred'];(function(_0x289508,_0x2f2b8b){const _0x11bb3d=function(_0x13a9b8){while(--_0x13a9b8){_0x289508['push'](_0x289508['shift']());}};_0x11bb3d(++_0x2f2b8b);}(a538_0x2f2b,0x7c));const a538_0x11bb=function(_0x289508,_0x2f2b8b){_0x289508=_0x289508-0x0;let _0x11bb3d=a538_0x2f2b[_0x289508];return _0x11bb3d;};const _0x2eb259=a538_0x11bb;'use strict';const path=require(_0x2eb259('0x33')),fs=require('fs'),_=require('lodash'),qs=require(_0x2eb259('0x22')),logger=require(_0x2eb259('0xd'))(_0x2eb259('0x2a')),config=require(_0x2eb259('0x51')),db=require('../../mysqldb')['db'],{Op}=require(_0x2eb259('0x3a')),utilLicense=require(_0x2eb259('0x18'));function respondWithResult(_0x13a9b8,_0x4da97c){return _0x4da97c=_0x4da97c||0xc8,function(_0x59f66f){const _0x25774a=a538_0x11bb;if(_0x59f66f)return _0x13a9b8[_0x25774a('0x9')](_0x4da97c)['json'](_0x59f66f);};}function respondWithFilteredResult(_0x2ac3be,_0x860e92){return function(_0x47fb84){const _0x105b94=a538_0x11bb;if(_0x47fb84){const _0x5a2b67=_0x47fb84[_0x105b94('0x1c')],_0x98f83d=_0x860e92['offset'];let _0x320998=_0x860e92['offset']+_0x860e92[_0x105b94('0x27')],_0x4214b6;return _0x320998>=_0x5a2b67?(_0x320998=_0x5a2b67,_0x4214b6=0xc8):_0x4214b6=0xce,_0x2ac3be[_0x105b94('0x9')](_0x4214b6),_0x2ac3be['set']('Content-Range',_0x98f83d+'-'+_0x320998+'/'+_0x5a2b67)['json'](_0x47fb84);}return null;};}function saveUpdates(_0x2dc63d){return function(_0x5505aa){const _0x23eb8e=a538_0x11bb;if(_0x5505aa)return _0x5505aa[_0x23eb8e('0xb')](_0x2dc63d)[_0x23eb8e('0x31')](function(_0x5dae03){return _0x5dae03;});return null;};}function handleEntityNotFound(_0x3f2f38){return function(_0x2084e5){return!_0x2084e5&&_0x3f2f38['sendStatus'](0x194),_0x2084e5;};}function handleError(_0x44e865,_0x4d53d5){return _0x4d53d5=_0x4d53d5||0x1f4,function(_0x315c24){const _0x159192=a538_0x11bb;logger[_0x159192('0x2e')](_0x315c24['stack']),_0x315c24[_0x159192('0x13')]&&delete _0x315c24[_0x159192('0x13')],_0x44e865[_0x159192('0x9')](_0x4d53d5)[_0x159192('0x4')](_0x315c24);};}exports['index']=function(_0x321962,_0x150cfb){const _0x44625c=_0x2eb259;let _0xa2e61e={};const _0x3dfa01={},_0x1ca843={'count':0x0,'rows':[]},_0x5e74d6=_[_0x44625c('0x47')](db['Setting'][_0x44625c('0x1a')],function(_0x2ae265){const _0x872809=_0x44625c;return{'name':_0x2ae265[_0x872809('0x25')],'type':_0x2ae265[_0x872809('0x42')][_0x872809('0x4c')]};});_0x3dfa01[_0x44625c('0x48')]=_['map'](_0x5e74d6,_0x44625c('0x13')),_0x3dfa01[_0x44625c('0x45')]=_['keys'](_0x321962[_0x44625c('0x45')]),_0x3dfa01[_0x44625c('0x3e')]=_[_0x44625c('0x23')](_0x3dfa01[_0x44625c('0x48')],_0x3dfa01['query']),_0xa2e61e[_0x44625c('0x20')]=_['intersection'](_0x3dfa01[_0x44625c('0x48')],qs[_0x44625c('0x43')](_0x321962[_0x44625c('0x45')][_0x44625c('0x43')])),_0xa2e61e[_0x44625c('0x20')]=_0xa2e61e[_0x44625c('0x20')][_0x44625c('0x24')]?_0xa2e61e[_0x44625c('0x20')]:_0x3dfa01[_0x44625c('0x48')];typeof _0x321962['query'][_0x44625c('0x36')]==='undefined'&&(_0xa2e61e['limit']=qs[_0x44625c('0x27')](_0x321962[_0x44625c('0x45')][_0x44625c('0x27')]),_0xa2e61e[_0x44625c('0x7')]=qs['offset'](_0x321962['query'][_0x44625c('0x7')]));_0xa2e61e[_0x44625c('0x37')]=qs[_0x44625c('0x4f')](_0x321962[_0x44625c('0x45')][_0x44625c('0x4f')]),_0xa2e61e[_0x44625c('0xe')]=qs[_0x44625c('0x3e')](_['pick'](_0x321962[_0x44625c('0x45')],_0x3dfa01[_0x44625c('0x3e')]),_0x5e74d6);_0x321962['query'][_0x44625c('0x38')]&&(_0xa2e61e[_0x44625c('0xe')]=_[_0x44625c('0xf')](_0xa2e61e['where'],{[Op['or']]:_[_0x44625c('0x47')](_0x5e74d6,function(_0x59be40){const _0x167ade=_0x44625c;if(_0x59be40[_0x167ade('0x42')]!==_0x167ade('0x2c')){const _0x4e00f3={};return _0x4e00f3[_0x59be40[_0x167ade('0x13')]]={[Op[_0x167ade('0x2d')]]:'%'+_0x321962[_0x167ade('0x45')][_0x167ade('0x38')]+'%'},_0x4e00f3;}})}));_0xa2e61e=_[_0x44625c('0xf')]({},_0xa2e61e,_0x321962[_0x44625c('0x46')]);const _0x5d4637={'where':_0xa2e61e[_0x44625c('0xe')]};return db[_0x44625c('0x49')][_0x44625c('0x1c')](_0x5d4637)[_0x44625c('0x31')](function(_0x5a3242){const _0x5d6a40=_0x44625c;return _0x1ca843[_0x5d6a40('0x1c')]=_0x5a3242,_0x321962[_0x5d6a40('0x45')][_0x5d6a40('0x4e')]&&(_0xa2e61e['include']=[{'all':!![]}]),db['Setting'][_0x5d6a40('0x1e')](_0xa2e61e);})[_0x44625c('0x31')](function(_0x4307ba){return _0x1ca843['rows']=_0x4307ba,_0x1ca843;})[_0x44625c('0x31')](respondWithFilteredResult(_0x150cfb,_0xa2e61e))[_0x44625c('0x30')](handleError(_0x150cfb,null));},exports[_0x2eb259('0x0')]=function(_0x40d16f,_0x24b660){const _0xde0a1e=_0x2eb259;let _0x1ea339={'raw':![],'where':{'id':_0x40d16f['params']['id']}};const _0x158d82={};return _0x158d82['model']=_[_0xde0a1e('0x4b')](db[_0xde0a1e('0x49')][_0xde0a1e('0x1a')]),_0x158d82[_0xde0a1e('0x45')]=_['keys'](_0x40d16f[_0xde0a1e('0x45')]),_0x158d82[_0xde0a1e('0x3e')]=_[_0xde0a1e('0x23')](_0x158d82[_0xde0a1e('0x48')],_0x158d82[_0xde0a1e('0x45')]),_0x1ea339['attributes']=_[_0xde0a1e('0x23')](_0x158d82[_0xde0a1e('0x48')],qs['fields'](_0x40d16f['query']['fields'])),_0x1ea339['attributes']=_0x1ea339[_0xde0a1e('0x20')]['length']?_0x1ea339[_0xde0a1e('0x20')]:_0x158d82[_0xde0a1e('0x48')],_0x40d16f[_0xde0a1e('0x45')][_0xde0a1e('0x4e')]&&(_0x1ea339[_0xde0a1e('0x1')]=[{'all':!![]}]),_0x1ea339=_[_0xde0a1e('0xf')]({},_0x1ea339,_0x40d16f[_0xde0a1e('0x46')]),db[_0xde0a1e('0x49')][_0xde0a1e('0x21')](_0x1ea339)[_0xde0a1e('0x31')](handleEntityNotFound(_0x24b660,null))[_0xde0a1e('0x31')](respondWithResult(_0x24b660,null))[_0xde0a1e('0x30')](handleError(_0x24b660,null));},exports[_0x2eb259('0xb')]=function(_0x17ba20,_0x32ba85){const _0x4762f1=_0x2eb259;return _0x17ba20[_0x4762f1('0x3f')]['id']&&delete _0x17ba20[_0x4762f1('0x3f')]['id'],db['Setting'][_0x4762f1('0x21')]({'where':{'id':_0x17ba20['params']['id']}})['then'](handleEntityNotFound(_0x32ba85,null))[_0x4762f1('0x31')](saveUpdates(_0x17ba20[_0x4762f1('0x3f')],null))[_0x4762f1('0x31')](respondWithResult(_0x32ba85,null))[_0x4762f1('0x30')](handleError(_0x32ba85,null));},exports[_0x2eb259('0x2f')]=function(_0x3c0694,_0x45a643){const _0x50c6a0=_0x2eb259;return _0x3c0694[_0x50c6a0('0x6')]&&_0x3c0694[_0x50c6a0('0x6')][_0x50c6a0('0x11')]&&(_0x3c0694['body'][_0x50c6a0('0x41')]=_0x3c0694[_0x50c6a0('0x6')][_0x50c6a0('0x11')]),db[_0x50c6a0('0x49')][_0x50c6a0('0x21')]({'where':{'id':_0x3c0694[_0x50c6a0('0x1d')]['id']}})['then'](handleEntityNotFound(_0x45a643,null))['then'](saveUpdates(_0x3c0694[_0x50c6a0('0x3f')],null))[_0x50c6a0('0x31')](respondWithResult(_0x45a643,null))[_0x50c6a0('0x30')](handleError(_0x45a643,null));},exports[_0x2eb259('0x32')]=function(_0x562bc7,_0x3eda52){const _0x2b99a1=_0x2eb259;return _0x562bc7[_0x2b99a1('0x6')]&&_0x562bc7[_0x2b99a1('0x6')]['filename']&&(_0x562bc7['body'][_0x2b99a1('0x2b')]=_0x562bc7[_0x2b99a1('0x6')][_0x2b99a1('0x11')]),db['Setting'][_0x2b99a1('0x21')]({'where':{'id':_0x562bc7[_0x2b99a1('0x1d')]['id']}})[_0x2b99a1('0x31')](handleEntityNotFound(_0x3eda52,null))[_0x2b99a1('0x31')](saveUpdates(_0x562bc7['body'],null))[_0x2b99a1('0x31')](respondWithResult(_0x3eda52,null))[_0x2b99a1('0x30')](handleError(_0x3eda52,null));},exports[_0x2eb259('0x4d')]=function(_0xf7ee27,_0x526a3e){const _0x255d50=_0x2eb259,_0x33af21=path[_0x255d50('0x1f')](config[_0x255d50('0x50')],'files/images/logos');let _0x3221de={'custom':![]};return utilLicense[_0x255d50('0x3')]()[_0x255d50('0x31')](function(_0x5a28e6){const _0xc093ad=_0x255d50;return _0x5a28e6&&(_0x3221de=_0x5a28e6),db[_0xc093ad('0x49')][_0xc093ad('0x21')]({'where':{'id':_0xf7ee27[_0xc093ad('0x1d')]['id']},'attributes':[_0xc093ad('0x41'),_0xc093ad('0x2b'),_0xc093ad('0x29'),'favicon',_0xc093ad('0x12'),'defaultLoginLogo',_0xc093ad('0x17'),_0xc093ad('0x10')],'raw':!![]});})[_0x255d50('0x31')](handleEntityNotFound(_0x526a3e,null))[_0x255d50('0x31')](function(_0x3cf9b7){const _0x5bd7c8=_0x255d50;if(_0x3cf9b7){let _0x398ab2=_0x3cf9b7['logo']&&fs[_0x5bd7c8('0x40')](path[_0x5bd7c8('0x1f')](_0x33af21,_[_0x5bd7c8('0xa')](_0x3cf9b7[_0x5bd7c8('0x41')])))?path[_0x5bd7c8('0x1f')](_0x33af21,_[_0x5bd7c8('0xa')](_0x3cf9b7['logo'])):path['join'](_0x33af21,_[_0x5bd7c8('0xa')](_0x5bd7c8('0x14')));const _0x3441a8='default'+_[_0x5bd7c8('0x19')]('logo');(_0x3cf9b7[_0x3441a8]||!_0x3221de[_0x5bd7c8('0x39')])&&(_0x398ab2=path['join'](_0x33af21,_[_0x5bd7c8('0xa')](_0x5bd7c8('0x14'))));if(!fs[_0x5bd7c8('0x40')](_0x398ab2))throw new db[(_0x5bd7c8('0x8'))][(_0x5bd7c8('0x35'))](_[_0x5bd7c8('0x19')](_0x5bd7c8('0x41'))+'\x20not\x20found');return _0x526a3e[_0x5bd7c8('0x52')](_0x398ab2);}})['catch'](handleError(_0x526a3e,null));},exports[_0x2eb259('0x34')]=function(_0x1b96f3,_0x47f27b){const _0x402824=_0x2eb259,_0x29b415=path['join'](config[_0x402824('0x50')],_0x402824('0x4a'));let _0x2afee6={'custom':![]};return utilLicense[_0x402824('0x3')]()[_0x402824('0x31')](function(_0x159cc4){const _0xd1ad0a=_0x402824;return _0x159cc4&&(_0x2afee6=_0x159cc4),db[_0xd1ad0a('0x49')][_0xd1ad0a('0x21')]({'where':{'id':_0x1b96f3[_0xd1ad0a('0x1d')]['id']},'attributes':['logo',_0xd1ad0a('0x2b'),'preferred',_0xd1ad0a('0x28'),_0xd1ad0a('0x12'),'defaultLoginLogo',_0xd1ad0a('0x17'),_0xd1ad0a('0x10')],'raw':!![]});})[_0x402824('0x31')](handleEntityNotFound(_0x47f27b,null))[_0x402824('0x31')](function(_0x19d3d7){const _0x428f29=_0x402824;if(_0x19d3d7){let _0xb32432=_0x19d3d7['loginLogo']&&fs[_0x428f29('0x40')](path[_0x428f29('0x1f')](_0x29b415,_[_0x428f29('0xa')](_0x19d3d7[_0x428f29('0x2b')])))?path[_0x428f29('0x1f')](_0x29b415,_['toLower'](_0x19d3d7['loginLogo'])):path[_0x428f29('0x1f')](_0x29b415,_['toLower'](_0x428f29('0x15')));const _0x32238b=_0x428f29('0xc')+_[_0x428f29('0x19')]('loginLogo');(_0x19d3d7[_0x32238b]||!_0x2afee6[_0x428f29('0x39')])&&(_0xb32432=path[_0x428f29('0x1f')](_0x29b415,_[_0x428f29('0xa')](_0x428f29('0x15'))));if(!fs['existsSync'](_0xb32432))throw new db[(_0x428f29('0x8'))][(_0x428f29('0x35'))](_[_0x428f29('0x19')]('loginLogo')+_0x428f29('0x3c'));return _0x47f27b['download'](_0xb32432);}})['catch'](handleError(_0x47f27b,null));},exports[_0x2eb259('0x3b')]=function(_0x4222e8,_0x456a78){const _0x393ee6=_0x2eb259;return db[_0x393ee6('0x49')][_0x393ee6('0x21')]({'where':{'id':_0x4222e8[_0x393ee6('0x1d')]['id']},'attributes':[_0x393ee6('0x3d')]})[_0x393ee6('0x31')](respondWithResult(_0x456a78,null))[_0x393ee6('0x30')](handleError(_0x456a78,null));},exports[_0x2eb259('0x26')]=function(_0x1e995b,_0x27b7f6){const _0x1448ab=_0x2eb259;return _0x1e995b[_0x1448ab('0x6')]&&_0x1e995b[_0x1448ab('0x6')]['filename']&&(_0x1e995b[_0x1448ab('0x3f')][_0x1448ab('0x29')]=_0x1e995b[_0x1448ab('0x6')][_0x1448ab('0x11')]),db[_0x1448ab('0x49')][_0x1448ab('0x21')]({'where':{'id':_0x1e995b[_0x1448ab('0x1d')]['id']}})[_0x1448ab('0x31')](handleEntityNotFound(_0x27b7f6,null))['then'](saveUpdates(_0x1e995b[_0x1448ab('0x3f')],null))[_0x1448ab('0x31')](respondWithResult(_0x27b7f6,null))[_0x1448ab('0x30')](handleError(_0x27b7f6,null));},exports[_0x2eb259('0x5')]=function(_0x4f3979,_0xc3628d){const _0x333c9c=_0x2eb259,_0x8ee6a2=path['join'](config[_0x333c9c('0x50')],'files/images/logos');let _0x4baaac={'custom':![]};return utilLicense['getLicense']()[_0x333c9c('0x31')](function(_0x2c9f69){const _0x33cd3f=_0x333c9c;return _0x2c9f69&&(_0x4baaac=_0x2c9f69),db[_0x33cd3f('0x49')][_0x33cd3f('0x21')]({'where':{'id':_0x4f3979[_0x33cd3f('0x1d')]['id']},'attributes':['logo',_0x33cd3f('0x2b'),_0x33cd3f('0x29'),_0x33cd3f('0x28'),_0x33cd3f('0x12'),_0x33cd3f('0x2'),_0x33cd3f('0x17'),_0x33cd3f('0x10')],'raw':!![]});})['then'](handleEntityNotFound(_0xc3628d,null))[_0x333c9c('0x31')](function(_0x202d41){const _0x1eae85=_0x333c9c;if(_0x202d41){let _0x413c33=_0x202d41[_0x1eae85('0x29')]&&fs[_0x1eae85('0x40')](path['join'](_0x8ee6a2,_['toLower'](_0x202d41['preferred'])))?path[_0x1eae85('0x1f')](_0x8ee6a2,_[_0x1eae85('0xa')](_0x202d41[_0x1eae85('0x29')])):path['join'](_0x8ee6a2,_[_0x1eae85('0xa')](_0x1eae85('0x44')));const _0x4a7a04=_0x1eae85('0xc')+_[_0x1eae85('0x19')](_0x1eae85('0x29'));(_0x202d41[_0x4a7a04]||!_0x4baaac[_0x1eae85('0x39')]||!_0x4baaac[_0x1eae85('0x29')])&&(_0x413c33=path[_0x1eae85('0x1f')](_0x8ee6a2,_[_0x1eae85('0xa')](_0x1eae85('0x44'))));if(!fs[_0x1eae85('0x40')](_0x413c33))throw new db[(_0x1eae85('0x8'))][(_0x1eae85('0x35'))](_[_0x1eae85('0x19')](_0x1eae85('0x29'))+_0x1eae85('0x3c'));return _0xc3628d[_0x1eae85('0x52')](_0x413c33);}})['catch'](handleError(_0xc3628d,null));},exports['addFavicon']=function(_0x31e67a,_0x30eb8f){const _0x1b1fb3=_0x2eb259;return _0x31e67a['file']&&_0x31e67a[_0x1b1fb3('0x6')][_0x1b1fb3('0x11')]&&(_0x31e67a[_0x1b1fb3('0x3f')][_0x1b1fb3('0x28')]=_0x31e67a['file'][_0x1b1fb3('0x11')]),db[_0x1b1fb3('0x49')][_0x1b1fb3('0x21')]({'where':{'id':_0x31e67a[_0x1b1fb3('0x1d')]['id']}})[_0x1b1fb3('0x31')](handleEntityNotFound(_0x30eb8f,null))[_0x1b1fb3('0x31')](saveUpdates(_0x31e67a[_0x1b1fb3('0x3f')],null))['then'](respondWithResult(_0x30eb8f,null))[_0x1b1fb3('0x30')](handleError(_0x30eb8f,null));},exports[_0x2eb259('0x1b')]=function(_0x9e4237,_0x45a8e7){const _0x2d4b0a=_0x2eb259,_0x38ccfb=path[_0x2d4b0a('0x1f')](config[_0x2d4b0a('0x50')],_0x2d4b0a('0x4a'));let _0x148a44={'custom':![]};return utilLicense[_0x2d4b0a('0x3')]()[_0x2d4b0a('0x31')](function(_0x461898){const _0x441ee2=_0x2d4b0a;return _0x461898&&(_0x148a44=_0x461898),db['Setting'][_0x441ee2('0x21')]({'where':{'id':_0x9e4237[_0x441ee2('0x1d')]['id']},'attributes':[_0x441ee2('0x41'),'loginLogo',_0x441ee2('0x29'),_0x441ee2('0x28'),'defaultLogo',_0x441ee2('0x2'),_0x441ee2('0x17'),_0x441ee2('0x10')],'raw':!![]});})[_0x2d4b0a('0x31')](handleEntityNotFound(_0x45a8e7,null))[_0x2d4b0a('0x31')](function(_0x24d35c){const _0x2f040a=_0x2d4b0a;if(_0x24d35c){let _0x22dec4=_0x24d35c[_0x2f040a('0x28')]&&fs[_0x2f040a('0x40')](path[_0x2f040a('0x1f')](_0x38ccfb,_['toLower'](_0x24d35c[_0x2f040a('0x28')])))?path[_0x2f040a('0x1f')](_0x38ccfb,_[_0x2f040a('0xa')](_0x24d35c[_0x2f040a('0x28')])):path[_0x2f040a('0x1f')](_0x38ccfb,_['toLower'](_0x2f040a('0x16')));const _0x4e5742='default'+_[_0x2f040a('0x19')]('favicon');(_0x24d35c[_0x4e5742]||!_0x148a44[_0x2f040a('0x39')])&&(_0x22dec4=path[_0x2f040a('0x1f')](_0x38ccfb,_['toLower'](_0x2f040a('0x16'))));if(!fs[_0x2f040a('0x40')](_0x22dec4))throw new db[(_0x2f040a('0x8'))]['ValidationError'](_[_0x2f040a('0x19')](_0x2f040a('0x28'))+'\x20not\x20found');return _0x45a8e7[_0x2f040a('0x52')](_0x22dec4);}})[_0x2d4b0a('0x30')](handleError(_0x45a8e7,null));}; \ No newline at end of file +const a538_0x25be=['defaultFavicon','loginLogo','securePassword','fieldName','filters','send','merge','offset','getLogoLogin','addLogo','intersection','\x20not\x20found','default_favicon.ico','status','order','name','findAll','upperFirst','custom','default_preferred.png','../../mysqldb','keys','where','filename','lodash','limit','../../config/logger','then','favicon','like','defaultPreferred','undefined','includeAll','index','attributes','../../config/environment','body','map','sendStatus','options','addFavicon','path','Sequelize','defaultLoginLogo','default_loginLogo.svg','fields','sort','show','getLogo','Content-Range','../../config/license/util','getLicense','download','api','addPreferred','set','toLower','update','model','logo','default_logo.svg','catch','defaultLogo','ValidationError','params','json','sequelize','files/images/logos','type','length','nolimit','error','preferred','file','Setting','query','rawAttributes','root','count','join','findOne','addLogoLogin','existsSync','getFavicon','include','default','getPreferred','key'];(function(_0x4a5ccc,_0x25bead){const _0x3e75e3=function(_0x4baf3d){while(--_0x4baf3d){_0x4a5ccc['push'](_0x4a5ccc['shift']());}};_0x3e75e3(++_0x25bead);}(a538_0x25be,0x77));const a538_0x3e75=function(_0x4a5ccc,_0x25bead){_0x4a5ccc=_0x4a5ccc-0x0;let _0x3e75e3=a538_0x25be[_0x4a5ccc];return _0x3e75e3;};const _0x30d8af=a538_0x3e75;'use strict';const path=require(_0x30d8af('0xa')),fs=require('fs'),_=require(_0x30d8af('0x51')),qs=require('../../components/parsers/qs'),logger=require(_0x30d8af('0x53'))(_0x30d8af('0x16')),config=require(_0x30d8af('0x4')),db=require(_0x30d8af('0x4d'))['db'],{Op}=require(_0x30d8af('0x23')),utilLicense=require(_0x30d8af('0x13'));function respondWithResult(_0x4baf3d,_0x5e84fb){return _0x5e84fb=_0x5e84fb||0xc8,function(_0x364cb2){const _0xa4a68=a538_0x3e75;if(_0x364cb2)return _0x4baf3d[_0xa4a68('0x46')](_0x5e84fb)['json'](_0x364cb2);};}function respondWithFilteredResult(_0x411ef9,_0x26c13b){return function(_0x371a06){const _0x13df6a=a538_0x3e75;if(_0x371a06){const _0x5aa773=_0x371a06[_0x13df6a('0x2f')],_0x31d42f=_0x26c13b[_0x13df6a('0x40')];let _0x18287f=_0x26c13b[_0x13df6a('0x40')]+_0x26c13b[_0x13df6a('0x52')],_0x20e193;return _0x18287f>=_0x5aa773?(_0x18287f=_0x5aa773,_0x20e193=0xc8):_0x20e193=0xce,_0x411ef9[_0x13df6a('0x46')](_0x20e193),_0x411ef9[_0x13df6a('0x18')](_0x13df6a('0x12'),_0x31d42f+'-'+_0x18287f+'/'+_0x5aa773)[_0x13df6a('0x22')](_0x371a06);}return null;};}function saveUpdates(_0x4a3c94){return function(_0x8c59b2){const _0x3d7d60=a538_0x3e75;if(_0x8c59b2)return _0x8c59b2[_0x3d7d60('0x1a')](_0x4a3c94)[_0x3d7d60('0x54')](function(_0x1de39a){return _0x1de39a;});return null;};}function handleEntityNotFound(_0x5585c9){return function(_0x1b8af7){const _0x20957e=a538_0x3e75;return!_0x1b8af7&&_0x5585c9[_0x20957e('0x7')](0x194),_0x1b8af7;};}function handleError(_0x44f8f8,_0x35ba1b){return _0x35ba1b=_0x35ba1b||0x1f4,function(_0x35781b){const _0x208428=a538_0x3e75;logger[_0x208428('0x28')](_0x35781b['stack']),_0x35781b[_0x208428('0x48')]&&delete _0x35781b[_0x208428('0x48')],_0x44f8f8[_0x208428('0x46')](_0x35ba1b)[_0x208428('0x3e')](_0x35781b);};}exports[_0x30d8af('0x2')]=function(_0x2b1155,_0x2a976e){const _0x1db677=_0x30d8af;let _0x58eb91={};const _0x367b18={},_0x18bc7a={'count':0x0,'rows':[]},_0x47cf0=_['map'](db[_0x1db677('0x2b')][_0x1db677('0x2d')],function(_0x16a9f4){const _0x50f5ae=_0x1db677;return{'name':_0x16a9f4[_0x50f5ae('0x3c')],'type':_0x16a9f4['type'][_0x50f5ae('0x38')]};});_0x367b18['model']=_[_0x1db677('0x6')](_0x47cf0,_0x1db677('0x48')),_0x367b18['query']=_[_0x1db677('0x4e')](_0x2b1155[_0x1db677('0x2c')]),_0x367b18[_0x1db677('0x3d')]=_[_0x1db677('0x43')](_0x367b18[_0x1db677('0x1b')],_0x367b18[_0x1db677('0x2c')]),_0x58eb91[_0x1db677('0x3')]=_[_0x1db677('0x43')](_0x367b18['model'],qs[_0x1db677('0xe')](_0x2b1155[_0x1db677('0x2c')][_0x1db677('0xe')])),_0x58eb91['attributes']=_0x58eb91[_0x1db677('0x3')][_0x1db677('0x26')]?_0x58eb91['attributes']:_0x367b18[_0x1db677('0x1b')];typeof _0x2b1155[_0x1db677('0x2c')][_0x1db677('0x27')]===_0x1db677('0x0')&&(_0x58eb91[_0x1db677('0x52')]=qs[_0x1db677('0x52')](_0x2b1155[_0x1db677('0x2c')][_0x1db677('0x52')]),_0x58eb91['offset']=qs[_0x1db677('0x40')](_0x2b1155['query'][_0x1db677('0x40')]));_0x58eb91[_0x1db677('0x47')]=qs[_0x1db677('0xf')](_0x2b1155['query'][_0x1db677('0xf')]),_0x58eb91[_0x1db677('0x4f')]=qs['filters'](_['pick'](_0x2b1155[_0x1db677('0x2c')],_0x367b18[_0x1db677('0x3d')]),_0x47cf0);_0x2b1155[_0x1db677('0x2c')]['filter']&&(_0x58eb91['where']=_['merge'](_0x58eb91[_0x1db677('0x4f')],{[Op['or']]:_[_0x1db677('0x6')](_0x47cf0,function(_0x3c7c86){const _0x336e23=_0x1db677;if(_0x3c7c86[_0x336e23('0x25')]!=='VIRTUAL'){const _0x1430fb={};return _0x1430fb[_0x3c7c86[_0x336e23('0x48')]]={[Op[_0x336e23('0x56')]]:'%'+_0x2b1155[_0x336e23('0x2c')]['filter']+'%'},_0x1430fb;}})}));_0x58eb91=_[_0x1db677('0x3f')]({},_0x58eb91,_0x2b1155[_0x1db677('0x8')]);const _0xe882f3={'where':_0x58eb91[_0x1db677('0x4f')]};return db['Setting'][_0x1db677('0x2f')](_0xe882f3)['then'](function(_0x35fce8){const _0x140c3a=_0x1db677;return _0x18bc7a['count']=_0x35fce8,_0x2b1155[_0x140c3a('0x2c')][_0x140c3a('0x1')]&&(_0x58eb91[_0x140c3a('0x35')]=[{'all':!![]}]),db['Setting'][_0x140c3a('0x49')](_0x58eb91);})['then'](function(_0x22e4e1){return _0x18bc7a['rows']=_0x22e4e1,_0x18bc7a;})[_0x1db677('0x54')](respondWithFilteredResult(_0x2a976e,_0x58eb91))[_0x1db677('0x1e')](handleError(_0x2a976e,null));},exports[_0x30d8af('0x10')]=function(_0x5f3b69,_0x362221){const _0x30da1c=_0x30d8af;let _0x2390fb={'raw':![],'where':{'id':_0x5f3b69[_0x30da1c('0x21')]['id']}};const _0x22957e={};return _0x22957e['model']=_[_0x30da1c('0x4e')](db['Setting']['rawAttributes']),_0x22957e[_0x30da1c('0x2c')]=_[_0x30da1c('0x4e')](_0x5f3b69['query']),_0x22957e[_0x30da1c('0x3d')]=_[_0x30da1c('0x43')](_0x22957e['model'],_0x22957e[_0x30da1c('0x2c')]),_0x2390fb['attributes']=_[_0x30da1c('0x43')](_0x22957e[_0x30da1c('0x1b')],qs[_0x30da1c('0xe')](_0x5f3b69['query'][_0x30da1c('0xe')])),_0x2390fb['attributes']=_0x2390fb[_0x30da1c('0x3')][_0x30da1c('0x26')]?_0x2390fb['attributes']:_0x22957e[_0x30da1c('0x1b')],_0x5f3b69['query'][_0x30da1c('0x1')]&&(_0x2390fb[_0x30da1c('0x35')]=[{'all':!![]}]),_0x2390fb=_['merge']({},_0x2390fb,_0x5f3b69[_0x30da1c('0x8')]),db[_0x30da1c('0x2b')][_0x30da1c('0x31')](_0x2390fb)['then'](handleEntityNotFound(_0x362221,null))['then'](respondWithResult(_0x362221,null))[_0x30da1c('0x1e')](handleError(_0x362221,null));},exports[_0x30d8af('0x1a')]=function(_0x49fb4a,_0x19348f){const _0x5479f2=_0x30d8af;return _0x49fb4a[_0x5479f2('0x5')]['id']&&delete _0x49fb4a[_0x5479f2('0x5')]['id'],db[_0x5479f2('0x2b')][_0x5479f2('0x31')]({'where':{'id':_0x49fb4a[_0x5479f2('0x21')]['id']}})[_0x5479f2('0x54')](handleEntityNotFound(_0x19348f,null))[_0x5479f2('0x54')](saveUpdates(_0x49fb4a[_0x5479f2('0x5')],null))[_0x5479f2('0x54')](respondWithResult(_0x19348f,null))[_0x5479f2('0x1e')](handleError(_0x19348f,null));},exports[_0x30d8af('0x42')]=function(_0x412ce8,_0x150042){const _0x5010ef=_0x30d8af;return _0x412ce8['file']&&_0x412ce8[_0x5010ef('0x2a')]['filename']&&(_0x412ce8['body']['logo']=_0x412ce8['file'][_0x5010ef('0x50')]),db[_0x5010ef('0x2b')]['findOne']({'where':{'id':_0x412ce8[_0x5010ef('0x21')]['id']}})[_0x5010ef('0x54')](handleEntityNotFound(_0x150042,null))[_0x5010ef('0x54')](saveUpdates(_0x412ce8['body'],null))[_0x5010ef('0x54')](respondWithResult(_0x150042,null))[_0x5010ef('0x1e')](handleError(_0x150042,null));},exports[_0x30d8af('0x32')]=function(_0x188087,_0x14d307){const _0x267e93=_0x30d8af;return _0x188087['file']&&_0x188087[_0x267e93('0x2a')][_0x267e93('0x50')]&&(_0x188087[_0x267e93('0x5')][_0x267e93('0x3a')]=_0x188087['file'][_0x267e93('0x50')]),db[_0x267e93('0x2b')][_0x267e93('0x31')]({'where':{'id':_0x188087[_0x267e93('0x21')]['id']}})[_0x267e93('0x54')](handleEntityNotFound(_0x14d307,null))[_0x267e93('0x54')](saveUpdates(_0x188087[_0x267e93('0x5')],null))[_0x267e93('0x54')](respondWithResult(_0x14d307,null))[_0x267e93('0x1e')](handleError(_0x14d307,null));},exports[_0x30d8af('0x11')]=function(_0x2f5d28,_0x522082){const _0x1d0d14=_0x30d8af,_0x490e18=path[_0x1d0d14('0x30')](config['root'],_0x1d0d14('0x24'));let _0x39efe9={'custom':![]};return utilLicense[_0x1d0d14('0x14')]()['then'](function(_0x3295e0){const _0xd77b82=_0x1d0d14;return _0x3295e0&&(_0x39efe9=_0x3295e0),db[_0xd77b82('0x2b')]['findOne']({'where':{'id':_0x2f5d28[_0xd77b82('0x21')]['id']},'attributes':[_0xd77b82('0x1c'),'loginLogo',_0xd77b82('0x29'),_0xd77b82('0x55'),_0xd77b82('0x1f'),_0xd77b82('0xc'),'defaultPreferred',_0xd77b82('0x39')],'raw':!![]});})[_0x1d0d14('0x54')](handleEntityNotFound(_0x522082,null))['then'](function(_0x2b82fd){const _0x28c8d4=_0x1d0d14;if(_0x2b82fd){let _0x58fc06=_0x2b82fd['logo']&&fs[_0x28c8d4('0x33')](path['join'](_0x490e18,_[_0x28c8d4('0x19')](_0x2b82fd[_0x28c8d4('0x1c')])))?path[_0x28c8d4('0x30')](_0x490e18,_[_0x28c8d4('0x19')](_0x2b82fd[_0x28c8d4('0x1c')])):path[_0x28c8d4('0x30')](_0x490e18,_[_0x28c8d4('0x19')]('default_logo.svg'));const _0x52066b=_0x28c8d4('0x36')+_['upperFirst'](_0x28c8d4('0x1c'));(_0x2b82fd[_0x52066b]||!_0x39efe9[_0x28c8d4('0x4b')])&&(_0x58fc06=path['join'](_0x490e18,_['toLower'](_0x28c8d4('0x1d'))));if(!fs[_0x28c8d4('0x33')](_0x58fc06))throw new db[(_0x28c8d4('0xb'))]['ValidationError'](_['upperFirst'](_0x28c8d4('0x1c'))+_0x28c8d4('0x44'));return _0x522082[_0x28c8d4('0x15')](_0x58fc06);}})['catch'](handleError(_0x522082,null));},exports[_0x30d8af('0x41')]=function(_0x249f53,_0x2b62c7){const _0x58a196=_0x30d8af,_0x3781a0=path[_0x58a196('0x30')](config[_0x58a196('0x2e')],_0x58a196('0x24'));let _0x382955={'custom':![]};return utilLicense[_0x58a196('0x14')]()[_0x58a196('0x54')](function(_0xa51516){const _0x411d59=_0x58a196;return _0xa51516&&(_0x382955=_0xa51516),db[_0x411d59('0x2b')][_0x411d59('0x31')]({'where':{'id':_0x249f53[_0x411d59('0x21')]['id']},'attributes':[_0x411d59('0x1c'),_0x411d59('0x3a'),_0x411d59('0x29'),'favicon',_0x411d59('0x1f'),_0x411d59('0xc'),_0x411d59('0x57'),_0x411d59('0x39')],'raw':!![]});})[_0x58a196('0x54')](handleEntityNotFound(_0x2b62c7,null))[_0x58a196('0x54')](function(_0x17a2b9){const _0x376223=_0x58a196;if(_0x17a2b9){let _0x37543e=_0x17a2b9[_0x376223('0x3a')]&&fs[_0x376223('0x33')](path[_0x376223('0x30')](_0x3781a0,_[_0x376223('0x19')](_0x17a2b9[_0x376223('0x3a')])))?path[_0x376223('0x30')](_0x3781a0,_[_0x376223('0x19')](_0x17a2b9['loginLogo'])):path[_0x376223('0x30')](_0x3781a0,_['toLower'](_0x376223('0xd')));const _0x4a716f=_0x376223('0x36')+_[_0x376223('0x4a')](_0x376223('0x3a'));(_0x17a2b9[_0x4a716f]||!_0x382955['custom'])&&(_0x37543e=path[_0x376223('0x30')](_0x3781a0,_[_0x376223('0x19')](_0x376223('0xd'))));if(!fs[_0x376223('0x33')](_0x37543e))throw new db[(_0x376223('0xb'))][(_0x376223('0x20'))](_[_0x376223('0x4a')](_0x376223('0x3a'))+'\x20not\x20found');return _0x2b62c7[_0x376223('0x15')](_0x37543e);}})['catch'](handleError(_0x2b62c7,null));},exports['gdpr']=function(_0x411e6a,_0x30ec14){const _0x36011d=_0x30d8af;return db[_0x36011d('0x2b')][_0x36011d('0x31')]({'where':{'id':_0x411e6a['params']['id']},'attributes':[_0x36011d('0x3b')]})[_0x36011d('0x54')](respondWithResult(_0x30ec14,null))[_0x36011d('0x1e')](handleError(_0x30ec14,null));},exports[_0x30d8af('0x17')]=function(_0x3fb0fe,_0xe0ccdf){const _0x371964=_0x30d8af;return _0x3fb0fe[_0x371964('0x2a')]&&_0x3fb0fe[_0x371964('0x2a')][_0x371964('0x50')]&&(_0x3fb0fe[_0x371964('0x5')][_0x371964('0x29')]=_0x3fb0fe[_0x371964('0x2a')][_0x371964('0x50')]),db[_0x371964('0x2b')][_0x371964('0x31')]({'where':{'id':_0x3fb0fe[_0x371964('0x21')]['id']}})['then'](handleEntityNotFound(_0xe0ccdf,null))[_0x371964('0x54')](saveUpdates(_0x3fb0fe['body'],null))[_0x371964('0x54')](respondWithResult(_0xe0ccdf,null))[_0x371964('0x1e')](handleError(_0xe0ccdf,null));},exports[_0x30d8af('0x37')]=function(_0x37a240,_0x5c606e){const _0x3dc867=_0x30d8af,_0x542779=path[_0x3dc867('0x30')](config[_0x3dc867('0x2e')],_0x3dc867('0x24'));let _0x48b646={'custom':![]};return utilLicense[_0x3dc867('0x14')]()['then'](function(_0x57e3d9){const _0x2cb284=_0x3dc867;return _0x57e3d9&&(_0x48b646=_0x57e3d9),db[_0x2cb284('0x2b')][_0x2cb284('0x31')]({'where':{'id':_0x37a240[_0x2cb284('0x21')]['id']},'attributes':[_0x2cb284('0x1c'),'loginLogo',_0x2cb284('0x29'),_0x2cb284('0x55'),_0x2cb284('0x1f'),'defaultLoginLogo','defaultPreferred',_0x2cb284('0x39')],'raw':!![]});})[_0x3dc867('0x54')](handleEntityNotFound(_0x5c606e,null))[_0x3dc867('0x54')](function(_0x198667){const _0x6d994d=_0x3dc867;if(_0x198667){let _0x10802d=_0x198667[_0x6d994d('0x29')]&&fs[_0x6d994d('0x33')](path[_0x6d994d('0x30')](_0x542779,_['toLower'](_0x198667['preferred'])))?path[_0x6d994d('0x30')](_0x542779,_[_0x6d994d('0x19')](_0x198667['preferred'])):path['join'](_0x542779,_[_0x6d994d('0x19')](_0x6d994d('0x4c')));const _0x63ef12=_0x6d994d('0x36')+_[_0x6d994d('0x4a')](_0x6d994d('0x29'));(_0x198667[_0x63ef12]||!_0x48b646[_0x6d994d('0x4b')]||!_0x48b646[_0x6d994d('0x29')])&&(_0x10802d=path[_0x6d994d('0x30')](_0x542779,_[_0x6d994d('0x19')](_0x6d994d('0x4c'))));if(!fs[_0x6d994d('0x33')](_0x10802d))throw new db[(_0x6d994d('0xb'))]['ValidationError'](_[_0x6d994d('0x4a')](_0x6d994d('0x29'))+_0x6d994d('0x44'));return _0x5c606e[_0x6d994d('0x15')](_0x10802d);}})[_0x3dc867('0x1e')](handleError(_0x5c606e,null));},exports[_0x30d8af('0x9')]=function(_0x54c3a9,_0x5b1907){const _0x52d026=_0x30d8af;return _0x54c3a9[_0x52d026('0x2a')]&&_0x54c3a9[_0x52d026('0x2a')]['filename']&&(_0x54c3a9['body']['favicon']=_0x54c3a9['file'][_0x52d026('0x50')]),db[_0x52d026('0x2b')]['findOne']({'where':{'id':_0x54c3a9[_0x52d026('0x21')]['id']}})[_0x52d026('0x54')](handleEntityNotFound(_0x5b1907,null))[_0x52d026('0x54')](saveUpdates(_0x54c3a9[_0x52d026('0x5')],null))[_0x52d026('0x54')](respondWithResult(_0x5b1907,null))['catch'](handleError(_0x5b1907,null));},exports[_0x30d8af('0x34')]=function(_0x2a0aae,_0x1be4fb){const _0xc0482d=_0x30d8af,_0x579766=path[_0xc0482d('0x30')](config[_0xc0482d('0x2e')],_0xc0482d('0x24'));let _0x51a114={'custom':![]};return utilLicense[_0xc0482d('0x14')]()['then'](function(_0xbad2e7){const _0x325190=_0xc0482d;return _0xbad2e7&&(_0x51a114=_0xbad2e7),db[_0x325190('0x2b')][_0x325190('0x31')]({'where':{'id':_0x2a0aae[_0x325190('0x21')]['id']},'attributes':[_0x325190('0x1c'),_0x325190('0x3a'),_0x325190('0x29'),'favicon',_0x325190('0x1f'),_0x325190('0xc'),_0x325190('0x57'),'defaultFavicon'],'raw':!![]});})[_0xc0482d('0x54')](handleEntityNotFound(_0x1be4fb,null))[_0xc0482d('0x54')](function(_0x37d173){const _0x3fe1a2=_0xc0482d;if(_0x37d173){let _0x98612b=_0x37d173[_0x3fe1a2('0x55')]&&fs[_0x3fe1a2('0x33')](path['join'](_0x579766,_[_0x3fe1a2('0x19')](_0x37d173['favicon'])))?path['join'](_0x579766,_[_0x3fe1a2('0x19')](_0x37d173[_0x3fe1a2('0x55')])):path[_0x3fe1a2('0x30')](_0x579766,_[_0x3fe1a2('0x19')]('default_favicon.ico'));const _0x3aa32a=_0x3fe1a2('0x36')+_[_0x3fe1a2('0x4a')]('favicon');(_0x37d173[_0x3aa32a]||!_0x51a114[_0x3fe1a2('0x4b')])&&(_0x98612b=path[_0x3fe1a2('0x30')](_0x579766,_[_0x3fe1a2('0x19')](_0x3fe1a2('0x45'))));if(!fs[_0x3fe1a2('0x33')](_0x98612b))throw new db[(_0x3fe1a2('0xb'))][(_0x3fe1a2('0x20'))](_[_0x3fe1a2('0x4a')](_0x3fe1a2('0x55'))+_0x3fe1a2('0x44'));return _0x1be4fb[_0x3fe1a2('0x15')](_0x98612b);}})[_0xc0482d('0x1e')](handleError(_0x1be4fb,null));}; \ No newline at end of file diff --git a/server/api/setting/setting.model.js b/server/api/setting/setting.model.js index 48ba069..791e6e7 100644 --- a/server/api/setting/setting.model.js +++ b/server/api/setting/setting.model.js @@ -1 +1 @@ -const a539_0x24f0=['Setting','./setting.attributes','exports','define'];(function(_0x474eac,_0x24f0c0){const _0x3a54d0=function(_0x11fd53){while(--_0x11fd53){_0x474eac['push'](_0x474eac['shift']());}};_0x3a54d0(++_0x24f0c0);}(a539_0x24f0,0xab));const a539_0x3a54=function(_0x474eac,_0x24f0c0){_0x474eac=_0x474eac-0x0;let _0x3a54d0=a539_0x24f0[_0x474eac];return _0x3a54d0;};const _0x582f0b=a539_0x3a54;'use strict';const attributes=require(_0x582f0b('0x2'));module[_0x582f0b('0x3')]=function(_0x11fd53){const _0x38ff09=_0x582f0b,_0x492780=_0x11fd53[_0x38ff09('0x0')](_0x38ff09('0x1'),attributes,{'tableName':'settings','paranoid':![],'indexes':[],'timestamps':!![]});return _0x492780;}; \ No newline at end of file +const a539_0x18a5=['settings','Setting','exports','./setting.attributes'];(function(_0x17e1bc,_0x18a5ea){const _0x473874=function(_0x4e52a5){while(--_0x4e52a5){_0x17e1bc['push'](_0x17e1bc['shift']());}};_0x473874(++_0x18a5ea);}(a539_0x18a5,0x185));const a539_0x4738=function(_0x17e1bc,_0x18a5ea){_0x17e1bc=_0x17e1bc-0x0;let _0x473874=a539_0x18a5[_0x17e1bc];return _0x473874;};const _0x38084a=a539_0x4738;'use strict';const attributes=require(_0x38084a('0x2'));module[_0x38084a('0x1')]=function(_0x4e52a5){const _0x7faa43=_0x38084a,_0x4b1747=_0x4e52a5['define'](_0x7faa43('0x0'),attributes,{'tableName':_0x7faa43('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4b1747;}; \ No newline at end of file diff --git a/server/api/smsAccount/index.js b/server/api/smsAccount/index.js index 8b3d754..689382d 100644 --- a/server/api/smsAccount/index.js +++ b/server/api/smsAccount/index.js @@ -1 +1 @@ -const a540_0x524c=['addDisposition','./smsAccount.controller','statusGet','/:id/send','put','removeDispositions','isAuthenticated','/:id/users','send','delete','/:id/canned_answers','get','/:id/interactions','status','Router','describe','addAgents','/:id/dispositions','notify','post','/:id/applications','getAnswers','removeAnswers','create','/:id','/describe','/:id/status','getAgents','addApplications'];(function(_0x479717,_0x524cb9){const _0x3156cb=function(_0x4f89a3){while(--_0x4f89a3){_0x479717['push'](_0x479717['shift']());}};_0x3156cb(++_0x524cb9);}(a540_0x524c,0x1bf));const a540_0x3156=function(_0x479717,_0x524cb9){_0x479717=_0x479717-0x0;let _0x3156cb=a540_0x524c[_0x479717];return _0x3156cb;};const _0x108e01=a540_0x3156;'use strict';const express=require('express'),router=express[_0x108e01('0x2')](),auth=require('../../components/auth/service'),controller=require(_0x108e01('0x12'));router[_0x108e01('0x1c')]('/',auth[_0x108e01('0x17')](),controller['index']),router[_0x108e01('0x1c')](_0x108e01('0xd'),auth[_0x108e01('0x17')](),controller[_0x108e01('0x3')]),router[_0x108e01('0x1c')](_0x108e01('0xc'),auth[_0x108e01('0x17')](),controller['show']),router[_0x108e01('0x1c')](_0x108e01('0x5'),auth[_0x108e01('0x17')](),controller['getDispositions']),router['get']('/:id/canned_answers',auth['isAuthenticated'](),controller[_0x108e01('0x9')]),router[_0x108e01('0x1c')](_0x108e01('0x8'),auth['isAuthenticated'](),controller['getApplications']),router[_0x108e01('0x1c')](_0x108e01('0x0'),auth[_0x108e01('0x17')](),controller['getInteractions']),router[_0x108e01('0x1c')](_0x108e01('0xe'),controller[_0x108e01('0x13')]),router[_0x108e01('0x1c')](_0x108e01('0x18'),auth['isAuthenticated'](),controller[_0x108e01('0xf')]),router[_0x108e01('0x7')]('/',auth[_0x108e01('0x17')](),controller[_0x108e01('0xb')]),router[_0x108e01('0x7')](_0x108e01('0x5'),auth['isAuthenticated'](),controller[_0x108e01('0x11')]),router[_0x108e01('0x7')]('/:id/canned_answers',auth[_0x108e01('0x17')](),controller['addAnswer']),router[_0x108e01('0x7')]('/:id/notify',controller[_0x108e01('0x6')]),router['post'](_0x108e01('0x8'),auth[_0x108e01('0x17')](),controller[_0x108e01('0x10')]),router[_0x108e01('0x7')](_0x108e01('0x14'),auth[_0x108e01('0x17')](),controller[_0x108e01('0x19')]),router[_0x108e01('0x7')](_0x108e01('0xe'),controller[_0x108e01('0x1')]),router['post'](_0x108e01('0x18'),auth[_0x108e01('0x17')](),controller[_0x108e01('0x4')]),router[_0x108e01('0x15')](_0x108e01('0xc'),auth[_0x108e01('0x17')](),controller['update']),router[_0x108e01('0x1a')]('/:id',auth[_0x108e01('0x17')](),controller['destroy']),router[_0x108e01('0x1a')](_0x108e01('0x5'),auth[_0x108e01('0x17')](),controller[_0x108e01('0x16')]),router['delete'](_0x108e01('0x1b'),auth[_0x108e01('0x17')](),controller[_0x108e01('0xa')]),router[_0x108e01('0x1a')](_0x108e01('0x18'),auth['isAuthenticated'](),controller['removeAgents']),module['exports']=router; \ No newline at end of file +const a540_0x3797=['index','destroy','post','removeAnswers','addDisposition','/:id','describe','/:id/users','/describe','/:id/send','status','create','put','addApplications','update','removeAgents','getApplications','/:id/status','removeDispositions','/:id/dispositions','express','getAgents','./smsAccount.controller','isAuthenticated','addAnswer','get','/:id/canned_answers','getAnswers','/:id/applications','show','/:id/interactions','delete'];(function(_0x478472,_0x37973a){const _0x484ff2=function(_0x45ce94){while(--_0x45ce94){_0x478472['push'](_0x478472['shift']());}};_0x484ff2(++_0x37973a);}(a540_0x3797,0x126));const a540_0x484f=function(_0x478472,_0x37973a){_0x478472=_0x478472-0x0;let _0x484ff2=a540_0x3797[_0x478472];return _0x484ff2;};const _0x309349=a540_0x484f;'use strict';const express=require(_0x309349('0xe')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x309349('0x10'));router[_0x309349('0x13')]('/',auth['isAuthenticated'](),controller[_0x309349('0x1a')]),router[_0x309349('0x13')](_0x309349('0x2'),auth[_0x309349('0x11')](),controller[_0x309349('0x0')]),router[_0x309349('0x13')](_0x309349('0x1f'),auth[_0x309349('0x11')](),controller[_0x309349('0x17')]),router[_0x309349('0x13')](_0x309349('0xd'),auth[_0x309349('0x11')](),controller['getDispositions']),router[_0x309349('0x13')](_0x309349('0x14'),auth[_0x309349('0x11')](),controller[_0x309349('0x15')]),router[_0x309349('0x13')](_0x309349('0x16'),auth['isAuthenticated'](),controller[_0x309349('0xa')]),router[_0x309349('0x13')](_0x309349('0x18'),auth[_0x309349('0x11')](),controller['getInteractions']),router[_0x309349('0x13')](_0x309349('0xb'),controller['statusGet']),router['get'](_0x309349('0x1'),auth['isAuthenticated'](),controller[_0x309349('0xf')]),router['post']('/',auth['isAuthenticated'](),controller[_0x309349('0x5')]),router[_0x309349('0x1c')]('/:id/dispositions',auth[_0x309349('0x11')](),controller[_0x309349('0x1e')]),router['post'](_0x309349('0x14'),auth[_0x309349('0x11')](),controller[_0x309349('0x12')]),router[_0x309349('0x1c')]('/:id/notify',controller['notify']),router['post'](_0x309349('0x16'),auth[_0x309349('0x11')](),controller[_0x309349('0x7')]),router[_0x309349('0x1c')](_0x309349('0x3'),auth['isAuthenticated'](),controller['send']),router[_0x309349('0x1c')](_0x309349('0xb'),controller[_0x309349('0x4')]),router[_0x309349('0x1c')]('/:id/users',auth[_0x309349('0x11')](),controller['addAgents']),router[_0x309349('0x6')](_0x309349('0x1f'),auth[_0x309349('0x11')](),controller[_0x309349('0x8')]),router['delete'](_0x309349('0x1f'),auth[_0x309349('0x11')](),controller[_0x309349('0x1b')]),router[_0x309349('0x19')](_0x309349('0xd'),auth[_0x309349('0x11')](),controller[_0x309349('0xc')]),router[_0x309349('0x19')](_0x309349('0x14'),auth[_0x309349('0x11')](),controller[_0x309349('0x1d')]),router[_0x309349('0x19')](_0x309349('0x1'),auth['isAuthenticated'](),controller[_0x309349('0x9')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.attributes.js b/server/api/smsAccount/smsAccount.attributes.js index 6b9f091..bcb6f4d 100644 --- a/server/api/smsAccount/smsAccount.attributes.js +++ b/server/api/smsAccount/smsAccount.attributes.js @@ -1 +1 @@ -const a541_0x28a5=['skebby','STRING','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','setDataValue','ENUM','generate','infobip','sequelize','plivo','name','mandatoryDispositionPauseId','twilio','randomstring','BOOLEAN','INTEGER','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','mandatoryDisposition','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','clicksend','connectel','clickatell','TEXT'];(function(_0x563eff,_0x28a58b){const _0xa856ba=function(_0x1631ff){while(--_0x1631ff){_0x563eff['push'](_0x563eff['shift']());}};_0xa856ba(++_0x28a58b);}(a541_0x28a5,0x16a));const a541_0xa856=function(_0x563eff,_0x28a58b){_0x563eff=_0x563eff-0x0;let _0xa856ba=a541_0x28a5[_0x563eff];return _0xa856ba;};const _0x513e6c=a541_0xa856;'use strict';const Sequelize=require(_0x513e6c('0x13')),rs=require(_0x513e6c('0x2'));module['exports']={'name':{'type':Sequelize[_0x513e6c('0xd')],'unique':_0x513e6c('0x15'),'allowNull':![]},'key':{'type':Sequelize[_0x513e6c('0xd')],'allowNull':![]},'remote':{'type':Sequelize[_0x513e6c('0xd')],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){const _0x4fb95b=_0x513e6c;return rs[_0x4fb95b('0x11')]();}},'phone':{'type':Sequelize[_0x513e6c('0xd')]},'type':{'type':Sequelize['ENUM'](_0x513e6c('0x1'),_0x513e6c('0xc'),_0x513e6c('0x9'),_0x513e6c('0x8'),_0x513e6c('0x14'),_0x513e6c('0xa'),'csc',_0x513e6c('0x12'),'intelepeer')},'accountSid':{'type':Sequelize[_0x513e6c('0xd')]},'authId':{'type':Sequelize[_0x513e6c('0xd')]},'authToken':{'type':Sequelize['STRING']},'smsMethod':{'type':Sequelize[_0x513e6c('0x10')]('SI','TI','GP')},'username':{'type':Sequelize[_0x513e6c('0xd')]},'password':{'type':Sequelize[_0x513e6c('0xd')]},'apiKey':{'type':Sequelize['STRING']},'senderString':{'type':Sequelize[_0x513e6c('0xd')]},'deliveryReport':{'type':Sequelize[_0x513e6c('0x3')],'defaultValue':![]},'description':{'type':Sequelize[_0x513e6c('0xd')]},'notificationTemplate':{'type':Sequelize[_0x513e6c('0xb')],'defaultValue':function(){const _0xf4e832=_0x513e6c;return _0xf4e832('0x5');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x513e6c('0x3')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x513e6c('0x3')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x513e6c('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x513e6c('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x513e6c('0xd')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x513e6c('0x4')],'comment':_0x513e6c('0xe')},'mandatoryDisposition':{'type':Sequelize[_0x513e6c('0x3')],'defaultValue':![],'comment':_0x513e6c('0x7'),'set':function(_0x1631ff){const _0x402804=_0x513e6c;if(!_0x1631ff)this[_0x402804('0xf')](_0x402804('0x0'),null);this['setDataValue'](_0x402804('0x6'),_0x1631ff);}}}; \ No newline at end of file +const a541_0x1b02=['twilio','sequelize','exports','connectel','name','clicksend','plivo','ENUM','mandatoryDispositionPauseId','mandatoryDisposition','INTEGER','BOOLEAN','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','generate','clickatell','STRING','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','infobip','randomstring','setDataValue','csc'];(function(_0x3a3816,_0x1b022f){const _0x14bbb4=function(_0x2a8219){while(--_0x2a8219){_0x3a3816['push'](_0x3a3816['shift']());}};_0x14bbb4(++_0x1b022f);}(a541_0x1b02,0xc3));const a541_0x14bb=function(_0x3a3816,_0x1b022f){_0x3a3816=_0x3a3816-0x0;let _0x14bbb4=a541_0x1b02[_0x3a3816];return _0x14bbb4;};const _0x288066=a541_0x14bb;'use strict';const Sequelize=require(_0x288066('0x4')),rs=require(_0x288066('0x0'));module[_0x288066('0x5')]={'name':{'type':Sequelize[_0x288066('0x13')],'unique':_0x288066('0x7'),'allowNull':![]},'key':{'type':Sequelize[_0x288066('0x13')],'allowNull':![]},'remote':{'type':Sequelize[_0x288066('0x13')],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){const _0x38d121=_0x288066;return rs[_0x38d121('0x11')]();}},'phone':{'type':Sequelize[_0x288066('0x13')]},'type':{'type':Sequelize[_0x288066('0xa')](_0x288066('0x3'),'skebby',_0x288066('0x6'),_0x288066('0x8'),_0x288066('0x9'),_0x288066('0x12'),_0x288066('0x2'),_0x288066('0x15'),'intelepeer')},'accountSid':{'type':Sequelize['STRING']},'authId':{'type':Sequelize[_0x288066('0x13')]},'authToken':{'type':Sequelize['STRING']},'smsMethod':{'type':Sequelize['ENUM']('SI','TI','GP')},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x288066('0x13')]},'apiKey':{'type':Sequelize[_0x288066('0x13')]},'senderString':{'type':Sequelize[_0x288066('0x13')]},'deliveryReport':{'type':Sequelize[_0x288066('0xe')],'defaultValue':![]},'description':{'type':Sequelize[_0x288066('0x13')]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x49169f=_0x288066;return _0x49169f('0x10');}},'notificationSound':{'type':Sequelize[_0x288066('0xe')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x288066('0xe')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x288066('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x288066('0xe')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x288066('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x288066('0xe')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x288066('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x288066('0x13')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x288066('0xd')],'comment':_0x288066('0x14')},'mandatoryDisposition':{'type':Sequelize[_0x288066('0xe')],'defaultValue':![],'comment':_0x288066('0xf'),'set':function(_0x2a8219){const _0x45a8f0=_0x288066;if(!_0x2a8219)this[_0x45a8f0('0x1')](_0x45a8f0('0xb'),null);this[_0x45a8f0('0x1')](_0x45a8f0('0xc'),_0x2a8219);}}}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.controller.js b/server/api/smsAccount/smsAccount.controller.js index 992894b..a0d4603 100644 --- a/server/api/smsAccount/smsAccount.controller.js +++ b/server/api/smsAccount/smsAccount.controller.js @@ -1 +1 @@ -const a542_0x2fb8=['removeAnswers','util','../../rediscache','Unable\x20to\x20retrieve\x20the\x20current\x20user','body\x20is\x20mandatory\x20and\x20not\x20empty','intelepeer','statusGet','mapKey','fromNumber','Content-Type','createdAt','notify','intersection','priority','undefined','map','ContactId','updatedAt','internal','findOne','ListId','DELIVERED','groupName','describe','isNil','sort','includeAll','CmContact','offset','json','SmsAccount','Pause','connectel','keys','removeDispositions','destroy','addAgents','twilio','length','include','transaction','*,*,*,*','fields','getAnswers','VIRTUAL','rows','applications','SmsAccount,\x20%s,\x20%s','unshift','segmentedMessage','statusInt','user','close','clicksend','account','error_code','getAgents','Owner','CompanyId','redif','message_id','client','startRouting','clickatell','received\x20delivery\x20report\x20from','push','emit','asc','out','like','ACCEPTD','nolimit','csc','entity\x20found','Start','contact','Body','get','text/xml','DESC','findAll','body','stringify','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','Contacts','endpoint\x20/status\x20POST\x20/','autoAssociation','sendStatus','sms','SmsAccount,\x20%s,\x20%s,\x20%s','bulkCreate','register','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','model','to\x20is\x20mandatory','defaults','AttachmentId','create','includes','fieldName','from\x20is\x20mandatory','mandatoryDispositionPause','update','order','from','skebby','log','getApplications','end','debug','count','color','inspect','type','lodash','sender','autoclose','pick','replyMessageId','message','Applications','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','CmList','messageId','send','jayson/promise','limit','isArray','Messages','status_code','./smsAccount.socket','userSmsAccount:save','status','sequelize','Text','removeAgents','UserProfileResource','request\x20sent','key','../../config/logger','then','merge','attributes','role','Content-Range','error','SmsMessage','params','MessageUUID','where','index','../../components/parsers/qs','User','options','name','omit','Disposition','Contact','userSmsAccount:remove','fullname','SmsAccounts','plivo','userProfileId','receiveMessage','Sequelize','state','filters','Tags','CannedAnswer','text','unmanaged','message-id','dataValues','result','SmsApplication','RECEIVED_BY_RECIPIENT','info','SmsInteraction','set','code','agent','no\x20available\x20attributes','http','addDisposition','SmsAccountId','Tag','From','request','List','mobile','difference','interaction','ids','created','infobip','catch','../../mysqldb','rawAttributes','show','query','filter','UserId','results','DELIVRD','skebby_dispatch_id','tag','ValidationError'];(function(_0x12c650,_0x2fb896){const _0x5dad03=function(_0x317c2f){while(--_0x317c2f){_0x12c650['push'](_0x12c650['shift']());}};_0x5dad03(++_0x2fb896);}(a542_0x2fb8,0x1c4));const a542_0x5dad=function(_0x12c650,_0x2fb896){_0x12c650=_0x12c650-0x0;let _0x5dad03=a542_0x2fb8[_0x12c650];return _0x5dad03;};const _0x4fc144=a542_0x5dad;'use strict';const util=require(_0x4fc144('0xaa')),_=require(_0x4fc144('0x4c')),qs=require(_0x4fc144('0x71')),logger=require(_0x4fc144('0x65'))('api'),{getSocket}=require(_0x4fc144('0xab')),socket=getSocket(),db=require(_0x4fc144('0x9e'))['db'],{Op}=require(_0x4fc144('0x5f'));require(_0x4fc144('0x5c'))[_0x4fc144('0x35')](socket);const jayson=require(_0x4fc144('0x57')),client=jayson[_0x4fc144('0x17')][_0x4fc144('0x90')]({'port':0x232c});function respondWithRpcPromise(_0x317c2f,_0xd926e9,_0x274039,_0xe58c77){return new Promise(function(_0x52c12a,_0x5b917a){const _0x58b1b3=a542_0x5dad,_0x27cab0=_0xe58c77||client;return _0x27cab0[_0x58b1b3('0x95')](_0x317c2f,_0x274039)[_0x58b1b3('0x66')](function(_0x35ec87){const _0x401862=_0x58b1b3;logger[_0x401862('0x8a')]('SmsAccount,\x20%s,\x20%s',_0xd926e9,'request\x20sent'),logger['debug'](_0x401862('0x33'),_0xd926e9,_0x401862('0x63'),JSON[_0x401862('0x2c')](_0x35ec87));if(_0x35ec87[_0x401862('0x6b')]){if(_0x35ec87[_0x401862('0x6b')][_0x401862('0x8d')]===0x1f4)return logger[_0x401862('0x6b')](_0x401862('0x9'),_0xd926e9,_0x35ec87[_0x401862('0x6b')]['message']),_0x5b917a(_0x35ec87[_0x401862('0x6b')]['message']);return logger['error'](_0x401862('0x9'),_0xd926e9,_0x35ec87[_0x401862('0x6b')][_0x401862('0x51')]),_0x52c12a(_0x35ec87[_0x401862('0x6b')][_0x401862('0x51')]);}else logger[_0x401862('0x8a')](_0x401862('0x9'),_0xd926e9,_0x401862('0x63')),_0x52c12a(_0x35ec87[_0x401862('0x87')]['message']);})['catch'](function(_0x3597ae){const _0x4c6512=_0x58b1b3;logger[_0x4c6512('0x6b')](_0x4c6512('0x9'),_0xd926e9,_0x3597ae),_0x5b917a(_0x3597ae);});});}function respondWithStatusCode(_0x582bb7,_0x2d7e22){return _0x2d7e22=_0x2d7e22||0xcc,function(_0x1aebe6){const _0x50d13e=a542_0x5dad;if(_0x1aebe6)return _0x582bb7[_0x50d13e('0x31')](_0x2d7e22);return _0x582bb7[_0x50d13e('0x5e')](_0x2d7e22)['end']();};}function respondWithResult(_0x2778cf,_0x621f6d){return _0x621f6d=_0x621f6d||0xc8,function(_0x464862){const _0x3a856b=a542_0x5dad;if(_0x464862)return _0x2778cf[_0x3a856b('0x5e')](_0x621f6d)[_0x3a856b('0xc6')](_0x464862);};}function respondWithFilteredResult(_0x2dcd54,_0x31108c){return function(_0x309062){const _0x3e562d=a542_0x5dad;if(_0x309062){const _0x5b31a1=_0x309062[_0x3e562d('0x48')],_0x5d16d5=_0x31108c[_0x3e562d('0xc5')];let _0x40e6ac=_0x31108c['offset']+_0x31108c[_0x3e562d('0x58')],_0x1d6f00;return _0x40e6ac>=_0x5b31a1?(_0x40e6ac=_0x5b31a1,_0x1d6f00=0xc8):_0x1d6f00=0xce,_0x2dcd54[_0x3e562d('0x5e')](_0x1d6f00),_0x2dcd54[_0x3e562d('0x8c')](_0x3e562d('0x6a'),_0x5d16d5+'-'+_0x40e6ac+'/'+_0x5b31a1)[_0x3e562d('0xc6')](_0x309062);}return null;};}function saveUpdates(_0x1acce1){return function(_0x59f898){const _0x223200=a542_0x5dad;if(_0x59f898)return _0x59f898['update'](_0x1acce1)[_0x223200('0x66')](function(_0x37d067){return _0x37d067;});return null;};}function removeEntity(_0x196344){return function(_0x5ed4c3){const _0x99530b=a542_0x5dad;if(_0x5ed4c3)return _0x5ed4c3[_0x99530b('0xcc')]()[_0x99530b('0x66')](function(){const _0x442252=_0x99530b,_0x51952b=_0x5ed4c3[_0x442252('0x27')]({'plain':!![]}),_0x485394=_0x442252('0x7a');return db[_0x442252('0x62')]['destroy']({'where':{'type':_0x485394,'resourceId':_0x51952b['id']}})[_0x442252('0x66')](function(){return _0x5ed4c3;});})[_0x99530b('0x66')](function(){const _0xa8dcde=_0x99530b;_0x196344['status'](0xcc)[_0xa8dcde('0x46')]();});};}function handleEntityNotFound(_0x1c4b05){return function(_0x718e4f){const _0xaf16c6=a542_0x5dad;return!_0x718e4f&&_0x1c4b05[_0xaf16c6('0x31')](0x194),_0x718e4f;};}function handleError(_0x4d9679,_0x35de70){return _0x35de70=_0x35de70||0x1f4,function(_0x18058f){const _0x1195b1=a542_0x5dad;logger[_0x1195b1('0x6b')](_0x18058f['stack']),_0x18058f[_0x1195b1('0x74')]&&delete _0x18058f[_0x1195b1('0x74')],_0x4d9679['status'](_0x35de70)[_0x1195b1('0x56')](_0x18058f);};}exports[_0x4fc144('0x70')]=function(_0x41bd40,_0x1bf20f){const _0x4f1801=_0x4fc144;let _0x2e3af6={'include':[{'model':db[_0x4f1801('0xc8')],'as':_0x4f1801('0x3f')}]};const _0x5494be={},_0x3d7ede={'count':0x0,'rows':[]},_0x4a0d7c=_[_0x4f1801('0xb8')](db[_0x4f1801('0xc7')][_0x4f1801('0x9f')],function(_0x4cca24){const _0x5965a2=_0x4f1801;return{'name':_0x4cca24[_0x5965a2('0x3d')],'type':_0x4cca24[_0x5965a2('0x4b')][_0x5965a2('0x64')]};});_0x5494be['model']=_[_0x4f1801('0xb8')](_0x4a0d7c,_0x4f1801('0x74')),_0x5494be[_0x4f1801('0xa1')]=_[_0x4f1801('0xca')](_0x41bd40[_0x4f1801('0xa1')]),_0x5494be[_0x4f1801('0x80')]=_['intersection'](_0x5494be[_0x4f1801('0x37')],_0x5494be[_0x4f1801('0xa1')]),_0x2e3af6['attributes']=_[_0x4f1801('0xb5')](_0x5494be['model'],qs[_0x4f1801('0x4')](_0x41bd40['query'][_0x4f1801('0x4')])),_0x2e3af6[_0x4f1801('0x68')]=_0x2e3af6[_0x4f1801('0x68')][_0x4f1801('0x0')]?_0x2e3af6[_0x4f1801('0x68')]:_0x5494be[_0x4f1801('0x37')];typeof _0x41bd40[_0x4f1801('0xa1')]['nolimit']===_0x4f1801('0xb7')&&(_0x2e3af6[_0x4f1801('0x58')]=qs[_0x4f1801('0x58')](_0x41bd40[_0x4f1801('0xa1')][_0x4f1801('0x58')]),_0x2e3af6[_0x4f1801('0xc5')]=qs[_0x4f1801('0xc5')](_0x41bd40['query'][_0x4f1801('0xc5')]));_0x2e3af6[_0x4f1801('0x41')]=qs[_0x4f1801('0xc2')](_0x41bd40[_0x4f1801('0xa1')][_0x4f1801('0xc2')]),_0x2e3af6[_0x4f1801('0x6f')]=qs[_0x4f1801('0x80')](_['pick'](_0x41bd40[_0x4f1801('0xa1')],_0x5494be['filters']),_0x4a0d7c);_0x41bd40[_0x4f1801('0xa1')][_0x4f1801('0xa2')]&&(_0x2e3af6[_0x4f1801('0x6f')]=_[_0x4f1801('0x67')](_0x2e3af6[_0x4f1801('0x6f')],{[Op['or']]:_[_0x4f1801('0xb8')](_0x4a0d7c,function(_0x31ac1f){const _0x5cebe7=_0x4f1801;if(_0x31ac1f[_0x5cebe7('0x4b')]!==_0x5cebe7('0x6')){const _0x2cc10a={};return _0x2cc10a[_0x31ac1f[_0x5cebe7('0x74')]]={[Op[_0x5cebe7('0x1f')]]:'%'+_0x41bd40[_0x5cebe7('0xa1')][_0x5cebe7('0xa2')]+'%'},_0x2cc10a;}})}));_0x2e3af6=_[_0x4f1801('0x67')]({},_0x2e3af6,_0x41bd40['options']);const _0x34bf77={'where':_0x2e3af6[_0x4f1801('0x6f')]};return db[_0x4f1801('0xc7')][_0x4f1801('0x48')](_0x34bf77)['then'](function(_0x80d593){const _0x16c404=_0x4f1801;return _0x3d7ede[_0x16c404('0x48')]=_0x80d593,_0x41bd40[_0x16c404('0xa1')]['includeAll']&&(_0x2e3af6['include']=[{'all':!![]}]),db[_0x16c404('0xc7')][_0x16c404('0x2a')](_0x2e3af6);})[_0x4f1801('0x66')](function(_0x32f496){const _0x270b7f=_0x4f1801;return _0x3d7ede[_0x270b7f('0x7')]=_0x32f496,_0x3d7ede;})[_0x4f1801('0x66')](respondWithFilteredResult(_0x1bf20f,_0x2e3af6))[_0x4f1801('0x9d')](handleError(_0x1bf20f,null));},exports[_0x4fc144('0xa0')]=function(_0x26118f,_0x461041){const _0x57f914=_0x4fc144;let _0x33792b={'raw':![],'where':{'id':_0x26118f[_0x57f914('0x6d')]['id']},'include':[{'model':db[_0x57f914('0xc8')],'as':_0x57f914('0x3f')}]};const _0x2b89d0={};return _0x2b89d0[_0x57f914('0x37')]=_[_0x57f914('0xca')](db[_0x57f914('0xc7')][_0x57f914('0x9f')]),_0x2b89d0[_0x57f914('0xa1')]=_[_0x57f914('0xca')](_0x26118f[_0x57f914('0xa1')]),_0x2b89d0['filters']=_['intersection'](_0x2b89d0[_0x57f914('0x37')],_0x2b89d0[_0x57f914('0xa1')]),_0x33792b[_0x57f914('0x68')]=_[_0x57f914('0xb5')](_0x2b89d0[_0x57f914('0x37')],qs[_0x57f914('0x4')](_0x26118f[_0x57f914('0xa1')][_0x57f914('0x4')])),_0x33792b[_0x57f914('0x68')]=_0x33792b['attributes'][_0x57f914('0x0')]?_0x33792b['attributes']:_0x2b89d0[_0x57f914('0x37')],_0x26118f['query'][_0x57f914('0xc3')]&&(_0x33792b[_0x57f914('0x1')]=[{'all':!![]}]),_0x33792b=_[_0x57f914('0x67')]({},_0x33792b,_0x26118f[_0x57f914('0x73')]),db[_0x57f914('0xc7')][_0x57f914('0xbc')](_0x33792b)[_0x57f914('0x66')](handleEntityNotFound(_0x461041,null))[_0x57f914('0x66')](respondWithResult(_0x461041,null))[_0x57f914('0x9d')](handleError(_0x461041,null));},exports[_0x4fc144('0x3b')]=function(_0x4ac769,_0x2e4067){const _0x52668b=_0x4fc144;return db[_0x52668b('0xc7')][_0x52668b('0x3b')](_0x4ac769[_0x52668b('0x2b')],{})['then'](function(_0x97a60d){const _0x3836da=_0x52668b,_0x53114e=_0x4ac769[_0x3836da('0xd')][_0x3836da('0x27')]({'plain':!![]});if(!_0x53114e)throw new Error(_0x3836da('0xac'));if(_0x53114e[_0x3836da('0x69')]==='user'){const _0x43de4f=_0x97a60d['get']({'plain':!![]}),_0x448e62=_0x3836da('0x7a');return db['UserProfileSection'][_0x3836da('0xbc')]({'where':{'name':_0x448e62,'userProfileId':_0x53114e[_0x3836da('0x7c')]},'raw':!![]})[_0x3836da('0x66')](function(_0x14351a){const _0x51eea4=_0x3836da;return _0x14351a&&_0x14351a[_0x51eea4('0x30')]===0x0?db[_0x51eea4('0x62')]['create']({'name':_0x43de4f['name'],'resourceId':_0x43de4f['id'],'type':_0x14351a[_0x51eea4('0x74')],'sectionId':_0x14351a['id']},{})[_0x51eea4('0x66')](function(){return _0x97a60d;}):_0x97a60d;})[_0x3836da('0x9d')](function(_0x24f179){const _0x1ed0d5=_0x3836da;logger['error'](_0x1ed0d5('0x36'),_0x24f179);throw _0x24f179;});}return _0x97a60d;})['then'](respondWithResult(_0x2e4067,0xc9))[_0x52668b('0x9d')](handleError(_0x2e4067,null));},exports[_0x4fc144('0x40')]=function(_0x3175fc,_0x53ea8c){const _0x38aaab=_0x4fc144;return _0x3175fc[_0x38aaab('0x2b')]['id']&&delete _0x3175fc[_0x38aaab('0x2b')]['id'],db[_0x38aaab('0xc7')][_0x38aaab('0xbc')]({'where':{'id':_0x3175fc[_0x38aaab('0x6d')]['id']},'include':[{'model':db[_0x38aaab('0xc8')],'as':'mandatoryDispositionPause'}]})[_0x38aaab('0x66')](handleEntityNotFound(_0x53ea8c,null))[_0x38aaab('0x66')](saveUpdates(_0x3175fc[_0x38aaab('0x2b')],null))[_0x38aaab('0x66')](respondWithResult(_0x53ea8c,null))[_0x38aaab('0x9d')](handleError(_0x53ea8c,null));},exports[_0x4fc144('0xcc')]=function(_0x346f91,_0x525bdb){const _0x1b6ecb=_0x4fc144;return db['SmsAccount'][_0x1b6ecb('0xbc')]({'where':{'id':_0x346f91[_0x1b6ecb('0x6d')]['id']}})['then'](handleEntityNotFound(_0x525bdb,null))[_0x1b6ecb('0x66')](removeEntity(_0x525bdb,null))[_0x1b6ecb('0x9d')](handleError(_0x525bdb,null));},exports[_0x4fc144('0xc0')]=function(_0x2d7726,_0x1359f0){const _0xb4a5e5=_0x4fc144;return db['SmsAccount']['describe']()['then'](respondWithResult(_0x1359f0,null))[_0xb4a5e5('0x9d')](handleError(_0x1359f0,null));},exports[_0x4fc144('0x91')]=function(_0x5285d1,_0x1e4e34){const _0x2c17c0=_0x4fc144;return _0x5285d1['body']['id']&&delete _0x5285d1['body']['id'],db[_0x2c17c0('0xc7')]['findOne']({'where':{'id':_0x5285d1[_0x2c17c0('0x6d')]['id']}})['then'](handleEntityNotFound(_0x1e4e34,null))[_0x2c17c0('0x66')](function(_0x3de3fb){const _0x573fa8=_0x2c17c0;if(_0x3de3fb)return _0x5285d1['body']['SmsAccountId']=_0x3de3fb['id'],db[_0x573fa8('0x76')][_0x573fa8('0x3b')](_0x5285d1[_0x573fa8('0x2b')]);})['then'](respondWithResult(_0x1e4e34,null))[_0x2c17c0('0x9d')](handleError(_0x1e4e34,null));},exports['getDispositions']=function(_0x15261c,_0x390c68){const _0x14532e=_0x4fc144;let _0x442468={'raw':![],'where':{}};const _0x210a3d={},_0x5cf701={'count':0x0,'rows':[]};return db[_0x14532e('0xc7')]['findOne']({'where':{'id':_0x15261c['params']['id']}})[_0x14532e('0x66')](handleEntityNotFound(_0x390c68,null))[_0x14532e('0x66')](function(_0x11b238){const _0x1f3d32=_0x14532e;if(_0x11b238)return _0x210a3d[_0x1f3d32('0x37')]=_[_0x1f3d32('0xca')](db['Disposition'][_0x1f3d32('0x9f')]),_0x210a3d['query']=_[_0x1f3d32('0xca')](_0x15261c[_0x1f3d32('0xa1')]),_0x210a3d[_0x1f3d32('0x80')]=_[_0x1f3d32('0xb5')](_0x210a3d[_0x1f3d32('0x37')],_0x210a3d[_0x1f3d32('0xa1')]),_0x442468[_0x1f3d32('0x68')]=_[_0x1f3d32('0xb5')](_0x210a3d['model'],qs[_0x1f3d32('0x4')](_0x15261c[_0x1f3d32('0xa1')]['fields'])),_0x442468[_0x1f3d32('0x68')]=_0x442468['attributes'][_0x1f3d32('0x0')]?_0x442468[_0x1f3d32('0x68')]:_0x210a3d[_0x1f3d32('0x37')],typeof _0x15261c[_0x1f3d32('0xa1')][_0x1f3d32('0x21')]===_0x1f3d32('0xb7')&&(_0x442468[_0x1f3d32('0x58')]=qs[_0x1f3d32('0x58')](_0x15261c[_0x1f3d32('0xa1')]['limit']),_0x442468[_0x1f3d32('0xc5')]=qs['offset'](_0x15261c[_0x1f3d32('0xa1')]['offset'])),_0x442468['order']=qs[_0x1f3d32('0xc2')](_0x15261c['query'][_0x1f3d32('0xc2')]),_0x442468['where']=qs[_0x1f3d32('0x80')](_['pick'](_0x15261c[_0x1f3d32('0xa1')],_0x210a3d[_0x1f3d32('0x80')])),_0x442468['where'][_0x1f3d32('0x92')]=_0x11b238['id'],_0x15261c[_0x1f3d32('0xa1')][_0x1f3d32('0xa2')]&&(_0x442468[_0x1f3d32('0x6f')]=_['merge'](_0x442468[_0x1f3d32('0x6f')],{[Op['or']]:_[_0x1f3d32('0xb8')](_0x442468['attributes'],function(_0x4687e3){const _0xdb4477=_0x1f3d32,_0x16b872={};return _0x16b872[_0x4687e3]={[Op['like']]:'%'+_0x15261c[_0xdb4477('0xa1')][_0xdb4477('0xa2')]+'%'},_0x16b872;})})),_0x442468=_[_0x1f3d32('0x67')]({},_0x442468,_0x15261c[_0x1f3d32('0x73')]),db['Disposition'][_0x1f3d32('0x48')]({'where':_0x442468['where']})['then'](function(_0x56900c){const _0x217209=_0x1f3d32;return _0x5cf701[_0x217209('0x48')]=_0x56900c,_0x15261c[_0x217209('0xa1')][_0x217209('0xc3')]&&(_0x442468['include']=[{'all':!![]}]),db[_0x217209('0x76')][_0x217209('0x2a')](_0x442468);})[_0x1f3d32('0x66')](function(_0x12473c){const _0x1b726f=_0x1f3d32;return _0x5cf701[_0x1b726f('0x7')]=_0x12473c,_0x5cf701;});})['then'](respondWithFilteredResult(_0x390c68,_0x442468))[_0x14532e('0x9d')](handleError(_0x390c68,null));},exports[_0x4fc144('0xcb')]=function(_0x1e1257,_0xe5f42b){const _0x11b0f0=_0x4fc144;return db[_0x11b0f0('0xc7')][_0x11b0f0('0xbc')]({'where':{'id':_0x1e1257[_0x11b0f0('0x6d')]['id']}})[_0x11b0f0('0x66')](handleEntityNotFound(_0xe5f42b,null))['then'](function(_0x29917a){const _0x19095d=_0x11b0f0;if(_0x29917a)return _0x29917a[_0x19095d('0xcb')](_0x1e1257[_0x19095d('0xa1')][_0x19095d('0x9a')]);})[_0x11b0f0('0x66')](respondWithStatusCode(_0xe5f42b,null))[_0x11b0f0('0x9d')](handleError(_0xe5f42b,null));},exports['addAnswer']=function(_0x172175,_0x5e263c){const _0x3d9f7f=_0x4fc144;return _0x172175[_0x3d9f7f('0x2b')]['id']&&delete _0x172175[_0x3d9f7f('0x2b')]['id'],db['SmsAccount'][_0x3d9f7f('0xbc')]({'where':{'id':_0x172175[_0x3d9f7f('0x6d')]['id']}})[_0x3d9f7f('0x66')](handleEntityNotFound(_0x5e263c,null))[_0x3d9f7f('0x66')](function(_0x1b612d){const _0x34826d=_0x3d9f7f;if(_0x1b612d)return _0x172175[_0x34826d('0x2b')][_0x34826d('0x92')]=_0x1b612d['id'],db[_0x34826d('0x82')][_0x34826d('0x3b')](_0x172175[_0x34826d('0x2b')]);})[_0x3d9f7f('0x66')](respondWithResult(_0x5e263c,null))[_0x3d9f7f('0x9d')](handleError(_0x5e263c,null));},exports[_0x4fc144('0x5')]=function(_0x592152,_0x336220){const _0xc41e15=_0x4fc144;let _0x3200db={'raw':![],'where':{}};const _0x2e4510={},_0x4fc38f={'count':0x0,'rows':[]};return db[_0xc41e15('0xc7')][_0xc41e15('0xbc')]({'where':{'id':_0x592152[_0xc41e15('0x6d')]['id']}})[_0xc41e15('0x66')](handleEntityNotFound(_0x336220,null))[_0xc41e15('0x66')](function(_0x114ee1){const _0x2520cc=_0xc41e15;if(_0x114ee1)return _0x2e4510[_0x2520cc('0x37')]=_['keys'](db[_0x2520cc('0x82')]['rawAttributes']),_0x2e4510[_0x2520cc('0xa1')]=_[_0x2520cc('0xca')](_0x592152[_0x2520cc('0xa1')]),_0x2e4510[_0x2520cc('0x80')]=_[_0x2520cc('0xb5')](_0x2e4510[_0x2520cc('0x37')],_0x2e4510['query']),_0x3200db['attributes']=_[_0x2520cc('0xb5')](_0x2e4510[_0x2520cc('0x37')],qs[_0x2520cc('0x4')](_0x592152[_0x2520cc('0xa1')][_0x2520cc('0x4')])),_0x3200db[_0x2520cc('0x68')]=_0x3200db[_0x2520cc('0x68')][_0x2520cc('0x0')]?_0x3200db['attributes']:_0x2e4510[_0x2520cc('0x37')],typeof _0x592152['query'][_0x2520cc('0x21')]==='undefined'&&(_0x3200db['limit']=qs[_0x2520cc('0x58')](_0x592152[_0x2520cc('0xa1')][_0x2520cc('0x58')]),_0x3200db['offset']=qs[_0x2520cc('0xc5')](_0x592152[_0x2520cc('0xa1')][_0x2520cc('0xc5')])),_0x3200db['order']=qs[_0x2520cc('0xc2')](_0x592152[_0x2520cc('0xa1')][_0x2520cc('0xc2')]),_0x3200db[_0x2520cc('0x6f')]=qs[_0x2520cc('0x80')](_[_0x2520cc('0x4f')](_0x592152['query'],_0x2e4510[_0x2520cc('0x80')])),_0x3200db[_0x2520cc('0x6f')]['SmsAccountId']=_0x114ee1['id'],_0x592152[_0x2520cc('0xa1')][_0x2520cc('0xa2')]&&(_0x3200db['where']=_[_0x2520cc('0x67')](_0x3200db['where'],{[Op['or']]:_[_0x2520cc('0xb8')](_0x3200db['attributes'],function(_0x13e4a5){const _0x2cd511=_0x2520cc,_0x1aa976={};return _0x1aa976[_0x13e4a5]={[Op[_0x2cd511('0x1f')]]:'%'+_0x592152['query'][_0x2cd511('0xa2')]+'%'},_0x1aa976;})})),_0x3200db=_[_0x2520cc('0x67')]({},_0x3200db,_0x592152[_0x2520cc('0x73')]),db[_0x2520cc('0x82')][_0x2520cc('0x48')]({'where':_0x3200db[_0x2520cc('0x6f')]})['then'](function(_0x4b0ff6){const _0x5d8337=_0x2520cc;return _0x4fc38f[_0x5d8337('0x48')]=_0x4b0ff6,_0x592152['query']['includeAll']&&(_0x3200db[_0x5d8337('0x1')]=[{'all':!![]}]),db[_0x5d8337('0x82')][_0x5d8337('0x2a')](_0x3200db);})[_0x2520cc('0x66')](function(_0x38fd76){const _0x5742c6=_0x2520cc;return _0x4fc38f[_0x5742c6('0x7')]=_0x38fd76,_0x4fc38f;});})[_0xc41e15('0x66')](respondWithFilteredResult(_0x336220,_0x3200db))['catch'](handleError(_0x336220,null));},exports['removeAnswers']=function(_0x58ec76,_0xaf1790){const _0x1867da=_0x4fc144;return db[_0x1867da('0xc7')][_0x1867da('0xbc')]({'where':{'id':_0x58ec76[_0x1867da('0x6d')]['id']}})[_0x1867da('0x66')](handleEntityNotFound(_0xaf1790,null))[_0x1867da('0x66')](function(_0xc27143){const _0xe1f2c1=_0x1867da;if(_0xc27143)return _0xc27143[_0xe1f2c1('0xa9')](_0x58ec76['query'][_0xe1f2c1('0x9a')]);})[_0x1867da('0x66')](respondWithStatusCode(_0xaf1790,null))[_0x1867da('0x9d')](handleError(_0xaf1790,null));},exports[_0x4fc144('0xb4')]=function(_0x49d335,_0x392b59){const _0x5c947b=_0x4fc144,_0x38e687={'channel':_0x5c947b('0x32')};let _0x100ab0=[],_0x1c5bf0=[];const _0x2ab885={};return db[_0x5c947b('0xc7')][_0x5c947b('0xbc')]({'where':{'id':_0x49d335[_0x5c947b('0x6d')]['id']},'include':[{'model':db[_0x5c947b('0x88')],'as':'Applications'}]})[_0x5c947b('0x66')](handleEntityNotFound(_0x392b59,null))[_0x5c947b('0x66')](function(_0x69dfd0){const _0x324f54=_0x5c947b;return _0x38e687[_0x324f54('0x10')]=_0x69dfd0,_0x38e687['applications']=_['orderBy'](_0x69dfd0['Applications'],[_0x324f54('0xb6')],[_0x324f54('0x1d')]),_0x38e687[_0x324f54('0x10')][_0x324f54('0x52')]&&delete _0x38e687[_0x324f54('0x10')][_0x324f54('0x52')],db[_0x324f54('0xc4')]['describe']();})['then'](function(_0x5489a3){const _0x16c861=_0x5c947b;if(!_0x5489a3)throw new db[(_0x16c861('0x7e'))]['ValidationError'](_0x16c861('0x8f'));_0x100ab0=_[_0x16c861('0x98')](_[_0x16c861('0xca')](_0x5489a3),[_0x16c861('0xb3'),'updatedAt']),_0x1c5bf0=_[_0x16c861('0x98')](_['keys'](_0x5489a3),[_0x16c861('0xb3'),_0x16c861('0xba'),_0x16c861('0x14'),_0x16c861('0xbd')]),_0x38e687[_0x16c861('0x2b')]={'mapKey':_0x16c861('0x97')};if(_0x38e687[_0x16c861('0x10')]['type'])switch(_0x38e687['account'][_0x16c861('0x4b')]){case _0x16c861('0xce'):_0x38e687['body'][_0x16c861('0x42')]=_0x49d335[_0x16c861('0x2b')]['From'],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x2b')]=_0x49d335['body'][_0x16c861('0x26')],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x55')]=_0x49d335[_0x16c861('0x2b')]['MessageSid'];break;case _0x16c861('0x43'):_0x38e687[_0x16c861('0x2b')][_0x16c861('0x42')]='+'+_0x49d335[_0x16c861('0x2b')][_0x16c861('0x4d')],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x2b')]=_0x49d335[_0x16c861('0x2b')]['text'];break;case _0x16c861('0xc9'):_0x38e687[_0x16c861('0x2b')][_0x16c861('0x42')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x42')],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x2b')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x51')];break;case _0x16c861('0xf'):_0x38e687[_0x16c861('0x2b')][_0x16c861('0x42')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x42')],_0x38e687[_0x16c861('0x2b')]['body']=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x2b')],_0x38e687[_0x16c861('0x2b')]['messageId']=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x16')];break;case _0x16c861('0x7b'):_0x38e687[_0x16c861('0x2b')][_0x16c861('0x42')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x94')],_0x38e687[_0x16c861('0x2b')]['body']=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x60')],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x55')]=_0x49d335['body'][_0x16c861('0x6e')];break;case'infobip':_0x38e687[_0x16c861('0x2b')]['from']='+'+_0x49d335[_0x16c861('0x2b')][_0x16c861('0xa4')][0x0][_0x16c861('0x42')],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x2b')]=_0x49d335['body'][_0x16c861('0xa4')][0x0][_0x16c861('0x83')],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x55')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0xa4')][0x0][_0x16c861('0x55')];break;case'csc':_0x38e687[_0x16c861('0x2b')]['from']=_0x49d335[_0x16c861('0x2b')]['originatingAddress'],_0x38e687['body'][_0x16c861('0x2b')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0xb')][_0x16c861('0x51')];break;case _0x16c861('0x19'):_0x38e687[_0x16c861('0x2b')][_0x16c861('0x42')]=_0x49d335['body'][_0x16c861('0xb1')],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x2b')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x83')],_0x38e687[_0x16c861('0x2b')][_0x16c861('0x55')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x50')];break;case _0x16c861('0xae'):_0x38e687[_0x16c861('0x2b')][_0x16c861('0x42')]=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x42')],_0x38e687['body']['body']=_0x49d335[_0x16c861('0x2b')][_0x16c861('0x51')],_0x38e687['body']['messageId']=_0x49d335[_0x16c861('0x2b')]['refid'];break;}_0x38e687[_0x16c861('0x2b')]['id']&&delete _0x38e687[_0x16c861('0x2b')]['id'];if(_[_0x16c861('0xc1')](_0x38e687['body'][_0x16c861('0x42')]))throw new db[(_0x16c861('0x7e'))][(_0x16c861('0xa8'))](_0x16c861('0x3e'));if(_[_0x16c861('0xc1')](_0x38e687[_0x16c861('0x2b')][_0x16c861('0x2b')])||_0x38e687[_0x16c861('0x2b')]['body']==='')throw new db['Sequelize'][(_0x16c861('0xa8'))](_0x16c861('0xad'));if(_[_0x16c861('0xc1')](_0x38e687[_0x16c861('0x2b')][_0x16c861('0xb0')]))throw new db[(_0x16c861('0x7e'))][(_0x16c861('0xa8'))](_0x16c861('0x2d')+_0x1c5bf0);if(!_[_0x16c861('0x3c')](_0x1c5bf0,_0x38e687[_0x16c861('0x2b')][_0x16c861('0xb0')]))throw new db[(_0x16c861('0x7e'))][(_0x16c861('0xa8'))](_0x16c861('0x53')+_0x1c5bf0);return _0x2ab885[_0x38e687[_0x16c861('0x2b')][_0x16c861('0xb0')]]=_0x38e687[_0x16c861('0x2b')][_0x16c861('0x42')],db[_0x16c861('0x54')]['findOne']({'where':{'id':_0x38e687['account'][_0x16c861('0xbd')]},'include':[{'model':db[_0x16c861('0xc4')],'as':_0x16c861('0x2e'),'where':_0x2ab885,'limit':0x1,'order':[[_0x16c861('0xba'),_0x16c861('0x29')]]}]});})[_0x5c947b('0x66')](handleEntityNotFound(_0x392b59,null))[_0x5c947b('0x66')](function(_0x266594){const _0x11b505=_0x5c947b;if(_0x266594){_0x38e687['list']=_[_0x11b505('0x75')](_0x266594,[_0x11b505('0x2e')]);if(_0x266594[_0x11b505('0x2e')][_0x11b505('0x0')])return _0x266594['Contacts'][0x0];const _0x5c0b73=_[_0x11b505('0x39')](_0x38e687[_0x11b505('0x2b')],{'firstName':_0x38e687['body'][_0x11b505('0x42')],'ListId':_0x266594['id']});return _0x5c0b73[_0x38e687['body'][_0x11b505('0xb0')]]=_0x38e687['body'][_0x11b505('0x42')],db[_0x11b505('0xc4')][_0x11b505('0x3b')](_0x5c0b73,{'fields':_0x100ab0,'raw':!![]});}})[_0x5c947b('0x66')](handleEntityNotFound(_0x392b59,null))[_0x5c947b('0x66')](function(_0x3d0402){const _0x5e9621=_0x5c947b;if(_0x3d0402){_0x38e687[_0x5e9621('0x25')]=_0x3d0402;const _0x4e8515={'ContactId':_0x3d0402['id'],'phone':_0x38e687[_0x5e9621('0x2b')][_0x5e9621('0x42')],'SmsAccountId':_0x49d335[_0x5e9621('0x6d')]['id']},_0x4ed6ad={'ContactId':_0x3d0402['id'],'SmsAccountId':_0x49d335[_0x5e9621('0x6d')]['id'],'closed':![]};return db[_0x5e9621('0x8b')][_0x5e9621('0xbc')]({'where':_0x4ed6ad})['then'](function(_0x5158f5){const _0xceb08f=_0x5e9621;if(_0x5158f5)return[_0x5158f5,![]];return db[_0xceb08f('0x8b')]['create'](_0x4e8515)['then'](function(_0x5d15b0){return[_0x5d15b0,!![]];});});}})[_0x5c947b('0x66')](function([_0x313195,_0x52d3e5]){const _0x2811b6=_0x5c947b;return _0x38e687['interaction']=_0x313195[_0x2811b6('0x27')]({'plain':!![]}),_0x38e687[_0x2811b6('0x99')][_0x2811b6('0x9b')]=![],_0x52d3e5&&(_0x38e687['account'][_0x2811b6('0x4e')]&&_0x38e687[_0x2811b6('0x8')][_0x2811b6('0x1b')]({'id':0x0,'priority':_0x38e687[_0x2811b6('0x8')][_0x2811b6('0x0')]+0x1,'app':_0x2811b6('0xe'),'appdata':_0x2811b6('0x84'),'interval':_0x2811b6('0x3')}),_0x38e687[_0x2811b6('0x99')]['created']=!![]),db['SmsMessage']['create']({'phone':_0x38e687[_0x2811b6('0x2b')][_0x2811b6('0x42')],'messageId':_0x38e687[_0x2811b6('0x2b')][_0x2811b6('0x55')],'body':_0x38e687['body'][_0x2811b6('0x2b')],'SmsAccountId':_0x49d335[_0x2811b6('0x6d')]['id'],'SmsInteractionId':_0x313195['id'],'direction':'in','ContactId':_0x313195[_0x2811b6('0xb9')],'AttachmentId':_0x38e687[_0x2811b6('0x2b')][_0x2811b6('0x3a')]});})[_0x5c947b('0x66')](function(_0x150f29){const _0x18b311=_0x5c947b;_0x38e687['message']=_0x150f29;if(_0x38e687[_0x18b311('0x99')][_0x18b311('0xa3')])return db['User'][_0x18b311('0xbc')]({'attributes':['id',_0x18b311('0x74')],'where':{'id':_0x38e687[_0x18b311('0x99')][_0x18b311('0xa3')]}})[_0x18b311('0x66')](function(_0x44f32c){const _0x1af523=_0x18b311;return _0x44f32c&&_0x38e687['applications'][_0x1af523('0xa')]({'id':0x0,'priority':0x0,'app':_0x1af523('0x8e'),'appdata':_0x44f32c[_0x1af523('0x74')]+','+(_0x38e687['account']['waitForTheAssignedAgent']||0xa),'interval':_0x1af523('0x3')}),respondWithRpcPromise('Start',_0x1af523('0x18'),_0x38e687);});return respondWithRpcPromise(_0x18b311('0x24'),'startRouting',_0x38e687);})[_0x5c947b('0x66')](function(_0x531a67){const _0x410324=_0x5c947b;if(_0x531a67){const _0x375960=0xc8,_0x1f8fbf=_0x410324('0x7d');return logger[_0x410324('0x8a')](_0x410324('0x33'),_0x1f8fbf,_0x375960,_0x410324('0x23')),logger[_0x410324('0x47')]('SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s',_0x1f8fbf,_0x375960,_0x410324('0x23'),JSON['stringify'](_0x531a67)),_0x38e687[_0x410324('0x10')]['type']===_0x410324('0xce')?_0x392b59[_0x410324('0x5e')](_0x375960)['set'](_0x410324('0xb2'),_0x410324('0x28'))[_0x410324('0x56')]('\x0a'):_0x392b59[_0x410324('0x5e')](_0x375960)[_0x410324('0xc6')](_0x531a67);}})[_0x5c947b('0x9d')](handleError(_0x392b59,null));},exports['addApplications']=function(_0xa6e2bc,_0x3eb88f){const _0x39d668=_0x4fc144;return db['SmsAccount'][_0x39d668('0xbc')]({'where':{'id':_0xa6e2bc[_0x39d668('0x6d')]['id']}})[_0x39d668('0x66')](handleEntityNotFound(_0x3eb88f,null))[_0x39d668('0x66')](function(_0x38d312){const _0x20ce94=_0x39d668;if(_0x38d312)return db['sequelize'][_0x20ce94('0x2')](function(_0x4ab389){const _0xf3672d=_0x20ce94;return db[_0xf3672d('0x88')][_0xf3672d('0xcc')]({'where':{'SmsAccountId':_0xa6e2bc[_0xf3672d('0x6d')]['id']},'transaction':_0x4ab389})[_0xf3672d('0x66')](function(){const _0x36665d=_0xf3672d,_0x5a2cdc=_[_0x36665d('0xb8')](_0xa6e2bc['body'],function(_0x1166d1){const _0x465f32=_0x36665d;return _0x1166d1[_0x465f32('0x92')]=_0xa6e2bc[_0x465f32('0x6d')]['id'],_0x1166d1;});return db['SmsApplication'][_0x36665d('0x34')](_0x5a2cdc,{'transaction':_0x4ab389});});})['then'](function(){const _0x4cf287=_0x20ce94;return db[_0x4cf287('0x88')]['findAndCountAll']({'where':{'SmsAccountId':_0xa6e2bc[_0x4cf287('0x6d')]['id']},'order':_0x4cf287('0xb6')});});})[_0x39d668('0x66')](respondWithResult(_0x3eb88f,null))[_0x39d668('0x9d')](handleError(_0x3eb88f,null));},exports[_0x4fc144('0x45')]=function(_0x2a0f76,_0x2a1ac7){const _0x102c9d=_0x4fc144;let _0x33a301={};const _0x3256f3={};let _0x269cb9,_0x3eca6b;return db[_0x102c9d('0xc7')]['findOne']({'where':{'id':_0x2a0f76[_0x102c9d('0x6d')]['id']}})[_0x102c9d('0x66')](handleEntityNotFound(_0x2a1ac7,null))[_0x102c9d('0x66')](function(_0xe712fa){const _0xee85fa=_0x102c9d;if(_0xe712fa)return _0x269cb9=_0xe712fa,_0x3256f3[_0xee85fa('0x37')]=_[_0xee85fa('0xca')](db[_0xee85fa('0x88')]['rawAttributes']),_0x3256f3[_0xee85fa('0xa1')]=_[_0xee85fa('0xca')](_0x2a0f76['query']),_0x3256f3[_0xee85fa('0x80')]=_[_0xee85fa('0xb5')](_0x3256f3[_0xee85fa('0x37')],_0x3256f3[_0xee85fa('0xa1')]),_0x33a301[_0xee85fa('0x68')]=_[_0xee85fa('0xb5')](_0x3256f3['model'],qs['fields'](_0x2a0f76[_0xee85fa('0xa1')]['fields'])),_0x33a301['attributes']=_0x33a301['attributes']['length']?_0x33a301[_0xee85fa('0x68')]:_0x3256f3[_0xee85fa('0x37')],_0x33a301['order']=qs['sort'](_0x2a0f76[_0xee85fa('0xa1')][_0xee85fa('0xc2')]),_0x33a301[_0xee85fa('0x6f')]=qs[_0xee85fa('0x80')](_[_0xee85fa('0x4f')](_0x2a0f76[_0xee85fa('0xa1')],_0x3256f3[_0xee85fa('0x80')])),_0x2a0f76[_0xee85fa('0xa1')][_0xee85fa('0xa2')]&&(_0x33a301['where']=_[_0xee85fa('0x67')](_0x33a301[_0xee85fa('0x6f')],{[Op['or']]:_[_0xee85fa('0xb8')](_0x33a301['attributes'],function(_0x1a06e3){const _0x497f2a=_0xee85fa,_0x2a45f8={};return _0x2a45f8[_0x1a06e3]={[Op['like']]:'%'+_0x2a0f76['query'][_0x497f2a('0xa2')]+'%'},_0x2a45f8;})})),_0x33a301=_['merge']({},_0x33a301,_0x2a0f76[_0xee85fa('0x73')]),_0x269cb9[_0xee85fa('0x45')](_0x33a301);})[_0x102c9d('0x66')](function(_0xc20fcc){const _0x2d1e08=_0x102c9d;if(_0xc20fcc)return _0x3eca6b=_0xc20fcc['length'],typeof _0x2a0f76['query'][_0x2d1e08('0x21')]==='undefined'&&(_0x33a301['limit']=qs[_0x2d1e08('0x58')](_0x2a0f76[_0x2d1e08('0xa1')][_0x2d1e08('0x58')]),_0x33a301[_0x2d1e08('0xc5')]=qs[_0x2d1e08('0xc5')](_0x2a0f76[_0x2d1e08('0xa1')][_0x2d1e08('0xc5')])),_0x269cb9['getApplications'](_0x33a301);})['then'](function(_0x2790e8){if(_0x2790e8)return _0x2790e8?{'count':_0x3eca6b,'rows':_0x2790e8}:null;})[_0x102c9d('0x66')](respondWithResult(_0x2a1ac7,null))[_0x102c9d('0x9d')](handleError(_0x2a1ac7,null));},exports['getInteractions']=function(_0x4cbad2,_0x4a3f49){const _0x5a10b7=_0x4fc144;let _0x1fcf07={'raw':![],'where':{}};const _0x4aee85={},_0x10fc26={'count':0x0,'rows':[]};return db[_0x5a10b7('0xc7')]['findOne']({'where':{'id':_0x4cbad2['params']['id']}})[_0x5a10b7('0x66')](handleEntityNotFound(_0x4a3f49,null))[_0x5a10b7('0x66')](function(_0x5389ca){const _0x40e63d=_0x5a10b7;if(_0x5389ca)return _0x4aee85[_0x40e63d('0x37')]=_[_0x40e63d('0xca')](db[_0x40e63d('0x8b')][_0x40e63d('0x9f')]),_0x4aee85[_0x40e63d('0xa1')]=_[_0x40e63d('0xca')](_0x4cbad2[_0x40e63d('0xa1')]),_0x4aee85[_0x40e63d('0x80')]=_[_0x40e63d('0xb5')](_0x4aee85['model'],_0x4aee85[_0x40e63d('0xa1')]),_0x1fcf07[_0x40e63d('0x68')]=_[_0x40e63d('0xb5')](_0x4aee85['model'],qs[_0x40e63d('0x4')](_0x4cbad2[_0x40e63d('0xa1')][_0x40e63d('0x4')])),_0x1fcf07[_0x40e63d('0x68')]=_0x1fcf07[_0x40e63d('0x68')][_0x40e63d('0x0')]?_0x1fcf07[_0x40e63d('0x68')]:_0x4aee85['model'],typeof _0x4cbad2['query'][_0x40e63d('0x21')]===_0x40e63d('0xb7')&&(_0x1fcf07[_0x40e63d('0x58')]=qs[_0x40e63d('0x58')](_0x4cbad2[_0x40e63d('0xa1')]['limit']),_0x1fcf07['offset']=qs[_0x40e63d('0xc5')](_0x4cbad2[_0x40e63d('0xa1')][_0x40e63d('0xc5')])),_0x1fcf07['order']=qs[_0x40e63d('0xc2')](_0x4cbad2[_0x40e63d('0xa1')]['sort']),_0x1fcf07[_0x40e63d('0x6f')]=qs['filters'](_[_0x40e63d('0x4f')](_0x4cbad2[_0x40e63d('0xa1')],_0x4aee85['filters'])),_0x1fcf07[_0x40e63d('0x6f')][_0x40e63d('0x92')]=_0x5389ca['id'],_0x4cbad2[_0x40e63d('0xa1')][_0x40e63d('0xa2')]&&(_0x1fcf07[_0x40e63d('0x6f')]=_[_0x40e63d('0x67')](_0x1fcf07[_0x40e63d('0x6f')],{[Op['or']]:_[_0x40e63d('0xb8')](_0x1fcf07[_0x40e63d('0x68')],function(_0x2b4528){const _0x12b3ab=_0x40e63d,_0x1ab4a3={};return _0x1ab4a3[_0x2b4528]={[Op['like']]:'%'+_0x4cbad2[_0x12b3ab('0xa1')][_0x12b3ab('0xa2')]+'%'},_0x1ab4a3;})})),_0x1fcf07=_[_0x40e63d('0x67')]({},_0x1fcf07,_0x4cbad2[_0x40e63d('0x73')]),db['SmsInteraction'][_0x40e63d('0x48')]({'where':_0x1fcf07[_0x40e63d('0x6f')]})[_0x40e63d('0x66')](function(_0x169082){const _0x11eeef=_0x40e63d;return _0x10fc26[_0x11eeef('0x48')]=_0x169082,_0x4cbad2[_0x11eeef('0xa1')][_0x11eeef('0xc3')]&&(_0x1fcf07[_0x11eeef('0x1')]=[{'model':db['CmContact'],'as':_0x11eeef('0x77'),'required':![]},{'model':db[_0x11eeef('0x72')],'as':_0x11eeef('0x13'),'attributes':[_0x11eeef('0x74'),_0x11eeef('0x79'),_0x11eeef('0xbb')],'required':![]},{'model':db[_0x11eeef('0x93')],'as':_0x11eeef('0x81'),'attributes':['id','name',_0x11eeef('0x49')],'where':_0x4cbad2[_0x11eeef('0xa1')]['tag']?{'id':_0x4cbad2[_0x11eeef('0xa1')][_0x11eeef('0xa7')]}:undefined,'required':_0x4cbad2['query'][_0x11eeef('0xa7')]?!![]:![]}]),db[_0x11eeef('0x8b')]['findAll'](_0x1fcf07);})[_0x40e63d('0x66')](function(_0x40e628){const _0x29ca79=_0x40e63d;return _0x10fc26[_0x29ca79('0x7')]=_0x40e628,_0x10fc26;});})['then'](respondWithFilteredResult(_0x4a3f49,_0x1fcf07))[_0x5a10b7('0x9d')](handleError(_0x4a3f49,null));},exports[_0x4fc144('0x56')]=function(_0x408407,_0x512d1c){const _0x8da42c=_0x4fc144;let _0x3e9e67,_0xadb50d;if(_['isNil'](_0x408407[_0x8da42c('0x2b')]['body'])||_0x408407[_0x8da42c('0x2b')]['body']==='')throw new db[(_0x8da42c('0x7e'))][(_0x8da42c('0xa8'))](_0x8da42c('0xad'));if(_['isNil'](_0x408407[_0x8da42c('0x2b')]['to']))throw new db[(_0x8da42c('0x7e'))][(_0x8da42c('0xa8'))](_0x8da42c('0x38'));const _0x31a367=_0x408407[_0x8da42c('0x2b')]['to'];return db[_0x8da42c('0xc7')][_0x8da42c('0xbc')]({'where':{'id':_0x408407[_0x8da42c('0x6d')]['id']},'include':[{'model':db['CmList'],'as':_0x8da42c('0x96'),'include':[{'model':db[_0x8da42c('0xc4')],'as':'Contacts','where':{'mobile':_0x31a367},'limit':0x1,'order':[['updatedAt',_0x8da42c('0x29')]]}]}]})[_0x8da42c('0x66')](handleEntityNotFound(_0x512d1c,null))[_0x8da42c('0x66')](function(_0x2a6036){const _0xe668d0=_0x8da42c;if(_0x2a6036&&_0x2a6036[_0xe668d0('0x96')]){_0x3e9e67=_0x2a6036[_0xe668d0('0x27')]({'plain':!![]});if(_0x3e9e67[_0xe668d0('0x96')]&&_0x3e9e67['List'][_0xe668d0('0x2e')][_0xe668d0('0x0')])return _0x3e9e67[_0xe668d0('0x96')][_0xe668d0('0x2e')][0x0];return db[_0xe668d0('0xc4')]['create'](_[_0xe668d0('0x39')](_0x408407['body'],{'firstName':_0x31a367,'mobile':_0x31a367,'phone':_0x31a367,'ListId':_0x3e9e67[_0xe668d0('0xbd')]}));}})[_0x8da42c('0x66')](handleEntityNotFound(_0x512d1c,null))[_0x8da42c('0x66')](function(_0x3f02e5){const _0x461cb6=_0x8da42c;if(_0x3f02e5)return _0xadb50d=_0x3f02e5,db[_0x461cb6('0x8b')][_0x461cb6('0xbc')]({'where':{'ContactId':_0xadb50d['id'],'closed':![],'SmsAccountId':_0x3e9e67['id']}})[_0x461cb6('0x66')](function(_0x4c6d01){const _0x428ff1=_0x461cb6;if(_0x4c6d01)return[_0x4c6d01,![]];return db[_0x428ff1('0x8b')][_0x428ff1('0x3b')]({'UserId':_0x408407['user']['id'],'ContactId':_0xadb50d['id'],'SmsAccountId':_0x3e9e67['id'],'phone':_0x31a367,'firstMsgDirection':_0x428ff1('0x1e'),'Messages':[_[_0x428ff1('0x67')](_0x408407['body'],{'read':![],'body':_0x408407[_0x428ff1('0x2b')][_0x428ff1('0x2b')],'phone':_0x31a367,'SmsAccountId':_0x3e9e67['id'],'UserId':_0x408407['user']['id'],'ContactId':_0xadb50d['id']})]},{'include':[{'model':db[_0x428ff1('0x6c')],'as':'Messages'}]})[_0x428ff1('0x66')](function(_0x4b9e2e){return[_0x4b9e2e,!![]];});});})[_0x8da42c('0x66')](function([_0x35ab82,_0x5aca9]){const _0x5db95e=_0x8da42c;if(_0x5aca9)return _0x35ab82;return db[_0x5db95e('0x6c')][_0x5db95e('0x3b')](_[_0x5db95e('0x67')](_0x408407[_0x5db95e('0x2b')],{'read':![],'body':_0x408407[_0x5db95e('0x2b')]['body'],'phone':_0x31a367,'SmsAccountId':_0x3e9e67['id'],'SmsInteractionId':_0x35ab82['id'],'UserId':_0x408407['user']['id'],'ContactId':_0xadb50d['id']}))[_0x5db95e('0x66')](function(_0x267c87){const _0x1d1247=_0x5db95e;return _0x35ab82[_0x1d1247('0x86')][_0x1d1247('0x5a')]=[],_0x35ab82[_0x1d1247('0x86')]['Messages'][_0x1d1247('0x1b')](_0x267c87[_0x1d1247('0x86')]),_0x35ab82;});})['then'](respondWithResult(_0x512d1c,null))[_0x8da42c('0x9d')](handleError(_0x512d1c,null));},exports[_0x4fc144('0x5e')]=function(_0x7784d1,_0x4319c9){const _0x2b8fcd=_0x4fc144;_0x7784d1[_0x2b8fcd('0x2b')]['id']&&delete _0x7784d1[_0x2b8fcd('0x2b')]['id'];console[_0x2b8fcd('0x44')](_0x2b8fcd('0x2f'),_0x7784d1[_0x2b8fcd('0x2b')]);let _0x53ce28,_0x321f82,_0x18e691;return db[_0x2b8fcd('0xc7')]['findOne']({'where':{'id':_0x7784d1[_0x2b8fcd('0x6d')]['id']}})[_0x2b8fcd('0x66')](handleEntityNotFound(_0x4319c9,null))[_0x2b8fcd('0x66')](function(_0x505ced){const _0x149e91=_0x2b8fcd;if(_0x505ced){_0x18e691=_0x505ced,logger[_0x149e91('0x47')](_0x149e91('0x33'),'status',_0x149e91('0x1a'),_0x505ced[_0x149e91('0x4b')],util[_0x149e91('0x4a')](_0x7784d1[_0x149e91('0x2b')],{'showHidden':![],'depth':null}));switch(_0x505ced[_0x149e91('0x4b')]){case _0x149e91('0x43'):if(_0x7784d1[_0x149e91('0x2b')][_0x149e91('0xa6')]&&_0x7784d1[_0x149e91('0x2b')][_0x149e91('0x5e')])return _0x321f82=_0x7784d1['body'][_0x149e91('0x5e')],db[_0x149e91('0x6c')][_0x149e91('0xbc')]({'where':{'messageId':_0x7784d1[_0x149e91('0x2b')][_0x149e91('0xa6')]}});break;case _0x149e91('0xc9'):if(_0x7784d1[_0x149e91('0x2b')]['requestid']&&_0x7784d1[_0x149e91('0x2b')][_0x149e91('0xc')])return _0x321f82=_0x7784d1[_0x149e91('0x2b')][_0x149e91('0xc')],db[_0x149e91('0x6c')]['findOne']({'where':{'messageId':_0x7784d1[_0x149e91('0x2b')]['requestid']}});break;case _0x149e91('0xf'):if(_0x7784d1[_0x149e91('0x2b')][_0x149e91('0x16')]&&_0x7784d1['body'][_0x149e91('0x5b')])return _0x321f82=_0x7784d1[_0x149e91('0x2b')][_0x149e91('0x5b')],db[_0x149e91('0x6c')][_0x149e91('0xbc')]({'where':{'messageId':_0x7784d1['body'][_0x149e91('0x16')]}});break;case _0x149e91('0x9c'):{const _0x2a445c=_0x7784d1[_0x149e91('0x2b')][_0x149e91('0xa4')][0x0];if(_0x2a445c[_0x149e91('0x55')]&&_0x2a445c[_0x149e91('0x5e')][_0x149e91('0xbf')]==='DELIVERED')return _0x321f82=_0x2a445c[_0x149e91('0x5e')]['groupName'],db['SmsMessage']['findOne']({'where':{'messageId':_0x2a445c['messageId']}});}break;case'clickatell':if(_0x7784d1[_0x149e91('0x2b')][_0x149e91('0x55')]&&_0x7784d1[_0x149e91('0x2b')][_0x149e91('0x5e')])return _0x321f82=_0x7784d1[_0x149e91('0x2b')][_0x149e91('0x5e')],db[_0x149e91('0x6c')][_0x149e91('0xbc')]({'where':{'messageId':_0x7784d1['body'][_0x149e91('0x55')]}});break;case _0x149e91('0xae'):if(_0x7784d1[_0x149e91('0x2b')]['redif']&&_0x7784d1['body'][_0x149e91('0x5e')])return _0x321f82=_0x7784d1['body'][_0x149e91('0x5e')],db['SmsMessage'][_0x149e91('0xbc')]({'where':{'messageId':_0x7784d1[_0x149e91('0x2b')][_0x149e91('0x15')]}});break;}}})[_0x2b8fcd('0x66')](handleEntityNotFound(_0x4319c9,null))['then'](function(_0x4ff77e){const _0x32de5a=_0x2b8fcd;if(_0x4ff77e){_0x53ce28=_0x4ff77e;switch(_0x18e691['type']){case'skebby':if(_0x321f82===_0x32de5a('0xbe'))return _0x53ce28[_0x32de5a('0x40')]({'read':!![]});else logger['error'](_0x32de5a('0x33'),_0x32de5a('0x5e'),_0x32de5a('0x43'),util[_0x32de5a('0x4a')](_0x7784d1[_0x32de5a('0x2b')],{'showHidden':![],'depth':null}));break;case _0x32de5a('0xc9'):if(_0x321f82==='1')return _0x53ce28[_0x32de5a('0x40')]({'read':!![]});else logger[_0x32de5a('0x6b')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x32de5a('0x5e'),_0x32de5a('0x43'),util['inspect'](_0x7784d1[_0x32de5a('0x2b')],{'showHidden':![],'depth':null}));break;case _0x32de5a('0xf'):if(!_0x7784d1[_0x32de5a('0x2b')][_0x32de5a('0x11')]&&_0x321f82>=0xc8&&_0x321f82<=0xce)return _0x53ce28[_0x32de5a('0x40')]({'read':!![]});else logger['error']('SmsAccount,\x20%s,\x20%s,\x20%s',_0x32de5a('0x5e'),_0x32de5a('0xf'),util[_0x32de5a('0x4a')](_0x7784d1[_0x32de5a('0x2b')],{'showHidden':![],'depth':null}));break;case _0x32de5a('0x9c'):{const _0x7aadab=_0x7784d1['body'][_0x32de5a('0xa4')][0x0];if(_0x7aadab[_0x32de5a('0x5e')][_0x32de5a('0xbf')]==='DELIVERED')return _0x53ce28[_0x32de5a('0x40')]({'read':!![]});else logger[_0x32de5a('0x6b')](_0x32de5a('0x33'),_0x32de5a('0x5e'),_0x32de5a('0x9c'),util['inspect'](_0x7784d1[_0x32de5a('0x2b')],{'showHidden':![],'depth':null}));}break;case _0x32de5a('0x19'):if(_0x321f82=='DELIVERED_TO_GATEWAY'||_0x321f82==_0x32de5a('0x89'))return _0x53ce28['update']({'read':!![]});else logger[_0x32de5a('0x6b')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x32de5a('0x5e'),_0x32de5a('0x19'),util[_0x32de5a('0x4a')](_0x7784d1[_0x32de5a('0x2b')],{'showHidden':![],'depth':null}));break;case _0x32de5a('0xae'):if(_0x321f82===_0x32de5a('0xa5')||_0x321f82===_0x32de5a('0x20'))return _0x53ce28[_0x32de5a('0x40')]({'read':!![]});else logger['error'](_0x32de5a('0x33'),_0x32de5a('0x5e'),_0x32de5a('0xae'),util['inspect'](_0x7784d1[_0x32de5a('0x2b')],{'showHidden':![],'depth':null}));break;}return _0x53ce28;}})[_0x2b8fcd('0x66')](respondWithResult(_0x4319c9,null))[_0x2b8fcd('0x9d')](handleError(_0x4319c9,null));},exports[_0x4fc144('0xaf')]=function(_0x309af2,_0x6e52ba){const _0x68c0ba=_0x4fc144;let _0xad2c97,_0x37f9a7,_0x2ec47c;return db[_0x68c0ba('0xc7')][_0x68c0ba('0xbc')]({'where':{'id':_0x309af2['params']['id']}})[_0x68c0ba('0x66')](handleEntityNotFound(_0x6e52ba,null))[_0x68c0ba('0x66')](function(_0x2948f7){const _0x4f363c=_0x68c0ba;if(_0x2948f7){_0x2ec47c=_0x2948f7,logger[_0x4f363c('0x47')](_0x4f363c('0x33'),'status',_0x4f363c('0x1a'),_0x2948f7['type'],util[_0x4f363c('0x4a')](_0x309af2[_0x4f363c('0xa1')],{'showHidden':![],'depth':null}));switch(_0x2948f7[_0x4f363c('0x4b')]){case _0x4f363c('0x22'):if(_0x309af2[_0x4f363c('0xa1')]['message-id']&&_0x309af2['query'][_0x4f363c('0x7f')])return _0x37f9a7=_0x309af2[_0x4f363c('0xa1')][_0x4f363c('0x7f')],db[_0x4f363c('0x6c')]['findOne']({'where':{'messageId':_0x309af2[_0x4f363c('0xa1')][_0x4f363c('0x85')]}});break;}}})[_0x68c0ba('0x66')](handleEntityNotFound(_0x6e52ba,null))[_0x68c0ba('0x66')](function(_0x3080c3){const _0x28c754=_0x68c0ba;if(_0x3080c3){_0xad2c97=_0x3080c3;switch(_0x2ec47c[_0x28c754('0x4b')]){case _0x28c754('0x22'):if(_0x37f9a7==='2'||_0x37f9a7==='6')return _0xad2c97[_0x28c754('0x40')]({'read':!![]});else logger['error'](_0x28c754('0x33'),'status',_0x28c754('0x22'),util[_0x28c754('0x4a')](_0x309af2[_0x28c754('0xa1')],{'showHidden':![],'depth':null}));break;}return _0xad2c97;}})[_0x68c0ba('0x66')](respondWithResult(_0x6e52ba,null))[_0x68c0ba('0x9d')](handleError(_0x6e52ba,null));},exports[_0x4fc144('0xcd')]=function(_0x15a62e,_0x1928bc){const _0x4303e6=_0x4fc144;return db['SmsAccount'][_0x4303e6('0xbc')]({'where':{'id':_0x15a62e[_0x4303e6('0x6d')]['id']}})['then'](function(_0x2548e9){const _0x11eb4d=_0x4303e6;if(_0x2548e9)return _0x2548e9[_0x11eb4d('0xcd')](_0x15a62e[_0x11eb4d('0x2b')][_0x11eb4d('0x9a')],{'through':_[_0x11eb4d('0x75')](_0x15a62e['body'],[_0x11eb4d('0x9a'),'id'])})[_0x11eb4d('0x66')](function(_0x48e241){const _0x47f5ad=_0x11eb4d;for(let _0x20dd5a=0x0;_0x20dd5a<_0x15a62e['body'][_0x47f5ad('0x9a')][_0x47f5ad('0x0')];_0x20dd5a+=0x1){socket['emit'](_0x47f5ad('0x5d'),{'UserId':_0x15a62e[_0x47f5ad('0x2b')][_0x47f5ad('0x9a')][_0x20dd5a],'SmsAccountId':_0x15a62e[_0x47f5ad('0x6d')]['id']});}return _0x48e241;});})[_0x4303e6('0x66')](respondWithResult(_0x1928bc,null))[_0x4303e6('0x9d')](handleError(_0x1928bc,null));},exports[_0x4fc144('0x61')]=function(_0x15abf7,_0x201505){const _0x3ca74b=_0x4fc144;return db[_0x3ca74b('0xc7')][_0x3ca74b('0xbc')]({'where':{'id':_0x15abf7[_0x3ca74b('0x6d')]['id']}})[_0x3ca74b('0x66')](handleEntityNotFound(_0x201505,null))['then'](function(_0x2af915){const _0x2e31a8=_0x3ca74b;if(_0x2af915)return _0x2af915[_0x2e31a8('0x61')](_0x15abf7[_0x2e31a8('0xa1')][_0x2e31a8('0x9a')])[_0x2e31a8('0x66')](function(){const _0x17ca18=_0x2e31a8;if(_[_0x17ca18('0x59')](_0x15abf7[_0x17ca18('0xa1')][_0x17ca18('0x9a')]))for(let _0x57d732=0x0;_0x57d732<_0x15abf7[_0x17ca18('0xa1')][_0x17ca18('0x9a')]['length'];_0x57d732+=0x1){socket[_0x17ca18('0x1c')](_0x17ca18('0x78'),{'UserId':Number(_0x15abf7[_0x17ca18('0xa1')][_0x17ca18('0x9a')][_0x57d732]),'SmsAccountId':Number(_0x15abf7['params']['id'])});}else socket[_0x17ca18('0x1c')](_0x17ca18('0x78'),{'UserId':Number(_0x15abf7['query']['ids']),'SmsAccountId':Number(_0x15abf7[_0x17ca18('0x6d')]['id'])});});})[_0x3ca74b('0x66')](respondWithStatusCode(_0x201505,null))['catch'](handleError(_0x201505,null));},exports[_0x4fc144('0x12')]=function(_0x2b1bad,_0xccfac6){const _0x30eb1a=_0x4fc144;let _0x4f96e8={};const _0x237852={};let _0x70f9fd,_0x62adef;return db[_0x30eb1a('0xc7')][_0x30eb1a('0xbc')]({'where':{'id':_0x2b1bad[_0x30eb1a('0x6d')]['id']}})[_0x30eb1a('0x66')](handleEntityNotFound(_0xccfac6,null))['then'](function(_0x472e11){const _0x10d02d=_0x30eb1a;if(_0x472e11)return _0x70f9fd=_0x472e11,_0x237852[_0x10d02d('0x37')]=_[_0x10d02d('0xca')](db[_0x10d02d('0x72')][_0x10d02d('0x9f')]),_0x237852[_0x10d02d('0xa1')]=_[_0x10d02d('0xca')](_0x2b1bad[_0x10d02d('0xa1')]),_0x237852[_0x10d02d('0x80')]=_[_0x10d02d('0xb5')](_0x237852[_0x10d02d('0x37')],_0x237852[_0x10d02d('0xa1')]),_0x4f96e8[_0x10d02d('0x68')]=_[_0x10d02d('0xb5')](_0x237852[_0x10d02d('0x37')],qs[_0x10d02d('0x4')](_0x2b1bad[_0x10d02d('0xa1')][_0x10d02d('0x4')])),_0x4f96e8['attributes']=_0x4f96e8[_0x10d02d('0x68')][_0x10d02d('0x0')]?_0x4f96e8['attributes']:_0x237852[_0x10d02d('0x37')],_0x4f96e8[_0x10d02d('0x41')]=qs[_0x10d02d('0xc2')](_0x2b1bad[_0x10d02d('0xa1')][_0x10d02d('0xc2')]),_0x4f96e8[_0x10d02d('0x6f')]=qs[_0x10d02d('0x80')](_[_0x10d02d('0x4f')](_0x2b1bad['query'],_0x237852[_0x10d02d('0x80')])),_0x2b1bad[_0x10d02d('0xa1')][_0x10d02d('0xa2')]&&(_0x4f96e8[_0x10d02d('0x6f')]=_[_0x10d02d('0x67')](_0x4f96e8[_0x10d02d('0x6f')],{[Op['or']]:_[_0x10d02d('0xb8')](_0x4f96e8['attributes'],function(_0x15bddf){const _0x4d317c=_0x10d02d,_0x4fc695={};return _0x4fc695[_0x15bddf]={[Op[_0x4d317c('0x1f')]]:'%'+_0x2b1bad[_0x4d317c('0xa1')][_0x4d317c('0xa2')]+'%'},_0x4fc695;})})),_0x4f96e8=_[_0x10d02d('0x67')]({},_0x4f96e8,_0x2b1bad['options']),_0x70f9fd['getAgents'](_0x4f96e8);})[_0x30eb1a('0x66')](function(_0xaf3643){const _0xe513ae=_0x30eb1a;if(_0xaf3643)return _0x62adef=_0xaf3643['length'],typeof _0x2b1bad[_0xe513ae('0xa1')][_0xe513ae('0x21')]==='undefined'&&(_0x4f96e8['limit']=qs['limit'](_0x2b1bad[_0xe513ae('0xa1')][_0xe513ae('0x58')]),_0x4f96e8['offset']=qs[_0xe513ae('0xc5')](_0x2b1bad[_0xe513ae('0xa1')]['offset'])),_0x70f9fd[_0xe513ae('0x12')](_0x4f96e8);})[_0x30eb1a('0x66')](function(_0x416472){if(_0x416472)return _0x416472?{'count':_0x62adef,'rows':_0x416472}:null;})['then'](respondWithResult(_0xccfac6,null))[_0x30eb1a('0x9d')](handleError(_0xccfac6,null));}; \ No newline at end of file +const a542_0x641c=['api','Contacts','out','body','isNil','then','ListId','../../config/logger','nolimit','defaults','twilio','Sequelize','model','message','./smsAccount.socket','code','limit','set','status_code','rows','http','statusInt','UserProfileSection','csc','undefined','ValidationError','created','User','userSmsAccount:save','attributes','CmContact','catch','json','request\x20sent','autoclose','VIRTUAL','../../components/parsers/qs','skebby_dispatch_id','send','message_id','UserId','sequelize','updatedAt','name','removeAgents','Owner','addAnswer','startRouting','SmsAccount,\x20%s,\x20%s','end','findAll','../../mysqldb','getDispositions','params','agent','removeAnswers','lodash','statusGet','no\x20available\x20attributes','difference','SmsAccounts','order','From','create','userProfileId','applications','update','SmsMessage','sort','where','Tags','map','from\x20is\x20mandatory','dataValues','getAgents','state','DELIVERED_TO_GATEWAY','waitForTheAssignedAgent','userSmsAccount:remove','endpoint\x20/status\x20POST\x20/','DELIVERED','asc','getAnswers','CannedAnswer','account','segmentedMessage','include','messageId','CompanyId','getInteractions','SmsApplication','status','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getApplications','received\x20delivery\x20report\x20from','clickatell','SmsAccount,\x20%s,\x20%s,\x20%s','info','List','Content-Type','refid','findOne','util','fieldName','results','user','length','\x0a','AttachmentId','omit','bulkCreate','options','includes','from','push','Pause','SmsInteraction','clicksend','key','internal','CmList','color','addDisposition','ACCEPTD','sms','get','*,*,*,*','count','type','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','autoAssociation','error','mandatoryDispositionPause','unshift','Applications','stack','mapKey','isArray','error_code','text','list','destroy','Unable\x20to\x20retrieve\x20the\x20current\x20user','log','keys','Messages','sendStatus','fields','describe','RECEIVED_BY_RECIPIENT','like','stringify','emit','merge','filter','debug','addAgents','redif','UserProfileResource','SmsAccount','intelepeer','fromNumber','inspect','groupName','Body','filters','entity\x20found','findAndCountAll','originatingAddress','pick','ids','DESC','connectel','offset','Tag','includeAll','MessageUUID','to\x20is\x20mandatory','request','tag','transaction','orderBy','Disposition','receiveMessage','skebby','query','interaction','Start','priority','MessageSid','removeDispositions','SmsAccountId','requestid','rawAttributes','infobip','text/xml','notify','close','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','intersection','register','SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s'];(function(_0x5e7eb7,_0x641c25){const _0x149eff=function(_0x2c9231){while(--_0x2c9231){_0x5e7eb7['push'](_0x5e7eb7['shift']());}};_0x149eff(++_0x641c25);}(a542_0x641c,0x1a0));const a542_0x149e=function(_0x5e7eb7,_0x641c25){_0x5e7eb7=_0x5e7eb7-0x0;let _0x149eff=a542_0x641c[_0x5e7eb7];return _0x149eff;};const _0x477a75=a542_0x149e;'use strict';const util=require(_0x477a75('0x5a')),_=require(_0x477a75('0x2c')),qs=require(_0x477a75('0x18')),logger=require(_0x477a75('0xc5'))(_0x477a75('0xbe')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x477a75('0x27'))['db'],{Op}=require('sequelize');require(_0x477a75('0x2'))[_0x477a75('0xbc')](socket);const jayson=require('jayson/promise'),client=jayson['client'][_0x477a75('0x8')]({'port':0x232c});function respondWithRpcPromise(_0x2c9231,_0x53cf1e,_0x3a2152,_0x17592f){return new Promise(function(_0x106a95,_0x57e8eb){const _0x3b8b59=a542_0x149e,_0x40055c=_0x17592f||client;return _0x40055c[_0x3b8b59('0xa6')](_0x2c9231,_0x3a2152)[_0x3b8b59('0xc3')](function(_0x12b33e){const _0x583053=_0x3b8b59;logger[_0x583053('0x55')]('SmsAccount,\x20%s,\x20%s',_0x53cf1e,_0x583053('0x15')),logger[_0x583053('0x8f')](_0x583053('0x54'),_0x53cf1e,_0x583053('0x15'),JSON[_0x583053('0x8b')](_0x12b33e));if(_0x12b33e[_0x583053('0x77')]){if(_0x12b33e['error'][_0x583053('0x3')]===0x1f4)return logger[_0x583053('0x77')](_0x583053('0x24'),_0x53cf1e,_0x12b33e[_0x583053('0x77')]['message']),_0x57e8eb(_0x12b33e[_0x583053('0x77')]['message']);return logger[_0x583053('0x77')](_0x583053('0x24'),_0x53cf1e,_0x12b33e[_0x583053('0x77')][_0x583053('0x1')]),_0x106a95(_0x12b33e['error']['message']);}else logger[_0x583053('0x55')](_0x583053('0x24'),_0x53cf1e,_0x583053('0x15')),_0x106a95(_0x12b33e['result']['message']);})['catch'](function(_0x40b9c4){const _0x5da98e=_0x3b8b59;logger[_0x5da98e('0x77')](_0x5da98e('0x24'),_0x53cf1e,_0x40b9c4),_0x57e8eb(_0x40b9c4);});});}function respondWithStatusCode(_0x455b1f,_0x3274b7){return _0x3274b7=_0x3274b7||0xcc,function(_0x36cfc7){const _0x4098cb=a542_0x149e;if(_0x36cfc7)return _0x455b1f[_0x4098cb('0x86')](_0x3274b7);return _0x455b1f[_0x4098cb('0x4f')](_0x3274b7)[_0x4098cb('0x25')]();};}function respondWithResult(_0x37fd1e,_0x3c353f){return _0x3c353f=_0x3c353f||0xc8,function(_0x2fb2d2){const _0x42b5bd=a542_0x149e;if(_0x2fb2d2)return _0x37fd1e[_0x42b5bd('0x4f')](_0x3c353f)[_0x42b5bd('0x14')](_0x2fb2d2);};}function respondWithFilteredResult(_0xb2c73a,_0x507f97){return function(_0x476145){const _0x481a72=a542_0x149e;if(_0x476145){const _0x92bdaa=_0x476145[_0x481a72('0x73')],_0x2499da=_0x507f97['offset'];let _0x157c3=_0x507f97[_0x481a72('0xa1')]+_0x507f97['limit'],_0x4f546d;return _0x157c3>=_0x92bdaa?(_0x157c3=_0x92bdaa,_0x4f546d=0xc8):_0x4f546d=0xce,_0xb2c73a[_0x481a72('0x4f')](_0x4f546d),_0xb2c73a[_0x481a72('0x5')]('Content-Range',_0x2499da+'-'+_0x157c3+'/'+_0x92bdaa)[_0x481a72('0x14')](_0x476145);}return null;};}function saveUpdates(_0x104c98){return function(_0x557526){if(_0x557526)return _0x557526['update'](_0x104c98)['then'](function(_0x486882){return _0x486882;});return null;};}function removeEntity(_0x2ed9a1){return function(_0xd504c8){const _0x9be34=a542_0x149e;if(_0xd504c8)return _0xd504c8[_0x9be34('0x81')]()[_0x9be34('0xc3')](function(){const _0x29f41d=_0x9be34,_0x399808=_0xd504c8[_0x29f41d('0x71')]({'plain':!![]}),_0x37a751='SmsAccounts';return db[_0x29f41d('0x92')][_0x29f41d('0x81')]({'where':{'type':_0x37a751,'resourceId':_0x399808['id']}})[_0x29f41d('0xc3')](function(){return _0xd504c8;});})[_0x9be34('0xc3')](function(){const _0x553417=_0x9be34;_0x2ed9a1['status'](0xcc)[_0x553417('0x25')]();});};}function handleEntityNotFound(_0x2adb4e){return function(_0x31087e){return!_0x31087e&&_0x2adb4e['sendStatus'](0x194),_0x31087e;};}function handleError(_0x378a04,_0x5e0d66){return _0x5e0d66=_0x5e0d66||0x1f4,function(_0x417ff3){const _0xf47e54=a542_0x149e;logger[_0xf47e54('0x77')](_0x417ff3[_0xf47e54('0x7b')]),_0x417ff3[_0xf47e54('0x1f')]&&delete _0x417ff3[_0xf47e54('0x1f')],_0x378a04[_0xf47e54('0x4f')](_0x5e0d66)[_0xf47e54('0x1a')](_0x417ff3);};}exports['index']=function(_0x158f3e,_0xcc357f){const _0x5217e6=_0x477a75;let _0x15c4ec={'include':[{'model':db['Pause'],'as':_0x5217e6('0x78')}]};const _0x23a0fc={},_0x49eb56={'count':0x0,'rows':[]},_0x4d21fa=_[_0x5217e6('0x3b')](db[_0x5217e6('0x93')][_0x5217e6('0xb5')],function(_0x532b2f){const _0xa4548d=_0x5217e6;return{'name':_0x532b2f[_0xa4548d('0x5b')],'type':_0x532b2f[_0xa4548d('0x74')][_0xa4548d('0x6a')]};});_0x23a0fc[_0x5217e6('0x0')]=_[_0x5217e6('0x3b')](_0x4d21fa,_0x5217e6('0x1f')),_0x23a0fc[_0x5217e6('0xad')]=_[_0x5217e6('0x84')](_0x158f3e[_0x5217e6('0xad')]),_0x23a0fc['filters']=_['intersection'](_0x23a0fc[_0x5217e6('0x0')],_0x23a0fc[_0x5217e6('0xad')]),_0x15c4ec[_0x5217e6('0x11')]=_[_0x5217e6('0xbb')](_0x23a0fc[_0x5217e6('0x0')],qs[_0x5217e6('0x87')](_0x158f3e[_0x5217e6('0xad')][_0x5217e6('0x87')])),_0x15c4ec[_0x5217e6('0x11')]=_0x15c4ec[_0x5217e6('0x11')]['length']?_0x15c4ec['attributes']:_0x23a0fc[_0x5217e6('0x0')];typeof _0x158f3e[_0x5217e6('0xad')][_0x5217e6('0xc6')]===_0x5217e6('0xc')&&(_0x15c4ec[_0x5217e6('0x4')]=qs[_0x5217e6('0x4')](_0x158f3e['query'][_0x5217e6('0x4')]),_0x15c4ec[_0x5217e6('0xa1')]=qs[_0x5217e6('0xa1')](_0x158f3e[_0x5217e6('0xad')]['offset']));_0x15c4ec['order']=qs[_0x5217e6('0x38')](_0x158f3e['query'][_0x5217e6('0x38')]),_0x15c4ec[_0x5217e6('0x39')]=qs[_0x5217e6('0x99')](_['pick'](_0x158f3e[_0x5217e6('0xad')],_0x23a0fc[_0x5217e6('0x99')]),_0x4d21fa);_0x158f3e['query'][_0x5217e6('0x8e')]&&(_0x15c4ec[_0x5217e6('0x39')]=_['merge'](_0x15c4ec[_0x5217e6('0x39')],{[Op['or']]:_['map'](_0x4d21fa,function(_0x38e977){const _0x5144bd=_0x5217e6;if(_0x38e977[_0x5144bd('0x74')]!==_0x5144bd('0x17')){const _0x1aa57d={};return _0x1aa57d[_0x38e977[_0x5144bd('0x1f')]]={[Op[_0x5144bd('0x8a')]]:'%'+_0x158f3e[_0x5144bd('0xad')][_0x5144bd('0x8e')]+'%'},_0x1aa57d;}})}));_0x15c4ec=_[_0x5217e6('0x8d')]({},_0x15c4ec,_0x158f3e[_0x5217e6('0x63')]);const _0x530bfe={'where':_0x15c4ec[_0x5217e6('0x39')]};return db[_0x5217e6('0x93')][_0x5217e6('0x73')](_0x530bfe)['then'](function(_0x2003e8){const _0x124dde=_0x5217e6;return _0x49eb56[_0x124dde('0x73')]=_0x2003e8,_0x158f3e['query'][_0x124dde('0xa3')]&&(_0x15c4ec[_0x124dde('0x4a')]=[{'all':!![]}]),db[_0x124dde('0x93')][_0x124dde('0x26')](_0x15c4ec);})['then'](function(_0x2f18fb){return _0x49eb56['rows']=_0x2f18fb,_0x49eb56;})['then'](respondWithFilteredResult(_0xcc357f,_0x15c4ec))['catch'](handleError(_0xcc357f,null));},exports['show']=function(_0x2089e6,_0x1fd6f5){const _0x22071d=_0x477a75;let _0x5c0fd5={'raw':![],'where':{'id':_0x2089e6[_0x22071d('0x29')]['id']},'include':[{'model':db[_0x22071d('0x67')],'as':'mandatoryDispositionPause'}]};const _0x5c2fdc={};return _0x5c2fdc['model']=_[_0x22071d('0x84')](db[_0x22071d('0x93')][_0x22071d('0xb5')]),_0x5c2fdc[_0x22071d('0xad')]=_[_0x22071d('0x84')](_0x2089e6['query']),_0x5c2fdc['filters']=_[_0x22071d('0xbb')](_0x5c2fdc[_0x22071d('0x0')],_0x5c2fdc[_0x22071d('0xad')]),_0x5c0fd5[_0x22071d('0x11')]=_[_0x22071d('0xbb')](_0x5c2fdc[_0x22071d('0x0')],qs[_0x22071d('0x87')](_0x2089e6[_0x22071d('0xad')][_0x22071d('0x87')])),_0x5c0fd5[_0x22071d('0x11')]=_0x5c0fd5[_0x22071d('0x11')][_0x22071d('0x5e')]?_0x5c0fd5[_0x22071d('0x11')]:_0x5c2fdc[_0x22071d('0x0')],_0x2089e6[_0x22071d('0xad')][_0x22071d('0xa3')]&&(_0x5c0fd5[_0x22071d('0x4a')]=[{'all':!![]}]),_0x5c0fd5=_[_0x22071d('0x8d')]({},_0x5c0fd5,_0x2089e6[_0x22071d('0x63')]),db[_0x22071d('0x93')][_0x22071d('0x59')](_0x5c0fd5)[_0x22071d('0xc3')](handleEntityNotFound(_0x1fd6f5,null))[_0x22071d('0xc3')](respondWithResult(_0x1fd6f5,null))['catch'](handleError(_0x1fd6f5,null));},exports[_0x477a75('0x33')]=function(_0x27751c,_0x2db376){const _0x26f30c=_0x477a75;return db[_0x26f30c('0x93')][_0x26f30c('0x33')](_0x27751c[_0x26f30c('0xc1')],{})[_0x26f30c('0xc3')](function(_0x1f54ee){const _0x50ef09=_0x26f30c,_0x58132d=_0x27751c[_0x50ef09('0x5d')]['get']({'plain':!![]});if(!_0x58132d)throw new Error(_0x50ef09('0x82'));if(_0x58132d['role']===_0x50ef09('0x5d')){const _0x2a9dfa=_0x1f54ee[_0x50ef09('0x71')]({'plain':!![]}),_0x53383c=_0x50ef09('0x30');return db[_0x50ef09('0xa')][_0x50ef09('0x59')]({'where':{'name':_0x53383c,'userProfileId':_0x58132d[_0x50ef09('0x34')]},'raw':!![]})['then'](function(_0x36e38f){const _0x5cf681=_0x50ef09;return _0x36e38f&&_0x36e38f[_0x5cf681('0x76')]===0x0?db['UserProfileResource'][_0x5cf681('0x33')]({'name':_0x2a9dfa[_0x5cf681('0x1f')],'resourceId':_0x2a9dfa['id'],'type':_0x36e38f[_0x5cf681('0x1f')],'sectionId':_0x36e38f['id']},{})['then'](function(){return _0x1f54ee;}):_0x1f54ee;})[_0x50ef09('0x13')](function(_0x4485e1){const _0x2cbd00=_0x50ef09;logger[_0x2cbd00('0x77')](_0x2cbd00('0x50'),_0x4485e1);throw _0x4485e1;});}return _0x1f54ee;})[_0x26f30c('0xc3')](respondWithResult(_0x2db376,0xc9))[_0x26f30c('0x13')](handleError(_0x2db376,null));},exports[_0x477a75('0x36')]=function(_0x26a9ff,_0x4d5150){const _0x351f77=_0x477a75;return _0x26a9ff[_0x351f77('0xc1')]['id']&&delete _0x26a9ff[_0x351f77('0xc1')]['id'],db[_0x351f77('0x93')][_0x351f77('0x59')]({'where':{'id':_0x26a9ff['params']['id']},'include':[{'model':db[_0x351f77('0x67')],'as':'mandatoryDispositionPause'}]})[_0x351f77('0xc3')](handleEntityNotFound(_0x4d5150,null))['then'](saveUpdates(_0x26a9ff['body'],null))['then'](respondWithResult(_0x4d5150,null))[_0x351f77('0x13')](handleError(_0x4d5150,null));},exports[_0x477a75('0x81')]=function(_0x4da0fd,_0x507044){const _0x1eb2e7=_0x477a75;return db[_0x1eb2e7('0x93')][_0x1eb2e7('0x59')]({'where':{'id':_0x4da0fd[_0x1eb2e7('0x29')]['id']}})['then'](handleEntityNotFound(_0x507044,null))['then'](removeEntity(_0x507044,null))[_0x1eb2e7('0x13')](handleError(_0x507044,null));},exports['describe']=function(_0x1e58fd,_0x4af460){const _0x435e22=_0x477a75;return db[_0x435e22('0x93')][_0x435e22('0x88')]()[_0x435e22('0xc3')](respondWithResult(_0x4af460,null))[_0x435e22('0x13')](handleError(_0x4af460,null));},exports[_0x477a75('0x6e')]=function(_0x2fa588,_0x1d8cd4){const _0x411fa0=_0x477a75;return _0x2fa588[_0x411fa0('0xc1')]['id']&&delete _0x2fa588[_0x411fa0('0xc1')]['id'],db[_0x411fa0('0x93')][_0x411fa0('0x59')]({'where':{'id':_0x2fa588[_0x411fa0('0x29')]['id']}})[_0x411fa0('0xc3')](handleEntityNotFound(_0x1d8cd4,null))[_0x411fa0('0xc3')](function(_0x4da01f){const _0x4f5a16=_0x411fa0;if(_0x4da01f)return _0x2fa588['body']['SmsAccountId']=_0x4da01f['id'],db[_0x4f5a16('0xaa')][_0x4f5a16('0x33')](_0x2fa588[_0x4f5a16('0xc1')]);})['then'](respondWithResult(_0x1d8cd4,null))[_0x411fa0('0x13')](handleError(_0x1d8cd4,null));},exports[_0x477a75('0x28')]=function(_0x3c95ad,_0x5ff791){const _0x20517f=_0x477a75;let _0x3eb175={'raw':![],'where':{}};const _0x196b29={},_0x2747b4={'count':0x0,'rows':[]};return db['SmsAccount'][_0x20517f('0x59')]({'where':{'id':_0x3c95ad['params']['id']}})['then'](handleEntityNotFound(_0x5ff791,null))[_0x20517f('0xc3')](function(_0x47307f){const _0xeadb1b=_0x20517f;if(_0x47307f)return _0x196b29[_0xeadb1b('0x0')]=_[_0xeadb1b('0x84')](db[_0xeadb1b('0xaa')]['rawAttributes']),_0x196b29['query']=_[_0xeadb1b('0x84')](_0x3c95ad[_0xeadb1b('0xad')]),_0x196b29[_0xeadb1b('0x99')]=_[_0xeadb1b('0xbb')](_0x196b29[_0xeadb1b('0x0')],_0x196b29[_0xeadb1b('0xad')]),_0x3eb175[_0xeadb1b('0x11')]=_[_0xeadb1b('0xbb')](_0x196b29[_0xeadb1b('0x0')],qs[_0xeadb1b('0x87')](_0x3c95ad[_0xeadb1b('0xad')][_0xeadb1b('0x87')])),_0x3eb175['attributes']=_0x3eb175[_0xeadb1b('0x11')][_0xeadb1b('0x5e')]?_0x3eb175[_0xeadb1b('0x11')]:_0x196b29[_0xeadb1b('0x0')],typeof _0x3c95ad[_0xeadb1b('0xad')]['nolimit']===_0xeadb1b('0xc')&&(_0x3eb175[_0xeadb1b('0x4')]=qs['limit'](_0x3c95ad[_0xeadb1b('0xad')][_0xeadb1b('0x4')]),_0x3eb175['offset']=qs[_0xeadb1b('0xa1')](_0x3c95ad['query'][_0xeadb1b('0xa1')])),_0x3eb175[_0xeadb1b('0x31')]=qs[_0xeadb1b('0x38')](_0x3c95ad['query']['sort']),_0x3eb175['where']=qs[_0xeadb1b('0x99')](_[_0xeadb1b('0x9d')](_0x3c95ad[_0xeadb1b('0xad')],_0x196b29[_0xeadb1b('0x99')])),_0x3eb175[_0xeadb1b('0x39')]['SmsAccountId']=_0x47307f['id'],_0x3c95ad['query'][_0xeadb1b('0x8e')]&&(_0x3eb175[_0xeadb1b('0x39')]=_['merge'](_0x3eb175['where'],{[Op['or']]:_[_0xeadb1b('0x3b')](_0x3eb175[_0xeadb1b('0x11')],function(_0x2f1be7){const _0x4809b7=_0xeadb1b,_0x551f4={};return _0x551f4[_0x2f1be7]={[Op[_0x4809b7('0x8a')]]:'%'+_0x3c95ad[_0x4809b7('0xad')][_0x4809b7('0x8e')]+'%'},_0x551f4;})})),_0x3eb175=_[_0xeadb1b('0x8d')]({},_0x3eb175,_0x3c95ad[_0xeadb1b('0x63')]),db[_0xeadb1b('0xaa')]['count']({'where':_0x3eb175[_0xeadb1b('0x39')]})[_0xeadb1b('0xc3')](function(_0x4e1331){const _0x532ee8=_0xeadb1b;return _0x2747b4[_0x532ee8('0x73')]=_0x4e1331,_0x3c95ad['query']['includeAll']&&(_0x3eb175[_0x532ee8('0x4a')]=[{'all':!![]}]),db[_0x532ee8('0xaa')][_0x532ee8('0x26')](_0x3eb175);})[_0xeadb1b('0xc3')](function(_0x22287c){const _0x581139=_0xeadb1b;return _0x2747b4[_0x581139('0x7')]=_0x22287c,_0x2747b4;});})[_0x20517f('0xc3')](respondWithFilteredResult(_0x5ff791,_0x3eb175))[_0x20517f('0x13')](handleError(_0x5ff791,null));},exports[_0x477a75('0xb2')]=function(_0x206f77,_0x130776){const _0x47914d=_0x477a75;return db[_0x47914d('0x93')][_0x47914d('0x59')]({'where':{'id':_0x206f77[_0x47914d('0x29')]['id']}})[_0x47914d('0xc3')](handleEntityNotFound(_0x130776,null))['then'](function(_0xa0854f){const _0x2b3f47=_0x47914d;if(_0xa0854f)return _0xa0854f[_0x2b3f47('0xb2')](_0x206f77[_0x2b3f47('0xad')][_0x2b3f47('0x9e')]);})['then'](respondWithStatusCode(_0x130776,null))[_0x47914d('0x13')](handleError(_0x130776,null));},exports[_0x477a75('0x22')]=function(_0x517d04,_0x4423c1){const _0x31fd6d=_0x477a75;return _0x517d04[_0x31fd6d('0xc1')]['id']&&delete _0x517d04[_0x31fd6d('0xc1')]['id'],db[_0x31fd6d('0x93')][_0x31fd6d('0x59')]({'where':{'id':_0x517d04[_0x31fd6d('0x29')]['id']}})[_0x31fd6d('0xc3')](handleEntityNotFound(_0x4423c1,null))[_0x31fd6d('0xc3')](function(_0x1e9252){const _0x55a8e5=_0x31fd6d;if(_0x1e9252)return _0x517d04[_0x55a8e5('0xc1')][_0x55a8e5('0xb3')]=_0x1e9252['id'],db[_0x55a8e5('0x47')][_0x55a8e5('0x33')](_0x517d04[_0x55a8e5('0xc1')]);})[_0x31fd6d('0xc3')](respondWithResult(_0x4423c1,null))[_0x31fd6d('0x13')](handleError(_0x4423c1,null));},exports[_0x477a75('0x46')]=function(_0x401ae0,_0x833d4d){const _0x13e738=_0x477a75;let _0x8a0b53={'raw':![],'where':{}};const _0x2a9981={},_0x3572b7={'count':0x0,'rows':[]};return db[_0x13e738('0x93')][_0x13e738('0x59')]({'where':{'id':_0x401ae0[_0x13e738('0x29')]['id']}})[_0x13e738('0xc3')](handleEntityNotFound(_0x833d4d,null))[_0x13e738('0xc3')](function(_0x5460e8){const _0x1b224c=_0x13e738;if(_0x5460e8)return _0x2a9981[_0x1b224c('0x0')]=_[_0x1b224c('0x84')](db[_0x1b224c('0x47')][_0x1b224c('0xb5')]),_0x2a9981['query']=_['keys'](_0x401ae0[_0x1b224c('0xad')]),_0x2a9981[_0x1b224c('0x99')]=_[_0x1b224c('0xbb')](_0x2a9981['model'],_0x2a9981['query']),_0x8a0b53['attributes']=_[_0x1b224c('0xbb')](_0x2a9981[_0x1b224c('0x0')],qs['fields'](_0x401ae0[_0x1b224c('0xad')][_0x1b224c('0x87')])),_0x8a0b53[_0x1b224c('0x11')]=_0x8a0b53[_0x1b224c('0x11')][_0x1b224c('0x5e')]?_0x8a0b53['attributes']:_0x2a9981[_0x1b224c('0x0')],typeof _0x401ae0[_0x1b224c('0xad')][_0x1b224c('0xc6')]===_0x1b224c('0xc')&&(_0x8a0b53[_0x1b224c('0x4')]=qs[_0x1b224c('0x4')](_0x401ae0[_0x1b224c('0xad')][_0x1b224c('0x4')]),_0x8a0b53[_0x1b224c('0xa1')]=qs[_0x1b224c('0xa1')](_0x401ae0[_0x1b224c('0xad')][_0x1b224c('0xa1')])),_0x8a0b53[_0x1b224c('0x31')]=qs[_0x1b224c('0x38')](_0x401ae0[_0x1b224c('0xad')][_0x1b224c('0x38')]),_0x8a0b53['where']=qs[_0x1b224c('0x99')](_['pick'](_0x401ae0[_0x1b224c('0xad')],_0x2a9981[_0x1b224c('0x99')])),_0x8a0b53['where'][_0x1b224c('0xb3')]=_0x5460e8['id'],_0x401ae0[_0x1b224c('0xad')]['filter']&&(_0x8a0b53['where']=_[_0x1b224c('0x8d')](_0x8a0b53[_0x1b224c('0x39')],{[Op['or']]:_[_0x1b224c('0x3b')](_0x8a0b53[_0x1b224c('0x11')],function(_0x4b1db8){const _0x50771b=_0x1b224c,_0xd2a0f8={};return _0xd2a0f8[_0x4b1db8]={[Op[_0x50771b('0x8a')]]:'%'+_0x401ae0[_0x50771b('0xad')][_0x50771b('0x8e')]+'%'},_0xd2a0f8;})})),_0x8a0b53=_[_0x1b224c('0x8d')]({},_0x8a0b53,_0x401ae0['options']),db['CannedAnswer']['count']({'where':_0x8a0b53[_0x1b224c('0x39')]})['then'](function(_0x1fc96f){const _0x1e0fd4=_0x1b224c;return _0x3572b7['count']=_0x1fc96f,_0x401ae0['query'][_0x1e0fd4('0xa3')]&&(_0x8a0b53['include']=[{'all':!![]}]),db[_0x1e0fd4('0x47')][_0x1e0fd4('0x26')](_0x8a0b53);})[_0x1b224c('0xc3')](function(_0x2315f1){const _0x3b1e9a=_0x1b224c;return _0x3572b7[_0x3b1e9a('0x7')]=_0x2315f1,_0x3572b7;});})[_0x13e738('0xc3')](respondWithFilteredResult(_0x833d4d,_0x8a0b53))[_0x13e738('0x13')](handleError(_0x833d4d,null));},exports[_0x477a75('0x2b')]=function(_0x3ce6e5,_0x3960e7){const _0x500f3f=_0x477a75;return db[_0x500f3f('0x93')][_0x500f3f('0x59')]({'where':{'id':_0x3ce6e5[_0x500f3f('0x29')]['id']}})['then'](handleEntityNotFound(_0x3960e7,null))[_0x500f3f('0xc3')](function(_0x5749ca){const _0xd4d28e=_0x500f3f;if(_0x5749ca)return _0x5749ca['removeAnswers'](_0x3ce6e5['query'][_0xd4d28e('0x9e')]);})[_0x500f3f('0xc3')](respondWithStatusCode(_0x3960e7,null))[_0x500f3f('0x13')](handleError(_0x3960e7,null));},exports[_0x477a75('0xb8')]=function(_0x599810,_0x1efee1){const _0x4729d3=_0x477a75,_0x30c0bd={'channel':_0x4729d3('0x70')};let _0x15c627=[],_0x2ec291=[];const _0x39a7f3={};return db[_0x4729d3('0x93')][_0x4729d3('0x59')]({'where':{'id':_0x599810[_0x4729d3('0x29')]['id']},'include':[{'model':db[_0x4729d3('0x4e')],'as':_0x4729d3('0x7a')}]})[_0x4729d3('0xc3')](handleEntityNotFound(_0x1efee1,null))[_0x4729d3('0xc3')](function(_0x1d17d4){const _0x501a5f=_0x4729d3;return _0x30c0bd[_0x501a5f('0x48')]=_0x1d17d4,_0x30c0bd[_0x501a5f('0x35')]=_[_0x501a5f('0xa9')](_0x1d17d4[_0x501a5f('0x7a')],[_0x501a5f('0xb0')],[_0x501a5f('0x45')]),_0x30c0bd[_0x501a5f('0x48')][_0x501a5f('0x7a')]&&delete _0x30c0bd[_0x501a5f('0x48')][_0x501a5f('0x7a')],db['CmContact'][_0x501a5f('0x88')]();})['then'](function(_0x58c3b8){const _0x47ad97=_0x4729d3;if(!_0x58c3b8)throw new db[(_0x47ad97('0xc9'))]['ValidationError'](_0x47ad97('0x2e'));_0x15c627=_[_0x47ad97('0x2f')](_[_0x47ad97('0x84')](_0x58c3b8),['createdAt','updatedAt']),_0x2ec291=_['difference'](_[_0x47ad97('0x84')](_0x58c3b8),['createdAt',_0x47ad97('0x1e'),_0x47ad97('0x4c'),_0x47ad97('0xc4')]),_0x30c0bd[_0x47ad97('0xc1')]={'mapKey':'mobile'};if(_0x30c0bd[_0x47ad97('0x48')][_0x47ad97('0x74')])switch(_0x30c0bd['account']['type']){case _0x47ad97('0xc8'):_0x30c0bd['body'][_0x47ad97('0x65')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x32')],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0xc1')]=_0x599810['body'][_0x47ad97('0x98')],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x4b')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0xb1')];break;case _0x47ad97('0xac'):_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x65')]='+'+_0x599810[_0x47ad97('0xc1')]['sender'],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0xc1')]=_0x599810['body'][_0x47ad97('0x7f')];break;case _0x47ad97('0xa0'):_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x65')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x65')],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0xc1')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x1')];break;case _0x47ad97('0x69'):_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x65')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x65')],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0xc1')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0xc1')],_0x30c0bd['body'][_0x47ad97('0x4b')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x1b')];break;case'plivo':_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x65')]=_0x599810['body'][_0x47ad97('0x32')],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0xc1')]=_0x599810['body']['Text'],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x4b')]=_0x599810['body'][_0x47ad97('0xa4')];break;case _0x47ad97('0xb6'):_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x65')]='+'+_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x5c')][0x0]['from'],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0xc1')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x5c')][0x0][_0x47ad97('0x7f')],_0x30c0bd['body'][_0x47ad97('0x4b')]=_0x599810[_0x47ad97('0xc1')]['results'][0x0][_0x47ad97('0x4b')];break;case _0x47ad97('0xb'):_0x30c0bd[_0x47ad97('0xc1')]['from']=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x9c')],_0x30c0bd['body']['body']=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x49')][_0x47ad97('0x1')];break;case _0x47ad97('0x53'):_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x65')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x95')],_0x30c0bd[_0x47ad97('0xc1')]['body']=_0x599810['body'][_0x47ad97('0x7f')],_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x4b')]=_0x599810[_0x47ad97('0xc1')]['replyMessageId'];break;case _0x47ad97('0x94'):_0x30c0bd['body']['from']=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x65')],_0x30c0bd['body'][_0x47ad97('0xc1')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x1')],_0x30c0bd['body'][_0x47ad97('0x4b')]=_0x599810[_0x47ad97('0xc1')][_0x47ad97('0x58')];break;}_0x30c0bd[_0x47ad97('0xc1')]['id']&&delete _0x30c0bd[_0x47ad97('0xc1')]['id'];if(_[_0x47ad97('0xc2')](_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x65')]))throw new db['Sequelize'][(_0x47ad97('0xd'))](_0x47ad97('0x3c'));if(_[_0x47ad97('0xc2')](_0x30c0bd[_0x47ad97('0xc1')]['body'])||_0x30c0bd['body'][_0x47ad97('0xc1')]==='')throw new db['Sequelize'][(_0x47ad97('0xd'))]('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x47ad97('0xc2')](_0x30c0bd[_0x47ad97('0xc1')]['mapKey']))throw new db[(_0x47ad97('0xc9'))][(_0x47ad97('0xd'))](_0x47ad97('0x75')+_0x2ec291);if(!_[_0x47ad97('0x64')](_0x2ec291,_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x7c')]))throw new db[(_0x47ad97('0xc9'))][(_0x47ad97('0xd'))](_0x47ad97('0xba')+_0x2ec291);return _0x39a7f3[_0x30c0bd['body'][_0x47ad97('0x7c')]]=_0x30c0bd[_0x47ad97('0xc1')][_0x47ad97('0x65')],db[_0x47ad97('0x6c')][_0x47ad97('0x59')]({'where':{'id':_0x30c0bd[_0x47ad97('0x48')][_0x47ad97('0xc4')]},'include':[{'model':db[_0x47ad97('0x12')],'as':_0x47ad97('0xbf'),'where':_0x39a7f3,'limit':0x1,'order':[[_0x47ad97('0x1e'),'DESC']]}]});})[_0x4729d3('0xc3')](handleEntityNotFound(_0x1efee1,null))[_0x4729d3('0xc3')](function(_0x50b141){const _0x5d55f3=_0x4729d3;if(_0x50b141){_0x30c0bd[_0x5d55f3('0x80')]=_[_0x5d55f3('0x61')](_0x50b141,[_0x5d55f3('0xbf')]);if(_0x50b141[_0x5d55f3('0xbf')][_0x5d55f3('0x5e')])return _0x50b141[_0x5d55f3('0xbf')][0x0];const _0x6a9f1d=_[_0x5d55f3('0xc7')](_0x30c0bd[_0x5d55f3('0xc1')],{'firstName':_0x30c0bd[_0x5d55f3('0xc1')]['from'],'ListId':_0x50b141['id']});return _0x6a9f1d[_0x30c0bd['body']['mapKey']]=_0x30c0bd[_0x5d55f3('0xc1')]['from'],db[_0x5d55f3('0x12')][_0x5d55f3('0x33')](_0x6a9f1d,{'fields':_0x15c627,'raw':!![]});}})[_0x4729d3('0xc3')](handleEntityNotFound(_0x1efee1,null))[_0x4729d3('0xc3')](function(_0x4d94e2){const _0x45cc15=_0x4729d3;if(_0x4d94e2){_0x30c0bd['contact']=_0x4d94e2;const _0x3e046c={'ContactId':_0x4d94e2['id'],'phone':_0x30c0bd[_0x45cc15('0xc1')]['from'],'SmsAccountId':_0x599810['params']['id']},_0x324c95={'ContactId':_0x4d94e2['id'],'SmsAccountId':_0x599810[_0x45cc15('0x29')]['id'],'closed':![]};return db[_0x45cc15('0x68')][_0x45cc15('0x59')]({'where':_0x324c95})['then'](function(_0x177d90){const _0x4eac8b=_0x45cc15;if(_0x177d90)return[_0x177d90,![]];return db[_0x4eac8b('0x68')][_0x4eac8b('0x33')](_0x3e046c)[_0x4eac8b('0xc3')](function(_0x5de854){return[_0x5de854,!![]];});});}})['then'](function([_0x2539b1,_0x13c5d4]){const _0x40a684=_0x4729d3;return _0x30c0bd[_0x40a684('0xae')]=_0x2539b1[_0x40a684('0x71')]({'plain':!![]}),_0x30c0bd[_0x40a684('0xae')][_0x40a684('0xe')]=![],_0x13c5d4&&(_0x30c0bd[_0x40a684('0x48')][_0x40a684('0x16')]&&_0x30c0bd[_0x40a684('0x35')][_0x40a684('0x66')]({'id':0x0,'priority':_0x30c0bd[_0x40a684('0x35')][_0x40a684('0x5e')]+0x1,'app':_0x40a684('0xb9'),'appdata':'unmanaged','interval':_0x40a684('0x72')}),_0x30c0bd[_0x40a684('0xae')][_0x40a684('0xe')]=!![]),db['SmsMessage'][_0x40a684('0x33')]({'phone':_0x30c0bd['body']['from'],'messageId':_0x30c0bd[_0x40a684('0xc1')][_0x40a684('0x4b')],'body':_0x30c0bd[_0x40a684('0xc1')][_0x40a684('0xc1')],'SmsAccountId':_0x599810[_0x40a684('0x29')]['id'],'SmsInteractionId':_0x2539b1['id'],'direction':'in','ContactId':_0x2539b1['ContactId'],'AttachmentId':_0x30c0bd[_0x40a684('0xc1')][_0x40a684('0x60')]});})['then'](function(_0x25863e){const _0x131a67=_0x4729d3;_0x30c0bd[_0x131a67('0x1')]=_0x25863e;if(_0x30c0bd[_0x131a67('0xae')][_0x131a67('0x1c')])return db[_0x131a67('0xf')][_0x131a67('0x59')]({'attributes':['id',_0x131a67('0x1f')],'where':{'id':_0x30c0bd['interaction'][_0x131a67('0x1c')]}})[_0x131a67('0xc3')](function(_0x1b75ff){const _0x1fc636=_0x131a67;return _0x1b75ff&&_0x30c0bd['applications'][_0x1fc636('0x79')]({'id':0x0,'priority':0x0,'app':_0x1fc636('0x2a'),'appdata':_0x1b75ff[_0x1fc636('0x1f')]+','+(_0x30c0bd[_0x1fc636('0x48')][_0x1fc636('0x41')]||0xa),'interval':_0x1fc636('0x72')}),respondWithRpcPromise(_0x1fc636('0xaf'),_0x1fc636('0x23'),_0x30c0bd);});return respondWithRpcPromise(_0x131a67('0xaf'),'startRouting',_0x30c0bd);})[_0x4729d3('0xc3')](function(_0x40cb94){const _0x18f74f=_0x4729d3;if(_0x40cb94){const _0x413784=0xc8,_0xc025a0=_0x18f74f('0xab');return logger[_0x18f74f('0x55')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0xc025a0,_0x413784,_0x18f74f('0x9a')),logger[_0x18f74f('0x8f')](_0x18f74f('0xbd'),_0xc025a0,_0x413784,'entity\x20found',JSON['stringify'](_0x40cb94)),_0x30c0bd[_0x18f74f('0x48')]['type']===_0x18f74f('0xc8')?_0x1efee1['status'](_0x413784)[_0x18f74f('0x5')](_0x18f74f('0x57'),_0x18f74f('0xb7'))[_0x18f74f('0x1a')](_0x18f74f('0x5f')):_0x1efee1['status'](_0x413784)[_0x18f74f('0x14')](_0x40cb94);}})[_0x4729d3('0x13')](handleError(_0x1efee1,null));},exports['addApplications']=function(_0x3ea570,_0x4d94f0){const _0x30d338=_0x477a75;return db[_0x30d338('0x93')][_0x30d338('0x59')]({'where':{'id':_0x3ea570[_0x30d338('0x29')]['id']}})[_0x30d338('0xc3')](handleEntityNotFound(_0x4d94f0,null))[_0x30d338('0xc3')](function(_0x4d0e56){const _0x219e9a=_0x30d338;if(_0x4d0e56)return db[_0x219e9a('0x1d')][_0x219e9a('0xa8')](function(_0x587efe){const _0x52b57f=_0x219e9a;return db['SmsApplication']['destroy']({'where':{'SmsAccountId':_0x3ea570[_0x52b57f('0x29')]['id']},'transaction':_0x587efe})['then'](function(){const _0x5702c6=_0x52b57f,_0x23e77c=_['map'](_0x3ea570[_0x5702c6('0xc1')],function(_0xd2d98){const _0x5b703a=_0x5702c6;return _0xd2d98[_0x5b703a('0xb3')]=_0x3ea570[_0x5b703a('0x29')]['id'],_0xd2d98;});return db[_0x5702c6('0x4e')][_0x5702c6('0x62')](_0x23e77c,{'transaction':_0x587efe});});})[_0x219e9a('0xc3')](function(){const _0x56a276=_0x219e9a;return db[_0x56a276('0x4e')][_0x56a276('0x9b')]({'where':{'SmsAccountId':_0x3ea570[_0x56a276('0x29')]['id']},'order':_0x56a276('0xb0')});});})[_0x30d338('0xc3')](respondWithResult(_0x4d94f0,null))[_0x30d338('0x13')](handleError(_0x4d94f0,null));},exports[_0x477a75('0x51')]=function(_0x58e72a,_0x5adc3f){const _0x56626a=_0x477a75;let _0x242aff={};const _0x13b06c={};let _0x4741f1,_0x2f6279;return db[_0x56626a('0x93')]['findOne']({'where':{'id':_0x58e72a[_0x56626a('0x29')]['id']}})[_0x56626a('0xc3')](handleEntityNotFound(_0x5adc3f,null))[_0x56626a('0xc3')](function(_0xb1cd3a){const _0x286476=_0x56626a;if(_0xb1cd3a)return _0x4741f1=_0xb1cd3a,_0x13b06c['model']=_['keys'](db[_0x286476('0x4e')]['rawAttributes']),_0x13b06c[_0x286476('0xad')]=_['keys'](_0x58e72a[_0x286476('0xad')]),_0x13b06c[_0x286476('0x99')]=_[_0x286476('0xbb')](_0x13b06c[_0x286476('0x0')],_0x13b06c[_0x286476('0xad')]),_0x242aff[_0x286476('0x11')]=_[_0x286476('0xbb')](_0x13b06c[_0x286476('0x0')],qs['fields'](_0x58e72a['query'][_0x286476('0x87')])),_0x242aff[_0x286476('0x11')]=_0x242aff[_0x286476('0x11')][_0x286476('0x5e')]?_0x242aff['attributes']:_0x13b06c['model'],_0x242aff[_0x286476('0x31')]=qs[_0x286476('0x38')](_0x58e72a[_0x286476('0xad')]['sort']),_0x242aff['where']=qs[_0x286476('0x99')](_['pick'](_0x58e72a[_0x286476('0xad')],_0x13b06c[_0x286476('0x99')])),_0x58e72a[_0x286476('0xad')][_0x286476('0x8e')]&&(_0x242aff[_0x286476('0x39')]=_['merge'](_0x242aff[_0x286476('0x39')],{[Op['or']]:_[_0x286476('0x3b')](_0x242aff[_0x286476('0x11')],function(_0x49bb60){const _0x533f7c=_0x286476,_0x5ed2b9={};return _0x5ed2b9[_0x49bb60]={[Op[_0x533f7c('0x8a')]]:'%'+_0x58e72a[_0x533f7c('0xad')][_0x533f7c('0x8e')]+'%'},_0x5ed2b9;})})),_0x242aff=_['merge']({},_0x242aff,_0x58e72a['options']),_0x4741f1['getApplications'](_0x242aff);})[_0x56626a('0xc3')](function(_0x5bc383){const _0x55c0ad=_0x56626a;if(_0x5bc383)return _0x2f6279=_0x5bc383[_0x55c0ad('0x5e')],typeof _0x58e72a['query'][_0x55c0ad('0xc6')]==='undefined'&&(_0x242aff[_0x55c0ad('0x4')]=qs[_0x55c0ad('0x4')](_0x58e72a['query'][_0x55c0ad('0x4')]),_0x242aff['offset']=qs[_0x55c0ad('0xa1')](_0x58e72a[_0x55c0ad('0xad')][_0x55c0ad('0xa1')])),_0x4741f1[_0x55c0ad('0x51')](_0x242aff);})[_0x56626a('0xc3')](function(_0x467eb6){if(_0x467eb6)return _0x467eb6?{'count':_0x2f6279,'rows':_0x467eb6}:null;})[_0x56626a('0xc3')](respondWithResult(_0x5adc3f,null))[_0x56626a('0x13')](handleError(_0x5adc3f,null));},exports[_0x477a75('0x4d')]=function(_0x4eba13,_0x30da3e){const _0x5db127=_0x477a75;let _0x4de1ca={'raw':![],'where':{}};const _0x571840={},_0x2403ed={'count':0x0,'rows':[]};return db['SmsAccount'][_0x5db127('0x59')]({'where':{'id':_0x4eba13[_0x5db127('0x29')]['id']}})[_0x5db127('0xc3')](handleEntityNotFound(_0x30da3e,null))[_0x5db127('0xc3')](function(_0x4af295){const _0x3d690f=_0x5db127;if(_0x4af295)return _0x571840[_0x3d690f('0x0')]=_[_0x3d690f('0x84')](db['SmsInteraction'][_0x3d690f('0xb5')]),_0x571840[_0x3d690f('0xad')]=_['keys'](_0x4eba13['query']),_0x571840[_0x3d690f('0x99')]=_[_0x3d690f('0xbb')](_0x571840[_0x3d690f('0x0')],_0x571840['query']),_0x4de1ca[_0x3d690f('0x11')]=_[_0x3d690f('0xbb')](_0x571840[_0x3d690f('0x0')],qs['fields'](_0x4eba13['query'][_0x3d690f('0x87')])),_0x4de1ca[_0x3d690f('0x11')]=_0x4de1ca[_0x3d690f('0x11')]['length']?_0x4de1ca[_0x3d690f('0x11')]:_0x571840['model'],typeof _0x4eba13[_0x3d690f('0xad')][_0x3d690f('0xc6')]===_0x3d690f('0xc')&&(_0x4de1ca['limit']=qs[_0x3d690f('0x4')](_0x4eba13[_0x3d690f('0xad')]['limit']),_0x4de1ca[_0x3d690f('0xa1')]=qs[_0x3d690f('0xa1')](_0x4eba13[_0x3d690f('0xad')][_0x3d690f('0xa1')])),_0x4de1ca['order']=qs[_0x3d690f('0x38')](_0x4eba13['query'][_0x3d690f('0x38')]),_0x4de1ca['where']=qs[_0x3d690f('0x99')](_[_0x3d690f('0x9d')](_0x4eba13[_0x3d690f('0xad')],_0x571840['filters'])),_0x4de1ca[_0x3d690f('0x39')][_0x3d690f('0xb3')]=_0x4af295['id'],_0x4eba13[_0x3d690f('0xad')][_0x3d690f('0x8e')]&&(_0x4de1ca[_0x3d690f('0x39')]=_['merge'](_0x4de1ca[_0x3d690f('0x39')],{[Op['or']]:_[_0x3d690f('0x3b')](_0x4de1ca[_0x3d690f('0x11')],function(_0x334742){const _0x8c677f=_0x3d690f,_0x3169b5={};return _0x3169b5[_0x334742]={[Op[_0x8c677f('0x8a')]]:'%'+_0x4eba13[_0x8c677f('0xad')][_0x8c677f('0x8e')]+'%'},_0x3169b5;})})),_0x4de1ca=_['merge']({},_0x4de1ca,_0x4eba13[_0x3d690f('0x63')]),db['SmsInteraction'][_0x3d690f('0x73')]({'where':_0x4de1ca['where']})['then'](function(_0xe3083c){const _0x24da79=_0x3d690f;return _0x2403ed['count']=_0xe3083c,_0x4eba13[_0x24da79('0xad')]['includeAll']&&(_0x4de1ca['include']=[{'model':db['CmContact'],'as':'Contact','required':![]},{'model':db[_0x24da79('0xf')],'as':_0x24da79('0x21'),'attributes':[_0x24da79('0x1f'),'fullname',_0x24da79('0x6b')],'required':![]},{'model':db[_0x24da79('0xa2')],'as':_0x24da79('0x3a'),'attributes':['id',_0x24da79('0x1f'),_0x24da79('0x6d')],'where':_0x4eba13['query'][_0x24da79('0xa7')]?{'id':_0x4eba13['query'][_0x24da79('0xa7')]}:undefined,'required':_0x4eba13[_0x24da79('0xad')][_0x24da79('0xa7')]?!![]:![]}]),db[_0x24da79('0x68')][_0x24da79('0x26')](_0x4de1ca);})[_0x3d690f('0xc3')](function(_0x5264d7){return _0x2403ed['rows']=_0x5264d7,_0x2403ed;});})[_0x5db127('0xc3')](respondWithFilteredResult(_0x30da3e,_0x4de1ca))[_0x5db127('0x13')](handleError(_0x30da3e,null));},exports[_0x477a75('0x1a')]=function(_0x1e1185,_0xb3393d){const _0x3955a0=_0x477a75;let _0x54537c,_0x4b0584;if(_[_0x3955a0('0xc2')](_0x1e1185[_0x3955a0('0xc1')][_0x3955a0('0xc1')])||_0x1e1185[_0x3955a0('0xc1')][_0x3955a0('0xc1')]==='')throw new db[(_0x3955a0('0xc9'))][(_0x3955a0('0xd'))]('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_['isNil'](_0x1e1185['body']['to']))throw new db[(_0x3955a0('0xc9'))]['ValidationError'](_0x3955a0('0xa5'));const _0x939fc9=_0x1e1185[_0x3955a0('0xc1')]['to'];return db[_0x3955a0('0x93')][_0x3955a0('0x59')]({'where':{'id':_0x1e1185[_0x3955a0('0x29')]['id']},'include':[{'model':db[_0x3955a0('0x6c')],'as':_0x3955a0('0x56'),'include':[{'model':db[_0x3955a0('0x12')],'as':_0x3955a0('0xbf'),'where':{'mobile':_0x939fc9},'limit':0x1,'order':[[_0x3955a0('0x1e'),_0x3955a0('0x9f')]]}]}]})['then'](handleEntityNotFound(_0xb3393d,null))['then'](function(_0x594329){const _0x4bd55d=_0x3955a0;if(_0x594329&&_0x594329[_0x4bd55d('0x56')]){_0x54537c=_0x594329[_0x4bd55d('0x71')]({'plain':!![]});if(_0x54537c['List']&&_0x54537c[_0x4bd55d('0x56')][_0x4bd55d('0xbf')]['length'])return _0x54537c['List']['Contacts'][0x0];return db[_0x4bd55d('0x12')][_0x4bd55d('0x33')](_[_0x4bd55d('0xc7')](_0x1e1185[_0x4bd55d('0xc1')],{'firstName':_0x939fc9,'mobile':_0x939fc9,'phone':_0x939fc9,'ListId':_0x54537c[_0x4bd55d('0xc4')]}));}})[_0x3955a0('0xc3')](handleEntityNotFound(_0xb3393d,null))[_0x3955a0('0xc3')](function(_0x54cf84){const _0x1700cd=_0x3955a0;if(_0x54cf84)return _0x4b0584=_0x54cf84,db['SmsInteraction'][_0x1700cd('0x59')]({'where':{'ContactId':_0x4b0584['id'],'closed':![],'SmsAccountId':_0x54537c['id']}})[_0x1700cd('0xc3')](function(_0x3dd3c3){const _0x337c30=_0x1700cd;if(_0x3dd3c3)return[_0x3dd3c3,![]];return db[_0x337c30('0x68')]['create']({'UserId':_0x1e1185[_0x337c30('0x5d')]['id'],'ContactId':_0x4b0584['id'],'SmsAccountId':_0x54537c['id'],'phone':_0x939fc9,'firstMsgDirection':_0x337c30('0xc0'),'Messages':[_[_0x337c30('0x8d')](_0x1e1185[_0x337c30('0xc1')],{'read':![],'body':_0x1e1185[_0x337c30('0xc1')]['body'],'phone':_0x939fc9,'SmsAccountId':_0x54537c['id'],'UserId':_0x1e1185[_0x337c30('0x5d')]['id'],'ContactId':_0x4b0584['id']})]},{'include':[{'model':db['SmsMessage'],'as':'Messages'}]})['then'](function(_0x1c0ab6){return[_0x1c0ab6,!![]];});});})[_0x3955a0('0xc3')](function([_0x344a02,_0x1cfbdd]){const _0x39e1d0=_0x3955a0;if(_0x1cfbdd)return _0x344a02;return db[_0x39e1d0('0x37')][_0x39e1d0('0x33')](_[_0x39e1d0('0x8d')](_0x1e1185[_0x39e1d0('0xc1')],{'read':![],'body':_0x1e1185[_0x39e1d0('0xc1')][_0x39e1d0('0xc1')],'phone':_0x939fc9,'SmsAccountId':_0x54537c['id'],'SmsInteractionId':_0x344a02['id'],'UserId':_0x1e1185[_0x39e1d0('0x5d')]['id'],'ContactId':_0x4b0584['id']}))['then'](function(_0x3eab84){const _0x2a03b5=_0x39e1d0;return _0x344a02[_0x2a03b5('0x3d')][_0x2a03b5('0x85')]=[],_0x344a02[_0x2a03b5('0x3d')][_0x2a03b5('0x85')][_0x2a03b5('0x66')](_0x3eab84[_0x2a03b5('0x3d')]),_0x344a02;});})[_0x3955a0('0xc3')](respondWithResult(_0xb3393d,null))['catch'](handleError(_0xb3393d,null));},exports[_0x477a75('0x4f')]=function(_0x5c82e7,_0x6b616a){const _0x2ffc34=_0x477a75;_0x5c82e7[_0x2ffc34('0xc1')]['id']&&delete _0x5c82e7['body']['id'];console[_0x2ffc34('0x83')](_0x2ffc34('0x43'),_0x5c82e7[_0x2ffc34('0xc1')]);let _0x59a2d1,_0x518c5d,_0x1de296;return db[_0x2ffc34('0x93')]['findOne']({'where':{'id':_0x5c82e7['params']['id']}})[_0x2ffc34('0xc3')](handleEntityNotFound(_0x6b616a,null))[_0x2ffc34('0xc3')](function(_0x18f037){const _0x193dab=_0x2ffc34;if(_0x18f037){_0x1de296=_0x18f037,logger['debug'](_0x193dab('0x54'),'status',_0x193dab('0x52'),_0x18f037[_0x193dab('0x74')],util[_0x193dab('0x96')](_0x5c82e7[_0x193dab('0xc1')],{'showHidden':![],'depth':null}));switch(_0x18f037[_0x193dab('0x74')]){case _0x193dab('0xac'):if(_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x19')]&&_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x4f')])return _0x518c5d=_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x4f')],db[_0x193dab('0x37')][_0x193dab('0x59')]({'where':{'messageId':_0x5c82e7['body'][_0x193dab('0x19')]}});break;case _0x193dab('0xa0'):if(_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0xb4')]&&_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x9')])return _0x518c5d=_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x9')],db['SmsMessage']['findOne']({'where':{'messageId':_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0xb4')]}});break;case _0x193dab('0x69'):if(_0x5c82e7['body']['message_id']&&_0x5c82e7[_0x193dab('0xc1')]['status_code'])return _0x518c5d=_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x6')],db[_0x193dab('0x37')][_0x193dab('0x59')]({'where':{'messageId':_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x1b')]}});break;case'infobip':{const _0x308c16=_0x5c82e7[_0x193dab('0xc1')]['results'][0x0];if(_0x308c16['messageId']&&_0x308c16[_0x193dab('0x4f')][_0x193dab('0x97')]===_0x193dab('0x44'))return _0x518c5d=_0x308c16[_0x193dab('0x4f')][_0x193dab('0x97')],db[_0x193dab('0x37')]['findOne']({'where':{'messageId':_0x308c16[_0x193dab('0x4b')]}});}break;case'clickatell':if(_0x5c82e7[_0x193dab('0xc1')]['messageId']&&_0x5c82e7[_0x193dab('0xc1')]['status'])return _0x518c5d=_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x4f')],db[_0x193dab('0x37')][_0x193dab('0x59')]({'where':{'messageId':_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x4b')]}});break;case _0x193dab('0x94'):if(_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x91')]&&_0x5c82e7['body']['status'])return _0x518c5d=_0x5c82e7[_0x193dab('0xc1')][_0x193dab('0x4f')],db[_0x193dab('0x37')][_0x193dab('0x59')]({'where':{'messageId':_0x5c82e7['body'][_0x193dab('0x91')]}});break;}}})['then'](handleEntityNotFound(_0x6b616a,null))[_0x2ffc34('0xc3')](function(_0x5baf1d){const _0x53b71c=_0x2ffc34;if(_0x5baf1d){_0x59a2d1=_0x5baf1d;switch(_0x1de296[_0x53b71c('0x74')]){case _0x53b71c('0xac'):if(_0x518c5d==='DELIVERED')return _0x59a2d1[_0x53b71c('0x36')]({'read':!![]});else logger['error'](_0x53b71c('0x54'),_0x53b71c('0x4f'),'skebby',util[_0x53b71c('0x96')](_0x5c82e7['body'],{'showHidden':![],'depth':null}));break;case _0x53b71c('0xa0'):if(_0x518c5d==='1')return _0x59a2d1['update']({'read':!![]});else logger[_0x53b71c('0x77')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x53b71c('0x4f'),_0x53b71c('0xac'),util[_0x53b71c('0x96')](_0x5c82e7[_0x53b71c('0xc1')],{'showHidden':![],'depth':null}));break;case _0x53b71c('0x69'):if(!_0x5c82e7[_0x53b71c('0xc1')][_0x53b71c('0x7e')]&&_0x518c5d>=0xc8&&_0x518c5d<=0xce)return _0x59a2d1[_0x53b71c('0x36')]({'read':!![]});else logger['error'](_0x53b71c('0x54'),_0x53b71c('0x4f'),_0x53b71c('0x69'),util[_0x53b71c('0x96')](_0x5c82e7['body'],{'showHidden':![],'depth':null}));break;case _0x53b71c('0xb6'):{const _0x2d18ea=_0x5c82e7['body'][_0x53b71c('0x5c')][0x0];if(_0x2d18ea[_0x53b71c('0x4f')][_0x53b71c('0x97')]==='DELIVERED')return _0x59a2d1['update']({'read':!![]});else logger[_0x53b71c('0x77')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x53b71c('0x4f'),_0x53b71c('0xb6'),util[_0x53b71c('0x96')](_0x5c82e7['body'],{'showHidden':![],'depth':null}));}break;case'clickatell':if(_0x518c5d==_0x53b71c('0x40')||_0x518c5d==_0x53b71c('0x89'))return _0x59a2d1['update']({'read':!![]});else logger['error'](_0x53b71c('0x54'),'status',_0x53b71c('0x53'),util['inspect'](_0x5c82e7[_0x53b71c('0xc1')],{'showHidden':![],'depth':null}));break;case _0x53b71c('0x94'):if(_0x518c5d==='DELIVRD'||_0x518c5d===_0x53b71c('0x6f'))return _0x59a2d1['update']({'read':!![]});else logger[_0x53b71c('0x77')](_0x53b71c('0x54'),_0x53b71c('0x4f'),_0x53b71c('0x94'),util['inspect'](_0x5c82e7['body'],{'showHidden':![],'depth':null}));break;}return _0x59a2d1;}})[_0x2ffc34('0xc3')](respondWithResult(_0x6b616a,null))[_0x2ffc34('0x13')](handleError(_0x6b616a,null));},exports[_0x477a75('0x2d')]=function(_0x5cceaf,_0x337faf){const _0x4dc778=_0x477a75;let _0xbe53ac,_0x44f3b2,_0x542fbe;return db[_0x4dc778('0x93')][_0x4dc778('0x59')]({'where':{'id':_0x5cceaf[_0x4dc778('0x29')]['id']}})['then'](handleEntityNotFound(_0x337faf,null))['then'](function(_0x11dbad){const _0x387478=_0x4dc778;if(_0x11dbad){_0x542fbe=_0x11dbad,logger['debug'](_0x387478('0x54'),'status',_0x387478('0x52'),_0x11dbad[_0x387478('0x74')],util[_0x387478('0x96')](_0x5cceaf['query'],{'showHidden':![],'depth':null}));switch(_0x11dbad[_0x387478('0x74')]){case'csc':if(_0x5cceaf[_0x387478('0xad')]['message-id']&&_0x5cceaf['query'][_0x387478('0x3f')])return _0x44f3b2=_0x5cceaf[_0x387478('0xad')][_0x387478('0x3f')],db['SmsMessage'][_0x387478('0x59')]({'where':{'messageId':_0x5cceaf[_0x387478('0xad')]['message-id']}});break;}}})[_0x4dc778('0xc3')](handleEntityNotFound(_0x337faf,null))['then'](function(_0x76c9bc){const _0x2c6f87=_0x4dc778;if(_0x76c9bc){_0xbe53ac=_0x76c9bc;switch(_0x542fbe[_0x2c6f87('0x74')]){case _0x2c6f87('0xb'):if(_0x44f3b2==='2'||_0x44f3b2==='6')return _0xbe53ac[_0x2c6f87('0x36')]({'read':!![]});else logger['error']('SmsAccount,\x20%s,\x20%s,\x20%s',_0x2c6f87('0x4f'),'csc',util[_0x2c6f87('0x96')](_0x5cceaf[_0x2c6f87('0xad')],{'showHidden':![],'depth':null}));break;}return _0xbe53ac;}})[_0x4dc778('0xc3')](respondWithResult(_0x337faf,null))[_0x4dc778('0x13')](handleError(_0x337faf,null));},exports[_0x477a75('0x90')]=function(_0xeaa01,_0x9673ae){const _0x5bd31f=_0x477a75;return db['SmsAccount'][_0x5bd31f('0x59')]({'where':{'id':_0xeaa01['params']['id']}})[_0x5bd31f('0xc3')](function(_0x2950ef){const _0x369c9a=_0x5bd31f;if(_0x2950ef)return _0x2950ef[_0x369c9a('0x90')](_0xeaa01['body'][_0x369c9a('0x9e')],{'through':_[_0x369c9a('0x61')](_0xeaa01[_0x369c9a('0xc1')],['ids','id'])})[_0x369c9a('0xc3')](function(_0x3fac1d){const _0x563652=_0x369c9a;for(let _0x323353=0x0;_0x323353<_0xeaa01[_0x563652('0xc1')][_0x563652('0x9e')]['length'];_0x323353+=0x1){socket[_0x563652('0x8c')](_0x563652('0x10'),{'UserId':_0xeaa01[_0x563652('0xc1')]['ids'][_0x323353],'SmsAccountId':_0xeaa01[_0x563652('0x29')]['id']});}return _0x3fac1d;});})[_0x5bd31f('0xc3')](respondWithResult(_0x9673ae,null))[_0x5bd31f('0x13')](handleError(_0x9673ae,null));},exports[_0x477a75('0x20')]=function(_0x257613,_0x3efffe){const _0xbd12b1=_0x477a75;return db['SmsAccount']['findOne']({'where':{'id':_0x257613['params']['id']}})[_0xbd12b1('0xc3')](handleEntityNotFound(_0x3efffe,null))[_0xbd12b1('0xc3')](function(_0x25bd41){const _0x450637=_0xbd12b1;if(_0x25bd41)return _0x25bd41[_0x450637('0x20')](_0x257613['query'][_0x450637('0x9e')])[_0x450637('0xc3')](function(){const _0x42ec37=_0x450637;if(_[_0x42ec37('0x7d')](_0x257613[_0x42ec37('0xad')][_0x42ec37('0x9e')]))for(let _0x131101=0x0;_0x131101<_0x257613[_0x42ec37('0xad')]['ids'][_0x42ec37('0x5e')];_0x131101+=0x1){socket[_0x42ec37('0x8c')]('userSmsAccount:remove',{'UserId':Number(_0x257613[_0x42ec37('0xad')][_0x42ec37('0x9e')][_0x131101]),'SmsAccountId':Number(_0x257613['params']['id'])});}else socket[_0x42ec37('0x8c')](_0x42ec37('0x42'),{'UserId':Number(_0x257613[_0x42ec37('0xad')][_0x42ec37('0x9e')]),'SmsAccountId':Number(_0x257613[_0x42ec37('0x29')]['id'])});});})[_0xbd12b1('0xc3')](respondWithStatusCode(_0x3efffe,null))[_0xbd12b1('0x13')](handleError(_0x3efffe,null));},exports[_0x477a75('0x3e')]=function(_0x39b1f6,_0x34eb25){const _0x5dcaac=_0x477a75;let _0x220639={};const _0x3f8494={};let _0x10abd4,_0x5a081c;return db['SmsAccount']['findOne']({'where':{'id':_0x39b1f6[_0x5dcaac('0x29')]['id']}})[_0x5dcaac('0xc3')](handleEntityNotFound(_0x34eb25,null))[_0x5dcaac('0xc3')](function(_0x10475a){const _0x5dcbae=_0x5dcaac;if(_0x10475a)return _0x10abd4=_0x10475a,_0x3f8494[_0x5dcbae('0x0')]=_[_0x5dcbae('0x84')](db[_0x5dcbae('0xf')]['rawAttributes']),_0x3f8494[_0x5dcbae('0xad')]=_[_0x5dcbae('0x84')](_0x39b1f6[_0x5dcbae('0xad')]),_0x3f8494[_0x5dcbae('0x99')]=_[_0x5dcbae('0xbb')](_0x3f8494[_0x5dcbae('0x0')],_0x3f8494[_0x5dcbae('0xad')]),_0x220639['attributes']=_[_0x5dcbae('0xbb')](_0x3f8494[_0x5dcbae('0x0')],qs['fields'](_0x39b1f6['query'][_0x5dcbae('0x87')])),_0x220639[_0x5dcbae('0x11')]=_0x220639[_0x5dcbae('0x11')][_0x5dcbae('0x5e')]?_0x220639[_0x5dcbae('0x11')]:_0x3f8494[_0x5dcbae('0x0')],_0x220639[_0x5dcbae('0x31')]=qs['sort'](_0x39b1f6[_0x5dcbae('0xad')][_0x5dcbae('0x38')]),_0x220639['where']=qs['filters'](_[_0x5dcbae('0x9d')](_0x39b1f6[_0x5dcbae('0xad')],_0x3f8494[_0x5dcbae('0x99')])),_0x39b1f6[_0x5dcbae('0xad')][_0x5dcbae('0x8e')]&&(_0x220639[_0x5dcbae('0x39')]=_['merge'](_0x220639[_0x5dcbae('0x39')],{[Op['or']]:_[_0x5dcbae('0x3b')](_0x220639['attributes'],function(_0x4bc982){const _0x55bee9=_0x5dcbae,_0x120d90={};return _0x120d90[_0x4bc982]={[Op['like']]:'%'+_0x39b1f6[_0x55bee9('0xad')][_0x55bee9('0x8e')]+'%'},_0x120d90;})})),_0x220639=_[_0x5dcbae('0x8d')]({},_0x220639,_0x39b1f6[_0x5dcbae('0x63')]),_0x10abd4[_0x5dcbae('0x3e')](_0x220639);})[_0x5dcaac('0xc3')](function(_0x16cd51){const _0x20c0a6=_0x5dcaac;if(_0x16cd51)return _0x5a081c=_0x16cd51[_0x20c0a6('0x5e')],typeof _0x39b1f6[_0x20c0a6('0xad')][_0x20c0a6('0xc6')]==='undefined'&&(_0x220639[_0x20c0a6('0x4')]=qs[_0x20c0a6('0x4')](_0x39b1f6[_0x20c0a6('0xad')][_0x20c0a6('0x4')]),_0x220639[_0x20c0a6('0xa1')]=qs[_0x20c0a6('0xa1')](_0x39b1f6[_0x20c0a6('0xad')][_0x20c0a6('0xa1')])),_0x10abd4[_0x20c0a6('0x3e')](_0x220639);})['then'](function(_0x33f042){if(_0x33f042)return _0x33f042?{'count':_0x5a081c,'rows':_0x33f042}:null;})['then'](respondWithResult(_0x34eb25,null))['catch'](handleError(_0x34eb25,null));}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.events.js b/server/api/smsAccount/smsAccount.events.js index 991795d..b83e85e 100644 --- a/server/api/smsAccount/smsAccount.events.js +++ b/server/api/smsAccount/smsAccount.events.js @@ -1 +1 @@ -const a543_0x5273=['update','exports','remove','SmsAccount','undefined','emit','events','setMaxListeners','save'];(function(_0xbb601b,_0x5273a7){const _0x539df3=function(_0x2a8038){while(--_0x2a8038){_0xbb601b['push'](_0xbb601b['shift']());}};_0x539df3(++_0x5273a7);}(a543_0x5273,0xf7));const a543_0x539d=function(_0xbb601b,_0x5273a7){_0xbb601b=_0xbb601b-0x0;let _0x539df3=a543_0x5273[_0xbb601b];return _0x539df3;};const _0x551575=a543_0x539d;'use strict';const EventEmitter=require(_0x551575('0x2')),SmsAccount=require('../../mysqldb')['db'][_0x551575('0x8')],SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x551575('0x3')](0x0);const events={'afterCreate':_0x551575('0x4'),'afterUpdate':_0x551575('0x5'),'afterDestroy':_0x551575('0x7')};function emitEvent(_0x2a8038){return function(_0x4b2e93){const _0x1e5517=a543_0x539d;SmsAccountEvents['emit'](_0x2a8038+':'+_0x4b2e93['id'],_0x4b2e93),SmsAccountEvents[_0x1e5517('0x1')](_0x2a8038,_0x4b2e93);};}for(const e in events){if(typeof events[e]!==_0x551575('0x0')){const event=events[e];SmsAccount['addHook'](e,emitEvent(event));}}module[_0x551575('0x6')]=SmsAccountEvents; \ No newline at end of file +const a543_0x1043=['setMaxListeners','emit','save','events','update','../../mysqldb','exports','undefined'];(function(_0x5e045e,_0x104393){const _0x614b95=function(_0x32ab2a){while(--_0x32ab2a){_0x5e045e['push'](_0x5e045e['shift']());}};_0x614b95(++_0x104393);}(a543_0x1043,0x1b7));const a543_0x614b=function(_0x5e045e,_0x104393){_0x5e045e=_0x5e045e-0x0;let _0x614b95=a543_0x1043[_0x5e045e];return _0x614b95;};const _0x55631b=a543_0x614b;'use strict';const EventEmitter=require(_0x55631b('0x4')),SmsAccount=require(_0x55631b('0x6'))['db']['SmsAccount'],SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x55631b('0x1')](0x0);const events={'afterCreate':_0x55631b('0x3'),'afterUpdate':_0x55631b('0x5'),'afterDestroy':'remove'};function emitEvent(_0x32ab2a){return function(_0x16066c){const _0x54bb4a=a543_0x614b;SmsAccountEvents[_0x54bb4a('0x2')](_0x32ab2a+':'+_0x16066c['id'],_0x16066c),SmsAccountEvents[_0x54bb4a('0x2')](_0x32ab2a,_0x16066c);};}for(const e in events){if(typeof events[e]!==_0x55631b('0x0')){const event=events[e];SmsAccount['addHook'](e,emitEvent(event));}}module[_0x55631b('0x7')]=SmsAccountEvents; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.model.js b/server/api/smsAccount/smsAccount.model.js index 6bfce31..c36d9d0 100644 --- a/server/api/smsAccount/smsAccount.model.js +++ b/server/api/smsAccount/smsAccount.model.js @@ -1 +1 @@ -const a544_0x4092=['exports','SmsAccount','./smsAccount.attributes'];(function(_0x19ae5a,_0x4092a1){const _0x495ea7=function(_0x2184c3){while(--_0x2184c3){_0x19ae5a['push'](_0x19ae5a['shift']());}};_0x495ea7(++_0x4092a1);}(a544_0x4092,0x85));const a544_0x495e=function(_0x19ae5a,_0x4092a1){_0x19ae5a=_0x19ae5a-0x0;let _0x495ea7=a544_0x4092[_0x19ae5a];return _0x495ea7;};const _0x1f3cf5=a544_0x495e;'use strict';const attributes=require(_0x1f3cf5('0x1'));module[_0x1f3cf5('0x2')]=function(_0x2184c3){const _0x38a78d=_0x1f3cf5,_0x177498=_0x2184c3['define'](_0x38a78d('0x0'),attributes,{'tableName':'sms_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x177498;}; \ No newline at end of file +const a544_0xc624=['define','exports','SmsAccount'];(function(_0x33b878,_0xc6241c){const _0xdee23c=function(_0x594999){while(--_0x594999){_0x33b878['push'](_0x33b878['shift']());}};_0xdee23c(++_0xc6241c);}(a544_0xc624,0x137));const a544_0xdee2=function(_0x33b878,_0xc6241c){_0x33b878=_0x33b878-0x0;let _0xdee23c=a544_0xc624[_0x33b878];return _0xdee23c;};const _0x47d747=a544_0xdee2;'use strict';const attributes=require('./smsAccount.attributes');module[_0x47d747('0x2')]=function(_0x594999){const _0x5147a2=_0x47d747,_0x4c98d7=_0x594999[_0x5147a2('0x1')](_0x5147a2('0x0'),attributes,{'tableName':'sms_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c98d7;}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.rpc.js b/server/api/smsAccount/smsAccount.rpc.js index 90b56f4..d977d67 100644 --- a/server/api/smsAccount/smsAccount.rpc.js +++ b/server/api/smsAccount/smsAccount.rpc.js @@ -1 +1 @@ -const a545_0x506a=['register','catch','./smsAccount.socket','raw','../../rediscache','rpc','ShowSmsAccount','message','lodash','model','attributes','where','debug','../../mysqldb','info','include','options','error','map','../../config/logger'];(function(_0x2d4ad3,_0x506a92){const _0x57694c=function(_0x40d82f){while(--_0x40d82f){_0x2d4ad3['push'](_0x2d4ad3['shift']());}};_0x57694c(++_0x506a92);}(a545_0x506a,0xeb));const a545_0x5769=function(_0x2d4ad3,_0x506a92){_0x2d4ad3=_0x2d4ad3-0x0;let _0x57694c=a545_0x506a[_0x2d4ad3];return _0x57694c;};const _0x36c47c=a545_0x5769;'use strict';const db=require(_0x36c47c('0x12'))['db'],logger=require(_0x36c47c('0x4'))(_0x36c47c('0xa')),_=require(_0x36c47c('0xd')),{getSocket}=require(_0x36c47c('0x9')),socket=getSocket();require(_0x36c47c('0x7'))[_0x36c47c('0x5')](socket),exports[_0x36c47c('0xb')]=function(_0x40d82f){const _0x47230f=this;return new Promise(function(_0x26d51f,_0x47c46f){const _0x31975d=a545_0x5769;return db['SmsAccount']['findOne']({'raw':_0x40d82f[_0x31975d('0x1')]?_0x40d82f['options'][_0x31975d('0x8')]===undefined?!![]:![]:!![],'where':_0x40d82f[_0x31975d('0x1')]?_0x40d82f[_0x31975d('0x1')][_0x31975d('0x10')]||null:null,'attributes':_0x40d82f[_0x31975d('0x1')]?_0x40d82f[_0x31975d('0x1')]['attributes']||null:null,'include':_0x40d82f[_0x31975d('0x1')]?_0x40d82f[_0x31975d('0x1')][_0x31975d('0x0')]?_['map'](_0x40d82f[_0x31975d('0x1')][_0x31975d('0x0')],function(_0x524161){const _0x4d9617=_0x31975d;return{'model':db[_0x524161[_0x4d9617('0xe')]],'as':_0x524161['as'],'attributes':_0x524161[_0x4d9617('0xf')],'include':_0x524161[_0x4d9617('0x0')]?_[_0x4d9617('0x3')](_0x524161[_0x4d9617('0x0')],function(_0x37cb39){const _0x42a7c3=_0x4d9617;return{'model':db[_0x37cb39[_0x42a7c3('0xe')]],'as':_0x37cb39['as'],'attributes':_0x37cb39[_0x42a7c3('0xf')],'include':_0x37cb39[_0x42a7c3('0x0')]?_[_0x42a7c3('0x3')](_0x37cb39['include'],function(_0x2a1fbd){const _0x52ae32=_0x42a7c3;return{'model':db[_0x2a1fbd[_0x52ae32('0xe')]],'as':_0x2a1fbd['as'],'attributes':_0x2a1fbd[_0x52ae32('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2a0f06){const _0x3bbbb4=_0x31975d;logger[_0x3bbbb4('0x13')](_0x3bbbb4('0xb'),_0x40d82f),logger[_0x3bbbb4('0x11')](_0x3bbbb4('0xb'),_0x40d82f,JSON['stringify'](_0x2a0f06)),_0x26d51f(_0x2a0f06);})[_0x31975d('0x6')](function(_0x6ccb02){const _0x13bf63=_0x31975d;logger[_0x13bf63('0x2')](_0x13bf63('0xb'),_0x6ccb02[_0x13bf63('0xc')],_0x40d82f),_0x47c46f(_0x47230f[_0x13bf63('0x2')](0x1f4,_0x6ccb02['message']));});});}; \ No newline at end of file +const a545_0x5a3d=['lodash','attributes','error','message','register','./smsAccount.socket','then','include','SmsAccount','findOne','../../rediscache','info','ShowSmsAccount','map','../../config/logger','stringify','model','rpc','options','where','raw','catch'];(function(_0x39dcb0,_0x5a3d4c){const _0x19ffc6=function(_0x14ad3f){while(--_0x14ad3f){_0x39dcb0['push'](_0x39dcb0['shift']());}};_0x19ffc6(++_0x5a3d4c);}(a545_0x5a3d,0x1a2));const a545_0x19ff=function(_0x39dcb0,_0x5a3d4c){_0x39dcb0=_0x39dcb0-0x0;let _0x19ffc6=a545_0x5a3d[_0x39dcb0];return _0x19ffc6;};const _0x540210=a545_0x19ff;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x540210('0xe'))(_0x540210('0x11')),_=require(_0x540210('0x0')),{getSocket}=require(_0x540210('0xa')),socket=getSocket();require(_0x540210('0x5'))[_0x540210('0x4')](socket),exports[_0x540210('0xc')]=function(_0x14ad3f){const _0x418774=this;return new Promise(function(_0x2db881,_0xbf3744){const _0x5cb03f=a545_0x19ff;return db[_0x5cb03f('0x8')][_0x5cb03f('0x9')]({'raw':_0x14ad3f[_0x5cb03f('0x12')]?_0x14ad3f[_0x5cb03f('0x12')][_0x5cb03f('0x14')]===undefined?!![]:![]:!![],'where':_0x14ad3f[_0x5cb03f('0x12')]?_0x14ad3f['options'][_0x5cb03f('0x13')]||null:null,'attributes':_0x14ad3f['options']?_0x14ad3f[_0x5cb03f('0x12')][_0x5cb03f('0x1')]||null:null,'include':_0x14ad3f[_0x5cb03f('0x12')]?_0x14ad3f['options']['include']?_[_0x5cb03f('0xd')](_0x14ad3f[_0x5cb03f('0x12')][_0x5cb03f('0x7')],function(_0x54bb99){const _0x4bcdc9=_0x5cb03f;return{'model':db[_0x54bb99[_0x4bcdc9('0x10')]],'as':_0x54bb99['as'],'attributes':_0x54bb99[_0x4bcdc9('0x1')],'include':_0x54bb99[_0x4bcdc9('0x7')]?_[_0x4bcdc9('0xd')](_0x54bb99['include'],function(_0x327593){const _0x31f63b=_0x4bcdc9;return{'model':db[_0x327593['model']],'as':_0x327593['as'],'attributes':_0x327593[_0x31f63b('0x1')],'include':_0x327593[_0x31f63b('0x7')]?_[_0x31f63b('0xd')](_0x327593['include'],function(_0xfbf46b){const _0x42c75a=_0x31f63b;return{'model':db[_0xfbf46b[_0x42c75a('0x10')]],'as':_0xfbf46b['as'],'attributes':_0xfbf46b[_0x42c75a('0x1')]};}):[]};}):[]};}):[]:[]})[_0x5cb03f('0x6')](function(_0x34be13){const _0x917e5e=_0x5cb03f;logger[_0x917e5e('0xb')](_0x917e5e('0xc'),_0x14ad3f),logger['debug'](_0x917e5e('0xc'),_0x14ad3f,JSON[_0x917e5e('0xf')](_0x34be13)),_0x2db881(_0x34be13);})[_0x5cb03f('0x15')](function(_0xf60035){const _0x3e5a1c=_0x5cb03f;logger[_0x3e5a1c('0x2')](_0x3e5a1c('0xc'),_0xf60035[_0x3e5a1c('0x3')],_0x14ad3f),_0xbf3744(_0x418774[_0x3e5a1c('0x2')](0x1f4,_0xf60035[_0x3e5a1c('0x3')]));});});}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.socket.js b/server/api/smsAccount/smsAccount.socket.js index d84f469..2ac7c97 100644 --- a/server/api/smsAccount/smsAccount.socket.js +++ b/server/api/smsAccount/smsAccount.socket.js @@ -1 +1 @@ -const a546_0xec70=['./smsAccount.events','remove','update','smsAccount:','emit','register','length','save'];(function(_0x1c64d4,_0xec700e){const _0x48b794=function(_0x38935a){while(--_0x38935a){_0x1c64d4['push'](_0x1c64d4['shift']());}};_0x48b794(++_0xec700e);}(a546_0xec70,0x1f0));const a546_0x48b7=function(_0x1c64d4,_0xec700e){_0x1c64d4=_0x1c64d4-0x0;let _0x48b794=a546_0xec70[_0x1c64d4];return _0x48b794;};const _0x1b6449=a546_0x48b7;'use strict';const SmsAccountEvents=require(_0x1b6449('0x0')),events=[_0x1b6449('0x7'),_0x1b6449('0x1'),_0x1b6449('0x2')];function createListener(_0x38935a,_0x23fe82){return function(_0x233486){const _0x3805f6=a546_0x48b7;_0x23fe82[_0x3805f6('0x4')](_0x38935a,_0x233486);};}exports[_0x1b6449('0x5')]=function(_0x53354c){const _0x3b2079=_0x1b6449;for(let _0xf7dc8e=0x0,_0x1f88e6=events[_0x3b2079('0x6')];_0xf7dc8e<_0x1f88e6;_0xf7dc8e++){const _0x58db0a=events[_0xf7dc8e],_0x1b7cf0=createListener(_0x3b2079('0x3')+_0x58db0a,_0x53354c);SmsAccountEvents['on'](_0x58db0a,_0x1b7cf0);}}; \ No newline at end of file +const a546_0x105e=['remove','register','emit','length','smsAccount:','./smsAccount.events'];(function(_0x1c91e7,_0x105e12){const _0xabae1=function(_0x53a8ed){while(--_0x53a8ed){_0x1c91e7['push'](_0x1c91e7['shift']());}};_0xabae1(++_0x105e12);}(a546_0x105e,0x11d));const a546_0xabae=function(_0x1c91e7,_0x105e12){_0x1c91e7=_0x1c91e7-0x0;let _0xabae1=a546_0x105e[_0x1c91e7];return _0xabae1;};const _0x36dc5e=a546_0xabae;'use strict';const SmsAccountEvents=require(_0x36dc5e('0x2')),events=['save',_0x36dc5e('0x3'),'update'];function createListener(_0x53a8ed,_0x45dbda){return function(_0x49166d){const _0x98ae7=a546_0xabae;_0x45dbda[_0x98ae7('0x5')](_0x53a8ed,_0x49166d);};}exports[_0x36dc5e('0x4')]=function(_0x2f45d0){const _0xb3ca2a=_0x36dc5e;for(let _0x3d7a45=0x0,_0x546305=events[_0xb3ca2a('0x0')];_0x3d7a45<_0x546305;_0x3d7a45++){const _0x25fc60=events[_0x3d7a45],_0x232746=createListener(_0xb3ca2a('0x1')+_0x25fc60,_0x2f45d0);SmsAccountEvents['on'](_0x25fc60,_0x232746);}}; \ No newline at end of file diff --git a/server/api/smsApplication/index.js b/server/api/smsApplication/index.js index b4fe083..29098e3 100644 --- a/server/api/smsApplication/index.js +++ b/server/api/smsApplication/index.js @@ -1 +1 @@ -const a547_0x51a8=['put','exports','isAuthenticated','show','get','post','/:id','../../components/auth/service','Router','destroy','update','delete','./smsApplication.controller'];(function(_0x22f151,_0x51a8de){const _0x5e4ea2=function(_0x4dfb44){while(--_0x4dfb44){_0x22f151['push'](_0x22f151['shift']());}};_0x5e4ea2(++_0x51a8de);}(a547_0x51a8,0x183));const a547_0x5e4e=function(_0x22f151,_0x51a8de){_0x22f151=_0x22f151-0x0;let _0x5e4ea2=a547_0x51a8[_0x22f151];return _0x5e4ea2;};const _0x11889e=a547_0x5e4e;'use strict';const express=require('express'),router=express[_0x11889e('0xb')](),auth=require(_0x11889e('0xa')),controller=require(_0x11889e('0x2'));router[_0x11889e('0x7')]('/',auth[_0x11889e('0x5')](),controller['index']),router[_0x11889e('0x7')](_0x11889e('0x9'),auth['isAuthenticated'](),controller[_0x11889e('0x6')]),router[_0x11889e('0x8')]('/',auth[_0x11889e('0x5')](),controller['create']),router[_0x11889e('0x3')](_0x11889e('0x9'),auth[_0x11889e('0x5')](),controller[_0x11889e('0x0')]),router[_0x11889e('0x1')](_0x11889e('0x9'),auth[_0x11889e('0x5')](),controller[_0x11889e('0xc')]),module[_0x11889e('0x4')]=router; \ No newline at end of file +const a547_0x19c1=['show','isAuthenticated','../../components/auth/service','create','Router','/:id','post','update','get','delete','exports'];(function(_0x3b3f23,_0x19c1f4){const _0x3441f1=function(_0x569e58){while(--_0x569e58){_0x3b3f23['push'](_0x3b3f23['shift']());}};_0x3441f1(++_0x19c1f4);}(a547_0x19c1,0x1b9));const a547_0x3441=function(_0x3b3f23,_0x19c1f4){_0x3b3f23=_0x3b3f23-0x0;let _0x3441f1=a547_0x19c1[_0x3b3f23];return _0x3441f1;};const _0x422d94=a547_0x3441;'use strict';const express=require('express'),router=express[_0x422d94('0x3')](),auth=require(_0x422d94('0x1')),controller=require('./smsApplication.controller');router[_0x422d94('0x7')]('/',auth[_0x422d94('0x0')](),controller['index']),router[_0x422d94('0x7')](_0x422d94('0x4'),auth[_0x422d94('0x0')](),controller[_0x422d94('0xa')]),router[_0x422d94('0x5')]('/',auth[_0x422d94('0x0')](),controller[_0x422d94('0x2')]),router['put'](_0x422d94('0x4'),auth['isAuthenticated'](),controller[_0x422d94('0x6')]),router[_0x422d94('0x8')]('/:id',auth[_0x422d94('0x0')](),controller['destroy']),module[_0x422d94('0x9')]=router; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.attributes.js b/server/api/smsApplication/smsApplication.attributes.js index 52190a8..576a807 100644 --- a/server/api/smsApplication/smsApplication.attributes.js +++ b/server/api/smsApplication/smsApplication.attributes.js @@ -1 +1 @@ -const a548_0x33e1=['TEXT','INTEGER','noop','sequelize'];(function(_0x4d684a,_0x33e113){const _0x4beee6=function(_0x3617da){while(--_0x3617da){_0x4d684a['push'](_0x4d684a['shift']());}};_0x4beee6(++_0x33e113);}(a548_0x33e1,0xe4));const a548_0x4bee=function(_0x4d684a,_0x33e113){_0x4d684a=_0x4d684a-0x0;let _0x4beee6=a548_0x33e1[_0x4d684a];return _0x4beee6;};const _0x550780=a548_0x4bee;'use strict';const Sequelize=require(_0x550780('0x3'));module['exports']={'priority':{'type':Sequelize[_0x550780('0x1')],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x550780('0x2')},'appdata':{'type':Sequelize[_0x550780('0x0')]()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize['STRING'],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +const a548_0x2f09=['exports','INTEGER','noop','STRING','*,*,*,*'];(function(_0x2b928e,_0x2f091e){const _0x573455=function(_0x494ac9){while(--_0x494ac9){_0x2b928e['push'](_0x2b928e['shift']());}};_0x573455(++_0x2f091e);}(a548_0x2f09,0x91));const a548_0x5734=function(_0x2b928e,_0x2f091e){_0x2b928e=_0x2b928e-0x0;let _0x573455=a548_0x2f09[_0x2b928e];return _0x573455;};const _0x20a3db=a548_0x5734;'use strict';const Sequelize=require('sequelize');module[_0x20a3db('0x0')]={'priority':{'type':Sequelize[_0x20a3db('0x1')],'allowNull':![]},'app':{'type':Sequelize[_0x20a3db('0x3')],'allowNull':![],'defaultValue':_0x20a3db('0x2')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x20a3db('0x3')]},'interval':{'type':Sequelize['STRING'],'defaultValue':_0x20a3db('0x4')}}; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.controller.js b/server/api/smsApplication/smsApplication.controller.js index 87dd91a..4ec90c2 100644 --- a/server/api/smsApplication/smsApplication.controller.js +++ b/server/api/smsApplication/smsApplication.controller.js @@ -1 +1 @@ -const a549_0x328a=['catch','update','length','error','includeAll','findAll','include','fields','json','filter','keys','limit','SmsApplication','params','like','then','options','intersection','../../components/parsers/qs','query','Content-Range','show','findOne','where','model','attributes','create','order','body','name','map','status','pick','VIRTUAL','rawAttributes','count','key','sendStatus','rows','end','merge','send','filters','sequelize','set','offset','type','lodash'];(function(_0x3fed6a,_0x328ab7){const _0x2b869c=function(_0x424450){while(--_0x424450){_0x3fed6a['push'](_0x3fed6a['shift']());}};_0x2b869c(++_0x328ab7);}(a549_0x328a,0x175));const a549_0x2b86=function(_0x3fed6a,_0x328ab7){_0x3fed6a=_0x3fed6a-0x0;let _0x2b869c=a549_0x328a[_0x3fed6a];return _0x2b869c;};const _0xa572fa=a549_0x2b86;'use strict';const _=require(_0xa572fa('0xa')),qs=require(_0xa572fa('0x1d')),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require(_0xa572fa('0x6'));function respondWithResult(_0x424450,_0x13b8ee){return _0x13b8ee=_0x13b8ee||0xc8,function(_0x16701d){const _0x3f75cd=a549_0x2b86;if(_0x16701d)return _0x424450[_0x3f75cd('0x2a')](_0x13b8ee)['json'](_0x16701d);};}function respondWithFilteredResult(_0x403156,_0xe556d1){return function(_0x2c806f){const _0x5e381e=a549_0x2b86;if(_0x2c806f){const _0x4ee89d=_0x2c806f[_0x5e381e('0x2e')],_0x5d3f67=_0xe556d1['offset'];let _0x1e4c95=_0xe556d1[_0x5e381e('0x8')]+_0xe556d1[_0x5e381e('0x16')],_0x5f4783;return _0x1e4c95>=_0x4ee89d?(_0x1e4c95=_0x4ee89d,_0x5f4783=0xc8):_0x5f4783=0xce,_0x403156[_0x5e381e('0x2a')](_0x5f4783),_0x403156[_0x5e381e('0x7')](_0x5e381e('0x1f'),_0x5d3f67+'-'+_0x1e4c95+'/'+_0x4ee89d)[_0x5e381e('0x13')](_0x2c806f);}return null;};}function saveUpdates(_0x5d4b84){return function(_0x559c99){const _0x268ca4=a549_0x2b86;if(_0x559c99)return _0x559c99[_0x268ca4('0xc')](_0x5d4b84)[_0x268ca4('0x1a')](function(_0x427374){return _0x427374;});return null;};}function removeEntity(_0x303cce){return function(_0xe6c800){const _0x20f4ec=a549_0x2b86;if(_0xe6c800)return _0xe6c800['destroy']()[_0x20f4ec('0x1a')](function(){const _0x547d32=_0x20f4ec;_0x303cce['status'](0xcc)[_0x547d32('0x2')]();});};}function handleEntityNotFound(_0x1d7e58){return function(_0x98dcd4){const _0xf0249a=a549_0x2b86;return!_0x98dcd4&&_0x1d7e58[_0xf0249a('0x0')](0x194),_0x98dcd4;};}function handleError(_0x334fca,_0x5c423e){return _0x5c423e=_0x5c423e||0x1f4,function(_0x11f079){const _0x3ef10f=a549_0x2b86;logger[_0x3ef10f('0xe')](_0x11f079['stack']),_0x11f079[_0x3ef10f('0x28')]&&delete _0x11f079['name'],_0x334fca['status'](_0x5c423e)[_0x3ef10f('0x4')](_0x11f079);};}exports['index']=function(_0x37ee87,_0x42f5d8){const _0x5b109a=_0xa572fa;let _0x529054={};const _0x2c316b={},_0x54be0d={'count':0x0,'rows':[]},_0x345ff3=_['map'](db['SmsApplication'][_0x5b109a('0x2d')],function(_0x3bcbc2){const _0x45dfb4=_0x5b109a;return{'name':_0x3bcbc2['fieldName'],'type':_0x3bcbc2[_0x45dfb4('0x9')][_0x45dfb4('0x2f')]};});_0x2c316b[_0x5b109a('0x23')]=_[_0x5b109a('0x29')](_0x345ff3,_0x5b109a('0x28')),_0x2c316b[_0x5b109a('0x1e')]=_['keys'](_0x37ee87[_0x5b109a('0x1e')]),_0x2c316b[_0x5b109a('0x5')]=_[_0x5b109a('0x1c')](_0x2c316b[_0x5b109a('0x23')],_0x2c316b[_0x5b109a('0x1e')]),_0x529054[_0x5b109a('0x24')]=_['intersection'](_0x2c316b[_0x5b109a('0x23')],qs['fields'](_0x37ee87[_0x5b109a('0x1e')]['fields'])),_0x529054['attributes']=_0x529054['attributes'][_0x5b109a('0xd')]?_0x529054['attributes']:_0x2c316b[_0x5b109a('0x23')];typeof _0x37ee87[_0x5b109a('0x1e')]['nolimit']==='undefined'&&(_0x529054[_0x5b109a('0x16')]=qs['limit'](_0x37ee87[_0x5b109a('0x1e')][_0x5b109a('0x16')]),_0x529054[_0x5b109a('0x8')]=qs[_0x5b109a('0x8')](_0x37ee87[_0x5b109a('0x1e')][_0x5b109a('0x8')]));_0x529054[_0x5b109a('0x26')]=qs['sort'](_0x37ee87['query']['sort']),_0x529054[_0x5b109a('0x22')]=qs[_0x5b109a('0x5')](_[_0x5b109a('0x2b')](_0x37ee87[_0x5b109a('0x1e')],_0x2c316b['filters']),_0x345ff3);_0x37ee87[_0x5b109a('0x1e')][_0x5b109a('0x14')]&&(_0x529054[_0x5b109a('0x22')]=_[_0x5b109a('0x3')](_0x529054['where'],{[Op['or']]:_[_0x5b109a('0x29')](_0x345ff3,function(_0x194b26){const _0x478560=_0x5b109a;if(_0x194b26[_0x478560('0x9')]!==_0x478560('0x2c')){const _0x519c12={};return _0x519c12[_0x194b26[_0x478560('0x28')]]={[Op[_0x478560('0x19')]]:'%'+_0x37ee87[_0x478560('0x1e')][_0x478560('0x14')]+'%'},_0x519c12;}})}));_0x529054=_[_0x5b109a('0x3')]({},_0x529054,_0x37ee87[_0x5b109a('0x1b')]);const _0x26ea08={'where':_0x529054[_0x5b109a('0x22')]};return db[_0x5b109a('0x17')][_0x5b109a('0x2e')](_0x26ea08)['then'](function(_0x1747fb){const _0x10f2a1=_0x5b109a;return _0x54be0d[_0x10f2a1('0x2e')]=_0x1747fb,_0x37ee87['query'][_0x10f2a1('0xf')]&&(_0x529054[_0x10f2a1('0x11')]=[{'all':!![]}]),db[_0x10f2a1('0x17')][_0x10f2a1('0x10')](_0x529054);})[_0x5b109a('0x1a')](function(_0x9f70e5){const _0x46dd40=_0x5b109a;return _0x54be0d[_0x46dd40('0x1')]=_0x9f70e5,_0x54be0d;})[_0x5b109a('0x1a')](respondWithFilteredResult(_0x42f5d8,_0x529054))[_0x5b109a('0xb')](handleError(_0x42f5d8,null));},exports[_0xa572fa('0x20')]=function(_0x54ead8,_0x5de4d5){const _0x2aa39b=_0xa572fa;let _0x16abf2={'raw':!![],'where':{'id':_0x54ead8[_0x2aa39b('0x18')]['id']}};const _0x28ac78={};return _0x28ac78[_0x2aa39b('0x23')]=_[_0x2aa39b('0x15')](db[_0x2aa39b('0x17')][_0x2aa39b('0x2d')]),_0x28ac78[_0x2aa39b('0x1e')]=_[_0x2aa39b('0x15')](_0x54ead8[_0x2aa39b('0x1e')]),_0x28ac78[_0x2aa39b('0x5')]=_[_0x2aa39b('0x1c')](_0x28ac78[_0x2aa39b('0x23')],_0x28ac78['query']),_0x16abf2[_0x2aa39b('0x24')]=_[_0x2aa39b('0x1c')](_0x28ac78[_0x2aa39b('0x23')],qs[_0x2aa39b('0x12')](_0x54ead8[_0x2aa39b('0x1e')]['fields'])),_0x16abf2[_0x2aa39b('0x24')]=_0x16abf2['attributes'][_0x2aa39b('0xd')]?_0x16abf2[_0x2aa39b('0x24')]:_0x28ac78[_0x2aa39b('0x23')],_0x54ead8[_0x2aa39b('0x1e')]['includeAll']&&(_0x16abf2[_0x2aa39b('0x11')]=[{'all':!![]}]),_0x16abf2=_[_0x2aa39b('0x3')]({},_0x16abf2,_0x54ead8[_0x2aa39b('0x1b')]),db[_0x2aa39b('0x17')][_0x2aa39b('0x21')](_0x16abf2)[_0x2aa39b('0x1a')](handleEntityNotFound(_0x5de4d5,null))[_0x2aa39b('0x1a')](respondWithResult(_0x5de4d5,null))[_0x2aa39b('0xb')](handleError(_0x5de4d5,null));},exports[_0xa572fa('0x25')]=function(_0x329c69,_0x56a7a2){const _0x134502=_0xa572fa;return db[_0x134502('0x17')][_0x134502('0x25')](_0x329c69['body'],{})[_0x134502('0x1a')](respondWithResult(_0x56a7a2,0xc9))[_0x134502('0xb')](handleError(_0x56a7a2,null));},exports[_0xa572fa('0xc')]=function(_0x19c232,_0x4b0320){const _0xec0e82=_0xa572fa;return _0x19c232[_0xec0e82('0x27')]['id']&&delete _0x19c232[_0xec0e82('0x27')]['id'],db[_0xec0e82('0x17')][_0xec0e82('0x21')]({'where':{'id':_0x19c232[_0xec0e82('0x18')]['id']}})[_0xec0e82('0x1a')](handleEntityNotFound(_0x4b0320,null))[_0xec0e82('0x1a')](saveUpdates(_0x19c232['body'],null))['then'](respondWithResult(_0x4b0320,null))[_0xec0e82('0xb')](handleError(_0x4b0320,null));},exports['destroy']=function(_0x32f4eb,_0x1182a7){const _0x505a73=_0xa572fa;return db[_0x505a73('0x17')][_0x505a73('0x21')]({'where':{'id':_0x32f4eb[_0x505a73('0x18')]['id']}})[_0x505a73('0x1a')](handleEntityNotFound(_0x1182a7,null))['then'](removeEntity(_0x1182a7,null))[_0x505a73('0xb')](handleError(_0x1182a7,null));}; \ No newline at end of file +const a549_0x1317=['nolimit','filter','length','model','index','params','map','lodash','update','api','type','include','show','like','../../mysqldb','offset','fields','query','catch','then','sort','limit','send','findOne','attributes','create','error','where','filters','rawAttributes','key','merge','sendStatus','order','status','set','intersection','pick','body','includeAll','options','count','name','keys','sequelize','SmsApplication','../../components/parsers/qs','findAll','Content-Range','destroy'];(function(_0x5da52f,_0x131776){const _0x28c34e=function(_0x5232e8){while(--_0x5232e8){_0x5da52f['push'](_0x5da52f['shift']());}};_0x28c34e(++_0x131776);}(a549_0x1317,0x192));const a549_0x28c3=function(_0x5da52f,_0x131776){_0x5da52f=_0x5da52f-0x0;let _0x28c34e=a549_0x1317[_0x5da52f];return _0x28c34e;};const _0x34a3a3=a549_0x28c3;'use strict';const _=require(_0x34a3a3('0x5')),qs=require(_0x34a3a3('0x2c')),logger=require('../../config/logger')(_0x34a3a3('0x7')),db=require(_0x34a3a3('0xc'))['db'],{Op}=require(_0x34a3a3('0x2a'));function respondWithResult(_0x5232e8,_0x1cc0b1){return _0x1cc0b1=_0x1cc0b1||0xc8,function(_0x5eeb1f){if(_0x5eeb1f)return _0x5232e8['status'](_0x1cc0b1)['json'](_0x5eeb1f);};}function respondWithFilteredResult(_0x266fb6,_0x4f762d){return function(_0x50bd0c){const _0x127f5a=a549_0x28c3;if(_0x50bd0c){const _0xc6eb40=_0x50bd0c['count'],_0xd4e243=_0x4f762d[_0x127f5a('0xd')];let _0x39d2a8=_0x4f762d[_0x127f5a('0xd')]+_0x4f762d[_0x127f5a('0x13')],_0x5adc85;return _0x39d2a8>=_0xc6eb40?(_0x39d2a8=_0xc6eb40,_0x5adc85=0xc8):_0x5adc85=0xce,_0x266fb6[_0x127f5a('0x20')](_0x5adc85),_0x266fb6[_0x127f5a('0x21')](_0x127f5a('0x2e'),_0xd4e243+'-'+_0x39d2a8+'/'+_0xc6eb40)['json'](_0x50bd0c);}return null;};}function saveUpdates(_0x5f0ed6){return function(_0x3896a9){if(_0x3896a9)return _0x3896a9['update'](_0x5f0ed6)['then'](function(_0x24385a){return _0x24385a;});return null;};}function removeEntity(_0x2dd099){return function(_0x2eb1b1){if(_0x2eb1b1)return _0x2eb1b1['destroy']()['then'](function(){const _0x345f1d=a549_0x28c3;_0x2dd099[_0x345f1d('0x20')](0xcc)['end']();});};}function handleEntityNotFound(_0x239400){return function(_0xbceeee){const _0x4c329b=a549_0x28c3;return!_0xbceeee&&_0x239400[_0x4c329b('0x1e')](0x194),_0xbceeee;};}function handleError(_0x1305c2,_0xa03a43){return _0xa03a43=_0xa03a43||0x1f4,function(_0x1db640){const _0x10609b=a549_0x28c3;logger[_0x10609b('0x18')](_0x1db640['stack']),_0x1db640[_0x10609b('0x28')]&&delete _0x1db640[_0x10609b('0x28')],_0x1305c2['status'](_0xa03a43)[_0x10609b('0x14')](_0x1db640);};}exports[_0x34a3a3('0x2')]=function(_0x41631e,_0x245e66){const _0x58d304=_0x34a3a3;let _0x56f183={};const _0x46792d={},_0x1917e5={'count':0x0,'rows':[]},_0x3dbac6=_['map'](db[_0x58d304('0x2b')][_0x58d304('0x1b')],function(_0x1c6e67){const _0xc08d0a=_0x58d304;return{'name':_0x1c6e67['fieldName'],'type':_0x1c6e67[_0xc08d0a('0x8')][_0xc08d0a('0x1c')]};});_0x46792d[_0x58d304('0x1')]=_[_0x58d304('0x4')](_0x3dbac6,_0x58d304('0x28')),_0x46792d['query']=_['keys'](_0x41631e[_0x58d304('0xf')]),_0x46792d[_0x58d304('0x1a')]=_[_0x58d304('0x22')](_0x46792d[_0x58d304('0x1')],_0x46792d[_0x58d304('0xf')]),_0x56f183[_0x58d304('0x16')]=_['intersection'](_0x46792d[_0x58d304('0x1')],qs[_0x58d304('0xe')](_0x41631e[_0x58d304('0xf')][_0x58d304('0xe')])),_0x56f183[_0x58d304('0x16')]=_0x56f183['attributes'][_0x58d304('0x0')]?_0x56f183[_0x58d304('0x16')]:_0x46792d[_0x58d304('0x1')];typeof _0x41631e[_0x58d304('0xf')][_0x58d304('0x30')]==='undefined'&&(_0x56f183[_0x58d304('0x13')]=qs[_0x58d304('0x13')](_0x41631e[_0x58d304('0xf')]['limit']),_0x56f183['offset']=qs[_0x58d304('0xd')](_0x41631e[_0x58d304('0xf')][_0x58d304('0xd')]));_0x56f183[_0x58d304('0x1f')]=qs[_0x58d304('0x12')](_0x41631e[_0x58d304('0xf')][_0x58d304('0x12')]),_0x56f183[_0x58d304('0x19')]=qs['filters'](_[_0x58d304('0x23')](_0x41631e['query'],_0x46792d[_0x58d304('0x1a')]),_0x3dbac6);_0x41631e[_0x58d304('0xf')][_0x58d304('0x31')]&&(_0x56f183['where']=_[_0x58d304('0x1d')](_0x56f183[_0x58d304('0x19')],{[Op['or']]:_[_0x58d304('0x4')](_0x3dbac6,function(_0xc3e542){const _0x394dc7=_0x58d304;if(_0xc3e542[_0x394dc7('0x8')]!=='VIRTUAL'){const _0x6401b1={};return _0x6401b1[_0xc3e542['name']]={[Op[_0x394dc7('0xb')]]:'%'+_0x41631e[_0x394dc7('0xf')][_0x394dc7('0x31')]+'%'},_0x6401b1;}})}));_0x56f183=_[_0x58d304('0x1d')]({},_0x56f183,_0x41631e[_0x58d304('0x26')]);const _0x716729={'where':_0x56f183[_0x58d304('0x19')]};return db[_0x58d304('0x2b')][_0x58d304('0x27')](_0x716729)[_0x58d304('0x11')](function(_0x537a29){const _0xc6a516=_0x58d304;return _0x1917e5[_0xc6a516('0x27')]=_0x537a29,_0x41631e[_0xc6a516('0xf')]['includeAll']&&(_0x56f183[_0xc6a516('0x9')]=[{'all':!![]}]),db[_0xc6a516('0x2b')][_0xc6a516('0x2d')](_0x56f183);})['then'](function(_0x3d6901){return _0x1917e5['rows']=_0x3d6901,_0x1917e5;})[_0x58d304('0x11')](respondWithFilteredResult(_0x245e66,_0x56f183))[_0x58d304('0x10')](handleError(_0x245e66,null));},exports[_0x34a3a3('0xa')]=function(_0x566853,_0x4e0e3d){const _0x54aec1=_0x34a3a3;let _0x3c63ec={'raw':!![],'where':{'id':_0x566853[_0x54aec1('0x3')]['id']}};const _0x4758af={};return _0x4758af['model']=_[_0x54aec1('0x29')](db[_0x54aec1('0x2b')][_0x54aec1('0x1b')]),_0x4758af[_0x54aec1('0xf')]=_[_0x54aec1('0x29')](_0x566853[_0x54aec1('0xf')]),_0x4758af['filters']=_[_0x54aec1('0x22')](_0x4758af[_0x54aec1('0x1')],_0x4758af[_0x54aec1('0xf')]),_0x3c63ec[_0x54aec1('0x16')]=_[_0x54aec1('0x22')](_0x4758af[_0x54aec1('0x1')],qs['fields'](_0x566853[_0x54aec1('0xf')][_0x54aec1('0xe')])),_0x3c63ec[_0x54aec1('0x16')]=_0x3c63ec[_0x54aec1('0x16')][_0x54aec1('0x0')]?_0x3c63ec['attributes']:_0x4758af[_0x54aec1('0x1')],_0x566853['query'][_0x54aec1('0x25')]&&(_0x3c63ec[_0x54aec1('0x9')]=[{'all':!![]}]),_0x3c63ec=_[_0x54aec1('0x1d')]({},_0x3c63ec,_0x566853[_0x54aec1('0x26')]),db[_0x54aec1('0x2b')]['findOne'](_0x3c63ec)[_0x54aec1('0x11')](handleEntityNotFound(_0x4e0e3d,null))['then'](respondWithResult(_0x4e0e3d,null))['catch'](handleError(_0x4e0e3d,null));},exports[_0x34a3a3('0x17')]=function(_0x409d5c,_0x149274){const _0x4ea073=_0x34a3a3;return db[_0x4ea073('0x2b')]['create'](_0x409d5c[_0x4ea073('0x24')],{})[_0x4ea073('0x11')](respondWithResult(_0x149274,0xc9))[_0x4ea073('0x10')](handleError(_0x149274,null));},exports[_0x34a3a3('0x6')]=function(_0x5c8589,_0x1a6d9e){const _0x4bd832=_0x34a3a3;return _0x5c8589[_0x4bd832('0x24')]['id']&&delete _0x5c8589[_0x4bd832('0x24')]['id'],db[_0x4bd832('0x2b')]['findOne']({'where':{'id':_0x5c8589['params']['id']}})[_0x4bd832('0x11')](handleEntityNotFound(_0x1a6d9e,null))[_0x4bd832('0x11')](saveUpdates(_0x5c8589[_0x4bd832('0x24')],null))['then'](respondWithResult(_0x1a6d9e,null))[_0x4bd832('0x10')](handleError(_0x1a6d9e,null));},exports[_0x34a3a3('0x2f')]=function(_0x19eaeb,_0x466ae6){const _0x30a10e=_0x34a3a3;return db[_0x30a10e('0x2b')][_0x30a10e('0x15')]({'where':{'id':_0x19eaeb['params']['id']}})['then'](handleEntityNotFound(_0x466ae6,null))[_0x30a10e('0x11')](removeEntity(_0x466ae6,null))[_0x30a10e('0x10')](handleError(_0x466ae6,null));}; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.model.js b/server/api/smsApplication/smsApplication.model.js index ececf5b..bd47cf3 100644 --- a/server/api/smsApplication/smsApplication.model.js +++ b/server/api/smsApplication/smsApplication.model.js @@ -1 +1 @@ -const a550_0x2760=['utf8mb4','utf8mb4_unicode_ci','SmsApplication','sms_applications','define'];(function(_0x333fdc,_0x276024){const _0x4de7e4=function(_0xf6f7d5){while(--_0xf6f7d5){_0x333fdc['push'](_0x333fdc['shift']());}};_0x4de7e4(++_0x276024);}(a550_0x2760,0xd0));const a550_0x4de7=function(_0x333fdc,_0x276024){_0x333fdc=_0x333fdc-0x0;let _0x4de7e4=a550_0x2760[_0x333fdc];return _0x4de7e4;};'use strict';const attributes=require('./smsApplication.attributes');module['exports']=function(_0xf6f7d5){const _0x376477=a550_0x4de7,_0x3747c8=_0xf6f7d5[_0x376477('0x1')](_0x376477('0x4'),attributes,{'tableName':_0x376477('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x376477('0x2'),'collate':_0x376477('0x3')});return _0x3747c8;}; \ No newline at end of file +const a550_0x51fd=['SmsApplication','sms_applications','exports','./smsApplication.attributes','utf8mb4','define'];(function(_0x31faa9,_0x51fd3f){const _0x2a5e3a=function(_0x2a074e){while(--_0x2a074e){_0x31faa9['push'](_0x31faa9['shift']());}};_0x2a5e3a(++_0x51fd3f);}(a550_0x51fd,0x6b));const a550_0x2a5e=function(_0x31faa9,_0x51fd3f){_0x31faa9=_0x31faa9-0x0;let _0x2a5e3a=a550_0x51fd[_0x31faa9];return _0x2a5e3a;};const _0x20205d=a550_0x2a5e;'use strict';const attributes=require(_0x20205d('0x4'));module[_0x20205d('0x3')]=function(_0x2a074e){const _0x579745=_0x20205d,_0x1a9675=_0x2a074e[_0x579745('0x0')](_0x579745('0x1'),attributes,{'tableName':_0x579745('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x579745('0x5'),'collate':'utf8mb4_unicode_ci'});return _0x1a9675;}; \ No newline at end of file diff --git a/server/api/smsInteraction/index.js b/server/api/smsInteraction/index.js index 7d60546..c2adb24 100644 --- a/server/api/smsInteraction/index.js +++ b/server/api/smsInteraction/index.js @@ -1 +1 @@ -const a551_0xe8a1=['smsinteraction:update','delete','show','index','/:id/messages','smsinteraction:destroy','../../components/interaction/service','post','addMessage','sms','get','download','put','/:id/tags','update','exports','removeTags','../../components/auth/service','smsinteraction:addtags','/describe','addTags','getMessages','tracked','./smsInteraction.controller','/:id','isAuthenticated'];(function(_0x46d45e,_0xe8a1ca){const _0x3469f0=function(_0x56a235){while(--_0x56a235){_0x46d45e['push'](_0x46d45e['shift']());}};_0x3469f0(++_0xe8a1ca);}(a551_0xe8a1,0x99));const a551_0x3469=function(_0x46d45e,_0xe8a1ca){_0x46d45e=_0x46d45e-0x0;let _0x3469f0=a551_0xe8a1[_0x46d45e];return _0x3469f0;};const _0x350cf8=a551_0x3469;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x350cf8('0x14')),interaction=require(_0x350cf8('0x9')),controller=require(_0x350cf8('0x0'));router[_0x350cf8('0xd')]('/',auth[_0x350cf8('0x2')](),controller[_0x350cf8('0x6')]),router[_0x350cf8('0xd')](_0x350cf8('0x16'),auth['isAuthenticated'](),controller['describe']),router[_0x350cf8('0xd')](_0x350cf8('0x1'),auth[_0x350cf8('0x2')](),controller[_0x350cf8('0x5')]),router[_0x350cf8('0xd')](_0x350cf8('0x7'),auth[_0x350cf8('0x2')](),controller[_0x350cf8('0x18')]),router['get']('/:id/download',auth[_0x350cf8('0x2')](),controller[_0x350cf8('0xe')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x350cf8('0xa')](_0x350cf8('0x7'),auth[_0x350cf8('0x2')](),controller[_0x350cf8('0xb')]),router['post'](_0x350cf8('0x10'),auth[_0x350cf8('0x2')](),interaction[_0x350cf8('0x19')]('sms',_0x350cf8('0x15')),controller[_0x350cf8('0x17')]),router[_0x350cf8('0xf')](_0x350cf8('0x1'),auth['isAuthenticated'](),interaction[_0x350cf8('0x19')](_0x350cf8('0xc'),_0x350cf8('0x3')),controller[_0x350cf8('0x11')]),router[_0x350cf8('0x4')]('/:id',auth[_0x350cf8('0x2')](),interaction['tracked'](_0x350cf8('0xc'),_0x350cf8('0x8')),controller['destroy']),router[_0x350cf8('0x4')](_0x350cf8('0x10'),auth['isAuthenticated'](),controller[_0x350cf8('0x13')]),module[_0x350cf8('0x12')]=router; \ No newline at end of file +const a551_0x9a09=['./smsInteraction.controller','/:id','sms','update','get','tracked','smsinteraction:destroy','Router','delete','describe','post','download','removeTags','/:id/tags','/:id/download','/:id/messages','../../components/interaction/service','index','isAuthenticated','../../components/auth/service','create','show','addTags','smsinteraction:update'];(function(_0x404013,_0x9a0918){const _0x3e66fb=function(_0x49dbff){while(--_0x49dbff){_0x404013['push'](_0x404013['shift']());}};_0x3e66fb(++_0x9a0918);}(a551_0x9a09,0xe2));const a551_0x3e66=function(_0x404013,_0x9a0918){_0x404013=_0x404013-0x0;let _0x3e66fb=a551_0x9a09[_0x404013];return _0x3e66fb;};const _0x3e6a9=a551_0x3e66;'use strict';const express=require('express'),router=express[_0x3e6a9('0x15')](),auth=require(_0x3e6a9('0x9')),interaction=require(_0x3e6a9('0x6')),controller=require(_0x3e6a9('0xe'));router[_0x3e6a9('0x12')]('/',auth[_0x3e6a9('0x8')](),controller[_0x3e6a9('0x7')]),router['get']('/describe',auth['isAuthenticated'](),controller[_0x3e6a9('0x17')]),router['get'](_0x3e6a9('0xf'),auth['isAuthenticated'](),controller[_0x3e6a9('0xb')]),router['get']('/:id/messages',auth['isAuthenticated'](),controller['getMessages']),router['get'](_0x3e6a9('0x4'),auth['isAuthenticated'](),controller[_0x3e6a9('0x1')]),router[_0x3e6a9('0x0')]('/',auth['isAuthenticated'](),controller[_0x3e6a9('0xa')]),router['post'](_0x3e6a9('0x5'),auth[_0x3e6a9('0x8')](),controller['addMessage']),router['post'](_0x3e6a9('0x3'),auth['isAuthenticated'](),interaction[_0x3e6a9('0x13')]('sms','smsinteraction:addtags'),controller[_0x3e6a9('0xc')]),router['put']('/:id',auth['isAuthenticated'](),interaction[_0x3e6a9('0x13')](_0x3e6a9('0x10'),_0x3e6a9('0xd')),controller[_0x3e6a9('0x11')]),router[_0x3e6a9('0x16')]('/:id',auth[_0x3e6a9('0x8')](),interaction[_0x3e6a9('0x13')](_0x3e6a9('0x10'),_0x3e6a9('0x14')),controller['destroy']),router[_0x3e6a9('0x16')](_0x3e6a9('0x3'),auth[_0x3e6a9('0x8')](),controller[_0x3e6a9('0x2')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.attributes.js b/server/api/smsInteraction/smsInteraction.attributes.js index 9b80c45..e1ccc1a 100644 --- a/server/api/smsInteraction/smsInteraction.attributes.js +++ b/server/api/smsInteraction/smsInteraction.attributes.js @@ -1 +1 @@ -const a552_0x4708=['exports','ENUM','STRING','DATE','out','sequelize','BOOLEAN'];(function(_0x430aaa,_0x470842){const _0xf08cc8=function(_0x1d4344){while(--_0x1d4344){_0x430aaa['push'](_0x430aaa['shift']());}};_0xf08cc8(++_0x470842);}(a552_0x4708,0xa1));const a552_0xf08c=function(_0x430aaa,_0x470842){_0x430aaa=_0x430aaa-0x0;let _0xf08cc8=a552_0x4708[_0x430aaa];return _0xf08cc8;};const _0x1b3894=a552_0xf08c;'use strict';const Sequelize=require(_0x1b3894('0x5'));module[_0x1b3894('0x0')]={'closed':{'type':Sequelize[_0x1b3894('0x6')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x1b3894('0x3')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x1b3894('0x2')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x1b3894('0x2')]},'phone':{'type':Sequelize[_0x1b3894('0x2')]},'read1stAt':{'type':Sequelize[_0x1b3894('0x3')]},'firstMsgDirection':{'type':Sequelize[_0x1b3894('0x1')]('in',_0x1b3894('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x1b3894('0x3')]},'lastMsgDirection':{'type':Sequelize[_0x1b3894('0x1')]('in',_0x1b3894('0x4')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a552_0x4a96=['sequelize','exports','out','ENUM','STRING','DATE','BOOLEAN'];(function(_0x5209a1,_0x4a96a8){const _0xd3caa3=function(_0x1de017){while(--_0x1de017){_0x5209a1['push'](_0x5209a1['shift']());}};_0xd3caa3(++_0x4a96a8);}(a552_0x4a96,0xc2));const a552_0xd3ca=function(_0x5209a1,_0x4a96a8){_0x5209a1=_0x5209a1-0x0;let _0xd3caa3=a552_0x4a96[_0x5209a1];return _0xd3caa3;};const _0x2ad058=a552_0xd3ca;'use strict';const Sequelize=require(_0x2ad058('0x2'));module[_0x2ad058('0x3')]={'closed':{'type':Sequelize[_0x2ad058('0x1')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x2ad058('0x0')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x2ad058('0x6')]},'note':{'type':Sequelize[_0x2ad058('0x6')]},'phone':{'type':Sequelize[_0x2ad058('0x6')]},'read1stAt':{'type':Sequelize[_0x2ad058('0x0')]},'firstMsgDirection':{'type':Sequelize[_0x2ad058('0x5')]('in',_0x2ad058('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x2ad058('0x0')]},'lastMsgDirection':{'type':Sequelize[_0x2ad058('0x5')]('in','out'),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.controller.js b/server/api/smsInteraction/smsInteraction.controller.js index 61fa14b..e575645 100644 --- a/server/api/smsInteraction/smsInteraction.controller.js +++ b/server/api/smsInteraction/smsInteraction.controller.js @@ -1 +1 @@ -const a553_0x27ee=['clone','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','map','Tags','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','i.id','isEmpty','sqlOperator','left_join','util','SmsMessage','c.firstName','it.SmsInteractionId\x20=\x20i.id','join','User','Contact.email','field','mkdirSync','setTags','files','squel','user_has_sms_interactions','%s\x20#%d','unlinkSync','register','$lte','end','type','Contact.lastName','includeAll','params','options','40px','transcript-%d-%s.zip','keyBy','model','SmsInteraction','Owner','conditions','toFile','downloadInteraction.html','all','Owner.internal','nolimit','ejs','findAll','having','`\x20>\x200','merge','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','lodash','replace','expr','lastName','attributes','fieldName','fields','direction','tmp','show','filter','sort','t.id\x20=\x20it.TagId','i.SmsAccountId\x20IS\x20NOT\x20NULL','closed','ContactId','Users','smsInteractionTags:save','transcript-','then','intersection','describe','u.id\x20=\x20ui.UserId','Tag','moment','u.fullname','views','getMessages','query','TagIds','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','set','length','N.A.','\x20=\x20?','push','union','QueryTypes','tag','c.phone','some','rawAttributes','Contact.phone','ui.SmsInteractionId','../../components/parsers/advancedSearch','gte','like','`unreadMessages`\x20>\x200','GROUP_CONCAT(DISTINCT\x20t.id)','removeTags','users','search','SmsInteractionId','user','offset','update','format','status','getSmsAccounts','find','keys','disposition','UserId','buildExpression','text','name','undefined','get','i.*','read','../../config/environment','c.fax','i.phone\x20LIKE\x20?','html-pdf','../../components/parsers/qs','server','Sequelize','me.SmsInteractionId\x20=\x20i.id','Sms','compact','isNumeric','split','$substring','order','firstName','10px','index','body','findOne','destroy','a.mandatoryDisposition','parse','operator','out','value','o.id\x20=\x20i.UserId','SmsAccountId','Account','ids','include','Contact','getFullTextValue','i.SmsAccountId\x20IN\x20?','omit','toString','Messages','t.id\x20IN\x20?','$gte','createdAt','parseSearch','System','catch','unreadMessages','download','forEach','sendStatus','tools_tags','where','Content-Range','color','stack','Contact.fax','o.internal','pick','count','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
Interaction\x20Transcript
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','rows','\x20IS\x20NULL','30px','root','u.id','filters','rimraf','fullname','start','journey','groupBy','./smsInteraction.socket','Account.mandatoryDisposition','secret','c.lastName','error','YYYY-MM-DD\x20HH:mm:ss','i.SmsAccountId\x20IS\x20NULL','../../mysqldb','select','create','zip-dir','.pdf','SmsAccount','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','i.id\x20LIKE\x20?','from','emit','cm_contacts','concat','CmContact','../../rediscache','limit','sequelize','err','sms_interaction_has_tags','renderFile','null'];(function(_0x4421a9,_0x27eec9){const _0x5de2bf=function(_0x846bb6){while(--_0x846bb6){_0x4421a9['push'](_0x4421a9['shift']());}};_0x5de2bf(++_0x27eec9);}(a553_0x27ee,0x9c));const a553_0x5de2=function(_0x4421a9,_0x27eec9){_0x4421a9=_0x4421a9-0x0;let _0x5de2bf=a553_0x27ee[_0x4421a9];return _0x5de2bf;};const _0x4b9d64=a553_0x5de2;'use strict';const pdf=require(_0x4b9d64('0xb5')),rimraf=require(_0x4b9d64('0x1a')),zipdir=require(_0x4b9d64('0x29')),moment=require(_0x4b9d64('0x84')),util=require(_0x4b9d64('0x43')),path=require('path'),ejs=require(_0x4b9d64('0x66')),fs=require('fs'),_=require(_0x4b9d64('0x6c')),squel=require(_0x4b9d64('0x4e')),{getSocket}=require(_0x4b9d64('0x33')),socket=getSocket(),qs=require(_0x4b9d64('0xb6')),as=require(_0x4b9d64('0x98')),logger=require('../../config/logger')('api'),config=require(_0x4b9d64('0xb2')),db=require(_0x4b9d64('0x26'))['db'],{Op}=require('sequelize');require(_0x4b9d64('0x1f'))[_0x4b9d64('0x52')](socket);function respondWithStatusCode(_0x846bb6,_0x4ba38a){return _0x4ba38a=_0x4ba38a||0xcc,function(_0x4b0eb3){const _0x2855c9=a553_0x5de2;if(_0x4b0eb3)return _0x846bb6[_0x2855c9('0x9')](_0x4ba38a);return _0x846bb6[_0x2855c9('0xa5')](_0x4ba38a)['end']();};}function respondWithResult(_0x1e44ad,_0x355ce6){return _0x355ce6=_0x355ce6||0xc8,function(_0x134e5c){const _0x287f5f=a553_0x5de2;if(_0x134e5c)return _0x1e44ad[_0x287f5f('0xa5')](_0x355ce6)['json'](_0x134e5c);};}function respondWithFilteredResult(_0x517733,_0x2a7a52){return function(_0x359786){const _0x5ab312=a553_0x5de2;if(_0x359786){const _0x497c2b=_0x359786[_0x5ab312('0x12')],_0x5e8dcd=_0x2a7a52['offset'];let _0x534340=_0x2a7a52[_0x5ab312('0xa2')]+_0x2a7a52[_0x5ab312('0x34')],_0x438ace;return _0x534340>=_0x497c2b?(_0x534340=_0x497c2b,_0x438ace=0xc8):_0x438ace=0xce,_0x517733[_0x5ab312('0xa5')](_0x438ace),_0x517733[_0x5ab312('0x8b')](_0x5ab312('0xc'),_0x5e8dcd+'-'+_0x534340+'/'+_0x497c2b)['json'](_0x359786);}return null;};}function saveUpdates(_0x4061bd){return function(_0x6b9b2b){if(_0x6b9b2b)return _0x6b9b2b['update'](_0x4061bd)['then'](function(_0x348f49){return _0x348f49;});return null;};}function removeEntity(_0x1b5e30){return function(_0x991e39){const _0x277512=a553_0x5de2;if(_0x991e39)return _0x991e39[_0x277512('0xc5')]()['then'](function(){const _0x503d9b=_0x277512;_0x1b5e30[_0x503d9b('0xa5')](0xcc)[_0x503d9b('0x54')]();});};}function handleEntityNotFound(_0x1adbbe){return function(_0x2baa1c){const _0x4babd5=a553_0x5de2;return!_0x2baa1c&&_0x1adbbe[_0x4babd5('0x9')](0x194),_0x2baa1c;};}function handleError(_0x235c5f,_0x24a454){return _0x24a454=_0x24a454||0x1f4,function(_0x1c916e){const _0xf180c1=a553_0x5de2;logger[_0xf180c1('0x23')](_0x1c916e[_0xf180c1('0xe')]),_0x1c916e['name']&&delete _0x1c916e['name'],_0x235c5f['status'](_0x24a454)['send'](_0x1c916e);};}function getInteractionUsers(_0x5a3d0e,_0x558176){return new Promise(function(_0x195cde,_0x422ab8){const _0x41dfcd=a553_0x5de2;try{_0x558176[_0x5a3d0e['id']]&&(_0x5a3d0e[_0x41dfcd('0x7c')]=_[_0x41dfcd('0x3c')](_0x558176[_0x5a3d0e['id']],function(_0x39740d){const _0x341ba8=_0x41dfcd;return{'id':_0x39740d['id'],'fullname':_0x39740d[_0x341ba8('0x1b')]};}));}catch(_0x535103){_0x422ab8(_0x535103);}_0x195cde(_0x5a3d0e);});}function getInteractionTags(_0x1784b7,_0x11edc7){return new Promise(function(_0x193c68,_0x1399e1){const _0x346a78=a553_0x5de2;try{_0x1784b7[_0x346a78('0x89')]&&(_0x1784b7[_0x346a78('0x3d')]=[],_0x1784b7[_0x346a78('0x89')]['split'](',')[_0x346a78('0x8')](function(_0x4f63be){const _0x31ee36=_0x346a78;_0x1784b7[_0x31ee36('0x3d')]['push'](_0x11edc7[_0x4f63be]);})),delete _0x1784b7['TagIds'];}catch(_0x5dc0a4){_0x1399e1(_0x5dc0a4);}_0x193c68(_0x1784b7);});}function updateSmsInteraction(_0x386a85,_0x5f11a6,_0x35509c){return new Promise(function(_0x50f823,_0x5dc80f){const _0x3fdfae=a553_0x5de2;return getInteractionUsers(_0x386a85,_0x35509c)[_0x3fdfae('0x7f')](function(_0x16c737){return getInteractionTags(_0x16c737,_0x5f11a6);})[_0x3fdfae('0x7f')](function(_0x369819){_0x50f823(_0x369819);})[_0x3fdfae('0x5')](function(_0x3d5e62){_0x5dc80f(_0x3d5e62);});});}exports[_0x4b9d64('0xc2')]=function(_0x37084f,_0x40646f){const _0x31aeb0=_0x4b9d64,_0x21917f={},_0xb27b83={},_0x429cca={'count':0x0,'rows':[]},_0x540741=_[_0x31aeb0('0x3c')](db[_0x31aeb0('0x5e')][_0x31aeb0('0x95')],function(_0x45cbd6){const _0x560fdf=_0x31aeb0;return{'name':_0x45cbd6[_0x560fdf('0x71')],'type':_0x45cbd6[_0x560fdf('0x55')]['key']};});_0xb27b83[_0x31aeb0('0x5d')]=_['map'](_0x540741,'name'),_0xb27b83[_0x31aeb0('0x88')]=_[_0x31aeb0('0xa8')](_0x37084f[_0x31aeb0('0x88')]),_0xb27b83[_0x31aeb0('0x19')]=_[_0x31aeb0('0x80')](_0xb27b83['model'],_0xb27b83['query']),_0x21917f['attributes']=_[_0x31aeb0('0x80')](_0xb27b83['model'],qs[_0x31aeb0('0x72')](_0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x72')])),_0x21917f[_0x31aeb0('0x70')]=_0x21917f['attributes'][_0x31aeb0('0x8c')]?_0x21917f[_0x31aeb0('0x70')]:_0xb27b83['model'];typeof _0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x65')]===_0x31aeb0('0xae')&&(_0x21917f[_0x31aeb0('0x34')]=qs['limit'](_0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x34')]),_0x21917f[_0x31aeb0('0xa2')]=qs[_0x31aeb0('0xa2')](_0x37084f[_0x31aeb0('0x88')]['offset']));_0x21917f[_0x31aeb0('0xbf')]=qs[_0x31aeb0('0x77')](_0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x77')]),_0x21917f['where']=qs['filters'](_[_0x31aeb0('0x11')](_0x37084f[_0x31aeb0('0x88')],_0xb27b83[_0x31aeb0('0x19')]),_0x540741);let _0x49a983=[];const _0x41a6dd=squel[_0x31aeb0('0x27')]()[_0x31aeb0('0x4a')]('id')[_0x31aeb0('0x4a')](_0x31aeb0('0xad'))[_0x31aeb0('0x4a')](_0x31aeb0('0xd'))['from'](_0x31aeb0('0xa')),_0x3292cb=squel[_0x31aeb0('0x27')]()[_0x31aeb0('0x4a')](_0x31aeb0('0x18'))[_0x31aeb0('0x4a')](_0x31aeb0('0x85'))[_0x31aeb0('0x4a')](_0x31aeb0('0x97'))[_0x31aeb0('0x2e')](_0x31aeb0('0x4f'),'ui')[_0x31aeb0('0x42')](_0x31aeb0('0x9e'),'u',_0x31aeb0('0x82')),_0x43b2e8=squel[_0x31aeb0('0x27')]()[_0x31aeb0('0x2e')]('sms_interactions','i')[_0x31aeb0('0x42')](_0x31aeb0('0x30'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')['left_join'](_0x31aeb0('0x9e'),'o',_0x31aeb0('0xcb'))['left_join']('sms_accounts','a','a.id\x20=\x20i.SmsAccountId')[_0x31aeb0('0x42')]('sms_messages','me',_0x31aeb0('0xb9'))[_0x31aeb0('0x42')](_0x31aeb0('0x37'),'it',_0x31aeb0('0x46'))[_0x31aeb0('0x42')](_0x31aeb0('0xa'),'t',_0x31aeb0('0x78')),_0x43daa4=squel[_0x31aeb0('0x6e')]();let _0x11171d=[];const _0xbad7f1=squel[_0x31aeb0('0x6e')]();let _0x5389fa;if(_0x37084f['query']['search']){_0x5389fa=as[_0x31aeb0('0x3')](_0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x9f')]);const _0x3e3a09=_0x5389fa[_0x31aeb0('0x41')];for(let _0x6d5dd8=0x0;_0x6d5dd8<_0x5389fa[_0x31aeb0('0x60')]['length'];_0x6d5dd8++){const _0x349efd=_0x5389fa['conditions'][_0x6d5dd8],_0x293e98='i';let _0xd17f35,_0x4e51db=_[_0x31aeb0('0xa7')](_0x540741,[_0x31aeb0('0xad'),_0x349efd[_0x31aeb0('0x4a')]]);if(!_0x4e51db)switch(_0x349efd['field']){case'unreadMessages':_0x349efd['value']==0x1?_0x43b2e8['having']('`'+_0x349efd[_0x31aeb0('0x4a')]+'`\x20=\x200'):_0x43b2e8[_0x31aeb0('0x68')]('`'+_0x349efd['field']+_0x31aeb0('0x69'));break;case _0x31aeb0('0xd0'):if(_0x349efd[_0x31aeb0('0xc8')]===_0x31aeb0('0xbe')){if(_0x349efd[_0x31aeb0('0xca')]['split']('\x20')['length']>0x1)_0x43daa4[_0x3e3a09]('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x31aeb0('0xd1')](_0x349efd[_0x31aeb0('0xca')]),null);else{const _0x4d0798='%'+_0x349efd[_0x31aeb0('0xca')]+'%';_0x43daa4[_0x3e3a09](_0x31aeb0('0x3e'),_0x4d0798,_0x4d0798,_0x4d0798);}}else _0x4e51db=_[_0x31aeb0('0xa7')](_0x540741,[_0x31aeb0('0xad'),_0x31aeb0('0x7b')]),_0x349efd['field']=_0x31aeb0('0x7b'),_0xd17f35=as[_0x31aeb0('0xab')](_0x293e98,_0x4e51db[_0x31aeb0('0x55')],_0x349efd),_0x43daa4[_0x3e3a09](_0xd17f35[_0x31aeb0('0xac')],_0xd17f35[_0x31aeb0('0xca')][_0x31aeb0('0x1c')],_0xd17f35[_0x31aeb0('0xca')]['end']);break;case _0x31aeb0('0x83'):{const _0x28c96d=_0x349efd['value'][_0x31aeb0('0xbd')](',')[_0x31aeb0('0x3c')](function(_0xa56103){return Number(_0xa56103);});_0x28c96d[_0x31aeb0('0x8')](function(_0x38f9b5){const _0x27828e=_0x31aeb0;_0xbad7f1['or'](_0x27828e('0x8a'),'%,'+_0x38f9b5+',%');}),_0x11171d=_[_0x31aeb0('0x90')](_0x11171d,_0x28c96d);}break;case'User':_0x349efd[_0x31aeb0('0xc8')]===_0x31aeb0('0xbe')?_0x43daa4[_0x3e3a09](_0x31aeb0('0x2c'),'%'+_0x349efd['value']+'%',null):(_0x4e51db=_[_0x31aeb0('0xa7')](_0x540741,[_0x31aeb0('0xad'),'UserId']),_0x349efd[_0x31aeb0('0x4a')]=_0x31aeb0('0xaa'),_0xd17f35=as[_0x31aeb0('0xab')](_0x293e98,_0x4e51db[_0x31aeb0('0x55')],_0x349efd),_0x43daa4[_0x3e3a09](_0xd17f35['text'],_0xd17f35[_0x31aeb0('0xca')][_0x31aeb0('0x1c')],_0xd17f35['value'][_0x31aeb0('0x54')]));break;case _0x31aeb0('0xc3'):_0xd17f35=as[_0x31aeb0('0xab')]('me',null,_0x349efd),_0x43daa4[_0x3e3a09](_0xd17f35['text'],_0xd17f35['value'][_0x31aeb0('0x1c')],_0xd17f35['value'][_0x31aeb0('0x54')]);break;}else _0xd17f35=as[_0x31aeb0('0xab')](_0x293e98,_0x4e51db[_0x31aeb0('0x55')],_0x349efd),_0x43daa4[_0x3e3a09](_0xd17f35[_0x31aeb0('0xac')],_0xd17f35[_0x31aeb0('0xca')][_0x31aeb0('0x1c')],_0xd17f35[_0x31aeb0('0xca')][_0x31aeb0('0x54')]);}}else{const _0x2aa431=_(_0x37084f[_0x31aeb0('0x88')])[_0x31aeb0('0xa8')]()[_0x31aeb0('0x3c')](function(_0x10bd4a){const _0x4bfdde=_0x31aeb0;return _[_0x4bfdde('0x94')](_0x540741,['name',_0x10bd4a])?_0x10bd4a:undefined;})[_0x31aeb0('0xbb')]()[_0x31aeb0('0xca')]();!_[_0x31aeb0('0x40')](_0x2aa431)&&_0x2aa431['forEach'](function(_0x59ca2e){const _0x2ae3b4=_0x31aeb0;if(_0x59ca2e===_0x2ae3b4('0xcc'))_0x43b2e8[_0x2ae3b4('0xb')]('i.SmsAccountId\x20IN\x20?',[][_0x2ae3b4('0x31')](_0x37084f[_0x2ae3b4('0x88')][_0x59ca2e]));else{if(_0x59ca2e==='createdAt'){const _0x3722db=JSON[_0x2ae3b4('0xc7')](_0x37084f['query'][_0x59ca2e])[_0x2ae3b4('0x1')],_0x930c8b=JSON[_0x2ae3b4('0xc7')](_0x37084f[_0x2ae3b4('0x88')][_0x59ca2e])[_0x2ae3b4('0x53')];_0x43b2e8[_0x2ae3b4('0xb')](_0x2ae3b4('0x6b'),_0x3722db,_0x930c8b);}else _0x37084f[_0x2ae3b4('0x88')][_0x59ca2e]===_0x2ae3b4('0x39')?_0x43b2e8[_0x2ae3b4('0xb')]('i.'+_0x59ca2e+_0x2ae3b4('0x15')):_0x43b2e8[_0x2ae3b4('0xb')]('i.'+_0x59ca2e+_0x2ae3b4('0x8e'),_0x37084f['query'][_0x59ca2e]);}});_0x37084f['query'][_0x31aeb0('0xb1')]&&(_0x37084f['query']['read']==0x1?_0x43b2e8['having']('`unreadMessages`\x20=\x200'):_0x43b2e8[_0x31aeb0('0x68')](_0x31aeb0('0x9b')));_0x37084f[_0x31aeb0('0x88')]['tag']&&(_0x11171d=_['isArray'](_0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x92')])?_0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x92')]:new Array(_0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x92')]),_0x11171d['forEach'](function(_0x234d0d){const _0x56478e=_0x31aeb0;_0xbad7f1['or'](_0x56478e('0x8a'),'%,'+_0x234d0d+',%');}));if(_0x37084f[_0x31aeb0('0x88')][_0x31aeb0('0x76')]){const _0x276f01=_0x37084f[_0x31aeb0('0x88')]['filter'][_0x31aeb0('0x6d')]('\x5c','\x5c\x5c')[_0x31aeb0('0x6d')]('\x27\x27','\x27\x27\x27\x27');qs[_0x31aeb0('0xbc')](_0x276f01)?_0x43daa4['or'](_0x31aeb0('0x2d'),_0x276f01+'%')['or'](_0x31aeb0('0xb4'),_0x276f01+'%'):_0x43daa4['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x31aeb0('0xd1')](_0x276f01))['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x276f01+'%');}}_0x43b2e8[_0x31aeb0('0xb')](_0x43daa4),_0x43b2e8['group'](_0x31aeb0('0x3f'));let _0x1a8eaa={'type':db[_0x31aeb0('0xb8')][_0x31aeb0('0x91')]['SELECT'],'raw':!![]};const _0x1c2d38=_0x43b2e8[_0x31aeb0('0x3a')]();_0x1c2d38[_0x31aeb0('0x4a')](_0x31aeb0('0x3f')),_0x1c2d38['field'](_0x31aeb0('0x3b'),_0x31aeb0('0x6')),_0x21917f[_0x31aeb0('0xbf')]&&_0x21917f[_0x31aeb0('0xbf')][_0x31aeb0('0x8')](function(_0x347c17){_0x43b2e8['order']('i.'+_0x347c17[0x0],_0x347c17[0x1]==='DESC'?![]:!![]);}),!_[_0x31aeb0('0x40')](_0x11171d)&&(_0x43b2e8[_0x31aeb0('0x68')](_0xbad7f1),_0x1c2d38[_0x31aeb0('0xb')](_0x31aeb0('0x0'),_0x11171d)),Promise['resolve']()[_0x31aeb0('0x7f')](function(){const _0x2cf1fb=_0x31aeb0;if(!_0x5389fa){if(_0x37084f['query'][_0x2cf1fb('0xcc')]||_0x37084f[_0x2cf1fb('0x88')][_0x2cf1fb('0x1d')])return;_0x1c2d38['where'](_0x2cf1fb('0x79')),_0x43b2e8[_0x2cf1fb('0xb')]('i.SmsAccountId\x20IS\x20NOT\x20NULL');return;}return _0x37084f[_0x2cf1fb('0xa1')][_0x2cf1fb('0xa6')]({'attributes':['id'],'raw':!![]})[_0x2cf1fb('0x7f')](function(_0x2ceb3c){const _0x1935f8=_0x2cf1fb;_[_0x1935f8('0x40')](_0x2ceb3c)?(_0x1c2d38[_0x1935f8('0xb')](_0x1935f8('0x25')),_0x43b2e8[_0x1935f8('0xb')](_0x1935f8('0x25'))):(_0x1c2d38[_0x1935f8('0xb')]('i.SmsAccountId\x20IN\x20?',_[_0x1935f8('0x3c')](_0x2ceb3c,'id')),_0x43b2e8[_0x1935f8('0xb')](_0x1935f8('0xd2'),_[_0x1935f8('0x3c')](_0x2ceb3c,'id')));});})[_0x31aeb0('0x7f')](function(){const _0x3006ae=_0x31aeb0;db['sequelize']['query'](_0x1c2d38[_0x3006ae('0xd4')](),_0x1a8eaa)[_0x3006ae('0x7f')](function(_0x4f8743){const _0x590450=_0x3006ae;_0x429cca['count']=_0x4f8743[_0x590450('0x8c')];if(_0x429cca[_0x590450('0x12')]===0x0)return[];return db['sequelize'][_0x590450('0x88')](_0x41a6dd[_0x590450('0xd4')](),_0x1a8eaa)['then'](function(_0x2aa690){const _0x20d395=_0x590450;_0x49a983=_[_0x20d395('0x5c')](_0x2aa690,'id'),_0x1a8eaa=_[_0x20d395('0x6a')](_0x1a8eaa,{'model':db[_0x20d395('0x5e')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x37084f['query'][_0x20d395('0x72')]?_0x21917f[_0x20d395('0x70')][_0x20d395('0x8')](function(_0x5deaa0){const _0x504b3c=_0x20d395;_0x43b2e8[_0x504b3c('0x4a')]('i.'+_0x5deaa0);}):(_0x43b2e8['field'](_0x20d395('0x3b'),_0x20d395('0x6')),_0x43b2e8[_0x20d395('0x4a')]('a.key','Account.key'),_0x43b2e8[_0x20d395('0x4a')](_0x20d395('0xc6'),_0x20d395('0x20')),_0x43b2e8[_0x20d395('0x4a')](_0x20d395('0xb0')),_0x43b2e8['field'](_0x20d395('0x45'),'Contact.firstName'),_0x43b2e8[_0x20d395('0x4a')](_0x20d395('0x22'),_0x20d395('0x56')),_0x43b2e8[_0x20d395('0x4a')]('c.email',_0x20d395('0x49')),_0x43b2e8[_0x20d395('0x4a')](_0x20d395('0x93'),_0x20d395('0x96')),_0x43b2e8[_0x20d395('0x4a')]('c.mobile','Contact.mobile'),_0x43b2e8[_0x20d395('0x4a')](_0x20d395('0xb3'),_0x20d395('0xf')),_0x43b2e8[_0x20d395('0x4a')]('o.fullname','Owner.fullname'),_0x43b2e8[_0x20d395('0x4a')](_0x20d395('0x10'),_0x20d395('0x64')),_0x43b2e8[_0x20d395('0x4a')](_0x20d395('0x9c'),'TagIds'));if(_0x21917f[_0x20d395('0x34')])_0x43b2e8['limit'](_0x21917f[_0x20d395('0x34')]);if(_0x21917f['offset'])_0x43b2e8[_0x20d395('0xa2')](_0x21917f[_0x20d395('0xa2')]);return db[_0x20d395('0x35')][_0x20d395('0x88')](_0x43b2e8[_0x20d395('0xd4')](),_0x1a8eaa);})[_0x590450('0x7f')](function(_0x5f0cce){const _0x42a660=_0x590450;return _0x3292cb['where']('ui.SmsInteractionId\x20IN\x20?',_['map'](_0x5f0cce,'id')),db[_0x42a660('0x35')][_0x42a660('0x88')](_0x3292cb[_0x42a660('0xd4')](),_0x1a8eaa)['then'](function(_0x1d2476){const _0x43bf8a=_0x42a660,_0x511f81=_[_0x43bf8a('0x1e')](_0x1d2476,_0x43bf8a('0xa0')),_0x45046c=[];return _0x5f0cce['forEach'](function(_0x3d1e45){const _0x21eba2=_0x43bf8a;_0x45046c[_0x21eba2('0x8f')](updateSmsInteraction(_0x3d1e45,_0x49a983,_0x511f81));}),Promise[_0x43bf8a('0x63')](_0x45046c);});});})[_0x3006ae('0x7f')](function(_0x43bf3e){const _0x2d02b0=_0x3006ae;return _0x429cca[_0x2d02b0('0x14')]=_0x43bf3e,_0x429cca;})['then'](respondWithFilteredResult(_0x40646f,_0x21917f));})[_0x31aeb0('0x5')](handleError(_0x40646f,null));},exports[_0x4b9d64('0x75')]=function(_0x40a3e3,_0x5d993c){const _0x29cf46=_0x4b9d64;let _0x803c83={'raw':![],'where':{'id':_0x40a3e3[_0x29cf46('0x58')]['id']}};const _0x4e9b86={};return _0x4e9b86[_0x29cf46('0x5d')]=_[_0x29cf46('0xa8')](db['SmsInteraction']['rawAttributes']),_0x4e9b86[_0x29cf46('0x88')]=_['keys'](_0x40a3e3[_0x29cf46('0x88')]),_0x4e9b86[_0x29cf46('0x19')]=_[_0x29cf46('0x80')](_0x4e9b86[_0x29cf46('0x5d')],_0x4e9b86[_0x29cf46('0x88')]),_0x803c83[_0x29cf46('0x70')]=_[_0x29cf46('0x80')](_0x4e9b86['model'],qs[_0x29cf46('0x72')](_0x40a3e3[_0x29cf46('0x88')][_0x29cf46('0x72')])),_0x803c83['attributes']=_0x803c83['attributes']['length']?_0x803c83['attributes']:_0x4e9b86[_0x29cf46('0x5d')],_0x40a3e3['query']['includeAll']&&(_0x803c83[_0x29cf46('0xcf')]=[{'all':!![]}]),_0x803c83=_['merge']({},_0x803c83,_0x40a3e3['options']),db[_0x29cf46('0x5e')][_0x29cf46('0xc4')](_0x803c83)[_0x29cf46('0x7f')](handleEntityNotFound(_0x5d993c,null))['then'](respondWithResult(_0x5d993c,null))['catch'](handleError(_0x5d993c,null));},exports[_0x4b9d64('0x28')]=function(_0x847142,_0x10f4cd){const _0x286f54=_0x4b9d64;return db[_0x286f54('0x5e')]['create'](_0x847142[_0x286f54('0xc3')],{})[_0x286f54('0x7f')](respondWithResult(_0x10f4cd,0xc9))[_0x286f54('0x5')](handleError(_0x10f4cd,null));},exports[_0x4b9d64('0xa3')]=function(_0x56a9c4,_0x89f3d2){const _0x33e19c=_0x4b9d64;return _0x56a9c4[_0x33e19c('0xc3')]['id']&&delete _0x56a9c4[_0x33e19c('0xc3')]['id'],db[_0x33e19c('0x5e')][_0x33e19c('0xc4')]({'where':{'id':_0x56a9c4['params']['id']}})[_0x33e19c('0x7f')](handleEntityNotFound(_0x89f3d2,null))[_0x33e19c('0x7f')](saveUpdates(_0x56a9c4[_0x33e19c('0xc3')],null))['then'](respondWithResult(_0x89f3d2,null))[_0x33e19c('0x5')](handleError(_0x89f3d2,null));},exports[_0x4b9d64('0xc5')]=function(_0x37eec3,_0x325e7b){const _0x5c1472=_0x4b9d64;return db[_0x5c1472('0x5e')][_0x5c1472('0xc4')]({'where':{'id':_0x37eec3[_0x5c1472('0x58')]['id']}})[_0x5c1472('0x7f')](handleEntityNotFound(_0x325e7b,null))[_0x5c1472('0x7f')](removeEntity(_0x325e7b,null))[_0x5c1472('0x5')](handleError(_0x325e7b,null));},exports[_0x4b9d64('0x81')]=function(_0x5d22db,_0x209dc5){const _0x513425=_0x4b9d64;return db[_0x513425('0x5e')]['describe']()[_0x513425('0x7f')](respondWithResult(_0x209dc5,null))['catch'](handleError(_0x209dc5,null));},exports['addMessage']=function(_0x3c90db,_0x9de117){const _0x41a35c=_0x4b9d64;return db[_0x41a35c('0x44')]['findOne']({'where':{'id':_0x3c90db[_0x41a35c('0x58')]['id']}})[_0x41a35c('0x7f')](function(_0x2683a4){const _0x34e7f9=_0x41a35c;if(_0x2683a4)return _0x2683a4['addMessage'](_0x3c90db[_0x34e7f9('0xc3')][_0x34e7f9('0xce')],{'through':_['omit'](_0x3c90db[_0x34e7f9('0xc3')],[_0x34e7f9('0xce'),'id'])});})[_0x41a35c('0x7f')](respondWithResult(_0x9de117,null))['catch'](handleError(_0x9de117,null));},exports[_0x4b9d64('0x87')]=function(_0xbe3077,_0x6a6c64){const _0x55aa0d=_0x4b9d64;let _0x16a631={'raw':![],'where':{}};const _0x23a950={},_0x5649cc={'count':0x0,'rows':[]};return db[_0x55aa0d('0x5e')]['findOne']({'where':{'id':_0xbe3077[_0x55aa0d('0x58')]['id']}})[_0x55aa0d('0x7f')](handleEntityNotFound(_0x6a6c64,null))[_0x55aa0d('0x7f')](function(_0x4ba75d){const _0x135a03=_0x55aa0d;if(_0x4ba75d){_0x23a950[_0x135a03('0x5d')]=_[_0x135a03('0xa8')](db[_0x135a03('0x44')]['rawAttributes']),_0x23a950[_0x135a03('0x88')]=_[_0x135a03('0xa8')](_0xbe3077['query']),_0x23a950['filters']=_['intersection'](_0x23a950['model'],_0x23a950['query']),_0x16a631[_0x135a03('0x70')]=_['intersection'](_0x23a950[_0x135a03('0x5d')],qs[_0x135a03('0x72')](_0xbe3077[_0x135a03('0x88')][_0x135a03('0x72')])),_0x16a631[_0x135a03('0x70')]=_0x16a631[_0x135a03('0x70')][_0x135a03('0x8c')]?_0x16a631[_0x135a03('0x70')]:_0x23a950[_0x135a03('0x5d')];typeof _0xbe3077[_0x135a03('0x88')]['nolimit']===_0x135a03('0xae')&&(_0x16a631['limit']=qs[_0x135a03('0x34')](_0xbe3077[_0x135a03('0x88')]['limit']),_0x16a631['offset']=qs['offset'](_0xbe3077[_0x135a03('0x88')][_0x135a03('0xa2')]));_0x16a631[_0x135a03('0xbf')]=qs[_0x135a03('0x77')](_0xbe3077[_0x135a03('0x88')][_0x135a03('0x77')]),_0x16a631[_0x135a03('0xb')]=qs[_0x135a03('0x19')](_[_0x135a03('0x11')](_0xbe3077[_0x135a03('0x88')],_0x23a950[_0x135a03('0x19')])),_0x16a631[_0x135a03('0xb')][_0x135a03('0xa0')]=_0x4ba75d['id'];_0xbe3077[_0x135a03('0x88')][_0x135a03('0x76')]&&(_0x16a631[_0x135a03('0xb')]=_['merge'](_0x16a631[_0x135a03('0xb')],{[Op['or']]:_[_0x135a03('0x3c')](_0x16a631[_0x135a03('0x70')],function(_0x5ceb4f){const _0x182cda=_0x135a03,_0x46dbdf={};return _0x46dbdf[_0x5ceb4f]={[Op[_0x182cda('0x9a')]]:'%'+_0xbe3077[_0x182cda('0x88')]['filter']+'%'},_0x46dbdf;})}));if(_0xbe3077[_0x135a03('0x88')]['$gte']){const _0x67746=_0xbe3077['query'][_0x135a03('0x1')][_0x135a03('0xbd')](','),_0x195483={};_0x195483[_0x67746[0x0]]={[Op[_0x135a03('0x99')]]:moment(_0x67746[0x1])['format'](_0x135a03('0x24'))},_0x16a631[_0x135a03('0xb')]=_[_0x135a03('0x6a')](_0x16a631['where'],_0x195483);}return _0x16a631=_['merge']({},_0x16a631,_0xbe3077[_0x135a03('0x59')]),db[_0x135a03('0x44')][_0x135a03('0x12')]({'where':_0x16a631[_0x135a03('0xb')]})[_0x135a03('0x7f')](function(_0x494646){const _0x27351a=_0x135a03;return _0x5649cc[_0x27351a('0x12')]=_0x494646,_0xbe3077['query'][_0x27351a('0x57')]&&(_0x16a631[_0x27351a('0xcf')]=[{'all':!![]}]),db[_0x27351a('0x44')][_0x27351a('0x67')](_0x16a631);})[_0x135a03('0x7f')](function(_0x280ca8){return _0x5649cc['rows']=_0x280ca8,_0x5649cc;});}})[_0x55aa0d('0x7f')](respondWithFilteredResult(_0x6a6c64,_0x16a631))[_0x55aa0d('0x5')](handleError(_0x6a6c64,null));},exports['addTags']=function(_0x3150a3,_0x37a8a5){const _0x4274b0=_0x4b9d64;return db[_0x4274b0('0x5e')][_0x4274b0('0xc4')]({'where':{'id':_0x3150a3['params']['id']}})[_0x4274b0('0x7f')](function(_0x359b28){const _0x5d2a7d=_0x4274b0;if(_0x359b28)return _0x359b28[_0x5d2a7d('0x4c')](_0x3150a3['body'][_0x5d2a7d('0xce')],{'through':_[_0x5d2a7d('0xd3')](_0x3150a3[_0x5d2a7d('0xc3')],[_0x5d2a7d('0xce'),'id'])})[_0x5d2a7d('0x7f')](function(){const _0x3aa19a=_0x5d2a7d;return db[_0x3aa19a('0x83')][_0x3aa19a('0x67')]({'attributes':['id',_0x3aa19a('0xad'),_0x3aa19a('0xd')],'where':{'id':_0x3150a3[_0x3aa19a('0xc3')]['ids']}});})[_0x5d2a7d('0x7f')](function(_0x5f02e6){const _0x218efd=_0x5d2a7d;return socket[_0x218efd('0x2f')](_0x218efd('0x7d'),{'id':Number(_0x3150a3[_0x218efd('0x58')]['id']),'tags':_0x5f02e6||[]}),{'id':Number(_0x3150a3[_0x218efd('0x58')]['id']),'tags':_0x5f02e6||[]};});})[_0x4274b0('0x7f')](respondWithResult(_0x37a8a5,null))['catch'](handleError(_0x37a8a5,null));},exports[_0x4b9d64('0x9d')]=function(_0x1e1993,_0x59daa3){const _0x5dc59f=_0x4b9d64;return db['SmsInteraction'][_0x5dc59f('0xc4')]({'where':{'id':_0x1e1993[_0x5dc59f('0x58')]['id']}})[_0x5dc59f('0x7f')](handleEntityNotFound(_0x59daa3,null))[_0x5dc59f('0x7f')](function(_0x44ae64){const _0x2f9131=_0x5dc59f;if(_0x44ae64)return _0x44ae64[_0x2f9131('0x9d')](_0x1e1993[_0x2f9131('0x88')][_0x2f9131('0xce')]);})[_0x5dc59f('0x7f')](respondWithStatusCode(_0x59daa3,null))['catch'](handleError(_0x59daa3,null));},exports[_0x4b9d64('0x7')]=function(_0x532885,_0x1a5bb0){const _0x10ca6b=_0x4b9d64,_0x46410e=moment()['unix']()[_0x10ca6b('0xd4')](),_0x307fd0=path[_0x10ca6b('0x47')](config[_0x10ca6b('0x17')],_0x10ca6b('0xb7'),_0x10ca6b('0x4d'),_0x10ca6b('0x74')),_0x3dfc7f=path[_0x10ca6b('0x47')](_0x307fd0,_0x46410e),_0x40a0cb=util[_0x10ca6b('0xa4')](_0x10ca6b('0x5b'),_0x532885['params']['id'],_0x46410e),_0x324466=path[_0x10ca6b('0x47')](_0x307fd0,_0x40a0cb),_0x59dcd4=[];_0x59dcd4[_0x10ca6b('0x8f')]({'model':db[_0x10ca6b('0x48')],'as':_0x10ca6b('0x48'),'attributes':['id',_0x10ca6b('0x1b')],'raw':!![]}),_0x59dcd4[_0x10ca6b('0x8f')]({'model':db[_0x10ca6b('0x32')],'as':_0x10ca6b('0xd0'),'attributes':['id',_0x10ca6b('0xc0'),_0x10ca6b('0x6f')],'raw':!![]});const _0x80b84a=[{'model':db[_0x10ca6b('0x44')],'as':_0x10ca6b('0xd5'),'attributes':['id','body','createdAt',_0x10ca6b('0x73'),_0x10ca6b('0x21'),_0x10ca6b('0xb1')],'include':_0x59dcd4}];return _0x80b84a[_0x10ca6b('0x8f')]({'model':db[_0x10ca6b('0x2b')],'as':_0x10ca6b('0xcd'),'attributes':['id',_0x10ca6b('0xad')]}),_0x80b84a[_0x10ca6b('0x8f')]({'model':db['User'],'as':'Owner','attributes':['id',_0x10ca6b('0x1b')]}),db[_0x10ca6b('0x5e')][_0x10ca6b('0xc4')]({'where':{'id':_0x532885[_0x10ca6b('0x58')]['id']},'include':_0x80b84a})[_0x10ca6b('0x7f')](handleEntityNotFound(_0x1a5bb0,null))[_0x10ca6b('0x7f')](function(_0x5249d2){const _0x54b4cf=_0x10ca6b;if(_0x5249d2){const _0x5a799d=_0x5249d2[_0x54b4cf('0xaf')]({'plain':!![]});fs[_0x54b4cf('0x4b')](_0x3dfc7f);const _0x39b665={'format':'A4','border':_0x54b4cf('0xc1'),'header':{'height':_0x54b4cf('0x5a'),'contents':{'first':_0x54b4cf('0x13')}},'footer':{'height':_0x54b4cf('0x16'),'contents':{'default':util['format']('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',util[_0x54b4cf('0xa4')](_0x54b4cf('0x50'),'Sms',_0x5a799d['id']),moment()[_0x54b4cf('0xa4')]('YYYY-MM-DD')['toString']())}}},_0x22455f={'channel':_0x54b4cf('0xba'),'account':_0x5a799d[_0x54b4cf('0xcd')][_0x54b4cf('0xad')],'agent':_0x5a799d['Owner']?_0x5a799d[_0x54b4cf('0x5f')][_0x54b4cf('0x1b')]:_0x54b4cf('0x8d'),'createdAt':moment(_0x5a799d[_0x54b4cf('0x2')])[_0x54b4cf('0xa4')](_0x54b4cf('0x24'))[_0x54b4cf('0xd4')](),'closedAt':_0x5a799d[_0x54b4cf('0x7a')]?moment(_0x5a799d['closedAt'])[_0x54b4cf('0xa4')](_0x54b4cf('0x24'))['toString']():'','disposition':_0x5a799d[_0x54b4cf('0xa9')],'messages':_(_0x5a799d['Messages'])[_0x54b4cf('0x76')]({'secret':![]})[_0x54b4cf('0x3c')](function(_0x5e2603){const _0x5bafa8=_0x54b4cf;return{'date':moment(_0x5e2603[_0x5bafa8('0x2')])[_0x5bafa8('0xa4')](_0x5bafa8('0x24'))['toString'](),'sender':_0x5e2603[_0x5bafa8('0x73')]===_0x5bafa8('0xc9')?_0x5e2603['User']?_0x5e2603[_0x5bafa8('0x48')]['fullname']:_0x5bafa8('0x4'):_0x5e2603[_0x5bafa8('0xd0')][_0x5bafa8('0xc0')]+(_0x5e2603[_0x5bafa8('0xd0')][_0x5bafa8('0x6f')]?'\x20'+_0x5e2603['Contact'][_0x5bafa8('0x6f')]:''),'body':_0x5e2603['body'],'direction':_0x5e2603[_0x5bafa8('0x73')]==='out'?'A':'C','secret':_0x5e2603[_0x5bafa8('0x21')],'read':_0x5e2603['read']};})[_0x54b4cf('0xca')]()};return ejs[_0x54b4cf('0x38')](path['join'](config[_0x54b4cf('0x17')],_0x54b4cf('0xb7'),_0x54b4cf('0x86'),_0x54b4cf('0x62')),{'interaction':_0x22455f})[_0x54b4cf('0x7f')](function(_0x4081a1){return new Promise(function(_0x584d63,_0x491315){const _0x3106a5=a553_0x5de2;pdf['create'](_0x4081a1,_0x39b665)[_0x3106a5('0x61')](path['join'](_0x3dfc7f,_0x3106a5('0x7e')+_0x5a799d['id']+'-'+_0x46410e+_0x3106a5('0x2a')),function(_0xfff1d0,_0x51593c){if(_0xfff1d0)return _0x491315(_0xfff1d0);_0x584d63(_0x51593c);});});})[_0x54b4cf('0x7f')](function(){const _0x15da41=_0x54b4cf;return new Promise(function(_0x2b9cd2,_0x2fea52){zipdir(_0x3dfc7f,{'saveTo':_0x324466},function(_0x3a42ff,_0x33a793){if(_0x3a42ff)return _0x2fea52(_0x3a42ff);return _0x2b9cd2(_0x33a793);});})[_0x15da41('0x7f')](function(){return new Promise(function(_0x39cc70,_0x5d339f){rimraf(_0x3dfc7f,function(_0xbe32f1){if(_0xbe32f1)_0x5d339f(_0xbe32f1);return _0x39cc70();});});})[_0x15da41('0x7f')](function(){const _0x452309=_0x15da41;return _0x1a5bb0[_0x452309('0x7')](_0x324466,_0x40a0cb,function(_0x616341){const _0x16262a=_0x452309;_0x616341?console['log'](_0x16262a('0x36'),_0x616341):fs[_0x16262a('0x51')](_0x324466);});});});}else return _0x1a5bb0[_0x54b4cf('0x9')](0xc8);})['catch'](handleError(_0x1a5bb0,null));}; \ No newline at end of file +const a553_0x3fb8=['push','zip-dir','i.id\x20LIKE\x20?','err','operator','.pdf','tag','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','../../rediscache','Account.key','sort','concat','split','squel','`unreadMessages`\x20=\x200','destroy','Messages','filters','files','YYYY-MM-DD\x20HH:mm:ss','i.SmsAccountId\x20IS\x20NULL','closedAt','cm_contacts','i.SmsAccountId\x20IS\x20NOT\x20NULL','keys','views','removeTags','end','../../components/parsers/advancedSearch','DESC','lastName','html-pdf','include','./smsInteraction.socket','closed','`\x20=\x200','secret','sqlOperator','set','tools_tags','from','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
Interaction\x20Transcript
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','server','send','read','setTags','sms_interactions','conditions','\x20IS\x20NULL','resolve','fullname','emit','count','Tag','sms_accounts','c.email','unreadMessages','download','%s\x20#%d','c.fax','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','a.id\x20=\x20i.SmsAccountId','params','order','i.phone\x20LIKE\x20?','\x20=\x20?','length','SmsInteraction','isArray','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','Content-Range','out','SmsInteractionId','User','o.internal','field','like','format','search','body','$gte','where','toFile','gte','findOne','map','a.mandatoryDisposition','fields','u.id','sms_messages','intersection','QueryTypes','$lte','a.key','compact','ejs','user_has_sms_interactions','attributes','createdAt','firstName','omit','model','SmsAccountId','name','renderFile','offset','isEmpty','value','ContactId','pick','ids','join','Users','includeAll','Contact.fax','json','Contact.phone','path','status','TagIds','Contact','Contact.email','YYYY-MM-DD','group','left_join','u.fullname','Sms','text','select','Account','error','Account.mandatoryDisposition','transcript-','rows','all','forEach','it.SmsInteractionId\x20=\x20i.id','register','tmp','journey','start','SELECT','color','sendStatus','o.id\x20=\x20i.UserId','CmContact','`\x20>\x200','c.firstName','../../config/logger','../../mysqldb','System','Owner.fullname','expr','toString','describe','parse','create','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','u.id\x20=\x20ui.UserId','30px','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','merge','type','root','getSmsAccounts','clone','update','rawAttributes','rimraf','sequelize','getMessages','UserId','c.phone','find','i.*','10px','users','transcript-%d-%s.zip','catch','Contact.lastName','findAll','o.fullname','buildExpression','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','then','addTags','$substring','SmsAccount','nolimit','util','filter','SmsMessage','show','index','direction','mkdirSync','Owner','lodash','i.SmsAccountId\x20IN\x20?','replace','c.mobile','Tags','log','query','unix','downloadInteraction.html','i.id','having','me.SmsInteractionId\x20=\x20i.id','limit','unlinkSync','undefined','addMessage','fieldName'];(function(_0x5ab739,_0x3fb8bf){const _0xc8248a=function(_0x19579f){while(--_0x19579f){_0x5ab739['push'](_0x5ab739['shift']());}};_0xc8248a(++_0x3fb8bf);}(a553_0x3fb8,0x1e5));const a553_0xc824=function(_0x5ab739,_0x3fb8bf){_0x5ab739=_0x5ab739-0x0;let _0xc8248a=a553_0x3fb8[_0x5ab739];return _0xc8248a;};const _0x1ae642=a553_0xc824;'use strict';const pdf=require(_0x1ae642('0xbc')),rimraf=require(_0x1ae642('0x6f')),zipdir=require(_0x1ae642('0x9e')),moment=require('moment'),util=require(_0x1ae642('0x84')),path=require(_0x1ae642('0x3c')),ejs=require(_0x1ae642('0x26')),fs=require('fs'),_=require(_0x1ae642('0x8c')),squel=require(_0x1ae642('0xaa')),{getSocket}=require(_0x1ae642('0xa5')),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(_0x1ae642('0xb9')),logger=require(_0x1ae642('0x5b'))('api'),config=require('../../config/environment'),db=require(_0x1ae642('0x5c'))['db'],{Op}=require(_0x1ae642('0x70'));require(_0x1ae642('0xbe'))[_0x1ae642('0x50')](socket);function respondWithStatusCode(_0x19579f,_0x5c06e9){return _0x5c06e9=_0x5c06e9||0xcc,function(_0x1c659e){const _0x2e958e=a553_0xc824;if(_0x1c659e)return _0x19579f[_0x2e958e('0x56')](_0x5c06e9);return _0x19579f[_0x2e958e('0x3d')](_0x5c06e9)[_0x2e958e('0xb8')]();};}function respondWithResult(_0x39702b,_0x422f5e){return _0x422f5e=_0x422f5e||0xc8,function(_0x1a6c1f){const _0x3340b8=a553_0xc824;if(_0x1a6c1f)return _0x39702b[_0x3340b8('0x3d')](_0x422f5e)[_0x3340b8('0x3a')](_0x1a6c1f);};}function respondWithFilteredResult(_0xfd5f06,_0x535a91){return function(_0x662d8){const _0x318c48=a553_0xc824;if(_0x662d8){const _0x32d7b4=_0x662d8[_0x318c48('0xd1')],_0x2f1cbb=_0x535a91[_0x318c48('0x30')];let _0x3ac190=_0x535a91[_0x318c48('0x30')]+_0x535a91[_0x318c48('0x98')],_0x1bc2fa;return _0x3ac190>=_0x32d7b4?(_0x3ac190=_0x32d7b4,_0x1bc2fa=0xc8):_0x1bc2fa=0xce,_0xfd5f06[_0x318c48('0x3d')](_0x1bc2fa),_0xfd5f06[_0x318c48('0xc3')](_0x318c48('0xd'),_0x2f1cbb+'-'+_0x3ac190+'/'+_0x32d7b4)[_0x318c48('0x3a')](_0x662d8);}return null;};}function saveUpdates(_0x347611){return function(_0x1f0457){const _0xbf6b39=a553_0xc824;if(_0x1f0457)return _0x1f0457[_0xbf6b39('0x6d')](_0x347611)[_0xbf6b39('0x7f')](function(_0xc4008b){return _0xc4008b;});return null;};}function removeEntity(_0x234ff6){return function(_0x2cceaa){const _0x568d01=a553_0xc824;if(_0x2cceaa)return _0x2cceaa[_0x568d01('0xac')]()['then'](function(){const _0x5e4db0=_0x568d01;_0x234ff6[_0x5e4db0('0x3d')](0xcc)['end']();});};}function handleEntityNotFound(_0x201108){return function(_0x42a563){const _0x295baf=a553_0xc824;return!_0x42a563&&_0x201108[_0x295baf('0x56')](0x194),_0x42a563;};}function handleError(_0x451c4a,_0x55fa7e){return _0x55fa7e=_0x55fa7e||0x1f4,function(_0x4c643d){const _0x4fdb39=a553_0xc824;logger[_0x4fdb39('0x49')](_0x4c643d['stack']),_0x4c643d[_0x4fdb39('0x2e')]&&delete _0x4c643d[_0x4fdb39('0x2e')],_0x451c4a[_0x4fdb39('0x3d')](_0x55fa7e)[_0x4fdb39('0xc8')](_0x4c643d);};}function getInteractionUsers(_0x36e22c,_0x12a0cf){return new Promise(function(_0x2f6a29,_0x29b6e1){const _0x1713e1=a553_0xc824;try{_0x12a0cf[_0x36e22c['id']]&&(_0x36e22c[_0x1713e1('0x37')]=_['map'](_0x12a0cf[_0x36e22c['id']],function(_0x410da6){const _0x5d677b=_0x1713e1;return{'id':_0x410da6['id'],'fullname':_0x410da6[_0x5d677b('0xcf')]};}));}catch(_0x3ad6ec){_0x29b6e1(_0x3ad6ec);}_0x2f6a29(_0x36e22c);});}function getInteractionTags(_0xa318d8,_0x559ade){return new Promise(function(_0x1fae7f,_0x493d80){const _0x403c6c=a553_0xc824;try{_0xa318d8[_0x403c6c('0x3e')]&&(_0xa318d8[_0x403c6c('0x90')]=[],_0xa318d8[_0x403c6c('0x3e')][_0x403c6c('0xa9')](',')[_0x403c6c('0x4e')](function(_0xfb49e7){const _0x2c1dc0=_0x403c6c;_0xa318d8['Tags'][_0x2c1dc0('0x9d')](_0x559ade[_0xfb49e7]);})),delete _0xa318d8['TagIds'];}catch(_0x4f8355){_0x493d80(_0x4f8355);}_0x1fae7f(_0xa318d8);});}function updateSmsInteraction(_0x1350aa,_0x268f7e,_0x323a8f){return new Promise(function(_0x43e7b4,_0xe196bd){const _0xfd26b0=a553_0xc824;return getInteractionUsers(_0x1350aa,_0x323a8f)[_0xfd26b0('0x7f')](function(_0x272b76){return getInteractionTags(_0x272b76,_0x268f7e);})['then'](function(_0x253ac8){_0x43e7b4(_0x253ac8);})[_0xfd26b0('0x79')](function(_0x3987f6){_0xe196bd(_0x3987f6);});});}exports[_0x1ae642('0x88')]=function(_0x2c922c,_0x35d7a0){const _0xeb793c=_0x1ae642,_0x3895af={},_0x259bd9={},_0x1ff18d={'count':0x0,'rows':[]},_0x2c3198=_[_0xeb793c('0x1c')](db[_0xeb793c('0xa')][_0xeb793c('0x6e')],function(_0x28d948){const _0x4011b9=_0xeb793c;return{'name':_0x28d948[_0x4011b9('0x9c')],'type':_0x28d948[_0x4011b9('0x69')]['key']};});_0x259bd9[_0xeb793c('0x2c')]=_[_0xeb793c('0x1c')](_0x2c3198,_0xeb793c('0x2e')),_0x259bd9[_0xeb793c('0x92')]=_[_0xeb793c('0xb5')](_0x2c922c[_0xeb793c('0x92')]),_0x259bd9[_0xeb793c('0xae')]=_['intersection'](_0x259bd9['model'],_0x259bd9['query']),_0x3895af[_0xeb793c('0x28')]=_[_0xeb793c('0x21')](_0x259bd9[_0xeb793c('0x2c')],qs[_0xeb793c('0x1e')](_0x2c922c[_0xeb793c('0x92')]['fields'])),_0x3895af['attributes']=_0x3895af[_0xeb793c('0x28')][_0xeb793c('0x9')]?_0x3895af[_0xeb793c('0x28')]:_0x259bd9['model'];typeof _0x2c922c[_0xeb793c('0x92')][_0xeb793c('0x83')]===_0xeb793c('0x9a')&&(_0x3895af[_0xeb793c('0x98')]=qs[_0xeb793c('0x98')](_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0x98')]),_0x3895af[_0xeb793c('0x30')]=qs[_0xeb793c('0x30')](_0x2c922c[_0xeb793c('0x92')]['offset']));_0x3895af[_0xeb793c('0x6')]=qs[_0xeb793c('0xa7')](_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0xa7')]),_0x3895af['where']=qs['filters'](_[_0xeb793c('0x34')](_0x2c922c['query'],_0x259bd9['filters']),_0x2c3198);let _0x86952d=[];const _0x47caf7=squel[_0xeb793c('0x47')]()[_0xeb793c('0x12')]('id')[_0xeb793c('0x12')](_0xeb793c('0x2e'))[_0xeb793c('0x12')]('color')[_0xeb793c('0xc5')](_0xeb793c('0xc4')),_0x448be1=squel[_0xeb793c('0x47')]()[_0xeb793c('0x12')](_0xeb793c('0x1f'))['field'](_0xeb793c('0x44'))[_0xeb793c('0x12')]('ui.SmsInteractionId')[_0xeb793c('0xc5')](_0xeb793c('0x27'),'ui')[_0xeb793c('0x43')](_0xeb793c('0x77'),'u',_0xeb793c('0x65')),_0x20ec74=squel[_0xeb793c('0x47')]()[_0xeb793c('0xc5')](_0xeb793c('0xcb'),'i')[_0xeb793c('0x43')](_0xeb793c('0xb3'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')['left_join'](_0xeb793c('0x77'),'o',_0xeb793c('0x57'))[_0xeb793c('0x43')](_0xeb793c('0xd3'),'a',_0xeb793c('0x4'))[_0xeb793c('0x43')](_0xeb793c('0x20'),'me',_0xeb793c('0x97'))[_0xeb793c('0x43')]('sms_interaction_has_tags','it',_0xeb793c('0x4f'))[_0xeb793c('0x43')](_0xeb793c('0xc4'),'t','t.id\x20=\x20it.TagId'),_0x222abf=squel[_0xeb793c('0x5f')]();let _0xb978da=[];const _0x20954d=squel[_0xeb793c('0x5f')]();let _0x328a26;if(_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0x15')]){_0x328a26=as['parseSearch'](_0x2c922c[_0xeb793c('0x92')]['search']);const _0x56b68a=_0x328a26[_0xeb793c('0xc2')];for(let _0x16c2ed=0x0;_0x16c2ed<_0x328a26['conditions'][_0xeb793c('0x9')];_0x16c2ed++){const _0x9904b5=_0x328a26[_0xeb793c('0xcc')][_0x16c2ed],_0x10a302='i';let _0x3a9b0b,_0x4b34c1=_['find'](_0x2c3198,[_0xeb793c('0x2e'),_0x9904b5[_0xeb793c('0x12')]]);if(!_0x4b34c1)switch(_0x9904b5[_0xeb793c('0x12')]){case'unreadMessages':_0x9904b5[_0xeb793c('0x32')]==0x1?_0x20ec74[_0xeb793c('0x96')]('`'+_0x9904b5[_0xeb793c('0x12')]+_0xeb793c('0xc0')):_0x20ec74['having']('`'+_0x9904b5['field']+_0xeb793c('0x59'));break;case _0xeb793c('0x3f'):if(_0x9904b5['operator']==='$substring'){if(_0x9904b5[_0xeb793c('0x32')]['split']('\x20')['length']>0x1)_0x222abf[_0x56b68a](_0xeb793c('0x7e'),qs['getFullTextValue'](_0x9904b5['value']),null);else{const _0x255267='%'+_0x9904b5['value']+'%';_0x222abf[_0x56b68a]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x255267,_0x255267,_0x255267);}}else _0x4b34c1=_[_0xeb793c('0x74')](_0x2c3198,['name',_0xeb793c('0x33')]),_0x9904b5[_0xeb793c('0x12')]=_0xeb793c('0x33'),_0x3a9b0b=as[_0xeb793c('0x7d')](_0x10a302,_0x4b34c1[_0xeb793c('0x69')],_0x9904b5),_0x222abf[_0x56b68a](_0x3a9b0b[_0xeb793c('0x46')],_0x3a9b0b['value'][_0xeb793c('0x53')],_0x3a9b0b[_0xeb793c('0x32')]['end']);break;case _0xeb793c('0xd2'):{const _0x1c56dd=_0x9904b5[_0xeb793c('0x32')][_0xeb793c('0xa9')](',')[_0xeb793c('0x1c')](function(_0x24c1a7){return Number(_0x24c1a7);});_0x1c56dd['forEach'](function(_0x4f3787){_0x20954d['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x4f3787+',%');}),_0xb978da=_['union'](_0xb978da,_0x1c56dd);}break;case'User':_0x9904b5[_0xeb793c('0xa1')]===_0xeb793c('0x81')?_0x222abf[_0x56b68a]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x9904b5['value']+'%',null):(_0x4b34c1=_[_0xeb793c('0x74')](_0x2c3198,[_0xeb793c('0x2e'),'UserId']),_0x9904b5['field']=_0xeb793c('0x72'),_0x3a9b0b=as[_0xeb793c('0x7d')](_0x10a302,_0x4b34c1[_0xeb793c('0x69')],_0x9904b5),_0x222abf[_0x56b68a](_0x3a9b0b[_0xeb793c('0x46')],_0x3a9b0b[_0xeb793c('0x32')][_0xeb793c('0x53')],_0x3a9b0b[_0xeb793c('0x32')][_0xeb793c('0xb8')]));break;case _0xeb793c('0x16'):_0x3a9b0b=as['buildExpression']('me',null,_0x9904b5),_0x222abf[_0x56b68a](_0x3a9b0b[_0xeb793c('0x46')],_0x3a9b0b['value'][_0xeb793c('0x53')],_0x3a9b0b[_0xeb793c('0x32')][_0xeb793c('0xb8')]);break;}else _0x3a9b0b=as['buildExpression'](_0x10a302,_0x4b34c1['type'],_0x9904b5),_0x222abf[_0x56b68a](_0x3a9b0b[_0xeb793c('0x46')],_0x3a9b0b[_0xeb793c('0x32')]['start'],_0x3a9b0b['value'][_0xeb793c('0xb8')]);}}else{const _0x41b5ba=_(_0x2c922c[_0xeb793c('0x92')])[_0xeb793c('0xb5')]()[_0xeb793c('0x1c')](function(_0x5cbc3b){const _0x5b26cf=_0xeb793c;return _['some'](_0x2c3198,[_0x5b26cf('0x2e'),_0x5cbc3b])?_0x5cbc3b:undefined;})[_0xeb793c('0x25')]()[_0xeb793c('0x32')]();!_[_0xeb793c('0x31')](_0x41b5ba)&&_0x41b5ba[_0xeb793c('0x4e')](function(_0x112084){const _0x4ec00b=_0xeb793c;if(_0x112084===_0x4ec00b('0x2d'))_0x20ec74['where'](_0x4ec00b('0x8d'),[][_0x4ec00b('0xa8')](_0x2c922c[_0x4ec00b('0x92')][_0x112084]));else{if(_0x112084===_0x4ec00b('0x29')){const _0x9891a1=JSON[_0x4ec00b('0x62')](_0x2c922c['query'][_0x112084])[_0x4ec00b('0x17')],_0x2379c2=JSON[_0x4ec00b('0x62')](_0x2c922c[_0x4ec00b('0x92')][_0x112084])[_0x4ec00b('0x23')];_0x20ec74[_0x4ec00b('0x18')](_0x4ec00b('0xc'),_0x9891a1,_0x2379c2);}else _0x2c922c[_0x4ec00b('0x92')][_0x112084]==='null'?_0x20ec74[_0x4ec00b('0x18')]('i.'+_0x112084+_0x4ec00b('0xcd')):_0x20ec74[_0x4ec00b('0x18')]('i.'+_0x112084+_0x4ec00b('0x8'),_0x2c922c[_0x4ec00b('0x92')][_0x112084]);}});_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0xc9')]&&(_0x2c922c['query']['read']==0x1?_0x20ec74[_0xeb793c('0x96')](_0xeb793c('0xab')):_0x20ec74[_0xeb793c('0x96')]('`unreadMessages`\x20>\x200'));_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0xa3')]&&(_0xb978da=_[_0xeb793c('0xb')](_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0xa3')])?_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0xa3')]:new Array(_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0xa3')]),_0xb978da[_0xeb793c('0x4e')](function(_0x5d46b2){const _0x58e1d0=_0xeb793c;_0x20954d['or'](_0x58e1d0('0xa4'),'%,'+_0x5d46b2+',%');}));if(_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0x85')]){const _0x4eb722=_0x2c922c[_0xeb793c('0x92')][_0xeb793c('0x85')]['replace']('\x5c','\x5c\x5c')[_0xeb793c('0x8e')]('\x27\x27','\x27\x27\x27\x27');qs['isNumeric'](_0x4eb722)?_0x222abf['or'](_0xeb793c('0x9f'),_0x4eb722+'%')['or'](_0xeb793c('0x7'),_0x4eb722+'%'):_0x222abf['or'](_0xeb793c('0x3'),qs['getFullTextValue'](_0x4eb722))['or'](_0xeb793c('0x64'),_0x4eb722+'%');}}_0x20ec74[_0xeb793c('0x18')](_0x222abf),_0x20ec74[_0xeb793c('0x42')]('i.id');let _0x448ce0={'type':db['Sequelize'][_0xeb793c('0x22')][_0xeb793c('0x54')],'raw':!![]};const _0x50df18=_0x20ec74[_0xeb793c('0x6c')]();_0x50df18['field'](_0xeb793c('0x95')),_0x50df18[_0xeb793c('0x12')](_0xeb793c('0x67'),'unreadMessages'),_0x3895af[_0xeb793c('0x6')]&&_0x3895af[_0xeb793c('0x6')]['forEach'](function(_0xfa4357){const _0x45348d=_0xeb793c;_0x20ec74[_0x45348d('0x6')]('i.'+_0xfa4357[0x0],_0xfa4357[0x1]===_0x45348d('0xba')?![]:!![]);}),!_[_0xeb793c('0x31')](_0xb978da)&&(_0x20ec74[_0xeb793c('0x96')](_0x20954d),_0x50df18[_0xeb793c('0x18')]('t.id\x20IN\x20?',_0xb978da)),Promise[_0xeb793c('0xce')]()['then'](function(){const _0x343e76=_0xeb793c;if(!_0x328a26){if(_0x2c922c['query'][_0x343e76('0x2d')]||_0x2c922c[_0x343e76('0x92')][_0x343e76('0x52')])return;_0x50df18[_0x343e76('0x18')](_0x343e76('0xb4')),_0x20ec74[_0x343e76('0x18')]('i.SmsAccountId\x20IS\x20NOT\x20NULL');return;}return _0x2c922c['user'][_0x343e76('0x6b')]({'attributes':['id'],'raw':!![]})[_0x343e76('0x7f')](function(_0x3c6850){const _0x3a5eb2=_0x343e76;_[_0x3a5eb2('0x31')](_0x3c6850)?(_0x50df18['where'](_0x3a5eb2('0xb1')),_0x20ec74[_0x3a5eb2('0x18')](_0x3a5eb2('0xb1'))):(_0x50df18['where'](_0x3a5eb2('0x8d'),_['map'](_0x3c6850,'id')),_0x20ec74[_0x3a5eb2('0x18')](_0x3a5eb2('0x8d'),_['map'](_0x3c6850,'id')));});})[_0xeb793c('0x7f')](function(){const _0x58628f=_0xeb793c;db[_0x58628f('0x70')]['query'](_0x50df18[_0x58628f('0x60')](),_0x448ce0)[_0x58628f('0x7f')](function(_0x59d074){const _0x454681=_0x58628f;_0x1ff18d[_0x454681('0xd1')]=_0x59d074[_0x454681('0x9')];if(_0x1ff18d[_0x454681('0xd1')]===0x0)return[];return db['sequelize'][_0x454681('0x92')](_0x47caf7[_0x454681('0x60')](),_0x448ce0)[_0x454681('0x7f')](function(_0x2d1864){const _0x4122a2=_0x454681;_0x86952d=_['keyBy'](_0x2d1864,'id'),_0x448ce0=_['merge'](_0x448ce0,{'model':db['SmsInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x2c922c['query']['fields']?_0x3895af['attributes']['forEach'](function(_0x508877){const _0x1d3f23=a553_0xc824;_0x20ec74[_0x1d3f23('0x12')]('i.'+_0x508877);}):(_0x20ec74[_0x4122a2('0x12')](_0x4122a2('0x67'),_0x4122a2('0xd5')),_0x20ec74[_0x4122a2('0x12')](_0x4122a2('0x24'),_0x4122a2('0xa6')),_0x20ec74[_0x4122a2('0x12')](_0x4122a2('0x1d'),_0x4122a2('0x4a')),_0x20ec74[_0x4122a2('0x12')](_0x4122a2('0x75')),_0x20ec74[_0x4122a2('0x12')](_0x4122a2('0x5a'),'Contact.firstName'),_0x20ec74[_0x4122a2('0x12')]('c.lastName',_0x4122a2('0x7a')),_0x20ec74[_0x4122a2('0x12')](_0x4122a2('0xd4'),_0x4122a2('0x40')),_0x20ec74[_0x4122a2('0x12')](_0x4122a2('0x73'),_0x4122a2('0x3b')),_0x20ec74['field'](_0x4122a2('0x8f'),'Contact.mobile'),_0x20ec74[_0x4122a2('0x12')](_0x4122a2('0x2'),_0x4122a2('0x39')),_0x20ec74['field'](_0x4122a2('0x7c'),_0x4122a2('0x5e')),_0x20ec74['field'](_0x4122a2('0x11'),'Owner.internal'),_0x20ec74['field']('GROUP_CONCAT(DISTINCT\x20t.id)',_0x4122a2('0x3e')));if(_0x3895af[_0x4122a2('0x98')])_0x20ec74['limit'](_0x3895af['limit']);if(_0x3895af[_0x4122a2('0x30')])_0x20ec74['offset'](_0x3895af['offset']);return db[_0x4122a2('0x70')][_0x4122a2('0x92')](_0x20ec74['toString'](),_0x448ce0);})['then'](function(_0x29dc91){const _0x116ed3=_0x454681;return _0x448be1[_0x116ed3('0x18')]('ui.SmsInteractionId\x20IN\x20?',_['map'](_0x29dc91,'id')),db['sequelize'][_0x116ed3('0x92')](_0x448be1[_0x116ed3('0x60')](),_0x448ce0)['then'](function(_0x331410){const _0x47c7a1=_0x116ed3,_0x261ac5=_['groupBy'](_0x331410,_0x47c7a1('0xf')),_0x50a09b=[];return _0x29dc91['forEach'](function(_0x19e299){const _0x482cc0=_0x47c7a1;_0x50a09b[_0x482cc0('0x9d')](updateSmsInteraction(_0x19e299,_0x86952d,_0x261ac5));}),Promise[_0x47c7a1('0x4d')](_0x50a09b);});});})['then'](function(_0x332c01){const _0x4a0d88=_0x58628f;return _0x1ff18d[_0x4a0d88('0x4c')]=_0x332c01,_0x1ff18d;})[_0x58628f('0x7f')](respondWithFilteredResult(_0x35d7a0,_0x3895af));})['catch'](handleError(_0x35d7a0,null));},exports[_0x1ae642('0x87')]=function(_0x749883,_0x528868){const _0x4db70f=_0x1ae642;let _0x3f0d79={'raw':![],'where':{'id':_0x749883['params']['id']}};const _0x1f65fa={};return _0x1f65fa['model']=_[_0x4db70f('0xb5')](db[_0x4db70f('0xa')]['rawAttributes']),_0x1f65fa[_0x4db70f('0x92')]=_[_0x4db70f('0xb5')](_0x749883[_0x4db70f('0x92')]),_0x1f65fa[_0x4db70f('0xae')]=_['intersection'](_0x1f65fa['model'],_0x1f65fa[_0x4db70f('0x92')]),_0x3f0d79[_0x4db70f('0x28')]=_['intersection'](_0x1f65fa['model'],qs[_0x4db70f('0x1e')](_0x749883[_0x4db70f('0x92')][_0x4db70f('0x1e')])),_0x3f0d79[_0x4db70f('0x28')]=_0x3f0d79['attributes']['length']?_0x3f0d79[_0x4db70f('0x28')]:_0x1f65fa['model'],_0x749883[_0x4db70f('0x92')][_0x4db70f('0x38')]&&(_0x3f0d79[_0x4db70f('0xbd')]=[{'all':!![]}]),_0x3f0d79=_[_0x4db70f('0x68')]({},_0x3f0d79,_0x749883['options']),db[_0x4db70f('0xa')][_0x4db70f('0x1b')](_0x3f0d79)['then'](handleEntityNotFound(_0x528868,null))[_0x4db70f('0x7f')](respondWithResult(_0x528868,null))['catch'](handleError(_0x528868,null));},exports[_0x1ae642('0x63')]=function(_0x2ec395,_0x4d14e5){const _0x190119=_0x1ae642;return db[_0x190119('0xa')][_0x190119('0x63')](_0x2ec395[_0x190119('0x16')],{})[_0x190119('0x7f')](respondWithResult(_0x4d14e5,0xc9))[_0x190119('0x79')](handleError(_0x4d14e5,null));},exports[_0x1ae642('0x6d')]=function(_0x1ca2d7,_0x1e35b2){const _0x3efe1=_0x1ae642;return _0x1ca2d7[_0x3efe1('0x16')]['id']&&delete _0x1ca2d7[_0x3efe1('0x16')]['id'],db['SmsInteraction'][_0x3efe1('0x1b')]({'where':{'id':_0x1ca2d7['params']['id']}})['then'](handleEntityNotFound(_0x1e35b2,null))[_0x3efe1('0x7f')](saveUpdates(_0x1ca2d7['body'],null))['then'](respondWithResult(_0x1e35b2,null))[_0x3efe1('0x79')](handleError(_0x1e35b2,null));},exports['destroy']=function(_0x577f48,_0x5a3870){const _0x523f02=_0x1ae642;return db[_0x523f02('0xa')][_0x523f02('0x1b')]({'where':{'id':_0x577f48[_0x523f02('0x5')]['id']}})[_0x523f02('0x7f')](handleEntityNotFound(_0x5a3870,null))[_0x523f02('0x7f')](removeEntity(_0x5a3870,null))['catch'](handleError(_0x5a3870,null));},exports[_0x1ae642('0x61')]=function(_0x43b02e,_0x4d1a12){const _0x1d8d38=_0x1ae642;return db[_0x1d8d38('0xa')][_0x1d8d38('0x61')]()[_0x1d8d38('0x7f')](respondWithResult(_0x4d1a12,null))['catch'](handleError(_0x4d1a12,null));},exports['addMessage']=function(_0x2cd362,_0x284068){const _0x47dea5=_0x1ae642;return db['SmsMessage']['findOne']({'where':{'id':_0x2cd362[_0x47dea5('0x5')]['id']}})['then'](function(_0x4920b5){const _0x81641c=_0x47dea5;if(_0x4920b5)return _0x4920b5[_0x81641c('0x9b')](_0x2cd362['body'][_0x81641c('0x35')],{'through':_[_0x81641c('0x2b')](_0x2cd362[_0x81641c('0x16')],[_0x81641c('0x35'),'id'])});})['then'](respondWithResult(_0x284068,null))[_0x47dea5('0x79')](handleError(_0x284068,null));},exports[_0x1ae642('0x71')]=function(_0x3895b5,_0x150acc){const _0x229d5d=_0x1ae642;let _0x1af6b8={'raw':![],'where':{}};const _0x48b4fc={},_0x180939={'count':0x0,'rows':[]};return db[_0x229d5d('0xa')][_0x229d5d('0x1b')]({'where':{'id':_0x3895b5['params']['id']}})[_0x229d5d('0x7f')](handleEntityNotFound(_0x150acc,null))[_0x229d5d('0x7f')](function(_0x331ec4){const _0x3e6896=_0x229d5d;if(_0x331ec4){_0x48b4fc['model']=_['keys'](db[_0x3e6896('0x86')][_0x3e6896('0x6e')]),_0x48b4fc['query']=_[_0x3e6896('0xb5')](_0x3895b5[_0x3e6896('0x92')]),_0x48b4fc[_0x3e6896('0xae')]=_[_0x3e6896('0x21')](_0x48b4fc[_0x3e6896('0x2c')],_0x48b4fc[_0x3e6896('0x92')]),_0x1af6b8[_0x3e6896('0x28')]=_[_0x3e6896('0x21')](_0x48b4fc[_0x3e6896('0x2c')],qs[_0x3e6896('0x1e')](_0x3895b5[_0x3e6896('0x92')]['fields'])),_0x1af6b8[_0x3e6896('0x28')]=_0x1af6b8['attributes'][_0x3e6896('0x9')]?_0x1af6b8[_0x3e6896('0x28')]:_0x48b4fc[_0x3e6896('0x2c')];typeof _0x3895b5[_0x3e6896('0x92')][_0x3e6896('0x83')]===_0x3e6896('0x9a')&&(_0x1af6b8[_0x3e6896('0x98')]=qs[_0x3e6896('0x98')](_0x3895b5[_0x3e6896('0x92')][_0x3e6896('0x98')]),_0x1af6b8['offset']=qs[_0x3e6896('0x30')](_0x3895b5['query'][_0x3e6896('0x30')]));_0x1af6b8['order']=qs[_0x3e6896('0xa7')](_0x3895b5[_0x3e6896('0x92')][_0x3e6896('0xa7')]),_0x1af6b8['where']=qs['filters'](_[_0x3e6896('0x34')](_0x3895b5[_0x3e6896('0x92')],_0x48b4fc['filters'])),_0x1af6b8[_0x3e6896('0x18')][_0x3e6896('0xf')]=_0x331ec4['id'];_0x3895b5[_0x3e6896('0x92')]['filter']&&(_0x1af6b8[_0x3e6896('0x18')]=_[_0x3e6896('0x68')](_0x1af6b8[_0x3e6896('0x18')],{[Op['or']]:_[_0x3e6896('0x1c')](_0x1af6b8[_0x3e6896('0x28')],function(_0x5df626){const _0xa7b181=_0x3e6896,_0x45b17c={};return _0x45b17c[_0x5df626]={[Op[_0xa7b181('0x13')]]:'%'+_0x3895b5['query']['filter']+'%'},_0x45b17c;})}));if(_0x3895b5[_0x3e6896('0x92')][_0x3e6896('0x17')]){const _0x2e5a93=_0x3895b5[_0x3e6896('0x92')][_0x3e6896('0x17')][_0x3e6896('0xa9')](','),_0x3177e0={};_0x3177e0[_0x2e5a93[0x0]]={[Op[_0x3e6896('0x1a')]]:moment(_0x2e5a93[0x1])[_0x3e6896('0x14')](_0x3e6896('0xb0'))},_0x1af6b8[_0x3e6896('0x18')]=_[_0x3e6896('0x68')](_0x1af6b8[_0x3e6896('0x18')],_0x3177e0);}return _0x1af6b8=_[_0x3e6896('0x68')]({},_0x1af6b8,_0x3895b5['options']),db[_0x3e6896('0x86')]['count']({'where':_0x1af6b8['where']})['then'](function(_0x3c9a50){const _0x38623b=_0x3e6896;return _0x180939[_0x38623b('0xd1')]=_0x3c9a50,_0x3895b5['query'][_0x38623b('0x38')]&&(_0x1af6b8['include']=[{'all':!![]}]),db[_0x38623b('0x86')][_0x38623b('0x7b')](_0x1af6b8);})[_0x3e6896('0x7f')](function(_0x2ae351){return _0x180939['rows']=_0x2ae351,_0x180939;});}})['then'](respondWithFilteredResult(_0x150acc,_0x1af6b8))['catch'](handleError(_0x150acc,null));},exports[_0x1ae642('0x80')]=function(_0x186fc4,_0x3b1fd5){const _0x563e20=_0x1ae642;return db[_0x563e20('0xa')]['findOne']({'where':{'id':_0x186fc4[_0x563e20('0x5')]['id']}})[_0x563e20('0x7f')](function(_0x31b5ee){const _0x3cbbaa=_0x563e20;if(_0x31b5ee)return _0x31b5ee[_0x3cbbaa('0xca')](_0x186fc4[_0x3cbbaa('0x16')][_0x3cbbaa('0x35')],{'through':_['omit'](_0x186fc4[_0x3cbbaa('0x16')],['ids','id'])})['then'](function(){const _0x3cfc60=_0x3cbbaa;return db[_0x3cfc60('0xd2')][_0x3cfc60('0x7b')]({'attributes':['id',_0x3cfc60('0x2e'),_0x3cfc60('0x55')],'where':{'id':_0x186fc4['body'][_0x3cfc60('0x35')]}});})[_0x3cbbaa('0x7f')](function(_0x5a6b4f){const _0x1ea769=_0x3cbbaa;return socket[_0x1ea769('0xd0')]('smsInteractionTags:save',{'id':Number(_0x186fc4[_0x1ea769('0x5')]['id']),'tags':_0x5a6b4f||[]}),{'id':Number(_0x186fc4[_0x1ea769('0x5')]['id']),'tags':_0x5a6b4f||[]};});})['then'](respondWithResult(_0x3b1fd5,null))['catch'](handleError(_0x3b1fd5,null));},exports[_0x1ae642('0xb7')]=function(_0x5be4b3,_0x3378ea){const _0x1ee504=_0x1ae642;return db[_0x1ee504('0xa')][_0x1ee504('0x1b')]({'where':{'id':_0x5be4b3['params']['id']}})[_0x1ee504('0x7f')](handleEntityNotFound(_0x3378ea,null))[_0x1ee504('0x7f')](function(_0x4f9b6e){const _0x40e64c=_0x1ee504;if(_0x4f9b6e)return _0x4f9b6e[_0x40e64c('0xb7')](_0x5be4b3[_0x40e64c('0x92')][_0x40e64c('0x35')]);})['then'](respondWithStatusCode(_0x3378ea,null))['catch'](handleError(_0x3378ea,null));},exports[_0x1ae642('0x0')]=function(_0x15f2ac,_0x417641){const _0x17bd46=_0x1ae642,_0x569d9d=moment()[_0x17bd46('0x93')]()[_0x17bd46('0x60')](),_0x28d260=path[_0x17bd46('0x36')](config[_0x17bd46('0x6a')],_0x17bd46('0xc7'),_0x17bd46('0xaf'),_0x17bd46('0x51')),_0x7a153a=path[_0x17bd46('0x36')](_0x28d260,_0x569d9d),_0x1e572c=util[_0x17bd46('0x14')](_0x17bd46('0x78'),_0x15f2ac['params']['id'],_0x569d9d),_0x26d416=path[_0x17bd46('0x36')](_0x28d260,_0x1e572c),_0x5575b6=[];_0x5575b6[_0x17bd46('0x9d')]({'model':db[_0x17bd46('0x10')],'as':'User','attributes':['id',_0x17bd46('0xcf')],'raw':!![]}),_0x5575b6[_0x17bd46('0x9d')]({'model':db[_0x17bd46('0x58')],'as':'Contact','attributes':['id',_0x17bd46('0x2a'),'lastName'],'raw':!![]});const _0x2a044a=[{'model':db['SmsMessage'],'as':_0x17bd46('0xad'),'attributes':['id',_0x17bd46('0x16'),_0x17bd46('0x29'),_0x17bd46('0x89'),_0x17bd46('0xc1'),_0x17bd46('0xc9')],'include':_0x5575b6}];return _0x2a044a[_0x17bd46('0x9d')]({'model':db[_0x17bd46('0x82')],'as':_0x17bd46('0x48'),'attributes':['id','name']}),_0x2a044a['push']({'model':db[_0x17bd46('0x10')],'as':_0x17bd46('0x8b'),'attributes':['id','fullname']}),db[_0x17bd46('0xa')][_0x17bd46('0x1b')]({'where':{'id':_0x15f2ac[_0x17bd46('0x5')]['id']},'include':_0x2a044a})[_0x17bd46('0x7f')](handleEntityNotFound(_0x417641,null))[_0x17bd46('0x7f')](function(_0x56f871){const _0x13fb27=_0x17bd46;if(_0x56f871){const _0x3c24d1=_0x56f871['get']({'plain':!![]});fs[_0x13fb27('0x8a')](_0x7a153a);const _0x47adfb={'format':'A4','border':_0x13fb27('0x76'),'header':{'height':'40px','contents':{'first':_0x13fb27('0xc6')}},'footer':{'height':_0x13fb27('0x66'),'contents':{'default':util[_0x13fb27('0x14')]('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',util['format'](_0x13fb27('0x1'),_0x13fb27('0x45'),_0x3c24d1['id']),moment()[_0x13fb27('0x14')](_0x13fb27('0x41'))['toString']())}}},_0x3844d1={'channel':'Sms','account':_0x3c24d1[_0x13fb27('0x48')][_0x13fb27('0x2e')],'agent':_0x3c24d1[_0x13fb27('0x8b')]?_0x3c24d1[_0x13fb27('0x8b')][_0x13fb27('0xcf')]:'N.A.','createdAt':moment(_0x3c24d1[_0x13fb27('0x29')])[_0x13fb27('0x14')]('YYYY-MM-DD\x20HH:mm:ss')[_0x13fb27('0x60')](),'closedAt':_0x3c24d1[_0x13fb27('0xbf')]?moment(_0x3c24d1[_0x13fb27('0xb2')])[_0x13fb27('0x14')](_0x13fb27('0xb0'))['toString']():'','disposition':_0x3c24d1['disposition'],'messages':_(_0x3c24d1[_0x13fb27('0xad')])[_0x13fb27('0x85')]({'secret':![]})[_0x13fb27('0x1c')](function(_0x520ba1){const _0x4ca6b9=_0x13fb27;return{'date':moment(_0x520ba1[_0x4ca6b9('0x29')])[_0x4ca6b9('0x14')](_0x4ca6b9('0xb0'))[_0x4ca6b9('0x60')](),'sender':_0x520ba1[_0x4ca6b9('0x89')]===_0x4ca6b9('0xe')?_0x520ba1[_0x4ca6b9('0x10')]?_0x520ba1[_0x4ca6b9('0x10')][_0x4ca6b9('0xcf')]:_0x4ca6b9('0x5d'):_0x520ba1[_0x4ca6b9('0x3f')]['firstName']+(_0x520ba1[_0x4ca6b9('0x3f')]['lastName']?'\x20'+_0x520ba1[_0x4ca6b9('0x3f')][_0x4ca6b9('0xbb')]:''),'body':_0x520ba1[_0x4ca6b9('0x16')],'direction':_0x520ba1['direction']===_0x4ca6b9('0xe')?'A':'C','secret':_0x520ba1[_0x4ca6b9('0xc1')],'read':_0x520ba1['read']};})[_0x13fb27('0x32')]()};return ejs[_0x13fb27('0x2f')](path['join'](config[_0x13fb27('0x6a')],_0x13fb27('0xc7'),_0x13fb27('0xb6'),_0x13fb27('0x94')),{'interaction':_0x3844d1})['then'](function(_0x480ac5){return new Promise(function(_0x1fff77,_0x100e2c){const _0x405be2=a553_0xc824;pdf[_0x405be2('0x63')](_0x480ac5,_0x47adfb)[_0x405be2('0x19')](path[_0x405be2('0x36')](_0x7a153a,_0x405be2('0x4b')+_0x3c24d1['id']+'-'+_0x569d9d+_0x405be2('0xa2')),function(_0x59405a,_0x358e36){if(_0x59405a)return _0x100e2c(_0x59405a);_0x1fff77(_0x358e36);});});})[_0x13fb27('0x7f')](function(){const _0x58d946=_0x13fb27;return new Promise(function(_0x581f8a,_0x442012){zipdir(_0x7a153a,{'saveTo':_0x26d416},function(_0x368053,_0x5e00f0){if(_0x368053)return _0x442012(_0x368053);return _0x581f8a(_0x5e00f0);});})[_0x58d946('0x7f')](function(){return new Promise(function(_0x145bd2,_0x4d93e7){rimraf(_0x7a153a,function(_0x69585b){if(_0x69585b)_0x4d93e7(_0x69585b);return _0x145bd2();});});})[_0x58d946('0x7f')](function(){const _0x2594a9=_0x58d946;return _0x417641[_0x2594a9('0x0')](_0x26d416,_0x1e572c,function(_0x1464a1){const _0x42f3ed=_0x2594a9;_0x1464a1?console[_0x42f3ed('0x91')](_0x42f3ed('0xa0'),_0x1464a1):fs[_0x42f3ed('0x99')](_0x26d416);});});});}else return _0x417641[_0x13fb27('0x56')](0xc8);})['catch'](handleError(_0x417641,null));}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.events.js b/server/api/smsInteraction/smsInteraction.events.js index 5982853..2ad158c 100644 --- a/server/api/smsInteraction/smsInteraction.events.js +++ b/server/api/smsInteraction/smsInteraction.events.js @@ -1 +1 @@ -const a554_0x1cae=['remove','catch','SmsMessage','events','exports','setMaxListeners','SmsInteraction','emit','map','addHook','length','then','setDataValue','undefined','../../mysqldb','Users'];(function(_0x1b13ca,_0x1caedf){const _0x58589e=function(_0x48dfe1){while(--_0x48dfe1){_0x1b13ca['push'](_0x1b13ca['shift']());}};_0x58589e(++_0x1caedf);}(a554_0x1cae,0xef));const a554_0x5858=function(_0x1b13ca,_0x1caedf){_0x1b13ca=_0x1b13ca-0x0;let _0x58589e=a554_0x1cae[_0x1b13ca];return _0x58589e;};const _0x3514f8=a554_0x5858;'use strict';const EventEmitter=require(_0x3514f8('0x4')),SmsInteraction=require(_0x3514f8('0xf'))['db'][_0x3514f8('0x7')],SmsMessage=require('../../mysqldb')['db'][_0x3514f8('0x3')],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents[_0x3514f8('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x3514f8('0x1')};function emitEvent(_0x48dfe1){return function(_0x39e82c){const _0x1b62fb=a554_0x5858;_0x39e82c['getUsers']({'attributes':['id'],'raw':!![]})[_0x1b62fb('0xc')](function(_0x38196b){const _0x10b436=_0x1b62fb;return _0x39e82c[_0x10b436('0xd')](_0x10b436('0x0'),_0x38196b[_0x10b436('0x9')](function(_0xfe1d8a){return{'id':_0xfe1d8a['id']};})),SmsMessage['findAll']({'where':{'SmsInteractionId':_0x39e82c['id'],'direction':'in','read':![]},'raw':!![]});})[_0x1b62fb('0xc')](function(_0x4d5a41){const _0x1605b0=_0x1b62fb;_0x39e82c[_0x1605b0('0xd')]('unreadMessages',_0x4d5a41[_0x1605b0('0xb')]),SmsInteractionEvents[_0x1605b0('0x8')](_0x48dfe1+':'+_0x39e82c['id'],_0x39e82c),SmsInteractionEvents['emit'](_0x48dfe1,_0x39e82c);})[_0x1b62fb('0x2')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x3514f8('0xe')){const event=events[e];SmsInteraction[_0x3514f8('0xa')](e,emitEvent(event));}}module[_0x3514f8('0x5')]=SmsInteractionEvents; \ No newline at end of file +const a554_0xe069=['getUsers','setDataValue','findAll','remove','undefined','emit','catch','../../mysqldb','save','setMaxListeners','exports','SmsMessage','Users','update','events','then','unreadMessages','map'];(function(_0x5443a4,_0xe06991){const _0x1bb1f5=function(_0x4c608e){while(--_0x4c608e){_0x5443a4['push'](_0x5443a4['shift']());}};_0x1bb1f5(++_0xe06991);}(a554_0xe069,0x99));const a554_0x1bb1=function(_0x5443a4,_0xe06991){_0x5443a4=_0x5443a4-0x0;let _0x1bb1f5=a554_0xe069[_0x5443a4];return _0x1bb1f5;};const _0x6af119=a554_0x1bb1;'use strict';const EventEmitter=require(_0x6af119('0x5')),SmsInteraction=require('../../mysqldb')['db']['SmsInteraction'],SmsMessage=require(_0x6af119('0x10'))['db'][_0x6af119('0x2')],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents[_0x6af119('0x0')](0x0);const events={'afterCreate':_0x6af119('0x11'),'afterUpdate':_0x6af119('0x4'),'afterDestroy':_0x6af119('0xc')};function emitEvent(_0x4c608e){return function(_0xc1a4cb){const _0x2d6eb8=a554_0x1bb1;_0xc1a4cb[_0x2d6eb8('0x9')]({'attributes':['id'],'raw':!![]})['then'](function(_0x50af15){const _0xef46da=_0x2d6eb8;return _0xc1a4cb['setDataValue'](_0xef46da('0x3'),_0x50af15[_0xef46da('0x8')](function(_0x260912){return{'id':_0x260912['id']};})),SmsMessage[_0xef46da('0xb')]({'where':{'SmsInteractionId':_0xc1a4cb['id'],'direction':'in','read':![]},'raw':!![]});})[_0x2d6eb8('0x6')](function(_0x31d951){const _0x69cc1d=_0x2d6eb8;_0xc1a4cb[_0x69cc1d('0xa')](_0x69cc1d('0x7'),_0x31d951['length']),SmsInteractionEvents[_0x69cc1d('0xe')](_0x4c608e+':'+_0xc1a4cb['id'],_0xc1a4cb),SmsInteractionEvents[_0x69cc1d('0xe')](_0x4c608e,_0xc1a4cb);})[_0x2d6eb8('0xf')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x6af119('0xd')){const event=events[e];SmsInteraction['addHook'](e,emitEvent(event));}}module[_0x6af119('0x1')]=SmsInteractionEvents; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.model.js b/server/api/smsInteraction/smsInteraction.model.js index da17c16..bbddb38 100644 --- a/server/api/smsInteraction/smsInteraction.model.js +++ b/server/api/smsInteraction/smsInteraction.model.js @@ -1 +1 @@ -const a555_0xf9c5=['./smsInteraction.attributes','closedAt','SmsInteraction','exports','YYYY-MM-DD\x20HH:mm:ss','define','changed','closed'];(function(_0x2aed47,_0xf9c554){const _0x46fee3=function(_0x5e6f33){while(--_0x5e6f33){_0x2aed47['push'](_0x2aed47['shift']());}};_0x46fee3(++_0xf9c554);}(a555_0xf9c5,0xa4));const a555_0x46fe=function(_0x2aed47,_0xf9c554){_0x2aed47=_0x2aed47-0x0;let _0x46fee3=a555_0xf9c5[_0x2aed47];return _0x46fee3;};const _0x1636b4=a555_0x46fe;'use strict';const moment=require('moment'),attributes=require(_0x1636b4('0x4'));module[_0x1636b4('0x7')]=function(_0x5e6f33){const _0x2035fe=_0x1636b4,_0x282b04=_0x5e6f33[_0x2035fe('0x1')](_0x2035fe('0x6'),attributes,{'tableName':'sms_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4db6b9){const _0x23307c=_0x2035fe;_0x4db6b9[_0x23307c('0x2')](_0x23307c('0x3'))&&(_0x4db6b9[_0x23307c('0x5')]=moment()['format'](_0x23307c('0x0')));}}});return _0x282b04;}; \ No newline at end of file +const a555_0x2d18=['sms_interactions','define','YYYY-MM-DD\x20HH:mm:ss','SmsInteraction','closedAt','closed','moment','changed'];(function(_0x4100d4,_0x2d185d){const _0x38ae42=function(_0x5696a6){while(--_0x5696a6){_0x4100d4['push'](_0x4100d4['shift']());}};_0x38ae42(++_0x2d185d);}(a555_0x2d18,0x194));const a555_0x38ae=function(_0x4100d4,_0x2d185d){_0x4100d4=_0x4100d4-0x0;let _0x38ae42=a555_0x2d18[_0x4100d4];return _0x38ae42;};const _0x3bb341=a555_0x38ae;'use strict';const moment=require(_0x3bb341('0x2')),attributes=require('./smsInteraction.attributes');module['exports']=function(_0x5696a6){const _0x546bff=_0x3bb341,_0x50a7fc=_0x5696a6[_0x546bff('0x5')](_0x546bff('0x7'),attributes,{'tableName':_0x546bff('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x29a279){const _0x5d78f1=_0x546bff;_0x29a279[_0x5d78f1('0x3')](_0x5d78f1('0x1'))&&(_0x29a279[_0x5d78f1('0x0')]=moment()['format'](_0x5d78f1('0x6')));}}});return _0x50a7fc;}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.rpc.js b/server/api/smsInteraction/smsInteraction.rpc.js index 137f83f..183d8f7 100644 --- a/server/api/smsInteraction/smsInteraction.rpc.js +++ b/server/api/smsInteraction/smsInteraction.rpc.js @@ -1 +1 @@ -const a556_0x6f96=['catch','findOne','where','register','lodash','debug','SmsInteraction','limit','AddTagsToSmsInteraction','body','update','options','UpdateSmsInteraction','message','error','info','../../mysqldb','stringify','attributes','ids','AddTags','then'];(function(_0x23cfb1,_0x6f965c){const _0x17e7b0=function(_0x5c1c40){while(--_0x5c1c40){_0x23cfb1['push'](_0x23cfb1['shift']());}};_0x17e7b0(++_0x6f965c);}(a556_0x6f96,0xb2));const a556_0x17e7=function(_0x23cfb1,_0x6f965c){_0x23cfb1=_0x23cfb1-0x0;let _0x17e7b0=a556_0x6f96[_0x23cfb1];return _0x17e7b0;};const _0x1e32a1=a556_0x17e7;'use strict';const _=require(_0x1e32a1('0x2')),db=require(_0x1e32a1('0xe'))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require('./smsInteraction.socket')[_0x1e32a1('0x1')](socket),exports['UpdateSmsInteraction']=function(_0x5c1c40){const _0x198642=this;return new Promise(function(_0x2b0f32,_0x249752){const _0x1f723e=a556_0x17e7;return db['SmsInteraction'][_0x1f723e('0x8')](_0x5c1c40[_0x1f723e('0x7')],{'raw':_0x5c1c40[_0x1f723e('0x9')]?_0x5c1c40[_0x1f723e('0x9')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5c1c40[_0x1f723e('0x9')]?_0x5c1c40[_0x1f723e('0x9')]['where']||null:null,'attributes':_0x5c1c40[_0x1f723e('0x9')]?_0x5c1c40[_0x1f723e('0x9')][_0x1f723e('0x10')]||null:null,'limit':_0x5c1c40['options']?_0x5c1c40[_0x1f723e('0x9')][_0x1f723e('0x5')]||null:null})['then'](function(_0x4fda13){const _0x32ccb4=_0x1f723e;logger[_0x32ccb4('0xd')](_0x32ccb4('0xa'),_0x5c1c40),logger[_0x32ccb4('0x3')](_0x32ccb4('0xa'),_0x5c1c40,JSON[_0x32ccb4('0xf')](_0x4fda13)),_0x2b0f32(_0x4fda13);})['catch'](function(_0x414e13){const _0x35fd10=_0x1f723e;logger['error'](_0x35fd10('0xa'),_0x414e13[_0x35fd10('0xb')],_0x5c1c40),_0x249752(_0x198642[_0x35fd10('0xc')](0x1f4,_0x414e13[_0x35fd10('0xb')]));});});},exports[_0x1e32a1('0x6')]=function(_0x1dc389){const _0x126356=this;return new Promise(function(_0xe477e9,_0x283e73){const _0x22039b=a556_0x17e7;return db[_0x22039b('0x4')][_0x22039b('0x15')]({'where':_0x1dc389[_0x22039b('0x9')]?_0x1dc389[_0x22039b('0x9')][_0x22039b('0x0')]||null:null})[_0x22039b('0x13')](function(_0x4dbbec){const _0x107e59=_0x22039b;if(_0x4dbbec)return _0x4dbbec['addTags'](_0x1dc389[_0x107e59('0x7')]['ids'],{'through':_['omit'](_0x1dc389[_0x107e59('0x7')],[_0x107e59('0x11'),'id'])});})[_0x22039b('0x13')](function([_0x20c8f1]){const _0xc6efe=_0x22039b;logger['info'](_0xc6efe('0x12'),_0x1dc389),logger[_0xc6efe('0x3')](_0xc6efe('0x12'),_0x1dc389,JSON[_0xc6efe('0xf')](_0x20c8f1)),_0xe477e9(_0x20c8f1);})[_0x22039b('0x14')](function(_0x27ee55){const _0x2824be=_0x22039b;logger['error'](_0x2824be('0x12'),_0x27ee55['message'],_0x1dc389),_0x283e73(_0x126356['error'](0x1f4,_0x27ee55[_0x2824be('0xb')]));});});}; \ No newline at end of file +const a556_0x5ea6=['AddTags','debug','update','message','../../config/logger','../../rediscache','where','info','ids','limit','rpc','UpdateSmsInteraction','error','body','raw','stringify','../../mysqldb','lodash','options','catch','SmsInteraction','findOne','omit'];(function(_0x2db192,_0x5ea6ee){const _0x274388=function(_0x2a767d){while(--_0x2a767d){_0x2db192['push'](_0x2db192['shift']());}};_0x274388(++_0x5ea6ee);}(a556_0x5ea6,0x7c));const a556_0x2743=function(_0x2db192,_0x5ea6ee){_0x2db192=_0x2db192-0x0;let _0x274388=a556_0x5ea6[_0x2db192];return _0x274388;};const _0x4754f5=a556_0x2743;'use strict';const _=require(_0x4754f5('0x8')),db=require(_0x4754f5('0x7'))['db'],logger=require(_0x4754f5('0x12'))(_0x4754f5('0x1')),{getSocket}=require(_0x4754f5('0x13')),socket=getSocket();require('./smsInteraction.socket')['register'](socket),exports['UpdateSmsInteraction']=function(_0x2a767d){const _0x471f42=this;return new Promise(function(_0x4fe2f6,_0x50305b){const _0x2fdc2e=a556_0x2743;return db[_0x2fdc2e('0xb')][_0x2fdc2e('0x10')](_0x2a767d[_0x2fdc2e('0x4')],{'raw':_0x2a767d[_0x2fdc2e('0x9')]?_0x2a767d[_0x2fdc2e('0x9')][_0x2fdc2e('0x5')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2a767d[_0x2fdc2e('0x9')]?_0x2a767d['options'][_0x2fdc2e('0x14')]||null:null,'attributes':_0x2a767d[_0x2fdc2e('0x9')]?_0x2a767d[_0x2fdc2e('0x9')]['attributes']||null:null,'limit':_0x2a767d[_0x2fdc2e('0x9')]?_0x2a767d[_0x2fdc2e('0x9')][_0x2fdc2e('0x0')]||null:null})['then'](function(_0x44486e){const _0x49e92a=_0x2fdc2e;logger[_0x49e92a('0x15')](_0x49e92a('0x2'),_0x2a767d),logger[_0x49e92a('0xf')](_0x49e92a('0x2'),_0x2a767d,JSON[_0x49e92a('0x6')](_0x44486e)),_0x4fe2f6(_0x44486e);})[_0x2fdc2e('0xa')](function(_0x121df3){const _0x3e24cd=_0x2fdc2e;logger['error'](_0x3e24cd('0x2'),_0x121df3[_0x3e24cd('0x11')],_0x2a767d),_0x50305b(_0x471f42[_0x3e24cd('0x3')](0x1f4,_0x121df3[_0x3e24cd('0x11')]));});});},exports['AddTagsToSmsInteraction']=function(_0x398115){const _0x401bb1=this;return new Promise(function(_0x58bcbd,_0x32b655){const _0x35c589=a556_0x2743;return db[_0x35c589('0xb')][_0x35c589('0xc')]({'where':_0x398115['options']?_0x398115[_0x35c589('0x9')]['where']||null:null})['then'](function(_0x2134aa){const _0x362f47=_0x35c589;if(_0x2134aa)return _0x2134aa['addTags'](_0x398115['body'][_0x362f47('0x16')],{'through':_[_0x362f47('0xd')](_0x398115[_0x362f47('0x4')],[_0x362f47('0x16'),'id'])});})['then'](function([_0xae7297]){const _0x769aee=_0x35c589;logger['info'](_0x769aee('0xe'),_0x398115),logger['debug'](_0x769aee('0xe'),_0x398115,JSON[_0x769aee('0x6')](_0xae7297)),_0x58bcbd(_0xae7297);})['catch'](function(_0x2843b4){const _0x6855bf=_0x35c589;logger[_0x6855bf('0x3')](_0x6855bf('0xe'),_0x2843b4[_0x6855bf('0x11')],_0x398115),_0x32b655(_0x401bb1[_0x6855bf('0x3')](0x1f4,_0x2843b4['message']));});});}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.socket.js b/server/api/smsInteraction/smsInteraction.socket.js index d9eed00..3553951 100644 --- a/server/api/smsInteraction/smsInteraction.socket.js +++ b/server/api/smsInteraction/smsInteraction.socket.js @@ -1 +1 @@ -const a557_0x1694=['./smsInteraction.events','update','register','emit','remove','smsInteraction:','save'];(function(_0x514f64,_0x1694cc){const _0x5df029=function(_0x4e93d9){while(--_0x4e93d9){_0x514f64['push'](_0x514f64['shift']());}};_0x5df029(++_0x1694cc);}(a557_0x1694,0x13c));const a557_0x5df0=function(_0x514f64,_0x1694cc){_0x514f64=_0x514f64-0x0;let _0x5df029=a557_0x1694[_0x514f64];return _0x5df029;};const _0x2984fe=a557_0x5df0;'use strict';const SmsInteractionEvents=require(_0x2984fe('0x6')),events=[_0x2984fe('0x5'),_0x2984fe('0x3'),_0x2984fe('0x0')];function createListener(_0x4e93d9,_0xd0ce5a){return function(_0x1bf2cf){const _0x326be2=a557_0x5df0;_0xd0ce5a[_0x326be2('0x2')](_0x4e93d9,_0x1bf2cf);};}exports[_0x2984fe('0x1')]=function(_0x7f0d1c){const _0x520ae6=_0x2984fe;for(let _0x1e0c1a=0x0,_0x539aa8=events['length'];_0x1e0c1a<_0x539aa8;_0x1e0c1a++){const _0x142be8=events[_0x1e0c1a],_0x17317f=createListener(_0x520ae6('0x4')+_0x142be8,_0x7f0d1c);SmsInteractionEvents['on'](_0x142be8,_0x17317f);}}; \ No newline at end of file +const a557_0x1859=['emit','./smsInteraction.events','smsInteraction:','update','length','remove','register'];(function(_0x288e35,_0x185950){const _0x1d85f3=function(_0x41441d){while(--_0x41441d){_0x288e35['push'](_0x288e35['shift']());}};_0x1d85f3(++_0x185950);}(a557_0x1859,0x1b1));const a557_0x1d85=function(_0x288e35,_0x185950){_0x288e35=_0x288e35-0x0;let _0x1d85f3=a557_0x1859[_0x288e35];return _0x1d85f3;};const _0x341302=a557_0x1d85;'use strict';const SmsInteractionEvents=require(_0x341302('0x2')),events=['save',_0x341302('0x6'),_0x341302('0x4')];function createListener(_0x41441d,_0x2e42ed){return function(_0x48394a){const _0x7a4f2e=a557_0x1d85;_0x2e42ed[_0x7a4f2e('0x1')](_0x41441d,_0x48394a);};}exports[_0x341302('0x0')]=function(_0x364d54){const _0x2686a5=_0x341302;for(let _0x1019cc=0x0,_0xfbc4c9=events[_0x2686a5('0x5')];_0x1019cc<_0xfbc4c9;_0x1019cc++){const _0x1e0708=events[_0x1019cc],_0x20f61f=createListener(_0x2686a5('0x3')+_0x1e0708,_0x364d54);SmsInteractionEvents['on'](_0x1e0708,_0x20f61f);}}; \ No newline at end of file diff --git a/server/api/smsMessage/index.js b/server/api/smsMessage/index.js index 24859b4..d56a823 100644 --- a/server/api/smsMessage/index.js +++ b/server/api/smsMessage/index.js @@ -1 +1 @@ -const a558_0x26f1=['create','destroy','delete','Router','/:id','update','smsmessage:create','sms','tracked','../../components/auth/service','/:id/reject','/:id/status','/describe','get','describe','reject','put','express','./smsMessage.controller','isAuthenticated','status'];(function(_0x54fae3,_0x26f188){const _0x4079c9=function(_0x14c375){while(--_0x14c375){_0x54fae3['push'](_0x54fae3['shift']());}};_0x4079c9(++_0x26f188);}(a558_0x26f1,0x19d));const a558_0x4079=function(_0x54fae3,_0x26f188){_0x54fae3=_0x54fae3-0x0;let _0x4079c9=a558_0x26f1[_0x54fae3];return _0x4079c9;};const _0x269bc7=a558_0x4079;'use strict';const express=require(_0x269bc7('0x3')),router=express[_0x269bc7('0xa')](),auth=require(_0x269bc7('0x10')),interaction=require('../../components/interaction/service'),controller=require(_0x269bc7('0x4'));router[_0x269bc7('0x14')]('/',auth[_0x269bc7('0x5')](),controller['index']),router[_0x269bc7('0x14')](_0x269bc7('0x13'),auth[_0x269bc7('0x5')](),controller[_0x269bc7('0x0')]),router['get'](_0x269bc7('0xb'),auth[_0x269bc7('0x5')](),controller['show']),router['post']('/',auth['isAuthenticated'](),interaction[_0x269bc7('0xf')](_0x269bc7('0xe'),_0x269bc7('0xd')),controller[_0x269bc7('0x7')]),router['post'](_0x269bc7('0x12'),controller[_0x269bc7('0x6')]),router[_0x269bc7('0x2')](_0x269bc7('0xb'),auth['isAuthenticated'](),controller[_0x269bc7('0xc')]),router[_0x269bc7('0x2')]('/:id/accept',auth['isAuthenticated'](),controller['accept']),router[_0x269bc7('0x2')](_0x269bc7('0x11'),auth[_0x269bc7('0x5')](),controller[_0x269bc7('0x1')]),router[_0x269bc7('0x9')](_0x269bc7('0xb'),auth[_0x269bc7('0x5')](),controller[_0x269bc7('0x8')]),module['exports']=router; \ No newline at end of file +const a558_0x1c86=['exports','destroy','express','../../components/interaction/service','tracked','sms','update','/describe','reject','/:id/status','../../components/auth/service','index','put','/:id/reject','status','smsmessage:create','/:id','isAuthenticated','post','get'];(function(_0x163754,_0x1c8603){const _0x1cb552=function(_0x30b894){while(--_0x30b894){_0x163754['push'](_0x163754['shift']());}};_0x1cb552(++_0x1c8603);}(a558_0x1c86,0x12a));const a558_0x1cb5=function(_0x163754,_0x1c8603){_0x163754=_0x163754-0x0;let _0x1cb552=a558_0x1c86[_0x163754];return _0x1cb552;};const _0x57fdf3=a558_0x1cb5;'use strict';const express=require(_0x57fdf3('0x4')),router=express['Router'](),auth=require(_0x57fdf3('0xc')),interaction=require(_0x57fdf3('0x5')),controller=require('./smsMessage.controller');router[_0x57fdf3('0x1')]('/',auth[_0x57fdf3('0x13')](),controller[_0x57fdf3('0xd')]),router[_0x57fdf3('0x1')](_0x57fdf3('0x9'),auth[_0x57fdf3('0x13')](),controller['describe']),router[_0x57fdf3('0x1')](_0x57fdf3('0x12'),auth[_0x57fdf3('0x13')](),controller['show']),router[_0x57fdf3('0x0')]('/',auth['isAuthenticated'](),interaction[_0x57fdf3('0x6')](_0x57fdf3('0x7'),_0x57fdf3('0x11')),controller['create']),router[_0x57fdf3('0x0')](_0x57fdf3('0xb'),controller[_0x57fdf3('0x10')]),router[_0x57fdf3('0xe')](_0x57fdf3('0x12'),auth[_0x57fdf3('0x13')](),controller[_0x57fdf3('0x8')]),router[_0x57fdf3('0xe')]('/:id/accept',auth[_0x57fdf3('0x13')](),controller['accept']),router[_0x57fdf3('0xe')](_0x57fdf3('0xf'),auth['isAuthenticated'](),controller[_0x57fdf3('0xa')]),router['delete'](_0x57fdf3('0x12'),auth['isAuthenticated'](),controller[_0x57fdf3('0x3')]),module[_0x57fdf3('0x2')]=router; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.attributes.js b/server/api/smsMessage/smsMessage.attributes.js index f67b83c..0873478 100644 --- a/server/api/smsMessage/smsMessage.attributes.js +++ b/server/api/smsMessage/smsMessage.attributes.js @@ -1 +1 @@ -const a559_0x2504=['sequelize','STRING','DATE','TEXT','out','medium','BOOLEAN','exports','ENUM'];(function(_0x186cef,_0x25048a){const _0x4f7039=function(_0x697d58){while(--_0x697d58){_0x186cef['push'](_0x186cef['shift']());}};_0x4f7039(++_0x25048a);}(a559_0x2504,0x124));const a559_0x4f70=function(_0x186cef,_0x25048a){_0x186cef=_0x186cef-0x0;let _0x4f7039=a559_0x2504[_0x186cef];return _0x4f7039;};const _0x5d8273=a559_0x4f70;'use strict';const Sequelize=require(_0x5d8273('0x5'));module[_0x5d8273('0x3')]={'body':{'type':Sequelize[_0x5d8273('0x8')](_0x5d8273('0x1')),'allowNull':![]},'read':{'type':Sequelize[_0x5d8273('0x2')],'defaultValue':![]},'direction':{'type':Sequelize[_0x5d8273('0x4')]('in',_0x5d8273('0x0')),'defaultValue':_0x5d8273('0x0'),'allowNull':![]},'messageId':{'type':Sequelize[_0x5d8273('0x6')](0xbe)},'phone':{'type':Sequelize[_0x5d8273('0x6')]},'readAt':{'type':Sequelize[_0x5d8273('0x7')]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +const a559_0x3475=['STRING','DATE','out','medium','exports','TEXT','BOOLEAN'];(function(_0x9cc819,_0x3475c9){const _0x3bbaaa=function(_0x5d78f4){while(--_0x5d78f4){_0x9cc819['push'](_0x9cc819['shift']());}};_0x3bbaaa(++_0x3475c9);}(a559_0x3475,0x11b));const a559_0x3bba=function(_0x9cc819,_0x3475c9){_0x9cc819=_0x9cc819-0x0;let _0x3bbaaa=a559_0x3475[_0x9cc819];return _0x3bbaaa;};const _0x50ce60=a559_0x3bba;'use strict';const Sequelize=require('sequelize');module[_0x50ce60('0x1')]={'body':{'type':Sequelize[_0x50ce60('0x2')](_0x50ce60('0x0')),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x50ce60('0x6')),'defaultValue':_0x50ce60('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0x50ce60('0x4')](0xbe)},'phone':{'type':Sequelize[_0x50ce60('0x4')]},'readAt':{'type':Sequelize[_0x50ce60('0x5')]},'secret':{'type':Sequelize[_0x50ce60('0x3')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.controller.js b/server/api/smsMessage/smsMessage.controller.js index c771b83..2853d85 100644 --- a/server/api/smsMessage/smsMessage.controller.js +++ b/server/api/smsMessage/smsMessage.controller.js @@ -1 +1 @@ -const a560_0x216c=['includeAll','sms-interactions','pick','delivered','info','event','fieldName','inspect','acceptMessage','undefined','map','send','SmsAccount','read1stAt','accept','../../components/parsers/qs','where','isNil','count','twilio','get','debug','indexOf','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','request\x20sent','stack','SIP/%s','update','findAll','then','query','DELIVERED','key','register','api','manual','infobip','attributes','json','model','../../config/logger','agent','rawAttributes','filter','stringify','Status','received\x20delivery\x20report\x20from','findOne','format','results','request','filters','moment','SmsMessage,\x20%s,\x20%s','length','name','http','reject','client','SmsAccount,\x20%s,\x20%s,\x20%s','end','like','SmsInteractionId','describe','MessageUUID','status','body','jayson/promise','options','EventManager','sms','MessageSid','null','[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','messageId','create','error','rejectMessage','include','limit','sequelize','readAt','params','UserId','destroy','util','sort','lodash','VIRTUAL','YYYY-MM-DD\x20HH:mm:ss','SmsMessage','../../rediscache','SmsAccountId','user','merge','offset','type','fields','intersection','set','../../mysqldb','interaction','Content-Range','plivo','keys','catch','index','role','groupName','message','sent','channel','show','acceptmessage'];(function(_0x4b113d,_0x216c37){const _0x1ea10d=function(_0x19c1a0){while(--_0x19c1a0){_0x4b113d['push'](_0x4b113d['shift']());}};_0x1ea10d(++_0x216c37);}(a560_0x216c,0x11a));const a560_0x1ea1=function(_0x4b113d,_0x216c37){_0x4b113d=_0x4b113d-0x0;let _0x1ea10d=a560_0x216c[_0x4b113d];return _0x1ea10d;};const _0x56a4dc=a560_0x1ea1;'use strict';const moment=require(_0x56a4dc('0x70')),util=require(_0x56a4dc('0x1f')),_=require(_0x56a4dc('0x21')),qs=require(_0x56a4dc('0x4b')),logger=require(_0x56a4dc('0x64'))(_0x56a4dc('0x5e')),{getSocket}=require(_0x56a4dc('0x25')),socket=getSocket(),db=require(_0x56a4dc('0x2e'))['db'],{Op}=require(_0x56a4dc('0x1a')),interaction_log=require(_0x56a4dc('0x64'))(_0x56a4dc('0x3d'));require('./smsMessage.socket')[_0x56a4dc('0x5d')](socket);const jayson=require(_0x56a4dc('0xd')),client=jayson[_0x56a4dc('0x4')][_0x56a4dc('0x2')]({'port':0x232c}),client9002=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x19c1a0,_0x5cc565,_0x2daaac,_0x23393f){return new Promise(function(_0x326e2f,_0x4fbed3){const _0xd687f9=a560_0x1ea1,_0x23eb5f=_0x23393f||client;return _0x23eb5f[_0xd687f9('0x6e')](_0x19c1a0,_0x2daaac)['then'](function(_0x5c6228){const _0x15d155=_0xd687f9;logger[_0x15d155('0x40')]('SmsMessage,\x20%s,\x20%s',_0x5cc565,_0x15d155('0x54')),logger['debug']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x5cc565,_0x15d155('0x54'),JSON[_0x15d155('0x68')](_0x5c6228));if(_0x5c6228['error']){if(_0x5c6228['error']['code']===0x1f4)return logger[_0x15d155('0x16')](_0x15d155('0x71'),_0x5cc565,_0x5c6228[_0x15d155('0x16')][_0x15d155('0x37')]),_0x4fbed3(_0x5c6228[_0x15d155('0x16')][_0x15d155('0x37')]);return logger[_0x15d155('0x16')]('SmsMessage,\x20%s,\x20%s',_0x5cc565,_0x5c6228[_0x15d155('0x16')][_0x15d155('0x37')]),_0x326e2f(_0x5c6228[_0x15d155('0x16')][_0x15d155('0x37')]);}else logger[_0x15d155('0x40')](_0x15d155('0x71'),_0x5cc565,_0x15d155('0x54')),_0x326e2f(_0x5c6228['result']['message']);})['catch'](function(_0x2d1eac){const _0x2e86cc=_0xd687f9;logger[_0x2e86cc('0x16')](_0x2e86cc('0x71'),_0x5cc565,_0x2d1eac),_0x4fbed3(_0x2d1eac);});});}function respondWithResult(_0x56c944,_0x3cd8fc){return _0x3cd8fc=_0x3cd8fc||0xc8,function(_0x37adc0){const _0x577939=a560_0x1ea1;if(_0x37adc0)return _0x56c944[_0x577939('0xb')](_0x3cd8fc)['json'](_0x37adc0);};}function respondWithFilteredResult(_0x26dc69,_0x5d39cf){return function(_0x5944f1){const _0x391cba=a560_0x1ea1;if(_0x5944f1){const _0x30a489=_0x5944f1['count'],_0x4d9189=_0x5d39cf['offset'];let _0x5c4aac=_0x5d39cf[_0x391cba('0x29')]+_0x5d39cf['limit'],_0x5904ca;return _0x5c4aac>=_0x30a489?(_0x5c4aac=_0x30a489,_0x5904ca=0xc8):_0x5904ca=0xce,_0x26dc69[_0x391cba('0xb')](_0x5904ca),_0x26dc69[_0x391cba('0x2d')](_0x391cba('0x30'),_0x4d9189+'-'+_0x5c4aac+'/'+_0x30a489)[_0x391cba('0x62')](_0x5944f1);}return null;};}function saveUpdates(_0xccd94f){return function(_0x3379e7){const _0x8d41=a560_0x1ea1;if(_0x3379e7)return _0x3379e7[_0x8d41('0x57')](_0xccd94f)['then'](function(_0x5b348e){return _0x5b348e;});return null;};}function removeEntity(_0x3a3f45){return function(_0x202774){const _0x1790a4=a560_0x1ea1;if(_0x202774)return _0x202774[_0x1790a4('0x1e')]()[_0x1790a4('0x59')](function(){const _0x269859=_0x1790a4;_0x3a3f45[_0x269859('0xb')](0xcc)[_0x269859('0x6')]();});};}function handleEntityNotFound(_0x120ba7){return function(_0x435eb5){return!_0x435eb5&&_0x120ba7['sendStatus'](0x194),_0x435eb5;};}function handleError(_0x30a977,_0x778cb0){return _0x778cb0=_0x778cb0||0x1f4,function(_0x243a40){const _0x2840ae=a560_0x1ea1;logger['error'](_0x243a40[_0x2840ae('0x55')]),_0x243a40[_0x2840ae('0x1')]&&delete _0x243a40[_0x2840ae('0x1')],_0x30a977[_0x2840ae('0xb')](_0x778cb0)[_0x2840ae('0x47')](_0x243a40);};}exports[_0x56a4dc('0x34')]=function(_0x1a6946,_0x268d21){const _0x3cd829=_0x56a4dc;let _0x137a80={};const _0x49e290={},_0x19c483={'count':0x0,'rows':[]},_0x317da9=_['map'](db['SmsMessage'][_0x3cd829('0x66')],function(_0x3591e8){const _0x11e962=_0x3cd829;return{'name':_0x3591e8[_0x11e962('0x42')],'type':_0x3591e8['type'][_0x11e962('0x5c')]};});_0x49e290['model']=_[_0x3cd829('0x46')](_0x317da9,_0x3cd829('0x1')),_0x49e290[_0x3cd829('0x5a')]=_[_0x3cd829('0x32')](_0x1a6946[_0x3cd829('0x5a')]),_0x49e290[_0x3cd829('0x6f')]=_['intersection'](_0x49e290['model'],_0x49e290[_0x3cd829('0x5a')]),_0x137a80[_0x3cd829('0x61')]=_[_0x3cd829('0x2c')](_0x49e290[_0x3cd829('0x63')],qs[_0x3cd829('0x2b')](_0x1a6946['query'][_0x3cd829('0x2b')])),_0x137a80[_0x3cd829('0x61')]=_0x137a80[_0x3cd829('0x61')]['length']?_0x137a80['attributes']:_0x49e290[_0x3cd829('0x63')];typeof _0x1a6946[_0x3cd829('0x5a')]['nolimit']===_0x3cd829('0x45')&&(_0x137a80[_0x3cd829('0x19')]=qs[_0x3cd829('0x19')](_0x1a6946[_0x3cd829('0x5a')][_0x3cd829('0x19')]),_0x137a80[_0x3cd829('0x29')]=qs[_0x3cd829('0x29')](_0x1a6946[_0x3cd829('0x5a')]['offset']));_0x137a80['order']=qs[_0x3cd829('0x20')](_0x1a6946[_0x3cd829('0x5a')][_0x3cd829('0x20')]),_0x137a80[_0x3cd829('0x4c')]=qs['filters'](_[_0x3cd829('0x3e')](_0x1a6946[_0x3cd829('0x5a')],_0x49e290[_0x3cd829('0x6f')]),_0x317da9);_0x1a6946[_0x3cd829('0x5a')][_0x3cd829('0x67')]&&(_0x137a80['where']=_[_0x3cd829('0x28')](_0x137a80[_0x3cd829('0x4c')],{[Op['or']]:_['map'](_0x317da9,function(_0x13b831){const _0xe35684=_0x3cd829;if(_0x13b831[_0xe35684('0x2a')]!==_0xe35684('0x22')){const _0x1f72a0={};return _0x1f72a0[_0x13b831['name']]={[Op[_0xe35684('0x7')]]:'%'+_0x1a6946['query']['filter']+'%'},_0x1f72a0;}})}));_0x137a80=_[_0x3cd829('0x28')]({},_0x137a80,_0x1a6946[_0x3cd829('0xe')]);const _0x333071={'where':_0x137a80[_0x3cd829('0x4c')]};return db['SmsMessage'][_0x3cd829('0x4e')](_0x333071)[_0x3cd829('0x59')](function(_0x6b472c){const _0x2df678=_0x3cd829;return _0x19c483['count']=_0x6b472c,_0x1a6946[_0x2df678('0x5a')]['includeAll']&&(_0x137a80[_0x2df678('0x18')]=[{'all':!![]}]),db[_0x2df678('0x24')][_0x2df678('0x58')](_0x137a80);})['then'](function(_0x25aee5){return _0x19c483['rows']=_0x25aee5,_0x19c483;})['then'](respondWithFilteredResult(_0x268d21,_0x137a80))[_0x3cd829('0x33')](handleError(_0x268d21,null));},exports[_0x56a4dc('0x3a')]=function(_0x46a6cf,_0xf28402){const _0x28251e=_0x56a4dc;let _0x201b1d={'raw':!![],'where':{'id':_0x46a6cf['params']['id']}};const _0x217562={};return _0x217562[_0x28251e('0x63')]=_[_0x28251e('0x32')](db[_0x28251e('0x24')][_0x28251e('0x66')]),_0x217562[_0x28251e('0x5a')]=_[_0x28251e('0x32')](_0x46a6cf[_0x28251e('0x5a')]),_0x217562[_0x28251e('0x6f')]=_[_0x28251e('0x2c')](_0x217562[_0x28251e('0x63')],_0x217562[_0x28251e('0x5a')]),_0x201b1d[_0x28251e('0x61')]=_[_0x28251e('0x2c')](_0x217562['model'],qs[_0x28251e('0x2b')](_0x46a6cf[_0x28251e('0x5a')][_0x28251e('0x2b')])),_0x201b1d[_0x28251e('0x61')]=_0x201b1d[_0x28251e('0x61')][_0x28251e('0x0')]?_0x201b1d[_0x28251e('0x61')]:_0x217562[_0x28251e('0x63')],_0x46a6cf['query'][_0x28251e('0x3c')]&&(_0x201b1d[_0x28251e('0x18')]=[{'all':!![]}]),_0x201b1d=_[_0x28251e('0x28')]({},_0x201b1d,_0x46a6cf[_0x28251e('0xe')]),db['SmsMessage'][_0x28251e('0x6b')](_0x201b1d)[_0x28251e('0x59')](handleEntityNotFound(_0xf28402,null))['then'](respondWithResult(_0xf28402,null))['catch'](handleError(_0xf28402,null));},exports[_0x56a4dc('0x15')]=function(_0x1930ff,_0x3a93c2){const _0x59480d=_0x56a4dc;return db[_0x59480d('0x24')][_0x59480d('0x15')](_0x1930ff[_0x59480d('0xc')],{})[_0x59480d('0x59')](respondWithResult(_0x3a93c2,0xc9))[_0x59480d('0x33')](handleError(_0x3a93c2,null));},exports[_0x56a4dc('0x57')]=function(_0x4d2aa2,_0x44090c){const _0x504d32=_0x56a4dc;return _0x4d2aa2[_0x504d32('0xc')]['id']&&delete _0x4d2aa2[_0x504d32('0xc')]['id'],db[_0x504d32('0x24')][_0x504d32('0x6b')]({'where':{'id':_0x4d2aa2['params']['id']}})[_0x504d32('0x59')](handleEntityNotFound(_0x44090c,null))[_0x504d32('0x59')](saveUpdates(_0x4d2aa2[_0x504d32('0xc')],null))[_0x504d32('0x59')](respondWithResult(_0x44090c,null))[_0x504d32('0x33')](handleError(_0x44090c,null));},exports[_0x56a4dc('0x1e')]=function(_0x194bfb,_0x57ce7d){const _0x8d0c47=_0x56a4dc;return db[_0x8d0c47('0x24')][_0x8d0c47('0x6b')]({'where':{'id':_0x194bfb[_0x8d0c47('0x1c')]['id']}})[_0x8d0c47('0x59')](handleEntityNotFound(_0x57ce7d,null))[_0x8d0c47('0x59')](removeEntity(_0x57ce7d,null))[_0x8d0c47('0x33')](handleError(_0x57ce7d,null));},exports[_0x56a4dc('0x9')]=function(_0x55b63c,_0x2ba3ec){const _0x45ffae=_0x56a4dc;return db[_0x45ffae('0x24')][_0x45ffae('0x9')]()[_0x45ffae('0x59')](respondWithResult(_0x2ba3ec,null))[_0x45ffae('0x33')](handleError(_0x2ba3ec,null));},exports[_0x56a4dc('0x4a')]=function(_0x3431a5,_0x308ba8){const _0x4c258c=_0x56a4dc,_0x2e725c={'channel':_0x4c258c('0x10')};return _0x3431a5[_0x4c258c('0xc')]['id']&&delete _0x3431a5[_0x4c258c('0xc')]['id'],_0x3431a5[_0x4c258c('0xc')]['read']=!![],_0x3431a5[_0x4c258c('0xc')][_0x4c258c('0x1b')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x3431a5['body']['UserId']=_0x3431a5[_0x4c258c('0xc')][_0x4c258c('0x1d')]||_0x3431a5['user']['id'],db[_0x4c258c('0x24')][_0x4c258c('0x6b')]({'where':{'id':_0x3431a5['params']['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':'Contact'}]})[_0x4c258c('0x59')](handleEntityNotFound(_0x308ba8,null))['then'](saveUpdates(_0x3431a5[_0x4c258c('0xc')],null))[_0x4c258c('0x59')](function(_0x4fd4f5){const _0x32b949=_0x4c258c;if(_0x4fd4f5)return _0x2e725c[_0x32b949('0x37')]=_0x4fd4f5['get']({'plain':!![]}),db['SmsInteraction']['findOne']({'where':{'id':_0x4fd4f5[_0x32b949('0x8')]}});return null;})[_0x4c258c('0x59')](handleEntityNotFound(_0x308ba8,null))['then'](function(_0x1ff3eb){const _0x7a7180=_0x4c258c;if(_0x1ff3eb)return _0x1ff3eb['update']({'UserId':_0x3431a5[_0x7a7180('0xc')][_0x7a7180('0x1d')],'read1stAt':_[_0x7a7180('0x4d')](_0x1ff3eb[_0x7a7180('0x49')])?moment()[_0x7a7180('0x6c')](_0x7a7180('0x23')):undefined});return null;})['then'](function(_0x5c7823){const _0x6f907b=_0x4c258c;if(_0x5c7823)return _0x2e725c[_0x6f907b('0x2f')]=_0x5c7823[_0x6f907b('0x50')]({'plain':!![]}),interaction_log[_0x6f907b('0x40')](_0x6f907b('0x13'),_0x3431a5[_0x6f907b('0x27')]['id'],_0x3431a5['user'][_0x6f907b('0x1')],_0x3431a5[_0x6f907b('0x27')]['role'],_0x2e725c['interaction']['id'],_0x3431a5[_0x6f907b('0xc')]?JSON[_0x6f907b('0x68')](_0x3431a5[_0x6f907b('0xc')]):_0x6f907b('0x12')),respondWithRpcPromise('AcceptMessage',_0x6f907b('0x44'),_0x2e725c);return null;})[_0x4c258c('0x59')](function(_0x2391cf){const _0x53a0a3=_0x4c258c;if(_0x2391cf){if(_0x3431a5[_0x53a0a3('0xc')][_0x53a0a3('0x5f')])return _0x2e725c['message']['interface']=util[_0x53a0a3('0x6c')](_0x53a0a3('0x56'),_0x3431a5[_0x53a0a3('0x27')][_0x53a0a3('0x1')]),_0x2e725c[_0x53a0a3('0x37')]['channel']=_0x2e725c['channel'],_0x2e725c[_0x53a0a3('0x37')][_0x53a0a3('0x41')]=_0x53a0a3('0x4a'),respondWithRpcPromise('EventManager',_0x53a0a3('0xf'),{'event':_0x53a0a3('0x3b'),'message':_0x2e725c[_0x53a0a3('0x37')]},client9002)['then'](function(){return _0x2e725c;});return _0x2e725c;}return null;})[_0x4c258c('0x59')](respondWithResult(_0x308ba8,null))[_0x4c258c('0x33')](handleError(_0x308ba8,null));},exports[_0x56a4dc('0x3')]=function(_0x102a72,_0x4a6e70){const _0x5a71e8=_0x56a4dc,_0x2567a8={'agent':{},'channel':_0x5a71e8('0x10')};return _0x102a72[_0x5a71e8('0xc')]['id']&&delete _0x102a72[_0x5a71e8('0xc')]['id'],_0x102a72[_0x5a71e8('0xc')]['UserId']=_0x102a72[_0x5a71e8('0xc')][_0x5a71e8('0x1d')]||_0x102a72[_0x5a71e8('0x27')]['id'],_0x2567a8[_0x5a71e8('0x65')]['id']=_0x102a72['body'][_0x5a71e8('0x1d')],db[_0x5a71e8('0x24')][_0x5a71e8('0x6b')]({'where':{'id':_0x102a72[_0x5a71e8('0x1c')]['id'],'UserId':null}})[_0x5a71e8('0x59')](handleEntityNotFound(_0x4a6e70,null))['then'](function(_0x2db5da){const _0x17a11c=_0x5a71e8;if(_0x2db5da)return _0x2567a8[_0x17a11c('0x37')]=_0x2db5da['get']({'plain':!![]}),db['SmsInteraction']['findOne']({'where':{'id':_0x2db5da[_0x17a11c('0x8')]}});return null;})[_0x5a71e8('0x59')](handleEntityNotFound(_0x4a6e70,null))[_0x5a71e8('0x59')](function(_0x294804){const _0x4f67aa=_0x5a71e8;if(_0x294804)return _0x2567a8['interaction']=_0x294804[_0x4f67aa('0x50')]({'plain':!![]}),interaction_log[_0x4f67aa('0x40')](_0x4f67aa('0x53'),_0x102a72['user']['id'],_0x102a72[_0x4f67aa('0x27')]['name'],_0x102a72[_0x4f67aa('0x27')][_0x4f67aa('0x35')],_0x2567a8['interaction']['id'],_0x102a72[_0x4f67aa('0xc')]?JSON['stringify'](_0x102a72[_0x4f67aa('0xc')]):'null'),respondWithRpcPromise('RejectMessage',_0x4f67aa('0x17'),_0x2567a8);return null;})['then'](function(_0x3a6f80){const _0x2aaedf=_0x5a71e8;if(_0x3a6f80)return _0x3a6f80[_0x2aaedf('0x37')]['interface']=util[_0x2aaedf('0x6c')]('SIP/%s',_0x102a72['user'][_0x2aaedf('0x1')]),_0x3a6f80[_0x2aaedf('0x37')][_0x2aaedf('0x39')]=_0x2567a8[_0x2aaedf('0x39')],_0x3a6f80[_0x2aaedf('0x37')][_0x2aaedf('0x41')]=_0x2aaedf('0x3'),respondWithRpcPromise(_0x2aaedf('0xf'),'EventManager',{'event':'rejectmessage','message':_0x3a6f80[_0x2aaedf('0x37')]},client9002),_0x2567a8;return null;})[_0x5a71e8('0x59')](respondWithResult(_0x4a6e70,null))[_0x5a71e8('0x33')](handleError(_0x4a6e70,null));},exports[_0x56a4dc('0xb')]=function(_0x481be3,_0xb2bd7d){const _0x4394e1=_0x56a4dc;_0x481be3[_0x4394e1('0xc')]['id']&&delete _0x481be3[_0x4394e1('0xc')]['id'];let _0x4e069f;return db[_0x4394e1('0x24')][_0x4394e1('0x6b')]({'where':{'id':_0x481be3[_0x4394e1('0x1c')]['id']}})[_0x4394e1('0x59')](handleEntityNotFound(_0xb2bd7d,null))[_0x4394e1('0x59')](function(_0x857f72){const _0x407f0c=_0x4394e1;if(_0x857f72)return _0x4e069f=_0x857f72,db[_0x407f0c('0x48')][_0x407f0c('0x6b')]({'where':{'id':_0x857f72[_0x407f0c('0x26')]}});})[_0x4394e1('0x59')](handleEntityNotFound(_0xb2bd7d,null))[_0x4394e1('0x59')](function(_0x58a5e5){const _0x350721=_0x4394e1;if(_0x58a5e5){logger[_0x350721('0x51')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x350721('0xb'),_0x350721('0x6a'),_0x58a5e5['type'],util[_0x350721('0x43')](_0x481be3[_0x350721('0xc')],{'showHidden':![],'depth':null}));switch(_0x58a5e5[_0x350721('0x2a')]){case _0x350721('0x4f'):if(_0x481be3[_0x350721('0xc')]['MessageSid']&&_0x481be3[_0x350721('0xc')][_0x350721('0x11')]===_0x4e069f[_0x350721('0x14')])return _0x4e069f['update']({'read':!![]});else logger['error'](_0x350721('0x5'),_0x350721('0xb'),_0x350721('0x4f'),util[_0x350721('0x43')](_0x481be3[_0x350721('0xc')],{'showHidden':![],'depth':null}));break;case _0x350721('0x31'):if(_0x481be3[_0x350721('0xc')][_0x350721('0xa')]&&_0x481be3[_0x350721('0xc')][_0x350721('0xa')]===_0x4e069f[_0x350721('0x14')]&&_[_0x350721('0x52')]([_0x350721('0x38'),_0x350721('0x3f')],_0x481be3[_0x350721('0xc')][_0x350721('0x69')])>=0x0)return _0x4e069f[_0x350721('0x57')]({'read':!![]});else logger[_0x350721('0x16')](_0x350721('0x5'),'status','plivio',util['inspect'](_0x481be3[_0x350721('0xc')],{'showHidden':![],'depth':null}));break;case _0x350721('0x60'):{const _0x4a7ad0=_0x481be3[_0x350721('0xc')][_0x350721('0x6d')][0x0];if(_0x4a7ad0[_0x350721('0xb')][_0x350721('0x36')]===_0x350721('0x5b'))return _0x4e069f[_0x350721('0x57')]({'read':!![]});else logger[_0x350721('0x16')](_0x350721('0x5'),'status',_0x350721('0x60'),util['inspect'](_0x481be3[_0x350721('0xc')],{'showHidden':![],'depth':null}));}break;}return _0x4e069f;}})[_0x4394e1('0x59')](respondWithResult(_0xb2bd7d,null))[_0x4394e1('0x33')](handleError(_0xb2bd7d,null));}; \ No newline at end of file +const a560_0x47ae=['manual','event','acceptmessage','rawAttributes','then','body','rejectMessage','index','rows','YYYY-MM-DD\x20HH:mm:ss','show','http','include','destroy','client','isNil','../../components/parsers/qs','options','VIRTUAL','get','name','message','SmsMessage,\x20%s,\x20%s,\x20%s','order','agent','SmsAccount,\x20%s,\x20%s,\x20%s','update','groupName','model','fields','status','../../config/logger','AcceptMessage','info','DELIVERED','acceptMessage','sendStatus','SmsInteraction','merge','catch','attributes','set','send','nolimit','sms','user','EventManager','SmsMessage,\x20%s,\x20%s','keys','[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','SmsMessage','error','messageId','type','UserId','includeAll','inspect','params','register','SIP/%s','debug','create','sms-interactions','filter','MessageUUID','limit','count','infobip','filters','where','readAt','format','intersection','map','offset','json','pick','stack','../../mysqldb','twilio','CmContact','reject','undefined','sort','./smsMessage.socket','like','findOne','../../rediscache','SmsInteractionId','jayson/promise','query','RejectMessage','MessageSid','moment','request','channel','null','delivered','result','length','interaction','accept','Content-Range','describe','plivio','interface','util','stringify'];(function(_0x46ff4b,_0x47ae29){const _0x23fcdc=function(_0x270287){while(--_0x270287){_0x46ff4b['push'](_0x46ff4b['shift']());}};_0x23fcdc(++_0x47ae29);}(a560_0x47ae,0xd9));const a560_0x23fc=function(_0x46ff4b,_0x47ae29){_0x46ff4b=_0x46ff4b-0x0;let _0x23fcdc=a560_0x47ae[_0x46ff4b];return _0x23fcdc;};const _0x4ee0db=a560_0x23fc;'use strict';const moment=require(_0x4ee0db('0x5c')),util=require(_0x4ee0db('0x69')),_=require('lodash'),qs=require(_0x4ee0db('0xf')),logger=require(_0x4ee0db('0x1e'))('api'),{getSocket}=require(_0x4ee0db('0x56')),socket=getSocket(),db=require(_0x4ee0db('0x4d'))['db'],{Op}=require('sequelize'),interaction_log=require(_0x4ee0db('0x1e'))(_0x4ee0db('0x3d'));require(_0x4ee0db('0x53'))[_0x4ee0db('0x39')](socket);const jayson=require(_0x4ee0db('0x58')),client=jayson[_0x4ee0db('0xd')][_0x4ee0db('0xa')]({'port':0x232c}),client9002=jayson[_0x4ee0db('0xd')][_0x4ee0db('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x270287,_0x21788a,_0x58388b,_0x25b718){return new Promise(function(_0x1b78bb,_0x5f2019){const _0x2e626d=a560_0x23fc,_0x579eb3=_0x25b718||client;return _0x579eb3[_0x2e626d('0x5d')](_0x270287,_0x58388b)[_0x2e626d('0x3')](function(_0x251f17){const _0xfb66e=_0x2e626d;logger['info'](_0xfb66e('0x2e'),_0x21788a,'request\x20sent'),logger[_0xfb66e('0x3b')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x21788a,'request\x20sent',JSON[_0xfb66e('0x6a')](_0x251f17));if(_0x251f17[_0xfb66e('0x32')]){if(_0x251f17[_0xfb66e('0x32')]['code']===0x1f4)return logger[_0xfb66e('0x32')]('SmsMessage,\x20%s,\x20%s',_0x21788a,_0x251f17[_0xfb66e('0x32')]['message']),_0x5f2019(_0x251f17[_0xfb66e('0x32')][_0xfb66e('0x14')]);return logger[_0xfb66e('0x32')](_0xfb66e('0x2e'),_0x21788a,_0x251f17['error']['message']),_0x1b78bb(_0x251f17[_0xfb66e('0x32')][_0xfb66e('0x14')]);}else logger[_0xfb66e('0x20')]('SmsMessage,\x20%s,\x20%s',_0x21788a,'request\x20sent'),_0x1b78bb(_0x251f17[_0xfb66e('0x61')][_0xfb66e('0x14')]);})['catch'](function(_0x34de2f){const _0x440d21=_0x2e626d;logger[_0x440d21('0x32')](_0x440d21('0x2e'),_0x21788a,_0x34de2f),_0x5f2019(_0x34de2f);});});}function respondWithResult(_0x521848,_0x357a6f){return _0x357a6f=_0x357a6f||0xc8,function(_0x17d9a2){const _0xfc3485=a560_0x23fc;if(_0x17d9a2)return _0x521848[_0xfc3485('0x1d')](_0x357a6f)[_0xfc3485('0x4a')](_0x17d9a2);};}function respondWithFilteredResult(_0x766e18,_0x328588){return function(_0x983c0f){const _0x3c2e47=a560_0x23fc;if(_0x983c0f){const _0x2bc056=_0x983c0f[_0x3c2e47('0x41')],_0x429416=_0x328588[_0x3c2e47('0x49')];let _0x249fe3=_0x328588[_0x3c2e47('0x49')]+_0x328588[_0x3c2e47('0x40')],_0x5a214c;return _0x249fe3>=_0x2bc056?(_0x249fe3=_0x2bc056,_0x5a214c=0xc8):_0x5a214c=0xce,_0x766e18['status'](_0x5a214c),_0x766e18[_0x3c2e47('0x28')](_0x3c2e47('0x65'),_0x429416+'-'+_0x249fe3+'/'+_0x2bc056)[_0x3c2e47('0x4a')](_0x983c0f);}return null;};}function saveUpdates(_0x51d556){return function(_0x362a0e){if(_0x362a0e)return _0x362a0e['update'](_0x51d556)['then'](function(_0x239146){return _0x239146;});return null;};}function removeEntity(_0xad3738){return function(_0x4b17c9){const _0x277c5f=a560_0x23fc;if(_0x4b17c9)return _0x4b17c9[_0x277c5f('0xc')]()[_0x277c5f('0x3')](function(){const _0x2b5131=_0x277c5f;_0xad3738[_0x2b5131('0x1d')](0xcc)['end']();});};}function handleEntityNotFound(_0x3d55f0){return function(_0x489d66){const _0x213065=a560_0x23fc;return!_0x489d66&&_0x3d55f0[_0x213065('0x23')](0x194),_0x489d66;};}function handleError(_0x14c652,_0x550966){return _0x550966=_0x550966||0x1f4,function(_0x274bb4){const _0x2aa772=a560_0x23fc;logger[_0x2aa772('0x32')](_0x274bb4[_0x2aa772('0x4c')]),_0x274bb4[_0x2aa772('0x13')]&&delete _0x274bb4[_0x2aa772('0x13')],_0x14c652[_0x2aa772('0x1d')](_0x550966)[_0x2aa772('0x29')](_0x274bb4);};}exports[_0x4ee0db('0x6')]=function(_0x1aab15,_0x53782e){const _0x3d6a33=_0x4ee0db;let _0x4e67e7={};const _0x42280b={},_0x199232={'count':0x0,'rows':[]},_0x19a99b=_[_0x3d6a33('0x48')](db['SmsMessage'][_0x3d6a33('0x2')],function(_0x650388){return{'name':_0x650388['fieldName'],'type':_0x650388['type']['key']};});_0x42280b[_0x3d6a33('0x1b')]=_[_0x3d6a33('0x48')](_0x19a99b,_0x3d6a33('0x13')),_0x42280b[_0x3d6a33('0x59')]=_[_0x3d6a33('0x2f')](_0x1aab15['query']),_0x42280b[_0x3d6a33('0x43')]=_['intersection'](_0x42280b['model'],_0x42280b[_0x3d6a33('0x59')]),_0x4e67e7[_0x3d6a33('0x27')]=_[_0x3d6a33('0x47')](_0x42280b[_0x3d6a33('0x1b')],qs[_0x3d6a33('0x1c')](_0x1aab15[_0x3d6a33('0x59')][_0x3d6a33('0x1c')])),_0x4e67e7[_0x3d6a33('0x27')]=_0x4e67e7['attributes'][_0x3d6a33('0x62')]?_0x4e67e7[_0x3d6a33('0x27')]:_0x42280b[_0x3d6a33('0x1b')];typeof _0x1aab15[_0x3d6a33('0x59')][_0x3d6a33('0x2a')]===_0x3d6a33('0x51')&&(_0x4e67e7[_0x3d6a33('0x40')]=qs['limit'](_0x1aab15[_0x3d6a33('0x59')][_0x3d6a33('0x40')]),_0x4e67e7[_0x3d6a33('0x49')]=qs[_0x3d6a33('0x49')](_0x1aab15[_0x3d6a33('0x59')]['offset']));_0x4e67e7[_0x3d6a33('0x16')]=qs['sort'](_0x1aab15[_0x3d6a33('0x59')][_0x3d6a33('0x52')]),_0x4e67e7['where']=qs['filters'](_[_0x3d6a33('0x4b')](_0x1aab15[_0x3d6a33('0x59')],_0x42280b['filters']),_0x19a99b);_0x1aab15['query'][_0x3d6a33('0x3e')]&&(_0x4e67e7[_0x3d6a33('0x44')]=_[_0x3d6a33('0x25')](_0x4e67e7[_0x3d6a33('0x44')],{[Op['or']]:_['map'](_0x19a99b,function(_0x4513cb){const _0x3bbb40=_0x3d6a33;if(_0x4513cb[_0x3bbb40('0x34')]!==_0x3bbb40('0x11')){const _0x3da1e2={};return _0x3da1e2[_0x4513cb[_0x3bbb40('0x13')]]={[Op[_0x3bbb40('0x54')]]:'%'+_0x1aab15[_0x3bbb40('0x59')]['filter']+'%'},_0x3da1e2;}})}));_0x4e67e7=_[_0x3d6a33('0x25')]({},_0x4e67e7,_0x1aab15['options']);const _0xdd4a7f={'where':_0x4e67e7[_0x3d6a33('0x44')]};return db['SmsMessage'][_0x3d6a33('0x41')](_0xdd4a7f)[_0x3d6a33('0x3')](function(_0x19e35b){const _0x2594f0=_0x3d6a33;return _0x199232['count']=_0x19e35b,_0x1aab15[_0x2594f0('0x59')]['includeAll']&&(_0x4e67e7[_0x2594f0('0xb')]=[{'all':!![]}]),db[_0x2594f0('0x31')]['findAll'](_0x4e67e7);})[_0x3d6a33('0x3')](function(_0x24ffc7){const _0x32fa19=_0x3d6a33;return _0x199232[_0x32fa19('0x7')]=_0x24ffc7,_0x199232;})[_0x3d6a33('0x3')](respondWithFilteredResult(_0x53782e,_0x4e67e7))[_0x3d6a33('0x26')](handleError(_0x53782e,null));},exports[_0x4ee0db('0x9')]=function(_0x36bf66,_0x154d52){const _0x294b94=_0x4ee0db;let _0x397de3={'raw':!![],'where':{'id':_0x36bf66[_0x294b94('0x38')]['id']}};const _0x40c46f={};return _0x40c46f['model']=_[_0x294b94('0x2f')](db['SmsMessage']['rawAttributes']),_0x40c46f[_0x294b94('0x59')]=_[_0x294b94('0x2f')](_0x36bf66[_0x294b94('0x59')]),_0x40c46f[_0x294b94('0x43')]=_[_0x294b94('0x47')](_0x40c46f[_0x294b94('0x1b')],_0x40c46f[_0x294b94('0x59')]),_0x397de3[_0x294b94('0x27')]=_['intersection'](_0x40c46f['model'],qs[_0x294b94('0x1c')](_0x36bf66[_0x294b94('0x59')][_0x294b94('0x1c')])),_0x397de3[_0x294b94('0x27')]=_0x397de3[_0x294b94('0x27')][_0x294b94('0x62')]?_0x397de3['attributes']:_0x40c46f['model'],_0x36bf66[_0x294b94('0x59')][_0x294b94('0x36')]&&(_0x397de3[_0x294b94('0xb')]=[{'all':!![]}]),_0x397de3=_[_0x294b94('0x25')]({},_0x397de3,_0x36bf66[_0x294b94('0x10')]),db[_0x294b94('0x31')]['findOne'](_0x397de3)[_0x294b94('0x3')](handleEntityNotFound(_0x154d52,null))[_0x294b94('0x3')](respondWithResult(_0x154d52,null))[_0x294b94('0x26')](handleError(_0x154d52,null));},exports[_0x4ee0db('0x3c')]=function(_0xc372c,_0x28d861){const _0x156a36=_0x4ee0db;return db[_0x156a36('0x31')][_0x156a36('0x3c')](_0xc372c[_0x156a36('0x4')],{})['then'](respondWithResult(_0x28d861,0xc9))['catch'](handleError(_0x28d861,null));},exports[_0x4ee0db('0x19')]=function(_0x2f609a,_0x46f259){const _0x49826d=_0x4ee0db;return _0x2f609a[_0x49826d('0x4')]['id']&&delete _0x2f609a['body']['id'],db[_0x49826d('0x31')][_0x49826d('0x55')]({'where':{'id':_0x2f609a[_0x49826d('0x38')]['id']}})[_0x49826d('0x3')](handleEntityNotFound(_0x46f259,null))[_0x49826d('0x3')](saveUpdates(_0x2f609a['body'],null))[_0x49826d('0x3')](respondWithResult(_0x46f259,null))[_0x49826d('0x26')](handleError(_0x46f259,null));},exports[_0x4ee0db('0xc')]=function(_0x1bcd54,_0x45ae6f){const _0x3d3325=_0x4ee0db;return db[_0x3d3325('0x31')][_0x3d3325('0x55')]({'where':{'id':_0x1bcd54[_0x3d3325('0x38')]['id']}})[_0x3d3325('0x3')](handleEntityNotFound(_0x45ae6f,null))[_0x3d3325('0x3')](removeEntity(_0x45ae6f,null))[_0x3d3325('0x26')](handleError(_0x45ae6f,null));},exports[_0x4ee0db('0x66')]=function(_0x554c50,_0x53a6c4){const _0x5b4889=_0x4ee0db;return db[_0x5b4889('0x31')][_0x5b4889('0x66')]()['then'](respondWithResult(_0x53a6c4,null))[_0x5b4889('0x26')](handleError(_0x53a6c4,null));},exports[_0x4ee0db('0x64')]=function(_0x227ccf,_0x3823ca){const _0x1dc44e=_0x4ee0db,_0xd76126={'channel':_0x1dc44e('0x2b')};return _0x227ccf['body']['id']&&delete _0x227ccf[_0x1dc44e('0x4')]['id'],_0x227ccf[_0x1dc44e('0x4')]['read']=!![],_0x227ccf[_0x1dc44e('0x4')][_0x1dc44e('0x45')]=moment()[_0x1dc44e('0x46')](_0x1dc44e('0x8')),_0x227ccf[_0x1dc44e('0x4')][_0x1dc44e('0x35')]=_0x227ccf[_0x1dc44e('0x4')][_0x1dc44e('0x35')]||_0x227ccf[_0x1dc44e('0x2c')]['id'],db[_0x1dc44e('0x31')][_0x1dc44e('0x55')]({'where':{'id':_0x227ccf[_0x1dc44e('0x38')]['id'],'UserId':null},'include':[{'model':db[_0x1dc44e('0x4f')],'as':'Contact'}]})[_0x1dc44e('0x3')](handleEntityNotFound(_0x3823ca,null))[_0x1dc44e('0x3')](saveUpdates(_0x227ccf[_0x1dc44e('0x4')],null))[_0x1dc44e('0x3')](function(_0x4def84){const _0x2a1518=_0x1dc44e;if(_0x4def84)return _0xd76126[_0x2a1518('0x14')]=_0x4def84[_0x2a1518('0x12')]({'plain':!![]}),db[_0x2a1518('0x24')][_0x2a1518('0x55')]({'where':{'id':_0x4def84[_0x2a1518('0x57')]}});return null;})[_0x1dc44e('0x3')](handleEntityNotFound(_0x3823ca,null))[_0x1dc44e('0x3')](function(_0xb7032d){const _0xf86476=_0x1dc44e;if(_0xb7032d)return _0xb7032d[_0xf86476('0x19')]({'UserId':_0x227ccf[_0xf86476('0x4')]['UserId'],'read1stAt':_[_0xf86476('0xe')](_0xb7032d['read1stAt'])?moment()[_0xf86476('0x46')](_0xf86476('0x8')):undefined});return null;})['then'](function(_0x5c1f7e){const _0xe3cc5b=_0x1dc44e;if(_0x5c1f7e)return _0xd76126[_0xe3cc5b('0x63')]=_0x5c1f7e[_0xe3cc5b('0x12')]({'plain':!![]}),interaction_log[_0xe3cc5b('0x20')](_0xe3cc5b('0x30'),_0x227ccf[_0xe3cc5b('0x2c')]['id'],_0x227ccf[_0xe3cc5b('0x2c')][_0xe3cc5b('0x13')],_0x227ccf[_0xe3cc5b('0x2c')]['role'],_0xd76126[_0xe3cc5b('0x63')]['id'],_0x227ccf['body']?JSON[_0xe3cc5b('0x6a')](_0x227ccf[_0xe3cc5b('0x4')]):'null'),respondWithRpcPromise(_0xe3cc5b('0x1f'),_0xe3cc5b('0x22'),_0xd76126);return null;})[_0x1dc44e('0x3')](function(_0x399a4b){const _0x13a0ed=_0x1dc44e;if(_0x399a4b){if(_0x227ccf[_0x13a0ed('0x4')][_0x13a0ed('0x6b')])return _0xd76126[_0x13a0ed('0x14')][_0x13a0ed('0x68')]=util[_0x13a0ed('0x46')](_0x13a0ed('0x3a'),_0x227ccf[_0x13a0ed('0x2c')][_0x13a0ed('0x13')]),_0xd76126[_0x13a0ed('0x14')][_0x13a0ed('0x5e')]=_0xd76126[_0x13a0ed('0x5e')],_0xd76126['message']['event']='accept',respondWithRpcPromise(_0x13a0ed('0x2d'),_0x13a0ed('0x2d'),{'event':_0x13a0ed('0x1'),'message':_0xd76126[_0x13a0ed('0x14')]},client9002)[_0x13a0ed('0x3')](function(){return _0xd76126;});return _0xd76126;}return null;})[_0x1dc44e('0x3')](respondWithResult(_0x3823ca,null))[_0x1dc44e('0x26')](handleError(_0x3823ca,null));},exports['reject']=function(_0x3ff994,_0x2cc3e6){const _0x1af0d0=_0x4ee0db,_0x48f4b={'agent':{},'channel':_0x1af0d0('0x2b')};return _0x3ff994[_0x1af0d0('0x4')]['id']&&delete _0x3ff994[_0x1af0d0('0x4')]['id'],_0x3ff994[_0x1af0d0('0x4')][_0x1af0d0('0x35')]=_0x3ff994[_0x1af0d0('0x4')][_0x1af0d0('0x35')]||_0x3ff994[_0x1af0d0('0x2c')]['id'],_0x48f4b[_0x1af0d0('0x17')]['id']=_0x3ff994[_0x1af0d0('0x4')][_0x1af0d0('0x35')],db['SmsMessage'][_0x1af0d0('0x55')]({'where':{'id':_0x3ff994['params']['id'],'UserId':null}})[_0x1af0d0('0x3')](handleEntityNotFound(_0x2cc3e6,null))['then'](function(_0x842044){const _0xbf5da0=_0x1af0d0;if(_0x842044)return _0x48f4b[_0xbf5da0('0x14')]=_0x842044[_0xbf5da0('0x12')]({'plain':!![]}),db[_0xbf5da0('0x24')]['findOne']({'where':{'id':_0x842044[_0xbf5da0('0x57')]}});return null;})[_0x1af0d0('0x3')](handleEntityNotFound(_0x2cc3e6,null))['then'](function(_0x4370b9){const _0x1c7a72=_0x1af0d0;if(_0x4370b9)return _0x48f4b['interaction']=_0x4370b9['get']({'plain':!![]}),interaction_log[_0x1c7a72('0x20')]('[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x3ff994[_0x1c7a72('0x2c')]['id'],_0x3ff994['user']['name'],_0x3ff994[_0x1c7a72('0x2c')]['role'],_0x48f4b[_0x1c7a72('0x63')]['id'],_0x3ff994[_0x1c7a72('0x4')]?JSON[_0x1c7a72('0x6a')](_0x3ff994[_0x1c7a72('0x4')]):_0x1c7a72('0x5f')),respondWithRpcPromise(_0x1c7a72('0x5a'),_0x1c7a72('0x5'),_0x48f4b);return null;})[_0x1af0d0('0x3')](function(_0x1005c3){const _0x182448=_0x1af0d0;if(_0x1005c3)return _0x1005c3[_0x182448('0x14')][_0x182448('0x68')]=util[_0x182448('0x46')](_0x182448('0x3a'),_0x3ff994[_0x182448('0x2c')]['name']),_0x1005c3[_0x182448('0x14')][_0x182448('0x5e')]=_0x48f4b[_0x182448('0x5e')],_0x1005c3[_0x182448('0x14')][_0x182448('0x0')]=_0x182448('0x50'),respondWithRpcPromise(_0x182448('0x2d'),_0x182448('0x2d'),{'event':'rejectmessage','message':_0x1005c3[_0x182448('0x14')]},client9002),_0x48f4b;return null;})[_0x1af0d0('0x3')](respondWithResult(_0x2cc3e6,null))[_0x1af0d0('0x26')](handleError(_0x2cc3e6,null));},exports['status']=function(_0x1d7638,_0x5277b9){const _0x296293=_0x4ee0db;_0x1d7638['body']['id']&&delete _0x1d7638['body']['id'];let _0x1f7349;return db[_0x296293('0x31')][_0x296293('0x55')]({'where':{'id':_0x1d7638[_0x296293('0x38')]['id']}})[_0x296293('0x3')](handleEntityNotFound(_0x5277b9,null))[_0x296293('0x3')](function(_0x469740){const _0x4c6285=_0x296293;if(_0x469740)return _0x1f7349=_0x469740,db['SmsAccount'][_0x4c6285('0x55')]({'where':{'id':_0x469740['SmsAccountId']}});})[_0x296293('0x3')](handleEntityNotFound(_0x5277b9,null))[_0x296293('0x3')](function(_0x3f13a1){const _0x13999d=_0x296293;if(_0x3f13a1){logger['debug'](_0x13999d('0x15'),_0x13999d('0x1d'),'received\x20delivery\x20report\x20from',_0x3f13a1[_0x13999d('0x34')],util[_0x13999d('0x37')](_0x1d7638[_0x13999d('0x4')],{'showHidden':![],'depth':null}));switch(_0x3f13a1[_0x13999d('0x34')]){case _0x13999d('0x4e'):if(_0x1d7638['body'][_0x13999d('0x5b')]&&_0x1d7638[_0x13999d('0x4')][_0x13999d('0x5b')]===_0x1f7349[_0x13999d('0x33')])return _0x1f7349['update']({'read':!![]});else logger[_0x13999d('0x32')](_0x13999d('0x18'),_0x13999d('0x1d'),_0x13999d('0x4e'),util[_0x13999d('0x37')](_0x1d7638['body'],{'showHidden':![],'depth':null}));break;case'plivo':if(_0x1d7638['body'][_0x13999d('0x3f')]&&_0x1d7638[_0x13999d('0x4')][_0x13999d('0x3f')]===_0x1f7349['messageId']&&_['indexOf'](['sent',_0x13999d('0x60')],_0x1d7638[_0x13999d('0x4')]['Status'])>=0x0)return _0x1f7349[_0x13999d('0x19')]({'read':!![]});else logger[_0x13999d('0x32')](_0x13999d('0x18'),'status',_0x13999d('0x67'),util[_0x13999d('0x37')](_0x1d7638[_0x13999d('0x4')],{'showHidden':![],'depth':null}));break;case _0x13999d('0x42'):{const _0x3ffc50=_0x1d7638[_0x13999d('0x4')]['results'][0x0];if(_0x3ffc50['status'][_0x13999d('0x1a')]===_0x13999d('0x21'))return _0x1f7349[_0x13999d('0x19')]({'read':!![]});else logger[_0x13999d('0x32')](_0x13999d('0x18'),_0x13999d('0x1d'),_0x13999d('0x42'),util[_0x13999d('0x37')](_0x1d7638['body'],{'showHidden':![],'depth':null}));}break;}return _0x1f7349;}})[_0x296293('0x3')](respondWithResult(_0x5277b9,null))[_0x296293('0x26')](handleError(_0x5277b9,null));}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.events.js b/server/api/smsMessage/smsMessage.events.js index a240448..b979acd 100644 --- a/server/api/smsMessage/smsMessage.events.js +++ b/server/api/smsMessage/smsMessage.events.js @@ -1 +1 @@ -const a561_0x2135=['emit','addHook','save','setMaxListeners','SmsMessage','exports','undefined','../../mysqldb'];(function(_0x39914f,_0x2135b8){const _0x1459d2=function(_0x5b6561){while(--_0x5b6561){_0x39914f['push'](_0x39914f['shift']());}};_0x1459d2(++_0x2135b8);}(a561_0x2135,0x175));const a561_0x1459=function(_0x39914f,_0x2135b8){_0x39914f=_0x39914f-0x0;let _0x1459d2=a561_0x2135[_0x39914f];return _0x1459d2;};const _0x2156c6=a561_0x1459;'use strict';const EventEmitter=require('events'),SmsMessage=require(_0x2156c6('0x2'))['db'][_0x2156c6('0x7')],SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0x2156c6('0x6')](0x0);const events={'afterCreate':_0x2156c6('0x5'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x5b6561){return function(_0x304aa9){const _0x4edbae=a561_0x1459;SmsMessageEvents[_0x4edbae('0x3')](_0x5b6561+':'+_0x304aa9['id'],_0x304aa9),SmsMessageEvents['emit'](_0x5b6561,_0x304aa9);};}for(const e in events){if(typeof events[e]!==_0x2156c6('0x1')){const event=events[e];SmsMessage[_0x2156c6('0x4')](e,emitEvent(event));}}module[_0x2156c6('0x0')]=SmsMessageEvents; \ No newline at end of file +const a561_0x15f6=['../../mysqldb','setMaxListeners','undefined','update','remove','addHook','SmsMessage','emit','exports'];(function(_0x11088a,_0x15f6a0){const _0x2a09c7=function(_0x5d3d7e){while(--_0x5d3d7e){_0x11088a['push'](_0x11088a['shift']());}};_0x2a09c7(++_0x15f6a0);}(a561_0x15f6,0x16d));const a561_0x2a09=function(_0x11088a,_0x15f6a0){_0x11088a=_0x11088a-0x0;let _0x2a09c7=a561_0x15f6[_0x11088a];return _0x2a09c7;};const _0x125c54=a561_0x2a09;'use strict';const EventEmitter=require('events'),SmsMessage=require(_0x125c54('0x4'))['db'][_0x125c54('0x1')],SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0x125c54('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':_0x125c54('0x7'),'afterDestroy':_0x125c54('0x8')};function emitEvent(_0x5d3d7e){return function(_0x3fb97d){const _0x2d63ca=a561_0x2a09;SmsMessageEvents[_0x2d63ca('0x2')](_0x5d3d7e+':'+_0x3fb97d['id'],_0x3fb97d),SmsMessageEvents[_0x2d63ca('0x2')](_0x5d3d7e,_0x3fb97d);};}for(const e in events){if(typeof events[e]!==_0x125c54('0x6')){const event=events[e];SmsMessage[_0x125c54('0x0')](e,emitEvent(event));}}module[_0x125c54('0x3')]=SmsMessageEvents; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.model.js b/server/api/smsMessage/smsMessage.model.js index 349d26e..71135cc 100644 --- a/server/api/smsMessage/smsMessage.model.js +++ b/server/api/smsMessage/smsMessage.model.js @@ -1 +1 @@ -const a562_0x3e65=['%s:%s','inspect','/external/get/send.php?','application/json','isNil','messages','crypto','SmsAccountId','clickatell','senderString','sms_messages','baseUrl','internal_order_id','IBSSO\x20','uuid','POST','direction','utf8mb4','data','queued_count','SmsMessage','SmsMessage,\x20%s,\x20%s,\x20%s','toString','messageId','head','text','id_sms','request-promise-native','status','createdAt','out','finally','timestamp','secret','error','FULLTEXT','Bearer\x20','signature=','createHash','connectel','/status?token=','body','https://api.plivo.com/v1/Account/%s/Message/','format','toLowerCase','then','apiKey','total_sent','util','sort','skebby','authId','afterCreate','findOne','define','update','clickSend','create','twilio','password','read','sender','infobip','code','/auth/1/session','utf8mb4_unicode_ci','remote','./smsMessage.attributes','intelepeer','session_key','models','Missing\x20parameters:\x20base_url','authToken','/api/sms/messages/','catch','base64','sid','requestid','../../config/logger','keys','GET','phone','lodash','plivo','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','hex','digest','refid','login?username=','login','deliveryReport','csc','split','from','message','message_id','UserId','md5','SmsInteractionId','Missing\x20parameters:\x20username,\x20password','Missing\x20parameters:\x20apiKey','sms','&password=','http_code','type','https://smsapi.connectel.se/api/v2/send/','SmsInteraction','apiMessageId','username','https://rest.clicksend.com/v3/sms/send','Basic\x20%s','smsMethod','token','fti_sms_messages'];(function(_0x26b117,_0x3e656a){const _0x3b261b=function(_0x5e6c26){while(--_0x5e6c26){_0x26b117['push'](_0x26b117['shift']());}};_0x3b261b(++_0x3e656a);}(a562_0x3e65,0x180));const a562_0x3b26=function(_0x26b117,_0x3e656a){_0x26b117=_0x26b117-0x0;let _0x3b261b=a562_0x3e65[_0x26b117];return _0x3b261b;};const _0x107b6f=a562_0x3b26;'use strict';const _=require(_0x107b6f('0x28')),util=require(_0x107b6f('0x6')),logger=require(_0x107b6f('0x24'))('api'),rp=require(_0x107b6f('0x63')),attributes=require(_0x107b6f('0x19'));module['exports']=function(_0x5e6c26){const _0x1afddc=_0x107b6f,_0x2ddc48=_0x5e6c26[_0x1afddc('0x1c')],_0xdd8755=_0x5e6c26[_0x1afddc('0xc')](_0x1afddc('0x5c'),attributes,{'tableName':_0x1afddc('0x52'),'paranoid':![],'indexes':[{'name':_0x1afddc('0x5f'),'fields':[_0x1afddc('0x5f')]},{'name':_0x1afddc('0x47'),'fields':[_0x1afddc('0x71')],'type':_0x1afddc('0x6b')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x11a875){const _0xa135af=_0x1afddc,_0x392e3f=_0x11a875['get']({'plain':!![]});(_0x392e3f[_0xa135af('0x58')][_0xa135af('0x2')]()==='in'||_0x392e3f['direction'][_0xa135af('0x2')]()===_0xa135af('0x66')&&!_0x392e3f[_0xa135af('0x69')]&&!_[_0xa135af('0x4c')](_0x392e3f[_0xa135af('0x36')]))&&_0x2ddc48[_0xa135af('0x40')][_0xa135af('0xb')]({'where':{'id':_0x392e3f[_0xa135af('0x38')]}})[_0xa135af('0x3')](function(_0xacc849){const _0x5dc5c5=_0xa135af;_0xacc849&&_0xacc849['update']({'lastMsgAt':_0x392e3f[_0x5dc5c5('0x65')],'lastMsgDirection':_0x392e3f[_0x5dc5c5('0x58')][_0x5dc5c5('0x2')]()});})[_0xa135af('0x20')](function(_0x222af0){const _0x8fd419=_0xa135af;console[_0x8fd419('0x6a')](_0x222af0);});if(_0x392e3f['direction']==='out'&&!_0x392e3f[_0xa135af('0x69')]){let _0x37a19f;_0x2ddc48['SmsAccount'][_0xa135af('0xb')]({'where':{'id':_0x392e3f[_0xa135af('0x4f')]},'raw':!![]})['then'](function(_0x459674){const _0xef04f7=_0xa135af;_0x37a19f=_0x459674;if(_0x37a19f&&_0x37a19f[_0xef04f7('0x3e')])switch(_0x37a19f[_0xef04f7('0x3e')]){case _0xef04f7('0x10'):{const _0x1d855d=require('twilio');if(_0x37a19f['accountSid']&&_0x37a19f[_0xef04f7('0x1e')]&&_0x37a19f['phone']){const _0x29fd41=new _0x1d855d(_0x37a19f['accountSid'],_0x37a19f['authToken']);_0x29fd41[_0xef04f7('0x4d')][_0xef04f7('0xf')]({'body':_0x392e3f[_0xef04f7('0x71')],'to':_0x392e3f['phone'],'from':_0x37a19f['phone'],'statusCallback':_0x37a19f[_0xef04f7('0x18')]+_0xef04f7('0x1f')+_0x392e3f['id']+_0xef04f7('0x70')+_0x37a19f['token']})[_0xef04f7('0x3')](function(_0x4b4505){const _0x5abf7e=_0xef04f7;if(_0x4b4505['sid'])return _0x11a875[_0x5abf7e('0xd')]({'messageId':_0x4b4505[_0x5abf7e('0x22')]});})[_0xef04f7('0x20')](function(_0x56d09f){const _0x29946f=_0xef04f7;logger[_0x29946f('0x6a')](_0x29946f('0x5d'),_0x29946f('0xa'),_0x29946f('0x10'),util[_0x29946f('0x49')](_0x56d09f,{'showHidden':![],'depth':null}));});}else logger[_0xef04f7('0x6a')]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate','twilio',_0xef04f7('0x2a'));break;}case _0xef04f7('0x8'):{const _0x52f463='https://api.skebby.it/API/v1.0/REST/';if(_0x37a19f[_0xef04f7('0x42')]&&_0x37a19f['password']){const _0x1076bb={'recipient':[_0x392e3f[_0xef04f7('0x27')]],'message':_0x392e3f['body'],'message_type':_0x37a19f[_0xef04f7('0x45')]};_0x37a19f['smsMethod']&&_0x37a19f[_0xef04f7('0x45')]!=='SI'&&(_0x1076bb[_0xef04f7('0x13')]=_0x37a19f['phone']);let _0x33352f={'url':_0x52f463+_0xef04f7('0x2e')+_0x37a19f[_0xef04f7('0x42')]+_0xef04f7('0x3c')+_0x37a19f[_0xef04f7('0x11')],'method':_0xef04f7('0x26')};rp(_0x33352f)['then'](function(_0xff27a2){const _0xe0bf78=_0xef04f7,_0x1aecec=_0xff27a2[_0xe0bf78('0x32')](';'),_0x71d553={'user_key':_0x1aecec[0x0],'session_key':_0x1aecec[0x1]};return _0x33352f={'url':_0x52f463+_0xe0bf78('0x3b'),'method':'POST','headers':{'user_key':_0x71d553['user_key'],'Session_key':_0x71d553[_0xe0bf78('0x1b')]},'json':!![],'body':_0x1076bb},rp(_0x33352f);})[_0xef04f7('0x3')](function(_0x3713aa){const _0x419bbf=_0xef04f7;if(_0x3713aa[_0x419bbf('0x5')]>=0x1){const _0x4e86da={'messageId':_0x3713aa[_0x419bbf('0x54')]};return(_0x37a19f[_0x419bbf('0x45')]!=='GP'||!_0x37a19f[_0x419bbf('0x30')])&&(_0x4e86da[_0x419bbf('0x12')]=!![]),_0x11a875[_0x419bbf('0xd')](_0x4e86da);}else return logger[_0x419bbf('0x6a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x419bbf('0xa'),_0x419bbf('0x8'),util[_0x419bbf('0x49')](_0x3713aa,{'showHidden':![],'depth':null}));})[_0xef04f7('0x20')](function(_0x47bfbf){const _0x1749b2=_0xef04f7;return logger[_0x1749b2('0x6a')](_0x1749b2('0x5d'),_0x1749b2('0xa'),'skebby',util['inspect'](_0x47bfbf,{'showHidden':![],'depth':null}));});}else logger[_0xef04f7('0x6a')](_0xef04f7('0x5d'),'afterCreate',_0xef04f7('0x8'),_0xef04f7('0x39'));break;}case _0xef04f7('0x6f'):{if(_0x37a19f[_0xef04f7('0x1e')]){const _0x171744={'recipient':_0x392e3f['phone'],'message':_0x392e3f[_0xef04f7('0x71')],'sender':_0x37a19f['senderString']||_0x37a19f[_0xef04f7('0x27')],'authorization':_0x37a19f[_0xef04f7('0x1e')]},_0x2969f5={'method':_0xef04f7('0x57'),'uri':_0xef04f7('0x3f'),'body':_0x171744,'json':!![]};rp(_0x2969f5)[_0xef04f7('0x3')](function(_0x143259){const _0x10e2c6=_0xef04f7,_0x14815a={'messageId':_0x143259[_0x10e2c6('0x23')]};return!_0x37a19f['deliveryReport']&&(_0x14815a[_0x10e2c6('0x12')]=!![]),_0x11a875[_0x10e2c6('0xd')](_0x14815a);})[_0xef04f7('0x20')](function(_0x33f6bd){const _0x2e78fb=_0xef04f7;logger['error'](_0x2e78fb('0x5d'),_0x2e78fb('0xa'),_0x2e78fb('0x6f'),util[_0x2e78fb('0x49')](_0x33f6bd,{'showHidden':![],'depth':null}));});}else logger[_0xef04f7('0x6a')](_0xef04f7('0x5d'),'afterCreate',_0xef04f7('0x6f'),'Missing\x20parameters:\x20authToken');break;}case'clicksend':{if(_0x37a19f['username']&&_0x37a19f[_0xef04f7('0x11')]){const _0x3b87fa={'messages':[{'source':'xCALLY\x20Motion','to':_0x392e3f[_0xef04f7('0x27')],'body':_0x392e3f[_0xef04f7('0x71')],'from':_0x37a19f[_0xef04f7('0x51')]||_0x37a19f[_0xef04f7('0x27')]}]},_0x3dcca7=util[_0xef04f7('0x1')](_0xef04f7('0x48'),_0x37a19f['username'],_0x37a19f[_0xef04f7('0x11')]),_0x1b369a={'method':_0xef04f7('0x57'),'uri':_0xef04f7('0x43'),'body':_0x3b87fa,'headers':{'Authorization':util[_0xef04f7('0x1')]('Basic\x20%s',Buffer[_0xef04f7('0x33')](_0x3dcca7)['toString'](_0xef04f7('0x21')))},'json':!![]};rp(_0x1b369a)[_0xef04f7('0x3')](function(_0x4af20c){const _0x1f24b1=_0xef04f7;if(_0x4af20c[_0x1f24b1('0x3d')]>=0xc8&&_0x4af20c['http_code']<=0xce){if(_0x4af20c[_0x1f24b1('0x5a')]&&_0x4af20c[_0x1f24b1('0x5a')][_0x1f24b1('0x5b')]>0x0){const _0x2e0e19=_[_0x1f24b1('0x60')](_0x4af20c[_0x1f24b1('0x5a')][_0x1f24b1('0x4d')]),_0x5732a4={'messageId':_0x2e0e19[_0x1f24b1('0x35')]};return!_0x37a19f[_0x1f24b1('0x30')]&&(_0x5732a4[_0x1f24b1('0x12')]=!![]),_0x11a875[_0x1f24b1('0xd')](_0x5732a4);}else logger[_0x1f24b1('0x6a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x1f24b1('0xa'),_0x1f24b1('0xe'),util[_0x1f24b1('0x49')](_0x4af20c,{'showHidden':![],'depth':null}));}else logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x1f24b1('0xa'),_0x1f24b1('0xe'),util[_0x1f24b1('0x49')](_0x4af20c,{'showHidden':![],'depth':null}));})['catch'](function(_0x264889){const _0x42c119=_0xef04f7;logger[_0x42c119('0x6a')](_0x42c119('0x5d'),'afterCreate','clickSend',util['inspect'](_0x264889,{'showHidden':![],'depth':null}));});}else logger['error'](_0xef04f7('0x5d'),_0xef04f7('0xa'),'clickSend',_0xef04f7('0x39'));break;}case _0xef04f7('0x29'):{if(_0x37a19f[_0xef04f7('0x9')]&&_0x37a19f[_0xef04f7('0x1e')]){const _0x55c4d1={'dst':_0x392e3f[_0xef04f7('0x27')],'text':_0x392e3f[_0xef04f7('0x71')],'src':_0x37a19f[_0xef04f7('0x51')]||_0x37a19f[_0xef04f7('0x27')],'url':_0x37a19f['remote']+_0xef04f7('0x1f')+_0x392e3f['id']+_0xef04f7('0x70')+_0x37a19f[_0xef04f7('0x46')]},_0x348675=util[_0xef04f7('0x1')](_0xef04f7('0x48'),_0x37a19f[_0xef04f7('0x9')],_0x37a19f[_0xef04f7('0x1e')]),_0x225fb6={'method':_0xef04f7('0x57'),'uri':util[_0xef04f7('0x1')](_0xef04f7('0x0'),_0x37a19f[_0xef04f7('0x9')]),'body':_0x55c4d1,'headers':{'Authorization':util[_0xef04f7('0x1')](_0xef04f7('0x44'),Buffer['from'](_0x348675)[_0xef04f7('0x5e')](_0xef04f7('0x21')))},'json':!![]};rp(_0x225fb6)[_0xef04f7('0x3')](function(_0x1f20a1){const _0x223840=_0xef04f7,_0x453ce2={'messageId':_0x1f20a1['message_uuid'][0x0]};return _0x11a875[_0x223840('0xd')](_0x453ce2);})[_0xef04f7('0x20')](function(_0x25336c){const _0xf60ca8=_0xef04f7;logger[_0xf60ca8('0x6a')](_0xf60ca8('0x5d'),_0xf60ca8('0xa'),_0xf60ca8('0x29'),util[_0xf60ca8('0x49')](_0x25336c,{'showHidden':![],'depth':null}));});}else logger[_0xef04f7('0x6a')](_0xef04f7('0x5d'),_0xef04f7('0xa'),_0xef04f7('0x29'),'Missing\x20parameters:\x20authId,\x20authToken');break;}case _0xef04f7('0x14'):{if(_0x37a19f[_0xef04f7('0x42')]&&_0x37a19f[_0xef04f7('0x11')]){if(_0x37a19f[_0xef04f7('0x53')]){const _0xc2f152={'method':_0xef04f7('0x57'),'uri':_0x37a19f[_0xef04f7('0x53')]+_0xef04f7('0x16'),'body':{'username':_0x37a19f['username'],'password':_0x37a19f['password']},'json':!![]};return rp(_0xc2f152)['then'](function(_0x54b4c0){const _0x3715c0=_0xef04f7,_0x42576e={'method':_0x3715c0('0x57'),'uri':_0x37a19f[_0x3715c0('0x53')]+'/sms/2/text/advanced','body':{'messages':[{'from':_0x37a19f['phone'],'destinations':[{'to':_0x392e3f[_0x3715c0('0x27')]}],'text':_0x392e3f['body'],'notifyUrl':_0x37a19f[_0x3715c0('0x18')]+'/api/sms/messages/'+_0x392e3f['id']+'/status?token='+_0x37a19f[_0x3715c0('0x46')],'notifyContentType':_0x3715c0('0x4b'),'callbackData':_0x37a19f[_0x3715c0('0x27')]+';'+_0x392e3f['body']}]},'headers':{'Authorization':_0x3715c0('0x55')+_0x54b4c0[_0x3715c0('0x46')]},'json':!![]};return rp(_0x42576e)[_0x3715c0('0x3')](function(_0x165a21){const _0x19c1ab=_0x3715c0;if(_0x165a21[_0x19c1ab('0x4d')]){const _0x448715={'messageId':_0x165a21[_0x19c1ab('0x4d')][0x0][_0x19c1ab('0x5f')]};return!_0x37a19f[_0x19c1ab('0x30')]&&(_0x448715[_0x19c1ab('0x12')]=!![]),_0x11a875['update'](_0x448715);}else return logger[_0x19c1ab('0x6a')]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x19c1ab('0x14'),util[_0x19c1ab('0x49')](_0x165a21,{'showHidden':![],'depth':null}));});})[_0xef04f7('0x20')](function(_0x5a352e){const _0x402750=_0xef04f7;return logger['error'](_0x402750('0x5d'),_0x402750('0xa'),_0x402750('0x14'),util[_0x402750('0x49')](_0x5a352e,{'showHidden':![],'depth':null}));});}else logger[_0xef04f7('0x6a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0xef04f7('0xa'),_0xef04f7('0x14'),_0xef04f7('0x1d'));}else logger[_0xef04f7('0x6a')](_0xef04f7('0x5d'),_0xef04f7('0xa'),'infobip',_0xef04f7('0x39'));break;}case _0xef04f7('0x31'):{const _0x130c98=require(_0xef04f7('0x4e'));if(_0x37a19f[_0xef04f7('0x4')]){const _0x71e1b8={};_0x71e1b8[_0xef04f7('0x2f')]=_0x37a19f[_0xef04f7('0x42')],_0x71e1b8[_0xef04f7('0x27')]=_0x392e3f[_0xef04f7('0x27')],_0x71e1b8[_0xef04f7('0x13')]=_0x37a19f['phone'],_0x71e1b8[_0xef04f7('0x61')]=_0x392e3f[_0xef04f7('0x71')],_0x71e1b8[_0xef04f7('0x68')]=+new Date();let _0x520548='',_0x39b487='';const _0x53f1aa=Object[_0xef04f7('0x25')](_0x71e1b8);_0x53f1aa[_0xef04f7('0x7')]();for(let _0x14946d=0x0;_0x14946d<_0x53f1aa['length'];_0x14946d++){_0x520548!=''&&(_0x520548+='&'),_0x520548+=_0x53f1aa[_0x14946d]+'='+encodeURIComponent(_0x71e1b8[_0x53f1aa[_0x14946d]]),_0x39b487+=_0x71e1b8[_0x53f1aa[_0x14946d]];}_0x39b487+=_0x37a19f['apiKey'],_0x39b487=_0x130c98[_0xef04f7('0x6e')](_0xef04f7('0x37'))[_0xef04f7('0xd')](_0x39b487)[_0xef04f7('0x2c')](_0xef04f7('0x2b'));_0x520548!==''&&(_0x520548+='&');_0x520548+=_0xef04f7('0x6d')+_0x39b487;const _0xbfdc78={'method':'GET','uri':_0x37a19f[_0xef04f7('0x53')]+_0xef04f7('0x4a')+_0x520548,'json':!![]};return rp(_0xbfdc78)['then'](function(_0x46d766){const _0x5e97ca=_0xef04f7,_0x2754fe=Object[_0x5e97ca('0x25')](_0x46d766);if(_0x46d766[_0x2754fe[0x0]][_0x5e97ca('0x6a')]&&parseInt(_0x46d766[_0x2754fe[0x0]]['error'])===0x0){const _0x5908f6={'messageId':_0x46d766[_0x2754fe[0x0]][_0x5e97ca('0x62')]};return!_0x37a19f[_0x5e97ca('0x30')]&&(_0x5908f6[_0x5e97ca('0x12')]=!![]),_0x11a875[_0x5e97ca('0xd')](_0x5908f6);}else return logger['error'](_0x5e97ca('0x5d'),_0x5e97ca('0xa'),_0x5e97ca('0x31'),util[_0x5e97ca('0x49')](_0x46d766[_0x5e97ca('0x6a')],{'showHidden':![],'depth':null}));})[_0xef04f7('0x20')](function(_0x1d98dd){const _0x579dc1=_0xef04f7;return logger['error'](_0x579dc1('0x5d'),_0x579dc1('0xa'),_0x579dc1('0x31'),util[_0x579dc1('0x49')](_0x1d98dd,{'showHidden':![],'depth':null}));});}else logger[_0xef04f7('0x6a')](_0xef04f7('0x5d'),'afterCreate','csc',_0xef04f7('0x3a'));break;}case _0xef04f7('0x50'):{if(_0x37a19f[_0xef04f7('0x4')]){const _0x3bb016={'method':_0xef04f7('0x57'),'uri':'https://platform.clickatell.com/messages','headers':{'Authorization':_0x37a19f[_0xef04f7('0x4')]},'body':{'content':_0x392e3f['body'],'to':[_0x392e3f[_0xef04f7('0x27')]],'from':_0x37a19f[_0xef04f7('0x27')],'binary':![],'clientMessageId':_0xef04f7('0x56'),'charset':'UTF-8'},'json':!![]};rp(_0x3bb016)[_0xef04f7('0x3')](function(_0x58cc67){const _0x2acf4d=_0xef04f7;if(!_0x58cc67['error']){const _0x227cf3={'messageId':_0x58cc67[_0x2acf4d('0x4d')][0x0][_0x2acf4d('0x41')]};return!_0x37a19f[_0x2acf4d('0x30')]&&(_0x227cf3[_0x2acf4d('0x12')]=!![]),_0x11a875[_0x2acf4d('0xd')](_0x227cf3);}else return logger[_0x2acf4d('0x6a')](_0x2acf4d('0x5d'),'afterCreate','clickatell',util[_0x2acf4d('0x49')](_0x58cc67[_0x2acf4d('0x6a')],{'showHidden':![],'depth':null}));})[_0xef04f7('0x20')](function(_0x1ec60b){const _0x3e0c0c=_0xef04f7;return logger[_0x3e0c0c('0x6a')](_0x3e0c0c('0x5d'),'afterCreate','clickatell',util[_0x3e0c0c('0x49')](_0x1ec60b,{'showHidden':![],'depth':null}));});}else logger['error'](_0xef04f7('0x5d'),'afterCreate',_0xef04f7('0x50'),_0xef04f7('0x3a'));break;}case _0xef04f7('0x1a'):if(_0x37a19f[_0xef04f7('0x4')]){const _0x15786d={},_0x376eea={'method':'POST','uri':'https://api.intelepeer.com/_rest/v4/app/sms/send','headers':{'Authorization':'Bearer\x20'+_0x37a19f[_0xef04f7('0x4')],'Content-Type':_0xef04f7('0x4b')},'body':{'from':_0x37a19f['phone'],'to':_0x392e3f[_0xef04f7('0x27')],'text':_0x392e3f['body']},'json':!![]};return rp(_0x376eea)[_0xef04f7('0x3')](function(_0x8bb84a){const _0x56abd1=_0xef04f7;if(_0x8bb84a[_0x56abd1('0x15')]==0xca){_0x15786d[_0x56abd1('0x34')]=_0x8bb84a;const _0x4732a0={'method':_0x56abd1('0x57'),'uri':'https://api.intelepeer.com/_rest/v4/app/sms/mdr','headers':{'Authorization':_0x56abd1('0x6c')+_0x37a19f[_0x56abd1('0x4')],'Content-Type':_0x56abd1('0x4b')},'body':{'refid':_0x15786d[_0x56abd1('0x34')]['refid']},'json':!![]};return rp(_0x4732a0)['then'](function(_0x210ad6){const _0x2cbf22=_0x56abd1;_0x15786d[_0x2cbf22('0x64')]=_0x210ad6;const _0x3cbccf={'messageId':_0x15786d[_0x2cbf22('0x34')][_0x2cbf22('0x2d')],'read':!![]};return _0x11a875[_0x2cbf22('0xd')](_0x3cbccf);});}else return logger[_0x56abd1('0x6a')](_0x56abd1('0x5d'),_0x56abd1('0xa'),'intelepeer',util['inspect'](_0x8bb84a,{'showHidden':![],'depth':null}));})[_0xef04f7('0x20')](function(_0x47f7f4){const _0x1892e1=_0xef04f7;return logger[_0x1892e1('0x6a')](_0x1892e1('0x5d'),_0x1892e1('0xa'),_0x1892e1('0x1a'),util['inspect'](_0x47f7f4,{'showHidden':![],'depth':null}));});}else return logger[_0xef04f7('0x6a')](_0xef04f7('0x5d'),'afterCreate',_0xef04f7('0x1a'),'Token\x20not\x20received');}})[_0xa135af('0x67')](function(){return null;});}else return null;}},'charset':_0x1afddc('0x59'),'collate':_0x1afddc('0x17')});return _0xdd8755;}; \ No newline at end of file +const a562_0x5d82=['apiKey','Basic\x20%s','type','plivo','get','login','smsMethod','exports','remote','https://platform.clickatell.com/messages','timestamp','refid','findOne','baseUrl','skebby','login?username=','toLowerCase','data','Token\x20not\x20received','intelepeer','hex','text','clickSend','deliveryReport','create','Bearer\x20','message','code','isNil','/auth/1/session','senderString','messages','https://rest.clicksend.com/v3/sms/send','read','direction','messageId','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','digest','createHash','afterCreate','token','split','fti_sms_messages','utf8mb4_unicode_ci','SmsAccount','sender','util','&password=','Missing\x20parameters:\x20username,\x20password','from','models','/api/sms/messages/','application/json','md5','sid','user_key','inspect','Missing\x20parameters:\x20base_url','%s:%s','https://api.skebby.it/API/v1.0/REST/','https://api.intelepeer.com/_rest/v4/app/sms/send','status','infobip','utf8mb4','clickatell','authToken','phone','total_sent','head','internal_order_id','session_key','POST','error','../../config/logger','update','define','then','GET','api','username','body','keys','toString','SmsMessage,\x20%s,\x20%s,\x20%s','catch','lodash','accountSid','/status?token=','Missing\x20parameters:\x20apiKey','sms_messages','message_id','connectel','IBSSO\x20','csc','./smsMessage.attributes','format','/sms/2/text/advanced','createdAt','authId','SmsInteractionId','Missing\x20parameters:\x20authToken','UTF-8','password','https://api.intelepeer.com/_rest/v4/app/sms/mdr','apiMessageId','SmsInteraction','uuid','secret','twilio'];(function(_0x5c3591,_0x5d8266){const _0x5d4cc4=function(_0x5ca645){while(--_0x5ca645){_0x5c3591['push'](_0x5c3591['shift']());}};_0x5d4cc4(++_0x5d8266);}(a562_0x5d82,0x11c));const a562_0x5d4c=function(_0x5c3591,_0x5d8266){_0x5c3591=_0x5c3591-0x0;let _0x5d4cc4=a562_0x5d82[_0x5c3591];return _0x5d4cc4;};const _0xdca884=a562_0x5d4c;'use strict';const _=require(_0xdca884('0x13')),util=require(_0xdca884('0x59')),logger=require(_0xdca884('0x7'))(_0xdca884('0xc')),rp=require('request-promise-native'),attributes=require(_0xdca884('0x1c'));module[_0xdca884('0x32')]=function(_0x5ca645){const _0xfad42f=_0xdca884,_0x1d469f=_0x5ca645[_0xfad42f('0x5d')],_0x5bf746=_0x5ca645[_0xfad42f('0x9')]('SmsMessage',attributes,{'tableName':_0xfad42f('0x17'),'paranoid':![],'indexes':[{'name':_0xfad42f('0x4e'),'fields':[_0xfad42f('0x4e')]},{'name':_0xfad42f('0x55'),'fields':['body'],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x70aa7f){const _0x3a1ba8=_0xfad42f,_0x4fd403=_0x70aa7f[_0x3a1ba8('0x2f')]({'plain':!![]});(_0x4fd403[_0x3a1ba8('0x4d')]['toLowerCase']()==='in'||_0x4fd403['direction'][_0x3a1ba8('0x3b')]()==='out'&&!_0x4fd403[_0x3a1ba8('0x29')]&&!_[_0x3a1ba8('0x47')](_0x4fd403['UserId']))&&_0x1d469f[_0x3a1ba8('0x27')][_0x3a1ba8('0x37')]({'where':{'id':_0x4fd403[_0x3a1ba8('0x21')]}})[_0x3a1ba8('0xa')](function(_0x464db8){const _0x52d8b1=_0x3a1ba8;_0x464db8&&_0x464db8[_0x52d8b1('0x8')]({'lastMsgAt':_0x4fd403[_0x52d8b1('0x1f')],'lastMsgDirection':_0x4fd403[_0x52d8b1('0x4d')][_0x52d8b1('0x3b')]()});})['catch'](function(_0x4fea0c){const _0x224f08=_0x3a1ba8;console[_0x224f08('0x6')](_0x4fea0c);});if(_0x4fd403[_0x3a1ba8('0x4d')]==='out'&&!_0x4fd403[_0x3a1ba8('0x29')]){let _0x1f668c;_0x1d469f[_0x3a1ba8('0x57')]['findOne']({'where':{'id':_0x4fd403['SmsAccountId']},'raw':!![]})[_0x3a1ba8('0xa')](function(_0x25ee7f){const _0x59d8e6=_0x3a1ba8;_0x1f668c=_0x25ee7f;if(_0x1f668c&&_0x1f668c[_0x59d8e6('0x2d')])switch(_0x1f668c['type']){case _0x59d8e6('0x2a'):{const _0x3812c7=require('twilio');if(_0x1f668c[_0x59d8e6('0x14')]&&_0x1f668c[_0x59d8e6('0x6c')]&&_0x1f668c[_0x59d8e6('0x0')]){const _0x18482b=new _0x3812c7(_0x1f668c[_0x59d8e6('0x14')],_0x1f668c['authToken']);_0x18482b[_0x59d8e6('0x4a')][_0x59d8e6('0x43')]({'body':_0x4fd403['body'],'to':_0x4fd403[_0x59d8e6('0x0')],'from':_0x1f668c[_0x59d8e6('0x0')],'statusCallback':_0x1f668c['remote']+_0x59d8e6('0x5e')+_0x4fd403['id']+_0x59d8e6('0x15')+_0x1f668c[_0x59d8e6('0x53')]})[_0x59d8e6('0xa')](function(_0x212c3d){const _0x34aec7=_0x59d8e6;if(_0x212c3d['sid'])return _0x70aa7f[_0x34aec7('0x8')]({'messageId':_0x212c3d[_0x34aec7('0x61')]});})[_0x59d8e6('0x12')](function(_0x465d66){const _0x503591=_0x59d8e6;logger[_0x503591('0x6')](_0x503591('0x11'),_0x503591('0x52'),_0x503591('0x2a'),util['inspect'](_0x465d66,{'showHidden':![],'depth':null}));});}else logger[_0x59d8e6('0x6')](_0x59d8e6('0x11'),'afterCreate','twilio',_0x59d8e6('0x4f'));break;}case'skebby':{const _0x1d803a=_0x59d8e6('0x66');if(_0x1f668c[_0x59d8e6('0xd')]&&_0x1f668c[_0x59d8e6('0x24')]){const _0x118cf8={'recipient':[_0x4fd403[_0x59d8e6('0x0')]],'message':_0x4fd403[_0x59d8e6('0xe')],'message_type':_0x1f668c[_0x59d8e6('0x31')]};_0x1f668c[_0x59d8e6('0x31')]&&_0x1f668c[_0x59d8e6('0x31')]!=='SI'&&(_0x118cf8[_0x59d8e6('0x58')]=_0x1f668c[_0x59d8e6('0x0')]);let _0x2bb1da={'url':_0x1d803a+_0x59d8e6('0x3a')+_0x1f668c[_0x59d8e6('0xd')]+_0x59d8e6('0x5a')+_0x1f668c[_0x59d8e6('0x24')],'method':_0x59d8e6('0xb')};rp(_0x2bb1da)[_0x59d8e6('0xa')](function(_0x1ee3fb){const _0x33a7e7=_0x59d8e6,_0x138211=_0x1ee3fb[_0x33a7e7('0x54')](';'),_0x1f4fab={'user_key':_0x138211[0x0],'session_key':_0x138211[0x1]};return _0x2bb1da={'url':_0x1d803a+'sms','method':_0x33a7e7('0x5'),'headers':{'user_key':_0x1f4fab[_0x33a7e7('0x62')],'Session_key':_0x1f4fab[_0x33a7e7('0x4')]},'json':!![],'body':_0x118cf8},rp(_0x2bb1da);})[_0x59d8e6('0xa')](function(_0x4d258d){const _0x26f262=_0x59d8e6;if(_0x4d258d[_0x26f262('0x1')]>=0x1){const _0x3e6b75={'messageId':_0x4d258d[_0x26f262('0x3')]};return(_0x1f668c['smsMethod']!=='GP'||!_0x1f668c[_0x26f262('0x42')])&&(_0x3e6b75[_0x26f262('0x4c')]=!![]),_0x70aa7f['update'](_0x3e6b75);}else return logger[_0x26f262('0x6')](_0x26f262('0x11'),_0x26f262('0x52'),_0x26f262('0x39'),util[_0x26f262('0x63')](_0x4d258d,{'showHidden':![],'depth':null}));})[_0x59d8e6('0x12')](function(_0x9e2477){const _0x39478b=_0x59d8e6;return logger[_0x39478b('0x6')](_0x39478b('0x11'),'afterCreate',_0x39478b('0x39'),util[_0x39478b('0x63')](_0x9e2477,{'showHidden':![],'depth':null}));});}else logger[_0x59d8e6('0x6')](_0x59d8e6('0x11'),_0x59d8e6('0x52'),_0x59d8e6('0x39'),_0x59d8e6('0x5b'));break;}case _0x59d8e6('0x19'):{if(_0x1f668c['authToken']){const _0x2c8b6d={'recipient':_0x4fd403[_0x59d8e6('0x0')],'message':_0x4fd403[_0x59d8e6('0xe')],'sender':_0x1f668c[_0x59d8e6('0x49')]||_0x1f668c[_0x59d8e6('0x0')],'authorization':_0x1f668c[_0x59d8e6('0x6c')]},_0x25a2e7={'method':'POST','uri':'https://smsapi.connectel.se/api/v2/send/','body':_0x2c8b6d,'json':!![]};rp(_0x25a2e7)[_0x59d8e6('0xa')](function(_0x1ccfb2){const _0x5c6c67=_0x59d8e6,_0x438f95={'messageId':_0x1ccfb2['requestid']};return!_0x1f668c[_0x5c6c67('0x42')]&&(_0x438f95[_0x5c6c67('0x4c')]=!![]),_0x70aa7f['update'](_0x438f95);})[_0x59d8e6('0x12')](function(_0x366b41){const _0x4366cc=_0x59d8e6;logger[_0x4366cc('0x6')](_0x4366cc('0x11'),_0x4366cc('0x52'),_0x4366cc('0x19'),util[_0x4366cc('0x63')](_0x366b41,{'showHidden':![],'depth':null}));});}else logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x59d8e6('0x19'),_0x59d8e6('0x22'));break;}case'clicksend':{if(_0x1f668c[_0x59d8e6('0xd')]&&_0x1f668c['password']){const _0x58e1c9={'messages':[{'source':'xCALLY\x20Motion','to':_0x4fd403[_0x59d8e6('0x0')],'body':_0x4fd403['body'],'from':_0x1f668c[_0x59d8e6('0x49')]||_0x1f668c[_0x59d8e6('0x0')]}]},_0x10f11b=util[_0x59d8e6('0x1d')](_0x59d8e6('0x65'),_0x1f668c[_0x59d8e6('0xd')],_0x1f668c[_0x59d8e6('0x24')]),_0x6931be={'method':'POST','uri':_0x59d8e6('0x4b'),'body':_0x58e1c9,'headers':{'Authorization':util[_0x59d8e6('0x1d')](_0x59d8e6('0x2c'),Buffer[_0x59d8e6('0x5c')](_0x10f11b)[_0x59d8e6('0x10')]('base64'))},'json':!![]};rp(_0x6931be)[_0x59d8e6('0xa')](function(_0x5cb063){const _0x53e94b=_0x59d8e6;if(_0x5cb063['http_code']>=0xc8&&_0x5cb063['http_code']<=0xce){if(_0x5cb063[_0x53e94b('0x3c')]&&_0x5cb063[_0x53e94b('0x3c')]['queued_count']>0x0){const _0x2d11e0=_[_0x53e94b('0x2')](_0x5cb063[_0x53e94b('0x3c')][_0x53e94b('0x4a')]),_0x51e4e8={'messageId':_0x2d11e0[_0x53e94b('0x18')]};return!_0x1f668c['deliveryReport']&&(_0x51e4e8[_0x53e94b('0x4c')]=!![]),_0x70aa7f[_0x53e94b('0x8')](_0x51e4e8);}else logger['error'](_0x53e94b('0x11'),_0x53e94b('0x52'),'clickSend',util[_0x53e94b('0x63')](_0x5cb063,{'showHidden':![],'depth':null}));}else logger[_0x53e94b('0x6')](_0x53e94b('0x11'),_0x53e94b('0x52'),'clickSend',util[_0x53e94b('0x63')](_0x5cb063,{'showHidden':![],'depth':null}));})['catch'](function(_0xbc990c){const _0xa5e2f1=_0x59d8e6;logger[_0xa5e2f1('0x6')](_0xa5e2f1('0x11'),_0xa5e2f1('0x52'),_0xa5e2f1('0x41'),util[_0xa5e2f1('0x63')](_0xbc990c,{'showHidden':![],'depth':null}));});}else logger[_0x59d8e6('0x6')](_0x59d8e6('0x11'),_0x59d8e6('0x52'),_0x59d8e6('0x41'),'Missing\x20parameters:\x20username,\x20password');break;}case _0x59d8e6('0x2e'):{if(_0x1f668c[_0x59d8e6('0x20')]&&_0x1f668c[_0x59d8e6('0x6c')]){const _0x534fd3={'dst':_0x4fd403['phone'],'text':_0x4fd403[_0x59d8e6('0xe')],'src':_0x1f668c[_0x59d8e6('0x49')]||_0x1f668c[_0x59d8e6('0x0')],'url':_0x1f668c['remote']+'/api/sms/messages/'+_0x4fd403['id']+_0x59d8e6('0x15')+_0x1f668c[_0x59d8e6('0x53')]},_0x27bd8b=util[_0x59d8e6('0x1d')](_0x59d8e6('0x65'),_0x1f668c[_0x59d8e6('0x20')],_0x1f668c[_0x59d8e6('0x6c')]),_0xb6bdca={'method':_0x59d8e6('0x5'),'uri':util[_0x59d8e6('0x1d')]('https://api.plivo.com/v1/Account/%s/Message/',_0x1f668c[_0x59d8e6('0x20')]),'body':_0x534fd3,'headers':{'Authorization':util[_0x59d8e6('0x1d')](_0x59d8e6('0x2c'),Buffer[_0x59d8e6('0x5c')](_0x27bd8b)['toString']('base64'))},'json':!![]};rp(_0xb6bdca)[_0x59d8e6('0xa')](function(_0x4efd7b){const _0x129af2=_0x59d8e6,_0x1ad391={'messageId':_0x4efd7b['message_uuid'][0x0]};return _0x70aa7f[_0x129af2('0x8')](_0x1ad391);})[_0x59d8e6('0x12')](function(_0x231a6b){const _0x42a744=_0x59d8e6;logger[_0x42a744('0x6')](_0x42a744('0x11'),_0x42a744('0x52'),_0x42a744('0x2e'),util[_0x42a744('0x63')](_0x231a6b,{'showHidden':![],'depth':null}));});}else logger[_0x59d8e6('0x6')]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x59d8e6('0x2e'),'Missing\x20parameters:\x20authId,\x20authToken');break;}case'infobip':{if(_0x1f668c[_0x59d8e6('0xd')]&&_0x1f668c[_0x59d8e6('0x24')]){if(_0x1f668c[_0x59d8e6('0x38')]){const _0x26cd85={'method':_0x59d8e6('0x5'),'uri':_0x1f668c[_0x59d8e6('0x38')]+_0x59d8e6('0x48'),'body':{'username':_0x1f668c[_0x59d8e6('0xd')],'password':_0x1f668c[_0x59d8e6('0x24')]},'json':!![]};return rp(_0x26cd85)[_0x59d8e6('0xa')](function(_0x25b5d2){const _0x3a7953=_0x59d8e6,_0x119d95={'method':_0x3a7953('0x5'),'uri':_0x1f668c[_0x3a7953('0x38')]+_0x3a7953('0x1e'),'body':{'messages':[{'from':_0x1f668c[_0x3a7953('0x0')],'destinations':[{'to':_0x4fd403['phone']}],'text':_0x4fd403['body'],'notifyUrl':_0x1f668c[_0x3a7953('0x33')]+_0x3a7953('0x5e')+_0x4fd403['id']+_0x3a7953('0x15')+_0x1f668c[_0x3a7953('0x53')],'notifyContentType':_0x3a7953('0x5f'),'callbackData':_0x1f668c[_0x3a7953('0x0')]+';'+_0x4fd403[_0x3a7953('0xe')]}]},'headers':{'Authorization':_0x3a7953('0x1a')+_0x25b5d2['token']},'json':!![]};return rp(_0x119d95)['then'](function(_0x782d2e){const _0x1236b8=_0x3a7953;if(_0x782d2e['messages']){const _0x33d83e={'messageId':_0x782d2e[_0x1236b8('0x4a')][0x0]['messageId']};return!_0x1f668c[_0x1236b8('0x42')]&&(_0x33d83e[_0x1236b8('0x4c')]=!![]),_0x70aa7f[_0x1236b8('0x8')](_0x33d83e);}else return logger[_0x1236b8('0x6')](_0x1236b8('0x11'),_0x1236b8('0x52'),_0x1236b8('0x69'),util[_0x1236b8('0x63')](_0x782d2e,{'showHidden':![],'depth':null}));});})[_0x59d8e6('0x12')](function(_0xf8a97e){const _0x108be3=_0x59d8e6;return logger[_0x108be3('0x6')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x108be3('0x52'),_0x108be3('0x69'),util[_0x108be3('0x63')](_0xf8a97e,{'showHidden':![],'depth':null}));});}else logger[_0x59d8e6('0x6')](_0x59d8e6('0x11'),_0x59d8e6('0x52'),_0x59d8e6('0x69'),_0x59d8e6('0x64'));}else logger[_0x59d8e6('0x6')](_0x59d8e6('0x11'),_0x59d8e6('0x52'),_0x59d8e6('0x69'),_0x59d8e6('0x5b'));break;}case _0x59d8e6('0x1b'):{const _0x2445db=require('crypto');if(_0x1f668c[_0x59d8e6('0x2b')]){const _0x240574={};_0x240574[_0x59d8e6('0x30')]=_0x1f668c['username'],_0x240574['phone']=_0x4fd403[_0x59d8e6('0x0')],_0x240574[_0x59d8e6('0x58')]=_0x1f668c[_0x59d8e6('0x0')],_0x240574[_0x59d8e6('0x40')]=_0x4fd403[_0x59d8e6('0xe')],_0x240574[_0x59d8e6('0x35')]=+new Date();let _0x238fbe='',_0x42d9db='';const _0x597da8=Object[_0x59d8e6('0xf')](_0x240574);_0x597da8['sort']();for(let _0x2ccfbc=0x0;_0x2ccfbc<_0x597da8['length'];_0x2ccfbc++){_0x238fbe!=''&&(_0x238fbe+='&'),_0x238fbe+=_0x597da8[_0x2ccfbc]+'='+encodeURIComponent(_0x240574[_0x597da8[_0x2ccfbc]]),_0x42d9db+=_0x240574[_0x597da8[_0x2ccfbc]];}_0x42d9db+=_0x1f668c[_0x59d8e6('0x2b')],_0x42d9db=_0x2445db[_0x59d8e6('0x51')](_0x59d8e6('0x60'))[_0x59d8e6('0x8')](_0x42d9db)[_0x59d8e6('0x50')](_0x59d8e6('0x3f'));_0x238fbe!==''&&(_0x238fbe+='&');_0x238fbe+='signature='+_0x42d9db;const _0xac1b91={'method':'GET','uri':_0x1f668c[_0x59d8e6('0x38')]+'/external/get/send.php?'+_0x238fbe,'json':!![]};return rp(_0xac1b91)['then'](function(_0x98d831){const _0x421e19=_0x59d8e6,_0x47fb95=Object['keys'](_0x98d831);if(_0x98d831[_0x47fb95[0x0]][_0x421e19('0x6')]&&parseInt(_0x98d831[_0x47fb95[0x0]][_0x421e19('0x6')])===0x0){const _0x268eda={'messageId':_0x98d831[_0x47fb95[0x0]]['id_sms']};return!_0x1f668c[_0x421e19('0x42')]&&(_0x268eda[_0x421e19('0x4c')]=!![]),_0x70aa7f[_0x421e19('0x8')](_0x268eda);}else return logger['error'](_0x421e19('0x11'),_0x421e19('0x52'),_0x421e19('0x1b'),util[_0x421e19('0x63')](_0x98d831['error'],{'showHidden':![],'depth':null}));})['catch'](function(_0xb271ee){const _0xe68e91=_0x59d8e6;return logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0xe68e91('0x1b'),util[_0xe68e91('0x63')](_0xb271ee,{'showHidden':![],'depth':null}));});}else logger[_0x59d8e6('0x6')](_0x59d8e6('0x11'),_0x59d8e6('0x52'),_0x59d8e6('0x1b'),_0x59d8e6('0x16'));break;}case _0x59d8e6('0x6b'):{if(_0x1f668c[_0x59d8e6('0x2b')]){const _0x11bc09={'method':'POST','uri':_0x59d8e6('0x34'),'headers':{'Authorization':_0x1f668c[_0x59d8e6('0x2b')]},'body':{'content':_0x4fd403[_0x59d8e6('0xe')],'to':[_0x4fd403[_0x59d8e6('0x0')]],'from':_0x1f668c['phone'],'binary':![],'clientMessageId':_0x59d8e6('0x28'),'charset':_0x59d8e6('0x23')},'json':!![]};rp(_0x11bc09)[_0x59d8e6('0xa')](function(_0x11fe2b){const _0x1e2673=_0x59d8e6;if(!_0x11fe2b['error']){const _0x23299d={'messageId':_0x11fe2b[_0x1e2673('0x4a')][0x0][_0x1e2673('0x26')]};return!_0x1f668c['deliveryReport']&&(_0x23299d[_0x1e2673('0x4c')]=!![]),_0x70aa7f[_0x1e2673('0x8')](_0x23299d);}else return logger[_0x1e2673('0x6')](_0x1e2673('0x11'),_0x1e2673('0x52'),_0x1e2673('0x6b'),util['inspect'](_0x11fe2b[_0x1e2673('0x6')],{'showHidden':![],'depth':null}));})[_0x59d8e6('0x12')](function(_0x30c7fe){const _0x58d72f=_0x59d8e6;return logger[_0x58d72f('0x6')](_0x58d72f('0x11'),_0x58d72f('0x52'),_0x58d72f('0x6b'),util[_0x58d72f('0x63')](_0x30c7fe,{'showHidden':![],'depth':null}));});}else logger[_0x59d8e6('0x6')](_0x59d8e6('0x11'),_0x59d8e6('0x52'),_0x59d8e6('0x6b'),_0x59d8e6('0x16'));break;}case _0x59d8e6('0x3e'):if(_0x1f668c[_0x59d8e6('0x2b')]){const _0x4c114a={},_0x41d920={'method':_0x59d8e6('0x5'),'uri':_0x59d8e6('0x67'),'headers':{'Authorization':_0x59d8e6('0x44')+_0x1f668c[_0x59d8e6('0x2b')],'Content-Type':_0x59d8e6('0x5f')},'body':{'from':_0x1f668c[_0x59d8e6('0x0')],'to':_0x4fd403[_0x59d8e6('0x0')],'text':_0x4fd403['body']},'json':!![]};return rp(_0x41d920)[_0x59d8e6('0xa')](function(_0x2bf36c){const _0x44da1c=_0x59d8e6;if(_0x2bf36c[_0x44da1c('0x46')]==0xca){_0x4c114a['message']=_0x2bf36c;const _0x4540ad={'method':_0x44da1c('0x5'),'uri':_0x44da1c('0x25'),'headers':{'Authorization':_0x44da1c('0x44')+_0x1f668c[_0x44da1c('0x2b')],'Content-Type':_0x44da1c('0x5f')},'body':{'refid':_0x4c114a[_0x44da1c('0x45')][_0x44da1c('0x36')]},'json':!![]};return rp(_0x4540ad)['then'](function(_0x1f97e7){const _0x10c5f7=_0x44da1c;_0x4c114a[_0x10c5f7('0x68')]=_0x1f97e7;const _0x443947={'messageId':_0x4c114a['message'][_0x10c5f7('0x36')],'read':!![]};return _0x70aa7f[_0x10c5f7('0x8')](_0x443947);});}else return logger[_0x44da1c('0x6')](_0x44da1c('0x11'),_0x44da1c('0x52'),_0x44da1c('0x3e'),util[_0x44da1c('0x63')](_0x2bf36c,{'showHidden':![],'depth':null}));})[_0x59d8e6('0x12')](function(_0x38b4ab){const _0x5a57a9=_0x59d8e6;return logger[_0x5a57a9('0x6')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x5a57a9('0x52'),_0x5a57a9('0x3e'),util[_0x5a57a9('0x63')](_0x38b4ab,{'showHidden':![],'depth':null}));});}else return logger[_0x59d8e6('0x6')](_0x59d8e6('0x11'),_0x59d8e6('0x52'),'intelepeer',_0x59d8e6('0x3d'));}})['finally'](function(){return null;});}else return null;}},'charset':_0xfad42f('0x6a'),'collate':_0xfad42f('0x56')});return _0x5bf746;}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.rpc.js b/server/api/smsMessage/smsMessage.rpc.js index 2b2780f..9ab1f89 100644 --- a/server/api/smsMessage/smsMessage.rpc.js +++ b/server/api/smsMessage/smsMessage.rpc.js @@ -1 +1 @@ -const a563_0x1ff4=['register','debug','stringify','../../mysqldb','./smsMessage.socket','info','rpc','raw','options','../../config/logger','CreateSmsMessage','error','message'];(function(_0x39bebd,_0x1ff485){const _0x2ab814=function(_0x5bf6c7){while(--_0x5bf6c7){_0x39bebd['push'](_0x39bebd['shift']());}};_0x2ab814(++_0x1ff485);}(a563_0x1ff4,0x1a6));const a563_0x2ab8=function(_0x39bebd,_0x1ff485){_0x39bebd=_0x39bebd-0x0;let _0x2ab814=a563_0x1ff4[_0x39bebd];return _0x2ab814;};const _0xdc9efb=a563_0x2ab8;'use strict';const db=require(_0xdc9efb('0xa'))['db'],logger=require(_0xdc9efb('0x3'))(_0xdc9efb('0x0')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0xdc9efb('0xb'))[_0xdc9efb('0x7')](socket),exports[_0xdc9efb('0x4')]=function(_0x5bf6c7){const _0x419296=this;return new Promise(function(_0x416f5d,_0x5d12a8){const _0x585f75=a563_0x2ab8;return db['SmsMessage']['create'](_0x5bf6c7['body'],{'raw':_0x5bf6c7[_0x585f75('0x2')]?_0x5bf6c7[_0x585f75('0x2')][_0x585f75('0x1')]===undefined?!![]:![]:!![]})['then'](function(_0x4d2120){const _0x24bca0=_0x585f75;logger[_0x24bca0('0xc')](_0x24bca0('0x4'),_0x5bf6c7),logger[_0x24bca0('0x8')](_0x24bca0('0x4'),_0x5bf6c7,JSON[_0x24bca0('0x9')](_0x4d2120)),_0x416f5d(_0x4d2120);})['catch'](function(_0x3cdbf8){const _0x5380ed=_0x585f75;logger[_0x5380ed('0x5')](_0x5380ed('0x4'),_0x3cdbf8[_0x5380ed('0x6')],_0x5bf6c7),_0x5d12a8(_0x419296[_0x5380ed('0x5')](0x1f4,_0x3cdbf8[_0x5380ed('0x6')]));});});}; \ No newline at end of file +const a563_0x56af=['register','CreateSmsMessage','rpc','./smsMessage.socket','error','SmsMessage','body','../../mysqldb','message','create','then','raw','options','stringify','../../config/logger'];(function(_0x43dcd3,_0x56aff0){const _0x2af0ec=function(_0xf03aa4){while(--_0xf03aa4){_0x43dcd3['push'](_0x43dcd3['shift']());}};_0x2af0ec(++_0x56aff0);}(a563_0x56af,0x110));const a563_0x2af0=function(_0x43dcd3,_0x56aff0){_0x43dcd3=_0x43dcd3-0x0;let _0x2af0ec=a563_0x56af[_0x43dcd3];return _0x2af0ec;};const _0x202312=a563_0x2af0;'use strict';const db=require(_0x202312('0x5'))['db'],logger=require(_0x202312('0xc'))(_0x202312('0x0')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x202312('0x1'))[_0x202312('0xd')](socket),exports[_0x202312('0xe')]=function(_0xf03aa4){const _0x42ce70=this;return new Promise(function(_0x53f2e8,_0x5e66dc){const _0xac2add=a563_0x2af0;return db[_0xac2add('0x3')][_0xac2add('0x7')](_0xf03aa4[_0xac2add('0x4')],{'raw':_0xf03aa4['options']?_0xf03aa4[_0xac2add('0xa')][_0xac2add('0x9')]===undefined?!![]:![]:!![]})[_0xac2add('0x8')](function(_0x35e692){const _0x45b2d4=_0xac2add;logger['info'](_0x45b2d4('0xe'),_0xf03aa4),logger['debug'](_0x45b2d4('0xe'),_0xf03aa4,JSON[_0x45b2d4('0xb')](_0x35e692)),_0x53f2e8(_0x35e692);})['catch'](function(_0x212c33){const _0x4b6458=_0xac2add;logger['error'](_0x4b6458('0xe'),_0x212c33[_0x4b6458('0x6')],_0xf03aa4),_0x5e66dc(_0x42ce70[_0x4b6458('0x2')](0x1f4,_0x212c33[_0x4b6458('0x6')]));});});}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.socket.js b/server/api/smsMessage/smsMessage.socket.js index 88a86e9..d7df83d 100644 --- a/server/api/smsMessage/smsMessage.socket.js +++ b/server/api/smsMessage/smsMessage.socket.js @@ -1 +1 @@ -const a564_0x40a0=['length','update','remove','register','smsMessage:'];(function(_0x33252a,_0x40a09a){const _0x408019=function(_0x5058b2){while(--_0x5058b2){_0x33252a['push'](_0x33252a['shift']());}};_0x408019(++_0x40a09a);}(a564_0x40a0,0xce));const a564_0x4080=function(_0x33252a,_0x40a09a){_0x33252a=_0x33252a-0x0;let _0x408019=a564_0x40a0[_0x33252a];return _0x408019;};const _0x741966=a564_0x4080;'use strict';const SmsMessageEvents=require('./smsMessage.events'),events=['save',_0x741966('0x1'),_0x741966('0x0')];function createListener(_0x5058b2,_0x35e896){return function(_0x485b65){_0x35e896['emit'](_0x5058b2,_0x485b65);};}exports[_0x741966('0x2')]=function(_0x406955){const _0x209adb=_0x741966;for(let _0x367e13=0x0,_0x56142e=events[_0x209adb('0x4')];_0x367e13<_0x56142e;_0x367e13++){const _0x2be6f9=events[_0x367e13],_0x1b6af3=createListener(_0x209adb('0x3')+_0x2be6f9,_0x406955);SmsMessageEvents['on'](_0x2be6f9,_0x1b6af3);}}; \ No newline at end of file +const a564_0x269e=['smsMessage:','update','length','register','save','./smsMessage.events','remove'];(function(_0x13864a,_0x269ece){const _0x4afb03=function(_0x4d9dd4){while(--_0x4d9dd4){_0x13864a['push'](_0x13864a['shift']());}};_0x4afb03(++_0x269ece);}(a564_0x269e,0x1da));const a564_0x4afb=function(_0x13864a,_0x269ece){_0x13864a=_0x13864a-0x0;let _0x4afb03=a564_0x269e[_0x13864a];return _0x4afb03;};const _0x494232=a564_0x4afb;'use strict';const SmsMessageEvents=require(_0x494232('0x0')),events=[_0x494232('0x6'),_0x494232('0x1'),_0x494232('0x3')];function createListener(_0x4d9dd4,_0x2bbd38){return function(_0x8c3402){_0x2bbd38['emit'](_0x4d9dd4,_0x8c3402);};}exports[_0x494232('0x5')]=function(_0x58ea73){const _0x1a0105=_0x494232;for(let _0x2238a9=0x0,_0x2bebe9=events[_0x1a0105('0x4')];_0x2238a9<_0x2bebe9;_0x2238a9++){const _0x8e4415=events[_0x2238a9],_0x5e63e8=createListener(_0x1a0105('0x2')+_0x8e4415,_0x58ea73);SmsMessageEvents['on'](_0x8e4415,_0x5e63e8);}}; \ No newline at end of file diff --git a/server/api/smsQueue/index.js b/server/api/smsQueue/index.js index 7a7749e..a0f9f56 100644 --- a/server/api/smsQueue/index.js +++ b/server/api/smsQueue/index.js @@ -1 +1 @@ -const a565_0x50d1=['../../components/auth/service','getMembers','addTeams','removeAgents','/:id/members','delete','/:id/teams','create','addAgents','update','removeTeams','isAuthenticated','destroy','show','get','Router','getAgents','post','put','/:id/users','/:id'];(function(_0x47e19b,_0x50d1ca){const _0x55b5b9=function(_0x5f4c66){while(--_0x5f4c66){_0x47e19b['push'](_0x47e19b['shift']());}};_0x55b5b9(++_0x50d1ca);}(a565_0x50d1,0x107));const a565_0x55b5=function(_0x47e19b,_0x50d1ca){_0x47e19b=_0x47e19b-0x0;let _0x55b5b9=a565_0x50d1[_0x47e19b];return _0x55b5b9;};const _0x5b1aa7=a565_0x55b5;'use strict';const express=require('express'),router=express[_0x5b1aa7('0x4')](),auth=require(_0x5b1aa7('0xa')),controller=require('./smsQueue.controller');router[_0x5b1aa7('0x3')]('/',auth['isAuthenticated'](),controller['index']),router[_0x5b1aa7('0x3')]('/describe',auth[_0x5b1aa7('0x0')](),controller['describe']),router[_0x5b1aa7('0x3')](_0x5b1aa7('0x9'),auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0x2')]),router[_0x5b1aa7('0x3')](_0x5b1aa7('0xe'),auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0xb')]),router['get'](_0x5b1aa7('0x10'),auth[_0x5b1aa7('0x0')](),controller['getTeams']),router[_0x5b1aa7('0x3')](_0x5b1aa7('0x8'),auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0x5')]),router['post']('/',auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0x11')]),router['post'](_0x5b1aa7('0x10'),auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0xc')]),router[_0x5b1aa7('0x6')](_0x5b1aa7('0x8'),auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0x12')]),router[_0x5b1aa7('0x7')](_0x5b1aa7('0x9'),auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0x13')]),router[_0x5b1aa7('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x5b1aa7('0x1')]),router[_0x5b1aa7('0xf')](_0x5b1aa7('0x10'),auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0x14')]),router['delete'](_0x5b1aa7('0x8'),auth[_0x5b1aa7('0x0')](),controller[_0x5b1aa7('0xd')]),module['exports']=router; \ No newline at end of file +const a565_0x38bf=['Router','removeTeams','create','destroy','/:id','getAgents','post','/:id/users','index','get','/:id/members','getMembers','delete','addTeams','update','getTeams','isAuthenticated','../../components/auth/service','express','put','/:id/teams','show'];(function(_0x1a699d,_0x38bf9a){const _0x363c0a=function(_0x20f520){while(--_0x20f520){_0x1a699d['push'](_0x1a699d['shift']());}};_0x363c0a(++_0x38bf9a);}(a565_0x38bf,0x177));const a565_0x363c=function(_0x1a699d,_0x38bf9a){_0x1a699d=_0x1a699d-0x0;let _0x363c0a=a565_0x38bf[_0x1a699d];return _0x363c0a;};const _0x27fb6a=a565_0x363c;'use strict';const express=require(_0x27fb6a('0x11')),router=express[_0x27fb6a('0x15')](),auth=require(_0x27fb6a('0x10')),controller=require('./smsQueue.controller');router['get']('/',auth[_0x27fb6a('0xf')](),controller[_0x27fb6a('0x7')]),router['get']('/describe',auth[_0x27fb6a('0xf')](),controller['describe']),router[_0x27fb6a('0x8')](_0x27fb6a('0x3'),auth[_0x27fb6a('0xf')](),controller[_0x27fb6a('0x14')]),router[_0x27fb6a('0x8')](_0x27fb6a('0x9'),auth[_0x27fb6a('0xf')](),controller[_0x27fb6a('0xa')]),router['get'](_0x27fb6a('0x13'),auth[_0x27fb6a('0xf')](),controller[_0x27fb6a('0xe')]),router[_0x27fb6a('0x8')](_0x27fb6a('0x6'),auth['isAuthenticated'](),controller[_0x27fb6a('0x4')]),router[_0x27fb6a('0x5')]('/',auth[_0x27fb6a('0xf')](),controller[_0x27fb6a('0x1')]),router[_0x27fb6a('0x5')](_0x27fb6a('0x13'),auth[_0x27fb6a('0xf')](),controller[_0x27fb6a('0xc')]),router[_0x27fb6a('0x5')](_0x27fb6a('0x6'),auth[_0x27fb6a('0xf')](),controller['addAgents']),router[_0x27fb6a('0x12')](_0x27fb6a('0x3'),auth['isAuthenticated'](),controller[_0x27fb6a('0xd')]),router['delete'](_0x27fb6a('0x3'),auth[_0x27fb6a('0xf')](),controller[_0x27fb6a('0x2')]),router[_0x27fb6a('0xb')](_0x27fb6a('0x13'),auth['isAuthenticated'](),controller[_0x27fb6a('0x0')]),router['delete'](_0x27fb6a('0x6'),auth[_0x27fb6a('0xf')](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.attributes.js b/server/api/smsQueue/smsQueue.attributes.js index 624e0ad..262ba7f 100644 --- a/server/api/smsQueue/smsQueue.attributes.js +++ b/server/api/smsQueue/smsQueue.attributes.js @@ -1 +1 @@ -const a566_0x37d5=['beepall','INTEGER','STRING','roundrobin','ENUM','exports','rrmemory','name'];(function(_0x5ae707,_0x37d5b7){const _0x2f95db=function(_0x5eabc9){while(--_0x5eabc9){_0x5ae707['push'](_0x5ae707['shift']());}};_0x2f95db(++_0x37d5b7);}(a566_0x37d5,0xdf));const a566_0x2f95=function(_0x5ae707,_0x37d5b7){_0x5ae707=_0x5ae707-0x0;let _0x2f95db=a566_0x37d5[_0x5ae707];return _0x2f95db;};const _0x45e5fa=a566_0x2f95;'use strict';const Sequelize=require('sequelize');module[_0x45e5fa('0x6')]={'name':{'type':Sequelize[_0x45e5fa('0x3')],'unique':_0x45e5fa('0x0'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize['STRING']},'timeout':{'type':Sequelize[_0x45e5fa('0x2')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x45e5fa('0x5')](_0x45e5fa('0x7'),_0x45e5fa('0x1'),_0x45e5fa('0x4'))}}; \ No newline at end of file +const a566_0x4e7d=['exports','rrmemory','beepall','name','roundrobin','ENUM','INTEGER','STRING','sequelize'];(function(_0x5da37c,_0x4e7d77){const _0x366d18=function(_0x5e2d25){while(--_0x5e2d25){_0x5da37c['push'](_0x5da37c['shift']());}};_0x366d18(++_0x4e7d77);}(a566_0x4e7d,0x1df));const a566_0x366d=function(_0x5da37c,_0x4e7d77){_0x5da37c=_0x5da37c-0x0;let _0x366d18=a566_0x4e7d[_0x5da37c];return _0x366d18;};const _0x5c449d=a566_0x366d;'use strict';const Sequelize=require(_0x5c449d('0x6'));module[_0x5c449d('0x7')]={'name':{'type':Sequelize['STRING'],'unique':_0x5c449d('0x1'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x5c449d('0x5')]},'timeout':{'type':Sequelize[_0x5c449d('0x4')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x5c449d('0x3')](_0x5c449d('0x8'),_0x5c449d('0x0'),_0x5c449d('0x2'))}}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.controller.js b/server/api/smsQueue/smsQueue.controller.js index d5f00b2..2c0e4f9 100644 --- a/server/api/smsQueue/smsQueue.controller.js +++ b/server/api/smsQueue/smsQueue.controller.js @@ -1 +1 @@ -const a567_0x1508=['getAgents','online','format','autoAssociation','count','User','team_has_sms_queues','voicePause','limit','agent','show','end','undefined','UserProfileResource','ut.UserId\x20=\x20?','Content-Range','emit','sequelize','SmsQueue','removeAgents','model','name','fields','select','user','TeamId','push','userSmsQueue:remove','map','getMembers','util','get','keys','../../mysqldb','params','clone','isArray','all','describe','UserSmsQueue','destroy','removeTeams','../../rediscache','rawAttributes','Unable\x20to\x20retrieve\x20the\x20current\x20user','nolimit','status','flatMap','include','rows','interface','update','includes','../../config/logger','register','lodash','SmsQueueId','fieldName','pick','catch','QueryTypes','tq.TeamId','order','each','sendStatus','userSmsQueue:save','union','toString','smsPause','field','findOne','UserId','json','type','index','key','every','SmsQueues','intersection','updatedAt','error','findAll','where','includeAll','like','ids','isEmpty','VIRTUAL','addAgents','forEach','ut.TeamId\x20=\x20tq.TeamId','filters','compact','omit','options','Agents','transaction','getTeams','api','filter','merge','attributes','body','sort','create','SIP','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','squel','offset','role','length','then','addTeams','../../components/parsers/qs','Team','stack','query','UserProfileSection'];(function(_0x578285,_0x1508bf){const _0x51e28d=function(_0x44854e){while(--_0x44854e){_0x578285['push'](_0x578285['shift']());}};_0x51e28d(++_0x1508bf);}(a567_0x1508,0xc1));const a567_0x51e2=function(_0x578285,_0x1508bf){_0x578285=_0x578285-0x0;let _0x51e28d=a567_0x1508[_0x578285];return _0x51e28d;};const _0x3ba6f8=a567_0x51e2;'use strict';const util=require(_0x3ba6f8('0x49')),_=require(_0x3ba6f8('0x62')),squel=require(_0x3ba6f8('0x20')),qs=require(_0x3ba6f8('0x26')),logger=require(_0x3ba6f8('0x60'))(_0x3ba6f8('0x17')),{getSocket}=require(_0x3ba6f8('0x55')),socket=getSocket(),db=require(_0x3ba6f8('0x4c'))['db'],{Op}=require(_0x3ba6f8('0x3c'));require('./smsQueue.socket')[_0x3ba6f8('0x61')](socket);function respondWithStatusCode(_0x44854e,_0x1a4f37){return _0x1a4f37=_0x1a4f37||0xcc,function(_0x4a4315){const _0x210987=a567_0x51e2;if(_0x4a4315)return _0x44854e[_0x210987('0x6b')](_0x1a4f37);return _0x44854e['status'](_0x1a4f37)[_0x210987('0x36')]();};}function respondWithResult(_0x4693d0,_0x2df050){return _0x2df050=_0x2df050||0xc8,function(_0x5657e1){if(_0x5657e1)return _0x4693d0['status'](_0x2df050)['json'](_0x5657e1);};}function respondWithFilteredResult(_0x30ea68,_0x5cc91c){return function(_0x5b900d){const _0x76f7c0=a567_0x51e2;if(_0x5b900d){const _0x4bd0d5=_0x5b900d[_0x76f7c0('0x2f')],_0x20622b=_0x5cc91c[_0x76f7c0('0x21')];let _0x78e02a=_0x5cc91c[_0x76f7c0('0x21')]+_0x5cc91c['limit'],_0x2efe62;return _0x78e02a>=_0x4bd0d5?(_0x78e02a=_0x4bd0d5,_0x2efe62=0xc8):_0x2efe62=0xce,_0x30ea68[_0x76f7c0('0x59')](_0x2efe62),_0x30ea68['set'](_0x76f7c0('0x3a'),_0x20622b+'-'+_0x78e02a+'/'+_0x4bd0d5)[_0x76f7c0('0x73')](_0x5b900d);}return null;};}function saveUpdates(_0x2d7be3){return function(_0x44781d){const _0x4d51f8=a567_0x51e2;if(_0x44781d)return _0x44781d['update'](_0x2d7be3)[_0x4d51f8('0x24')](function(_0x267b49){return _0x267b49;});return null;};}function removeEntity(_0x2880f2){return function(_0x20220c){const _0x2aa74d=a567_0x51e2;if(_0x20220c)return _0x20220c[_0x2aa74d('0x53')]()['then'](function(){const _0x59c6d4=_0x2aa74d,_0x10e03c=_0x20220c[_0x59c6d4('0x4a')]({'plain':!![]}),_0x928d03=_0x59c6d4('0x2');return db[_0x59c6d4('0x38')]['destroy']({'where':{'type':_0x928d03,'resourceId':_0x10e03c['id']}})['then'](function(){return _0x20220c;});})[_0x2aa74d('0x24')](function(){const _0x59debe=_0x2aa74d;_0x2880f2[_0x59debe('0x59')](0xcc)[_0x59debe('0x36')]();});};}function handleEntityNotFound(_0x143967){return function(_0x994295){const _0x44fcce=a567_0x51e2;return!_0x994295&&_0x143967[_0x44fcce('0x6b')](0x194),_0x994295;};}function handleError(_0x42094d,_0x32cb4c){return _0x32cb4c=_0x32cb4c||0x1f4,function(_0x3c4243){const _0x21e65c=a567_0x51e2;logger[_0x21e65c('0x5')](_0x3c4243[_0x21e65c('0x28')]),_0x3c4243[_0x21e65c('0x40')]&&delete _0x3c4243[_0x21e65c('0x40')],_0x42094d[_0x21e65c('0x59')](_0x32cb4c)['send'](_0x3c4243);};}exports[_0x3ba6f8('0x75')]=function(_0x3df956,_0x30090f){const _0x35d0eb=_0x3ba6f8;let _0x5f1655={};const _0x5a325d={},_0x3465c2={'count':0x0,'rows':[]},_0x4ac1f5=_[_0x35d0eb('0x47')](db[_0x35d0eb('0x3d')][_0x35d0eb('0x56')],function(_0xd3aef9){const _0x331a31=_0x35d0eb;return{'name':_0xd3aef9[_0x331a31('0x64')],'type':_0xd3aef9[_0x331a31('0x74')][_0x331a31('0x0')]};});_0x5a325d[_0x35d0eb('0x3f')]=_[_0x35d0eb('0x47')](_0x4ac1f5,_0x35d0eb('0x40')),_0x5a325d[_0x35d0eb('0x29')]=_[_0x35d0eb('0x4b')](_0x3df956[_0x35d0eb('0x29')]),_0x5a325d[_0x35d0eb('0x10')]=_[_0x35d0eb('0x3')](_0x5a325d[_0x35d0eb('0x3f')],_0x5a325d['query']),_0x5f1655['attributes']=_[_0x35d0eb('0x3')](_0x5a325d[_0x35d0eb('0x3f')],qs[_0x35d0eb('0x41')](_0x3df956[_0x35d0eb('0x29')][_0x35d0eb('0x41')])),_0x5f1655[_0x35d0eb('0x1a')]=_0x5f1655['attributes'][_0x35d0eb('0x23')]?_0x5f1655['attributes']:_0x5a325d['model'];typeof _0x3df956[_0x35d0eb('0x29')][_0x35d0eb('0x58')]===_0x35d0eb('0x37')&&(_0x5f1655[_0x35d0eb('0x33')]=qs[_0x35d0eb('0x33')](_0x3df956[_0x35d0eb('0x29')][_0x35d0eb('0x33')]),_0x5f1655[_0x35d0eb('0x21')]=qs[_0x35d0eb('0x21')](_0x3df956[_0x35d0eb('0x29')][_0x35d0eb('0x21')]));_0x5f1655[_0x35d0eb('0x69')]=qs[_0x35d0eb('0x1c')](_0x3df956[_0x35d0eb('0x29')][_0x35d0eb('0x1c')]),_0x5f1655[_0x35d0eb('0x7')]=qs[_0x35d0eb('0x10')](_[_0x35d0eb('0x65')](_0x3df956[_0x35d0eb('0x29')],_0x5a325d[_0x35d0eb('0x10')]),_0x4ac1f5);_0x3df956['query'][_0x35d0eb('0x18')]&&(_0x5f1655[_0x35d0eb('0x7')]=_['merge'](_0x5f1655[_0x35d0eb('0x7')],{[Op['or']]:_[_0x35d0eb('0x47')](_0x4ac1f5,function(_0x5363f0){const _0x337e18=_0x35d0eb;if(_0x5363f0[_0x337e18('0x74')]!==_0x337e18('0xc')){const _0x4f3ef3={};return _0x4f3ef3[_0x5363f0[_0x337e18('0x40')]]={[Op[_0x337e18('0x9')]]:'%'+_0x3df956[_0x337e18('0x29')][_0x337e18('0x18')]+'%'},_0x4f3ef3;}})}));_0x5f1655=_['merge']({},_0x5f1655,_0x3df956['options']);const _0x3b3eb0={'where':_0x5f1655[_0x35d0eb('0x7')]};return db[_0x35d0eb('0x3d')][_0x35d0eb('0x2f')](_0x3b3eb0)['then'](function(_0xa93b16){const _0x52cfc5=_0x35d0eb;return _0x3465c2[_0x52cfc5('0x2f')]=_0xa93b16,_0x3df956['query']['includeAll']&&(_0x5f1655[_0x52cfc5('0x5b')]=[{'all':!![]}]),db['SmsQueue'][_0x52cfc5('0x6')](_0x5f1655);})['then'](function(_0x3ae249){const _0x4de57b=_0x35d0eb;return _0x3465c2[_0x4de57b('0x5c')]=_0x3ae249,_0x3465c2;})[_0x35d0eb('0x24')](respondWithFilteredResult(_0x30090f,_0x5f1655))[_0x35d0eb('0x66')](handleError(_0x30090f,null));},exports[_0x3ba6f8('0x35')]=function(_0x4a5cc1,_0x3c381a){const _0x37e89c=_0x3ba6f8;let _0x12b716={'raw':!![],'where':{'id':_0x4a5cc1[_0x37e89c('0x4d')]['id']}};const _0x4cf0ac={};return _0x4cf0ac[_0x37e89c('0x3f')]=_['keys'](db[_0x37e89c('0x3d')][_0x37e89c('0x56')]),_0x4cf0ac[_0x37e89c('0x29')]=_[_0x37e89c('0x4b')](_0x4a5cc1[_0x37e89c('0x29')]),_0x4cf0ac[_0x37e89c('0x10')]=_[_0x37e89c('0x3')](_0x4cf0ac[_0x37e89c('0x3f')],_0x4cf0ac['query']),_0x12b716[_0x37e89c('0x1a')]=_[_0x37e89c('0x3')](_0x4cf0ac[_0x37e89c('0x3f')],qs['fields'](_0x4a5cc1[_0x37e89c('0x29')]['fields'])),_0x12b716['attributes']=_0x12b716[_0x37e89c('0x1a')][_0x37e89c('0x23')]?_0x12b716['attributes']:_0x4cf0ac[_0x37e89c('0x3f')],_0x4a5cc1['query'][_0x37e89c('0x8')]&&(_0x12b716[_0x37e89c('0x5b')]=[{'all':!![]}]),_0x12b716=_[_0x37e89c('0x19')]({},_0x12b716,_0x4a5cc1['options']),db[_0x37e89c('0x3d')][_0x37e89c('0x71')](_0x12b716)[_0x37e89c('0x24')](handleEntityNotFound(_0x3c381a,null))[_0x37e89c('0x24')](respondWithResult(_0x3c381a,null))['catch'](handleError(_0x3c381a,null));},exports[_0x3ba6f8('0x1d')]=function(_0x373fc5,_0x3be822){const _0x4b4ddc=_0x3ba6f8;return db[_0x4b4ddc('0x3d')]['create'](_0x373fc5['body'],{})['then'](function(_0x3e54b5){const _0x5a230c=_0x4b4ddc,_0x2bd5ba=_0x373fc5[_0x5a230c('0x43')][_0x5a230c('0x4a')]({'plain':!![]});if(!_0x2bd5ba)throw new Error(_0x5a230c('0x57'));if(_0x2bd5ba[_0x5a230c('0x22')]==='user'){const _0x32cbb9=_0x3e54b5['get']({'plain':!![]}),_0x1b4d53='SmsQueues';return db[_0x5a230c('0x2a')][_0x5a230c('0x71')]({'where':{'name':_0x1b4d53,'userProfileId':_0x2bd5ba['userProfileId']},'raw':!![]})[_0x5a230c('0x24')](function(_0x568811){const _0x2dc234=_0x5a230c;return _0x568811&&_0x568811[_0x2dc234('0x2e')]===0x0?db['UserProfileResource']['create']({'name':_0x32cbb9[_0x2dc234('0x40')],'resourceId':_0x32cbb9['id'],'type':_0x568811[_0x2dc234('0x40')],'sectionId':_0x568811['id']},{})[_0x2dc234('0x24')](function(){return _0x3e54b5;}):_0x3e54b5;})['catch'](function(_0x5400cb){const _0x997636=_0x5a230c;logger['error'](_0x997636('0x1f'),_0x5400cb);throw _0x5400cb;});}return _0x3e54b5;})[_0x4b4ddc('0x24')](respondWithResult(_0x3be822,0xc9))[_0x4b4ddc('0x66')](handleError(_0x3be822,null));},exports[_0x3ba6f8('0x5e')]=function(_0x54c21f,_0x15fcd6){const _0x18bb1b=_0x3ba6f8;return _0x54c21f[_0x18bb1b('0x1b')]['id']&&delete _0x54c21f['body']['id'],db[_0x18bb1b('0x3d')][_0x18bb1b('0x71')]({'where':{'id':_0x54c21f[_0x18bb1b('0x4d')]['id']}})['then'](handleEntityNotFound(_0x15fcd6,null))[_0x18bb1b('0x24')](saveUpdates(_0x54c21f[_0x18bb1b('0x1b')],null))[_0x18bb1b('0x24')](respondWithResult(_0x15fcd6,null))['catch'](handleError(_0x15fcd6,null));},exports[_0x3ba6f8('0x53')]=function(_0x9a6b42,_0x3ed6ed){const _0x5a32b6=_0x3ba6f8;return db[_0x5a32b6('0x3d')][_0x5a32b6('0x71')]({'where':{'id':_0x9a6b42[_0x5a32b6('0x4d')]['id']}})[_0x5a32b6('0x24')](handleEntityNotFound(_0x3ed6ed,null))[_0x5a32b6('0x24')](removeEntity(_0x3ed6ed,null))[_0x5a32b6('0x66')](handleError(_0x3ed6ed,null));},exports[_0x3ba6f8('0x51')]=function(_0x25fa1f,_0x37564e){const _0x2ff2ed=_0x3ba6f8;return db[_0x2ff2ed('0x3d')][_0x2ff2ed('0x51')]()['then'](respondWithResult(_0x37564e,null))[_0x2ff2ed('0x66')](handleError(_0x37564e,null));},exports[_0x3ba6f8('0x48')]=function(_0x5a9335,_0x2d331b){const _0x611103=_0x3ba6f8;let _0x288d1b={'raw':!![],'where':{}};const _0x5d9753={};let _0x12c9e0;return db[_0x611103('0x3d')]['findOne']({'where':{'id':_0x5a9335[_0x611103('0x4d')]['id']}})[_0x611103('0x24')](handleEntityNotFound(_0x2d331b,null))[_0x611103('0x24')](function(_0x2eb076){const _0x304b7f=_0x611103;if(_0x2eb076)return _0x12c9e0=_0x2eb076[_0x304b7f('0x4a')]({'plain':!![]}),_0x5d9753['model']=_[_0x304b7f('0x4b')](db['UserSmsQueue'][_0x304b7f('0x56')]),_0x5d9753[_0x304b7f('0x29')]=_['keys'](_0x5a9335[_0x304b7f('0x29')]),_0x5d9753[_0x304b7f('0x10')]=_[_0x304b7f('0x3')](_0x5d9753[_0x304b7f('0x3f')],_0x5d9753['query']),_0x288d1b['attributes']=_['intersection'](_0x5d9753[_0x304b7f('0x3f')],qs[_0x304b7f('0x41')](_0x5a9335[_0x304b7f('0x29')][_0x304b7f('0x41')])),_0x288d1b['attributes']=_0x288d1b[_0x304b7f('0x1a')][_0x304b7f('0x23')]?_0x288d1b[_0x304b7f('0x1a')]:_0x5d9753[_0x304b7f('0x3f')],typeof _0x5a9335[_0x304b7f('0x29')][_0x304b7f('0x58')]===_0x304b7f('0x37')&&(_0x288d1b['limit']=qs[_0x304b7f('0x33')](_0x5a9335[_0x304b7f('0x29')][_0x304b7f('0x33')]),_0x288d1b[_0x304b7f('0x21')]=qs['offset'](_0x5a9335[_0x304b7f('0x29')][_0x304b7f('0x21')])),_0x288d1b[_0x304b7f('0x69')]=qs[_0x304b7f('0x1c')](_0x5a9335[_0x304b7f('0x29')]['sort']),_0x288d1b[_0x304b7f('0x7')]=qs[_0x304b7f('0x10')](_[_0x304b7f('0x65')](_0x5a9335['query'],_0x5d9753[_0x304b7f('0x10')])),_0x288d1b[_0x304b7f('0x7')][_0x304b7f('0x63')]=_0x2eb076['id'],_0x5a9335[_0x304b7f('0x29')]['filter']&&(_0x288d1b['where']=_[_0x304b7f('0x19')](_0x288d1b['where'],{[Op['or']]:_[_0x304b7f('0x47')](_0x288d1b['attributes'],function(_0x1ce857){const _0x3f9f74=_0x304b7f,_0x1b0f67={};return _0x1b0f67[_0x1ce857]={[Op[_0x3f9f74('0x9')]]:'%'+_0x5a9335[_0x3f9f74('0x29')]['filter']+'%'},_0x1b0f67;})})),_0x288d1b=_[_0x304b7f('0x19')]({},_0x288d1b,_0x5a9335[_0x304b7f('0x13')]),db[_0x304b7f('0x52')][_0x304b7f('0x6')](_0x288d1b);})['then'](function(_0x10392e){const _0x4835f1=_0x611103;if(_0x10392e)return db[_0x4835f1('0x30')]['findAndCountAll']({'where':{'id':_['map'](_0x10392e,_0x4835f1('0x72')),'role':_0x4835f1('0x34')},'attributes':['id',_0x4835f1('0x40'),_0x4835f1('0x6f'),_0x4835f1('0x4'),'createdAt']});})[_0x611103('0x24')](function(_0x19abc1){const _0x56d931=_0x611103;return _0x19abc1?{'count':_0x19abc1[_0x56d931('0x2f')],'rows':_['map'](_0x19abc1['rows'],function(_0x23dc75){const _0x18fc0e=_0x56d931;return{'membername':_0x23dc75[_0x18fc0e('0x40')],'UserId':_0x23dc75['id'],'queue_name':_0x12c9e0['name'],'SmsQueueId':_0x12c9e0['id'],'interface':util[_0x18fc0e('0x2d')]('%s/%s',_0x18fc0e('0x1e'),_0x23dc75[_0x18fc0e('0x40')]),'penalty':0x0,'paused':_0x23dc75[_0x18fc0e('0x6f')],'createdAt':_0x23dc75['createdAt'],'updatedAt':_0x23dc75['updatedAt']};})}:{'count':0x0,'rows':[]};})[_0x611103('0x24')](respondWithFilteredResult(_0x2d331b,_0x288d1b))[_0x611103('0x66')](handleError(_0x2d331b,null));},exports[_0x3ba6f8('0x16')]=function(_0x2a5390,_0xd8ac20){const _0x39317a=_0x3ba6f8;let _0x2a6604={};const _0x29c3a2={};let _0x4c1d1c,_0x2a82bc;return db['SmsQueue'][_0x39317a('0x71')]({'where':{'id':_0x2a5390['params']['id']}})[_0x39317a('0x24')](handleEntityNotFound(_0xd8ac20,null))['then'](function(_0x8f06f8){const _0x1252be=_0x39317a;if(_0x8f06f8)return _0x4c1d1c=_0x8f06f8,_0x29c3a2[_0x1252be('0x3f')]=_[_0x1252be('0x4b')](db[_0x1252be('0x27')][_0x1252be('0x56')]),_0x29c3a2['query']=_[_0x1252be('0x4b')](_0x2a5390[_0x1252be('0x29')]),_0x29c3a2[_0x1252be('0x10')]=_[_0x1252be('0x3')](_0x29c3a2['model'],_0x29c3a2[_0x1252be('0x29')]),_0x2a6604[_0x1252be('0x1a')]=_[_0x1252be('0x3')](_0x29c3a2[_0x1252be('0x3f')],qs[_0x1252be('0x41')](_0x2a5390['query']['fields'])),_0x2a6604[_0x1252be('0x1a')]=_0x2a6604[_0x1252be('0x1a')][_0x1252be('0x23')]?_0x2a6604[_0x1252be('0x1a')]:_0x29c3a2[_0x1252be('0x3f')],_0x2a6604[_0x1252be('0x69')]=qs[_0x1252be('0x1c')](_0x2a5390[_0x1252be('0x29')][_0x1252be('0x1c')]),_0x2a6604['where']=qs[_0x1252be('0x10')](_['pick'](_0x2a5390[_0x1252be('0x29')],_0x29c3a2['filters'])),_0x2a5390[_0x1252be('0x29')][_0x1252be('0x18')]&&(_0x2a6604[_0x1252be('0x7')]=_[_0x1252be('0x19')](_0x2a6604[_0x1252be('0x7')],{[Op['or']]:_[_0x1252be('0x47')](_0x2a6604['attributes'],function(_0x2e216b){const _0x3c7ee5=_0x1252be,_0x16e2e7={};return _0x16e2e7[_0x2e216b]={[Op[_0x3c7ee5('0x9')]]:'%'+_0x2a5390[_0x3c7ee5('0x29')][_0x3c7ee5('0x18')]+'%'},_0x16e2e7;})})),_0x2a6604=_['merge']({},_0x2a6604,_0x2a5390[_0x1252be('0x13')]),_0x4c1d1c['getTeams'](_0x2a6604);})[_0x39317a('0x24')](function(_0x5929fd){const _0x388d53=_0x39317a;if(_0x5929fd)return _0x2a82bc=_0x5929fd[_0x388d53('0x23')],typeof _0x2a5390[_0x388d53('0x29')]['nolimit']==='undefined'&&(_0x2a6604[_0x388d53('0x33')]=qs['limit'](_0x2a5390[_0x388d53('0x29')]['limit']),_0x2a6604[_0x388d53('0x21')]=qs[_0x388d53('0x21')](_0x2a5390[_0x388d53('0x29')][_0x388d53('0x21')])),_0x4c1d1c[_0x388d53('0x16')](_0x2a6604);})['then'](function(_0x1944fa){if(_0x1944fa)return _0x1944fa?{'count':_0x2a82bc,'rows':_0x1944fa}:null;})[_0x39317a('0x24')](respondWithResult(_0xd8ac20,null))[_0x39317a('0x66')](handleError(_0xd8ac20,null));},exports[_0x3ba6f8('0x25')]=function(_0x44875e,_0x2ad3ba){const _0x408971=_0x3ba6f8,_0x20b91f=_0x44875e['body'][_0x408971('0xa')];return db['Team'][_0x408971('0x6')]({'where':{'id':_0x20b91f},'attributes':['id'],'include':[{'model':db[_0x408971('0x30')],'as':_0x408971('0x14'),'attributes':['id','name',_0x408971('0x2c'),_0x408971('0x32'),_0x408971('0x5d')],'raw':!![]}]})[_0x408971('0x24')](function(_0x2c3dc3){const _0x119fa9=_0x408971;if(_0x2c3dc3){const _0x2785e6=_[_0x119fa9('0x5a')](_0x2c3dc3,function(_0xc89c1){const _0x261b72=_0x119fa9,_0x43bdf0=_0xc89c1[_0x261b72('0x4a')]({'plain':!![]});return _0x43bdf0[_0x261b72('0x14')];});return db[_0x119fa9('0x3d')][_0x119fa9('0x71')]({'where':{'id':_0x44875e[_0x119fa9('0x4d')]['id']}})[_0x119fa9('0x24')](function(_0x6819f2){const _0x4fb2e3=_0x119fa9;return db[_0x4fb2e3('0x3c')]['transaction'](function(_0x4a5dab){const _0x56cdee=_0x4fb2e3;return _0x6819f2[_0x56cdee('0x25')](_0x20b91f,{'transaction':_0x4a5dab})[_0x56cdee('0x24')](function(){const _0x18f285=_0x56cdee;return Promise[_0x18f285('0x6a')](_0x2785e6,function(_0x5201bb){const _0x3d5b50=_0x18f285;return db[_0x3d5b50('0x52')]['findOrCreate']({'where':{'UserId':_0x5201bb['id'],'SmsQueueId':_0x44875e[_0x3d5b50('0x4d')]['id']},'transaction':_0x4a5dab});});})[_0x56cdee('0x24')](function(){const _0x53f79c=_0x56cdee;_0x2785e6[_0x53f79c('0xe')](function(_0x4923ea){const _0x2f95f9=_0x53f79c;socket[_0x2f95f9('0x3b')]('userSmsQueue:save',{'UserId':_0x4923ea['id'],'SmsQueueId':_0x6819f2['id']});});});});});}})[_0x408971('0x24')](respondWithStatusCode(_0x2ad3ba,null))[_0x408971('0x66')](handleError(_0x2ad3ba,null));},exports[_0x3ba6f8('0x54')]=function(_0x37349c,_0x31b1df){const _0x25c8af=_0x3ba6f8;return db['Team'][_0x25c8af('0x6')]({'where':{'id':_0x37349c['query']['ids']},'attributes':['id'],'include':[{'model':db[_0x25c8af('0x30')],'as':_0x25c8af('0x14'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x31b1df,null))['then'](function(_0x3bd260){const _0x22cbf5=_0x25c8af,_0x299852=_[_0x22cbf5('0x47')](_0x3bd260,'id');let _0x17162b=[];const _0x166da8=[],_0x5c1990=squel[_0x22cbf5('0x42')]();_0x5c1990[_0x22cbf5('0x70')](_0x22cbf5('0x68'))['from'](_0x22cbf5('0x31'),'tq')['join']('user_has_teams','ut',_0x22cbf5('0xf'))[_0x22cbf5('0x7')]('SmsQueueId\x20=\x20?',_0x37349c[_0x22cbf5('0x4d')]['id']);for(let _0x41c6f6=0x0;_0x41c6f6<_0x3bd260['length'];_0x41c6f6+=0x1){const _0x106bc7=_0x3bd260[_0x41c6f6];for(let _0x596bba=0x0;_0x596bba<_0x106bc7[_0x22cbf5('0x14')][_0x22cbf5('0x23')];_0x596bba+=0x1){const _0x5b0e4f=_0x106bc7[_0x22cbf5('0x14')][_0x596bba],_0x194bec=_0x5c1990[_0x22cbf5('0x4e')]();_0x194bec[_0x22cbf5('0x7')](_0x22cbf5('0x39'),_0x5b0e4f['id']),_0x166da8[_0x22cbf5('0x45')](db[_0x22cbf5('0x3c')]['query'](_0x194bec[_0x22cbf5('0x6e')](),{'type':db[_0x22cbf5('0x3c')][_0x22cbf5('0x67')]['SELECT']})[_0x22cbf5('0x24')](function(_0x1cec82){const _0xee40df=_0x22cbf5;if(_0x1cec82[_0xee40df('0x23')]===0x1)return _0x5b0e4f['id'];else{const _0x222939=_[_0xee40df('0x1')](_['map'](_0x1cec82,_0xee40df('0x44')),function(_0x3c0d42){const _0x1d364b=_0xee40df;return _[_0x1d364b('0x5f')](_0x299852,_0x3c0d42);});if(_0x222939)return _0x5b0e4f['id'];}}));}}return Promise[_0x22cbf5('0x50')](_0x166da8)[_0x22cbf5('0x24')](function(_0x33ce97){const _0x27be28=_0x22cbf5;return _0x17162b=_(_0x17162b)[_0x27be28('0x6d')](_0x33ce97)[_0x27be28('0x11')]()['value'](),db[_0x27be28('0x3d')]['findOne']({'where':{'id':_0x37349c['params']['id']}})[_0x27be28('0x24')](function(_0x130b72){const _0x3f9f6b=_0x27be28;return db[_0x3f9f6b('0x3c')][_0x3f9f6b('0x15')](function(_0x52f9f6){const _0xb6c484=_0x3f9f6b;return _0x130b72[_0xb6c484('0x54')](_0x37349c['query']['ids'],{'transaction':_0x52f9f6})[_0xb6c484('0x24')](function(){const _0x180213=_0xb6c484;if(!_[_0x180213('0xb')](_0x17162b))return _0x130b72['removeAgents'](_0x17162b,{'transaction':_0x52f9f6});})[_0xb6c484('0x24')](function(){const _0x3db503=_0xb6c484;_0x17162b[_0x3db503('0xe')](function(_0x1d90a9){const _0x184ff2=_0x3db503;socket[_0x184ff2('0x3b')](_0x184ff2('0x46'),{'UserId':_0x1d90a9,'SmsQueueId':_0x130b72['id']});});});});});});})[_0x25c8af('0x24')](respondWithStatusCode(_0x31b1df,null))[_0x25c8af('0x66')](handleError(_0x31b1df,null));},exports['addAgents']=function(_0x506935,_0x2e644a){const _0x2a9793=_0x3ba6f8;return db['SmsQueue'][_0x2a9793('0x71')]({'where':{'id':_0x506935['params']['id']}})[_0x2a9793('0x24')](function(_0x29e685){const _0x2fbffe=_0x2a9793;if(_0x29e685)return _0x29e685[_0x2fbffe('0xd')](_0x506935[_0x2fbffe('0x1b')][_0x2fbffe('0xa')],{'through':_[_0x2fbffe('0x12')](_0x506935['body'],[_0x2fbffe('0xa'),'id'])})['then'](function(_0x8ddf5b){const _0x2e590c=_0x2fbffe;for(let _0x46d554=0x0;_0x46d554<_0x506935['body'][_0x2e590c('0xa')][_0x2e590c('0x23')];_0x46d554+=0x1){socket[_0x2e590c('0x3b')](_0x2e590c('0x6c'),{'UserId':_0x506935[_0x2e590c('0x1b')][_0x2e590c('0xa')][_0x46d554],'SmsQueueId':_0x506935['params']['id']});}return _0x8ddf5b;});})[_0x2a9793('0x24')](respondWithResult(_0x2e644a,null))[_0x2a9793('0x66')](handleError(_0x2e644a,null));},exports[_0x3ba6f8('0x3e')]=function(_0x55fdd7,_0x2f21b3){const _0x55ccab=_0x3ba6f8;return db[_0x55ccab('0x3d')]['findOne']({'where':{'id':_0x55fdd7['params']['id']}})[_0x55ccab('0x24')](handleEntityNotFound(_0x2f21b3,null))[_0x55ccab('0x24')](function(_0x346cb2){const _0x51caee=_0x55ccab;if(_0x346cb2)return _0x346cb2['removeAgents'](_0x55fdd7['query'][_0x51caee('0xa')])['then'](function(){const _0x3df65d=_0x51caee;if(_[_0x3df65d('0x4f')](_0x55fdd7[_0x3df65d('0x29')]['ids']))for(let _0x22b857=0x0;_0x22b857<_0x55fdd7['query'][_0x3df65d('0xa')]['length'];_0x22b857+=0x1){socket['emit'](_0x3df65d('0x46'),{'UserId':Number(_0x55fdd7['query'][_0x3df65d('0xa')][_0x22b857]),'SmsQueueId':Number(_0x55fdd7[_0x3df65d('0x4d')]['id'])});}else socket['emit'](_0x3df65d('0x46'),{'UserId':Number(_0x55fdd7['query'][_0x3df65d('0xa')]),'SmsQueueId':Number(_0x55fdd7[_0x3df65d('0x4d')]['id'])});});})[_0x55ccab('0x24')](respondWithStatusCode(_0x2f21b3,null))['catch'](handleError(_0x2f21b3,null));},exports[_0x3ba6f8('0x2b')]=function(_0x604ba7,_0x578f04){const _0x242920=_0x3ba6f8;let _0x7c4937={};const _0x29e99a={};let _0x33997d,_0x42d62b;return db[_0x242920('0x3d')][_0x242920('0x71')]({'where':{'id':_0x604ba7[_0x242920('0x4d')]['id']}})[_0x242920('0x24')](handleEntityNotFound(_0x578f04,null))[_0x242920('0x24')](function(_0x3dea40){const _0x556dec=_0x242920;if(_0x3dea40)return _0x33997d=_0x3dea40,_0x29e99a[_0x556dec('0x3f')]=_[_0x556dec('0x4b')](db[_0x556dec('0x30')][_0x556dec('0x56')]),_0x29e99a[_0x556dec('0x29')]=_[_0x556dec('0x4b')](_0x604ba7[_0x556dec('0x29')]),_0x29e99a[_0x556dec('0x10')]=_[_0x556dec('0x3')](_0x29e99a[_0x556dec('0x3f')],_0x29e99a[_0x556dec('0x29')]),_0x7c4937[_0x556dec('0x1a')]=_[_0x556dec('0x3')](_0x29e99a[_0x556dec('0x3f')],qs['fields'](_0x604ba7['query'][_0x556dec('0x41')])),_0x7c4937[_0x556dec('0x1a')]=_0x7c4937[_0x556dec('0x1a')][_0x556dec('0x23')]?_0x7c4937[_0x556dec('0x1a')]:_0x29e99a[_0x556dec('0x3f')],_0x7c4937[_0x556dec('0x69')]=qs['sort'](_0x604ba7[_0x556dec('0x29')]['sort']),_0x7c4937[_0x556dec('0x7')]=qs['filters'](_[_0x556dec('0x65')](_0x604ba7[_0x556dec('0x29')],_0x29e99a[_0x556dec('0x10')])),_0x604ba7[_0x556dec('0x29')]['filter']&&(_0x7c4937[_0x556dec('0x7')]=_[_0x556dec('0x19')](_0x7c4937[_0x556dec('0x7')],{[Op['or']]:_[_0x556dec('0x47')](_0x7c4937[_0x556dec('0x1a')],function(_0x4e1344){const _0x1f4b0a=_0x556dec,_0x42a704={};return _0x42a704[_0x4e1344]={[Op[_0x1f4b0a('0x9')]]:'%'+_0x604ba7[_0x1f4b0a('0x29')][_0x1f4b0a('0x18')]+'%'},_0x42a704;})})),_0x7c4937=_['merge']({},_0x7c4937,_0x604ba7['options']),_0x33997d[_0x556dec('0x2b')](_0x7c4937);})['then'](function(_0x588dfa){const _0x4a0976=_0x242920;if(_0x588dfa)return _0x42d62b=_0x588dfa['length'],typeof _0x604ba7[_0x4a0976('0x29')][_0x4a0976('0x58')]===_0x4a0976('0x37')&&(_0x7c4937[_0x4a0976('0x33')]=qs[_0x4a0976('0x33')](_0x604ba7[_0x4a0976('0x29')][_0x4a0976('0x33')]),_0x7c4937['offset']=qs[_0x4a0976('0x21')](_0x604ba7[_0x4a0976('0x29')][_0x4a0976('0x21')])),_0x33997d[_0x4a0976('0x2b')](_0x7c4937);})[_0x242920('0x24')](function(_0x1b9a33){if(_0x1b9a33)return _0x1b9a33?{'count':_0x42d62b,'rows':_0x1b9a33}:null;})[_0x242920('0x24')](respondWithResult(_0x578f04,null))[_0x242920('0x66')](handleError(_0x578f04,null));}; \ No newline at end of file +const a567_0x4472=['UserProfileResource','keys','value','fields','addAgents','select','body','field','getMembers','ids','TeamId','map','tq.TeamId','type','where','limit','length','format','destroy','%s/%s','create','emit','name','Unable\x20to\x20retrieve\x20the\x20current\x20user','agent','rows','QueryTypes','getTeams','SELECT','undefined','status','../../rediscache','index','all','merge','SmsQueue','get','ut.TeamId\x20=\x20tq.TeamId','fieldName','Content-Range','findOne','join','sendStatus','userSmsQueue:remove','addTeams','options','flatMap','catch','json','query','sort','nolimit','toString','register','error','union','order','removeTeams','count','like','omit','api','update','userSmsQueue:save','updatedAt','removeAgents','Team','getAgents','user','include','model','interface','offset','findAndCountAll','VIRTUAL','SmsQueues','smsPause','autoAssociation','pick','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','stack','user_has_teams','SmsQueueId','each','online','squel','attributes','includeAll','transaction','filters','User','./smsQueue.socket','sequelize','UserSmsQueue','includes','params','Agents','key','userProfileId','isArray','send','intersection','describe','findAll','rawAttributes','UserId','voicePause','then','../../config/logger','filter'];(function(_0x2f19de,_0x4472e3){const _0x58c65b=function(_0x501711){while(--_0x501711){_0x2f19de['push'](_0x2f19de['shift']());}};_0x58c65b(++_0x4472e3);}(a567_0x4472,0x76));const a567_0x58c6=function(_0x2f19de,_0x4472e3){_0x2f19de=_0x2f19de-0x0;let _0x58c65b=a567_0x4472[_0x2f19de];return _0x58c65b;};const _0x41d7d7=a567_0x58c6;'use strict';const util=require('util'),_=require('lodash'),squel=require(_0x41d7d7('0x4d')),qs=require('../../components/parsers/qs'),logger=require(_0x41d7d7('0x64'))(_0x41d7d7('0x35')),{getSocket}=require(_0x41d7d7('0x17')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x41d7d7('0x54'));require(_0x41d7d7('0x53'))[_0x41d7d7('0x2d')](socket);function respondWithStatusCode(_0x501711,_0x148bc1){return _0x148bc1=_0x148bc1||0xcc,function(_0x1a2d85){const _0x34bc9a=a567_0x58c6;if(_0x1a2d85)return _0x501711[_0x34bc9a('0x22')](_0x148bc1);return _0x501711[_0x34bc9a('0x16')](_0x148bc1)['end']();};}function respondWithResult(_0x4b73f1,_0x21cc19){return _0x21cc19=_0x21cc19||0xc8,function(_0x26f0f6){const _0x52e8cf=a567_0x58c6;if(_0x26f0f6)return _0x4b73f1[_0x52e8cf('0x16')](_0x21cc19)[_0x52e8cf('0x28')](_0x26f0f6);};}function respondWithFilteredResult(_0x4ef80a,_0x364ded){return function(_0x520313){const _0x4a21de=a567_0x58c6;if(_0x520313){const _0x434364=_0x520313[_0x4a21de('0x32')],_0x18ca88=_0x364ded['offset'];let _0x166030=_0x364ded[_0x4a21de('0x40')]+_0x364ded[_0x4a21de('0x7')],_0x2244c8;return _0x166030>=_0x434364?(_0x166030=_0x434364,_0x2244c8=0xc8):_0x2244c8=0xce,_0x4ef80a[_0x4a21de('0x16')](_0x2244c8),_0x4ef80a['set'](_0x4a21de('0x1f'),_0x18ca88+'-'+_0x166030+'/'+_0x434364)[_0x4a21de('0x28')](_0x520313);}return null;};}function saveUpdates(_0x561b6f){return function(_0xf2ff63){const _0x5af690=a567_0x58c6;if(_0xf2ff63)return _0xf2ff63[_0x5af690('0x36')](_0x561b6f)[_0x5af690('0x63')](function(_0x529ded){return _0x529ded;});return null;};}function removeEntity(_0x1b05e8){return function(_0x164237){const _0x49f51b=a567_0x58c6;if(_0x164237)return _0x164237[_0x49f51b('0xa')]()[_0x49f51b('0x63')](function(){const _0x1919e4=_0x49f51b,_0x236405=_0x164237[_0x1919e4('0x1c')]({'plain':!![]}),_0x29826b=_0x1919e4('0x43');return db[_0x1919e4('0x66')]['destroy']({'where':{'type':_0x29826b,'resourceId':_0x236405['id']}})[_0x1919e4('0x63')](function(){return _0x164237;});})[_0x49f51b('0x63')](function(){const _0x12c3f5=_0x49f51b;_0x1b05e8[_0x12c3f5('0x16')](0xcc)['end']();});};}function handleEntityNotFound(_0x5e3144){return function(_0x3d1c75){const _0x907c74=a567_0x58c6;return!_0x3d1c75&&_0x5e3144[_0x907c74('0x22')](0x194),_0x3d1c75;};}function handleError(_0x413cd3,_0x4f4171){return _0x4f4171=_0x4f4171||0x1f4,function(_0x2e6242){const _0x236152=a567_0x58c6;logger[_0x236152('0x2e')](_0x2e6242[_0x236152('0x48')]),_0x2e6242[_0x236152('0xe')]&&delete _0x2e6242[_0x236152('0xe')],_0x413cd3[_0x236152('0x16')](_0x4f4171)[_0x236152('0x5c')](_0x2e6242);};}exports[_0x41d7d7('0x18')]=function(_0x4c74e2,_0x5f4905){const _0x31486b=_0x41d7d7;let _0x3cbf33={};const _0x15d5ac={},_0x25ec63={'count':0x0,'rows':[]},_0x6fa248=_['map'](db[_0x31486b('0x1b')]['rawAttributes'],function(_0xe2614d){const _0x56e4ac=_0x31486b;return{'name':_0xe2614d[_0x56e4ac('0x1e')],'type':_0xe2614d[_0x56e4ac('0x5')][_0x56e4ac('0x59')]};});_0x15d5ac[_0x31486b('0x3e')]=_[_0x31486b('0x3')](_0x6fa248,'name'),_0x15d5ac[_0x31486b('0x29')]=_[_0x31486b('0x67')](_0x4c74e2[_0x31486b('0x29')]),_0x15d5ac['filters']=_[_0x31486b('0x5d')](_0x15d5ac[_0x31486b('0x3e')],_0x15d5ac[_0x31486b('0x29')]),_0x3cbf33[_0x31486b('0x4e')]=_[_0x31486b('0x5d')](_0x15d5ac['model'],qs[_0x31486b('0x69')](_0x4c74e2[_0x31486b('0x29')][_0x31486b('0x69')])),_0x3cbf33[_0x31486b('0x4e')]=_0x3cbf33['attributes'][_0x31486b('0x8')]?_0x3cbf33[_0x31486b('0x4e')]:_0x15d5ac[_0x31486b('0x3e')];typeof _0x4c74e2[_0x31486b('0x29')]['nolimit']===_0x31486b('0x15')&&(_0x3cbf33[_0x31486b('0x7')]=qs[_0x31486b('0x7')](_0x4c74e2[_0x31486b('0x29')]['limit']),_0x3cbf33[_0x31486b('0x40')]=qs[_0x31486b('0x40')](_0x4c74e2[_0x31486b('0x29')][_0x31486b('0x40')]));_0x3cbf33[_0x31486b('0x30')]=qs[_0x31486b('0x2a')](_0x4c74e2[_0x31486b('0x29')][_0x31486b('0x2a')]),_0x3cbf33[_0x31486b('0x6')]=qs['filters'](_[_0x31486b('0x46')](_0x4c74e2[_0x31486b('0x29')],_0x15d5ac[_0x31486b('0x51')]),_0x6fa248);_0x4c74e2['query'][_0x31486b('0x65')]&&(_0x3cbf33[_0x31486b('0x6')]=_[_0x31486b('0x1a')](_0x3cbf33[_0x31486b('0x6')],{[Op['or']]:_[_0x31486b('0x3')](_0x6fa248,function(_0x27fee4){const _0x33acbe=_0x31486b;if(_0x27fee4[_0x33acbe('0x5')]!==_0x33acbe('0x42')){const _0x5dd7ad={};return _0x5dd7ad[_0x27fee4[_0x33acbe('0xe')]]={[Op['like']]:'%'+_0x4c74e2[_0x33acbe('0x29')][_0x33acbe('0x65')]+'%'},_0x5dd7ad;}})}));_0x3cbf33=_[_0x31486b('0x1a')]({},_0x3cbf33,_0x4c74e2['options']);const _0xbeaa2c={'where':_0x3cbf33[_0x31486b('0x6')]};return db[_0x31486b('0x1b')][_0x31486b('0x32')](_0xbeaa2c)['then'](function(_0x5098a0){const _0x2f5b2b=_0x31486b;return _0x25ec63['count']=_0x5098a0,_0x4c74e2['query']['includeAll']&&(_0x3cbf33[_0x2f5b2b('0x3d')]=[{'all':!![]}]),db[_0x2f5b2b('0x1b')][_0x2f5b2b('0x5f')](_0x3cbf33);})[_0x31486b('0x63')](function(_0x5b0b9a){const _0x5ef610=_0x31486b;return _0x25ec63[_0x5ef610('0x11')]=_0x5b0b9a,_0x25ec63;})[_0x31486b('0x63')](respondWithFilteredResult(_0x5f4905,_0x3cbf33))[_0x31486b('0x27')](handleError(_0x5f4905,null));},exports['show']=function(_0x3057ff,_0x323ab2){const _0x4a5b0f=_0x41d7d7;let _0x1bef24={'raw':!![],'where':{'id':_0x3057ff[_0x4a5b0f('0x57')]['id']}};const _0x57dbfa={};return _0x57dbfa[_0x4a5b0f('0x3e')]=_[_0x4a5b0f('0x67')](db[_0x4a5b0f('0x1b')][_0x4a5b0f('0x60')]),_0x57dbfa[_0x4a5b0f('0x29')]=_[_0x4a5b0f('0x67')](_0x3057ff[_0x4a5b0f('0x29')]),_0x57dbfa['filters']=_[_0x4a5b0f('0x5d')](_0x57dbfa[_0x4a5b0f('0x3e')],_0x57dbfa[_0x4a5b0f('0x29')]),_0x1bef24[_0x4a5b0f('0x4e')]=_[_0x4a5b0f('0x5d')](_0x57dbfa[_0x4a5b0f('0x3e')],qs[_0x4a5b0f('0x69')](_0x3057ff[_0x4a5b0f('0x29')][_0x4a5b0f('0x69')])),_0x1bef24[_0x4a5b0f('0x4e')]=_0x1bef24[_0x4a5b0f('0x4e')]['length']?_0x1bef24[_0x4a5b0f('0x4e')]:_0x57dbfa[_0x4a5b0f('0x3e')],_0x3057ff['query'][_0x4a5b0f('0x4f')]&&(_0x1bef24[_0x4a5b0f('0x3d')]=[{'all':!![]}]),_0x1bef24=_[_0x4a5b0f('0x1a')]({},_0x1bef24,_0x3057ff['options']),db['SmsQueue'][_0x4a5b0f('0x20')](_0x1bef24)['then'](handleEntityNotFound(_0x323ab2,null))['then'](respondWithResult(_0x323ab2,null))[_0x4a5b0f('0x27')](handleError(_0x323ab2,null));},exports[_0x41d7d7('0xc')]=function(_0x5a4d9c,_0x52cc28){const _0x50d3f0=_0x41d7d7;return db['SmsQueue'][_0x50d3f0('0xc')](_0x5a4d9c[_0x50d3f0('0x6c')],{})[_0x50d3f0('0x63')](function(_0x4d2e88){const _0x17ce92=_0x50d3f0,_0xb49418=_0x5a4d9c[_0x17ce92('0x3c')][_0x17ce92('0x1c')]({'plain':!![]});if(!_0xb49418)throw new Error(_0x17ce92('0xf'));if(_0xb49418['role']===_0x17ce92('0x3c')){const _0xc41302=_0x4d2e88['get']({'plain':!![]}),_0x40687d=_0x17ce92('0x43');return db['UserProfileSection'][_0x17ce92('0x20')]({'where':{'name':_0x40687d,'userProfileId':_0xb49418[_0x17ce92('0x5a')]},'raw':!![]})[_0x17ce92('0x63')](function(_0x47b6c2){const _0x4a4263=_0x17ce92;return _0x47b6c2&&_0x47b6c2[_0x4a4263('0x45')]===0x0?db[_0x4a4263('0x66')][_0x4a4263('0xc')]({'name':_0xc41302['name'],'resourceId':_0xc41302['id'],'type':_0x47b6c2['name'],'sectionId':_0x47b6c2['id']},{})['then'](function(){return _0x4d2e88;}):_0x4d2e88;})['catch'](function(_0x163eab){const _0x567e68=_0x17ce92;logger[_0x567e68('0x2e')](_0x567e68('0x47'),_0x163eab);throw _0x163eab;});}return _0x4d2e88;})['then'](respondWithResult(_0x52cc28,0xc9))['catch'](handleError(_0x52cc28,null));},exports[_0x41d7d7('0x36')]=function(_0x4aef53,_0x464adf){const _0x4dd76a=_0x41d7d7;return _0x4aef53[_0x4dd76a('0x6c')]['id']&&delete _0x4aef53[_0x4dd76a('0x6c')]['id'],db[_0x4dd76a('0x1b')][_0x4dd76a('0x20')]({'where':{'id':_0x4aef53['params']['id']}})[_0x4dd76a('0x63')](handleEntityNotFound(_0x464adf,null))[_0x4dd76a('0x63')](saveUpdates(_0x4aef53[_0x4dd76a('0x6c')],null))[_0x4dd76a('0x63')](respondWithResult(_0x464adf,null))[_0x4dd76a('0x27')](handleError(_0x464adf,null));},exports[_0x41d7d7('0xa')]=function(_0xd8e44f,_0x4658ae){const _0x4ac92b=_0x41d7d7;return db[_0x4ac92b('0x1b')][_0x4ac92b('0x20')]({'where':{'id':_0xd8e44f[_0x4ac92b('0x57')]['id']}})['then'](handleEntityNotFound(_0x4658ae,null))[_0x4ac92b('0x63')](removeEntity(_0x4658ae,null))[_0x4ac92b('0x27')](handleError(_0x4658ae,null));},exports[_0x41d7d7('0x5e')]=function(_0x8083eb,_0x38335b){const _0x5a55aa=_0x41d7d7;return db['SmsQueue'][_0x5a55aa('0x5e')]()[_0x5a55aa('0x63')](respondWithResult(_0x38335b,null))['catch'](handleError(_0x38335b,null));},exports[_0x41d7d7('0x0')]=function(_0x254803,_0x5a501c){const _0x3edec1=_0x41d7d7;let _0x29bbf4={'raw':!![],'where':{}};const _0x9cd073={};let _0x5fae12;return db['SmsQueue'][_0x3edec1('0x20')]({'where':{'id':_0x254803['params']['id']}})[_0x3edec1('0x63')](handleEntityNotFound(_0x5a501c,null))[_0x3edec1('0x63')](function(_0x426526){const _0x292699=_0x3edec1;if(_0x426526)return _0x5fae12=_0x426526['get']({'plain':!![]}),_0x9cd073[_0x292699('0x3e')]=_['keys'](db[_0x292699('0x55')][_0x292699('0x60')]),_0x9cd073[_0x292699('0x29')]=_['keys'](_0x254803['query']),_0x9cd073['filters']=_[_0x292699('0x5d')](_0x9cd073[_0x292699('0x3e')],_0x9cd073[_0x292699('0x29')]),_0x29bbf4[_0x292699('0x4e')]=_[_0x292699('0x5d')](_0x9cd073[_0x292699('0x3e')],qs['fields'](_0x254803['query'][_0x292699('0x69')])),_0x29bbf4[_0x292699('0x4e')]=_0x29bbf4['attributes']['length']?_0x29bbf4[_0x292699('0x4e')]:_0x9cd073[_0x292699('0x3e')],typeof _0x254803[_0x292699('0x29')][_0x292699('0x2b')]===_0x292699('0x15')&&(_0x29bbf4['limit']=qs[_0x292699('0x7')](_0x254803['query'][_0x292699('0x7')]),_0x29bbf4['offset']=qs[_0x292699('0x40')](_0x254803['query']['offset'])),_0x29bbf4[_0x292699('0x30')]=qs[_0x292699('0x2a')](_0x254803[_0x292699('0x29')][_0x292699('0x2a')]),_0x29bbf4[_0x292699('0x6')]=qs['filters'](_[_0x292699('0x46')](_0x254803[_0x292699('0x29')],_0x9cd073[_0x292699('0x51')])),_0x29bbf4['where'][_0x292699('0x4a')]=_0x426526['id'],_0x254803['query'][_0x292699('0x65')]&&(_0x29bbf4[_0x292699('0x6')]=_[_0x292699('0x1a')](_0x29bbf4['where'],{[Op['or']]:_[_0x292699('0x3')](_0x29bbf4['attributes'],function(_0x28f144){const _0x49a610=_0x292699,_0xff3e4f={};return _0xff3e4f[_0x28f144]={[Op[_0x49a610('0x33')]]:'%'+_0x254803[_0x49a610('0x29')][_0x49a610('0x65')]+'%'},_0xff3e4f;})})),_0x29bbf4=_[_0x292699('0x1a')]({},_0x29bbf4,_0x254803[_0x292699('0x25')]),db['UserSmsQueue'][_0x292699('0x5f')](_0x29bbf4);})[_0x3edec1('0x63')](function(_0x5d3b83){const _0x471eeb=_0x3edec1;if(_0x5d3b83)return db['User'][_0x471eeb('0x41')]({'where':{'id':_['map'](_0x5d3b83,_0x471eeb('0x61')),'role':_0x471eeb('0x10')},'attributes':['id',_0x471eeb('0xe'),_0x471eeb('0x44'),_0x471eeb('0x38'),'createdAt']});})[_0x3edec1('0x63')](function(_0x2bc733){const _0x51f152=_0x3edec1;return _0x2bc733?{'count':_0x2bc733[_0x51f152('0x32')],'rows':_[_0x51f152('0x3')](_0x2bc733[_0x51f152('0x11')],function(_0x1085db){const _0x5e7e32=_0x51f152;return{'membername':_0x1085db['name'],'UserId':_0x1085db['id'],'queue_name':_0x5fae12[_0x5e7e32('0xe')],'SmsQueueId':_0x5fae12['id'],'interface':util[_0x5e7e32('0x9')](_0x5e7e32('0xb'),'SIP',_0x1085db['name']),'penalty':0x0,'paused':_0x1085db[_0x5e7e32('0x44')],'createdAt':_0x1085db['createdAt'],'updatedAt':_0x1085db['updatedAt']};})}:{'count':0x0,'rows':[]};})[_0x3edec1('0x63')](respondWithFilteredResult(_0x5a501c,_0x29bbf4))[_0x3edec1('0x27')](handleError(_0x5a501c,null));},exports[_0x41d7d7('0x13')]=function(_0x5a6bf2,_0x44eb58){const _0x396e4b=_0x41d7d7;let _0x471a3a={};const _0x3c5e89={};let _0x40174d,_0x5e89ca;return db[_0x396e4b('0x1b')]['findOne']({'where':{'id':_0x5a6bf2['params']['id']}})[_0x396e4b('0x63')](handleEntityNotFound(_0x44eb58,null))[_0x396e4b('0x63')](function(_0x27a0f9){const _0x6e6829=_0x396e4b;if(_0x27a0f9)return _0x40174d=_0x27a0f9,_0x3c5e89['model']=_[_0x6e6829('0x67')](db[_0x6e6829('0x3a')][_0x6e6829('0x60')]),_0x3c5e89['query']=_['keys'](_0x5a6bf2[_0x6e6829('0x29')]),_0x3c5e89[_0x6e6829('0x51')]=_[_0x6e6829('0x5d')](_0x3c5e89['model'],_0x3c5e89['query']),_0x471a3a[_0x6e6829('0x4e')]=_['intersection'](_0x3c5e89['model'],qs[_0x6e6829('0x69')](_0x5a6bf2[_0x6e6829('0x29')][_0x6e6829('0x69')])),_0x471a3a[_0x6e6829('0x4e')]=_0x471a3a[_0x6e6829('0x4e')]['length']?_0x471a3a[_0x6e6829('0x4e')]:_0x3c5e89[_0x6e6829('0x3e')],_0x471a3a['order']=qs[_0x6e6829('0x2a')](_0x5a6bf2[_0x6e6829('0x29')][_0x6e6829('0x2a')]),_0x471a3a['where']=qs[_0x6e6829('0x51')](_[_0x6e6829('0x46')](_0x5a6bf2[_0x6e6829('0x29')],_0x3c5e89['filters'])),_0x5a6bf2[_0x6e6829('0x29')][_0x6e6829('0x65')]&&(_0x471a3a[_0x6e6829('0x6')]=_['merge'](_0x471a3a[_0x6e6829('0x6')],{[Op['or']]:_[_0x6e6829('0x3')](_0x471a3a[_0x6e6829('0x4e')],function(_0x3da16f){const _0x1b3e64=_0x6e6829,_0x239410={};return _0x239410[_0x3da16f]={[Op[_0x1b3e64('0x33')]]:'%'+_0x5a6bf2[_0x1b3e64('0x29')][_0x1b3e64('0x65')]+'%'},_0x239410;})})),_0x471a3a=_[_0x6e6829('0x1a')]({},_0x471a3a,_0x5a6bf2[_0x6e6829('0x25')]),_0x40174d[_0x6e6829('0x13')](_0x471a3a);})[_0x396e4b('0x63')](function(_0xc4a5b1){const _0x561801=_0x396e4b;if(_0xc4a5b1)return _0x5e89ca=_0xc4a5b1['length'],typeof _0x5a6bf2['query'][_0x561801('0x2b')]===_0x561801('0x15')&&(_0x471a3a[_0x561801('0x7')]=qs['limit'](_0x5a6bf2[_0x561801('0x29')][_0x561801('0x7')]),_0x471a3a[_0x561801('0x40')]=qs[_0x561801('0x40')](_0x5a6bf2[_0x561801('0x29')][_0x561801('0x40')])),_0x40174d['getTeams'](_0x471a3a);})['then'](function(_0x106695){if(_0x106695)return _0x106695?{'count':_0x5e89ca,'rows':_0x106695}:null;})[_0x396e4b('0x63')](respondWithResult(_0x44eb58,null))[_0x396e4b('0x27')](handleError(_0x44eb58,null));},exports['addTeams']=function(_0xe3d90c,_0x34c64b){const _0x1d6872=_0x41d7d7,_0x597120=_0xe3d90c[_0x1d6872('0x6c')][_0x1d6872('0x1')];return db[_0x1d6872('0x3a')][_0x1d6872('0x5f')]({'where':{'id':_0x597120},'attributes':['id'],'include':[{'model':db[_0x1d6872('0x52')],'as':_0x1d6872('0x58'),'attributes':['id',_0x1d6872('0xe'),_0x1d6872('0x4c'),_0x1d6872('0x62'),_0x1d6872('0x3f')],'raw':!![]}]})[_0x1d6872('0x63')](function(_0x3a228c){const _0x263d62=_0x1d6872;if(_0x3a228c){const _0x5b4f8b=_[_0x263d62('0x26')](_0x3a228c,function(_0x3f9a9a){const _0x16f543=_0x263d62,_0x49126e=_0x3f9a9a['get']({'plain':!![]});return _0x49126e[_0x16f543('0x58')];});return db['SmsQueue'][_0x263d62('0x20')]({'where':{'id':_0xe3d90c[_0x263d62('0x57')]['id']}})[_0x263d62('0x63')](function(_0x512e12){const _0x52a869=_0x263d62;return db[_0x52a869('0x54')][_0x52a869('0x50')](function(_0xd7a3ac){const _0x55112f=_0x52a869;return _0x512e12[_0x55112f('0x24')](_0x597120,{'transaction':_0xd7a3ac})[_0x55112f('0x63')](function(){const _0x27ffeb=_0x55112f;return Promise[_0x27ffeb('0x4b')](_0x5b4f8b,function(_0x2abf24){const _0x263b37=_0x27ffeb;return db[_0x263b37('0x55')]['findOrCreate']({'where':{'UserId':_0x2abf24['id'],'SmsQueueId':_0xe3d90c[_0x263b37('0x57')]['id']},'transaction':_0xd7a3ac});});})['then'](function(){_0x5b4f8b['forEach'](function(_0x3a558b){const _0x9dd76=a567_0x58c6;socket['emit'](_0x9dd76('0x37'),{'UserId':_0x3a558b['id'],'SmsQueueId':_0x512e12['id']});});});});});}})[_0x1d6872('0x63')](respondWithStatusCode(_0x34c64b,null))[_0x1d6872('0x27')](handleError(_0x34c64b,null));},exports['removeTeams']=function(_0x5b369d,_0xa855f){const _0xaa710f=_0x41d7d7;return db[_0xaa710f('0x3a')]['findAll']({'where':{'id':_0x5b369d['query']['ids']},'attributes':['id'],'include':[{'model':db[_0xaa710f('0x52')],'as':_0xaa710f('0x58'),'attributes':['id'],'raw':!![]}]})[_0xaa710f('0x63')](handleEntityNotFound(_0xa855f,null))[_0xaa710f('0x63')](function(_0x5776d4){const _0x598dc0=_0xaa710f,_0x58bf9d=_[_0x598dc0('0x3')](_0x5776d4,'id');let _0x16b2a4=[];const _0x2d471f=[],_0x3ba0bd=squel[_0x598dc0('0x6b')]();_0x3ba0bd[_0x598dc0('0x6d')](_0x598dc0('0x4'))['from']('team_has_sms_queues','tq')[_0x598dc0('0x21')](_0x598dc0('0x49'),'ut',_0x598dc0('0x1d'))[_0x598dc0('0x6')]('SmsQueueId\x20=\x20?',_0x5b369d[_0x598dc0('0x57')]['id']);for(let _0x50b2ac=0x0;_0x50b2ac<_0x5776d4[_0x598dc0('0x8')];_0x50b2ac+=0x1){const _0x32c388=_0x5776d4[_0x50b2ac];for(let _0x30574e=0x0;_0x30574e<_0x32c388['Agents'][_0x598dc0('0x8')];_0x30574e+=0x1){const _0x52a817=_0x32c388[_0x598dc0('0x58')][_0x30574e],_0x54effc=_0x3ba0bd['clone']();_0x54effc[_0x598dc0('0x6')]('ut.UserId\x20=\x20?',_0x52a817['id']),_0x2d471f['push'](db['sequelize'][_0x598dc0('0x29')](_0x54effc[_0x598dc0('0x2c')](),{'type':db[_0x598dc0('0x54')][_0x598dc0('0x12')][_0x598dc0('0x14')]})[_0x598dc0('0x63')](function(_0x475b19){const _0x134ae1=_0x598dc0;if(_0x475b19[_0x134ae1('0x8')]===0x1)return _0x52a817['id'];else{const _0x53eef4=_['every'](_[_0x134ae1('0x3')](_0x475b19,_0x134ae1('0x2')),function(_0x3d9927){const _0x2bcc99=_0x134ae1;return _[_0x2bcc99('0x56')](_0x58bf9d,_0x3d9927);});if(_0x53eef4)return _0x52a817['id'];}}));}}return Promise[_0x598dc0('0x19')](_0x2d471f)[_0x598dc0('0x63')](function(_0x526293){const _0xd334b9=_0x598dc0;return _0x16b2a4=_(_0x16b2a4)[_0xd334b9('0x2f')](_0x526293)['compact']()[_0xd334b9('0x68')](),db['SmsQueue'][_0xd334b9('0x20')]({'where':{'id':_0x5b369d[_0xd334b9('0x57')]['id']}})[_0xd334b9('0x63')](function(_0x30e9a5){const _0x3d9ac5=_0xd334b9;return db[_0x3d9ac5('0x54')][_0x3d9ac5('0x50')](function(_0x16e998){const _0x522d46=_0x3d9ac5;return _0x30e9a5[_0x522d46('0x31')](_0x5b369d[_0x522d46('0x29')][_0x522d46('0x1')],{'transaction':_0x16e998})[_0x522d46('0x63')](function(){const _0x2c5149=_0x522d46;if(!_['isEmpty'](_0x16b2a4))return _0x30e9a5[_0x2c5149('0x39')](_0x16b2a4,{'transaction':_0x16e998});})[_0x522d46('0x63')](function(){_0x16b2a4['forEach'](function(_0x2efbed){const _0x472c6f=a567_0x58c6;socket[_0x472c6f('0xd')]('userSmsQueue:remove',{'UserId':_0x2efbed,'SmsQueueId':_0x30e9a5['id']});});});});});});})['then'](respondWithStatusCode(_0xa855f,null))[_0xaa710f('0x27')](handleError(_0xa855f,null));},exports[_0x41d7d7('0x6a')]=function(_0x4fd27a,_0x3c731c){const _0x5db7e5=_0x41d7d7;return db[_0x5db7e5('0x1b')][_0x5db7e5('0x20')]({'where':{'id':_0x4fd27a[_0x5db7e5('0x57')]['id']}})[_0x5db7e5('0x63')](function(_0x513f25){const _0x11ba08=_0x5db7e5;if(_0x513f25)return _0x513f25[_0x11ba08('0x6a')](_0x4fd27a['body']['ids'],{'through':_[_0x11ba08('0x34')](_0x4fd27a[_0x11ba08('0x6c')],[_0x11ba08('0x1'),'id'])})[_0x11ba08('0x63')](function(_0x1c58ae){const _0x486078=_0x11ba08;for(let _0x305073=0x0;_0x305073<_0x4fd27a[_0x486078('0x6c')][_0x486078('0x1')][_0x486078('0x8')];_0x305073+=0x1){socket[_0x486078('0xd')](_0x486078('0x37'),{'UserId':_0x4fd27a['body']['ids'][_0x305073],'SmsQueueId':_0x4fd27a[_0x486078('0x57')]['id']});}return _0x1c58ae;});})[_0x5db7e5('0x63')](respondWithResult(_0x3c731c,null))['catch'](handleError(_0x3c731c,null));},exports[_0x41d7d7('0x39')]=function(_0x1167b6,_0x1a237f){const _0x37775d=_0x41d7d7;return db[_0x37775d('0x1b')]['findOne']({'where':{'id':_0x1167b6[_0x37775d('0x57')]['id']}})[_0x37775d('0x63')](handleEntityNotFound(_0x1a237f,null))[_0x37775d('0x63')](function(_0x4107d6){const _0x1123f9=_0x37775d;if(_0x4107d6)return _0x4107d6['removeAgents'](_0x1167b6[_0x1123f9('0x29')]['ids'])['then'](function(){const _0x5c75bd=_0x1123f9;if(_[_0x5c75bd('0x5b')](_0x1167b6[_0x5c75bd('0x29')][_0x5c75bd('0x1')]))for(let _0x5d399e=0x0;_0x5d399e<_0x1167b6[_0x5c75bd('0x29')][_0x5c75bd('0x1')][_0x5c75bd('0x8')];_0x5d399e+=0x1){socket[_0x5c75bd('0xd')](_0x5c75bd('0x23'),{'UserId':Number(_0x1167b6[_0x5c75bd('0x29')]['ids'][_0x5d399e]),'SmsQueueId':Number(_0x1167b6[_0x5c75bd('0x57')]['id'])});}else socket[_0x5c75bd('0xd')](_0x5c75bd('0x23'),{'UserId':Number(_0x1167b6[_0x5c75bd('0x29')][_0x5c75bd('0x1')]),'SmsQueueId':Number(_0x1167b6['params']['id'])});});})[_0x37775d('0x63')](respondWithStatusCode(_0x1a237f,null))[_0x37775d('0x27')](handleError(_0x1a237f,null));},exports[_0x41d7d7('0x3b')]=function(_0x279e8a,_0x4f0127){const _0x2a96de=_0x41d7d7;let _0x4c4625={};const _0x4f28b9={};let _0x58dc0b,_0x5c5f9b;return db[_0x2a96de('0x1b')]['findOne']({'where':{'id':_0x279e8a['params']['id']}})[_0x2a96de('0x63')](handleEntityNotFound(_0x4f0127,null))[_0x2a96de('0x63')](function(_0x16adfd){const _0x508b13=_0x2a96de;if(_0x16adfd)return _0x58dc0b=_0x16adfd,_0x4f28b9[_0x508b13('0x3e')]=_['keys'](db[_0x508b13('0x52')][_0x508b13('0x60')]),_0x4f28b9[_0x508b13('0x29')]=_[_0x508b13('0x67')](_0x279e8a[_0x508b13('0x29')]),_0x4f28b9['filters']=_[_0x508b13('0x5d')](_0x4f28b9[_0x508b13('0x3e')],_0x4f28b9['query']),_0x4c4625[_0x508b13('0x4e')]=_[_0x508b13('0x5d')](_0x4f28b9['model'],qs[_0x508b13('0x69')](_0x279e8a[_0x508b13('0x29')][_0x508b13('0x69')])),_0x4c4625[_0x508b13('0x4e')]=_0x4c4625['attributes'][_0x508b13('0x8')]?_0x4c4625['attributes']:_0x4f28b9['model'],_0x4c4625['order']=qs[_0x508b13('0x2a')](_0x279e8a['query'][_0x508b13('0x2a')]),_0x4c4625[_0x508b13('0x6')]=qs[_0x508b13('0x51')](_[_0x508b13('0x46')](_0x279e8a['query'],_0x4f28b9[_0x508b13('0x51')])),_0x279e8a[_0x508b13('0x29')][_0x508b13('0x65')]&&(_0x4c4625[_0x508b13('0x6')]=_[_0x508b13('0x1a')](_0x4c4625[_0x508b13('0x6')],{[Op['or']]:_[_0x508b13('0x3')](_0x4c4625[_0x508b13('0x4e')],function(_0x37d66a){const _0x1c4eda=_0x508b13,_0x2bb871={};return _0x2bb871[_0x37d66a]={[Op[_0x1c4eda('0x33')]]:'%'+_0x279e8a[_0x1c4eda('0x29')][_0x1c4eda('0x65')]+'%'},_0x2bb871;})})),_0x4c4625=_[_0x508b13('0x1a')]({},_0x4c4625,_0x279e8a[_0x508b13('0x25')]),_0x58dc0b[_0x508b13('0x3b')](_0x4c4625);})['then'](function(_0x2003cf){const _0x4b7470=_0x2a96de;if(_0x2003cf)return _0x5c5f9b=_0x2003cf[_0x4b7470('0x8')],typeof _0x279e8a[_0x4b7470('0x29')]['nolimit']===_0x4b7470('0x15')&&(_0x4c4625['limit']=qs[_0x4b7470('0x7')](_0x279e8a[_0x4b7470('0x29')][_0x4b7470('0x7')]),_0x4c4625[_0x4b7470('0x40')]=qs['offset'](_0x279e8a[_0x4b7470('0x29')][_0x4b7470('0x40')])),_0x58dc0b[_0x4b7470('0x3b')](_0x4c4625);})[_0x2a96de('0x63')](function(_0x219c2f){if(_0x219c2f)return _0x219c2f?{'count':_0x5c5f9b,'rows':_0x219c2f}:null;})[_0x2a96de('0x63')](respondWithResult(_0x4f0127,null))[_0x2a96de('0x27')](handleError(_0x4f0127,null));}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.events.js b/server/api/smsQueue/smsQueue.events.js index 798a84d..d29d287 100644 --- a/server/api/smsQueue/smsQueue.events.js +++ b/server/api/smsQueue/smsQueue.events.js @@ -1 +1 @@ -const a568_0x2544=['update','../../mysqldb','events','undefined','SmsQueue','exports','remove','addHook'];(function(_0xb2a3f3,_0x2544c4){const _0x151343=function(_0x2a5e9e){while(--_0x2a5e9e){_0xb2a3f3['push'](_0xb2a3f3['shift']());}};_0x151343(++_0x2544c4);}(a568_0x2544,0xed));const a568_0x1513=function(_0xb2a3f3,_0x2544c4){_0xb2a3f3=_0xb2a3f3-0x0;let _0x151343=a568_0x2544[_0xb2a3f3];return _0x151343;};const _0x190455=a568_0x1513;'use strict';const EventEmitter=require(_0x190455('0x5')),SmsQueue=require(_0x190455('0x4'))['db'][_0x190455('0x7')],SmsQueueEvents=new EventEmitter();SmsQueueEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':_0x190455('0x3'),'afterDestroy':_0x190455('0x1')};function emitEvent(_0x2a5e9e){return function(_0x56f696){SmsQueueEvents['emit'](_0x2a5e9e+':'+_0x56f696['id'],_0x56f696),SmsQueueEvents['emit'](_0x2a5e9e,_0x56f696);};}for(const e in events){if(typeof events[e]!==_0x190455('0x6')){const event=events[e];SmsQueue[_0x190455('0x2')](e,emitEvent(event));}}module[_0x190455('0x0')]=SmsQueueEvents; \ No newline at end of file +const a568_0x3bbe=['setMaxListeners','remove','../../mysqldb','save','SmsQueue','update','events'];(function(_0x5b3762,_0x3bbe06){const _0x58e8fa=function(_0x201569){while(--_0x201569){_0x5b3762['push'](_0x5b3762['shift']());}};_0x58e8fa(++_0x3bbe06);}(a568_0x3bbe,0xf4));const a568_0x58e8=function(_0x5b3762,_0x3bbe06){_0x5b3762=_0x5b3762-0x0;let _0x58e8fa=a568_0x3bbe[_0x5b3762];return _0x58e8fa;};const _0x1249b8=a568_0x58e8;'use strict';const EventEmitter=require(_0x1249b8('0x0')),SmsQueue=require(_0x1249b8('0x3'))['db'][_0x1249b8('0x5')],SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x1249b8('0x1')](0x0);const events={'afterCreate':_0x1249b8('0x4'),'afterUpdate':_0x1249b8('0x6'),'afterDestroy':_0x1249b8('0x2')};function emitEvent(_0x201569){return function(_0x33d2da){SmsQueueEvents['emit'](_0x201569+':'+_0x33d2da['id'],_0x33d2da),SmsQueueEvents['emit'](_0x201569,_0x33d2da);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsQueue['addHook'](e,emitEvent(event));}}module['exports']=SmsQueueEvents; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.model.js b/server/api/smsQueue/smsQueue.model.js index c9eda63..17fd563 100644 --- a/server/api/smsQueue/smsQueue.model.js +++ b/server/api/smsQueue/smsQueue.model.js @@ -1 +1 @@ -const a569_0x54d3=['sms_queues','define','./smsQueue.attributes','exports','SmsQueue'];(function(_0x43c164,_0x54d3e8){const _0x19025e=function(_0x558736){while(--_0x558736){_0x43c164['push'](_0x43c164['shift']());}};_0x19025e(++_0x54d3e8);}(a569_0x54d3,0x9b));const a569_0x1902=function(_0x43c164,_0x54d3e8){_0x43c164=_0x43c164-0x0;let _0x19025e=a569_0x54d3[_0x43c164];return _0x19025e;};const _0x175e7d=a569_0x1902;'use strict';const attributes=require(_0x175e7d('0x2'));module[_0x175e7d('0x3')]=function(_0x558736){const _0x4d359a=_0x175e7d,_0x17198d=_0x558736[_0x4d359a('0x1')](_0x4d359a('0x4'),attributes,{'tableName':_0x4d359a('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x17198d;}; \ No newline at end of file +const a569_0x1f64=['sms_queues','define','SmsQueue','./smsQueue.attributes'];(function(_0x7d4cdd,_0x1f642e){const _0x213d25=function(_0x4ca409){while(--_0x4ca409){_0x7d4cdd['push'](_0x7d4cdd['shift']());}};_0x213d25(++_0x1f642e);}(a569_0x1f64,0xba));const a569_0x213d=function(_0x7d4cdd,_0x1f642e){_0x7d4cdd=_0x7d4cdd-0x0;let _0x213d25=a569_0x1f64[_0x7d4cdd];return _0x213d25;};const _0x49b0cd=a569_0x213d;'use strict';const attributes=require(_0x49b0cd('0x1'));module['exports']=function(_0x4ca409){const _0x35d54d=_0x49b0cd,_0x367a0a=_0x4ca409[_0x35d54d('0x3')](_0x35d54d('0x0'),attributes,{'tableName':_0x35d54d('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x367a0a;}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.rpc.js b/server/api/smsQueue/smsQueue.rpc.js index b1120e4..1683b54 100644 --- a/server/api/smsQueue/smsQueue.rpc.js +++ b/server/api/smsQueue/smsQueue.rpc.js @@ -1 +1 @@ -const a570_0x3f28=['GetSmsQueue','limit','register','error','../../mysqldb','rpc','catch','../../config/logger','message','raw','where','include','model','ShowSmsQueue','lodash','findOne','info','findAll','attributes','SmsQueue','options','stringify','./smsQueue.socket','debug','../../rediscache','map'];(function(_0xdf4d0,_0x3f287d){const _0xfc2662=function(_0x237cd9){while(--_0x237cd9){_0xdf4d0['push'](_0xdf4d0['shift']());}};_0xfc2662(++_0x3f287d);}(a570_0x3f28,0x1c2));const a570_0xfc26=function(_0xdf4d0,_0x3f287d){_0xdf4d0=_0xdf4d0-0x0;let _0xfc2662=a570_0x3f28[_0xdf4d0];return _0xfc2662;};const _0x5467fb=a570_0xfc26;'use strict';const _=require(_0x5467fb('0x6')),db=require(_0x5467fb('0x16'))['db'],logger=require(_0x5467fb('0x19'))(_0x5467fb('0x17')),{getSocket}=require(_0x5467fb('0x10')),socket=getSocket();require(_0x5467fb('0xe'))[_0x5467fb('0x14')](socket),exports['GetSmsQueue']=function(_0x237cd9){const _0x4412d8=this;return new Promise(function(_0x48adae,_0x4f2356){const _0x3f4822=a570_0xfc26;return db[_0x3f4822('0xb')][_0x3f4822('0x9')]({'raw':_0x237cd9[_0x3f4822('0xc')]?_0x237cd9[_0x3f4822('0xc')]['raw']===undefined?!![]:![]:!![],'where':_0x237cd9[_0x3f4822('0xc')]?_0x237cd9['options'][_0x3f4822('0x2')]||null:null,'attributes':_0x237cd9[_0x3f4822('0xc')]?_0x237cd9[_0x3f4822('0xc')][_0x3f4822('0xa')]||null:null,'limit':_0x237cd9[_0x3f4822('0xc')]?_0x237cd9[_0x3f4822('0xc')][_0x3f4822('0x13')]||null:null,'include':_0x237cd9[_0x3f4822('0xc')]?_0x237cd9[_0x3f4822('0xc')][_0x3f4822('0x3')]?_[_0x3f4822('0x11')](_0x237cd9[_0x3f4822('0xc')]['include'],function(_0x3987b3){const _0x385405=_0x3f4822;return{'model':db[_0x3987b3[_0x385405('0x4')]],'as':_0x3987b3['as'],'attributes':_0x3987b3[_0x385405('0xa')],'include':_0x3987b3['include']?_[_0x385405('0x11')](_0x3987b3[_0x385405('0x3')],function(_0x127b20){const _0x43c79d=_0x385405;return{'model':db[_0x127b20[_0x43c79d('0x4')]],'as':_0x127b20['as'],'attributes':_0x127b20[_0x43c79d('0xa')],'include':_0x127b20[_0x43c79d('0x3')]?_[_0x43c79d('0x11')](_0x127b20[_0x43c79d('0x3')],function(_0xf3c279){const _0x27fbf0=_0x43c79d;return{'model':db[_0xf3c279[_0x27fbf0('0x4')]],'as':_0xf3c279['as'],'attributes':_0xf3c279['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x4af0a6){const _0x34dcc4=_0x3f4822;logger[_0x34dcc4('0x8')](_0x34dcc4('0x12'),_0x237cd9),logger['debug'](_0x34dcc4('0x12'),_0x237cd9,JSON[_0x34dcc4('0xd')](_0x4af0a6)),_0x48adae(_0x4af0a6);})[_0x3f4822('0x18')](function(_0x27f333){const _0xec453e=_0x3f4822;logger[_0xec453e('0x15')](_0xec453e('0x12'),_0x27f333[_0xec453e('0x0')],_0x237cd9),_0x4f2356(_0x4412d8['error'](0x1f4,_0x27f333[_0xec453e('0x0')]));});});},exports['ShowSmsQueue']=function(_0x59391e){const _0x6e306e=this;return new Promise(function(_0x3014e4,_0x51d168){const _0x5f3abb=a570_0xfc26;return db[_0x5f3abb('0xb')][_0x5f3abb('0x7')]({'raw':_0x59391e['options']?_0x59391e[_0x5f3abb('0xc')][_0x5f3abb('0x1')]===undefined?!![]:![]:!![],'where':_0x59391e[_0x5f3abb('0xc')]?_0x59391e[_0x5f3abb('0xc')][_0x5f3abb('0x2')]||null:null,'attributes':_0x59391e[_0x5f3abb('0xc')]?_0x59391e['options']['attributes']||null:null,'include':_0x59391e[_0x5f3abb('0xc')]?_0x59391e[_0x5f3abb('0xc')][_0x5f3abb('0x3')]?_['map'](_0x59391e[_0x5f3abb('0xc')][_0x5f3abb('0x3')],function(_0x3f49db){const _0x1ce989=_0x5f3abb;return{'model':db[_0x3f49db[_0x1ce989('0x4')]],'as':_0x3f49db['as'],'attributes':_0x3f49db[_0x1ce989('0xa')],'include':_0x3f49db[_0x1ce989('0x3')]?_[_0x1ce989('0x11')](_0x3f49db[_0x1ce989('0x3')],function(_0x2fd0de){const _0x47dc28=_0x1ce989;return{'model':db[_0x2fd0de[_0x47dc28('0x4')]],'as':_0x2fd0de['as'],'attributes':_0x2fd0de[_0x47dc28('0xa')],'include':_0x2fd0de[_0x47dc28('0x3')]?_[_0x47dc28('0x11')](_0x2fd0de[_0x47dc28('0x3')],function(_0x444e42){const _0x3bccf5=_0x47dc28;return{'model':db[_0x444e42[_0x3bccf5('0x4')]],'as':_0x444e42['as'],'attributes':_0x444e42['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x265d75){const _0x184e52=_0x5f3abb;logger[_0x184e52('0x8')]('ShowSmsQueue',_0x59391e),logger[_0x184e52('0xf')]('ShowSmsQueue',_0x59391e,JSON[_0x184e52('0xd')](_0x265d75)),_0x3014e4(_0x265d75);})[_0x5f3abb('0x18')](function(_0xabfe92){const _0x46d654=_0x5f3abb;logger[_0x46d654('0x15')](_0x46d654('0x5'),_0xabfe92['message'],_0x59391e),_0x51d168(_0x6e306e[_0x46d654('0x15')](0x1f4,_0xabfe92[_0x46d654('0x0')]));});});}; \ No newline at end of file +const a570_0x36cb=['rpc','include','raw','attributes','lodash','message','../../rediscache','SmsQueue','model','./smsQueue.socket','findOne','map','info','options','ShowSmsQueue','findAll','where','register','catch','then','debug','limit','GetSmsQueue','error','stringify'];(function(_0x330d29,_0x36cb8a){const _0xabab57=function(_0x195034){while(--_0x195034){_0x330d29['push'](_0x330d29['shift']());}};_0xabab57(++_0x36cb8a);}(a570_0x36cb,0x19b));const a570_0xabab=function(_0x330d29,_0x36cb8a){_0x330d29=_0x330d29-0x0;let _0xabab57=a570_0x36cb[_0x330d29];return _0xabab57;};const _0xcf775c=a570_0xabab;'use strict';const _=require(_0xcf775c('0x12')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0xcf775c('0xe')),{getSocket}=require(_0xcf775c('0x14')),socket=getSocket();require(_0xcf775c('0x17'))[_0xcf775c('0x6')](socket),exports[_0xcf775c('0xb')]=function(_0x195034){const _0x12f840=this;return new Promise(function(_0x1231a3,_0x1fc5f6){const _0x336f96=a570_0xabab;return db[_0x336f96('0x15')][_0x336f96('0x4')]({'raw':_0x195034['options']?_0x195034['options'][_0x336f96('0x10')]===undefined?!![]:![]:!![],'where':_0x195034['options']?_0x195034['options']['where']||null:null,'attributes':_0x195034['options']?_0x195034[_0x336f96('0x2')][_0x336f96('0x11')]||null:null,'limit':_0x195034['options']?_0x195034[_0x336f96('0x2')][_0x336f96('0xa')]||null:null,'include':_0x195034[_0x336f96('0x2')]?_0x195034[_0x336f96('0x2')][_0x336f96('0xf')]?_[_0x336f96('0x0')](_0x195034[_0x336f96('0x2')][_0x336f96('0xf')],function(_0x51f56d){const _0x142ee4=_0x336f96;return{'model':db[_0x51f56d['model']],'as':_0x51f56d['as'],'attributes':_0x51f56d['attributes'],'include':_0x51f56d[_0x142ee4('0xf')]?_[_0x142ee4('0x0')](_0x51f56d['include'],function(_0x2bd9ce){const _0x1ed9cf=_0x142ee4;return{'model':db[_0x2bd9ce[_0x1ed9cf('0x16')]],'as':_0x2bd9ce['as'],'attributes':_0x2bd9ce[_0x1ed9cf('0x11')],'include':_0x2bd9ce[_0x1ed9cf('0xf')]?_[_0x1ed9cf('0x0')](_0x2bd9ce[_0x1ed9cf('0xf')],function(_0x1421ec){const _0x122db2=_0x1ed9cf;return{'model':db[_0x1421ec[_0x122db2('0x16')]],'as':_0x1421ec['as'],'attributes':_0x1421ec[_0x122db2('0x11')]};}):[]};}):[]};}):[]:[]})[_0x336f96('0x8')](function(_0x4126d5){const _0x54b2b6=_0x336f96;logger[_0x54b2b6('0x1')](_0x54b2b6('0xb'),_0x195034),logger[_0x54b2b6('0x9')](_0x54b2b6('0xb'),_0x195034,JSON[_0x54b2b6('0xd')](_0x4126d5)),_0x1231a3(_0x4126d5);})[_0x336f96('0x7')](function(_0x1201e5){const _0x4dfd37=_0x336f96;logger[_0x4dfd37('0xc')](_0x4dfd37('0xb'),_0x1201e5[_0x4dfd37('0x13')],_0x195034),_0x1fc5f6(_0x12f840[_0x4dfd37('0xc')](0x1f4,_0x1201e5[_0x4dfd37('0x13')]));});});},exports[_0xcf775c('0x3')]=function(_0x2f8b90){const _0x57f20c=this;return new Promise(function(_0x59c207,_0x5a3112){const _0x40942c=a570_0xabab;return db['SmsQueue'][_0x40942c('0x18')]({'raw':_0x2f8b90[_0x40942c('0x2')]?_0x2f8b90['options']['raw']===undefined?!![]:![]:!![],'where':_0x2f8b90[_0x40942c('0x2')]?_0x2f8b90[_0x40942c('0x2')][_0x40942c('0x5')]||null:null,'attributes':_0x2f8b90[_0x40942c('0x2')]?_0x2f8b90[_0x40942c('0x2')][_0x40942c('0x11')]||null:null,'include':_0x2f8b90[_0x40942c('0x2')]?_0x2f8b90['options'][_0x40942c('0xf')]?_[_0x40942c('0x0')](_0x2f8b90['options'][_0x40942c('0xf')],function(_0x1af724){const _0x150045=_0x40942c;return{'model':db[_0x1af724[_0x150045('0x16')]],'as':_0x1af724['as'],'attributes':_0x1af724['attributes'],'include':_0x1af724[_0x150045('0xf')]?_[_0x150045('0x0')](_0x1af724['include'],function(_0x24fe32){const _0x5a5631=_0x150045;return{'model':db[_0x24fe32[_0x5a5631('0x16')]],'as':_0x24fe32['as'],'attributes':_0x24fe32[_0x5a5631('0x11')],'include':_0x24fe32['include']?_['map'](_0x24fe32[_0x5a5631('0xf')],function(_0xc657bd){const _0x28bcde=_0x5a5631;return{'model':db[_0xc657bd['model']],'as':_0xc657bd['as'],'attributes':_0xc657bd[_0x28bcde('0x11')]};}):[]};}):[]};}):[]:[]})[_0x40942c('0x8')](function(_0x56160f){const _0xce21ac=_0x40942c;logger['info'](_0xce21ac('0x3'),_0x2f8b90),logger['debug'](_0xce21ac('0x3'),_0x2f8b90,JSON[_0xce21ac('0xd')](_0x56160f)),_0x59c207(_0x56160f);})[_0x40942c('0x7')](function(_0x287083){const _0x3e3acd=_0x40942c;logger[_0x3e3acd('0xc')](_0x3e3acd('0x3'),_0x287083[_0x3e3acd('0x13')],_0x2f8b90),_0x5a3112(_0x57f20c[_0x3e3acd('0xc')](0x1f4,_0x287083['message']));});});}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.socket.js b/server/api/smsQueue/smsQueue.socket.js index 0de8267..90fa738 100644 --- a/server/api/smsQueue/smsQueue.socket.js +++ b/server/api/smsQueue/smsQueue.socket.js @@ -1 +1 @@ -const a571_0x2ae6=['register','smsQueue:','length','./smsQueue.events'];(function(_0x1a929d,_0x2ae6fc){const _0x37f208=function(_0x98fd46){while(--_0x98fd46){_0x1a929d['push'](_0x1a929d['shift']());}};_0x37f208(++_0x2ae6fc);}(a571_0x2ae6,0x84));const a571_0x37f2=function(_0x1a929d,_0x2ae6fc){_0x1a929d=_0x1a929d-0x0;let _0x37f208=a571_0x2ae6[_0x1a929d];return _0x37f208;};const _0x11b71b=a571_0x37f2;'use strict';const SmsQueueEvents=require(_0x11b71b('0x3')),events=['save','remove','update'];function createListener(_0x98fd46,_0x54e1c7){return function(_0x22dac1){_0x54e1c7['emit'](_0x98fd46,_0x22dac1);};}exports[_0x11b71b('0x0')]=function(_0x539441){const _0x1d47a1=_0x11b71b;for(let _0x142156=0x0,_0x32fd6d=events[_0x1d47a1('0x2')];_0x142156<_0x32fd6d;_0x142156++){const _0x4d891e=events[_0x142156],_0x3c9498=createListener(_0x1d47a1('0x1')+_0x4d891e,_0x539441);SmsQueueEvents['on'](_0x4d891e,_0x3c9498);}}; \ No newline at end of file +const a571_0x2edd=['register','update','./smsQueue.events','smsQueue:'];(function(_0x5d30ce,_0x2edd44){const _0xb93a6f=function(_0x42435b){while(--_0x42435b){_0x5d30ce['push'](_0x5d30ce['shift']());}};_0xb93a6f(++_0x2edd44);}(a571_0x2edd,0x97));const a571_0xb93a=function(_0x5d30ce,_0x2edd44){_0x5d30ce=_0x5d30ce-0x0;let _0xb93a6f=a571_0x2edd[_0x5d30ce];return _0xb93a6f;};const _0x482cf4=a571_0xb93a;'use strict';const SmsQueueEvents=require(_0x482cf4('0x3')),events=['save','remove',_0x482cf4('0x2')];function createListener(_0x42435b,_0x23480d){return function(_0x48343a){_0x23480d['emit'](_0x42435b,_0x48343a);};}exports[_0x482cf4('0x1')]=function(_0x2f3bc4){const _0x279ad6=_0x482cf4;for(let _0x3fc010=0x0,_0x2a0b5d=events['length'];_0x3fc010<_0x2a0b5d;_0x3fc010++){const _0x3f5450=events[_0x3fc010],_0x1efc4f=createListener(_0x279ad6('0x0')+_0x3f5450,_0x2f3bc4);SmsQueueEvents['on'](_0x3f5450,_0x1efc4f);}}; \ No newline at end of file diff --git a/server/api/smsQueueReport/index.js b/server/api/smsQueueReport/index.js index 46572c8..6e6873c 100644 --- a/server/api/smsQueueReport/index.js +++ b/server/api/smsQueueReport/index.js @@ -1 +1 @@ -const a572_0x1004=['update','show','create','/:id','exports','put','/describe','get','describe','../../components/auth/service','isAuthenticated'];(function(_0x5e3029,_0x1004a0){const _0x5a821b=function(_0x4e067a){while(--_0x4e067a){_0x5e3029['push'](_0x5e3029['shift']());}};_0x5a821b(++_0x1004a0);}(a572_0x1004,0xe4));const a572_0x5a82=function(_0x5e3029,_0x1004a0){_0x5e3029=_0x5e3029-0x0;let _0x5a821b=a572_0x1004[_0x5e3029];return _0x5a821b;};const _0x57287d=a572_0x5a82;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x57287d('0x1')),controller=require('./smsQueueReport.controller');router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0x57287d('0xa')](_0x57287d('0x9'),auth[_0x57287d('0x2')](),controller[_0x57287d('0x0')]),router[_0x57287d('0xa')](_0x57287d('0x6'),auth[_0x57287d('0x2')](),controller[_0x57287d('0x4')]),router['post']('/',auth[_0x57287d('0x2')](),controller[_0x57287d('0x5')]),router[_0x57287d('0x8')](_0x57287d('0x6'),auth['isAuthenticated'](),controller[_0x57287d('0x3')]),router['delete'](_0x57287d('0x6'),auth['isAuthenticated'](),controller['destroy']),module[_0x57287d('0x7')]=router; \ No newline at end of file +const a572_0x5dfe=['./smsQueueReport.controller','describe','/:id','index','Router','update','get','exports','create','../../components/auth/service','post','isAuthenticated','show'];(function(_0x3252dc,_0x5dfe10){const _0x1d9bf4=function(_0x492100){while(--_0x492100){_0x3252dc['push'](_0x3252dc['shift']());}};_0x1d9bf4(++_0x5dfe10);}(a572_0x5dfe,0xcb));const a572_0x1d9b=function(_0x3252dc,_0x5dfe10){_0x3252dc=_0x3252dc-0x0;let _0x1d9bf4=a572_0x5dfe[_0x3252dc];return _0x1d9bf4;};const _0x1b1891=a572_0x1d9b;'use strict';const express=require('express'),router=express[_0x1b1891('0x9')](),auth=require(_0x1b1891('0x1')),controller=require(_0x1b1891('0x5'));router[_0x1b1891('0xb')]('/',auth[_0x1b1891('0x3')](),controller[_0x1b1891('0x8')]),router[_0x1b1891('0xb')]('/describe',auth['isAuthenticated'](),controller[_0x1b1891('0x6')]),router[_0x1b1891('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x1b1891('0x4')]),router[_0x1b1891('0x2')]('/',auth[_0x1b1891('0x3')](),controller[_0x1b1891('0x0')]),router['put'](_0x1b1891('0x7'),auth[_0x1b1891('0x3')](),controller[_0x1b1891('0xa')]),router['delete'](_0x1b1891('0x7'),auth['isAuthenticated'](),controller['destroy']),module[_0x1b1891('0xc')]=router; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.attributes.js b/server/api/smsQueueReport/smsQueueReport.attributes.js index 00dc2ca..1636d31 100644 --- a/server/api/smsQueueReport/smsQueueReport.attributes.js +++ b/server/api/smsQueueReport/smsQueueReport.attributes.js @@ -1 +1 @@ -const a573_0x20d3=['sequelize','exports','DATE'];(function(_0x3fb25b,_0x20d367){const _0x2b91cb=function(_0x13eb53){while(--_0x13eb53){_0x3fb25b['push'](_0x3fb25b['shift']());}};_0x2b91cb(++_0x20d367);}(a573_0x20d3,0x74));const a573_0x2b91=function(_0x3fb25b,_0x20d367){_0x3fb25b=_0x3fb25b-0x0;let _0x2b91cb=a573_0x20d3[_0x3fb25b];return _0x2b91cb;};const _0x17c43e=a573_0x2b91;'use strict';const Sequelize=require(_0x17c43e('0x1'));module[_0x17c43e('0x2')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x17c43e('0x0')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x17c43e('0x0')]},'exitAt':{'type':Sequelize[_0x17c43e('0x0')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a573_0x3c74=['STRING','sequelize','DATE','exports'];(function(_0x18b075,_0x3c74e4){const _0x369fe0=function(_0x21d953){while(--_0x21d953){_0x18b075['push'](_0x18b075['shift']());}};_0x369fe0(++_0x3c74e4);}(a573_0x3c74,0x16b));const a573_0x369f=function(_0x18b075,_0x3c74e4){_0x18b075=_0x18b075-0x0;let _0x369fe0=a573_0x3c74[_0x18b075];return _0x369fe0;};const _0x3cfec2=a573_0x369f;'use strict';const Sequelize=require(_0x3cfec2('0x2'));module[_0x3cfec2('0x0')]={'uniqueid':{'type':Sequelize[_0x3cfec2('0x1')],'allowNull':![]},'from':{'type':Sequelize[_0x3cfec2('0x1')]},'joinAt':{'type':Sequelize[_0x3cfec2('0x3')]},'leaveAt':{'type':Sequelize[_0x3cfec2('0x3')]},'acceptAt':{'type':Sequelize[_0x3cfec2('0x3')]},'exitAt':{'type':Sequelize['DATE']},'reason':{'type':Sequelize[_0x3cfec2('0x1')]}}; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.controller.js b/server/api/smsQueueReport/smsQueueReport.controller.js index 5a52cd6..f9877c2 100644 --- a/server/api/smsQueueReport/smsQueueReport.controller.js +++ b/server/api/smsQueueReport/smsQueueReport.controller.js @@ -1 +1 @@ -const a574_0x4e6f=['../../mysqldb','SmsQueueReport','lodash','include','rawAttributes','VIRTUAL','length','findAll','error','json','fields','intersection','key','pick','params','rows','body','api','query','update','attributes','undefined','then','findOne','name','sort','sendStatus','status','send','describe','destroy','order','../../config/logger','where','end','count','filter','limit','model','filters','options','offset','sequelize','includeAll','set','create','index','catch','keys','../../components/parsers/qs','map','merge'];(function(_0x215755,_0x4e6ff2){const _0x281dfa=function(_0x4d55ea){while(--_0x4d55ea){_0x215755['push'](_0x215755['shift']());}};_0x281dfa(++_0x4e6ff2);}(a574_0x4e6f,0xf1));const a574_0x281d=function(_0x215755,_0x4e6ff2){_0x215755=_0x215755-0x0;let _0x281dfa=a574_0x4e6f[_0x215755];return _0x281dfa;};const _0x4aa2a5=a574_0x281d;'use strict';const _=require(_0x4aa2a5('0x15')),qs=require(_0x4aa2a5('0x10')),logger=require(_0x4aa2a5('0x33'))(_0x4aa2a5('0x24')),db=require(_0x4aa2a5('0x13'))['db'],{Op}=require(_0x4aa2a5('0x9'));function respondWithResult(_0x4d55ea,_0x4d06fa){return _0x4d06fa=_0x4d06fa||0xc8,function(_0x28921d){const _0x3fa9fa=a574_0x281d;if(_0x28921d)return _0x4d55ea[_0x3fa9fa('0x2e')](_0x4d06fa)[_0x3fa9fa('0x1c')](_0x28921d);};}function respondWithFilteredResult(_0x5aa7c6,_0x2440d2){return function(_0x56eb97){const _0x30a975=a574_0x281d;if(_0x56eb97){const _0x1f7e90=_0x56eb97[_0x30a975('0x2')],_0xf36e8c=_0x2440d2['offset'];let _0x288890=_0x2440d2[_0x30a975('0x8')]+_0x2440d2[_0x30a975('0x4')],_0xebd64d;return _0x288890>=_0x1f7e90?(_0x288890=_0x1f7e90,_0xebd64d=0xc8):_0xebd64d=0xce,_0x5aa7c6[_0x30a975('0x2e')](_0xebd64d),_0x5aa7c6[_0x30a975('0xb')]('Content-Range',_0xf36e8c+'-'+_0x288890+'/'+_0x1f7e90)[_0x30a975('0x1c')](_0x56eb97);}return null;};}function saveUpdates(_0x28e752){return function(_0x13850f){const _0x5aa97c=a574_0x281d;if(_0x13850f)return _0x13850f[_0x5aa97c('0x26')](_0x28e752)[_0x5aa97c('0x29')](function(_0x3ea6a4){return _0x3ea6a4;});return null;};}function removeEntity(_0x3575fb){return function(_0x538d1b){const _0x10a7b1=a574_0x281d;if(_0x538d1b)return _0x538d1b[_0x10a7b1('0x31')]()[_0x10a7b1('0x29')](function(){const _0x401bcf=_0x10a7b1;_0x3575fb[_0x401bcf('0x2e')](0xcc)[_0x401bcf('0x1')]();});};}function handleEntityNotFound(_0x220518){return function(_0x2c3f5b){const _0x578c92=a574_0x281d;return!_0x2c3f5b&&_0x220518[_0x578c92('0x2d')](0x194),_0x2c3f5b;};}function handleError(_0x32f72b,_0x40408a){return _0x40408a=_0x40408a||0x1f4,function(_0x555ac3){const _0x32817f=a574_0x281d;logger[_0x32817f('0x1b')](_0x555ac3['stack']),_0x555ac3[_0x32817f('0x2b')]&&delete _0x555ac3[_0x32817f('0x2b')],_0x32f72b[_0x32817f('0x2e')](_0x40408a)[_0x32817f('0x2f')](_0x555ac3);};}exports[_0x4aa2a5('0xd')]=function(_0x3425fb,_0x488f9c){const _0x1daa16=_0x4aa2a5;let _0x2cfc06={};const _0x271a57={},_0x2c4902={'count':0x0,'rows':[]},_0x1f5309=_[_0x1daa16('0x11')](db[_0x1daa16('0x14')][_0x1daa16('0x17')],function(_0x2bf5ea){const _0x3bb6f8=_0x1daa16;return{'name':_0x2bf5ea['fieldName'],'type':_0x2bf5ea['type'][_0x3bb6f8('0x1f')]};});_0x271a57[_0x1daa16('0x5')]=_[_0x1daa16('0x11')](_0x1f5309,_0x1daa16('0x2b')),_0x271a57[_0x1daa16('0x25')]=_[_0x1daa16('0xf')](_0x3425fb['query']),_0x271a57[_0x1daa16('0x6')]=_[_0x1daa16('0x1e')](_0x271a57['model'],_0x271a57[_0x1daa16('0x25')]),_0x2cfc06[_0x1daa16('0x27')]=_['intersection'](_0x271a57[_0x1daa16('0x5')],qs[_0x1daa16('0x1d')](_0x3425fb['query']['fields'])),_0x2cfc06[_0x1daa16('0x27')]=_0x2cfc06[_0x1daa16('0x27')][_0x1daa16('0x19')]?_0x2cfc06[_0x1daa16('0x27')]:_0x271a57[_0x1daa16('0x5')];typeof _0x3425fb['query']['nolimit']===_0x1daa16('0x28')&&(_0x2cfc06[_0x1daa16('0x4')]=qs[_0x1daa16('0x4')](_0x3425fb[_0x1daa16('0x25')][_0x1daa16('0x4')]),_0x2cfc06[_0x1daa16('0x8')]=qs[_0x1daa16('0x8')](_0x3425fb['query'][_0x1daa16('0x8')]));_0x2cfc06[_0x1daa16('0x32')]=qs[_0x1daa16('0x2c')](_0x3425fb['query'][_0x1daa16('0x2c')]),_0x2cfc06['where']=qs[_0x1daa16('0x6')](_[_0x1daa16('0x20')](_0x3425fb[_0x1daa16('0x25')],_0x271a57[_0x1daa16('0x6')]),_0x1f5309);_0x3425fb[_0x1daa16('0x25')][_0x1daa16('0x3')]&&(_0x2cfc06[_0x1daa16('0x0')]=_[_0x1daa16('0x12')](_0x2cfc06[_0x1daa16('0x0')],{[Op['or']]:_[_0x1daa16('0x11')](_0x1f5309,function(_0x336bfb){const _0x5d2c63=_0x1daa16;if(_0x336bfb['type']!==_0x5d2c63('0x18')){const _0x56f8dd={};return _0x56f8dd[_0x336bfb['name']]={[Op['like']]:'%'+_0x3425fb[_0x5d2c63('0x25')][_0x5d2c63('0x3')]+'%'},_0x56f8dd;}})}));_0x2cfc06=_[_0x1daa16('0x12')]({},_0x2cfc06,_0x3425fb[_0x1daa16('0x7')]);const _0x43b9da={'where':_0x2cfc06[_0x1daa16('0x0')]};return db['SmsQueueReport'][_0x1daa16('0x2')](_0x43b9da)[_0x1daa16('0x29')](function(_0xa52290){const _0x3c4ed2=_0x1daa16;return _0x2c4902[_0x3c4ed2('0x2')]=_0xa52290,_0x3425fb[_0x3c4ed2('0x25')][_0x3c4ed2('0xa')]&&(_0x2cfc06[_0x3c4ed2('0x16')]=[{'all':!![]}]),db['SmsQueueReport'][_0x3c4ed2('0x1a')](_0x2cfc06);})[_0x1daa16('0x29')](function(_0xd57afe){const _0x3cb224=_0x1daa16;return _0x2c4902[_0x3cb224('0x22')]=_0xd57afe,_0x2c4902;})[_0x1daa16('0x29')](respondWithFilteredResult(_0x488f9c,_0x2cfc06))[_0x1daa16('0xe')](handleError(_0x488f9c,null));},exports['show']=function(_0x5ac638,_0x2d0495){const _0x7043f1=_0x4aa2a5;let _0x473d84={'raw':!![],'where':{'id':_0x5ac638['params']['id']}};const _0x1d8490={};return _0x1d8490['model']=_['keys'](db[_0x7043f1('0x14')][_0x7043f1('0x17')]),_0x1d8490[_0x7043f1('0x25')]=_[_0x7043f1('0xf')](_0x5ac638[_0x7043f1('0x25')]),_0x1d8490[_0x7043f1('0x6')]=_['intersection'](_0x1d8490['model'],_0x1d8490[_0x7043f1('0x25')]),_0x473d84[_0x7043f1('0x27')]=_[_0x7043f1('0x1e')](_0x1d8490[_0x7043f1('0x5')],qs[_0x7043f1('0x1d')](_0x5ac638[_0x7043f1('0x25')][_0x7043f1('0x1d')])),_0x473d84[_0x7043f1('0x27')]=_0x473d84[_0x7043f1('0x27')][_0x7043f1('0x19')]?_0x473d84[_0x7043f1('0x27')]:_0x1d8490[_0x7043f1('0x5')],_0x5ac638['query'][_0x7043f1('0xa')]&&(_0x473d84[_0x7043f1('0x16')]=[{'all':!![]}]),_0x473d84=_[_0x7043f1('0x12')]({},_0x473d84,_0x5ac638[_0x7043f1('0x7')]),db[_0x7043f1('0x14')][_0x7043f1('0x2a')](_0x473d84)[_0x7043f1('0x29')](handleEntityNotFound(_0x2d0495,null))['then'](respondWithResult(_0x2d0495,null))[_0x7043f1('0xe')](handleError(_0x2d0495,null));},exports['create']=function(_0x54fb3c,_0x51c1f1){const _0x58f689=_0x4aa2a5;return db[_0x58f689('0x14')][_0x58f689('0xc')](_0x54fb3c['body'],{})[_0x58f689('0x29')](respondWithResult(_0x51c1f1,0xc9))[_0x58f689('0xe')](handleError(_0x51c1f1,null));},exports[_0x4aa2a5('0x26')]=function(_0x33897f,_0x1bdb6b){const _0x321e34=_0x4aa2a5;return _0x33897f[_0x321e34('0x23')]['id']&&delete _0x33897f[_0x321e34('0x23')]['id'],db[_0x321e34('0x14')][_0x321e34('0x2a')]({'where':{'id':_0x33897f[_0x321e34('0x21')]['id']}})[_0x321e34('0x29')](handleEntityNotFound(_0x1bdb6b,null))[_0x321e34('0x29')](saveUpdates(_0x33897f[_0x321e34('0x23')],null))[_0x321e34('0x29')](respondWithResult(_0x1bdb6b,null))[_0x321e34('0xe')](handleError(_0x1bdb6b,null));},exports[_0x4aa2a5('0x31')]=function(_0x233975,_0x28896a){const _0x36d81e=_0x4aa2a5;return db[_0x36d81e('0x14')][_0x36d81e('0x2a')]({'where':{'id':_0x233975[_0x36d81e('0x21')]['id']}})[_0x36d81e('0x29')](handleEntityNotFound(_0x28896a,null))[_0x36d81e('0x29')](removeEntity(_0x28896a,null))[_0x36d81e('0xe')](handleError(_0x28896a,null));},exports[_0x4aa2a5('0x30')]=function(_0x54817b,_0x329603){const _0x37d7bd=_0x4aa2a5;return db[_0x37d7bd('0x14')][_0x37d7bd('0x30')]()[_0x37d7bd('0x29')](respondWithResult(_0x329603,null))[_0x37d7bd('0xe')](handleError(_0x329603,null));}; \ No newline at end of file +const a574_0x2fa7=['map','findAll','name','merge','VIRTUAL','fields','body','intersection','../../config/logger','lodash','status','keys','where','limit','sort','set','stack','params','rows','attributes','findOne','options','model','Content-Range','query','length','nolimit','json','send','offset','error','SmsQueueReport','filters','order','create','includeAll','then','count','catch','filter','../../components/parsers/qs','fieldName','like','type','key','destroy','show','include','update'];(function(_0x457157,_0x2fa737){const _0x3835f9=function(_0x173326){while(--_0x173326){_0x457157['push'](_0x457157['shift']());}};_0x3835f9(++_0x2fa737);}(a574_0x2fa7,0x121));const a574_0x3835=function(_0x457157,_0x2fa737){_0x457157=_0x457157-0x0;let _0x3835f9=a574_0x2fa7[_0x457157];return _0x3835f9;};const _0x3487b7=a574_0x3835;'use strict';const _=require(_0x3487b7('0xe')),qs=require(_0x3487b7('0x2d')),logger=require(_0x3487b7('0xd'))('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x173326,_0x1d6588){return _0x1d6588=_0x1d6588||0xc8,function(_0x3bf32f){const _0x57aa36=a574_0x3835;if(_0x3bf32f)return _0x173326['status'](_0x1d6588)[_0x57aa36('0x20')](_0x3bf32f);};}function respondWithFilteredResult(_0x33ef01,_0x22bd74){return function(_0x1b637c){const _0x1690cb=a574_0x3835;if(_0x1b637c){const _0x59fea2=_0x1b637c[_0x1690cb('0x2a')],_0x570a52=_0x22bd74[_0x1690cb('0x22')];let _0x176cbc=_0x22bd74[_0x1690cb('0x22')]+_0x22bd74[_0x1690cb('0x12')],_0x250ff1;return _0x176cbc>=_0x59fea2?(_0x176cbc=_0x59fea2,_0x250ff1=0xc8):_0x250ff1=0xce,_0x33ef01[_0x1690cb('0xf')](_0x250ff1),_0x33ef01[_0x1690cb('0x14')](_0x1690cb('0x1c'),_0x570a52+'-'+_0x176cbc+'/'+_0x59fea2)['json'](_0x1b637c);}return null;};}function saveUpdates(_0x2b843b){return function(_0x1d5fff){const _0x5cd955=a574_0x3835;if(_0x1d5fff)return _0x1d5fff[_0x5cd955('0x4')](_0x2b843b)[_0x5cd955('0x29')](function(_0x3e4ebe){return _0x3e4ebe;});return null;};}function removeEntity(_0x3ec533){return function(_0x3810f6){const _0x316ba7=a574_0x3835;if(_0x3810f6)return _0x3810f6[_0x316ba7('0x1')]()[_0x316ba7('0x29')](function(){const _0xe2b5d4=_0x316ba7;_0x3ec533[_0xe2b5d4('0xf')](0xcc)['end']();});};}function handleEntityNotFound(_0xf02034){return function(_0x58ee4a){return!_0x58ee4a&&_0xf02034['sendStatus'](0x194),_0x58ee4a;};}function handleError(_0x236497,_0x283cfb){return _0x283cfb=_0x283cfb||0x1f4,function(_0x23a593){const _0x3fe077=a574_0x3835;logger[_0x3fe077('0x23')](_0x23a593[_0x3fe077('0x15')]),_0x23a593[_0x3fe077('0x7')]&&delete _0x23a593[_0x3fe077('0x7')],_0x236497['status'](_0x283cfb)[_0x3fe077('0x21')](_0x23a593);};}exports['index']=function(_0x4e9099,_0x411614){const _0x247992=_0x3487b7;let _0x2c9d96={};const _0x5cacf5={},_0x7b3b40={'count':0x0,'rows':[]},_0x14ca68=_[_0x247992('0x5')](db[_0x247992('0x24')]['rawAttributes'],function(_0x24946b){const _0x1e387c=_0x247992;return{'name':_0x24946b[_0x1e387c('0x2e')],'type':_0x24946b[_0x1e387c('0x30')][_0x1e387c('0x0')]};});_0x5cacf5[_0x247992('0x1b')]=_[_0x247992('0x5')](_0x14ca68,_0x247992('0x7')),_0x5cacf5[_0x247992('0x1d')]=_[_0x247992('0x10')](_0x4e9099[_0x247992('0x1d')]),_0x5cacf5[_0x247992('0x25')]=_['intersection'](_0x5cacf5[_0x247992('0x1b')],_0x5cacf5[_0x247992('0x1d')]),_0x2c9d96[_0x247992('0x18')]=_[_0x247992('0xc')](_0x5cacf5['model'],qs[_0x247992('0xa')](_0x4e9099[_0x247992('0x1d')][_0x247992('0xa')])),_0x2c9d96[_0x247992('0x18')]=_0x2c9d96[_0x247992('0x18')][_0x247992('0x1e')]?_0x2c9d96[_0x247992('0x18')]:_0x5cacf5[_0x247992('0x1b')];typeof _0x4e9099[_0x247992('0x1d')][_0x247992('0x1f')]==='undefined'&&(_0x2c9d96[_0x247992('0x12')]=qs[_0x247992('0x12')](_0x4e9099['query']['limit']),_0x2c9d96['offset']=qs[_0x247992('0x22')](_0x4e9099[_0x247992('0x1d')][_0x247992('0x22')]));_0x2c9d96[_0x247992('0x26')]=qs[_0x247992('0x13')](_0x4e9099['query'][_0x247992('0x13')]),_0x2c9d96[_0x247992('0x11')]=qs[_0x247992('0x25')](_['pick'](_0x4e9099[_0x247992('0x1d')],_0x5cacf5['filters']),_0x14ca68);_0x4e9099[_0x247992('0x1d')][_0x247992('0x2c')]&&(_0x2c9d96[_0x247992('0x11')]=_[_0x247992('0x8')](_0x2c9d96[_0x247992('0x11')],{[Op['or']]:_[_0x247992('0x5')](_0x14ca68,function(_0x41fac2){const _0x36ac16=_0x247992;if(_0x41fac2[_0x36ac16('0x30')]!==_0x36ac16('0x9')){const _0x3bc727={};return _0x3bc727[_0x41fac2[_0x36ac16('0x7')]]={[Op[_0x36ac16('0x2f')]]:'%'+_0x4e9099[_0x36ac16('0x1d')]['filter']+'%'},_0x3bc727;}})}));_0x2c9d96=_[_0x247992('0x8')]({},_0x2c9d96,_0x4e9099[_0x247992('0x1a')]);const _0x5a8b8f={'where':_0x2c9d96[_0x247992('0x11')]};return db[_0x247992('0x24')]['count'](_0x5a8b8f)[_0x247992('0x29')](function(_0x2f895f){const _0x5e5b8b=_0x247992;return _0x7b3b40[_0x5e5b8b('0x2a')]=_0x2f895f,_0x4e9099[_0x5e5b8b('0x1d')]['includeAll']&&(_0x2c9d96[_0x5e5b8b('0x3')]=[{'all':!![]}]),db[_0x5e5b8b('0x24')][_0x5e5b8b('0x6')](_0x2c9d96);})[_0x247992('0x29')](function(_0x4d80f7){const _0x10bb58=_0x247992;return _0x7b3b40[_0x10bb58('0x17')]=_0x4d80f7,_0x7b3b40;})[_0x247992('0x29')](respondWithFilteredResult(_0x411614,_0x2c9d96))[_0x247992('0x2b')](handleError(_0x411614,null));},exports[_0x3487b7('0x2')]=function(_0x2d2984,_0x4ff131){const _0x2f18af=_0x3487b7;let _0x318d88={'raw':!![],'where':{'id':_0x2d2984['params']['id']}};const _0x32911e={};return _0x32911e[_0x2f18af('0x1b')]=_[_0x2f18af('0x10')](db[_0x2f18af('0x24')]['rawAttributes']),_0x32911e[_0x2f18af('0x1d')]=_[_0x2f18af('0x10')](_0x2d2984['query']),_0x32911e['filters']=_['intersection'](_0x32911e['model'],_0x32911e[_0x2f18af('0x1d')]),_0x318d88[_0x2f18af('0x18')]=_[_0x2f18af('0xc')](_0x32911e[_0x2f18af('0x1b')],qs['fields'](_0x2d2984['query'][_0x2f18af('0xa')])),_0x318d88[_0x2f18af('0x18')]=_0x318d88[_0x2f18af('0x18')][_0x2f18af('0x1e')]?_0x318d88[_0x2f18af('0x18')]:_0x32911e[_0x2f18af('0x1b')],_0x2d2984[_0x2f18af('0x1d')][_0x2f18af('0x28')]&&(_0x318d88[_0x2f18af('0x3')]=[{'all':!![]}]),_0x318d88=_[_0x2f18af('0x8')]({},_0x318d88,_0x2d2984[_0x2f18af('0x1a')]),db[_0x2f18af('0x24')]['findOne'](_0x318d88)[_0x2f18af('0x29')](handleEntityNotFound(_0x4ff131,null))['then'](respondWithResult(_0x4ff131,null))[_0x2f18af('0x2b')](handleError(_0x4ff131,null));},exports['create']=function(_0x318d23,_0x2f813e){const _0x26d500=_0x3487b7;return db['SmsQueueReport'][_0x26d500('0x27')](_0x318d23[_0x26d500('0xb')],{})['then'](respondWithResult(_0x2f813e,0xc9))[_0x26d500('0x2b')](handleError(_0x2f813e,null));},exports[_0x3487b7('0x4')]=function(_0x1af128,_0x2e1e6b){const _0x710a6d=_0x3487b7;return _0x1af128['body']['id']&&delete _0x1af128['body']['id'],db[_0x710a6d('0x24')][_0x710a6d('0x19')]({'where':{'id':_0x1af128[_0x710a6d('0x16')]['id']}})[_0x710a6d('0x29')](handleEntityNotFound(_0x2e1e6b,null))[_0x710a6d('0x29')](saveUpdates(_0x1af128[_0x710a6d('0xb')],null))[_0x710a6d('0x29')](respondWithResult(_0x2e1e6b,null))[_0x710a6d('0x2b')](handleError(_0x2e1e6b,null));},exports[_0x3487b7('0x1')]=function(_0x43290a,_0x1fce7d){const _0x570f4d=_0x3487b7;return db[_0x570f4d('0x24')]['findOne']({'where':{'id':_0x43290a['params']['id']}})[_0x570f4d('0x29')](handleEntityNotFound(_0x1fce7d,null))['then'](removeEntity(_0x1fce7d,null))[_0x570f4d('0x2b')](handleError(_0x1fce7d,null));},exports['describe']=function(_0x323f3f,_0xc0c9a){const _0x386c3d=_0x3487b7;return db[_0x386c3d('0x24')]['describe']()[_0x386c3d('0x29')](respondWithResult(_0xc0c9a,null))[_0x386c3d('0x2b')](handleError(_0xc0c9a,null));}; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.model.js b/server/api/smsQueueReport/smsQueueReport.model.js index ca1d5f7..ff93d74 100644 --- a/server/api/smsQueueReport/smsQueueReport.model.js +++ b/server/api/smsQueueReport/smsQueueReport.model.js @@ -1 +1 @@ -const a575_0x3543=['uniqueid','report_sms_queue','exports','SmsQueueReport'];(function(_0x53740b,_0x354374){const _0x50fd83=function(_0x41e041){while(--_0x41e041){_0x53740b['push'](_0x53740b['shift']());}};_0x50fd83(++_0x354374);}(a575_0x3543,0x113));const a575_0x50fd=function(_0x53740b,_0x354374){_0x53740b=_0x53740b-0x0;let _0x50fd83=a575_0x3543[_0x53740b];return _0x50fd83;};const _0x4b4f95=a575_0x50fd;'use strict';const attributes=require('./smsQueueReport.attributes');module[_0x4b4f95('0x3')]=function(_0x41e041){const _0x1586b3=_0x4b4f95,_0x2de169=_0x41e041['define'](_0x1586b3('0x0'),attributes,{'tableName':_0x1586b3('0x2'),'paranoid':![],'indexes':[{'name':_0x1586b3('0x1'),'fields':['uniqueid']}],'timestamps':!![]});return _0x2de169;}; \ No newline at end of file +const a575_0x6eee=['uniqueid','SmsQueueReport','define','./smsQueueReport.attributes'];(function(_0x467357,_0x6eee8b){const _0x5a64fb=function(_0x54f79d){while(--_0x54f79d){_0x467357['push'](_0x467357['shift']());}};_0x5a64fb(++_0x6eee8b);}(a575_0x6eee,0xf3));const a575_0x5a64=function(_0x467357,_0x6eee8b){_0x467357=_0x467357-0x0;let _0x5a64fb=a575_0x6eee[_0x467357];return _0x5a64fb;};const _0x1d0e79=a575_0x5a64;'use strict';const attributes=require(_0x1d0e79('0x0'));module['exports']=function(_0x54f79d){const _0x4308ce=_0x1d0e79,_0x299e48=_0x54f79d[_0x4308ce('0x3')](_0x4308ce('0x2'),attributes,{'tableName':'report_sms_queue','paranoid':![],'indexes':[{'name':_0x4308ce('0x1'),'fields':['uniqueid']}],'timestamps':!![]});return _0x299e48;}; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.rpc.js b/server/api/smsQueueReport/smsQueueReport.rpc.js index d20e463..91670ba 100644 --- a/server/api/smsQueueReport/smsQueueReport.rpc.js +++ b/server/api/smsQueueReport/smsQueueReport.rpc.js @@ -1 +1 @@ -const a576_0x5001=['debug','attributes','then','CreateSmsQueueReport','stringify','info','catch','message','UpdateSmsQueueReport','error','SmsQueueReport','body','update','options'];(function(_0x2f8711,_0x500148){const _0x320cd8=function(_0xf69d2c){while(--_0xf69d2c){_0x2f8711['push'](_0x2f8711['shift']());}};_0x320cd8(++_0x500148);}(a576_0x5001,0x1a1));const a576_0x320c=function(_0x2f8711,_0x500148){_0x2f8711=_0x2f8711-0x0;let _0x320cd8=a576_0x5001[_0x2f8711];return _0x320cd8;};const _0x16cd49=a576_0x320c;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')('rpc');exports['CreateSmsQueueReport']=function(_0xf69d2c){const _0x103a6f=this;return new Promise(function(_0x6c9bdf,_0x17fa2c){const _0x4dc727=a576_0x320c;return db[_0x4dc727('0xd')]['create'](_0xf69d2c[_0x4dc727('0x0')],{'raw':_0xf69d2c[_0x4dc727('0x2')]?_0xf69d2c[_0x4dc727('0x2')]['raw']===undefined?!![]:![]:!![]})[_0x4dc727('0x5')](function(_0x3ec2e6){const _0xd51189=_0x4dc727;logger[_0xd51189('0x8')](_0xd51189('0x6'),_0xf69d2c),logger[_0xd51189('0x3')](_0xd51189('0x6'),_0xf69d2c,JSON[_0xd51189('0x7')](_0x3ec2e6)),_0x6c9bdf(_0x3ec2e6);})[_0x4dc727('0x9')](function(_0x9c8ffe){const _0x26d4cf=_0x4dc727;logger[_0x26d4cf('0xc')](_0x26d4cf('0x6'),_0x9c8ffe[_0x26d4cf('0xa')],_0xf69d2c),_0x17fa2c(_0x103a6f[_0x26d4cf('0xc')](0x1f4,_0x9c8ffe[_0x26d4cf('0xa')]));});});},exports[_0x16cd49('0xb')]=function(_0x10b919){const _0xcc8c25=this;return new Promise(function(_0x2c1c79,_0xc2b6b5){const _0xb048cc=a576_0x320c;return db[_0xb048cc('0xd')][_0xb048cc('0x1')](_0x10b919[_0xb048cc('0x0')],{'raw':_0x10b919['options']?_0x10b919[_0xb048cc('0x2')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x10b919['options']?_0x10b919['options']['where']||null:null,'attributes':_0x10b919[_0xb048cc('0x2')]?_0x10b919[_0xb048cc('0x2')][_0xb048cc('0x4')]||null:null,'limit':_0x10b919[_0xb048cc('0x2')]?_0x10b919['options']['limit']||null:null})[_0xb048cc('0x5')](function(_0x4eec9a){const _0x578f26=_0xb048cc;logger['info'](_0x578f26('0xb'),_0x10b919),logger['debug'](_0x578f26('0xb'),_0x10b919,JSON[_0x578f26('0x7')](_0x4eec9a)),_0x2c1c79(_0x4eec9a);})[_0xb048cc('0x9')](function(_0x1bcd02){const _0x282386=_0xb048cc;logger['error'](_0x282386('0xb'),_0x1bcd02[_0x282386('0xa')],_0x10b919),_0xc2b6b5(_0xcc8c25[_0x282386('0xc')](0x1f4,_0x1bcd02['message']));});});}; \ No newline at end of file +const a576_0x2f7b=['catch','info','create','rpc','where','stringify','SmsQueueReport','update','../../config/logger','attributes','body','UpdateSmsQueueReport','error','then','message','CreateSmsQueueReport','raw','options','../../mysqldb','debug'];(function(_0x5f4526,_0x2f7bc2){const _0x84b97b=function(_0x519583){while(--_0x519583){_0x5f4526['push'](_0x5f4526['shift']());}};_0x84b97b(++_0x2f7bc2);}(a576_0x2f7b,0x1a5));const a576_0x84b9=function(_0x5f4526,_0x2f7bc2){_0x5f4526=_0x5f4526-0x0;let _0x84b97b=a576_0x2f7b[_0x5f4526];return _0x84b97b;};const _0x471a9d=a576_0x84b9;'use strict';const db=require(_0x471a9d('0x11'))['db'],logger=require(_0x471a9d('0x7'))(_0x471a9d('0x2'));exports[_0x471a9d('0xe')]=function(_0x519583){const _0x3a8972=this;return new Promise(function(_0x577b33,_0x410f9a){const _0x524912=a576_0x84b9;return db[_0x524912('0x5')][_0x524912('0x1')](_0x519583[_0x524912('0x9')],{'raw':_0x519583[_0x524912('0x10')]?_0x519583['options']['raw']===undefined?!![]:![]:!![]})[_0x524912('0xc')](function(_0x1674b1){const _0x26d071=_0x524912;logger['info'](_0x26d071('0xe'),_0x519583),logger[_0x26d071('0x12')](_0x26d071('0xe'),_0x519583,JSON[_0x26d071('0x4')](_0x1674b1)),_0x577b33(_0x1674b1);})['catch'](function(_0x5bdd28){const _0x134834=_0x524912;logger[_0x134834('0xb')](_0x134834('0xe'),_0x5bdd28[_0x134834('0xd')],_0x519583),_0x410f9a(_0x3a8972[_0x134834('0xb')](0x1f4,_0x5bdd28[_0x134834('0xd')]));});});},exports[_0x471a9d('0xa')]=function(_0x19c12b){const _0x587614=this;return new Promise(function(_0x30f513,_0x24c1e2){const _0x170fcc=a576_0x84b9;return db['SmsQueueReport'][_0x170fcc('0x6')](_0x19c12b[_0x170fcc('0x9')],{'raw':_0x19c12b['options']?_0x19c12b['options'][_0x170fcc('0xf')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x19c12b[_0x170fcc('0x10')]?_0x19c12b[_0x170fcc('0x10')][_0x170fcc('0x3')]||null:null,'attributes':_0x19c12b[_0x170fcc('0x10')]?_0x19c12b['options'][_0x170fcc('0x8')]||null:null,'limit':_0x19c12b[_0x170fcc('0x10')]?_0x19c12b[_0x170fcc('0x10')]['limit']||null:null})['then'](function(_0x4827bf){const _0x177e77=_0x170fcc;logger[_0x177e77('0x0')]('UpdateSmsQueueReport',_0x19c12b),logger[_0x177e77('0x12')](_0x177e77('0xa'),_0x19c12b,JSON[_0x177e77('0x4')](_0x4827bf)),_0x30f513(_0x4827bf);})[_0x170fcc('0x13')](function(_0x330a1a){const _0x1f6ff7=_0x170fcc;logger[_0x1f6ff7('0xb')](_0x1f6ff7('0xa'),_0x330a1a[_0x1f6ff7('0xd')],_0x19c12b),_0x24c1e2(_0x587614[_0x1f6ff7('0xb')](0x1f4,_0x330a1a[_0x1f6ff7('0xd')]));});});}; \ No newline at end of file diff --git a/server/api/smsTransferReport/index.js b/server/api/smsTransferReport/index.js index 291594b..b93869b 100644 --- a/server/api/smsTransferReport/index.js +++ b/server/api/smsTransferReport/index.js @@ -1 +1 @@ -const a577_0x5aa1=['express','get','post','exports','delete','Router','isAuthenticated','put','../../components/auth/service','/describe','index','/:id','show'];(function(_0x3ba128,_0x5aa123){const _0x234200=function(_0x27be58){while(--_0x27be58){_0x3ba128['push'](_0x3ba128['shift']());}};_0x234200(++_0x5aa123);}(a577_0x5aa1,0x7b));const a577_0x2342=function(_0x3ba128,_0x5aa123){_0x3ba128=_0x3ba128-0x0;let _0x234200=a577_0x5aa1[_0x3ba128];return _0x234200;};const _0x233daa=a577_0x2342;'use strict';const express=require(_0x233daa('0x7')),router=express[_0x233daa('0xc')](),auth=require(_0x233daa('0x2')),controller=require('./smsTransferReport.controller');router[_0x233daa('0x8')]('/',auth['isAuthenticated'](),controller[_0x233daa('0x4')]),router[_0x233daa('0x8')](_0x233daa('0x3'),auth[_0x233daa('0x0')](),controller['describe']),router['get'](_0x233daa('0x5'),auth[_0x233daa('0x0')](),controller[_0x233daa('0x6')]),router[_0x233daa('0x9')]('/',auth['isAuthenticated'](),controller['create']),router[_0x233daa('0x1')](_0x233daa('0x5'),auth[_0x233daa('0x0')](),controller['update']),router[_0x233daa('0xb')](_0x233daa('0x5'),auth[_0x233daa('0x0')](),controller['destroy']),module[_0x233daa('0xa')]=router; \ No newline at end of file +const a577_0x2520=['create','post','index','isAuthenticated','exports','destroy','show','/:id','../../components/auth/service','Router','./smsTransferReport.controller','put','update','get','describe'];(function(_0x46ca07,_0x25202f){const _0x245d9f=function(_0x4909bf){while(--_0x4909bf){_0x46ca07['push'](_0x46ca07['shift']());}};_0x245d9f(++_0x25202f);}(a577_0x2520,0x1eb));const a577_0x245d=function(_0x46ca07,_0x25202f){_0x46ca07=_0x46ca07-0x0;let _0x245d9f=a577_0x2520[_0x46ca07];return _0x245d9f;};const _0x249705=a577_0x245d;'use strict';const express=require('express'),router=express[_0x249705('0xd')](),auth=require(_0x249705('0xc')),controller=require(_0x249705('0xe'));router[_0x249705('0x2')]('/',auth[_0x249705('0x7')](),controller[_0x249705('0x6')]),router[_0x249705('0x2')]('/describe',auth[_0x249705('0x7')](),controller[_0x249705('0x3')]),router[_0x249705('0x2')](_0x249705('0xb'),auth[_0x249705('0x7')](),controller[_0x249705('0xa')]),router[_0x249705('0x5')]('/',auth[_0x249705('0x7')](),controller[_0x249705('0x4')]),router[_0x249705('0x0')](_0x249705('0xb'),auth[_0x249705('0x7')](),controller[_0x249705('0x1')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x249705('0x9')]),module[_0x249705('0x8')]=router; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.attributes.js b/server/api/smsTransferReport/smsTransferReport.attributes.js index 6c864b3..0aed06e 100644 --- a/server/api/smsTransferReport/smsTransferReport.attributes.js +++ b/server/api/smsTransferReport/smsTransferReport.attributes.js @@ -1 +1 @@ -const a578_0x2409=['STRING','ENUM','agent','account','exports','DATE','queue'];(function(_0x23bbfc,_0x240922){const _0x20aadb=function(_0x507efb){while(--_0x507efb){_0x23bbfc['push'](_0x23bbfc['shift']());}};_0x20aadb(++_0x240922);}(a578_0x2409,0x18c));const a578_0x20aa=function(_0x23bbfc,_0x240922){_0x23bbfc=_0x23bbfc-0x0;let _0x20aadb=a578_0x2409[_0x23bbfc];return _0x20aadb;};const _0xe2eac1=a578_0x20aa;'use strict';const Sequelize=require('sequelize');module[_0xe2eac1('0x0')]={'uniqueid':{'type':Sequelize[_0xe2eac1('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0xe2eac1('0x4')](_0xe2eac1('0x6'),_0xe2eac1('0x5'),'queue'),'allowNull':![],'defaultValue':_0xe2eac1('0x2')},'transferredAt':{'type':Sequelize[_0xe2eac1('0x1')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a578_0x24f9=['exports','sequelize','NOW','STRING','queue','account','ENUM','DATE','agent'];(function(_0x1b42b5,_0x24f95e){const _0x224e80=function(_0x365e4c){while(--_0x365e4c){_0x1b42b5['push'](_0x1b42b5['shift']());}};_0x224e80(++_0x24f95e);}(a578_0x24f9,0x134));const a578_0x224e=function(_0x1b42b5,_0x24f95e){_0x1b42b5=_0x1b42b5-0x0;let _0x224e80=a578_0x24f9[_0x1b42b5];return _0x224e80;};const _0x1755e2=a578_0x224e;'use strict';const Sequelize=require(_0x1755e2('0x8'));module[_0x1755e2('0x7')]={'uniqueid':{'type':Sequelize[_0x1755e2('0x1')],'allowNull':![]},'type':{'type':Sequelize[_0x1755e2('0x4')](_0x1755e2('0x3'),_0x1755e2('0x6'),_0x1755e2('0x2')),'allowNull':![],'defaultValue':_0x1755e2('0x2')},'transferredAt':{'type':Sequelize[_0x1755e2('0x5')],'allowNull':![],'defaultValue':Sequelize[_0x1755e2('0x0')]}}; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.controller.js b/server/api/smsTransferReport/smsTransferReport.controller.js index 48a08cf..7ed1883 100644 --- a/server/api/smsTransferReport/smsTransferReport.controller.js +++ b/server/api/smsTransferReport/smsTransferReport.controller.js @@ -1 +1 @@ -const a579_0x15be=['options','query','destroy','count','lodash','then','limit','like','index','merge','map','fieldName','filter','../../mysqldb','VIRTUAL','stack','body','offset','catch','where','model','includeAll','keys','SmsTransferReport','create','../../components/parsers/qs','name','undefined','fields','json','rawAttributes','api','key','sort','include','update','intersection','Content-Range','sendStatus','findOne','length','sequelize','rows','attributes','describe','pick','filters','../../config/logger','status'];(function(_0xab923b,_0x15be7e){const _0x2c83e4=function(_0x50a5c4){while(--_0x50a5c4){_0xab923b['push'](_0xab923b['shift']());}};_0x2c83e4(++_0x15be7e);}(a579_0x15be,0x10f));const a579_0x2c83=function(_0xab923b,_0x15be7e){_0xab923b=_0xab923b-0x0;let _0x2c83e4=a579_0x15be[_0xab923b];return _0x2c83e4;};const _0x3c5f57=a579_0x2c83;'use strict';const _=require(_0x3c5f57('0x1b')),qs=require(_0x3c5f57('0x30')),logger=require(_0x3c5f57('0x15'))(_0x3c5f57('0x5')),db=require(_0x3c5f57('0x24'))['db'],{Op}=require(_0x3c5f57('0xf'));function respondWithResult(_0x50a5c4,_0x212c63){return _0x212c63=_0x212c63||0xc8,function(_0x240132){const _0x543cf7=a579_0x2c83;if(_0x240132)return _0x50a5c4[_0x543cf7('0x16')](_0x212c63)[_0x543cf7('0x3')](_0x240132);};}function respondWithFilteredResult(_0x49862a,_0x6d56ff){return function(_0x2e6394){const _0x42e073=a579_0x2c83;if(_0x2e6394){const _0x1a3fbd=_0x2e6394['count'],_0x24b8a0=_0x6d56ff[_0x42e073('0x28')];let _0x4f851d=_0x6d56ff[_0x42e073('0x28')]+_0x6d56ff[_0x42e073('0x1d')],_0x446977;return _0x4f851d>=_0x1a3fbd?(_0x4f851d=_0x1a3fbd,_0x446977=0xc8):_0x446977=0xce,_0x49862a[_0x42e073('0x16')](_0x446977),_0x49862a['set'](_0x42e073('0xb'),_0x24b8a0+'-'+_0x4f851d+'/'+_0x1a3fbd)[_0x42e073('0x3')](_0x2e6394);}return null;};}function saveUpdates(_0x2a86f4){return function(_0x456d28){const _0xcdefad=a579_0x2c83;if(_0x456d28)return _0x456d28[_0xcdefad('0x9')](_0x2a86f4)[_0xcdefad('0x1c')](function(_0x5b821d){return _0x5b821d;});return null;};}function removeEntity(_0x3df603){return function(_0x410c22){const _0x4e09e6=a579_0x2c83;if(_0x410c22)return _0x410c22[_0x4e09e6('0x19')]()['then'](function(){const _0x215220=_0x4e09e6;_0x3df603[_0x215220('0x16')](0xcc)['end']();});};}function handleEntityNotFound(_0x483be5){return function(_0x41de54){const _0x33644d=a579_0x2c83;return!_0x41de54&&_0x483be5[_0x33644d('0xc')](0x194),_0x41de54;};}function handleError(_0x348006,_0x240160){return _0x240160=_0x240160||0x1f4,function(_0x3d0242){const _0x50f4c7=a579_0x2c83;logger['error'](_0x3d0242[_0x50f4c7('0x26')]),_0x3d0242[_0x50f4c7('0x0')]&&delete _0x3d0242[_0x50f4c7('0x0')],_0x348006['status'](_0x240160)['send'](_0x3d0242);};}exports[_0x3c5f57('0x1f')]=function(_0x40857c,_0x781c6e){const _0x1556cf=_0x3c5f57;let _0x3be787={};const _0x3ddc16={},_0x522ba6={'count':0x0,'rows':[]},_0x2efbc6=_[_0x1556cf('0x21')](db[_0x1556cf('0x2e')][_0x1556cf('0x4')],function(_0xe83a8b){const _0x1a4df6=_0x1556cf;return{'name':_0xe83a8b[_0x1a4df6('0x22')],'type':_0xe83a8b['type'][_0x1a4df6('0x6')]};});_0x3ddc16['model']=_[_0x1556cf('0x21')](_0x2efbc6,_0x1556cf('0x0')),_0x3ddc16[_0x1556cf('0x18')]=_[_0x1556cf('0x2d')](_0x40857c[_0x1556cf('0x18')]),_0x3ddc16[_0x1556cf('0x14')]=_[_0x1556cf('0xa')](_0x3ddc16[_0x1556cf('0x2b')],_0x3ddc16[_0x1556cf('0x18')]),_0x3be787['attributes']=_[_0x1556cf('0xa')](_0x3ddc16[_0x1556cf('0x2b')],qs[_0x1556cf('0x2')](_0x40857c['query'][_0x1556cf('0x2')])),_0x3be787[_0x1556cf('0x11')]=_0x3be787['attributes'][_0x1556cf('0xe')]?_0x3be787['attributes']:_0x3ddc16['model'];typeof _0x40857c[_0x1556cf('0x18')]['nolimit']===_0x1556cf('0x1')&&(_0x3be787[_0x1556cf('0x1d')]=qs['limit'](_0x40857c['query'][_0x1556cf('0x1d')]),_0x3be787[_0x1556cf('0x28')]=qs['offset'](_0x40857c[_0x1556cf('0x18')][_0x1556cf('0x28')]));_0x3be787['order']=qs[_0x1556cf('0x7')](_0x40857c[_0x1556cf('0x18')][_0x1556cf('0x7')]),_0x3be787[_0x1556cf('0x2a')]=qs['filters'](_[_0x1556cf('0x13')](_0x40857c[_0x1556cf('0x18')],_0x3ddc16['filters']),_0x2efbc6);_0x40857c[_0x1556cf('0x18')][_0x1556cf('0x23')]&&(_0x3be787[_0x1556cf('0x2a')]=_[_0x1556cf('0x20')](_0x3be787[_0x1556cf('0x2a')],{[Op['or']]:_[_0x1556cf('0x21')](_0x2efbc6,function(_0x278d2a){const _0x44853e=_0x1556cf;if(_0x278d2a['type']!==_0x44853e('0x25')){const _0x45f3c4={};return _0x45f3c4[_0x278d2a['name']]={[Op[_0x44853e('0x1e')]]:'%'+_0x40857c[_0x44853e('0x18')][_0x44853e('0x23')]+'%'},_0x45f3c4;}})}));_0x3be787=_[_0x1556cf('0x20')]({},_0x3be787,_0x40857c['options']);const _0x3032a3={'where':_0x3be787[_0x1556cf('0x2a')]};return db[_0x1556cf('0x2e')][_0x1556cf('0x1a')](_0x3032a3)[_0x1556cf('0x1c')](function(_0x2e16ce){const _0x49f253=_0x1556cf;return _0x522ba6[_0x49f253('0x1a')]=_0x2e16ce,_0x40857c[_0x49f253('0x18')][_0x49f253('0x2c')]&&(_0x3be787['include']=[{'all':!![]}]),db[_0x49f253('0x2e')]['findAll'](_0x3be787);})[_0x1556cf('0x1c')](function(_0x7d1bc8){const _0x4c8f12=_0x1556cf;return _0x522ba6[_0x4c8f12('0x10')]=_0x7d1bc8,_0x522ba6;})[_0x1556cf('0x1c')](respondWithFilteredResult(_0x781c6e,_0x3be787))[_0x1556cf('0x29')](handleError(_0x781c6e,null));},exports['show']=function(_0x19ebaa,_0x30bf30){const _0x151279=_0x3c5f57;let _0x52d2af={'raw':!![],'where':{'id':_0x19ebaa['params']['id']}};const _0x48f777={};return _0x48f777[_0x151279('0x2b')]=_[_0x151279('0x2d')](db[_0x151279('0x2e')][_0x151279('0x4')]),_0x48f777['query']=_[_0x151279('0x2d')](_0x19ebaa[_0x151279('0x18')]),_0x48f777[_0x151279('0x14')]=_[_0x151279('0xa')](_0x48f777[_0x151279('0x2b')],_0x48f777[_0x151279('0x18')]),_0x52d2af[_0x151279('0x11')]=_[_0x151279('0xa')](_0x48f777['model'],qs[_0x151279('0x2')](_0x19ebaa[_0x151279('0x18')][_0x151279('0x2')])),_0x52d2af[_0x151279('0x11')]=_0x52d2af[_0x151279('0x11')][_0x151279('0xe')]?_0x52d2af[_0x151279('0x11')]:_0x48f777['model'],_0x19ebaa[_0x151279('0x18')][_0x151279('0x2c')]&&(_0x52d2af[_0x151279('0x8')]=[{'all':!![]}]),_0x52d2af=_[_0x151279('0x20')]({},_0x52d2af,_0x19ebaa[_0x151279('0x17')]),db[_0x151279('0x2e')]['findOne'](_0x52d2af)[_0x151279('0x1c')](handleEntityNotFound(_0x30bf30,null))[_0x151279('0x1c')](respondWithResult(_0x30bf30,null))['catch'](handleError(_0x30bf30,null));},exports[_0x3c5f57('0x2f')]=function(_0x135930,_0x325b1a){const _0x323a5d=_0x3c5f57;return db[_0x323a5d('0x2e')][_0x323a5d('0x2f')](_0x135930['body'],{})['then'](respondWithResult(_0x325b1a,0xc9))[_0x323a5d('0x29')](handleError(_0x325b1a,null));},exports[_0x3c5f57('0x9')]=function(_0x5e8101,_0x622f2e){const _0xc79c83=_0x3c5f57;return _0x5e8101[_0xc79c83('0x27')]['id']&&delete _0x5e8101[_0xc79c83('0x27')]['id'],db[_0xc79c83('0x2e')][_0xc79c83('0xd')]({'where':{'id':_0x5e8101['params']['id']}})[_0xc79c83('0x1c')](handleEntityNotFound(_0x622f2e,null))['then'](saveUpdates(_0x5e8101[_0xc79c83('0x27')],null))[_0xc79c83('0x1c')](respondWithResult(_0x622f2e,null))[_0xc79c83('0x29')](handleError(_0x622f2e,null));},exports['destroy']=function(_0x22eff2,_0x23b9a8){const _0x160f3b=_0x3c5f57;return db[_0x160f3b('0x2e')]['findOne']({'where':{'id':_0x22eff2['params']['id']}})[_0x160f3b('0x1c')](handleEntityNotFound(_0x23b9a8,null))[_0x160f3b('0x1c')](removeEntity(_0x23b9a8,null))['catch'](handleError(_0x23b9a8,null));},exports['describe']=function(_0x4263c1,_0x560174){const _0xc4b7a1=_0x3c5f57;return db[_0xc4b7a1('0x2e')][_0xc4b7a1('0x12')]()[_0xc4b7a1('0x1c')](respondWithResult(_0x560174,null))[_0xc4b7a1('0x29')](handleError(_0x560174,null));}; \ No newline at end of file +const a579_0x3cb0=['catch','rawAttributes','Content-Range','update','filter','nolimit','map','status','sendStatus','body','offset','model','undefined','set','include','key','../../config/logger','merge','type','findOne','options','sort','findAll','destroy','fieldName','then','error','sequelize','intersection','query','index','pick','end','count','fields','where','params','SmsTransferReport','keys','VIRTUAL','name','length','json','limit','like','filters','attributes','stack'];(function(_0x4c2b0a,_0x3cb0c6){const _0x2da04d=function(_0x34d2a1){while(--_0x34d2a1){_0x4c2b0a['push'](_0x4c2b0a['shift']());}};_0x2da04d(++_0x3cb0c6);}(a579_0x3cb0,0x142));const a579_0x2da0=function(_0x4c2b0a,_0x3cb0c6){_0x4c2b0a=_0x4c2b0a-0x0;let _0x2da04d=a579_0x3cb0[_0x4c2b0a];return _0x2da04d;};const _0x21f02d=a579_0x2da0;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x21f02d('0x1e'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x21f02d('0x29'));function respondWithResult(_0x34d2a1,_0x209d87){return _0x209d87=_0x209d87||0xc8,function(_0x4bd76d){const _0x3b4722=a579_0x2da0;if(_0x4bd76d)return _0x34d2a1[_0x3b4722('0x15')](_0x209d87)[_0x3b4722('0x8')](_0x4bd76d);};}function respondWithFilteredResult(_0x1237fc,_0x265219){return function(_0x1c86b2){const _0x499205=a579_0x2da0;if(_0x1c86b2){const _0xe4b0=_0x1c86b2[_0x499205('0x2f')],_0x427295=_0x265219[_0x499205('0x18')];let _0xcd7e1b=_0x265219['offset']+_0x265219['limit'],_0x454eff;return _0xcd7e1b>=_0xe4b0?(_0xcd7e1b=_0xe4b0,_0x454eff=0xc8):_0x454eff=0xce,_0x1237fc[_0x499205('0x15')](_0x454eff),_0x1237fc[_0x499205('0x1b')](_0x499205('0x10'),_0x427295+'-'+_0xcd7e1b+'/'+_0xe4b0)[_0x499205('0x8')](_0x1c86b2);}return null;};}function saveUpdates(_0x5ef3e5){return function(_0x36d260){const _0x48eee0=a579_0x2da0;if(_0x36d260)return _0x36d260[_0x48eee0('0x11')](_0x5ef3e5)[_0x48eee0('0x27')](function(_0x24e2a0){return _0x24e2a0;});return null;};}function removeEntity(_0x454b0b){return function(_0x137474){if(_0x137474)return _0x137474['destroy']()['then'](function(){const _0x2eea73=a579_0x2da0;_0x454b0b['status'](0xcc)[_0x2eea73('0x2e')]();});};}function handleEntityNotFound(_0x12c55b){return function(_0x457aa2){const _0x10e871=a579_0x2da0;return!_0x457aa2&&_0x12c55b[_0x10e871('0x16')](0x194),_0x457aa2;};}function handleError(_0x581c3b,_0x4b8657){return _0x4b8657=_0x4b8657||0x1f4,function(_0x1bb43d){const _0x24fca0=a579_0x2da0;logger[_0x24fca0('0x28')](_0x1bb43d[_0x24fca0('0xd')]),_0x1bb43d['name']&&delete _0x1bb43d[_0x24fca0('0x6')],_0x581c3b[_0x24fca0('0x15')](_0x4b8657)['send'](_0x1bb43d);};}exports[_0x21f02d('0x2c')]=function(_0x4d1ad6,_0x28158a){const _0x11d9a0=_0x21f02d;let _0x1d4feb={};const _0x5bace7={},_0x523e9f={'count':0x0,'rows':[]},_0x1b35b0=_[_0x11d9a0('0x14')](db['SmsTransferReport'][_0x11d9a0('0xf')],function(_0x17d431){const _0x5571e0=_0x11d9a0;return{'name':_0x17d431[_0x5571e0('0x26')],'type':_0x17d431['type'][_0x5571e0('0x1d')]};});_0x5bace7[_0x11d9a0('0x19')]=_[_0x11d9a0('0x14')](_0x1b35b0,_0x11d9a0('0x6')),_0x5bace7['query']=_['keys'](_0x4d1ad6[_0x11d9a0('0x2b')]),_0x5bace7[_0x11d9a0('0xb')]=_['intersection'](_0x5bace7[_0x11d9a0('0x19')],_0x5bace7[_0x11d9a0('0x2b')]),_0x1d4feb[_0x11d9a0('0xc')]=_[_0x11d9a0('0x2a')](_0x5bace7['model'],qs[_0x11d9a0('0x0')](_0x4d1ad6[_0x11d9a0('0x2b')][_0x11d9a0('0x0')])),_0x1d4feb[_0x11d9a0('0xc')]=_0x1d4feb[_0x11d9a0('0xc')][_0x11d9a0('0x7')]?_0x1d4feb[_0x11d9a0('0xc')]:_0x5bace7[_0x11d9a0('0x19')];typeof _0x4d1ad6['query'][_0x11d9a0('0x13')]===_0x11d9a0('0x1a')&&(_0x1d4feb[_0x11d9a0('0x9')]=qs[_0x11d9a0('0x9')](_0x4d1ad6[_0x11d9a0('0x2b')][_0x11d9a0('0x9')]),_0x1d4feb[_0x11d9a0('0x18')]=qs[_0x11d9a0('0x18')](_0x4d1ad6[_0x11d9a0('0x2b')][_0x11d9a0('0x18')]));_0x1d4feb['order']=qs['sort'](_0x4d1ad6[_0x11d9a0('0x2b')][_0x11d9a0('0x23')]),_0x1d4feb['where']=qs[_0x11d9a0('0xb')](_[_0x11d9a0('0x2d')](_0x4d1ad6[_0x11d9a0('0x2b')],_0x5bace7['filters']),_0x1b35b0);_0x4d1ad6['query'][_0x11d9a0('0x12')]&&(_0x1d4feb['where']=_[_0x11d9a0('0x1f')](_0x1d4feb[_0x11d9a0('0x1')],{[Op['or']]:_[_0x11d9a0('0x14')](_0x1b35b0,function(_0x511c1d){const _0x44a3aa=_0x11d9a0;if(_0x511c1d[_0x44a3aa('0x20')]!==_0x44a3aa('0x5')){const _0x36afe6={};return _0x36afe6[_0x511c1d[_0x44a3aa('0x6')]]={[Op[_0x44a3aa('0xa')]]:'%'+_0x4d1ad6[_0x44a3aa('0x2b')][_0x44a3aa('0x12')]+'%'},_0x36afe6;}})}));_0x1d4feb=_[_0x11d9a0('0x1f')]({},_0x1d4feb,_0x4d1ad6[_0x11d9a0('0x22')]);const _0x12138e={'where':_0x1d4feb[_0x11d9a0('0x1')]};return db[_0x11d9a0('0x3')]['count'](_0x12138e)[_0x11d9a0('0x27')](function(_0x13ab68){const _0x5cbb05=_0x11d9a0;return _0x523e9f[_0x5cbb05('0x2f')]=_0x13ab68,_0x4d1ad6[_0x5cbb05('0x2b')]['includeAll']&&(_0x1d4feb[_0x5cbb05('0x1c')]=[{'all':!![]}]),db[_0x5cbb05('0x3')][_0x5cbb05('0x24')](_0x1d4feb);})[_0x11d9a0('0x27')](function(_0x438d7b){return _0x523e9f['rows']=_0x438d7b,_0x523e9f;})[_0x11d9a0('0x27')](respondWithFilteredResult(_0x28158a,_0x1d4feb))['catch'](handleError(_0x28158a,null));},exports['show']=function(_0xa05995,_0x1a3419){const _0x53aa0f=_0x21f02d;let _0x415ce3={'raw':!![],'where':{'id':_0xa05995[_0x53aa0f('0x2')]['id']}};const _0x3b539a={};return _0x3b539a[_0x53aa0f('0x19')]=_[_0x53aa0f('0x4')](db[_0x53aa0f('0x3')][_0x53aa0f('0xf')]),_0x3b539a[_0x53aa0f('0x2b')]=_[_0x53aa0f('0x4')](_0xa05995[_0x53aa0f('0x2b')]),_0x3b539a[_0x53aa0f('0xb')]=_[_0x53aa0f('0x2a')](_0x3b539a[_0x53aa0f('0x19')],_0x3b539a['query']),_0x415ce3[_0x53aa0f('0xc')]=_[_0x53aa0f('0x2a')](_0x3b539a[_0x53aa0f('0x19')],qs[_0x53aa0f('0x0')](_0xa05995[_0x53aa0f('0x2b')]['fields'])),_0x415ce3['attributes']=_0x415ce3[_0x53aa0f('0xc')][_0x53aa0f('0x7')]?_0x415ce3[_0x53aa0f('0xc')]:_0x3b539a[_0x53aa0f('0x19')],_0xa05995[_0x53aa0f('0x2b')]['includeAll']&&(_0x415ce3['include']=[{'all':!![]}]),_0x415ce3=_[_0x53aa0f('0x1f')]({},_0x415ce3,_0xa05995[_0x53aa0f('0x22')]),db[_0x53aa0f('0x3')][_0x53aa0f('0x21')](_0x415ce3)[_0x53aa0f('0x27')](handleEntityNotFound(_0x1a3419,null))[_0x53aa0f('0x27')](respondWithResult(_0x1a3419,null))[_0x53aa0f('0xe')](handleError(_0x1a3419,null));},exports['create']=function(_0x133b49,_0x18ba83){const _0x27e2c6=_0x21f02d;return db[_0x27e2c6('0x3')]['create'](_0x133b49[_0x27e2c6('0x17')],{})[_0x27e2c6('0x27')](respondWithResult(_0x18ba83,0xc9))[_0x27e2c6('0xe')](handleError(_0x18ba83,null));},exports[_0x21f02d('0x11')]=function(_0x82d65a,_0x4fc746){const _0x2d4dc1=_0x21f02d;return _0x82d65a['body']['id']&&delete _0x82d65a[_0x2d4dc1('0x17')]['id'],db['SmsTransferReport']['findOne']({'where':{'id':_0x82d65a[_0x2d4dc1('0x2')]['id']}})[_0x2d4dc1('0x27')](handleEntityNotFound(_0x4fc746,null))[_0x2d4dc1('0x27')](saveUpdates(_0x82d65a[_0x2d4dc1('0x17')],null))[_0x2d4dc1('0x27')](respondWithResult(_0x4fc746,null))[_0x2d4dc1('0xe')](handleError(_0x4fc746,null));},exports[_0x21f02d('0x25')]=function(_0x2f5ee5,_0x4a95b2){const _0x263c42=_0x21f02d;return db[_0x263c42('0x3')][_0x263c42('0x21')]({'where':{'id':_0x2f5ee5[_0x263c42('0x2')]['id']}})[_0x263c42('0x27')](handleEntityNotFound(_0x4a95b2,null))[_0x263c42('0x27')](removeEntity(_0x4a95b2,null))[_0x263c42('0xe')](handleError(_0x4a95b2,null));},exports['describe']=function(_0xa517fc,_0x377e4e){const _0xbae4cb=_0x21f02d;return db['SmsTransferReport']['describe']()[_0xbae4cb('0x27')](respondWithResult(_0x377e4e,null))[_0xbae4cb('0xe')](handleError(_0x377e4e,null));}; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.model.js b/server/api/smsTransferReport/smsTransferReport.model.js index 1918233..9b26371 100644 --- a/server/api/smsTransferReport/smsTransferReport.model.js +++ b/server/api/smsTransferReport/smsTransferReport.model.js @@ -1 +1 @@ -const a580_0x2a60=['uniqueid','./smsTransferReport.attributes','SmsTransferReport','report_sms_transfer','exports'];(function(_0x9cee34,_0x2a60cf){const _0xfcc160=function(_0x581561){while(--_0x581561){_0x9cee34['push'](_0x9cee34['shift']());}};_0xfcc160(++_0x2a60cf);}(a580_0x2a60,0x194));const a580_0xfcc1=function(_0x9cee34,_0x2a60cf){_0x9cee34=_0x9cee34-0x0;let _0xfcc160=a580_0x2a60[_0x9cee34];return _0xfcc160;};const _0x872407=a580_0xfcc1;'use strict';const attributes=require(_0x872407('0x2'));module[_0x872407('0x0')]=function(_0x581561){const _0x224485=_0x872407,_0x1733c0=_0x581561['define'](_0x224485('0x3'),attributes,{'tableName':_0x224485('0x4'),'paranoid':![],'indexes':[{'name':_0x224485('0x1'),'fields':['uniqueid']}],'timestamps':!![]});return _0x1733c0;}; \ No newline at end of file +const a580_0x28e8=['exports','SmsTransferReport','./smsTransferReport.attributes','report_sms_transfer'];(function(_0x9ad92,_0x28e886){const _0x3e2824=function(_0x7b74ca){while(--_0x7b74ca){_0x9ad92['push'](_0x9ad92['shift']());}};_0x3e2824(++_0x28e886);}(a580_0x28e8,0xb0));const a580_0x3e28=function(_0x9ad92,_0x28e886){_0x9ad92=_0x9ad92-0x0;let _0x3e2824=a580_0x28e8[_0x9ad92];return _0x3e2824;};const _0x6bbd6e=a580_0x3e28;'use strict';const attributes=require(_0x6bbd6e('0x2'));module[_0x6bbd6e('0x0')]=function(_0x7b74ca){const _0xcc93c1=_0x6bbd6e,_0x57d7df=_0x7b74ca['define'](_0xcc93c1('0x1'),attributes,{'tableName':_0xcc93c1('0x3'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0x57d7df;}; \ No newline at end of file diff --git a/server/api/sound/index.js b/server/api/sound/index.js index b3304d9..03272bf 100644 --- a/server/api/sound/index.js +++ b/server/api/sound/index.js @@ -1 +1 @@ -const a581_0x1682=['basename','delete','../../config/environment','isAuthenticated','/:id/download','root','join','extname','show','post','/:id','../../components/auth/service','originalname','create','server/files/sounds/original/','express','format','now','index','exports','path','%s-%s%s','get','single','download','put'];(function(_0x5595e4,_0x1682cf){const _0x5dd78a=function(_0x2b62de){while(--_0x2b62de){_0x5595e4['push'](_0x5595e4['shift']());}};_0x5dd78a(++_0x1682cf);}(a581_0x1682,0xd6));const a581_0x5dd7=function(_0x5595e4,_0x1682cf){_0x5595e4=_0x5595e4-0x0;let _0x5dd78a=a581_0x1682[_0x5595e4];return _0x5dd78a;};const _0x222155=a581_0x5dd7;'use strict';const multer=require('multer'),util=require('util'),path=require(_0x222155('0xe')),express=require(_0x222155('0x9')),router=express['Router'](),auth=require(_0x222155('0x5')),config=require(_0x222155('0x16')),controller=require('./sound.controller');router[_0x222155('0x10')]('/',auth[_0x222155('0x17')](),controller[_0x222155('0xc')]),router[_0x222155('0x10')](_0x222155('0x4'),auth[_0x222155('0x17')](),controller[_0x222155('0x2')]),router[_0x222155('0x10')](_0x222155('0x18'),auth[_0x222155('0x17')](),controller[_0x222155('0x12')]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x2b62de,_0x11578c,_0x21f6fe){const _0x440a7e=_0x222155;_0x21f6fe(null,path[_0x440a7e('0x0')](config[_0x440a7e('0x19')],_0x440a7e('0x8')));},'filename':function(_0x3da35b,_0x55f5f7,_0x39a410){const _0x390400=_0x222155;_0x55f5f7['originalname']=_0x55f5f7[_0x390400('0x6')]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x39a410(null,util[_0x390400('0xa')](_0x390400('0xf'),path[_0x390400('0x14')](_0x55f5f7[_0x390400('0x6')],path['extname'](_0x55f5f7['originalname'])),Date[_0x390400('0xb')](),path[_0x390400('0x1')](_0x55f5f7[_0x390400('0x6')])));}})});router[_0x222155('0x3')]('/',upload[_0x222155('0x11')]('file'),controller[_0x222155('0x7')]),router[_0x222155('0x13')]('/:id',auth['isAuthenticated'](),controller['update']),router[_0x222155('0x15')](_0x222155('0x4'),auth['isAuthenticated'](),controller['delete']),module[_0x222155('0xd')]=router; \ No newline at end of file +const a581_0x5c6e=['now','delete','util','diskStorage','single','replace','originalname','/:id','update','basename','%s-%s%s','file','put','post','extname','show','download','isAuthenticated','format','root','get','join','../../components/auth/service','server/files/sounds/original/','Router','../../config/environment','create','exports','path','index','multer'];(function(_0x2afeeb,_0x5c6eed){const _0x466071=function(_0x2583f7){while(--_0x2583f7){_0x2afeeb['push'](_0x2afeeb['shift']());}};_0x466071(++_0x5c6eed);}(a581_0x5c6e,0x11e));const a581_0x4660=function(_0x2afeeb,_0x5c6eed){_0x2afeeb=_0x2afeeb-0x0;let _0x466071=a581_0x5c6e[_0x2afeeb];return _0x466071;};const _0x110426=a581_0x4660;'use strict';const multer=require(_0x110426('0x17')),util=require(_0x110426('0x1a')),path=require(_0x110426('0x15')),express=require('express'),router=express[_0x110426('0x11')](),auth=require(_0x110426('0xf')),config=require(_0x110426('0x12')),controller=require('./sound.controller');router[_0x110426('0xd')]('/',auth[_0x110426('0xa')](),controller[_0x110426('0x16')]),router[_0x110426('0xd')](_0x110426('0x0'),auth[_0x110426('0xa')](),controller[_0x110426('0x8')]),router[_0x110426('0xd')]('/:id/download',auth['isAuthenticated'](),controller[_0x110426('0x9')]);const upload=multer({'storage':multer[_0x110426('0x1b')]({'destination':function(_0x2583f7,_0x5f50b0,_0x5ca99c){const _0x1e841f=_0x110426;_0x5ca99c(null,path[_0x1e841f('0xe')](config[_0x1e841f('0xc')],_0x1e841f('0x10')));},'filename':function(_0x19f637,_0xf4418d,_0x22e22d){const _0x51c576=_0x110426;_0xf4418d[_0x51c576('0x1e')]=_0xf4418d[_0x51c576('0x1e')][_0x51c576('0x1d')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x22e22d(null,util[_0x51c576('0xb')](_0x51c576('0x3'),path[_0x51c576('0x2')](_0xf4418d[_0x51c576('0x1e')],path[_0x51c576('0x7')](_0xf4418d[_0x51c576('0x1e')])),Date[_0x51c576('0x18')](),path[_0x51c576('0x7')](_0xf4418d[_0x51c576('0x1e')])));}})});router[_0x110426('0x6')]('/',upload[_0x110426('0x1c')](_0x110426('0x4')),controller[_0x110426('0x13')]),router[_0x110426('0x5')](_0x110426('0x0'),auth[_0x110426('0xa')](),controller[_0x110426('0x1')]),router[_0x110426('0x19')](_0x110426('0x0'),auth[_0x110426('0xa')](),controller[_0x110426('0x19')]),module[_0x110426('0x14')]=router; \ No newline at end of file diff --git a/server/api/sound/sound.attributes.js b/server/api/sound/sound.attributes.js index f1ad56b..2ef2baf 100644 --- a/server/api/sound/sound.attributes.js +++ b/server/api/sound/sound.attributes.js @@ -1 +1 @@ -const a582_0x3c92=['BIGINT','FLOAT','INTEGER','exports','STRING','name','sequelize'];(function(_0x49bbc3,_0x3c9223){const _0xbd8f54=function(_0x1c4240){while(--_0x1c4240){_0x49bbc3['push'](_0x49bbc3['shift']());}};_0xbd8f54(++_0x3c9223);}(a582_0x3c92,0x158));const a582_0xbd8f=function(_0x49bbc3,_0x3c9223){_0x49bbc3=_0x49bbc3-0x0;let _0xbd8f54=a582_0x3c92[_0x49bbc3];return _0xbd8f54;};const _0x58e3d3=a582_0xbd8f;'use strict';const Sequelize=require(_0x58e3d3('0x5'));module[_0x58e3d3('0x2')]={'name':{'type':Sequelize[_0x58e3d3('0x3')],'unique':_0x58e3d3('0x4'),'allowNull':![]},'save_name':{'type':Sequelize[_0x58e3d3('0x3')]},'display_name':{'type':Sequelize['STRING'],'defaultValue':''},'description':{'type':Sequelize['STRING']},'original_format':{'type':Sequelize[_0x58e3d3('0x3')]},'original_duration':{'type':Sequelize[_0x58e3d3('0x0')]},'original_sampleCount':{'type':Sequelize[_0x58e3d3('0x6')]},'original_channelCount':{'type':Sequelize['INTEGER']},'original_bitRate':{'type':Sequelize[_0x58e3d3('0x6')]},'original_sampleRate':{'type':Sequelize[_0x58e3d3('0x1')]},'converted_format':{'type':Sequelize[_0x58e3d3('0x3')]},'converted_duration':{'type':Sequelize[_0x58e3d3('0x0')]},'converted_sampleCount':{'type':Sequelize['BIGINT']},'converted_channelCount':{'type':Sequelize[_0x58e3d3('0x1')]},'converted_bitRate':{'type':Sequelize['BIGINT']},'converted_sampleRate':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +const a582_0x3376=['STRING','name','sequelize','FLOAT','exports','BIGINT','INTEGER'];(function(_0x56981a,_0x337622){const _0xdc1078=function(_0x2f5bae){while(--_0x2f5bae){_0x56981a['push'](_0x56981a['shift']());}};_0xdc1078(++_0x337622);}(a582_0x3376,0x18a));const a582_0xdc10=function(_0x56981a,_0x337622){_0x56981a=_0x56981a-0x0;let _0xdc1078=a582_0x3376[_0x56981a];return _0xdc1078;};const _0x37cb66=a582_0xdc10;'use strict';const Sequelize=require(_0x37cb66('0x0'));module[_0x37cb66('0x2')]={'name':{'type':Sequelize[_0x37cb66('0x5')],'unique':_0x37cb66('0x6'),'allowNull':![]},'save_name':{'type':Sequelize['STRING']},'display_name':{'type':Sequelize[_0x37cb66('0x5')],'defaultValue':''},'description':{'type':Sequelize[_0x37cb66('0x5')]},'original_format':{'type':Sequelize['STRING']},'original_duration':{'type':Sequelize['FLOAT']},'original_sampleCount':{'type':Sequelize[_0x37cb66('0x3')]},'original_channelCount':{'type':Sequelize[_0x37cb66('0x4')]},'original_bitRate':{'type':Sequelize[_0x37cb66('0x3')]},'original_sampleRate':{'type':Sequelize[_0x37cb66('0x4')]},'converted_format':{'type':Sequelize['STRING']},'converted_duration':{'type':Sequelize[_0x37cb66('0x1')]},'converted_sampleCount':{'type':Sequelize[_0x37cb66('0x3')]},'converted_channelCount':{'type':Sequelize[_0x37cb66('0x4')]},'converted_bitRate':{'type':Sequelize['BIGINT']},'converted_sampleRate':{'type':Sequelize[_0x37cb66('0x4')]}}; \ No newline at end of file diff --git a/server/api/sound/sound.controller.js b/server/api/sound/sound.controller.js index 182cee5..7e15070 100644 --- a/server/api/sound/sound.controller.js +++ b/server/api/sound/sound.controller.js @@ -1 +1 @@ -const a583_0x2598=['length','autoAssociation','converted_bitRate','role','path','server/files/sounds/original','converted_format','../../components/parsers/qs','Sound\x20not\x20found','include','Sound','sampleCount','name','duration','fieldName','update','Content-Range','intersection','original_duration','original_sampleRate','options','json','converted_duration','basename','../../mysqldb','filter','userProfileId','rows','fields','user','keys','util','set','where','model','format','Sounds','filters','bitRate','order','extname','filename','original_bitRate','ValidationError','api','destroy','VIRTUAL','type','wav','substring','unlinkSync','converted_channelCount','save_name','limit','findOne','existsSync','catch','params','attributes','info','sendStatus','Unable\x20to\x20retrieve\x20the\x20current\x20user','rawAttributes','like','count','create','src','download','original_channelCount','then','status','originalname','dest','index','error','offset','chmodSync','%s.%s','includeAll','original_format','nolimit','server/files/sounds/converted','0777','end','Sound\x20upload\x20destination:\x20%s','body','sequelize','pick','send','file','map','sampleRate','query','findAll','lodash','root','key','merge','join','UserProfileSection','sox','channelCount','start'];(function(_0x43f59f,_0x259893){const _0x4d76ad=function(_0x5f0d2c){while(--_0x5f0d2c){_0x43f59f['push'](_0x43f59f['shift']());}};_0x4d76ad(++_0x259893);}(a583_0x2598,0x1c0));const a583_0x4d76=function(_0x43f59f,_0x259893){_0x43f59f=_0x43f59f-0x0;let _0x4d76ad=a583_0x2598[_0x43f59f];return _0x4d76ad;};const _0x35d34b=a583_0x4d76;'use strict';const util=require(_0x35d34b('0x62')),path=require(_0x35d34b('0x47')),sox=require(_0x35d34b('0x40')),fs=require('fs'),_=require(_0x35d34b('0x3a')),qs=require(_0x35d34b('0x4a')),logger=require('../../config/logger')(_0x35d34b('0x8')),config=require('../../config/environment'),db=require(_0x35d34b('0x5b'))['db'],{Op}=require(_0x35d34b('0x32'));function respondWithResult(_0x5f0d2c,_0x2de0c9){return _0x2de0c9=_0x2de0c9||0xc8,function(_0x44953b){const _0x5667b6=a583_0x4d76;if(_0x44953b)return _0x5f0d2c['status'](_0x2de0c9)[_0x5667b6('0x58')](_0x44953b);};}function respondWithFilteredResult(_0x197ddd,_0xd9f326){return function(_0x247856){const _0x4d3678=a583_0x4d76;if(_0x247856){const _0x3217c4=_0x247856[_0x4d3678('0x1c')],_0x1061f0=_0xd9f326[_0x4d3678('0x27')];let _0x9fe502=_0xd9f326[_0x4d3678('0x27')]+_0xd9f326[_0x4d3678('0x11')],_0x113c1d;return _0x9fe502>=_0x3217c4?(_0x9fe502=_0x3217c4,_0x113c1d=0xc8):_0x113c1d=0xce,_0x197ddd[_0x4d3678('0x22')](_0x113c1d),_0x197ddd[_0x4d3678('0x63')](_0x4d3678('0x53'),_0x1061f0+'-'+_0x9fe502+'/'+_0x3217c4)['json'](_0x247856);}return null;};}function saveUpdates(_0x2a5301){return function(_0x50d4ea){const _0x471178=a583_0x4d76;if(_0x50d4ea)return _0x50d4ea[_0x471178('0x52')](_0x2a5301)[_0x471178('0x21')](function(_0x5193b5){return _0x5193b5;});return null;};}function handleEntityNotFound(_0x414666){return function(_0x467277){const _0x2a46c0=a583_0x4d76;return!_0x467277&&_0x414666[_0x2a46c0('0x18')](0x194),_0x467277;};}function handleError(_0x44558f,_0x38c3e9){return _0x38c3e9=_0x38c3e9||0x1f4,function(_0x4c23f8){const _0x2bf375=a583_0x4d76;logger[_0x2bf375('0x26')](_0x4c23f8['stack']),_0x4c23f8[_0x2bf375('0x4f')]&&delete _0x4c23f8['name'],_0x44558f[_0x2bf375('0x22')](_0x38c3e9)[_0x2bf375('0x34')](_0x4c23f8);};}exports[_0x35d34b('0x25')]=function(_0x216b29,_0x4b2d6e){const _0x1bf5ca=_0x35d34b;let _0x59c2d1={};const _0x1aee34={},_0x44778b={'count':0x0,'rows':[]},_0x3aae7f=_['map'](db[_0x1bf5ca('0x4d')]['rawAttributes'],function(_0x5d71bf){const _0x2fb867=_0x1bf5ca;return{'name':_0x5d71bf[_0x2fb867('0x51')],'type':_0x5d71bf[_0x2fb867('0xb')][_0x2fb867('0x3c')]};});_0x1aee34[_0x1bf5ca('0x65')]=_[_0x1bf5ca('0x36')](_0x3aae7f,_0x1bf5ca('0x4f')),_0x1aee34[_0x1bf5ca('0x38')]=_[_0x1bf5ca('0x61')](_0x216b29['query']),_0x1aee34[_0x1bf5ca('0x1')]=_[_0x1bf5ca('0x54')](_0x1aee34[_0x1bf5ca('0x65')],_0x1aee34[_0x1bf5ca('0x38')]),_0x59c2d1['attributes']=_[_0x1bf5ca('0x54')](_0x1aee34['model'],qs[_0x1bf5ca('0x5f')](_0x216b29['query'][_0x1bf5ca('0x5f')])),_0x59c2d1[_0x1bf5ca('0x16')]=_0x59c2d1[_0x1bf5ca('0x16')]['length']?_0x59c2d1[_0x1bf5ca('0x16')]:_0x1aee34[_0x1bf5ca('0x65')];typeof _0x216b29[_0x1bf5ca('0x38')][_0x1bf5ca('0x2c')]==='undefined'&&(_0x59c2d1[_0x1bf5ca('0x11')]=qs[_0x1bf5ca('0x11')](_0x216b29['query']['limit']),_0x59c2d1[_0x1bf5ca('0x27')]=qs[_0x1bf5ca('0x27')](_0x216b29[_0x1bf5ca('0x38')]['offset']));_0x59c2d1[_0x1bf5ca('0x3')]=qs['sort'](_0x216b29[_0x1bf5ca('0x38')]['sort']),_0x59c2d1[_0x1bf5ca('0x64')]=qs['filters'](_[_0x1bf5ca('0x33')](_0x216b29['query'],_0x1aee34[_0x1bf5ca('0x1')]),_0x3aae7f);_0x216b29['query'][_0x1bf5ca('0x5c')]&&(_0x59c2d1[_0x1bf5ca('0x64')]=_[_0x1bf5ca('0x3d')](_0x59c2d1[_0x1bf5ca('0x64')],{[Op['or']]:_['map'](_0x3aae7f,function(_0x47dc0e){const _0x416bbf=_0x1bf5ca;if(_0x47dc0e[_0x416bbf('0xb')]!==_0x416bbf('0xa')){const _0x23de65={};return _0x23de65[_0x47dc0e[_0x416bbf('0x4f')]]={[Op[_0x416bbf('0x1b')]]:'%'+_0x216b29[_0x416bbf('0x38')][_0x416bbf('0x5c')]+'%'},_0x23de65;}})}));_0x59c2d1=_['merge']({},_0x59c2d1,_0x216b29[_0x1bf5ca('0x57')]);const _0x3e9dad={'where':_0x59c2d1[_0x1bf5ca('0x64')]};return db[_0x1bf5ca('0x4d')][_0x1bf5ca('0x1c')](_0x3e9dad)[_0x1bf5ca('0x21')](function(_0x33faec){const _0x34d5b5=_0x1bf5ca;return _0x44778b['count']=_0x33faec,_0x216b29[_0x34d5b5('0x38')][_0x34d5b5('0x2a')]&&(_0x59c2d1[_0x34d5b5('0x4c')]=[{'all':!![]}]),db['Sound'][_0x34d5b5('0x39')](_0x59c2d1);})[_0x1bf5ca('0x21')](function(_0x38820e){const _0x5f3913=_0x1bf5ca;return _0x44778b[_0x5f3913('0x5e')]=_0x38820e,_0x44778b;})['then'](respondWithFilteredResult(_0x4b2d6e,_0x59c2d1))['catch'](handleError(_0x4b2d6e,null));},exports['show']=function(_0x28c85e,_0xd20a41){const _0x3a170d=_0x35d34b;let _0x10d1a0={'raw':!![],'where':{'id':_0x28c85e[_0x3a170d('0x15')]['id']}};const _0x345051={};return _0x345051[_0x3a170d('0x65')]=_[_0x3a170d('0x61')](db[_0x3a170d('0x4d')][_0x3a170d('0x1a')]),_0x345051[_0x3a170d('0x38')]=_[_0x3a170d('0x61')](_0x28c85e['query']),_0x345051[_0x3a170d('0x1')]=_[_0x3a170d('0x54')](_0x345051['model'],_0x345051['query']),_0x10d1a0[_0x3a170d('0x16')]=_[_0x3a170d('0x54')](_0x345051['model'],qs['fields'](_0x28c85e[_0x3a170d('0x38')][_0x3a170d('0x5f')])),_0x10d1a0[_0x3a170d('0x16')]=_0x10d1a0[_0x3a170d('0x16')][_0x3a170d('0x43')]?_0x10d1a0[_0x3a170d('0x16')]:_0x345051[_0x3a170d('0x65')],_0x28c85e[_0x3a170d('0x38')][_0x3a170d('0x2a')]&&(_0x10d1a0[_0x3a170d('0x4c')]=[{'all':!![]}]),_0x10d1a0=_[_0x3a170d('0x3d')]({},_0x10d1a0,_0x28c85e[_0x3a170d('0x57')]),db[_0x3a170d('0x4d')][_0x3a170d('0x12')](_0x10d1a0)[_0x3a170d('0x21')](handleEntityNotFound(_0xd20a41,null))[_0x3a170d('0x21')](respondWithResult(_0xd20a41,null))['catch'](handleError(_0xd20a41,null));},exports['download']=function(_0x2a5964,_0x370a73){const _0x741a23=_0x35d34b;return db[_0x741a23('0x4d')]['findOne']({'where':{'id':_0x2a5964['params']['id']},'attributes':[_0x741a23('0x4f'),'save_name',_0x741a23('0x49')],'raw':!![]})[_0x741a23('0x21')](handleEntityNotFound(_0x370a73,null))[_0x741a23('0x21')](function(_0x1a2c2d){const _0x43963a=_0x741a23;if(_0x1a2c2d){if(!fs[_0x43963a('0x13')](path[_0x43963a('0x3e')](config[_0x43963a('0x3b')],'server/files/sounds/converted',_0x1a2c2d['save_name']+'.'+_0x1a2c2d['converted_format'])))throw new db['Sequelize'][(_0x43963a('0x7'))](_0x43963a('0x4b'));return _0x370a73[_0x43963a('0x1f')](path[_0x43963a('0x3e')](config[_0x43963a('0x3b')],_0x43963a('0x2d'),util[_0x43963a('0x66')](_0x43963a('0x29'),_0x1a2c2d[_0x43963a('0x10')],_0x1a2c2d[_0x43963a('0x49')])),util[_0x43963a('0x66')]('%s.%s',_0x1a2c2d['name'],_0x1a2c2d[_0x43963a('0x49')]));}return null;})[_0x741a23('0x14')](handleError(_0x370a73,null));},exports[_0x35d34b('0x1d')]=function(_0x472e6e,_0x7346ff){const _0x52c8ca=_0x35d34b,_0x5b3336={'name':path[_0x52c8ca('0x5a')](_0x472e6e[_0x52c8ca('0x35')][_0x52c8ca('0x23')],path['extname'](_0x472e6e[_0x52c8ca('0x35')][_0x52c8ca('0x23')])),'save_name':path[_0x52c8ca('0x5a')](_0x472e6e[_0x52c8ca('0x35')][_0x52c8ca('0x5')],path[_0x52c8ca('0x4')](_0x472e6e[_0x52c8ca('0x35')][_0x52c8ca('0x5')])),'original_format':path[_0x52c8ca('0x4')](_0x472e6e[_0x52c8ca('0x35')][_0x52c8ca('0x23')])[_0x52c8ca('0xd')](0x1),'converted_format':_0x52c8ca('0xc')},_0x1690f8=path[_0x52c8ca('0x3e')](config['root'],'server/files/sounds/original',_0x472e6e['file'][_0x52c8ca('0x5')]),_0x4f0fd9=path['join'](config['root'],_0x52c8ca('0x2d'),util[_0x52c8ca('0x66')](_0x52c8ca('0x29'),path[_0x52c8ca('0x5a')](_0x472e6e[_0x52c8ca('0x35')][_0x52c8ca('0x5')],path['extname'](_0x472e6e[_0x52c8ca('0x35')][_0x52c8ca('0x5')])),_0x5b3336[_0x52c8ca('0x49')]));logger[_0x52c8ca('0x17')]('Sound\x20upload\x20filepath:\x20%s',_0x1690f8),logger[_0x52c8ca('0x17')](_0x52c8ca('0x30'),_0x4f0fd9);try{fs[_0x52c8ca('0x28')](_0x1690f8,parseInt('0777',0x8));const _0x38e729=sox['transcode'](_0x1690f8,_0x4f0fd9,{'sampleRate':0x1f40,'format':'wav','channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x38e729['on'](_0x52c8ca('0x26'),function(_0x672ebf){const _0x5cbd8e=_0x52c8ca;fs[_0x5cbd8e('0xe')](_0x1690f8),_0x7346ff[_0x5cbd8e('0x22')](0x1f4)[_0x5cbd8e('0x34')](_0x672ebf);}),_0x38e729['on'](_0x52c8ca('0x1e'),function(_0x4b4616){const _0x15e63b=_0x52c8ca;_0x5b3336[_0x15e63b('0x55')]=isNaN(_0x4b4616[_0x15e63b('0x50')])?null:_0x4b4616[_0x15e63b('0x50')]*0x3e8,_0x5b3336['original_sampleCount']=isNaN(_0x4b4616[_0x15e63b('0x4e')])?null:_0x4b4616[_0x15e63b('0x4e')],_0x5b3336[_0x15e63b('0x20')]=isNaN(_0x4b4616['channelCount'])?null:_0x4b4616['channelCount'],_0x5b3336[_0x15e63b('0x6')]=isNaN(_0x4b4616['bitRate'])?null:_0x4b4616['bitRate'],_0x5b3336[_0x15e63b('0x56')]=isNaN(_0x4b4616[_0x15e63b('0x37')])?null:_0x4b4616[_0x15e63b('0x37')];}),_0x38e729['on'](_0x52c8ca('0x24'),function(_0x41c0f6){const _0x2768c0=_0x52c8ca;_0x5b3336[_0x2768c0('0x59')]=isNaN(_0x41c0f6[_0x2768c0('0x50')])?null:_0x41c0f6['duration']*0x3e8,_0x5b3336['converted_sampleCount']=isNaN(_0x41c0f6['sampleCount'])?null:_0x41c0f6[_0x2768c0('0x4e')],_0x5b3336[_0x2768c0('0xf')]=isNaN(_0x41c0f6[_0x2768c0('0x41')])?null:_0x41c0f6['channelCount'],_0x5b3336[_0x2768c0('0x45')]=isNaN(_0x41c0f6[_0x2768c0('0x2')])?null:_0x41c0f6[_0x2768c0('0x2')],_0x5b3336['converted_sampleRate']=isNaN(_0x41c0f6[_0x2768c0('0x37')])?null:_0x41c0f6['sampleRate'];}),_0x38e729['on'](_0x52c8ca('0x2f'),function(){const _0x2f11c9=_0x52c8ca;return fs['chmodSync'](_0x4f0fd9,parseInt(_0x2f11c9('0x2e'),0x8)),db[_0x2f11c9('0x4d')][_0x2f11c9('0x1d')](_0x5b3336)['then'](function(_0x4a7f9){const _0x1758ed=_0x2f11c9,_0x2f6ee4={'role':_0x472e6e[_0x1758ed('0x31')][_0x1758ed('0x46')],'userProfileId':_0x472e6e[_0x1758ed('0x31')][_0x1758ed('0x5d')]};if(!_0x2f6ee4)throw new Error(_0x1758ed('0x19'));if(_0x2f6ee4[_0x1758ed('0x46')]===_0x1758ed('0x60')){const _0x370c1f=_0x4a7f9['get']({'plain':!![]});return db[_0x1758ed('0x3f')][_0x1758ed('0x12')]({'where':{'name':_0x1758ed('0x0'),'userProfileId':_0x2f6ee4[_0x1758ed('0x5d')]},'raw':!![]})[_0x1758ed('0x21')](function(_0x5ea5a6){const _0xc8d7fb=_0x1758ed;return _0x5ea5a6&&_0x5ea5a6[_0xc8d7fb('0x44')]===0x0?db['UserProfileResource'][_0xc8d7fb('0x1d')]({'name':_0x370c1f[_0xc8d7fb('0x4f')],'resourceId':_0x370c1f['id'],'type':_0x5ea5a6[_0xc8d7fb('0x4f')],'sectionId':_0x5ea5a6['id']},{})['then'](function(){return _0x4a7f9;}):_0x4a7f9;})['catch'](function(_0x5e9103){const _0x2c341b=_0x1758ed;logger[_0x2c341b('0x26')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x5e9103);throw _0x5e9103;});}return _0x4a7f9;})['then'](respondWithResult(_0x7346ff,null))[_0x2f11c9('0x14')](handleError(_0x7346ff,null));}),_0x38e729[_0x52c8ca('0x42')]();}catch(_0x4f0750){_0x7346ff[_0x52c8ca('0x22')](0x1f4)[_0x52c8ca('0x34')](_0x4f0750);}},exports[_0x35d34b('0x52')]=function(_0x20f1bf,_0x58eec3){const _0x289b9b=_0x35d34b;return db[_0x289b9b('0x4d')][_0x289b9b('0x12')]({'where':{'id':_0x20f1bf[_0x289b9b('0x15')]['id']}})[_0x289b9b('0x21')](handleEntityNotFound(_0x58eec3,null))['then'](saveUpdates(_[_0x289b9b('0x33')](_0x20f1bf['body'],[_0x289b9b('0x4f'),'description']),null))['then'](respondWithResult(_0x58eec3,null))[_0x289b9b('0x14')](handleError(_0x58eec3,null));},exports['delete']=function(_0x4c4365,_0x10d483){const _0x15dd73=_0x35d34b;return db[_0x15dd73('0x4d')][_0x15dd73('0x12')]({'where':{'id':_0x4c4365[_0x15dd73('0x15')]['id']}})[_0x15dd73('0x21')](function(_0x4b6219){const _0x3dd946=_0x15dd73;if(_0x4b6219)return _0x4b6219[_0x3dd946('0x9')]();})[_0x15dd73('0x21')](function(_0x40b6f1){const _0x34fcb4=_0x15dd73,_0x32473c=path[_0x34fcb4('0x3e')](config[_0x34fcb4('0x3b')],_0x34fcb4('0x48'),util[_0x34fcb4('0x66')](_0x34fcb4('0x29'),_0x40b6f1['save_name'],_0x40b6f1[_0x34fcb4('0x2b')])),_0x470545=path[_0x34fcb4('0x3e')](config[_0x34fcb4('0x3b')],'server/files/sounds/converted',util[_0x34fcb4('0x66')]('%s.%s',_0x40b6f1[_0x34fcb4('0x10')],_0x40b6f1[_0x34fcb4('0x49')]));return fs['unlinkSync'](_0x32473c),fs[_0x34fcb4('0xe')](_0x470545),_0x40b6f1;})[_0x15dd73('0x21')](function(_0x166466){const _0x123bba=_0x15dd73;if(_0x166466)return _0x10d483[_0x123bba('0x22')](0xcc)['end']();})[_0x15dd73('0x21')](handleEntityNotFound(_0x10d483,null))[_0x15dd73('0x14')](handleError(_0x10d483,null));}; \ No newline at end of file +const a583_0x5ced=['rawAttributes','original_bitRate','order','Sound\x20upload\x20destination:\x20%s','../../components/parsers/qs','catch','converted_sampleRate','fieldName','model','info','stack','status','ValidationError','type','start','offset','role','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','undefined','findOne','dest','lodash','options','original_sampleRate','end','download','fields','Sequelize','set','server/files/sounds/original','path','transcode','%s.%s','Unable\x20to\x20retrieve\x20the\x20current\x20user','VIRTUAL','sequelize','originalname','body','join','name','limit','Sounds','attributes','server/files/sounds/converted','user','pick','converted_channelCount','UserProfileResource','filename','where','error','extname','keys','../../config/logger','file','rows','findAll','merge','count','UserProfileSection','existsSync','basename','sampleRate','userProfileId','save_name','0777','like','wav','length','sox','intersection','api','key','Sound\x20upload\x20filepath:\x20%s','original_duration','converted_duration','sampleCount','duration','sort','params','original_format','include','converted_sampleCount','root','json','map','format','show','send','query','sendStatus','then','src','bitRate','includeAll','channelCount','filters','Sound','create','get','unlinkSync','filter','converted_format','Content-Range'];(function(_0x1c0f6c,_0x5ced1a){const _0x3148a9=function(_0x4faf49){while(--_0x4faf49){_0x1c0f6c['push'](_0x1c0f6c['shift']());}};_0x3148a9(++_0x5ced1a);}(a583_0x5ced,0x15f));const a583_0x3148=function(_0x1c0f6c,_0x5ced1a){_0x1c0f6c=_0x1c0f6c-0x0;let _0x3148a9=a583_0x5ced[_0x1c0f6c];return _0x3148a9;};const _0x4464aa=a583_0x3148;'use strict';const util=require('util'),path=require(_0x4464aa('0x5f')),sox=require(_0x4464aa('0x1e')),fs=require('fs'),_=require(_0x4464aa('0x56')),qs=require(_0x4464aa('0x45')),logger=require(_0x4464aa('0xe'))(_0x4464aa('0x20')),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require(_0x4464aa('0x64'));function respondWithResult(_0x4faf49,_0x29b10c){return _0x29b10c=_0x29b10c||0xc8,function(_0x22c250){const _0x43c933=a583_0x3148;if(_0x22c250)return _0x4faf49[_0x43c933('0x4c')](_0x29b10c)[_0x43c933('0x2d')](_0x22c250);};}function respondWithFilteredResult(_0x151234,_0xb3d17f){return function(_0x15a3f5){const _0x3ef4c2=a583_0x3148;if(_0x15a3f5){const _0x37c53a=_0x15a3f5[_0x3ef4c2('0x13')],_0x3e0639=_0xb3d17f['offset'];let _0x572942=_0xb3d17f[_0x3ef4c2('0x50')]+_0xb3d17f[_0x3ef4c2('0x1')],_0x162b11;return _0x572942>=_0x37c53a?(_0x572942=_0x37c53a,_0x162b11=0xc8):_0x162b11=0xce,_0x151234[_0x3ef4c2('0x4c')](_0x162b11),_0x151234[_0x3ef4c2('0x5d')](_0x3ef4c2('0x40'),_0x3e0639+'-'+_0x572942+'/'+_0x37c53a)[_0x3ef4c2('0x2d')](_0x15a3f5);}return null;};}function saveUpdates(_0x446a3f){return function(_0x335b37){const _0x4070a4=a583_0x3148;if(_0x335b37)return _0x335b37['update'](_0x446a3f)[_0x4070a4('0x34')](function(_0x39ee68){return _0x39ee68;});return null;};}function handleEntityNotFound(_0x899b2f){return function(_0x515147){const _0x2d98ee=a583_0x3148;return!_0x515147&&_0x899b2f[_0x2d98ee('0x33')](0x194),_0x515147;};}function handleError(_0x2cee07,_0x4b5b2e){return _0x4b5b2e=_0x4b5b2e||0x1f4,function(_0x420bf2){const _0x1364c3=a583_0x3148;logger[_0x1364c3('0xb')](_0x420bf2[_0x1364c3('0x4b')]),_0x420bf2['name']&&delete _0x420bf2[_0x1364c3('0x0')],_0x2cee07[_0x1364c3('0x4c')](_0x4b5b2e)[_0x1364c3('0x31')](_0x420bf2);};}exports['index']=function(_0x5a0841,_0x309f31){const _0xd54448=_0x4464aa;let _0x4eb816={};const _0x55ae1f={},_0x228fd7={'count':0x0,'rows':[]},_0xd93835=_[_0xd54448('0x2e')](db[_0xd54448('0x3a')][_0xd54448('0x41')],function(_0x688741){const _0x418c9a=_0xd54448;return{'name':_0x688741[_0x418c9a('0x48')],'type':_0x688741['type'][_0x418c9a('0x21')]};});_0x55ae1f[_0xd54448('0x49')]=_[_0xd54448('0x2e')](_0xd93835,_0xd54448('0x0')),_0x55ae1f[_0xd54448('0x32')]=_[_0xd54448('0xd')](_0x5a0841[_0xd54448('0x32')]),_0x55ae1f[_0xd54448('0x39')]=_['intersection'](_0x55ae1f[_0xd54448('0x49')],_0x55ae1f['query']),_0x4eb816[_0xd54448('0x3')]=_[_0xd54448('0x1f')](_0x55ae1f['model'],qs[_0xd54448('0x5b')](_0x5a0841[_0xd54448('0x32')]['fields'])),_0x4eb816[_0xd54448('0x3')]=_0x4eb816['attributes'][_0xd54448('0x1d')]?_0x4eb816[_0xd54448('0x3')]:_0x55ae1f[_0xd54448('0x49')];typeof _0x5a0841[_0xd54448('0x32')]['nolimit']===_0xd54448('0x53')&&(_0x4eb816[_0xd54448('0x1')]=qs[_0xd54448('0x1')](_0x5a0841[_0xd54448('0x32')][_0xd54448('0x1')]),_0x4eb816[_0xd54448('0x50')]=qs['offset'](_0x5a0841[_0xd54448('0x32')]['offset']));_0x4eb816[_0xd54448('0x43')]=qs['sort'](_0x5a0841[_0xd54448('0x32')][_0xd54448('0x27')]),_0x4eb816[_0xd54448('0xa')]=qs[_0xd54448('0x39')](_[_0xd54448('0x6')](_0x5a0841[_0xd54448('0x32')],_0x55ae1f['filters']),_0xd93835);_0x5a0841[_0xd54448('0x32')][_0xd54448('0x3e')]&&(_0x4eb816[_0xd54448('0xa')]=_['merge'](_0x4eb816[_0xd54448('0xa')],{[Op['or']]:_['map'](_0xd93835,function(_0x439f65){const _0x356661=_0xd54448;if(_0x439f65[_0x356661('0x4e')]!==_0x356661('0x63')){const _0x199186={};return _0x199186[_0x439f65['name']]={[Op[_0x356661('0x1b')]]:'%'+_0x5a0841[_0x356661('0x32')][_0x356661('0x3e')]+'%'},_0x199186;}})}));_0x4eb816=_['merge']({},_0x4eb816,_0x5a0841[_0xd54448('0x57')]);const _0x4dafc4={'where':_0x4eb816[_0xd54448('0xa')]};return db[_0xd54448('0x3a')]['count'](_0x4dafc4)[_0xd54448('0x34')](function(_0x54aa42){const _0x1aadf2=_0xd54448;return _0x228fd7['count']=_0x54aa42,_0x5a0841[_0x1aadf2('0x32')][_0x1aadf2('0x37')]&&(_0x4eb816[_0x1aadf2('0x2a')]=[{'all':!![]}]),db[_0x1aadf2('0x3a')][_0x1aadf2('0x11')](_0x4eb816);})[_0xd54448('0x34')](function(_0x25c561){const _0x32ce12=_0xd54448;return _0x228fd7[_0x32ce12('0x10')]=_0x25c561,_0x228fd7;})[_0xd54448('0x34')](respondWithFilteredResult(_0x309f31,_0x4eb816))[_0xd54448('0x46')](handleError(_0x309f31,null));},exports[_0x4464aa('0x30')]=function(_0x207b35,_0xa6683a){const _0x2b5c22=_0x4464aa;let _0x2fff2e={'raw':!![],'where':{'id':_0x207b35[_0x2b5c22('0x28')]['id']}};const _0x19084e={};return _0x19084e[_0x2b5c22('0x49')]=_[_0x2b5c22('0xd')](db[_0x2b5c22('0x3a')][_0x2b5c22('0x41')]),_0x19084e['query']=_[_0x2b5c22('0xd')](_0x207b35[_0x2b5c22('0x32')]),_0x19084e[_0x2b5c22('0x39')]=_[_0x2b5c22('0x1f')](_0x19084e[_0x2b5c22('0x49')],_0x19084e[_0x2b5c22('0x32')]),_0x2fff2e[_0x2b5c22('0x3')]=_[_0x2b5c22('0x1f')](_0x19084e[_0x2b5c22('0x49')],qs[_0x2b5c22('0x5b')](_0x207b35[_0x2b5c22('0x32')]['fields'])),_0x2fff2e['attributes']=_0x2fff2e[_0x2b5c22('0x3')][_0x2b5c22('0x1d')]?_0x2fff2e['attributes']:_0x19084e[_0x2b5c22('0x49')],_0x207b35[_0x2b5c22('0x32')]['includeAll']&&(_0x2fff2e[_0x2b5c22('0x2a')]=[{'all':!![]}]),_0x2fff2e=_[_0x2b5c22('0x12')]({},_0x2fff2e,_0x207b35[_0x2b5c22('0x57')]),db[_0x2b5c22('0x3a')][_0x2b5c22('0x54')](_0x2fff2e)[_0x2b5c22('0x34')](handleEntityNotFound(_0xa6683a,null))['then'](respondWithResult(_0xa6683a,null))[_0x2b5c22('0x46')](handleError(_0xa6683a,null));},exports['download']=function(_0x32498b,_0x408d17){const _0x1569d2=_0x4464aa;return db[_0x1569d2('0x3a')][_0x1569d2('0x54')]({'where':{'id':_0x32498b[_0x1569d2('0x28')]['id']},'attributes':['name',_0x1569d2('0x19'),_0x1569d2('0x3f')],'raw':!![]})[_0x1569d2('0x34')](handleEntityNotFound(_0x408d17,null))['then'](function(_0x2a20a0){const _0x7d0715=_0x1569d2;if(_0x2a20a0){if(!fs[_0x7d0715('0x15')](path['join'](config[_0x7d0715('0x2c')],_0x7d0715('0x4'),_0x2a20a0[_0x7d0715('0x19')]+'.'+_0x2a20a0[_0x7d0715('0x3f')])))throw new db[(_0x7d0715('0x5c'))][(_0x7d0715('0x4d'))]('Sound\x20not\x20found');return _0x408d17[_0x7d0715('0x5a')](path[_0x7d0715('0x67')](config[_0x7d0715('0x2c')],_0x7d0715('0x4'),util[_0x7d0715('0x2f')](_0x7d0715('0x61'),_0x2a20a0[_0x7d0715('0x19')],_0x2a20a0['converted_format'])),util[_0x7d0715('0x2f')](_0x7d0715('0x61'),_0x2a20a0['name'],_0x2a20a0['converted_format']));}return null;})[_0x1569d2('0x46')](handleError(_0x408d17,null));},exports[_0x4464aa('0x3b')]=function(_0x8b1e7f,_0x42d2a8){const _0x57c444=_0x4464aa,_0xf0d0e6={'name':path['basename'](_0x8b1e7f[_0x57c444('0xf')][_0x57c444('0x65')],path[_0x57c444('0xc')](_0x8b1e7f[_0x57c444('0xf')][_0x57c444('0x65')])),'save_name':path[_0x57c444('0x16')](_0x8b1e7f[_0x57c444('0xf')][_0x57c444('0x9')],path[_0x57c444('0xc')](_0x8b1e7f['file'][_0x57c444('0x9')])),'original_format':path[_0x57c444('0xc')](_0x8b1e7f[_0x57c444('0xf')][_0x57c444('0x65')])['substring'](0x1),'converted_format':_0x57c444('0x1c')},_0x1a1f6c=path[_0x57c444('0x67')](config[_0x57c444('0x2c')],_0x57c444('0x5e'),_0x8b1e7f[_0x57c444('0xf')][_0x57c444('0x9')]),_0x2beb0d=path[_0x57c444('0x67')](config['root'],_0x57c444('0x4'),util['format'](_0x57c444('0x61'),path['basename'](_0x8b1e7f[_0x57c444('0xf')]['filename'],path[_0x57c444('0xc')](_0x8b1e7f[_0x57c444('0xf')][_0x57c444('0x9')])),_0xf0d0e6[_0x57c444('0x3f')]));logger[_0x57c444('0x4a')](_0x57c444('0x22'),_0x1a1f6c),logger[_0x57c444('0x4a')](_0x57c444('0x44'),_0x2beb0d);try{fs['chmodSync'](_0x1a1f6c,parseInt(_0x57c444('0x1a'),0x8));const _0x3836be=sox[_0x57c444('0x60')](_0x1a1f6c,_0x2beb0d,{'sampleRate':0x1f40,'format':_0x57c444('0x1c'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x3836be['on'](_0x57c444('0xb'),function(_0x21497f){const _0x405f8b=_0x57c444;fs[_0x405f8b('0x3d')](_0x1a1f6c),_0x42d2a8[_0x405f8b('0x4c')](0x1f4)[_0x405f8b('0x31')](_0x21497f);}),_0x3836be['on'](_0x57c444('0x35'),function(_0x366686){const _0x37412a=_0x57c444;_0xf0d0e6[_0x37412a('0x23')]=isNaN(_0x366686['duration'])?null:_0x366686[_0x37412a('0x26')]*0x3e8,_0xf0d0e6['original_sampleCount']=isNaN(_0x366686['sampleCount'])?null:_0x366686[_0x37412a('0x25')],_0xf0d0e6['original_channelCount']=isNaN(_0x366686[_0x37412a('0x38')])?null:_0x366686[_0x37412a('0x38')],_0xf0d0e6[_0x37412a('0x42')]=isNaN(_0x366686[_0x37412a('0x36')])?null:_0x366686[_0x37412a('0x36')],_0xf0d0e6[_0x37412a('0x58')]=isNaN(_0x366686[_0x37412a('0x17')])?null:_0x366686['sampleRate'];}),_0x3836be['on'](_0x57c444('0x55'),function(_0x38f08b){const _0x52631c=_0x57c444;_0xf0d0e6[_0x52631c('0x24')]=isNaN(_0x38f08b[_0x52631c('0x26')])?null:_0x38f08b[_0x52631c('0x26')]*0x3e8,_0xf0d0e6[_0x52631c('0x2b')]=isNaN(_0x38f08b[_0x52631c('0x25')])?null:_0x38f08b[_0x52631c('0x25')],_0xf0d0e6[_0x52631c('0x7')]=isNaN(_0x38f08b[_0x52631c('0x38')])?null:_0x38f08b[_0x52631c('0x38')],_0xf0d0e6['converted_bitRate']=isNaN(_0x38f08b[_0x52631c('0x36')])?null:_0x38f08b[_0x52631c('0x36')],_0xf0d0e6[_0x52631c('0x47')]=isNaN(_0x38f08b[_0x52631c('0x17')])?null:_0x38f08b[_0x52631c('0x17')];}),_0x3836be['on'](_0x57c444('0x59'),function(){const _0x1a064c=_0x57c444;return fs['chmodSync'](_0x2beb0d,parseInt(_0x1a064c('0x1a'),0x8)),db[_0x1a064c('0x3a')]['create'](_0xf0d0e6)[_0x1a064c('0x34')](function(_0x314916){const _0x3f8e84=_0x1a064c,_0x1b0027={'role':_0x8b1e7f[_0x3f8e84('0x66')][_0x3f8e84('0x51')],'userProfileId':_0x8b1e7f['body']['userProfileId']};if(!_0x1b0027)throw new Error(_0x3f8e84('0x62'));if(_0x1b0027['role']===_0x3f8e84('0x5')){const _0x33b630=_0x314916[_0x3f8e84('0x3c')]({'plain':!![]});return db[_0x3f8e84('0x14')][_0x3f8e84('0x54')]({'where':{'name':_0x3f8e84('0x2'),'userProfileId':_0x1b0027[_0x3f8e84('0x18')]},'raw':!![]})['then'](function(_0x436b0e){const _0x425d4b=_0x3f8e84;return _0x436b0e&&_0x436b0e['autoAssociation']===0x0?db[_0x425d4b('0x8')]['create']({'name':_0x33b630[_0x425d4b('0x0')],'resourceId':_0x33b630['id'],'type':_0x436b0e[_0x425d4b('0x0')],'sectionId':_0x436b0e['id']},{})['then'](function(){return _0x314916;}):_0x314916;})[_0x3f8e84('0x46')](function(_0x48daa3){const _0x3fb22d=_0x3f8e84;logger[_0x3fb22d('0xb')](_0x3fb22d('0x52'),_0x48daa3);throw _0x48daa3;});}return _0x314916;})[_0x1a064c('0x34')](respondWithResult(_0x42d2a8,null))[_0x1a064c('0x46')](handleError(_0x42d2a8,null));}),_0x3836be[_0x57c444('0x4f')]();}catch(_0x362914){_0x42d2a8[_0x57c444('0x4c')](0x1f4)['send'](_0x362914);}},exports['update']=function(_0x2b3525,_0x4bbac4){const _0x2f4bad=_0x4464aa;return db[_0x2f4bad('0x3a')][_0x2f4bad('0x54')]({'where':{'id':_0x2b3525[_0x2f4bad('0x28')]['id']}})['then'](handleEntityNotFound(_0x4bbac4,null))[_0x2f4bad('0x34')](saveUpdates(_[_0x2f4bad('0x6')](_0x2b3525[_0x2f4bad('0x66')],[_0x2f4bad('0x0'),'description']),null))[_0x2f4bad('0x34')](respondWithResult(_0x4bbac4,null))['catch'](handleError(_0x4bbac4,null));},exports['delete']=function(_0x53a8d5,_0x7d0392){const _0x43bcb1=_0x4464aa;return db[_0x43bcb1('0x3a')][_0x43bcb1('0x54')]({'where':{'id':_0x53a8d5['params']['id']}})[_0x43bcb1('0x34')](function(_0x4cb7b4){if(_0x4cb7b4)return _0x4cb7b4['destroy']();})[_0x43bcb1('0x34')](function(_0x5d34cf){const _0x5820b0=_0x43bcb1,_0x2fe091=path[_0x5820b0('0x67')](config[_0x5820b0('0x2c')],_0x5820b0('0x5e'),util[_0x5820b0('0x2f')](_0x5820b0('0x61'),_0x5d34cf[_0x5820b0('0x19')],_0x5d34cf[_0x5820b0('0x29')])),_0x1deb84=path[_0x5820b0('0x67')](config['root'],_0x5820b0('0x4'),util[_0x5820b0('0x2f')](_0x5820b0('0x61'),_0x5d34cf['save_name'],_0x5d34cf[_0x5820b0('0x3f')]));return fs[_0x5820b0('0x3d')](_0x2fe091),fs[_0x5820b0('0x3d')](_0x1deb84),_0x5d34cf;})[_0x43bcb1('0x34')](function(_0xb92f40){const _0x4f59c2=_0x43bcb1;if(_0xb92f40)return _0x7d0392[_0x4f59c2('0x4c')](0xcc)[_0x4f59c2('0x59')]();})['then'](handleEntityNotFound(_0x7d0392,null))['catch'](handleError(_0x7d0392,null));}; \ No newline at end of file diff --git a/server/api/sound/sound.model.js b/server/api/sound/sound.model.js index 12da250..dfb040d 100644 --- a/server/api/sound/sound.model.js +++ b/server/api/sound/sound.model.js @@ -1 +1 @@ -const a584_0x5187=['exports','tools_sounds','define','Sound','./sound.attributes'];(function(_0x401d25,_0x518785){const _0x17ca3a=function(_0x5b316b){while(--_0x5b316b){_0x401d25['push'](_0x401d25['shift']());}};_0x17ca3a(++_0x518785);}(a584_0x5187,0x15b));const a584_0x17ca=function(_0x401d25,_0x518785){_0x401d25=_0x401d25-0x0;let _0x17ca3a=a584_0x5187[_0x401d25];return _0x17ca3a;};const _0x3ee762=a584_0x17ca;'use strict';const attributes=require(_0x3ee762('0x2'));module[_0x3ee762('0x3')]=function(_0x5b316b){const _0x55e9b7=_0x3ee762,_0x4eb0e4=_0x5b316b[_0x55e9b7('0x0')](_0x55e9b7('0x1'),attributes,{'tableName':_0x55e9b7('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4eb0e4;}; \ No newline at end of file +const a584_0x4612=['exports','tools_sounds','Sound','./sound.attributes','define'];(function(_0x5b3770,_0x461211){const _0x18dc02=function(_0x25ceff){while(--_0x25ceff){_0x5b3770['push'](_0x5b3770['shift']());}};_0x18dc02(++_0x461211);}(a584_0x4612,0x171));const a584_0x18dc=function(_0x5b3770,_0x461211){_0x5b3770=_0x5b3770-0x0;let _0x18dc02=a584_0x4612[_0x5b3770];return _0x18dc02;};const _0x3e15f7=a584_0x18dc;'use strict';const attributes=require(_0x3e15f7('0x4'));module[_0x3e15f7('0x1')]=function(_0x25ceff){const _0x4e3699=_0x3e15f7,_0x4cf218=_0x25ceff[_0x4e3699('0x0')](_0x4e3699('0x3'),attributes,{'tableName':_0x4e3699('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4cf218;}; \ No newline at end of file diff --git a/server/api/sound/sound.rpc.js b/server/api/sound/sound.rpc.js index d611e38..749a332 100644 --- a/server/api/sound/sound.rpc.js +++ b/server/api/sound/sound.rpc.js @@ -1 +1 @@ -const a585_0xfcff=['attributes','ShowSound','info','include','error','then','rpc','message','model','options','../../mysqldb','where','map'];(function(_0x13b83f,_0xfcff59){const _0x4c747e=function(_0x2b27d4){while(--_0x2b27d4){_0x13b83f['push'](_0x13b83f['shift']());}};_0x4c747e(++_0xfcff59);}(a585_0xfcff,0x1e0));const a585_0x4c74=function(_0x13b83f,_0xfcff59){_0x13b83f=_0x13b83f-0x0;let _0x4c747e=a585_0xfcff[_0x13b83f];return _0x4c747e;};const _0x31bf60=a585_0x4c74;'use strict';const db=require(_0x31bf60('0xb'))['db'],logger=require('../../config/logger')(_0x31bf60('0x7')),_=require('lodash');exports['ShowSound']=function(_0x2b27d4){const _0x4fa291=this;return new Promise(function(_0x97ded2,_0x282cbf){const _0x579344=a585_0x4c74;return db['Sound']['findOne']({'raw':_0x2b27d4[_0x579344('0xa')]?_0x2b27d4[_0x579344('0xa')]['raw']===undefined?!![]:![]:!![],'where':_0x2b27d4[_0x579344('0xa')]?_0x2b27d4[_0x579344('0xa')][_0x579344('0xc')]||null:null,'attributes':_0x2b27d4[_0x579344('0xa')]?_0x2b27d4[_0x579344('0xa')][_0x579344('0x1')]||null:null,'include':_0x2b27d4['options']?_0x2b27d4['options'][_0x579344('0x4')]?_[_0x579344('0x0')](_0x2b27d4[_0x579344('0xa')]['include'],function(_0x464adf){const _0x16ee42=_0x579344;return{'model':db[_0x464adf[_0x16ee42('0x9')]],'as':_0x464adf['as'],'attributes':_0x464adf[_0x16ee42('0x1')],'include':_0x464adf['include']?_[_0x16ee42('0x0')](_0x464adf[_0x16ee42('0x4')],function(_0x4476c9){const _0x3dda9c=_0x16ee42;return{'model':db[_0x4476c9[_0x3dda9c('0x9')]],'as':_0x4476c9['as'],'attributes':_0x4476c9['attributes'],'include':_0x4476c9[_0x3dda9c('0x4')]?_[_0x3dda9c('0x0')](_0x4476c9[_0x3dda9c('0x4')],function(_0x1ebb5c){const _0x4da8bc=_0x3dda9c;return{'model':db[_0x1ebb5c['model']],'as':_0x1ebb5c['as'],'attributes':_0x1ebb5c[_0x4da8bc('0x1')]};}):[]};}):[]};}):[]:[]})[_0x579344('0x6')](function(_0x4d8523){const _0x41e3cd=_0x579344;logger[_0x41e3cd('0x3')](_0x41e3cd('0x2'),_0x2b27d4),logger['debug'](_0x41e3cd('0x2'),_0x2b27d4,JSON['stringify'](_0x4d8523)),_0x97ded2(_0x4d8523);})['catch'](function(_0x1350fb){const _0x2b58f6=_0x579344;logger[_0x2b58f6('0x5')](_0x2b58f6('0x2'),_0x1350fb[_0x2b58f6('0x8')],_0x2b27d4),_0x282cbf(_0x4fa291[_0x2b58f6('0x5')](0x1f4,_0x1350fb['message']));});});}; \ No newline at end of file +const a585_0x4cab=['include','options','message','findOne','ShowSound','error','../../mysqldb','info','stringify','where','raw','map','model','catch','../../config/logger','attributes'];(function(_0x34c35b,_0x4cab97){const _0x58d6f3=function(_0x464055){while(--_0x464055){_0x34c35b['push'](_0x34c35b['shift']());}};_0x58d6f3(++_0x4cab97);}(a585_0x4cab,0x9f));const a585_0x58d6=function(_0x34c35b,_0x4cab97){_0x34c35b=_0x34c35b-0x0;let _0x58d6f3=a585_0x4cab[_0x34c35b];return _0x58d6f3;};const _0x45f901=a585_0x58d6;'use strict';const db=require(_0x45f901('0x7'))['db'],logger=require(_0x45f901('0xf'))('rpc'),_=require('lodash');exports[_0x45f901('0x5')]=function(_0x464055){const _0x67db17=this;return new Promise(function(_0x22cdd9,_0x26c441){const _0x21d200=a585_0x58d6;return db['Sound'][_0x21d200('0x4')]({'raw':_0x464055[_0x21d200('0x2')]?_0x464055[_0x21d200('0x2')][_0x21d200('0xb')]===undefined?!![]:![]:!![],'where':_0x464055['options']?_0x464055[_0x21d200('0x2')][_0x21d200('0xa')]||null:null,'attributes':_0x464055[_0x21d200('0x2')]?_0x464055[_0x21d200('0x2')][_0x21d200('0x0')]||null:null,'include':_0x464055[_0x21d200('0x2')]?_0x464055[_0x21d200('0x2')][_0x21d200('0x1')]?_['map'](_0x464055[_0x21d200('0x2')]['include'],function(_0x1ba62d){const _0x5cfa7d=_0x21d200;return{'model':db[_0x1ba62d[_0x5cfa7d('0xd')]],'as':_0x1ba62d['as'],'attributes':_0x1ba62d[_0x5cfa7d('0x0')],'include':_0x1ba62d['include']?_[_0x5cfa7d('0xc')](_0x1ba62d['include'],function(_0x72eb3){const _0x1dff11=_0x5cfa7d;return{'model':db[_0x72eb3[_0x1dff11('0xd')]],'as':_0x72eb3['as'],'attributes':_0x72eb3[_0x1dff11('0x0')],'include':_0x72eb3[_0x1dff11('0x1')]?_['map'](_0x72eb3[_0x1dff11('0x1')],function(_0x355029){const _0x47e12d=_0x1dff11;return{'model':db[_0x355029[_0x47e12d('0xd')]],'as':_0x355029['as'],'attributes':_0x355029[_0x47e12d('0x0')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x34a05b){const _0x39698b=_0x21d200;logger[_0x39698b('0x8')](_0x39698b('0x5'),_0x464055),logger['debug'](_0x39698b('0x5'),_0x464055,JSON[_0x39698b('0x9')](_0x34a05b)),_0x22cdd9(_0x34a05b);})[_0x21d200('0xe')](function(_0x1143f5){const _0x479b0f=_0x21d200;logger['error'](_0x479b0f('0x5'),_0x1143f5[_0x479b0f('0x3')],_0x464055),_0x26c441(_0x67db17[_0x479b0f('0x6')](0x1f4,_0x1143f5['message']));});});}; \ No newline at end of file diff --git a/server/api/squareMessage/index.js b/server/api/squareMessage/index.js index 75aeca4..2b843ec 100644 --- a/server/api/squareMessage/index.js +++ b/server/api/squareMessage/index.js @@ -1 +1 @@ -const a586_0x3744=['get','show','express','index','/:id','./squareMessage.controller','create','isAuthenticated','destroy','put','Router'];(function(_0x9ecd6b,_0x374413){const _0x3c60ef=function(_0xe2afe4){while(--_0xe2afe4){_0x9ecd6b['push'](_0x9ecd6b['shift']());}};_0x3c60ef(++_0x374413);}(a586_0x3744,0x1af));const a586_0x3c60=function(_0x9ecd6b,_0x374413){_0x9ecd6b=_0x9ecd6b-0x0;let _0x3c60ef=a586_0x3744[_0x9ecd6b];return _0x3c60ef;};const _0x25e061=a586_0x3c60;'use strict';const express=require(_0x25e061('0x0')),router=express[_0x25e061('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x25e061('0x3'));router[_0x25e061('0x9')]('/',auth[_0x25e061('0x5')](),controller[_0x25e061('0x1')]),router[_0x25e061('0x9')](_0x25e061('0x2'),auth[_0x25e061('0x5')](),controller[_0x25e061('0xa')]),router['post']('/',auth['isAuthenticated'](),controller[_0x25e061('0x4')]),router[_0x25e061('0x7')](_0x25e061('0x2'),auth[_0x25e061('0x5')](),controller['update']),router['delete']('/:id',auth[_0x25e061('0x5')](),controller[_0x25e061('0x6')]),module['exports']=router; \ No newline at end of file +const a586_0x17bf=['destroy','delete','isAuthenticated','Router','show','../../components/auth/service','./squareMessage.controller','create','get','exports','/:id','index'];(function(_0x3d2304,_0x17bf14){const _0x4570a9=function(_0x50011b){while(--_0x50011b){_0x3d2304['push'](_0x3d2304['shift']());}};_0x4570a9(++_0x17bf14);}(a586_0x17bf,0xe7));const a586_0x4570=function(_0x3d2304,_0x17bf14){_0x3d2304=_0x3d2304-0x0;let _0x4570a9=a586_0x17bf[_0x3d2304];return _0x4570a9;};const _0x200fb9=a586_0x4570;'use strict';const express=require('express'),router=express[_0x200fb9('0x0')](),auth=require(_0x200fb9('0x2')),controller=require(_0x200fb9('0x3'));router['get']('/',auth[_0x200fb9('0xb')](),controller[_0x200fb9('0x8')]),router[_0x200fb9('0x5')](_0x200fb9('0x7'),auth[_0x200fb9('0xb')](),controller[_0x200fb9('0x1')]),router['post']('/',auth[_0x200fb9('0xb')](),controller[_0x200fb9('0x4')]),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router[_0x200fb9('0xa')](_0x200fb9('0x7'),auth[_0x200fb9('0xb')](),controller[_0x200fb9('0x9')]),module[_0x200fb9('0x6')]=router; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.attributes.js b/server/api/squareMessage/squareMessage.attributes.js index 9d93005..3d45596 100644 --- a/server/api/squareMessage/squareMessage.attributes.js +++ b/server/api/squareMessage/squareMessage.attributes.js @@ -1 +1 @@ -const a587_0x3df2=['exports','STRING','out','medium','ENUM','sequelize'];(function(_0x50201a,_0x3df242){const _0x40c130=function(_0x42cf72){while(--_0x42cf72){_0x50201a['push'](_0x50201a['shift']());}};_0x40c130(++_0x3df242);}(a587_0x3df2,0xf6));const a587_0x40c1=function(_0x50201a,_0x3df242){_0x50201a=_0x50201a-0x0;let _0x40c130=a587_0x3df2[_0x50201a];return _0x40c130;};const _0x2fdee9=a587_0x40c1;'use strict';const Sequelize=require(_0x2fdee9('0x5'));module[_0x2fdee9('0x0')]={'uniqueid':{'type':Sequelize[_0x2fdee9('0x1')]},'body':{'type':Sequelize['TEXT'](_0x2fdee9('0x3')),'allowNull':![]},'direction':{'type':Sequelize[_0x2fdee9('0x4')]('in',_0x2fdee9('0x2')),'defaultValue':_0x2fdee9('0x2'),'allowNull':![]}}; \ No newline at end of file +const a587_0xdc39=['out','ENUM','exports','sequelize','TEXT'];(function(_0x11b808,_0xdc3922){const _0x5b81dd=function(_0x174da0){while(--_0x174da0){_0x11b808['push'](_0x11b808['shift']());}};_0x5b81dd(++_0xdc3922);}(a587_0xdc39,0x167));const a587_0x5b81=function(_0x11b808,_0xdc3922){_0x11b808=_0x11b808-0x0;let _0x5b81dd=a587_0xdc39[_0x11b808];return _0x5b81dd;};const _0x74ac88=a587_0x5b81;'use strict';const Sequelize=require(_0x74ac88('0x4'));module[_0x74ac88('0x3')]={'uniqueid':{'type':Sequelize['STRING']},'body':{'type':Sequelize[_0x74ac88('0x0')]('medium'),'allowNull':![]},'direction':{'type':Sequelize[_0x74ac88('0x2')]('in',_0x74ac88('0x1')),'defaultValue':_0x74ac88('0x1'),'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.controller.js b/server/api/squareMessage/squareMessage.controller.js index 3d323ef..85b7bcb 100644 --- a/server/api/squareMessage/squareMessage.controller.js +++ b/server/api/squareMessage/squareMessage.controller.js @@ -1 +1 @@ -const a588_0x282f=['sequelize','where','set','rawAttributes','Content-Range','update','pick','end','offset','create','map','options','findOne','key','then','limit','order','error','intersection','destroy','includeAll','length','VIRTUAL','filters','json','fields','filter','../../config/logger','rows','../../mysqldb','like','model','send','findAll','SquareMessage','sort','include','catch','index','body','merge','api','name','params','status','attributes','query','show','keys','type','count','stack'];(function(_0x336269,_0x282f74){const _0x2b15ad=function(_0x36a84c){while(--_0x36a84c){_0x336269['push'](_0x336269['shift']());}};_0x2b15ad(++_0x282f74);}(a588_0x282f,0x133));const a588_0x2b15=function(_0x336269,_0x282f74){_0x336269=_0x336269-0x0;let _0x2b15ad=a588_0x282f[_0x336269];return _0x2b15ad;};const _0x32e49f=a588_0x2b15;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x32e49f('0x20'))(_0x32e49f('0x2e')),db=require(_0x32e49f('0x22'))['db'],{Op}=require(_0x32e49f('0x5'));function respondWithResult(_0x36a84c,_0x5972a1){return _0x5972a1=_0x5972a1||0xc8,function(_0x42f781){const _0x5ee0e4=a588_0x2b15;if(_0x42f781)return _0x36a84c[_0x5ee0e4('0x31')](_0x5972a1)['json'](_0x42f781);};}function respondWithFilteredResult(_0x2e53e5,_0x326357){return function(_0x5e86bb){const _0x44ea7d=a588_0x2b15;if(_0x5e86bb){const _0x19aba1=_0x5e86bb[_0x44ea7d('0x3')],_0x388a33=_0x326357[_0x44ea7d('0xd')];let _0x562d28=_0x326357[_0x44ea7d('0xd')]+_0x326357[_0x44ea7d('0x14')],_0x20e98e;return _0x562d28>=_0x19aba1?(_0x562d28=_0x19aba1,_0x20e98e=0xc8):_0x20e98e=0xce,_0x2e53e5[_0x44ea7d('0x31')](_0x20e98e),_0x2e53e5[_0x44ea7d('0x7')](_0x44ea7d('0x9'),_0x388a33+'-'+_0x562d28+'/'+_0x19aba1)[_0x44ea7d('0x1d')](_0x5e86bb);}return null;};}function saveUpdates(_0x3beb3d){return function(_0x3dee2f){const _0x18f313=a588_0x2b15;if(_0x3dee2f)return _0x3dee2f[_0x18f313('0xa')](_0x3beb3d)['then'](function(_0xafa1c8){return _0xafa1c8;});return null;};}function removeEntity(_0x170c1c){return function(_0x29df20){const _0x544145=a588_0x2b15;if(_0x29df20)return _0x29df20[_0x544145('0x18')]()[_0x544145('0x13')](function(){const _0x3f6207=_0x544145;_0x170c1c['status'](0xcc)[_0x3f6207('0xc')]();});};}function handleEntityNotFound(_0x47fb80){return function(_0x310ce3){return!_0x310ce3&&_0x47fb80['sendStatus'](0x194),_0x310ce3;};}function handleError(_0x3b2616,_0x2678eb){return _0x2678eb=_0x2678eb||0x1f4,function(_0xc6fd43){const _0x1c792=a588_0x2b15;logger[_0x1c792('0x16')](_0xc6fd43[_0x1c792('0x4')]),_0xc6fd43[_0x1c792('0x2f')]&&delete _0xc6fd43[_0x1c792('0x2f')],_0x3b2616[_0x1c792('0x31')](_0x2678eb)[_0x1c792('0x25')](_0xc6fd43);};}exports[_0x32e49f('0x2b')]=function(_0xcbbc22,_0x483078){const _0x14ffbc=_0x32e49f;let _0x32d805={};const _0x55113a={},_0x2aec0f={'count':0x0,'rows':[]},_0x1f1d39=_[_0x14ffbc('0xf')](db[_0x14ffbc('0x27')][_0x14ffbc('0x8')],function(_0x261f1d){const _0x717202=_0x14ffbc;return{'name':_0x261f1d['fieldName'],'type':_0x261f1d[_0x717202('0x2')][_0x717202('0x12')]};});_0x55113a[_0x14ffbc('0x24')]=_[_0x14ffbc('0xf')](_0x1f1d39,_0x14ffbc('0x2f')),_0x55113a['query']=_[_0x14ffbc('0x1')](_0xcbbc22[_0x14ffbc('0x33')]),_0x55113a[_0x14ffbc('0x1c')]=_['intersection'](_0x55113a[_0x14ffbc('0x24')],_0x55113a['query']),_0x32d805[_0x14ffbc('0x32')]=_[_0x14ffbc('0x17')](_0x55113a[_0x14ffbc('0x24')],qs[_0x14ffbc('0x1e')](_0xcbbc22['query'][_0x14ffbc('0x1e')])),_0x32d805[_0x14ffbc('0x32')]=_0x32d805['attributes']['length']?_0x32d805[_0x14ffbc('0x32')]:_0x55113a[_0x14ffbc('0x24')];typeof _0xcbbc22['query']['nolimit']==='undefined'&&(_0x32d805['limit']=qs[_0x14ffbc('0x14')](_0xcbbc22['query'][_0x14ffbc('0x14')]),_0x32d805[_0x14ffbc('0xd')]=qs[_0x14ffbc('0xd')](_0xcbbc22[_0x14ffbc('0x33')]['offset']));_0x32d805[_0x14ffbc('0x15')]=qs[_0x14ffbc('0x28')](_0xcbbc22[_0x14ffbc('0x33')][_0x14ffbc('0x28')]),_0x32d805['where']=qs[_0x14ffbc('0x1c')](_[_0x14ffbc('0xb')](_0xcbbc22[_0x14ffbc('0x33')],_0x55113a[_0x14ffbc('0x1c')]),_0x1f1d39);_0xcbbc22['query']['filter']&&(_0x32d805[_0x14ffbc('0x6')]=_[_0x14ffbc('0x2d')](_0x32d805[_0x14ffbc('0x6')],{[Op['or']]:_[_0x14ffbc('0xf')](_0x1f1d39,function(_0x29f683){const _0xae3103=_0x14ffbc;if(_0x29f683[_0xae3103('0x2')]!==_0xae3103('0x1b')){const _0x9162a2={};return _0x9162a2[_0x29f683[_0xae3103('0x2f')]]={[Op[_0xae3103('0x23')]]:'%'+_0xcbbc22['query'][_0xae3103('0x1f')]+'%'},_0x9162a2;}})}));_0x32d805=_['merge']({},_0x32d805,_0xcbbc22[_0x14ffbc('0x10')]);const _0x2458d2={'where':_0x32d805[_0x14ffbc('0x6')]};return db[_0x14ffbc('0x27')]['count'](_0x2458d2)[_0x14ffbc('0x13')](function(_0x23c919){const _0x6f6f0d=_0x14ffbc;return _0x2aec0f[_0x6f6f0d('0x3')]=_0x23c919,_0xcbbc22['query'][_0x6f6f0d('0x19')]&&(_0x32d805['include']=[{'all':!![]}]),db[_0x6f6f0d('0x27')][_0x6f6f0d('0x26')](_0x32d805);})[_0x14ffbc('0x13')](function(_0x4b17e8){const _0x518247=_0x14ffbc;return _0x2aec0f[_0x518247('0x21')]=_0x4b17e8,_0x2aec0f;})[_0x14ffbc('0x13')](respondWithFilteredResult(_0x483078,_0x32d805))['catch'](handleError(_0x483078,null));},exports[_0x32e49f('0x0')]=function(_0x5a8147,_0x46df18){const _0x2b1945=_0x32e49f;let _0x35a53f={'raw':!![],'where':{'id':_0x5a8147['params']['id']}};const _0x309607={};return _0x309607[_0x2b1945('0x24')]=_[_0x2b1945('0x1')](db[_0x2b1945('0x27')][_0x2b1945('0x8')]),_0x309607[_0x2b1945('0x33')]=_[_0x2b1945('0x1')](_0x5a8147['query']),_0x309607[_0x2b1945('0x1c')]=_[_0x2b1945('0x17')](_0x309607[_0x2b1945('0x24')],_0x309607[_0x2b1945('0x33')]),_0x35a53f[_0x2b1945('0x32')]=_[_0x2b1945('0x17')](_0x309607[_0x2b1945('0x24')],qs[_0x2b1945('0x1e')](_0x5a8147[_0x2b1945('0x33')][_0x2b1945('0x1e')])),_0x35a53f['attributes']=_0x35a53f[_0x2b1945('0x32')][_0x2b1945('0x1a')]?_0x35a53f[_0x2b1945('0x32')]:_0x309607[_0x2b1945('0x24')],_0x5a8147['query'][_0x2b1945('0x19')]&&(_0x35a53f[_0x2b1945('0x29')]=[{'all':!![]}]),_0x35a53f=_[_0x2b1945('0x2d')]({},_0x35a53f,_0x5a8147[_0x2b1945('0x10')]),db[_0x2b1945('0x27')]['findOne'](_0x35a53f)[_0x2b1945('0x13')](handleEntityNotFound(_0x46df18,null))[_0x2b1945('0x13')](respondWithResult(_0x46df18,null))[_0x2b1945('0x2a')](handleError(_0x46df18,null));},exports[_0x32e49f('0xe')]=function(_0x5a5ed3,_0x3dd2a6){const _0x40d011=_0x32e49f;return db['SquareMessage']['create'](_0x5a5ed3['body'],{})[_0x40d011('0x13')](respondWithResult(_0x3dd2a6,0xc9))[_0x40d011('0x2a')](handleError(_0x3dd2a6,null));},exports[_0x32e49f('0xa')]=function(_0x4c1557,_0x4fa9d3){const _0x11183c=_0x32e49f;return _0x4c1557[_0x11183c('0x2c')]['id']&&delete _0x4c1557[_0x11183c('0x2c')]['id'],db[_0x11183c('0x27')][_0x11183c('0x11')]({'where':{'id':_0x4c1557[_0x11183c('0x30')]['id']}})[_0x11183c('0x13')](handleEntityNotFound(_0x4fa9d3,null))[_0x11183c('0x13')](saveUpdates(_0x4c1557['body'],null))['then'](respondWithResult(_0x4fa9d3,null))[_0x11183c('0x2a')](handleError(_0x4fa9d3,null));},exports[_0x32e49f('0x18')]=function(_0x761d9,_0x5a9f1f){const _0x4302cf=_0x32e49f;return db['SquareMessage'][_0x4302cf('0x11')]({'where':{'id':_0x761d9['params']['id']}})[_0x4302cf('0x13')](handleEntityNotFound(_0x5a9f1f,null))['then'](removeEntity(_0x5a9f1f,null))[_0x4302cf('0x2a')](handleError(_0x5a9f1f,null));}; \ No newline at end of file +const a588_0x174e=['findAll','findOne','intersection','api','error','offset','map','fieldName','lodash','destroy','keys','rows','limit','type','sendStatus','then','options','undefined','pick','merge','send','name','update','includeAll','attributes','key','../../config/logger','json','filter','sequelize','Content-Range','stack','SquareMessage','filters','create','count','../../components/parsers/qs','rawAttributes','params','sort','where','query','model','length','nolimit','fields','VIRTUAL','catch','status','body','like','order','show'];(function(_0x81a52d,_0x174e54){const _0x1bb830=function(_0x128199){while(--_0x128199){_0x81a52d['push'](_0x81a52d['shift']());}};_0x1bb830(++_0x174e54);}(a588_0x174e,0xfe));const a588_0x1bb8=function(_0x81a52d,_0x174e54){_0x81a52d=_0x81a52d-0x0;let _0x1bb830=a588_0x174e[_0x81a52d];return _0x1bb830;};const _0x5cceb1=a588_0x1bb8;'use strict';const _=require(_0x5cceb1('0x13')),qs=require(_0x5cceb1('0x2f')),logger=require(_0x5cceb1('0x25'))(_0x5cceb1('0xe')),db=require('../../mysqldb')['db'],{Op}=require(_0x5cceb1('0x28'));function respondWithResult(_0x128199,_0x45f487){return _0x45f487=_0x45f487||0xc8,function(_0x372d1c){const _0x5629df=a588_0x1bb8;if(_0x372d1c)return _0x128199[_0x5629df('0x6')](_0x45f487)[_0x5629df('0x26')](_0x372d1c);};}function respondWithFilteredResult(_0x5858a2,_0x2d256d){return function(_0x59964e){const _0x4f40de=a588_0x1bb8;if(_0x59964e){const _0x11c85f=_0x59964e[_0x4f40de('0x2e')],_0xb38dc=_0x2d256d['offset'];let _0x2de881=_0x2d256d[_0x4f40de('0x10')]+_0x2d256d['limit'],_0x4b6a7b;return _0x2de881>=_0x11c85f?(_0x2de881=_0x11c85f,_0x4b6a7b=0xc8):_0x4b6a7b=0xce,_0x5858a2[_0x4f40de('0x6')](_0x4b6a7b),_0x5858a2['set'](_0x4f40de('0x29'),_0xb38dc+'-'+_0x2de881+'/'+_0x11c85f)[_0x4f40de('0x26')](_0x59964e);}return null;};}function saveUpdates(_0x9bfcd3){return function(_0x314f4d){const _0x221026=a588_0x1bb8;if(_0x314f4d)return _0x314f4d[_0x221026('0x21')](_0x9bfcd3)['then'](function(_0x365099){return _0x365099;});return null;};}function removeEntity(_0x4ecf5f){return function(_0x460b74){const _0x2b7dd5=a588_0x1bb8;if(_0x460b74)return _0x460b74[_0x2b7dd5('0x14')]()[_0x2b7dd5('0x1a')](function(){const _0x428f7a=_0x2b7dd5;_0x4ecf5f[_0x428f7a('0x6')](0xcc)['end']();});};}function handleEntityNotFound(_0x5f07f2){return function(_0x4bbd07){const _0x52603b=a588_0x1bb8;return!_0x4bbd07&&_0x5f07f2[_0x52603b('0x19')](0x194),_0x4bbd07;};}function handleError(_0x5e4441,_0x9b08e4){return _0x9b08e4=_0x9b08e4||0x1f4,function(_0x37b3ab){const _0x389f1a=a588_0x1bb8;logger[_0x389f1a('0xf')](_0x37b3ab[_0x389f1a('0x2a')]),_0x37b3ab[_0x389f1a('0x20')]&&delete _0x37b3ab[_0x389f1a('0x20')],_0x5e4441[_0x389f1a('0x6')](_0x9b08e4)[_0x389f1a('0x1f')](_0x37b3ab);};}exports['index']=function(_0x376afb,_0x497938){const _0x59142c=_0x5cceb1;let _0x365ace={};const _0x1352b0={},_0x2dcd02={'count':0x0,'rows':[]},_0xe9f40a=_['map'](db[_0x59142c('0x2b')]['rawAttributes'],function(_0x5b82eb){const _0xf693ab=_0x59142c;return{'name':_0x5b82eb[_0xf693ab('0x12')],'type':_0x5b82eb[_0xf693ab('0x18')][_0xf693ab('0x24')]};});_0x1352b0[_0x59142c('0x0')]=_[_0x59142c('0x11')](_0xe9f40a,_0x59142c('0x20')),_0x1352b0[_0x59142c('0x34')]=_[_0x59142c('0x15')](_0x376afb['query']),_0x1352b0[_0x59142c('0x2c')]=_['intersection'](_0x1352b0[_0x59142c('0x0')],_0x1352b0[_0x59142c('0x34')]),_0x365ace[_0x59142c('0x23')]=_['intersection'](_0x1352b0[_0x59142c('0x0')],qs[_0x59142c('0x3')](_0x376afb[_0x59142c('0x34')]['fields'])),_0x365ace[_0x59142c('0x23')]=_0x365ace['attributes'][_0x59142c('0x1')]?_0x365ace[_0x59142c('0x23')]:_0x1352b0[_0x59142c('0x0')];typeof _0x376afb[_0x59142c('0x34')][_0x59142c('0x2')]===_0x59142c('0x1c')&&(_0x365ace[_0x59142c('0x17')]=qs[_0x59142c('0x17')](_0x376afb[_0x59142c('0x34')][_0x59142c('0x17')]),_0x365ace['offset']=qs[_0x59142c('0x10')](_0x376afb[_0x59142c('0x34')][_0x59142c('0x10')]));_0x365ace[_0x59142c('0x9')]=qs[_0x59142c('0x32')](_0x376afb[_0x59142c('0x34')][_0x59142c('0x32')]),_0x365ace[_0x59142c('0x33')]=qs[_0x59142c('0x2c')](_[_0x59142c('0x1d')](_0x376afb[_0x59142c('0x34')],_0x1352b0[_0x59142c('0x2c')]),_0xe9f40a);_0x376afb[_0x59142c('0x34')][_0x59142c('0x27')]&&(_0x365ace[_0x59142c('0x33')]=_['merge'](_0x365ace[_0x59142c('0x33')],{[Op['or']]:_[_0x59142c('0x11')](_0xe9f40a,function(_0x17833f){const _0x2be7f4=_0x59142c;if(_0x17833f[_0x2be7f4('0x18')]!==_0x2be7f4('0x4')){const _0x552d8a={};return _0x552d8a[_0x17833f['name']]={[Op[_0x2be7f4('0x8')]]:'%'+_0x376afb[_0x2be7f4('0x34')][_0x2be7f4('0x27')]+'%'},_0x552d8a;}})}));_0x365ace=_[_0x59142c('0x1e')]({},_0x365ace,_0x376afb['options']);const _0xcf76a2={'where':_0x365ace[_0x59142c('0x33')]};return db['SquareMessage'][_0x59142c('0x2e')](_0xcf76a2)[_0x59142c('0x1a')](function(_0x1728e5){const _0x5e9a8f=_0x59142c;return _0x2dcd02[_0x5e9a8f('0x2e')]=_0x1728e5,_0x376afb[_0x5e9a8f('0x34')][_0x5e9a8f('0x22')]&&(_0x365ace['include']=[{'all':!![]}]),db['SquareMessage'][_0x5e9a8f('0xb')](_0x365ace);})[_0x59142c('0x1a')](function(_0x3277f9){const _0x340e89=_0x59142c;return _0x2dcd02[_0x340e89('0x16')]=_0x3277f9,_0x2dcd02;})[_0x59142c('0x1a')](respondWithFilteredResult(_0x497938,_0x365ace))[_0x59142c('0x5')](handleError(_0x497938,null));},exports[_0x5cceb1('0xa')]=function(_0x59d256,_0x20301e){const _0x1e803a=_0x5cceb1;let _0x2bdffb={'raw':!![],'where':{'id':_0x59d256[_0x1e803a('0x31')]['id']}};const _0x1e6d37={};return _0x1e6d37['model']=_['keys'](db[_0x1e803a('0x2b')][_0x1e803a('0x30')]),_0x1e6d37[_0x1e803a('0x34')]=_[_0x1e803a('0x15')](_0x59d256[_0x1e803a('0x34')]),_0x1e6d37[_0x1e803a('0x2c')]=_['intersection'](_0x1e6d37[_0x1e803a('0x0')],_0x1e6d37[_0x1e803a('0x34')]),_0x2bdffb[_0x1e803a('0x23')]=_[_0x1e803a('0xd')](_0x1e6d37[_0x1e803a('0x0')],qs[_0x1e803a('0x3')](_0x59d256[_0x1e803a('0x34')][_0x1e803a('0x3')])),_0x2bdffb[_0x1e803a('0x23')]=_0x2bdffb[_0x1e803a('0x23')]['length']?_0x2bdffb[_0x1e803a('0x23')]:_0x1e6d37[_0x1e803a('0x0')],_0x59d256[_0x1e803a('0x34')][_0x1e803a('0x22')]&&(_0x2bdffb['include']=[{'all':!![]}]),_0x2bdffb=_[_0x1e803a('0x1e')]({},_0x2bdffb,_0x59d256[_0x1e803a('0x1b')]),db[_0x1e803a('0x2b')][_0x1e803a('0xc')](_0x2bdffb)['then'](handleEntityNotFound(_0x20301e,null))[_0x1e803a('0x1a')](respondWithResult(_0x20301e,null))[_0x1e803a('0x5')](handleError(_0x20301e,null));},exports[_0x5cceb1('0x2d')]=function(_0x431dd3,_0x19bc02){const _0x18dc2c=_0x5cceb1;return db[_0x18dc2c('0x2b')][_0x18dc2c('0x2d')](_0x431dd3[_0x18dc2c('0x7')],{})['then'](respondWithResult(_0x19bc02,0xc9))['catch'](handleError(_0x19bc02,null));},exports['update']=function(_0x406cb0,_0x1c356a){const _0x3af425=_0x5cceb1;return _0x406cb0['body']['id']&&delete _0x406cb0[_0x3af425('0x7')]['id'],db[_0x3af425('0x2b')][_0x3af425('0xc')]({'where':{'id':_0x406cb0['params']['id']}})[_0x3af425('0x1a')](handleEntityNotFound(_0x1c356a,null))[_0x3af425('0x1a')](saveUpdates(_0x406cb0[_0x3af425('0x7')],null))['then'](respondWithResult(_0x1c356a,null))[_0x3af425('0x5')](handleError(_0x1c356a,null));},exports[_0x5cceb1('0x14')]=function(_0x1ee0e8,_0x149f42){const _0x15dd45=_0x5cceb1;return db[_0x15dd45('0x2b')]['findOne']({'where':{'id':_0x1ee0e8[_0x15dd45('0x31')]['id']}})[_0x15dd45('0x1a')](handleEntityNotFound(_0x149f42,null))[_0x15dd45('0x1a')](removeEntity(_0x149f42,null))[_0x15dd45('0x5')](handleError(_0x149f42,null));}; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.model.js b/server/api/squareMessage/squareMessage.model.js index 7a9e840..767db6c 100644 --- a/server/api/squareMessage/squareMessage.model.js +++ b/server/api/squareMessage/squareMessage.model.js @@ -1 +1 @@ -const a589_0x43ff=['./squareMessage.attributes','SquareMessage','square_messages'];(function(_0x20921e,_0x43ff2c){const _0x42899d=function(_0x3b847a){while(--_0x3b847a){_0x20921e['push'](_0x20921e['shift']());}};_0x42899d(++_0x43ff2c);}(a589_0x43ff,0x19b));const a589_0x4289=function(_0x20921e,_0x43ff2c){_0x20921e=_0x20921e-0x0;let _0x42899d=a589_0x43ff[_0x20921e];return _0x42899d;};const _0x2011ac=a589_0x4289;'use strict';const attributes=require(_0x2011ac('0x0'));module['exports']=function(_0x3b847a){const _0xad26d1=_0x2011ac,_0x2be0f1=_0x3b847a['define'](_0xad26d1('0x1'),attributes,{'tableName':_0xad26d1('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2be0f1;}; \ No newline at end of file +const a589_0xbcb0=['exports','./squareMessage.attributes','square_messages','SquareMessage','define'];(function(_0x14d4e9,_0xbcb052){const _0x11315d=function(_0xbc697b){while(--_0xbc697b){_0x14d4e9['push'](_0x14d4e9['shift']());}};_0x11315d(++_0xbcb052);}(a589_0xbcb0,0x1c8));const a589_0x1131=function(_0x14d4e9,_0xbcb052){_0x14d4e9=_0x14d4e9-0x0;let _0x11315d=a589_0xbcb0[_0x14d4e9];return _0x11315d;};const _0x26012c=a589_0x1131;'use strict';const attributes=require(_0x26012c('0x0'));module[_0x26012c('0x4')]=function(_0xbc697b){const _0x10d54c=_0x26012c,_0x2aa32d=_0xbc697b[_0x10d54c('0x3')](_0x10d54c('0x2'),attributes,{'tableName':_0x10d54c('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2aa32d;}; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.rpc.js b/server/api/squareMessage/squareMessage.rpc.js index dd31c80..9b641f1 100644 --- a/server/api/squareMessage/squareMessage.rpc.js +++ b/server/api/squareMessage/squareMessage.rpc.js @@ -1 +1 @@ -const a590_0x5bb8=['stringify','message','../../mysqldb','options','info','CreateSquareMessage','body','SquareMessage','catch','debug','create','error'];(function(_0x5d6e20,_0x5bb8ee){const _0x2174a2=function(_0x517a8a){while(--_0x517a8a){_0x5d6e20['push'](_0x5d6e20['shift']());}};_0x2174a2(++_0x5bb8ee);}(a590_0x5bb8,0x101));const a590_0x2174=function(_0x5d6e20,_0x5bb8ee){_0x5d6e20=_0x5d6e20-0x0;let _0x2174a2=a590_0x5bb8[_0x5d6e20];return _0x2174a2;};const _0xf15658=a590_0x2174;'use strict';const db=require(_0xf15658('0x9'))['db'],logger=require('../../config/logger')('rpc');exports[_0xf15658('0x0')]=function(_0x517a8a){const _0x4326be=this;return new Promise(function(_0x5d5021,_0x5e0557){const _0x4613f7=a590_0x2174;return db[_0x4613f7('0x2')][_0x4613f7('0x5')](_0x517a8a[_0x4613f7('0x1')],{'raw':_0x517a8a[_0x4613f7('0xa')]?_0x517a8a[_0x4613f7('0xa')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x413fc7){const _0x1d1f59=_0x4613f7;logger[_0x1d1f59('0xb')]('CreateSquareMessage',_0x517a8a),logger[_0x1d1f59('0x4')](_0x1d1f59('0x0'),_0x517a8a,JSON[_0x1d1f59('0x7')](_0x413fc7)),_0x5d5021(_0x413fc7);})[_0x4613f7('0x3')](function(_0x3d0f1d){const _0x17b962=_0x4613f7;logger[_0x17b962('0x6')]('CreateSquareMessage',_0x3d0f1d[_0x17b962('0x8')],_0x517a8a),_0x5e0557(_0x4326be[_0x17b962('0x6')](0x1f4,_0x3d0f1d[_0x17b962('0x8')]));});});}; \ No newline at end of file +const a590_0x42b4=['create','message','../../config/logger','SquareMessage','catch','then','../../mysqldb','raw','body','debug','options','CreateSquareMessage','info','rpc','error'];(function(_0xf5016d,_0x42b4d6){const _0x288334=function(_0x5add8d){while(--_0x5add8d){_0xf5016d['push'](_0xf5016d['shift']());}};_0x288334(++_0x42b4d6);}(a590_0x42b4,0x1be));const a590_0x2883=function(_0xf5016d,_0x42b4d6){_0xf5016d=_0xf5016d-0x0;let _0x288334=a590_0x42b4[_0xf5016d];return _0x288334;};const _0x1970cb=a590_0x2883;'use strict';const db=require(_0x1970cb('0xa'))['db'],logger=require(_0x1970cb('0x6'))(_0x1970cb('0x2'));exports[_0x1970cb('0x0')]=function(_0x5add8d){const _0x104bb2=this;return new Promise(function(_0x3bf53d,_0x11a593){const _0x2bf261=a590_0x2883;return db[_0x2bf261('0x7')][_0x2bf261('0x4')](_0x5add8d[_0x2bf261('0xc')],{'raw':_0x5add8d[_0x2bf261('0xe')]?_0x5add8d[_0x2bf261('0xe')][_0x2bf261('0xb')]===undefined?!![]:![]:!![]})[_0x2bf261('0x9')](function(_0x49851b){const _0x31500c=_0x2bf261;logger[_0x31500c('0x1')](_0x31500c('0x0'),_0x5add8d),logger[_0x31500c('0xd')](_0x31500c('0x0'),_0x5add8d,JSON['stringify'](_0x49851b)),_0x3bf53d(_0x49851b);})[_0x2bf261('0x8')](function(_0x3f9f17){const _0x2ad443=_0x2bf261;logger[_0x2ad443('0x3')]('CreateSquareMessage',_0x3f9f17['message'],_0x5add8d),_0x11a593(_0x104bb2[_0x2ad443('0x3')](0x1f4,_0x3f9f17[_0x2ad443('0x5')]));});});}; \ No newline at end of file diff --git a/server/api/squareOdbc/index.js b/server/api/squareOdbc/index.js index 8945b06..e76e885 100644 --- a/server/api/squareOdbc/index.js +++ b/server/api/squareOdbc/index.js @@ -1 +1 @@ -const a591_0x1f76=['connect-timeout','/:id','index','create','isAuthenticated','get','show','Router','exports','../../components/auth/service','express','destroy','delete'];(function(_0xeb926c,_0x1f76f7){const _0x1ecb15=function(_0x28a9c8){while(--_0x28a9c8){_0xeb926c['push'](_0xeb926c['shift']());}};_0x1ecb15(++_0x1f76f7);}(a591_0x1f76,0x1d8));const a591_0x1ecb=function(_0xeb926c,_0x1f76f7){_0xeb926c=_0xeb926c-0x0;let _0x1ecb15=a591_0x1f76[_0xeb926c];return _0x1ecb15;};const _0xe472de=a591_0x1ecb;'use strict';const timeout=require(_0xe472de('0x9')),express=require(_0xe472de('0x6')),router=express[_0xe472de('0x3')](),auth=require(_0xe472de('0x5')),controller=require('./squareOdbc.controller');router[_0xe472de('0x1')]('/',auth[_0xe472de('0x0')](),controller[_0xe472de('0xb')]),router['get']('/:id',auth[_0xe472de('0x0')](),controller[_0xe472de('0x2')]),router['get']('/:id/test',auth[_0xe472de('0x0')](),timeout('15s'),controller['test']),router['post']('/',auth[_0xe472de('0x0')](),controller[_0xe472de('0xc')]),router['put'](_0xe472de('0xa'),auth[_0xe472de('0x0')](),controller['update']),router[_0xe472de('0x8')](_0xe472de('0xa'),auth[_0xe472de('0x0')](),controller[_0xe472de('0x7')]),module[_0xe472de('0x4')]=router; \ No newline at end of file +const a591_0x16ea=['index','15s','../../components/auth/service','get','show','express','./squareOdbc.controller','isAuthenticated','/:id','delete','connect-timeout','put','destroy','/:id/test','Router'];(function(_0x1f4012,_0x16ea8c){const _0x52febb=function(_0x44e7c6){while(--_0x44e7c6){_0x1f4012['push'](_0x1f4012['shift']());}};_0x52febb(++_0x16ea8c);}(a591_0x16ea,0x101));const a591_0x52fe=function(_0x1f4012,_0x16ea8c){_0x1f4012=_0x1f4012-0x0;let _0x52febb=a591_0x16ea[_0x1f4012];return _0x52febb;};const _0x579c32=a591_0x52fe;'use strict';const timeout=require(_0x579c32('0x8')),express=require(_0x579c32('0x3')),router=express[_0x579c32('0xc')](),auth=require(_0x579c32('0x0')),controller=require(_0x579c32('0x4'));router['get']('/',auth[_0x579c32('0x5')](),controller[_0x579c32('0xd')]),router[_0x579c32('0x1')]('/:id',auth[_0x579c32('0x5')](),controller[_0x579c32('0x2')]),router[_0x579c32('0x1')](_0x579c32('0xb'),auth[_0x579c32('0x5')](),timeout(_0x579c32('0xe')),controller['test']),router['post']('/',auth[_0x579c32('0x5')](),controller['create']),router[_0x579c32('0x9')](_0x579c32('0x6'),auth[_0x579c32('0x5')](),controller['update']),router[_0x579c32('0x7')]('/:id',auth[_0x579c32('0x5')](),controller[_0x579c32('0xa')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.attributes.js b/server/api/squareOdbc/squareOdbc.attributes.js index a471a08..c1661a7 100644 --- a/server/api/squareOdbc/squareOdbc.attributes.js +++ b/server/api/squareOdbc/squareOdbc.attributes.js @@ -1 +1 @@ -const a592_0x5379=['STRING','sequelize','exports'];(function(_0x58edb7,_0x5379d6){const _0x41725a=function(_0x2c774a){while(--_0x2c774a){_0x58edb7['push'](_0x58edb7['shift']());}};_0x41725a(++_0x5379d6);}(a592_0x5379,0x1ef));const a592_0x4172=function(_0x58edb7,_0x5379d6){_0x58edb7=_0x58edb7-0x0;let _0x41725a=a592_0x5379[_0x58edb7];return _0x41725a;};const _0x5e0bea=a592_0x4172;'use strict';const Sequelize=require(_0x5e0bea('0x1'));module[_0x5e0bea('0x2')]={'name':{'type':Sequelize[_0x5e0bea('0x0')],'unique':'name','allowNull':![]},'dsn':{'type':Sequelize[_0x5e0bea('0x0')]},'description':{'type':Sequelize[_0x5e0bea('0x0')]}}; \ No newline at end of file +const a592_0x1f72=['sequelize','STRING','name'];(function(_0x54d7c9,_0x1f72c2){const _0x40769d=function(_0x284918){while(--_0x284918){_0x54d7c9['push'](_0x54d7c9['shift']());}};_0x40769d(++_0x1f72c2);}(a592_0x1f72,0xd7));const a592_0x4076=function(_0x54d7c9,_0x1f72c2){_0x54d7c9=_0x54d7c9-0x0;let _0x40769d=a592_0x1f72[_0x54d7c9];return _0x40769d;};const _0x2be938=a592_0x4076;'use strict';const Sequelize=require(_0x2be938('0x1'));module['exports']={'name':{'type':Sequelize[_0x2be938('0x2')],'unique':_0x2be938('0x0'),'allowNull':![]},'dsn':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x2be938('0x2')]}}; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.controller.js b/server/api/squareOdbc/squareOdbc.controller.js index 804a41d..249e416 100644 --- a/server/api/squareOdbc/squareOdbc.controller.js +++ b/server/api/squareOdbc/squareOdbc.controller.js @@ -1 +1 @@ -const a593_0x2821=['fields','fieldName','sequelize','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','catch','end','user','type','UserProfileResource','test','options','count','rawAttributes','keys','sort','status','filters','dsn','pick','update','../../components/parsers/qs','attributes','rows','then','closeSync','../../config/logger','ODBC','findOne','SquareOdbc','destroy','sendStatus','findAll','autoAssociation','map','Content-Range','length','params','key','odbc','send','error','lodash','nolimit','Unable\x20to\x20retrieve\x20the\x20current\x20user','name','../../mysqldb','show','intersection','filter','offset','limit','order','where','role','body','stack','create','VIRTUAL','model','get','merge','query','like','index','undefined'];(function(_0x26cb4d,_0x2821df){const _0x243af1=function(_0x5335f5){while(--_0x5335f5){_0x26cb4d['push'](_0x26cb4d['shift']());}};_0x243af1(++_0x2821df);}(a593_0x2821,0x102));const a593_0x243a=function(_0x26cb4d,_0x2821df){_0x26cb4d=_0x26cb4d-0x0;let _0x243af1=a593_0x2821[_0x26cb4d];return _0x243af1;};const _0x4c87f6=a593_0x243a;'use strict';const _=require(_0x4c87f6('0x2b')),qs=require(_0x4c87f6('0x16')),logger=require(_0x4c87f6('0x1b'))('api'),db=require(_0x4c87f6('0x2f'))['db'],{Op}=require(_0x4c87f6('0x4'));function respondWithResult(_0x5335f5,_0x373e68){return _0x373e68=_0x373e68||0xc8,function(_0x467d45){if(_0x467d45)return _0x5335f5['status'](_0x373e68)['json'](_0x467d45);};}function respondWithFilteredResult(_0x3a6d0f,_0x3919df){return function(_0x1e821c){const _0x466712=a593_0x243a;if(_0x1e821c){const _0x5ca535=_0x1e821c[_0x466712('0xd')],_0x38afc0=_0x3919df['offset'];let _0x5c0f15=_0x3919df[_0x466712('0x33')]+_0x3919df[_0x466712('0x34')],_0x58d4ab;return _0x5c0f15>=_0x5ca535?(_0x5c0f15=_0x5ca535,_0x58d4ab=0xc8):_0x58d4ab=0xce,_0x3a6d0f[_0x466712('0x11')](_0x58d4ab),_0x3a6d0f['set'](_0x466712('0x24'),_0x38afc0+'-'+_0x5c0f15+'/'+_0x5ca535)['json'](_0x1e821c);}return null;};}function saveUpdates(_0x159ced){return function(_0x35add2){const _0x28cecd=a593_0x243a;if(_0x35add2)return _0x35add2[_0x28cecd('0x15')](_0x159ced)[_0x28cecd('0x19')](function(_0x54ef5a){return _0x54ef5a;});return null;};}function removeEntity(_0x24452c){return function(_0x507c71){const _0x4e2a2b=a593_0x243a;if(_0x507c71)return _0x507c71[_0x4e2a2b('0x1f')]()[_0x4e2a2b('0x19')](function(){const _0x52cc7d=_0x4e2a2b,_0x2ce35b=_0x507c71[_0x52cc7d('0x3d')]({'plain':!![]}),_0x5bdb47=_0x52cc7d('0x1c');return db[_0x52cc7d('0xa')][_0x52cc7d('0x1f')]({'where':{'type':_0x5bdb47,'resourceId':_0x2ce35b['id']}})[_0x52cc7d('0x19')](function(){return _0x507c71;});})['then'](function(){const _0x56d053=_0x4e2a2b;_0x24452c['status'](0xcc)[_0x56d053('0x7')]();});};}function handleEntityNotFound(_0x1d587a){return function(_0x3b9c4b){const _0x366d89=a593_0x243a;return!_0x3b9c4b&&_0x1d587a[_0x366d89('0x20')](0x194),_0x3b9c4b;};}function handleError(_0x4d6d5e,_0x31abd1){return _0x31abd1=_0x31abd1||0x1f4,function(_0x1323d5){const _0x38528f=a593_0x243a;logger[_0x38528f('0x2a')](_0x1323d5[_0x38528f('0x39')]),_0x1323d5[_0x38528f('0x2e')]&&delete _0x1323d5['name'],_0x4d6d5e[_0x38528f('0x11')](_0x31abd1)[_0x38528f('0x29')](_0x1323d5);};}exports[_0x4c87f6('0x0')]=function(_0xd7c63f,_0xa48708){const _0x3a1d05=_0x4c87f6;let _0x2da2ae={};const _0xe4b342={},_0x262a51={'count':0x0,'rows':[]},_0x179be1=_[_0x3a1d05('0x23')](db[_0x3a1d05('0x1e')][_0x3a1d05('0xe')],function(_0x211f8a){const _0x18af6e=_0x3a1d05;return{'name':_0x211f8a[_0x18af6e('0x3')],'type':_0x211f8a[_0x18af6e('0x9')][_0x18af6e('0x27')]};});_0xe4b342[_0x3a1d05('0x3c')]=_[_0x3a1d05('0x23')](_0x179be1,_0x3a1d05('0x2e')),_0xe4b342[_0x3a1d05('0x3f')]=_[_0x3a1d05('0xf')](_0xd7c63f[_0x3a1d05('0x3f')]),_0xe4b342[_0x3a1d05('0x12')]=_['intersection'](_0xe4b342['model'],_0xe4b342[_0x3a1d05('0x3f')]),_0x2da2ae['attributes']=_[_0x3a1d05('0x31')](_0xe4b342[_0x3a1d05('0x3c')],qs['fields'](_0xd7c63f[_0x3a1d05('0x3f')]['fields'])),_0x2da2ae[_0x3a1d05('0x17')]=_0x2da2ae['attributes'][_0x3a1d05('0x25')]?_0x2da2ae[_0x3a1d05('0x17')]:_0xe4b342[_0x3a1d05('0x3c')];typeof _0xd7c63f[_0x3a1d05('0x3f')][_0x3a1d05('0x2c')]===_0x3a1d05('0x1')&&(_0x2da2ae['limit']=qs[_0x3a1d05('0x34')](_0xd7c63f[_0x3a1d05('0x3f')]['limit']),_0x2da2ae['offset']=qs[_0x3a1d05('0x33')](_0xd7c63f[_0x3a1d05('0x3f')][_0x3a1d05('0x33')]));_0x2da2ae[_0x3a1d05('0x35')]=qs[_0x3a1d05('0x10')](_0xd7c63f[_0x3a1d05('0x3f')][_0x3a1d05('0x10')]),_0x2da2ae[_0x3a1d05('0x36')]=qs[_0x3a1d05('0x12')](_[_0x3a1d05('0x14')](_0xd7c63f[_0x3a1d05('0x3f')],_0xe4b342[_0x3a1d05('0x12')]),_0x179be1);_0xd7c63f[_0x3a1d05('0x3f')]['filter']&&(_0x2da2ae[_0x3a1d05('0x36')]=_[_0x3a1d05('0x3e')](_0x2da2ae[_0x3a1d05('0x36')],{[Op['or']]:_[_0x3a1d05('0x23')](_0x179be1,function(_0x7be94b){const _0x3c81df=_0x3a1d05;if(_0x7be94b[_0x3c81df('0x9')]!==_0x3c81df('0x3b')){const _0x4c0064={};return _0x4c0064[_0x7be94b[_0x3c81df('0x2e')]]={[Op[_0x3c81df('0x40')]]:'%'+_0xd7c63f[_0x3c81df('0x3f')][_0x3c81df('0x32')]+'%'},_0x4c0064;}})}));_0x2da2ae=_[_0x3a1d05('0x3e')]({},_0x2da2ae,_0xd7c63f[_0x3a1d05('0xc')]);const _0x33a7c9={'where':_0x2da2ae['where']};return db[_0x3a1d05('0x1e')]['count'](_0x33a7c9)['then'](function(_0x2b71ca){const _0x13c4e3=_0x3a1d05;return _0x262a51[_0x13c4e3('0xd')]=_0x2b71ca,_0xd7c63f['query']['includeAll']&&(_0x2da2ae['include']=[{'all':!![]}]),db[_0x13c4e3('0x1e')][_0x13c4e3('0x21')](_0x2da2ae);})[_0x3a1d05('0x19')](function(_0x9b0437){const _0x451a88=_0x3a1d05;return _0x262a51[_0x451a88('0x18')]=_0x9b0437,_0x262a51;})[_0x3a1d05('0x19')](respondWithFilteredResult(_0xa48708,_0x2da2ae))[_0x3a1d05('0x6')](handleError(_0xa48708,null));},exports[_0x4c87f6('0x30')]=function(_0x304db5,_0x4490f5){const _0x693e4f=_0x4c87f6;let _0x5ac3c4={'raw':!![],'where':{'id':_0x304db5[_0x693e4f('0x26')]['id']}};const _0x4f0f73={};return _0x4f0f73['model']=_['keys'](db['SquareOdbc'][_0x693e4f('0xe')]),_0x4f0f73[_0x693e4f('0x3f')]=_[_0x693e4f('0xf')](_0x304db5[_0x693e4f('0x3f')]),_0x4f0f73['filters']=_[_0x693e4f('0x31')](_0x4f0f73[_0x693e4f('0x3c')],_0x4f0f73['query']),_0x5ac3c4['attributes']=_['intersection'](_0x4f0f73[_0x693e4f('0x3c')],qs[_0x693e4f('0x2')](_0x304db5[_0x693e4f('0x3f')][_0x693e4f('0x2')])),_0x5ac3c4[_0x693e4f('0x17')]=_0x5ac3c4[_0x693e4f('0x17')][_0x693e4f('0x25')]?_0x5ac3c4['attributes']:_0x4f0f73['model'],_0x304db5[_0x693e4f('0x3f')]['includeAll']&&(_0x5ac3c4['include']=[{'all':!![]}]),_0x5ac3c4=_[_0x693e4f('0x3e')]({},_0x5ac3c4,_0x304db5[_0x693e4f('0xc')]),db[_0x693e4f('0x1e')][_0x693e4f('0x1d')](_0x5ac3c4)[_0x693e4f('0x19')](handleEntityNotFound(_0x4490f5,null))[_0x693e4f('0x19')](respondWithResult(_0x4490f5,null))[_0x693e4f('0x6')](handleError(_0x4490f5,null));},exports[_0x4c87f6('0x3a')]=function(_0x178153,_0x2777a2){const _0xe5d79d=_0x4c87f6;return db[_0xe5d79d('0x1e')]['create'](_0x178153['body'],{})[_0xe5d79d('0x19')](function(_0x19c580){const _0x48b759=_0xe5d79d,_0x5dca24=_0x178153[_0x48b759('0x8')][_0x48b759('0x3d')]({'plain':!![]});if(!_0x5dca24)throw new Error(_0x48b759('0x2d'));if(_0x5dca24[_0x48b759('0x37')]===_0x48b759('0x8')){const _0x5c3933=_0x19c580['get']({'plain':!![]}),_0x27f146=_0x48b759('0x1c');return db['UserProfileSection']['findOne']({'where':{'name':_0x27f146,'userProfileId':_0x5dca24['userProfileId']},'raw':!![]})[_0x48b759('0x19')](function(_0x1632f8){const _0x13d2d2=_0x48b759;return _0x1632f8&&_0x1632f8[_0x13d2d2('0x22')]===0x0?db[_0x13d2d2('0xa')][_0x13d2d2('0x3a')]({'name':_0x5c3933['name'],'resourceId':_0x5c3933['id'],'type':_0x1632f8[_0x13d2d2('0x2e')],'sectionId':_0x1632f8['id']},{})[_0x13d2d2('0x19')](function(){return _0x19c580;}):_0x19c580;})[_0x48b759('0x6')](function(_0x136263){const _0x2a3b1a=_0x48b759;logger[_0x2a3b1a('0x2a')](_0x2a3b1a('0x5'),_0x136263);throw _0x136263;});}return _0x19c580;})[_0xe5d79d('0x19')](respondWithResult(_0x2777a2,0xc9))[_0xe5d79d('0x6')](handleError(_0x2777a2,null));},exports['update']=function(_0x4bc7ca,_0x39f5b7){const _0x31b240=_0x4c87f6;return _0x4bc7ca[_0x31b240('0x38')]['id']&&delete _0x4bc7ca[_0x31b240('0x38')]['id'],db[_0x31b240('0x1e')][_0x31b240('0x1d')]({'where':{'id':_0x4bc7ca[_0x31b240('0x26')]['id']}})['then'](handleEntityNotFound(_0x39f5b7,null))[_0x31b240('0x19')](saveUpdates(_0x4bc7ca[_0x31b240('0x38')],null))['then'](respondWithResult(_0x39f5b7,null))[_0x31b240('0x6')](handleError(_0x39f5b7,null));},exports[_0x4c87f6('0x1f')]=function(_0x5003ff,_0x2e3ed7){const _0x3fdf85=_0x4c87f6;return db[_0x3fdf85('0x1e')][_0x3fdf85('0x1d')]({'where':{'id':_0x5003ff[_0x3fdf85('0x26')]['id']}})['then'](handleEntityNotFound(_0x2e3ed7,null))[_0x3fdf85('0x19')](removeEntity(_0x2e3ed7,null))['catch'](handleError(_0x2e3ed7,null));},exports[_0x4c87f6('0xb')]=function(_0xc6ae8,_0xb88ade){const _0x2dc6c1=_0x4c87f6;return db[_0x2dc6c1('0x1e')][_0x2dc6c1('0x1d')]({'where':{'id':_0xc6ae8[_0x2dc6c1('0x26')]['id']},'attributes':['id',_0x2dc6c1('0x13')]})[_0x2dc6c1('0x19')](handleEntityNotFound(_0xb88ade,null))[_0x2dc6c1('0x19')](function(_0x4702da){const _0x161136=_0x2dc6c1;if(_0x4702da){const _0x20c303=require(_0x161136('0x28'))();return _0x20c303['openSync'](_0x4702da[_0x161136('0x13')]),_0x20c303[_0x161136('0x1a')](),_0x4702da;}})[_0x2dc6c1('0x19')](respondWithResult(_0xb88ade,null))[_0x2dc6c1('0x6')](handleError(_0xb88ade,null));}; \ No newline at end of file +const a593_0x465c=['sort','lodash','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','catch','odbc','json','offset','rows','order','get','keys','includeAll','options','intersection','nolimit','count','status','UserProfileResource','ODBC','update','where','send','pick','include','stack','error','like','limit','set','params','create','then','dsn','fields','merge','filters','query','show','body','Unable\x20to\x20retrieve\x20the\x20current\x20user','openSync','filter','SquareOdbc','attributes','Content-Range','api','type','closeSync','../../config/logger','../../mysqldb','end','../../components/parsers/qs','user','findAll','length','destroy','map','test','name','role','UserProfileSection','model','undefined','findOne'];(function(_0x687286,_0x465cd4){const _0x193a1a=function(_0x3c3b42){while(--_0x3c3b42){_0x687286['push'](_0x687286['shift']());}};_0x193a1a(++_0x465cd4);}(a593_0x465c,0x15a));const a593_0x193a=function(_0x687286,_0x465cd4){_0x687286=_0x687286-0x0;let _0x193a1a=a593_0x465c[_0x687286];return _0x193a1a;};const _0x4f70e8=a593_0x193a;'use strict';const _=require(_0x4f70e8('0x27')),qs=require(_0x4f70e8('0x19')),logger=require(_0x4f70e8('0x16'))(_0x4f70e8('0x13')),db=require(_0x4f70e8('0x17'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3c3b42,_0x176d5a){return _0x176d5a=_0x176d5a||0xc8,function(_0x12b6ef){const _0x44b6ea=a593_0x193a;if(_0x12b6ef)return _0x3c3b42[_0x44b6ea('0x36')](_0x176d5a)['json'](_0x12b6ef);};}function respondWithFilteredResult(_0x87a083,_0x385169){return function(_0x479b9b){const _0xd918e6=a593_0x193a;if(_0x479b9b){const _0x1c4020=_0x479b9b[_0xd918e6('0x35')],_0x457a01=_0x385169['offset'];let _0x52c602=_0x385169[_0xd918e6('0x2c')]+_0x385169['limit'],_0x49ae06;return _0x52c602>=_0x1c4020?(_0x52c602=_0x1c4020,_0x49ae06=0xc8):_0x49ae06=0xce,_0x87a083['status'](_0x49ae06),_0x87a083[_0xd918e6('0x2')](_0xd918e6('0x12'),_0x457a01+'-'+_0x52c602+'/'+_0x1c4020)[_0xd918e6('0x2b')](_0x479b9b);}return null;};}function saveUpdates(_0x11e5d7){return function(_0x3d4461){const _0x53a8c1=a593_0x193a;if(_0x3d4461)return _0x3d4461[_0x53a8c1('0x39')](_0x11e5d7)['then'](function(_0x1a48a6){return _0x1a48a6;});return null;};}function removeEntity(_0x166314){return function(_0x1e7ce7){const _0x48d63b=a593_0x193a;if(_0x1e7ce7)return _0x1e7ce7[_0x48d63b('0x1d')]()[_0x48d63b('0x5')](function(){const _0x29898d=_0x48d63b,_0x4c124c=_0x1e7ce7[_0x29898d('0x2f')]({'plain':!![]}),_0xa8f299=_0x29898d('0x38');return db[_0x29898d('0x37')][_0x29898d('0x1d')]({'where':{'type':_0xa8f299,'resourceId':_0x4c124c['id']}})[_0x29898d('0x5')](function(){return _0x1e7ce7;});})['then'](function(){const _0x494f41=_0x48d63b;_0x166314[_0x494f41('0x36')](0xcc)[_0x494f41('0x18')]();});};}function handleEntityNotFound(_0x3214b6){return function(_0x1ce084){return!_0x1ce084&&_0x3214b6['sendStatus'](0x194),_0x1ce084;};}function handleError(_0x27ef37,_0xe862b9){return _0xe862b9=_0xe862b9||0x1f4,function(_0x2b99ba){const _0x555805=a593_0x193a;logger[_0x555805('0x3f')](_0x2b99ba[_0x555805('0x3e')]),_0x2b99ba['name']&&delete _0x2b99ba[_0x555805('0x20')],_0x27ef37[_0x555805('0x36')](_0xe862b9)[_0x555805('0x3b')](_0x2b99ba);};}exports['index']=function(_0x559069,_0x28534f){const _0x41aee5=_0x4f70e8;let _0x3e8189={};const _0x4c13bc={},_0x398d3d={'count':0x0,'rows':[]},_0x3f69ce=_[_0x41aee5('0x1e')](db[_0x41aee5('0x10')]['rawAttributes'],function(_0x59c079){return{'name':_0x59c079['fieldName'],'type':_0x59c079['type']['key']};});_0x4c13bc[_0x41aee5('0x23')]=_[_0x41aee5('0x1e')](_0x3f69ce,_0x41aee5('0x20')),_0x4c13bc[_0x41aee5('0xa')]=_[_0x41aee5('0x30')](_0x559069[_0x41aee5('0xa')]),_0x4c13bc[_0x41aee5('0x9')]=_[_0x41aee5('0x33')](_0x4c13bc[_0x41aee5('0x23')],_0x4c13bc[_0x41aee5('0xa')]),_0x3e8189[_0x41aee5('0x11')]=_['intersection'](_0x4c13bc['model'],qs[_0x41aee5('0x7')](_0x559069[_0x41aee5('0xa')][_0x41aee5('0x7')])),_0x3e8189[_0x41aee5('0x11')]=_0x3e8189[_0x41aee5('0x11')]['length']?_0x3e8189[_0x41aee5('0x11')]:_0x4c13bc[_0x41aee5('0x23')];typeof _0x559069[_0x41aee5('0xa')][_0x41aee5('0x34')]===_0x41aee5('0x24')&&(_0x3e8189[_0x41aee5('0x1')]=qs[_0x41aee5('0x1')](_0x559069[_0x41aee5('0xa')]['limit']),_0x3e8189[_0x41aee5('0x2c')]=qs['offset'](_0x559069['query'][_0x41aee5('0x2c')]));_0x3e8189[_0x41aee5('0x2e')]=qs[_0x41aee5('0x26')](_0x559069['query']['sort']),_0x3e8189['where']=qs[_0x41aee5('0x9')](_[_0x41aee5('0x3c')](_0x559069['query'],_0x4c13bc[_0x41aee5('0x9')]),_0x3f69ce);_0x559069[_0x41aee5('0xa')][_0x41aee5('0xf')]&&(_0x3e8189[_0x41aee5('0x3a')]=_[_0x41aee5('0x8')](_0x3e8189['where'],{[Op['or']]:_[_0x41aee5('0x1e')](_0x3f69ce,function(_0x3bc552){const _0x5cd749=_0x41aee5;if(_0x3bc552[_0x5cd749('0x14')]!=='VIRTUAL'){const _0x460e95={};return _0x460e95[_0x3bc552[_0x5cd749('0x20')]]={[Op[_0x5cd749('0x0')]]:'%'+_0x559069[_0x5cd749('0xa')]['filter']+'%'},_0x460e95;}})}));_0x3e8189=_['merge']({},_0x3e8189,_0x559069[_0x41aee5('0x32')]);const _0x55a610={'where':_0x3e8189[_0x41aee5('0x3a')]};return db[_0x41aee5('0x10')][_0x41aee5('0x35')](_0x55a610)[_0x41aee5('0x5')](function(_0x2862af){const _0x46bb95=_0x41aee5;return _0x398d3d[_0x46bb95('0x35')]=_0x2862af,_0x559069[_0x46bb95('0xa')][_0x46bb95('0x31')]&&(_0x3e8189[_0x46bb95('0x3d')]=[{'all':!![]}]),db[_0x46bb95('0x10')][_0x46bb95('0x1b')](_0x3e8189);})[_0x41aee5('0x5')](function(_0x16f04a){const _0x108750=_0x41aee5;return _0x398d3d[_0x108750('0x2d')]=_0x16f04a,_0x398d3d;})[_0x41aee5('0x5')](respondWithFilteredResult(_0x28534f,_0x3e8189))['catch'](handleError(_0x28534f,null));},exports[_0x4f70e8('0xb')]=function(_0x322810,_0x465f09){const _0x2ab58e=_0x4f70e8;let _0x4e8f4a={'raw':!![],'where':{'id':_0x322810[_0x2ab58e('0x3')]['id']}};const _0x5cf8cc={};return _0x5cf8cc[_0x2ab58e('0x23')]=_['keys'](db[_0x2ab58e('0x10')]['rawAttributes']),_0x5cf8cc[_0x2ab58e('0xa')]=_[_0x2ab58e('0x30')](_0x322810['query']),_0x5cf8cc[_0x2ab58e('0x9')]=_['intersection'](_0x5cf8cc['model'],_0x5cf8cc[_0x2ab58e('0xa')]),_0x4e8f4a[_0x2ab58e('0x11')]=_['intersection'](_0x5cf8cc[_0x2ab58e('0x23')],qs[_0x2ab58e('0x7')](_0x322810[_0x2ab58e('0xa')][_0x2ab58e('0x7')])),_0x4e8f4a[_0x2ab58e('0x11')]=_0x4e8f4a['attributes'][_0x2ab58e('0x1c')]?_0x4e8f4a[_0x2ab58e('0x11')]:_0x5cf8cc[_0x2ab58e('0x23')],_0x322810[_0x2ab58e('0xa')]['includeAll']&&(_0x4e8f4a[_0x2ab58e('0x3d')]=[{'all':!![]}]),_0x4e8f4a=_['merge']({},_0x4e8f4a,_0x322810[_0x2ab58e('0x32')]),db[_0x2ab58e('0x10')][_0x2ab58e('0x25')](_0x4e8f4a)[_0x2ab58e('0x5')](handleEntityNotFound(_0x465f09,null))[_0x2ab58e('0x5')](respondWithResult(_0x465f09,null))['catch'](handleError(_0x465f09,null));},exports['create']=function(_0x225bb6,_0x438d94){const _0x108680=_0x4f70e8;return db[_0x108680('0x10')][_0x108680('0x4')](_0x225bb6[_0x108680('0xc')],{})['then'](function(_0x5a9127){const _0x2f05b8=_0x108680,_0xe02355=_0x225bb6[_0x2f05b8('0x1a')][_0x2f05b8('0x2f')]({'plain':!![]});if(!_0xe02355)throw new Error(_0x2f05b8('0xd'));if(_0xe02355[_0x2f05b8('0x21')]==='user'){const _0x11bd7e=_0x5a9127[_0x2f05b8('0x2f')]({'plain':!![]}),_0x41c69f=_0x2f05b8('0x38');return db[_0x2f05b8('0x22')]['findOne']({'where':{'name':_0x41c69f,'userProfileId':_0xe02355['userProfileId']},'raw':!![]})[_0x2f05b8('0x5')](function(_0x542566){const _0x151a99=_0x2f05b8;return _0x542566&&_0x542566['autoAssociation']===0x0?db[_0x151a99('0x37')][_0x151a99('0x4')]({'name':_0x11bd7e[_0x151a99('0x20')],'resourceId':_0x11bd7e['id'],'type':_0x542566['name'],'sectionId':_0x542566['id']},{})[_0x151a99('0x5')](function(){return _0x5a9127;}):_0x5a9127;})[_0x2f05b8('0x29')](function(_0x2dacc5){const _0x226716=_0x2f05b8;logger[_0x226716('0x3f')](_0x226716('0x28'),_0x2dacc5);throw _0x2dacc5;});}return _0x5a9127;})[_0x108680('0x5')](respondWithResult(_0x438d94,0xc9))['catch'](handleError(_0x438d94,null));},exports['update']=function(_0x37e503,_0x5d5f24){const _0x47d1c8=_0x4f70e8;return _0x37e503[_0x47d1c8('0xc')]['id']&&delete _0x37e503[_0x47d1c8('0xc')]['id'],db[_0x47d1c8('0x10')][_0x47d1c8('0x25')]({'where':{'id':_0x37e503['params']['id']}})[_0x47d1c8('0x5')](handleEntityNotFound(_0x5d5f24,null))['then'](saveUpdates(_0x37e503['body'],null))['then'](respondWithResult(_0x5d5f24,null))[_0x47d1c8('0x29')](handleError(_0x5d5f24,null));},exports[_0x4f70e8('0x1d')]=function(_0x474307,_0x4098f8){const _0x2029e1=_0x4f70e8;return db[_0x2029e1('0x10')][_0x2029e1('0x25')]({'where':{'id':_0x474307[_0x2029e1('0x3')]['id']}})['then'](handleEntityNotFound(_0x4098f8,null))[_0x2029e1('0x5')](removeEntity(_0x4098f8,null))[_0x2029e1('0x29')](handleError(_0x4098f8,null));},exports[_0x4f70e8('0x1f')]=function(_0x3fb052,_0x1acd45){const _0x315533=_0x4f70e8;return db[_0x315533('0x10')][_0x315533('0x25')]({'where':{'id':_0x3fb052[_0x315533('0x3')]['id']},'attributes':['id',_0x315533('0x6')]})['then'](handleEntityNotFound(_0x1acd45,null))[_0x315533('0x5')](function(_0x2a3e7f){const _0x2736f1=_0x315533;if(_0x2a3e7f){const _0xeee9be=require(_0x2736f1('0x2a'))();return _0xeee9be[_0x2736f1('0xe')](_0x2a3e7f['dsn']),_0xeee9be[_0x2736f1('0x15')](),_0x2a3e7f;}})[_0x315533('0x5')](respondWithResult(_0x1acd45,null))[_0x315533('0x29')](handleError(_0x1acd45,null));}; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.model.js b/server/api/squareOdbc/squareOdbc.model.js index f9c7e6e..f8c3ecd 100644 --- a/server/api/squareOdbc/squareOdbc.model.js +++ b/server/api/squareOdbc/squareOdbc.model.js @@ -1 +1 @@ -const a594_0x123f=['exports','square_odbc','SquareOdbc','define','./squareOdbc.attributes'];(function(_0xc3acb3,_0x123ffd){const _0x1e6dde=function(_0x305885){while(--_0x305885){_0xc3acb3['push'](_0xc3acb3['shift']());}};_0x1e6dde(++_0x123ffd);}(a594_0x123f,0xe8));const a594_0x1e6d=function(_0xc3acb3,_0x123ffd){_0xc3acb3=_0xc3acb3-0x0;let _0x1e6dde=a594_0x123f[_0xc3acb3];return _0x1e6dde;};const _0x5339ce=a594_0x1e6d;'use strict';const attributes=require(_0x5339ce('0x2'));module[_0x5339ce('0x3')]=function(_0x305885){const _0x22115c=_0x5339ce,_0x319a70=_0x305885[_0x22115c('0x1')](_0x22115c('0x0'),attributes,{'tableName':_0x22115c('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x319a70;}; \ No newline at end of file +const a594_0x2ad6=['SquareOdbc','exports','./squareOdbc.attributes'];(function(_0x22278c,_0x2ad61a){const _0x257fed=function(_0xa93fdf){while(--_0xa93fdf){_0x22278c['push'](_0x22278c['shift']());}};_0x257fed(++_0x2ad61a);}(a594_0x2ad6,0x1f1));const a594_0x257f=function(_0x22278c,_0x2ad61a){_0x22278c=_0x22278c-0x0;let _0x257fed=a594_0x2ad6[_0x22278c];return _0x257fed;};const _0x3460a7=a594_0x257f;'use strict';const attributes=require(_0x3460a7('0x0'));module[_0x3460a7('0x2')]=function(_0xa93fdf){const _0x2afdfd=_0x3460a7,_0x613465=_0xa93fdf['define'](_0x2afdfd('0x1'),attributes,{'tableName':'square_odbc','paranoid':![],'indexes':[],'timestamps':!![]});return _0x613465;}; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.rpc.js b/server/api/squareOdbc/squareOdbc.rpc.js index f60e606..3602983 100644 --- a/server/api/squareOdbc/squareOdbc.rpc.js +++ b/server/api/squareOdbc/squareOdbc.rpc.js @@ -1 +1 @@ -const a595_0x13cb=['info','error','SquareOdbc','rpc','../../config/logger','model','stringify','include','findOne','options','lodash','map','attributes','catch','message','ShowSquareOdbc'];(function(_0x11e8c2,_0x13cb99){const _0xfc8a97=function(_0x536984){while(--_0x536984){_0x11e8c2['push'](_0x11e8c2['shift']());}};_0xfc8a97(++_0x13cb99);}(a595_0x13cb,0xbe));const a595_0xfc8a=function(_0x11e8c2,_0x13cb99){_0x11e8c2=_0x11e8c2-0x0;let _0xfc8a97=a595_0x13cb[_0x11e8c2];return _0xfc8a97;};const _0x178b63=a595_0xfc8a;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x178b63('0x6'))(_0x178b63('0x5')),_=require(_0x178b63('0xc'));exports[_0x178b63('0x1')]=function(_0x536984){const _0x52c28c=this;return new Promise(function(_0x56cd2a,_0x390dd3){const _0x21240b=a595_0xfc8a;return db[_0x21240b('0x4')][_0x21240b('0xa')]({'raw':_0x536984[_0x21240b('0xb')]?_0x536984['options']['raw']===undefined?!![]:![]:!![],'where':_0x536984[_0x21240b('0xb')]?_0x536984[_0x21240b('0xb')]['where']||null:null,'attributes':_0x536984[_0x21240b('0xb')]?_0x536984['options']['attributes']||null:null,'include':_0x536984[_0x21240b('0xb')]?_0x536984[_0x21240b('0xb')][_0x21240b('0x9')]?_[_0x21240b('0xd')](_0x536984[_0x21240b('0xb')][_0x21240b('0x9')],function(_0x30a810){const _0x52e10c=_0x21240b;return{'model':db[_0x30a810[_0x52e10c('0x7')]],'as':_0x30a810['as'],'attributes':_0x30a810[_0x52e10c('0xe')],'include':_0x30a810['include']?_['map'](_0x30a810['include'],function(_0x536c2f){const _0x3e926a=_0x52e10c;return{'model':db[_0x536c2f['model']],'as':_0x536c2f['as'],'attributes':_0x536c2f[_0x3e926a('0xe')],'include':_0x536c2f[_0x3e926a('0x9')]?_[_0x3e926a('0xd')](_0x536c2f[_0x3e926a('0x9')],function(_0x4514b7){const _0x52b2fd=_0x3e926a;return{'model':db[_0x4514b7[_0x52b2fd('0x7')]],'as':_0x4514b7['as'],'attributes':_0x4514b7['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2892be){const _0x416fca=_0x21240b;logger[_0x416fca('0x2')](_0x416fca('0x1'),_0x536984),logger['debug'](_0x416fca('0x1'),_0x536984,JSON[_0x416fca('0x8')](_0x2892be)),_0x56cd2a(_0x2892be);})[_0x21240b('0xf')](function(_0x2e922f){const _0x3e911c=_0x21240b;logger['error'](_0x3e911c('0x1'),_0x2e922f[_0x3e911c('0x0')],_0x536984),_0x390dd3(_0x52c28c[_0x3e911c('0x3')](0x1f4,_0x2e922f['message']));});});}; \ No newline at end of file +const a595_0x1127=['rpc','catch','message','error','debug','SquareOdbc','../../config/logger','attributes','options','raw','include','where','info','then','map','model','stringify','ShowSquareOdbc','lodash'];(function(_0x20ed4b,_0x1127b6){const _0xfb5334=function(_0x59b274){while(--_0x59b274){_0x20ed4b['push'](_0x20ed4b['shift']());}};_0xfb5334(++_0x1127b6);}(a595_0x1127,0x17b));const a595_0xfb53=function(_0x20ed4b,_0x1127b6){_0x20ed4b=_0x20ed4b-0x0;let _0xfb5334=a595_0x1127[_0x20ed4b];return _0xfb5334;};const _0x7a50ae=a595_0xfb53;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x7a50ae('0x7'))(_0x7a50ae('0x1')),_=require(_0x7a50ae('0x0'));exports[_0x7a50ae('0x12')]=function(_0x59b274){const _0x2d1352=this;return new Promise(function(_0x106ef2,_0x30b88f){const _0x5c7781=a595_0xfb53;return db[_0x5c7781('0x6')]['findOne']({'raw':_0x59b274[_0x5c7781('0x9')]?_0x59b274[_0x5c7781('0x9')][_0x5c7781('0xa')]===undefined?!![]:![]:!![],'where':_0x59b274['options']?_0x59b274[_0x5c7781('0x9')][_0x5c7781('0xc')]||null:null,'attributes':_0x59b274['options']?_0x59b274[_0x5c7781('0x9')][_0x5c7781('0x8')]||null:null,'include':_0x59b274['options']?_0x59b274[_0x5c7781('0x9')][_0x5c7781('0xb')]?_[_0x5c7781('0xf')](_0x59b274[_0x5c7781('0x9')]['include'],function(_0x10d2d0){const _0x243a53=_0x5c7781;return{'model':db[_0x10d2d0['model']],'as':_0x10d2d0['as'],'attributes':_0x10d2d0['attributes'],'include':_0x10d2d0[_0x243a53('0xb')]?_[_0x243a53('0xf')](_0x10d2d0[_0x243a53('0xb')],function(_0x172971){const _0xc091df=_0x243a53;return{'model':db[_0x172971[_0xc091df('0x10')]],'as':_0x172971['as'],'attributes':_0x172971[_0xc091df('0x8')],'include':_0x172971['include']?_[_0xc091df('0xf')](_0x172971[_0xc091df('0xb')],function(_0x32adad){const _0x56576f=_0xc091df;return{'model':db[_0x32adad[_0x56576f('0x10')]],'as':_0x32adad['as'],'attributes':_0x32adad[_0x56576f('0x8')]};}):[]};}):[]};}):[]:[]})[_0x5c7781('0xe')](function(_0xc673df){const _0x4c181f=_0x5c7781;logger[_0x4c181f('0xd')]('ShowSquareOdbc',_0x59b274),logger[_0x4c181f('0x5')](_0x4c181f('0x12'),_0x59b274,JSON[_0x4c181f('0x11')](_0xc673df)),_0x106ef2(_0xc673df);})[_0x5c7781('0x2')](function(_0x2edf5d){const _0xc047c7=_0x5c7781;logger[_0xc047c7('0x4')](_0xc047c7('0x12'),_0x2edf5d[_0xc047c7('0x3')],_0x59b274),_0x30b88f(_0x2d1352[_0xc047c7('0x4')](0x1f4,_0x2edf5d[_0xc047c7('0x3')]));});});}; \ No newline at end of file diff --git a/server/api/squareProject/index.js b/server/api/squareProject/index.js index a3fa637..1ddd0a6 100644 --- a/server/api/squareProject/index.js +++ b/server/api/squareProject/index.js @@ -1 +1 @@ -const a596_0x14f2=['/:id/users','create','show','destroy','exports','removeUsers','Router','index','/:id','addUsers','update','express','isAuthenticated','post','get'];(function(_0x5016fc,_0x14f242){const _0x30cc60=function(_0x2b1c34){while(--_0x2b1c34){_0x5016fc['push'](_0x5016fc['shift']());}};_0x30cc60(++_0x14f242);}(a596_0x14f2,0x1d5));const a596_0x30cc=function(_0x5016fc,_0x14f242){_0x5016fc=_0x5016fc-0x0;let _0x30cc60=a596_0x14f2[_0x5016fc];return _0x30cc60;};const _0x218082=a596_0x30cc;'use strict';const express=require(_0x218082('0x7')),router=express[_0x218082('0x2')](),auth=require('../../components/auth/service'),controller=require('./squareProject.controller');router[_0x218082('0xa')]('/',auth['isAuthenticated'](),controller[_0x218082('0x3')]),router[_0x218082('0xa')](_0x218082('0x4'),auth[_0x218082('0x8')](),controller[_0x218082('0xd')]),router[_0x218082('0xa')](_0x218082('0xb'),auth['isAuthenticated'](),controller['getUsers']),router[_0x218082('0x9')]('/',auth[_0x218082('0x8')](),controller[_0x218082('0xc')]),router['post']('/:id/users',auth['isAuthenticated'](),controller[_0x218082('0x5')]),router['put']('/:id',auth[_0x218082('0x8')](),controller[_0x218082('0x6')]),router['delete']('/:id',auth[_0x218082('0x8')](),controller[_0x218082('0xe')]),router['delete'](_0x218082('0xb'),auth[_0x218082('0x8')](),controller[_0x218082('0x1')]),module[_0x218082('0x0')]=router; \ No newline at end of file +const a596_0x2071=['./squareProject.controller','show','exports','removeUsers','destroy','Router','post','addUsers','create','index','delete','express','/:id/users','isAuthenticated','/:id','../../components/auth/service','get','update'];(function(_0x1c3eb4,_0x20710b){const _0x121fe3=function(_0x4cc1c6){while(--_0x4cc1c6){_0x1c3eb4['push'](_0x1c3eb4['shift']());}};_0x121fe3(++_0x20710b);}(a596_0x2071,0xbf));const a596_0x121f=function(_0x1c3eb4,_0x20710b){_0x1c3eb4=_0x1c3eb4-0x0;let _0x121fe3=a596_0x2071[_0x1c3eb4];return _0x121fe3;};const _0x549ba1=a596_0x121f;'use strict';const express=require(_0x549ba1('0x0')),router=express[_0x549ba1('0xc')](),auth=require(_0x549ba1('0x4')),controller=require(_0x549ba1('0x7'));router[_0x549ba1('0x5')]('/',auth['isAuthenticated'](),controller[_0x549ba1('0x10')]),router[_0x549ba1('0x5')]('/:id',auth[_0x549ba1('0x2')](),controller[_0x549ba1('0x8')]),router[_0x549ba1('0x5')](_0x549ba1('0x1'),auth[_0x549ba1('0x2')](),controller['getUsers']),router[_0x549ba1('0xd')]('/',auth[_0x549ba1('0x2')](),controller[_0x549ba1('0xf')]),router[_0x549ba1('0xd')](_0x549ba1('0x1'),auth[_0x549ba1('0x2')](),controller[_0x549ba1('0xe')]),router['put'](_0x549ba1('0x3'),auth[_0x549ba1('0x2')](),controller[_0x549ba1('0x6')]),router[_0x549ba1('0x11')](_0x549ba1('0x3'),auth[_0x549ba1('0x2')](),controller[_0x549ba1('0xb')]),router[_0x549ba1('0x11')](_0x549ba1('0x1'),auth[_0x549ba1('0x2')](),controller[_0x549ba1('0xa')]),module[_0x549ba1('0x9')]=router; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.attributes.js b/server/api/squareProject/squareProject.attributes.js index 90a2d79..5fff437 100644 --- a/server/api/squareProject/squareProject.attributes.js +++ b/server/api/squareProject/squareProject.attributes.js @@ -1 +1 @@ -const a597_0x8e69=['name','toString','preproduction','sequelize','BLOB','exports','getDataValue','STRING','production','utf8','TEXT','long'];(function(_0x5c869d,_0x8e699d){const _0x1ae6bd=function(_0x13015f){while(--_0x13015f){_0x5c869d['push'](_0x5c869d['shift']());}};_0x1ae6bd(++_0x8e699d);}(a597_0x8e69,0x1b3));const a597_0x1ae6=function(_0x5c869d,_0x8e699d){_0x5c869d=_0x5c869d-0x0;let _0x1ae6bd=a597_0x8e69[_0x5c869d];return _0x1ae6bd;};const _0x3158e1=a597_0x1ae6;'use strict';const Sequelize=require(_0x3158e1('0x0'));module[_0x3158e1('0x2')]={'name':{'type':Sequelize[_0x3158e1('0x4')],'unique':_0x3158e1('0x9'),'allowNull':![]},'description':{'type':Sequelize[_0x3158e1('0x4')]},'notes':{'type':Sequelize[_0x3158e1('0x7')]},'preproduction':{'type':Sequelize[_0x3158e1('0x1')](_0x3158e1('0x8')),'get':function(){const _0x978719=_0x3158e1;if(this[_0x978719('0x3')](_0x978719('0xb')))return this['getDataValue'](_0x978719('0xb'))[_0x978719('0xa')](_0x978719('0x6'));}},'production':{'type':Sequelize[_0x3158e1('0x1')]('long'),'get':function(){const _0x2e888f=_0x3158e1;if(this['getDataValue'](_0x2e888f('0x5')))return this[_0x2e888f('0x3')](_0x2e888f('0x5'))[_0x2e888f('0xa')](_0x2e888f('0x6'));}}}; \ No newline at end of file +const a597_0x4d79=['sequelize','STRING','TEXT','toString','exports','long','preproduction','production','BLOB','utf8','getDataValue'];(function(_0x2e81d3,_0x4d79ff){const _0x428b9e=function(_0x204d16){while(--_0x204d16){_0x2e81d3['push'](_0x2e81d3['shift']());}};_0x428b9e(++_0x4d79ff);}(a597_0x4d79,0x1b2));const a597_0x428b=function(_0x2e81d3,_0x4d79ff){_0x2e81d3=_0x2e81d3-0x0;let _0x428b9e=a597_0x4d79[_0x2e81d3];return _0x428b9e;};const _0xcfb511=a597_0x428b;'use strict';const Sequelize=require(_0xcfb511('0x6'));module[_0xcfb511('0xa')]={'name':{'type':Sequelize[_0xcfb511('0x7')],'unique':'name','allowNull':![]},'description':{'type':Sequelize['STRING']},'notes':{'type':Sequelize[_0xcfb511('0x8')]},'preproduction':{'type':Sequelize[_0xcfb511('0x3')](_0xcfb511('0x0')),'get':function(){const _0x3a5a3e=_0xcfb511;if(this['getDataValue'](_0x3a5a3e('0x1')))return this[_0x3a5a3e('0x5')](_0x3a5a3e('0x1'))[_0x3a5a3e('0x9')](_0x3a5a3e('0x4'));}},'production':{'type':Sequelize[_0xcfb511('0x3')]('long'),'get':function(){const _0x2f4a54=_0xcfb511;if(this[_0x2f4a54('0x5')](_0x2f4a54('0x2')))return this['getDataValue']('production')[_0x2f4a54('0x9')]('utf8');}}}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.controller.js b/server/api/squareProject/squareProject.controller.js index d2448b8..56fdc81 100644 --- a/server/api/squareProject/squareProject.controller.js +++ b/server/api/squareProject/squareProject.controller.js @@ -1 +1 @@ -const a598_0x3575=['like','json','UserProfileResource','User','findAll','update','body','includeAll','type','include','sendStatus','sequelize','name','removeUsers','userProfileId','role','options','rawAttributes','destroy','get','intersection','undefined','lodash','Unable\x20to\x20retrieve\x20the\x20current\x20user','omit','autoAssociation','keys','key','params','Content-Range','status','merge','error','attributes','fields','count','VIRTUAL','model','limit','send','query','../../rediscache','then','../../mysqldb','catch','map','nolimit','rows','order','filters','end','emit','isArray','findOne','SquareProject','set','where','stack','show','ids','SquareProjects','pick','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getUsers','index','sort','register','offset','create','filter','./squareProject.socket','length','userSquareProject:remove','user'];(function(_0x3b20d7,_0x35753f){const _0x14786f=function(_0xdafc0b){while(--_0xdafc0b){_0x3b20d7['push'](_0x3b20d7['shift']());}};_0x14786f(++_0x35753f);}(a598_0x3575,0x1de));const a598_0x1478=function(_0x3b20d7,_0x35753f){_0x3b20d7=_0x3b20d7-0x0;let _0x14786f=a598_0x3575[_0x3b20d7];return _0x14786f;};const _0x3769dd=a598_0x1478;'use strict';const _=require(_0x3769dd('0x3e')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{getSocket}=require(_0x3769dd('0x7')),socket=getSocket(),db=require(_0x3769dd('0x9'))['db'],{Op}=require(_0x3769dd('0x33'));require(_0x3769dd('0x24'))[_0x3769dd('0x20')](socket);function respondWithStatusCode(_0xdafc0b,_0x2e2001){return _0x2e2001=_0x2e2001||0xcc,function(_0x5d5a67){const _0xf9ae25=a598_0x1478;if(_0x5d5a67)return _0xdafc0b[_0xf9ae25('0x32')](_0x2e2001);return _0xdafc0b[_0xf9ae25('0x46')](_0x2e2001)['end']();};}function respondWithResult(_0x195db3,_0x3d00a8){return _0x3d00a8=_0x3d00a8||0xc8,function(_0x28f765){const _0x4697f1=a598_0x1478;if(_0x28f765)return _0x195db3['status'](_0x3d00a8)[_0x4697f1('0x29')](_0x28f765);};}function respondWithFilteredResult(_0x1a8041,_0x41749f){return function(_0x3ee80b){const _0x4dee76=a598_0x1478;if(_0x3ee80b){const _0x346560=_0x3ee80b[_0x4dee76('0x1')],_0x1df043=_0x41749f[_0x4dee76('0x21')];let _0x103c17=_0x41749f[_0x4dee76('0x21')]+_0x41749f['limit'],_0x2b527f;return _0x103c17>=_0x346560?(_0x103c17=_0x346560,_0x2b527f=0xc8):_0x2b527f=0xce,_0x1a8041[_0x4dee76('0x46')](_0x2b527f),_0x1a8041[_0x4dee76('0x15')](_0x4dee76('0x45'),_0x1df043+'-'+_0x103c17+'/'+_0x346560)[_0x4dee76('0x29')](_0x3ee80b);}return null;};}function saveUpdates(_0x457473){return function(_0x216c29){const _0xc285ff=a598_0x1478;if(_0x216c29)return _0x216c29[_0xc285ff('0x2d')](_0x457473)[_0xc285ff('0x8')](function(_0x279a1d){return _0x279a1d;});return null;};}function removeEntity(_0x30032e){return function(_0x1ce634){const _0x175a8d=a598_0x1478;if(_0x1ce634)return _0x1ce634[_0x175a8d('0x3a')]()[_0x175a8d('0x8')](function(){const _0x5a5ea5=_0x175a8d,_0x21abb7=_0x1ce634[_0x5a5ea5('0x3b')]({'plain':!![]}),_0x56720f='SquareProjects';return db[_0x5a5ea5('0x2a')]['destroy']({'where':{'type':_0x56720f,'resourceId':_0x21abb7['id']}})[_0x5a5ea5('0x8')](function(){return _0x1ce634;});})[_0x175a8d('0x8')](function(){const _0x43cad6=_0x175a8d;_0x30032e[_0x43cad6('0x46')](0xcc)[_0x43cad6('0x10')]();});};}function handleEntityNotFound(_0x166259){return function(_0x1fec32){const _0x430bc1=a598_0x1478;return!_0x1fec32&&_0x166259[_0x430bc1('0x32')](0x194),_0x1fec32;};}function handleError(_0x5998a4,_0xeab8bd){return _0xeab8bd=_0xeab8bd||0x1f4,function(_0x4bc4ab){const _0x365679=a598_0x1478;logger[_0x365679('0x48')](_0x4bc4ab[_0x365679('0x17')]),_0x4bc4ab['name']&&delete _0x4bc4ab['name'],_0x5998a4[_0x365679('0x46')](_0xeab8bd)[_0x365679('0x5')](_0x4bc4ab);};}exports[_0x3769dd('0x1e')]=function(_0x6a575c,_0x547d39){const _0x530f52=_0x3769dd;let _0x3521f6={};const _0x5096bb={},_0x314dd2={'count':0x0,'rows':[]},_0x3bac7f=_[_0x530f52('0xb')](db[_0x530f52('0x14')]['rawAttributes'],function(_0x2ce2db){const _0x43e32e=_0x530f52;return{'name':_0x2ce2db['fieldName'],'type':_0x2ce2db['type'][_0x43e32e('0x43')]};});_0x5096bb[_0x530f52('0x3')]=_[_0x530f52('0xb')](_0x3bac7f,_0x530f52('0x34')),_0x5096bb[_0x530f52('0x6')]=_[_0x530f52('0x42')](_0x6a575c[_0x530f52('0x6')]),_0x5096bb[_0x530f52('0xf')]=_[_0x530f52('0x3c')](_0x5096bb[_0x530f52('0x3')],_0x5096bb['query']),_0x3521f6[_0x530f52('0x49')]=_[_0x530f52('0x3c')](_0x5096bb[_0x530f52('0x3')],qs[_0x530f52('0x0')](_0x6a575c[_0x530f52('0x6')][_0x530f52('0x0')])),_0x3521f6[_0x530f52('0x49')]=_0x3521f6['attributes']['length']?_0x3521f6[_0x530f52('0x49')]:_0x5096bb[_0x530f52('0x3')];typeof _0x6a575c[_0x530f52('0x6')][_0x530f52('0xc')]===_0x530f52('0x3d')&&(_0x3521f6[_0x530f52('0x4')]=qs['limit'](_0x6a575c[_0x530f52('0x6')][_0x530f52('0x4')]),_0x3521f6[_0x530f52('0x21')]=qs['offset'](_0x6a575c[_0x530f52('0x6')][_0x530f52('0x21')]));_0x3521f6[_0x530f52('0xe')]=qs[_0x530f52('0x1f')](_0x6a575c['query'][_0x530f52('0x1f')]),_0x3521f6[_0x530f52('0x16')]=qs['filters'](_['pick'](_0x6a575c[_0x530f52('0x6')],_0x5096bb[_0x530f52('0xf')]),_0x3bac7f);_0x6a575c[_0x530f52('0x6')][_0x530f52('0x23')]&&(_0x3521f6[_0x530f52('0x16')]=_[_0x530f52('0x47')](_0x3521f6[_0x530f52('0x16')],{[Op['or']]:_['map'](_0x3bac7f,function(_0x4838cb){const _0x361c08=_0x530f52;if(_0x4838cb[_0x361c08('0x30')]!==_0x361c08('0x2')){const _0x514752={};return _0x514752[_0x4838cb[_0x361c08('0x34')]]={[Op['like']]:'%'+_0x6a575c[_0x361c08('0x6')][_0x361c08('0x23')]+'%'},_0x514752;}})}));_0x3521f6=_['merge']({},_0x3521f6,_0x6a575c['options']);const _0x58dd98={'where':_0x3521f6[_0x530f52('0x16')]};return db['SquareProject'][_0x530f52('0x1')](_0x58dd98)['then'](function(_0x4bf75a){const _0x4397b9=_0x530f52;return _0x314dd2[_0x4397b9('0x1')]=_0x4bf75a,_0x6a575c[_0x4397b9('0x6')]['includeAll']&&(_0x3521f6['include']=[{'all':!![]}]),db[_0x4397b9('0x14')][_0x4397b9('0x2c')](_0x3521f6);})[_0x530f52('0x8')](function(_0x431660){const _0x27c43a=_0x530f52;return _0x314dd2[_0x27c43a('0xd')]=_0x431660,_0x314dd2;})[_0x530f52('0x8')](respondWithFilteredResult(_0x547d39,_0x3521f6))[_0x530f52('0xa')](handleError(_0x547d39,null));},exports[_0x3769dd('0x18')]=function(_0x57de51,_0x212966){const _0x413a96=_0x3769dd;let _0x765933={'raw':![],'where':{'id':_0x57de51[_0x413a96('0x44')]['id']}};const _0x3c59fc={};return _0x3c59fc[_0x413a96('0x3')]=_['keys'](db['SquareProject'][_0x413a96('0x39')]),_0x3c59fc[_0x413a96('0x6')]=_[_0x413a96('0x42')](_0x57de51['query']),_0x3c59fc[_0x413a96('0xf')]=_[_0x413a96('0x3c')](_0x3c59fc['model'],_0x3c59fc[_0x413a96('0x6')]),_0x765933[_0x413a96('0x49')]=_[_0x413a96('0x3c')](_0x3c59fc[_0x413a96('0x3')],qs[_0x413a96('0x0')](_0x57de51[_0x413a96('0x6')][_0x413a96('0x0')])),_0x765933[_0x413a96('0x49')]=_0x765933[_0x413a96('0x49')]['length']?_0x765933[_0x413a96('0x49')]:_0x3c59fc[_0x413a96('0x3')],_0x57de51[_0x413a96('0x6')][_0x413a96('0x2f')]&&(_0x765933[_0x413a96('0x31')]=[{'all':!![]}]),_0x765933=_[_0x413a96('0x47')]({},_0x765933,_0x57de51['options']),db[_0x413a96('0x14')]['findOne'](_0x765933)['then'](handleEntityNotFound(_0x212966,null))['then'](respondWithResult(_0x212966,null))[_0x413a96('0xa')](handleError(_0x212966,null));},exports[_0x3769dd('0x22')]=function(_0x1d09ba,_0x5626cf){const _0x138a3a=_0x3769dd;return db[_0x138a3a('0x14')]['create'](_0x1d09ba[_0x138a3a('0x2e')],{})[_0x138a3a('0x8')](function(_0x449dbd){const _0x2164c0=_0x138a3a,_0x2e8ab0=_0x1d09ba[_0x2164c0('0x27')][_0x2164c0('0x3b')]({'plain':!![]});if(!_0x2e8ab0)throw new Error(_0x2164c0('0x3f'));if(_0x2e8ab0[_0x2164c0('0x37')]===_0x2164c0('0x27')){const _0x4a2634=_0x449dbd['get']({'plain':!![]}),_0x3484fe=_0x2164c0('0x1a');return db['UserProfileSection'][_0x2164c0('0x13')]({'where':{'name':_0x3484fe,'userProfileId':_0x2e8ab0[_0x2164c0('0x36')]},'raw':!![]})[_0x2164c0('0x8')](function(_0x2c55e9){const _0x1797e9=_0x2164c0;return _0x2c55e9&&_0x2c55e9[_0x1797e9('0x41')]===0x0?db['UserProfileResource'][_0x1797e9('0x22')]({'name':_0x4a2634[_0x1797e9('0x34')],'resourceId':_0x4a2634['id'],'type':_0x2c55e9[_0x1797e9('0x34')],'sectionId':_0x2c55e9['id']},{})[_0x1797e9('0x8')](function(){return _0x449dbd;}):_0x449dbd;})[_0x2164c0('0xa')](function(_0x550463){const _0x1e76dc=_0x2164c0;logger[_0x1e76dc('0x48')](_0x1e76dc('0x1c'),_0x550463);throw _0x550463;});}return _0x449dbd;})[_0x138a3a('0x8')](respondWithResult(_0x5626cf,0xc9))[_0x138a3a('0xa')](handleError(_0x5626cf,null));},exports[_0x3769dd('0x2d')]=function(_0x5270b9,_0xffc57c){const _0x31288b=_0x3769dd;return _0x5270b9[_0x31288b('0x2e')]['id']&&delete _0x5270b9[_0x31288b('0x2e')]['id'],db['SquareProject'][_0x31288b('0x13')]({'where':{'id':_0x5270b9[_0x31288b('0x44')]['id']}})[_0x31288b('0x8')](handleEntityNotFound(_0xffc57c,null))[_0x31288b('0x8')](saveUpdates(_0x5270b9[_0x31288b('0x2e')],null))[_0x31288b('0x8')](respondWithResult(_0xffc57c,null))['catch'](handleError(_0xffc57c,null));},exports[_0x3769dd('0x3a')]=function(_0x23819e,_0x5fc89c){const _0x50f9eb=_0x3769dd;return db['SquareProject'][_0x50f9eb('0x13')]({'where':{'id':_0x23819e[_0x50f9eb('0x44')]['id']}})[_0x50f9eb('0x8')](handleEntityNotFound(_0x5fc89c,null))[_0x50f9eb('0x8')](removeEntity(_0x5fc89c,null))[_0x50f9eb('0xa')](handleError(_0x5fc89c,null));},exports['addUsers']=function(_0x35ae32,_0x515073){const _0x180d87=_0x3769dd;return db[_0x180d87('0x14')]['findOne']({'where':{'id':_0x35ae32[_0x180d87('0x44')]['id']}})['then'](function(_0x2e0478){const _0x3665bf=_0x180d87;if(_0x2e0478)return _0x2e0478['addUsers'](_0x35ae32[_0x3665bf('0x2e')][_0x3665bf('0x19')],{'through':_[_0x3665bf('0x40')](_0x35ae32[_0x3665bf('0x2e')],['ids','id'])});})[_0x180d87('0x8')](respondWithResult(_0x515073,null))[_0x180d87('0xa')](handleError(_0x515073,null));},exports[_0x3769dd('0x35')]=function(_0x26299c,_0x59e554){const _0x1434e7=_0x3769dd;return db[_0x1434e7('0x14')][_0x1434e7('0x13')]({'where':{'id':_0x26299c[_0x1434e7('0x44')]['id']}})[_0x1434e7('0x8')](handleEntityNotFound(_0x59e554,null))[_0x1434e7('0x8')](function(_0xe26ff5){const _0x3953c2=_0x1434e7;if(_0xe26ff5)return _0xe26ff5[_0x3953c2('0x35')](_0x26299c[_0x3953c2('0x6')]['ids'])[_0x3953c2('0x8')](function(){const _0x3effae=_0x3953c2;if(_[_0x3effae('0x12')](_0x26299c[_0x3effae('0x6')][_0x3effae('0x19')]))for(let _0x339cbf=0x0;_0x339cbf<_0x26299c[_0x3effae('0x6')][_0x3effae('0x19')][_0x3effae('0x25')];_0x339cbf+=0x1){socket[_0x3effae('0x11')](_0x3effae('0x26'),{'UserId':Number(_0x26299c[_0x3effae('0x6')][_0x3effae('0x19')][_0x339cbf]),'SquareProjectId':Number(_0x26299c[_0x3effae('0x44')]['id'])});}else socket['emit'](_0x3effae('0x26'),{'UserId':Number(_0x26299c[_0x3effae('0x6')][_0x3effae('0x19')]),'SquareProjectId':Number(_0x26299c[_0x3effae('0x44')]['id'])});});})[_0x1434e7('0x8')](respondWithStatusCode(_0x59e554,null))['catch'](handleError(_0x59e554,null));},exports['getUsers']=function(_0x3afe89,_0x411337){const _0x179283=_0x3769dd;let _0x2e0f2e={};const _0xc670a8={};let _0x5b31d7,_0xfcdfad;return db['SquareProject'][_0x179283('0x13')]({'where':{'id':_0x3afe89[_0x179283('0x44')]['id']}})[_0x179283('0x8')](handleEntityNotFound(_0x411337,null))[_0x179283('0x8')](function(_0x3a3fc1){const _0x39ede0=_0x179283;if(_0x3a3fc1)return _0x5b31d7=_0x3a3fc1,_0xc670a8['model']=_[_0x39ede0('0x42')](db[_0x39ede0('0x2b')][_0x39ede0('0x39')]),_0xc670a8[_0x39ede0('0x6')]=_[_0x39ede0('0x42')](_0x3afe89[_0x39ede0('0x6')]),_0xc670a8['filters']=_['intersection'](_0xc670a8[_0x39ede0('0x3')],_0xc670a8['query']),_0x2e0f2e[_0x39ede0('0x49')]=_[_0x39ede0('0x3c')](_0xc670a8['model'],qs[_0x39ede0('0x0')](_0x3afe89['query'][_0x39ede0('0x0')])),_0x2e0f2e[_0x39ede0('0x49')]=_0x2e0f2e[_0x39ede0('0x49')][_0x39ede0('0x25')]?_0x2e0f2e[_0x39ede0('0x49')]:_0xc670a8[_0x39ede0('0x3')],_0x2e0f2e[_0x39ede0('0xe')]=qs[_0x39ede0('0x1f')](_0x3afe89['query'][_0x39ede0('0x1f')]),_0x2e0f2e[_0x39ede0('0x16')]=qs[_0x39ede0('0xf')](_[_0x39ede0('0x1b')](_0x3afe89[_0x39ede0('0x6')],_0xc670a8[_0x39ede0('0xf')])),_0x3afe89[_0x39ede0('0x6')][_0x39ede0('0x23')]&&(_0x2e0f2e['where']=_[_0x39ede0('0x47')](_0x2e0f2e[_0x39ede0('0x16')],{[Op['or']]:_['map'](_0x2e0f2e[_0x39ede0('0x49')],function(_0x3ef335){const _0x51b359=_0x39ede0,_0x38ae4c={};return _0x38ae4c[_0x3ef335]={[Op[_0x51b359('0x28')]]:'%'+_0x3afe89[_0x51b359('0x6')][_0x51b359('0x23')]+'%'},_0x38ae4c;})})),_0x2e0f2e=_[_0x39ede0('0x47')]({},_0x2e0f2e,_0x3afe89[_0x39ede0('0x38')]),_0x5b31d7[_0x39ede0('0x1d')](_0x2e0f2e);})[_0x179283('0x8')](function(_0x597a03){const _0x1a70f2=_0x179283;if(_0x597a03)return _0xfcdfad=_0x597a03['length'],typeof _0x3afe89[_0x1a70f2('0x6')][_0x1a70f2('0xc')]===_0x1a70f2('0x3d')&&(_0x2e0f2e[_0x1a70f2('0x4')]=qs[_0x1a70f2('0x4')](_0x3afe89[_0x1a70f2('0x6')][_0x1a70f2('0x4')]),_0x2e0f2e[_0x1a70f2('0x21')]=qs[_0x1a70f2('0x21')](_0x3afe89[_0x1a70f2('0x6')][_0x1a70f2('0x21')])),_0x5b31d7['getUsers'](_0x2e0f2e);})[_0x179283('0x8')](function(_0x38a628){if(_0x38a628)return _0x38a628?{'count':_0xfcdfad,'rows':_0x38a628}:null;})[_0x179283('0x8')](respondWithResult(_0x411337,null))[_0x179283('0xa')](handleError(_0x411337,null));}; \ No newline at end of file +const a598_0x32c8=['stack','findOne','includeAll','length','VIRTUAL','merge','../../config/logger','pick','nolimit','Unable\x20to\x20retrieve\x20the\x20current\x20user','keys','end','attributes','include','then','limit','User','userProfileId','filters','map','user','catch','get','set','query','emit','lodash','options','getUsers','intersection','status','rows','error','UserProfileResource','../../rediscache','SquareProject','fields','key','api','body','params','removeUsers','sort','json','type','model','offset','order','UserProfileSection','addUsers','index','filter','userSquareProject:remove','./squareProject.socket','autoAssociation','name','isArray','sendStatus','../../components/parsers/qs','like','undefined','send','register','create','SquareProjects','count','where','omit','role','Content-Range','update','ids'];(function(_0x576902,_0x32c82b){const _0x21d702=function(_0xd334d9){while(--_0xd334d9){_0x576902['push'](_0x576902['shift']());}};_0x21d702(++_0x32c82b);}(a598_0x32c8,0x14f));const a598_0x21d7=function(_0x576902,_0x32c82b){_0x576902=_0x576902-0x0;let _0x21d702=a598_0x32c8[_0x576902];return _0x21d702;};const _0x4193d2=a598_0x21d7;'use strict';const _=require(_0x4193d2('0x33')),qs=require(_0x4193d2('0xb')),logger=require(_0x4193d2('0x1f'))(_0x4193d2('0x3f')),{getSocket}=require(_0x4193d2('0x3b')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x4193d2('0x6'))[_0x4193d2('0xf')](socket);function respondWithStatusCode(_0xd334d9,_0x52dd5a){return _0x52dd5a=_0x52dd5a||0xcc,function(_0x12180d){const _0x266bb5=a598_0x21d7;if(_0x12180d)return _0xd334d9[_0x266bb5('0xa')](_0x52dd5a);return _0xd334d9[_0x266bb5('0x37')](_0x52dd5a)[_0x266bb5('0x24')]();};}function respondWithResult(_0x4dace5,_0x3a6bd1){return _0x3a6bd1=_0x3a6bd1||0xc8,function(_0x442f20){const _0x4d6900=a598_0x21d7;if(_0x442f20)return _0x4dace5[_0x4d6900('0x37')](_0x3a6bd1)[_0x4d6900('0x44')](_0x442f20);};}function respondWithFilteredResult(_0x507d28,_0x2b5881){return function(_0x480653){const _0x5eafcf=a598_0x21d7;if(_0x480653){const _0x43ccbd=_0x480653['count'],_0x22d724=_0x2b5881[_0x5eafcf('0x47')];let _0x1bad9d=_0x2b5881['offset']+_0x2b5881[_0x5eafcf('0x28')],_0x4d358c;return _0x1bad9d>=_0x43ccbd?(_0x1bad9d=_0x43ccbd,_0x4d358c=0xc8):_0x4d358c=0xce,_0x507d28[_0x5eafcf('0x37')](_0x4d358c),_0x507d28[_0x5eafcf('0x30')](_0x5eafcf('0x16'),_0x22d724+'-'+_0x1bad9d+'/'+_0x43ccbd)[_0x5eafcf('0x44')](_0x480653);}return null;};}function saveUpdates(_0x1bcd83){return function(_0x61f8b9){if(_0x61f8b9)return _0x61f8b9['update'](_0x1bcd83)['then'](function(_0x50c52f){return _0x50c52f;});return null;};}function removeEntity(_0x5b34b0){return function(_0x3e1214){const _0x57596c=a598_0x21d7;if(_0x3e1214)return _0x3e1214['destroy']()[_0x57596c('0x27')](function(){const _0x1e8f50=_0x57596c,_0x1f2380=_0x3e1214[_0x1e8f50('0x2f')]({'plain':!![]}),_0x420b9e=_0x1e8f50('0x11');return db[_0x1e8f50('0x3a')]['destroy']({'where':{'type':_0x420b9e,'resourceId':_0x1f2380['id']}})[_0x1e8f50('0x27')](function(){return _0x3e1214;});})[_0x57596c('0x27')](function(){const _0x5b2490=_0x57596c;_0x5b34b0[_0x5b2490('0x37')](0xcc)[_0x5b2490('0x24')]();});};}function handleEntityNotFound(_0x3a361d){return function(_0x503959){return!_0x503959&&_0x3a361d['sendStatus'](0x194),_0x503959;};}function handleError(_0x3a659d,_0x4321f8){return _0x4321f8=_0x4321f8||0x1f4,function(_0x9073a8){const _0x221086=a598_0x21d7;logger[_0x221086('0x39')](_0x9073a8[_0x221086('0x19')]),_0x9073a8[_0x221086('0x8')]&&delete _0x9073a8[_0x221086('0x8')],_0x3a659d[_0x221086('0x37')](_0x4321f8)[_0x221086('0xe')](_0x9073a8);};}exports[_0x4193d2('0x3')]=function(_0x4783c3,_0x5256cd){const _0x4dde8b=_0x4193d2;let _0x311e0f={};const _0x414963={},_0x515466={'count':0x0,'rows':[]},_0x4b0177=_[_0x4dde8b('0x2c')](db[_0x4dde8b('0x3c')]['rawAttributes'],function(_0x212133){const _0x41a355=_0x4dde8b;return{'name':_0x212133['fieldName'],'type':_0x212133[_0x41a355('0x45')][_0x41a355('0x3e')]};});_0x414963[_0x4dde8b('0x46')]=_['map'](_0x4b0177,_0x4dde8b('0x8')),_0x414963[_0x4dde8b('0x31')]=_['keys'](_0x4783c3[_0x4dde8b('0x31')]),_0x414963['filters']=_['intersection'](_0x414963[_0x4dde8b('0x46')],_0x414963[_0x4dde8b('0x31')]),_0x311e0f[_0x4dde8b('0x25')]=_[_0x4dde8b('0x36')](_0x414963[_0x4dde8b('0x46')],qs[_0x4dde8b('0x3d')](_0x4783c3[_0x4dde8b('0x31')][_0x4dde8b('0x3d')])),_0x311e0f[_0x4dde8b('0x25')]=_0x311e0f[_0x4dde8b('0x25')][_0x4dde8b('0x1c')]?_0x311e0f[_0x4dde8b('0x25')]:_0x414963['model'];typeof _0x4783c3[_0x4dde8b('0x31')][_0x4dde8b('0x21')]===_0x4dde8b('0xd')&&(_0x311e0f['limit']=qs[_0x4dde8b('0x28')](_0x4783c3[_0x4dde8b('0x31')][_0x4dde8b('0x28')]),_0x311e0f[_0x4dde8b('0x47')]=qs['offset'](_0x4783c3[_0x4dde8b('0x31')][_0x4dde8b('0x47')]));_0x311e0f[_0x4dde8b('0x0')]=qs[_0x4dde8b('0x43')](_0x4783c3['query'][_0x4dde8b('0x43')]),_0x311e0f[_0x4dde8b('0x13')]=qs['filters'](_[_0x4dde8b('0x20')](_0x4783c3[_0x4dde8b('0x31')],_0x414963[_0x4dde8b('0x2b')]),_0x4b0177);_0x4783c3[_0x4dde8b('0x31')][_0x4dde8b('0x4')]&&(_0x311e0f[_0x4dde8b('0x13')]=_[_0x4dde8b('0x1e')](_0x311e0f[_0x4dde8b('0x13')],{[Op['or']]:_[_0x4dde8b('0x2c')](_0x4b0177,function(_0x37d8a4){const _0x220db9=_0x4dde8b;if(_0x37d8a4['type']!==_0x220db9('0x1d')){const _0x444d9a={};return _0x444d9a[_0x37d8a4[_0x220db9('0x8')]]={[Op[_0x220db9('0xc')]]:'%'+_0x4783c3[_0x220db9('0x31')]['filter']+'%'},_0x444d9a;}})}));_0x311e0f=_['merge']({},_0x311e0f,_0x4783c3[_0x4dde8b('0x34')]);const _0x3febfb={'where':_0x311e0f['where']};return db['SquareProject'][_0x4dde8b('0x12')](_0x3febfb)['then'](function(_0x1e8fe5){const _0xb7b21e=_0x4dde8b;return _0x515466['count']=_0x1e8fe5,_0x4783c3[_0xb7b21e('0x31')][_0xb7b21e('0x1b')]&&(_0x311e0f[_0xb7b21e('0x26')]=[{'all':!![]}]),db['SquareProject']['findAll'](_0x311e0f);})[_0x4dde8b('0x27')](function(_0x42f03b){const _0x318cd7=_0x4dde8b;return _0x515466[_0x318cd7('0x38')]=_0x42f03b,_0x515466;})[_0x4dde8b('0x27')](respondWithFilteredResult(_0x5256cd,_0x311e0f))['catch'](handleError(_0x5256cd,null));},exports['show']=function(_0x28dab3,_0x55b8a1){const _0x138c55=_0x4193d2;let _0x23a6fc={'raw':![],'where':{'id':_0x28dab3[_0x138c55('0x41')]['id']}};const _0x4709f7={};return _0x4709f7['model']=_[_0x138c55('0x23')](db['SquareProject']['rawAttributes']),_0x4709f7[_0x138c55('0x31')]=_[_0x138c55('0x23')](_0x28dab3[_0x138c55('0x31')]),_0x4709f7[_0x138c55('0x2b')]=_['intersection'](_0x4709f7['model'],_0x4709f7[_0x138c55('0x31')]),_0x23a6fc[_0x138c55('0x25')]=_[_0x138c55('0x36')](_0x4709f7[_0x138c55('0x46')],qs[_0x138c55('0x3d')](_0x28dab3[_0x138c55('0x31')][_0x138c55('0x3d')])),_0x23a6fc[_0x138c55('0x25')]=_0x23a6fc['attributes'][_0x138c55('0x1c')]?_0x23a6fc['attributes']:_0x4709f7['model'],_0x28dab3[_0x138c55('0x31')][_0x138c55('0x1b')]&&(_0x23a6fc[_0x138c55('0x26')]=[{'all':!![]}]),_0x23a6fc=_[_0x138c55('0x1e')]({},_0x23a6fc,_0x28dab3[_0x138c55('0x34')]),db['SquareProject'][_0x138c55('0x1a')](_0x23a6fc)[_0x138c55('0x27')](handleEntityNotFound(_0x55b8a1,null))[_0x138c55('0x27')](respondWithResult(_0x55b8a1,null))[_0x138c55('0x2e')](handleError(_0x55b8a1,null));},exports[_0x4193d2('0x10')]=function(_0x2ba71a,_0x534f11){const _0x3a325a=_0x4193d2;return db['SquareProject'][_0x3a325a('0x10')](_0x2ba71a[_0x3a325a('0x40')],{})[_0x3a325a('0x27')](function(_0x107b25){const _0x6fe8d9=_0x3a325a,_0x29e4ab=_0x2ba71a[_0x6fe8d9('0x2d')][_0x6fe8d9('0x2f')]({'plain':!![]});if(!_0x29e4ab)throw new Error(_0x6fe8d9('0x22'));if(_0x29e4ab[_0x6fe8d9('0x15')]===_0x6fe8d9('0x2d')){const _0x2bcf9e=_0x107b25[_0x6fe8d9('0x2f')]({'plain':!![]}),_0x596e28=_0x6fe8d9('0x11');return db[_0x6fe8d9('0x1')][_0x6fe8d9('0x1a')]({'where':{'name':_0x596e28,'userProfileId':_0x29e4ab[_0x6fe8d9('0x2a')]},'raw':!![]})[_0x6fe8d9('0x27')](function(_0x14701c){const _0x404fa4=_0x6fe8d9;return _0x14701c&&_0x14701c[_0x404fa4('0x7')]===0x0?db[_0x404fa4('0x3a')]['create']({'name':_0x2bcf9e[_0x404fa4('0x8')],'resourceId':_0x2bcf9e['id'],'type':_0x14701c['name'],'sectionId':_0x14701c['id']},{})[_0x404fa4('0x27')](function(){return _0x107b25;}):_0x107b25;})[_0x6fe8d9('0x2e')](function(_0xe7bb01){const _0x2a4d5d=_0x6fe8d9;logger[_0x2a4d5d('0x39')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xe7bb01);throw _0xe7bb01;});}return _0x107b25;})['then'](respondWithResult(_0x534f11,0xc9))[_0x3a325a('0x2e')](handleError(_0x534f11,null));},exports[_0x4193d2('0x17')]=function(_0x4ad9db,_0x207da3){const _0x2b6296=_0x4193d2;return _0x4ad9db[_0x2b6296('0x40')]['id']&&delete _0x4ad9db['body']['id'],db[_0x2b6296('0x3c')]['findOne']({'where':{'id':_0x4ad9db[_0x2b6296('0x41')]['id']}})[_0x2b6296('0x27')](handleEntityNotFound(_0x207da3,null))[_0x2b6296('0x27')](saveUpdates(_0x4ad9db[_0x2b6296('0x40')],null))[_0x2b6296('0x27')](respondWithResult(_0x207da3,null))[_0x2b6296('0x2e')](handleError(_0x207da3,null));},exports['destroy']=function(_0x54d32d,_0xc6db4c){const _0x10d5ba=_0x4193d2;return db[_0x10d5ba('0x3c')][_0x10d5ba('0x1a')]({'where':{'id':_0x54d32d['params']['id']}})['then'](handleEntityNotFound(_0xc6db4c,null))['then'](removeEntity(_0xc6db4c,null))[_0x10d5ba('0x2e')](handleError(_0xc6db4c,null));},exports[_0x4193d2('0x2')]=function(_0x238a3d,_0x5f55aa){const _0x53bf0e=_0x4193d2;return db[_0x53bf0e('0x3c')][_0x53bf0e('0x1a')]({'where':{'id':_0x238a3d[_0x53bf0e('0x41')]['id']}})[_0x53bf0e('0x27')](function(_0xf26092){const _0xeec75d=_0x53bf0e;if(_0xf26092)return _0xf26092[_0xeec75d('0x2')](_0x238a3d[_0xeec75d('0x40')][_0xeec75d('0x18')],{'through':_[_0xeec75d('0x14')](_0x238a3d[_0xeec75d('0x40')],[_0xeec75d('0x18'),'id'])});})[_0x53bf0e('0x27')](respondWithResult(_0x5f55aa,null))[_0x53bf0e('0x2e')](handleError(_0x5f55aa,null));},exports[_0x4193d2('0x42')]=function(_0x611ceb,_0x2e304a){const _0x25d521=_0x4193d2;return db[_0x25d521('0x3c')][_0x25d521('0x1a')]({'where':{'id':_0x611ceb[_0x25d521('0x41')]['id']}})['then'](handleEntityNotFound(_0x2e304a,null))[_0x25d521('0x27')](function(_0x3f0c96){const _0x37f754=_0x25d521;if(_0x3f0c96)return _0x3f0c96[_0x37f754('0x42')](_0x611ceb['query'][_0x37f754('0x18')])['then'](function(){const _0x7d76bb=_0x37f754;if(_[_0x7d76bb('0x9')](_0x611ceb[_0x7d76bb('0x31')]['ids']))for(let _0xc7296b=0x0;_0xc7296b<_0x611ceb['query'][_0x7d76bb('0x18')][_0x7d76bb('0x1c')];_0xc7296b+=0x1){socket[_0x7d76bb('0x32')](_0x7d76bb('0x5'),{'UserId':Number(_0x611ceb[_0x7d76bb('0x31')][_0x7d76bb('0x18')][_0xc7296b]),'SquareProjectId':Number(_0x611ceb[_0x7d76bb('0x41')]['id'])});}else socket[_0x7d76bb('0x32')](_0x7d76bb('0x5'),{'UserId':Number(_0x611ceb[_0x7d76bb('0x31')][_0x7d76bb('0x18')]),'SquareProjectId':Number(_0x611ceb[_0x7d76bb('0x41')]['id'])});});})[_0x25d521('0x27')](respondWithStatusCode(_0x2e304a,null))[_0x25d521('0x2e')](handleError(_0x2e304a,null));},exports['getUsers']=function(_0x3d529b,_0x465dd2){const _0x2cd784=_0x4193d2;let _0xd7d860={};const _0x5f507d={};let _0x356717,_0x582b49;return db[_0x2cd784('0x3c')][_0x2cd784('0x1a')]({'where':{'id':_0x3d529b['params']['id']}})[_0x2cd784('0x27')](handleEntityNotFound(_0x465dd2,null))['then'](function(_0x72080a){const _0x3b21b7=_0x2cd784;if(_0x72080a)return _0x356717=_0x72080a,_0x5f507d[_0x3b21b7('0x46')]=_[_0x3b21b7('0x23')](db[_0x3b21b7('0x29')]['rawAttributes']),_0x5f507d[_0x3b21b7('0x31')]=_['keys'](_0x3d529b[_0x3b21b7('0x31')]),_0x5f507d[_0x3b21b7('0x2b')]=_['intersection'](_0x5f507d[_0x3b21b7('0x46')],_0x5f507d[_0x3b21b7('0x31')]),_0xd7d860['attributes']=_[_0x3b21b7('0x36')](_0x5f507d['model'],qs['fields'](_0x3d529b['query']['fields'])),_0xd7d860[_0x3b21b7('0x25')]=_0xd7d860[_0x3b21b7('0x25')][_0x3b21b7('0x1c')]?_0xd7d860[_0x3b21b7('0x25')]:_0x5f507d[_0x3b21b7('0x46')],_0xd7d860['order']=qs[_0x3b21b7('0x43')](_0x3d529b[_0x3b21b7('0x31')]['sort']),_0xd7d860[_0x3b21b7('0x13')]=qs['filters'](_[_0x3b21b7('0x20')](_0x3d529b['query'],_0x5f507d[_0x3b21b7('0x2b')])),_0x3d529b[_0x3b21b7('0x31')][_0x3b21b7('0x4')]&&(_0xd7d860[_0x3b21b7('0x13')]=_['merge'](_0xd7d860['where'],{[Op['or']]:_[_0x3b21b7('0x2c')](_0xd7d860[_0x3b21b7('0x25')],function(_0x449031){const _0x1068ae=_0x3b21b7,_0x3f1b9f={};return _0x3f1b9f[_0x449031]={[Op[_0x1068ae('0xc')]]:'%'+_0x3d529b['query'][_0x1068ae('0x4')]+'%'},_0x3f1b9f;})})),_0xd7d860=_[_0x3b21b7('0x1e')]({},_0xd7d860,_0x3d529b['options']),_0x356717[_0x3b21b7('0x35')](_0xd7d860);})['then'](function(_0x3e359d){const _0x5ee759=_0x2cd784;if(_0x3e359d)return _0x582b49=_0x3e359d[_0x5ee759('0x1c')],typeof _0x3d529b[_0x5ee759('0x31')]['nolimit']==='undefined'&&(_0xd7d860[_0x5ee759('0x28')]=qs[_0x5ee759('0x28')](_0x3d529b['query'][_0x5ee759('0x28')]),_0xd7d860[_0x5ee759('0x47')]=qs['offset'](_0x3d529b[_0x5ee759('0x31')][_0x5ee759('0x47')])),_0x356717[_0x5ee759('0x35')](_0xd7d860);})['then'](function(_0x488459){if(_0x488459)return _0x488459?{'count':_0x582b49,'rows':_0x488459}:null;})[_0x2cd784('0x27')](respondWithResult(_0x465dd2,null))[_0x2cd784('0x2e')](handleError(_0x465dd2,null));}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.events.js b/server/api/squareProject/squareProject.events.js index 1bdb757..2737c20 100644 --- a/server/api/squareProject/squareProject.events.js +++ b/server/api/squareProject/squareProject.events.js @@ -1 +1 @@ -const a599_0x3733=['update','SquareProject','setMaxListeners','exports','../../mysqldb','undefined','emit','remove'];(function(_0x55aac2,_0x3733f7){const _0x542fe5=function(_0x147e7d){while(--_0x147e7d){_0x55aac2['push'](_0x55aac2['shift']());}};_0x542fe5(++_0x3733f7);}(a599_0x3733,0xb1));const a599_0x542f=function(_0x55aac2,_0x3733f7){_0x55aac2=_0x55aac2-0x0;let _0x542fe5=a599_0x3733[_0x55aac2];return _0x542fe5;};const _0x46b5ce=a599_0x542f;'use strict';const EventEmitter=require('events'),SquareProject=require(_0x46b5ce('0x3'))['db'][_0x46b5ce('0x0')],SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x46b5ce('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x46b5ce('0x7'),'afterDestroy':_0x46b5ce('0x6')};function emitEvent(_0x147e7d){return function(_0xd81c7e){const _0x575f21=a599_0x542f;SquareProjectEvents[_0x575f21('0x5')](_0x147e7d+':'+_0xd81c7e['id'],_0xd81c7e),SquareProjectEvents['emit'](_0x147e7d,_0xd81c7e);};}for(const e in events){if(typeof events[e]!==_0x46b5ce('0x4')){const event=events[e];SquareProject['addHook'](e,emitEvent(event));}}module[_0x46b5ce('0x2')]=SquareProjectEvents; \ No newline at end of file +const a599_0x495a=['undefined','save','exports','remove','setMaxListeners','emit','events','addHook'];(function(_0x39378d,_0x495a1a){const _0x28c2b7=function(_0xe55457){while(--_0xe55457){_0x39378d['push'](_0x39378d['shift']());}};_0x28c2b7(++_0x495a1a);}(a599_0x495a,0x144));const a599_0x28c2=function(_0x39378d,_0x495a1a){_0x39378d=_0x39378d-0x0;let _0x28c2b7=a599_0x495a[_0x39378d];return _0x28c2b7;};const _0x430a7b=a599_0x28c2;'use strict';const EventEmitter=require(_0x430a7b('0x2')),SquareProject=require('../../mysqldb')['db']['SquareProject'],SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x430a7b('0x0')](0x0);const events={'afterCreate':_0x430a7b('0x5'),'afterUpdate':'update','afterDestroy':_0x430a7b('0x7')};function emitEvent(_0xe55457){return function(_0x576efe){const _0x5df297=a599_0x28c2;SquareProjectEvents[_0x5df297('0x1')](_0xe55457+':'+_0x576efe['id'],_0x576efe),SquareProjectEvents[_0x5df297('0x1')](_0xe55457,_0x576efe);};}for(const e in events){if(typeof events[e]!==_0x430a7b('0x4')){const event=events[e];SquareProject[_0x430a7b('0x3')](e,emitEvent(event));}}module[_0x430a7b('0x6')]=SquareProjectEvents; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.model.js b/server/api/squareProject/squareProject.model.js index f06058c..446f1e6 100644 --- a/server/api/squareProject/squareProject.model.js +++ b/server/api/squareProject/squareProject.model.js @@ -1 +1 @@ -const a600_0xdc25=['SquareProject','exports','./squareProject.attributes','square_projects'];(function(_0xac74e2,_0xdc2589){const _0x4e6346=function(_0x1242d2){while(--_0x1242d2){_0xac74e2['push'](_0xac74e2['shift']());}};_0x4e6346(++_0xdc2589);}(a600_0xdc25,0x160));const a600_0x4e63=function(_0xac74e2,_0xdc2589){_0xac74e2=_0xac74e2-0x0;let _0x4e6346=a600_0xdc25[_0xac74e2];return _0x4e6346;};const _0x480ab8=a600_0x4e63;'use strict';const attributes=require(_0x480ab8('0x2'));module[_0x480ab8('0x1')]=function(_0x1242d2){const _0xb936a5=_0x480ab8,_0x6932c0=_0x1242d2['define'](_0xb936a5('0x0'),attributes,{'tableName':_0xb936a5('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x6932c0;}; \ No newline at end of file +const a600_0x5817=['SquareProject','define','./squareProject.attributes','square_projects'];(function(_0x3f43a1,_0x581721){const _0x590b03=function(_0x29ddb1){while(--_0x29ddb1){_0x3f43a1['push'](_0x3f43a1['shift']());}};_0x590b03(++_0x581721);}(a600_0x5817,0x141));const a600_0x590b=function(_0x3f43a1,_0x581721){_0x3f43a1=_0x3f43a1-0x0;let _0x590b03=a600_0x5817[_0x3f43a1];return _0x590b03;};const _0x47145c=a600_0x590b;'use strict';const attributes=require(_0x47145c('0x1'));module['exports']=function(_0x29ddb1){const _0x5d210e=_0x47145c,_0x367654=_0x29ddb1[_0x5d210e('0x0')](_0x5d210e('0x3'),attributes,{'tableName':_0x5d210e('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x367654;}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.rpc.js b/server/api/squareProject/squareProject.rpc.js index 920fcbf..a1b8578 100644 --- a/server/api/squareProject/squareProject.rpc.js +++ b/server/api/squareProject/squareProject.rpc.js @@ -1 +1 @@ -const a601_0x2b39=['register','attributes','./squareProject.socket','rpc','error','ShowSquareProject','where','message','map','debug','include','lodash','model','../../rediscache','findOne','info','then','options','../../config/logger','catch','SquareProject','../../mysqldb','raw'];(function(_0x243904,_0x2b39d4){const _0x58c95d=function(_0xe594c2){while(--_0xe594c2){_0x243904['push'](_0x243904['shift']());}};_0x58c95d(++_0x2b39d4);}(a601_0x2b39,0x15c));const a601_0x58c9=function(_0x243904,_0x2b39d4){_0x243904=_0x243904-0x0;let _0x58c95d=a601_0x2b39[_0x243904];return _0x58c95d;};const _0x2aff07=a601_0x58c9;'use strict';const db=require(_0x2aff07('0x12'))['db'],logger=require(_0x2aff07('0xf'))(_0x2aff07('0x0')),_=require(_0x2aff07('0x8')),{getSocket}=require(_0x2aff07('0xa')),socket=getSocket();require(_0x2aff07('0x16'))[_0x2aff07('0x14')](socket),exports['ShowSquareProject']=function(_0xe594c2){const _0x5a8e60=this;return new Promise(function(_0x671724,_0x223059){const _0x399b25=a601_0x58c9;return db[_0x399b25('0x11')][_0x399b25('0xb')]({'raw':_0xe594c2[_0x399b25('0xe')]?_0xe594c2[_0x399b25('0xe')][_0x399b25('0x13')]===undefined?!![]:![]:!![],'where':_0xe594c2[_0x399b25('0xe')]?_0xe594c2[_0x399b25('0xe')][_0x399b25('0x3')]||null:null,'attributes':_0xe594c2['options']?_0xe594c2[_0x399b25('0xe')][_0x399b25('0x15')]||null:null,'include':_0xe594c2['options']?_0xe594c2[_0x399b25('0xe')][_0x399b25('0x7')]?_[_0x399b25('0x5')](_0xe594c2[_0x399b25('0xe')]['include'],function(_0xb4360c){const _0x1ad680=_0x399b25;return{'model':db[_0xb4360c[_0x1ad680('0x9')]],'as':_0xb4360c['as'],'attributes':_0xb4360c[_0x1ad680('0x15')],'include':_0xb4360c['include']?_[_0x1ad680('0x5')](_0xb4360c['include'],function(_0x3e8f34){const _0x4004a0=_0x1ad680;return{'model':db[_0x3e8f34['model']],'as':_0x3e8f34['as'],'attributes':_0x3e8f34[_0x4004a0('0x15')],'include':_0x3e8f34['include']?_[_0x4004a0('0x5')](_0x3e8f34[_0x4004a0('0x7')],function(_0x20ed72){const _0x3ebf48=_0x4004a0;return{'model':db[_0x20ed72[_0x3ebf48('0x9')]],'as':_0x20ed72['as'],'attributes':_0x20ed72[_0x3ebf48('0x15')]};}):[]};}):[]};}):[]:[]})[_0x399b25('0xd')](function(_0xa8893c){const _0x38eaab=_0x399b25;logger[_0x38eaab('0xc')]('ShowSquareProject',_0xe594c2),logger[_0x38eaab('0x6')](_0x38eaab('0x2'),_0xe594c2,JSON['stringify'](_0xa8893c)),_0x671724(_0xa8893c);})[_0x399b25('0x10')](function(_0x179e3f){const _0x4a1617=_0x399b25;logger[_0x4a1617('0x1')](_0x4a1617('0x2'),_0x179e3f[_0x4a1617('0x4')],_0xe594c2),_0x223059(_0x5a8e60[_0x4a1617('0x1')](0x1f4,_0x179e3f[_0x4a1617('0x4')]));});});}; \ No newline at end of file +const a601_0x9765=['findOne','stringify','map','catch','../../rediscache','include','model','SquareProject','raw','./squareProject.socket','options','error','message','rpc','ShowSquareProject','where','attributes','../../mysqldb','register','info','debug','then','../../config/logger'];(function(_0x452c45,_0x976595){const _0x10df8e=function(_0x23af20){while(--_0x23af20){_0x452c45['push'](_0x452c45['shift']());}};_0x10df8e(++_0x976595);}(a601_0x9765,0x1cf));const a601_0x10df=function(_0x452c45,_0x976595){_0x452c45=_0x452c45-0x0;let _0x10df8e=a601_0x9765[_0x452c45];return _0x10df8e;};const _0x1952ab=a601_0x10df;'use strict';const db=require(_0x1952ab('0xe'))['db'],logger=require(_0x1952ab('0x13'))(_0x1952ab('0xa')),_=require('lodash'),{getSocket}=require(_0x1952ab('0x1')),socket=getSocket();require(_0x1952ab('0x6'))[_0x1952ab('0xf')](socket),exports['ShowSquareProject']=function(_0x23af20){const _0x3959cf=this;return new Promise(function(_0x156d44,_0xbd03a8){const _0x2b8a0b=a601_0x10df;return db[_0x2b8a0b('0x4')][_0x2b8a0b('0x14')]({'raw':_0x23af20[_0x2b8a0b('0x7')]?_0x23af20[_0x2b8a0b('0x7')][_0x2b8a0b('0x5')]===undefined?!![]:![]:!![],'where':_0x23af20['options']?_0x23af20[_0x2b8a0b('0x7')][_0x2b8a0b('0xc')]||null:null,'attributes':_0x23af20[_0x2b8a0b('0x7')]?_0x23af20[_0x2b8a0b('0x7')][_0x2b8a0b('0xd')]||null:null,'include':_0x23af20[_0x2b8a0b('0x7')]?_0x23af20[_0x2b8a0b('0x7')][_0x2b8a0b('0x2')]?_['map'](_0x23af20[_0x2b8a0b('0x7')][_0x2b8a0b('0x2')],function(_0x56aa9c){const _0xa616a7=_0x2b8a0b;return{'model':db[_0x56aa9c[_0xa616a7('0x3')]],'as':_0x56aa9c['as'],'attributes':_0x56aa9c[_0xa616a7('0xd')],'include':_0x56aa9c['include']?_[_0xa616a7('0x16')](_0x56aa9c[_0xa616a7('0x2')],function(_0x1663ba){const _0x340e0f=_0xa616a7;return{'model':db[_0x1663ba[_0x340e0f('0x3')]],'as':_0x1663ba['as'],'attributes':_0x1663ba['attributes'],'include':_0x1663ba[_0x340e0f('0x2')]?_[_0x340e0f('0x16')](_0x1663ba['include'],function(_0x104879){const _0x2d7584=_0x340e0f;return{'model':db[_0x104879[_0x2d7584('0x3')]],'as':_0x104879['as'],'attributes':_0x104879[_0x2d7584('0xd')]};}):[]};}):[]};}):[]:[]})[_0x2b8a0b('0x12')](function(_0x2b8bc3){const _0x51a01d=_0x2b8a0b;logger[_0x51a01d('0x10')]('ShowSquareProject',_0x23af20),logger[_0x51a01d('0x11')](_0x51a01d('0xb'),_0x23af20,JSON[_0x51a01d('0x15')](_0x2b8bc3)),_0x156d44(_0x2b8bc3);})[_0x2b8a0b('0x0')](function(_0x444c3b){const _0x934444=_0x2b8a0b;logger[_0x934444('0x8')](_0x934444('0xb'),_0x444c3b[_0x934444('0x9')],_0x23af20),_0xbd03a8(_0x3959cf[_0x934444('0x8')](0x1f4,_0x444c3b['message']));});});}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.socket.js b/server/api/squareProject/squareProject.socket.js index f7f62e7..56e997d 100644 --- a/server/api/squareProject/squareProject.socket.js +++ b/server/api/squareProject/squareProject.socket.js @@ -1 +1 @@ -const a602_0x3ca1=['remove','./squareProject.events','squareProject:','save','register','emit','length'];(function(_0x531b28,_0x3ca13e){const _0x3192c8=function(_0x3902cd){while(--_0x3902cd){_0x531b28['push'](_0x531b28['shift']());}};_0x3192c8(++_0x3ca13e);}(a602_0x3ca1,0x1aa));const a602_0x3192=function(_0x531b28,_0x3ca13e){_0x531b28=_0x531b28-0x0;let _0x3192c8=a602_0x3ca1[_0x531b28];return _0x3192c8;};const _0x23ef3e=a602_0x3192;'use strict';const SquareProjectEvents=require(_0x23ef3e('0x2')),events=[_0x23ef3e('0x4'),_0x23ef3e('0x1'),'update'];function createListener(_0x3902cd,_0x3ecc21){return function(_0x42eb20){const _0x418321=a602_0x3192;_0x3ecc21[_0x418321('0x6')](_0x3902cd,_0x42eb20);};}exports[_0x23ef3e('0x5')]=function(_0x1354ff){const _0x1ff346=_0x23ef3e;for(let _0x2a34a3=0x0,_0x1acae1=events[_0x1ff346('0x0')];_0x2a34a3<_0x1acae1;_0x2a34a3++){const _0x2c3445=events[_0x2a34a3],_0x37b312=createListener(_0x1ff346('0x3')+_0x2c3445,_0x1354ff);SquareProjectEvents['on'](_0x2c3445,_0x37b312);}}; \ No newline at end of file +const a602_0x4227=['length','squareProject:','update','emit','remove','save'];(function(_0x476388,_0x422790){const _0x408ca2=function(_0x16aef0){while(--_0x16aef0){_0x476388['push'](_0x476388['shift']());}};_0x408ca2(++_0x422790);}(a602_0x4227,0x1a8));const a602_0x408c=function(_0x476388,_0x422790){_0x476388=_0x476388-0x0;let _0x408ca2=a602_0x4227[_0x476388];return _0x408ca2;};const _0x3ac7b2=a602_0x408c;'use strict';const SquareProjectEvents=require('./squareProject.events'),events=[_0x3ac7b2('0x1'),_0x3ac7b2('0x0'),_0x3ac7b2('0x4')];function createListener(_0x16aef0,_0x39cec9){return function(_0x57270f){const _0x43e34d=a602_0x408c;_0x39cec9[_0x43e34d('0x5')](_0x16aef0,_0x57270f);};}exports['register']=function(_0x4184df){const _0x1c0bc8=_0x3ac7b2;for(let _0x2c88fd=0x0,_0x1a966d=events[_0x1c0bc8('0x2')];_0x2c88fd<_0x1a966d;_0x2c88fd++){const _0x3e185f=events[_0x2c88fd],_0x1b0e6c=createListener(_0x1c0bc8('0x3')+_0x3e185f,_0x4184df);SquareProjectEvents['on'](_0x3e185f,_0x1b0e6c);}}; \ No newline at end of file diff --git a/server/api/squareRecording/index.js b/server/api/squareRecording/index.js index 9b18e20..6818806 100644 --- a/server/api/squareRecording/index.js +++ b/server/api/squareRecording/index.js @@ -1 +1 @@ -const a603_0x2a7a=['/:id/delete','create','update','get','post','/:id/download','delete','index','../../components/auth/service','/:id','Router','./squareRecording.controller','show','isAuthenticated'];(function(_0x1ca71d,_0x2a7a7a){const _0x1df250=function(_0x4e2a5a){while(--_0x4e2a5a){_0x1ca71d['push'](_0x1ca71d['shift']());}};_0x1df250(++_0x2a7a7a);}(a603_0x2a7a,0x11a));const a603_0x1df2=function(_0x1ca71d,_0x2a7a7a){_0x1ca71d=_0x1ca71d-0x0;let _0x1df250=a603_0x2a7a[_0x1ca71d];return _0x1df250;};const _0x36295a=a603_0x1df2;'use strict';const express=require('express'),router=express[_0x36295a('0x8')](),auth=require(_0x36295a('0x6')),controller=require(_0x36295a('0x9'));router[_0x36295a('0x1')]('/',auth[_0x36295a('0xb')](),controller[_0x36295a('0x5')]),router[_0x36295a('0x1')](_0x36295a('0x7'),auth[_0x36295a('0xb')](),controller[_0x36295a('0xa')]),router[_0x36295a('0x1')](_0x36295a('0x3'),auth[_0x36295a('0xb')](),controller['download']),router[_0x36295a('0x2')]('/',auth[_0x36295a('0xb')](),controller[_0x36295a('0xd')]),router['put'](_0x36295a('0x7'),auth[_0x36295a('0xb')](),controller[_0x36295a('0x0')]),router[_0x36295a('0x4')](_0x36295a('0xc'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a603_0x2c76=['index','./squareRecording.controller','/:id','get','download','destroy','show','create','Router','delete','isAuthenticated','express','post','exports','../../components/auth/service'];(function(_0x3ca26e,_0x2c769e){const _0x18d80e=function(_0x301cd3){while(--_0x301cd3){_0x3ca26e['push'](_0x3ca26e['shift']());}};_0x18d80e(++_0x2c769e);}(a603_0x2c76,0x118));const a603_0x18d8=function(_0x3ca26e,_0x2c769e){_0x3ca26e=_0x3ca26e-0x0;let _0x18d80e=a603_0x2c76[_0x3ca26e];return _0x18d80e;};const _0x5c9d02=a603_0x18d8;'use strict';const express=require(_0x5c9d02('0x1')),router=express[_0x5c9d02('0xd')](),auth=require(_0x5c9d02('0x4')),controller=require(_0x5c9d02('0x6'));router[_0x5c9d02('0x8')]('/',auth['isAuthenticated'](),controller[_0x5c9d02('0x5')]),router['get'](_0x5c9d02('0x7'),auth['isAuthenticated'](),controller[_0x5c9d02('0xb')]),router[_0x5c9d02('0x8')]('/:id/download',auth[_0x5c9d02('0x0')](),controller[_0x5c9d02('0x9')]),router[_0x5c9d02('0x2')]('/',auth[_0x5c9d02('0x0')](),controller[_0x5c9d02('0xc')]),router['put'](_0x5c9d02('0x7'),auth[_0x5c9d02('0x0')](),controller['update']),router[_0x5c9d02('0xe')]('/:id/delete',auth[_0x5c9d02('0x0')](),controller[_0x5c9d02('0xa')]),module[_0x5c9d02('0x3')]=router; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.attributes.js b/server/api/squareRecording/squareRecording.attributes.js index 1b9ec5d..f706f13 100644 --- a/server/api/squareRecording/squareRecording.attributes.js +++ b/server/api/squareRecording/squareRecording.attributes.js @@ -1 +1 @@ -const a604_0x441b=['lastIndexOf','getDataValue','STRING','exports','VIRTUAL','savePath','sequelize','substring'];(function(_0x260340,_0x441b31){const _0x2ef6d9=function(_0xc8b7cf){while(--_0xc8b7cf){_0x260340['push'](_0x260340['shift']());}};_0x2ef6d9(++_0x441b31);}(a604_0x441b,0x7c));const a604_0x2ef6=function(_0x260340,_0x441b31){_0x260340=_0x260340-0x0;let _0x2ef6d9=a604_0x441b[_0x260340];return _0x2ef6d9;};const _0x4855ba=a604_0x2ef6;'use strict';const Sequelize=require(_0x4855ba('0x2'));module[_0x4855ba('0x7')]={'uniqueid':{'type':Sequelize[_0x4855ba('0x6')]},'callerid':{'type':Sequelize[_0x4855ba('0x6')]},'calleridname':{'type':Sequelize[_0x4855ba('0x6')]},'context':{'type':Sequelize[_0x4855ba('0x6')]},'extension':{'type':Sequelize[_0x4855ba('0x6')]},'priority':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x4855ba('0x6')]},'dnid':{'type':Sequelize[_0x4855ba('0x6')]},'projectName':{'type':Sequelize[_0x4855ba('0x6')]},'saveName':{'type':Sequelize[_0x4855ba('0x6')]},'filename':{'type':Sequelize[_0x4855ba('0x6')]},'savePath':{'type':Sequelize[_0x4855ba('0x6')]},'format':{'type':Sequelize[_0x4855ba('0x0')],'get':function(){const _0x585ca8=_0x4855ba;let _0xc8b7cf='';const _0x45fbf0=this[_0x585ca8('0x5')](_0x585ca8('0x1'));return _0x45fbf0&&(_0xc8b7cf=_0x45fbf0[_0x585ca8('0x3')](_0x45fbf0[_0x585ca8('0x4')]('.'))),_0xc8b7cf;}}}; \ No newline at end of file +const a604_0x576d=['getDataValue','exports','sequelize','STRING','savePath'];(function(_0x2d61da,_0x576d00){const _0x2703ee=function(_0x4dc629){while(--_0x4dc629){_0x2d61da['push'](_0x2d61da['shift']());}};_0x2703ee(++_0x576d00);}(a604_0x576d,0x197));const a604_0x2703=function(_0x2d61da,_0x576d00){_0x2d61da=_0x2d61da-0x0;let _0x2703ee=a604_0x576d[_0x2d61da];return _0x2703ee;};const _0xf3be76=a604_0x2703;'use strict';const Sequelize=require(_0xf3be76('0x0'));module[_0xf3be76('0x4')]={'uniqueid':{'type':Sequelize['STRING']},'callerid':{'type':Sequelize[_0xf3be76('0x1')]},'calleridname':{'type':Sequelize[_0xf3be76('0x1')]},'context':{'type':Sequelize[_0xf3be76('0x1')]},'extension':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0xf3be76('0x1')]},'accountcode':{'type':Sequelize[_0xf3be76('0x1')]},'dnid':{'type':Sequelize[_0xf3be76('0x1')]},'projectName':{'type':Sequelize[_0xf3be76('0x1')]},'saveName':{'type':Sequelize[_0xf3be76('0x1')]},'filename':{'type':Sequelize['STRING']},'savePath':{'type':Sequelize[_0xf3be76('0x1')]},'format':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x4f928d=_0xf3be76;let _0x4dc629='';const _0x149ebd=this[_0x4f928d('0x3')](_0x4f928d('0x2'));return _0x149ebd&&(_0x4dc629=_0x149ebd['substring'](_0x149ebd['lastIndexOf']('.'))),_0x4dc629;}}}; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.controller.js b/server/api/squareRecording/squareRecording.controller.js index 1ee63a2..198b0b2 100644 --- a/server/api/squareRecording/squareRecording.controller.js +++ b/server/api/squareRecording/squareRecording.controller.js @@ -1 +1 @@ -const a605_0x4c78=['format','include','params','fields','send','Not\x20found','fieldName','unlinkSync','order','includeAll','isNil','Sequelize','findOne','index','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','rows','uniqueid','destroy','limit','sendStatus','SquareRecording','findAll','path','SquareRecording\x20not\x20found','offset','model','keys','options','map','nolimit','then','secrets','Content-Range','unlink','sort','recording','VIRTUAL','undefined','update','File:\x20\x22','set','.cypher','cancellazione\x20fisica\x20documento\x20%s','../../config/environment','catch','pick','length','../../config/logger','merge','json','filters','create','../../mysqldb','name','download','query','savePath','intersection','existsSync','where','status','../../components/parsers/qs','end','attributes','message','../../components/encryptor','filter','error-middleware/errors','extname','info','like','%s.cypher','filename','rawAttributes','body','lodash','type','count'];(function(_0x274782,_0x4c7850){const _0x125eae=function(_0x2e19e1){while(--_0x2e19e1){_0x274782['push'](_0x274782['shift']());}};_0x125eae(++_0x4c7850);}(a605_0x4c78,0xe1));const a605_0x125e=function(_0x274782,_0x4c7850){_0x274782=_0x274782-0x0;let _0x125eae=a605_0x4c78[_0x274782];return _0x125eae;};const _0x2aa8b2=a605_0x125e;'use strict';const util=require('util'),path=require(_0x2aa8b2('0x1f')),fs=require('fs'),_=require(_0x2aa8b2('0x6')),qs=require(_0x2aa8b2('0x46')),logger=require(_0x2aa8b2('0x38'))('api'),config=require(_0x2aa8b2('0x34')),db=require(_0x2aa8b2('0x3d'))['db'],{Op}=require('sequelize'),{InternalError}=require(_0x2aa8b2('0x4c'));function respondWithResult(_0x2e19e1,_0x1d191a){return _0x1d191a=_0x1d191a||0xc8,function(_0x2e3e92){if(_0x2e3e92)return _0x2e19e1['status'](_0x1d191a)['json'](_0x2e3e92);};}function respondWithFilteredResult(_0x3886f4,_0x5a82bd){return function(_0x186296){const _0x44efd1=a605_0x125e;if(_0x186296){const _0x33b965=_0x186296[_0x44efd1('0x8')],_0x2e2855=_0x5a82bd[_0x44efd1('0x21')];let _0x47ea27=_0x5a82bd[_0x44efd1('0x21')]+_0x5a82bd['limit'],_0x44c99d;return _0x47ea27>=_0x33b965?(_0x47ea27=_0x33b965,_0x44c99d=0xc8):_0x44c99d=0xce,_0x3886f4['status'](_0x44c99d),_0x3886f4[_0x44efd1('0x31')](_0x44efd1('0x29'),_0x2e2855+'-'+_0x47ea27+'/'+_0x33b965)[_0x44efd1('0x3a')](_0x186296);}return null;};}function saveUpdates(_0x2cfd42){return function(_0x409695){const _0x3c753a=a605_0x125e;if(_0x409695)return _0x409695[_0x3c753a('0x2f')](_0x2cfd42)[_0x3c753a('0x27')](function(_0x1b6bd2){return _0x1b6bd2;});return null;};}function handleEntityNotFound(_0x47fe6f){return function(_0x35a176){const _0x3ef080=a605_0x125e;return!_0x35a176&&_0x47fe6f[_0x3ef080('0x1c')](0x194),_0x35a176;};}function handleError(_0x5bed6e,_0x182116){return _0x182116=_0x182116||0x1f4,function(_0x34f1d4){const _0x51b55e=a605_0x125e;logger['error'](_0x34f1d4['stack']),_0x34f1d4[_0x51b55e('0x3e')]&&delete _0x34f1d4[_0x51b55e('0x3e')],_0x5bed6e[_0x51b55e('0x45')](_0x182116)[_0x51b55e('0xd')](_0x34f1d4);};}exports[_0x2aa8b2('0x16')]=function(_0x48151f,_0x275cde){const _0x4e4f26=_0x2aa8b2;let _0xfae1f={};const _0x2ec850={},_0x5de0ae={'count':0x0,'rows':[]},_0x3d49d1=_['map'](db[_0x4e4f26('0x1d')]['rawAttributes'],function(_0x56b725){const _0x4d59c9=_0x4e4f26;return{'name':_0x56b725[_0x4d59c9('0xf')],'type':_0x56b725[_0x4d59c9('0x7')]['key']};});_0x2ec850[_0x4e4f26('0x22')]=_[_0x4e4f26('0x25')](_0x3d49d1,'name'),_0x2ec850['query']=_['keys'](_0x48151f['query']),_0x2ec850['filters']=_[_0x4e4f26('0x42')](_0x2ec850['model'],_0x2ec850[_0x4e4f26('0x40')]),_0xfae1f[_0x4e4f26('0x48')]=_[_0x4e4f26('0x42')](_0x2ec850['model'],qs[_0x4e4f26('0xc')](_0x48151f[_0x4e4f26('0x40')][_0x4e4f26('0xc')])),_0xfae1f['attributes']=_0xfae1f[_0x4e4f26('0x48')][_0x4e4f26('0x37')]?_0xfae1f[_0x4e4f26('0x48')]:_0x2ec850[_0x4e4f26('0x22')];typeof _0x48151f[_0x4e4f26('0x40')][_0x4e4f26('0x26')]===_0x4e4f26('0x2e')&&(_0xfae1f[_0x4e4f26('0x1b')]=qs['limit'](_0x48151f[_0x4e4f26('0x40')][_0x4e4f26('0x1b')]),_0xfae1f[_0x4e4f26('0x21')]=qs[_0x4e4f26('0x21')](_0x48151f[_0x4e4f26('0x40')][_0x4e4f26('0x21')]));_0xfae1f[_0x4e4f26('0x11')]=qs[_0x4e4f26('0x2b')](_0x48151f[_0x4e4f26('0x40')][_0x4e4f26('0x2b')]),_0xfae1f['where']=qs[_0x4e4f26('0x3b')](_[_0x4e4f26('0x36')](_0x48151f[_0x4e4f26('0x40')],_0x2ec850[_0x4e4f26('0x3b')]),_0x3d49d1);_0x48151f[_0x4e4f26('0x40')]['filter']&&(_0xfae1f[_0x4e4f26('0x44')]=_[_0x4e4f26('0x39')](_0xfae1f[_0x4e4f26('0x44')],{[Op['or']]:_[_0x4e4f26('0x25')](_0x3d49d1,function(_0x101305){const _0x41b268=_0x4e4f26;if(_0x101305[_0x41b268('0x7')]!==_0x41b268('0x2d')){const _0xf9869d={};return _0xf9869d[_0x101305[_0x41b268('0x3e')]]={[Op[_0x41b268('0x1')]]:'%'+_0x48151f[_0x41b268('0x40')][_0x41b268('0x4b')]+'%'},_0xf9869d;}})}));_0xfae1f=_['merge']({},_0xfae1f,_0x48151f[_0x4e4f26('0x24')]);const _0x25646f={'where':_0xfae1f[_0x4e4f26('0x44')]};return db[_0x4e4f26('0x1d')][_0x4e4f26('0x8')](_0x25646f)[_0x4e4f26('0x27')](function(_0x3c975b){const _0x4b93b2=_0x4e4f26;return _0x5de0ae['count']=_0x3c975b,_0x48151f[_0x4b93b2('0x40')][_0x4b93b2('0x12')]&&(_0xfae1f['include']=[{'all':!![]}]),db[_0x4b93b2('0x1d')][_0x4b93b2('0x1e')](_0xfae1f);})['then'](function(_0x2a7b74){const _0x2935ae=_0x4e4f26;return _0x5de0ae[_0x2935ae('0x18')]=_0x2a7b74,_0x5de0ae;})[_0x4e4f26('0x27')](respondWithFilteredResult(_0x275cde,_0xfae1f))['catch'](handleError(_0x275cde,null));},exports['show']=function(_0xa6c252,_0x4fc8f8){const _0x43ae75=_0x2aa8b2;let _0x221f31={'raw':!![],'where':{'id':_0xa6c252['params']['id']}};const _0x5ed1d6={};return _0x5ed1d6[_0x43ae75('0x22')]=_[_0x43ae75('0x23')](db[_0x43ae75('0x1d')][_0x43ae75('0x4')]),_0x5ed1d6[_0x43ae75('0x40')]=_[_0x43ae75('0x23')](_0xa6c252['query']),_0x5ed1d6[_0x43ae75('0x3b')]=_[_0x43ae75('0x42')](_0x5ed1d6[_0x43ae75('0x22')],_0x5ed1d6[_0x43ae75('0x40')]),_0x221f31[_0x43ae75('0x48')]=_[_0x43ae75('0x42')](_0x5ed1d6[_0x43ae75('0x22')],qs['fields'](_0xa6c252[_0x43ae75('0x40')][_0x43ae75('0xc')])),_0x221f31[_0x43ae75('0x48')]=_0x221f31['attributes'][_0x43ae75('0x37')]?_0x221f31[_0x43ae75('0x48')]:_0x5ed1d6['model'],_0xa6c252[_0x43ae75('0x40')][_0x43ae75('0x12')]&&(_0x221f31[_0x43ae75('0xa')]=[{'all':!![]}]),_0x221f31=_['merge']({},_0x221f31,_0xa6c252['options']),db[_0x43ae75('0x1d')]['findOne'](_0x221f31)[_0x43ae75('0x27')](handleEntityNotFound(_0x4fc8f8,null))['then'](respondWithResult(_0x4fc8f8,null))['catch'](handleError(_0x4fc8f8,null));},exports[_0x2aa8b2('0x3c')]=function(_0x512f3a,_0x184e5b){const _0x32de33=_0x2aa8b2;return db['SquareRecording']['create'](_0x512f3a[_0x32de33('0x5')],{})['then'](respondWithResult(_0x184e5b,0xc9))[_0x32de33('0x35')](handleError(_0x184e5b,null));},exports['update']=function(_0x5f3222,_0x58f633){const _0x241a66=_0x2aa8b2;return _0x5f3222[_0x241a66('0x5')]['id']&&delete _0x5f3222[_0x241a66('0x5')]['id'],db[_0x241a66('0x1d')][_0x241a66('0x15')]({'where':{'id':_0x5f3222[_0x241a66('0xb')]['id']}})[_0x241a66('0x27')](handleEntityNotFound(_0x58f633,null))['then'](saveUpdates(_0x5f3222[_0x241a66('0x5')],null))[_0x241a66('0x27')](respondWithResult(_0x58f633,null))['catch'](handleError(_0x58f633,null));},exports[_0x2aa8b2('0x3f')]=function(_0x3a3552,_0x66ca7e){const _0x5317ed=_0x2aa8b2,_0x1ef0d6=require(_0x5317ed('0x4a'));let _0x3b20d5=![];const _0x251605={};return _0x3a3552['query']['type']&&_0x3a3552[_0x5317ed('0x40')][_0x5317ed('0x7')]===_0x5317ed('0x19')?_0x251605[_0x5317ed('0x19')]=_0x3a3552[_0x5317ed('0xb')]['id']:_0x251605['id']=_0x3a3552['params']['id'],db[_0x5317ed('0x1d')]['findOne']({'where':_0x251605,'attributes':['id','savePath',_0x5317ed('0x3')],'raw':!![]})[_0x5317ed('0x27')](handleEntityNotFound(_0x66ca7e,null))[_0x5317ed('0x27')](function(_0x484d32){const _0xf0c854=_0x5317ed;if(_0x484d32){const _0x44448a=_0x484d32['savePath'],_0x15fc74=util[_0xf0c854('0x9')](_0xf0c854('0x2'),_0x44448a);if(fs[_0xf0c854('0x43')](_0x15fc74))return _0x3b20d5=!![],_0x1ef0d6['decryptFile'](_0x15fc74,_0x44448a,config[_0xf0c854('0x28')][_0xf0c854('0x2c')])[_0xf0c854('0x27')](function(){return _0x484d32;});return _0x484d32;}})[_0x5317ed('0x27')](function(_0x2812d7){const _0xe959c4=_0x5317ed;if(_0x2812d7){const _0x3843e4=_0x2812d7[_0xe959c4('0x41')];if(!fs[_0xe959c4('0x43')](_0x3843e4))throw new db[(_0xe959c4('0x14'))]['ValidationError'](_0xe959c4('0x20'));return _0x2812d7[_0xe959c4('0x3')]?_0x66ca7e[_0xe959c4('0x3f')](_0x3843e4,_0x2812d7[_0xe959c4('0x3')]+path[_0xe959c4('0x4d')](_0x3843e4),function(){const _0x4ce259=_0xe959c4;_0x3b20d5&&fs[_0x4ce259('0x2a')](_0x3843e4);}):_0x66ca7e[_0xe959c4('0x3f')](_0x3843e4,function(){_0x3b20d5&&fs['unlink'](_0x3843e4);});}})[_0x5317ed('0x35')](function(_0x85ff66){const _0x145251=_0x5317ed;if(_0x85ff66[_0x145251('0x49')]==='SquareRecording\x20not\x20found')_0x66ca7e['status'](0x194)[_0x145251('0xd')](_0x145251('0xe'));else return handleError(_0x66ca7e,null);});},exports[_0x2aa8b2('0x1a')]=function(_0x4f8596,_0x441c2d){const _0x506558=_0x2aa8b2;return db[_0x506558('0x1d')][_0x506558('0x15')]({'where':{'id':_0x4f8596[_0x506558('0xb')]['id']}})[_0x506558('0x27')](function(_0x5cb90b){if(!_0x5cb90b)throw new ReferenceError('Entity\x20not\x20found');return _0x5cb90b;})['then'](function(_0x1622db){const _0x2eb27a=_0x506558;let _0x3091f0=_0x1622db[_0x2eb27a('0x41')];return logger['info'](_0x2eb27a('0x33'),_0x3091f0),!_[_0x2eb27a('0x13')](_0x1622db[_0x2eb27a('0x41')])&&fs[_0x2eb27a('0x43')](_0x3091f0)&&(logger[_0x2eb27a('0x0')](_0x2eb27a('0x30')+_0x3091f0+_0x2eb27a('0x17')),fs[_0x2eb27a('0x10')](_0x3091f0)),_0x3091f0=_0x3091f0+_0x2eb27a('0x32'),!_['isNil'](_0x1622db[_0x2eb27a('0x41')])&&fs[_0x2eb27a('0x43')](_0x3091f0)&&(logger[_0x2eb27a('0x0')](_0x2eb27a('0x30')+_0x3091f0+_0x2eb27a('0x17')),fs['unlinkSync'](_0x3091f0)),_0x1622db;})[_0x506558('0x27')](function(_0x53fe9e){const _0x2e3e7b=_0x506558;if(!_0x53fe9e)throw new InternalError();return _0x53fe9e[_0x2e3e7b('0x1a')]();})[_0x506558('0x27')](function(){const _0x1bfac4=_0x506558;_0x441c2d[_0x1bfac4('0x45')](0xcc)[_0x1bfac4('0x47')]();})['catch'](handleError(_0x441c2d,null));}; \ No newline at end of file +const a605_0x5b72=['recording','fieldName','rawAttributes','Content-Range','../../config/environment','sequelize','ValidationError','VIRTUAL','nolimit','Not\x20found','length','then','body','options','includeAll','filename','show','SquareRecording\x20not\x20found','SquareRecording','intersection','decryptFile','../../components/encryptor','%s.cypher','order','unlink','format','sort','catch','info','filters','map','../../mysqldb','json','File:\x20\x22','error','pick','status','unlinkSync','destroy','query','update','attributes','index','where','sendStatus','uniqueid','existsSync','params','Sequelize','count','stack','create','error-middleware/errors','key','api','end','type','undefined','include','savePath','util','.cypher','findAll','isNil','download','like','rows','name','extname','filter','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','path','fields','../../config/logger','set','Entity\x20not\x20found','limit','offset','merge','model','findOne'];(function(_0x5dccee,_0x5b724d){const _0x5d00c1=function(_0x33c02d){while(--_0x33c02d){_0x5dccee['push'](_0x5dccee['shift']());}};_0x5d00c1(++_0x5b724d);}(a605_0x5b72,0x102));const a605_0x5d00=function(_0x5dccee,_0x5b724d){_0x5dccee=_0x5dccee-0x0;let _0x5d00c1=a605_0x5b72[_0x5dccee];return _0x5d00c1;};const _0x2aa862=a605_0x5d00;'use strict';const util=require(_0x2aa862('0x2d')),path=require(_0x2aa862('0x38')),fs=require('fs'),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x2aa862('0x3a'))(_0x2aa862('0x27')),config=require(_0x2aa862('0x46')),db=require(_0x2aa862('0x10'))['db'],{Op}=require(_0x2aa862('0x47')),{InternalError}=require(_0x2aa862('0x25'));function respondWithResult(_0x33c02d,_0x157cd9){return _0x157cd9=_0x157cd9||0xc8,function(_0xd18493){const _0x152ba9=a605_0x5d00;if(_0xd18493)return _0x33c02d[_0x152ba9('0x15')](_0x157cd9)[_0x152ba9('0x11')](_0xd18493);};}function respondWithFilteredResult(_0x54685d,_0x5b51cf){return function(_0x5d863a){const _0x5ca77b=a605_0x5d00;if(_0x5d863a){const _0x444df2=_0x5d863a['count'],_0x52d5a6=_0x5b51cf[_0x5ca77b('0x3e')];let _0x3881f5=_0x5b51cf[_0x5ca77b('0x3e')]+_0x5b51cf[_0x5ca77b('0x3d')],_0x524a24;return _0x3881f5>=_0x444df2?(_0x3881f5=_0x444df2,_0x524a24=0xc8):_0x524a24=0xce,_0x54685d['status'](_0x524a24),_0x54685d[_0x5ca77b('0x3b')](_0x5ca77b('0x45'),_0x52d5a6+'-'+_0x3881f5+'/'+_0x444df2)[_0x5ca77b('0x11')](_0x5d863a);}return null;};}function saveUpdates(_0x221b0c){return function(_0x4176c3){const _0x129401=a605_0x5d00;if(_0x4176c3)return _0x4176c3[_0x129401('0x19')](_0x221b0c)[_0x129401('0x4d')](function(_0x5da3fa){return _0x5da3fa;});return null;};}function handleEntityNotFound(_0x1ec7a7){return function(_0x1bf3ac){const _0x4419ac=a605_0x5d00;return!_0x1bf3ac&&_0x1ec7a7[_0x4419ac('0x1d')](0x194),_0x1bf3ac;};}function handleError(_0x209d8e,_0x50a45b){return _0x50a45b=_0x50a45b||0x1f4,function(_0x2d6a54){const _0x1711aa=a605_0x5d00;logger[_0x1711aa('0x13')](_0x2d6a54[_0x1711aa('0x23')]),_0x2d6a54[_0x1711aa('0x34')]&&delete _0x2d6a54[_0x1711aa('0x34')],_0x209d8e['status'](_0x50a45b)['send'](_0x2d6a54);};}exports[_0x2aa862('0x1b')]=function(_0x6af58f,_0xf9a6ed){const _0x3215b2=_0x2aa862;let _0x339df9={};const _0x523fec={},_0x40fe82={'count':0x0,'rows':[]},_0xffdc70=_[_0x3215b2('0xf')](db[_0x3215b2('0x3')][_0x3215b2('0x44')],function(_0x675d80){const _0x467df5=_0x3215b2;return{'name':_0x675d80[_0x467df5('0x43')],'type':_0x675d80[_0x467df5('0x29')][_0x467df5('0x26')]};});_0x523fec[_0x3215b2('0x40')]=_['map'](_0xffdc70,'name'),_0x523fec['query']=_['keys'](_0x6af58f[_0x3215b2('0x18')]),_0x523fec['filters']=_[_0x3215b2('0x4')](_0x523fec[_0x3215b2('0x40')],_0x523fec[_0x3215b2('0x18')]),_0x339df9[_0x3215b2('0x1a')]=_['intersection'](_0x523fec[_0x3215b2('0x40')],qs[_0x3215b2('0x39')](_0x6af58f['query'][_0x3215b2('0x39')])),_0x339df9[_0x3215b2('0x1a')]=_0x339df9[_0x3215b2('0x1a')][_0x3215b2('0x4c')]?_0x339df9[_0x3215b2('0x1a')]:_0x523fec[_0x3215b2('0x40')];typeof _0x6af58f[_0x3215b2('0x18')][_0x3215b2('0x4a')]===_0x3215b2('0x2a')&&(_0x339df9[_0x3215b2('0x3d')]=qs['limit'](_0x6af58f['query'][_0x3215b2('0x3d')]),_0x339df9[_0x3215b2('0x3e')]=qs[_0x3215b2('0x3e')](_0x6af58f[_0x3215b2('0x18')][_0x3215b2('0x3e')]));_0x339df9[_0x3215b2('0x8')]=qs[_0x3215b2('0xb')](_0x6af58f[_0x3215b2('0x18')][_0x3215b2('0xb')]),_0x339df9[_0x3215b2('0x1c')]=qs[_0x3215b2('0xe')](_[_0x3215b2('0x14')](_0x6af58f[_0x3215b2('0x18')],_0x523fec[_0x3215b2('0xe')]),_0xffdc70);_0x6af58f['query'][_0x3215b2('0x36')]&&(_0x339df9[_0x3215b2('0x1c')]=_[_0x3215b2('0x3f')](_0x339df9[_0x3215b2('0x1c')],{[Op['or']]:_[_0x3215b2('0xf')](_0xffdc70,function(_0xb1beed){const _0x5dfdcd=_0x3215b2;if(_0xb1beed[_0x5dfdcd('0x29')]!==_0x5dfdcd('0x49')){const _0x5e7ed={};return _0x5e7ed[_0xb1beed['name']]={[Op[_0x5dfdcd('0x32')]]:'%'+_0x6af58f[_0x5dfdcd('0x18')][_0x5dfdcd('0x36')]+'%'},_0x5e7ed;}})}));_0x339df9=_['merge']({},_0x339df9,_0x6af58f[_0x3215b2('0x4f')]);const _0x3c07f0={'where':_0x339df9[_0x3215b2('0x1c')]};return db[_0x3215b2('0x3')][_0x3215b2('0x22')](_0x3c07f0)[_0x3215b2('0x4d')](function(_0x53126d){const _0x444325=_0x3215b2;return _0x40fe82[_0x444325('0x22')]=_0x53126d,_0x6af58f[_0x444325('0x18')][_0x444325('0x50')]&&(_0x339df9[_0x444325('0x2b')]=[{'all':!![]}]),db[_0x444325('0x3')][_0x444325('0x2f')](_0x339df9);})['then'](function(_0x1607de){const _0x4f7c22=_0x3215b2;return _0x40fe82[_0x4f7c22('0x33')]=_0x1607de,_0x40fe82;})[_0x3215b2('0x4d')](respondWithFilteredResult(_0xf9a6ed,_0x339df9))[_0x3215b2('0xc')](handleError(_0xf9a6ed,null));},exports[_0x2aa862('0x1')]=function(_0x3feb5f,_0x4770bd){const _0xefb58d=_0x2aa862;let _0x384122={'raw':!![],'where':{'id':_0x3feb5f[_0xefb58d('0x20')]['id']}};const _0x45d663={};return _0x45d663[_0xefb58d('0x40')]=_['keys'](db[_0xefb58d('0x3')]['rawAttributes']),_0x45d663[_0xefb58d('0x18')]=_['keys'](_0x3feb5f[_0xefb58d('0x18')]),_0x45d663[_0xefb58d('0xe')]=_[_0xefb58d('0x4')](_0x45d663['model'],_0x45d663[_0xefb58d('0x18')]),_0x384122[_0xefb58d('0x1a')]=_[_0xefb58d('0x4')](_0x45d663['model'],qs['fields'](_0x3feb5f[_0xefb58d('0x18')][_0xefb58d('0x39')])),_0x384122[_0xefb58d('0x1a')]=_0x384122['attributes'][_0xefb58d('0x4c')]?_0x384122[_0xefb58d('0x1a')]:_0x45d663['model'],_0x3feb5f[_0xefb58d('0x18')][_0xefb58d('0x50')]&&(_0x384122[_0xefb58d('0x2b')]=[{'all':!![]}]),_0x384122=_[_0xefb58d('0x3f')]({},_0x384122,_0x3feb5f[_0xefb58d('0x4f')]),db[_0xefb58d('0x3')][_0xefb58d('0x41')](_0x384122)[_0xefb58d('0x4d')](handleEntityNotFound(_0x4770bd,null))['then'](respondWithResult(_0x4770bd,null))['catch'](handleError(_0x4770bd,null));},exports[_0x2aa862('0x24')]=function(_0x17878d,_0x2c2ea9){const _0x21a34f=_0x2aa862;return db[_0x21a34f('0x3')]['create'](_0x17878d['body'],{})['then'](respondWithResult(_0x2c2ea9,0xc9))[_0x21a34f('0xc')](handleError(_0x2c2ea9,null));},exports[_0x2aa862('0x19')]=function(_0x33a14f,_0xd14ed7){const _0x1c5261=_0x2aa862;return _0x33a14f[_0x1c5261('0x4e')]['id']&&delete _0x33a14f[_0x1c5261('0x4e')]['id'],db['SquareRecording']['findOne']({'where':{'id':_0x33a14f['params']['id']}})[_0x1c5261('0x4d')](handleEntityNotFound(_0xd14ed7,null))['then'](saveUpdates(_0x33a14f[_0x1c5261('0x4e')],null))[_0x1c5261('0x4d')](respondWithResult(_0xd14ed7,null))[_0x1c5261('0xc')](handleError(_0xd14ed7,null));},exports[_0x2aa862('0x31')]=function(_0x4ef3b2,_0x2db065){const _0x3a9b44=_0x2aa862,_0x2163f1=require(_0x3a9b44('0x6'));let _0x5b8251=![];const _0x33bf1b={};return _0x4ef3b2['query']['type']&&_0x4ef3b2[_0x3a9b44('0x18')]['type']==='uniqueid'?_0x33bf1b[_0x3a9b44('0x1e')]=_0x4ef3b2[_0x3a9b44('0x20')]['id']:_0x33bf1b['id']=_0x4ef3b2[_0x3a9b44('0x20')]['id'],db[_0x3a9b44('0x3')]['findOne']({'where':_0x33bf1b,'attributes':['id',_0x3a9b44('0x2c'),_0x3a9b44('0x0')],'raw':!![]})['then'](handleEntityNotFound(_0x2db065,null))[_0x3a9b44('0x4d')](function(_0x52ea8e){const _0x26bb25=_0x3a9b44;if(_0x52ea8e){const _0x1d24fa=_0x52ea8e[_0x26bb25('0x2c')],_0x50d7f9=util[_0x26bb25('0xa')](_0x26bb25('0x7'),_0x1d24fa);if(fs[_0x26bb25('0x1f')](_0x50d7f9))return _0x5b8251=!![],_0x2163f1[_0x26bb25('0x5')](_0x50d7f9,_0x1d24fa,config['secrets'][_0x26bb25('0x42')])[_0x26bb25('0x4d')](function(){return _0x52ea8e;});return _0x52ea8e;}})['then'](function(_0x1f4c3f){const _0x1eacee=_0x3a9b44;if(_0x1f4c3f){const _0x59f262=_0x1f4c3f[_0x1eacee('0x2c')];if(!fs[_0x1eacee('0x1f')](_0x59f262))throw new db[(_0x1eacee('0x21'))][(_0x1eacee('0x48'))](_0x1eacee('0x2'));return _0x1f4c3f[_0x1eacee('0x0')]?_0x2db065[_0x1eacee('0x31')](_0x59f262,_0x1f4c3f[_0x1eacee('0x0')]+path[_0x1eacee('0x35')](_0x59f262),function(){const _0x1c05a9=_0x1eacee;_0x5b8251&&fs[_0x1c05a9('0x9')](_0x59f262);}):_0x2db065[_0x1eacee('0x31')](_0x59f262,function(){const _0x507b07=_0x1eacee;_0x5b8251&&fs[_0x507b07('0x9')](_0x59f262);});}})['catch'](function(_0x42cd63){const _0x2d57ca=_0x3a9b44;if(_0x42cd63['message']===_0x2d57ca('0x2'))_0x2db065[_0x2d57ca('0x15')](0x194)['send'](_0x2d57ca('0x4b'));else return handleError(_0x2db065,null);});},exports['destroy']=function(_0x1c95a4,_0x298f67){const _0x59021e=_0x2aa862;return db[_0x59021e('0x3')]['findOne']({'where':{'id':_0x1c95a4[_0x59021e('0x20')]['id']}})[_0x59021e('0x4d')](function(_0x182a6b){const _0x2fa00f=_0x59021e;if(!_0x182a6b)throw new ReferenceError(_0x2fa00f('0x3c'));return _0x182a6b;})['then'](function(_0x2520bc){const _0x37ee81=_0x59021e;let _0x55eeab=_0x2520bc[_0x37ee81('0x2c')];return logger['info']('cancellazione\x20fisica\x20documento\x20%s',_0x55eeab),!_[_0x37ee81('0x30')](_0x2520bc['savePath'])&&fs[_0x37ee81('0x1f')](_0x55eeab)&&(logger[_0x37ee81('0xd')](_0x37ee81('0x12')+_0x55eeab+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs['unlinkSync'](_0x55eeab)),_0x55eeab=_0x55eeab+_0x37ee81('0x2e'),!_[_0x37ee81('0x30')](_0x2520bc[_0x37ee81('0x2c')])&&fs['existsSync'](_0x55eeab)&&(logger[_0x37ee81('0xd')](_0x37ee81('0x12')+_0x55eeab+_0x37ee81('0x37')),fs[_0x37ee81('0x16')](_0x55eeab)),_0x2520bc;})[_0x59021e('0x4d')](function(_0x10a0e6){const _0x29de0e=_0x59021e;if(!_0x10a0e6)throw new InternalError();return _0x10a0e6[_0x29de0e('0x17')]();})['then'](function(){const _0x27e6c5=_0x59021e;_0x298f67[_0x27e6c5('0x15')](0xcc)[_0x27e6c5('0x28')]();})[_0x59021e('0xc')](handleError(_0x298f67,null));}; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.model.js b/server/api/squareRecording/squareRecording.model.js index a3e26ff..74d8fa2 100644 --- a/server/api/squareRecording/squareRecording.model.js +++ b/server/api/squareRecording/squareRecording.model.js @@ -1 +1 @@ -const a606_0x3535=['exports','SquareRecording','define','square_recordings'];(function(_0x5b39cb,_0x35356e){const _0x2b9cfc=function(_0x2c079f){while(--_0x2c079f){_0x5b39cb['push'](_0x5b39cb['shift']());}};_0x2b9cfc(++_0x35356e);}(a606_0x3535,0x1e1));const a606_0x2b9c=function(_0x5b39cb,_0x35356e){_0x5b39cb=_0x5b39cb-0x0;let _0x2b9cfc=a606_0x3535[_0x5b39cb];return _0x2b9cfc;};const _0x3b9bf5=a606_0x2b9c;'use strict';const attributes=require('./squareRecording.attributes');module[_0x3b9bf5('0x3')]=function(_0x2c079f){const _0x36010c=_0x3b9bf5,_0x4a6604=_0x2c079f[_0x36010c('0x1')](_0x36010c('0x0'),attributes,{'tableName':_0x36010c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4a6604;}; \ No newline at end of file +const a606_0x4c2b=['SquareRecording','./squareRecording.attributes','exports','square_recordings'];(function(_0x5c24c2,_0x4c2bbc){const _0x433bac=function(_0x1ac5d6){while(--_0x1ac5d6){_0x5c24c2['push'](_0x5c24c2['shift']());}};_0x433bac(++_0x4c2bbc);}(a606_0x4c2b,0x1c1));const a606_0x433b=function(_0x5c24c2,_0x4c2bbc){_0x5c24c2=_0x5c24c2-0x0;let _0x433bac=a606_0x4c2b[_0x5c24c2];return _0x433bac;};const _0xa9a7a5=a606_0x433b;'use strict';const attributes=require(_0xa9a7a5('0x0'));module[_0xa9a7a5('0x1')]=function(_0x1ac5d6){const _0x42bcf3=_0xa9a7a5,_0x480ba9=_0x1ac5d6['define'](_0x42bcf3('0x3'),attributes,{'tableName':_0x42bcf3('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x480ba9;}; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.rpc.js b/server/api/squareRecording/squareRecording.rpc.js index e556306..67c06df 100644 --- a/server/api/squareRecording/squareRecording.rpc.js +++ b/server/api/squareRecording/squareRecording.rpc.js @@ -1 +1 @@ -const a607_0xa91e=['create','options','message','CreateSquareRecording','SquareRecording','../../config/logger','../../mysqldb','error','info','rpc'];(function(_0x5c944f,_0xa91e66){const _0x57fe0d=function(_0x660663){while(--_0x660663){_0x5c944f['push'](_0x5c944f['shift']());}};_0x57fe0d(++_0xa91e66);}(a607_0xa91e,0x1ab));const a607_0x57fe=function(_0x5c944f,_0xa91e66){_0x5c944f=_0x5c944f-0x0;let _0x57fe0d=a607_0xa91e[_0x5c944f];return _0x57fe0d;};const _0x162200=a607_0x57fe;'use strict';const db=require(_0x162200('0x9'))['db'],logger=require(_0x162200('0x8'))(_0x162200('0x2'));exports[_0x162200('0x6')]=function(_0x660663){const _0x3db606=this;return new Promise(function(_0x2ac928,_0x1ab3cc){const _0x1614a=a607_0x57fe;return db[_0x1614a('0x7')][_0x1614a('0x3')](_0x660663['body'],{'raw':_0x660663[_0x1614a('0x4')]?_0x660663['options']['raw']===undefined?!![]:![]:!![]})['then'](function(_0x44399a){const _0x11fece=_0x1614a;logger[_0x11fece('0x1')]('CreateSquareRecording',_0x660663),logger['debug']('CreateSquareRecording',_0x660663,JSON['stringify'](_0x44399a)),_0x2ac928(_0x44399a);})['catch'](function(_0x2fc61f){const _0x52dc0e=_0x1614a;logger['error']('CreateSquareRecording',_0x2fc61f[_0x52dc0e('0x5')],_0x660663),_0x1ab3cc(_0x3db606[_0x52dc0e('0x0')](0x1f4,_0x2fc61f['message']));});});}; \ No newline at end of file +const a607_0x1e1f=['then','CreateSquareRecording','message','info','../../config/logger','debug','SquareRecording','body','rpc','options'];(function(_0x3378f6,_0x1e1f95){const _0x4cd778=function(_0x56e046){while(--_0x56e046){_0x3378f6['push'](_0x3378f6['shift']());}};_0x4cd778(++_0x1e1f95);}(a607_0x1e1f,0x1d5));const a607_0x4cd7=function(_0x3378f6,_0x1e1f95){_0x3378f6=_0x3378f6-0x0;let _0x4cd778=a607_0x1e1f[_0x3378f6];return _0x4cd778;};const _0x4aaed0=a607_0x4cd7;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x4aaed0('0x5'))(_0x4aaed0('0x9'));exports[_0x4aaed0('0x2')]=function(_0x56e046){const _0x2f6629=this;return new Promise(function(_0x3cc18a,_0x1b89d3){const _0xac563d=a607_0x4cd7;return db[_0xac563d('0x7')]['create'](_0x56e046[_0xac563d('0x8')],{'raw':_0x56e046['options']?_0x56e046[_0xac563d('0x0')]['raw']===undefined?!![]:![]:!![]})[_0xac563d('0x1')](function(_0x14a81a){const _0x2d24b8=_0xac563d;logger[_0x2d24b8('0x4')](_0x2d24b8('0x2'),_0x56e046),logger[_0x2d24b8('0x6')]('CreateSquareRecording',_0x56e046,JSON['stringify'](_0x14a81a)),_0x3cc18a(_0x14a81a);})['catch'](function(_0xd52f0){const _0x1bf225=_0xac563d;logger['error'](_0x1bf225('0x2'),_0xd52f0[_0x1bf225('0x3')],_0x56e046),_0x1b89d3(_0x2f6629['error'](0x1f4,_0xd52f0['message']));});});}; \ No newline at end of file diff --git a/server/api/squareReport/index.js b/server/api/squareReport/index.js index b2bcf58..220a34d 100644 --- a/server/api/squareReport/index.js +++ b/server/api/squareReport/index.js @@ -1 +1 @@ -const a608_0x3d00=['/:id','/describe','delete','exports','./squareReport.controller','isAuthenticated','create','update','index','describe','express','../../components/auth/service','post','get','destroy'];(function(_0x3422ea,_0x3d0091){const _0x1659d1=function(_0x23515a){while(--_0x23515a){_0x3422ea['push'](_0x3422ea['shift']());}};_0x1659d1(++_0x3d0091);}(a608_0x3d00,0x90));const a608_0x1659=function(_0x3422ea,_0x3d0091){_0x3422ea=_0x3422ea-0x0;let _0x1659d1=a608_0x3d00[_0x3422ea];return _0x1659d1;};const _0x1e555e=a608_0x1659;'use strict';const express=require(_0x1e555e('0x1')),router=express['Router'](),auth=require(_0x1e555e('0x2')),controller=require(_0x1e555e('0xa'));router[_0x1e555e('0x4')]('/',auth['isAuthenticated'](),controller[_0x1e555e('0xe')]),router[_0x1e555e('0x4')](_0x1e555e('0x7'),auth[_0x1e555e('0xb')](),controller[_0x1e555e('0x0')]),router[_0x1e555e('0x4')](_0x1e555e('0x6'),auth[_0x1e555e('0xb')](),controller['show']),router[_0x1e555e('0x3')]('/',auth[_0x1e555e('0xb')](),controller[_0x1e555e('0xc')]),router['put'](_0x1e555e('0x6'),auth['isAuthenticated'](),controller[_0x1e555e('0xd')]),router[_0x1e555e('0x8')](_0x1e555e('0x6'),auth[_0x1e555e('0xb')](),controller[_0x1e555e('0x5')]),module[_0x1e555e('0x9')]=router; \ No newline at end of file +const a608_0x59c9=['isAuthenticated','create','index','Router','../../components/auth/service','describe','/:id','show','express','destroy','/describe','delete','get','update','exports'];(function(_0x1816aa,_0x59c9c6){const _0x2af650=function(_0x455631){while(--_0x455631){_0x1816aa['push'](_0x1816aa['shift']());}};_0x2af650(++_0x59c9c6);}(a608_0x59c9,0x195));const a608_0x2af6=function(_0x1816aa,_0x59c9c6){_0x1816aa=_0x1816aa-0x0;let _0x2af650=a608_0x59c9[_0x1816aa];return _0x2af650;};const _0x18c3b9=a608_0x2af6;'use strict';const express=require(_0x18c3b9('0x8')),router=express[_0x18c3b9('0x3')](),auth=require(_0x18c3b9('0x4')),controller=require('./squareReport.controller');router[_0x18c3b9('0xc')]('/',auth[_0x18c3b9('0x0')](),controller[_0x18c3b9('0x2')]),router[_0x18c3b9('0xc')](_0x18c3b9('0xa'),auth[_0x18c3b9('0x0')](),controller[_0x18c3b9('0x5')]),router[_0x18c3b9('0xc')](_0x18c3b9('0x6'),auth[_0x18c3b9('0x0')](),controller[_0x18c3b9('0x7')]),router['post']('/',auth[_0x18c3b9('0x0')](),controller[_0x18c3b9('0x1')]),router['put'](_0x18c3b9('0x6'),auth[_0x18c3b9('0x0')](),controller[_0x18c3b9('0xd')]),router[_0x18c3b9('0xb')](_0x18c3b9('0x6'),auth['isAuthenticated'](),controller[_0x18c3b9('0x9')]),module[_0x18c3b9('0xe')]=router; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.attributes.js b/server/api/squareReport/squareReport.attributes.js index 16be992..e7dbe4b 100644 --- a/server/api/squareReport/squareReport.attributes.js +++ b/server/api/squareReport/squareReport.attributes.js @@ -1 +1 @@ -const a609_0x1516=['DATE','exports','STRING','sequelize'];(function(_0x15ebdc,_0x1516b3){const _0x349c5d=function(_0x1442b6){while(--_0x1442b6){_0x15ebdc['push'](_0x15ebdc['shift']());}};_0x349c5d(++_0x1516b3);}(a609_0x1516,0xb8));const a609_0x349c=function(_0x15ebdc,_0x1516b3){_0x15ebdc=_0x15ebdc-0x0;let _0x349c5d=a609_0x1516[_0x15ebdc];return _0x349c5d;};const _0x4b8953=a609_0x349c;'use strict';const Sequelize=require(_0x4b8953('0x3'));module[_0x4b8953('0x1')]={'network':{'type':Sequelize[_0x4b8953('0x2')]},'network_script':{'type':Sequelize['STRING']},'request':{'type':Sequelize[_0x4b8953('0x2')]},'channel':{'type':Sequelize[_0x4b8953('0x2')]},'language':{'type':Sequelize[_0x4b8953('0x2')]},'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize['STRING']},'version':{'type':Sequelize[_0x4b8953('0x2')]},'callerid':{'type':Sequelize[_0x4b8953('0x2')]},'calleridname':{'type':Sequelize[_0x4b8953('0x2')]},'callingpres':{'type':Sequelize[_0x4b8953('0x2')]},'callingani2':{'type':Sequelize[_0x4b8953('0x2')]},'callington':{'type':Sequelize['STRING']},'callingtns':{'type':Sequelize['STRING']},'dnid':{'type':Sequelize['STRING']},'rdnis':{'type':Sequelize[_0x4b8953('0x2')]},'context':{'type':Sequelize[_0x4b8953('0x2')]},'extension':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0x4b8953('0x2')]},'enhanced':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x4b8953('0x2')]},'threadid':{'type':Sequelize['STRING']},'project_name':{'type':Sequelize[_0x4b8953('0x2')]},'joinAt':{'type':Sequelize[_0x4b8953('0x0')]},'leaveAt':{'type':Sequelize['DATE']},'bot':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +const a609_0x35ac=['DATE','STRING','BOOLEAN','exports'];(function(_0x4c2670,_0x35acf8){const _0x20c0eb=function(_0x5e7344){while(--_0x5e7344){_0x4c2670['push'](_0x4c2670['shift']());}};_0x20c0eb(++_0x35acf8);}(a609_0x35ac,0x170));const a609_0x20c0=function(_0x4c2670,_0x35acf8){_0x4c2670=_0x4c2670-0x0;let _0x20c0eb=a609_0x35ac[_0x4c2670];return _0x20c0eb;};const _0x25a6ec=a609_0x20c0;'use strict';const Sequelize=require('sequelize');module[_0x25a6ec('0x3')]={'network':{'type':Sequelize['STRING']},'network_script':{'type':Sequelize['STRING']},'request':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x25a6ec('0x1')]},'language':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x25a6ec('0x1')]},'uniqueid':{'type':Sequelize[_0x25a6ec('0x1')]},'version':{'type':Sequelize[_0x25a6ec('0x1')]},'callerid':{'type':Sequelize[_0x25a6ec('0x1')]},'calleridname':{'type':Sequelize[_0x25a6ec('0x1')]},'callingpres':{'type':Sequelize['STRING']},'callingani2':{'type':Sequelize[_0x25a6ec('0x1')]},'callington':{'type':Sequelize[_0x25a6ec('0x1')]},'callingtns':{'type':Sequelize['STRING']},'dnid':{'type':Sequelize[_0x25a6ec('0x1')]},'rdnis':{'type':Sequelize[_0x25a6ec('0x1')]},'context':{'type':Sequelize[_0x25a6ec('0x1')]},'extension':{'type':Sequelize[_0x25a6ec('0x1')]},'priority':{'type':Sequelize[_0x25a6ec('0x1')]},'enhanced':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize['STRING']},'threadid':{'type':Sequelize[_0x25a6ec('0x1')]},'project_name':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x25a6ec('0x0')]},'leaveAt':{'type':Sequelize['DATE']},'bot':{'type':Sequelize[_0x25a6ec('0x2')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.controller.js b/server/api/squareReport/squareReport.controller.js index 8aaecac..e5eb88e 100644 --- a/server/api/squareReport/squareReport.controller.js +++ b/server/api/squareReport/squareReport.controller.js @@ -1 +1 @@ -const a610_0x25c6=['set','show','filters','../../config/logger','stack','filter','type','name','destroy','../../components/parsers/qs','limit','nolimit','catch','send','attributes','describe','VIRTUAL','query','create','api','SquareReport','options','where','then','Content-Range','undefined','includeAll','body','status','include','sort','rows','intersection','rawAttributes','error','key','count','fields','json','update','order','findOne','fieldName','sendStatus','offset','model','keys','params','merge','map'];(function(_0x5a2c36,_0x25c6dc){const _0x321213=function(_0x6a6ee8){while(--_0x6a6ee8){_0x5a2c36['push'](_0x5a2c36['shift']());}};_0x321213(++_0x25c6dc);}(a610_0x25c6,0x94));const a610_0x3212=function(_0x5a2c36,_0x25c6dc){_0x5a2c36=_0x5a2c36-0x0;let _0x321213=a610_0x25c6[_0x5a2c36];return _0x321213;};const _0x350e9d=a610_0x3212;'use strict';const _=require('lodash'),qs=require(_0x350e9d('0xb')),logger=require(_0x350e9d('0x5'))(_0x350e9d('0x15')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x6a6ee8,_0x16ebf6){return _0x16ebf6=_0x16ebf6||0xc8,function(_0x553874){const _0x3beaa2=a610_0x3212;if(_0x553874)return _0x6a6ee8['status'](_0x16ebf6)[_0x3beaa2('0x28')](_0x553874);};}function respondWithFilteredResult(_0x233575,_0x7d9dcf){return function(_0x2756cc){const _0x40d717=a610_0x3212;if(_0x2756cc){const _0x1a706c=_0x2756cc[_0x40d717('0x26')],_0x329d70=_0x7d9dcf[_0x40d717('0x2e')];let _0x131506=_0x7d9dcf[_0x40d717('0x2e')]+_0x7d9dcf['limit'],_0x28d22d;return _0x131506>=_0x1a706c?(_0x131506=_0x1a706c,_0x28d22d=0xc8):_0x28d22d=0xce,_0x233575[_0x40d717('0x1e')](_0x28d22d),_0x233575[_0x40d717('0x2')](_0x40d717('0x1a'),_0x329d70+'-'+_0x131506+'/'+_0x1a706c)[_0x40d717('0x28')](_0x2756cc);}return null;};}function saveUpdates(_0x2e01d8){return function(_0x472a1d){const _0xcd6cf=a610_0x3212;if(_0x472a1d)return _0x472a1d[_0xcd6cf('0x29')](_0x2e01d8)['then'](function(_0x2704d1){return _0x2704d1;});return null;};}function removeEntity(_0x57cb10){return function(_0x11149f){const _0x48a97b=a610_0x3212;if(_0x11149f)return _0x11149f[_0x48a97b('0xa')]()[_0x48a97b('0x19')](function(){const _0x3c212d=_0x48a97b;_0x57cb10[_0x3c212d('0x1e')](0xcc)['end']();});};}function handleEntityNotFound(_0x1cb21b){return function(_0x47b5cd){const _0x5936b7=a610_0x3212;return!_0x47b5cd&&_0x1cb21b[_0x5936b7('0x2d')](0x194),_0x47b5cd;};}function handleError(_0x4cbf5b,_0x1b86e5){return _0x1b86e5=_0x1b86e5||0x1f4,function(_0x3b780e){const _0x4d57e2=a610_0x3212;logger[_0x4d57e2('0x24')](_0x3b780e[_0x4d57e2('0x6')]),_0x3b780e['name']&&delete _0x3b780e[_0x4d57e2('0x9')],_0x4cbf5b[_0x4d57e2('0x1e')](_0x1b86e5)[_0x4d57e2('0xf')](_0x3b780e);};}exports['index']=function(_0x4b8059,_0x458ae0){const _0x2d821d=_0x350e9d;let _0x5d6618={};const _0x47e4bd={},_0xc91c5a={'count':0x0,'rows':[]},_0x1712ee=_[_0x2d821d('0x1')](db[_0x2d821d('0x16')][_0x2d821d('0x23')],function(_0x1eb7e4){const _0x40d1fc=_0x2d821d;return{'name':_0x1eb7e4[_0x40d1fc('0x2c')],'type':_0x1eb7e4[_0x40d1fc('0x8')][_0x40d1fc('0x25')]};});_0x47e4bd[_0x2d821d('0x2f')]=_[_0x2d821d('0x1')](_0x1712ee,_0x2d821d('0x9')),_0x47e4bd[_0x2d821d('0x13')]=_[_0x2d821d('0x30')](_0x4b8059[_0x2d821d('0x13')]),_0x47e4bd[_0x2d821d('0x4')]=_['intersection'](_0x47e4bd[_0x2d821d('0x2f')],_0x47e4bd['query']),_0x5d6618['attributes']=_[_0x2d821d('0x22')](_0x47e4bd[_0x2d821d('0x2f')],qs['fields'](_0x4b8059[_0x2d821d('0x13')][_0x2d821d('0x27')])),_0x5d6618[_0x2d821d('0x10')]=_0x5d6618[_0x2d821d('0x10')]['length']?_0x5d6618['attributes']:_0x47e4bd[_0x2d821d('0x2f')];typeof _0x4b8059[_0x2d821d('0x13')][_0x2d821d('0xd')]===_0x2d821d('0x1b')&&(_0x5d6618[_0x2d821d('0xc')]=qs[_0x2d821d('0xc')](_0x4b8059[_0x2d821d('0x13')]['limit']),_0x5d6618[_0x2d821d('0x2e')]=qs[_0x2d821d('0x2e')](_0x4b8059[_0x2d821d('0x13')][_0x2d821d('0x2e')]));_0x5d6618[_0x2d821d('0x2a')]=qs[_0x2d821d('0x20')](_0x4b8059[_0x2d821d('0x13')]['sort']),_0x5d6618[_0x2d821d('0x18')]=qs[_0x2d821d('0x4')](_['pick'](_0x4b8059[_0x2d821d('0x13')],_0x47e4bd[_0x2d821d('0x4')]),_0x1712ee);_0x4b8059['query'][_0x2d821d('0x7')]&&(_0x5d6618[_0x2d821d('0x18')]=_[_0x2d821d('0x0')](_0x5d6618[_0x2d821d('0x18')],{[Op['or']]:_[_0x2d821d('0x1')](_0x1712ee,function(_0xd19e77){const _0x1246ff=_0x2d821d;if(_0xd19e77[_0x1246ff('0x8')]!==_0x1246ff('0x12')){const _0x495bbb={};return _0x495bbb[_0xd19e77['name']]={[Op['like']]:'%'+_0x4b8059['query'][_0x1246ff('0x7')]+'%'},_0x495bbb;}})}));_0x5d6618=_[_0x2d821d('0x0')]({},_0x5d6618,_0x4b8059[_0x2d821d('0x17')]);const _0x55a9a6={'where':_0x5d6618['where']};return db[_0x2d821d('0x16')]['count'](_0x55a9a6)['then'](function(_0x2745cd){const _0x7e112=_0x2d821d;return _0xc91c5a[_0x7e112('0x26')]=_0x2745cd,_0x4b8059[_0x7e112('0x13')][_0x7e112('0x1c')]&&(_0x5d6618[_0x7e112('0x1f')]=[{'all':!![]}]),db[_0x7e112('0x16')]['findAll'](_0x5d6618);})['then'](function(_0x6a760d){const _0x2bc32a=_0x2d821d;return _0xc91c5a[_0x2bc32a('0x21')]=_0x6a760d,_0xc91c5a;})[_0x2d821d('0x19')](respondWithFilteredResult(_0x458ae0,_0x5d6618))[_0x2d821d('0xe')](handleError(_0x458ae0,null));},exports[_0x350e9d('0x3')]=function(_0x46ea8d,_0x44ebba){const _0x1cb87c=_0x350e9d;let _0x4f48d8={'raw':!![],'where':{'id':_0x46ea8d[_0x1cb87c('0x31')]['id']}};const _0x121d9f={};return _0x121d9f['model']=_['keys'](db[_0x1cb87c('0x16')]['rawAttributes']),_0x121d9f[_0x1cb87c('0x13')]=_[_0x1cb87c('0x30')](_0x46ea8d[_0x1cb87c('0x13')]),_0x121d9f[_0x1cb87c('0x4')]=_[_0x1cb87c('0x22')](_0x121d9f[_0x1cb87c('0x2f')],_0x121d9f[_0x1cb87c('0x13')]),_0x4f48d8[_0x1cb87c('0x10')]=_[_0x1cb87c('0x22')](_0x121d9f[_0x1cb87c('0x2f')],qs[_0x1cb87c('0x27')](_0x46ea8d[_0x1cb87c('0x13')]['fields'])),_0x4f48d8['attributes']=_0x4f48d8[_0x1cb87c('0x10')]['length']?_0x4f48d8['attributes']:_0x121d9f[_0x1cb87c('0x2f')],_0x46ea8d['query'][_0x1cb87c('0x1c')]&&(_0x4f48d8[_0x1cb87c('0x1f')]=[{'all':!![]}]),_0x4f48d8=_[_0x1cb87c('0x0')]({},_0x4f48d8,_0x46ea8d[_0x1cb87c('0x17')]),db[_0x1cb87c('0x16')][_0x1cb87c('0x2b')](_0x4f48d8)['then'](handleEntityNotFound(_0x44ebba,null))['then'](respondWithResult(_0x44ebba,null))[_0x1cb87c('0xe')](handleError(_0x44ebba,null));},exports['create']=function(_0x5371ce,_0x126dbd){const _0x463fa8=_0x350e9d;return db[_0x463fa8('0x16')][_0x463fa8('0x14')](_0x5371ce['body'],{})[_0x463fa8('0x19')](respondWithResult(_0x126dbd,0xc9))[_0x463fa8('0xe')](handleError(_0x126dbd,null));},exports[_0x350e9d('0x29')]=function(_0x460e6f,_0x441eac){const _0x3eaf48=_0x350e9d;return _0x460e6f[_0x3eaf48('0x1d')]['id']&&delete _0x460e6f['body']['id'],db[_0x3eaf48('0x16')][_0x3eaf48('0x2b')]({'where':{'id':_0x460e6f[_0x3eaf48('0x31')]['id']}})[_0x3eaf48('0x19')](handleEntityNotFound(_0x441eac,null))['then'](saveUpdates(_0x460e6f[_0x3eaf48('0x1d')],null))['then'](respondWithResult(_0x441eac,null))[_0x3eaf48('0xe')](handleError(_0x441eac,null));},exports['destroy']=function(_0x1a10e7,_0x42fcac){const _0x5b36da=_0x350e9d;return db[_0x5b36da('0x16')][_0x5b36da('0x2b')]({'where':{'id':_0x1a10e7['params']['id']}})[_0x5b36da('0x19')](handleEntityNotFound(_0x42fcac,null))[_0x5b36da('0x19')](removeEntity(_0x42fcac,null))[_0x5b36da('0xe')](handleError(_0x42fcac,null));},exports['describe']=function(_0x496b56,_0x115870){const _0x2e13a4=_0x350e9d;return db['SquareReport'][_0x2e13a4('0x11')]()['then'](respondWithResult(_0x115870,null))['catch'](handleError(_0x115870,null));}; \ No newline at end of file +const a610_0x8538=['model','filters','params','attributes','body','undefined','api','name','merge','keys','options','show','include','sort','findAll','set','query','rows','status','../../mysqldb','sendStatus','update','describe','lodash','key','where','send','order','catch','length','../../components/parsers/qs','limit','../../config/logger','then','Content-Range','count','destroy','json','intersection','error','type','fields','map','offset','rawAttributes','create','index','findOne','filter','SquareReport','stack','sequelize','like','includeAll','nolimit'];(function(_0x5bdff5,_0x85389c){const _0x349699=function(_0x3f9dbc){while(--_0x3f9dbc){_0x5bdff5['push'](_0x5bdff5['shift']());}};_0x349699(++_0x85389c);}(a610_0x8538,0x157));const a610_0x3496=function(_0x5bdff5,_0x85389c){_0x5bdff5=_0x5bdff5-0x0;let _0x349699=a610_0x8538[_0x5bdff5];return _0x349699;};const _0x5baae6=a610_0x3496;'use strict';const _=require(_0x5baae6('0xa')),qs=require(_0x5baae6('0x11')),logger=require(_0x5baae6('0x13'))(_0x5baae6('0x30')),db=require(_0x5baae6('0x6'))['db'],{Op}=require(_0x5baae6('0x26'));function respondWithResult(_0x3f9dbc,_0x4c3e89){return _0x4c3e89=_0x4c3e89||0xc8,function(_0x362a51){const _0x2ab303=a610_0x3496;if(_0x362a51)return _0x3f9dbc['status'](_0x4c3e89)[_0x2ab303('0x18')](_0x362a51);};}function respondWithFilteredResult(_0x4b8738,_0x11888f){return function(_0x20c96e){const _0x4e661d=a610_0x3496;if(_0x20c96e){const _0x51ee9b=_0x20c96e[_0x4e661d('0x16')],_0x5c5331=_0x11888f[_0x4e661d('0x1e')];let _0x4ef502=_0x11888f[_0x4e661d('0x1e')]+_0x11888f[_0x4e661d('0x12')],_0x12286c;return _0x4ef502>=_0x51ee9b?(_0x4ef502=_0x51ee9b,_0x12286c=0xc8):_0x12286c=0xce,_0x4b8738['status'](_0x12286c),_0x4b8738[_0x4e661d('0x2')](_0x4e661d('0x15'),_0x5c5331+'-'+_0x4ef502+'/'+_0x51ee9b)[_0x4e661d('0x18')](_0x20c96e);}return null;};}function saveUpdates(_0x1cb284){return function(_0x1159c7){const _0x5d7c64=a610_0x3496;if(_0x1159c7)return _0x1159c7[_0x5d7c64('0x8')](_0x1cb284)[_0x5d7c64('0x14')](function(_0x41d9e1){return _0x41d9e1;});return null;};}function removeEntity(_0x55db07){return function(_0x4b5acf){const _0x41cc81=a610_0x3496;if(_0x4b5acf)return _0x4b5acf['destroy']()[_0x41cc81('0x14')](function(){const _0x3528ec=_0x41cc81;_0x55db07[_0x3528ec('0x5')](0xcc)['end']();});};}function handleEntityNotFound(_0x21427a){return function(_0x13f2d2){const _0x2d0d7f=a610_0x3496;return!_0x13f2d2&&_0x21427a[_0x2d0d7f('0x7')](0x194),_0x13f2d2;};}function handleError(_0x28f278,_0x5d0548){return _0x5d0548=_0x5d0548||0x1f4,function(_0x3d58f3){const _0x3e4f6d=a610_0x3496;logger[_0x3e4f6d('0x1a')](_0x3d58f3[_0x3e4f6d('0x25')]),_0x3d58f3['name']&&delete _0x3d58f3[_0x3e4f6d('0x31')],_0x28f278[_0x3e4f6d('0x5')](_0x5d0548)[_0x3e4f6d('0xd')](_0x3d58f3);};}exports[_0x5baae6('0x21')]=function(_0x347d46,_0x4b16f5){const _0x527438=_0x5baae6;let _0x1252b4={};const _0x5156c1={},_0x315aac={'count':0x0,'rows':[]},_0x4acbf7=_[_0x527438('0x1d')](db[_0x527438('0x24')][_0x527438('0x1f')],function(_0x43862b){const _0x45256c=_0x527438;return{'name':_0x43862b['fieldName'],'type':_0x43862b[_0x45256c('0x1b')][_0x45256c('0xb')]};});_0x5156c1[_0x527438('0x2a')]=_[_0x527438('0x1d')](_0x4acbf7,'name'),_0x5156c1['query']=_[_0x527438('0x33')](_0x347d46[_0x527438('0x3')]),_0x5156c1[_0x527438('0x2b')]=_[_0x527438('0x19')](_0x5156c1[_0x527438('0x2a')],_0x5156c1['query']),_0x1252b4[_0x527438('0x2d')]=_[_0x527438('0x19')](_0x5156c1[_0x527438('0x2a')],qs[_0x527438('0x1c')](_0x347d46[_0x527438('0x3')][_0x527438('0x1c')])),_0x1252b4[_0x527438('0x2d')]=_0x1252b4[_0x527438('0x2d')]['length']?_0x1252b4['attributes']:_0x5156c1[_0x527438('0x2a')];typeof _0x347d46[_0x527438('0x3')][_0x527438('0x29')]===_0x527438('0x2f')&&(_0x1252b4[_0x527438('0x12')]=qs[_0x527438('0x12')](_0x347d46[_0x527438('0x3')][_0x527438('0x12')]),_0x1252b4[_0x527438('0x1e')]=qs[_0x527438('0x1e')](_0x347d46[_0x527438('0x3')]['offset']));_0x1252b4[_0x527438('0xe')]=qs[_0x527438('0x0')](_0x347d46[_0x527438('0x3')]['sort']),_0x1252b4[_0x527438('0xc')]=qs['filters'](_['pick'](_0x347d46[_0x527438('0x3')],_0x5156c1['filters']),_0x4acbf7);_0x347d46[_0x527438('0x3')][_0x527438('0x23')]&&(_0x1252b4['where']=_[_0x527438('0x32')](_0x1252b4[_0x527438('0xc')],{[Op['or']]:_['map'](_0x4acbf7,function(_0x21dc4c){const _0x4c3f04=_0x527438;if(_0x21dc4c[_0x4c3f04('0x1b')]!=='VIRTUAL'){const _0x31e45a={};return _0x31e45a[_0x21dc4c[_0x4c3f04('0x31')]]={[Op[_0x4c3f04('0x27')]]:'%'+_0x347d46['query'][_0x4c3f04('0x23')]+'%'},_0x31e45a;}})}));_0x1252b4=_[_0x527438('0x32')]({},_0x1252b4,_0x347d46[_0x527438('0x34')]);const _0x3f9e93={'where':_0x1252b4[_0x527438('0xc')]};return db['SquareReport']['count'](_0x3f9e93)['then'](function(_0x23ae40){const _0x4aad2d=_0x527438;return _0x315aac['count']=_0x23ae40,_0x347d46['query'][_0x4aad2d('0x28')]&&(_0x1252b4['include']=[{'all':!![]}]),db['SquareReport'][_0x4aad2d('0x1')](_0x1252b4);})[_0x527438('0x14')](function(_0x476c33){const _0x2bdfdf=_0x527438;return _0x315aac[_0x2bdfdf('0x4')]=_0x476c33,_0x315aac;})['then'](respondWithFilteredResult(_0x4b16f5,_0x1252b4))[_0x527438('0xf')](handleError(_0x4b16f5,null));},exports[_0x5baae6('0x35')]=function(_0x1853d6,_0x22d25f){const _0x589592=_0x5baae6;let _0x20562d={'raw':!![],'where':{'id':_0x1853d6[_0x589592('0x2c')]['id']}};const _0x5a51ff={};return _0x5a51ff[_0x589592('0x2a')]=_[_0x589592('0x33')](db[_0x589592('0x24')][_0x589592('0x1f')]),_0x5a51ff[_0x589592('0x3')]=_[_0x589592('0x33')](_0x1853d6[_0x589592('0x3')]),_0x5a51ff[_0x589592('0x2b')]=_[_0x589592('0x19')](_0x5a51ff['model'],_0x5a51ff['query']),_0x20562d[_0x589592('0x2d')]=_[_0x589592('0x19')](_0x5a51ff['model'],qs[_0x589592('0x1c')](_0x1853d6['query'][_0x589592('0x1c')])),_0x20562d[_0x589592('0x2d')]=_0x20562d[_0x589592('0x2d')][_0x589592('0x10')]?_0x20562d[_0x589592('0x2d')]:_0x5a51ff[_0x589592('0x2a')],_0x1853d6[_0x589592('0x3')][_0x589592('0x28')]&&(_0x20562d[_0x589592('0x36')]=[{'all':!![]}]),_0x20562d=_[_0x589592('0x32')]({},_0x20562d,_0x1853d6[_0x589592('0x34')]),db['SquareReport'][_0x589592('0x22')](_0x20562d)[_0x589592('0x14')](handleEntityNotFound(_0x22d25f,null))[_0x589592('0x14')](respondWithResult(_0x22d25f,null))['catch'](handleError(_0x22d25f,null));},exports[_0x5baae6('0x20')]=function(_0x40d7b4,_0x53ef7a){const _0x58e108=_0x5baae6;return db['SquareReport']['create'](_0x40d7b4[_0x58e108('0x2e')],{})[_0x58e108('0x14')](respondWithResult(_0x53ef7a,0xc9))[_0x58e108('0xf')](handleError(_0x53ef7a,null));},exports['update']=function(_0x349802,_0x32ce6e){const _0x28ec0d=_0x5baae6;return _0x349802[_0x28ec0d('0x2e')]['id']&&delete _0x349802[_0x28ec0d('0x2e')]['id'],db[_0x28ec0d('0x24')][_0x28ec0d('0x22')]({'where':{'id':_0x349802[_0x28ec0d('0x2c')]['id']}})[_0x28ec0d('0x14')](handleEntityNotFound(_0x32ce6e,null))[_0x28ec0d('0x14')](saveUpdates(_0x349802[_0x28ec0d('0x2e')],null))[_0x28ec0d('0x14')](respondWithResult(_0x32ce6e,null))[_0x28ec0d('0xf')](handleError(_0x32ce6e,null));},exports[_0x5baae6('0x17')]=function(_0x266f04,_0xb64c9b){const _0x47dfc0=_0x5baae6;return db[_0x47dfc0('0x24')][_0x47dfc0('0x22')]({'where':{'id':_0x266f04[_0x47dfc0('0x2c')]['id']}})[_0x47dfc0('0x14')](handleEntityNotFound(_0xb64c9b,null))[_0x47dfc0('0x14')](removeEntity(_0xb64c9b,null))['catch'](handleError(_0xb64c9b,null));},exports[_0x5baae6('0x9')]=function(_0x4bc750,_0x28fc77){const _0x1222b7=_0x5baae6;return db['SquareReport'][_0x1222b7('0x9')]()[_0x1222b7('0x14')](respondWithResult(_0x28fc77,null))[_0x1222b7('0xf')](handleError(_0x28fc77,null));}; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.model.js b/server/api/squareReport/squareReport.model.js index ced1a5f..afd5b96 100644 --- a/server/api/squareReport/squareReport.model.js +++ b/server/api/squareReport/squareReport.model.js @@ -1 +1 @@ -const a611_0x1b0c=['leaveAt','uniqueid','report_square','exports','./squareReport.attributes','project_name','SquareReport','define'];(function(_0x2e5b3a,_0x1b0c2a){const _0x3c72b4=function(_0x5e4c89){while(--_0x5e4c89){_0x2e5b3a['push'](_0x2e5b3a['shift']());}};_0x3c72b4(++_0x1b0c2a);}(a611_0x1b0c,0x150));const a611_0x3c72=function(_0x2e5b3a,_0x1b0c2a){_0x2e5b3a=_0x2e5b3a-0x0;let _0x3c72b4=a611_0x1b0c[_0x2e5b3a];return _0x3c72b4;};const _0x132216=a611_0x3c72;'use strict';const attributes=require(_0x132216('0x4'));module[_0x132216('0x3')]=function(_0x5e4c89){const _0x57f709=_0x132216,_0x597fc9=_0x5e4c89[_0x57f709('0x7')](_0x57f709('0x6'),attributes,{'tableName':_0x57f709('0x2'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x57f709('0x1'),_0x57f709('0x5')]},{'name':_0x57f709('0x0'),'fields':['leaveAt']}],'timestamps':!![]});return _0x597fc9;}; \ No newline at end of file +const a611_0x408f=['SquareReport','uniqueid','report_square','leaveAt','./squareReport.attributes','uid_pname'];(function(_0x1bb110,_0x408f3f){const _0x168f73=function(_0x6abee3){while(--_0x6abee3){_0x1bb110['push'](_0x1bb110['shift']());}};_0x168f73(++_0x408f3f);}(a611_0x408f,0x1e0));const a611_0x168f=function(_0x1bb110,_0x408f3f){_0x1bb110=_0x1bb110-0x0;let _0x168f73=a611_0x408f[_0x1bb110];return _0x168f73;};const _0x195aa1=a611_0x168f;'use strict';const attributes=require(_0x195aa1('0x4'));module['exports']=function(_0x6abee3){const _0x69464a=_0x195aa1,_0x43be1a=_0x6abee3['define'](_0x69464a('0x0'),attributes,{'tableName':_0x69464a('0x2'),'paranoid':![],'indexes':[{'name':_0x69464a('0x5'),'fields':[_0x69464a('0x1'),'project_name']},{'name':_0x69464a('0x3'),'fields':[_0x69464a('0x3')]}],'timestamps':!![]});return _0x43be1a;}; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.rpc.js b/server/api/squareReport/squareReport.rpc.js index 75a80aa..d50d6ea 100644 --- a/server/api/squareReport/squareReport.rpc.js +++ b/server/api/squareReport/squareReport.rpc.js @@ -1 +1 @@ -const a612_0x58e9=['error','UpdateSquareReport','message','options','info','then','debug','CreateSquareReport','stringify','body','raw','../../mysqldb','where','create','SquareReport'];(function(_0x261bf4,_0x58e92c){const _0x3d213b=function(_0x1c9025){while(--_0x1c9025){_0x261bf4['push'](_0x261bf4['shift']());}};_0x3d213b(++_0x58e92c);}(a612_0x58e9,0x99));const a612_0x3d21=function(_0x261bf4,_0x58e92c){_0x261bf4=_0x261bf4-0x0;let _0x3d213b=a612_0x58e9[_0x261bf4];return _0x3d213b;};const _0x5df91c=a612_0x3d21;'use strict';const db=require(_0x5df91c('0x8'))['db'],logger=require('../../config/logger')('rpc');exports[_0x5df91c('0x4')]=function(_0x1c9025){const _0x56ecbe=this;return new Promise(function(_0x2df0ab,_0x518139){const _0xed0339=a612_0x3d21;return db[_0xed0339('0xb')][_0xed0339('0xa')](_0x1c9025[_0xed0339('0x6')],{'raw':_0x1c9025[_0xed0339('0x0')]?_0x1c9025['options'][_0xed0339('0x7')]===undefined?!![]:![]:!![]})['then'](function(_0x158f45){const _0x27e16c=_0xed0339;logger['info'](_0x27e16c('0x4'),_0x1c9025),logger[_0x27e16c('0x3')]('CreateSquareReport',_0x1c9025,JSON[_0x27e16c('0x5')](_0x158f45)),_0x2df0ab(_0x158f45);})['catch'](function(_0x3aa445){const _0x27d9c8=_0xed0339;logger[_0x27d9c8('0xc')]('CreateSquareReport',_0x3aa445[_0x27d9c8('0xe')],_0x1c9025),_0x518139(_0x56ecbe['error'](0x1f4,_0x3aa445[_0x27d9c8('0xe')]));});});},exports[_0x5df91c('0xd')]=function(_0x268432){const _0x3b4e36=this;return new Promise(function(_0x3555ab,_0x438821){const _0x7a40c0=a612_0x3d21;return db[_0x7a40c0('0xb')]['update'](_0x268432['body'],{'raw':_0x268432[_0x7a40c0('0x0')]?_0x268432[_0x7a40c0('0x0')][_0x7a40c0('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x268432[_0x7a40c0('0x0')]?_0x268432[_0x7a40c0('0x0')][_0x7a40c0('0x9')]||null:null,'attributes':_0x268432[_0x7a40c0('0x0')]?_0x268432[_0x7a40c0('0x0')]['attributes']||null:null,'limit':_0x268432[_0x7a40c0('0x0')]?_0x268432[_0x7a40c0('0x0')]['limit']||null:null})[_0x7a40c0('0x2')](function(_0x325fe7){const _0x2b45a0=_0x7a40c0;logger[_0x2b45a0('0x1')](_0x2b45a0('0xd'),_0x268432),logger[_0x2b45a0('0x3')](_0x2b45a0('0xd'),_0x268432,JSON['stringify'](_0x325fe7)),_0x3555ab(_0x325fe7);})['catch'](function(_0x1c599e){const _0x125d79=_0x7a40c0;logger[_0x125d79('0xc')](_0x125d79('0xd'),_0x1c599e['message'],_0x268432),_0x438821(_0x3b4e36[_0x125d79('0xc')](0x1f4,_0x1c599e[_0x125d79('0xe')]));});});}; \ No newline at end of file +const a612_0x3119=['stringify','../../mysqldb','create','debug','message','body','UpdateSquareReport','info','error','then','catch','options','where','CreateSquareReport','SquareReport','rpc','../../config/logger','raw','limit','update','attributes'];(function(_0x341dc9,_0x311922){const _0x24bf60=function(_0x1dbb2f){while(--_0x1dbb2f){_0x341dc9['push'](_0x341dc9['shift']());}};_0x24bf60(++_0x311922);}(a612_0x3119,0x116));const a612_0x24bf=function(_0x341dc9,_0x311922){_0x341dc9=_0x341dc9-0x0;let _0x24bf60=a612_0x3119[_0x341dc9];return _0x24bf60;};const _0xcbd69f=a612_0x24bf;'use strict';const db=require(_0xcbd69f('0x11'))['db'],logger=require(_0xcbd69f('0xb'))(_0xcbd69f('0xa'));exports[_0xcbd69f('0x8')]=function(_0x1dbb2f){const _0x379326=this;return new Promise(function(_0xdcd2e0,_0x18e959){const _0x2c68c5=a612_0x24bf;return db[_0x2c68c5('0x9')][_0x2c68c5('0x12')](_0x1dbb2f[_0x2c68c5('0x0')],{'raw':_0x1dbb2f[_0x2c68c5('0x6')]?_0x1dbb2f[_0x2c68c5('0x6')][_0x2c68c5('0xc')]===undefined?!![]:![]:!![]})[_0x2c68c5('0x4')](function(_0x37eccf){const _0x486f37=_0x2c68c5;logger[_0x486f37('0x2')](_0x486f37('0x8'),_0x1dbb2f),logger[_0x486f37('0x13')](_0x486f37('0x8'),_0x1dbb2f,JSON[_0x486f37('0x10')](_0x37eccf)),_0xdcd2e0(_0x37eccf);})[_0x2c68c5('0x5')](function(_0x68858b){const _0xac54c3=_0x2c68c5;logger['error'](_0xac54c3('0x8'),_0x68858b['message'],_0x1dbb2f),_0x18e959(_0x379326[_0xac54c3('0x3')](0x1f4,_0x68858b[_0xac54c3('0x14')]));});});},exports[_0xcbd69f('0x1')]=function(_0x2c2dfa){const _0x1a7f64=this;return new Promise(function(_0xf217e0,_0x443354){const _0x41d4fb=a612_0x24bf;return db[_0x41d4fb('0x9')][_0x41d4fb('0xe')](_0x2c2dfa[_0x41d4fb('0x0')],{'raw':_0x2c2dfa[_0x41d4fb('0x6')]?_0x2c2dfa[_0x41d4fb('0x6')][_0x41d4fb('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2c2dfa[_0x41d4fb('0x6')]?_0x2c2dfa[_0x41d4fb('0x6')][_0x41d4fb('0x7')]||null:null,'attributes':_0x2c2dfa[_0x41d4fb('0x6')]?_0x2c2dfa[_0x41d4fb('0x6')][_0x41d4fb('0xf')]||null:null,'limit':_0x2c2dfa[_0x41d4fb('0x6')]?_0x2c2dfa[_0x41d4fb('0x6')][_0x41d4fb('0xd')]||null:null})[_0x41d4fb('0x4')](function(_0x39dc1d){const _0x21e9d0=_0x41d4fb;logger[_0x21e9d0('0x2')](_0x21e9d0('0x1'),_0x2c2dfa),logger['debug'](_0x21e9d0('0x1'),_0x2c2dfa,JSON[_0x21e9d0('0x10')](_0x39dc1d)),_0xf217e0(_0x39dc1d);})[_0x41d4fb('0x5')](function(_0x1084cc){const _0x208a25=_0x41d4fb;logger[_0x208a25('0x3')](_0x208a25('0x1'),_0x1084cc[_0x208a25('0x14')],_0x2c2dfa),_0x443354(_0x1a7f64[_0x208a25('0x3')](0x1f4,_0x1084cc[_0x208a25('0x14')]));});});}; \ No newline at end of file diff --git a/server/api/squareReportDetail/index.js b/server/api/squareReportDetail/index.js index 8645c24..63021a3 100644 --- a/server/api/squareReportDetail/index.js +++ b/server/api/squareReportDetail/index.js @@ -1 +1 @@ -const a613_0x2951=['index','../../components/auth/service','create','update','describe','exports','delete','./squareReportDetail.controller','/:id','destroy','post','get','isAuthenticated','Router'];(function(_0x2c00af,_0x2951fb){const _0x4f4a8d=function(_0x5bac64){while(--_0x5bac64){_0x2c00af['push'](_0x2c00af['shift']());}};_0x4f4a8d(++_0x2951fb);}(a613_0x2951,0xb5));const a613_0x4f4a=function(_0x2c00af,_0x2951fb){_0x2c00af=_0x2c00af-0x0;let _0x4f4a8d=a613_0x2951[_0x2c00af];return _0x4f4a8d;};const _0x3e42db=a613_0x4f4a;'use strict';const express=require('express'),router=express[_0x3e42db('0x0')](),auth=require(_0x3e42db('0x2')),controller=require(_0x3e42db('0x8'));router['get']('/',auth[_0x3e42db('0xd')](),controller[_0x3e42db('0x1')]),router[_0x3e42db('0xc')]('/describe',auth['isAuthenticated'](),controller[_0x3e42db('0x5')]),router['get'](_0x3e42db('0x9'),auth['isAuthenticated'](),controller['show']),router[_0x3e42db('0xb')]('/',auth[_0x3e42db('0xd')](),controller[_0x3e42db('0x3')]),router['put'](_0x3e42db('0x9'),auth[_0x3e42db('0xd')](),controller[_0x3e42db('0x4')]),router[_0x3e42db('0x7')]('/:id',auth[_0x3e42db('0xd')](),controller[_0x3e42db('0xa')]),module[_0x3e42db('0x6')]=router; \ No newline at end of file +const a613_0x3a26=['express','/:id','exports','delete','index','put','./squareReportDetail.controller','describe','Router','get','isAuthenticated'];(function(_0x59a317,_0x3a2674){const _0x298eb1=function(_0xbd0eca){while(--_0xbd0eca){_0x59a317['push'](_0x59a317['shift']());}};_0x298eb1(++_0x3a2674);}(a613_0x3a26,0x1a9));const a613_0x298e=function(_0x59a317,_0x3a2674){_0x59a317=_0x59a317-0x0;let _0x298eb1=a613_0x3a26[_0x59a317];return _0x298eb1;};const _0x3a0276=a613_0x298e;'use strict';const express=require(_0x3a0276('0x4')),router=express[_0x3a0276('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x3a0276('0xa'));router[_0x3a0276('0x2')]('/',auth['isAuthenticated'](),controller[_0x3a0276('0x8')]),router[_0x3a0276('0x2')]('/describe',auth[_0x3a0276('0x3')](),controller[_0x3a0276('0x0')]),router[_0x3a0276('0x2')](_0x3a0276('0x5'),auth[_0x3a0276('0x3')](),controller['show']),router['post']('/',auth[_0x3a0276('0x3')](),controller['create']),router[_0x3a0276('0x9')](_0x3a0276('0x5'),auth['isAuthenticated'](),controller['update']),router[_0x3a0276('0x7')]('/:id',auth[_0x3a0276('0x3')](),controller['destroy']),module[_0x3a0276('0x6')]=router; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.attributes.js b/server/api/squareReportDetail/squareReportDetail.attributes.js index 5f031c0..a629288 100644 --- a/server/api/squareReportDetail/squareReportDetail.attributes.js +++ b/server/api/squareReportDetail/squareReportDetail.attributes.js @@ -1 +1 @@ -const a614_0x228e=['exports','STRING','TEXT','sequelize'];(function(_0x370268,_0x228ec7){const _0x5940f6=function(_0x8dbf4e){while(--_0x8dbf4e){_0x370268['push'](_0x370268['shift']());}};_0x5940f6(++_0x228ec7);}(a614_0x228e,0x13f));const a614_0x5940=function(_0x370268,_0x228ec7){_0x370268=_0x370268-0x0;let _0x5940f6=a614_0x228e[_0x370268];return _0x5940f6;};const _0x738d23=a614_0x5940;'use strict';const Sequelize=require(_0x738d23('0x0'));module[_0x738d23('0x1')]={'uniqueid':{'type':Sequelize['STRING']},'node':{'type':Sequelize[_0x738d23('0x2')]},'application':{'type':Sequelize[_0x738d23('0x2')]},'data':{'type':Sequelize[_0x738d23('0x3')]},'project_name':{'type':Sequelize[_0x738d23('0x2')]},'callerid':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a614_0x11ae=['TEXT','sequelize','STRING','exports'];(function(_0x4a4958,_0x11ae04){const _0x836ee8=function(_0x1883f1){while(--_0x1883f1){_0x4a4958['push'](_0x4a4958['shift']());}};_0x836ee8(++_0x11ae04);}(a614_0x11ae,0x107));const a614_0x836e=function(_0x4a4958,_0x11ae04){_0x4a4958=_0x4a4958-0x0;let _0x836ee8=a614_0x11ae[_0x4a4958];return _0x836ee8;};const _0x1f91bc=a614_0x836e;'use strict';const Sequelize=require(_0x1f91bc('0x2'));module[_0x1f91bc('0x0')]={'uniqueid':{'type':Sequelize[_0x1f91bc('0x3')]},'node':{'type':Sequelize[_0x1f91bc('0x3')]},'application':{'type':Sequelize[_0x1f91bc('0x3')]},'data':{'type':Sequelize[_0x1f91bc('0x1')]},'project_name':{'type':Sequelize[_0x1f91bc('0x3')]},'callerid':{'type':Sequelize[_0x1f91bc('0x3')]}}; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.controller.js b/server/api/squareReportDetail/squareReportDetail.controller.js index 02951f4..41ba66f 100644 --- a/server/api/squareReportDetail/squareReportDetail.controller.js +++ b/server/api/squareReportDetail/squareReportDetail.controller.js @@ -1 +1 @@ -const a615_0x2c75=['options','limit','update','then','fields','undefined','create','describe','lodash','body','where','attributes','filter','merge','stack','rawAttributes','error','catch','send','count','includeAll','status','params','model','length','rows','include','offset','intersection','like','type','VIRTUAL','index','filters','findOne','Content-Range','key','sendStatus','query','pick','sequelize','show','keys','destroy','findAll','name','end','SquareDetailsReport','../../mysqldb','fieldName','../../components/parsers/qs','api','sort','map'];(function(_0x5f3290,_0x2c75a9){const _0x4828d7=function(_0x35f38){while(--_0x35f38){_0x5f3290['push'](_0x5f3290['shift']());}};_0x4828d7(++_0x2c75a9);}(a615_0x2c75,0x1dc));const a615_0x4828=function(_0x5f3290,_0x2c75a9){_0x5f3290=_0x5f3290-0x0;let _0x4828d7=a615_0x2c75[_0x5f3290];return _0x4828d7;};const _0x2800ac=a615_0x4828;'use strict';const _=require(_0x2800ac('0x12')),qs=require(_0x2800ac('0x6')),logger=require('../../config/logger')(_0x2800ac('0x7')),db=require(_0x2800ac('0x4'))['db'],{Op}=require(_0x2800ac('0x32'));function respondWithResult(_0x35f38,_0x49b0de){return _0x49b0de=_0x49b0de||0xc8,function(_0x1f4242){const _0x1f2e33=a615_0x4828;if(_0x1f4242)return _0x35f38[_0x1f2e33('0x1f')](_0x49b0de)['json'](_0x1f4242);};}function respondWithFilteredResult(_0x175b55,_0x237b3c){return function(_0x2530e8){const _0x2ec1bb=a615_0x4828;if(_0x2530e8){const _0x195d1f=_0x2530e8['count'],_0x514c7f=_0x237b3c[_0x2ec1bb('0x25')];let _0x1e0cd3=_0x237b3c[_0x2ec1bb('0x25')]+_0x237b3c[_0x2ec1bb('0xb')],_0x3ae812;return _0x1e0cd3>=_0x195d1f?(_0x1e0cd3=_0x195d1f,_0x3ae812=0xc8):_0x3ae812=0xce,_0x175b55['status'](_0x3ae812),_0x175b55['set'](_0x2ec1bb('0x2d'),_0x514c7f+'-'+_0x1e0cd3+'/'+_0x195d1f)['json'](_0x2530e8);}return null;};}function saveUpdates(_0x230d99){return function(_0x520854){const _0x4afb3a=a615_0x4828;if(_0x520854)return _0x520854[_0x4afb3a('0xc')](_0x230d99)[_0x4afb3a('0xd')](function(_0x18ed32){return _0x18ed32;});return null;};}function removeEntity(_0x3c1610){return function(_0xb75ba0){const _0x34e918=a615_0x4828;if(_0xb75ba0)return _0xb75ba0[_0x34e918('0x35')]()['then'](function(){const _0x549e06=_0x34e918;_0x3c1610[_0x549e06('0x1f')](0xcc)[_0x549e06('0x2')]();});};}function handleEntityNotFound(_0x21354){return function(_0x58f068){const _0x2a8093=a615_0x4828;return!_0x58f068&&_0x21354[_0x2a8093('0x2f')](0x194),_0x58f068;};}function handleError(_0x1f6d77,_0x3d39c7){return _0x3d39c7=_0x3d39c7||0x1f4,function(_0x7cc170){const _0x5709f5=a615_0x4828;logger[_0x5709f5('0x1a')](_0x7cc170[_0x5709f5('0x18')]),_0x7cc170[_0x5709f5('0x1')]&&delete _0x7cc170['name'],_0x1f6d77[_0x5709f5('0x1f')](_0x3d39c7)[_0x5709f5('0x1c')](_0x7cc170);};}exports[_0x2800ac('0x2a')]=function(_0x131477,_0x22ae56){const _0x4821df=_0x2800ac;let _0x2c64be={};const _0x15b258={},_0x3b1226={'count':0x0,'rows':[]},_0x26fc30=_[_0x4821df('0x9')](db[_0x4821df('0x3')][_0x4821df('0x19')],function(_0x417023){const _0x2c5173=_0x4821df;return{'name':_0x417023[_0x2c5173('0x5')],'type':_0x417023[_0x2c5173('0x28')][_0x2c5173('0x2e')]};});_0x15b258[_0x4821df('0x21')]=_['map'](_0x26fc30,_0x4821df('0x1')),_0x15b258[_0x4821df('0x30')]=_[_0x4821df('0x34')](_0x131477[_0x4821df('0x30')]),_0x15b258[_0x4821df('0x2b')]=_[_0x4821df('0x26')](_0x15b258[_0x4821df('0x21')],_0x15b258[_0x4821df('0x30')]),_0x2c64be[_0x4821df('0x15')]=_[_0x4821df('0x26')](_0x15b258[_0x4821df('0x21')],qs[_0x4821df('0xe')](_0x131477[_0x4821df('0x30')][_0x4821df('0xe')])),_0x2c64be['attributes']=_0x2c64be['attributes'][_0x4821df('0x22')]?_0x2c64be[_0x4821df('0x15')]:_0x15b258[_0x4821df('0x21')];typeof _0x131477[_0x4821df('0x30')]['nolimit']===_0x4821df('0xf')&&(_0x2c64be[_0x4821df('0xb')]=qs['limit'](_0x131477[_0x4821df('0x30')][_0x4821df('0xb')]),_0x2c64be[_0x4821df('0x25')]=qs['offset'](_0x131477[_0x4821df('0x30')][_0x4821df('0x25')]));_0x2c64be['order']=qs[_0x4821df('0x8')](_0x131477[_0x4821df('0x30')][_0x4821df('0x8')]),_0x2c64be[_0x4821df('0x14')]=qs[_0x4821df('0x2b')](_[_0x4821df('0x31')](_0x131477[_0x4821df('0x30')],_0x15b258[_0x4821df('0x2b')]),_0x26fc30);_0x131477[_0x4821df('0x30')]['filter']&&(_0x2c64be[_0x4821df('0x14')]=_['merge'](_0x2c64be['where'],{[Op['or']]:_[_0x4821df('0x9')](_0x26fc30,function(_0xa8f95d){const _0x2fb315=_0x4821df;if(_0xa8f95d[_0x2fb315('0x28')]!==_0x2fb315('0x29')){const _0x153e34={};return _0x153e34[_0xa8f95d['name']]={[Op[_0x2fb315('0x27')]]:'%'+_0x131477[_0x2fb315('0x30')][_0x2fb315('0x16')]+'%'},_0x153e34;}})}));_0x2c64be=_[_0x4821df('0x17')]({},_0x2c64be,_0x131477['options']);const _0x1f6d89={'where':_0x2c64be[_0x4821df('0x14')]};return db[_0x4821df('0x3')]['count'](_0x1f6d89)[_0x4821df('0xd')](function(_0x4040bd){const _0x5d2b78=_0x4821df;return _0x3b1226[_0x5d2b78('0x1d')]=_0x4040bd,_0x131477[_0x5d2b78('0x30')][_0x5d2b78('0x1e')]&&(_0x2c64be[_0x5d2b78('0x24')]=[{'all':!![]}]),db[_0x5d2b78('0x3')][_0x5d2b78('0x0')](_0x2c64be);})[_0x4821df('0xd')](function(_0x52b612){const _0xb460c=_0x4821df;return _0x3b1226[_0xb460c('0x23')]=_0x52b612,_0x3b1226;})[_0x4821df('0xd')](respondWithFilteredResult(_0x22ae56,_0x2c64be))[_0x4821df('0x1b')](handleError(_0x22ae56,null));},exports[_0x2800ac('0x33')]=function(_0x514f66,_0x564f1f){const _0x515f41=_0x2800ac;let _0x5a873a={'raw':!![],'where':{'id':_0x514f66['params']['id']}};const _0xb97bbf={};return _0xb97bbf[_0x515f41('0x21')]=_['keys'](db[_0x515f41('0x3')][_0x515f41('0x19')]),_0xb97bbf[_0x515f41('0x30')]=_[_0x515f41('0x34')](_0x514f66[_0x515f41('0x30')]),_0xb97bbf['filters']=_[_0x515f41('0x26')](_0xb97bbf[_0x515f41('0x21')],_0xb97bbf['query']),_0x5a873a[_0x515f41('0x15')]=_['intersection'](_0xb97bbf['model'],qs[_0x515f41('0xe')](_0x514f66[_0x515f41('0x30')][_0x515f41('0xe')])),_0x5a873a[_0x515f41('0x15')]=_0x5a873a['attributes'][_0x515f41('0x22')]?_0x5a873a[_0x515f41('0x15')]:_0xb97bbf[_0x515f41('0x21')],_0x514f66[_0x515f41('0x30')][_0x515f41('0x1e')]&&(_0x5a873a[_0x515f41('0x24')]=[{'all':!![]}]),_0x5a873a=_['merge']({},_0x5a873a,_0x514f66[_0x515f41('0xa')]),db[_0x515f41('0x3')][_0x515f41('0x2c')](_0x5a873a)[_0x515f41('0xd')](handleEntityNotFound(_0x564f1f,null))[_0x515f41('0xd')](respondWithResult(_0x564f1f,null))[_0x515f41('0x1b')](handleError(_0x564f1f,null));},exports[_0x2800ac('0x10')]=function(_0x17d61c,_0x5ac2d9){const _0x1d7770=_0x2800ac;return db[_0x1d7770('0x3')][_0x1d7770('0x10')](_0x17d61c['body'],{})[_0x1d7770('0xd')](respondWithResult(_0x5ac2d9,0xc9))[_0x1d7770('0x1b')](handleError(_0x5ac2d9,null));},exports[_0x2800ac('0xc')]=function(_0xe4b6a0,_0xfed4a){const _0x39e386=_0x2800ac;return _0xe4b6a0[_0x39e386('0x13')]['id']&&delete _0xe4b6a0[_0x39e386('0x13')]['id'],db[_0x39e386('0x3')][_0x39e386('0x2c')]({'where':{'id':_0xe4b6a0['params']['id']}})['then'](handleEntityNotFound(_0xfed4a,null))[_0x39e386('0xd')](saveUpdates(_0xe4b6a0[_0x39e386('0x13')],null))['then'](respondWithResult(_0xfed4a,null))[_0x39e386('0x1b')](handleError(_0xfed4a,null));},exports[_0x2800ac('0x35')]=function(_0x2772c6,_0x309e2a){const _0x257302=_0x2800ac;return db[_0x257302('0x3')][_0x257302('0x2c')]({'where':{'id':_0x2772c6[_0x257302('0x20')]['id']}})['then'](handleEntityNotFound(_0x309e2a,null))['then'](removeEntity(_0x309e2a,null))['catch'](handleError(_0x309e2a,null));},exports[_0x2800ac('0x11')]=function(_0xbe0f95,_0x1f1b0f){const _0xcda157=_0x2800ac;return db[_0xcda157('0x3')][_0xcda157('0x11')]()[_0xcda157('0xd')](respondWithResult(_0x1f1b0f,null))[_0xcda157('0x1b')](handleError(_0x1f1b0f,null));}; \ No newline at end of file +const a615_0x4cc7=['merge','limit','status','error','sendStatus','includeAll','include','keys','body','index','order','end','type','set','offset','model','findOne','Content-Range','key','update','sort','../../components/parsers/qs','options','name','SquareDetailsReport','then','lodash','map','describe','fieldName','api','stack','rawAttributes','sequelize','../../mysqldb','attributes','where','nolimit','create','query','fields','send','destroy','filters','show','length','../../config/logger','catch','params','json','intersection'];(function(_0x114012,_0x4cc756){const _0x3ed887=function(_0x2edca1){while(--_0x2edca1){_0x114012['push'](_0x114012['shift']());}};_0x3ed887(++_0x4cc756);}(a615_0x4cc7,0x19a));const a615_0x3ed8=function(_0x114012,_0x4cc756){_0x114012=_0x114012-0x0;let _0x3ed887=a615_0x4cc7[_0x114012];return _0x3ed887;};const _0xd4d7d2=a615_0x3ed8;'use strict';const _=require(_0xd4d7d2('0x18')),qs=require(_0xd4d7d2('0x13')),logger=require(_0xd4d7d2('0x2c'))(_0xd4d7d2('0x1c')),db=require(_0xd4d7d2('0x20'))['db'],{Op}=require(_0xd4d7d2('0x1f'));function respondWithResult(_0x2edca1,_0xc0bc8a){return _0xc0bc8a=_0xc0bc8a||0xc8,function(_0x3e9e2c){const _0x52435a=a615_0x3ed8;if(_0x3e9e2c)return _0x2edca1[_0x52435a('0x0')](_0xc0bc8a)[_0x52435a('0x2f')](_0x3e9e2c);};}function respondWithFilteredResult(_0x2e6637,_0xc15494){return function(_0x4586f2){const _0x3e96b0=a615_0x3ed8;if(_0x4586f2){const _0x4bd62c=_0x4586f2['count'],_0x2a37d0=_0xc15494['offset'];let _0x570f18=_0xc15494[_0x3e96b0('0xc')]+_0xc15494[_0x3e96b0('0x32')],_0x5733b8;return _0x570f18>=_0x4bd62c?(_0x570f18=_0x4bd62c,_0x5733b8=0xc8):_0x5733b8=0xce,_0x2e6637['status'](_0x5733b8),_0x2e6637[_0x3e96b0('0xb')](_0x3e96b0('0xf'),_0x2a37d0+'-'+_0x570f18+'/'+_0x4bd62c)[_0x3e96b0('0x2f')](_0x4586f2);}return null;};}function saveUpdates(_0x10541a){return function(_0x5ec40c){const _0x348147=a615_0x3ed8;if(_0x5ec40c)return _0x5ec40c[_0x348147('0x11')](_0x10541a)[_0x348147('0x17')](function(_0x2f66a2){return _0x2f66a2;});return null;};}function removeEntity(_0x34f057){return function(_0x11ceae){const _0x2ea742=a615_0x3ed8;if(_0x11ceae)return _0x11ceae[_0x2ea742('0x28')]()[_0x2ea742('0x17')](function(){const _0x1c8905=_0x2ea742;_0x34f057[_0x1c8905('0x0')](0xcc)[_0x1c8905('0x9')]();});};}function handleEntityNotFound(_0x40cd1f){return function(_0xdadacb){const _0x38be43=a615_0x3ed8;return!_0xdadacb&&_0x40cd1f[_0x38be43('0x2')](0x194),_0xdadacb;};}function handleError(_0x1e3be0,_0x281f78){return _0x281f78=_0x281f78||0x1f4,function(_0x2b6ee2){const _0x50d8c4=a615_0x3ed8;logger[_0x50d8c4('0x1')](_0x2b6ee2[_0x50d8c4('0x1d')]),_0x2b6ee2[_0x50d8c4('0x15')]&&delete _0x2b6ee2['name'],_0x1e3be0[_0x50d8c4('0x0')](_0x281f78)[_0x50d8c4('0x27')](_0x2b6ee2);};}exports[_0xd4d7d2('0x7')]=function(_0x3b1ea4,_0x429cd5){const _0x56d843=_0xd4d7d2;let _0x39b41c={};const _0x53aa4b={},_0x2a6675={'count':0x0,'rows':[]},_0x4075c3=_[_0x56d843('0x19')](db[_0x56d843('0x16')][_0x56d843('0x1e')],function(_0x1a2c12){const _0x391739=_0x56d843;return{'name':_0x1a2c12[_0x391739('0x1b')],'type':_0x1a2c12[_0x391739('0xa')][_0x391739('0x10')]};});_0x53aa4b['model']=_[_0x56d843('0x19')](_0x4075c3,'name'),_0x53aa4b[_0x56d843('0x25')]=_[_0x56d843('0x5')](_0x3b1ea4['query']),_0x53aa4b['filters']=_[_0x56d843('0x30')](_0x53aa4b[_0x56d843('0xd')],_0x53aa4b[_0x56d843('0x25')]),_0x39b41c[_0x56d843('0x21')]=_[_0x56d843('0x30')](_0x53aa4b[_0x56d843('0xd')],qs[_0x56d843('0x26')](_0x3b1ea4[_0x56d843('0x25')][_0x56d843('0x26')])),_0x39b41c[_0x56d843('0x21')]=_0x39b41c[_0x56d843('0x21')][_0x56d843('0x2b')]?_0x39b41c['attributes']:_0x53aa4b[_0x56d843('0xd')];typeof _0x3b1ea4[_0x56d843('0x25')][_0x56d843('0x23')]==='undefined'&&(_0x39b41c['limit']=qs[_0x56d843('0x32')](_0x3b1ea4[_0x56d843('0x25')][_0x56d843('0x32')]),_0x39b41c[_0x56d843('0xc')]=qs[_0x56d843('0xc')](_0x3b1ea4[_0x56d843('0x25')][_0x56d843('0xc')]));_0x39b41c[_0x56d843('0x8')]=qs['sort'](_0x3b1ea4[_0x56d843('0x25')][_0x56d843('0x12')]),_0x39b41c['where']=qs[_0x56d843('0x29')](_['pick'](_0x3b1ea4[_0x56d843('0x25')],_0x53aa4b[_0x56d843('0x29')]),_0x4075c3);_0x3b1ea4[_0x56d843('0x25')]['filter']&&(_0x39b41c[_0x56d843('0x22')]=_[_0x56d843('0x31')](_0x39b41c[_0x56d843('0x22')],{[Op['or']]:_['map'](_0x4075c3,function(_0x319dad){const _0x379e41=_0x56d843;if(_0x319dad[_0x379e41('0xa')]!=='VIRTUAL'){const _0xc7f568={};return _0xc7f568[_0x319dad[_0x379e41('0x15')]]={[Op['like']]:'%'+_0x3b1ea4[_0x379e41('0x25')]['filter']+'%'},_0xc7f568;}})}));_0x39b41c=_[_0x56d843('0x31')]({},_0x39b41c,_0x3b1ea4[_0x56d843('0x14')]);const _0x5c30f5={'where':_0x39b41c['where']};return db[_0x56d843('0x16')]['count'](_0x5c30f5)[_0x56d843('0x17')](function(_0x2eafd1){const _0x107f90=_0x56d843;return _0x2a6675['count']=_0x2eafd1,_0x3b1ea4[_0x107f90('0x25')][_0x107f90('0x3')]&&(_0x39b41c[_0x107f90('0x4')]=[{'all':!![]}]),db[_0x107f90('0x16')]['findAll'](_0x39b41c);})[_0x56d843('0x17')](function(_0x25ec2e){return _0x2a6675['rows']=_0x25ec2e,_0x2a6675;})[_0x56d843('0x17')](respondWithFilteredResult(_0x429cd5,_0x39b41c))[_0x56d843('0x2d')](handleError(_0x429cd5,null));},exports[_0xd4d7d2('0x2a')]=function(_0x288e48,_0x36ce91){const _0x4fe618=_0xd4d7d2;let _0x376d31={'raw':!![],'where':{'id':_0x288e48[_0x4fe618('0x2e')]['id']}};const _0x1cd053={};return _0x1cd053[_0x4fe618('0xd')]=_[_0x4fe618('0x5')](db['SquareDetailsReport']['rawAttributes']),_0x1cd053[_0x4fe618('0x25')]=_['keys'](_0x288e48['query']),_0x1cd053['filters']=_[_0x4fe618('0x30')](_0x1cd053[_0x4fe618('0xd')],_0x1cd053['query']),_0x376d31[_0x4fe618('0x21')]=_[_0x4fe618('0x30')](_0x1cd053['model'],qs['fields'](_0x288e48[_0x4fe618('0x25')][_0x4fe618('0x26')])),_0x376d31['attributes']=_0x376d31[_0x4fe618('0x21')]['length']?_0x376d31[_0x4fe618('0x21')]:_0x1cd053[_0x4fe618('0xd')],_0x288e48[_0x4fe618('0x25')][_0x4fe618('0x3')]&&(_0x376d31[_0x4fe618('0x4')]=[{'all':!![]}]),_0x376d31=_['merge']({},_0x376d31,_0x288e48[_0x4fe618('0x14')]),db[_0x4fe618('0x16')][_0x4fe618('0xe')](_0x376d31)[_0x4fe618('0x17')](handleEntityNotFound(_0x36ce91,null))[_0x4fe618('0x17')](respondWithResult(_0x36ce91,null))[_0x4fe618('0x2d')](handleError(_0x36ce91,null));},exports[_0xd4d7d2('0x24')]=function(_0x1e2d46,_0x14dd5d){const _0x1a7eb0=_0xd4d7d2;return db[_0x1a7eb0('0x16')][_0x1a7eb0('0x24')](_0x1e2d46[_0x1a7eb0('0x6')],{})[_0x1a7eb0('0x17')](respondWithResult(_0x14dd5d,0xc9))[_0x1a7eb0('0x2d')](handleError(_0x14dd5d,null));},exports[_0xd4d7d2('0x11')]=function(_0x53773a,_0x54a2cf){const _0x15752c=_0xd4d7d2;return _0x53773a[_0x15752c('0x6')]['id']&&delete _0x53773a[_0x15752c('0x6')]['id'],db[_0x15752c('0x16')][_0x15752c('0xe')]({'where':{'id':_0x53773a['params']['id']}})[_0x15752c('0x17')](handleEntityNotFound(_0x54a2cf,null))[_0x15752c('0x17')](saveUpdates(_0x53773a[_0x15752c('0x6')],null))[_0x15752c('0x17')](respondWithResult(_0x54a2cf,null))['catch'](handleError(_0x54a2cf,null));},exports['destroy']=function(_0x281f74,_0x22497b){const _0x2ad62c=_0xd4d7d2;return db[_0x2ad62c('0x16')][_0x2ad62c('0xe')]({'where':{'id':_0x281f74[_0x2ad62c('0x2e')]['id']}})['then'](handleEntityNotFound(_0x22497b,null))['then'](removeEntity(_0x22497b,null))['catch'](handleError(_0x22497b,null));},exports[_0xd4d7d2('0x1a')]=function(_0x17c5e0,_0x2dd346){const _0x3cf174=_0xd4d7d2;return db['SquareDetailsReport'][_0x3cf174('0x1a')]()[_0x3cf174('0x17')](respondWithResult(_0x2dd346,null))[_0x3cf174('0x2d')](handleError(_0x2dd346,null));}; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.model.js b/server/api/squareReportDetail/squareReportDetail.model.js index 8bca3c5..74dc34b 100644 --- a/server/api/squareReportDetail/squareReportDetail.model.js +++ b/server/api/squareReportDetail/squareReportDetail.model.js @@ -1 +1 @@ -const a616_0x58a6=['SquareDetailsReport','./squareReportDetail.attributes'];(function(_0x2a5029,_0x58a696){const _0x55f7bd=function(_0x28419c){while(--_0x28419c){_0x2a5029['push'](_0x2a5029['shift']());}};_0x55f7bd(++_0x58a696);}(a616_0x58a6,0x13e));const a616_0x55f7=function(_0x2a5029,_0x58a696){_0x2a5029=_0x2a5029-0x0;let _0x55f7bd=a616_0x58a6[_0x2a5029];return _0x55f7bd;};const _0x495be6=a616_0x55f7;'use strict';const attributes=require(_0x495be6('0x1'));module['exports']=function(_0x28419c){const _0x2a6bc=_0x495be6,_0x2448ff=_0x28419c['define'](_0x2a6bc('0x0'),attributes,{'tableName':'report_square_details','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2448ff;}; \ No newline at end of file +const a616_0x23bb=['./squareReportDetail.attributes','define','exports'];(function(_0x2bf726,_0x23bb30){const _0xc4919b=function(_0xa29a27){while(--_0xa29a27){_0x2bf726['push'](_0x2bf726['shift']());}};_0xc4919b(++_0x23bb30);}(a616_0x23bb,0x107));const a616_0xc491=function(_0x2bf726,_0x23bb30){_0x2bf726=_0x2bf726-0x0;let _0xc4919b=a616_0x23bb[_0x2bf726];return _0xc4919b;};const _0x37bd4f=a616_0xc491;'use strict';const attributes=require(_0x37bd4f('0x1'));module[_0x37bd4f('0x0')]=function(_0xa29a27){const _0x5a9b34=_0x37bd4f,_0x438033=_0xa29a27[_0x5a9b34('0x2')]('SquareDetailsReport',attributes,{'tableName':'report_square_details','paranoid':![],'indexes':[],'timestamps':!![]});return _0x438033;}; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.rpc.js b/server/api/squareReportDetail/squareReportDetail.rpc.js index fd2d99a..d375be6 100644 --- a/server/api/squareReportDetail/squareReportDetail.rpc.js +++ b/server/api/squareReportDetail/squareReportDetail.rpc.js @@ -1 +1 @@ -const a617_0x2803=['create','CreateSquareDetailsReport','rpc','body','message','raw','error','stringify','../../mysqldb','options'];(function(_0x68f1d3,_0x28031a){const _0x46ec8d=function(_0x2351e5){while(--_0x2351e5){_0x68f1d3['push'](_0x68f1d3['shift']());}};_0x46ec8d(++_0x28031a);}(a617_0x2803,0x1eb));const a617_0x46ec=function(_0x68f1d3,_0x28031a){_0x68f1d3=_0x68f1d3-0x0;let _0x46ec8d=a617_0x2803[_0x68f1d3];return _0x46ec8d;};const _0x389ffa=a617_0x46ec;'use strict';const db=require(_0x389ffa('0x7'))['db'],logger=require('../../config/logger')(_0x389ffa('0x1'));exports[_0x389ffa('0x0')]=function(_0x2351e5){const _0x299034=this;return new Promise(function(_0x2a97b8,_0x5e15ad){const _0x2a863d=a617_0x46ec;return db['SquareDetailsReport'][_0x2a863d('0x9')](_0x2351e5[_0x2a863d('0x2')],{'raw':_0x2351e5[_0x2a863d('0x8')]?_0x2351e5[_0x2a863d('0x8')][_0x2a863d('0x4')]===undefined?!![]:![]:!![]})['then'](function(_0x1243e8){const _0x421f21=_0x2a863d;logger['info'](_0x421f21('0x0'),_0x2351e5),logger['debug'](_0x421f21('0x0'),_0x2351e5,JSON[_0x421f21('0x6')](_0x1243e8)),_0x2a97b8(_0x1243e8);})['catch'](function(_0x307df5){const _0x3f97f1=_0x2a863d;logger[_0x3f97f1('0x5')]('CreateSquareDetailsReport',_0x307df5[_0x3f97f1('0x3')],_0x2351e5),_0x5e15ad(_0x299034[_0x3f97f1('0x5')](0x1f4,_0x307df5[_0x3f97f1('0x3')]));});});}; \ No newline at end of file +const a617_0x41bc=['then','rpc','SquareDetailsReport','options','message','stringify','catch','create','error','CreateSquareDetailsReport','../../config/logger','body'];(function(_0x5235a5,_0x41bc46){const _0x4b4230=function(_0x198de5){while(--_0x198de5){_0x5235a5['push'](_0x5235a5['shift']());}};_0x4b4230(++_0x41bc46);}(a617_0x41bc,0x9f));const a617_0x4b42=function(_0x5235a5,_0x41bc46){_0x5235a5=_0x5235a5-0x0;let _0x4b4230=a617_0x41bc[_0x5235a5];return _0x4b4230;};const _0x148b65=a617_0x4b42;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x148b65('0x7'))(_0x148b65('0xa'));exports[_0x148b65('0x6')]=function(_0x198de5){const _0x850ef2=this;return new Promise(function(_0x2dc8a3,_0x25376e){const _0x3ce94b=a617_0x4b42;return db[_0x3ce94b('0xb')][_0x3ce94b('0x4')](_0x198de5[_0x3ce94b('0x8')],{'raw':_0x198de5[_0x3ce94b('0x0')]?_0x198de5[_0x3ce94b('0x0')]['raw']===undefined?!![]:![]:!![]})[_0x3ce94b('0x9')](function(_0x3e158f){const _0x10645a=_0x3ce94b;logger['info'](_0x10645a('0x6'),_0x198de5),logger['debug'](_0x10645a('0x6'),_0x198de5,JSON[_0x10645a('0x2')](_0x3e158f)),_0x2dc8a3(_0x3e158f);})[_0x3ce94b('0x3')](function(_0x2fcc99){const _0x4c66dc=_0x3ce94b;logger[_0x4c66dc('0x5')](_0x4c66dc('0x6'),_0x2fcc99[_0x4c66dc('0x1')],_0x198de5),_0x25376e(_0x850ef2['error'](0x1f4,_0x2fcc99[_0x4c66dc('0x1')]));});});}; \ No newline at end of file diff --git a/server/api/system/index.js b/server/api/system/index.js index 4c67379..bba7082 100644 --- a/server/api/system/index.js +++ b/server/api/system/index.js @@ -1 +1 @@ -const a618_0x536d=['get','../../components/auth/service','isAuthenticated','express','Router','killProcess','exports','index','/process/:pid/kill'];(function(_0x36449f,_0x536d1b){const _0x5362f5=function(_0x382e95){while(--_0x382e95){_0x36449f['push'](_0x36449f['shift']());}};_0x5362f5(++_0x536d1b);}(a618_0x536d,0x117));const a618_0x5362=function(_0x36449f,_0x536d1b){_0x36449f=_0x36449f-0x0;let _0x5362f5=a618_0x536d[_0x36449f];return _0x5362f5;};const _0x20a389=a618_0x5362;'use strict';const express=require(_0x20a389('0x3')),router=express[_0x20a389('0x4')](),auth=require(_0x20a389('0x1')),controller=require('./system.controller');router[_0x20a389('0x0')]('/',auth[_0x20a389('0x2')](),controller[_0x20a389('0x7')]),router['get'](_0x20a389('0x8'),auth['isAuthenticated'](),controller[_0x20a389('0x5')]),module[_0x20a389('0x6')]=router; \ No newline at end of file +const a618_0x505d=['/process/:pid/kill','killProcess','Router','exports','./system.controller','index','isAuthenticated','express','get','../../components/auth/service'];(function(_0x3a9bde,_0x505dcb){const _0x1d3b47=function(_0x251a06){while(--_0x251a06){_0x3a9bde['push'](_0x3a9bde['shift']());}};_0x1d3b47(++_0x505dcb);}(a618_0x505d,0xed));const a618_0x1d3b=function(_0x3a9bde,_0x505dcb){_0x3a9bde=_0x3a9bde-0x0;let _0x1d3b47=a618_0x505d[_0x3a9bde];return _0x1d3b47;};const _0x3782e3=a618_0x1d3b;'use strict';const express=require(_0x3782e3('0x0')),router=express[_0x3782e3('0x5')](),auth=require(_0x3782e3('0x2')),controller=require(_0x3782e3('0x7'));router['get']('/',auth[_0x3782e3('0x9')](),controller[_0x3782e3('0x8')]),router[_0x3782e3('0x1')](_0x3782e3('0x3'),auth['isAuthenticated'](),controller[_0x3782e3('0x4')]),module[_0x3782e3('0x6')]=router; \ No newline at end of file diff --git a/server/api/system/system.controller.js b/server/api/system/system.controller.js index 1188228..5e690c9 100644 --- a/server/api/system/system.controller.js +++ b/server/api/system/system.controller.js @@ -1 +1 @@ -const a619_0x3b37=['index','length','getAllData','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s','json','format','../../config/logger','api','systeminformation','indexOf','pid','then','params','SIGINT','send','name','status','kill','components/import/cm','child_process','Process\x20with\x20pid\x20%s\x20killed\x20correctly','killProcess'];(function(_0x33e0af,_0x3b37f4){const _0x59f0ac=function(_0x3e5414){while(--_0x3e5414){_0x33e0af['push'](_0x33e0af['shift']());}};_0x59f0ac(++_0x3b37f4);}(a619_0x3b37,0x151));const a619_0x59f0=function(_0x33e0af,_0x3b37f4){_0x33e0af=_0x33e0af-0x0;let _0x59f0ac=a619_0x3b37[_0x33e0af];return _0x59f0ac;};const _0x37884b=a619_0x59f0;'use strict';const info=require(_0x37884b('0x1')),exec=require(_0x37884b('0xc'))['exec'],logger=require(_0x37884b('0x15'))(_0x37884b('0x0')),util=require('util');function handleError(_0x3e5414,_0xf67fbe,_0x39f533){return _0xf67fbe=_0xf67fbe||0x1f4,function(_0x3772d9){const _0x5d7005=a619_0x59f0;logger['error'](_0x5d7005('0x12'),_0x39f533,_0xf67fbe,util['inspect'](_0x3772d9,{'showHidden':![],'depth':null})),delete _0x3772d9[_0x5d7005('0x8')],_0x3e5414['status'](_0xf67fbe)[_0x5d7005('0x7')](_0x3772d9);};}exports[_0x37884b('0xf')]=function(_0x5d97a4,_0x2575b6){const _0x3e297d=_0x37884b;return info[_0x3e297d('0x11')]()['then'](function(_0x30259b){const _0x5b8e35=_0x3e297d;return _0x2575b6['status'](0xc8)[_0x5b8e35('0x13')](_0x30259b);})['catch'](function(_0x2ab5ef){const _0x3b5567=_0x3e297d;return _0x2575b6[_0x3b5567('0x9')](0x1f4)['json'](_0x2ab5ef);});},exports[_0x37884b('0xe')]=function(_0x29bb06,_0x3d2b07){const _0x3a1b1c=_0x37884b,_0x33560e=[_0x3a1b1c('0xb')];return new Promise(function(_0x35fcf7,_0x317a32){const _0xb01cce=_0x3a1b1c;return exec(util[_0xb01cce('0x14')]('ps\x20-p\x20%s\x20-ww\x20-o\x20args',_0x29bb06['params']['pid']),function(_0x2e9c33,_0x108266){if(_0x2e9c33)return _0x317a32(_0x2e9c33);return _0x35fcf7(_0x108266);});})[_0x3a1b1c('0x4')](function(_0x13dc02){const _0x1fb1fe=_0x3a1b1c;let _0x303ab6=![];for(let _0x27a5d0=0x0,_0x3531bf=_0x33560e[_0x1fb1fe('0x10')];_0x27a5d0<_0x3531bf,_0x303ab6===![];_0x27a5d0+=0x1){_0x13dc02[_0x1fb1fe('0x2')](_0x33560e[_0x27a5d0])>=0x0&&(_0x303ab6=!![]);}if(!_0x303ab6)throw new Error(util[_0x1fb1fe('0x14')]('Process\x20with\x20pid\x20%s\x20not\x20found!',_0x29bb06['params'][_0x1fb1fe('0x3')]));return process[_0x1fb1fe('0xa')](_0x29bb06[_0x1fb1fe('0x5')][_0x1fb1fe('0x3')],_0x1fb1fe('0x6')),_0x3d2b07[_0x1fb1fe('0x9')](0xc8)[_0x1fb1fe('0x13')]({'message':util[_0x1fb1fe('0x14')](_0x1fb1fe('0xd'),_0x29bb06[_0x1fb1fe('0x5')][_0x1fb1fe('0x3')])});})['catch'](handleError(_0x3d2b07,null,_0x3a1b1c('0xe')));}; \ No newline at end of file +const a619_0x1618=['exec','send','../../config/logger','child_process','SIGINT','catch','format','json','params','util','killProcess','pid','Process\x20with\x20pid\x20%s\x20killed\x20correctly','api','getAllData','then','status','name','components/import/cm'];(function(_0x570721,_0x1618c2){const _0x5444b2=function(_0xdada57){while(--_0xdada57){_0x570721['push'](_0x570721['shift']());}};_0x5444b2(++_0x1618c2);}(a619_0x1618,0x81));const a619_0x5444=function(_0x570721,_0x1618c2){_0x570721=_0x570721-0x0;let _0x5444b2=a619_0x1618[_0x570721];return _0x5444b2;};const _0x17fe05=a619_0x5444;'use strict';const info=require('systeminformation'),exec=require(_0x17fe05('0x7'))[_0x17fe05('0x4')],logger=require(_0x17fe05('0x6'))(_0x17fe05('0x11')),util=require(_0x17fe05('0xd'));function handleError(_0xdada57,_0x468692,_0x517918){return _0x468692=_0x468692||0x1f4,function(_0x2bc821){const _0x2d4e7c=a619_0x5444;logger['error']('<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s',_0x517918,_0x468692,util['inspect'](_0x2bc821,{'showHidden':![],'depth':null})),delete _0x2bc821[_0x2d4e7c('0x2')],_0xdada57[_0x2d4e7c('0x1')](_0x468692)[_0x2d4e7c('0x5')](_0x2bc821);};}exports['index']=function(_0x573275,_0x1e37ce){const _0x44d016=_0x17fe05;return info[_0x44d016('0x12')]()[_0x44d016('0x0')](function(_0x363453){const _0x2b4d54=_0x44d016;return _0x1e37ce[_0x2b4d54('0x1')](0xc8)[_0x2b4d54('0xb')](_0x363453);})[_0x44d016('0x9')](function(_0x4af92d){return _0x1e37ce['status'](0x1f4)['json'](_0x4af92d);});},exports['killProcess']=function(_0x3adbd7,_0x53a428){const _0x2e552e=_0x17fe05,_0x5ace14=[_0x2e552e('0x3')];return new Promise(function(_0x391550,_0x1e5a60){const _0x1fe1ed=_0x2e552e;return exec(util[_0x1fe1ed('0xa')]('ps\x20-p\x20%s\x20-ww\x20-o\x20args',_0x3adbd7[_0x1fe1ed('0xc')]['pid']),function(_0x477090,_0x4397b4){if(_0x477090)return _0x1e5a60(_0x477090);return _0x391550(_0x4397b4);});})['then'](function(_0x12f097){const _0x1c2ad9=_0x2e552e;let _0x50ba3a=![];for(let _0x4a2abc=0x0,_0x3a46ba=_0x5ace14['length'];_0x4a2abc<_0x3a46ba,_0x50ba3a===![];_0x4a2abc+=0x1){_0x12f097['indexOf'](_0x5ace14[_0x4a2abc])>=0x0&&(_0x50ba3a=!![]);}if(!_0x50ba3a)throw new Error(util[_0x1c2ad9('0xa')]('Process\x20with\x20pid\x20%s\x20not\x20found!',_0x3adbd7['params'][_0x1c2ad9('0xf')]));return process['kill'](_0x3adbd7[_0x1c2ad9('0xc')]['pid'],_0x1c2ad9('0x8')),_0x53a428[_0x1c2ad9('0x1')](0xc8)[_0x1c2ad9('0xb')]({'message':util['format'](_0x1c2ad9('0x10'),_0x3adbd7['params']['pid'])});})[_0x2e552e('0x9')](handleError(_0x53a428,null,_0x2e552e('0xe')));}; \ No newline at end of file diff --git a/server/api/tag/index.js b/server/api/tag/index.js index f2efd96..bfb301a 100644 --- a/server/api/tag/index.js +++ b/server/api/tag/index.js @@ -1 +1 @@ -const a620_0x2abe=['put','get','/:id','delete','isAuthenticated','./tag.controller','express','../../components/auth/service','update','destroy','Router'];(function(_0x22612b,_0x2abe8a){const _0x3abfe0=function(_0x3a3f37){while(--_0x3a3f37){_0x22612b['push'](_0x22612b['shift']());}};_0x3abfe0(++_0x2abe8a);}(a620_0x2abe,0x14c));const a620_0x3abf=function(_0x22612b,_0x2abe8a){_0x22612b=_0x22612b-0x0;let _0x3abfe0=a620_0x2abe[_0x22612b];return _0x3abfe0;};const _0x915cb5=a620_0x3abf;'use strict';const express=require(_0x915cb5('0x4')),router=express[_0x915cb5('0x8')](),auth=require(_0x915cb5('0x5')),controller=require(_0x915cb5('0x3'));router['get']('/',auth[_0x915cb5('0x2')](),controller['index']),router[_0x915cb5('0xa')](_0x915cb5('0x0'),auth[_0x915cb5('0x2')](),controller['show']),router['post']('/',auth[_0x915cb5('0x2')](),controller['create']),router[_0x915cb5('0x9')]('/:id',auth[_0x915cb5('0x2')](),controller[_0x915cb5('0x6')]),router[_0x915cb5('0x1')](_0x915cb5('0x0'),auth['isAuthenticated'](),controller[_0x915cb5('0x7')]),module['exports']=router; \ No newline at end of file +const a620_0x3ef8=['index','update','show','put','isAuthenticated','delete','get','./tag.controller','express','post','/:id','../../components/auth/service'];(function(_0x570acf,_0x3ef875){const _0x2f8075=function(_0x2fec0d){while(--_0x2fec0d){_0x570acf['push'](_0x570acf['shift']());}};_0x2f8075(++_0x3ef875);}(a620_0x3ef8,0x1ef));const a620_0x2f80=function(_0x570acf,_0x3ef875){_0x570acf=_0x570acf-0x0;let _0x2f8075=a620_0x3ef8[_0x570acf];return _0x2f8075;};const _0x6af48=a620_0x2f80;'use strict';const express=require(_0x6af48('0x5')),router=express['Router'](),auth=require(_0x6af48('0x8')),controller=require(_0x6af48('0x4'));router[_0x6af48('0x3')]('/',auth[_0x6af48('0x1')](),controller[_0x6af48('0x9')]),router[_0x6af48('0x3')]('/:id',auth[_0x6af48('0x1')](),controller[_0x6af48('0xb')]),router[_0x6af48('0x6')]('/',auth[_0x6af48('0x1')](),controller['create']),router[_0x6af48('0x0')](_0x6af48('0x7'),auth[_0x6af48('0x1')](),controller[_0x6af48('0xa')]),router[_0x6af48('0x2')](_0x6af48('0x7'),auth[_0x6af48('0x1')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/tag/tag.attributes.js b/server/api/tag/tag.attributes.js index b19ad4c..811d9d2 100644 --- a/server/api/tag/tag.attributes.js +++ b/server/api/tag/tag.attributes.js @@ -1 +1 @@ -const a621_0x192c=['exports','STRING','#0091EA','sequelize'];(function(_0x58fd89,_0x192ce0){const _0x5d1bc2=function(_0xaf8dde){while(--_0xaf8dde){_0x58fd89['push'](_0x58fd89['shift']());}};_0x5d1bc2(++_0x192ce0);}(a621_0x192c,0x139));const a621_0x5d1b=function(_0x58fd89,_0x192ce0){_0x58fd89=_0x58fd89-0x0;let _0x5d1bc2=a621_0x192c[_0x58fd89];return _0x5d1bc2;};const _0x30ccf3=a621_0x5d1b;'use strict';const Sequelize=require(_0x30ccf3('0x2'));module[_0x30ccf3('0x3')]={'name':{'type':Sequelize[_0x30ccf3('0x0')],'unique':'name','allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':Sequelize['STRING'],'defaultValue':_0x30ccf3('0x1')},'description':{'type':Sequelize[_0x30ccf3('0x0')]}}; \ No newline at end of file +const a621_0x61d6=['name','#0091EA','STRING','exports'];(function(_0x351ea9,_0x61d6c9){const _0x41f161=function(_0x5b0794){while(--_0x5b0794){_0x351ea9['push'](_0x351ea9['shift']());}};_0x41f161(++_0x61d6c9);}(a621_0x61d6,0x160));const a621_0x41f1=function(_0x351ea9,_0x61d6c9){_0x351ea9=_0x351ea9-0x0;let _0x41f161=a621_0x61d6[_0x351ea9];return _0x41f161;};const _0xc2bc8=a621_0x41f1;'use strict';const Sequelize=require('sequelize');module[_0xc2bc8('0x3')]={'name':{'type':Sequelize[_0xc2bc8('0x2')],'unique':_0xc2bc8('0x0'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':Sequelize[_0xc2bc8('0x2')],'defaultValue':_0xc2bc8('0x1')},'description':{'type':Sequelize[_0xc2bc8('0x2')]}}; \ No newline at end of file diff --git a/server/api/tag/tag.controller.js b/server/api/tag/tag.controller.js index cf8cd83..e6cc0ee 100644 --- a/server/api/tag/tag.controller.js +++ b/server/api/tag/tag.controller.js @@ -1 +1 @@ -const a622_0x5cfb=['model','catch','include','VIRTUAL','fields','count','stack','json','rawAttributes','get','../../mysqldb','set','filter','merge','includeAll','body','role','undefined','nolimit','name','UserProfileResource','keys','update','userProfileId','attributes','user','key','destroy','sequelize','Tag','intersection','status','send','show','end','Content-Range','findOne','lodash','fieldName','filters','offset','limit','where','pick','query','rows','map','create','like','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','then','error','length','Tags','UserProfileSection','params','api','type','sort'];(function(_0x4a20c9,_0x5cfb93){const _0x49864e=function(_0x15b502){while(--_0x15b502){_0x4a20c9['push'](_0x4a20c9['shift']());}};_0x49864e(++_0x5cfb93);}(a622_0x5cfb,0xed));const a622_0x4986=function(_0x4a20c9,_0x5cfb93){_0x4a20c9=_0x4a20c9-0x0;let _0x49864e=a622_0x5cfb[_0x4a20c9];return _0x49864e;};const _0x336f8e=a622_0x4986;'use strict';const _=require(_0x336f8e('0x24')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x336f8e('0x37')),db=require(_0x336f8e('0x9'))['db'],{Op}=require(_0x336f8e('0x1b'));function respondWithResult(_0x15b502,_0x116590){return _0x116590=_0x116590||0xc8,function(_0x550649){const _0x34f072=a622_0x4986;if(_0x550649)return _0x15b502[_0x34f072('0x1e')](_0x116590)[_0x34f072('0x6')](_0x550649);};}function respondWithFilteredResult(_0xb3a891,_0x5ecf42){return function(_0x45402d){const _0x259cc2=a622_0x4986;if(_0x45402d){const _0x259869=_0x45402d[_0x259cc2('0x4')],_0x1457d8=_0x5ecf42['offset'];let _0x3ac277=_0x5ecf42['offset']+_0x5ecf42[_0x259cc2('0x28')],_0x1c904a;return _0x3ac277>=_0x259869?(_0x3ac277=_0x259869,_0x1c904a=0xc8):_0x1c904a=0xce,_0xb3a891[_0x259cc2('0x1e')](_0x1c904a),_0xb3a891[_0x259cc2('0xa')](_0x259cc2('0x22'),_0x1457d8+'-'+_0x3ac277+'/'+_0x259869)[_0x259cc2('0x6')](_0x45402d);}return null;};}function saveUpdates(_0x11250c){return function(_0x576f74){const _0x15d668=a622_0x4986;if(_0x576f74)return _0x576f74[_0x15d668('0x15')](_0x11250c)[_0x15d668('0x31')](function(_0x1e8f6c){return _0x1e8f6c;});return null;};}function removeEntity(_0x3dd8d2){return function(_0xccdf65){const _0x429f37=a622_0x4986;if(_0xccdf65)return _0xccdf65[_0x429f37('0x1a')]()['then'](function(){const _0x2e2ede=_0x429f37,_0x32767f=_0xccdf65[_0x2e2ede('0x8')]({'plain':!![]}),_0x2a99a='Tags';return db[_0x2e2ede('0x13')][_0x2e2ede('0x1a')]({'where':{'type':_0x2a99a,'resourceId':_0x32767f['id']}})[_0x2e2ede('0x31')](function(){return _0xccdf65;});})[_0x429f37('0x31')](function(){const _0x153b8a=_0x429f37;_0x3dd8d2['status'](0xcc)[_0x153b8a('0x21')]();});};}function handleEntityNotFound(_0x2dc069){return function(_0x3c1163){return!_0x3c1163&&_0x2dc069['sendStatus'](0x194),_0x3c1163;};}function handleError(_0x213012,_0x211a0e){return _0x211a0e=_0x211a0e||0x1f4,function(_0x2a7ece){const _0x17834d=a622_0x4986;logger[_0x17834d('0x32')](_0x2a7ece[_0x17834d('0x5')]),_0x2a7ece['name']&&delete _0x2a7ece[_0x17834d('0x12')],_0x213012[_0x17834d('0x1e')](_0x211a0e)[_0x17834d('0x1f')](_0x2a7ece);};}exports['index']=function(_0x1e358e,_0x3d78c3){const _0x3fee8f=_0x336f8e;let _0x1f0601={};const _0x3c19e1={},_0x453468={'count':0x0,'rows':[]},_0x5653d3=_['map'](db[_0x3fee8f('0x1c')][_0x3fee8f('0x7')],function(_0x44f85b){const _0x216b02=_0x3fee8f;return{'name':_0x44f85b[_0x216b02('0x25')],'type':_0x44f85b[_0x216b02('0x38')][_0x216b02('0x19')]};});_0x3c19e1[_0x3fee8f('0x3a')]=_[_0x3fee8f('0x2d')](_0x5653d3,_0x3fee8f('0x12')),_0x3c19e1[_0x3fee8f('0x2b')]=_[_0x3fee8f('0x14')](_0x1e358e[_0x3fee8f('0x2b')]),_0x3c19e1[_0x3fee8f('0x26')]=_[_0x3fee8f('0x1d')](_0x3c19e1[_0x3fee8f('0x3a')],_0x3c19e1[_0x3fee8f('0x2b')]),_0x1f0601[_0x3fee8f('0x17')]=_[_0x3fee8f('0x1d')](_0x3c19e1[_0x3fee8f('0x3a')],qs['fields'](_0x1e358e[_0x3fee8f('0x2b')]['fields'])),_0x1f0601['attributes']=_0x1f0601[_0x3fee8f('0x17')][_0x3fee8f('0x33')]?_0x1f0601['attributes']:_0x3c19e1['model'];typeof _0x1e358e['query'][_0x3fee8f('0x11')]===_0x3fee8f('0x10')&&(_0x1f0601['limit']=qs[_0x3fee8f('0x28')](_0x1e358e[_0x3fee8f('0x2b')][_0x3fee8f('0x28')]),_0x1f0601[_0x3fee8f('0x27')]=qs[_0x3fee8f('0x27')](_0x1e358e['query'][_0x3fee8f('0x27')]));_0x1f0601['order']=qs[_0x3fee8f('0x39')](_0x1e358e[_0x3fee8f('0x2b')][_0x3fee8f('0x39')]),_0x1f0601[_0x3fee8f('0x29')]=qs['filters'](_[_0x3fee8f('0x2a')](_0x1e358e['query'],_0x3c19e1[_0x3fee8f('0x26')]),_0x5653d3);_0x1e358e[_0x3fee8f('0x2b')]['filter']&&(_0x1f0601[_0x3fee8f('0x29')]=_[_0x3fee8f('0xc')](_0x1f0601[_0x3fee8f('0x29')],{[Op['or']]:_[_0x3fee8f('0x2d')](_0x5653d3,function(_0x7598d7){const _0x428321=_0x3fee8f;if(_0x7598d7['type']!==_0x428321('0x2')){const _0x3ee60c={};return _0x3ee60c[_0x7598d7[_0x428321('0x12')]]={[Op[_0x428321('0x2f')]]:'%'+_0x1e358e[_0x428321('0x2b')][_0x428321('0xb')]+'%'},_0x3ee60c;}})}));_0x1f0601=_['merge']({},_0x1f0601,_0x1e358e['options']);const _0x5283a8={'where':_0x1f0601[_0x3fee8f('0x29')]};return db[_0x3fee8f('0x1c')]['count'](_0x5283a8)[_0x3fee8f('0x31')](function(_0x19f668){const _0xb2ee60=_0x3fee8f;return _0x453468[_0xb2ee60('0x4')]=_0x19f668,_0x1e358e[_0xb2ee60('0x2b')][_0xb2ee60('0xd')]&&(_0x1f0601[_0xb2ee60('0x1')]=[{'all':!![]}]),db[_0xb2ee60('0x1c')]['findAll'](_0x1f0601);})[_0x3fee8f('0x31')](function(_0x4756a9){const _0x42851d=_0x3fee8f;return _0x453468[_0x42851d('0x2c')]=_0x4756a9,_0x453468;})['then'](respondWithFilteredResult(_0x3d78c3,_0x1f0601))[_0x3fee8f('0x0')](handleError(_0x3d78c3,null));},exports[_0x336f8e('0x20')]=function(_0xed4435,_0x3e2088){const _0x44e228=_0x336f8e;let _0x3848a4={'raw':!![],'where':{'id':_0xed4435['params']['id']}};const _0x56c4fc={};return _0x56c4fc[_0x44e228('0x3a')]=_[_0x44e228('0x14')](db[_0x44e228('0x1c')][_0x44e228('0x7')]),_0x56c4fc['query']=_[_0x44e228('0x14')](_0xed4435['query']),_0x56c4fc[_0x44e228('0x26')]=_[_0x44e228('0x1d')](_0x56c4fc[_0x44e228('0x3a')],_0x56c4fc[_0x44e228('0x2b')]),_0x3848a4[_0x44e228('0x17')]=_['intersection'](_0x56c4fc['model'],qs[_0x44e228('0x3')](_0xed4435[_0x44e228('0x2b')]['fields'])),_0x3848a4[_0x44e228('0x17')]=_0x3848a4[_0x44e228('0x17')][_0x44e228('0x33')]?_0x3848a4[_0x44e228('0x17')]:_0x56c4fc[_0x44e228('0x3a')],_0xed4435[_0x44e228('0x2b')]['includeAll']&&(_0x3848a4[_0x44e228('0x1')]=[{'all':!![]}]),_0x3848a4=_[_0x44e228('0xc')]({},_0x3848a4,_0xed4435['options']),db[_0x44e228('0x1c')][_0x44e228('0x23')](_0x3848a4)[_0x44e228('0x31')](handleEntityNotFound(_0x3e2088,null))[_0x44e228('0x31')](respondWithResult(_0x3e2088,null))[_0x44e228('0x0')](handleError(_0x3e2088,null));},exports[_0x336f8e('0x2e')]=function(_0x3bc300,_0x4a7b05){const _0xb93b49=_0x336f8e;return db[_0xb93b49('0x1c')][_0xb93b49('0x2e')](_0x3bc300[_0xb93b49('0xe')],{})[_0xb93b49('0x31')](function(_0x2a9e04){const _0x1f93fc=_0xb93b49,_0x3a34c0=_0x3bc300[_0x1f93fc('0x18')][_0x1f93fc('0x8')]({'plain':!![]});if(!_0x3a34c0)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3a34c0[_0x1f93fc('0xf')]==='user'){const _0x1948a8=_0x2a9e04['get']({'plain':!![]}),_0x5f548=_0x1f93fc('0x34');return db[_0x1f93fc('0x35')][_0x1f93fc('0x23')]({'where':{'name':_0x5f548,'userProfileId':_0x3a34c0[_0x1f93fc('0x16')]},'raw':!![]})[_0x1f93fc('0x31')](function(_0x4bcf79){const _0x5dd0dd=_0x1f93fc;return _0x4bcf79&&_0x4bcf79['autoAssociation']===0x0?db[_0x5dd0dd('0x13')][_0x5dd0dd('0x2e')]({'name':_0x1948a8['name'],'resourceId':_0x1948a8['id'],'type':_0x4bcf79[_0x5dd0dd('0x12')],'sectionId':_0x4bcf79['id']},{})['then'](function(){return _0x2a9e04;}):_0x2a9e04;})[_0x1f93fc('0x0')](function(_0x229ce1){const _0x352efe=_0x1f93fc;logger['error'](_0x352efe('0x30'),_0x229ce1);throw _0x229ce1;});}return _0x2a9e04;})[_0xb93b49('0x31')](respondWithResult(_0x4a7b05,0xc9))[_0xb93b49('0x0')](handleError(_0x4a7b05,null));},exports['update']=function(_0x48b84a,_0x1e8eaf){const _0x252adc=_0x336f8e;return _0x48b84a[_0x252adc('0xe')]['id']&&delete _0x48b84a[_0x252adc('0xe')]['id'],db[_0x252adc('0x1c')][_0x252adc('0x23')]({'where':{'id':_0x48b84a[_0x252adc('0x36')]['id']}})[_0x252adc('0x31')](handleEntityNotFound(_0x1e8eaf,null))['then'](saveUpdates(_0x48b84a[_0x252adc('0xe')],null))[_0x252adc('0x31')](respondWithResult(_0x1e8eaf,null))[_0x252adc('0x0')](handleError(_0x1e8eaf,null));},exports[_0x336f8e('0x1a')]=function(_0x1507a3,_0x31b3e6){const _0x698697=_0x336f8e;return db[_0x698697('0x1c')][_0x698697('0x23')]({'where':{'id':_0x1507a3[_0x698697('0x36')]['id']}})[_0x698697('0x31')](handleEntityNotFound(_0x31b3e6,null))[_0x698697('0x31')](removeEntity(_0x31b3e6,null))[_0x698697('0x0')](handleError(_0x31b3e6,null));}; \ No newline at end of file +const a622_0x3ed4=['options','create','findOne','order','body','intersection','UserProfileSection','Content-Range','params','../../config/logger','rawAttributes','filter','stack','findAll','like','includeAll','destroy','json','Tag','limit','include','offset','catch','status','end','key','length','send','count','where','fields','filters','autoAssociation','model','sendStatus','sort','../../components/parsers/qs','show','get','index','merge','sequelize','Tags','attributes','map','query','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../mysqldb','undefined','set','keys','user','UserProfileResource','name','fieldName','pick','userProfileId','then','lodash','type','error'];(function(_0x401119,_0x3ed43b){const _0x28fe06=function(_0x49365f){while(--_0x49365f){_0x401119['push'](_0x401119['shift']());}};_0x28fe06(++_0x3ed43b);}(a622_0x3ed4,0x94));const a622_0x28fe=function(_0x401119,_0x3ed43b){_0x401119=_0x401119-0x0;let _0x28fe06=a622_0x3ed4[_0x401119];return _0x28fe06;};const _0x509db8=a622_0x28fe;'use strict';const _=require(_0x509db8('0x20')),qs=require(_0x509db8('0xa')),logger=require(_0x509db8('0x2c'))('api'),db=require(_0x509db8('0x15'))['db'],{Op}=require(_0x509db8('0xf'));function respondWithResult(_0x49365f,_0x2ffaf8){return _0x2ffaf8=_0x2ffaf8||0xc8,function(_0x5a0187){const _0x46f5e0=a622_0x28fe;if(_0x5a0187)return _0x49365f[_0x46f5e0('0x3a')](_0x2ffaf8)[_0x46f5e0('0x34')](_0x5a0187);};}function respondWithFilteredResult(_0x54183,_0x2816f0){return function(_0x3e0cc7){const _0x17003b=a622_0x28fe;if(_0x3e0cc7){const _0x4e1a8e=_0x3e0cc7[_0x17003b('0x2')],_0x163e63=_0x2816f0[_0x17003b('0x38')];let _0x52af84=_0x2816f0['offset']+_0x2816f0[_0x17003b('0x36')],_0x1e1722;return _0x52af84>=_0x4e1a8e?(_0x52af84=_0x4e1a8e,_0x1e1722=0xc8):_0x1e1722=0xce,_0x54183[_0x17003b('0x3a')](_0x1e1722),_0x54183[_0x17003b('0x17')](_0x17003b('0x2a'),_0x163e63+'-'+_0x52af84+'/'+_0x4e1a8e)[_0x17003b('0x34')](_0x3e0cc7);}return null;};}function saveUpdates(_0x169101){return function(_0x8aa0db){const _0x1c10e4=a622_0x28fe;if(_0x8aa0db)return _0x8aa0db['update'](_0x169101)[_0x1c10e4('0x1f')](function(_0x2c4968){return _0x2c4968;});return null;};}function removeEntity(_0x389962){return function(_0x421e01){const _0x4c8030=a622_0x28fe;if(_0x421e01)return _0x421e01[_0x4c8030('0x33')]()[_0x4c8030('0x1f')](function(){const _0x51d93d=_0x4c8030,_0x485e59=_0x421e01['get']({'plain':!![]}),_0x27fee4=_0x51d93d('0x10');return db[_0x51d93d('0x1a')]['destroy']({'where':{'type':_0x27fee4,'resourceId':_0x485e59['id']}})[_0x51d93d('0x1f')](function(){return _0x421e01;});})[_0x4c8030('0x1f')](function(){const _0x3bca93=_0x4c8030;_0x389962[_0x3bca93('0x3a')](0xcc)[_0x3bca93('0x3b')]();});};}function handleEntityNotFound(_0x262c97){return function(_0x3c67c4){const _0x17f437=a622_0x28fe;return!_0x3c67c4&&_0x262c97[_0x17f437('0x8')](0x194),_0x3c67c4;};}function handleError(_0x1fa11d,_0x285942){return _0x285942=_0x285942||0x1f4,function(_0x49aee2){const _0xc54482=a622_0x28fe;logger[_0xc54482('0x22')](_0x49aee2[_0xc54482('0x2f')]),_0x49aee2[_0xc54482('0x1b')]&&delete _0x49aee2['name'],_0x1fa11d['status'](_0x285942)[_0xc54482('0x1')](_0x49aee2);};}exports[_0x509db8('0xd')]=function(_0x17acac,_0x928ed9){const _0x54ca5a=_0x509db8;let _0x30c438={};const _0x18610d={},_0x2dd715={'count':0x0,'rows':[]},_0xb8418e=_['map'](db[_0x54ca5a('0x35')][_0x54ca5a('0x2d')],function(_0x17f4e7){const _0xe79a80=_0x54ca5a;return{'name':_0x17f4e7[_0xe79a80('0x1c')],'type':_0x17f4e7[_0xe79a80('0x21')][_0xe79a80('0x3c')]};});_0x18610d['model']=_[_0x54ca5a('0x12')](_0xb8418e,_0x54ca5a('0x1b')),_0x18610d[_0x54ca5a('0x13')]=_['keys'](_0x17acac[_0x54ca5a('0x13')]),_0x18610d['filters']=_['intersection'](_0x18610d[_0x54ca5a('0x7')],_0x18610d['query']),_0x30c438[_0x54ca5a('0x11')]=_[_0x54ca5a('0x28')](_0x18610d[_0x54ca5a('0x7')],qs[_0x54ca5a('0x4')](_0x17acac[_0x54ca5a('0x13')][_0x54ca5a('0x4')])),_0x30c438[_0x54ca5a('0x11')]=_0x30c438[_0x54ca5a('0x11')]['length']?_0x30c438['attributes']:_0x18610d[_0x54ca5a('0x7')];typeof _0x17acac['query']['nolimit']===_0x54ca5a('0x16')&&(_0x30c438['limit']=qs[_0x54ca5a('0x36')](_0x17acac[_0x54ca5a('0x13')][_0x54ca5a('0x36')]),_0x30c438['offset']=qs[_0x54ca5a('0x38')](_0x17acac[_0x54ca5a('0x13')][_0x54ca5a('0x38')]));_0x30c438[_0x54ca5a('0x26')]=qs[_0x54ca5a('0x9')](_0x17acac[_0x54ca5a('0x13')]['sort']),_0x30c438[_0x54ca5a('0x3')]=qs[_0x54ca5a('0x5')](_[_0x54ca5a('0x1d')](_0x17acac[_0x54ca5a('0x13')],_0x18610d[_0x54ca5a('0x5')]),_0xb8418e);_0x17acac[_0x54ca5a('0x13')][_0x54ca5a('0x2e')]&&(_0x30c438['where']=_[_0x54ca5a('0xe')](_0x30c438[_0x54ca5a('0x3')],{[Op['or']]:_[_0x54ca5a('0x12')](_0xb8418e,function(_0x2b2c16){const _0x16e831=_0x54ca5a;if(_0x2b2c16[_0x16e831('0x21')]!=='VIRTUAL'){const _0x10d8a3={};return _0x10d8a3[_0x2b2c16[_0x16e831('0x1b')]]={[Op[_0x16e831('0x31')]]:'%'+_0x17acac[_0x16e831('0x13')][_0x16e831('0x2e')]+'%'},_0x10d8a3;}})}));_0x30c438=_[_0x54ca5a('0xe')]({},_0x30c438,_0x17acac['options']);const _0x1f4c33={'where':_0x30c438[_0x54ca5a('0x3')]};return db[_0x54ca5a('0x35')]['count'](_0x1f4c33)['then'](function(_0x5d2ad7){const _0x4e5011=_0x54ca5a;return _0x2dd715['count']=_0x5d2ad7,_0x17acac[_0x4e5011('0x13')]['includeAll']&&(_0x30c438[_0x4e5011('0x37')]=[{'all':!![]}]),db[_0x4e5011('0x35')][_0x4e5011('0x30')](_0x30c438);})[_0x54ca5a('0x1f')](function(_0xf0f316){return _0x2dd715['rows']=_0xf0f316,_0x2dd715;})['then'](respondWithFilteredResult(_0x928ed9,_0x30c438))['catch'](handleError(_0x928ed9,null));},exports[_0x509db8('0xb')]=function(_0x44bbe2,_0x1f69fd){const _0x255937=_0x509db8;let _0x4f16d4={'raw':!![],'where':{'id':_0x44bbe2[_0x255937('0x2b')]['id']}};const _0x260480={};return _0x260480[_0x255937('0x7')]=_[_0x255937('0x18')](db[_0x255937('0x35')][_0x255937('0x2d')]),_0x260480['query']=_['keys'](_0x44bbe2[_0x255937('0x13')]),_0x260480[_0x255937('0x5')]=_[_0x255937('0x28')](_0x260480[_0x255937('0x7')],_0x260480[_0x255937('0x13')]),_0x4f16d4[_0x255937('0x11')]=_[_0x255937('0x28')](_0x260480[_0x255937('0x7')],qs[_0x255937('0x4')](_0x44bbe2[_0x255937('0x13')]['fields'])),_0x4f16d4[_0x255937('0x11')]=_0x4f16d4[_0x255937('0x11')][_0x255937('0x0')]?_0x4f16d4[_0x255937('0x11')]:_0x260480[_0x255937('0x7')],_0x44bbe2[_0x255937('0x13')][_0x255937('0x32')]&&(_0x4f16d4[_0x255937('0x37')]=[{'all':!![]}]),_0x4f16d4=_[_0x255937('0xe')]({},_0x4f16d4,_0x44bbe2[_0x255937('0x23')]),db['Tag']['findOne'](_0x4f16d4)[_0x255937('0x1f')](handleEntityNotFound(_0x1f69fd,null))[_0x255937('0x1f')](respondWithResult(_0x1f69fd,null))[_0x255937('0x39')](handleError(_0x1f69fd,null));},exports['create']=function(_0x24e52d,_0x3e41ed){const _0x1850c7=_0x509db8;return db[_0x1850c7('0x35')][_0x1850c7('0x24')](_0x24e52d[_0x1850c7('0x27')],{})[_0x1850c7('0x1f')](function(_0x12695e){const _0x3557ce=_0x1850c7,_0x4d532a=_0x24e52d[_0x3557ce('0x19')][_0x3557ce('0xc')]({'plain':!![]});if(!_0x4d532a)throw new Error(_0x3557ce('0x14'));if(_0x4d532a['role']===_0x3557ce('0x19')){const _0x3c4fdd=_0x12695e[_0x3557ce('0xc')]({'plain':!![]}),_0x51e647=_0x3557ce('0x10');return db[_0x3557ce('0x29')]['findOne']({'where':{'name':_0x51e647,'userProfileId':_0x4d532a[_0x3557ce('0x1e')]},'raw':!![]})['then'](function(_0x6cdde6){const _0xb29a9e=_0x3557ce;return _0x6cdde6&&_0x6cdde6[_0xb29a9e('0x6')]===0x0?db[_0xb29a9e('0x1a')][_0xb29a9e('0x24')]({'name':_0x3c4fdd[_0xb29a9e('0x1b')],'resourceId':_0x3c4fdd['id'],'type':_0x6cdde6['name'],'sectionId':_0x6cdde6['id']},{})[_0xb29a9e('0x1f')](function(){return _0x12695e;}):_0x12695e;})['catch'](function(_0x52d5c3){const _0x3f3bd5=_0x3557ce;logger[_0x3f3bd5('0x22')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x52d5c3);throw _0x52d5c3;});}return _0x12695e;})['then'](respondWithResult(_0x3e41ed,0xc9))[_0x1850c7('0x39')](handleError(_0x3e41ed,null));},exports['update']=function(_0x19ff7c,_0x3b9093){const _0x48b635=_0x509db8;return _0x19ff7c['body']['id']&&delete _0x19ff7c['body']['id'],db[_0x48b635('0x35')][_0x48b635('0x25')]({'where':{'id':_0x19ff7c[_0x48b635('0x2b')]['id']}})[_0x48b635('0x1f')](handleEntityNotFound(_0x3b9093,null))[_0x48b635('0x1f')](saveUpdates(_0x19ff7c[_0x48b635('0x27')],null))['then'](respondWithResult(_0x3b9093,null))[_0x48b635('0x39')](handleError(_0x3b9093,null));},exports['destroy']=function(_0x5c13a4,_0x29e815){const _0x13aaf1=_0x509db8;return db[_0x13aaf1('0x35')][_0x13aaf1('0x25')]({'where':{'id':_0x5c13a4[_0x13aaf1('0x2b')]['id']}})[_0x13aaf1('0x1f')](handleEntityNotFound(_0x29e815,null))[_0x13aaf1('0x1f')](removeEntity(_0x29e815,null))[_0x13aaf1('0x39')](handleError(_0x29e815,null));}; \ No newline at end of file diff --git a/server/api/tag/tag.model.js b/server/api/tag/tag.model.js index b84c88c..ac31eba 100644 --- a/server/api/tag/tag.model.js +++ b/server/api/tag/tag.model.js @@ -1 +1 @@ -const a623_0x4e5b=['./tag.attributes','exports','Tag','tools_tags'];(function(_0x326dd4,_0x4e5bdc){const _0x3be8c6=function(_0x27f3ae){while(--_0x27f3ae){_0x326dd4['push'](_0x326dd4['shift']());}};_0x3be8c6(++_0x4e5bdc);}(a623_0x4e5b,0xf0));const a623_0x3be8=function(_0x326dd4,_0x4e5bdc){_0x326dd4=_0x326dd4-0x0;let _0x3be8c6=a623_0x4e5b[_0x326dd4];return _0x3be8c6;};const _0x3aaecc=a623_0x3be8;'use strict';const attributes=require(_0x3aaecc('0x0'));module[_0x3aaecc('0x1')]=function(_0x27f3ae){const _0xc21caf=_0x3aaecc,_0x4445dd=_0x27f3ae['define'](_0xc21caf('0x2'),attributes,{'tableName':_0xc21caf('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4445dd;}; \ No newline at end of file +const a623_0x2fcc=['define','Tag','tools_tags'];(function(_0x41e3e1,_0x2fcc7c){const _0x18497d=function(_0x2aa8fa){while(--_0x2aa8fa){_0x41e3e1['push'](_0x41e3e1['shift']());}};_0x18497d(++_0x2fcc7c);}(a623_0x2fcc,0x14c));const a623_0x1849=function(_0x41e3e1,_0x2fcc7c){_0x41e3e1=_0x41e3e1-0x0;let _0x18497d=a623_0x2fcc[_0x41e3e1];return _0x18497d;};'use strict';const attributes=require('./tag.attributes');module['exports']=function(_0x2aa8fa){const _0x58d793=a623_0x1849,_0x22325b=_0x2aa8fa[_0x58d793('0x1')](_0x58d793('0x2'),attributes,{'tableName':_0x58d793('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x22325b;}; \ No newline at end of file diff --git a/server/api/team/index.js b/server/api/team/index.js index bdeb351..d07eeec 100644 --- a/server/api/team/index.js +++ b/server/api/team/index.js @@ -1 +1 @@ -const a624_0x5e66=['destroy','update','removeAgents','addAgents','isAuthenticated','create','removeQueues','Router','get','show','../../components/auth/service','./team.controller','/:id','/:id/queues','/:id/users','post','getAgents','delete','put','express'];(function(_0xa47b2c,_0x5e6671){const _0xce89f3=function(_0x95b974){while(--_0x95b974){_0xa47b2c['push'](_0xa47b2c['shift']());}};_0xce89f3(++_0x5e6671);}(a624_0x5e66,0xb1));const a624_0xce89=function(_0xa47b2c,_0x5e6671){_0xa47b2c=_0xa47b2c-0x0;let _0xce89f3=a624_0x5e66[_0xa47b2c];return _0xce89f3;};const _0x443a99=a624_0xce89;'use strict';const express=require(_0x443a99('0x2')),router=express[_0x443a99('0xa')](),auth=require(_0x443a99('0xd')),controller=require(_0x443a99('0xe'));router[_0x443a99('0xb')]('/',auth[_0x443a99('0x7')](),controller['index']),router[_0x443a99('0xb')](_0x443a99('0xf'),auth[_0x443a99('0x7')](),controller[_0x443a99('0xc')]),router[_0x443a99('0xb')]('/:id/queues',auth['isAuthenticated'](),controller['getQueues']),router[_0x443a99('0xb')](_0x443a99('0x11'),auth[_0x443a99('0x7')](),controller[_0x443a99('0x13')]),router[_0x443a99('0x12')]('/',auth['isAuthenticated'](),controller[_0x443a99('0x8')]),router[_0x443a99('0x12')](_0x443a99('0x10'),auth[_0x443a99('0x7')](),controller['addQueues']),router['post'](_0x443a99('0x11'),auth[_0x443a99('0x7')](),controller[_0x443a99('0x6')]),router[_0x443a99('0x1')](_0x443a99('0xf'),auth['isAuthenticated'](),controller[_0x443a99('0x4')]),router[_0x443a99('0x0')](_0x443a99('0xf'),auth[_0x443a99('0x7')](),controller[_0x443a99('0x3')]),router['delete'](_0x443a99('0x10'),auth[_0x443a99('0x7')](),controller[_0x443a99('0x9')]),router[_0x443a99('0x0')](_0x443a99('0x11'),auth[_0x443a99('0x7')](),controller[_0x443a99('0x5')]),module['exports']=router; \ No newline at end of file +const a624_0x4b56=['/:id/queues','update','../../components/auth/service','post','/:id/users','isAuthenticated','/:id','show','removeAgents','delete','create','exports','getAgents','removeQueues','get','express','destroy'];(function(_0x56f897,_0x4b5659){const _0x2654e9=function(_0x292b29){while(--_0x292b29){_0x56f897['push'](_0x56f897['shift']());}};_0x2654e9(++_0x4b5659);}(a624_0x4b56,0x1a5));const a624_0x2654=function(_0x56f897,_0x4b5659){_0x56f897=_0x56f897-0x0;let _0x2654e9=a624_0x4b56[_0x56f897];return _0x2654e9;};const _0x3d15e3=a624_0x2654;'use strict';const express=require(_0x3d15e3('0x2')),router=express['Router'](),auth=require(_0x3d15e3('0x6')),controller=require('./team.controller');router[_0x3d15e3('0x1')]('/',auth['isAuthenticated'](),controller['index']),router[_0x3d15e3('0x1')](_0x3d15e3('0xa'),auth[_0x3d15e3('0x9')](),controller[_0x3d15e3('0xb')]),router[_0x3d15e3('0x1')](_0x3d15e3('0x4'),auth['isAuthenticated'](),controller['getQueues']),router[_0x3d15e3('0x1')](_0x3d15e3('0x8'),auth['isAuthenticated'](),controller[_0x3d15e3('0x10')]),router[_0x3d15e3('0x7')]('/',auth[_0x3d15e3('0x9')](),controller[_0x3d15e3('0xe')]),router['post']('/:id/queues',auth[_0x3d15e3('0x9')](),controller['addQueues']),router[_0x3d15e3('0x7')](_0x3d15e3('0x8'),auth['isAuthenticated'](),controller['addAgents']),router['put'](_0x3d15e3('0xa'),auth[_0x3d15e3('0x9')](),controller[_0x3d15e3('0x5')]),router[_0x3d15e3('0xd')](_0x3d15e3('0xa'),auth[_0x3d15e3('0x9')](),controller[_0x3d15e3('0x3')]),router[_0x3d15e3('0xd')](_0x3d15e3('0x4'),auth[_0x3d15e3('0x9')](),controller[_0x3d15e3('0x0')]),router[_0x3d15e3('0xd')](_0x3d15e3('0x8'),auth[_0x3d15e3('0x9')](),controller[_0x3d15e3('0xc')]),module[_0x3d15e3('0xf')]=router; \ No newline at end of file diff --git a/server/api/team/team.attributes.js b/server/api/team/team.attributes.js index 886acad..451d96e 100644 --- a/server/api/team/team.attributes.js +++ b/server/api/team/team.attributes.js @@ -1 +1 @@ -const a625_0x52ea=['STRING','name','sequelize'];(function(_0x468859,_0x52eaf5){const _0x1ee627=function(_0x475cb3){while(--_0x475cb3){_0x468859['push'](_0x468859['shift']());}};_0x1ee627(++_0x52eaf5);}(a625_0x52ea,0x1f2));const a625_0x1ee6=function(_0x468859,_0x52eaf5){_0x468859=_0x468859-0x0;let _0x1ee627=a625_0x52ea[_0x468859];return _0x1ee627;};const _0x211992=a625_0x1ee6;'use strict';const Sequelize=require(_0x211992('0x2'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x211992('0x1')},'description':{'type':Sequelize[_0x211992('0x0')]}}; \ No newline at end of file +const a625_0x1d9b=['STRING','sequelize','exports','name'];(function(_0xcc9eeb,_0x1d9ba2){const _0x1a72fe=function(_0x118ab6){while(--_0x118ab6){_0xcc9eeb['push'](_0xcc9eeb['shift']());}};_0x1a72fe(++_0x1d9ba2);}(a625_0x1d9b,0x1c2));const a625_0x1a72=function(_0xcc9eeb,_0x1d9ba2){_0xcc9eeb=_0xcc9eeb-0x0;let _0x1a72fe=a625_0x1d9b[_0xcc9eeb];return _0x1a72fe;};const _0x5c4d0b=a625_0x1a72;'use strict';const Sequelize=require(_0x5c4d0b('0x3'));module[_0x5c4d0b('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x5c4d0b('0x1')},'description':{'type':Sequelize[_0x5c4d0b('0x2')]}}; \ No newline at end of file diff --git a/server/api/team/team.controller.js b/server/api/team/team.controller.js index f790fd6..567758e 100644 --- a/server/api/team/team.controller.js +++ b/server/api/team/team.controller.js @@ -1 +1 @@ -const a626_0x3fcc=['length','stack','sequelize','role','capitalize','isNil','getQueues','attributes','voice','pick','name','../../config/logger','Mail','sendStatus','api','util','show','removeAgents','index','catch','fields','upsert','online','channel','order','intersection','UserProfileSection','end','includeAll','each','then','rows','create','Unable\x20to\x20retrieve\x20the\x20current\x20user','destroy','Teams','count','voicePause','where','json','userTeam:remove','getAgents','get','Sequelize','VIRTUAL','userProfileId','omit','filters','offset','toLowerCase','Chat','filter','undefined','ids','UserVoiceQueueRt','status','user','interface','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','set','type','sms','emit','ValidationError','send','User','mail','Voice','UserProfileResource','merge','include','Queues','Content-Range','rawAttributes','options','nolimit','add','update','addQueues','findOne','isValidChannel','chat','body','findAll','limit','Fax','model','Openchannel','../../components/parsers/qs','addAgents','../../rediscache','Team','map','Sms','Queue','removeQueues','params','keys','../../mysqldb','error','sort','query'];(function(_0x230207,_0x3fcc66){const _0x3adc1a=function(_0xe87acf){while(--_0xe87acf){_0x230207['push'](_0x230207['shift']());}};_0x3adc1a(++_0x3fcc66);}(a626_0x3fcc,0x1a8));const a626_0x3adc=function(_0x230207,_0x3fcc66){_0x230207=_0x230207-0x0;let _0x3adc1a=a626_0x3fcc[_0x230207];return _0x3adc1a;};const _0x24a802=a626_0x3adc;'use strict';const util=require(_0x24a802('0x65')),_=require('lodash'),qs=require(_0x24a802('0x48')),logger=require(_0x24a802('0x61'))(_0x24a802('0x64')),utils=require('../../config/utils'),{getSocket}=require(_0x24a802('0x4a')),socket=getSocket(),db=require(_0x24a802('0x52'))['db'],{Op}=require(_0x24a802('0x58'));require('./team.socket')['register'](socket);function respondWithStatusCode(_0xe87acf,_0x533053){return _0x533053=_0x533053||0xcc,function(_0x597f70){const _0x1f1c19=a626_0x3adc;if(_0x597f70)return _0xe87acf[_0x1f1c19('0x63')](_0x533053);return _0xe87acf[_0x1f1c19('0x27')](_0x533053)[_0x1f1c19('0xb')]();};}function respondWithResult(_0x423986,_0x50bb11){return _0x50bb11=_0x50bb11||0xc8,function(_0x18e347){const _0x169926=a626_0x3adc;if(_0x18e347)return _0x423986[_0x169926('0x27')](_0x50bb11)['json'](_0x18e347);};}function respondWithFilteredResult(_0x2fc9e0,_0x3cf6c){return function(_0x59f5f8){const _0x16b7cc=a626_0x3adc;if(_0x59f5f8){const _0x29f48c=_0x59f5f8[_0x16b7cc('0x14')],_0x4ae788=_0x3cf6c[_0x16b7cc('0x20')];let _0x512366=_0x3cf6c[_0x16b7cc('0x20')]+_0x3cf6c[_0x16b7cc('0x44')],_0x5d2ab7;return _0x512366>=_0x29f48c?(_0x512366=_0x29f48c,_0x5d2ab7=0xc8):_0x5d2ab7=0xce,_0x2fc9e0[_0x16b7cc('0x27')](_0x5d2ab7),_0x2fc9e0[_0x16b7cc('0x2b')](_0x16b7cc('0x38'),_0x4ae788+'-'+_0x512366+'/'+_0x29f48c)[_0x16b7cc('0x17')](_0x59f5f8);}return null;};}function saveUpdates(_0x4efe7e){return function(_0x40ee87){const _0x47f625=a626_0x3adc;if(_0x40ee87)return _0x40ee87[_0x47f625('0x3d')](_0x4efe7e)['then'](function(_0x5788fe){return _0x5788fe;});return null;};}function removeEntity(_0xb34191){return function(_0x21b35c){const _0x2fd4c1=a626_0x3adc;if(_0x21b35c)return _0x21b35c['destroy']()[_0x2fd4c1('0xe')](function(){const _0x1d7796=_0x2fd4c1,_0x37aa85=_0x21b35c[_0x1d7796('0x1a')]({'plain':!![]}),_0x150c78=_0x1d7796('0x13');return db[_0x1d7796('0x34')][_0x1d7796('0x12')]({'where':{'type':_0x150c78,'resourceId':_0x37aa85['id']}})[_0x1d7796('0xe')](function(){return _0x21b35c;});})[_0x2fd4c1('0xe')](function(){const _0x3d9a7f=_0x2fd4c1;_0xb34191[_0x3d9a7f('0x27')](0xcc)[_0x3d9a7f('0xb')]();});};}function handleEntityNotFound(_0x190379){return function(_0x3830e7){const _0xdedddb=a626_0x3adc;return!_0x3830e7&&_0x190379[_0xdedddb('0x63')](0x194),_0x3830e7;};}function handleError(_0x4ba0d6,_0xde83e2){return _0xde83e2=_0xde83e2||0x1f4,function(_0x385d72){const _0x12001d=a626_0x3adc;logger[_0x12001d('0x53')](_0x385d72[_0x12001d('0x57')]),_0x385d72[_0x12001d('0x60')]&&delete _0x385d72[_0x12001d('0x60')],_0x4ba0d6[_0x12001d('0x27')](_0xde83e2)[_0x12001d('0x30')](_0x385d72);};}exports[_0x24a802('0x2')]=function(_0x575a40,_0x515adc){const _0x3297b9=_0x24a802;let _0x30fb6f={};const _0x3fbff8={},_0x8dfaec={'count':0x0,'rows':[]},_0x14faf2=_[_0x3297b9('0x4c')](db[_0x3297b9('0x4b')]['rawAttributes'],function(_0x47996d){const _0x90cec2=_0x3297b9;return{'name':_0x47996d['fieldName'],'type':_0x47996d[_0x90cec2('0x2c')]['key']};});_0x3fbff8[_0x3297b9('0x46')]=_[_0x3297b9('0x4c')](_0x14faf2,_0x3297b9('0x60')),_0x3fbff8[_0x3297b9('0x55')]=_[_0x3297b9('0x51')](_0x575a40[_0x3297b9('0x55')]),_0x3fbff8['filters']=_[_0x3297b9('0x9')](_0x3fbff8['model'],_0x3fbff8[_0x3297b9('0x55')]),_0x30fb6f['attributes']=_[_0x3297b9('0x9')](_0x3fbff8[_0x3297b9('0x46')],qs[_0x3297b9('0x4')](_0x575a40['query']['fields'])),_0x30fb6f[_0x3297b9('0x5d')]=_0x30fb6f[_0x3297b9('0x5d')][_0x3297b9('0x56')]?_0x30fb6f[_0x3297b9('0x5d')]:_0x3fbff8[_0x3297b9('0x46')];typeof _0x575a40['query'][_0x3297b9('0x3b')]===_0x3297b9('0x24')&&(_0x30fb6f[_0x3297b9('0x44')]=qs[_0x3297b9('0x44')](_0x575a40[_0x3297b9('0x55')][_0x3297b9('0x44')]),_0x30fb6f[_0x3297b9('0x20')]=qs[_0x3297b9('0x20')](_0x575a40['query'][_0x3297b9('0x20')]));_0x30fb6f['order']=qs[_0x3297b9('0x54')](_0x575a40['query'][_0x3297b9('0x54')]),_0x30fb6f[_0x3297b9('0x16')]=qs[_0x3297b9('0x1f')](_[_0x3297b9('0x5f')](_0x575a40[_0x3297b9('0x55')],_0x3fbff8[_0x3297b9('0x1f')]),_0x14faf2);_0x575a40[_0x3297b9('0x55')][_0x3297b9('0x23')]&&(_0x30fb6f[_0x3297b9('0x16')]=_[_0x3297b9('0x35')](_0x30fb6f[_0x3297b9('0x16')],{[Op['or']]:_['map'](_0x14faf2,function(_0x582cf7){const _0x276715=_0x3297b9;if(_0x582cf7[_0x276715('0x2c')]!==_0x276715('0x1c')){const _0x24f4fc={};return _0x24f4fc[_0x582cf7[_0x276715('0x60')]]={[Op['like']]:'%'+_0x575a40[_0x276715('0x55')][_0x276715('0x23')]+'%'},_0x24f4fc;}})}));_0x30fb6f=_['merge']({},_0x30fb6f,_0x575a40[_0x3297b9('0x3a')]);const _0x27e504={'where':_0x30fb6f[_0x3297b9('0x16')]};return db['Team'][_0x3297b9('0x14')](_0x27e504)['then'](function(_0x5cd5bb){const _0x55c706=_0x3297b9;return _0x8dfaec[_0x55c706('0x14')]=_0x5cd5bb,_0x575a40[_0x55c706('0x55')][_0x55c706('0xc')]&&(_0x30fb6f[_0x55c706('0x36')]=[{'all':!![]}]),db[_0x55c706('0x4b')][_0x55c706('0x43')](_0x30fb6f);})[_0x3297b9('0xe')](function(_0xd9d790){const _0xb5cea0=_0x3297b9;return _0x8dfaec[_0xb5cea0('0xf')]=_0xd9d790,_0x8dfaec;})[_0x3297b9('0xe')](respondWithFilteredResult(_0x515adc,_0x30fb6f))[_0x3297b9('0x3')](handleError(_0x515adc,null));},exports[_0x24a802('0x0')]=function(_0xb41d46,_0x147151){const _0x2424d2=_0x24a802;let _0x5061e4={'raw':![],'where':{'id':_0xb41d46[_0x2424d2('0x50')]['id']}};const _0x1e91e8={};return _0x1e91e8[_0x2424d2('0x46')]=_['keys'](db['Team'][_0x2424d2('0x39')]),_0x1e91e8[_0x2424d2('0x55')]=_[_0x2424d2('0x51')](_0xb41d46[_0x2424d2('0x55')]),_0x1e91e8[_0x2424d2('0x1f')]=_[_0x2424d2('0x9')](_0x1e91e8['model'],_0x1e91e8[_0x2424d2('0x55')]),_0x5061e4[_0x2424d2('0x5d')]=_['intersection'](_0x1e91e8['model'],qs['fields'](_0xb41d46[_0x2424d2('0x55')][_0x2424d2('0x4')])),_0x5061e4[_0x2424d2('0x5d')]=_0x5061e4[_0x2424d2('0x5d')][_0x2424d2('0x56')]?_0x5061e4[_0x2424d2('0x5d')]:_0x1e91e8[_0x2424d2('0x46')],_0xb41d46['query']['includeAll']&&(_0x5061e4[_0x2424d2('0x36')]=[{'all':!![]}]),_0x5061e4=_[_0x2424d2('0x35')]({},_0x5061e4,_0xb41d46['options']),db[_0x2424d2('0x4b')][_0x2424d2('0x3f')](_0x5061e4)['then'](handleEntityNotFound(_0x147151,null))['then'](respondWithResult(_0x147151,null))[_0x2424d2('0x3')](handleError(_0x147151,null));},exports['create']=function(_0x1a473b,_0x1f5a44){const _0x190651=_0x24a802;return db[_0x190651('0x4b')][_0x190651('0x10')](_0x1a473b[_0x190651('0x42')],{})[_0x190651('0xe')](function(_0x392141){const _0x446b63=_0x190651,_0x37898d=_0x1a473b[_0x446b63('0x28')][_0x446b63('0x1a')]({'plain':!![]});if(!_0x37898d)throw new Error(_0x446b63('0x11'));if(_0x37898d[_0x446b63('0x59')]===_0x446b63('0x28')){const _0x4253de=_0x392141['get']({'plain':!![]}),_0xd5037a='Teams';return db[_0x446b63('0xa')][_0x446b63('0x3f')]({'where':{'name':_0xd5037a,'userProfileId':_0x37898d[_0x446b63('0x1d')]},'raw':!![]})[_0x446b63('0xe')](function(_0x29ba9e){const _0x50519f=_0x446b63;return _0x29ba9e&&_0x29ba9e['autoAssociation']===0x0?db[_0x50519f('0x34')]['create']({'name':_0x4253de[_0x50519f('0x60')],'resourceId':_0x4253de['id'],'type':_0x29ba9e[_0x50519f('0x60')],'sectionId':_0x29ba9e['id']},{})[_0x50519f('0xe')](function(){return _0x392141;}):_0x392141;})[_0x446b63('0x3')](function(_0x7f1549){const _0x1f5922=_0x446b63;logger[_0x1f5922('0x53')](_0x1f5922('0x2a'),_0x7f1549);throw _0x7f1549;});}return _0x392141;})[_0x190651('0xe')](respondWithResult(_0x1f5a44,0xc9))[_0x190651('0x3')](handleError(_0x1f5a44,null));},exports[_0x24a802('0x3d')]=function(_0x2820ce,_0x1f5d46){const _0x3f2a3b=_0x24a802;return _0x2820ce[_0x3f2a3b('0x42')]['id']&&delete _0x2820ce[_0x3f2a3b('0x42')]['id'],db[_0x3f2a3b('0x4b')]['findOne']({'where':{'id':_0x2820ce[_0x3f2a3b('0x50')]['id']}})[_0x3f2a3b('0xe')](handleEntityNotFound(_0x1f5d46,null))[_0x3f2a3b('0xe')](saveUpdates(_0x2820ce[_0x3f2a3b('0x42')],null))[_0x3f2a3b('0xe')](respondWithResult(_0x1f5d46,null))[_0x3f2a3b('0x3')](handleError(_0x1f5d46,null));},exports[_0x24a802('0x12')]=function(_0x4f02e8,_0x579c09){const _0x48faff=_0x24a802;return db[_0x48faff('0x4b')][_0x48faff('0x3f')]({'where':{'id':_0x4f02e8['params']['id']}})[_0x48faff('0xe')](handleEntityNotFound(_0x579c09,null))[_0x48faff('0xe')](removeEntity(_0x579c09,null))[_0x48faff('0x3')](handleError(_0x579c09,null));},exports[_0x24a802('0x5c')]=function(_0x147ad8,_0x308999){const _0x44a993=_0x24a802;return db[_0x44a993('0x4b')][_0x44a993('0x3f')]({'where':{'id':_0x147ad8[_0x44a993('0x50')]['id']}})[_0x44a993('0xe')](handleEntityNotFound(_0x308999,null))['then'](function(_0xf9cabe){const _0x1f4689=_0x44a993;if(!_0x147ad8[_0x1f4689('0x55')]['channel']||!utils[_0x1f4689('0x40')](_0x147ad8[_0x1f4689('0x55')]['channel']))throw new db['Sequelize'][(_0x1f4689('0x2f'))]('Unknown\x20channel');let _0xf102b6={};const _0x27fdb4={};return _0x27fdb4[_0x1f4689('0x46')]=_[_0x1f4689('0x51')](db[_[_0x1f4689('0x5a')](_0x147ad8['query']['channel'][_0x1f4689('0x21')]())+_0x1f4689('0x4e')]['rawAttributes']),_0x27fdb4[_0x1f4689('0x55')]=_['keys'](_0x147ad8['query']),_0x27fdb4['filters']=_[_0x1f4689('0x9')](_0x27fdb4[_0x1f4689('0x46')],_0x27fdb4[_0x1f4689('0x55')]),_0xf102b6[_0x1f4689('0x5d')]=_[_0x1f4689('0x9')](_0x27fdb4[_0x1f4689('0x46')],qs[_0x1f4689('0x4')](_0x147ad8[_0x1f4689('0x55')][_0x1f4689('0x4')])),_0xf102b6[_0x1f4689('0x5d')]=_0xf102b6[_0x1f4689('0x5d')][_0x1f4689('0x56')]?_0xf102b6[_0x1f4689('0x5d')]:_0x27fdb4[_0x1f4689('0x46')],_0xf102b6[_0x1f4689('0x44')]=qs[_0x1f4689('0x44')](_0x147ad8[_0x1f4689('0x55')][_0x1f4689('0x44')]),_0xf102b6['offset']=qs[_0x1f4689('0x20')](_0x147ad8[_0x1f4689('0x55')][_0x1f4689('0x20')]),_0xf102b6[_0x1f4689('0x8')]=qs['sort'](_0x147ad8['query'][_0x1f4689('0x54')]),_0xf102b6[_0x1f4689('0x16')]=qs[_0x1f4689('0x1f')](_['pick'](_0x147ad8[_0x1f4689('0x55')],_0x27fdb4['filters'])),_0xf102b6=_[_0x1f4689('0x35')]({},_0xf102b6,_0x147ad8[_0x1f4689('0x3a')]),_0xf9cabe[_0x1f4689('0x1a')+_[_0x1f4689('0x5a')](_0x147ad8[_0x1f4689('0x55')][_0x1f4689('0x7')][_0x1f4689('0x21')]())+_0x1f4689('0x37')](_0xf102b6);})[_0x44a993('0xe')](respondWithResult(_0x308999,null))[_0x44a993('0x3')](handleError(_0x308999,null));},exports[_0x24a802('0x3e')]=function(_0x221f8b,_0x169005){const _0x4646cb=_0x24a802;return db[_0x4646cb('0x4b')][_0x4646cb('0x3f')]({'where':{'id':_0x221f8b[_0x4646cb('0x50')]['id']}})[_0x4646cb('0xe')](function(_0x23614e){const _0x20326b=_0x4646cb;if(_0x23614e){if(!_0x221f8b['body'][_0x20326b('0x7')]||!utils[_0x20326b('0x40')](_0x221f8b['body'][_0x20326b('0x7')]))throw new db[(_0x20326b('0x1b'))][(_0x20326b('0x2f'))]('Unknown\x20channel');return _0x23614e[_0x20326b('0x3c')+_[_0x20326b('0x5a')](_0x221f8b[_0x20326b('0x42')][_0x20326b('0x7')][_0x20326b('0x21')]())+'Queues'](_0x221f8b[_0x20326b('0x42')][_0x20326b('0x25')]);}return null;})['then'](handleEntityNotFound(_0x169005,null))[_0x4646cb('0xe')](respondWithStatusCode(_0x169005,null))['catch'](handleError(_0x169005,null));},exports[_0x24a802('0x4f')]=function(_0x3488e2,_0x427e90){const _0x1c091c=_0x24a802;return db['Team'][_0x1c091c('0x3f')]({'where':{'id':_0x3488e2['params']['id']}})[_0x1c091c('0xe')](function(_0x3967d1){const _0x3d2633=_0x1c091c;if(_0x3967d1){if(!_0x3488e2[_0x3d2633('0x55')][_0x3d2633('0x7')]||!utils[_0x3d2633('0x40')](_0x3488e2['query'][_0x3d2633('0x7')]))throw new db[(_0x3d2633('0x1b'))][(_0x3d2633('0x2f'))]('Unknown\x20channel');return _0x3967d1['remove'+_[_0x3d2633('0x5a')](_0x3488e2[_0x3d2633('0x55')][_0x3d2633('0x7')][_0x3d2633('0x21')]())+'Queues'](_0x3488e2[_0x3d2633('0x55')][_0x3d2633('0x25')]);}return null;})[_0x1c091c('0xe')](handleEntityNotFound(_0x427e90,null))[_0x1c091c('0xe')](respondWithStatusCode(_0x427e90,null))[_0x1c091c('0x3')](handleError(_0x427e90,null));},exports[_0x24a802('0x49')]=function(_0xbdad00,_0x30db3b){const _0x6e7014=_0x24a802;return db[_0x6e7014('0x4b')][_0x6e7014('0x3f')]({'where':{'id':_0xbdad00[_0x6e7014('0x50')]['id']}})['then'](function(_0x487111){const _0xf83328=_0x6e7014;if(_0x487111){const _0x5bc255=['Voice',_0xf83328('0x22'),_0xf83328('0x62'),_0xf83328('0x4d'),_0xf83328('0x45'),_0xf83328('0x47'),'Whatsapp'];return Promise['each'](_0x5bc255,function(_0x67680f){const _0xfe93d7=_0xf83328;return _0x487111[_0xfe93d7('0x1a')+_0x67680f+_0xfe93d7('0x37')]({'attributes':['id',_0xfe93d7('0x60')]})[_0xfe93d7('0xe')](function(_0x367002){const _0x2a5ad5=_0xfe93d7;return Promise[_0x2a5ad5('0xd')](_0x367002,function(_0x3f93e5){const _0x6db4a9=_0x2a5ad5;return _0x3f93e5[_0x6db4a9('0x49')](_0xbdad00['body'][_0x6db4a9('0x25')])['then'](function(){const _0xf1e02e=_0x6db4a9;if(_0x67680f===_0xf1e02e('0x33'))return db[_0xf1e02e('0x31')][_0xf1e02e('0x43')]({'where':{'id':_0xbdad00[_0xf1e02e('0x42')][_0xf1e02e('0x25')]},'attributes':['id','name',_0xf1e02e('0x6'),_0xf1e02e('0x15'),_0xf1e02e('0x29')],'raw':!![]})[_0xf1e02e('0xe')](function(_0x583bb3){const _0x4a71fc=_0xf1e02e;return Promise[_0x4a71fc('0xd')](_['filter'](_0x583bb3,{'online':0x1}),function(_0x4d638a){const _0x5c6734=_0x4a71fc;return db[_0x5c6734('0x26')][_0x5c6734('0x5')]({'membername':_0x4d638a[_0x5c6734('0x60')],'UserId':_0x4d638a['id'],'queue_name':_0x3f93e5['name'],'VoiceQueueId':_0x3f93e5['id'],'interface':_[_0x5c6734('0x5b')](_0x4d638a[_0x5c6734('0x29')])?util['format']('SIP/%s',_0x4d638a[_0x5c6734('0x60')]):_0x4d638a[_0x5c6734('0x29')],'paused':_0x4d638a[_0x5c6734('0x15')]||![],'penalty':0x0});});});});});})['then'](function(){return _0x487111;});})[_0xf83328('0xe')](function(){return _0x487111;});}})[_0x6e7014('0xe')](function(_0x4aa659){const _0x1a6ecd=_0x6e7014;if(_0x4aa659)return _0x4aa659[_0x1a6ecd('0x49')](_0xbdad00['body']['ids'],{'through':_[_0x1a6ecd('0x1e')](_0xbdad00[_0x1a6ecd('0x42')],[_0x1a6ecd('0x25'),'id'])})[_0x1a6ecd('0xe')](function(_0x192391){const _0x3f3f86=_0x1a6ecd;for(let _0x41b614=0x0;_0x41b614<_0xbdad00[_0x3f3f86('0x42')][_0x3f3f86('0x25')]['length'];_0x41b614+=0x1){socket[_0x3f3f86('0x2e')]('userTeam:save',{'UserId':_0xbdad00[_0x3f3f86('0x42')]['ids'][_0x41b614],'TeamId':_0xbdad00['params']['id']});}return _0x192391;});})[_0x6e7014('0xe')](respondWithResult(_0x30db3b,null))[_0x6e7014('0x3')](handleError(_0x30db3b,null));},exports[_0x24a802('0x1')]=function(_0xa6ed58,_0xc31f35){const _0x1347c2=_0x24a802;return db[_0x1347c2('0x4b')][_0x1347c2('0x3f')]({'where':{'id':_0xa6ed58[_0x1347c2('0x50')]['id']}})[_0x1347c2('0xe')](handleEntityNotFound(_0xc31f35,null))[_0x1347c2('0xe')](function(_0x51e703){const _0x45aafd=_0x1347c2;if(_0x51e703)return Promise['each']([_0x45aafd('0x5e'),_0x45aafd('0x41'),_0x45aafd('0x32'),_0x45aafd('0x2d'),'fax','openchannel','whatsapp'],function(_0x262832){const _0x2106b4=_0x45aafd;return _0x51e703[_0x2106b4('0x1a')+_[_0x2106b4('0x5a')](_0x262832)+_0x2106b4('0x37')]({'attributes':['id','name']})[_0x2106b4('0xe')](function(_0x5e6f8e){return Promise['each'](_0x5e6f8e,function(_0x53b142){const _0x11edb1=a626_0x3adc;return _0x53b142[_0x11edb1('0x1')](_0xa6ed58['query'][_0x11edb1('0x25')])[_0x11edb1('0xe')](function(){const _0x5cb07f=_0x11edb1;if(_0x262832===_0x5cb07f('0x5e'))return db['UserVoiceQueueRt'][_0x5cb07f('0x12')]({'where':{'VoiceQueueId':_0x53b142['id'],'UserId':_0xa6ed58[_0x5cb07f('0x55')][_0x5cb07f('0x25')]}});});});})[_0x2106b4('0xe')](function(){return _0x51e703;});})['then'](function(){return _0x51e703;});})[_0x1347c2('0xe')](function(_0x2dcc39){const _0x1acc2e=_0x1347c2;if(_0x2dcc39)return _0x2dcc39[_0x1acc2e('0x1')](_0xa6ed58[_0x1acc2e('0x55')][_0x1acc2e('0x25')])['then'](function(){const _0x5365a1=_0x1acc2e;if(_['isArray'](_0xa6ed58[_0x5365a1('0x55')][_0x5365a1('0x25')]))for(let _0x4d9f6c=0x0;_0x4d9f6c<_0xa6ed58[_0x5365a1('0x55')][_0x5365a1('0x25')][_0x5365a1('0x56')];_0x4d9f6c+=0x1){socket[_0x5365a1('0x2e')](_0x5365a1('0x18'),{'UserId':Number(_0xa6ed58[_0x5365a1('0x55')][_0x5365a1('0x25')][_0x4d9f6c]),'TeamId':Number(_0xa6ed58['params']['id'])});}else socket[_0x5365a1('0x2e')](_0x5365a1('0x18'),{'UserId':Number(_0xa6ed58[_0x5365a1('0x55')][_0x5365a1('0x25')]),'TeamId':Number(_0xa6ed58[_0x5365a1('0x50')]['id'])});});})[_0x1347c2('0xe')](respondWithStatusCode(_0xc31f35,null))[_0x1347c2('0x3')](handleError(_0xc31f35,null));},exports['getAgents']=function(_0x1b0a1c,_0x2166e4){const _0x48ee31=_0x24a802;let _0x4e10c4={};const _0x51557a={};let _0x31144c,_0x147a9c;return db[_0x48ee31('0x4b')][_0x48ee31('0x3f')]({'where':{'id':_0x1b0a1c[_0x48ee31('0x50')]['id']}})[_0x48ee31('0xe')](handleEntityNotFound(_0x2166e4,null))[_0x48ee31('0xe')](function(_0x7e893d){const _0x27c048=_0x48ee31;if(_0x7e893d)return _0x31144c=_0x7e893d,_0x51557a[_0x27c048('0x46')]=_['keys'](db[_0x27c048('0x31')][_0x27c048('0x39')]),_0x51557a['query']=_['keys'](_0x1b0a1c[_0x27c048('0x55')]),_0x51557a[_0x27c048('0x1f')]=_[_0x27c048('0x9')](_0x51557a[_0x27c048('0x46')],_0x51557a[_0x27c048('0x55')]),_0x4e10c4[_0x27c048('0x5d')]=_[_0x27c048('0x9')](_0x51557a[_0x27c048('0x46')],qs[_0x27c048('0x4')](_0x1b0a1c[_0x27c048('0x55')]['fields'])),_0x4e10c4[_0x27c048('0x5d')]=_0x4e10c4[_0x27c048('0x5d')][_0x27c048('0x56')]?_0x4e10c4['attributes']:_0x51557a[_0x27c048('0x46')],_0x4e10c4[_0x27c048('0x8')]=qs[_0x27c048('0x54')](_0x1b0a1c[_0x27c048('0x55')][_0x27c048('0x54')]),_0x4e10c4['where']=qs[_0x27c048('0x1f')](_[_0x27c048('0x5f')](_0x1b0a1c[_0x27c048('0x55')],_0x51557a[_0x27c048('0x1f')])),_0x1b0a1c['query'][_0x27c048('0x23')]&&(_0x4e10c4[_0x27c048('0x16')]=_[_0x27c048('0x35')](_0x4e10c4[_0x27c048('0x16')],{[Op['or']]:_[_0x27c048('0x4c')](_0x4e10c4['attributes'],function(_0x24d031){const _0x22bf5b=_0x27c048,_0x23284a={};return _0x23284a[_0x24d031]={[Op['like']]:'%'+_0x1b0a1c[_0x22bf5b('0x55')][_0x22bf5b('0x23')]+'%'},_0x23284a;})})),_0x4e10c4=_[_0x27c048('0x35')]({},_0x4e10c4,_0x1b0a1c[_0x27c048('0x3a')]),_0x31144c[_0x27c048('0x19')](_0x4e10c4);})[_0x48ee31('0xe')](function(_0x39623e){const _0x5ebb14=_0x48ee31;if(_0x39623e)return _0x147a9c=_0x39623e[_0x5ebb14('0x56')],typeof _0x1b0a1c[_0x5ebb14('0x55')][_0x5ebb14('0x3b')]===_0x5ebb14('0x24')&&(_0x4e10c4[_0x5ebb14('0x44')]=qs['limit'](_0x1b0a1c[_0x5ebb14('0x55')][_0x5ebb14('0x44')]),_0x4e10c4[_0x5ebb14('0x20')]=qs[_0x5ebb14('0x20')](_0x1b0a1c['query'][_0x5ebb14('0x20')])),_0x31144c['getAgents'](_0x4e10c4);})[_0x48ee31('0xe')](function(_0x5e71ba){if(_0x5e71ba)return _0x5e71ba?{'count':_0x147a9c,'rows':_0x5e71ba}:null;})[_0x48ee31('0xe')](respondWithResult(_0x2166e4,null))[_0x48ee31('0x3')](handleError(_0x2166e4,null));}; \ No newline at end of file +const a626_0x2001=['then','removeAgents','json','addAgents','userTeam:remove','filter','options','rawAttributes','set','get','add','format','openchannel','fax','../../mysqldb','emit','../../rediscache','include','Queues','destroy','sequelize','catch','findAll','Openchannel','key','stack','removeQueues','role','sendStatus','update','error','index','User','isValidChannel','end','attributes','whatsapp','intersection','chat','body','map','type','count','keys','name','addQueues','fieldName','order','util','like','length','findOne','each','nolimit','capitalize','offset','channel','UserProfileResource','merge','Team','params','online','pick','create','where','fields','includeAll','filters','ValidationError','query','register','ids','getAgents','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','SIP/%s','isArray','UserProfileSection','voice','../../config/logger','interface','Sequelize','Unknown\x20channel','Unable\x20to\x20retrieve\x20the\x20current\x20user','status','mail','remove','limit','upsert','api','Queue','Mail','./team.socket','sms','model','autoAssociation','Content-Range','sort','omit','Teams','send','userTeam:save','user','toLowerCase','undefined','getQueues','Voice','Sms','Chat','voicePause','isNil','Fax'];(function(_0x539b1c,_0x200164){const _0x4fafbb=function(_0x2e1dd2){while(--_0x2e1dd2){_0x539b1c['push'](_0x539b1c['shift']());}};_0x4fafbb(++_0x200164);}(a626_0x2001,0x8f));const a626_0x4faf=function(_0x539b1c,_0x200164){_0x539b1c=_0x539b1c-0x0;let _0x4fafbb=a626_0x2001[_0x539b1c];return _0x4fafbb;};const _0x1d2aa5=a626_0x4faf;'use strict';const util=require(_0x1d2aa5('0x10')),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x1d2aa5('0x2e'))(_0x1d2aa5('0x38')),utils=require('../../config/utils'),{getSocket}=require(_0x1d2aa5('0x5f')),socket=getSocket(),db=require(_0x1d2aa5('0x5d'))['db'],{Op}=require(_0x1d2aa5('0x63'));require(_0x1d2aa5('0x3b'))[_0x1d2aa5('0x26')](socket);function respondWithStatusCode(_0x2e1dd2,_0x31469e){return _0x31469e=_0x31469e||0xcc,function(_0x58dd9b){const _0x5ae226=a626_0x4faf;if(_0x58dd9b)return _0x2e1dd2['sendStatus'](_0x31469e);return _0x2e1dd2[_0x5ae226('0x33')](_0x31469e)[_0x5ae226('0x2')]();};}function respondWithResult(_0x2297e1,_0x53abe9){return _0x53abe9=_0x53abe9||0xc8,function(_0x1f17c6){const _0x245959=a626_0x4faf;if(_0x1f17c6)return _0x2297e1[_0x245959('0x33')](_0x53abe9)['json'](_0x1f17c6);};}function respondWithFilteredResult(_0x2f28fa,_0x371859){return function(_0x46f166){const _0x220237=a626_0x4faf;if(_0x46f166){const _0x10956f=_0x46f166[_0x220237('0xa')],_0x105495=_0x371859['offset'];let _0x19f096=_0x371859[_0x220237('0x17')]+_0x371859[_0x220237('0x36')],_0x1dba45;return _0x19f096>=_0x10956f?(_0x19f096=_0x10956f,_0x1dba45=0xc8):_0x1dba45=0xce,_0x2f28fa[_0x220237('0x33')](_0x1dba45),_0x2f28fa[_0x220237('0x57')](_0x220237('0x3f'),_0x105495+'-'+_0x19f096+'/'+_0x10956f)[_0x220237('0x51')](_0x46f166);}return null;};}function saveUpdates(_0x43fc90){return function(_0x2703ff){const _0x2bea07=a626_0x4faf;if(_0x2703ff)return _0x2703ff[_0x2bea07('0x6c')](_0x43fc90)[_0x2bea07('0x4f')](function(_0x2eacf9){return _0x2eacf9;});return null;};}function removeEntity(_0x2b329d){return function(_0x551524){const _0x2aee15=a626_0x4faf;if(_0x551524)return _0x551524[_0x2aee15('0x62')]()[_0x2aee15('0x4f')](function(){const _0x2a0d66=_0x2aee15,_0x4b4123=_0x551524[_0x2a0d66('0x58')]({'plain':!![]}),_0x5c8b8b='Teams';return db['UserProfileResource']['destroy']({'where':{'type':_0x5c8b8b,'resourceId':_0x4b4123['id']}})[_0x2a0d66('0x4f')](function(){return _0x551524;});})[_0x2aee15('0x4f')](function(){_0x2b329d['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x1b75f7){return function(_0x46fde0){const _0xacfef2=a626_0x4faf;return!_0x46fde0&&_0x1b75f7[_0xacfef2('0x6b')](0x194),_0x46fde0;};}function handleError(_0x250578,_0x48733f){return _0x48733f=_0x48733f||0x1f4,function(_0x4d26b8){const _0x183bdd=a626_0x4faf;logger['error'](_0x4d26b8[_0x183bdd('0x68')]),_0x4d26b8[_0x183bdd('0xc')]&&delete _0x4d26b8[_0x183bdd('0xc')],_0x250578[_0x183bdd('0x33')](_0x48733f)[_0x183bdd('0x43')](_0x4d26b8);};}exports[_0x1d2aa5('0x6e')]=function(_0x4e5cd3,_0x397a33){const _0xc8f234=_0x1d2aa5;let _0x38cf2a={};const _0x5e0bc9={},_0x13d065={'count':0x0,'rows':[]},_0x482044=_['map'](db[_0xc8f234('0x1b')][_0xc8f234('0x56')],function(_0x152746){const _0x1a5a8f=_0xc8f234;return{'name':_0x152746[_0x1a5a8f('0xe')],'type':_0x152746[_0x1a5a8f('0x9')][_0x1a5a8f('0x67')]};});_0x5e0bc9['model']=_[_0xc8f234('0x8')](_0x482044,_0xc8f234('0xc')),_0x5e0bc9[_0xc8f234('0x25')]=_[_0xc8f234('0xb')](_0x4e5cd3[_0xc8f234('0x25')]),_0x5e0bc9[_0xc8f234('0x23')]=_[_0xc8f234('0x5')](_0x5e0bc9[_0xc8f234('0x3d')],_0x5e0bc9['query']),_0x38cf2a[_0xc8f234('0x3')]=_['intersection'](_0x5e0bc9[_0xc8f234('0x3d')],qs[_0xc8f234('0x21')](_0x4e5cd3[_0xc8f234('0x25')][_0xc8f234('0x21')])),_0x38cf2a[_0xc8f234('0x3')]=_0x38cf2a[_0xc8f234('0x3')][_0xc8f234('0x12')]?_0x38cf2a[_0xc8f234('0x3')]:_0x5e0bc9[_0xc8f234('0x3d')];typeof _0x4e5cd3['query'][_0xc8f234('0x15')]==='undefined'&&(_0x38cf2a[_0xc8f234('0x36')]=qs[_0xc8f234('0x36')](_0x4e5cd3['query'][_0xc8f234('0x36')]),_0x38cf2a[_0xc8f234('0x17')]=qs[_0xc8f234('0x17')](_0x4e5cd3[_0xc8f234('0x25')][_0xc8f234('0x17')]));_0x38cf2a[_0xc8f234('0xf')]=qs[_0xc8f234('0x40')](_0x4e5cd3['query'][_0xc8f234('0x40')]),_0x38cf2a[_0xc8f234('0x20')]=qs['filters'](_['pick'](_0x4e5cd3[_0xc8f234('0x25')],_0x5e0bc9[_0xc8f234('0x23')]),_0x482044);_0x4e5cd3[_0xc8f234('0x25')]['filter']&&(_0x38cf2a['where']=_[_0xc8f234('0x1a')](_0x38cf2a['where'],{[Op['or']]:_['map'](_0x482044,function(_0x5ae058){const _0x2881b3=_0xc8f234;if(_0x5ae058[_0x2881b3('0x9')]!=='VIRTUAL'){const _0x3de450={};return _0x3de450[_0x5ae058[_0x2881b3('0xc')]]={[Op[_0x2881b3('0x11')]]:'%'+_0x4e5cd3[_0x2881b3('0x25')][_0x2881b3('0x54')]+'%'},_0x3de450;}})}));_0x38cf2a=_[_0xc8f234('0x1a')]({},_0x38cf2a,_0x4e5cd3['options']);const _0x4e1b5c={'where':_0x38cf2a[_0xc8f234('0x20')]};return db[_0xc8f234('0x1b')][_0xc8f234('0xa')](_0x4e1b5c)[_0xc8f234('0x4f')](function(_0x46eecd){const _0xf9bc2d=_0xc8f234;return _0x13d065['count']=_0x46eecd,_0x4e5cd3[_0xf9bc2d('0x25')]['includeAll']&&(_0x38cf2a[_0xf9bc2d('0x60')]=[{'all':!![]}]),db[_0xf9bc2d('0x1b')][_0xf9bc2d('0x65')](_0x38cf2a);})['then'](function(_0x3b7bad){return _0x13d065['rows']=_0x3b7bad,_0x13d065;})[_0xc8f234('0x4f')](respondWithFilteredResult(_0x397a33,_0x38cf2a))[_0xc8f234('0x64')](handleError(_0x397a33,null));},exports['show']=function(_0x56a10a,_0x466995){const _0x3ba0fc=_0x1d2aa5;let _0x13ce3f={'raw':![],'where':{'id':_0x56a10a[_0x3ba0fc('0x1c')]['id']}};const _0xe420aa={};return _0xe420aa['model']=_[_0x3ba0fc('0xb')](db[_0x3ba0fc('0x1b')]['rawAttributes']),_0xe420aa[_0x3ba0fc('0x25')]=_[_0x3ba0fc('0xb')](_0x56a10a[_0x3ba0fc('0x25')]),_0xe420aa[_0x3ba0fc('0x23')]=_['intersection'](_0xe420aa[_0x3ba0fc('0x3d')],_0xe420aa[_0x3ba0fc('0x25')]),_0x13ce3f[_0x3ba0fc('0x3')]=_[_0x3ba0fc('0x5')](_0xe420aa[_0x3ba0fc('0x3d')],qs['fields'](_0x56a10a[_0x3ba0fc('0x25')][_0x3ba0fc('0x21')])),_0x13ce3f[_0x3ba0fc('0x3')]=_0x13ce3f['attributes']['length']?_0x13ce3f['attributes']:_0xe420aa[_0x3ba0fc('0x3d')],_0x56a10a[_0x3ba0fc('0x25')][_0x3ba0fc('0x22')]&&(_0x13ce3f['include']=[{'all':!![]}]),_0x13ce3f=_[_0x3ba0fc('0x1a')]({},_0x13ce3f,_0x56a10a[_0x3ba0fc('0x55')]),db[_0x3ba0fc('0x1b')][_0x3ba0fc('0x13')](_0x13ce3f)[_0x3ba0fc('0x4f')](handleEntityNotFound(_0x466995,null))[_0x3ba0fc('0x4f')](respondWithResult(_0x466995,null))[_0x3ba0fc('0x64')](handleError(_0x466995,null));},exports['create']=function(_0x293c20,_0x417b78){const _0x28e327=_0x1d2aa5;return db[_0x28e327('0x1b')][_0x28e327('0x1f')](_0x293c20[_0x28e327('0x7')],{})[_0x28e327('0x4f')](function(_0x225ba6){const _0x99c2a4=_0x28e327,_0x5f1789=_0x293c20[_0x99c2a4('0x45')][_0x99c2a4('0x58')]({'plain':!![]});if(!_0x5f1789)throw new Error(_0x99c2a4('0x32'));if(_0x5f1789[_0x99c2a4('0x6a')]===_0x99c2a4('0x45')){const _0xbd438f=_0x225ba6[_0x99c2a4('0x58')]({'plain':!![]}),_0x34bab8=_0x99c2a4('0x42');return db[_0x99c2a4('0x2c')][_0x99c2a4('0x13')]({'where':{'name':_0x34bab8,'userProfileId':_0x5f1789['userProfileId']},'raw':!![]})['then'](function(_0x5d1890){const _0x31b964=_0x99c2a4;return _0x5d1890&&_0x5d1890[_0x31b964('0x3e')]===0x0?db[_0x31b964('0x19')]['create']({'name':_0xbd438f[_0x31b964('0xc')],'resourceId':_0xbd438f['id'],'type':_0x5d1890[_0x31b964('0xc')],'sectionId':_0x5d1890['id']},{})['then'](function(){return _0x225ba6;}):_0x225ba6;})['catch'](function(_0x531f7c){const _0x1c7a26=_0x99c2a4;logger[_0x1c7a26('0x6d')](_0x1c7a26('0x29'),_0x531f7c);throw _0x531f7c;});}return _0x225ba6;})[_0x28e327('0x4f')](respondWithResult(_0x417b78,0xc9))['catch'](handleError(_0x417b78,null));},exports['update']=function(_0xbca911,_0x33b929){const _0xcf794b=_0x1d2aa5;return _0xbca911[_0xcf794b('0x7')]['id']&&delete _0xbca911['body']['id'],db['Team'][_0xcf794b('0x13')]({'where':{'id':_0xbca911[_0xcf794b('0x1c')]['id']}})['then'](handleEntityNotFound(_0x33b929,null))[_0xcf794b('0x4f')](saveUpdates(_0xbca911[_0xcf794b('0x7')],null))['then'](respondWithResult(_0x33b929,null))[_0xcf794b('0x64')](handleError(_0x33b929,null));},exports['destroy']=function(_0x4001d8,_0x2b1c28){const _0x1d5532=_0x1d2aa5;return db[_0x1d5532('0x1b')][_0x1d5532('0x13')]({'where':{'id':_0x4001d8['params']['id']}})[_0x1d5532('0x4f')](handleEntityNotFound(_0x2b1c28,null))[_0x1d5532('0x4f')](removeEntity(_0x2b1c28,null))['catch'](handleError(_0x2b1c28,null));},exports[_0x1d2aa5('0x48')]=function(_0x4b14a0,_0x4e0ba3){const _0x47c844=_0x1d2aa5;return db[_0x47c844('0x1b')]['findOne']({'where':{'id':_0x4b14a0[_0x47c844('0x1c')]['id']}})[_0x47c844('0x4f')](handleEntityNotFound(_0x4e0ba3,null))[_0x47c844('0x4f')](function(_0x1fb4d4){const _0x363f4d=_0x47c844;if(!_0x4b14a0[_0x363f4d('0x25')][_0x363f4d('0x18')]||!utils['isValidChannel'](_0x4b14a0[_0x363f4d('0x25')]['channel']))throw new db['Sequelize'][(_0x363f4d('0x24'))]('Unknown\x20channel');let _0x24d636={};const _0x2e969c={};return _0x2e969c[_0x363f4d('0x3d')]=_[_0x363f4d('0xb')](db[_['capitalize'](_0x4b14a0[_0x363f4d('0x25')][_0x363f4d('0x18')][_0x363f4d('0x46')]())+_0x363f4d('0x39')][_0x363f4d('0x56')]),_0x2e969c[_0x363f4d('0x25')]=_[_0x363f4d('0xb')](_0x4b14a0[_0x363f4d('0x25')]),_0x2e969c[_0x363f4d('0x23')]=_['intersection'](_0x2e969c[_0x363f4d('0x3d')],_0x2e969c[_0x363f4d('0x25')]),_0x24d636[_0x363f4d('0x3')]=_[_0x363f4d('0x5')](_0x2e969c[_0x363f4d('0x3d')],qs[_0x363f4d('0x21')](_0x4b14a0['query'][_0x363f4d('0x21')])),_0x24d636[_0x363f4d('0x3')]=_0x24d636[_0x363f4d('0x3')]['length']?_0x24d636[_0x363f4d('0x3')]:_0x2e969c['model'],_0x24d636[_0x363f4d('0x36')]=qs[_0x363f4d('0x36')](_0x4b14a0[_0x363f4d('0x25')][_0x363f4d('0x36')]),_0x24d636[_0x363f4d('0x17')]=qs[_0x363f4d('0x17')](_0x4b14a0[_0x363f4d('0x25')]['offset']),_0x24d636[_0x363f4d('0xf')]=qs['sort'](_0x4b14a0['query'][_0x363f4d('0x40')]),_0x24d636[_0x363f4d('0x20')]=qs['filters'](_['pick'](_0x4b14a0[_0x363f4d('0x25')],_0x2e969c[_0x363f4d('0x23')])),_0x24d636=_['merge']({},_0x24d636,_0x4b14a0['options']),_0x1fb4d4[_0x363f4d('0x58')+_[_0x363f4d('0x16')](_0x4b14a0['query'][_0x363f4d('0x18')][_0x363f4d('0x46')]())+_0x363f4d('0x61')](_0x24d636);})[_0x47c844('0x4f')](respondWithResult(_0x4e0ba3,null))['catch'](handleError(_0x4e0ba3,null));},exports[_0x1d2aa5('0xd')]=function(_0x36bdfb,_0x3a5e7f){const _0x27dba=_0x1d2aa5;return db[_0x27dba('0x1b')][_0x27dba('0x13')]({'where':{'id':_0x36bdfb['params']['id']}})['then'](function(_0x1370ba){const _0x32f166=_0x27dba;if(_0x1370ba){if(!_0x36bdfb[_0x32f166('0x7')][_0x32f166('0x18')]||!utils['isValidChannel'](_0x36bdfb[_0x32f166('0x7')][_0x32f166('0x18')]))throw new db['Sequelize']['ValidationError'](_0x32f166('0x31'));return _0x1370ba[_0x32f166('0x59')+_[_0x32f166('0x16')](_0x36bdfb[_0x32f166('0x7')][_0x32f166('0x18')][_0x32f166('0x46')]())+'Queues'](_0x36bdfb[_0x32f166('0x7')][_0x32f166('0x27')]);}return null;})[_0x27dba('0x4f')](handleEntityNotFound(_0x3a5e7f,null))[_0x27dba('0x4f')](respondWithStatusCode(_0x3a5e7f,null))[_0x27dba('0x64')](handleError(_0x3a5e7f,null));},exports[_0x1d2aa5('0x69')]=function(_0x202338,_0x7f6c60){const _0x21ca14=_0x1d2aa5;return db[_0x21ca14('0x1b')]['findOne']({'where':{'id':_0x202338['params']['id']}})[_0x21ca14('0x4f')](function(_0x50e09b){const _0x84bb2b=_0x21ca14;if(_0x50e09b){if(!_0x202338[_0x84bb2b('0x25')][_0x84bb2b('0x18')]||!utils[_0x84bb2b('0x1')](_0x202338['query'][_0x84bb2b('0x18')]))throw new db[(_0x84bb2b('0x30'))][(_0x84bb2b('0x24'))](_0x84bb2b('0x31'));return _0x50e09b[_0x84bb2b('0x35')+_[_0x84bb2b('0x16')](_0x202338[_0x84bb2b('0x25')]['channel'][_0x84bb2b('0x46')]())+'Queues'](_0x202338[_0x84bb2b('0x25')]['ids']);}return null;})[_0x21ca14('0x4f')](handleEntityNotFound(_0x7f6c60,null))[_0x21ca14('0x4f')](respondWithStatusCode(_0x7f6c60,null))[_0x21ca14('0x64')](handleError(_0x7f6c60,null));},exports[_0x1d2aa5('0x52')]=function(_0x1a2f6c,_0x43d46f){const _0x45edcf=_0x1d2aa5;return db[_0x45edcf('0x1b')]['findOne']({'where':{'id':_0x1a2f6c[_0x45edcf('0x1c')]['id']}})[_0x45edcf('0x4f')](function(_0x55c389){const _0x36ff53=_0x45edcf;if(_0x55c389){const _0x591515=[_0x36ff53('0x49'),_0x36ff53('0x4b'),_0x36ff53('0x3a'),_0x36ff53('0x4a'),_0x36ff53('0x4e'),_0x36ff53('0x66'),'Whatsapp'];return Promise[_0x36ff53('0x14')](_0x591515,function(_0x579480){const _0x114c5f=_0x36ff53;return _0x55c389[_0x114c5f('0x58')+_0x579480+_0x114c5f('0x61')]({'attributes':['id','name']})[_0x114c5f('0x4f')](function(_0x42da0f){return Promise['each'](_0x42da0f,function(_0x3776c4){const _0x41b124=a626_0x4faf;return _0x3776c4['addAgents'](_0x1a2f6c[_0x41b124('0x7')]['ids'])[_0x41b124('0x4f')](function(){const _0x1f48dc=_0x41b124;if(_0x579480===_0x1f48dc('0x49'))return db[_0x1f48dc('0x0')]['findAll']({'where':{'id':_0x1a2f6c[_0x1f48dc('0x7')]['ids']},'attributes':['id','name',_0x1f48dc('0x1d'),_0x1f48dc('0x4c'),_0x1f48dc('0x2f')],'raw':!![]})[_0x1f48dc('0x4f')](function(_0x2ae558){const _0x39c0d8=_0x1f48dc;return Promise[_0x39c0d8('0x14')](_[_0x39c0d8('0x54')](_0x2ae558,{'online':0x1}),function(_0x13fc0d){const _0x1a5404=_0x39c0d8;return db['UserVoiceQueueRt'][_0x1a5404('0x37')]({'membername':_0x13fc0d[_0x1a5404('0xc')],'UserId':_0x13fc0d['id'],'queue_name':_0x3776c4[_0x1a5404('0xc')],'VoiceQueueId':_0x3776c4['id'],'interface':_[_0x1a5404('0x4d')](_0x13fc0d['interface'])?util[_0x1a5404('0x5a')](_0x1a5404('0x2a'),_0x13fc0d[_0x1a5404('0xc')]):_0x13fc0d[_0x1a5404('0x2f')],'paused':_0x13fc0d[_0x1a5404('0x4c')]||![],'penalty':0x0});});});});});})[_0x114c5f('0x4f')](function(){return _0x55c389;});})[_0x36ff53('0x4f')](function(){return _0x55c389;});}})[_0x45edcf('0x4f')](function(_0x59de39){const _0x2e473c=_0x45edcf;if(_0x59de39)return _0x59de39['addAgents'](_0x1a2f6c[_0x2e473c('0x7')][_0x2e473c('0x27')],{'through':_[_0x2e473c('0x41')](_0x1a2f6c[_0x2e473c('0x7')],[_0x2e473c('0x27'),'id'])})[_0x2e473c('0x4f')](function(_0x348782){const _0x5465a4=_0x2e473c;for(let _0x493f75=0x0;_0x493f75<_0x1a2f6c[_0x5465a4('0x7')][_0x5465a4('0x27')][_0x5465a4('0x12')];_0x493f75+=0x1){socket[_0x5465a4('0x5e')](_0x5465a4('0x44'),{'UserId':_0x1a2f6c['body'][_0x5465a4('0x27')][_0x493f75],'TeamId':_0x1a2f6c[_0x5465a4('0x1c')]['id']});}return _0x348782;});})[_0x45edcf('0x4f')](respondWithResult(_0x43d46f,null))[_0x45edcf('0x64')](handleError(_0x43d46f,null));},exports[_0x1d2aa5('0x50')]=function(_0x20f514,_0x48d65b){const _0x46cdc1=_0x1d2aa5;return db[_0x46cdc1('0x1b')]['findOne']({'where':{'id':_0x20f514['params']['id']}})[_0x46cdc1('0x4f')](handleEntityNotFound(_0x48d65b,null))[_0x46cdc1('0x4f')](function(_0x18aab4){const _0x4027ac=_0x46cdc1;if(_0x18aab4)return Promise['each']([_0x4027ac('0x2d'),_0x4027ac('0x6'),_0x4027ac('0x34'),_0x4027ac('0x3c'),_0x4027ac('0x5c'),_0x4027ac('0x5b'),_0x4027ac('0x4')],function(_0x55a397){const _0x808e80=_0x4027ac;return _0x18aab4['get'+_['capitalize'](_0x55a397)+_0x808e80('0x61')]({'attributes':['id',_0x808e80('0xc')]})['then'](function(_0x14e365){const _0x1612b9=_0x808e80;return Promise[_0x1612b9('0x14')](_0x14e365,function(_0x2b51e2){const _0x2e4b06=_0x1612b9;return _0x2b51e2[_0x2e4b06('0x50')](_0x20f514[_0x2e4b06('0x25')][_0x2e4b06('0x27')])['then'](function(){const _0x24fa93=_0x2e4b06;if(_0x55a397===_0x24fa93('0x2d'))return db['UserVoiceQueueRt']['destroy']({'where':{'VoiceQueueId':_0x2b51e2['id'],'UserId':_0x20f514[_0x24fa93('0x25')][_0x24fa93('0x27')]}});});});})[_0x808e80('0x4f')](function(){return _0x18aab4;});})[_0x4027ac('0x4f')](function(){return _0x18aab4;});})[_0x46cdc1('0x4f')](function(_0x1fb15e){const _0x5e75f5=_0x46cdc1;if(_0x1fb15e)return _0x1fb15e['removeAgents'](_0x20f514[_0x5e75f5('0x25')][_0x5e75f5('0x27')])[_0x5e75f5('0x4f')](function(){const _0x57a7b6=_0x5e75f5;if(_[_0x57a7b6('0x2b')](_0x20f514[_0x57a7b6('0x25')][_0x57a7b6('0x27')]))for(let _0x5e4b31=0x0;_0x5e4b31<_0x20f514['query']['ids'][_0x57a7b6('0x12')];_0x5e4b31+=0x1){socket[_0x57a7b6('0x5e')](_0x57a7b6('0x53'),{'UserId':Number(_0x20f514[_0x57a7b6('0x25')][_0x57a7b6('0x27')][_0x5e4b31]),'TeamId':Number(_0x20f514[_0x57a7b6('0x1c')]['id'])});}else socket[_0x57a7b6('0x5e')](_0x57a7b6('0x53'),{'UserId':Number(_0x20f514[_0x57a7b6('0x25')][_0x57a7b6('0x27')]),'TeamId':Number(_0x20f514[_0x57a7b6('0x1c')]['id'])});});})[_0x46cdc1('0x4f')](respondWithStatusCode(_0x48d65b,null))[_0x46cdc1('0x64')](handleError(_0x48d65b,null));},exports[_0x1d2aa5('0x28')]=function(_0x2d4e72,_0x3527e1){const _0x440c93=_0x1d2aa5;let _0x150648={};const _0x39ee37={};let _0x4ac33b,_0x3a308e;return db[_0x440c93('0x1b')][_0x440c93('0x13')]({'where':{'id':_0x2d4e72[_0x440c93('0x1c')]['id']}})[_0x440c93('0x4f')](handleEntityNotFound(_0x3527e1,null))[_0x440c93('0x4f')](function(_0x139933){const _0x706d8e=_0x440c93;if(_0x139933)return _0x4ac33b=_0x139933,_0x39ee37['model']=_[_0x706d8e('0xb')](db[_0x706d8e('0x0')][_0x706d8e('0x56')]),_0x39ee37[_0x706d8e('0x25')]=_['keys'](_0x2d4e72[_0x706d8e('0x25')]),_0x39ee37['filters']=_[_0x706d8e('0x5')](_0x39ee37[_0x706d8e('0x3d')],_0x39ee37[_0x706d8e('0x25')]),_0x150648[_0x706d8e('0x3')]=_[_0x706d8e('0x5')](_0x39ee37['model'],qs['fields'](_0x2d4e72[_0x706d8e('0x25')]['fields'])),_0x150648[_0x706d8e('0x3')]=_0x150648[_0x706d8e('0x3')][_0x706d8e('0x12')]?_0x150648[_0x706d8e('0x3')]:_0x39ee37['model'],_0x150648['order']=qs[_0x706d8e('0x40')](_0x2d4e72[_0x706d8e('0x25')]['sort']),_0x150648[_0x706d8e('0x20')]=qs[_0x706d8e('0x23')](_[_0x706d8e('0x1e')](_0x2d4e72[_0x706d8e('0x25')],_0x39ee37[_0x706d8e('0x23')])),_0x2d4e72['query']['filter']&&(_0x150648[_0x706d8e('0x20')]=_[_0x706d8e('0x1a')](_0x150648['where'],{[Op['or']]:_[_0x706d8e('0x8')](_0x150648[_0x706d8e('0x3')],function(_0x342d40){const _0x5aff4c=_0x706d8e,_0x35350e={};return _0x35350e[_0x342d40]={[Op['like']]:'%'+_0x2d4e72['query'][_0x5aff4c('0x54')]+'%'},_0x35350e;})})),_0x150648=_[_0x706d8e('0x1a')]({},_0x150648,_0x2d4e72[_0x706d8e('0x55')]),_0x4ac33b['getAgents'](_0x150648);})[_0x440c93('0x4f')](function(_0x11379b){const _0x48874c=_0x440c93;if(_0x11379b)return _0x3a308e=_0x11379b['length'],typeof _0x2d4e72[_0x48874c('0x25')][_0x48874c('0x15')]===_0x48874c('0x47')&&(_0x150648[_0x48874c('0x36')]=qs['limit'](_0x2d4e72['query']['limit']),_0x150648[_0x48874c('0x17')]=qs[_0x48874c('0x17')](_0x2d4e72['query'][_0x48874c('0x17')])),_0x4ac33b[_0x48874c('0x28')](_0x150648);})[_0x440c93('0x4f')](function(_0x536017){if(_0x536017)return _0x536017?{'count':_0x3a308e,'rows':_0x536017}:null;})['then'](respondWithResult(_0x3527e1,null))['catch'](handleError(_0x3527e1,null));}; \ No newline at end of file diff --git a/server/api/team/team.events.js b/server/api/team/team.events.js index 0830915..e93abe7 100644 --- a/server/api/team/team.events.js +++ b/server/api/team/team.events.js @@ -1 +1 @@ -const a627_0xaf07=['remove','../../mysqldb','addHook','Team','emit','update','save'];(function(_0x6d6fc8,_0xaf0790){const _0xbcdacc=function(_0x22a116){while(--_0x22a116){_0x6d6fc8['push'](_0x6d6fc8['shift']());}};_0xbcdacc(++_0xaf0790);}(a627_0xaf07,0xd5));const a627_0xbcda=function(_0x6d6fc8,_0xaf0790){_0x6d6fc8=_0x6d6fc8-0x0;let _0xbcdacc=a627_0xaf07[_0x6d6fc8];return _0xbcdacc;};const _0x1483d7=a627_0xbcda;'use strict';const EventEmitter=require('events'),Team=require(_0x1483d7('0x5'))['db'][_0x1483d7('0x0')],TeamEvents=new EventEmitter();TeamEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x1483d7('0x3'),'afterUpdate':_0x1483d7('0x2'),'afterDestroy':_0x1483d7('0x4')};function emitEvent(_0x22a116){return function(_0x5ecd02){const _0x3fec4e=a627_0xbcda;TeamEvents[_0x3fec4e('0x1')](_0x22a116+':'+_0x5ecd02['id'],_0x5ecd02),TeamEvents[_0x3fec4e('0x1')](_0x22a116,_0x5ecd02);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Team[_0x1483d7('0x6')](e,emitEvent(event));}}module['exports']=TeamEvents; \ No newline at end of file +const a627_0x516b=['update','emit','../../mysqldb','remove','save','Team','exports'];(function(_0x56b3e8,_0x516bd9){const _0x17142d=function(_0x1b9dd7){while(--_0x1b9dd7){_0x56b3e8['push'](_0x56b3e8['shift']());}};_0x17142d(++_0x516bd9);}(a627_0x516b,0x108));const a627_0x1714=function(_0x56b3e8,_0x516bd9){_0x56b3e8=_0x56b3e8-0x0;let _0x17142d=a627_0x516b[_0x56b3e8];return _0x17142d;};const _0x5c8bf7=a627_0x1714;'use strict';const EventEmitter=require('events'),Team=require(_0x5c8bf7('0x4'))['db'][_0x5c8bf7('0x0')],TeamEvents=new EventEmitter();TeamEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x5c8bf7('0x6'),'afterUpdate':_0x5c8bf7('0x2'),'afterDestroy':_0x5c8bf7('0x5')};function emitEvent(_0x1b9dd7){return function(_0x50f307){const _0x50f43a=a627_0x1714;TeamEvents['emit'](_0x1b9dd7+':'+_0x50f307['id'],_0x50f307),TeamEvents[_0x50f43a('0x3')](_0x1b9dd7,_0x50f307);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Team['addHook'](e,emitEvent(event));}}module[_0x5c8bf7('0x1')]=TeamEvents; \ No newline at end of file diff --git a/server/api/team/team.model.js b/server/api/team/team.model.js index 11072e5..d5beb09 100644 --- a/server/api/team/team.model.js +++ b/server/api/team/team.model.js @@ -1 +1 @@ -const a628_0xce8a=['./team.attributes','define','exports','teams'];(function(_0x12b497,_0xce8a1c){const _0x5a6516=function(_0x3d4246){while(--_0x3d4246){_0x12b497['push'](_0x12b497['shift']());}};_0x5a6516(++_0xce8a1c);}(a628_0xce8a,0x1de));const a628_0x5a65=function(_0x12b497,_0xce8a1c){_0x12b497=_0x12b497-0x0;let _0x5a6516=a628_0xce8a[_0x12b497];return _0x5a6516;};const _0x4f15f9=a628_0x5a65;'use strict';const attributes=require(_0x4f15f9('0x2'));module[_0x4f15f9('0x0')]=function(_0x3d4246){const _0x56dd46=_0x4f15f9,_0x719d61=_0x3d4246[_0x56dd46('0x3')]('Team',attributes,{'tableName':_0x56dd46('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x719d61;}; \ No newline at end of file +const a628_0x5800=['Team','./team.attributes','teams','exports'];(function(_0x138e52,_0x58002d){const _0x567d02=function(_0x3dfa6a){while(--_0x3dfa6a){_0x138e52['push'](_0x138e52['shift']());}};_0x567d02(++_0x58002d);}(a628_0x5800,0x1c1));const a628_0x567d=function(_0x138e52,_0x58002d){_0x138e52=_0x138e52-0x0;let _0x567d02=a628_0x5800[_0x138e52];return _0x567d02;};const _0xbce4d2=a628_0x567d;'use strict';const attributes=require(_0xbce4d2('0x0'));module[_0xbce4d2('0x2')]=function(_0x3dfa6a){const _0x589763=_0xbce4d2,_0x304c47=_0x3dfa6a['define'](_0x589763('0x3'),attributes,{'tableName':_0x589763('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x304c47;}; \ No newline at end of file diff --git a/server/api/team/team.rpc.js b/server/api/team/team.rpc.js index 8279de0..2489994 100644 --- a/server/api/team/team.rpc.js +++ b/server/api/team/team.rpc.js @@ -1 +1 @@ -const a629_0x49f4=['register','./team.socket','../../rediscache'];(function(_0x402e93,_0x49f44c){const _0x3f94ec=function(_0x1d4bf8){while(--_0x1d4bf8){_0x402e93['push'](_0x402e93['shift']());}};_0x3f94ec(++_0x49f44c);}(a629_0x49f4,0xc3));const a629_0x3f94=function(_0x402e93,_0x49f44c){_0x402e93=_0x402e93-0x0;let _0x3f94ec=a629_0x49f4[_0x402e93];return _0x3f94ec;};const _0x5c457f=a629_0x3f94;'use strict';const {getSocket}=require(_0x5c457f('0x2')),socket=getSocket();require(_0x5c457f('0x1'))[_0x5c457f('0x0')](socket); \ No newline at end of file +const a629_0x5c5d=['./team.socket','../../rediscache'];(function(_0x15c92f,_0x5c5d9a){const _0x59d4d4=function(_0x27c84f){while(--_0x27c84f){_0x15c92f['push'](_0x15c92f['shift']());}};_0x59d4d4(++_0x5c5d9a);}(a629_0x5c5d,0x1c9));const a629_0x59d4=function(_0x15c92f,_0x5c5d9a){_0x15c92f=_0x15c92f-0x0;let _0x59d4d4=a629_0x5c5d[_0x15c92f];return _0x59d4d4;};const _0xb4b5a5=a629_0x59d4;'use strict';const {getSocket}=require(_0xb4b5a5('0x0')),socket=getSocket();require(_0xb4b5a5('0x1'))['register'](socket); \ No newline at end of file diff --git a/server/api/team/team.socket.js b/server/api/team/team.socket.js index 26ed363..2ee5b1a 100644 --- a/server/api/team/team.socket.js +++ b/server/api/team/team.socket.js @@ -1 +1 @@ -const a630_0x4f93=['save','emit','register','team:','./team.events','length'];(function(_0x5e8e0c,_0x4f9381){const _0x5710c5=function(_0x12b07d){while(--_0x12b07d){_0x5e8e0c['push'](_0x5e8e0c['shift']());}};_0x5710c5(++_0x4f9381);}(a630_0x4f93,0x12c));const a630_0x5710=function(_0x5e8e0c,_0x4f9381){_0x5e8e0c=_0x5e8e0c-0x0;let _0x5710c5=a630_0x4f93[_0x5e8e0c];return _0x5710c5;};const _0x4105b6=a630_0x5710;'use strict';const TeamEvents=require(_0x4105b6('0x4')),events=[_0x4105b6('0x0'),'remove','update'];function createListener(_0x12b07d,_0x2ea046){return function(_0x38ef94){const _0x3bcd5f=a630_0x5710;_0x2ea046[_0x3bcd5f('0x1')](_0x12b07d,_0x38ef94);};}exports[_0x4105b6('0x2')]=function(_0x3a2634){const _0x55818e=_0x4105b6;for(let _0x58eb60=0x0,_0x3c47df=events[_0x55818e('0x5')];_0x58eb60<_0x3c47df;_0x58eb60++){const _0x31091a=events[_0x58eb60],_0x53d1d1=createListener(_0x55818e('0x3')+_0x31091a,_0x3a2634);TeamEvents['on'](_0x31091a,_0x53d1d1);}}; \ No newline at end of file +const a630_0xa9e4=['./team.events','team:','save','update','register','length','emit'];(function(_0x1b8302,_0xa9e44f){const _0x1be98a=function(_0x4010aa){while(--_0x4010aa){_0x1b8302['push'](_0x1b8302['shift']());}};_0x1be98a(++_0xa9e44f);}(a630_0xa9e4,0x1a6));const a630_0x1be9=function(_0x1b8302,_0xa9e44f){_0x1b8302=_0x1b8302-0x0;let _0x1be98a=a630_0xa9e4[_0x1b8302];return _0x1be98a;};const _0x1e5d21=a630_0x1be9;'use strict';const TeamEvents=require(_0x1e5d21('0x5')),events=[_0x1e5d21('0x0'),'remove',_0x1e5d21('0x1')];function createListener(_0x4010aa,_0x31b685){return function(_0x258991){const _0x2e443e=a630_0x1be9;_0x31b685[_0x2e443e('0x4')](_0x4010aa,_0x258991);};}exports[_0x1e5d21('0x2')]=function(_0x2c948d){const _0x21093d=_0x1e5d21;for(let _0x6900b1=0x0,_0x3ac040=events[_0x21093d('0x3')];_0x6900b1<_0x3ac040;_0x6900b1++){const _0x4d6278=events[_0x6900b1],_0x2ea2bb=createListener(_0x21093d('0x6')+_0x4d6278,_0x2c948d);TeamEvents['on'](_0x4d6278,_0x2ea2bb);}}; \ No newline at end of file diff --git a/server/api/template/index.js b/server/api/template/index.js index 02ef811..ad06f32 100644 --- a/server/api/template/index.js +++ b/server/api/template/index.js @@ -1 +1 @@ -const a631_0x1249=['exports','create','delete','get','Router','/:id','../../components/auth/service','post','isAuthenticated'];(function(_0x3832ee,_0x12491d){const _0x130b87=function(_0x50693c){while(--_0x50693c){_0x3832ee['push'](_0x3832ee['shift']());}};_0x130b87(++_0x12491d);}(a631_0x1249,0x188));const a631_0x130b=function(_0x3832ee,_0x12491d){_0x3832ee=_0x3832ee-0x0;let _0x130b87=a631_0x1249[_0x3832ee];return _0x130b87;};const _0x440df3=a631_0x130b;'use strict';const express=require('express'),router=express[_0x440df3('0x8')](),auth=require(_0x440df3('0x1')),controller=require('./template.controller');router[_0x440df3('0x7')]('/',auth[_0x440df3('0x3')](),controller['index']),router['get'](_0x440df3('0x0'),auth[_0x440df3('0x3')](),controller['show']),router[_0x440df3('0x2')]('/',auth[_0x440df3('0x3')](),controller[_0x440df3('0x5')]),router['put'](_0x440df3('0x0'),auth[_0x440df3('0x3')](),controller['update']),router[_0x440df3('0x6')](_0x440df3('0x0'),auth[_0x440df3('0x3')](),controller['destroy']),module[_0x440df3('0x4')]=router; \ No newline at end of file +const a631_0x4cf8=['post','destroy','create','/:id','Router','index','get','../../components/auth/service','delete','update','show','express','isAuthenticated','./template.controller'];(function(_0x18c09f,_0x4cf89){const _0x3f3cca=function(_0x1926a0){while(--_0x1926a0){_0x18c09f['push'](_0x18c09f['shift']());}};_0x3f3cca(++_0x4cf89);}(a631_0x4cf8,0x19d));const a631_0x3f3c=function(_0x18c09f,_0x4cf89){_0x18c09f=_0x18c09f-0x0;let _0x3f3cca=a631_0x4cf8[_0x18c09f];return _0x3f3cca;};const _0x3f43f6=a631_0x3f3c;'use strict';const express=require(_0x3f43f6('0x4')),router=express[_0x3f43f6('0xb')](),auth=require(_0x3f43f6('0x0')),controller=require(_0x3f43f6('0x6'));router[_0x3f43f6('0xd')]('/',auth[_0x3f43f6('0x5')](),controller[_0x3f43f6('0xc')]),router[_0x3f43f6('0xd')]('/:id',auth[_0x3f43f6('0x5')](),controller[_0x3f43f6('0x3')]),router[_0x3f43f6('0x7')]('/',auth[_0x3f43f6('0x5')](),controller[_0x3f43f6('0x9')]),router['put'](_0x3f43f6('0xa'),auth[_0x3f43f6('0x5')](),controller[_0x3f43f6('0x2')]),router[_0x3f43f6('0x1')]('/:id',auth['isAuthenticated'](),controller[_0x3f43f6('0x8')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/template/template.attributes.js b/server/api/template/template.attributes.js index dd95bb0..98fd7b2 100644 --- a/server/api/template/template.attributes.js +++ b/server/api/template/template.attributes.js @@ -1 +1 @@ -const a632_0xbfa4=['STRING','sequelize','TEXT'];(function(_0x137857,_0xbfa4bb){const _0x5c833f=function(_0xcc0c7c){while(--_0xcc0c7c){_0x137857['push'](_0x137857['shift']());}};_0x5c833f(++_0xbfa4bb);}(a632_0xbfa4,0x1d6));const a632_0x5c83=function(_0x137857,_0xbfa4bb){_0x137857=_0x137857-0x0;let _0x5c833f=a632_0xbfa4[_0x137857];return _0x5c833f;};const _0x15f0d1=a632_0x5c83;'use strict';const Sequelize=require(_0x15f0d1('0x2'));module['exports']={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x15f0d1('0x1')]},'html':{'type':Sequelize[_0x15f0d1('0x0')]}}; \ No newline at end of file +const a632_0x48b7=['STRING','exports','TEXT'];(function(_0x5f32d8,_0x48b76c){const _0x1953ea=function(_0x5b3b8e){while(--_0x5b3b8e){_0x5f32d8['push'](_0x5f32d8['shift']());}};_0x1953ea(++_0x48b76c);}(a632_0x48b7,0x1ce));const a632_0x1953=function(_0x5f32d8,_0x48b76c){_0x5f32d8=_0x5f32d8-0x0;let _0x1953ea=a632_0x48b7[_0x5f32d8];return _0x1953ea;};const _0x237d00=a632_0x1953;'use strict';const Sequelize=require('sequelize');module[_0x237d00('0x1')]={'name':{'type':Sequelize[_0x237d00('0x0')]},'description':{'type':Sequelize[_0x237d00('0x0')]},'html':{'type':Sequelize[_0x237d00('0x2')]}}; \ No newline at end of file diff --git a/server/api/template/template.controller.js b/server/api/template/template.controller.js index 901f13d..2e96a2c 100644 --- a/server/api/template/template.controller.js +++ b/server/api/template/template.controller.js @@ -1 +1 @@ -const a633_0x24db=['set','options','send','fields','user','count','userProfileId','include','model','attributes','UserProfileSection','query','json','like','Template','VIRTUAL','offset','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','get','error','sort','role','filters','status','update','includeAll','lodash','keys','map','end','rawAttributes','Templates','autoAssociation','length','pick','Content-Range','name','key','fieldName','findOne','params','destroy','body','show','then','Unable\x20to\x20retrieve\x20the\x20current\x20user','catch','merge','UserProfileResource','type','intersection','create','sendStatus','limit','findAll','where'];(function(_0x5db20a,_0x24db3e){const _0xb25d60=function(_0x54c4df){while(--_0x54c4df){_0x5db20a['push'](_0x5db20a['shift']());}};_0xb25d60(++_0x24db3e);}(a633_0x24db,0x192));const a633_0xb25d=function(_0x5db20a,_0x24db3e){_0x5db20a=_0x5db20a-0x0;let _0xb25d60=a633_0x24db[_0x5db20a];return _0xb25d60;};const _0x23e792=a633_0xb25d;'use strict';const _=require(_0x23e792('0x10')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x54c4df,_0x20a86b){return _0x20a86b=_0x20a86b||0xc8,function(_0x4d4ff8){const _0x510314=a633_0xb25d;if(_0x4d4ff8)return _0x54c4df[_0x510314('0xd')](_0x20a86b)[_0x510314('0x2')](_0x4d4ff8);};}function respondWithFilteredResult(_0x2e9b8f,_0x46bac2){return function(_0x3ac620){const _0x1a1a37=a633_0xb25d;if(_0x3ac620){const _0xdc5f92=_0x3ac620[_0x1a1a37('0x33')],_0x379b03=_0x46bac2[_0x1a1a37('0x6')];let _0x1797a1=_0x46bac2[_0x1a1a37('0x6')]+_0x46bac2[_0x1a1a37('0x2b')],_0x37f852;return _0x1797a1>=_0xdc5f92?(_0x1797a1=_0xdc5f92,_0x37f852=0xc8):_0x37f852=0xce,_0x2e9b8f[_0x1a1a37('0xd')](_0x37f852),_0x2e9b8f[_0x1a1a37('0x2e')](_0x1a1a37('0x19'),_0x379b03+'-'+_0x1797a1+'/'+_0xdc5f92)['json'](_0x3ac620);}return null;};}function saveUpdates(_0x3fac6b){return function(_0x5a3539){const _0x697dbf=a633_0xb25d;if(_0x5a3539)return _0x5a3539[_0x697dbf('0xe')](_0x3fac6b)[_0x697dbf('0x22')](function(_0x39ffea){return _0x39ffea;});return null;};}function removeEntity(_0x2a6bc0){return function(_0x691174){const _0x4657c9=a633_0xb25d;if(_0x691174)return _0x691174[_0x4657c9('0x1f')]()[_0x4657c9('0x22')](function(){const _0x42079f=_0x4657c9,_0x28f963=_0x691174[_0x42079f('0x8')]({'plain':!![]}),_0xc9fa40=_0x42079f('0x15');return db['UserProfileResource'][_0x42079f('0x1f')]({'where':{'type':_0xc9fa40,'resourceId':_0x28f963['id']}})['then'](function(){return _0x691174;});})['then'](function(){const _0x1cdb6b=_0x4657c9;_0x2a6bc0[_0x1cdb6b('0xd')](0xcc)[_0x1cdb6b('0x13')]();});};}function handleEntityNotFound(_0x461863){return function(_0x5beae1){const _0x562243=a633_0xb25d;return!_0x5beae1&&_0x461863[_0x562243('0x2a')](0x194),_0x5beae1;};}function handleError(_0x3afd51,_0x181c8b){return _0x181c8b=_0x181c8b||0x1f4,function(_0x13823d){const _0x32a99e=a633_0xb25d;logger[_0x32a99e('0x9')](_0x13823d['stack']),_0x13823d['name']&&delete _0x13823d['name'],_0x3afd51[_0x32a99e('0xd')](_0x181c8b)[_0x32a99e('0x30')](_0x13823d);};}exports['index']=function(_0x34ec92,_0x33ffa9){const _0x5bf650=_0x23e792;let _0x3ceb31={};const _0x180a07={},_0x283165={'count':0x0,'rows':[]},_0xab1bd7=_['map'](db[_0x5bf650('0x4')][_0x5bf650('0x14')],function(_0x196655){const _0x2655d6=_0x5bf650;return{'name':_0x196655[_0x2655d6('0x1c')],'type':_0x196655['type'][_0x2655d6('0x1b')]};});_0x180a07['model']=_[_0x5bf650('0x12')](_0xab1bd7,_0x5bf650('0x1a')),_0x180a07['query']=_[_0x5bf650('0x11')](_0x34ec92[_0x5bf650('0x1')]),_0x180a07[_0x5bf650('0xc')]=_[_0x5bf650('0x28')](_0x180a07['model'],_0x180a07[_0x5bf650('0x1')]),_0x3ceb31[_0x5bf650('0x37')]=_['intersection'](_0x180a07[_0x5bf650('0x36')],qs[_0x5bf650('0x31')](_0x34ec92[_0x5bf650('0x1')]['fields'])),_0x3ceb31[_0x5bf650('0x37')]=_0x3ceb31[_0x5bf650('0x37')][_0x5bf650('0x17')]?_0x3ceb31['attributes']:_0x180a07[_0x5bf650('0x36')];typeof _0x34ec92[_0x5bf650('0x1')]['nolimit']==='undefined'&&(_0x3ceb31[_0x5bf650('0x2b')]=qs['limit'](_0x34ec92[_0x5bf650('0x1')][_0x5bf650('0x2b')]),_0x3ceb31[_0x5bf650('0x6')]=qs[_0x5bf650('0x6')](_0x34ec92[_0x5bf650('0x1')][_0x5bf650('0x6')]));_0x3ceb31['order']=qs[_0x5bf650('0xa')](_0x34ec92[_0x5bf650('0x1')][_0x5bf650('0xa')]),_0x3ceb31[_0x5bf650('0x2d')]=qs[_0x5bf650('0xc')](_[_0x5bf650('0x18')](_0x34ec92[_0x5bf650('0x1')],_0x180a07['filters']),_0xab1bd7);_0x34ec92[_0x5bf650('0x1')]['filter']&&(_0x3ceb31[_0x5bf650('0x2d')]=_['merge'](_0x3ceb31[_0x5bf650('0x2d')],{[Op['or']]:_[_0x5bf650('0x12')](_0xab1bd7,function(_0x4f99d0){const _0x280e4c=_0x5bf650;if(_0x4f99d0[_0x280e4c('0x27')]!==_0x280e4c('0x5')){const _0x395e56={};return _0x395e56[_0x4f99d0[_0x280e4c('0x1a')]]={[Op[_0x280e4c('0x3')]]:'%'+_0x34ec92[_0x280e4c('0x1')]['filter']+'%'},_0x395e56;}})}));_0x3ceb31=_[_0x5bf650('0x25')]({},_0x3ceb31,_0x34ec92[_0x5bf650('0x2f')]);const _0x9ee6a9={'where':_0x3ceb31[_0x5bf650('0x2d')]};return db[_0x5bf650('0x4')][_0x5bf650('0x33')](_0x9ee6a9)['then'](function(_0x233b98){const _0x5a0d4a=_0x5bf650;return _0x283165['count']=_0x233b98,_0x34ec92['query'][_0x5a0d4a('0xf')]&&(_0x3ceb31[_0x5a0d4a('0x35')]=[{'all':!![]}]),db['Template'][_0x5a0d4a('0x2c')](_0x3ceb31);})['then'](function(_0x39e530){return _0x283165['rows']=_0x39e530,_0x283165;})[_0x5bf650('0x22')](respondWithFilteredResult(_0x33ffa9,_0x3ceb31))[_0x5bf650('0x24')](handleError(_0x33ffa9,null));},exports[_0x23e792('0x21')]=function(_0x1c6243,_0x30ff5e){const _0x234630=_0x23e792;let _0x584a70={'raw':!![],'where':{'id':_0x1c6243['params']['id']}};const _0x4cac41={};return _0x4cac41[_0x234630('0x36')]=_[_0x234630('0x11')](db['Template'][_0x234630('0x14')]),_0x4cac41[_0x234630('0x1')]=_[_0x234630('0x11')](_0x1c6243['query']),_0x4cac41[_0x234630('0xc')]=_[_0x234630('0x28')](_0x4cac41[_0x234630('0x36')],_0x4cac41['query']),_0x584a70[_0x234630('0x37')]=_[_0x234630('0x28')](_0x4cac41[_0x234630('0x36')],qs[_0x234630('0x31')](_0x1c6243[_0x234630('0x1')]['fields'])),_0x584a70[_0x234630('0x37')]=_0x584a70[_0x234630('0x37')][_0x234630('0x17')]?_0x584a70[_0x234630('0x37')]:_0x4cac41['model'],_0x1c6243[_0x234630('0x1')][_0x234630('0xf')]&&(_0x584a70[_0x234630('0x35')]=[{'all':!![]}]),_0x584a70=_[_0x234630('0x25')]({},_0x584a70,_0x1c6243[_0x234630('0x2f')]),db[_0x234630('0x4')]['findOne'](_0x584a70)[_0x234630('0x22')](handleEntityNotFound(_0x30ff5e,null))[_0x234630('0x22')](respondWithResult(_0x30ff5e,null))[_0x234630('0x24')](handleError(_0x30ff5e,null));},exports[_0x23e792('0x29')]=function(_0x28164a,_0x14a011){const _0x302886=_0x23e792;return db['Template'][_0x302886('0x29')](_0x28164a[_0x302886('0x20')],{})[_0x302886('0x22')](function(_0x4134ea){const _0x3df24b=_0x302886,_0x421ea6=_0x28164a[_0x3df24b('0x32')][_0x3df24b('0x8')]({'plain':!![]});if(!_0x421ea6)throw new Error(_0x3df24b('0x23'));if(_0x421ea6[_0x3df24b('0xb')]===_0x3df24b('0x32')){const _0x18afd7=_0x4134ea[_0x3df24b('0x8')]({'plain':!![]}),_0x249e2d='Templates';return db[_0x3df24b('0x0')][_0x3df24b('0x1d')]({'where':{'name':_0x249e2d,'userProfileId':_0x421ea6[_0x3df24b('0x34')]},'raw':!![]})[_0x3df24b('0x22')](function(_0x21d36b){const _0x1f07ba=_0x3df24b;return _0x21d36b&&_0x21d36b[_0x1f07ba('0x16')]===0x0?db[_0x1f07ba('0x26')][_0x1f07ba('0x29')]({'name':_0x18afd7[_0x1f07ba('0x1a')],'resourceId':_0x18afd7['id'],'type':_0x21d36b[_0x1f07ba('0x1a')],'sectionId':_0x21d36b['id']},{})[_0x1f07ba('0x22')](function(){return _0x4134ea;}):_0x4134ea;})[_0x3df24b('0x24')](function(_0x164d0b){const _0x317337=_0x3df24b;logger[_0x317337('0x9')](_0x317337('0x7'),_0x164d0b);throw _0x164d0b;});}return _0x4134ea;})[_0x302886('0x22')](respondWithResult(_0x14a011,0xc9))[_0x302886('0x24')](handleError(_0x14a011,null));},exports[_0x23e792('0xe')]=function(_0x5f24e8,_0x59027c){const _0x50bd89=_0x23e792;return _0x5f24e8[_0x50bd89('0x20')]['id']&&delete _0x5f24e8['body']['id'],db['Template'][_0x50bd89('0x1d')]({'where':{'id':_0x5f24e8['params']['id']}})[_0x50bd89('0x22')](handleEntityNotFound(_0x59027c,null))[_0x50bd89('0x22')](saveUpdates(_0x5f24e8[_0x50bd89('0x20')],null))['then'](respondWithResult(_0x59027c,null))['catch'](handleError(_0x59027c,null));},exports['destroy']=function(_0x4ce0c2,_0xab1b6c){const _0x29b4d4=_0x23e792;return db[_0x29b4d4('0x4')][_0x29b4d4('0x1d')]({'where':{'id':_0x4ce0c2[_0x29b4d4('0x1e')]['id']}})['then'](handleEntityNotFound(_0xab1b6c,null))[_0x29b4d4('0x22')](removeEntity(_0xab1b6c,null))[_0x29b4d4('0x24')](handleError(_0xab1b6c,null));}; \ No newline at end of file +const a633_0x3f28=['type','get','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','rawAttributes','limit','status','name','UserProfileSection','includeAll','destroy','UserProfileResource','lodash','Content-Range','Template','length','set','json','../../mysqldb','attributes','end','like','user','include','sort','query','stack','then','undefined','model','count','VIRTUAL','pick','keys','create','intersection','body','sendStatus','filters','map','autoAssociation','sequelize','findOne','api','fieldName','userProfileId','params','order','fields','Templates','index','rows','options','catch','show','update','../../components/parsers/qs','error','offset','../../config/logger','merge','filter','send','where'];(function(_0x386f4c,_0x3f28ed){const _0x4c8d4d=function(_0x371ac4){while(--_0x371ac4){_0x386f4c['push'](_0x386f4c['shift']());}};_0x4c8d4d(++_0x3f28ed);}(a633_0x3f28,0xe1));const a633_0x4c8d=function(_0x386f4c,_0x3f28ed){_0x386f4c=_0x386f4c-0x0;let _0x4c8d4d=a633_0x3f28[_0x386f4c];return _0x4c8d4d;};const _0x26d8c2=a633_0x4c8d;'use strict';const _=require(_0x26d8c2('0x26')),qs=require(_0x26d8c2('0x13')),logger=require(_0x26d8c2('0x16'))(_0x26d8c2('0x6')),db=require(_0x26d8c2('0x2c'))['db'],{Op}=require(_0x26d8c2('0x4'));function respondWithResult(_0x371ac4,_0x3cbb18){return _0x3cbb18=_0x3cbb18||0xc8,function(_0x2f4f1b){const _0x7f6ab2=a633_0x4c8d;if(_0x2f4f1b)return _0x371ac4[_0x7f6ab2('0x20')](_0x3cbb18)[_0x7f6ab2('0x2b')](_0x2f4f1b);};}function respondWithFilteredResult(_0x48dc13,_0x45db56){return function(_0x4bd50a){const _0x4fe56a=a633_0x4c8d;if(_0x4bd50a){const _0x13fb30=_0x4bd50a[_0x4fe56a('0x38')],_0x36052d=_0x45db56['offset'];let _0x5940ba=_0x45db56[_0x4fe56a('0x15')]+_0x45db56['limit'],_0x81ef85;return _0x5940ba>=_0x13fb30?(_0x5940ba=_0x13fb30,_0x81ef85=0xc8):_0x81ef85=0xce,_0x48dc13[_0x4fe56a('0x20')](_0x81ef85),_0x48dc13[_0x4fe56a('0x2a')](_0x4fe56a('0x27'),_0x36052d+'-'+_0x5940ba+'/'+_0x13fb30)[_0x4fe56a('0x2b')](_0x4bd50a);}return null;};}function saveUpdates(_0x535daf){return function(_0x1a7029){const _0x125591=a633_0x4c8d;if(_0x1a7029)return _0x1a7029[_0x125591('0x12')](_0x535daf)[_0x125591('0x35')](function(_0x3881be){return _0x3881be;});return null;};}function removeEntity(_0x490ea6){return function(_0x5d958d){const _0x61ad2a=a633_0x4c8d;if(_0x5d958d)return _0x5d958d[_0x61ad2a('0x24')]()[_0x61ad2a('0x35')](function(){const _0x3ec389=_0x61ad2a,_0x811d4=_0x5d958d[_0x3ec389('0x1c')]({'plain':!![]}),_0x2bc212=_0x3ec389('0xc');return db['UserProfileResource'][_0x3ec389('0x24')]({'where':{'type':_0x2bc212,'resourceId':_0x811d4['id']}})['then'](function(){return _0x5d958d;});})[_0x61ad2a('0x35')](function(){const _0x3329fc=_0x61ad2a;_0x490ea6[_0x3329fc('0x20')](0xcc)[_0x3329fc('0x2e')]();});};}function handleEntityNotFound(_0x4111d4){return function(_0x532472){const _0x20a617=a633_0x4c8d;return!_0x532472&&_0x4111d4[_0x20a617('0x0')](0x194),_0x532472;};}function handleError(_0x81ea73,_0xd5c463){return _0xd5c463=_0xd5c463||0x1f4,function(_0x10c3c5){const _0x4b6115=a633_0x4c8d;logger[_0x4b6115('0x14')](_0x10c3c5[_0x4b6115('0x34')]),_0x10c3c5[_0x4b6115('0x21')]&&delete _0x10c3c5[_0x4b6115('0x21')],_0x81ea73[_0x4b6115('0x20')](_0xd5c463)[_0x4b6115('0x19')](_0x10c3c5);};}exports[_0x26d8c2('0xd')]=function(_0x1b4f77,_0x29ed44){const _0x33f1e3=_0x26d8c2;let _0xf97432={};const _0x375a8d={},_0x385e20={'count':0x0,'rows':[]},_0x4a7c42=_[_0x33f1e3('0x2')](db[_0x33f1e3('0x28')][_0x33f1e3('0x1e')],function(_0x2e0a83){const _0x476554=_0x33f1e3;return{'name':_0x2e0a83[_0x476554('0x7')],'type':_0x2e0a83[_0x476554('0x1b')]['key']};});_0x375a8d['model']=_[_0x33f1e3('0x2')](_0x4a7c42,_0x33f1e3('0x21')),_0x375a8d[_0x33f1e3('0x33')]=_[_0x33f1e3('0x3b')](_0x1b4f77['query']),_0x375a8d['filters']=_[_0x33f1e3('0x3d')](_0x375a8d[_0x33f1e3('0x37')],_0x375a8d['query']),_0xf97432[_0x33f1e3('0x2d')]=_['intersection'](_0x375a8d[_0x33f1e3('0x37')],qs[_0x33f1e3('0xb')](_0x1b4f77[_0x33f1e3('0x33')][_0x33f1e3('0xb')])),_0xf97432[_0x33f1e3('0x2d')]=_0xf97432[_0x33f1e3('0x2d')][_0x33f1e3('0x29')]?_0xf97432[_0x33f1e3('0x2d')]:_0x375a8d['model'];typeof _0x1b4f77['query']['nolimit']===_0x33f1e3('0x36')&&(_0xf97432[_0x33f1e3('0x1f')]=qs[_0x33f1e3('0x1f')](_0x1b4f77['query'][_0x33f1e3('0x1f')]),_0xf97432[_0x33f1e3('0x15')]=qs[_0x33f1e3('0x15')](_0x1b4f77[_0x33f1e3('0x33')][_0x33f1e3('0x15')]));_0xf97432[_0x33f1e3('0xa')]=qs['sort'](_0x1b4f77[_0x33f1e3('0x33')][_0x33f1e3('0x32')]),_0xf97432[_0x33f1e3('0x1a')]=qs[_0x33f1e3('0x1')](_[_0x33f1e3('0x3a')](_0x1b4f77['query'],_0x375a8d['filters']),_0x4a7c42);_0x1b4f77[_0x33f1e3('0x33')][_0x33f1e3('0x18')]&&(_0xf97432['where']=_[_0x33f1e3('0x17')](_0xf97432[_0x33f1e3('0x1a')],{[Op['or']]:_[_0x33f1e3('0x2')](_0x4a7c42,function(_0x273520){const _0x2b27bb=_0x33f1e3;if(_0x273520[_0x2b27bb('0x1b')]!==_0x2b27bb('0x39')){const _0x38c50a={};return _0x38c50a[_0x273520[_0x2b27bb('0x21')]]={[Op[_0x2b27bb('0x2f')]]:'%'+_0x1b4f77[_0x2b27bb('0x33')][_0x2b27bb('0x18')]+'%'},_0x38c50a;}})}));_0xf97432=_[_0x33f1e3('0x17')]({},_0xf97432,_0x1b4f77[_0x33f1e3('0xf')]);const _0x25d114={'where':_0xf97432[_0x33f1e3('0x1a')]};return db[_0x33f1e3('0x28')][_0x33f1e3('0x38')](_0x25d114)[_0x33f1e3('0x35')](function(_0x46e962){const _0x5d8e5c=_0x33f1e3;return _0x385e20[_0x5d8e5c('0x38')]=_0x46e962,_0x1b4f77[_0x5d8e5c('0x33')]['includeAll']&&(_0xf97432[_0x5d8e5c('0x31')]=[{'all':!![]}]),db[_0x5d8e5c('0x28')]['findAll'](_0xf97432);})[_0x33f1e3('0x35')](function(_0x36a872){const _0x589990=_0x33f1e3;return _0x385e20[_0x589990('0xe')]=_0x36a872,_0x385e20;})[_0x33f1e3('0x35')](respondWithFilteredResult(_0x29ed44,_0xf97432))[_0x33f1e3('0x10')](handleError(_0x29ed44,null));},exports[_0x26d8c2('0x11')]=function(_0x2dace0,_0x4812fa){const _0x4cf323=_0x26d8c2;let _0x5c2d1={'raw':!![],'where':{'id':_0x2dace0[_0x4cf323('0x9')]['id']}};const _0x332e0a={};return _0x332e0a['model']=_['keys'](db[_0x4cf323('0x28')]['rawAttributes']),_0x332e0a[_0x4cf323('0x33')]=_[_0x4cf323('0x3b')](_0x2dace0[_0x4cf323('0x33')]),_0x332e0a['filters']=_[_0x4cf323('0x3d')](_0x332e0a['model'],_0x332e0a['query']),_0x5c2d1['attributes']=_['intersection'](_0x332e0a[_0x4cf323('0x37')],qs[_0x4cf323('0xb')](_0x2dace0[_0x4cf323('0x33')][_0x4cf323('0xb')])),_0x5c2d1['attributes']=_0x5c2d1[_0x4cf323('0x2d')]['length']?_0x5c2d1[_0x4cf323('0x2d')]:_0x332e0a[_0x4cf323('0x37')],_0x2dace0[_0x4cf323('0x33')][_0x4cf323('0x23')]&&(_0x5c2d1['include']=[{'all':!![]}]),_0x5c2d1=_[_0x4cf323('0x17')]({},_0x5c2d1,_0x2dace0[_0x4cf323('0xf')]),db[_0x4cf323('0x28')]['findOne'](_0x5c2d1)[_0x4cf323('0x35')](handleEntityNotFound(_0x4812fa,null))[_0x4cf323('0x35')](respondWithResult(_0x4812fa,null))['catch'](handleError(_0x4812fa,null));},exports['create']=function(_0xa2ac4f,_0x318941){const _0x258e14=_0x26d8c2;return db[_0x258e14('0x28')][_0x258e14('0x3c')](_0xa2ac4f[_0x258e14('0x3e')],{})[_0x258e14('0x35')](function(_0x599042){const _0x30557=_0x258e14,_0x181b5b=_0xa2ac4f[_0x30557('0x30')][_0x30557('0x1c')]({'plain':!![]});if(!_0x181b5b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x181b5b['role']===_0x30557('0x30')){const _0x1cd546=_0x599042[_0x30557('0x1c')]({'plain':!![]}),_0x1d250a=_0x30557('0xc');return db[_0x30557('0x22')][_0x30557('0x5')]({'where':{'name':_0x1d250a,'userProfileId':_0x181b5b[_0x30557('0x8')]},'raw':!![]})[_0x30557('0x35')](function(_0x1d6b01){const _0x30b9de=_0x30557;return _0x1d6b01&&_0x1d6b01[_0x30b9de('0x3')]===0x0?db[_0x30b9de('0x25')]['create']({'name':_0x1cd546[_0x30b9de('0x21')],'resourceId':_0x1cd546['id'],'type':_0x1d6b01['name'],'sectionId':_0x1d6b01['id']},{})[_0x30b9de('0x35')](function(){return _0x599042;}):_0x599042;})[_0x30557('0x10')](function(_0x536546){const _0x4a0871=_0x30557;logger[_0x4a0871('0x14')](_0x4a0871('0x1d'),_0x536546);throw _0x536546;});}return _0x599042;})['then'](respondWithResult(_0x318941,0xc9))[_0x258e14('0x10')](handleError(_0x318941,null));},exports[_0x26d8c2('0x12')]=function(_0x14067a,_0x307d94){const _0x33fd39=_0x26d8c2;return _0x14067a[_0x33fd39('0x3e')]['id']&&delete _0x14067a['body']['id'],db[_0x33fd39('0x28')][_0x33fd39('0x5')]({'where':{'id':_0x14067a['params']['id']}})['then'](handleEntityNotFound(_0x307d94,null))[_0x33fd39('0x35')](saveUpdates(_0x14067a[_0x33fd39('0x3e')],null))[_0x33fd39('0x35')](respondWithResult(_0x307d94,null))[_0x33fd39('0x10')](handleError(_0x307d94,null));},exports[_0x26d8c2('0x24')]=function(_0x23227e,_0x249889){const _0xffd601=_0x26d8c2;return db[_0xffd601('0x28')][_0xffd601('0x5')]({'where':{'id':_0x23227e[_0xffd601('0x9')]['id']}})[_0xffd601('0x35')](handleEntityNotFound(_0x249889,null))['then'](removeEntity(_0x249889,null))[_0xffd601('0x10')](handleError(_0x249889,null));}; \ No newline at end of file diff --git a/server/api/template/template.model.js b/server/api/template/template.model.js index 0a00ff7..c40024d 100644 --- a/server/api/template/template.model.js +++ b/server/api/template/template.model.js @@ -1 +1 @@ -const a634_0x27df=['tools_templates','define','Template'];(function(_0x5ae7cf,_0x27df5e){const _0x262536=function(_0x5e01e5){while(--_0x5e01e5){_0x5ae7cf['push'](_0x5ae7cf['shift']());}};_0x262536(++_0x27df5e);}(a634_0x27df,0x8f));const a634_0x2625=function(_0x5ae7cf,_0x27df5e){_0x5ae7cf=_0x5ae7cf-0x0;let _0x262536=a634_0x27df[_0x5ae7cf];return _0x262536;};'use strict';const attributes=require('./template.attributes');module['exports']=function(_0x5e01e5){const _0x4eaf49=a634_0x2625,_0x41c502=_0x5e01e5[_0x4eaf49('0x2')](_0x4eaf49('0x0'),attributes,{'tableName':_0x4eaf49('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x41c502;}; \ No newline at end of file +const a634_0x2181=['define','./template.attributes','exports','Template'];(function(_0x18adf5,_0x2181a3){const _0x3202d0=function(_0x5a819a){while(--_0x5a819a){_0x18adf5['push'](_0x18adf5['shift']());}};_0x3202d0(++_0x2181a3);}(a634_0x2181,0x1bf));const a634_0x3202=function(_0x18adf5,_0x2181a3){_0x18adf5=_0x18adf5-0x0;let _0x3202d0=a634_0x2181[_0x18adf5];return _0x3202d0;};const _0x1ad0b7=a634_0x3202;'use strict';const attributes=require(_0x1ad0b7('0x2'));module[_0x1ad0b7('0x3')]=function(_0x5a819a){const _0x498c8f=_0x1ad0b7,_0x3c850c=_0x5a819a[_0x498c8f('0x1')](_0x498c8f('0x0'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3c850c;}; \ No newline at end of file diff --git a/server/api/template/template.rpc.js b/server/api/template/template.rpc.js index 34636da..5efe433 100644 --- a/server/api/template/template.rpc.js +++ b/server/api/template/template.rpc.js @@ -1 +1 @@ -const a635_0x5510=['findAll','raw','rpc','lodash','stringify','../../config/logger','map','include','GetTemplate','model','limit','Template','where','message','debug','then','error','attributes','../../mysqldb','options'];(function(_0x547186,_0x5510bb){const _0x1ffab3=function(_0x5d9422){while(--_0x5d9422){_0x547186['push'](_0x547186['shift']());}};_0x1ffab3(++_0x5510bb);}(a635_0x5510,0xf3));const a635_0x1ffa=function(_0x547186,_0x5510bb){_0x547186=_0x547186-0x0;let _0x1ffab3=a635_0x5510[_0x547186];return _0x1ffab3;};const _0x339fd7=a635_0x1ffa;'use strict';const _=require(_0x339fd7('0x0')),db=require(_0x339fd7('0xf'))['db'],logger=require(_0x339fd7('0x2'))(_0x339fd7('0x13'));exports['GetTemplate']=function(_0x5d9422){const _0x3db78e=this;return new Promise(function(_0x35b197,_0x5cd84b){const _0x2cbbc8=a635_0x1ffa;return db[_0x2cbbc8('0x8')][_0x2cbbc8('0x11')]({'raw':_0x5d9422['options']?_0x5d9422[_0x2cbbc8('0x10')][_0x2cbbc8('0x12')]===undefined?!![]:![]:!![],'where':_0x5d9422[_0x2cbbc8('0x10')]?_0x5d9422['options'][_0x2cbbc8('0x9')]||null:null,'attributes':_0x5d9422[_0x2cbbc8('0x10')]?_0x5d9422[_0x2cbbc8('0x10')][_0x2cbbc8('0xe')]||null:null,'limit':_0x5d9422[_0x2cbbc8('0x10')]?_0x5d9422[_0x2cbbc8('0x10')][_0x2cbbc8('0x7')]||null:null,'include':_0x5d9422[_0x2cbbc8('0x10')]?_0x5d9422['options'][_0x2cbbc8('0x4')]?_[_0x2cbbc8('0x3')](_0x5d9422[_0x2cbbc8('0x10')][_0x2cbbc8('0x4')],function(_0x22f5e2){const _0x4150b2=_0x2cbbc8;return{'model':db[_0x22f5e2[_0x4150b2('0x6')]],'as':_0x22f5e2['as'],'attributes':_0x22f5e2[_0x4150b2('0xe')],'include':_0x22f5e2[_0x4150b2('0x4')]?_[_0x4150b2('0x3')](_0x22f5e2['include'],function(_0x2884da){const _0x3b73c8=_0x4150b2;return{'model':db[_0x2884da[_0x3b73c8('0x6')]],'as':_0x2884da['as'],'attributes':_0x2884da['attributes'],'include':_0x2884da['include']?_[_0x3b73c8('0x3')](_0x2884da[_0x3b73c8('0x4')],function(_0x319730){const _0x1831e8=_0x3b73c8;return{'model':db[_0x319730['model']],'as':_0x319730['as'],'attributes':_0x319730[_0x1831e8('0xe')]};}):[]};}):[]};}):[]:[]})[_0x2cbbc8('0xc')](function(_0x36d519){const _0x409f6d=_0x2cbbc8;logger['info'](_0x409f6d('0x5'),_0x5d9422),logger[_0x409f6d('0xb')](_0x409f6d('0x5'),_0x5d9422,JSON[_0x409f6d('0x1')](_0x36d519)),_0x35b197(_0x36d519);})['catch'](function(_0x318e18){const _0x158d09=_0x2cbbc8;logger[_0x158d09('0xd')](_0x158d09('0x5'),_0x318e18[_0x158d09('0xa')],_0x5d9422),_0x5cd84b(_0x3db78e[_0x158d09('0xd')](0x1f4,_0x318e18[_0x158d09('0xa')]));});});}; \ No newline at end of file +const a635_0x3ad0=['message','map','include','lodash','GetTemplate','Template','error','options','rpc','then','../../mysqldb','../../config/logger','info','findAll','where','limit','raw','stringify','model','attributes'];(function(_0x3e2f75,_0x3ad05c){const _0x3f7e74=function(_0xf2e4fa){while(--_0xf2e4fa){_0x3e2f75['push'](_0x3e2f75['shift']());}};_0x3f7e74(++_0x3ad05c);}(a635_0x3ad0,0x139));const a635_0x3f7e=function(_0x3e2f75,_0x3ad05c){_0x3e2f75=_0x3e2f75-0x0;let _0x3f7e74=a635_0x3ad0[_0x3e2f75];return _0x3f7e74;};const _0x5ea604=a635_0x3f7e;'use strict';const _=require(_0x5ea604('0xa')),db=require(_0x5ea604('0x11'))['db'],logger=require(_0x5ea604('0x12'))(_0x5ea604('0xf'));exports[_0x5ea604('0xb')]=function(_0xf2e4fa){const _0x54e9fe=this;return new Promise(function(_0x1d00eb,_0x1fbbe5){const _0x49b416=a635_0x3f7e;return db[_0x49b416('0xc')][_0x49b416('0x0')]({'raw':_0xf2e4fa['options']?_0xf2e4fa['options'][_0x49b416('0x3')]===undefined?!![]:![]:!![],'where':_0xf2e4fa[_0x49b416('0xe')]?_0xf2e4fa['options'][_0x49b416('0x1')]||null:null,'attributes':_0xf2e4fa[_0x49b416('0xe')]?_0xf2e4fa[_0x49b416('0xe')][_0x49b416('0x6')]||null:null,'limit':_0xf2e4fa[_0x49b416('0xe')]?_0xf2e4fa[_0x49b416('0xe')][_0x49b416('0x2')]||null:null,'include':_0xf2e4fa[_0x49b416('0xe')]?_0xf2e4fa['options'][_0x49b416('0x9')]?_[_0x49b416('0x8')](_0xf2e4fa[_0x49b416('0xe')]['include'],function(_0x28d4ca){const _0x30193b=_0x49b416;return{'model':db[_0x28d4ca[_0x30193b('0x5')]],'as':_0x28d4ca['as'],'attributes':_0x28d4ca['attributes'],'include':_0x28d4ca[_0x30193b('0x9')]?_[_0x30193b('0x8')](_0x28d4ca[_0x30193b('0x9')],function(_0x552033){const _0x5a7a8d=_0x30193b;return{'model':db[_0x552033[_0x5a7a8d('0x5')]],'as':_0x552033['as'],'attributes':_0x552033[_0x5a7a8d('0x6')],'include':_0x552033[_0x5a7a8d('0x9')]?_[_0x5a7a8d('0x8')](_0x552033[_0x5a7a8d('0x9')],function(_0x7efebd){const _0x541fe0=_0x5a7a8d;return{'model':db[_0x7efebd[_0x541fe0('0x5')]],'as':_0x7efebd['as'],'attributes':_0x7efebd['attributes']};}):[]};}):[]};}):[]:[]})[_0x49b416('0x10')](function(_0x2c3331){const _0x3dff48=_0x49b416;logger[_0x3dff48('0x13')](_0x3dff48('0xb'),_0xf2e4fa),logger['debug']('GetTemplate',_0xf2e4fa,JSON[_0x3dff48('0x4')](_0x2c3331)),_0x1d00eb(_0x2c3331);})['catch'](function(_0x3ff7ef){const _0x1e6e76=_0x49b416;logger[_0x1e6e76('0xd')](_0x1e6e76('0xb'),_0x3ff7ef[_0x1e6e76('0x7')],_0xf2e4fa),_0x1fbbe5(_0x54e9fe[_0x1e6e76('0xd')](0x1f4,_0x3ff7ef[_0x1e6e76('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/trigger/index.js b/server/api/trigger/index.js index 4616b77..1ec191a 100644 --- a/server/api/trigger/index.js +++ b/server/api/trigger/index.js @@ -1 +1 @@ -const a636_0x4239=['addAllCondition','get','delete','getAnyConditions','express','create','/:id/actions','/:id','getActions','Router','post','getAllConditions','show','/:id/all_conditions','../../components/auth/service','put','/:id/any_conditions','isAuthenticated','addAnyCondition','index'];(function(_0xe1541,_0x42399b){const _0x2d6f4a=function(_0x7f69c7){while(--_0x7f69c7){_0xe1541['push'](_0xe1541['shift']());}};_0x2d6f4a(++_0x42399b);}(a636_0x4239,0x71));const a636_0x2d6f=function(_0xe1541,_0x42399b){_0xe1541=_0xe1541-0x0;let _0x2d6f4a=a636_0x4239[_0xe1541];return _0x2d6f4a;};const _0x39fe35=a636_0x2d6f;'use strict';const express=require(_0x39fe35('0xb')),router=express[_0x39fe35('0x10')](),auth=require(_0x39fe35('0x1')),controller=require('./trigger.controller');router[_0x39fe35('0x8')]('/',auth['isAuthenticated'](),controller[_0x39fe35('0x6')]),router[_0x39fe35('0x8')](_0x39fe35('0xe'),auth['isAuthenticated'](),controller[_0x39fe35('0x13')]),router[_0x39fe35('0x8')](_0x39fe35('0x0'),auth[_0x39fe35('0x4')](),controller[_0x39fe35('0x12')]),router['get'](_0x39fe35('0x3'),auth[_0x39fe35('0x4')](),controller[_0x39fe35('0xa')]),router[_0x39fe35('0x8')](_0x39fe35('0xd'),auth[_0x39fe35('0x4')](),controller[_0x39fe35('0xf')]),router[_0x39fe35('0x11')]('/',auth[_0x39fe35('0x4')](),controller[_0x39fe35('0xc')]),router[_0x39fe35('0x11')]('/:id/all_conditions',auth['isAuthenticated'](),controller[_0x39fe35('0x7')]),router[_0x39fe35('0x11')](_0x39fe35('0x3'),auth[_0x39fe35('0x4')](),controller[_0x39fe35('0x5')]),router[_0x39fe35('0x11')](_0x39fe35('0xd'),auth['isAuthenticated'](),controller['addAction']),router[_0x39fe35('0x2')](_0x39fe35('0xe'),auth[_0x39fe35('0x4')](),controller['update']),router[_0x39fe35('0x9')](_0x39fe35('0xe'),auth[_0x39fe35('0x4')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a636_0x4350=['delete','/:id/any_conditions','index','getAllConditions','express','show','put','getActions','addAllCondition','post','/:id/all_conditions','addAnyCondition','./trigger.controller','get','/:id/actions','Router','/:id','getAnyConditions','update','isAuthenticated'];(function(_0x216638,_0x435027){const _0x275a49=function(_0x2a601b){while(--_0x2a601b){_0x216638['push'](_0x216638['shift']());}};_0x275a49(++_0x435027);}(a636_0x4350,0x12e));const a636_0x275a=function(_0x216638,_0x435027){_0x216638=_0x216638-0x0;let _0x275a49=a636_0x4350[_0x216638];return _0x275a49;};const _0x383a08=a636_0x275a;'use strict';const express=require(_0x383a08('0x2')),router=express[_0x383a08('0xd')](),auth=require('../../components/auth/service'),controller=require(_0x383a08('0xa'));router[_0x383a08('0xb')]('/',auth[_0x383a08('0x11')](),controller[_0x383a08('0x0')]),router['get'](_0x383a08('0xe'),auth['isAuthenticated'](),controller[_0x383a08('0x3')]),router[_0x383a08('0xb')](_0x383a08('0x8'),auth[_0x383a08('0x11')](),controller[_0x383a08('0x1')]),router[_0x383a08('0xb')](_0x383a08('0x13'),auth[_0x383a08('0x11')](),controller[_0x383a08('0xf')]),router[_0x383a08('0xb')]('/:id/actions',auth[_0x383a08('0x11')](),controller[_0x383a08('0x5')]),router['post']('/',auth[_0x383a08('0x11')](),controller['create']),router[_0x383a08('0x7')]('/:id/all_conditions',auth[_0x383a08('0x11')](),controller[_0x383a08('0x6')]),router[_0x383a08('0x7')]('/:id/any_conditions',auth[_0x383a08('0x11')](),controller[_0x383a08('0x9')]),router[_0x383a08('0x7')](_0x383a08('0xc'),auth[_0x383a08('0x11')](),controller['addAction']),router[_0x383a08('0x4')]('/:id',auth[_0x383a08('0x11')](),controller[_0x383a08('0x10')]),router[_0x383a08('0x12')](_0x383a08('0xe'),auth[_0x383a08('0x11')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/trigger/trigger.attributes.js b/server/api/trigger/trigger.attributes.js index acbd1e7..36dad33 100644 --- a/server/api/trigger/trigger.attributes.js +++ b/server/api/trigger/trigger.attributes.js @@ -1 +1 @@ -const a637_0x150a=['STRING','exports'];(function(_0x3373ce,_0x150aa3){const _0x4d46ba=function(_0x53f774){while(--_0x53f774){_0x3373ce['push'](_0x3373ce['shift']());}};_0x4d46ba(++_0x150aa3);}(a637_0x150a,0x8f));const a637_0x4d46=function(_0x3373ce,_0x150aa3){_0x3373ce=_0x3373ce-0x0;let _0x4d46ba=a637_0x150a[_0x3373ce];return _0x4d46ba;};const _0xc06475=a637_0x4d46;'use strict';const Sequelize=require('sequelize');module[_0xc06475('0x0')]={'name':{'type':Sequelize[_0xc06475('0x1')]},'channel':{'type':Sequelize[_0xc06475('0x1')]},'description':{'type':Sequelize[_0xc06475('0x1')]},'status':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +const a637_0x2c09=['STRING','BOOLEAN','sequelize'];(function(_0x2470f7,_0x2c09dc){const _0xb95349=function(_0xed494f){while(--_0xed494f){_0x2470f7['push'](_0x2470f7['shift']());}};_0xb95349(++_0x2c09dc);}(a637_0x2c09,0x176));const a637_0xb953=function(_0x2470f7,_0x2c09dc){_0x2470f7=_0x2470f7-0x0;let _0xb95349=a637_0x2c09[_0x2470f7];return _0xb95349;};const _0x31f33d=a637_0xb953;'use strict';const Sequelize=require(_0x31f33d('0x0'));module['exports']={'name':{'type':Sequelize[_0x31f33d('0x1')]},'channel':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x31f33d('0x1')]},'status':{'type':Sequelize[_0x31f33d('0x2')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/trigger/trigger.controller.js b/server/api/trigger/trigger.controller.js index 5754b6b..3b89d79 100644 --- a/server/api/trigger/trigger.controller.js +++ b/server/api/trigger/trigger.controller.js @@ -1 +1 @@ -const a638_0x4f34=['TriggerAllId','intersection','Condition','update','status','query','body','TriggerAnyId','send','where','fieldName','destroy','Trigger','includeAll','length','index','map','getAnyConditions','keys','show','findOne','fields','undefined','get','getAllConditions','UserProfileSection','UserProfileResource','merge','create','error','model','sort','addAction','count','set','limit','like','TriggerId','stack','offset','json','rawAttributes','pick','Content-Range','params','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','options','api','then','name','../../mysqldb','autoAssociation','include','attributes','Triggers','nolimit','role','catch','addAnyCondition','type','key','filter','getActions','order','filters','findAll','Action','user','VIRTUAL','Unable\x20to\x20retrieve\x20the\x20current\x20user'];(function(_0x276dbf,_0x4f3475){const _0x2ce8c7=function(_0x38cefa){while(--_0x38cefa){_0x276dbf['push'](_0x276dbf['shift']());}};_0x2ce8c7(++_0x4f3475);}(a638_0x4f34,0x1b0));const a638_0x2ce8=function(_0x276dbf,_0x4f3475){_0x276dbf=_0x276dbf-0x0;let _0x2ce8c7=a638_0x4f34[_0x276dbf];return _0x2ce8c7;};const _0x48044a=a638_0x2ce8;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x48044a('0x23')),db=require(_0x48044a('0x26'))['db'],{Op}=require('sequelize');function respondWithResult(_0x38cefa,_0x589254){return _0x589254=_0x589254||0xc8,function(_0x40cbbb){const _0x16e18b=a638_0x2ce8;if(_0x40cbbb)return _0x38cefa[_0x16e18b('0x3e')](_0x589254)[_0x16e18b('0x1c')](_0x40cbbb);};}function respondWithFilteredResult(_0x67e516,_0x488011){return function(_0x1d3cc5){const _0x302347=a638_0x2ce8;if(_0x1d3cc5){const _0x338197=_0x1d3cc5['count'],_0x1457df=_0x488011['offset'];let _0x556bc7=_0x488011['offset']+_0x488011[_0x302347('0x17')],_0xe4ae37;return _0x556bc7>=_0x338197?(_0x556bc7=_0x338197,_0xe4ae37=0xc8):_0xe4ae37=0xce,_0x67e516[_0x302347('0x3e')](_0xe4ae37),_0x67e516[_0x302347('0x16')](_0x302347('0x1f'),_0x1457df+'-'+_0x556bc7+'/'+_0x338197)['json'](_0x1d3cc5);}return null;};}function saveUpdates(_0xaf628f){return function(_0x3d6832){const _0x3dca65=a638_0x2ce8;if(_0x3d6832)return _0x3d6832[_0x3dca65('0x3d')](_0xaf628f)['then'](function(_0x1455ed){return _0x1455ed;});return null;};}function removeEntity(_0x491fe7){return function(_0x1475c8){const _0x384cce=a638_0x2ce8;if(_0x1475c8)return _0x1475c8[_0x384cce('0x45')]()[_0x384cce('0x24')](function(){const _0x213d05=_0x384cce,_0x5aed77=_0x1475c8[_0x213d05('0xb')]({'plain':!![]}),_0x8e384b=_0x213d05('0x2a');return db['UserProfileResource'][_0x213d05('0x45')]({'where':{'type':_0x8e384b,'resourceId':_0x5aed77['id']}})['then'](function(){return _0x1475c8;});})[_0x384cce('0x24')](function(){_0x491fe7['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x18a8b1){return function(_0xe79c70){return!_0xe79c70&&_0x18a8b1['sendStatus'](0x194),_0xe79c70;};}function handleError(_0x17ec17,_0x3127ed){return _0x3127ed=_0x3127ed||0x1f4,function(_0x5010de){const _0x3f3d23=a638_0x2ce8;logger[_0x3f3d23('0x11')](_0x5010de[_0x3f3d23('0x1a')]),_0x5010de[_0x3f3d23('0x25')]&&delete _0x5010de['name'],_0x17ec17['status'](_0x3127ed)[_0x3f3d23('0x42')](_0x5010de);};}exports[_0x48044a('0x3')]=function(_0xd89feb,_0x17acef){const _0x141623=_0x48044a;let _0x5d3017={};const _0x1a8855={},_0x49e397={'count':0x0,'rows':[]},_0x549e2e=_[_0x141623('0x4')](db['Trigger'][_0x141623('0x1d')],function(_0x5347ae){const _0xfddbc8=_0x141623;return{'name':_0x5347ae[_0xfddbc8('0x44')],'type':_0x5347ae[_0xfddbc8('0x2f')][_0xfddbc8('0x30')]};});_0x1a8855[_0x141623('0x12')]=_[_0x141623('0x4')](_0x549e2e,_0x141623('0x25')),_0x1a8855[_0x141623('0x3f')]=_[_0x141623('0x6')](_0xd89feb[_0x141623('0x3f')]),_0x1a8855[_0x141623('0x34')]=_[_0x141623('0x3b')](_0x1a8855[_0x141623('0x12')],_0x1a8855[_0x141623('0x3f')]),_0x5d3017[_0x141623('0x29')]=_[_0x141623('0x3b')](_0x1a8855[_0x141623('0x12')],qs[_0x141623('0x9')](_0xd89feb['query'][_0x141623('0x9')])),_0x5d3017['attributes']=_0x5d3017['attributes'][_0x141623('0x2')]?_0x5d3017[_0x141623('0x29')]:_0x1a8855[_0x141623('0x12')];typeof _0xd89feb[_0x141623('0x3f')]['nolimit']==='undefined'&&(_0x5d3017[_0x141623('0x17')]=qs[_0x141623('0x17')](_0xd89feb['query'][_0x141623('0x17')]),_0x5d3017[_0x141623('0x1b')]=qs[_0x141623('0x1b')](_0xd89feb[_0x141623('0x3f')][_0x141623('0x1b')]));_0x5d3017['order']=qs[_0x141623('0x13')](_0xd89feb[_0x141623('0x3f')]['sort']),_0x5d3017['where']=qs['filters'](_[_0x141623('0x1e')](_0xd89feb[_0x141623('0x3f')],_0x1a8855[_0x141623('0x34')]),_0x549e2e);_0xd89feb[_0x141623('0x3f')][_0x141623('0x31')]&&(_0x5d3017[_0x141623('0x43')]=_[_0x141623('0xf')](_0x5d3017[_0x141623('0x43')],{[Op['or']]:_[_0x141623('0x4')](_0x549e2e,function(_0x322d6d){const _0x1d4331=_0x141623;if(_0x322d6d[_0x1d4331('0x2f')]!==_0x1d4331('0x38')){const _0x5e5da5={};return _0x5e5da5[_0x322d6d[_0x1d4331('0x25')]]={[Op[_0x1d4331('0x18')]]:'%'+_0xd89feb[_0x1d4331('0x3f')][_0x1d4331('0x31')]+'%'},_0x5e5da5;}})}));_0x5d3017=_[_0x141623('0xf')]({},_0x5d3017,_0xd89feb[_0x141623('0x22')]);const _0x553a1a={'where':_0x5d3017[_0x141623('0x43')]};return db[_0x141623('0x0')][_0x141623('0x15')](_0x553a1a)[_0x141623('0x24')](function(_0x4bbfdf){const _0x2e145c=_0x141623;return _0x49e397[_0x2e145c('0x15')]=_0x4bbfdf,_0xd89feb['query'][_0x2e145c('0x1')]&&(_0x5d3017[_0x2e145c('0x28')]=[{'all':!![]}]),db[_0x2e145c('0x0')][_0x2e145c('0x35')](_0x5d3017);})[_0x141623('0x24')](function(_0x56022f){return _0x49e397['rows']=_0x56022f,_0x49e397;})[_0x141623('0x24')](respondWithFilteredResult(_0x17acef,_0x5d3017))[_0x141623('0x2d')](handleError(_0x17acef,null));},exports[_0x48044a('0x7')]=function(_0x2c62c3,_0x7a26d9){const _0x3d77f3=_0x48044a;let _0x3114f3={'raw':![],'where':{'id':_0x2c62c3[_0x3d77f3('0x20')]['id']}};const _0x15c668={};return _0x15c668['model']=_[_0x3d77f3('0x6')](db['Trigger'][_0x3d77f3('0x1d')]),_0x15c668[_0x3d77f3('0x3f')]=_['keys'](_0x2c62c3[_0x3d77f3('0x3f')]),_0x15c668[_0x3d77f3('0x34')]=_[_0x3d77f3('0x3b')](_0x15c668[_0x3d77f3('0x12')],_0x15c668[_0x3d77f3('0x3f')]),_0x3114f3['attributes']=_['intersection'](_0x15c668['model'],qs[_0x3d77f3('0x9')](_0x2c62c3[_0x3d77f3('0x3f')][_0x3d77f3('0x9')])),_0x3114f3[_0x3d77f3('0x29')]=_0x3114f3[_0x3d77f3('0x29')]['length']?_0x3114f3['attributes']:_0x15c668[_0x3d77f3('0x12')],_0x2c62c3['query'][_0x3d77f3('0x1')]&&(_0x3114f3['include']=[{'all':!![]}]),_0x3114f3=_[_0x3d77f3('0xf')]({},_0x3114f3,_0x2c62c3[_0x3d77f3('0x22')]),db[_0x3d77f3('0x0')][_0x3d77f3('0x8')](_0x3114f3)['then'](handleEntityNotFound(_0x7a26d9,null))[_0x3d77f3('0x24')](respondWithResult(_0x7a26d9,null))[_0x3d77f3('0x2d')](handleError(_0x7a26d9,null));},exports[_0x48044a('0x10')]=function(_0x1261a5,_0x4c840a){const _0x516280=_0x48044a;return db['Trigger'][_0x516280('0x10')](_0x1261a5[_0x516280('0x40')],{})[_0x516280('0x24')](function(_0x57898a){const _0x194dda=_0x516280,_0x4ea7a5=_0x1261a5[_0x194dda('0x37')]['get']({'plain':!![]});if(!_0x4ea7a5)throw new Error(_0x194dda('0x39'));if(_0x4ea7a5[_0x194dda('0x2c')]===_0x194dda('0x37')){const _0x53425d=_0x57898a[_0x194dda('0xb')]({'plain':!![]}),_0x192537=_0x194dda('0x2a');return db[_0x194dda('0xd')]['findOne']({'where':{'name':_0x192537,'userProfileId':_0x4ea7a5['userProfileId']},'raw':!![]})[_0x194dda('0x24')](function(_0x4506d8){const _0x321f5a=_0x194dda;return _0x4506d8&&_0x4506d8[_0x321f5a('0x27')]===0x0?db[_0x321f5a('0xe')]['create']({'name':_0x53425d[_0x321f5a('0x25')],'resourceId':_0x53425d['id'],'type':_0x4506d8[_0x321f5a('0x25')],'sectionId':_0x4506d8['id']},{})[_0x321f5a('0x24')](function(){return _0x57898a;}):_0x57898a;})[_0x194dda('0x2d')](function(_0x1b2f17){const _0x634f75=_0x194dda;logger['error'](_0x634f75('0x21'),_0x1b2f17);throw _0x1b2f17;});}return _0x57898a;})[_0x516280('0x24')](respondWithResult(_0x4c840a,0xc9))[_0x516280('0x2d')](handleError(_0x4c840a,null));},exports['update']=function(_0x27ed2f,_0x110da1){const _0x245e9e=_0x48044a;return _0x27ed2f[_0x245e9e('0x40')]['id']&&delete _0x27ed2f[_0x245e9e('0x40')]['id'],db['Trigger'][_0x245e9e('0x8')]({'where':{'id':_0x27ed2f[_0x245e9e('0x20')]['id']}})['then'](handleEntityNotFound(_0x110da1,null))[_0x245e9e('0x24')](saveUpdates(_0x27ed2f[_0x245e9e('0x40')],null))[_0x245e9e('0x24')](respondWithResult(_0x110da1,null))[_0x245e9e('0x2d')](handleError(_0x110da1,null));},exports[_0x48044a('0x45')]=function(_0x140af8,_0xc349c4){const _0x1c521a=_0x48044a;return db[_0x1c521a('0x0')][_0x1c521a('0x8')]({'where':{'id':_0x140af8[_0x1c521a('0x20')]['id']}})[_0x1c521a('0x24')](handleEntityNotFound(_0xc349c4,null))[_0x1c521a('0x24')](removeEntity(_0xc349c4,null))[_0x1c521a('0x2d')](handleError(_0xc349c4,null));},exports['addAllCondition']=function(_0x3b0c55,_0x158207){const _0x13f9ab=_0x48044a;return _0x3b0c55[_0x13f9ab('0x40')]['id']&&delete _0x3b0c55['body']['id'],db['Trigger'][_0x13f9ab('0x8')]({'where':{'id':_0x3b0c55[_0x13f9ab('0x20')]['id']}})['then'](handleEntityNotFound(_0x158207,null))['then'](function(_0x54c7a4){const _0x3038f9=_0x13f9ab;if(_0x54c7a4)return _0x3b0c55[_0x3038f9('0x40')][_0x3038f9('0x3a')]=_0x54c7a4['id'],db['Condition'][_0x3038f9('0x10')](_0x3b0c55['body']);})[_0x13f9ab('0x24')](respondWithResult(_0x158207,null))[_0x13f9ab('0x2d')](handleError(_0x158207,null));},exports[_0x48044a('0x2e')]=function(_0x30af33,_0x277642){const _0x4cc82a=_0x48044a;return _0x30af33[_0x4cc82a('0x40')]['id']&&delete _0x30af33['body']['id'],db[_0x4cc82a('0x0')][_0x4cc82a('0x8')]({'where':{'id':_0x30af33[_0x4cc82a('0x20')]['id']}})[_0x4cc82a('0x24')](handleEntityNotFound(_0x277642,null))[_0x4cc82a('0x24')](function(_0xf31b5b){const _0x36132c=_0x4cc82a;if(_0xf31b5b)return _0x30af33['body'][_0x36132c('0x41')]=_0xf31b5b['id'],db[_0x36132c('0x3c')][_0x36132c('0x10')](_0x30af33[_0x36132c('0x40')]);})[_0x4cc82a('0x24')](respondWithResult(_0x277642,null))[_0x4cc82a('0x2d')](handleError(_0x277642,null));},exports['getAllConditions']=function(_0x412bd4,_0x31b0d0){const _0x42ff45=_0x48044a;let _0x5dad85={};const _0x406b2f={};let _0x42ca3e,_0x563620;return db[_0x42ff45('0x0')][_0x42ff45('0x8')]({'where':{'id':_0x412bd4[_0x42ff45('0x20')]['id']}})[_0x42ff45('0x24')](handleEntityNotFound(_0x31b0d0,null))['then'](function(_0xe1b3bb){const _0x2b54d4=_0x42ff45;if(_0xe1b3bb)return _0x42ca3e=_0xe1b3bb,_0x406b2f['model']=_[_0x2b54d4('0x6')](db[_0x2b54d4('0x3c')]['rawAttributes']),_0x406b2f[_0x2b54d4('0x3f')]=_[_0x2b54d4('0x6')](_0x412bd4['query']),_0x406b2f['filters']=_[_0x2b54d4('0x3b')](_0x406b2f['model'],_0x406b2f[_0x2b54d4('0x3f')]),_0x5dad85['attributes']=_[_0x2b54d4('0x3b')](_0x406b2f[_0x2b54d4('0x12')],qs[_0x2b54d4('0x9')](_0x412bd4[_0x2b54d4('0x3f')][_0x2b54d4('0x9')])),_0x5dad85[_0x2b54d4('0x29')]=_0x5dad85[_0x2b54d4('0x29')][_0x2b54d4('0x2')]?_0x5dad85[_0x2b54d4('0x29')]:_0x406b2f[_0x2b54d4('0x12')],_0x5dad85['order']=qs[_0x2b54d4('0x13')](_0x412bd4[_0x2b54d4('0x3f')]['sort']),_0x5dad85['where']=qs[_0x2b54d4('0x34')](_[_0x2b54d4('0x1e')](_0x412bd4[_0x2b54d4('0x3f')],_0x406b2f[_0x2b54d4('0x34')])),_0x412bd4[_0x2b54d4('0x3f')][_0x2b54d4('0x31')]&&(_0x5dad85[_0x2b54d4('0x43')]=_[_0x2b54d4('0xf')](_0x5dad85[_0x2b54d4('0x43')],{[Op['or']]:_[_0x2b54d4('0x4')](_0x5dad85['attributes'],function(_0x2ad0b0){const _0x558841={};return _0x558841[_0x2ad0b0]={[Op['like']]:'%'+_0x412bd4['query']['filter']+'%'},_0x558841;})})),_0x5dad85=_[_0x2b54d4('0xf')]({},_0x5dad85,_0x412bd4[_0x2b54d4('0x22')]),_0x42ca3e[_0x2b54d4('0xc')](_0x5dad85);})[_0x42ff45('0x24')](function(_0x39d10c){const _0xf7a23b=_0x42ff45;if(_0x39d10c)return _0x563620=_0x39d10c[_0xf7a23b('0x2')],typeof _0x412bd4['query']['nolimit']==='undefined'&&(_0x5dad85[_0xf7a23b('0x17')]=qs[_0xf7a23b('0x17')](_0x412bd4[_0xf7a23b('0x3f')][_0xf7a23b('0x17')]),_0x5dad85[_0xf7a23b('0x1b')]=qs[_0xf7a23b('0x1b')](_0x412bd4[_0xf7a23b('0x3f')]['offset'])),_0x42ca3e[_0xf7a23b('0xc')](_0x5dad85);})[_0x42ff45('0x24')](function(_0x51ece4){if(_0x51ece4)return _0x51ece4?{'count':_0x563620,'rows':_0x51ece4}:null;})[_0x42ff45('0x24')](respondWithResult(_0x31b0d0,null))['catch'](handleError(_0x31b0d0,null));},exports[_0x48044a('0x5')]=function(_0x20bbc5,_0xdbd792){const _0x666f55=_0x48044a;let _0x4ff418={};const _0x4b7a3a={};let _0x2874f7,_0x45f935;return db[_0x666f55('0x0')][_0x666f55('0x8')]({'where':{'id':_0x20bbc5[_0x666f55('0x20')]['id']}})['then'](handleEntityNotFound(_0xdbd792,null))['then'](function(_0x3db9da){const _0x3e78ff=_0x666f55;if(_0x3db9da)return _0x2874f7=_0x3db9da,_0x4b7a3a[_0x3e78ff('0x12')]=_[_0x3e78ff('0x6')](db['Condition']['rawAttributes']),_0x4b7a3a['query']=_[_0x3e78ff('0x6')](_0x20bbc5[_0x3e78ff('0x3f')]),_0x4b7a3a[_0x3e78ff('0x34')]=_[_0x3e78ff('0x3b')](_0x4b7a3a['model'],_0x4b7a3a[_0x3e78ff('0x3f')]),_0x4ff418['attributes']=_[_0x3e78ff('0x3b')](_0x4b7a3a[_0x3e78ff('0x12')],qs[_0x3e78ff('0x9')](_0x20bbc5[_0x3e78ff('0x3f')]['fields'])),_0x4ff418['attributes']=_0x4ff418['attributes']['length']?_0x4ff418[_0x3e78ff('0x29')]:_0x4b7a3a[_0x3e78ff('0x12')],_0x4ff418['order']=qs[_0x3e78ff('0x13')](_0x20bbc5[_0x3e78ff('0x3f')]['sort']),_0x4ff418[_0x3e78ff('0x43')]=qs['filters'](_[_0x3e78ff('0x1e')](_0x20bbc5[_0x3e78ff('0x3f')],_0x4b7a3a['filters'])),_0x20bbc5[_0x3e78ff('0x3f')][_0x3e78ff('0x31')]&&(_0x4ff418[_0x3e78ff('0x43')]=_[_0x3e78ff('0xf')](_0x4ff418[_0x3e78ff('0x43')],{[Op['or']]:_[_0x3e78ff('0x4')](_0x4ff418[_0x3e78ff('0x29')],function(_0x211c5e){const _0x48dc17=_0x3e78ff,_0xa2f164={};return _0xa2f164[_0x211c5e]={[Op[_0x48dc17('0x18')]]:'%'+_0x20bbc5[_0x48dc17('0x3f')]['filter']+'%'},_0xa2f164;})})),_0x4ff418=_['merge']({},_0x4ff418,_0x20bbc5[_0x3e78ff('0x22')]),_0x2874f7[_0x3e78ff('0x5')](_0x4ff418);})['then'](function(_0xf3c72c){const _0x3b38e2=_0x666f55;if(_0xf3c72c)return _0x45f935=_0xf3c72c[_0x3b38e2('0x2')],typeof _0x20bbc5[_0x3b38e2('0x3f')][_0x3b38e2('0x2b')]===_0x3b38e2('0xa')&&(_0x4ff418[_0x3b38e2('0x17')]=qs['limit'](_0x20bbc5[_0x3b38e2('0x3f')]['limit']),_0x4ff418[_0x3b38e2('0x1b')]=qs[_0x3b38e2('0x1b')](_0x20bbc5[_0x3b38e2('0x3f')]['offset'])),_0x2874f7['getAnyConditions'](_0x4ff418);})[_0x666f55('0x24')](function(_0x539634){if(_0x539634)return _0x539634?{'count':_0x45f935,'rows':_0x539634}:null;})['then'](respondWithResult(_0xdbd792,null))[_0x666f55('0x2d')](handleError(_0xdbd792,null));},exports[_0x48044a('0x14')]=function(_0x488c85,_0x4eaf37){const _0xd7dbb5=_0x48044a;return _0x488c85[_0xd7dbb5('0x40')]['id']&&delete _0x488c85[_0xd7dbb5('0x40')]['id'],db[_0xd7dbb5('0x0')][_0xd7dbb5('0x8')]({'where':{'id':_0x488c85[_0xd7dbb5('0x20')]['id']}})[_0xd7dbb5('0x24')](handleEntityNotFound(_0x4eaf37,null))[_0xd7dbb5('0x24')](function(_0x453c32){const _0x138a41=_0xd7dbb5;if(_0x453c32)return _0x488c85[_0x138a41('0x40')][_0x138a41('0x19')]=_0x453c32['id'],db[_0x138a41('0x36')][_0x138a41('0x10')](_0x488c85['body']);})[_0xd7dbb5('0x24')](respondWithResult(_0x4eaf37,null))['catch'](handleError(_0x4eaf37,null));},exports['getActions']=function(_0x19c306,_0x442bbd){const _0x5e7af6=_0x48044a;let _0x158ffe={};const _0x4b104f={};let _0x472415,_0x48e2fa;return db[_0x5e7af6('0x0')][_0x5e7af6('0x8')]({'where':{'id':_0x19c306[_0x5e7af6('0x20')]['id']}})[_0x5e7af6('0x24')](handleEntityNotFound(_0x442bbd,null))[_0x5e7af6('0x24')](function(_0x5e5764){const _0x4d56cb=_0x5e7af6;if(_0x5e5764)return _0x472415=_0x5e5764,_0x4b104f[_0x4d56cb('0x12')]=_[_0x4d56cb('0x6')](db[_0x4d56cb('0x36')]['rawAttributes']),_0x4b104f['query']=_[_0x4d56cb('0x6')](_0x19c306[_0x4d56cb('0x3f')]),_0x4b104f['filters']=_[_0x4d56cb('0x3b')](_0x4b104f[_0x4d56cb('0x12')],_0x4b104f['query']),_0x158ffe['attributes']=_[_0x4d56cb('0x3b')](_0x4b104f[_0x4d56cb('0x12')],qs[_0x4d56cb('0x9')](_0x19c306['query'][_0x4d56cb('0x9')])),_0x158ffe[_0x4d56cb('0x29')]=_0x158ffe[_0x4d56cb('0x29')]['length']?_0x158ffe[_0x4d56cb('0x29')]:_0x4b104f['model'],_0x158ffe[_0x4d56cb('0x33')]=qs['sort'](_0x19c306[_0x4d56cb('0x3f')]['sort']),_0x158ffe[_0x4d56cb('0x43')]=qs['filters'](_[_0x4d56cb('0x1e')](_0x19c306[_0x4d56cb('0x3f')],_0x4b104f[_0x4d56cb('0x34')])),_0x19c306['query'][_0x4d56cb('0x31')]&&(_0x158ffe[_0x4d56cb('0x43')]=_[_0x4d56cb('0xf')](_0x158ffe[_0x4d56cb('0x43')],{[Op['or']]:_[_0x4d56cb('0x4')](_0x158ffe[_0x4d56cb('0x29')],function(_0xc73cc3){const _0x4f7cfe=_0x4d56cb,_0x16f8f9={};return _0x16f8f9[_0xc73cc3]={[Op[_0x4f7cfe('0x18')]]:'%'+_0x19c306[_0x4f7cfe('0x3f')][_0x4f7cfe('0x31')]+'%'},_0x16f8f9;})})),_0x158ffe=_[_0x4d56cb('0xf')]({},_0x158ffe,_0x19c306['options']),_0x472415[_0x4d56cb('0x32')](_0x158ffe);})[_0x5e7af6('0x24')](function(_0x416b06){const _0x38d741=_0x5e7af6;if(_0x416b06)return _0x48e2fa=_0x416b06['length'],typeof _0x19c306[_0x38d741('0x3f')][_0x38d741('0x2b')]==='undefined'&&(_0x158ffe['limit']=qs[_0x38d741('0x17')](_0x19c306[_0x38d741('0x3f')]['limit']),_0x158ffe[_0x38d741('0x1b')]=qs[_0x38d741('0x1b')](_0x19c306[_0x38d741('0x3f')][_0x38d741('0x1b')])),_0x472415['getActions'](_0x158ffe);})[_0x5e7af6('0x24')](function(_0x40170f){if(_0x40170f)return _0x40170f?{'count':_0x48e2fa,'rows':_0x40170f}:null;})[_0x5e7af6('0x24')](respondWithResult(_0x442bbd,null))[_0x5e7af6('0x2d')](handleError(_0x442bbd,null));}; \ No newline at end of file +const a638_0x51b0=['intersection','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','rawAttributes','create','order','offset','catch','../../config/logger','name','keys','role','addAction','show','json','query','Condition','where','fieldName','end','stack','key','params','then','Trigger','sequelize','update','sendStatus','TriggerAnyId','map','model','attributes','send','get','limit','like','findOne','set','filter','type','getActions','Action','autoAssociation','options','include','Triggers','pick','merge','user','nolimit','count','index','sort','rows','body','Content-Range','TriggerAllId','includeAll','destroy','addAllCondition','api','filters','getAllConditions','undefined','addAnyCondition','getAnyConditions','status','UserProfileResource','length','fields'];(function(_0x274a23,_0x51b090){const _0x4255a0=function(_0x20753f){while(--_0x20753f){_0x274a23['push'](_0x274a23['shift']());}};_0x4255a0(++_0x51b090);}(a638_0x51b0,0x89));const a638_0x4255=function(_0x274a23,_0x51b090){_0x274a23=_0x274a23-0x0;let _0x4255a0=a638_0x51b0[_0x274a23];return _0x4255a0;};const _0x5787bb=a638_0x4255;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x5787bb('0x8'))(_0x5787bb('0x3c')),db=require('../../mysqldb')['db'],{Op}=require(_0x5787bb('0x19'));function respondWithResult(_0x20753f,_0x8783b6){return _0x8783b6=_0x8783b6||0xc8,function(_0x476ad0){if(_0x476ad0)return _0x20753f['status'](_0x8783b6)['json'](_0x476ad0);};}function respondWithFilteredResult(_0xe842b2,_0x4dbfbe){return function(_0x2149b0){const _0x53744c=a638_0x4255;if(_0x2149b0){const _0x4714a6=_0x2149b0[_0x53744c('0x32')],_0x2990f4=_0x4dbfbe[_0x53744c('0x6')];let _0x35ebab=_0x4dbfbe['offset']+_0x4dbfbe[_0x53744c('0x22')],_0x37f72b;return _0x35ebab>=_0x4714a6?(_0x35ebab=_0x4714a6,_0x37f72b=0xc8):_0x37f72b=0xce,_0xe842b2[_0x53744c('0x42')](_0x37f72b),_0xe842b2[_0x53744c('0x25')](_0x53744c('0x37'),_0x2990f4+'-'+_0x35ebab+'/'+_0x4714a6)[_0x53744c('0xe')](_0x2149b0);}return null;};}function saveUpdates(_0x226baa){return function(_0x943f02){const _0x38f8a0=a638_0x4255;if(_0x943f02)return _0x943f02[_0x38f8a0('0x1a')](_0x226baa)[_0x38f8a0('0x17')](function(_0x39c4b3){return _0x39c4b3;});return null;};}function removeEntity(_0xe8bebd){return function(_0x41d04c){const _0x151557=a638_0x4255;if(_0x41d04c)return _0x41d04c['destroy']()[_0x151557('0x17')](function(){const _0x508340=_0x151557,_0x4dd83c=_0x41d04c[_0x508340('0x21')]({'plain':!![]}),_0x51ff9e='Triggers';return db[_0x508340('0x43')][_0x508340('0x3a')]({'where':{'type':_0x51ff9e,'resourceId':_0x4dd83c['id']}})['then'](function(){return _0x41d04c;});})[_0x151557('0x17')](function(){const _0x260861=_0x151557;_0xe8bebd[_0x260861('0x42')](0xcc)[_0x260861('0x13')]();});};}function handleEntityNotFound(_0x5e6267){return function(_0x5bdfd0){const _0x11483=a638_0x4255;return!_0x5bdfd0&&_0x5e6267[_0x11483('0x1b')](0x194),_0x5bdfd0;};}function handleError(_0x39b476,_0x27e35c){return _0x27e35c=_0x27e35c||0x1f4,function(_0x5c4307){const _0x145203=a638_0x4255;logger['error'](_0x5c4307[_0x145203('0x14')]),_0x5c4307[_0x145203('0x9')]&&delete _0x5c4307[_0x145203('0x9')],_0x39b476[_0x145203('0x42')](_0x27e35c)[_0x145203('0x20')](_0x5c4307);};}exports[_0x5787bb('0x33')]=function(_0x1a0caa,_0x7dfca6){const _0x2be1e7=_0x5787bb;let _0x385770={};const _0x579e2e={},_0xc9fe07={'count':0x0,'rows':[]},_0x292e4d=_['map'](db[_0x2be1e7('0x18')][_0x2be1e7('0x3')],function(_0xe79049){const _0x4c2709=_0x2be1e7;return{'name':_0xe79049[_0x4c2709('0x12')],'type':_0xe79049[_0x4c2709('0x27')][_0x4c2709('0x15')]};});_0x579e2e[_0x2be1e7('0x1e')]=_['map'](_0x292e4d,_0x2be1e7('0x9')),_0x579e2e[_0x2be1e7('0xf')]=_[_0x2be1e7('0xa')](_0x1a0caa['query']),_0x579e2e[_0x2be1e7('0x3d')]=_[_0x2be1e7('0x1')](_0x579e2e[_0x2be1e7('0x1e')],_0x579e2e['query']),_0x385770[_0x2be1e7('0x1f')]=_['intersection'](_0x579e2e[_0x2be1e7('0x1e')],qs[_0x2be1e7('0x0')](_0x1a0caa[_0x2be1e7('0xf')][_0x2be1e7('0x0')])),_0x385770[_0x2be1e7('0x1f')]=_0x385770[_0x2be1e7('0x1f')][_0x2be1e7('0x44')]?_0x385770[_0x2be1e7('0x1f')]:_0x579e2e[_0x2be1e7('0x1e')];typeof _0x1a0caa['query'][_0x2be1e7('0x31')]===_0x2be1e7('0x3f')&&(_0x385770[_0x2be1e7('0x22')]=qs[_0x2be1e7('0x22')](_0x1a0caa[_0x2be1e7('0xf')][_0x2be1e7('0x22')]),_0x385770[_0x2be1e7('0x6')]=qs['offset'](_0x1a0caa[_0x2be1e7('0xf')][_0x2be1e7('0x6')]));_0x385770[_0x2be1e7('0x5')]=qs[_0x2be1e7('0x34')](_0x1a0caa[_0x2be1e7('0xf')]['sort']),_0x385770[_0x2be1e7('0x11')]=qs[_0x2be1e7('0x3d')](_[_0x2be1e7('0x2e')](_0x1a0caa[_0x2be1e7('0xf')],_0x579e2e[_0x2be1e7('0x3d')]),_0x292e4d);_0x1a0caa[_0x2be1e7('0xf')][_0x2be1e7('0x26')]&&(_0x385770[_0x2be1e7('0x11')]=_['merge'](_0x385770[_0x2be1e7('0x11')],{[Op['or']]:_[_0x2be1e7('0x1d')](_0x292e4d,function(_0x30fde7){const _0x575c29=_0x2be1e7;if(_0x30fde7[_0x575c29('0x27')]!=='VIRTUAL'){const _0x426651={};return _0x426651[_0x30fde7[_0x575c29('0x9')]]={[Op[_0x575c29('0x23')]]:'%'+_0x1a0caa[_0x575c29('0xf')]['filter']+'%'},_0x426651;}})}));_0x385770=_[_0x2be1e7('0x2f')]({},_0x385770,_0x1a0caa['options']);const _0x4aa6dc={'where':_0x385770[_0x2be1e7('0x11')]};return db[_0x2be1e7('0x18')][_0x2be1e7('0x32')](_0x4aa6dc)[_0x2be1e7('0x17')](function(_0x2bd116){const _0x440d73=_0x2be1e7;return _0xc9fe07[_0x440d73('0x32')]=_0x2bd116,_0x1a0caa[_0x440d73('0xf')][_0x440d73('0x39')]&&(_0x385770[_0x440d73('0x2c')]=[{'all':!![]}]),db[_0x440d73('0x18')]['findAll'](_0x385770);})[_0x2be1e7('0x17')](function(_0x4cfa8c){const _0x4566ac=_0x2be1e7;return _0xc9fe07[_0x4566ac('0x35')]=_0x4cfa8c,_0xc9fe07;})[_0x2be1e7('0x17')](respondWithFilteredResult(_0x7dfca6,_0x385770))[_0x2be1e7('0x7')](handleError(_0x7dfca6,null));},exports[_0x5787bb('0xd')]=function(_0x3e9540,_0x42d00b){const _0x244075=_0x5787bb;let _0x3c1b54={'raw':![],'where':{'id':_0x3e9540[_0x244075('0x16')]['id']}};const _0x3b38d3={};return _0x3b38d3['model']=_[_0x244075('0xa')](db[_0x244075('0x18')][_0x244075('0x3')]),_0x3b38d3[_0x244075('0xf')]=_[_0x244075('0xa')](_0x3e9540[_0x244075('0xf')]),_0x3b38d3[_0x244075('0x3d')]=_[_0x244075('0x1')](_0x3b38d3[_0x244075('0x1e')],_0x3b38d3['query']),_0x3c1b54['attributes']=_[_0x244075('0x1')](_0x3b38d3[_0x244075('0x1e')],qs[_0x244075('0x0')](_0x3e9540[_0x244075('0xf')]['fields'])),_0x3c1b54['attributes']=_0x3c1b54[_0x244075('0x1f')][_0x244075('0x44')]?_0x3c1b54[_0x244075('0x1f')]:_0x3b38d3[_0x244075('0x1e')],_0x3e9540[_0x244075('0xf')]['includeAll']&&(_0x3c1b54[_0x244075('0x2c')]=[{'all':!![]}]),_0x3c1b54=_['merge']({},_0x3c1b54,_0x3e9540[_0x244075('0x2b')]),db[_0x244075('0x18')][_0x244075('0x24')](_0x3c1b54)[_0x244075('0x17')](handleEntityNotFound(_0x42d00b,null))['then'](respondWithResult(_0x42d00b,null))[_0x244075('0x7')](handleError(_0x42d00b,null));},exports['create']=function(_0x5e7bfc,_0x1a6530){const _0x43d403=_0x5787bb;return db[_0x43d403('0x18')][_0x43d403('0x4')](_0x5e7bfc['body'],{})[_0x43d403('0x17')](function(_0x41324e){const _0x2ff8f0=_0x43d403,_0x2bc285=_0x5e7bfc[_0x2ff8f0('0x30')][_0x2ff8f0('0x21')]({'plain':!![]});if(!_0x2bc285)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2bc285[_0x2ff8f0('0xb')]===_0x2ff8f0('0x30')){const _0x3edf24=_0x41324e[_0x2ff8f0('0x21')]({'plain':!![]}),_0x448233=_0x2ff8f0('0x2d');return db['UserProfileSection'][_0x2ff8f0('0x24')]({'where':{'name':_0x448233,'userProfileId':_0x2bc285['userProfileId']},'raw':!![]})[_0x2ff8f0('0x17')](function(_0x41f11c){const _0x1d5864=_0x2ff8f0;return _0x41f11c&&_0x41f11c[_0x1d5864('0x2a')]===0x0?db[_0x1d5864('0x43')][_0x1d5864('0x4')]({'name':_0x3edf24[_0x1d5864('0x9')],'resourceId':_0x3edf24['id'],'type':_0x41f11c[_0x1d5864('0x9')],'sectionId':_0x41f11c['id']},{})[_0x1d5864('0x17')](function(){return _0x41324e;}):_0x41324e;})[_0x2ff8f0('0x7')](function(_0x18d1b0){const _0x5929a0=_0x2ff8f0;logger['error'](_0x5929a0('0x2'),_0x18d1b0);throw _0x18d1b0;});}return _0x41324e;})[_0x43d403('0x17')](respondWithResult(_0x1a6530,0xc9))['catch'](handleError(_0x1a6530,null));},exports['update']=function(_0x23babb,_0x444fda){const _0x3bff2=_0x5787bb;return _0x23babb[_0x3bff2('0x36')]['id']&&delete _0x23babb[_0x3bff2('0x36')]['id'],db[_0x3bff2('0x18')][_0x3bff2('0x24')]({'where':{'id':_0x23babb['params']['id']}})[_0x3bff2('0x17')](handleEntityNotFound(_0x444fda,null))[_0x3bff2('0x17')](saveUpdates(_0x23babb['body'],null))[_0x3bff2('0x17')](respondWithResult(_0x444fda,null))[_0x3bff2('0x7')](handleError(_0x444fda,null));},exports[_0x5787bb('0x3a')]=function(_0x331cc5,_0x111751){const _0x5008fd=_0x5787bb;return db[_0x5008fd('0x18')][_0x5008fd('0x24')]({'where':{'id':_0x331cc5[_0x5008fd('0x16')]['id']}})['then'](handleEntityNotFound(_0x111751,null))[_0x5008fd('0x17')](removeEntity(_0x111751,null))[_0x5008fd('0x7')](handleError(_0x111751,null));},exports[_0x5787bb('0x3b')]=function(_0xca1686,_0xc344cd){const _0x169513=_0x5787bb;return _0xca1686[_0x169513('0x36')]['id']&&delete _0xca1686[_0x169513('0x36')]['id'],db[_0x169513('0x18')]['findOne']({'where':{'id':_0xca1686[_0x169513('0x16')]['id']}})[_0x169513('0x17')](handleEntityNotFound(_0xc344cd,null))[_0x169513('0x17')](function(_0x26d2bc){const _0x428727=_0x169513;if(_0x26d2bc)return _0xca1686['body'][_0x428727('0x38')]=_0x26d2bc['id'],db[_0x428727('0x10')][_0x428727('0x4')](_0xca1686[_0x428727('0x36')]);})['then'](respondWithResult(_0xc344cd,null))[_0x169513('0x7')](handleError(_0xc344cd,null));},exports[_0x5787bb('0x40')]=function(_0x18976d,_0x2d534b){const _0x5a8d8b=_0x5787bb;return _0x18976d[_0x5a8d8b('0x36')]['id']&&delete _0x18976d[_0x5a8d8b('0x36')]['id'],db['Trigger']['findOne']({'where':{'id':_0x18976d[_0x5a8d8b('0x16')]['id']}})[_0x5a8d8b('0x17')](handleEntityNotFound(_0x2d534b,null))[_0x5a8d8b('0x17')](function(_0x53f14f){const _0x18372e=_0x5a8d8b;if(_0x53f14f)return _0x18976d[_0x18372e('0x36')][_0x18372e('0x1c')]=_0x53f14f['id'],db[_0x18372e('0x10')]['create'](_0x18976d[_0x18372e('0x36')]);})['then'](respondWithResult(_0x2d534b,null))[_0x5a8d8b('0x7')](handleError(_0x2d534b,null));},exports[_0x5787bb('0x3e')]=function(_0x2fb9e4,_0x227273){const _0x2037dd=_0x5787bb;let _0x2be5e8={};const _0x3f6eaa={};let _0x4c7f4b,_0x32114c;return db['Trigger'][_0x2037dd('0x24')]({'where':{'id':_0x2fb9e4['params']['id']}})[_0x2037dd('0x17')](handleEntityNotFound(_0x227273,null))[_0x2037dd('0x17')](function(_0x5082e4){const _0x3ceb5c=_0x2037dd;if(_0x5082e4)return _0x4c7f4b=_0x5082e4,_0x3f6eaa[_0x3ceb5c('0x1e')]=_[_0x3ceb5c('0xa')](db['Condition'][_0x3ceb5c('0x3')]),_0x3f6eaa[_0x3ceb5c('0xf')]=_['keys'](_0x2fb9e4[_0x3ceb5c('0xf')]),_0x3f6eaa[_0x3ceb5c('0x3d')]=_[_0x3ceb5c('0x1')](_0x3f6eaa[_0x3ceb5c('0x1e')],_0x3f6eaa['query']),_0x2be5e8['attributes']=_[_0x3ceb5c('0x1')](_0x3f6eaa[_0x3ceb5c('0x1e')],qs[_0x3ceb5c('0x0')](_0x2fb9e4[_0x3ceb5c('0xf')][_0x3ceb5c('0x0')])),_0x2be5e8[_0x3ceb5c('0x1f')]=_0x2be5e8[_0x3ceb5c('0x1f')][_0x3ceb5c('0x44')]?_0x2be5e8[_0x3ceb5c('0x1f')]:_0x3f6eaa[_0x3ceb5c('0x1e')],_0x2be5e8[_0x3ceb5c('0x5')]=qs[_0x3ceb5c('0x34')](_0x2fb9e4['query'][_0x3ceb5c('0x34')]),_0x2be5e8[_0x3ceb5c('0x11')]=qs[_0x3ceb5c('0x3d')](_[_0x3ceb5c('0x2e')](_0x2fb9e4[_0x3ceb5c('0xf')],_0x3f6eaa[_0x3ceb5c('0x3d')])),_0x2fb9e4['query'][_0x3ceb5c('0x26')]&&(_0x2be5e8['where']=_['merge'](_0x2be5e8[_0x3ceb5c('0x11')],{[Op['or']]:_[_0x3ceb5c('0x1d')](_0x2be5e8[_0x3ceb5c('0x1f')],function(_0x71c0aa){const _0x527945=_0x3ceb5c,_0x449a1a={};return _0x449a1a[_0x71c0aa]={[Op['like']]:'%'+_0x2fb9e4['query'][_0x527945('0x26')]+'%'},_0x449a1a;})})),_0x2be5e8=_['merge']({},_0x2be5e8,_0x2fb9e4[_0x3ceb5c('0x2b')]),_0x4c7f4b[_0x3ceb5c('0x3e')](_0x2be5e8);})[_0x2037dd('0x17')](function(_0x10df35){const _0x5abb2d=_0x2037dd;if(_0x10df35)return _0x32114c=_0x10df35[_0x5abb2d('0x44')],typeof _0x2fb9e4['query'][_0x5abb2d('0x31')]===_0x5abb2d('0x3f')&&(_0x2be5e8[_0x5abb2d('0x22')]=qs[_0x5abb2d('0x22')](_0x2fb9e4[_0x5abb2d('0xf')][_0x5abb2d('0x22')]),_0x2be5e8[_0x5abb2d('0x6')]=qs[_0x5abb2d('0x6')](_0x2fb9e4['query'][_0x5abb2d('0x6')])),_0x4c7f4b[_0x5abb2d('0x3e')](_0x2be5e8);})[_0x2037dd('0x17')](function(_0x46212d){if(_0x46212d)return _0x46212d?{'count':_0x32114c,'rows':_0x46212d}:null;})[_0x2037dd('0x17')](respondWithResult(_0x227273,null))['catch'](handleError(_0x227273,null));},exports[_0x5787bb('0x41')]=function(_0x2df69d,_0x1fb750){const _0x4271f7=_0x5787bb;let _0x4c827e={};const _0x3785a2={};let _0xd03092,_0x300944;return db[_0x4271f7('0x18')][_0x4271f7('0x24')]({'where':{'id':_0x2df69d[_0x4271f7('0x16')]['id']}})[_0x4271f7('0x17')](handleEntityNotFound(_0x1fb750,null))[_0x4271f7('0x17')](function(_0x1dafa8){const _0x59995e=_0x4271f7;if(_0x1dafa8)return _0xd03092=_0x1dafa8,_0x3785a2[_0x59995e('0x1e')]=_[_0x59995e('0xa')](db[_0x59995e('0x10')][_0x59995e('0x3')]),_0x3785a2[_0x59995e('0xf')]=_[_0x59995e('0xa')](_0x2df69d[_0x59995e('0xf')]),_0x3785a2['filters']=_[_0x59995e('0x1')](_0x3785a2[_0x59995e('0x1e')],_0x3785a2[_0x59995e('0xf')]),_0x4c827e[_0x59995e('0x1f')]=_[_0x59995e('0x1')](_0x3785a2['model'],qs[_0x59995e('0x0')](_0x2df69d[_0x59995e('0xf')][_0x59995e('0x0')])),_0x4c827e[_0x59995e('0x1f')]=_0x4c827e['attributes'][_0x59995e('0x44')]?_0x4c827e[_0x59995e('0x1f')]:_0x3785a2['model'],_0x4c827e['order']=qs['sort'](_0x2df69d[_0x59995e('0xf')][_0x59995e('0x34')]),_0x4c827e[_0x59995e('0x11')]=qs[_0x59995e('0x3d')](_[_0x59995e('0x2e')](_0x2df69d[_0x59995e('0xf')],_0x3785a2[_0x59995e('0x3d')])),_0x2df69d[_0x59995e('0xf')][_0x59995e('0x26')]&&(_0x4c827e[_0x59995e('0x11')]=_[_0x59995e('0x2f')](_0x4c827e[_0x59995e('0x11')],{[Op['or']]:_[_0x59995e('0x1d')](_0x4c827e[_0x59995e('0x1f')],function(_0x42d6be){const _0x1583bf=_0x59995e,_0x4ca417={};return _0x4ca417[_0x42d6be]={[Op[_0x1583bf('0x23')]]:'%'+_0x2df69d[_0x1583bf('0xf')]['filter']+'%'},_0x4ca417;})})),_0x4c827e=_[_0x59995e('0x2f')]({},_0x4c827e,_0x2df69d[_0x59995e('0x2b')]),_0xd03092[_0x59995e('0x41')](_0x4c827e);})[_0x4271f7('0x17')](function(_0x9b44d5){const _0x3c8400=_0x4271f7;if(_0x9b44d5)return _0x300944=_0x9b44d5[_0x3c8400('0x44')],typeof _0x2df69d[_0x3c8400('0xf')][_0x3c8400('0x31')]===_0x3c8400('0x3f')&&(_0x4c827e['limit']=qs[_0x3c8400('0x22')](_0x2df69d[_0x3c8400('0xf')]['limit']),_0x4c827e[_0x3c8400('0x6')]=qs[_0x3c8400('0x6')](_0x2df69d[_0x3c8400('0xf')][_0x3c8400('0x6')])),_0xd03092[_0x3c8400('0x41')](_0x4c827e);})[_0x4271f7('0x17')](function(_0x39e54a){if(_0x39e54a)return _0x39e54a?{'count':_0x300944,'rows':_0x39e54a}:null;})['then'](respondWithResult(_0x1fb750,null))[_0x4271f7('0x7')](handleError(_0x1fb750,null));},exports[_0x5787bb('0xc')]=function(_0x25fe61,_0x3a6e7c){const _0x1d5305=_0x5787bb;return _0x25fe61['body']['id']&&delete _0x25fe61[_0x1d5305('0x36')]['id'],db[_0x1d5305('0x18')][_0x1d5305('0x24')]({'where':{'id':_0x25fe61[_0x1d5305('0x16')]['id']}})[_0x1d5305('0x17')](handleEntityNotFound(_0x3a6e7c,null))['then'](function(_0x53335a){const _0x589d6e=_0x1d5305;if(_0x53335a)return _0x25fe61[_0x589d6e('0x36')]['TriggerId']=_0x53335a['id'],db[_0x589d6e('0x29')][_0x589d6e('0x4')](_0x25fe61[_0x589d6e('0x36')]);})[_0x1d5305('0x17')](respondWithResult(_0x3a6e7c,null))[_0x1d5305('0x7')](handleError(_0x3a6e7c,null));},exports[_0x5787bb('0x28')]=function(_0x5acdf7,_0x3fd514){const _0xb6a41c=_0x5787bb;let _0x8216fe={};const _0x3e5d18={};let _0xf8e708,_0x4d77b2;return db[_0xb6a41c('0x18')][_0xb6a41c('0x24')]({'where':{'id':_0x5acdf7['params']['id']}})['then'](handleEntityNotFound(_0x3fd514,null))['then'](function(_0x2175a4){const _0x58eff7=_0xb6a41c;if(_0x2175a4)return _0xf8e708=_0x2175a4,_0x3e5d18['model']=_[_0x58eff7('0xa')](db[_0x58eff7('0x29')][_0x58eff7('0x3')]),_0x3e5d18[_0x58eff7('0xf')]=_[_0x58eff7('0xa')](_0x5acdf7[_0x58eff7('0xf')]),_0x3e5d18[_0x58eff7('0x3d')]=_[_0x58eff7('0x1')](_0x3e5d18[_0x58eff7('0x1e')],_0x3e5d18[_0x58eff7('0xf')]),_0x8216fe['attributes']=_[_0x58eff7('0x1')](_0x3e5d18[_0x58eff7('0x1e')],qs[_0x58eff7('0x0')](_0x5acdf7['query'][_0x58eff7('0x0')])),_0x8216fe[_0x58eff7('0x1f')]=_0x8216fe['attributes']['length']?_0x8216fe[_0x58eff7('0x1f')]:_0x3e5d18[_0x58eff7('0x1e')],_0x8216fe[_0x58eff7('0x5')]=qs[_0x58eff7('0x34')](_0x5acdf7[_0x58eff7('0xf')][_0x58eff7('0x34')]),_0x8216fe['where']=qs[_0x58eff7('0x3d')](_['pick'](_0x5acdf7['query'],_0x3e5d18[_0x58eff7('0x3d')])),_0x5acdf7[_0x58eff7('0xf')]['filter']&&(_0x8216fe[_0x58eff7('0x11')]=_['merge'](_0x8216fe['where'],{[Op['or']]:_[_0x58eff7('0x1d')](_0x8216fe[_0x58eff7('0x1f')],function(_0x5d32b2){const _0xe9bdd5=_0x58eff7,_0x3c1bcd={};return _0x3c1bcd[_0x5d32b2]={[Op[_0xe9bdd5('0x23')]]:'%'+_0x5acdf7['query'][_0xe9bdd5('0x26')]+'%'},_0x3c1bcd;})})),_0x8216fe=_[_0x58eff7('0x2f')]({},_0x8216fe,_0x5acdf7[_0x58eff7('0x2b')]),_0xf8e708[_0x58eff7('0x28')](_0x8216fe);})['then'](function(_0x2b5d41){const _0xacd8f3=_0xb6a41c;if(_0x2b5d41)return _0x4d77b2=_0x2b5d41[_0xacd8f3('0x44')],typeof _0x5acdf7['query'][_0xacd8f3('0x31')]==='undefined'&&(_0x8216fe[_0xacd8f3('0x22')]=qs[_0xacd8f3('0x22')](_0x5acdf7[_0xacd8f3('0xf')]['limit']),_0x8216fe[_0xacd8f3('0x6')]=qs[_0xacd8f3('0x6')](_0x5acdf7[_0xacd8f3('0xf')][_0xacd8f3('0x6')])),_0xf8e708['getActions'](_0x8216fe);})['then'](function(_0x3a3502){if(_0x3a3502)return _0x3a3502?{'count':_0x4d77b2,'rows':_0x3a3502}:null;})[_0xb6a41c('0x17')](respondWithResult(_0x3fd514,null))[_0xb6a41c('0x7')](handleError(_0x3fd514,null));}; \ No newline at end of file diff --git a/server/api/trigger/trigger.model.js b/server/api/trigger/trigger.model.js index b664552..1f7158f 100644 --- a/server/api/trigger/trigger.model.js +++ b/server/api/trigger/trigger.model.js @@ -1 +1 @@ -const a639_0x546e=['exports','define','Trigger','tools_triggers'];(function(_0x5cf7c4,_0x546e81){const _0x4ef9a1=function(_0x1e574c){while(--_0x1e574c){_0x5cf7c4['push'](_0x5cf7c4['shift']());}};_0x4ef9a1(++_0x546e81);}(a639_0x546e,0xb8));const a639_0x4ef9=function(_0x5cf7c4,_0x546e81){_0x5cf7c4=_0x5cf7c4-0x0;let _0x4ef9a1=a639_0x546e[_0x5cf7c4];return _0x4ef9a1;};const _0x246284=a639_0x4ef9;'use strict';const attributes=require('./trigger.attributes');module[_0x246284('0x0')]=function(_0x1e574c){const _0x40d8a6=_0x246284,_0x43c33f=_0x1e574c[_0x40d8a6('0x1')](_0x40d8a6('0x2'),attributes,{'tableName':_0x40d8a6('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x43c33f;}; \ No newline at end of file +const a639_0x7729=['exports','tools_triggers','Trigger','./trigger.attributes','define'];(function(_0x5e7840,_0x77296d){const _0x7af5b8=function(_0x34c7f1){while(--_0x34c7f1){_0x5e7840['push'](_0x5e7840['shift']());}};_0x7af5b8(++_0x77296d);}(a639_0x7729,0xca));const a639_0x7af5=function(_0x5e7840,_0x77296d){_0x5e7840=_0x5e7840-0x0;let _0x7af5b8=a639_0x7729[_0x5e7840];return _0x7af5b8;};const _0x4e5fb7=a639_0x7af5;'use strict';const attributes=require(_0x4e5fb7('0x1'));module[_0x4e5fb7('0x3')]=function(_0x34c7f1){const _0x32e71f=_0x4e5fb7,_0x41db05=_0x34c7f1[_0x32e71f('0x2')](_0x32e71f('0x0'),attributes,{'tableName':_0x32e71f('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x41db05;}; \ No newline at end of file diff --git a/server/api/trigger/trigger.rpc.js b/server/api/trigger/trigger.rpc.js index 3ab6742..c5a5c5f 100644 --- a/server/api/trigger/trigger.rpc.js +++ b/server/api/trigger/trigger.rpc.js @@ -1 +1 @@ -const a640_0x34bf=['ShowTrigger','lodash','info','attributes','../../mysqldb','include','Trigger','catch','then','../../config/logger','stringify','debug','limit','raw','rpc','findOne','message','where','options','error','GetTrigger','model','map'];(function(_0x1edfef,_0x34bf2d){const _0x1f8882=function(_0xf3afd1){while(--_0xf3afd1){_0x1edfef['push'](_0x1edfef['shift']());}};_0x1f8882(++_0x34bf2d);}(a640_0x34bf,0x6b));const a640_0x1f88=function(_0x1edfef,_0x34bf2d){_0x1edfef=_0x1edfef-0x0;let _0x1f8882=a640_0x34bf[_0x1edfef];return _0x1f8882;};const _0x3edb2a=a640_0x1f88;'use strict';const _=require(_0x3edb2a('0x9')),db=require(_0x3edb2a('0xc'))['db'],logger=require(_0x3edb2a('0x11'))(_0x3edb2a('0x16'));exports[_0x3edb2a('0x5')]=function(_0xf3afd1){const _0x8b6f23=this;return new Promise(function(_0x13f635,_0xad0b68){const _0x42715f=a640_0x1f88;return db['Trigger']['findAll']({'raw':_0xf3afd1['options']?_0xf3afd1[_0x42715f('0x3')][_0x42715f('0x15')]===undefined?!![]:![]:!![],'where':_0xf3afd1['options']?_0xf3afd1['options'][_0x42715f('0x2')]||null:null,'attributes':_0xf3afd1[_0x42715f('0x3')]?_0xf3afd1[_0x42715f('0x3')][_0x42715f('0xb')]||null:null,'limit':_0xf3afd1[_0x42715f('0x3')]?_0xf3afd1[_0x42715f('0x3')][_0x42715f('0x14')]||null:null,'include':_0xf3afd1[_0x42715f('0x3')]?_0xf3afd1[_0x42715f('0x3')][_0x42715f('0xd')]?_[_0x42715f('0x7')](_0xf3afd1[_0x42715f('0x3')]['include'],function(_0x21243d){const _0x3776a9=_0x42715f;return{'model':db[_0x21243d[_0x3776a9('0x6')]],'as':_0x21243d['as'],'attributes':_0x21243d['attributes'],'include':_0x21243d[_0x3776a9('0xd')]?_[_0x3776a9('0x7')](_0x21243d[_0x3776a9('0xd')],function(_0x344f7e){const _0xc8cbe4=_0x3776a9;return{'model':db[_0x344f7e[_0xc8cbe4('0x6')]],'as':_0x344f7e['as'],'attributes':_0x344f7e[_0xc8cbe4('0xb')],'include':_0x344f7e['include']?_[_0xc8cbe4('0x7')](_0x344f7e['include'],function(_0x17c087){const _0x5705ae=_0xc8cbe4;return{'model':db[_0x17c087['model']],'as':_0x17c087['as'],'attributes':_0x17c087[_0x5705ae('0xb')]};}):[]};}):[]};}):[]:[]})[_0x42715f('0x10')](function(_0x4ecdd1){const _0x2893a4=_0x42715f;logger[_0x2893a4('0xa')](_0x2893a4('0x5'),_0xf3afd1),logger[_0x2893a4('0x13')]('GetTrigger',_0xf3afd1,JSON['stringify'](_0x4ecdd1)),_0x13f635(_0x4ecdd1);})[_0x42715f('0xf')](function(_0x20ffe4){const _0x403b41=_0x42715f;logger[_0x403b41('0x4')](_0x403b41('0x5'),_0x20ffe4['message'],_0xf3afd1),_0xad0b68(_0x8b6f23[_0x403b41('0x4')](0x1f4,_0x20ffe4[_0x403b41('0x1')]));});});},exports['ShowTrigger']=function(_0x309a5a){const _0x1db7f6=this;return new Promise(function(_0x17eb5f,_0x2696e8){const _0x91a48f=a640_0x1f88;return db[_0x91a48f('0xe')][_0x91a48f('0x0')]({'raw':_0x309a5a['options']?_0x309a5a[_0x91a48f('0x3')][_0x91a48f('0x15')]===undefined?!![]:![]:!![],'where':_0x309a5a[_0x91a48f('0x3')]?_0x309a5a['options']['where']||null:null,'attributes':_0x309a5a[_0x91a48f('0x3')]?_0x309a5a[_0x91a48f('0x3')][_0x91a48f('0xb')]||null:null,'include':_0x309a5a[_0x91a48f('0x3')]?_0x309a5a[_0x91a48f('0x3')][_0x91a48f('0xd')]?_[_0x91a48f('0x7')](_0x309a5a[_0x91a48f('0x3')]['include'],function(_0x394ccd){const _0x525e93=_0x91a48f;return{'model':db[_0x394ccd['model']],'as':_0x394ccd['as'],'attributes':_0x394ccd[_0x525e93('0xb')],'include':_0x394ccd[_0x525e93('0xd')]?_[_0x525e93('0x7')](_0x394ccd[_0x525e93('0xd')],function(_0x2591b3){const _0x2312de=_0x525e93;return{'model':db[_0x2591b3[_0x2312de('0x6')]],'as':_0x2591b3['as'],'attributes':_0x2591b3[_0x2312de('0xb')],'include':_0x2591b3[_0x2312de('0xd')]?_['map'](_0x2591b3[_0x2312de('0xd')],function(_0x2b11c){const _0x20713a=_0x2312de;return{'model':db[_0x2b11c['model']],'as':_0x2b11c['as'],'attributes':_0x2b11c[_0x20713a('0xb')]};}):[]};}):[]};}):[]:[]})[_0x91a48f('0x10')](function(_0x16b07f){const _0x237345=_0x91a48f;logger['info']('ShowTrigger',_0x309a5a),logger[_0x237345('0x13')](_0x237345('0x8'),_0x309a5a,JSON[_0x237345('0x12')](_0x16b07f)),_0x17eb5f(_0x16b07f);})[_0x91a48f('0xf')](function(_0xc7ff55){const _0x9893bb=_0x91a48f;logger[_0x9893bb('0x4')](_0x9893bb('0x8'),_0xc7ff55['message'],_0x309a5a),_0x2696e8(_0x1db7f6[_0x9893bb('0x4')](0x1f4,_0xc7ff55[_0x9893bb('0x1')]));});});}; \ No newline at end of file +const a640_0x3c58=['map','message','attributes','then','where','findOne','options','findAll','lodash','catch','GetTrigger','model','include','../../mysqldb','rpc','raw','../../config/logger','Trigger','info','error','debug','ShowTrigger'];(function(_0x5ac2e7,_0x3c5854){const _0x5c1f27=function(_0x229d52){while(--_0x229d52){_0x5ac2e7['push'](_0x5ac2e7['shift']());}};_0x5c1f27(++_0x3c5854);}(a640_0x3c58,0x169));const a640_0x5c1f=function(_0x5ac2e7,_0x3c5854){_0x5ac2e7=_0x5ac2e7-0x0;let _0x5c1f27=a640_0x3c58[_0x5ac2e7];return _0x5c1f27;};const _0x44cbde=a640_0x5c1f;'use strict';const _=require(_0x44cbde('0x15')),db=require(_0x44cbde('0x4'))['db'],logger=require(_0x44cbde('0x7'))(_0x44cbde('0x5'));exports[_0x44cbde('0x1')]=function(_0x229d52){const _0x43e913=this;return new Promise(function(_0x20bbd5,_0x53cdee){const _0x24da1d=a640_0x5c1f;return db[_0x24da1d('0x8')][_0x24da1d('0x14')]({'raw':_0x229d52['options']?_0x229d52[_0x24da1d('0x13')][_0x24da1d('0x6')]===undefined?!![]:![]:!![],'where':_0x229d52[_0x24da1d('0x13')]?_0x229d52['options'][_0x24da1d('0x11')]||null:null,'attributes':_0x229d52[_0x24da1d('0x13')]?_0x229d52[_0x24da1d('0x13')][_0x24da1d('0xf')]||null:null,'limit':_0x229d52[_0x24da1d('0x13')]?_0x229d52[_0x24da1d('0x13')]['limit']||null:null,'include':_0x229d52['options']?_0x229d52[_0x24da1d('0x13')][_0x24da1d('0x3')]?_['map'](_0x229d52[_0x24da1d('0x13')][_0x24da1d('0x3')],function(_0x23cff3){const _0x40fa18=_0x24da1d;return{'model':db[_0x23cff3['model']],'as':_0x23cff3['as'],'attributes':_0x23cff3[_0x40fa18('0xf')],'include':_0x23cff3['include']?_[_0x40fa18('0xd')](_0x23cff3[_0x40fa18('0x3')],function(_0x49d4f3){const _0x57175c=_0x40fa18;return{'model':db[_0x49d4f3['model']],'as':_0x49d4f3['as'],'attributes':_0x49d4f3[_0x57175c('0xf')],'include':_0x49d4f3[_0x57175c('0x3')]?_[_0x57175c('0xd')](_0x49d4f3['include'],function(_0x53abd5){const _0x3ee3ae=_0x57175c;return{'model':db[_0x53abd5['model']],'as':_0x53abd5['as'],'attributes':_0x53abd5[_0x3ee3ae('0xf')]};}):[]};}):[]};}):[]:[]})[_0x24da1d('0x10')](function(_0x20bdb9){const _0x3b18ec=_0x24da1d;logger[_0x3b18ec('0x9')](_0x3b18ec('0x1'),_0x229d52),logger[_0x3b18ec('0xb')](_0x3b18ec('0x1'),_0x229d52,JSON['stringify'](_0x20bdb9)),_0x20bbd5(_0x20bdb9);})[_0x24da1d('0x0')](function(_0x2d81fa){const _0x4dbac2=_0x24da1d;logger[_0x4dbac2('0xa')]('GetTrigger',_0x2d81fa['message'],_0x229d52),_0x53cdee(_0x43e913[_0x4dbac2('0xa')](0x1f4,_0x2d81fa[_0x4dbac2('0xe')]));});});},exports[_0x44cbde('0xc')]=function(_0x96f59e){const _0x36522a=this;return new Promise(function(_0x5f404b,_0x1a98ca){const _0x47c3fb=a640_0x5c1f;return db['Trigger'][_0x47c3fb('0x12')]({'raw':_0x96f59e[_0x47c3fb('0x13')]?_0x96f59e[_0x47c3fb('0x13')][_0x47c3fb('0x6')]===undefined?!![]:![]:!![],'where':_0x96f59e[_0x47c3fb('0x13')]?_0x96f59e[_0x47c3fb('0x13')][_0x47c3fb('0x11')]||null:null,'attributes':_0x96f59e[_0x47c3fb('0x13')]?_0x96f59e[_0x47c3fb('0x13')][_0x47c3fb('0xf')]||null:null,'include':_0x96f59e[_0x47c3fb('0x13')]?_0x96f59e['options'][_0x47c3fb('0x3')]?_[_0x47c3fb('0xd')](_0x96f59e[_0x47c3fb('0x13')][_0x47c3fb('0x3')],function(_0x298a2c){const _0x5b503c=_0x47c3fb;return{'model':db[_0x298a2c[_0x5b503c('0x2')]],'as':_0x298a2c['as'],'attributes':_0x298a2c[_0x5b503c('0xf')],'include':_0x298a2c[_0x5b503c('0x3')]?_[_0x5b503c('0xd')](_0x298a2c[_0x5b503c('0x3')],function(_0x4e3e89){const _0x268ead=_0x5b503c;return{'model':db[_0x4e3e89[_0x268ead('0x2')]],'as':_0x4e3e89['as'],'attributes':_0x4e3e89[_0x268ead('0xf')],'include':_0x4e3e89[_0x268ead('0x3')]?_[_0x268ead('0xd')](_0x4e3e89[_0x268ead('0x3')],function(_0x2bc9de){const _0x6d8d5a=_0x268ead;return{'model':db[_0x2bc9de[_0x6d8d5a('0x2')]],'as':_0x2bc9de['as'],'attributes':_0x2bc9de[_0x6d8d5a('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x39d20a){const _0x2987ee=_0x47c3fb;logger[_0x2987ee('0x9')]('ShowTrigger',_0x96f59e),logger['debug'](_0x2987ee('0xc'),_0x96f59e,JSON['stringify'](_0x39d20a)),_0x5f404b(_0x39d20a);})[_0x47c3fb('0x0')](function(_0x21d912){const _0x66ea25=_0x47c3fb;logger[_0x66ea25('0xa')](_0x66ea25('0xc'),_0x21d912[_0x66ea25('0xe')],_0x96f59e),_0x1a98ca(_0x36522a[_0x66ea25('0xa')](0x1f4,_0x21d912[_0x66ea25('0xe')]));});});}; \ No newline at end of file diff --git a/server/api/trunk/index.js b/server/api/trunk/index.js index f490302..742233b 100644 --- a/server/api/trunk/index.js +++ b/server/api/trunk/index.js @@ -1 +1 @@ -const a641_0x343b=['/:id/clone','exports','put','get','create','show','destroy','isAuthenticated','./trunk.controller','clone','Router','post','delete','/:id'];(function(_0x224fd3,_0x343ba3){const _0x299e77=function(_0x539175){while(--_0x539175){_0x224fd3['push'](_0x224fd3['shift']());}};_0x299e77(++_0x343ba3);}(a641_0x343b,0xd0));const a641_0x299e=function(_0x224fd3,_0x343ba3){_0x224fd3=_0x224fd3-0x0;let _0x299e77=a641_0x343b[_0x224fd3];return _0x299e77;};const _0xbf2154=a641_0x299e;'use strict';const express=require('express'),router=express[_0xbf2154('0xc')](),auth=require('../../components/auth/service'),controller=require(_0xbf2154('0xa'));router[_0xbf2154('0x5')]('/',auth['isAuthenticated'](),controller['index']),router[_0xbf2154('0x5')](_0xbf2154('0x1'),auth[_0xbf2154('0x9')](),controller[_0xbf2154('0x7')]),router['post'](_0xbf2154('0x2'),auth['isAuthenticated'](),controller[_0xbf2154('0xb')]),router[_0xbf2154('0xd')]('/',auth[_0xbf2154('0x9')](),controller[_0xbf2154('0x6')]),router[_0xbf2154('0x4')]('/:id',auth[_0xbf2154('0x9')](),controller['update']),router[_0xbf2154('0x0')](_0xbf2154('0x1'),auth[_0xbf2154('0x9')](),controller[_0xbf2154('0x8')]),module[_0xbf2154('0x3')]=router; \ No newline at end of file +const a641_0x463e=['exports','../../components/auth/service','/:id','update','get','delete','destroy','create','post','isAuthenticated','clone','Router','show','express','put','index'];(function(_0x25da08,_0x463eb5){const _0xba81ab=function(_0x46f5af){while(--_0x46f5af){_0x25da08['push'](_0x25da08['shift']());}};_0xba81ab(++_0x463eb5);}(a641_0x463e,0x13d));const a641_0xba81=function(_0x25da08,_0x463eb5){_0x25da08=_0x25da08-0x0;let _0xba81ab=a641_0x463e[_0x25da08];return _0xba81ab;};const _0x38e0e9=a641_0xba81;'use strict';const express=require(_0x38e0e9('0x0')),router=express[_0x38e0e9('0xe')](),auth=require(_0x38e0e9('0x4')),controller=require('./trunk.controller');router[_0x38e0e9('0x7')]('/',auth[_0x38e0e9('0xc')](),controller[_0x38e0e9('0x2')]),router[_0x38e0e9('0x7')](_0x38e0e9('0x5'),auth[_0x38e0e9('0xc')](),controller[_0x38e0e9('0xf')]),router['post']('/:id/clone',auth[_0x38e0e9('0xc')](),controller[_0x38e0e9('0xd')]),router[_0x38e0e9('0xb')]('/',auth[_0x38e0e9('0xc')](),controller[_0x38e0e9('0xa')]),router[_0x38e0e9('0x1')](_0x38e0e9('0x5'),auth[_0x38e0e9('0xc')](),controller[_0x38e0e9('0x6')]),router[_0x38e0e9('0x8')](_0x38e0e9('0x5'),auth[_0x38e0e9('0xc')](),controller[_0x38e0e9('0x9')]),module[_0x38e0e9('0x3')]=router; \ No newline at end of file diff --git a/server/api/trunk/trunk.attributes.js b/server/api/trunk/trunk.attributes.js index 1b3caee..3659d5f 100644 --- a/server/api/trunk/trunk.attributes.js +++ b/server/api/trunk/trunk.attributes.js @@ -1 +1 @@ -const a642_0x3198=['friend','join','user','ulaw;alaw;gsm','update','dynamic','always','PROHIB_PASSED_SCREEN','name','never','INTEGER','exports','nat','force_rport,comedia','outgoing','fingerprint','PROHIB','certificate','STRING','allow','split','pai','accept','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','setDataValue','ALLOWED','nonat','refuse','shortinfo','yes','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','active','uac','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','transport','ALLOWED_PASSED_SCREEN','PROHIB_FAILED_SCREEN','ALLOWED_FAILED_SCREEN','insecure','uas','originate','inband','all','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]','getDataValue','ENUM'];(function(_0x3632fb,_0x3198a2){const _0x30b061=function(_0x2bf9f7){while(--_0x2bf9f7){_0x3632fb['push'](_0x3632fb['shift']());}};_0x30b061(++_0x3198a2);}(a642_0x3198,0x1e9));const a642_0x30b0=function(_0x3632fb,_0x3198a2){_0x3632fb=_0x3632fb-0x0;let _0x30b061=a642_0x3198[_0x3632fb];return _0x30b061;};const _0x48d443=a642_0x30b0;'use strict';const Sequelize=require('sequelize');module[_0x48d443('0x1c')]={'name':{'type':Sequelize[_0x48d443('0x23')],'allowNull':![],'unique':_0x48d443('0x19'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize['ENUM']('friend',_0x48d443('0x13'),'peer'),'allowNull':![],'defaultValue':_0x48d443('0x11')},'context':{'type':Sequelize[_0x48d443('0x23')],'allowNull':![],'defaultValue':'from-voip-provider'},'callingpres':{'type':Sequelize['ENUM']('ALLOWED_NOT_SCREENED',_0x48d443('0x6'),_0x48d443('0x8'),_0x48d443('0x2a'),'PROHIB_NOT_SCREENED',_0x48d443('0x18'),_0x48d443('0x7'),_0x48d443('0x21'))},'deny':{'type':Sequelize[_0x48d443('0x23')]},'permit':{'type':Sequelize[_0x48d443('0x23')]},'secret':{'type':Sequelize['STRING']},'md5secret':{'type':Sequelize['STRING']},'remotesecret':{'type':Sequelize[_0x48d443('0x23')]},'transport':{'type':Sequelize['STRING'],'defaultValue':'udp','set':function(_0x2bf9f7){const _0x241c74=_0x48d443;this['setDataValue']('transport',_0x2bf9f7?_0x2bf9f7[_0x241c74('0x12')](','):null);},'get':function(){const _0x38afe9=_0x48d443;return this[_0x38afe9('0xf')]('transport')?this[_0x38afe9('0xf')](_0x38afe9('0x5'))['split'](','):null;},'comment':_0x48d443('0x1')},'dtmfmode':{'type':Sequelize[_0x48d443('0x10')]('rfc2833','info',_0x48d443('0x2d'),_0x48d443('0xc'),'auto'),'defaultValue':'rfc2833'},'directmedia':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no','nonat','update',_0x48d443('0x1f')),'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no'),'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x48d443('0x23')]},'directmediadeny':{'type':Sequelize['STRING']},'nat':{'type':Sequelize[_0x48d443('0x23')],'defaultValue':_0x48d443('0x1e'),'set':function(_0x3e4639){const _0x23038f=_0x48d443;this['setDataValue'](_0x23038f('0x1d'),_0x3e4639?_0x3e4639[_0x23038f('0x12')](','):null);},'get':function(){const _0x5a708e=_0x48d443;return this[_0x5a708e('0xf')]('nat')?this[_0x5a708e('0xf')](_0x5a708e('0x1d'))['split'](','):null;},'comment':_0x48d443('0x28')},'callgroup':{'type':Sequelize[_0x48d443('0x23')]},'namedcallgroup':{'type':Sequelize[_0x48d443('0x23')]},'pickupgroup':{'type':Sequelize[_0x48d443('0x23')]},'namedpickupgroup':{'type':Sequelize[_0x48d443('0x23')]},'language':{'type':Sequelize[_0x48d443('0x23')],'defaultValue':'en'},'tonezone':{'type':Sequelize['STRING'],'allowNull':!![]},'disallow':{'type':Sequelize['STRING'],'defaultValue':_0x48d443('0xd')},'allow':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'ulaw;alaw;gsm','set':function(_0x49ae40){const _0x1528ff=_0x48d443;this[_0x1528ff('0x29')](_0x1528ff('0x24'),_0x49ae40?_0x49ae40['join'](';'):_0x1528ff('0x14'));},'get':function(){const _0x4fdf2d=_0x48d443;return this[_0x4fdf2d('0xf')](_0x4fdf2d('0x24'))?this[_0x4fdf2d('0xf')](_0x4fdf2d('0x24'))[_0x4fdf2d('0x25')](';'):null;},'comment':_0x48d443('0xe')},'autoframing':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'insecure':{'type':Sequelize[_0x48d443('0x23')],'defaultValue':'port,invite','set':function(_0x30dd6c){const _0x50c33c=_0x48d443;this['setDataValue'](_0x50c33c('0x9'),_0x30dd6c?_0x30dd6c['join'](','):null);},'get':function(){const _0x3e6d8f=_0x48d443;return this[_0x3e6d8f('0xf')](_0x3e6d8f('0x9'))?this[_0x3e6d8f('0xf')](_0x3e6d8f('0x9'))[_0x3e6d8f('0x25')](','):null;},'comment':_0x48d443('0x4')},'trustrpid':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no'),'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize['ENUM'](_0x48d443('0x0'),'no'),'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x48d443('0x10')]('yes','no',_0x48d443('0x1a'))},'promiscredir':{'type':Sequelize['ENUM']('yes','no')},'useclientcode':{'type':Sequelize[_0x48d443('0x10')]('yes','no')},'accountcode':{'type':Sequelize['INTEGER'](0xb)},'setvar':{'type':Sequelize[_0x48d443('0x23')]},'callerid':{'type':Sequelize['STRING'],'defaultValue':'\x22\x22\x20<>'},'amaflags':{'type':Sequelize[_0x48d443('0x23')]},'callcounter':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no'),'defaultValue':_0x48d443('0x0')},'busylevel':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'allowoverlap':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'allowsubscribe':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'allowtransfer':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'ignoresdpversion':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'subscribecontext':{'type':Sequelize[_0x48d443('0x23')]},'template':{'type':Sequelize[_0x48d443('0x23')]},'videosupport':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no',_0x48d443('0x17')),'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'rfc2833compensate':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'mailbox':{'type':Sequelize[_0x48d443('0x23')]},'session_timers':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x27'),_0x48d443('0x2c'),_0x48d443('0xb'))},'session_expires':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'session_minse':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'session_refresher':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x3'),_0x48d443('0xa')),'defaultValue':_0x48d443('0xa')},'t38pt_usertpsource':{'type':Sequelize[_0x48d443('0x23')]},'regexten':{'type':Sequelize['STRING']},'fromdomain':{'type':Sequelize['STRING']},'fromuser':{'type':Sequelize[_0x48d443('0x23')]},'port':{'type':Sequelize['INTEGER'](0x5)},'qualify':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no'),'defaultValue':_0x48d443('0x0')},'keepalive':{'type':Sequelize['INTEGER'](0xb)},'defaultip':{'type':Sequelize[_0x48d443('0x23')]},'defaultuser':{'type':Sequelize['STRING']},'rtptimeout':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'rtpholdtimeout':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'rtpkeepalive':{'type':Sequelize['INTEGER'](0xb)},'sendrpid':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no',_0x48d443('0x26')),'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x48d443('0x23')]},'callbackextension':{'type':Sequelize['STRING']},'timert1':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'timerb':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'qualifyfreq':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'contactpermit':{'type':Sequelize['STRING']},'contactdeny':{'type':Sequelize['STRING']},'contactacl':{'type':Sequelize[_0x48d443('0x23')]},'unsolicited_mailbox':{'type':Sequelize[_0x48d443('0x23')]},'use_q850_reason':{'type':Sequelize[_0x48d443('0x23')]},'maxforwards':{'type':Sequelize['INTEGER'](0xb)},'encryption':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no'),'defaultValue':'no'},'avpf':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'force_avp':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'icesupport':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'dtlsenable':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'dtlsverify':{'type':Sequelize[_0x48d443('0x10')]('yes','no',_0x48d443('0x20'),_0x48d443('0x22'))},'dtlsrekey':{'type':Sequelize[_0x48d443('0x1b')](0xb)},'dtlscertfile':{'type':Sequelize[_0x48d443('0x23')]},'dtlsprivatekey':{'type':Sequelize['STRING']},'dtlscipher':{'type':Sequelize[_0x48d443('0x23')]},'dtlscafile':{'type':Sequelize['STRING']},'dtlscapath':{'type':Sequelize[_0x48d443('0x23')]},'dtlssetup':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x2'),'passive','actpass'),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x48d443('0x23')]},'usereqphone':{'type':Sequelize['ENUM'](_0x48d443('0x0'),'no'),'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x48d443('0x23')]},'recordofffeature':{'type':Sequelize[_0x48d443('0x23')]},'call_limit':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x3e8},'registertrying':{'type':Sequelize[_0x48d443('0x10')]('yes','no')},'subscribemwi':{'type':Sequelize[_0x48d443('0x10')](_0x48d443('0x0'),'no')},'vmexten':{'type':Sequelize[_0x48d443('0x23')]},'mohinterpret':{'type':Sequelize[_0x48d443('0x23')]},'mohsuggest':{'type':Sequelize[_0x48d443('0x23')]},'parkinglot':{'type':Sequelize[_0x48d443('0x23')]},'description':{'type':Sequelize[_0x48d443('0x23')]},'host':{'type':Sequelize[_0x48d443('0x23')],'defaultValue':_0x48d443('0x16')},'canreinvite':{'type':Sequelize['ENUM'](_0x48d443('0x0'),'no',_0x48d443('0x2b'),_0x48d443('0x15'),'update,nonat'),'defaultValue':'no'},'registry':{'type':Sequelize['STRING']},'otherFields':{'type':Sequelize[_0x48d443('0x23')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':Sequelize[_0x48d443('0x23')],'defaultValue':'no'}}; \ No newline at end of file +const a642_0x2b36=['friend','update','force_rport,comedia','refuse','exports','INTEGER','fingerprint','PROHIB_FAILED_SCREEN','originate','accept','ALLOWED_PASSED_SCREEN','split','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','nonat','nat','insecure','user','uas','from-voip-provider','passive','port,invite','PROHIB_NOT_SCREENED','setDataValue','auto','shortinfo','ALLOWED_NOT_SCREENED','ENUM','\x22\x22\x20<>','join','certificate','pai','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','ALLOWED','allow','never','peer','active','rfc2833','STRING','getDataValue','ulaw;alaw;gsm','inband','name','uac','yes','transport','PROHIB','sequelize','all','info'];(function(_0x239fa9,_0x2b368b){const _0x39618d=function(_0x57301a){while(--_0x57301a){_0x239fa9['push'](_0x239fa9['shift']());}};_0x39618d(++_0x2b368b);}(a642_0x2b36,0x174));const a642_0x3961=function(_0x239fa9,_0x2b368b){_0x239fa9=_0x239fa9-0x0;let _0x39618d=a642_0x2b36[_0x239fa9];return _0x39618d;};const _0x44c127=a642_0x3961;'use strict';const Sequelize=require(_0x44c127('0x21'));module[_0x44c127('0x28')]={'name':{'type':Sequelize[_0x44c127('0x18')],'allowNull':![],'unique':_0x44c127('0x1c'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x24'),_0x44c127('0x1'),_0x44c127('0x15')),'allowNull':![],'defaultValue':_0x44c127('0x24')},'context':{'type':Sequelize[_0x44c127('0x18')],'allowNull':![],'defaultValue':_0x44c127('0x3')},'callingpres':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0xa'),_0x44c127('0x2e'),'ALLOWED_FAILED_SCREEN',_0x44c127('0x12'),_0x44c127('0x6'),'PROHIB_PASSED_SCREEN',_0x44c127('0x2b'),_0x44c127('0x20'))},'deny':{'type':Sequelize[_0x44c127('0x18')]},'permit':{'type':Sequelize[_0x44c127('0x18')]},'secret':{'type':Sequelize[_0x44c127('0x18')]},'md5secret':{'type':Sequelize[_0x44c127('0x18')]},'remotesecret':{'type':Sequelize['STRING']},'transport':{'type':Sequelize[_0x44c127('0x18')],'defaultValue':'udp','set':function(_0x57301a){const _0x13d101=_0x44c127;this[_0x13d101('0x7')](_0x13d101('0x1f'),_0x57301a?_0x57301a['join'](','):null);},'get':function(){const _0x281a11=_0x44c127;return this[_0x281a11('0x19')](_0x281a11('0x1f'))?this[_0x281a11('0x19')](_0x281a11('0x1f'))[_0x281a11('0x2f')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]'},'dtmfmode':{'type':Sequelize['ENUM']('rfc2833',_0x44c127('0x23'),_0x44c127('0x9'),_0x44c127('0x1b'),_0x44c127('0x8')),'defaultValue':_0x44c127('0x17')},'directmedia':{'type':Sequelize['ENUM'](_0x44c127('0x1e'),'no',_0x44c127('0x31'),_0x44c127('0x25'),'outgoing'),'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no'),'defaultValue':'no'},'directmediapermit':{'type':Sequelize['STRING']},'directmediadeny':{'type':Sequelize[_0x44c127('0x18')]},'nat':{'type':Sequelize[_0x44c127('0x18')],'defaultValue':_0x44c127('0x26'),'set':function(_0xa2d3e2){const _0x5b22a0=_0x44c127;this[_0x5b22a0('0x7')](_0x5b22a0('0x32'),_0xa2d3e2?_0xa2d3e2[_0x5b22a0('0xd')](','):null);},'get':function(){const _0x490645=_0x44c127;return this[_0x490645('0x19')](_0x490645('0x32'))?this[_0x490645('0x19')](_0x490645('0x32'))[_0x490645('0x2f')](','):null;},'comment':_0x44c127('0x11')},'callgroup':{'type':Sequelize['STRING']},'namedcallgroup':{'type':Sequelize[_0x44c127('0x18')]},'pickupgroup':{'type':Sequelize['STRING']},'namedpickupgroup':{'type':Sequelize[_0x44c127('0x18')]},'language':{'type':Sequelize[_0x44c127('0x18')],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x44c127('0x18')],'allowNull':!![]},'disallow':{'type':Sequelize['STRING'],'defaultValue':_0x44c127('0x22')},'allow':{'type':Sequelize[_0x44c127('0x18')],'allowNull':![],'defaultValue':_0x44c127('0x1a'),'set':function(_0x4aacee){const _0x12152d=_0x44c127;this[_0x12152d('0x7')]('allow',_0x4aacee?_0x4aacee[_0x12152d('0xd')](';'):_0x12152d('0x1a'));},'get':function(){const _0x3c6a7b=_0x44c127;return this[_0x3c6a7b('0x19')](_0x3c6a7b('0x13'))?this['getDataValue']('allow')['split'](';'):null;},'comment':_0x44c127('0x10')},'autoframing':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'insecure':{'type':Sequelize[_0x44c127('0x18')],'defaultValue':_0x44c127('0x5'),'set':function(_0x29562c){const _0x26f165=_0x44c127;this['setDataValue'](_0x26f165('0x0'),_0x29562c?_0x29562c[_0x26f165('0xd')](','):null);},'get':function(){const _0x31880d=_0x44c127;return this[_0x31880d('0x19')](_0x31880d('0x0'))?this['getDataValue'](_0x31880d('0x0'))['split'](','):null;},'comment':_0x44c127('0x30')},'trustrpid':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize['ENUM'](_0x44c127('0x1e'),'no'),'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x44c127('0xb')]('yes','no',_0x44c127('0x14'))},'promiscredir':{'type':Sequelize['ENUM'](_0x44c127('0x1e'),'no')},'useclientcode':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'accountcode':{'type':Sequelize[_0x44c127('0x29')](0xb)},'setvar':{'type':Sequelize[_0x44c127('0x18')]},'callerid':{'type':Sequelize[_0x44c127('0x18')],'defaultValue':_0x44c127('0xc')},'amaflags':{'type':Sequelize[_0x44c127('0x18')]},'callcounter':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no'),'defaultValue':'yes'},'busylevel':{'type':Sequelize[_0x44c127('0x29')](0xb)},'allowoverlap':{'type':Sequelize['ENUM'](_0x44c127('0x1e'),'no')},'allowsubscribe':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'allowtransfer':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'ignoresdpversion':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'subscribecontext':{'type':Sequelize[_0x44c127('0x18')]},'template':{'type':Sequelize[_0x44c127('0x18')]},'videosupport':{'type':Sequelize[_0x44c127('0xb')]('yes','no','always'),'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x44c127('0x29')](0xb)},'rfc2833compensate':{'type':Sequelize['ENUM'](_0x44c127('0x1e'),'no')},'mailbox':{'type':Sequelize[_0x44c127('0x18')]},'session_timers':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x2d'),_0x44c127('0x27'),_0x44c127('0x2c'))},'session_expires':{'type':Sequelize[_0x44c127('0x29')](0xb)},'session_minse':{'type':Sequelize[_0x44c127('0x29')](0xb)},'session_refresher':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1d'),'uas'),'defaultValue':_0x44c127('0x2')},'t38pt_usertpsource':{'type':Sequelize[_0x44c127('0x18')]},'regexten':{'type':Sequelize[_0x44c127('0x18')]},'fromdomain':{'type':Sequelize[_0x44c127('0x18')]},'fromuser':{'type':Sequelize[_0x44c127('0x18')]},'port':{'type':Sequelize[_0x44c127('0x29')](0x5)},'qualify':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no'),'defaultValue':_0x44c127('0x1e')},'keepalive':{'type':Sequelize[_0x44c127('0x29')](0xb)},'defaultip':{'type':Sequelize[_0x44c127('0x18')]},'defaultuser':{'type':Sequelize[_0x44c127('0x18')]},'rtptimeout':{'type':Sequelize[_0x44c127('0x29')](0xb)},'rtpholdtimeout':{'type':Sequelize[_0x44c127('0x29')](0xb)},'rtpkeepalive':{'type':Sequelize[_0x44c127('0x29')](0xb)},'sendrpid':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no',_0x44c127('0xf')),'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x44c127('0x18')]},'callbackextension':{'type':Sequelize[_0x44c127('0x18')]},'timert1':{'type':Sequelize[_0x44c127('0x29')](0xb)},'timerb':{'type':Sequelize[_0x44c127('0x29')](0xb)},'qualifyfreq':{'type':Sequelize[_0x44c127('0x29')](0xb)},'contactpermit':{'type':Sequelize[_0x44c127('0x18')]},'contactdeny':{'type':Sequelize['STRING']},'contactacl':{'type':Sequelize[_0x44c127('0x18')]},'unsolicited_mailbox':{'type':Sequelize[_0x44c127('0x18')]},'use_q850_reason':{'type':Sequelize[_0x44c127('0x18')]},'maxforwards':{'type':Sequelize[_0x44c127('0x29')](0xb)},'encryption':{'type':Sequelize[_0x44c127('0xb')]('yes','no'),'defaultValue':'no'},'avpf':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'force_avp':{'type':Sequelize[_0x44c127('0xb')]('yes','no')},'icesupport':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'dtlsenable':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'dtlsverify':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no',_0x44c127('0x2a'),_0x44c127('0xe'))},'dtlsrekey':{'type':Sequelize[_0x44c127('0x29')](0xb)},'dtlscertfile':{'type':Sequelize[_0x44c127('0x18')]},'dtlsprivatekey':{'type':Sequelize['STRING']},'dtlscipher':{'type':Sequelize[_0x44c127('0x18')]},'dtlscafile':{'type':Sequelize[_0x44c127('0x18')]},'dtlscapath':{'type':Sequelize['STRING']},'dtlssetup':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x16'),_0x44c127('0x4'),'actpass'),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize['STRING']},'usereqphone':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'recordonfeature':{'type':Sequelize['STRING']},'recordofffeature':{'type':Sequelize['STRING']},'call_limit':{'type':Sequelize[_0x44c127('0x29')](0xb),'defaultValue':0x3e8},'registertrying':{'type':Sequelize[_0x44c127('0xb')](_0x44c127('0x1e'),'no')},'subscribemwi':{'type':Sequelize[_0x44c127('0xb')]('yes','no')},'vmexten':{'type':Sequelize[_0x44c127('0x18')]},'mohinterpret':{'type':Sequelize[_0x44c127('0x18')]},'mohsuggest':{'type':Sequelize[_0x44c127('0x18')]},'parkinglot':{'type':Sequelize[_0x44c127('0x18')]},'description':{'type':Sequelize[_0x44c127('0x18')]},'host':{'type':Sequelize['STRING'],'defaultValue':'dynamic'},'canreinvite':{'type':Sequelize[_0x44c127('0xb')]('yes','no','nonat',_0x44c127('0x25'),'update,nonat'),'defaultValue':'no'},'registry':{'type':Sequelize[_0x44c127('0x18')]},'otherFields':{'type':Sequelize[_0x44c127('0x18')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':Sequelize[_0x44c127('0x18')],'defaultValue':'no'}}; \ No newline at end of file diff --git a/server/api/trunk/trunk.controller.js b/server/api/trunk/trunk.controller.js index 1cd7728..05b97b9 100644 --- a/server/api/trunk/trunk.controller.js +++ b/server/api/trunk/trunk.controller.js @@ -1 +1 @@ -const a643_0x350d=['jayson/promise','info','/etc/asterisk/sip_xcally_registers.conf','then','intersection','send','readFileSync','http','chan_sip.so','/etc/asterisk/sip_xcally_trunks.conf','filters','fieldName','userProfileId','pick','root','offset','Content-Range','fields','model','update','Trunks','join','get','Trunk,\x20%s,\x20%s','createdAt','../../mysqldb','updatedAt','error','key','undefined','length','show','render','server/files/templates/registry.ejs','keys','autoAssociation','Trunk','result','includeAll','Reload','utf8','type','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','attributes','like','end','destroy','findOne','message','include','map','options','params','path','limit','request\x20sent','create','stringify','nolimit','writeFileSync','client','UserProfileSection','catch','merge','../../components/parsers/qs','../../config/logger','../../config/environment','count','query','user','rawAttributes','omit','Trunk,\x20%s,\x20%s,\x20%s','order','server/files/templates/trunk.ejs','api','sendStatus','Unable\x20to\x20retrieve\x20the\x20current\x20user','debug','role','status','findAll','set','UserProfileResource','body','filter','where','VIRTUAL','name'];(function(_0x3af3b9,_0x350d7f){const _0x3eb010=function(_0x1c1bd8){while(--_0x1c1bd8){_0x3af3b9['push'](_0x3af3b9['shift']());}};_0x3eb010(++_0x350d7f);}(a643_0x350d,0xc9));const a643_0x3eb0=function(_0x3af3b9,_0x350d7f){_0x3af3b9=_0x3af3b9-0x0;let _0x3eb010=a643_0x350d[_0x3af3b9];return _0x3eb010;};const _0x2de768=a643_0x3eb0;'use strict';const path=require(_0x2de768('0x1e')),ejs=require('ejs'),fs=require('fs'),_=require('lodash'),qs=require(_0x2de768('0x29')),logger=require(_0x2de768('0x2a'))(_0x2de768('0x34')),config=require(_0x2de768('0x2b')),db=require(_0x2de768('0x2'))['db'],{Op}=require('sequelize'),jayson=require(_0x2de768('0x42')),client=jayson[_0x2de768('0x25')][_0x2de768('0x49')]({'port':0x232a});function respondWithRpcPromise(_0x1c1bd8,_0x2b91d0,_0x4c3bc4,_0x2598cf){return new Promise(function(_0x3ae839,_0x8284dc){const _0x19e547=_0x2598cf||client;return _0x19e547['request'](_0x1c1bd8,_0x4c3bc4)['then'](function(_0x4f106f){const _0x392c4a=a643_0x3eb0;logger[_0x392c4a('0x43')](_0x392c4a('0x0'),_0x2b91d0,'request\x20sent'),logger[_0x392c4a('0x37')](_0x392c4a('0x31'),_0x2b91d0,_0x392c4a('0x20'),JSON[_0x392c4a('0x22')](_0x4f106f));if(_0x4f106f[_0x392c4a('0x4')]){if(_0x4f106f[_0x392c4a('0x4')]['code']===0x1f4)return logger[_0x392c4a('0x4')](_0x392c4a('0x0'),_0x2b91d0,_0x4f106f['error'][_0x392c4a('0x19')]),_0x8284dc(_0x4f106f[_0x392c4a('0x4')][_0x392c4a('0x19')]);return logger[_0x392c4a('0x4')]('Trunk,\x20%s,\x20%s',_0x2b91d0,_0x4f106f[_0x392c4a('0x4')][_0x392c4a('0x19')]),_0x3ae839(_0x4f106f[_0x392c4a('0x4')][_0x392c4a('0x19')]);}else logger['info'](_0x392c4a('0x0'),_0x2b91d0,_0x392c4a('0x20')),_0x3ae839(_0x4f106f[_0x392c4a('0xe')][_0x392c4a('0x19')]);})['catch'](function(_0x1fd736){const _0x388f73=a643_0x3eb0;logger[_0x388f73('0x4')](_0x388f73('0x0'),_0x2b91d0,_0x1fd736),_0x8284dc(_0x1fd736);});});}function respondWithResult(_0xdb37c3,_0x2c6a1b){return _0x2c6a1b=_0x2c6a1b||0xc8,function(_0x1bb8d7){if(_0x1bb8d7)return _0xdb37c3['status'](_0x2c6a1b)['json'](_0x1bb8d7);};}function respondWithFilteredResult(_0x47fb1b,_0x52ae38){return function(_0x426fc0){const _0x4fda90=a643_0x3eb0;if(_0x426fc0){const _0xe6a3f1=_0x426fc0[_0x4fda90('0x2c')],_0xfdaa9d=_0x52ae38['offset'];let _0x411beb=_0x52ae38['offset']+_0x52ae38[_0x4fda90('0x1f')],_0xfa0afc;return _0x411beb>=_0xe6a3f1?(_0x411beb=_0xe6a3f1,_0xfa0afc=0xc8):_0xfa0afc=0xce,_0x47fb1b[_0x4fda90('0x39')](_0xfa0afc),_0x47fb1b[_0x4fda90('0x3b')](_0x4fda90('0x52'),_0xfdaa9d+'-'+_0x411beb+'/'+_0xe6a3f1)['json'](_0x426fc0);}return null;};}function saveUpdates(_0x19242c){return function(_0x3d0b72){const _0x398d86=a643_0x3eb0;if(_0x3d0b72)return _0x3d0b72['update'](_0x19242c)[_0x398d86('0x45')](function(_0x175c17){return _0x175c17;});return null;};}function removeEntity(_0x422559){return function(_0x4d3043){const _0x437ba1=a643_0x3eb0;if(_0x4d3043)return _0x4d3043[_0x437ba1('0x17')]()[_0x437ba1('0x45')](function(){const _0x296319=_0x437ba1,_0x2556c4=_0x4d3043[_0x296319('0x58')]({'plain':!![]}),_0x1a18af=_0x296319('0x56');return db[_0x296319('0x3c')]['destroy']({'where':{'type':_0x1a18af,'resourceId':_0x2556c4['id']}})['then'](function(){return _0x4d3043;});})[_0x437ba1('0x45')](function(){const _0x5ca9fa=_0x437ba1;_0x422559[_0x5ca9fa('0x39')](0xcc)[_0x5ca9fa('0x16')]();});};}function handleEntityNotFound(_0x43f443){return function(_0xfc36){const _0xcba6e8=a643_0x3eb0;return!_0xfc36&&_0x43f443[_0xcba6e8('0x35')](0x194),_0xfc36;};}function handleError(_0x184633,_0x3ded9b){return _0x3ded9b=_0x3ded9b||0x1f4,function(_0x35113a){const _0x4d9c14=a643_0x3eb0;logger[_0x4d9c14('0x4')](_0x35113a['stack']),_0x35113a['name']&&delete _0x35113a[_0x4d9c14('0x41')],_0x184633[_0x4d9c14('0x39')](_0x3ded9b)[_0x4d9c14('0x47')](_0x35113a);};}exports['index']=function(_0x56cda3,_0x3a364f){const _0x95430b=_0x2de768;let _0x142cb0={};const _0x3e1490={},_0x30000a={'count':0x0,'rows':[]},_0x44ed3f=_['map'](db[_0x95430b('0xd')][_0x95430b('0x2f')],function(_0x41c30f){const _0x18dffc=_0x95430b;return{'name':_0x41c30f[_0x18dffc('0x4d')],'type':_0x41c30f[_0x18dffc('0x12')][_0x18dffc('0x5')]};});_0x3e1490['model']=_['map'](_0x44ed3f,_0x95430b('0x41')),_0x3e1490[_0x95430b('0x2d')]=_[_0x95430b('0xb')](_0x56cda3[_0x95430b('0x2d')]),_0x3e1490[_0x95430b('0x4c')]=_['intersection'](_0x3e1490[_0x95430b('0x54')],_0x3e1490[_0x95430b('0x2d')]),_0x142cb0['attributes']=_['intersection'](_0x3e1490[_0x95430b('0x54')],qs[_0x95430b('0x53')](_0x56cda3[_0x95430b('0x2d')]['fields'])),_0x142cb0[_0x95430b('0x14')]=_0x142cb0['attributes'][_0x95430b('0x7')]?_0x142cb0[_0x95430b('0x14')]:_0x3e1490[_0x95430b('0x54')];typeof _0x56cda3[_0x95430b('0x2d')][_0x95430b('0x23')]===_0x95430b('0x6')&&(_0x142cb0[_0x95430b('0x1f')]=qs[_0x95430b('0x1f')](_0x56cda3['query'][_0x95430b('0x1f')]),_0x142cb0[_0x95430b('0x51')]=qs[_0x95430b('0x51')](_0x56cda3[_0x95430b('0x2d')]['offset']));_0x142cb0[_0x95430b('0x32')]=qs['sort'](_0x56cda3[_0x95430b('0x2d')]['sort']),_0x142cb0[_0x95430b('0x3f')]=qs[_0x95430b('0x4c')](_[_0x95430b('0x4f')](_0x56cda3[_0x95430b('0x2d')],_0x3e1490[_0x95430b('0x4c')]),_0x44ed3f);_0x56cda3[_0x95430b('0x2d')][_0x95430b('0x3e')]&&(_0x142cb0[_0x95430b('0x3f')]=_[_0x95430b('0x28')](_0x142cb0['where'],{[Op['or']]:_[_0x95430b('0x1b')](_0x44ed3f,function(_0x3f1f8e){const _0x1c6274=_0x95430b;if(_0x3f1f8e[_0x1c6274('0x12')]!==_0x1c6274('0x40')){const _0x4c8f1c={};return _0x4c8f1c[_0x3f1f8e[_0x1c6274('0x41')]]={[Op[_0x1c6274('0x15')]]:'%'+_0x56cda3['query'][_0x1c6274('0x3e')]+'%'},_0x4c8f1c;}})}));_0x142cb0=_['merge']({},_0x142cb0,_0x56cda3['options']);const _0x564d50={'where':_0x142cb0[_0x95430b('0x3f')]};return db[_0x95430b('0xd')][_0x95430b('0x2c')](_0x564d50)[_0x95430b('0x45')](function(_0x3dc7e6){const _0x4a76f2=_0x95430b;return _0x30000a[_0x4a76f2('0x2c')]=_0x3dc7e6,_0x56cda3[_0x4a76f2('0x2d')][_0x4a76f2('0xf')]&&(_0x142cb0[_0x4a76f2('0x1a')]=[{'all':!![]}]),db[_0x4a76f2('0xd')]['findAll'](_0x142cb0);})['then'](function(_0x43b718){return _0x30000a['rows']=_0x43b718,_0x30000a;})['then'](respondWithFilteredResult(_0x3a364f,_0x142cb0))[_0x95430b('0x27')](handleError(_0x3a364f,null));},exports[_0x2de768('0x8')]=function(_0xeea3b3,_0x26556f){const _0x38c1b1=_0x2de768;let _0x152bd5={'raw':![],'where':{'id':_0xeea3b3[_0x38c1b1('0x1d')]['id']}};const _0x5b94b3={};return _0x5b94b3['model']=_['keys'](db[_0x38c1b1('0xd')]['rawAttributes']),_0x5b94b3[_0x38c1b1('0x2d')]=_[_0x38c1b1('0xb')](_0xeea3b3['query']),_0x5b94b3[_0x38c1b1('0x4c')]=_['intersection'](_0x5b94b3[_0x38c1b1('0x54')],_0x5b94b3[_0x38c1b1('0x2d')]),_0x152bd5[_0x38c1b1('0x14')]=_[_0x38c1b1('0x46')](_0x5b94b3[_0x38c1b1('0x54')],qs['fields'](_0xeea3b3['query']['fields'])),_0x152bd5[_0x38c1b1('0x14')]=_0x152bd5[_0x38c1b1('0x14')]['length']?_0x152bd5[_0x38c1b1('0x14')]:_0x5b94b3[_0x38c1b1('0x54')],_0xeea3b3[_0x38c1b1('0x2d')]['includeAll']&&(_0x152bd5[_0x38c1b1('0x1a')]=[{'all':!![]}]),_0x152bd5=_[_0x38c1b1('0x28')]({},_0x152bd5,_0xeea3b3[_0x38c1b1('0x1c')]),db[_0x38c1b1('0xd')][_0x38c1b1('0x18')](_0x152bd5)[_0x38c1b1('0x45')](handleEntityNotFound(_0x26556f,null))[_0x38c1b1('0x45')](respondWithResult(_0x26556f,null))[_0x38c1b1('0x27')](handleError(_0x26556f,null));},exports['clone']=function(_0x536b75,_0x27eaeb){const _0x3fd2d5=_0x2de768;let _0x1b4fb0={'where':{'id':_0x536b75[_0x3fd2d5('0x1d')]['id']}};const _0x5c75a2={};return _0x5c75a2[_0x3fd2d5('0x54')]=_['keys'](db['Trunk'][_0x3fd2d5('0x2f')]),_0x1b4fb0['attributes']=_[_0x3fd2d5('0x46')](_0x5c75a2[_0x3fd2d5('0x54')],qs[_0x3fd2d5('0x53')](_0x536b75[_0x3fd2d5('0x2d')][_0x3fd2d5('0x53')])),_0x1b4fb0['attributes']=_0x1b4fb0['attributes'][_0x3fd2d5('0x7')]?_0x1b4fb0[_0x3fd2d5('0x14')]:_0x5c75a2['model'],_0x536b75[_0x3fd2d5('0x2d')][_0x3fd2d5('0xf')]&&(_0x1b4fb0[_0x3fd2d5('0x1a')]=[{'all':!![]}]),_0x1b4fb0=_[_0x3fd2d5('0x28')]({},_0x1b4fb0,_0x536b75[_0x3fd2d5('0x1c')]),db[_0x3fd2d5('0xd')][_0x3fd2d5('0x18')](_0x1b4fb0)[_0x3fd2d5('0x45')](handleEntityNotFound(_0x27eaeb,null))[_0x3fd2d5('0x45')](function(_0x469f76){const _0x585d28=_0x3fd2d5;if(_0x469f76){let _0x17dc56=_0x469f76['get']({'plain':!![]});return _0x17dc56=qs[_0x585d28('0x30')](_0x17dc56,['id',_0x585d28('0x1'),_0x585d28('0x3')]),_0x536b75['body']=_[_0x585d28('0x30')](_0x536b75[_0x585d28('0x3d')],['id',_0x585d28('0x1'),'updatedAt']),db['Trunk']['create'](_[_0x585d28('0x28')](_0x17dc56,_0x536b75[_0x585d28('0x3d')]),{'include':_0x536b75['query']['includeAll']?[{'all':!![]}]:undefined})[_0x585d28('0x45')](function(_0x53de48){const _0x2b5cc8=_0x585d28,_0x3d39ad=_0x536b75['user']['get']({'plain':!![]});if(!_0x3d39ad)throw new Error(_0x2b5cc8('0x36'));if(_0x3d39ad[_0x2b5cc8('0x38')]===_0x2b5cc8('0x2e')){const _0x358643=_0x53de48[_0x2b5cc8('0x58')]({'plain':!![]}),_0x450dc0=_0x2b5cc8('0x56');return db[_0x2b5cc8('0x26')][_0x2b5cc8('0x18')]({'where':{'name':_0x450dc0,'userProfileId':_0x3d39ad[_0x2b5cc8('0x4e')]},'raw':!![]})[_0x2b5cc8('0x45')](function(_0x1e1bf7){const _0x5bf2a9=_0x2b5cc8;return _0x1e1bf7&&_0x1e1bf7[_0x5bf2a9('0xc')]===0x0?db[_0x5bf2a9('0x3c')][_0x5bf2a9('0x21')]({'name':_0x358643[_0x5bf2a9('0x41')],'resourceId':_0x358643['id'],'type':_0x1e1bf7['name'],'sectionId':_0x1e1bf7['id']},{})['then'](function(){return _0x53de48;}):_0x53de48;})['catch'](function(_0xa5ad31){const _0x4d524b=_0x2b5cc8;logger['error'](_0x4d524b('0x13'),_0xa5ad31);throw _0xa5ad31;});}return _0x53de48;});}})[_0x3fd2d5('0x45')](respondWithResult(_0x27eaeb,0xc9))[_0x3fd2d5('0x27')](handleError(_0x27eaeb,null));},exports['create']=function(_0x21aa2e,_0x377286){const _0x167860=_0x2de768;let _0x3848ed;return db[_0x167860('0xd')][_0x167860('0x21')](_0x21aa2e[_0x167860('0x3d')],{'raw':!![]})[_0x167860('0x45')](function(_0x2bc63a){const _0x2ae03e=_0x167860;return _0x3848ed=_0x2bc63a,db['Trunk'][_0x2ae03e('0x3a')]({'raw':!![]});})[_0x167860('0x45')](function(_0x2d947a){const _0x341812=_0x167860,_0x3566aa=fs[_0x341812('0x48')](path[_0x341812('0x57')](config[_0x341812('0x50')],'server/files/templates/trunk.ejs'),_0x341812('0x11')),_0x249936=fs['readFileSync'](path[_0x341812('0x57')](config[_0x341812('0x50')],'server/files/templates/registry.ejs'),_0x341812('0x11')),_0x3572fa=ejs[_0x341812('0x9')](_0x3566aa,{'trunks':_0x2d947a||[]});fs[_0x341812('0x24')](_0x341812('0x4b'),_0x3572fa);if(_0x3848ed['registry']){const _0xd623b9=ejs['render'](_0x249936,{'trunks':_0x2d947a||[]});fs[_0x341812('0x24')]('/etc/asterisk/sip_xcally_registers.conf',_0xd623b9);}})['then'](function(){const _0x5db9b3=_0x167860;return respondWithRpcPromise('Reload',_0x5db9b3('0x21'),{'module':_0x5db9b3('0x4a')});})[_0x167860('0x45')](function(){const _0x30976e=_0x167860,_0x262080=_0x21aa2e[_0x30976e('0x2e')][_0x30976e('0x58')]({'plain':!![]});if(!_0x262080)throw new Error(_0x30976e('0x36'));if(_0x262080[_0x30976e('0x38')]===_0x30976e('0x2e')){const _0x49093c=_0x3848ed[_0x30976e('0x58')]({'plain':!![]});return db[_0x30976e('0x26')][_0x30976e('0x18')]({'where':{'name':_0x30976e('0x56'),'userProfileId':_0x262080['userProfileId']},'raw':!![]})[_0x30976e('0x45')](function(_0x2dbdd9){const _0x2ff9f6=_0x30976e;return _0x2dbdd9&&_0x2dbdd9[_0x2ff9f6('0xc')]===0x0?db[_0x2ff9f6('0x3c')][_0x2ff9f6('0x21')]({'name':_0x49093c[_0x2ff9f6('0x41')],'resourceId':_0x49093c['id'],'type':_0x2dbdd9[_0x2ff9f6('0x41')],'sectionId':_0x2dbdd9['id']},{})[_0x2ff9f6('0x45')](function(){return _0x3848ed;}):_0x3848ed;})[_0x30976e('0x27')](function(_0x5d6a9e){const _0x42752c=_0x30976e;logger[_0x42752c('0x4')](_0x42752c('0x13'),_0x5d6a9e);throw _0x5d6a9e;});}return _0x3848ed;})[_0x167860('0x45')](respondWithResult(_0x377286,0xc9))[_0x167860('0x27')](handleError(_0x377286,null));},exports['update']=function(_0x52aa1a,_0x14330d){const _0x3db597=_0x2de768;let _0xeb2b16;return db[_0x3db597('0xd')]['findOne']({'where':{'id':_0x52aa1a[_0x3db597('0x1d')]['id']}})[_0x3db597('0x45')](handleEntityNotFound(_0x14330d,null))[_0x3db597('0x45')](saveUpdates(_0x52aa1a[_0x3db597('0x3d')],null))[_0x3db597('0x45')](function(_0x4ba5b7){const _0xbf3eaa=_0x3db597;if(_0x4ba5b7)return _0xeb2b16=_0x4ba5b7,db[_0xbf3eaa('0xd')][_0xbf3eaa('0x3a')]({'raw':!![]});})[_0x3db597('0x45')](function(_0xd64061){const _0x4e5d15=_0x3db597;if(_0xd64061){const _0x4b590f=fs[_0x4e5d15('0x48')](path['join'](config[_0x4e5d15('0x50')],_0x4e5d15('0x33')),'utf8'),_0x8d0f1a=fs[_0x4e5d15('0x48')](path[_0x4e5d15('0x57')](config[_0x4e5d15('0x50')],'server/files/templates/registry.ejs'),'utf8'),_0x42d4df=ejs[_0x4e5d15('0x9')](_0x4b590f,{'trunks':_0xd64061||[]});fs['writeFileSync'](_0x4e5d15('0x4b'),_0x42d4df);const _0x558ecf=ejs[_0x4e5d15('0x9')](_0x8d0f1a,{'trunks':_0xd64061||[]});return fs[_0x4e5d15('0x24')](_0x4e5d15('0x44'),_0x558ecf),respondWithRpcPromise(_0x4e5d15('0x10'),_0x4e5d15('0x55'),{'module':_0x4e5d15('0x4a')});}return null;})[_0x3db597('0x45')](function(_0x5f0cae){if(_0x5f0cae)return _0xeb2b16;})['then'](respondWithResult(_0x14330d,null))[_0x3db597('0x27')](handleError(_0x14330d,null));},exports[_0x2de768('0x17')]=function(_0x6ecfdb,_0x392d0f){const _0x38e9e4=_0x2de768;return db[_0x38e9e4('0xd')][_0x38e9e4('0x18')]({'where':{'id':_0x6ecfdb[_0x38e9e4('0x1d')]['id']}})['then'](handleEntityNotFound(_0x392d0f,null))[_0x38e9e4('0x45')](removeEntity(_0x392d0f,null))[_0x38e9e4('0x45')](function(){const _0x4190dd=_0x38e9e4;return db[_0x4190dd('0xd')][_0x4190dd('0x3a')]({'raw':!![]});})[_0x38e9e4('0x45')](function(_0x249674){const _0x40a45b=_0x38e9e4,_0x225627=fs['readFileSync'](path[_0x40a45b('0x57')](config[_0x40a45b('0x50')],_0x40a45b('0x33')),_0x40a45b('0x11')),_0x43ff9d=fs['readFileSync'](path[_0x40a45b('0x57')](config['root'],_0x40a45b('0xa')),_0x40a45b('0x11')),_0x35f57f=ejs[_0x40a45b('0x9')](_0x225627,{'trunks':_0x249674}),_0x5e28c7=ejs['render'](_0x43ff9d,{'trunks':_0x249674});return fs[_0x40a45b('0x24')](_0x40a45b('0x4b'),_0x35f57f),fs['writeFileSync'](_0x40a45b('0x44'),_0x5e28c7),respondWithRpcPromise(_0x40a45b('0x10'),_0x40a45b('0x17'),{'module':_0x40a45b('0x4a')});})[_0x38e9e4('0x27')](handleError(_0x392d0f,null));}; \ No newline at end of file +const a643_0x1c6f=['query','clone','send','/etc/asterisk/sip_xcally_trunks.conf','request','root','server/files/templates/trunk.ejs','json','findAll','utf8','end','includeAll','create','count','keys','createdAt','Trunk,\x20%s,\x20%s,\x20%s','error','intersection','join','autoAssociation','limit','../../mysqldb','Reload','Trunks','../../config/environment','Unable\x20to\x20retrieve\x20the\x20current\x20user','request\x20sent','attributes','chan_sip.so','get','fields','/etc/asterisk/sip_xcally_registers.conf','userProfileId','merge','key','undefined','catch','status','Trunk,\x20%s,\x20%s','index','lodash','pick','../../components/parsers/qs','filters','rawAttributes','api','filter','options','VIRTUAL','then','fieldName','offset','nolimit','stack','length','http','destroy','code','map','user','findOne','omit','sort','sendStatus','message','body','role','writeFileSync','params','path','include','result','where','update','Trunk','rows','registry','readFileSync','order','render','server/files/templates/registry.ejs','client','type','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','model','jayson/promise','name','updatedAt','UserProfileResource'];(function(_0x4216ba,_0x1c6ffe){const _0x18a4bc=function(_0x1dd9e0){while(--_0x1dd9e0){_0x4216ba['push'](_0x4216ba['shift']());}};_0x18a4bc(++_0x1c6ffe);}(a643_0x1c6f,0xd1));const a643_0x18a4=function(_0x4216ba,_0x1c6ffe){_0x4216ba=_0x4216ba-0x0;let _0x18a4bc=a643_0x1c6f[_0x4216ba];return _0x18a4bc;};const _0x53c3d2=a643_0x18a4;'use strict';const path=require(_0x53c3d2('0x29')),ejs=require('ejs'),fs=require('fs'),_=require(_0x53c3d2('0xc')),qs=require(_0x53c3d2('0xe')),logger=require('../../config/logger')(_0x53c3d2('0x11')),config=require(_0x53c3d2('0x56')),db=require(_0x53c3d2('0x53'))['db'],{Op}=require('sequelize'),jayson=require(_0x53c3d2('0x39')),client=jayson[_0x53c3d2('0x35')][_0x53c3d2('0x1b')]({'port':0x232a});function respondWithRpcPromise(_0x1dd9e0,_0x36613e,_0x55d196,_0x66f5fb){return new Promise(function(_0x1de946,_0x470a81){const _0x3c67ba=a643_0x18a4,_0x284a4b=_0x66f5fb||client;return _0x284a4b[_0x3c67ba('0x41')](_0x1dd9e0,_0x55d196)[_0x3c67ba('0x15')](function(_0x2b159a){const _0x3e97f1=_0x3c67ba;logger['info'](_0x3e97f1('0xa'),_0x36613e,_0x3e97f1('0x58')),logger['debug'](_0x3e97f1('0x4d'),_0x36613e,_0x3e97f1('0x58'),JSON['stringify'](_0x2b159a));if(_0x2b159a[_0x3e97f1('0x4e')]){if(_0x2b159a[_0x3e97f1('0x4e')][_0x3e97f1('0x1d')]===0x1f4)return logger[_0x3e97f1('0x4e')](_0x3e97f1('0xa'),_0x36613e,_0x2b159a[_0x3e97f1('0x4e')][_0x3e97f1('0x24')]),_0x470a81(_0x2b159a[_0x3e97f1('0x4e')][_0x3e97f1('0x24')]);return logger['error']('Trunk,\x20%s,\x20%s',_0x36613e,_0x2b159a[_0x3e97f1('0x4e')][_0x3e97f1('0x24')]),_0x1de946(_0x2b159a[_0x3e97f1('0x4e')][_0x3e97f1('0x24')]);}else logger['info']('Trunk,\x20%s,\x20%s',_0x36613e,'request\x20sent'),_0x1de946(_0x2b159a[_0x3e97f1('0x2b')][_0x3e97f1('0x24')]);})['catch'](function(_0x560f0e){logger['error']('Trunk,\x20%s,\x20%s',_0x36613e,_0x560f0e),_0x470a81(_0x560f0e);});});}function respondWithResult(_0x43aee9,_0x387ac5){return _0x387ac5=_0x387ac5||0xc8,function(_0x36e282){const _0x234ca6=a643_0x18a4;if(_0x36e282)return _0x43aee9[_0x234ca6('0x9')](_0x387ac5)[_0x234ca6('0x44')](_0x36e282);};}function respondWithFilteredResult(_0x4a69c6,_0xaab673){return function(_0x87ef01){const _0x36beb3=a643_0x18a4;if(_0x87ef01){const _0x1c1770=_0x87ef01[_0x36beb3('0x4a')],_0x249709=_0xaab673[_0x36beb3('0x17')];let _0x3466a3=_0xaab673[_0x36beb3('0x17')]+_0xaab673['limit'],_0xb24a20;return _0x3466a3>=_0x1c1770?(_0x3466a3=_0x1c1770,_0xb24a20=0xc8):_0xb24a20=0xce,_0x4a69c6[_0x36beb3('0x9')](_0xb24a20),_0x4a69c6['set']('Content-Range',_0x249709+'-'+_0x3466a3+'/'+_0x1c1770)[_0x36beb3('0x44')](_0x87ef01);}return null;};}function saveUpdates(_0x3ab30e){return function(_0x4db27f){const _0x5892b9=a643_0x18a4;if(_0x4db27f)return _0x4db27f[_0x5892b9('0x2d')](_0x3ab30e)[_0x5892b9('0x15')](function(_0x3a7bac){return _0x3a7bac;});return null;};}function removeEntity(_0x3e57e6){return function(_0x410226){const _0x47e576=a643_0x18a4;if(_0x410226)return _0x410226['destroy']()[_0x47e576('0x15')](function(){const _0x5ab5e4=_0x47e576,_0x5ad751=_0x410226[_0x5ab5e4('0x1')]({'plain':!![]}),_0x2e5024=_0x5ab5e4('0x55');return db[_0x5ab5e4('0x3c')][_0x5ab5e4('0x1c')]({'where':{'type':_0x2e5024,'resourceId':_0x5ad751['id']}})[_0x5ab5e4('0x15')](function(){return _0x410226;});})[_0x47e576('0x15')](function(){const _0x2e0cef=_0x47e576;_0x3e57e6['status'](0xcc)[_0x2e0cef('0x47')]();});};}function handleEntityNotFound(_0x385d5b){return function(_0x389085){const _0x4741b0=a643_0x18a4;return!_0x389085&&_0x385d5b[_0x4741b0('0x23')](0x194),_0x389085;};}function handleError(_0x5cae0c,_0x291eeb){return _0x291eeb=_0x291eeb||0x1f4,function(_0x1efba1){const _0x1541f1=a643_0x18a4;logger[_0x1541f1('0x4e')](_0x1efba1[_0x1541f1('0x19')]),_0x1efba1['name']&&delete _0x1efba1[_0x1541f1('0x3a')],_0x5cae0c[_0x1541f1('0x9')](_0x291eeb)[_0x1541f1('0x3f')](_0x1efba1);};}exports[_0x53c3d2('0xb')]=function(_0x4f6eb7,_0x2ff683){const _0x3f2e8c=_0x53c3d2;let _0x2d7ce8={};const _0x302213={},_0x17b824={'count':0x0,'rows':[]},_0x5a8a4f=_[_0x3f2e8c('0x1e')](db[_0x3f2e8c('0x2e')][_0x3f2e8c('0x10')],function(_0x232a66){const _0x5e33ac=_0x3f2e8c;return{'name':_0x232a66[_0x5e33ac('0x16')],'type':_0x232a66[_0x5e33ac('0x36')][_0x5e33ac('0x6')]};});_0x302213[_0x3f2e8c('0x38')]=_[_0x3f2e8c('0x1e')](_0x5a8a4f,_0x3f2e8c('0x3a')),_0x302213['query']=_[_0x3f2e8c('0x4b')](_0x4f6eb7[_0x3f2e8c('0x3d')]),_0x302213[_0x3f2e8c('0xf')]=_['intersection'](_0x302213[_0x3f2e8c('0x38')],_0x302213[_0x3f2e8c('0x3d')]),_0x2d7ce8[_0x3f2e8c('0x59')]=_[_0x3f2e8c('0x4f')](_0x302213[_0x3f2e8c('0x38')],qs[_0x3f2e8c('0x2')](_0x4f6eb7[_0x3f2e8c('0x3d')]['fields'])),_0x2d7ce8['attributes']=_0x2d7ce8[_0x3f2e8c('0x59')][_0x3f2e8c('0x1a')]?_0x2d7ce8['attributes']:_0x302213[_0x3f2e8c('0x38')];typeof _0x4f6eb7['query'][_0x3f2e8c('0x18')]===_0x3f2e8c('0x7')&&(_0x2d7ce8[_0x3f2e8c('0x52')]=qs[_0x3f2e8c('0x52')](_0x4f6eb7[_0x3f2e8c('0x3d')][_0x3f2e8c('0x52')]),_0x2d7ce8[_0x3f2e8c('0x17')]=qs[_0x3f2e8c('0x17')](_0x4f6eb7[_0x3f2e8c('0x3d')][_0x3f2e8c('0x17')]));_0x2d7ce8[_0x3f2e8c('0x32')]=qs[_0x3f2e8c('0x22')](_0x4f6eb7[_0x3f2e8c('0x3d')][_0x3f2e8c('0x22')]),_0x2d7ce8[_0x3f2e8c('0x2c')]=qs[_0x3f2e8c('0xf')](_[_0x3f2e8c('0xd')](_0x4f6eb7[_0x3f2e8c('0x3d')],_0x302213[_0x3f2e8c('0xf')]),_0x5a8a4f);_0x4f6eb7['query'][_0x3f2e8c('0x12')]&&(_0x2d7ce8[_0x3f2e8c('0x2c')]=_[_0x3f2e8c('0x5')](_0x2d7ce8[_0x3f2e8c('0x2c')],{[Op['or']]:_['map'](_0x5a8a4f,function(_0x51106e){const _0x367799=_0x3f2e8c;if(_0x51106e[_0x367799('0x36')]!==_0x367799('0x14')){const _0x167322={};return _0x167322[_0x51106e[_0x367799('0x3a')]]={[Op['like']]:'%'+_0x4f6eb7[_0x367799('0x3d')]['filter']+'%'},_0x167322;}})}));_0x2d7ce8=_['merge']({},_0x2d7ce8,_0x4f6eb7[_0x3f2e8c('0x13')]);const _0x15b3b8={'where':_0x2d7ce8['where']};return db['Trunk'][_0x3f2e8c('0x4a')](_0x15b3b8)[_0x3f2e8c('0x15')](function(_0x27ec07){const _0x48a83c=_0x3f2e8c;return _0x17b824['count']=_0x27ec07,_0x4f6eb7['query'][_0x48a83c('0x48')]&&(_0x2d7ce8[_0x48a83c('0x2a')]=[{'all':!![]}]),db[_0x48a83c('0x2e')]['findAll'](_0x2d7ce8);})[_0x3f2e8c('0x15')](function(_0x30a294){const _0x152a73=_0x3f2e8c;return _0x17b824[_0x152a73('0x2f')]=_0x30a294,_0x17b824;})['then'](respondWithFilteredResult(_0x2ff683,_0x2d7ce8))['catch'](handleError(_0x2ff683,null));},exports['show']=function(_0x5f364c,_0x2313c6){const _0x205a63=_0x53c3d2;let _0x2d272c={'raw':![],'where':{'id':_0x5f364c['params']['id']}};const _0x1a8a35={};return _0x1a8a35[_0x205a63('0x38')]=_[_0x205a63('0x4b')](db[_0x205a63('0x2e')][_0x205a63('0x10')]),_0x1a8a35[_0x205a63('0x3d')]=_[_0x205a63('0x4b')](_0x5f364c['query']),_0x1a8a35[_0x205a63('0xf')]=_[_0x205a63('0x4f')](_0x1a8a35[_0x205a63('0x38')],_0x1a8a35['query']),_0x2d272c[_0x205a63('0x59')]=_['intersection'](_0x1a8a35[_0x205a63('0x38')],qs[_0x205a63('0x2')](_0x5f364c[_0x205a63('0x3d')]['fields'])),_0x2d272c[_0x205a63('0x59')]=_0x2d272c[_0x205a63('0x59')]['length']?_0x2d272c[_0x205a63('0x59')]:_0x1a8a35[_0x205a63('0x38')],_0x5f364c[_0x205a63('0x3d')]['includeAll']&&(_0x2d272c[_0x205a63('0x2a')]=[{'all':!![]}]),_0x2d272c=_[_0x205a63('0x5')]({},_0x2d272c,_0x5f364c[_0x205a63('0x13')]),db[_0x205a63('0x2e')][_0x205a63('0x20')](_0x2d272c)[_0x205a63('0x15')](handleEntityNotFound(_0x2313c6,null))[_0x205a63('0x15')](respondWithResult(_0x2313c6,null))[_0x205a63('0x8')](handleError(_0x2313c6,null));},exports[_0x53c3d2('0x3e')]=function(_0x3fd40e,_0x3784e2){const _0x59011c=_0x53c3d2;let _0x36fa38={'where':{'id':_0x3fd40e['params']['id']}};const _0x63b622={};return _0x63b622[_0x59011c('0x38')]=_[_0x59011c('0x4b')](db[_0x59011c('0x2e')]['rawAttributes']),_0x36fa38[_0x59011c('0x59')]=_[_0x59011c('0x4f')](_0x63b622['model'],qs[_0x59011c('0x2')](_0x3fd40e[_0x59011c('0x3d')][_0x59011c('0x2')])),_0x36fa38[_0x59011c('0x59')]=_0x36fa38[_0x59011c('0x59')][_0x59011c('0x1a')]?_0x36fa38[_0x59011c('0x59')]:_0x63b622['model'],_0x3fd40e['query']['includeAll']&&(_0x36fa38[_0x59011c('0x2a')]=[{'all':!![]}]),_0x36fa38=_[_0x59011c('0x5')]({},_0x36fa38,_0x3fd40e[_0x59011c('0x13')]),db[_0x59011c('0x2e')][_0x59011c('0x20')](_0x36fa38)[_0x59011c('0x15')](handleEntityNotFound(_0x3784e2,null))[_0x59011c('0x15')](function(_0x43c354){const _0x255d59=_0x59011c;if(_0x43c354){let _0x5324d3=_0x43c354[_0x255d59('0x1')]({'plain':!![]});return _0x5324d3=qs[_0x255d59('0x21')](_0x5324d3,['id',_0x255d59('0x4c'),_0x255d59('0x3b')]),_0x3fd40e[_0x255d59('0x25')]=_['omit'](_0x3fd40e[_0x255d59('0x25')],['id','createdAt','updatedAt']),db[_0x255d59('0x2e')][_0x255d59('0x49')](_[_0x255d59('0x5')](_0x5324d3,_0x3fd40e[_0x255d59('0x25')]),{'include':_0x3fd40e['query'][_0x255d59('0x48')]?[{'all':!![]}]:undefined})['then'](function(_0x43958d){const _0x3b3d9a=_0x255d59,_0x3974d9=_0x3fd40e[_0x3b3d9a('0x1f')][_0x3b3d9a('0x1')]({'plain':!![]});if(!_0x3974d9)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3974d9[_0x3b3d9a('0x26')]===_0x3b3d9a('0x1f')){const _0x44887d=_0x43958d['get']({'plain':!![]}),_0x5a9008=_0x3b3d9a('0x55');return db['UserProfileSection'][_0x3b3d9a('0x20')]({'where':{'name':_0x5a9008,'userProfileId':_0x3974d9['userProfileId']},'raw':!![]})[_0x3b3d9a('0x15')](function(_0x4d2ff4){const _0x3c4cf2=_0x3b3d9a;return _0x4d2ff4&&_0x4d2ff4[_0x3c4cf2('0x51')]===0x0?db[_0x3c4cf2('0x3c')]['create']({'name':_0x44887d['name'],'resourceId':_0x44887d['id'],'type':_0x4d2ff4[_0x3c4cf2('0x3a')],'sectionId':_0x4d2ff4['id']},{})[_0x3c4cf2('0x15')](function(){return _0x43958d;}):_0x43958d;})[_0x3b3d9a('0x8')](function(_0x4b0c6b){const _0x4383dc=_0x3b3d9a;logger[_0x4383dc('0x4e')](_0x4383dc('0x37'),_0x4b0c6b);throw _0x4b0c6b;});}return _0x43958d;});}})[_0x59011c('0x15')](respondWithResult(_0x3784e2,0xc9))['catch'](handleError(_0x3784e2,null));},exports[_0x53c3d2('0x49')]=function(_0x5f03e1,_0x276dfb){const _0x3d9ae9=_0x53c3d2;let _0x5e9bce;return db['Trunk'][_0x3d9ae9('0x49')](_0x5f03e1['body'],{'raw':!![]})[_0x3d9ae9('0x15')](function(_0x42305d){const _0x41bee4=_0x3d9ae9;return _0x5e9bce=_0x42305d,db[_0x41bee4('0x2e')][_0x41bee4('0x45')]({'raw':!![]});})['then'](function(_0x16d3b5){const _0x58d41a=_0x3d9ae9,_0x17d3fe=fs[_0x58d41a('0x31')](path[_0x58d41a('0x50')](config[_0x58d41a('0x42')],_0x58d41a('0x43')),_0x58d41a('0x46')),_0x1d8669=fs[_0x58d41a('0x31')](path[_0x58d41a('0x50')](config[_0x58d41a('0x42')],_0x58d41a('0x34')),_0x58d41a('0x46')),_0x177c8f=ejs[_0x58d41a('0x33')](_0x17d3fe,{'trunks':_0x16d3b5||[]});fs[_0x58d41a('0x27')]('/etc/asterisk/sip_xcally_trunks.conf',_0x177c8f);if(_0x5e9bce[_0x58d41a('0x30')]){const _0x2e4dec=ejs[_0x58d41a('0x33')](_0x1d8669,{'trunks':_0x16d3b5||[]});fs['writeFileSync'](_0x58d41a('0x3'),_0x2e4dec);}})[_0x3d9ae9('0x15')](function(){const _0x2aa453=_0x3d9ae9;return respondWithRpcPromise('Reload','create',{'module':_0x2aa453('0x0')});})['then'](function(){const _0x237923=_0x3d9ae9,_0x31c92f=_0x5f03e1['user'][_0x237923('0x1')]({'plain':!![]});if(!_0x31c92f)throw new Error(_0x237923('0x57'));if(_0x31c92f[_0x237923('0x26')]===_0x237923('0x1f')){const _0x5907fc=_0x5e9bce[_0x237923('0x1')]({'plain':!![]});return db['UserProfileSection'][_0x237923('0x20')]({'where':{'name':'Trunks','userProfileId':_0x31c92f[_0x237923('0x4')]},'raw':!![]})[_0x237923('0x15')](function(_0x1c891d){const _0x4c9b0a=_0x237923;return _0x1c891d&&_0x1c891d['autoAssociation']===0x0?db['UserProfileResource'][_0x4c9b0a('0x49')]({'name':_0x5907fc[_0x4c9b0a('0x3a')],'resourceId':_0x5907fc['id'],'type':_0x1c891d[_0x4c9b0a('0x3a')],'sectionId':_0x1c891d['id']},{})[_0x4c9b0a('0x15')](function(){return _0x5e9bce;}):_0x5e9bce;})[_0x237923('0x8')](function(_0x8d4e79){const _0x460fef=_0x237923;logger[_0x460fef('0x4e')](_0x460fef('0x37'),_0x8d4e79);throw _0x8d4e79;});}return _0x5e9bce;})['then'](respondWithResult(_0x276dfb,0xc9))[_0x3d9ae9('0x8')](handleError(_0x276dfb,null));},exports[_0x53c3d2('0x2d')]=function(_0x5bc17f,_0x1b5aeb){const _0xac7324=_0x53c3d2;let _0x56722e;return db[_0xac7324('0x2e')][_0xac7324('0x20')]({'where':{'id':_0x5bc17f[_0xac7324('0x28')]['id']}})['then'](handleEntityNotFound(_0x1b5aeb,null))['then'](saveUpdates(_0x5bc17f[_0xac7324('0x25')],null))['then'](function(_0x58fa64){const _0xfbf717=_0xac7324;if(_0x58fa64)return _0x56722e=_0x58fa64,db[_0xfbf717('0x2e')][_0xfbf717('0x45')]({'raw':!![]});})['then'](function(_0x25c72f){const _0x31d7bf=_0xac7324;if(_0x25c72f){const _0xd2d55c=fs[_0x31d7bf('0x31')](path[_0x31d7bf('0x50')](config['root'],_0x31d7bf('0x43')),'utf8'),_0x2f3e6c=fs[_0x31d7bf('0x31')](path[_0x31d7bf('0x50')](config['root'],_0x31d7bf('0x34')),_0x31d7bf('0x46')),_0xfcfed8=ejs[_0x31d7bf('0x33')](_0xd2d55c,{'trunks':_0x25c72f||[]});fs[_0x31d7bf('0x27')](_0x31d7bf('0x40'),_0xfcfed8);const _0x23d7c5=ejs[_0x31d7bf('0x33')](_0x2f3e6c,{'trunks':_0x25c72f||[]});return fs['writeFileSync'](_0x31d7bf('0x3'),_0x23d7c5),respondWithRpcPromise(_0x31d7bf('0x54'),_0x31d7bf('0x2d'),{'module':_0x31d7bf('0x0')});}return null;})[_0xac7324('0x15')](function(_0x1f9844){if(_0x1f9844)return _0x56722e;})[_0xac7324('0x15')](respondWithResult(_0x1b5aeb,null))[_0xac7324('0x8')](handleError(_0x1b5aeb,null));},exports[_0x53c3d2('0x1c')]=function(_0x1d5469,_0x53934c){const _0x473906=_0x53c3d2;return db['Trunk'][_0x473906('0x20')]({'where':{'id':_0x1d5469[_0x473906('0x28')]['id']}})['then'](handleEntityNotFound(_0x53934c,null))['then'](removeEntity(_0x53934c,null))['then'](function(){const _0x505407=_0x473906;return db[_0x505407('0x2e')]['findAll']({'raw':!![]});})[_0x473906('0x15')](function(_0x491ad9){const _0x57fd47=_0x473906,_0x570bc6=fs['readFileSync'](path[_0x57fd47('0x50')](config[_0x57fd47('0x42')],_0x57fd47('0x43')),'utf8'),_0x5474f0=fs['readFileSync'](path[_0x57fd47('0x50')](config['root'],_0x57fd47('0x34')),'utf8'),_0x538741=ejs[_0x57fd47('0x33')](_0x570bc6,{'trunks':_0x491ad9}),_0x5b0d8d=ejs[_0x57fd47('0x33')](_0x5474f0,{'trunks':_0x491ad9});return fs[_0x57fd47('0x27')](_0x57fd47('0x40'),_0x538741),fs[_0x57fd47('0x27')](_0x57fd47('0x3'),_0x5b0d8d),respondWithRpcPromise(_0x57fd47('0x54'),'destroy',{'module':'chan_sip.so'});})[_0x473906('0x8')](handleError(_0x53934c,null));}; \ No newline at end of file diff --git a/server/api/trunk/trunk.model.js b/server/api/trunk/trunk.model.js index 050174a..920a42f 100644 --- a/server/api/trunk/trunk.model.js +++ b/server/api/trunk/trunk.model.js @@ -1 +1 @@ -const a644_0x2c05=['tools_trunks','exports','Trunk','./trunk.attributes'];(function(_0x39eb86,_0x2c05d6){const _0x46ffd2=function(_0x1cdf3a){while(--_0x1cdf3a){_0x39eb86['push'](_0x39eb86['shift']());}};_0x46ffd2(++_0x2c05d6);}(a644_0x2c05,0xf9));const a644_0x46ff=function(_0x39eb86,_0x2c05d6){_0x39eb86=_0x39eb86-0x0;let _0x46ffd2=a644_0x2c05[_0x39eb86];return _0x46ffd2;};const _0x7ddc61=a644_0x46ff;'use strict';const attributes=require(_0x7ddc61('0x2'));module[_0x7ddc61('0x0')]=function(_0x1cdf3a){const _0x4306ae=_0x7ddc61,_0x5d2923=_0x1cdf3a['define'](_0x4306ae('0x1'),attributes,{'tableName':_0x4306ae('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5d2923;}; \ No newline at end of file +const a644_0x2bd4=['Trunk','tools_trunks','exports'];(function(_0x2e2f4a,_0x2bd46f){const _0x59456=function(_0x2b523c){while(--_0x2b523c){_0x2e2f4a['push'](_0x2e2f4a['shift']());}};_0x59456(++_0x2bd46f);}(a644_0x2bd4,0x85));const a644_0x5945=function(_0x2e2f4a,_0x2bd46f){_0x2e2f4a=_0x2e2f4a-0x0;let _0x59456=a644_0x2bd4[_0x2e2f4a];return _0x59456;};const _0x15b688=a644_0x5945;'use strict';const attributes=require('./trunk.attributes');module[_0x15b688('0x1')]=function(_0x2b523c){const _0x5ce40a=_0x15b688,_0x15bd73=_0x2b523c['define'](_0x5ce40a('0x2'),attributes,{'tableName':_0x5ce40a('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x15bd73;}; \ No newline at end of file diff --git a/server/api/trunk/trunk.rpc.js b/server/api/trunk/trunk.rpc.js index 6036b6d..e743c28 100644 --- a/server/api/trunk/trunk.rpc.js +++ b/server/api/trunk/trunk.rpc.js @@ -1 +1 @@ -const a645_0x460d=['then','map','error','findAll','where','GetTrunk','raw','attributes','include','../../mysqldb','Trunk','ShowTrunk','lodash','debug','options','findOne','info','model','limit','catch','message','stringify'];(function(_0x29694d,_0x460d6e){const _0x277bf2=function(_0x191d7a){while(--_0x191d7a){_0x29694d['push'](_0x29694d['shift']());}};_0x277bf2(++_0x460d6e);}(a645_0x460d,0x146));const a645_0x277b=function(_0x29694d,_0x460d6e){_0x29694d=_0x29694d-0x0;let _0x277bf2=a645_0x460d[_0x29694d];return _0x277bf2;};const _0x4f22bd=a645_0x277b;'use strict';const _=require(_0x4f22bd('0x10')),db=require(_0x4f22bd('0xd'))['db'],logger=require('../../config/logger')('rpc');exports[_0x4f22bd('0x9')]=function(_0x191d7a){const _0x5256f8=this;return new Promise(function(_0x3106f6,_0x478872){const _0x2687ee=a645_0x277b;return db[_0x2687ee('0xe')][_0x2687ee('0x7')]({'raw':_0x191d7a[_0x2687ee('0x12')]?_0x191d7a[_0x2687ee('0x12')][_0x2687ee('0xa')]===undefined?!![]:![]:!![],'where':_0x191d7a[_0x2687ee('0x12')]?_0x191d7a[_0x2687ee('0x12')][_0x2687ee('0x8')]||null:null,'attributes':_0x191d7a[_0x2687ee('0x12')]?_0x191d7a['options'][_0x2687ee('0xb')]||null:null,'limit':_0x191d7a[_0x2687ee('0x12')]?_0x191d7a[_0x2687ee('0x12')][_0x2687ee('0x0')]||null:null,'include':_0x191d7a[_0x2687ee('0x12')]?_0x191d7a['options'][_0x2687ee('0xc')]?_[_0x2687ee('0x5')](_0x191d7a[_0x2687ee('0x12')]['include'],function(_0x191f0f){const _0x4c0442=_0x2687ee;return{'model':db[_0x191f0f[_0x4c0442('0x15')]],'as':_0x191f0f['as'],'attributes':_0x191f0f[_0x4c0442('0xb')],'include':_0x191f0f[_0x4c0442('0xc')]?_[_0x4c0442('0x5')](_0x191f0f[_0x4c0442('0xc')],function(_0x5b1c01){const _0x236e34=_0x4c0442;return{'model':db[_0x5b1c01['model']],'as':_0x5b1c01['as'],'attributes':_0x5b1c01[_0x236e34('0xb')],'include':_0x5b1c01[_0x236e34('0xc')]?_[_0x236e34('0x5')](_0x5b1c01[_0x236e34('0xc')],function(_0xfbec7d){const _0xa0c70a=_0x236e34;return{'model':db[_0xfbec7d['model']],'as':_0xfbec7d['as'],'attributes':_0xfbec7d[_0xa0c70a('0xb')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x121921){const _0x4698e7=_0x2687ee;logger[_0x4698e7('0x14')]('GetTrunk',_0x191d7a),logger[_0x4698e7('0x11')]('GetTrunk',_0x191d7a,JSON['stringify'](_0x121921)),_0x3106f6(_0x121921);})[_0x2687ee('0x1')](function(_0x519b6e){const _0x52dcf4=_0x2687ee;logger[_0x52dcf4('0x6')](_0x52dcf4('0x9'),_0x519b6e[_0x52dcf4('0x2')],_0x191d7a),_0x478872(_0x5256f8[_0x52dcf4('0x6')](0x1f4,_0x519b6e['message']));});});},exports['ShowTrunk']=function(_0x291153){const _0x32be0f=this;return new Promise(function(_0x2b462a,_0x41c270){const _0x4b7292=a645_0x277b;return db[_0x4b7292('0xe')][_0x4b7292('0x13')]({'raw':_0x291153[_0x4b7292('0x12')]?_0x291153[_0x4b7292('0x12')][_0x4b7292('0xa')]===undefined?!![]:![]:!![],'where':_0x291153[_0x4b7292('0x12')]?_0x291153['options']['where']||null:null,'attributes':_0x291153[_0x4b7292('0x12')]?_0x291153['options'][_0x4b7292('0xb')]||null:null,'include':_0x291153[_0x4b7292('0x12')]?_0x291153[_0x4b7292('0x12')][_0x4b7292('0xc')]?_[_0x4b7292('0x5')](_0x291153['options'][_0x4b7292('0xc')],function(_0x9d5fad){const _0x18ebaf=_0x4b7292;return{'model':db[_0x9d5fad[_0x18ebaf('0x15')]],'as':_0x9d5fad['as'],'attributes':_0x9d5fad[_0x18ebaf('0xb')],'include':_0x9d5fad[_0x18ebaf('0xc')]?_['map'](_0x9d5fad[_0x18ebaf('0xc')],function(_0x5c67ea){const _0x2c91b4=_0x18ebaf;return{'model':db[_0x5c67ea[_0x2c91b4('0x15')]],'as':_0x5c67ea['as'],'attributes':_0x5c67ea['attributes'],'include':_0x5c67ea[_0x2c91b4('0xc')]?_[_0x2c91b4('0x5')](_0x5c67ea['include'],function(_0x2844b8){const _0x4138ec=_0x2c91b4;return{'model':db[_0x2844b8[_0x4138ec('0x15')]],'as':_0x2844b8['as'],'attributes':_0x2844b8[_0x4138ec('0xb')]};}):[]};}):[]};}):[]:[]})[_0x4b7292('0x4')](function(_0x1b7446){const _0x177f98=_0x4b7292;logger[_0x177f98('0x14')](_0x177f98('0xf'),_0x291153),logger[_0x177f98('0x11')](_0x177f98('0xf'),_0x291153,JSON[_0x177f98('0x3')](_0x1b7446)),_0x2b462a(_0x1b7446);})[_0x4b7292('0x1')](function(_0x2dc629){const _0x5e5073=_0x4b7292;logger[_0x5e5073('0x6')]('ShowTrunk',_0x2dc629[_0x5e5073('0x2')],_0x291153),_0x41c270(_0x32be0f[_0x5e5073('0x6')](0x1f4,_0x2dc629['message']));});});}; \ No newline at end of file +const a645_0x27b9=['catch','raw','ShowTrunk','limit','../../mysqldb','GetTrunk','error','include','where','then','Trunk','stringify','message','model','options','../../config/logger','findOne','attributes','findAll','lodash','info','map'];(function(_0x37ec4c,_0x27b978){const _0x40da08=function(_0x2006d6){while(--_0x2006d6){_0x37ec4c['push'](_0x37ec4c['shift']());}};_0x40da08(++_0x27b978);}(a645_0x27b9,0xde));const a645_0x40da=function(_0x37ec4c,_0x27b978){_0x37ec4c=_0x37ec4c-0x0;let _0x40da08=a645_0x27b9[_0x37ec4c];return _0x40da08;};const _0x318bb5=a645_0x40da;'use strict';const _=require(_0x318bb5('0x11')),db=require(_0x318bb5('0x2'))['db'],logger=require(_0x318bb5('0xd'))('rpc');exports[_0x318bb5('0x3')]=function(_0x2006d6){const _0x553ea8=this;return new Promise(function(_0x58d050,_0x119c6f){const _0x10c6a8=a645_0x40da;return db[_0x10c6a8('0x8')][_0x10c6a8('0x10')]({'raw':_0x2006d6[_0x10c6a8('0xc')]?_0x2006d6[_0x10c6a8('0xc')][_0x10c6a8('0x15')]===undefined?!![]:![]:!![],'where':_0x2006d6[_0x10c6a8('0xc')]?_0x2006d6[_0x10c6a8('0xc')][_0x10c6a8('0x6')]||null:null,'attributes':_0x2006d6[_0x10c6a8('0xc')]?_0x2006d6[_0x10c6a8('0xc')]['attributes']||null:null,'limit':_0x2006d6['options']?_0x2006d6[_0x10c6a8('0xc')][_0x10c6a8('0x1')]||null:null,'include':_0x2006d6['options']?_0x2006d6['options'][_0x10c6a8('0x5')]?_[_0x10c6a8('0x13')](_0x2006d6[_0x10c6a8('0xc')][_0x10c6a8('0x5')],function(_0x1af597){const _0x2b0009=_0x10c6a8;return{'model':db[_0x1af597[_0x2b0009('0xb')]],'as':_0x1af597['as'],'attributes':_0x1af597[_0x2b0009('0xf')],'include':_0x1af597[_0x2b0009('0x5')]?_[_0x2b0009('0x13')](_0x1af597['include'],function(_0x87a3a5){const _0x210037=_0x2b0009;return{'model':db[_0x87a3a5[_0x210037('0xb')]],'as':_0x87a3a5['as'],'attributes':_0x87a3a5[_0x210037('0xf')],'include':_0x87a3a5['include']?_[_0x210037('0x13')](_0x87a3a5['include'],function(_0x1ba9bf){const _0x2df346=_0x210037;return{'model':db[_0x1ba9bf[_0x2df346('0xb')]],'as':_0x1ba9bf['as'],'attributes':_0x1ba9bf['attributes']};}):[]};}):[]};}):[]:[]})[_0x10c6a8('0x7')](function(_0x2c77ce){const _0x3b3bd8=_0x10c6a8;logger[_0x3b3bd8('0x12')](_0x3b3bd8('0x3'),_0x2006d6),logger['debug'](_0x3b3bd8('0x3'),_0x2006d6,JSON[_0x3b3bd8('0x9')](_0x2c77ce)),_0x58d050(_0x2c77ce);})[_0x10c6a8('0x14')](function(_0x271cb7){const _0x4a22fc=_0x10c6a8;logger[_0x4a22fc('0x4')](_0x4a22fc('0x3'),_0x271cb7['message'],_0x2006d6),_0x119c6f(_0x553ea8[_0x4a22fc('0x4')](0x1f4,_0x271cb7[_0x4a22fc('0xa')]));});});},exports[_0x318bb5('0x0')]=function(_0x3f5a43){const _0x531e8e=this;return new Promise(function(_0x495e60,_0x5e94b9){const _0x5d6e07=a645_0x40da;return db['Trunk'][_0x5d6e07('0xe')]({'raw':_0x3f5a43[_0x5d6e07('0xc')]?_0x3f5a43[_0x5d6e07('0xc')][_0x5d6e07('0x15')]===undefined?!![]:![]:!![],'where':_0x3f5a43[_0x5d6e07('0xc')]?_0x3f5a43[_0x5d6e07('0xc')]['where']||null:null,'attributes':_0x3f5a43[_0x5d6e07('0xc')]?_0x3f5a43[_0x5d6e07('0xc')][_0x5d6e07('0xf')]||null:null,'include':_0x3f5a43[_0x5d6e07('0xc')]?_0x3f5a43['options']['include']?_[_0x5d6e07('0x13')](_0x3f5a43[_0x5d6e07('0xc')][_0x5d6e07('0x5')],function(_0xebe993){const _0x19bfe4=_0x5d6e07;return{'model':db[_0xebe993['model']],'as':_0xebe993['as'],'attributes':_0xebe993[_0x19bfe4('0xf')],'include':_0xebe993['include']?_[_0x19bfe4('0x13')](_0xebe993[_0x19bfe4('0x5')],function(_0x4bf9bc){const _0x184674=_0x19bfe4;return{'model':db[_0x4bf9bc[_0x184674('0xb')]],'as':_0x4bf9bc['as'],'attributes':_0x4bf9bc[_0x184674('0xf')],'include':_0x4bf9bc[_0x184674('0x5')]?_['map'](_0x4bf9bc[_0x184674('0x5')],function(_0x810f5){const _0x649b53=_0x184674;return{'model':db[_0x810f5[_0x649b53('0xb')]],'as':_0x810f5['as'],'attributes':_0x810f5['attributes']};}):[]};}):[]};}):[]:[]})[_0x5d6e07('0x7')](function(_0x2ddd37){const _0x3f4846=_0x5d6e07;logger['info']('ShowTrunk',_0x3f5a43),logger['debug'](_0x3f4846('0x0'),_0x3f5a43,JSON[_0x3f4846('0x9')](_0x2ddd37)),_0x495e60(_0x2ddd37);})[_0x5d6e07('0x14')](function(_0x3df7fb){const _0x31cef9=_0x5d6e07;logger[_0x31cef9('0x4')]('ShowTrunk',_0x3df7fb[_0x31cef9('0xa')],_0x3f5a43),_0x5e94b9(_0x531e8e[_0x31cef9('0x4')](0x1f4,_0x3df7fb[_0x31cef9('0xa')]));});});}; \ No newline at end of file diff --git a/server/api/user/index.js b/server/api/user/index.js index 549363c..80c3876 100644 --- a/server/api/user/index.js +++ b/server/api/user/index.js @@ -1 +1 @@ -const a646_0x5031=['/:id/whatsapp/interactions','/:id/chat_interactions','getChatInteractions','/:id/chat/interactions','getGroups','/:id/recordings','getLists','getAvatar','/:id/whatsapp_interactions','/:id','/:id/prefixes','/:id/screen_recordings','removeFaxInteractions','/:id/sms_accounts','/:id/openchannel/interactions','/:id/avatar','/:id/square_projects','create','removeTeams','/:id/queues','destroy','removeSmsAccounts','addFaxAccounts','bulkCreate','removeMailInteractions','getOpenchannelInteractions','getScreenRecordings','removeOpenchannelAccounts','format','whoami','/:id/openchannel_interactions','path','/:id/api_key','put','delete','addChatInteractions','join','multer','addSmsInteractions','getOpenchannelAccounts','addMailAccounts','/:id/fax_interactions','addTeams','index','getMailInteractions','file','/:id/teams','get','login','getChatWebsites','addContacts','removeChatWebsites','getVoicePrefixes','/:id/chat_websites','/whoami','/:id/login','/:id/logout','/:id/mail_interactions','addOpenchannelAccounts','exports','removeWhatsappInteractions','/:id/pause','/:id/queues_rt','addSquareProjects','getRecordings','changePassword','/:id/fax_accounts','root','/:id/whatsapp_accounts','getAgents','diskStorage','getTeams','/:id/unpause','server/files/images/','./user.controller','post','/describe','/:id/mail_accounts','/:id/lists','addAvatar','getWhatsappAccounts','/:id/sms_interactions','getWhatsappInteractions','/:id/password','originalname','/:id/groups','getVoiceQueuesRt','pause','../../components/auth/service','addSmsAccounts','/:id/sms/interactions','addWhatsappAccounts','removeSmsInteractions','single','now','isAuthenticated','/:id/scheduled_calls','update','getFaxAccounts','getSmsAccounts','/:id/contacts','/create_many','Router','getSquareProjects','/:id/mail/interactions','removeApiKey','logout','describe','/:id/openchannel_accounts','getFaxInteractions','removeFaxAccounts','addOpenchannelInteractions','getMailAccounts','removeOpenchannelInteractions','addMailInteractions'];(function(_0x104b81,_0x503167){const _0x3316b1=function(_0x4254d3){while(--_0x4254d3){_0x104b81['push'](_0x104b81['shift']());}};_0x3316b1(++_0x503167);}(a646_0x5031,0x19f));const a646_0x3316=function(_0x104b81,_0x503167){_0x104b81=_0x104b81-0x0;let _0x3316b1=a646_0x5031[_0x104b81];return _0x3316b1;};const _0x4c92b2=a646_0x3316;'use strict';const multer=require(_0x4c92b2('0x52')),util=require('util'),path=require(_0x4c92b2('0x4c')),express=require('express'),router=express[_0x4c92b2('0x20')](),auth=require(_0x4c92b2('0x12')),config=require('../../config/environment'),controller=require(_0x4c92b2('0x4'));router[_0x4c92b2('0x5c')]('/',auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x58')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x6'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x25')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x63'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x4a')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x36'),auth[_0x4c92b2('0x19')](),controller['show']),router[_0x4c92b2('0x5c')](_0x4c92b2('0x3c'),controller[_0x4c92b2('0x34')]),router[_0x4c92b2('0x5c')]('/:id/contacts',auth[_0x4c92b2('0x19')](),controller['getContacts']),router['get'](_0x4c92b2('0x40'),auth[_0x4c92b2('0x19')](),controller['getQueues']),router[_0x4c92b2('0x5c')](_0x4c92b2('0x6b'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x10')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0xf'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x31')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x32'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x6d')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x38'),auth['isAuthenticated'](),controller[_0x4c92b2('0x47')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x30'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x2f')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x3b'),auth['isAuthenticated'](),controller[_0x4c92b2('0x46')]),router['get'](_0x4c92b2('0x22'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x59')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x14'),auth[_0x4c92b2('0x19')](),controller['getSmsInteractions']),router[_0x4c92b2('0x5c')]('/:id/fax/interactions',auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x27')]),router['get'](_0x4c92b2('0x2d'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0xc')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x5b'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x1')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x8'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x33')]),router[_0x4c92b2('0x5c')]('/:id/agents',auth['isAuthenticated'](),controller[_0x4c92b2('0x72')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x37'),auth['isAuthenticated'](),controller[_0x4c92b2('0x61')]),router[_0x4c92b2('0x5c')]('/:id/fax_accounts',auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x1c')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x7'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x2a')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x26'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x54')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x3a'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x1d')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x62'),auth['isAuthenticated'](),controller[_0x4c92b2('0x5e')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x71'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0xa')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x3d'),auth['isAuthenticated'](),controller[_0x4c92b2('0x21')]),router[_0x4c92b2('0x5c')](_0x4c92b2('0x1a'),auth['isAuthenticated'](),controller['getScheduledCalls']),router['get']('/:id/api_key',auth[_0x4c92b2('0x19')](),controller['getApiKey']),router['post'](_0x4c92b2('0x1e'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x5f')]),router[_0x4c92b2('0x5')]('/',auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x3e')]),router['post'](_0x4c92b2('0x1f'),auth['isAuthenticated'](),controller[_0x4c92b2('0x44')]),router[_0x4c92b2('0x5')]('/:id/queues',auth[_0x4c92b2('0x19')](),controller['addQueues']);const upload=multer({'storage':multer[_0x4c92b2('0x0')]({'destination':function(_0x4254d3,_0x5da930,_0x3e178f){const _0x376f33=_0x4c92b2;_0x3e178f(null,path[_0x376f33('0x51')](config[_0x376f33('0x70')],_0x376f33('0x3')));},'filename':function(_0x22dcc8,_0x833407,_0x446f74){const _0x66c821=_0x4c92b2;_0x446f74(null,util[_0x66c821('0x49')]('%s-%s',Date[_0x66c821('0x18')](),_0x833407[_0x66c821('0xe')]));}})});router[_0x4c92b2('0x5')](_0x4c92b2('0x3c'),upload[_0x4c92b2('0x17')](_0x4c92b2('0x5a')),controller[_0x4c92b2('0x9')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x64'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x5d')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x65'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x24')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x6a'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x11')]),router['post'](_0x4c92b2('0x2'),auth['isAuthenticated'](),controller['unpause']),router[_0x4c92b2('0x5')]('/:id/teams',auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x57')]),router['post'](_0x4c92b2('0x2e'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x50')]),router['post'](_0x4c92b2('0x66'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x2c')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x56'),auth[_0x4c92b2('0x19')](),controller['addFaxInteractions']),router[_0x4c92b2('0x5')](_0x4c92b2('0xb'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x53')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x4b'),auth['isAuthenticated'](),controller[_0x4c92b2('0x29')]),router[_0x4c92b2('0x5')]('/:id/whatsapp_interactions',auth['isAuthenticated'](),controller['addWhatsappInteractions']),router['post'](_0x4c92b2('0x6f'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x43')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x7'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x55')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x26'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x67')]),router['post'](_0x4c92b2('0x3a'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x13')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x62'),auth[_0x4c92b2('0x19')](),controller['addChatWebsites']),router['post'](_0x4c92b2('0x71'),auth['isAuthenticated'](),controller[_0x4c92b2('0x15')]),router[_0x4c92b2('0x5')](_0x4c92b2('0x3d'),auth['isAuthenticated'](),controller[_0x4c92b2('0x6c')]),router['post'](_0x4c92b2('0x4d'),auth[_0x4c92b2('0x19')](),controller['createApiKey']),router['put']('/:id',auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x1b')]),router[_0x4c92b2('0x4e')](_0x4c92b2('0xd'),auth['isAuthenticated'](),controller[_0x4c92b2('0x6e')]),router['delete'](_0x4c92b2('0x40'),auth[_0x4c92b2('0x19')](),controller['removeQueues']),router['delete'](_0x4c92b2('0x5b'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x3f')]),router[_0x4c92b2('0x4f')](_0x4c92b2('0x36'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x41')]),router['delete'](_0x4c92b2('0x2e'),auth['isAuthenticated'](),controller['removeChatInteractions']),router[_0x4c92b2('0x4f')]('/:id/mail_interactions',auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x45')]),router[_0x4c92b2('0x4f')](_0x4c92b2('0x56'),auth['isAuthenticated'](),controller[_0x4c92b2('0x39')]),router[_0x4c92b2('0x4f')](_0x4c92b2('0xb'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x16')]),router['delete']('/:id/openchannel_interactions',auth['isAuthenticated'](),controller[_0x4c92b2('0x2b')]),router['delete'](_0x4c92b2('0x35'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x69')]),router[_0x4c92b2('0x4f')](_0x4c92b2('0x6f'),auth['isAuthenticated'](),controller[_0x4c92b2('0x28')]),router[_0x4c92b2('0x4f')]('/:id/mail_accounts',auth[_0x4c92b2('0x19')](),controller['removeMailAccounts']),router[_0x4c92b2('0x4f')]('/:id/openchannel_accounts',auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x48')]),router[_0x4c92b2('0x4f')](_0x4c92b2('0x3a'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x42')]),router[_0x4c92b2('0x4f')]('/:id/chat_websites',auth['isAuthenticated'](),controller[_0x4c92b2('0x60')]),router[_0x4c92b2('0x4f')](_0x4c92b2('0x71'),auth['isAuthenticated'](),controller['removeWhatsappAccounts']),router[_0x4c92b2('0x4f')](_0x4c92b2('0x3d'),auth[_0x4c92b2('0x19')](),controller['removeSquareProjects']),router[_0x4c92b2('0x4f')](_0x4c92b2('0x4d'),auth[_0x4c92b2('0x19')](),controller[_0x4c92b2('0x23')]),module[_0x4c92b2('0x68')]=router; \ No newline at end of file +const a646_0x3c8b=['create','getRecordings','getScreenRecordings','put','addOpenchannelAccounts','removeApiKey','delete','isAuthenticated','removeSquareProjects','root','/:id/sms/interactions','getVoiceQueuesRt','Router','addFaxInteractions','diskStorage','../../config/environment','/:id/lists','addQueues','removeWhatsappAccounts','/:id/chat_websites','/:id/chat/interactions','addSquareProjects','getSmsAccounts','/:id/square_projects','getOpenchannelAccounts','/:id/sms_interactions','./user.controller','index','server/files/images/','/:id/password','getChatWebsites','/:id/scheduled_calls','removeFaxAccounts','/:id/openchannel_interactions','join','removeFaxInteractions','/:id/logout','/:id/unpause','removeQueues','addOpenchannelInteractions','single','post','getLists','/:id/mail_interactions','getMailAccounts','format','getMailInteractions','getSquareProjects','/:id/sms_accounts','/:id/openchannel/interactions','pause','show','getFaxInteractions','getApiKey','changePassword','/:id/contacts','addTeams','/:id/fax/interactions','removeSmsInteractions','%s-%s','/:id/chat_interactions','file','removeTeams','/:id','getSmsInteractions','util','/:id/groups','destroy','addContacts','/:id/mail_accounts','addAvatar','path','getTeams','/:id/openchannel_accounts','get','/:id/fax_accounts','/:id/whatsapp/interactions','removeMailAccounts','/:id/recordings','/:id/queues','addMailAccounts','/:id/mail/interactions','/:id/queues_rt','bulkCreate','removeChatInteractions','getOpenchannelInteractions','addSmsInteractions','addFaxAccounts','now','getContacts','createApiKey','logout','/:id/api_key','getFaxAccounts','/:id/screen_recordings','/:id/whatsapp_accounts','/:id/agents','addWhatsappInteractions','getWhatsappAccounts','/:id/whatsapp_interactions','removeSmsAccounts','/:id/teams','removeOpenchannelAccounts','/:id/pause','getVoicePrefixes','exports','addMailInteractions','addWhatsappAccounts'];(function(_0x3bf1b1,_0x3c8b3e){const _0x17a710=function(_0x2ebcfa){while(--_0x2ebcfa){_0x3bf1b1['push'](_0x3bf1b1['shift']());}};_0x17a710(++_0x3c8b3e);}(a646_0x3c8b,0x9a));const a646_0x17a7=function(_0x3bf1b1,_0x3c8b3e){_0x3bf1b1=_0x3bf1b1-0x0;let _0x17a710=a646_0x3c8b[_0x3bf1b1];return _0x17a710;};const _0x57254e=a646_0x17a7;'use strict';const multer=require('multer'),util=require(_0x57254e('0x13')),path=require(_0x57254e('0x19')),express=require('express'),router=express[_0x57254e('0x4a')](),auth=require('../../components/auth/service'),config=require(_0x57254e('0x4d')),controller=require(_0x57254e('0x58'));router[_0x57254e('0x1c')]('/',auth[_0x57254e('0x45')](),controller[_0x57254e('0x59')]),router[_0x57254e('0x1c')]('/describe',auth[_0x57254e('0x45')](),controller['describe']),router[_0x57254e('0x1c')]('/whoami',auth[_0x57254e('0x45')](),controller['whoami']),router[_0x57254e('0x1c')]('/:id',auth[_0x57254e('0x45')](),controller[_0x57254e('0x5')]),router[_0x57254e('0x1c')]('/:id/avatar',controller['getAvatar']),router['get'](_0x57254e('0x9'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x2b')]),router[_0x57254e('0x1c')](_0x57254e('0x21'),auth[_0x57254e('0x45')](),controller['getQueues']),router[_0x57254e('0x1c')](_0x57254e('0x24'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x49')]),router[_0x57254e('0x1c')](_0x57254e('0x14'),auth[_0x57254e('0x45')](),controller['getGroups']),router[_0x57254e('0x1c')](_0x57254e('0x20'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x3f')]),router[_0x57254e('0x1c')](_0x57254e('0x30'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x40')]),router[_0x57254e('0x1c')](_0x57254e('0x52'),auth[_0x57254e('0x45')](),controller['getChatInteractions']),router['get'](_0x57254e('0x3'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x27')]),router[_0x57254e('0x1c')](_0x57254e('0x23'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x0')]),router[_0x57254e('0x1c')](_0x57254e('0x48'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x12')]),router[_0x57254e('0x1c')](_0x57254e('0xb'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x6')]),router[_0x57254e('0x1c')](_0x57254e('0x1e'),auth[_0x57254e('0x45')](),controller['getWhatsappInteractions']),router[_0x57254e('0x1c')](_0x57254e('0x37'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x1a')]),router['get'](_0x57254e('0x4e'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x68')]),router[_0x57254e('0x1c')](_0x57254e('0x32'),auth['isAuthenticated'](),controller['getAgents']),router[_0x57254e('0x1c')]('/:id/prefixes',auth[_0x57254e('0x45')](),controller[_0x57254e('0x3a')]),router[_0x57254e('0x1c')](_0x57254e('0x1d'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x2f')]),router[_0x57254e('0x1c')](_0x57254e('0x17'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x6a')]),router[_0x57254e('0x1c')](_0x57254e('0x1b'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x56')]),router[_0x57254e('0x1c')](_0x57254e('0x2'),auth['isAuthenticated'](),controller[_0x57254e('0x54')]),router[_0x57254e('0x1c')](_0x57254e('0x51'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x5c')]),router['get'](_0x57254e('0x31'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x34')]),router['get'](_0x57254e('0x55'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x1')]),router[_0x57254e('0x1c')](_0x57254e('0x5d'),auth['isAuthenticated'](),controller['getScheduledCalls']),router['get'](_0x57254e('0x2e'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x7')]),router['post']('/:id/contacts',auth[_0x57254e('0x45')](),controller[_0x57254e('0x16')]),router['post']('/',auth[_0x57254e('0x45')](),controller[_0x57254e('0x3e')]),router['post']('/create_many',auth[_0x57254e('0x45')](),controller[_0x57254e('0x25')]),router[_0x57254e('0x67')](_0x57254e('0x21'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x4f')]);const upload=multer({'storage':multer[_0x57254e('0x4c')]({'destination':function(_0x2ebcfa,_0x198ef5,_0xbc4d5f){const _0x18fd52=_0x57254e;_0xbc4d5f(null,path[_0x18fd52('0x60')](config[_0x18fd52('0x47')],_0x18fd52('0x5a')));},'filename':function(_0x480394,_0x3636d6,_0x164540){const _0x5e5df6=_0x57254e;_0x164540(null,util[_0x5e5df6('0x6b')](_0x5e5df6('0xd'),Date[_0x5e5df6('0x2a')](),_0x3636d6['originalname']));}})});router[_0x57254e('0x67')]('/:id/avatar',upload[_0x57254e('0x66')](_0x57254e('0xf')),controller[_0x57254e('0x18')]),router['post']('/:id/login',auth[_0x57254e('0x45')](),controller['login']),router['post'](_0x57254e('0x62'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x2d')]),router[_0x57254e('0x67')](_0x57254e('0x39'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x4')]),router['post'](_0x57254e('0x63'),auth[_0x57254e('0x45')](),controller['unpause']),router[_0x57254e('0x67')]('/:id/teams',auth[_0x57254e('0x45')](),controller[_0x57254e('0xa')]),router[_0x57254e('0x67')](_0x57254e('0xe'),auth[_0x57254e('0x45')](),controller['addChatInteractions']),router[_0x57254e('0x67')](_0x57254e('0x69'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x3c')]),router[_0x57254e('0x67')]('/:id/fax_interactions',auth[_0x57254e('0x45')](),controller[_0x57254e('0x4b')]),router[_0x57254e('0x67')](_0x57254e('0x57'),auth['isAuthenticated'](),controller[_0x57254e('0x28')]),router[_0x57254e('0x67')](_0x57254e('0x5f'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x65')]),router[_0x57254e('0x67')](_0x57254e('0x35'),auth['isAuthenticated'](),controller[_0x57254e('0x33')]),router['post'](_0x57254e('0x1d'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x29')]),router[_0x57254e('0x67')](_0x57254e('0x17'),auth['isAuthenticated'](),controller[_0x57254e('0x22')]),router[_0x57254e('0x67')]('/:id/openchannel_accounts',auth[_0x57254e('0x45')](),controller[_0x57254e('0x42')]),router[_0x57254e('0x67')](_0x57254e('0x2'),auth[_0x57254e('0x45')](),controller['addSmsAccounts']),router[_0x57254e('0x67')](_0x57254e('0x51'),auth[_0x57254e('0x45')](),controller['addChatWebsites']),router['post']('/:id/whatsapp_accounts',auth['isAuthenticated'](),controller[_0x57254e('0x3d')]),router['post'](_0x57254e('0x55'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x53')]),router[_0x57254e('0x67')](_0x57254e('0x2e'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x2c')]),router[_0x57254e('0x41')]('/:id',auth[_0x57254e('0x45')](),controller['update']),router[_0x57254e('0x41')](_0x57254e('0x5b'),auth['isAuthenticated'](),controller[_0x57254e('0x8')]),router[_0x57254e('0x44')](_0x57254e('0x21'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x64')]),router[_0x57254e('0x44')](_0x57254e('0x37'),auth['isAuthenticated'](),controller[_0x57254e('0x10')]),router[_0x57254e('0x44')](_0x57254e('0x11'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x15')]),router[_0x57254e('0x44')]('/:id/chat_interactions',auth[_0x57254e('0x45')](),controller[_0x57254e('0x26')]),router['delete'](_0x57254e('0x69'),auth['isAuthenticated'](),controller['removeMailInteractions']),router[_0x57254e('0x44')]('/:id/fax_interactions',auth[_0x57254e('0x45')](),controller[_0x57254e('0x61')]),router[_0x57254e('0x44')](_0x57254e('0x57'),auth[_0x57254e('0x45')](),controller[_0x57254e('0xc')]),router['delete'](_0x57254e('0x5f'),auth[_0x57254e('0x45')](),controller['removeOpenchannelInteractions']),router[_0x57254e('0x44')]('/:id/whatsapp_interactions',auth[_0x57254e('0x45')](),controller['removeWhatsappInteractions']),router[_0x57254e('0x44')](_0x57254e('0x1d'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x5e')]),router[_0x57254e('0x44')]('/:id/mail_accounts',auth[_0x57254e('0x45')](),controller[_0x57254e('0x1f')]),router['delete'](_0x57254e('0x1b'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x38')]),router[_0x57254e('0x44')](_0x57254e('0x2'),auth[_0x57254e('0x45')](),controller[_0x57254e('0x36')]),router[_0x57254e('0x44')]('/:id/chat_websites',auth[_0x57254e('0x45')](),controller['removeChatWebsites']),router[_0x57254e('0x44')]('/:id/whatsapp_accounts',auth['isAuthenticated'](),controller[_0x57254e('0x50')]),router['delete']('/:id/square_projects',auth[_0x57254e('0x45')](),controller[_0x57254e('0x46')]),router[_0x57254e('0x44')](_0x57254e('0x2e'),auth['isAuthenticated'](),controller[_0x57254e('0x43')]),module[_0x57254e('0x3b')]=router; \ No newline at end of file diff --git a/server/api/user/user.attributes.js b/server/api/user/user.attributes.js index 5697849..e20c8a7 100644 --- a/server/api/user/user.attributes.js +++ b/server/api/user/user.attributes.js @@ -1 +1 @@ -const a647_0x10bd=['encryption','PROHIB_PASSED_SCREEN','info','always','auto','util','STRING','accountcode','ALLOWED','permissions','phoneBarEnableScreenRecordingByAgent','update,nonat','all','BOOLEAN','get','ENUM','email','false','lodash','map','update','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','moment','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','isArray','outgoing','insecure','rtcp_mux','sequelize','dtlsverify','exports','dtlsprivatekey','transport','setDataValue','format','nat','yes','nonat','uac','internal','defaultuser','string','rfc2833','active','agent','wss','dtlsenable','allow','user','split','true','PROHIB_NOT_SCREENED','ALLOWED_NOT_SCREENED','loginAttempts','ulaw;alaw;gsm','INTEGER','getDataValue','dynamic','VIRTUAL','avpf','/etc/pki/tls/certs/motion.crt','join','icesupport','force_avp','never','PROHIB','fullname','DATE','blocked','actpass','toLowerCase','udp','callerid','dtlscertfile','certificate','peer','telephone','accept','refuse','name','ALLOWED_PASSED_SCREEN','dtlssetup','ALLOWED_FAILED_SCREEN','originate','fingerprint','\x22%s\x22\x20<%s>','blockedAt','/etc/pki/tls/private/motion.key','PROHIB_FAILED_SCREEN','screenrecording'];(function(_0x453314,_0x10bdc8){const _0x3e65c5=function(_0x91e63d){while(--_0x91e63d){_0x453314['push'](_0x453314['shift']());}};_0x3e65c5(++_0x10bdc8);}(a647_0x10bd,0x1da));const a647_0x3e65=function(_0x453314,_0x10bdc8){_0x453314=_0x453314-0x0;let _0x3e65c5=a647_0x10bd[_0x453314];return _0x3e65c5;};const _0x59b540=a647_0x3e65;'use strict';const Sequelize=require(_0x59b540('0x4')),moment=require(_0x59b540('0x58')),util=require(_0x59b540('0x47')),_=require(_0x59b540('0x54'));module[_0x59b540('0x6')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x59b540('0x37'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x91e63d){const _0x49fd8f=_0x59b540;this[_0x49fd8f('0x9')](_0x49fd8f('0x37'),_0x91e63d),this[_0x49fd8f('0x9')](_0x49fd8f('0x10'),_0x91e63d);},'comment':'The\x20name\x20of\x20the\x20user'},'fullname':{'type':Sequelize[_0x59b540('0x48')],'allowNull':![],'set':function(_0x4c8029){const _0x30c191=_0x59b540;this['setDataValue']('fullname',_0x4c8029),this[_0x30c191('0x9')](_0x30c191('0x30'),util[_0x30c191('0xa')](_0x30c191('0x3d'),_0x4c8029,this[_0x30c191('0x20')]('internal')));}},'alias':{'type':Sequelize[_0x59b540('0x48')]},'email':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x59b540('0x52'),'validate':{'isEmail':!![]},'set':function(_0x2d9bbd){const _0x232207=_0x59b540;_0x2d9bbd&&this[_0x232207('0x9')](_0x232207('0x52'),_0x2d9bbd[_0x232207('0x2e')]());}},'role':{'type':Sequelize[_0x59b540('0x51')]('admin',_0x59b540('0x18'),_0x59b540('0x14'),_0x59b540('0x34')),'allowNull':![]},'password':{'type':Sequelize[_0x59b540('0x48')],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':Sequelize[_0x59b540('0x48')],'defaultValue':'local'},'internal':{'type':Sequelize['INTEGER'](0xb),'allowNull':![],'unique':_0x59b540('0xf'),'set':function(_0x27f382){const _0xc2f5e0=_0x59b540;this[_0xc2f5e0('0x9')](_0xc2f5e0('0xf'),_0x27f382),this[_0xc2f5e0('0x9')](_0xc2f5e0('0x49'),_0x27f382),this[_0xc2f5e0('0x9')](_0xc2f5e0('0x30'),util[_0xc2f5e0('0xa')](_0xc2f5e0('0x3d'),this[_0xc2f5e0('0x20')](_0xc2f5e0('0x2a')),_0x27f382));}},'salt':{'type':Sequelize[_0x59b540('0x48')]},'phone':{'type':Sequelize[_0x59b540('0x48')]},'mobile':{'type':Sequelize[_0x59b540('0x48')]},'address':{'type':Sequelize[_0x59b540('0x48')]},'zipcode':{'type':Sequelize[_0x59b540('0x48')]},'userpic':{'type':Sequelize[_0x59b540('0x48')]},'city':{'type':Sequelize[_0x59b540('0x48')]},'country':{'type':Sequelize['STRING']},'online':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastLoginAt':{'type':Sequelize['DATE']},'voicePause':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'chatPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'mailPause':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'faxPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'smsPause':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'whatsappPause':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'openchannelPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'pauseType':{'type':Sequelize[_0x59b540('0x48')],'defaultValue':'DEFAULT\x20PAUSE'},'lastPauseAt':{'type':Sequelize[_0x59b540('0x2b')]},'chatCapacity':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x0},'mailCapacity':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x0},'faxCapacity':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x0},'smsCapacity':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x0},'whatsappCapacity':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x0},'openchannelCapacity':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'phoneBarEnableSettings':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':!![]},'phoneBarListenPort':{'type':Sequelize[_0x59b540('0x1f')](0x5),'defaultValue':0x1428},'phoneBarExpires':{'type':Sequelize['INTEGER'](0x5),'defaultValue':0x78},'phoneBarRemoteControl':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'phoneBarRingInUse':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'chanspy':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'description':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'host':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![],'defaultValue':_0x59b540('0x21')},'ipaddr':{'type':Sequelize['STRING'],'allowNull':!![]},'port':{'type':Sequelize[_0x59b540('0x1f')](0x5),'allowNull':!![]},'regseconds':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'fullcontact':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'regserver':{'type':Sequelize['STRING'],'allowNull':!![]},'useragent':{'type':Sequelize['STRING'],'allowNull':!![]},'lastms':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'type':{'type':Sequelize[_0x59b540('0x51')]('friend','user',_0x59b540('0x33')),'allowNull':!![],'defaultValue':'friend'},'context':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![],'defaultValue':'from-sip'},'callingpres':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0x1c'),_0x59b540('0x38'),_0x59b540('0x3a'),_0x59b540('0x4a'),_0x59b540('0x1b'),_0x59b540('0x43'),_0x59b540('0x40'),_0x59b540('0x29')),'allowNull':!![]},'deny':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'permit':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'secret':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'md5secret':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'remotesecret':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'transport':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![],'defaultValue':_0x59b540('0x2f'),'set':function(_0x38d8d){const _0x55408a=_0x59b540;this['setDataValue'](_0x55408a('0x8'),_0x38d8d?_0x38d8d[_0x55408a('0x25')](','):null);},'get':function(){const _0x3765cd=_0x59b540;return this['getDataValue'](_0x3765cd('0x8'))?this[_0x3765cd('0x20')](_0x3765cd('0x8'))['split'](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]'},'dtmfmode':{'type':Sequelize['ENUM'](_0x59b540('0x12'),_0x59b540('0x44'),'shortinfo','inband',_0x59b540('0x46')),'allowNull':!![],'defaultValue':'rfc2833'},'directmedia':{'type':Sequelize['ENUM']('yes','no',_0x59b540('0xd'),'update',_0x59b540('0x1')),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x59b540('0x51')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'directmediadeny':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'nat':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![],'defaultValue':'force_rport,comedia','set':function(_0x191185){const _0x578c55=_0x59b540;this[_0x578c55('0x9')](_0x578c55('0xb'),_0x191185?_0x191185[_0x578c55('0x25')](','):null);},'get':function(){const _0x19efbc=_0x59b540;return this[_0x19efbc('0x20')](_0x19efbc('0xb'))?this[_0x19efbc('0x20')](_0x19efbc('0xb'))[_0x19efbc('0x19')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]'},'callgroup':{'type':Sequelize['STRING']},'namedcallgroup':{'type':Sequelize[_0x59b540('0x48')]},'pickupgroup':{'type':Sequelize[_0x59b540('0x48')]},'namedpickupgroup':{'type':Sequelize['STRING']},'language':{'type':Sequelize[_0x59b540('0x48')],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x59b540('0x48')]},'disallow':{'type':Sequelize[_0x59b540('0x48')],'allowNull':![],'defaultValue':_0x59b540('0x4e')},'allow':{'type':Sequelize[_0x59b540('0x48')],'allowNull':![],'defaultValue':_0x59b540('0x1e'),'set':function(_0x2a782d){const _0x485b8b=_0x59b540;this[_0x485b8b('0x9')](_0x485b8b('0x17'),_0x2a782d?_0x2a782d[_0x485b8b('0x25')](';'):_0x485b8b('0x1e'));},'get':function(){const _0x334fd=_0x59b540;return this[_0x334fd('0x20')]('allow')?this[_0x334fd('0x20')](_0x334fd('0x17'))['split'](';'):null;},'comment':_0x59b540('0x59')},'autoframing':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'insecure':{'type':Sequelize['STRING'],'allowNull':!![],'set':function(_0x3ea960){const _0x4aa360=_0x59b540;this[_0x4aa360('0x9')]('insecure',_0x3ea960?_0x3ea960['join'](','):null);},'get':function(){const _0x306337=_0x59b540;return this[_0x306337('0x20')](_0x306337('0x2'))?this[_0x306337('0x20')](_0x306337('0x2'))[_0x306337('0x19')](','):null;},'comment':_0x59b540('0x57')},'trustrpid':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':Sequelize['ENUM'](_0x59b540('0xc'),'no',_0x59b540('0x28')),'allowNull':!![]},'promiscredir':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'useclientcode':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'accountcode':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'setvar':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'callerid':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![],'defaultValue':'\x22\x22\x20<>'},'amaflags':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'callcounter':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![],'defaultValue':_0x59b540('0xc')},'busylevel':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'allowoverlap':{'type':Sequelize['ENUM'](_0x59b540('0xc'),'no'),'allowNull':!![]},'allowsubscribe':{'type':Sequelize[_0x59b540('0x51')]('yes','no'),'allowNull':!![]},'allowtransfer':{'type':Sequelize[_0x59b540('0x51')]('yes','no'),'allowNull':!![]},'ignoresdpversion':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'subscribecontext':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'template':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'videosupport':{'type':Sequelize['ENUM']('yes','no',_0x59b540('0x45')),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'rfc2833compensate':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'mailbox':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'session_timers':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0x35'),_0x59b540('0x36'),_0x59b540('0x3b')),'allowNull':!![]},'session_expires':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'session_minse':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'session_refresher':{'type':Sequelize['ENUM'](_0x59b540('0xe'),'uas'),'allowNull':!![],'defaultValue':'uas'},'t38pt_usertpsource':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'regexten':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'fromdomain':{'type':Sequelize['STRING'],'allowNull':!![]},'fromuser':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'qualify':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![],'defaultValue':_0x59b540('0xc')},'keepalive':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'defaultip':{'type':Sequelize['STRING'],'allowNull':!![]},'defaultuser':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'rtptimeout':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'rtpholdtimeout':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'rtpkeepalive':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'sendrpid':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'callbackextension':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'timert1':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'timerb':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'qualifyfreq':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'contactpermit':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'contactdeny':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'contactacl':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'unsolicited_mailbox':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'use_q850_reason':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'maxforwards':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'encryption':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'force_avp':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'icesupport':{'type':Sequelize[_0x59b540('0x51')]('yes','no'),'allowNull':!![]},'dtlsenable':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'dtlsverify':{'type':Sequelize['ENUM'](_0x59b540('0xc'),'no',_0x59b540('0x3c'),_0x59b540('0x32')),'allowNull':!![]},'dtlsrekey':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![]},'dtlscertfile':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlsprivatekey':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'dtlscipher':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'dtlscafile':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'dtlscapath':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'dtlssetup':{'type':Sequelize['ENUM'](_0x59b540('0x13'),'passive',_0x59b540('0x2d')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'usereqphone':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'recordofffeature':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'call_limit':{'type':Sequelize[_0x59b540('0x1f')](0xb),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no'),'allowNull':!![]},'subscribemwi':{'type':Sequelize[_0x59b540('0x51')]('yes','no'),'allowNull':!![]},'vmexten':{'type':Sequelize['STRING'],'allowNull':!![]},'mohinterpret':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'mohsuggest':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'parkinglot':{'type':Sequelize['STRING'],'allowNull':!![]},'canreinvite':{'type':Sequelize[_0x59b540('0x51')](_0x59b540('0xc'),'no',_0x59b540('0xd'),_0x59b540('0x56'),_0x59b540('0x4d')),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'resetPasswordToken':{'type':Sequelize['STRING']},'resetPasswordExpires':{'type':Sequelize['DATE']},'passwordResetAt':{'type':Sequelize[_0x59b540('0x2b')],'defaultValue':null},'previousPasswords':{'type':Sequelize[_0x59b540('0x48')]},'showWebBar':{'type':Sequelize['INTEGER'],'defaultValue':0x0,'set':function(_0x572b0a){const _0x46ae85=_0x59b540;this[_0x46ae85('0x9')]('showWebBar',_0x572b0a);const _0x2f6f9e=this[_0x46ae85('0x50')]({'plain':!![]});switch(_0x572b0a){case 0x0:case 0x1:{let _0x23d67c=_0x2f6f9e[_0x46ae85('0x8')]?_[_0x46ae85('0x0')](_0x2f6f9e[_0x46ae85('0x8')])?_0x2f6f9e['transport'][_0x46ae85('0x25')]():_0x2f6f9e[_0x46ae85('0x8')]:_0x46ae85('0x2f');_0x23d67c===_0x46ae85('0x15')&&(_0x23d67c=_0x46ae85('0x2f')),this[_0x46ae85('0x9')](_0x46ae85('0x8'),_0x23d67c),this[_0x46ae85('0x9')](_0x46ae85('0x42'),'no'),this[_0x46ae85('0x9')](_0x46ae85('0x23'),null),this[_0x46ae85('0x9')]('force_avp',null),this['setDataValue']('icesupport',null),this[_0x46ae85('0x9')](_0x46ae85('0x16'),null),this[_0x46ae85('0x9')](_0x46ae85('0x5'),null),this[_0x46ae85('0x9')](_0x46ae85('0x39'),null),this[_0x46ae85('0x9')](_0x46ae85('0x31'),null),this['setDataValue'](_0x46ae85('0x7'),null),this[_0x46ae85('0x9')]('rtcp_mux','no');}break;case 0x2:this['setDataValue'](_0x46ae85('0x8'),_0x46ae85('0x15')),this[_0x46ae85('0x9')](_0x46ae85('0x42'),_0x46ae85('0xc')),this[_0x46ae85('0x9')](_0x46ae85('0x23'),_0x46ae85('0xc')),this['setDataValue'](_0x46ae85('0x27'),_0x46ae85('0xc')),this[_0x46ae85('0x9')](_0x46ae85('0x26'),_0x46ae85('0xc')),this[_0x46ae85('0x9')](_0x46ae85('0x16'),_0x46ae85('0xc')),this['setDataValue'](_0x46ae85('0x5'),'no'),this['setDataValue'](_0x46ae85('0x39'),_0x46ae85('0x2d')),this['setDataValue'](_0x46ae85('0x31'),_0x2f6f9e[_0x46ae85('0x31')]||_0x46ae85('0x24')),this['setDataValue'](_0x46ae85('0x7'),_0x2f6f9e[_0x46ae85('0x7')]||_0x46ae85('0x3f')),this[_0x46ae85('0x9')](_0x46ae85('0x3'),_0x46ae85('0xc'));break;default:}}},'permissions':{'type':Sequelize['TEXT'],'set':function(_0x3213ca){const _0x562d33=_0x59b540;this['setDataValue'](_0x562d33('0x4b'),_0x3213ca?_0x3213ca['join'](','):[]);},'get':function(){const _0x50da92=_0x59b540;return this[_0x50da92('0x20')](_0x50da92('0x4b'))?_[_0x50da92('0x55')](this[_0x50da92('0x20')]('permissions')[_0x50da92('0x19')](','),function(_0x178921){return parseInt(_0x178921,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':Sequelize[_0x59b540('0x48')]},'phoneBarNoReplyNumber':{'type':Sequelize['STRING']},'phoneBarBusyNumber':{'type':Sequelize['STRING']},'phoneBarUnconditional':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarNoReply':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'phoneBarBusy':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'phoneBarDnd':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'extensionMonitor':{'type':Sequelize[_0x59b540('0x48')],'defaultValue':''},'crudPermissions':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x0},'rtcp_mux':{'type':Sequelize['ENUM'](_0x59b540('0xc'),'no'),'defaultValue':'no'},'allowmessenger':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':Sequelize['STRING']},'phoneBarEnableJaws':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':Sequelize[_0x59b540('0x22')],'get':function(){const _0x38706b=_0x59b540;return this['getDataValue'](_0x38706b('0x4c'))?this['getDataValue'](_0x38706b('0x4c')):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarPrefixRequired':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'hotdesk':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'interface':{'type':Sequelize[_0x59b540('0x48')],'defaultValue':null},'privacyEnabled':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'apiKeyNonce':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'apiKeyIat':{'type':Sequelize[_0x59b540('0x48')],'allowNull':!![]},'screenrecording':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![],'set':function(_0x5cafa7){const _0x27d723=_0x59b540;if(typeof _0x5cafa7===_0x27d723('0x11')){const _0x22221c=_0x5cafa7==='1'?!![]:_0x5cafa7==='0'?![]:_0x5cafa7===_0x27d723('0x1a')?!![]:_0x5cafa7===_0x27d723('0x53')?![]:![];this[_0x27d723('0x9')](_0x27d723('0x41'),_0x22221c);}else this['setDataValue'](_0x27d723('0x41'),_0x5cafa7);}},'blocked':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'set':function(_0x9af1e4){const _0x3ef39f=_0x59b540;this[_0x3ef39f('0x9')](_0x3ef39f('0x2c'),_0x9af1e4),_0x9af1e4===!![]?(this[_0x3ef39f('0x9')](_0x3ef39f('0x3e'),moment()),this['setDataValue'](_0x3ef39f('0x1d'),0x0)):this[_0x3ef39f('0x9')](_0x3ef39f('0x3e'),null);}},'blockedAt':{'type':Sequelize[_0x59b540('0x2b')],'defaultValue':null},'loginAttempts':{'type':Sequelize[_0x59b540('0x1f')],'defaultValue':0x0},'disabled':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':![]},'settingsEnabled':{'type':Sequelize[_0x59b540('0x4f')],'defaultValue':!![]}}; \ No newline at end of file +const a647_0x50a0=['dtlsprivatekey','lodash','avpf','rtcp_mux','outgoing','isArray','showWebBar','get','allow','admin','user','permissions','PROHIB_FAILED_SCREEN','dynamic','actpass','getDataValue','phoneBarEnableScreenRecordingByAgent','wss','transport','string','map','ALLOWED_PASSED_SCREEN','internal','passive','STRING','fingerprint','split','blockedAt','insecure','screenrecording','telephone','ALLOWED_FAILED_SCREEN','yes','true','false','exports','accountcode','update,nonat','BOOLEAN','TEXT','force_avp','dtlssetup','auto','email','toLowerCase','always','setDataValue','join','format','fullname','VIRTUAL','/etc/pki/tls/certs/motion.crt','blocked','update','callerid','INTEGER','util','name','nat','ENUM','inband','dtlscertfile','rfc2833','force_rport,comedia','friend','dtlsenable','The\x20name\x20of\x20the\x20user','active','ALLOWED','\x22\x22\x20<>','nonat','ALLOWED_NOT_SCREENED','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','all','icesupport','dtlsverify','uac','moment','PROHIB','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','udp','shortinfo','originate','encryption','agent','DATE','\x22%s\x22\x20<%s>','loginAttempts'];(function(_0xb6e7ab,_0x50a09a){const _0x336e8e=function(_0x596da6){while(--_0x596da6){_0xb6e7ab['push'](_0xb6e7ab['shift']());}};_0x336e8e(++_0x50a09a);}(a647_0x50a0,0xc3));const a647_0x336e=function(_0xb6e7ab,_0x50a09a){_0xb6e7ab=_0xb6e7ab-0x0;let _0x336e8e=a647_0x50a0[_0xb6e7ab];return _0x336e8e;};const _0x190956=a647_0x336e;'use strict';const Sequelize=require('sequelize'),moment=require(_0x190956('0x3a')),util=require(_0x190956('0x25')),_=require(_0x190956('0x46'));module[_0x190956('0x10')]={'name':{'type':Sequelize[_0x190956('0x5')],'allowNull':![],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x596da6){const _0x4f6626=_0x190956;this[_0x4f6626('0x1b')](_0x4f6626('0x26'),_0x596da6),this[_0x4f6626('0x1b')]('defaultuser',_0x596da6);},'comment':_0x190956('0x2f')},'fullname':{'type':Sequelize[_0x190956('0x5')],'allowNull':![],'set':function(_0x2be492){const _0x41c4a8=_0x190956;this[_0x41c4a8('0x1b')](_0x41c4a8('0x1e'),_0x2be492),this[_0x41c4a8('0x1b')](_0x41c4a8('0x23'),util['format'](_0x41c4a8('0x43'),_0x2be492,this['getDataValue']('internal')));}},'alias':{'type':Sequelize['STRING']},'email':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x190956('0x18'),'validate':{'isEmail':!![]},'set':function(_0x3acd61){const _0x4b3465=_0x190956;_0x3acd61&&this[_0x4b3465('0x1b')](_0x4b3465('0x18'),_0x3acd61[_0x4b3465('0x19')]());}},'role':{'type':Sequelize[_0x190956('0x28')](_0x190956('0x4e'),_0x190956('0x4f'),_0x190956('0x41'),_0x190956('0xb')),'allowNull':![]},'password':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':Sequelize[_0x190956('0x5')],'defaultValue':'local'},'internal':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':![],'unique':_0x190956('0x3'),'set':function(_0x92e3d8){const _0x44a1ab=_0x190956;this['setDataValue']('internal',_0x92e3d8),this[_0x44a1ab('0x1b')](_0x44a1ab('0x11'),_0x92e3d8),this[_0x44a1ab('0x1b')](_0x44a1ab('0x23'),util[_0x44a1ab('0x1d')](_0x44a1ab('0x43'),this[_0x44a1ab('0x54')](_0x44a1ab('0x1e')),_0x92e3d8));}},'salt':{'type':Sequelize[_0x190956('0x5')]},'phone':{'type':Sequelize['STRING']},'mobile':{'type':Sequelize[_0x190956('0x5')]},'address':{'type':Sequelize['STRING']},'zipcode':{'type':Sequelize[_0x190956('0x5')]},'userpic':{'type':Sequelize[_0x190956('0x5')]},'city':{'type':Sequelize[_0x190956('0x5')]},'country':{'type':Sequelize[_0x190956('0x5')]},'online':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'lastLoginAt':{'type':Sequelize['DATE']},'voicePause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'chatPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'mailPause':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'faxPause':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'smsPause':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'whatsappPause':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'openchannelPause':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'pauseType':{'type':Sequelize[_0x190956('0x5')],'defaultValue':'DEFAULT\x20PAUSE'},'lastPauseAt':{'type':Sequelize[_0x190956('0x42')]},'chatCapacity':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x0},'mailCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'faxCapacity':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x0},'smsCapacity':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x0},'whatsappCapacity':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x0},'openchannelCapacity':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'phoneBarEnableSettings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarListenPort':{'type':Sequelize['INTEGER'](0x5),'defaultValue':0x1428},'phoneBarExpires':{'type':Sequelize['INTEGER'](0x5),'defaultValue':0x78},'phoneBarRemoteControl':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarRingInUse':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'chanspy':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'description':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'host':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![],'defaultValue':_0x190956('0x52')},'ipaddr':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'port':{'type':Sequelize['INTEGER'](0x5),'allowNull':!![]},'regseconds':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'fullcontact':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'regserver':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'useragent':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'lastms':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'type':{'type':Sequelize[_0x190956('0x28')](_0x190956('0x2d'),'user','peer'),'allowNull':!![],'defaultValue':_0x190956('0x2d')},'context':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![],'defaultValue':'from-sip'},'callingpres':{'type':Sequelize['ENUM'](_0x190956('0x34'),_0x190956('0x2'),_0x190956('0xc'),_0x190956('0x31'),'PROHIB_NOT_SCREENED','PROHIB_PASSED_SCREEN',_0x190956('0x51'),_0x190956('0x3b')),'allowNull':!![]},'deny':{'type':Sequelize['STRING'],'allowNull':!![]},'permit':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'secret':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'md5secret':{'type':Sequelize['STRING'],'allowNull':!![]},'remotesecret':{'type':Sequelize['STRING'],'allowNull':!![]},'transport':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![],'defaultValue':_0x190956('0x3d'),'set':function(_0x33b270){const _0x1d89ff=_0x190956;this[_0x1d89ff('0x1b')]('transport',_0x33b270?_0x33b270[_0x1d89ff('0x1c')](','):null);},'get':function(){const _0x36b27b=_0x190956;return this[_0x36b27b('0x54')](_0x36b27b('0x57'))?this[_0x36b27b('0x54')](_0x36b27b('0x57'))[_0x36b27b('0x7')](','):null;},'comment':_0x190956('0x35')},'dtmfmode':{'type':Sequelize[_0x190956('0x28')](_0x190956('0x2b'),'info',_0x190956('0x3e'),_0x190956('0x29'),_0x190956('0x17')),'allowNull':!![],'defaultValue':_0x190956('0x2b')},'directmedia':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no','nonat',_0x190956('0x22'),_0x190956('0x49')),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':Sequelize['ENUM'](_0x190956('0xd'),'no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':Sequelize['STRING'],'allowNull':!![]},'directmediadeny':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'nat':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':_0x190956('0x2c'),'set':function(_0x374597){const _0x5d1eab=_0x190956;this['setDataValue']('nat',_0x374597?_0x374597[_0x5d1eab('0x1c')](','):null);},'get':function(){const _0x346859=_0x190956;return this['getDataValue'](_0x346859('0x27'))?this[_0x346859('0x54')](_0x346859('0x27'))[_0x346859('0x7')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]'},'callgroup':{'type':Sequelize[_0x190956('0x5')]},'namedcallgroup':{'type':Sequelize[_0x190956('0x5')]},'pickupgroup':{'type':Sequelize['STRING']},'namedpickupgroup':{'type':Sequelize['STRING']},'language':{'type':Sequelize['STRING'],'defaultValue':'en'},'tonezone':{'type':Sequelize['STRING']},'disallow':{'type':Sequelize[_0x190956('0x5')],'allowNull':![],'defaultValue':_0x190956('0x36')},'allow':{'type':Sequelize[_0x190956('0x5')],'allowNull':![],'defaultValue':'ulaw;alaw;gsm','set':function(_0x5905f3){const _0x13f194=_0x190956;this[_0x13f194('0x1b')]('allow',_0x5905f3?_0x5905f3[_0x13f194('0x1c')](';'):'ulaw;alaw;gsm');},'get':function(){const _0xe8716c=_0x190956;return this['getDataValue'](_0xe8716c('0x4d'))?this[_0xe8716c('0x54')](_0xe8716c('0x4d'))['split'](';'):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]'},'autoframing':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'insecure':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![],'set':function(_0x2cc886){const _0xb4811c=_0x190956;this['setDataValue']('insecure',_0x2cc886?_0x2cc886[_0xb4811c('0x1c')](','):null);},'get':function(){const _0x3a393b=_0x190956;return this[_0x3a393b('0x54')](_0x3a393b('0x9'))?this[_0x3a393b('0x54')](_0x3a393b('0x9'))['split'](','):null;},'comment':_0x190956('0x3c')},'trustrpid':{'type':Sequelize['ENUM']('yes','no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize['ENUM'](_0x190956('0xd'),'no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x190956('0x28')]('yes','no','never'),'allowNull':!![]},'promiscredir':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'useclientcode':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'accountcode':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'setvar':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'callerid':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':_0x190956('0x32')},'amaflags':{'type':Sequelize['STRING'],'allowNull':!![]},'callcounter':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![],'defaultValue':_0x190956('0xd')},'busylevel':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'allowoverlap':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'allowsubscribe':{'type':Sequelize['ENUM'](_0x190956('0xd'),'no'),'allowNull':!![]},'allowtransfer':{'type':Sequelize['ENUM'](_0x190956('0xd'),'no'),'allowNull':!![]},'ignoresdpversion':{'type':Sequelize[_0x190956('0x28')]('yes','no'),'allowNull':!![]},'subscribecontext':{'type':Sequelize['STRING'],'allowNull':!![]},'template':{'type':Sequelize['STRING'],'allowNull':!![]},'videosupport':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no',_0x190956('0x1a')),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'rfc2833compensate':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'mailbox':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'session_timers':{'type':Sequelize[_0x190956('0x28')]('accept','refuse',_0x190956('0x3f')),'allowNull':!![]},'session_expires':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'session_minse':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'session_refresher':{'type':Sequelize[_0x190956('0x28')](_0x190956('0x39'),'uas'),'allowNull':!![],'defaultValue':'uas'},'t38pt_usertpsource':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'regexten':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'fromdomain':{'type':Sequelize['STRING'],'allowNull':!![]},'fromuser':{'type':Sequelize['STRING'],'allowNull':!![]},'qualify':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![],'defaultValue':_0x190956('0xd')},'keepalive':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'defaultip':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'defaultuser':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'rtptimeout':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'rtpholdtimeout':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'rtpkeepalive':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'sendrpid':{'type':Sequelize[_0x190956('0x28')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':Sequelize['STRING'],'allowNull':!![]},'callbackextension':{'type':Sequelize['STRING'],'allowNull':!![]},'timert1':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'timerb':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'qualifyfreq':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'contactpermit':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'contactdeny':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'contactacl':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'unsolicited_mailbox':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'use_q850_reason':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'maxforwards':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'encryption':{'type':Sequelize[_0x190956('0x28')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'force_avp':{'type':Sequelize['ENUM'](_0x190956('0xd'),'no'),'allowNull':!![]},'icesupport':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'dtlsenable':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'dtlsverify':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no',_0x190956('0x6'),'certificate'),'allowNull':!![]},'dtlsrekey':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![]},'dtlscertfile':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'dtlsprivatekey':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'dtlscipher':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'dtlscafile':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'dtlscapath':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'dtlssetup':{'type':Sequelize[_0x190956('0x28')](_0x190956('0x30'),_0x190956('0x4'),'actpass'),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'usereqphone':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'recordofffeature':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'call_limit':{'type':Sequelize[_0x190956('0x24')](0xb),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'subscribemwi':{'type':Sequelize[_0x190956('0x28')](_0x190956('0xd'),'no'),'allowNull':!![]},'vmexten':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'mohinterpret':{'type':Sequelize['STRING'],'allowNull':!![]},'mohsuggest':{'type':Sequelize['STRING'],'allowNull':!![]},'parkinglot':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'canreinvite':{'type':Sequelize[_0x190956('0x28')]('yes','no',_0x190956('0x33'),'update',_0x190956('0x12')),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'resetPasswordToken':{'type':Sequelize['STRING']},'resetPasswordExpires':{'type':Sequelize[_0x190956('0x42')]},'passwordResetAt':{'type':Sequelize[_0x190956('0x42')],'defaultValue':null},'previousPasswords':{'type':Sequelize['STRING']},'showWebBar':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x0,'set':function(_0x4c3355){const _0x4dac17=_0x190956;this[_0x4dac17('0x1b')](_0x4dac17('0x4b'),_0x4c3355);const _0x5e48da=this[_0x4dac17('0x4c')]({'plain':!![]});switch(_0x4c3355){case 0x0:case 0x1:{let _0x19ed39=_0x5e48da[_0x4dac17('0x57')]?_[_0x4dac17('0x4a')](_0x5e48da[_0x4dac17('0x57')])?_0x5e48da[_0x4dac17('0x57')][_0x4dac17('0x1c')]():_0x5e48da[_0x4dac17('0x57')]:_0x4dac17('0x3d');_0x19ed39===_0x4dac17('0x56')&&(_0x19ed39=_0x4dac17('0x3d')),this[_0x4dac17('0x1b')](_0x4dac17('0x57'),_0x19ed39),this[_0x4dac17('0x1b')](_0x4dac17('0x40'),'no'),this[_0x4dac17('0x1b')](_0x4dac17('0x47'),null),this[_0x4dac17('0x1b')](_0x4dac17('0x15'),null),this[_0x4dac17('0x1b')](_0x4dac17('0x37'),null),this[_0x4dac17('0x1b')](_0x4dac17('0x2e'),null),this[_0x4dac17('0x1b')](_0x4dac17('0x38'),null),this[_0x4dac17('0x1b')]('dtlssetup',null),this[_0x4dac17('0x1b')](_0x4dac17('0x2a'),null),this[_0x4dac17('0x1b')](_0x4dac17('0x45'),null),this[_0x4dac17('0x1b')](_0x4dac17('0x48'),'no');}break;case 0x2:this['setDataValue']('transport','wss'),this[_0x4dac17('0x1b')](_0x4dac17('0x40'),_0x4dac17('0xd')),this[_0x4dac17('0x1b')]('avpf','yes'),this[_0x4dac17('0x1b')](_0x4dac17('0x15'),_0x4dac17('0xd')),this[_0x4dac17('0x1b')]('icesupport',_0x4dac17('0xd')),this['setDataValue']('dtlsenable',_0x4dac17('0xd')),this[_0x4dac17('0x1b')](_0x4dac17('0x38'),'no'),this[_0x4dac17('0x1b')](_0x4dac17('0x16'),_0x4dac17('0x53')),this['setDataValue'](_0x4dac17('0x2a'),_0x5e48da[_0x4dac17('0x2a')]||_0x4dac17('0x20')),this[_0x4dac17('0x1b')](_0x4dac17('0x45'),_0x5e48da['dtlsprivatekey']||'/etc/pki/tls/private/motion.key'),this['setDataValue'](_0x4dac17('0x48'),_0x4dac17('0xd'));break;default:}}},'permissions':{'type':Sequelize[_0x190956('0x14')],'set':function(_0x4c7559){const _0x187014=_0x190956;this['setDataValue'](_0x187014('0x50'),_0x4c7559?_0x4c7559['join'](','):[]);},'get':function(){const _0x3aff14=_0x190956;return this[_0x3aff14('0x54')](_0x3aff14('0x50'))?_[_0x3aff14('0x1')](this[_0x3aff14('0x54')]('permissions')[_0x3aff14('0x7')](','),function(_0x2f3769){return parseInt(_0x2f3769,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':Sequelize[_0x190956('0x5')]},'phoneBarNoReplyNumber':{'type':Sequelize['STRING']},'phoneBarBusyNumber':{'type':Sequelize[_0x190956('0x5')]},'phoneBarUnconditional':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'phoneBarNoReply':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarBusy':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'phoneBarDnd':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'extensionMonitor':{'type':Sequelize[_0x190956('0x5')],'defaultValue':''},'crudPermissions':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x0},'rtcp_mux':{'type':Sequelize['ENUM'](_0x190956('0xd'),'no'),'defaultValue':'no'},'allowmessenger':{'type':Sequelize[_0x190956('0x13')],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':Sequelize[_0x190956('0x5')]},'phoneBarEnableJaws':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':Sequelize[_0x190956('0x1f')],'get':function(){const _0x3b7b37=_0x190956;return this[_0x3b7b37('0x54')]('phoneBarEnableScreenRecordingByAgent')?this[_0x3b7b37('0x54')](_0x3b7b37('0x55')):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'phoneBarPrefixRequired':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'hotdesk':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'interface':{'type':Sequelize[_0x190956('0x5')],'defaultValue':null},'privacyEnabled':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'apiKeyNonce':{'type':Sequelize['STRING'],'allowNull':!![]},'apiKeyIat':{'type':Sequelize[_0x190956('0x5')],'allowNull':!![]},'screenrecording':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![],'set':function(_0xe8b855){const _0xd4b989=_0x190956;if(typeof _0xe8b855===_0xd4b989('0x0')){const _0x48526a=_0xe8b855==='1'?!![]:_0xe8b855==='0'?![]:_0xe8b855===_0xd4b989('0xe')?!![]:_0xe8b855===_0xd4b989('0xf')?![]:![];this[_0xd4b989('0x1b')]('screenrecording',_0x48526a);}else this[_0xd4b989('0x1b')](_0xd4b989('0xa'),_0xe8b855);}},'blocked':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'set':function(_0x260b73){const _0xa20da=_0x190956;this['setDataValue'](_0xa20da('0x21'),_0x260b73),_0x260b73===!![]?(this['setDataValue'](_0xa20da('0x8'),moment()),this[_0xa20da('0x1b')](_0xa20da('0x44'),0x0)):this[_0xa20da('0x1b')](_0xa20da('0x8'),null);}},'blockedAt':{'type':Sequelize['DATE'],'defaultValue':null},'loginAttempts':{'type':Sequelize[_0x190956('0x24')],'defaultValue':0x0},'disabled':{'type':Sequelize[_0x190956('0x13')],'defaultValue':![]},'settingsEnabled':{'type':Sequelize[_0x190956('0x13')],'defaultValue':!![]}}; \ No newline at end of file diff --git a/server/api/user/user.controller.js b/server/api/user/user.controller.js index cbf98c0..6812019 100644 --- a/server/api/user/user.controller.js +++ b/server/api/user/user.controller.js @@ -1 +1 @@ -const a648_0x5b99=['addFaxAccounts','user_has_openchannel_interactions:remove','getGroups','fullname','userpic','ChatInteraction','order','internal','addMailInteractions','ids','admin','socket','password','UserProfileSection','length','result','$notBetween','user_has_chat_interactions:remove','getDataValue','addChatWebsites','phone','UserVoiceQueue.penalty','user_has_openchannel_interactions:save','keys','addSquareProjects','getSmsQueues','loginInPause','Queues','includes','sms','attributes','whoami','FaxAccount','$lte','lastPauseAt','MailInteraction','QueuePause','addOpenchannelInteractions','previousPasswords','format','fax','client','removeFaxAccounts','$between','QueueId','forEach','addTeams','lodash','QueryTypes','query','addAvatar','describe','where','addFaxInteractions','openchannelPause','$overlap','isArray','addOpenchannelAccounts','getChatWebsites','add','removeChatWebsites','Tag','emit','Use','removeMailAccounts','Sms','getWhatsappInteractions','path','VIRTUAL','../../config/license/util','nonce','sequelize','getVoiceQueues','send','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Whatsapp','removeSmsInteractions','removeWhatsappAccounts','openchannel','PAUSE','register','then','stack','Invalid\x20body\x20format.\x20Use\x20newPassword','count','addMailAccounts','101','set','Mail','removeFaxInteractions','token','include','Unknown\x20channel','getSmsInteractions','voice','http','update','authenticate','DEFAULT\x20PAUSE','Tags','max','CmHopper','differenceBy','color','passwordHistoryLimit','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20administrator','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20another\x20administrator','file','existsSync','106','Openchannel','$notILike','$not','create','all','getWhatsappAccounts','getChannels','getVoicePrefixes','UserProfileResource','MailAccount','MemberReport','findOne','getVoiceQueuesRt','message','UserVoiceQueueRt','filters','getChatInteractions','getOpenchannelAccounts','getFaxAccounts','User,\x20%s,\x20%s','../../components/parsers/qs','110','lower','109','108','bulkCreate','download','compact','removeApiKey','request\x20sent','Sequelize','addWhatsappInteractions','telephone','agent','YYYY-MM-DD\x20HH:mm:ss','removeOpenchannelAccounts','offset','pause','capitalize','getContacts','getLists','Fax','addChatInteractions','pick','isValidChannel','$any','CmList','getSquareProjects','WhatsappAccount','findByPk','lastName','113','limit','intrf','$notIn','user_has_fax_interactions:remove','root','removeOpenchannelInteractions','userProfileId','autoAssociation','sendStatus','addAgent','SmsInteraction','user_has_fax_interactions:save','Wrong\x20credentials','end','some','logout','push','min_internal','user_has_whatsapp_interactions:save','getScreenRecordings','rawAttributes','penalty','intersection','merge','removeChatInteractions','User,\x20%s,\x20%s,\x20%s','107','sort','join','validatePasswordHistory','upsert','getSmsAccounts','$like','getWhatsappQueues','nolimit','getOpenchannelInteractions','User','103','voicemail','options','apiKeyNonce','111','user_has_mail_interactions:remove','VoicePrefix','fields','from','getMailInteractions','removeSmsAccounts','getMailQueues','VoiceQueue','status','salt','json','114','user_has_mail_interactions:save','102','getTeams','values','Queue:save','updatePasswordsHistory','generateApiKey','SquareProject','Queue:remove','manual','chat','VoiceMail','getQueues','$contained','100','Unauthorized','changePassword','error','getScheduledCalls','user_has_sms_interactions:remove','type','OpenchannelInteraction','$gt','newPassword','../../rediscache','device','chatPause','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user','getFaxQueues','online','undefined','resolve','removeWhatsappInteractions','getMailAccounts','retrieveApiKey','SELECT','includeAll','Unknown\x20role','filter','ScreenRecording','OpenchannelAccount','like','name','and','destroy','omit','checkUserLimits','mobile','ChatWebsite','isMiddleware','settingsEnabled','value','validatePasswordPattern','apiKeyIat','API\x20key\x20not\x20available','unpause','voicePause','info','UserId','Voice','removeMailInteractions','VoiceRecording','channel','role','tag','catch','%s%s','get','map','mail','User\x20not\x20found\x20or\x20not\x20allowed\x20to\x20perform\x20login\x20method','Content-Range','List','CmContact','getFaxInteractions','email','You\x20don\x27t\x20have\x20sufficient\x20privileges\x20to\x20access\x20this\x20resource.','getAgents','../../config/utils','concat','toLowerCase','oldPassword','params','isNil','$iLike','server/files/images/','api','Chat','removeSquareProjects','Agents','getRecordings','interface','createApiKey','user_has_sms_interactions:save','getApiKey','$notLike','setDataValue','model','body','../../mysqldb','remoteAddress','WhatsappInteraction','user','Queue','addSmsInteractions','iat','request','findAll','SmsAccount','connection','ValidationError','securePassword','moment','rows','code','addSmsAccounts','getOpenchannelQueues','addWhatsappAccounts','getChatQueues','Telephones','SIP/%s','flatten','each','faxPause','pauseType'];(function(_0x381564,_0x5b997f){const _0x1f386e=function(_0x2ec322){while(--_0x2ec322){_0x381564['push'](_0x381564['shift']());}};_0x1f386e(++_0x5b997f);}(a648_0x5b99,0x18d));const a648_0x1f38=function(_0x381564,_0x5b997f){_0x381564=_0x381564-0x0;let _0x1f386e=a648_0x5b99[_0x381564];return _0x1f386e;};const _0x133359=a648_0x1f38;'use strict';const moment=require(_0x133359('0x110')),util=require('util'),path=require(_0x133359('0xb')),fs=require('fs'),_=require(_0x133359('0x14c')),{getSocket}=require(_0x133359('0xb8')),socket=getSocket(),authService=require('../../components/auth/service'),qs=require(_0x133359('0x4a')),logger=require('../../config/logger')(_0x133359('0xf6')),utils=require(_0x133359('0xee')),config=require('../../config/environment'),db=require(_0x133359('0x103'))['db'],{Op}=require(_0x133359('0xf')),licenseUtil=require(_0x133359('0xd'));require('./user.socket')[_0x133359('0x18')](socket);const jayson=require('jayson/promise'),client=jayson[_0x133359('0x146')][_0x133359('0x27')]({'port':0x232a});function respondWithRpcPromise(_0x2ec322,_0xa886c3,_0x1e07fc,_0x3ab8f2){return new Promise(function(_0x2c6fe7,_0x57b9d0){const _0x301bb0=a648_0x1f38,_0x34deb5=_0x3ab8f2||client;return _0x34deb5[_0x301bb0('0x10a')](_0x2ec322,_0x1e07fc)['then'](function(_0x4f30ae){const _0x1ed82e=_0x301bb0;logger['info'](_0x1ed82e('0x49'),_0xa886c3,_0x1ed82e('0x53')),logger['debug'](_0x1ed82e('0x83'),_0xa886c3,_0x1ed82e('0x53'),JSON['stringify'](_0x4f30ae));if(_0x4f30ae['error']){if(_0x4f30ae[_0x1ed82e('0xb1')][_0x1ed82e('0x112')]===0x1f4)return logger['error'](_0x1ed82e('0x49'),_0xa886c3,_0x4f30ae[_0x1ed82e('0xb1')]['message']),_0x57b9d0(_0x4f30ae[_0x1ed82e('0xb1')][_0x1ed82e('0x43')]);return logger[_0x1ed82e('0xb1')]('User,\x20%s,\x20%s',_0xa886c3,_0x4f30ae[_0x1ed82e('0xb1')][_0x1ed82e('0x43')]),_0x2c6fe7(_0x4f30ae['error'][_0x1ed82e('0x43')]);}else logger[_0x1ed82e('0xd9')](_0x1ed82e('0x49'),_0xa886c3,_0x1ed82e('0x53')),_0x2c6fe7(_0x4f30ae[_0x1ed82e('0x12c')][_0x1ed82e('0x43')]);})[_0x301bb0('0xe1')](function(_0x1ee9b1){const _0xf28219=_0x301bb0;logger[_0xf28219('0xb1')](_0xf28219('0x49'),_0xa886c3,_0x1ee9b1),_0x57b9d0(_0x1ee9b1);});});}function respondWithStatusCode(_0x31c5b7,_0x157e47){return _0x157e47=_0x157e47||0xcc,function(_0x445cd2){const _0x3faa6f=a648_0x1f38;if(_0x445cd2)return _0x31c5b7[_0x3faa6f('0x72')](_0x157e47);return _0x31c5b7[_0x3faa6f('0x9c')](_0x157e47)[_0x3faa6f('0x77')]();};}function respondWithResult(_0x34a61b,_0x1db343){return _0x1db343=_0x1db343||0xc8,function(_0x1a0fb8){const _0xc41ae=a648_0x1f38;if(_0x1a0fb8)return _0x34a61b[_0xc41ae('0x9c')](_0x1db343)['json'](_0x1a0fb8);};}function respondWithFilteredResult(_0x3b605c,_0x4d5d41){return function(_0x2395f3){const _0x155fe9=a648_0x1f38;if(_0x2395f3){const _0x5080be=_0x2395f3[_0x155fe9('0x1c')],_0x56ad1d=_0x4d5d41['offset'];let _0x25e3ba=_0x4d5d41[_0x155fe9('0x5a')]+_0x4d5d41['limit'],_0x5df79e;return _0x25e3ba>=_0x5080be?(_0x25e3ba=_0x5080be,_0x5df79e=0xc8):_0x5df79e=0xce,_0x3b605c['status'](_0x5df79e),_0x3b605c[_0x155fe9('0x1f')](_0x155fe9('0xe7'),_0x56ad1d+'-'+_0x25e3ba+'/'+_0x5080be)['json'](_0x2395f3);}return null;};}function saveUpdates(_0x17603d){return function(_0x1c8251){const _0x17595b=a648_0x1f38;if(_0x1c8251)return _0x1c8251[_0x17595b('0x28')](_0x17603d)['then'](function(_0x252929){return _0x252929;});return null;};}function removeEntity(_0x898ce8){return function(_0x12f6fd){const _0x9e11=a648_0x1f38;if(_0x12f6fd)return _0x12f6fd[_0x9e11('0xcc')]()['then'](function(){const _0x99602=_0x9e11,_0x2867aa=_0x12f6fd[_0x99602('0xe3')]({'plain':!![]});if(_0x2867aa[_0x99602('0xdf')]===_0x99602('0x127'))return;const _0xd5e8b2=[{'name':'Users','value':'user','ignore':!![]},{'name':_0x99602('0xf9'),'value':_0x99602('0x57'),'ignore':![]},{'name':'Telephones','value':_0x99602('0x56'),'ignore':![]}],_0x216e89=_(_0xd5e8b2)[_0x99602('0xc6')]('ignore')[_0x99602('0xe4')](_0x99602('0xd3'))[_0x99602('0xd3')]();if(_[_0x99602('0x139')](_0x216e89,_0x2867aa[_0x99602('0xdf')]))return;const _0x5753b9=_['find'](_0xd5e8b2,[_0x99602('0xd3'),_0x2867aa[_0x99602('0xdf')]])['name'];return db[_0x99602('0x3e')][_0x99602('0xcc')]({'where':{'type':_0x5753b9,'resourceId':_0x2867aa['id']}})[_0x99602('0x19')](function(){return _0x12f6fd;});})['then'](function(){const _0x5e3a44=_0x9e11;_0x898ce8[_0x5e3a44('0x9c')](0xcc)[_0x5e3a44('0x77')]();});};}function handleEntityNotFound(_0x2a8cbf){return function(_0x440242){const _0x545ccc=a648_0x1f38;return!_0x440242&&_0x2a8cbf[_0x545ccc('0x72')](0x194),_0x440242;};}function handleError(_0x1aca41,_0x37e668){return _0x37e668=_0x37e668||0x1f4,function(_0x4666e7){const _0x145c09=a648_0x1f38;logger[_0x145c09('0xb1')](_0x4666e7[_0x145c09('0x1a')]),_0x4666e7[_0x145c09('0xca')]&&delete _0x4666e7[_0x145c09('0xca')],_0x1aca41['status'](_0x37e668)[_0x145c09('0x11')](_0x4666e7);};}function validateUser(_0x219cbf){return new Promise(function(_0x18c5e3,_0x227941){const _0x5a510b=a648_0x1f38;if(_0x219cbf[_0x5a510b('0x124')])return _0x18c5e3(_0x219cbf);return db['Setting'][_0x5a510b('0x67')](0x1)[_0x5a510b('0x19')](function(_0x5bb78e){const _0x4362a2=_0x5a510b;if(_0x5bb78e[_0x4362a2('0x10f')])authService[_0x4362a2('0xd4')](_0x219cbf[_0x4362a2('0x129')]);db[_0x4362a2('0x8e')][_0x4362a2('0x2c')](_0x4362a2('0x124'))[_0x4362a2('0x19')](function(_0x309285){const _0x4b0d07=_0x4362a2;if(_[_0x4b0d07('0xf3')](_0x309285)){_0x219cbf[_0x4b0d07('0x124')]=_0x5bb78e[_0x4b0d07('0x7b')]||0x1;return;}if(_[_0x4b0d07('0xf3')](_0x5bb78e['min_internal'])||_0x5bb78e[_0x4b0d07('0x7b')]===_0x309285){_0x219cbf[_0x4b0d07('0x124')]=_0x309285+0x1;return;}if(_0x5bb78e['min_internal']>_0x309285){_0x219cbf[_0x4b0d07('0x124')]=_0x5bb78e[_0x4b0d07('0x7b')];return;}return db[_0x4b0d07('0xf')]['query']('select\x20(select\x20IFNULL(max(internal)+1,1)\x20from\x20users\x20where\x20internal\x20<\x20md.internal)\x20as\x20\x27from\x27,\x20md.internal\x20-\x201\x20as\x20\x27to\x27\x20from\x20users\x20md\x20where\x20md.internal\x20!=\x201\x20and\x20not\x20exists\x20(select\x201\x20from\x20users\x20md2\x20where\x20md2.internal\x20=\x20md.internal\x20-\x201)',{'type':db[_0x4b0d07('0xf')][_0x4b0d07('0x14d')][_0x4b0d07('0xc3')]})[_0x4b0d07('0x19')](function(_0x358964){const _0x355491=_0x4b0d07;if(_0x358964&&_0x358964[_0x355491('0x12b')])for(let _0x41acc6=0x0,_0x196534=_0x358964[_0x355491('0x12b')];_0x41acc6<_0x196534&&_[_0x355491('0xf3')](_0x219cbf[_0x355491('0x124')]);_0x41acc6++){if(_0x5bb78e[_0x355491('0x7b')]<=_0x358964[_0x41acc6][_0x355491('0x97')])_0x219cbf[_0x355491('0x124')]=_0x358964[_0x41acc6][_0x355491('0x97')];else _0x5bb78e['min_internal']>_0x358964[_0x41acc6][_0x355491('0x97')]&&_0x5bb78e[_0x355491('0x7b')]<=_0x358964[_0x41acc6]['to']&&(_0x219cbf[_0x355491('0x124')]=_0x5bb78e['min_internal']);}return _['isNil'](_0x219cbf[_0x355491('0x124')])&&(_0x219cbf[_0x355491('0x124')]=_0x309285+0x1),_0x18c5e3(_0x219cbf);});});})[_0x5a510b('0xe1')](function(_0x32f943){_0x227941(_0x32f943);});});}function updateUser(_0x18040e){return new Promise(function(_0x1fad68,_0x505c42){const _0x427fe3=a648_0x1f38;try{_0x18040e[_0x427fe3('0x90')]&&(_0x18040e['mailbox']=_0x18040e[_0x427fe3('0x124')],_0x18040e[_0x427fe3('0xab')]={'mailbox':_0x18040e[_0x427fe3('0x124')],'password':_0x18040e['password'],'fullname':_0x18040e[_0x427fe3('0x120')],'email':_0x18040e[_0x427fe3('0xeb')]});if(_0x18040e['role']===_0x427fe3('0x57')){if(!_0x18040e['permissions'])_0x18040e['permissions']=[_0x427fe3('0x1e'),_0x427fe3('0xa1'),_0x427fe3('0x8f'),_0x427fe3('0x69'),_0x427fe3('0x4b'),'104','105',_0x427fe3('0x35'),_0x427fe3('0x84'),_0x427fe3('0x4e'),_0x427fe3('0x4d'),_0x427fe3('0xae'),_0x427fe3('0x93'),_0x427fe3('0x9f')];}_0x1fad68(_0x18040e);}catch(_0x555584){_0x505c42(_0x555584);}});}exports['index']=function(_0x53d008,_0x1a8456){const _0x43bb71=_0x133359;let _0x46c32a={};const _0x5b3df5={},_0x39bc9c={'count':0x0,'rows':[]},_0x2e55b6=_['map'](db['User']['rawAttributes'],function(_0xe9cf4e){const _0x2dc2a3=a648_0x1f38;return{'name':_0xe9cf4e['fieldName'],'type':_0xe9cf4e[_0x2dc2a3('0xb4')]['key']};});_0x5b3df5[_0x43bb71('0x101')]=_[_0x43bb71('0x2e')](_[_0x43bb71('0xe4')](_0x2e55b6,_0x43bb71('0xca')),[_0x43bb71('0x129'),_0x43bb71('0x9d')]),_0x5b3df5['query']=_[_0x43bb71('0x134')](_0x53d008['query']),_0x5b3df5[_0x43bb71('0x45')]=_[_0x43bb71('0x80')](_0x5b3df5['model'],_0x5b3df5[_0x43bb71('0x14e')]),_0x46c32a[_0x43bb71('0x13b')]=_['intersection'](_0x5b3df5[_0x43bb71('0x101')],qs['fields'](_0x53d008[_0x43bb71('0x14e')][_0x43bb71('0x96')])),_0x46c32a[_0x43bb71('0x13b')]=_0x46c32a[_0x43bb71('0x13b')]['length']?_0x46c32a['attributes']:_0x5b3df5['model'];typeof _0x53d008[_0x43bb71('0x14e')][_0x43bb71('0x8c')]==='undefined'&&(_0x46c32a[_0x43bb71('0x6a')]=qs[_0x43bb71('0x6a')](_0x53d008[_0x43bb71('0x14e')]['limit']),_0x46c32a[_0x43bb71('0x5a')]=qs[_0x43bb71('0x5a')](_0x53d008[_0x43bb71('0x14e')]['offset']));_0x46c32a[_0x43bb71('0x123')]=qs[_0x43bb71('0x85')](_0x53d008[_0x43bb71('0x14e')][_0x43bb71('0x85')]),_0x46c32a[_0x43bb71('0x151')]=qs[_0x43bb71('0x45')](_[_0x43bb71('0x61')](_0x53d008['query'],_0x5b3df5[_0x43bb71('0x45')]),_0x2e55b6);_0x53d008['query'][_0x43bb71('0xc6')]&&(_0x46c32a[_0x43bb71('0x151')]=_[_0x43bb71('0x81')](_0x46c32a[_0x43bb71('0x151')],{[Op['or']]:_[_0x43bb71('0xe4')](_0x2e55b6,function(_0x2ca7e9){const _0x4f7657=_0x43bb71;if(_0x2ca7e9['type']!==_0x4f7657('0xc'))return db[_0x4f7657('0xf')][_0x4f7657('0x151')](db[_0x4f7657('0xf')]['fn'](_0x4f7657('0x4c'),db[_0x4f7657('0xf')]['col'](_0x2ca7e9[_0x4f7657('0xca')])),{'$like':db[_0x4f7657('0xf')]['fn'](_0x4f7657('0x4c'),'%'+_0x53d008['query'][_0x4f7657('0xc6')]+'%')});})}));_0x46c32a=_[_0x43bb71('0x81')]({},_0x46c32a,_0x53d008['options']);const _0x2ef23e={'where':_0x46c32a[_0x43bb71('0x151')]};return db[_0x43bb71('0x8e')][_0x43bb71('0x1c')](_0x2ef23e)[_0x43bb71('0x19')](function(_0x17b614){const _0x2117e6=_0x43bb71;return _0x39bc9c[_0x2117e6('0x1c')]=_0x17b614,typeof _0x53d008[_0x2117e6('0x14e')][_0x2117e6('0xc4')]!=='undefined'&&(_0x46c32a[_0x2117e6('0x23')]=[{'all':!![]}]),db[_0x2117e6('0x8e')]['findAll'](_0x46c32a);})[_0x43bb71('0x19')](function(_0x885078){const _0x31c230=_0x43bb71;return _0x39bc9c[_0x31c230('0x111')]=_0x885078,_0x39bc9c;})['then'](respondWithFilteredResult(_0x1a8456,_0x46c32a))[_0x43bb71('0xe1')](handleError(_0x1a8456,null));},exports['show']=function(_0x304dfb,_0xb4cad1){const _0x41713f=_0x133359;let _0x1bec5d={'raw':![],'where':{'id':_0x304dfb[_0x41713f('0xf2')]['id']}};const _0x57c892={};return _0x57c892['model']=_['differenceBy'](_['keys'](db[_0x41713f('0x8e')][_0x41713f('0x7e')]),[_0x41713f('0x129'),'salt']),_0x57c892[_0x41713f('0x14e')]=_[_0x41713f('0x134')](_0x304dfb[_0x41713f('0x14e')]),_0x57c892[_0x41713f('0x45')]=_['intersection'](_0x57c892[_0x41713f('0x101')],_0x57c892[_0x41713f('0x14e')]),_0x1bec5d['attributes']=_[_0x41713f('0x80')](_0x57c892['model'],qs[_0x41713f('0x96')](_0x304dfb[_0x41713f('0x14e')][_0x41713f('0x96')])),_0x1bec5d['attributes']=_0x1bec5d['attributes'][_0x41713f('0x12b')]?_0x1bec5d['attributes']:_0x57c892[_0x41713f('0x101')],_0x304dfb[_0x41713f('0x14e')][_0x41713f('0xc4')]&&(_0x1bec5d['include']=[{'all':!![]}]),_0x1bec5d=_['merge']({},_0x1bec5d,_0x304dfb[_0x41713f('0x91')]),db['User'][_0x41713f('0x41')](_0x1bec5d)['then'](handleEntityNotFound(_0xb4cad1,null))['then'](respondWithResult(_0xb4cad1,null))['catch'](handleError(_0xb4cad1,null));},exports[_0x133359('0x4f')]=function(_0x10fa97,_0x530bff){const _0x17ce84=_0x133359,_0x189231=_0x10fa97[_0x17ce84('0x102')];let _0x266c46=[];if(_0x10fa97['user']['role']===_0x17ce84('0x57'))throw new Error(_0x17ce84('0xaf'));if(_['some'](_0x189231,[_0x17ce84('0xdf'),_0x17ce84('0x106')])&&_0x10fa97[_0x17ce84('0x106')]['role']!==_0x17ce84('0x127'))throw new Error(_0x17ce84('0xbb'));if(_[_0x17ce84('0x78')](_0x189231,['role',_0x17ce84('0x127')])&&_0x10fa97['user'][_0x17ce84('0xdf')]!==_0x17ce84('0x127'))throw new Error(_0x17ce84('0x31'));return licenseUtil['checkUserLimits'](_0x189231)[_0x17ce84('0x19')](function(){return validateUser(_0x189231[0x0]);})['then'](function(){const _0x1b7706=_0x17ce84;for(let _0x1c5359=0x1;_0x1c5359<_0x189231[_0x1b7706('0x12b')];_0x1c5359++){const _0x1054c7=_0x189231[_0x1c5359-0x1]['internal'];if(!_0x189231[_0x1c5359][_0x1b7706('0x124')])_0x189231[_0x1c5359][_0x1b7706('0x124')]=_0x1054c7+0x1;_0x266c46['push'](validateUser(_0x189231[_0x1c5359]));}return Promise[_0x1b7706('0x3a')](_0x266c46);})[_0x17ce84('0x19')](function(){const _0x36af38=_0x17ce84;_0x266c46=[];for(let _0x87a336=0x0;_0x87a336<_0x189231['length'];_0x87a336++){_0x266c46['push'](updateUser(_0x189231[_0x87a336]));}return Promise[_0x36af38('0x3a')](_0x266c46);})[_0x17ce84('0x19')](function(){const _0x49dbee=_0x17ce84;return _0x266c46=_0x189231['map'](_0x4c5c26=>{const _0x59fb63=a648_0x1f38;return db[_0x59fb63('0x8e')]['create'](_0x4c5c26,{'include':[{'model':db[_0x59fb63('0xab')],'as':'VoiceMail'}]})[_0x59fb63('0x19')](function(_0x51423e){return _0x4c5c26['id']=_0x51423e['id'],_0x4c5c26;});}),Promise[_0x49dbee('0x3a')](_0x266c46);})['then'](function(_0x57eba3){const _0x50a8b7=_0x17ce84;if(_0x10fa97[_0x50a8b7('0x102')][_0x50a8b7('0xdf')]===_0x50a8b7('0x106'))return _0x57eba3;if(_0x10fa97[_0x50a8b7('0x106')][_0x50a8b7('0xdf')]!==_0x50a8b7('0x106'))return _0x57eba3;const _0x5bec21=_[_0x50a8b7('0x78')](_0x57eba3,function(_0x2cedc0){const _0x228d27=_0x50a8b7;return _0x2cedc0['role']===_0x228d27('0x57')||_0x2cedc0[_0x228d27('0xdf')]===_0x228d27('0x56');});if(!_0x5bec21)return _0x57eba3;return db['UserProfileSection'][_0x50a8b7('0x10b')]({'where':{'name':{[Op['or']]:['Agents',_0x50a8b7('0x117')]},'userProfileId':_0x10fa97[_0x50a8b7('0x106')][_0x50a8b7('0x70')]},'raw':!![]})['then'](function(_0x324bef){const _0x1a0509=_0x50a8b7;if(_['isEmpty'](_0x324bef)||!_[_0x1a0509('0x78')](_0x324bef,[_0x1a0509('0x71'),0x0]))return _0x57eba3;_0x266c46=[];const _0x2c424e=_(_0x324bef)[_0x1a0509('0xe4')](function(_0x23606d){const _0x142906=_0x1a0509;if(_0x23606d['autoAssociation']===0x1)return;return _0x23606d[_0x142906('0xca')]==='Agents'?_0x142906('0x57'):_0x142906('0x56');})[_0x1a0509('0x51')]()[_0x1a0509('0xd3')]();for(let _0x53c778=0x0;_0x53c778<_0x57eba3['length'];_0x53c778++){if(!_[_0x1a0509('0x139')](_0x2c424e,_0x57eba3[_0x53c778]['role']))return;const _0x58fb5f=_0x57eba3[_0x53c778][_0x1a0509('0xdf')]===_0x1a0509('0x57')?'Agents':_0x1a0509('0x117');_0x266c46['push'](db[_0x1a0509('0x3e')][_0x1a0509('0x39')]({'name':_0x57eba3[_0x53c778][_0x1a0509('0xca')],'resourceId':_0x57eba3[_0x53c778]['id'],'type':_0x58fb5f,'sectionId':_['find'](_0x324bef,[_0x1a0509('0xca'),_0x58fb5f])['id']},{}));}return Promise['all'](_0x266c46);});})['then'](respondWithResult(_0x530bff,0xc9))[_0x17ce84('0xe1')](handleError(_0x530bff,null));},exports[_0x133359('0x28')]=function(_0x1d1d67,_0xdcbe66){const _0x1a573e=_0x133359;return _0x1d1d67[_0x1a573e('0x102')]['id']&&delete _0x1d1d67['body']['id'],delete _0x1d1d67[_0x1a573e('0x102')][_0x1a573e('0xdf')],db[_0x1a573e('0x8e')][_0x1a573e('0x41')]({'where':{'id':_0x1d1d67[_0x1a573e('0xf2')]['id']}})[_0x1a573e('0x19')](handleEntityNotFound(_0xdcbe66,null))['then'](saveUpdates(_0x1d1d67['body'],null))[_0x1a573e('0x19')](respondWithResult(_0xdcbe66,null))[_0x1a573e('0xe1')](handleError(_0xdcbe66,null));},exports['describe']=function(_0x4b012b,_0xf6e669){const _0x4e0740=_0x133359;return db['User'][_0x4e0740('0x150')]()[_0x4e0740('0x19')](respondWithResult(_0xf6e669,null))[_0x4e0740('0xe1')](handleError(_0xf6e669,null));},exports['addContacts']=function(_0x43f75d,_0x45acbd){const _0x32ae95=_0x133359;return db[_0x32ae95('0x8e')]['findOne']({'where':{'id':_0x43f75d[_0x32ae95('0xf2')]['id']}})[_0x32ae95('0x19')](handleEntityNotFound(_0x45acbd,null))['then'](function(_0x37b399){const _0xdc6f5e=_0x32ae95;if(_0x37b399)return _0x37b399['addContacts'](_0x43f75d[_0xdc6f5e('0x102')][_0xdc6f5e('0x126')],{'through':_[_0xdc6f5e('0xcd')](_0x43f75d[_0xdc6f5e('0x102')],[_0xdc6f5e('0x126'),'id'])});})['then'](respondWithResult(_0x45acbd,null))[_0x32ae95('0xe1')](handleError(_0x45acbd,null));},exports['create']=function(_0x4ac52d,_0x29f185){const _0xcbb0c3=_0x133359;if(_0x4ac52d[_0xcbb0c3('0x106')][_0xcbb0c3('0xdf')]==='agent')throw new Error('Unauthorized');if(_0x4ac52d[_0xcbb0c3('0x102')][_0xcbb0c3('0xdf')]===_0xcbb0c3('0x106')&&_0x4ac52d[_0xcbb0c3('0x106')]['role']!==_0xcbb0c3('0x127'))throw new Error('Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user');if(_0x4ac52d['body'][_0xcbb0c3('0xdf')]===_0xcbb0c3('0x127')&&_0x4ac52d[_0xcbb0c3('0x106')][_0xcbb0c3('0xdf')]!==_0xcbb0c3('0x127'))throw new Error(_0xcbb0c3('0x32'));return licenseUtil[_0xcbb0c3('0xce')]([_0x4ac52d[_0xcbb0c3('0x102')]])[_0xcbb0c3('0x19')](function(){return validateUser(_0x4ac52d['body']);})[_0xcbb0c3('0x19')](function(_0x82136b){const _0xa3e202=_0xcbb0c3;return updateUser(_0x82136b)[_0xa3e202('0x19')](function(_0x4fc33b){const _0x5acd79=_0xa3e202;return _0x4fc33b[_0x5acd79('0xdf')]===_0x5acd79('0x127')&&(_0x4fc33b[_0x5acd79('0xd2')]=_0x4ac52d[_0x5acd79('0x106')][_0x5acd79('0xd2')],delete _0x4fc33b[_0x5acd79('0x70')]),_0x4fc33b;});})[_0xcbb0c3('0x19')](function(_0x28b820){const _0xbefd07=_0xcbb0c3;return db['User'][_0xbefd07('0x39')](_0x28b820,{'include':[{'model':db[_0xbefd07('0xab')],'as':_0xbefd07('0xab')}]});})[_0xcbb0c3('0x19')](function(_0x5d1b42){const _0x3bcbd5=_0xcbb0c3;if(_0x4ac52d['body'][_0x3bcbd5('0xdf')]===_0x3bcbd5('0x106'))return _0x5d1b42;if(_0x4ac52d[_0x3bcbd5('0x106')][_0x3bcbd5('0xdf')]!==_0x3bcbd5('0x106'))return _0x5d1b42;return db[_0x3bcbd5('0x12a')][_0x3bcbd5('0x41')]({'where':{'name':_0x5d1b42[_0x3bcbd5('0xdf')]==='agent'?_0x3bcbd5('0xf9'):_0x3bcbd5('0x117'),'userProfileId':_0x4ac52d['user']['userProfileId']},'raw':!![]})[_0x3bcbd5('0x19')](function(_0x4e9220){const _0x539890=_0x3bcbd5;if(!_0x4e9220||_0x4e9220[_0x539890('0x71')]!=0x0)return _0x5d1b42;return db[_0x539890('0x3e')][_0x539890('0x39')]({'name':_0x5d1b42[_0x539890('0xca')],'resourceId':_0x5d1b42['id'],'type':_0x4e9220[_0x539890('0xca')],'sectionId':_0x4e9220['id']},{})[_0x539890('0x19')](function(){return _0x5d1b42;});})[_0x3bcbd5('0xe1')](function(_0x71ea2){const _0x318a48=_0x3bcbd5;logger[_0x318a48('0xb1')](_0x318a48('0x12'),_0x71ea2);throw _0x71ea2;});})[_0xcbb0c3('0x19')](respondWithResult(_0x29f185,0xc9))[_0xcbb0c3('0xe1')](handleError(_0x29f185,null));},exports[_0x133359('0xb0')]=function(_0x27458c,_0x85e7aa){const _0x3ae0fe=_0x133359;if(_0x27458c[_0x3ae0fe('0x102')]['id'])delete _0x27458c[_0x3ae0fe('0x102')]['id'];return db['User'][_0x3ae0fe('0x41')]({'where':{'id':_0x27458c[_0x3ae0fe('0xf2')]['id']}})[_0x3ae0fe('0x19')](function(_0x49977a){const _0x29ff73=_0x3ae0fe;if(!_0x49977a)return null;if(_0x49977a['id']===_0x27458c['user']['id']){if(!_0x27458c['body'][_0x29ff73('0xf1')]||!_0x27458c[_0x29ff73('0x102')][_0x29ff73('0xb7')])throw new db[(_0x29ff73('0x54'))][(_0x29ff73('0x10e'))]('Invalid\x20body\x20format.\x20Use\x20oldPassword\x20and\x20newPassword');if(!_0x49977a[_0x29ff73('0x29')](_0x27458c[_0x29ff73('0x102')][_0x29ff73('0xf1')]))throw new db[(_0x29ff73('0x54'))]['ValidationError'](_0x29ff73('0x76'));if(_0x27458c['body'][_0x29ff73('0xf1')]===_0x27458c[_0x29ff73('0x102')][_0x29ff73('0xb7')])throw new db[(_0x29ff73('0x54'))][(_0x29ff73('0x10e'))]('New\x20password\x20must\x20be\x20different\x20from\x20old\x20password');}else{if(_0x27458c[_0x29ff73('0x106')][_0x29ff73('0xdf')]==='admin'){if(!_0x27458c[_0x29ff73('0x102')][_0x29ff73('0xb7')])throw new db['Sequelize'][(_0x29ff73('0x10e'))](_0x29ff73('0x1b'));}else{if(_0x27458c[_0x29ff73('0x106')][_0x29ff73('0xdf')]===_0x29ff73('0x106')){if(!_0x27458c['body'][_0x29ff73('0xb7')])throw new db[(_0x29ff73('0x54'))]['ValidationError'](_0x29ff73('0x1b'));if(_0x49977a[_0x29ff73('0xdf')]!==_0x29ff73('0x57'))throw new db[(_0x29ff73('0x54'))]['ValidationError'](_0x29ff73('0xaf'));}else throw new db['Sequelize'][(_0x29ff73('0x10e'))](_0x29ff73('0xaf'));}}return _0x49977a;})['then'](handleEntityNotFound(_0x85e7aa,null))[_0x3ae0fe('0x19')](function(_0x22100d){const _0x159d57=_0x3ae0fe;return db['Setting']['findOne']({'attributes':['id',_0x159d57('0x10f'),'enforcePasswordHistory',_0x159d57('0x30')]})[_0x159d57('0x19')](function(_0x54da83){const _0x5e9199=_0x159d57;if(_0x54da83[_0x5e9199('0x10f')])authService['validatePasswordPattern'](_0x27458c[_0x5e9199('0x102')][_0x5e9199('0xb7')]);if(!_0x54da83['enforcePasswordHistory']||!_0x22100d[_0x5e9199('0x143')])return _0x22100d;return authService[_0x5e9199('0x87')](_0x27458c[_0x5e9199('0x102')][_0x5e9199('0xb7')],_0x22100d[_0x5e9199('0x143')],_0x54da83['passwordHistoryLimit']),_0x22100d;})[_0x159d57('0x19')](saveUpdates({'password':_0x27458c['body'][_0x159d57('0xb7')],'passwordResetAt':_0x27458c[_0x159d57('0x106')]['id']==_0x27458c[_0x159d57('0xf2')]['id']?moment():null,'previousPasswords':authService[_0x159d57('0xa5')](_0x27458c[_0x159d57('0x102')][_0x159d57('0xb7')],_0x22100d[_0x159d57('0x143')])},null));})[_0x3ae0fe('0x19')](respondWithResult(_0x85e7aa,null))[_0x3ae0fe('0xe1')](handleError(_0x85e7aa,null));},exports['addQueues']=function(_0x31afcc,_0x324803){const _0x5523e1=_0x133359,_0x19fafc=_0x31afcc['body'][_0x5523e1('0xde')];return db[_0x5523e1('0x8e')]['findOne']({'where':{'id':_0x31afcc[_0x5523e1('0xf2')]['id']},'attributes':['id',_0x5523e1('0xca'),'role',_0x5523e1('0xbd'),_0x5523e1('0x137'),'voicePause',_0x5523e1('0xfb')]})[_0x5523e1('0x19')](handleEntityNotFound(_0x324803,null))[_0x5523e1('0x19')](function(_0x42685e){const _0x61073f=_0x5523e1;if(_0x42685e){if(!utils['isValidChannel'](_0x19fafc))throw new db[(_0x61073f('0x54'))]['ValidationError']('Unknown\x20channel');return _0x42685e[_0x61073f('0x3')+_[_0x61073f('0x5c')](_0x19fafc[_0x61073f('0xf0')]())+_0x61073f('0x138')](_0x31afcc[_0x61073f('0x102')][_0x61073f('0x126')],{'through':{'penalty':_0x31afcc['body'][_0x61073f('0x7f')]||0x0}})['then'](function(_0x344d93){const _0xa8d678=_0x61073f;for(let _0x345289=0x0;_0x345289<_0x31afcc[_0xa8d678('0x102')][_0xa8d678('0x126')]['length'];_0x345289+=0x1){const _0x52fc24={'UserId':_0x31afcc['params']['id']};_0x52fc24[_[_0xa8d678('0x5c')](_0x19fafc[_0xa8d678('0xf0')]())+_0xa8d678('0x149')]=_0x31afcc[_0xa8d678('0x102')][_0xa8d678('0x126')][_0x345289],socket[_0xa8d678('0x6')](_0xa8d678('0x106')+_[_0xa8d678('0x5c')](_0x19fafc[_0xa8d678('0xf0')]())+_0xa8d678('0xa4'),_0x52fc24);}return _0x344d93;})[_0x61073f('0x19')](function(){const _0x381522=_0x61073f;if(_0x19fafc==='voice')return db['VoiceQueue']['findAll']({'where':{'id':_0x31afcc[_0x381522('0x102')][_0x381522('0x126')]||[]},'raw':!![],'attributes':['id',_0x381522('0xca')]});})[_0x61073f('0x19')](function(_0x64e8f8){const _0x33f926=_0x61073f,_0x2b4c3e=_0x42685e[_0x33f926('0xe3')]({'plain':!![]}),_0xb63194=[];if(_0x19fafc===_0x33f926('0x26')&&_0x2b4c3e[_0x33f926('0xdf')]===_0x33f926('0x57')&&_0x2b4c3e[_0x33f926('0xbd')]){for(let _0xdff568=0x0;_0xdff568<_0x64e8f8[_0x33f926('0x12b')];_0xdff568+=0x1){_0xb63194[_0x33f926('0x7a')]({'membername':_0x2b4c3e[_0x33f926('0xca')],'UserId':_0x2b4c3e['id'],'queue_name':_0x64e8f8[_0xdff568][_0x33f926('0xca')],'VoiceQueueId':_0x64e8f8[_0xdff568]['id'],'interface':_[_0x33f926('0xf3')](_0x2b4c3e[_0x33f926('0xfb')])?util[_0x33f926('0x144')]('SIP/%s',_0x2b4c3e[_0x33f926('0xca')]):_0x2b4c3e[_0x33f926('0xfb')],'paused':_0x2b4c3e[_0x33f926('0xd8')]||![],'penalty':_0x31afcc[_0x33f926('0x102')][_0x33f926('0x7f')]||0x0});}return Promise[_0x33f926('0x11a')](_0xb63194,function(_0x23ebf2){const _0x396ac5=_0x33f926;return db[_0x396ac5('0x44')]['upsert'](_0x23ebf2);});}return _0x42685e;});}})[_0x5523e1('0x19')](respondWithStatusCode(_0x324803,null))[_0x5523e1('0xe1')](handleError(_0x324803,null));},exports['removeQueues']=function(_0x612a83,_0x5ae5b3){const _0x42d770=_0x133359;let _0x301d2f;return db['User'][_0x42d770('0x41')]({'where':{'id':_0x612a83[_0x42d770('0xf2')]['id']},'attributes':['id',_0x42d770('0xca'),_0x42d770('0xdf')]})['then'](handleEntityNotFound(_0x5ae5b3,null))['then'](function(_0x25634e){const _0x2bf888=_0x42d770;if(_0x25634e){_0x301d2f=_0x25634e;if(!_0x612a83['query'][_0x2bf888('0xde')]||!utils[_0x2bf888('0x62')](_0x612a83[_0x2bf888('0x14e')][_0x2bf888('0xde')]))throw new db[(_0x2bf888('0x54'))][(_0x2bf888('0x10e'))](_0x2bf888('0x24'));return _0x25634e['remove'+_[_0x2bf888('0x5c')](_0x612a83['query'][_0x2bf888('0xde')][_0x2bf888('0xf0')]())+_0x2bf888('0x138')](_0x612a83[_0x2bf888('0x14e')][_0x2bf888('0x126')]);}})[_0x42d770('0x19')](function(_0x31bba7){const _0x13518f=_0x42d770;for(let _0x4ddcf5=0x0;_0x4ddcf5<_0x612a83[_0x13518f('0x14e')][_0x13518f('0x126')][_0x13518f('0x12b')];_0x4ddcf5+=0x1){const _0x1d5696={'UserId':_0x612a83['params']['id']};_0x1d5696[_[_0x13518f('0x5c')](_0x612a83[_0x13518f('0x14e')][_0x13518f('0xde')][_0x13518f('0xf0')]())+_0x13518f('0x149')]=_0x612a83[_0x13518f('0x14e')]['ids'][_0x4ddcf5],socket[_0x13518f('0x6')]('user'+_['capitalize'](_0x612a83['query'][_0x13518f('0xde')][_0x13518f('0xf0')]())+_0x13518f('0xa8'),_0x1d5696);}return _0x31bba7;})[_0x42d770('0x19')](function(){const _0x149a9e=_0x42d770;if(_0x612a83['query'][_0x149a9e('0xde')]===_0x149a9e('0x26'))return db[_0x149a9e('0x44')]['destroy']({'where':{'UserId':_0x612a83['params']['id'],'VoiceQueueId':_0x612a83[_0x149a9e('0x14e')]['ids']},'individualHooks':!![]})[_0x149a9e('0x19')](function(){return _0x301d2f;});return _0x301d2f;})['then'](respondWithStatusCode(_0x5ae5b3,null))[_0x42d770('0xe1')](handleError(_0x5ae5b3,null));},exports[_0x133359('0x14f')]=function(_0x421d13,_0x14a6b2){const _0x2a9f70=_0x133359;return _0x421d13[_0x2a9f70('0x102')][_0x2a9f70('0x121')]=_0x421d13[_0x2a9f70('0x33')]['filename'],db['User']['findOne']({'where':{'id':_0x421d13[_0x2a9f70('0xf2')]['id']}})[_0x2a9f70('0x19')](handleEntityNotFound(_0x14a6b2,null))[_0x2a9f70('0x19')](saveUpdates(_0x421d13['body'],null))[_0x2a9f70('0x19')](respondWithResult(_0x14a6b2,null))[_0x2a9f70('0xe1')](handleError(_0x14a6b2,null));},exports['getAvatar']=function(_0x162f21,_0x595654){const _0x570320=_0x133359,_0x2e4e3d=path[_0x570320('0x86')](config[_0x570320('0x6e')],'server/files/images/logos/default_profile.png');return db[_0x570320('0x8e')]['findOne']({'where':{'id':_0x162f21[_0x570320('0xf2')]['id']},'attributes':['id',_0x570320('0x121')],'raw':!![]})[_0x570320('0x19')](handleEntityNotFound(_0x595654,null))[_0x570320('0x19')](function(_0x5a53e0){const _0x549fdf=_0x570320;if(_0x5a53e0){if(_[_0x549fdf('0xf3')](_0x5a53e0[_0x549fdf('0x121')]))return _0x595654[_0x549fdf('0x50')](_0x2e4e3d);else{if(!fs[_0x549fdf('0x34')](path[_0x549fdf('0x86')](config[_0x549fdf('0x6e')],_0x549fdf('0xf5'),_0x5a53e0['userpic'])))return _0x595654['download'](_0x2e4e3d);return _0x595654[_0x549fdf('0x50')](path[_0x549fdf('0x86')](config[_0x549fdf('0x6e')],_0x549fdf('0xf5'),_0x5a53e0[_0x549fdf('0x121')]));}}})[_0x570320('0xe1')](handleError(_0x595654,null));},exports[_0x133359('0x5d')]=function(_0x43807d,_0x38f345){const _0x1999a2=_0x133359;let _0x3a6860={};const _0x3cde76={};let _0x21fd24,_0x1a5a35;return db['User'][_0x1999a2('0x41')]({'where':{'id':_0x43807d[_0x1999a2('0xf2')]['id']}})['then'](handleEntityNotFound(_0x38f345,null))['then'](function(_0x46db2d){const _0x2aaa7b=_0x1999a2;if(_0x46db2d)return _0x21fd24=_0x46db2d,_0x3cde76[_0x2aaa7b('0x101')]=_['keys'](db[_0x2aaa7b('0xe9')][_0x2aaa7b('0x7e')]),_0x3cde76['query']=_[_0x2aaa7b('0x134')](_0x43807d[_0x2aaa7b('0x14e')]),_0x3cde76[_0x2aaa7b('0x45')]=_[_0x2aaa7b('0x80')](_0x3cde76['model'],_0x3cde76[_0x2aaa7b('0x14e')]),_0x3a6860['attributes']=_[_0x2aaa7b('0x80')](_0x3cde76[_0x2aaa7b('0x101')],qs[_0x2aaa7b('0x96')](_0x43807d[_0x2aaa7b('0x14e')][_0x2aaa7b('0x96')])),_0x3a6860[_0x2aaa7b('0x13b')]=_0x3a6860[_0x2aaa7b('0x13b')][_0x2aaa7b('0x12b')]?_0x3a6860['attributes']:_0x3cde76[_0x2aaa7b('0x101')],_0x3a6860['order']=qs[_0x2aaa7b('0x85')](_0x43807d[_0x2aaa7b('0x14e')][_0x2aaa7b('0x85')]),_0x3a6860[_0x2aaa7b('0x151')]=qs['filters'](_[_0x2aaa7b('0x61')](_0x43807d[_0x2aaa7b('0x14e')],_0x3cde76[_0x2aaa7b('0x45')])),_0x43807d['query'][_0x2aaa7b('0xc6')]&&(_0x3a6860['where']=_[_0x2aaa7b('0x81')](_0x3a6860[_0x2aaa7b('0x151')],{[Op['or']]:_[_0x2aaa7b('0xe4')](_0x3a6860[_0x2aaa7b('0x13b')],function(_0x4978f2){const _0xa121c3=_0x2aaa7b,_0x1d213d={};return _0x1d213d[_0x4978f2]={[Op['like']]:'%'+_0x43807d[_0xa121c3('0x14e')][_0xa121c3('0xc6')]+'%'},_0x1d213d;})})),_0x3a6860=_['merge']({},_0x3a6860,_0x43807d[_0x2aaa7b('0x91')]),_0x21fd24['getContacts'](_0x3a6860);})[_0x1999a2('0x19')](function(_0x41189c){const _0x20bd2e=_0x1999a2;if(_0x41189c)return _0x1a5a35=_0x41189c[_0x20bd2e('0x12b')],typeof _0x43807d[_0x20bd2e('0x14e')][_0x20bd2e('0xc4')]!==_0x20bd2e('0xbe')&&(_0x3a6860[_0x20bd2e('0x23')]=[{'model':db[_0x20bd2e('0x64')],'as':_0x20bd2e('0xe8'),'required':![]},{'model':db[_0x20bd2e('0x5')],'as':_0x20bd2e('0x2b'),'attributes':['id',_0x20bd2e('0xca'),_0x20bd2e('0x2f')],'where':_0x43807d[_0x20bd2e('0x14e')][_0x20bd2e('0xe0')]?{'id':_0x43807d[_0x20bd2e('0x14e')][_0x20bd2e('0xe0')]}:undefined,'required':_0x43807d[_0x20bd2e('0x14e')][_0x20bd2e('0xe0')]?!![]:![]}]),typeof _0x43807d[_0x20bd2e('0x14e')][_0x20bd2e('0x8c')]==='undefined'&&(_0x3a6860[_0x20bd2e('0x6a')]=qs[_0x20bd2e('0x6a')](_0x43807d[_0x20bd2e('0x14e')][_0x20bd2e('0x6a')]),_0x3a6860[_0x20bd2e('0x5a')]=qs[_0x20bd2e('0x5a')](_0x43807d[_0x20bd2e('0x14e')][_0x20bd2e('0x5a')])),_0x21fd24[_0x20bd2e('0x5d')](_0x3a6860);})[_0x1999a2('0x19')](function(_0x53dc0c){if(_0x53dc0c)return _0x53dc0c?{'count':_0x1a5a35,'rows':_0x53dc0c}:null;})['then'](respondWithResult(_0x38f345,null))['catch'](handleError(_0x38f345,null));},exports[_0x133359('0xac')]=function(_0x58ea8c,_0x53ea27){const _0x10999b=_0x133359;let _0x62729f,_0x44cff4={},_0x208af2;return db[_0x10999b('0x8e')][_0x10999b('0x41')]({'where':{'id':_0x58ea8c[_0x10999b('0xf2')]['id']},'attributes':['id',_0x10999b('0xca'),'role']})['then'](handleEntityNotFound(_0x53ea27,null))[_0x10999b('0x19')](function(_0x202f9e){const _0x3692dd=_0x10999b;if(!utils['isValidChannel'](_0x58ea8c['query'][_0x3692dd('0xde')]))throw new db[(_0x3692dd('0x54'))][(_0x3692dd('0x10e'))](_0x3692dd('0x24'));_0x62729f=_0x202f9e;const _0x27db2c={};_0x27db2c[_0x3692dd('0x101')]=_[_0x3692dd('0x134')](db[_[_0x3692dd('0x5c')](_0x58ea8c['query']['channel'])+'Queue'][_0x3692dd('0x7e')]),_0x27db2c[_0x3692dd('0x14e')]=_['keys'](_0x58ea8c[_0x3692dd('0x14e')]),_0x27db2c['filters']=_[_0x3692dd('0x80')](_0x27db2c[_0x3692dd('0x101')],_0x27db2c[_0x3692dd('0x14e')]),_0x44cff4[_0x3692dd('0x13b')]=_[_0x3692dd('0x80')](_0x27db2c[_0x3692dd('0x101')],qs[_0x3692dd('0x96')](_0x58ea8c[_0x3692dd('0x14e')][_0x3692dd('0x96')])),_0x44cff4[_0x3692dd('0x13b')]=_0x44cff4['attributes'][_0x3692dd('0x12b')]?_0x44cff4[_0x3692dd('0x13b')]:_0x27db2c[_0x3692dd('0x101')],_0x44cff4[_0x3692dd('0x123')]=qs['sort'](_0x58ea8c[_0x3692dd('0x14e')][_0x3692dd('0x85')]),_0x44cff4[_0x3692dd('0x151')]=qs['filters'](_[_0x3692dd('0x61')](_0x58ea8c[_0x3692dd('0x14e')],_0x27db2c[_0x3692dd('0x45')]));_0x58ea8c[_0x3692dd('0x14e')][_0x3692dd('0xc6')]&&(_0x44cff4[_0x3692dd('0x151')]=_[_0x3692dd('0x81')](_0x44cff4[_0x3692dd('0x151')],{[Op['or']]:_[_0x3692dd('0xe4')](_0x44cff4[_0x3692dd('0x13b')],function(_0x67a69b){const _0x331032=_0x3692dd,_0x14f29f={};return _0x14f29f[_0x67a69b]={[Op[_0x331032('0xc9')]]:'%'+_0x58ea8c['query']['filter']+'%'},_0x14f29f;})}));_0x44cff4=_[_0x3692dd('0x81')]({},_0x44cff4,_0x58ea8c['options']);switch(_0x62729f[_0x3692dd('0xdf')]){case _0x3692dd('0x127'):return db[_[_0x3692dd('0x5c')](_0x58ea8c[_0x3692dd('0x14e')][_0x3692dd('0xde')])+_0x3692dd('0x107')][_0x3692dd('0x10b')](_0x44cff4);case'user':case _0x3692dd('0x57'):return _0x62729f[_0x3692dd('0xe3')+_[_0x3692dd('0x5c')](_0x58ea8c[_0x3692dd('0x14e')]['channel'])+_0x3692dd('0x138')](_0x44cff4);default:throw new db['Sequelize'][(_0x3692dd('0x10e'))](_0x3692dd('0xc5'));}})['then'](function(_0xebaab){const _0x28ed67=_0x10999b;_0x208af2=_0xebaab['length'];typeof _0x58ea8c[_0x28ed67('0x14e')][_0x28ed67('0x8c')]==='undefined'&&(_0x44cff4['limit']=qs[_0x28ed67('0x6a')](_0x58ea8c[_0x28ed67('0x14e')][_0x28ed67('0x6a')]),_0x44cff4[_0x28ed67('0x5a')]=qs[_0x28ed67('0x5a')](_0x58ea8c[_0x28ed67('0x14e')][_0x28ed67('0x5a')]));switch(_0x62729f[_0x28ed67('0xdf')]){case _0x28ed67('0x127'):return db[_['capitalize'](_0x58ea8c[_0x28ed67('0x14e')]['channel'])+_0x28ed67('0x107')][_0x28ed67('0x10b')](_0x44cff4);case _0x28ed67('0x106'):case _0x28ed67('0x57'):return _0x62729f[_0x28ed67('0xe3')+_[_0x28ed67('0x5c')](_0x58ea8c[_0x28ed67('0x14e')]['channel'])+_0x28ed67('0x138')](_0x44cff4);}})['then'](function(_0x3f956a){return{'count':_0x208af2,'rows':_0x3f956a};})['then'](respondWithResult(_0x53ea27,null))[_0x10999b('0xe1')](handleError(_0x53ea27,null));},exports[_0x133359('0x42')]=function(_0x310c55,_0x9259f5){const _0xef6bf4=_0x133359;let _0x56b2ab={};const _0x20cb47={};let _0x286d15,_0xb7876c;return db[_0xef6bf4('0x8e')][_0xef6bf4('0x41')]({'where':{'id':_0x310c55[_0xef6bf4('0xf2')]['id']}})[_0xef6bf4('0x19')](handleEntityNotFound(_0x9259f5,null))[_0xef6bf4('0x19')](function(_0x18d19c){const _0x3d4596=_0xef6bf4;if(_0x18d19c)return _0x286d15=_0x18d19c,_0x20cb47[_0x3d4596('0x101')]=_['keys'](db[_0x3d4596('0x44')][_0x3d4596('0x7e')]),_0x20cb47[_0x3d4596('0x14e')]=_[_0x3d4596('0x134')](_0x310c55[_0x3d4596('0x14e')]),_0x20cb47[_0x3d4596('0x45')]=_[_0x3d4596('0x80')](_0x20cb47[_0x3d4596('0x101')],_0x20cb47[_0x3d4596('0x14e')]),_0x56b2ab[_0x3d4596('0x13b')]=_[_0x3d4596('0x80')](_0x20cb47[_0x3d4596('0x101')],qs['fields'](_0x310c55[_0x3d4596('0x14e')][_0x3d4596('0x96')])),_0x56b2ab[_0x3d4596('0x13b')]=_0x56b2ab[_0x3d4596('0x13b')]['length']?_0x56b2ab['attributes']:_0x20cb47[_0x3d4596('0x101')],_0x56b2ab['order']=qs[_0x3d4596('0x85')](_0x310c55[_0x3d4596('0x14e')][_0x3d4596('0x85')]),_0x56b2ab[_0x3d4596('0x151')]=qs[_0x3d4596('0x45')](_[_0x3d4596('0x61')](_0x310c55['query'],_0x20cb47['filters'])),_0x310c55[_0x3d4596('0x14e')][_0x3d4596('0xc6')]&&(_0x56b2ab[_0x3d4596('0x151')]=_[_0x3d4596('0x81')](_0x56b2ab[_0x3d4596('0x151')],{[Op['or']]:_[_0x3d4596('0xe4')](_0x56b2ab[_0x3d4596('0x13b')],function(_0x441e6a){const _0x4cc37f=_0x3d4596,_0x132193={};return _0x132193[_0x441e6a]={[Op[_0x4cc37f('0xc9')]]:'%'+_0x310c55[_0x4cc37f('0x14e')][_0x4cc37f('0xc6')]+'%'},_0x132193;})})),_0x56b2ab=_['merge']({},_0x56b2ab,_0x310c55[_0x3d4596('0x91')]),_0x286d15[_0x3d4596('0x42')](_0x56b2ab);})[_0xef6bf4('0x19')](function(_0x1018cc){const _0x2e7046=_0xef6bf4;if(_0x1018cc)return _0xb7876c=_0x1018cc['length'],typeof _0x310c55[_0x2e7046('0x14e')][_0x2e7046('0x8c')]===_0x2e7046('0xbe')&&(_0x56b2ab[_0x2e7046('0x6a')]=qs[_0x2e7046('0x6a')](_0x310c55[_0x2e7046('0x14e')][_0x2e7046('0x6a')]),_0x56b2ab['offset']=qs['offset'](_0x310c55['query'][_0x2e7046('0x5a')])),_0x286d15[_0x2e7046('0x42')](_0x56b2ab);})[_0xef6bf4('0x19')](function(_0x1bdff3){if(_0x1bdff3)return _0x1bdff3?{'count':_0xb7876c,'rows':_0x1bdff3}:null;})['then'](respondWithResult(_0x9259f5,null))['catch'](handleError(_0x9259f5,null));},exports[_0x133359('0x11f')]=function(_0x3b05e4,_0x373a8e){const _0x3906a5=_0x133359;let _0x5e1ca8={};const _0x3e9aed={};let _0xbca1e1,_0x52fd5c;return db[_0x3906a5('0x8e')][_0x3906a5('0x41')]({'where':{'id':_0x3b05e4[_0x3906a5('0xf2')]['id']}})['then'](handleEntityNotFound(_0x373a8e,null))[_0x3906a5('0x19')](function(_0x385368){const _0x44cbba=_0x3906a5;if(_0x385368)return _0xbca1e1=_0x385368,_0x3e9aed[_0x44cbba('0x101')]=_[_0x44cbba('0x134')](db['ChatGroup'][_0x44cbba('0x7e')]),_0x3e9aed['query']=_['keys'](_0x3b05e4['query']),_0x3e9aed[_0x44cbba('0x45')]=_['intersection'](_0x3e9aed['model'],_0x3e9aed['query']),_0x5e1ca8[_0x44cbba('0x13b')]=_['intersection'](_0x3e9aed['model'],qs[_0x44cbba('0x96')](_0x3b05e4[_0x44cbba('0x14e')][_0x44cbba('0x96')])),_0x5e1ca8[_0x44cbba('0x13b')]=_0x5e1ca8[_0x44cbba('0x13b')]['length']?_0x5e1ca8[_0x44cbba('0x13b')]:_0x3e9aed[_0x44cbba('0x101')],_0x5e1ca8[_0x44cbba('0x123')]=qs[_0x44cbba('0x85')](_0x3b05e4['query'][_0x44cbba('0x85')]),_0x5e1ca8['where']=qs[_0x44cbba('0x45')](_['pick'](_0x3b05e4[_0x44cbba('0x14e')],_0x3e9aed[_0x44cbba('0x45')])),_0x3b05e4[_0x44cbba('0x14e')][_0x44cbba('0xc6')]&&(_0x5e1ca8[_0x44cbba('0x151')]=_['merge'](_0x5e1ca8[_0x44cbba('0x151')],{[Op['or']]:_['map'](_0x5e1ca8['attributes'],function(_0x15cd39){const _0x2437ba=_0x44cbba,_0x572495={};return _0x572495[_0x15cd39]={[Op[_0x2437ba('0xc9')]]:'%'+_0x3b05e4['query'][_0x2437ba('0xc6')]+'%'},_0x572495;})})),_0x5e1ca8=_['merge']({},_0x5e1ca8,_0x3b05e4[_0x44cbba('0x91')]),_0xbca1e1[_0x44cbba('0x11f')](_0x5e1ca8);})[_0x3906a5('0x19')](function(_0xd1093d){const _0x46ed87=_0x3906a5;if(_0xd1093d)return _0x52fd5c=_0xd1093d[_0x46ed87('0x12b')],typeof _0x3b05e4[_0x46ed87('0x14e')]['nolimit']==='undefined'&&(_0x5e1ca8[_0x46ed87('0x6a')]=qs[_0x46ed87('0x6a')](_0x3b05e4[_0x46ed87('0x14e')][_0x46ed87('0x6a')]),_0x5e1ca8[_0x46ed87('0x5a')]=qs['offset'](_0x3b05e4['query'][_0x46ed87('0x5a')])),_0xbca1e1['getGroups'](_0x5e1ca8);})[_0x3906a5('0x19')](function(_0x7a15f8){if(_0x7a15f8)return _0x7a15f8?{'count':_0x52fd5c,'rows':_0x7a15f8}:null;})[_0x3906a5('0x19')](respondWithResult(_0x373a8e,null))['catch'](handleError(_0x373a8e,null));},exports[_0x133359('0xfa')]=function(_0x27afc6,_0x544e63){const _0xb42939=_0x133359;let _0x493373={'raw':!![],'where':{}};const _0x4b5a61={},_0x3594c2={'count':0x0,'rows':[]};return db[_0xb42939('0x8e')]['findOne']({'where':{'id':_0x27afc6[_0xb42939('0xf2')]['id']}})[_0xb42939('0x19')](handleEntityNotFound(_0x544e63,null))['then'](function(_0x17f659){const _0x46a0aa=_0xb42939;if(_0x17f659)return _0x4b5a61[_0x46a0aa('0x101')]=_[_0x46a0aa('0x134')](db[_0x46a0aa('0xdd')]['rawAttributes']),_0x4b5a61[_0x46a0aa('0x14e')]=_['keys'](_0x27afc6['query']),_0x4b5a61[_0x46a0aa('0x45')]=_[_0x46a0aa('0x80')](_0x4b5a61['model'],_0x4b5a61['query']),_0x493373[_0x46a0aa('0x13b')]=_[_0x46a0aa('0x80')](_0x4b5a61[_0x46a0aa('0x101')],qs['fields'](_0x27afc6[_0x46a0aa('0x14e')]['fields'])),_0x493373[_0x46a0aa('0x13b')]=_0x493373[_0x46a0aa('0x13b')]['length']?_0x493373['attributes']:_0x4b5a61[_0x46a0aa('0x101')],typeof _0x27afc6[_0x46a0aa('0x14e')][_0x46a0aa('0x8c')]===_0x46a0aa('0xbe')&&(_0x493373['limit']=qs[_0x46a0aa('0x6a')](_0x27afc6['query'][_0x46a0aa('0x6a')]),_0x493373[_0x46a0aa('0x5a')]=qs[_0x46a0aa('0x5a')](_0x27afc6[_0x46a0aa('0x14e')][_0x46a0aa('0x5a')])),_0x493373[_0x46a0aa('0x123')]=qs['sort'](_0x27afc6['query'][_0x46a0aa('0x85')]),_0x493373[_0x46a0aa('0x151')]=qs[_0x46a0aa('0x45')](_['pick'](_0x27afc6[_0x46a0aa('0x14e')],_0x4b5a61[_0x46a0aa('0x45')])),_0x493373[_0x46a0aa('0x151')][_0x46a0aa('0xda')]=_0x17f659['id'],_0x27afc6[_0x46a0aa('0x14e')]['filter']&&(_0x493373[_0x46a0aa('0x151')]=_['merge'](_0x493373['where'],{[Op['or']]:_[_0x46a0aa('0xe4')](_0x493373[_0x46a0aa('0x13b')],function(_0x3d6cbd){const _0x4e4ba4=_0x46a0aa,_0x358c1b={};return _0x358c1b[_0x3d6cbd]={[Op[_0x4e4ba4('0xc9')]]:'%'+_0x27afc6[_0x4e4ba4('0x14e')][_0x4e4ba4('0xc6')]+'%'},_0x358c1b;})})),_0x493373=_[_0x46a0aa('0x81')]({},_0x493373,_0x27afc6[_0x46a0aa('0x91')]),db[_0x46a0aa('0xdd')]['count']({'where':_0x493373[_0x46a0aa('0x151')]})[_0x46a0aa('0x19')](function(_0x60ef93){const _0x5dd318=_0x46a0aa;return _0x3594c2[_0x5dd318('0x1c')]=_0x60ef93,_0x27afc6['query'][_0x5dd318('0xc4')]&&(_0x493373[_0x5dd318('0x23')]=[{'all':!![]}]),db[_0x5dd318('0xdd')][_0x5dd318('0x10b')](_0x493373);})[_0x46a0aa('0x19')](function(_0x14a90a){const _0x3c5f75=_0x46a0aa;return _0x3594c2[_0x3c5f75('0x111')]=_0x14a90a,_0x3594c2;});})[_0xb42939('0x19')](respondWithFilteredResult(_0x544e63,_0x493373))[_0xb42939('0xe1')](handleError(_0x544e63,null));},exports[_0x133359('0x7d')]=function(_0x34c55b,_0x5c2aa7){const _0x6dabff=_0x133359;let _0x4a3cbe={'raw':!![],'where':{}};const _0x16b192={},_0x4321b1={'count':0x0,'rows':[]};return db[_0x6dabff('0x8e')][_0x6dabff('0x41')]({'where':{'id':_0x34c55b[_0x6dabff('0xf2')]['id']}})['then'](handleEntityNotFound(_0x5c2aa7,null))['then'](function(_0x2dc2f9){const _0x16e51a=_0x6dabff;if(_0x2dc2f9)return _0x16b192['model']=_[_0x16e51a('0x134')](db['ScreenRecording'][_0x16e51a('0x7e')]),_0x16b192[_0x16e51a('0x14e')]=_[_0x16e51a('0x134')](_0x34c55b[_0x16e51a('0x14e')]),_0x16b192[_0x16e51a('0x45')]=_[_0x16e51a('0x80')](_0x16b192[_0x16e51a('0x101')],_0x16b192[_0x16e51a('0x14e')]),_0x4a3cbe[_0x16e51a('0x13b')]=_[_0x16e51a('0x80')](_0x16b192[_0x16e51a('0x101')],qs[_0x16e51a('0x96')](_0x34c55b['query'][_0x16e51a('0x96')])),_0x4a3cbe[_0x16e51a('0x13b')]=_0x4a3cbe[_0x16e51a('0x13b')][_0x16e51a('0x12b')]?_0x4a3cbe[_0x16e51a('0x13b')]:_0x16b192[_0x16e51a('0x101')],typeof _0x34c55b[_0x16e51a('0x14e')][_0x16e51a('0x8c')]===_0x16e51a('0xbe')&&(_0x4a3cbe[_0x16e51a('0x6a')]=qs['limit'](_0x34c55b[_0x16e51a('0x14e')][_0x16e51a('0x6a')]),_0x4a3cbe[_0x16e51a('0x5a')]=qs['offset'](_0x34c55b[_0x16e51a('0x14e')][_0x16e51a('0x5a')])),_0x4a3cbe[_0x16e51a('0x123')]=qs[_0x16e51a('0x85')](_0x34c55b[_0x16e51a('0x14e')]['sort']),_0x4a3cbe[_0x16e51a('0x151')]=qs[_0x16e51a('0x45')](_[_0x16e51a('0x61')](_0x34c55b[_0x16e51a('0x14e')],_0x16b192[_0x16e51a('0x45')])),_0x4a3cbe['where'][_0x16e51a('0xda')]=_0x2dc2f9['id'],_0x34c55b[_0x16e51a('0x14e')][_0x16e51a('0xc6')]&&(_0x4a3cbe[_0x16e51a('0x151')]=_[_0x16e51a('0x81')](_0x4a3cbe[_0x16e51a('0x151')],{[Op['or']]:_[_0x16e51a('0xe4')](_0x4a3cbe[_0x16e51a('0x13b')],function(_0x1ab8bf){const _0x4c3c9c={};return _0x4c3c9c[_0x1ab8bf]={[Op['like']]:'%'+_0x34c55b['query']['filter']+'%'},_0x4c3c9c;})})),_0x4a3cbe=_[_0x16e51a('0x81')]({},_0x4a3cbe,_0x34c55b[_0x16e51a('0x91')]),db[_0x16e51a('0xc7')][_0x16e51a('0x1c')]({'where':_0x4a3cbe['where']})[_0x16e51a('0x19')](function(_0x145e60){const _0x2c0fb6=_0x16e51a;return _0x4321b1[_0x2c0fb6('0x1c')]=_0x145e60,_0x34c55b[_0x2c0fb6('0x14e')][_0x2c0fb6('0xc4')]&&(_0x4a3cbe['include']=[{'all':!![]}]),db[_0x2c0fb6('0xc7')][_0x2c0fb6('0x10b')](_0x4a3cbe);})[_0x16e51a('0x19')](function(_0xd67362){const _0x2d2966=_0x16e51a;return _0x4321b1[_0x2d2966('0x111')]=_0xd67362,_0x4321b1;});})[_0x6dabff('0x19')](respondWithFilteredResult(_0x5c2aa7,_0x4a3cbe))[_0x6dabff('0xe1')](handleError(_0x5c2aa7,null));},exports[_0x133359('0x46')]=function(_0x3b7891,_0xf661bf){const _0x35ae87=_0x133359;let _0x306ded={};const _0xc98021={};let _0xa986a2,_0x5ba534;return db[_0x35ae87('0x8e')][_0x35ae87('0x41')]({'where':{'id':_0x3b7891[_0x35ae87('0xf2')]['id']}})['then'](handleEntityNotFound(_0xf661bf,null))[_0x35ae87('0x19')](function(_0x3d8a75){const _0x184f4c=_0x35ae87;if(_0x3d8a75)return _0xa986a2=_0x3d8a75,_0xc98021[_0x184f4c('0x101')]=_['keys'](db[_0x184f4c('0x122')][_0x184f4c('0x7e')]),_0xc98021[_0x184f4c('0x14e')]=_['keys'](_0x3b7891[_0x184f4c('0x14e')]),_0xc98021[_0x184f4c('0x45')]=_[_0x184f4c('0x80')](_0xc98021[_0x184f4c('0x101')],_0xc98021['query']),_0x306ded[_0x184f4c('0x13b')]=_['intersection'](_0xc98021['model'],qs[_0x184f4c('0x96')](_0x3b7891[_0x184f4c('0x14e')]['fields'])),_0x306ded['attributes']=_0x306ded[_0x184f4c('0x13b')][_0x184f4c('0x12b')]?_0x306ded[_0x184f4c('0x13b')]:_0xc98021[_0x184f4c('0x101')],_0x306ded['order']=qs[_0x184f4c('0x85')](_0x3b7891['query'][_0x184f4c('0x85')]),_0x306ded['where']=qs[_0x184f4c('0x45')](_[_0x184f4c('0x61')](_0x3b7891['query'],_0xc98021[_0x184f4c('0x45')])),_0x3b7891['query']['filter']&&(_0x306ded[_0x184f4c('0x151')]=_[_0x184f4c('0x81')](_0x306ded[_0x184f4c('0x151')],{[Op['or']]:_['map'](_0x306ded[_0x184f4c('0x13b')],function(_0xefde9e){const _0x3ac05f=_0x184f4c,_0x146593={};return _0x146593[_0xefde9e]={[Op[_0x3ac05f('0xc9')]]:'%'+_0x3b7891[_0x3ac05f('0x14e')][_0x3ac05f('0xc6')]+'%'},_0x146593;})})),_0x306ded=_[_0x184f4c('0x81')]({},_0x306ded,_0x3b7891[_0x184f4c('0x91')]),_0xa986a2[_0x184f4c('0x46')](_0x306ded);})[_0x35ae87('0x19')](function(_0xd72f95){const _0x4e25f9=_0x35ae87;if(_0xd72f95)return _0x5ba534=_0xd72f95[_0x4e25f9('0x12b')],typeof _0x3b7891['query']['nolimit']===_0x4e25f9('0xbe')&&(_0x306ded[_0x4e25f9('0x6a')]=qs[_0x4e25f9('0x6a')](_0x3b7891[_0x4e25f9('0x14e')][_0x4e25f9('0x6a')]),_0x306ded[_0x4e25f9('0x5a')]=qs['offset'](_0x3b7891[_0x4e25f9('0x14e')][_0x4e25f9('0x5a')])),_0xa986a2[_0x4e25f9('0x46')](_0x306ded);})['then'](function(_0x49f341){if(_0x49f341)return _0x49f341?{'count':_0x5ba534,'rows':_0x49f341}:null;})[_0x35ae87('0x19')](respondWithResult(_0xf661bf,null))[_0x35ae87('0xe1')](handleError(_0xf661bf,null));},exports[_0x133359('0x8d')]=function(_0x5a9104,_0x40d2a3){const _0x5ce483=_0x133359;let _0x5b0b75={};const _0x277363={};let _0x46d160,_0x2ecd70;return db[_0x5ce483('0x8e')][_0x5ce483('0x41')]({'where':{'id':_0x5a9104[_0x5ce483('0xf2')]['id']}})[_0x5ce483('0x19')](handleEntityNotFound(_0x40d2a3,null))[_0x5ce483('0x19')](function(_0x26a7fc){const _0x18c6d7=_0x5ce483;if(_0x26a7fc)return _0x46d160=_0x26a7fc,_0x277363['model']=_[_0x18c6d7('0x134')](db[_0x18c6d7('0xb5')]['rawAttributes']),_0x277363[_0x18c6d7('0x14e')]=_[_0x18c6d7('0x134')](_0x5a9104['query']),_0x277363[_0x18c6d7('0x45')]=_[_0x18c6d7('0x80')](_0x277363[_0x18c6d7('0x101')],_0x277363[_0x18c6d7('0x14e')]),_0x5b0b75[_0x18c6d7('0x13b')]=_[_0x18c6d7('0x80')](_0x277363[_0x18c6d7('0x101')],qs[_0x18c6d7('0x96')](_0x5a9104[_0x18c6d7('0x14e')][_0x18c6d7('0x96')])),_0x5b0b75['attributes']=_0x5b0b75[_0x18c6d7('0x13b')][_0x18c6d7('0x12b')]?_0x5b0b75['attributes']:_0x277363[_0x18c6d7('0x101')],_0x5b0b75[_0x18c6d7('0x123')]=qs[_0x18c6d7('0x85')](_0x5a9104[_0x18c6d7('0x14e')][_0x18c6d7('0x85')]),_0x5b0b75[_0x18c6d7('0x151')]=qs[_0x18c6d7('0x45')](_[_0x18c6d7('0x61')](_0x5a9104[_0x18c6d7('0x14e')],_0x277363['filters'])),_0x5a9104[_0x18c6d7('0x14e')][_0x18c6d7('0xc6')]&&(_0x5b0b75[_0x18c6d7('0x151')]=_[_0x18c6d7('0x81')](_0x5b0b75['where'],{[Op['or']]:_['map'](_0x5b0b75[_0x18c6d7('0x13b')],function(_0x5ecf5f){const _0x41a6b2=_0x18c6d7,_0x3da395={};return _0x3da395[_0x5ecf5f]={[Op['like']]:'%'+_0x5a9104['query'][_0x41a6b2('0xc6')]+'%'},_0x3da395;})})),_0x5b0b75=_[_0x18c6d7('0x81')]({},_0x5b0b75,_0x5a9104[_0x18c6d7('0x91')]),_0x46d160[_0x18c6d7('0x8d')](_0x5b0b75);})[_0x5ce483('0x19')](function(_0x21bce1){const _0xaa33dd=_0x5ce483;if(_0x21bce1)return _0x2ecd70=_0x21bce1[_0xaa33dd('0x12b')],typeof _0x5a9104[_0xaa33dd('0x14e')][_0xaa33dd('0x8c')]===_0xaa33dd('0xbe')&&(_0x5b0b75[_0xaa33dd('0x6a')]=qs[_0xaa33dd('0x6a')](_0x5a9104[_0xaa33dd('0x14e')][_0xaa33dd('0x6a')]),_0x5b0b75['offset']=qs[_0xaa33dd('0x5a')](_0x5a9104['query']['offset'])),_0x46d160[_0xaa33dd('0x8d')](_0x5b0b75);})[_0x5ce483('0x19')](function(_0x5c5306){if(_0x5c5306)return _0x5c5306?{'count':_0x2ecd70,'rows':_0x5c5306}:null;})[_0x5ce483('0x19')](respondWithResult(_0x40d2a3,null))['catch'](handleError(_0x40d2a3,null));},exports[_0x133359('0x98')]=function(_0x5b9071,_0x2b4ae3){const _0x3a943e=_0x133359;let _0x2bcff7={'raw':!![],'where':{}};const _0x45d32b={},_0x1c3fd5={'count':0x0,'rows':[]};return db[_0x3a943e('0x8e')][_0x3a943e('0x41')]({'where':{'id':_0x5b9071[_0x3a943e('0xf2')]['id']}})[_0x3a943e('0x19')](handleEntityNotFound(_0x2b4ae3,null))[_0x3a943e('0x19')](function(_0x331fb9){const _0x57558f=_0x3a943e;if(_0x331fb9)return _0x45d32b[_0x57558f('0x101')]=_[_0x57558f('0x134')](db[_0x57558f('0x140')]['rawAttributes']),_0x45d32b[_0x57558f('0x14e')]=_[_0x57558f('0x134')](_0x5b9071[_0x57558f('0x14e')]),_0x45d32b[_0x57558f('0x45')]=_[_0x57558f('0x80')](_0x45d32b[_0x57558f('0x101')],_0x45d32b[_0x57558f('0x14e')]),_0x2bcff7[_0x57558f('0x13b')]=_[_0x57558f('0x80')](_0x45d32b[_0x57558f('0x101')],qs[_0x57558f('0x96')](_0x5b9071[_0x57558f('0x14e')][_0x57558f('0x96')])),_0x2bcff7[_0x57558f('0x13b')]=_0x2bcff7[_0x57558f('0x13b')][_0x57558f('0x12b')]?_0x2bcff7['attributes']:_0x45d32b['model'],typeof _0x5b9071[_0x57558f('0x14e')][_0x57558f('0x8c')]===_0x57558f('0xbe')&&(_0x2bcff7['limit']=qs[_0x57558f('0x6a')](_0x5b9071[_0x57558f('0x14e')][_0x57558f('0x6a')]),_0x2bcff7[_0x57558f('0x5a')]=qs[_0x57558f('0x5a')](_0x5b9071[_0x57558f('0x14e')][_0x57558f('0x5a')])),_0x2bcff7[_0x57558f('0x123')]=qs[_0x57558f('0x85')](_0x5b9071['query'][_0x57558f('0x85')]),_0x2bcff7[_0x57558f('0x151')]=qs[_0x57558f('0x45')](_['pick'](_0x5b9071['query'],_0x45d32b[_0x57558f('0x45')])),_0x2bcff7[_0x57558f('0x151')][_0x57558f('0xda')]=_0x331fb9['id'],_0x5b9071[_0x57558f('0x14e')]['filter']&&(_0x2bcff7[_0x57558f('0x151')]=_[_0x57558f('0x81')](_0x2bcff7[_0x57558f('0x151')],{[Op['or']]:_[_0x57558f('0xe4')](_0x2bcff7['attributes'],function(_0x270e00){const _0xeb7a7d=_0x57558f,_0x1a17eb={};return _0x1a17eb[_0x270e00]={[Op[_0xeb7a7d('0xc9')]]:'%'+_0x5b9071[_0xeb7a7d('0x14e')]['filter']+'%'},_0x1a17eb;})})),_0x2bcff7=_[_0x57558f('0x81')]({},_0x2bcff7,_0x5b9071[_0x57558f('0x91')]),db['MailInteraction'][_0x57558f('0x1c')]({'where':_0x2bcff7[_0x57558f('0x151')]})[_0x57558f('0x19')](function(_0x2eeba8){const _0x236898=_0x57558f;return _0x1c3fd5[_0x236898('0x1c')]=_0x2eeba8,_0x5b9071[_0x236898('0x14e')][_0x236898('0xc4')]&&(_0x2bcff7[_0x236898('0x23')]=[{'all':!![]}]),db[_0x236898('0x140')][_0x236898('0x10b')](_0x2bcff7);})['then'](function(_0x381d53){const _0x15d20b=_0x57558f;return _0x1c3fd5[_0x15d20b('0x111')]=_0x381d53,_0x1c3fd5;});})[_0x3a943e('0x19')](respondWithFilteredResult(_0x2b4ae3,_0x2bcff7))['catch'](handleError(_0x2b4ae3,null));},exports[_0x133359('0x25')]=function(_0x1dcb4d,_0x50a519){const _0x435a42=_0x133359;let _0x59b1ef={};const _0x431102={};let _0x57f705,_0x13584b;return db[_0x435a42('0x8e')][_0x435a42('0x41')]({'where':{'id':_0x1dcb4d[_0x435a42('0xf2')]['id']}})[_0x435a42('0x19')](handleEntityNotFound(_0x50a519,null))[_0x435a42('0x19')](function(_0x3aa4f7){const _0x46f914=_0x435a42;if(_0x3aa4f7)return _0x57f705=_0x3aa4f7,_0x431102['model']=_['keys'](db[_0x46f914('0x74')][_0x46f914('0x7e')]),_0x431102[_0x46f914('0x14e')]=_[_0x46f914('0x134')](_0x1dcb4d[_0x46f914('0x14e')]),_0x431102[_0x46f914('0x45')]=_[_0x46f914('0x80')](_0x431102[_0x46f914('0x101')],_0x431102[_0x46f914('0x14e')]),_0x59b1ef['attributes']=_['intersection'](_0x431102[_0x46f914('0x101')],qs[_0x46f914('0x96')](_0x1dcb4d[_0x46f914('0x14e')]['fields'])),_0x59b1ef[_0x46f914('0x13b')]=_0x59b1ef[_0x46f914('0x13b')][_0x46f914('0x12b')]?_0x59b1ef[_0x46f914('0x13b')]:_0x431102[_0x46f914('0x101')],_0x59b1ef['order']=qs[_0x46f914('0x85')](_0x1dcb4d[_0x46f914('0x14e')][_0x46f914('0x85')]),_0x59b1ef['where']=qs[_0x46f914('0x45')](_[_0x46f914('0x61')](_0x1dcb4d[_0x46f914('0x14e')],_0x431102['filters'])),_0x1dcb4d['query'][_0x46f914('0xc6')]&&(_0x59b1ef[_0x46f914('0x151')]=_[_0x46f914('0x81')](_0x59b1ef['where'],{[Op['or']]:_['map'](_0x59b1ef[_0x46f914('0x13b')],function(_0x127888){const _0x20b478=_0x46f914,_0x419a09={};return _0x419a09[_0x127888]={[Op[_0x20b478('0xc9')]]:'%'+_0x1dcb4d[_0x20b478('0x14e')][_0x20b478('0xc6')]+'%'},_0x419a09;})})),_0x59b1ef=_['merge']({},_0x59b1ef,_0x1dcb4d['options']),_0x57f705[_0x46f914('0x25')](_0x59b1ef);})[_0x435a42('0x19')](function(_0x331fc6){const _0x2f066f=_0x435a42;if(_0x331fc6)return _0x13584b=_0x331fc6[_0x2f066f('0x12b')],typeof _0x1dcb4d[_0x2f066f('0x14e')]['nolimit']==='undefined'&&(_0x59b1ef['limit']=qs['limit'](_0x1dcb4d['query'][_0x2f066f('0x6a')]),_0x59b1ef[_0x2f066f('0x5a')]=qs[_0x2f066f('0x5a')](_0x1dcb4d['query'][_0x2f066f('0x5a')])),_0x57f705[_0x2f066f('0x25')](_0x59b1ef);})[_0x435a42('0x19')](function(_0x38addb){if(_0x38addb)return _0x38addb?{'count':_0x13584b,'rows':_0x38addb}:null;})[_0x435a42('0x19')](respondWithResult(_0x50a519,null))[_0x435a42('0xe1')](handleError(_0x50a519,null));},exports[_0x133359('0xea')]=function(_0x11638c,_0x2cb1d5){const _0x321e8a=_0x133359;let _0x14e0a0={};const _0x311f02={};let _0x3c194a,_0x30a251;return db['User'][_0x321e8a('0x41')]({'where':{'id':_0x11638c['params']['id']}})[_0x321e8a('0x19')](handleEntityNotFound(_0x2cb1d5,null))[_0x321e8a('0x19')](function(_0x4aa1bf){const _0xc0a8a3=_0x321e8a;if(_0x4aa1bf)return _0x3c194a=_0x4aa1bf,_0x311f02['model']=_[_0xc0a8a3('0x134')](db['FaxInteraction'][_0xc0a8a3('0x7e')]),_0x311f02['query']=_[_0xc0a8a3('0x134')](_0x11638c[_0xc0a8a3('0x14e')]),_0x311f02[_0xc0a8a3('0x45')]=_['intersection'](_0x311f02[_0xc0a8a3('0x101')],_0x311f02['query']),_0x14e0a0[_0xc0a8a3('0x13b')]=_[_0xc0a8a3('0x80')](_0x311f02['model'],qs['fields'](_0x11638c['query'][_0xc0a8a3('0x96')])),_0x14e0a0[_0xc0a8a3('0x13b')]=_0x14e0a0[_0xc0a8a3('0x13b')][_0xc0a8a3('0x12b')]?_0x14e0a0[_0xc0a8a3('0x13b')]:_0x311f02[_0xc0a8a3('0x101')],_0x14e0a0['order']=qs[_0xc0a8a3('0x85')](_0x11638c['query'][_0xc0a8a3('0x85')]),_0x14e0a0[_0xc0a8a3('0x151')]=qs[_0xc0a8a3('0x45')](_['pick'](_0x11638c[_0xc0a8a3('0x14e')],_0x311f02['filters'])),_0x11638c[_0xc0a8a3('0x14e')]['filter']&&(_0x14e0a0[_0xc0a8a3('0x151')]=_[_0xc0a8a3('0x81')](_0x14e0a0[_0xc0a8a3('0x151')],{[Op['or']]:_[_0xc0a8a3('0xe4')](_0x14e0a0['attributes'],function(_0xa51263){const _0x4152b1=_0xc0a8a3,_0x2a00e2={};return _0x2a00e2[_0xa51263]={[Op[_0x4152b1('0xc9')]]:'%'+_0x11638c[_0x4152b1('0x14e')][_0x4152b1('0xc6')]+'%'},_0x2a00e2;})})),_0x14e0a0=_[_0xc0a8a3('0x81')]({},_0x14e0a0,_0x11638c[_0xc0a8a3('0x91')]),_0x3c194a[_0xc0a8a3('0xea')](_0x14e0a0);})['then'](function(_0x3b65c9){const _0x3551f5=_0x321e8a;if(_0x3b65c9)return _0x30a251=_0x3b65c9['length'],typeof _0x11638c[_0x3551f5('0x14e')][_0x3551f5('0x8c')]==='undefined'&&(_0x14e0a0[_0x3551f5('0x6a')]=qs[_0x3551f5('0x6a')](_0x11638c[_0x3551f5('0x14e')][_0x3551f5('0x6a')]),_0x14e0a0[_0x3551f5('0x5a')]=qs[_0x3551f5('0x5a')](_0x11638c[_0x3551f5('0x14e')][_0x3551f5('0x5a')])),_0x3c194a[_0x3551f5('0xea')](_0x14e0a0);})[_0x321e8a('0x19')](function(_0x216797){if(_0x216797)return _0x216797?{'count':_0x30a251,'rows':_0x216797}:null;})[_0x321e8a('0x19')](respondWithResult(_0x2cb1d5,null))[_0x321e8a('0xe1')](handleError(_0x2cb1d5,null));},exports['getWhatsappInteractions']=function(_0x1566f3,_0x440053){const _0x3af49c=_0x133359;let _0x2ea0f8={};const _0x3e019c={};let _0x679aa6,_0x45ff2f;return db['User'][_0x3af49c('0x41')]({'where':{'id':_0x1566f3['params']['id']}})[_0x3af49c('0x19')](handleEntityNotFound(_0x440053,null))['then'](function(_0x762ddd){const _0x41cd1e=_0x3af49c;if(_0x762ddd)return _0x679aa6=_0x762ddd,_0x3e019c['model']=_['keys'](db[_0x41cd1e('0x105')][_0x41cd1e('0x7e')]),_0x3e019c[_0x41cd1e('0x14e')]=_[_0x41cd1e('0x134')](_0x1566f3['query']),_0x3e019c[_0x41cd1e('0x45')]=_[_0x41cd1e('0x80')](_0x3e019c[_0x41cd1e('0x101')],_0x3e019c[_0x41cd1e('0x14e')]),_0x2ea0f8[_0x41cd1e('0x13b')]=_[_0x41cd1e('0x80')](_0x3e019c[_0x41cd1e('0x101')],qs[_0x41cd1e('0x96')](_0x1566f3[_0x41cd1e('0x14e')][_0x41cd1e('0x96')])),_0x2ea0f8[_0x41cd1e('0x13b')]=_0x2ea0f8[_0x41cd1e('0x13b')][_0x41cd1e('0x12b')]?_0x2ea0f8[_0x41cd1e('0x13b')]:_0x3e019c[_0x41cd1e('0x101')],_0x2ea0f8[_0x41cd1e('0x123')]=qs['sort'](_0x1566f3[_0x41cd1e('0x14e')][_0x41cd1e('0x85')]),_0x2ea0f8['where']=qs[_0x41cd1e('0x45')](_[_0x41cd1e('0x61')](_0x1566f3[_0x41cd1e('0x14e')],_0x3e019c[_0x41cd1e('0x45')])),_0x1566f3[_0x41cd1e('0x14e')][_0x41cd1e('0xc6')]&&(_0x2ea0f8[_0x41cd1e('0x151')]=_[_0x41cd1e('0x81')](_0x2ea0f8['where'],{[Op['or']]:_[_0x41cd1e('0xe4')](_0x2ea0f8['attributes'],function(_0x278066){const _0x527fc9=_0x41cd1e,_0x4229c3={};return _0x4229c3[_0x278066]={[Op[_0x527fc9('0xc9')]]:'%'+_0x1566f3['query'][_0x527fc9('0xc6')]+'%'},_0x4229c3;})})),_0x2ea0f8=_['merge']({},_0x2ea0f8,_0x1566f3['options']),_0x679aa6['getWhatsappInteractions'](_0x2ea0f8);})[_0x3af49c('0x19')](function(_0x54dcf7){const _0x4d98c0=_0x3af49c;if(_0x54dcf7)return _0x45ff2f=_0x54dcf7[_0x4d98c0('0x12b')],typeof _0x1566f3[_0x4d98c0('0x14e')][_0x4d98c0('0x8c')]===_0x4d98c0('0xbe')&&(_0x2ea0f8[_0x4d98c0('0x6a')]=qs['limit'](_0x1566f3['query'][_0x4d98c0('0x6a')]),_0x2ea0f8[_0x4d98c0('0x5a')]=qs['offset'](_0x1566f3[_0x4d98c0('0x14e')][_0x4d98c0('0x5a')])),_0x679aa6[_0x4d98c0('0xa')](_0x2ea0f8);})['then'](function(_0x1e55e9){if(_0x1e55e9)return _0x1e55e9?{'count':_0x45ff2f,'rows':_0x1e55e9}:null;})[_0x3af49c('0x19')](respondWithResult(_0x440053,null))[_0x3af49c('0xe1')](handleError(_0x440053,null));},exports['login']=function(_0x39a609,_0x21d36f,_0x29f432){const _0x968070=_0x133359;let _0x13620c,_0x3ce4f6,_0x341476;const _0x3569e6=!_[_0x968070('0xf3')](_0x39a609[_0x968070('0xf2')]['id'])?_0x39a609[_0x968070('0xf2')]['id']:!_[_0x968070('0xf3')](_0x39a609['user']['id'])?_0x39a609[_0x968070('0x106')]['id']:null;return db[_0x968070('0x8e')][_0x968070('0x41')]({'where':{'id':_0x3569e6,'role':{[Op['or']]:['admin',_0x968070('0x106'),_0x968070('0x57')]}},'attributes':['id',_0x968070('0xca'),_0x968070('0x131'),_0x968070('0xcf'),_0x968070('0xdf'),_0x968070('0x124'),_0x968070('0x137')]})[_0x968070('0x19')](function(_0x40397a){const _0x2d870f=_0x968070;if(_0x40397a){if(_0x40397a[_0x2d870f('0xdf')]===_0x2d870f('0x57')){_0x13620c=_0x40397a;if(_0x39a609[_0x2d870f('0x102')][_0x2d870f('0xfb')])_0x341476=util[_0x2d870f('0x144')]('LOCAL/%s@from-sip/n',_0x13620c[_0x39a609[_0x2d870f('0x102')][_0x2d870f('0xfb')]]);else _0x39a609[_0x2d870f('0x102')]['intrf']?_0x341476=util[_0x2d870f('0x144')](_0x2d870f('0x118'),_0x39a609[_0x2d870f('0x102')][_0x2d870f('0x6b')]):_0x341476=util[_0x2d870f('0x144')](_0x2d870f('0x118'),_0x13620c[_0x2d870f('0xca')]);return socket['to'](util[_0x2d870f('0x144')]('user:%s',_0x13620c[_0x2d870f('0xca')]))[_0x2d870f('0x6')]('user:forcelogout',{'ip':_0x39a609['headers']['x-forwarded-for']||_0x39a609[_0x2d870f('0x10d')]['remoteAddress']||_0x39a609[_0x2d870f('0x128')]['remoteAddress']||_0x39a609[_0x2d870f('0x10d')][_0x2d870f('0x128')][_0x2d870f('0x104')]}),db[_0x2d870f('0x44')][_0x2d870f('0xcc')]({'where':{'membername':_0x13620c[_0x2d870f('0xca')]},'individualHooks':!![]});}}else throw new db['Sequelize'][(_0x2d870f('0x10e'))](_0x2d870f('0xe6'));})[_0x968070('0x19')](function(){const _0x1a94e5=_0x968070;if(_0x13620c)return _0x13620c[_0x1a94e5('0x10')]({'raw':!![]});})[_0x968070('0x19')](function(_0xce26e1){const _0x3effaa=_0x968070;if(_0x13620c){if(_0xce26e1){_0x3ce4f6=_0xce26e1;if(_0x3ce4f6[_0x3effaa('0x12b')]){const _0x48d752=_0x3ce4f6[_0x3effaa('0xe4')](_0x2b6c7c=>{const _0x4e8095=_0x3effaa,_0x1adf44={'membername':_0x13620c[_0x4e8095('0xca')],'UserId':_0x13620c['id'],'queue_name':_0x2b6c7c[_0x4e8095('0xca')],'VoiceQueueId':_0x2b6c7c['id'],'interface':_0x341476,'paused':_0x13620c['loginInPause']||![],'penalty':_0x2b6c7c[_0x4e8095('0x132')]||0x0};return db['UserVoiceQueueRt'][_0x4e8095('0x88')](_0x1adf44);});return Promise[_0x3effaa('0x3a')](_0x48d752);}}}})['then'](function(){const _0x1d898b=_0x968070;if(_0x13620c)return db[_0x1d898b('0x40')][_0x1d898b('0x10b')]({'where':{'membername':_0x13620c[_0x1d898b('0xca')],'exitAt':null}});})[_0x968070('0x19')](function(_0x4d1742){const _0x14c8f5=_0x968070;if(_0x13620c){const _0x4b475c=[];return _0x4d1742[_0x14c8f5('0x14a')](function(_0x459307){const _0x53c8f9=_0x14c8f5;_0x4b475c[_0x53c8f9('0x7a')](_0x459307[_0x53c8f9('0x28')]({'exitAt':moment()[_0x53c8f9('0x144')](_0x53c8f9('0x58'))}));}),Promise[_0x14c8f5('0x3a')](_0x4b475c);}})['then'](function(){const _0x48700f=_0x968070;if(_0x13620c){const _0x1aea0f=[],_0x1e154e=[],_0x40061d=utils['getChannels'](),_0xace6d7={'membername':_0x13620c[_0x48700f('0xca')],'interface':_0x341476,'enterAt':moment()[_0x48700f('0x144')](_0x48700f('0x58')),'role':_0x13620c[_0x48700f('0xdf')],'internal':_0x13620c[_0x48700f('0x124')]};return _0x40061d['forEach'](function(_0x555e1b){const _0x542080=_0x48700f;_0x1aea0f[_0x542080('0x7a')](_['merge']({'channel':_0x555e1b,'type':'LOGIN','data1':_0x39a609['body'][_0x542080('0xb9')],'data2':_0x341476},_0xace6d7)),_0x13620c[_0x542080('0x137')]&&_0x1e154e[_0x542080('0x7a')](_[_0x542080('0x81')]({'channel':_0x555e1b,'type':_0x542080('0x17'),'data1':'LOGININPAUSE'},_0xace6d7));}),db[_0x48700f('0x40')]['bulkCreate'](_0x1aea0f[_0x48700f('0xef')](_0x1e154e),{'individualHooks':!![]});}})['then'](function(){const _0x332a02=_0x968070;if(_0x13620c)return _0x13620c[_0x332a02('0x28')]({'online':!![],'lastLoginAt':moment()[_0x332a02('0x144')](_0x332a02('0x58')),'voicePause':_0x13620c[_0x332a02('0x137')]||![],'mailPause':_0x13620c[_0x332a02('0x137')]||![],'chatPause':_0x13620c[_0x332a02('0x137')]||![],'faxPause':_0x13620c[_0x332a02('0x137')]||![],'smsPause':_0x13620c['loginInPause']||![],'openchannelPause':_0x13620c['loginInPause']||![],'whatsappPause':_0x13620c[_0x332a02('0x137')]||![],'pauseType':_0x13620c[_0x332a02('0x137')]?'LOGININPAUSE':null,'interface':_0x341476,'lastPauseAt':moment()['format'](_0x332a02('0x58'))});})[_0x968070('0x19')](function(_0x66132e){const _0x26d137=_0x968070;return _0x39a609[_0x26d137('0xd1')]?_0x29f432():Promise[_0x26d137('0xbf')](_0x66132e)[_0x26d137('0x19')](respondWithResult(_0x21d36f,null));})[_0x968070('0xe1')](handleError(_0x21d36f,null));},exports[_0x133359('0x79')]=function(_0x548613,_0x3beb11){const _0x28f00d=_0x133359;let _0x1733e7;return db[_0x28f00d('0x8e')][_0x28f00d('0x41')]({'where':{'id':_0x548613[_0x28f00d('0xf2')]['id'],'role':'agent'},'attributes':['id','name',_0x28f00d('0xdf')]})[_0x28f00d('0x19')](handleEntityNotFound(_0x3beb11,null))['then'](function(_0x1a4760){const _0x57c5e6=_0x28f00d;if(_0x1a4760)return _0x1733e7=_0x1a4760,db[_0x57c5e6('0x44')][_0x57c5e6('0xcc')]({'where':{'membername':_0x1733e7[_0x57c5e6('0xca')]},'individualHooks':!![]});})[_0x28f00d('0x19')](function(){const _0x42db3b=_0x28f00d;return db[_0x42db3b('0x40')][_0x42db3b('0x10b')]({'where':{'membername':_0x1733e7[_0x42db3b('0xca')],'exitAt':null}});})[_0x28f00d('0x19')](function(_0x6f051a){const _0x20d5f3=[];return _0x6f051a['forEach'](function(_0x4db65a){const _0x497851=a648_0x1f38;_0x20d5f3['push'](_0x4db65a[_0x497851('0x28')]({'exitAt':moment()[_0x497851('0x144')](_0x497851('0x58'))}));}),Promise['all'](_0x20d5f3);})['then'](function(){return _0x1733e7['update']({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})['then'](respondWithResult(_0x3beb11,null))[_0x28f00d('0xe1')](handleError(_0x3beb11,null));},exports[_0x133359('0x5b')]=function(_0x1977b5,_0x207bb6){const _0x3b7cc8=_0x133359;let _0x54c3ab;return db[_0x3b7cc8('0x44')][_0x3b7cc8('0x28')]({'paused':0x1},{'where':{'UserId':_0x1977b5[_0x3b7cc8('0xf2')]['id']},'individualHooks':!![]})[_0x3b7cc8('0x19')](function(){const _0x49cb23=_0x3b7cc8;return db[_0x49cb23('0x8e')][_0x49cb23('0x41')]({'where':{'id':_0x1977b5[_0x49cb23('0xf2')]['id'],'role':_0x49cb23('0x57')},'attributes':['id',_0x49cb23('0xca'),_0x49cb23('0xdf'),'internal',_0x49cb23('0xfb')]});})[_0x3b7cc8('0x19')](handleEntityNotFound(_0x207bb6,null))[_0x3b7cc8('0x19')](function(_0x301eee){if(_0x301eee)return _0x54c3ab=_0x301eee,respondWithRpcPromise('QueuePause','pause',{'id':_0x54c3ab['id'],'name':_0x54c3ab['name'],'pause':!![]});})[_0x3b7cc8('0x19')](function(){const _0x365706=_0x3b7cc8;if(_0x54c3ab)return db[_0x365706('0x40')]['findAll']({'where':{'membername':_0x54c3ab[_0x365706('0xca')],'type':_0x365706('0x17'),'exitAt':null}});})[_0x3b7cc8('0x19')](function(_0x476e65){const _0x15759d=_0x3b7cc8;if(_0x476e65['length']){const _0x428f76=moment()['format'](_0x15759d('0x58'));for(let _0x2b01d7=0x0,_0x778e81=_0x476e65['length'];_0x2b01d7<_0x778e81;_0x2b01d7++){_0x476e65[_0x2b01d7]['update']({'exitAt':_0x428f76});}}})[_0x3b7cc8('0x19')](function(){const _0x527514=_0x3b7cc8,_0x1880e6=[],_0x65891a=utils[_0x527514('0x3c')]();return _0x65891a[_0x527514('0x14a')](function(_0x1daf6b){const _0x5901c4=_0x527514;_0x1880e6[_0x5901c4('0x7a')]({'channel':_0x1daf6b,'membername':_0x54c3ab[_0x5901c4('0xca')],'interface':_[_0x5901c4('0xf3')](_0x54c3ab[_0x5901c4('0xfb')])?util[_0x5901c4('0x144')](_0x5901c4('0x118'),_0x54c3ab[_0x5901c4('0xca')]):_0x54c3ab['interface'],'type':_0x5901c4('0x17'),'enterAt':moment()[_0x5901c4('0x144')](_0x5901c4('0x58')),'data1':_0x1977b5['body']['type']||_0x5901c4('0x2a'),'role':_0x54c3ab['role'],'internal':_0x54c3ab[_0x5901c4('0x124')]});}),db['MemberReport']['bulkCreate'](_0x1880e6,{'individualHooks':!![]});})[_0x3b7cc8('0x19')](function(){const _0x1ee732=_0x3b7cc8;return _0x54c3ab[_0x1ee732('0x28')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x1977b5['body'][_0x1ee732('0xb4')]||_0x1ee732('0x2a'),'lastPauseAt':moment()[_0x1ee732('0x144')](_0x1ee732('0x58'))});})[_0x3b7cc8('0x19')](respondWithResult(_0x207bb6,null))[_0x3b7cc8('0xe1')](handleError(_0x207bb6,null));},exports['unpause']=function(_0xaabbc5,_0x48a0fa){const _0x3d694d=_0x133359;let _0x3b0dd3;return db[_0x3d694d('0x8e')][_0x3d694d('0x41')]({'where':{'id':_0xaabbc5[_0x3d694d('0xf2')]['id']},'attributes':['id',_0x3d694d('0xca'),_0x3d694d('0xdf'),_0x3d694d('0xd8'),'mailPause',_0x3d694d('0xba'),_0x3d694d('0x11b'),_0x3d694d('0x153'),'smsPause','whatsapppause',_0x3d694d('0x11c'),_0x3d694d('0x13f')]})[_0x3d694d('0x19')](handleEntityNotFound(_0x48a0fa,null))[_0x3d694d('0x19')](function(_0x1fca29){const _0x1b2f54=_0x3d694d;if(_0x1fca29){_0x3b0dd3=_0x1fca29;if(_0xaabbc5[_0x1b2f54('0x102')][_0x1b2f54('0xde')]&&!utils[_0x1b2f54('0x62')](_0xaabbc5[_0x1b2f54('0x102')][_0x1b2f54('0xde')]))throw new db[(_0x1b2f54('0x54'))]['ValidationError'](_0x1b2f54('0x24'));switch(_0xaabbc5[_0x1b2f54('0x102')][_0x1b2f54('0xde')]){case _0x1b2f54('0x26'):return respondWithRpcPromise(_0x1b2f54('0x141'),_0x1b2f54('0xd7'),{'id':_0x3b0dd3['id'],'name':_0x3b0dd3['name'],'pause':![]})[_0x1b2f54('0x19')](function(){const _0x114a55=_0x1b2f54;return db[_0x114a55('0x44')][_0x114a55('0x28')]({'paused':0x0},{'where':{'UserId':_0x3b0dd3['id']},'individualHooks':!![]});})[_0x1b2f54('0x19')](function(){const _0x75769c=_0x1b2f54;return db[_0x75769c('0x40')][_0x75769c('0x41')]({'where':{'channel':_0xaabbc5[_0x75769c('0x102')][_0x75769c('0xde')],'membername':_0x3b0dd3[_0x75769c('0xca')],'type':_0x75769c('0x17'),'exitAt':null}});})['then'](function(_0x3b8961){const _0x51f274=_0x1b2f54;if(_0x3b8961)return _0x3b8961[_0x51f274('0x28')]({'exitAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x51f274('0xa9')},{'individualHooks':!![]});return null;})[_0x1b2f54('0x19')](function(){const _0x32a9d1=_0x1b2f54;return _0x3b0dd3[_0x32a9d1('0x28')]({'voicePause':![]});});case _0x1b2f54('0xe5'):case _0x1b2f54('0xaa'):case _0x1b2f54('0x145'):case _0x1b2f54('0x13a'):case'whatsapp':case _0x1b2f54('0x16'):return db['MemberReport']['findOne']({'where':{'channel':_0xaabbc5['body'][_0x1b2f54('0xde')],'membername':_0x3b0dd3[_0x1b2f54('0xca')],'type':_0x1b2f54('0x17'),'exitAt':null}})['then'](function(_0x1ec567){const _0x1d602b=_0x1b2f54;if(_0x1ec567)return _0x1ec567[_0x1d602b('0x28')]({'exitAt':moment()[_0x1d602b('0x144')](_0x1d602b('0x58')),'data2':_0x1d602b('0xa9')},{'individualHooks':!![]});return null;})[_0x1b2f54('0x19')](function(){const _0x17de97=_0x1b2f54,_0x1a0e84={};return _[_0x17de97('0x1f')](_0x1a0e84,util['format'](_0x17de97('0xe2'),_0xaabbc5[_0x17de97('0x102')][_0x17de97('0xde')],'Pause'),![]),_0x3b0dd3[_0x17de97('0x28')](_0x1a0e84);});default:return respondWithRpcPromise(_0x1b2f54('0x141'),_0x1b2f54('0xd7'),{'id':_0x3b0dd3['id'],'name':_0x3b0dd3['name'],'pause':![]})[_0x1b2f54('0x19')](function(){const _0x29235=_0x1b2f54;return db[_0x29235('0x44')][_0x29235('0x28')]({'paused':0x0},{'where':{'UserId':_0x3b0dd3['id']}});})[_0x1b2f54('0x19')](function(){const _0x43657e=_0x1b2f54;return db['MemberReport'][_0x43657e('0x10b')]({'where':{'membername':_0x3b0dd3[_0x43657e('0xca')],'type':_0x43657e('0x17'),'exitAt':null}});})['then'](function(_0x46668f){const _0x50cf18=_0x1b2f54,_0x3705a4=[];return _0x46668f[_0x50cf18('0x14a')](function(_0x20dddd){const _0xd82b51=_0x50cf18;_0x3705a4[_0xd82b51('0x7a')](_0x20dddd[_0xd82b51('0x28')]({'exitAt':moment()[_0xd82b51('0x144')](_0xd82b51('0x58')),'data2':'manual'}));}),Promise[_0x50cf18('0x3a')](_0x3705a4);})[_0x1b2f54('0x19')](function(){return _0x3b0dd3['update']({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x3d694d('0x19')](respondWithResult(_0x48a0fa,null))['catch'](handleError(_0x48a0fa,null));},exports[_0x133359('0xa2')]=function(_0x459532,_0x45abb1){const _0x191dd7=_0x133359;let _0x1cdfe4={};const _0x324865={};let _0x496956,_0x4ded46;return db[_0x191dd7('0x8e')][_0x191dd7('0x41')]({'where':{'id':_0x459532[_0x191dd7('0xf2')]['id']}})[_0x191dd7('0x19')](handleEntityNotFound(_0x45abb1,null))[_0x191dd7('0x19')](function(_0x52ed6b){const _0xd20816=_0x191dd7;if(_0x52ed6b)return _0x496956=_0x52ed6b,_0x324865[_0xd20816('0x101')]=_['keys'](db['Team'][_0xd20816('0x7e')]),_0x324865['query']=_[_0xd20816('0x134')](_0x459532[_0xd20816('0x14e')]),_0x324865[_0xd20816('0x45')]=_[_0xd20816('0x80')](_0x324865[_0xd20816('0x101')],_0x324865[_0xd20816('0x14e')]),_0x1cdfe4['attributes']=_['intersection'](_0x324865['model'],qs[_0xd20816('0x96')](_0x459532[_0xd20816('0x14e')][_0xd20816('0x96')])),_0x1cdfe4['attributes']=_0x1cdfe4[_0xd20816('0x13b')][_0xd20816('0x12b')]?_0x1cdfe4[_0xd20816('0x13b')]:_0x324865[_0xd20816('0x101')],_0x1cdfe4['order']=qs[_0xd20816('0x85')](_0x459532[_0xd20816('0x14e')][_0xd20816('0x85')]),_0x1cdfe4[_0xd20816('0x151')]=qs[_0xd20816('0x45')](_[_0xd20816('0x61')](_0x459532[_0xd20816('0x14e')],_0x324865[_0xd20816('0x45')])),_0x459532['query'][_0xd20816('0xc6')]&&(_0x1cdfe4['where']=_[_0xd20816('0x81')](_0x1cdfe4['where'],{[Op['or']]:_[_0xd20816('0xe4')](_0x1cdfe4[_0xd20816('0x13b')],function(_0x5ddcbf){const _0x20043d=_0xd20816,_0x2501a7={};return _0x2501a7[_0x5ddcbf]={[Op[_0x20043d('0xc9')]]:'%'+_0x459532['query']['filter']+'%'},_0x2501a7;})})),_0x1cdfe4=_[_0xd20816('0x81')]({},_0x1cdfe4,_0x459532[_0xd20816('0x91')]),_0x496956[_0xd20816('0xa2')](_0x1cdfe4);})[_0x191dd7('0x19')](function(_0x1782d3){const _0x2aa691=_0x191dd7;if(_0x1782d3)return _0x4ded46=_0x1782d3['length'],typeof _0x459532[_0x2aa691('0x14e')][_0x2aa691('0x8c')]===_0x2aa691('0xbe')&&(_0x1cdfe4[_0x2aa691('0x6a')]=qs[_0x2aa691('0x6a')](_0x459532[_0x2aa691('0x14e')][_0x2aa691('0x6a')]),_0x1cdfe4[_0x2aa691('0x5a')]=qs[_0x2aa691('0x5a')](_0x459532[_0x2aa691('0x14e')][_0x2aa691('0x5a')])),_0x496956[_0x2aa691('0xa2')](_0x1cdfe4);})[_0x191dd7('0x19')](function(_0x4e0af9){if(_0x4e0af9)return _0x4e0af9?{'count':_0x4ded46,'rows':_0x4e0af9}:null;})[_0x191dd7('0x19')](respondWithResult(_0x45abb1,null))[_0x191dd7('0xe1')](handleError(_0x45abb1,null));},exports['addTeams']=function(_0x1673c4,_0x10354e){const _0x26bc43=_0x133359;return db[_0x26bc43('0x8e')][_0x26bc43('0x41')]({'where':{'id':_0x1673c4[_0x26bc43('0xf2')]['id']}})[_0x26bc43('0x19')](handleEntityNotFound(_0x10354e,null))[_0x26bc43('0x19')](function(_0x2c1aa6){const _0x3e1764=_0x26bc43;if(_0x2c1aa6){const _0x51df74=_0x2c1aa6[_0x3e1764('0xe3')]({'plain':!![]});return _0x2c1aa6[_0x3e1764('0x14b')](_0x1673c4['body'][_0x3e1764('0x126')],_[_0x3e1764('0xcd')](_0x1673c4['body'],[_0x3e1764('0x126'),'id'])||{})[_0x3e1764('0x19')](function(){const _0x3a5921=_0x3e1764;for(let _0x368e02=0x0;_0x368e02<_0x1673c4[_0x3a5921('0x102')]['ids'][_0x3a5921('0x12b')];_0x368e02++){let _0x500f4c=[];db['Team'][_0x3a5921('0x41')]({'where':{'id':_0x1673c4[_0x3a5921('0x102')][_0x3a5921('0x126')][_0x368e02]}})[_0x3a5921('0x19')](function(_0x152140){const _0x2ca380=_0x3a5921;return _0x500f4c[_0x2ca380('0x7a')](_0x152140[_0x2ca380('0x10')]()[_0x2ca380('0x19')](function(_0x28338e){const _0x103299=_0x2ca380;for(let _0x337fa1=0x0;_0x337fa1<_0x28338e['length'];_0x337fa1++){_0x28338e[_0x337fa1][_0x103299('0x100')](_0x103299('0xde'),_0x103299('0xdb'));}return _0x28338e;})),_0x500f4c['push'](_0x152140[_0x2ca380('0x116')]()[_0x2ca380('0x19')](function(_0x2c044b){const _0x3aa3e6=_0x2ca380;for(let _0x214c54=0x0;_0x214c54<_0x2c044b['length'];_0x214c54++){_0x2c044b[_0x214c54][_0x3aa3e6('0x100')](_0x3aa3e6('0xde'),_0x3aa3e6('0xf7'));}return _0x2c044b;})),_0x500f4c[_0x2ca380('0x7a')](_0x152140[_0x2ca380('0x9a')]()['then'](function(_0x133c37){const _0x1016cb=_0x2ca380;for(let _0xb63db=0x0;_0xb63db<_0x133c37[_0x1016cb('0x12b')];_0xb63db++){_0x133c37[_0xb63db][_0x1016cb('0x100')](_0x1016cb('0xde'),_0x1016cb('0x20'));}return _0x133c37;})),_0x500f4c[_0x2ca380('0x7a')](_0x152140[_0x2ca380('0x136')]()['then'](function(_0x545b1e){const _0x39cdff=_0x2ca380;for(let _0x19530f=0x0;_0x19530f<_0x545b1e[_0x39cdff('0x12b')];_0x19530f++){_0x545b1e[_0x19530f]['setDataValue']('channel',_0x39cdff('0x9'));}return _0x545b1e;})),_0x500f4c[_0x2ca380('0x7a')](_0x152140[_0x2ca380('0x8b')]()[_0x2ca380('0x19')](function(_0x5b9fbe){const _0x33185b=_0x2ca380;for(let _0x1350eb=0x0;_0x1350eb<_0x5b9fbe[_0x33185b('0x12b')];_0x1350eb++){_0x5b9fbe[_0x1350eb][_0x33185b('0x100')](_0x33185b('0xde'),_0x33185b('0x13'));}return _0x5b9fbe;})),_0x500f4c[_0x2ca380('0x7a')](_0x152140['getFaxQueues']()[_0x2ca380('0x19')](function(_0x1f81dc){const _0x588424=_0x2ca380;for(let _0xe2ebb9=0x0;_0xe2ebb9<_0x1f81dc[_0x588424('0x12b')];_0xe2ebb9++){_0x1f81dc[_0xe2ebb9][_0x588424('0x100')]('channel',_0x588424('0x5f'));}return _0x1f81dc;})),_0x500f4c[_0x2ca380('0x7a')](_0x152140['getOpenchannelQueues']()[_0x2ca380('0x19')](function(_0x206f02){const _0x3f5889=_0x2ca380;for(let _0x5eb0cb=0x0;_0x5eb0cb<_0x206f02[_0x3f5889('0x12b')];_0x5eb0cb++){_0x206f02[_0x5eb0cb][_0x3f5889('0x100')](_0x3f5889('0xde'),_0x3f5889('0x36'));}return _0x206f02;})),Promise[_0x2ca380('0x3a')](_0x500f4c);})[_0x3a5921('0x19')](function(_0xd56fcb){const _0x262784=_0x3a5921,_0x213c78=_[_0x262784('0x119')](_0xd56fcb);return _0x500f4c=[],db[_0x262784('0xf')]['transaction'](function(_0x26a170){const _0x400c14=_0x262784;for(let _0x12e7ae=0x0;_0x12e7ae<_0x213c78[_0x400c14('0x12b')];_0x12e7ae++){_0x500f4c['push'](_0x213c78[_0x12e7ae][_0x400c14('0x73')](_0x51df74['id']),{'transaction':_0x26a170});}return Promise[_0x400c14('0x3a')](_0x500f4c)[_0x400c14('0x19')](function(){const _0x83fd1=_0x400c14;if(_0x51df74['online'])return Promise['each'](_[_0x83fd1('0xc6')](_0x213c78,function(_0x2f25d7){const _0x8d1697=_0x83fd1;return _0x2f25d7['getDataValue'](_0x8d1697('0xde'))===_0x8d1697('0xdb');}),function(_0x586c90){const _0x5a2930=_0x83fd1;return db[_0x5a2930('0x44')][_0x5a2930('0x88')]({'membername':_0x51df74[_0x5a2930('0xca')],'UserId':_0x51df74['id'],'queue_name':_0x586c90[_0x5a2930('0xca')],'VoiceQueueId':_0x586c90['id'],'interface':_[_0x5a2930('0xf3')](_0x51df74[_0x5a2930('0xfb')])?util['format'](_0x5a2930('0x118'),_0x51df74[_0x5a2930('0xca')]):_0x51df74['interface'],'paused':_0x51df74[_0x5a2930('0xd8')]||![],'penalty':_0x51df74[_0x5a2930('0x7f')]},{'transaction':_0x26a170});});else return;})[_0x400c14('0x19')](function(){const _0x5a8205=_0x400c14;for(let _0x563612=0x0;_0x563612<_0x213c78[_0x5a8205('0x12b')];_0x563612++){const _0x198173=_0x213c78[_0x563612][_0x5a8205('0x12f')]('channel'),_0x2973cc=_0x198173+'QueueId';socket[_0x5a8205('0x6')](_0x5a8205('0x106')+_0x198173+'Queue:save',{'UserId':_0x51df74['id'],[_0x2973cc]:_0x213c78[_0x563612]['id']});}});});});}});}})[_0x26bc43('0x19')](respondWithStatusCode(_0x10354e,null))[_0x26bc43('0xe1')](handleError(_0x10354e,null));},exports['removeTeams']=function(_0x30ee7e,_0x191f0a){const _0x458032=_0x133359;return db[_0x458032('0x8e')][_0x458032('0x41')]({'where':{'id':_0x30ee7e[_0x458032('0xf2')]['id']}})[_0x458032('0x19')](handleEntityNotFound(_0x191f0a,null))[_0x458032('0x19')](function(_0x2e12fa){const _0x277a5f=_0x458032;if(_0x2e12fa){const _0x5b87c1=_0x2e12fa['get']({'plain':!![]}),_0xb723ac=_0x30ee7e[_0x277a5f('0x14e')][_0x277a5f('0x126')];return _0x2e12fa['removeTeams'](_0xb723ac)[_0x277a5f('0x19')](function(){const _0x46b837=_0x277a5f;for(let _0x70688=0x0;_0x70688<_0xb723ac[_0x46b837('0x12b')];_0x70688++){let _0x166b79=[];db['Team'][_0x46b837('0x41')]({'where':{'id':_0xb723ac[_0x70688]}})[_0x46b837('0x19')](function(_0x53651c){const _0x409037=_0x46b837;return _0x166b79['push'](_0x53651c[_0x409037('0x10')]()[_0x409037('0x19')](function(_0x1777a8){const _0x29c4c9=_0x409037;for(let _0x56b76e=0x0;_0x56b76e<_0x1777a8[_0x29c4c9('0x12b')];_0x56b76e++){_0x1777a8[_0x56b76e][_0x29c4c9('0x100')](_0x29c4c9('0xde'),_0x29c4c9('0xdb'));}return _0x1777a8;})),_0x166b79[_0x409037('0x7a')](_0x53651c[_0x409037('0x116')]()[_0x409037('0x19')](function(_0x2b80fb){const _0x22b33f=_0x409037;for(let _0x3ce6ff=0x0;_0x3ce6ff<_0x2b80fb['length'];_0x3ce6ff++){_0x2b80fb[_0x3ce6ff]['setDataValue'](_0x22b33f('0xde'),_0x22b33f('0xf7'));}return _0x2b80fb;})),_0x166b79['push'](_0x53651c[_0x409037('0x9a')]()[_0x409037('0x19')](function(_0x5992e6){const _0x4398ca=_0x409037;for(let _0x109025=0x0;_0x109025<_0x5992e6[_0x4398ca('0x12b')];_0x109025++){_0x5992e6[_0x109025][_0x4398ca('0x100')](_0x4398ca('0xde'),_0x4398ca('0x20'));}return _0x5992e6;})),_0x166b79[_0x409037('0x7a')](_0x53651c['getSmsQueues']()[_0x409037('0x19')](function(_0x2f0ce3){const _0x379976=_0x409037;for(let _0x449740=0x0;_0x449740<_0x2f0ce3[_0x379976('0x12b')];_0x449740++){_0x2f0ce3[_0x449740][_0x379976('0x100')]('channel',_0x379976('0x9'));}return _0x2f0ce3;})),_0x166b79[_0x409037('0x7a')](_0x53651c[_0x409037('0x8b')]()['then'](function(_0x1e60c2){const _0x26e885=_0x409037;for(let _0x56c1b6=0x0;_0x56c1b6<_0x1e60c2[_0x26e885('0x12b')];_0x56c1b6++){_0x1e60c2[_0x56c1b6][_0x26e885('0x100')](_0x26e885('0xde'),_0x26e885('0x13'));}return _0x1e60c2;})),_0x166b79['push'](_0x53651c[_0x409037('0xbc')]()[_0x409037('0x19')](function(_0x50da7b){const _0x42b407=_0x409037;for(let _0x2a7bbf=0x0;_0x2a7bbf<_0x50da7b[_0x42b407('0x12b')];_0x2a7bbf++){_0x50da7b[_0x2a7bbf]['setDataValue'](_0x42b407('0xde'),_0x42b407('0x5f'));}return _0x50da7b;})),_0x166b79[_0x409037('0x7a')](_0x53651c[_0x409037('0x114')]()[_0x409037('0x19')](function(_0x2082d9){const _0x945119=_0x409037;for(let _0x53e41d=0x0;_0x53e41d<_0x2082d9[_0x945119('0x12b')];_0x53e41d++){_0x2082d9[_0x53e41d][_0x945119('0x100')](_0x945119('0xde'),'Openchannel');}return _0x2082d9;})),Promise[_0x409037('0x3a')](_0x166b79);})[_0x46b837('0x19')](function(_0x1d815e){const _0x164a70=_0x46b837,_0xbadcdd=_[_0x164a70('0x119')](_0x1d815e);return _0x166b79=[],db[_0x164a70('0xf')]['transaction'](function(_0x2128d2){const _0x39e78c=_0x164a70;for(let _0x362513=0x0;_0x362513<_0xbadcdd[_0x39e78c('0x12b')];_0x362513++){_0x166b79[_0x39e78c('0x7a')](_0xbadcdd[_0x362513]['removeAgent'](_0x5b87c1['id']),{'transaction':_0x2128d2});}return Promise[_0x39e78c('0x3a')](_0x166b79)[_0x39e78c('0x19')](function(){const _0x276b4d=_0x39e78c;if(_0x5b87c1[_0x276b4d('0xbd')])return Promise[_0x276b4d('0x11a')](_[_0x276b4d('0xc6')](_0xbadcdd,function(_0x223a80){const _0x5049ef=_0x276b4d;return _0x223a80[_0x5049ef('0x12f')](_0x5049ef('0xde'))==='Voice';}),function(_0x4b9f90){const _0x298160=_0x276b4d;return db['UserVoiceQueueRt'][_0x298160('0xcc')]({'where':{'VoiceQueueId':_0x4b9f90['id'],'UserId':_0x5b87c1['id']},'transaction':_0x2128d2});});else return;})[_0x39e78c('0x19')](function(){const _0x1d1a0d=_0x39e78c;for(let _0x33817f=0x0;_0x33817f<_0xbadcdd[_0x1d1a0d('0x12b')];_0x33817f++){const _0x3fbc07=_0xbadcdd[_0x33817f][_0x1d1a0d('0x12f')](_0x1d1a0d('0xde')),_0x8c61bf=_0x3fbc07+_0x1d1a0d('0x149');socket['emit'](_0x1d1a0d('0x106')+_0x3fbc07+_0x1d1a0d('0xa8'),{'UserId':_0x5b87c1['id'],[_0x8c61bf]:_0xbadcdd[_0x33817f]['id']});}});});});}});}})[_0x458032('0x19')](respondWithStatusCode(_0x191f0a,null))[_0x458032('0xe1')](handleError(_0x191f0a,null));},exports['getLists']=function(_0x6b36ac,_0x4ac214){const _0x3430db=_0x133359;let _0x3515b0={};const _0x2c6061={};let _0x551386,_0x11c0ef;return db[_0x3430db('0x8e')][_0x3430db('0x41')]({'where':{'id':_0x6b36ac[_0x3430db('0xf2')]['id']}})['then'](handleEntityNotFound(_0x4ac214,null))[_0x3430db('0x19')](function(_0x30465b){const _0x2acd92=_0x3430db;if(_0x30465b)return _0x551386=_0x30465b,_0x2c6061['model']=_['keys'](db[_0x2acd92('0x64')][_0x2acd92('0x7e')]),_0x2c6061['query']=_[_0x2acd92('0x134')](_0x6b36ac[_0x2acd92('0x14e')]),_0x2c6061[_0x2acd92('0x45')]=_[_0x2acd92('0x80')](_0x2c6061[_0x2acd92('0x101')],_0x2c6061[_0x2acd92('0x14e')]),_0x3515b0[_0x2acd92('0x13b')]=_[_0x2acd92('0x80')](_0x2c6061[_0x2acd92('0x101')],qs[_0x2acd92('0x96')](_0x6b36ac['query'][_0x2acd92('0x96')])),_0x3515b0[_0x2acd92('0x13b')]=_0x3515b0[_0x2acd92('0x13b')]['length']?_0x3515b0[_0x2acd92('0x13b')]:_0x2c6061[_0x2acd92('0x101')],_0x3515b0[_0x2acd92('0x123')]=qs[_0x2acd92('0x85')](_0x6b36ac[_0x2acd92('0x14e')][_0x2acd92('0x85')]),_0x3515b0['where']=qs[_0x2acd92('0x45')](_[_0x2acd92('0x61')](_0x6b36ac['query'],_0x2c6061[_0x2acd92('0x45')])),_0x6b36ac[_0x2acd92('0x14e')][_0x2acd92('0xc6')]&&(_0x3515b0[_0x2acd92('0x151')]=_['merge'](_0x3515b0[_0x2acd92('0x151')],{[Op['or']]:_[_0x2acd92('0xe4')](_0x3515b0[_0x2acd92('0x13b')],function(_0x1be1da){const _0x299882=_0x2acd92,_0x1cc5a8={};return _0x1cc5a8[_0x1be1da]={[Op[_0x299882('0xc9')]]:'%'+_0x6b36ac[_0x299882('0x14e')][_0x299882('0xc6')]+'%'},_0x1cc5a8;})})),_0x3515b0=_[_0x2acd92('0x81')]({},_0x3515b0,_0x6b36ac[_0x2acd92('0x91')]),_0x551386['getLists'](_0x3515b0);})[_0x3430db('0x19')](function(_0x435cbe){const _0x2b9dcd=_0x3430db;if(_0x435cbe)return _0x11c0ef=_0x435cbe[_0x2b9dcd('0x12b')],typeof _0x6b36ac['query'][_0x2b9dcd('0x8c')]===_0x2b9dcd('0xbe')&&(_0x3515b0['limit']=qs[_0x2b9dcd('0x6a')](_0x6b36ac[_0x2b9dcd('0x14e')][_0x2b9dcd('0x6a')]),_0x3515b0['offset']=qs[_0x2b9dcd('0x5a')](_0x6b36ac['query'][_0x2b9dcd('0x5a')])),_0x551386[_0x2b9dcd('0x5e')](_0x3515b0);})[_0x3430db('0x19')](function(_0x5cf11c){if(_0x5cf11c)return _0x5cf11c?{'count':_0x11c0ef,'rows':_0x5cf11c}:null;})['then'](respondWithResult(_0x4ac214,null))[_0x3430db('0xe1')](handleError(_0x4ac214,null));},exports[_0x133359('0xed')]=function(_0x261470,_0x3f30d5){const _0x1fe90c=_0x133359;let _0x56cf24={};const _0x1c93b8={};let _0xb4d8e8;return db[_0x1fe90c('0x8e')][_0x1fe90c('0x41')]({'where':{'id':_0x261470[_0x1fe90c('0xf2')]['id']}})[_0x1fe90c('0x19')](handleEntityNotFound(_0x3f30d5,null))[_0x1fe90c('0x19')](function(_0x1b3116){const _0x21d6ae=_0x1fe90c;if(_0x1b3116)return _0xb4d8e8=_0x1b3116,_0x1c93b8['model']=_[_0x21d6ae('0x134')](db[_0x21d6ae('0x8e')][_0x21d6ae('0x7e')]),_0x1c93b8[_0x21d6ae('0x14e')]=_[_0x21d6ae('0x134')](_0x261470['query']),_0x1c93b8['filters']=_[_0x21d6ae('0x80')](_0x1c93b8[_0x21d6ae('0x101')],_0x1c93b8[_0x21d6ae('0x14e')]),_0x56cf24[_0x21d6ae('0x13b')]=_[_0x21d6ae('0x80')](_0x1c93b8[_0x21d6ae('0x101')],qs[_0x21d6ae('0x96')](_0x261470[_0x21d6ae('0x14e')]['fields'])),_0x56cf24[_0x21d6ae('0x13b')]=_0x56cf24[_0x21d6ae('0x13b')][_0x21d6ae('0x12b')]?_0x56cf24['attributes']:_0x1c93b8['model'],_0x56cf24[_0x21d6ae('0x123')]=qs[_0x21d6ae('0x85')](_0x261470[_0x21d6ae('0x14e')]['sort']),_0x56cf24[_0x21d6ae('0x151')]=qs[_0x21d6ae('0x45')](_[_0x21d6ae('0x61')](_0x261470[_0x21d6ae('0x14e')],_0x1c93b8['filters'])),_0x261470['query']['filter']&&(_0x56cf24[_0x21d6ae('0x151')]=_[_0x21d6ae('0x81')](_0x56cf24['where'],{[Op['or']]:_[_0x21d6ae('0xe4')](_0x56cf24[_0x21d6ae('0x13b')],function(_0x12ac9e){const _0x4ee6db=_0x21d6ae,_0x15eeb7={};return _0x15eeb7[_0x12ac9e]={[Op[_0x4ee6db('0xc9')]]:'%'+_0x261470['query'][_0x4ee6db('0xc6')]+'%'},_0x15eeb7;})})),_0x56cf24['model']=db['User'],_0x56cf24['as']=_0x21d6ae('0xf9'),_0x56cf24=_['merge']({},_0x56cf24,_0x261470[_0x21d6ae('0x91')]),_0xb4d8e8['getVoiceQueues']({'include':[_0x56cf24]});})['then'](function(_0x159cfd){const _0xc3a0a8=_0x1fe90c;if(_0x159cfd){let _0x41c5c2={};const _0x39fa3d=[];for(let _0x50a973=0x0;_0x50a973<_0x159cfd[_0xc3a0a8('0x12b')];_0x50a973+=0x1){for(let _0x30892b=0x0,_0x4fa022;_0x30892b<_0x159cfd[_0x50a973]['Agents'][_0xc3a0a8('0x12b')];_0x30892b+=0x1){_0x4fa022=_0x159cfd[_0x50a973][_0xc3a0a8('0xf9')][_0x30892b]['get']({'plain':!![]}),_0x41c5c2[_0x4fa022['id']]=_0x4fa022;}}_0x41c5c2=_[_0xc3a0a8('0xa3')](_0x41c5c2);for(let _0x8f2f4=qs['offset'](_0x261470[_0xc3a0a8('0x14e')][_0xc3a0a8('0x5a')]);_0x8f2f4<_0x41c5c2[_0xc3a0a8('0x12b')]&&_0x39fa3d['length']=_0x58ad08?(_0x5a9e1f=_0x58ad08,_0x2c1415=0xc8):_0x2c1415=0xce,_0x4fdfa8[_0x5e7a4e('0xef')](_0x2c1415),_0x4fdfa8[_0x5e7a4e('0x15b')]('Content-Range',_0x59a3aa+'-'+_0x5a9e1f+'/'+_0x58ad08)['json'](_0x282b39);}return null;};}function saveUpdates(_0x27efef){return function(_0x586cdc){const _0x47c747=a648_0x12e5;if(_0x586cdc)return _0x586cdc[_0x47c747('0x126')](_0x27efef)[_0x47c747('0x145')](function(_0x6bb67){return _0x6bb67;});return null;};}function removeEntity(_0x1e542f){return function(_0x481ec1){const _0x5df09b=a648_0x12e5;if(_0x481ec1)return _0x481ec1[_0x5df09b('0xe4')]()[_0x5df09b('0x145')](function(){const _0x31c070=_0x5df09b,_0x37f99f=_0x481ec1[_0x31c070('0x44')]({'plain':!![]});if(_0x37f99f[_0x31c070('0xa8')]===_0x31c070('0x15e'))return;const _0x3c84ca=[{'name':'Users','value':_0x31c070('0x8f'),'ignore':!![]},{'name':_0x31c070('0xb0'),'value':_0x31c070('0x26'),'ignore':![]},{'name':_0x31c070('0xb3'),'value':'telephone','ignore':![]}],_0x5c1c99=_(_0x3c84ca)[_0x31c070('0xb9')](_0x31c070('0x102'))[_0x31c070('0x117')](_0x31c070('0x82'))[_0x31c070('0x82')]();if(_['includes'](_0x5c1c99,_0x37f99f[_0x31c070('0xa8')]))return;const _0x8e4022=_[_0x31c070('0x5a')](_0x3c84ca,[_0x31c070('0x82'),_0x37f99f[_0x31c070('0xa8')]])[_0x31c070('0x12')];return db['UserProfileResource']['destroy']({'where':{'type':_0x8e4022,'resourceId':_0x37f99f['id']}})[_0x31c070('0x145')](function(){return _0x481ec1;});})[_0x5df09b('0x145')](function(){_0x1e542f['status'](0xcc)['end']();});};}function handleEntityNotFound(_0xd78e24){return function(_0x5cc779){const _0x61af9=a648_0x12e5;return!_0x5cc779&&_0xd78e24[_0x61af9('0x9e')](0x194),_0x5cc779;};}function handleError(_0x240097,_0x1a2c44){return _0x1a2c44=_0x1a2c44||0x1f4,function(_0xf2ecab){const _0x3fbbef=a648_0x12e5;logger[_0x3fbbef('0x61')](_0xf2ecab[_0x3fbbef('0x100')]),_0xf2ecab['name']&&delete _0xf2ecab[_0x3fbbef('0x12')],_0x240097['status'](_0x1a2c44)[_0x3fbbef('0x1d')](_0xf2ecab);};}function validateUser(_0x37c211){return new Promise(function(_0x282f8f,_0x5bd57d){const _0x17acbe=a648_0x12e5;if(_0x37c211['internal'])return _0x282f8f(_0x37c211);return db[_0x17acbe('0x2b')][_0x17acbe('0x3e')](0x1)[_0x17acbe('0x145')](function(_0x2f760a){const _0x4f3e56=_0x17acbe;if(_0x2f760a[_0x4f3e56('0x11f')])authService[_0x4f3e56('0x6e')](_0x37c211[_0x4f3e56('0xb7')]);db[_0x4f3e56('0xf8')][_0x4f3e56('0xd1')](_0x4f3e56('0x136'))[_0x4f3e56('0x145')](function(_0x121249){const _0x12893e=_0x4f3e56;if(_[_0x12893e('0xe6')](_0x121249)){_0x37c211['internal']=_0x2f760a[_0x12893e('0x3')]||0x1;return;}if(_[_0x12893e('0xe6')](_0x2f760a[_0x12893e('0x3')])||_0x2f760a['min_internal']===_0x121249){_0x37c211[_0x12893e('0x136')]=_0x121249+0x1;return;}if(_0x2f760a[_0x12893e('0x3')]>_0x121249){_0x37c211[_0x12893e('0x136')]=_0x2f760a[_0x12893e('0x3')];return;}return db['sequelize'][_0x12893e('0x11')](_0x12893e('0xd7'),{'type':db[_0x12893e('0x109')][_0x12893e('0x4f')]['SELECT']})[_0x12893e('0x145')](function(_0x25ca80){const _0x28817e=_0x12893e;if(_0x25ca80&&_0x25ca80[_0x28817e('0xdc')])for(let _0x8180fc=0x0,_0x2aec07=_0x25ca80[_0x28817e('0xdc')];_0x8180fc<_0x2aec07&&_['isNil'](_0x37c211[_0x28817e('0x136')]);_0x8180fc++){if(_0x2f760a[_0x28817e('0x3')]<=_0x25ca80[_0x8180fc][_0x28817e('0x28')])_0x37c211[_0x28817e('0x136')]=_0x25ca80[_0x8180fc][_0x28817e('0x28')];else _0x2f760a['min_internal']>_0x25ca80[_0x8180fc][_0x28817e('0x28')]&&_0x2f760a[_0x28817e('0x3')]<=_0x25ca80[_0x8180fc]['to']&&(_0x37c211[_0x28817e('0x136')]=_0x2f760a['min_internal']);}return _['isNil'](_0x37c211['internal'])&&(_0x37c211['internal']=_0x121249+0x1),_0x282f8f(_0x37c211);});});})[_0x17acbe('0x128')](function(_0xf67f53){_0x5bd57d(_0xf67f53);});});}function updateUser(_0x56cb09){return new Promise(function(_0x50a28b,_0x46858b){const _0x5ad6c5=a648_0x12e5;try{_0x56cb09[_0x5ad6c5('0xc7')]&&(_0x56cb09[_0x5ad6c5('0x11c')]=_0x56cb09['internal'],_0x56cb09['VoiceMail']={'mailbox':_0x56cb09[_0x5ad6c5('0x136')],'password':_0x56cb09[_0x5ad6c5('0xb7')],'fullname':_0x56cb09['fullname'],'email':_0x56cb09[_0x5ad6c5('0x76')]});if(_0x56cb09['role']===_0x5ad6c5('0x26')){if(!_0x56cb09[_0x5ad6c5('0x5b')])_0x56cb09[_0x5ad6c5('0x5b')]=[_0x5ad6c5('0x133'),_0x5ad6c5('0xc9'),_0x5ad6c5('0x90'),'113',_0x5ad6c5('0xb1'),_0x5ad6c5('0x2c'),_0x5ad6c5('0xaa'),_0x5ad6c5('0xad'),_0x5ad6c5('0x69'),'108',_0x5ad6c5('0x161'),_0x5ad6c5('0x70'),_0x5ad6c5('0xee'),_0x5ad6c5('0x51')];}_0x50a28b(_0x56cb09);}catch(_0x35e32d){_0x46858b(_0x35e32d);}});}exports[_0x2f6783('0x14a')]=function(_0xf50011,_0x4aaf65){const _0x237d7b=_0x2f6783;let _0x23d004={};const _0x4f8573={},_0x24492f={'count':0x0,'rows':[]},_0x1ec9b0=_['map'](db['User']['rawAttributes'],function(_0x48b4f5){const _0x2ce90c=a648_0x12e5;return{'name':_0x48b4f5[_0x2ce90c('0x155')],'type':_0x48b4f5['type'][_0x2ce90c('0x7d')]};});_0x4f8573[_0x237d7b('0x4b')]=_[_0x237d7b('0x7')](_[_0x237d7b('0x117')](_0x1ec9b0,_0x237d7b('0x12')),[_0x237d7b('0xb7'),_0x237d7b('0x103')]),_0x4f8573[_0x237d7b('0x11')]=_[_0x237d7b('0x9a')](_0xf50011['query']),_0x4f8573[_0x237d7b('0x25')]=_[_0x237d7b('0x63')](_0x4f8573[_0x237d7b('0x4b')],_0x4f8573[_0x237d7b('0x11')]),_0x23d004['attributes']=_['intersection'](_0x4f8573[_0x237d7b('0x4b')],qs[_0x237d7b('0x2d')](_0xf50011[_0x237d7b('0x11')][_0x237d7b('0x2d')])),_0x23d004[_0x237d7b('0xdf')]=_0x23d004['attributes'][_0x237d7b('0xdc')]?_0x23d004['attributes']:_0x4f8573['model'];typeof _0xf50011[_0x237d7b('0x11')][_0x237d7b('0x13a')]==='undefined'&&(_0x23d004[_0x237d7b('0x7e')]=qs[_0x237d7b('0x7e')](_0xf50011['query'][_0x237d7b('0x7e')]),_0x23d004['offset']=qs[_0x237d7b('0x55')](_0xf50011[_0x237d7b('0x11')]['offset']));_0x23d004[_0x237d7b('0xed')]=qs[_0x237d7b('0x120')](_0xf50011[_0x237d7b('0x11')][_0x237d7b('0x120')]),_0x23d004['where']=qs['filters'](_[_0x237d7b('0xa0')](_0xf50011[_0x237d7b('0x11')],_0x4f8573['filters']),_0x1ec9b0);_0xf50011[_0x237d7b('0x11')][_0x237d7b('0xb9')]&&(_0x23d004[_0x237d7b('0x46')]=_[_0x237d7b('0x15')](_0x23d004[_0x237d7b('0x46')],{[Op['or']]:_[_0x237d7b('0x117')](_0x1ec9b0,function(_0x15e310){const _0xb78c0e=_0x237d7b;if(_0x15e310[_0xb78c0e('0x13b')]!==_0xb78c0e('0x30'))return db[_0xb78c0e('0x109')][_0xb78c0e('0x46')](db['sequelize']['fn'](_0xb78c0e('0x4'),db['sequelize'][_0xb78c0e('0x77')](_0x15e310[_0xb78c0e('0x12')])),{'$like':db[_0xb78c0e('0x109')]['fn'](_0xb78c0e('0x4'),'%'+_0xf50011[_0xb78c0e('0x11')][_0xb78c0e('0xb9')]+'%')});})}));_0x23d004=_[_0x237d7b('0x15')]({},_0x23d004,_0xf50011['options']);const _0x56c248={'where':_0x23d004[_0x237d7b('0x46')]};return db['User'][_0x237d7b('0xb')](_0x56c248)[_0x237d7b('0x145')](function(_0x280fd6){const _0x3980a6=_0x237d7b;return _0x24492f[_0x3980a6('0xb')]=_0x280fd6,typeof _0xf50011[_0x3980a6('0x11')][_0x3980a6('0x29')]!==_0x3980a6('0x41')&&(_0x23d004[_0x3980a6('0x118')]=[{'all':!![]}]),db[_0x3980a6('0xf8')][_0x3980a6('0x10e')](_0x23d004);})['then'](function(_0x36bad6){return _0x24492f['rows']=_0x36bad6,_0x24492f;})[_0x237d7b('0x145')](respondWithFilteredResult(_0x4aaf65,_0x23d004))['catch'](handleError(_0x4aaf65,null));},exports[_0x2f6783('0x83')]=function(_0x593262,_0xcf7973){const _0x5413f9=_0x2f6783;let _0x5bacc7={'raw':![],'where':{'id':_0x593262[_0x5413f9('0xf4')]['id']}};const _0x27ddc7={};return _0x27ddc7[_0x5413f9('0x4b')]=_['differenceBy'](_[_0x5413f9('0x9a')](db['User']['rawAttributes']),[_0x5413f9('0xb7'),'salt']),_0x27ddc7['query']=_[_0x5413f9('0x9a')](_0x593262[_0x5413f9('0x11')]),_0x27ddc7[_0x5413f9('0x25')]=_[_0x5413f9('0x63')](_0x27ddc7['model'],_0x27ddc7[_0x5413f9('0x11')]),_0x5bacc7[_0x5413f9('0xdf')]=_['intersection'](_0x27ddc7['model'],qs['fields'](_0x593262['query'][_0x5413f9('0x2d')])),_0x5bacc7['attributes']=_0x5bacc7[_0x5413f9('0xdf')][_0x5413f9('0xdc')]?_0x5bacc7['attributes']:_0x27ddc7[_0x5413f9('0x4b')],_0x593262['query']['includeAll']&&(_0x5bacc7[_0x5413f9('0x118')]=[{'all':!![]}]),_0x5bacc7=_[_0x5413f9('0x15')]({},_0x5bacc7,_0x593262[_0x5413f9('0x9')]),db['User'][_0x5413f9('0xd0')](_0x5bacc7)[_0x5413f9('0x145')](handleEntityNotFound(_0xcf7973,null))[_0x5413f9('0x145')](respondWithResult(_0xcf7973,null))[_0x5413f9('0x128')](handleError(_0xcf7973,null));},exports[_0x2f6783('0x10d')]=function(_0x3cbc62,_0x55473b){const _0x15575d=_0x2f6783,_0x561793=_0x3cbc62[_0x15575d('0x49')];let _0x2d948b=[];if(_0x3cbc62[_0x15575d('0x8f')][_0x15575d('0xa8')]==='agent')throw new Error(_0x15575d('0x5f'));if(_[_0x15575d('0x98')](_0x561793,[_0x15575d('0xa8'),'user'])&&_0x3cbc62[_0x15575d('0x8f')][_0x15575d('0xa8')]!==_0x15575d('0x15e'))throw new Error(_0x15575d('0x53'));if(_[_0x15575d('0x98')](_0x561793,[_0x15575d('0xa8'),_0x15575d('0x15e')])&&_0x3cbc62[_0x15575d('0x8f')][_0x15575d('0xa8')]!==_0x15575d('0x15e'))throw new Error(_0x15575d('0xf3'));return licenseUtil['checkUserLimits'](_0x561793)['then'](function(){return validateUser(_0x561793[0x0]);})[_0x15575d('0x145')](function(){const _0x43fc4e=_0x15575d;for(let _0x2acee2=0x1;_0x2acee2<_0x561793['length'];_0x2acee2++){const _0x49addc=_0x561793[_0x2acee2-0x1][_0x43fc4e('0x136')];if(!_0x561793[_0x2acee2][_0x43fc4e('0x136')])_0x561793[_0x2acee2]['internal']=_0x49addc+0x1;_0x2d948b[_0x43fc4e('0xc6')](validateUser(_0x561793[_0x2acee2]));}return Promise[_0x43fc4e('0x7b')](_0x2d948b);})[_0x15575d('0x145')](function(){const _0xd9b84a=_0x15575d;_0x2d948b=[];for(let _0x4435aa=0x0;_0x4435aa<_0x561793[_0xd9b84a('0xdc')];_0x4435aa++){_0x2d948b['push'](updateUser(_0x561793[_0x4435aa]));}return Promise[_0xd9b84a('0x7b')](_0x2d948b);})['then'](function(){return _0x2d948b=_0x561793['map'](_0x48afb2=>{const _0x4781df=a648_0x12e5;return db[_0x4781df('0xf8')][_0x4781df('0x16')](_0x48afb2,{'include':[{'model':db[_0x4781df('0x7c')],'as':'VoiceMail'}]})[_0x4781df('0x145')](function(_0x398508){return _0x48afb2['id']=_0x398508['id'],_0x48afb2;});}),Promise['all'](_0x2d948b);})[_0x15575d('0x145')](function(_0x1269d5){const _0x1da3f3=_0x15575d;if(_0x3cbc62[_0x1da3f3('0x49')][_0x1da3f3('0xa8')]===_0x1da3f3('0x8f'))return _0x1269d5;if(_0x3cbc62['user'][_0x1da3f3('0xa8')]!=='user')return _0x1269d5;const _0x1b1123=_['some'](_0x1269d5,function(_0x543cb6){const _0x5c1c59=_0x1da3f3;return _0x543cb6[_0x5c1c59('0xa8')]===_0x5c1c59('0x26')||_0x543cb6['role']===_0x5c1c59('0x139');});if(!_0x1b1123)return _0x1269d5;return db[_0x1da3f3('0x6f')][_0x1da3f3('0x10e')]({'where':{'name':{[Op['or']]:['Agents','Telephones']},'userProfileId':_0x3cbc62['user'][_0x1da3f3('0x142')]},'raw':!![]})[_0x1da3f3('0x145')](function(_0x2b13c0){const _0x4d102d=_0x1da3f3;if(_['isEmpty'](_0x2b13c0)||!_[_0x4d102d('0x98')](_0x2b13c0,[_0x4d102d('0x64'),0x0]))return _0x1269d5;_0x2d948b=[];const _0x490dc7=_(_0x2b13c0)[_0x4d102d('0x117')](function(_0x5dda60){const _0x1f730f=_0x4d102d;if(_0x5dda60[_0x1f730f('0x64')]===0x1)return;return _0x5dda60[_0x1f730f('0x12')]===_0x1f730f('0xb0')?_0x1f730f('0x26'):_0x1f730f('0x139');})[_0x4d102d('0x79')]()[_0x4d102d('0x82')]();for(let _0x11cd26=0x0;_0x11cd26<_0x1269d5['length'];_0x11cd26++){if(!_[_0x4d102d('0x12e')](_0x490dc7,_0x1269d5[_0x11cd26][_0x4d102d('0xa8')]))return;const _0x2a8da1=_0x1269d5[_0x11cd26][_0x4d102d('0xa8')]===_0x4d102d('0x26')?_0x4d102d('0xb0'):_0x4d102d('0xb3');_0x2d948b[_0x4d102d('0xc6')](db['UserProfileResource'][_0x4d102d('0x16')]({'name':_0x1269d5[_0x11cd26][_0x4d102d('0x12')],'resourceId':_0x1269d5[_0x11cd26]['id'],'type':_0x2a8da1,'sectionId':_['find'](_0x2b13c0,['name',_0x2a8da1])['id']},{}));}return Promise[_0x4d102d('0x7b')](_0x2d948b);});})[_0x15575d('0x145')](respondWithResult(_0x55473b,0xc9))[_0x15575d('0x128')](handleError(_0x55473b,null));},exports['update']=function(_0x96cf54,_0x3766dd){const _0x315106=_0x2f6783;return _0x96cf54['body']['id']&&delete _0x96cf54[_0x315106('0x49')]['id'],delete _0x96cf54[_0x315106('0x49')][_0x315106('0xa8')],db[_0x315106('0xf8')][_0x315106('0xd0')]({'where':{'id':_0x96cf54['params']['id']}})[_0x315106('0x145')](handleEntityNotFound(_0x3766dd,null))[_0x315106('0x145')](saveUpdates(_0x96cf54[_0x315106('0x49')],null))[_0x315106('0x145')](respondWithResult(_0x3766dd,null))[_0x315106('0x128')](handleError(_0x3766dd,null));},exports[_0x2f6783('0x1')]=function(_0x3b0050,_0x41e5d7){const _0x3c5afb=_0x2f6783;return db[_0x3c5afb('0xf8')][_0x3c5afb('0x1')]()[_0x3c5afb('0x145')](respondWithResult(_0x41e5d7,null))['catch'](handleError(_0x41e5d7,null));},exports[_0x2f6783('0xd2')]=function(_0x476dd1,_0x4b8985){const _0x4c307b=_0x2f6783;return db[_0x4c307b('0xf8')][_0x4c307b('0xd0')]({'where':{'id':_0x476dd1[_0x4c307b('0xf4')]['id']}})[_0x4c307b('0x145')](handleEntityNotFound(_0x4b8985,null))[_0x4c307b('0x145')](function(_0x938524){const _0x28e795=_0x4c307b;if(_0x938524)return _0x938524[_0x28e795('0xd2')](_0x476dd1[_0x28e795('0x49')]['ids'],{'through':_[_0x28e795('0x93')](_0x476dd1[_0x28e795('0x49')],[_0x28e795('0x169'),'id'])});})[_0x4c307b('0x145')](respondWithResult(_0x4b8985,null))[_0x4c307b('0x128')](handleError(_0x4b8985,null));},exports[_0x2f6783('0x16')]=function(_0x30f61b,_0x49d505){const _0x560121=_0x2f6783;if(_0x30f61b['user'][_0x560121('0xa8')]===_0x560121('0x26'))throw new Error(_0x560121('0x5f'));if(_0x30f61b[_0x560121('0x49')][_0x560121('0xa8')]==='user'&&_0x30f61b[_0x560121('0x8f')]['role']!==_0x560121('0x15e'))throw new Error(_0x560121('0x53'));if(_0x30f61b[_0x560121('0x49')][_0x560121('0xa8')]==='admin'&&_0x30f61b[_0x560121('0x8f')][_0x560121('0xa8')]!=='admin')throw new Error(_0x560121('0xb6'));return licenseUtil[_0x560121('0xbc')]([_0x30f61b[_0x560121('0x49')]])[_0x560121('0x145')](function(){const _0x5245c9=_0x560121;return validateUser(_0x30f61b[_0x5245c9('0x49')]);})['then'](function(_0x339b1a){const _0x4b300b=_0x560121;return updateUser(_0x339b1a)[_0x4b300b('0x145')](function(_0x45d461){const _0x274f08=_0x4b300b;return _0x45d461[_0x274f08('0xa8')]===_0x274f08('0x15e')&&(_0x45d461['settingsEnabled']=_0x30f61b[_0x274f08('0x8f')][_0x274f08('0xbd')],delete _0x45d461[_0x274f08('0x142')]),_0x45d461;});})[_0x560121('0x145')](function(_0xc9e483){const _0x100139=_0x560121;return db[_0x100139('0xf8')][_0x100139('0x16')](_0xc9e483,{'include':[{'model':db[_0x100139('0x7c')],'as':_0x100139('0x7c')}]});})['then'](function(_0x2942b7){const _0x206190=_0x560121;if(_0x30f61b[_0x206190('0x49')][_0x206190('0xa8')]===_0x206190('0x8f'))return _0x2942b7;if(_0x30f61b['user'][_0x206190('0xa8')]!=='user')return _0x2942b7;return db[_0x206190('0x6f')][_0x206190('0xd0')]({'where':{'name':_0x2942b7['role']==='agent'?'Agents':_0x206190('0xb3'),'userProfileId':_0x30f61b[_0x206190('0x8f')][_0x206190('0x142')]},'raw':!![]})[_0x206190('0x145')](function(_0x3444ce){const _0x1c41ba=_0x206190;if(!_0x3444ce||_0x3444ce['autoAssociation']!=0x0)return _0x2942b7;return db[_0x1c41ba('0x153')][_0x1c41ba('0x16')]({'name':_0x2942b7[_0x1c41ba('0x12')],'resourceId':_0x2942b7['id'],'type':_0x3444ce[_0x1c41ba('0x12')],'sectionId':_0x3444ce['id']},{})[_0x1c41ba('0x145')](function(){return _0x2942b7;});})['catch'](function(_0x466155){const _0x13f56d=_0x206190;logger[_0x13f56d('0x61')](_0x13f56d('0x131'),_0x466155);throw _0x466155;});})[_0x560121('0x145')](respondWithResult(_0x49d505,0xc9))['catch'](handleError(_0x49d505,null));},exports[_0x2f6783('0x127')]=function(_0x66681f,_0x21e02d){const _0xdc3a8=_0x2f6783;if(_0x66681f[_0xdc3a8('0x49')]['id'])delete _0x66681f['body']['id'];return db['User'][_0xdc3a8('0xd0')]({'where':{'id':_0x66681f['params']['id']}})[_0xdc3a8('0x145')](function(_0x169bec){const _0x31536d=_0xdc3a8;if(!_0x169bec)return null;if(_0x169bec['id']===_0x66681f['user']['id']){if(!_0x66681f['body'][_0x31536d('0x156')]||!_0x66681f['body'][_0x31536d('0x24')])throw new db[(_0x31536d('0xa2'))][(_0x31536d('0xc5'))](_0x31536d('0x27'));if(!_0x169bec[_0x31536d('0xf5')](_0x66681f[_0x31536d('0x49')][_0x31536d('0x156')]))throw new db['Sequelize'][(_0x31536d('0xc5'))]('Wrong\x20credentials');if(_0x66681f[_0x31536d('0x49')][_0x31536d('0x156')]===_0x66681f[_0x31536d('0x49')]['newPassword'])throw new db[(_0x31536d('0xa2'))]['ValidationError'](_0x31536d('0x12b'));}else{if(_0x66681f[_0x31536d('0x8f')][_0x31536d('0xa8')]===_0x31536d('0x15e')){if(!_0x66681f['body'][_0x31536d('0x24')])throw new db[(_0x31536d('0xa2'))][(_0x31536d('0xc5'))]('Invalid\x20body\x20format.\x20Use\x20newPassword');}else{if(_0x66681f[_0x31536d('0x8f')][_0x31536d('0xa8')]===_0x31536d('0x8f')){if(!_0x66681f[_0x31536d('0x49')][_0x31536d('0x24')])throw new db['Sequelize']['ValidationError'](_0x31536d('0x58'));if(_0x169bec[_0x31536d('0xa8')]!==_0x31536d('0x26'))throw new db[(_0x31536d('0xa2'))][(_0x31536d('0xc5'))](_0x31536d('0x5f'));}else throw new db[(_0x31536d('0xa2'))]['ValidationError']('Unauthorized');}}return _0x169bec;})['then'](handleEntityNotFound(_0x21e02d,null))['then'](function(_0x23dd42){const _0x2b8e47=_0xdc3a8;return db[_0x2b8e47('0x2b')][_0x2b8e47('0xd0')]({'attributes':['id',_0x2b8e47('0x11f'),'enforcePasswordHistory',_0x2b8e47('0x42')]})[_0x2b8e47('0x145')](function(_0x18965c){const _0x3a219f=_0x2b8e47;if(_0x18965c[_0x3a219f('0x11f')])authService[_0x3a219f('0x6e')](_0x66681f[_0x3a219f('0x49')][_0x3a219f('0x24')]);if(!_0x18965c[_0x3a219f('0xe0')]||!_0x23dd42['previousPasswords'])return _0x23dd42;return authService[_0x3a219f('0x81')](_0x66681f[_0x3a219f('0x49')][_0x3a219f('0x24')],_0x23dd42[_0x3a219f('0x4c')],_0x18965c[_0x3a219f('0x42')]),_0x23dd42;})[_0x2b8e47('0x145')](saveUpdates({'password':_0x66681f['body']['newPassword'],'passwordResetAt':_0x66681f['user']['id']==_0x66681f['params']['id']?moment():null,'previousPasswords':authService[_0x2b8e47('0x50')](_0x66681f['body'][_0x2b8e47('0x24')],_0x23dd42[_0x2b8e47('0x4c')])},null));})['then'](respondWithResult(_0x21e02d,null))[_0xdc3a8('0x128')](handleError(_0x21e02d,null));},exports[_0x2f6783('0xf0')]=function(_0x34aa01,_0x33cd1f){const _0x286f5a=_0x2f6783,_0x137f69=_0x34aa01['body'][_0x286f5a('0x32')];return db['User'][_0x286f5a('0xd0')]({'where':{'id':_0x34aa01[_0x286f5a('0xf4')]['id']},'attributes':['id',_0x286f5a('0x12'),'role','online',_0x286f5a('0x1f'),'voicePause',_0x286f5a('0x12f')]})['then'](handleEntityNotFound(_0x33cd1f,null))[_0x286f5a('0x145')](function(_0x70de3c){const _0x248fc1=_0x286f5a;if(_0x70de3c){if(!utils[_0x248fc1('0x105')](_0x137f69))throw new db[(_0x248fc1('0xa2'))][(_0x248fc1('0xc5'))](_0x248fc1('0x11e'));return _0x70de3c['add'+_[_0x248fc1('0x2f')](_0x137f69[_0x248fc1('0xf1')]())+'Queues'](_0x34aa01['body'][_0x248fc1('0x169')],{'through':{'penalty':_0x34aa01[_0x248fc1('0x49')][_0x248fc1('0x144')]||0x0}})['then'](function(_0x9678c6){const _0x36422a=_0x248fc1;for(let _0x4ea8ef=0x0;_0x4ea8ef<_0x34aa01[_0x36422a('0x49')][_0x36422a('0x169')][_0x36422a('0xdc')];_0x4ea8ef+=0x1){const _0x351634={'UserId':_0x34aa01['params']['id']};_0x351634[_[_0x36422a('0x2f')](_0x137f69[_0x36422a('0xf1')]())+'QueueId']=_0x34aa01[_0x36422a('0x49')][_0x36422a('0x169')][_0x4ea8ef],socket[_0x36422a('0x116')](_0x36422a('0x8f')+_[_0x36422a('0x2f')](_0x137f69[_0x36422a('0xf1')]())+_0x36422a('0x146'),_0x351634);}return _0x9678c6;})[_0x248fc1('0x145')](function(){const _0x5b3e50=_0x248fc1;if(_0x137f69===_0x5b3e50('0x48'))return db[_0x5b3e50('0x39')][_0x5b3e50('0x10e')]({'where':{'id':_0x34aa01[_0x5b3e50('0x49')][_0x5b3e50('0x169')]||[]},'raw':!![],'attributes':['id','name']});})[_0x248fc1('0x145')](function(_0x4cd71d){const _0x5c0199=_0x248fc1,_0x51fd64=_0x70de3c['get']({'plain':!![]}),_0x52328e=[];if(_0x137f69===_0x5c0199('0x48')&&_0x51fd64['role']===_0x5c0199('0x26')&&_0x51fd64['online']){for(let _0x531df9=0x0;_0x531df9<_0x4cd71d[_0x5c0199('0xdc')];_0x531df9+=0x1){_0x52328e[_0x5c0199('0xc6')]({'membername':_0x51fd64['name'],'UserId':_0x51fd64['id'],'queue_name':_0x4cd71d[_0x531df9][_0x5c0199('0x12')],'VoiceQueueId':_0x4cd71d[_0x531df9]['id'],'interface':_['isNil'](_0x51fd64[_0x5c0199('0x12f')])?util[_0x5c0199('0x0')]('SIP/%s',_0x51fd64[_0x5c0199('0x12')]):_0x51fd64[_0x5c0199('0x12f')],'paused':_0x51fd64['voicePause']||![],'penalty':_0x34aa01[_0x5c0199('0x49')]['penalty']||0x0});}return Promise[_0x5c0199('0xc8')](_0x52328e,function(_0x2292d6){const _0x28620f=_0x5c0199;return db[_0x28620f('0xfd')][_0x28620f('0x91')](_0x2292d6);});}return _0x70de3c;});}})[_0x286f5a('0x145')](respondWithStatusCode(_0x33cd1f,null))['catch'](handleError(_0x33cd1f,null));},exports[_0x2f6783('0x164')]=function(_0x1937b0,_0x254976){const _0x213063=_0x2f6783;let _0x1140aa;return db[_0x213063('0xf8')]['findOne']({'where':{'id':_0x1937b0['params']['id']},'attributes':['id',_0x213063('0x12'),_0x213063('0xa8')]})[_0x213063('0x145')](handleEntityNotFound(_0x254976,null))[_0x213063('0x145')](function(_0x195f6a){const _0x466feb=_0x213063;if(_0x195f6a){_0x1140aa=_0x195f6a;if(!_0x1937b0[_0x466feb('0x11')]['channel']||!utils['isValidChannel'](_0x1937b0[_0x466feb('0x11')][_0x466feb('0x32')]))throw new db[(_0x466feb('0xa2'))][(_0x466feb('0xc5'))]('Unknown\x20channel');return _0x195f6a[_0x466feb('0xd8')+_[_0x466feb('0x2f')](_0x1937b0[_0x466feb('0x11')]['channel'][_0x466feb('0xf1')]())+_0x466feb('0x34')](_0x1937b0[_0x466feb('0x11')][_0x466feb('0x169')]);}})[_0x213063('0x145')](function(_0x263d80){const _0x1b1506=_0x213063;for(let _0x1163a2=0x0;_0x1163a2<_0x1937b0['query'][_0x1b1506('0x169')][_0x1b1506('0xdc')];_0x1163a2+=0x1){const _0x4095cc={'UserId':_0x1937b0[_0x1b1506('0xf4')]['id']};_0x4095cc[_[_0x1b1506('0x2f')](_0x1937b0[_0x1b1506('0x11')]['channel']['toLowerCase']())+_0x1b1506('0x108')]=_0x1937b0[_0x1b1506('0x11')]['ids'][_0x1163a2],socket[_0x1b1506('0x116')](_0x1b1506('0x8f')+_[_0x1b1506('0x2f')](_0x1937b0[_0x1b1506('0x11')][_0x1b1506('0x32')][_0x1b1506('0xf1')]())+'Queue:remove',_0x4095cc);}return _0x263d80;})[_0x213063('0x145')](function(){const _0x41c6f3=_0x213063;if(_0x1937b0['query'][_0x41c6f3('0x32')]===_0x41c6f3('0x48'))return db[_0x41c6f3('0xfd')][_0x41c6f3('0xe4')]({'where':{'UserId':_0x1937b0[_0x41c6f3('0xf4')]['id'],'VoiceQueueId':_0x1937b0[_0x41c6f3('0x11')][_0x41c6f3('0x169')]},'individualHooks':!![]})[_0x41c6f3('0x145')](function(){return _0x1140aa;});return _0x1140aa;})[_0x213063('0x145')](respondWithStatusCode(_0x254976,null))['catch'](handleError(_0x254976,null));},exports['addAvatar']=function(_0x485cba,_0x5b1104){const _0x2d26df=_0x2f6783;return _0x485cba[_0x2d26df('0x49')]['userpic']=_0x485cba[_0x2d26df('0x59')]['filename'],db[_0x2d26df('0xf8')][_0x2d26df('0xd0')]({'where':{'id':_0x485cba['params']['id']}})[_0x2d26df('0x145')](handleEntityNotFound(_0x5b1104,null))[_0x2d26df('0x145')](saveUpdates(_0x485cba[_0x2d26df('0x49')],null))[_0x2d26df('0x145')](respondWithResult(_0x5b1104,null))[_0x2d26df('0x128')](handleError(_0x5b1104,null));},exports[_0x2f6783('0x150')]=function(_0x3a2483,_0x25b6f9){const _0x4dfa59=_0x2f6783,_0x263df4=path[_0x4dfa59('0x123')](config['root'],'server/files/images/logos/default_profile.png');return db['User'][_0x4dfa59('0xd0')]({'where':{'id':_0x3a2483[_0x4dfa59('0xf4')]['id']},'attributes':['id',_0x4dfa59('0xa9')],'raw':!![]})[_0x4dfa59('0x145')](handleEntityNotFound(_0x25b6f9,null))['then'](function(_0xb42486){const _0x5502f3=_0x4dfa59;if(_0xb42486){if(_[_0x5502f3('0xe6')](_0xb42486[_0x5502f3('0xa9')]))return _0x25b6f9[_0x5502f3('0xcf')](_0x263df4);else{if(!fs[_0x5502f3('0x4d')](path[_0x5502f3('0x123')](config[_0x5502f3('0x13c')],_0x5502f3('0x3a'),_0xb42486[_0x5502f3('0xa9')])))return _0x25b6f9[_0x5502f3('0xcf')](_0x263df4);return _0x25b6f9[_0x5502f3('0xcf')](path[_0x5502f3('0x123')](config['root'],'server/files/images/',_0xb42486[_0x5502f3('0xa9')]));}}})[_0x4dfa59('0x128')](handleError(_0x25b6f9,null));},exports['getContacts']=function(_0x5a59c3,_0x4f1f8d){const _0x40c695=_0x2f6783;let _0x21b0a2={};const _0x27096e={};let _0x4012a2,_0x5410c1;return db[_0x40c695('0xf8')][_0x40c695('0xd0')]({'where':{'id':_0x5a59c3[_0x40c695('0xf4')]['id']}})[_0x40c695('0x145')](handleEntityNotFound(_0x4f1f8d,null))['then'](function(_0x37746c){const _0x5ba08e=_0x40c695;if(_0x37746c)return _0x4012a2=_0x37746c,_0x27096e[_0x5ba08e('0x4b')]=_[_0x5ba08e('0x9a')](db[_0x5ba08e('0xf')]['rawAttributes']),_0x27096e[_0x5ba08e('0x11')]=_[_0x5ba08e('0x9a')](_0x5a59c3[_0x5ba08e('0x11')]),_0x27096e[_0x5ba08e('0x25')]=_['intersection'](_0x27096e[_0x5ba08e('0x4b')],_0x27096e[_0x5ba08e('0x11')]),_0x21b0a2[_0x5ba08e('0xdf')]=_[_0x5ba08e('0x63')](_0x27096e[_0x5ba08e('0x4b')],qs[_0x5ba08e('0x2d')](_0x5a59c3[_0x5ba08e('0x11')][_0x5ba08e('0x2d')])),_0x21b0a2['attributes']=_0x21b0a2[_0x5ba08e('0xdf')]['length']?_0x21b0a2['attributes']:_0x27096e[_0x5ba08e('0x4b')],_0x21b0a2[_0x5ba08e('0xed')]=qs[_0x5ba08e('0x120')](_0x5a59c3[_0x5ba08e('0x11')][_0x5ba08e('0x120')]),_0x21b0a2[_0x5ba08e('0x46')]=qs[_0x5ba08e('0x25')](_[_0x5ba08e('0xa0')](_0x5a59c3[_0x5ba08e('0x11')],_0x27096e[_0x5ba08e('0x25')])),_0x5a59c3[_0x5ba08e('0x11')][_0x5ba08e('0xb9')]&&(_0x21b0a2[_0x5ba08e('0x46')]=_[_0x5ba08e('0x15')](_0x21b0a2[_0x5ba08e('0x46')],{[Op['or']]:_['map'](_0x21b0a2['attributes'],function(_0x217d0a){const _0x56716b=_0x5ba08e,_0x2a9e5f={};return _0x2a9e5f[_0x217d0a]={[Op[_0x56716b('0x10c')]]:'%'+_0x5a59c3[_0x56716b('0x11')][_0x56716b('0xb9')]+'%'},_0x2a9e5f;})})),_0x21b0a2=_[_0x5ba08e('0x15')]({},_0x21b0a2,_0x5a59c3['options']),_0x4012a2[_0x5ba08e('0x1c')](_0x21b0a2);})[_0x40c695('0x145')](function(_0x440aba){const _0x46b8cf=_0x40c695;if(_0x440aba)return _0x5410c1=_0x440aba['length'],typeof _0x5a59c3[_0x46b8cf('0x11')][_0x46b8cf('0x29')]!=='undefined'&&(_0x21b0a2[_0x46b8cf('0x118')]=[{'model':db[_0x46b8cf('0x14c')],'as':_0x46b8cf('0xd9'),'required':![]},{'model':db[_0x46b8cf('0xcc')],'as':'Tags','attributes':['id',_0x46b8cf('0x12'),'color'],'where':_0x5a59c3[_0x46b8cf('0x11')][_0x46b8cf('0x85')]?{'id':_0x5a59c3['query'][_0x46b8cf('0x85')]}:undefined,'required':_0x5a59c3[_0x46b8cf('0x11')][_0x46b8cf('0x85')]?!![]:![]}]),typeof _0x5a59c3[_0x46b8cf('0x11')]['nolimit']==='undefined'&&(_0x21b0a2[_0x46b8cf('0x7e')]=qs['limit'](_0x5a59c3[_0x46b8cf('0x11')][_0x46b8cf('0x7e')]),_0x21b0a2[_0x46b8cf('0x55')]=qs[_0x46b8cf('0x55')](_0x5a59c3[_0x46b8cf('0x11')][_0x46b8cf('0x55')])),_0x4012a2[_0x46b8cf('0x1c')](_0x21b0a2);})[_0x40c695('0x145')](function(_0x593de4){if(_0x593de4)return _0x593de4?{'count':_0x5410c1,'rows':_0x593de4}:null;})['then'](respondWithResult(_0x4f1f8d,null))[_0x40c695('0x128')](handleError(_0x4f1f8d,null));},exports['getQueues']=function(_0x192655,_0x411647){const _0x15bd2f=_0x2f6783;let _0x49804e,_0x3e0069={},_0x226291;return db['User'][_0x15bd2f('0xd0')]({'where':{'id':_0x192655[_0x15bd2f('0xf4')]['id']},'attributes':['id',_0x15bd2f('0x12'),'role']})[_0x15bd2f('0x145')](handleEntityNotFound(_0x411647,null))[_0x15bd2f('0x145')](function(_0x8024d1){const _0x3898d5=_0x15bd2f;if(!utils[_0x3898d5('0x105')](_0x192655['query'][_0x3898d5('0x32')]))throw new db['Sequelize'][(_0x3898d5('0xc5'))](_0x3898d5('0x11e'));_0x49804e=_0x8024d1;const _0x3f3184={};_0x3f3184[_0x3898d5('0x4b')]=_[_0x3898d5('0x9a')](db[_[_0x3898d5('0x2f')](_0x192655[_0x3898d5('0x11')]['channel'])+_0x3898d5('0x2a')][_0x3898d5('0x113')]),_0x3f3184['query']=_[_0x3898d5('0x9a')](_0x192655[_0x3898d5('0x11')]),_0x3f3184['filters']=_['intersection'](_0x3f3184[_0x3898d5('0x4b')],_0x3f3184[_0x3898d5('0x11')]),_0x3e0069[_0x3898d5('0xdf')]=_[_0x3898d5('0x63')](_0x3f3184[_0x3898d5('0x4b')],qs['fields'](_0x192655[_0x3898d5('0x11')][_0x3898d5('0x2d')])),_0x3e0069[_0x3898d5('0xdf')]=_0x3e0069[_0x3898d5('0xdf')][_0x3898d5('0xdc')]?_0x3e0069['attributes']:_0x3f3184['model'],_0x3e0069['order']=qs[_0x3898d5('0x120')](_0x192655[_0x3898d5('0x11')][_0x3898d5('0x120')]),_0x3e0069[_0x3898d5('0x46')]=qs[_0x3898d5('0x25')](_[_0x3898d5('0xa0')](_0x192655['query'],_0x3f3184[_0x3898d5('0x25')]));_0x192655[_0x3898d5('0x11')]['filter']&&(_0x3e0069[_0x3898d5('0x46')]=_['merge'](_0x3e0069['where'],{[Op['or']]:_[_0x3898d5('0x117')](_0x3e0069[_0x3898d5('0xdf')],function(_0x412a2a){const _0x5e5055=_0x3898d5,_0x1722db={};return _0x1722db[_0x412a2a]={[Op['like']]:'%'+_0x192655[_0x5e5055('0x11')][_0x5e5055('0xb9')]+'%'},_0x1722db;})}));_0x3e0069=_[_0x3898d5('0x15')]({},_0x3e0069,_0x192655[_0x3898d5('0x9')]);switch(_0x49804e['role']){case'admin':return db[_['capitalize'](_0x192655['query']['channel'])+_0x3898d5('0x2a')][_0x3898d5('0x10e')](_0x3e0069);case _0x3898d5('0x8f'):case _0x3898d5('0x26'):return _0x49804e['get'+_[_0x3898d5('0x2f')](_0x192655[_0x3898d5('0x11')][_0x3898d5('0x32')])+_0x3898d5('0x34')](_0x3e0069);default:throw new db[(_0x3898d5('0xa2'))]['ValidationError']('Unknown\x20role');}})[_0x15bd2f('0x145')](function(_0x2b4ae2){const _0x7c791f=_0x15bd2f;_0x226291=_0x2b4ae2['length'];typeof _0x192655[_0x7c791f('0x11')]['nolimit']===_0x7c791f('0x41')&&(_0x3e0069[_0x7c791f('0x7e')]=qs[_0x7c791f('0x7e')](_0x192655[_0x7c791f('0x11')][_0x7c791f('0x7e')]),_0x3e0069[_0x7c791f('0x55')]=qs[_0x7c791f('0x55')](_0x192655[_0x7c791f('0x11')][_0x7c791f('0x55')]));switch(_0x49804e[_0x7c791f('0xa8')]){case _0x7c791f('0x15e'):return db[_['capitalize'](_0x192655['query'][_0x7c791f('0x32')])+_0x7c791f('0x2a')]['findAll'](_0x3e0069);case _0x7c791f('0x8f'):case _0x7c791f('0x26'):return _0x49804e[_0x7c791f('0x44')+_[_0x7c791f('0x2f')](_0x192655[_0x7c791f('0x11')][_0x7c791f('0x32')])+_0x7c791f('0x34')](_0x3e0069);}})['then'](function(_0x232f71){return{'count':_0x226291,'rows':_0x232f71};})[_0x15bd2f('0x145')](respondWithResult(_0x411647,null))[_0x15bd2f('0x128')](handleError(_0x411647,null));},exports[_0x2f6783('0x137')]=function(_0x27ea65,_0x804671){const _0x1c11b7=_0x2f6783;let _0x59f240={};const _0x57fdeb={};let _0x3209ca,_0x2746d5;return db[_0x1c11b7('0xf8')]['findOne']({'where':{'id':_0x27ea65['params']['id']}})[_0x1c11b7('0x145')](handleEntityNotFound(_0x804671,null))[_0x1c11b7('0x145')](function(_0x4a8a4d){const _0x448821=_0x1c11b7;if(_0x4a8a4d)return _0x3209ca=_0x4a8a4d,_0x57fdeb[_0x448821('0x4b')]=_['keys'](db[_0x448821('0xfd')][_0x448821('0x113')]),_0x57fdeb[_0x448821('0x11')]=_[_0x448821('0x9a')](_0x27ea65['query']),_0x57fdeb[_0x448821('0x25')]=_[_0x448821('0x63')](_0x57fdeb[_0x448821('0x4b')],_0x57fdeb[_0x448821('0x11')]),_0x59f240['attributes']=_['intersection'](_0x57fdeb['model'],qs[_0x448821('0x2d')](_0x27ea65[_0x448821('0x11')][_0x448821('0x2d')])),_0x59f240[_0x448821('0xdf')]=_0x59f240[_0x448821('0xdf')]['length']?_0x59f240[_0x448821('0xdf')]:_0x57fdeb[_0x448821('0x4b')],_0x59f240[_0x448821('0xed')]=qs[_0x448821('0x120')](_0x27ea65[_0x448821('0x11')][_0x448821('0x120')]),_0x59f240[_0x448821('0x46')]=qs[_0x448821('0x25')](_[_0x448821('0xa0')](_0x27ea65[_0x448821('0x11')],_0x57fdeb[_0x448821('0x25')])),_0x27ea65[_0x448821('0x11')][_0x448821('0xb9')]&&(_0x59f240['where']=_[_0x448821('0x15')](_0x59f240['where'],{[Op['or']]:_[_0x448821('0x117')](_0x59f240[_0x448821('0xdf')],function(_0x24e6fd){const _0x4d11a3=_0x448821,_0x3e73ae={};return _0x3e73ae[_0x24e6fd]={[Op[_0x4d11a3('0x10c')]]:'%'+_0x27ea65[_0x4d11a3('0x11')][_0x4d11a3('0xb9')]+'%'},_0x3e73ae;})})),_0x59f240=_['merge']({},_0x59f240,_0x27ea65[_0x448821('0x9')]),_0x3209ca['getVoiceQueuesRt'](_0x59f240);})[_0x1c11b7('0x145')](function(_0x849d0b){const _0xdcbef0=_0x1c11b7;if(_0x849d0b)return _0x2746d5=_0x849d0b[_0xdcbef0('0xdc')],typeof _0x27ea65[_0xdcbef0('0x11')][_0xdcbef0('0x13a')]===_0xdcbef0('0x41')&&(_0x59f240[_0xdcbef0('0x7e')]=qs[_0xdcbef0('0x7e')](_0x27ea65[_0xdcbef0('0x11')]['limit']),_0x59f240[_0xdcbef0('0x55')]=qs[_0xdcbef0('0x55')](_0x27ea65[_0xdcbef0('0x11')]['offset'])),_0x3209ca[_0xdcbef0('0x137')](_0x59f240);})['then'](function(_0x44e65b){if(_0x44e65b)return _0x44e65b?{'count':_0x2746d5,'rows':_0x44e65b}:null;})[_0x1c11b7('0x145')](respondWithResult(_0x804671,null))[_0x1c11b7('0x128')](handleError(_0x804671,null));},exports[_0x2f6783('0xbb')]=function(_0x2fb656,_0x29ac35){const _0x342bb6=_0x2f6783;let _0x353cd9={};const _0x57bccf={};let _0x30ba07,_0x156771;return db[_0x342bb6('0xf8')][_0x342bb6('0xd0')]({'where':{'id':_0x2fb656[_0x342bb6('0xf4')]['id']}})[_0x342bb6('0x145')](handleEntityNotFound(_0x29ac35,null))[_0x342bb6('0x145')](function(_0x554e25){const _0x5ad23d=_0x342bb6;if(_0x554e25)return _0x30ba07=_0x554e25,_0x57bccf[_0x5ad23d('0x4b')]=_[_0x5ad23d('0x9a')](db[_0x5ad23d('0x1e')]['rawAttributes']),_0x57bccf[_0x5ad23d('0x11')]=_[_0x5ad23d('0x9a')](_0x2fb656['query']),_0x57bccf[_0x5ad23d('0x25')]=_['intersection'](_0x57bccf[_0x5ad23d('0x4b')],_0x57bccf['query']),_0x353cd9[_0x5ad23d('0xdf')]=_['intersection'](_0x57bccf[_0x5ad23d('0x4b')],qs['fields'](_0x2fb656[_0x5ad23d('0x11')][_0x5ad23d('0x2d')])),_0x353cd9[_0x5ad23d('0xdf')]=_0x353cd9[_0x5ad23d('0xdf')][_0x5ad23d('0xdc')]?_0x353cd9['attributes']:_0x57bccf[_0x5ad23d('0x4b')],_0x353cd9[_0x5ad23d('0xed')]=qs['sort'](_0x2fb656[_0x5ad23d('0x11')]['sort']),_0x353cd9[_0x5ad23d('0x46')]=qs[_0x5ad23d('0x25')](_['pick'](_0x2fb656[_0x5ad23d('0x11')],_0x57bccf['filters'])),_0x2fb656[_0x5ad23d('0x11')][_0x5ad23d('0xb9')]&&(_0x353cd9[_0x5ad23d('0x46')]=_[_0x5ad23d('0x15')](_0x353cd9[_0x5ad23d('0x46')],{[Op['or']]:_['map'](_0x353cd9['attributes'],function(_0x167d08){const _0x1fb656=_0x5ad23d,_0x3deef7={};return _0x3deef7[_0x167d08]={[Op[_0x1fb656('0x10c')]]:'%'+_0x2fb656['query']['filter']+'%'},_0x3deef7;})})),_0x353cd9=_[_0x5ad23d('0x15')]({},_0x353cd9,_0x2fb656[_0x5ad23d('0x9')]),_0x30ba07[_0x5ad23d('0xbb')](_0x353cd9);})[_0x342bb6('0x145')](function(_0x4aebb9){const _0x5393a5=_0x342bb6;if(_0x4aebb9)return _0x156771=_0x4aebb9[_0x5393a5('0xdc')],typeof _0x2fb656[_0x5393a5('0x11')][_0x5393a5('0x13a')]===_0x5393a5('0x41')&&(_0x353cd9[_0x5393a5('0x7e')]=qs[_0x5393a5('0x7e')](_0x2fb656[_0x5393a5('0x11')][_0x5393a5('0x7e')]),_0x353cd9[_0x5393a5('0x55')]=qs[_0x5393a5('0x55')](_0x2fb656[_0x5393a5('0x11')][_0x5393a5('0x55')])),_0x30ba07[_0x5393a5('0xbb')](_0x353cd9);})[_0x342bb6('0x145')](function(_0x4f454b){if(_0x4f454b)return _0x4f454b?{'count':_0x156771,'rows':_0x4f454b}:null;})[_0x342bb6('0x145')](respondWithResult(_0x29ac35,null))[_0x342bb6('0x128')](handleError(_0x29ac35,null));},exports[_0x2f6783('0x88')]=function(_0x7bc10d,_0x58394e){const _0x5abdc7=_0x2f6783;let _0x1d038e={'raw':!![],'where':{}};const _0x12c3a3={},_0x1e12f5={'count':0x0,'rows':[]};return db[_0x5abdc7('0xf8')][_0x5abdc7('0xd0')]({'where':{'id':_0x7bc10d[_0x5abdc7('0xf4')]['id']}})['then'](handleEntityNotFound(_0x58394e,null))['then'](function(_0x261162){const _0x43aa6c=_0x5abdc7;if(_0x261162)return _0x12c3a3[_0x43aa6c('0x4b')]=_[_0x43aa6c('0x9a')](db[_0x43aa6c('0x38')][_0x43aa6c('0x113')]),_0x12c3a3[_0x43aa6c('0x11')]=_['keys'](_0x7bc10d[_0x43aa6c('0x11')]),_0x12c3a3[_0x43aa6c('0x25')]=_[_0x43aa6c('0x63')](_0x12c3a3[_0x43aa6c('0x4b')],_0x12c3a3[_0x43aa6c('0x11')]),_0x1d038e[_0x43aa6c('0xdf')]=_['intersection'](_0x12c3a3[_0x43aa6c('0x4b')],qs[_0x43aa6c('0x2d')](_0x7bc10d['query'][_0x43aa6c('0x2d')])),_0x1d038e['attributes']=_0x1d038e[_0x43aa6c('0xdf')][_0x43aa6c('0xdc')]?_0x1d038e['attributes']:_0x12c3a3[_0x43aa6c('0x4b')],typeof _0x7bc10d[_0x43aa6c('0x11')][_0x43aa6c('0x13a')]===_0x43aa6c('0x41')&&(_0x1d038e['limit']=qs['limit'](_0x7bc10d['query'][_0x43aa6c('0x7e')]),_0x1d038e[_0x43aa6c('0x55')]=qs[_0x43aa6c('0x55')](_0x7bc10d[_0x43aa6c('0x11')][_0x43aa6c('0x55')])),_0x1d038e[_0x43aa6c('0xed')]=qs[_0x43aa6c('0x120')](_0x7bc10d['query']['sort']),_0x1d038e['where']=qs[_0x43aa6c('0x25')](_[_0x43aa6c('0xa0')](_0x7bc10d[_0x43aa6c('0x11')],_0x12c3a3[_0x43aa6c('0x25')])),_0x1d038e[_0x43aa6c('0x46')][_0x43aa6c('0x12d')]=_0x261162['id'],_0x7bc10d['query'][_0x43aa6c('0xb9')]&&(_0x1d038e[_0x43aa6c('0x46')]=_[_0x43aa6c('0x15')](_0x1d038e[_0x43aa6c('0x46')],{[Op['or']]:_[_0x43aa6c('0x117')](_0x1d038e['attributes'],function(_0x662002){const _0x3a1cb5=_0x43aa6c,_0x80db19={};return _0x80db19[_0x662002]={[Op[_0x3a1cb5('0x10c')]]:'%'+_0x7bc10d[_0x3a1cb5('0x11')][_0x3a1cb5('0xb9')]+'%'},_0x80db19;})})),_0x1d038e=_['merge']({},_0x1d038e,_0x7bc10d['options']),db[_0x43aa6c('0x38')]['count']({'where':_0x1d038e[_0x43aa6c('0x46')]})[_0x43aa6c('0x145')](function(_0x2d70b6){const _0x3bf6cc=_0x43aa6c;return _0x1e12f5[_0x3bf6cc('0xb')]=_0x2d70b6,_0x7bc10d[_0x3bf6cc('0x11')][_0x3bf6cc('0x29')]&&(_0x1d038e[_0x3bf6cc('0x118')]=[{'all':!![]}]),db[_0x3bf6cc('0x38')][_0x3bf6cc('0x10e')](_0x1d038e);})['then'](function(_0x3b9ac6){const _0x3bdd7b=_0x43aa6c;return _0x1e12f5[_0x3bdd7b('0x60')]=_0x3b9ac6,_0x1e12f5;});})[_0x5abdc7('0x145')](respondWithFilteredResult(_0x58394e,_0x1d038e))['catch'](handleError(_0x58394e,null));},exports['getScreenRecordings']=function(_0xa84c8f,_0x315211){const _0x315a94=_0x2f6783;let _0x2b2e76={'raw':!![],'where':{}};const _0x5f1442={},_0x51f15c={'count':0x0,'rows':[]};return db[_0x315a94('0xf8')][_0x315a94('0xd0')]({'where':{'id':_0xa84c8f[_0x315a94('0xf4')]['id']}})[_0x315a94('0x145')](handleEntityNotFound(_0x315211,null))[_0x315a94('0x145')](function(_0x2cd9ce){const _0x119389=_0x315a94;if(_0x2cd9ce)return _0x5f1442[_0x119389('0x4b')]=_['keys'](db[_0x119389('0x5c')]['rawAttributes']),_0x5f1442[_0x119389('0x11')]=_[_0x119389('0x9a')](_0xa84c8f[_0x119389('0x11')]),_0x5f1442['filters']=_[_0x119389('0x63')](_0x5f1442[_0x119389('0x4b')],_0x5f1442[_0x119389('0x11')]),_0x2b2e76[_0x119389('0xdf')]=_[_0x119389('0x63')](_0x5f1442[_0x119389('0x4b')],qs[_0x119389('0x2d')](_0xa84c8f[_0x119389('0x11')][_0x119389('0x2d')])),_0x2b2e76[_0x119389('0xdf')]=_0x2b2e76['attributes'][_0x119389('0xdc')]?_0x2b2e76[_0x119389('0xdf')]:_0x5f1442[_0x119389('0x4b')],typeof _0xa84c8f['query']['nolimit']==='undefined'&&(_0x2b2e76[_0x119389('0x7e')]=qs[_0x119389('0x7e')](_0xa84c8f[_0x119389('0x11')][_0x119389('0x7e')]),_0x2b2e76[_0x119389('0x55')]=qs[_0x119389('0x55')](_0xa84c8f[_0x119389('0x11')][_0x119389('0x55')])),_0x2b2e76[_0x119389('0xed')]=qs['sort'](_0xa84c8f['query'][_0x119389('0x120')]),_0x2b2e76[_0x119389('0x46')]=qs[_0x119389('0x25')](_[_0x119389('0xa0')](_0xa84c8f['query'],_0x5f1442['filters'])),_0x2b2e76['where'][_0x119389('0x12d')]=_0x2cd9ce['id'],_0xa84c8f['query']['filter']&&(_0x2b2e76['where']=_[_0x119389('0x15')](_0x2b2e76['where'],{[Op['or']]:_[_0x119389('0x117')](_0x2b2e76[_0x119389('0xdf')],function(_0x213c56){const _0x4494fd=_0x119389,_0x280b4f={};return _0x280b4f[_0x213c56]={[Op[_0x4494fd('0x10c')]]:'%'+_0xa84c8f[_0x4494fd('0x11')][_0x4494fd('0xb9')]+'%'},_0x280b4f;})})),_0x2b2e76=_['merge']({},_0x2b2e76,_0xa84c8f['options']),db[_0x119389('0x5c')][_0x119389('0xb')]({'where':_0x2b2e76[_0x119389('0x46')]})[_0x119389('0x145')](function(_0x1fe3e7){const _0x5de1fa=_0x119389;return _0x51f15c[_0x5de1fa('0xb')]=_0x1fe3e7,_0xa84c8f[_0x5de1fa('0x11')][_0x5de1fa('0x29')]&&(_0x2b2e76['include']=[{'all':!![]}]),db[_0x5de1fa('0x5c')][_0x5de1fa('0x10e')](_0x2b2e76);})[_0x119389('0x145')](function(_0x58820a){return _0x51f15c['rows']=_0x58820a,_0x51f15c;});})['then'](respondWithFilteredResult(_0x315211,_0x2b2e76))['catch'](handleError(_0x315211,null));},exports['getChatInteractions']=function(_0x4317b6,_0xf8a79d){const _0x2f9527=_0x2f6783;let _0x2c7b75={};const _0x5e24bb={};let _0xa68fed,_0x26c6c7;return db[_0x2f9527('0xf8')]['findOne']({'where':{'id':_0x4317b6[_0x2f9527('0xf4')]['id']}})[_0x2f9527('0x145')](handleEntityNotFound(_0xf8a79d,null))[_0x2f9527('0x145')](function(_0x3cd89f){const _0x4d7756=_0x2f9527;if(_0x3cd89f)return _0xa68fed=_0x3cd89f,_0x5e24bb[_0x4d7756('0x4b')]=_[_0x4d7756('0x9a')](db[_0x4d7756('0xc3')]['rawAttributes']),_0x5e24bb[_0x4d7756('0x11')]=_[_0x4d7756('0x9a')](_0x4317b6['query']),_0x5e24bb['filters']=_['intersection'](_0x5e24bb['model'],_0x5e24bb['query']),_0x2c7b75[_0x4d7756('0xdf')]=_[_0x4d7756('0x63')](_0x5e24bb[_0x4d7756('0x4b')],qs[_0x4d7756('0x2d')](_0x4317b6[_0x4d7756('0x11')][_0x4d7756('0x2d')])),_0x2c7b75[_0x4d7756('0xdf')]=_0x2c7b75['attributes'][_0x4d7756('0xdc')]?_0x2c7b75[_0x4d7756('0xdf')]:_0x5e24bb['model'],_0x2c7b75['order']=qs[_0x4d7756('0x120')](_0x4317b6[_0x4d7756('0x11')]['sort']),_0x2c7b75[_0x4d7756('0x46')]=qs[_0x4d7756('0x25')](_[_0x4d7756('0xa0')](_0x4317b6[_0x4d7756('0x11')],_0x5e24bb[_0x4d7756('0x25')])),_0x4317b6['query'][_0x4d7756('0xb9')]&&(_0x2c7b75['where']=_[_0x4d7756('0x15')](_0x2c7b75[_0x4d7756('0x46')],{[Op['or']]:_[_0x4d7756('0x117')](_0x2c7b75[_0x4d7756('0xdf')],function(_0x2638ff){const _0x54dc92=_0x4d7756,_0x5101ce={};return _0x5101ce[_0x2638ff]={[Op[_0x54dc92('0x10c')]]:'%'+_0x4317b6[_0x54dc92('0x11')][_0x54dc92('0xb9')]+'%'},_0x5101ce;})})),_0x2c7b75=_[_0x4d7756('0x15')]({},_0x2c7b75,_0x4317b6[_0x4d7756('0x9')]),_0xa68fed[_0x4d7756('0x65')](_0x2c7b75);})[_0x2f9527('0x145')](function(_0x643f6c){const _0x37d168=_0x2f9527;if(_0x643f6c)return _0x26c6c7=_0x643f6c[_0x37d168('0xdc')],typeof _0x4317b6['query'][_0x37d168('0x13a')]==='undefined'&&(_0x2c7b75[_0x37d168('0x7e')]=qs[_0x37d168('0x7e')](_0x4317b6[_0x37d168('0x11')][_0x37d168('0x7e')]),_0x2c7b75[_0x37d168('0x55')]=qs[_0x37d168('0x55')](_0x4317b6[_0x37d168('0x11')]['offset'])),_0xa68fed['getChatInteractions'](_0x2c7b75);})['then'](function(_0x2e511e){if(_0x2e511e)return _0x2e511e?{'count':_0x26c6c7,'rows':_0x2e511e}:null;})[_0x2f9527('0x145')](respondWithResult(_0xf8a79d,null))[_0x2f9527('0x128')](handleError(_0xf8a79d,null));},exports[_0x2f6783('0x14e')]=function(_0x5a0e5a,_0x1f7580){const _0x8baffc=_0x2f6783;let _0x25335f={};const _0x1f32a2={};let _0x16e07d,_0x4e7496;return db[_0x8baffc('0xf8')][_0x8baffc('0xd0')]({'where':{'id':_0x5a0e5a[_0x8baffc('0xf4')]['id']}})[_0x8baffc('0x145')](handleEntityNotFound(_0x1f7580,null))[_0x8baffc('0x145')](function(_0x520348){const _0x3e5af0=_0x8baffc;if(_0x520348)return _0x16e07d=_0x520348,_0x1f32a2[_0x3e5af0('0x4b')]=_[_0x3e5af0('0x9a')](db['OpenchannelInteraction'][_0x3e5af0('0x113')]),_0x1f32a2['query']=_['keys'](_0x5a0e5a[_0x3e5af0('0x11')]),_0x1f32a2[_0x3e5af0('0x25')]=_[_0x3e5af0('0x63')](_0x1f32a2[_0x3e5af0('0x4b')],_0x1f32a2[_0x3e5af0('0x11')]),_0x25335f[_0x3e5af0('0xdf')]=_['intersection'](_0x1f32a2[_0x3e5af0('0x4b')],qs[_0x3e5af0('0x2d')](_0x5a0e5a['query']['fields'])),_0x25335f[_0x3e5af0('0xdf')]=_0x25335f['attributes']['length']?_0x25335f[_0x3e5af0('0xdf')]:_0x1f32a2[_0x3e5af0('0x4b')],_0x25335f['order']=qs[_0x3e5af0('0x120')](_0x5a0e5a[_0x3e5af0('0x11')][_0x3e5af0('0x120')]),_0x25335f[_0x3e5af0('0x46')]=qs[_0x3e5af0('0x25')](_[_0x3e5af0('0xa0')](_0x5a0e5a[_0x3e5af0('0x11')],_0x1f32a2[_0x3e5af0('0x25')])),_0x5a0e5a[_0x3e5af0('0x11')][_0x3e5af0('0xb9')]&&(_0x25335f[_0x3e5af0('0x46')]=_[_0x3e5af0('0x15')](_0x25335f[_0x3e5af0('0x46')],{[Op['or']]:_[_0x3e5af0('0x117')](_0x25335f['attributes'],function(_0x1bea72){const _0x1ff10b=_0x3e5af0,_0x3f95f5={};return _0x3f95f5[_0x1bea72]={[Op['like']]:'%'+_0x5a0e5a[_0x1ff10b('0x11')]['filter']+'%'},_0x3f95f5;})})),_0x25335f=_['merge']({},_0x25335f,_0x5a0e5a[_0x3e5af0('0x9')]),_0x16e07d[_0x3e5af0('0x14e')](_0x25335f);})[_0x8baffc('0x145')](function(_0x271d6e){const _0x13b624=_0x8baffc;if(_0x271d6e)return _0x4e7496=_0x271d6e[_0x13b624('0xdc')],typeof _0x5a0e5a[_0x13b624('0x11')][_0x13b624('0x13a')]===_0x13b624('0x41')&&(_0x25335f['limit']=qs[_0x13b624('0x7e')](_0x5a0e5a['query'][_0x13b624('0x7e')]),_0x25335f[_0x13b624('0x55')]=qs[_0x13b624('0x55')](_0x5a0e5a['query'][_0x13b624('0x55')])),_0x16e07d[_0x13b624('0x14e')](_0x25335f);})[_0x8baffc('0x145')](function(_0xf32d03){if(_0xf32d03)return _0xf32d03?{'count':_0x4e7496,'rows':_0xf32d03}:null;})['then'](respondWithResult(_0x1f7580,null))[_0x8baffc('0x128')](handleError(_0x1f7580,null));},exports[_0x2f6783('0x11d')]=function(_0x58c4bb,_0x1e2760){const _0x3a7612=_0x2f6783;let _0x53e4f3={'raw':!![],'where':{}};const _0x1f409d={},_0x1b43a7={'count':0x0,'rows':[]};return db[_0x3a7612('0xf8')][_0x3a7612('0xd0')]({'where':{'id':_0x58c4bb[_0x3a7612('0xf4')]['id']}})[_0x3a7612('0x145')](handleEntityNotFound(_0x1e2760,null))['then'](function(_0x2d7e79){const _0xc0b918=_0x3a7612;if(_0x2d7e79)return _0x1f409d[_0xc0b918('0x4b')]=_['keys'](db[_0xc0b918('0x6')][_0xc0b918('0x113')]),_0x1f409d[_0xc0b918('0x11')]=_['keys'](_0x58c4bb['query']),_0x1f409d[_0xc0b918('0x25')]=_[_0xc0b918('0x63')](_0x1f409d[_0xc0b918('0x4b')],_0x1f409d[_0xc0b918('0x11')]),_0x53e4f3['attributes']=_[_0xc0b918('0x63')](_0x1f409d[_0xc0b918('0x4b')],qs[_0xc0b918('0x2d')](_0x58c4bb['query']['fields'])),_0x53e4f3[_0xc0b918('0xdf')]=_0x53e4f3['attributes'][_0xc0b918('0xdc')]?_0x53e4f3['attributes']:_0x1f409d['model'],typeof _0x58c4bb[_0xc0b918('0x11')][_0xc0b918('0x13a')]===_0xc0b918('0x41')&&(_0x53e4f3[_0xc0b918('0x7e')]=qs[_0xc0b918('0x7e')](_0x58c4bb[_0xc0b918('0x11')]['limit']),_0x53e4f3[_0xc0b918('0x55')]=qs[_0xc0b918('0x55')](_0x58c4bb[_0xc0b918('0x11')][_0xc0b918('0x55')])),_0x53e4f3[_0xc0b918('0xed')]=qs[_0xc0b918('0x120')](_0x58c4bb[_0xc0b918('0x11')][_0xc0b918('0x120')]),_0x53e4f3['where']=qs[_0xc0b918('0x25')](_[_0xc0b918('0xa0')](_0x58c4bb[_0xc0b918('0x11')],_0x1f409d[_0xc0b918('0x25')])),_0x53e4f3[_0xc0b918('0x46')][_0xc0b918('0x12d')]=_0x2d7e79['id'],_0x58c4bb[_0xc0b918('0x11')][_0xc0b918('0xb9')]&&(_0x53e4f3[_0xc0b918('0x46')]=_['merge'](_0x53e4f3['where'],{[Op['or']]:_[_0xc0b918('0x117')](_0x53e4f3[_0xc0b918('0xdf')],function(_0x15948d){const _0x533f6b=_0xc0b918,_0x57bb37={};return _0x57bb37[_0x15948d]={[Op[_0x533f6b('0x10c')]]:'%'+_0x58c4bb[_0x533f6b('0x11')][_0x533f6b('0xb9')]+'%'},_0x57bb37;})})),_0x53e4f3=_[_0xc0b918('0x15')]({},_0x53e4f3,_0x58c4bb[_0xc0b918('0x9')]),db[_0xc0b918('0x6')][_0xc0b918('0xb')]({'where':_0x53e4f3[_0xc0b918('0x46')]})[_0xc0b918('0x145')](function(_0x1b72e9){const _0x55b22f=_0xc0b918;return _0x1b43a7['count']=_0x1b72e9,_0x58c4bb[_0x55b22f('0x11')][_0x55b22f('0x29')]&&(_0x53e4f3[_0x55b22f('0x118')]=[{'all':!![]}]),db['MailInteraction']['findAll'](_0x53e4f3);})['then'](function(_0x5f1f4d){const _0x41419f=_0xc0b918;return _0x1b43a7[_0x41419f('0x60')]=_0x5f1f4d,_0x1b43a7;});})[_0x3a7612('0x145')](respondWithFilteredResult(_0x1e2760,_0x53e4f3))[_0x3a7612('0x128')](handleError(_0x1e2760,null));},exports[_0x2f6783('0xcd')]=function(_0x283b27,_0x3f6155){const _0x122ffa=_0x2f6783;let _0x34b6e1={};const _0x5c08e3={};let _0x4c00fa,_0x517432;return db[_0x122ffa('0xf8')][_0x122ffa('0xd0')]({'where':{'id':_0x283b27[_0x122ffa('0xf4')]['id']}})['then'](handleEntityNotFound(_0x3f6155,null))[_0x122ffa('0x145')](function(_0xea3a05){const _0x15bb5e=_0x122ffa;if(_0xea3a05)return _0x4c00fa=_0xea3a05,_0x5c08e3[_0x15bb5e('0x4b')]=_[_0x15bb5e('0x9a')](db[_0x15bb5e('0xda')]['rawAttributes']),_0x5c08e3['query']=_['keys'](_0x283b27['query']),_0x5c08e3[_0x15bb5e('0x25')]=_[_0x15bb5e('0x63')](_0x5c08e3[_0x15bb5e('0x4b')],_0x5c08e3[_0x15bb5e('0x11')]),_0x34b6e1[_0x15bb5e('0xdf')]=_[_0x15bb5e('0x63')](_0x5c08e3[_0x15bb5e('0x4b')],qs[_0x15bb5e('0x2d')](_0x283b27[_0x15bb5e('0x11')][_0x15bb5e('0x2d')])),_0x34b6e1[_0x15bb5e('0xdf')]=_0x34b6e1[_0x15bb5e('0xdf')][_0x15bb5e('0xdc')]?_0x34b6e1['attributes']:_0x5c08e3[_0x15bb5e('0x4b')],_0x34b6e1[_0x15bb5e('0xed')]=qs[_0x15bb5e('0x120')](_0x283b27['query']['sort']),_0x34b6e1[_0x15bb5e('0x46')]=qs[_0x15bb5e('0x25')](_[_0x15bb5e('0xa0')](_0x283b27[_0x15bb5e('0x11')],_0x5c08e3[_0x15bb5e('0x25')])),_0x283b27[_0x15bb5e('0x11')][_0x15bb5e('0xb9')]&&(_0x34b6e1[_0x15bb5e('0x46')]=_[_0x15bb5e('0x15')](_0x34b6e1[_0x15bb5e('0x46')],{[Op['or']]:_[_0x15bb5e('0x117')](_0x34b6e1[_0x15bb5e('0xdf')],function(_0x2ffd7b){const _0x532560={};return _0x532560[_0x2ffd7b]={[Op['like']]:'%'+_0x283b27['query']['filter']+'%'},_0x532560;})})),_0x34b6e1=_[_0x15bb5e('0x15')]({},_0x34b6e1,_0x283b27['options']),_0x4c00fa[_0x15bb5e('0xcd')](_0x34b6e1);})[_0x122ffa('0x145')](function(_0x569e0c){const _0x1a838e=_0x122ffa;if(_0x569e0c)return _0x517432=_0x569e0c[_0x1a838e('0xdc')],typeof _0x283b27['query'][_0x1a838e('0x13a')]==='undefined'&&(_0x34b6e1[_0x1a838e('0x7e')]=qs[_0x1a838e('0x7e')](_0x283b27[_0x1a838e('0x11')][_0x1a838e('0x7e')]),_0x34b6e1[_0x1a838e('0x55')]=qs[_0x1a838e('0x55')](_0x283b27['query'][_0x1a838e('0x55')])),_0x4c00fa[_0x1a838e('0xcd')](_0x34b6e1);})[_0x122ffa('0x145')](function(_0x349caf){if(_0x349caf)return _0x349caf?{'count':_0x517432,'rows':_0x349caf}:null;})[_0x122ffa('0x145')](respondWithResult(_0x3f6155,null))['catch'](handleError(_0x3f6155,null));},exports['getFaxInteractions']=function(_0x5696b1,_0x22d363){const _0x4fcf0d=_0x2f6783;let _0x17fdca={};const _0x35c277={};let _0x43ad7f,_0x12e50f;return db[_0x4fcf0d('0xf8')][_0x4fcf0d('0xd0')]({'where':{'id':_0x5696b1[_0x4fcf0d('0xf4')]['id']}})['then'](handleEntityNotFound(_0x22d363,null))['then'](function(_0x4b7523){const _0x224dc5=_0x4fcf0d;if(_0x4b7523)return _0x43ad7f=_0x4b7523,_0x35c277['model']=_[_0x224dc5('0x9a')](db[_0x224dc5('0x168')][_0x224dc5('0x113')]),_0x35c277[_0x224dc5('0x11')]=_['keys'](_0x5696b1['query']),_0x35c277['filters']=_[_0x224dc5('0x63')](_0x35c277[_0x224dc5('0x4b')],_0x35c277[_0x224dc5('0x11')]),_0x17fdca[_0x224dc5('0xdf')]=_[_0x224dc5('0x63')](_0x35c277[_0x224dc5('0x4b')],qs[_0x224dc5('0x2d')](_0x5696b1[_0x224dc5('0x11')][_0x224dc5('0x2d')])),_0x17fdca[_0x224dc5('0xdf')]=_0x17fdca[_0x224dc5('0xdf')][_0x224dc5('0xdc')]?_0x17fdca[_0x224dc5('0xdf')]:_0x35c277[_0x224dc5('0x4b')],_0x17fdca[_0x224dc5('0xed')]=qs[_0x224dc5('0x120')](_0x5696b1[_0x224dc5('0x11')][_0x224dc5('0x120')]),_0x17fdca[_0x224dc5('0x46')]=qs['filters'](_[_0x224dc5('0xa0')](_0x5696b1[_0x224dc5('0x11')],_0x35c277['filters'])),_0x5696b1[_0x224dc5('0x11')][_0x224dc5('0xb9')]&&(_0x17fdca[_0x224dc5('0x46')]=_[_0x224dc5('0x15')](_0x17fdca[_0x224dc5('0x46')],{[Op['or']]:_[_0x224dc5('0x117')](_0x17fdca[_0x224dc5('0xdf')],function(_0x5a0da9){const _0x3861d3=_0x224dc5,_0x46e0b5={};return _0x46e0b5[_0x5a0da9]={[Op[_0x3861d3('0x10c')]]:'%'+_0x5696b1[_0x3861d3('0x11')][_0x3861d3('0xb9')]+'%'},_0x46e0b5;})})),_0x17fdca=_[_0x224dc5('0x15')]({},_0x17fdca,_0x5696b1[_0x224dc5('0x9')]),_0x43ad7f[_0x224dc5('0x99')](_0x17fdca);})[_0x4fcf0d('0x145')](function(_0x2cc11d){const _0x42fe72=_0x4fcf0d;if(_0x2cc11d)return _0x12e50f=_0x2cc11d[_0x42fe72('0xdc')],typeof _0x5696b1[_0x42fe72('0x11')][_0x42fe72('0x13a')]===_0x42fe72('0x41')&&(_0x17fdca[_0x42fe72('0x7e')]=qs[_0x42fe72('0x7e')](_0x5696b1[_0x42fe72('0x11')]['limit']),_0x17fdca[_0x42fe72('0x55')]=qs[_0x42fe72('0x55')](_0x5696b1['query'][_0x42fe72('0x55')])),_0x43ad7f[_0x42fe72('0x99')](_0x17fdca);})[_0x4fcf0d('0x145')](function(_0x3e91b8){if(_0x3e91b8)return _0x3e91b8?{'count':_0x12e50f,'rows':_0x3e91b8}:null;})[_0x4fcf0d('0x145')](respondWithResult(_0x22d363,null))[_0x4fcf0d('0x128')](handleError(_0x22d363,null));},exports[_0x2f6783('0x8')]=function(_0x2289b7,_0x196d72){const _0x4f9daa=_0x2f6783;let _0x2df3bd={};const _0x445fc0={};let _0x4f1565,_0x609ef5;return db[_0x4f9daa('0xf8')][_0x4f9daa('0xd0')]({'where':{'id':_0x2289b7[_0x4f9daa('0xf4')]['id']}})[_0x4f9daa('0x145')](handleEntityNotFound(_0x196d72,null))[_0x4f9daa('0x145')](function(_0x5940e3){const _0x533c70=_0x4f9daa;if(_0x5940e3)return _0x4f1565=_0x5940e3,_0x445fc0[_0x533c70('0x4b')]=_[_0x533c70('0x9a')](db[_0x533c70('0x35')]['rawAttributes']),_0x445fc0[_0x533c70('0x11')]=_['keys'](_0x2289b7[_0x533c70('0x11')]),_0x445fc0[_0x533c70('0x25')]=_['intersection'](_0x445fc0[_0x533c70('0x4b')],_0x445fc0['query']),_0x2df3bd[_0x533c70('0xdf')]=_[_0x533c70('0x63')](_0x445fc0['model'],qs[_0x533c70('0x2d')](_0x2289b7[_0x533c70('0x11')][_0x533c70('0x2d')])),_0x2df3bd['attributes']=_0x2df3bd[_0x533c70('0xdf')]['length']?_0x2df3bd[_0x533c70('0xdf')]:_0x445fc0[_0x533c70('0x4b')],_0x2df3bd[_0x533c70('0xed')]=qs[_0x533c70('0x120')](_0x2289b7['query']['sort']),_0x2df3bd['where']=qs[_0x533c70('0x25')](_[_0x533c70('0xa0')](_0x2289b7[_0x533c70('0x11')],_0x445fc0['filters'])),_0x2289b7[_0x533c70('0x11')][_0x533c70('0xb9')]&&(_0x2df3bd['where']=_[_0x533c70('0x15')](_0x2df3bd[_0x533c70('0x46')],{[Op['or']]:_[_0x533c70('0x117')](_0x2df3bd['attributes'],function(_0x544431){const _0x60c1e7=_0x533c70,_0x36c436={};return _0x36c436[_0x544431]={[Op[_0x60c1e7('0x10c')]]:'%'+_0x2289b7[_0x60c1e7('0x11')][_0x60c1e7('0xb9')]+'%'},_0x36c436;})})),_0x2df3bd=_[_0x533c70('0x15')]({},_0x2df3bd,_0x2289b7[_0x533c70('0x9')]),_0x4f1565[_0x533c70('0x8')](_0x2df3bd);})[_0x4f9daa('0x145')](function(_0x11b2d4){const _0x4594c0=_0x4f9daa;if(_0x11b2d4)return _0x609ef5=_0x11b2d4[_0x4594c0('0xdc')],typeof _0x2289b7[_0x4594c0('0x11')][_0x4594c0('0x13a')]==='undefined'&&(_0x2df3bd['limit']=qs[_0x4594c0('0x7e')](_0x2289b7[_0x4594c0('0x11')]['limit']),_0x2df3bd[_0x4594c0('0x55')]=qs[_0x4594c0('0x55')](_0x2289b7['query'][_0x4594c0('0x55')])),_0x4f1565[_0x4594c0('0x8')](_0x2df3bd);})[_0x4f9daa('0x145')](function(_0x36401e){if(_0x36401e)return _0x36401e?{'count':_0x609ef5,'rows':_0x36401e}:null;})[_0x4f9daa('0x145')](respondWithResult(_0x196d72,null))['catch'](handleError(_0x196d72,null));},exports[_0x2f6783('0xa6')]=function(_0x49785f,_0x381ea9,_0x3d5797){const _0x42e9f4=_0x2f6783;let _0x86ca0d,_0x523ca6,_0x41e88f;const _0x419c18=!_[_0x42e9f4('0xe6')](_0x49785f['params']['id'])?_0x49785f['params']['id']:!_[_0x42e9f4('0xe6')](_0x49785f[_0x42e9f4('0x8f')]['id'])?_0x49785f[_0x42e9f4('0x8f')]['id']:null;return db[_0x42e9f4('0xf8')][_0x42e9f4('0xd0')]({'where':{'id':_0x419c18,'role':{[Op['or']]:[_0x42e9f4('0x15e'),_0x42e9f4('0x8f'),_0x42e9f4('0x26')]}},'attributes':['id','name',_0x42e9f4('0x111'),_0x42e9f4('0x13d'),_0x42e9f4('0xa8'),'internal',_0x42e9f4('0x1f')]})[_0x42e9f4('0x145')](function(_0x5b693d){const _0x2d43d3=_0x42e9f4;if(_0x5b693d){if(_0x5b693d[_0x2d43d3('0xa8')]===_0x2d43d3('0x26')){_0x86ca0d=_0x5b693d;if(_0x49785f[_0x2d43d3('0x49')][_0x2d43d3('0x12f')])_0x41e88f=util[_0x2d43d3('0x0')](_0x2d43d3('0x45'),_0x86ca0d[_0x49785f[_0x2d43d3('0x49')][_0x2d43d3('0x12f')]]);else _0x49785f[_0x2d43d3('0x49')][_0x2d43d3('0xe7')]?_0x41e88f=util['format'](_0x2d43d3('0x15c'),_0x49785f[_0x2d43d3('0x49')][_0x2d43d3('0xe7')]):_0x41e88f=util[_0x2d43d3('0x0')]('SIP/%s',_0x86ca0d[_0x2d43d3('0x12')]);return socket['to'](util['format'](_0x2d43d3('0x72'),_0x86ca0d[_0x2d43d3('0x12')]))['emit'](_0x2d43d3('0x75'),{'ip':_0x49785f['headers'][_0x2d43d3('0x6a')]||_0x49785f[_0x2d43d3('0xdd')][_0x2d43d3('0x18')]||_0x49785f[_0x2d43d3('0xf7')][_0x2d43d3('0x18')]||_0x49785f['connection'][_0x2d43d3('0xf7')][_0x2d43d3('0x18')]}),db['UserVoiceQueueRt'][_0x2d43d3('0xe4')]({'where':{'membername':_0x86ca0d['name']},'individualHooks':!![]});}}else throw new db['Sequelize'][(_0x2d43d3('0xc5'))](_0x2d43d3('0xb2'));})[_0x42e9f4('0x145')](function(){const _0x55e3a3=_0x42e9f4;if(_0x86ca0d)return _0x86ca0d[_0x55e3a3('0x6c')]({'raw':!![]});})['then'](function(_0x57ed58){const _0x3dac52=_0x42e9f4;if(_0x86ca0d){if(_0x57ed58){_0x523ca6=_0x57ed58;if(_0x523ca6[_0x3dac52('0xdc')]){const _0x5747e9=_0x523ca6[_0x3dac52('0x117')](_0x5a4e9e=>{const _0x5db4b4=_0x3dac52,_0x37c9f8={'membername':_0x86ca0d[_0x5db4b4('0x12')],'UserId':_0x86ca0d['id'],'queue_name':_0x5a4e9e[_0x5db4b4('0x12')],'VoiceQueueId':_0x5a4e9e['id'],'interface':_0x41e88f,'paused':_0x86ca0d[_0x5db4b4('0x1f')]||![],'penalty':_0x5a4e9e[_0x5db4b4('0xc2')]||0x0};return db[_0x5db4b4('0xfd')]['upsert'](_0x37c9f8);});return Promise[_0x3dac52('0x7b')](_0x5747e9);}}}})[_0x42e9f4('0x145')](function(){const _0x2f09a0=_0x42e9f4;if(_0x86ca0d)return db[_0x2f09a0('0x140')][_0x2f09a0('0x10e')]({'where':{'membername':_0x86ca0d[_0x2f09a0('0x12')],'exitAt':null}});})[_0x42e9f4('0x145')](function(_0x2e4c7b){const _0x3e9101=_0x42e9f4;if(_0x86ca0d){const _0x290d3d=[];return _0x2e4c7b[_0x3e9101('0xfb')](function(_0x5d546d){const _0x2167ff=_0x3e9101;_0x290d3d['push'](_0x5d546d[_0x2167ff('0x126')]({'exitAt':moment()[_0x2167ff('0x0')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise['all'](_0x290d3d);}})[_0x42e9f4('0x145')](function(){const _0x164cf1=_0x42e9f4;if(_0x86ca0d){const _0x509cdf=[],_0x326190=[],_0x58f320=utils[_0x164cf1('0x9c')](),_0x56f4b8={'membername':_0x86ca0d['name'],'interface':_0x41e88f,'enterAt':moment()[_0x164cf1('0x0')]('YYYY-MM-DD\x20HH:mm:ss'),'role':_0x86ca0d[_0x164cf1('0xa8')],'internal':_0x86ca0d['internal']};return _0x58f320[_0x164cf1('0xfb')](function(_0x489cb7){const _0x157cd3=_0x164cf1;_0x509cdf[_0x157cd3('0xc6')](_[_0x157cd3('0x15')]({'channel':_0x489cb7,'type':'LOGIN','data1':_0x49785f[_0x157cd3('0x49')][_0x157cd3('0xa1')],'data2':_0x41e88f},_0x56f4b8)),_0x86ca0d[_0x157cd3('0x1f')]&&_0x326190[_0x157cd3('0xc6')](_['merge']({'channel':_0x489cb7,'type':_0x157cd3('0x4a'),'data1':'LOGININPAUSE'},_0x56f4b8));}),db['MemberReport'][_0x164cf1('0x10d')](_0x509cdf[_0x164cf1('0xc4')](_0x326190),{'individualHooks':!![]});}})[_0x42e9f4('0x145')](function(){const _0x1204de=_0x42e9f4;if(_0x86ca0d)return _0x86ca0d[_0x1204de('0x126')]({'online':!![],'lastLoginAt':moment()[_0x1204de('0x0')]('YYYY-MM-DD\x20HH:mm:ss'),'voicePause':_0x86ca0d[_0x1204de('0x1f')]||![],'mailPause':_0x86ca0d[_0x1204de('0x1f')]||![],'chatPause':_0x86ca0d[_0x1204de('0x1f')]||![],'faxPause':_0x86ca0d[_0x1204de('0x1f')]||![],'smsPause':_0x86ca0d[_0x1204de('0x1f')]||![],'openchannelPause':_0x86ca0d[_0x1204de('0x1f')]||![],'whatsappPause':_0x86ca0d['loginInPause']||![],'pauseType':_0x86ca0d['loginInPause']?_0x1204de('0x8a'):null,'interface':_0x41e88f,'lastPauseAt':moment()[_0x1204de('0x0')](_0x1204de('0xd4'))});})['then'](function(_0x35fd02){const _0x13f1bb=_0x42e9f4;return _0x49785f[_0x13f1bb('0x6b')]?_0x3d5797():Promise[_0x13f1bb('0xde')](_0x35fd02)['then'](respondWithResult(_0x381ea9,null));})['catch'](handleError(_0x381ea9,null));},exports['logout']=function(_0x4c0e84,_0x12d433){const _0x48ca63=_0x2f6783;let _0x75eccc;return db['User'][_0x48ca63('0xd0')]({'where':{'id':_0x4c0e84[_0x48ca63('0xf4')]['id'],'role':_0x48ca63('0x26')},'attributes':['id',_0x48ca63('0x12'),'role']})[_0x48ca63('0x145')](handleEntityNotFound(_0x12d433,null))[_0x48ca63('0x145')](function(_0x649406){const _0x1db32a=_0x48ca63;if(_0x649406)return _0x75eccc=_0x649406,db[_0x1db32a('0xfd')][_0x1db32a('0xe4')]({'where':{'membername':_0x75eccc[_0x1db32a('0x12')]},'individualHooks':!![]});})[_0x48ca63('0x145')](function(){const _0x41347b=_0x48ca63;return db[_0x41347b('0x140')]['findAll']({'where':{'membername':_0x75eccc['name'],'exitAt':null}});})[_0x48ca63('0x145')](function(_0x4276ad){const _0x967264=_0x48ca63,_0x2cec63=[];return _0x4276ad['forEach'](function(_0x295717){const _0x1caf3f=a648_0x12e5;_0x2cec63['push'](_0x295717[_0x1caf3f('0x126')]({'exitAt':moment()[_0x1caf3f('0x0')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x967264('0x7b')](_0x2cec63);})[_0x48ca63('0x145')](function(){return _0x75eccc['update']({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})[_0x48ca63('0x145')](respondWithResult(_0x12d433,null))[_0x48ca63('0x128')](handleError(_0x12d433,null));},exports[_0x2f6783('0x23')]=function(_0x12d94b,_0x376b3c){const _0x54026e=_0x2f6783;let _0x47bb9c;return db[_0x54026e('0xfd')]['update']({'paused':0x1},{'where':{'UserId':_0x12d94b['params']['id']},'individualHooks':!![]})['then'](function(){const _0xf1fc6a=_0x54026e;return db[_0xf1fc6a('0xf8')]['findOne']({'where':{'id':_0x12d94b[_0xf1fc6a('0xf4')]['id'],'role':'agent'},'attributes':['id','name',_0xf1fc6a('0xa8'),_0xf1fc6a('0x136'),'interface']});})['then'](handleEntityNotFound(_0x376b3c,null))[_0x54026e('0x145')](function(_0x7f813f){const _0x4412c6=_0x54026e;if(_0x7f813f)return _0x47bb9c=_0x7f813f,respondWithRpcPromise(_0x4412c6('0x47'),'pause',{'id':_0x47bb9c['id'],'name':_0x47bb9c['name'],'pause':!![]});})[_0x54026e('0x145')](function(){const _0x188c9c=_0x54026e;if(_0x47bb9c)return db[_0x188c9c('0x140')][_0x188c9c('0x10e')]({'where':{'membername':_0x47bb9c[_0x188c9c('0x12')],'type':_0x188c9c('0x4a'),'exitAt':null}});})['then'](function(_0x532f38){const _0x4127ba=_0x54026e;if(_0x532f38['length']){const _0x3c870d=moment()[_0x4127ba('0x0')]('YYYY-MM-DD\x20HH:mm:ss');for(let _0x437561=0x0,_0x36f9bf=_0x532f38[_0x4127ba('0xdc')];_0x437561<_0x36f9bf;_0x437561++){_0x532f38[_0x437561]['update']({'exitAt':_0x3c870d});}}})[_0x54026e('0x145')](function(){const _0x4795dc=_0x54026e,_0x16b7b3=[],_0x47548e=utils[_0x4795dc('0x9c')]();return _0x47548e[_0x4795dc('0xfb')](function(_0x41be6e){const _0x230bb7=_0x4795dc;_0x16b7b3['push']({'channel':_0x41be6e,'membername':_0x47bb9c['name'],'interface':_[_0x230bb7('0xe6')](_0x47bb9c['interface'])?util[_0x230bb7('0x0')](_0x230bb7('0x15c'),_0x47bb9c['name']):_0x47bb9c[_0x230bb7('0x12f')],'type':_0x230bb7('0x4a'),'enterAt':moment()[_0x230bb7('0x0')]('YYYY-MM-DD\x20HH:mm:ss'),'data1':_0x12d94b['body']['type']||'DEFAULT\x20PAUSE','role':_0x47bb9c['role'],'internal':_0x47bb9c[_0x230bb7('0x136')]});}),db[_0x4795dc('0x140')][_0x4795dc('0x10d')](_0x16b7b3,{'individualHooks':!![]});})[_0x54026e('0x145')](function(){const _0x43233f=_0x54026e;return _0x47bb9c[_0x43233f('0x126')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x12d94b['body'][_0x43233f('0x13b')]||'DEFAULT\x20PAUSE','lastPauseAt':moment()[_0x43233f('0x0')](_0x43233f('0xd4'))});})['then'](respondWithResult(_0x376b3c,null))[_0x54026e('0x128')](handleError(_0x376b3c,null));},exports[_0x2f6783('0x84')]=function(_0x4fe7a9,_0x37cbf9){const _0x5c1c22=_0x2f6783;let _0x1baef5;return db[_0x5c1c22('0xf8')][_0x5c1c22('0xd0')]({'where':{'id':_0x4fe7a9[_0x5c1c22('0xf4')]['id']},'attributes':['id',_0x5c1c22('0x12'),_0x5c1c22('0xa8'),_0x5c1c22('0x104'),'mailPause','chatPause',_0x5c1c22('0x160'),_0x5c1c22('0xa5'),_0x5c1c22('0xfe'),'whatsapppause','pauseType',_0x5c1c22('0x92')]})[_0x5c1c22('0x145')](handleEntityNotFound(_0x37cbf9,null))[_0x5c1c22('0x145')](function(_0x11cf74){const _0x39f090=_0x5c1c22;if(_0x11cf74){_0x1baef5=_0x11cf74;if(_0x4fe7a9[_0x39f090('0x49')][_0x39f090('0x32')]&&!utils[_0x39f090('0x105')](_0x4fe7a9[_0x39f090('0x49')][_0x39f090('0x32')]))throw new db[(_0x39f090('0xa2'))][(_0x39f090('0xc5'))](_0x39f090('0x11e'));switch(_0x4fe7a9[_0x39f090('0x49')]['channel']){case _0x39f090('0x48'):return respondWithRpcPromise(_0x39f090('0x47'),_0x39f090('0x84'),{'id':_0x1baef5['id'],'name':_0x1baef5[_0x39f090('0x12')],'pause':![]})[_0x39f090('0x145')](function(){const _0x15b87d=_0x39f090;return db[_0x15b87d('0xfd')][_0x15b87d('0x126')]({'paused':0x0},{'where':{'UserId':_0x1baef5['id']},'individualHooks':!![]});})[_0x39f090('0x145')](function(){const _0x2ce522=_0x39f090;return db[_0x2ce522('0x140')][_0x2ce522('0xd0')]({'where':{'channel':_0x4fe7a9[_0x2ce522('0x49')][_0x2ce522('0x32')],'membername':_0x1baef5['name'],'type':'PAUSE','exitAt':null}});})['then'](function(_0x2f51b2){const _0x59bd26=_0x39f090;if(_0x2f51b2)return _0x2f51b2[_0x59bd26('0x126')]({'exitAt':moment()[_0x59bd26('0x0')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':'manual'},{'individualHooks':!![]});return null;})['then'](function(){const _0x6d426c=_0x39f090;return _0x1baef5[_0x6d426c('0x126')]({'voicePause':![]});});case'mail':case _0x39f090('0x86'):case _0x39f090('0xca'):case _0x39f090('0x15a'):case _0x39f090('0x166'):case _0x39f090('0x68'):return db[_0x39f090('0x140')]['findOne']({'where':{'channel':_0x4fe7a9['body'][_0x39f090('0x32')],'membername':_0x1baef5['name'],'type':_0x39f090('0x4a'),'exitAt':null}})[_0x39f090('0x145')](function(_0x6f9065){const _0xe661f0=_0x39f090;if(_0x6f9065)return _0x6f9065[_0xe661f0('0x126')]({'exitAt':moment()[_0xe661f0('0x0')](_0xe661f0('0xd4')),'data2':_0xe661f0('0x154')},{'individualHooks':!![]});return null;})[_0x39f090('0x145')](function(){const _0x346b2f=_0x39f090,_0xa2c337={};return _[_0x346b2f('0x15b')](_0xa2c337,util[_0x346b2f('0x0')](_0x346b2f('0xe9'),_0x4fe7a9[_0x346b2f('0x49')][_0x346b2f('0x32')],_0x346b2f('0xcb')),![]),_0x1baef5[_0x346b2f('0x126')](_0xa2c337);});default:return respondWithRpcPromise(_0x39f090('0x47'),'unpause',{'id':_0x1baef5['id'],'name':_0x1baef5[_0x39f090('0x12')],'pause':![]})[_0x39f090('0x145')](function(){const _0x3b7f2f=_0x39f090;return db['UserVoiceQueueRt'][_0x3b7f2f('0x126')]({'paused':0x0},{'where':{'UserId':_0x1baef5['id']}});})[_0x39f090('0x145')](function(){const _0x3040e5=_0x39f090;return db[_0x3040e5('0x140')][_0x3040e5('0x10e')]({'where':{'membername':_0x1baef5['name'],'type':_0x3040e5('0x4a'),'exitAt':null}});})['then'](function(_0x14904e){const _0x297a79=_0x39f090,_0x419802=[];return _0x14904e[_0x297a79('0xfb')](function(_0x40c7e3){const _0x5da9ec=_0x297a79;_0x419802[_0x5da9ec('0xc6')](_0x40c7e3[_0x5da9ec('0x126')]({'exitAt':moment()[_0x5da9ec('0x0')](_0x5da9ec('0xd4')),'data2':'manual'}));}),Promise[_0x297a79('0x7b')](_0x419802);})[_0x39f090('0x145')](function(){return _0x1baef5['update']({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x5c1c22('0x145')](respondWithResult(_0x37cbf9,null))[_0x5c1c22('0x128')](handleError(_0x37cbf9,null));},exports[_0x2f6783('0x3f')]=function(_0x290908,_0x188468){const _0x2241ea=_0x2f6783;let _0x457261={};const _0x5eecbe={};let _0x261387,_0x522ed8;return db[_0x2241ea('0xf8')][_0x2241ea('0xd0')]({'where':{'id':_0x290908[_0x2241ea('0xf4')]['id']}})[_0x2241ea('0x145')](handleEntityNotFound(_0x188468,null))['then'](function(_0x46eeec){const _0x484575=_0x2241ea;if(_0x46eeec)return _0x261387=_0x46eeec,_0x5eecbe[_0x484575('0x4b')]=_[_0x484575('0x9a')](db[_0x484575('0xa3')][_0x484575('0x113')]),_0x5eecbe[_0x484575('0x11')]=_['keys'](_0x290908[_0x484575('0x11')]),_0x5eecbe[_0x484575('0x25')]=_[_0x484575('0x63')](_0x5eecbe[_0x484575('0x4b')],_0x5eecbe[_0x484575('0x11')]),_0x457261['attributes']=_[_0x484575('0x63')](_0x5eecbe[_0x484575('0x4b')],qs[_0x484575('0x2d')](_0x290908[_0x484575('0x11')][_0x484575('0x2d')])),_0x457261[_0x484575('0xdf')]=_0x457261[_0x484575('0xdf')][_0x484575('0xdc')]?_0x457261[_0x484575('0xdf')]:_0x5eecbe[_0x484575('0x4b')],_0x457261['order']=qs['sort'](_0x290908[_0x484575('0x11')][_0x484575('0x120')]),_0x457261[_0x484575('0x46')]=qs[_0x484575('0x25')](_[_0x484575('0xa0')](_0x290908[_0x484575('0x11')],_0x5eecbe[_0x484575('0x25')])),_0x290908[_0x484575('0x11')][_0x484575('0xb9')]&&(_0x457261[_0x484575('0x46')]=_[_0x484575('0x15')](_0x457261[_0x484575('0x46')],{[Op['or']]:_['map'](_0x457261[_0x484575('0xdf')],function(_0x127098){const _0x6bf92e=_0x484575,_0x5e36c1={};return _0x5e36c1[_0x127098]={[Op['like']]:'%'+_0x290908[_0x6bf92e('0x11')][_0x6bf92e('0xb9')]+'%'},_0x5e36c1;})})),_0x457261=_[_0x484575('0x15')]({},_0x457261,_0x290908['options']),_0x261387[_0x484575('0x3f')](_0x457261);})[_0x2241ea('0x145')](function(_0x3ef432){const _0x5ce794=_0x2241ea;if(_0x3ef432)return _0x522ed8=_0x3ef432[_0x5ce794('0xdc')],typeof _0x290908[_0x5ce794('0x11')][_0x5ce794('0x13a')]===_0x5ce794('0x41')&&(_0x457261[_0x5ce794('0x7e')]=qs[_0x5ce794('0x7e')](_0x290908[_0x5ce794('0x11')]['limit']),_0x457261[_0x5ce794('0x55')]=qs[_0x5ce794('0x55')](_0x290908['query'][_0x5ce794('0x55')])),_0x261387[_0x5ce794('0x3f')](_0x457261);})[_0x2241ea('0x145')](function(_0x4c2ec0){if(_0x4c2ec0)return _0x4c2ec0?{'count':_0x522ed8,'rows':_0x4c2ec0}:null;})[_0x2241ea('0x145')](respondWithResult(_0x188468,null))[_0x2241ea('0x128')](handleError(_0x188468,null));},exports['addTeams']=function(_0xee87bf,_0x553131){const _0x4c3615=_0x2f6783;return db[_0x4c3615('0xf8')][_0x4c3615('0xd0')]({'where':{'id':_0xee87bf[_0x4c3615('0xf4')]['id']}})[_0x4c3615('0x145')](handleEntityNotFound(_0x553131,null))[_0x4c3615('0x145')](function(_0x107b3c){const _0x47bd9b=_0x4c3615;if(_0x107b3c){const _0x45eac5=_0x107b3c[_0x47bd9b('0x44')]({'plain':!![]});return _0x107b3c[_0x47bd9b('0x12c')](_0xee87bf[_0x47bd9b('0x49')][_0x47bd9b('0x169')],_[_0x47bd9b('0x93')](_0xee87bf[_0x47bd9b('0x49')],[_0x47bd9b('0x169'),'id'])||{})['then'](function(){const _0x50abe6=_0x47bd9b;for(let _0x2af2c6=0x0;_0x2af2c6<_0xee87bf[_0x50abe6('0x49')][_0x50abe6('0x169')][_0x50abe6('0xdc')];_0x2af2c6++){let _0x4733d9=[];db[_0x50abe6('0xa3')][_0x50abe6('0xd0')]({'where':{'id':_0xee87bf[_0x50abe6('0x49')][_0x50abe6('0x169')][_0x2af2c6]}})[_0x50abe6('0x145')](function(_0x55659d){const _0xe3541b=_0x50abe6;return _0x4733d9[_0xe3541b('0xc6')](_0x55659d['getVoiceQueues']()[_0xe3541b('0x145')](function(_0x312522){const _0x341906=_0xe3541b;for(let _0x5787f6=0x0;_0x5787f6<_0x312522[_0x341906('0xdc')];_0x5787f6++){_0x312522[_0x5787f6][_0x341906('0x151')]('channel',_0x341906('0x1b'));}return _0x312522;})),_0x4733d9[_0xe3541b('0xc6')](_0x55659d['getChatQueues']()[_0xe3541b('0x145')](function(_0x159d6c){const _0x36af93=_0xe3541b;for(let _0x186ca5=0x0;_0x186ca5<_0x159d6c[_0x36af93('0xdc')];_0x186ca5++){_0x159d6c[_0x186ca5][_0x36af93('0x151')](_0x36af93('0x32'),_0x36af93('0x12a'));}return _0x159d6c;})),_0x4733d9['push'](_0x55659d[_0xe3541b('0x167')]()['then'](function(_0x3e95ed){const _0x193cf7=_0xe3541b;for(let _0x21c9e9=0x0;_0x21c9e9<_0x3e95ed[_0x193cf7('0xdc')];_0x21c9e9++){_0x3e95ed[_0x21c9e9][_0x193cf7('0x151')](_0x193cf7('0x32'),_0x193cf7('0x97'));}return _0x3e95ed;})),_0x4733d9[_0xe3541b('0xc6')](_0x55659d[_0xe3541b('0x148')]()[_0xe3541b('0x145')](function(_0x192912){const _0x2d0b3f=_0xe3541b;for(let _0x9117bf=0x0;_0x9117bf<_0x192912[_0x2d0b3f('0xdc')];_0x9117bf++){_0x192912[_0x9117bf]['setDataValue'](_0x2d0b3f('0x32'),_0x2d0b3f('0x106'));}return _0x192912;})),_0x4733d9['push'](_0x55659d[_0xe3541b('0xba')]()[_0xe3541b('0x145')](function(_0x5a7f54){const _0x31bad5=_0xe3541b;for(let _0x2917d0=0x0;_0x2917d0<_0x5a7f54[_0x31bad5('0xdc')];_0x2917d0++){_0x5a7f54[_0x2917d0][_0x31bad5('0x151')](_0x31bad5('0x32'),_0x31bad5('0x33'));}return _0x5a7f54;})),_0x4733d9['push'](_0x55659d['getFaxQueues']()['then'](function(_0x5218fa){const _0x22b81f=_0xe3541b;for(let _0x513cab=0x0;_0x513cab<_0x5218fa['length'];_0x513cab++){_0x5218fa[_0x513cab][_0x22b81f('0x151')](_0x22b81f('0x32'),_0x22b81f('0x15f'));}return _0x5218fa;})),_0x4733d9[_0xe3541b('0xc6')](_0x55659d[_0xe3541b('0x121')]()['then'](function(_0x41e6f5){const _0x4455a5=_0xe3541b;for(let _0x472c50=0x0;_0x472c50<_0x41e6f5[_0x4455a5('0xdc')];_0x472c50++){_0x41e6f5[_0x472c50][_0x4455a5('0x151')](_0x4455a5('0x32'),_0x4455a5('0x2'));}return _0x41e6f5;})),Promise['all'](_0x4733d9);})[_0x50abe6('0x145')](function(_0x6505d1){const _0x3e2fad=_0x50abe6,_0x4046d9=_[_0x3e2fad('0x114')](_0x6505d1);return _0x4733d9=[],db['sequelize']['transaction'](function(_0x190f19){const _0x2777a2=_0x3e2fad;for(let _0x27f851=0x0;_0x27f851<_0x4046d9[_0x2777a2('0xdc')];_0x27f851++){_0x4733d9[_0x2777a2('0xc6')](_0x4046d9[_0x27f851][_0x2777a2('0x74')](_0x45eac5['id']),{'transaction':_0x190f19});}return Promise['all'](_0x4733d9)[_0x2777a2('0x145')](function(){const _0x22c003=_0x2777a2;if(_0x45eac5[_0x22c003('0x14f')])return Promise['each'](_[_0x22c003('0xb9')](_0x4046d9,function(_0x1ac28c){const _0x2b5ea4=_0x22c003;return _0x1ac28c[_0x2b5ea4('0x9b')](_0x2b5ea4('0x32'))==='Voice';}),function(_0x450fad){const _0xb8d12d=_0x22c003;return db[_0xb8d12d('0xfd')][_0xb8d12d('0x91')]({'membername':_0x45eac5[_0xb8d12d('0x12')],'UserId':_0x45eac5['id'],'queue_name':_0x450fad[_0xb8d12d('0x12')],'VoiceQueueId':_0x450fad['id'],'interface':_[_0xb8d12d('0xe6')](_0x45eac5[_0xb8d12d('0x12f')])?util[_0xb8d12d('0x0')](_0xb8d12d('0x15c'),_0x45eac5[_0xb8d12d('0x12')]):_0x45eac5[_0xb8d12d('0x12f')],'paused':_0x45eac5['voicePause']||![],'penalty':_0x45eac5[_0xb8d12d('0x144')]},{'transaction':_0x190f19});});else return;})['then'](function(){const _0x3f9365=_0x2777a2;for(let _0x430ea2=0x0;_0x430ea2<_0x4046d9['length'];_0x430ea2++){const _0x51f54b=_0x4046d9[_0x430ea2][_0x3f9365('0x9b')](_0x3f9365('0x32')),_0x145217=_0x51f54b+_0x3f9365('0x108');socket[_0x3f9365('0x116')](_0x3f9365('0x8f')+_0x51f54b+_0x3f9365('0x146'),{'UserId':_0x45eac5['id'],[_0x145217]:_0x4046d9[_0x430ea2]['id']});}});});});}});}})['then'](respondWithStatusCode(_0x553131,null))['catch'](handleError(_0x553131,null));},exports[_0x2f6783('0xd6')]=function(_0x26fd9a,_0x2edd6c){const _0x2cdfba=_0x2f6783;return db[_0x2cdfba('0xf8')]['findOne']({'where':{'id':_0x26fd9a[_0x2cdfba('0xf4')]['id']}})[_0x2cdfba('0x145')](handleEntityNotFound(_0x2edd6c,null))[_0x2cdfba('0x145')](function(_0x4f08bd){const _0x1bf115=_0x2cdfba;if(_0x4f08bd){const _0x461ee0=_0x4f08bd['get']({'plain':!![]}),_0x3c84bc=_0x26fd9a[_0x1bf115('0x11')]['ids'];return _0x4f08bd[_0x1bf115('0xd6')](_0x3c84bc)['then'](function(){const _0x1f416b=_0x1bf115;for(let _0x5aa7f9=0x0;_0x5aa7f9<_0x3c84bc['length'];_0x5aa7f9++){let _0x3cc907=[];db[_0x1f416b('0xa3')][_0x1f416b('0xd0')]({'where':{'id':_0x3c84bc[_0x5aa7f9]}})['then'](function(_0x15d8e7){const _0x2148f0=_0x1f416b;return _0x3cc907[_0x2148f0('0xc6')](_0x15d8e7['getVoiceQueues']()[_0x2148f0('0x145')](function(_0x5b3978){const _0x2ebbca=_0x2148f0;for(let _0x34781b=0x0;_0x34781b<_0x5b3978[_0x2ebbca('0xdc')];_0x34781b++){_0x5b3978[_0x34781b][_0x2ebbca('0x151')](_0x2ebbca('0x32'),_0x2ebbca('0x1b'));}return _0x5b3978;})),_0x3cc907[_0x2148f0('0xc6')](_0x15d8e7[_0x2148f0('0xac')]()['then'](function(_0xe4c0a1){const _0x280ef7=_0x2148f0;for(let _0x4d3037=0x0;_0x4d3037<_0xe4c0a1['length'];_0x4d3037++){_0xe4c0a1[_0x4d3037]['setDataValue'](_0x280ef7('0x32'),_0x280ef7('0x12a'));}return _0xe4c0a1;})),_0x3cc907['push'](_0x15d8e7[_0x2148f0('0x167')]()[_0x2148f0('0x145')](function(_0x4c9289){const _0x336497=_0x2148f0;for(let _0x391420=0x0;_0x391420<_0x4c9289[_0x336497('0xdc')];_0x391420++){_0x4c9289[_0x391420]['setDataValue']('channel',_0x336497('0x97'));}return _0x4c9289;})),_0x3cc907['push'](_0x15d8e7[_0x2148f0('0x148')]()['then'](function(_0x57fa2f){const _0x3ecd2d=_0x2148f0;for(let _0x559553=0x0;_0x559553<_0x57fa2f['length'];_0x559553++){_0x57fa2f[_0x559553]['setDataValue'](_0x3ecd2d('0x32'),_0x3ecd2d('0x106'));}return _0x57fa2f;})),_0x3cc907['push'](_0x15d8e7['getWhatsappQueues']()['then'](function(_0x136bde){const _0x23f17d=_0x2148f0;for(let _0x23d7ee=0x0;_0x23d7ee<_0x136bde['length'];_0x23d7ee++){_0x136bde[_0x23d7ee][_0x23f17d('0x151')](_0x23f17d('0x32'),_0x23f17d('0x33'));}return _0x136bde;})),_0x3cc907[_0x2148f0('0xc6')](_0x15d8e7[_0x2148f0('0x3b')]()[_0x2148f0('0x145')](function(_0x171355){const _0x23e548=_0x2148f0;for(let _0x3a1a7a=0x0;_0x3a1a7a<_0x171355['length'];_0x3a1a7a++){_0x171355[_0x3a1a7a][_0x23e548('0x151')](_0x23e548('0x32'),_0x23e548('0x15f'));}return _0x171355;})),_0x3cc907[_0x2148f0('0xc6')](_0x15d8e7[_0x2148f0('0x121')]()[_0x2148f0('0x145')](function(_0x2c6ff0){const _0x3bb89d=_0x2148f0;for(let _0x2d5ce6=0x0;_0x2d5ce6<_0x2c6ff0[_0x3bb89d('0xdc')];_0x2d5ce6++){_0x2c6ff0[_0x2d5ce6]['setDataValue'](_0x3bb89d('0x32'),_0x3bb89d('0x2'));}return _0x2c6ff0;})),Promise[_0x2148f0('0x7b')](_0x3cc907);})[_0x1f416b('0x145')](function(_0x2ae8f7){const _0x463d39=_0x1f416b,_0x424fbb=_[_0x463d39('0x114')](_0x2ae8f7);return _0x3cc907=[],db[_0x463d39('0x109')][_0x463d39('0x7f')](function(_0x3341a9){const _0x3b6019=_0x463d39;for(let _0x591a3e=0x0;_0x591a3e<_0x424fbb[_0x3b6019('0xdc')];_0x591a3e++){_0x3cc907[_0x3b6019('0xc6')](_0x424fbb[_0x591a3e]['removeAgent'](_0x461ee0['id']),{'transaction':_0x3341a9});}return Promise['all'](_0x3cc907)['then'](function(){const _0x1259ca=_0x3b6019;if(_0x461ee0[_0x1259ca('0x14f')])return Promise['each'](_[_0x1259ca('0xb9')](_0x424fbb,function(_0x301466){const _0x332a20=_0x1259ca;return _0x301466[_0x332a20('0x9b')]('channel')===_0x332a20('0x1b');}),function(_0x4474be){const _0x3a28a1=_0x1259ca;return db[_0x3a28a1('0xfd')][_0x3a28a1('0xe4')]({'where':{'VoiceQueueId':_0x4474be['id'],'UserId':_0x461ee0['id']},'transaction':_0x3341a9});});else return;})['then'](function(){const _0x5f068e=_0x3b6019;for(let _0x4ae0c0=0x0;_0x4ae0c0<_0x424fbb[_0x5f068e('0xdc')];_0x4ae0c0++){const _0x38e3cc=_0x424fbb[_0x4ae0c0]['getDataValue'](_0x5f068e('0x32')),_0x2c1ded=_0x38e3cc+'QueueId';socket[_0x5f068e('0x116')](_0x5f068e('0x8f')+_0x38e3cc+_0x5f068e('0xb4'),{'UserId':_0x461ee0['id'],[_0x2c1ded]:_0x424fbb[_0x4ae0c0]['id']});}});});});}});}})[_0x2cdfba('0x145')](respondWithStatusCode(_0x2edd6c,null))[_0x2cdfba('0x128')](handleError(_0x2edd6c,null));},exports[_0x2f6783('0x1a')]=function(_0x58d1d5,_0x26a25c){const _0x3ca717=_0x2f6783;let _0x340f0a={};const _0xb20627={};let _0x2fe5df,_0x5b9786;return db[_0x3ca717('0xf8')][_0x3ca717('0xd0')]({'where':{'id':_0x58d1d5[_0x3ca717('0xf4')]['id']}})['then'](handleEntityNotFound(_0x26a25c,null))[_0x3ca717('0x145')](function(_0x59f9d9){const _0x2f385d=_0x3ca717;if(_0x59f9d9)return _0x2fe5df=_0x59f9d9,_0xb20627[_0x2f385d('0x4b')]=_[_0x2f385d('0x9a')](db[_0x2f385d('0x14c')][_0x2f385d('0x113')]),_0xb20627[_0x2f385d('0x11')]=_[_0x2f385d('0x9a')](_0x58d1d5[_0x2f385d('0x11')]),_0xb20627[_0x2f385d('0x25')]=_[_0x2f385d('0x63')](_0xb20627[_0x2f385d('0x4b')],_0xb20627['query']),_0x340f0a[_0x2f385d('0xdf')]=_[_0x2f385d('0x63')](_0xb20627['model'],qs[_0x2f385d('0x2d')](_0x58d1d5[_0x2f385d('0x11')][_0x2f385d('0x2d')])),_0x340f0a[_0x2f385d('0xdf')]=_0x340f0a[_0x2f385d('0xdf')][_0x2f385d('0xdc')]?_0x340f0a['attributes']:_0xb20627['model'],_0x340f0a[_0x2f385d('0xed')]=qs['sort'](_0x58d1d5['query'][_0x2f385d('0x120')]),_0x340f0a[_0x2f385d('0x46')]=qs['filters'](_['pick'](_0x58d1d5['query'],_0xb20627[_0x2f385d('0x25')])),_0x58d1d5['query'][_0x2f385d('0xb9')]&&(_0x340f0a[_0x2f385d('0x46')]=_[_0x2f385d('0x15')](_0x340f0a['where'],{[Op['or']]:_['map'](_0x340f0a[_0x2f385d('0xdf')],function(_0x1ec610){const _0x26cad0=_0x2f385d,_0x5ab412={};return _0x5ab412[_0x1ec610]={[Op['like']]:'%'+_0x58d1d5['query'][_0x26cad0('0xb9')]+'%'},_0x5ab412;})})),_0x340f0a=_[_0x2f385d('0x15')]({},_0x340f0a,_0x58d1d5['options']),_0x2fe5df[_0x2f385d('0x1a')](_0x340f0a);})[_0x3ca717('0x145')](function(_0x1f7f91){const _0xa2d8d5=_0x3ca717;if(_0x1f7f91)return _0x5b9786=_0x1f7f91[_0xa2d8d5('0xdc')],typeof _0x58d1d5[_0xa2d8d5('0x11')][_0xa2d8d5('0x13a')]===_0xa2d8d5('0x41')&&(_0x340f0a[_0xa2d8d5('0x7e')]=qs[_0xa2d8d5('0x7e')](_0x58d1d5[_0xa2d8d5('0x11')][_0xa2d8d5('0x7e')]),_0x340f0a[_0xa2d8d5('0x55')]=qs[_0xa2d8d5('0x55')](_0x58d1d5[_0xa2d8d5('0x11')][_0xa2d8d5('0x55')])),_0x2fe5df[_0xa2d8d5('0x1a')](_0x340f0a);})[_0x3ca717('0x145')](function(_0x4473c9){if(_0x4473c9)return _0x4473c9?{'count':_0x5b9786,'rows':_0x4473c9}:null;})[_0x3ca717('0x145')](respondWithResult(_0x26a25c,null))['catch'](handleError(_0x26a25c,null));},exports['getAgents']=function(_0x545a3c,_0x483b4d){const _0xd090a=_0x2f6783;let _0x3e3610={};const _0x211fbf={};let _0x5d8dc4;return db['User']['findOne']({'where':{'id':_0x545a3c[_0xd090a('0xf4')]['id']}})[_0xd090a('0x145')](handleEntityNotFound(_0x483b4d,null))[_0xd090a('0x145')](function(_0x322235){const _0x3828a9=_0xd090a;if(_0x322235)return _0x5d8dc4=_0x322235,_0x211fbf[_0x3828a9('0x4b')]=_['keys'](db[_0x3828a9('0xf8')][_0x3828a9('0x113')]),_0x211fbf[_0x3828a9('0x11')]=_[_0x3828a9('0x9a')](_0x545a3c[_0x3828a9('0x11')]),_0x211fbf[_0x3828a9('0x25')]=_[_0x3828a9('0x63')](_0x211fbf['model'],_0x211fbf[_0x3828a9('0x11')]),_0x3e3610[_0x3828a9('0xdf')]=_[_0x3828a9('0x63')](_0x211fbf[_0x3828a9('0x4b')],qs[_0x3828a9('0x2d')](_0x545a3c[_0x3828a9('0x11')]['fields'])),_0x3e3610[_0x3828a9('0xdf')]=_0x3e3610[_0x3828a9('0xdf')]['length']?_0x3e3610['attributes']:_0x211fbf[_0x3828a9('0x4b')],_0x3e3610[_0x3828a9('0xed')]=qs['sort'](_0x545a3c[_0x3828a9('0x11')][_0x3828a9('0x120')]),_0x3e3610['where']=qs[_0x3828a9('0x25')](_[_0x3828a9('0xa0')](_0x545a3c['query'],_0x211fbf['filters'])),_0x545a3c[_0x3828a9('0x11')][_0x3828a9('0xb9')]&&(_0x3e3610[_0x3828a9('0x46')]=_[_0x3828a9('0x15')](_0x3e3610[_0x3828a9('0x46')],{[Op['or']]:_[_0x3828a9('0x117')](_0x3e3610[_0x3828a9('0xdf')],function(_0x42a569){const _0x288608=_0x3828a9,_0x35e3c1={};return _0x35e3c1[_0x42a569]={[Op[_0x288608('0x10c')]]:'%'+_0x545a3c[_0x288608('0x11')][_0x288608('0xb9')]+'%'},_0x35e3c1;})})),_0x3e3610[_0x3828a9('0x4b')]=db[_0x3828a9('0xf8')],_0x3e3610['as']='Agents',_0x3e3610=_[_0x3828a9('0x15')]({},_0x3e3610,_0x545a3c[_0x3828a9('0x9')]),_0x5d8dc4[_0x3828a9('0x6c')]({'include':[_0x3e3610]});})[_0xd090a('0x145')](function(_0x1c9f8f){const _0x106a51=_0xd090a;if(_0x1c9f8f){let _0x2300c4={};const _0x47ad40=[];for(let _0x5da653=0x0;_0x5da653<_0x1c9f8f[_0x106a51('0xdc')];_0x5da653+=0x1){for(let _0x48da50=0x0,_0x32447f;_0x48da50<_0x1c9f8f[_0x5da653][_0x106a51('0xb0')][_0x106a51('0xdc')];_0x48da50+=0x1){_0x32447f=_0x1c9f8f[_0x5da653][_0x106a51('0xb0')][_0x48da50][_0x106a51('0x44')]({'plain':!![]}),_0x2300c4[_0x32447f['id']]=_0x32447f;}}_0x2300c4=_[_0x106a51('0xdb')](_0x2300c4);for(let _0x40bc71=qs[_0x106a51('0x55')](_0x545a3c['query'][_0x106a51('0x55')]);_0x40bc71<_0x2300c4[_0x106a51('0xdc')]&&_0x47ad40[_0x106a51('0xdc')]{crypto['randomBytes'](_0x1cb9f1,function(_0x723182,_0x1c211f){return _0x723182&&_0x13472b(_0x723182),_0x1b5e83(_0x1c211f['toString']('base64'));});});},_0x2c3658[_0x262296('0xb')][_0x262296('0x1c')]=function(_0x39dc75,_0x159f52){const _0xdd694b=_0x262296;if(!_0x39dc75||!this[_0xdd694b('0x8')])return _0x159f52?_0x159f52(null):null;const _0x2443c5=0x2710,_0xe90736=0x40,_0x483eb1=Buffer[_0xdd694b('0x13')](this[_0xdd694b('0x8')],_0xdd694b('0x19'));if(!_0x159f52)return crypto[_0xdd694b('0x0')](_0x39dc75,_0x483eb1,_0x2443c5,_0xe90736,'sha1')[_0xdd694b('0x2')](_0xdd694b('0x19'));return crypto[_0xdd694b('0x17')](_0x39dc75,_0x483eb1,_0x2443c5,_0xe90736,'sha1',function(_0x5cbe9c,_0x35e4bb){const _0x395fcc=_0xdd694b;return _0x5cbe9c&&_0x159f52(_0x5cbe9c),_0x159f52(null,_0x35e4bb[_0x395fcc('0x2')](_0x395fcc('0x19')));});},_0x2c3658[_0x262296('0xb')][_0x262296('0x40')]=async function(){const _0xcd7263=_0x262296;if(!this['password'])return null;if(!_[_0xcd7263('0x30')](this['password'])&&authTypes['indexOf'](this['provider'])===-0x1)throw new Error(_0xcd7263('0x2d'));return this[_0xcd7263('0x8')]=await this[_0xcd7263('0x2c')](),new Promise((_0x6c34a1,_0x38db42)=>{const _0x314ee2=_0xcd7263;this[_0x314ee2('0x1c')](this['password'],(_0xd4abe3,_0x12a00f)=>{const _0x53fa51=_0x314ee2;_0xd4abe3?_0x38db42(_0xd4abe3):(this[_0x53fa51('0x45')]=_0x12a00f,_0x6c34a1());});});},_0x2c3658[_0x262296('0xb')]['updateMd5Password']=function(){const _0x3d7593=_0x262296;this[_0x3d7593('0x1e')]=md5(this[_0x3d7593('0x35')]+':asterisk:'+this['password']);},_0x2c3658;}; \ No newline at end of file +const a650_0x71fe=['extensionMonitor','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','base64','indexOf','updateMd5Password','models','utf8','sequelize','./user.attributes','SIP/%s,,tTxX','changed','Invalid\x20password','concat','google','destroy','local','exports','system','MixMonitor','function',':asterisk:','format','StopMixMonitor','VoiceExtension','${UNIQUEID}.%s,ab','length','Authenticate','from','ChanSpy','includes','makeSaltAsync','makeSalt','from-sip','md5secret','chanspy','resolve','util','User','WAV','internal','record','CDR(type)=%s','%s%s','name','options','push','pbkdf2Sync','Dial','merge','toString','isEmpty','VoiceChanSpy','define','CDR(type)=internal','recordingFormat','catch','prototype','updatePassword','_XCALLY_MIXMONITOR_FORMAT=%s','lodash','Missing\x20Callback','gsm','auth','Set','randomBytes','encryptPassword','context','salt','utf8_bin','bulkCreate','Hangup','then','prefix','md5','SIP/%s,%s','password','sha1','defaults','wav','join','findAll'];(function(_0x2a9266,_0x71fef0){const _0x4f56ee=function(_0x53b497){while(--_0x53b497){_0x2a9266['push'](_0x2a9266['shift']());}};_0x4f56ee(++_0x71fef0);}(a650_0x71fe,0x19c));const a650_0x4f56=function(_0x2a9266,_0x71fef0){_0x2a9266=_0x2a9266-0x0;let _0x4f56ee=a650_0x71fe[_0x2a9266];return _0x4f56ee;};const _0x3f9e27=a650_0x4f56;'use strict';const _=require(_0x3f9e27('0x34')),util=require(_0x3f9e27('0x1d')),crypto=require('crypto'),md5=require(_0x3f9e27('0x42')),sequelize=require(_0x3f9e27('0x0')),{Op}=sequelize,attributes=require(_0x3f9e27('0x1')),addUserApplication=function(_0x53b497,_0x97e4fb){const _0x4e46a9=_0x3f9e27,_0xeb98fd=[_0x4e46a9('0x47'),_0x4e46a9('0x1f'),_0x4e46a9('0x36')],_0x46c7db={'context':_0x53b497[_0x4e46a9('0x3b')]||_0x4e46a9('0x19'),'exten':_0x97e4fb,'type':_0x4e46a9('0xa'),'isApp':![],'UserId':_0x53b497['id']},_0x438ce9=[{'app':_0x4e46a9('0x38'),'appdata':_0x4e46a9('0x2e')}];_0x53b497[_0x4e46a9('0x4a')]&&_[_0x4e46a9('0x16')](_0xeb98fd,_0x53b497[_0x4e46a9('0x4a')])?(_0x438ce9['push']({'app':_0x4e46a9('0x38'),'appdata':_0x4e46a9('0x4b')}),_0x438ce9[_0x4e46a9('0x26')]({'app':_0x4e46a9('0x38'),'appdata':util[_0x4e46a9('0xe')](_0x4e46a9('0x33'),_0x53b497[_0x4e46a9('0x4a')])}),_0x438ce9['push']({'app':_0x4e46a9('0x28'),'appdata':util[_0x4e46a9('0xe')]('SIP/%s,,tTxXU(xcally-mixmonitor-context)',_0x53b497[_0x4e46a9('0x24')])})):_0x438ce9[_0x4e46a9('0x26')]({'app':_0x4e46a9('0x28'),'appdata':util[_0x4e46a9('0xe')](_0x4e46a9('0x2'),_0x53b497['name'])});_0x438ce9[_0x4e46a9('0x26')]({'app':_0x4e46a9('0x3f')});for(let _0x1893ba=0x0;_0x1893ba<_0x438ce9[_0x4e46a9('0x12')];_0x1893ba++){_0x438ce9[_0x1893ba]['priority']=_0x1893ba+0x1,_0x438ce9[_0x1893ba]=_[_0x4e46a9('0x46')](_0x438ce9[_0x1893ba],_0x46c7db);}return _0x438ce9;},addChanSpyApplications=function(_0x4a5b61,_0x38fb19,_0x486cc1){const _0x13b962=_0x3f9e27,_0x50f685={'context':_0x4a5b61['context']||'from-sip','type':_0x13b962('0xa'),'isApp':![],'UserId':_0x4a5b61['id']},_0x44ef8a=[];for(let _0x4efab1=0x0,_0x5fc998=0x1;_0x4efab1<_0x486cc1[_0x13b962('0x12')];_0x4efab1++,_0x5fc998=0x1){const _0x2e47b8={'exten':util[_0x13b962('0xe')](_0x13b962('0x23'),_0x486cc1[_0x4efab1][_0x13b962('0x41')],_0x38fb19),'ChanSpyId':_0x486cc1[_0x4efab1]['id']};_0x44ef8a[_0x13b962('0x26')](_[_0x13b962('0x29')]({'app':'Set','appdata':util['format'](_0x13b962('0x22'),_0x13b962('0x1b')),'priority':_0x5fc998++},_0x50f685,_0x2e47b8)),_0x486cc1[_0x4efab1][_0x13b962('0x21')]&&_0x44ef8a[_0x13b962('0x26')](_[_0x13b962('0x29')]({'app':_0x13b962('0xb'),'appdata':util[_0x13b962('0xe')](_0x13b962('0x11'),_0x486cc1[_0x4efab1][_0x13b962('0x2f')]),'priority':_0x5fc998++},_0x50f685,_0x2e47b8)),_0x486cc1[_0x4efab1][_0x13b962('0x37')]&&_0x44ef8a[_0x13b962('0x26')](_['merge']({'app':_0x13b962('0x13'),'appdata':_0x486cc1[_0x4efab1][_0x13b962('0x44')],'priority':_0x5fc998++},_0x50f685,_0x2e47b8)),_0x44ef8a['push'](_[_0x13b962('0x29')]({'app':_0x13b962('0x15'),'appdata':util[_0x13b962('0xe')](_0x13b962('0x43'),_0x4a5b61[_0x13b962('0x24')],_0x486cc1[_0x4efab1][_0x13b962('0x25')]?_0x486cc1[_0x4efab1][_0x13b962('0x25')][_0x13b962('0x48')](''):''),'priority':_0x5fc998++},_0x50f685,_0x2e47b8)),_0x486cc1[_0x4efab1][_0x13b962('0x21')]&&_0x44ef8a['push'](_[_0x13b962('0x29')]({'app':_0x13b962('0xf'),'priority':_0x5fc998++},_0x50f685,_0x2e47b8));}return _0x44ef8a;},getChanSpy=function(_0x23d924,_0x381983){return new Promise(function(_0x590c51,_0x53560a){const _0x294628=a650_0x4f56;return _0x23d924[_0x294628('0x2c')][_0x294628('0x49')]()['then'](function(_0x4825ab){const _0x15b53f=_0x294628;if(_0x4825ab){let _0x38ff31=addChanSpyApplications(_0x381983,_0x381983[_0x15b53f('0x20')],_0x4825ab);return _0x381983[_0x15b53f('0x20')]!=_0x381983[_0x15b53f('0x24')]&&(_0x38ff31=_0x38ff31['concat'](addChanSpyApplications(_0x381983,_0x381983[_0x15b53f('0x24')],_0x4825ab))),_0x590c51(_0x38ff31);}return _0x590c51([]);})[_0x294628('0x30')](function(_0x4452db){_0x53560a(_0x4452db);});});},authTypes=[_0x3f9e27('0x6'),_0x3f9e27('0x8')];module[_0x3f9e27('0x9')]=function(_0x54c657){const _0x1e2111=_0x3f9e27,_0x3e6fbe=_0x54c657[_0x1e2111('0x4f')],_0x6ab582=_0x54c657[_0x1e2111('0x2d')](_0x1e2111('0x1e'),attributes,{'tableName':'users','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x3808ba){const _0x9aef20=_0x1e2111;return _0x3808ba[_0x9aef20('0x4e')](),_0x3808ba[_0x9aef20('0x32')]();},'beforeUpdate':function(_0x4fa0a8){const _0xf4d41e=_0x1e2111;return _0x4fa0a8[_0xf4d41e('0x3')](_0xf4d41e('0x44'))?(_0x4fa0a8[_0xf4d41e('0x4e')](),_0x4fa0a8[_0xf4d41e('0x32')]()):Promise[_0xf4d41e('0x1c')]();},'afterCreate':function(_0x548111){const _0x1e5197=_0x1e2111;let _0x468543=addUserApplication(_0x548111,_0x548111[_0x1e5197('0x20')]);return _0x548111[_0x1e5197('0x20')]!=_0x548111[_0x1e5197('0x24')]&&(_0x468543=_0x468543[_0x1e5197('0x5')](addUserApplication(_0x548111,_0x548111[_0x1e5197('0x24')]))),_0x3e6fbe['VoiceExtension'][_0x1e5197('0x3e')](_0x468543)['then'](function(){const _0x367320=_0x1e5197;if(_0x548111[_0x367320('0x1b')])return getChanSpy(_0x3e6fbe,_0x548111);})[_0x1e5197('0x40')](function(_0x43a658){const _0x29fba5=_0x1e5197;return _0x43a658&&_0x43a658[_0x29fba5('0x12')]?_0x3e6fbe['VoiceExtension'][_0x29fba5('0x3e')](_0x43a658):null;})[_0x1e5197('0x30')](function(_0x5cefc1){return _0x5cefc1;});},'afterUpdate':function(_0x2e190c){const _0xb2a553=_0x1e2111;return Promise['resolve']()[_0xb2a553('0x40')](function(){const _0x11999f=_0xb2a553;if(_0x2e190c[_0x11999f('0x3')](_0x11999f('0x1b'))||_0x2e190c['changed'](_0x11999f('0x3b')))return _0x3e6fbe[_0x11999f('0x10')][_0x11999f('0x7')]({'where':{'UserId':_0x2e190c['id'],'type':'system','ChanSpyId':{[Op['ne']]:null}}})[_0x11999f('0x40')](function(){if(_0x2e190c['chanspy'])return getChanSpy(_0x3e6fbe,_0x2e190c)['then'](function(_0x3a3d38){const _0x88e763=a650_0x4f56;if(_0x3a3d38&&_0x3a3d38[_0x88e763('0x12')])return _0x3e6fbe[_0x88e763('0x10')][_0x88e763('0x3e')](_0x3a3d38);});});})[_0xb2a553('0x40')](function(){const _0x654943=_0xb2a553;return _0x2e190c[_0x654943('0x3')](_0x654943('0x4a'))||_0x2e190c[_0x654943('0x3')](_0x654943('0x3b'))?_0x3e6fbe[_0x654943('0x10')]['destroy']({'where':{'UserId':_0x2e190c['id'],'type':_0x654943('0xa'),'ChanSpyId':null}})['then'](function(){const _0x39a70c=_0x654943;let _0xd09276=addUserApplication(_0x2e190c,_0x2e190c[_0x39a70c('0x20')]);return _0x2e190c[_0x39a70c('0x20')]!=_0x2e190c[_0x39a70c('0x24')]&&(_0xd09276=_0xd09276[_0x39a70c('0x5')](addUserApplication(_0x2e190c,_0x2e190c[_0x39a70c('0x24')]))),_0x3e6fbe[_0x39a70c('0x10')][_0x39a70c('0x3e')](_0xd09276);}):null;})['catch'](function(_0x4dcf40){return _0x4dcf40;});},'afterDestroy':function(_0x57f21d){const _0x50ad66=_0x1e2111;return _0x3e6fbe['VoiceExtension']['destroy']({'where':{'UserId':_0x57f21d['id'],'type':_0x50ad66('0xa')}});}},'charset':_0x1e2111('0x50'),'collate':_0x1e2111('0x3d')});return _0x6ab582[_0x1e2111('0x31')]['authenticate']=function(_0x370b81,_0x389998){const _0x374b9c=_0x1e2111;if(!_0x389998)return this[_0x374b9c('0x44')]===this[_0x374b9c('0x3a')](_0x370b81);const _0x1dbd24=this;this['encryptPassword'](_0x370b81,function(_0x2763ac,_0x1282d0){const _0x4534a0=_0x374b9c;_0x2763ac&&_0x389998(_0x2763ac),_0x1dbd24[_0x4534a0('0x44')]===_0x1282d0?_0x389998(null,!![]):_0x389998(null,![]);});},_0x6ab582[_0x1e2111('0x31')][_0x1e2111('0x18')]=function(_0x34eea4,_0x5d5529){const _0x582886=_0x1e2111,_0x38bb31=0x10;if(typeof arguments[0x0]===_0x582886('0xc'))_0x5d5529=arguments[0x0],_0x34eea4=_0x38bb31;else{if(typeof arguments[0x1]==='function')_0x5d5529=arguments[0x1];else throw new Error(_0x582886('0x35'));}return!_0x34eea4&&(_0x34eea4=_0x38bb31),crypto[_0x582886('0x39')](_0x34eea4,function(_0x241919,_0x1b8f99){const _0x1a5c3d=_0x582886;return _0x241919&&_0x5d5529(_0x241919),_0x5d5529(null,_0x1b8f99['toString'](_0x1a5c3d('0x4c')));});},_0x6ab582['prototype'][_0x1e2111('0x17')]=async function(_0x8ea1bc=0x10){return new Promise((_0x206e98,_0x53d6e8)=>{const _0xbba733=a650_0x4f56;crypto[_0xbba733('0x39')](_0x8ea1bc,function(_0x34160e,_0x13ca20){const _0x2bc539=_0xbba733;return _0x34160e&&_0x53d6e8(_0x34160e),_0x206e98(_0x13ca20[_0x2bc539('0x2a')](_0x2bc539('0x4c')));});});},_0x6ab582['prototype']['encryptPassword']=function(_0x54e4cb,_0x3024d0){const _0x122ff1=_0x1e2111;if(!_0x54e4cb||!this[_0x122ff1('0x3c')])return _0x3024d0?_0x3024d0(null):null;const _0x899a74=0x2710,_0x10903b=0x40,_0x4710e6=Buffer[_0x122ff1('0x14')](this['salt'],_0x122ff1('0x4c'));if(!_0x3024d0)return crypto[_0x122ff1('0x27')](_0x54e4cb,_0x4710e6,_0x899a74,_0x10903b,_0x122ff1('0x45'))[_0x122ff1('0x2a')]('base64');return crypto['pbkdf2'](_0x54e4cb,_0x4710e6,_0x899a74,_0x10903b,_0x122ff1('0x45'),function(_0x25f92c,_0x16ef88){const _0x1d3a86=_0x122ff1;return _0x25f92c&&_0x3024d0(_0x25f92c),_0x3024d0(null,_0x16ef88['toString'](_0x1d3a86('0x4c')));});},_0x6ab582[_0x1e2111('0x31')][_0x1e2111('0x32')]=async function(){const _0x5c580e=_0x1e2111;if(!this[_0x5c580e('0x44')])return null;if(!_[_0x5c580e('0x2b')](this[_0x5c580e('0x44')])&&authTypes[_0x5c580e('0x4d')](this['provider'])===-0x1)throw new Error(_0x5c580e('0x4'));return this[_0x5c580e('0x3c')]=await this[_0x5c580e('0x17')](),new Promise((_0xecd2ac,_0x5a3e51)=>{const _0x1e1056=_0x5c580e;this['encryptPassword'](this[_0x1e1056('0x44')],(_0x48d2f6,_0x19025f)=>{const _0x4552df=_0x1e1056;_0x48d2f6?_0x5a3e51(_0x48d2f6):(this[_0x4552df('0x44')]=_0x19025f,_0xecd2ac());});});},_0x6ab582[_0x1e2111('0x31')]['updateMd5Password']=function(){const _0x29f67f=_0x1e2111;this[_0x29f67f('0x1a')]=md5(this[_0x29f67f('0x24')]+_0x29f67f('0xd')+this[_0x29f67f('0x44')]);},_0x6ab582;}; \ No newline at end of file diff --git a/server/api/user/user.rpc.js b/server/api/user/user.rpc.js index 75fabe3..e531cd9 100644 --- a/server/api/user/user.rpc.js +++ b/server/api/user/user.rpc.js @@ -1 +1 @@ -const a651_0x530b=['internal','body','isNil','name','../../config/logger','map','catch','forEach','count','include','sms','where','stringify','util','set','channel','LOGININPAUSE','agent','LoginUser','upsert','model','loginInPause','lodash','openchannel','../../config/license/util','length','phone','getLicense','SIP/%s','findOne','role','%s%s','findAll','UnpauseUser','options','fax','getVoiceQueues','sequelize','../../rediscache','attributes','GetUser','PAUSE','UserVoiceQueueRt','type','merge','MemberReport','then','YYYY-MM-DD\x20HH:mm:ss','message','./user.socket','uniqueid','../../mysqldb','all','DEFAULT\x20PAUSE','User','destroy','Unknown\x20channel','moment','LogoutUser','chat','raw','info','push','interface','voice','debug','limit','error','bulkCreate','mobile','isValidChannel','ShowUser','format','UserVoiceQueue.penalty','register','update','../../config/utils','getChannels','agents','system'];(function(_0x28e8e2,_0x530b4c){const _0x569e05=function(_0x2766d5){while(--_0x2766d5){_0x28e8e2['push'](_0x28e8e2['shift']());}};_0x569e05(++_0x530b4c);}(a651_0x530b,0xe5));const a651_0x569e=function(_0x28e8e2,_0x530b4c){_0x28e8e2=_0x28e8e2-0x0;let _0x569e05=a651_0x530b[_0x28e8e2];return _0x569e05;};const _0x3ed7fc=a651_0x569e;'use strict';const _=require(_0x3ed7fc('0x21')),util=require(_0x3ed7fc('0x18')),db=require(_0x3ed7fc('0x3e'))['db'],logger=require(_0x3ed7fc('0xf'))('rpc'),moment=require(_0x3ed7fc('0x44')),utils=require(_0x3ed7fc('0x7')),{getSocket}=require(_0x3ed7fc('0x31')),socket=getSocket(),sequelize=require(_0x3ed7fc('0x30')),{Op}=sequelize;require(_0x3ed7fc('0x3c'))[_0x3ed7fc('0x5')](socket),exports[_0x3ed7fc('0x33')]=function(_0x2766d5){const _0x20cb91=this;return new Promise(function(_0x2d8d9f,_0x4bedb6){const _0x4ef854=a651_0x569e;return db[_0x4ef854('0x41')][_0x4ef854('0x2b')]({'raw':_0x2766d5[_0x4ef854('0x2d')]?_0x2766d5[_0x4ef854('0x2d')][_0x4ef854('0x47')]===undefined?!![]:![]:!![],'where':_0x2766d5[_0x4ef854('0x2d')]?_0x2766d5[_0x4ef854('0x2d')][_0x4ef854('0x16')]||null:null,'attributes':_0x2766d5[_0x4ef854('0x2d')]?_0x2766d5[_0x4ef854('0x2d')]['attributes']||null:null,'limit':_0x2766d5[_0x4ef854('0x2d')]?_0x2766d5[_0x4ef854('0x2d')][_0x4ef854('0x4d')]||null:null,'include':_0x2766d5['options']?_0x2766d5[_0x4ef854('0x2d')][_0x4ef854('0x14')]?_[_0x4ef854('0x10')](_0x2766d5[_0x4ef854('0x2d')][_0x4ef854('0x14')],function(_0x29dd61){const _0x482a63=_0x4ef854;return{'model':db[_0x29dd61[_0x482a63('0x1f')]],'as':_0x29dd61['as'],'attributes':_0x29dd61[_0x482a63('0x32')],'include':_0x29dd61[_0x482a63('0x14')]?_['map'](_0x29dd61['include'],function(_0x2617ec){const _0x5755b9=_0x482a63;return{'model':db[_0x2617ec[_0x5755b9('0x1f')]],'as':_0x2617ec['as'],'attributes':_0x2617ec['attributes'],'include':_0x2617ec['include']?_[_0x5755b9('0x10')](_0x2617ec[_0x5755b9('0x14')],function(_0x582764){const _0x685d7e=_0x5755b9;return{'model':db[_0x582764['model']],'as':_0x582764['as'],'attributes':_0x582764[_0x685d7e('0x32')]};}):[]};}):[]};}):[]:[]})[_0x4ef854('0x39')](function(_0x229000){const _0xb939c1=_0x4ef854;logger[_0xb939c1('0x48')](_0xb939c1('0x33'),_0x2766d5),logger[_0xb939c1('0x4c')](_0xb939c1('0x33'),_0x2766d5,JSON[_0xb939c1('0x17')](_0x229000)),_0x2d8d9f(_0x229000);})[_0x4ef854('0x11')](function(_0x59dd0e){const _0x2b50ab=_0x4ef854;logger[_0x2b50ab('0x4e')](_0x2b50ab('0x33'),_0x59dd0e[_0x2b50ab('0x3b')],_0x2766d5),_0x4bedb6(_0x20cb91[_0x2b50ab('0x4e')](0x1f4,_0x59dd0e[_0x2b50ab('0x3b')]));});});},exports[_0x3ed7fc('0x2')]=function(_0x59641b){const _0x4bd5ad=this;return new Promise(function(_0x24ff8a,_0x3a7d8a){const _0x13520b=a651_0x569e;return db['User'][_0x13520b('0x28')]({'raw':_0x59641b[_0x13520b('0x2d')]?_0x59641b[_0x13520b('0x2d')][_0x13520b('0x47')]===undefined?!![]:![]:!![],'where':_0x59641b[_0x13520b('0x2d')]?_0x59641b[_0x13520b('0x2d')][_0x13520b('0x16')]||null:null,'attributes':_0x59641b[_0x13520b('0x2d')]?_0x59641b['options']['attributes']||null:null,'include':_0x59641b[_0x13520b('0x2d')]?_0x59641b[_0x13520b('0x2d')]['include']?_[_0x13520b('0x10')](_0x59641b[_0x13520b('0x2d')][_0x13520b('0x14')],function(_0x5ac8cf){const _0x19df8d=_0x13520b;return{'model':db[_0x5ac8cf[_0x19df8d('0x1f')]],'as':_0x5ac8cf['as'],'attributes':_0x5ac8cf[_0x19df8d('0x32')],'include':_0x5ac8cf[_0x19df8d('0x14')]?_[_0x19df8d('0x10')](_0x5ac8cf[_0x19df8d('0x14')],function(_0x424f08){const _0x9d8ded=_0x19df8d;return{'model':db[_0x424f08['model']],'as':_0x424f08['as'],'attributes':_0x424f08[_0x9d8ded('0x32')],'include':_0x424f08[_0x9d8ded('0x14')]?_[_0x9d8ded('0x10')](_0x424f08[_0x9d8ded('0x14')],function(_0x225297){const _0x5ad057=_0x9d8ded;return{'model':db[_0x225297[_0x5ad057('0x1f')]],'as':_0x225297['as'],'attributes':_0x225297[_0x5ad057('0x32')]};}):[]};}):[]};}):[]:[]})[_0x13520b('0x39')](function(_0x31658e){const _0x2df702=_0x13520b;logger[_0x2df702('0x48')](_0x2df702('0x2'),_0x59641b),logger[_0x2df702('0x4c')]('ShowUser',_0x59641b,JSON[_0x2df702('0x17')](_0x31658e)),_0x24ff8a(_0x31658e);})[_0x13520b('0x11')](function(_0x3e653c){const _0x2b219b=_0x13520b;logger[_0x2b219b('0x4e')](_0x2b219b('0x2'),_0x3e653c['message'],_0x59641b),_0x3a7d8a(_0x4bd5ad[_0x2b219b('0x4e')](0x1f4,_0x3e653c[_0x2b219b('0x3b')]));});});},exports['PauseUser']=function(_0x5032fd){const _0x28fa50=this;return new Promise(function(_0x2b8058,_0x52e427){const _0x53b5d8=a651_0x569e;let _0x25bf78;return db[_0x53b5d8('0x41')][_0x53b5d8('0x28')]({'where':_0x5032fd[_0x53b5d8('0x2d')][_0x53b5d8('0x16')]||{},'attributes':['id',_0x53b5d8('0xe'),_0x53b5d8('0x29'),_0x53b5d8('0xb'),_0x53b5d8('0x4a')]})[_0x53b5d8('0x39')](function(_0xb54228){const _0x66bdf5=_0x53b5d8;if(_0xb54228)return _0x25bf78=_0xb54228,db[_0x66bdf5('0x35')][_0x66bdf5('0x6')]({'paused':0x1},{'where':{'UserId':_0x25bf78['id']},'individualHooks':!![]});})['then'](function(){const _0x1fd878=_0x53b5d8;if(_0x25bf78)return db[_0x1fd878('0x38')][_0x1fd878('0x2b')]({'where':{'membername':_0x25bf78[_0x1fd878('0xe')],'type':_0x1fd878('0x34'),'exitAt':null}});})['then'](function(_0x245953){const _0x152ff9=_0x53b5d8;if(_0x25bf78){if(_0x245953&&_0x245953[_0x152ff9('0x24')]){const _0x27e229=moment()[_0x152ff9('0x3')](_0x152ff9('0x3a'));for(let _0x2a033b=0x0,_0x23b4cf=_0x245953[_0x152ff9('0x24')];_0x2a033b<_0x23b4cf;_0x2a033b++){_0x245953[_0x2a033b][_0x152ff9('0x6')]({'exitAt':_0x27e229});}}}})[_0x53b5d8('0x39')](function(){const _0x3dfd42=_0x53b5d8;if(_0x25bf78){const _0x50723b=[],_0x4316f6=utils[_0x3dfd42('0x8')]();return _0x4316f6[_0x3dfd42('0x12')](function(_0x323f45){const _0x4c5fee=_0x3dfd42;_0x50723b[_0x4c5fee('0x49')]({'channel':_0x323f45,'membername':_0x25bf78[_0x4c5fee('0xe')],'interface':_[_0x4c5fee('0xd')](_0x25bf78[_0x4c5fee('0x4a')])?util[_0x4c5fee('0x3')]('SIP/%s',_0x25bf78[_0x4c5fee('0xe')]):_0x25bf78['interface'],'type':_0x4c5fee('0x34'),'enterAt':moment()[_0x4c5fee('0x3')]('YYYY-MM-DD\x20HH:mm:ss'),'data1':_0x5032fd[_0x4c5fee('0xc')][_0x4c5fee('0x36')]||_0x4c5fee('0x40'),'role':_0x25bf78[_0x4c5fee('0x29')],'internal':_0x25bf78['internal'],'uniqueid':_0x5032fd[_0x4c5fee('0xc')][_0x4c5fee('0x3d')]||null});}),db['MemberReport'][_0x3dfd42('0x4f')](_0x50723b,{'individualHooks':!![]});}})[_0x53b5d8('0x39')](function(){const _0x47e8b0=_0x53b5d8;if(_0x25bf78)return _0x25bf78[_0x47e8b0('0x6')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'pauseType':_0x5032fd[_0x47e8b0('0xc')][_0x47e8b0('0x36')]||_0x47e8b0('0x40'),'lastPauseAt':moment()[_0x47e8b0('0x3')](_0x47e8b0('0x3a'))});})[_0x53b5d8('0x39')](function(_0x48019d){_0x2b8058(_0x48019d);})[_0x53b5d8('0x11')](function(_0x1733cb){const _0x947fe7=_0x53b5d8;_0x52e427(_0x28fa50[_0x947fe7('0x4e')](0x1f4,_0x1733cb[_0x947fe7('0x3b')]));});});},exports[_0x3ed7fc('0x2c')]=function(_0x2908d9){const _0x3f1866=this;return new Promise(function(_0x28df5e,_0xed583d){const _0x30c10b=a651_0x569e;let _0x527bfd;return db[_0x30c10b('0x41')][_0x30c10b('0x28')]({'where':_0x2908d9[_0x30c10b('0x2d')]['where']||{},'attributes':['id',_0x30c10b('0xe')]})[_0x30c10b('0x39')](function(_0x1c135b){const _0x1ed28d=_0x30c10b;if(_0x1c135b){_0x527bfd=_0x1c135b;if(_0x2908d9[_0x1ed28d('0xc')][_0x1ed28d('0x1a')]&&!utils[_0x1ed28d('0x1')](_0x2908d9[_0x1ed28d('0xc')]['channel']))throw new Error(_0x1ed28d('0x43'));switch(_0x2908d9['body'][_0x1ed28d('0x1a')]){case _0x1ed28d('0x4b'):return db[_0x1ed28d('0x35')]['update']({'paused':0x0},{'where':{'UserId':_0x527bfd['id']}})[_0x1ed28d('0x39')](function(){const _0x199d6c=_0x1ed28d;return db['MemberReport'][_0x199d6c('0x28')]({'where':{'channel':_0x2908d9[_0x199d6c('0xc')][_0x199d6c('0x1a')],'membername':_0x527bfd['name'],'type':_0x199d6c('0x34'),'exitAt':null}});})['then'](function(_0x54ca71){const _0x52e1ec=_0x1ed28d;if(_0x54ca71)return _0x54ca71['update']({'exitAt':moment()[_0x52e1ec('0x3')](_0x52e1ec('0x3a')),'data2':'system'},{'individualHooks':!![]});return null;})['then'](function(){const _0x448506=_0x1ed28d;return _0x527bfd[_0x448506('0x6')]({'voicePause':![]});});case'mail':case _0x1ed28d('0x46'):case _0x1ed28d('0x2e'):case _0x1ed28d('0x15'):case _0x1ed28d('0x22'):return db['MemberReport'][_0x1ed28d('0x28')]({'where':{'channel':_0x2908d9[_0x1ed28d('0xc')][_0x1ed28d('0x1a')],'membername':_0x527bfd[_0x1ed28d('0xe')],'type':'PAUSE','exitAt':null}})[_0x1ed28d('0x39')](function(_0x5a9599){const _0x309c42=_0x1ed28d;return _0x5a9599[_0x309c42('0x6')]({'exitAt':moment()[_0x309c42('0x3')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x309c42('0xa')},{'individualHooks':!![]});})['then'](function(){const _0x2be312=_0x1ed28d,_0x482d9f={};return _[_0x2be312('0x19')](_0x482d9f,util[_0x2be312('0x3')](_0x2be312('0x2a'),_0x2908d9['body'][_0x2be312('0x1a')],'Pause'),![]),_0x527bfd[_0x2be312('0x6')](_0x482d9f);});default:return db[_0x1ed28d('0x35')][_0x1ed28d('0x6')]({'paused':0x0},{'where':{'UserId':_0x527bfd['id']}})[_0x1ed28d('0x39')](function(){const _0x4c21d7=_0x1ed28d;return db[_0x4c21d7('0x38')]['findAll']({'where':{'membername':_0x527bfd[_0x4c21d7('0xe')],'type':_0x4c21d7('0x34'),'exitAt':null}});})[_0x1ed28d('0x39')](function(_0x56d6ac){const _0x65875c=[];return _0x56d6ac['forEach'](function(_0xf522a2){const _0x541d17=a651_0x569e;_0x65875c[_0x541d17('0x49')](_0xf522a2[_0x541d17('0x6')]({'exitAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'data2':'system'}));}),Promise['all'](_0x65875c);})[_0x1ed28d('0x39')](function(){const _0x3a6a19=_0x1ed28d;return _0x527bfd[_0x3a6a19('0x6')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});});}}})[_0x30c10b('0x39')](function(_0x3789b4){_0x28df5e(_0x3789b4);})['catch'](function(_0x5257b1){const _0x192545=_0x30c10b;_0xed583d(_0x3f1866[_0x192545('0x4e')](0x1f4,_0x5257b1['message']));});});},exports[_0x3ed7fc('0x45')]=function(_0x1ab1d8){const _0x3e1f99=this;return new Promise(function(_0x29ba00,_0x21409b){const _0x3af86a=a651_0x569e;let _0x18ad1e;return db[_0x3af86a('0x41')][_0x3af86a('0x28')]({'where':_0x1ab1d8[_0x3af86a('0x2d')][_0x3af86a('0x16')]||{},'attributes':['id',_0x3af86a('0xe')]})[_0x3af86a('0x39')](function(_0x31dcd9){const _0x89fef6=_0x3af86a;if(_0x31dcd9)return _0x18ad1e=_0x31dcd9,db[_0x89fef6('0x35')]['destroy']({'where':{'membername':_0x18ad1e[_0x89fef6('0xe')]},'individualHooks':!![]});})[_0x3af86a('0x39')](function(){const _0x16d25c=_0x3af86a;if(_0x18ad1e)return db['MemberReport'][_0x16d25c('0x2b')]({'where':{'membername':_0x18ad1e[_0x16d25c('0xe')],'exitAt':null}});})[_0x3af86a('0x39')](function(_0x350d5f){const _0x3eceba=_0x3af86a;if(_0x18ad1e){if(_0x350d5f&&_0x350d5f['length']){const _0x2ab5bf=[];return _0x350d5f[_0x3eceba('0x12')](function(_0x2067c1){const _0x1904a6=_0x3eceba;_0x2ab5bf[_0x1904a6('0x49')](_0x2067c1[_0x1904a6('0x6')]({'exitAt':moment()[_0x1904a6('0x3')](_0x1904a6('0x3a'))}));}),Promise['all'](_0x2ab5bf);}}})[_0x3af86a('0x39')](function(){const _0x20c6d8=_0x3af86a;if(_0x18ad1e)return _0x18ad1e[_0x20c6d8('0x6')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})['then'](function(_0x44eec8){_0x29ba00(_0x44eec8);})[_0x3af86a('0x11')](function(_0x485675){const _0x3b10d7=_0x3af86a;_0x21409b(_0x3e1f99[_0x3b10d7('0x4e')](0x1f4,_0x485675['message']));});});},exports[_0x3ed7fc('0x1d')]=function(_0x4eaaea){const _0x21e308=this;return new Promise(function(_0x34af90,_0x120b90){const _0x1df5ed=a651_0x569e;let _0x373d07,_0xba4a38,_0x22d004,_0xf5f45b;return db[_0x1df5ed('0x41')][_0x1df5ed('0x28')]({'where':_0x4eaaea['options'][_0x1df5ed('0x16')]||{},'attributes':['id',_0x1df5ed('0xe'),_0x1df5ed('0x29'),_0x1df5ed('0x0'),_0x1df5ed('0x25'),_0x1df5ed('0xb'),_0x1df5ed('0x20'),'interface']})[_0x1df5ed('0x39')](function(_0x5c56e2){const _0x369345=_0x1df5ed;if(_0x5c56e2)return _0x373d07=_0x5c56e2,_0xf5f45b=_0x4eaaea['body']['interface']?_0x4eaaea[_0x369345('0xc')][_0x369345('0x4a')]:util[_0x369345('0x3')](_0x369345('0x27'),_0x373d07['name']),db['User'][_0x369345('0x13')]({'where':{'role':_0x369345('0x1c'),'online':!![],'id':{[Op['ne']]:_0x373d07['id']}}});})[_0x1df5ed('0x39')](function(_0x5a1036){const _0x116ca4=_0x1df5ed;if(_0x5a1036)return _0x22d004=_0x5a1036,require(_0x116ca4('0x23'))[_0x116ca4('0x26')]();})['then'](function(_0x31fd3e){const _0x1915a5=_0x1df5ed;if(_0x31fd3e&&_0x31fd3e[_0x1915a5('0x9')]&&_0x22d004>=_0x31fd3e[_0x1915a5('0x9')])throw new Error('Maximum\x20login\x20has\x20been\x20reached');})['then'](function(){const _0x50ca8b=_0x1df5ed;if(_0x373d07)return db['UserVoiceQueueRt'][_0x50ca8b('0x42')]({'where':{'membername':_0x373d07[_0x50ca8b('0xe')]},'individualHooks':!![]});})[_0x1df5ed('0x39')](function(){const _0xa5a95c=_0x1df5ed;if(_0x373d07)return _0x373d07[_0xa5a95c('0x2f')]({'raw':!![]});})[_0x1df5ed('0x39')](function(_0x10f2fe){const _0x25207a=_0x1df5ed;if(_0x373d07){if(_0x10f2fe){const _0x702fa5=[];_0xba4a38=_0x10f2fe;if(_0xba4a38[_0x25207a('0x24')]){for(let _0x5a1c00=0x0;_0x5a1c00<_0xba4a38[_0x25207a('0x24')];_0x5a1c00++){_0x702fa5[_0x25207a('0x49')](db[_0x25207a('0x35')][_0x25207a('0x1e')]({'membername':_0x373d07['name'],'UserId':_0x373d07['id'],'queue_name':_0xba4a38[_0x5a1c00][_0x25207a('0xe')],'VoiceQueueId':_0xba4a38[_0x5a1c00]['id'],'interface':_0xf5f45b,'paused':_0x373d07[_0x25207a('0x20')]||![],'penalty':_0xba4a38[_0x5a1c00][_0x25207a('0x4')]||0x0}));}return Promise[_0x25207a('0x3f')](_0x702fa5);}}}})[_0x1df5ed('0x39')](function(){const _0x5f2826=_0x1df5ed;if(_0x373d07)return db[_0x5f2826('0x38')]['findAll']({'where':{'membername':_0x373d07[_0x5f2826('0xe')],'exitAt':null}});})[_0x1df5ed('0x39')](function(_0x430d6f){const _0x441628=_0x1df5ed;if(_0x373d07){if(_0x430d6f&&_0x430d6f[_0x441628('0x24')]){const _0x46c99d=[];return _0x430d6f[_0x441628('0x12')](function(_0x2b8fa2){const _0x331e25=_0x441628;_0x46c99d[_0x331e25('0x49')](_0x2b8fa2[_0x331e25('0x6')]({'exitAt':moment()[_0x331e25('0x3')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x441628('0x3f')](_0x46c99d);}}})[_0x1df5ed('0x39')](function(){const _0x57383c=_0x1df5ed;if(_0x373d07){const _0x472b0c=[],_0x1ab7ba=[],_0x4af9b7=utils[_0x57383c('0x8')](),_0x23928e={'membername':_0x373d07[_0x57383c('0xe')],'interface':_0xf5f45b,'enterAt':moment()[_0x57383c('0x3')](_0x57383c('0x3a')),'role':_0x373d07[_0x57383c('0x29')],'internal':_0x373d07[_0x57383c('0xb')]};return _0x4af9b7['forEach'](function(_0x4210d1){const _0x4e1b85=_0x57383c;_0x472b0c[_0x4e1b85('0x49')](_[_0x4e1b85('0x37')]({'channel':_0x4210d1,'type':'LOGIN','data1':'callysquare','data2':_0xf5f45b},_0x23928e)),_0x373d07[_0x4e1b85('0x20')]&&_0x1ab7ba[_0x4e1b85('0x49')](_[_0x4e1b85('0x37')]({'channel':_0x4210d1,'type':_0x4e1b85('0x34'),'data1':_0x4e1b85('0x1b')},_0x23928e));}),db[_0x57383c('0x38')][_0x57383c('0x4f')](_0x472b0c['concat'](_0x1ab7ba),{'individualHooks':!![]});}})[_0x1df5ed('0x39')](function(){const _0x40a4f5=_0x1df5ed;if(_0x373d07)return _0x373d07[_0x40a4f5('0x6')]({'online':!![],'lastLoginAt':moment()['format'](_0x40a4f5('0x3a')),'voicePause':_0x373d07['loginInPause']||![],'mailPause':_0x373d07[_0x40a4f5('0x20')]||![],'chatPause':_0x373d07['loginInPause']||![],'faxPause':_0x373d07[_0x40a4f5('0x20')]||![],'smsPause':_0x373d07['loginInPause']||![],'openchannelPause':_0x373d07[_0x40a4f5('0x20')]||![],'pauseType':_0x373d07[_0x40a4f5('0x20')]?_0x40a4f5('0x1b'):null,'lastPauseAt':moment()[_0x40a4f5('0x3')](_0x40a4f5('0x3a')),'interface':_0xf5f45b});})[_0x1df5ed('0x39')](function(_0x439f9d){_0x34af90(_0x439f9d);})[_0x1df5ed('0x11')](function(_0x37c465){_0x120b90(_0x21e308['error'](0x1f4,_0x37c465['message']));});});}; \ No newline at end of file +const a651_0x301e=['system','findOne','all','fax','LOGIN','Pause','sms','rpc','attributes','LogoutUser','role','phone','../../config/utils','moment','getLicense','%s%s','isValidChannel','stringify','catch','interface','internal','count','../../config/license/util','loginInPause','UserVoiceQueueRt','error','update','mobile','map','GetUser','destroy','LoginUser','voice','YYYY-MM-DD\x20HH:mm:ss','name','length','util','PauseUser','merge','include','set','message','mail','callysquare','format','isNil','push','agents','chat','model','register','options','getChannels','MemberReport','then','forEach','LOGININPAUSE','findAll','agent','PAUSE','where','UserVoiceQueue.penalty','User','debug','info','getVoiceQueues','upsert','ShowUser','body','bulkCreate','Maximum\x20login\x20has\x20been\x20reached','raw','SIP/%s','Unknown\x20channel','DEFAULT\x20PAUSE','UnpauseUser','channel'];(function(_0x2796b2,_0x301e12){const _0x1964d1=function(_0x23692e){while(--_0x23692e){_0x2796b2['push'](_0x2796b2['shift']());}};_0x1964d1(++_0x301e12);}(a651_0x301e,0x14d));const a651_0x1964=function(_0x2796b2,_0x301e12){_0x2796b2=_0x2796b2-0x0;let _0x1964d1=a651_0x301e[_0x2796b2];return _0x1964d1;};const _0x399b9f=a651_0x1964;'use strict';const _=require('lodash'),util=require(_0x399b9f('0xb')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x399b9f('0x3b')),moment=require(_0x399b9f('0x41')),utils=require(_0x399b9f('0x40')),{getSocket}=require('../../rediscache'),socket=getSocket(),sequelize=require('sequelize'),{Op}=sequelize;require('./user.socket')[_0x399b9f('0x19')](socket),exports[_0x399b9f('0x4')]=function(_0x23692e){const _0x5ba4d8=this;return new Promise(function(_0x255906,_0x3d9ed9){const _0x33c4f6=a651_0x1964;return db[_0x33c4f6('0x25')][_0x33c4f6('0x20')]({'raw':_0x23692e[_0x33c4f6('0x1a')]?_0x23692e['options'][_0x33c4f6('0x2e')]===undefined?!![]:![]:!![],'where':_0x23692e[_0x33c4f6('0x1a')]?_0x23692e[_0x33c4f6('0x1a')][_0x33c4f6('0x23')]||null:null,'attributes':_0x23692e[_0x33c4f6('0x1a')]?_0x23692e['options'][_0x33c4f6('0x3c')]||null:null,'limit':_0x23692e[_0x33c4f6('0x1a')]?_0x23692e['options']['limit']||null:null,'include':_0x23692e[_0x33c4f6('0x1a')]?_0x23692e[_0x33c4f6('0x1a')][_0x33c4f6('0xe')]?_['map'](_0x23692e[_0x33c4f6('0x1a')][_0x33c4f6('0xe')],function(_0x4c050d){const _0x12595c=_0x33c4f6;return{'model':db[_0x4c050d[_0x12595c('0x18')]],'as':_0x4c050d['as'],'attributes':_0x4c050d[_0x12595c('0x3c')],'include':_0x4c050d[_0x12595c('0xe')]?_[_0x12595c('0x3')](_0x4c050d[_0x12595c('0xe')],function(_0x521bd0){const _0x3e794a=_0x12595c;return{'model':db[_0x521bd0[_0x3e794a('0x18')]],'as':_0x521bd0['as'],'attributes':_0x521bd0['attributes'],'include':_0x521bd0['include']?_[_0x3e794a('0x3')](_0x521bd0[_0x3e794a('0xe')],function(_0x5d012e){const _0xa53eed=_0x3e794a;return{'model':db[_0x5d012e[_0xa53eed('0x18')]],'as':_0x5d012e['as'],'attributes':_0x5d012e['attributes']};}):[]};}):[]};}):[]:[]})[_0x33c4f6('0x1d')](function(_0x2117ae){const _0x5ed16b=_0x33c4f6;logger['info']('GetUser',_0x23692e),logger[_0x5ed16b('0x26')]('GetUser',_0x23692e,JSON[_0x5ed16b('0x45')](_0x2117ae)),_0x255906(_0x2117ae);})['catch'](function(_0x423df8){const _0x429aef=_0x33c4f6;logger[_0x429aef('0x0')](_0x429aef('0x4'),_0x423df8[_0x429aef('0x10')],_0x23692e),_0x3d9ed9(_0x5ba4d8[_0x429aef('0x0')](0x1f4,_0x423df8[_0x429aef('0x10')]));});});},exports[_0x399b9f('0x2a')]=function(_0x8b8326){const _0x36758e=this;return new Promise(function(_0x5c41fb,_0x3030fd){const _0x345300=a651_0x1964;return db[_0x345300('0x25')]['findOne']({'raw':_0x8b8326[_0x345300('0x1a')]?_0x8b8326[_0x345300('0x1a')][_0x345300('0x2e')]===undefined?!![]:![]:!![],'where':_0x8b8326[_0x345300('0x1a')]?_0x8b8326[_0x345300('0x1a')]['where']||null:null,'attributes':_0x8b8326['options']?_0x8b8326['options'][_0x345300('0x3c')]||null:null,'include':_0x8b8326['options']?_0x8b8326[_0x345300('0x1a')]['include']?_['map'](_0x8b8326[_0x345300('0x1a')][_0x345300('0xe')],function(_0x3ff84f){const _0x554202=_0x345300;return{'model':db[_0x3ff84f[_0x554202('0x18')]],'as':_0x3ff84f['as'],'attributes':_0x3ff84f[_0x554202('0x3c')],'include':_0x3ff84f['include']?_['map'](_0x3ff84f[_0x554202('0xe')],function(_0x4fc9bf){const _0x43b915=_0x554202;return{'model':db[_0x4fc9bf[_0x43b915('0x18')]],'as':_0x4fc9bf['as'],'attributes':_0x4fc9bf['attributes'],'include':_0x4fc9bf[_0x43b915('0xe')]?_[_0x43b915('0x3')](_0x4fc9bf[_0x43b915('0xe')],function(_0x155cd8){const _0xf2e473=_0x43b915;return{'model':db[_0x155cd8[_0xf2e473('0x18')]],'as':_0x155cd8['as'],'attributes':_0x155cd8[_0xf2e473('0x3c')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x187650){const _0xd6f1a9=_0x345300;logger[_0xd6f1a9('0x27')]('ShowUser',_0x8b8326),logger['debug'](_0xd6f1a9('0x2a'),_0x8b8326,JSON[_0xd6f1a9('0x45')](_0x187650)),_0x5c41fb(_0x187650);})[_0x345300('0x46')](function(_0xe3088a){const _0x1f7132=_0x345300;logger[_0x1f7132('0x0')](_0x1f7132('0x2a'),_0xe3088a['message'],_0x8b8326),_0x3030fd(_0x36758e[_0x1f7132('0x0')](0x1f4,_0xe3088a[_0x1f7132('0x10')]));});});},exports[_0x399b9f('0xc')]=function(_0x5b3918){const _0x33be4b=this;return new Promise(function(_0x403a1e,_0x405285){const _0x24058b=a651_0x1964;let _0x23c86b;return db['User']['findOne']({'where':_0x5b3918[_0x24058b('0x1a')][_0x24058b('0x23')]||{},'attributes':['id',_0x24058b('0x9'),_0x24058b('0x3e'),_0x24058b('0x48'),_0x24058b('0x47')]})[_0x24058b('0x1d')](function(_0x4152d6){const _0x474ac4=_0x24058b;if(_0x4152d6)return _0x23c86b=_0x4152d6,db['UserVoiceQueueRt'][_0x474ac4('0x1')]({'paused':0x1},{'where':{'UserId':_0x23c86b['id']},'individualHooks':!![]});})[_0x24058b('0x1d')](function(){const _0x365152=_0x24058b;if(_0x23c86b)return db[_0x365152('0x1c')][_0x365152('0x20')]({'where':{'membername':_0x23c86b[_0x365152('0x9')],'type':_0x365152('0x22'),'exitAt':null}});})[_0x24058b('0x1d')](function(_0x40b1b2){const _0x494914=_0x24058b;if(_0x23c86b){if(_0x40b1b2&&_0x40b1b2[_0x494914('0xa')]){const _0x2940ef=moment()[_0x494914('0x13')](_0x494914('0x8'));for(let _0x33a3cb=0x0,_0x40245=_0x40b1b2[_0x494914('0xa')];_0x33a3cb<_0x40245;_0x33a3cb++){_0x40b1b2[_0x33a3cb]['update']({'exitAt':_0x2940ef});}}}})[_0x24058b('0x1d')](function(){const _0x5a7767=_0x24058b;if(_0x23c86b){const _0x549b4a=[],_0x1f7370=utils[_0x5a7767('0x1b')]();return _0x1f7370[_0x5a7767('0x1e')](function(_0x21921e){const _0xbcbe9a=_0x5a7767;_0x549b4a[_0xbcbe9a('0x15')]({'channel':_0x21921e,'membername':_0x23c86b['name'],'interface':_[_0xbcbe9a('0x14')](_0x23c86b[_0xbcbe9a('0x47')])?util[_0xbcbe9a('0x13')](_0xbcbe9a('0x2f'),_0x23c86b[_0xbcbe9a('0x9')]):_0x23c86b[_0xbcbe9a('0x47')],'type':_0xbcbe9a('0x22'),'enterAt':moment()[_0xbcbe9a('0x13')](_0xbcbe9a('0x8')),'data1':_0x5b3918[_0xbcbe9a('0x2b')]['type']||_0xbcbe9a('0x31'),'role':_0x23c86b['role'],'internal':_0x23c86b['internal'],'uniqueid':_0x5b3918[_0xbcbe9a('0x2b')]['uniqueid']||null});}),db[_0x5a7767('0x1c')][_0x5a7767('0x2c')](_0x549b4a,{'individualHooks':!![]});}})['then'](function(){const _0x73fa45=_0x24058b;if(_0x23c86b)return _0x23c86b['update']({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'pauseType':_0x5b3918[_0x73fa45('0x2b')]['type']||_0x73fa45('0x31'),'lastPauseAt':moment()[_0x73fa45('0x13')](_0x73fa45('0x8'))});})[_0x24058b('0x1d')](function(_0x1fd517){_0x403a1e(_0x1fd517);})['catch'](function(_0x2e02e5){const _0x1639fd=_0x24058b;_0x405285(_0x33be4b[_0x1639fd('0x0')](0x1f4,_0x2e02e5[_0x1639fd('0x10')]));});});},exports[_0x399b9f('0x32')]=function(_0x5f4295){const _0x578efe=this;return new Promise(function(_0x8f4a22,_0x3d2971){const _0x1195a4=a651_0x1964;let _0x4b3c14;return db[_0x1195a4('0x25')][_0x1195a4('0x35')]({'where':_0x5f4295[_0x1195a4('0x1a')][_0x1195a4('0x23')]||{},'attributes':['id',_0x1195a4('0x9')]})['then'](function(_0x50b556){const _0x5aa05b=_0x1195a4;if(_0x50b556){_0x4b3c14=_0x50b556;if(_0x5f4295['body'][_0x5aa05b('0x33')]&&!utils[_0x5aa05b('0x44')](_0x5f4295[_0x5aa05b('0x2b')][_0x5aa05b('0x33')]))throw new Error(_0x5aa05b('0x30'));switch(_0x5f4295[_0x5aa05b('0x2b')]['channel']){case _0x5aa05b('0x7'):return db[_0x5aa05b('0x4c')][_0x5aa05b('0x1')]({'paused':0x0},{'where':{'UserId':_0x4b3c14['id']}})[_0x5aa05b('0x1d')](function(){const _0x21e701=_0x5aa05b;return db[_0x21e701('0x1c')][_0x21e701('0x35')]({'where':{'channel':_0x5f4295[_0x21e701('0x2b')][_0x21e701('0x33')],'membername':_0x4b3c14['name'],'type':_0x21e701('0x22'),'exitAt':null}});})[_0x5aa05b('0x1d')](function(_0x22a6cb){const _0x51acfd=_0x5aa05b;if(_0x22a6cb)return _0x22a6cb[_0x51acfd('0x1')]({'exitAt':moment()[_0x51acfd('0x13')](_0x51acfd('0x8')),'data2':_0x51acfd('0x34')},{'individualHooks':!![]});return null;})[_0x5aa05b('0x1d')](function(){const _0x1b1403=_0x5aa05b;return _0x4b3c14[_0x1b1403('0x1')]({'voicePause':![]});});case _0x5aa05b('0x11'):case _0x5aa05b('0x17'):case _0x5aa05b('0x37'):case _0x5aa05b('0x3a'):case'openchannel':return db[_0x5aa05b('0x1c')][_0x5aa05b('0x35')]({'where':{'channel':_0x5f4295[_0x5aa05b('0x2b')][_0x5aa05b('0x33')],'membername':_0x4b3c14[_0x5aa05b('0x9')],'type':_0x5aa05b('0x22'),'exitAt':null}})[_0x5aa05b('0x1d')](function(_0x31e964){const _0x22bd30=_0x5aa05b;return _0x31e964['update']({'exitAt':moment()[_0x22bd30('0x13')](_0x22bd30('0x8')),'data2':_0x22bd30('0x34')},{'individualHooks':!![]});})[_0x5aa05b('0x1d')](function(){const _0x4ed0ba=_0x5aa05b,_0x5aa148={};return _[_0x4ed0ba('0xf')](_0x5aa148,util[_0x4ed0ba('0x13')](_0x4ed0ba('0x43'),_0x5f4295[_0x4ed0ba('0x2b')][_0x4ed0ba('0x33')],_0x4ed0ba('0x39')),![]),_0x4b3c14[_0x4ed0ba('0x1')](_0x5aa148);});default:return db[_0x5aa05b('0x4c')][_0x5aa05b('0x1')]({'paused':0x0},{'where':{'UserId':_0x4b3c14['id']}})['then'](function(){const _0x120dff=_0x5aa05b;return db[_0x120dff('0x1c')][_0x120dff('0x20')]({'where':{'membername':_0x4b3c14[_0x120dff('0x9')],'type':_0x120dff('0x22'),'exitAt':null}});})['then'](function(_0x1ad107){const _0x28b69c=_0x5aa05b,_0x34f91b=[];return _0x1ad107[_0x28b69c('0x1e')](function(_0x59a3b5){const _0x210184=_0x28b69c;_0x34f91b['push'](_0x59a3b5[_0x210184('0x1')]({'exitAt':moment()[_0x210184('0x13')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x210184('0x34')}));}),Promise[_0x28b69c('0x36')](_0x34f91b);})[_0x5aa05b('0x1d')](function(){const _0xd19a1c=_0x5aa05b;return _0x4b3c14[_0xd19a1c('0x1')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});});}}})[_0x1195a4('0x1d')](function(_0x16a357){_0x8f4a22(_0x16a357);})[_0x1195a4('0x46')](function(_0x2879fd){const _0x5ac5b0=_0x1195a4;_0x3d2971(_0x578efe[_0x5ac5b0('0x0')](0x1f4,_0x2879fd[_0x5ac5b0('0x10')]));});});},exports[_0x399b9f('0x3d')]=function(_0x570219){const _0x39b5b9=this;return new Promise(function(_0x1af4ef,_0x727226){const _0x4a43ae=a651_0x1964;let _0x110c56;return db[_0x4a43ae('0x25')][_0x4a43ae('0x35')]({'where':_0x570219[_0x4a43ae('0x1a')][_0x4a43ae('0x23')]||{},'attributes':['id',_0x4a43ae('0x9')]})[_0x4a43ae('0x1d')](function(_0x396c4a){const _0x38ee04=_0x4a43ae;if(_0x396c4a)return _0x110c56=_0x396c4a,db[_0x38ee04('0x4c')][_0x38ee04('0x5')]({'where':{'membername':_0x110c56[_0x38ee04('0x9')]},'individualHooks':!![]});})[_0x4a43ae('0x1d')](function(){const _0x53ce6c=_0x4a43ae;if(_0x110c56)return db['MemberReport']['findAll']({'where':{'membername':_0x110c56[_0x53ce6c('0x9')],'exitAt':null}});})['then'](function(_0x15f708){const _0x119cde=_0x4a43ae;if(_0x110c56){if(_0x15f708&&_0x15f708[_0x119cde('0xa')]){const _0x556524=[];return _0x15f708[_0x119cde('0x1e')](function(_0x24e0f4){const _0x5adcf7=_0x119cde;_0x556524[_0x5adcf7('0x15')](_0x24e0f4[_0x5adcf7('0x1')]({'exitAt':moment()[_0x5adcf7('0x13')](_0x5adcf7('0x8'))}));}),Promise['all'](_0x556524);}}})['then'](function(){if(_0x110c56)return _0x110c56['update']({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})[_0x4a43ae('0x1d')](function(_0x31d8e2){_0x1af4ef(_0x31d8e2);})[_0x4a43ae('0x46')](function(_0x3b8b08){const _0x74a8e9=_0x4a43ae;_0x727226(_0x39b5b9['error'](0x1f4,_0x3b8b08[_0x74a8e9('0x10')]));});});},exports[_0x399b9f('0x6')]=function(_0x1236cf){const _0x39581f=this;return new Promise(function(_0x31c13c,_0xf67457){const _0x27d73b=a651_0x1964;let _0x217dc1,_0xb52650,_0xf7a68c,_0x23f250;return db[_0x27d73b('0x25')][_0x27d73b('0x35')]({'where':_0x1236cf[_0x27d73b('0x1a')][_0x27d73b('0x23')]||{},'attributes':['id',_0x27d73b('0x9'),_0x27d73b('0x3e'),_0x27d73b('0x2'),_0x27d73b('0x3f'),_0x27d73b('0x48'),_0x27d73b('0x4b'),_0x27d73b('0x47')]})[_0x27d73b('0x1d')](function(_0x4863d4){const _0x3ae43a=_0x27d73b;if(_0x4863d4)return _0x217dc1=_0x4863d4,_0x23f250=_0x1236cf[_0x3ae43a('0x2b')][_0x3ae43a('0x47')]?_0x1236cf[_0x3ae43a('0x2b')]['interface']:util[_0x3ae43a('0x13')](_0x3ae43a('0x2f'),_0x217dc1[_0x3ae43a('0x9')]),db[_0x3ae43a('0x25')][_0x3ae43a('0x49')]({'where':{'role':_0x3ae43a('0x21'),'online':!![],'id':{[Op['ne']]:_0x217dc1['id']}}});})[_0x27d73b('0x1d')](function(_0x5c29cb){const _0x1b7de7=_0x27d73b;if(_0x5c29cb)return _0xf7a68c=_0x5c29cb,require(_0x1b7de7('0x4a'))[_0x1b7de7('0x42')]();})[_0x27d73b('0x1d')](function(_0x5565e8){const _0x885633=_0x27d73b;if(_0x5565e8&&_0x5565e8[_0x885633('0x16')]&&_0xf7a68c>=_0x5565e8[_0x885633('0x16')])throw new Error(_0x885633('0x2d'));})['then'](function(){const _0xd5cb1=_0x27d73b;if(_0x217dc1)return db[_0xd5cb1('0x4c')][_0xd5cb1('0x5')]({'where':{'membername':_0x217dc1[_0xd5cb1('0x9')]},'individualHooks':!![]});})[_0x27d73b('0x1d')](function(){const _0x2bb6de=_0x27d73b;if(_0x217dc1)return _0x217dc1[_0x2bb6de('0x28')]({'raw':!![]});})[_0x27d73b('0x1d')](function(_0x5a0f5c){const _0x23a34e=_0x27d73b;if(_0x217dc1){if(_0x5a0f5c){const _0x9a7b55=[];_0xb52650=_0x5a0f5c;if(_0xb52650[_0x23a34e('0xa')]){for(let _0x35fc96=0x0;_0x35fc96<_0xb52650[_0x23a34e('0xa')];_0x35fc96++){_0x9a7b55[_0x23a34e('0x15')](db['UserVoiceQueueRt'][_0x23a34e('0x29')]({'membername':_0x217dc1['name'],'UserId':_0x217dc1['id'],'queue_name':_0xb52650[_0x35fc96][_0x23a34e('0x9')],'VoiceQueueId':_0xb52650[_0x35fc96]['id'],'interface':_0x23f250,'paused':_0x217dc1[_0x23a34e('0x4b')]||![],'penalty':_0xb52650[_0x35fc96][_0x23a34e('0x24')]||0x0}));}return Promise[_0x23a34e('0x36')](_0x9a7b55);}}}})[_0x27d73b('0x1d')](function(){const _0x12bc22=_0x27d73b;if(_0x217dc1)return db['MemberReport'][_0x12bc22('0x20')]({'where':{'membername':_0x217dc1[_0x12bc22('0x9')],'exitAt':null}});})['then'](function(_0x2b3249){const _0x29ca49=_0x27d73b;if(_0x217dc1){if(_0x2b3249&&_0x2b3249[_0x29ca49('0xa')]){const _0xa71a23=[];return _0x2b3249['forEach'](function(_0x16323a){const _0x1a4542=_0x29ca49;_0xa71a23[_0x1a4542('0x15')](_0x16323a[_0x1a4542('0x1')]({'exitAt':moment()[_0x1a4542('0x13')](_0x1a4542('0x8'))}));}),Promise['all'](_0xa71a23);}}})[_0x27d73b('0x1d')](function(){const _0x4f965c=_0x27d73b;if(_0x217dc1){const _0x32da6a=[],_0x480f5d=[],_0x1cff0a=utils['getChannels'](),_0xb903ff={'membername':_0x217dc1[_0x4f965c('0x9')],'interface':_0x23f250,'enterAt':moment()[_0x4f965c('0x13')](_0x4f965c('0x8')),'role':_0x217dc1[_0x4f965c('0x3e')],'internal':_0x217dc1['internal']};return _0x1cff0a[_0x4f965c('0x1e')](function(_0x31eeaf){const _0x27e448=_0x4f965c;_0x32da6a[_0x27e448('0x15')](_[_0x27e448('0xd')]({'channel':_0x31eeaf,'type':_0x27e448('0x38'),'data1':_0x27e448('0x12'),'data2':_0x23f250},_0xb903ff)),_0x217dc1[_0x27e448('0x4b')]&&_0x480f5d[_0x27e448('0x15')](_[_0x27e448('0xd')]({'channel':_0x31eeaf,'type':_0x27e448('0x22'),'data1':_0x27e448('0x1f')},_0xb903ff));}),db[_0x4f965c('0x1c')][_0x4f965c('0x2c')](_0x32da6a['concat'](_0x480f5d),{'individualHooks':!![]});}})[_0x27d73b('0x1d')](function(){const _0x375f95=_0x27d73b;if(_0x217dc1)return _0x217dc1[_0x375f95('0x1')]({'online':!![],'lastLoginAt':moment()[_0x375f95('0x13')](_0x375f95('0x8')),'voicePause':_0x217dc1[_0x375f95('0x4b')]||![],'mailPause':_0x217dc1[_0x375f95('0x4b')]||![],'chatPause':_0x217dc1[_0x375f95('0x4b')]||![],'faxPause':_0x217dc1[_0x375f95('0x4b')]||![],'smsPause':_0x217dc1[_0x375f95('0x4b')]||![],'openchannelPause':_0x217dc1['loginInPause']||![],'pauseType':_0x217dc1[_0x375f95('0x4b')]?_0x375f95('0x1f'):null,'lastPauseAt':moment()['format'](_0x375f95('0x8')),'interface':_0x23f250});})[_0x27d73b('0x1d')](function(_0x1bb9f8){_0x31c13c(_0x1bb9f8);})[_0x27d73b('0x46')](function(_0x1971cc){const _0x26db82=_0x27d73b;_0xf67457(_0x39581f[_0x26db82('0x0')](0x1f4,_0x1971cc[_0x26db82('0x10')]));});});}; \ No newline at end of file diff --git a/server/api/user/user.socket.js b/server/api/user/user.socket.js index c2676f6..23f4698 100644 --- a/server/api/user/user.socket.js +++ b/server/api/user/user.socket.js @@ -1 +1 @@ -const a652_0x4d92=['emit','register','./user.events','save','user:','length','remove','update'];(function(_0x45c629,_0x4d92b7){const _0x4f646c=function(_0x375c59){while(--_0x375c59){_0x45c629['push'](_0x45c629['shift']());}};_0x4f646c(++_0x4d92b7);}(a652_0x4d92,0x17e));const a652_0x4f64=function(_0x45c629,_0x4d92b7){_0x45c629=_0x45c629-0x0;let _0x4f646c=a652_0x4d92[_0x45c629];return _0x4f646c;};const _0x520c6d=a652_0x4f64;'use strict';const UserEvents=require(_0x520c6d('0x4')),events=[_0x520c6d('0x5'),_0x520c6d('0x0'),_0x520c6d('0x1')];function createListener(_0x375c59,_0x38a3fb){return function(_0x46aad6){const _0x2e5659=a652_0x4f64;_0x38a3fb[_0x2e5659('0x2')](_0x375c59,_0x46aad6);};}exports[_0x520c6d('0x3')]=function(_0x404302){const _0x260be5=_0x520c6d;for(let _0x335300=0x0,_0x50fb11=events[_0x260be5('0x7')];_0x335300<_0x50fb11;_0x335300++){const _0x607b6b=events[_0x335300],_0x4b9df2=createListener(_0x260be5('0x6')+_0x607b6b,_0x404302);UserEvents['on'](_0x607b6b,_0x4b9df2);}}; \ No newline at end of file +const a652_0x1c34=['user:','remove','emit','./user.events','length','register','save'];(function(_0x318cb4,_0x1c3495){const _0x391bbb=function(_0x4cca47){while(--_0x4cca47){_0x318cb4['push'](_0x318cb4['shift']());}};_0x391bbb(++_0x1c3495);}(a652_0x1c34,0x144));const a652_0x391b=function(_0x318cb4,_0x1c3495){_0x318cb4=_0x318cb4-0x0;let _0x391bbb=a652_0x1c34[_0x318cb4];return _0x391bbb;};const _0x5e0447=a652_0x391b;'use strict';const UserEvents=require(_0x5e0447('0x1')),events=[_0x5e0447('0x4'),_0x5e0447('0x6'),'update'];function createListener(_0x4cca47,_0x47ef8f){return function(_0x2cb15d){const _0x327fdc=a652_0x391b;_0x47ef8f[_0x327fdc('0x0')](_0x4cca47,_0x2cb15d);};}exports[_0x5e0447('0x3')]=function(_0x5be27d){const _0x263b89=_0x5e0447;for(let _0x4b8e85=0x0,_0x3c083b=events[_0x263b89('0x2')];_0x4b8e85<_0x3c083b;_0x4b8e85++){const _0x13a8ac=events[_0x4b8e85],_0x374955=createListener(_0x263b89('0x5')+_0x13a8ac,_0x5be27d);UserEvents['on'](_0x13a8ac,_0x374955);}}; \ No newline at end of file diff --git a/server/api/userChatQueue/index.js b/server/api/userChatQueue/index.js index baca1bf..1e08e1c 100644 --- a/server/api/userChatQueue/index.js +++ b/server/api/userChatQueue/index.js @@ -1 +1 @@ -const a653_0x8e06=['exports','express'];(function(_0x513812,_0x8e06a8){const _0xb3bfa9=function(_0xad2411){while(--_0xad2411){_0x513812['push'](_0x513812['shift']());}};_0xb3bfa9(++_0x8e06a8);}(a653_0x8e06,0x169));const a653_0xb3bf=function(_0x513812,_0x8e06a8){_0x513812=_0x513812-0x0;let _0xb3bfa9=a653_0x8e06[_0x513812];return _0xb3bfa9;};const _0x29c52d=a653_0xb3bf;'use strict';const express=require(_0x29c52d('0x0')),router=express['Router']();module[_0x29c52d('0x1')]=router; \ No newline at end of file +const a653_0x3132=['Router','express'];(function(_0x1ca20c,_0x313241){const _0x54e00e=function(_0x105400){while(--_0x105400){_0x1ca20c['push'](_0x1ca20c['shift']());}};_0x54e00e(++_0x313241);}(a653_0x3132,0xe5));const a653_0x54e0=function(_0x1ca20c,_0x313241){_0x1ca20c=_0x1ca20c-0x0;let _0x54e00e=a653_0x3132[_0x1ca20c];return _0x54e00e;};const _0x51c2c5=a653_0x54e0;'use strict';const express=require(_0x51c2c5('0x0')),router=express[_0x51c2c5('0x1')]();module['exports']=router; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.attributes.js b/server/api/userChatQueue/userChatQueue.attributes.js index 32c68d5..f017646 100644 --- a/server/api/userChatQueue/userChatQueue.attributes.js +++ b/server/api/userChatQueue/userChatQueue.attributes.js @@ -1 +1 @@ -const a654_0x2405=['exports','sequelize'];(function(_0x583878,_0x2405f2){const _0x48b08e=function(_0x2019df){while(--_0x2019df){_0x583878['push'](_0x583878['shift']());}};_0x48b08e(++_0x2405f2);}(a654_0x2405,0xf1));const a654_0x48b0=function(_0x583878,_0x2405f2){_0x583878=_0x583878-0x0;let _0x48b08e=a654_0x2405[_0x583878];return _0x48b08e;};const _0xe15027=a654_0x48b0;'use strict';const Sequelize=require(_0xe15027('0x0'));module[_0xe15027('0x1')]={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a654_0x24e9=['exports','INTEGER','sequelize'];(function(_0x44b2ef,_0x24e9c9){const _0x470f45=function(_0x1af444){while(--_0x1af444){_0x44b2ef['push'](_0x44b2ef['shift']());}};_0x470f45(++_0x24e9c9);}(a654_0x24e9,0xc7));const a654_0x470f=function(_0x44b2ef,_0x24e9c9){_0x44b2ef=_0x44b2ef-0x0;let _0x470f45=a654_0x24e9[_0x44b2ef];return _0x470f45;};const _0x56af2e=a654_0x470f;'use strict';const Sequelize=require(_0x56af2e('0x1'));module[_0x56af2e('0x2')]={'penalty':{'type':Sequelize[_0x56af2e('0x0')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.model.js b/server/api/userChatQueue/userChatQueue.model.js index 361d933..62791c3 100644 --- a/server/api/userChatQueue/userChatQueue.model.js +++ b/server/api/userChatQueue/userChatQueue.model.js @@ -1 +1 @@ -const a655_0x39a1=['exports','UserChatQueue','./userChatQueue.attributes','user_has_chat_queues','define'];(function(_0x35b365,_0x39a124){const _0x1ed5c5=function(_0x10d39a){while(--_0x10d39a){_0x35b365['push'](_0x35b365['shift']());}};_0x1ed5c5(++_0x39a124);}(a655_0x39a1,0x1cf));const a655_0x1ed5=function(_0x35b365,_0x39a124){_0x35b365=_0x35b365-0x0;let _0x1ed5c5=a655_0x39a1[_0x35b365];return _0x1ed5c5;};const _0xa254e=a655_0x1ed5;'use strict';const attributes=require(_0xa254e('0x4'));module[_0xa254e('0x2')]=function(_0x10d39a){const _0x5221b4=_0xa254e,_0xe7efa8=_0x10d39a[_0x5221b4('0x1')](_0x5221b4('0x3'),attributes,{'tableName':_0x5221b4('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xe7efa8;}; \ No newline at end of file +const a655_0x1708=['define','user_has_chat_queues','./userChatQueue.attributes','exports'];(function(_0x2dd652,_0x17081c){const _0x2a31b9=function(_0x1577f9){while(--_0x1577f9){_0x2dd652['push'](_0x2dd652['shift']());}};_0x2a31b9(++_0x17081c);}(a655_0x1708,0xd2));const a655_0x2a31=function(_0x2dd652,_0x17081c){_0x2dd652=_0x2dd652-0x0;let _0x2a31b9=a655_0x1708[_0x2dd652];return _0x2a31b9;};const _0x4cb416=a655_0x2a31;'use strict';const attributes=require(_0x4cb416('0x0'));module[_0x4cb416('0x1')]=function(_0x1577f9){const _0x5a9121=_0x4cb416,_0x4bc591=_0x1577f9[_0x5a9121('0x2')]('UserChatQueue',attributes,{'tableName':_0x5a9121('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4bc591;}; \ No newline at end of file diff --git a/server/api/userFaxQueue/index.js b/server/api/userFaxQueue/index.js index d9ccefb..8cb08a9 100644 --- a/server/api/userFaxQueue/index.js +++ b/server/api/userFaxQueue/index.js @@ -1 +1 @@ -const a656_0x2a3b=['express','Router','exports'];(function(_0x475e6b,_0x2a3b1e){const _0x5bff3d=function(_0xcf1bf8){while(--_0xcf1bf8){_0x475e6b['push'](_0x475e6b['shift']());}};_0x5bff3d(++_0x2a3b1e);}(a656_0x2a3b,0x1c4));const a656_0x5bff=function(_0x475e6b,_0x2a3b1e){_0x475e6b=_0x475e6b-0x0;let _0x5bff3d=a656_0x2a3b[_0x475e6b];return _0x5bff3d;};const _0x53167f=a656_0x5bff;'use strict';const express=require(_0x53167f('0x1')),router=express[_0x53167f('0x2')]();module[_0x53167f('0x0')]=router; \ No newline at end of file +const a656_0x3d82=['exports','express','Router'];(function(_0x510043,_0x3d82c6){const _0xbb0fde=function(_0xb8d11){while(--_0xb8d11){_0x510043['push'](_0x510043['shift']());}};_0xbb0fde(++_0x3d82c6);}(a656_0x3d82,0x119));const a656_0xbb0f=function(_0x510043,_0x3d82c6){_0x510043=_0x510043-0x0;let _0xbb0fde=a656_0x3d82[_0x510043];return _0xbb0fde;};const _0x3b76e0=a656_0xbb0f;'use strict';const express=require(_0x3b76e0('0x2')),router=express[_0x3b76e0('0x0')]();module[_0x3b76e0('0x1')]=router; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.attributes.js b/server/api/userFaxQueue/userFaxQueue.attributes.js index e1089e5..e75466c 100644 --- a/server/api/userFaxQueue/userFaxQueue.attributes.js +++ b/server/api/userFaxQueue/userFaxQueue.attributes.js @@ -1 +1 @@ -const a657_0x83ce=['exports','INTEGER','STRING'];(function(_0x11b689,_0x83ce54){const _0x118501=function(_0x498bd8){while(--_0x498bd8){_0x11b689['push'](_0x11b689['shift']());}};_0x118501(++_0x83ce54);}(a657_0x83ce,0x140));const a657_0x1185=function(_0x11b689,_0x83ce54){_0x11b689=_0x11b689-0x0;let _0x118501=a657_0x83ce[_0x11b689];return _0x118501;};const _0x40fc41=a657_0x1185;'use strict';const Sequelize=require('sequelize');module[_0x40fc41('0x1')]={'penalty':{'type':Sequelize[_0x40fc41('0x2')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x40fc41('0x2')],'defaultValue':0x0},'queue':{'type':Sequelize[_0x40fc41('0x0')]}}; \ No newline at end of file +const a657_0x51ca=['INTEGER','sequelize','exports'];(function(_0x570d41,_0x51ca39){const _0xfe643=function(_0x28dcd5){while(--_0x28dcd5){_0x570d41['push'](_0x570d41['shift']());}};_0xfe643(++_0x51ca39);}(a657_0x51ca,0x1eb));const a657_0xfe64=function(_0x570d41,_0x51ca39){_0x570d41=_0x570d41-0x0;let _0xfe643=a657_0x51ca[_0x570d41];return _0xfe643;};const _0x1c297f=a657_0xfe64;'use strict';const Sequelize=require(_0x1c297f('0x2'));module[_0x1c297f('0x0')]={'penalty':{'type':Sequelize[_0x1c297f('0x1')],'defaultValue':0x0},'assigned':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'queue':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.model.js b/server/api/userFaxQueue/userFaxQueue.model.js index 194ca93..a272549 100644 --- a/server/api/userFaxQueue/userFaxQueue.model.js +++ b/server/api/userFaxQueue/userFaxQueue.model.js @@ -1 +1 @@ -const a658_0x4dbd=['exports','user_has_fax_queues','define','./userFaxQueue.attributes'];(function(_0x7eebc1,_0x4dbd78){const _0x7503a3=function(_0x2502c8){while(--_0x2502c8){_0x7eebc1['push'](_0x7eebc1['shift']());}};_0x7503a3(++_0x4dbd78);}(a658_0x4dbd,0x163));const a658_0x7503=function(_0x7eebc1,_0x4dbd78){_0x7eebc1=_0x7eebc1-0x0;let _0x7503a3=a658_0x4dbd[_0x7eebc1];return _0x7503a3;};const _0x21e0b1=a658_0x7503;'use strict';const attributes=require(_0x21e0b1('0x0'));module[_0x21e0b1('0x1')]=function(_0x2502c8){const _0x182195=_0x21e0b1,_0x480562=_0x2502c8[_0x182195('0x3')]('UserFaxQueue',attributes,{'tableName':_0x182195('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x480562;}; \ No newline at end of file +const a658_0x2958=['./userFaxQueue.attributes','UserFaxQueue','define'];(function(_0x49daf9,_0x2958de){const _0x2ba598=function(_0x536206){while(--_0x536206){_0x49daf9['push'](_0x49daf9['shift']());}};_0x2ba598(++_0x2958de);}(a658_0x2958,0x86));const a658_0x2ba5=function(_0x49daf9,_0x2958de){_0x49daf9=_0x49daf9-0x0;let _0x2ba598=a658_0x2958[_0x49daf9];return _0x2ba598;};const _0x440cbe=a658_0x2ba5;'use strict';const attributes=require(_0x440cbe('0x1'));module['exports']=function(_0x536206){const _0xe74fe9=_0x440cbe,_0x2cdea4=_0x536206[_0xe74fe9('0x0')](_0xe74fe9('0x2'),attributes,{'tableName':'user_has_fax_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2cdea4;}; \ No newline at end of file diff --git a/server/api/userMailQueue/index.js b/server/api/userMailQueue/index.js index da7b433..8026c5c 100644 --- a/server/api/userMailQueue/index.js +++ b/server/api/userMailQueue/index.js @@ -1 +1 @@ -const a659_0x1acc=['express'];(function(_0x29db2e,_0x1acc44){const _0x21c79f=function(_0x3ce917){while(--_0x3ce917){_0x29db2e['push'](_0x29db2e['shift']());}};_0x21c79f(++_0x1acc44);}(a659_0x1acc,0xe1));const a659_0x21c7=function(_0x29db2e,_0x1acc44){_0x29db2e=_0x29db2e-0x0;let _0x21c79f=a659_0x1acc[_0x29db2e];return _0x21c79f;};const _0x53c6e7=a659_0x21c7;'use strict';const express=require(_0x53c6e7('0x0')),router=express['Router']();module['exports']=router; \ No newline at end of file +const a659_0x2830=['Router','exports','express'];(function(_0x958d94,_0x2830f9){const _0x2173de=function(_0x2dca93){while(--_0x2dca93){_0x958d94['push'](_0x958d94['shift']());}};_0x2173de(++_0x2830f9);}(a659_0x2830,0x98));const a659_0x2173=function(_0x958d94,_0x2830f9){_0x958d94=_0x958d94-0x0;let _0x2173de=a659_0x2830[_0x958d94];return _0x2173de;};const _0xaa2117=a659_0x2173;'use strict';const express=require(_0xaa2117('0x0')),router=express[_0xaa2117('0x1')]();module[_0xaa2117('0x2')]=router; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.attributes.js b/server/api/userMailQueue/userMailQueue.attributes.js index cb1c4ff..c87b6de 100644 --- a/server/api/userMailQueue/userMailQueue.attributes.js +++ b/server/api/userMailQueue/userMailQueue.attributes.js @@ -1 +1 @@ -const a660_0x91fa=['exports','INTEGER'];(function(_0x3728e9,_0x91fa7f){const _0x2a97eb=function(_0x49e631){while(--_0x49e631){_0x3728e9['push'](_0x3728e9['shift']());}};_0x2a97eb(++_0x91fa7f);}(a660_0x91fa,0xb0));const a660_0x2a97=function(_0x3728e9,_0x91fa7f){_0x3728e9=_0x3728e9-0x0;let _0x2a97eb=a660_0x91fa[_0x3728e9];return _0x2a97eb;};const _0x153e29=a660_0x2a97;'use strict';const Sequelize=require('sequelize');module[_0x153e29('0x0')]={'penalty':{'type':Sequelize[_0x153e29('0x1')],'defaultValue':0x0}}; \ No newline at end of file +const a660_0x5e3f=['sequelize','exports'];(function(_0x45c1ed,_0x5e3f9b){const _0x3406b5=function(_0x445c91){while(--_0x445c91){_0x45c1ed['push'](_0x45c1ed['shift']());}};_0x3406b5(++_0x5e3f9b);}(a660_0x5e3f,0x17b));const a660_0x3406=function(_0x45c1ed,_0x5e3f9b){_0x45c1ed=_0x45c1ed-0x0;let _0x3406b5=a660_0x5e3f[_0x45c1ed];return _0x3406b5;};const _0x30b753=a660_0x3406;'use strict';const Sequelize=require(_0x30b753('0x1'));module[_0x30b753('0x0')]={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.model.js b/server/api/userMailQueue/userMailQueue.model.js index 1779fa6..429447c 100644 --- a/server/api/userMailQueue/userMailQueue.model.js +++ b/server/api/userMailQueue/userMailQueue.model.js @@ -1 +1 @@ -const a661_0x3e3a=['./userMailQueue.attributes','define','UserMailQueue','exports'];(function(_0x6173d2,_0x3e3a64){const _0x770c86=function(_0x53bf72){while(--_0x53bf72){_0x6173d2['push'](_0x6173d2['shift']());}};_0x770c86(++_0x3e3a64);}(a661_0x3e3a,0x12f));const a661_0x770c=function(_0x6173d2,_0x3e3a64){_0x6173d2=_0x6173d2-0x0;let _0x770c86=a661_0x3e3a[_0x6173d2];return _0x770c86;};const _0x4e4433=a661_0x770c;'use strict';const attributes=require(_0x4e4433('0x1'));module[_0x4e4433('0x0')]=function(_0x53bf72){const _0x4f0be6=_0x4e4433,_0x4b0898=_0x53bf72[_0x4f0be6('0x2')](_0x4f0be6('0x3'),attributes,{'tableName':'user_has_mail_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4b0898;}; \ No newline at end of file +const a661_0x1cb5=['define','user_has_mail_queues','exports','UserMailQueue','./userMailQueue.attributes'];(function(_0x2b413c,_0x1cb576){const _0x3e6d70=function(_0x25afd6){while(--_0x25afd6){_0x2b413c['push'](_0x2b413c['shift']());}};_0x3e6d70(++_0x1cb576);}(a661_0x1cb5,0x14d));const a661_0x3e6d=function(_0x2b413c,_0x1cb576){_0x2b413c=_0x2b413c-0x0;let _0x3e6d70=a661_0x1cb5[_0x2b413c];return _0x3e6d70;};const _0x495a5=a661_0x3e6d;'use strict';const attributes=require(_0x495a5('0x1'));module[_0x495a5('0x4')]=function(_0x25afd6){const _0x54762f=_0x495a5,_0xae5f21=_0x25afd6[_0x54762f('0x2')](_0x54762f('0x0'),attributes,{'tableName':_0x54762f('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xae5f21;}; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/index.js b/server/api/userOpenchannelQueue/index.js index 3dc18f5..d1ee5d8 100644 --- a/server/api/userOpenchannelQueue/index.js +++ b/server/api/userOpenchannelQueue/index.js @@ -1 +1 @@ -const a662_0x7875=['exports','express'];(function(_0x7e4991,_0x78750e){const _0x3d67f6=function(_0x36bdbb){while(--_0x36bdbb){_0x7e4991['push'](_0x7e4991['shift']());}};_0x3d67f6(++_0x78750e);}(a662_0x7875,0xeb));const a662_0x3d67=function(_0x7e4991,_0x78750e){_0x7e4991=_0x7e4991-0x0;let _0x3d67f6=a662_0x7875[_0x7e4991];return _0x3d67f6;};const _0x50267d=a662_0x3d67;'use strict';const express=require(_0x50267d('0x0')),router=express['Router']();module[_0x50267d('0x1')]=router; \ No newline at end of file +const a662_0x2c09=['exports','Router','express'];(function(_0x130aab,_0x2c097b){const _0x1cda9d=function(_0x3f4e3a){while(--_0x3f4e3a){_0x130aab['push'](_0x130aab['shift']());}};_0x1cda9d(++_0x2c097b);}(a662_0x2c09,0x78));const a662_0x1cda=function(_0x130aab,_0x2c097b){_0x130aab=_0x130aab-0x0;let _0x1cda9d=a662_0x2c09[_0x130aab];return _0x1cda9d;};const _0xa2de1d=a662_0x1cda;'use strict';const express=require(_0xa2de1d('0x2')),router=express[_0xa2de1d('0x1')]();module[_0xa2de1d('0x0')]=router; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js index 943d773..0bc4b5a 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js @@ -1 +1 @@ -const a663_0x7579=['INTEGER','exports','sequelize'];(function(_0x211ce5,_0x7579){const _0x468791=function(_0x3976de){while(--_0x3976de){_0x211ce5['push'](_0x211ce5['shift']());}};_0x468791(++_0x7579);}(a663_0x7579,0xc7));const a663_0x4687=function(_0x211ce5,_0x7579){_0x211ce5=_0x211ce5-0x0;let _0x468791=a663_0x7579[_0x211ce5];return _0x468791;};const _0x29bf4a=a663_0x4687;'use strict';const Sequelize=require(_0x29bf4a('0x1'));module[_0x29bf4a('0x0')]={'penalty':{'type':Sequelize[_0x29bf4a('0x2')],'defaultValue':0x0}}; \ No newline at end of file +const a663_0x4d72=['exports'];(function(_0x2b6b29,_0x4d722c){const _0x1348c8=function(_0x5d2a23){while(--_0x5d2a23){_0x2b6b29['push'](_0x2b6b29['shift']());}};_0x1348c8(++_0x4d722c);}(a663_0x4d72,0x173));const a663_0x1348=function(_0x2b6b29,_0x4d722c){_0x2b6b29=_0x2b6b29-0x0;let _0x1348c8=a663_0x4d72[_0x2b6b29];return _0x1348c8;};const _0x5548b4=a663_0x1348;'use strict';const Sequelize=require('sequelize');module[_0x5548b4('0x0')]={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js index 1c37bf6..3281d13 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js @@ -1 +1 @@ -const a664_0x79cf=['UserOpenchannelQueue','user_has_openchannel_queues','exports','./userOpenchannelQueue.attributes'];(function(_0x5f0726,_0x79cf5c){const _0x72d31f=function(_0x5624b2){while(--_0x5624b2){_0x5f0726['push'](_0x5f0726['shift']());}};_0x72d31f(++_0x79cf5c);}(a664_0x79cf,0x100));const a664_0x72d3=function(_0x5f0726,_0x79cf5c){_0x5f0726=_0x5f0726-0x0;let _0x72d31f=a664_0x79cf[_0x5f0726];return _0x72d31f;};const _0x17f894=a664_0x72d3;'use strict';const attributes=require(_0x17f894('0x3'));module[_0x17f894('0x2')]=function(_0x5624b2){const _0x76faa7=_0x17f894,_0x3e8a9a=_0x5624b2['define'](_0x76faa7('0x0'),attributes,{'tableName':_0x76faa7('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3e8a9a;}; \ No newline at end of file +const a664_0x539d=['user_has_openchannel_queues','./userOpenchannelQueue.attributes','exports','define'];(function(_0xc2a849,_0x539dc8){const _0x1efc4e=function(_0x41c58e){while(--_0x41c58e){_0xc2a849['push'](_0xc2a849['shift']());}};_0x1efc4e(++_0x539dc8);}(a664_0x539d,0xe8));const a664_0x1efc=function(_0xc2a849,_0x539dc8){_0xc2a849=_0xc2a849-0x0;let _0x1efc4e=a664_0x539d[_0xc2a849];return _0x1efc4e;};const _0x44a0cd=a664_0x1efc;'use strict';const attributes=require(_0x44a0cd('0x1'));module[_0x44a0cd('0x2')]=function(_0x41c58e){const _0x558629=_0x44a0cd,_0x26f1a6=_0x41c58e[_0x558629('0x3')]('UserOpenchannelQueue',attributes,{'tableName':_0x558629('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x26f1a6;}; \ No newline at end of file diff --git a/server/api/userProfile/index.js b/server/api/userProfile/index.js index 7b13f96..6d0c7da 100644 --- a/server/api/userProfile/index.js +++ b/server/api/userProfile/index.js @@ -1 +1 @@ -const a665_0x9686=['put','destroy','/describe','create','../../components/auth/service','isAuthenticated','delete','express','./userProfile.controller','index','update','getSections','addResources','/:id','/:id/sections','describe','/:id/resources','get','show','post','removeResources','addSections','clone'];(function(_0x3d05b3,_0x96867f){const _0x1d5c40=function(_0x19305b){while(--_0x19305b){_0x3d05b3['push'](_0x3d05b3['shift']());}};_0x1d5c40(++_0x96867f);}(a665_0x9686,0xb6));const a665_0x1d5c=function(_0x3d05b3,_0x96867f){_0x3d05b3=_0x3d05b3-0x0;let _0x1d5c40=a665_0x9686[_0x3d05b3];return _0x1d5c40;};const _0x60d02=a665_0x1d5c;'use strict';const express=require(_0x60d02('0x9')),router=express['Router'](),auth=require(_0x60d02('0x6')),controller=require(_0x60d02('0xa'));router[_0x60d02('0x13')]('/',auth[_0x60d02('0x7')](),controller[_0x60d02('0xb')]),router[_0x60d02('0x13')](_0x60d02('0x4'),auth[_0x60d02('0x7')](),controller[_0x60d02('0x11')]),router[_0x60d02('0x13')](_0x60d02('0xf'),auth[_0x60d02('0x7')](),controller[_0x60d02('0x14')]),router[_0x60d02('0x13')](_0x60d02('0x10'),auth[_0x60d02('0x7')](),controller[_0x60d02('0xd')]),router['get'](_0x60d02('0x12'),auth[_0x60d02('0x7')](),controller['getResources']),router['post']('/',auth[_0x60d02('0x7')](),controller[_0x60d02('0x5')]),router[_0x60d02('0x15')]('/:id/clone',auth[_0x60d02('0x7')](),controller[_0x60d02('0x1')]),router[_0x60d02('0x15')]('/:id/sections',auth[_0x60d02('0x7')](),controller[_0x60d02('0x0')]),router[_0x60d02('0x15')](_0x60d02('0x12'),auth[_0x60d02('0x7')](),controller[_0x60d02('0xe')]),router[_0x60d02('0x2')](_0x60d02('0xf'),auth['isAuthenticated'](),controller[_0x60d02('0xc')]),router['delete']('/:id',auth[_0x60d02('0x7')](),controller[_0x60d02('0x3')]),router[_0x60d02('0x8')](_0x60d02('0x10'),auth[_0x60d02('0x7')](),controller['removeSections']),router[_0x60d02('0x8')](_0x60d02('0x12'),auth[_0x60d02('0x7')](),controller[_0x60d02('0x16')]),module['exports']=router; \ No newline at end of file +const a665_0x35c3=['express','put','show','delete','removeSections','/:id/sections','getResources','/:id/resources','addSections','create','get','/:id/clone','clone','describe','isAuthenticated','post','exports','/:id','destroy','update','index'];(function(_0x5befe5,_0x35c3ee){const _0x24ccb6=function(_0x2dd822){while(--_0x2dd822){_0x5befe5['push'](_0x5befe5['shift']());}};_0x24ccb6(++_0x35c3ee);}(a665_0x35c3,0x1ca));const a665_0x24cc=function(_0x5befe5,_0x35c3ee){_0x5befe5=_0x5befe5-0x0;let _0x24ccb6=a665_0x35c3[_0x5befe5];return _0x24ccb6;};const _0x16a17d=a665_0x24cc;'use strict';const express=require(_0x16a17d('0x4')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./userProfile.controller');router[_0x16a17d('0xe')]('/',auth[_0x16a17d('0x12')](),controller[_0x16a17d('0x3')]),router[_0x16a17d('0xe')]('/describe',auth[_0x16a17d('0x12')](),controller[_0x16a17d('0x11')]),router[_0x16a17d('0xe')](_0x16a17d('0x0'),auth['isAuthenticated'](),controller[_0x16a17d('0x6')]),router[_0x16a17d('0xe')](_0x16a17d('0x9'),auth[_0x16a17d('0x12')](),controller['getSections']),router[_0x16a17d('0xe')](_0x16a17d('0xb'),auth[_0x16a17d('0x12')](),controller[_0x16a17d('0xa')]),router[_0x16a17d('0x13')]('/',auth[_0x16a17d('0x12')](),controller[_0x16a17d('0xd')]),router[_0x16a17d('0x13')](_0x16a17d('0xf'),auth['isAuthenticated'](),controller[_0x16a17d('0x10')]),router[_0x16a17d('0x13')](_0x16a17d('0x9'),auth[_0x16a17d('0x12')](),controller[_0x16a17d('0xc')]),router['post'](_0x16a17d('0xb'),auth[_0x16a17d('0x12')](),controller['addResources']),router[_0x16a17d('0x5')](_0x16a17d('0x0'),auth[_0x16a17d('0x12')](),controller[_0x16a17d('0x2')]),router[_0x16a17d('0x7')](_0x16a17d('0x0'),auth[_0x16a17d('0x12')](),controller[_0x16a17d('0x1')]),router[_0x16a17d('0x7')](_0x16a17d('0x9'),auth[_0x16a17d('0x12')](),controller[_0x16a17d('0x8')]),router['delete'](_0x16a17d('0xb'),auth[_0x16a17d('0x12')](),controller['removeResources']),module[_0x16a17d('0x14')]=router; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.attributes.js b/server/api/userProfile/userProfile.attributes.js index ba1af13..7e55271 100644 --- a/server/api/userProfile/userProfile.attributes.js +++ b/server/api/userProfile/userProfile.attributes.js @@ -1 +1 @@ -const a666_0x3fda=['STRING','sequelize','getDataValue','crudPermissions','setDataValue','join','name'];(function(_0x427b69,_0x3fdab3){const _0x33177b=function(_0x1c1344){while(--_0x1c1344){_0x427b69['push'](_0x427b69['shift']());}};_0x33177b(++_0x3fdab3);}(a666_0x3fda,0x1e6));const a666_0x3317=function(_0x427b69,_0x3fdab3){_0x427b69=_0x427b69-0x0;let _0x33177b=a666_0x3fda[_0x427b69];return _0x33177b;};const _0x33e07e=a666_0x3317;'use strict';const Sequelize=require(_0x33e07e('0x5'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x33e07e('0x3')},'crudPermissions':{'type':Sequelize[_0x33e07e('0x4')],'set':function(_0x1c1344){const _0x50cf52=_0x33e07e;this[_0x50cf52('0x1')](_0x50cf52('0x0'),_0x1c1344?_0x1c1344[_0x50cf52('0x2')](''):[]);},'get':function(){const _0x3c081f=_0x33e07e;return this[_0x3c081f('0x6')](_0x3c081f('0x0'))?this[_0x3c081f('0x6')](_0x3c081f('0x0'))['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize['STRING'],'allowNull':!![]}}; \ No newline at end of file +const a666_0x37fa=['sequelize','STRING','getDataValue','split','join','exports','setDataValue','name','crudPermissions'];(function(_0x37e6ba,_0x37fa9c){const _0x12add1=function(_0x661cbd){while(--_0x661cbd){_0x37e6ba['push'](_0x37e6ba['shift']());}};_0x12add1(++_0x37fa9c);}(a666_0x37fa,0x1da));const a666_0x12ad=function(_0x37e6ba,_0x37fa9c){_0x37e6ba=_0x37e6ba-0x0;let _0x12add1=a666_0x37fa[_0x37e6ba];return _0x12add1;};const _0x28f424=a666_0x12ad;'use strict';const Sequelize=require(_0x28f424('0x3'));module[_0x28f424('0x8')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x28f424('0x1')},'crudPermissions':{'type':Sequelize[_0x28f424('0x4')],'set':function(_0x661cbd){const _0x46d96=_0x28f424;this[_0x46d96('0x0')](_0x46d96('0x2'),_0x661cbd?_0x661cbd[_0x46d96('0x7')](''):[]);},'get':function(){const _0x1d0a86=_0x28f424;return this[_0x1d0a86('0x5')](_0x1d0a86('0x2'))?this['getDataValue'](_0x1d0a86('0x2'))[_0x1d0a86('0x6')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x28f424('0x4')],'allowNull':!![]}}; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.controller.js b/server/api/userProfile/userProfile.controller.js index 9f53f3a..bef6d65 100644 --- a/server/api/userProfile/userProfile.controller.js +++ b/server/api/userProfile/userProfile.controller.js @@ -1 +1 @@ -const a667_0x9787=['Users','users','subsections','query','order','sectionId','Tag','lodash','FreshdeskAccount','sugarcrmaccounts','mailsubstatuses','update','Resources','sequelize','forEach','union','metrics','Telephones','findAll','mergeResources','error','createdAt','../../rediscache','vtigeraccounts','rawAttributes','agents','mailqueues','UserProfile','where','role','SquareOdbc','OpenchannelQueue','register','include','outboundroutes','FaxQueue','Trunk','Reports','chatqueues','filters','nolimit','triggers','set','ids','all','Sound','send','custom','SmsAccount','parentSections','OpenchannelAccount','contacts','sendStatus','includes','transaction','ListId','create','show','variables','inboundroutes','each','merge','CmCustomField','teams','WhatsappAccount','key','customdashboards','filter','dispositions','resourceId','membername','zohoaccounts','QueueCampaigns','end','projects','then','VoiceContext','status','json','map','salesforceaccounts','VoiceExtension','VoiceQueues','globalcustomfields','tags','queue','CmContact','crudPermissions','toLowerCase','templates','Trigger','Plugin','removeResources','SmsQueue','telephone','openchannelaccounts','addSections','length','omit','SquareProject','user','addResources','type','offset','undefined','params','bulkCreate','Tags','pauses','sort','../../config/logger','cannedanswers','JscriptyProject','ThroughTags','voicerecordings','UserProfileSection','outbound','sounds','../../mysqldb','squareprojects','body','./userProfile.socket','Unknown\x20section','SalesforceAccount','trunks','childModel','index','faxaccounts','color','inbound','VoiceChanSpy','AnalyticExtractedReport','ZohoAccount','VoiceMusicOnHold','clone','updatedAt','destroy','push','fieldName','VIRTUAL','attributes','getSections','VoicePrefix','MailQueue','mailaccounts','count','keys','whatsappaccounts','Agents','api','Campaign','voiceprefixes','WhatsappQueue','MailSubstatus','MailAccount','intersection','SquareProjects','deskaccounts','tag','findOne','limit','SugarcrmAccount','ignore','Invalid\x20section\x20\x27','fields','options','pick','voicemails','catch','voicequeues','DeskAccount','default','get','field','Disposition','Sequelize','section','reportId','describe','model','CmList','getResources','odbc','CustomReports','CannedAnswer','chanspies','Variable','SquareRecording','foreignKey','ChatQueue','find','stack','musiconholds','whatsappqueues','queuecampaigns','Dashboard','VoiceQueue','smsaccounts','companies','chatwebsites','rows','name','isEmpty','associatedResources','includeAll','reportType','ChatWebsite','ZendeskAccount','like','autoAssociation','squarerecordings','freshdeskaccounts','agent','userProfileId','User','projectName','telephones','enabled','UserProfileResource','lists'];(function(_0x11764a,_0x9787a6){const _0x366a02=function(_0x5c52b7){while(--_0x5c52b7){_0x11764a['push'](_0x11764a['shift']());}};_0x366a02(++_0x9787a6);}(a667_0x9787,0x102));const a667_0x366a=function(_0x11764a,_0x9787a6){_0x11764a=_0x11764a-0x0;let _0x366a02=a667_0x9787[_0x11764a];return _0x366a02;};const _0x4f3744=a667_0x366a;'use strict';const _=require(_0x4f3744('0xbd')),qs=require('../../components/parsers/qs'),logger=require(_0x4f3744('0x48'))(_0x4f3744('0x6f')),{getSocket}=require(_0x4f3744('0xcc')),socket=getSocket(),db=require(_0x4f3744('0x50'))['db'],{Op}=require(_0x4f3744('0xc3'));require(_0x4f3744('0x53'))[_0x4f3744('0xd6')](socket);function respondWithStatusCode(_0x5c52b7,_0x39c136){return _0x39c136=_0x39c136||0xcc,function(_0x3c5013){const _0x229c62=a667_0x366a;if(_0x3c5013)return _0x5c52b7[_0x229c62('0xe')](_0x39c136);return _0x5c52b7[_0x229c62('0x27')](_0x39c136)[_0x229c62('0x23')]();};}function respondWithResult(_0x130cfc,_0x2acefc){return _0x2acefc=_0x2acefc||0xc8,function(_0x555e6a){const _0x2b5da1=a667_0x366a;if(_0x555e6a)return _0x130cfc[_0x2b5da1('0x27')](_0x2acefc)[_0x2b5da1('0x28')](_0x555e6a);};}function respondWithFilteredResult(_0x456625,_0x943fa){return function(_0x2718b0){const _0x8127a0=a667_0x366a;if(_0x2718b0){const _0x15334c=_0x2718b0[_0x8127a0('0x6b')],_0x31c636=_0x943fa['offset'];let _0x5b5df9=_0x943fa[_0x8127a0('0x41')]+_0x943fa[_0x8127a0('0x7a')],_0x2c3612;return _0x5b5df9>=_0x15334c?(_0x5b5df9=_0x15334c,_0x2c3612=0xc8):_0x2c3612=0xce,_0x456625[_0x8127a0('0x27')](_0x2c3612),_0x456625[_0x8127a0('0x4')]('Content-Range',_0x31c636+'-'+_0x5b5df9+'/'+_0x15334c)[_0x8127a0('0x28')](_0x2718b0);}return null;};}function saveUpdates(_0x3edcf1){return function(_0x31b1bb){const _0x48a057=a667_0x366a;if(_0x31b1bb)return _0x31b1bb['update'](_0x3edcf1)[_0x48a057('0x25')](function(_0x259fe4){return _0x259fe4;});return null;};}function removeEntity(_0x179988){return function(_0x5bb938){const _0x128304=a667_0x366a;if(_0x5bb938)return _0x5bb938[_0x128304('0x62')]()[_0x128304('0x25')](function(){const _0x43d0b0=_0x128304;_0x179988[_0x43d0b0('0x27')](0xcc)[_0x43d0b0('0x23')]();});};}function handleEntityNotFound(_0x13c467){return function(_0x4b51b0){const _0x14e58c=a667_0x366a;return!_0x4b51b0&&_0x13c467[_0x14e58c('0xe')](0x194),_0x4b51b0;};}function handleError(_0x85bfb7,_0x4555e1){return _0x4555e1=_0x4555e1||0x1f4,function(_0x28620b){const _0x5d9f8c=a667_0x366a;logger[_0x5d9f8c('0xca')](_0x28620b[_0x5d9f8c('0x99')]),_0x28620b[_0x5d9f8c('0xa3')]&&delete _0x28620b[_0x5d9f8c('0xa3')],_0x85bfb7[_0x5d9f8c('0x27')](_0x4555e1)[_0x5d9f8c('0x8')](_0x28620b);};}exports[_0x4f3744('0x58')]=function(_0x3ad48c,_0x5afdcf){const _0x2d14b9=_0x4f3744;let _0x5df492={};const _0x415ba9={},_0x4f6f36={'count':0x0,'rows':[]},_0x3f8999=_['map'](db[_0x2d14b9('0xd1')]['rawAttributes'],function(_0x4d6b1e){const _0x49b3b5=_0x2d14b9;return{'name':_0x4d6b1e[_0x49b3b5('0x64')],'type':_0x4d6b1e['type']['key']};});_0x415ba9[_0x2d14b9('0x8d')]=_[_0x2d14b9('0x29')](_0x3f8999,_0x2d14b9('0xa3')),_0x415ba9[_0x2d14b9('0xb9')]=_[_0x2d14b9('0x6c')](_0x3ad48c[_0x2d14b9('0xb9')]),_0x415ba9[_0x2d14b9('0x1')]=_[_0x2d14b9('0x75')](_0x415ba9[_0x2d14b9('0x8d')],_0x415ba9['query']),_0x5df492['attributes']=_[_0x2d14b9('0x75')](_0x415ba9[_0x2d14b9('0x8d')],qs[_0x2d14b9('0x7e')](_0x3ad48c[_0x2d14b9('0xb9')][_0x2d14b9('0x7e')])),_0x5df492[_0x2d14b9('0x66')]=_0x5df492['attributes'][_0x2d14b9('0x3b')]?_0x5df492[_0x2d14b9('0x66')]:_0x415ba9[_0x2d14b9('0x8d')];typeof _0x3ad48c[_0x2d14b9('0xb9')][_0x2d14b9('0x2')]===_0x2d14b9('0x42')&&(_0x5df492[_0x2d14b9('0x7a')]=qs['limit'](_0x3ad48c[_0x2d14b9('0xb9')][_0x2d14b9('0x7a')]),_0x5df492[_0x2d14b9('0x41')]=qs[_0x2d14b9('0x41')](_0x3ad48c[_0x2d14b9('0xb9')]['offset']));_0x5df492['order']=qs['sort'](_0x3ad48c['query'][_0x2d14b9('0x47')]),_0x5df492[_0x2d14b9('0xd2')]=qs[_0x2d14b9('0x1')](_[_0x2d14b9('0x80')](_0x3ad48c[_0x2d14b9('0xb9')],_0x415ba9[_0x2d14b9('0x1')]),_0x3f8999);_0x3ad48c[_0x2d14b9('0xb9')][_0x2d14b9('0x1d')]&&(_0x5df492[_0x2d14b9('0xd2')]=_[_0x2d14b9('0x17')](_0x5df492['where'],{[Op['or']]:_[_0x2d14b9('0x29')](_0x3f8999,function(_0x5ece76){const _0x478d79=_0x2d14b9;if(_0x5ece76[_0x478d79('0x40')]!=='VIRTUAL'){const _0xc91c2e={};return _0xc91c2e[_0x5ece76[_0x478d79('0xa3')]]={[Op[_0x478d79('0xaa')]]:'%'+_0x3ad48c['query'][_0x478d79('0x1d')]+'%'},_0xc91c2e;}})}));_0x5df492=_[_0x2d14b9('0x17')]({},_0x5df492,_0x3ad48c[_0x2d14b9('0x7f')]);const _0x17d1aa={'where':_0x5df492[_0x2d14b9('0xd2')]};return db[_0x2d14b9('0xd1')][_0x2d14b9('0x6b')](_0x17d1aa)[_0x2d14b9('0x25')](function(_0x44da17){const _0x462834=_0x2d14b9;return _0x4f6f36[_0x462834('0x6b')]=_0x44da17,_0x3ad48c[_0x462834('0xb9')][_0x462834('0xa6')]&&(_0x5df492[_0x462834('0xd7')]=[{'all':!![]}]),db['UserProfile'][_0x462834('0xc8')](_0x5df492);})[_0x2d14b9('0x25')](function(_0x195196){return _0x4f6f36['rows']=_0x195196,_0x4f6f36;})[_0x2d14b9('0x25')](respondWithFilteredResult(_0x5afdcf,_0x5df492))[_0x2d14b9('0x82')](handleError(_0x5afdcf,null));},exports[_0x4f3744('0x13')]=function(_0x1b618a,_0x3c6e12){const _0x8533a6=_0x4f3744;let _0x184530={'raw':![],'where':{'id':_0x1b618a[_0x8533a6('0x43')]['id']}};const _0x44aa94={};return _0x44aa94[_0x8533a6('0x8d')]=_['keys'](db['UserProfile']['rawAttributes']),_0x44aa94[_0x8533a6('0xb9')]=_[_0x8533a6('0x6c')](_0x1b618a[_0x8533a6('0xb9')]),_0x44aa94[_0x8533a6('0x1')]=_[_0x8533a6('0x75')](_0x44aa94['model'],_0x44aa94[_0x8533a6('0xb9')]),_0x184530['attributes']=_[_0x8533a6('0x75')](_0x44aa94[_0x8533a6('0x8d')],qs[_0x8533a6('0x7e')](_0x1b618a[_0x8533a6('0xb9')][_0x8533a6('0x7e')])),_0x184530[_0x8533a6('0x66')]=_0x184530[_0x8533a6('0x66')][_0x8533a6('0x3b')]?_0x184530['attributes']:_0x44aa94[_0x8533a6('0x8d')],_0x1b618a[_0x8533a6('0xb9')][_0x8533a6('0xa6')]&&(_0x184530[_0x8533a6('0xd7')]=[{'all':!![]}]),_0x184530=_[_0x8533a6('0x17')]({},_0x184530,_0x1b618a['options']),db['UserProfile'][_0x8533a6('0x79')](_0x184530)[_0x8533a6('0x25')](handleEntityNotFound(_0x3c6e12))['then'](respondWithResult(_0x3c6e12,null))['catch'](handleError(_0x3c6e12,null));},exports[_0x4f3744('0x12')]=function(_0xc72e8e,_0x280447){const _0x2f7652=_0x4f3744;return db[_0x2f7652('0xd1')][_0x2f7652('0x12')](_0xc72e8e['body'],{})[_0x2f7652('0x25')](respondWithResult(_0x280447,0xc9))[_0x2f7652('0x82')](handleError(_0x280447,null));},exports[_0x4f3744('0x60')]=function(_0x4c4c58,_0x3468c1){const _0x3ff28a=_0x4f3744;let _0x28fbb3={'where':{'id':_0x4c4c58[_0x3ff28a('0x43')]['id']}};const _0x39539b={};return _0x39539b[_0x3ff28a('0x8d')]=_[_0x3ff28a('0x6c')](db[_0x3ff28a('0xd1')][_0x3ff28a('0xce')]),_0x28fbb3[_0x3ff28a('0x66')]=_[_0x3ff28a('0x75')](_0x39539b[_0x3ff28a('0x8d')],qs[_0x3ff28a('0x7e')](_0x4c4c58[_0x3ff28a('0xb9')]['fields'])),_0x28fbb3[_0x3ff28a('0x66')]=_0x28fbb3[_0x3ff28a('0x66')]['length']?_0x28fbb3['attributes']:_0x39539b[_0x3ff28a('0x8d')],_0x4c4c58[_0x3ff28a('0xb9')][_0x3ff28a('0xa6')]&&(_0x28fbb3[_0x3ff28a('0xd7')]=[{'all':!![]}]),_0x28fbb3=_['merge']({},_0x28fbb3,_0x4c4c58[_0x3ff28a('0x7f')]),db[_0x3ff28a('0xd1')]['findOne'](_0x28fbb3)[_0x3ff28a('0x25')](handleEntityNotFound(_0x3468c1))[_0x3ff28a('0x25')](function(_0x2a61e4){const _0x4398b2=_0x3ff28a;if(_0x2a61e4){let _0x42137e=_0x2a61e4['get']({'plain':!![]});return _0x42137e=qs[_0x4398b2('0x3c')](_0x42137e,['id','createdAt',_0x4398b2('0x61'),_0x4398b2('0x31')]),_0x4c4c58['body']=_[_0x4398b2('0x3c')](_0x4c4c58[_0x4398b2('0x52')],['id',_0x4398b2('0xcb'),'updatedAt']),db[_0x4398b2('0xc3')]['transaction'](function(_0x21015e){const _0xdfd484=_0x4398b2;return db[_0xdfd484('0xd1')][_0xdfd484('0x12')](_['merge'](_0x42137e,_0x4c4c58[_0xdfd484('0x52')]),{'include':_0x4c4c58['query'][_0xdfd484('0xa6')]?[{'all':!![]}]:undefined,'transaction':_0x21015e})['then'](function(_0x703c2){const _0x4f4345=_0xdfd484,_0x35d4e4=_0x703c2['get']({'plain':!![]});return db[_0x4f4345('0x4d')]['findAll']({'where':{'userProfileId':_0x4c4c58[_0x4f4345('0x43')]['id']},'raw':!![]})['then'](function(_0x28e18c){const _0x20592c=_0x4f4345;if(_0x28e18c)return Promise['each'](_0x28e18c,function(_0x2ac6d3){const _0x3bd11e=a667_0x366a;return new Promise(function(_0x51b7b1,_0x57fa1b){const _0xcdeab8=a667_0x366a;if(_0x2ac6d3['autoAssociation']===null||_0x2ac6d3[_0xcdeab8('0xab')]===0x1)_0x51b7b1(null);return db[_0xcdeab8('0xb4')][_0xcdeab8('0xc8')]({'where':{'sectionId':_0x2ac6d3['id']},'raw':!![]})[_0xcdeab8('0x25')](function(_0x174e49){const _0x417f47=_0xcdeab8,_0x29ea89=_[_0x417f47('0x29')](_0x174e49,function(_0x11caf7){const _0x58cb2a=_0x417f47;return qs['omit'](_0x11caf7,['id','createdAt',_0x58cb2a('0x61'),_0x58cb2a('0xbb')]);});_0x51b7b1(_0x29ea89);})['catch'](function(_0x210a2f){_0x57fa1b(_0x210a2f);});})[_0x3bd11e('0x25')](function(_0x121f49){const _0x2de371=_0x3bd11e,_0x4e541d=qs[_0x2de371('0x3c')](_0x2ac6d3,['id',_0x2de371('0xcb'),'updatedAt']);_0x4e541d[_0x2de371('0xaf')]=_0x35d4e4['id'];if(_0x121f49)_0x4e541d[_0x2de371('0xc2')]=_0x121f49;return _0x4e541d;})[_0x3bd11e('0x25')](function(_0x407e90){const _0x375e56=_0x3bd11e;return db['UserProfileSection'][_0x375e56('0x12')](_0x407e90,{'include':[{'model':db['UserProfileResource'],'as':_0x375e56('0xc2')}],'raw':!![],'transaction':_0x21015e});});})[_0x20592c('0x25')](function(){return _0x35d4e4;});});});});}})[_0x3ff28a('0x25')](respondWithResult(_0x3468c1,0xc9))[_0x3ff28a('0x82')](handleError(_0x3468c1,null));},exports[_0x4f3744('0xc1')]=function(_0xb3fed2,_0x199459){const _0x269a79=_0x4f3744;return _0xb3fed2[_0x269a79('0x52')]['id']&&delete _0xb3fed2['body']['id'],db['UserProfile'][_0x269a79('0x79')]({'where':{'id':_0xb3fed2['params']['id']}})[_0x269a79('0x25')](handleEntityNotFound(_0x199459))[_0x269a79('0x25')](saveUpdates(_0xb3fed2[_0x269a79('0x52')],null))['then'](respondWithResult(_0x199459,null))[_0x269a79('0x82')](handleError(_0x199459,null));},exports['destroy']=function(_0xcb854e,_0x5abf97){const _0x532405=_0x4f3744;return db[_0x532405('0xd1')][_0x532405('0x79')]({'where':{'id':_0xcb854e[_0x532405('0x43')]['id']}})[_0x532405('0x25')](handleEntityNotFound(_0x5abf97))['then'](removeEntity(_0x5abf97,null))[_0x532405('0x82')](handleError(_0x5abf97,null));},exports[_0x4f3744('0x8c')]=function(_0x4a0099,_0x4f96f0){const _0x5a511b=_0x4f3744;return db[_0x5a511b('0xd1')][_0x5a511b('0x8c')]()[_0x5a511b('0x25')](respondWithResult(_0x4f96f0,null))[_0x5a511b('0x82')](handleError(_0x4f96f0,null));},exports[_0x4f3744('0x3a')]=function(_0x382dbe,_0x11501d){const _0x33ba7f=_0x4f3744,_0x494bcd=_0x382dbe[_0x33ba7f('0x52')];return db[_0x33ba7f('0xd1')]['findOne']({'where':{'id':_0x382dbe[_0x33ba7f('0x43')]['id']}})[_0x33ba7f('0x25')](handleEntityNotFound(_0x11501d))[_0x33ba7f('0x25')](function(_0x51e430){const _0x2d1614=_0x33ba7f;if(_0x51e430)return db['sequelize'][_0x2d1614('0x10')](function(_0x3c4fdb){const _0xfe3b62=_0x2d1614;return db[_0xfe3b62('0x4d')]['destroy']({'where':{'userProfileId':_0x382dbe[_0xfe3b62('0x43')]['id'],'sectionId':_['map'](_0x494bcd,function(_0x4c17d8){return _0x4c17d8['sectionId'];})},'transaction':_0x3c4fdb})[_0xfe3b62('0x25')](function(){const _0x409965=_0xfe3b62,_0x38d559=_['map'](_0x494bcd,function(_0x2fe3cc){const _0x4f1994=a667_0x366a;return _0x2fe3cc['userProfileId']=_0x382dbe[_0x4f1994('0x43')]['id'],_0x2fe3cc;}),_0xa541f1=[];return Promise[_0x409965('0x16')](_0x38d559,function(_0xf5783c){const _0x14d06b=_0x409965;return db[_0x14d06b('0x4d')][_0x14d06b('0x12')](_0xf5783c,{'include':[{'model':db[_0x14d06b('0xb4')],'as':'Resources'}],'raw':!![],'transaction':_0x3c4fdb})[_0x14d06b('0x25')](function(_0x18d689){const _0x46788e=_0x14d06b;_0xa541f1['push'](_0x18d689[_0x46788e('0x86')]({'plain':!![]}));});})[_0x409965('0x25')](function(){return _0xa541f1;});});});})[_0x33ba7f('0x25')](function(_0x45826c){return _0x45826c;})[_0x33ba7f('0x25')](respondWithResult(_0x11501d,null))[_0x33ba7f('0x82')](handleError(_0x11501d,null));},exports['removeSections']=function(_0x9318ca,_0x4dc20d){const _0xd27c1f=_0x4f3744;let _0xaa7128;return db[_0xd27c1f('0xd1')][_0xd27c1f('0x79')]({'where':{'id':_0x9318ca[_0xd27c1f('0x43')]['id']},'attributes':['id',_0xd27c1f('0xa3')]})['then'](handleEntityNotFound(_0x4dc20d))[_0xd27c1f('0x25')](function(_0x16794f){const _0x2515fd=_0xd27c1f;if(_0x16794f)return _0xaa7128=_0x16794f,db[_0x2515fd('0x4d')][_0x2515fd('0x62')]({'where':{'userProfileId':_0x9318ca[_0x2515fd('0x43')]['id'],'sectionId':_0x9318ca[_0x2515fd('0xb9')]['ids']}});})[_0xd27c1f('0x25')](function(){return _0xaa7128;})[_0xd27c1f('0x25')](respondWithStatusCode(_0x4dc20d,null))[_0xd27c1f('0x82')](handleError(_0x4dc20d,null));},exports[_0x4f3744('0x67')]=function(_0x43699c,_0x3c7c14){const _0x229964=_0x4f3744;let _0x433b76=[],_0x323faa=[];return db['UserProfileSection'][_0x229964('0xc8')]({'where':{'userProfileId':_0x43699c[_0x229964('0x43')]['id']},'raw':!![]})[_0x229964('0x25')](function(_0x32eaf4){const _0x58a341=_0x229964;_0x433b76=_[_0x58a341('0x1d')](_0x32eaf4,function(_0xc18b7c){const _0x2ffbeb=_0x58a341;return _0xc18b7c['enabled']===0x1||_[_0x2ffbeb('0xf')]([0x3eb,0x709],_0xc18b7c['sectionId']);});if(!_[_0x58a341('0xa4')](_0x433b76))return _['map'](_0x433b76,function(_0x3b9dab){const _0x5eebb8=_0x58a341;return _0x3b9dab[_0x5eebb8('0xbb')];});else return;})[_0x229964('0x25')](function(_0x4d2d57){const _0x58b26c=_0x229964;if(_0x4d2d57)_0x323faa=_0x4d2d57;if(_[_0x58b26c('0xf')](_0x323faa,0x64)){const _0x2c5b3d=_[_0x58b26c('0x98')](_0x433b76,{'sectionId':0x64});return hasDefaultDashboard(_0x2c5b3d)['then'](function(_0x436f0d){return _['map'](_0x433b76,function(_0x46bc40){const _0x56255b=a667_0x366a;return _0x46bc40['sectionId']===0x64&&(_0x46bc40[_0x56255b('0xb8')]=_0x436f0d),_0x46bc40;});});}else return;})[_0x229964('0x25')](function(_0x5d53bd){const _0x30572d=_0x229964;if(_0x5d53bd)_0x433b76=_0x5d53bd;if(_[_0x30572d('0xf')](_0x323faa,0x3eb)){const _0x2d6557=_[_0x30572d('0x98')](_0x433b76,{'sectionId':0x3eb});return getCustomDashboards(_0x2d6557)[_0x30572d('0x25')](function(_0x15d655){const _0xccc3b1=_0x30572d;return _[_0xccc3b1('0x29')](_0x433b76,function(_0x1d56e4){const _0x2c1aa7=_0xccc3b1;return _0x2d6557[_0x2c1aa7('0xb3')]?_0x1d56e4[_0x2c1aa7('0xbb')]===0x3eb&&(_0x1d56e4[_0x2c1aa7('0xb8')]=_0x15d655):_0x1d56e4[_0x2c1aa7('0xbb')]===0x64&&(_0x1d56e4['subsections']=_0x15d655),_0x1d56e4;});});}else return;})[_0x229964('0x25')](function(_0x59ad7e){const _0x4387df=_0x229964;if(_0x59ad7e)_0x433b76=_0x59ad7e;if(_['includes'](_0x323faa,0x709)){const _0x17af78=_[_0x4387df('0x98')](_0x433b76,{'sectionId':0x709});return getPlugins(_0x17af78)[_0x4387df('0x25')](function(_0x48a2f0){const _0x263e76=_0x4387df;if(_0x17af78[_0x263e76('0xb3')])return _[_0x263e76('0x29')](_0x433b76,function(_0x1d668a){const _0x3d211d=_0x263e76;return _0x1d668a[_0x3d211d('0xbb')]===0x709&&(_0x1d668a[_0x3d211d('0xb8')]=_0x48a2f0),_0x1d668a;});else{const _0x1172ec={'sectionId':0x76c,'enabled':0x1,'subsections':_0x48a2f0},_0x5aca03=_[_0x263e76('0x29')](_0x433b76);return _0x5aca03['push'](_0x1172ec),_0x5aca03;}});}else return;})[_0x229964('0x25')](function(_0x19416d){const _0xa56258=_0x229964;if(_0x19416d)_0x433b76=_0x19416d;return _[_0xa56258('0x1d')](_0x433b76,[_0xa56258('0xb3'),0x1]);})[_0x229964('0x25')](respondWithResult(_0x3c7c14,null))[_0x229964('0x82')](handleError(_0x3c7c14,null));};function hasDefaultDashboard(_0xb57077){const _0x561c92=[0x65];return new Promise(function(_0x109c18,_0x1e1bf3){const _0x2cc794=a667_0x366a;try{if(_0xb57077[_0x2cc794('0xab')])_0x109c18(_0x561c92);else return db[_0x2cc794('0xb4')][_0x2cc794('0x79')]({'where':{'sectionId':_0xb57077['id']},'raw':!![]})[_0x2cc794('0x25')](function(_0xa679f0){_0xa679f0?_0x109c18(_0x561c92):_0x109c18();});}catch(_0x50263d){_0x1e1bf3(_0x50263d);}});}function getCustomDashboards(_0x2e6401){const _0x8e4e3f=[];return new Promise(function(_0x594688,_0x20774f){const _0x3ad497=a667_0x366a;try{return _0x2e6401['autoAssociation']?db[_0x3ad497('0x9d')][_0x3ad497('0xc8')]({'raw':!![]})[_0x3ad497('0x25')](function(_0x42449e){const _0x378955=_0x3ad497;_0x42449e[_0x378955('0xc4')](function(_0x3da237){const _0x43179a=_0x378955;_0x8e4e3f[_0x43179a('0x63')](_0x3da237['id']+0x1869f);}),_0x594688(_0x8e4e3f);}):db[_0x3ad497('0xb4')]['findAll']({'where':{'sectionId':_0x2e6401['id']},'raw':!![]})['then'](function(_0x26b7ab){const _0xe2cf76=_0x3ad497;_0x26b7ab[_0xe2cf76('0xc4')](function(_0x2e86b3){const _0x200a21=_0xe2cf76;_0x8e4e3f[_0x200a21('0x63')](_0x2e86b3['resourceId']+0x1869f);}),_0x594688(_0x8e4e3f);});}catch(_0xe0e0f4){_0x20774f(_0xe0e0f4);}});}function getPlugins(_0x3216bb){const _0x507e2d=[];return new Promise(function(_0x1dbfc8,_0x4aa415){const _0x54a63a=a667_0x366a;try{return _0x3216bb[_0x54a63a('0xab')]?db[_0x54a63a('0x35')][_0x54a63a('0xc8')]({'raw':!![]})[_0x54a63a('0x25')](function(_0x218f54){const _0x240e7c=_0x54a63a;_0x218f54[_0x240e7c('0xc4')](function(_0x124aca){const _0x4e3f0e=_0x240e7c;_0x507e2d[_0x4e3f0e('0x63')](_0x124aca['id']+0x15b38);}),_0x1dbfc8(_0x507e2d);}):db[_0x54a63a('0xb4')][_0x54a63a('0xc8')]({'where':{'sectionId':_0x3216bb['id']},'raw':!![]})[_0x54a63a('0x25')](function(_0x2cfaad){const _0xbea079=_0x54a63a;_0x2cfaad[_0xbea079('0xc4')](function(_0x598a3e){const _0x161446=_0xbea079;_0x507e2d['push'](_0x598a3e[_0x161446('0x1f')]+0x15b38);}),_0x1dbfc8(_0x507e2d);});}catch(_0x36b2d8){_0x4aa415(_0x36b2d8);}});}exports[_0x4f3744('0x3f')]=function(_0x18b4ad,_0x1f9c00){const _0x3790b1=_0x4f3744;return db['UserProfile']['findOne']({'where':{'id':_0x18b4ad[_0x3790b1('0x43')]['id']}})[_0x3790b1('0x25')](handleEntityNotFound(_0x1f9c00))[_0x3790b1('0x25')](function(_0x166af9){const _0x3a6eef=_0x3790b1;if(_0x166af9)return db[_0x3a6eef('0xc3')][_0x3a6eef('0x10')](function(_0x438dd4){const _0x3d4951=_0x3a6eef;return db[_0x3d4951('0x4d')][_0x3d4951('0xc8')]({'where':{'userProfileId':_0x18b4ad[_0x3d4951('0x43')]['id']},'attributes':['id'],'raw':!![]})['then'](function(_0x1e7af5){const _0x4449b7=_0x3d4951;if(_0x1e7af5)return db[_0x4449b7('0x4d')][_0x4449b7('0x62')]({'where':{'userProfileId':_0x18b4ad[_0x4449b7('0x43')]['id'],'id':_['map'](_0x1e7af5,function(_0x54d71a){return _0x54d71a['id'];})},'transaction':_0x438dd4});})[_0x3d4951('0x25')](function(){const _0x268562=_0x3d4951,_0x3bbb98=_[_0x268562('0x29')](_0x18b4ad[_0x268562('0x52')],function(_0x24c0a7){const _0x48dffc=_0x268562;return _0x24c0a7[_0x48dffc('0xaf')]=_0x18b4ad[_0x48dffc('0x43')]['id'],_0x24c0a7;});return db[_0x268562('0x4d')][_0x268562('0x44')](_0x3bbb98,{'raw':!![],'transaction':_0x438dd4});})[_0x3d4951('0x25')](function(_0x55f74e){const _0x238553=_0x3d4951,_0x45bfb4=_[_0x238553('0x1d')](_[_0x238553('0x29')](_0x55f74e,function(_0xfe5b36){const _0x141d99=_0x238553;return _0xfe5b36[_0x141d99('0x86')]({'plain':!![]});}),{'includeAll':![]});if(_0x45bfb4)return db[_0x238553('0x4d')][_0x238553('0xc8')]({'where':{'userProfileId':_0x18b4ad[_0x238553('0x43')]['id'],'sectionId':_['map'](_0x45bfb4,function(_0x787bcd){const _0x34100a=_0x238553;return _0x787bcd[_0x34100a('0xbb')];})},'attributes':['id','sectionId'],'raw':!![]})['then'](function(){const _0x45bd41=_0x238553,_0x174414=_[_0x45bd41('0x29')](_0x18b4ad[_0x45bd41('0x52')],function(_0x3bdd4f){const _0x200d43=_0x45bd41;return _0x3bdd4f['userProfileId']=_0x18b4ad[_0x200d43('0x43')]['id'],_0x3bdd4f;});return db['UserProfileResource'][_0x45bd41('0x44')](_0x174414,{'raw':!![],'transaction':_0x438dd4});});})[_0x3d4951('0x82')](handleError(_0x1f9c00,null));});})[_0x3790b1('0x25')](function(){})[_0x3790b1('0x25')](respondWithResult(_0x1f9c00,null))[_0x3790b1('0x82')](handleError(_0x1f9c00,null));},exports['removeResources']=function(_0x2fb8e5,_0x21d750){const _0xf7d94b=_0x4f3744;return db[_0xf7d94b('0xd1')][_0xf7d94b('0x79')]({'where':{'id':_0x2fb8e5[_0xf7d94b('0x43')]['id']}})['then'](handleEntityNotFound(_0x21d750))[_0xf7d94b('0x25')](function(_0x2af944){const _0x35b2d2=_0xf7d94b;if(_0x2af944)return _0x2af944[_0x35b2d2('0x36')](_0x2fb8e5[_0x35b2d2('0xb9')][_0x35b2d2('0x5')]);})[_0xf7d94b('0x25')](respondWithStatusCode(_0x21d750,null))['catch'](handleError(_0x21d750,null));},exports[_0x4f3744('0x8f')]=function(_0x4fe5e0,_0x205ac9){const _0x1cef4d=_0x4f3744;let _0x5608df={'raw':![],'where':{}};const _0x18b2ad={},_0x56000e={'count':0x0,'rows':[]},_0x9ea39f=_0x4fe5e0['query'][_0x1cef4d('0x8a')];if(typeof _0x9ea39f===_0x1cef4d('0x42'))throw new db[(_0x1cef4d('0x89'))]['ValidationError'](_0x1cef4d('0x54'));const _0x448f66=_0x4fe5e0[_0x1cef4d('0xb9')][_0x1cef4d('0xc9')]||![],_0xa37a02=getQueryModels(_0x9ea39f,_0x448f66);if(typeof _0xa37a02[_0x1cef4d('0x57')]===_0x1cef4d('0x42'))throw new db[(_0x1cef4d('0x89'))]['ValidationError'](_0x1cef4d('0x7d')+_0x9ea39f+'\x27');let _0x4c727c=[];return!_[_0x1cef4d('0xa4')](_0xa37a02['parentSections'])?_0x4c727c=_0xa37a02[_0x1cef4d('0xb')]:_0x4c727c=[{'name':_0x9ea39f}],db[_0x1cef4d('0xd1')]['findOne']({'where':{'id':_0x4fe5e0[_0x1cef4d('0x43')]['id']}})[_0x1cef4d('0x25')](handleEntityNotFound(_0x205ac9))[_0x1cef4d('0x25')](function(_0x2191e2){const _0x397e1a=_0x1cef4d;if(_0x2191e2){const _0x4aade6=[];for(let _0x5ee6d4=0x0;_0x5ee6d4<_0x4c727c['length'];_0x5ee6d4++){_0x4aade6['push'](db['UserProfileSection'][_0x397e1a('0x79')]({'where':{'userProfileId':_0x2191e2['id'],'name':_0x4c727c[_0x5ee6d4][_0x397e1a('0xa3')]},'raw':!![]}));}return Promise[_0x397e1a('0x6')](_0x4aade6);}})[_0x1cef4d('0x25')](function(_0x219994){const _0x1f1d3e=_0x1cef4d,_0xadbacb=_[_0x1f1d3e('0x1d')](_0x219994,function(_0x357426){return _0x357426?_0x357426:undefined;}),_0x128720=_[_0x1f1d3e('0x1d')](_0x4c727c,['ignore',!![]]),_0x5529ef=_[_0x1f1d3e('0xa4')](_0xadbacb)&&_['isEmpty'](_0x128720)?null:_[_0x1f1d3e('0xc5')](_0x128720,_0xadbacb);if(_0x5529ef){const _0x305823=[];for(let _0x470bb6=0x0;_0x470bb6<_0x5529ef[_0x1f1d3e('0x3b')];_0x470bb6++){const _0x21dd00=_[_0x1f1d3e('0x98')](_0x4c727c,function(_0x46cd0a){const _0x2eddf2=_0x1f1d3e;return _0x5529ef[_0x470bb6]?_0x46cd0a[_0x2eddf2('0xa3')]===_0x5529ef[_0x470bb6][_0x2eddf2('0xa3')]:null;});_0x21dd00&&(_0x5529ef[_0x470bb6][_0x1f1d3e('0x7c')]?_0x305823[_0x1f1d3e('0x63')](getAllResources(_0xa37a02['childModel'],_0x5529ef[_0x470bb6])):!_0x5529ef[_0x470bb6][_0x1f1d3e('0xab')]?_0x305823[_0x1f1d3e('0x63')](getAllowedResources(_0x21dd00,_0x5529ef[_0x470bb6],_0xa37a02[_0x1f1d3e('0x57')])):_0x21dd00[_0x1f1d3e('0x8d')]&&_0x305823[_0x1f1d3e('0x63')](getAllFilteredResources(_0x21dd00,_0x5529ef[_0x470bb6])));}return Promise[_0x1f1d3e('0x6')](_0x305823);}else return null;})[_0x1cef4d('0x25')](function(_0x4c6d40){const _0x4a0293=_0x1cef4d,_0x58a90d=_0x4c6d40;let _0x1363cb=null;_0x58a90d&&(_0x1363cb=_0x58a90d[_0x4a0293('0x3b')]===0x1?_0x58a90d[0x0]:null);if(_0x1363cb||_0x58a90d){const _0x5a3a0f=db[_0xa37a02[_0x4a0293('0x57')]][_0x4a0293('0xce')];_0x18b2ad['model']=_['keys'](_0x5a3a0f),_0x18b2ad['query']=_[_0x4a0293('0x6c')](_0x4fe5e0[_0x4a0293('0xb9')]),_0x18b2ad['filters']=_[_0x4a0293('0x75')](_0x18b2ad['model'],_0x18b2ad[_0x4a0293('0xb9')]),_0x5608df[_0x4a0293('0x66')]=_[_0x4a0293('0x75')](_0x18b2ad[_0x4a0293('0x8d')],qs['fields'](_0x4fe5e0[_0x4a0293('0xb9')][_0x4a0293('0x7e')])),_0x5608df[_0x4a0293('0x66')]=_0x5608df[_0x4a0293('0x66')]['length']?_0x5608df[_0x4a0293('0x66')]:_0x18b2ad[_0x4a0293('0x8d')];typeof _0x4fe5e0[_0x4a0293('0xb9')][_0x4a0293('0x2')]===_0x4a0293('0x42')&&(_0x5608df[_0x4a0293('0x7a')]=qs[_0x4a0293('0x7a')](_0x4fe5e0[_0x4a0293('0xb9')]['limit']),_0x5608df[_0x4a0293('0x41')]=qs['offset'](_0x4fe5e0[_0x4a0293('0xb9')][_0x4a0293('0x41')]));_0x5608df[_0x4a0293('0xba')]=qs[_0x4a0293('0x47')](_0x4fe5e0[_0x4a0293('0xb9')][_0x4a0293('0x47')]),_0x5608df[_0x4a0293('0xd2')]=qs[_0x4a0293('0x1')](_[_0x4a0293('0x80')](_0x4fe5e0[_0x4a0293('0xb9')],_0x18b2ad[_0x4a0293('0x1')]));_0x4fe5e0[_0x4a0293('0xb9')][_0x4a0293('0x1d')]&&(_0x5608df[_0x4a0293('0xd2')]=_[_0x4a0293('0x17')](_0x5608df[_0x4a0293('0xd2')],{[Op['or']]:_['map'](_0x5a3a0f,function(_0x43d6ce){const _0x2722bd=_0x4a0293;if(_0x43d6ce[_0x2722bd('0x40')][_0x2722bd('0x1b')]!==_0x2722bd('0x65')){const _0x32893d={};return _0x32893d[_0x43d6ce[_0x2722bd('0x87')]]={[Op[_0x2722bd('0xaa')]]:'%'+_0x4fe5e0[_0x2722bd('0xb9')][_0x2722bd('0x1d')]+'%'},_0x32893d;}})}));const _0x31fb6f=[];if(_0x1363cb){const _0x1c0eea=_[_0x4a0293('0x98')](_0x4c727c,[_0x4a0293('0xa3'),_0x1363cb[_0x4a0293('0xa3')]]);if(_0x1c0eea[_0x4a0293('0x87')]){const _0x2da49e={};_0xa37a02['childModel']===_0x4a0293('0x5d')?_0x2da49e[_0x1c0eea[_0x4a0293('0x96')]]=_['map'](_0x1363cb['associatedResources'],'id'):_0x2da49e[_0x1c0eea[_0x4a0293('0x96')]]=_0x1363cb[_0x4a0293('0xa5')],_0x31fb6f[_0x4a0293('0x63')](_0x2da49e);}else _0x5608df['where']['id']=_0x1363cb[_0x4a0293('0xa5')];}else for(let _0x351c16=0x0;_0x351c16<_0x58a90d[_0x4a0293('0x3b')];_0x351c16++){const _0x5a7917=_[_0x4a0293('0x98')](_0x4c727c,[_0x4a0293('0xa3'),_0x58a90d[_0x351c16][_0x4a0293('0xa3')]]);if(_0x5a7917[_0x4a0293('0x87')]){const _0x1b48ad={};_0x1b48ad[_0x5a7917[_0x4a0293('0x96')]]=_0x58a90d[_0x351c16]['associatedResources'],_0x31fb6f[_0x4a0293('0x63')](_0x1b48ad);}else{if(!_0x5608df['where']['id'])_0x5608df[_0x4a0293('0xd2')]['id']=[];_0x58a90d[_0x351c16][_0x4a0293('0xa5')]['forEach'](function(_0x14defd){const _0x2fcaaa=_0x4a0293;_0x5608df[_0x2fcaaa('0xd2')]['id']['push'](_0x14defd);});}}return!_[_0x4a0293('0xa4')](_0x31fb6f)&&(_0x5608df[_0x4a0293('0xd2')]=_['merge'](_0x5608df['where'],{[Op['and']]:{[Op['or']]:_0x31fb6f}})),_0x5608df=_[_0x4a0293('0x17')]({},_0x5608df,_0x4fe5e0[_0x4a0293('0x7f')]),_0x1363cb&&!_0x1363cb[_0x4a0293('0xab')]&&_0xa37a02['childModel']==='AnalyticExtractedReport'?(_0x4fe5e0['query']['includeAll']&&(_0x5608df['include']=[{'all':!![]}]),db[_0xa37a02['childModel']]['findAll'](_0x5608df)[_0x4a0293('0x25')](function(_0x19e174){const _0x46b009=_0x4a0293,_0x3af0d4=[];return _0x19e174['forEach'](function(_0x49af1d){const _0x3a545a=a667_0x366a;let _0x4ac757;switch(_0x49af1d[_0x3a545a('0xa7')]){case _0x3a545a('0x85'):_0x4ac757=_[_0x3a545a('0x98')](_0x1363cb['associatedResources'],function(_0x51e221){const _0x218f15=_0x3a545a;return _0x51e221['id']===_0x49af1d[_0x218f15('0x8b')]&&_0x51e221[_0x218f15('0x40')]==='DefaultReports';});break;case _0x3a545a('0x9'):_0x4ac757=_[_0x3a545a('0x98')](_0x1363cb[_0x3a545a('0xa5')],function(_0x113a18){const _0x2ee821=_0x3a545a;return _0x113a18['id']===_0x49af1d[_0x2ee821('0x8b')]&&_0x113a18['type']===_0x2ee821('0x91');});break;}if(_0x4ac757)_0x3af0d4[_0x3a545a('0x63')](_0x49af1d);}),_0x56000e[_0x46b009('0x6b')]=_0x3af0d4[_0x46b009('0x3b')],_0x56000e[_0x46b009('0xa2')]=_0x3af0d4,_0x56000e;})):db[_0xa37a02[_0x4a0293('0x57')]][_0x4a0293('0x6b')]({'where':_0x5608df[_0x4a0293('0xd2')]})['then'](function(_0x2160b5){const _0x2c9d9b=_0x4a0293;return _0x56000e[_0x2c9d9b('0x6b')]=_0x2160b5,_0x4fe5e0[_0x2c9d9b('0xb9')][_0x2c9d9b('0xa6')]&&(_0xa37a02['childModel']===_0x2c9d9b('0x30')?_0x5608df[_0x2c9d9b('0xd7')]=[{'model':db['Tag'],'as':_0x2c9d9b('0x45'),'attributes':['id',_0x2c9d9b('0xa3'),_0x2c9d9b('0x5a')],'required':_0x4fe5e0[_0x2c9d9b('0xb9')][_0x2c9d9b('0x78')]?!![]:![]},{'model':db[_0x2c9d9b('0xbc')],'as':_0x2c9d9b('0x4b'),'attributes':['id',_0x2c9d9b('0xa3'),_0x2c9d9b('0x5a')],'through':_0x4fe5e0['query']['tag']?{'attributes':[],'where':{'TagId':_0x4fe5e0['query']['tag']||undefined}}:{},'required':_0x4fe5e0[_0x2c9d9b('0xb9')][_0x2c9d9b('0x78')]?!![]:![]}]:_0x5608df[_0x2c9d9b('0xd7')]=[{'all':!![]}]),db[_0xa37a02[_0x2c9d9b('0x57')]][_0x2c9d9b('0xc8')](_0x5608df);})[_0x4a0293('0x25')](function(_0x184d6f){const _0x26e659=_0x4a0293;return _0x56000e[_0x26e659('0xa2')]=_0x184d6f,_0x56000e;});}else return _0x56000e;})['then'](respondWithFilteredResult(_0x205ac9,_0x5608df))[_0x1cef4d('0x82')](handleError(_0x205ac9,null));};function getAllResources(_0x27f957,_0x4f5004){return new Promise(function(_0x295298,_0x38a88b){const _0xa42437=a667_0x366a;if(_0x4f5004){const _0x3b0228=_0x4f5004[_0xa42437('0x1d')]?{[_0x4f5004[_0xa42437('0x1d')][_0xa42437('0x87')]]:_0x4f5004['filter']['value']}:undefined;return db[_0x27f957][_0xa42437('0xc8')]({'where':_0x3b0228,'raw':!![]})[_0xa42437('0x25')](function(_0x9e6368){const _0x350789=_0xa42437;_0x4f5004['associatedResources']=_[_0x350789('0x29')](_0x9e6368,'id'),_0x295298(_0x4f5004);})[_0xa42437('0x82')](function(_0x336e7e){_0x38a88b(_0x336e7e);});}else _0x295298(null);});}function getAllFilteredResources(_0x3f8702,_0x243e06){return new Promise(function(_0x10b65d,_0x536ce0){const _0x4e7df9=a667_0x366a,_0x4d3187=_0x3f8702[_0x4e7df9('0x1d')]?{[_0x3f8702[_0x4e7df9('0x1d')][_0x4e7df9('0x87')]]:_0x3f8702['filter']['value']}:undefined;return db[_0x3f8702[_0x4e7df9('0x8d')]]['findAll']({'where':_0x4d3187,'raw':!![]})['then'](function(_0x2bc2d4){const _0x5ede64=_0x4e7df9;_0x243e06[_0x5ede64('0xa5')]=_[_0x5ede64('0x29')](_0x2bc2d4,function(_0x1b7e30){const _0x4cf1bc=_0x5ede64;return _0x1b7e30[_0x4cf1bc('0xa3')];}),_0x10b65d(_0x243e06);})[_0x4e7df9('0x82')](function(_0x16eee6){_0x536ce0(_0x16eee6);});});}function getAllowedResources(_0x4d613d,_0x24d79c,_0x2701fd){return new Promise(function(_0x4ca54,_0x442e05){const _0x22ac71=a667_0x366a;if(_0x24d79c)return db[_0x22ac71('0xb4')][_0x22ac71('0xc8')]({'where':{'sectionId':_0x24d79c['id']},'raw':!![]})[_0x22ac71('0x25')](function(_0x4485b4){const _0x1bc6fb=_0x22ac71;_0x4d613d[_0x1bc6fb('0x87')]&&_0x4d613d[_0x1bc6fb('0x87')]!=='id'?_0x24d79c[_0x1bc6fb('0xa5')]=_['map'](_0x4485b4,function(_0x21e61e){const _0x42f1ad=_0x1bc6fb;return _0x21e61e[_0x4d613d[_0x42f1ad('0x87')]];}):_0x2701fd===_0x1bc6fb('0x5d')?_0x24d79c[_0x1bc6fb('0xa5')]=_[_0x1bc6fb('0x29')](_0x4485b4,function(_0x1ea72c){const _0x12dfe5=_0x1bc6fb;return{'id':_0x1ea72c['resourceId'],'type':_0x1ea72c[_0x12dfe5('0x40')]};}):_0x24d79c[_0x1bc6fb('0xa5')]=_[_0x1bc6fb('0x29')](_0x4485b4,function(_0x2af534){const _0x24148a=_0x1bc6fb;return _0x2af534[_0x24148a('0x1f')];}),_0x4ca54(_0x24d79c);})[_0x22ac71('0x82')](function(_0x3b8424){_0x442e05(_0x3b8424);});else _0x4ca54(null);});}function getQueryModels(_0x295156,_0x39eb4f){const _0x58a857=_0x4f3744,_0x4fd11b=_0x295156[_0x58a857('0x32')](),_0x5761e5={'childModel':undefined,'parentSections':[]};switch(_0x4fd11b){case _0x58a857('0x51'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x3d');break;case _0x58a857('0x90'):_0x5761e5['childModel']=_0x58a857('0xd4');break;case _0x58a857('0xac'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x95'),_0x5761e5['parentSections']=[{'name':_0x58a857('0x76'),'field':_0x58a857('0xa3'),'foreignKey':_0x58a857('0xb1')}];break;case _0x58a857('0x24'):_0x5761e5['childModel']=_0x58a857('0x4a');break;case _0x58a857('0xd'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x30'),_0x5761e5['parentSections']=[{'name':'Lists','field':'id','foreignKey':_0x58a857('0x11')}];break;case _0x58a857('0xb5'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x8e');break;case _0x58a857('0xa0'):_0x5761e5[_0x58a857('0x57')]='CmCompany';break;case _0x58a857('0x2d'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x18');break;case _0x58a857('0x0'):_0x5761e5['childModel']=_0x58a857('0x97');break;case _0x58a857('0xa1'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xa8');break;case'faxqueues':_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xd9');break;case _0x58a857('0x59'):_0x5761e5[_0x58a857('0x57')]='FaxAccount';break;case _0x58a857('0x15'):case'internalroutes':case _0x58a857('0xd8'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x2b');break;case'contexts':_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x26');break;case _0x58a857('0x81'):_0x5761e5['childModel']='VoiceMail';break;case _0x58a857('0x4c'):_0x5761e5[_0x58a857('0x57')]='VoiceRecording',_0x5761e5['parentSections']=[{'name':_0x58a857('0x6e'),'field':_0x58a857('0xa3'),'foreignKey':_0x58a857('0x20'),'model':_0x58a857('0xb0'),'filter':{'field':'role','value':[_0x58a857('0xae')]}},{'name':_0x58a857('0xc7'),'field':_0x58a857('0xa3'),'foreignKey':'membername','model':_0x58a857('0xb0'),'filter':{'field':_0x58a857('0xd3'),'value':[_0x58a857('0x38')]}},{'name':_0x58a857('0x2c'),'field':_0x58a857('0xa3'),'foreignKey':_0x58a857('0x2f'),'model':_0x58a857('0x9e'),'filter':{'field':_0x58a857('0x40'),'value':[_0x58a857('0x5b')]}},{'name':_0x58a857('0x22'),'field':'name','foreignKey':_0x58a857('0x2f'),'model':_0x58a857('0x9e'),'filter':{'field':_0x58a857('0x40'),'value':[_0x58a857('0x4e')]}}];break;case _0x58a857('0x9a'):_0x5761e5['childModel']=_0x58a857('0x5f');break;case _0x58a857('0x93'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x5c');break;case _0x58a857('0x71'):_0x5761e5['childModel']=_0x58a857('0x68');break;case'ivrcampaigns':_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x70');break;case _0x58a857('0xd0'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x69');break;case _0x58a857('0x6a'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x74');break;case _0x58a857('0xc0'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x73');break;case'openchannelqueues':_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xd5');break;case _0x58a857('0x39'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xc');break;case'smsqueues':_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x37');break;case _0x58a857('0x9f'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xa');break;case _0x58a857('0x9b'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x72');break;case _0x58a857('0x6d'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x1a');break;case _0x58a857('0x19'):_0x5761e5[_0x58a857('0x57')]='Team';break;case _0x58a857('0x83'):case _0x58a857('0x9c'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x9e');_0x39eb4f&&(_0x5761e5['parentSections']=[{'name':_0x58a857('0x2c')},{'name':_0x58a857('0x22')}]);break;case _0x58a857('0xb7'):case _0x58a857('0xcf'):case _0x58a857('0xb2'):_0x5761e5[_0x58a857('0x57')]='User';_0x39eb4f&&(_0x5761e5[_0x58a857('0xb')]=[{'name':_0x58a857('0xb6'),'filter':{'field':_0x58a857('0xd3'),'value':['admin',_0x58a857('0x3e')]},'ignore':!![]},{'name':_0x58a857('0x6e')},{'name':'Telephones'}]);break;case'zendeskaccounts':_0x5761e5['childModel']=_0x58a857('0xa9');break;case _0x58a857('0x2a'):_0x5761e5['childModel']=_0x58a857('0x55');break;case _0x58a857('0xad'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xbe');break;case _0x58a857('0xbf'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x7b');break;case _0x58a857('0x77'):_0x5761e5['childModel']=_0x58a857('0x84');break;case _0x58a857('0x21'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x5e');break;case _0x58a857('0xcd'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xb0');break;case _0x58a857('0x49'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x92');break;case _0x58a857('0x1e'):_0x5761e5['childModel']=_0x58a857('0x88');break;case _0x58a857('0x1c'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x9d');break;case'intervals':_0x5761e5[_0x58a857('0x57')]='Interval';break;case _0x58a857('0x46'):_0x5761e5[_0x58a857('0x57')]='Pause';break;case'scheduler':_0x5761e5[_0x58a857('0x57')]='Schedule';break;case _0x58a857('0x4f'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x7');break;case _0x58a857('0x2e'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xbc');break;case _0x58a857('0x33'):_0x5761e5[_0x58a857('0x57')]='Template';break;case _0x58a857('0x3'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x34');break;case _0x58a857('0x56'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0xda');break;case _0x58a857('0x14'):_0x5761e5[_0x58a857('0x57')]=_0x58a857('0x94');break;case'plugins':_0x5761e5['childModel']=_0x58a857('0x35');break;case'extractedreports':_0x5761e5[_0x58a857('0x57')]='AnalyticExtractedReport',_0x5761e5[_0x58a857('0xb')]=[{'name':_0x58a857('0xdb'),'field':'id','foreignKey':_0x58a857('0x8b')}];break;case _0x58a857('0xc6'):_0x5761e5[_0x58a857('0x57')]='AnalyticMetric';break;default:return _0x5761e5;}return _0x5761e5;} \ No newline at end of file +const a667_0x4a6a=['SquareOdbc','customdashboards','pick','role','key','lodash','transaction','childModel','destroy','Dashboard','faxqueues','VIRTUAL','include','user','ignore','length','color','like','tag','OpenchannelQueue','custom','attributes','agent','Resources','findOne','DefaultReports','findAll','Agents','companies','count','rows','ValidationError','addResources','sendStatus','UserProfileSection','get','body','freshdeskaccounts','teams','bulkCreate','query','QueueCampaigns','section','ZendeskAccount','sequelize','../../rediscache','associatedResources','map','keys','order','Tags','Users','SquareRecording','outbound','where','updatedAt','CannedAnswer','VoiceContext','cannedanswers','deskaccounts','value','../../components/parsers/qs','queuecampaigns','enabled','ZohoAccount','chatwebsites','chanspies','MailQueue','projectName','type','field','Tag','WhatsappAccount','rawAttributes','salesforceaccounts','params','ivrcampaigns','User','Invalid\x20section\x20\x27','Interval','autoAssociation','voicemails','./userProfile.socket','Sound','VoiceRecording','intervals','ChatWebsite','../../config/logger','union','resourceId','trunks','FreshdeskAccount','SquareProject','SmsQueue','foreignKey','squareprojects','includeAll','reportId','Reports','parentSections','fields','clone','CustomReports','CmContact','default','internalroutes','CmCustomField','each','intersection','ChatQueue','set','metrics','membername','merge','FaxQueue','inboundroutes','sectionId','tags','AnalyticExtractedReport','includes','forEach','catch','WhatsappQueue','MailSubstatus','MailAccount','and','plugins','json','../../mysqldb','Pause','sort','register','mergeResources','templates','Lists','openchannelqueues','Plugin','VoiceExtension','limit','index','Disposition','ids','undefined','voiceprefixes','describe','odbc','SmsAccount','admin','subsections','show','ThroughTags','mailqueues','nolimit','openchannelaccounts','createdAt','addSections','Trigger','SugarcrmAccount','VoicePrefix','removeSections','sounds','extractedreports','musiconholds','variables','chatqueues','options','crudPermissions','globalcustomfields','agents','status','voicequeues','toLowerCase','update','name','end','offset','userProfileId','filters','filter','CmList','voicerecordings','omit','then','zendeskaccounts','UserProfile','create','isEmpty','triggers','VoiceChanSpy','model','Telephones','Content-Range','queue','smsaccounts','all','find','DeskAccount','Schedule','push','Template','VoiceQueues','dispositions','VoiceMail','UserProfileResource'];(function(_0x287b4a,_0x4a6af9){const _0x304a2e=function(_0x9fa650){while(--_0x9fa650){_0x287b4a['push'](_0x287b4a['shift']());}};_0x304a2e(++_0x4a6af9);}(a667_0x4a6a,0x153));const a667_0x304a=function(_0x287b4a,_0x4a6af9){_0x287b4a=_0x287b4a-0x0;let _0x304a2e=a667_0x4a6a[_0x287b4a];return _0x304a2e;};const _0x3a22bd=a667_0x304a;'use strict';const _=require(_0x3a22bd('0x4a')),qs=require(_0x3a22bd('0x82')),logger=require(_0x3a22bd('0x9c'))('api'),{getSocket}=require(_0x3a22bd('0x72')),socket=getSocket(),db=require(_0x3a22bd('0xc5'))['db'],{Op}=require(_0x3a22bd('0x71'));require(_0x3a22bd('0x97'))[_0x3a22bd('0xc8')](socket);function respondWithStatusCode(_0x9fa650,_0x39bd37){return _0x39bd37=_0x39bd37||0xcc,function(_0x273ad1){const _0x13039a=a667_0x304a;if(_0x273ad1)return _0x9fa650[_0x13039a('0x66')](_0x39bd37);return _0x9fa650[_0x13039a('0x22')](_0x39bd37)[_0x13039a('0x27')]();};}function respondWithResult(_0x1741ea,_0x486d23){return _0x486d23=_0x486d23||0xc8,function(_0x2210ba){const _0x2e9b89=a667_0x304a;if(_0x2210ba)return _0x1741ea[_0x2e9b89('0x22')](_0x486d23)[_0x2e9b89('0xc4')](_0x2210ba);};}function respondWithFilteredResult(_0x4a6e28,_0x36a6a8){return function(_0x6634c6){const _0x5dac3e=a667_0x304a;if(_0x6634c6){const _0x54e350=_0x6634c6[_0x5dac3e('0x62')],_0x5139ee=_0x36a6a8[_0x5dac3e('0x28')];let _0xa25f9f=_0x36a6a8[_0x5dac3e('0x28')]+_0x36a6a8[_0x5dac3e('0x3')],_0x32f818;return _0xa25f9f>=_0x54e350?(_0xa25f9f=_0x54e350,_0x32f818=0xc8):_0x32f818=0xce,_0x4a6e28[_0x5dac3e('0x22')](_0x32f818),_0x4a6e28[_0x5dac3e('0xb3')](_0x5dac3e('0x38'),_0x5139ee+'-'+_0xa25f9f+'/'+_0x54e350)[_0x5dac3e('0xc4')](_0x6634c6);}return null;};}function saveUpdates(_0x40acdf){return function(_0x515800){const _0x24a478=a667_0x304a;if(_0x515800)return _0x515800[_0x24a478('0x25')](_0x40acdf)[_0x24a478('0x2f')](function(_0x51c485){return _0x51c485;});return null;};}function removeEntity(_0x1a4c95){return function(_0xdc3771){const _0x38a3c7=a667_0x304a;if(_0xdc3771)return _0xdc3771[_0x38a3c7('0x4d')]()['then'](function(){const _0x243afa=_0x38a3c7;_0x1a4c95['status'](0xcc)[_0x243afa('0x27')]();});};}function handleEntityNotFound(_0x44407e){return function(_0xc604ff){const _0x47d03c=a667_0x304a;return!_0xc604ff&&_0x44407e[_0x47d03c('0x66')](0x194),_0xc604ff;};}function handleError(_0x1ba8a4,_0x189d66){return _0x189d66=_0x189d66||0x1f4,function(_0xbf794e){const _0x50dad2=a667_0x304a;logger['error'](_0xbf794e['stack']),_0xbf794e[_0x50dad2('0x26')]&&delete _0xbf794e[_0x50dad2('0x26')],_0x1ba8a4[_0x50dad2('0x22')](_0x189d66)['send'](_0xbf794e);};}exports[_0x3a22bd('0x4')]=function(_0x1c2971,_0x24ea01){const _0x257ee6=_0x3a22bd;let _0x81dd68={};const _0xf63d22={},_0x117f03={'count':0x0,'rows':[]},_0x40bba5=_[_0x257ee6('0x74')](db[_0x257ee6('0x31')][_0x257ee6('0x8e')],function(_0x486200){const _0x31fe53=_0x257ee6;return{'name':_0x486200['fieldName'],'type':_0x486200[_0x31fe53('0x8a')][_0x31fe53('0x49')]};});_0xf63d22[_0x257ee6('0x36')]=_[_0x257ee6('0x74')](_0x40bba5,'name'),_0xf63d22[_0x257ee6('0x6d')]=_[_0x257ee6('0x75')](_0x1c2971[_0x257ee6('0x6d')]),_0xf63d22['filters']=_[_0x257ee6('0xb1')](_0xf63d22[_0x257ee6('0x36')],_0xf63d22[_0x257ee6('0x6d')]),_0x81dd68['attributes']=_[_0x257ee6('0xb1')](_0xf63d22[_0x257ee6('0x36')],qs['fields'](_0x1c2971[_0x257ee6('0x6d')][_0x257ee6('0xa9')])),_0x81dd68[_0x257ee6('0x5a')]=_0x81dd68['attributes'][_0x257ee6('0x54')]?_0x81dd68['attributes']:_0xf63d22[_0x257ee6('0x36')];typeof _0x1c2971[_0x257ee6('0x6d')][_0x257ee6('0x11')]===_0x257ee6('0x7')&&(_0x81dd68[_0x257ee6('0x3')]=qs['limit'](_0x1c2971[_0x257ee6('0x6d')][_0x257ee6('0x3')]),_0x81dd68[_0x257ee6('0x28')]=qs['offset'](_0x1c2971[_0x257ee6('0x6d')][_0x257ee6('0x28')]));_0x81dd68[_0x257ee6('0x76')]=qs['sort'](_0x1c2971[_0x257ee6('0x6d')][_0x257ee6('0xc7')]),_0x81dd68[_0x257ee6('0x7b')]=qs['filters'](_[_0x257ee6('0x47')](_0x1c2971['query'],_0xf63d22[_0x257ee6('0x2a')]),_0x40bba5);_0x1c2971['query'][_0x257ee6('0x2b')]&&(_0x81dd68[_0x257ee6('0x7b')]=_['merge'](_0x81dd68['where'],{[Op['or']]:_[_0x257ee6('0x74')](_0x40bba5,function(_0x19305e){const _0x4aaf4e=_0x257ee6;if(_0x19305e[_0x4aaf4e('0x8a')]!=='VIRTUAL'){const _0x186665={};return _0x186665[_0x19305e[_0x4aaf4e('0x26')]]={[Op[_0x4aaf4e('0x56')]]:'%'+_0x1c2971[_0x4aaf4e('0x6d')][_0x4aaf4e('0x2b')]+'%'},_0x186665;}})}));_0x81dd68=_[_0x257ee6('0xb6')]({},_0x81dd68,_0x1c2971[_0x257ee6('0x1e')]);const _0x53fe2e={'where':_0x81dd68[_0x257ee6('0x7b')]};return db['UserProfile'][_0x257ee6('0x62')](_0x53fe2e)[_0x257ee6('0x2f')](function(_0x1775e1){const _0x1f6b2b=_0x257ee6;return _0x117f03[_0x1f6b2b('0x62')]=_0x1775e1,_0x1c2971[_0x1f6b2b('0x6d')][_0x1f6b2b('0xa5')]&&(_0x81dd68['include']=[{'all':!![]}]),db[_0x1f6b2b('0x31')][_0x1f6b2b('0x5f')](_0x81dd68);})[_0x257ee6('0x2f')](function(_0x55cad2){return _0x117f03['rows']=_0x55cad2,_0x117f03;})[_0x257ee6('0x2f')](respondWithFilteredResult(_0x24ea01,_0x81dd68))['catch'](handleError(_0x24ea01,null));},exports[_0x3a22bd('0xe')]=function(_0x274caf,_0x3f02ee){const _0x3bfc99=_0x3a22bd;let _0x8df51a={'raw':![],'where':{'id':_0x274caf[_0x3bfc99('0x90')]['id']}};const _0x5c0fe3={};return _0x5c0fe3[_0x3bfc99('0x36')]=_[_0x3bfc99('0x75')](db[_0x3bfc99('0x31')][_0x3bfc99('0x8e')]),_0x5c0fe3[_0x3bfc99('0x6d')]=_[_0x3bfc99('0x75')](_0x274caf[_0x3bfc99('0x6d')]),_0x5c0fe3[_0x3bfc99('0x2a')]=_[_0x3bfc99('0xb1')](_0x5c0fe3[_0x3bfc99('0x36')],_0x5c0fe3[_0x3bfc99('0x6d')]),_0x8df51a[_0x3bfc99('0x5a')]=_[_0x3bfc99('0xb1')](_0x5c0fe3[_0x3bfc99('0x36')],qs[_0x3bfc99('0xa9')](_0x274caf[_0x3bfc99('0x6d')][_0x3bfc99('0xa9')])),_0x8df51a[_0x3bfc99('0x5a')]=_0x8df51a[_0x3bfc99('0x5a')][_0x3bfc99('0x54')]?_0x8df51a[_0x3bfc99('0x5a')]:_0x5c0fe3['model'],_0x274caf[_0x3bfc99('0x6d')][_0x3bfc99('0xa5')]&&(_0x8df51a['include']=[{'all':!![]}]),_0x8df51a=_['merge']({},_0x8df51a,_0x274caf[_0x3bfc99('0x1e')]),db['UserProfile']['findOne'](_0x8df51a)[_0x3bfc99('0x2f')](handleEntityNotFound(_0x3f02ee))[_0x3bfc99('0x2f')](respondWithResult(_0x3f02ee,null))[_0x3bfc99('0xbe')](handleError(_0x3f02ee,null));},exports[_0x3a22bd('0x32')]=function(_0x2d182f,_0xa41e8a){const _0x3498fe=_0x3a22bd;return db[_0x3498fe('0x31')][_0x3498fe('0x32')](_0x2d182f[_0x3498fe('0x69')],{})['then'](respondWithResult(_0xa41e8a,0xc9))[_0x3498fe('0xbe')](handleError(_0xa41e8a,null));},exports[_0x3a22bd('0xaa')]=function(_0x381a39,_0x1f9fda){const _0x1a581b=_0x3a22bd;let _0xdf83cc={'where':{'id':_0x381a39[_0x1a581b('0x90')]['id']}};const _0x5b9a0e={};return _0x5b9a0e[_0x1a581b('0x36')]=_[_0x1a581b('0x75')](db[_0x1a581b('0x31')][_0x1a581b('0x8e')]),_0xdf83cc[_0x1a581b('0x5a')]=_[_0x1a581b('0xb1')](_0x5b9a0e[_0x1a581b('0x36')],qs[_0x1a581b('0xa9')](_0x381a39['query'][_0x1a581b('0xa9')])),_0xdf83cc[_0x1a581b('0x5a')]=_0xdf83cc['attributes'][_0x1a581b('0x54')]?_0xdf83cc['attributes']:_0x5b9a0e['model'],_0x381a39['query'][_0x1a581b('0xa5')]&&(_0xdf83cc[_0x1a581b('0x51')]=[{'all':!![]}]),_0xdf83cc=_['merge']({},_0xdf83cc,_0x381a39['options']),db['UserProfile'][_0x1a581b('0x5d')](_0xdf83cc)[_0x1a581b('0x2f')](handleEntityNotFound(_0x1f9fda))[_0x1a581b('0x2f')](function(_0x59efcc){const _0x22e3e1=_0x1a581b;if(_0x59efcc){let _0x2134af=_0x59efcc[_0x22e3e1('0x68')]({'plain':!![]});return _0x2134af=qs['omit'](_0x2134af,['id','createdAt','updatedAt',_0x22e3e1('0x1f')]),_0x381a39[_0x22e3e1('0x69')]=_['omit'](_0x381a39['body'],['id',_0x22e3e1('0x13'),_0x22e3e1('0x7c')]),db[_0x22e3e1('0x71')]['transaction'](function(_0x56f850){const _0x13d45d=_0x22e3e1;return db[_0x13d45d('0x31')]['create'](_['merge'](_0x2134af,_0x381a39[_0x13d45d('0x69')]),{'include':_0x381a39[_0x13d45d('0x6d')][_0x13d45d('0xa5')]?[{'all':!![]}]:undefined,'transaction':_0x56f850})[_0x13d45d('0x2f')](function(_0x178a5c){const _0x5c8080=_0x13d45d,_0x546241=_0x178a5c[_0x5c8080('0x68')]({'plain':!![]});return db['UserProfileSection']['findAll']({'where':{'userProfileId':_0x381a39[_0x5c8080('0x90')]['id']},'raw':!![]})[_0x5c8080('0x2f')](function(_0xbeb7d8){const _0x34df74=_0x5c8080;if(_0xbeb7d8)return Promise[_0x34df74('0xb0')](_0xbeb7d8,function(_0x55b9e9){const _0x31966a=_0x34df74;return new Promise(function(_0x3147da,_0x2585ba){const _0x2ce649=a667_0x304a;if(_0x55b9e9[_0x2ce649('0x95')]===null||_0x55b9e9[_0x2ce649('0x95')]===0x1)_0x3147da(null);return db[_0x2ce649('0x44')]['findAll']({'where':{'sectionId':_0x55b9e9['id']},'raw':!![]})[_0x2ce649('0x2f')](function(_0x1a1009){const _0x306a3b=_0x2ce649,_0x305c1a=_[_0x306a3b('0x74')](_0x1a1009,function(_0x2db6da){const _0x532eed=_0x306a3b;return qs[_0x532eed('0x2e')](_0x2db6da,['id','createdAt',_0x532eed('0x7c'),_0x532eed('0xb9')]);});_0x3147da(_0x305c1a);})[_0x2ce649('0xbe')](function(_0x574ea4){_0x2585ba(_0x574ea4);});})[_0x31966a('0x2f')](function(_0x18ef07){const _0x563653=_0x31966a,_0x42a7d7=qs['omit'](_0x55b9e9,['id','createdAt','updatedAt']);_0x42a7d7[_0x563653('0x29')]=_0x546241['id'];if(_0x18ef07)_0x42a7d7[_0x563653('0x5c')]=_0x18ef07;return _0x42a7d7;})[_0x31966a('0x2f')](function(_0x53f789){const _0x62f541=_0x31966a;return db[_0x62f541('0x67')][_0x62f541('0x32')](_0x53f789,{'include':[{'model':db[_0x62f541('0x44')],'as':_0x62f541('0x5c')}],'raw':!![],'transaction':_0x56f850});});})[_0x34df74('0x2f')](function(){return _0x546241;});});});});}})[_0x1a581b('0x2f')](respondWithResult(_0x1f9fda,0xc9))['catch'](handleError(_0x1f9fda,null));},exports['update']=function(_0x5c406d,_0xdd71dd){const _0x4995a3=_0x3a22bd;return _0x5c406d[_0x4995a3('0x69')]['id']&&delete _0x5c406d[_0x4995a3('0x69')]['id'],db[_0x4995a3('0x31')][_0x4995a3('0x5d')]({'where':{'id':_0x5c406d[_0x4995a3('0x90')]['id']}})[_0x4995a3('0x2f')](handleEntityNotFound(_0xdd71dd))[_0x4995a3('0x2f')](saveUpdates(_0x5c406d['body'],null))[_0x4995a3('0x2f')](respondWithResult(_0xdd71dd,null))[_0x4995a3('0xbe')](handleError(_0xdd71dd,null));},exports[_0x3a22bd('0x4d')]=function(_0x3de603,_0x234223){const _0x3039dd=_0x3a22bd;return db[_0x3039dd('0x31')][_0x3039dd('0x5d')]({'where':{'id':_0x3de603[_0x3039dd('0x90')]['id']}})['then'](handleEntityNotFound(_0x234223))[_0x3039dd('0x2f')](removeEntity(_0x234223,null))['catch'](handleError(_0x234223,null));},exports[_0x3a22bd('0x9')]=function(_0x16a35b,_0x4aeca7){const _0x2cf2c9=_0x3a22bd;return db[_0x2cf2c9('0x31')]['describe']()[_0x2cf2c9('0x2f')](respondWithResult(_0x4aeca7,null))[_0x2cf2c9('0xbe')](handleError(_0x4aeca7,null));},exports[_0x3a22bd('0x14')]=function(_0x42658c,_0x3ec812){const _0x4be41c=_0x3a22bd,_0x495418=_0x42658c['body'];return db['UserProfile'][_0x4be41c('0x5d')]({'where':{'id':_0x42658c['params']['id']}})[_0x4be41c('0x2f')](handleEntityNotFound(_0x3ec812))[_0x4be41c('0x2f')](function(_0x1d05b){const _0x16c9ed=_0x4be41c;if(_0x1d05b)return db[_0x16c9ed('0x71')][_0x16c9ed('0x4b')](function(_0x2c6208){const _0x1f7338=_0x16c9ed;return db[_0x1f7338('0x67')]['destroy']({'where':{'userProfileId':_0x42658c[_0x1f7338('0x90')]['id'],'sectionId':_[_0x1f7338('0x74')](_0x495418,function(_0x181f36){const _0x3a15ac=_0x1f7338;return _0x181f36[_0x3a15ac('0xb9')];})},'transaction':_0x2c6208})[_0x1f7338('0x2f')](function(){const _0xbaef7a=_0x1f7338,_0x53be81=_['map'](_0x495418,function(_0x2f5c9){const _0x4d477d=a667_0x304a;return _0x2f5c9[_0x4d477d('0x29')]=_0x42658c[_0x4d477d('0x90')]['id'],_0x2f5c9;}),_0x7f9d44=[];return Promise[_0xbaef7a('0xb0')](_0x53be81,function(_0x5f1c97){const _0x30c206=_0xbaef7a;return db['UserProfileSection'][_0x30c206('0x32')](_0x5f1c97,{'include':[{'model':db[_0x30c206('0x44')],'as':'Resources'}],'raw':!![],'transaction':_0x2c6208})['then'](function(_0x27b50a){const _0x480cff=_0x30c206;_0x7f9d44[_0x480cff('0x3f')](_0x27b50a['get']({'plain':!![]}));});})[_0xbaef7a('0x2f')](function(){return _0x7f9d44;});});});})['then'](function(_0x101730){return _0x101730;})[_0x4be41c('0x2f')](respondWithResult(_0x3ec812,null))[_0x4be41c('0xbe')](handleError(_0x3ec812,null));},exports[_0x3a22bd('0x18')]=function(_0x4d6fa8,_0x160a4e){const _0x122b64=_0x3a22bd;let _0x4fce4a;return db[_0x122b64('0x31')][_0x122b64('0x5d')]({'where':{'id':_0x4d6fa8[_0x122b64('0x90')]['id']},'attributes':['id','name']})['then'](handleEntityNotFound(_0x160a4e))[_0x122b64('0x2f')](function(_0xe0b9e2){const _0x440ad0=_0x122b64;if(_0xe0b9e2)return _0x4fce4a=_0xe0b9e2,db[_0x440ad0('0x67')][_0x440ad0('0x4d')]({'where':{'userProfileId':_0x4d6fa8[_0x440ad0('0x90')]['id'],'sectionId':_0x4d6fa8[_0x440ad0('0x6d')][_0x440ad0('0x6')]}});})['then'](function(){return _0x4fce4a;})[_0x122b64('0x2f')](respondWithStatusCode(_0x160a4e,null))[_0x122b64('0xbe')](handleError(_0x160a4e,null));},exports['getSections']=function(_0x3f7778,_0x85db16){const _0x54ceee=_0x3a22bd;let _0x2bb773=[],_0x4d3023=[];return db['UserProfileSection'][_0x54ceee('0x5f')]({'where':{'userProfileId':_0x3f7778['params']['id']},'raw':!![]})[_0x54ceee('0x2f')](function(_0x5eab88){const _0x370612=_0x54ceee;_0x2bb773=_[_0x370612('0x2b')](_0x5eab88,function(_0x445c07){const _0x448d8c=_0x370612;return _0x445c07['enabled']===0x1||_[_0x448d8c('0xbc')]([0x3eb,0x709],_0x445c07[_0x448d8c('0xb9')]);});if(!_[_0x370612('0x33')](_0x2bb773))return _[_0x370612('0x74')](_0x2bb773,function(_0x4c7d26){const _0xdb0f1d=_0x370612;return _0x4c7d26[_0xdb0f1d('0xb9')];});else return;})[_0x54ceee('0x2f')](function(_0x26ac7d){const _0xb2b083=_0x54ceee;if(_0x26ac7d)_0x4d3023=_0x26ac7d;if(_['includes'](_0x4d3023,0x64)){const _0x4fe917=_[_0xb2b083('0x3c')](_0x2bb773,{'sectionId':0x64});return hasDefaultDashboard(_0x4fe917)['then'](function(_0x111a47){const _0x749184=_0xb2b083;return _[_0x749184('0x74')](_0x2bb773,function(_0xd1035f){const _0x418f13=_0x749184;return _0xd1035f[_0x418f13('0xb9')]===0x64&&(_0xd1035f['subsections']=_0x111a47),_0xd1035f;});});}else return;})[_0x54ceee('0x2f')](function(_0x50f73d){const _0xd84ae5=_0x54ceee;if(_0x50f73d)_0x2bb773=_0x50f73d;if(_[_0xd84ae5('0xbc')](_0x4d3023,0x3eb)){const _0x494849=_['find'](_0x2bb773,{'sectionId':0x3eb});return getCustomDashboards(_0x494849)['then'](function(_0x5bc204){const _0x1fe7ba=_0xd84ae5;return _[_0x1fe7ba('0x74')](_0x2bb773,function(_0x4c08f4){const _0x4d4511=_0x1fe7ba;return _0x494849['enabled']?_0x4c08f4['sectionId']===0x3eb&&(_0x4c08f4['subsections']=_0x5bc204):_0x4c08f4[_0x4d4511('0xb9')]===0x64&&(_0x4c08f4[_0x4d4511('0xd')]=_0x5bc204),_0x4c08f4;});});}else return;})[_0x54ceee('0x2f')](function(_0xe075ff){const _0x1983d5=_0x54ceee;if(_0xe075ff)_0x2bb773=_0xe075ff;if(_[_0x1983d5('0xbc')](_0x4d3023,0x709)){const _0x368681=_[_0x1983d5('0x3c')](_0x2bb773,{'sectionId':0x709});return getPlugins(_0x368681)[_0x1983d5('0x2f')](function(_0x35bdcc){const _0x2f9f31=_0x1983d5;if(_0x368681[_0x2f9f31('0x84')])return _[_0x2f9f31('0x74')](_0x2bb773,function(_0x3b321d){const _0x4bca62=_0x2f9f31;return _0x3b321d[_0x4bca62('0xb9')]===0x709&&(_0x3b321d[_0x4bca62('0xd')]=_0x35bdcc),_0x3b321d;});else{const _0x49db45={'sectionId':0x76c,'enabled':0x1,'subsections':_0x35bdcc},_0x2b3014=_[_0x2f9f31('0x74')](_0x2bb773);return _0x2b3014[_0x2f9f31('0x3f')](_0x49db45),_0x2b3014;}});}else return;})[_0x54ceee('0x2f')](function(_0x17a8b2){const _0x7ef152=_0x54ceee;if(_0x17a8b2)_0x2bb773=_0x17a8b2;return _[_0x7ef152('0x2b')](_0x2bb773,[_0x7ef152('0x84'),0x1]);})['then'](respondWithResult(_0x85db16,null))[_0x54ceee('0xbe')](handleError(_0x85db16,null));};function hasDefaultDashboard(_0x2934b1){const _0xb3d466=[0x65];return new Promise(function(_0x285777,_0x54cd83){const _0x3a20ff=a667_0x304a;try{if(_0x2934b1['autoAssociation'])_0x285777(_0xb3d466);else return db[_0x3a20ff('0x44')][_0x3a20ff('0x5d')]({'where':{'sectionId':_0x2934b1['id']},'raw':!![]})[_0x3a20ff('0x2f')](function(_0x5c5e5c){_0x5c5e5c?_0x285777(_0xb3d466):_0x285777();});}catch(_0x452e13){_0x54cd83(_0x452e13);}});}function getCustomDashboards(_0x5984e8){const _0x3d73a1=[];return new Promise(function(_0x4c1cba,_0x29d978){const _0x4a6c09=a667_0x304a;try{return _0x5984e8[_0x4a6c09('0x95')]?db[_0x4a6c09('0x4e')][_0x4a6c09('0x5f')]({'raw':!![]})[_0x4a6c09('0x2f')](function(_0x5409df){_0x5409df['forEach'](function(_0x314462){const _0x4270b0=a667_0x304a;_0x3d73a1[_0x4270b0('0x3f')](_0x314462['id']+0x1869f);}),_0x4c1cba(_0x3d73a1);}):db[_0x4a6c09('0x44')][_0x4a6c09('0x5f')]({'where':{'sectionId':_0x5984e8['id']},'raw':!![]})[_0x4a6c09('0x2f')](function(_0x3c2163){const _0x5cca26=_0x4a6c09;_0x3c2163[_0x5cca26('0xbd')](function(_0x5a2779){const _0x651897=_0x5cca26;_0x3d73a1[_0x651897('0x3f')](_0x5a2779[_0x651897('0x9e')]+0x1869f);}),_0x4c1cba(_0x3d73a1);});}catch(_0x5e6c9d){_0x29d978(_0x5e6c9d);}});}function getPlugins(_0x4e6b53){const _0x4ccd6e=[];return new Promise(function(_0x1b9c1c,_0x2ca907){const _0x3134d4=a667_0x304a;try{return _0x4e6b53[_0x3134d4('0x95')]?db[_0x3134d4('0x1')][_0x3134d4('0x5f')]({'raw':!![]})[_0x3134d4('0x2f')](function(_0x32a79e){const _0x2485ae=_0x3134d4;_0x32a79e[_0x2485ae('0xbd')](function(_0x1aed00){const _0x455722=_0x2485ae;_0x4ccd6e[_0x455722('0x3f')](_0x1aed00['id']+0x15b38);}),_0x1b9c1c(_0x4ccd6e);}):db[_0x3134d4('0x44')]['findAll']({'where':{'sectionId':_0x4e6b53['id']},'raw':!![]})[_0x3134d4('0x2f')](function(_0xf83e72){_0xf83e72['forEach'](function(_0x366b6d){const _0x4819eb=a667_0x304a;_0x4ccd6e[_0x4819eb('0x3f')](_0x366b6d[_0x4819eb('0x9e')]+0x15b38);}),_0x1b9c1c(_0x4ccd6e);});}catch(_0x11b0cf){_0x2ca907(_0x11b0cf);}});}exports[_0x3a22bd('0x65')]=function(_0xa1dbee,_0x49c6c3){const _0x3eb6e9=_0x3a22bd;return db['UserProfile'][_0x3eb6e9('0x5d')]({'where':{'id':_0xa1dbee['params']['id']}})[_0x3eb6e9('0x2f')](handleEntityNotFound(_0x49c6c3))[_0x3eb6e9('0x2f')](function(_0x3bc9f2){const _0x167866=_0x3eb6e9;if(_0x3bc9f2)return db[_0x167866('0x71')][_0x167866('0x4b')](function(_0x2ad46a){const _0x5bc14d=_0x167866;return db[_0x5bc14d('0x67')][_0x5bc14d('0x5f')]({'where':{'userProfileId':_0xa1dbee[_0x5bc14d('0x90')]['id']},'attributes':['id'],'raw':!![]})[_0x5bc14d('0x2f')](function(_0x3766a3){const _0x1990fe=_0x5bc14d;if(_0x3766a3)return db[_0x1990fe('0x67')][_0x1990fe('0x4d')]({'where':{'userProfileId':_0xa1dbee[_0x1990fe('0x90')]['id'],'id':_[_0x1990fe('0x74')](_0x3766a3,function(_0x551529){return _0x551529['id'];})},'transaction':_0x2ad46a});})[_0x5bc14d('0x2f')](function(){const _0x54fb2e=_0x5bc14d,_0x46fd61=_['map'](_0xa1dbee[_0x54fb2e('0x69')],function(_0x4d994c){const _0x5c0121=_0x54fb2e;return _0x4d994c[_0x5c0121('0x29')]=_0xa1dbee['params']['id'],_0x4d994c;});return db['UserProfileSection'][_0x54fb2e('0x6c')](_0x46fd61,{'raw':!![],'transaction':_0x2ad46a});})['then'](function(_0x1302b6){const _0x5e7412=_0x5bc14d,_0x10e76c=_[_0x5e7412('0x2b')](_['map'](_0x1302b6,function(_0x21d533){const _0x2539b6=_0x5e7412;return _0x21d533[_0x2539b6('0x68')]({'plain':!![]});}),{'includeAll':![]});if(_0x10e76c)return db[_0x5e7412('0x67')]['findAll']({'where':{'userProfileId':_0xa1dbee[_0x5e7412('0x90')]['id'],'sectionId':_[_0x5e7412('0x74')](_0x10e76c,function(_0x65bd34){const _0x3cca4d=_0x5e7412;return _0x65bd34[_0x3cca4d('0xb9')];})},'attributes':['id',_0x5e7412('0xb9')],'raw':!![]})[_0x5e7412('0x2f')](function(){const _0x2b06ee=_0x5e7412,_0x115e2a=_['map'](_0xa1dbee['body'],function(_0x21403d){const _0x1c5c4a=a667_0x304a;return _0x21403d['userProfileId']=_0xa1dbee[_0x1c5c4a('0x90')]['id'],_0x21403d;});return db[_0x2b06ee('0x44')]['bulkCreate'](_0x115e2a,{'raw':!![],'transaction':_0x2ad46a});});})[_0x5bc14d('0xbe')](handleError(_0x49c6c3,null));});})['then'](function(){})[_0x3eb6e9('0x2f')](respondWithResult(_0x49c6c3,null))['catch'](handleError(_0x49c6c3,null));},exports['removeResources']=function(_0xf1d71f,_0x51f553){const _0x36df87=_0x3a22bd;return db['UserProfile'][_0x36df87('0x5d')]({'where':{'id':_0xf1d71f[_0x36df87('0x90')]['id']}})['then'](handleEntityNotFound(_0x51f553))[_0x36df87('0x2f')](function(_0x27dd6e){const _0x19c99a=_0x36df87;if(_0x27dd6e)return _0x27dd6e['removeResources'](_0xf1d71f[_0x19c99a('0x6d')][_0x19c99a('0x6')]);})[_0x36df87('0x2f')](respondWithStatusCode(_0x51f553,null))['catch'](handleError(_0x51f553,null));},exports['getResources']=function(_0x2d3ea3,_0x215e0f){const _0x5577bb=_0x3a22bd;let _0x89ef5f={'raw':![],'where':{}};const _0x2c2ef9={},_0x5e7bc3={'count':0x0,'rows':[]},_0x1e8bc9=_0x2d3ea3[_0x5577bb('0x6d')][_0x5577bb('0x6f')];if(typeof _0x1e8bc9===_0x5577bb('0x7'))throw new db['Sequelize'][(_0x5577bb('0x64'))]('Unknown\x20section');const _0x4c0575=_0x2d3ea3[_0x5577bb('0x6d')][_0x5577bb('0xc9')]||![],_0x380ff4=getQueryModels(_0x1e8bc9,_0x4c0575);if(typeof _0x380ff4[_0x5577bb('0x4c')]===_0x5577bb('0x7'))throw new db['Sequelize'][(_0x5577bb('0x64'))](_0x5577bb('0x93')+_0x1e8bc9+'\x27');let _0x12cb75=[];return!_[_0x5577bb('0x33')](_0x380ff4[_0x5577bb('0xa8')])?_0x12cb75=_0x380ff4[_0x5577bb('0xa8')]:_0x12cb75=[{'name':_0x1e8bc9}],db[_0x5577bb('0x31')][_0x5577bb('0x5d')]({'where':{'id':_0x2d3ea3[_0x5577bb('0x90')]['id']}})[_0x5577bb('0x2f')](handleEntityNotFound(_0x215e0f))[_0x5577bb('0x2f')](function(_0x4091c9){const _0x518bec=_0x5577bb;if(_0x4091c9){const _0x523e2a=[];for(let _0x4908ea=0x0;_0x4908ea<_0x12cb75['length'];_0x4908ea++){_0x523e2a[_0x518bec('0x3f')](db[_0x518bec('0x67')][_0x518bec('0x5d')]({'where':{'userProfileId':_0x4091c9['id'],'name':_0x12cb75[_0x4908ea][_0x518bec('0x26')]},'raw':!![]}));}return Promise[_0x518bec('0x3b')](_0x523e2a);}})[_0x5577bb('0x2f')](function(_0x3735f3){const _0x530700=_0x5577bb,_0x428559=_[_0x530700('0x2b')](_0x3735f3,function(_0x5352e4){return _0x5352e4?_0x5352e4:undefined;}),_0x116756=_['filter'](_0x12cb75,['ignore',!![]]),_0x48a0b6=_[_0x530700('0x33')](_0x428559)&&_[_0x530700('0x33')](_0x116756)?null:_[_0x530700('0x9d')](_0x116756,_0x428559);if(_0x48a0b6){const _0x188f6e=[];for(let _0xc8027a=0x0;_0xc8027a<_0x48a0b6[_0x530700('0x54')];_0xc8027a++){const _0x129129=_[_0x530700('0x3c')](_0x12cb75,function(_0x54dac6){const _0x2f25f3=_0x530700;return _0x48a0b6[_0xc8027a]?_0x54dac6[_0x2f25f3('0x26')]===_0x48a0b6[_0xc8027a][_0x2f25f3('0x26')]:null;});_0x129129&&(_0x48a0b6[_0xc8027a][_0x530700('0x53')]?_0x188f6e[_0x530700('0x3f')](getAllResources(_0x380ff4[_0x530700('0x4c')],_0x48a0b6[_0xc8027a])):!_0x48a0b6[_0xc8027a][_0x530700('0x95')]?_0x188f6e[_0x530700('0x3f')](getAllowedResources(_0x129129,_0x48a0b6[_0xc8027a],_0x380ff4['childModel'])):_0x129129[_0x530700('0x36')]&&_0x188f6e[_0x530700('0x3f')](getAllFilteredResources(_0x129129,_0x48a0b6[_0xc8027a])));}return Promise[_0x530700('0x3b')](_0x188f6e);}else return null;})['then'](function(_0x4ff0d6){const _0x2a2d2a=_0x5577bb,_0x11bf90=_0x4ff0d6;let _0x3aa352=null;_0x11bf90&&(_0x3aa352=_0x11bf90[_0x2a2d2a('0x54')]===0x1?_0x11bf90[0x0]:null);if(_0x3aa352||_0x11bf90){const _0x50f50f=db[_0x380ff4[_0x2a2d2a('0x4c')]][_0x2a2d2a('0x8e')];_0x2c2ef9[_0x2a2d2a('0x36')]=_['keys'](_0x50f50f),_0x2c2ef9[_0x2a2d2a('0x6d')]=_[_0x2a2d2a('0x75')](_0x2d3ea3[_0x2a2d2a('0x6d')]),_0x2c2ef9[_0x2a2d2a('0x2a')]=_[_0x2a2d2a('0xb1')](_0x2c2ef9[_0x2a2d2a('0x36')],_0x2c2ef9[_0x2a2d2a('0x6d')]),_0x89ef5f[_0x2a2d2a('0x5a')]=_['intersection'](_0x2c2ef9[_0x2a2d2a('0x36')],qs[_0x2a2d2a('0xa9')](_0x2d3ea3['query'][_0x2a2d2a('0xa9')])),_0x89ef5f['attributes']=_0x89ef5f[_0x2a2d2a('0x5a')][_0x2a2d2a('0x54')]?_0x89ef5f[_0x2a2d2a('0x5a')]:_0x2c2ef9['model'];typeof _0x2d3ea3[_0x2a2d2a('0x6d')][_0x2a2d2a('0x11')]===_0x2a2d2a('0x7')&&(_0x89ef5f[_0x2a2d2a('0x3')]=qs[_0x2a2d2a('0x3')](_0x2d3ea3[_0x2a2d2a('0x6d')][_0x2a2d2a('0x3')]),_0x89ef5f[_0x2a2d2a('0x28')]=qs[_0x2a2d2a('0x28')](_0x2d3ea3[_0x2a2d2a('0x6d')][_0x2a2d2a('0x28')]));_0x89ef5f[_0x2a2d2a('0x76')]=qs[_0x2a2d2a('0xc7')](_0x2d3ea3[_0x2a2d2a('0x6d')]['sort']),_0x89ef5f[_0x2a2d2a('0x7b')]=qs['filters'](_[_0x2a2d2a('0x47')](_0x2d3ea3[_0x2a2d2a('0x6d')],_0x2c2ef9[_0x2a2d2a('0x2a')]));_0x2d3ea3[_0x2a2d2a('0x6d')][_0x2a2d2a('0x2b')]&&(_0x89ef5f[_0x2a2d2a('0x7b')]=_[_0x2a2d2a('0xb6')](_0x89ef5f[_0x2a2d2a('0x7b')],{[Op['or']]:_[_0x2a2d2a('0x74')](_0x50f50f,function(_0x29cf97){const _0x2c3daa=_0x2a2d2a;if(_0x29cf97['type'][_0x2c3daa('0x49')]!==_0x2c3daa('0x50')){const _0x1c38bc={};return _0x1c38bc[_0x29cf97[_0x2c3daa('0x8b')]]={[Op[_0x2c3daa('0x56')]]:'%'+_0x2d3ea3['query']['filter']+'%'},_0x1c38bc;}})}));const _0x102472=[];if(_0x3aa352){const _0x51b5c4=_['find'](_0x12cb75,[_0x2a2d2a('0x26'),_0x3aa352['name']]);if(_0x51b5c4[_0x2a2d2a('0x8b')]){const _0x4d93ed={};_0x380ff4[_0x2a2d2a('0x4c')]==='AnalyticExtractedReport'?_0x4d93ed[_0x51b5c4['foreignKey']]=_[_0x2a2d2a('0x74')](_0x3aa352[_0x2a2d2a('0x73')],'id'):_0x4d93ed[_0x51b5c4[_0x2a2d2a('0xa3')]]=_0x3aa352['associatedResources'],_0x102472['push'](_0x4d93ed);}else _0x89ef5f[_0x2a2d2a('0x7b')]['id']=_0x3aa352[_0x2a2d2a('0x73')];}else for(let _0x3d39db=0x0;_0x3d39db<_0x11bf90[_0x2a2d2a('0x54')];_0x3d39db++){const _0x5a0ee6=_['find'](_0x12cb75,[_0x2a2d2a('0x26'),_0x11bf90[_0x3d39db][_0x2a2d2a('0x26')]]);if(_0x5a0ee6[_0x2a2d2a('0x8b')]){const _0x48785a={};_0x48785a[_0x5a0ee6[_0x2a2d2a('0xa3')]]=_0x11bf90[_0x3d39db][_0x2a2d2a('0x73')],_0x102472[_0x2a2d2a('0x3f')](_0x48785a);}else{if(!_0x89ef5f['where']['id'])_0x89ef5f[_0x2a2d2a('0x7b')]['id']=[];_0x11bf90[_0x3d39db]['associatedResources'][_0x2a2d2a('0xbd')](function(_0x49ea37){const _0x198d17=_0x2a2d2a;_0x89ef5f[_0x198d17('0x7b')]['id'][_0x198d17('0x3f')](_0x49ea37);});}}return!_[_0x2a2d2a('0x33')](_0x102472)&&(_0x89ef5f[_0x2a2d2a('0x7b')]=_['merge'](_0x89ef5f['where'],{[Op[_0x2a2d2a('0xc2')]]:{[Op['or']]:_0x102472}})),_0x89ef5f=_[_0x2a2d2a('0xb6')]({},_0x89ef5f,_0x2d3ea3[_0x2a2d2a('0x1e')]),_0x3aa352&&!_0x3aa352[_0x2a2d2a('0x95')]&&_0x380ff4['childModel']===_0x2a2d2a('0xbb')?(_0x2d3ea3[_0x2a2d2a('0x6d')][_0x2a2d2a('0xa5')]&&(_0x89ef5f[_0x2a2d2a('0x51')]=[{'all':!![]}]),db[_0x380ff4['childModel']][_0x2a2d2a('0x5f')](_0x89ef5f)[_0x2a2d2a('0x2f')](function(_0xa3a38b){const _0x23972e=_0x2a2d2a,_0x2a8285=[];return _0xa3a38b[_0x23972e('0xbd')](function(_0x8d0748){const _0x21720d=_0x23972e;let _0x164db4;switch(_0x8d0748['reportType']){case _0x21720d('0xad'):_0x164db4=_[_0x21720d('0x3c')](_0x3aa352[_0x21720d('0x73')],function(_0x4fc8c1){const _0x1d4396=_0x21720d;return _0x4fc8c1['id']===_0x8d0748['reportId']&&_0x4fc8c1[_0x1d4396('0x8a')]===_0x1d4396('0x5e');});break;case _0x21720d('0x59'):_0x164db4=_[_0x21720d('0x3c')](_0x3aa352[_0x21720d('0x73')],function(_0x51afdb){const _0x36d11f=_0x21720d;return _0x51afdb['id']===_0x8d0748[_0x36d11f('0xa6')]&&_0x51afdb[_0x36d11f('0x8a')]===_0x36d11f('0xab');});break;}if(_0x164db4)_0x2a8285[_0x21720d('0x3f')](_0x8d0748);}),_0x5e7bc3[_0x23972e('0x62')]=_0x2a8285[_0x23972e('0x54')],_0x5e7bc3[_0x23972e('0x63')]=_0x2a8285,_0x5e7bc3;})):db[_0x380ff4[_0x2a2d2a('0x4c')]][_0x2a2d2a('0x62')]({'where':_0x89ef5f['where']})[_0x2a2d2a('0x2f')](function(_0x3cd68f){const _0x314ed3=_0x2a2d2a;return _0x5e7bc3['count']=_0x3cd68f,_0x2d3ea3[_0x314ed3('0x6d')][_0x314ed3('0xa5')]&&(_0x380ff4[_0x314ed3('0x4c')]===_0x314ed3('0xac')?_0x89ef5f[_0x314ed3('0x51')]=[{'model':db[_0x314ed3('0x8c')],'as':_0x314ed3('0x77'),'attributes':['id',_0x314ed3('0x26'),_0x314ed3('0x55')],'required':_0x2d3ea3[_0x314ed3('0x6d')][_0x314ed3('0x57')]?!![]:![]},{'model':db[_0x314ed3('0x8c')],'as':_0x314ed3('0xf'),'attributes':['id',_0x314ed3('0x26'),_0x314ed3('0x55')],'through':_0x2d3ea3[_0x314ed3('0x6d')][_0x314ed3('0x57')]?{'attributes':[],'where':{'TagId':_0x2d3ea3[_0x314ed3('0x6d')][_0x314ed3('0x57')]||undefined}}:{},'required':_0x2d3ea3[_0x314ed3('0x6d')][_0x314ed3('0x57')]?!![]:![]}]:_0x89ef5f['include']=[{'all':!![]}]),db[_0x380ff4['childModel']]['findAll'](_0x89ef5f);})[_0x2a2d2a('0x2f')](function(_0x31b4f4){const _0x499440=_0x2a2d2a;return _0x5e7bc3[_0x499440('0x63')]=_0x31b4f4,_0x5e7bc3;});}else return _0x5e7bc3;})[_0x5577bb('0x2f')](respondWithFilteredResult(_0x215e0f,_0x89ef5f))['catch'](handleError(_0x215e0f,null));};function getAllResources(_0x484399,_0x5608b3){return new Promise(function(_0x459dc1,_0x26358f){const _0x287a53=a667_0x304a;if(_0x5608b3){const _0x598371=_0x5608b3[_0x287a53('0x2b')]?{[_0x5608b3[_0x287a53('0x2b')]['field']]:_0x5608b3[_0x287a53('0x2b')][_0x287a53('0x81')]}:undefined;return db[_0x484399][_0x287a53('0x5f')]({'where':_0x598371,'raw':!![]})[_0x287a53('0x2f')](function(_0x56ed51){const _0x95317f=_0x287a53;_0x5608b3[_0x95317f('0x73')]=_[_0x95317f('0x74')](_0x56ed51,'id'),_0x459dc1(_0x5608b3);})[_0x287a53('0xbe')](function(_0x139eba){_0x26358f(_0x139eba);});}else _0x459dc1(null);});}function getAllFilteredResources(_0x25314b,_0x13abad){return new Promise(function(_0x3e236b,_0x2b3736){const _0x145007=a667_0x304a,_0x66a96e=_0x25314b[_0x145007('0x2b')]?{[_0x25314b[_0x145007('0x2b')][_0x145007('0x8b')]]:_0x25314b['filter'][_0x145007('0x81')]}:undefined;return db[_0x25314b[_0x145007('0x36')]][_0x145007('0x5f')]({'where':_0x66a96e,'raw':!![]})[_0x145007('0x2f')](function(_0x50d601){const _0x65dd5d=_0x145007;_0x13abad['associatedResources']=_[_0x65dd5d('0x74')](_0x50d601,function(_0x1467e7){return _0x1467e7['name'];}),_0x3e236b(_0x13abad);})['catch'](function(_0xf9da64){_0x2b3736(_0xf9da64);});});}function getAllowedResources(_0x3e969d,_0x72d627,_0x3aeaeb){return new Promise(function(_0x3a3f8e,_0xb0c910){const _0x5a401d=a667_0x304a;if(_0x72d627)return db[_0x5a401d('0x44')][_0x5a401d('0x5f')]({'where':{'sectionId':_0x72d627['id']},'raw':!![]})[_0x5a401d('0x2f')](function(_0x415d83){const _0x42d1e1=_0x5a401d;_0x3e969d[_0x42d1e1('0x8b')]&&_0x3e969d[_0x42d1e1('0x8b')]!=='id'?_0x72d627[_0x42d1e1('0x73')]=_['map'](_0x415d83,function(_0x274300){return _0x274300[_0x3e969d['field']];}):_0x3aeaeb===_0x42d1e1('0xbb')?_0x72d627['associatedResources']=_['map'](_0x415d83,function(_0x4a4486){const _0x463939=_0x42d1e1;return{'id':_0x4a4486[_0x463939('0x9e')],'type':_0x4a4486[_0x463939('0x8a')]};}):_0x72d627[_0x42d1e1('0x73')]=_['map'](_0x415d83,function(_0x17178c){return _0x17178c['resourceId'];}),_0x3a3f8e(_0x72d627);})[_0x5a401d('0xbe')](function(_0x3968e7){_0xb0c910(_0x3968e7);});else _0x3a3f8e(null);});}function getQueryModels(_0x57478a,_0x26ac47){const _0x32e271=_0x3a22bd,_0x4d8a92=_0x57478a[_0x32e271('0x24')](),_0x1ae99b={'childModel':undefined,'parentSections':[]};switch(_0x4d8a92){case _0x32e271('0xa4'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xa1');break;case _0x32e271('0xa'):_0x1ae99b['childModel']=_0x32e271('0x45');break;case'squarerecordings':_0x1ae99b['childModel']=_0x32e271('0x79'),_0x1ae99b[_0x32e271('0xa8')]=[{'name':'SquareProjects','field':_0x32e271('0x26'),'foreignKey':_0x32e271('0x89')}];break;case'projects':_0x1ae99b[_0x32e271('0x4c')]='JscriptyProject';break;case'contacts':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xac'),_0x1ae99b['parentSections']=[{'name':_0x32e271('0xcb'),'field':'id','foreignKey':'ListId'}];break;case'lists':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x2c');break;case _0x32e271('0x61'):_0x1ae99b[_0x32e271('0x4c')]='CmCompany';break;case _0x32e271('0x20'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xaf');break;case _0x32e271('0x1d'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xb2');break;case _0x32e271('0x86'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x9b');break;case _0x32e271('0x4f'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xb7');break;case'faxaccounts':_0x1ae99b[_0x32e271('0x4c')]='FaxAccount';break;case _0x32e271('0xb8'):case _0x32e271('0xae'):case'outboundroutes':_0x1ae99b['childModel']=_0x32e271('0x2');break;case'contexts':_0x1ae99b['childModel']=_0x32e271('0x7e');break;case _0x32e271('0x96'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x43');break;case _0x32e271('0x2d'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x99'),_0x1ae99b[_0x32e271('0xa8')]=[{'name':_0x32e271('0x60'),'field':_0x32e271('0x26'),'foreignKey':_0x32e271('0xb5'),'model':_0x32e271('0x92'),'filter':{'field':_0x32e271('0x48'),'value':[_0x32e271('0x5b')]}},{'name':'Telephones','field':_0x32e271('0x26'),'foreignKey':_0x32e271('0xb5'),'model':'User','filter':{'field':'role','value':['telephone']}},{'name':'VoiceQueues','field':_0x32e271('0x26'),'foreignKey':_0x32e271('0x39'),'model':'VoiceQueue','filter':{'field':_0x32e271('0x8a'),'value':['inbound']}},{'name':_0x32e271('0x6e'),'field':_0x32e271('0x26'),'foreignKey':_0x32e271('0x39'),'model':'VoiceQueue','filter':{'field':_0x32e271('0x8a'),'value':[_0x32e271('0x7a')]}}];break;case _0x32e271('0x1b'):_0x1ae99b[_0x32e271('0x4c')]='VoiceMusicOnHold';break;case _0x32e271('0x87'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x35');break;case _0x32e271('0x8'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x17');break;case _0x32e271('0x91'):_0x1ae99b[_0x32e271('0x4c')]='Campaign';break;case _0x32e271('0x10'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x88');break;case'mailaccounts':_0x1ae99b['childModel']=_0x32e271('0xc1');break;case'mailsubstatuses':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xc0');break;case _0x32e271('0x0'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x58');break;case _0x32e271('0x12'):_0x1ae99b[_0x32e271('0x4c')]='OpenchannelAccount';break;case'smsqueues':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xa2');break;case _0x32e271('0x3a'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xb');break;case'whatsappqueues':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xbf');break;case'whatsappaccounts':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x8d');break;case _0x32e271('0x6b'):_0x1ae99b['childModel']='Team';break;case _0x32e271('0x23'):case _0x32e271('0x83'):_0x1ae99b['childModel']='VoiceQueue';_0x26ac47&&(_0x1ae99b[_0x32e271('0xa8')]=[{'name':_0x32e271('0x41')},{'name':_0x32e271('0x6e')}]);break;case'users':case _0x32e271('0x21'):case'telephones':_0x1ae99b['childModel']=_0x32e271('0x92');_0x26ac47&&(_0x1ae99b[_0x32e271('0xa8')]=[{'name':_0x32e271('0x78'),'filter':{'field':_0x32e271('0x48'),'value':[_0x32e271('0xc'),_0x32e271('0x52')]},'ignore':!![]},{'name':_0x32e271('0x60')},{'name':_0x32e271('0x37')}]);break;case _0x32e271('0x30'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x70');break;case _0x32e271('0x8f'):_0x1ae99b[_0x32e271('0x4c')]='SalesforceAccount';break;case _0x32e271('0x6a'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xa0');break;case'sugarcrmaccounts':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x16');break;case _0x32e271('0x80'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x3d');break;case'zohoaccounts':_0x1ae99b['childModel']=_0x32e271('0x85');break;case'vtigeraccounts':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x92');break;case _0x32e271('0x7f'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x7d');break;case _0x32e271('0x42'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x5');break;case _0x32e271('0x46'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x4e');break;case _0x32e271('0x9a'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x94');break;case'pauses':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0xc6');break;case'scheduler':_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x3e');break;case _0x32e271('0x19'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x98');break;case _0x32e271('0xba'):_0x1ae99b[_0x32e271('0x4c')]='Tag';break;case _0x32e271('0xca'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x40');break;case _0x32e271('0x34'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x15');break;case _0x32e271('0x9f'):_0x1ae99b[_0x32e271('0x4c')]='Trunk';break;case _0x32e271('0x1c'):_0x1ae99b[_0x32e271('0x4c')]='Variable';break;case _0x32e271('0xc3'):_0x1ae99b[_0x32e271('0x4c')]=_0x32e271('0x1');break;case _0x32e271('0x1a'):_0x1ae99b[_0x32e271('0x4c')]='AnalyticExtractedReport',_0x1ae99b[_0x32e271('0xa8')]=[{'name':_0x32e271('0xa7'),'field':'id','foreignKey':_0x32e271('0xa6')}];break;case _0x32e271('0xb4'):_0x1ae99b[_0x32e271('0x4c')]='AnalyticMetric';break;default:return _0x1ae99b;}return _0x1ae99b;} \ No newline at end of file diff --git a/server/api/userProfile/userProfile.events.js b/server/api/userProfile/userProfile.events.js index ba7c604..cb10122 100644 --- a/server/api/userProfile/userProfile.events.js +++ b/server/api/userProfile/userProfile.events.js @@ -1 +1 @@ -const a668_0x45f5=['exports','addHook','events','setMaxListeners','undefined'];(function(_0x336107,_0x45f5cf){const _0x191d19=function(_0xf28c3a){while(--_0xf28c3a){_0x336107['push'](_0x336107['shift']());}};_0x191d19(++_0x45f5cf);}(a668_0x45f5,0x1ae));const a668_0x191d=function(_0x336107,_0x45f5cf){_0x336107=_0x336107-0x0;let _0x191d19=a668_0x45f5[_0x336107];return _0x191d19;};const _0x11d3ae=a668_0x191d;'use strict';const EventEmitter=require(_0x11d3ae('0x2')),UserProfile=require('../../mysqldb')['db']['UserProfile'],UserProfileEvents=new EventEmitter();UserProfileEvents[_0x11d3ae('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0xf28c3a){return function(_0x5ba654){UserProfileEvents['emit'](_0xf28c3a+':'+_0x5ba654['id'],_0x5ba654),UserProfileEvents['emit'](_0xf28c3a,_0x5ba654);};}for(const e in events){if(typeof events[e]!==_0x11d3ae('0x4')){const event=events[e];UserProfile[_0x11d3ae('0x1')](e,emitEvent(event));}}module[_0x11d3ae('0x0')]=UserProfileEvents; \ No newline at end of file +const a668_0x2fe9=['addHook','remove','../../mysqldb','exports','save','events','emit','undefined','update','UserProfile'];(function(_0x480b3c,_0x2fe98e){const _0x42f1a3=function(_0x4a4e91){while(--_0x4a4e91){_0x480b3c['push'](_0x480b3c['shift']());}};_0x42f1a3(++_0x2fe98e);}(a668_0x2fe9,0xf2));const a668_0x42f1=function(_0x480b3c,_0x2fe98e){_0x480b3c=_0x480b3c-0x0;let _0x42f1a3=a668_0x2fe9[_0x480b3c];return _0x42f1a3;};const _0x2b9b9a=a668_0x42f1;'use strict';const EventEmitter=require(_0x2b9b9a('0x3')),UserProfile=require(_0x2b9b9a('0x0'))['db'][_0x2b9b9a('0x7')],UserProfileEvents=new EventEmitter();UserProfileEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x2b9b9a('0x2'),'afterUpdate':_0x2b9b9a('0x6'),'afterDestroy':_0x2b9b9a('0x9')};function emitEvent(_0x4a4e91){return function(_0x314724){const _0x12f920=a668_0x42f1;UserProfileEvents[_0x12f920('0x4')](_0x4a4e91+':'+_0x314724['id'],_0x314724),UserProfileEvents[_0x12f920('0x4')](_0x4a4e91,_0x314724);};}for(const e in events){if(typeof events[e]!==_0x2b9b9a('0x5')){const event=events[e];UserProfile[_0x2b9b9a('0x8')](e,emitEvent(event));}}module[_0x2b9b9a('0x1')]=UserProfileEvents; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.model.js b/server/api/userProfile/userProfile.model.js index 3df19ee..7e33392 100644 --- a/server/api/userProfile/userProfile.model.js +++ b/server/api/userProfile/userProfile.model.js @@ -1 +1 @@ -const a669_0x30e9=['define','UserProfile'];(function(_0x5c8353,_0x30e918){const _0x247f0e=function(_0x29c9e3){while(--_0x29c9e3){_0x5c8353['push'](_0x5c8353['shift']());}};_0x247f0e(++_0x30e918);}(a669_0x30e9,0x16b));const a669_0x247f=function(_0x5c8353,_0x30e918){_0x5c8353=_0x5c8353-0x0;let _0x247f0e=a669_0x30e9[_0x5c8353];return _0x247f0e;};'use strict';const attributes=require('./userProfile.attributes');module['exports']=function(_0x29c9e3){const _0x1ad1c1=a669_0x247f,_0x54ffe9=_0x29c9e3[_0x1ad1c1('0x1')](_0x1ad1c1('0x0'),attributes,{'tableName':'user_profiles','paranoid':![],'indexes':[],'timestamps':!![]});return _0x54ffe9;}; \ No newline at end of file +const a669_0x4542=['UserProfile','user_profiles','exports','./userProfile.attributes'];(function(_0x35abbf,_0x454287){const _0x5a8616=function(_0x13a627){while(--_0x13a627){_0x35abbf['push'](_0x35abbf['shift']());}};_0x5a8616(++_0x454287);}(a669_0x4542,0x11e));const a669_0x5a86=function(_0x35abbf,_0x454287){_0x35abbf=_0x35abbf-0x0;let _0x5a8616=a669_0x4542[_0x35abbf];return _0x5a8616;};const _0x2f4c0b=a669_0x5a86;'use strict';const attributes=require(_0x2f4c0b('0x1'));module[_0x2f4c0b('0x0')]=function(_0x13a627){const _0x31cb58=_0x2f4c0b,_0x23bd7f=_0x13a627['define'](_0x31cb58('0x2'),attributes,{'tableName':_0x31cb58('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x23bd7f;}; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.rpc.js b/server/api/userProfile/userProfile.rpc.js index 018e5de..85c8b43 100644 --- a/server/api/userProfile/userProfile.rpc.js +++ b/server/api/userProfile/userProfile.rpc.js @@ -1 +1 @@ -const a670_0x47b3=['register','../../rediscache','./userProfile.socket'];(function(_0x19fa0,_0x47b39a){const _0x5ae45e=function(_0x4147ac){while(--_0x4147ac){_0x19fa0['push'](_0x19fa0['shift']());}};_0x5ae45e(++_0x47b39a);}(a670_0x47b3,0x17f));const a670_0x5ae4=function(_0x19fa0,_0x47b39a){_0x19fa0=_0x19fa0-0x0;let _0x5ae45e=a670_0x47b3[_0x19fa0];return _0x5ae45e;};const _0x2861b2=a670_0x5ae4;'use strict';const {getSocket}=require(_0x2861b2('0x2')),socket=getSocket();require(_0x2861b2('0x0'))[_0x2861b2('0x1')](socket); \ No newline at end of file +const a670_0x5ed6=['register','../../rediscache','./userProfile.socket'];(function(_0x3e40fa,_0x5ed6bb){const _0x294ddd=function(_0x361e93){while(--_0x361e93){_0x3e40fa['push'](_0x3e40fa['shift']());}};_0x294ddd(++_0x5ed6bb);}(a670_0x5ed6,0xc1));const a670_0x294d=function(_0x3e40fa,_0x5ed6bb){_0x3e40fa=_0x3e40fa-0x0;let _0x294ddd=a670_0x5ed6[_0x3e40fa];return _0x294ddd;};const _0xe5481d=a670_0x294d;'use strict';const {getSocket}=require(_0xe5481d('0x0')),socket=getSocket();require(_0xe5481d('0x1'))[_0xe5481d('0x2')](socket); \ No newline at end of file diff --git a/server/api/userProfile/userProfile.socket.js b/server/api/userProfile/userProfile.socket.js index cea82b3..aac501c 100644 --- a/server/api/userProfile/userProfile.socket.js +++ b/server/api/userProfile/userProfile.socket.js @@ -1 +1 @@ -const a671_0x4ac7=['length','remove','save','register','userProfile:','emit'];(function(_0x5279db,_0x4ac718){const _0x5efe10=function(_0x223b32){while(--_0x223b32){_0x5279db['push'](_0x5279db['shift']());}};_0x5efe10(++_0x4ac718);}(a671_0x4ac7,0x19c));const a671_0x5efe=function(_0x5279db,_0x4ac718){_0x5279db=_0x5279db-0x0;let _0x5efe10=a671_0x4ac7[_0x5279db];return _0x5efe10;};const _0x46d854=a671_0x5efe;'use strict';const UserProfileEvents=require('./userProfile.events'),events=[_0x46d854('0x4'),_0x46d854('0x3'),'update'];function createListener(_0x223b32,_0x2d93c5){return function(_0xc8abe3){const _0x260e8e=a671_0x5efe;_0x2d93c5[_0x260e8e('0x1')](_0x223b32,_0xc8abe3);};}exports[_0x46d854('0x5')]=function(_0x3c8716){const _0x469c5d=_0x46d854;for(let _0x28630c=0x0,_0x2412ba=events[_0x469c5d('0x2')];_0x28630c<_0x2412ba;_0x28630c++){const _0x5a02b9=events[_0x28630c],_0x477158=createListener(_0x469c5d('0x0')+_0x5a02b9,_0x3c8716);UserProfileEvents['on'](_0x5a02b9,_0x477158);}}; \ No newline at end of file +const a671_0x550b=['userProfile:','./userProfile.events','emit','save','length','update','register','remove'];(function(_0x3be2d1,_0x550bd9){const _0x5cd9f4=function(_0x159b4b){while(--_0x159b4b){_0x3be2d1['push'](_0x3be2d1['shift']());}};_0x5cd9f4(++_0x550bd9);}(a671_0x550b,0x69));const a671_0x5cd9=function(_0x3be2d1,_0x550bd9){_0x3be2d1=_0x3be2d1-0x0;let _0x5cd9f4=a671_0x550b[_0x3be2d1];return _0x5cd9f4;};const _0x536e6f=a671_0x5cd9;'use strict';const UserProfileEvents=require(_0x536e6f('0x0')),events=[_0x536e6f('0x2'),_0x536e6f('0x6'),_0x536e6f('0x4')];function createListener(_0x159b4b,_0x4d190d){return function(_0x25ab6b){const _0x433956=a671_0x5cd9;_0x4d190d[_0x433956('0x1')](_0x159b4b,_0x25ab6b);};}exports[_0x536e6f('0x5')]=function(_0x4ffddd){const _0x394077=_0x536e6f;for(let _0x4ba715=0x0,_0xa65bf7=events[_0x394077('0x3')];_0x4ba715<_0xa65bf7;_0x4ba715++){const _0x4c5d2f=events[_0x4ba715],_0x5c1458=createListener(_0x394077('0x7')+_0x4c5d2f,_0x4ffddd);UserProfileEvents['on'](_0x4c5d2f,_0x5c1458);}}; \ No newline at end of file diff --git a/server/api/userProfileResource/index.js b/server/api/userProfileResource/index.js index c6d616f..ac14d9a 100644 --- a/server/api/userProfileResource/index.js +++ b/server/api/userProfileResource/index.js @@ -1 +1 @@ -const a672_0x7dd4=['./userProfileResource.controller','/:id','isAuthenticated','create','exports','describe','destroy','express','Router','get','update','/describe','post','index','../../components/auth/service','show','put'];(function(_0x13118e,_0x7dd4bc){const _0x2459c1=function(_0x1c6c94){while(--_0x1c6c94){_0x13118e['push'](_0x13118e['shift']());}};_0x2459c1(++_0x7dd4bc);}(a672_0x7dd4,0x180));const a672_0x2459=function(_0x13118e,_0x7dd4bc){_0x13118e=_0x13118e-0x0;let _0x2459c1=a672_0x7dd4[_0x13118e];return _0x2459c1;};const _0x57c8dd=a672_0x2459;'use strict';const express=require(_0x57c8dd('0xe')),router=express[_0x57c8dd('0xf')](),auth=require(_0x57c8dd('0x4')),controller=require(_0x57c8dd('0x7'));router[_0x57c8dd('0x10')]('/',auth[_0x57c8dd('0x9')](),controller[_0x57c8dd('0x3')]),router[_0x57c8dd('0x10')](_0x57c8dd('0x1'),auth[_0x57c8dd('0x9')](),controller[_0x57c8dd('0xc')]),router[_0x57c8dd('0x10')](_0x57c8dd('0x8'),auth[_0x57c8dd('0x9')](),controller[_0x57c8dd('0x5')]),router[_0x57c8dd('0x2')]('/',auth[_0x57c8dd('0x9')](),controller[_0x57c8dd('0xa')]),router[_0x57c8dd('0x6')](_0x57c8dd('0x8'),auth['isAuthenticated'](),controller[_0x57c8dd('0x0')]),router['delete'](_0x57c8dd('0x8'),auth[_0x57c8dd('0x9')](),controller[_0x57c8dd('0xd')]),module[_0x57c8dd('0xb')]=router; \ No newline at end of file +const a672_0x581d=['put','get','index','show','create','/describe','post','isAuthenticated','describe','/:id','exports','../../components/auth/service','destroy','express'];(function(_0x3b0390,_0x581dd1){const _0x44e890=function(_0x440b35){while(--_0x440b35){_0x3b0390['push'](_0x3b0390['shift']());}};_0x44e890(++_0x581dd1);}(a672_0x581d,0x86));const a672_0x44e8=function(_0x3b0390,_0x581dd1){_0x3b0390=_0x3b0390-0x0;let _0x44e890=a672_0x581d[_0x3b0390];return _0x44e890;};const _0x2899b1=a672_0x44e8;'use strict';const express=require(_0x2899b1('0x5')),router=express['Router'](),auth=require(_0x2899b1('0x3')),controller=require('./userProfileResource.controller');router[_0x2899b1('0x7')]('/',auth[_0x2899b1('0xd')](),controller[_0x2899b1('0x8')]),router['get'](_0x2899b1('0xb'),auth[_0x2899b1('0xd')](),controller[_0x2899b1('0x0')]),router['get'](_0x2899b1('0x1'),auth['isAuthenticated'](),controller[_0x2899b1('0x9')]),router[_0x2899b1('0xc')]('/',auth[_0x2899b1('0xd')](),controller[_0x2899b1('0xa')]),router[_0x2899b1('0x6')]('/:id',auth[_0x2899b1('0xd')](),controller['update']),router['delete'](_0x2899b1('0x1'),auth[_0x2899b1('0xd')](),controller[_0x2899b1('0x4')]),module[_0x2899b1('0x2')]=router; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.attributes.js b/server/api/userProfileResource/userProfileResource.attributes.js index 019130a..6c2eb09 100644 --- a/server/api/userProfileResource/userProfileResource.attributes.js +++ b/server/api/userProfileResource/userProfileResource.attributes.js @@ -1 +1 @@ -const a673_0xfdc2=['sequelize','exports','STRING'];(function(_0x1849ed,_0xfdc288){const _0x25aac6=function(_0x221b75){while(--_0x221b75){_0x1849ed['push'](_0x1849ed['shift']());}};_0x25aac6(++_0xfdc288);}(a673_0xfdc2,0x13e));const a673_0x25aa=function(_0x1849ed,_0xfdc288){_0x1849ed=_0x1849ed-0x0;let _0x25aac6=a673_0xfdc2[_0x1849ed];return _0x25aac6;};const _0x5204b4=a673_0x25aa;'use strict';const Sequelize=require(_0x5204b4('0x0'));module[_0x5204b4('0x1')]={'name':{'type':Sequelize[_0x5204b4('0x2')],'allowNull':![]},'resourceId':{'type':Sequelize['INTEGER'],'allowNull':![]},'type':{'type':Sequelize['STRING'],'allowNull':![]}}; \ No newline at end of file +const a673_0x1cd3=['INTEGER','STRING','exports','sequelize'];(function(_0xf966d8,_0x1cd393){const _0x59d48e=function(_0x13ad40){while(--_0x13ad40){_0xf966d8['push'](_0xf966d8['shift']());}};_0x59d48e(++_0x1cd393);}(a673_0x1cd3,0x191));const a673_0x59d4=function(_0xf966d8,_0x1cd393){_0xf966d8=_0xf966d8-0x0;let _0x59d48e=a673_0x1cd3[_0xf966d8];return _0x59d48e;};const _0x103021=a673_0x59d4;'use strict';const Sequelize=require(_0x103021('0x2'));module[_0x103021('0x1')]={'name':{'type':Sequelize[_0x103021('0x0')],'allowNull':![]},'resourceId':{'type':Sequelize[_0x103021('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x103021('0x0')],'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.controller.js b/server/api/userProfileResource/userProfileResource.controller.js index 9e899d1..86fcc67 100644 --- a/server/api/userProfileResource/userProfileResource.controller.js +++ b/server/api/userProfileResource/userProfileResource.controller.js @@ -1 +1 @@ -const a674_0xf316=['keys','query','../../mysqldb','end','params','limit','attributes','api','includeAll','catch','model','count','nolimit','where','update','sequelize','../../config/logger','json','send','create','intersection','include','pick','../../components/parsers/qs','merge','lodash','status','type','offset','filter','VIRTUAL','sort','set','stack','findAll','fields','Content-Range','options','UserProfileResource','sendStatus','destroy','rawAttributes','then','order','describe','map','filters','findOne','body','name'];(function(_0xef67b6,_0xf316fe){const _0xdf190a=function(_0x48b440){while(--_0x48b440){_0xef67b6['push'](_0xef67b6['shift']());}};_0xdf190a(++_0xf316fe);}(a674_0xf316,0x15f));const a674_0xdf19=function(_0xef67b6,_0xf316fe){_0xef67b6=_0xef67b6-0x0;let _0xdf190a=a674_0xf316[_0xef67b6];return _0xdf190a;};const _0x16322f=a674_0xdf19;'use strict';const _=require(_0x16322f('0x18')),qs=require(_0x16322f('0x16')),logger=require(_0x16322f('0xf'))(_0x16322f('0x6')),db=require(_0x16322f('0x1'))['db'],{Op}=require(_0x16322f('0xe'));function respondWithResult(_0x48b440,_0x3954fb){return _0x3954fb=_0x3954fb||0xc8,function(_0x153f95){const _0x4625ce=a674_0xdf19;if(_0x153f95)return _0x48b440[_0x4625ce('0x19')](_0x3954fb)[_0x4625ce('0x10')](_0x153f95);};}function respondWithFilteredResult(_0x4a6af4,_0x1b7bdc){return function(_0x4e1cc8){const _0x4ba6eb=a674_0xdf19;if(_0x4e1cc8){const _0x347475=_0x4e1cc8[_0x4ba6eb('0xa')],_0x4951b4=_0x1b7bdc[_0x4ba6eb('0x1b')];let _0x3e98a4=_0x1b7bdc[_0x4ba6eb('0x1b')]+_0x1b7bdc[_0x4ba6eb('0x4')],_0x119712;return _0x3e98a4>=_0x347475?(_0x3e98a4=_0x347475,_0x119712=0xc8):_0x119712=0xce,_0x4a6af4[_0x4ba6eb('0x19')](_0x119712),_0x4a6af4[_0x4ba6eb('0x1f')](_0x4ba6eb('0x23'),_0x4951b4+'-'+_0x3e98a4+'/'+_0x347475)[_0x4ba6eb('0x10')](_0x4e1cc8);}return null;};}function saveUpdates(_0x4fb40c){return function(_0x40562d){const _0x574888=a674_0xdf19;if(_0x40562d)return _0x40562d[_0x574888('0xd')](_0x4fb40c)[_0x574888('0x29')](function(_0x35aa8d){return _0x35aa8d;});return null;};}function removeEntity(_0x3b720b){return function(_0x5a9aee){const _0xc73288=a674_0xdf19;if(_0x5a9aee)return _0x5a9aee[_0xc73288('0x27')]()[_0xc73288('0x29')](function(){const _0x2cd5cc=_0xc73288;_0x3b720b[_0x2cd5cc('0x19')](0xcc)[_0x2cd5cc('0x2')]();});};}function handleEntityNotFound(_0x5449d9){return function(_0x38bfe1){const _0xe43a80=a674_0xdf19;return!_0x38bfe1&&_0x5449d9[_0xe43a80('0x26')](0x194),_0x38bfe1;};}function handleError(_0x5c49c4,_0x280c50){return _0x280c50=_0x280c50||0x1f4,function(_0x68d3df){const _0x3dcfd4=a674_0xdf19;logger['error'](_0x68d3df[_0x3dcfd4('0x20')]),_0x68d3df[_0x3dcfd4('0x30')]&&delete _0x68d3df[_0x3dcfd4('0x30')],_0x5c49c4[_0x3dcfd4('0x19')](_0x280c50)[_0x3dcfd4('0x11')](_0x68d3df);};}exports['index']=function(_0x57d556,_0x293f37){const _0x1401cd=_0x16322f;let _0x15cbc3={};const _0x4cbc63={},_0xb3259f={'count':0x0,'rows':[]},_0x4ba04e=_['map'](db[_0x1401cd('0x25')][_0x1401cd('0x28')],function(_0x40a723){const _0x29967c=_0x1401cd;return{'name':_0x40a723['fieldName'],'type':_0x40a723[_0x29967c('0x1a')]['key']};});_0x4cbc63['model']=_[_0x1401cd('0x2c')](_0x4ba04e,'name'),_0x4cbc63[_0x1401cd('0x0')]=_[_0x1401cd('0x31')](_0x57d556[_0x1401cd('0x0')]),_0x4cbc63[_0x1401cd('0x2d')]=_[_0x1401cd('0x13')](_0x4cbc63[_0x1401cd('0x9')],_0x4cbc63[_0x1401cd('0x0')]),_0x15cbc3[_0x1401cd('0x5')]=_['intersection'](_0x4cbc63['model'],qs[_0x1401cd('0x22')](_0x57d556['query'][_0x1401cd('0x22')])),_0x15cbc3[_0x1401cd('0x5')]=_0x15cbc3[_0x1401cd('0x5')]['length']?_0x15cbc3['attributes']:_0x4cbc63['model'];typeof _0x57d556[_0x1401cd('0x0')][_0x1401cd('0xb')]==='undefined'&&(_0x15cbc3[_0x1401cd('0x4')]=qs[_0x1401cd('0x4')](_0x57d556[_0x1401cd('0x0')][_0x1401cd('0x4')]),_0x15cbc3['offset']=qs[_0x1401cd('0x1b')](_0x57d556[_0x1401cd('0x0')][_0x1401cd('0x1b')]));_0x15cbc3[_0x1401cd('0x2a')]=qs[_0x1401cd('0x1e')](_0x57d556[_0x1401cd('0x0')]['sort']),_0x15cbc3[_0x1401cd('0xc')]=qs[_0x1401cd('0x2d')](_[_0x1401cd('0x15')](_0x57d556[_0x1401cd('0x0')],_0x4cbc63[_0x1401cd('0x2d')]),_0x4ba04e);_0x57d556[_0x1401cd('0x0')][_0x1401cd('0x1c')]&&(_0x15cbc3[_0x1401cd('0xc')]=_['merge'](_0x15cbc3[_0x1401cd('0xc')],{[Op['or']]:_[_0x1401cd('0x2c')](_0x4ba04e,function(_0x30c309){const _0x3aad51=_0x1401cd;if(_0x30c309[_0x3aad51('0x1a')]!==_0x3aad51('0x1d')){const _0x4e21f9={};return _0x4e21f9[_0x30c309[_0x3aad51('0x30')]]={[Op['like']]:'%'+_0x57d556[_0x3aad51('0x0')][_0x3aad51('0x1c')]+'%'},_0x4e21f9;}})}));_0x15cbc3=_[_0x1401cd('0x17')]({},_0x15cbc3,_0x57d556[_0x1401cd('0x24')]);const _0x261328={'where':_0x15cbc3[_0x1401cd('0xc')]};return db['UserProfileResource'][_0x1401cd('0xa')](_0x261328)['then'](function(_0x3b6734){const _0x442872=_0x1401cd;return _0xb3259f['count']=_0x3b6734,_0x57d556[_0x442872('0x0')][_0x442872('0x7')]&&(_0x15cbc3[_0x442872('0x14')]=[{'all':!![]}]),db['UserProfileResource'][_0x442872('0x21')](_0x15cbc3);})[_0x1401cd('0x29')](function(_0x173f26){return _0xb3259f['rows']=_0x173f26,_0xb3259f;})[_0x1401cd('0x29')](respondWithFilteredResult(_0x293f37,_0x15cbc3))[_0x1401cd('0x8')](handleError(_0x293f37,null));},exports['show']=function(_0x2b54e6,_0x5819cd){const _0x43556f=_0x16322f;let _0x1d69f4={'raw':![],'where':{'id':_0x2b54e6[_0x43556f('0x3')]['id']}};const _0x591635={};return _0x591635[_0x43556f('0x9')]=_[_0x43556f('0x31')](db[_0x43556f('0x25')]['rawAttributes']),_0x591635[_0x43556f('0x0')]=_[_0x43556f('0x31')](_0x2b54e6[_0x43556f('0x0')]),_0x591635[_0x43556f('0x2d')]=_['intersection'](_0x591635[_0x43556f('0x9')],_0x591635['query']),_0x1d69f4[_0x43556f('0x5')]=_['intersection'](_0x591635[_0x43556f('0x9')],qs['fields'](_0x2b54e6['query'][_0x43556f('0x22')])),_0x1d69f4['attributes']=_0x1d69f4[_0x43556f('0x5')]['length']?_0x1d69f4[_0x43556f('0x5')]:_0x591635[_0x43556f('0x9')],_0x2b54e6[_0x43556f('0x0')][_0x43556f('0x7')]&&(_0x1d69f4[_0x43556f('0x14')]=[{'all':!![]}]),_0x1d69f4=_['merge']({},_0x1d69f4,_0x2b54e6['options']),db[_0x43556f('0x25')][_0x43556f('0x2e')](_0x1d69f4)[_0x43556f('0x29')](handleEntityNotFound(_0x5819cd,null))[_0x43556f('0x29')](respondWithResult(_0x5819cd,null))[_0x43556f('0x8')](handleError(_0x5819cd,null));},exports[_0x16322f('0x12')]=function(_0x3788a5,_0x3f6eda){const _0x20e7c7=_0x16322f;return db[_0x20e7c7('0x25')][_0x20e7c7('0x12')](_0x3788a5['body'],{})['then'](respondWithResult(_0x3f6eda,0xc9))['catch'](handleError(_0x3f6eda,null));},exports['update']=function(_0x3e7a81,_0x5a3118){const _0x185ebe=_0x16322f;return _0x3e7a81['body']['id']&&delete _0x3e7a81[_0x185ebe('0x2f')]['id'],db['UserProfileResource'][_0x185ebe('0x2e')]({'where':{'id':_0x3e7a81[_0x185ebe('0x3')]['id']}})['then'](handleEntityNotFound(_0x5a3118,null))[_0x185ebe('0x29')](saveUpdates(_0x3e7a81[_0x185ebe('0x2f')],null))['then'](respondWithResult(_0x5a3118,null))['catch'](handleError(_0x5a3118,null));},exports[_0x16322f('0x27')]=function(_0x10e8f3,_0xc5a21){const _0x548e88=_0x16322f;return db[_0x548e88('0x25')][_0x548e88('0x2e')]({'where':{'id':_0x10e8f3['params']['id']}})[_0x548e88('0x29')](handleEntityNotFound(_0xc5a21,null))[_0x548e88('0x29')](removeEntity(_0xc5a21,null))[_0x548e88('0x8')](handleError(_0xc5a21,null));},exports[_0x16322f('0x2b')]=function(_0x327fd4,_0x36d874){const _0x513df2=_0x16322f;return db[_0x513df2('0x25')][_0x513df2('0x2b')]()['then'](respondWithResult(_0x36d874,null))[_0x513df2('0x8')](handleError(_0x36d874,null));}; \ No newline at end of file +const a674_0xf7bf=['index','undefined','params','include','options','catch','key','destroy','like','update','describe','model','where','Content-Range','length','merge','VIRTUAL','../../mysqldb','UserProfileResource','keys','../../components/parsers/qs','body','end','attributes','count','rows','query','filter','../../config/logger','fields','includeAll','sendStatus','map','sort','limit','json','nolimit','type','then','findOne','api','intersection','name','fieldName','show','offset','filters','pick','create','stack','status','rawAttributes','sequelize'];(function(_0x270001,_0xf7bf38){const _0x1cbdc2=function(_0x453cd2){while(--_0x453cd2){_0x270001['push'](_0x270001['shift']());}};_0x1cbdc2(++_0xf7bf38);}(a674_0xf7bf,0x107));const a674_0x1cbd=function(_0x270001,_0xf7bf38){_0x270001=_0x270001-0x0;let _0x1cbdc2=a674_0xf7bf[_0x270001];return _0x1cbdc2;};const _0x143d55=a674_0x1cbd;'use strict';const _=require('lodash'),qs=require(_0x143d55('0x16')),logger=require(_0x143d55('0x1e'))(_0x143d55('0x2a')),db=require(_0x143d55('0x13'))['db'],{Op}=require(_0x143d55('0x1'));function respondWithResult(_0x453cd2,_0x3ef2dd){return _0x3ef2dd=_0x3ef2dd||0xc8,function(_0x83b944){const _0x2f367e=a674_0x1cbd;if(_0x83b944)return _0x453cd2['status'](_0x3ef2dd)[_0x2f367e('0x25')](_0x83b944);};}function respondWithFilteredResult(_0x1e638a,_0x2a4628){return function(_0x4c7166){const _0x5074a5=a674_0x1cbd;if(_0x4c7166){const _0x3b7c88=_0x4c7166[_0x5074a5('0x1a')],_0x134002=_0x2a4628[_0x5074a5('0x2f')];let _0x3e1cb4=_0x2a4628['offset']+_0x2a4628[_0x5074a5('0x24')],_0x3b36e7;return _0x3e1cb4>=_0x3b7c88?(_0x3e1cb4=_0x3b7c88,_0x3b36e7=0xc8):_0x3b36e7=0xce,_0x1e638a[_0x5074a5('0x34')](_0x3b36e7),_0x1e638a['set'](_0x5074a5('0xf'),_0x134002+'-'+_0x3e1cb4+'/'+_0x3b7c88)[_0x5074a5('0x25')](_0x4c7166);}return null;};}function saveUpdates(_0x3cf2f3){return function(_0x33840d){const _0x11a20b=a674_0x1cbd;if(_0x33840d)return _0x33840d[_0x11a20b('0xb')](_0x3cf2f3)[_0x11a20b('0x28')](function(_0x135a26){return _0x135a26;});return null;};}function removeEntity(_0x3f53d3){return function(_0x35a01d){const _0x4157e2=a674_0x1cbd;if(_0x35a01d)return _0x35a01d[_0x4157e2('0x9')]()[_0x4157e2('0x28')](function(){const _0x24541c=_0x4157e2;_0x3f53d3['status'](0xcc)[_0x24541c('0x18')]();});};}function handleEntityNotFound(_0x19d502){return function(_0x26172d){const _0xa47d8c=a674_0x1cbd;return!_0x26172d&&_0x19d502[_0xa47d8c('0x21')](0x194),_0x26172d;};}function handleError(_0x13b482,_0x45abdc){return _0x45abdc=_0x45abdc||0x1f4,function(_0x3d6166){const _0x25d8f6=a674_0x1cbd;logger['error'](_0x3d6166[_0x25d8f6('0x33')]),_0x3d6166[_0x25d8f6('0x2c')]&&delete _0x3d6166[_0x25d8f6('0x2c')],_0x13b482[_0x25d8f6('0x34')](_0x45abdc)['send'](_0x3d6166);};}exports[_0x143d55('0x2')]=function(_0x290d08,_0x1cbb74){const _0x57872d=_0x143d55;let _0x207d91={};const _0x5df1e5={},_0x184f05={'count':0x0,'rows':[]},_0x2b9d0e=_[_0x57872d('0x22')](db[_0x57872d('0x14')][_0x57872d('0x0')],function(_0x51a1ec){const _0x39a8da=_0x57872d;return{'name':_0x51a1ec[_0x39a8da('0x2d')],'type':_0x51a1ec[_0x39a8da('0x27')][_0x39a8da('0x8')]};});_0x5df1e5[_0x57872d('0xd')]=_['map'](_0x2b9d0e,_0x57872d('0x2c')),_0x5df1e5['query']=_[_0x57872d('0x15')](_0x290d08[_0x57872d('0x1c')]),_0x5df1e5['filters']=_[_0x57872d('0x2b')](_0x5df1e5[_0x57872d('0xd')],_0x5df1e5['query']),_0x207d91['attributes']=_['intersection'](_0x5df1e5[_0x57872d('0xd')],qs['fields'](_0x290d08['query']['fields'])),_0x207d91[_0x57872d('0x19')]=_0x207d91[_0x57872d('0x19')][_0x57872d('0x10')]?_0x207d91[_0x57872d('0x19')]:_0x5df1e5[_0x57872d('0xd')];typeof _0x290d08[_0x57872d('0x1c')][_0x57872d('0x26')]===_0x57872d('0x3')&&(_0x207d91[_0x57872d('0x24')]=qs[_0x57872d('0x24')](_0x290d08[_0x57872d('0x1c')][_0x57872d('0x24')]),_0x207d91[_0x57872d('0x2f')]=qs[_0x57872d('0x2f')](_0x290d08[_0x57872d('0x1c')][_0x57872d('0x2f')]));_0x207d91['order']=qs[_0x57872d('0x23')](_0x290d08[_0x57872d('0x1c')][_0x57872d('0x23')]),_0x207d91[_0x57872d('0xe')]=qs['filters'](_[_0x57872d('0x31')](_0x290d08[_0x57872d('0x1c')],_0x5df1e5[_0x57872d('0x30')]),_0x2b9d0e);_0x290d08[_0x57872d('0x1c')][_0x57872d('0x1d')]&&(_0x207d91[_0x57872d('0xe')]=_[_0x57872d('0x11')](_0x207d91[_0x57872d('0xe')],{[Op['or']]:_[_0x57872d('0x22')](_0x2b9d0e,function(_0x3555ef){const _0xafab61=_0x57872d;if(_0x3555ef[_0xafab61('0x27')]!==_0xafab61('0x12')){const _0xacf649={};return _0xacf649[_0x3555ef['name']]={[Op[_0xafab61('0xa')]]:'%'+_0x290d08[_0xafab61('0x1c')][_0xafab61('0x1d')]+'%'},_0xacf649;}})}));_0x207d91=_['merge']({},_0x207d91,_0x290d08[_0x57872d('0x6')]);const _0x451c42={'where':_0x207d91['where']};return db['UserProfileResource'][_0x57872d('0x1a')](_0x451c42)['then'](function(_0x6677f9){const _0x4aff99=_0x57872d;return _0x184f05[_0x4aff99('0x1a')]=_0x6677f9,_0x290d08[_0x4aff99('0x1c')]['includeAll']&&(_0x207d91[_0x4aff99('0x5')]=[{'all':!![]}]),db[_0x4aff99('0x14')]['findAll'](_0x207d91);})['then'](function(_0x34b982){const _0x434a03=_0x57872d;return _0x184f05[_0x434a03('0x1b')]=_0x34b982,_0x184f05;})['then'](respondWithFilteredResult(_0x1cbb74,_0x207d91))['catch'](handleError(_0x1cbb74,null));},exports[_0x143d55('0x2e')]=function(_0x372553,_0x499e83){const _0x1977a3=_0x143d55;let _0x79b599={'raw':![],'where':{'id':_0x372553[_0x1977a3('0x4')]['id']}};const _0x5d4a77={};return _0x5d4a77[_0x1977a3('0xd')]=_['keys'](db[_0x1977a3('0x14')]['rawAttributes']),_0x5d4a77[_0x1977a3('0x1c')]=_[_0x1977a3('0x15')](_0x372553[_0x1977a3('0x1c')]),_0x5d4a77['filters']=_['intersection'](_0x5d4a77['model'],_0x5d4a77[_0x1977a3('0x1c')]),_0x79b599[_0x1977a3('0x19')]=_[_0x1977a3('0x2b')](_0x5d4a77['model'],qs[_0x1977a3('0x1f')](_0x372553[_0x1977a3('0x1c')][_0x1977a3('0x1f')])),_0x79b599['attributes']=_0x79b599[_0x1977a3('0x19')]['length']?_0x79b599[_0x1977a3('0x19')]:_0x5d4a77[_0x1977a3('0xd')],_0x372553['query'][_0x1977a3('0x20')]&&(_0x79b599[_0x1977a3('0x5')]=[{'all':!![]}]),_0x79b599=_[_0x1977a3('0x11')]({},_0x79b599,_0x372553[_0x1977a3('0x6')]),db['UserProfileResource'][_0x1977a3('0x29')](_0x79b599)['then'](handleEntityNotFound(_0x499e83,null))[_0x1977a3('0x28')](respondWithResult(_0x499e83,null))[_0x1977a3('0x7')](handleError(_0x499e83,null));},exports['create']=function(_0x44b98e,_0x1ff549){const _0x2a35e0=_0x143d55;return db[_0x2a35e0('0x14')][_0x2a35e0('0x32')](_0x44b98e[_0x2a35e0('0x17')],{})['then'](respondWithResult(_0x1ff549,0xc9))[_0x2a35e0('0x7')](handleError(_0x1ff549,null));},exports[_0x143d55('0xb')]=function(_0x254ed1,_0x2ec54d){const _0x5e1310=_0x143d55;return _0x254ed1[_0x5e1310('0x17')]['id']&&delete _0x254ed1[_0x5e1310('0x17')]['id'],db[_0x5e1310('0x14')]['findOne']({'where':{'id':_0x254ed1[_0x5e1310('0x4')]['id']}})[_0x5e1310('0x28')](handleEntityNotFound(_0x2ec54d,null))[_0x5e1310('0x28')](saveUpdates(_0x254ed1[_0x5e1310('0x17')],null))[_0x5e1310('0x28')](respondWithResult(_0x2ec54d,null))['catch'](handleError(_0x2ec54d,null));},exports[_0x143d55('0x9')]=function(_0x512c80,_0x18b4e0){const _0x3c5e95=_0x143d55;return db['UserProfileResource'][_0x3c5e95('0x29')]({'where':{'id':_0x512c80['params']['id']}})['then'](handleEntityNotFound(_0x18b4e0,null))[_0x3c5e95('0x28')](removeEntity(_0x18b4e0,null))[_0x3c5e95('0x7')](handleError(_0x18b4e0,null));},exports[_0x143d55('0xc')]=function(_0x409c7e,_0x1138bd){const _0x51e4ba=_0x143d55;return db['UserProfileResource']['describe']()['then'](respondWithResult(_0x1138bd,null))[_0x51e4ba('0x7')](handleError(_0x1138bd,null));}; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.model.js b/server/api/userProfileResource/userProfileResource.model.js index 1f0c42a..b0dc6a2 100644 --- a/server/api/userProfileResource/userProfileResource.model.js +++ b/server/api/userProfileResource/userProfileResource.model.js @@ -1 +1 @@ -const a675_0x243a=['exports','sectionId','user_profile_has_resources','UserProfileResource','define','compositeIndex'];(function(_0x5c667a,_0x243a07){const _0x21be51=function(_0x4345ea){while(--_0x4345ea){_0x5c667a['push'](_0x5c667a['shift']());}};_0x21be51(++_0x243a07);}(a675_0x243a,0x1bf));const a675_0x21be=function(_0x5c667a,_0x243a07){_0x5c667a=_0x5c667a-0x0;let _0x21be51=a675_0x243a[_0x5c667a];return _0x21be51;};const _0xe3b9b6=a675_0x21be;'use strict';const attributes=require('./userProfileResource.attributes');module[_0xe3b9b6('0x3')]=function(_0x4345ea){const _0x1c62ae=_0xe3b9b6,_0x322ac1=_0x4345ea[_0x1c62ae('0x1')](_0x1c62ae('0x0'),attributes,{'tableName':_0x1c62ae('0x5'),'paranoid':![],'indexes':[{'name':_0x1c62ae('0x2'),'fields':['resourceId',_0x1c62ae('0x4')]}],'timestamps':!![]});return _0x322ac1;}; \ No newline at end of file +const a675_0x5b05=['compositeIndex','user_profile_has_resources','define','UserProfileResource','./userProfileResource.attributes','resourceId','sectionId','exports'];(function(_0x111a95,_0x5b05af){const _0x35f2e7=function(_0x19c5c9){while(--_0x19c5c9){_0x111a95['push'](_0x111a95['shift']());}};_0x35f2e7(++_0x5b05af);}(a675_0x5b05,0x15a));const a675_0x35f2=function(_0x111a95,_0x5b05af){_0x111a95=_0x111a95-0x0;let _0x35f2e7=a675_0x5b05[_0x111a95];return _0x35f2e7;};const _0x252277=a675_0x35f2;'use strict';const attributes=require(_0x252277('0x2'));module[_0x252277('0x5')]=function(_0x19c5c9){const _0x5b7d5c=_0x252277,_0x318fb4=_0x19c5c9[_0x5b7d5c('0x0')](_0x5b7d5c('0x1'),attributes,{'tableName':_0x5b7d5c('0x7'),'paranoid':![],'indexes':[{'name':_0x5b7d5c('0x6'),'fields':[_0x5b7d5c('0x3'),_0x5b7d5c('0x4')]}],'timestamps':!![]});return _0x318fb4;}; \ No newline at end of file diff --git a/server/api/userProfileSection/index.js b/server/api/userProfileSection/index.js index 72e9665..17b27fe 100644 --- a/server/api/userProfileSection/index.js +++ b/server/api/userProfileSection/index.js @@ -1 +1 @@ -const a676_0x2803=['../../components/auth/service','index','post','get','Router','/:id','update','exports','./userProfileSection.controller','isAuthenticated','express','destroy','put'];(function(_0x491e8e,_0x280368){const _0x574387=function(_0x14a477){while(--_0x14a477){_0x491e8e['push'](_0x491e8e['shift']());}};_0x574387(++_0x280368);}(a676_0x2803,0x147));const a676_0x5743=function(_0x491e8e,_0x280368){_0x491e8e=_0x491e8e-0x0;let _0x574387=a676_0x2803[_0x491e8e];return _0x574387;};const _0x18efea=a676_0x5743;'use strict';const express=require(_0x18efea('0x8')),router=express[_0x18efea('0x2')](),auth=require(_0x18efea('0xb')),controller=require(_0x18efea('0x6'));router['get']('/',auth[_0x18efea('0x7')](),controller[_0x18efea('0xc')]),router[_0x18efea('0x1')]('/describe',auth[_0x18efea('0x7')](),controller['describe']),router['get'](_0x18efea('0x3'),auth[_0x18efea('0x7')](),controller['show']),router[_0x18efea('0x0')]('/',auth['isAuthenticated'](),controller['create']),router[_0x18efea('0xa')](_0x18efea('0x3'),auth[_0x18efea('0x7')](),controller[_0x18efea('0x4')]),router['delete'](_0x18efea('0x3'),auth[_0x18efea('0x7')](),controller[_0x18efea('0x9')]),module[_0x18efea('0x5')]=router; \ No newline at end of file +const a676_0x4c24=['index','post','create','Router','isAuthenticated','put','delete','express','./userProfileSection.controller','/:id','../../components/auth/service','get','describe','show','exports','/describe','destroy'];(function(_0x5810e1,_0x4c24e5){const _0x35428d=function(_0xd5c1b9){while(--_0xd5c1b9){_0x5810e1['push'](_0x5810e1['shift']());}};_0x35428d(++_0x4c24e5);}(a676_0x4c24,0x15f));const a676_0x3542=function(_0x5810e1,_0x4c24e5){_0x5810e1=_0x5810e1-0x0;let _0x35428d=a676_0x4c24[_0x5810e1];return _0x35428d;};const _0x4a287c=a676_0x3542;'use strict';const express=require(_0x4a287c('0xd')),router=express[_0x4a287c('0x9')](),auth=require(_0x4a287c('0x10')),controller=require(_0x4a287c('0xe'));router[_0x4a287c('0x0')]('/',auth[_0x4a287c('0xa')](),controller[_0x4a287c('0x6')]),router['get'](_0x4a287c('0x4'),auth[_0x4a287c('0xa')](),controller[_0x4a287c('0x1')]),router[_0x4a287c('0x0')](_0x4a287c('0xf'),auth[_0x4a287c('0xa')](),controller[_0x4a287c('0x2')]),router[_0x4a287c('0x7')]('/',auth[_0x4a287c('0xa')](),controller[_0x4a287c('0x8')]),router[_0x4a287c('0xb')](_0x4a287c('0xf'),auth[_0x4a287c('0xa')](),controller['update']),router[_0x4a287c('0xc')](_0x4a287c('0xf'),auth[_0x4a287c('0xa')](),controller[_0x4a287c('0x5')]),module[_0x4a287c('0x3')]=router; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.attributes.js b/server/api/userProfileSection/userProfileSection.attributes.js index 0f2d58a..f65378c 100644 --- a/server/api/userProfileSection/userProfileSection.attributes.js +++ b/server/api/userProfileSection/userProfileSection.attributes.js @@ -1 +1 @@ -const a677_0x24bc=['setDataValue','STRING','join','sequelize','crudPermissions','BOOLEAN','getDataValue','split','exports'];(function(_0x28563c,_0x24bc7c){const _0x4ea9bc=function(_0x5df133){while(--_0x5df133){_0x28563c['push'](_0x28563c['shift']());}};_0x4ea9bc(++_0x24bc7c);}(a677_0x24bc,0x177));const a677_0x4ea9=function(_0x28563c,_0x24bc7c){_0x28563c=_0x28563c-0x0;let _0x4ea9bc=a677_0x24bc[_0x28563c];return _0x4ea9bc;};const _0x207c84=a677_0x4ea9;'use strict';const Sequelize=require(_0x207c84('0x6'));module[_0x207c84('0x2')]={'name':{'type':Sequelize[_0x207c84('0x4')],'allowNull':![]},'category':{'type':Sequelize[_0x207c84('0x4')],'allowNull':![]},'sectionId':{'type':Sequelize['INTEGER'],'allowNull':![]},'enabled':{'type':Sequelize[_0x207c84('0x8')],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x207c84('0x8')],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x207c84('0x4')],'set':function(_0x5df133){const _0x2be674=_0x207c84;this[_0x2be674('0x3')](_0x2be674('0x7'),_0x5df133?_0x5df133[_0x2be674('0x5')](''):[]);},'get':function(){const _0x5567b8=_0x207c84;return this[_0x5567b8('0x0')]('crudPermissions')?this[_0x5567b8('0x0')](_0x5567b8('0x7'))[_0x5567b8('0x1')](''):[];}}}; \ No newline at end of file +const a677_0x1b45=['setDataValue','crudPermissions','STRING','exports','join','INTEGER','getDataValue','sequelize','BOOLEAN'];(function(_0x1867c9,_0x1b456e){const _0x360fc9=function(_0x5607b1){while(--_0x5607b1){_0x1867c9['push'](_0x1867c9['shift']());}};_0x360fc9(++_0x1b456e);}(a677_0x1b45,0xee));const a677_0x360f=function(_0x1867c9,_0x1b456e){_0x1867c9=_0x1867c9-0x0;let _0x360fc9=a677_0x1b45[_0x1867c9];return _0x360fc9;};const _0x362189=a677_0x360f;'use strict';const Sequelize=require(_0x362189('0x3'));module[_0x362189('0x8')]={'name':{'type':Sequelize[_0x362189('0x7')],'allowNull':![]},'category':{'type':Sequelize[_0x362189('0x7')],'allowNull':![]},'sectionId':{'type':Sequelize[_0x362189('0x1')],'allowNull':![]},'enabled':{'type':Sequelize[_0x362189('0x4')],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x362189('0x4')],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x362189('0x7')],'set':function(_0x5607b1){const _0x201d07=_0x362189;this[_0x201d07('0x5')](_0x201d07('0x6'),_0x5607b1?_0x5607b1[_0x201d07('0x0')](''):[]);},'get':function(){const _0xd85b37=_0x362189;return this[_0xd85b37('0x2')](_0xd85b37('0x6'))?this[_0xd85b37('0x2')](_0xd85b37('0x6'))['split'](''):[];}}}; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.controller.js b/server/api/userProfileSection/userProfileSection.controller.js index afa34ae..d094b01 100644 --- a/server/api/userProfileSection/userProfileSection.controller.js +++ b/server/api/userProfileSection/userProfileSection.controller.js @@ -1 +1 @@ -const a678_0x1262=['error','stack','nolimit','api','include','attributes','type','catch','pick','offset','../../mysqldb','create','rawAttributes','where','describe','show','lodash','update','VIRTUAL','options','limit','sequelize','UserProfileSection','then','fields','model','map','params','intersection','length','query','order','body','filters','merge','destroy','like','fieldName','keys','filter','findOne','Content-Range','includeAll','../../components/parsers/qs','sort','rows','name','json','count','status','index'];(function(_0x4bdf79,_0x1262d5){const _0x435168=function(_0x4bb82d){while(--_0x4bb82d){_0x4bdf79['push'](_0x4bdf79['shift']());}};_0x435168(++_0x1262d5);}(a678_0x1262,0x95));const a678_0x4351=function(_0x4bdf79,_0x1262d5){_0x4bdf79=_0x4bdf79-0x0;let _0x435168=a678_0x1262[_0x4bdf79];return _0x435168;};const _0x493dba=a678_0x4351;'use strict';const _=require(_0x493dba('0x14')),qs=require(_0x493dba('0x2f')),logger=require('../../config/logger')(_0x493dba('0x7')),db=require(_0x493dba('0xe'))['db'],{Op}=require(_0x493dba('0x19'));function respondWithResult(_0x4bb82d,_0x47dfed){return _0x47dfed=_0x47dfed||0xc8,function(_0x37139e){const _0x12ae79=a678_0x4351;if(_0x37139e)return _0x4bb82d[_0x12ae79('0x2')](_0x47dfed)[_0x12ae79('0x0')](_0x37139e);};}function respondWithFilteredResult(_0x120ed5,_0x516447){return function(_0x26b613){const _0x27efea=a678_0x4351;if(_0x26b613){const _0x1cf668=_0x26b613[_0x27efea('0x1')],_0x578f50=_0x516447[_0x27efea('0xd')];let _0x2661ba=_0x516447['offset']+_0x516447[_0x27efea('0x18')],_0x1d3a82;return _0x2661ba>=_0x1cf668?(_0x2661ba=_0x1cf668,_0x1d3a82=0xc8):_0x1d3a82=0xce,_0x120ed5[_0x27efea('0x2')](_0x1d3a82),_0x120ed5['set'](_0x27efea('0x2d'),_0x578f50+'-'+_0x2661ba+'/'+_0x1cf668)[_0x27efea('0x0')](_0x26b613);}return null;};}function saveUpdates(_0x250fd7){return function(_0x120409){const _0x292caa=a678_0x4351;if(_0x120409)return _0x120409[_0x292caa('0x15')](_0x250fd7)[_0x292caa('0x1b')](function(_0x1098e7){return _0x1098e7;});return null;};}function removeEntity(_0x18018c){return function(_0x125a16){const _0x56b5b0=a678_0x4351;if(_0x125a16)return _0x125a16[_0x56b5b0('0x27')]()[_0x56b5b0('0x1b')](function(){_0x18018c['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x26395b){return function(_0x4f03b7){return!_0x4f03b7&&_0x26395b['sendStatus'](0x194),_0x4f03b7;};}function handleError(_0x247d31,_0x3143c7){return _0x3143c7=_0x3143c7||0x1f4,function(_0x472b8c){const _0x535818=a678_0x4351;logger[_0x535818('0x4')](_0x472b8c[_0x535818('0x5')]),_0x472b8c[_0x535818('0x32')]&&delete _0x472b8c['name'],_0x247d31['status'](_0x3143c7)['send'](_0x472b8c);};}exports[_0x493dba('0x3')]=function(_0x312cc4,_0x452410){const _0x392f6b=_0x493dba;let _0x31e218={};const _0x39eb3c={},_0x3ba233={'count':0x0,'rows':[]},_0x429e74=_[_0x392f6b('0x1e')](db[_0x392f6b('0x1a')][_0x392f6b('0x10')],function(_0x3c36d6){const _0x4da9f6=_0x392f6b;return{'name':_0x3c36d6[_0x4da9f6('0x29')],'type':_0x3c36d6['type']['key']};});_0x39eb3c[_0x392f6b('0x1d')]=_[_0x392f6b('0x1e')](_0x429e74,_0x392f6b('0x32')),_0x39eb3c['query']=_[_0x392f6b('0x2a')](_0x312cc4[_0x392f6b('0x22')]),_0x39eb3c['filters']=_[_0x392f6b('0x20')](_0x39eb3c[_0x392f6b('0x1d')],_0x39eb3c['query']),_0x31e218[_0x392f6b('0x9')]=_[_0x392f6b('0x20')](_0x39eb3c[_0x392f6b('0x1d')],qs[_0x392f6b('0x1c')](_0x312cc4[_0x392f6b('0x22')][_0x392f6b('0x1c')])),_0x31e218['attributes']=_0x31e218[_0x392f6b('0x9')][_0x392f6b('0x21')]?_0x31e218[_0x392f6b('0x9')]:_0x39eb3c[_0x392f6b('0x1d')];typeof _0x312cc4[_0x392f6b('0x22')][_0x392f6b('0x6')]==='undefined'&&(_0x31e218[_0x392f6b('0x18')]=qs['limit'](_0x312cc4[_0x392f6b('0x22')][_0x392f6b('0x18')]),_0x31e218['offset']=qs[_0x392f6b('0xd')](_0x312cc4[_0x392f6b('0x22')][_0x392f6b('0xd')]));_0x31e218[_0x392f6b('0x23')]=qs['sort'](_0x312cc4['query'][_0x392f6b('0x30')]),_0x31e218[_0x392f6b('0x11')]=qs[_0x392f6b('0x25')](_[_0x392f6b('0xc')](_0x312cc4[_0x392f6b('0x22')],_0x39eb3c[_0x392f6b('0x25')]),_0x429e74);_0x312cc4[_0x392f6b('0x22')][_0x392f6b('0x2b')]&&(_0x31e218[_0x392f6b('0x11')]=_[_0x392f6b('0x26')](_0x31e218[_0x392f6b('0x11')],{[Op['or']]:_[_0x392f6b('0x1e')](_0x429e74,function(_0x1add58){const _0x5b9ade=_0x392f6b;if(_0x1add58[_0x5b9ade('0xa')]!==_0x5b9ade('0x16')){const _0x11903f={};return _0x11903f[_0x1add58['name']]={[Op[_0x5b9ade('0x28')]]:'%'+_0x312cc4[_0x5b9ade('0x22')][_0x5b9ade('0x2b')]+'%'},_0x11903f;}})}));_0x31e218=_[_0x392f6b('0x26')]({},_0x31e218,_0x312cc4[_0x392f6b('0x17')]);const _0x34046a={'where':_0x31e218[_0x392f6b('0x11')]};return db[_0x392f6b('0x1a')][_0x392f6b('0x1')](_0x34046a)[_0x392f6b('0x1b')](function(_0x3d9415){const _0x4b450d=_0x392f6b;return _0x3ba233[_0x4b450d('0x1')]=_0x3d9415,_0x312cc4[_0x4b450d('0x22')][_0x4b450d('0x2e')]&&(_0x31e218[_0x4b450d('0x8')]=[{'all':!![]}]),db[_0x4b450d('0x1a')]['findAll'](_0x31e218);})[_0x392f6b('0x1b')](function(_0x53f05e){const _0x15af1c=_0x392f6b;return _0x3ba233[_0x15af1c('0x31')]=_0x53f05e,_0x3ba233;})[_0x392f6b('0x1b')](respondWithFilteredResult(_0x452410,_0x31e218))['catch'](handleError(_0x452410,null));},exports[_0x493dba('0x13')]=function(_0x12a100,_0x1a93fb){const _0x1a4d75=_0x493dba;let _0x3d588d={'raw':![],'where':{'id':_0x12a100[_0x1a4d75('0x1f')]['id']}};const _0x185228={};return _0x185228[_0x1a4d75('0x1d')]=_['keys'](db[_0x1a4d75('0x1a')][_0x1a4d75('0x10')]),_0x185228[_0x1a4d75('0x22')]=_[_0x1a4d75('0x2a')](_0x12a100[_0x1a4d75('0x22')]),_0x185228[_0x1a4d75('0x25')]=_[_0x1a4d75('0x20')](_0x185228[_0x1a4d75('0x1d')],_0x185228[_0x1a4d75('0x22')]),_0x3d588d[_0x1a4d75('0x9')]=_[_0x1a4d75('0x20')](_0x185228[_0x1a4d75('0x1d')],qs[_0x1a4d75('0x1c')](_0x12a100['query'][_0x1a4d75('0x1c')])),_0x3d588d[_0x1a4d75('0x9')]=_0x3d588d[_0x1a4d75('0x9')][_0x1a4d75('0x21')]?_0x3d588d['attributes']:_0x185228[_0x1a4d75('0x1d')],_0x12a100[_0x1a4d75('0x22')][_0x1a4d75('0x2e')]&&(_0x3d588d['include']=[{'all':!![]}]),_0x3d588d=_[_0x1a4d75('0x26')]({},_0x3d588d,_0x12a100[_0x1a4d75('0x17')]),db['UserProfileSection'][_0x1a4d75('0x2c')](_0x3d588d)[_0x1a4d75('0x1b')](handleEntityNotFound(_0x1a93fb,null))[_0x1a4d75('0x1b')](respondWithResult(_0x1a93fb,null))['catch'](handleError(_0x1a93fb,null));},exports[_0x493dba('0xf')]=function(_0x427c9a,_0x280ca9){const _0x5df360=_0x493dba;return db['UserProfileSection'][_0x5df360('0xf')](_0x427c9a[_0x5df360('0x24')],{})[_0x5df360('0x1b')](respondWithResult(_0x280ca9,0xc9))['catch'](handleError(_0x280ca9,null));},exports[_0x493dba('0x15')]=function(_0x5f5354,_0x16937a){const _0x103ebf=_0x493dba;return _0x5f5354['body']['id']&&delete _0x5f5354[_0x103ebf('0x24')]['id'],db[_0x103ebf('0x1a')][_0x103ebf('0x2c')]({'where':{'id':_0x5f5354['params']['id']}})['then'](handleEntityNotFound(_0x16937a,null))[_0x103ebf('0x1b')](saveUpdates(_0x5f5354['body'],null))[_0x103ebf('0x1b')](respondWithResult(_0x16937a,null))[_0x103ebf('0xb')](handleError(_0x16937a,null));},exports[_0x493dba('0x27')]=function(_0x15d96a,_0x3eb00a){const _0x91385d=_0x493dba;return db['UserProfileSection'][_0x91385d('0x2c')]({'where':{'id':_0x15d96a[_0x91385d('0x1f')]['id']}})[_0x91385d('0x1b')](handleEntityNotFound(_0x3eb00a,null))[_0x91385d('0x1b')](removeEntity(_0x3eb00a,null))[_0x91385d('0xb')](handleError(_0x3eb00a,null));},exports[_0x493dba('0x12')]=function(_0x13aa6b,_0x865c4a){const _0x16a56a=_0x493dba;return db[_0x16a56a('0x1a')][_0x16a56a('0x12')]()[_0x16a56a('0x1b')](respondWithResult(_0x865c4a,null))['catch'](handleError(_0x865c4a,null));}; \ No newline at end of file +const a678_0x4dfb=['body','../../mysqldb','findAll','create','offset','fieldName','type','where','length','findOne','order','../../components/parsers/qs','status','attributes','rows','params','../../config/logger','undefined','sequelize','keys','query','Content-Range','end','json','pick','catch','then','model','intersection','show','map','filters','send','UserProfileSection','filter','describe','VIRTUAL','nolimit','destroy','lodash','rawAttributes','name','merge','options','sendStatus','fields','sort','includeAll','like','index','include','count','limit'];(function(_0x3560e1,_0x4dfb2d){const _0x2d2492=function(_0x2b4c56){while(--_0x2b4c56){_0x3560e1['push'](_0x3560e1['shift']());}};_0x2d2492(++_0x4dfb2d);}(a678_0x4dfb,0x15f));const a678_0x2d24=function(_0x3560e1,_0x4dfb2d){_0x3560e1=_0x3560e1-0x0;let _0x2d2492=a678_0x4dfb[_0x3560e1];return _0x2d2492;};const _0x533967=a678_0x2d24;'use strict';const _=require(_0x533967('0x6')),qs=require(_0x533967('0x1f')),logger=require(_0x533967('0x24'))('api'),db=require(_0x533967('0x15'))['db'],{Op}=require(_0x533967('0x26'));function respondWithResult(_0x2b4c56,_0x1422b0){return _0x1422b0=_0x1422b0||0xc8,function(_0x3a3962){const _0x2c3757=a678_0x2d24;if(_0x3a3962)return _0x2b4c56[_0x2c3757('0x20')](_0x1422b0)[_0x2c3757('0x2b')](_0x3a3962);};}function respondWithFilteredResult(_0x28fa30,_0x1b4811){return function(_0x3432ef){const _0x1042ee=a678_0x2d24;if(_0x3432ef){const _0x5bef25=_0x3432ef[_0x1042ee('0x12')],_0x47229c=_0x1b4811[_0x1042ee('0x18')];let _0x3f2dd6=_0x1b4811[_0x1042ee('0x18')]+_0x1b4811['limit'],_0x308831;return _0x3f2dd6>=_0x5bef25?(_0x3f2dd6=_0x5bef25,_0x308831=0xc8):_0x308831=0xce,_0x28fa30[_0x1042ee('0x20')](_0x308831),_0x28fa30['set'](_0x1042ee('0x29'),_0x47229c+'-'+_0x3f2dd6+'/'+_0x5bef25)[_0x1042ee('0x2b')](_0x3432ef);}return null;};}function saveUpdates(_0x18f54f){return function(_0x3996eb){const _0x146990=a678_0x2d24;if(_0x3996eb)return _0x3996eb['update'](_0x18f54f)[_0x146990('0x2e')](function(_0x45164a){return _0x45164a;});return null;};}function removeEntity(_0x5271d7){return function(_0x46744a){const _0x216246=a678_0x2d24;if(_0x46744a)return _0x46744a[_0x216246('0x5')]()[_0x216246('0x2e')](function(){const _0x534ee3=_0x216246;_0x5271d7[_0x534ee3('0x20')](0xcc)[_0x534ee3('0x2a')]();});};}function handleEntityNotFound(_0x3f785d){return function(_0x20b058){const _0x378822=a678_0x2d24;return!_0x20b058&&_0x3f785d[_0x378822('0xb')](0x194),_0x20b058;};}function handleError(_0x3c3b5d,_0x16684d){return _0x16684d=_0x16684d||0x1f4,function(_0x3e9244){const _0x1ad4e3=a678_0x2d24;logger['error'](_0x3e9244['stack']),_0x3e9244[_0x1ad4e3('0x8')]&&delete _0x3e9244['name'],_0x3c3b5d['status'](_0x16684d)[_0x1ad4e3('0x34')](_0x3e9244);};}exports[_0x533967('0x10')]=function(_0x5531b5,_0x5f01fe){const _0x38233a=_0x533967;let _0x52d8e4={};const _0x2b430f={},_0x4c79c6={'count':0x0,'rows':[]},_0x3cc757=_[_0x38233a('0x32')](db[_0x38233a('0x0')][_0x38233a('0x7')],function(_0x2e8c03){const _0x46c16f=_0x38233a;return{'name':_0x2e8c03[_0x46c16f('0x19')],'type':_0x2e8c03[_0x46c16f('0x1a')]['key']};});_0x2b430f['model']=_['map'](_0x3cc757,_0x38233a('0x8')),_0x2b430f[_0x38233a('0x28')]=_[_0x38233a('0x27')](_0x5531b5[_0x38233a('0x28')]),_0x2b430f[_0x38233a('0x33')]=_[_0x38233a('0x30')](_0x2b430f['model'],_0x2b430f[_0x38233a('0x28')]),_0x52d8e4[_0x38233a('0x21')]=_[_0x38233a('0x30')](_0x2b430f[_0x38233a('0x2f')],qs['fields'](_0x5531b5[_0x38233a('0x28')][_0x38233a('0xc')])),_0x52d8e4[_0x38233a('0x21')]=_0x52d8e4[_0x38233a('0x21')][_0x38233a('0x1c')]?_0x52d8e4[_0x38233a('0x21')]:_0x2b430f[_0x38233a('0x2f')];typeof _0x5531b5[_0x38233a('0x28')][_0x38233a('0x4')]===_0x38233a('0x25')&&(_0x52d8e4[_0x38233a('0x13')]=qs[_0x38233a('0x13')](_0x5531b5[_0x38233a('0x28')][_0x38233a('0x13')]),_0x52d8e4[_0x38233a('0x18')]=qs[_0x38233a('0x18')](_0x5531b5['query'][_0x38233a('0x18')]));_0x52d8e4[_0x38233a('0x1e')]=qs[_0x38233a('0xd')](_0x5531b5[_0x38233a('0x28')]['sort']),_0x52d8e4['where']=qs[_0x38233a('0x33')](_[_0x38233a('0x2c')](_0x5531b5['query'],_0x2b430f[_0x38233a('0x33')]),_0x3cc757);_0x5531b5[_0x38233a('0x28')][_0x38233a('0x1')]&&(_0x52d8e4['where']=_[_0x38233a('0x9')](_0x52d8e4[_0x38233a('0x1b')],{[Op['or']]:_[_0x38233a('0x32')](_0x3cc757,function(_0x5617ad){const _0x4e5669=_0x38233a;if(_0x5617ad['type']!==_0x4e5669('0x3')){const _0x211e00={};return _0x211e00[_0x5617ad['name']]={[Op[_0x4e5669('0xf')]]:'%'+_0x5531b5[_0x4e5669('0x28')]['filter']+'%'},_0x211e00;}})}));_0x52d8e4=_['merge']({},_0x52d8e4,_0x5531b5[_0x38233a('0xa')]);const _0x12fefc={'where':_0x52d8e4['where']};return db[_0x38233a('0x0')][_0x38233a('0x12')](_0x12fefc)[_0x38233a('0x2e')](function(_0x4a86d8){const _0x1d8b56=_0x38233a;return _0x4c79c6[_0x1d8b56('0x12')]=_0x4a86d8,_0x5531b5[_0x1d8b56('0x28')][_0x1d8b56('0xe')]&&(_0x52d8e4['include']=[{'all':!![]}]),db[_0x1d8b56('0x0')][_0x1d8b56('0x16')](_0x52d8e4);})['then'](function(_0x15baee){const _0x584f7d=_0x38233a;return _0x4c79c6[_0x584f7d('0x22')]=_0x15baee,_0x4c79c6;})[_0x38233a('0x2e')](respondWithFilteredResult(_0x5f01fe,_0x52d8e4))[_0x38233a('0x2d')](handleError(_0x5f01fe,null));},exports[_0x533967('0x31')]=function(_0x570506,_0x412048){const _0x382ca4=_0x533967;let _0x172b3b={'raw':![],'where':{'id':_0x570506[_0x382ca4('0x23')]['id']}};const _0x4bd19c={};return _0x4bd19c['model']=_[_0x382ca4('0x27')](db[_0x382ca4('0x0')][_0x382ca4('0x7')]),_0x4bd19c[_0x382ca4('0x28')]=_[_0x382ca4('0x27')](_0x570506[_0x382ca4('0x28')]),_0x4bd19c[_0x382ca4('0x33')]=_[_0x382ca4('0x30')](_0x4bd19c[_0x382ca4('0x2f')],_0x4bd19c[_0x382ca4('0x28')]),_0x172b3b[_0x382ca4('0x21')]=_[_0x382ca4('0x30')](_0x4bd19c[_0x382ca4('0x2f')],qs[_0x382ca4('0xc')](_0x570506['query']['fields'])),_0x172b3b[_0x382ca4('0x21')]=_0x172b3b[_0x382ca4('0x21')][_0x382ca4('0x1c')]?_0x172b3b[_0x382ca4('0x21')]:_0x4bd19c['model'],_0x570506[_0x382ca4('0x28')][_0x382ca4('0xe')]&&(_0x172b3b[_0x382ca4('0x11')]=[{'all':!![]}]),_0x172b3b=_[_0x382ca4('0x9')]({},_0x172b3b,_0x570506[_0x382ca4('0xa')]),db[_0x382ca4('0x0')][_0x382ca4('0x1d')](_0x172b3b)[_0x382ca4('0x2e')](handleEntityNotFound(_0x412048,null))[_0x382ca4('0x2e')](respondWithResult(_0x412048,null))[_0x382ca4('0x2d')](handleError(_0x412048,null));},exports[_0x533967('0x17')]=function(_0x9aca63,_0x59f6e7){const _0x5d90a4=_0x533967;return db[_0x5d90a4('0x0')][_0x5d90a4('0x17')](_0x9aca63[_0x5d90a4('0x14')],{})[_0x5d90a4('0x2e')](respondWithResult(_0x59f6e7,0xc9))[_0x5d90a4('0x2d')](handleError(_0x59f6e7,null));},exports['update']=function(_0x551c07,_0x15e667){const _0x51f5dc=_0x533967;return _0x551c07[_0x51f5dc('0x14')]['id']&&delete _0x551c07['body']['id'],db['UserProfileSection'][_0x51f5dc('0x1d')]({'where':{'id':_0x551c07[_0x51f5dc('0x23')]['id']}})[_0x51f5dc('0x2e')](handleEntityNotFound(_0x15e667,null))[_0x51f5dc('0x2e')](saveUpdates(_0x551c07['body'],null))['then'](respondWithResult(_0x15e667,null))[_0x51f5dc('0x2d')](handleError(_0x15e667,null));},exports[_0x533967('0x5')]=function(_0x27ba10,_0x480678){const _0x5593bf=_0x533967;return db['UserProfileSection']['findOne']({'where':{'id':_0x27ba10[_0x5593bf('0x23')]['id']}})['then'](handleEntityNotFound(_0x480678,null))[_0x5593bf('0x2e')](removeEntity(_0x480678,null))[_0x5593bf('0x2d')](handleError(_0x480678,null));},exports['describe']=function(_0x4a93e2,_0x16e23b){const _0xa038eb=_0x533967;return db['UserProfileSection'][_0xa038eb('0x2')]()[_0xa038eb('0x2e')](respondWithResult(_0x16e23b,null))['catch'](handleError(_0x16e23b,null));}; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.model.js b/server/api/userProfileSection/userProfileSection.model.js index 34dae65..fbd549c 100644 --- a/server/api/userProfileSection/userProfileSection.model.js +++ b/server/api/userProfileSection/userProfileSection.model.js @@ -1 +1 @@ -const a679_0x15ac=['define','./userProfileSection.attributes','sectionId','userProfileId','exports','user_profile_has_sections','compositeIndex'];(function(_0x465ef5,_0x15ac43){const _0x5731b3=function(_0x394f9b){while(--_0x394f9b){_0x465ef5['push'](_0x465ef5['shift']());}};_0x5731b3(++_0x15ac43);}(a679_0x15ac,0x1ce));const a679_0x5731=function(_0x465ef5,_0x15ac43){_0x465ef5=_0x465ef5-0x0;let _0x5731b3=a679_0x15ac[_0x465ef5];return _0x5731b3;};const _0x9213d7=a679_0x5731;'use strict';const attributes=require(_0x9213d7('0x1'));module[_0x9213d7('0x4')]=function(_0x394f9b){const _0x54f18f=_0x9213d7,_0x32c6ca=_0x394f9b[_0x54f18f('0x0')]('UserProfileSection',attributes,{'tableName':_0x54f18f('0x5'),'paranoid':![],'indexes':[{'name':_0x54f18f('0x6'),'fields':[_0x54f18f('0x2'),_0x54f18f('0x3')]}],'timestamps':!![]});return _0x32c6ca;}; \ No newline at end of file +const a679_0x1d30=['user_profile_has_sections','define','sectionId','UserProfileSection','compositeIndex','exports'];(function(_0x465b12,_0x1d30f9){const _0x498c6d=function(_0x5a4556){while(--_0x5a4556){_0x465b12['push'](_0x465b12['shift']());}};_0x498c6d(++_0x1d30f9);}(a679_0x1d30,0x1d9));const a679_0x498c=function(_0x465b12,_0x1d30f9){_0x465b12=_0x465b12-0x0;let _0x498c6d=a679_0x1d30[_0x465b12];return _0x498c6d;};const _0x3b1a20=a679_0x498c;'use strict';const attributes=require('./userProfileSection.attributes');module[_0x3b1a20('0x0')]=function(_0x5a4556){const _0x3831ba=_0x3b1a20,_0x54eb07=_0x5a4556[_0x3831ba('0x2')](_0x3831ba('0x4'),attributes,{'tableName':_0x3831ba('0x1'),'paranoid':![],'indexes':[{'name':_0x3831ba('0x5'),'fields':[_0x3831ba('0x3'),'userProfileId']}],'timestamps':!![]});return _0x54eb07;}; \ No newline at end of file diff --git a/server/api/userSmsQueue/index.js b/server/api/userSmsQueue/index.js index 4988a24..ad12aee 100644 --- a/server/api/userSmsQueue/index.js +++ b/server/api/userSmsQueue/index.js @@ -1 +1 @@ -const a680_0x1334=['express','Router','exports'];(function(_0x1b413f,_0x133484){const _0x2d8f7e=function(_0x197c9a){while(--_0x197c9a){_0x1b413f['push'](_0x1b413f['shift']());}};_0x2d8f7e(++_0x133484);}(a680_0x1334,0x1cd));const a680_0x2d8f=function(_0x1b413f,_0x133484){_0x1b413f=_0x1b413f-0x0;let _0x2d8f7e=a680_0x1334[_0x1b413f];return _0x2d8f7e;};const _0xee099d=a680_0x2d8f;'use strict';const express=require(_0xee099d('0x1')),router=express[_0xee099d('0x2')]();module[_0xee099d('0x0')]=router; \ No newline at end of file +const a680_0x211a=['express','Router','exports'];(function(_0x3febab,_0x211a2f){const _0x3f5705=function(_0x350e8b){while(--_0x350e8b){_0x3febab['push'](_0x3febab['shift']());}};_0x3f5705(++_0x211a2f);}(a680_0x211a,0xe4));const a680_0x3f57=function(_0x3febab,_0x211a2f){_0x3febab=_0x3febab-0x0;let _0x3f5705=a680_0x211a[_0x3febab];return _0x3f5705;};const _0x13bf45=a680_0x3f57;'use strict';const express=require(_0x13bf45('0x0')),router=express[_0x13bf45('0x1')]();module[_0x13bf45('0x2')]=router; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.attributes.js b/server/api/userSmsQueue/userSmsQueue.attributes.js index eaac50b..4b90411 100644 --- a/server/api/userSmsQueue/userSmsQueue.attributes.js +++ b/server/api/userSmsQueue/userSmsQueue.attributes.js @@ -1 +1 @@ -'use strict';const Sequelize=require('sequelize');module['exports']={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a681_0x5e19=['INTEGER','sequelize','exports'];(function(_0x5ceb08,_0x5e1979){const _0x282c6b=function(_0x47174f){while(--_0x47174f){_0x5ceb08['push'](_0x5ceb08['shift']());}};_0x282c6b(++_0x5e1979);}(a681_0x5e19,0x1c8));const a681_0x282c=function(_0x5ceb08,_0x5e1979){_0x5ceb08=_0x5ceb08-0x0;let _0x282c6b=a681_0x5e19[_0x5ceb08];return _0x282c6b;};const _0x1b6b11=a681_0x282c;'use strict';const Sequelize=require(_0x1b6b11('0x1'));module[_0x1b6b11('0x2')]={'penalty':{'type':Sequelize[_0x1b6b11('0x0')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.model.js b/server/api/userSmsQueue/userSmsQueue.model.js index 111a656..4a66511 100644 --- a/server/api/userSmsQueue/userSmsQueue.model.js +++ b/server/api/userSmsQueue/userSmsQueue.model.js @@ -1 +1 @@ -const a682_0x2083=['exports','UserSmsQueue','define','user_has_sms_queues','./userSmsQueue.attributes'];(function(_0x190662,_0x20836d){const _0x21c04b=function(_0x5ac910){while(--_0x5ac910){_0x190662['push'](_0x190662['shift']());}};_0x21c04b(++_0x20836d);}(a682_0x2083,0x17a));const a682_0x21c0=function(_0x190662,_0x20836d){_0x190662=_0x190662-0x0;let _0x21c04b=a682_0x2083[_0x190662];return _0x21c04b;};const _0x17dad3=a682_0x21c0;'use strict';const attributes=require(_0x17dad3('0x1'));module[_0x17dad3('0x2')]=function(_0x5ac910){const _0xa5029f=_0x17dad3,_0x9f74e0=_0x5ac910[_0xa5029f('0x4')](_0xa5029f('0x3'),attributes,{'tableName':_0xa5029f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x9f74e0;}; \ No newline at end of file +const a682_0x55f6=['define','UserSmsQueue','./userSmsQueue.attributes','user_has_sms_queues','exports'];(function(_0x1dcead,_0x55f608){const _0x48f3a3=function(_0x295d1e){while(--_0x295d1e){_0x1dcead['push'](_0x1dcead['shift']());}};_0x48f3a3(++_0x55f608);}(a682_0x55f6,0xc8));const a682_0x48f3=function(_0x1dcead,_0x55f608){_0x1dcead=_0x1dcead-0x0;let _0x48f3a3=a682_0x55f6[_0x1dcead];return _0x48f3a3;};const _0x510e38=a682_0x48f3;'use strict';const attributes=require(_0x510e38('0x2'));module[_0x510e38('0x4')]=function(_0x295d1e){const _0x49454a=_0x510e38,_0x57e8a3=_0x295d1e[_0x49454a('0x0')](_0x49454a('0x1'),attributes,{'tableName':_0x49454a('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x57e8a3;}; \ No newline at end of file diff --git a/server/api/userVoiceQueue/index.js b/server/api/userVoiceQueue/index.js index 60d95dd..112f87b 100644 --- a/server/api/userVoiceQueue/index.js +++ b/server/api/userVoiceQueue/index.js @@ -1 +1 @@ -const a683_0x2537=['express'];(function(_0x477ada,_0x2537ff){const _0x5ccd15=function(_0x42ae25){while(--_0x42ae25){_0x477ada['push'](_0x477ada['shift']());}};_0x5ccd15(++_0x2537ff);}(a683_0x2537,0x128));const a683_0x5ccd=function(_0x477ada,_0x2537ff){_0x477ada=_0x477ada-0x0;let _0x5ccd15=a683_0x2537[_0x477ada];return _0x5ccd15;};const _0x5ebeb5=a683_0x5ccd;'use strict';const express=require(_0x5ebeb5('0x0')),router=express['Router']();module['exports']=router; \ No newline at end of file +const a683_0x29b3=['Router','express'];(function(_0x34e10c,_0x29b374){const _0x4bc975=function(_0x9958b1){while(--_0x9958b1){_0x34e10c['push'](_0x34e10c['shift']());}};_0x4bc975(++_0x29b374);}(a683_0x29b3,0x11e));const a683_0x4bc9=function(_0x34e10c,_0x29b374){_0x34e10c=_0x34e10c-0x0;let _0x4bc975=a683_0x29b3[_0x34e10c];return _0x4bc975;};const _0x3677d1=a683_0x4bc9;'use strict';const express=require(_0x3677d1('0x1')),router=express[_0x3677d1('0x0')]();module['exports']=router; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.attributes.js b/server/api/userVoiceQueue/userVoiceQueue.attributes.js index 97dcaab..88e12fe 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.attributes.js +++ b/server/api/userVoiceQueue/userVoiceQueue.attributes.js @@ -1 +1 @@ -const a684_0x39f6=['INTEGER','sequelize'];(function(_0x5d1a90,_0x39f60b){const _0x2c5067=function(_0x703355){while(--_0x703355){_0x5d1a90['push'](_0x5d1a90['shift']());}};_0x2c5067(++_0x39f60b);}(a684_0x39f6,0x15d));const a684_0x2c50=function(_0x5d1a90,_0x39f60b){_0x5d1a90=_0x5d1a90-0x0;let _0x2c5067=a684_0x39f6[_0x5d1a90];return _0x2c5067;};const _0x40183c=a684_0x2c50;'use strict';const Sequelize=require(_0x40183c('0x0'));module['exports']={'penalty':{'type':Sequelize[_0x40183c('0x1')],'defaultValue':0x0}}; \ No newline at end of file +const a684_0x364a=['exports','sequelize'];(function(_0x1e1a78,_0x364a92){const _0xc9ec9e=function(_0x3e8aa3){while(--_0x3e8aa3){_0x1e1a78['push'](_0x1e1a78['shift']());}};_0xc9ec9e(++_0x364a92);}(a684_0x364a,0x1c9));const a684_0xc9ec=function(_0x1e1a78,_0x364a92){_0x1e1a78=_0x1e1a78-0x0;let _0xc9ec9e=a684_0x364a[_0x1e1a78];return _0xc9ec9e;};const _0x1bcda3=a684_0xc9ec;'use strict';const Sequelize=require(_0x1bcda3('0x0'));module[_0x1bcda3('0x1')]={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.model.js b/server/api/userVoiceQueue/userVoiceQueue.model.js index df3e80f..0ba00dd 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.model.js +++ b/server/api/userVoiceQueue/userVoiceQueue.model.js @@ -1 +1 @@ -const a685_0x2456=['UserVoiceQueue','user_has_voice_queues','define','exports','./userVoiceQueue.attributes'];(function(_0x43c040,_0x2456a2){const _0xfc7e86=function(_0x1a9eab){while(--_0x1a9eab){_0x43c040['push'](_0x43c040['shift']());}};_0xfc7e86(++_0x2456a2);}(a685_0x2456,0xec));const a685_0xfc7e=function(_0x43c040,_0x2456a2){_0x43c040=_0x43c040-0x0;let _0xfc7e86=a685_0x2456[_0x43c040];return _0xfc7e86;};const _0x257bbc=a685_0xfc7e;'use strict';const attributes=require(_0x257bbc('0x3'));module[_0x257bbc('0x2')]=function(_0x1a9eab){const _0x4c22a9=_0x257bbc,_0x3819a5=_0x1a9eab[_0x4c22a9('0x1')](_0x4c22a9('0x4'),attributes,{'tableName':_0x4c22a9('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3819a5;}; \ No newline at end of file +const a685_0x1083=['./userVoiceQueue.attributes','user_has_voice_queues'];(function(_0x529c7e,_0x108345){const _0x35e4c0=function(_0x2e5553){while(--_0x2e5553){_0x529c7e['push'](_0x529c7e['shift']());}};_0x35e4c0(++_0x108345);}(a685_0x1083,0xf3));const a685_0x35e4=function(_0x529c7e,_0x108345){_0x529c7e=_0x529c7e-0x0;let _0x35e4c0=a685_0x1083[_0x529c7e];return _0x35e4c0;};const _0x3e4960=a685_0x35e4;'use strict';const attributes=require(_0x3e4960('0x1'));module['exports']=function(_0x2e5553){const _0x37a2c8=_0x3e4960,_0x22f76b=_0x2e5553['define']('UserVoiceQueue',attributes,{'tableName':_0x37a2c8('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x22f76b;}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/index.js b/server/api/userVoiceQueueRt/index.js index fe23d12..e178c7b 100644 --- a/server/api/userVoiceQueueRt/index.js +++ b/server/api/userVoiceQueueRt/index.js @@ -1 +1 @@ -const a686_0x148e=['Router','express','exports'];(function(_0x3f5a75,_0x148e00){const _0x61d172=function(_0x419b63){while(--_0x419b63){_0x3f5a75['push'](_0x3f5a75['shift']());}};_0x61d172(++_0x148e00);}(a686_0x148e,0x1a2));const a686_0x61d1=function(_0x3f5a75,_0x148e00){_0x3f5a75=_0x3f5a75-0x0;let _0x61d172=a686_0x148e[_0x3f5a75];return _0x61d172;};const _0x44e315=a686_0x61d1;'use strict';const express=require(_0x44e315('0x0')),router=express[_0x44e315('0x2')]();module[_0x44e315('0x1')]=router; \ No newline at end of file +const a686_0x1458=['Router','express'];(function(_0x200ac8,_0x145877){const _0x9e7625=function(_0x341f66){while(--_0x341f66){_0x200ac8['push'](_0x200ac8['shift']());}};_0x9e7625(++_0x145877);}(a686_0x1458,0xcf));const a686_0x9e76=function(_0x200ac8,_0x145877){_0x200ac8=_0x200ac8-0x0;let _0x9e7625=a686_0x1458[_0x200ac8];return _0x9e7625;};const _0x198179=a686_0x9e76;'use strict';const express=require(_0x198179('0x0')),router=express[_0x198179('0x1')]();module['exports']=router; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js index 055e94e..998d61d 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js @@ -1 +1 @@ -const a687_0x1627=['exports','queue_interface','INTEGER','STRING','Required\x20by\x20Asterisk'];(function(_0x3d0caf,_0x1627ff){const _0xf06f96=function(_0x525080){while(--_0x525080){_0x3d0caf['push'](_0x3d0caf['shift']());}};_0xf06f96(++_0x1627ff);}(a687_0x1627,0x1d9));const a687_0xf06f=function(_0x3d0caf,_0x1627ff){_0x3d0caf=_0x3d0caf-0x0;let _0xf06f96=a687_0x1627[_0x3d0caf];return _0xf06f96;};const _0x1fefc9=a687_0xf06f;'use strict';const Sequelize=require('sequelize');module[_0x1fefc9('0x2')]={'uniqueid':{'type':Sequelize[_0x1fefc9('0x4')],'primaryKey':!![],'autoIncrement':!![],'comment':_0x1fefc9('0x1')},'membername':{'type':Sequelize[_0x1fefc9('0x0')],'allowNull':![],'comment':_0x1fefc9('0x1')},'UserId':{'type':Sequelize[_0x1fefc9('0x4')],'allowNull':![]},'queue_name':{'type':Sequelize[_0x1fefc9('0x0')],'allowNull':![],'unique':'queue_interface','comment':_0x1fefc9('0x1')},'VoiceQueueId':{'type':Sequelize[_0x1fefc9('0x4')],'allowNull':![]},'interface':{'type':Sequelize[_0x1fefc9('0x0')],'allowNull':![],'unique':_0x1fefc9('0x3'),'comment':_0x1fefc9('0x1')},'penalty':{'type':Sequelize[_0x1fefc9('0x4')](0xb),'defaultValue':0x0,'comment':_0x1fefc9('0x1')},'paused':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0,'comment':_0x1fefc9('0x1')}}; \ No newline at end of file +const a687_0x11c7=['STRING','Required\x20by\x20Asterisk','INTEGER','sequelize','exports','queue_interface'];(function(_0x40125a,_0x11c7d2){const _0x12b3cb=function(_0x1c2082){while(--_0x1c2082){_0x40125a['push'](_0x40125a['shift']());}};_0x12b3cb(++_0x11c7d2);}(a687_0x11c7,0x1a0));const a687_0x12b3=function(_0x40125a,_0x11c7d2){_0x40125a=_0x40125a-0x0;let _0x12b3cb=a687_0x11c7[_0x40125a];return _0x12b3cb;};const _0x49015c=a687_0x12b3;'use strict';const Sequelize=require(_0x49015c('0x1'));module[_0x49015c('0x2')]={'uniqueid':{'type':Sequelize[_0x49015c('0x0')],'primaryKey':!![],'autoIncrement':!![],'comment':_0x49015c('0x5')},'membername':{'type':Sequelize[_0x49015c('0x4')],'allowNull':![],'comment':_0x49015c('0x5')},'UserId':{'type':Sequelize['INTEGER'],'allowNull':![]},'queue_name':{'type':Sequelize[_0x49015c('0x4')],'allowNull':![],'unique':_0x49015c('0x3'),'comment':_0x49015c('0x5')},'VoiceQueueId':{'type':Sequelize[_0x49015c('0x0')],'allowNull':![]},'interface':{'type':Sequelize[_0x49015c('0x4')],'allowNull':![],'unique':_0x49015c('0x3'),'comment':_0x49015c('0x5')},'penalty':{'type':Sequelize[_0x49015c('0x0')](0xb),'defaultValue':0x0,'comment':_0x49015c('0x5')},'paused':{'type':Sequelize[_0x49015c('0x0')](0xb),'defaultValue':0x0,'comment':_0x49015c('0x5')}}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js index d86a657..a4c5ae0 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js @@ -1 +1 @@ -const a688_0x5a5e=['setMaxListeners','remove','update','emit','undefined','events','addHook','exports','../../mysqldb'];(function(_0x44c610,_0x5a5ec0){const _0x27ffd2=function(_0x15c93b){while(--_0x15c93b){_0x44c610['push'](_0x44c610['shift']());}};_0x27ffd2(++_0x5a5ec0);}(a688_0x5a5e,0xc7));const a688_0x27ff=function(_0x44c610,_0x5a5ec0){_0x44c610=_0x44c610-0x0;let _0x27ffd2=a688_0x5a5e[_0x44c610];return _0x27ffd2;};const _0x4af051=a688_0x27ff;'use strict';const EventEmitter=require(_0x4af051('0x4')),UserVoiceQueueRt=require(_0x4af051('0x7'))['db']['UserVoiceQueueRt'],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0x4af051('0x8')](0x0);const events={'afterCreate':'save','afterUpdate':_0x4af051('0x1'),'afterDestroy':_0x4af051('0x0')};function emitEvent(_0x15c93b){return function(_0x4a24c1){const _0x1b4408=a688_0x27ff;UserVoiceQueueRtEvents['emit'](_0x15c93b+':'+_0x4a24c1['id'],_0x4a24c1),UserVoiceQueueRtEvents[_0x1b4408('0x2')](_0x15c93b,_0x4a24c1);};}for(const e in events){if(typeof events[e]!==_0x4af051('0x3')){const event=events[e];UserVoiceQueueRt[_0x4af051('0x5')](e,emitEvent(event));}}module[_0x4af051('0x6')]=UserVoiceQueueRtEvents; \ No newline at end of file +const a688_0x49ca=['save','emit','UserVoiceQueueRt','exports','events','undefined','addHook','remove','../../mysqldb'];(function(_0x56747e,_0x49ca02){const _0x929875=function(_0x38982e){while(--_0x38982e){_0x56747e['push'](_0x56747e['shift']());}};_0x929875(++_0x49ca02);}(a688_0x49ca,0xd5));const a688_0x9298=function(_0x56747e,_0x49ca02){_0x56747e=_0x56747e-0x0;let _0x929875=a688_0x49ca[_0x56747e];return _0x929875;};const _0x12dea4=a688_0x9298;'use strict';const EventEmitter=require(_0x12dea4('0x7')),UserVoiceQueueRt=require(_0x12dea4('0x2'))['db'][_0x12dea4('0x5')],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x12dea4('0x3'),'afterUpdate':'update','afterDestroy':_0x12dea4('0x1')};function emitEvent(_0x38982e){return function(_0x122b32){const _0x186ba4=a688_0x9298;UserVoiceQueueRtEvents[_0x186ba4('0x4')](_0x38982e+':'+_0x122b32['id'],_0x122b32),UserVoiceQueueRtEvents[_0x186ba4('0x4')](_0x38982e,_0x122b32);};}for(const e in events){if(typeof events[e]!==_0x12dea4('0x8')){const event=events[e];UserVoiceQueueRt[_0x12dea4('0x0')](e,emitEvent(event));}}module[_0x12dea4('0x6')]=UserVoiceQueueRtEvents; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js index c61929b..c8dba9c 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js @@ -1 +1 @@ -const a689_0x5452=['UserVoiceQueueRt','exports','define','user_has_voice_queues_rt'];(function(_0x1df44c,_0x54522e){const _0x552666=function(_0x17d9bb){while(--_0x17d9bb){_0x1df44c['push'](_0x1df44c['shift']());}};_0x552666(++_0x54522e);}(a689_0x5452,0xaa));const a689_0x5526=function(_0x1df44c,_0x54522e){_0x1df44c=_0x1df44c-0x0;let _0x552666=a689_0x5452[_0x1df44c];return _0x552666;};const _0x3ccd3f=a689_0x5526;'use strict';const attributes=require('./userVoiceQueueRt.attributes');module[_0x3ccd3f('0x3')]=function(_0x17d9bb){const _0x264450=_0x3ccd3f,_0x786c=_0x17d9bb[_0x264450('0x0')](_0x264450('0x2'),attributes,{'tableName':_0x264450('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x786c;}; \ No newline at end of file +const a689_0x4019=['user_has_voice_queues_rt','./userVoiceQueueRt.attributes','exports'];(function(_0xb52719,_0x4019db){const _0x4bcac9=function(_0x17dd86){while(--_0x17dd86){_0xb52719['push'](_0xb52719['shift']());}};_0x4bcac9(++_0x4019db);}(a689_0x4019,0xc8));const a689_0x4bca=function(_0xb52719,_0x4019db){_0xb52719=_0xb52719-0x0;let _0x4bcac9=a689_0x4019[_0xb52719];return _0x4bcac9;};const _0x47e48c=a689_0x4bca;'use strict';const attributes=require(_0x47e48c('0x2'));module[_0x47e48c('0x0')]=function(_0x17dd86){const _0x10b322=_0x47e48c,_0x466c57=_0x17dd86['define']('UserVoiceQueueRt',attributes,{'tableName':_0x10b322('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x466c57;}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js index cd197e9..85ea78c 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js @@ -1 +1 @@ -const a690_0x66a1=['then','rpc','../../config/logger','UserVoiceQueueRt','sequelize','register','../../rediscache','catch','GetVoiceQueueRtPauses','options','message','COUNT','info','`paused`\x20=\x201,\x201,\x20null','outboundQueuePauses','stringify','literal','error','./userVoiceQueueRt.socket'];(function(_0x378178,_0x66a1a8){const _0x931c97=function(_0xb39959){while(--_0xb39959){_0x378178['push'](_0x378178['shift']());}};_0x931c97(++_0x66a1a8);}(a690_0x66a1,0x194));const a690_0x931c=function(_0x378178,_0x66a1a8){_0x378178=_0x378178-0x0;let _0x931c97=a690_0x66a1[_0x378178];return _0x931c97;};const _0x5cad0b=a690_0x931c;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x5cad0b('0x10'))(_0x5cad0b('0xf')),{getSocket}=require(_0x5cad0b('0x1')),socket=getSocket();require(_0x5cad0b('0xd'))[_0x5cad0b('0x0')](socket),exports[_0x5cad0b('0x3')]=function(_0xb39959){const _0x398ae2=this;return new Promise(function(_0x237129,_0x283106){const _0x3683e8=a690_0x931c;return db[_0x3683e8('0x11')]['findAll']({'raw':_0xb39959[_0x3683e8('0x4')]?_0xb39959['options']['raw']===undefined?!![]:![]:!![],'where':_0xb39959[_0x3683e8('0x4')]?_0xb39959[_0x3683e8('0x4')]['where']||null:null,'attributes':[[db[_0x3683e8('0x12')]['fn'](_0x3683e8('0x6'),db['sequelize']['fn']('IF',db[_0x3683e8('0x12')][_0x3683e8('0xb')](_0x3683e8('0x8')))),_0x3683e8('0x9')]]})[_0x3683e8('0xe')](function(_0x4a5700){const _0x4a319c=_0x3683e8;logger[_0x4a319c('0x7')](_0x4a319c('0x3'),_0xb39959),logger['debug'](_0x4a319c('0x3'),_0xb39959,JSON[_0x4a319c('0xa')](_0x4a5700)),_0x237129(_0x4a5700);})[_0x3683e8('0x2')](function(_0x5cf81e){const _0x1a5b89=_0x3683e8;logger['error'](_0x1a5b89('0x3'),_0x5cf81e['message'],_0xb39959),_0x283106(_0x398ae2[_0x1a5b89('0xc')](0x1f4,_0x5cf81e[_0x1a5b89('0x5')]));});});}; \ No newline at end of file +const a690_0x4a1c=['outboundQueuePauses','findAll','../../mysqldb','raw','GetVoiceQueueRtPauses','error','message','register','debug','catch','sequelize','options','../../config/logger','literal','where','UserVoiceQueueRt','COUNT'];(function(_0x11dccb,_0x4a1c01){const _0x59eb1a=function(_0x3be0e1){while(--_0x3be0e1){_0x11dccb['push'](_0x11dccb['shift']());}};_0x59eb1a(++_0x4a1c01);}(a690_0x4a1c,0x75));const a690_0x59eb=function(_0x11dccb,_0x4a1c01){_0x11dccb=_0x11dccb-0x0;let _0x59eb1a=a690_0x4a1c[_0x11dccb];return _0x59eb1a;};const _0x1f249a=a690_0x59eb;'use strict';const db=require(_0x1f249a('0x4'))['db'],logger=require(_0x1f249a('0xe'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require('./userVoiceQueueRt.socket')[_0x1f249a('0x9')](socket),exports[_0x1f249a('0x6')]=function(_0x3be0e1){const _0x52d230=this;return new Promise(function(_0x46769f,_0x3d6f32){const _0x127bd3=a690_0x59eb;return db[_0x127bd3('0x0')][_0x127bd3('0x3')]({'raw':_0x3be0e1[_0x127bd3('0xd')]?_0x3be0e1[_0x127bd3('0xd')][_0x127bd3('0x5')]===undefined?!![]:![]:!![],'where':_0x3be0e1[_0x127bd3('0xd')]?_0x3be0e1[_0x127bd3('0xd')][_0x127bd3('0x10')]||null:null,'attributes':[[db[_0x127bd3('0xc')]['fn'](_0x127bd3('0x1'),db[_0x127bd3('0xc')]['fn']('IF',db['sequelize'][_0x127bd3('0xf')]('`paused`\x20=\x201,\x201,\x20null'))),_0x127bd3('0x2')]]})['then'](function(_0x325647){const _0x3f2954=_0x127bd3;logger['info'](_0x3f2954('0x6'),_0x3be0e1),logger[_0x3f2954('0xa')](_0x3f2954('0x6'),_0x3be0e1,JSON['stringify'](_0x325647)),_0x46769f(_0x325647);})[_0x127bd3('0xb')](function(_0x5b854e){const _0x238054=_0x127bd3;logger[_0x238054('0x7')](_0x238054('0x6'),_0x5b854e[_0x238054('0x8')],_0x3be0e1),_0x3d6f32(_0x52d230[_0x238054('0x7')](0x1f4,_0x5b854e['message']));});});}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js index d9d7cdf..af452c1 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js @@ -1 +1 @@ -const a691_0x1704=['length','emit','remove','userVoiceQueueRt:'];(function(_0x51a769,_0x1704ca){const _0x6b042e=function(_0x418175){while(--_0x418175){_0x51a769['push'](_0x51a769['shift']());}};_0x6b042e(++_0x1704ca);}(a691_0x1704,0x185));const a691_0x6b04=function(_0x51a769,_0x1704ca){_0x51a769=_0x51a769-0x0;let _0x6b042e=a691_0x1704[_0x51a769];return _0x6b042e;};const _0x78a9a=a691_0x6b04;'use strict';const UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events'),events=['save',_0x78a9a('0x1'),'update'];function createListener(_0x418175,_0x2b5034){return function(_0x2da54d){const _0x1feaa4=a691_0x6b04;_0x2b5034[_0x1feaa4('0x0')](_0x418175,_0x2da54d);};}exports['register']=function(_0x32c50b){const _0x58ac65=_0x78a9a;for(let _0x211cd3=0x0,_0x2ec646=events[_0x58ac65('0x3')];_0x211cd3<_0x2ec646;_0x211cd3++){const _0x19cc1e=events[_0x211cd3],_0x1c609d=createListener(_0x58ac65('0x2')+_0x19cc1e,_0x32c50b);UserVoiceQueueRtEvents['on'](_0x19cc1e,_0x1c609d);}}; \ No newline at end of file +const a691_0x5366=['register','remove','save','userVoiceQueueRt:','./userVoiceQueueRt.events','update'];(function(_0x5a2450,_0x536647){const _0x3c868f=function(_0x3911d3){while(--_0x3911d3){_0x5a2450['push'](_0x5a2450['shift']());}};_0x3c868f(++_0x536647);}(a691_0x5366,0x137));const a691_0x3c86=function(_0x5a2450,_0x536647){_0x5a2450=_0x5a2450-0x0;let _0x3c868f=a691_0x5366[_0x5a2450];return _0x3c868f;};const _0x40ce5a=a691_0x3c86;'use strict';const UserVoiceQueueRtEvents=require(_0x40ce5a('0x5')),events=[_0x40ce5a('0x3'),_0x40ce5a('0x2'),_0x40ce5a('0x0')];function createListener(_0x3911d3,_0xd78323){return function(_0x3ecff9){_0xd78323['emit'](_0x3911d3,_0x3ecff9);};}exports[_0x40ce5a('0x1')]=function(_0x1cc8d4){const _0x5db15d=_0x40ce5a;for(let _0x3d580a=0x0,_0x12b623=events['length'];_0x3d580a<_0x12b623;_0x3d580a++){const _0x37725b=events[_0x3d580a],_0x463df4=createListener(_0x5db15d('0x4')+_0x37725b,_0x1cc8d4);UserVoiceQueueRtEvents['on'](_0x37725b,_0x463df4);}}; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/index.js b/server/api/userWhatsappQueue/index.js index 46b039a..95ac387 100644 --- a/server/api/userWhatsappQueue/index.js +++ b/server/api/userWhatsappQueue/index.js @@ -1 +1 @@ -const a692_0x330b=['exports','express'];(function(_0x1d93d4,_0x330b38){const _0x13bfcd=function(_0x2ee981){while(--_0x2ee981){_0x1d93d4['push'](_0x1d93d4['shift']());}};_0x13bfcd(++_0x330b38);}(a692_0x330b,0x130));const a692_0x13bf=function(_0x1d93d4,_0x330b38){_0x1d93d4=_0x1d93d4-0x0;let _0x13bfcd=a692_0x330b[_0x1d93d4];return _0x13bfcd;};const _0x2e4096=a692_0x13bf;'use strict';const express=require(_0x2e4096('0x1')),router=express['Router']();module[_0x2e4096('0x0')]=router; \ No newline at end of file +const a692_0x2205=['express','Router'];(function(_0x96f72a,_0x2205d4){const _0x2d16b0=function(_0x11c8b7){while(--_0x11c8b7){_0x96f72a['push'](_0x96f72a['shift']());}};_0x2d16b0(++_0x2205d4);}(a692_0x2205,0x183));const a692_0x2d16=function(_0x96f72a,_0x2205d4){_0x96f72a=_0x96f72a-0x0;let _0x2d16b0=a692_0x2205[_0x96f72a];return _0x2d16b0;};const _0x164056=a692_0x2d16;'use strict';const express=require(_0x164056('0x1')),router=express[_0x164056('0x0')]();module['exports']=router; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js index a0e9ebe..a054be5 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js @@ -1 +1 @@ -const a693_0x4016=['sequelize','exports','INTEGER'];(function(_0x4646d7,_0x401689){const _0xcf65e7=function(_0x3abc33){while(--_0x3abc33){_0x4646d7['push'](_0x4646d7['shift']());}};_0xcf65e7(++_0x401689);}(a693_0x4016,0xaa));const a693_0xcf65=function(_0x4646d7,_0x401689){_0x4646d7=_0x4646d7-0x0;let _0xcf65e7=a693_0x4016[_0x4646d7];return _0xcf65e7;};const _0x144dc8=a693_0xcf65;'use strict';const Sequelize=require(_0x144dc8('0x1'));module[_0x144dc8('0x2')]={'penalty':{'type':Sequelize[_0x144dc8('0x0')],'defaultValue':0x0}}; \ No newline at end of file +const a693_0x558f=['exports','INTEGER'];(function(_0x4eec50,_0x558ff4){const _0xb10616=function(_0x5255e6){while(--_0x5255e6){_0x4eec50['push'](_0x4eec50['shift']());}};_0xb10616(++_0x558ff4);}(a693_0x558f,0x147));const a693_0xb106=function(_0x4eec50,_0x558ff4){_0x4eec50=_0x4eec50-0x0;let _0xb10616=a693_0x558f[_0x4eec50];return _0xb10616;};const _0x430899=a693_0xb106;'use strict';const Sequelize=require('sequelize');module[_0x430899('0x1')]={'penalty':{'type':Sequelize[_0x430899('0x0')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.model.js b/server/api/userWhatsappQueue/userWhatsappQueue.model.js index 698e02c..4018527 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.model.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.model.js @@ -1 +1 @@ -const a694_0x2075=['./userWhatsappQueue.attributes','user_has_whatsapp_queues','exports','define'];(function(_0x3414aa,_0x207562){const _0x453811=function(_0x5567c8){while(--_0x5567c8){_0x3414aa['push'](_0x3414aa['shift']());}};_0x453811(++_0x207562);}(a694_0x2075,0x13c));const a694_0x4538=function(_0x3414aa,_0x207562){_0x3414aa=_0x3414aa-0x0;let _0x453811=a694_0x2075[_0x3414aa];return _0x453811;};const _0x3d8cef=a694_0x4538;'use strict';const attributes=require(_0x3d8cef('0x0'));module[_0x3d8cef('0x2')]=function(_0x5567c8){const _0x2d03f6=_0x3d8cef,_0xf3750=_0x5567c8[_0x2d03f6('0x3')]('UserWhatsappQueue',attributes,{'tableName':_0x2d03f6('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xf3750;}; \ No newline at end of file +const a694_0x346d=['UserWhatsappQueue','user_has_whatsapp_queues','exports','define'];(function(_0x262f52,_0x346db4){const _0x33e3e7=function(_0x3de386){while(--_0x3de386){_0x262f52['push'](_0x262f52['shift']());}};_0x33e3e7(++_0x346db4);}(a694_0x346d,0x188));const a694_0x33e3=function(_0x262f52,_0x346db4){_0x262f52=_0x262f52-0x0;let _0x33e3e7=a694_0x346d[_0x262f52];return _0x33e3e7;};const _0x352abf=a694_0x33e3;'use strict';const attributes=require('./userWhatsappQueue.attributes');module[_0x352abf('0x2')]=function(_0x3de386){const _0x1ae8b4=_0x352abf,_0x19cbc6=_0x3de386[_0x1ae8b4('0x3')](_0x1ae8b4('0x0'),attributes,{'tableName':_0x1ae8b4('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x19cbc6;}; \ No newline at end of file diff --git a/server/api/variable/index.js b/server/api/variable/index.js index 113ada2..a86ce38 100644 --- a/server/api/variable/index.js +++ b/server/api/variable/index.js @@ -1 +1 @@ -const a695_0x5c5f=['destroy','./variable.controller','update','/:id','get','express','Router','show','index','../../components/auth/service','exports','delete','isAuthenticated','post'];(function(_0x2ae8ca,_0x5c5f6b){const _0x4cadd6=function(_0x252333){while(--_0x252333){_0x2ae8ca['push'](_0x2ae8ca['shift']());}};_0x4cadd6(++_0x5c5f6b);}(a695_0x5c5f,0x83));const a695_0x4cad=function(_0x2ae8ca,_0x5c5f6b){_0x2ae8ca=_0x2ae8ca-0x0;let _0x4cadd6=a695_0x5c5f[_0x2ae8ca];return _0x4cadd6;};const _0x19ae1c=a695_0x4cad;'use strict';const express=require(_0x19ae1c('0x0')),router=express[_0x19ae1c('0x1')](),auth=require(_0x19ae1c('0x4')),controller=require(_0x19ae1c('0xa'));router[_0x19ae1c('0xd')]('/',auth[_0x19ae1c('0x7')](),controller[_0x19ae1c('0x3')]),router['get'](_0x19ae1c('0xc'),auth[_0x19ae1c('0x7')](),controller[_0x19ae1c('0x2')]),router[_0x19ae1c('0x8')]('/',auth[_0x19ae1c('0x7')](),controller['create']),router['put'](_0x19ae1c('0xc'),auth[_0x19ae1c('0x7')](),controller[_0x19ae1c('0xb')]),router[_0x19ae1c('0x6')](_0x19ae1c('0xc'),auth[_0x19ae1c('0x7')](),controller[_0x19ae1c('0x9')]),module[_0x19ae1c('0x5')]=router; \ No newline at end of file +const a695_0x39b1=['/:id','post','delete','Router','put','get','express','./variable.controller','isAuthenticated','exports','destroy','update'];(function(_0x416bc1,_0x39b15b){const _0x522aea=function(_0x2fd0ac){while(--_0x2fd0ac){_0x416bc1['push'](_0x416bc1['shift']());}};_0x522aea(++_0x39b15b);}(a695_0x39b1,0xd3));const a695_0x522a=function(_0x416bc1,_0x39b15b){_0x416bc1=_0x416bc1-0x0;let _0x522aea=a695_0x39b1[_0x416bc1];return _0x522aea;};const _0x451aa3=a695_0x522a;'use strict';const express=require(_0x451aa3('0xb')),router=express[_0x451aa3('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x451aa3('0x0'));router[_0x451aa3('0xa')]('/',auth['isAuthenticated'](),controller['index']),router[_0x451aa3('0xa')](_0x451aa3('0x5'),auth[_0x451aa3('0x1')](),controller['show']),router[_0x451aa3('0x6')]('/',auth[_0x451aa3('0x1')](),controller['create']),router[_0x451aa3('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x451aa3('0x4')]),router[_0x451aa3('0x7')](_0x451aa3('0x5'),auth['isAuthenticated'](),controller[_0x451aa3('0x3')]),module[_0x451aa3('0x2')]=router; \ No newline at end of file diff --git a/server/api/variable/variable.attributes.js b/server/api/variable/variable.attributes.js index ab31d30..2e53aee 100644 --- a/server/api/variable/variable.attributes.js +++ b/server/api/variable/variable.attributes.js @@ -1 +1 @@ -const a696_0x1de8=['name','STRING','sequelize'];(function(_0x19df56,_0x1de8ae){const _0x5166d6=function(_0x11b14d){while(--_0x11b14d){_0x19df56['push'](_0x19df56['shift']());}};_0x5166d6(++_0x1de8ae);}(a696_0x1de8,0x101));const a696_0x5166=function(_0x19df56,_0x1de8ae){_0x19df56=_0x19df56-0x0;let _0x5166d6=a696_0x1de8[_0x19df56];return _0x5166d6;};const _0xe716d9=a696_0x5166;'use strict';const Sequelize=require(_0xe716d9('0x0'));module['exports']={'name':{'type':Sequelize[_0xe716d9('0x2')],'unique':_0xe716d9('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0xe716d9('0x2')]}}; \ No newline at end of file +const a696_0x26a2=['name','STRING'];(function(_0x2ab4fc,_0x26a20b){const _0x3e73d5=function(_0x545048){while(--_0x545048){_0x2ab4fc['push'](_0x2ab4fc['shift']());}};_0x3e73d5(++_0x26a20b);}(a696_0x26a2,0x84));const a696_0x3e73=function(_0x2ab4fc,_0x26a20b){_0x2ab4fc=_0x2ab4fc-0x0;let _0x3e73d5=a696_0x26a2[_0x2ab4fc];return _0x3e73d5;};const _0x3009ae=a696_0x3e73;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x3009ae('0x1')],'unique':_0x3009ae('0x0'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x3009ae('0x1')]}}; \ No newline at end of file diff --git a/server/api/variable/variable.controller.js b/server/api/variable/variable.controller.js index 8e80e8c..db47668 100644 --- a/server/api/variable/variable.controller.js +++ b/server/api/variable/variable.controller.js @@ -1 +1 @@ -const a697_0x33fe=['user','nolimit','keys','filters','body','sendStatus','../../mysqldb','filter','fields','count','role','rows','name','UserProfileSection','findAll','attributes','Unable\x20to\x20retrieve\x20the\x20current\x20user','update','get','sort','type','lodash','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','then','destroy','map','intersection','includeAll','findOne','like','index','Variable','api','error','where','include','status','query','length','model','sequelize','fieldName','autoAssociation','Content-Range','end','params','merge','json','options','offset','rawAttributes','order','catch','Variables','limit','create','../../config/logger','UserProfileResource'];(function(_0xf2d788,_0x33fe4c){const _0x305dda=function(_0x28b43a){while(--_0x28b43a){_0xf2d788['push'](_0xf2d788['shift']());}};_0x305dda(++_0x33fe4c);}(a697_0x33fe,0x16d));const a697_0x305d=function(_0xf2d788,_0x33fe4c){_0xf2d788=_0xf2d788-0x0;let _0x305dda=a697_0x33fe[_0xf2d788];return _0x305dda;};const _0x1e31b3=a697_0x305d;'use strict';const _=require(_0x1e31b3('0x4')),qs=require('../../components/parsers/qs'),logger=require(_0x1e31b3('0x27'))(_0x1e31b3('0xf')),db=require(_0x1e31b3('0x2f'))['db'],{Op}=require(_0x1e31b3('0x17'));function respondWithResult(_0x28b43a,_0x2b6b67){return _0x2b6b67=_0x2b6b67||0xc8,function(_0xed5bd5){const _0x214ac1=a697_0x305d;if(_0xed5bd5)return _0x28b43a[_0x214ac1('0x13')](_0x2b6b67)[_0x214ac1('0x1e')](_0xed5bd5);};}function respondWithFilteredResult(_0x3ba58a,_0x33f197){return function(_0x253004){const _0x2a38a3=a697_0x305d;if(_0x253004){const _0x470acd=_0x253004[_0x2a38a3('0x32')],_0x250691=_0x33f197['offset'];let _0x47017c=_0x33f197[_0x2a38a3('0x20')]+_0x33f197['limit'],_0x53bee0;return _0x47017c>=_0x470acd?(_0x47017c=_0x470acd,_0x53bee0=0xc8):_0x53bee0=0xce,_0x3ba58a[_0x2a38a3('0x13')](_0x53bee0),_0x3ba58a['set'](_0x2a38a3('0x1a'),_0x250691+'-'+_0x47017c+'/'+_0x470acd)[_0x2a38a3('0x1e')](_0x253004);}return null;};}function saveUpdates(_0xf7d238){return function(_0x113a4c){const _0x1b20ae=a697_0x305d;if(_0x113a4c)return _0x113a4c[_0x1b20ae('0x0')](_0xf7d238)['then'](function(_0x31b733){return _0x31b733;});return null;};}function removeEntity(_0x555478){return function(_0x39eca4){const _0x11c7d0=a697_0x305d;if(_0x39eca4)return _0x39eca4[_0x11c7d0('0x7')]()['then'](function(){const _0x4a324c=_0x11c7d0,_0xbee7b=_0x39eca4[_0x4a324c('0x1')]({'plain':!![]}),_0x48bec3='Variables';return db[_0x4a324c('0x28')]['destroy']({'where':{'type':_0x48bec3,'resourceId':_0xbee7b['id']}})['then'](function(){return _0x39eca4;});})[_0x11c7d0('0x6')](function(){const _0xa26376=_0x11c7d0;_0x555478[_0xa26376('0x13')](0xcc)[_0xa26376('0x1b')]();});};}function handleEntityNotFound(_0x335ed3){return function(_0x3e40ba){const _0x57f59a=a697_0x305d;return!_0x3e40ba&&_0x335ed3[_0x57f59a('0x2e')](0x194),_0x3e40ba;};}function handleError(_0x4c44c0,_0x29e4a8){return _0x29e4a8=_0x29e4a8||0x1f4,function(_0xe7f26e){const _0x4948c6=a697_0x305d;logger[_0x4948c6('0x10')](_0xe7f26e['stack']),_0xe7f26e['name']&&delete _0xe7f26e['name'],_0x4c44c0[_0x4948c6('0x13')](_0x29e4a8)['send'](_0xe7f26e);};}exports[_0x1e31b3('0xd')]=function(_0x2e4211,_0x311d9){const _0x4137d7=_0x1e31b3;let _0x7f2c3d={};const _0x382bca={},_0x1e79ea={'count':0x0,'rows':[]},_0xe401db=_[_0x4137d7('0x8')](db[_0x4137d7('0xe')][_0x4137d7('0x21')],function(_0x70b290){const _0x343dd7=_0x4137d7;return{'name':_0x70b290[_0x343dd7('0x18')],'type':_0x70b290[_0x343dd7('0x3')]['key']};});_0x382bca[_0x4137d7('0x16')]=_['map'](_0xe401db,_0x4137d7('0x35')),_0x382bca['query']=_[_0x4137d7('0x2b')](_0x2e4211[_0x4137d7('0x14')]),_0x382bca[_0x4137d7('0x2c')]=_[_0x4137d7('0x9')](_0x382bca[_0x4137d7('0x16')],_0x382bca[_0x4137d7('0x14')]),_0x7f2c3d[_0x4137d7('0x38')]=_[_0x4137d7('0x9')](_0x382bca[_0x4137d7('0x16')],qs[_0x4137d7('0x31')](_0x2e4211['query']['fields'])),_0x7f2c3d['attributes']=_0x7f2c3d['attributes'][_0x4137d7('0x15')]?_0x7f2c3d[_0x4137d7('0x38')]:_0x382bca['model'];typeof _0x2e4211[_0x4137d7('0x14')][_0x4137d7('0x2a')]==='undefined'&&(_0x7f2c3d[_0x4137d7('0x25')]=qs[_0x4137d7('0x25')](_0x2e4211[_0x4137d7('0x14')]['limit']),_0x7f2c3d[_0x4137d7('0x20')]=qs[_0x4137d7('0x20')](_0x2e4211['query'][_0x4137d7('0x20')]));_0x7f2c3d[_0x4137d7('0x22')]=qs[_0x4137d7('0x2')](_0x2e4211['query']['sort']),_0x7f2c3d[_0x4137d7('0x11')]=qs[_0x4137d7('0x2c')](_['pick'](_0x2e4211['query'],_0x382bca[_0x4137d7('0x2c')]),_0xe401db);_0x2e4211['query'][_0x4137d7('0x30')]&&(_0x7f2c3d[_0x4137d7('0x11')]=_[_0x4137d7('0x1d')](_0x7f2c3d[_0x4137d7('0x11')],{[Op['or']]:_[_0x4137d7('0x8')](_0xe401db,function(_0x4937a5){const _0x52f0a3=_0x4137d7;if(_0x4937a5[_0x52f0a3('0x3')]!=='VIRTUAL'){const _0x3917a7={};return _0x3917a7[_0x4937a5[_0x52f0a3('0x35')]]={[Op[_0x52f0a3('0xc')]]:'%'+_0x2e4211[_0x52f0a3('0x14')][_0x52f0a3('0x30')]+'%'},_0x3917a7;}})}));_0x7f2c3d=_[_0x4137d7('0x1d')]({},_0x7f2c3d,_0x2e4211[_0x4137d7('0x1f')]);const _0x214fb0={'where':_0x7f2c3d['where']};return db[_0x4137d7('0xe')][_0x4137d7('0x32')](_0x214fb0)['then'](function(_0x3df59e){const _0x1b4c93=_0x4137d7;return _0x1e79ea['count']=_0x3df59e,_0x2e4211[_0x1b4c93('0x14')][_0x1b4c93('0xa')]&&(_0x7f2c3d[_0x1b4c93('0x12')]=[{'all':!![]}]),db[_0x1b4c93('0xe')][_0x1b4c93('0x37')](_0x7f2c3d);})[_0x4137d7('0x6')](function(_0x51c18e){const _0x5996cf=_0x4137d7;return _0x1e79ea[_0x5996cf('0x34')]=_0x51c18e,_0x1e79ea;})[_0x4137d7('0x6')](respondWithFilteredResult(_0x311d9,_0x7f2c3d))[_0x4137d7('0x23')](handleError(_0x311d9,null));},exports['show']=function(_0x35ed9e,_0x168085){const _0x18d73c=_0x1e31b3;let _0x1ac968={'raw':!![],'where':{'id':_0x35ed9e[_0x18d73c('0x1c')]['id']}};const _0x4e5702={};return _0x4e5702['model']=_['keys'](db[_0x18d73c('0xe')]['rawAttributes']),_0x4e5702['query']=_[_0x18d73c('0x2b')](_0x35ed9e[_0x18d73c('0x14')]),_0x4e5702[_0x18d73c('0x2c')]=_['intersection'](_0x4e5702['model'],_0x4e5702[_0x18d73c('0x14')]),_0x1ac968[_0x18d73c('0x38')]=_[_0x18d73c('0x9')](_0x4e5702[_0x18d73c('0x16')],qs['fields'](_0x35ed9e[_0x18d73c('0x14')][_0x18d73c('0x31')])),_0x1ac968[_0x18d73c('0x38')]=_0x1ac968[_0x18d73c('0x38')][_0x18d73c('0x15')]?_0x1ac968[_0x18d73c('0x38')]:_0x4e5702[_0x18d73c('0x16')],_0x35ed9e[_0x18d73c('0x14')][_0x18d73c('0xa')]&&(_0x1ac968['include']=[{'all':!![]}]),_0x1ac968=_[_0x18d73c('0x1d')]({},_0x1ac968,_0x35ed9e['options']),db['Variable'][_0x18d73c('0xb')](_0x1ac968)[_0x18d73c('0x6')](handleEntityNotFound(_0x168085,null))[_0x18d73c('0x6')](respondWithResult(_0x168085,null))[_0x18d73c('0x23')](handleError(_0x168085,null));},exports[_0x1e31b3('0x26')]=function(_0x590716,_0x4cdbc){const _0x318635=_0x1e31b3;return db['Variable'][_0x318635('0x26')](_0x590716[_0x318635('0x2d')],{})[_0x318635('0x6')](function(_0x4037f8){const _0x378ad4=_0x318635,_0x5eb995=_0x590716['user'][_0x378ad4('0x1')]({'plain':!![]});if(!_0x5eb995)throw new Error(_0x378ad4('0x39'));if(_0x5eb995[_0x378ad4('0x33')]===_0x378ad4('0x29')){const _0x3b92e1=_0x4037f8[_0x378ad4('0x1')]({'plain':!![]}),_0xa24651=_0x378ad4('0x24');return db[_0x378ad4('0x36')][_0x378ad4('0xb')]({'where':{'name':_0xa24651,'userProfileId':_0x5eb995['userProfileId']},'raw':!![]})[_0x378ad4('0x6')](function(_0x800166){const _0x22e936=_0x378ad4;return _0x800166&&_0x800166[_0x22e936('0x19')]===0x0?db[_0x22e936('0x28')][_0x22e936('0x26')]({'name':_0x3b92e1[_0x22e936('0x35')],'resourceId':_0x3b92e1['id'],'type':_0x800166[_0x22e936('0x35')],'sectionId':_0x800166['id']},{})['then'](function(){return _0x4037f8;}):_0x4037f8;})[_0x378ad4('0x23')](function(_0xedf5f1){const _0x5cfe2e=_0x378ad4;logger['error'](_0x5cfe2e('0x5'),_0xedf5f1);throw _0xedf5f1;});}return _0x4037f8;})[_0x318635('0x6')](respondWithResult(_0x4cdbc,0xc9))[_0x318635('0x23')](handleError(_0x4cdbc,null));},exports[_0x1e31b3('0x0')]=function(_0x235c1f,_0x10c5b8){const _0x198055=_0x1e31b3;return _0x235c1f[_0x198055('0x2d')]['id']&&delete _0x235c1f['body']['id'],db[_0x198055('0xe')][_0x198055('0xb')]({'where':{'id':_0x235c1f[_0x198055('0x1c')]['id']}})[_0x198055('0x6')](handleEntityNotFound(_0x10c5b8,null))[_0x198055('0x6')](saveUpdates(_0x235c1f['body'],null))[_0x198055('0x6')](respondWithResult(_0x10c5b8,null))[_0x198055('0x23')](handleError(_0x10c5b8,null));},exports[_0x1e31b3('0x7')]=function(_0x53a89c,_0x2ca1e3){const _0x49cad9=_0x1e31b3;return db[_0x49cad9('0xe')][_0x49cad9('0xb')]({'where':{'id':_0x53a89c['params']['id']}})['then'](handleEntityNotFound(_0x2ca1e3,null))['then'](removeEntity(_0x2ca1e3,null))[_0x49cad9('0x23')](handleError(_0x2ca1e3,null));}; \ No newline at end of file +const a697_0x5ec6=['sendStatus','offset','role','json','Content-Range','error','autoAssociation','type','user','sequelize','lodash','filters','create','nolimit','filter','count','../../mysqldb','fields','length','model','findOne','keys','query','limit','UserProfileSection','Unable\x20to\x20retrieve\x20the\x20current\x20user','key','Variable','end','get','VIRTUAL','body','include','UserProfileResource','pick','Variables','rawAttributes','intersection','where','undefined','sort','index','options','show','attributes','then','includeAll','catch','params','set','fieldName','map','status','order','stack','api','merge','name','../../components/parsers/qs','userProfileId','destroy'];(function(_0x5c5535,_0x5ec660){const _0x12f000=function(_0x5e4f4b){while(--_0x5e4f4b){_0x5c5535['push'](_0x5c5535['shift']());}};_0x12f000(++_0x5ec660);}(a697_0x5ec6,0x19a));const a697_0x12f0=function(_0x5c5535,_0x5ec660){_0x5c5535=_0x5c5535-0x0;let _0x12f000=a697_0x5ec6[_0x5c5535];return _0x12f000;};const _0x28c6d8=a697_0x12f0;'use strict';const _=require(_0x28c6d8('0x1b')),qs=require(_0x28c6d8('0xe')),logger=require('../../config/logger')(_0x28c6d8('0xb')),db=require(_0x28c6d8('0x21'))['db'],{Op}=require(_0x28c6d8('0x1a'));function respondWithResult(_0x5e4f4b,_0x3878f5){return _0x3878f5=_0x3878f5||0xc8,function(_0x2a9606){const _0x543098=a697_0x12f0;if(_0x2a9606)return _0x5e4f4b[_0x543098('0x8')](_0x3878f5)['json'](_0x2a9606);};}function respondWithFilteredResult(_0x550d30,_0x56fb27){return function(_0x1c2a4f){const _0x226e5c=a697_0x12f0;if(_0x1c2a4f){const _0x904db8=_0x1c2a4f[_0x226e5c('0x20')],_0x14269a=_0x56fb27['offset'];let _0x275342=_0x56fb27['offset']+_0x56fb27['limit'],_0x2f9049;return _0x275342>=_0x904db8?(_0x275342=_0x904db8,_0x2f9049=0xc8):_0x2f9049=0xce,_0x550d30[_0x226e5c('0x8')](_0x2f9049),_0x550d30[_0x226e5c('0x5')](_0x226e5c('0x15'),_0x14269a+'-'+_0x275342+'/'+_0x904db8)[_0x226e5c('0x14')](_0x1c2a4f);}return null;};}function saveUpdates(_0x459845){return function(_0x3b36cf){if(_0x3b36cf)return _0x3b36cf['update'](_0x459845)['then'](function(_0x530a2d){return _0x530a2d;});return null;};}function removeEntity(_0x572b15){return function(_0x24f4ad){const _0x48b939=a697_0x12f0;if(_0x24f4ad)return _0x24f4ad[_0x48b939('0x10')]()['then'](function(){const _0x37109f=_0x48b939,_0x14c568=_0x24f4ad[_0x37109f('0x2e')]({'plain':!![]}),_0x35929d=_0x37109f('0x34');return db[_0x37109f('0x32')][_0x37109f('0x10')]({'where':{'type':_0x35929d,'resourceId':_0x14c568['id']}})['then'](function(){return _0x24f4ad;});})['then'](function(){const _0xfec479=_0x48b939;_0x572b15['status'](0xcc)[_0xfec479('0x2d')]();});};}function handleEntityNotFound(_0x2f3d02){return function(_0x3c4324){const _0x48e73c=a697_0x12f0;return!_0x3c4324&&_0x2f3d02[_0x48e73c('0x11')](0x194),_0x3c4324;};}function handleError(_0x2a3173,_0x961424){return _0x961424=_0x961424||0x1f4,function(_0x12ad14){const _0x36bbe8=a697_0x12f0;logger[_0x36bbe8('0x16')](_0x12ad14[_0x36bbe8('0xa')]),_0x12ad14[_0x36bbe8('0xd')]&&delete _0x12ad14['name'],_0x2a3173[_0x36bbe8('0x8')](_0x961424)['send'](_0x12ad14);};}exports[_0x28c6d8('0x3a')]=function(_0x56bd80,_0x23fe3d){const _0x224c0c=_0x28c6d8;let _0x3796d1={};const _0x308d65={},_0x1c5d25={'count':0x0,'rows':[]},_0x4d265b=_[_0x224c0c('0x7')](db[_0x224c0c('0x2c')][_0x224c0c('0x35')],function(_0x43638e){const _0x2ec8f3=_0x224c0c;return{'name':_0x43638e[_0x2ec8f3('0x6')],'type':_0x43638e[_0x2ec8f3('0x18')][_0x2ec8f3('0x2b')]};});_0x308d65[_0x224c0c('0x24')]=_['map'](_0x4d265b,_0x224c0c('0xd')),_0x308d65[_0x224c0c('0x27')]=_[_0x224c0c('0x26')](_0x56bd80[_0x224c0c('0x27')]),_0x308d65[_0x224c0c('0x1c')]=_[_0x224c0c('0x36')](_0x308d65['model'],_0x308d65[_0x224c0c('0x27')]),_0x3796d1[_0x224c0c('0x0')]=_[_0x224c0c('0x36')](_0x308d65[_0x224c0c('0x24')],qs[_0x224c0c('0x22')](_0x56bd80[_0x224c0c('0x27')]['fields'])),_0x3796d1[_0x224c0c('0x0')]=_0x3796d1[_0x224c0c('0x0')][_0x224c0c('0x23')]?_0x3796d1[_0x224c0c('0x0')]:_0x308d65['model'];typeof _0x56bd80[_0x224c0c('0x27')][_0x224c0c('0x1e')]===_0x224c0c('0x38')&&(_0x3796d1[_0x224c0c('0x28')]=qs[_0x224c0c('0x28')](_0x56bd80[_0x224c0c('0x27')][_0x224c0c('0x28')]),_0x3796d1[_0x224c0c('0x12')]=qs[_0x224c0c('0x12')](_0x56bd80[_0x224c0c('0x27')][_0x224c0c('0x12')]));_0x3796d1[_0x224c0c('0x9')]=qs[_0x224c0c('0x39')](_0x56bd80['query'][_0x224c0c('0x39')]),_0x3796d1[_0x224c0c('0x37')]=qs[_0x224c0c('0x1c')](_[_0x224c0c('0x33')](_0x56bd80[_0x224c0c('0x27')],_0x308d65[_0x224c0c('0x1c')]),_0x4d265b);_0x56bd80[_0x224c0c('0x27')][_0x224c0c('0x1f')]&&(_0x3796d1['where']=_[_0x224c0c('0xc')](_0x3796d1[_0x224c0c('0x37')],{[Op['or']]:_[_0x224c0c('0x7')](_0x4d265b,function(_0x1a26c4){const _0x1fb85c=_0x224c0c;if(_0x1a26c4[_0x1fb85c('0x18')]!==_0x1fb85c('0x2f')){const _0x44d815={};return _0x44d815[_0x1a26c4[_0x1fb85c('0xd')]]={[Op['like']]:'%'+_0x56bd80[_0x1fb85c('0x27')][_0x1fb85c('0x1f')]+'%'},_0x44d815;}})}));_0x3796d1=_[_0x224c0c('0xc')]({},_0x3796d1,_0x56bd80[_0x224c0c('0x3b')]);const _0x42eaf2={'where':_0x3796d1[_0x224c0c('0x37')]};return db[_0x224c0c('0x2c')][_0x224c0c('0x20')](_0x42eaf2)[_0x224c0c('0x1')](function(_0x2237d2){const _0x4f8fdd=_0x224c0c;return _0x1c5d25['count']=_0x2237d2,_0x56bd80[_0x4f8fdd('0x27')][_0x4f8fdd('0x2')]&&(_0x3796d1['include']=[{'all':!![]}]),db['Variable']['findAll'](_0x3796d1);})[_0x224c0c('0x1')](function(_0xa4bbf7){return _0x1c5d25['rows']=_0xa4bbf7,_0x1c5d25;})['then'](respondWithFilteredResult(_0x23fe3d,_0x3796d1))[_0x224c0c('0x3')](handleError(_0x23fe3d,null));},exports[_0x28c6d8('0x3c')]=function(_0x5cf1ba,_0x517981){const _0x2b0ae2=_0x28c6d8;let _0x47a172={'raw':!![],'where':{'id':_0x5cf1ba[_0x2b0ae2('0x4')]['id']}};const _0x152a80={};return _0x152a80['model']=_[_0x2b0ae2('0x26')](db[_0x2b0ae2('0x2c')][_0x2b0ae2('0x35')]),_0x152a80[_0x2b0ae2('0x27')]=_[_0x2b0ae2('0x26')](_0x5cf1ba[_0x2b0ae2('0x27')]),_0x152a80[_0x2b0ae2('0x1c')]=_['intersection'](_0x152a80[_0x2b0ae2('0x24')],_0x152a80[_0x2b0ae2('0x27')]),_0x47a172[_0x2b0ae2('0x0')]=_['intersection'](_0x152a80[_0x2b0ae2('0x24')],qs[_0x2b0ae2('0x22')](_0x5cf1ba[_0x2b0ae2('0x27')][_0x2b0ae2('0x22')])),_0x47a172[_0x2b0ae2('0x0')]=_0x47a172['attributes'][_0x2b0ae2('0x23')]?_0x47a172[_0x2b0ae2('0x0')]:_0x152a80[_0x2b0ae2('0x24')],_0x5cf1ba['query']['includeAll']&&(_0x47a172[_0x2b0ae2('0x31')]=[{'all':!![]}]),_0x47a172=_['merge']({},_0x47a172,_0x5cf1ba['options']),db[_0x2b0ae2('0x2c')]['findOne'](_0x47a172)[_0x2b0ae2('0x1')](handleEntityNotFound(_0x517981,null))[_0x2b0ae2('0x1')](respondWithResult(_0x517981,null))[_0x2b0ae2('0x3')](handleError(_0x517981,null));},exports[_0x28c6d8('0x1d')]=function(_0x5ba567,_0xa17e8a){const _0x4236f1=_0x28c6d8;return db[_0x4236f1('0x2c')][_0x4236f1('0x1d')](_0x5ba567['body'],{})[_0x4236f1('0x1')](function(_0xda4a1){const _0x4254cb=_0x4236f1,_0x57a8bc=_0x5ba567[_0x4254cb('0x19')][_0x4254cb('0x2e')]({'plain':!![]});if(!_0x57a8bc)throw new Error(_0x4254cb('0x2a'));if(_0x57a8bc[_0x4254cb('0x13')]===_0x4254cb('0x19')){const _0x2085bb=_0xda4a1[_0x4254cb('0x2e')]({'plain':!![]}),_0x566adf='Variables';return db[_0x4254cb('0x29')]['findOne']({'where':{'name':_0x566adf,'userProfileId':_0x57a8bc[_0x4254cb('0xf')]},'raw':!![]})[_0x4254cb('0x1')](function(_0x3a5eb0){const _0x1a8e2b=_0x4254cb;return _0x3a5eb0&&_0x3a5eb0[_0x1a8e2b('0x17')]===0x0?db[_0x1a8e2b('0x32')]['create']({'name':_0x2085bb[_0x1a8e2b('0xd')],'resourceId':_0x2085bb['id'],'type':_0x3a5eb0[_0x1a8e2b('0xd')],'sectionId':_0x3a5eb0['id']},{})[_0x1a8e2b('0x1')](function(){return _0xda4a1;}):_0xda4a1;})[_0x4254cb('0x3')](function(_0x3cf9c5){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3cf9c5);throw _0x3cf9c5;});}return _0xda4a1;})[_0x4236f1('0x1')](respondWithResult(_0xa17e8a,0xc9))[_0x4236f1('0x3')](handleError(_0xa17e8a,null));},exports['update']=function(_0x583b32,_0x46267d){const _0x414c5d=_0x28c6d8;return _0x583b32[_0x414c5d('0x30')]['id']&&delete _0x583b32[_0x414c5d('0x30')]['id'],db['Variable'][_0x414c5d('0x25')]({'where':{'id':_0x583b32['params']['id']}})[_0x414c5d('0x1')](handleEntityNotFound(_0x46267d,null))['then'](saveUpdates(_0x583b32[_0x414c5d('0x30')],null))['then'](respondWithResult(_0x46267d,null))[_0x414c5d('0x3')](handleError(_0x46267d,null));},exports[_0x28c6d8('0x10')]=function(_0x5df648,_0x2d2872){const _0x250a75=_0x28c6d8;return db[_0x250a75('0x2c')][_0x250a75('0x25')]({'where':{'id':_0x5df648[_0x250a75('0x4')]['id']}})[_0x250a75('0x1')](handleEntityNotFound(_0x2d2872,null))[_0x250a75('0x1')](removeEntity(_0x2d2872,null))['catch'](handleError(_0x2d2872,null));}; \ No newline at end of file diff --git a/server/api/variable/variable.model.js b/server/api/variable/variable.model.js index 8345e18..a311591 100644 --- a/server/api/variable/variable.model.js +++ b/server/api/variable/variable.model.js @@ -1 +1 @@ -const a698_0x3083=['Variable','exports','define','tools_variables'];(function(_0x16ed0b,_0x3083d7){const _0x1dbbae=function(_0x1baacc){while(--_0x1baacc){_0x16ed0b['push'](_0x16ed0b['shift']());}};_0x1dbbae(++_0x3083d7);}(a698_0x3083,0x170));const a698_0x1dbb=function(_0x16ed0b,_0x3083d7){_0x16ed0b=_0x16ed0b-0x0;let _0x1dbbae=a698_0x3083[_0x16ed0b];return _0x1dbbae;};const _0xa49d82=a698_0x1dbb;'use strict';const attributes=require('./variable.attributes');module[_0xa49d82('0x1')]=function(_0x1baacc){const _0x3a2f80=_0xa49d82,_0x4626be=_0x1baacc[_0x3a2f80('0x2')](_0x3a2f80('0x0'),attributes,{'tableName':_0x3a2f80('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4626be;}; \ No newline at end of file +const a698_0x2eb1=['define','./variable.attributes','exports'];(function(_0x56ddd3,_0x2eb1ae){const _0x27aa0d=function(_0x40fbe0){while(--_0x40fbe0){_0x56ddd3['push'](_0x56ddd3['shift']());}};_0x27aa0d(++_0x2eb1ae);}(a698_0x2eb1,0xd6));const a698_0x27aa=function(_0x56ddd3,_0x2eb1ae){_0x56ddd3=_0x56ddd3-0x0;let _0x27aa0d=a698_0x2eb1[_0x56ddd3];return _0x27aa0d;};const _0x23c477=a698_0x27aa;'use strict';const attributes=require(_0x23c477('0x0'));module[_0x23c477('0x1')]=function(_0x40fbe0){const _0x12c25f=_0x23c477,_0x2f2ba1=_0x40fbe0[_0x12c25f('0x2')]('Variable',attributes,{'tableName':'tools_variables','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2f2ba1;}; \ No newline at end of file diff --git a/server/api/variable/variable.rpc.js b/server/api/variable/variable.rpc.js index f8a0b51..2518a22 100644 --- a/server/api/variable/variable.rpc.js +++ b/server/api/variable/variable.rpc.js @@ -1 +1 @@ -const a699_0x35a0=['options','ShowVariable','raw','catch','lodash','../../config/logger','where','attributes','include','../../mysqldb','stringify','error','findOne','map','message','model','Variable'];(function(_0x34bc4c,_0x35a071){const _0x455534=function(_0x1dbebd){while(--_0x1dbebd){_0x34bc4c['push'](_0x34bc4c['shift']());}};_0x455534(++_0x35a071);}(a699_0x35a0,0x11a));const a699_0x4555=function(_0x34bc4c,_0x35a071){_0x34bc4c=_0x34bc4c-0x0;let _0x455534=a699_0x35a0[_0x34bc4c];return _0x455534;};const _0x3abd31=a699_0x4555;'use strict';const db=require(_0x3abd31('0x10'))['db'],logger=require(_0x3abd31('0xc'))('rpc'),_=require(_0x3abd31('0xb'));exports['ShowVariable']=function(_0x1dbebd){const _0x121def=this;return new Promise(function(_0x426274,_0x5ecded){const _0x18f7e8=a699_0x4555;return db[_0x18f7e8('0x6')][_0x18f7e8('0x2')]({'raw':_0x1dbebd[_0x18f7e8('0x7')]?_0x1dbebd[_0x18f7e8('0x7')][_0x18f7e8('0x9')]===undefined?!![]:![]:!![],'where':_0x1dbebd[_0x18f7e8('0x7')]?_0x1dbebd[_0x18f7e8('0x7')][_0x18f7e8('0xd')]||null:null,'attributes':_0x1dbebd['options']?_0x1dbebd[_0x18f7e8('0x7')][_0x18f7e8('0xe')]||null:null,'include':_0x1dbebd[_0x18f7e8('0x7')]?_0x1dbebd[_0x18f7e8('0x7')][_0x18f7e8('0xf')]?_[_0x18f7e8('0x3')](_0x1dbebd[_0x18f7e8('0x7')][_0x18f7e8('0xf')],function(_0x441bb4){const _0x406318=_0x18f7e8;return{'model':db[_0x441bb4[_0x406318('0x5')]],'as':_0x441bb4['as'],'attributes':_0x441bb4[_0x406318('0xe')],'include':_0x441bb4['include']?_[_0x406318('0x3')](_0x441bb4[_0x406318('0xf')],function(_0x3d1519){const _0x227ed6=_0x406318;return{'model':db[_0x3d1519[_0x227ed6('0x5')]],'as':_0x3d1519['as'],'attributes':_0x3d1519[_0x227ed6('0xe')],'include':_0x3d1519[_0x227ed6('0xf')]?_[_0x227ed6('0x3')](_0x3d1519[_0x227ed6('0xf')],function(_0x98e3d){const _0x341ea6=_0x227ed6;return{'model':db[_0x98e3d[_0x341ea6('0x5')]],'as':_0x98e3d['as'],'attributes':_0x98e3d['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0xf6c363){const _0x18d560=_0x18f7e8;logger['info'](_0x18d560('0x8'),_0x1dbebd),logger['debug'](_0x18d560('0x8'),_0x1dbebd,JSON[_0x18d560('0x0')](_0xf6c363)),_0x426274(_0xf6c363);})[_0x18f7e8('0xa')](function(_0x1abb3a){const _0x1ef653=_0x18f7e8;logger[_0x1ef653('0x1')]('ShowVariable',_0x1abb3a['message'],_0x1dbebd),_0x5ecded(_0x121def[_0x1ef653('0x1')](0x1f4,_0x1abb3a[_0x1ef653('0x4')]));});});}; \ No newline at end of file +const a699_0x5ad4=['catch','map','../../mysqldb','model','findOne','options','then','../../config/logger','where','message','attributes','raw','include','debug','Variable','info','ShowVariable','error'];(function(_0xc0333a,_0x5ad4c7){const _0x197a66=function(_0x26eaf1){while(--_0x26eaf1){_0xc0333a['push'](_0xc0333a['shift']());}};_0x197a66(++_0x5ad4c7);}(a699_0x5ad4,0x17a));const a699_0x197a=function(_0xc0333a,_0x5ad4c7){_0xc0333a=_0xc0333a-0x0;let _0x197a66=a699_0x5ad4[_0xc0333a];return _0x197a66;};const _0x1eddb4=a699_0x197a;'use strict';const db=require(_0x1eddb4('0x2'))['db'],logger=require(_0x1eddb4('0x7'))('rpc'),_=require('lodash');exports['ShowVariable']=function(_0x26eaf1){const _0xa9b917=this;return new Promise(function(_0x4d67d5,_0x3949ef){const _0x53a179=a699_0x197a;return db[_0x53a179('0xe')][_0x53a179('0x4')]({'raw':_0x26eaf1[_0x53a179('0x5')]?_0x26eaf1[_0x53a179('0x5')][_0x53a179('0xb')]===undefined?!![]:![]:!![],'where':_0x26eaf1['options']?_0x26eaf1['options'][_0x53a179('0x8')]||null:null,'attributes':_0x26eaf1[_0x53a179('0x5')]?_0x26eaf1['options']['attributes']||null:null,'include':_0x26eaf1[_0x53a179('0x5')]?_0x26eaf1['options'][_0x53a179('0xc')]?_[_0x53a179('0x1')](_0x26eaf1['options'][_0x53a179('0xc')],function(_0x234016){const _0x32aaa9=_0x53a179;return{'model':db[_0x234016[_0x32aaa9('0x3')]],'as':_0x234016['as'],'attributes':_0x234016[_0x32aaa9('0xa')],'include':_0x234016['include']?_['map'](_0x234016[_0x32aaa9('0xc')],function(_0x44ac8e){const _0x5cb7c5=_0x32aaa9;return{'model':db[_0x44ac8e[_0x5cb7c5('0x3')]],'as':_0x44ac8e['as'],'attributes':_0x44ac8e[_0x5cb7c5('0xa')],'include':_0x44ac8e[_0x5cb7c5('0xc')]?_['map'](_0x44ac8e[_0x5cb7c5('0xc')],function(_0x583728){const _0x43f378=_0x5cb7c5;return{'model':db[_0x583728['model']],'as':_0x583728['as'],'attributes':_0x583728[_0x43f378('0xa')]};}):[]};}):[]};}):[]:[]})[_0x53a179('0x6')](function(_0x34ffb5){const _0x456c38=_0x53a179;logger[_0x456c38('0xf')](_0x456c38('0x10'),_0x26eaf1),logger[_0x456c38('0xd')](_0x456c38('0x10'),_0x26eaf1,JSON['stringify'](_0x34ffb5)),_0x4d67d5(_0x34ffb5);})[_0x53a179('0x0')](function(_0x52fc69){const _0x163c29=_0x53a179;logger[_0x163c29('0x11')](_0x163c29('0x10'),_0x52fc69[_0x163c29('0x9')],_0x26eaf1),_0x3949ef(_0xa9b917['error'](0x1f4,_0x52fc69[_0x163c29('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/version/index.js b/server/api/version/index.js index e2a4e4e..4ac556b 100644 --- a/server/api/version/index.js +++ b/server/api/version/index.js @@ -1 +1 @@ -const a700_0x18c2=['migrations','reset','exports','/reset','canUpdate','restart','express','/migrations','get','Router','./version.controller','isAuthenticated'];(function(_0x10ba3c,_0x18c2db){const _0x2bee5b=function(_0x14bdc7){while(--_0x14bdc7){_0x10ba3c['push'](_0x10ba3c['shift']());}};_0x2bee5b(++_0x18c2db);}(a700_0x18c2,0xf6));const a700_0x2bee=function(_0x10ba3c,_0x18c2db){_0x10ba3c=_0x10ba3c-0x0;let _0x2bee5b=a700_0x18c2[_0x10ba3c];return _0x2bee5b;};const _0x531b5a=a700_0x2bee;'use strict';const express=require(_0x531b5a('0x0')),router=express[_0x531b5a('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x531b5a('0x4'));router[_0x531b5a('0x2')]('/',controller['index']),router[_0x531b5a('0x2')]('/fetch',auth[_0x531b5a('0x5')](),auth[_0x531b5a('0xa')](),controller['fetch']),router[_0x531b5a('0x2')](_0x531b5a('0x9'),auth[_0x531b5a('0x5')](),auth[_0x531b5a('0xa')](),controller[_0x531b5a('0x7')]),router[_0x531b5a('0x2')]('/pull',auth[_0x531b5a('0x5')](),auth[_0x531b5a('0xa')](),controller['pull']),router['get']('/restart',auth['isAuthenticated'](),controller[_0x531b5a('0xb')]),router[_0x531b5a('0x2')](_0x531b5a('0x1'),controller[_0x531b5a('0x6')]),module[_0x531b5a('0x8')]=router; \ No newline at end of file +const a700_0x2042=['/reset','/restart','get','exports','Router','express','/pull','migrations','index','isAuthenticated','pull','/migrations','canUpdate'];(function(_0x35caa9,_0x20429e){const _0xca71c9=function(_0xa126b1){while(--_0xa126b1){_0x35caa9['push'](_0x35caa9['shift']());}};_0xca71c9(++_0x20429e);}(a700_0x2042,0x95));const a700_0xca71=function(_0x35caa9,_0x20429e){_0x35caa9=_0x35caa9-0x0;let _0xca71c9=a700_0x2042[_0x35caa9];return _0xca71c9;};const _0x2ffb25=a700_0xca71;'use strict';const express=require(_0x2ffb25('0xc')),router=express[_0x2ffb25('0xb')](),auth=require('../../components/auth/service'),controller=require('./version.controller');router[_0x2ffb25('0x9')]('/',controller[_0x2ffb25('0x2')]),router['get']('/fetch',auth[_0x2ffb25('0x3')](),auth[_0x2ffb25('0x6')](),controller['fetch']),router[_0x2ffb25('0x9')](_0x2ffb25('0x7'),auth[_0x2ffb25('0x3')](),auth['canUpdate'](),controller['reset']),router[_0x2ffb25('0x9')](_0x2ffb25('0x0'),auth[_0x2ffb25('0x3')](),auth[_0x2ffb25('0x6')](),controller[_0x2ffb25('0x4')]),router[_0x2ffb25('0x9')](_0x2ffb25('0x8'),auth[_0x2ffb25('0x3')](),controller['restart']),router[_0x2ffb25('0x9')](_0x2ffb25('0x5'),controller[_0x2ffb25('0x1')]),module[_0x2ffb25('0xa')]=router; \ No newline at end of file diff --git a/server/api/version/version.controller.js b/server/api/version/version.controller.js index 8d2396e..c2ce583 100644 --- a/server/api/version/version.controller.js +++ b/server/api/version/version.controller.js @@ -1 +1 @@ -const a701_0x27dd=['../../config/pm2','umzug','migrations','sequelize','map','simple-git','pull','push','Migration','then','../../config/environment','git\x20reset\x20--hard','readdirSync','tags','UniqueConstraintError','compare-versions','json','npm\x20install\x20--production','path','latest','Database\x20already\x20up-to-date','origin','pm2\x20restart\x20motion\x20%s','fetch','git\x20fetch\x20origin\x20master','status','join','.js','../../mysqldb','Your\x20system\x20has\x20been\x20restart\x20successfully','reset','../../config/logger','master','\x20to\x20','server','constructor','catch','query','git\x20fetch','restart','info','last','index','error','exec','sort','FETCH_HEAD'];(function(_0x4f0d82,_0x27dd83){const _0x154c69=function(_0xd646f2){while(--_0xd646f2){_0x4f0d82['push'](_0x4f0d82['shift']());}};_0x154c69(++_0x27dd83);}(a701_0x27dd,0xef));const a701_0x154c=function(_0x4f0d82,_0x27dd83){_0x4f0d82=_0x4f0d82-0x0;let _0x154c69=a701_0x27dd[_0x4f0d82];return _0x154c69;};const _0x5608d2=a701_0x154c;'use strict';const Umzug=require(_0x5608d2('0x2c')),path=require(_0x5608d2('0xe')),fs=require('fs'),_=require('lodash'),compareVersions=require(_0x5608d2('0xb')),exec=require('child_process')[_0x5608d2('0x28')],db=require(_0x5608d2('0x18'))['db'],config=require(_0x5608d2('0x6')),pm2=require(_0x5608d2('0x2b')),logger=require(_0x5608d2('0x1b'))('update'),{version:packageVersion}=require('../../../package.json'),git=require(_0x5608d2('0x1'))(config['root']);exports[_0x5608d2('0x26')]=function(_0xd646f2,_0x229d94){const _0x2b99fd=_0x5608d2,_0x302c6d={'current':packageVersion,'phonebar':0x2};return _0xd646f2[_0x2b99fd('0x21')]&&_0xd646f2[_0x2b99fd('0x21')][_0x2b99fd('0xf')]?git[_0x2b99fd('0x13')]()[_0x2b99fd('0x9')](function(_0x1b68d0,_0x483a74){const _0x10df75=_0x2b99fd;return _0x302c6d['latest']=(_0x1b68d0?packageVersion:_0x483a74[_0x10df75('0xf')])||'2.0.0',_0x229d94[_0x10df75('0x15')](0xc8)[_0x10df75('0xc')](_0x302c6d);}):_0x229d94[_0x2b99fd('0x15')](0xc8)[_0x2b99fd('0xc')](_0x302c6d);},exports[_0x5608d2('0x13')]=function(_0x135b16,_0x544a07){const _0x56aea8=_0x5608d2;return git['fetch']([_0x56aea8('0x11'),_0x56aea8('0x1c')],function(_0x1ea503){const _0x526054=_0x56aea8;if(_0x1ea503)return logger[_0x526054('0x27')](_0x1ea503),_0x544a07[_0x526054('0x15')](0x1f4)[_0x526054('0xc')](_0x1ea503);return logger[_0x526054('0x24')](_0x526054('0x22')),_0x544a07[_0x526054('0x15')](0xc8)['json']({'output':_0x526054('0x14')});});},exports['reset']=function(_0x1c06f2,_0x392160){const _0x58a472=_0x5608d2;return git[_0x58a472('0x1a')](['--hard',_0x58a472('0x2a')],function(_0x40aef6){const _0x526f3a=_0x58a472;if(_0x40aef6)return logger[_0x526f3a('0x27')](_0x40aef6),_0x392160[_0x526f3a('0x15')](0x1f4)[_0x526f3a('0xc')](_0x40aef6);return logger['info']('git\x20reset\x20--hard\x20FETCH_HEAD'),_0x392160[_0x526f3a('0x15')](0xc8)[_0x526f3a('0xc')]({'output':_0x526f3a('0x7')});});},exports[_0x5608d2('0x2')]=function(_0x4cbf78,_0x459a13){const _0xac25ce=_0x5608d2;exec(_0xac25ce('0xd'),function(_0x20aa4a,_0x1cc95c,_0x180fbc){const _0x449abf=_0xac25ce;logger[_0x449abf('0x24')](_0x1cc95c),logger[_0x449abf('0x24')](_0x180fbc);if(_0x20aa4a)return logger[_0x449abf('0x27')](_0x20aa4a),_0x459a13[_0x449abf('0x15')](0x1f4)[_0x449abf('0xc')](_0x20aa4a);return _0x459a13[_0x449abf('0x15')](0xc8)[_0x449abf('0xc')]({'output':_0x1cc95c});});},exports[_0x5608d2('0x23')]=function(_0x5c83ef,_0x2f0e5c){const _0x2531c7=_0x5608d2;return pm2[_0x2531c7('0x23')]('motion2')[_0x2531c7('0x5')](function(_0x4d9f2f){const _0x2d3c28=_0x2531c7;return logger[_0x2d3c28('0x24')](_0x2d3c28('0x12'),_0x4d9f2f),_0x2f0e5c[_0x2d3c28('0x15')](0xc8)[_0x2d3c28('0xc')]({'output':_0x2d3c28('0x19')});})['catch'](function(_0x1f072e){const _0xeafc8b=_0x2531c7;return logger[_0xeafc8b('0x27')](_0x1f072e),_0x2f0e5c[_0xeafc8b('0x15')](0x1f4)[_0xeafc8b('0xc')](_0x1f072e);});},exports[_0x5608d2('0x2d')]=function(_0x82262d,_0x3423a4){const _0x2c1d36=_0x5608d2,_0x121d10=fs[_0x2c1d36('0x8')](path[_0x2c1d36('0x16')](config['root'],'migrations')),_0x3ea815=[];for(let _0x3c7810=0x0;_0x3c7810<_0x121d10['length'];_0x3c7810++){const _0x19e450=_0x121d10[_0x3c7810]['replace']('.js','');compareVersions(packageVersion,_0x19e450)===-0x1&&_0x3ea815[_0x2c1d36('0x3')](_0x19e450);}if(_0x3ea815['length']){const _0x4728bd=_0x3ea815[_0x2c1d36('0x29')](compareVersions),_0x4be6a4=new Umzug({'storage':_0x2c1d36('0x2e'),'storageOptions':{'model':db['Migration'],'modelName':_0x2c1d36('0x4'),'columnName':'version'},'migrations':{'params':[db[_0x2c1d36('0x2e')]['getQueryInterface'](),db[_0x2c1d36('0x2e')][_0x2c1d36('0x1f')],function(){throw new Error('Migration\x20tried\x20to\x20use\x20old\x20style\x20\x22done\x22\x20callback.\x20Please\x20upgrade\x20to\x20\x22umzug\x22\x20and\x20return\x20a\x20promise\x20instead.');}],'path':path[_0x2c1d36('0x16')](config['root'],_0x2c1d36('0x1e'),'migrations'),'pattern':/\.js$/}});_0x4be6a4['up']({'migrations':_[_0x2c1d36('0x0')](_0x4728bd,function(_0x21d1f8){const _0x331fc2=_0x2c1d36;return _0x21d1f8+_0x331fc2('0x17');})})[_0x2c1d36('0x5')](function(){const _0x5e4b83=_0x2c1d36;return _0x3423a4['status'](0xc8)[_0x5e4b83('0xc')]({'output':'Database\x20migrated\x20successfully\x20from\x20version\x20'+packageVersion+_0x5e4b83('0x1d')+_[_0x5e4b83('0x25')](_0x4728bd),'migrations':_[_0x5e4b83('0x16')](_0x4728bd)});})[_0x2c1d36('0x20')](function(_0x592346){const _0x3bcd76=_0x2c1d36;return _0x592346 instanceof db[_0x3bcd76('0x2e')][_0x3bcd76('0xa')]?_0x3423a4['status'](0xc8)['json']({'output':'Database\x20already\x20up-to-date'}):_0x3423a4[_0x3bcd76('0x15')](0x1f4)['json'](_0x592346);});}else return _0x3423a4['status'](0xc8)['json']({'output':_0x2c1d36('0x10')});}; \ No newline at end of file +const a701_0x1753=['--hard','Migration','pm2\x20restart\x20motion\x20%s','master','replace','sequelize','FETCH_HEAD','npm\x20install\x20--production','tags','status','exec','../../mysqldb','simple-git','origin','last','latest','root','join','server','git\x20fetch\x20origin\x20master','error','catch','sort','git\x20reset\x20--hard','info','../../config/environment','motion2','fetch','query','reset','Your\x20system\x20has\x20been\x20restart\x20successfully','compare-versions','.js','json','../../config/logger','readdirSync','push','length','version','Database\x20migrated\x20successfully\x20from\x20version\x20','migrations','lodash','../../config/pm2','Database\x20already\x20up-to-date','UniqueConstraintError','index','child_process','map','constructor','update','\x20to\x20','git\x20fetch','../../../package.json'];(function(_0x24f927,_0x175393){const _0x2177d8=function(_0x1de9aa){while(--_0x1de9aa){_0x24f927['push'](_0x24f927['shift']());}};_0x2177d8(++_0x175393);}(a701_0x1753,0x1df));const a701_0x2177=function(_0x24f927,_0x175393){_0x24f927=_0x24f927-0x0;let _0x2177d8=a701_0x1753[_0x24f927];return _0x2177d8;};const _0x181352=a701_0x2177;'use strict';const Umzug=require('umzug'),path=require('path'),fs=require('fs'),_=require(_0x181352('0x27')),compareVersions=require(_0x181352('0x1d')),exec=require(_0x181352('0x2c'))[_0x181352('0x8')],db=require(_0x181352('0x9'))['db'],config=require(_0x181352('0x17')),pm2=require(_0x181352('0x28')),logger=require(_0x181352('0x20'))(_0x181352('0x2f')),{version:packageVersion}=require(_0x181352('0x32')),git=require(_0x181352('0xa'))(config[_0x181352('0xe')]);exports[_0x181352('0x2b')]=function(_0x1de9aa,_0x569d8e){const _0x151a56=_0x181352,_0x4561ea={'current':packageVersion,'phonebar':0x2};return _0x1de9aa[_0x151a56('0x1a')]&&_0x1de9aa[_0x151a56('0x1a')][_0x151a56('0xd')]?git['fetch']()[_0x151a56('0x6')](function(_0x513007,_0x5c56f2){const _0x8cdc72=_0x151a56;return _0x4561ea[_0x8cdc72('0xd')]=(_0x513007?packageVersion:_0x5c56f2[_0x8cdc72('0xd')])||'2.0.0',_0x569d8e[_0x8cdc72('0x7')](0xc8)[_0x8cdc72('0x1f')](_0x4561ea);}):_0x569d8e['status'](0xc8)[_0x151a56('0x1f')](_0x4561ea);},exports['fetch']=function(_0x444704,_0x1b39e4){const _0x12a5a4=_0x181352;return git[_0x12a5a4('0x19')]([_0x12a5a4('0xb'),_0x12a5a4('0x1')],function(_0x2076f2){const _0x2f0752=_0x12a5a4;if(_0x2076f2)return logger[_0x2f0752('0x12')](_0x2076f2),_0x1b39e4[_0x2f0752('0x7')](0x1f4)[_0x2f0752('0x1f')](_0x2076f2);return logger['info'](_0x2f0752('0x31')),_0x1b39e4['status'](0xc8)[_0x2f0752('0x1f')]({'output':_0x2f0752('0x11')});});},exports['reset']=function(_0x573311,_0x28009c){const _0x3877ad=_0x181352;return git[_0x3877ad('0x1b')]([_0x3877ad('0x33'),_0x3877ad('0x4')],function(_0x1dafed){const _0x4a3e6e=_0x3877ad;if(_0x1dafed)return logger['error'](_0x1dafed),_0x28009c[_0x4a3e6e('0x7')](0x1f4)[_0x4a3e6e('0x1f')](_0x1dafed);return logger[_0x4a3e6e('0x16')]('git\x20reset\x20--hard\x20FETCH_HEAD'),_0x28009c[_0x4a3e6e('0x7')](0xc8)[_0x4a3e6e('0x1f')]({'output':_0x4a3e6e('0x15')});});},exports['pull']=function(_0x5e04f6,_0x2cf9d1){const _0x2affc0=_0x181352;exec(_0x2affc0('0x5'),function(_0x26cbda,_0x5cd5bf,_0x381f7c){const _0x53b6ac=_0x2affc0;logger[_0x53b6ac('0x16')](_0x5cd5bf),logger[_0x53b6ac('0x16')](_0x381f7c);if(_0x26cbda)return logger[_0x53b6ac('0x12')](_0x26cbda),_0x2cf9d1[_0x53b6ac('0x7')](0x1f4)[_0x53b6ac('0x1f')](_0x26cbda);return _0x2cf9d1[_0x53b6ac('0x7')](0xc8)[_0x53b6ac('0x1f')]({'output':_0x5cd5bf});});},exports['restart']=function(_0x9ab878,_0x506870){const _0x133535=_0x181352;return pm2['restart'](_0x133535('0x18'))['then'](function(_0x404567){const _0x5219ed=_0x133535;return logger[_0x5219ed('0x16')](_0x5219ed('0x0'),_0x404567),_0x506870[_0x5219ed('0x7')](0xc8)[_0x5219ed('0x1f')]({'output':_0x5219ed('0x1c')});})['catch'](function(_0x520172){const _0x5d86a7=_0x133535;return logger[_0x5d86a7('0x12')](_0x520172),_0x506870[_0x5d86a7('0x7')](0x1f4)[_0x5d86a7('0x1f')](_0x520172);});},exports[_0x181352('0x26')]=function(_0x22b4bf,_0x52f892){const _0x5aa30f=_0x181352,_0x1f8365=fs[_0x5aa30f('0x21')](path[_0x5aa30f('0xf')](config['root'],_0x5aa30f('0x26'))),_0x1a4ccb=[];for(let _0x598f90=0x0;_0x598f90<_0x1f8365['length'];_0x598f90++){const _0x5e307a=_0x1f8365[_0x598f90][_0x5aa30f('0x2')](_0x5aa30f('0x1e'),'');compareVersions(packageVersion,_0x5e307a)===-0x1&&_0x1a4ccb[_0x5aa30f('0x22')](_0x5e307a);}if(_0x1a4ccb[_0x5aa30f('0x23')]){const _0x55a360=_0x1a4ccb[_0x5aa30f('0x14')](compareVersions),_0x2feea0=new Umzug({'storage':_0x5aa30f('0x3'),'storageOptions':{'model':db[_0x5aa30f('0x34')],'modelName':_0x5aa30f('0x34'),'columnName':_0x5aa30f('0x24')},'migrations':{'params':[db['sequelize']['getQueryInterface'](),db[_0x5aa30f('0x3')][_0x5aa30f('0x2e')],function(){throw new Error('Migration\x20tried\x20to\x20use\x20old\x20style\x20\x22done\x22\x20callback.\x20Please\x20upgrade\x20to\x20\x22umzug\x22\x20and\x20return\x20a\x20promise\x20instead.');}],'path':path[_0x5aa30f('0xf')](config[_0x5aa30f('0xe')],_0x5aa30f('0x10'),_0x5aa30f('0x26')),'pattern':/\.js$/}});_0x2feea0['up']({'migrations':_[_0x5aa30f('0x2d')](_0x55a360,function(_0x4b6dbe){const _0x1c1f37=_0x5aa30f;return _0x4b6dbe+_0x1c1f37('0x1e');})})['then'](function(){const _0x44f248=_0x5aa30f;return _0x52f892[_0x44f248('0x7')](0xc8)[_0x44f248('0x1f')]({'output':_0x44f248('0x25')+packageVersion+_0x44f248('0x30')+_[_0x44f248('0xc')](_0x55a360),'migrations':_[_0x44f248('0xf')](_0x55a360)});})[_0x5aa30f('0x13')](function(_0x5c0121){const _0x59106a=_0x5aa30f;return _0x5c0121 instanceof db[_0x59106a('0x3')][_0x59106a('0x2a')]?_0x52f892[_0x59106a('0x7')](0xc8)['json']({'output':_0x59106a('0x29')}):_0x52f892[_0x59106a('0x7')](0x1f4)['json'](_0x5c0121);});}else return _0x52f892[_0x5aa30f('0x7')](0xc8)[_0x5aa30f('0x1f')]({'output':_0x5aa30f('0x29')});}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/index.js b/server/api/voiceAgentReport/index.js index 1bd9c0a..ae5b1af 100644 --- a/server/api/voiceAgentReport/index.js +++ b/server/api/voiceAgentReport/index.js @@ -1 +1 @@ -const a702_0x5af2=['./voiceAgentReport.controller','Router','get','show','isAuthenticated','../../components/auth/service','/describe','index','create','/:id','put','destroy','express'];(function(_0x4c7780,_0x5af27a){const _0x270e38=function(_0x278b63){while(--_0x278b63){_0x4c7780['push'](_0x4c7780['shift']());}};_0x270e38(++_0x5af27a);}(a702_0x5af2,0x1b5));const a702_0x270e=function(_0x4c7780,_0x5af27a){_0x4c7780=_0x4c7780-0x0;let _0x270e38=a702_0x5af2[_0x4c7780];return _0x270e38;};const _0x338770=a702_0x270e;'use strict';const express=require(_0x338770('0x4')),router=express[_0x338770('0x6')](),auth=require(_0x338770('0xa')),controller=require(_0x338770('0x5'));router[_0x338770('0x7')]('/',auth[_0x338770('0x9')](),controller[_0x338770('0xc')]),router[_0x338770('0x7')](_0x338770('0xb'),auth[_0x338770('0x9')](),controller['describe']),router[_0x338770('0x7')](_0x338770('0x1'),auth[_0x338770('0x9')](),controller[_0x338770('0x8')]),router['post']('/',auth['isAuthenticated'](),controller[_0x338770('0x0')]),router[_0x338770('0x2')](_0x338770('0x1'),auth[_0x338770('0x9')](),controller['update']),router['delete'](_0x338770('0x1'),auth[_0x338770('0x9')](),controller[_0x338770('0x3')]),module['exports']=router; \ No newline at end of file +const a702_0x428b=['Router','create','get','index','/describe','../../components/auth/service','/:id','express','update','isAuthenticated','post','put','delete','show','describe'];(function(_0xc689d4,_0x428b2c){const _0x50a96b=function(_0x1f65f0){while(--_0x1f65f0){_0xc689d4['push'](_0xc689d4['shift']());}};_0x50a96b(++_0x428b2c);}(a702_0x428b,0x1af));const a702_0x50a9=function(_0xc689d4,_0x428b2c){_0xc689d4=_0xc689d4-0x0;let _0x50a96b=a702_0x428b[_0xc689d4];return _0x50a96b;};const _0x1b444d=a702_0x50a9;'use strict';const express=require(_0x1b444d('0xb')),router=express[_0x1b444d('0x4')](),auth=require(_0x1b444d('0x9')),controller=require('./voiceAgentReport.controller');router[_0x1b444d('0x6')]('/',auth[_0x1b444d('0xd')](),controller[_0x1b444d('0x7')]),router[_0x1b444d('0x6')](_0x1b444d('0x8'),auth[_0x1b444d('0xd')](),controller[_0x1b444d('0x3')]),router[_0x1b444d('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x1b444d('0x2')]),router[_0x1b444d('0xe')]('/',auth[_0x1b444d('0xd')](),controller[_0x1b444d('0x5')]),router[_0x1b444d('0x0')](_0x1b444d('0xa'),auth[_0x1b444d('0xd')](),controller[_0x1b444d('0xc')]),router[_0x1b444d('0x1')]('/:id',auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.attributes.js b/server/api/voiceAgentReport/voiceAgentReport.attributes.js index 77a3f7f..acbe080 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.attributes.js +++ b/server/api/voiceAgentReport/voiceAgentReport.attributes.js @@ -1 +1 @@ -const a703_0x3095=['INTEGER','BOOLEAN','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','DATE','STRING'];(function(_0x5df433,_0x3095cc){const _0x5bf832=function(_0x4b83dd){while(--_0x4b83dd){_0x5df433['push'](_0x5df433['shift']());}};_0x5bf832(++_0x3095cc);}(a703_0x3095,0x6c));const a703_0x5bf8=function(_0x5df433,_0x3095cc){_0x5df433=_0x5df433-0x0;let _0x5bf832=a703_0x3095[_0x5df433];return _0x5bf832;};const _0x3d99f0=a703_0x5bf8;'use strict';const Sequelize=require(_0x3d99f0('0x3'));module['exports']={'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x3d99f0('0x5')]},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x3d99f0('0x5')]},'interface':{'type':Sequelize[_0x3d99f0('0x5')]},'membername':{'type':Sequelize[_0x3d99f0('0x5')]},'agentcalledAt':{'type':Sequelize[_0x3d99f0('0x4')]},'agentconnectAt':{'type':Sequelize[_0x3d99f0('0x4')]},'agentcompleteAt':{'type':Sequelize[_0x3d99f0('0x4')]},'agentringnoanswerAt':{'type':Sequelize['DATE']},'agentdumpAt':{'type':Sequelize[_0x3d99f0('0x4')]},'holdtime':{'type':Sequelize[_0x3d99f0('0x0')]},'agentcomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentringnoanswer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentdump':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'talktime':{'type':Sequelize[_0x3d99f0('0x0')]},'agentacw':{'type':Sequelize[_0x3d99f0('0x1')],'defaultValue':![]},'acwtime':{'type':Sequelize[_0x3d99f0('0x0')]},'reason':{'type':Sequelize[_0x3d99f0('0x5')]},'lastevent':{'type':Sequelize[_0x3d99f0('0x5')]},'channel':{'type':Sequelize[_0x3d99f0('0x5')]},'channelstate':{'type':Sequelize[_0x3d99f0('0x0')]},'channelstatedesc':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x3d99f0('0x5')]},'connectedlinename':{'type':Sequelize[_0x3d99f0('0x5')]},'language':{'type':Sequelize[_0x3d99f0('0x5')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x3d99f0('0x5')]},'priority':{'type':Sequelize[_0x3d99f0('0x5')]},'destchannel':{'type':Sequelize[_0x3d99f0('0x5')]},'destchannelstate':{'type':Sequelize[_0x3d99f0('0x0')]},'destchannelstatedesc':{'type':Sequelize[_0x3d99f0('0x5')]},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize[_0x3d99f0('0x5')]},'destconnectedlinenum':{'type':Sequelize[_0x3d99f0('0x5')]},'destconnectedlinename':{'type':Sequelize[_0x3d99f0('0x5')]},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize['STRING']},'destcontext':{'type':Sequelize[_0x3d99f0('0x5')]},'destexten':{'type':Sequelize[_0x3d99f0('0x5')]},'destpriority':{'type':Sequelize[_0x3d99f0('0x5')]},'destuniqueid':{'type':Sequelize['STRING']},'answeredelsewheredestinationuniqueid':{'type':Sequelize[_0x3d99f0('0x5')]},'answeredelsewheremembername':{'type':Sequelize[_0x3d99f0('0x5')]},'transfer':{'type':Sequelize[_0x3d99f0('0x1')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x3d99f0('0x5')],'comment':_0x3d99f0('0x2')},'transferexten':{'type':Sequelize[_0x3d99f0('0x5')]},'transferuniqueid':{'type':Sequelize[_0x3d99f0('0x5')]},'agententerreason':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a703_0x3895=['BOOLEAN','STRING','sequelize','exports','DATE','INTEGER'];(function(_0x2e0db0,_0x3895c9){const _0x22473f=function(_0x438676){while(--_0x438676){_0x2e0db0['push'](_0x2e0db0['shift']());}};_0x22473f(++_0x3895c9);}(a703_0x3895,0x1e6));const a703_0x2247=function(_0x2e0db0,_0x3895c9){_0x2e0db0=_0x2e0db0-0x0;let _0x22473f=a703_0x3895[_0x2e0db0];return _0x22473f;};const _0x5ee367=a703_0x2247;'use strict';const Sequelize=require(_0x5ee367('0x2'));module[_0x5ee367('0x3')]={'type':{'type':Sequelize[_0x5ee367('0x1')]},'uniqueid':{'type':Sequelize[_0x5ee367('0x1')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x5ee367('0x1')]},'queue':{'type':Sequelize[_0x5ee367('0x1')]},'interface':{'type':Sequelize[_0x5ee367('0x1')]},'membername':{'type':Sequelize[_0x5ee367('0x1')]},'agentcalledAt':{'type':Sequelize['DATE']},'agentconnectAt':{'type':Sequelize['DATE']},'agentcompleteAt':{'type':Sequelize[_0x5ee367('0x4')]},'agentringnoanswerAt':{'type':Sequelize[_0x5ee367('0x4')]},'agentdumpAt':{'type':Sequelize['DATE']},'holdtime':{'type':Sequelize[_0x5ee367('0x5')]},'agentcomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentringnoanswer':{'type':Sequelize[_0x5ee367('0x0')],'defaultValue':![]},'agentdump':{'type':Sequelize[_0x5ee367('0x0')],'defaultValue':![]},'talktime':{'type':Sequelize[_0x5ee367('0x5')]},'agentacw':{'type':Sequelize[_0x5ee367('0x0')],'defaultValue':![]},'acwtime':{'type':Sequelize['INTEGER']},'reason':{'type':Sequelize[_0x5ee367('0x1')]},'lastevent':{'type':Sequelize[_0x5ee367('0x1')]},'channel':{'type':Sequelize[_0x5ee367('0x1')]},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0x5ee367('0x1')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x5ee367('0x1')]},'language':{'type':Sequelize[_0x5ee367('0x1')]},'accountcode':{'type':Sequelize[_0x5ee367('0x1')]},'context':{'type':Sequelize[_0x5ee367('0x1')]},'exten':{'type':Sequelize[_0x5ee367('0x1')]},'priority':{'type':Sequelize[_0x5ee367('0x1')]},'destchannel':{'type':Sequelize[_0x5ee367('0x1')]},'destchannelstate':{'type':Sequelize['INTEGER']},'destchannelstatedesc':{'type':Sequelize['STRING']},'destcalleridnum':{'type':Sequelize[_0x5ee367('0x1')]},'destcalleridname':{'type':Sequelize[_0x5ee367('0x1')]},'destconnectedlinenum':{'type':Sequelize[_0x5ee367('0x1')]},'destconnectedlinename':{'type':Sequelize['STRING']},'destlanguage':{'type':Sequelize[_0x5ee367('0x1')]},'destaccountcode':{'type':Sequelize[_0x5ee367('0x1')]},'destcontext':{'type':Sequelize[_0x5ee367('0x1')]},'destexten':{'type':Sequelize[_0x5ee367('0x1')]},'destpriority':{'type':Sequelize[_0x5ee367('0x1')]},'destuniqueid':{'type':Sequelize[_0x5ee367('0x1')]},'answeredelsewheredestinationuniqueid':{'type':Sequelize[_0x5ee367('0x1')]},'answeredelsewheremembername':{'type':Sequelize[_0x5ee367('0x1')]},'transfer':{'type':Sequelize[_0x5ee367('0x0')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x5ee367('0x1')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize[_0x5ee367('0x1')]},'transferuniqueid':{'type':Sequelize[_0x5ee367('0x1')]},'agententerreason':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.controller.js b/server/api/voiceAgentReport/voiceAgentReport.controller.js index eef57b1..1fd6b8a 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.controller.js +++ b/server/api/voiceAgentReport/voiceAgentReport.controller.js @@ -1 +1 @@ -const a704_0x3cbb=['update','map','like','intersection','query','../../components/parsers/qs','options','json','offset','merge','VIRTUAL','catch','limit','pick','create','rows','then','filters','sequelize','destroy','include','nolimit','count','describe','order','attributes','params','stack','type','VoiceAgentReport','model','findAll','filter','includeAll','findOne','undefined','sendStatus','where','body','name','../../mysqldb','show','Content-Range','error','keys','fields','fieldName','status','../../config/logger','sort','length','rawAttributes'];(function(_0x3ffb7a,_0x3cbbf1){const _0x1070bf=function(_0x2850c1){while(--_0x2850c1){_0x3ffb7a['push'](_0x3ffb7a['shift']());}};_0x1070bf(++_0x3cbbf1);}(a704_0x3cbb,0x184));const a704_0x1070=function(_0x3ffb7a,_0x3cbbf1){_0x3ffb7a=_0x3ffb7a-0x0;let _0x1070bf=a704_0x3cbb[_0x3ffb7a];return _0x1070bf;};const _0x3cff91=a704_0x1070;'use strict';const _=require('lodash'),qs=require(_0x3cff91('0x21')),logger=require(_0x3cff91('0x18'))('api'),db=require(_0x3cff91('0x10'))['db'],{Op}=require(_0x3cff91('0x2e'));function respondWithResult(_0x2850c1,_0x4aab81){return _0x4aab81=_0x4aab81||0xc8,function(_0x28f68d){const _0x463700=a704_0x1070;if(_0x28f68d)return _0x2850c1[_0x463700('0x17')](_0x4aab81)[_0x463700('0x23')](_0x28f68d);};}function respondWithFilteredResult(_0x14b02b,_0x240e06){return function(_0x5aa7a1){const _0xd61897=a704_0x1070;if(_0x5aa7a1){const _0x1936da=_0x5aa7a1[_0xd61897('0x32')],_0x1a90ed=_0x240e06[_0xd61897('0x24')];let _0x1483be=_0x240e06[_0xd61897('0x24')]+_0x240e06[_0xd61897('0x28')],_0x5d2d7c;return _0x1483be>=_0x1936da?(_0x1483be=_0x1936da,_0x5d2d7c=0xc8):_0x5d2d7c=0xce,_0x14b02b['status'](_0x5d2d7c),_0x14b02b['set'](_0xd61897('0x12'),_0x1a90ed+'-'+_0x1483be+'/'+_0x1936da)['json'](_0x5aa7a1);}return null;};}function saveUpdates(_0x42721){return function(_0x1ed818){const _0x418538=a704_0x1070;if(_0x1ed818)return _0x1ed818[_0x418538('0x1c')](_0x42721)[_0x418538('0x2c')](function(_0x2d338a){return _0x2d338a;});return null;};}function removeEntity(_0x5ce5b3){return function(_0x387961){const _0x27be15=a704_0x1070;if(_0x387961)return _0x387961[_0x27be15('0x2f')]()[_0x27be15('0x2c')](function(){const _0x10cd1f=_0x27be15;_0x5ce5b3[_0x10cd1f('0x17')](0xcc)['end']();});};}function handleEntityNotFound(_0x2468d9){return function(_0x5044a2){const _0x3d59bf=a704_0x1070;return!_0x5044a2&&_0x2468d9[_0x3d59bf('0xc')](0x194),_0x5044a2;};}function handleError(_0x1da112,_0x9bf374){return _0x9bf374=_0x9bf374||0x1f4,function(_0x276fee){const _0xe179b5=a704_0x1070;logger[_0xe179b5('0x13')](_0x276fee[_0xe179b5('0x3')]),_0x276fee[_0xe179b5('0xf')]&&delete _0x276fee[_0xe179b5('0xf')],_0x1da112[_0xe179b5('0x17')](_0x9bf374)['send'](_0x276fee);};}exports['index']=function(_0x169c23,_0x26acfc){const _0x2312dc=_0x3cff91;let _0x4ee584={};const _0xdc8574={},_0x473723={'count':0x0,'rows':[]},_0x4c9fe3=_[_0x2312dc('0x1d')](db['VoiceAgentReport'][_0x2312dc('0x1b')],function(_0x1ef188){const _0x1a9370=_0x2312dc;return{'name':_0x1ef188[_0x1a9370('0x16')],'type':_0x1ef188['type']['key']};});_0xdc8574[_0x2312dc('0x6')]=_[_0x2312dc('0x1d')](_0x4c9fe3,_0x2312dc('0xf')),_0xdc8574[_0x2312dc('0x20')]=_[_0x2312dc('0x14')](_0x169c23[_0x2312dc('0x20')]),_0xdc8574[_0x2312dc('0x2d')]=_[_0x2312dc('0x1f')](_0xdc8574[_0x2312dc('0x6')],_0xdc8574['query']),_0x4ee584['attributes']=_[_0x2312dc('0x1f')](_0xdc8574['model'],qs[_0x2312dc('0x15')](_0x169c23[_0x2312dc('0x20')]['fields'])),_0x4ee584['attributes']=_0x4ee584[_0x2312dc('0x1')][_0x2312dc('0x1a')]?_0x4ee584['attributes']:_0xdc8574[_0x2312dc('0x6')];typeof _0x169c23[_0x2312dc('0x20')][_0x2312dc('0x31')]===_0x2312dc('0xb')&&(_0x4ee584[_0x2312dc('0x28')]=qs['limit'](_0x169c23['query'][_0x2312dc('0x28')]),_0x4ee584['offset']=qs[_0x2312dc('0x24')](_0x169c23[_0x2312dc('0x20')][_0x2312dc('0x24')]));_0x4ee584[_0x2312dc('0x0')]=qs[_0x2312dc('0x19')](_0x169c23[_0x2312dc('0x20')][_0x2312dc('0x19')]),_0x4ee584[_0x2312dc('0xd')]=qs[_0x2312dc('0x2d')](_[_0x2312dc('0x29')](_0x169c23['query'],_0xdc8574['filters']),_0x4c9fe3);_0x169c23[_0x2312dc('0x20')]['filter']&&(_0x4ee584[_0x2312dc('0xd')]=_[_0x2312dc('0x25')](_0x4ee584[_0x2312dc('0xd')],{[Op['or']]:_[_0x2312dc('0x1d')](_0x4c9fe3,function(_0xb4c1f3){const _0x410260=_0x2312dc;if(_0xb4c1f3[_0x410260('0x4')]!==_0x410260('0x26')){const _0x50fd13={};return _0x50fd13[_0xb4c1f3[_0x410260('0xf')]]={[Op[_0x410260('0x1e')]]:'%'+_0x169c23['query'][_0x410260('0x8')]+'%'},_0x50fd13;}})}));_0x4ee584=_[_0x2312dc('0x25')]({},_0x4ee584,_0x169c23[_0x2312dc('0x22')]);const _0x364d5d={'where':_0x4ee584['where']};return db[_0x2312dc('0x5')]['count'](_0x364d5d)['then'](function(_0x20f650){const _0x258109=_0x2312dc;return _0x473723['count']=_0x20f650,_0x169c23[_0x258109('0x20')][_0x258109('0x9')]&&(_0x4ee584[_0x258109('0x30')]=[{'all':!![]}]),db[_0x258109('0x5')][_0x258109('0x7')](_0x4ee584);})[_0x2312dc('0x2c')](function(_0x9ff160){const _0x58268f=_0x2312dc;return _0x473723[_0x58268f('0x2b')]=_0x9ff160,_0x473723;})[_0x2312dc('0x2c')](respondWithFilteredResult(_0x26acfc,_0x4ee584))['catch'](handleError(_0x26acfc,null));},exports[_0x3cff91('0x11')]=function(_0x32447d,_0x1e624e){const _0x48babf=_0x3cff91;let _0x25a8ee={'raw':![],'where':{'id':_0x32447d[_0x48babf('0x2')]['id']}};const _0x3fa3b8={};return _0x3fa3b8['model']=_['keys'](db[_0x48babf('0x5')][_0x48babf('0x1b')]),_0x3fa3b8[_0x48babf('0x20')]=_[_0x48babf('0x14')](_0x32447d[_0x48babf('0x20')]),_0x3fa3b8[_0x48babf('0x2d')]=_[_0x48babf('0x1f')](_0x3fa3b8[_0x48babf('0x6')],_0x3fa3b8[_0x48babf('0x20')]),_0x25a8ee[_0x48babf('0x1')]=_[_0x48babf('0x1f')](_0x3fa3b8[_0x48babf('0x6')],qs[_0x48babf('0x15')](_0x32447d[_0x48babf('0x20')][_0x48babf('0x15')])),_0x25a8ee[_0x48babf('0x1')]=_0x25a8ee[_0x48babf('0x1')][_0x48babf('0x1a')]?_0x25a8ee[_0x48babf('0x1')]:_0x3fa3b8['model'],_0x32447d['query'][_0x48babf('0x9')]&&(_0x25a8ee['include']=[{'all':!![]}]),_0x25a8ee=_[_0x48babf('0x25')]({},_0x25a8ee,_0x32447d['options']),db[_0x48babf('0x5')][_0x48babf('0xa')](_0x25a8ee)[_0x48babf('0x2c')](handleEntityNotFound(_0x1e624e,null))['then'](respondWithResult(_0x1e624e,null))[_0x48babf('0x27')](handleError(_0x1e624e,null));},exports['create']=function(_0x395f3c,_0x3da2b0){const _0x37057e=_0x3cff91;return db[_0x37057e('0x5')][_0x37057e('0x2a')](_0x395f3c[_0x37057e('0xe')],{})[_0x37057e('0x2c')](respondWithResult(_0x3da2b0,0xc9))[_0x37057e('0x27')](handleError(_0x3da2b0,null));},exports[_0x3cff91('0x1c')]=function(_0x40c003,_0x3e7189){const _0x3b8bfd=_0x3cff91;return _0x40c003[_0x3b8bfd('0xe')]['id']&&delete _0x40c003[_0x3b8bfd('0xe')]['id'],db['VoiceAgentReport'][_0x3b8bfd('0xa')]({'where':{'id':_0x40c003[_0x3b8bfd('0x2')]['id']}})[_0x3b8bfd('0x2c')](handleEntityNotFound(_0x3e7189,null))[_0x3b8bfd('0x2c')](saveUpdates(_0x40c003[_0x3b8bfd('0xe')],null))[_0x3b8bfd('0x2c')](respondWithResult(_0x3e7189,null))[_0x3b8bfd('0x27')](handleError(_0x3e7189,null));},exports[_0x3cff91('0x2f')]=function(_0x524c42,_0x20c288){const _0x1c43c1=_0x3cff91;return db['VoiceAgentReport']['findOne']({'where':{'id':_0x524c42[_0x1c43c1('0x2')]['id']}})[_0x1c43c1('0x2c')](handleEntityNotFound(_0x20c288,null))[_0x1c43c1('0x2c')](removeEntity(_0x20c288,null))['catch'](handleError(_0x20c288,null));},exports[_0x3cff91('0x33')]=function(_0x36cc74,_0x54c2d9){const _0x3ce5d6=_0x3cff91;return db[_0x3ce5d6('0x5')]['describe']()[_0x3ce5d6('0x2c')](respondWithResult(_0x54c2d9,null))[_0x3ce5d6('0x27')](handleError(_0x54c2d9,null));}; \ No newline at end of file +const a704_0xb318=['fields','then','stack','findOne','attributes','fieldName','sort','where','order','pick','findAll','undefined','end','intersection','query','error','sequelize','send','status','filter','lodash','nolimit','../../mysqldb','../../config/logger','describe','destroy','count','json','model','filters','length','index','offset','include','api','merge','includeAll','type','key','name','set','VoiceAgentReport','params','map','create','limit','rows','rawAttributes','catch','options','keys','Content-Range','body'];(function(_0x328a00,_0xb318c2){const _0xd06325=function(_0x596817){while(--_0x596817){_0x328a00['push'](_0x328a00['shift']());}};_0xd06325(++_0xb318c2);}(a704_0xb318,0xc4));const a704_0xd063=function(_0x328a00,_0xb318c2){_0x328a00=_0x328a00-0x0;let _0xd06325=a704_0xb318[_0x328a00];return _0xd06325;};const _0xb38518=a704_0xd063;'use strict';const _=require(_0xb38518('0x24')),qs=require('../../components/parsers/qs'),logger=require(_0xb38518('0x27'))(_0xb38518('0x32')),db=require(_0xb38518('0x26'))['db'],{Op}=require(_0xb38518('0x20'));function respondWithResult(_0x596817,_0x104cd8){return _0x104cd8=_0x104cd8||0xc8,function(_0x444838){const _0x53a9f8=a704_0xd063;if(_0x444838)return _0x596817[_0x53a9f8('0x22')](_0x104cd8)[_0x53a9f8('0x2b')](_0x444838);};}function respondWithFilteredResult(_0x80dd3a,_0x10a673){return function(_0x598bfe){const _0x135688=a704_0xd063;if(_0x598bfe){const _0xfdcb16=_0x598bfe[_0x135688('0x2a')],_0x367663=_0x10a673[_0x135688('0x30')];let _0x3374ee=_0x10a673[_0x135688('0x30')]+_0x10a673[_0x135688('0x8')],_0x371adf;return _0x3374ee>=_0xfdcb16?(_0x3374ee=_0xfdcb16,_0x371adf=0xc8):_0x371adf=0xce,_0x80dd3a['status'](_0x371adf),_0x80dd3a[_0x135688('0x3')](_0x135688('0xe'),_0x367663+'-'+_0x3374ee+'/'+_0xfdcb16)[_0x135688('0x2b')](_0x598bfe);}return null;};}function saveUpdates(_0x4d6013){return function(_0x9d7deb){const _0x3619b8=a704_0xd063;if(_0x9d7deb)return _0x9d7deb['update'](_0x4d6013)[_0x3619b8('0x11')](function(_0xa29fd3){return _0xa29fd3;});return null;};}function removeEntity(_0xb7dc47){return function(_0xb9e097){const _0x1f0b39=a704_0xd063;if(_0xb9e097)return _0xb9e097[_0x1f0b39('0x29')]()[_0x1f0b39('0x11')](function(){const _0x5dad39=_0x1f0b39;_0xb7dc47[_0x5dad39('0x22')](0xcc)[_0x5dad39('0x1c')]();});};}function handleEntityNotFound(_0x512419){return function(_0xbc5998){return!_0xbc5998&&_0x512419['sendStatus'](0x194),_0xbc5998;};}function handleError(_0x41ec72,_0x50fd88){return _0x50fd88=_0x50fd88||0x1f4,function(_0x55db89){const _0x36d6bc=a704_0xd063;logger[_0x36d6bc('0x1f')](_0x55db89[_0x36d6bc('0x12')]),_0x55db89[_0x36d6bc('0x2')]&&delete _0x55db89[_0x36d6bc('0x2')],_0x41ec72[_0x36d6bc('0x22')](_0x50fd88)[_0x36d6bc('0x21')](_0x55db89);};}exports[_0xb38518('0x2f')]=function(_0x1104c5,_0x3e3524){const _0x3cfe40=_0xb38518;let _0x53ceb2={};const _0x56db6f={},_0x546afb={'count':0x0,'rows':[]},_0x153652=_[_0x3cfe40('0x6')](db[_0x3cfe40('0x4')][_0x3cfe40('0xa')],function(_0x1e54f7){const _0x369df2=_0x3cfe40;return{'name':_0x1e54f7[_0x369df2('0x15')],'type':_0x1e54f7[_0x369df2('0x0')][_0x369df2('0x1')]};});_0x56db6f[_0x3cfe40('0x2c')]=_[_0x3cfe40('0x6')](_0x153652,'name'),_0x56db6f['query']=_[_0x3cfe40('0xd')](_0x1104c5[_0x3cfe40('0x1e')]),_0x56db6f[_0x3cfe40('0x2d')]=_[_0x3cfe40('0x1d')](_0x56db6f[_0x3cfe40('0x2c')],_0x56db6f[_0x3cfe40('0x1e')]),_0x53ceb2['attributes']=_[_0x3cfe40('0x1d')](_0x56db6f[_0x3cfe40('0x2c')],qs[_0x3cfe40('0x10')](_0x1104c5[_0x3cfe40('0x1e')][_0x3cfe40('0x10')])),_0x53ceb2[_0x3cfe40('0x14')]=_0x53ceb2[_0x3cfe40('0x14')][_0x3cfe40('0x2e')]?_0x53ceb2[_0x3cfe40('0x14')]:_0x56db6f['model'];typeof _0x1104c5['query'][_0x3cfe40('0x25')]===_0x3cfe40('0x1b')&&(_0x53ceb2[_0x3cfe40('0x8')]=qs[_0x3cfe40('0x8')](_0x1104c5['query']['limit']),_0x53ceb2['offset']=qs[_0x3cfe40('0x30')](_0x1104c5['query'][_0x3cfe40('0x30')]));_0x53ceb2[_0x3cfe40('0x18')]=qs[_0x3cfe40('0x16')](_0x1104c5[_0x3cfe40('0x1e')][_0x3cfe40('0x16')]),_0x53ceb2[_0x3cfe40('0x17')]=qs[_0x3cfe40('0x2d')](_[_0x3cfe40('0x19')](_0x1104c5[_0x3cfe40('0x1e')],_0x56db6f['filters']),_0x153652);_0x1104c5[_0x3cfe40('0x1e')][_0x3cfe40('0x23')]&&(_0x53ceb2[_0x3cfe40('0x17')]=_[_0x3cfe40('0x33')](_0x53ceb2[_0x3cfe40('0x17')],{[Op['or']]:_[_0x3cfe40('0x6')](_0x153652,function(_0x470f84){const _0x31c1be=_0x3cfe40;if(_0x470f84[_0x31c1be('0x0')]!=='VIRTUAL'){const _0x240c77={};return _0x240c77[_0x470f84[_0x31c1be('0x2')]]={[Op['like']]:'%'+_0x1104c5['query']['filter']+'%'},_0x240c77;}})}));_0x53ceb2=_[_0x3cfe40('0x33')]({},_0x53ceb2,_0x1104c5[_0x3cfe40('0xc')]);const _0xe3a076={'where':_0x53ceb2[_0x3cfe40('0x17')]};return db[_0x3cfe40('0x4')][_0x3cfe40('0x2a')](_0xe3a076)[_0x3cfe40('0x11')](function(_0x375bd0){const _0x2750a8=_0x3cfe40;return _0x546afb[_0x2750a8('0x2a')]=_0x375bd0,_0x1104c5[_0x2750a8('0x1e')][_0x2750a8('0x34')]&&(_0x53ceb2[_0x2750a8('0x31')]=[{'all':!![]}]),db[_0x2750a8('0x4')][_0x2750a8('0x1a')](_0x53ceb2);})[_0x3cfe40('0x11')](function(_0x2f3ef8){const _0x1e345a=_0x3cfe40;return _0x546afb[_0x1e345a('0x9')]=_0x2f3ef8,_0x546afb;})[_0x3cfe40('0x11')](respondWithFilteredResult(_0x3e3524,_0x53ceb2))[_0x3cfe40('0xb')](handleError(_0x3e3524,null));},exports['show']=function(_0x131a5f,_0x5343b1){const _0x1eeb47=_0xb38518;let _0x123341={'raw':![],'where':{'id':_0x131a5f[_0x1eeb47('0x5')]['id']}};const _0x22fa2d={};return _0x22fa2d['model']=_[_0x1eeb47('0xd')](db[_0x1eeb47('0x4')][_0x1eeb47('0xa')]),_0x22fa2d[_0x1eeb47('0x1e')]=_['keys'](_0x131a5f[_0x1eeb47('0x1e')]),_0x22fa2d[_0x1eeb47('0x2d')]=_[_0x1eeb47('0x1d')](_0x22fa2d[_0x1eeb47('0x2c')],_0x22fa2d['query']),_0x123341[_0x1eeb47('0x14')]=_[_0x1eeb47('0x1d')](_0x22fa2d['model'],qs[_0x1eeb47('0x10')](_0x131a5f[_0x1eeb47('0x1e')][_0x1eeb47('0x10')])),_0x123341[_0x1eeb47('0x14')]=_0x123341[_0x1eeb47('0x14')][_0x1eeb47('0x2e')]?_0x123341[_0x1eeb47('0x14')]:_0x22fa2d[_0x1eeb47('0x2c')],_0x131a5f[_0x1eeb47('0x1e')][_0x1eeb47('0x34')]&&(_0x123341[_0x1eeb47('0x31')]=[{'all':!![]}]),_0x123341=_[_0x1eeb47('0x33')]({},_0x123341,_0x131a5f[_0x1eeb47('0xc')]),db['VoiceAgentReport'][_0x1eeb47('0x13')](_0x123341)[_0x1eeb47('0x11')](handleEntityNotFound(_0x5343b1,null))[_0x1eeb47('0x11')](respondWithResult(_0x5343b1,null))[_0x1eeb47('0xb')](handleError(_0x5343b1,null));},exports[_0xb38518('0x7')]=function(_0x1fe3c4,_0x5e326d){const _0x1548e0=_0xb38518;return db[_0x1548e0('0x4')][_0x1548e0('0x7')](_0x1fe3c4[_0x1548e0('0xf')],{})[_0x1548e0('0x11')](respondWithResult(_0x5e326d,0xc9))[_0x1548e0('0xb')](handleError(_0x5e326d,null));},exports['update']=function(_0x4cf7e4,_0x1c9712){const _0x31f83f=_0xb38518;return _0x4cf7e4[_0x31f83f('0xf')]['id']&&delete _0x4cf7e4['body']['id'],db[_0x31f83f('0x4')]['findOne']({'where':{'id':_0x4cf7e4[_0x31f83f('0x5')]['id']}})[_0x31f83f('0x11')](handleEntityNotFound(_0x1c9712,null))[_0x31f83f('0x11')](saveUpdates(_0x4cf7e4[_0x31f83f('0xf')],null))[_0x31f83f('0x11')](respondWithResult(_0x1c9712,null))['catch'](handleError(_0x1c9712,null));},exports[_0xb38518('0x29')]=function(_0x594703,_0x59f2a8){const _0x3e2f03=_0xb38518;return db[_0x3e2f03('0x4')][_0x3e2f03('0x13')]({'where':{'id':_0x594703[_0x3e2f03('0x5')]['id']}})[_0x3e2f03('0x11')](handleEntityNotFound(_0x59f2a8,null))['then'](removeEntity(_0x59f2a8,null))['catch'](handleError(_0x59f2a8,null));},exports[_0xb38518('0x28')]=function(_0x1bbc78,_0xf3f1c1){const _0x33aad5=_0xb38518;return db[_0x33aad5('0x4')][_0x33aad5('0x28')]()[_0x33aad5('0x11')](respondWithResult(_0xf3f1c1,null))[_0x33aad5('0xb')](handleError(_0xf3f1c1,null));}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.model.js b/server/api/voiceAgentReport/voiceAgentReport.model.js index 843f02c..54ce53f 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.model.js +++ b/server/api/voiceAgentReport/voiceAgentReport.model.js @@ -1 +1 @@ -const a705_0x564f=['exports','./voiceAgentReport.attributes','report_agent','destuniqueid','define'];(function(_0x21da69,_0x564f8c){const _0x4ac2f7=function(_0x509610){while(--_0x509610){_0x21da69['push'](_0x21da69['shift']());}};_0x4ac2f7(++_0x564f8c);}(a705_0x564f,0xf6));const a705_0x4ac2=function(_0x21da69,_0x564f8c){_0x21da69=_0x21da69-0x0;let _0x4ac2f7=a705_0x564f[_0x21da69];return _0x4ac2f7;};const _0x408d33=a705_0x4ac2;'use strict';const attributes=require(_0x408d33('0x0'));module[_0x408d33('0x4')]=function(_0x509610){const _0x2dc496=_0x408d33,_0x40459d=_0x509610[_0x2dc496('0x3')]('VoiceAgentReport',attributes,{'tableName':_0x2dc496('0x1'),'paranoid':![],'indexes':[{'fields':['uniqueid',_0x2dc496('0x2')]}],'timestamps':!![]});return _0x40459d;}; \ No newline at end of file +const a705_0xb87c=['destuniqueid','exports','VoiceAgentReport','./voiceAgentReport.attributes','define','report_agent'];(function(_0x125b12,_0xb87c0a){const _0x187168=function(_0x5326ab){while(--_0x5326ab){_0x125b12['push'](_0x125b12['shift']());}};_0x187168(++_0xb87c0a);}(a705_0xb87c,0x15d));const a705_0x1871=function(_0x125b12,_0xb87c0a){_0x125b12=_0x125b12-0x0;let _0x187168=a705_0xb87c[_0x125b12];return _0x187168;};const _0x3e5984=a705_0x1871;'use strict';const attributes=require(_0x3e5984('0x2'));module[_0x3e5984('0x0')]=function(_0x5326ab){const _0xa6e9f1=_0x3e5984,_0x3e3113=_0x5326ab[_0xa6e9f1('0x3')](_0xa6e9f1('0x1'),attributes,{'tableName':_0xa6e9f1('0x4'),'paranoid':![],'indexes':[{'fields':['uniqueid',_0xa6e9f1('0x5')]}],'timestamps':!![]});return _0x3e3113;}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.rpc.js b/server/api/voiceAgentReport/voiceAgentReport.rpc.js index cf453c5..69184ee 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.rpc.js +++ b/server/api/voiceAgentReport/voiceAgentReport.rpc.js @@ -1 +1 @@ -const a706_0x5329=['info','CreateVoiceAgentReport','UpdateVoiceAgentReport','raw','error','message','update','body','debug','attributes','rpc','options','../../mysqldb','catch','stringify','create','../../config/logger','then','VoiceAgentReport'];(function(_0x393744,_0x5329a2){const _0x8df202=function(_0xcd85c0){while(--_0xcd85c0){_0x393744['push'](_0x393744['shift']());}};_0x8df202(++_0x5329a2);}(a706_0x5329,0x17d));const a706_0x8df2=function(_0x393744,_0x5329a2){_0x393744=_0x393744-0x0;let _0x8df202=a706_0x5329[_0x393744];return _0x8df202;};const _0x117ff2=a706_0x8df2;'use strict';const db=require(_0x117ff2('0xb'))['db'],logger=require(_0x117ff2('0xf'))(_0x117ff2('0x9'));exports[_0x117ff2('0x0')]=function(_0xcd85c0){const _0x1de5a8=this;return new Promise(function(_0x256ddb,_0x83649f){const _0x549856=a706_0x8df2;return db[_0x549856('0x11')][_0x549856('0xe')](_0xcd85c0['body'],{'raw':_0xcd85c0[_0x549856('0xa')]?_0xcd85c0[_0x549856('0xa')][_0x549856('0x2')]===undefined?!![]:![]:!![]})[_0x549856('0x10')](function(_0x24e791){const _0x511c5f=_0x549856;logger['info'](_0x511c5f('0x0'),_0xcd85c0),logger[_0x511c5f('0x7')](_0x511c5f('0x0'),_0xcd85c0,JSON[_0x511c5f('0xd')](_0x24e791)),_0x256ddb(_0x24e791);})[_0x549856('0xc')](function(_0x17fb71){const _0x5e8792=_0x549856;logger[_0x5e8792('0x3')](_0x5e8792('0x0'),_0x17fb71[_0x5e8792('0x4')],_0xcd85c0),_0x83649f(_0x1de5a8[_0x5e8792('0x3')](0x1f4,_0x17fb71[_0x5e8792('0x4')]));});});},exports['UpdateVoiceAgentReport']=function(_0x6991c5){const _0x4c0aab=this;return new Promise(function(_0x10feb7,_0x2317dc){const _0x4696a9=a706_0x8df2;return db[_0x4696a9('0x11')][_0x4696a9('0x5')](_0x6991c5[_0x4696a9('0x6')],{'raw':_0x6991c5[_0x4696a9('0xa')]?_0x6991c5[_0x4696a9('0xa')][_0x4696a9('0x2')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x6991c5[_0x4696a9('0xa')]?_0x6991c5[_0x4696a9('0xa')]['where']||null:null,'attributes':_0x6991c5[_0x4696a9('0xa')]?_0x6991c5[_0x4696a9('0xa')][_0x4696a9('0x8')]||null:null,'limit':_0x6991c5[_0x4696a9('0xa')]?_0x6991c5[_0x4696a9('0xa')]['limit']||null:null})[_0x4696a9('0x10')](function(_0x36727f){const _0x1fc579=_0x4696a9;logger[_0x1fc579('0x12')](_0x1fc579('0x1'),_0x6991c5),logger[_0x1fc579('0x7')](_0x1fc579('0x1'),_0x6991c5,JSON[_0x1fc579('0xd')](_0x36727f)),_0x10feb7(_0x36727f);})[_0x4696a9('0xc')](function(_0x19c536){const _0x4e9e74=_0x4696a9;logger[_0x4e9e74('0x3')](_0x4e9e74('0x1'),_0x19c536[_0x4e9e74('0x4')],_0x6991c5),_0x2317dc(_0x4c0aab['error'](0x1f4,_0x19c536[_0x4e9e74('0x4')]));});});}; \ No newline at end of file +const a706_0xc66e=['attributes','options','rpc','debug','then','where','CreateVoiceAgentReport','stringify','../../mysqldb','error','message','../../config/logger','UpdateVoiceAgentReport','limit','update','body','raw','catch','VoiceAgentReport','info'];(function(_0x35546d,_0xc66e92){const _0x53ea34=function(_0x53dd7b){while(--_0x53dd7b){_0x35546d['push'](_0x35546d['shift']());}};_0x53ea34(++_0xc66e92);}(a706_0xc66e,0x130));const a706_0x53ea=function(_0x35546d,_0xc66e92){_0x35546d=_0x35546d-0x0;let _0x53ea34=a706_0xc66e[_0x35546d];return _0x53ea34;};const _0x123965=a706_0x53ea;'use strict';const db=require(_0x123965('0x4'))['db'],logger=require(_0x123965('0x7'))(_0x123965('0x12'));exports['CreateVoiceAgentReport']=function(_0x53dd7b){const _0x492eb7=this;return new Promise(function(_0x4e9ded,_0x2eb1fd){const _0x2b1467=a706_0x53ea;return db[_0x2b1467('0xe')]['create'](_0x53dd7b[_0x2b1467('0xb')],{'raw':_0x53dd7b['options']?_0x53dd7b[_0x2b1467('0x11')][_0x2b1467('0xc')]===undefined?!![]:![]:!![]})[_0x2b1467('0x0')](function(_0x466879){const _0x307284=_0x2b1467;logger[_0x307284('0xf')]('CreateVoiceAgentReport',_0x53dd7b),logger['debug'](_0x307284('0x2'),_0x53dd7b,JSON['stringify'](_0x466879)),_0x4e9ded(_0x466879);})[_0x2b1467('0xd')](function(_0x68c53b){const _0x10734c=_0x2b1467;logger[_0x10734c('0x5')]('CreateVoiceAgentReport',_0x68c53b[_0x10734c('0x6')],_0x53dd7b),_0x2eb1fd(_0x492eb7[_0x10734c('0x5')](0x1f4,_0x68c53b[_0x10734c('0x6')]));});});},exports[_0x123965('0x8')]=function(_0x2fc759){const _0x330675=this;return new Promise(function(_0x3a13bb,_0x3ff3d5){const _0x1be4b7=a706_0x53ea;return db['VoiceAgentReport'][_0x1be4b7('0xa')](_0x2fc759[_0x1be4b7('0xb')],{'raw':_0x2fc759[_0x1be4b7('0x11')]?_0x2fc759[_0x1be4b7('0x11')][_0x1be4b7('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2fc759[_0x1be4b7('0x11')]?_0x2fc759[_0x1be4b7('0x11')][_0x1be4b7('0x1')]||null:null,'attributes':_0x2fc759[_0x1be4b7('0x11')]?_0x2fc759[_0x1be4b7('0x11')][_0x1be4b7('0x10')]||null:null,'limit':_0x2fc759[_0x1be4b7('0x11')]?_0x2fc759['options'][_0x1be4b7('0x9')]||null:null})[_0x1be4b7('0x0')](function(_0x124a3c){const _0x4341b0=_0x1be4b7;logger['info'](_0x4341b0('0x8'),_0x2fc759),logger[_0x4341b0('0x13')](_0x4341b0('0x8'),_0x2fc759,JSON[_0x4341b0('0x3')](_0x124a3c)),_0x3a13bb(_0x124a3c);})[_0x1be4b7('0xd')](function(_0x1f1214){const _0x53e326=_0x1be4b7;logger['error'](_0x53e326('0x8'),_0x1f1214[_0x53e326('0x6')],_0x2fc759),_0x3ff3d5(_0x330675[_0x53e326('0x5')](0x1f4,_0x1f1214[_0x53e326('0x6')]));});});}; \ No newline at end of file diff --git a/server/api/voiceCallReport/index.js b/server/api/voiceCallReport/index.js index 94f0549..4b00943 100644 --- a/server/api/voiceCallReport/index.js +++ b/server/api/voiceCallReport/index.js @@ -1 +1 @@ -const a707_0x2c99=['isAuthenticated','express','describe','/:id','show','create','destroy','exports','Router','post','/describe','get','./voiceCallReport.controller'];(function(_0x6c12fc,_0x2c9987){const _0x1f6475=function(_0x3c30db){while(--_0x3c30db){_0x6c12fc['push'](_0x6c12fc['shift']());}};_0x1f6475(++_0x2c9987);}(a707_0x2c99,0x127));const a707_0x1f64=function(_0x6c12fc,_0x2c9987){_0x6c12fc=_0x6c12fc-0x0;let _0x1f6475=a707_0x2c99[_0x6c12fc];return _0x1f6475;};const _0x57f5ff=a707_0x1f64;'use strict';const express=require(_0x57f5ff('0x5')),router=express[_0x57f5ff('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x57f5ff('0x3'));router['get']('/',auth[_0x57f5ff('0x4')](),controller['index']),router[_0x57f5ff('0x2')](_0x57f5ff('0x1'),auth[_0x57f5ff('0x4')](),controller[_0x57f5ff('0x6')]),router[_0x57f5ff('0x2')](_0x57f5ff('0x7'),auth[_0x57f5ff('0x4')](),controller[_0x57f5ff('0x8')]),router[_0x57f5ff('0x0')]('/',auth[_0x57f5ff('0x4')](),controller[_0x57f5ff('0x9')]),router['put'](_0x57f5ff('0x7'),auth[_0x57f5ff('0x4')](),controller['update']),router['delete'](_0x57f5ff('0x7'),auth[_0x57f5ff('0x4')](),controller[_0x57f5ff('0xa')]),module[_0x57f5ff('0xb')]=router; \ No newline at end of file +const a707_0x19a2=['/:id','exports','post','express','get','describe','create','isAuthenticated','update','/describe','./voiceCallReport.controller','delete','index','show','../../components/auth/service'];(function(_0x587bc6,_0x19a208){const _0x36472d=function(_0x1948e3){while(--_0x1948e3){_0x587bc6['push'](_0x587bc6['shift']());}};_0x36472d(++_0x19a208);}(a707_0x19a2,0x102));const a707_0x3647=function(_0x587bc6,_0x19a208){_0x587bc6=_0x587bc6-0x0;let _0x36472d=a707_0x19a2[_0x587bc6];return _0x36472d;};const _0x427933=a707_0x3647;'use strict';const express=require(_0x427933('0x0')),router=express['Router'](),auth=require(_0x427933('0xb')),controller=require(_0x427933('0x7'));router[_0x427933('0x1')]('/',auth[_0x427933('0x4')](),controller[_0x427933('0x9')]),router[_0x427933('0x1')](_0x427933('0x6'),auth[_0x427933('0x4')](),controller[_0x427933('0x2')]),router[_0x427933('0x1')](_0x427933('0xc'),auth['isAuthenticated'](),controller[_0x427933('0xa')]),router[_0x427933('0xe')]('/',auth[_0x427933('0x4')](),controller[_0x427933('0x3')]),router['put'](_0x427933('0xc'),auth[_0x427933('0x4')](),controller[_0x427933('0x5')]),router[_0x427933('0x8')](_0x427933('0xc'),auth[_0x427933('0x4')](),controller['destroy']),module[_0x427933('0xd')]=router; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.attributes.js b/server/api/voiceCallReport/voiceCallReport.attributes.js index bf9862a..b29da8a 100644 --- a/server/api/voiceCallReport/voiceCallReport.attributes.js +++ b/server/api/voiceCallReport/voiceCallReport.attributes.js @@ -1 +1 @@ -const a708_0x207e=['inbound','inbound-fax','outbound-fax','dialer','sequelize','STRING','TEXT','INTEGER','exports','internal','DATE'];(function(_0x2b7de9,_0x207e00){const _0xced0c5=function(_0x3b250f){while(--_0x3b250f){_0x2b7de9['push'](_0x2b7de9['shift']());}};_0xced0c5(++_0x207e00);}(a708_0x207e,0xc3));const a708_0xced0=function(_0x2b7de9,_0x207e00){_0x2b7de9=_0x2b7de9-0x0;let _0xced0c5=a708_0x207e[_0x2b7de9];return _0xced0c5;};const _0x41e396=a708_0xced0;'use strict';const Sequelize=require(_0x41e396('0x7'));module[_0x41e396('0x0')]={'uniqueid':{'type':Sequelize['STRING']},'type':{'type':Sequelize['ENUM'](_0x41e396('0x3'),_0x41e396('0x1'),'outbound',_0x41e396('0x4'),_0x41e396('0x5'),_0x41e396('0x6'))},'tag':{'type':Sequelize[_0x41e396('0x8')]},'accountcode':{'type':Sequelize[_0x41e396('0x8')]},'source':{'type':Sequelize[_0x41e396('0x8')]},'destination':{'type':Sequelize[_0x41e396('0x8')]},'destinationcontext':{'type':Sequelize[_0x41e396('0x8')]},'callerid':{'type':Sequelize[_0x41e396('0x8')]},'channel':{'type':Sequelize[_0x41e396('0x8')]},'destinationchannel':{'type':Sequelize[_0x41e396('0x8')]},'lastapplication':{'type':Sequelize['STRING']},'lastdata':{'type':Sequelize[_0x41e396('0x9')]},'starttime':{'type':Sequelize[_0x41e396('0x2')]},'systemanswertime':{'type':Sequelize[_0x41e396('0x2')]},'answertime':{'type':Sequelize[_0x41e396('0x2')]},'endtime':{'type':Sequelize[_0x41e396('0x2')]},'duration':{'type':Sequelize[_0x41e396('0xa')]},'billableseconds':{'type':Sequelize[_0x41e396('0xa')]},'mohtime':{'type':Sequelize[_0x41e396('0xa')],'defaultValue':0x0},'disposition':{'type':Sequelize['STRING']},'amaflags':{'type':Sequelize['STRING']},'userfield':{'type':Sequelize[_0x41e396('0x8')]},'userDisposition':{'type':Sequelize['STRING']},'userSecondDisposition':{'type':Sequelize[_0x41e396('0x8')]},'userThirdDisposition':{'type':Sequelize[_0x41e396('0x8')]},'note':{'type':Sequelize[_0x41e396('0x8')]},'prefix':{'type':Sequelize['STRING']},'routeid':{'type':Sequelize[_0x41e396('0xa')]},'sipcallid':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a708_0x3825=['sequelize','INTEGER','STRING','inbound','DATE','exports','internal','ENUM','dialer','outbound'];(function(_0x480bc3,_0x382528){const _0x457468=function(_0x10ef4e){while(--_0x10ef4e){_0x480bc3['push'](_0x480bc3['shift']());}};_0x457468(++_0x382528);}(a708_0x3825,0xf1));const a708_0x4574=function(_0x480bc3,_0x382528){_0x480bc3=_0x480bc3-0x0;let _0x457468=a708_0x3825[_0x480bc3];return _0x457468;};const _0x45b828=a708_0x4574;'use strict';const Sequelize=require(_0x45b828('0x9'));module[_0x45b828('0x4')]={'uniqueid':{'type':Sequelize[_0x45b828('0x1')]},'type':{'type':Sequelize[_0x45b828('0x6')](_0x45b828('0x2'),_0x45b828('0x5'),_0x45b828('0x8'),'inbound-fax','outbound-fax',_0x45b828('0x7'))},'tag':{'type':Sequelize[_0x45b828('0x1')]},'accountcode':{'type':Sequelize[_0x45b828('0x1')]},'source':{'type':Sequelize['STRING']},'destination':{'type':Sequelize[_0x45b828('0x1')]},'destinationcontext':{'type':Sequelize[_0x45b828('0x1')]},'callerid':{'type':Sequelize[_0x45b828('0x1')]},'channel':{'type':Sequelize[_0x45b828('0x1')]},'destinationchannel':{'type':Sequelize['STRING']},'lastapplication':{'type':Sequelize['STRING']},'lastdata':{'type':Sequelize['TEXT']},'starttime':{'type':Sequelize[_0x45b828('0x3')]},'systemanswertime':{'type':Sequelize[_0x45b828('0x3')]},'answertime':{'type':Sequelize[_0x45b828('0x3')]},'endtime':{'type':Sequelize['DATE']},'duration':{'type':Sequelize[_0x45b828('0x0')]},'billableseconds':{'type':Sequelize[_0x45b828('0x0')]},'mohtime':{'type':Sequelize[_0x45b828('0x0')],'defaultValue':0x0},'disposition':{'type':Sequelize['STRING']},'amaflags':{'type':Sequelize[_0x45b828('0x1')]},'userfield':{'type':Sequelize[_0x45b828('0x1')]},'userDisposition':{'type':Sequelize['STRING']},'userSecondDisposition':{'type':Sequelize['STRING']},'userThirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x45b828('0x1')]},'prefix':{'type':Sequelize[_0x45b828('0x1')]},'routeid':{'type':Sequelize[_0x45b828('0x0')]},'sipcallid':{'type':Sequelize[_0x45b828('0x1')]}}; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.controller.js b/server/api/voiceCallReport/voiceCallReport.controller.js index 3528d46..4569b86 100644 --- a/server/api/voiceCallReport/voiceCallReport.controller.js +++ b/server/api/voiceCallReport/voiceCallReport.controller.js @@ -1 +1 @@ -const a709_0x389b=['length','describe','map','undefined','options','status','../../config/logger','sequelize','findOne','key','uniqueid','../../mysqldb','destroy','like','type','User','query','fields','findAll','merge','filter','send','attributes','pick','update','include','rawAttributes','filters','body','lodash','catch','params','Content-Range','limit','keys','includeAll','offset','model','api','user','json','name','count','then','set','intersection','VIRTUAL','sort','fullname','../../components/parsers/qs','VoiceCallReport','create','show','where','alias'];(function(_0xc01b43,_0x389ba3){const _0x11423e=function(_0x9c6e20){while(--_0x9c6e20){_0xc01b43['push'](_0xc01b43['shift']());}};_0x11423e(++_0x389ba3);}(a709_0x389b,0x127));const a709_0x1142=function(_0xc01b43,_0x389ba3){_0xc01b43=_0xc01b43-0x0;let _0x11423e=a709_0x389b[_0xc01b43];return _0x11423e;};const _0x79ffcb=a709_0x1142;'use strict';const _=require(_0x79ffcb('0x9')),qs=require(_0x79ffcb('0x1d')),logger=require(_0x79ffcb('0x29'))(_0x79ffcb('0x12')),db=require(_0x79ffcb('0x2e'))['db'],{Op}=require(_0x79ffcb('0x2a'));function respondWithResult(_0x9c6e20,_0x233189){return _0x233189=_0x233189||0xc8,function(_0x3c502a){const _0x152b16=a709_0x1142;if(_0x3c502a)return _0x9c6e20[_0x152b16('0x28')](_0x233189)[_0x152b16('0x14')](_0x3c502a);};}function respondWithFilteredResult(_0x1477a4,_0x401800){return function(_0x132f21){const _0x3c1e9b=a709_0x1142;if(_0x132f21){const _0x277dbb=_0x132f21['count'],_0x69816a=_0x401800[_0x3c1e9b('0x10')];let _0x2795b0=_0x401800['offset']+_0x401800[_0x3c1e9b('0xd')],_0x1a13e1;return _0x2795b0>=_0x277dbb?(_0x2795b0=_0x277dbb,_0x1a13e1=0xc8):_0x1a13e1=0xce,_0x1477a4['status'](_0x1a13e1),_0x1477a4[_0x3c1e9b('0x18')](_0x3c1e9b('0xc'),_0x69816a+'-'+_0x2795b0+'/'+_0x277dbb)[_0x3c1e9b('0x14')](_0x132f21);}return null;};}function saveUpdates(_0x2ce4af){return function(_0x23fe08){const _0x511c87=a709_0x1142;if(_0x23fe08)return _0x23fe08[_0x511c87('0x4')](_0x2ce4af)['then'](function(_0x40d00b){return _0x40d00b;});return null;};}function removeEntity(_0xedfbac){return function(_0x4d8420){const _0x40b598=a709_0x1142;if(_0x4d8420)return _0x4d8420[_0x40b598('0x2f')]()[_0x40b598('0x17')](function(){_0xedfbac['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x5a1bcf){return function(_0x545bfd){return!_0x545bfd&&_0x5a1bcf['sendStatus'](0x194),_0x545bfd;};}function handleError(_0x3fdb5c,_0x57c74f){return _0x57c74f=_0x57c74f||0x1f4,function(_0x2f15b0){const _0x51ebb9=a709_0x1142;logger['error'](_0x2f15b0['stack']),_0x2f15b0[_0x51ebb9('0x15')]&&delete _0x2f15b0[_0x51ebb9('0x15')],_0x3fdb5c[_0x51ebb9('0x28')](_0x57c74f)[_0x51ebb9('0x1')](_0x2f15b0);};}exports['index']=function(_0x26e1c0,_0x52602d){const _0x3efaab=_0x79ffcb;let _0x31c220={};const _0x2054f7={},_0x700175={'count':0x0,'rows':[]},_0x7236b4=_[_0x3efaab('0x25')](db[_0x3efaab('0x1e')]['rawAttributes'],function(_0x3dd0ee){const _0x1b750e=_0x3efaab;return{'name':_0x3dd0ee['fieldName'],'type':_0x3dd0ee[_0x1b750e('0x31')][_0x1b750e('0x2c')]};});_0x2054f7[_0x3efaab('0x11')]=_[_0x3efaab('0x25')](_0x7236b4,_0x3efaab('0x15')),_0x2054f7[_0x3efaab('0x33')]=_[_0x3efaab('0xe')](_0x26e1c0[_0x3efaab('0x33')]),_0x2054f7[_0x3efaab('0x7')]=_[_0x3efaab('0x19')](_0x2054f7[_0x3efaab('0x11')],_0x2054f7[_0x3efaab('0x33')]),_0x31c220[_0x3efaab('0x2')]=_[_0x3efaab('0x19')](_0x2054f7[_0x3efaab('0x11')],qs[_0x3efaab('0x34')](_0x26e1c0[_0x3efaab('0x33')]['fields'])),_0x31c220[_0x3efaab('0x2')]=_0x31c220[_0x3efaab('0x2')]['length']?_0x31c220[_0x3efaab('0x2')]:_0x2054f7[_0x3efaab('0x11')];typeof _0x26e1c0[_0x3efaab('0x33')]['nolimit']===_0x3efaab('0x26')&&(_0x31c220[_0x3efaab('0xd')]=qs['limit'](_0x26e1c0[_0x3efaab('0x33')][_0x3efaab('0xd')]),_0x31c220[_0x3efaab('0x10')]=qs['offset'](_0x26e1c0[_0x3efaab('0x33')][_0x3efaab('0x10')]));_0x31c220['order']=qs[_0x3efaab('0x1b')](_0x26e1c0[_0x3efaab('0x33')][_0x3efaab('0x1b')]),_0x31c220[_0x3efaab('0x21')]=qs[_0x3efaab('0x7')](_[_0x3efaab('0x3')](_0x26e1c0[_0x3efaab('0x33')],_0x2054f7[_0x3efaab('0x7')]),_0x7236b4);_0x26e1c0[_0x3efaab('0x33')][_0x3efaab('0x0')]&&(_0x31c220['where']=_[_0x3efaab('0x36')](_0x31c220[_0x3efaab('0x21')],{[Op['or']]:_[_0x3efaab('0x25')](_0x7236b4,function(_0x52ad15){const _0x180345=_0x3efaab;if(_0x52ad15[_0x180345('0x31')]!==_0x180345('0x1a')){const _0x48a127={};return _0x48a127[_0x52ad15[_0x180345('0x15')]]={[Op[_0x180345('0x30')]]:'%'+_0x26e1c0[_0x180345('0x33')][_0x180345('0x0')]+'%'},_0x48a127;}})}));_0x31c220=_['merge']({},_0x31c220,_0x26e1c0[_0x3efaab('0x27')]);const _0x17a75e={'where':_0x31c220['where']};return db[_0x3efaab('0x1e')][_0x3efaab('0x16')](_0x17a75e)[_0x3efaab('0x17')](function(_0x6d7248){const _0x282d3a=_0x3efaab;return _0x700175['count']=_0x6d7248,_0x26e1c0['query'][_0x282d3a('0xf')]&&(_0x31c220[_0x282d3a('0x5')]=[{'attributes':['id',_0x282d3a('0x15'),_0x282d3a('0x1c'),_0x282d3a('0x22')],'model':db[_0x282d3a('0x32')],'as':'User'}]),db[_0x282d3a('0x1e')][_0x282d3a('0x35')](_0x31c220);})[_0x3efaab('0x17')](function(_0x3563c6){return _0x700175['rows']=_0x3563c6,_0x700175;})['then'](respondWithFilteredResult(_0x52602d,_0x31c220))[_0x3efaab('0xa')](handleError(_0x52602d,null));},exports[_0x79ffcb('0x20')]=function(_0x44d901,_0x57a8fd){const _0x4893f7=_0x79ffcb;let _0x5168c9={'raw':!![],'where':{'id':_0x44d901[_0x4893f7('0xb')]['id']}};const _0x4940f4={};return _0x4940f4[_0x4893f7('0x11')]=_['keys'](db[_0x4893f7('0x1e')][_0x4893f7('0x6')]),_0x4940f4[_0x4893f7('0x33')]=_[_0x4893f7('0xe')](_0x44d901[_0x4893f7('0x33')]),_0x4940f4[_0x4893f7('0x7')]=_[_0x4893f7('0x19')](_0x4940f4[_0x4893f7('0x11')],_0x4940f4[_0x4893f7('0x33')]),_0x5168c9[_0x4893f7('0x2')]=_['intersection'](_0x4940f4[_0x4893f7('0x11')],qs[_0x4893f7('0x34')](_0x44d901['query']['fields'])),_0x5168c9[_0x4893f7('0x2')]=_0x5168c9['attributes'][_0x4893f7('0x23')]?_0x5168c9[_0x4893f7('0x2')]:_0x4940f4[_0x4893f7('0x11')],_0x44d901[_0x4893f7('0x33')][_0x4893f7('0xf')]&&(_0x5168c9['include']=[{'all':!![]}]),_0x5168c9=_[_0x4893f7('0x36')]({},_0x5168c9,_0x44d901['options']),db[_0x4893f7('0x1e')]['findOne'](_0x5168c9)[_0x4893f7('0x17')](handleEntityNotFound(_0x57a8fd,null))['then'](respondWithResult(_0x57a8fd,null))['catch'](handleError(_0x57a8fd,null));},exports[_0x79ffcb('0x1f')]=function(_0x22f222,_0x519ea6){const _0x389032=_0x79ffcb;return db[_0x389032('0x1e')][_0x389032('0x1f')](_0x22f222['body'],{})[_0x389032('0x17')](respondWithResult(_0x519ea6,0xc9))['catch'](handleError(_0x519ea6,null));},exports[_0x79ffcb('0x2f')]=function(_0x12dcef,_0x5e2fd9){const _0x5415af=_0x79ffcb;return db[_0x5415af('0x1e')][_0x5415af('0x2b')]({'where':{'id':_0x12dcef[_0x5415af('0xb')]['id']}})['then'](handleEntityNotFound(_0x5e2fd9,null))[_0x5415af('0x17')](removeEntity(_0x5e2fd9,null))[_0x5415af('0xa')](handleError(_0x5e2fd9,null));},exports[_0x79ffcb('0x24')]=function(_0x4bd9f3,_0xa256e3){const _0x4a8686=_0x79ffcb;return db[_0x4a8686('0x1e')][_0x4a8686('0x24')]()[_0x4a8686('0x17')](respondWithResult(_0xa256e3,null))[_0x4a8686('0xa')](handleError(_0xa256e3,null));},exports[_0x79ffcb('0x4')]=function(_0x1d4da7,_0x74cfe9){const _0x18f872=_0x79ffcb;return _0x1d4da7['body'][_0x18f872('0x2d')]&&delete _0x1d4da7[_0x18f872('0x8')][_0x18f872('0x2d')],db[_0x18f872('0x1e')][_0x18f872('0x2b')]({'where':{'uniqueid':_0x1d4da7['params']['id'],'UserId':{[Op['or']]:[null,_0x1d4da7[_0x18f872('0x13')]['id']]}}})['then'](handleEntityNotFound(_0x74cfe9,null))[_0x18f872('0x17')](saveUpdates(_0x1d4da7['body'],null))['then'](respondWithResult(_0x74cfe9,null))[_0x18f872('0xa')](handleError(_0x74cfe9,null));}; \ No newline at end of file +const a709_0x6aa8=['offset','keys','update','findAll','params','VIRTUAL','sort','api','../../config/logger','rows','json','User','map','where','include','limit','destroy','create','options','type','VoiceCallReport','catch','../../components/parsers/qs','findOne','order','intersection','status','uniqueid','fields','key','filter','alias','fullname','merge','fieldName','lodash','name','length','nolimit','like','filters','then','body','describe','includeAll','end','model','stack','attributes','send','sendStatus','query','count'];(function(_0x16397a,_0x6aa8ee){const _0x3d422c=function(_0x311409){while(--_0x311409){_0x16397a['push'](_0x16397a['shift']());}};_0x3d422c(++_0x6aa8ee);}(a709_0x6aa8,0x124));const a709_0x3d42=function(_0x16397a,_0x6aa8ee){_0x16397a=_0x16397a-0x0;let _0x3d422c=a709_0x6aa8[_0x16397a];return _0x3d422c;};const _0x1558d9=a709_0x3d42;'use strict';const _=require(_0x1558d9('0x8')),qs=require(_0x1558d9('0x30')),logger=require(_0x1558d9('0x22'))(_0x1558d9('0x21')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x311409,_0x1fbe0e){return _0x1fbe0e=_0x1fbe0e||0xc8,function(_0x4230c1){const _0x31a95c=a709_0x3d42;if(_0x4230c1)return _0x311409[_0x31a95c('0x34')](_0x1fbe0e)[_0x31a95c('0x24')](_0x4230c1);};}function respondWithFilteredResult(_0x4c8e6,_0x1c3283){return function(_0x7d7f82){const _0x5392dc=a709_0x3d42;if(_0x7d7f82){const _0x1615e2=_0x7d7f82[_0x5392dc('0x19')],_0x1c1fe4=_0x1c3283[_0x5392dc('0x1a')];let _0x29bdd1=_0x1c3283['offset']+_0x1c3283['limit'],_0x523168;return _0x29bdd1>=_0x1615e2?(_0x29bdd1=_0x1615e2,_0x523168=0xc8):_0x523168=0xce,_0x4c8e6[_0x5392dc('0x34')](_0x523168),_0x4c8e6['set']('Content-Range',_0x1c1fe4+'-'+_0x29bdd1+'/'+_0x1615e2)[_0x5392dc('0x24')](_0x7d7f82);}return null;};}function saveUpdates(_0x251674){return function(_0x6e4c81){const _0x321dc5=a709_0x3d42;if(_0x6e4c81)return _0x6e4c81[_0x321dc5('0x1c')](_0x251674)['then'](function(_0x4d92f1){return _0x4d92f1;});return null;};}function removeEntity(_0x41edbd){return function(_0x5daf34){const _0x23fa38=a709_0x3d42;if(_0x5daf34)return _0x5daf34['destroy']()[_0x23fa38('0xe')](function(){const _0x2b4519=_0x23fa38;_0x41edbd['status'](0xcc)[_0x2b4519('0x12')]();});};}function handleEntityNotFound(_0x4ed4a7){return function(_0x106389){const _0x2406b0=a709_0x3d42;return!_0x106389&&_0x4ed4a7[_0x2406b0('0x17')](0x194),_0x106389;};}function handleError(_0x2405bf,_0x2b5c6b){return _0x2b5c6b=_0x2b5c6b||0x1f4,function(_0x177542){const _0x429c64=a709_0x3d42;logger['error'](_0x177542[_0x429c64('0x14')]),_0x177542[_0x429c64('0x9')]&&delete _0x177542[_0x429c64('0x9')],_0x2405bf['status'](_0x2b5c6b)[_0x429c64('0x16')](_0x177542);};}exports['index']=function(_0x580100,_0x228749){const _0x3a28ac=_0x1558d9;let _0xd3d5f6={};const _0x14c92f={},_0x4eb70c={'count':0x0,'rows':[]},_0x438fac=_[_0x3a28ac('0x26')](db[_0x3a28ac('0x2e')]['rawAttributes'],function(_0x1ee009){const _0x45b24e=_0x3a28ac;return{'name':_0x1ee009[_0x45b24e('0x7')],'type':_0x1ee009[_0x45b24e('0x2d')][_0x45b24e('0x2')]};});_0x14c92f[_0x3a28ac('0x13')]=_[_0x3a28ac('0x26')](_0x438fac,_0x3a28ac('0x9')),_0x14c92f[_0x3a28ac('0x18')]=_[_0x3a28ac('0x1b')](_0x580100[_0x3a28ac('0x18')]),_0x14c92f[_0x3a28ac('0xd')]=_['intersection'](_0x14c92f[_0x3a28ac('0x13')],_0x14c92f['query']),_0xd3d5f6['attributes']=_[_0x3a28ac('0x33')](_0x14c92f['model'],qs['fields'](_0x580100[_0x3a28ac('0x18')]['fields'])),_0xd3d5f6[_0x3a28ac('0x15')]=_0xd3d5f6[_0x3a28ac('0x15')][_0x3a28ac('0xa')]?_0xd3d5f6['attributes']:_0x14c92f[_0x3a28ac('0x13')];typeof _0x580100['query'][_0x3a28ac('0xb')]==='undefined'&&(_0xd3d5f6[_0x3a28ac('0x29')]=qs[_0x3a28ac('0x29')](_0x580100[_0x3a28ac('0x18')][_0x3a28ac('0x29')]),_0xd3d5f6[_0x3a28ac('0x1a')]=qs[_0x3a28ac('0x1a')](_0x580100[_0x3a28ac('0x18')]['offset']));_0xd3d5f6[_0x3a28ac('0x32')]=qs[_0x3a28ac('0x20')](_0x580100[_0x3a28ac('0x18')][_0x3a28ac('0x20')]),_0xd3d5f6[_0x3a28ac('0x27')]=qs[_0x3a28ac('0xd')](_['pick'](_0x580100[_0x3a28ac('0x18')],_0x14c92f[_0x3a28ac('0xd')]),_0x438fac);_0x580100[_0x3a28ac('0x18')][_0x3a28ac('0x3')]&&(_0xd3d5f6[_0x3a28ac('0x27')]=_['merge'](_0xd3d5f6['where'],{[Op['or']]:_[_0x3a28ac('0x26')](_0x438fac,function(_0x164893){const _0x2f412c=_0x3a28ac;if(_0x164893[_0x2f412c('0x2d')]!==_0x2f412c('0x1f')){const _0x27dd75={};return _0x27dd75[_0x164893['name']]={[Op[_0x2f412c('0xc')]]:'%'+_0x580100['query']['filter']+'%'},_0x27dd75;}})}));_0xd3d5f6=_[_0x3a28ac('0x6')]({},_0xd3d5f6,_0x580100[_0x3a28ac('0x2c')]);const _0x1d250e={'where':_0xd3d5f6[_0x3a28ac('0x27')]};return db[_0x3a28ac('0x2e')][_0x3a28ac('0x19')](_0x1d250e)[_0x3a28ac('0xe')](function(_0x3c7881){const _0x1bb2a4=_0x3a28ac;return _0x4eb70c[_0x1bb2a4('0x19')]=_0x3c7881,_0x580100[_0x1bb2a4('0x18')][_0x1bb2a4('0x11')]&&(_0xd3d5f6[_0x1bb2a4('0x28')]=[{'attributes':['id',_0x1bb2a4('0x9'),_0x1bb2a4('0x5'),_0x1bb2a4('0x4')],'model':db['User'],'as':_0x1bb2a4('0x25')}]),db[_0x1bb2a4('0x2e')][_0x1bb2a4('0x1d')](_0xd3d5f6);})[_0x3a28ac('0xe')](function(_0x5260aa){const _0x20302d=_0x3a28ac;return _0x4eb70c[_0x20302d('0x23')]=_0x5260aa,_0x4eb70c;})[_0x3a28ac('0xe')](respondWithFilteredResult(_0x228749,_0xd3d5f6))[_0x3a28ac('0x2f')](handleError(_0x228749,null));},exports['show']=function(_0x10b11f,_0x4460a9){const _0x3357f7=_0x1558d9;let _0x212ca6={'raw':!![],'where':{'id':_0x10b11f['params']['id']}};const _0x417e3c={};return _0x417e3c[_0x3357f7('0x13')]=_[_0x3357f7('0x1b')](db[_0x3357f7('0x2e')]['rawAttributes']),_0x417e3c['query']=_['keys'](_0x10b11f[_0x3357f7('0x18')]),_0x417e3c[_0x3357f7('0xd')]=_['intersection'](_0x417e3c[_0x3357f7('0x13')],_0x417e3c[_0x3357f7('0x18')]),_0x212ca6['attributes']=_[_0x3357f7('0x33')](_0x417e3c['model'],qs[_0x3357f7('0x1')](_0x10b11f['query']['fields'])),_0x212ca6['attributes']=_0x212ca6[_0x3357f7('0x15')][_0x3357f7('0xa')]?_0x212ca6[_0x3357f7('0x15')]:_0x417e3c[_0x3357f7('0x13')],_0x10b11f['query'][_0x3357f7('0x11')]&&(_0x212ca6['include']=[{'all':!![]}]),_0x212ca6=_['merge']({},_0x212ca6,_0x10b11f[_0x3357f7('0x2c')]),db['VoiceCallReport'][_0x3357f7('0x31')](_0x212ca6)[_0x3357f7('0xe')](handleEntityNotFound(_0x4460a9,null))[_0x3357f7('0xe')](respondWithResult(_0x4460a9,null))['catch'](handleError(_0x4460a9,null));},exports[_0x1558d9('0x2b')]=function(_0x291a99,_0x19cc69){const _0xac857e=_0x1558d9;return db[_0xac857e('0x2e')][_0xac857e('0x2b')](_0x291a99[_0xac857e('0xf')],{})['then'](respondWithResult(_0x19cc69,0xc9))['catch'](handleError(_0x19cc69,null));},exports[_0x1558d9('0x2a')]=function(_0x4bc055,_0xe21722){const _0xf84c85=_0x1558d9;return db['VoiceCallReport'][_0xf84c85('0x31')]({'where':{'id':_0x4bc055[_0xf84c85('0x1e')]['id']}})[_0xf84c85('0xe')](handleEntityNotFound(_0xe21722,null))[_0xf84c85('0xe')](removeEntity(_0xe21722,null))[_0xf84c85('0x2f')](handleError(_0xe21722,null));},exports[_0x1558d9('0x10')]=function(_0x98b73d,_0x545ca8){const _0x437056=_0x1558d9;return db[_0x437056('0x2e')][_0x437056('0x10')]()[_0x437056('0xe')](respondWithResult(_0x545ca8,null))[_0x437056('0x2f')](handleError(_0x545ca8,null));},exports['update']=function(_0xba6df,_0x99fad1){const _0x3bf0cf=_0x1558d9;return _0xba6df[_0x3bf0cf('0xf')][_0x3bf0cf('0x0')]&&delete _0xba6df[_0x3bf0cf('0xf')][_0x3bf0cf('0x0')],db[_0x3bf0cf('0x2e')][_0x3bf0cf('0x31')]({'where':{'uniqueid':_0xba6df[_0x3bf0cf('0x1e')]['id'],'UserId':{[Op['or']]:[null,_0xba6df['user']['id']]}}})[_0x3bf0cf('0xe')](handleEntityNotFound(_0x99fad1,null))[_0x3bf0cf('0xe')](saveUpdates(_0xba6df[_0x3bf0cf('0xf')],null))[_0x3bf0cf('0xe')](respondWithResult(_0x99fad1,null))[_0x3bf0cf('0x2f')](handleError(_0x99fad1,null));}; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.model.js b/server/api/voiceCallReport/voiceCallReport.model.js index 250eaea..9822754 100644 --- a/server/api/voiceCallReport/voiceCallReport.model.js +++ b/server/api/voiceCallReport/voiceCallReport.model.js @@ -1 +1 @@ -const a710_0x2c83=['uniqueid','exports','VoiceCallReport','./voiceCallReport.attributes','report_call'];(function(_0x4bed18,_0x2c83e4){const _0x4ad0ba=function(_0x49ac47){while(--_0x49ac47){_0x4bed18['push'](_0x4bed18['shift']());}};_0x4ad0ba(++_0x2c83e4);}(a710_0x2c83,0x180));const a710_0x4ad0=function(_0x4bed18,_0x2c83e4){_0x4bed18=_0x4bed18-0x0;let _0x4ad0ba=a710_0x2c83[_0x4bed18];return _0x4ad0ba;};const _0x1563b7=a710_0x4ad0;'use strict';const attributes=require(_0x1563b7('0x4'));module[_0x1563b7('0x2')]=function(_0x49ac47){const _0x46e982=_0x1563b7,_0x727d8=_0x49ac47['define'](_0x46e982('0x3'),attributes,{'tableName':_0x46e982('0x0'),'paranoid':![],'indexes':[{'fields':[_0x46e982('0x1')]}],'timestamps':!![]});return _0x727d8;}; \ No newline at end of file +const a710_0x53c9=['uniqueid','VoiceCallReport','./voiceCallReport.attributes','exports'];(function(_0x39065f,_0x53c994){const _0x466836=function(_0x4b39d6){while(--_0x4b39d6){_0x39065f['push'](_0x39065f['shift']());}};_0x466836(++_0x53c994);}(a710_0x53c9,0x10c));const a710_0x4668=function(_0x39065f,_0x53c994){_0x39065f=_0x39065f-0x0;let _0x466836=a710_0x53c9[_0x39065f];return _0x466836;};const _0x454221=a710_0x4668;'use strict';const attributes=require(_0x454221('0x2'));module[_0x454221('0x3')]=function(_0x4b39d6){const _0x29453c=_0x454221,_0x4f55b7=_0x4b39d6['define'](_0x29453c('0x1'),attributes,{'tableName':'report_call','paranoid':![],'indexes':[{'fields':[_0x29453c('0x0')]}],'timestamps':!![]});return _0x4f55b7;}; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.rpc.js b/server/api/voiceCallReport/voiceCallReport.rpc.js index c6e7db6..0364e95 100644 --- a/server/api/voiceCallReport/voiceCallReport.rpc.js +++ b/server/api/voiceCallReport/voiceCallReport.rpc.js @@ -1 +1 @@ -const a711_0x3e54=['message','CreateVoiceCallReport','options','rpc','lodash','../../config/logger','body','error','GetVoiceCallReport','map','update','attributes','VoiceCallReport','raw','findAll','include','info','where','limit','UpdateVoiceCallReport','model','then','catch','debug','stringify','create'];(function(_0xef724d,_0x3e54ee){const _0x4d0f65=function(_0x266f6a){while(--_0x266f6a){_0xef724d['push'](_0xef724d['shift']());}};_0x4d0f65(++_0x3e54ee);}(a711_0x3e54,0xc4));const a711_0x4d0f=function(_0xef724d,_0x3e54ee){_0xef724d=_0xef724d-0x0;let _0x4d0f65=a711_0x3e54[_0xef724d];return _0x4d0f65;};const _0x39d52a=a711_0x4d0f;'use strict';const _=require(_0x39d52a('0x10')),db=require('../../mysqldb')['db'],logger=require(_0x39d52a('0x11'))(_0x39d52a('0xf'));exports['GetVoiceCallReport']=function(_0x266f6a){const _0x31814b=this;return new Promise(function(_0xdac435,_0x47e55d){const _0x51f38c=a711_0x4d0f;return db[_0x51f38c('0x18')][_0x51f38c('0x0')]({'raw':_0x266f6a[_0x51f38c('0xe')]?_0x266f6a[_0x51f38c('0xe')][_0x51f38c('0x19')]===undefined?!![]:![]:!![],'where':_0x266f6a[_0x51f38c('0xe')]?_0x266f6a[_0x51f38c('0xe')][_0x51f38c('0x3')]||null:null,'attributes':_0x266f6a[_0x51f38c('0xe')]?_0x266f6a['options'][_0x51f38c('0x17')]||null:null,'limit':_0x266f6a[_0x51f38c('0xe')]?_0x266f6a[_0x51f38c('0xe')]['limit']||null:null,'include':_0x266f6a[_0x51f38c('0xe')]?_0x266f6a[_0x51f38c('0xe')][_0x51f38c('0x1')]?_[_0x51f38c('0x15')](_0x266f6a['options'][_0x51f38c('0x1')],function(_0x20376a){const _0x2e6200=_0x51f38c;return{'model':db[_0x20376a[_0x2e6200('0x6')]],'as':_0x20376a['as'],'attributes':_0x20376a[_0x2e6200('0x17')],'include':_0x20376a[_0x2e6200('0x1')]?_[_0x2e6200('0x15')](_0x20376a[_0x2e6200('0x1')],function(_0xf5e935){const _0x39eb8a=_0x2e6200;return{'model':db[_0xf5e935[_0x39eb8a('0x6')]],'as':_0xf5e935['as'],'attributes':_0xf5e935[_0x39eb8a('0x17')],'include':_0xf5e935[_0x39eb8a('0x1')]?_['map'](_0xf5e935[_0x39eb8a('0x1')],function(_0x4f00e2){const _0x5b38a1=_0x39eb8a;return{'model':db[_0x4f00e2[_0x5b38a1('0x6')]],'as':_0x4f00e2['as'],'attributes':_0x4f00e2[_0x5b38a1('0x17')]};}):[]};}):[]};}):[]:[]})[_0x51f38c('0x7')](function(_0x26db10){const _0x1c8624=_0x51f38c;logger[_0x1c8624('0x2')](_0x1c8624('0x14'),_0x266f6a),logger['debug'](_0x1c8624('0x14'),_0x266f6a,JSON['stringify'](_0x26db10)),_0xdac435(_0x26db10);})['catch'](function(_0x597975){const _0x224811=_0x51f38c;logger[_0x224811('0x13')]('GetVoiceCallReport',_0x597975[_0x224811('0xc')],_0x266f6a),_0x47e55d(_0x31814b[_0x224811('0x13')](0x1f4,_0x597975[_0x224811('0xc')]));});});},exports[_0x39d52a('0xd')]=function(_0x2fe993){const _0x5a8f1b=this;return new Promise(function(_0x4b14cc,_0x1b406a){const _0x35318a=a711_0x4d0f;return db[_0x35318a('0x18')][_0x35318a('0xb')](_0x2fe993[_0x35318a('0x12')],{'raw':_0x2fe993[_0x35318a('0xe')]?_0x2fe993[_0x35318a('0xe')][_0x35318a('0x19')]===undefined?!![]:![]:!![]})[_0x35318a('0x7')](function(_0x57f000){const _0x58543d=_0x35318a;logger[_0x58543d('0x2')](_0x58543d('0xd'),_0x2fe993),logger[_0x58543d('0x9')]('CreateVoiceCallReport',_0x2fe993,JSON[_0x58543d('0xa')](_0x57f000)),_0x4b14cc(_0x57f000);})[_0x35318a('0x8')](function(_0x79ce0f){const _0x42ca2a=_0x35318a;logger[_0x42ca2a('0x13')](_0x42ca2a('0xd'),_0x79ce0f[_0x42ca2a('0xc')],_0x2fe993),_0x1b406a(_0x5a8f1b['error'](0x1f4,_0x79ce0f['message']));});});},exports['UpdateVoiceCallReport']=function(_0x5d2257){const _0x1cd6a2=this;return new Promise(function(_0x45d22c,_0x1855c9){const _0x4fc58f=a711_0x4d0f;return db[_0x4fc58f('0x18')][_0x4fc58f('0x16')](_0x5d2257[_0x4fc58f('0x12')],{'raw':_0x5d2257[_0x4fc58f('0xe')]?_0x5d2257['options'][_0x4fc58f('0x19')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5d2257['options']?_0x5d2257[_0x4fc58f('0xe')]['where']||null:null,'attributes':_0x5d2257[_0x4fc58f('0xe')]?_0x5d2257[_0x4fc58f('0xe')][_0x4fc58f('0x17')]||null:null,'limit':_0x5d2257['options']?_0x5d2257[_0x4fc58f('0xe')][_0x4fc58f('0x4')]||null:null})['then'](function(_0x5eacd9){const _0x5edf2e=_0x4fc58f;logger[_0x5edf2e('0x2')]('UpdateVoiceCallReport',_0x5d2257),logger['debug'](_0x5edf2e('0x5'),_0x5d2257,JSON[_0x5edf2e('0xa')](_0x5eacd9)),_0x45d22c(_0x5eacd9);})[_0x4fc58f('0x8')](function(_0x435adf){const _0xb56e8b=_0x4fc58f;logger[_0xb56e8b('0x13')]('UpdateVoiceCallReport',_0x435adf[_0xb56e8b('0xc')],_0x5d2257),_0x1855c9(_0x1cd6a2[_0xb56e8b('0x13')](0x1f4,_0x435adf['message']));});});}; \ No newline at end of file +const a711_0x5093=['then','limit','options','body','attributes','findAll','catch','model','debug','CreateVoiceCallReport','lodash','raw','where','UpdateVoiceCallReport','map','VoiceCallReport','info','../../config/logger','../../mysqldb','stringify','error','message','GetVoiceCallReport','include'];(function(_0x4b11e2,_0x509335){const _0x3aa87b=function(_0x474196){while(--_0x474196){_0x4b11e2['push'](_0x4b11e2['shift']());}};_0x3aa87b(++_0x509335);}(a711_0x5093,0x1e1));const a711_0x3aa8=function(_0x4b11e2,_0x509335){_0x4b11e2=_0x4b11e2-0x0;let _0x3aa87b=a711_0x5093[_0x4b11e2];return _0x3aa87b;};const _0x7e4150=a711_0x3aa8;'use strict';const _=require(_0x7e4150('0x9')),db=require(_0x7e4150('0x11'))['db'],logger=require(_0x7e4150('0x10'))('rpc');exports[_0x7e4150('0x15')]=function(_0x474196){const _0x578b65=this;return new Promise(function(_0x2d1af2,_0x10192e){const _0xc9d52e=a711_0x3aa8;return db[_0xc9d52e('0xe')][_0xc9d52e('0x4')]({'raw':_0x474196[_0xc9d52e('0x1')]?_0x474196[_0xc9d52e('0x1')][_0xc9d52e('0xa')]===undefined?!![]:![]:!![],'where':_0x474196[_0xc9d52e('0x1')]?_0x474196[_0xc9d52e('0x1')][_0xc9d52e('0xb')]||null:null,'attributes':_0x474196[_0xc9d52e('0x1')]?_0x474196[_0xc9d52e('0x1')][_0xc9d52e('0x3')]||null:null,'limit':_0x474196[_0xc9d52e('0x1')]?_0x474196[_0xc9d52e('0x1')][_0xc9d52e('0x0')]||null:null,'include':_0x474196[_0xc9d52e('0x1')]?_0x474196[_0xc9d52e('0x1')][_0xc9d52e('0x16')]?_[_0xc9d52e('0xd')](_0x474196['options'][_0xc9d52e('0x16')],function(_0x4fa83c){const _0x2c5fb4=_0xc9d52e;return{'model':db[_0x4fa83c[_0x2c5fb4('0x6')]],'as':_0x4fa83c['as'],'attributes':_0x4fa83c[_0x2c5fb4('0x3')],'include':_0x4fa83c['include']?_[_0x2c5fb4('0xd')](_0x4fa83c[_0x2c5fb4('0x16')],function(_0x18dcff){const _0x184581=_0x2c5fb4;return{'model':db[_0x18dcff['model']],'as':_0x18dcff['as'],'attributes':_0x18dcff[_0x184581('0x3')],'include':_0x18dcff['include']?_[_0x184581('0xd')](_0x18dcff[_0x184581('0x16')],function(_0x52fe65){const _0x240896=_0x184581;return{'model':db[_0x52fe65['model']],'as':_0x52fe65['as'],'attributes':_0x52fe65[_0x240896('0x3')]};}):[]};}):[]};}):[]:[]})[_0xc9d52e('0x17')](function(_0x529b9d){const _0x5288aa=_0xc9d52e;logger[_0x5288aa('0xf')](_0x5288aa('0x15'),_0x474196),logger[_0x5288aa('0x7')](_0x5288aa('0x15'),_0x474196,JSON[_0x5288aa('0x12')](_0x529b9d)),_0x2d1af2(_0x529b9d);})['catch'](function(_0x29eb18){const _0x38cadb=_0xc9d52e;logger[_0x38cadb('0x13')](_0x38cadb('0x15'),_0x29eb18['message'],_0x474196),_0x10192e(_0x578b65[_0x38cadb('0x13')](0x1f4,_0x29eb18['message']));});});},exports['CreateVoiceCallReport']=function(_0x5ebade){const _0x1a7a30=this;return new Promise(function(_0x4095e5,_0x44b851){const _0x23cd1d=a711_0x3aa8;return db[_0x23cd1d('0xe')]['create'](_0x5ebade[_0x23cd1d('0x2')],{'raw':_0x5ebade[_0x23cd1d('0x1')]?_0x5ebade['options'][_0x23cd1d('0xa')]===undefined?!![]:![]:!![]})['then'](function(_0x2fe5e1){const _0x481bfc=_0x23cd1d;logger[_0x481bfc('0xf')](_0x481bfc('0x8'),_0x5ebade),logger['debug'](_0x481bfc('0x8'),_0x5ebade,JSON[_0x481bfc('0x12')](_0x2fe5e1)),_0x4095e5(_0x2fe5e1);})[_0x23cd1d('0x5')](function(_0x2e6661){const _0x596327=_0x23cd1d;logger[_0x596327('0x13')](_0x596327('0x8'),_0x2e6661[_0x596327('0x14')],_0x5ebade),_0x44b851(_0x1a7a30['error'](0x1f4,_0x2e6661[_0x596327('0x14')]));});});},exports[_0x7e4150('0xc')]=function(_0x4aa41a){const _0x56d8c8=this;return new Promise(function(_0x4179be,_0x27f7f1){const _0x4977fc=a711_0x3aa8;return db[_0x4977fc('0xe')]['update'](_0x4aa41a['body'],{'raw':_0x4aa41a[_0x4977fc('0x1')]?_0x4aa41a[_0x4977fc('0x1')][_0x4977fc('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4aa41a[_0x4977fc('0x1')]?_0x4aa41a[_0x4977fc('0x1')][_0x4977fc('0xb')]||null:null,'attributes':_0x4aa41a['options']?_0x4aa41a[_0x4977fc('0x1')][_0x4977fc('0x3')]||null:null,'limit':_0x4aa41a['options']?_0x4aa41a[_0x4977fc('0x1')][_0x4977fc('0x0')]||null:null})[_0x4977fc('0x17')](function(_0x1d6e21){const _0x37ad46=_0x4977fc;logger[_0x37ad46('0xf')](_0x37ad46('0xc'),_0x4aa41a),logger[_0x37ad46('0x7')](_0x37ad46('0xc'),_0x4aa41a,JSON[_0x37ad46('0x12')](_0x1d6e21)),_0x4179be(_0x1d6e21);})[_0x4977fc('0x5')](function(_0x7fbd0a){const _0x5f081a=_0x4977fc;logger['error']('UpdateVoiceCallReport',_0x7fbd0a[_0x5f081a('0x14')],_0x4aa41a),_0x27f7f1(_0x56d8c8[_0x5f081a('0x13')](0x1f4,_0x7fbd0a[_0x5f081a('0x14')]));});});}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/index.js b/server/api/voiceChanSpy/index.js index 29c9c65..797ca7b 100644 --- a/server/api/voiceChanSpy/index.js +++ b/server/api/voiceChanSpy/index.js @@ -1 +1 @@ -const a712_0x4931=['Router','isAuthenticated','/:id','destroy','exports','index','show','update','express','get','./voiceChanSpy.controller'];(function(_0x52f23a,_0x49312a){const _0xb8c7fd=function(_0x1d5d9d){while(--_0x1d5d9d){_0x52f23a['push'](_0x52f23a['shift']());}};_0xb8c7fd(++_0x49312a);}(a712_0x4931,0x78));const a712_0xb8c7=function(_0x52f23a,_0x49312a){_0x52f23a=_0x52f23a-0x0;let _0xb8c7fd=a712_0x4931[_0x52f23a];return _0xb8c7fd;};const _0x2a027f=a712_0xb8c7;'use strict';const express=require(_0x2a027f('0x9')),router=express[_0x2a027f('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x2a027f('0x0'));router[_0x2a027f('0xa')]('/',auth['isAuthenticated'](),controller[_0x2a027f('0x6')]),router['get'](_0x2a027f('0x3'),auth[_0x2a027f('0x2')](),controller[_0x2a027f('0x7')]),router['post']('/',auth[_0x2a027f('0x2')](),controller['create']),router['put'](_0x2a027f('0x3'),auth[_0x2a027f('0x2')](),controller[_0x2a027f('0x8')]),router['delete'](_0x2a027f('0x3'),auth[_0x2a027f('0x2')](),controller[_0x2a027f('0x4')]),module[_0x2a027f('0x5')]=router; \ No newline at end of file +const a712_0x28cb=['index','isAuthenticated','get','./voiceChanSpy.controller','delete','exports','destroy','post','express','create','put','show','/:id'];(function(_0x315271,_0x28cbc0){const _0x16878e=function(_0x79e6c8){while(--_0x79e6c8){_0x315271['push'](_0x315271['shift']());}};_0x16878e(++_0x28cbc0);}(a712_0x28cb,0x18d));const a712_0x1687=function(_0x315271,_0x28cbc0){_0x315271=_0x315271-0x0;let _0x16878e=a712_0x28cb[_0x315271];return _0x16878e;};const _0x4289dd=a712_0x1687;'use strict';const express=require(_0x4289dd('0x1')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x4289dd('0x9'));router[_0x4289dd('0x8')]('/',auth[_0x4289dd('0x7')](),controller[_0x4289dd('0x6')]),router[_0x4289dd('0x8')](_0x4289dd('0x5'),auth[_0x4289dd('0x7')](),controller[_0x4289dd('0x4')]),router[_0x4289dd('0x0')]('/',auth[_0x4289dd('0x7')](),controller[_0x4289dd('0x2')]),router[_0x4289dd('0x3')](_0x4289dd('0x5'),auth[_0x4289dd('0x7')](),controller['update']),router[_0x4289dd('0xa')](_0x4289dd('0x5'),auth[_0x4289dd('0x7')](),controller[_0x4289dd('0xc')]),module[_0x4289dd('0xb')]=router; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.attributes.js b/server/api/voiceChanSpy/voiceChanSpy.attributes.js index a87368f..a867415 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.attributes.js +++ b/server/api/voiceChanSpy/voiceChanSpy.attributes.js @@ -1 +1 @@ -const a713_0x4ca6=['setDataValue','exports','STRING','name','options'];(function(_0x3ec500,_0x4ca69c){const _0x34c24e=function(_0x58b52b){while(--_0x58b52b){_0x3ec500['push'](_0x3ec500['shift']());}};_0x34c24e(++_0x4ca69c);}(a713_0x4ca6,0x19f));const a713_0x34c2=function(_0x3ec500,_0x4ca69c){_0x3ec500=_0x3ec500-0x0;let _0x34c24e=a713_0x4ca6[_0x3ec500];return _0x34c24e;};const _0x176ad5=a713_0x34c2;'use strict';const Sequelize=require('sequelize');module[_0x176ad5('0x1')]={'name':{'type':Sequelize[_0x176ad5('0x2')]},'prefix':{'type':Sequelize[_0x176ad5('0x2')],'unique':_0x176ad5('0x3'),'allowNull':![]},'options':{'type':Sequelize[_0x176ad5('0x2')],'set':function(_0x58b52b){const _0x5e90cf=_0x176ad5;this[_0x5e90cf('0x0')](_0x5e90cf('0x4'),_0x58b52b?_0x58b52b['join'](''):[]);},'get':function(){const _0x5a73ec=_0x176ad5;return this['getDataValue']('options')?this['getDataValue'](_0x5a73ec('0x4'))['split'](''):[];}},'auth':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'password':{'type':Sequelize['STRING']},'record':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'recordingFormat':{'type':Sequelize[_0x176ad5('0x2')]},'description':{'type':Sequelize[_0x176ad5('0x2')]}}; \ No newline at end of file +const a713_0x4b91=['name','BOOLEAN','sequelize','split','options','setDataValue','join','getDataValue','STRING'];(function(_0x59a235,_0x4b91a6){const _0x40ea68=function(_0x318755){while(--_0x318755){_0x59a235['push'](_0x59a235['shift']());}};_0x40ea68(++_0x4b91a6);}(a713_0x4b91,0x94));const a713_0x40ea=function(_0x59a235,_0x4b91a6){_0x59a235=_0x59a235-0x0;let _0x40ea68=a713_0x4b91[_0x59a235];return _0x40ea68;};const _0x52cc00=a713_0x40ea;'use strict';const Sequelize=require(_0x52cc00('0x7'));module['exports']={'name':{'type':Sequelize[_0x52cc00('0x4')]},'prefix':{'type':Sequelize[_0x52cc00('0x4')],'unique':_0x52cc00('0x5'),'allowNull':![]},'options':{'type':Sequelize[_0x52cc00('0x4')],'set':function(_0x318755){const _0x38a311=_0x52cc00;this[_0x38a311('0x1')](_0x38a311('0x0'),_0x318755?_0x318755[_0x38a311('0x2')](''):[]);},'get':function(){const _0x56e70e=_0x52cc00;return this['getDataValue']('options')?this[_0x56e70e('0x3')](_0x56e70e('0x0'))[_0x56e70e('0x8')](''):[];}},'auth':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'password':{'type':Sequelize[_0x52cc00('0x4')]},'record':{'type':Sequelize[_0x52cc00('0x6')],'defaultValue':![]},'recordingFormat':{'type':Sequelize[_0x52cc00('0x4')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.controller.js b/server/api/voiceChanSpy/voiceChanSpy.controller.js index fbf7614..6e1ee0b 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.controller.js +++ b/server/api/voiceChanSpy/voiceChanSpy.controller.js @@ -1 +1 @@ -const a714_0x2eb8=['set','count','filter','end','limit','includeAll','userProfileId','map','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','api','VIRTUAL','length','send','../../components/parsers/qs','autoAssociation','findOne','include','query','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','pick','../../mysqldb','then','rows','findAll','attributes','model','fields','body','where','fieldName','ChanSpies','rawAttributes','user','offset','sort','options','destroy','params','keys','json','like','lodash','catch','index','undefined','name','show','status','merge','key','type','UserProfileResource','VoiceChanSpy','create','intersection','role','error','sendStatus','../../config/logger'];(function(_0x4a17ee,_0x2eb875){const _0x1e72f8=function(_0x4ba4a7){while(--_0x4ba4a7){_0x4a17ee['push'](_0x4a17ee['shift']());}};_0x1e72f8(++_0x2eb875);}(a714_0x2eb8,0x9d));const a714_0x1e72=function(_0x4a17ee,_0x2eb875){_0x4a17ee=_0x4a17ee-0x0;let _0x1e72f8=a714_0x2eb8[_0x4a17ee];return _0x1e72f8;};const _0xa7bf2b=a714_0x1e72;'use strict';const _=require(_0xa7bf2b('0x5')),qs=require(_0xa7bf2b('0x24')),logger=require(_0xa7bf2b('0x16'))(_0xa7bf2b('0x20')),db=require(_0xa7bf2b('0x2c'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4ba4a7,_0x2b5287){return _0x2b5287=_0x2b5287||0xc8,function(_0x18d0e7){const _0x7c7ec4=a714_0x1e72;if(_0x18d0e7)return _0x4ba4a7['status'](_0x2b5287)[_0x7c7ec4('0x3')](_0x18d0e7);};}function respondWithFilteredResult(_0x29c081,_0xd5e391){return function(_0x2a7a1d){const _0x381c08=a714_0x1e72;if(_0x2a7a1d){const _0x5a1b54=_0x2a7a1d[_0x381c08('0x18')],_0x6d4409=_0xd5e391[_0x381c08('0x39')];let _0x47cd35=_0xd5e391[_0x381c08('0x39')]+_0xd5e391['limit'],_0x1c93b7;return _0x47cd35>=_0x5a1b54?(_0x47cd35=_0x5a1b54,_0x1c93b7=0xc8):_0x1c93b7=0xce,_0x29c081[_0x381c08('0xb')](_0x1c93b7),_0x29c081[_0x381c08('0x17')]('Content-Range',_0x6d4409+'-'+_0x47cd35+'/'+_0x5a1b54)[_0x381c08('0x3')](_0x2a7a1d);}return null;};}function saveUpdates(_0x1a8159){return function(_0x5a30b5){if(_0x5a30b5)return _0x5a30b5['update'](_0x1a8159)['then'](function(_0x504c02){return _0x504c02;});return null;};}function removeEntity(_0x38d739){return function(_0x56dc0c){const _0x1695dc=a714_0x1e72;if(_0x56dc0c)return _0x56dc0c[_0x1695dc('0x0')]()[_0x1695dc('0x2d')](function(){const _0x5cebdb=_0x1695dc,_0x2b05ca=_0x56dc0c[_0x5cebdb('0x29')]({'plain':!![]}),_0x22ebd4=_0x5cebdb('0x36');return db[_0x5cebdb('0xf')][_0x5cebdb('0x0')]({'where':{'type':_0x22ebd4,'resourceId':_0x2b05ca['id']}})[_0x5cebdb('0x2d')](function(){return _0x56dc0c;});})[_0x1695dc('0x2d')](function(){const _0x535e=_0x1695dc;_0x38d739[_0x535e('0xb')](0xcc)[_0x535e('0x1a')]();});};}function handleEntityNotFound(_0x341a3a){return function(_0x4d5fce){const _0x308fe2=a714_0x1e72;return!_0x4d5fce&&_0x341a3a[_0x308fe2('0x15')](0x194),_0x4d5fce;};}function handleError(_0x5db8f3,_0x29174e){return _0x29174e=_0x29174e||0x1f4,function(_0x38fca4){const _0x5b0bda=a714_0x1e72;logger[_0x5b0bda('0x14')](_0x38fca4['stack']),_0x38fca4[_0x5b0bda('0x9')]&&delete _0x38fca4['name'],_0x5db8f3[_0x5b0bda('0xb')](_0x29174e)[_0x5b0bda('0x23')](_0x38fca4);};}exports[_0xa7bf2b('0x7')]=function(_0x2b91ca,_0x447fc8){const _0x5ee803=_0xa7bf2b;let _0x2d4ee3={};const _0x109ab9={},_0x4e6c39={'count':0x0,'rows':[]},_0x10fb01=_[_0x5ee803('0x1e')](db[_0x5ee803('0x10')]['rawAttributes'],function(_0x539b7e){const _0x2df0c5=_0x5ee803;return{'name':_0x539b7e[_0x2df0c5('0x35')],'type':_0x539b7e['type'][_0x2df0c5('0xd')]};});_0x109ab9[_0x5ee803('0x31')]=_[_0x5ee803('0x1e')](_0x10fb01,_0x5ee803('0x9')),_0x109ab9[_0x5ee803('0x28')]=_[_0x5ee803('0x2')](_0x2b91ca[_0x5ee803('0x28')]),_0x109ab9['filters']=_[_0x5ee803('0x12')](_0x109ab9[_0x5ee803('0x31')],_0x109ab9[_0x5ee803('0x28')]),_0x2d4ee3[_0x5ee803('0x30')]=_['intersection'](_0x109ab9['model'],qs[_0x5ee803('0x32')](_0x2b91ca[_0x5ee803('0x28')][_0x5ee803('0x32')])),_0x2d4ee3[_0x5ee803('0x30')]=_0x2d4ee3['attributes'][_0x5ee803('0x22')]?_0x2d4ee3[_0x5ee803('0x30')]:_0x109ab9[_0x5ee803('0x31')];typeof _0x2b91ca['query']['nolimit']===_0x5ee803('0x8')&&(_0x2d4ee3[_0x5ee803('0x1b')]=qs[_0x5ee803('0x1b')](_0x2b91ca[_0x5ee803('0x28')][_0x5ee803('0x1b')]),_0x2d4ee3['offset']=qs[_0x5ee803('0x39')](_0x2b91ca[_0x5ee803('0x28')][_0x5ee803('0x39')]));_0x2d4ee3['order']=qs[_0x5ee803('0x3a')](_0x2b91ca[_0x5ee803('0x28')]['sort']),_0x2d4ee3['where']=qs['filters'](_[_0x5ee803('0x2b')](_0x2b91ca[_0x5ee803('0x28')],_0x109ab9['filters']),_0x10fb01);_0x2b91ca[_0x5ee803('0x28')][_0x5ee803('0x19')]&&(_0x2d4ee3[_0x5ee803('0x34')]=_[_0x5ee803('0xc')](_0x2d4ee3[_0x5ee803('0x34')],{[Op['or']]:_[_0x5ee803('0x1e')](_0x10fb01,function(_0x262967){const _0x45883b=_0x5ee803;if(_0x262967[_0x45883b('0xe')]!==_0x45883b('0x21')){const _0x53d249={};return _0x53d249[_0x262967[_0x45883b('0x9')]]={[Op[_0x45883b('0x4')]]:'%'+_0x2b91ca[_0x45883b('0x28')][_0x45883b('0x19')]+'%'},_0x53d249;}})}));_0x2d4ee3=_[_0x5ee803('0xc')]({},_0x2d4ee3,_0x2b91ca[_0x5ee803('0x3b')]);const _0x449b1a={'where':_0x2d4ee3[_0x5ee803('0x34')]};return db['VoiceChanSpy'][_0x5ee803('0x18')](_0x449b1a)['then'](function(_0x197828){const _0x2e4250=_0x5ee803;return _0x4e6c39[_0x2e4250('0x18')]=_0x197828,_0x2b91ca[_0x2e4250('0x28')][_0x2e4250('0x1c')]&&(_0x2d4ee3['include']=[{'all':!![]}]),db[_0x2e4250('0x10')][_0x2e4250('0x2f')](_0x2d4ee3);})[_0x5ee803('0x2d')](function(_0x235378){const _0x501fb9=_0x5ee803;return _0x4e6c39[_0x501fb9('0x2e')]=_0x235378,_0x4e6c39;})['then'](respondWithFilteredResult(_0x447fc8,_0x2d4ee3))[_0x5ee803('0x6')](handleError(_0x447fc8,null));},exports[_0xa7bf2b('0xa')]=function(_0x4815cc,_0x2f2564){const _0x3d400b=_0xa7bf2b;let _0x26da79={'raw':![],'where':{'id':_0x4815cc[_0x3d400b('0x1')]['id']}};const _0x3b2d98={};return _0x3b2d98[_0x3d400b('0x31')]=_['keys'](db['VoiceChanSpy'][_0x3d400b('0x37')]),_0x3b2d98[_0x3d400b('0x28')]=_[_0x3d400b('0x2')](_0x4815cc[_0x3d400b('0x28')]),_0x3b2d98['filters']=_['intersection'](_0x3b2d98[_0x3d400b('0x31')],_0x3b2d98[_0x3d400b('0x28')]),_0x26da79['attributes']=_[_0x3d400b('0x12')](_0x3b2d98[_0x3d400b('0x31')],qs[_0x3d400b('0x32')](_0x4815cc[_0x3d400b('0x28')][_0x3d400b('0x32')])),_0x26da79[_0x3d400b('0x30')]=_0x26da79[_0x3d400b('0x30')][_0x3d400b('0x22')]?_0x26da79['attributes']:_0x3b2d98[_0x3d400b('0x31')],_0x4815cc['query']['includeAll']&&(_0x26da79[_0x3d400b('0x27')]=[{'all':!![]}]),_0x26da79=_['merge']({},_0x26da79,_0x4815cc[_0x3d400b('0x3b')]),db[_0x3d400b('0x10')][_0x3d400b('0x26')](_0x26da79)[_0x3d400b('0x2d')](handleEntityNotFound(_0x2f2564,null))[_0x3d400b('0x2d')](respondWithResult(_0x2f2564,null))[_0x3d400b('0x6')](handleError(_0x2f2564,null));},exports[_0xa7bf2b('0x11')]=function(_0x25dd5f,_0x2f0d4f){const _0x17c799=_0xa7bf2b;return db[_0x17c799('0x10')][_0x17c799('0x11')](_0x25dd5f[_0x17c799('0x33')],{})[_0x17c799('0x2d')](function(_0x566a87){const _0x2d6416=_0x17c799,_0x2e165a=_0x25dd5f[_0x2d6416('0x38')][_0x2d6416('0x29')]({'plain':!![]});if(!_0x2e165a)throw new Error(_0x2d6416('0x2a'));if(_0x2e165a[_0x2d6416('0x13')]===_0x2d6416('0x38')){const _0x54ead2=_0x566a87['get']({'plain':!![]}),_0x280e8f=_0x2d6416('0x36');return db['UserProfileSection'][_0x2d6416('0x26')]({'where':{'name':_0x280e8f,'userProfileId':_0x2e165a[_0x2d6416('0x1d')]},'raw':!![]})[_0x2d6416('0x2d')](function(_0x3fa9c0){const _0x2e8b40=_0x2d6416;return _0x3fa9c0&&_0x3fa9c0[_0x2e8b40('0x25')]===0x0?db[_0x2e8b40('0xf')][_0x2e8b40('0x11')]({'name':_0x54ead2[_0x2e8b40('0x9')],'resourceId':_0x54ead2['id'],'type':_0x3fa9c0[_0x2e8b40('0x9')],'sectionId':_0x3fa9c0['id']},{})[_0x2e8b40('0x2d')](function(){return _0x566a87;}):_0x566a87;})['catch'](function(_0x242e08){const _0x3aeb6c=_0x2d6416;logger[_0x3aeb6c('0x14')](_0x3aeb6c('0x1f'),_0x242e08);throw _0x242e08;});}return _0x566a87;})['then'](respondWithResult(_0x2f0d4f,0xc9))[_0x17c799('0x6')](handleError(_0x2f0d4f,null));},exports['update']=function(_0x14bf3b,_0x48a0a3){const _0xe5cb72=_0xa7bf2b;return _0x14bf3b[_0xe5cb72('0x33')]['id']&&delete _0x14bf3b[_0xe5cb72('0x33')]['id'],db[_0xe5cb72('0x10')][_0xe5cb72('0x26')]({'where':{'id':_0x14bf3b[_0xe5cb72('0x1')]['id']}})[_0xe5cb72('0x2d')](handleEntityNotFound(_0x48a0a3,null))[_0xe5cb72('0x2d')](saveUpdates(_0x14bf3b['body'],null))[_0xe5cb72('0x2d')](respondWithResult(_0x48a0a3,null))[_0xe5cb72('0x6')](handleError(_0x48a0a3,null));},exports[_0xa7bf2b('0x0')]=function(_0x17a064,_0x4a0939){const _0x2613c8=_0xa7bf2b;return db['VoiceChanSpy'][_0x2613c8('0x26')]({'where':{'id':_0x17a064[_0x2613c8('0x1')]['id']}})[_0x2613c8('0x2d')](handleEntityNotFound(_0x4a0939,null))[_0x2613c8('0x2d')](removeEntity(_0x4a0939,null))[_0x2613c8('0x6')](handleError(_0x4a0939,null));}; \ No newline at end of file +const a714_0x460f=['order','like','userProfileId','status','sendStatus','destroy','body','catch','index','UserProfileSection','length','VoiceChanSpy','model','then','get','send','map','key','pick','stack','options','where','rawAttributes','set','../../config/logger','include','update','fieldName','json','UserProfileResource','Unable\x20to\x20retrieve\x20the\x20current\x20user','sort','merge','ChanSpies','name','autoAssociation','limit','count','findAll','findOne','user','create','../../mysqldb','../../components/parsers/qs','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','keys','type','filter','includeAll','offset','query','end','attributes','filters','VIRTUAL','error','lodash','rows','params','intersection','fields','role'];(function(_0x154705,_0x460fbb){const _0x1f4b7d=function(_0xbecd41){while(--_0xbecd41){_0x154705['push'](_0x154705['shift']());}};_0x1f4b7d(++_0x460fbb);}(a714_0x460f,0xcb));const a714_0x1f4b=function(_0x154705,_0x460fbb){_0x154705=_0x154705-0x0;let _0x1f4b7d=a714_0x460f[_0x154705];return _0x1f4b7d;};const _0x3e96cc=a714_0x1f4b;'use strict';const _=require(_0x3e96cc('0x27')),qs=require(_0x3e96cc('0x1a')),logger=require(_0x3e96cc('0x7'))('api'),db=require(_0x3e96cc('0x19'))['db'],{Op}=require('sequelize');function respondWithResult(_0xbecd41,_0x3a2665){return _0x3a2665=_0x3a2665||0xc8,function(_0x1fb05a){const _0x1b3cbb=a714_0x1f4b;if(_0x1fb05a)return _0xbecd41['status'](_0x3a2665)[_0x1b3cbb('0xb')](_0x1fb05a);};}function respondWithFilteredResult(_0x38f6cc,_0x319573){return function(_0x37fe08){const _0x2fa696=a714_0x1f4b;if(_0x37fe08){const _0x15a52f=_0x37fe08[_0x2fa696('0x14')],_0x1f4471=_0x319573['offset'];let _0x21fd4e=_0x319573[_0x2fa696('0x20')]+_0x319573[_0x2fa696('0x13')],_0x4623ad;return _0x21fd4e>=_0x15a52f?(_0x21fd4e=_0x15a52f,_0x4623ad=0xc8):_0x4623ad=0xce,_0x38f6cc[_0x2fa696('0x30')](_0x4623ad),_0x38f6cc[_0x2fa696('0x6')]('Content-Range',_0x1f4471+'-'+_0x21fd4e+'/'+_0x15a52f)['json'](_0x37fe08);}return null;};}function saveUpdates(_0x9eeb3f){return function(_0x5ec510){const _0x27f95a=a714_0x1f4b;if(_0x5ec510)return _0x5ec510[_0x27f95a('0x9')](_0x9eeb3f)[_0x27f95a('0x3a')](function(_0x375c01){return _0x375c01;});return null;};}function removeEntity(_0x26da94){return function(_0x4a76ff){const _0x28aa40=a714_0x1f4b;if(_0x4a76ff)return _0x4a76ff[_0x28aa40('0x32')]()['then'](function(){const _0x193fd7=_0x28aa40,_0x29cdf7=_0x4a76ff[_0x193fd7('0x3b')]({'plain':!![]}),_0x5473eb=_0x193fd7('0x10');return db[_0x193fd7('0xc')][_0x193fd7('0x32')]({'where':{'type':_0x5473eb,'resourceId':_0x29cdf7['id']}})[_0x193fd7('0x3a')](function(){return _0x4a76ff;});})[_0x28aa40('0x3a')](function(){const _0x43d5c1=_0x28aa40;_0x26da94[_0x43d5c1('0x30')](0xcc)[_0x43d5c1('0x22')]();});};}function handleEntityNotFound(_0x443b02){return function(_0x365e2e){const _0x5b03f7=a714_0x1f4b;return!_0x365e2e&&_0x443b02[_0x5b03f7('0x31')](0x194),_0x365e2e;};}function handleError(_0x358254,_0x18d18a){return _0x18d18a=_0x18d18a||0x1f4,function(_0x4074fe){const _0x342e8f=a714_0x1f4b;logger[_0x342e8f('0x26')](_0x4074fe[_0x342e8f('0x2')]),_0x4074fe['name']&&delete _0x4074fe[_0x342e8f('0x11')],_0x358254['status'](_0x18d18a)[_0x342e8f('0x3c')](_0x4074fe);};}exports[_0x3e96cc('0x35')]=function(_0x252f2b,_0x315611){const _0x49ea10=_0x3e96cc;let _0x32e20c={};const _0x4c94b5={},_0x139429={'count':0x0,'rows':[]},_0x25a7bb=_[_0x49ea10('0x3d')](db[_0x49ea10('0x38')][_0x49ea10('0x5')],function(_0x188930){const _0x1a0785=_0x49ea10;return{'name':_0x188930[_0x1a0785('0xa')],'type':_0x188930[_0x1a0785('0x1d')][_0x1a0785('0x0')]};});_0x4c94b5['model']=_[_0x49ea10('0x3d')](_0x25a7bb,_0x49ea10('0x11')),_0x4c94b5[_0x49ea10('0x21')]=_[_0x49ea10('0x1c')](_0x252f2b[_0x49ea10('0x21')]),_0x4c94b5[_0x49ea10('0x24')]=_[_0x49ea10('0x2a')](_0x4c94b5[_0x49ea10('0x39')],_0x4c94b5[_0x49ea10('0x21')]),_0x32e20c[_0x49ea10('0x23')]=_[_0x49ea10('0x2a')](_0x4c94b5[_0x49ea10('0x39')],qs[_0x49ea10('0x2b')](_0x252f2b['query'][_0x49ea10('0x2b')])),_0x32e20c[_0x49ea10('0x23')]=_0x32e20c['attributes']['length']?_0x32e20c['attributes']:_0x4c94b5[_0x49ea10('0x39')];typeof _0x252f2b[_0x49ea10('0x21')]['nolimit']==='undefined'&&(_0x32e20c[_0x49ea10('0x13')]=qs['limit'](_0x252f2b[_0x49ea10('0x21')][_0x49ea10('0x13')]),_0x32e20c[_0x49ea10('0x20')]=qs[_0x49ea10('0x20')](_0x252f2b[_0x49ea10('0x21')][_0x49ea10('0x20')]));_0x32e20c[_0x49ea10('0x2d')]=qs[_0x49ea10('0xe')](_0x252f2b[_0x49ea10('0x21')][_0x49ea10('0xe')]),_0x32e20c[_0x49ea10('0x4')]=qs[_0x49ea10('0x24')](_[_0x49ea10('0x1')](_0x252f2b[_0x49ea10('0x21')],_0x4c94b5[_0x49ea10('0x24')]),_0x25a7bb);_0x252f2b[_0x49ea10('0x21')][_0x49ea10('0x1e')]&&(_0x32e20c[_0x49ea10('0x4')]=_[_0x49ea10('0xf')](_0x32e20c['where'],{[Op['or']]:_['map'](_0x25a7bb,function(_0x41a066){const _0x16ef90=_0x49ea10;if(_0x41a066['type']!==_0x16ef90('0x25')){const _0x45085d={};return _0x45085d[_0x41a066['name']]={[Op[_0x16ef90('0x2e')]]:'%'+_0x252f2b[_0x16ef90('0x21')][_0x16ef90('0x1e')]+'%'},_0x45085d;}})}));_0x32e20c=_[_0x49ea10('0xf')]({},_0x32e20c,_0x252f2b['options']);const _0x10a837={'where':_0x32e20c[_0x49ea10('0x4')]};return db['VoiceChanSpy'][_0x49ea10('0x14')](_0x10a837)[_0x49ea10('0x3a')](function(_0x120c93){const _0x58f4bc=_0x49ea10;return _0x139429[_0x58f4bc('0x14')]=_0x120c93,_0x252f2b['query'][_0x58f4bc('0x1f')]&&(_0x32e20c[_0x58f4bc('0x8')]=[{'all':!![]}]),db[_0x58f4bc('0x38')][_0x58f4bc('0x15')](_0x32e20c);})[_0x49ea10('0x3a')](function(_0x1662fb){const _0x10cefc=_0x49ea10;return _0x139429[_0x10cefc('0x28')]=_0x1662fb,_0x139429;})[_0x49ea10('0x3a')](respondWithFilteredResult(_0x315611,_0x32e20c))[_0x49ea10('0x34')](handleError(_0x315611,null));},exports['show']=function(_0x1a4cdd,_0x34e870){const _0x3bbdbd=_0x3e96cc;let _0x1f62e8={'raw':![],'where':{'id':_0x1a4cdd[_0x3bbdbd('0x29')]['id']}};const _0x2db79a={};return _0x2db79a['model']=_[_0x3bbdbd('0x1c')](db[_0x3bbdbd('0x38')][_0x3bbdbd('0x5')]),_0x2db79a[_0x3bbdbd('0x21')]=_[_0x3bbdbd('0x1c')](_0x1a4cdd[_0x3bbdbd('0x21')]),_0x2db79a[_0x3bbdbd('0x24')]=_[_0x3bbdbd('0x2a')](_0x2db79a[_0x3bbdbd('0x39')],_0x2db79a[_0x3bbdbd('0x21')]),_0x1f62e8['attributes']=_[_0x3bbdbd('0x2a')](_0x2db79a[_0x3bbdbd('0x39')],qs[_0x3bbdbd('0x2b')](_0x1a4cdd[_0x3bbdbd('0x21')]['fields'])),_0x1f62e8[_0x3bbdbd('0x23')]=_0x1f62e8[_0x3bbdbd('0x23')][_0x3bbdbd('0x37')]?_0x1f62e8['attributes']:_0x2db79a[_0x3bbdbd('0x39')],_0x1a4cdd[_0x3bbdbd('0x21')]['includeAll']&&(_0x1f62e8[_0x3bbdbd('0x8')]=[{'all':!![]}]),_0x1f62e8=_[_0x3bbdbd('0xf')]({},_0x1f62e8,_0x1a4cdd[_0x3bbdbd('0x3')]),db[_0x3bbdbd('0x38')]['findOne'](_0x1f62e8)[_0x3bbdbd('0x3a')](handleEntityNotFound(_0x34e870,null))[_0x3bbdbd('0x3a')](respondWithResult(_0x34e870,null))[_0x3bbdbd('0x34')](handleError(_0x34e870,null));},exports[_0x3e96cc('0x18')]=function(_0x1c84ec,_0x800a13){const _0x176e68=_0x3e96cc;return db[_0x176e68('0x38')][_0x176e68('0x18')](_0x1c84ec[_0x176e68('0x33')],{})[_0x176e68('0x3a')](function(_0x51d956){const _0x18eaaf=_0x176e68,_0x3bcf3e=_0x1c84ec[_0x18eaaf('0x17')]['get']({'plain':!![]});if(!_0x3bcf3e)throw new Error(_0x18eaaf('0xd'));if(_0x3bcf3e[_0x18eaaf('0x2c')]===_0x18eaaf('0x17')){const _0x5a00c8=_0x51d956['get']({'plain':!![]}),_0x1e16ca=_0x18eaaf('0x10');return db[_0x18eaaf('0x36')][_0x18eaaf('0x16')]({'where':{'name':_0x1e16ca,'userProfileId':_0x3bcf3e[_0x18eaaf('0x2f')]},'raw':!![]})[_0x18eaaf('0x3a')](function(_0x5b0728){const _0x45411c=_0x18eaaf;return _0x5b0728&&_0x5b0728[_0x45411c('0x12')]===0x0?db[_0x45411c('0xc')][_0x45411c('0x18')]({'name':_0x5a00c8[_0x45411c('0x11')],'resourceId':_0x5a00c8['id'],'type':_0x5b0728[_0x45411c('0x11')],'sectionId':_0x5b0728['id']},{})['then'](function(){return _0x51d956;}):_0x51d956;})[_0x18eaaf('0x34')](function(_0x408b0d){const _0x172051=_0x18eaaf;logger['error'](_0x172051('0x1b'),_0x408b0d);throw _0x408b0d;});}return _0x51d956;})['then'](respondWithResult(_0x800a13,0xc9))['catch'](handleError(_0x800a13,null));},exports[_0x3e96cc('0x9')]=function(_0x59f813,_0x4d93eb){const _0x3664f0=_0x3e96cc;return _0x59f813['body']['id']&&delete _0x59f813['body']['id'],db[_0x3664f0('0x38')][_0x3664f0('0x16')]({'where':{'id':_0x59f813[_0x3664f0('0x29')]['id']}})[_0x3664f0('0x3a')](handleEntityNotFound(_0x4d93eb,null))[_0x3664f0('0x3a')](saveUpdates(_0x59f813[_0x3664f0('0x33')],null))[_0x3664f0('0x3a')](respondWithResult(_0x4d93eb,null))[_0x3664f0('0x34')](handleError(_0x4d93eb,null));},exports['destroy']=function(_0x43f77,_0x2153ad){const _0x15fc16=_0x3e96cc;return db[_0x15fc16('0x38')][_0x15fc16('0x16')]({'where':{'id':_0x43f77['params']['id']}})[_0x15fc16('0x3a')](handleEntityNotFound(_0x2153ad,null))[_0x15fc16('0x3a')](removeEntity(_0x2153ad,null))[_0x15fc16('0x34')](handleError(_0x2153ad,null));}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.model.js b/server/api/voiceChanSpy/voiceChanSpy.model.js index 1f9f554..535f9f1 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.model.js +++ b/server/api/voiceChanSpy/voiceChanSpy.model.js @@ -1 +1 @@ -const a715_0x317c=['push','voice_chanspy','StopMixMonitor','name','define','bulkCreate','%s%s','merge','join','${UNIQUEID}.%s,ab','findAll','internal','destroy','from-sip','VoiceChanSpy','concat','password','VoiceExtension','Set','./voiceChanSpy.attributes','Authenticate','format','util','catch','SIP/%s,%s','then','record','length','context','exports','recordingFormat','MixMonitor','prefix','lodash','options','CDR(type)=%s','User'];(function(_0x5b518e,_0x317c4e){const _0x13cf56=function(_0x19d4da){while(--_0x19d4da){_0x5b518e['push'](_0x5b518e['shift']());}};_0x13cf56(++_0x317c4e);}(a715_0x317c,0xc0));const a715_0x13cf=function(_0x5b518e,_0x317c4e){_0x5b518e=_0x5b518e-0x0;let _0x13cf56=a715_0x317c[_0x5b518e];return _0x13cf56;};const _0x4467a7=a715_0x13cf;'use strict';const _=require(_0x4467a7('0x1a')),util=require(_0x4467a7('0xf')),attributes=require(_0x4467a7('0xc')),createChanSpyApplications=function(_0x19d4da,_0x8cbda2,_0x4adc21){const _0x143247=_0x4467a7;let _0x1171d7=0x1;const _0x51db45=[],_0x366d9d={'context':_0x8cbda2[_0x143247('0x15')]||_0x143247('0x6'),'exten':util[_0x143247('0xe')](_0x143247('0x24'),_0x19d4da[_0x143247('0x19')],_0x4adc21),'type':'system','isApp':![],'ChanSpyId':_0x19d4da['id'],'UserId':_0x8cbda2['id']};return _0x51db45[_0x143247('0x1e')](_[_0x143247('0x0')]({'app':_0x143247('0xb'),'appdata':util[_0x143247('0xe')](_0x143247('0x1c'),'chanspy'),'priority':_0x1171d7++},_0x366d9d)),_0x19d4da[_0x143247('0x13')]&&_0x51db45[_0x143247('0x1e')](_['merge']({'app':_0x143247('0x18'),'appdata':util[_0x143247('0xe')](_0x143247('0x2'),_0x19d4da[_0x143247('0x17')]),'priority':_0x1171d7++},_0x366d9d)),_0x19d4da['auth']&&_0x51db45[_0x143247('0x1e')](_[_0x143247('0x0')]({'app':_0x143247('0xd'),'appdata':_0x19d4da[_0x143247('0x9')],'priority':_0x1171d7++},_0x366d9d)),_0x51db45[_0x143247('0x1e')](_[_0x143247('0x0')]({'app':'ChanSpy','appdata':util[_0x143247('0xe')](_0x143247('0x11'),_0x8cbda2['name'],_0x19d4da[_0x143247('0x1b')]?_0x19d4da[_0x143247('0x1b')][_0x143247('0x1')](''):''),'priority':_0x1171d7++},_0x366d9d)),_0x19d4da[_0x143247('0x13')]&&_0x51db45[_0x143247('0x1e')](_['merge']({'app':_0x143247('0x20'),'priority':_0x1171d7++},_0x366d9d)),_0x51db45;},addChanSpyApplications=function(_0x1db999,_0x1d173e){const _0x3386e7=_0x4467a7;let _0x2a2839=[];for(let _0x39c0bc=0x0;_0x39c0bc<_0x1d173e[_0x3386e7('0x14')];_0x39c0bc++){_0x2a2839=_0x2a2839[_0x3386e7('0x8')](createChanSpyApplications(_0x1db999,_0x1d173e[_0x39c0bc],_0x1d173e[_0x39c0bc]['internal'])),_0x1d173e[_0x39c0bc][_0x3386e7('0x4')]!=_0x1d173e[_0x39c0bc][_0x3386e7('0x21')]&&(_0x2a2839=_0x2a2839['concat'](createChanSpyApplications(_0x1db999,_0x1d173e[_0x39c0bc],_0x1d173e[_0x39c0bc][_0x3386e7('0x21')])));}return _0x2a2839;},getChanSpy=function(_0xa6ec59,_0x5c8ac8){return new Promise(function(_0x25acdb,_0x3223b9){const _0x4efb29=a715_0x13cf;return _0xa6ec59[_0x4efb29('0x1d')][_0x4efb29('0x3')]({'attributes':['id',_0x4efb29('0x21'),_0x4efb29('0x4')],'where':{'role':'agent','chanspy':!![]},'raw':!![]})[_0x4efb29('0x12')](function(_0x45a226){if(_0x45a226)return _0x25acdb(addChanSpyApplications(_0x5c8ac8,_0x45a226));return _0x25acdb([]);})['catch'](function(_0x4ba602){_0x3223b9(_0x4ba602);});});};module[_0x4467a7('0x16')]=function(_0x49a020){const _0x24d3fc=_0x4467a7,_0x31cbc4=_0x49a020['models'],_0x779412=_0x49a020[_0x24d3fc('0x22')](_0x24d3fc('0x7'),attributes,{'tableName':_0x24d3fc('0x1f'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x5d8074){const _0x53bab4=_0x24d3fc;return getChanSpy(_0x31cbc4,_0x5d8074)[_0x53bab4('0x12')](function(_0x4906fb){const _0x3a93bc=_0x53bab4;return _0x4906fb&&_0x4906fb[_0x3a93bc('0x14')]?_0x31cbc4['VoiceExtension'][_0x3a93bc('0x23')](_0x4906fb):null;})['catch'](function(_0x5e216d){return _0x5e216d;});},'afterUpdate':function(_0x67ba1b){const _0x1835be=_0x24d3fc;return _0x31cbc4[_0x1835be('0xa')][_0x1835be('0x5')]({'where':{'ChanSpyId':_0x67ba1b['id']}})[_0x1835be('0x12')](function(){return getChanSpy(_0x31cbc4,_0x67ba1b);})[_0x1835be('0x12')](function(_0x51df83){const _0xdc1337=_0x1835be;return _0x51df83&&_0x51df83[_0xdc1337('0x14')]?_0x31cbc4[_0xdc1337('0xa')][_0xdc1337('0x23')](_0x51df83):null;})[_0x1835be('0x10')](function(_0x272e39){return _0x272e39;});},'afterDestroy':function(_0x4e32c4){const _0x359b5d=_0x24d3fc;return _0x31cbc4[_0x359b5d('0xa')][_0x359b5d('0x5')]({'where':{'ChanSpyId':_0x4e32c4['id']}})[_0x359b5d('0x12')](function(){return null;})[_0x359b5d('0x10')](function(_0x463b6c){return _0x463b6c;});}}});return _0x779412;}; \ No newline at end of file +const a715_0x54c9=['password','${UNIQUEID}.%s,ab','MixMonitor','CDR(type)=%s','bulkCreate','push','context','destroy','User','models','internal','prefix','Set','VoiceChanSpy','recordingFormat','VoiceExtension','SIP/%s,%s','StopMixMonitor','concat','define','auth','lodash','system','merge','chanspy','format','catch','agent','then','voice_chanspy','from-sip','join','name','findAll','record','Authenticate','length','options'];(function(_0x47c545,_0x54c946){const _0x242785=function(_0x5dea75){while(--_0x5dea75){_0x47c545['push'](_0x47c545['shift']());}};_0x242785(++_0x54c946);}(a715_0x54c9,0x95));const a715_0x2427=function(_0x47c545,_0x54c946){_0x47c545=_0x47c545-0x0;let _0x242785=a715_0x54c9[_0x47c545];return _0x242785;};const _0x147dc6=a715_0x2427;'use strict';const _=require(_0x147dc6('0x18')),util=require('util'),attributes=require('./voiceChanSpy.attributes'),createChanSpyApplications=function(_0x5dea75,_0x8efa64,_0x2496fe){const _0x36cc2f=_0x147dc6;let _0x33999f=0x1;const _0x31d2fc=[],_0x4773cd={'context':_0x8efa64[_0x36cc2f('0x9')]||_0x36cc2f('0x21'),'exten':util[_0x36cc2f('0x1c')]('%s%s',_0x5dea75[_0x36cc2f('0xe')],_0x2496fe),'type':_0x36cc2f('0x19'),'isApp':![],'ChanSpyId':_0x5dea75['id'],'UserId':_0x8efa64['id']};return _0x31d2fc[_0x36cc2f('0x8')](_['merge']({'app':_0x36cc2f('0xf'),'appdata':util['format'](_0x36cc2f('0x6'),_0x36cc2f('0x1b')),'priority':_0x33999f++},_0x4773cd)),_0x5dea75[_0x36cc2f('0x25')]&&_0x31d2fc[_0x36cc2f('0x8')](_['merge']({'app':_0x36cc2f('0x5'),'appdata':util[_0x36cc2f('0x1c')](_0x36cc2f('0x4'),_0x5dea75[_0x36cc2f('0x11')]),'priority':_0x33999f++},_0x4773cd)),_0x5dea75[_0x36cc2f('0x17')]&&_0x31d2fc[_0x36cc2f('0x8')](_[_0x36cc2f('0x1a')]({'app':_0x36cc2f('0x0'),'appdata':_0x5dea75[_0x36cc2f('0x3')],'priority':_0x33999f++},_0x4773cd)),_0x31d2fc[_0x36cc2f('0x8')](_[_0x36cc2f('0x1a')]({'app':'ChanSpy','appdata':util[_0x36cc2f('0x1c')](_0x36cc2f('0x13'),_0x8efa64[_0x36cc2f('0x23')],_0x5dea75['options']?_0x5dea75[_0x36cc2f('0x2')][_0x36cc2f('0x22')](''):''),'priority':_0x33999f++},_0x4773cd)),_0x5dea75[_0x36cc2f('0x25')]&&_0x31d2fc[_0x36cc2f('0x8')](_[_0x36cc2f('0x1a')]({'app':_0x36cc2f('0x14'),'priority':_0x33999f++},_0x4773cd)),_0x31d2fc;},addChanSpyApplications=function(_0x2c7e33,_0x3ff26b){const _0x4814f3=_0x147dc6;let _0xf6a0a2=[];for(let _0x20538b=0x0;_0x20538b<_0x3ff26b[_0x4814f3('0x1')];_0x20538b++){_0xf6a0a2=_0xf6a0a2[_0x4814f3('0x15')](createChanSpyApplications(_0x2c7e33,_0x3ff26b[_0x20538b],_0x3ff26b[_0x20538b][_0x4814f3('0xd')])),_0x3ff26b[_0x20538b][_0x4814f3('0xd')]!=_0x3ff26b[_0x20538b]['name']&&(_0xf6a0a2=_0xf6a0a2[_0x4814f3('0x15')](createChanSpyApplications(_0x2c7e33,_0x3ff26b[_0x20538b],_0x3ff26b[_0x20538b]['name'])));}return _0xf6a0a2;},getChanSpy=function(_0x5f5a05,_0x464752){return new Promise(function(_0x5976e8,_0x3f12e1){const _0x575f37=a715_0x2427;return _0x5f5a05[_0x575f37('0xb')][_0x575f37('0x24')]({'attributes':['id',_0x575f37('0x23'),_0x575f37('0xd')],'where':{'role':_0x575f37('0x1e'),'chanspy':!![]},'raw':!![]})[_0x575f37('0x1f')](function(_0x5c2a0e){if(_0x5c2a0e)return _0x5976e8(addChanSpyApplications(_0x464752,_0x5c2a0e));return _0x5976e8([]);})[_0x575f37('0x1d')](function(_0x124f00){_0x3f12e1(_0x124f00);});});};module['exports']=function(_0x419186){const _0x2af5bd=_0x147dc6,_0x205a31=_0x419186[_0x2af5bd('0xc')],_0x15fbbb=_0x419186[_0x2af5bd('0x16')](_0x2af5bd('0x10'),attributes,{'tableName':_0x2af5bd('0x20'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x4a38dd){const _0x9427e2=_0x2af5bd;return getChanSpy(_0x205a31,_0x4a38dd)[_0x9427e2('0x1f')](function(_0x1b7f79){const _0x1aacd7=_0x9427e2;return _0x1b7f79&&_0x1b7f79['length']?_0x205a31['VoiceExtension'][_0x1aacd7('0x7')](_0x1b7f79):null;})[_0x9427e2('0x1d')](function(_0x4085bd){return _0x4085bd;});},'afterUpdate':function(_0x21c721){const _0x28bb01=_0x2af5bd;return _0x205a31[_0x28bb01('0x12')][_0x28bb01('0xa')]({'where':{'ChanSpyId':_0x21c721['id']}})[_0x28bb01('0x1f')](function(){return getChanSpy(_0x205a31,_0x21c721);})[_0x28bb01('0x1f')](function(_0x179feb){const _0x43d4fd=_0x28bb01;return _0x179feb&&_0x179feb[_0x43d4fd('0x1')]?_0x205a31[_0x43d4fd('0x12')][_0x43d4fd('0x7')](_0x179feb):null;})[_0x28bb01('0x1d')](function(_0x32564f){return _0x32564f;});},'afterDestroy':function(_0x3b35e9){const _0x141712=_0x2af5bd;return _0x205a31['VoiceExtension'][_0x141712('0xa')]({'where':{'ChanSpyId':_0x3b35e9['id']}})[_0x141712('0x1f')](function(){return null;})['catch'](function(_0x1db30c){return _0x1db30c;});}}});return _0x15fbbb;}; \ No newline at end of file diff --git a/server/api/voiceContext/index.js b/server/api/voiceContext/index.js index d6b0c93..01a484c 100644 --- a/server/api/voiceContext/index.js +++ b/server/api/voiceContext/index.js @@ -1 +1 @@ -const a716_0x4d68=['isAuthenticated','post','index','Router','get','/:id','exports','create','delete','../../components/auth/service','express','put','destroy','show','./voiceContext.controller','update'];(function(_0x2fee5c,_0x4d68ea){const _0x2d3da8=function(_0x24626a){while(--_0x24626a){_0x2fee5c['push'](_0x2fee5c['shift']());}};_0x2d3da8(++_0x4d68ea);}(a716_0x4d68,0x14f));const a716_0x2d3d=function(_0x2fee5c,_0x4d68ea){_0x2fee5c=_0x2fee5c-0x0;let _0x2d3da8=a716_0x4d68[_0x2fee5c];return _0x2d3da8;};const _0x401e98=a716_0x2d3d;'use strict';const express=require(_0x401e98('0xb')),router=express[_0x401e98('0x4')](),auth=require(_0x401e98('0xa')),controller=require(_0x401e98('0xf'));router[_0x401e98('0x5')]('/',auth[_0x401e98('0x1')](),controller[_0x401e98('0x3')]),router[_0x401e98('0x5')](_0x401e98('0x6'),auth[_0x401e98('0x1')](),controller[_0x401e98('0xe')]),router[_0x401e98('0x2')]('/',auth['isAuthenticated'](),controller[_0x401e98('0x8')]),router[_0x401e98('0xc')]('/:id',auth[_0x401e98('0x1')](),controller[_0x401e98('0x0')]),router[_0x401e98('0x9')](_0x401e98('0x6'),auth[_0x401e98('0x1')](),controller[_0x401e98('0xd')]),module[_0x401e98('0x7')]=router; \ No newline at end of file +const a716_0x121a=['exports','isAuthenticated','create','express','index','destroy','show','put','delete','/:id','../../components/auth/service','get','post'];(function(_0x215370,_0x121abf){const _0x11e89c=function(_0x1452d0){while(--_0x1452d0){_0x215370['push'](_0x215370['shift']());}};_0x11e89c(++_0x121abf);}(a716_0x121a,0x145));const a716_0x11e8=function(_0x215370,_0x121abf){_0x215370=_0x215370-0x0;let _0x11e89c=a716_0x121a[_0x215370];return _0x11e89c;};const _0x2b2e9b=a716_0x11e8;'use strict';const express=require(_0x2b2e9b('0x3')),router=express['Router'](),auth=require(_0x2b2e9b('0xa')),controller=require('./voiceContext.controller');router[_0x2b2e9b('0xb')]('/',auth[_0x2b2e9b('0x1')](),controller[_0x2b2e9b('0x4')]),router[_0x2b2e9b('0xb')](_0x2b2e9b('0x9'),auth[_0x2b2e9b('0x1')](),controller[_0x2b2e9b('0x6')]),router[_0x2b2e9b('0xc')]('/',auth[_0x2b2e9b('0x1')](),controller[_0x2b2e9b('0x2')]),router[_0x2b2e9b('0x7')](_0x2b2e9b('0x9'),auth[_0x2b2e9b('0x1')](),controller['update']),router[_0x2b2e9b('0x8')]('/:id',auth[_0x2b2e9b('0x1')](),controller[_0x2b2e9b('0x5')]),module[_0x2b2e9b('0x0')]=router; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.attributes.js b/server/api/voiceContext/voiceContext.attributes.js index 56faba7..f89399a 100644 --- a/server/api/voiceContext/voiceContext.attributes.js +++ b/server/api/voiceContext/voiceContext.attributes.js @@ -1 +1 @@ -const a717_0x9ed1=['sequelize','exports','BOOLEAN','name','STRING'];(function(_0x5411f6,_0x9ed1b){const _0x124c1c=function(_0xaf8083){while(--_0xaf8083){_0x5411f6['push'](_0x5411f6['shift']());}};_0x124c1c(++_0x9ed1b);}(a717_0x9ed1,0xdb));const a717_0x124c=function(_0x5411f6,_0x9ed1b){_0x5411f6=_0x5411f6-0x0;let _0x124c1c=a717_0x9ed1[_0x5411f6];return _0x124c1c;};const _0x4c86ce=a717_0x124c;'use strict';const Sequelize=require(_0x4c86ce('0x1'));module[_0x4c86ce('0x2')]={'name':{'type':Sequelize[_0x4c86ce('0x0')],'unique':_0x4c86ce('0x4')},'description':{'type':Sequelize[_0x4c86ce('0x0')],'allowNull':!![]},'defaultEntry':{'type':Sequelize[_0x4c86ce('0x3')],'defaultValue':0x0}}; \ No newline at end of file +const a717_0x1064=['exports','BOOLEAN','STRING'];(function(_0x2af533,_0x106497){const _0x55b81f=function(_0x4a37fe){while(--_0x4a37fe){_0x2af533['push'](_0x2af533['shift']());}};_0x55b81f(++_0x106497);}(a717_0x1064,0x149));const a717_0x55b8=function(_0x2af533,_0x106497){_0x2af533=_0x2af533-0x0;let _0x55b81f=a717_0x1064[_0x2af533];return _0x55b81f;};const _0x59e2e0=a717_0x55b8;'use strict';const Sequelize=require('sequelize');module[_0x59e2e0('0x1')]={'name':{'type':Sequelize[_0x59e2e0('0x0')],'unique':'name'},'description':{'type':Sequelize[_0x59e2e0('0x0')],'allowNull':!![]},'defaultEntry':{'type':Sequelize[_0x59e2e0('0x2')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.controller.js b/server/api/voiceContext/voiceContext.controller.js index aba6594..3db6f80 100644 --- a/server/api/voiceContext/voiceContext.controller.js +++ b/server/api/voiceContext/voiceContext.controller.js @@ -1 +1 @@ -const a718_0x1596=['map','sequelize','Content-Range','../../config/logger','Contexts','request\x20sent','key','attributes','show','where','request','join','message','server/files/templates/context.ejs','VoiceContext,\x20%s,\x20%s,\x20%s','writeFileSync','fieldName','sort','limit','fields','http','query','VIRTUAL','model','include','options','chan_sip.so','UserProfileSection','filters','ejs','intersection','length','update','order','name','readFileSync','stack','code','result','keys','includeAll','path','destroy','VoiceContext,\x20%s,\x20%s','offset','set','merge','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','status','utf8','VoiceContext','client','filter','get','end','Reload','count','debug','findOne','send','Unable\x20to\x20retrieve\x20the\x20current\x20user','jayson/promise','render','type','error','autoAssociation','create','catch','root','role','../../mysqldb','index','UserProfileResource','params','stringify','user','api','/etc/asterisk/extensions_xcally_contexts.conf','lodash','findAll','then','nolimit'];(function(_0x2a0ada,_0x159638){const _0x5f1368=function(_0xda37a3){while(--_0xda37a3){_0x2a0ada['push'](_0x2a0ada['shift']());}};_0x5f1368(++_0x159638);}(a718_0x1596,0x182));const a718_0x5f13=function(_0x2a0ada,_0x159638){_0x2a0ada=_0x2a0ada-0x0;let _0x5f1368=a718_0x1596[_0x2a0ada];return _0x5f1368;};const _0x29f97f=a718_0x5f13;'use strict';const path=require(_0x29f97f('0x41')),ejs=require(_0x29f97f('0x35')),fs=require('fs'),_=require(_0x29f97f('0x14')),qs=require('../../components/parsers/qs'),logger=require(_0x29f97f('0x1b'))(_0x29f97f('0x12')),config=require('../../config/environment'),db=require(_0x29f97f('0xc'))['db'],{Op}=require(_0x29f97f('0x19')),jayson=require(_0x29f97f('0x3')),client=jayson[_0x29f97f('0x4b')][_0x29f97f('0x2c')]({'port':0x232a});function respondWithRpcPromise(_0xda37a3,_0x889672,_0x47d9b0,_0x3b9e4e){return new Promise(function(_0x9ccd,_0x1bbe9d){const _0x10d14c=a718_0x5f13,_0x3d960e=_0x3b9e4e||client;return _0x3d960e[_0x10d14c('0x22')](_0xda37a3,_0x47d9b0)[_0x10d14c('0x16')](function(_0x5f200f){const _0x5272c4=_0x10d14c;logger['info'](_0x5272c4('0x43'),_0x889672,_0x5272c4('0x1d')),logger[_0x5272c4('0x51')](_0x5272c4('0x26'),_0x889672,'request\x20sent',JSON[_0x5272c4('0x10')](_0x5f200f));if(_0x5f200f[_0x5272c4('0x6')]){if(_0x5f200f['error'][_0x5272c4('0x3d')]===0x1f4)return logger[_0x5272c4('0x6')](_0x5272c4('0x43'),_0x889672,_0x5f200f[_0x5272c4('0x6')][_0x5272c4('0x24')]),_0x1bbe9d(_0x5f200f[_0x5272c4('0x6')][_0x5272c4('0x24')]);return logger[_0x5272c4('0x6')](_0x5272c4('0x43'),_0x889672,_0x5f200f[_0x5272c4('0x6')]['message']),_0x9ccd(_0x5f200f['error'][_0x5272c4('0x24')]);}else logger['info'](_0x5272c4('0x43'),_0x889672,_0x5272c4('0x1d')),_0x9ccd(_0x5f200f[_0x5272c4('0x3e')][_0x5272c4('0x24')]);})[_0x10d14c('0x9')](function(_0x1b689d){const _0x23198e=_0x10d14c;logger[_0x23198e('0x6')](_0x23198e('0x43'),_0x889672,_0x1b689d),_0x1bbe9d(_0x1b689d);});});}function respondWithResult(_0x1f5301,_0x431317){return _0x431317=_0x431317||0xc8,function(_0x457f38){const _0x5c47f8=a718_0x5f13;if(_0x457f38)return _0x1f5301[_0x5c47f8('0x48')](_0x431317)['json'](_0x457f38);};}function respondWithFilteredResult(_0x5c16a6,_0x5c573b){return function(_0x22e116){const _0x179336=a718_0x5f13;if(_0x22e116){const _0x45646a=_0x22e116[_0x179336('0x50')],_0x4d712f=_0x5c573b[_0x179336('0x44')];let _0x3975b5=_0x5c573b[_0x179336('0x44')]+_0x5c573b['limit'],_0x4c8615;return _0x3975b5>=_0x45646a?(_0x3975b5=_0x45646a,_0x4c8615=0xc8):_0x4c8615=0xce,_0x5c16a6[_0x179336('0x48')](_0x4c8615),_0x5c16a6[_0x179336('0x45')](_0x179336('0x1a'),_0x4d712f+'-'+_0x3975b5+'/'+_0x45646a)['json'](_0x22e116);}return null;};}function saveUpdates(_0x56de95){return function(_0x144fd8){const _0x88b42e=a718_0x5f13;if(_0x144fd8)return _0x144fd8[_0x88b42e('0x38')](_0x56de95)['then'](function(_0x559eaf){return _0x559eaf;});return null;};}function removeEntity(_0x2cdb0b){return function(_0x2ec67f){const _0x386d30=a718_0x5f13;if(_0x2ec67f)return _0x2ec67f[_0x386d30('0x42')]()[_0x386d30('0x16')](function(){const _0x1a7f28=_0x386d30,_0x3f3420=_0x2ec67f['get']({'plain':!![]}),_0x1b3004=_0x1a7f28('0x1c');return db[_0x1a7f28('0xe')][_0x1a7f28('0x42')]({'where':{'type':_0x1b3004,'resourceId':_0x3f3420['id']}})[_0x1a7f28('0x16')](function(){return _0x2ec67f;});})[_0x386d30('0x16')](function(){const _0x3b45cd=_0x386d30;_0x2cdb0b['status'](0xcc)[_0x3b45cd('0x4e')]();});};}function handleEntityNotFound(_0x2171f8){return function(_0xe491f6){return!_0xe491f6&&_0x2171f8['sendStatus'](0x194),_0xe491f6;};}function handleError(_0x4cc4ad,_0x5c7067){return _0x5c7067=_0x5c7067||0x1f4,function(_0x279936){const _0x45f703=a718_0x5f13;logger[_0x45f703('0x6')](_0x279936[_0x45f703('0x3c')]),_0x279936['name']&&delete _0x279936[_0x45f703('0x3a')],_0x4cc4ad[_0x45f703('0x48')](_0x5c7067)[_0x45f703('0x1')](_0x279936);};}exports[_0x29f97f('0xd')]=function(_0x5aeb0f,_0x4edd13){const _0x24fba8=_0x29f97f;let _0x526848={};const _0x10dc1d={},_0x4929ca={'count':0x0,'rows':[]},_0x4ea0e2=_[_0x24fba8('0x18')](db['VoiceContext']['rawAttributes'],function(_0x1d6078){const _0x212f70=_0x24fba8;return{'name':_0x1d6078[_0x212f70('0x28')],'type':_0x1d6078[_0x212f70('0x5')][_0x212f70('0x1e')]};});_0x10dc1d[_0x24fba8('0x2f')]=_[_0x24fba8('0x18')](_0x4ea0e2,_0x24fba8('0x3a')),_0x10dc1d[_0x24fba8('0x2d')]=_[_0x24fba8('0x3f')](_0x5aeb0f[_0x24fba8('0x2d')]),_0x10dc1d[_0x24fba8('0x34')]=_['intersection'](_0x10dc1d[_0x24fba8('0x2f')],_0x10dc1d[_0x24fba8('0x2d')]),_0x526848[_0x24fba8('0x1f')]=_[_0x24fba8('0x36')](_0x10dc1d[_0x24fba8('0x2f')],qs[_0x24fba8('0x2b')](_0x5aeb0f[_0x24fba8('0x2d')]['fields'])),_0x526848[_0x24fba8('0x1f')]=_0x526848[_0x24fba8('0x1f')][_0x24fba8('0x37')]?_0x526848['attributes']:_0x10dc1d[_0x24fba8('0x2f')];typeof _0x5aeb0f[_0x24fba8('0x2d')][_0x24fba8('0x17')]==='undefined'&&(_0x526848[_0x24fba8('0x2a')]=qs[_0x24fba8('0x2a')](_0x5aeb0f[_0x24fba8('0x2d')]['limit']),_0x526848[_0x24fba8('0x44')]=qs[_0x24fba8('0x44')](_0x5aeb0f[_0x24fba8('0x2d')][_0x24fba8('0x44')]));_0x526848[_0x24fba8('0x39')]=qs[_0x24fba8('0x29')](_0x5aeb0f[_0x24fba8('0x2d')]['sort']),_0x526848['where']=qs[_0x24fba8('0x34')](_['pick'](_0x5aeb0f[_0x24fba8('0x2d')],_0x10dc1d[_0x24fba8('0x34')]),_0x4ea0e2);_0x5aeb0f[_0x24fba8('0x2d')]['filter']&&(_0x526848['where']=_['merge'](_0x526848[_0x24fba8('0x21')],{[Op['or']]:_['map'](_0x4ea0e2,function(_0x2edf01){const _0x49f9fc=_0x24fba8;if(_0x2edf01[_0x49f9fc('0x5')]!==_0x49f9fc('0x2e')){const _0x55b5d9={};return _0x55b5d9[_0x2edf01[_0x49f9fc('0x3a')]]={[Op['like']]:'%'+_0x5aeb0f[_0x49f9fc('0x2d')][_0x49f9fc('0x4c')]+'%'},_0x55b5d9;}})}));_0x526848=_[_0x24fba8('0x46')]({},_0x526848,_0x5aeb0f['options']);const _0x207065={'where':_0x526848[_0x24fba8('0x21')]};return db[_0x24fba8('0x4a')]['count'](_0x207065)[_0x24fba8('0x16')](function(_0x363bfb){const _0x4c2c1a=_0x24fba8;return _0x4929ca['count']=_0x363bfb,_0x5aeb0f[_0x4c2c1a('0x2d')][_0x4c2c1a('0x40')]&&(_0x526848[_0x4c2c1a('0x30')]=[{'all':!![]}]),db[_0x4c2c1a('0x4a')][_0x4c2c1a('0x15')](_0x526848);})[_0x24fba8('0x16')](function(_0x5e77dd){return _0x4929ca['rows']=_0x5e77dd,_0x4929ca;})[_0x24fba8('0x16')](respondWithFilteredResult(_0x4edd13,_0x526848))['catch'](handleError(_0x4edd13,null));},exports[_0x29f97f('0x20')]=function(_0x47146c,_0x5a6106){const _0x3e1796=_0x29f97f;let _0x5f2274={'raw':![],'where':{'id':_0x47146c[_0x3e1796('0xf')]['id']}};const _0x5d31c8={};return _0x5d31c8['model']=_[_0x3e1796('0x3f')](db[_0x3e1796('0x4a')]['rawAttributes']),_0x5d31c8['query']=_[_0x3e1796('0x3f')](_0x47146c['query']),_0x5d31c8[_0x3e1796('0x34')]=_[_0x3e1796('0x36')](_0x5d31c8[_0x3e1796('0x2f')],_0x5d31c8[_0x3e1796('0x2d')]),_0x5f2274[_0x3e1796('0x1f')]=_[_0x3e1796('0x36')](_0x5d31c8[_0x3e1796('0x2f')],qs[_0x3e1796('0x2b')](_0x47146c[_0x3e1796('0x2d')][_0x3e1796('0x2b')])),_0x5f2274['attributes']=_0x5f2274[_0x3e1796('0x1f')][_0x3e1796('0x37')]?_0x5f2274[_0x3e1796('0x1f')]:_0x5d31c8['model'],_0x47146c['query'][_0x3e1796('0x40')]&&(_0x5f2274[_0x3e1796('0x30')]=[{'all':!![]}]),_0x5f2274=_['merge']({},_0x5f2274,_0x47146c[_0x3e1796('0x31')]),db['VoiceContext'][_0x3e1796('0x0')](_0x5f2274)[_0x3e1796('0x16')](handleEntityNotFound(_0x5a6106,null))['then'](respondWithResult(_0x5a6106,null))[_0x3e1796('0x9')](handleError(_0x5a6106,null));},exports[_0x29f97f('0x8')]=function(_0x70cc39,_0x479516){const _0xb6c142=_0x29f97f;let _0xad32f8;return db['VoiceContext'][_0xb6c142('0x8')](_0x70cc39['body'],{'raw':!![]})[_0xb6c142('0x16')](function(_0x29f22a){const _0x10abc7=_0xb6c142;return _0xad32f8=_0x29f22a,db['VoiceContext'][_0x10abc7('0x15')]({'raw':!![]});})[_0xb6c142('0x16')](function(_0x23ad4c){const _0x412fd7=_0xb6c142,_0x2f1e5f=fs['readFileSync'](path[_0x412fd7('0x23')](config[_0x412fd7('0xa')],'server/files/templates/context.ejs'),_0x412fd7('0x49')),_0x2e9d6e=ejs[_0x412fd7('0x4')](_0x2f1e5f,{'contexts':_0x23ad4c||[]});fs['writeFileSync'](_0x412fd7('0x13'),_0x2e9d6e);})[_0xb6c142('0x16')](function(){const _0x2b45e3=_0xb6c142;return respondWithRpcPromise('Reload',_0x2b45e3('0x8'),{'module':_0x2b45e3('0x32')});})[_0xb6c142('0x16')](function(){const _0x204a97=_0xb6c142,_0x931d4f=_0x70cc39[_0x204a97('0x11')][_0x204a97('0x4d')]({'plain':!![]});if(!_0x931d4f)throw new Error(_0x204a97('0x2'));if(_0x931d4f[_0x204a97('0xb')]==='user'){const _0x2c6e44=_0xad32f8[_0x204a97('0x4d')]({'plain':!![]});return db[_0x204a97('0x33')][_0x204a97('0x0')]({'where':{'name':_0x204a97('0x1c'),'userProfileId':_0x931d4f['userProfileId']},'raw':!![]})[_0x204a97('0x16')](function(_0x554d9e){const _0x3ddef4=_0x204a97;return _0x554d9e&&_0x554d9e[_0x3ddef4('0x7')]===0x0?db[_0x3ddef4('0xe')][_0x3ddef4('0x8')]({'name':_0x2c6e44['name'],'resourceId':_0x2c6e44['id'],'type':_0x554d9e[_0x3ddef4('0x3a')],'sectionId':_0x554d9e['id']},{})['then'](function(){return _0xad32f8;}):_0xad32f8;})[_0x204a97('0x9')](function(_0x38900b){const _0x352974=_0x204a97;logger[_0x352974('0x6')](_0x352974('0x47'),_0x38900b);throw _0x38900b;});}return _0xad32f8;})[_0xb6c142('0x16')](respondWithResult(_0x479516,0xc9))[_0xb6c142('0x9')](handleError(_0x479516,null));},exports['update']=function(_0xc6c891,_0x26cf2){const _0x5ab228=_0x29f97f;let _0x4568e0;return db[_0x5ab228('0x4a')]['findOne']({'where':{'id':_0xc6c891[_0x5ab228('0xf')]['id']}})[_0x5ab228('0x16')](handleEntityNotFound(_0x26cf2,null))[_0x5ab228('0x16')](saveUpdates(_0xc6c891['body'],null))[_0x5ab228('0x16')](function(_0x42dc75){const _0x33a6ec=_0x5ab228;if(_0x42dc75)return _0x4568e0=_0x42dc75,db['VoiceContext'][_0x33a6ec('0x15')]({'raw':!![]});})[_0x5ab228('0x16')](function(_0x2aed56){const _0x28b7ed=_0x5ab228,_0x29937f=fs[_0x28b7ed('0x3b')](path[_0x28b7ed('0x23')](config[_0x28b7ed('0xa')],'server/files/templates/context.ejs'),_0x28b7ed('0x49')),_0x2cdd5c=ejs[_0x28b7ed('0x4')](_0x29937f,{'contexts':_0x2aed56||[]});fs[_0x28b7ed('0x27')](_0x28b7ed('0x13'),_0x2cdd5c);})[_0x5ab228('0x16')](function(){const _0xe2549e=_0x5ab228;return respondWithRpcPromise(_0xe2549e('0x4f'),_0xe2549e('0x38'),{'module':'chan_sip.so'});})['then'](function(){return _0x4568e0;})[_0x5ab228('0x16')](respondWithResult(_0x26cf2,null))['catch'](handleError(_0x26cf2,null));},exports[_0x29f97f('0x42')]=function(_0x476a36,_0x427f6e){const _0x3ec06a=_0x29f97f;return db[_0x3ec06a('0x4a')][_0x3ec06a('0x0')]({'where':{'id':_0x476a36['params']['id']}})[_0x3ec06a('0x16')](handleEntityNotFound(_0x427f6e,null))[_0x3ec06a('0x16')](removeEntity(_0x427f6e,null))[_0x3ec06a('0x16')](function(){return db['VoiceContext']['findAll']({'raw':!![]});})[_0x3ec06a('0x16')](function(_0x53cae5){const _0x1ed71a=_0x3ec06a,_0x2e00c1=fs['readFileSync'](path[_0x1ed71a('0x23')](config['root'],_0x1ed71a('0x25')),_0x1ed71a('0x49')),_0x124c7a=ejs['render'](_0x2e00c1,{'contexts':_0x53cae5});return fs['writeFileSync'](_0x1ed71a('0x13'),_0x124c7a),respondWithRpcPromise(_0x1ed71a('0x4f'),_0x1ed71a('0x42'),{'module':_0x1ed71a('0x32')});})[_0x3ec06a('0x9')](handleError(_0x427f6e,null));}; \ No newline at end of file +const a718_0x4d07=['../../mysqldb','sort','VoiceContext','http','lodash','send','options','writeFileSync','UserProfileResource','/etc/asterisk/extensions_xcally_contexts.conf','VoiceContext,\x20%s,\x20%s,\x20%s','order','count','filters','like','stringify','keys','get','code','json','info','UserProfileSection','findOne','intersection','params','VoiceContext,\x20%s,\x20%s','message','destroy','stack','../../config/logger','update','Content-Range','role','chan_sip.so','../../components/parsers/qs','then','map','model','Contexts','index','catch','attributes','includeAll','utf8','fields','join','where','render','query','server/files/templates/context.ejs','readFileSync','Reload','user','type','limit','sendStatus','show','create','Unable\x20to\x20retrieve\x20the\x20current\x20user','findAll','sequelize','name','end','rawAttributes','userProfileId','length','request\x20sent','merge','status','request','debug','body','jayson/promise','nolimit','include','root','pick','error','result','offset'];(function(_0x19df8f,_0x4d070c){const _0x364511=function(_0x2c5d50){while(--_0x2c5d50){_0x19df8f['push'](_0x19df8f['shift']());}};_0x364511(++_0x4d070c);}(a718_0x4d07,0x7b));const a718_0x3645=function(_0x19df8f,_0x4d070c){_0x19df8f=_0x19df8f-0x0;let _0x364511=a718_0x4d07[_0x19df8f];return _0x364511;};const _0x2680be=a718_0x3645;'use strict';const path=require('path'),ejs=require('ejs'),fs=require('fs'),_=require(_0x2680be('0x29')),qs=require(_0x2680be('0x47')),logger=require(_0x2680be('0x42'))('api'),config=require('../../config/environment'),db=require(_0x2680be('0x25'))['db'],{Op}=require(_0x2680be('0x11')),jayson=require(_0x2680be('0x1d')),client=jayson['client'][_0x2680be('0x28')]({'port':0x232a});function respondWithRpcPromise(_0x2c5d50,_0x57185a,_0x423b8e,_0x53b738){return new Promise(function(_0x56f4a4,_0x2b4a31){const _0x1d5feb=a718_0x3645,_0x5488d9=_0x53b738||client;return _0x5488d9[_0x1d5feb('0x1a')](_0x2c5d50,_0x423b8e)[_0x1d5feb('0x48')](function(_0x1356fe){const _0x3b9412=_0x1d5feb;logger['info'](_0x3b9412('0x3e'),_0x57185a,_0x3b9412('0x17')),logger[_0x3b9412('0x1b')](_0x3b9412('0x2f'),_0x57185a,_0x3b9412('0x17'),JSON[_0x3b9412('0x34')](_0x1356fe));if(_0x1356fe[_0x3b9412('0x22')]){if(_0x1356fe['error'][_0x3b9412('0x37')]===0x1f4)return logger[_0x3b9412('0x22')]('VoiceContext,\x20%s,\x20%s',_0x57185a,_0x1356fe[_0x3b9412('0x22')][_0x3b9412('0x3f')]),_0x2b4a31(_0x1356fe[_0x3b9412('0x22')]['message']);return logger[_0x3b9412('0x22')](_0x3b9412('0x3e'),_0x57185a,_0x1356fe[_0x3b9412('0x22')][_0x3b9412('0x3f')]),_0x56f4a4(_0x1356fe['error']['message']);}else logger[_0x3b9412('0x39')]('VoiceContext,\x20%s,\x20%s',_0x57185a,_0x3b9412('0x17')),_0x56f4a4(_0x1356fe[_0x3b9412('0x23')][_0x3b9412('0x3f')]);})[_0x1d5feb('0x4d')](function(_0x8e8398){const _0x8bc690=_0x1d5feb;logger['error'](_0x8bc690('0x3e'),_0x57185a,_0x8e8398),_0x2b4a31(_0x8e8398);});});}function respondWithResult(_0x3c0884,_0xe40c57){return _0xe40c57=_0xe40c57||0xc8,function(_0xa4d0c5){const _0x49a6f5=a718_0x3645;if(_0xa4d0c5)return _0x3c0884[_0x49a6f5('0x19')](_0xe40c57)[_0x49a6f5('0x38')](_0xa4d0c5);};}function respondWithFilteredResult(_0x522bd2,_0x33959d){return function(_0x5dd070){const _0x49ddb4=a718_0x3645;if(_0x5dd070){const _0x343a75=_0x5dd070[_0x49ddb4('0x31')],_0x175b10=_0x33959d[_0x49ddb4('0x24')];let _0x457a6a=_0x33959d[_0x49ddb4('0x24')]+_0x33959d[_0x49ddb4('0xb')],_0x33e4a3;return _0x457a6a>=_0x343a75?(_0x457a6a=_0x343a75,_0x33e4a3=0xc8):_0x33e4a3=0xce,_0x522bd2['status'](_0x33e4a3),_0x522bd2['set'](_0x49ddb4('0x44'),_0x175b10+'-'+_0x457a6a+'/'+_0x343a75)[_0x49ddb4('0x38')](_0x5dd070);}return null;};}function saveUpdates(_0x47e93f){return function(_0x374438){const _0x25983a=a718_0x3645;if(_0x374438)return _0x374438[_0x25983a('0x43')](_0x47e93f)['then'](function(_0x5f414a){return _0x5f414a;});return null;};}function removeEntity(_0x33d6c4){return function(_0x23c075){const _0x3c12ae=a718_0x3645;if(_0x23c075)return _0x23c075[_0x3c12ae('0x40')]()[_0x3c12ae('0x48')](function(){const _0x27af9e=_0x3c12ae,_0x1f1e72=_0x23c075[_0x27af9e('0x36')]({'plain':!![]}),_0x2b9e25=_0x27af9e('0x4b');return db[_0x27af9e('0x2d')][_0x27af9e('0x40')]({'where':{'type':_0x2b9e25,'resourceId':_0x1f1e72['id']}})['then'](function(){return _0x23c075;});})[_0x3c12ae('0x48')](function(){const _0x106750=_0x3c12ae;_0x33d6c4[_0x106750('0x19')](0xcc)[_0x106750('0x13')]();});};}function handleEntityNotFound(_0x270e69){return function(_0x551055){const _0x470b59=a718_0x3645;return!_0x551055&&_0x270e69[_0x470b59('0xc')](0x194),_0x551055;};}function handleError(_0x26aeef,_0x4edc42){return _0x4edc42=_0x4edc42||0x1f4,function(_0x5ee35d){const _0x5e0ece=a718_0x3645;logger[_0x5e0ece('0x22')](_0x5ee35d[_0x5e0ece('0x41')]),_0x5ee35d[_0x5e0ece('0x12')]&&delete _0x5ee35d['name'],_0x26aeef[_0x5e0ece('0x19')](_0x4edc42)[_0x5e0ece('0x2a')](_0x5ee35d);};}exports[_0x2680be('0x4c')]=function(_0x33d38d,_0x235c60){const _0x4de429=_0x2680be;let _0x1fc83e={};const _0x1cc4a8={},_0x14a64a={'count':0x0,'rows':[]},_0x16e992=_[_0x4de429('0x49')](db[_0x4de429('0x27')]['rawAttributes'],function(_0x26cbb3){const _0x57b483=_0x4de429;return{'name':_0x26cbb3['fieldName'],'type':_0x26cbb3[_0x57b483('0xa')]['key']};});_0x1cc4a8[_0x4de429('0x4a')]=_[_0x4de429('0x49')](_0x16e992,_0x4de429('0x12')),_0x1cc4a8['query']=_[_0x4de429('0x35')](_0x33d38d[_0x4de429('0x5')]),_0x1cc4a8[_0x4de429('0x32')]=_[_0x4de429('0x3c')](_0x1cc4a8[_0x4de429('0x4a')],_0x1cc4a8[_0x4de429('0x5')]),_0x1fc83e[_0x4de429('0x4e')]=_[_0x4de429('0x3c')](_0x1cc4a8[_0x4de429('0x4a')],qs[_0x4de429('0x1')](_0x33d38d['query'][_0x4de429('0x1')])),_0x1fc83e[_0x4de429('0x4e')]=_0x1fc83e[_0x4de429('0x4e')][_0x4de429('0x16')]?_0x1fc83e[_0x4de429('0x4e')]:_0x1cc4a8[_0x4de429('0x4a')];typeof _0x33d38d[_0x4de429('0x5')][_0x4de429('0x1e')]==='undefined'&&(_0x1fc83e[_0x4de429('0xb')]=qs[_0x4de429('0xb')](_0x33d38d['query']['limit']),_0x1fc83e['offset']=qs[_0x4de429('0x24')](_0x33d38d[_0x4de429('0x5')][_0x4de429('0x24')]));_0x1fc83e[_0x4de429('0x30')]=qs[_0x4de429('0x26')](_0x33d38d[_0x4de429('0x5')][_0x4de429('0x26')]),_0x1fc83e['where']=qs[_0x4de429('0x32')](_[_0x4de429('0x21')](_0x33d38d[_0x4de429('0x5')],_0x1cc4a8[_0x4de429('0x32')]),_0x16e992);_0x33d38d[_0x4de429('0x5')]['filter']&&(_0x1fc83e[_0x4de429('0x3')]=_[_0x4de429('0x18')](_0x1fc83e[_0x4de429('0x3')],{[Op['or']]:_[_0x4de429('0x49')](_0x16e992,function(_0x1c6188){const _0x1c79ac=_0x4de429;if(_0x1c6188[_0x1c79ac('0xa')]!=='VIRTUAL'){const _0x24800d={};return _0x24800d[_0x1c6188[_0x1c79ac('0x12')]]={[Op[_0x1c79ac('0x33')]]:'%'+_0x33d38d[_0x1c79ac('0x5')]['filter']+'%'},_0x24800d;}})}));_0x1fc83e=_[_0x4de429('0x18')]({},_0x1fc83e,_0x33d38d[_0x4de429('0x2b')]);const _0x164269={'where':_0x1fc83e[_0x4de429('0x3')]};return db[_0x4de429('0x27')]['count'](_0x164269)[_0x4de429('0x48')](function(_0x55a2bd){const _0x26e19b=_0x4de429;return _0x14a64a[_0x26e19b('0x31')]=_0x55a2bd,_0x33d38d[_0x26e19b('0x5')][_0x26e19b('0x4f')]&&(_0x1fc83e[_0x26e19b('0x1f')]=[{'all':!![]}]),db['VoiceContext'][_0x26e19b('0x10')](_0x1fc83e);})[_0x4de429('0x48')](function(_0xdf7644){return _0x14a64a['rows']=_0xdf7644,_0x14a64a;})[_0x4de429('0x48')](respondWithFilteredResult(_0x235c60,_0x1fc83e))[_0x4de429('0x4d')](handleError(_0x235c60,null));},exports[_0x2680be('0xd')]=function(_0x5ddc74,_0xca1a2e){const _0x41d6b1=_0x2680be;let _0x2b449f={'raw':![],'where':{'id':_0x5ddc74['params']['id']}};const _0x192c06={};return _0x192c06['model']=_[_0x41d6b1('0x35')](db['VoiceContext'][_0x41d6b1('0x14')]),_0x192c06['query']=_[_0x41d6b1('0x35')](_0x5ddc74[_0x41d6b1('0x5')]),_0x192c06[_0x41d6b1('0x32')]=_[_0x41d6b1('0x3c')](_0x192c06[_0x41d6b1('0x4a')],_0x192c06[_0x41d6b1('0x5')]),_0x2b449f[_0x41d6b1('0x4e')]=_[_0x41d6b1('0x3c')](_0x192c06[_0x41d6b1('0x4a')],qs[_0x41d6b1('0x1')](_0x5ddc74[_0x41d6b1('0x5')][_0x41d6b1('0x1')])),_0x2b449f[_0x41d6b1('0x4e')]=_0x2b449f[_0x41d6b1('0x4e')][_0x41d6b1('0x16')]?_0x2b449f[_0x41d6b1('0x4e')]:_0x192c06[_0x41d6b1('0x4a')],_0x5ddc74['query'][_0x41d6b1('0x4f')]&&(_0x2b449f['include']=[{'all':!![]}]),_0x2b449f=_['merge']({},_0x2b449f,_0x5ddc74[_0x41d6b1('0x2b')]),db[_0x41d6b1('0x27')]['findOne'](_0x2b449f)['then'](handleEntityNotFound(_0xca1a2e,null))[_0x41d6b1('0x48')](respondWithResult(_0xca1a2e,null))[_0x41d6b1('0x4d')](handleError(_0xca1a2e,null));},exports[_0x2680be('0xe')]=function(_0x1830e9,_0x15b6bf){const _0x12eb5f=_0x2680be;let _0x8a6dab;return db['VoiceContext'][_0x12eb5f('0xe')](_0x1830e9[_0x12eb5f('0x1c')],{'raw':!![]})[_0x12eb5f('0x48')](function(_0x387b92){const _0x40ec88=_0x12eb5f;return _0x8a6dab=_0x387b92,db[_0x40ec88('0x27')][_0x40ec88('0x10')]({'raw':!![]});})[_0x12eb5f('0x48')](function(_0xd19411){const _0xa0e424=_0x12eb5f,_0x1d32ca=fs[_0xa0e424('0x7')](path[_0xa0e424('0x2')](config[_0xa0e424('0x20')],_0xa0e424('0x6')),_0xa0e424('0x0')),_0x4f26b9=ejs[_0xa0e424('0x4')](_0x1d32ca,{'contexts':_0xd19411||[]});fs[_0xa0e424('0x2c')]('/etc/asterisk/extensions_xcally_contexts.conf',_0x4f26b9);})[_0x12eb5f('0x48')](function(){const _0xa43dab=_0x12eb5f;return respondWithRpcPromise(_0xa43dab('0x8'),'create',{'module':_0xa43dab('0x46')});})['then'](function(){const _0x38b60d=_0x12eb5f,_0x2adcfe=_0x1830e9[_0x38b60d('0x9')][_0x38b60d('0x36')]({'plain':!![]});if(!_0x2adcfe)throw new Error(_0x38b60d('0xf'));if(_0x2adcfe[_0x38b60d('0x45')]===_0x38b60d('0x9')){const _0x567501=_0x8a6dab['get']({'plain':!![]});return db[_0x38b60d('0x3a')][_0x38b60d('0x3b')]({'where':{'name':'Contexts','userProfileId':_0x2adcfe[_0x38b60d('0x15')]},'raw':!![]})[_0x38b60d('0x48')](function(_0x398d94){const _0x59c3ea=_0x38b60d;return _0x398d94&&_0x398d94['autoAssociation']===0x0?db[_0x59c3ea('0x2d')][_0x59c3ea('0xe')]({'name':_0x567501[_0x59c3ea('0x12')],'resourceId':_0x567501['id'],'type':_0x398d94[_0x59c3ea('0x12')],'sectionId':_0x398d94['id']},{})[_0x59c3ea('0x48')](function(){return _0x8a6dab;}):_0x8a6dab;})[_0x38b60d('0x4d')](function(_0x1dc739){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x1dc739);throw _0x1dc739;});}return _0x8a6dab;})[_0x12eb5f('0x48')](respondWithResult(_0x15b6bf,0xc9))[_0x12eb5f('0x4d')](handleError(_0x15b6bf,null));},exports['update']=function(_0x5bfff3,_0x2390e7){const _0xac765=_0x2680be;let _0xf0e7ec;return db[_0xac765('0x27')][_0xac765('0x3b')]({'where':{'id':_0x5bfff3['params']['id']}})['then'](handleEntityNotFound(_0x2390e7,null))[_0xac765('0x48')](saveUpdates(_0x5bfff3[_0xac765('0x1c')],null))[_0xac765('0x48')](function(_0x250da0){const _0xb9d12a=_0xac765;if(_0x250da0)return _0xf0e7ec=_0x250da0,db[_0xb9d12a('0x27')][_0xb9d12a('0x10')]({'raw':!![]});})[_0xac765('0x48')](function(_0x1f1c03){const _0x4964a0=_0xac765,_0x7dee57=fs[_0x4964a0('0x7')](path[_0x4964a0('0x2')](config[_0x4964a0('0x20')],'server/files/templates/context.ejs'),'utf8'),_0x20a834=ejs['render'](_0x7dee57,{'contexts':_0x1f1c03||[]});fs[_0x4964a0('0x2c')](_0x4964a0('0x2e'),_0x20a834);})[_0xac765('0x48')](function(){const _0x3147aa=_0xac765;return respondWithRpcPromise(_0x3147aa('0x8'),_0x3147aa('0x43'),{'module':_0x3147aa('0x46')});})[_0xac765('0x48')](function(){return _0xf0e7ec;})[_0xac765('0x48')](respondWithResult(_0x2390e7,null))['catch'](handleError(_0x2390e7,null));},exports['destroy']=function(_0x4c7b89,_0x2d16f2){const _0x28633c=_0x2680be;return db[_0x28633c('0x27')]['findOne']({'where':{'id':_0x4c7b89[_0x28633c('0x3d')]['id']}})[_0x28633c('0x48')](handleEntityNotFound(_0x2d16f2,null))['then'](removeEntity(_0x2d16f2,null))[_0x28633c('0x48')](function(){const _0x237c5a=_0x28633c;return db[_0x237c5a('0x27')][_0x237c5a('0x10')]({'raw':!![]});})[_0x28633c('0x48')](function(_0x820957){const _0x1467e5=_0x28633c,_0x4ed7ff=fs['readFileSync'](path[_0x1467e5('0x2')](config[_0x1467e5('0x20')],_0x1467e5('0x6')),_0x1467e5('0x0')),_0x22e6c0=ejs[_0x1467e5('0x4')](_0x4ed7ff,{'contexts':_0x820957});return fs[_0x1467e5('0x2c')](_0x1467e5('0x2e'),_0x22e6c0),respondWithRpcPromise('Reload',_0x1467e5('0x40'),{'module':_0x1467e5('0x46')});})[_0x28633c('0x4d')](handleError(_0x2d16f2,null));}; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.model.js b/server/api/voiceContext/voiceContext.model.js index 6e46227..ef6f087 100644 --- a/server/api/voiceContext/voiceContext.model.js +++ b/server/api/voiceContext/voiceContext.model.js @@ -1 +1 @@ -const a719_0x5b94=['define','voice_contexts','exports','VoiceContext'];(function(_0x248c3e,_0x5b94f4){const _0x79184b=function(_0x42afdf){while(--_0x42afdf){_0x248c3e['push'](_0x248c3e['shift']());}};_0x79184b(++_0x5b94f4);}(a719_0x5b94,0x86));const a719_0x7918=function(_0x248c3e,_0x5b94f4){_0x248c3e=_0x248c3e-0x0;let _0x79184b=a719_0x5b94[_0x248c3e];return _0x79184b;};const _0x4f6c5f=a719_0x7918;'use strict';const attributes=require('./voiceContext.attributes');module[_0x4f6c5f('0x0')]=function(_0x42afdf){const _0x57e289=_0x4f6c5f,_0x92fa08=_0x42afdf[_0x57e289('0x2')](_0x57e289('0x1'),attributes,{'tableName':_0x57e289('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x92fa08;}; \ No newline at end of file +const a719_0x3799=['voice_contexts','./voiceContext.attributes','define','VoiceContext','exports'];(function(_0x291196,_0x379947){const _0x219076=function(_0x1cdb29){while(--_0x1cdb29){_0x291196['push'](_0x291196['shift']());}};_0x219076(++_0x379947);}(a719_0x3799,0x79));const a719_0x2190=function(_0x291196,_0x379947){_0x291196=_0x291196-0x0;let _0x219076=a719_0x3799[_0x291196];return _0x219076;};const _0x43f750=a719_0x2190;'use strict';const attributes=require(_0x43f750('0x0'));module[_0x43f750('0x3')]=function(_0x1cdb29){const _0x51d090=_0x43f750,_0x549e75=_0x1cdb29[_0x51d090('0x1')](_0x51d090('0x2'),attributes,{'tableName':_0x51d090('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x549e75;}; \ No newline at end of file diff --git a/server/api/voiceDialReport/index.js b/server/api/voiceDialReport/index.js index 9c8e941..1d9e8b6 100644 --- a/server/api/voiceDialReport/index.js +++ b/server/api/voiceDialReport/index.js @@ -1 +1 @@ -const a720_0x168b=['destroy','put','post','exports','get','index','Router','/:id','isAuthenticated','../../components/auth/service','describe'];(function(_0x24891d,_0x168bbe){const _0x3b5707=function(_0x4a688f){while(--_0x4a688f){_0x24891d['push'](_0x24891d['shift']());}};_0x3b5707(++_0x168bbe);}(a720_0x168b,0x160));const a720_0x3b57=function(_0x24891d,_0x168bbe){_0x24891d=_0x24891d-0x0;let _0x3b5707=a720_0x168b[_0x24891d];return _0x3b5707;};const _0x14d95a=a720_0x3b57;'use strict';const express=require('express'),router=express[_0x14d95a('0x6')](),auth=require(_0x14d95a('0x9')),controller=require('./voiceDialReport.controller');router[_0x14d95a('0x4')]('/',auth[_0x14d95a('0x8')](),controller[_0x14d95a('0x5')]),router['get']('/describe',auth[_0x14d95a('0x8')](),controller[_0x14d95a('0xa')]),router[_0x14d95a('0x4')](_0x14d95a('0x7'),auth[_0x14d95a('0x8')](),controller['show']),router[_0x14d95a('0x2')]('/',auth[_0x14d95a('0x8')](),controller['create']),router[_0x14d95a('0x1')](_0x14d95a('0x7'),auth['isAuthenticated'](),controller['update']),router['delete'](_0x14d95a('0x7'),auth[_0x14d95a('0x8')](),controller[_0x14d95a('0x0')]),module[_0x14d95a('0x3')]=router; \ No newline at end of file +const a720_0x10fd=['exports','./voiceDialReport.controller','get','put','/:id','/describe','delete','express','index','show','isAuthenticated'];(function(_0x214f1e,_0x10fd9d){const _0x419a38=function(_0x2c689d){while(--_0x2c689d){_0x214f1e['push'](_0x214f1e['shift']());}};_0x419a38(++_0x10fd9d);}(a720_0x10fd,0x155));const a720_0x419a=function(_0x214f1e,_0x10fd9d){_0x214f1e=_0x214f1e-0x0;let _0x419a38=a720_0x10fd[_0x214f1e];return _0x419a38;};const _0x4c910d=a720_0x419a;'use strict';const express=require(_0x4c910d('0x7')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x4c910d('0x1'));router[_0x4c910d('0x2')]('/',auth['isAuthenticated'](),controller[_0x4c910d('0x8')]),router[_0x4c910d('0x2')](_0x4c910d('0x5'),auth[_0x4c910d('0xa')](),controller['describe']),router[_0x4c910d('0x2')]('/:id',auth['isAuthenticated'](),controller[_0x4c910d('0x9')]),router['post']('/',auth[_0x4c910d('0xa')](),controller['create']),router[_0x4c910d('0x3')](_0x4c910d('0x4'),auth[_0x4c910d('0xa')](),controller['update']),router[_0x4c910d('0x6')](_0x4c910d('0x4'),auth[_0x4c910d('0xa')](),controller['destroy']),module[_0x4c910d('0x0')]=router; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.attributes.js b/server/api/voiceDialReport/voiceDialReport.attributes.js index aad9d38..1960749 100644 --- a/server/api/voiceDialReport/voiceDialReport.attributes.js +++ b/server/api/voiceDialReport/voiceDialReport.attributes.js @@ -1 +1 @@ -const a721_0x1ff4=['exports','STRING','called,connect,complete','sequelize','DATE','INTEGER'];(function(_0x22e3d8,_0x1ff4e8){const _0x35e938=function(_0x1cde42){while(--_0x1cde42){_0x22e3d8['push'](_0x22e3d8['shift']());}};_0x35e938(++_0x1ff4e8);}(a721_0x1ff4,0x111));const a721_0x35e9=function(_0x22e3d8,_0x1ff4e8){_0x22e3d8=_0x22e3d8-0x0;let _0x35e938=a721_0x1ff4[_0x22e3d8];return _0x35e938;};const _0x439223=a721_0x35e9;'use strict';const Sequelize=require(_0x439223('0x0'));module[_0x439223('0x3')]={'privilege':{'type':Sequelize[_0x439223('0x4')]},'channel':{'type':Sequelize[_0x439223('0x4')]},'channelstate':{'type':Sequelize[_0x439223('0x2')]},'channelstatedesc':{'type':Sequelize[_0x439223('0x4')]},'calleridnum':{'type':Sequelize[_0x439223('0x4')]},'calleridname':{'type':Sequelize[_0x439223('0x4')]},'connectedlinenum':{'type':Sequelize[_0x439223('0x4')]},'connectedlinename':{'type':Sequelize[_0x439223('0x4')]},'language':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x439223('0x4')]},'context':{'type':Sequelize[_0x439223('0x4')]},'exten':{'type':Sequelize[_0x439223('0x4')]},'priority':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0x439223('0x4')]},'linkedid':{'type':Sequelize['STRING']},'destchannel':{'type':Sequelize[_0x439223('0x4')]},'destchannelstate':{'type':Sequelize[_0x439223('0x2')]},'destchannelstatedesc':{'type':Sequelize[_0x439223('0x4')]},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize[_0x439223('0x4')]},'destconnectedlinenum':{'type':Sequelize['STRING']},'destconnectedlinename':{'type':Sequelize['STRING']},'destlanguage':{'type':Sequelize[_0x439223('0x4')]},'destaccountcode':{'type':Sequelize[_0x439223('0x4')]},'destcontext':{'type':Sequelize[_0x439223('0x4')]},'destexten':{'type':Sequelize[_0x439223('0x4')]},'destpriority':{'type':Sequelize[_0x439223('0x2')]},'destuniqueid':{'type':Sequelize[_0x439223('0x4')]},'destlinkedid':{'type':Sequelize[_0x439223('0x4')]},'dialstring':{'type':Sequelize[_0x439223('0x4')]},'dialstatus':{'type':Sequelize[_0x439223('0x4')]},'starttime':{'type':Sequelize[_0x439223('0x1')]},'answertime':{'type':Sequelize[_0x439223('0x1')]},'endtime':{'type':Sequelize['DATE']},'lastevent':{'type':Sequelize[_0x439223('0x4')],'comment':_0x439223('0x5')},'routeId':{'type':Sequelize[_0x439223('0x2')]},'duration':{'type':Sequelize[_0x439223('0x2')]},'holdtime':{'type':Sequelize[_0x439223('0x2')]},'billableseconds':{'type':Sequelize[_0x439223('0x2')]}}; \ No newline at end of file +const a721_0x55d4=['STRING','exports','DATE','INTEGER','sequelize'];(function(_0x4af221,_0x55d4c4){const _0x5d9678=function(_0x1ffdda){while(--_0x1ffdda){_0x4af221['push'](_0x4af221['shift']());}};_0x5d9678(++_0x55d4c4);}(a721_0x55d4,0x125));const a721_0x5d96=function(_0x4af221,_0x55d4c4){_0x4af221=_0x4af221-0x0;let _0x5d9678=a721_0x55d4[_0x4af221];return _0x5d9678;};const _0x59f4a0=a721_0x5d96;'use strict';const Sequelize=require(_0x59f4a0('0x1'));module[_0x59f4a0('0x3')]={'privilege':{'type':Sequelize[_0x59f4a0('0x2')]},'channel':{'type':Sequelize[_0x59f4a0('0x2')]},'channelstate':{'type':Sequelize[_0x59f4a0('0x0')]},'channelstatedesc':{'type':Sequelize[_0x59f4a0('0x2')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x59f4a0('0x2')]},'connectedlinenum':{'type':Sequelize[_0x59f4a0('0x2')]},'connectedlinename':{'type':Sequelize[_0x59f4a0('0x2')]},'language':{'type':Sequelize[_0x59f4a0('0x2')]},'accountcode':{'type':Sequelize[_0x59f4a0('0x2')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x59f4a0('0x2')]},'priority':{'type':Sequelize[_0x59f4a0('0x0')]},'uniqueid':{'type':Sequelize[_0x59f4a0('0x2')]},'linkedid':{'type':Sequelize[_0x59f4a0('0x2')]},'destchannel':{'type':Sequelize[_0x59f4a0('0x2')]},'destchannelstate':{'type':Sequelize[_0x59f4a0('0x0')]},'destchannelstatedesc':{'type':Sequelize['STRING']},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize[_0x59f4a0('0x2')]},'destconnectedlinenum':{'type':Sequelize[_0x59f4a0('0x2')]},'destconnectedlinename':{'type':Sequelize[_0x59f4a0('0x2')]},'destlanguage':{'type':Sequelize[_0x59f4a0('0x2')]},'destaccountcode':{'type':Sequelize[_0x59f4a0('0x2')]},'destcontext':{'type':Sequelize[_0x59f4a0('0x2')]},'destexten':{'type':Sequelize[_0x59f4a0('0x2')]},'destpriority':{'type':Sequelize['INTEGER']},'destuniqueid':{'type':Sequelize[_0x59f4a0('0x2')]},'destlinkedid':{'type':Sequelize['STRING']},'dialstring':{'type':Sequelize['STRING']},'dialstatus':{'type':Sequelize[_0x59f4a0('0x2')]},'starttime':{'type':Sequelize[_0x59f4a0('0x4')]},'answertime':{'type':Sequelize[_0x59f4a0('0x4')]},'endtime':{'type':Sequelize[_0x59f4a0('0x4')]},'lastevent':{'type':Sequelize[_0x59f4a0('0x2')],'comment':'called,connect,complete'},'routeId':{'type':Sequelize['INTEGER']},'duration':{'type':Sequelize[_0x59f4a0('0x0')]},'holdtime':{'type':Sequelize[_0x59f4a0('0x0')]},'billableseconds':{'type':Sequelize[_0x59f4a0('0x0')]}}; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.controller.js b/server/api/voiceDialReport/voiceDialReport.controller.js index 8316ab2..7695de2 100644 --- a/server/api/voiceDialReport/voiceDialReport.controller.js +++ b/server/api/voiceDialReport/voiceDialReport.controller.js @@ -1 +1 @@ -const a722_0x56f8=['limit','send','where','VIRTUAL','pick','include','options','destroy','merge','key','map','show','end','sort','findAll','then','describe','../../config/logger','catch','count','index','rawAttributes','name','update','fields','includeAll','attributes','length','rows','sequelize','keys','intersection','undefined','offset','filters','fieldName','create','lodash','findOne','filter','sendStatus','Content-Range','api','status','set','json','body','../../mysqldb','model','type','query','VoiceDialReport','params'];(function(_0x4f8280,_0x56f8d4){const _0x56add5=function(_0x3e3b13){while(--_0x3e3b13){_0x4f8280['push'](_0x4f8280['shift']());}};_0x56add5(++_0x56f8d4);}(a722_0x56f8,0x126));const a722_0x56ad=function(_0x4f8280,_0x56f8d4){_0x4f8280=_0x4f8280-0x0;let _0x56add5=a722_0x56f8[_0x4f8280];return _0x56add5;};const _0x1756f4=a722_0x56ad;'use strict';const _=require(_0x1756f4('0x8')),qs=require('../../components/parsers/qs'),logger=require(_0x1756f4('0x29'))(_0x1756f4('0xd')),db=require(_0x1756f4('0x12'))['db'],{Op}=require(_0x1756f4('0x0'));function respondWithResult(_0x3e3b13,_0x9480dd){return _0x9480dd=_0x9480dd||0xc8,function(_0x4b47e9){const _0x5a0be8=a722_0x56ad;if(_0x4b47e9)return _0x3e3b13[_0x5a0be8('0xe')](_0x9480dd)[_0x5a0be8('0x10')](_0x4b47e9);};}function respondWithFilteredResult(_0x45bd2f,_0x157cac){return function(_0x182d35){const _0xabbd03=a722_0x56ad;if(_0x182d35){const _0x31ac1f=_0x182d35['count'],_0x5a1e94=_0x157cac[_0xabbd03('0x4')];let _0x343fc0=_0x157cac['offset']+_0x157cac[_0xabbd03('0x18')],_0x4f9cd4;return _0x343fc0>=_0x31ac1f?(_0x343fc0=_0x31ac1f,_0x4f9cd4=0xc8):_0x4f9cd4=0xce,_0x45bd2f[_0xabbd03('0xe')](_0x4f9cd4),_0x45bd2f[_0xabbd03('0xf')](_0xabbd03('0xc'),_0x5a1e94+'-'+_0x343fc0+'/'+_0x31ac1f)['json'](_0x182d35);}return null;};}function saveUpdates(_0x382b5f){return function(_0x245f09){const _0x4a5e25=a722_0x56ad;if(_0x245f09)return _0x245f09['update'](_0x382b5f)[_0x4a5e25('0x27')](function(_0x5d0325){return _0x5d0325;});return null;};}function removeEntity(_0x9d96d6){return function(_0x4963ff){const _0x567988=a722_0x56ad;if(_0x4963ff)return _0x4963ff[_0x567988('0x1f')]()['then'](function(){const _0x4e4386=_0x567988;_0x9d96d6[_0x4e4386('0xe')](0xcc)[_0x4e4386('0x24')]();});};}function handleEntityNotFound(_0x138690){return function(_0x128f64){const _0x43511b=a722_0x56ad;return!_0x128f64&&_0x138690[_0x43511b('0xb')](0x194),_0x128f64;};}function handleError(_0x9547b3,_0x10964a){return _0x10964a=_0x10964a||0x1f4,function(_0x216e78){const _0x67b760=a722_0x56ad;logger['error'](_0x216e78['stack']),_0x216e78[_0x67b760('0x2e')]&&delete _0x216e78['name'],_0x9547b3[_0x67b760('0xe')](_0x10964a)[_0x67b760('0x19')](_0x216e78);};}exports[_0x1756f4('0x2c')]=function(_0xc8c153,_0x44311b){const _0x36c053=_0x1756f4;let _0x465516={};const _0x27d5bd={},_0xf2be87={'count':0x0,'rows':[]},_0x37e175=_[_0x36c053('0x22')](db[_0x36c053('0x16')]['rawAttributes'],function(_0x599929){const _0x18d8e9=_0x36c053;return{'name':_0x599929[_0x18d8e9('0x6')],'type':_0x599929[_0x18d8e9('0x14')][_0x18d8e9('0x21')]};});_0x27d5bd[_0x36c053('0x13')]=_[_0x36c053('0x22')](_0x37e175,_0x36c053('0x2e')),_0x27d5bd[_0x36c053('0x15')]=_['keys'](_0xc8c153[_0x36c053('0x15')]),_0x27d5bd[_0x36c053('0x5')]=_[_0x36c053('0x2')](_0x27d5bd[_0x36c053('0x13')],_0x27d5bd[_0x36c053('0x15')]),_0x465516['attributes']=_[_0x36c053('0x2')](_0x27d5bd['model'],qs['fields'](_0xc8c153['query'][_0x36c053('0x30')])),_0x465516[_0x36c053('0x32')]=_0x465516[_0x36c053('0x32')][_0x36c053('0x33')]?_0x465516[_0x36c053('0x32')]:_0x27d5bd['model'];typeof _0xc8c153[_0x36c053('0x15')]['nolimit']===_0x36c053('0x3')&&(_0x465516['limit']=qs[_0x36c053('0x18')](_0xc8c153[_0x36c053('0x15')][_0x36c053('0x18')]),_0x465516[_0x36c053('0x4')]=qs[_0x36c053('0x4')](_0xc8c153[_0x36c053('0x15')][_0x36c053('0x4')]));_0x465516['order']=qs[_0x36c053('0x25')](_0xc8c153[_0x36c053('0x15')][_0x36c053('0x25')]),_0x465516['where']=qs['filters'](_[_0x36c053('0x1c')](_0xc8c153[_0x36c053('0x15')],_0x27d5bd[_0x36c053('0x5')]),_0x37e175);_0xc8c153[_0x36c053('0x15')][_0x36c053('0xa')]&&(_0x465516[_0x36c053('0x1a')]=_[_0x36c053('0x20')](_0x465516[_0x36c053('0x1a')],{[Op['or']]:_['map'](_0x37e175,function(_0x5495a4){const _0x3c37d2=_0x36c053;if(_0x5495a4[_0x3c37d2('0x14')]!==_0x3c37d2('0x1b')){const _0x2794a1={};return _0x2794a1[_0x5495a4[_0x3c37d2('0x2e')]]={[Op['like']]:'%'+_0xc8c153[_0x3c37d2('0x15')][_0x3c37d2('0xa')]+'%'},_0x2794a1;}})}));_0x465516=_[_0x36c053('0x20')]({},_0x465516,_0xc8c153[_0x36c053('0x1e')]);const _0x2c6853={'where':_0x465516[_0x36c053('0x1a')]};return db[_0x36c053('0x16')][_0x36c053('0x2b')](_0x2c6853)[_0x36c053('0x27')](function(_0x3c6fce){const _0x393c8c=_0x36c053;return _0xf2be87[_0x393c8c('0x2b')]=_0x3c6fce,_0xc8c153[_0x393c8c('0x15')][_0x393c8c('0x31')]&&(_0x465516['include']=[{'all':!![]}]),db['VoiceDialReport'][_0x393c8c('0x26')](_0x465516);})['then'](function(_0x5ae911){const _0x4cfbda=_0x36c053;return _0xf2be87[_0x4cfbda('0x34')]=_0x5ae911,_0xf2be87;})[_0x36c053('0x27')](respondWithFilteredResult(_0x44311b,_0x465516))[_0x36c053('0x2a')](handleError(_0x44311b,null));},exports[_0x1756f4('0x23')]=function(_0x159e2f,_0x1b694d){const _0x206983=_0x1756f4;let _0x24b253={'raw':!![],'where':{'id':_0x159e2f['params']['id']}};const _0x519925={};return _0x519925[_0x206983('0x13')]=_[_0x206983('0x1')](db[_0x206983('0x16')][_0x206983('0x2d')]),_0x519925['query']=_[_0x206983('0x1')](_0x159e2f['query']),_0x519925[_0x206983('0x5')]=_[_0x206983('0x2')](_0x519925['model'],_0x519925[_0x206983('0x15')]),_0x24b253[_0x206983('0x32')]=_[_0x206983('0x2')](_0x519925[_0x206983('0x13')],qs[_0x206983('0x30')](_0x159e2f['query']['fields'])),_0x24b253[_0x206983('0x32')]=_0x24b253[_0x206983('0x32')][_0x206983('0x33')]?_0x24b253[_0x206983('0x32')]:_0x519925['model'],_0x159e2f[_0x206983('0x15')]['includeAll']&&(_0x24b253[_0x206983('0x1d')]=[{'all':!![]}]),_0x24b253=_[_0x206983('0x20')]({},_0x24b253,_0x159e2f[_0x206983('0x1e')]),db[_0x206983('0x16')][_0x206983('0x9')](_0x24b253)['then'](handleEntityNotFound(_0x1b694d,null))['then'](respondWithResult(_0x1b694d,null))[_0x206983('0x2a')](handleError(_0x1b694d,null));},exports[_0x1756f4('0x7')]=function(_0x4fd3eb,_0x48ffe4){const _0x49e1f1=_0x1756f4;return db[_0x49e1f1('0x16')][_0x49e1f1('0x7')](_0x4fd3eb[_0x49e1f1('0x11')],{})[_0x49e1f1('0x27')](respondWithResult(_0x48ffe4,0xc9))[_0x49e1f1('0x2a')](handleError(_0x48ffe4,null));},exports[_0x1756f4('0x2f')]=function(_0x418c66,_0x31716e){const _0x549c30=_0x1756f4;return _0x418c66['body']['id']&&delete _0x418c66[_0x549c30('0x11')]['id'],db[_0x549c30('0x16')][_0x549c30('0x9')]({'where':{'id':_0x418c66[_0x549c30('0x17')]['id']}})[_0x549c30('0x27')](handleEntityNotFound(_0x31716e,null))[_0x549c30('0x27')](saveUpdates(_0x418c66[_0x549c30('0x11')],null))['then'](respondWithResult(_0x31716e,null))[_0x549c30('0x2a')](handleError(_0x31716e,null));},exports['destroy']=function(_0x469fe4,_0x5d62aa){const _0x531452=_0x1756f4;return db[_0x531452('0x16')][_0x531452('0x9')]({'where':{'id':_0x469fe4['params']['id']}})['then'](handleEntityNotFound(_0x5d62aa,null))[_0x531452('0x27')](removeEntity(_0x5d62aa,null))[_0x531452('0x2a')](handleError(_0x5d62aa,null));},exports[_0x1756f4('0x28')]=function(_0x40ecf8,_0x1834ae){const _0x4cbd05=_0x1756f4;return db[_0x4cbd05('0x16')][_0x4cbd05('0x28')]()['then'](respondWithResult(_0x1834ae,null))[_0x4cbd05('0x2a')](handleError(_0x1834ae,null));}; \ No newline at end of file +const a722_0x44a4=['params','api','filters','undefined','send','attributes','key','../../config/logger','query','where','Content-Range','index','model','includeAll','../../mysqldb','describe','findOne','json','status','merge','intersection','show','length','sequelize','rawAttributes','create','options','offset','order','map','catch','VIRTUAL','fieldName','include','stack','count','filter','limit','lodash','rows','fields','body','destroy','type','nolimit','then','update','VoiceDialReport','sort','name','keys'];(function(_0x4e2ed8,_0x44a437){const _0x5110dd=function(_0x53a33d){while(--_0x53a33d){_0x4e2ed8['push'](_0x4e2ed8['shift']());}};_0x5110dd(++_0x44a437);}(a722_0x44a4,0x184));const a722_0x5110=function(_0x4e2ed8,_0x44a437){_0x4e2ed8=_0x4e2ed8-0x0;let _0x5110dd=a722_0x44a4[_0x4e2ed8];return _0x5110dd;};const _0x57fe68=a722_0x5110;'use strict';const _=require(_0x57fe68('0x7')),qs=require('../../components/parsers/qs'),logger=require(_0x57fe68('0x1b'))(_0x57fe68('0x15')),db=require(_0x57fe68('0x22'))['db'],{Op}=require(_0x57fe68('0x2b'));function respondWithResult(_0x53a33d,_0x9e5be5){return _0x9e5be5=_0x9e5be5||0xc8,function(_0x4e9762){const _0x2483ec=a722_0x5110;if(_0x4e9762)return _0x53a33d[_0x2483ec('0x26')](_0x9e5be5)[_0x2483ec('0x25')](_0x4e9762);};}function respondWithFilteredResult(_0x4a8bb6,_0x296421){return function(_0x18adf4){const _0xbbbee2=a722_0x5110;if(_0x18adf4){const _0xfcb0bd=_0x18adf4[_0xbbbee2('0x4')],_0x1e4ea6=_0x296421[_0xbbbee2('0x2f')];let _0x5de5d6=_0x296421[_0xbbbee2('0x2f')]+_0x296421[_0xbbbee2('0x6')],_0x39f17b;return _0x5de5d6>=_0xfcb0bd?(_0x5de5d6=_0xfcb0bd,_0x39f17b=0xc8):_0x39f17b=0xce,_0x4a8bb6[_0xbbbee2('0x26')](_0x39f17b),_0x4a8bb6['set'](_0xbbbee2('0x1e'),_0x1e4ea6+'-'+_0x5de5d6+'/'+_0xfcb0bd)[_0xbbbee2('0x25')](_0x18adf4);}return null;};}function saveUpdates(_0x145fb5){return function(_0x299d6d){const _0x52f083=a722_0x5110;if(_0x299d6d)return _0x299d6d[_0x52f083('0xf')](_0x145fb5)[_0x52f083('0xe')](function(_0x3a670e){return _0x3a670e;});return null;};}function removeEntity(_0x3df895){return function(_0x33a6ad){const _0x3c3193=a722_0x5110;if(_0x33a6ad)return _0x33a6ad[_0x3c3193('0xb')]()[_0x3c3193('0xe')](function(){const _0x201c02=_0x3c3193;_0x3df895[_0x201c02('0x26')](0xcc)['end']();});};}function handleEntityNotFound(_0xfef728){return function(_0x43b3d0){return!_0x43b3d0&&_0xfef728['sendStatus'](0x194),_0x43b3d0;};}function handleError(_0x31b941,_0x13d567){return _0x13d567=_0x13d567||0x1f4,function(_0x1ce628){const _0x108649=a722_0x5110;logger['error'](_0x1ce628[_0x108649('0x3')]),_0x1ce628[_0x108649('0x12')]&&delete _0x1ce628[_0x108649('0x12')],_0x31b941[_0x108649('0x26')](_0x13d567)[_0x108649('0x18')](_0x1ce628);};}exports[_0x57fe68('0x1f')]=function(_0x4fda89,_0x2f841f){const _0x51b0aa=_0x57fe68;let _0x8b3031={};const _0x436c2a={},_0x3bea1c={'count':0x0,'rows':[]},_0x4fdf3b=_['map'](db[_0x51b0aa('0x10')][_0x51b0aa('0x2c')],function(_0x35b8d8){const _0x136fe4=_0x51b0aa;return{'name':_0x35b8d8[_0x136fe4('0x1')],'type':_0x35b8d8[_0x136fe4('0xc')][_0x136fe4('0x1a')]};});_0x436c2a['model']=_[_0x51b0aa('0x31')](_0x4fdf3b,'name'),_0x436c2a[_0x51b0aa('0x1c')]=_[_0x51b0aa('0x13')](_0x4fda89[_0x51b0aa('0x1c')]),_0x436c2a[_0x51b0aa('0x16')]=_['intersection'](_0x436c2a[_0x51b0aa('0x20')],_0x436c2a[_0x51b0aa('0x1c')]),_0x8b3031[_0x51b0aa('0x19')]=_['intersection'](_0x436c2a[_0x51b0aa('0x20')],qs[_0x51b0aa('0x9')](_0x4fda89[_0x51b0aa('0x1c')][_0x51b0aa('0x9')])),_0x8b3031[_0x51b0aa('0x19')]=_0x8b3031['attributes']['length']?_0x8b3031[_0x51b0aa('0x19')]:_0x436c2a[_0x51b0aa('0x20')];typeof _0x4fda89['query'][_0x51b0aa('0xd')]===_0x51b0aa('0x17')&&(_0x8b3031[_0x51b0aa('0x6')]=qs[_0x51b0aa('0x6')](_0x4fda89[_0x51b0aa('0x1c')][_0x51b0aa('0x6')]),_0x8b3031[_0x51b0aa('0x2f')]=qs[_0x51b0aa('0x2f')](_0x4fda89[_0x51b0aa('0x1c')][_0x51b0aa('0x2f')]));_0x8b3031[_0x51b0aa('0x30')]=qs[_0x51b0aa('0x11')](_0x4fda89[_0x51b0aa('0x1c')][_0x51b0aa('0x11')]),_0x8b3031['where']=qs[_0x51b0aa('0x16')](_['pick'](_0x4fda89[_0x51b0aa('0x1c')],_0x436c2a['filters']),_0x4fdf3b);_0x4fda89[_0x51b0aa('0x1c')][_0x51b0aa('0x5')]&&(_0x8b3031[_0x51b0aa('0x1d')]=_['merge'](_0x8b3031[_0x51b0aa('0x1d')],{[Op['or']]:_[_0x51b0aa('0x31')](_0x4fdf3b,function(_0x1f19c8){const _0x587b7b=_0x51b0aa;if(_0x1f19c8[_0x587b7b('0xc')]!==_0x587b7b('0x0')){const _0x26fb32={};return _0x26fb32[_0x1f19c8[_0x587b7b('0x12')]]={[Op['like']]:'%'+_0x4fda89[_0x587b7b('0x1c')][_0x587b7b('0x5')]+'%'},_0x26fb32;}})}));_0x8b3031=_[_0x51b0aa('0x27')]({},_0x8b3031,_0x4fda89[_0x51b0aa('0x2e')]);const _0x397070={'where':_0x8b3031[_0x51b0aa('0x1d')]};return db[_0x51b0aa('0x10')][_0x51b0aa('0x4')](_0x397070)[_0x51b0aa('0xe')](function(_0xe64b93){const _0x24b734=_0x51b0aa;return _0x3bea1c[_0x24b734('0x4')]=_0xe64b93,_0x4fda89[_0x24b734('0x1c')][_0x24b734('0x21')]&&(_0x8b3031[_0x24b734('0x2')]=[{'all':!![]}]),db[_0x24b734('0x10')]['findAll'](_0x8b3031);})[_0x51b0aa('0xe')](function(_0x2351d3){const _0x1d1f27=_0x51b0aa;return _0x3bea1c[_0x1d1f27('0x8')]=_0x2351d3,_0x3bea1c;})['then'](respondWithFilteredResult(_0x2f841f,_0x8b3031))[_0x51b0aa('0x32')](handleError(_0x2f841f,null));},exports[_0x57fe68('0x29')]=function(_0x39e4ff,_0x49cea1){const _0x5ddd38=_0x57fe68;let _0x391d7a={'raw':!![],'where':{'id':_0x39e4ff[_0x5ddd38('0x14')]['id']}};const _0x59915a={};return _0x59915a['model']=_['keys'](db[_0x5ddd38('0x10')][_0x5ddd38('0x2c')]),_0x59915a[_0x5ddd38('0x1c')]=_[_0x5ddd38('0x13')](_0x39e4ff[_0x5ddd38('0x1c')]),_0x59915a['filters']=_[_0x5ddd38('0x28')](_0x59915a[_0x5ddd38('0x20')],_0x59915a['query']),_0x391d7a[_0x5ddd38('0x19')]=_[_0x5ddd38('0x28')](_0x59915a[_0x5ddd38('0x20')],qs[_0x5ddd38('0x9')](_0x39e4ff[_0x5ddd38('0x1c')][_0x5ddd38('0x9')])),_0x391d7a[_0x5ddd38('0x19')]=_0x391d7a[_0x5ddd38('0x19')][_0x5ddd38('0x2a')]?_0x391d7a[_0x5ddd38('0x19')]:_0x59915a[_0x5ddd38('0x20')],_0x39e4ff['query'][_0x5ddd38('0x21')]&&(_0x391d7a[_0x5ddd38('0x2')]=[{'all':!![]}]),_0x391d7a=_['merge']({},_0x391d7a,_0x39e4ff[_0x5ddd38('0x2e')]),db[_0x5ddd38('0x10')][_0x5ddd38('0x24')](_0x391d7a)[_0x5ddd38('0xe')](handleEntityNotFound(_0x49cea1,null))[_0x5ddd38('0xe')](respondWithResult(_0x49cea1,null))[_0x5ddd38('0x32')](handleError(_0x49cea1,null));},exports[_0x57fe68('0x2d')]=function(_0xba2a00,_0x2de055){const _0x3a38b1=_0x57fe68;return db['VoiceDialReport'][_0x3a38b1('0x2d')](_0xba2a00[_0x3a38b1('0xa')],{})[_0x3a38b1('0xe')](respondWithResult(_0x2de055,0xc9))[_0x3a38b1('0x32')](handleError(_0x2de055,null));},exports[_0x57fe68('0xf')]=function(_0xb507c9,_0x333690){const _0x1b6204=_0x57fe68;return _0xb507c9[_0x1b6204('0xa')]['id']&&delete _0xb507c9['body']['id'],db[_0x1b6204('0x10')][_0x1b6204('0x24')]({'where':{'id':_0xb507c9[_0x1b6204('0x14')]['id']}})[_0x1b6204('0xe')](handleEntityNotFound(_0x333690,null))[_0x1b6204('0xe')](saveUpdates(_0xb507c9[_0x1b6204('0xa')],null))[_0x1b6204('0xe')](respondWithResult(_0x333690,null))[_0x1b6204('0x32')](handleError(_0x333690,null));},exports['destroy']=function(_0x3220a1,_0x4ccf86){const _0x5506cf=_0x57fe68;return db[_0x5506cf('0x10')]['findOne']({'where':{'id':_0x3220a1[_0x5506cf('0x14')]['id']}})[_0x5506cf('0xe')](handleEntityNotFound(_0x4ccf86,null))[_0x5506cf('0xe')](removeEntity(_0x4ccf86,null))[_0x5506cf('0x32')](handleError(_0x4ccf86,null));},exports[_0x57fe68('0x23')]=function(_0x1e6043,_0x10dae8){const _0x2caf1f=_0x57fe68;return db[_0x2caf1f('0x10')][_0x2caf1f('0x23')]()[_0x2caf1f('0xe')](respondWithResult(_0x10dae8,null))[_0x2caf1f('0x32')](handleError(_0x10dae8,null));}; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.model.js b/server/api/voiceDialReport/voiceDialReport.model.js index 7c71664..46685c3 100644 --- a/server/api/voiceDialReport/voiceDialReport.model.js +++ b/server/api/voiceDialReport/voiceDialReport.model.js @@ -1 +1 @@ -const a723_0x93ec=['VoiceDialReport','./voiceDialReport.attributes','uniqueid','report_dial','define'];(function(_0xa1a9e1,_0x93ec28){const _0x34280d=function(_0x2713a8){while(--_0x2713a8){_0xa1a9e1['push'](_0xa1a9e1['shift']());}};_0x34280d(++_0x93ec28);}(a723_0x93ec,0x185));const a723_0x3428=function(_0xa1a9e1,_0x93ec28){_0xa1a9e1=_0xa1a9e1-0x0;let _0x34280d=a723_0x93ec[_0xa1a9e1];return _0x34280d;};const _0x4aad42=a723_0x3428;'use strict';const attributes=require(_0x4aad42('0x2'));module['exports']=function(_0x2713a8){const _0x5daab9=_0x4aad42,_0x4371c3=_0x2713a8[_0x5daab9('0x0')](_0x5daab9('0x1'),attributes,{'tableName':_0x5daab9('0x4'),'paranoid':![],'indexes':[{'fields':[_0x5daab9('0x3')]}],'timestamps':!![]});return _0x4371c3;}; \ No newline at end of file +const a723_0x5f54=['exports','uniqueid','./voiceDialReport.attributes','define','VoiceDialReport','report_dial'];(function(_0x4d63ed,_0x5f5493){const _0x4ee787=function(_0x4fba8f){while(--_0x4fba8f){_0x4d63ed['push'](_0x4d63ed['shift']());}};_0x4ee787(++_0x5f5493);}(a723_0x5f54,0xb7));const a723_0x4ee7=function(_0x4d63ed,_0x5f5493){_0x4d63ed=_0x4d63ed-0x0;let _0x4ee787=a723_0x5f54[_0x4d63ed];return _0x4ee787;};const _0x592a9b=a723_0x4ee7;'use strict';const attributes=require(_0x592a9b('0x5'));module[_0x592a9b('0x3')]=function(_0x4fba8f){const _0x18261d=_0x592a9b,_0x4f6640=_0x4fba8f[_0x18261d('0x0')](_0x18261d('0x1'),attributes,{'tableName':_0x18261d('0x2'),'paranoid':![],'indexes':[{'fields':[_0x18261d('0x4')]}],'timestamps':!![]});return _0x4f6640;}; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.rpc.js b/server/api/voiceDialReport/voiceDialReport.rpc.js index e71ec02..7c0e14c 100644 --- a/server/api/voiceDialReport/voiceDialReport.rpc.js +++ b/server/api/voiceDialReport/voiceDialReport.rpc.js @@ -1 +1 @@ -const a724_0x2021=['stringify','update','then','UpdateVoiceDialReport','error','info','options','catch','CreateVoiceDialReport','create','limit','rpc','body','VoiceDialReport','debug','raw','../../mysqldb','message'];(function(_0x428be2,_0x2021f0){const _0x5cdbb7=function(_0x107281){while(--_0x107281){_0x428be2['push'](_0x428be2['shift']());}};_0x5cdbb7(++_0x2021f0);}(a724_0x2021,0x13e));const a724_0x5cdb=function(_0x428be2,_0x2021f0){_0x428be2=_0x428be2-0x0;let _0x5cdbb7=a724_0x2021[_0x428be2];return _0x5cdbb7;};const _0x521e62=a724_0x5cdb;'use strict';const db=require(_0x521e62('0x4'))['db'],logger=require('../../config/logger')(_0x521e62('0x11'));exports[_0x521e62('0xe')]=function(_0x107281){const _0x42aa17=this;return new Promise(function(_0xc1abb2,_0x2f380b){const _0x26d1ba=a724_0x5cdb;return db['VoiceDialReport'][_0x26d1ba('0xf')](_0x107281[_0x26d1ba('0x0')],{'raw':_0x107281['options']?_0x107281[_0x26d1ba('0xc')][_0x26d1ba('0x3')]===undefined?!![]:![]:!![]})['then'](function(_0x1c328a){const _0x11a589=_0x26d1ba;logger[_0x11a589('0xb')](_0x11a589('0xe'),_0x107281),logger[_0x11a589('0x2')](_0x11a589('0xe'),_0x107281,JSON[_0x11a589('0x6')](_0x1c328a)),_0xc1abb2(_0x1c328a);})[_0x26d1ba('0xd')](function(_0x36f248){const _0xf5968b=_0x26d1ba;logger['error'](_0xf5968b('0xe'),_0x36f248[_0xf5968b('0x5')],_0x107281),_0x2f380b(_0x42aa17[_0xf5968b('0xa')](0x1f4,_0x36f248['message']));});});},exports[_0x521e62('0x9')]=function(_0xae2cc3){const _0x551061=this;return new Promise(function(_0x4652db,_0x58fd8b){const _0x98cab0=a724_0x5cdb;return db[_0x98cab0('0x1')][_0x98cab0('0x7')](_0xae2cc3[_0x98cab0('0x0')],{'raw':_0xae2cc3[_0x98cab0('0xc')]?_0xae2cc3[_0x98cab0('0xc')][_0x98cab0('0x3')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xae2cc3['options']?_0xae2cc3[_0x98cab0('0xc')]['where']||null:null,'attributes':_0xae2cc3['options']?_0xae2cc3[_0x98cab0('0xc')]['attributes']||null:null,'limit':_0xae2cc3[_0x98cab0('0xc')]?_0xae2cc3[_0x98cab0('0xc')][_0x98cab0('0x10')]||null:null})[_0x98cab0('0x8')](function(_0x1f1201){const _0x266d96=_0x98cab0;logger[_0x266d96('0xb')](_0x266d96('0x9'),_0xae2cc3),logger[_0x266d96('0x2')]('UpdateVoiceDialReport',_0xae2cc3,JSON[_0x266d96('0x6')](_0x1f1201)),_0x4652db(_0x1f1201);})[_0x98cab0('0xd')](function(_0x4c731e){const _0x477e1d=_0x98cab0;logger['error'](_0x477e1d('0x9'),_0x4c731e[_0x477e1d('0x5')],_0xae2cc3),_0x58fd8b(_0x551061[_0x477e1d('0xa')](0x1f4,_0x4c731e[_0x477e1d('0x5')]));});});}; \ No newline at end of file +const a724_0x3150=['../../mysqldb','../../config/logger','create','update','raw','limit','VoiceDialReport','info','then','error','options','message','debug','UpdateVoiceDialReport','CreateVoiceDialReport','where','body','catch','stringify','attributes'];(function(_0x28c223,_0x315042){const _0x36b3dc=function(_0x346b6a){while(--_0x346b6a){_0x28c223['push'](_0x28c223['shift']());}};_0x36b3dc(++_0x315042);}(a724_0x3150,0x1d0));const a724_0x36b3=function(_0x28c223,_0x315042){_0x28c223=_0x28c223-0x0;let _0x36b3dc=a724_0x3150[_0x28c223];return _0x36b3dc;};const _0x5c02fa=a724_0x36b3;'use strict';const db=require(_0x5c02fa('0x10'))['db'],logger=require(_0x5c02fa('0x11'))('rpc');exports[_0x5c02fa('0xa')]=function(_0x346b6a){const _0x1624fe=this;return new Promise(function(_0x3dfbfb,_0x1009bb){const _0xc1443b=a724_0x36b3;return db[_0xc1443b('0x2')][_0xc1443b('0x12')](_0x346b6a[_0xc1443b('0xc')],{'raw':_0x346b6a[_0xc1443b('0x6')]?_0x346b6a[_0xc1443b('0x6')][_0xc1443b('0x0')]===undefined?!![]:![]:!![]})[_0xc1443b('0x4')](function(_0x5d59ca){const _0x28320f=_0xc1443b;logger['info'](_0x28320f('0xa'),_0x346b6a),logger[_0x28320f('0x8')](_0x28320f('0xa'),_0x346b6a,JSON[_0x28320f('0xe')](_0x5d59ca)),_0x3dfbfb(_0x5d59ca);})['catch'](function(_0x383aca){const _0x5cf10d=_0xc1443b;logger['error'](_0x5cf10d('0xa'),_0x383aca[_0x5cf10d('0x7')],_0x346b6a),_0x1009bb(_0x1624fe[_0x5cf10d('0x5')](0x1f4,_0x383aca['message']));});});},exports[_0x5c02fa('0x9')]=function(_0x13e35c){const _0x2af44b=this;return new Promise(function(_0x3c1a8c,_0x8beb20){const _0x3b30de=a724_0x36b3;return db[_0x3b30de('0x2')][_0x3b30de('0x13')](_0x13e35c[_0x3b30de('0xc')],{'raw':_0x13e35c['options']?_0x13e35c[_0x3b30de('0x6')][_0x3b30de('0x0')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x13e35c['options']?_0x13e35c['options'][_0x3b30de('0xb')]||null:null,'attributes':_0x13e35c[_0x3b30de('0x6')]?_0x13e35c[_0x3b30de('0x6')][_0x3b30de('0xf')]||null:null,'limit':_0x13e35c[_0x3b30de('0x6')]?_0x13e35c['options'][_0x3b30de('0x1')]||null:null})[_0x3b30de('0x4')](function(_0x135f4a){const _0xa941ba=_0x3b30de;logger[_0xa941ba('0x3')](_0xa941ba('0x9'),_0x13e35c),logger['debug'](_0xa941ba('0x9'),_0x13e35c,JSON[_0xa941ba('0xe')](_0x135f4a)),_0x3c1a8c(_0x135f4a);})[_0x3b30de('0xd')](function(_0x38ed3f){const _0x1cb664=_0x3b30de;logger[_0x1cb664('0x5')](_0x1cb664('0x9'),_0x38ed3f[_0x1cb664('0x7')],_0x13e35c),_0x8beb20(_0x2af44b['error'](0x1f4,_0x38ed3f[_0x1cb664('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/voiceExtension/index.js b/server/api/voiceExtension/index.js index 85278b9..23a2f28 100644 --- a/server/api/voiceExtension/index.js +++ b/server/api/voiceExtension/index.js @@ -1 +1 @@ -const a725_0x44ca=['put','create','get','destroy','addApplications','../../components/auth/service','post','/:id/applications','isAuthenticated','/:id','Router','express','delete','./voiceExtension.controller'];(function(_0x579df6,_0x44ca2a){const _0x40ed1a=function(_0x255b0e){while(--_0x255b0e){_0x579df6['push'](_0x579df6['shift']());}};_0x40ed1a(++_0x44ca2a);}(a725_0x44ca,0x181));const a725_0x40ed=function(_0x579df6,_0x44ca2a){_0x579df6=_0x579df6-0x0;let _0x40ed1a=a725_0x44ca[_0x579df6];return _0x40ed1a;};const _0x19c223=a725_0x40ed;'use strict';const express=require(_0x19c223('0x4')),router=express[_0x19c223('0x3')](),auth=require(_0x19c223('0xc')),controller=require(_0x19c223('0x6'));router[_0x19c223('0x9')]('/',auth[_0x19c223('0x1')](),controller['index']),router[_0x19c223('0x9')]('/:id',auth[_0x19c223('0x1')](),controller['show']),router[_0x19c223('0xd')]('/',auth[_0x19c223('0x1')](),controller[_0x19c223('0x8')]),router[_0x19c223('0xd')](_0x19c223('0x0'),auth['isAuthenticated'](),controller[_0x19c223('0xb')]),router[_0x19c223('0x7')](_0x19c223('0x2'),auth[_0x19c223('0x1')](),controller['update']),router[_0x19c223('0x5')](_0x19c223('0x2'),auth['isAuthenticated'](),controller[_0x19c223('0xa')]),module['exports']=router; \ No newline at end of file +const a725_0x3227=['post','../../components/auth/service','index','put','destroy','show','get','/:id','Router','update','create','exports','/:id/applications','isAuthenticated','./voiceExtension.controller','addApplications'];(function(_0x4a161c,_0x3227af){const _0x4958a2=function(_0x51481e){while(--_0x51481e){_0x4a161c['push'](_0x4a161c['shift']());}};_0x4958a2(++_0x3227af);}(a725_0x3227,0x1aa));const a725_0x4958=function(_0x4a161c,_0x3227af){_0x4a161c=_0x4a161c-0x0;let _0x4958a2=a725_0x3227[_0x4a161c];return _0x4958a2;};const _0x53e2b0=a725_0x4958;'use strict';const express=require('express'),router=express[_0x53e2b0('0xe')](),auth=require(_0x53e2b0('0x7')),controller=require(_0x53e2b0('0x4'));router[_0x53e2b0('0xc')]('/',auth[_0x53e2b0('0x3')](),controller[_0x53e2b0('0x8')]),router[_0x53e2b0('0xc')](_0x53e2b0('0xd'),auth[_0x53e2b0('0x3')](),controller[_0x53e2b0('0xb')]),router[_0x53e2b0('0x6')]('/',auth['isAuthenticated'](),controller[_0x53e2b0('0x0')]),router[_0x53e2b0('0x6')](_0x53e2b0('0x2'),auth[_0x53e2b0('0x3')](),controller[_0x53e2b0('0x5')]),router[_0x53e2b0('0x9')](_0x53e2b0('0xd'),auth[_0x53e2b0('0x3')](),controller[_0x53e2b0('0xf')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x53e2b0('0xa')]),module[_0x53e2b0('0x1')]=router; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.attributes.js b/server/api/voiceExtension/voiceExtension.attributes.js index daf4275..d4a8c90 100644 --- a/server/api/voiceExtension/voiceExtension.attributes.js +++ b/server/api/voiceExtension/voiceExtension.attributes.js @@ -1 +1 @@ -const a726_0x2543=['compositeIndex','any','BOOLEAN','INTEGER','exten','system','getDataValue','NoOp','inbound','wav','exports','inbound-fax','outbound-fax','*,*,*,*','STRING','outbound','sequelize'];(function(_0x40734a,_0x2543f9){const _0x424647=function(_0x20aa31){while(--_0x20aa31){_0x40734a['push'](_0x40734a['shift']());}};_0x424647(++_0x2543f9);}(a726_0x2543,0xc2));const a726_0x4246=function(_0x40734a,_0x2543f9){_0x40734a=_0x40734a-0x0;let _0x424647=a726_0x2543[_0x40734a];return _0x424647;};const _0x584661=a726_0x4246;'use strict';const Sequelize=require(_0x584661('0x9'));module[_0x584661('0x3')]={'context':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x584661('0xa'),'validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':Sequelize[_0x584661('0x7')],'allowNull':![],'unique':_0x584661('0xa')},'priority':{'type':Sequelize[_0x584661('0x7')],'allowNull':![],'defaultValue':'1','unique':'compositeIndex'},'tag':{'type':Sequelize[_0x584661('0x7')],'allowNull':![],'defaultValue':'--'},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x584661('0x0')},'appdata':{'type':Sequelize['STRING'](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':Sequelize['ENUM'](_0x584661('0x1'),_0x584661('0x8'),'internal',_0x584661('0x4'),_0x584661('0x5'),_0x584661('0xf'),_0x584661('0xb')),'allowNull':![]},'description':{'type':Sequelize[_0x584661('0x7')]},'interval':{'type':Sequelize[_0x584661('0x7')],'allowNull':![],'defaultValue':_0x584661('0x6')},'IntervalId':{'type':Sequelize[_0x584661('0xd')]},'isApp':{'type':Sequelize[_0x584661('0xc')],'allowNull':![],'defaultValue':![]},'appType':{'type':Sequelize[_0x584661('0x7')],'defaultValue':null},'callerID':{'type':Sequelize['STRING'],'allowNull':!![]},'record':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'cutdigits':{'type':Sequelize[_0x584661('0xd')]},'recordingFormat':{'type':Sequelize[_0x584661('0x7')],'defaultValue':_0x584661('0x2')},'answer':{'type':Sequelize[_0x584661('0xc')],'defaultValue':!![]},'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x1c1b38=_0x584661;return this[_0x1c1b38('0x10')](_0x1c1b38('0xe'));}}}; \ No newline at end of file +const a726_0x1ee1=['INTEGER','any','VIRTUAL','exports','sequelize','inbound-fax','compositeIndex','NoOp','wav','inbound','STRING','BOOLEAN','outbound','exten','system','*,*,*,*'];(function(_0x297eac,_0x1ee149){const _0x5ac1f0=function(_0x2d79e7){while(--_0x2d79e7){_0x297eac['push'](_0x297eac['shift']());}};_0x5ac1f0(++_0x1ee149);}(a726_0x1ee1,0x174));const a726_0x5ac1=function(_0x297eac,_0x1ee149){_0x297eac=_0x297eac-0x0;let _0x5ac1f0=a726_0x1ee1[_0x297eac];return _0x5ac1f0;};const _0x947de=a726_0x5ac1;'use strict';const Sequelize=require(_0x947de('0x0'));module[_0x947de('0xf')]={'context':{'type':Sequelize[_0x947de('0x6')],'allowNull':![],'unique':_0x947de('0x2'),'validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':Sequelize[_0x947de('0x6')],'allowNull':![],'unique':_0x947de('0x2')},'priority':{'type':Sequelize[_0x947de('0x6')],'allowNull':![],'defaultValue':'1','unique':_0x947de('0x2')},'tag':{'type':Sequelize[_0x947de('0x6')],'allowNull':![],'defaultValue':'--'},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x947de('0x3')},'appdata':{'type':Sequelize[_0x947de('0x6')](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':Sequelize['ENUM'](_0x947de('0x5'),_0x947de('0x8'),'internal',_0x947de('0x1'),'outbound-fax',_0x947de('0xa'),_0x947de('0xd')),'allowNull':![]},'description':{'type':Sequelize[_0x947de('0x6')]},'interval':{'type':Sequelize[_0x947de('0x6')],'allowNull':![],'defaultValue':_0x947de('0xb')},'IntervalId':{'type':Sequelize[_0x947de('0xc')]},'isApp':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'appType':{'type':Sequelize[_0x947de('0x6')],'defaultValue':null},'callerID':{'type':Sequelize['STRING'],'allowNull':!![]},'record':{'type':Sequelize[_0x947de('0x7')],'defaultValue':![]},'cutdigits':{'type':Sequelize[_0x947de('0xc')]},'recordingFormat':{'type':Sequelize[_0x947de('0x6')],'defaultValue':_0x947de('0x4')},'answer':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'name':{'type':Sequelize[_0x947de('0xe')],'get':function(){const _0x22eb0f=_0x947de;return this['getDataValue'](_0x22eb0f('0x9'));}}}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.controller.js b/server/api/voiceExtension/voiceExtension.controller.js index 1aac38a..6506e2f 100644 --- a/server/api/voiceExtension/voiceExtension.controller.js +++ b/server/api/voiceExtension/voiceExtension.controller.js @@ -1 +1 @@ -const a727_0x1159=['find','InternalRoutes','ignore','send','addApplications','inbound','recordingFormat','include','where','../../rediscache','attributes','update','then','sendStatus','params','rawAttributes','error','destroy','concat','userProfileId','description','register','query','fields','Unable\x20to\x20retrieve\x20the\x20current\x20user','offset','Content-Range','sequelize','startsWith','keys','nolimit','index','filter','body','model','cutdigits','set','findOne','merge','intersection','VoiceExtensionId','undefined','show','rows','OutboundRoutes','UserProfileResource','transaction','./voiceExtension.socket','outbound','internal','includes','name','catch','context','sort','fieldName','get','exten','json','options','findAll','type','VIRTUAL','limit','value','map','UserProfileSection','../../mysqldb','create','bulkCreate','filters','findAndCountAll','../../config/logger','includeAll','length','VoiceExtension','stack','order','count','pick','role','InboundRoutes','status','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s'];(function(_0x175b16,_0x115944){const _0x54f14c=function(_0xf967fa){while(--_0xf967fa){_0x175b16['push'](_0x175b16['shift']());}};_0x54f14c(++_0x115944);}(a727_0x1159,0xf3));const a727_0x54f1=function(_0x175b16,_0x115944){_0x175b16=_0x175b16-0x0;let _0x54f14c=a727_0x1159[_0x175b16];return _0x54f14c;};const _0x31a795=a727_0x54f1;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x31a795('0x51'))('api'),{getSocket}=require(_0x31a795('0x12')),socket=getSocket(),db=require(_0x31a795('0x4c'))['db'],{Op}=require(_0x31a795('0x24'));require(_0x31a795('0x38'))[_0x31a795('0x1e')](socket);function respondWithStatusCode(_0xf967fa,_0x34e52d){return _0x34e52d=_0x34e52d||0xcc,function(_0x4df823){const _0x139f47=a727_0x54f1;if(_0x4df823)return _0xf967fa['sendStatus'](_0x34e52d);return _0xf967fa[_0x139f47('0x7')](_0x34e52d)['end']();};}function respondWithResult(_0x1a8d84,_0x3553ac){return _0x3553ac=_0x3553ac||0xc8,function(_0x403b99){const _0x47e0c8=a727_0x54f1;if(_0x403b99)return _0x1a8d84[_0x47e0c8('0x7')](_0x3553ac)[_0x47e0c8('0x43')](_0x403b99);};}function respondWithFilteredResult(_0x40ef95,_0x436462){return function(_0x21b10d){const _0x99cd27=a727_0x54f1;if(_0x21b10d){const _0x1b2b9e=_0x21b10d[_0x99cd27('0x3')],_0x209c87=_0x436462['offset'];let _0x51d461=_0x436462[_0x99cd27('0x22')]+_0x436462['limit'],_0x463871;return _0x51d461>=_0x1b2b9e?(_0x51d461=_0x1b2b9e,_0x463871=0xc8):_0x463871=0xce,_0x40ef95[_0x99cd27('0x7')](_0x463871),_0x40ef95[_0x99cd27('0x2d')](_0x99cd27('0x23'),_0x209c87+'-'+_0x51d461+'/'+_0x1b2b9e)[_0x99cd27('0x43')](_0x21b10d);}return null;};}function removeEntity(_0x2b75c2){return function(_0x3d43a9){const _0x37506c=a727_0x54f1;if(_0x3d43a9)return _0x3d43a9[_0x37506c('0x1a')]()[_0x37506c('0x15')](function(){const _0x242358=_0x37506c,_0x3bc913=_0x3d43a9[_0x242358('0x41')]({'plain':!![]}),_0x61e887=[{'name':_0x242358('0x6'),'value':_0x242358('0xe'),'ignore':![]},{'name':'OutboundRoutes','value':'outbound','ignore':![]},{'name':_0x242358('0xa'),'value':_0x242358('0x3a'),'ignore':![]}],_0x4472c2=_(_0x61e887)[_0x242358('0x29')](_0x242358('0xb'))[_0x242358('0x4a')](_0x242358('0x49'))[_0x242358('0x49')]();if(_[_0x242358('0x3b')](_0x4472c2,_0x3bc913['type']))return;const _0xe43eb7=_[_0x242358('0x9')](_0x61e887,['value',_0x3bc913['type']])['name'];return db[_0x242358('0x36')]['destroy']({'where':{'type':_0xe43eb7,'resourceId':_0x3bc913['id']}})[_0x242358('0x15')](function(){return _0x3d43a9;});})['then'](function(){const _0x2de704=_0x37506c;_0x2b75c2[_0x2de704('0x7')](0xcc)['end']();});};}function handleEntityNotFound(_0xa7bbe6){return function(_0x293595){const _0x47efb6=a727_0x54f1;return!_0x293595&&_0xa7bbe6[_0x47efb6('0x16')](0x194),_0x293595;};}function handleError(_0x5e8b21,_0x55ea64){return _0x55ea64=_0x55ea64||0x1f4,function(_0x262760){const _0x49f990=a727_0x54f1;logger[_0x49f990('0x19')](_0x262760[_0x49f990('0x1')]),_0x262760[_0x49f990('0x3c')]&&delete _0x262760[_0x49f990('0x3c')],_0x5e8b21[_0x49f990('0x7')](_0x55ea64)[_0x49f990('0xc')](_0x262760);};}exports[_0x31a795('0x28')]=function(_0x356f7e,_0x35b168){const _0x54e8e9=_0x31a795;let _0x3af619={};const _0x339b4a={},_0x9cb77b={'count':0x0,'rows':[]},_0x1a2a75=_[_0x54e8e9('0x4a')](db[_0x54e8e9('0x0')][_0x54e8e9('0x18')],function(_0x3e14dc){const _0xa74c55=_0x54e8e9;return{'name':_0x3e14dc[_0xa74c55('0x40')],'type':_0x3e14dc[_0xa74c55('0x46')]['key']};});_0x339b4a[_0x54e8e9('0x2b')]=_[_0x54e8e9('0x4a')](_0x1a2a75,_0x54e8e9('0x3c')),_0x339b4a['query']=_['keys'](_0x356f7e[_0x54e8e9('0x1f')]),_0x339b4a[_0x54e8e9('0x4f')]=_[_0x54e8e9('0x30')](_0x339b4a[_0x54e8e9('0x2b')],_0x339b4a[_0x54e8e9('0x1f')]),_0x3af619[_0x54e8e9('0x13')]=_[_0x54e8e9('0x30')](_0x339b4a[_0x54e8e9('0x2b')],qs[_0x54e8e9('0x20')](_0x356f7e[_0x54e8e9('0x1f')][_0x54e8e9('0x20')])),_0x3af619[_0x54e8e9('0x13')]=_0x3af619[_0x54e8e9('0x13')][_0x54e8e9('0x53')]?_0x3af619[_0x54e8e9('0x13')]:_0x339b4a[_0x54e8e9('0x2b')];typeof _0x356f7e[_0x54e8e9('0x1f')][_0x54e8e9('0x27')]===_0x54e8e9('0x32')&&(_0x3af619[_0x54e8e9('0x48')]=qs['limit'](_0x356f7e[_0x54e8e9('0x1f')][_0x54e8e9('0x48')]),_0x3af619[_0x54e8e9('0x22')]=qs[_0x54e8e9('0x22')](_0x356f7e[_0x54e8e9('0x1f')][_0x54e8e9('0x22')]));_0x3af619[_0x54e8e9('0x2')]=qs[_0x54e8e9('0x3f')](_0x356f7e[_0x54e8e9('0x1f')][_0x54e8e9('0x3f')]),_0x3af619[_0x54e8e9('0x11')]=qs[_0x54e8e9('0x4f')](_[_0x54e8e9('0x4')](_0x356f7e['query'],_0x339b4a[_0x54e8e9('0x4f')]),_0x1a2a75);_0x356f7e[_0x54e8e9('0x1f')]['filter']&&(_0x3af619[_0x54e8e9('0x11')]=_[_0x54e8e9('0x2f')](_0x3af619[_0x54e8e9('0x11')],{[Op['or']]:_[_0x54e8e9('0x4a')](_0x1a2a75,function(_0x225aea){const _0x364a97=_0x54e8e9;if(_0x225aea[_0x364a97('0x46')]!==_0x364a97('0x47')){const _0x4a81ca={};return _0x4a81ca[_0x225aea['name']]={[Op['like']]:'%'+_0x356f7e[_0x364a97('0x1f')][_0x364a97('0x29')]+'%'},_0x4a81ca;}})}));_0x3af619=_[_0x54e8e9('0x2f')]({},_0x3af619,_0x356f7e['options']);const _0x3953cf={'where':_0x3af619['where']};return db[_0x54e8e9('0x0')][_0x54e8e9('0x3')](_0x3953cf)[_0x54e8e9('0x15')](function(_0x855ae0){const _0x8dba95=_0x54e8e9;return _0x9cb77b[_0x8dba95('0x3')]=_0x855ae0,_0x356f7e[_0x8dba95('0x1f')]['includeAll']&&(_0x3af619[_0x8dba95('0x10')]=[{'all':!![]}]),db['VoiceExtension'][_0x8dba95('0x45')](_0x3af619);})[_0x54e8e9('0x15')](function(_0xf3c99){const _0x37fb3d=_0x54e8e9;return _0x9cb77b[_0x37fb3d('0x34')]=_0xf3c99,_0x9cb77b;})[_0x54e8e9('0x15')](respondWithFilteredResult(_0x35b168,_0x3af619))[_0x54e8e9('0x3d')](handleError(_0x35b168,null));},exports[_0x31a795('0x33')]=function(_0x5324,_0x3420f0){const _0x22ebe8=_0x31a795;let _0x14aeac={'raw':![],'where':{'id':_0x5324[_0x22ebe8('0x17')]['id']}};const _0x5c47b9={};return _0x5c47b9[_0x22ebe8('0x2b')]=_[_0x22ebe8('0x26')](db[_0x22ebe8('0x0')][_0x22ebe8('0x18')]),_0x5c47b9[_0x22ebe8('0x1f')]=_['keys'](_0x5324['query']),_0x5c47b9[_0x22ebe8('0x4f')]=_[_0x22ebe8('0x30')](_0x5c47b9[_0x22ebe8('0x2b')],_0x5c47b9[_0x22ebe8('0x1f')]),_0x14aeac[_0x22ebe8('0x13')]=_['intersection'](_0x5c47b9['model'],qs[_0x22ebe8('0x20')](_0x5324[_0x22ebe8('0x1f')]['fields'])),_0x14aeac['attributes']=_0x14aeac[_0x22ebe8('0x13')][_0x22ebe8('0x53')]?_0x14aeac['attributes']:_0x5c47b9[_0x22ebe8('0x2b')],_0x5324[_0x22ebe8('0x1f')][_0x22ebe8('0x52')]&&(_0x14aeac[_0x22ebe8('0x10')]=[{'all':!![]}]),_0x14aeac=_[_0x22ebe8('0x2f')]({},_0x14aeac,_0x5324[_0x22ebe8('0x44')]),db['VoiceExtension'][_0x22ebe8('0x2e')](_0x14aeac)[_0x22ebe8('0x15')](handleEntityNotFound(_0x3420f0,null))[_0x22ebe8('0x15')](respondWithResult(_0x3420f0,null))['catch'](handleError(_0x3420f0,null));},exports[_0x31a795('0x1a')]=function(_0x468e67,_0x57f2a4){const _0x177322=_0x31a795;return db[_0x177322('0x0')][_0x177322('0x2e')]({'where':{'id':_0x468e67[_0x177322('0x17')]['id']}})[_0x177322('0x15')](handleEntityNotFound(_0x57f2a4,null))[_0x177322('0x15')](removeEntity(_0x57f2a4,null))[_0x177322('0x3d')](handleError(_0x57f2a4,null));},exports[_0x31a795('0x4d')]=function(_0xc7982f,_0xe6fc98){const _0x12b865=_0x31a795;return _0xc7982f[_0x12b865('0x2a')][_0x12b865('0x46')]===_0x12b865('0x39')&&!_[_0x12b865('0x25')](_0xc7982f[_0x12b865('0x2a')][_0x12b865('0x42')],'_')&&(_0xc7982f[_0x12b865('0x2a')][_0x12b865('0x42')]='_'[_0x12b865('0x1b')](_0xc7982f[_0x12b865('0x2a')][_0x12b865('0x42')])),db[_0x12b865('0x0')][_0x12b865('0x4d')](_0xc7982f['body'],{'raw':![]})[_0x12b865('0x15')](function(_0x34e6b6){const _0x198b52=_0x12b865,_0x383498=_0xc7982f['user'][_0x198b52('0x41')]({'plain':!![]});if(!_0x383498)throw new Error(_0x198b52('0x21'));if(_0x383498[_0x198b52('0x5')]==='user'){const _0x591956=_0x34e6b6[_0x198b52('0x41')]({'plain':!![]}),_0x176808=[{'name':'InboundRoutes','value':_0x198b52('0xe')},{'name':_0x198b52('0x35'),'value':_0x198b52('0x39')},{'name':'InternalRoutes','value':'internal'}],_0x107741=_['find'](_0x176808,[_0x198b52('0x49'),_0x591956[_0x198b52('0x46')]])[_0x198b52('0x3c')];return db[_0x198b52('0x4b')][_0x198b52('0x2e')]({'where':{'name':_0x107741,'userProfileId':_0x383498[_0x198b52('0x1c')]},'raw':!![]})[_0x198b52('0x15')](function(_0x322968){const _0x3412f6=_0x198b52;return _0x322968&&_0x322968['autoAssociation']===0x0?db[_0x3412f6('0x36')][_0x3412f6('0x4d')]({'name':_0x591956[_0x3412f6('0x3c')],'resourceId':_0x591956['id'],'type':_0x322968[_0x3412f6('0x3c')],'sectionId':_0x322968['id']},{})[_0x3412f6('0x15')](function(){return _0x34e6b6;}):_0x34e6b6;})['catch'](function(_0x41731c){const _0x141a65=_0x198b52;logger[_0x141a65('0x19')](_0x141a65('0x8'),_0x41731c);throw _0x41731c;});}return _0x34e6b6;})['then'](respondWithResult(_0xe6fc98,0xc9))[_0x12b865('0x3d')](handleError(_0xe6fc98,null));},exports[_0x31a795('0x14')]=function(_0x2aed61,_0x59fe87){const _0x2e6ae1=_0x31a795;return _0x2aed61[_0x2e6ae1('0x2a')]['id']&&delete _0x2aed61['body']['id'],db[_0x2e6ae1('0x0')]['findOne']({'where':{'id':_0x2aed61['params']['id']}})[_0x2e6ae1('0x15')](handleEntityNotFound(_0x59fe87,null))[_0x2e6ae1('0x15')](function(_0x224c24){const _0x572183=_0x2e6ae1;if(_0x224c24)return db[_0x572183('0x0')][_0x572183('0x14')](_[_0x572183('0x4')](_0x2aed61[_0x572183('0x2a')],[_0x572183('0x42'),_0x572183('0x3e'),_0x572183('0x1d'),_0x572183('0xf'),_0x572183('0x2c'),'mandatoryDisposition']),{'where':{'context':_0x224c24[_0x572183('0x3e')],'exten':_0x224c24['exten']},'individualHooks':!![]})[_0x572183('0x15')](function(_0x26ff28){return _0x26ff28;});return null;})[_0x2e6ae1('0x15')](respondWithStatusCode(_0x59fe87,null))[_0x2e6ae1('0x3d')](handleError(_0x59fe87,null));},exports[_0x31a795('0xd')]=function(_0x48d478,_0x5a9e1a){const _0x2e41eb=_0x31a795;return db[_0x2e41eb('0x0')]['findOne']({'where':{'id':_0x48d478[_0x2e41eb('0x17')]['id']}})['then'](handleEntityNotFound(_0x5a9e1a,null))[_0x2e41eb('0x15')](function(_0x54ac8f){const _0x221272=_0x2e41eb;if(_0x54ac8f)return db[_0x221272('0x24')][_0x221272('0x37')](function(_0x56c035){const _0x4d1d72=_0x221272;return db[_0x4d1d72('0x0')][_0x4d1d72('0x1a')]({'where':{'VoiceExtensionId':_0x48d478[_0x4d1d72('0x17')]['id']},'transaction':_0x56c035})[_0x4d1d72('0x15')](function(){const _0x156ba3=_0x4d1d72,_0x4782cf=_[_0x156ba3('0x4a')](_0x48d478[_0x156ba3('0x2a')],function(_0x15ad6b){const _0x1bd727=_0x156ba3;return _0x15ad6b[_0x1bd727('0x31')]=_0x48d478[_0x1bd727('0x17')]['id'],_0x15ad6b;});return db[_0x156ba3('0x0')][_0x156ba3('0x4e')](_0x4782cf,{'transaction':_0x56c035});});})[_0x221272('0x15')](function(){const _0x2a46ec=_0x221272;return db[_0x2a46ec('0x0')][_0x2a46ec('0x50')]({'where':{'isApp':!![],'VoiceExtensionId':_0x48d478['params']['id']},'order':'cast(priority\x20as\x20unsigned)'});});})[_0x2e41eb('0x15')](respondWithResult(_0x5a9e1a,null))['catch'](handleError(_0x5a9e1a,null));}; \ No newline at end of file +const a727_0x2032=['cutdigits','findOne','get','sequelize','merge','count','keys','startsWith','body','order','query','internal','offset','VoiceExtensionId','../../mysqldb','set','value','where','filter','recordingFormat','concat','model','Unable\x20to\x20retrieve\x20the\x20current\x20user','autoAssociation','params','undefined','rows','findAndCountAll','UserProfileSection','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','intersection','name','create','InternalRoutes','filters','bulkCreate','then','update','context','../../rediscache','VIRTUAL','description','catch','destroy','send','includes','../../config/logger','Content-Range','VoiceExtension','OutboundRoutes','includeAll','options','end','fields','exten','inbound','UserProfileResource','./voiceExtension.socket','transaction','attributes','status','addApplications','findAll','sendStatus','lodash','outbound','key','user','limit','index','type','stack','api','rawAttributes','show','map','nolimit','json','error','find','InboundRoutes','include'];(function(_0x3080a0,_0x203271){const _0x3710bd=function(_0x74f2cb){while(--_0x74f2cb){_0x3080a0['push'](_0x3080a0['shift']());}};_0x3710bd(++_0x203271);}(a727_0x2032,0xc6));const a727_0x3710=function(_0x3080a0,_0x203271){_0x3080a0=_0x3080a0-0x0;let _0x3710bd=a727_0x2032[_0x3080a0];return _0x3710bd;};const _0x5103f8=a727_0x3710;'use strict';const _=require(_0x5103f8('0x1e')),qs=require('../../components/parsers/qs'),logger=require(_0x5103f8('0xc'))(_0x5103f8('0x26')),{getSocket}=require(_0x5103f8('0x5')),socket=getSocket(),db=require(_0x5103f8('0x3e'))['db'],{Op}=require(_0x5103f8('0x33'));require(_0x5103f8('0x17'))['register'](socket);function respondWithStatusCode(_0x74f2cb,_0x25c8c7){return _0x25c8c7=_0x25c8c7||0xcc,function(_0x73ae6c){const _0xe85992=a727_0x3710;if(_0x73ae6c)return _0x74f2cb[_0xe85992('0x1d')](_0x25c8c7);return _0x74f2cb[_0xe85992('0x1a')](_0x25c8c7)[_0xe85992('0x12')]();};}function respondWithResult(_0x5b484a,_0x4900a4){return _0x4900a4=_0x4900a4||0xc8,function(_0xbbb775){const _0x1cab74=a727_0x3710;if(_0xbbb775)return _0x5b484a[_0x1cab74('0x1a')](_0x4900a4)[_0x1cab74('0x2b')](_0xbbb775);};}function respondWithFilteredResult(_0x190070,_0x5068f2){return function(_0x158437){const _0x30d8df=a727_0x3710;if(_0x158437){const _0x251870=_0x158437[_0x30d8df('0x35')],_0x4aec84=_0x5068f2[_0x30d8df('0x3c')];let _0x531fe1=_0x5068f2[_0x30d8df('0x3c')]+_0x5068f2['limit'],_0x362e9c;return _0x531fe1>=_0x251870?(_0x531fe1=_0x251870,_0x362e9c=0xc8):_0x362e9c=0xce,_0x190070[_0x30d8df('0x1a')](_0x362e9c),_0x190070[_0x30d8df('0x3f')](_0x30d8df('0xd'),_0x4aec84+'-'+_0x531fe1+'/'+_0x251870)[_0x30d8df('0x2b')](_0x158437);}return null;};}function removeEntity(_0x443662){return function(_0x235068){const _0x312c20=a727_0x3710;if(_0x235068)return _0x235068[_0x312c20('0x9')]()[_0x312c20('0x2')](function(){const _0x361ebb=_0x312c20,_0x5d49c3=_0x235068[_0x361ebb('0x32')]({'plain':!![]}),_0x2e43af=[{'name':_0x361ebb('0x2e'),'value':_0x361ebb('0x15'),'ignore':![]},{'name':_0x361ebb('0xf'),'value':'outbound','ignore':![]},{'name':_0x361ebb('0x51'),'value':_0x361ebb('0x3b'),'ignore':![]}],_0x3320d9=_(_0x2e43af)['filter']('ignore')[_0x361ebb('0x29')](_0x361ebb('0x40'))['value']();if(_[_0x361ebb('0xb')](_0x3320d9,_0x5d49c3['type']))return;const _0x7c0771=_[_0x361ebb('0x2d')](_0x2e43af,[_0x361ebb('0x40'),_0x5d49c3[_0x361ebb('0x24')]])[_0x361ebb('0x4f')];return db[_0x361ebb('0x16')]['destroy']({'where':{'type':_0x7c0771,'resourceId':_0x5d49c3['id']}})[_0x361ebb('0x2')](function(){return _0x235068;});})[_0x312c20('0x2')](function(){const _0x21ea91=_0x312c20;_0x443662[_0x21ea91('0x1a')](0xcc)['end']();});};}function handleEntityNotFound(_0x29bd53){return function(_0xfd8435){return!_0xfd8435&&_0x29bd53['sendStatus'](0x194),_0xfd8435;};}function handleError(_0x2c5b04,_0x249121){return _0x249121=_0x249121||0x1f4,function(_0x168ed4){const _0x8820f=a727_0x3710;logger['error'](_0x168ed4[_0x8820f('0x25')]),_0x168ed4[_0x8820f('0x4f')]&&delete _0x168ed4[_0x8820f('0x4f')],_0x2c5b04[_0x8820f('0x1a')](_0x249121)[_0x8820f('0xa')](_0x168ed4);};}exports[_0x5103f8('0x23')]=function(_0x23552c,_0x5e228b){const _0x1fb85d=_0x5103f8;let _0x1c7c27={};const _0x14c789={},_0x658647={'count':0x0,'rows':[]},_0x18bd53=_[_0x1fb85d('0x29')](db[_0x1fb85d('0xe')]['rawAttributes'],function(_0x9f7515){const _0x328cc2=_0x1fb85d;return{'name':_0x9f7515['fieldName'],'type':_0x9f7515[_0x328cc2('0x24')][_0x328cc2('0x20')]};});_0x14c789[_0x1fb85d('0x45')]=_[_0x1fb85d('0x29')](_0x18bd53,_0x1fb85d('0x4f')),_0x14c789[_0x1fb85d('0x3a')]=_[_0x1fb85d('0x36')](_0x23552c[_0x1fb85d('0x3a')]),_0x14c789[_0x1fb85d('0x0')]=_[_0x1fb85d('0x4e')](_0x14c789[_0x1fb85d('0x45')],_0x14c789[_0x1fb85d('0x3a')]),_0x1c7c27['attributes']=_['intersection'](_0x14c789['model'],qs[_0x1fb85d('0x13')](_0x23552c[_0x1fb85d('0x3a')][_0x1fb85d('0x13')])),_0x1c7c27[_0x1fb85d('0x19')]=_0x1c7c27['attributes']['length']?_0x1c7c27['attributes']:_0x14c789[_0x1fb85d('0x45')];typeof _0x23552c[_0x1fb85d('0x3a')][_0x1fb85d('0x2a')]===_0x1fb85d('0x49')&&(_0x1c7c27[_0x1fb85d('0x22')]=qs[_0x1fb85d('0x22')](_0x23552c[_0x1fb85d('0x3a')][_0x1fb85d('0x22')]),_0x1c7c27[_0x1fb85d('0x3c')]=qs[_0x1fb85d('0x3c')](_0x23552c[_0x1fb85d('0x3a')][_0x1fb85d('0x3c')]));_0x1c7c27[_0x1fb85d('0x39')]=qs['sort'](_0x23552c[_0x1fb85d('0x3a')]['sort']),_0x1c7c27[_0x1fb85d('0x41')]=qs['filters'](_['pick'](_0x23552c[_0x1fb85d('0x3a')],_0x14c789[_0x1fb85d('0x0')]),_0x18bd53);_0x23552c[_0x1fb85d('0x3a')][_0x1fb85d('0x42')]&&(_0x1c7c27['where']=_[_0x1fb85d('0x34')](_0x1c7c27[_0x1fb85d('0x41')],{[Op['or']]:_[_0x1fb85d('0x29')](_0x18bd53,function(_0x42990c){const _0x220443=_0x1fb85d;if(_0x42990c[_0x220443('0x24')]!==_0x220443('0x6')){const _0x358f04={};return _0x358f04[_0x42990c[_0x220443('0x4f')]]={[Op['like']]:'%'+_0x23552c[_0x220443('0x3a')][_0x220443('0x42')]+'%'},_0x358f04;}})}));_0x1c7c27=_[_0x1fb85d('0x34')]({},_0x1c7c27,_0x23552c[_0x1fb85d('0x11')]);const _0x32b94e={'where':_0x1c7c27[_0x1fb85d('0x41')]};return db[_0x1fb85d('0xe')][_0x1fb85d('0x35')](_0x32b94e)['then'](function(_0x4a2379){const _0x3a0e6f=_0x1fb85d;return _0x658647[_0x3a0e6f('0x35')]=_0x4a2379,_0x23552c[_0x3a0e6f('0x3a')][_0x3a0e6f('0x10')]&&(_0x1c7c27[_0x3a0e6f('0x2f')]=[{'all':!![]}]),db['VoiceExtension'][_0x3a0e6f('0x1c')](_0x1c7c27);})[_0x1fb85d('0x2')](function(_0x1dc2d8){const _0x5f2b34=_0x1fb85d;return _0x658647[_0x5f2b34('0x4a')]=_0x1dc2d8,_0x658647;})[_0x1fb85d('0x2')](respondWithFilteredResult(_0x5e228b,_0x1c7c27))[_0x1fb85d('0x8')](handleError(_0x5e228b,null));},exports[_0x5103f8('0x28')]=function(_0x582612,_0x1be073){const _0x87b799=_0x5103f8;let _0x129b86={'raw':![],'where':{'id':_0x582612[_0x87b799('0x48')]['id']}};const _0x313ad4={};return _0x313ad4[_0x87b799('0x45')]=_['keys'](db[_0x87b799('0xe')][_0x87b799('0x27')]),_0x313ad4[_0x87b799('0x3a')]=_[_0x87b799('0x36')](_0x582612['query']),_0x313ad4[_0x87b799('0x0')]=_[_0x87b799('0x4e')](_0x313ad4[_0x87b799('0x45')],_0x313ad4['query']),_0x129b86[_0x87b799('0x19')]=_[_0x87b799('0x4e')](_0x313ad4[_0x87b799('0x45')],qs[_0x87b799('0x13')](_0x582612['query'][_0x87b799('0x13')])),_0x129b86['attributes']=_0x129b86['attributes']['length']?_0x129b86[_0x87b799('0x19')]:_0x313ad4[_0x87b799('0x45')],_0x582612['query']['includeAll']&&(_0x129b86[_0x87b799('0x2f')]=[{'all':!![]}]),_0x129b86=_[_0x87b799('0x34')]({},_0x129b86,_0x582612[_0x87b799('0x11')]),db[_0x87b799('0xe')][_0x87b799('0x31')](_0x129b86)[_0x87b799('0x2')](handleEntityNotFound(_0x1be073,null))[_0x87b799('0x2')](respondWithResult(_0x1be073,null))[_0x87b799('0x8')](handleError(_0x1be073,null));},exports[_0x5103f8('0x9')]=function(_0x2ce29e,_0x58e241){const _0x100bc4=_0x5103f8;return db[_0x100bc4('0xe')][_0x100bc4('0x31')]({'where':{'id':_0x2ce29e[_0x100bc4('0x48')]['id']}})['then'](handleEntityNotFound(_0x58e241,null))[_0x100bc4('0x2')](removeEntity(_0x58e241,null))[_0x100bc4('0x8')](handleError(_0x58e241,null));},exports[_0x5103f8('0x50')]=function(_0x319e8a,_0x579f59){const _0x46fb96=_0x5103f8;return _0x319e8a[_0x46fb96('0x38')][_0x46fb96('0x24')]===_0x46fb96('0x1f')&&!_[_0x46fb96('0x37')](_0x319e8a['body'][_0x46fb96('0x14')],'_')&&(_0x319e8a['body'][_0x46fb96('0x14')]='_'[_0x46fb96('0x44')](_0x319e8a[_0x46fb96('0x38')]['exten'])),db[_0x46fb96('0xe')][_0x46fb96('0x50')](_0x319e8a[_0x46fb96('0x38')],{'raw':![]})['then'](function(_0x6fb1eb){const _0x3cbffa=_0x46fb96,_0x755691=_0x319e8a['user'][_0x3cbffa('0x32')]({'plain':!![]});if(!_0x755691)throw new Error(_0x3cbffa('0x46'));if(_0x755691['role']===_0x3cbffa('0x21')){const _0x4ca651=_0x6fb1eb[_0x3cbffa('0x32')]({'plain':!![]}),_0x49767b=[{'name':'InboundRoutes','value':_0x3cbffa('0x15')},{'name':_0x3cbffa('0xf'),'value':_0x3cbffa('0x1f')},{'name':_0x3cbffa('0x51'),'value':_0x3cbffa('0x3b')}],_0x24a2d8=_[_0x3cbffa('0x2d')](_0x49767b,[_0x3cbffa('0x40'),_0x4ca651[_0x3cbffa('0x24')]])[_0x3cbffa('0x4f')];return db[_0x3cbffa('0x4c')][_0x3cbffa('0x31')]({'where':{'name':_0x24a2d8,'userProfileId':_0x755691['userProfileId']},'raw':!![]})[_0x3cbffa('0x2')](function(_0x3f33e7){const _0x2ca334=_0x3cbffa;return _0x3f33e7&&_0x3f33e7[_0x2ca334('0x47')]===0x0?db['UserProfileResource'][_0x2ca334('0x50')]({'name':_0x4ca651[_0x2ca334('0x4f')],'resourceId':_0x4ca651['id'],'type':_0x3f33e7[_0x2ca334('0x4f')],'sectionId':_0x3f33e7['id']},{})[_0x2ca334('0x2')](function(){return _0x6fb1eb;}):_0x6fb1eb;})[_0x3cbffa('0x8')](function(_0xeeba9){const _0x100589=_0x3cbffa;logger[_0x100589('0x2c')](_0x100589('0x4d'),_0xeeba9);throw _0xeeba9;});}return _0x6fb1eb;})[_0x46fb96('0x2')](respondWithResult(_0x579f59,0xc9))[_0x46fb96('0x8')](handleError(_0x579f59,null));},exports[_0x5103f8('0x3')]=function(_0x5707e8,_0x3df186){const _0x50a737=_0x5103f8;return _0x5707e8[_0x50a737('0x38')]['id']&&delete _0x5707e8[_0x50a737('0x38')]['id'],db['VoiceExtension'][_0x50a737('0x31')]({'where':{'id':_0x5707e8[_0x50a737('0x48')]['id']}})[_0x50a737('0x2')](handleEntityNotFound(_0x3df186,null))[_0x50a737('0x2')](function(_0x13de55){const _0x40a845=_0x50a737;if(_0x13de55)return db[_0x40a845('0xe')][_0x40a845('0x3')](_['pick'](_0x5707e8[_0x40a845('0x38')],[_0x40a845('0x14'),_0x40a845('0x4'),_0x40a845('0x7'),_0x40a845('0x43'),_0x40a845('0x30'),'mandatoryDisposition']),{'where':{'context':_0x13de55[_0x40a845('0x4')],'exten':_0x13de55['exten']},'individualHooks':!![]})['then'](function(_0x3abbc5){return _0x3abbc5;});return null;})[_0x50a737('0x2')](respondWithStatusCode(_0x3df186,null))['catch'](handleError(_0x3df186,null));},exports[_0x5103f8('0x1b')]=function(_0x1931d8,_0x17c809){const _0x1fa1b2=_0x5103f8;return db[_0x1fa1b2('0xe')][_0x1fa1b2('0x31')]({'where':{'id':_0x1931d8['params']['id']}})[_0x1fa1b2('0x2')](handleEntityNotFound(_0x17c809,null))[_0x1fa1b2('0x2')](function(_0xae6506){const _0x48052a=_0x1fa1b2;if(_0xae6506)return db['sequelize'][_0x48052a('0x18')](function(_0x3876e5){const _0x18a7e7=_0x48052a;return db[_0x18a7e7('0xe')][_0x18a7e7('0x9')]({'where':{'VoiceExtensionId':_0x1931d8[_0x18a7e7('0x48')]['id']},'transaction':_0x3876e5})['then'](function(){const _0x4767c7=_0x18a7e7,_0x412392=_['map'](_0x1931d8[_0x4767c7('0x38')],function(_0xb42df){const _0x6f93dc=_0x4767c7;return _0xb42df[_0x6f93dc('0x3d')]=_0x1931d8['params']['id'],_0xb42df;});return db[_0x4767c7('0xe')][_0x4767c7('0x1')](_0x412392,{'transaction':_0x3876e5});});})[_0x48052a('0x2')](function(){const _0x5080bd=_0x48052a;return db[_0x5080bd('0xe')][_0x5080bd('0x4b')]({'where':{'isApp':!![],'VoiceExtensionId':_0x1931d8[_0x5080bd('0x48')]['id']},'order':'cast(priority\x20as\x20unsigned)'});});})[_0x1fa1b2('0x2')](respondWithResult(_0x17c809,null))[_0x1fa1b2('0x8')](handleError(_0x17c809,null));}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.events.js b/server/api/voiceExtension/voiceExtension.events.js index cbd15ef..3e75a43 100644 --- a/server/api/voiceExtension/voiceExtension.events.js +++ b/server/api/voiceExtension/voiceExtension.events.js @@ -1 +1 @@ -const a728_0x1064=['exports','setMaxListeners','undefined','update','addHook','VoiceExtension','events','remove','emit','save'];(function(_0x563850,_0x106441){const _0x38f9c1=function(_0xdce6ec){while(--_0xdce6ec){_0x563850['push'](_0x563850['shift']());}};_0x38f9c1(++_0x106441);}(a728_0x1064,0x1b9));const a728_0x38f9=function(_0x563850,_0x106441){_0x563850=_0x563850-0x0;let _0x38f9c1=a728_0x1064[_0x563850];return _0x38f9c1;};const _0x50579f=a728_0x38f9;'use strict';const EventEmitter=require(_0x50579f('0x5')),VoiceExtension=require('../../mysqldb')['db'][_0x50579f('0x4')],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0x50579f('0x0')](0x0);const events={'afterCreate':_0x50579f('0x8'),'afterUpdate':_0x50579f('0x2'),'afterDestroy':_0x50579f('0x6')};function emitEvent(_0xdce6ec){return function(_0x48597c){const _0x92e70=a728_0x38f9;VoiceExtensionEvents['emit'](_0xdce6ec+':'+_0x48597c['id'],_0x48597c),VoiceExtensionEvents[_0x92e70('0x7')](_0xdce6ec,_0x48597c);};}for(const e in events){if(typeof events[e]!==_0x50579f('0x1')){const event=events[e];VoiceExtension[_0x50579f('0x3')](e,emitEvent(event));}}module[_0x50579f('0x9')]=VoiceExtensionEvents; \ No newline at end of file +const a728_0x388e=['save','setMaxListeners','VoiceExtension','undefined','emit','addHook','remove','update','events','../../mysqldb'];(function(_0x38c13f,_0x388e11){const _0xd466b8=function(_0x4c8d3c){while(--_0x4c8d3c){_0x38c13f['push'](_0x38c13f['shift']());}};_0xd466b8(++_0x388e11);}(a728_0x388e,0x160));const a728_0xd466=function(_0x38c13f,_0x388e11){_0x38c13f=_0x38c13f-0x0;let _0xd466b8=a728_0x388e[_0x38c13f];return _0xd466b8;};const _0x47d87a=a728_0xd466;'use strict';const EventEmitter=require(_0x47d87a('0x6')),VoiceExtension=require(_0x47d87a('0x7'))['db'][_0x47d87a('0x0')],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0x47d87a('0x9')](0x0);const events={'afterCreate':_0x47d87a('0x8'),'afterUpdate':_0x47d87a('0x5'),'afterDestroy':_0x47d87a('0x4')};function emitEvent(_0x4c8d3c){return function(_0x26a7cc){const _0x56c4c3=a728_0xd466;VoiceExtensionEvents[_0x56c4c3('0x2')](_0x4c8d3c+':'+_0x26a7cc['id'],_0x26a7cc),VoiceExtensionEvents['emit'](_0x4c8d3c,_0x26a7cc);};}for(const e in events){if(typeof events[e]!==_0x47d87a('0x1')){const event=events[e];VoiceExtension[_0x47d87a('0x3')](e,emitEvent(event));}}module['exports']=VoiceExtensionEvents; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.model.js b/server/api/voiceExtension/voiceExtension.model.js index b719734..1c7aa34 100644 --- a/server/api/voiceExtension/voiceExtension.model.js +++ b/server/api/voiceExtension/voiceExtension.model.js @@ -1 +1 @@ -const a729_0x2733=['define','exports','./voiceExtension.attributes','voice_extensions'];(function(_0x3b23bb,_0x2733e9){const _0x3bc320=function(_0x5d9029){while(--_0x5d9029){_0x3b23bb['push'](_0x3b23bb['shift']());}};_0x3bc320(++_0x2733e9);}(a729_0x2733,0x71));const a729_0x3bc3=function(_0x3b23bb,_0x2733e9){_0x3b23bb=_0x3b23bb-0x0;let _0x3bc320=a729_0x2733[_0x3b23bb];return _0x3bc320;};const _0x437bff=a729_0x3bc3;'use strict';const attributes=require(_0x437bff('0x1'));module[_0x437bff('0x0')]=function(_0x5d9029){const _0x5db7bc=_0x437bff,_0xec2a44=_0x5d9029[_0x5db7bc('0x3')]('VoiceExtension',attributes,{'tableName':_0x5db7bc('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xec2a44;}; \ No newline at end of file +const a729_0x16a2=['./voiceExtension.attributes','VoiceExtension','define','exports'];(function(_0x2f740f,_0x16a222){const _0x29b063=function(_0x3a7680){while(--_0x3a7680){_0x2f740f['push'](_0x2f740f['shift']());}};_0x29b063(++_0x16a222);}(a729_0x16a2,0x148));const a729_0x29b0=function(_0x2f740f,_0x16a222){_0x2f740f=_0x2f740f-0x0;let _0x29b063=a729_0x16a2[_0x2f740f];return _0x29b063;};const _0x247bda=a729_0x29b0;'use strict';const attributes=require(_0x247bda('0x0'));module[_0x247bda('0x3')]=function(_0x3a7680){const _0x2e5331=_0x247bda,_0x301c37=_0x3a7680[_0x2e5331('0x2')](_0x2e5331('0x1'),attributes,{'tableName':'voice_extensions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x301c37;}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.rpc.js b/server/api/voiceExtension/voiceExtension.rpc.js index f716fb3..d4008b0 100644 --- a/server/api/voiceExtension/voiceExtension.rpc.js +++ b/server/api/voiceExtension/voiceExtension.rpc.js @@ -1 +1 @@ -const a730_0x7f53=['../../rediscache','info','map','include','raw','attributes','./voiceExtension.socket','model','then','stringify','message','../../config/logger','lodash','rpc','options','../../mysqldb','GetVoiceExtension','register','debug','error','catch'];(function(_0x3729d4,_0x7f536d){const _0x4173c2=function(_0x4b8597){while(--_0x4b8597){_0x3729d4['push'](_0x3729d4['shift']());}};_0x4173c2(++_0x7f536d);}(a730_0x7f53,0x125));const a730_0x4173=function(_0x3729d4,_0x7f536d){_0x3729d4=_0x3729d4-0x0;let _0x4173c2=a730_0x7f53[_0x3729d4];return _0x4173c2;};const _0x35a57e=a730_0x4173;'use strict';const _=require(_0x35a57e('0xd')),db=require(_0x35a57e('0x10'))['db'],logger=require(_0x35a57e('0xc'))(_0x35a57e('0xe')),{getSocket}=require(_0x35a57e('0x1')),socket=getSocket();require(_0x35a57e('0x7'))[_0x35a57e('0x12')](socket),exports[_0x35a57e('0x11')]=function(_0x4b8597){const _0x50af65=this;return new Promise(function(_0x18301a,_0x10b30e){const _0x473c03=a730_0x4173;return db['VoiceExtension']['findAll']({'raw':_0x4b8597[_0x473c03('0xf')]?_0x4b8597[_0x473c03('0xf')][_0x473c03('0x5')]===undefined?!![]:![]:!![],'where':_0x4b8597['options']?_0x4b8597['options']['where']||null:null,'attributes':_0x4b8597['options']?_0x4b8597[_0x473c03('0xf')][_0x473c03('0x6')]||null:null,'limit':_0x4b8597[_0x473c03('0xf')]?_0x4b8597['options']['limit']||null:null,'include':_0x4b8597[_0x473c03('0xf')]?_0x4b8597[_0x473c03('0xf')]['include']?_[_0x473c03('0x3')](_0x4b8597['options'][_0x473c03('0x4')],function(_0x9059d8){const _0xa631a0=_0x473c03;return{'model':db[_0x9059d8[_0xa631a0('0x8')]],'as':_0x9059d8['as'],'attributes':_0x9059d8['attributes'],'include':_0x9059d8['include']?_[_0xa631a0('0x3')](_0x9059d8[_0xa631a0('0x4')],function(_0x23590a){const _0x17439a=_0xa631a0;return{'model':db[_0x23590a[_0x17439a('0x8')]],'as':_0x23590a['as'],'attributes':_0x23590a[_0x17439a('0x6')],'include':_0x23590a[_0x17439a('0x4')]?_[_0x17439a('0x3')](_0x23590a[_0x17439a('0x4')],function(_0xf304c4){const _0x4ac22f=_0x17439a;return{'model':db[_0xf304c4['model']],'as':_0xf304c4['as'],'attributes':_0xf304c4[_0x4ac22f('0x6')]};}):[]};}):[]};}):[]:[]})[_0x473c03('0x9')](function(_0x5cf5ee){const _0x2ec27d=_0x473c03;logger[_0x2ec27d('0x2')]('GetVoiceExtension',_0x4b8597),logger[_0x2ec27d('0x13')](_0x2ec27d('0x11'),_0x4b8597,JSON[_0x2ec27d('0xa')](_0x5cf5ee)),_0x18301a(_0x5cf5ee);})[_0x473c03('0x0')](function(_0x1ef4f6){const _0x2ca6c4=_0x473c03;logger['error']('GetVoiceExtension',_0x1ef4f6[_0x2ca6c4('0xb')],_0x4b8597),_0x10b30e(_0x50af65[_0x2ca6c4('0x14')](0x1f4,_0x1ef4f6[_0x2ca6c4('0xb')]));});});}; \ No newline at end of file +const a730_0x2f56=['options','GetVoiceExtension','../../config/logger','../../rediscache','info','attributes','./voiceExtension.socket','error','map','then','rpc','debug','VoiceExtension','model','message','raw','stringify','../../mysqldb','where','include','limit'];(function(_0x1a891a,_0x2f56fc){const _0x4f8d0e=function(_0x2eefaf){while(--_0x2eefaf){_0x1a891a['push'](_0x1a891a['shift']());}};_0x4f8d0e(++_0x2f56fc);}(a730_0x2f56,0x151));const a730_0x4f8d=function(_0x1a891a,_0x2f56fc){_0x1a891a=_0x1a891a-0x0;let _0x4f8d0e=a730_0x2f56[_0x1a891a];return _0x4f8d0e;};const _0x47f15e=a730_0x4f8d;'use strict';const _=require('lodash'),db=require(_0x47f15e('0x10'))['db'],logger=require(_0x47f15e('0x1'))(_0x47f15e('0x9')),{getSocket}=require(_0x47f15e('0x2')),socket=getSocket();require(_0x47f15e('0x5'))['register'](socket),exports[_0x47f15e('0x0')]=function(_0x2eefaf){const _0x4169ba=this;return new Promise(function(_0x36eca6,_0x464c42){const _0x578eda=a730_0x4f8d;return db[_0x578eda('0xb')]['findAll']({'raw':_0x2eefaf[_0x578eda('0x14')]?_0x2eefaf[_0x578eda('0x14')][_0x578eda('0xe')]===undefined?!![]:![]:!![],'where':_0x2eefaf['options']?_0x2eefaf[_0x578eda('0x14')][_0x578eda('0x11')]||null:null,'attributes':_0x2eefaf[_0x578eda('0x14')]?_0x2eefaf[_0x578eda('0x14')][_0x578eda('0x4')]||null:null,'limit':_0x2eefaf[_0x578eda('0x14')]?_0x2eefaf[_0x578eda('0x14')][_0x578eda('0x13')]||null:null,'include':_0x2eefaf[_0x578eda('0x14')]?_0x2eefaf[_0x578eda('0x14')][_0x578eda('0x12')]?_[_0x578eda('0x7')](_0x2eefaf['options'][_0x578eda('0x12')],function(_0x43519c){const _0x264a61=_0x578eda;return{'model':db[_0x43519c[_0x264a61('0xc')]],'as':_0x43519c['as'],'attributes':_0x43519c['attributes'],'include':_0x43519c[_0x264a61('0x12')]?_[_0x264a61('0x7')](_0x43519c[_0x264a61('0x12')],function(_0x1aa56c){const _0x1ca885=_0x264a61;return{'model':db[_0x1aa56c['model']],'as':_0x1aa56c['as'],'attributes':_0x1aa56c['attributes'],'include':_0x1aa56c['include']?_['map'](_0x1aa56c[_0x1ca885('0x12')],function(_0x425e4a){const _0x2cb513=_0x1ca885;return{'model':db[_0x425e4a['model']],'as':_0x425e4a['as'],'attributes':_0x425e4a[_0x2cb513('0x4')]};}):[]};}):[]};}):[]:[]})[_0x578eda('0x8')](function(_0x476ba1){const _0x3cde88=_0x578eda;logger[_0x3cde88('0x3')](_0x3cde88('0x0'),_0x2eefaf),logger[_0x3cde88('0xa')]('GetVoiceExtension',_0x2eefaf,JSON[_0x3cde88('0xf')](_0x476ba1)),_0x36eca6(_0x476ba1);})['catch'](function(_0x103b04){const _0x170f06=_0x578eda;logger['error'](_0x170f06('0x0'),_0x103b04[_0x170f06('0xd')],_0x2eefaf),_0x464c42(_0x4169ba[_0x170f06('0x6')](0x1f4,_0x103b04[_0x170f06('0xd')]));});});}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.socket.js b/server/api/voiceExtension/voiceExtension.socket.js index 0ac96c6..492f5ea 100644 --- a/server/api/voiceExtension/voiceExtension.socket.js +++ b/server/api/voiceExtension/voiceExtension.socket.js @@ -1 +1 @@ -const a731_0x5de4=['save','remove','emit','voiceExtension:','./voiceExtension.events','length'];(function(_0x280d5a,_0x5de4e5){const _0x3f1f7a=function(_0x31d410){while(--_0x31d410){_0x280d5a['push'](_0x280d5a['shift']());}};_0x3f1f7a(++_0x5de4e5);}(a731_0x5de4,0xe3));const a731_0x3f1f=function(_0x280d5a,_0x5de4e5){_0x280d5a=_0x280d5a-0x0;let _0x3f1f7a=a731_0x5de4[_0x280d5a];return _0x3f1f7a;};const _0x56f6ed=a731_0x3f1f;'use strict';const VoiceExtensionEvents=require(_0x56f6ed('0x5')),events=[_0x56f6ed('0x1'),_0x56f6ed('0x2'),'update'];function createListener(_0x31d410,_0x156b5a){return function(_0x579021){const _0x50420b=a731_0x3f1f;_0x156b5a[_0x50420b('0x3')](_0x31d410,_0x579021);};}exports['register']=function(_0x240b8a){const _0x2fe4c3=_0x56f6ed;for(let _0x4e12b4=0x0,_0x82b358=events[_0x2fe4c3('0x0')];_0x4e12b4<_0x82b358;_0x4e12b4++){const _0x438540=events[_0x4e12b4],_0x42ee42=createListener(_0x2fe4c3('0x4')+_0x438540,_0x240b8a);VoiceExtensionEvents['on'](_0x438540,_0x42ee42);}}; \ No newline at end of file +const a731_0x4ea4=['register','update','remove','save','emit','./voiceExtension.events'];(function(_0x40dc79,_0x4ea407){const _0xa36b6f=function(_0xc5d66f){while(--_0xc5d66f){_0x40dc79['push'](_0x40dc79['shift']());}};_0xa36b6f(++_0x4ea407);}(a731_0x4ea4,0x1e6));const a731_0xa36b=function(_0x40dc79,_0x4ea407){_0x40dc79=_0x40dc79-0x0;let _0xa36b6f=a731_0x4ea4[_0x40dc79];return _0xa36b6f;};const _0x576f42=a731_0xa36b;'use strict';const VoiceExtensionEvents=require(_0x576f42('0x5')),events=[_0x576f42('0x3'),_0x576f42('0x2'),_0x576f42('0x1')];function createListener(_0xc5d66f,_0x58b6ee){return function(_0x1f8c4e){const _0x127611=a731_0xa36b;_0x58b6ee[_0x127611('0x4')](_0xc5d66f,_0x1f8c4e);};}exports[_0x576f42('0x0')]=function(_0xda5942){for(let _0x4264f5=0x0,_0x3afd2d=events['length'];_0x4264f5<_0x3afd2d;_0x4264f5++){const _0x179f72=events[_0x4264f5],_0x26eb94=createListener('voiceExtension:'+_0x179f72,_0xda5942);VoiceExtensionEvents['on'](_0x179f72,_0x26eb94);}}; \ No newline at end of file diff --git a/server/api/voiceMail/index.js b/server/api/voiceMail/index.js index 3e69fcc..96b8db0 100644 --- a/server/api/voiceMail/index.js +++ b/server/api/voiceMail/index.js @@ -1 +1 @@ -const a732_0x3c8f=['show','isAuthenticated','./voiceMail.controller','create','/:id/messages','../../components/auth/service','update','index','/:id','exports','Router','delete','get','post','put','express'];(function(_0xa8363e,_0x3c8fed){const _0x7f04e2=function(_0x2e34e0){while(--_0x2e34e0){_0xa8363e['push'](_0xa8363e['shift']());}};_0x7f04e2(++_0x3c8fed);}(a732_0x3c8f,0x185));const a732_0x7f04=function(_0xa8363e,_0x3c8fed){_0xa8363e=_0xa8363e-0x0;let _0x7f04e2=a732_0x3c8f[_0xa8363e];return _0x7f04e2;};const _0x29afce=a732_0x7f04;'use strict';const express=require(_0x29afce('0xa')),router=express[_0x29afce('0x5')](),auth=require(_0x29afce('0x0')),controller=require(_0x29afce('0xd'));router[_0x29afce('0x7')]('/',auth[_0x29afce('0xc')](),controller[_0x29afce('0x2')]),router[_0x29afce('0x7')]('/:id',auth[_0x29afce('0xc')](),controller[_0x29afce('0xb')]),router[_0x29afce('0x7')](_0x29afce('0xf'),auth[_0x29afce('0xc')](),controller['getMessages']),router[_0x29afce('0x8')]('/',auth[_0x29afce('0xc')](),controller[_0x29afce('0xe')]),router[_0x29afce('0x9')](_0x29afce('0x3'),auth['isAuthenticated'](),controller[_0x29afce('0x1')]),router[_0x29afce('0x6')]('/:id',auth[_0x29afce('0xc')](),controller['destroy']),module[_0x29afce('0x4')]=router; \ No newline at end of file +const a732_0x11c7=['index','post','destroy','create','put','Router','../../components/auth/service','express','getMessages','isAuthenticated','get','update','delete','/:id','/:id/messages'];(function(_0xffc9c3,_0x11c751){const _0x118fcd=function(_0x44219a){while(--_0x44219a){_0xffc9c3['push'](_0xffc9c3['shift']());}};_0x118fcd(++_0x11c751);}(a732_0x11c7,0x7c));const a732_0x118f=function(_0xffc9c3,_0x11c751){_0xffc9c3=_0xffc9c3-0x0;let _0x118fcd=a732_0x11c7[_0xffc9c3];return _0x118fcd;};const _0x43a877=a732_0x118f;'use strict';const express=require(_0x43a877('0x3')),router=express[_0x43a877('0x1')](),auth=require(_0x43a877('0x2')),controller=require('./voiceMail.controller');router[_0x43a877('0x6')]('/',auth[_0x43a877('0x5')](),controller[_0x43a877('0xb')]),router['get'](_0x43a877('0x9'),auth[_0x43a877('0x5')](),controller['show']),router[_0x43a877('0x6')](_0x43a877('0xa'),auth[_0x43a877('0x5')](),controller[_0x43a877('0x4')]),router[_0x43a877('0xc')]('/',auth[_0x43a877('0x5')](),controller[_0x43a877('0xe')]),router[_0x43a877('0x0')](_0x43a877('0x9'),auth['isAuthenticated'](),controller[_0x43a877('0x7')]),router[_0x43a877('0x8')](_0x43a877('0x9'),auth[_0x43a877('0x5')](),controller[_0x43a877('0xd')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.attributes.js b/server/api/voiceMail/voiceMail.attributes.js index e8c7fe6..9d3202d 100644 --- a/server/api/voiceMail/voiceMail.attributes.js +++ b/server/api/voiceMail/voiceMail.attributes.js @@ -1 +1 @@ -const a733_0x3e31=['\x20-\x20','VIRTUAL','contest_mailbox','getDataValue','string','STRING','yes','email','sequelize','INTEGER','setDataValue','mailbox','trim','fullname','ENUM'];(function(_0x192293,_0x3e310f){const _0x565837=function(_0x20f911){while(--_0x20f911){_0x192293['push'](_0x192293['shift']());}};_0x565837(++_0x3e310f);}(a733_0x3e31,0x188));const a733_0x5658=function(_0x192293,_0x3e310f){_0x192293=_0x192293-0x0;let _0x565837=a733_0x3e31[_0x192293];return _0x565837;};const _0x149879=a733_0x5658;'use strict';const Sequelize=require(_0x149879('0x6'));module['exports']={'customer_id':{'type':Sequelize[_0x149879('0x3')]},'context':{'type':Sequelize['STRING'],'defaultValue':'from-voicemail','unique':_0x149879('0x0')},'mailbox':{'type':Sequelize['STRING'],'defaultValue':'','allowNull':![],'unique':'contest_mailbox'},'password':{'type':Sequelize[_0x149879('0x3')]},'fullname':{'type':Sequelize[_0x149879('0x3')]},'email':{'type':Sequelize[_0x149879('0x3')],'validate':{'isEmail':!![]},'set':function(_0x20f911){const _0x53f459=_0x149879;this[_0x53f459('0x8')](_0x53f459('0x5'),typeof _0x20f911===_0x53f459('0x2')&&_0x20f911[_0x53f459('0xa')]()?_0x20f911[_0x53f459('0xa')]():null);}},'pager':{'type':Sequelize[_0x149879('0x3')]},'tz':{'type':Sequelize[_0x149879('0x3')],'defaultValue':'central'},'attach':{'type':Sequelize[_0x149879('0xc')]('yes','no'),'defaultValue':'yes','allowNull':![]},'saycid':{'type':Sequelize[_0x149879('0xc')](_0x149879('0x4'),'no'),'defaultValue':_0x149879('0x4'),'allowNull':![]},'dialout':{'type':Sequelize[_0x149879('0x3')]},'callback':{'type':Sequelize['STRING']},'review':{'type':Sequelize['ENUM'](_0x149879('0x4'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize[_0x149879('0xc')]('yes','no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize[_0x149879('0xc')](_0x149879('0x4'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':'TINYINT(4)','defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0x149879('0xc')](_0x149879('0x4'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize[_0x149879('0xc')]('yes','no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize['ENUM'](_0x149879('0x4'),'no'),'defaultValue':_0x149879('0x4'),'allowNull':![]},'forcename':{'type':Sequelize[_0x149879('0xc')](_0x149879('0x4'),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x149879('0xc')]('yes','no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x149879('0xc')](_0x149879('0x4'),'no'),'defaultValue':_0x149879('0x4'),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':Sequelize[_0x149879('0x3')]},'emailbody':{'type':Sequelize[_0x149879('0x3')]},'maxsecs':{'type':Sequelize[_0x149879('0x7')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x149879('0x7')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0x149879('0xe')],'get':function(){const _0x3d4d26=_0x149879;return this['getDataValue'](_0x3d4d26('0xb'))+_0x3d4d26('0xd')+this[_0x3d4d26('0x1')](_0x3d4d26('0x9'));}}}; \ No newline at end of file +const a733_0xfb2b=['ENUM','VIRTUAL','TINYINT(4)','from-voicemail','yes','getDataValue','email','\x20-\x20','central','STRING','fullname','string','setDataValue','exports','INTEGER','contest_mailbox'];(function(_0x9178fd,_0xfb2bb8){const _0x1c9121=function(_0x1f87d0){while(--_0x1f87d0){_0x9178fd['push'](_0x9178fd['shift']());}};_0x1c9121(++_0xfb2bb8);}(a733_0xfb2b,0xe4));const a733_0x1c91=function(_0x9178fd,_0xfb2bb8){_0x9178fd=_0x9178fd-0x0;let _0x1c9121=a733_0xfb2b[_0x9178fd];return _0x1c9121;};const _0x1bc375=a733_0x1c91;'use strict';const Sequelize=require('sequelize');module[_0x1bc375('0x9')]={'customer_id':{'type':Sequelize['STRING']},'context':{'type':Sequelize['STRING'],'defaultValue':_0x1bc375('0xf'),'unique':_0x1bc375('0xb')},'mailbox':{'type':Sequelize[_0x1bc375('0x5')],'defaultValue':'','allowNull':![],'unique':'contest_mailbox'},'password':{'type':Sequelize[_0x1bc375('0x5')]},'fullname':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x1bc375('0x5')],'validate':{'isEmail':!![]},'set':function(_0x1f87d0){const _0x4374b9=_0x1bc375;this[_0x4374b9('0x8')](_0x4374b9('0x2'),typeof _0x1f87d0===_0x4374b9('0x7')&&_0x1f87d0['trim']()?_0x1f87d0['trim']():null);}},'pager':{'type':Sequelize[_0x1bc375('0x5')]},'tz':{'type':Sequelize[_0x1bc375('0x5')],'defaultValue':_0x1bc375('0x4')},'attach':{'type':Sequelize[_0x1bc375('0xc')]('yes','no'),'defaultValue':_0x1bc375('0x0'),'allowNull':![]},'saycid':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':_0x1bc375('0x0'),'allowNull':![]},'dialout':{'type':Sequelize[_0x1bc375('0x5')]},'callback':{'type':Sequelize[_0x1bc375('0x5')]},'review':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize[_0x1bc375('0xc')]('yes','no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':_0x1bc375('0xe'),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':'yes','allowNull':![]},'forcename':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x1bc375('0xc')](_0x1bc375('0x0'),'no'),'defaultValue':_0x1bc375('0x0'),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':Sequelize['STRING']},'emailbody':{'type':Sequelize[_0x1bc375('0x5')]},'maxsecs':{'type':Sequelize['INTEGER'](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x1bc375('0xa')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0x1bc375('0xd')],'get':function(){const _0x30ab09=_0x1bc375;return this[_0x30ab09('0x1')](_0x30ab09('0x6'))+_0x30ab09('0x3')+this[_0x30ab09('0x1')]('mailbox');}}}; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.controller.js b/server/api/voiceMail/voiceMail.controller.js index e471491..843d189 100644 --- a/server/api/voiceMail/voiceMail.controller.js +++ b/server/api/voiceMail/voiceMail.controller.js @@ -1 +1 @@ -const a734_0x40ff=['create','Content-Range','params','offset','show','keys','VoiceMail','UserProfileSection','mailbox','pick','user','findAll','like','sort','length','key','findOne','order','getMessages','rawAttributes','../../components/parsers/qs','role','count','fieldName','merge','json','end','model','query','destroy','filter','includeAll','name','sendStatus','status','rows','set','api','update','filters','map','options','send','where','Voicemails','catch','fields','userProfileId','UserProfileResource','error','include','attributes','sequelize','nolimit','VoiceMailMessage','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','findAndCountAll','limit','then','body','stack','type','intersection','get','lodash'];(function(_0x1dd050,_0x40ffa9){const _0x24fcee=function(_0x1aa810){while(--_0x1aa810){_0x1dd050['push'](_0x1dd050['shift']());}};_0x24fcee(++_0x40ffa9);}(a734_0x40ff,0x193));const a734_0x24fc=function(_0x1dd050,_0x40ffa9){_0x1dd050=_0x1dd050-0x0;let _0x24fcee=a734_0x40ff[_0x1dd050];return _0x24fcee;};const _0x5eba9d=a734_0x24fc;'use strict';const _=require(_0x5eba9d('0x33')),qs=require(_0x5eba9d('0x7')),logger=require('../../config/logger')(_0x5eba9d('0x18')),db=require('../../mysqldb')['db'],{Op}=require(_0x5eba9d('0x27'));function respondWithResult(_0x1aa810,_0xcc61f4){return _0xcc61f4=_0xcc61f4||0xc8,function(_0x126aed){if(_0x126aed)return _0x1aa810['status'](_0xcc61f4)['json'](_0x126aed);};}function respondWithFilteredResult(_0xd3f77b,_0x4bc2a7){return function(_0x1b11c9){const _0x319572=a734_0x24fc;if(_0x1b11c9){const _0xc4a16f=_0x1b11c9['count'],_0x4b6e3e=_0x4bc2a7[_0x319572('0x37')];let _0x840cb3=_0x4bc2a7['offset']+_0x4bc2a7['limit'],_0x16cac9;return _0x840cb3>=_0xc4a16f?(_0x840cb3=_0xc4a16f,_0x16cac9=0xc8):_0x16cac9=0xce,_0xd3f77b[_0x319572('0x15')](_0x16cac9),_0xd3f77b[_0x319572('0x17')](_0x319572('0x35'),_0x4b6e3e+'-'+_0x840cb3+'/'+_0xc4a16f)[_0x319572('0xc')](_0x1b11c9);}return null;};}function saveUpdates(_0x14e0fa){return function(_0x2d9341){const _0x1806c3=a734_0x24fc;if(_0x2d9341)return _0x2d9341[_0x1806c3('0x19')](_0x14e0fa)['then'](function(_0xed6203){return _0xed6203;});return null;};}function removeEntity(_0x5948b3){return function(_0x11c090){const _0x47e5e6=a734_0x24fc;if(_0x11c090)return _0x11c090['destroy']()[_0x47e5e6('0x2d')](function(){const _0x559081=_0x47e5e6,_0x28987e=_0x11c090[_0x559081('0x32')]({'plain':!![]}),_0x268f2f=_0x559081('0x1f');return db['UserProfileResource'][_0x559081('0x10')]({'where':{'type':_0x268f2f,'resourceId':_0x28987e['id']}})['then'](function(){return _0x11c090;});})[_0x47e5e6('0x2d')](function(){const _0x27ce57=_0x47e5e6;_0x5948b3[_0x27ce57('0x15')](0xcc)[_0x27ce57('0xd')]();});};}function handleEntityNotFound(_0xd4581b){return function(_0x251f9f){const _0x1b7fc4=a734_0x24fc;return!_0x251f9f&&_0xd4581b[_0x1b7fc4('0x14')](0x194),_0x251f9f;};}function handleError(_0x1125ad,_0x1a8987){return _0x1a8987=_0x1a8987||0x1f4,function(_0x5f00e6){const _0x152639=a734_0x24fc;logger['error'](_0x5f00e6[_0x152639('0x2f')]),_0x5f00e6[_0x152639('0x13')]&&delete _0x5f00e6['name'],_0x1125ad[_0x152639('0x15')](_0x1a8987)[_0x152639('0x1d')](_0x5f00e6);};}exports['index']=function(_0x16afd5,_0x12d5ed){const _0x4ec286=_0x5eba9d;let _0x2dc57e={};const _0x16871b={},_0x54fcd6={'count':0x0,'rows':[]},_0x9f34e=_[_0x4ec286('0x1b')](db['VoiceMail'][_0x4ec286('0x6')],function(_0x4f00f5){const _0x273ab7=_0x4ec286;return{'name':_0x4f00f5[_0x273ab7('0xa')],'type':_0x4f00f5[_0x273ab7('0x30')][_0x273ab7('0x2')]};});_0x16871b[_0x4ec286('0xe')]=_[_0x4ec286('0x1b')](_0x9f34e,_0x4ec286('0x13')),_0x16871b[_0x4ec286('0xf')]=_[_0x4ec286('0x39')](_0x16afd5[_0x4ec286('0xf')]),_0x16871b['filters']=_[_0x4ec286('0x31')](_0x16871b['model'],_0x16871b[_0x4ec286('0xf')]),_0x2dc57e[_0x4ec286('0x26')]=_[_0x4ec286('0x31')](_0x16871b[_0x4ec286('0xe')],qs[_0x4ec286('0x21')](_0x16afd5[_0x4ec286('0xf')][_0x4ec286('0x21')])),_0x2dc57e[_0x4ec286('0x26')]=_0x2dc57e[_0x4ec286('0x26')]['length']?_0x2dc57e[_0x4ec286('0x26')]:_0x16871b[_0x4ec286('0xe')];typeof _0x16afd5[_0x4ec286('0xf')][_0x4ec286('0x28')]==='undefined'&&(_0x2dc57e[_0x4ec286('0x2c')]=qs[_0x4ec286('0x2c')](_0x16afd5[_0x4ec286('0xf')][_0x4ec286('0x2c')]),_0x2dc57e['offset']=qs[_0x4ec286('0x37')](_0x16afd5[_0x4ec286('0xf')][_0x4ec286('0x37')]));_0x2dc57e['order']=qs[_0x4ec286('0x0')](_0x16afd5[_0x4ec286('0xf')]['sort']),_0x2dc57e[_0x4ec286('0x1e')]=qs[_0x4ec286('0x1a')](_[_0x4ec286('0x3d')](_0x16afd5[_0x4ec286('0xf')],_0x16871b[_0x4ec286('0x1a')]),_0x9f34e);_0x16afd5[_0x4ec286('0xf')][_0x4ec286('0x11')]&&(_0x2dc57e[_0x4ec286('0x1e')]=_['merge'](_0x2dc57e['where'],{[Op['or']]:_[_0x4ec286('0x1b')](_0x9f34e,function(_0x3754e9){const _0x28cbc=_0x4ec286;if(_0x3754e9[_0x28cbc('0x30')]!=='VIRTUAL'){const _0x5d637b={};return _0x5d637b[_0x3754e9[_0x28cbc('0x13')]]={[Op[_0x28cbc('0x40')]]:'%'+_0x16afd5[_0x28cbc('0xf')][_0x28cbc('0x11')]+'%'},_0x5d637b;}})}));_0x2dc57e=_[_0x4ec286('0xb')]({},_0x2dc57e,_0x16afd5['options']);const _0x3a0c91={'where':_0x2dc57e[_0x4ec286('0x1e')]};return db['VoiceMail'][_0x4ec286('0x9')](_0x3a0c91)[_0x4ec286('0x2d')](function(_0x45a9b5){const _0x5af290=_0x4ec286;return _0x54fcd6['count']=_0x45a9b5,_0x16afd5[_0x5af290('0xf')][_0x5af290('0x12')]&&(_0x2dc57e[_0x5af290('0x25')]=[{'all':!![]}]),db[_0x5af290('0x3a')][_0x5af290('0x3f')](_0x2dc57e);})[_0x4ec286('0x2d')](function(_0x20ce15){const _0x40f87a=_0x4ec286;return _0x54fcd6[_0x40f87a('0x16')]=_0x20ce15,_0x54fcd6;})[_0x4ec286('0x2d')](respondWithFilteredResult(_0x12d5ed,_0x2dc57e))['catch'](handleError(_0x12d5ed,null));},exports[_0x5eba9d('0x38')]=function(_0x2035cf,_0x4ec91d){const _0x1d38eb=_0x5eba9d;let _0x3350b={'raw':!![],'where':{'id':_0x2035cf[_0x1d38eb('0x36')]['id']}};const _0x575106={};return _0x575106[_0x1d38eb('0xe')]=_[_0x1d38eb('0x39')](db[_0x1d38eb('0x3a')]['rawAttributes']),_0x575106[_0x1d38eb('0xf')]=_[_0x1d38eb('0x39')](_0x2035cf[_0x1d38eb('0xf')]),_0x575106[_0x1d38eb('0x1a')]=_[_0x1d38eb('0x31')](_0x575106[_0x1d38eb('0xe')],_0x575106['query']),_0x3350b[_0x1d38eb('0x26')]=_[_0x1d38eb('0x31')](_0x575106['model'],qs[_0x1d38eb('0x21')](_0x2035cf[_0x1d38eb('0xf')][_0x1d38eb('0x21')])),_0x3350b[_0x1d38eb('0x26')]=_0x3350b['attributes'][_0x1d38eb('0x1')]?_0x3350b[_0x1d38eb('0x26')]:_0x575106[_0x1d38eb('0xe')],_0x2035cf[_0x1d38eb('0xf')][_0x1d38eb('0x12')]&&(_0x3350b[_0x1d38eb('0x25')]=[{'all':!![]}]),_0x3350b=_['merge']({},_0x3350b,_0x2035cf['options']),db[_0x1d38eb('0x3a')][_0x1d38eb('0x3')](_0x3350b)[_0x1d38eb('0x2d')](handleEntityNotFound(_0x4ec91d,null))['then'](respondWithResult(_0x4ec91d,null))['catch'](handleError(_0x4ec91d,null));},exports[_0x5eba9d('0x34')]=function(_0xce2bd6,_0x286a9c){const _0x596f67=_0x5eba9d;return db[_0x596f67('0x3a')][_0x596f67('0x34')](_0xce2bd6[_0x596f67('0x2e')],{})[_0x596f67('0x2d')](function(_0x805915){const _0x4f46d9=_0x596f67,_0x4e161b=_0xce2bd6['user']['get']({'plain':!![]});if(!_0x4e161b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x4e161b[_0x4f46d9('0x8')]===_0x4f46d9('0x3e')){const _0x4dd6ed=_0x805915[_0x4f46d9('0x32')]({'plain':!![]}),_0x4df7d8=_0x4f46d9('0x1f');return db[_0x4f46d9('0x3b')][_0x4f46d9('0x3')]({'where':{'name':_0x4df7d8,'userProfileId':_0x4e161b[_0x4f46d9('0x22')]},'raw':!![]})['then'](function(_0x2348c2){const _0x2f1db8=_0x4f46d9;return _0x2348c2&&_0x2348c2['autoAssociation']===0x0?db[_0x2f1db8('0x23')][_0x2f1db8('0x34')]({'name':_0x4dd6ed[_0x2f1db8('0x13')],'resourceId':_0x4dd6ed['id'],'type':_0x2348c2[_0x2f1db8('0x13')],'sectionId':_0x2348c2['id']},{})[_0x2f1db8('0x2d')](function(){return _0x805915;}):_0x805915;})[_0x4f46d9('0x20')](function(_0x357924){const _0x5dcbd1=_0x4f46d9;logger[_0x5dcbd1('0x24')](_0x5dcbd1('0x2a'),_0x357924);throw _0x357924;});}return _0x805915;})['then'](respondWithResult(_0x286a9c,0xc9))[_0x596f67('0x20')](handleError(_0x286a9c,null));},exports[_0x5eba9d('0x19')]=function(_0x35f8fc,_0x1d11fa){const _0x16dd36=_0x5eba9d;return _0x35f8fc[_0x16dd36('0x2e')]['id']&&delete _0x35f8fc[_0x16dd36('0x2e')]['id'],db[_0x16dd36('0x3a')]['findOne']({'where':{'id':_0x35f8fc[_0x16dd36('0x36')]['id']}})[_0x16dd36('0x2d')](handleEntityNotFound(_0x1d11fa,null))[_0x16dd36('0x2d')](saveUpdates(_0x35f8fc[_0x16dd36('0x2e')],null))[_0x16dd36('0x2d')](respondWithResult(_0x1d11fa,null))[_0x16dd36('0x20')](handleError(_0x1d11fa,null));},exports[_0x5eba9d('0x10')]=function(_0x9bcb31,_0x385f03){const _0x53516e=_0x5eba9d;return db[_0x53516e('0x3a')][_0x53516e('0x3')]({'where':{'id':_0x9bcb31['params']['id']}})['then'](handleEntityNotFound(_0x385f03,null))[_0x53516e('0x2d')](removeEntity(_0x385f03,null))[_0x53516e('0x20')](handleError(_0x385f03,null));},exports[_0x5eba9d('0x5')]=function(_0x476a39,_0x379377){const _0x1cdb19=_0x5eba9d;return db[_0x1cdb19('0x3a')][_0x1cdb19('0x3')]({'where':{'id':_0x476a39['params']['id']}})[_0x1cdb19('0x2d')](handleEntityNotFound(_0x379377,null))[_0x1cdb19('0x2d')](function(_0x31530d){const _0xcfb3e4=_0x1cdb19;let _0x592d37={};const _0x85f131={};return _0x85f131[_0xcfb3e4('0xe')]=_[_0xcfb3e4('0x39')](db[_0xcfb3e4('0x29')][_0xcfb3e4('0x6')]),_0x85f131[_0xcfb3e4('0xf')]=_[_0xcfb3e4('0x39')](_0x476a39['query']),_0x85f131[_0xcfb3e4('0x1a')]=_['intersection'](_0x85f131[_0xcfb3e4('0xe')],_0x85f131[_0xcfb3e4('0xf')]),_0x592d37[_0xcfb3e4('0x26')]=_[_0xcfb3e4('0x31')](_0x85f131[_0xcfb3e4('0xe')],qs[_0xcfb3e4('0x21')](_0x476a39[_0xcfb3e4('0xf')][_0xcfb3e4('0x21')])),_0x592d37[_0xcfb3e4('0x26')]=_0x592d37[_0xcfb3e4('0x26')][_0xcfb3e4('0x1')]?_0x592d37[_0xcfb3e4('0x26')]:_0x85f131[_0xcfb3e4('0xe')],typeof _0x476a39[_0xcfb3e4('0xf')]['nolimit']==='undefined'&&(_0x592d37['limit']=qs['limit'](_0x476a39[_0xcfb3e4('0xf')][_0xcfb3e4('0x2c')]),_0x592d37[_0xcfb3e4('0x37')]=qs[_0xcfb3e4('0x37')](_0x476a39[_0xcfb3e4('0xf')][_0xcfb3e4('0x37')])),_0x592d37[_0xcfb3e4('0x4')]=qs[_0xcfb3e4('0x0')](_0x476a39[_0xcfb3e4('0xf')][_0xcfb3e4('0x0')]),_0x592d37[_0xcfb3e4('0x1e')]=qs[_0xcfb3e4('0x1a')](_['pick'](_0x476a39['query'],_0x85f131[_0xcfb3e4('0x1a')])),_0x476a39['query'][_0xcfb3e4('0x11')]&&(_0x592d37[_0xcfb3e4('0x1e')]=_[_0xcfb3e4('0xb')](_0x592d37[_0xcfb3e4('0x1e')],{[Op['or']]:_[_0xcfb3e4('0x1b')](_0x592d37[_0xcfb3e4('0x26')],function(_0x4a791d){const _0x3e08e1=_0xcfb3e4,_0x410156={};return _0x410156[_0x4a791d]={[Op[_0x3e08e1('0x40')]]:'%'+_0x476a39['query'][_0x3e08e1('0x11')]+'%'},_0x410156;})})),_0x592d37[_0xcfb3e4('0x1e')]=_[_0xcfb3e4('0xb')](_0x592d37[_0xcfb3e4('0x1e')],{'mailboxuser':_0x31530d[_0xcfb3e4('0x3c')]}),_0x592d37=_[_0xcfb3e4('0xb')]({},_0x592d37,_0x476a39[_0xcfb3e4('0x1c')]),db[_0xcfb3e4('0x29')][_0xcfb3e4('0x2b')](_0x592d37)[_0xcfb3e4('0x2d')](respondWithFilteredResult(_0x379377,_0x592d37));})['catch'](handleError(_0x379377,null));}; \ No newline at end of file +const a734_0x20f2=['map','includeAll','model','fieldName','body','where','role','sort','VoiceMail','findOne','VIRTUAL','pick','keys','like','json','UserProfileResource','Content-Range','params','user','merge','VoiceMailMessage','findAll','filter','error','index','query','sequelize','destroy','offset','key','filters','length','intersection','order','send','get','status','update','limit','../../components/parsers/qs','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','mailbox','then','Voicemails','userProfileId','sendStatus','include','options','name','stack','rawAttributes','fields','UserProfileSection','lodash','end','getMessages','attributes','catch','nolimit','count','create','type'];(function(_0x512f63,_0x20f29e){const _0x240296=function(_0x5e8591){while(--_0x5e8591){_0x512f63['push'](_0x512f63['shift']());}};_0x240296(++_0x20f29e);}(a734_0x20f2,0xc9));const a734_0x2402=function(_0x512f63,_0x20f29e){_0x512f63=_0x512f63-0x0;let _0x240296=a734_0x20f2[_0x512f63];return _0x240296;};const _0x2504a7=a734_0x2402;'use strict';const _=require(_0x2504a7('0x26')),qs=require(_0x2504a7('0x18')),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x2504a7('0xb'));function respondWithResult(_0x5e8591,_0x22b2c7){return _0x22b2c7=_0x22b2c7||0xc8,function(_0x2241bd){const _0x41a1c8=a734_0x2402;if(_0x2241bd)return _0x5e8591['status'](_0x22b2c7)[_0x41a1c8('0x3d')](_0x2241bd);};}function respondWithFilteredResult(_0x45b893,_0x2f7188){return function(_0x46db17){const _0x1c8d16=a734_0x2402;if(_0x46db17){const _0x2317a7=_0x46db17[_0x1c8d16('0x2c')],_0x13960d=_0x2f7188[_0x1c8d16('0xd')];let _0x383e92=_0x2f7188['offset']+_0x2f7188[_0x1c8d16('0x17')],_0x596da2;return _0x383e92>=_0x2317a7?(_0x383e92=_0x2317a7,_0x596da2=0xc8):_0x596da2=0xce,_0x45b893[_0x1c8d16('0x15')](_0x596da2),_0x45b893['set'](_0x1c8d16('0x1'),_0x13960d+'-'+_0x383e92+'/'+_0x2317a7)['json'](_0x46db17);}return null;};}function saveUpdates(_0x42429c){return function(_0x307ac1){const _0x358f71=a734_0x2402;if(_0x307ac1)return _0x307ac1[_0x358f71('0x16')](_0x42429c)[_0x358f71('0x1b')](function(_0x2230ba){return _0x2230ba;});return null;};}function removeEntity(_0x9acba3){return function(_0x67d1a2){const _0x5b5f09=a734_0x2402;if(_0x67d1a2)return _0x67d1a2[_0x5b5f09('0xc')]()['then'](function(){const _0x883f17=_0x5b5f09,_0x2f0b5e=_0x67d1a2[_0x883f17('0x14')]({'plain':!![]}),_0x55d99f=_0x883f17('0x1c');return db['UserProfileResource'][_0x883f17('0xc')]({'where':{'type':_0x55d99f,'resourceId':_0x2f0b5e['id']}})[_0x883f17('0x1b')](function(){return _0x67d1a2;});})[_0x5b5f09('0x1b')](function(){const _0x138a04=_0x5b5f09;_0x9acba3[_0x138a04('0x15')](0xcc)[_0x138a04('0x27')]();});};}function handleEntityNotFound(_0x5457d2){return function(_0xc5b35){const _0x5077a=a734_0x2402;return!_0xc5b35&&_0x5457d2[_0x5077a('0x1e')](0x194),_0xc5b35;};}function handleError(_0x1267c5,_0x33fb3f){return _0x33fb3f=_0x33fb3f||0x1f4,function(_0x65b005){const _0x54a8f2=a734_0x2402;logger[_0x54a8f2('0x8')](_0x65b005[_0x54a8f2('0x22')]),_0x65b005['name']&&delete _0x65b005[_0x54a8f2('0x21')],_0x1267c5[_0x54a8f2('0x15')](_0x33fb3f)[_0x54a8f2('0x13')](_0x65b005);};}exports[_0x2504a7('0x9')]=function(_0x22c1a7,_0x4543dc){const _0x410321=_0x2504a7;let _0x1cfbcf={};const _0x3349f9={},_0x382095={'count':0x0,'rows':[]},_0x5160d3=_[_0x410321('0x2f')](db[_0x410321('0x37')][_0x410321('0x23')],function(_0x3722c4){const _0x59ac27=_0x410321;return{'name':_0x3722c4[_0x59ac27('0x32')],'type':_0x3722c4[_0x59ac27('0x2e')][_0x59ac27('0xe')]};});_0x3349f9[_0x410321('0x31')]=_['map'](_0x5160d3,_0x410321('0x21')),_0x3349f9[_0x410321('0xa')]=_[_0x410321('0x3b')](_0x22c1a7[_0x410321('0xa')]),_0x3349f9[_0x410321('0xf')]=_[_0x410321('0x11')](_0x3349f9[_0x410321('0x31')],_0x3349f9[_0x410321('0xa')]),_0x1cfbcf[_0x410321('0x29')]=_[_0x410321('0x11')](_0x3349f9[_0x410321('0x31')],qs[_0x410321('0x24')](_0x22c1a7['query'][_0x410321('0x24')])),_0x1cfbcf['attributes']=_0x1cfbcf[_0x410321('0x29')][_0x410321('0x10')]?_0x1cfbcf['attributes']:_0x3349f9[_0x410321('0x31')];typeof _0x22c1a7[_0x410321('0xa')][_0x410321('0x2b')]==='undefined'&&(_0x1cfbcf[_0x410321('0x17')]=qs[_0x410321('0x17')](_0x22c1a7['query'][_0x410321('0x17')]),_0x1cfbcf[_0x410321('0xd')]=qs[_0x410321('0xd')](_0x22c1a7[_0x410321('0xa')][_0x410321('0xd')]));_0x1cfbcf[_0x410321('0x12')]=qs[_0x410321('0x36')](_0x22c1a7[_0x410321('0xa')][_0x410321('0x36')]),_0x1cfbcf[_0x410321('0x34')]=qs['filters'](_[_0x410321('0x3a')](_0x22c1a7[_0x410321('0xa')],_0x3349f9[_0x410321('0xf')]),_0x5160d3);_0x22c1a7['query']['filter']&&(_0x1cfbcf[_0x410321('0x34')]=_[_0x410321('0x4')](_0x1cfbcf[_0x410321('0x34')],{[Op['or']]:_[_0x410321('0x2f')](_0x5160d3,function(_0x2ecff3){const _0x2b9a7e=_0x410321;if(_0x2ecff3[_0x2b9a7e('0x2e')]!==_0x2b9a7e('0x39')){const _0x1698de={};return _0x1698de[_0x2ecff3[_0x2b9a7e('0x21')]]={[Op[_0x2b9a7e('0x3c')]]:'%'+_0x22c1a7[_0x2b9a7e('0xa')][_0x2b9a7e('0x7')]+'%'},_0x1698de;}})}));_0x1cfbcf=_[_0x410321('0x4')]({},_0x1cfbcf,_0x22c1a7['options']);const _0x59b099={'where':_0x1cfbcf[_0x410321('0x34')]};return db[_0x410321('0x37')]['count'](_0x59b099)[_0x410321('0x1b')](function(_0x4adfe3){const _0x1ef2d6=_0x410321;return _0x382095[_0x1ef2d6('0x2c')]=_0x4adfe3,_0x22c1a7['query'][_0x1ef2d6('0x30')]&&(_0x1cfbcf['include']=[{'all':!![]}]),db['VoiceMail'][_0x1ef2d6('0x6')](_0x1cfbcf);})['then'](function(_0x15e9ab){return _0x382095['rows']=_0x15e9ab,_0x382095;})['then'](respondWithFilteredResult(_0x4543dc,_0x1cfbcf))[_0x410321('0x2a')](handleError(_0x4543dc,null));},exports['show']=function(_0x49486d,_0x152afe){const _0x36c078=_0x2504a7;let _0x5b73bd={'raw':!![],'where':{'id':_0x49486d['params']['id']}};const _0x12f7c6={};return _0x12f7c6[_0x36c078('0x31')]=_[_0x36c078('0x3b')](db[_0x36c078('0x37')]['rawAttributes']),_0x12f7c6[_0x36c078('0xa')]=_[_0x36c078('0x3b')](_0x49486d['query']),_0x12f7c6[_0x36c078('0xf')]=_[_0x36c078('0x11')](_0x12f7c6['model'],_0x12f7c6['query']),_0x5b73bd['attributes']=_[_0x36c078('0x11')](_0x12f7c6[_0x36c078('0x31')],qs['fields'](_0x49486d['query'][_0x36c078('0x24')])),_0x5b73bd[_0x36c078('0x29')]=_0x5b73bd[_0x36c078('0x29')]['length']?_0x5b73bd[_0x36c078('0x29')]:_0x12f7c6[_0x36c078('0x31')],_0x49486d['query'][_0x36c078('0x30')]&&(_0x5b73bd[_0x36c078('0x1f')]=[{'all':!![]}]),_0x5b73bd=_['merge']({},_0x5b73bd,_0x49486d[_0x36c078('0x20')]),db['VoiceMail']['findOne'](_0x5b73bd)['then'](handleEntityNotFound(_0x152afe,null))['then'](respondWithResult(_0x152afe,null))[_0x36c078('0x2a')](handleError(_0x152afe,null));},exports[_0x2504a7('0x2d')]=function(_0xf7666d,_0x52cbba){const _0x623586=_0x2504a7;return db['VoiceMail'][_0x623586('0x2d')](_0xf7666d['body'],{})[_0x623586('0x1b')](function(_0x5cc505){const _0x350cea=_0x623586,_0x2d52f0=_0xf7666d['user'][_0x350cea('0x14')]({'plain':!![]});if(!_0x2d52f0)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2d52f0[_0x350cea('0x35')]===_0x350cea('0x3')){const _0xf2bdbe=_0x5cc505[_0x350cea('0x14')]({'plain':!![]}),_0x2e9294='Voicemails';return db[_0x350cea('0x25')][_0x350cea('0x38')]({'where':{'name':_0x2e9294,'userProfileId':_0x2d52f0[_0x350cea('0x1d')]},'raw':!![]})[_0x350cea('0x1b')](function(_0x2bc336){const _0x64f666=_0x350cea;return _0x2bc336&&_0x2bc336['autoAssociation']===0x0?db[_0x64f666('0x0')][_0x64f666('0x2d')]({'name':_0xf2bdbe[_0x64f666('0x21')],'resourceId':_0xf2bdbe['id'],'type':_0x2bc336['name'],'sectionId':_0x2bc336['id']},{})[_0x64f666('0x1b')](function(){return _0x5cc505;}):_0x5cc505;})[_0x350cea('0x2a')](function(_0x49233f){const _0x565f6d=_0x350cea;logger[_0x565f6d('0x8')](_0x565f6d('0x19'),_0x49233f);throw _0x49233f;});}return _0x5cc505;})[_0x623586('0x1b')](respondWithResult(_0x52cbba,0xc9))[_0x623586('0x2a')](handleError(_0x52cbba,null));},exports[_0x2504a7('0x16')]=function(_0x1dcb48,_0xc3bc20){const _0x489b68=_0x2504a7;return _0x1dcb48[_0x489b68('0x33')]['id']&&delete _0x1dcb48['body']['id'],db[_0x489b68('0x37')][_0x489b68('0x38')]({'where':{'id':_0x1dcb48['params']['id']}})[_0x489b68('0x1b')](handleEntityNotFound(_0xc3bc20,null))[_0x489b68('0x1b')](saveUpdates(_0x1dcb48[_0x489b68('0x33')],null))[_0x489b68('0x1b')](respondWithResult(_0xc3bc20,null))[_0x489b68('0x2a')](handleError(_0xc3bc20,null));},exports[_0x2504a7('0xc')]=function(_0x3700b0,_0x56e76e){const _0x21968b=_0x2504a7;return db[_0x21968b('0x37')]['findOne']({'where':{'id':_0x3700b0[_0x21968b('0x2')]['id']}})['then'](handleEntityNotFound(_0x56e76e,null))[_0x21968b('0x1b')](removeEntity(_0x56e76e,null))['catch'](handleError(_0x56e76e,null));},exports[_0x2504a7('0x28')]=function(_0x1cbd5a,_0x3b52e3){const _0x17ff2b=_0x2504a7;return db[_0x17ff2b('0x37')][_0x17ff2b('0x38')]({'where':{'id':_0x1cbd5a['params']['id']}})[_0x17ff2b('0x1b')](handleEntityNotFound(_0x3b52e3,null))[_0x17ff2b('0x1b')](function(_0x52ac1f){const _0x5e982e=_0x17ff2b;let _0x174a04={};const _0x4b916e={};return _0x4b916e[_0x5e982e('0x31')]=_[_0x5e982e('0x3b')](db[_0x5e982e('0x5')][_0x5e982e('0x23')]),_0x4b916e[_0x5e982e('0xa')]=_['keys'](_0x1cbd5a[_0x5e982e('0xa')]),_0x4b916e[_0x5e982e('0xf')]=_[_0x5e982e('0x11')](_0x4b916e[_0x5e982e('0x31')],_0x4b916e[_0x5e982e('0xa')]),_0x174a04['attributes']=_[_0x5e982e('0x11')](_0x4b916e[_0x5e982e('0x31')],qs[_0x5e982e('0x24')](_0x1cbd5a[_0x5e982e('0xa')][_0x5e982e('0x24')])),_0x174a04['attributes']=_0x174a04[_0x5e982e('0x29')][_0x5e982e('0x10')]?_0x174a04['attributes']:_0x4b916e[_0x5e982e('0x31')],typeof _0x1cbd5a[_0x5e982e('0xa')][_0x5e982e('0x2b')]==='undefined'&&(_0x174a04[_0x5e982e('0x17')]=qs['limit'](_0x1cbd5a[_0x5e982e('0xa')][_0x5e982e('0x17')]),_0x174a04[_0x5e982e('0xd')]=qs[_0x5e982e('0xd')](_0x1cbd5a[_0x5e982e('0xa')][_0x5e982e('0xd')])),_0x174a04['order']=qs['sort'](_0x1cbd5a['query'][_0x5e982e('0x36')]),_0x174a04[_0x5e982e('0x34')]=qs[_0x5e982e('0xf')](_[_0x5e982e('0x3a')](_0x1cbd5a[_0x5e982e('0xa')],_0x4b916e[_0x5e982e('0xf')])),_0x1cbd5a[_0x5e982e('0xa')][_0x5e982e('0x7')]&&(_0x174a04[_0x5e982e('0x34')]=_[_0x5e982e('0x4')](_0x174a04[_0x5e982e('0x34')],{[Op['or']]:_[_0x5e982e('0x2f')](_0x174a04['attributes'],function(_0x16b9fb){const _0x40c682=_0x5e982e,_0x29e2bb={};return _0x29e2bb[_0x16b9fb]={[Op[_0x40c682('0x3c')]]:'%'+_0x1cbd5a[_0x40c682('0xa')]['filter']+'%'},_0x29e2bb;})})),_0x174a04['where']=_[_0x5e982e('0x4')](_0x174a04[_0x5e982e('0x34')],{'mailboxuser':_0x52ac1f[_0x5e982e('0x1a')]}),_0x174a04=_[_0x5e982e('0x4')]({},_0x174a04,_0x1cbd5a[_0x5e982e('0x20')]),db[_0x5e982e('0x5')]['findAndCountAll'](_0x174a04)[_0x5e982e('0x1b')](respondWithFilteredResult(_0x3b52e3,_0x174a04));})[_0x17ff2b('0x2a')](handleError(_0x3b52e3,null));}; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.model.js b/server/api/voiceMail/voiceMail.model.js index 0d393cd..7494098 100644 --- a/server/api/voiceMail/voiceMail.model.js +++ b/server/api/voiceMail/voiceMail.model.js @@ -1 +1 @@ -const a735_0x4953=['context','mailbox','VoiceMail','./voiceMail.attributes','mailbox_context','exports'];(function(_0x3d5cc0,_0x4953f6){const _0x1e395f=function(_0x17ccea){while(--_0x17ccea){_0x3d5cc0['push'](_0x3d5cc0['shift']());}};_0x1e395f(++_0x4953f6);}(a735_0x4953,0xb4));const a735_0x1e39=function(_0x3d5cc0,_0x4953f6){_0x3d5cc0=_0x3d5cc0-0x0;let _0x1e395f=a735_0x4953[_0x3d5cc0];return _0x1e395f;};const _0x175a04=a735_0x1e39;'use strict';const attributes=require(_0x175a04('0x3'));module[_0x175a04('0x5')]=function(_0x17ccea){const _0x49b25a=_0x175a04,_0x38d614=_0x17ccea['define'](_0x49b25a('0x2'),attributes,{'tableName':'voice_voicemail','paranoid':![],'indexes':[{'name':_0x49b25a('0x4'),'fields':[_0x49b25a('0x1'),_0x49b25a('0x0')]}],'timestamps':!![]});return _0x38d614;}; \ No newline at end of file +const a735_0x1f39=['mailbox_context','VoiceMail','voice_voicemail','exports','context','./voiceMail.attributes','mailbox'];(function(_0x488051,_0x1f39f0){const _0x55c4d8=function(_0x289784){while(--_0x289784){_0x488051['push'](_0x488051['shift']());}};_0x55c4d8(++_0x1f39f0);}(a735_0x1f39,0x1b2));const a735_0x55c4=function(_0x488051,_0x1f39f0){_0x488051=_0x488051-0x0;let _0x55c4d8=a735_0x1f39[_0x488051];return _0x55c4d8;};const _0x3c96a7=a735_0x55c4;'use strict';const attributes=require(_0x3c96a7('0x5'));module[_0x3c96a7('0x3')]=function(_0x289784){const _0x331f6a=_0x3c96a7,_0x2aee25=_0x289784['define'](_0x331f6a('0x1'),attributes,{'tableName':_0x331f6a('0x2'),'paranoid':![],'indexes':[{'name':_0x331f6a('0x0'),'fields':[_0x331f6a('0x6'),_0x331f6a('0x4')]}],'timestamps':!![]});return _0x2aee25;}; \ No newline at end of file diff --git a/server/api/voiceMailMessage/index.js b/server/api/voiceMailMessage/index.js index 4888071..5fa9c4b 100644 --- a/server/api/voiceMailMessage/index.js +++ b/server/api/voiceMailMessage/index.js @@ -1 +1 @@ -const a736_0xc430=['../../components/auth/service','post','destroy','download','/:id','put','isAuthenticated','get','create','update','show','exports','Router','express','index'];(function(_0x25304c,_0xc43002){const _0x3df599=function(_0x314d09){while(--_0x314d09){_0x25304c['push'](_0x25304c['shift']());}};_0x3df599(++_0xc43002);}(a736_0xc430,0x124));const a736_0x3df5=function(_0x25304c,_0xc43002){_0x25304c=_0x25304c-0x0;let _0x3df599=a736_0xc430[_0x25304c];return _0x3df599;};const _0x41e0b3=a736_0x3df5;'use strict';const express=require(_0x41e0b3('0x6')),router=express[_0x41e0b3('0x5')](),auth=require(_0x41e0b3('0x8')),controller=require('./voiceMailMessage.controller');router['get']('/',auth[_0x41e0b3('0xe')](),controller[_0x41e0b3('0x7')]),router[_0x41e0b3('0x0')](_0x41e0b3('0xc'),auth[_0x41e0b3('0xe')](),controller[_0x41e0b3('0x3')]),router[_0x41e0b3('0x0')]('/:id/download',auth['isAuthenticated'](),controller[_0x41e0b3('0xb')]),router[_0x41e0b3('0x9')]('/',auth[_0x41e0b3('0xe')](),controller[_0x41e0b3('0x1')]),router[_0x41e0b3('0xd')]('/:id',auth[_0x41e0b3('0xe')](),controller[_0x41e0b3('0x2')]),router['delete']('/:id',auth[_0x41e0b3('0xe')](),controller[_0x41e0b3('0xa')]),module[_0x41e0b3('0x4')]=router; \ No newline at end of file +const a736_0x3830=['show','Router','express','index','update','delete','./voiceMailMessage.controller','../../components/auth/service','isAuthenticated','/:id/download','put','create','get','destroy','exports','/:id','post'];(function(_0x21a779,_0x38303d){const _0x3cdc6f=function(_0x31519f){while(--_0x31519f){_0x21a779['push'](_0x21a779['shift']());}};_0x3cdc6f(++_0x38303d);}(a736_0x3830,0x76));const a736_0x3cdc=function(_0x21a779,_0x38303d){_0x21a779=_0x21a779-0x0;let _0x3cdc6f=a736_0x3830[_0x21a779];return _0x3cdc6f;};const _0x433f49=a736_0x3cdc;'use strict';const express=require(_0x433f49('0x3')),router=express[_0x433f49('0x2')](),auth=require(_0x433f49('0x8')),controller=require(_0x433f49('0x7'));router[_0x433f49('0xd')]('/',auth[_0x433f49('0x9')](),controller[_0x433f49('0x4')]),router['get'](_0x433f49('0x10'),auth['isAuthenticated'](),controller[_0x433f49('0x1')]),router[_0x433f49('0xd')](_0x433f49('0xa'),auth[_0x433f49('0x9')](),controller['download']),router[_0x433f49('0x0')]('/',auth[_0x433f49('0x9')](),controller[_0x433f49('0xc')]),router[_0x433f49('0xb')]('/:id',auth[_0x433f49('0x9')](),controller[_0x433f49('0x5')]),router[_0x433f49('0x6')](_0x433f49('0x10'),auth[_0x433f49('0x9')](),controller[_0x433f49('0xe')]),module[_0x433f49('0xf')]=router; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.attributes.js b/server/api/voiceMailMessage/voiceMailMessage.attributes.js index 0999bfe..8f2678d 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.attributes.js +++ b/server/api/voiceMailMessage/voiceMailMessage.attributes.js @@ -1 +1 @@ -const a737_0x8aff=['STRING','BLOB','long','exports','INTEGER'];(function(_0xed8844,_0x8affa){const _0x53a421=function(_0x4f4096){while(--_0x4f4096){_0xed8844['push'](_0xed8844['shift']());}};_0x53a421(++_0x8affa);}(a737_0x8aff,0x11a));const a737_0x53a4=function(_0xed8844,_0x8affa){_0xed8844=_0xed8844-0x0;let _0x53a421=a737_0x8aff[_0xed8844];return _0x53a421;};const _0x301509=a737_0x53a4;'use strict';const Sequelize=require('sequelize');module[_0x301509('0x1')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(){return this['getDataValue']('id');}},'msgnum':{'type':Sequelize[_0x301509('0x2')](0xb),'defaultValue':0x0,'allowNull':![]},'dir':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'context':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'macrocontext':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'callerid':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'origtime':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'duration':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'mailboxuser':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'mailboxcontext':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'recording':{'type':Sequelize[_0x301509('0x4')](_0x301509('0x0')),'defaultValue':null},'flag':{'type':Sequelize['STRING'],'defaultValue':''},'msg_id':{'type':Sequelize[_0x301509('0x3')],'defaultValue':''},'stamp':{'type':'TIMESTAMP','allowNull':![]}}; \ No newline at end of file +const a737_0x553c=['TIMESTAMP','exports','STRING','long','VIRTUAL','getDataValue','sequelize','INTEGER'];(function(_0x3ddf34,_0x553c27){const _0x509a54=function(_0x2b68cd){while(--_0x2b68cd){_0x3ddf34['push'](_0x3ddf34['shift']());}};_0x509a54(++_0x553c27);}(a737_0x553c,0x106));const a737_0x509a=function(_0x3ddf34,_0x553c27){_0x3ddf34=_0x3ddf34-0x0;let _0x509a54=a737_0x553c[_0x3ddf34];return _0x509a54;};const _0x341d62=a737_0x509a;'use strict';const Sequelize=require(_0x341d62('0x0'));module[_0x341d62('0x3')]={'name':{'type':Sequelize[_0x341d62('0x6')],'get':function(){const _0x472ea5=_0x341d62;return this[_0x472ea5('0x7')]('id');}},'msgnum':{'type':Sequelize[_0x341d62('0x1')](0xb),'defaultValue':0x0,'allowNull':![]},'dir':{'type':Sequelize[_0x341d62('0x4')],'defaultValue':''},'context':{'type':Sequelize[_0x341d62('0x4')],'defaultValue':''},'macrocontext':{'type':Sequelize['STRING'],'defaultValue':''},'callerid':{'type':Sequelize[_0x341d62('0x4')],'defaultValue':''},'origtime':{'type':Sequelize[_0x341d62('0x4')],'defaultValue':''},'duration':{'type':Sequelize[_0x341d62('0x4')],'defaultValue':''},'mailboxuser':{'type':Sequelize['STRING'],'defaultValue':''},'mailboxcontext':{'type':Sequelize['STRING'],'defaultValue':''},'recording':{'type':Sequelize['BLOB'](_0x341d62('0x5')),'defaultValue':null},'flag':{'type':Sequelize[_0x341d62('0x4')],'defaultValue':''},'msg_id':{'type':Sequelize[_0x341d62('0x4')],'defaultValue':''},'stamp':{'type':_0x341d62('0x2'),'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.controller.js b/server/api/voiceMailMessage/voiceMailMessage.controller.js index bcd907c..d2d30c7 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.controller.js +++ b/server/api/voiceMailMessage/voiceMailMessage.controller.js @@ -1 +1 @@ -const a738_0x19e2=['undefined','offset','rawAttributes','lodash','rows','attachment','map','create','msg_id','findOne','attributes','show','download','send','where','includeAll','options','filters','body','../../config/logger','.wav\x22','differenceBy','fields','query','limit','then','attachment;\x20filename=\x22','VIRTUAL','sendStatus','end','Content-Disposition','type','status','intersection','params','fieldName','catch','filter','pick','json','index','sort','destroy','model','recording','VoiceMailMessage','keys','set','update','like','length','../../mysqldb','Sequelize','include','merge','count','name','VoiceMailMessage\x20not\x20found'];(function(_0x47b044,_0x19e287){const _0x3df536=function(_0x2ef9aa){while(--_0x2ef9aa){_0x47b044['push'](_0x47b044['shift']());}};_0x3df536(++_0x19e287);}(a738_0x19e2,0x110));const a738_0x3df5=function(_0x47b044,_0x19e287){_0x47b044=_0x47b044-0x0;let _0x3df536=a738_0x19e2[_0x47b044];return _0x3df536;};const _0x268a18=a738_0x3df5;'use strict';const _=require(_0x268a18('0x15')),qs=require('../../components/parsers/qs'),logger=require(_0x268a18('0x25'))('api'),db=require(_0x268a18('0xb'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2ef9aa,_0x475dae){return _0x475dae=_0x475dae||0xc8,function(_0x383b44){const _0xb8177d=a738_0x3df5;if(_0x383b44)return _0x2ef9aa[_0xb8177d('0x32')](_0x475dae)[_0xb8177d('0x39')](_0x383b44);};}function respondWithFilteredResult(_0x1a83cf,_0x5b3c19){return function(_0x447f8e){const _0x50e7ef=a738_0x3df5;if(_0x447f8e){const _0x493244=_0x447f8e['count'],_0x3cfbbf=_0x5b3c19[_0x50e7ef('0x13')];let _0x35148e=_0x5b3c19[_0x50e7ef('0x13')]+_0x5b3c19[_0x50e7ef('0x2a')],_0x4cee15;return _0x35148e>=_0x493244?(_0x35148e=_0x493244,_0x4cee15=0xc8):_0x4cee15=0xce,_0x1a83cf[_0x50e7ef('0x32')](_0x4cee15),_0x1a83cf['set']('Content-Range',_0x3cfbbf+'-'+_0x35148e+'/'+_0x493244)[_0x50e7ef('0x39')](_0x447f8e);}return null;};}function saveUpdates(_0x159746){return function(_0x2209d5){const _0x3ee3e8=a738_0x3df5;if(_0x2209d5)return _0x2209d5[_0x3ee3e8('0x8')](_0x159746)[_0x3ee3e8('0x2b')](function(_0xab06ef){return _0xab06ef;});return null;};}function removeEntity(_0x15ce7f){return function(_0x1b7bb7){const _0x597482=a738_0x3df5;if(_0x1b7bb7)return _0x1b7bb7[_0x597482('0x2')]()[_0x597482('0x2b')](function(){const _0x20af96=_0x597482;_0x15ce7f[_0x20af96('0x32')](0xcc)[_0x20af96('0x2f')]();});};}function handleEntityNotFound(_0x2ee7e2){return function(_0x4be7ad){const _0x3c2059=a738_0x3df5;return!_0x4be7ad&&_0x2ee7e2[_0x3c2059('0x2e')](0x194),_0x4be7ad;};}function handleError(_0x230af1,_0x41dcbc){return _0x41dcbc=_0x41dcbc||0x1f4,function(_0xb27267){const _0x40bf6e=a738_0x3df5;logger['error'](_0xb27267['stack']),_0xb27267['name']&&delete _0xb27267[_0x40bf6e('0x10')],_0x230af1[_0x40bf6e('0x32')](_0x41dcbc)[_0x40bf6e('0x1f')](_0xb27267);};}exports[_0x268a18('0x0')]=function(_0x38178d,_0x3b17f5){const _0x381b57=_0x268a18;let _0xa46cca={};const _0x44d482={},_0x1b1cbc={'count':0x0,'rows':[]},_0x1bc72f=_['map'](db['VoiceMailMessage'][_0x381b57('0x14')],function(_0x4922e1){const _0x553479=_0x381b57;return{'name':_0x4922e1[_0x553479('0x35')],'type':_0x4922e1[_0x553479('0x31')]['key']};});_0x44d482[_0x381b57('0x3')]=_[_0x381b57('0x27')](_['map'](_0x1bc72f,_0x381b57('0x10')),['name']),_0x44d482[_0x381b57('0x29')]=_[_0x381b57('0x6')](_0x38178d['query']),_0x44d482[_0x381b57('0x23')]=_[_0x381b57('0x33')](_0x44d482['model'],_0x44d482[_0x381b57('0x29')]),_0xa46cca['attributes']=_[_0x381b57('0x33')](_0x44d482[_0x381b57('0x3')],qs[_0x381b57('0x28')](_0x38178d[_0x381b57('0x29')][_0x381b57('0x28')])),_0xa46cca[_0x381b57('0x1c')]=_0xa46cca[_0x381b57('0x1c')]['length']?_0xa46cca[_0x381b57('0x1c')]:_0x44d482[_0x381b57('0x3')];typeof _0x38178d[_0x381b57('0x29')]['nolimit']===_0x381b57('0x12')&&(_0xa46cca[_0x381b57('0x2a')]=qs[_0x381b57('0x2a')](_0x38178d[_0x381b57('0x29')][_0x381b57('0x2a')]),_0xa46cca[_0x381b57('0x13')]=qs['offset'](_0x38178d[_0x381b57('0x29')][_0x381b57('0x13')]));_0xa46cca['order']=qs[_0x381b57('0x1')](_0x38178d['query']['sort']),_0xa46cca['where']=qs['filters'](_[_0x381b57('0x38')](_0x38178d[_0x381b57('0x29')],_0x44d482[_0x381b57('0x23')]),_0x1bc72f);_0x38178d['query'][_0x381b57('0x37')]&&(_0xa46cca[_0x381b57('0x20')]=_['merge'](_0xa46cca['where'],{[Op['or']]:_[_0x381b57('0x18')](_0x1bc72f,function(_0x4403c0){const _0x57dfa5=_0x381b57;if(_0x4403c0[_0x57dfa5('0x31')]!==_0x57dfa5('0x2d')){const _0x4fd3f7={};return _0x4fd3f7[_0x4403c0[_0x57dfa5('0x10')]]={[Op[_0x57dfa5('0x9')]]:'%'+_0x38178d[_0x57dfa5('0x29')][_0x57dfa5('0x37')]+'%'},_0x4fd3f7;}})}));_0xa46cca=_[_0x381b57('0xe')]({},_0xa46cca,_0x38178d['options']);const _0x34d0f4={'where':_0xa46cca[_0x381b57('0x20')]};return db['VoiceMailMessage'][_0x381b57('0xf')](_0x34d0f4)[_0x381b57('0x2b')](function(_0xab8cce){const _0x4e4801=_0x381b57;return _0x1b1cbc[_0x4e4801('0xf')]=_0xab8cce,_0x38178d['query'][_0x4e4801('0x21')]&&(_0xa46cca[_0x4e4801('0xd')]=[{'all':!![]}]),db[_0x4e4801('0x5')]['findAll'](_0xa46cca);})[_0x381b57('0x2b')](function(_0x1c6ba6){const _0x3377f9=_0x381b57;return _0x1b1cbc[_0x3377f9('0x16')]=_0x1c6ba6,_0x1b1cbc;})['then'](respondWithFilteredResult(_0x3b17f5,_0xa46cca))['catch'](handleError(_0x3b17f5,null));},exports[_0x268a18('0x1d')]=function(_0x316c35,_0x42f1f0){const _0x44a565=_0x268a18;let _0x3a2158={'raw':!![],'where':{'id':_0x316c35[_0x44a565('0x34')]['id']}};const _0x5291df={};return _0x5291df['model']=_[_0x44a565('0x6')](db[_0x44a565('0x5')][_0x44a565('0x14')]),_0x5291df[_0x44a565('0x29')]=_['keys'](_0x316c35[_0x44a565('0x29')]),_0x5291df['filters']=_[_0x44a565('0x33')](_0x5291df[_0x44a565('0x3')],_0x5291df[_0x44a565('0x29')]),_0x3a2158[_0x44a565('0x1c')]=_[_0x44a565('0x33')](_0x5291df['model'],qs[_0x44a565('0x28')](_0x316c35[_0x44a565('0x29')][_0x44a565('0x28')])),_0x3a2158['attributes']=_0x3a2158['attributes'][_0x44a565('0xa')]?_0x3a2158[_0x44a565('0x1c')]:_0x5291df['model'],_0x316c35[_0x44a565('0x29')][_0x44a565('0x21')]&&(_0x3a2158['include']=[{'all':!![]}]),_0x3a2158=_[_0x44a565('0xe')]({},_0x3a2158,_0x316c35[_0x44a565('0x22')]),db['VoiceMailMessage'][_0x44a565('0x1b')](_0x3a2158)[_0x44a565('0x2b')](handleEntityNotFound(_0x42f1f0,null))[_0x44a565('0x2b')](respondWithResult(_0x42f1f0,null))[_0x44a565('0x36')](handleError(_0x42f1f0,null));},exports[_0x268a18('0x19')]=function(_0x5029c7,_0x27fd9f){const _0x5f4738=_0x268a18;return db['VoiceMailMessage'][_0x5f4738('0x19')](_0x5029c7[_0x5f4738('0x24')],{})[_0x5f4738('0x2b')](respondWithResult(_0x27fd9f,0xc9))[_0x5f4738('0x36')](handleError(_0x27fd9f,null));},exports[_0x268a18('0x8')]=function(_0x391635,_0x2ae774){const _0x461ee9=_0x268a18;return _0x391635[_0x461ee9('0x24')]['id']&&delete _0x391635['body']['id'],db['VoiceMailMessage'][_0x461ee9('0x1b')]({'where':{'id':_0x391635[_0x461ee9('0x34')]['id']}})[_0x461ee9('0x2b')](handleEntityNotFound(_0x2ae774,null))[_0x461ee9('0x2b')](saveUpdates(_0x391635[_0x461ee9('0x24')],null))[_0x461ee9('0x2b')](respondWithResult(_0x2ae774,null))[_0x461ee9('0x36')](handleError(_0x2ae774,null));},exports[_0x268a18('0x2')]=function(_0x7196cf,_0x388f82){const _0x513721=_0x268a18;return db['VoiceMailMessage']['findOne']({'where':{'id':_0x7196cf['params']['id']}})[_0x513721('0x2b')](handleEntityNotFound(_0x388f82,null))[_0x513721('0x2b')](removeEntity(_0x388f82,null))[_0x513721('0x36')](handleError(_0x388f82,null));},exports[_0x268a18('0x1e')]=function(_0x610e52,_0x1dfbbb){const _0x19e141=_0x268a18;return db[_0x19e141('0x5')][_0x19e141('0x1b')]({'where':{'id':_0x610e52[_0x19e141('0x34')]['id']},'attributes':['id',_0x19e141('0x4'),_0x19e141('0x1a')]})['then'](handleEntityNotFound(_0x1dfbbb,null))[_0x19e141('0x2b')](function(_0x85080){const _0x16dd5c=_0x19e141;if(_0x85080){if(!_0x85080[_0x16dd5c('0x4')])throw new db[(_0x16dd5c('0xc'))]['ValidationError'](_0x16dd5c('0x11'));const _0x302502={'Content-Type':'audio/wav','Content-Disposition':_0x16dd5c('0x17')};return _0x85080[_0x16dd5c('0x1a')]&&(_0x302502[_0x16dd5c('0x30')]=_0x16dd5c('0x2c')+_0x85080['msg_id']+_0x16dd5c('0x26')),_0x1dfbbb[_0x16dd5c('0x7')](_0x302502),_0x1dfbbb[_0x16dd5c('0x1f')](Buffer['from'](_0x85080[_0x16dd5c('0x4')]));}})[_0x19e141('0x36')](handleError(_0x1dfbbb,null));}; \ No newline at end of file +const a738_0x4302=['map','fields','findAll','filter','fieldName','order','then','stack','status','merge','Sequelize','VIRTUAL','../../config/logger','key','api','options','msg_id','VoiceMailMessage','like','where','json','create','nolimit','count','from','limit','Content-Range','attributes','includeAll','../../components/parsers/qs','sendStatus','show','attachment','index','audio/wav','rows','ValidationError','include','recording','intersection','keys','type','body','download','lodash','name','query','sort','pick','.wav\x22','filters','set','offset','findOne','differenceBy','model','update','params','destroy','../../mysqldb','catch','VoiceMailMessage\x20not\x20found','rawAttributes'];(function(_0x391b9c,_0x430289){const _0x2de281=function(_0x284634){while(--_0x284634){_0x391b9c['push'](_0x391b9c['shift']());}};_0x2de281(++_0x430289);}(a738_0x4302,0xaf));const a738_0x2de2=function(_0x391b9c,_0x430289){_0x391b9c=_0x391b9c-0x0;let _0x2de281=a738_0x4302[_0x391b9c];return _0x2de281;};const _0x34c803=a738_0x2de2;'use strict';const _=require(_0x34c803('0x3a')),qs=require(_0x34c803('0x2b')),logger=require(_0x34c803('0x1a'))(_0x34c803('0x1c')),db=require(_0x34c803('0xa'))['db'],{Op}=require('sequelize');function respondWithResult(_0x284634,_0x1074f8){return _0x1074f8=_0x1074f8||0xc8,function(_0x5e1f0d){const _0x8d4f25=a738_0x2de2;if(_0x5e1f0d)return _0x284634[_0x8d4f25('0x16')](_0x1074f8)[_0x8d4f25('0x22')](_0x5e1f0d);};}function respondWithFilteredResult(_0x5398cc,_0x5c8b9d){return function(_0x1ea0de){const _0x36bd9d=a738_0x2de2;if(_0x1ea0de){const _0x2ce7d2=_0x1ea0de[_0x36bd9d('0x25')],_0x2b487c=_0x5c8b9d['offset'];let _0x2121a3=_0x5c8b9d['offset']+_0x5c8b9d[_0x36bd9d('0x27')],_0x4a533d;return _0x2121a3>=_0x2ce7d2?(_0x2121a3=_0x2ce7d2,_0x4a533d=0xc8):_0x4a533d=0xce,_0x5398cc[_0x36bd9d('0x16')](_0x4a533d),_0x5398cc[_0x36bd9d('0x2')](_0x36bd9d('0x28'),_0x2b487c+'-'+_0x2121a3+'/'+_0x2ce7d2)[_0x36bd9d('0x22')](_0x1ea0de);}return null;};}function saveUpdates(_0x468d2f){return function(_0x4cf153){const _0x5f3f29=a738_0x2de2;if(_0x4cf153)return _0x4cf153[_0x5f3f29('0x7')](_0x468d2f)[_0x5f3f29('0x14')](function(_0x49d4d9){return _0x49d4d9;});return null;};}function removeEntity(_0x3e687c){return function(_0x2495cb){const _0x1cc9e3=a738_0x2de2;if(_0x2495cb)return _0x2495cb[_0x1cc9e3('0x9')]()['then'](function(){const _0x4168c0=_0x1cc9e3;_0x3e687c[_0x4168c0('0x16')](0xcc)['end']();});};}function handleEntityNotFound(_0x42bfbe){return function(_0x2101c5){const _0x55c41c=a738_0x2de2;return!_0x2101c5&&_0x42bfbe[_0x55c41c('0x2c')](0x194),_0x2101c5;};}function handleError(_0xb9cf39,_0x4599f8){return _0x4599f8=_0x4599f8||0x1f4,function(_0x25bf01){const _0x3889a9=a738_0x2de2;logger['error'](_0x25bf01[_0x3889a9('0x15')]),_0x25bf01[_0x3889a9('0x3b')]&&delete _0x25bf01[_0x3889a9('0x3b')],_0xb9cf39[_0x3889a9('0x16')](_0x4599f8)['send'](_0x25bf01);};}exports[_0x34c803('0x2f')]=function(_0x4c4281,_0x1e640b){const _0x390b96=_0x34c803;let _0x5cd0b0={};const _0x445e85={},_0x15619c={'count':0x0,'rows':[]},_0x8b4fa0=_['map'](db['VoiceMailMessage'][_0x390b96('0xd')],function(_0x1368b0){const _0x14f765=_0x390b96;return{'name':_0x1368b0[_0x14f765('0x12')],'type':_0x1368b0[_0x14f765('0x37')][_0x14f765('0x1b')]};});_0x445e85['model']=_[_0x390b96('0x5')](_[_0x390b96('0xe')](_0x8b4fa0,_0x390b96('0x3b')),[_0x390b96('0x3b')]),_0x445e85[_0x390b96('0x3c')]=_[_0x390b96('0x36')](_0x4c4281[_0x390b96('0x3c')]),_0x445e85[_0x390b96('0x1')]=_['intersection'](_0x445e85[_0x390b96('0x6')],_0x445e85[_0x390b96('0x3c')]),_0x5cd0b0[_0x390b96('0x29')]=_[_0x390b96('0x35')](_0x445e85[_0x390b96('0x6')],qs[_0x390b96('0xf')](_0x4c4281[_0x390b96('0x3c')][_0x390b96('0xf')])),_0x5cd0b0[_0x390b96('0x29')]=_0x5cd0b0[_0x390b96('0x29')]['length']?_0x5cd0b0[_0x390b96('0x29')]:_0x445e85['model'];typeof _0x4c4281[_0x390b96('0x3c')][_0x390b96('0x24')]==='undefined'&&(_0x5cd0b0[_0x390b96('0x27')]=qs[_0x390b96('0x27')](_0x4c4281[_0x390b96('0x3c')][_0x390b96('0x27')]),_0x5cd0b0[_0x390b96('0x3')]=qs['offset'](_0x4c4281['query'][_0x390b96('0x3')]));_0x5cd0b0[_0x390b96('0x13')]=qs[_0x390b96('0x3d')](_0x4c4281[_0x390b96('0x3c')][_0x390b96('0x3d')]),_0x5cd0b0['where']=qs[_0x390b96('0x1')](_[_0x390b96('0x3e')](_0x4c4281['query'],_0x445e85[_0x390b96('0x1')]),_0x8b4fa0);_0x4c4281['query']['filter']&&(_0x5cd0b0[_0x390b96('0x21')]=_[_0x390b96('0x17')](_0x5cd0b0[_0x390b96('0x21')],{[Op['or']]:_[_0x390b96('0xe')](_0x8b4fa0,function(_0x2ff953){const _0x478651=_0x390b96;if(_0x2ff953[_0x478651('0x37')]!==_0x478651('0x19')){const _0x30a435={};return _0x30a435[_0x2ff953[_0x478651('0x3b')]]={[Op[_0x478651('0x20')]]:'%'+_0x4c4281[_0x478651('0x3c')][_0x478651('0x11')]+'%'},_0x30a435;}})}));_0x5cd0b0=_['merge']({},_0x5cd0b0,_0x4c4281['options']);const _0x5eb937={'where':_0x5cd0b0[_0x390b96('0x21')]};return db[_0x390b96('0x1f')][_0x390b96('0x25')](_0x5eb937)['then'](function(_0x2d554f){const _0x82ba76=_0x390b96;return _0x15619c['count']=_0x2d554f,_0x4c4281[_0x82ba76('0x3c')][_0x82ba76('0x2a')]&&(_0x5cd0b0[_0x82ba76('0x33')]=[{'all':!![]}]),db[_0x82ba76('0x1f')][_0x82ba76('0x10')](_0x5cd0b0);})[_0x390b96('0x14')](function(_0x469729){const _0xf3611c=_0x390b96;return _0x15619c[_0xf3611c('0x31')]=_0x469729,_0x15619c;})[_0x390b96('0x14')](respondWithFilteredResult(_0x1e640b,_0x5cd0b0))[_0x390b96('0xb')](handleError(_0x1e640b,null));},exports[_0x34c803('0x2d')]=function(_0x15ccb6,_0x2e7576){const _0x16e3f7=_0x34c803;let _0x4b8a3d={'raw':!![],'where':{'id':_0x15ccb6[_0x16e3f7('0x8')]['id']}};const _0x503dee={};return _0x503dee[_0x16e3f7('0x6')]=_['keys'](db[_0x16e3f7('0x1f')]['rawAttributes']),_0x503dee[_0x16e3f7('0x3c')]=_['keys'](_0x15ccb6[_0x16e3f7('0x3c')]),_0x503dee['filters']=_[_0x16e3f7('0x35')](_0x503dee[_0x16e3f7('0x6')],_0x503dee[_0x16e3f7('0x3c')]),_0x4b8a3d['attributes']=_[_0x16e3f7('0x35')](_0x503dee[_0x16e3f7('0x6')],qs['fields'](_0x15ccb6['query'][_0x16e3f7('0xf')])),_0x4b8a3d[_0x16e3f7('0x29')]=_0x4b8a3d['attributes']['length']?_0x4b8a3d[_0x16e3f7('0x29')]:_0x503dee['model'],_0x15ccb6[_0x16e3f7('0x3c')]['includeAll']&&(_0x4b8a3d[_0x16e3f7('0x33')]=[{'all':!![]}]),_0x4b8a3d=_[_0x16e3f7('0x17')]({},_0x4b8a3d,_0x15ccb6[_0x16e3f7('0x1d')]),db['VoiceMailMessage'][_0x16e3f7('0x4')](_0x4b8a3d)[_0x16e3f7('0x14')](handleEntityNotFound(_0x2e7576,null))[_0x16e3f7('0x14')](respondWithResult(_0x2e7576,null))['catch'](handleError(_0x2e7576,null));},exports[_0x34c803('0x23')]=function(_0x553df4,_0x2845bf){const _0x2c9c8e=_0x34c803;return db[_0x2c9c8e('0x1f')][_0x2c9c8e('0x23')](_0x553df4['body'],{})[_0x2c9c8e('0x14')](respondWithResult(_0x2845bf,0xc9))[_0x2c9c8e('0xb')](handleError(_0x2845bf,null));},exports[_0x34c803('0x7')]=function(_0x1f76ba,_0x40f1d3){const _0x166701=_0x34c803;return _0x1f76ba[_0x166701('0x38')]['id']&&delete _0x1f76ba['body']['id'],db[_0x166701('0x1f')][_0x166701('0x4')]({'where':{'id':_0x1f76ba[_0x166701('0x8')]['id']}})['then'](handleEntityNotFound(_0x40f1d3,null))[_0x166701('0x14')](saveUpdates(_0x1f76ba[_0x166701('0x38')],null))[_0x166701('0x14')](respondWithResult(_0x40f1d3,null))['catch'](handleError(_0x40f1d3,null));},exports['destroy']=function(_0x52c05c,_0x930b72){const _0x1e5cfe=_0x34c803;return db[_0x1e5cfe('0x1f')][_0x1e5cfe('0x4')]({'where':{'id':_0x52c05c[_0x1e5cfe('0x8')]['id']}})['then'](handleEntityNotFound(_0x930b72,null))[_0x1e5cfe('0x14')](removeEntity(_0x930b72,null))['catch'](handleError(_0x930b72,null));},exports[_0x34c803('0x39')]=function(_0x492783,_0x5dd43c){const _0x35a325=_0x34c803;return db[_0x35a325('0x1f')]['findOne']({'where':{'id':_0x492783[_0x35a325('0x8')]['id']},'attributes':['id',_0x35a325('0x34'),'msg_id']})[_0x35a325('0x14')](handleEntityNotFound(_0x5dd43c,null))['then'](function(_0x4f2f7a){const _0x31dc94=_0x35a325;if(_0x4f2f7a){if(!_0x4f2f7a['recording'])throw new db[(_0x31dc94('0x18'))][(_0x31dc94('0x32'))](_0x31dc94('0xc'));const _0x53c891={'Content-Type':_0x31dc94('0x30'),'Content-Disposition':_0x31dc94('0x2e')};return _0x4f2f7a['msg_id']&&(_0x53c891['Content-Disposition']='attachment;\x20filename=\x22'+_0x4f2f7a[_0x31dc94('0x1e')]+_0x31dc94('0x0')),_0x5dd43c[_0x31dc94('0x2')](_0x53c891),_0x5dd43c['send'](Buffer[_0x31dc94('0x26')](_0x4f2f7a[_0x31dc94('0x34')]));}})['catch'](handleError(_0x5dd43c,null));}; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.model.js b/server/api/voiceMailMessage/voiceMailMessage.model.js index 31e1ae3..29fa5fb 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.model.js +++ b/server/api/voiceMailMessage/voiceMailMessage.model.js @@ -1 +1 @@ -const a739_0x16e5=['./voiceMailMessage.attributes','exports','define','dir','VoiceMailMessage'];(function(_0x330d5d,_0x16e565){const _0x6257dd=function(_0x16374e){while(--_0x16374e){_0x330d5d['push'](_0x330d5d['shift']());}};_0x6257dd(++_0x16e565);}(a739_0x16e5,0xe8));const a739_0x6257=function(_0x330d5d,_0x16e565){_0x330d5d=_0x330d5d-0x0;let _0x6257dd=a739_0x16e5[_0x330d5d];return _0x6257dd;};const _0x35bcbb=a739_0x6257;'use strict';const attributes=require(_0x35bcbb('0x3'));module[_0x35bcbb('0x4')]=function(_0x16374e){const _0x20d00e=_0x35bcbb,_0x5222e2=_0x16374e[_0x20d00e('0x0')](_0x20d00e('0x2'),attributes,{'tableName':'voice_voicemail_messages','paranoid':![],'indexes':[{'name':_0x20d00e('0x1'),'fields':[_0x20d00e('0x1')]}],'timestamps':![]});return _0x5222e2;}; \ No newline at end of file +const a739_0x1422=['./voiceMailMessage.attributes','exports','dir','define','VoiceMailMessage'];(function(_0x21695e,_0x1422df){const _0x33a564=function(_0x55394e){while(--_0x55394e){_0x21695e['push'](_0x21695e['shift']());}};_0x33a564(++_0x1422df);}(a739_0x1422,0xd7));const a739_0x33a5=function(_0x21695e,_0x1422df){_0x21695e=_0x21695e-0x0;let _0x33a564=a739_0x1422[_0x21695e];return _0x33a564;};const _0xaac69d=a739_0x33a5;'use strict';const attributes=require(_0xaac69d('0x0'));module[_0xaac69d('0x1')]=function(_0x55394e){const _0x2dc29f=_0xaac69d,_0x37c77f=_0x55394e[_0x2dc29f('0x3')](_0x2dc29f('0x4'),attributes,{'tableName':'voice_voicemail_messages','paranoid':![],'indexes':[{'name':_0x2dc29f('0x2'),'fields':[_0x2dc29f('0x2')]}],'timestamps':![]});return _0x37c77f;}; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/index.js b/server/api/voiceMusicOnHold/index.js index 48ec4e6..0b96bb2 100644 --- a/server/api/voiceMusicOnHold/index.js +++ b/server/api/voiceMusicOnHold/index.js @@ -1 +1 @@ -const a740_0x4b1c=['show','index','removeSound','express','post','addSound','destroy','isAuthenticated','getSounds','./voiceMusicOnHold.controller','/:id','get','exports','delete','../../components/auth/service','/:id/sounds/:id2','/:id/sounds'];(function(_0x1c3dc4,_0x4b1c85){const _0x9b0af0=function(_0x33e840){while(--_0x33e840){_0x1c3dc4['push'](_0x1c3dc4['shift']());}};_0x9b0af0(++_0x4b1c85);}(a740_0x4b1c,0x190));const a740_0x9b0a=function(_0x1c3dc4,_0x4b1c85){_0x1c3dc4=_0x1c3dc4-0x0;let _0x9b0af0=a740_0x4b1c[_0x1c3dc4];return _0x9b0af0;};const _0x26fe24=a740_0x9b0a;'use strict';const express=require(_0x26fe24('0xb')),router=express['Router'](),auth=require(_0x26fe24('0x5')),controller=require(_0x26fe24('0x0'));router[_0x26fe24('0x2')]('/',auth[_0x26fe24('0xf')](),controller[_0x26fe24('0x9')]),router[_0x26fe24('0x2')](_0x26fe24('0x1'),auth[_0x26fe24('0xf')](),controller[_0x26fe24('0x8')]),router[_0x26fe24('0x2')]('/:id/sounds',auth[_0x26fe24('0xf')](),controller[_0x26fe24('0x10')]),router['post']('/',auth[_0x26fe24('0xf')](),controller['create']),router[_0x26fe24('0xc')](_0x26fe24('0x7'),auth[_0x26fe24('0xf')](),controller[_0x26fe24('0xd')]),router['put'](_0x26fe24('0x1'),auth[_0x26fe24('0xf')](),controller['update']),router[_0x26fe24('0x4')](_0x26fe24('0x1'),auth[_0x26fe24('0xf')](),controller[_0x26fe24('0xe')]),router[_0x26fe24('0x4')](_0x26fe24('0x6'),auth[_0x26fe24('0xf')](),controller[_0x26fe24('0xa')]),module[_0x26fe24('0x3')]=router; \ No newline at end of file +const a740_0x394a=['addSound','destroy','put','show','isAuthenticated','/:id/sounds','Router','../../components/auth/service','get','removeSound','post','getSounds','express','update','delete','/:id','exports','create'];(function(_0x75b40,_0x394a0d){const _0x2838a5=function(_0x42233f){while(--_0x42233f){_0x75b40['push'](_0x75b40['shift']());}};_0x2838a5(++_0x394a0d);}(a740_0x394a,0xf4));const a740_0x2838=function(_0x75b40,_0x394a0d){_0x75b40=_0x75b40-0x0;let _0x2838a5=a740_0x394a[_0x75b40];return _0x2838a5;};const _0x410d1a=a740_0x2838;'use strict';const express=require(_0x410d1a('0x2')),router=express[_0x410d1a('0xe')](),auth=require(_0x410d1a('0xf')),controller=require('./voiceMusicOnHold.controller');router['get']('/',auth[_0x410d1a('0xc')](),controller['index']),router[_0x410d1a('0x10')]('/:id',auth[_0x410d1a('0xc')](),controller[_0x410d1a('0xb')]),router[_0x410d1a('0x10')](_0x410d1a('0xd'),auth[_0x410d1a('0xc')](),controller[_0x410d1a('0x1')]),router[_0x410d1a('0x0')]('/',auth[_0x410d1a('0xc')](),controller[_0x410d1a('0x7')]),router[_0x410d1a('0x0')](_0x410d1a('0xd'),auth['isAuthenticated'](),controller[_0x410d1a('0x8')]),router[_0x410d1a('0xa')]('/:id',auth[_0x410d1a('0xc')](),controller[_0x410d1a('0x3')]),router[_0x410d1a('0x4')](_0x410d1a('0x5'),auth[_0x410d1a('0xc')](),controller[_0x410d1a('0x9')]),router[_0x410d1a('0x4')]('/:id/sounds/:id2',auth[_0x410d1a('0xc')](),controller[_0x410d1a('0x11')]),module[_0x410d1a('0x6')]=router; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js index f5f89de..6375479 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js @@ -1 +1 @@ -const a741_0x353f=['sequelize','files','exports','quietmp3','custom','ENUM','STRING','BOOLEAN','alpha','name'];(function(_0x31bfe2,_0x353f98){const _0x40a04b=function(_0x1ceb70){while(--_0x1ceb70){_0x31bfe2['push'](_0x31bfe2['shift']());}};_0x40a04b(++_0x353f98);}(a741_0x353f,0x78));const a741_0x40a0=function(_0x31bfe2,_0x353f98){_0x31bfe2=_0x31bfe2-0x0;let _0x40a04b=a741_0x353f[_0x31bfe2];return _0x40a04b;};const _0x274516=a741_0x40a0;'use strict';const Sequelize=require(_0x274516('0x0'));module[_0x274516('0x2')]={'name':{'type':Sequelize[_0x274516('0x6')],'allowNull':![],'unique':_0x274516('0x9')},'mode':{'type':Sequelize[_0x274516('0x5')](_0x274516('0x4'),_0x274516('0x1'),'mp3nb','quietmp3nb',_0x274516('0x3'),'mp3'),'allowNull':!![],'defaultValue':'files'},'directory':{'type':Sequelize[_0x274516('0x6')],'allowNull':!![]},'application':{'type':Sequelize[_0x274516('0x6')],'allowNull':!![]},'digit':{'type':Sequelize[_0x274516('0x6')],'allowNull':!![]},'sort':{'type':Sequelize[_0x274516('0x6')],'allowNull':!![],'defaultValue':_0x274516('0x8')},'format':{'type':Sequelize['STRING'],'allowNull':!![]},'stamp':{'type':'TIMESTAMP'},'defaultEntry':{'type':Sequelize[_0x274516('0x7')],'defaultValue':0x0}}; \ No newline at end of file +const a741_0x1601=['mp3','BOOLEAN','quietmp3nb','TIMESTAMP','alpha','mp3nb','STRING','custom','quietmp3','exports'];(function(_0x65eb64,_0x16017e){const _0x27b518=function(_0x4af970){while(--_0x4af970){_0x65eb64['push'](_0x65eb64['shift']());}};_0x27b518(++_0x16017e);}(a741_0x1601,0x122));const a741_0x27b5=function(_0x65eb64,_0x16017e){_0x65eb64=_0x65eb64-0x0;let _0x27b518=a741_0x1601[_0x65eb64];return _0x27b518;};const _0x43f3a4=a741_0x27b5;'use strict';const Sequelize=require('sequelize');module[_0x43f3a4('0x9')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':'name'},'mode':{'type':Sequelize['ENUM'](_0x43f3a4('0x7'),'files',_0x43f3a4('0x5'),_0x43f3a4('0x2'),_0x43f3a4('0x8'),_0x43f3a4('0x0')),'allowNull':!![],'defaultValue':'files'},'directory':{'type':Sequelize['STRING'],'allowNull':!![]},'application':{'type':Sequelize[_0x43f3a4('0x6')],'allowNull':!![]},'digit':{'type':Sequelize[_0x43f3a4('0x6')],'allowNull':!![]},'sort':{'type':Sequelize[_0x43f3a4('0x6')],'allowNull':!![],'defaultValue':_0x43f3a4('0x4')},'format':{'type':Sequelize[_0x43f3a4('0x6')],'allowNull':!![]},'stamp':{'type':_0x43f3a4('0x3')},'defaultEntry':{'type':Sequelize[_0x43f3a4('0x1')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js index e4ddf2d..661c9a2 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js @@ -1 +1 @@ -const a742_0x1129=['../../mysqldb','merge','name','map','count','where','message','create','server/files/sounds/converted','limit','undefined','addSound','createdAt','mode','get','rawAttributes','format','attributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','symlinkSync','extname','catch','intersection','mkdirSync','keys','UserProfileSection','error','ValidationError','sort','findOne','options','Content-Range','../../config/logger','offset','Sequelize','util','sendStatus','set','server/files/moh','MusicOnHolds','files','directory','filters','transaction','getSounds','save_name','0777','user','Sound','findAll','send','json','include','UserProfileResource','sequelize','nolimit','root','filter','like','fieldName','converted_format','params','pick','key','id2','rows','end','readdirSync','then','index','Unable\x20to\x20retrieve\x20the\x20current\x20user','basename','VoiceMusicOnHold','%s.%s','fields','body','order','length','api','unlinkSync','rmdirSync','destroy','query','type','removeSound','lodash','status','model','join','includeAll'];(function(_0x2184ea,_0x112920){const _0x52d029=function(_0x174f9f){while(--_0x174f9f){_0x2184ea['push'](_0x2184ea['shift']());}};_0x52d029(++_0x112920);}(a742_0x1129,0x1eb));const a742_0x52d0=function(_0x2184ea,_0x112920){_0x2184ea=_0x2184ea-0x0;let _0x52d029=a742_0x1129[_0x2184ea];return _0x52d029;};const _0x26f3c2=a742_0x52d0;'use strict';const util=require(_0x26f3c2('0x54')),path=require('path'),fs=require('fs'),_=require(_0x26f3c2('0x2c')),qs=require('../../components/parsers/qs'),logger=require(_0x26f3c2('0x51'))(_0x26f3c2('0x25')),config=require('../../config/environment'),db=require(_0x26f3c2('0x31'))['db'],{Op}=require(_0x26f3c2('0xd'));function respondWithStatusCode(_0x174f9f,_0xcaf6){return _0xcaf6=_0xcaf6||0xcc,function(_0x3c9818){const _0xa948db=a742_0x52d0;if(_0x3c9818)return _0x174f9f[_0xa948db('0x55')](_0xcaf6);return _0x174f9f[_0xa948db('0x2d')](_0xcaf6)[_0xa948db('0x19')]();};}function respondWithResult(_0x102987,_0x1aec97){return _0x1aec97=_0x1aec97||0xc8,function(_0x1c62bc){const _0x48c241=a742_0x52d0;if(_0x1c62bc)return _0x102987[_0x48c241('0x2d')](_0x1aec97)[_0x48c241('0xa')](_0x1c62bc);};}function respondWithFilteredResult(_0x2567b9,_0x522325){return function(_0x417d36){const _0x26ac49=a742_0x52d0;if(_0x417d36){const _0x5d50c9=_0x417d36[_0x26ac49('0x35')],_0x49a341=_0x522325['offset'];let _0x4c28c5=_0x522325[_0x26ac49('0x52')]+_0x522325['limit'],_0x5399b9;return _0x4c28c5>=_0x5d50c9?(_0x4c28c5=_0x5d50c9,_0x5399b9=0xc8):_0x5399b9=0xce,_0x2567b9[_0x26ac49('0x2d')](_0x5399b9),_0x2567b9[_0x26ac49('0x56')](_0x26ac49('0x50'),_0x49a341+'-'+_0x4c28c5+'/'+_0x5d50c9)[_0x26ac49('0xa')](_0x417d36);}return null;};}function saveUpdates(_0x2233ce){return function(_0xa40b30){const _0x240863=a742_0x52d0;if(_0xa40b30)return _0xa40b30['update'](_0x2233ce)[_0x240863('0x1b')](function(_0x27a83c){return _0x27a83c;});return null;};}function removeEntity(_0x1b0912){return function(_0x2b6dee){const _0x62ec54=a742_0x52d0;if(_0x2b6dee)return _0x2b6dee['destroy']()['then'](function(){const _0x2bedea=a742_0x52d0,_0x983f73=_0x2b6dee[_0x2bedea('0x3f')]({'plain':!![]}),_0x4622c1=_0x2bedea('0x58');return db[_0x2bedea('0xc')][_0x2bedea('0x28')]({'where':{'type':_0x4622c1,'resourceId':_0x983f73['id']}})[_0x2bedea('0x1b')](function(){return _0x2b6dee;});})[_0x62ec54('0x1b')](function(){const _0x41ac36=_0x62ec54;_0x1b0912[_0x41ac36('0x2d')](0xcc)[_0x41ac36('0x19')]();});};}function handleEntityNotFound(_0x275594){return function(_0x4d4a0a){const _0x4886f2=a742_0x52d0;return!_0x4d4a0a&&_0x275594[_0x4886f2('0x55')](0x194),_0x4d4a0a;};}function handleError(_0x284782,_0x355fdc){return _0x355fdc=_0x355fdc||0x1f4,function(_0x3702d5){const _0x38179c=a742_0x52d0;logger[_0x38179c('0x4b')](_0x3702d5['stack']),_0x3702d5[_0x38179c('0x33')]&&delete _0x3702d5[_0x38179c('0x33')],_0x284782[_0x38179c('0x2d')](_0x355fdc)[_0x38179c('0x9')](_0x3702d5);};}exports[_0x26f3c2('0x1c')]=function(_0x3291b9,_0x5d2662){const _0x451137=_0x26f3c2;let _0x1c1e52={};const _0xf6a865={},_0x392714={'count':0x0,'rows':[]},_0x3d7cdd=_['map'](db[_0x451137('0x1f')][_0x451137('0x40')],function(_0x444e79){const _0x18dc64=_0x451137;return{'name':_0x444e79[_0x18dc64('0x12')],'type':_0x444e79[_0x18dc64('0x2a')][_0x18dc64('0x16')]};});_0xf6a865[_0x451137('0x2e')]=_[_0x451137('0x34')](_0x3d7cdd,_0x451137('0x33')),_0xf6a865[_0x451137('0x29')]=_['keys'](_0x3291b9[_0x451137('0x29')]),_0xf6a865[_0x451137('0x1')]=_['intersection'](_0xf6a865[_0x451137('0x2e')],_0xf6a865[_0x451137('0x29')]),_0x1c1e52[_0x451137('0x42')]=_['intersection'](_0xf6a865[_0x451137('0x2e')],qs[_0x451137('0x21')](_0x3291b9['query'][_0x451137('0x21')])),_0x1c1e52[_0x451137('0x42')]=_0x1c1e52['attributes']['length']?_0x1c1e52[_0x451137('0x42')]:_0xf6a865[_0x451137('0x2e')];typeof _0x3291b9[_0x451137('0x29')]['nolimit']==='undefined'&&(_0x1c1e52['limit']=qs[_0x451137('0x3a')](_0x3291b9['query']['limit']),_0x1c1e52['offset']=qs['offset'](_0x3291b9[_0x451137('0x29')][_0x451137('0x52')]));_0x1c1e52['order']=qs['sort'](_0x3291b9[_0x451137('0x29')][_0x451137('0x4d')]),_0x1c1e52[_0x451137('0x36')]=qs['filters'](_[_0x451137('0x15')](_0x3291b9['query'],_0xf6a865[_0x451137('0x1')]),_0x3d7cdd);_0x3291b9['query'][_0x451137('0x10')]&&(_0x1c1e52[_0x451137('0x36')]=_[_0x451137('0x32')](_0x1c1e52[_0x451137('0x36')],{[Op['or']]:_[_0x451137('0x34')](_0x3d7cdd,function(_0x18f781){const _0x3263bb=_0x451137;if(_0x18f781[_0x3263bb('0x2a')]!=='VIRTUAL'){const _0x5649f2={};return _0x5649f2[_0x18f781[_0x3263bb('0x33')]]={[Op[_0x3263bb('0x11')]]:'%'+_0x3291b9['query']['filter']+'%'},_0x5649f2;}})}));_0x1c1e52=_[_0x451137('0x32')]({},_0x1c1e52,_0x3291b9[_0x451137('0x4f')]);const _0x487b64={'where':_0x1c1e52[_0x451137('0x36')]};return db['VoiceMusicOnHold'][_0x451137('0x35')](_0x487b64)[_0x451137('0x1b')](function(_0x2d6c96){const _0x29b752=_0x451137;return _0x392714[_0x29b752('0x35')]=_0x2d6c96,_0x3291b9[_0x29b752('0x29')]['includeAll']&&(_0x1c1e52[_0x29b752('0xb')]=[{'all':!![]}]),db[_0x29b752('0x1f')][_0x29b752('0x8')](_0x1c1e52);})[_0x451137('0x1b')](function(_0x45ed74){const _0x4880bc=_0x451137;return _0x392714[_0x4880bc('0x18')]=_0x45ed74,_0x392714;})[_0x451137('0x1b')](respondWithFilteredResult(_0x5d2662,_0x1c1e52))[_0x451137('0x46')](handleError(_0x5d2662,null));},exports['show']=function(_0xb40f97,_0x440c95){const _0x114515=_0x26f3c2;let _0x2087d4={'raw':![],'where':{'id':_0xb40f97['params']['id']}};const _0x362c76={};return _0x362c76[_0x114515('0x2e')]=_[_0x114515('0x49')](db[_0x114515('0x1f')][_0x114515('0x40')]),_0x362c76[_0x114515('0x29')]=_['keys'](_0xb40f97[_0x114515('0x29')]),_0x362c76[_0x114515('0x1')]=_[_0x114515('0x47')](_0x362c76[_0x114515('0x2e')],_0x362c76[_0x114515('0x29')]),_0x2087d4['attributes']=_[_0x114515('0x47')](_0x362c76[_0x114515('0x2e')],qs[_0x114515('0x21')](_0xb40f97['query'][_0x114515('0x21')])),_0x2087d4[_0x114515('0x42')]=_0x2087d4['attributes'][_0x114515('0x24')]?_0x2087d4[_0x114515('0x42')]:_0x362c76[_0x114515('0x2e')],_0xb40f97['query'][_0x114515('0x30')]&&(_0x2087d4[_0x114515('0xb')]=[{'all':!![]}]),_0x2087d4=_[_0x114515('0x32')]({},_0x2087d4,_0xb40f97[_0x114515('0x4f')]),db[_0x114515('0x1f')][_0x114515('0x4e')](_0x2087d4)['then'](handleEntityNotFound(_0x440c95,null))[_0x114515('0x1b')](respondWithResult(_0x440c95,null))[_0x114515('0x46')](handleError(_0x440c95,null));},exports['update']=function(_0x48d80a,_0x45399d){const _0x3e6341=_0x26f3c2;return _0x48d80a['body']['id']&&delete _0x48d80a[_0x3e6341('0x22')]['id'],db[_0x3e6341('0x1f')]['findOne']({'where':{'id':_0x48d80a[_0x3e6341('0x14')]['id']}})['then'](handleEntityNotFound(_0x45399d,null))[_0x3e6341('0x1b')](saveUpdates(_0x48d80a[_0x3e6341('0x22')],null))[_0x3e6341('0x1b')](respondWithResult(_0x45399d,null))[_0x3e6341('0x46')](handleError(_0x45399d,null));},exports[_0x26f3c2('0x38')]=function(_0x4bb14c,_0x4349d2){const _0x4cf6fb=_0x26f3c2;return db['sequelize'][_0x4cf6fb('0x2')](function(_0x5a6a0e){const _0x3b5e00=_0x4cf6fb;return _0x4bb14c['body'][_0x3b5e00('0x3e')]===_0x3b5e00('0x59')&&(_0x4bb14c['body'][_0x3b5e00('0x0')]=path[_0x3b5e00('0x2f')](config[_0x3b5e00('0xf')],'server/files/moh',_0x4bb14c[_0x3b5e00('0x22')][_0x3b5e00('0x33')])),db[_0x3b5e00('0x1f')][_0x3b5e00('0x38')](_0x4bb14c['body'],{'transaction':_0x5a6a0e})[_0x3b5e00('0x1b')](function(_0x261c41){const _0x3443b4=_0x3b5e00;_0x4bb14c[_0x3443b4('0x22')][_0x3443b4('0x3e')]===_0x3443b4('0x59')&&fs[_0x3443b4('0x48')](_0x261c41[_0x3443b4('0x0')],parseInt(_0x3443b4('0x5'),0x8));const _0xee1368=_0x4bb14c[_0x3443b4('0x6')]['get']({'plain':!![]});if(!_0xee1368)throw new Error(_0x3443b4('0x1d'));if(_0xee1368['role']==='user'){const _0x12d8e5=_0x261c41[_0x3443b4('0x3f')]({'plain':!![]});return db[_0x3443b4('0x4a')][_0x3443b4('0x4e')]({'where':{'name':'MusicOnHolds','userProfileId':_0xee1368['userProfileId']},'raw':!![]})[_0x3443b4('0x1b')](function(_0x1bf3c0){const _0x2d9805=_0x3443b4;return _0x1bf3c0&&_0x1bf3c0['autoAssociation']===0x0?db['UserProfileResource'][_0x2d9805('0x38')]({'name':_0x12d8e5[_0x2d9805('0x33')],'resourceId':_0x12d8e5['id'],'type':_0x1bf3c0[_0x2d9805('0x33')],'sectionId':_0x1bf3c0['id']},{})[_0x2d9805('0x1b')](function(){return _0x261c41;}):_0x261c41;})[_0x3443b4('0x46')](function(_0x335814){const _0x5d32ce=_0x3443b4;logger[_0x5d32ce('0x4b')](_0x5d32ce('0x43'),_0x335814);});}return _0x261c41;});})[_0x4cf6fb('0x1b')](respondWithResult(_0x4349d2,0xc9))[_0x4cf6fb('0x46')](handleError(_0x4349d2,null));},exports[_0x26f3c2('0x28')]=function(_0x248e49,_0x545a96){const _0x30a94a=_0x26f3c2;return db[_0x30a94a('0x1f')][_0x30a94a('0x4e')]({'where':{'id':_0x248e49[_0x30a94a('0x14')]['id']}})[_0x30a94a('0x1b')](function(_0x32a36b){const _0x3d797d=_0x30a94a;if(_0x32a36b)return db[_0x3d797d('0xd')][_0x3d797d('0x2')](function(_0x5867cc){const _0x51ad3b=_0x3d797d;return _0x32a36b[_0x51ad3b('0x28')]({'transaction':_0x5867cc,'raw':!![]})[_0x51ad3b('0x1b')](function(_0x5b80a){const _0x3f096b=_0x51ad3b;return _0x5b80a[_0x3f096b('0x0')]&&(fs[_0x3f096b('0x1a')](_0x5b80a[_0x3f096b('0x0')])['forEach'](function(_0x540cca){const _0x397308=_0x3f096b;fs['unlinkSync'](path[_0x397308('0x2f')](_0x5b80a[_0x397308('0x0')],_0x540cca));}),fs[_0x3f096b('0x27')](_0x5b80a['directory'])),_0x5b80a;});})[_0x3d797d('0x46')](function(_0x573903){throw new db['Sequelize']['ValidationError'](_0x573903['message']);});})['then'](handleEntityNotFound(_0x545a96,null))[_0x30a94a('0x1b')](removeEntity(_0x545a96,null))[_0x30a94a('0x46')](handleError(_0x545a96,null));},exports[_0x26f3c2('0x3c')]=function(_0x25c9d9,_0x3e06fa){const _0x1aa37a=_0x26f3c2;return db[_0x1aa37a('0xd')][_0x1aa37a('0x2')](function(_0x383994){const _0xe7722=_0x1aa37a;let _0x4403f5;return db[_0xe7722('0x1f')]['findOne']({'where':{'id':_0x25c9d9[_0xe7722('0x14')]['id']}})[_0xe7722('0x1b')](function(_0x8af9b5){const _0x225430=_0xe7722;if(_0x8af9b5)return _0x4403f5=_0x8af9b5,_0x8af9b5[_0x225430('0x3c')](_0x25c9d9[_0x225430('0x22')]['id'],{'transaction':_0x383994});})[_0xe7722('0x1b')](function(_0x102da9){const _0x2a4326=_0xe7722;if(_0x102da9)return db[_0x2a4326('0x7')]['findOne']({'where':{'id':_0x25c9d9[_0x2a4326('0x22')]['id']},'attributes':['id',_0x2a4326('0x33'),_0x2a4326('0x4'),_0x2a4326('0x13'),_0x2a4326('0x3d')],'raw':!![]});})[_0xe7722('0x1b')](function(_0x5aeb6f){const _0x5747b7=_0xe7722;if(_0x5aeb6f){const _0x2d0632=path[_0x5747b7('0x2f')](config['root'],_0x5747b7('0x39'),util[_0x5747b7('0x41')]('%s.%s',path[_0x5747b7('0x1e')](_0x5aeb6f[_0x5747b7('0x4')],path[_0x5747b7('0x45')](_0x5aeb6f[_0x5747b7('0x4')])),_0x5aeb6f[_0x5747b7('0x13')])),_0x3daf1c=path[_0x5747b7('0x2f')](config[_0x5747b7('0xf')],_0x5747b7('0x57'),_0x4403f5[_0x5747b7('0x33')],util[_0x5747b7('0x41')]('%s.%s',_0x5aeb6f[_0x5747b7('0x33')],_0x5aeb6f['converted_format']));return fs[_0x5747b7('0x44')](_0x2d0632,_0x3daf1c),_0x5aeb6f;}})['catch'](function(_0x3efd66){const _0x32dd50=_0xe7722;throw new db[(_0x32dd50('0x53'))][(_0x32dd50('0x4c'))](_0x3efd66[_0x32dd50('0x37')]);});})[_0x1aa37a('0x1b')](handleEntityNotFound(_0x3e06fa,null))[_0x1aa37a('0x1b')](respondWithResult(_0x3e06fa,0xc9))[_0x1aa37a('0x46')](handleError(_0x3e06fa,null));},exports[_0x26f3c2('0x2b')]=function(_0x29a36d,_0x2a07e7){const _0xe34b4e=_0x26f3c2;return db['sequelize'][_0xe34b4e('0x2')](function(){const _0x4cea3b=_0xe34b4e;let _0x538a3d;return db[_0x4cea3b('0x1f')][_0x4cea3b('0x4e')]({'where':{'id':_0x29a36d['params']['id']}})[_0x4cea3b('0x1b')](handleEntityNotFound(_0x2a07e7,null))[_0x4cea3b('0x1b')](function(_0x4fc855){const _0x1a9da0=_0x4cea3b;if(_0x4fc855)return _0x538a3d=_0x4fc855,_0x4fc855[_0x1a9da0('0x2b')](_0x29a36d[_0x1a9da0('0x14')][_0x1a9da0('0x17')]);})[_0x4cea3b('0x1b')](function(_0x353917){const _0xc5bd27=_0x4cea3b;if(_0x353917)return db[_0xc5bd27('0x7')][_0xc5bd27('0x4e')]({'where':{'id':_0x29a36d[_0xc5bd27('0x14')][_0xc5bd27('0x17')]},'attributes':['id',_0xc5bd27('0x33'),_0xc5bd27('0x4'),_0xc5bd27('0x13'),_0xc5bd27('0x3d')],'raw':!![]});})['then'](function(_0xaaaa80){const _0x569785=_0x4cea3b;if(_0xaaaa80)return fs[_0x569785('0x26')](path['join'](_0x538a3d['directory'],util[_0x569785('0x41')](_0x569785('0x20'),_0xaaaa80[_0x569785('0x33')],_0xaaaa80[_0x569785('0x13')]))),_0xaaaa80;})[_0x4cea3b('0x46')](function(_0x2287f2){const _0x3cdaa7=_0x4cea3b;throw new db[(_0x3cdaa7('0x53'))]['ValidationError'](_0x2287f2[_0x3cdaa7('0x37')]);});})[_0xe34b4e('0x1b')](handleEntityNotFound(_0x2a07e7,null))[_0xe34b4e('0x1b')](respondWithStatusCode(_0x2a07e7,0xcc))[_0xe34b4e('0x46')](handleError(_0x2a07e7,null));},exports[_0x26f3c2('0x3')]=function(_0x23e004,_0x8992c5){const _0x30d9a5=_0x26f3c2;let _0xa5d1e6={};const _0x4c2e4d={};let _0x31ff3b,_0x1b28b3;return db[_0x30d9a5('0x1f')][_0x30d9a5('0x4e')]({'where':{'id':_0x23e004[_0x30d9a5('0x14')]['id']}})['then'](handleEntityNotFound(_0x8992c5,null))['then'](function(_0x47925d){const _0x1aedfc=_0x30d9a5;if(_0x47925d)return _0x31ff3b=_0x47925d,_0x4c2e4d['model']=_[_0x1aedfc('0x49')](db[_0x1aedfc('0x7')][_0x1aedfc('0x40')]),_0x4c2e4d[_0x1aedfc('0x29')]=_[_0x1aedfc('0x49')](_0x23e004[_0x1aedfc('0x29')]),_0x4c2e4d[_0x1aedfc('0x1')]=_[_0x1aedfc('0x47')](_0x4c2e4d[_0x1aedfc('0x2e')],_0x4c2e4d[_0x1aedfc('0x29')]),_0xa5d1e6[_0x1aedfc('0x42')]=_[_0x1aedfc('0x47')](_0x4c2e4d[_0x1aedfc('0x2e')],qs[_0x1aedfc('0x21')](_0x23e004['query'][_0x1aedfc('0x21')])),_0xa5d1e6[_0x1aedfc('0x42')]=_0xa5d1e6[_0x1aedfc('0x42')][_0x1aedfc('0x24')]?_0xa5d1e6[_0x1aedfc('0x42')]:_0x4c2e4d[_0x1aedfc('0x2e')],_0xa5d1e6[_0x1aedfc('0x23')]=qs[_0x1aedfc('0x4d')](_0x23e004[_0x1aedfc('0x29')]['sort']),_0xa5d1e6[_0x1aedfc('0x36')]=qs['filters'](_[_0x1aedfc('0x15')](_0x23e004[_0x1aedfc('0x29')],_0x4c2e4d['filters'])),_0x23e004[_0x1aedfc('0x29')][_0x1aedfc('0x10')]&&(_0xa5d1e6[_0x1aedfc('0x36')]=_[_0x1aedfc('0x32')](_0xa5d1e6[_0x1aedfc('0x36')],{[Op['or']]:_[_0x1aedfc('0x34')](_0xa5d1e6[_0x1aedfc('0x42')],function(_0x55f56b){const _0x1d11a9=_0x1aedfc,_0x237edf={};return _0x237edf[_0x55f56b]={[Op['like']]:'%'+_0x23e004[_0x1d11a9('0x29')]['filter']+'%'},_0x237edf;})})),_0xa5d1e6=_['merge']({},_0xa5d1e6,_0x23e004[_0x1aedfc('0x4f')]),_0x31ff3b[_0x1aedfc('0x3')](_0xa5d1e6);})[_0x30d9a5('0x1b')](function(_0x1e1aa2){const _0x46f969=_0x30d9a5;if(_0x1e1aa2)return _0x1b28b3=_0x1e1aa2[_0x46f969('0x24')],typeof _0x23e004['query'][_0x46f969('0xe')]===_0x46f969('0x3b')&&(_0xa5d1e6[_0x46f969('0x3a')]=qs[_0x46f969('0x3a')](_0x23e004[_0x46f969('0x29')][_0x46f969('0x3a')]),_0xa5d1e6[_0x46f969('0x52')]=qs[_0x46f969('0x52')](_0x23e004[_0x46f969('0x29')][_0x46f969('0x52')])),_0x31ff3b[_0x46f969('0x3')](_0xa5d1e6);})[_0x30d9a5('0x1b')](function(_0x4f9bf0){if(_0x4f9bf0)return _0x4f9bf0?{'count':_0x1b28b3,'rows':_0x4f9bf0}:null;})[_0x30d9a5('0x1b')](respondWithResult(_0x8992c5,null))[_0x30d9a5('0x46')](handleError(_0x8992c5,null));}; \ No newline at end of file +const a742_0x258e=['query','VIRTUAL','get','addSound','role','%s.%s','path','show','converted_format','root','VoiceMusicOnHold','ValidationError','filters','files','order','send','include','Sequelize','index','createdAt','count','nolimit','like','MusicOnHolds','merge','offset','attributes','removeSound','mode','sequelize','join','0777','UserProfileResource','keys','Content-Range','rows','fieldName','transaction','../../components/parsers/qs','findAll','options','unlinkSync','limit','filter','message','save_name','length','server/files/moh','rawAttributes','catch','getSounds','sendStatus','util','findOne','../../config/logger','status','forEach','json','user','stack','end','sort','intersection','mkdirSync','userProfileId','directory','readdirSync','key','body','id2','symlinkSync','map','pick','where','error','then','destroy','undefined','fields','model','../../config/environment','format','params','api','name','includeAll','create','type','server/files/sounds/converted'];(function(_0x9a46a1,_0x258e84){const _0x1dcd99=function(_0x479aaf){while(--_0x479aaf){_0x9a46a1['push'](_0x9a46a1['shift']());}};_0x1dcd99(++_0x258e84);}(a742_0x258e,0x17f));const a742_0x1dcd=function(_0x9a46a1,_0x258e84){_0x9a46a1=_0x9a46a1-0x0;let _0x1dcd99=a742_0x258e[_0x9a46a1];return _0x1dcd99;};const _0x57dd8d=a742_0x1dcd;'use strict';const util=require(_0x57dd8d('0x19')),path=require(_0x57dd8d('0x44')),fs=require('fs'),_=require('lodash'),qs=require(_0x57dd8d('0xb')),logger=require(_0x57dd8d('0x1b'))(_0x57dd8d('0x38')),config=require(_0x57dd8d('0x35')),db=require('../../mysqldb')['db'],{Op}=require(_0x57dd8d('0x2'));function respondWithStatusCode(_0x479aaf,_0x369dbf){return _0x369dbf=_0x369dbf||0xcc,function(_0x3ca455){const _0x20e4e1=a742_0x1dcd;if(_0x3ca455)return _0x479aaf[_0x20e4e1('0x18')](_0x369dbf);return _0x479aaf[_0x20e4e1('0x1c')](_0x369dbf)['end']();};}function respondWithResult(_0x8d2487,_0x1f3882){return _0x1f3882=_0x1f3882||0xc8,function(_0x5a51fa){const _0x78985f=a742_0x1dcd;if(_0x5a51fa)return _0x8d2487[_0x78985f('0x1c')](_0x1f3882)['json'](_0x5a51fa);};}function respondWithFilteredResult(_0x4b8fa7,_0x3d7532){return function(_0x5c440d){const _0x27ae44=a742_0x1dcd;if(_0x5c440d){const _0x1ae002=_0x5c440d['count'],_0x1aa863=_0x3d7532['offset'];let _0x373c56=_0x3d7532[_0x27ae44('0x57')]+_0x3d7532[_0x27ae44('0xf')],_0x369894;return _0x373c56>=_0x1ae002?(_0x373c56=_0x1ae002,_0x369894=0xc8):_0x369894=0xce,_0x4b8fa7[_0x27ae44('0x1c')](_0x369894),_0x4b8fa7['set'](_0x27ae44('0x7'),_0x1aa863+'-'+_0x373c56+'/'+_0x1ae002)[_0x27ae44('0x1e')](_0x5c440d);}return null;};}function saveUpdates(_0x24d3af){return function(_0x4d7ec5){const _0xdc93e3=a742_0x1dcd;if(_0x4d7ec5)return _0x4d7ec5['update'](_0x24d3af)[_0xdc93e3('0x30')](function(_0x14b9b6){return _0x14b9b6;});return null;};}function removeEntity(_0x28e7c6){return function(_0xaf3ae9){const _0x5c635b=a742_0x1dcd;if(_0xaf3ae9)return _0xaf3ae9[_0x5c635b('0x31')]()[_0x5c635b('0x30')](function(){const _0x3ad738=_0x5c635b,_0x214e7f=_0xaf3ae9[_0x3ad738('0x40')]({'plain':!![]}),_0x236d14='MusicOnHolds';return db['UserProfileResource'][_0x3ad738('0x31')]({'where':{'type':_0x236d14,'resourceId':_0x214e7f['id']}})[_0x3ad738('0x30')](function(){return _0xaf3ae9;});})[_0x5c635b('0x30')](function(){const _0x56c4c6=_0x5c635b;_0x28e7c6[_0x56c4c6('0x1c')](0xcc)[_0x56c4c6('0x21')]();});};}function handleEntityNotFound(_0x2fcf10){return function(_0x205839){return!_0x205839&&_0x2fcf10['sendStatus'](0x194),_0x205839;};}function handleError(_0x391ba3,_0x429f72){return _0x429f72=_0x429f72||0x1f4,function(_0x58edc9){const _0x12ad16=a742_0x1dcd;logger[_0x12ad16('0x2f')](_0x58edc9[_0x12ad16('0x20')]),_0x58edc9[_0x12ad16('0x39')]&&delete _0x58edc9[_0x12ad16('0x39')],_0x391ba3['status'](_0x429f72)[_0x12ad16('0x4d')](_0x58edc9);};}exports[_0x57dd8d('0x50')]=function(_0x4ca04c,_0x28a891){const _0x3fa97e=_0x57dd8d;let _0x142f25={};const _0x3f59bf={},_0x5cc4f9={'count':0x0,'rows':[]},_0x250bcc=_[_0x3fa97e('0x2c')](db[_0x3fa97e('0x48')][_0x3fa97e('0x15')],function(_0xfb2c6c){const _0x41a37c=_0x3fa97e;return{'name':_0xfb2c6c[_0x41a37c('0x9')],'type':_0xfb2c6c[_0x41a37c('0x3c')][_0x41a37c('0x28')]};});_0x3f59bf[_0x3fa97e('0x34')]=_[_0x3fa97e('0x2c')](_0x250bcc,_0x3fa97e('0x39')),_0x3f59bf[_0x3fa97e('0x3e')]=_[_0x3fa97e('0x6')](_0x4ca04c[_0x3fa97e('0x3e')]),_0x3f59bf['filters']=_['intersection'](_0x3f59bf['model'],_0x3f59bf[_0x3fa97e('0x3e')]),_0x142f25['attributes']=_['intersection'](_0x3f59bf[_0x3fa97e('0x34')],qs[_0x3fa97e('0x33')](_0x4ca04c['query'][_0x3fa97e('0x33')])),_0x142f25[_0x3fa97e('0x58')]=_0x142f25['attributes'][_0x3fa97e('0x13')]?_0x142f25[_0x3fa97e('0x58')]:_0x3f59bf['model'];typeof _0x4ca04c['query'][_0x3fa97e('0x53')]==='undefined'&&(_0x142f25[_0x3fa97e('0xf')]=qs[_0x3fa97e('0xf')](_0x4ca04c['query'][_0x3fa97e('0xf')]),_0x142f25[_0x3fa97e('0x57')]=qs[_0x3fa97e('0x57')](_0x4ca04c[_0x3fa97e('0x3e')]['offset']));_0x142f25[_0x3fa97e('0x4c')]=qs['sort'](_0x4ca04c[_0x3fa97e('0x3e')][_0x3fa97e('0x22')]),_0x142f25[_0x3fa97e('0x2e')]=qs['filters'](_[_0x3fa97e('0x2d')](_0x4ca04c[_0x3fa97e('0x3e')],_0x3f59bf[_0x3fa97e('0x4a')]),_0x250bcc);_0x4ca04c[_0x3fa97e('0x3e')][_0x3fa97e('0x10')]&&(_0x142f25[_0x3fa97e('0x2e')]=_['merge'](_0x142f25[_0x3fa97e('0x2e')],{[Op['or']]:_['map'](_0x250bcc,function(_0x375337){const _0x5c618f=_0x3fa97e;if(_0x375337['type']!==_0x5c618f('0x3f')){const _0x114f6e={};return _0x114f6e[_0x375337['name']]={[Op[_0x5c618f('0x54')]]:'%'+_0x4ca04c['query']['filter']+'%'},_0x114f6e;}})}));_0x142f25=_['merge']({},_0x142f25,_0x4ca04c['options']);const _0xe1e001={'where':_0x142f25['where']};return db['VoiceMusicOnHold'][_0x3fa97e('0x52')](_0xe1e001)[_0x3fa97e('0x30')](function(_0x3c71e6){const _0x255a6a=_0x3fa97e;return _0x5cc4f9[_0x255a6a('0x52')]=_0x3c71e6,_0x4ca04c['query'][_0x255a6a('0x3a')]&&(_0x142f25[_0x255a6a('0x4e')]=[{'all':!![]}]),db['VoiceMusicOnHold'][_0x255a6a('0xc')](_0x142f25);})['then'](function(_0x1c2b17){const _0x23e974=_0x3fa97e;return _0x5cc4f9[_0x23e974('0x8')]=_0x1c2b17,_0x5cc4f9;})[_0x3fa97e('0x30')](respondWithFilteredResult(_0x28a891,_0x142f25))[_0x3fa97e('0x16')](handleError(_0x28a891,null));},exports[_0x57dd8d('0x45')]=function(_0x1ad2d7,_0x9d2dff){const _0x1d64d7=_0x57dd8d;let _0x5552a6={'raw':![],'where':{'id':_0x1ad2d7[_0x1d64d7('0x37')]['id']}};const _0x22362a={};return _0x22362a['model']=_[_0x1d64d7('0x6')](db['VoiceMusicOnHold'][_0x1d64d7('0x15')]),_0x22362a['query']=_[_0x1d64d7('0x6')](_0x1ad2d7[_0x1d64d7('0x3e')]),_0x22362a[_0x1d64d7('0x4a')]=_['intersection'](_0x22362a[_0x1d64d7('0x34')],_0x22362a['query']),_0x5552a6['attributes']=_['intersection'](_0x22362a[_0x1d64d7('0x34')],qs['fields'](_0x1ad2d7['query']['fields'])),_0x5552a6['attributes']=_0x5552a6[_0x1d64d7('0x58')][_0x1d64d7('0x13')]?_0x5552a6['attributes']:_0x22362a['model'],_0x1ad2d7['query'][_0x1d64d7('0x3a')]&&(_0x5552a6[_0x1d64d7('0x4e')]=[{'all':!![]}]),_0x5552a6=_['merge']({},_0x5552a6,_0x1ad2d7[_0x1d64d7('0xd')]),db[_0x1d64d7('0x48')][_0x1d64d7('0x1a')](_0x5552a6)[_0x1d64d7('0x30')](handleEntityNotFound(_0x9d2dff,null))[_0x1d64d7('0x30')](respondWithResult(_0x9d2dff,null))[_0x1d64d7('0x16')](handleError(_0x9d2dff,null));},exports['update']=function(_0x2a0e7d,_0x4eb7f1){const _0x32a9b5=_0x57dd8d;return _0x2a0e7d[_0x32a9b5('0x29')]['id']&&delete _0x2a0e7d[_0x32a9b5('0x29')]['id'],db[_0x32a9b5('0x48')][_0x32a9b5('0x1a')]({'where':{'id':_0x2a0e7d[_0x32a9b5('0x37')]['id']}})[_0x32a9b5('0x30')](handleEntityNotFound(_0x4eb7f1,null))[_0x32a9b5('0x30')](saveUpdates(_0x2a0e7d[_0x32a9b5('0x29')],null))['then'](respondWithResult(_0x4eb7f1,null))[_0x32a9b5('0x16')](handleError(_0x4eb7f1,null));},exports[_0x57dd8d('0x3b')]=function(_0x5c7089,_0x520cd5){const _0x82dafc=_0x57dd8d;return db['sequelize'][_0x82dafc('0xa')](function(_0x5e40d0){const _0x3b6c62=_0x82dafc;return _0x5c7089[_0x3b6c62('0x29')][_0x3b6c62('0x1')]==='files'&&(_0x5c7089[_0x3b6c62('0x29')][_0x3b6c62('0x26')]=path[_0x3b6c62('0x3')](config[_0x3b6c62('0x47')],_0x3b6c62('0x14'),_0x5c7089[_0x3b6c62('0x29')]['name'])),db[_0x3b6c62('0x48')][_0x3b6c62('0x3b')](_0x5c7089[_0x3b6c62('0x29')],{'transaction':_0x5e40d0})[_0x3b6c62('0x30')](function(_0x23dd1e){const _0x34e03e=_0x3b6c62;_0x5c7089['body'][_0x34e03e('0x1')]===_0x34e03e('0x4b')&&fs[_0x34e03e('0x24')](_0x23dd1e[_0x34e03e('0x26')],parseInt(_0x34e03e('0x4'),0x8));const _0x1fc0d3=_0x5c7089[_0x34e03e('0x1f')][_0x34e03e('0x40')]({'plain':!![]});if(!_0x1fc0d3)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x1fc0d3[_0x34e03e('0x42')]==='user'){const _0x17d257=_0x23dd1e['get']({'plain':!![]});return db['UserProfileSection'][_0x34e03e('0x1a')]({'where':{'name':_0x34e03e('0x55'),'userProfileId':_0x1fc0d3[_0x34e03e('0x25')]},'raw':!![]})[_0x34e03e('0x30')](function(_0x4ee2ce){const _0x4f4bfd=_0x34e03e;return _0x4ee2ce&&_0x4ee2ce['autoAssociation']===0x0?db[_0x4f4bfd('0x5')]['create']({'name':_0x17d257[_0x4f4bfd('0x39')],'resourceId':_0x17d257['id'],'type':_0x4ee2ce[_0x4f4bfd('0x39')],'sectionId':_0x4ee2ce['id']},{})[_0x4f4bfd('0x30')](function(){return _0x23dd1e;}):_0x23dd1e;})[_0x34e03e('0x16')](function(_0x215356){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x215356);});}return _0x23dd1e;});})[_0x82dafc('0x30')](respondWithResult(_0x520cd5,0xc9))[_0x82dafc('0x16')](handleError(_0x520cd5,null));},exports[_0x57dd8d('0x31')]=function(_0x16081d,_0x5e11c2){const _0x43b16c=_0x57dd8d;return db[_0x43b16c('0x48')][_0x43b16c('0x1a')]({'where':{'id':_0x16081d[_0x43b16c('0x37')]['id']}})['then'](function(_0x4727a0){const _0x34acc0=_0x43b16c;if(_0x4727a0)return db['sequelize'][_0x34acc0('0xa')](function(_0x11c1f5){const _0x37d563=_0x34acc0;return _0x4727a0[_0x37d563('0x31')]({'transaction':_0x11c1f5,'raw':!![]})[_0x37d563('0x30')](function(_0x4fe846){const _0x2d87ff=_0x37d563;return _0x4fe846[_0x2d87ff('0x26')]&&(fs[_0x2d87ff('0x27')](_0x4fe846['directory'])[_0x2d87ff('0x1d')](function(_0x1b1201){const _0x324b7d=_0x2d87ff;fs[_0x324b7d('0xe')](path[_0x324b7d('0x3')](_0x4fe846[_0x324b7d('0x26')],_0x1b1201));}),fs['rmdirSync'](_0x4fe846[_0x2d87ff('0x26')])),_0x4fe846;});})[_0x34acc0('0x16')](function(_0x179003){const _0x7d4ef9=_0x34acc0;throw new db[(_0x7d4ef9('0x4f'))]['ValidationError'](_0x179003['message']);});})[_0x43b16c('0x30')](handleEntityNotFound(_0x5e11c2,null))[_0x43b16c('0x30')](removeEntity(_0x5e11c2,null))[_0x43b16c('0x16')](handleError(_0x5e11c2,null));},exports[_0x57dd8d('0x41')]=function(_0x21c8e8,_0x18e3a9){const _0x3e6388=_0x57dd8d;return db[_0x3e6388('0x2')][_0x3e6388('0xa')](function(_0x328c64){const _0x2e72ff=_0x3e6388;let _0x5e31c9;return db[_0x2e72ff('0x48')]['findOne']({'where':{'id':_0x21c8e8['params']['id']}})[_0x2e72ff('0x30')](function(_0x21c22c){const _0xad293c=_0x2e72ff;if(_0x21c22c)return _0x5e31c9=_0x21c22c,_0x21c22c['addSound'](_0x21c8e8[_0xad293c('0x29')]['id'],{'transaction':_0x328c64});})[_0x2e72ff('0x30')](function(_0x476ef6){const _0x2580c7=_0x2e72ff;if(_0x476ef6)return db['Sound'][_0x2580c7('0x1a')]({'where':{'id':_0x21c8e8[_0x2580c7('0x29')]['id']},'attributes':['id',_0x2580c7('0x39'),_0x2580c7('0x12'),'converted_format',_0x2580c7('0x51')],'raw':!![]});})['then'](function(_0x51e39d){const _0x209981=_0x2e72ff;if(_0x51e39d){const _0x566d7c=path[_0x209981('0x3')](config[_0x209981('0x47')],_0x209981('0x3d'),util[_0x209981('0x36')](_0x209981('0x43'),path['basename'](_0x51e39d[_0x209981('0x12')],path['extname'](_0x51e39d[_0x209981('0x12')])),_0x51e39d['converted_format'])),_0x2975c9=path[_0x209981('0x3')](config[_0x209981('0x47')],_0x209981('0x14'),_0x5e31c9[_0x209981('0x39')],util['format'](_0x209981('0x43'),_0x51e39d[_0x209981('0x39')],_0x51e39d[_0x209981('0x46')]));return fs[_0x209981('0x2b')](_0x566d7c,_0x2975c9),_0x51e39d;}})['catch'](function(_0x1551c6){const _0x3dbc54=_0x2e72ff;throw new db['Sequelize'][(_0x3dbc54('0x49'))](_0x1551c6[_0x3dbc54('0x11')]);});})['then'](handleEntityNotFound(_0x18e3a9,null))['then'](respondWithResult(_0x18e3a9,0xc9))[_0x3e6388('0x16')](handleError(_0x18e3a9,null));},exports['removeSound']=function(_0x41fe76,_0x5ee32d){const _0x2bcbc5=_0x57dd8d;return db[_0x2bcbc5('0x2')][_0x2bcbc5('0xa')](function(){const _0x1b64fe=_0x2bcbc5;let _0x2cdaee;return db[_0x1b64fe('0x48')][_0x1b64fe('0x1a')]({'where':{'id':_0x41fe76[_0x1b64fe('0x37')]['id']}})[_0x1b64fe('0x30')](handleEntityNotFound(_0x5ee32d,null))[_0x1b64fe('0x30')](function(_0x3e169b){const _0x402679=_0x1b64fe;if(_0x3e169b)return _0x2cdaee=_0x3e169b,_0x3e169b[_0x402679('0x0')](_0x41fe76[_0x402679('0x37')][_0x402679('0x2a')]);})[_0x1b64fe('0x30')](function(_0x4bdabe){const _0x1b813b=_0x1b64fe;if(_0x4bdabe)return db['Sound']['findOne']({'where':{'id':_0x41fe76[_0x1b813b('0x37')][_0x1b813b('0x2a')]},'attributes':['id',_0x1b813b('0x39'),_0x1b813b('0x12'),'converted_format','createdAt'],'raw':!![]});})[_0x1b64fe('0x30')](function(_0x417509){const _0x377b6a=_0x1b64fe;if(_0x417509)return fs['unlinkSync'](path[_0x377b6a('0x3')](_0x2cdaee[_0x377b6a('0x26')],util[_0x377b6a('0x36')]('%s.%s',_0x417509[_0x377b6a('0x39')],_0x417509[_0x377b6a('0x46')]))),_0x417509;})[_0x1b64fe('0x16')](function(_0x33cdb8){const _0x2f1aa4=_0x1b64fe;throw new db[(_0x2f1aa4('0x4f'))]['ValidationError'](_0x33cdb8[_0x2f1aa4('0x11')]);});})[_0x2bcbc5('0x30')](handleEntityNotFound(_0x5ee32d,null))[_0x2bcbc5('0x30')](respondWithStatusCode(_0x5ee32d,0xcc))[_0x2bcbc5('0x16')](handleError(_0x5ee32d,null));},exports[_0x57dd8d('0x17')]=function(_0x4c6588,_0x330be3){const _0x5b5354=_0x57dd8d;let _0x264935={};const _0x56e3fd={};let _0x2d963b,_0x401b04;return db['VoiceMusicOnHold'][_0x5b5354('0x1a')]({'where':{'id':_0x4c6588['params']['id']}})[_0x5b5354('0x30')](handleEntityNotFound(_0x330be3,null))[_0x5b5354('0x30')](function(_0x25248f){const _0x51c7d1=_0x5b5354;if(_0x25248f)return _0x2d963b=_0x25248f,_0x56e3fd[_0x51c7d1('0x34')]=_[_0x51c7d1('0x6')](db['Sound'][_0x51c7d1('0x15')]),_0x56e3fd[_0x51c7d1('0x3e')]=_[_0x51c7d1('0x6')](_0x4c6588[_0x51c7d1('0x3e')]),_0x56e3fd['filters']=_[_0x51c7d1('0x23')](_0x56e3fd[_0x51c7d1('0x34')],_0x56e3fd[_0x51c7d1('0x3e')]),_0x264935[_0x51c7d1('0x58')]=_['intersection'](_0x56e3fd['model'],qs[_0x51c7d1('0x33')](_0x4c6588[_0x51c7d1('0x3e')][_0x51c7d1('0x33')])),_0x264935['attributes']=_0x264935['attributes'][_0x51c7d1('0x13')]?_0x264935['attributes']:_0x56e3fd[_0x51c7d1('0x34')],_0x264935[_0x51c7d1('0x4c')]=qs[_0x51c7d1('0x22')](_0x4c6588[_0x51c7d1('0x3e')][_0x51c7d1('0x22')]),_0x264935[_0x51c7d1('0x2e')]=qs['filters'](_[_0x51c7d1('0x2d')](_0x4c6588[_0x51c7d1('0x3e')],_0x56e3fd[_0x51c7d1('0x4a')])),_0x4c6588[_0x51c7d1('0x3e')][_0x51c7d1('0x10')]&&(_0x264935[_0x51c7d1('0x2e')]=_[_0x51c7d1('0x56')](_0x264935[_0x51c7d1('0x2e')],{[Op['or']]:_[_0x51c7d1('0x2c')](_0x264935[_0x51c7d1('0x58')],function(_0x10298b){const _0x1510ab=_0x51c7d1,_0x2285ce={};return _0x2285ce[_0x10298b]={[Op[_0x1510ab('0x54')]]:'%'+_0x4c6588['query'][_0x1510ab('0x10')]+'%'},_0x2285ce;})})),_0x264935=_[_0x51c7d1('0x56')]({},_0x264935,_0x4c6588['options']),_0x2d963b[_0x51c7d1('0x17')](_0x264935);})[_0x5b5354('0x30')](function(_0x561912){const _0x531a81=_0x5b5354;if(_0x561912)return _0x401b04=_0x561912['length'],typeof _0x4c6588[_0x531a81('0x3e')][_0x531a81('0x53')]===_0x531a81('0x32')&&(_0x264935['limit']=qs[_0x531a81('0xf')](_0x4c6588[_0x531a81('0x3e')]['limit']),_0x264935[_0x531a81('0x57')]=qs['offset'](_0x4c6588['query'][_0x531a81('0x57')])),_0x2d963b[_0x531a81('0x17')](_0x264935);})[_0x5b5354('0x30')](function(_0x183d42){if(_0x183d42)return _0x183d42?{'count':_0x401b04,'rows':_0x183d42}:null;})[_0x5b5354('0x30')](respondWithResult(_0x330be3,null))[_0x5b5354('0x16')](handleError(_0x330be3,null));}; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js index e5308f0..104a140 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js @@ -1 +1 @@ -const a743_0x1ffa=['define','voice_musiconhold','./voiceMusicOnHold.attributes','VoiceMusicOnHold','exports'];(function(_0x2b407d,_0x1ffae4){const _0x17ffa3=function(_0x1a3ef6){while(--_0x1a3ef6){_0x2b407d['push'](_0x2b407d['shift']());}};_0x17ffa3(++_0x1ffae4);}(a743_0x1ffa,0xbe));const a743_0x17ff=function(_0x2b407d,_0x1ffae4){_0x2b407d=_0x2b407d-0x0;let _0x17ffa3=a743_0x1ffa[_0x2b407d];return _0x17ffa3;};const _0x4a8d1e=a743_0x17ff;'use strict';const attributes=require(_0x4a8d1e('0x2'));module[_0x4a8d1e('0x4')]=function(_0x1a3ef6){const _0x4bf80a=_0x4a8d1e,_0x4a56b7=_0x1a3ef6[_0x4bf80a('0x0')](_0x4bf80a('0x3'),attributes,{'tableName':_0x4bf80a('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4a56b7;}; \ No newline at end of file +const a743_0x2be2=['./voiceMusicOnHold.attributes','voice_musiconhold','VoiceMusicOnHold','exports'];(function(_0x522c7c,_0x2be264){const _0x19f17d=function(_0x3df3f7){while(--_0x3df3f7){_0x522c7c['push'](_0x522c7c['shift']());}};_0x19f17d(++_0x2be264);}(a743_0x2be2,0x105));const a743_0x19f1=function(_0x522c7c,_0x2be264){_0x522c7c=_0x522c7c-0x0;let _0x19f17d=a743_0x2be2[_0x522c7c];return _0x19f17d;};const _0x55d88f=a743_0x19f1;'use strict';const attributes=require(_0x55d88f('0x3'));module[_0x55d88f('0x2')]=function(_0x3df3f7){const _0x323197=_0x55d88f,_0x1fdfb9=_0x3df3f7['define'](_0x323197('0x1'),attributes,{'tableName':_0x323197('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1fdfb9;}; \ No newline at end of file diff --git a/server/api/voicePrefix/index.js b/server/api/voicePrefix/index.js index 1214e37..a5f62a4 100644 --- a/server/api/voicePrefix/index.js +++ b/server/api/voicePrefix/index.js @@ -1 +1 @@ -const a744_0x35b1=['/describe','delete','./voicePrefix.controller','update','express','removeAgents','show','index','create','/:id','../../components/auth/service','get','isAuthenticated','describe','/:id/users','post','exports','Router'];(function(_0x5849fa,_0x35b191){const _0x3cf359=function(_0x381bde){while(--_0x381bde){_0x5849fa['push'](_0x5849fa['shift']());}};_0x3cf359(++_0x35b191);}(a744_0x35b1,0x177));const a744_0x3cf3=function(_0x5849fa,_0x35b191){_0x5849fa=_0x5849fa-0x0;let _0x3cf359=a744_0x35b1[_0x5849fa];return _0x3cf359;};const _0x27ad49=a744_0x3cf3;'use strict';const express=require(_0x27ad49('0x7')),router=express[_0x27ad49('0x2')](),auth=require(_0x27ad49('0xd')),controller=require(_0x27ad49('0x5'));router[_0x27ad49('0xe')]('/',auth[_0x27ad49('0xf')](),controller[_0x27ad49('0xa')]),router[_0x27ad49('0xe')](_0x27ad49('0x3'),auth[_0x27ad49('0xf')](),controller[_0x27ad49('0x10')]),router[_0x27ad49('0xe')](_0x27ad49('0xc'),auth[_0x27ad49('0xf')](),controller[_0x27ad49('0x9')]),router[_0x27ad49('0xe')](_0x27ad49('0x11'),auth[_0x27ad49('0xf')](),controller['getAgents']),router['post']('/',auth[_0x27ad49('0xf')](),controller[_0x27ad49('0xb')]),router[_0x27ad49('0x0')](_0x27ad49('0x11'),auth['isAuthenticated'](),controller['addAgents']),router['put'](_0x27ad49('0xc'),auth[_0x27ad49('0xf')](),controller[_0x27ad49('0x6')]),router[_0x27ad49('0x4')](_0x27ad49('0xc'),auth[_0x27ad49('0xf')](),controller['destroy']),router[_0x27ad49('0x4')]('/:id/users',auth[_0x27ad49('0xf')](),controller[_0x27ad49('0x8')]),module[_0x27ad49('0x1')]=router; \ No newline at end of file +const a744_0x2dbc=['../../components/auth/service','/:id','index','get','exports','getAgents','isAuthenticated','addAgents','delete','put','Router','/:id/users','describe','show','destroy'];(function(_0x1ce9ae,_0x2dbcb2){const _0x22b1c6=function(_0x521a76){while(--_0x521a76){_0x1ce9ae['push'](_0x1ce9ae['shift']());}};_0x22b1c6(++_0x2dbcb2);}(a744_0x2dbc,0xf9));const a744_0x22b1=function(_0x1ce9ae,_0x2dbcb2){_0x1ce9ae=_0x1ce9ae-0x0;let _0x22b1c6=a744_0x2dbc[_0x1ce9ae];return _0x22b1c6;};const _0x3cc523=a744_0x22b1;'use strict';const express=require('express'),router=express[_0x3cc523('0x1')](),auth=require(_0x3cc523('0x6')),controller=require('./voicePrefix.controller');router[_0x3cc523('0x9')]('/',auth[_0x3cc523('0xc')](),controller[_0x3cc523('0x8')]),router[_0x3cc523('0x9')]('/describe',auth[_0x3cc523('0xc')](),controller[_0x3cc523('0x3')]),router['get'](_0x3cc523('0x7'),auth['isAuthenticated'](),controller[_0x3cc523('0x4')]),router[_0x3cc523('0x9')](_0x3cc523('0x2'),auth[_0x3cc523('0xc')](),controller[_0x3cc523('0xb')]),router['post']('/',auth[_0x3cc523('0xc')](),controller['create']),router['post'](_0x3cc523('0x2'),auth[_0x3cc523('0xc')](),controller[_0x3cc523('0xd')]),router[_0x3cc523('0x0')]('/:id',auth[_0x3cc523('0xc')](),controller['update']),router[_0x3cc523('0xe')](_0x3cc523('0x7'),auth[_0x3cc523('0xc')](),controller[_0x3cc523('0x5')]),router[_0x3cc523('0xe')](_0x3cc523('0x2'),auth[_0x3cc523('0xc')](),controller['removeAgents']),module[_0x3cc523('0xa')]=router; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.attributes.js b/server/api/voicePrefix/voicePrefix.attributes.js index 46a5832..1c25da4 100644 --- a/server/api/voicePrefix/voicePrefix.attributes.js +++ b/server/api/voicePrefix/voicePrefix.attributes.js @@ -1 +1 @@ -const a745_0x9062=['INTEGER','sequelize','exports','STRING','VIRTUAL','name'];(function(_0x2a5013,_0x906214){const _0x2c92ac=function(_0x1e97fa){while(--_0x1e97fa){_0x2a5013['push'](_0x2a5013['shift']());}};_0x2c92ac(++_0x906214);}(a745_0x9062,0x8a));const a745_0x2c92=function(_0x2a5013,_0x906214){_0x2a5013=_0x2a5013-0x0;let _0x2c92ac=a745_0x9062[_0x2a5013];return _0x2c92ac;};const _0x4f5d5f=a745_0x2c92;'use strict';const Sequelize=require(_0x4f5d5f('0x1'));module[_0x4f5d5f('0x2')]={'name':{'type':Sequelize[_0x4f5d5f('0x3')],'allowNull':![],'unique':_0x4f5d5f('0x5')},'prefix':{'type':Sequelize[_0x4f5d5f('0x4')],'get':function(){const _0x3710a1=_0x4f5d5f;return'system-'+this['getDataValue'](_0x3710a1('0x5'))+'-';}},'description':{'type':Sequelize['STRING']},'callerIdAll':{'type':Sequelize[_0x4f5d5f('0x3')]},'VoiceExtensionId':{'type':Sequelize[_0x4f5d5f('0x0')]}}; \ No newline at end of file +const a745_0x3af7=['STRING','INTEGER','getDataValue','system-','exports','sequelize'];(function(_0x47dc04,_0x3af798){const _0xbcf6f9=function(_0x26f104){while(--_0x26f104){_0x47dc04['push'](_0x47dc04['shift']());}};_0xbcf6f9(++_0x3af798);}(a745_0x3af7,0xd2));const a745_0xbcf6=function(_0x47dc04,_0x3af798){_0x47dc04=_0x47dc04-0x0;let _0xbcf6f9=a745_0x3af7[_0x47dc04];return _0xbcf6f9;};const _0x572eed=a745_0xbcf6;'use strict';const Sequelize=require(_0x572eed('0x5'));module[_0x572eed('0x4')]={'name':{'type':Sequelize[_0x572eed('0x0')],'allowNull':![],'unique':'name'},'prefix':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x222d64=_0x572eed;return _0x222d64('0x3')+this[_0x222d64('0x2')]('name')+'-';}},'description':{'type':Sequelize[_0x572eed('0x0')]},'callerIdAll':{'type':Sequelize['STRING']},'VoiceExtensionId':{'type':Sequelize[_0x572eed('0x1')]}}; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.controller.js b/server/api/voicePrefix/voicePrefix.controller.js index 617c82b..097b5bd 100644 --- a/server/api/voicePrefix/voicePrefix.controller.js +++ b/server/api/voicePrefix/voicePrefix.controller.js @@ -1 +1 @@ -const a746_0x5a84=['key','Extensions\x20creation\x20failed','describe','Voice\x20Prefix','app','prefix','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','end','send','role','rows','offset','show','update','user','name','rawAttributes','getAgents','intersection','query','VoicePrefixes','fields','json','attributes','create','undefined','goto','type','map','transaction','lodash','ids','${EXTEN:','CDR(prefix)=','system','VoiceExtensionId','merge','sendStatus','findByPk','length','order','VoicePrefixId','then','like','body','keys','catch','pick','where','nolimit','error','limit','../../rediscache','filter','isArray','charAt','../../mysqldb','fieldName','VIRTUAL','model','sort','omit','get','sequelize','UserProfileSection','VoicePrefix','addAgents','description','context','userProfileId','options','emit','stack','findOne','findAll','User','removeAgents','PREFIX-CALLERIDALL=','filters','includeAll','from-sip','./voicePrefix.socket','../../config/logger','status','VoiceExtension','userVoicePrefix:remove','NoOp','api','count','push','autoAssociation','params','destroy','Unable\x20to\x20retrieve\x20the\x20current\x20user','index','appdata'];(function(_0x40d3c2,_0x5a841e){const _0x6ea1df=function(_0x1de22f){while(--_0x1de22f){_0x40d3c2['push'](_0x40d3c2['shift']());}};_0x6ea1df(++_0x5a841e);}(a746_0x5a84,0x155));const a746_0x6ea1=function(_0x40d3c2,_0x5a841e){_0x40d3c2=_0x40d3c2-0x0;let _0x6ea1df=a746_0x5a84[_0x40d3c2];return _0x6ea1df;};const _0x52e6b6=a746_0x6ea1;'use strict';const _=require(_0x52e6b6('0x49')),qs=require('../../components/parsers/qs'),logger=require(_0x52e6b6('0x1d'))(_0x52e6b6('0x22')),{getSocket}=require(_0x52e6b6('0x5f')),socket=getSocket(),db=require(_0x52e6b6('0x3'))['db'],{Op}=require('sequelize');require(_0x52e6b6('0x1c'))['register'](socket);function respondWithStatusCode(_0x1de22f,_0x10e511){return _0x10e511=_0x10e511||0xcc,function(_0x4b7971){const _0x5e3f5c=a746_0x6ea1;if(_0x4b7971)return _0x1de22f[_0x5e3f5c('0x50')](_0x10e511);return _0x1de22f[_0x5e3f5c('0x1e')](_0x10e511)[_0x5e3f5c('0x32')]();};}function respondWithResult(_0x219fee,_0x316a7b){return _0x316a7b=_0x316a7b||0xc8,function(_0x3cb0bd){if(_0x3cb0bd)return _0x219fee['status'](_0x316a7b)['json'](_0x3cb0bd);};}function respondWithFilteredResult(_0x4d7a49,_0x4b1f1a){return function(_0x4672e9){const _0x547aa3=a746_0x6ea1;if(_0x4672e9){const _0x1ac129=_0x4672e9[_0x547aa3('0x23')],_0x2aebe6=_0x4b1f1a[_0x547aa3('0x36')];let _0x43e6f3=_0x4b1f1a[_0x547aa3('0x36')]+_0x4b1f1a[_0x547aa3('0x5e')],_0x5a6984;return _0x43e6f3>=_0x1ac129?(_0x43e6f3=_0x1ac129,_0x5a6984=0xc8):_0x5a6984=0xce,_0x4d7a49['status'](_0x5a6984),_0x4d7a49['set']('Content-Range',_0x2aebe6+'-'+_0x43e6f3+'/'+_0x1ac129)[_0x547aa3('0x41')](_0x4672e9);}return null;};}function removeEntity(_0x36c271){return function(_0xab1383){const _0x32fcaf=a746_0x6ea1;if(_0xab1383)return _0xab1383[_0x32fcaf('0x27')]()[_0x32fcaf('0x55')](function(){const _0x25b4f3=_0x32fcaf,_0x14aa32=_0xab1383[_0x25b4f3('0x9')]({'plain':!![]}),_0x1133c3='VoicePrefixes';return db['UserProfileResource'][_0x25b4f3('0x27')]({'where':{'type':_0x1133c3,'resourceId':_0x14aa32['id']}})[_0x25b4f3('0x55')](function(){return _0xab1383;});})['then'](function(){const _0x49f9ab=_0x32fcaf;_0x36c271[_0x49f9ab('0x1e')](0xcc)[_0x49f9ab('0x32')]();});};}function handleEntityNotFound(_0x28eda0){return function(_0x3052f5){const _0x47c865=a746_0x6ea1;return!_0x3052f5&&_0x28eda0[_0x47c865('0x50')](0x194),_0x3052f5;};}function handleError(_0x28c78c,_0x39beee){return _0x39beee=_0x39beee||0x1f4,function(_0x13dcc0){const _0x4e1b0d=a746_0x6ea1;logger[_0x4e1b0d('0x5d')](_0x13dcc0[_0x4e1b0d('0x13')]),_0x13dcc0[_0x4e1b0d('0x3a')]&&delete _0x13dcc0[_0x4e1b0d('0x3a')],_0x28c78c[_0x4e1b0d('0x1e')](_0x39beee)[_0x4e1b0d('0x33')](_0x13dcc0);};}exports[_0x52e6b6('0x29')]=function(_0x377b37,_0x26f80f){const _0x581a35=_0x52e6b6;let _0x24712d={};const _0x5e1ca4={},_0x507f02={'count':0x0,'rows':[]},_0x793ae6=_['map'](db[_0x581a35('0xc')][_0x581a35('0x3b')],function(_0xda2c6f){const _0x3e8bd1=_0x581a35;return{'name':_0xda2c6f[_0x3e8bd1('0x4')],'type':_0xda2c6f[_0x3e8bd1('0x46')][_0x3e8bd1('0x2b')]};});_0x5e1ca4[_0x581a35('0x6')]=_[_0x581a35('0x47')](_0x793ae6,_0x581a35('0x3a')),_0x5e1ca4[_0x581a35('0x3e')]=_[_0x581a35('0x58')](_0x377b37[_0x581a35('0x3e')]),_0x5e1ca4['filters']=_[_0x581a35('0x3d')](_0x5e1ca4[_0x581a35('0x6')],_0x5e1ca4[_0x581a35('0x3e')]),_0x24712d[_0x581a35('0x42')]=_[_0x581a35('0x3d')](_0x5e1ca4[_0x581a35('0x6')],qs['fields'](_0x377b37[_0x581a35('0x3e')][_0x581a35('0x40')])),_0x24712d['attributes']=_0x24712d[_0x581a35('0x42')][_0x581a35('0x52')]?_0x24712d['attributes']:_0x5e1ca4[_0x581a35('0x6')];typeof _0x377b37[_0x581a35('0x3e')][_0x581a35('0x5c')]===_0x581a35('0x44')&&(_0x24712d[_0x581a35('0x5e')]=qs['limit'](_0x377b37[_0x581a35('0x3e')][_0x581a35('0x5e')]),_0x24712d['offset']=qs[_0x581a35('0x36')](_0x377b37[_0x581a35('0x3e')][_0x581a35('0x36')]));_0x24712d[_0x581a35('0x53')]=qs['sort'](_0x377b37['query'][_0x581a35('0x7')]),_0x24712d[_0x581a35('0x5b')]=qs[_0x581a35('0x19')](_[_0x581a35('0x5a')](_0x377b37[_0x581a35('0x3e')],_0x5e1ca4[_0x581a35('0x19')]),_0x793ae6);_0x377b37['query']['filter']&&(_0x24712d[_0x581a35('0x5b')]=_[_0x581a35('0x4f')](_0x24712d['where'],{[Op['or']]:_[_0x581a35('0x47')](_0x793ae6,function(_0x4b29f7){const _0x450928=_0x581a35;if(_0x4b29f7['type']!==_0x450928('0x5')){const _0x3ef33f={};return _0x3ef33f[_0x4b29f7[_0x450928('0x3a')]]={[Op[_0x450928('0x56')]]:'%'+_0x377b37[_0x450928('0x3e')]['filter']+'%'},_0x3ef33f;}})}));_0x24712d=_['merge']({},_0x24712d,_0x377b37[_0x581a35('0x11')]);const _0x35ed06={'where':_0x24712d['where']};return db['VoicePrefix'][_0x581a35('0x23')](_0x35ed06)[_0x581a35('0x55')](function(_0x5f1068){const _0x371773=_0x581a35;return _0x507f02[_0x371773('0x23')]=_0x5f1068,_0x377b37[_0x371773('0x3e')][_0x371773('0x1a')]&&(_0x24712d['include']=[{'all':!![]}]),db['VoicePrefix'][_0x371773('0x15')](_0x24712d);})[_0x581a35('0x55')](function(_0x4eb615){const _0x1793ed=_0x581a35;return _0x507f02[_0x1793ed('0x35')]=_0x4eb615,_0x507f02;})[_0x581a35('0x55')](respondWithFilteredResult(_0x26f80f,_0x24712d))[_0x581a35('0x59')](handleError(_0x26f80f,null));},exports[_0x52e6b6('0x37')]=function(_0x2f5424,_0x261537){const _0x428fdd=_0x52e6b6;let _0x3e56ad={'raw':![],'where':{'id':_0x2f5424[_0x428fdd('0x26')]['id']}};const _0x4397c4={};return _0x4397c4[_0x428fdd('0x6')]=_[_0x428fdd('0x58')](db[_0x428fdd('0xc')][_0x428fdd('0x3b')]),_0x4397c4[_0x428fdd('0x3e')]=_[_0x428fdd('0x58')](_0x2f5424[_0x428fdd('0x3e')]),_0x4397c4[_0x428fdd('0x19')]=_['intersection'](_0x4397c4['model'],_0x4397c4[_0x428fdd('0x3e')]),_0x3e56ad[_0x428fdd('0x42')]=_['intersection'](_0x4397c4[_0x428fdd('0x6')],qs[_0x428fdd('0x40')](_0x2f5424['query'][_0x428fdd('0x40')])),_0x3e56ad[_0x428fdd('0x42')]=_0x3e56ad['attributes'][_0x428fdd('0x52')]?_0x3e56ad[_0x428fdd('0x42')]:_0x4397c4[_0x428fdd('0x6')],_0x2f5424['query'][_0x428fdd('0x1a')]&&(_0x3e56ad['include']=[{'all':!![]}]),_0x3e56ad=_[_0x428fdd('0x4f')]({},_0x3e56ad,_0x2f5424['options']),db[_0x428fdd('0xc')][_0x428fdd('0x14')](_0x3e56ad)[_0x428fdd('0x55')](handleEntityNotFound(_0x261537,null))['then'](respondWithResult(_0x261537,null))['catch'](handleError(_0x261537,null));},exports[_0x52e6b6('0x27')]=function(_0x20b49c,_0x1fa783){const _0x25654f=_0x52e6b6;return db['VoicePrefix'][_0x25654f('0x14')]({'where':{'id':_0x20b49c['params']['id']}})[_0x25654f('0x55')](handleEntityNotFound(_0x1fa783,null))[_0x25654f('0x55')](removeEntity(_0x1fa783,null))[_0x25654f('0x59')](handleError(_0x1fa783,null));},exports[_0x52e6b6('0x2d')]=function(_0x2f20da,_0x451069){const _0x4c16bf=_0x52e6b6;return db[_0x4c16bf('0xc')][_0x4c16bf('0x2d')]()[_0x4c16bf('0x55')](respondWithResult(_0x451069,null))[_0x4c16bf('0x59')](handleError(_0x451069,null));},exports[_0x52e6b6('0x43')]=function(_0x2e8b81,_0xc6570c){const _0x24b58a=_0x52e6b6;let _0x4ccdfb;return db[_0x24b58a('0xa')]['transaction'](function(_0x24cfae){const _0x4de064=_0x24b58a;return db[_0x4de064('0xc')][_0x4de064('0x43')](_0x2e8b81['body'],{'transaction':_0x24cfae})[_0x4de064('0x55')](function(_0x9d8459){const _0x5d1c48=_0x4de064;return _0x4ccdfb=_0x9d8459[_0x5d1c48('0x9')]({'plain':!![]}),db['VoiceExtension'][_0x5d1c48('0x14')]({'where':{'id':_0x4ccdfb[_0x5d1c48('0x4e')]},'raw':!![]})[_0x5d1c48('0x55')](function(_0xa5b56a){return createVoicePrefixExtensions(_0x4ccdfb,_0xa5b56a,_0x24cfae);});});})[_0x24b58a('0x55')](function(){const _0x8eb8de=_0x24b58a,_0x5b0925=_0x2e8b81[_0x8eb8de('0x39')][_0x8eb8de('0x9')]({'plain':!![]});if(!_0x5b0925)throw new Error(_0x8eb8de('0x28'));if(_0x5b0925[_0x8eb8de('0x34')]===_0x8eb8de('0x39')){const _0xe3428e=_0x4ccdfb;return db[_0x8eb8de('0xb')][_0x8eb8de('0x14')]({'where':{'name':_0x8eb8de('0x3f'),'userProfileId':_0x5b0925[_0x8eb8de('0x10')]},'raw':!![]})[_0x8eb8de('0x55')](function(_0x3bcdbc){const _0x12c396=_0x8eb8de;return _0x3bcdbc&&_0x3bcdbc[_0x12c396('0x25')]===0x0?db['UserProfileResource'][_0x12c396('0x43')]({'name':_0xe3428e[_0x12c396('0x3a')],'resourceId':_0xe3428e['id'],'type':_0x3bcdbc[_0x12c396('0x3a')],'sectionId':_0x3bcdbc['id']},{})['then'](function(){return _0x4ccdfb;}):_0x4ccdfb;})[_0x8eb8de('0x59')](function(_0x60a6fe){const _0x3f2730=_0x8eb8de;logger[_0x3f2730('0x5d')](_0x3f2730('0x31'),_0x60a6fe);throw _0x60a6fe;});}return _0x4ccdfb;})[_0x24b58a('0x55')](respondWithResult(_0xc6570c,null))[_0x24b58a('0x59')](handleError(_0xc6570c,null));};function Extension(_0x1c3250,_0x46e007,_0x3dcf81,_0x213c37){const _0x47ff85=_0x52e6b6;this[_0x47ff85('0xf')]=_0x47ff85('0x1b'),this['exten']=_0x1c3250,this[_0x47ff85('0x2f')]=_0x3dcf81,this[_0x47ff85('0x46')]=_0x47ff85('0x4d'),this[_0x47ff85('0xe')]='Voice\x20Prefix\x20Extension',this['priority']=_0x46e007,this[_0x47ff85('0x2a')]=_0x213c37;}function createVoicePrefixExtensions(_0x471e46,_0x174af7,_0x4db4e8){return new Promise(function(_0x2a6c07,_0x3dfad4){const _0x217a73=a746_0x6ea1,_0x6a6466=new Extension(formatPrefixName(_0x471e46[_0x217a73('0x30')]),0x1,_0x217a73('0x21'),_0x217a73('0x2e'));return _0x6a6466[_0x217a73('0x54')]=_0x471e46['id'],db[_0x217a73('0x1f')][_0x217a73('0x43')](_0x6a6466,{'transaction':_0x4db4e8})['then'](function(_0x468a08){const _0x2d8378=_0x217a73,_0x2c6bf7=_0x468a08[_0x2d8378('0x9')]({'plain':!![]}),_0x5106a5=_['map'](addVoicePrefixExtensions(_0x471e46,_0x174af7),function(_0x1272bc){const _0x4bd485=_0x2d8378;return _0x1272bc['VoiceExtensionId']=_0x2c6bf7['id'],_0x1272bc[_0x4bd485('0x54')]=_0x471e46['id'],_0x1272bc;});return db[_0x2d8378('0x1f')]['bulkCreate'](_0x5106a5,{'transaction':_0x4db4e8})[_0x2d8378('0x55')](function(_0x3cc907){const _0x3ee2f8=_0x2d8378;return!_0x3cc907?_0x3dfad4(_0x3ee2f8('0x2c')):_0x2a6c07(_0x3cc907);})[_0x2d8378('0x59')](function(_0x317a29){return _0x3dfad4(_0x317a29);});});});}function addVoicePrefixExtensions(_0x3d88f7,_0x5f39fe){const _0xf340fd=_0x52e6b6,_0x500bb2=[],_0x37537b=formatPrefixName(_0x3d88f7['prefix']);return _0x500bb2[_0xf340fd('0x24')](new Extension(_0x37537b,0x2,'Set',_0xf340fd('0x4c')+_0x3d88f7[_0xf340fd('0x3a')])),_0x3d88f7['callerIdAll']?_0x500bb2[_0xf340fd('0x24')](new Extension(_0x37537b,0x3,'Set',_0xf340fd('0x18')+_0x3d88f7['callerIdAll'])):_0x500bb2[_0xf340fd('0x24')](new Extension(_0x37537b,0x3,_0xf340fd('0x21'),'No\x20callerid\x20available')),_0x500bb2[_0xf340fd('0x24')](new Extension(_0x37537b,0x4,_0xf340fd('0x45'),_0x5f39fe[_0xf340fd('0xf')]+','+_0xf340fd('0x4b')+(0x8+_0x3d88f7[_0xf340fd('0x3a')][_0xf340fd('0x52')])+'}'+','+0x1)),_0x500bb2;}function formatPrefixName(_0x56961e){const _0x135dfb=_0x52e6b6;let _0x177742='_';for(let _0x197a7c=0x0;_0x197a7c<_0x56961e[_0x135dfb('0x52')];_0x197a7c++){_0x56961e[_0x135dfb('0x2')](_0x197a7c)=='-'?_0x177742+=_0x56961e[_0x135dfb('0x2')](_0x197a7c):_0x177742+='['+_0x56961e[_0x135dfb('0x2')](_0x197a7c)+']';}return _0x177742+='.',_0x177742;}exports[_0x52e6b6('0x38')]=function(_0x10bd41,_0x625d7a){const _0x51e30d=_0x52e6b6,_0x2de7c3=_0x10bd41[_0x51e30d('0x57')];return _0x2de7c3['prefix']='system-'+_0x2de7c3[_0x51e30d('0x3a')]+'-',db['sequelize'][_0x51e30d('0x48')](function(_0x4a3b4d){const _0x237820=_0x51e30d;return db[_0x237820('0xc')][_0x237820('0x38')](_0x2de7c3,{'where':{'id':_0x2de7c3['id']},'transaction':_0x4a3b4d})['then'](function(){const _0x41ac05=_0x237820;return db[_0x41ac05('0x1f')][_0x41ac05('0x27')]({'where':{'VoicePrefixId':_0x2de7c3['id']},'transaction':_0x4a3b4d})[_0x41ac05('0x55')](function(){const _0x45877c=_0x41ac05;return db[_0x45877c('0x1f')][_0x45877c('0x14')]({'where':{'id':_0x2de7c3['VoiceExtensionId']},'raw':!![]})['then'](function(_0xedf35c){return createVoicePrefixExtensions(_0x2de7c3,_0xedf35c,_0x4a3b4d);});});});})['then'](function(){const _0x5532c7=_0x51e30d;return db[_0x5532c7('0xc')][_0x5532c7('0x51')](_0x2de7c3['id']);})['then'](respondWithResult(_0x625d7a,null))['catch'](handleError(_0x625d7a,null));},exports[_0x52e6b6('0xd')]=function(_0x3b2cce,_0x39663c){const _0x50a486=_0x52e6b6;return db[_0x50a486('0xc')][_0x50a486('0x14')]({'where':{'id':_0x3b2cce[_0x50a486('0x26')]['id']}})['then'](function(_0x45f082){const _0x41b5c0=_0x50a486;if(_0x45f082)return _0x45f082['addAgents'](_0x3b2cce[_0x41b5c0('0x57')]['ids'],{'through':_[_0x41b5c0('0x8')](_0x3b2cce[_0x41b5c0('0x57')],[_0x41b5c0('0x4a'),'id'])})[_0x41b5c0('0x55')](function(_0x125860){const _0x3ce9bb=_0x41b5c0;for(let _0x2c20ae=0x0;_0x2c20ae<_0x3b2cce[_0x3ce9bb('0x57')][_0x3ce9bb('0x4a')][_0x3ce9bb('0x52')];_0x2c20ae+=0x1){socket['emit']('userVoicePrefix:save',{'UserId':_0x3b2cce['body'][_0x3ce9bb('0x4a')][_0x2c20ae],'VoicePrefixId':_0x3b2cce[_0x3ce9bb('0x26')]['id']});}return _0x125860;});})['then'](respondWithResult(_0x39663c,null))['catch'](handleError(_0x39663c,null));},exports[_0x52e6b6('0x17')]=function(_0x130f68,_0x4f2213){const _0x5ee240=_0x52e6b6;return db[_0x5ee240('0xc')][_0x5ee240('0x14')]({'where':{'id':_0x130f68['params']['id']}})[_0x5ee240('0x55')](handleEntityNotFound(_0x4f2213,null))['then'](function(_0x29de2b){const _0x121667=_0x5ee240;if(_0x29de2b)return _0x29de2b['removeAgents'](_0x130f68[_0x121667('0x3e')][_0x121667('0x4a')])[_0x121667('0x55')](function(){const _0x2c8e45=_0x121667;if(_[_0x2c8e45('0x1')](_0x130f68[_0x2c8e45('0x3e')]['ids']))for(let _0x8ecc9a=0x0;_0x8ecc9a<_0x130f68[_0x2c8e45('0x3e')]['ids'][_0x2c8e45('0x52')];_0x8ecc9a+=0x1){socket['emit'](_0x2c8e45('0x20'),{'UserId':Number(_0x130f68['query'][_0x2c8e45('0x4a')][_0x8ecc9a]),'VoicePrefixId':Number(_0x130f68[_0x2c8e45('0x26')]['id'])});}else socket[_0x2c8e45('0x12')](_0x2c8e45('0x20'),{'UserId':Number(_0x130f68[_0x2c8e45('0x3e')][_0x2c8e45('0x4a')]),'VoicePrefixId':Number(_0x130f68[_0x2c8e45('0x26')]['id'])});});})['then'](respondWithStatusCode(_0x4f2213,null))['catch'](handleError(_0x4f2213,null));},exports[_0x52e6b6('0x3c')]=function(_0x4d7b37,_0xa60061){const _0x35026a=_0x52e6b6;let _0x46f694={};const _0x28b5c6={};let _0x26d3b9,_0x49e0d6;return db[_0x35026a('0xc')][_0x35026a('0x14')]({'where':{'id':_0x4d7b37[_0x35026a('0x26')]['id']}})['then'](handleEntityNotFound(_0xa60061,null))[_0x35026a('0x55')](function(_0xfbcfd9){const _0x6c39e1=_0x35026a;if(_0xfbcfd9)return _0x26d3b9=_0xfbcfd9,_0x28b5c6['model']=_[_0x6c39e1('0x58')](db[_0x6c39e1('0x16')]['rawAttributes']),_0x28b5c6[_0x6c39e1('0x3e')]=_[_0x6c39e1('0x58')](_0x4d7b37[_0x6c39e1('0x3e')]),_0x28b5c6[_0x6c39e1('0x19')]=_[_0x6c39e1('0x3d')](_0x28b5c6[_0x6c39e1('0x6')],_0x28b5c6[_0x6c39e1('0x3e')]),_0x46f694[_0x6c39e1('0x42')]=_[_0x6c39e1('0x3d')](_0x28b5c6[_0x6c39e1('0x6')],qs['fields'](_0x4d7b37[_0x6c39e1('0x3e')][_0x6c39e1('0x40')])),_0x46f694[_0x6c39e1('0x42')]=_0x46f694['attributes']['length']?_0x46f694[_0x6c39e1('0x42')]:_0x28b5c6['model'],_0x46f694['order']=qs['sort'](_0x4d7b37['query'][_0x6c39e1('0x7')]),_0x46f694['where']=qs['filters'](_[_0x6c39e1('0x5a')](_0x4d7b37[_0x6c39e1('0x3e')],_0x28b5c6[_0x6c39e1('0x19')])),_0x4d7b37[_0x6c39e1('0x3e')][_0x6c39e1('0x0')]&&(_0x46f694[_0x6c39e1('0x5b')]=_['merge'](_0x46f694[_0x6c39e1('0x5b')],{[Op['or']]:_[_0x6c39e1('0x47')](_0x46f694[_0x6c39e1('0x42')],function(_0xf875c5){const _0x91ef2c=_0x6c39e1,_0x55356d={};return _0x55356d[_0xf875c5]={[Op[_0x91ef2c('0x56')]]:'%'+_0x4d7b37[_0x91ef2c('0x3e')]['filter']+'%'},_0x55356d;})})),_0x46f694=_[_0x6c39e1('0x4f')]({},_0x46f694,_0x4d7b37[_0x6c39e1('0x11')]),_0x26d3b9[_0x6c39e1('0x3c')](_0x46f694);})[_0x35026a('0x55')](function(_0xd0262a){const _0x11aa7f=_0x35026a;if(_0xd0262a)return _0x49e0d6=_0xd0262a[_0x11aa7f('0x52')],typeof _0x4d7b37[_0x11aa7f('0x3e')][_0x11aa7f('0x5c')]===_0x11aa7f('0x44')&&(_0x46f694['limit']=qs[_0x11aa7f('0x5e')](_0x4d7b37[_0x11aa7f('0x3e')]['limit']),_0x46f694[_0x11aa7f('0x36')]=qs['offset'](_0x4d7b37[_0x11aa7f('0x3e')][_0x11aa7f('0x36')])),_0x26d3b9[_0x11aa7f('0x3c')](_0x46f694);})[_0x35026a('0x55')](function(_0x31cacf){if(_0x31cacf)return _0x31cacf?{'count':_0x49e0d6,'rows':_0x31cacf}:null;})[_0x35026a('0x55')](respondWithResult(_0xa60061,null))[_0x35026a('0x59')](handleError(_0xa60061,null));}; \ No newline at end of file +const a746_0x3b31=['VoiceExtensionId','filters','filter','show','VoicePrefixes','../../config/logger','sendStatus','key','findByPk','push','PREFIX-CALLERIDALL=','api','lodash','destroy','findAll','exten','removeAgents','limit','undefined','priority','userVoicePrefix:remove','type','keys','charAt','pick','get','params','sort','Voice\x20Prefix\x20Extension','fields','count','getAgents','callerIdAll','description','merge','sequelize','json','../../mysqldb','VIRTUAL','body','../../rediscache','options','rows','VoicePrefixId','include','Set','index','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','emit','update','length','offset','UserProfileSection','status','prefix','map','addAgents','describe','Voice\x20Prefix','findOne','user','VoiceExtension','then','transaction','catch','query','omit','userProfileId','register','isArray','role','system-','where','send','VoicePrefix','name','create','error','context','order','intersection','attributes','UserProfileResource','includeAll','ids','set','Extensions\x20creation\x20failed','from-sip','rawAttributes','end','system','app','userVoicePrefix:save','nolimit','autoAssociation','NoOp','${EXTEN:','User','appdata','goto','like','model'];(function(_0x166782,_0x3b3121){const _0x4f522f=function(_0x3ea544){while(--_0x3ea544){_0x166782['push'](_0x166782['shift']());}};_0x4f522f(++_0x3b3121);}(a746_0x3b31,0x152));const a746_0x4f52=function(_0x166782,_0x3b3121){_0x166782=_0x166782-0x0;let _0x4f522f=a746_0x3b31[_0x166782];return _0x4f522f;};const _0x3c2f85=a746_0x4f52;'use strict';const _=require(_0x3c2f85('0x52')),qs=require('../../components/parsers/qs'),logger=require(_0x3c2f85('0x4b'))(_0x3c2f85('0x51')),{getSocket}=require(_0x3c2f85('0x8')),socket=getSocket(),db=require(_0x3c2f85('0x5'))['db'],{Op}=require('sequelize');require('./voicePrefix.socket')[_0x3c2f85('0x24')](socket);function respondWithStatusCode(_0x3ea544,_0x519942){return _0x519942=_0x519942||0xcc,function(_0x3b4090){const _0x4b9fc1=a746_0x4f52;if(_0x3b4090)return _0x3ea544['sendStatus'](_0x519942);return _0x3ea544[_0x4b9fc1('0x15')](_0x519942)[_0x4b9fc1('0x39')]();};}function respondWithResult(_0x466994,_0x29fed0){return _0x29fed0=_0x29fed0||0xc8,function(_0xc89ff1){const _0x4de242=a746_0x4f52;if(_0xc89ff1)return _0x466994['status'](_0x29fed0)[_0x4de242('0x4')](_0xc89ff1);};}function respondWithFilteredResult(_0x4aa2c1,_0x44f4f8){return function(_0x5a0677){const _0xae9236=a746_0x4f52;if(_0x5a0677){const _0x523a62=_0x5a0677[_0xae9236('0x64')],_0x596b79=_0x44f4f8[_0xae9236('0x13')];let _0xe29df6=_0x44f4f8[_0xae9236('0x13')]+_0x44f4f8['limit'],_0x33d4f1;return _0xe29df6>=_0x523a62?(_0xe29df6=_0x523a62,_0x33d4f1=0xc8):_0x33d4f1=0xce,_0x4aa2c1[_0xae9236('0x15')](_0x33d4f1),_0x4aa2c1[_0xae9236('0x35')]('Content-Range',_0x596b79+'-'+_0xe29df6+'/'+_0x523a62)[_0xae9236('0x4')](_0x5a0677);}return null;};}function removeEntity(_0x39395b){return function(_0x3019b8){const _0x1020b9=a746_0x4f52;if(_0x3019b8)return _0x3019b8['destroy']()[_0x1020b9('0x1e')](function(){const _0x3e30fe=_0x1020b9,_0x2183ce=_0x3019b8[_0x3e30fe('0x5f')]({'plain':!![]}),_0x5a1a2e='VoicePrefixes';return db[_0x3e30fe('0x32')][_0x3e30fe('0x53')]({'where':{'type':_0x5a1a2e,'resourceId':_0x2183ce['id']}})[_0x3e30fe('0x1e')](function(){return _0x3019b8;});})[_0x1020b9('0x1e')](function(){const _0x809cbd=_0x1020b9;_0x39395b[_0x809cbd('0x15')](0xcc)[_0x809cbd('0x39')]();});};}function handleEntityNotFound(_0x3a7158){return function(_0x5e53b2){const _0x55bcd8=a746_0x4f52;return!_0x5e53b2&&_0x3a7158[_0x55bcd8('0x4c')](0x194),_0x5e53b2;};}function handleError(_0x9a55ff,_0x34dd71){return _0x34dd71=_0x34dd71||0x1f4,function(_0x1e48bd){const _0x3b162c=a746_0x4f52;logger[_0x3b162c('0x2d')](_0x1e48bd['stack']),_0x1e48bd[_0x3b162c('0x2b')]&&delete _0x1e48bd[_0x3b162c('0x2b')],_0x9a55ff['status'](_0x34dd71)[_0x3b162c('0x29')](_0x1e48bd);};}exports[_0x3c2f85('0xe')]=function(_0x3d0529,_0x5e1dab){const _0x335285=_0x3c2f85;let _0x13142d={};const _0x34992c={},_0x23127d={'count':0x0,'rows':[]},_0xde72f3=_[_0x335285('0x17')](db[_0x335285('0x2a')]['rawAttributes'],function(_0x50ccac){const _0x142c6e=_0x335285;return{'name':_0x50ccac['fieldName'],'type':_0x50ccac[_0x142c6e('0x5b')][_0x142c6e('0x4d')]};});_0x34992c[_0x335285('0x45')]=_[_0x335285('0x17')](_0xde72f3,'name'),_0x34992c[_0x335285('0x21')]=_[_0x335285('0x5c')](_0x3d0529[_0x335285('0x21')]),_0x34992c[_0x335285('0x47')]=_[_0x335285('0x30')](_0x34992c[_0x335285('0x45')],_0x34992c[_0x335285('0x21')]),_0x13142d[_0x335285('0x31')]=_[_0x335285('0x30')](_0x34992c[_0x335285('0x45')],qs[_0x335285('0x63')](_0x3d0529[_0x335285('0x21')][_0x335285('0x63')])),_0x13142d['attributes']=_0x13142d[_0x335285('0x31')][_0x335285('0x12')]?_0x13142d[_0x335285('0x31')]:_0x34992c[_0x335285('0x45')];typeof _0x3d0529[_0x335285('0x21')][_0x335285('0x3d')]==='undefined'&&(_0x13142d[_0x335285('0x57')]=qs[_0x335285('0x57')](_0x3d0529[_0x335285('0x21')]['limit']),_0x13142d['offset']=qs['offset'](_0x3d0529[_0x335285('0x21')]['offset']));_0x13142d[_0x335285('0x2f')]=qs['sort'](_0x3d0529[_0x335285('0x21')][_0x335285('0x61')]),_0x13142d[_0x335285('0x28')]=qs['filters'](_['pick'](_0x3d0529[_0x335285('0x21')],_0x34992c[_0x335285('0x47')]),_0xde72f3);_0x3d0529[_0x335285('0x21')][_0x335285('0x48')]&&(_0x13142d[_0x335285('0x28')]=_[_0x335285('0x2')](_0x13142d[_0x335285('0x28')],{[Op['or']]:_[_0x335285('0x17')](_0xde72f3,function(_0x5d9b18){const _0x286b3c=_0x335285;if(_0x5d9b18[_0x286b3c('0x5b')]!==_0x286b3c('0x6')){const _0x3c9fe8={};return _0x3c9fe8[_0x5d9b18['name']]={[Op[_0x286b3c('0x44')]]:'%'+_0x3d0529[_0x286b3c('0x21')]['filter']+'%'},_0x3c9fe8;}})}));_0x13142d=_[_0x335285('0x2')]({},_0x13142d,_0x3d0529[_0x335285('0x9')]);const _0x1ab5d0={'where':_0x13142d[_0x335285('0x28')]};return db[_0x335285('0x2a')]['count'](_0x1ab5d0)[_0x335285('0x1e')](function(_0x489466){const _0x415cec=_0x335285;return _0x23127d['count']=_0x489466,_0x3d0529[_0x415cec('0x21')]['includeAll']&&(_0x13142d[_0x415cec('0xc')]=[{'all':!![]}]),db[_0x415cec('0x2a')][_0x415cec('0x54')](_0x13142d);})['then'](function(_0x176ab2){const _0x819b15=_0x335285;return _0x23127d[_0x819b15('0xa')]=_0x176ab2,_0x23127d;})['then'](respondWithFilteredResult(_0x5e1dab,_0x13142d))[_0x335285('0x20')](handleError(_0x5e1dab,null));},exports[_0x3c2f85('0x49')]=function(_0x5b02aa,_0x4c7723){const _0x388f21=_0x3c2f85;let _0x233e95={'raw':![],'where':{'id':_0x5b02aa[_0x388f21('0x60')]['id']}};const _0x5f4b39={};return _0x5f4b39[_0x388f21('0x45')]=_[_0x388f21('0x5c')](db[_0x388f21('0x2a')]['rawAttributes']),_0x5f4b39[_0x388f21('0x21')]=_['keys'](_0x5b02aa[_0x388f21('0x21')]),_0x5f4b39[_0x388f21('0x47')]=_[_0x388f21('0x30')](_0x5f4b39[_0x388f21('0x45')],_0x5f4b39[_0x388f21('0x21')]),_0x233e95[_0x388f21('0x31')]=_[_0x388f21('0x30')](_0x5f4b39[_0x388f21('0x45')],qs['fields'](_0x5b02aa[_0x388f21('0x21')][_0x388f21('0x63')])),_0x233e95[_0x388f21('0x31')]=_0x233e95[_0x388f21('0x31')][_0x388f21('0x12')]?_0x233e95['attributes']:_0x5f4b39[_0x388f21('0x45')],_0x5b02aa['query'][_0x388f21('0x33')]&&(_0x233e95[_0x388f21('0xc')]=[{'all':!![]}]),_0x233e95=_[_0x388f21('0x2')]({},_0x233e95,_0x5b02aa[_0x388f21('0x9')]),db[_0x388f21('0x2a')][_0x388f21('0x1b')](_0x233e95)['then'](handleEntityNotFound(_0x4c7723,null))[_0x388f21('0x1e')](respondWithResult(_0x4c7723,null))[_0x388f21('0x20')](handleError(_0x4c7723,null));},exports[_0x3c2f85('0x53')]=function(_0x188899,_0x2cda60){const _0x50a72a=_0x3c2f85;return db[_0x50a72a('0x2a')][_0x50a72a('0x1b')]({'where':{'id':_0x188899[_0x50a72a('0x60')]['id']}})[_0x50a72a('0x1e')](handleEntityNotFound(_0x2cda60,null))['then'](removeEntity(_0x2cda60,null))[_0x50a72a('0x20')](handleError(_0x2cda60,null));},exports['describe']=function(_0x14aa79,_0x219617){const _0x4bc44c=_0x3c2f85;return db[_0x4bc44c('0x2a')][_0x4bc44c('0x19')]()['then'](respondWithResult(_0x219617,null))[_0x4bc44c('0x20')](handleError(_0x219617,null));},exports[_0x3c2f85('0x2c')]=function(_0x53ebaa,_0x2d2c1d){const _0x31da43=_0x3c2f85;let _0x5f3ded;return db[_0x31da43('0x3')]['transaction'](function(_0x1f0acc){const _0x179f7c=_0x31da43;return db[_0x179f7c('0x2a')][_0x179f7c('0x2c')](_0x53ebaa[_0x179f7c('0x7')],{'transaction':_0x1f0acc})[_0x179f7c('0x1e')](function(_0x4ad6fc){const _0x303f9b=_0x179f7c;return _0x5f3ded=_0x4ad6fc[_0x303f9b('0x5f')]({'plain':!![]}),db['VoiceExtension'][_0x303f9b('0x1b')]({'where':{'id':_0x5f3ded[_0x303f9b('0x46')]},'raw':!![]})[_0x303f9b('0x1e')](function(_0x13bc2a){return createVoicePrefixExtensions(_0x5f3ded,_0x13bc2a,_0x1f0acc);});});})[_0x31da43('0x1e')](function(){const _0x4f6db9=_0x31da43,_0x3ef2a8=_0x53ebaa[_0x4f6db9('0x1c')][_0x4f6db9('0x5f')]({'plain':!![]});if(!_0x3ef2a8)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3ef2a8[_0x4f6db9('0x26')]==='user'){const _0x65a8f=_0x5f3ded;return db[_0x4f6db9('0x14')]['findOne']({'where':{'name':_0x4f6db9('0x4a'),'userProfileId':_0x3ef2a8[_0x4f6db9('0x23')]},'raw':!![]})['then'](function(_0x27fa5c){const _0x1b5a72=_0x4f6db9;return _0x27fa5c&&_0x27fa5c[_0x1b5a72('0x3e')]===0x0?db[_0x1b5a72('0x32')]['create']({'name':_0x65a8f[_0x1b5a72('0x2b')],'resourceId':_0x65a8f['id'],'type':_0x27fa5c[_0x1b5a72('0x2b')],'sectionId':_0x27fa5c['id']},{})['then'](function(){return _0x5f3ded;}):_0x5f3ded;})['catch'](function(_0x2c5978){const _0x324590=_0x4f6db9;logger[_0x324590('0x2d')](_0x324590('0xf'),_0x2c5978);throw _0x2c5978;});}return _0x5f3ded;})[_0x31da43('0x1e')](respondWithResult(_0x2d2c1d,null))['catch'](handleError(_0x2d2c1d,null));};function Extension(_0x3d417c,_0x43de36,_0x45cd0b,_0x2ad682){const _0x28608e=_0x3c2f85;this[_0x28608e('0x2e')]=_0x28608e('0x37'),this[_0x28608e('0x55')]=_0x3d417c,this[_0x28608e('0x3b')]=_0x45cd0b,this[_0x28608e('0x5b')]=_0x28608e('0x3a'),this[_0x28608e('0x1')]=_0x28608e('0x62'),this[_0x28608e('0x59')]=_0x43de36,this[_0x28608e('0x42')]=_0x2ad682;}function createVoicePrefixExtensions(_0x1d38f4,_0x3fdf4f,_0x2af872){return new Promise(function(_0x75113b,_0x2a79f2){const _0xc677e=a746_0x4f52,_0x148ad5=new Extension(formatPrefixName(_0x1d38f4[_0xc677e('0x16')]),0x1,_0xc677e('0x3f'),_0xc677e('0x1a'));return _0x148ad5[_0xc677e('0xb')]=_0x1d38f4['id'],db[_0xc677e('0x1d')][_0xc677e('0x2c')](_0x148ad5,{'transaction':_0x2af872})['then'](function(_0x5be0ab){const _0x1ebb30=_0xc677e,_0x2c13b3=_0x5be0ab[_0x1ebb30('0x5f')]({'plain':!![]}),_0x903027=_['map'](addVoicePrefixExtensions(_0x1d38f4,_0x3fdf4f),function(_0x1e685b){return _0x1e685b['VoiceExtensionId']=_0x2c13b3['id'],_0x1e685b['VoicePrefixId']=_0x1d38f4['id'],_0x1e685b;});return db[_0x1ebb30('0x1d')]['bulkCreate'](_0x903027,{'transaction':_0x2af872})[_0x1ebb30('0x1e')](function(_0x465201){const _0x5e0a0b=_0x1ebb30;return!_0x465201?_0x2a79f2(_0x5e0a0b('0x36')):_0x75113b(_0x465201);})[_0x1ebb30('0x20')](function(_0x1a6da7){return _0x2a79f2(_0x1a6da7);});});});}function addVoicePrefixExtensions(_0x51170d,_0x2634da){const _0x91d859=_0x3c2f85,_0x2838f5=[],_0x3b1dc4=formatPrefixName(_0x51170d['prefix']);return _0x2838f5[_0x91d859('0x4f')](new Extension(_0x3b1dc4,0x2,_0x91d859('0xd'),'CDR(prefix)='+_0x51170d[_0x91d859('0x2b')])),_0x51170d[_0x91d859('0x0')]?_0x2838f5[_0x91d859('0x4f')](new Extension(_0x3b1dc4,0x3,_0x91d859('0xd'),_0x91d859('0x50')+_0x51170d[_0x91d859('0x0')])):_0x2838f5[_0x91d859('0x4f')](new Extension(_0x3b1dc4,0x3,'NoOp','No\x20callerid\x20available')),_0x2838f5['push'](new Extension(_0x3b1dc4,0x4,_0x91d859('0x43'),_0x2634da['context']+','+_0x91d859('0x40')+(0x8+_0x51170d[_0x91d859('0x2b')][_0x91d859('0x12')])+'}'+','+0x1)),_0x2838f5;}function formatPrefixName(_0xbe95ff){const _0x447429=_0x3c2f85;let _0x40535d='_';for(let _0x1668a0=0x0;_0x1668a0<_0xbe95ff[_0x447429('0x12')];_0x1668a0++){_0xbe95ff[_0x447429('0x5d')](_0x1668a0)=='-'?_0x40535d+=_0xbe95ff[_0x447429('0x5d')](_0x1668a0):_0x40535d+='['+_0xbe95ff[_0x447429('0x5d')](_0x1668a0)+']';}return _0x40535d+='.',_0x40535d;}exports[_0x3c2f85('0x11')]=function(_0x3e53fd,_0x450080){const _0xf384b8=_0x3c2f85,_0x564932=_0x3e53fd['body'];return _0x564932['prefix']=_0xf384b8('0x27')+_0x564932[_0xf384b8('0x2b')]+'-',db[_0xf384b8('0x3')][_0xf384b8('0x1f')](function(_0x3e5fba){const _0x401e13=_0xf384b8;return db[_0x401e13('0x2a')][_0x401e13('0x11')](_0x564932,{'where':{'id':_0x564932['id']},'transaction':_0x3e5fba})['then'](function(){const _0x5efd77=_0x401e13;return db[_0x5efd77('0x1d')]['destroy']({'where':{'VoicePrefixId':_0x564932['id']},'transaction':_0x3e5fba})[_0x5efd77('0x1e')](function(){const _0x1b5c8d=_0x5efd77;return db[_0x1b5c8d('0x1d')][_0x1b5c8d('0x1b')]({'where':{'id':_0x564932[_0x1b5c8d('0x46')]},'raw':!![]})['then'](function(_0x44742e){return createVoicePrefixExtensions(_0x564932,_0x44742e,_0x3e5fba);});});});})[_0xf384b8('0x1e')](function(){const _0x338ef9=_0xf384b8;return db[_0x338ef9('0x2a')][_0x338ef9('0x4e')](_0x564932['id']);})[_0xf384b8('0x1e')](respondWithResult(_0x450080,null))[_0xf384b8('0x20')](handleError(_0x450080,null));},exports[_0x3c2f85('0x18')]=function(_0x34061e,_0x2e33a0){const _0x251209=_0x3c2f85;return db[_0x251209('0x2a')]['findOne']({'where':{'id':_0x34061e[_0x251209('0x60')]['id']}})[_0x251209('0x1e')](function(_0x3654d0){const _0x1fd7bf=_0x251209;if(_0x3654d0)return _0x3654d0[_0x1fd7bf('0x18')](_0x34061e[_0x1fd7bf('0x7')][_0x1fd7bf('0x34')],{'through':_[_0x1fd7bf('0x22')](_0x34061e[_0x1fd7bf('0x7')],[_0x1fd7bf('0x34'),'id'])})['then'](function(_0x5cad6f){const _0x2bc518=_0x1fd7bf;for(let _0x211ced=0x0;_0x211ced<_0x34061e['body']['ids']['length'];_0x211ced+=0x1){socket[_0x2bc518('0x10')](_0x2bc518('0x3c'),{'UserId':_0x34061e[_0x2bc518('0x7')][_0x2bc518('0x34')][_0x211ced],'VoicePrefixId':_0x34061e[_0x2bc518('0x60')]['id']});}return _0x5cad6f;});})['then'](respondWithResult(_0x2e33a0,null))[_0x251209('0x20')](handleError(_0x2e33a0,null));},exports['removeAgents']=function(_0x2750e4,_0x2e22b2){const _0xd8398=_0x3c2f85;return db[_0xd8398('0x2a')]['findOne']({'where':{'id':_0x2750e4[_0xd8398('0x60')]['id']}})[_0xd8398('0x1e')](handleEntityNotFound(_0x2e22b2,null))[_0xd8398('0x1e')](function(_0x36d5dd){const _0x3dc036=_0xd8398;if(_0x36d5dd)return _0x36d5dd[_0x3dc036('0x56')](_0x2750e4[_0x3dc036('0x21')][_0x3dc036('0x34')])[_0x3dc036('0x1e')](function(){const _0x27657c=_0x3dc036;if(_[_0x27657c('0x25')](_0x2750e4['query'][_0x27657c('0x34')]))for(let _0x50bdd9=0x0;_0x50bdd9<_0x2750e4[_0x27657c('0x21')][_0x27657c('0x34')][_0x27657c('0x12')];_0x50bdd9+=0x1){socket[_0x27657c('0x10')](_0x27657c('0x5a'),{'UserId':Number(_0x2750e4[_0x27657c('0x21')][_0x27657c('0x34')][_0x50bdd9]),'VoicePrefixId':Number(_0x2750e4[_0x27657c('0x60')]['id'])});}else socket['emit']('userVoicePrefix:remove',{'UserId':Number(_0x2750e4['query'][_0x27657c('0x34')]),'VoicePrefixId':Number(_0x2750e4['params']['id'])});});})['then'](respondWithStatusCode(_0x2e22b2,null))[_0xd8398('0x20')](handleError(_0x2e22b2,null));},exports[_0x3c2f85('0x65')]=function(_0x4851c3,_0x1fb6c9){const _0xd9ca40=_0x3c2f85;let _0xdd9877={};const _0x65f76d={};let _0x23ae1c,_0x23d95a;return db['VoicePrefix']['findOne']({'where':{'id':_0x4851c3['params']['id']}})[_0xd9ca40('0x1e')](handleEntityNotFound(_0x1fb6c9,null))['then'](function(_0x1655c0){const _0x2185bd=_0xd9ca40;if(_0x1655c0)return _0x23ae1c=_0x1655c0,_0x65f76d[_0x2185bd('0x45')]=_[_0x2185bd('0x5c')](db[_0x2185bd('0x41')][_0x2185bd('0x38')]),_0x65f76d[_0x2185bd('0x21')]=_[_0x2185bd('0x5c')](_0x4851c3[_0x2185bd('0x21')]),_0x65f76d[_0x2185bd('0x47')]=_['intersection'](_0x65f76d[_0x2185bd('0x45')],_0x65f76d[_0x2185bd('0x21')]),_0xdd9877['attributes']=_['intersection'](_0x65f76d[_0x2185bd('0x45')],qs[_0x2185bd('0x63')](_0x4851c3[_0x2185bd('0x21')]['fields'])),_0xdd9877[_0x2185bd('0x31')]=_0xdd9877[_0x2185bd('0x31')][_0x2185bd('0x12')]?_0xdd9877[_0x2185bd('0x31')]:_0x65f76d['model'],_0xdd9877['order']=qs[_0x2185bd('0x61')](_0x4851c3[_0x2185bd('0x21')][_0x2185bd('0x61')]),_0xdd9877[_0x2185bd('0x28')]=qs[_0x2185bd('0x47')](_[_0x2185bd('0x5e')](_0x4851c3[_0x2185bd('0x21')],_0x65f76d[_0x2185bd('0x47')])),_0x4851c3['query'][_0x2185bd('0x48')]&&(_0xdd9877[_0x2185bd('0x28')]=_[_0x2185bd('0x2')](_0xdd9877[_0x2185bd('0x28')],{[Op['or']]:_['map'](_0xdd9877[_0x2185bd('0x31')],function(_0x55153c){const _0x779590=_0x2185bd,_0x262ff2={};return _0x262ff2[_0x55153c]={[Op[_0x779590('0x44')]]:'%'+_0x4851c3[_0x779590('0x21')]['filter']+'%'},_0x262ff2;})})),_0xdd9877=_[_0x2185bd('0x2')]({},_0xdd9877,_0x4851c3[_0x2185bd('0x9')]),_0x23ae1c[_0x2185bd('0x65')](_0xdd9877);})['then'](function(_0x4cf2df){const _0x406d17=_0xd9ca40;if(_0x4cf2df)return _0x23d95a=_0x4cf2df[_0x406d17('0x12')],typeof _0x4851c3[_0x406d17('0x21')]['nolimit']===_0x406d17('0x58')&&(_0xdd9877[_0x406d17('0x57')]=qs[_0x406d17('0x57')](_0x4851c3['query']['limit']),_0xdd9877['offset']=qs[_0x406d17('0x13')](_0x4851c3[_0x406d17('0x21')][_0x406d17('0x13')])),_0x23ae1c['getAgents'](_0xdd9877);})[_0xd9ca40('0x1e')](function(_0x59a913){if(_0x59a913)return _0x59a913?{'count':_0x23d95a,'rows':_0x59a913}:null;})[_0xd9ca40('0x1e')](respondWithResult(_0x1fb6c9,null))['catch'](handleError(_0x1fb6c9,null));}; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.events.js b/server/api/voicePrefix/voicePrefix.events.js index f8a788e..d7b67af 100644 --- a/server/api/voicePrefix/voicePrefix.events.js +++ b/server/api/voicePrefix/voicePrefix.events.js @@ -1 +1 @@ -const a747_0x4fbc=['save','addHook','remove','events','update','exports','VoicePrefix','emit','undefined'];(function(_0x332a0e,_0x4fbc72){const _0x5870e0=function(_0x39f2c9){while(--_0x39f2c9){_0x332a0e['push'](_0x332a0e['shift']());}};_0x5870e0(++_0x4fbc72);}(a747_0x4fbc,0x16e));const a747_0x5870=function(_0x332a0e,_0x4fbc72){_0x332a0e=_0x332a0e-0x0;let _0x5870e0=a747_0x4fbc[_0x332a0e];return _0x5870e0;};const _0x390a59=a747_0x5870;'use strict';const EventEmitter=require(_0x390a59('0x6')),VoicePrefix=require('../../mysqldb')['db'][_0x390a59('0x0')],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x390a59('0x3'),'afterUpdate':_0x390a59('0x7'),'afterDestroy':_0x390a59('0x5')};function emitEvent(_0x39f2c9){return function(_0x1fd82c){const _0x3ff699=a747_0x5870;VoicePrefixEvents[_0x3ff699('0x1')](_0x39f2c9+':'+_0x1fd82c['id'],_0x1fd82c),VoicePrefixEvents[_0x3ff699('0x1')](_0x39f2c9,_0x1fd82c);};}for(const e in events){if(typeof events[e]!==_0x390a59('0x2')){const event=events[e];VoicePrefix[_0x390a59('0x4')](e,emitEvent(event));}}module[_0x390a59('0x8')]=VoicePrefixEvents; \ No newline at end of file +const a747_0x15c1=['update','setMaxListeners','VoicePrefix','events','emit'];(function(_0x566c86,_0x15c1a0){const _0x3a9285=function(_0x3cfeed){while(--_0x3cfeed){_0x566c86['push'](_0x566c86['shift']());}};_0x3a9285(++_0x15c1a0);}(a747_0x15c1,0x9b));const a747_0x3a92=function(_0x566c86,_0x15c1a0){_0x566c86=_0x566c86-0x0;let _0x3a9285=a747_0x15c1[_0x566c86];return _0x3a9285;};const _0x16d8bb=a747_0x3a92;'use strict';const EventEmitter=require(_0x16d8bb('0x3')),VoicePrefix=require('../../mysqldb')['db'][_0x16d8bb('0x2')],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x16d8bb('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x16d8bb('0x0'),'afterDestroy':'remove'};function emitEvent(_0x3cfeed){return function(_0x4e5f9f){const _0x4a06fe=a747_0x3a92;VoicePrefixEvents[_0x4a06fe('0x4')](_0x3cfeed+':'+_0x4e5f9f['id'],_0x4e5f9f),VoicePrefixEvents[_0x4a06fe('0x4')](_0x3cfeed,_0x4e5f9f);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoicePrefix['addHook'](e,emitEvent(event));}}module['exports']=VoicePrefixEvents; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.model.js b/server/api/voicePrefix/voicePrefix.model.js index 9d1cbc2..7be7be5 100644 --- a/server/api/voicePrefix/voicePrefix.model.js +++ b/server/api/voicePrefix/voicePrefix.model.js @@ -1 +1 @@ -const a748_0x2502=['voice_prefixes','define','exports','VoicePrefix','./voicePrefix.attributes'];(function(_0x5effda,_0x2502de){const _0x21857f=function(_0x59d29f){while(--_0x59d29f){_0x5effda['push'](_0x5effda['shift']());}};_0x21857f(++_0x2502de);}(a748_0x2502,0x16e));const a748_0x2185=function(_0x5effda,_0x2502de){_0x5effda=_0x5effda-0x0;let _0x21857f=a748_0x2502[_0x5effda];return _0x21857f;};const _0x2cc7a1=a748_0x2185;'use strict';const attributes=require(_0x2cc7a1('0x3'));module[_0x2cc7a1('0x1')]=function(_0x59d29f){const _0x537d0b=_0x2cc7a1,_0x24a19a=_0x59d29f[_0x537d0b('0x0')](_0x537d0b('0x2'),attributes,{'tableName':_0x537d0b('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x24a19a;}; \ No newline at end of file +const a748_0x4926=['VoicePrefix','voice_prefixes','./voicePrefix.attributes','define','exports'];(function(_0x54bc2b,_0x49264a){const _0x185132=function(_0x5c9eda){while(--_0x5c9eda){_0x54bc2b['push'](_0x54bc2b['shift']());}};_0x185132(++_0x49264a);}(a748_0x4926,0x1d2));const a748_0x1851=function(_0x54bc2b,_0x49264a){_0x54bc2b=_0x54bc2b-0x0;let _0x185132=a748_0x4926[_0x54bc2b];return _0x185132;};const _0x107fea=a748_0x1851;'use strict';const attributes=require(_0x107fea('0x1'));module[_0x107fea('0x3')]=function(_0x5c9eda){const _0x2161aa=_0x107fea,_0x222f16=_0x5c9eda[_0x2161aa('0x2')](_0x2161aa('0x4'),attributes,{'tableName':_0x2161aa('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x222f16;}; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.rpc.js b/server/api/voicePrefix/voicePrefix.rpc.js index ff884f9..5f0a88d 100644 --- a/server/api/voicePrefix/voicePrefix.rpc.js +++ b/server/api/voicePrefix/voicePrefix.rpc.js @@ -1 +1 @@ -const a749_0x772f=['./voicePrefix.socket','register','../../rediscache'];(function(_0x10c3f0,_0x772fdd){const _0x558d7a=function(_0x31509e){while(--_0x31509e){_0x10c3f0['push'](_0x10c3f0['shift']());}};_0x558d7a(++_0x772fdd);}(a749_0x772f,0x155));const a749_0x558d=function(_0x10c3f0,_0x772fdd){_0x10c3f0=_0x10c3f0-0x0;let _0x558d7a=a749_0x772f[_0x10c3f0];return _0x558d7a;};const _0x1d7dec=a749_0x558d;'use strict';const {getSocket}=require(_0x1d7dec('0x0')),socket=getSocket();require(_0x1d7dec('0x1'))[_0x1d7dec('0x2')](socket); \ No newline at end of file +const a749_0x22ce=['register','../../rediscache'];(function(_0x2877b2,_0x22ce06){const _0x268364=function(_0x280c30){while(--_0x280c30){_0x2877b2['push'](_0x2877b2['shift']());}};_0x268364(++_0x22ce06);}(a749_0x22ce,0x86));const a749_0x2683=function(_0x2877b2,_0x22ce06){_0x2877b2=_0x2877b2-0x0;let _0x268364=a749_0x22ce[_0x2877b2];return _0x268364;};const _0x4306cf=a749_0x2683;'use strict';const {getSocket}=require(_0x4306cf('0x1')),socket=getSocket();require('./voicePrefix.socket')[_0x4306cf('0x0')](socket); \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.socket.js b/server/api/voicePrefix/voicePrefix.socket.js index 7c8c9f0..bc60a61 100644 --- a/server/api/voicePrefix/voicePrefix.socket.js +++ b/server/api/voicePrefix/voicePrefix.socket.js @@ -1 +1 @@ -const a750_0x5cf2=['voicePrefix:','update','emit','save','length','register','./voicePrefix.events'];(function(_0x1a1fcd,_0x5cf23d){const _0x1d226e=function(_0x581995){while(--_0x581995){_0x1a1fcd['push'](_0x1a1fcd['shift']());}};_0x1d226e(++_0x5cf23d);}(a750_0x5cf2,0x1a8));const a750_0x1d22=function(_0x1a1fcd,_0x5cf23d){_0x1a1fcd=_0x1a1fcd-0x0;let _0x1d226e=a750_0x5cf2[_0x1a1fcd];return _0x1d226e;};const _0x14b95a=a750_0x1d22;'use strict';const VoicePrefixEvents=require(_0x14b95a('0x2')),events=[_0x14b95a('0x6'),'remove',_0x14b95a('0x4')];function createListener(_0x581995,_0xf8bb47){return function(_0x4415bd){const _0x106445=a750_0x1d22;_0xf8bb47[_0x106445('0x5')](_0x581995,_0x4415bd);};}exports[_0x14b95a('0x1')]=function(_0x3ad38c){const _0x3f569a=_0x14b95a;for(let _0x12b32f=0x0,_0x2ba17f=events[_0x3f569a('0x0')];_0x12b32f<_0x2ba17f;_0x12b32f++){const _0x1a8c4d=events[_0x12b32f],_0x26f501=createListener(_0x3f569a('0x3')+_0x1a8c4d,_0x3ad38c);VoicePrefixEvents['on'](_0x1a8c4d,_0x26f501);}}; \ No newline at end of file +const a750_0x217c=['update','length','voicePrefix:','remove'];(function(_0xf739a2,_0x217c93){const _0x3e4f9e=function(_0x56f168){while(--_0x56f168){_0xf739a2['push'](_0xf739a2['shift']());}};_0x3e4f9e(++_0x217c93);}(a750_0x217c,0xab));const a750_0x3e4f=function(_0xf739a2,_0x217c93){_0xf739a2=_0xf739a2-0x0;let _0x3e4f9e=a750_0x217c[_0xf739a2];return _0x3e4f9e;};const _0x5b8148=a750_0x3e4f;'use strict';const VoicePrefixEvents=require('./voicePrefix.events'),events=['save',_0x5b8148('0x0'),_0x5b8148('0x1')];function createListener(_0x56f168,_0x534108){return function(_0x412c47){_0x534108['emit'](_0x56f168,_0x412c47);};}exports['register']=function(_0x3300a9){const _0x46e04e=_0x5b8148;for(let _0x8a2932=0x0,_0x16acb5=events[_0x46e04e('0x2')];_0x8a2932<_0x16acb5;_0x8a2932++){const _0x348b71=events[_0x8a2932],_0x506cb5=createListener(_0x46e04e('0x3')+_0x348b71,_0x3300a9);VoicePrefixEvents['on'](_0x348b71,_0x506cb5);}}; \ No newline at end of file diff --git a/server/api/voiceQueue/index.js b/server/api/voiceQueue/index.js index dbce634..8b9f483 100644 --- a/server/api/voiceQueue/index.js +++ b/server/api/voiceQueue/index.js @@ -1 +1 @@ -const a751_0x1804=['destroy','getTeams','get','exports','addLists','getAgents','getMembers','update','/:id/hopper_histories','getLists','Router','addBlackLists','getHopperHistories','getHopperBlacks','clone','/:id/teams','/:id/blacklists','delete','addTeams','/:id/lists','/:id/hopper_finals','getHoppers','getHopperFinals','show','getBlackLists','isAuthenticated','/:id/members','/:id/hopper_black','removeBlackLists','removeAgents','/:id/users','/:id','post','../../components/auth/service','removeTeams'];(function(_0x2f4c01,_0x18045d){const _0x34e6d9=function(_0x48c529){while(--_0x48c529){_0x2f4c01['push'](_0x2f4c01['shift']());}};_0x34e6d9(++_0x18045d);}(a751_0x1804,0xef));const a751_0x34e6=function(_0x2f4c01,_0x18045d){_0x2f4c01=_0x2f4c01-0x0;let _0x34e6d9=a751_0x1804[_0x2f4c01];return _0x34e6d9;};const _0x3c2756=a751_0x34e6;'use strict';const express=require('express'),router=express[_0x3c2756('0x10')](),auth=require(_0x3c2756('0x4')),controller=require('./voiceQueue.controller');router[_0x3c2756('0x8')]('/',auth[_0x3c2756('0x1f')](),controller['index']),router[_0x3c2756('0x8')](_0x3c2756('0x2'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x1d')]),router[_0x3c2756('0x8')]('/:id/hoppers',auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x1b')]),router[_0x3c2756('0x8')](_0x3c2756('0xe'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x12')]),router['get'](_0x3c2756('0x1a'),auth['isAuthenticated'](),controller[_0x3c2756('0x1c')]),router[_0x3c2756('0x8')](_0x3c2756('0x21'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x13')]),router['get'](_0x3c2756('0x15'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x7')]),router[_0x3c2756('0x8')](_0x3c2756('0x1'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0xb')]),router['get'](_0x3c2756('0x20'),auth['isAuthenticated'](),controller[_0x3c2756('0xc')]),router[_0x3c2756('0x8')](_0x3c2756('0x19'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0xf')]),router[_0x3c2756('0x8')](_0x3c2756('0x16'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x1e')]),router['post']('/',auth[_0x3c2756('0x1f')](),controller['create']),router['post']('/:id/clone',auth['isAuthenticated'](),controller[_0x3c2756('0x14')]),router[_0x3c2756('0x3')](_0x3c2756('0x15'),auth['isAuthenticated'](),controller[_0x3c2756('0x18')]),router[_0x3c2756('0x3')](_0x3c2756('0x1'),auth[_0x3c2756('0x1f')](),controller['addAgents']),router['post']('/:id/lists',auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0xa')]),router[_0x3c2756('0x3')]('/:id/blacklists',auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x11')]),router['put']('/:id',auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0xd')]),router[_0x3c2756('0x17')](_0x3c2756('0x2'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x6')]),router[_0x3c2756('0x17')](_0x3c2756('0x15'),auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x5')]),router[_0x3c2756('0x17')]('/:id/users',auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x0')]),router[_0x3c2756('0x17')]('/:id/lists',auth[_0x3c2756('0x1f')](),controller['removeLists']),router[_0x3c2756('0x17')]('/:id/blacklists',auth[_0x3c2756('0x1f')](),controller[_0x3c2756('0x22')]),module[_0x3c2756('0x9')]=router; \ No newline at end of file +const a751_0x9db7=['isAuthenticated','/:id/clone','/:id/blacklists','getHopperBlacks','getHoppers','destroy','addTeams','post','update','/:id/hopper_finals','/:id/users','getLists','/:id/lists','./voiceQueue.controller','removeAgents','index','getHopperHistories','/:id','/:id/teams','/:id/members','removeBlackLists','addBlackLists','create','Router','getTeams','addLists','put','getMembers','delete','get','exports','../../components/auth/service','removeLists'];(function(_0x357fc3,_0x9db751){const _0x683623=function(_0x560ea9){while(--_0x560ea9){_0x357fc3['push'](_0x357fc3['shift']());}};_0x683623(++_0x9db751);}(a751_0x9db7,0xc2));const a751_0x6836=function(_0x357fc3,_0x9db751){_0x357fc3=_0x357fc3-0x0;let _0x683623=a751_0x9db7[_0x357fc3];return _0x683623;};const _0x70d9ec=a751_0x6836;'use strict';const express=require('express'),router=express[_0x70d9ec('0x1b')](),auth=require(_0x70d9ec('0x2')),controller=require(_0x70d9ec('0x11'));router[_0x70d9ec('0x0')]('/',auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x13')]),router[_0x70d9ec('0x0')](_0x70d9ec('0x15'),auth[_0x70d9ec('0x4')](),controller['show']),router[_0x70d9ec('0x0')]('/:id/hoppers',auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x8')]),router[_0x70d9ec('0x0')]('/:id/hopper_histories',auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x14')]),router[_0x70d9ec('0x0')](_0x70d9ec('0xd'),auth[_0x70d9ec('0x4')](),controller['getHopperFinals']),router[_0x70d9ec('0x0')]('/:id/hopper_black',auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x7')]),router[_0x70d9ec('0x0')]('/:id/teams',auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x1c')]),router[_0x70d9ec('0x0')](_0x70d9ec('0xe'),auth[_0x70d9ec('0x4')](),controller['getAgents']),router[_0x70d9ec('0x0')](_0x70d9ec('0x17'),auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x1f')]),router[_0x70d9ec('0x0')](_0x70d9ec('0x10'),auth['isAuthenticated'](),controller[_0x70d9ec('0xf')]),router[_0x70d9ec('0x0')]('/:id/blacklists',auth['isAuthenticated'](),controller['getBlackLists']),router[_0x70d9ec('0xb')]('/',auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x1a')]),router[_0x70d9ec('0xb')](_0x70d9ec('0x5'),auth[_0x70d9ec('0x4')](),controller['clone']),router[_0x70d9ec('0xb')](_0x70d9ec('0x16'),auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0xa')]),router['post'](_0x70d9ec('0xe'),auth['isAuthenticated'](),controller['addAgents']),router[_0x70d9ec('0xb')](_0x70d9ec('0x10'),auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x1d')]),router[_0x70d9ec('0xb')](_0x70d9ec('0x6'),auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x19')]),router[_0x70d9ec('0x1e')](_0x70d9ec('0x15'),auth['isAuthenticated'](),controller[_0x70d9ec('0xc')]),router['delete'](_0x70d9ec('0x15'),auth['isAuthenticated'](),controller[_0x70d9ec('0x9')]),router[_0x70d9ec('0x20')](_0x70d9ec('0x16'),auth[_0x70d9ec('0x4')](),controller['removeTeams']),router[_0x70d9ec('0x20')](_0x70d9ec('0xe'),auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x12')]),router[_0x70d9ec('0x20')](_0x70d9ec('0x10'),auth[_0x70d9ec('0x4')](),controller[_0x70d9ec('0x3')]),router[_0x70d9ec('0x20')](_0x70d9ec('0x6'),auth['isAuthenticated'](),controller[_0x70d9ec('0x18')]),module[_0x70d9ec('0x1')]=router; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.attributes.js b/server/api/voiceQueue/voiceQueue.attributes.js index 13bc50f..b0c2c03 100644 --- a/server/api/voiceQueue/voiceQueue.attributes.js +++ b/server/api/voiceQueue/voiceQueue.attributes.js @@ -1 +1 @@ -const a752_0x1e45=['exports','Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','onlyIfOpen','predictive','progressive','#AMD\x20Between\x20Words\x20Silence','split','STRING','ASC','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','preview','power','dropRate','#Abandoned\x20Retry\x20(min:1,\x20max:999)','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','rrordered','#AMD\x20Total\x20Analysis\x20Time','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','leastrecent','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','ringall','TEXT','always','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','INTEGER','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','FLOAT','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','outbound','booked','inbound','strategy','#AMD\x20Initial\x20Silence','#Machine\x20Retry\x20(min:1,\x20max:999)','UNSIGNED','sequelize','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','Active/Disactive\x20Recall\x20In\x20Queue','type','BOOLEAN','linear','joinempty','#AMD\x20Greeting','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','mandatoryDispositionPauseId','Only\x20for\x20predictive\x20method.','roundrobin','#AgentReject\x20Retry\x20(min:1,\x20max:999)','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','all','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','wrandom','periodic_announce','Cut\x20Digit\x20(min:1,\x20max:15)','random','DESC','ENUM','default','Dial\x20Method.','join','wrapuptime','tTxX','setDataValue','yes','once','dialMethod','leavewhenempty','rrmemory','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','getDataValue','name','#AMD\x20After\x20Greeting\x20Silence','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Max\x209999\x20channels,\x200\x20means\x20unlimited.','#RecallMe\x20Timeout\x20(min:1)'];(function(_0x11bd20,_0x1e45ae){const _0x6a8903=function(_0x498042){while(--_0x498042){_0x11bd20['push'](_0x11bd20['shift']());}};_0x6a8903(++_0x1e45ae);}(a752_0x1e45,0x199));const a752_0x6a89=function(_0x11bd20,_0x1e45ae){_0x11bd20=_0x11bd20-0x0;let _0x6a8903=a752_0x1e45[_0x11bd20];return _0x6a8903;};const _0x12e3b1=a752_0x6a89;'use strict';const Sequelize=require(_0x12e3b1('0x21'));module[_0x12e3b1('0x4d')]={'name':{'type':Sequelize[_0x12e3b1('0x5')],'allowNull':![],'unique':_0x12e3b1('0x46'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x1c'),_0x12e3b1('0x1a')),'allowNull':![],'defaultValue':_0x12e3b1('0x1c')},'musiconhold':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':_0x12e3b1('0x39')},'announce':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':''},'strategy':{'type':Sequelize[_0x12e3b1('0x38')]('rr',_0x12e3b1('0x12'),_0x12e3b1('0x10'),'fewestcalls',_0x12e3b1('0x36'),_0x12e3b1('0x43'),_0x12e3b1('0x28'),_0x12e3b1('0x33'),_0x12e3b1('0xd')),'allowNull':![],'defaultValue':_0x12e3b1('0x12'),'set':function(_0x498042){const _0x321163=_0x12e3b1;this[_0x321163('0x3e')](_0x321163('0x1d'),_0x498042?_0x498042:'rrmemory');},'get':function(){const _0x5d826e=_0x12e3b1,_0x70dbaf=this[_0x5d826e('0x45')](_0x5d826e('0x26')),_0x47ca21=this[_0x5d826e('0x45')](_0x5d826e('0x41')),_0x525a79=this['getDataValue'](_0x5d826e('0x1d'));if(_0x70dbaf===_0x5d826e('0x1c'))return _0x525a79;if(_0x47ca21===_0x5d826e('0x1b')&&_0x525a79==='rrmemory'||_0x47ca21==='booked'&&_0x525a79===_0x5d826e('0x2e'))return _0x525a79;if(_0x47ca21===_0x5d826e('0x2')||_0x47ca21===_0x5d826e('0x1')||_0x47ca21===_0x5d826e('0x9'))return _0x525a79;return null;}},'servicelevel':{'type':Sequelize[_0x12e3b1('0x16')](0xb),'defaultValue':0x0},'context':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':null},'penaltymemberslimit':{'type':Sequelize[_0x12e3b1('0x16')](0xb)},'timeout':{'type':Sequelize[_0x12e3b1('0x16')](0xb),'defaultValue':0xf},'retry':{'type':Sequelize[_0x12e3b1('0x16')](0xb),'defaultValue':0x2},'timeoutpriority':{'type':Sequelize[_0x12e3b1('0x5')]},'weight':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':Sequelize[_0x12e3b1('0x16')](0xb),'defaultValue':0x0},'autofill':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x3f'),'no'),'defaultValue':'yes'},'autopause':{'type':Sequelize['ENUM']('yes','no',_0x12e3b1('0x31')),'defaultValue':'no'},'autopausedelay':{'type':Sequelize['INTEGER'](0xb)},'autopausebusy':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x3f'),'no'),'defaultValue':'no'},'autopauseunavail':{'type':Sequelize[_0x12e3b1('0x38')]('yes','no'),'defaultValue':'no'},'maxlen':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'setinterfacevar':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x3f'),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':Sequelize['ENUM']('yes','no'),'defautValue':'no'},'setqueuevar':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'eventmemberstatus':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x3f'),'no'),'defaultValue':'no'},'membermacro':{'type':Sequelize[_0x12e3b1('0x5')],'allowNull':!![]},'membergosub':{'type':Sequelize[_0x12e3b1('0x5')],'allowNull':!![]},'announce_frequency':{'type':Sequelize[_0x12e3b1('0x16')](0xb),'defaultValue':0x0},'min_announce_frequency':{'type':Sequelize[_0x12e3b1('0x16')](0xb),'defaultValue':0x0},'periodic_announce_frequency':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'random_periodic_announce':{'type':Sequelize['ENUM'](_0x12e3b1('0x3f'),'no'),'defaultValue':'no'},'relative_periodic_announce':{'type':Sequelize['ENUM'](_0x12e3b1('0x3f'),'no'),'defaultValue':_0x12e3b1('0x3f')},'announce_holdtime':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x3f'),'no',_0x12e3b1('0x40')),'defaultValue':'no'},'announce_position':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':'no'},'announce_to_first_user':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x3f'),'no')},'announce_position_limit':{'type':Sequelize[_0x12e3b1('0x16')](0xb)},'announce_round_seconds':{'type':Sequelize[_0x12e3b1('0x38')]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':''},'monitor_type':{'type':Sequelize[_0x12e3b1('0x5')]},'queue_youarenext':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':null},'queue_thereare':{'type':Sequelize['STRING'],'defaultValue':null},'queue_callswaiting':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':null},'queue_holdtime':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':null},'queue_minute':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':null},'queue_seconds':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':null},'queue_thankyou':{'type':Sequelize['STRING'],'defaultValue':null},'queue_reporthold':{'type':Sequelize['STRING']},'queue_quantity1':{'type':Sequelize[_0x12e3b1('0x5')]},'queue_quantity2':{'type':Sequelize[_0x12e3b1('0x5')]},'queue_periodic_announce':{'type':Sequelize['STRING']},'queue_less_than':{'type':Sequelize['STRING']},'periodic_announce':{'type':Sequelize[_0x12e3b1('0x13')],'set':function(_0x2d4f88){const _0x48d4c8=_0x12e3b1;this['setDataValue'](_0x48d4c8('0x34'),_0x2d4f88?_0x2d4f88[_0x48d4c8('0x3b')](','):[]);},'get':function(){const _0x3c5060=_0x12e3b1;return this['getDataValue'](_0x3c5060('0x34'))?this[_0x3c5060('0x45')](_0x3c5060('0x34'))[_0x3c5060('0x4')](','):[];}},'joinempty':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':_0x12e3b1('0x3f'),'set':function(_0x313ca6){const _0x19726b=_0x12e3b1;this[_0x19726b('0x3e')](_0x19726b('0x29'),_0x313ca6?_0x313ca6[_0x19726b('0x3b')](','):undefined);},'get':function(){const _0x55a74f=_0x12e3b1;return this['getDataValue'](_0x55a74f('0x29'))?this[_0x55a74f('0x45')](_0x55a74f('0x29'))[_0x55a74f('0x4')](','):undefined;}},'leavewhenempty':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':'no','set':function(_0x39401c){const _0x5c9f64=_0x12e3b1;this[_0x5c9f64('0x3e')](_0x5c9f64('0x42'),_0x39401c?_0x39401c[_0x5c9f64('0x3b')](','):undefined);},'get':function(){const _0x6900ea=_0x12e3b1;return this['getDataValue'](_0x6900ea('0x42'))?this['getDataValue']('leavewhenempty')[_0x6900ea('0x4')](','):undefined;}},'reportholdtime':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x3f'),'no'),'defaultValue':'no'},'ringinuse':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'memberdelay':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'timeoutrestart':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x3f'),'no'),'defaultValue':'no'},'defaultrule':{'type':Sequelize[_0x12e3b1('0x5')]},'description':{'type':Sequelize[_0x12e3b1('0x5')]},'acw':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'set':function(_0x5c3671){const _0x2ff88f=_0x12e3b1;this['setDataValue']('acw',_0x5c3671),_0x5c3671&&(this[_0x2ff88f('0x45')]('wrapuptime')<0x2&&this[_0x2ff88f('0x3e')](_0x2ff88f('0x3c'),0x2));}},'acwTimeout':{'type':Sequelize[_0x12e3b1('0x16')](0xb),'defaultValue':0xa},'dialActive':{'type':Sequelize[_0x12e3b1('0x27')],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'dialMethod':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x8'),'progressive',_0x12e3b1('0x9'),_0x12e3b1('0x1'),_0x12e3b1('0x1b')),'defaultValue':_0x12e3b1('0x2'),'comment':_0x12e3b1('0x3a')},'dialLimitChannel':{'type':Sequelize[_0x12e3b1('0x16')](0x4)['UNSIGNED'],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x12e3b1('0x4b')},'dialLimitQueue':{'type':Sequelize[_0x12e3b1('0x16')](0x4)[_0x12e3b1('0x20')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x12e3b1('0x4f')},'dialPowerLevel':{'type':Sequelize[_0x12e3b1('0x18')](0x2)[_0x12e3b1('0x20')],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':_0x12e3b1('0x4e')},'dialPredictiveOptimization':{'type':Sequelize[_0x12e3b1('0x38')]('agentBusyFactor',_0x12e3b1('0xa')),'defaultValue':_0x12e3b1('0xa'),'comment':_0x12e3b1('0x2d')},'dialPredictiveOptimizationPercentage':{'type':Sequelize[_0x12e3b1('0x18')](0x2)[_0x12e3b1('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':_0x12e3b1('0x48')},'dialPredictiveInterval':{'type':Sequelize[_0x12e3b1('0x16')](0x3)[_0x12e3b1('0x20')],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':_0x12e3b1('0x17')},'dialOriginateCallerIdName':{'type':Sequelize[_0x12e3b1('0x5')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x12e3b1('0x5')]},'dialOriginateTimeout':{'type':Sequelize[_0x12e3b1('0x16')](0x3)[_0x12e3b1('0x20')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x12e3b1('0xc')},'dialQueueOptions':{'type':Sequelize[_0x12e3b1('0x5')],'defaultValue':_0x12e3b1('0x3d'),'comment':_0x12e3b1('0x22')},'dialQueueTimeout':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x12e3b1('0x30')},'dialQueueProject':{'type':Sequelize['STRING'],'comment':_0x12e3b1('0x24')},'dialCongestionMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Congestion\x20Retry\x20(min:1,\x20max:999)'},'dialCongestionRetryFrequency':{'type':Sequelize['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x12e3b1('0xf')},'dialBusyMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x12e3b1('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Busy\x20Retry\x20(min:1,\x20max:999)'},'dialBusyRetryFrequency':{'type':Sequelize[_0x12e3b1('0x16')](0x5)[_0x12e3b1('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x12e3b1('0x16')](0x3)[_0x12e3b1('0x20')],'defaultValue':0x3,'comment':'#NoAnswer\x20Retry\x20(min:1,\x20max:999)'},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x12e3b1('0x16')](0x5)[_0x12e3b1('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x12e3b1('0x19')},'dialGlobalMaxRetry':{'type':Sequelize[_0x12e3b1('0x16')](0x3)[_0x12e3b1('0x20')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x12e3b1('0x2b')},'dialTimezone':{'type':Sequelize['STRING'],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize['STRING'],'defaultValue':'07:00-22:00,*,*,*'},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialCheckDuplicateType':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x14'),'never',_0x12e3b1('0x0')),'defaultValue':'always'},'dialAMDActive':{'type':Sequelize[_0x12e3b1('0x27')],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'},'dialAMDInitialSilence':{'type':Sequelize[_0x12e3b1('0x16')](0x9)[_0x12e3b1('0x20')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0x12e3b1('0x1e')},'dialAMDGreeting':{'type':Sequelize[_0x12e3b1('0x16')](0x9)[_0x12e3b1('0x20')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x12e3b1('0x2a')},'dialAMDAfterGreetingSilence':{'type':Sequelize['INTEGER'](0x9)[_0x12e3b1('0x20')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x12e3b1('0x47')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x12e3b1('0x16')](0x9)[_0x12e3b1('0x20')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x12e3b1('0xe')},'dialAMDMinWordLength':{'type':Sequelize[_0x12e3b1('0x16')](0x9)[_0x12e3b1('0x20')],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x12e3b1('0x3')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x12e3b1('0x16')](0x9)[_0x12e3b1('0x20')],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize[_0x12e3b1('0x16')](0x5)[_0x12e3b1('0x20')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'},'dialAMDMaximumWordLength':{'type':Sequelize['INTEGER'](0x9)[_0x12e3b1('0x20')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Word\x20Length'},'dialRecallMeTimeout':{'type':Sequelize[_0x12e3b1('0x16')](0x5)['UNSIGNED'],'validate':{'min':0x1},'defaultValue':0x1e,'comment':_0x12e3b1('0x4c')},'dialRecallInQueue':{'type':Sequelize[_0x12e3b1('0x27')],'defaultValue':0x0,'comment':_0x12e3b1('0x25')},'dialOrderByScheduledAt':{'type':Sequelize[_0x12e3b1('0x38')](_0x12e3b1('0x37'),_0x12e3b1('0x6')),'defaultValue':_0x12e3b1('0x37')},'dialQueueProject2':{'type':Sequelize['STRING'],'comment':_0x12e3b1('0x24')},'dialAgiAfterHangupClient':{'type':Sequelize[_0x12e3b1('0x27')],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':Sequelize[_0x12e3b1('0x27')],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x12e3b1('0x16')](0x3)[_0x12e3b1('0x20')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x12e3b1('0x49')},'dialCutDigit':{'type':Sequelize[_0x12e3b1('0x16')](0x3)[_0x12e3b1('0x20')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x12e3b1('0x35')},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0x12e3b1('0x16')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x12e3b1('0x32')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x12e3b1('0x16')](0x5)[_0x12e3b1('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x12e3b1('0x4a')},'dialDropMaxRetry':{'type':Sequelize[_0x12e3b1('0x16')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Drop\x20Retry\x20(min:1,\x20max:999)'},'dialDropRetryFrequency':{'type':Sequelize[_0x12e3b1('0x16')](0x5)[_0x12e3b1('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x12e3b1('0x23')},'dialAbandonedMaxRetry':{'type':Sequelize[_0x12e3b1('0x16')](0x3)[_0x12e3b1('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x12e3b1('0xb')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x12e3b1('0x16')](0x5)[_0x12e3b1('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x12e3b1('0x15')},'dialMachineMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x12e3b1('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x12e3b1('0x1f')},'dialMachineRetryFrequency':{'type':Sequelize[_0x12e3b1('0x16')](0x5)[_0x12e3b1('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x12e3b1('0x50')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x12e3b1('0x16')](0x3)[_0x12e3b1('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x12e3b1('0x2f')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x12e3b1('0x16')](0x5)[_0x12e3b1('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x12e3b1('0x7')},'mandatoryDispositionPauseId':{'type':Sequelize[_0x12e3b1('0x16')],'allowNull':!![],'comment':_0x12e3b1('0x11')},'mandatoryDisposition':{'type':Sequelize[_0x12e3b1('0x27')],'defaultValue':![],'comment':_0x12e3b1('0x44'),'set':function(_0x1af6c3){const _0x3fc2b4=_0x12e3b1;if(!_0x1af6c3)this[_0x3fc2b4('0x3e')](_0x3fc2b4('0x2c'),null);this[_0x3fc2b4('0x3e')]('mandatoryDisposition',_0x1af6c3);}},'dialPredictiveIntervalMaxThreshold':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':Sequelize[_0x12e3b1('0x16')](0x3)['UNSIGNED'],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}}; \ No newline at end of file +const a752_0x2407=['Active/Disactive\x20Recall\x20In\x20Queue','Max\x209999\x20channels,\x200\x20means\x20unlimited.','Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).','predictive','roundrobin','ASC','getDataValue','#AMD\x20Total\x20Analysis\x20Time','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','STRING','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','mandatoryDisposition','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.','always','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','periodic_announce','#Machine\x20Retry\x20(min:1,\x20max:999)','once','default','leavewhenempty','rrmemory','#AgentReject\x20Retry\x20(min:1,\x20max:999)','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Min\x20Word\x20Length','name','leastrecent','inbound','sequelize','exports','agentBusyFactor','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','FLOAT','rrordered','setDataValue','#AMD\x20Greeting','#AMD\x20Maximum\x20Number\x20Of\x20Words','progressive','#Abandoned\x20Retry\x20(min:1,\x20max:999)','booked','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','#AMD\x20Maximum\x20Word\x20Length','07:00-22:00,*,*,*','yes','onlyIfOpen','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','fewestcalls','#Busy\x20Retry\x20(min:1,\x20max:999)','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','random','#RecallMe\x20Timeout\x20(min:1)','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','never','acw','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','outbound','TEXT','ENUM','linear','Cut\x20Digit\x20(min:1,\x20max:15)','tTxX','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','#Congestion\x20Retry\x20(min:1,\x20max:999)','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','DESC','all','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','BOOLEAN','type','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','split','strategy','power','dialMethod','Active/Disactive\x20AMD','join','ringall','Dial\x20Method.','wrandom','Active/Disactive\x20Campaign','joinempty','dropRate','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','wrapuptime','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','UNSIGNED'];(function(_0x492483,_0x24070c){const _0x499eb9=function(_0x48bda9){while(--_0x48bda9){_0x492483['push'](_0x492483['shift']());}};_0x499eb9(++_0x24070c);}(a752_0x2407,0x185));const a752_0x499e=function(_0x492483,_0x24070c){_0x492483=_0x492483-0x0;let _0x499eb9=a752_0x2407[_0x492483];return _0x499eb9;};const _0x727c21=a752_0x499e;'use strict';const Sequelize=require(_0x727c21('0x49'));module[_0x727c21('0x4a')]={'name':{'type':Sequelize[_0x727c21('0x37')],'allowNull':![],'unique':_0x727c21('0x46'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x48'),_0x727c21('0xe')),'allowNull':![],'defaultValue':'inbound'},'musiconhold':{'type':Sequelize['STRING'],'defaultValue':_0x727c21('0x40')},'announce':{'type':Sequelize['STRING'],'defaultValue':''},'strategy':{'type':Sequelize[_0x727c21('0x10')]('rr',_0x727c21('0x23'),_0x727c21('0x47'),_0x727c21('0x5'),_0x727c21('0x8'),_0x727c21('0x42'),_0x727c21('0x11'),_0x727c21('0x25'),_0x727c21('0x4e')),'allowNull':![],'defaultValue':'ringall','set':function(_0x48bda9){const _0x4a9f86=_0x727c21;this[_0x4a9f86('0x4f')]('strategy',_0x48bda9?_0x48bda9:_0x4a9f86('0x42'));},'get':function(){const _0x1b68a3=_0x727c21,_0x17cee9=this[_0x1b68a3('0x34')](_0x1b68a3('0x1b')),_0x599424=this[_0x1b68a3('0x34')](_0x1b68a3('0x20')),_0x5517ed=this[_0x1b68a3('0x34')](_0x1b68a3('0x1e'));if(_0x17cee9===_0x1b68a3('0x48'))return _0x5517ed;if(_0x599424===_0x1b68a3('0x54')&&_0x5517ed===_0x1b68a3('0x42')||_0x599424===_0x1b68a3('0x54')&&_0x5517ed===_0x1b68a3('0x32'))return _0x5517ed;if(_0x599424===_0x1b68a3('0x52')||_0x599424===_0x1b68a3('0x31')||_0x599424===_0x1b68a3('0x1f'))return _0x5517ed;return null;}},'servicelevel':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'context':{'type':Sequelize['STRING'],'defaultValue':null},'penaltymemberslimit':{'type':Sequelize[_0x727c21('0x55')](0xb)},'timeout':{'type':Sequelize[_0x727c21('0x55')](0xb),'defaultValue':0xf},'retry':{'type':Sequelize[_0x727c21('0x55')](0xb),'defaultValue':0x2},'timeoutpriority':{'type':Sequelize[_0x727c21('0x37')]},'weight':{'type':Sequelize[_0x727c21('0x55')](0xb),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'autofill':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no'),'defaultValue':_0x727c21('0x2')},'autopause':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no',_0x727c21('0x18')),'defaultValue':'no'},'autopausedelay':{'type':Sequelize[_0x727c21('0x55')](0xb)},'autopausebusy':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no'),'defaultValue':'no'},'autopauseunavail':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no'),'defaultValue':'no'},'maxlen':{'type':Sequelize[_0x727c21('0x55')](0xb),'defaultValue':0x0},'setinterfacevar':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no'),'defautValue':'no'},'setqueuevar':{'type':Sequelize[_0x727c21('0x10')]('yes','no'),'defaultValue':'no'},'eventmemberstatus':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no'),'defaultValue':'no'},'membermacro':{'type':Sequelize[_0x727c21('0x37')],'allowNull':!![]},'membergosub':{'type':Sequelize[_0x727c21('0x37')],'allowNull':!![]},'announce_frequency':{'type':Sequelize[_0x727c21('0x55')](0xb),'defaultValue':0x0},'min_announce_frequency':{'type':Sequelize[_0x727c21('0x55')](0xb),'defaultValue':0x0},'periodic_announce_frequency':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'random_periodic_announce':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no'),'defaultValue':'no'},'relative_periodic_announce':{'type':Sequelize['ENUM'](_0x727c21('0x2'),'no'),'defaultValue':'yes'},'announce_holdtime':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no',_0x727c21('0x3f')),'defaultValue':'no'},'announce_position':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':'no'},'announce_to_first_user':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no')},'announce_position_limit':{'type':Sequelize['INTEGER'](0xb)},'announce_round_seconds':{'type':Sequelize['ENUM']('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':Sequelize['STRING'],'defaultValue':''},'monitor_type':{'type':Sequelize['STRING']},'queue_youarenext':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'queue_thereare':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'queue_callswaiting':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'queue_holdtime':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'queue_minute':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'queue_seconds':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'queue_thankyou':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'queue_reporthold':{'type':Sequelize['STRING']},'queue_quantity1':{'type':Sequelize['STRING']},'queue_quantity2':{'type':Sequelize[_0x727c21('0x37')]},'queue_periodic_announce':{'type':Sequelize[_0x727c21('0x37')]},'queue_less_than':{'type':Sequelize[_0x727c21('0x37')]},'periodic_announce':{'type':Sequelize[_0x727c21('0xf')],'set':function(_0x418b09){const _0x1e5d33=_0x727c21;this[_0x1e5d33('0x4f')](_0x1e5d33('0x3d'),_0x418b09?_0x418b09[_0x1e5d33('0x22')](','):[]);},'get':function(){const _0x548fd8=_0x727c21;return this['getDataValue']('periodic_announce')?this[_0x548fd8('0x34')]('periodic_announce')['split'](','):[];}},'joinempty':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':_0x727c21('0x2'),'set':function(_0x4e8dad){const _0x4fc08f=_0x727c21;this[_0x4fc08f('0x4f')](_0x4fc08f('0x27'),_0x4e8dad?_0x4e8dad['join'](','):undefined);},'get':function(){const _0x1ee060=_0x727c21;return this[_0x1ee060('0x34')](_0x1ee060('0x27'))?this[_0x1ee060('0x34')]('joinempty')[_0x1ee060('0x1d')](','):undefined;}},'leavewhenempty':{'type':Sequelize['STRING'],'defaultValue':'no','set':function(_0x51fa14){const _0x6bee17=_0x727c21;this[_0x6bee17('0x4f')]('leavewhenempty',_0x51fa14?_0x51fa14[_0x6bee17('0x22')](','):undefined);},'get':function(){const _0x562ee4=_0x727c21;return this[_0x562ee4('0x34')]('leavewhenempty')?this['getDataValue'](_0x562ee4('0x41'))[_0x562ee4('0x1d')](','):undefined;}},'reportholdtime':{'type':Sequelize['ENUM'](_0x727c21('0x2'),'no'),'defaultValue':'no'},'ringinuse':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x2'),'no'),'defaultValue':'no'},'memberdelay':{'type':Sequelize[_0x727c21('0x55')](0xb),'defaultValue':0x0},'timeoutrestart':{'type':Sequelize[_0x727c21('0x10')]('yes','no'),'defaultValue':'no'},'defaultrule':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x727c21('0x37')]},'acw':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'set':function(_0x3bed22){const _0x2ac804=_0x727c21;this['setDataValue'](_0x2ac804('0xc'),_0x3bed22),_0x3bed22&&(this[_0x2ac804('0x34')](_0x2ac804('0x2b'))<0x2&&this[_0x2ac804('0x4f')](_0x2ac804('0x2b'),0x2));}},'acwTimeout':{'type':Sequelize[_0x727c21('0x55')](0xb),'defaultValue':0xa},'dialActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x727c21('0x26')},'dialMethod':{'type':Sequelize[_0x727c21('0x10')]('preview',_0x727c21('0x52'),'power',_0x727c21('0x31'),_0x727c21('0x54')),'defaultValue':_0x727c21('0x52'),'comment':_0x727c21('0x24')},'dialLimitChannel':{'type':Sequelize[_0x727c21('0x55')](0x4)[_0x727c21('0x2d')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x727c21('0x2f')},'dialLimitQueue':{'type':Sequelize[_0x727c21('0x55')](0x4)['UNSIGNED'],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x727c21('0x3a')},'dialPowerLevel':{'type':Sequelize[_0x727c21('0x4d')](0x2)[_0x727c21('0x2d')],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':_0x727c21('0x30')},'dialPredictiveOptimization':{'type':Sequelize['ENUM'](_0x727c21('0x4b'),_0x727c21('0x28')),'defaultValue':_0x727c21('0x28'),'comment':'Only\x20for\x20predictive\x20method.'},'dialPredictiveOptimizationPercentage':{'type':Sequelize[_0x727c21('0x4d')](0x2)[_0x727c21('0x2d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':_0x727c21('0xd')},'dialPredictiveInterval':{'type':Sequelize[_0x727c21('0x55')](0x3)[_0x727c21('0x2d')],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':_0x727c21('0x36')},'dialOriginateCallerIdName':{'type':Sequelize[_0x727c21('0x37')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x727c21('0x37')]},'dialOriginateTimeout':{'type':Sequelize[_0x727c21('0x55')](0x3)['UNSIGNED'],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x727c21('0x2a')},'dialQueueOptions':{'type':Sequelize['STRING'],'defaultValue':_0x727c21('0x13'),'comment':_0x727c21('0xa')},'dialQueueTimeout':{'type':Sequelize[_0x727c21('0x55')](0x3)[_0x727c21('0x2d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x727c21('0x16')},'dialQueueProject':{'type':Sequelize[_0x727c21('0x37')],'comment':_0x727c21('0x3c')},'dialCongestionMaxRetry':{'type':Sequelize[_0x727c21('0x55')](0x3)[_0x727c21('0x2d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x727c21('0x15')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x727c21('0x55')](0x5)[_0x727c21('0x2d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x727c21('0x19')},'dialBusyMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x727c21('0x6')},'dialBusyRetryFrequency':{'type':Sequelize[_0x727c21('0x55')](0x5)[_0x727c21('0x2d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x727c21('0x4c')},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x727c21('0x55')](0x3)['UNSIGNED'],'defaultValue':0x3,'comment':'#NoAnswer\x20Retry\x20(min:1,\x20max:999)'},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x727c21('0x55')](0x5)[_0x727c21('0x2d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x727c21('0x44')},'dialGlobalMaxRetry':{'type':Sequelize[_0x727c21('0x55')](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x727c21('0x4')},'dialTimezone':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':_0x727c21('0x1')},'dialPrefix':{'type':Sequelize[_0x727c21('0x37')],'defaultValue':null},'dialCheckDuplicateType':{'type':Sequelize[_0x727c21('0x10')](_0x727c21('0x3b'),_0x727c21('0xb'),_0x727c21('0x3')),'defaultValue':_0x727c21('0x3b')},'dialAMDActive':{'type':Sequelize[_0x727c21('0x1a')],'defaultValue':0x0,'comment':_0x727c21('0x21')},'dialAMDInitialSilence':{'type':Sequelize['INTEGER'](0x9)[_0x727c21('0x2d')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0x727c21('0x55')](0x9)[_0x727c21('0x2d')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x727c21('0x50')},'dialAMDAfterGreetingSilence':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x320,'validate':{'min':0x0},'comment':'#AMD\x20After\x20Greeting\x20Silence'},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x727c21('0x55')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x727c21('0x35')},'dialAMDMinWordLength':{'type':Sequelize[_0x727c21('0x55')](0x9)['UNSIGNED'],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x727c21('0x45')},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x727c21('0x55')](0x9)[_0x727c21('0x2d')],'defaultValue':0x32,'validate':{'min':0x0},'comment':'#AMD\x20Between\x20Words\x20Silence'},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x727c21('0x55')](0x9)[_0x727c21('0x2d')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0x727c21('0x51')},'dialAMDSilenceThreshold':{'type':Sequelize[_0x727c21('0x55')](0x5)[_0x727c21('0x2d')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x727c21('0x2c')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x727c21('0x55')](0x9)[_0x727c21('0x2d')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x727c21('0x0')},'dialRecallMeTimeout':{'type':Sequelize[_0x727c21('0x55')](0x5)[_0x727c21('0x2d')],'validate':{'min':0x1},'defaultValue':0x1e,'comment':_0x727c21('0x9')},'dialRecallInQueue':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x727c21('0x2e')},'dialOrderByScheduledAt':{'type':Sequelize['ENUM'](_0x727c21('0x17'),_0x727c21('0x33')),'defaultValue':_0x727c21('0x17')},'dialQueueProject2':{'type':Sequelize[_0x727c21('0x37')],'comment':_0x727c21('0x3c')},'dialAgiAfterHangupClient':{'type':Sequelize[_0x727c21('0x1a')],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':Sequelize[_0x727c21('0x1a')],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x727c21('0x14')},'dialCutDigit':{'type':Sequelize[_0x727c21('0x55')](0x3)[_0x727c21('0x2d')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x727c21('0x12')},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0x727c21('0x55')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x727c21('0x29')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x727c21('0x2d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x727c21('0x1c')},'dialDropMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x727c21('0x2d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Drop\x20Retry\x20(min:1,\x20max:999)'},'dialDropRetryFrequency':{'type':Sequelize[_0x727c21('0x55')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAbandonedMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x727c21('0x53')},'dialAbandonedRetryFrequency':{'type':Sequelize['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x727c21('0x7')},'dialMachineMaxRetry':{'type':Sequelize[_0x727c21('0x55')](0x3)[_0x727c21('0x2d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x727c21('0x3e')},'dialMachineRetryFrequency':{'type':Sequelize[_0x727c21('0x55')](0x5)[_0x727c21('0x2d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x727c21('0x38')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x727c21('0x55')](0x3)[_0x727c21('0x2d')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x727c21('0x43')},'dialAgentRejectRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x727c21('0x2d')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'mandatoryDispositionPauseId':{'type':Sequelize[_0x727c21('0x55')],'allowNull':!![],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x727c21('0x1a')],'defaultValue':![],'comment':_0x727c21('0x56'),'set':function(_0x4e507c){const _0x2ba0ca=_0x727c21;if(!_0x4e507c)this[_0x2ba0ca('0x4f')]('mandatoryDispositionPauseId',null);this[_0x2ba0ca('0x4f')](_0x2ba0ca('0x39'),_0x4e507c);}},'dialPredictiveIntervalMaxThreshold':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':Sequelize[_0x727c21('0x55')](0x3)['UNSIGNED'],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.controller.js b/server/api/voiceQueue/voiceQueue.controller.js index 664e4d6..f74a136 100644 --- a/server/api/voiceQueue/voiceQueue.controller.js +++ b/server/api/voiceQueue/voiceQueue.controller.js @@ -1 +1 @@ -const a753_0x56cb=['push','rawAttributes','getBlackLists','field','scheduledAt','SELECT','TeamId','fieldName','updatedAt','show','findOrCreate','then','fields','filters','where','includes','Team','../../rediscache','UserProfileResource','length','clone','limit','phone','penalty','json','insert','dialCheckDuplicateType','getMembers','SIP/%s','sort','UserVoiceQueue','Agents','include','removeTeams','removeLists','includeAll','NOW()','CmHopper','squel','create','QueryTypes','body','union','offset','ids','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','cm_hopper','index','autoAssociation','teams','CmList','status','rows','removeBlackLists','ListId','options','destroy','order','value','nolimit','count','getTeams','cm_hopper_final','ut.TeamId\x20=\x20tq.TeamId','getAgents','sequelize','Content-Range','key','attributes','toString','CmHopperHistory','getLists','intersection','CmListId','select','VoiceQueues','COALESCE(phone,\x27\x27)','util','lodash','compact','removeAgents','getHopperBlacks','undefined','find','getHopperHistories','transaction','each','name','tq.TeamId','Unable\x20to\x20retrieve\x20the\x20current\x20user','merge','all','getHoppers','ContactId','update','get','deletedAt\x20IS\x20NULL','send','fromQuery','omit','stack','./voiceQueue.socket','VIRTUAL','UserProfileSection','User','VoiceQueue','userVoiceQueue:remove','phone\x20NOT\x20IN\x20(?)','voicePause','query','upsert','every','QueueCampaigns','outbound','user','catch','cm_contacts','CmHopperBlack','like','CmHopperFinal','addTeams','findAll','model','interface','params','addBlackLists','from','end','type','VoiceQueueId','addLists','into','isNil','VoiceQueueId\x20=\x20?','createdAt','keys','UserVoiceQueueRt','online','emit','COALESCE(calleridnum,\x27\x27)','ListId\x20=\x20?','userVoiceQueue:save','isEmpty','isArray','filter','error','addAgents','format','role','pick','inbound','findOne','sendStatus','set','phone\x20IS\x20NOT\x20NULL','onlyIfOpen','map'];(function(_0x5954e1,_0x56cb58){const _0x4f20c0=function(_0x3ed854){while(--_0x3ed854){_0x5954e1['push'](_0x5954e1['shift']());}};_0x4f20c0(++_0x56cb58);}(a753_0x56cb,0x148));const a753_0x4f20=function(_0x5954e1,_0x56cb58){_0x5954e1=_0x5954e1-0x0;let _0x4f20c0=a753_0x56cb[_0x5954e1];return _0x4f20c0;};const _0x21fc71=a753_0x4f20;'use strict';const util=require(_0x21fc71('0x3f')),_=require(_0x21fc71('0x40')),squel=require(_0x21fc71('0x18')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{getSocket}=require(_0x21fc71('0x3')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x21fc71('0x33'));require(_0x21fc71('0x57'))['register'](socket);function respondWithStatusCode(_0x3ed854,_0x448c41){return _0x448c41=_0x448c41||0xcc,function(_0x348bd3){const _0x220491=a753_0x4f20;if(_0x348bd3)return _0x3ed854[_0x220491('0x8a')](_0x448c41);return _0x3ed854[_0x220491('0x25')](_0x448c41)[_0x220491('0x71')]();};}function respondWithResult(_0x3396b6,_0x12e740){return _0x12e740=_0x12e740||0xc8,function(_0x1fb1b7){const _0x1a1d4d=a753_0x4f20;if(_0x1fb1b7)return _0x3396b6[_0x1a1d4d('0x25')](_0x12e740)[_0x1a1d4d('0xa')](_0x1fb1b7);};}function respondWithFilteredResult(_0x2cffcc,_0x124ee8){return function(_0x575bbd){const _0x2c3939=a753_0x4f20;if(_0x575bbd){const _0xf1d5e8=_0x575bbd[_0x2c3939('0x2e')],_0x5859b8=_0x124ee8['offset'];let _0x69c1af=_0x124ee8[_0x2c3939('0x1d')]+_0x124ee8[_0x2c3939('0x7')],_0x166805;return _0x69c1af>=_0xf1d5e8?(_0x69c1af=_0xf1d5e8,_0x166805=0xc8):_0x166805=0xce,_0x2cffcc[_0x2c3939('0x25')](_0x166805),_0x2cffcc[_0x2c3939('0x8b')](_0x2c3939('0x34'),_0x5859b8+'-'+_0x69c1af+'/'+_0xf1d5e8)[_0x2c3939('0xa')](_0x575bbd);}return null;};}function saveUpdates(_0x1e1d0b){return function(_0x3a4ab4){const _0x31ac88=a753_0x4f20;if(_0x3a4ab4)return _0x3a4ab4[_0x31ac88('0x50')](_0x1e1d0b)['then'](function(_0x17f706){return _0x17f706;});return null;};}function removeEntity(_0x28502f){return function(_0x5306c2){const _0x30d0a7=a753_0x4f20;if(_0x5306c2)return _0x5306c2[_0x30d0a7('0x2a')]()[_0x30d0a7('0x9a')](function(){const _0x227d95=_0x30d0a7,_0x221c36=_0x5306c2[_0x227d95('0x51')]({'plain':!![]}),_0x550022=[{'name':_0x227d95('0x3d'),'value':_0x227d95('0x88'),'ignore':![]},{'name':_0x227d95('0x62'),'value':_0x227d95('0x63'),'ignore':![]}],_0x522213=_(_0x550022)[_0x227d95('0x82')]('ignore')[_0x227d95('0x8e')]('value')[_0x227d95('0x2c')]();if(_[_0x227d95('0x1')](_0x522213,_0x221c36[_0x227d95('0x72')]))return;const _0x4496d8=_[_0x227d95('0x45')](_0x550022,[_0x227d95('0x2c'),_0x221c36[_0x227d95('0x72')]])['name'];return db['UserProfileResource'][_0x227d95('0x2a')]({'where':{'type':_0x4496d8,'resourceId':_0x221c36['id']}})[_0x227d95('0x9a')](function(){return _0x5306c2;});})[_0x30d0a7('0x9a')](function(){const _0x50463c=_0x30d0a7;_0x28502f[_0x50463c('0x25')](0xcc)[_0x50463c('0x71')]();});};}function handleEntityNotFound(_0xcc514f){return function(_0xffd1b9){const _0x4481ad=a753_0x4f20;return!_0xffd1b9&&_0xcc514f[_0x4481ad('0x8a')](0x194),_0xffd1b9;};}function handleError(_0x2912f4,_0x5cad73){return _0x5cad73=_0x5cad73||0x1f4,function(_0x1e45f4){const _0x3efca4=a753_0x4f20;logger[_0x3efca4('0x83')](_0x1e45f4[_0x3efca4('0x56')]),_0x1e45f4[_0x3efca4('0x49')]&&delete _0x1e45f4['name'],_0x2912f4[_0x3efca4('0x25')](_0x5cad73)[_0x3efca4('0x53')](_0x1e45f4);};}exports[_0x21fc71('0x21')]=function(_0x5dfe99,_0x5b634){const _0x433e92=_0x21fc71;let _0x42e1dd={};const _0x4e59eb={},_0x38b4ad={'count':0x0,'rows':[]},_0x4119d0=_[_0x433e92('0x8e')](db[_0x433e92('0x5b')][_0x433e92('0x90')],function(_0x5f39a8){const _0x11b708=_0x433e92;return{'name':_0x5f39a8[_0x11b708('0x96')],'type':_0x5f39a8[_0x11b708('0x72')][_0x11b708('0x35')]};});_0x4e59eb[_0x433e92('0x6c')]=_['map'](_0x4119d0,_0x433e92('0x49')),_0x4e59eb['query']=_[_0x433e92('0x79')](_0x5dfe99[_0x433e92('0x5f')]),_0x4e59eb[_0x433e92('0x9c')]=_[_0x433e92('0x3a')](_0x4e59eb[_0x433e92('0x6c')],_0x4e59eb[_0x433e92('0x5f')]),_0x42e1dd[_0x433e92('0x36')]=_['intersection'](_0x4e59eb[_0x433e92('0x6c')],qs[_0x433e92('0x9b')](_0x5dfe99['query']['fields'])),_0x42e1dd[_0x433e92('0x36')]=_0x42e1dd[_0x433e92('0x36')][_0x433e92('0x5')]?_0x42e1dd[_0x433e92('0x36')]:_0x4e59eb[_0x433e92('0x6c')];typeof _0x5dfe99[_0x433e92('0x5f')][_0x433e92('0x2d')]===_0x433e92('0x44')&&(_0x42e1dd[_0x433e92('0x7')]=qs[_0x433e92('0x7')](_0x5dfe99[_0x433e92('0x5f')][_0x433e92('0x7')]),_0x42e1dd[_0x433e92('0x1d')]=qs[_0x433e92('0x1d')](_0x5dfe99[_0x433e92('0x5f')][_0x433e92('0x1d')]));_0x42e1dd[_0x433e92('0x2b')]=qs[_0x433e92('0xf')](_0x5dfe99[_0x433e92('0x5f')][_0x433e92('0xf')]),_0x42e1dd[_0x433e92('0x0')]=qs['filters'](_[_0x433e92('0x87')](_0x5dfe99['query'],_0x4e59eb['filters']),_0x4119d0);_0x5dfe99[_0x433e92('0x5f')][_0x433e92('0x82')]&&(_0x42e1dd['where']=_[_0x433e92('0x4c')](_0x42e1dd[_0x433e92('0x0')],{[Op['or']]:_[_0x433e92('0x8e')](_0x4119d0,function(_0x327964){const _0x9b4470=_0x433e92;if(_0x327964['type']!==_0x9b4470('0x58')){const _0x3e7867={};return _0x3e7867[_0x327964[_0x9b4470('0x49')]]={[Op['like']]:'%'+_0x5dfe99[_0x9b4470('0x5f')]['filter']+'%'},_0x3e7867;}})}));_0x42e1dd=_[_0x433e92('0x4c')]({},_0x42e1dd,_0x5dfe99[_0x433e92('0x29')]);const _0x5a7d04={'where':_0x42e1dd[_0x433e92('0x0')]};return db['VoiceQueue'][_0x433e92('0x2e')](_0x5a7d04)[_0x433e92('0x9a')](function(_0x142e6e){const _0x52e1bc=_0x433e92;return _0x38b4ad[_0x52e1bc('0x2e')]=_0x142e6e,_0x5dfe99[_0x52e1bc('0x5f')][_0x52e1bc('0x15')]&&(_0x42e1dd[_0x52e1bc('0x12')]=[{'all':!![]}]),db[_0x52e1bc('0x5b')][_0x52e1bc('0x6b')](_0x42e1dd);})[_0x433e92('0x9a')](function(_0xef9c57){const _0x5cc0f5=_0x433e92;return _0x38b4ad[_0x5cc0f5('0x26')]=_0xef9c57,_0x38b4ad;})[_0x433e92('0x9a')](respondWithFilteredResult(_0x5b634,_0x42e1dd))[_0x433e92('0x65')](handleError(_0x5b634,null));},exports[_0x21fc71('0x98')]=function(_0x32c04d,_0xcc1d8d){const _0x252a63=_0x21fc71;let _0x31398b={'raw':![],'where':{'id':_0x32c04d[_0x252a63('0x6e')]['id']}};const _0x2de87f={};return _0x2de87f['model']=_['keys'](db[_0x252a63('0x5b')][_0x252a63('0x90')]),_0x2de87f[_0x252a63('0x5f')]=_[_0x252a63('0x79')](_0x32c04d['query']),_0x2de87f[_0x252a63('0x9c')]=_[_0x252a63('0x3a')](_0x2de87f['model'],_0x2de87f[_0x252a63('0x5f')]),_0x31398b[_0x252a63('0x36')]=_[_0x252a63('0x3a')](_0x2de87f['model'],qs[_0x252a63('0x9b')](_0x32c04d[_0x252a63('0x5f')]['fields'])),_0x31398b[_0x252a63('0x36')]=_0x31398b[_0x252a63('0x36')][_0x252a63('0x5')]?_0x31398b['attributes']:_0x2de87f['model'],_0x32c04d[_0x252a63('0x5f')]['includeAll']&&(_0x31398b['include']=[{'all':!![]}]),_0x31398b=_[_0x252a63('0x4c')]({},_0x31398b,_0x32c04d[_0x252a63('0x29')]),db[_0x252a63('0x5b')][_0x252a63('0x89')](_0x31398b)[_0x252a63('0x9a')](handleEntityNotFound(_0xcc1d8d,null))[_0x252a63('0x9a')](respondWithResult(_0xcc1d8d,null))[_0x252a63('0x65')](handleError(_0xcc1d8d,null));},exports['create']=function(_0x24a63f,_0x269dc6){const _0x1752b3=_0x21fc71;return db[_0x1752b3('0x5b')][_0x1752b3('0x19')](_0x24a63f[_0x1752b3('0x1b')],{})[_0x1752b3('0x9a')](function(_0x2e6513){const _0x6b14b1=_0x1752b3,_0x557e27=_0x24a63f['user'][_0x6b14b1('0x51')]({'plain':!![]});if(!_0x557e27)throw new Error(_0x6b14b1('0x4b'));if(_0x557e27[_0x6b14b1('0x86')]===_0x6b14b1('0x64')){const _0x5df19c=_0x2e6513['get']({'plain':!![]}),_0x495238=[{'name':_0x6b14b1('0x3d'),'value':_0x6b14b1('0x88')},{'name':_0x6b14b1('0x62'),'value':'outbound'}],_0x39b12e=_[_0x6b14b1('0x45')](_0x495238,['value',_0x5df19c[_0x6b14b1('0x72')]])['name'];return db['UserProfileSection']['findOne']({'where':{'name':_0x39b12e,'userProfileId':_0x557e27['userProfileId']},'raw':!![]})['then'](function(_0x2011dd){const _0x132367=_0x6b14b1;return _0x2011dd&&_0x2011dd[_0x132367('0x22')]===0x0?db[_0x132367('0x4')]['create']({'name':_0x5df19c[_0x132367('0x49')],'resourceId':_0x5df19c['id'],'type':_0x2011dd[_0x132367('0x49')],'sectionId':_0x2011dd['id']},{})[_0x132367('0x9a')](function(){return _0x2e6513;}):_0x2e6513;})[_0x6b14b1('0x65')](function(_0x3867e5){const _0x3dbb13=_0x6b14b1;logger[_0x3dbb13('0x83')](_0x3dbb13('0x1f'),_0x3867e5);throw _0x3867e5;});}return _0x2e6513;})['then'](respondWithResult(_0x269dc6,0xc9))[_0x1752b3('0x65')](handleError(_0x269dc6,null));},exports['clone']=function(_0x299db6,_0x218f74){const _0xa042ea=_0x21fc71;let _0x80a4cd={'where':{'id':_0x299db6['params']['id']}};const _0x325d91={};return _0x325d91['model']=_[_0xa042ea('0x79')](db[_0xa042ea('0x5b')][_0xa042ea('0x90')]),_0x80a4cd[_0xa042ea('0x36')]=_[_0xa042ea('0x3a')](_0x325d91['model'],qs[_0xa042ea('0x9b')](_0x299db6[_0xa042ea('0x5f')][_0xa042ea('0x9b')])),_0x80a4cd[_0xa042ea('0x36')]=_0x80a4cd[_0xa042ea('0x36')]['length']?_0x80a4cd[_0xa042ea('0x36')]:_0x325d91[_0xa042ea('0x6c')],_0x299db6[_0xa042ea('0x5f')][_0xa042ea('0x15')]&&(_0x80a4cd['include']=[{'all':!![]}]),_0x80a4cd=_[_0xa042ea('0x4c')]({},_0x80a4cd,_0x299db6[_0xa042ea('0x29')]),db[_0xa042ea('0x5b')][_0xa042ea('0x89')](_0x80a4cd)[_0xa042ea('0x9a')](handleEntityNotFound(_0x218f74,null))[_0xa042ea('0x9a')](function(_0x295b1e){const _0x28af41=_0xa042ea;if(_0x295b1e){let _0x34dd10=_0x295b1e[_0x28af41('0x51')]({'plain':!![]});return _0x34dd10=qs[_0x28af41('0x55')](_0x34dd10,['id',_0x28af41('0x78'),'updatedAt']),_0x299db6['body']=_[_0x28af41('0x55')](_0x299db6[_0x28af41('0x1b')],['id',_0x28af41('0x78'),_0x28af41('0x97')]),db[_0x28af41('0x5b')]['create'](_[_0x28af41('0x4c')](_0x34dd10,_0x299db6['body']),{'include':_0x299db6[_0x28af41('0x5f')][_0x28af41('0x15')]?[{'all':!![]}]:undefined})['then'](function(_0x16f69f){const _0x4a74fc=_0x28af41,_0x30d81e=_0x299db6[_0x4a74fc('0x64')]['get']({'plain':!![]});if(!_0x30d81e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x30d81e[_0x4a74fc('0x86')]===_0x4a74fc('0x64')){const _0x5845c7=_0x16f69f[_0x4a74fc('0x51')]({'plain':!![]}),_0x42460a=[{'name':_0x4a74fc('0x3d'),'value':_0x4a74fc('0x88')},{'name':_0x4a74fc('0x62'),'value':'outbound'}],_0x18f398=_[_0x4a74fc('0x45')](_0x42460a,['value',_0x5845c7[_0x4a74fc('0x72')]])[_0x4a74fc('0x49')];return db[_0x4a74fc('0x59')][_0x4a74fc('0x89')]({'where':{'name':_0x18f398,'userProfileId':_0x30d81e['userProfileId']},'raw':!![]})['then'](function(_0x5bf25c){const _0x3a44be=_0x4a74fc;return _0x5bf25c&&_0x5bf25c[_0x3a44be('0x22')]===0x0?db[_0x3a44be('0x4')][_0x3a44be('0x19')]({'name':_0x5845c7[_0x3a44be('0x49')],'resourceId':_0x5845c7['id'],'type':_0x5bf25c[_0x3a44be('0x49')],'sectionId':_0x5bf25c['id']},{})[_0x3a44be('0x9a')](function(){return _0x16f69f;}):_0x16f69f;})[_0x4a74fc('0x65')](function(_0x4cb05e){const _0x12decf=_0x4a74fc;logger[_0x12decf('0x83')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4cb05e);throw _0x4cb05e;});}return _0x16f69f;});}})[_0xa042ea('0x9a')](respondWithResult(_0x218f74,0xc9))[_0xa042ea('0x65')](handleError(_0x218f74,null));},exports[_0x21fc71('0x50')]=function(_0x4608fd,_0x35802e){const _0x273c21=_0x21fc71;return _0x4608fd[_0x273c21('0x1b')]['id']&&delete _0x4608fd['body']['id'],db[_0x273c21('0x5b')][_0x273c21('0x89')]({'where':{'id':_0x4608fd[_0x273c21('0x6e')]['id']}})[_0x273c21('0x9a')](handleEntityNotFound(_0x35802e,null))[_0x273c21('0x9a')](saveUpdates(_0x4608fd[_0x273c21('0x1b')],null))['then'](respondWithResult(_0x35802e,null))[_0x273c21('0x65')](handleError(_0x35802e,null));},exports[_0x21fc71('0x2a')]=function(_0x4486c2,_0x26104e){const _0x307781=_0x21fc71;return db[_0x307781('0x5b')][_0x307781('0x89')]({'where':{'id':_0x4486c2[_0x307781('0x6e')]['id']}})[_0x307781('0x9a')](handleEntityNotFound(_0x26104e,null))['then'](removeEntity(_0x26104e,null))[_0x307781('0x65')](handleError(_0x26104e,null));},exports[_0x21fc71('0x4e')]=function(_0x142e20,_0x3b1274){const _0x183907=_0x21fc71;let _0x191061={'raw':![],'where':{}};const _0x479119={},_0x49b015={'count':0x0,'rows':[]};return db[_0x183907('0x5b')][_0x183907('0x89')]({'where':{'id':_0x142e20['params']['id']}})[_0x183907('0x9a')](handleEntityNotFound(_0x3b1274,null))[_0x183907('0x9a')](function(_0x14a483){const _0x4e7695=_0x183907;if(_0x14a483)return _0x479119[_0x4e7695('0x6c')]=_[_0x4e7695('0x79')](db['CmHopper'][_0x4e7695('0x90')]),_0x479119[_0x4e7695('0x5f')]=_[_0x4e7695('0x79')](_0x142e20[_0x4e7695('0x5f')]),_0x479119[_0x4e7695('0x9c')]=_[_0x4e7695('0x3a')](_0x479119[_0x4e7695('0x6c')],_0x479119[_0x4e7695('0x5f')]),_0x191061[_0x4e7695('0x36')]=_['intersection'](_0x479119[_0x4e7695('0x6c')],qs['fields'](_0x142e20[_0x4e7695('0x5f')][_0x4e7695('0x9b')])),_0x191061[_0x4e7695('0x36')]=_0x191061[_0x4e7695('0x36')][_0x4e7695('0x5')]?_0x191061[_0x4e7695('0x36')]:_0x479119[_0x4e7695('0x6c')],typeof _0x142e20[_0x4e7695('0x5f')][_0x4e7695('0x2d')]===_0x4e7695('0x44')&&(_0x191061['limit']=qs[_0x4e7695('0x7')](_0x142e20[_0x4e7695('0x5f')][_0x4e7695('0x7')]),_0x191061['offset']=qs[_0x4e7695('0x1d')](_0x142e20[_0x4e7695('0x5f')]['offset'])),_0x191061[_0x4e7695('0x2b')]=qs[_0x4e7695('0xf')](_0x142e20[_0x4e7695('0x5f')][_0x4e7695('0xf')]),_0x191061[_0x4e7695('0x0')]=qs[_0x4e7695('0x9c')](_[_0x4e7695('0x87')](_0x142e20[_0x4e7695('0x5f')],_0x479119[_0x4e7695('0x9c')])),_0x191061[_0x4e7695('0x0')][_0x4e7695('0x73')]=_0x14a483['id'],_0x142e20[_0x4e7695('0x5f')]['filter']&&(_0x191061[_0x4e7695('0x0')]=_[_0x4e7695('0x4c')](_0x191061[_0x4e7695('0x0')],{[Op['or']]:_[_0x4e7695('0x8e')](_0x191061[_0x4e7695('0x36')],function(_0x3765d1){const _0x8f1852=_0x4e7695,_0x20390c={};return _0x20390c[_0x3765d1]={[Op[_0x8f1852('0x68')]]:'%'+_0x142e20[_0x8f1852('0x5f')]['filter']+'%'},_0x20390c;})})),_0x191061=_['merge']({},_0x191061,_0x142e20[_0x4e7695('0x29')]),db[_0x4e7695('0x17')][_0x4e7695('0x2e')]({'where':_0x191061[_0x4e7695('0x0')]})[_0x4e7695('0x9a')](function(_0x3c9b57){const _0x34667a=_0x4e7695;return _0x49b015[_0x34667a('0x2e')]=_0x3c9b57,_0x142e20[_0x34667a('0x5f')]['includeAll']&&(_0x191061[_0x34667a('0x12')]=[{'all':!![]}]),db[_0x34667a('0x17')][_0x34667a('0x6b')](_0x191061);})[_0x4e7695('0x9a')](function(_0x499f19){const _0x48dc4e=_0x4e7695;return _0x49b015[_0x48dc4e('0x26')]=_0x499f19,_0x49b015;});})[_0x183907('0x9a')](respondWithFilteredResult(_0x3b1274,_0x191061))[_0x183907('0x65')](handleError(_0x3b1274,null));},exports[_0x21fc71('0x46')]=function(_0x135d7b,_0x8d763d){const _0x3210fb=_0x21fc71;let _0x6216c7={'raw':!![],'where':{}};const _0x41e9e9={},_0xa8d34f={'count':0x0,'rows':[]};return db[_0x3210fb('0x5b')][_0x3210fb('0x89')]({'where':{'id':_0x135d7b[_0x3210fb('0x6e')]['id']}})[_0x3210fb('0x9a')](handleEntityNotFound(_0x8d763d,null))['then'](function(_0x526479){const _0x5516a2=_0x3210fb;if(_0x526479)return _0x41e9e9[_0x5516a2('0x6c')]=_[_0x5516a2('0x79')](db['CmHopperHistory'][_0x5516a2('0x90')]),_0x41e9e9[_0x5516a2('0x5f')]=_[_0x5516a2('0x79')](_0x135d7b[_0x5516a2('0x5f')]),_0x41e9e9[_0x5516a2('0x9c')]=_[_0x5516a2('0x3a')](_0x41e9e9[_0x5516a2('0x6c')],_0x41e9e9[_0x5516a2('0x5f')]),_0x6216c7[_0x5516a2('0x36')]=_[_0x5516a2('0x3a')](_0x41e9e9['model'],qs[_0x5516a2('0x9b')](_0x135d7b['query']['fields'])),_0x6216c7[_0x5516a2('0x36')]=_0x6216c7['attributes']['length']?_0x6216c7['attributes']:_0x41e9e9[_0x5516a2('0x6c')],typeof _0x135d7b[_0x5516a2('0x5f')]['nolimit']===_0x5516a2('0x44')&&(_0x6216c7[_0x5516a2('0x7')]=qs[_0x5516a2('0x7')](_0x135d7b[_0x5516a2('0x5f')][_0x5516a2('0x7')]),_0x6216c7[_0x5516a2('0x1d')]=qs[_0x5516a2('0x1d')](_0x135d7b[_0x5516a2('0x5f')][_0x5516a2('0x1d')])),_0x6216c7[_0x5516a2('0x2b')]=qs[_0x5516a2('0xf')](_0x135d7b[_0x5516a2('0x5f')][_0x5516a2('0xf')]),_0x6216c7[_0x5516a2('0x0')]=qs['filters'](_[_0x5516a2('0x87')](_0x135d7b['query'],_0x41e9e9[_0x5516a2('0x9c')])),_0x6216c7[_0x5516a2('0x0')][_0x5516a2('0x73')]=_0x526479['id'],_0x135d7b[_0x5516a2('0x5f')][_0x5516a2('0x82')]&&(_0x6216c7['where']=_[_0x5516a2('0x4c')](_0x6216c7[_0x5516a2('0x0')],{[Op['or']]:_['map'](_0x6216c7[_0x5516a2('0x36')],function(_0x2a4ef0){const _0x478ff0=_0x5516a2,_0x329029={};return _0x329029[_0x2a4ef0]={[Op['like']]:'%'+_0x135d7b['query'][_0x478ff0('0x82')]+'%'},_0x329029;})})),_0x6216c7=_[_0x5516a2('0x4c')]({},_0x6216c7,_0x135d7b['options']),db[_0x5516a2('0x38')][_0x5516a2('0x2e')]({'where':_0x6216c7[_0x5516a2('0x0')]})[_0x5516a2('0x9a')](function(_0x1d8036){const _0x6252b8=_0x5516a2;return _0xa8d34f['count']=_0x1d8036,_0x135d7b[_0x6252b8('0x5f')]['includeAll']&&(_0x6216c7['include']=[{'all':!![]}]),db[_0x6252b8('0x38')]['findAll'](_0x6216c7);})[_0x5516a2('0x9a')](function(_0x49e898){return _0xa8d34f['rows']=_0x49e898,_0xa8d34f;});})['then'](respondWithFilteredResult(_0x8d763d,_0x6216c7))[_0x3210fb('0x65')](handleError(_0x8d763d,null));},exports['getHopperFinals']=function(_0x39a999,_0x1b4f1f){const _0x215eb1=_0x21fc71;let _0x3051fa={'raw':!![],'where':{}};const _0x50dda1={},_0x4018ad={'count':0x0,'rows':[]};return db[_0x215eb1('0x5b')][_0x215eb1('0x89')]({'where':{'id':_0x39a999[_0x215eb1('0x6e')]['id']}})[_0x215eb1('0x9a')](handleEntityNotFound(_0x1b4f1f,null))[_0x215eb1('0x9a')](function(_0x5af758){const _0x3b8211=_0x215eb1;if(_0x5af758)return _0x50dda1[_0x3b8211('0x6c')]=_[_0x3b8211('0x79')](db[_0x3b8211('0x69')][_0x3b8211('0x90')]),_0x50dda1[_0x3b8211('0x5f')]=_[_0x3b8211('0x79')](_0x39a999[_0x3b8211('0x5f')]),_0x50dda1['filters']=_[_0x3b8211('0x3a')](_0x50dda1[_0x3b8211('0x6c')],_0x50dda1[_0x3b8211('0x5f')]),_0x3051fa[_0x3b8211('0x36')]=_['intersection'](_0x50dda1['model'],qs['fields'](_0x39a999[_0x3b8211('0x5f')]['fields'])),_0x3051fa[_0x3b8211('0x36')]=_0x3051fa['attributes'][_0x3b8211('0x5')]?_0x3051fa['attributes']:_0x50dda1[_0x3b8211('0x6c')],typeof _0x39a999[_0x3b8211('0x5f')][_0x3b8211('0x2d')]==='undefined'&&(_0x3051fa[_0x3b8211('0x7')]=qs[_0x3b8211('0x7')](_0x39a999[_0x3b8211('0x5f')]['limit']),_0x3051fa[_0x3b8211('0x1d')]=qs['offset'](_0x39a999[_0x3b8211('0x5f')][_0x3b8211('0x1d')])),_0x3051fa[_0x3b8211('0x2b')]=qs[_0x3b8211('0xf')](_0x39a999[_0x3b8211('0x5f')]['sort']),_0x3051fa['where']=qs[_0x3b8211('0x9c')](_[_0x3b8211('0x87')](_0x39a999[_0x3b8211('0x5f')],_0x50dda1[_0x3b8211('0x9c')])),_0x3051fa[_0x3b8211('0x0')]['VoiceQueueId']=_0x5af758['id'],_0x39a999[_0x3b8211('0x5f')]['filter']&&(_0x3051fa[_0x3b8211('0x0')]=_[_0x3b8211('0x4c')](_0x3051fa[_0x3b8211('0x0')],{[Op['or']]:_['map'](_0x3051fa[_0x3b8211('0x36')],function(_0x4d8094){const _0x1639cd=_0x3b8211,_0x5afb83={};return _0x5afb83[_0x4d8094]={[Op[_0x1639cd('0x68')]]:'%'+_0x39a999[_0x1639cd('0x5f')][_0x1639cd('0x82')]+'%'},_0x5afb83;})})),_0x3051fa=_[_0x3b8211('0x4c')]({},_0x3051fa,_0x39a999['options']),db['CmHopperFinal'][_0x3b8211('0x2e')]({'where':_0x3051fa['where']})['then'](function(_0x5c5695){const _0x2256cd=_0x3b8211;return _0x4018ad[_0x2256cd('0x2e')]=_0x5c5695,_0x39a999['query'][_0x2256cd('0x15')]&&(_0x3051fa[_0x2256cd('0x12')]=[{'all':!![]}]),db['CmHopperFinal'][_0x2256cd('0x6b')](_0x3051fa);})[_0x3b8211('0x9a')](function(_0x3cb29b){const _0x370122=_0x3b8211;return _0x4018ad[_0x370122('0x26')]=_0x3cb29b,_0x4018ad;});})['then'](respondWithFilteredResult(_0x1b4f1f,_0x3051fa))[_0x215eb1('0x65')](handleError(_0x1b4f1f,null));},exports[_0x21fc71('0x43')]=function(_0x4f7f78,_0x1c6359){const _0x3671f3=_0x21fc71;let _0xa04848={'raw':!![],'where':{}};const _0x54f4ff={},_0x270493={'count':0x0,'rows':[]};return db[_0x3671f3('0x5b')][_0x3671f3('0x89')]({'where':{'id':_0x4f7f78['params']['id']}})['then'](handleEntityNotFound(_0x1c6359,null))[_0x3671f3('0x9a')](function(_0x275615){const _0x1748e6=_0x3671f3;if(_0x275615)return _0x54f4ff[_0x1748e6('0x6c')]=_[_0x1748e6('0x79')](db[_0x1748e6('0x67')][_0x1748e6('0x90')]),_0x54f4ff[_0x1748e6('0x5f')]=_[_0x1748e6('0x79')](_0x4f7f78[_0x1748e6('0x5f')]),_0x54f4ff[_0x1748e6('0x9c')]=_['intersection'](_0x54f4ff[_0x1748e6('0x6c')],_0x54f4ff[_0x1748e6('0x5f')]),_0xa04848['attributes']=_['intersection'](_0x54f4ff[_0x1748e6('0x6c')],qs[_0x1748e6('0x9b')](_0x4f7f78[_0x1748e6('0x5f')]['fields'])),_0xa04848['attributes']=_0xa04848[_0x1748e6('0x36')][_0x1748e6('0x5')]?_0xa04848[_0x1748e6('0x36')]:_0x54f4ff[_0x1748e6('0x6c')],typeof _0x4f7f78[_0x1748e6('0x5f')][_0x1748e6('0x2d')]===_0x1748e6('0x44')&&(_0xa04848[_0x1748e6('0x7')]=qs['limit'](_0x4f7f78['query']['limit']),_0xa04848[_0x1748e6('0x1d')]=qs[_0x1748e6('0x1d')](_0x4f7f78[_0x1748e6('0x5f')][_0x1748e6('0x1d')])),_0xa04848[_0x1748e6('0x2b')]=qs[_0x1748e6('0xf')](_0x4f7f78[_0x1748e6('0x5f')]['sort']),_0xa04848[_0x1748e6('0x0')]=qs[_0x1748e6('0x9c')](_[_0x1748e6('0x87')](_0x4f7f78[_0x1748e6('0x5f')],_0x54f4ff[_0x1748e6('0x9c')])),_0xa04848[_0x1748e6('0x0')][_0x1748e6('0x73')]=_0x275615['id'],_0x4f7f78[_0x1748e6('0x5f')][_0x1748e6('0x82')]&&(_0xa04848[_0x1748e6('0x0')]=_[_0x1748e6('0x4c')](_0xa04848[_0x1748e6('0x0')],{[Op['or']]:_[_0x1748e6('0x8e')](_0xa04848[_0x1748e6('0x36')],function(_0x533069){const _0x59d5b9=_0x1748e6,_0x34a0e6={};return _0x34a0e6[_0x533069]={[Op['like']]:'%'+_0x4f7f78['query'][_0x59d5b9('0x82')]+'%'},_0x34a0e6;})})),_0xa04848=_['merge']({},_0xa04848,_0x4f7f78[_0x1748e6('0x29')]),db[_0x1748e6('0x67')][_0x1748e6('0x2e')]({'where':_0xa04848[_0x1748e6('0x0')]})[_0x1748e6('0x9a')](function(_0x5c9045){const _0x362fbb=_0x1748e6;return _0x270493[_0x362fbb('0x2e')]=_0x5c9045,_0x4f7f78[_0x362fbb('0x5f')][_0x362fbb('0x15')]&&(_0xa04848['include']=[{'all':!![]}]),db['CmHopperBlack'][_0x362fbb('0x6b')](_0xa04848);})[_0x1748e6('0x9a')](function(_0x3b3f8c){const _0x5a622c=_0x1748e6;return _0x270493[_0x5a622c('0x26')]=_0x3b3f8c,_0x270493;});})[_0x3671f3('0x9a')](respondWithFilteredResult(_0x1c6359,_0xa04848))[_0x3671f3('0x65')](handleError(_0x1c6359,null));},exports[_0x21fc71('0x2f')]=function(_0x5b8c76,_0x7f9734){const _0x27622f=_0x21fc71;let _0xc8b20={};const _0x25788c={};let _0x110855,_0x49f145;return db['VoiceQueue'][_0x27622f('0x89')]({'where':{'id':_0x5b8c76[_0x27622f('0x6e')]['id']}})['then'](handleEntityNotFound(_0x7f9734,null))['then'](function(_0xfb2748){const _0x56b69b=_0x27622f;if(_0xfb2748)return _0x110855=_0xfb2748,_0x25788c[_0x56b69b('0x6c')]=_[_0x56b69b('0x79')](db[_0x56b69b('0x2')][_0x56b69b('0x90')]),_0x25788c[_0x56b69b('0x5f')]=_[_0x56b69b('0x79')](_0x5b8c76[_0x56b69b('0x5f')]),_0x25788c[_0x56b69b('0x9c')]=_['intersection'](_0x25788c[_0x56b69b('0x6c')],_0x25788c[_0x56b69b('0x5f')]),_0xc8b20[_0x56b69b('0x36')]=_['intersection'](_0x25788c['model'],qs['fields'](_0x5b8c76['query'][_0x56b69b('0x9b')])),_0xc8b20[_0x56b69b('0x36')]=_0xc8b20[_0x56b69b('0x36')][_0x56b69b('0x5')]?_0xc8b20[_0x56b69b('0x36')]:_0x25788c[_0x56b69b('0x6c')],_0xc8b20[_0x56b69b('0x2b')]=qs[_0x56b69b('0xf')](_0x5b8c76[_0x56b69b('0x5f')][_0x56b69b('0xf')]),_0xc8b20[_0x56b69b('0x0')]=qs['filters'](_[_0x56b69b('0x87')](_0x5b8c76[_0x56b69b('0x5f')],_0x25788c[_0x56b69b('0x9c')])),_0x5b8c76[_0x56b69b('0x5f')][_0x56b69b('0x82')]&&(_0xc8b20[_0x56b69b('0x0')]=_[_0x56b69b('0x4c')](_0xc8b20['where'],{[Op['or']]:_[_0x56b69b('0x8e')](_0xc8b20[_0x56b69b('0x36')],function(_0x117c3b){const _0x226c36=_0x56b69b,_0x5dff40={};return _0x5dff40[_0x117c3b]={[Op[_0x226c36('0x68')]]:'%'+_0x5b8c76[_0x226c36('0x5f')][_0x226c36('0x82')]+'%'},_0x5dff40;})})),_0xc8b20=_[_0x56b69b('0x4c')]({},_0xc8b20,_0x5b8c76['options']),_0x110855[_0x56b69b('0x2f')](_0xc8b20);})['then'](function(_0x2aecf0){const _0x27a9e8=_0x27622f;if(_0x2aecf0)return _0x49f145=_0x2aecf0[_0x27a9e8('0x5')],typeof _0x5b8c76['query'][_0x27a9e8('0x2d')]==='undefined'&&(_0xc8b20[_0x27a9e8('0x7')]=qs[_0x27a9e8('0x7')](_0x5b8c76[_0x27a9e8('0x5f')]['limit']),_0xc8b20['offset']=qs[_0x27a9e8('0x1d')](_0x5b8c76['query'][_0x27a9e8('0x1d')])),_0x110855[_0x27a9e8('0x2f')](_0xc8b20);})[_0x27622f('0x9a')](function(_0x392678){if(_0x392678)return _0x392678?{'count':_0x49f145,'rows':_0x392678}:null;})['then'](respondWithResult(_0x7f9734,null))[_0x27622f('0x65')](handleError(_0x7f9734,null));},exports[_0x21fc71('0x6a')]=function(_0x26d04e,_0x172f0a){const _0x14db2d=_0x21fc71,_0x1643a8=_0x26d04e[_0x14db2d('0x1b')][_0x14db2d('0x23')],_0x3fd138=_['map'](_0x1643a8,'id');return db['Team']['findAll']({'where':{'id':_0x3fd138},'attributes':['id'],'include':[{'model':db[_0x14db2d('0x5a')],'as':_0x14db2d('0x11'),'attributes':['id',_0x14db2d('0x49'),_0x14db2d('0x7b'),_0x14db2d('0x5e'),'interface'],'raw':!![]}]})[_0x14db2d('0x9a')](function(_0xa2e2bc){const _0x5b811b=_0x14db2d;if(_0xa2e2bc){const _0x39c92b=_['flatMap'](_0xa2e2bc,function(_0x1d625c){const _0x21ef20=a753_0x4f20,_0x38ce10=_0x1d625c[_0x21ef20('0x51')]({'plain':!![]});return _0x38ce10[_0x21ef20('0x11')]['forEach'](function(_0x10bdac){const _0xde1a33=_0x21ef20;_0x10bdac['penalty']=_[_0xde1a33('0x45')](_0x1643a8,{'id':_0x38ce10['id']})[_0xde1a33('0x9')];}),_0x38ce10[_0x21ef20('0x11')];});return db['VoiceQueue'][_0x5b811b('0x89')]({'where':{'id':_0x26d04e['params']['id']}})[_0x5b811b('0x9a')](function(_0x55895d){const _0x801dfb=_0x5b811b;return db[_0x801dfb('0x33')][_0x801dfb('0x47')](function(_0x2d2be9){const _0x4f7901=_0x801dfb;return _0x55895d[_0x4f7901('0x6a')](_0x3fd138,{'transaction':_0x2d2be9})['then'](function(){const _0x57c087=_0x4f7901;return Promise[_0x57c087('0x48')](_0x39c92b,function(_0x4f80f5){const _0x28ec58=_0x57c087;return db[_0x28ec58('0x10')][_0x28ec58('0x99')]({'where':{'UserId':_0x4f80f5['id'],'VoiceQueueId':_0x26d04e['params']['id']},'defaults':{'penalty':_0x4f80f5[_0x28ec58('0x9')]},'transaction':_0x2d2be9});});})[_0x4f7901('0x9a')](function(){const _0x228de2=_0x4f7901;return Promise[_0x228de2('0x48')](_[_0x228de2('0x82')](_0x39c92b,{'online':!![]}),function(_0xc82028){const _0x254703=_0x228de2;return db[_0x254703('0x7a')][_0x254703('0x60')]({'membername':_0xc82028['name'],'UserId':_0xc82028['id'],'queue_name':_0x55895d[_0x254703('0x49')],'VoiceQueueId':_0x55895d['id'],'interface':_[_0x254703('0x76')](_0xc82028['interface'])?util[_0x254703('0x85')](_0x254703('0xe'),_0xc82028[_0x254703('0x49')]):_0xc82028[_0x254703('0x6d')],'paused':_0xc82028[_0x254703('0x5e')]||![],'penalty':_0xc82028[_0x254703('0x9')]},{'transaction':_0x2d2be9});});})['then'](function(){_0x39c92b['forEach'](function(_0x402cc2){const _0x29640e=a753_0x4f20;socket[_0x29640e('0x7c')](_0x29640e('0x7f'),{'UserId':_0x402cc2['id'],'VoiceQueueId':_0x55895d['id']});});});});});}})[_0x14db2d('0x9a')](respondWithStatusCode(_0x172f0a,null))[_0x14db2d('0x65')](handleError(_0x172f0a,null));},exports[_0x21fc71('0x13')]=function(_0xca28ba,_0x577dd8){const _0x37b7e6=_0x21fc71;return db[_0x37b7e6('0x2')][_0x37b7e6('0x6b')]({'where':{'id':_0xca28ba[_0x37b7e6('0x5f')]['ids']},'attributes':['id'],'include':[{'model':db[_0x37b7e6('0x5a')],'as':_0x37b7e6('0x11'),'attributes':['id'],'raw':!![]}]})[_0x37b7e6('0x9a')](handleEntityNotFound(_0x577dd8,null))[_0x37b7e6('0x9a')](function(_0x47503c){const _0x2dc2c1=_0x37b7e6,_0x42bbf6=_[_0x2dc2c1('0x8e')](_0x47503c,'id');let _0x1eebb0=[];const _0x40ae5a=[],_0x1590e6=squel['select']();_0x1590e6[_0x2dc2c1('0x92')](_0x2dc2c1('0x4a'))[_0x2dc2c1('0x70')]('team_has_voice_queues','tq')['join']('user_has_teams','ut',_0x2dc2c1('0x31'))[_0x2dc2c1('0x0')](_0x2dc2c1('0x77'),_0xca28ba['params']['id']);for(let _0x152ce9=0x0;_0x152ce9<_0x47503c[_0x2dc2c1('0x5')];_0x152ce9+=0x1){const _0x21a8d0=_0x47503c[_0x152ce9];for(let _0x562835=0x0;_0x562835<_0x21a8d0[_0x2dc2c1('0x11')]['length'];_0x562835+=0x1){const _0x5b07e7=_0x21a8d0['Agents'][_0x562835],_0x1bd295=_0x1590e6[_0x2dc2c1('0x6')]();_0x1bd295[_0x2dc2c1('0x0')]('ut.UserId\x20=\x20?',_0x5b07e7['id']),_0x40ae5a[_0x2dc2c1('0x8f')](db[_0x2dc2c1('0x33')][_0x2dc2c1('0x5f')](_0x1bd295[_0x2dc2c1('0x37')](),{'type':db[_0x2dc2c1('0x33')][_0x2dc2c1('0x1a')][_0x2dc2c1('0x94')]})[_0x2dc2c1('0x9a')](function(_0x4cbc23){const _0x1f7949=_0x2dc2c1;if(_0x4cbc23[_0x1f7949('0x5')]===0x1)return _0x5b07e7['id'];else{const _0x4d1a95=_[_0x1f7949('0x61')](_['map'](_0x4cbc23,_0x1f7949('0x95')),function(_0x44d82d){const _0x2de2ae=_0x1f7949;return _[_0x2de2ae('0x1')](_0x42bbf6,_0x44d82d);});if(_0x4d1a95)return _0x5b07e7['id'];}}));}}return Promise['all'](_0x40ae5a)[_0x2dc2c1('0x9a')](function(_0x551884){const _0xbde8c5=_0x2dc2c1;return _0x1eebb0=_(_0x1eebb0)[_0xbde8c5('0x1c')](_0x551884)[_0xbde8c5('0x41')]()[_0xbde8c5('0x2c')](),db[_0xbde8c5('0x5b')][_0xbde8c5('0x89')]({'where':{'id':_0xca28ba[_0xbde8c5('0x6e')]['id']}})[_0xbde8c5('0x9a')](function(_0x4a4ab9){const _0x16daed=_0xbde8c5;return db[_0x16daed('0x33')]['transaction'](function(_0x2b9d95){const _0x5a4b22=_0x16daed;return _0x4a4ab9['removeTeams'](_0xca28ba[_0x5a4b22('0x5f')][_0x5a4b22('0x1e')],{'transaction':_0x2b9d95})['then'](function(){const _0x23575a=_0x5a4b22;if(!_['isEmpty'](_0x1eebb0))return _0x4a4ab9['removeAgents'](_0x1eebb0,{'transaction':_0x2b9d95})[_0x23575a('0x9a')](function(){const _0x202a8d=_0x23575a;return db[_0x202a8d('0x7a')][_0x202a8d('0x2a')]({'where':{'VoiceQueueId':_0xca28ba['params']['id'],'UserId':_0x1eebb0},'transaction':_0x2b9d95});});})['then'](function(){_0x1eebb0['forEach'](function(_0x31f275){const _0x34e7a4=a753_0x4f20;socket[_0x34e7a4('0x7c')](_0x34e7a4('0x5c'),{'UserId':_0x31f275,'VoiceQueueId':_0x4a4ab9['id']});});});});});});})['then'](respondWithStatusCode(_0x577dd8,null))[_0x37b7e6('0x65')](handleError(_0x577dd8,null));},exports[_0x21fc71('0x84')]=function(_0x2ec04a,_0x65e662){const _0x367d15=_0x21fc71;let _0x482bd5,_0x26a331;return db[_0x367d15('0x5b')]['findOne']({'where':{'id':_0x2ec04a[_0x367d15('0x6e')]['id']}})['then'](function(_0x584862){const _0x4ab57f=_0x367d15;if(_0x584862)return _0x26a331=_0x584862,_0x584862[_0x4ab57f('0x84')](_0x2ec04a[_0x4ab57f('0x1b')][_0x4ab57f('0x1e')],{'through':_[_0x4ab57f('0x55')](_0x2ec04a[_0x4ab57f('0x1b')],[_0x4ab57f('0x1e'),'id'])})['then'](function(_0xf92578){const _0x331fef=_0x4ab57f;for(let _0x4dc2cd=0x0;_0x4dc2cd<_0x2ec04a[_0x331fef('0x1b')][_0x331fef('0x1e')][_0x331fef('0x5')];_0x4dc2cd+=0x1){socket[_0x331fef('0x7c')]('userVoiceQueue:save',{'UserId':_0x2ec04a[_0x331fef('0x1b')]['ids'][_0x4dc2cd],'VoiceQueueId':_0x2ec04a[_0x331fef('0x6e')]['id']});}return _0xf92578;});})[_0x367d15('0x9a')](function(_0x33d20b){const _0x17d702=_0x367d15;_0x482bd5=_0x33d20b||[];if(_0x26a331)return db[_0x17d702('0x5a')][_0x17d702('0x6b')]({'where':{'id':_0x2ec04a[_0x17d702('0x1b')][_0x17d702('0x1e')]},'attributes':['id',_0x17d702('0x49'),_0x17d702('0x7b'),_0x17d702('0x5e'),_0x17d702('0x6d')],'raw':!![]});})[_0x367d15('0x9a')](function(_0x215005){const _0x92d173=_0x367d15;if(!_[_0x92d173('0x80')](_0x215005)){const _0x4d8aee=[];for(let _0x45ad2f=0x0;_0x45ad2f<_0x215005[_0x92d173('0x5')];_0x45ad2f++){_0x215005[_0x45ad2f][_0x92d173('0x7b')]&&_0x4d8aee['push'](db[_0x92d173('0x7a')][_0x92d173('0x60')]({'membername':_0x215005[_0x45ad2f][_0x92d173('0x49')],'UserId':_0x215005[_0x45ad2f]['id'],'queue_name':_0x26a331['name'],'VoiceQueueId':_0x26a331['id'],'interface':_[_0x92d173('0x76')](_0x215005[_0x45ad2f]['interface'])?util[_0x92d173('0x85')]('SIP/%s',_0x215005[_0x45ad2f][_0x92d173('0x49')]):_0x215005[_0x45ad2f][_0x92d173('0x6d')],'paused':_0x215005[_0x45ad2f]['voicePause']||![],'penalty':_0x2ec04a[_0x92d173('0x1b')]['penalty']||0x0}));}return Promise[_0x92d173('0x4d')](_0x4d8aee);}})[_0x367d15('0x9a')](function(){return _0x482bd5;})['then'](respondWithResult(_0x65e662,null))['catch'](handleError(_0x65e662,null));},exports['removeAgents']=function(_0x2b8d24,_0x50a74f){const _0xb3a9d7=_0x21fc71;return db[_0xb3a9d7('0x5b')]['findOne']({'where':{'id':_0x2b8d24[_0xb3a9d7('0x6e')]['id']}})[_0xb3a9d7('0x9a')](handleEntityNotFound(_0x50a74f,null))[_0xb3a9d7('0x9a')](function(_0x4d9189){const _0x20dc93=_0xb3a9d7;if(_0x4d9189)return _0x4d9189[_0x20dc93('0x42')](_0x2b8d24[_0x20dc93('0x5f')][_0x20dc93('0x1e')])[_0x20dc93('0x9a')](function(){const _0x22aed0=_0x20dc93;if(_[_0x22aed0('0x81')](_0x2b8d24[_0x22aed0('0x5f')][_0x22aed0('0x1e')]))for(let _0x18a101=0x0;_0x18a101<_0x2b8d24[_0x22aed0('0x5f')][_0x22aed0('0x1e')][_0x22aed0('0x5')];_0x18a101+=0x1){socket[_0x22aed0('0x7c')](_0x22aed0('0x5c'),{'UserId':Number(_0x2b8d24['query'][_0x22aed0('0x1e')][_0x18a101]),'VoiceQueueId':Number(_0x2b8d24['params']['id'])});}else socket[_0x22aed0('0x7c')]('userVoiceQueue:remove',{'UserId':Number(_0x2b8d24[_0x22aed0('0x5f')][_0x22aed0('0x1e')]),'VoiceQueueId':Number(_0x2b8d24[_0x22aed0('0x6e')]['id'])});});})[_0xb3a9d7('0x9a')](function(_0x2ac252){const _0x4464dd=_0xb3a9d7;return db[_0x4464dd('0x7a')][_0x4464dd('0x2a')]({'where':{'VoiceQueueId':_0x2b8d24[_0x4464dd('0x6e')]['id'],'UserId':_0x2b8d24[_0x4464dd('0x5f')][_0x4464dd('0x1e')]}})[_0x4464dd('0x9a')](function(){return _0x2ac252;});})[_0xb3a9d7('0x9a')](respondWithStatusCode(_0x50a74f,null))[_0xb3a9d7('0x65')](handleError(_0x50a74f,null));},exports[_0x21fc71('0x32')]=function(_0x44c96d,_0x2625f0){const _0x3eae8b=_0x21fc71;let _0x2c6297={};const _0x431a7e={};let _0x557e26,_0x47d5c3;return db[_0x3eae8b('0x5b')][_0x3eae8b('0x89')]({'where':{'id':_0x44c96d[_0x3eae8b('0x6e')]['id']}})[_0x3eae8b('0x9a')](handleEntityNotFound(_0x2625f0,null))['then'](function(_0x5b35eb){const _0xfa7a9a=_0x3eae8b;if(_0x5b35eb)return _0x557e26=_0x5b35eb,_0x431a7e[_0xfa7a9a('0x6c')]=_[_0xfa7a9a('0x79')](db[_0xfa7a9a('0x5a')][_0xfa7a9a('0x90')]),_0x431a7e[_0xfa7a9a('0x5f')]=_[_0xfa7a9a('0x79')](_0x44c96d[_0xfa7a9a('0x5f')]),_0x431a7e[_0xfa7a9a('0x9c')]=_[_0xfa7a9a('0x3a')](_0x431a7e[_0xfa7a9a('0x6c')],_0x431a7e['query']),_0x2c6297[_0xfa7a9a('0x36')]=_[_0xfa7a9a('0x3a')](_0x431a7e[_0xfa7a9a('0x6c')],qs[_0xfa7a9a('0x9b')](_0x44c96d[_0xfa7a9a('0x5f')]['fields'])),_0x2c6297[_0xfa7a9a('0x36')]=_0x2c6297[_0xfa7a9a('0x36')][_0xfa7a9a('0x5')]?_0x2c6297['attributes']:_0x431a7e['model'],_0x2c6297[_0xfa7a9a('0x2b')]=qs[_0xfa7a9a('0xf')](_0x44c96d[_0xfa7a9a('0x5f')][_0xfa7a9a('0xf')]),_0x2c6297[_0xfa7a9a('0x0')]=qs[_0xfa7a9a('0x9c')](_[_0xfa7a9a('0x87')](_0x44c96d[_0xfa7a9a('0x5f')],_0x431a7e[_0xfa7a9a('0x9c')])),_0x44c96d[_0xfa7a9a('0x5f')][_0xfa7a9a('0x82')]&&(_0x2c6297['where']=_[_0xfa7a9a('0x4c')](_0x2c6297[_0xfa7a9a('0x0')],{[Op['or']]:_['map'](_0x2c6297[_0xfa7a9a('0x36')],function(_0x20e9f3){const _0x2f26a3=_0xfa7a9a,_0x1d6d4f={};return _0x1d6d4f[_0x20e9f3]={[Op['like']]:'%'+_0x44c96d[_0x2f26a3('0x5f')]['filter']+'%'},_0x1d6d4f;})})),_0x2c6297=_[_0xfa7a9a('0x4c')]({},_0x2c6297,_0x44c96d['options']),_0x557e26[_0xfa7a9a('0x32')](_0x2c6297);})['then'](function(_0x37a59e){const _0x5ecb41=_0x3eae8b;if(_0x37a59e)return _0x47d5c3=_0x37a59e[_0x5ecb41('0x5')],typeof _0x44c96d['query'][_0x5ecb41('0x2d')]===_0x5ecb41('0x44')&&(_0x2c6297['limit']=qs[_0x5ecb41('0x7')](_0x44c96d[_0x5ecb41('0x5f')]['limit']),_0x2c6297['offset']=qs[_0x5ecb41('0x1d')](_0x44c96d['query']['offset'])),_0x557e26[_0x5ecb41('0x32')](_0x2c6297);})[_0x3eae8b('0x9a')](function(_0x3c5d2b){if(_0x3c5d2b)return _0x3c5d2b?{'count':_0x47d5c3,'rows':_0x3c5d2b}:null;})[_0x3eae8b('0x9a')](respondWithResult(_0x2625f0,null))[_0x3eae8b('0x65')](handleError(_0x2625f0,null));},exports[_0x21fc71('0xd')]=function(_0x4c671d,_0x452433){const _0x3ce72b=_0x21fc71;let _0x4389ab={};const _0x18d6e0={};let _0x597a20,_0xb3387a;return db['VoiceQueue']['findOne']({'where':{'id':_0x4c671d[_0x3ce72b('0x6e')]['id']}})['then'](handleEntityNotFound(_0x452433,null))[_0x3ce72b('0x9a')](function(_0x5bb49e){const _0x5f125c=_0x3ce72b;if(_0x5bb49e)return _0x597a20=_0x5bb49e,_0x18d6e0[_0x5f125c('0x6c')]=_[_0x5f125c('0x79')](db['UserVoiceQueueRt']['rawAttributes']),_0x18d6e0[_0x5f125c('0x5f')]=_['keys'](_0x4c671d[_0x5f125c('0x5f')]),_0x18d6e0[_0x5f125c('0x9c')]=_['intersection'](_0x18d6e0['model'],_0x18d6e0['query']),_0x4389ab[_0x5f125c('0x36')]=_['intersection'](_0x18d6e0[_0x5f125c('0x6c')],qs['fields'](_0x4c671d[_0x5f125c('0x5f')]['fields'])),_0x4389ab[_0x5f125c('0x36')]=_0x4389ab[_0x5f125c('0x36')][_0x5f125c('0x5')]?_0x4389ab['attributes']:_0x18d6e0[_0x5f125c('0x6c')],_0x4389ab[_0x5f125c('0x2b')]=qs['sort'](_0x4c671d[_0x5f125c('0x5f')][_0x5f125c('0xf')]),_0x4389ab[_0x5f125c('0x0')]=qs[_0x5f125c('0x9c')](_[_0x5f125c('0x87')](_0x4c671d[_0x5f125c('0x5f')],_0x18d6e0[_0x5f125c('0x9c')])),_0x4c671d[_0x5f125c('0x5f')][_0x5f125c('0x82')]&&(_0x4389ab[_0x5f125c('0x0')]=_['merge'](_0x4389ab[_0x5f125c('0x0')],{[Op['or']]:_[_0x5f125c('0x8e')](_0x4389ab[_0x5f125c('0x36')],function(_0x18cbe7){const _0x2cb363=_0x5f125c,_0x2bd33c={};return _0x2bd33c[_0x18cbe7]={[Op[_0x2cb363('0x68')]]:'%'+_0x4c671d[_0x2cb363('0x5f')][_0x2cb363('0x82')]+'%'},_0x2bd33c;})})),_0x4389ab=_[_0x5f125c('0x4c')]({},_0x4389ab,_0x4c671d[_0x5f125c('0x29')]),_0x597a20[_0x5f125c('0xd')](_0x4389ab);})['then'](function(_0x401b54){const _0x30cfe6=_0x3ce72b;if(_0x401b54)return _0xb3387a=_0x401b54[_0x30cfe6('0x5')],typeof _0x4c671d['query'][_0x30cfe6('0x2d')]===_0x30cfe6('0x44')&&(_0x4389ab[_0x30cfe6('0x7')]=qs[_0x30cfe6('0x7')](_0x4c671d['query'][_0x30cfe6('0x7')]),_0x4389ab['offset']=qs['offset'](_0x4c671d[_0x30cfe6('0x5f')][_0x30cfe6('0x1d')])),_0x597a20[_0x30cfe6('0xd')](_0x4389ab);})[_0x3ce72b('0x9a')](function(_0xc82e42){return _0xc82e42?{'count':_0xb3387a,'rows':_0xc82e42}:null;})['then'](respondWithResult(_0x452433,null))['catch'](handleError(_0x452433,null));},exports[_0x21fc71('0x39')]=function(_0x411ed7,_0x387ccc){const _0x362c44=_0x21fc71;let _0x58553c={};const _0x103c22={};let _0x1dc8b8,_0x5d8a5b;return db['VoiceQueue']['findOne']({'where':{'id':_0x411ed7[_0x362c44('0x6e')]['id']}})[_0x362c44('0x9a')](handleEntityNotFound(_0x387ccc,null))[_0x362c44('0x9a')](function(_0x52d4eb){const _0x332f49=_0x362c44;if(_0x52d4eb)return _0x1dc8b8=_0x52d4eb,_0x103c22['model']=_[_0x332f49('0x79')](db['CmList'][_0x332f49('0x90')]),_0x103c22[_0x332f49('0x5f')]=_[_0x332f49('0x79')](_0x411ed7[_0x332f49('0x5f')]),_0x103c22[_0x332f49('0x9c')]=_['intersection'](_0x103c22[_0x332f49('0x6c')],_0x103c22[_0x332f49('0x5f')]),_0x58553c['attributes']=_['intersection'](_0x103c22['model'],qs[_0x332f49('0x9b')](_0x411ed7[_0x332f49('0x5f')][_0x332f49('0x9b')])),_0x58553c[_0x332f49('0x36')]=_0x58553c[_0x332f49('0x36')]['length']?_0x58553c['attributes']:_0x103c22[_0x332f49('0x6c')],_0x58553c[_0x332f49('0x2b')]=qs['sort'](_0x411ed7[_0x332f49('0x5f')][_0x332f49('0xf')]),_0x58553c[_0x332f49('0x0')]=qs[_0x332f49('0x9c')](_[_0x332f49('0x87')](_0x411ed7['query'],_0x103c22[_0x332f49('0x9c')])),_0x411ed7[_0x332f49('0x5f')][_0x332f49('0x82')]&&(_0x58553c['where']=_[_0x332f49('0x4c')](_0x58553c['where'],{[Op['or']]:_[_0x332f49('0x8e')](_0x58553c['attributes'],function(_0x23371d){const _0x57e000=_0x332f49,_0x1723a7={};return _0x1723a7[_0x23371d]={[Op[_0x57e000('0x68')]]:'%'+_0x411ed7[_0x57e000('0x5f')]['filter']+'%'},_0x1723a7;})})),_0x58553c=_[_0x332f49('0x4c')]({},_0x58553c,_0x411ed7['options']),_0x1dc8b8[_0x332f49('0x39')](_0x58553c);})['then'](function(_0x424c5a){const _0x236a9a=_0x362c44;if(_0x424c5a)return _0x5d8a5b=_0x424c5a[_0x236a9a('0x5')],typeof _0x411ed7[_0x236a9a('0x5f')][_0x236a9a('0x2d')]==='undefined'&&(_0x58553c['limit']=qs['limit'](_0x411ed7['query'][_0x236a9a('0x7')]),_0x58553c['offset']=qs[_0x236a9a('0x1d')](_0x411ed7[_0x236a9a('0x5f')][_0x236a9a('0x1d')])),_0x1dc8b8['getLists'](_0x58553c);})[_0x362c44('0x9a')](function(_0x2df93a){if(_0x2df93a)return _0x2df93a?{'count':_0x5d8a5b,'rows':_0x2df93a}:null;})['then'](respondWithResult(_0x387ccc,null))[_0x362c44('0x65')](handleError(_0x387ccc,null));},exports[_0x21fc71('0x74')]=function(_0x271224,_0x5742c9){const _0x3df2d3=_0x21fc71;let _0x21da52,_0xd293ca;return db[_0x3df2d3('0x5b')][_0x3df2d3('0x89')]({'where':{'id':_0x271224[_0x3df2d3('0x6e')]['id']}})['then'](handleEntityNotFound(_0x5742c9,null))['then'](function(_0x3b99d7){const _0x4fbbfa=_0x3df2d3;if(_0x3b99d7)return _0xd293ca=_0x3b99d7,_0x3b99d7['addLists'](_0x271224[_0x4fbbfa('0x1b')][_0x4fbbfa('0x1e')],{'through':_['omit'](_0x271224[_0x4fbbfa('0x1b')],[_0x4fbbfa('0x1e'),'id'])});return null;})[_0x3df2d3('0x9a')](function(_0x30ce4f){const _0xec01f5=_0x3df2d3;let _0x3d5dba;_0x21da52=_0x30ce4f||[];const _0x4a4a64=[];if(_0x30ce4f){for(let _0x327c48=0x0;_0x327c48<_0x30ce4f['length'];_0x327c48+=0x1){const _0x4da1fc=_0x30ce4f[_0x327c48][_0xec01f5('0x51')]({'plain':!![]});_0xd293ca[_0xec01f5('0xc')]=_0x271224[_0xec01f5('0x1b')][_0xec01f5('0xc')]?_0x271224[_0xec01f5('0x1b')][_0xec01f5('0xc')]:_0xd293ca[_0xec01f5('0xc')];switch(_0xd293ca[_0xec01f5('0xc')]){case'always':_0x3d5dba=squel['insert']()[_0xec01f5('0x75')](_0xec01f5('0x20'))['fromQuery']([_0xec01f5('0x8'),'scheduledAt',_0xec01f5('0x4f'),'ListId',_0xec01f5('0x73'),_0xec01f5('0x78'),_0xec01f5('0x97')],squel[_0xec01f5('0x3c')]()[_0xec01f5('0x92')](_0xec01f5('0x8'),'phone')[_0xec01f5('0x92')](_0xec01f5('0x16'),_0xec01f5('0x93'))[_0xec01f5('0x92')]('id','ContactId')['field'](_0x4da1fc[_0xec01f5('0x3b')]['toString'](),_0xec01f5('0x28'))['field'](_0x271224[_0xec01f5('0x6e')]['id']['toString'](),_0xec01f5('0x73'))[_0xec01f5('0x92')](_0xec01f5('0x16'),_0xec01f5('0x78'))[_0xec01f5('0x92')](_0xec01f5('0x16'),_0xec01f5('0x97'))['from']('cm_contacts')['where'](_0xec01f5('0x52'))[_0xec01f5('0x0')](_0xec01f5('0x7e'),_0x4da1fc[_0xec01f5('0x3b')][_0xec01f5('0x37')]())[_0xec01f5('0x0')]('phone\x20IS\x20NOT\x20NULL')[_0xec01f5('0x0')](_0xec01f5('0x5d'),squel[_0xec01f5('0x3c')]()[_0xec01f5('0x92')](_0xec01f5('0x7d'))[_0xec01f5('0x70')](_0xec01f5('0x30'))[_0xec01f5('0x0')]('VoiceQueueId\x20=\x20?',_0x271224[_0xec01f5('0x6e')]['id'][_0xec01f5('0x37')]()))[_0xec01f5('0x0')]('phone\x20NOT\x20IN\x20(?)',squel[_0xec01f5('0x3c')]()[_0xec01f5('0x92')](_0xec01f5('0x3e'))[_0xec01f5('0x70')](_0xec01f5('0x20'))[_0xec01f5('0x0')](_0xec01f5('0x77'),_0x271224[_0xec01f5('0x6e')]['id']['toString']())))['toString']();break;case _0xec01f5('0x8d'):_0x3d5dba=squel[_0xec01f5('0xb')]()[_0xec01f5('0x75')]('cm_hopper')['fromQuery']([_0xec01f5('0x8'),_0xec01f5('0x93'),'ContactId',_0xec01f5('0x28'),_0xec01f5('0x73'),_0xec01f5('0x78'),_0xec01f5('0x97')],squel[_0xec01f5('0x3c')]()[_0xec01f5('0x92')](_0xec01f5('0x8'),_0xec01f5('0x8'))['field'](_0xec01f5('0x16'),_0xec01f5('0x93'))[_0xec01f5('0x92')]('id',_0xec01f5('0x4f'))[_0xec01f5('0x92')](_0x4da1fc[_0xec01f5('0x3b')][_0xec01f5('0x37')](),_0xec01f5('0x28'))[_0xec01f5('0x92')](_0x271224[_0xec01f5('0x6e')]['id']['toString'](),_0xec01f5('0x73'))[_0xec01f5('0x92')](_0xec01f5('0x16'),'createdAt')[_0xec01f5('0x92')]('NOW()',_0xec01f5('0x97'))[_0xec01f5('0x70')](_0xec01f5('0x66'))[_0xec01f5('0x0')](_0xec01f5('0x52'))[_0xec01f5('0x0')](_0xec01f5('0x7e'),_0x4da1fc[_0xec01f5('0x3b')][_0xec01f5('0x37')]())[_0xec01f5('0x0')](_0xec01f5('0x8c'))[_0xec01f5('0x0')](_0xec01f5('0x5d'),squel[_0xec01f5('0x3c')]()[_0xec01f5('0x92')](_0xec01f5('0x3e'))['from'](_0xec01f5('0x20'))[_0xec01f5('0x0')](_0xec01f5('0x77'),_0x271224['params']['id'][_0xec01f5('0x37')]())))[_0xec01f5('0x37')]();break;default:_0x3d5dba=squel[_0xec01f5('0xb')]()[_0xec01f5('0x75')](_0xec01f5('0x20'))[_0xec01f5('0x54')]([_0xec01f5('0x8'),'scheduledAt',_0xec01f5('0x4f'),_0xec01f5('0x28'),_0xec01f5('0x73'),_0xec01f5('0x78'),_0xec01f5('0x97')],squel[_0xec01f5('0x3c')]()['field']('phone','phone')[_0xec01f5('0x92')](_0xec01f5('0x16'),_0xec01f5('0x93'))[_0xec01f5('0x92')]('id',_0xec01f5('0x4f'))[_0xec01f5('0x92')](_0x4da1fc[_0xec01f5('0x3b')]['toString'](),'ListId')[_0xec01f5('0x92')](_0x271224[_0xec01f5('0x6e')]['id'][_0xec01f5('0x37')](),_0xec01f5('0x73'))[_0xec01f5('0x92')](_0xec01f5('0x16'),_0xec01f5('0x78'))[_0xec01f5('0x92')]('NOW()',_0xec01f5('0x97'))[_0xec01f5('0x70')](_0xec01f5('0x66'))[_0xec01f5('0x0')]('deletedAt\x20IS\x20NULL')[_0xec01f5('0x0')](_0xec01f5('0x7e'),_0x4da1fc['CmListId']['toString']())['where'](_0xec01f5('0x8c')))[_0xec01f5('0x37')]();}_0x4a4a64[_0xec01f5('0x8f')](db['sequelize']['query'](_0x3d5dba));}return Promise[_0xec01f5('0x4d')](_0x4a4a64);}})[_0x3df2d3('0x9a')](function(){return _0x21da52;})[_0x3df2d3('0x9a')](respondWithResult(_0x5742c9,null))[_0x3df2d3('0x65')](handleError(_0x5742c9,null));},exports['removeLists']=function(_0x377a0a,_0x13d73f){const _0x79d581=_0x21fc71;return db[_0x79d581('0x5b')][_0x79d581('0x89')]({'where':{'id':_0x377a0a[_0x79d581('0x6e')]['id']}})[_0x79d581('0x9a')](handleEntityNotFound(_0x13d73f,null))['then'](function(_0x2a88d2){const _0x5a6487=_0x79d581;if(_0x2a88d2)return _0x2a88d2[_0x5a6487('0x14')](_0x377a0a[_0x5a6487('0x5f')][_0x5a6487('0x1e')]);})[_0x79d581('0x9a')](function(_0x59579f){const _0x4a5bb4=_0x79d581;if(_0x59579f)return db[_0x4a5bb4('0x17')][_0x4a5bb4('0x2a')]({'where':{'ListId':_0x377a0a[_0x4a5bb4('0x5f')]['ids'],'VoiceQueueId':_0x377a0a[_0x4a5bb4('0x6e')]['id']}})[_0x4a5bb4('0x9a')](function(){return _0x59579f;});})[_0x79d581('0x9a')](respondWithStatusCode(_0x13d73f,null))[_0x79d581('0x65')](handleError(_0x13d73f,null));},exports['getBlackLists']=function(_0x5edef6,_0x1b3a2f){const _0x536e07=_0x21fc71;let _0x1f4457={};const _0x2df268={};let _0x571d8b,_0x1d1a23;return db[_0x536e07('0x5b')][_0x536e07('0x89')]({'where':{'id':_0x5edef6[_0x536e07('0x6e')]['id']}})['then'](handleEntityNotFound(_0x1b3a2f,null))['then'](function(_0x2517c3){const _0x1e6f7e=_0x536e07;if(_0x2517c3)return _0x571d8b=_0x2517c3,_0x2df268[_0x1e6f7e('0x6c')]=_[_0x1e6f7e('0x79')](db[_0x1e6f7e('0x24')][_0x1e6f7e('0x90')]),_0x2df268['query']=_[_0x1e6f7e('0x79')](_0x5edef6[_0x1e6f7e('0x5f')]),_0x2df268['filters']=_['intersection'](_0x2df268['model'],_0x2df268[_0x1e6f7e('0x5f')]),_0x1f4457[_0x1e6f7e('0x36')]=_[_0x1e6f7e('0x3a')](_0x2df268[_0x1e6f7e('0x6c')],qs[_0x1e6f7e('0x9b')](_0x5edef6[_0x1e6f7e('0x5f')][_0x1e6f7e('0x9b')])),_0x1f4457[_0x1e6f7e('0x36')]=_0x1f4457[_0x1e6f7e('0x36')][_0x1e6f7e('0x5')]?_0x1f4457[_0x1e6f7e('0x36')]:_0x2df268['model'],_0x1f4457['order']=qs[_0x1e6f7e('0xf')](_0x5edef6['query'][_0x1e6f7e('0xf')]),_0x1f4457[_0x1e6f7e('0x0')]=qs[_0x1e6f7e('0x9c')](_[_0x1e6f7e('0x87')](_0x5edef6[_0x1e6f7e('0x5f')],_0x2df268['filters'])),_0x5edef6['query'][_0x1e6f7e('0x82')]&&(_0x1f4457[_0x1e6f7e('0x0')]=_[_0x1e6f7e('0x4c')](_0x1f4457[_0x1e6f7e('0x0')],{[Op['or']]:_[_0x1e6f7e('0x8e')](_0x1f4457[_0x1e6f7e('0x36')],function(_0x3aa8bd){const _0x440c00=_0x1e6f7e,_0x237eae={};return _0x237eae[_0x3aa8bd]={[Op[_0x440c00('0x68')]]:'%'+_0x5edef6['query'][_0x440c00('0x82')]+'%'},_0x237eae;})})),_0x1f4457=_['merge']({},_0x1f4457,_0x5edef6[_0x1e6f7e('0x29')]),_0x571d8b['getBlackLists'](_0x1f4457);})[_0x536e07('0x9a')](function(_0x3c2d41){const _0x923c6c=_0x536e07;if(_0x3c2d41)return _0x1d1a23=_0x3c2d41[_0x923c6c('0x5')],typeof _0x5edef6[_0x923c6c('0x5f')][_0x923c6c('0x2d')]===_0x923c6c('0x44')&&(_0x1f4457['limit']=qs[_0x923c6c('0x7')](_0x5edef6[_0x923c6c('0x5f')][_0x923c6c('0x7')]),_0x1f4457[_0x923c6c('0x1d')]=qs[_0x923c6c('0x1d')](_0x5edef6[_0x923c6c('0x5f')][_0x923c6c('0x1d')])),_0x571d8b[_0x923c6c('0x91')](_0x1f4457);})[_0x536e07('0x9a')](function(_0x5e79fa){if(_0x5e79fa)return _0x5e79fa?{'count':_0x1d1a23,'rows':_0x5e79fa}:null;})['then'](respondWithResult(_0x1b3a2f,null))[_0x536e07('0x65')](handleError(_0x1b3a2f,null));},exports['addBlackLists']=function(_0x37c791,_0x43f9a2){const _0x5075ac=_0x21fc71;let _0x278f45;return db[_0x5075ac('0x5b')][_0x5075ac('0x89')]({'where':{'id':_0x37c791[_0x5075ac('0x6e')]['id']}})['then'](handleEntityNotFound(_0x43f9a2,null))[_0x5075ac('0x9a')](function(_0x5612dd){const _0x4aa0cf=_0x5075ac;if(_0x5612dd)return _0x5612dd[_0x4aa0cf('0x6f')](_0x37c791[_0x4aa0cf('0x1b')][_0x4aa0cf('0x1e')],{'through':_[_0x4aa0cf('0x55')](_0x37c791['body'],[_0x4aa0cf('0x1e'),'id'])});return null;})[_0x5075ac('0x9a')](function(_0x3d5ed0){const _0x3da0a2=_0x5075ac;let _0x5c7221;_0x278f45=_0x3d5ed0||[];const _0x3a4688=[];if(_0x3d5ed0){for(let _0x53ebeb=0x0;_0x53ebeb<_0x3d5ed0[_0x3da0a2('0x5')];_0x53ebeb+=0x1){const _0x511e39=_0x3d5ed0[_0x53ebeb][_0x3da0a2('0x51')]({'plain':!![]});_0x5c7221=squel[_0x3da0a2('0xb')]()[_0x3da0a2('0x75')]('cm_hopper_black')['fromQuery']([_0x3da0a2('0x8'),_0x3da0a2('0x4f'),'ListId',_0x3da0a2('0x73'),_0x3da0a2('0x78'),_0x3da0a2('0x97')],squel[_0x3da0a2('0x3c')]()[_0x3da0a2('0x92')]('phone','phone')[_0x3da0a2('0x92')]('id',_0x3da0a2('0x4f'))[_0x3da0a2('0x92')](_0x511e39['CmListId'][_0x3da0a2('0x37')](),'ListId')[_0x3da0a2('0x92')](_0x37c791[_0x3da0a2('0x6e')]['id']['toString'](),_0x3da0a2('0x73'))[_0x3da0a2('0x92')](_0x3da0a2('0x16'),_0x3da0a2('0x78'))[_0x3da0a2('0x92')](_0x3da0a2('0x16'),'updatedAt')[_0x3da0a2('0x70')](_0x3da0a2('0x66'))[_0x3da0a2('0x0')](_0x3da0a2('0x52'))['where'](_0x3da0a2('0x7e'),_0x511e39[_0x3da0a2('0x3b')][_0x3da0a2('0x37')]())[_0x3da0a2('0x0')](_0x3da0a2('0x8c')))[_0x3da0a2('0x37')](),_0x3a4688[_0x3da0a2('0x8f')](db[_0x3da0a2('0x33')]['query'](_0x5c7221));}return Promise[_0x3da0a2('0x4d')](_0x3a4688);}})[_0x5075ac('0x9a')](function(){return _0x278f45;})[_0x5075ac('0x9a')](respondWithResult(_0x43f9a2,null))[_0x5075ac('0x65')](handleError(_0x43f9a2,null));},exports[_0x21fc71('0x27')]=function(_0x41e6b6,_0x121e61){const _0x4fa8cd=_0x21fc71;return db[_0x4fa8cd('0x5b')]['findOne']({'where':{'id':_0x41e6b6[_0x4fa8cd('0x6e')]['id']}})[_0x4fa8cd('0x9a')](handleEntityNotFound(_0x121e61,null))[_0x4fa8cd('0x9a')](function(_0x59c579){const _0x3c8714=_0x4fa8cd;if(_0x59c579)return _0x59c579[_0x3c8714('0x27')](_0x41e6b6['query']['ids']);})[_0x4fa8cd('0x9a')](function(_0x12d4b0){const _0x27710c=_0x4fa8cd;if(_0x12d4b0)return db[_0x27710c('0x67')]['destroy']({'where':{'ListId':_0x41e6b6[_0x27710c('0x5f')][_0x27710c('0x1e')],'VoiceQueueId':_0x41e6b6[_0x27710c('0x6e')]['id']}})[_0x27710c('0x9a')](function(){return _0x12d4b0;});})[_0x4fa8cd('0x9a')](respondWithStatusCode(_0x121e61,null))[_0x4fa8cd('0x65')](handleError(_0x121e61,null));}; \ No newline at end of file +const a753_0x1fae=['ListId','create','fields','join','getLists','upsert','VoiceQueueId\x20=\x20?','findOne','find','findOrCreate','onlyIfOpen','union','value','name','destroy','transaction','inbound','filter','like','select','scheduledAt','end','format','status','emit','each','toString','interface','json','getTeams','all','isArray','nolimit','sort','limit','order','UserVoiceQueue','deletedAt\x20IS\x20NULL','phone\x20NOT\x20IN\x20(?)','type','VoiceQueueId','ContactId','options','../../rediscache','findAll','api','ids','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','ListId\x20=\x20?','CmList','cm_hopper','send','from','merge','rows','params','getMembers','tq.TeamId','../../config/logger','getAgents','user','teams','into','set','getHoppers','cm_contacts','isEmpty','count','COALESCE(calleridnum,\x27\x27)','insert','sequelize','ut.TeamId\x20=\x20tq.TeamId','phone\x20IS\x20NOT\x20NULL','UserProfileResource','get','role','flatMap','penalty','CmHopperHistory','addBlackLists','rawAttributes','removeAgents','autoAssociation','push','every','field','Content-Range','team_has_voice_queues','offset','online','update','sendStatus','NOW()','Team','addLists','SELECT','createdAt','UserProfileSection','CmHopperFinal','ignore','VoiceQueue','map','attributes','lodash','key','isNil','outbound','updatedAt','dialCheckDuplicateType','TeamId','removeBlackLists','QueryTypes','cm_hopper_black','catch','CmListId','UserVoiceQueueRt','include','userProfileId','phone','omit','removeTeams','pick','intersection','VoiceQueues','CmHopper','getHopperFinals','length','stack','error','removeLists','Agents','SIP/%s','body','clone','User','includes','COALESCE(phone,\x27\x27)','addAgents','where','keys','forEach','ut.UserId\x20=\x20?','CmHopperBlack','voicePause','Unable\x20to\x20retrieve\x20the\x20current\x20user','model','userVoiceQueue:save','then','undefined','query','always','fieldName','includeAll','filters','getBlackLists','QueueCampaigns','index','register','addTeams','fromQuery'];(function(_0x15a7ad,_0x1faeef){const _0x1634b6=function(_0x4b0a18){while(--_0x4b0a18){_0x15a7ad['push'](_0x15a7ad['shift']());}};_0x1634b6(++_0x1faeef);}(a753_0x1fae,0x182));const a753_0x1634=function(_0x15a7ad,_0x1faeef){_0x15a7ad=_0x15a7ad-0x0;let _0x1634b6=a753_0x1fae[_0x15a7ad];return _0x1634b6;};const _0x1c3da8=a753_0x1634;'use strict';const util=require('util'),_=require(_0x1c3da8('0x25')),squel=require('squel'),qs=require('../../components/parsers/qs'),logger=require(_0x1c3da8('0x98'))(_0x1c3da8('0x8b')),{getSocket}=require(_0x1c3da8('0x89')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require('./voiceQueue.socket')[_0x1c3da8('0x5b')](socket);function respondWithStatusCode(_0x4b0a18,_0x179b6e){return _0x179b6e=_0x179b6e||0xcc,function(_0x5cf2ba){const _0x496c81=a753_0x1634;if(_0x5cf2ba)return _0x4b0a18[_0x496c81('0x19')](_0x179b6e);return _0x4b0a18['status'](_0x179b6e)['end']();};}function respondWithResult(_0x4bb659,_0x4119f4){return _0x4119f4=_0x4119f4||0xc8,function(_0x5495ad){const _0x498a34=a753_0x1634;if(_0x5495ad)return _0x4bb659[_0x498a34('0x75')](_0x4119f4)[_0x498a34('0x7a')](_0x5495ad);};}function respondWithFilteredResult(_0x3f9641,_0x4f2e41){return function(_0x3522a7){const _0x55b346=a753_0x1634;if(_0x3522a7){const _0x27b4d3=_0x3522a7[_0x55b346('0x1')],_0x42522b=_0x4f2e41['offset'];let _0xe9031c=_0x4f2e41[_0x55b346('0x16')]+_0x4f2e41['limit'],_0x4c6083;return _0xe9031c>=_0x27b4d3?(_0xe9031c=_0x27b4d3,_0x4c6083=0xc8):_0x4c6083=0xce,_0x3f9641['status'](_0x4c6083),_0x3f9641[_0x55b346('0x9d')](_0x55b346('0x14'),_0x42522b+'-'+_0xe9031c+'/'+_0x27b4d3)[_0x55b346('0x7a')](_0x3522a7);}return null;};}function saveUpdates(_0x15b3dd){return function(_0x37b687){const _0x120763=a753_0x1634;if(_0x37b687)return _0x37b687[_0x120763('0x18')](_0x15b3dd)[_0x120763('0x51')](function(_0x194f43){return _0x194f43;});return null;};}function removeEntity(_0x24b416){return function(_0x41935e){const _0x5d4d27=a753_0x1634;if(_0x41935e)return _0x41935e[_0x5d4d27('0x6c')]()['then'](function(){const _0x4d662b=_0x5d4d27,_0xa06859=_0x41935e['get']({'plain':!![]}),_0x10e16e=[{'name':_0x4d662b('0x39'),'value':'inbound','ignore':![]},{'name':_0x4d662b('0x59'),'value':_0x4d662b('0x28'),'ignore':![]}],_0x4e664e=_(_0x10e16e)[_0x4d662b('0x6f')](_0x4d662b('0x21'))[_0x4d662b('0x23')](_0x4d662b('0x6a'))[_0x4d662b('0x6a')]();if(_[_0x4d662b('0x45')](_0x4e664e,_0xa06859[_0x4d662b('0x85')]))return;const _0x57525b=_[_0x4d662b('0x66')](_0x10e16e,[_0x4d662b('0x6a'),_0xa06859[_0x4d662b('0x85')]])['name'];return db['UserProfileResource'][_0x4d662b('0x6c')]({'where':{'type':_0x57525b,'resourceId':_0xa06859['id']}})[_0x4d662b('0x51')](function(){return _0x41935e;});})[_0x5d4d27('0x51')](function(){const _0x7e1586=_0x5d4d27;_0x24b416[_0x7e1586('0x75')](0xcc)[_0x7e1586('0x73')]();});};}function handleEntityNotFound(_0x59385b){return function(_0x18f0cf){const _0x2434cd=a753_0x1634;return!_0x18f0cf&&_0x59385b[_0x2434cd('0x19')](0x194),_0x18f0cf;};}function handleError(_0x5f48b5,_0x19229d){return _0x19229d=_0x19229d||0x1f4,function(_0x1f4e22){const _0x3430c6=a753_0x1634;logger[_0x3430c6('0x3e')](_0x1f4e22[_0x3430c6('0x3d')]),_0x1f4e22[_0x3430c6('0x6b')]&&delete _0x1f4e22[_0x3430c6('0x6b')],_0x5f48b5['status'](_0x19229d)[_0x3430c6('0x91')](_0x1f4e22);};}exports[_0x1c3da8('0x5a')]=function(_0x382012,_0x16114c){const _0x550a62=_0x1c3da8;let _0x449244={};const _0xc67540={},_0x18c64d={'count':0x0,'rows':[]},_0x5a8bba=_[_0x550a62('0x23')](db['VoiceQueue'][_0x550a62('0xe')],function(_0x55f339){const _0x3809fe=_0x550a62;return{'name':_0x55f339[_0x3809fe('0x55')],'type':_0x55f339[_0x3809fe('0x85')][_0x3809fe('0x26')]};});_0xc67540[_0x550a62('0x4f')]=_['map'](_0x5a8bba,'name'),_0xc67540['query']=_[_0x550a62('0x49')](_0x382012[_0x550a62('0x53')]),_0xc67540[_0x550a62('0x57')]=_[_0x550a62('0x38')](_0xc67540[_0x550a62('0x4f')],_0xc67540[_0x550a62('0x53')]),_0x449244[_0x550a62('0x24')]=_[_0x550a62('0x38')](_0xc67540[_0x550a62('0x4f')],qs[_0x550a62('0x60')](_0x382012['query'][_0x550a62('0x60')])),_0x449244[_0x550a62('0x24')]=_0x449244[_0x550a62('0x24')][_0x550a62('0x3c')]?_0x449244[_0x550a62('0x24')]:_0xc67540[_0x550a62('0x4f')];typeof _0x382012[_0x550a62('0x53')]['nolimit']===_0x550a62('0x52')&&(_0x449244[_0x550a62('0x80')]=qs[_0x550a62('0x80')](_0x382012[_0x550a62('0x53')][_0x550a62('0x80')]),_0x449244[_0x550a62('0x16')]=qs['offset'](_0x382012[_0x550a62('0x53')]['offset']));_0x449244[_0x550a62('0x81')]=qs[_0x550a62('0x7f')](_0x382012[_0x550a62('0x53')][_0x550a62('0x7f')]),_0x449244['where']=qs[_0x550a62('0x57')](_['pick'](_0x382012['query'],_0xc67540[_0x550a62('0x57')]),_0x5a8bba);_0x382012['query'][_0x550a62('0x6f')]&&(_0x449244['where']=_[_0x550a62('0x93')](_0x449244[_0x550a62('0x48')],{[Op['or']]:_[_0x550a62('0x23')](_0x5a8bba,function(_0x50580c){const _0x3b59cf=_0x550a62;if(_0x50580c[_0x3b59cf('0x85')]!=='VIRTUAL'){const _0x1ee52d={};return _0x1ee52d[_0x50580c[_0x3b59cf('0x6b')]]={[Op[_0x3b59cf('0x70')]]:'%'+_0x382012[_0x3b59cf('0x53')]['filter']+'%'},_0x1ee52d;}})}));_0x449244=_[_0x550a62('0x93')]({},_0x449244,_0x382012[_0x550a62('0x88')]);const _0x5d0141={'where':_0x449244[_0x550a62('0x48')]};return db[_0x550a62('0x22')][_0x550a62('0x1')](_0x5d0141)[_0x550a62('0x51')](function(_0x45eb04){const _0x4e8cd4=_0x550a62;return _0x18c64d[_0x4e8cd4('0x1')]=_0x45eb04,_0x382012['query'][_0x4e8cd4('0x56')]&&(_0x449244[_0x4e8cd4('0x32')]=[{'all':!![]}]),db[_0x4e8cd4('0x22')][_0x4e8cd4('0x8a')](_0x449244);})[_0x550a62('0x51')](function(_0x5066cd){const _0x4a96db=_0x550a62;return _0x18c64d[_0x4a96db('0x94')]=_0x5066cd,_0x18c64d;})[_0x550a62('0x51')](respondWithFilteredResult(_0x16114c,_0x449244))['catch'](handleError(_0x16114c,null));},exports['show']=function(_0x3a17a4,_0x56c862){const _0x36fad4=_0x1c3da8;let _0x28a15d={'raw':![],'where':{'id':_0x3a17a4['params']['id']}};const _0x1c0fba={};return _0x1c0fba[_0x36fad4('0x4f')]=_['keys'](db[_0x36fad4('0x22')]['rawAttributes']),_0x1c0fba[_0x36fad4('0x53')]=_[_0x36fad4('0x49')](_0x3a17a4['query']),_0x1c0fba[_0x36fad4('0x57')]=_['intersection'](_0x1c0fba[_0x36fad4('0x4f')],_0x1c0fba[_0x36fad4('0x53')]),_0x28a15d[_0x36fad4('0x24')]=_[_0x36fad4('0x38')](_0x1c0fba[_0x36fad4('0x4f')],qs[_0x36fad4('0x60')](_0x3a17a4[_0x36fad4('0x53')][_0x36fad4('0x60')])),_0x28a15d[_0x36fad4('0x24')]=_0x28a15d[_0x36fad4('0x24')]['length']?_0x28a15d[_0x36fad4('0x24')]:_0x1c0fba[_0x36fad4('0x4f')],_0x3a17a4[_0x36fad4('0x53')]['includeAll']&&(_0x28a15d[_0x36fad4('0x32')]=[{'all':!![]}]),_0x28a15d=_[_0x36fad4('0x93')]({},_0x28a15d,_0x3a17a4['options']),db[_0x36fad4('0x22')][_0x36fad4('0x65')](_0x28a15d)[_0x36fad4('0x51')](handleEntityNotFound(_0x56c862,null))[_0x36fad4('0x51')](respondWithResult(_0x56c862,null))[_0x36fad4('0x2f')](handleError(_0x56c862,null));},exports[_0x1c3da8('0x5f')]=function(_0x3631ec,_0x52f219){const _0x152232=_0x1c3da8;return db[_0x152232('0x22')][_0x152232('0x5f')](_0x3631ec[_0x152232('0x42')],{})['then'](function(_0x4cd4c9){const _0x576e55=_0x152232,_0x418a86=_0x3631ec[_0x576e55('0x9a')][_0x576e55('0x8')]({'plain':!![]});if(!_0x418a86)throw new Error(_0x576e55('0x4e'));if(_0x418a86[_0x576e55('0x9')]===_0x576e55('0x9a')){const _0x2c59ef=_0x4cd4c9['get']({'plain':!![]}),_0xc39b1c=[{'name':'VoiceQueues','value':_0x576e55('0x6e')},{'name':'QueueCampaigns','value':_0x576e55('0x28')}],_0x246b43=_[_0x576e55('0x66')](_0xc39b1c,[_0x576e55('0x6a'),_0x2c59ef[_0x576e55('0x85')]])[_0x576e55('0x6b')];return db['UserProfileSection'][_0x576e55('0x65')]({'where':{'name':_0x246b43,'userProfileId':_0x418a86[_0x576e55('0x33')]},'raw':!![]})[_0x576e55('0x51')](function(_0x31b08c){const _0x24270f=_0x576e55;return _0x31b08c&&_0x31b08c[_0x24270f('0x10')]===0x0?db[_0x24270f('0x7')][_0x24270f('0x5f')]({'name':_0x2c59ef[_0x24270f('0x6b')],'resourceId':_0x2c59ef['id'],'type':_0x31b08c['name'],'sectionId':_0x31b08c['id']},{})[_0x24270f('0x51')](function(){return _0x4cd4c9;}):_0x4cd4c9;})[_0x576e55('0x2f')](function(_0x489db2){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x489db2);throw _0x489db2;});}return _0x4cd4c9;})['then'](respondWithResult(_0x52f219,0xc9))[_0x152232('0x2f')](handleError(_0x52f219,null));},exports[_0x1c3da8('0x43')]=function(_0x4bab4b,_0x1454ce){const _0x1c3799=_0x1c3da8;let _0x4f4090={'where':{'id':_0x4bab4b[_0x1c3799('0x95')]['id']}};const _0x3db868={};return _0x3db868[_0x1c3799('0x4f')]=_[_0x1c3799('0x49')](db[_0x1c3799('0x22')][_0x1c3799('0xe')]),_0x4f4090[_0x1c3799('0x24')]=_[_0x1c3799('0x38')](_0x3db868[_0x1c3799('0x4f')],qs[_0x1c3799('0x60')](_0x4bab4b[_0x1c3799('0x53')][_0x1c3799('0x60')])),_0x4f4090[_0x1c3799('0x24')]=_0x4f4090[_0x1c3799('0x24')][_0x1c3799('0x3c')]?_0x4f4090[_0x1c3799('0x24')]:_0x3db868[_0x1c3799('0x4f')],_0x4bab4b[_0x1c3799('0x53')][_0x1c3799('0x56')]&&(_0x4f4090[_0x1c3799('0x32')]=[{'all':!![]}]),_0x4f4090=_[_0x1c3799('0x93')]({},_0x4f4090,_0x4bab4b[_0x1c3799('0x88')]),db['VoiceQueue'][_0x1c3799('0x65')](_0x4f4090)[_0x1c3799('0x51')](handleEntityNotFound(_0x1454ce,null))[_0x1c3799('0x51')](function(_0x3f2425){const _0x2b4b8f=_0x1c3799;if(_0x3f2425){let _0x3ff0c8=_0x3f2425[_0x2b4b8f('0x8')]({'plain':!![]});return _0x3ff0c8=qs[_0x2b4b8f('0x35')](_0x3ff0c8,['id',_0x2b4b8f('0x1e'),_0x2b4b8f('0x29')]),_0x4bab4b[_0x2b4b8f('0x42')]=_[_0x2b4b8f('0x35')](_0x4bab4b[_0x2b4b8f('0x42')],['id','createdAt',_0x2b4b8f('0x29')]),db[_0x2b4b8f('0x22')]['create'](_[_0x2b4b8f('0x93')](_0x3ff0c8,_0x4bab4b[_0x2b4b8f('0x42')]),{'include':_0x4bab4b[_0x2b4b8f('0x53')][_0x2b4b8f('0x56')]?[{'all':!![]}]:undefined})[_0x2b4b8f('0x51')](function(_0x4059c6){const _0x259436=_0x2b4b8f,_0x151986=_0x4bab4b[_0x259436('0x9a')][_0x259436('0x8')]({'plain':!![]});if(!_0x151986)throw new Error(_0x259436('0x4e'));if(_0x151986[_0x259436('0x9')]==='user'){const _0x451c23=_0x4059c6['get']({'plain':!![]}),_0x1900ff=[{'name':_0x259436('0x39'),'value':_0x259436('0x6e')},{'name':_0x259436('0x59'),'value':_0x259436('0x28')}],_0x4f7f2d=_[_0x259436('0x66')](_0x1900ff,['value',_0x451c23[_0x259436('0x85')]])['name'];return db[_0x259436('0x1f')][_0x259436('0x65')]({'where':{'name':_0x4f7f2d,'userProfileId':_0x151986[_0x259436('0x33')]},'raw':!![]})[_0x259436('0x51')](function(_0x3d5f6f){const _0x3aeb05=_0x259436;return _0x3d5f6f&&_0x3d5f6f[_0x3aeb05('0x10')]===0x0?db[_0x3aeb05('0x7')][_0x3aeb05('0x5f')]({'name':_0x451c23[_0x3aeb05('0x6b')],'resourceId':_0x451c23['id'],'type':_0x3d5f6f[_0x3aeb05('0x6b')],'sectionId':_0x3d5f6f['id']},{})['then'](function(){return _0x4059c6;}):_0x4059c6;})[_0x259436('0x2f')](function(_0x5addbb){const _0x4ecd30=_0x259436;logger['error'](_0x4ecd30('0x8d'),_0x5addbb);throw _0x5addbb;});}return _0x4059c6;});}})[_0x1c3799('0x51')](respondWithResult(_0x1454ce,0xc9))['catch'](handleError(_0x1454ce,null));},exports[_0x1c3da8('0x18')]=function(_0x2d03ba,_0x3a8e02){const _0x4cf151=_0x1c3da8;return _0x2d03ba[_0x4cf151('0x42')]['id']&&delete _0x2d03ba[_0x4cf151('0x42')]['id'],db[_0x4cf151('0x22')]['findOne']({'where':{'id':_0x2d03ba['params']['id']}})[_0x4cf151('0x51')](handleEntityNotFound(_0x3a8e02,null))['then'](saveUpdates(_0x2d03ba[_0x4cf151('0x42')],null))['then'](respondWithResult(_0x3a8e02,null))[_0x4cf151('0x2f')](handleError(_0x3a8e02,null));},exports['destroy']=function(_0x4eb18f,_0xaecce8){const _0x1972db=_0x1c3da8;return db[_0x1972db('0x22')][_0x1972db('0x65')]({'where':{'id':_0x4eb18f[_0x1972db('0x95')]['id']}})[_0x1972db('0x51')](handleEntityNotFound(_0xaecce8,null))[_0x1972db('0x51')](removeEntity(_0xaecce8,null))[_0x1972db('0x2f')](handleError(_0xaecce8,null));},exports[_0x1c3da8('0x9e')]=function(_0x466b42,_0x545714){const _0xbc805e=_0x1c3da8;let _0x42300f={'raw':![],'where':{}};const _0x2ebab0={},_0x48b504={'count':0x0,'rows':[]};return db[_0xbc805e('0x22')][_0xbc805e('0x65')]({'where':{'id':_0x466b42[_0xbc805e('0x95')]['id']}})[_0xbc805e('0x51')](handleEntityNotFound(_0x545714,null))[_0xbc805e('0x51')](function(_0xc5b7c3){const _0x5670a4=_0xbc805e;if(_0xc5b7c3)return _0x2ebab0['model']=_[_0x5670a4('0x49')](db[_0x5670a4('0x3a')][_0x5670a4('0xe')]),_0x2ebab0['query']=_[_0x5670a4('0x49')](_0x466b42[_0x5670a4('0x53')]),_0x2ebab0[_0x5670a4('0x57')]=_['intersection'](_0x2ebab0['model'],_0x2ebab0['query']),_0x42300f[_0x5670a4('0x24')]=_[_0x5670a4('0x38')](_0x2ebab0[_0x5670a4('0x4f')],qs['fields'](_0x466b42[_0x5670a4('0x53')][_0x5670a4('0x60')])),_0x42300f[_0x5670a4('0x24')]=_0x42300f[_0x5670a4('0x24')]['length']?_0x42300f[_0x5670a4('0x24')]:_0x2ebab0['model'],typeof _0x466b42['query'][_0x5670a4('0x7e')]===_0x5670a4('0x52')&&(_0x42300f[_0x5670a4('0x80')]=qs['limit'](_0x466b42['query']['limit']),_0x42300f[_0x5670a4('0x16')]=qs['offset'](_0x466b42['query'][_0x5670a4('0x16')])),_0x42300f[_0x5670a4('0x81')]=qs['sort'](_0x466b42['query'][_0x5670a4('0x7f')]),_0x42300f[_0x5670a4('0x48')]=qs[_0x5670a4('0x57')](_['pick'](_0x466b42[_0x5670a4('0x53')],_0x2ebab0[_0x5670a4('0x57')])),_0x42300f[_0x5670a4('0x48')][_0x5670a4('0x86')]=_0xc5b7c3['id'],_0x466b42[_0x5670a4('0x53')][_0x5670a4('0x6f')]&&(_0x42300f[_0x5670a4('0x48')]=_[_0x5670a4('0x93')](_0x42300f[_0x5670a4('0x48')],{[Op['or']]:_[_0x5670a4('0x23')](_0x42300f[_0x5670a4('0x24')],function(_0x599506){const _0x4449f6=_0x5670a4,_0x7caff2={};return _0x7caff2[_0x599506]={[Op[_0x4449f6('0x70')]]:'%'+_0x466b42[_0x4449f6('0x53')][_0x4449f6('0x6f')]+'%'},_0x7caff2;})})),_0x42300f=_['merge']({},_0x42300f,_0x466b42['options']),db[_0x5670a4('0x3a')]['count']({'where':_0x42300f[_0x5670a4('0x48')]})[_0x5670a4('0x51')](function(_0x50078){const _0x5a9a5b=_0x5670a4;return _0x48b504[_0x5a9a5b('0x1')]=_0x50078,_0x466b42[_0x5a9a5b('0x53')]['includeAll']&&(_0x42300f[_0x5a9a5b('0x32')]=[{'all':!![]}]),db[_0x5a9a5b('0x3a')][_0x5a9a5b('0x8a')](_0x42300f);})[_0x5670a4('0x51')](function(_0x20bda5){const _0x16a437=_0x5670a4;return _0x48b504[_0x16a437('0x94')]=_0x20bda5,_0x48b504;});})[_0xbc805e('0x51')](respondWithFilteredResult(_0x545714,_0x42300f))['catch'](handleError(_0x545714,null));},exports['getHopperHistories']=function(_0x98953b,_0x35fff1){const _0x317f67=_0x1c3da8;let _0x3a8fd1={'raw':!![],'where':{}};const _0x21c64a={},_0xef3486={'count':0x0,'rows':[]};return db['VoiceQueue'][_0x317f67('0x65')]({'where':{'id':_0x98953b['params']['id']}})[_0x317f67('0x51')](handleEntityNotFound(_0x35fff1,null))[_0x317f67('0x51')](function(_0x5d4578){const _0x3c78a2=_0x317f67;if(_0x5d4578)return _0x21c64a['model']=_['keys'](db['CmHopperHistory']['rawAttributes']),_0x21c64a[_0x3c78a2('0x53')]=_[_0x3c78a2('0x49')](_0x98953b[_0x3c78a2('0x53')]),_0x21c64a['filters']=_['intersection'](_0x21c64a[_0x3c78a2('0x4f')],_0x21c64a[_0x3c78a2('0x53')]),_0x3a8fd1[_0x3c78a2('0x24')]=_[_0x3c78a2('0x38')](_0x21c64a[_0x3c78a2('0x4f')],qs[_0x3c78a2('0x60')](_0x98953b[_0x3c78a2('0x53')][_0x3c78a2('0x60')])),_0x3a8fd1[_0x3c78a2('0x24')]=_0x3a8fd1[_0x3c78a2('0x24')][_0x3c78a2('0x3c')]?_0x3a8fd1[_0x3c78a2('0x24')]:_0x21c64a[_0x3c78a2('0x4f')],typeof _0x98953b[_0x3c78a2('0x53')][_0x3c78a2('0x7e')]===_0x3c78a2('0x52')&&(_0x3a8fd1[_0x3c78a2('0x80')]=qs[_0x3c78a2('0x80')](_0x98953b[_0x3c78a2('0x53')][_0x3c78a2('0x80')]),_0x3a8fd1[_0x3c78a2('0x16')]=qs['offset'](_0x98953b['query'][_0x3c78a2('0x16')])),_0x3a8fd1[_0x3c78a2('0x81')]=qs[_0x3c78a2('0x7f')](_0x98953b[_0x3c78a2('0x53')][_0x3c78a2('0x7f')]),_0x3a8fd1[_0x3c78a2('0x48')]=qs[_0x3c78a2('0x57')](_['pick'](_0x98953b['query'],_0x21c64a[_0x3c78a2('0x57')])),_0x3a8fd1[_0x3c78a2('0x48')][_0x3c78a2('0x86')]=_0x5d4578['id'],_0x98953b[_0x3c78a2('0x53')][_0x3c78a2('0x6f')]&&(_0x3a8fd1[_0x3c78a2('0x48')]=_[_0x3c78a2('0x93')](_0x3a8fd1[_0x3c78a2('0x48')],{[Op['or']]:_['map'](_0x3a8fd1[_0x3c78a2('0x24')],function(_0x177103){const _0x2b12e4=_0x3c78a2,_0x1608a4={};return _0x1608a4[_0x177103]={[Op[_0x2b12e4('0x70')]]:'%'+_0x98953b[_0x2b12e4('0x53')][_0x2b12e4('0x6f')]+'%'},_0x1608a4;})})),_0x3a8fd1=_[_0x3c78a2('0x93')]({},_0x3a8fd1,_0x98953b['options']),db[_0x3c78a2('0xc')]['count']({'where':_0x3a8fd1[_0x3c78a2('0x48')]})[_0x3c78a2('0x51')](function(_0x2277b5){const _0x53865b=_0x3c78a2;return _0xef3486[_0x53865b('0x1')]=_0x2277b5,_0x98953b[_0x53865b('0x53')][_0x53865b('0x56')]&&(_0x3a8fd1[_0x53865b('0x32')]=[{'all':!![]}]),db[_0x53865b('0xc')][_0x53865b('0x8a')](_0x3a8fd1);})[_0x3c78a2('0x51')](function(_0x4742ec){const _0x52adc5=_0x3c78a2;return _0xef3486[_0x52adc5('0x94')]=_0x4742ec,_0xef3486;});})[_0x317f67('0x51')](respondWithFilteredResult(_0x35fff1,_0x3a8fd1))[_0x317f67('0x2f')](handleError(_0x35fff1,null));},exports[_0x1c3da8('0x3b')]=function(_0x895127,_0x2681d6){const _0x2cb76a=_0x1c3da8;let _0x1877c={'raw':!![],'where':{}};const _0x40d4eb={},_0x4c2d62={'count':0x0,'rows':[]};return db[_0x2cb76a('0x22')][_0x2cb76a('0x65')]({'where':{'id':_0x895127[_0x2cb76a('0x95')]['id']}})[_0x2cb76a('0x51')](handleEntityNotFound(_0x2681d6,null))['then'](function(_0x1d905a){const _0x530827=_0x2cb76a;if(_0x1d905a)return _0x40d4eb[_0x530827('0x4f')]=_[_0x530827('0x49')](db[_0x530827('0x20')][_0x530827('0xe')]),_0x40d4eb['query']=_[_0x530827('0x49')](_0x895127[_0x530827('0x53')]),_0x40d4eb[_0x530827('0x57')]=_[_0x530827('0x38')](_0x40d4eb[_0x530827('0x4f')],_0x40d4eb[_0x530827('0x53')]),_0x1877c[_0x530827('0x24')]=_[_0x530827('0x38')](_0x40d4eb[_0x530827('0x4f')],qs[_0x530827('0x60')](_0x895127[_0x530827('0x53')]['fields'])),_0x1877c['attributes']=_0x1877c[_0x530827('0x24')]['length']?_0x1877c[_0x530827('0x24')]:_0x40d4eb['model'],typeof _0x895127[_0x530827('0x53')][_0x530827('0x7e')]==='undefined'&&(_0x1877c[_0x530827('0x80')]=qs[_0x530827('0x80')](_0x895127[_0x530827('0x53')][_0x530827('0x80')]),_0x1877c['offset']=qs[_0x530827('0x16')](_0x895127[_0x530827('0x53')][_0x530827('0x16')])),_0x1877c[_0x530827('0x81')]=qs[_0x530827('0x7f')](_0x895127[_0x530827('0x53')][_0x530827('0x7f')]),_0x1877c['where']=qs['filters'](_[_0x530827('0x37')](_0x895127[_0x530827('0x53')],_0x40d4eb[_0x530827('0x57')])),_0x1877c[_0x530827('0x48')]['VoiceQueueId']=_0x1d905a['id'],_0x895127['query'][_0x530827('0x6f')]&&(_0x1877c[_0x530827('0x48')]=_[_0x530827('0x93')](_0x1877c[_0x530827('0x48')],{[Op['or']]:_[_0x530827('0x23')](_0x1877c[_0x530827('0x24')],function(_0x47ef3d){const _0x3d7579={};return _0x3d7579[_0x47ef3d]={[Op['like']]:'%'+_0x895127['query']['filter']+'%'},_0x3d7579;})})),_0x1877c=_['merge']({},_0x1877c,_0x895127[_0x530827('0x88')]),db[_0x530827('0x20')][_0x530827('0x1')]({'where':_0x1877c[_0x530827('0x48')]})['then'](function(_0x244e77){const _0x2cc280=_0x530827;return _0x4c2d62[_0x2cc280('0x1')]=_0x244e77,_0x895127[_0x2cc280('0x53')][_0x2cc280('0x56')]&&(_0x1877c[_0x2cc280('0x32')]=[{'all':!![]}]),db[_0x2cc280('0x20')]['findAll'](_0x1877c);})[_0x530827('0x51')](function(_0xd9ef5d){const _0x391a14=_0x530827;return _0x4c2d62[_0x391a14('0x94')]=_0xd9ef5d,_0x4c2d62;});})[_0x2cb76a('0x51')](respondWithFilteredResult(_0x2681d6,_0x1877c))[_0x2cb76a('0x2f')](handleError(_0x2681d6,null));},exports['getHopperBlacks']=function(_0x10b2a1,_0x3e7d11){const _0x529326=_0x1c3da8;let _0x753768={'raw':!![],'where':{}};const _0x4600ca={},_0x786116={'count':0x0,'rows':[]};return db[_0x529326('0x22')][_0x529326('0x65')]({'where':{'id':_0x10b2a1['params']['id']}})[_0x529326('0x51')](handleEntityNotFound(_0x3e7d11,null))[_0x529326('0x51')](function(_0x594106){const _0xfc9bd4=_0x529326;if(_0x594106)return _0x4600ca[_0xfc9bd4('0x4f')]=_[_0xfc9bd4('0x49')](db[_0xfc9bd4('0x4c')][_0xfc9bd4('0xe')]),_0x4600ca[_0xfc9bd4('0x53')]=_['keys'](_0x10b2a1[_0xfc9bd4('0x53')]),_0x4600ca[_0xfc9bd4('0x57')]=_[_0xfc9bd4('0x38')](_0x4600ca[_0xfc9bd4('0x4f')],_0x4600ca['query']),_0x753768[_0xfc9bd4('0x24')]=_['intersection'](_0x4600ca[_0xfc9bd4('0x4f')],qs['fields'](_0x10b2a1[_0xfc9bd4('0x53')][_0xfc9bd4('0x60')])),_0x753768[_0xfc9bd4('0x24')]=_0x753768[_0xfc9bd4('0x24')][_0xfc9bd4('0x3c')]?_0x753768['attributes']:_0x4600ca['model'],typeof _0x10b2a1[_0xfc9bd4('0x53')][_0xfc9bd4('0x7e')]===_0xfc9bd4('0x52')&&(_0x753768[_0xfc9bd4('0x80')]=qs[_0xfc9bd4('0x80')](_0x10b2a1[_0xfc9bd4('0x53')]['limit']),_0x753768[_0xfc9bd4('0x16')]=qs[_0xfc9bd4('0x16')](_0x10b2a1[_0xfc9bd4('0x53')]['offset'])),_0x753768[_0xfc9bd4('0x81')]=qs[_0xfc9bd4('0x7f')](_0x10b2a1[_0xfc9bd4('0x53')][_0xfc9bd4('0x7f')]),_0x753768[_0xfc9bd4('0x48')]=qs[_0xfc9bd4('0x57')](_[_0xfc9bd4('0x37')](_0x10b2a1[_0xfc9bd4('0x53')],_0x4600ca[_0xfc9bd4('0x57')])),_0x753768['where'][_0xfc9bd4('0x86')]=_0x594106['id'],_0x10b2a1[_0xfc9bd4('0x53')]['filter']&&(_0x753768[_0xfc9bd4('0x48')]=_[_0xfc9bd4('0x93')](_0x753768['where'],{[Op['or']]:_[_0xfc9bd4('0x23')](_0x753768[_0xfc9bd4('0x24')],function(_0x1e495e){const _0x2bbd3f=_0xfc9bd4,_0x15c5e5={};return _0x15c5e5[_0x1e495e]={[Op[_0x2bbd3f('0x70')]]:'%'+_0x10b2a1[_0x2bbd3f('0x53')][_0x2bbd3f('0x6f')]+'%'},_0x15c5e5;})})),_0x753768=_['merge']({},_0x753768,_0x10b2a1[_0xfc9bd4('0x88')]),db['CmHopperBlack'][_0xfc9bd4('0x1')]({'where':_0x753768[_0xfc9bd4('0x48')]})[_0xfc9bd4('0x51')](function(_0x46b9e5){const _0x4558a7=_0xfc9bd4;return _0x786116['count']=_0x46b9e5,_0x10b2a1[_0x4558a7('0x53')][_0x4558a7('0x56')]&&(_0x753768[_0x4558a7('0x32')]=[{'all':!![]}]),db[_0x4558a7('0x4c')][_0x4558a7('0x8a')](_0x753768);})[_0xfc9bd4('0x51')](function(_0x2f1947){const _0xc2eafb=_0xfc9bd4;return _0x786116[_0xc2eafb('0x94')]=_0x2f1947,_0x786116;});})[_0x529326('0x51')](respondWithFilteredResult(_0x3e7d11,_0x753768))[_0x529326('0x2f')](handleError(_0x3e7d11,null));},exports[_0x1c3da8('0x7b')]=function(_0x1b6a5d,_0x1065b4){const _0x5bc2fb=_0x1c3da8;let _0x3ed007={};const _0x51f6cf={};let _0xc01a0c,_0x4fdf86;return db[_0x5bc2fb('0x22')][_0x5bc2fb('0x65')]({'where':{'id':_0x1b6a5d[_0x5bc2fb('0x95')]['id']}})[_0x5bc2fb('0x51')](handleEntityNotFound(_0x1065b4,null))[_0x5bc2fb('0x51')](function(_0x227f07){const _0x5bf3e3=_0x5bc2fb;if(_0x227f07)return _0xc01a0c=_0x227f07,_0x51f6cf[_0x5bf3e3('0x4f')]=_[_0x5bf3e3('0x49')](db[_0x5bf3e3('0x1b')][_0x5bf3e3('0xe')]),_0x51f6cf['query']=_[_0x5bf3e3('0x49')](_0x1b6a5d[_0x5bf3e3('0x53')]),_0x51f6cf[_0x5bf3e3('0x57')]=_[_0x5bf3e3('0x38')](_0x51f6cf[_0x5bf3e3('0x4f')],_0x51f6cf[_0x5bf3e3('0x53')]),_0x3ed007[_0x5bf3e3('0x24')]=_['intersection'](_0x51f6cf[_0x5bf3e3('0x4f')],qs[_0x5bf3e3('0x60')](_0x1b6a5d['query'][_0x5bf3e3('0x60')])),_0x3ed007[_0x5bf3e3('0x24')]=_0x3ed007['attributes']['length']?_0x3ed007[_0x5bf3e3('0x24')]:_0x51f6cf[_0x5bf3e3('0x4f')],_0x3ed007[_0x5bf3e3('0x81')]=qs[_0x5bf3e3('0x7f')](_0x1b6a5d[_0x5bf3e3('0x53')]['sort']),_0x3ed007['where']=qs[_0x5bf3e3('0x57')](_[_0x5bf3e3('0x37')](_0x1b6a5d[_0x5bf3e3('0x53')],_0x51f6cf['filters'])),_0x1b6a5d[_0x5bf3e3('0x53')][_0x5bf3e3('0x6f')]&&(_0x3ed007['where']=_[_0x5bf3e3('0x93')](_0x3ed007[_0x5bf3e3('0x48')],{[Op['or']]:_['map'](_0x3ed007[_0x5bf3e3('0x24')],function(_0xd0273){const _0x2ca871=_0x5bf3e3,_0x47bd48={};return _0x47bd48[_0xd0273]={[Op['like']]:'%'+_0x1b6a5d[_0x2ca871('0x53')][_0x2ca871('0x6f')]+'%'},_0x47bd48;})})),_0x3ed007=_[_0x5bf3e3('0x93')]({},_0x3ed007,_0x1b6a5d[_0x5bf3e3('0x88')]),_0xc01a0c[_0x5bf3e3('0x7b')](_0x3ed007);})[_0x5bc2fb('0x51')](function(_0x3ce33d){const _0x5ef712=_0x5bc2fb;if(_0x3ce33d)return _0x4fdf86=_0x3ce33d['length'],typeof _0x1b6a5d['query'][_0x5ef712('0x7e')]==='undefined'&&(_0x3ed007[_0x5ef712('0x80')]=qs['limit'](_0x1b6a5d[_0x5ef712('0x53')]['limit']),_0x3ed007['offset']=qs[_0x5ef712('0x16')](_0x1b6a5d[_0x5ef712('0x53')][_0x5ef712('0x16')])),_0xc01a0c[_0x5ef712('0x7b')](_0x3ed007);})[_0x5bc2fb('0x51')](function(_0x14807d){if(_0x14807d)return _0x14807d?{'count':_0x4fdf86,'rows':_0x14807d}:null;})[_0x5bc2fb('0x51')](respondWithResult(_0x1065b4,null))[_0x5bc2fb('0x2f')](handleError(_0x1065b4,null));},exports[_0x1c3da8('0x5c')]=function(_0x43347d,_0x2a2391){const _0x421910=_0x1c3da8,_0x43de59=_0x43347d[_0x421910('0x42')][_0x421910('0x9b')],_0x381a80=_['map'](_0x43de59,'id');return db['Team'][_0x421910('0x8a')]({'where':{'id':_0x381a80},'attributes':['id'],'include':[{'model':db[_0x421910('0x44')],'as':_0x421910('0x40'),'attributes':['id',_0x421910('0x6b'),_0x421910('0x17'),_0x421910('0x4d'),_0x421910('0x79')],'raw':!![]}]})['then'](function(_0x2a71a4){const _0x122ca9=_0x421910;if(_0x2a71a4){const _0x4d7f94=_[_0x122ca9('0xa')](_0x2a71a4,function(_0x19d4fc){const _0x52a9a1=_0x122ca9,_0x172413=_0x19d4fc['get']({'plain':!![]});return _0x172413['Agents']['forEach'](function(_0x476bf6){const _0x3ab16b=a753_0x1634;_0x476bf6[_0x3ab16b('0xb')]=_['find'](_0x43de59,{'id':_0x172413['id']})['penalty'];}),_0x172413[_0x52a9a1('0x40')];});return db[_0x122ca9('0x22')][_0x122ca9('0x65')]({'where':{'id':_0x43347d[_0x122ca9('0x95')]['id']}})[_0x122ca9('0x51')](function(_0x4bcfd7){const _0x1e02b3=_0x122ca9;return db[_0x1e02b3('0x4')][_0x1e02b3('0x6d')](function(_0x2ca2ce){const _0x11c1d1=_0x1e02b3;return _0x4bcfd7[_0x11c1d1('0x5c')](_0x381a80,{'transaction':_0x2ca2ce})[_0x11c1d1('0x51')](function(){return Promise['each'](_0x4d7f94,function(_0x4f30ba){const _0x4c0197=a753_0x1634;return db[_0x4c0197('0x82')][_0x4c0197('0x67')]({'where':{'UserId':_0x4f30ba['id'],'VoiceQueueId':_0x43347d[_0x4c0197('0x95')]['id']},'defaults':{'penalty':_0x4f30ba[_0x4c0197('0xb')]},'transaction':_0x2ca2ce});});})[_0x11c1d1('0x51')](function(){const _0x1416c6=_0x11c1d1;return Promise[_0x1416c6('0x77')](_[_0x1416c6('0x6f')](_0x4d7f94,{'online':!![]}),function(_0x43e61b){const _0x4543b6=_0x1416c6;return db[_0x4543b6('0x31')][_0x4543b6('0x63')]({'membername':_0x43e61b['name'],'UserId':_0x43e61b['id'],'queue_name':_0x4bcfd7[_0x4543b6('0x6b')],'VoiceQueueId':_0x4bcfd7['id'],'interface':_[_0x4543b6('0x27')](_0x43e61b[_0x4543b6('0x79')])?util[_0x4543b6('0x74')]('SIP/%s',_0x43e61b['name']):_0x43e61b[_0x4543b6('0x79')],'paused':_0x43e61b[_0x4543b6('0x4d')]||![],'penalty':_0x43e61b[_0x4543b6('0xb')]},{'transaction':_0x2ca2ce});});})[_0x11c1d1('0x51')](function(){const _0x1869f9=_0x11c1d1;_0x4d7f94[_0x1869f9('0x4a')](function(_0x4d41e4){const _0x140f04=_0x1869f9;socket['emit'](_0x140f04('0x50'),{'UserId':_0x4d41e4['id'],'VoiceQueueId':_0x4bcfd7['id']});});});});});}})['then'](respondWithStatusCode(_0x2a2391,null))[_0x421910('0x2f')](handleError(_0x2a2391,null));},exports[_0x1c3da8('0x36')]=function(_0x3a2319,_0x163395){const _0x234920=_0x1c3da8;return db[_0x234920('0x1b')][_0x234920('0x8a')]({'where':{'id':_0x3a2319[_0x234920('0x53')]['ids']},'attributes':['id'],'include':[{'model':db[_0x234920('0x44')],'as':_0x234920('0x40'),'attributes':['id'],'raw':!![]}]})[_0x234920('0x51')](handleEntityNotFound(_0x163395,null))[_0x234920('0x51')](function(_0x383626){const _0x3df0f4=_0x234920,_0x8b4ab8=_[_0x3df0f4('0x23')](_0x383626,'id');let _0x7a9093=[];const _0x117c7c=[],_0x5b6dd8=squel[_0x3df0f4('0x71')]();_0x5b6dd8[_0x3df0f4('0x13')](_0x3df0f4('0x97'))[_0x3df0f4('0x92')](_0x3df0f4('0x15'),'tq')[_0x3df0f4('0x61')]('user_has_teams','ut',_0x3df0f4('0x5'))[_0x3df0f4('0x48')](_0x3df0f4('0x64'),_0x3a2319[_0x3df0f4('0x95')]['id']);for(let _0x3845ee=0x0;_0x3845ee<_0x383626[_0x3df0f4('0x3c')];_0x3845ee+=0x1){const _0x4d9649=_0x383626[_0x3845ee];for(let _0x10b804=0x0;_0x10b804<_0x4d9649[_0x3df0f4('0x40')][_0x3df0f4('0x3c')];_0x10b804+=0x1){const _0x5f3e70=_0x4d9649[_0x3df0f4('0x40')][_0x10b804],_0x251fe0=_0x5b6dd8[_0x3df0f4('0x43')]();_0x251fe0['where'](_0x3df0f4('0x4b'),_0x5f3e70['id']),_0x117c7c[_0x3df0f4('0x11')](db[_0x3df0f4('0x4')][_0x3df0f4('0x53')](_0x251fe0[_0x3df0f4('0x78')](),{'type':db['sequelize'][_0x3df0f4('0x2d')][_0x3df0f4('0x1d')]})['then'](function(_0x15304b){const _0x24932d=_0x3df0f4;if(_0x15304b['length']===0x1)return _0x5f3e70['id'];else{const _0x4f1c49=_[_0x24932d('0x12')](_[_0x24932d('0x23')](_0x15304b,_0x24932d('0x2b')),function(_0x5efd24){return _['includes'](_0x8b4ab8,_0x5efd24);});if(_0x4f1c49)return _0x5f3e70['id'];}}));}}return Promise['all'](_0x117c7c)[_0x3df0f4('0x51')](function(_0x2dbe1d){const _0xbf960b=_0x3df0f4;return _0x7a9093=_(_0x7a9093)[_0xbf960b('0x69')](_0x2dbe1d)['compact']()[_0xbf960b('0x6a')](),db[_0xbf960b('0x22')][_0xbf960b('0x65')]({'where':{'id':_0x3a2319[_0xbf960b('0x95')]['id']}})[_0xbf960b('0x51')](function(_0xa2e77){const _0x2ebf60=_0xbf960b;return db[_0x2ebf60('0x4')][_0x2ebf60('0x6d')](function(_0x4fa48b){const _0x3fb785=_0x2ebf60;return _0xa2e77[_0x3fb785('0x36')](_0x3a2319[_0x3fb785('0x53')][_0x3fb785('0x8c')],{'transaction':_0x4fa48b})[_0x3fb785('0x51')](function(){const _0x4d9304=_0x3fb785;if(!_[_0x4d9304('0x0')](_0x7a9093))return _0xa2e77[_0x4d9304('0xf')](_0x7a9093,{'transaction':_0x4fa48b})[_0x4d9304('0x51')](function(){const _0x55aa45=_0x4d9304;return db[_0x55aa45('0x31')][_0x55aa45('0x6c')]({'where':{'VoiceQueueId':_0x3a2319['params']['id'],'UserId':_0x7a9093},'transaction':_0x4fa48b});});})[_0x3fb785('0x51')](function(){const _0x945b6d=_0x3fb785;_0x7a9093[_0x945b6d('0x4a')](function(_0x37d3d6){const _0x32f403=_0x945b6d;socket[_0x32f403('0x76')]('userVoiceQueue:remove',{'UserId':_0x37d3d6,'VoiceQueueId':_0xa2e77['id']});});});});});});})[_0x234920('0x51')](respondWithStatusCode(_0x163395,null))['catch'](handleError(_0x163395,null));},exports[_0x1c3da8('0x47')]=function(_0x119f51,_0x254c87){const _0x513217=_0x1c3da8;let _0x4c6549,_0x4b1385;return db['VoiceQueue'][_0x513217('0x65')]({'where':{'id':_0x119f51[_0x513217('0x95')]['id']}})['then'](function(_0x2de42f){const _0x373a80=_0x513217;if(_0x2de42f)return _0x4b1385=_0x2de42f,_0x2de42f[_0x373a80('0x47')](_0x119f51[_0x373a80('0x42')]['ids'],{'through':_[_0x373a80('0x35')](_0x119f51['body'],[_0x373a80('0x8c'),'id'])})[_0x373a80('0x51')](function(_0x1198fe){const _0xd0de01=_0x373a80;for(let _0x35fd1f=0x0;_0x35fd1f<_0x119f51[_0xd0de01('0x42')]['ids']['length'];_0x35fd1f+=0x1){socket['emit'](_0xd0de01('0x50'),{'UserId':_0x119f51[_0xd0de01('0x42')][_0xd0de01('0x8c')][_0x35fd1f],'VoiceQueueId':_0x119f51[_0xd0de01('0x95')]['id']});}return _0x1198fe;});})[_0x513217('0x51')](function(_0xdb9198){const _0x1a19a4=_0x513217;_0x4c6549=_0xdb9198||[];if(_0x4b1385)return db[_0x1a19a4('0x44')][_0x1a19a4('0x8a')]({'where':{'id':_0x119f51[_0x1a19a4('0x42')]['ids']},'attributes':['id','name',_0x1a19a4('0x17'),'voicePause',_0x1a19a4('0x79')],'raw':!![]});})[_0x513217('0x51')](function(_0x764230){const _0x3cb46c=_0x513217;if(!_[_0x3cb46c('0x0')](_0x764230)){const _0x50125c=[];for(let _0x2a814a=0x0;_0x2a814a<_0x764230[_0x3cb46c('0x3c')];_0x2a814a++){_0x764230[_0x2a814a]['online']&&_0x50125c[_0x3cb46c('0x11')](db[_0x3cb46c('0x31')][_0x3cb46c('0x63')]({'membername':_0x764230[_0x2a814a][_0x3cb46c('0x6b')],'UserId':_0x764230[_0x2a814a]['id'],'queue_name':_0x4b1385[_0x3cb46c('0x6b')],'VoiceQueueId':_0x4b1385['id'],'interface':_[_0x3cb46c('0x27')](_0x764230[_0x2a814a][_0x3cb46c('0x79')])?util[_0x3cb46c('0x74')](_0x3cb46c('0x41'),_0x764230[_0x2a814a][_0x3cb46c('0x6b')]):_0x764230[_0x2a814a][_0x3cb46c('0x79')],'paused':_0x764230[_0x2a814a]['voicePause']||![],'penalty':_0x119f51[_0x3cb46c('0x42')]['penalty']||0x0}));}return Promise['all'](_0x50125c);}})[_0x513217('0x51')](function(){return _0x4c6549;})[_0x513217('0x51')](respondWithResult(_0x254c87,null))[_0x513217('0x2f')](handleError(_0x254c87,null));},exports[_0x1c3da8('0xf')]=function(_0x451cfe,_0x41231a){const _0x4ae0d7=_0x1c3da8;return db[_0x4ae0d7('0x22')][_0x4ae0d7('0x65')]({'where':{'id':_0x451cfe[_0x4ae0d7('0x95')]['id']}})['then'](handleEntityNotFound(_0x41231a,null))[_0x4ae0d7('0x51')](function(_0x32ec28){const _0x46d1dd=_0x4ae0d7;if(_0x32ec28)return _0x32ec28[_0x46d1dd('0xf')](_0x451cfe[_0x46d1dd('0x53')]['ids'])[_0x46d1dd('0x51')](function(){const _0x88e6b5=_0x46d1dd;if(_[_0x88e6b5('0x7d')](_0x451cfe[_0x88e6b5('0x53')]['ids']))for(let _0x80881=0x0;_0x80881<_0x451cfe[_0x88e6b5('0x53')][_0x88e6b5('0x8c')][_0x88e6b5('0x3c')];_0x80881+=0x1){socket['emit']('userVoiceQueue:remove',{'UserId':Number(_0x451cfe[_0x88e6b5('0x53')][_0x88e6b5('0x8c')][_0x80881]),'VoiceQueueId':Number(_0x451cfe['params']['id'])});}else socket[_0x88e6b5('0x76')]('userVoiceQueue:remove',{'UserId':Number(_0x451cfe[_0x88e6b5('0x53')]['ids']),'VoiceQueueId':Number(_0x451cfe[_0x88e6b5('0x95')]['id'])});});})['then'](function(_0xbb61d4){const _0x5039f3=_0x4ae0d7;return db[_0x5039f3('0x31')][_0x5039f3('0x6c')]({'where':{'VoiceQueueId':_0x451cfe[_0x5039f3('0x95')]['id'],'UserId':_0x451cfe['query']['ids']}})[_0x5039f3('0x51')](function(){return _0xbb61d4;});})[_0x4ae0d7('0x51')](respondWithStatusCode(_0x41231a,null))[_0x4ae0d7('0x2f')](handleError(_0x41231a,null));},exports['getAgents']=function(_0x33cfd6,_0x1a980a){const _0x58cf8c=_0x1c3da8;let _0x15f6cb={};const _0x1435d5={};let _0xeb7dd1,_0x2c017e;return db[_0x58cf8c('0x22')][_0x58cf8c('0x65')]({'where':{'id':_0x33cfd6[_0x58cf8c('0x95')]['id']}})[_0x58cf8c('0x51')](handleEntityNotFound(_0x1a980a,null))[_0x58cf8c('0x51')](function(_0x197a7d){const _0x1b1199=_0x58cf8c;if(_0x197a7d)return _0xeb7dd1=_0x197a7d,_0x1435d5[_0x1b1199('0x4f')]=_[_0x1b1199('0x49')](db[_0x1b1199('0x44')][_0x1b1199('0xe')]),_0x1435d5[_0x1b1199('0x53')]=_[_0x1b1199('0x49')](_0x33cfd6[_0x1b1199('0x53')]),_0x1435d5[_0x1b1199('0x57')]=_[_0x1b1199('0x38')](_0x1435d5[_0x1b1199('0x4f')],_0x1435d5[_0x1b1199('0x53')]),_0x15f6cb[_0x1b1199('0x24')]=_[_0x1b1199('0x38')](_0x1435d5[_0x1b1199('0x4f')],qs['fields'](_0x33cfd6[_0x1b1199('0x53')]['fields'])),_0x15f6cb['attributes']=_0x15f6cb[_0x1b1199('0x24')][_0x1b1199('0x3c')]?_0x15f6cb[_0x1b1199('0x24')]:_0x1435d5[_0x1b1199('0x4f')],_0x15f6cb[_0x1b1199('0x81')]=qs[_0x1b1199('0x7f')](_0x33cfd6[_0x1b1199('0x53')][_0x1b1199('0x7f')]),_0x15f6cb[_0x1b1199('0x48')]=qs[_0x1b1199('0x57')](_[_0x1b1199('0x37')](_0x33cfd6[_0x1b1199('0x53')],_0x1435d5[_0x1b1199('0x57')])),_0x33cfd6['query']['filter']&&(_0x15f6cb[_0x1b1199('0x48')]=_[_0x1b1199('0x93')](_0x15f6cb[_0x1b1199('0x48')],{[Op['or']]:_[_0x1b1199('0x23')](_0x15f6cb[_0x1b1199('0x24')],function(_0x5c95ec){const _0xe4476a=_0x1b1199,_0xb76f3f={};return _0xb76f3f[_0x5c95ec]={[Op[_0xe4476a('0x70')]]:'%'+_0x33cfd6[_0xe4476a('0x53')]['filter']+'%'},_0xb76f3f;})})),_0x15f6cb=_[_0x1b1199('0x93')]({},_0x15f6cb,_0x33cfd6[_0x1b1199('0x88')]),_0xeb7dd1[_0x1b1199('0x99')](_0x15f6cb);})[_0x58cf8c('0x51')](function(_0x2a3e2c){const _0x40b3a1=_0x58cf8c;if(_0x2a3e2c)return _0x2c017e=_0x2a3e2c[_0x40b3a1('0x3c')],typeof _0x33cfd6['query'][_0x40b3a1('0x7e')]===_0x40b3a1('0x52')&&(_0x15f6cb[_0x40b3a1('0x80')]=qs[_0x40b3a1('0x80')](_0x33cfd6[_0x40b3a1('0x53')][_0x40b3a1('0x80')]),_0x15f6cb[_0x40b3a1('0x16')]=qs[_0x40b3a1('0x16')](_0x33cfd6['query']['offset'])),_0xeb7dd1['getAgents'](_0x15f6cb);})[_0x58cf8c('0x51')](function(_0x13c393){if(_0x13c393)return _0x13c393?{'count':_0x2c017e,'rows':_0x13c393}:null;})[_0x58cf8c('0x51')](respondWithResult(_0x1a980a,null))[_0x58cf8c('0x2f')](handleError(_0x1a980a,null));},exports[_0x1c3da8('0x96')]=function(_0x46a2af,_0x4fb862){const _0x11de73=_0x1c3da8;let _0x4ac628={};const _0x5db39a={};let _0x2f157d,_0x75462c;return db[_0x11de73('0x22')][_0x11de73('0x65')]({'where':{'id':_0x46a2af[_0x11de73('0x95')]['id']}})[_0x11de73('0x51')](handleEntityNotFound(_0x4fb862,null))[_0x11de73('0x51')](function(_0x524dfd){const _0x447fe4=_0x11de73;if(_0x524dfd)return _0x2f157d=_0x524dfd,_0x5db39a['model']=_[_0x447fe4('0x49')](db[_0x447fe4('0x31')][_0x447fe4('0xe')]),_0x5db39a[_0x447fe4('0x53')]=_[_0x447fe4('0x49')](_0x46a2af[_0x447fe4('0x53')]),_0x5db39a[_0x447fe4('0x57')]=_[_0x447fe4('0x38')](_0x5db39a[_0x447fe4('0x4f')],_0x5db39a['query']),_0x4ac628[_0x447fe4('0x24')]=_['intersection'](_0x5db39a[_0x447fe4('0x4f')],qs['fields'](_0x46a2af[_0x447fe4('0x53')]['fields'])),_0x4ac628[_0x447fe4('0x24')]=_0x4ac628[_0x447fe4('0x24')][_0x447fe4('0x3c')]?_0x4ac628[_0x447fe4('0x24')]:_0x5db39a['model'],_0x4ac628['order']=qs[_0x447fe4('0x7f')](_0x46a2af[_0x447fe4('0x53')][_0x447fe4('0x7f')]),_0x4ac628['where']=qs['filters'](_[_0x447fe4('0x37')](_0x46a2af[_0x447fe4('0x53')],_0x5db39a['filters'])),_0x46a2af[_0x447fe4('0x53')]['filter']&&(_0x4ac628[_0x447fe4('0x48')]=_[_0x447fe4('0x93')](_0x4ac628[_0x447fe4('0x48')],{[Op['or']]:_['map'](_0x4ac628[_0x447fe4('0x24')],function(_0x168da5){const _0x4a86a4=_0x447fe4,_0x30859b={};return _0x30859b[_0x168da5]={[Op[_0x4a86a4('0x70')]]:'%'+_0x46a2af[_0x4a86a4('0x53')][_0x4a86a4('0x6f')]+'%'},_0x30859b;})})),_0x4ac628=_[_0x447fe4('0x93')]({},_0x4ac628,_0x46a2af[_0x447fe4('0x88')]),_0x2f157d[_0x447fe4('0x96')](_0x4ac628);})[_0x11de73('0x51')](function(_0x51c32e){const _0x3c3d66=_0x11de73;if(_0x51c32e)return _0x75462c=_0x51c32e[_0x3c3d66('0x3c')],typeof _0x46a2af[_0x3c3d66('0x53')]['nolimit']==='undefined'&&(_0x4ac628['limit']=qs[_0x3c3d66('0x80')](_0x46a2af[_0x3c3d66('0x53')][_0x3c3d66('0x80')]),_0x4ac628[_0x3c3d66('0x16')]=qs[_0x3c3d66('0x16')](_0x46a2af[_0x3c3d66('0x53')]['offset'])),_0x2f157d[_0x3c3d66('0x96')](_0x4ac628);})[_0x11de73('0x51')](function(_0x35260a){return _0x35260a?{'count':_0x75462c,'rows':_0x35260a}:null;})[_0x11de73('0x51')](respondWithResult(_0x4fb862,null))[_0x11de73('0x2f')](handleError(_0x4fb862,null));},exports['getLists']=function(_0x5de2d2,_0x2dee71){const _0x5f37f6=_0x1c3da8;let _0x59175c={};const _0x2b1914={};let _0x4a55ba,_0x4ec97b;return db[_0x5f37f6('0x22')][_0x5f37f6('0x65')]({'where':{'id':_0x5de2d2[_0x5f37f6('0x95')]['id']}})['then'](handleEntityNotFound(_0x2dee71,null))['then'](function(_0x4aca62){const _0x4de39a=_0x5f37f6;if(_0x4aca62)return _0x4a55ba=_0x4aca62,_0x2b1914[_0x4de39a('0x4f')]=_[_0x4de39a('0x49')](db[_0x4de39a('0x8f')][_0x4de39a('0xe')]),_0x2b1914['query']=_[_0x4de39a('0x49')](_0x5de2d2[_0x4de39a('0x53')]),_0x2b1914['filters']=_[_0x4de39a('0x38')](_0x2b1914[_0x4de39a('0x4f')],_0x2b1914['query']),_0x59175c['attributes']=_[_0x4de39a('0x38')](_0x2b1914['model'],qs[_0x4de39a('0x60')](_0x5de2d2[_0x4de39a('0x53')][_0x4de39a('0x60')])),_0x59175c[_0x4de39a('0x24')]=_0x59175c[_0x4de39a('0x24')][_0x4de39a('0x3c')]?_0x59175c['attributes']:_0x2b1914[_0x4de39a('0x4f')],_0x59175c[_0x4de39a('0x81')]=qs[_0x4de39a('0x7f')](_0x5de2d2[_0x4de39a('0x53')][_0x4de39a('0x7f')]),_0x59175c[_0x4de39a('0x48')]=qs[_0x4de39a('0x57')](_[_0x4de39a('0x37')](_0x5de2d2[_0x4de39a('0x53')],_0x2b1914[_0x4de39a('0x57')])),_0x5de2d2[_0x4de39a('0x53')]['filter']&&(_0x59175c[_0x4de39a('0x48')]=_[_0x4de39a('0x93')](_0x59175c[_0x4de39a('0x48')],{[Op['or']]:_[_0x4de39a('0x23')](_0x59175c['attributes'],function(_0x4bc936){const _0x188803=_0x4de39a,_0x55eeff={};return _0x55eeff[_0x4bc936]={[Op[_0x188803('0x70')]]:'%'+_0x5de2d2[_0x188803('0x53')]['filter']+'%'},_0x55eeff;})})),_0x59175c=_['merge']({},_0x59175c,_0x5de2d2[_0x4de39a('0x88')]),_0x4a55ba[_0x4de39a('0x62')](_0x59175c);})[_0x5f37f6('0x51')](function(_0x44bc18){const _0xfa8c49=_0x5f37f6;if(_0x44bc18)return _0x4ec97b=_0x44bc18[_0xfa8c49('0x3c')],typeof _0x5de2d2[_0xfa8c49('0x53')]['nolimit']===_0xfa8c49('0x52')&&(_0x59175c[_0xfa8c49('0x80')]=qs[_0xfa8c49('0x80')](_0x5de2d2['query'][_0xfa8c49('0x80')]),_0x59175c[_0xfa8c49('0x16')]=qs[_0xfa8c49('0x16')](_0x5de2d2['query']['offset'])),_0x4a55ba[_0xfa8c49('0x62')](_0x59175c);})[_0x5f37f6('0x51')](function(_0x44eec8){if(_0x44eec8)return _0x44eec8?{'count':_0x4ec97b,'rows':_0x44eec8}:null;})[_0x5f37f6('0x51')](respondWithResult(_0x2dee71,null))[_0x5f37f6('0x2f')](handleError(_0x2dee71,null));},exports[_0x1c3da8('0x1c')]=function(_0x498998,_0xd4a86d){const _0x2807d9=_0x1c3da8;let _0x29e469,_0x5a5feb;return db[_0x2807d9('0x22')][_0x2807d9('0x65')]({'where':{'id':_0x498998[_0x2807d9('0x95')]['id']}})[_0x2807d9('0x51')](handleEntityNotFound(_0xd4a86d,null))[_0x2807d9('0x51')](function(_0x55a5ba){const _0x5aa92d=_0x2807d9;if(_0x55a5ba)return _0x5a5feb=_0x55a5ba,_0x55a5ba[_0x5aa92d('0x1c')](_0x498998[_0x5aa92d('0x42')]['ids'],{'through':_['omit'](_0x498998['body'],[_0x5aa92d('0x8c'),'id'])});return null;})[_0x2807d9('0x51')](function(_0x2ddeae){const _0x4b1281=_0x2807d9;let _0x544a9a;_0x29e469=_0x2ddeae||[];const _0x477aef=[];if(_0x2ddeae){for(let _0x3b02e0=0x0;_0x3b02e0<_0x2ddeae[_0x4b1281('0x3c')];_0x3b02e0+=0x1){const _0x4e774d=_0x2ddeae[_0x3b02e0]['get']({'plain':!![]});_0x5a5feb[_0x4b1281('0x2a')]=_0x498998[_0x4b1281('0x42')][_0x4b1281('0x2a')]?_0x498998[_0x4b1281('0x42')][_0x4b1281('0x2a')]:_0x5a5feb[_0x4b1281('0x2a')];switch(_0x5a5feb['dialCheckDuplicateType']){case _0x4b1281('0x54'):_0x544a9a=squel[_0x4b1281('0x3')]()['into'](_0x4b1281('0x90'))[_0x4b1281('0x5d')]([_0x4b1281('0x34'),_0x4b1281('0x72'),_0x4b1281('0x87'),_0x4b1281('0x5e'),_0x4b1281('0x86'),_0x4b1281('0x1e'),_0x4b1281('0x29')],squel['select']()['field'](_0x4b1281('0x34'),_0x4b1281('0x34'))[_0x4b1281('0x13')](_0x4b1281('0x1a'),_0x4b1281('0x72'))['field']('id','ContactId')[_0x4b1281('0x13')](_0x4e774d['CmListId']['toString'](),_0x4b1281('0x5e'))[_0x4b1281('0x13')](_0x498998['params']['id'][_0x4b1281('0x78')](),_0x4b1281('0x86'))['field'](_0x4b1281('0x1a'),_0x4b1281('0x1e'))[_0x4b1281('0x13')](_0x4b1281('0x1a'),_0x4b1281('0x29'))[_0x4b1281('0x92')](_0x4b1281('0x9f'))[_0x4b1281('0x48')](_0x4b1281('0x83'))[_0x4b1281('0x48')]('ListId\x20=\x20?',_0x4e774d[_0x4b1281('0x30')][_0x4b1281('0x78')]())[_0x4b1281('0x48')](_0x4b1281('0x6'))[_0x4b1281('0x48')]('phone\x20NOT\x20IN\x20(?)',squel['select']()[_0x4b1281('0x13')](_0x4b1281('0x2'))[_0x4b1281('0x92')]('cm_hopper_final')[_0x4b1281('0x48')](_0x4b1281('0x64'),_0x498998['params']['id']['toString']()))[_0x4b1281('0x48')](_0x4b1281('0x84'),squel['select']()[_0x4b1281('0x13')](_0x4b1281('0x46'))[_0x4b1281('0x92')]('cm_hopper')[_0x4b1281('0x48')](_0x4b1281('0x64'),_0x498998[_0x4b1281('0x95')]['id'][_0x4b1281('0x78')]())))['toString']();break;case _0x4b1281('0x68'):_0x544a9a=squel[_0x4b1281('0x3')]()[_0x4b1281('0x9c')](_0x4b1281('0x90'))[_0x4b1281('0x5d')]([_0x4b1281('0x34'),_0x4b1281('0x72'),_0x4b1281('0x87'),_0x4b1281('0x5e'),_0x4b1281('0x86'),_0x4b1281('0x1e'),_0x4b1281('0x29')],squel['select']()[_0x4b1281('0x13')](_0x4b1281('0x34'),_0x4b1281('0x34'))['field'](_0x4b1281('0x1a'),'scheduledAt')[_0x4b1281('0x13')]('id',_0x4b1281('0x87'))[_0x4b1281('0x13')](_0x4e774d[_0x4b1281('0x30')][_0x4b1281('0x78')](),_0x4b1281('0x5e'))[_0x4b1281('0x13')](_0x498998[_0x4b1281('0x95')]['id'][_0x4b1281('0x78')](),'VoiceQueueId')[_0x4b1281('0x13')](_0x4b1281('0x1a'),_0x4b1281('0x1e'))[_0x4b1281('0x13')](_0x4b1281('0x1a'),_0x4b1281('0x29'))['from'](_0x4b1281('0x9f'))[_0x4b1281('0x48')](_0x4b1281('0x83'))['where']('ListId\x20=\x20?',_0x4e774d['CmListId'][_0x4b1281('0x78')]())[_0x4b1281('0x48')](_0x4b1281('0x6'))[_0x4b1281('0x48')](_0x4b1281('0x84'),squel[_0x4b1281('0x71')]()[_0x4b1281('0x13')](_0x4b1281('0x46'))[_0x4b1281('0x92')](_0x4b1281('0x90'))['where'](_0x4b1281('0x64'),_0x498998[_0x4b1281('0x95')]['id'][_0x4b1281('0x78')]())))['toString']();break;default:_0x544a9a=squel[_0x4b1281('0x3')]()[_0x4b1281('0x9c')](_0x4b1281('0x90'))[_0x4b1281('0x5d')]([_0x4b1281('0x34'),_0x4b1281('0x72'),_0x4b1281('0x87'),'ListId',_0x4b1281('0x86'),_0x4b1281('0x1e'),_0x4b1281('0x29')],squel[_0x4b1281('0x71')]()[_0x4b1281('0x13')](_0x4b1281('0x34'),_0x4b1281('0x34'))[_0x4b1281('0x13')](_0x4b1281('0x1a'),'scheduledAt')[_0x4b1281('0x13')]('id',_0x4b1281('0x87'))[_0x4b1281('0x13')](_0x4e774d[_0x4b1281('0x30')]['toString'](),_0x4b1281('0x5e'))[_0x4b1281('0x13')](_0x498998[_0x4b1281('0x95')]['id'][_0x4b1281('0x78')](),_0x4b1281('0x86'))['field'](_0x4b1281('0x1a'),_0x4b1281('0x1e'))[_0x4b1281('0x13')](_0x4b1281('0x1a'),_0x4b1281('0x29'))[_0x4b1281('0x92')](_0x4b1281('0x9f'))[_0x4b1281('0x48')]('deletedAt\x20IS\x20NULL')[_0x4b1281('0x48')]('ListId\x20=\x20?',_0x4e774d[_0x4b1281('0x30')][_0x4b1281('0x78')]())[_0x4b1281('0x48')]('phone\x20IS\x20NOT\x20NULL'))[_0x4b1281('0x78')]();}_0x477aef[_0x4b1281('0x11')](db[_0x4b1281('0x4')][_0x4b1281('0x53')](_0x544a9a));}return Promise[_0x4b1281('0x7c')](_0x477aef);}})[_0x2807d9('0x51')](function(){return _0x29e469;})[_0x2807d9('0x51')](respondWithResult(_0xd4a86d,null))[_0x2807d9('0x2f')](handleError(_0xd4a86d,null));},exports['removeLists']=function(_0x5ac7f1,_0x393445){const _0x4565ca=_0x1c3da8;return db['VoiceQueue'][_0x4565ca('0x65')]({'where':{'id':_0x5ac7f1['params']['id']}})[_0x4565ca('0x51')](handleEntityNotFound(_0x393445,null))[_0x4565ca('0x51')](function(_0x36c417){const _0x38806f=_0x4565ca;if(_0x36c417)return _0x36c417[_0x38806f('0x3f')](_0x5ac7f1[_0x38806f('0x53')][_0x38806f('0x8c')]);})[_0x4565ca('0x51')](function(_0x511908){const _0x5145ca=_0x4565ca;if(_0x511908)return db[_0x5145ca('0x3a')]['destroy']({'where':{'ListId':_0x5ac7f1[_0x5145ca('0x53')][_0x5145ca('0x8c')],'VoiceQueueId':_0x5ac7f1[_0x5145ca('0x95')]['id']}})[_0x5145ca('0x51')](function(){return _0x511908;});})[_0x4565ca('0x51')](respondWithStatusCode(_0x393445,null))[_0x4565ca('0x2f')](handleError(_0x393445,null));},exports[_0x1c3da8('0x58')]=function(_0x5c336f,_0x5eaee3){const _0x59f531=_0x1c3da8;let _0x16343a={};const _0x32774f={};let _0x2a51bd,_0x20ae57;return db[_0x59f531('0x22')]['findOne']({'where':{'id':_0x5c336f['params']['id']}})['then'](handleEntityNotFound(_0x5eaee3,null))['then'](function(_0x18b190){const _0x21d417=_0x59f531;if(_0x18b190)return _0x2a51bd=_0x18b190,_0x32774f[_0x21d417('0x4f')]=_[_0x21d417('0x49')](db[_0x21d417('0x8f')][_0x21d417('0xe')]),_0x32774f[_0x21d417('0x53')]=_[_0x21d417('0x49')](_0x5c336f[_0x21d417('0x53')]),_0x32774f[_0x21d417('0x57')]=_[_0x21d417('0x38')](_0x32774f[_0x21d417('0x4f')],_0x32774f['query']),_0x16343a[_0x21d417('0x24')]=_[_0x21d417('0x38')](_0x32774f[_0x21d417('0x4f')],qs[_0x21d417('0x60')](_0x5c336f['query']['fields'])),_0x16343a[_0x21d417('0x24')]=_0x16343a['attributes'][_0x21d417('0x3c')]?_0x16343a['attributes']:_0x32774f[_0x21d417('0x4f')],_0x16343a[_0x21d417('0x81')]=qs[_0x21d417('0x7f')](_0x5c336f[_0x21d417('0x53')][_0x21d417('0x7f')]),_0x16343a[_0x21d417('0x48')]=qs[_0x21d417('0x57')](_[_0x21d417('0x37')](_0x5c336f[_0x21d417('0x53')],_0x32774f[_0x21d417('0x57')])),_0x5c336f[_0x21d417('0x53')][_0x21d417('0x6f')]&&(_0x16343a['where']=_[_0x21d417('0x93')](_0x16343a[_0x21d417('0x48')],{[Op['or']]:_[_0x21d417('0x23')](_0x16343a[_0x21d417('0x24')],function(_0x10a55b){const _0x35b723=_0x21d417,_0x3ab14c={};return _0x3ab14c[_0x10a55b]={[Op[_0x35b723('0x70')]]:'%'+_0x5c336f[_0x35b723('0x53')][_0x35b723('0x6f')]+'%'},_0x3ab14c;})})),_0x16343a=_['merge']({},_0x16343a,_0x5c336f[_0x21d417('0x88')]),_0x2a51bd[_0x21d417('0x58')](_0x16343a);})[_0x59f531('0x51')](function(_0x573b9d){const _0x21ab0e=_0x59f531;if(_0x573b9d)return _0x20ae57=_0x573b9d[_0x21ab0e('0x3c')],typeof _0x5c336f[_0x21ab0e('0x53')][_0x21ab0e('0x7e')]===_0x21ab0e('0x52')&&(_0x16343a[_0x21ab0e('0x80')]=qs[_0x21ab0e('0x80')](_0x5c336f[_0x21ab0e('0x53')]['limit']),_0x16343a[_0x21ab0e('0x16')]=qs[_0x21ab0e('0x16')](_0x5c336f[_0x21ab0e('0x53')][_0x21ab0e('0x16')])),_0x2a51bd['getBlackLists'](_0x16343a);})[_0x59f531('0x51')](function(_0x404123){if(_0x404123)return _0x404123?{'count':_0x20ae57,'rows':_0x404123}:null;})[_0x59f531('0x51')](respondWithResult(_0x5eaee3,null))[_0x59f531('0x2f')](handleError(_0x5eaee3,null));},exports['addBlackLists']=function(_0x23e2e5,_0x4b5c73){const _0x4bd34d=_0x1c3da8;let _0x2ad3ac;return db[_0x4bd34d('0x22')][_0x4bd34d('0x65')]({'where':{'id':_0x23e2e5[_0x4bd34d('0x95')]['id']}})[_0x4bd34d('0x51')](handleEntityNotFound(_0x4b5c73,null))[_0x4bd34d('0x51')](function(_0x4f4b59){const _0x13ba18=_0x4bd34d;if(_0x4f4b59)return _0x4f4b59[_0x13ba18('0xd')](_0x23e2e5['body'][_0x13ba18('0x8c')],{'through':_[_0x13ba18('0x35')](_0x23e2e5[_0x13ba18('0x42')],['ids','id'])});return null;})[_0x4bd34d('0x51')](function(_0x384f85){const _0x2979cb=_0x4bd34d;let _0x5e412a;_0x2ad3ac=_0x384f85||[];const _0x44b19b=[];if(_0x384f85){for(let _0x3b69b2=0x0;_0x3b69b2<_0x384f85[_0x2979cb('0x3c')];_0x3b69b2+=0x1){const _0x467e8e=_0x384f85[_0x3b69b2][_0x2979cb('0x8')]({'plain':!![]});_0x5e412a=squel[_0x2979cb('0x3')]()[_0x2979cb('0x9c')](_0x2979cb('0x2e'))[_0x2979cb('0x5d')]([_0x2979cb('0x34'),_0x2979cb('0x87'),'ListId','VoiceQueueId','createdAt',_0x2979cb('0x29')],squel[_0x2979cb('0x71')]()[_0x2979cb('0x13')]('phone','phone')[_0x2979cb('0x13')]('id','ContactId')[_0x2979cb('0x13')](_0x467e8e[_0x2979cb('0x30')]['toString'](),'ListId')[_0x2979cb('0x13')](_0x23e2e5[_0x2979cb('0x95')]['id'][_0x2979cb('0x78')](),_0x2979cb('0x86'))[_0x2979cb('0x13')]('NOW()',_0x2979cb('0x1e'))[_0x2979cb('0x13')](_0x2979cb('0x1a'),_0x2979cb('0x29'))['from']('cm_contacts')[_0x2979cb('0x48')](_0x2979cb('0x83'))['where'](_0x2979cb('0x8e'),_0x467e8e[_0x2979cb('0x30')]['toString']())['where'](_0x2979cb('0x6')))[_0x2979cb('0x78')](),_0x44b19b[_0x2979cb('0x11')](db[_0x2979cb('0x4')]['query'](_0x5e412a));}return Promise[_0x2979cb('0x7c')](_0x44b19b);}})[_0x4bd34d('0x51')](function(){return _0x2ad3ac;})[_0x4bd34d('0x51')](respondWithResult(_0x4b5c73,null))[_0x4bd34d('0x2f')](handleError(_0x4b5c73,null));},exports[_0x1c3da8('0x2c')]=function(_0x2655bb,_0x51390b){const _0x2cd813=_0x1c3da8;return db['VoiceQueue'][_0x2cd813('0x65')]({'where':{'id':_0x2655bb['params']['id']}})[_0x2cd813('0x51')](handleEntityNotFound(_0x51390b,null))[_0x2cd813('0x51')](function(_0x3d862d){const _0xfb961d=_0x2cd813;if(_0x3d862d)return _0x3d862d[_0xfb961d('0x2c')](_0x2655bb[_0xfb961d('0x53')][_0xfb961d('0x8c')]);})[_0x2cd813('0x51')](function(_0x3710de){const _0x184ef1=_0x2cd813;if(_0x3710de)return db[_0x184ef1('0x4c')]['destroy']({'where':{'ListId':_0x2655bb[_0x184ef1('0x53')][_0x184ef1('0x8c')],'VoiceQueueId':_0x2655bb[_0x184ef1('0x95')]['id']}})[_0x184ef1('0x51')](function(){return _0x3710de;});})['then'](respondWithStatusCode(_0x51390b,null))[_0x2cd813('0x2f')](handleError(_0x51390b,null));}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.events.js b/server/api/voiceQueue/voiceQueue.events.js index 1d3d704..53e26f5 100644 --- a/server/api/voiceQueue/voiceQueue.events.js +++ b/server/api/voiceQueue/voiceQueue.events.js @@ -1 +1 @@ -const a754_0x258a=['../../mysqldb','VoiceQueue','save','events','update','undefined','emit','exports','addHook'];(function(_0x64cd08,_0x258a7e){const _0x407704=function(_0x20d983){while(--_0x20d983){_0x64cd08['push'](_0x64cd08['shift']());}};_0x407704(++_0x258a7e);}(a754_0x258a,0xb3));const a754_0x4077=function(_0x64cd08,_0x258a7e){_0x64cd08=_0x64cd08-0x0;let _0x407704=a754_0x258a[_0x64cd08];return _0x407704;};const _0x1b669b=a754_0x4077;'use strict';const EventEmitter=require(_0x1b669b('0x4')),VoiceQueue=require(_0x1b669b('0x1'))['db'][_0x1b669b('0x2')],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x1b669b('0x3'),'afterUpdate':_0x1b669b('0x5'),'afterDestroy':'remove'};function emitEvent(_0x20d983){return function(_0x1100b5){const _0x4748d1=a754_0x4077;VoiceQueueEvents[_0x4748d1('0x7')](_0x20d983+':'+_0x1100b5['id'],_0x1100b5),VoiceQueueEvents[_0x4748d1('0x7')](_0x20d983,_0x1100b5);};}for(const e in events){if(typeof events[e]!==_0x1b669b('0x6')){const event=events[e];VoiceQueue[_0x1b669b('0x0')](e,emitEvent(event));}}module[_0x1b669b('0x8')]=VoiceQueueEvents; \ No newline at end of file +const a754_0x184d=['setMaxListeners','undefined','emit','save','remove','../../mysqldb'];(function(_0x1c8f3d,_0x184def){const _0x5bd94e=function(_0xdd0b46){while(--_0xdd0b46){_0x1c8f3d['push'](_0x1c8f3d['shift']());}};_0x5bd94e(++_0x184def);}(a754_0x184d,0x9e));const a754_0x5bd9=function(_0x1c8f3d,_0x184def){_0x1c8f3d=_0x1c8f3d-0x0;let _0x5bd94e=a754_0x184d[_0x1c8f3d];return _0x5bd94e;};const _0x19d132=a754_0x5bd9;'use strict';const EventEmitter=require('events'),VoiceQueue=require(_0x19d132('0x3'))['db']['VoiceQueue'],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x19d132('0x4')](0x0);const events={'afterCreate':_0x19d132('0x1'),'afterUpdate':'update','afterDestroy':_0x19d132('0x2')};function emitEvent(_0xdd0b46){return function(_0x5abfaa){const _0xe5f202=a754_0x5bd9;VoiceQueueEvents['emit'](_0xdd0b46+':'+_0x5abfaa['id'],_0x5abfaa),VoiceQueueEvents[_0xe5f202('0x0')](_0xdd0b46,_0x5abfaa);};}for(const e in events){if(typeof events[e]!==_0x19d132('0x5')){const event=events[e];VoiceQueue['addHook'](e,emitEvent(event));}}module['exports']=VoiceQueueEvents; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.model.js b/server/api/voiceQueue/voiceQueue.model.js index 841c920..807b1d1 100644 --- a/server/api/voiceQueue/voiceQueue.model.js +++ b/server/api/voiceQueue/voiceQueue.model.js @@ -1 +1 @@ -const a755_0x433a=['./voiceQueue.attributes','voice_queues','VoiceQueue','exports'];(function(_0x2686dc,_0x433a5e){const _0x452e29=function(_0x58e5d9){while(--_0x58e5d9){_0x2686dc['push'](_0x2686dc['shift']());}};_0x452e29(++_0x433a5e);}(a755_0x433a,0x12d));const a755_0x452e=function(_0x2686dc,_0x433a5e){_0x2686dc=_0x2686dc-0x0;let _0x452e29=a755_0x433a[_0x2686dc];return _0x452e29;};const _0x552189=a755_0x452e;'use strict';const attributes=require(_0x552189('0x3'));module[_0x552189('0x2')]=function(_0x58e5d9){const _0x29bd18=_0x552189,_0x3160a8=_0x58e5d9['define'](_0x29bd18('0x1'),attributes,{'tableName':_0x29bd18('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3160a8;}; \ No newline at end of file +const a755_0x35d2=['exports','voice_queues','VoiceQueue','define'];(function(_0x3857ec,_0x35d223){const _0xa3b6a6=function(_0x48f06c){while(--_0x48f06c){_0x3857ec['push'](_0x3857ec['shift']());}};_0xa3b6a6(++_0x35d223);}(a755_0x35d2,0x1ef));const a755_0xa3b6=function(_0x3857ec,_0x35d223){_0x3857ec=_0x3857ec-0x0;let _0xa3b6a6=a755_0x35d2[_0x3857ec];return _0xa3b6a6;};const _0x178bd8=a755_0xa3b6;'use strict';const attributes=require('./voiceQueue.attributes');module[_0x178bd8('0x1')]=function(_0x48f06c){const _0x5f0fcc=_0x178bd8,_0x2b5e1d=_0x48f06c[_0x5f0fcc('0x0')](_0x5f0fcc('0x3'),attributes,{'tableName':_0x5f0fcc('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2b5e1d;}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.rpc.js b/server/api/voiceQueue/voiceQueue.rpc.js index 5123cd0..e88d2d0 100644 --- a/server/api/voiceQueue/voiceQueue.rpc.js +++ b/server/api/voiceQueue/voiceQueue.rpc.js @@ -1 +1 @@ -const a756_0x1ea1=['findOne','GetVoiceQueue','stringify','./voiceQueue.socket','register','lodash','include','catch','../../config/logger','limit','message','error','where','options','raw','../../rediscache','model','ShowVoiceQueue','map','then','info','attributes','debug','VoiceQueue'];(function(_0x4b39f7,_0x1ea133){const _0x2e0c26=function(_0x55aa6d){while(--_0x55aa6d){_0x4b39f7['push'](_0x4b39f7['shift']());}};_0x2e0c26(++_0x1ea133);}(a756_0x1ea1,0x116));const a756_0x2e0c=function(_0x4b39f7,_0x1ea133){_0x4b39f7=_0x4b39f7-0x0;let _0x2e0c26=a756_0x1ea1[_0x4b39f7];return _0x2e0c26;};const _0x946ae6=a756_0x2e0c;'use strict';const _=require(_0x946ae6('0xf')),db=require('../../mysqldb')['db'],logger=require(_0x946ae6('0x12'))('rpc'),{getSocket}=require(_0x946ae6('0x1')),socket=getSocket();require(_0x946ae6('0xd'))[_0x946ae6('0xe')](socket),exports[_0x946ae6('0xb')]=function(_0x55aa6d){const _0x5089cd=this;return new Promise(function(_0x586a64,_0x4b712b){const _0xb71cc8=a756_0x2e0c;return db[_0xb71cc8('0x9')]['findAll']({'raw':_0x55aa6d[_0xb71cc8('0x17')]?_0x55aa6d['options'][_0xb71cc8('0x0')]===undefined?!![]:![]:!![],'where':_0x55aa6d[_0xb71cc8('0x17')]?_0x55aa6d[_0xb71cc8('0x17')][_0xb71cc8('0x16')]||null:null,'attributes':_0x55aa6d[_0xb71cc8('0x17')]?_0x55aa6d[_0xb71cc8('0x17')]['attributes']||null:null,'limit':_0x55aa6d['options']?_0x55aa6d[_0xb71cc8('0x17')][_0xb71cc8('0x13')]||null:null,'include':_0x55aa6d[_0xb71cc8('0x17')]?_0x55aa6d['options']['include']?_['map'](_0x55aa6d['options'][_0xb71cc8('0x10')],function(_0x54fe84){const _0x110753=_0xb71cc8;return{'model':db[_0x54fe84[_0x110753('0x2')]],'as':_0x54fe84['as'],'attributes':_0x54fe84['attributes'],'include':_0x54fe84[_0x110753('0x10')]?_[_0x110753('0x4')](_0x54fe84[_0x110753('0x10')],function(_0x50b84f){const _0x5c97ad=_0x110753;return{'model':db[_0x50b84f[_0x5c97ad('0x2')]],'as':_0x50b84f['as'],'attributes':_0x50b84f[_0x5c97ad('0x7')],'include':_0x50b84f[_0x5c97ad('0x10')]?_[_0x5c97ad('0x4')](_0x50b84f[_0x5c97ad('0x10')],function(_0x15fbaf){const _0x299ff7=_0x5c97ad;return{'model':db[_0x15fbaf[_0x299ff7('0x2')]],'as':_0x15fbaf['as'],'attributes':_0x15fbaf[_0x299ff7('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x406ac1){const _0x2d7d38=_0xb71cc8;logger[_0x2d7d38('0x6')](_0x2d7d38('0xb'),_0x55aa6d),logger[_0x2d7d38('0x8')](_0x2d7d38('0xb'),_0x55aa6d,JSON[_0x2d7d38('0xc')](_0x406ac1)),_0x586a64(_0x406ac1);})['catch'](function(_0x1f1d38){const _0x1f6b18=_0xb71cc8;logger[_0x1f6b18('0x15')](_0x1f6b18('0xb'),_0x1f1d38[_0x1f6b18('0x14')],_0x55aa6d),_0x4b712b(_0x5089cd[_0x1f6b18('0x15')](0x1f4,_0x1f1d38['message']));});});},exports['ShowVoiceQueue']=function(_0x27b9f7){const _0x296839=this;return new Promise(function(_0x5d1e14,_0x58b63b){const _0x5c7775=a756_0x2e0c;return db[_0x5c7775('0x9')][_0x5c7775('0xa')]({'raw':_0x27b9f7[_0x5c7775('0x17')]?_0x27b9f7[_0x5c7775('0x17')][_0x5c7775('0x0')]===undefined?!![]:![]:!![],'where':_0x27b9f7['options']?_0x27b9f7[_0x5c7775('0x17')][_0x5c7775('0x16')]||null:null,'attributes':_0x27b9f7['options']?_0x27b9f7[_0x5c7775('0x17')][_0x5c7775('0x7')]||null:null,'include':_0x27b9f7['options']?_0x27b9f7['options']['include']?_[_0x5c7775('0x4')](_0x27b9f7[_0x5c7775('0x17')][_0x5c7775('0x10')],function(_0x3ea092){const _0x29042c=_0x5c7775;return{'model':db[_0x3ea092['model']],'as':_0x3ea092['as'],'attributes':_0x3ea092[_0x29042c('0x7')],'include':_0x3ea092[_0x29042c('0x10')]?_['map'](_0x3ea092['include'],function(_0x3dde1c){const _0x42fcbc=_0x29042c;return{'model':db[_0x3dde1c[_0x42fcbc('0x2')]],'as':_0x3dde1c['as'],'attributes':_0x3dde1c['attributes'],'include':_0x3dde1c[_0x42fcbc('0x10')]?_[_0x42fcbc('0x4')](_0x3dde1c[_0x42fcbc('0x10')],function(_0x3ee5fb){const _0xc52bb2=_0x42fcbc;return{'model':db[_0x3ee5fb[_0xc52bb2('0x2')]],'as':_0x3ee5fb['as'],'attributes':_0x3ee5fb['attributes']};}):[]};}):[]};}):[]:[]})[_0x5c7775('0x5')](function(_0x12fde8){const _0x47e8c0=_0x5c7775;logger[_0x47e8c0('0x6')](_0x47e8c0('0x3'),_0x27b9f7),logger[_0x47e8c0('0x8')](_0x47e8c0('0x3'),_0x27b9f7,JSON[_0x47e8c0('0xc')](_0x12fde8)),_0x5d1e14(_0x12fde8);})[_0x5c7775('0x11')](function(_0x5a9dd8){const _0x1445e4=_0x5c7775;logger[_0x1445e4('0x15')](_0x1445e4('0x3'),_0x5a9dd8[_0x1445e4('0x14')],_0x27b9f7),_0x58b63b(_0x296839[_0x1445e4('0x15')](0x1f4,_0x5a9dd8['message']));});});}; \ No newline at end of file +const a756_0x95c4=['raw','info','error','stringify','findOne','register','attributes','lodash','../../rediscache','message','where','limit','catch','options','include','VoiceQueue','then','./voiceQueue.socket','GetVoiceQueue','model','findAll','rpc','map','../../config/logger','debug','ShowVoiceQueue'];(function(_0x392c8b,_0x95c4eb){const _0x3a6fee=function(_0x341c3c){while(--_0x341c3c){_0x392c8b['push'](_0x392c8b['shift']());}};_0x3a6fee(++_0x95c4eb);}(a756_0x95c4,0x136));const a756_0x3a6f=function(_0x392c8b,_0x95c4eb){_0x392c8b=_0x392c8b-0x0;let _0x3a6fee=a756_0x95c4[_0x392c8b];return _0x3a6fee;};const _0x5f95fc=a756_0x3a6f;'use strict';const _=require(_0x5f95fc('0x9')),db=require('../../mysqldb')['db'],logger=require(_0x5f95fc('0x19'))(_0x5f95fc('0x17')),{getSocket}=require(_0x5f95fc('0xa')),socket=getSocket();require(_0x5f95fc('0x13'))[_0x5f95fc('0x7')](socket),exports[_0x5f95fc('0x14')]=function(_0x341c3c){const _0x4606be=this;return new Promise(function(_0x40ca5a,_0x2cee78){const _0x368b32=a756_0x3a6f;return db[_0x368b32('0x11')][_0x368b32('0x16')]({'raw':_0x341c3c[_0x368b32('0xf')]?_0x341c3c[_0x368b32('0xf')][_0x368b32('0x2')]===undefined?!![]:![]:!![],'where':_0x341c3c['options']?_0x341c3c[_0x368b32('0xf')][_0x368b32('0xc')]||null:null,'attributes':_0x341c3c['options']?_0x341c3c[_0x368b32('0xf')][_0x368b32('0x8')]||null:null,'limit':_0x341c3c['options']?_0x341c3c[_0x368b32('0xf')][_0x368b32('0xd')]||null:null,'include':_0x341c3c['options']?_0x341c3c[_0x368b32('0xf')][_0x368b32('0x10')]?_[_0x368b32('0x18')](_0x341c3c[_0x368b32('0xf')][_0x368b32('0x10')],function(_0x5ea6d7){const _0x2a4195=_0x368b32;return{'model':db[_0x5ea6d7[_0x2a4195('0x15')]],'as':_0x5ea6d7['as'],'attributes':_0x5ea6d7[_0x2a4195('0x8')],'include':_0x5ea6d7[_0x2a4195('0x10')]?_[_0x2a4195('0x18')](_0x5ea6d7['include'],function(_0x5a67c5){const _0x3e283c=_0x2a4195;return{'model':db[_0x5a67c5['model']],'as':_0x5a67c5['as'],'attributes':_0x5a67c5[_0x3e283c('0x8')],'include':_0x5a67c5[_0x3e283c('0x10')]?_[_0x3e283c('0x18')](_0x5a67c5['include'],function(_0x9ee680){const _0x242768=_0x3e283c;return{'model':db[_0x9ee680[_0x242768('0x15')]],'as':_0x9ee680['as'],'attributes':_0x9ee680[_0x242768('0x8')]};}):[]};}):[]};}):[]:[]})[_0x368b32('0x12')](function(_0x156b60){const _0x57b50c=_0x368b32;logger[_0x57b50c('0x3')](_0x57b50c('0x14'),_0x341c3c),logger[_0x57b50c('0x0')](_0x57b50c('0x14'),_0x341c3c,JSON[_0x57b50c('0x5')](_0x156b60)),_0x40ca5a(_0x156b60);})['catch'](function(_0x59b9d5){const _0x3bc933=_0x368b32;logger['error'](_0x3bc933('0x14'),_0x59b9d5[_0x3bc933('0xb')],_0x341c3c),_0x2cee78(_0x4606be['error'](0x1f4,_0x59b9d5[_0x3bc933('0xb')]));});});},exports[_0x5f95fc('0x1')]=function(_0x49834b){const _0x153fff=this;return new Promise(function(_0x21ef1b,_0x4b520d){const _0x587415=a756_0x3a6f;return db[_0x587415('0x11')][_0x587415('0x6')]({'raw':_0x49834b[_0x587415('0xf')]?_0x49834b[_0x587415('0xf')][_0x587415('0x2')]===undefined?!![]:![]:!![],'where':_0x49834b[_0x587415('0xf')]?_0x49834b['options'][_0x587415('0xc')]||null:null,'attributes':_0x49834b[_0x587415('0xf')]?_0x49834b['options'][_0x587415('0x8')]||null:null,'include':_0x49834b['options']?_0x49834b[_0x587415('0xf')][_0x587415('0x10')]?_[_0x587415('0x18')](_0x49834b[_0x587415('0xf')]['include'],function(_0x547f2e){const _0x1adaff=_0x587415;return{'model':db[_0x547f2e[_0x1adaff('0x15')]],'as':_0x547f2e['as'],'attributes':_0x547f2e['attributes'],'include':_0x547f2e['include']?_['map'](_0x547f2e['include'],function(_0x27ad4c){const _0x5934b0=_0x1adaff;return{'model':db[_0x27ad4c[_0x5934b0('0x15')]],'as':_0x27ad4c['as'],'attributes':_0x27ad4c[_0x5934b0('0x8')],'include':_0x27ad4c[_0x5934b0('0x10')]?_['map'](_0x27ad4c[_0x5934b0('0x10')],function(_0xe99d05){const _0x3a2c94=_0x5934b0;return{'model':db[_0xe99d05[_0x3a2c94('0x15')]],'as':_0xe99d05['as'],'attributes':_0xe99d05[_0x3a2c94('0x8')]};}):[]};}):[]};}):[]:[]})[_0x587415('0x12')](function(_0x3fee9a){const _0x6e29cd=_0x587415;logger[_0x6e29cd('0x3')]('ShowVoiceQueue',_0x49834b),logger[_0x6e29cd('0x0')](_0x6e29cd('0x1'),_0x49834b,JSON[_0x6e29cd('0x5')](_0x3fee9a)),_0x21ef1b(_0x3fee9a);})[_0x587415('0xe')](function(_0x12cae4){const _0x6cc52=_0x587415;logger[_0x6cc52('0x4')](_0x6cc52('0x1'),_0x12cae4[_0x6cc52('0xb')],_0x49834b),_0x4b520d(_0x153fff['error'](0x1f4,_0x12cae4[_0x6cc52('0xb')]));});});}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.socket.js b/server/api/voiceQueue/voiceQueue.socket.js index 75a0dc9..23543e6 100644 --- a/server/api/voiceQueue/voiceQueue.socket.js +++ b/server/api/voiceQueue/voiceQueue.socket.js @@ -1 +1 @@ -const a757_0x1cb9=['./voiceQueue.events','length','voiceQueue:','remove','register','emit'];(function(_0x2e6510,_0x1cb933){const _0x34db60=function(_0x596f46){while(--_0x596f46){_0x2e6510['push'](_0x2e6510['shift']());}};_0x34db60(++_0x1cb933);}(a757_0x1cb9,0x126));const a757_0x34db=function(_0x2e6510,_0x1cb933){_0x2e6510=_0x2e6510-0x0;let _0x34db60=a757_0x1cb9[_0x2e6510];return _0x34db60;};const _0xb2eefb=a757_0x34db;'use strict';const VoiceQueueEvents=require(_0xb2eefb('0x0')),events=['save',_0xb2eefb('0x3'),'update'];function createListener(_0x596f46,_0xebed4e){return function(_0x1b6932){const _0x3a87ed=a757_0x34db;_0xebed4e[_0x3a87ed('0x5')](_0x596f46,_0x1b6932);};}exports[_0xb2eefb('0x4')]=function(_0x29d962){const _0x230ee6=_0xb2eefb;for(let _0x3d82bd=0x0,_0x47f868=events[_0x230ee6('0x1')];_0x3d82bd<_0x47f868;_0x3d82bd++){const _0x810b91=events[_0x3d82bd],_0x3d2e85=createListener(_0x230ee6('0x2')+_0x810b91,_0x29d962);VoiceQueueEvents['on'](_0x810b91,_0x3d2e85);}}; \ No newline at end of file +const a757_0x35a2=['register','./voiceQueue.events','voiceQueue:','remove','update','emit','length','save'];(function(_0x4f4853,_0x35a2c5){const _0x5621f3=function(_0x348d28){while(--_0x348d28){_0x4f4853['push'](_0x4f4853['shift']());}};_0x5621f3(++_0x35a2c5);}(a757_0x35a2,0x69));const a757_0x5621=function(_0x4f4853,_0x35a2c5){_0x4f4853=_0x4f4853-0x0;let _0x5621f3=a757_0x35a2[_0x4f4853];return _0x5621f3;};const _0x4306f2=a757_0x5621;'use strict';const VoiceQueueEvents=require(_0x4306f2('0x0')),events=[_0x4306f2('0x6'),_0x4306f2('0x2'),_0x4306f2('0x3')];function createListener(_0x348d28,_0x2a8b9e){return function(_0x5424c4){const _0x3280b8=a757_0x5621;_0x2a8b9e[_0x3280b8('0x4')](_0x348d28,_0x5424c4);};}exports[_0x4306f2('0x7')]=function(_0x279e87){const _0x1d6454=_0x4306f2;for(let _0x2e6e3c=0x0,_0x2406ff=events[_0x1d6454('0x5')];_0x2e6e3c<_0x2406ff;_0x2e6e3c++){const _0x4bfc22=events[_0x2e6e3c],_0x40aa67=createListener(_0x1d6454('0x1')+_0x4bfc22,_0x279e87);VoiceQueueEvents['on'](_0x4bfc22,_0x40aa67);}}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/index.js b/server/api/voiceQueueReport/index.js index 64ba649..49bf044 100644 --- a/server/api/voiceQueueReport/index.js +++ b/server/api/voiceQueueReport/index.js @@ -1 +1 @@ -const a758_0x492a=['delete','exports','/index','create','Router','/:id','put','post','./voiceQueueReport.controller','isAuthenticated','describe','express','/describe','get','getVoiceQueuesReport'];(function(_0x20b887,_0x492a86){const _0x9c1e6a=function(_0x1bf06b){while(--_0x1bf06b){_0x20b887['push'](_0x20b887['shift']());}};_0x9c1e6a(++_0x492a86);}(a758_0x492a,0xb0));const a758_0x9c1e=function(_0x20b887,_0x492a86){_0x20b887=_0x20b887-0x0;let _0x9c1e6a=a758_0x492a[_0x20b887];return _0x9c1e6a;};const _0x39fef3=a758_0x9c1e;'use strict';const express=require(_0x39fef3('0x0')),router=express[_0x39fef3('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x39fef3('0xc'));router[_0x39fef3('0x2')]('/',auth[_0x39fef3('0xd')](),controller['index']),router['get'](_0x39fef3('0x1'),auth[_0x39fef3('0xd')](),controller[_0x39fef3('0xe')]),router[_0x39fef3('0x2')](_0x39fef3('0x6'),auth[_0x39fef3('0xd')](),controller[_0x39fef3('0x3')]),router[_0x39fef3('0x2')](_0x39fef3('0x9'),auth[_0x39fef3('0xd')](),controller['show']),router[_0x39fef3('0xb')]('/',auth['isAuthenticated'](),controller[_0x39fef3('0x7')]),router[_0x39fef3('0xa')](_0x39fef3('0x9'),auth[_0x39fef3('0xd')](),controller['update']),router[_0x39fef3('0x4')](_0x39fef3('0x9'),auth[_0x39fef3('0xd')](),controller['destroy']),module[_0x39fef3('0x5')]=router; \ No newline at end of file +const a758_0xb166=['express','Router','isAuthenticated','./voiceQueueReport.controller','/:id','create','/index','delete','post','show','destroy','/describe','get'];(function(_0x1f18ec,_0xb1660c){const _0x4b5a69=function(_0x439df2){while(--_0x439df2){_0x1f18ec['push'](_0x1f18ec['shift']());}};_0x4b5a69(++_0xb1660c);}(a758_0xb166,0x12b));const a758_0x4b5a=function(_0x1f18ec,_0xb1660c){_0x1f18ec=_0x1f18ec-0x0;let _0x4b5a69=a758_0xb166[_0x1f18ec];return _0x4b5a69;};const _0xdad954=a758_0x4b5a;'use strict';const express=require(_0xdad954('0x0')),router=express[_0xdad954('0x1')](),auth=require('../../components/auth/service'),controller=require(_0xdad954('0x3'));router[_0xdad954('0xc')]('/',auth[_0xdad954('0x2')](),controller['index']),router['get'](_0xdad954('0xb'),auth[_0xdad954('0x2')](),controller['describe']),router[_0xdad954('0xc')](_0xdad954('0x6'),auth[_0xdad954('0x2')](),controller['getVoiceQueuesReport']),router[_0xdad954('0xc')](_0xdad954('0x4'),auth[_0xdad954('0x2')](),controller[_0xdad954('0x9')]),router[_0xdad954('0x8')]('/',auth[_0xdad954('0x2')](),controller[_0xdad954('0x5')]),router['put'](_0xdad954('0x4'),auth[_0xdad954('0x2')](),controller['update']),router[_0xdad954('0x7')](_0xdad954('0x4'),auth[_0xdad954('0x2')](),controller[_0xdad954('0xa')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.attributes.js b/server/api/voiceQueueReport/voiceQueueReport.attributes.js index 3001fec..7489279 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.attributes.js +++ b/server/api/voiceQueueReport/voiceQueueReport.attributes.js @@ -1 +1 @@ -const a759_0x282e=['seconds','BOOLEAN','sequelize','DATE','format','STRING','getDataValue','setDataValue','exports','YYYY-MM-DD\x20HH:mm:ss','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','INTEGER','queuecallerjoinAt'];(function(_0x54b36c,_0x282e12){const _0x2461cb=function(_0xb19e0a){while(--_0xb19e0a){_0x54b36c['push'](_0x54b36c['shift']());}};_0x2461cb(++_0x282e12);}(a759_0x282e,0x16f));const a759_0x2461=function(_0x54b36c,_0x282e12){_0x54b36c=_0x54b36c-0x0;let _0x2461cb=a759_0x282e[_0x54b36c];return _0x2461cb;};const _0x51b811=a759_0x2461;'use strict';const Sequelize=require(_0x51b811('0xc')),moment=require('moment');module[_0x51b811('0x5')]={'type':{'type':Sequelize[_0x51b811('0x2')]},'uniqueid':{'type':Sequelize[_0x51b811('0x2')]},'calleridnum':{'type':Sequelize[_0x51b811('0x2')]},'calleridname':{'type':Sequelize[_0x51b811('0x2')]},'queue':{'type':Sequelize[_0x51b811('0x2')]},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize[_0x51b811('0x0')],'set':function(_0xb19e0a){const _0x238378=_0x51b811,_0x1677ab=moment(_0xb19e0a),_0x48ee17=moment(this[_0x238378('0x3')](_0x238378('0x9')))[_0x238378('0x1')](_0x238378('0x6')),_0x1500a3=_0x1677ab['diff'](_0x48ee17,_0x238378('0xa'));this['setDataValue']('queuecallerleaveAt',_0xb19e0a),this[_0x238378('0x4')]('holdtime',_0x1500a3||null);}},'position':{'type':Sequelize[_0x51b811('0x8')]},'count':{'type':Sequelize[_0x51b811('0x8')]},'queuecallerabandon':{'type':Sequelize[_0x51b811('0xb')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x51b811('0x0')]},'queuecallercomplete':{'type':Sequelize[_0x51b811('0xb')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x51b811('0x0')]},'queuecallerexit':{'type':Sequelize[_0x51b811('0xb')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x51b811('0x0')]},'queuecallerexitreason':{'type':Sequelize[_0x51b811('0x2')],'comment':_0x51b811('0x7')},'originalposition':{'type':Sequelize[_0x51b811('0x8')]},'channel':{'type':Sequelize[_0x51b811('0x2')]},'connectedlinenum':{'type':Sequelize[_0x51b811('0x2')]},'connectedlinename':{'type':Sequelize[_0x51b811('0x2')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x51b811('0x2')]},'priority':{'type':Sequelize[_0x51b811('0x2')]},'holdtime':{'type':Sequelize[_0x51b811('0x8')]},'mohtime':{'type':Sequelize[_0x51b811('0x8')],'defaultValue':0x0},'assigned':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x51b811('0x2')]},'transfer':{'type':Sequelize[_0x51b811('0xb')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x51b811('0x2')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize[_0x51b811('0x2')]},'transferuniqueid':{'type':Sequelize[_0x51b811('0x2')]},'disposition':{'type':Sequelize[_0x51b811('0x2')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize['STRING']},'queuecallerenterreason':{'type':Sequelize[_0x51b811('0x8')],'defaultValue':0x0}}; \ No newline at end of file +const a759_0xf2e0=['DATE','format','BOOLEAN','moment','INTEGER','exports','STRING','sequelize','queuecallerjoinAt','YYYY-MM-DD\x20HH:mm:ss','holdtime','queuecallerleaveAt','setDataValue','getDataValue','seconds'];(function(_0x2893f7,_0xf2e094){const _0x4f5bca=function(_0x321ecf){while(--_0x321ecf){_0x2893f7['push'](_0x2893f7['shift']());}};_0x4f5bca(++_0xf2e094);}(a759_0xf2e0,0x1a5));const a759_0x4f5b=function(_0x2893f7,_0xf2e094){_0x2893f7=_0x2893f7-0x0;let _0x4f5bca=a759_0xf2e0[_0x2893f7];return _0x4f5bca;};const _0x3d9a2f=a759_0x4f5b;'use strict';const Sequelize=require(_0x3d9a2f('0x6')),moment=require(_0x3d9a2f('0x2'));module[_0x3d9a2f('0x4')]={'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x3d9a2f('0x5')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x3d9a2f('0x5')]},'queuecallerjoinAt':{'type':Sequelize[_0x3d9a2f('0xe')]},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x321ecf){const _0x341e42=_0x3d9a2f,_0x187375=moment(_0x321ecf),_0x267cc2=moment(this[_0x341e42('0xc')](_0x341e42('0x7')))[_0x341e42('0x0')](_0x341e42('0x8')),_0x291c29=_0x187375['diff'](_0x267cc2,_0x341e42('0xd'));this[_0x341e42('0xb')](_0x341e42('0xa'),_0x321ecf),this[_0x341e42('0xb')](_0x341e42('0x9'),_0x291c29||null);}},'position':{'type':Sequelize[_0x3d9a2f('0x3')]},'count':{'type':Sequelize[_0x3d9a2f('0x3')]},'queuecallerabandon':{'type':Sequelize[_0x3d9a2f('0x1')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize['DATE']},'queuecallercomplete':{'type':Sequelize[_0x3d9a2f('0x1')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x3d9a2f('0xe')]},'queuecallerexit':{'type':Sequelize[_0x3d9a2f('0x1')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize['DATE']},'queuecallerexitreason':{'type':Sequelize[_0x3d9a2f('0x5')],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':Sequelize[_0x3d9a2f('0x3')]},'channel':{'type':Sequelize[_0x3d9a2f('0x5')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x3d9a2f('0x5')]},'accountcode':{'type':Sequelize[_0x3d9a2f('0x5')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0x3d9a2f('0x5')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize[_0x3d9a2f('0x3')],'defaultValue':0x0},'assigned':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x3d9a2f('0x5')]},'transfer':{'type':Sequelize[_0x3d9a2f('0x1')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x3d9a2f('0x5')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize['STRING']},'transferuniqueid':{'type':Sequelize[_0x3d9a2f('0x5')]},'disposition':{'type':Sequelize[_0x3d9a2f('0x5')]},'secondDisposition':{'type':Sequelize[_0x3d9a2f('0x5')]},'thirdDisposition':{'type':Sequelize[_0x3d9a2f('0x5')]},'queuecallerenterreason':{'type':Sequelize[_0x3d9a2f('0x3')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.controller.js b/server/api/voiceQueueReport/voiceQueueReport.controller.js index 5a0edf5..700c1a8 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.controller.js +++ b/server/api/voiceQueueReport/voiceQueueReport.controller.js @@ -1 +1 @@ -const a760_0x4ca7=['merge','params','name','rows','offset','findAll','like','options','sendStatus','../../mysqldb','register','includeAll','sequelize','end','rawAttributes','VoiceQueueReport','api','sort','../../config/logger','then','model','findOne','keys','order','json','intersection','getVoiceQueuesReport','pick','map','filters','status','limit','update','Content-Range','catch','VIRTUAL','where','describe','count','destroy','type','query','filter','undefined','body','attributes','nolimit','fields','create','length','include'];(function(_0x4a463f,_0x4ca75f){const _0x11d637=function(_0x510a95){while(--_0x510a95){_0x4a463f['push'](_0x4a463f['shift']());}};_0x11d637(++_0x4ca75f);}(a760_0x4ca7,0x74));const a760_0x11d6=function(_0x4a463f,_0x4ca75f){_0x4a463f=_0x4a463f-0x0;let _0x11d637=a760_0x4ca7[_0x4a463f];return _0x11d637;};const _0xaea235=a760_0x11d6;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0xaea235('0x4'))(_0xaea235('0x2')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0xaea235('0x2e'))['db'],{Op}=require(_0xaea235('0x31'));require('./voiceQueueReport.socket')[_0xaea235('0x2f')](socket);function respondWithResult(_0x510a95,_0x415c99){return _0x415c99=_0x415c99||0xc8,function(_0x185183){const _0x56639c=a760_0x11d6;if(_0x185183)return _0x510a95[_0x56639c('0x10')](_0x415c99)['json'](_0x185183);};}function respondWithFilteredResult(_0x44f271,_0x2e772c){return function(_0x1c23a8){const _0x249fa3=a760_0x11d6;if(_0x1c23a8){const _0x399c42=_0x1c23a8[_0x249fa3('0x18')],_0x1411a6=_0x2e772c['offset'];let _0x253d96=_0x2e772c[_0x249fa3('0x29')]+_0x2e772c[_0x249fa3('0x11')],_0x1399c0;return _0x253d96>=_0x399c42?(_0x253d96=_0x399c42,_0x1399c0=0xc8):_0x1399c0=0xce,_0x44f271[_0x249fa3('0x10')](_0x1399c0),_0x44f271['set'](_0x249fa3('0x13'),_0x1411a6+'-'+_0x253d96+'/'+_0x399c42)[_0x249fa3('0xa')](_0x1c23a8);}return null;};}function saveUpdates(_0x30b442){return function(_0x1e2e59){const _0x3fac15=a760_0x11d6;if(_0x1e2e59)return _0x1e2e59[_0x3fac15('0x12')](_0x30b442)[_0x3fac15('0x5')](function(_0x75eb8e){return _0x75eb8e;});return null;};}function removeEntity(_0x5dcdd9){return function(_0x5539be){const _0x438d33=a760_0x11d6;if(_0x5539be)return _0x5539be[_0x438d33('0x19')]()[_0x438d33('0x5')](function(){const _0x41f15c=_0x438d33;_0x5dcdd9[_0x41f15c('0x10')](0xcc)[_0x41f15c('0x32')]();});};}function handleEntityNotFound(_0x6391){return function(_0x24c26d){const _0x26ed66=a760_0x11d6;return!_0x24c26d&&_0x6391[_0x26ed66('0x2d')](0x194),_0x24c26d;};}function handleError(_0x12f169,_0x34ae6e){return _0x34ae6e=_0x34ae6e||0x1f4,function(_0x104ee7){const _0x374580=a760_0x11d6;logger['error'](_0x104ee7['stack']),_0x104ee7['name']&&delete _0x104ee7[_0x374580('0x27')],_0x12f169[_0x374580('0x10')](_0x34ae6e)['send'](_0x104ee7);};}exports['index']=function(_0x4b29dd,_0x336272){const _0x11a7c0=_0xaea235;let _0x4b2b01={};const _0x89e16c={},_0x150a4c={'count':0x0,'rows':[]},_0x2d575e=_[_0x11a7c0('0xe')](db[_0x11a7c0('0x1')]['rawAttributes'],function(_0x374456){return{'name':_0x374456['fieldName'],'type':_0x374456['type']['key']};});_0x89e16c[_0x11a7c0('0x6')]=_[_0x11a7c0('0xe')](_0x2d575e,_0x11a7c0('0x27')),_0x89e16c[_0x11a7c0('0x1b')]=_[_0x11a7c0('0x8')](_0x4b29dd[_0x11a7c0('0x1b')]),_0x89e16c['filters']=_['intersection'](_0x89e16c[_0x11a7c0('0x6')],_0x89e16c[_0x11a7c0('0x1b')]),_0x4b2b01[_0x11a7c0('0x1f')]=_[_0x11a7c0('0xb')](_0x89e16c[_0x11a7c0('0x6')],qs[_0x11a7c0('0x21')](_0x4b29dd[_0x11a7c0('0x1b')][_0x11a7c0('0x21')])),_0x4b2b01[_0x11a7c0('0x1f')]=_0x4b2b01['attributes'][_0x11a7c0('0x23')]?_0x4b2b01[_0x11a7c0('0x1f')]:_0x89e16c[_0x11a7c0('0x6')];typeof _0x4b29dd['query'][_0x11a7c0('0x20')]===_0x11a7c0('0x1d')&&(_0x4b2b01[_0x11a7c0('0x11')]=qs[_0x11a7c0('0x11')](_0x4b29dd[_0x11a7c0('0x1b')][_0x11a7c0('0x11')]),_0x4b2b01[_0x11a7c0('0x29')]=qs[_0x11a7c0('0x29')](_0x4b29dd[_0x11a7c0('0x1b')][_0x11a7c0('0x29')]));_0x4b2b01['order']=qs[_0x11a7c0('0x3')](_0x4b29dd['query']['sort']),_0x4b2b01[_0x11a7c0('0x16')]=qs[_0x11a7c0('0xf')](_[_0x11a7c0('0xd')](_0x4b29dd[_0x11a7c0('0x1b')],_0x89e16c['filters']),_0x2d575e);_0x4b29dd['query'][_0x11a7c0('0x1c')]&&(_0x4b2b01[_0x11a7c0('0x16')]=_[_0x11a7c0('0x25')](_0x4b2b01['where'],{[Op['or']]:_['map'](_0x2d575e,function(_0x2f43d9){const _0x16abce=_0x11a7c0;if(_0x2f43d9[_0x16abce('0x1a')]!==_0x16abce('0x15')){const _0x2c8a11={};return _0x2c8a11[_0x2f43d9['name']]={[Op[_0x16abce('0x2b')]]:'%'+_0x4b29dd[_0x16abce('0x1b')][_0x16abce('0x1c')]+'%'},_0x2c8a11;}})}));_0x4b2b01=_[_0x11a7c0('0x25')]({},_0x4b2b01,_0x4b29dd['options']);const _0x4f8763={'where':_0x4b2b01[_0x11a7c0('0x16')]};return db['VoiceQueueReport']['count'](_0x4f8763)['then'](function(_0x2a7eb6){const _0x3808a0=_0x11a7c0;return _0x150a4c['count']=_0x2a7eb6,_0x4b29dd[_0x3808a0('0x1b')][_0x3808a0('0x30')]&&(_0x4b2b01[_0x3808a0('0x24')]=[{'all':!![]}]),db[_0x3808a0('0x1')][_0x3808a0('0x2a')](_0x4b2b01);})[_0x11a7c0('0x5')](function(_0x2ad7aa){const _0x39b39d=_0x11a7c0;return _0x150a4c[_0x39b39d('0x28')]=_0x2ad7aa,_0x150a4c;})[_0x11a7c0('0x5')](respondWithFilteredResult(_0x336272,_0x4b2b01))[_0x11a7c0('0x14')](handleError(_0x336272,null));},exports['show']=function(_0x4d7a2c,_0x54b15d){const _0x4ab8f3=_0xaea235;let _0x1790c4={'raw':![],'where':{'id':_0x4d7a2c['params']['id']}};const _0x34a9d9={};return _0x34a9d9[_0x4ab8f3('0x6')]=_[_0x4ab8f3('0x8')](db['VoiceQueueReport'][_0x4ab8f3('0x0')]),_0x34a9d9[_0x4ab8f3('0x1b')]=_[_0x4ab8f3('0x8')](_0x4d7a2c[_0x4ab8f3('0x1b')]),_0x34a9d9[_0x4ab8f3('0xf')]=_[_0x4ab8f3('0xb')](_0x34a9d9['model'],_0x34a9d9[_0x4ab8f3('0x1b')]),_0x1790c4[_0x4ab8f3('0x1f')]=_[_0x4ab8f3('0xb')](_0x34a9d9[_0x4ab8f3('0x6')],qs[_0x4ab8f3('0x21')](_0x4d7a2c[_0x4ab8f3('0x1b')][_0x4ab8f3('0x21')])),_0x1790c4[_0x4ab8f3('0x1f')]=_0x1790c4['attributes']['length']?_0x1790c4[_0x4ab8f3('0x1f')]:_0x34a9d9[_0x4ab8f3('0x6')],_0x4d7a2c[_0x4ab8f3('0x1b')][_0x4ab8f3('0x30')]&&(_0x1790c4['include']=[{'all':!![]}]),_0x1790c4=_[_0x4ab8f3('0x25')]({},_0x1790c4,_0x4d7a2c[_0x4ab8f3('0x2c')]),db[_0x4ab8f3('0x1')][_0x4ab8f3('0x7')](_0x1790c4)[_0x4ab8f3('0x5')](handleEntityNotFound(_0x54b15d,null))[_0x4ab8f3('0x5')](respondWithResult(_0x54b15d,null))[_0x4ab8f3('0x14')](handleError(_0x54b15d,null));},exports[_0xaea235('0x22')]=function(_0x1c0cee,_0x2c3fe1){const _0x3e5a93=_0xaea235;return db[_0x3e5a93('0x1')][_0x3e5a93('0x22')](_0x1c0cee[_0x3e5a93('0x1e')],{})['then'](respondWithResult(_0x2c3fe1,0xc9))[_0x3e5a93('0x14')](handleError(_0x2c3fe1,null));},exports['update']=function(_0x2f6b1e,_0x53c5ef){const _0x3f38da=_0xaea235;return _0x2f6b1e['body']['id']&&delete _0x2f6b1e['body']['id'],db['VoiceQueueReport']['findOne']({'where':{'id':_0x2f6b1e[_0x3f38da('0x26')]['id']}})[_0x3f38da('0x5')](handleEntityNotFound(_0x53c5ef,null))[_0x3f38da('0x5')](saveUpdates(_0x2f6b1e[_0x3f38da('0x1e')],null))['then'](respondWithResult(_0x53c5ef,null))[_0x3f38da('0x14')](handleError(_0x53c5ef,null));},exports[_0xaea235('0x19')]=function(_0x21c712,_0x10188d){const _0x57060b=_0xaea235;return db['VoiceQueueReport'][_0x57060b('0x7')]({'where':{'id':_0x21c712[_0x57060b('0x26')]['id']}})[_0x57060b('0x5')](handleEntityNotFound(_0x10188d,null))['then'](removeEntity(_0x10188d,null))[_0x57060b('0x14')](handleError(_0x10188d,null));},exports[_0xaea235('0x17')]=function(_0x3d02d5,_0x5bf4a6){const _0x5bca8a=_0xaea235;return db[_0x5bca8a('0x1')]['describe']()[_0x5bca8a('0x5')](respondWithResult(_0x5bf4a6,null))[_0x5bca8a('0x14')](handleError(_0x5bf4a6,null));},exports[_0xaea235('0xc')]=function(_0x3d06ba,_0x3d18da){const _0x85fb7f=_0xaea235;let _0xd914d6={};const _0x2c0a9a={},_0xa4f040={'count':0x0,'rows':[]};_0x2c0a9a['model']=_[_0x85fb7f('0x8')](db[_0x85fb7f('0x1')][_0x85fb7f('0x0')]),_0x2c0a9a['query']=_[_0x85fb7f('0x8')](_0x3d06ba[_0x85fb7f('0x1b')]),_0x2c0a9a[_0x85fb7f('0xf')]=_[_0x85fb7f('0xb')](_0x2c0a9a[_0x85fb7f('0x6')],_0x2c0a9a[_0x85fb7f('0x1b')]),_0xd914d6['attributes']=_[_0x85fb7f('0xb')](_0x2c0a9a[_0x85fb7f('0x6')],qs[_0x85fb7f('0x21')](_0x3d06ba[_0x85fb7f('0x1b')][_0x85fb7f('0x21')])),_0xd914d6['attributes']=_0xd914d6[_0x85fb7f('0x1f')][_0x85fb7f('0x23')]?_0xd914d6[_0x85fb7f('0x1f')]:_0x2c0a9a[_0x85fb7f('0x6')];typeof _0x3d06ba[_0x85fb7f('0x1b')][_0x85fb7f('0x20')]==='undefined'&&(_0xd914d6[_0x85fb7f('0x11')]=qs[_0x85fb7f('0x11')](_0x3d06ba[_0x85fb7f('0x1b')][_0x85fb7f('0x11')]),_0xd914d6['offset']=qs[_0x85fb7f('0x29')](_0x3d06ba[_0x85fb7f('0x1b')]['offset']));_0xd914d6[_0x85fb7f('0x9')]=qs[_0x85fb7f('0x3')](_0x3d06ba[_0x85fb7f('0x1b')][_0x85fb7f('0x3')]),_0xd914d6[_0x85fb7f('0x16')]=qs[_0x85fb7f('0xf')](_[_0x85fb7f('0xd')](_0x3d06ba[_0x85fb7f('0x1b')],_0x2c0a9a[_0x85fb7f('0xf')]));_0x3d06ba[_0x85fb7f('0x1b')]['filter']&&(_0xd914d6[_0x85fb7f('0x16')]=_['merge'](_0xd914d6[_0x85fb7f('0x16')],{[Op['or']]:_[_0x85fb7f('0xe')](_0xd914d6['attributes'],function(_0x223f28){const _0x59e88b=_0x85fb7f,_0x58a2d6={};return _0x58a2d6[_0x223f28]={[Op[_0x59e88b('0x2b')]]:'%'+_0x3d06ba[_0x59e88b('0x1b')]['filter']+'%'},_0x58a2d6;})}));_0xd914d6=_[_0x85fb7f('0x25')]({},_0xd914d6,_0x3d06ba[_0x85fb7f('0x2c')]);const _0x4835ac={'where':_0xd914d6[_0x85fb7f('0x16')]};return db[_0x85fb7f('0x1')][_0x85fb7f('0x18')](_0x4835ac)[_0x85fb7f('0x5')](function(_0x32a387){const _0x109637=_0x85fb7f;return _0xa4f040[_0x109637('0x18')]=_0x32a387,_0x3d06ba['query']['includeAll']&&(_0xd914d6[_0x109637('0x24')]=[{'all':!![]}]),db[_0x109637('0x1')][_0x109637('0x2a')](_0xd914d6);})[_0x85fb7f('0x5')](function(_0x2964fe){return _0xa4f040['rows']=_0x2964fe,_0xa4f040;})[_0x85fb7f('0x5')](respondWithFilteredResult(_0x3d18da,_0xd914d6,'getVoiceQueuesReport'))[_0x85fb7f('0x14')](handleError(_0x3d18da,null,_0x85fb7f('0xc')));}; \ No newline at end of file +const a760_0xb91d=['update','filter','create','attributes','then','findAll','describe','lodash','count','show','fields','like','type','rawAttributes','set','merge','end','keys','../../config/logger','destroy','map','error','sort','nolimit','register','includeAll','pick','name','intersection','limit','../../mysqldb','status','VoiceQueueReport','query','offset','index','getVoiceQueuesReport','where','params','rows','Content-Range','options','include','model','stack','findOne','sendStatus','body','../../components/parsers/qs','json','./voiceQueueReport.socket','api','catch','filters','length','order'];(function(_0xede0ae,_0xb91d26){const _0x545477=function(_0x468a49){while(--_0x468a49){_0xede0ae['push'](_0xede0ae['shift']());}};_0x545477(++_0xb91d26);}(a760_0xb91d,0x129));const a760_0x5454=function(_0xede0ae,_0xb91d26){_0xede0ae=_0xede0ae-0x0;let _0x545477=a760_0xb91d[_0xede0ae];return _0x545477;};const _0x4d1aee=a760_0x5454;'use strict';const _=require(_0x4d1aee('0x2e')),qs=require(_0x4d1aee('0x1f')),logger=require(_0x4d1aee('0x1'))(_0x4d1aee('0x22')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x4d1aee('0xd'))['db'],{Op}=require('sequelize');require(_0x4d1aee('0x21'))[_0x4d1aee('0x7')](socket);function respondWithResult(_0x468a49,_0x5602ea){return _0x5602ea=_0x5602ea||0xc8,function(_0x1529b6){const _0x5012eb=a760_0x5454;if(_0x1529b6)return _0x468a49[_0x5012eb('0xe')](_0x5602ea)['json'](_0x1529b6);};}function respondWithFilteredResult(_0x3dcb46,_0x430881){return function(_0x2b7533){const _0x4cdad5=a760_0x5454;if(_0x2b7533){const _0x57ee5c=_0x2b7533['count'],_0x543557=_0x430881[_0x4cdad5('0x11')];let _0x1e297d=_0x430881['offset']+_0x430881['limit'],_0x1d6673;return _0x1e297d>=_0x57ee5c?(_0x1e297d=_0x57ee5c,_0x1d6673=0xc8):_0x1d6673=0xce,_0x3dcb46[_0x4cdad5('0xe')](_0x1d6673),_0x3dcb46[_0x4cdad5('0x35')](_0x4cdad5('0x17'),_0x543557+'-'+_0x1e297d+'/'+_0x57ee5c)[_0x4cdad5('0x20')](_0x2b7533);}return null;};}function saveUpdates(_0x20bf3a){return function(_0x328f60){const _0x313b07=a760_0x5454;if(_0x328f60)return _0x328f60[_0x313b07('0x27')](_0x20bf3a)[_0x313b07('0x2b')](function(_0x32e1ef){return _0x32e1ef;});return null;};}function removeEntity(_0x30dfb7){return function(_0x2dd9b4){const _0x5ba572=a760_0x5454;if(_0x2dd9b4)return _0x2dd9b4[_0x5ba572('0x2')]()[_0x5ba572('0x2b')](function(){const _0x421025=_0x5ba572;_0x30dfb7[_0x421025('0xe')](0xcc)[_0x421025('0x37')]();});};}function handleEntityNotFound(_0x371e6b){return function(_0x681bd){const _0x5eedf9=a760_0x5454;return!_0x681bd&&_0x371e6b[_0x5eedf9('0x1d')](0x194),_0x681bd;};}function handleError(_0x48a2a6,_0x1470e9){return _0x1470e9=_0x1470e9||0x1f4,function(_0x5447e0){const _0x431eeb=a760_0x5454;logger[_0x431eeb('0x4')](_0x5447e0[_0x431eeb('0x1b')]),_0x5447e0['name']&&delete _0x5447e0[_0x431eeb('0xa')],_0x48a2a6['status'](_0x1470e9)['send'](_0x5447e0);};}exports[_0x4d1aee('0x12')]=function(_0x3bfd9a,_0x587032){const _0x548ba6=_0x4d1aee;let _0x957aca={};const _0x35c81f={},_0x70bf10={'count':0x0,'rows':[]},_0x2cf0d1=_[_0x548ba6('0x3')](db['VoiceQueueReport'][_0x548ba6('0x34')],function(_0x11bb8b){return{'name':_0x11bb8b['fieldName'],'type':_0x11bb8b['type']['key']};});_0x35c81f[_0x548ba6('0x1a')]=_[_0x548ba6('0x3')](_0x2cf0d1,_0x548ba6('0xa')),_0x35c81f['query']=_[_0x548ba6('0x0')](_0x3bfd9a['query']),_0x35c81f['filters']=_[_0x548ba6('0xb')](_0x35c81f['model'],_0x35c81f['query']),_0x957aca[_0x548ba6('0x2a')]=_[_0x548ba6('0xb')](_0x35c81f[_0x548ba6('0x1a')],qs['fields'](_0x3bfd9a[_0x548ba6('0x10')][_0x548ba6('0x31')])),_0x957aca[_0x548ba6('0x2a')]=_0x957aca[_0x548ba6('0x2a')]['length']?_0x957aca[_0x548ba6('0x2a')]:_0x35c81f[_0x548ba6('0x1a')];typeof _0x3bfd9a[_0x548ba6('0x10')][_0x548ba6('0x6')]==='undefined'&&(_0x957aca[_0x548ba6('0xc')]=qs[_0x548ba6('0xc')](_0x3bfd9a[_0x548ba6('0x10')]['limit']),_0x957aca[_0x548ba6('0x11')]=qs['offset'](_0x3bfd9a[_0x548ba6('0x10')]['offset']));_0x957aca['order']=qs[_0x548ba6('0x5')](_0x3bfd9a[_0x548ba6('0x10')][_0x548ba6('0x5')]),_0x957aca[_0x548ba6('0x14')]=qs[_0x548ba6('0x24')](_[_0x548ba6('0x9')](_0x3bfd9a['query'],_0x35c81f[_0x548ba6('0x24')]),_0x2cf0d1);_0x3bfd9a[_0x548ba6('0x10')][_0x548ba6('0x28')]&&(_0x957aca[_0x548ba6('0x14')]=_[_0x548ba6('0x36')](_0x957aca[_0x548ba6('0x14')],{[Op['or']]:_[_0x548ba6('0x3')](_0x2cf0d1,function(_0x162c05){const _0x1b6958=_0x548ba6;if(_0x162c05[_0x1b6958('0x33')]!=='VIRTUAL'){const _0xa4436f={};return _0xa4436f[_0x162c05[_0x1b6958('0xa')]]={[Op[_0x1b6958('0x32')]]:'%'+_0x3bfd9a[_0x1b6958('0x10')]['filter']+'%'},_0xa4436f;}})}));_0x957aca=_['merge']({},_0x957aca,_0x3bfd9a[_0x548ba6('0x18')]);const _0x2c5c14={'where':_0x957aca[_0x548ba6('0x14')]};return db['VoiceQueueReport'][_0x548ba6('0x2f')](_0x2c5c14)['then'](function(_0x4ef1d6){const _0x186491=_0x548ba6;return _0x70bf10[_0x186491('0x2f')]=_0x4ef1d6,_0x3bfd9a[_0x186491('0x10')][_0x186491('0x8')]&&(_0x957aca[_0x186491('0x19')]=[{'all':!![]}]),db[_0x186491('0xf')][_0x186491('0x2c')](_0x957aca);})[_0x548ba6('0x2b')](function(_0x284d7b){return _0x70bf10['rows']=_0x284d7b,_0x70bf10;})['then'](respondWithFilteredResult(_0x587032,_0x957aca))[_0x548ba6('0x23')](handleError(_0x587032,null));},exports[_0x4d1aee('0x30')]=function(_0xfc289,_0x435f47){const _0x1d747d=_0x4d1aee;let _0x570cef={'raw':![],'where':{'id':_0xfc289['params']['id']}};const _0x109f16={};return _0x109f16['model']=_[_0x1d747d('0x0')](db[_0x1d747d('0xf')][_0x1d747d('0x34')]),_0x109f16[_0x1d747d('0x10')]=_[_0x1d747d('0x0')](_0xfc289[_0x1d747d('0x10')]),_0x109f16[_0x1d747d('0x24')]=_['intersection'](_0x109f16['model'],_0x109f16[_0x1d747d('0x10')]),_0x570cef['attributes']=_['intersection'](_0x109f16[_0x1d747d('0x1a')],qs[_0x1d747d('0x31')](_0xfc289[_0x1d747d('0x10')]['fields'])),_0x570cef[_0x1d747d('0x2a')]=_0x570cef['attributes']['length']?_0x570cef[_0x1d747d('0x2a')]:_0x109f16[_0x1d747d('0x1a')],_0xfc289[_0x1d747d('0x10')][_0x1d747d('0x8')]&&(_0x570cef[_0x1d747d('0x19')]=[{'all':!![]}]),_0x570cef=_[_0x1d747d('0x36')]({},_0x570cef,_0xfc289[_0x1d747d('0x18')]),db['VoiceQueueReport'][_0x1d747d('0x1c')](_0x570cef)[_0x1d747d('0x2b')](handleEntityNotFound(_0x435f47,null))[_0x1d747d('0x2b')](respondWithResult(_0x435f47,null))[_0x1d747d('0x23')](handleError(_0x435f47,null));},exports[_0x4d1aee('0x29')]=function(_0x21b6ae,_0x424d7c){const _0x2afd25=_0x4d1aee;return db[_0x2afd25('0xf')]['create'](_0x21b6ae[_0x2afd25('0x1e')],{})[_0x2afd25('0x2b')](respondWithResult(_0x424d7c,0xc9))['catch'](handleError(_0x424d7c,null));},exports[_0x4d1aee('0x27')]=function(_0x117386,_0x254aa8){const _0x200beb=_0x4d1aee;return _0x117386['body']['id']&&delete _0x117386[_0x200beb('0x1e')]['id'],db[_0x200beb('0xf')][_0x200beb('0x1c')]({'where':{'id':_0x117386[_0x200beb('0x15')]['id']}})[_0x200beb('0x2b')](handleEntityNotFound(_0x254aa8,null))[_0x200beb('0x2b')](saveUpdates(_0x117386[_0x200beb('0x1e')],null))['then'](respondWithResult(_0x254aa8,null))[_0x200beb('0x23')](handleError(_0x254aa8,null));},exports[_0x4d1aee('0x2')]=function(_0x1f8203,_0x148a4a){const _0x1aba16=_0x4d1aee;return db[_0x1aba16('0xf')][_0x1aba16('0x1c')]({'where':{'id':_0x1f8203[_0x1aba16('0x15')]['id']}})[_0x1aba16('0x2b')](handleEntityNotFound(_0x148a4a,null))[_0x1aba16('0x2b')](removeEntity(_0x148a4a,null))[_0x1aba16('0x23')](handleError(_0x148a4a,null));},exports[_0x4d1aee('0x2d')]=function(_0x339771,_0x113ab0){const _0x5e0b21=_0x4d1aee;return db[_0x5e0b21('0xf')][_0x5e0b21('0x2d')]()[_0x5e0b21('0x2b')](respondWithResult(_0x113ab0,null))[_0x5e0b21('0x23')](handleError(_0x113ab0,null));},exports[_0x4d1aee('0x13')]=function(_0x4708db,_0x58cabc){const _0x38189b=_0x4d1aee;let _0x266cf8={};const _0x32c02e={},_0x7191b6={'count':0x0,'rows':[]};_0x32c02e['model']=_['keys'](db[_0x38189b('0xf')][_0x38189b('0x34')]),_0x32c02e[_0x38189b('0x10')]=_[_0x38189b('0x0')](_0x4708db[_0x38189b('0x10')]),_0x32c02e[_0x38189b('0x24')]=_[_0x38189b('0xb')](_0x32c02e[_0x38189b('0x1a')],_0x32c02e[_0x38189b('0x10')]),_0x266cf8[_0x38189b('0x2a')]=_['intersection'](_0x32c02e['model'],qs[_0x38189b('0x31')](_0x4708db[_0x38189b('0x10')][_0x38189b('0x31')])),_0x266cf8[_0x38189b('0x2a')]=_0x266cf8['attributes'][_0x38189b('0x25')]?_0x266cf8[_0x38189b('0x2a')]:_0x32c02e[_0x38189b('0x1a')];typeof _0x4708db[_0x38189b('0x10')][_0x38189b('0x6')]==='undefined'&&(_0x266cf8[_0x38189b('0xc')]=qs[_0x38189b('0xc')](_0x4708db[_0x38189b('0x10')][_0x38189b('0xc')]),_0x266cf8[_0x38189b('0x11')]=qs[_0x38189b('0x11')](_0x4708db[_0x38189b('0x10')][_0x38189b('0x11')]));_0x266cf8[_0x38189b('0x26')]=qs[_0x38189b('0x5')](_0x4708db[_0x38189b('0x10')][_0x38189b('0x5')]),_0x266cf8[_0x38189b('0x14')]=qs[_0x38189b('0x24')](_[_0x38189b('0x9')](_0x4708db[_0x38189b('0x10')],_0x32c02e[_0x38189b('0x24')]));_0x4708db['query'][_0x38189b('0x28')]&&(_0x266cf8['where']=_['merge'](_0x266cf8[_0x38189b('0x14')],{[Op['or']]:_[_0x38189b('0x3')](_0x266cf8[_0x38189b('0x2a')],function(_0x482b31){const _0x464e79=_0x38189b,_0x1413ec={};return _0x1413ec[_0x482b31]={[Op['like']]:'%'+_0x4708db['query'][_0x464e79('0x28')]+'%'},_0x1413ec;})}));_0x266cf8=_['merge']({},_0x266cf8,_0x4708db['options']);const _0x17ce02={'where':_0x266cf8[_0x38189b('0x14')]};return db[_0x38189b('0xf')][_0x38189b('0x2f')](_0x17ce02)['then'](function(_0x1066b1){const _0x16d681=_0x38189b;return _0x7191b6[_0x16d681('0x2f')]=_0x1066b1,_0x4708db['query'][_0x16d681('0x8')]&&(_0x266cf8[_0x16d681('0x19')]=[{'all':!![]}]),db[_0x16d681('0xf')]['findAll'](_0x266cf8);})['then'](function(_0x183505){const _0x2bec0b=_0x38189b;return _0x7191b6[_0x2bec0b('0x16')]=_0x183505,_0x7191b6;})[_0x38189b('0x2b')](respondWithFilteredResult(_0x58cabc,_0x266cf8,_0x38189b('0x13')))['catch'](handleError(_0x58cabc,null,_0x38189b('0x13')));}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 9dd2f77..b18ecfe 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.events.js +++ b/server/api/voiceQueueReport/voiceQueueReport.events.js @@ -1 +1 @@ -const a761_0x4f95=['update','events','../../mysqldb','VoiceQueueReport','remove','undefined','emit','setMaxListeners'];(function(_0xc0a317,_0x4f9515){const _0x1965bf=function(_0x38fcaa){while(--_0x38fcaa){_0xc0a317['push'](_0xc0a317['shift']());}};_0x1965bf(++_0x4f9515);}(a761_0x4f95,0x103));const a761_0x1965=function(_0xc0a317,_0x4f9515){_0xc0a317=_0xc0a317-0x0;let _0x1965bf=a761_0x4f95[_0xc0a317];return _0x1965bf;};const _0x5b80f5=a761_0x1965;'use strict';const EventEmitter=require(_0x5b80f5('0x6')),VoiceQueueReport=require(_0x5b80f5('0x7'))['db'][_0x5b80f5('0x0')],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x5b80f5('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':_0x5b80f5('0x5'),'afterDestroy':_0x5b80f5('0x1')};function emitEvent(_0x38fcaa){return function(_0x4f2a1c){const _0x220b4f=a761_0x1965;VoiceQueueReportEvents[_0x220b4f('0x3')](_0x38fcaa+':'+_0x4f2a1c['id'],_0x4f2a1c),VoiceQueueReportEvents[_0x220b4f('0x3')](_0x38fcaa,_0x4f2a1c);};}for(const e in events){if(typeof events[e]!==_0x5b80f5('0x2')){const event=events[e];VoiceQueueReport['addHook'](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents; \ No newline at end of file +const a761_0x51a5=['undefined','exports','remove','../../mysqldb','addHook','save','emit','update'];(function(_0x306a6f,_0x51a5c2){const _0x3b9184=function(_0x418752){while(--_0x418752){_0x306a6f['push'](_0x306a6f['shift']());}};_0x3b9184(++_0x51a5c2);}(a761_0x51a5,0xc5));const a761_0x3b91=function(_0x306a6f,_0x51a5c2){_0x306a6f=_0x306a6f-0x0;let _0x3b9184=a761_0x51a5[_0x306a6f];return _0x3b9184;};const _0x24efa5=a761_0x3b91;'use strict';const EventEmitter=require('events'),VoiceQueueReport=require(_0x24efa5('0x6'))['db']['VoiceQueueReport'],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x24efa5('0x0'),'afterUpdate':_0x24efa5('0x2'),'afterDestroy':_0x24efa5('0x5')};function emitEvent(_0x418752){return function(_0x438b63){const _0x4e3984=a761_0x3b91;VoiceQueueReportEvents[_0x4e3984('0x1')](_0x418752+':'+_0x438b63['id'],_0x438b63),VoiceQueueReportEvents[_0x4e3984('0x1')](_0x418752,_0x438b63);};}for(const e in events){if(typeof events[e]!==_0x24efa5('0x3')){const event=events[e];VoiceQueueReport[_0x24efa5('0x7')](e,emitEvent(event));}}module[_0x24efa5('0x4')]=VoiceQueueReportEvents; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.model.js b/server/api/voiceQueueReport/voiceQueueReport.model.js index c98f3d3..f2a8fcf 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.model.js +++ b/server/api/voiceQueueReport/voiceQueueReport.model.js @@ -1 +1 @@ -const a762_0x414e=['calleridnum','./voiceQueueReport.attributes','define'];(function(_0x3d2da0,_0x414eb9){const _0x5c4354=function(_0x5f26fc){while(--_0x5f26fc){_0x3d2da0['push'](_0x3d2da0['shift']());}};_0x5c4354(++_0x414eb9);}(a762_0x414e,0xcd));const a762_0x5c43=function(_0x3d2da0,_0x414eb9){_0x3d2da0=_0x3d2da0-0x0;let _0x5c4354=a762_0x414e[_0x3d2da0];return _0x5c4354;};const _0x3051ff=a762_0x5c43;'use strict';const attributes=require(_0x3051ff('0x0'));module['exports']=function(_0x5f26fc){const _0x2632a4=_0x3051ff,_0xf3b573=_0x5f26fc[_0x2632a4('0x1')]('VoiceQueueReport',attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':['uniqueid']},{'fields':[_0x2632a4('0x2')]}],'timestamps':!![]});return _0xf3b573;}; \ No newline at end of file +const a762_0xa23b=['define','VoiceQueueReport','./voiceQueueReport.attributes','calleridnum','exports','uniqueid','report_queue'];(function(_0x58e32f,_0xa23bf8){const _0x552a6b=function(_0x3daca3){while(--_0x3daca3){_0x58e32f['push'](_0x58e32f['shift']());}};_0x552a6b(++_0xa23bf8);}(a762_0xa23b,0x195));const a762_0x552a=function(_0x58e32f,_0xa23bf8){_0x58e32f=_0x58e32f-0x0;let _0x552a6b=a762_0xa23b[_0x58e32f];return _0x552a6b;};const _0x438fdd=a762_0x552a;'use strict';const attributes=require(_0x438fdd('0x3'));module[_0x438fdd('0x5')]=function(_0x3daca3){const _0x35859b=_0x438fdd,_0x4c32aa=_0x3daca3[_0x35859b('0x1')](_0x35859b('0x2'),attributes,{'tableName':_0x35859b('0x0'),'paranoid':![],'indexes':[{'fields':[_0x35859b('0x6')]},{'fields':[_0x35859b('0x4')]}],'timestamps':!![]});return _0x4c32aa;}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.rpc.js b/server/api/voiceQueueReport/voiceQueueReport.rpc.js index f06c8e8..8c86e7e 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.rpc.js +++ b/server/api/voiceQueueReport/voiceQueueReport.rpc.js @@ -1 +1 @@ -const a763_0x48e2=['debug','map','then','where','options','error','UpdateVoiceQueueReport','../../mysqldb','VoiceQueueReport','../../config/logger','body','include','stringify','../../rediscache','raw','message','catch','GetVoiceQueueReport','CreateVoiceQueueReport','create','register','attributes','findAll','rpc','info','model'];(function(_0x1123da,_0x48e2e2){const _0x4b6eff=function(_0x1c8757){while(--_0x1c8757){_0x1123da['push'](_0x1123da['shift']());}};_0x4b6eff(++_0x48e2e2);}(a763_0x48e2,0x1a2));const a763_0x4b6e=function(_0x1123da,_0x48e2e2){_0x1123da=_0x1123da-0x0;let _0x4b6eff=a763_0x48e2[_0x1123da];return _0x4b6eff;};const _0x5751b5=a763_0x4b6e;'use strict';const _=require('lodash'),db=require(_0x5751b5('0x5'))['db'],logger=require(_0x5751b5('0x7'))(_0x5751b5('0x15')),{getSocket}=require(_0x5751b5('0xb')),socket=getSocket();require('./voiceQueueReport.socket')[_0x5751b5('0x12')](socket),exports[_0x5751b5('0xf')]=function(_0x1c8757){const _0x1ee4bb=this;return new Promise(function(_0x2d5726,_0x8e9bf5){const _0x51be40=a763_0x4b6e;return db['VoiceQueueReport'][_0x51be40('0x14')]({'raw':_0x1c8757[_0x51be40('0x2')]?_0x1c8757[_0x51be40('0x2')][_0x51be40('0xc')]===undefined?!![]:![]:!![],'where':_0x1c8757[_0x51be40('0x2')]?_0x1c8757[_0x51be40('0x2')]['where']||null:null,'attributes':_0x1c8757[_0x51be40('0x2')]?_0x1c8757[_0x51be40('0x2')][_0x51be40('0x13')]||null:null,'limit':_0x1c8757[_0x51be40('0x2')]?_0x1c8757['options']['limit']||null:null,'include':_0x1c8757[_0x51be40('0x2')]?_0x1c8757[_0x51be40('0x2')]['include']?_[_0x51be40('0x19')](_0x1c8757[_0x51be40('0x2')]['include'],function(_0x386db){const _0x8c0ae1=_0x51be40;return{'model':db[_0x386db[_0x8c0ae1('0x17')]],'as':_0x386db['as'],'attributes':_0x386db[_0x8c0ae1('0x13')],'include':_0x386db['include']?_['map'](_0x386db[_0x8c0ae1('0x9')],function(_0x57866a){const _0x4777bb=_0x8c0ae1;return{'model':db[_0x57866a['model']],'as':_0x57866a['as'],'attributes':_0x57866a[_0x4777bb('0x13')],'include':_0x57866a['include']?_['map'](_0x57866a[_0x4777bb('0x9')],function(_0x3f3de8){const _0x465e98=_0x4777bb;return{'model':db[_0x3f3de8[_0x465e98('0x17')]],'as':_0x3f3de8['as'],'attributes':_0x3f3de8[_0x465e98('0x13')]};}):[]};}):[]};}):[]:[]})[_0x51be40('0x0')](function(_0x193b3c){const _0x4c48cf=_0x51be40;logger[_0x4c48cf('0x16')](_0x4c48cf('0xf'),_0x1c8757),logger[_0x4c48cf('0x18')](_0x4c48cf('0xf'),_0x1c8757,JSON[_0x4c48cf('0xa')](_0x193b3c)),_0x2d5726(_0x193b3c);})[_0x51be40('0xe')](function(_0x262308){const _0x21a352=_0x51be40;logger['error']('GetVoiceQueueReport',_0x262308[_0x21a352('0xd')],_0x1c8757),_0x8e9bf5(_0x1ee4bb[_0x21a352('0x3')](0x1f4,_0x262308[_0x21a352('0xd')]));});});},exports[_0x5751b5('0x10')]=function(_0x5d01f0){const _0x53ef3d=this;return new Promise(function(_0x1414b8,_0x45c655){const _0x46e40c=a763_0x4b6e;return db[_0x46e40c('0x6')][_0x46e40c('0x11')](_0x5d01f0['body'],{'raw':_0x5d01f0[_0x46e40c('0x2')]?_0x5d01f0[_0x46e40c('0x2')][_0x46e40c('0xc')]===undefined?!![]:![]:!![]})[_0x46e40c('0x0')](function(_0x10777d){const _0x24fb35=_0x46e40c;logger['info'](_0x24fb35('0x10'),_0x5d01f0),logger[_0x24fb35('0x18')](_0x24fb35('0x10'),_0x5d01f0,JSON[_0x24fb35('0xa')](_0x10777d)),_0x1414b8(_0x10777d);})['catch'](function(_0x4ac5e2){const _0x444ace=_0x46e40c;logger[_0x444ace('0x3')](_0x444ace('0x10'),_0x4ac5e2[_0x444ace('0xd')],_0x5d01f0),_0x45c655(_0x53ef3d[_0x444ace('0x3')](0x1f4,_0x4ac5e2[_0x444ace('0xd')]));});});},exports[_0x5751b5('0x4')]=function(_0x3f3c91){const _0xac7db2=this;return new Promise(function(_0x14da8f,_0x5bc565){const _0xd24c92=a763_0x4b6e;return db[_0xd24c92('0x6')]['update'](_0x3f3c91[_0xd24c92('0x8')],{'raw':_0x3f3c91[_0xd24c92('0x2')]?_0x3f3c91['options'][_0xd24c92('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f3c91['options']?_0x3f3c91[_0xd24c92('0x2')][_0xd24c92('0x1')]||null:null,'attributes':_0x3f3c91[_0xd24c92('0x2')]?_0x3f3c91['options']['attributes']||null:null,'limit':_0x3f3c91['options']?_0x3f3c91['options']['limit']||null:null})[_0xd24c92('0x0')](function(_0x56c499){const _0x166b7a=_0xd24c92;logger[_0x166b7a('0x16')](_0x166b7a('0x4'),_0x3f3c91),logger[_0x166b7a('0x18')](_0x166b7a('0x4'),_0x3f3c91,JSON[_0x166b7a('0xa')](_0x56c499)),_0x14da8f(_0x56c499);})['catch'](function(_0xcdbb97){const _0x40b6fc=_0xd24c92;logger[_0x40b6fc('0x3')](_0x40b6fc('0x4'),_0xcdbb97[_0x40b6fc('0xd')],_0x3f3c91),_0x5bc565(_0xac7db2[_0x40b6fc('0x3')](0x1f4,_0xcdbb97[_0x40b6fc('0xd')]));});});}; \ No newline at end of file +const a763_0x298a=['then','include','GetVoiceQueueReport','create','error','body','UpdateVoiceQueueReport','rpc','model','raw','findAll','VoiceQueueReport','limit','register','where','options','debug','catch','message','../../config/logger','CreateVoiceQueueReport','map','../../mysqldb','attributes','stringify','info'];(function(_0x1134fe,_0x298ac9){const _0x3967f2=function(_0x155a21){while(--_0x155a21){_0x1134fe['push'](_0x1134fe['shift']());}};_0x3967f2(++_0x298ac9);}(a763_0x298a,0x7d));const a763_0x3967=function(_0x1134fe,_0x298ac9){_0x1134fe=_0x1134fe-0x0;let _0x3967f2=a763_0x298a[_0x1134fe];return _0x3967f2;};const _0x183377=a763_0x3967;'use strict';const _=require('lodash'),db=require(_0x183377('0x1'))['db'],logger=require(_0x183377('0x18'))(_0x183377('0xc')),{getSocket}=require('../../rediscache'),socket=getSocket();require('./voiceQueueReport.socket')[_0x183377('0x12')](socket),exports[_0x183377('0x7')]=function(_0x155a21){const _0x1b6780=this;return new Promise(function(_0x54ba72,_0x356432){const _0x196581=a763_0x3967;return db[_0x196581('0x10')][_0x196581('0xf')]({'raw':_0x155a21['options']?_0x155a21[_0x196581('0x14')][_0x196581('0xe')]===undefined?!![]:![]:!![],'where':_0x155a21[_0x196581('0x14')]?_0x155a21[_0x196581('0x14')][_0x196581('0x13')]||null:null,'attributes':_0x155a21['options']?_0x155a21['options'][_0x196581('0x2')]||null:null,'limit':_0x155a21[_0x196581('0x14')]?_0x155a21[_0x196581('0x14')][_0x196581('0x11')]||null:null,'include':_0x155a21[_0x196581('0x14')]?_0x155a21[_0x196581('0x14')]['include']?_[_0x196581('0x0')](_0x155a21[_0x196581('0x14')][_0x196581('0x6')],function(_0x4c85c7){const _0x3a08c8=_0x196581;return{'model':db[_0x4c85c7[_0x3a08c8('0xd')]],'as':_0x4c85c7['as'],'attributes':_0x4c85c7[_0x3a08c8('0x2')],'include':_0x4c85c7[_0x3a08c8('0x6')]?_[_0x3a08c8('0x0')](_0x4c85c7[_0x3a08c8('0x6')],function(_0x48c0aa){const _0x3aec2b=_0x3a08c8;return{'model':db[_0x48c0aa[_0x3aec2b('0xd')]],'as':_0x48c0aa['as'],'attributes':_0x48c0aa[_0x3aec2b('0x2')],'include':_0x48c0aa['include']?_[_0x3aec2b('0x0')](_0x48c0aa[_0x3aec2b('0x6')],function(_0x2e26b1){return{'model':db[_0x2e26b1['model']],'as':_0x2e26b1['as'],'attributes':_0x2e26b1['attributes']};}):[]};}):[]};}):[]:[]})[_0x196581('0x5')](function(_0x2d236d){const _0xbb19aa=_0x196581;logger['info'](_0xbb19aa('0x7'),_0x155a21),logger[_0xbb19aa('0x15')]('GetVoiceQueueReport',_0x155a21,JSON['stringify'](_0x2d236d)),_0x54ba72(_0x2d236d);})['catch'](function(_0x2738c8){const _0x1cc772=_0x196581;logger[_0x1cc772('0x9')](_0x1cc772('0x7'),_0x2738c8[_0x1cc772('0x17')],_0x155a21),_0x356432(_0x1b6780[_0x1cc772('0x9')](0x1f4,_0x2738c8[_0x1cc772('0x17')]));});});},exports[_0x183377('0x19')]=function(_0x55270a){const _0x56b7b9=this;return new Promise(function(_0xa54241,_0x199d4b){const _0x322002=a763_0x3967;return db['VoiceQueueReport'][_0x322002('0x8')](_0x55270a[_0x322002('0xa')],{'raw':_0x55270a[_0x322002('0x14')]?_0x55270a[_0x322002('0x14')]['raw']===undefined?!![]:![]:!![]})[_0x322002('0x5')](function(_0x475dcb){const _0x35e297=_0x322002;logger[_0x35e297('0x4')]('CreateVoiceQueueReport',_0x55270a),logger[_0x35e297('0x15')]('CreateVoiceQueueReport',_0x55270a,JSON[_0x35e297('0x3')](_0x475dcb)),_0xa54241(_0x475dcb);})['catch'](function(_0x1802d8){const _0x2df6ca=_0x322002;logger['error']('CreateVoiceQueueReport',_0x1802d8[_0x2df6ca('0x17')],_0x55270a),_0x199d4b(_0x56b7b9[_0x2df6ca('0x9')](0x1f4,_0x1802d8[_0x2df6ca('0x17')]));});});},exports[_0x183377('0xb')]=function(_0x592eda){const _0x4b27ea=this;return new Promise(function(_0x4c8b85,_0x38eb1e){const _0x45ac09=a763_0x3967;return db[_0x45ac09('0x10')]['update'](_0x592eda[_0x45ac09('0xa')],{'raw':_0x592eda['options']?_0x592eda[_0x45ac09('0x14')][_0x45ac09('0xe')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x592eda[_0x45ac09('0x14')]?_0x592eda['options']['where']||null:null,'attributes':_0x592eda['options']?_0x592eda[_0x45ac09('0x14')][_0x45ac09('0x2')]||null:null,'limit':_0x592eda['options']?_0x592eda[_0x45ac09('0x14')][_0x45ac09('0x11')]||null:null})[_0x45ac09('0x5')](function(_0x4e2b60){const _0x3e77d6=_0x45ac09;logger[_0x3e77d6('0x4')]('UpdateVoiceQueueReport',_0x592eda),logger[_0x3e77d6('0x15')](_0x3e77d6('0xb'),_0x592eda,JSON['stringify'](_0x4e2b60)),_0x4c8b85(_0x4e2b60);})[_0x45ac09('0x16')](function(_0x4acc34){const _0x537b07=_0x45ac09;logger[_0x537b07('0x9')](_0x537b07('0xb'),_0x4acc34['message'],_0x592eda),_0x38eb1e(_0x4b27ea[_0x537b07('0x9')](0x1f4,_0x4acc34['message']));});});}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.socket.js b/server/api/voiceQueueReport/voiceQueueReport.socket.js index 70834a3..37d9e3d 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.socket.js +++ b/server/api/voiceQueueReport/voiceQueueReport.socket.js @@ -1 +1 @@ -const a764_0x52e2=['emit','length','save','remove','register','voiceQueueReport:'];(function(_0x38b0e9,_0x52e25d){const _0x588f82=function(_0x4907f8){while(--_0x4907f8){_0x38b0e9['push'](_0x38b0e9['shift']());}};_0x588f82(++_0x52e25d);}(a764_0x52e2,0xea));const a764_0x588f=function(_0x38b0e9,_0x52e25d){_0x38b0e9=_0x38b0e9-0x0;let _0x588f82=a764_0x52e2[_0x38b0e9];return _0x588f82;};const _0x1e7250=a764_0x588f;'use strict';const VoiceQueueReportEvents=require('./voiceQueueReport.events'),events=[_0x1e7250('0x2'),_0x1e7250('0x3'),'update'];function createListener(_0x4907f8,_0x462cf6){return function(_0x4f6c18){const _0x5a650d=a764_0x588f;_0x462cf6[_0x5a650d('0x0')](_0x4907f8,_0x4f6c18);};}exports[_0x1e7250('0x4')]=function(_0x30fa0f){const _0xd84fad=_0x1e7250;for(let _0x548cad=0x0,_0x538e15=events[_0xd84fad('0x1')];_0x548cad<_0x538e15;_0x548cad++){const _0x43e88e=events[_0x548cad],_0x10545e=createListener(_0xd84fad('0x5')+_0x43e88e,_0x30fa0f);VoiceQueueReportEvents['on'](_0x43e88e,_0x10545e);}}; \ No newline at end of file +const a764_0x5e3f=['register','save','update','./voiceQueueReport.events','emit','length'];(function(_0x25e96f,_0x5e3fff){const _0x105824=function(_0x2464fe){while(--_0x2464fe){_0x25e96f['push'](_0x25e96f['shift']());}};_0x105824(++_0x5e3fff);}(a764_0x5e3f,0x1e3));const a764_0x1058=function(_0x25e96f,_0x5e3fff){_0x25e96f=_0x25e96f-0x0;let _0x105824=a764_0x5e3f[_0x25e96f];return _0x105824;};const _0x4cff58=a764_0x1058;'use strict';const VoiceQueueReportEvents=require(_0x4cff58('0x0')),events=[_0x4cff58('0x4'),'remove',_0x4cff58('0x5')];function createListener(_0x2464fe,_0x5494fe){return function(_0x365034){const _0x2d66d6=a764_0x1058;_0x5494fe[_0x2d66d6('0x1')](_0x2464fe,_0x365034);};}exports[_0x4cff58('0x3')]=function(_0xb3ac3a){const _0x364e4c=_0x4cff58;for(let _0x2d80d0=0x0,_0x23bdfa=events[_0x364e4c('0x2')];_0x2d80d0<_0x23bdfa;_0x2d80d0++){const _0x38c34=events[_0x2d80d0],_0x36a858=createListener('voiceQueueReport:'+_0x38c34,_0xb3ac3a);VoiceQueueReportEvents['on'](_0x38c34,_0x36a858);}}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/index.js b/server/api/voiceQueuesLog/index.js index c133d8d..9051bb8 100644 --- a/server/api/voiceQueuesLog/index.js +++ b/server/api/voiceQueuesLog/index.js @@ -1 +1 @@ -const a765_0x31ef=['/:id','destroy','put','show','express','get','update','isAuthenticated','Router','index','post','./voiceQueuesLog.controller','exports'];(function(_0x2cea1d,_0x31ef20){const _0x1e8576=function(_0x1f81b0){while(--_0x1f81b0){_0x2cea1d['push'](_0x2cea1d['shift']());}};_0x1e8576(++_0x31ef20);}(a765_0x31ef,0x185));const a765_0x1e85=function(_0x2cea1d,_0x31ef20){_0x2cea1d=_0x2cea1d-0x0;let _0x1e8576=a765_0x31ef[_0x2cea1d];return _0x1e8576;};const _0x47518f=a765_0x1e85;'use strict';const express=require(_0x47518f('0x5')),router=express[_0x47518f('0x9')](),auth=require('../../components/auth/service'),controller=require(_0x47518f('0xc'));router[_0x47518f('0x6')]('/',auth[_0x47518f('0x8')](),controller[_0x47518f('0xa')]),router[_0x47518f('0x6')](_0x47518f('0x1'),auth[_0x47518f('0x8')](),controller[_0x47518f('0x4')]),router[_0x47518f('0xb')]('/',auth['isAuthenticated'](),controller['create']),router[_0x47518f('0x3')](_0x47518f('0x1'),auth[_0x47518f('0x8')](),controller[_0x47518f('0x7')]),router['delete'](_0x47518f('0x1'),auth['isAuthenticated'](),controller[_0x47518f('0x2')]),module[_0x47518f('0x0')]=router; \ No newline at end of file +const a765_0xec43=['post','exports','express','/:id','put','isAuthenticated','Router','destroy','create','index','./voiceQueuesLog.controller','delete','get'];(function(_0x54a32c,_0xec439b){const _0x2769b3=function(_0xbfb2ff){while(--_0xbfb2ff){_0x54a32c['push'](_0x54a32c['shift']());}};_0x2769b3(++_0xec439b);}(a765_0xec43,0xc4));const a765_0x2769=function(_0x54a32c,_0xec439b){_0x54a32c=_0x54a32c-0x0;let _0x2769b3=a765_0xec43[_0x54a32c];return _0x2769b3;};const _0xdbadb2=a765_0x2769;'use strict';const express=require(_0xdbadb2('0x1')),router=express[_0xdbadb2('0x5')](),auth=require('../../components/auth/service'),controller=require(_0xdbadb2('0x9'));router[_0xdbadb2('0xb')]('/',auth['isAuthenticated'](),controller[_0xdbadb2('0x8')]),router['get']('/:id',auth[_0xdbadb2('0x4')](),controller['show']),router[_0xdbadb2('0xc')]('/',auth[_0xdbadb2('0x4')](),controller[_0xdbadb2('0x7')]),router[_0xdbadb2('0x3')](_0xdbadb2('0x2'),auth[_0xdbadb2('0x4')](),controller['update']),router[_0xdbadb2('0xa')](_0xdbadb2('0x2'),auth[_0xdbadb2('0x4')](),controller[_0xdbadb2('0x6')]),module[_0xdbadb2('0x0')]=router; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js index 4c6916a..8bf8849 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js @@ -1 +1 @@ -const a766_0x2c7e=['moment','YYYY-MM-DD\x20HH:mm:ss','format','sequelize','STRING','DATE'];(function(_0x2a09fb,_0x2c7e95){const _0x29a3aa=function(_0x3f6b8a){while(--_0x3f6b8a){_0x2a09fb['push'](_0x2a09fb['shift']());}};_0x29a3aa(++_0x2c7e95);}(a766_0x2c7e,0xee));const a766_0x29a3=function(_0x2a09fb,_0x2c7e95){_0x2a09fb=_0x2a09fb-0x0;let _0x29a3aa=a766_0x2c7e[_0x2a09fb];return _0x29a3aa;};const _0xb9fc75=a766_0x29a3;'use strict';const Sequelize=require(_0xb9fc75('0x5')),moment=require(_0xb9fc75('0x2'));module['exports']={'time':{'type':Sequelize[_0xb9fc75('0x0')]},'callid':{'type':Sequelize[_0xb9fc75('0x0')],'allowNull':![],'defaultValue':''},'queuename':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'agent':{'type':Sequelize[_0xb9fc75('0x0')],'allowNull':![],'defaultValue':''},'event':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data':{'type':Sequelize[_0xb9fc75('0x0')],'allowNull':![],'defaultValue':''},'data1':{'type':Sequelize[_0xb9fc75('0x0')],'allowNull':![],'defaultValue':''},'data2':{'type':Sequelize[_0xb9fc75('0x0')],'allowNull':![],'defaultValue':''},'data3':{'type':Sequelize[_0xb9fc75('0x0')],'allowNull':![],'defaultValue':''},'data4':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data5':{'type':Sequelize[_0xb9fc75('0x0')],'allowNull':![],'defaultValue':''},'dtm':{'type':Sequelize[_0xb9fc75('0x1')],'allowNull':![],'defaultValue':moment()[_0xb9fc75('0x4')](_0xb9fc75('0x3'))}}; \ No newline at end of file +const a766_0x2ba5=['DATE','YYYY-MM-DD\x20HH:mm:ss','sequelize','exports','moment','STRING'];(function(_0x1ddcc8,_0x2ba582){const _0xca9e57=function(_0x42b773){while(--_0x42b773){_0x1ddcc8['push'](_0x1ddcc8['shift']());}};_0xca9e57(++_0x2ba582);}(a766_0x2ba5,0x129));const a766_0xca9e=function(_0x1ddcc8,_0x2ba582){_0x1ddcc8=_0x1ddcc8-0x0;let _0xca9e57=a766_0x2ba5[_0x1ddcc8];return _0xca9e57;};const _0x4529e6=a766_0xca9e;'use strict';const Sequelize=require(_0x4529e6('0x5')),moment=require(_0x4529e6('0x1'));module[_0x4529e6('0x0')]={'time':{'type':Sequelize['STRING']},'callid':{'type':Sequelize[_0x4529e6('0x2')],'allowNull':![],'defaultValue':''},'queuename':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'agent':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'event':{'type':Sequelize[_0x4529e6('0x2')],'allowNull':![],'defaultValue':''},'data':{'type':Sequelize[_0x4529e6('0x2')],'allowNull':![],'defaultValue':''},'data1':{'type':Sequelize[_0x4529e6('0x2')],'allowNull':![],'defaultValue':''},'data2':{'type':Sequelize[_0x4529e6('0x2')],'allowNull':![],'defaultValue':''},'data3':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data4':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data5':{'type':Sequelize[_0x4529e6('0x2')],'allowNull':![],'defaultValue':''},'dtm':{'type':Sequelize[_0x4529e6('0x3')],'allowNull':![],'defaultValue':moment()['format'](_0x4529e6('0x4'))}}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js index 6551665..23f2710 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js @@ -1 +1 @@ -const a767_0x1377=['then','VoiceQueuesLog','params','filter','fields','attributes','body','options','end','includeAll','limit','lodash','send','name','stack','index','../../config/logger','update','sort','findAll','pick','json','query','merge','VIRTUAL','map','status','include','model','destroy','intersection','length','findOne','sendStatus','fieldName','show','api','order','nolimit','like','type','filters','count','Content-Range','error','undefined','../../components/parsers/qs','catch','sequelize','offset','where','rawAttributes'];(function(_0x2ce3b0,_0x137705){const _0x4b1c45=function(_0x4b1e53){while(--_0x4b1e53){_0x2ce3b0['push'](_0x2ce3b0['shift']());}};_0x4b1c45(++_0x137705);}(a767_0x1377,0x131));const a767_0x4b1c=function(_0x2ce3b0,_0x137705){_0x2ce3b0=_0x2ce3b0-0x0;let _0x4b1c45=a767_0x1377[_0x2ce3b0];return _0x4b1c45;};const _0x464b1a=a767_0x4b1c;'use strict';const _=require(_0x464b1a('0x12')),qs=require(_0x464b1a('0x1')),logger=require(_0x464b1a('0x17'))(_0x464b1a('0x2b')),db=require('../../mysqldb')['db'],{Op}=require(_0x464b1a('0x3'));function respondWithResult(_0x4b1e53,_0x3b300d){return _0x3b300d=_0x3b300d||0xc8,function(_0x5c818a){const _0x3b4078=a767_0x4b1c;if(_0x5c818a)return _0x4b1e53[_0x3b4078('0x21')](_0x3b300d)[_0x3b4078('0x1c')](_0x5c818a);};}function respondWithFilteredResult(_0x22ad1d,_0x1708cb){return function(_0x359d8e){const _0x1ded7d=a767_0x4b1c;if(_0x359d8e){const _0x38ca62=_0x359d8e[_0x1ded7d('0x31')],_0x59c9be=_0x1708cb[_0x1ded7d('0x4')];let _0x2d1faa=_0x1708cb[_0x1ded7d('0x4')]+_0x1708cb[_0x1ded7d('0x11')],_0x185826;return _0x2d1faa>=_0x38ca62?(_0x2d1faa=_0x38ca62,_0x185826=0xc8):_0x185826=0xce,_0x22ad1d[_0x1ded7d('0x21')](_0x185826),_0x22ad1d['set'](_0x1ded7d('0x32'),_0x59c9be+'-'+_0x2d1faa+'/'+_0x38ca62)['json'](_0x359d8e);}return null;};}function saveUpdates(_0x2007b7){return function(_0x37106c){const _0x331b2e=a767_0x4b1c;if(_0x37106c)return _0x37106c['update'](_0x2007b7)[_0x331b2e('0x7')](function(_0x1a1110){return _0x1a1110;});return null;};}function removeEntity(_0x122d02){return function(_0x206ec3){const _0xa04b95=a767_0x4b1c;if(_0x206ec3)return _0x206ec3[_0xa04b95('0x24')]()['then'](function(){const _0x28efee=_0xa04b95;_0x122d02['status'](0xcc)[_0x28efee('0xf')]();});};}function handleEntityNotFound(_0xac1e93){return function(_0x3a0bcd){const _0x2b55da=a767_0x4b1c;return!_0x3a0bcd&&_0xac1e93[_0x2b55da('0x28')](0x194),_0x3a0bcd;};}function handleError(_0x31706a,_0x261a0a){return _0x261a0a=_0x261a0a||0x1f4,function(_0x3884c4){const _0x37582b=a767_0x4b1c;logger[_0x37582b('0x33')](_0x3884c4[_0x37582b('0x15')]),_0x3884c4[_0x37582b('0x14')]&&delete _0x3884c4['name'],_0x31706a['status'](_0x261a0a)[_0x37582b('0x13')](_0x3884c4);};}exports[_0x464b1a('0x16')]=function(_0x4422d5,_0xc56da6){const _0x378746=_0x464b1a;let _0x3a648b={};const _0x4532a7={},_0xff31a2={'count':0x0,'rows':[]},_0x586f3a=_[_0x378746('0x20')](db['VoiceQueuesLog'][_0x378746('0x6')],function(_0x26b288){const _0x2b283d=_0x378746;return{'name':_0x26b288[_0x2b283d('0x29')],'type':_0x26b288[_0x2b283d('0x2f')]['key']};});_0x4532a7['model']=_['map'](_0x586f3a,'name'),_0x4532a7[_0x378746('0x1d')]=_['keys'](_0x4422d5[_0x378746('0x1d')]),_0x4532a7[_0x378746('0x30')]=_[_0x378746('0x25')](_0x4532a7['model'],_0x4532a7[_0x378746('0x1d')]),_0x3a648b[_0x378746('0xc')]=_['intersection'](_0x4532a7['model'],qs[_0x378746('0xb')](_0x4422d5[_0x378746('0x1d')]['fields'])),_0x3a648b[_0x378746('0xc')]=_0x3a648b['attributes'][_0x378746('0x26')]?_0x3a648b[_0x378746('0xc')]:_0x4532a7['model'];typeof _0x4422d5[_0x378746('0x1d')][_0x378746('0x2d')]===_0x378746('0x0')&&(_0x3a648b[_0x378746('0x11')]=qs[_0x378746('0x11')](_0x4422d5[_0x378746('0x1d')][_0x378746('0x11')]),_0x3a648b[_0x378746('0x4')]=qs[_0x378746('0x4')](_0x4422d5[_0x378746('0x1d')][_0x378746('0x4')]));_0x3a648b[_0x378746('0x2c')]=qs[_0x378746('0x19')](_0x4422d5[_0x378746('0x1d')]['sort']),_0x3a648b[_0x378746('0x5')]=qs[_0x378746('0x30')](_[_0x378746('0x1b')](_0x4422d5[_0x378746('0x1d')],_0x4532a7[_0x378746('0x30')]),_0x586f3a);_0x4422d5[_0x378746('0x1d')]['filter']&&(_0x3a648b[_0x378746('0x5')]=_[_0x378746('0x1e')](_0x3a648b[_0x378746('0x5')],{[Op['or']]:_[_0x378746('0x20')](_0x586f3a,function(_0x5e8dbd){const _0x4d19c0=_0x378746;if(_0x5e8dbd[_0x4d19c0('0x2f')]!==_0x4d19c0('0x1f')){const _0x50af04={};return _0x50af04[_0x5e8dbd[_0x4d19c0('0x14')]]={[Op[_0x4d19c0('0x2e')]]:'%'+_0x4422d5['query'][_0x4d19c0('0xa')]+'%'},_0x50af04;}})}));_0x3a648b=_[_0x378746('0x1e')]({},_0x3a648b,_0x4422d5[_0x378746('0xe')]);const _0x23978c={'where':_0x3a648b[_0x378746('0x5')]};return db[_0x378746('0x8')][_0x378746('0x31')](_0x23978c)[_0x378746('0x7')](function(_0x349ba6){const _0x270388=_0x378746;return _0xff31a2[_0x270388('0x31')]=_0x349ba6,_0x4422d5['query'][_0x270388('0x10')]&&(_0x3a648b[_0x270388('0x22')]=[{'all':!![]}]),db['VoiceQueuesLog'][_0x270388('0x1a')](_0x3a648b);})[_0x378746('0x7')](function(_0x4d507a){return _0xff31a2['rows']=_0x4d507a,_0xff31a2;})['then'](respondWithFilteredResult(_0xc56da6,_0x3a648b))['catch'](handleError(_0xc56da6,null));},exports[_0x464b1a('0x2a')]=function(_0x5d5896,_0x1acc7f){const _0x426e43=_0x464b1a;let _0x1a98ff={'raw':!![],'where':{'id':_0x5d5896[_0x426e43('0x9')]['id']}};const _0x469099={};return _0x469099['model']=_['keys'](db[_0x426e43('0x8')][_0x426e43('0x6')]),_0x469099['query']=_['keys'](_0x5d5896[_0x426e43('0x1d')]),_0x469099[_0x426e43('0x30')]=_[_0x426e43('0x25')](_0x469099['model'],_0x469099['query']),_0x1a98ff[_0x426e43('0xc')]=_['intersection'](_0x469099[_0x426e43('0x23')],qs['fields'](_0x5d5896[_0x426e43('0x1d')][_0x426e43('0xb')])),_0x1a98ff['attributes']=_0x1a98ff[_0x426e43('0xc')][_0x426e43('0x26')]?_0x1a98ff[_0x426e43('0xc')]:_0x469099[_0x426e43('0x23')],_0x5d5896[_0x426e43('0x1d')][_0x426e43('0x10')]&&(_0x1a98ff[_0x426e43('0x22')]=[{'all':!![]}]),_0x1a98ff=_[_0x426e43('0x1e')]({},_0x1a98ff,_0x5d5896['options']),db[_0x426e43('0x8')][_0x426e43('0x27')](_0x1a98ff)['then'](handleEntityNotFound(_0x1acc7f,null))[_0x426e43('0x7')](respondWithResult(_0x1acc7f,null))[_0x426e43('0x2')](handleError(_0x1acc7f,null));},exports['create']=function(_0x171419,_0x4be3f5){const _0x59dc8e=_0x464b1a;return db[_0x59dc8e('0x8')]['create'](_0x171419[_0x59dc8e('0xd')],{})[_0x59dc8e('0x7')](respondWithResult(_0x4be3f5,0xc9))[_0x59dc8e('0x2')](handleError(_0x4be3f5,null));},exports[_0x464b1a('0x18')]=function(_0x361b8a,_0x42fd08){const _0x42a291=_0x464b1a;return _0x361b8a[_0x42a291('0xd')]['id']&&delete _0x361b8a[_0x42a291('0xd')]['id'],db['VoiceQueuesLog'][_0x42a291('0x27')]({'where':{'id':_0x361b8a[_0x42a291('0x9')]['id']}})[_0x42a291('0x7')](handleEntityNotFound(_0x42fd08,null))[_0x42a291('0x7')](saveUpdates(_0x361b8a[_0x42a291('0xd')],null))[_0x42a291('0x7')](respondWithResult(_0x42fd08,null))[_0x42a291('0x2')](handleError(_0x42fd08,null));},exports['destroy']=function(_0xfdab58,_0xd9a978){const _0x54fe5=_0x464b1a;return db[_0x54fe5('0x8')][_0x54fe5('0x27')]({'where':{'id':_0xfdab58[_0x54fe5('0x9')]['id']}})['then'](handleEntityNotFound(_0xd9a978,null))[_0x54fe5('0x7')](removeEntity(_0xd9a978,null))['catch'](handleError(_0xd9a978,null));}; \ No newline at end of file +const a767_0x230e=['Content-Range','map','include','end','where','show','merge','status','create','query','sort','fields','type','name','destroy','filter','stack','offset','json','includeAll','findOne','VoiceQueuesLog','update','attributes','length','options','intersection','nolimit','limit','params','filters','send','order','index','rawAttributes','fieldName','catch','count','body','model','lodash','then','keys','sendStatus','like','key'];(function(_0x9fb4b,_0x230e65){const _0x40e3fc=function(_0x2bb640){while(--_0x2bb640){_0x9fb4b['push'](_0x9fb4b['shift']());}};_0x40e3fc(++_0x230e65);}(a767_0x230e,0x171));const a767_0x40e3=function(_0x9fb4b,_0x230e65){_0x9fb4b=_0x9fb4b-0x0;let _0x40e3fc=a767_0x230e[_0x9fb4b];return _0x40e3fc;};const _0x137dcc=a767_0x40e3;'use strict';const _=require(_0x137dcc('0x27')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x2bb640,_0x22b465){return _0x22b465=_0x22b465||0xc8,function(_0xb3750e){const _0x29216=a767_0x40e3;if(_0xb3750e)return _0x2bb640[_0x29216('0x6')](_0x22b465)[_0x29216('0x11')](_0xb3750e);};}function respondWithFilteredResult(_0x272aa9,_0x48f3dc){return function(_0x44f661){const _0x5d5e71=a767_0x40e3;if(_0x44f661){const _0x30617f=_0x44f661[_0x5d5e71('0x24')],_0x155750=_0x48f3dc[_0x5d5e71('0x10')];let _0xee5119=_0x48f3dc[_0x5d5e71('0x10')]+_0x48f3dc[_0x5d5e71('0x1b')],_0x2d9341;return _0xee5119>=_0x30617f?(_0xee5119=_0x30617f,_0x2d9341=0xc8):_0x2d9341=0xce,_0x272aa9['status'](_0x2d9341),_0x272aa9['set'](_0x5d5e71('0x2d'),_0x155750+'-'+_0xee5119+'/'+_0x30617f)[_0x5d5e71('0x11')](_0x44f661);}return null;};}function saveUpdates(_0x122478){return function(_0x10add9){const _0x51f57e=a767_0x40e3;if(_0x10add9)return _0x10add9[_0x51f57e('0x15')](_0x122478)[_0x51f57e('0x28')](function(_0x512d82){return _0x512d82;});return null;};}function removeEntity(_0x12bea6){return function(_0xd4c850){const _0x15dc7b=a767_0x40e3;if(_0xd4c850)return _0xd4c850[_0x15dc7b('0xd')]()[_0x15dc7b('0x28')](function(){const _0x5d09b7=_0x15dc7b;_0x12bea6[_0x5d09b7('0x6')](0xcc)[_0x5d09b7('0x2')]();});};}function handleEntityNotFound(_0x3c1b59){return function(_0x577ef4){const _0xeaa753=a767_0x40e3;return!_0x577ef4&&_0x3c1b59[_0xeaa753('0x2a')](0x194),_0x577ef4;};}function handleError(_0xd0bd88,_0x11e024){return _0x11e024=_0x11e024||0x1f4,function(_0x5cea78){const _0xed4961=a767_0x40e3;logger['error'](_0x5cea78[_0xed4961('0xf')]),_0x5cea78[_0xed4961('0xc')]&&delete _0x5cea78[_0xed4961('0xc')],_0xd0bd88['status'](_0x11e024)[_0xed4961('0x1e')](_0x5cea78);};}exports[_0x137dcc('0x20')]=function(_0x12ce11,_0x5a5670){const _0x9e17fa=_0x137dcc;let _0x413d2c={};const _0x3eefeb={},_0x25d538={'count':0x0,'rows':[]},_0x147809=_[_0x9e17fa('0x0')](db['VoiceQueuesLog'][_0x9e17fa('0x21')],function(_0x108b9d){const _0xaf0c9e=_0x9e17fa;return{'name':_0x108b9d[_0xaf0c9e('0x22')],'type':_0x108b9d[_0xaf0c9e('0xb')][_0xaf0c9e('0x2c')]};});_0x3eefeb[_0x9e17fa('0x26')]=_[_0x9e17fa('0x0')](_0x147809,_0x9e17fa('0xc')),_0x3eefeb[_0x9e17fa('0x8')]=_[_0x9e17fa('0x29')](_0x12ce11['query']),_0x3eefeb[_0x9e17fa('0x1d')]=_[_0x9e17fa('0x19')](_0x3eefeb[_0x9e17fa('0x26')],_0x3eefeb[_0x9e17fa('0x8')]),_0x413d2c[_0x9e17fa('0x16')]=_['intersection'](_0x3eefeb['model'],qs[_0x9e17fa('0xa')](_0x12ce11[_0x9e17fa('0x8')][_0x9e17fa('0xa')])),_0x413d2c[_0x9e17fa('0x16')]=_0x413d2c[_0x9e17fa('0x16')][_0x9e17fa('0x17')]?_0x413d2c[_0x9e17fa('0x16')]:_0x3eefeb[_0x9e17fa('0x26')];typeof _0x12ce11[_0x9e17fa('0x8')][_0x9e17fa('0x1a')]==='undefined'&&(_0x413d2c[_0x9e17fa('0x1b')]=qs[_0x9e17fa('0x1b')](_0x12ce11[_0x9e17fa('0x8')][_0x9e17fa('0x1b')]),_0x413d2c[_0x9e17fa('0x10')]=qs[_0x9e17fa('0x10')](_0x12ce11[_0x9e17fa('0x8')][_0x9e17fa('0x10')]));_0x413d2c[_0x9e17fa('0x1f')]=qs[_0x9e17fa('0x9')](_0x12ce11[_0x9e17fa('0x8')]['sort']),_0x413d2c[_0x9e17fa('0x3')]=qs['filters'](_['pick'](_0x12ce11[_0x9e17fa('0x8')],_0x3eefeb[_0x9e17fa('0x1d')]),_0x147809);_0x12ce11[_0x9e17fa('0x8')][_0x9e17fa('0xe')]&&(_0x413d2c[_0x9e17fa('0x3')]=_[_0x9e17fa('0x5')](_0x413d2c[_0x9e17fa('0x3')],{[Op['or']]:_[_0x9e17fa('0x0')](_0x147809,function(_0x605c40){const _0x2041f0=_0x9e17fa;if(_0x605c40[_0x2041f0('0xb')]!=='VIRTUAL'){const _0x58d57e={};return _0x58d57e[_0x605c40[_0x2041f0('0xc')]]={[Op[_0x2041f0('0x2b')]]:'%'+_0x12ce11[_0x2041f0('0x8')][_0x2041f0('0xe')]+'%'},_0x58d57e;}})}));_0x413d2c=_[_0x9e17fa('0x5')]({},_0x413d2c,_0x12ce11['options']);const _0x2130ee={'where':_0x413d2c['where']};return db[_0x9e17fa('0x14')][_0x9e17fa('0x24')](_0x2130ee)[_0x9e17fa('0x28')](function(_0x405f73){const _0x5af190=_0x9e17fa;return _0x25d538[_0x5af190('0x24')]=_0x405f73,_0x12ce11[_0x5af190('0x8')][_0x5af190('0x12')]&&(_0x413d2c[_0x5af190('0x1')]=[{'all':!![]}]),db[_0x5af190('0x14')]['findAll'](_0x413d2c);})[_0x9e17fa('0x28')](function(_0x15b25a){return _0x25d538['rows']=_0x15b25a,_0x25d538;})[_0x9e17fa('0x28')](respondWithFilteredResult(_0x5a5670,_0x413d2c))['catch'](handleError(_0x5a5670,null));},exports[_0x137dcc('0x4')]=function(_0x18ab1e,_0x2f2ed6){const _0x50b5f9=_0x137dcc;let _0x487c97={'raw':!![],'where':{'id':_0x18ab1e[_0x50b5f9('0x1c')]['id']}};const _0x58d6ec={};return _0x58d6ec[_0x50b5f9('0x26')]=_[_0x50b5f9('0x29')](db[_0x50b5f9('0x14')][_0x50b5f9('0x21')]),_0x58d6ec[_0x50b5f9('0x8')]=_[_0x50b5f9('0x29')](_0x18ab1e[_0x50b5f9('0x8')]),_0x58d6ec['filters']=_[_0x50b5f9('0x19')](_0x58d6ec[_0x50b5f9('0x26')],_0x58d6ec[_0x50b5f9('0x8')]),_0x487c97[_0x50b5f9('0x16')]=_[_0x50b5f9('0x19')](_0x58d6ec['model'],qs['fields'](_0x18ab1e[_0x50b5f9('0x8')][_0x50b5f9('0xa')])),_0x487c97[_0x50b5f9('0x16')]=_0x487c97['attributes'][_0x50b5f9('0x17')]?_0x487c97[_0x50b5f9('0x16')]:_0x58d6ec[_0x50b5f9('0x26')],_0x18ab1e['query'][_0x50b5f9('0x12')]&&(_0x487c97['include']=[{'all':!![]}]),_0x487c97=_[_0x50b5f9('0x5')]({},_0x487c97,_0x18ab1e[_0x50b5f9('0x18')]),db[_0x50b5f9('0x14')][_0x50b5f9('0x13')](_0x487c97)[_0x50b5f9('0x28')](handleEntityNotFound(_0x2f2ed6,null))['then'](respondWithResult(_0x2f2ed6,null))['catch'](handleError(_0x2f2ed6,null));},exports[_0x137dcc('0x7')]=function(_0x572a03,_0x14dd4b){const _0x13cf74=_0x137dcc;return db[_0x13cf74('0x14')][_0x13cf74('0x7')](_0x572a03[_0x13cf74('0x25')],{})[_0x13cf74('0x28')](respondWithResult(_0x14dd4b,0xc9))[_0x13cf74('0x23')](handleError(_0x14dd4b,null));},exports[_0x137dcc('0x15')]=function(_0x1b0d9b,_0x56d3e4){const _0x159af7=_0x137dcc;return _0x1b0d9b['body']['id']&&delete _0x1b0d9b[_0x159af7('0x25')]['id'],db['VoiceQueuesLog'][_0x159af7('0x13')]({'where':{'id':_0x1b0d9b[_0x159af7('0x1c')]['id']}})[_0x159af7('0x28')](handleEntityNotFound(_0x56d3e4,null))['then'](saveUpdates(_0x1b0d9b[_0x159af7('0x25')],null))[_0x159af7('0x28')](respondWithResult(_0x56d3e4,null))[_0x159af7('0x23')](handleError(_0x56d3e4,null));},exports[_0x137dcc('0xd')]=function(_0x3fc2be,_0x5bb18e){const _0x31fc30=_0x137dcc;return db[_0x31fc30('0x14')][_0x31fc30('0x13')]({'where':{'id':_0x3fc2be[_0x31fc30('0x1c')]['id']}})['then'](handleEntityNotFound(_0x5bb18e,null))[_0x31fc30('0x28')](removeEntity(_0x5bb18e,null))[_0x31fc30('0x23')](handleError(_0x5bb18e,null));}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.model.js b/server/api/voiceQueuesLog/voiceQueuesLog.model.js index a6b77c4..8b1488d 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.model.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.model.js @@ -1 +1 @@ -const a768_0x5eba=['exports','event','dtm','VoiceQueuesLog','event_dtm'];(function(_0x2a474a,_0x5ebaf6){const _0x227b83=function(_0xe21d99){while(--_0xe21d99){_0x2a474a['push'](_0x2a474a['shift']());}};_0x227b83(++_0x5ebaf6);}(a768_0x5eba,0x88));const a768_0x227b=function(_0x2a474a,_0x5ebaf6){_0x2a474a=_0x2a474a-0x0;let _0x227b83=a768_0x5eba[_0x2a474a];return _0x227b83;};const _0x32cb93=a768_0x227b;'use strict';const attributes=require('./voiceQueuesLog.attributes');module[_0x32cb93('0x4')]=function(_0xe21d99){const _0x2fc061=_0x32cb93,_0x4c1d91=_0xe21d99['define'](_0x2fc061('0x2'),attributes,{'tableName':'voice_queues_log','paranoid':![],'indexes':[{'name':_0x2fc061('0x3'),'fields':[_0x2fc061('0x0'),_0x2fc061('0x1')]}],'timestamps':![]});return _0x4c1d91;}; \ No newline at end of file +const a768_0xb63a=['event','define','./voiceQueuesLog.attributes','voice_queues_log','VoiceQueuesLog'];(function(_0x42dc97,_0xb63a46){const _0x5b1666=function(_0x423ced){while(--_0x423ced){_0x42dc97['push'](_0x42dc97['shift']());}};_0x5b1666(++_0xb63a46);}(a768_0xb63a,0x184));const a768_0x5b16=function(_0x42dc97,_0xb63a46){_0x42dc97=_0x42dc97-0x0;let _0x5b1666=a768_0xb63a[_0x42dc97];return _0x5b1666;};const _0xe4cfb6=a768_0x5b16;'use strict';const attributes=require(_0xe4cfb6('0x4'));module['exports']=function(_0x423ced){const _0xc30afe=_0xe4cfb6,_0x165fc0=_0x423ced[_0xc30afe('0x3')](_0xc30afe('0x1'),attributes,{'tableName':_0xc30afe('0x0'),'paranoid':![],'indexes':[{'name':'event_dtm','fields':[_0xc30afe('0x2'),'dtm']}],'timestamps':![]});return _0x165fc0;}; \ No newline at end of file diff --git a/server/api/voiceRecording/index.js b/server/api/voiceRecording/index.js index 166cb53..e668160 100644 --- a/server/api/voiceRecording/index.js +++ b/server/api/voiceRecording/index.js @@ -1 +1 @@ -const a769_0x177a=['express','describe','create','exports','/:id/downloads','download','delete','index','runTranscribe','post','/:id/download','downloadTranscribe','/:id','../../components/auth/service','isAuthenticated','Router','/:id/transcribe','show','destroy','update','get'];(function(_0xc727bb,_0x177a2f){const _0x540b19=function(_0x3eb065){while(--_0x3eb065){_0xc727bb['push'](_0xc727bb['shift']());}};_0x540b19(++_0x177a2f);}(a769_0x177a,0x7a));const a769_0x540b=function(_0xc727bb,_0x177a2f){_0xc727bb=_0xc727bb-0x0;let _0x540b19=a769_0x177a[_0xc727bb];return _0x540b19;};const _0x469a44=a769_0x540b;'use strict';const express=require(_0x469a44('0x4')),router=express[_0x469a44('0x13')](),auth=require(_0x469a44('0x11')),controller=require('./voiceRecording.controller');router[_0x469a44('0x3')]('/',auth[_0x469a44('0x12')](),controller[_0x469a44('0xb')]),router['get']('/describe',auth[_0x469a44('0x12')](),controller[_0x469a44('0x5')]),router[_0x469a44('0x3')](_0x469a44('0x10'),auth['isAuthenticated'](),controller[_0x469a44('0x0')]),router[_0x469a44('0x3')](_0x469a44('0xe'),auth['isAuthenticated'](),controller[_0x469a44('0x9')]),router[_0x469a44('0x3')](_0x469a44('0x8'),controller['downloads']),router[_0x469a44('0x3')](_0x469a44('0x14'),auth[_0x469a44('0x12')](),controller[_0x469a44('0xf')]),router[_0x469a44('0xd')]('/',auth[_0x469a44('0x12')](),controller[_0x469a44('0x6')]),router[_0x469a44('0xd')](_0x469a44('0x14'),auth[_0x469a44('0x12')](),controller[_0x469a44('0xc')]),router['put'](_0x469a44('0x10'),auth['isAuthenticated'](),controller[_0x469a44('0x2')]),router[_0x469a44('0xa')](_0x469a44('0x10'),auth['isAuthenticated'](),controller[_0x469a44('0x1')]),module[_0x469a44('0x7')]=router; \ No newline at end of file +const a769_0x127c=['describe','/describe','/:id','create','/:id/transcribe','show','post','exports','destroy','express','download','/:id/download','downloads','get','index','runTranscribe','../../components/auth/service','Router','put','isAuthenticated','downloadTranscribe'];(function(_0x32481b,_0x127c1c){const _0x33a09f=function(_0x15afbe){while(--_0x15afbe){_0x32481b['push'](_0x32481b['shift']());}};_0x33a09f(++_0x127c1c);}(a769_0x127c,0x184));const a769_0x33a0=function(_0x32481b,_0x127c1c){_0x32481b=_0x32481b-0x0;let _0x33a09f=a769_0x127c[_0x32481b];return _0x33a09f;};const _0x4ddaa2=a769_0x33a0;'use strict';const express=require(_0x4ddaa2('0x14')),router=express[_0x4ddaa2('0x7')](),auth=require(_0x4ddaa2('0x6')),controller=require('./voiceRecording.controller');router['get']('/',auth[_0x4ddaa2('0x9')](),controller[_0x4ddaa2('0x4')]),router[_0x4ddaa2('0x3')](_0x4ddaa2('0xc'),auth[_0x4ddaa2('0x9')](),controller[_0x4ddaa2('0xb')]),router[_0x4ddaa2('0x3')](_0x4ddaa2('0xd'),auth[_0x4ddaa2('0x9')](),controller[_0x4ddaa2('0x10')]),router[_0x4ddaa2('0x3')](_0x4ddaa2('0x1'),auth[_0x4ddaa2('0x9')](),controller[_0x4ddaa2('0x0')]),router[_0x4ddaa2('0x3')]('/:id/downloads',controller[_0x4ddaa2('0x2')]),router[_0x4ddaa2('0x3')](_0x4ddaa2('0xf'),auth[_0x4ddaa2('0x9')](),controller[_0x4ddaa2('0xa')]),router[_0x4ddaa2('0x11')]('/',auth[_0x4ddaa2('0x9')](),controller[_0x4ddaa2('0xe')]),router[_0x4ddaa2('0x11')](_0x4ddaa2('0xf'),auth[_0x4ddaa2('0x9')](),controller[_0x4ddaa2('0x5')]),router[_0x4ddaa2('0x8')](_0x4ddaa2('0xd'),auth[_0x4ddaa2('0x9')](),controller['update']),router['delete'](_0x4ddaa2('0xd'),auth['isAuthenticated'](),controller[_0x4ddaa2('0x13')]),module[_0x4ddaa2('0x12')]=router; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.attributes.js b/server/api/voiceRecording/voiceRecording.attributes.js index 0f1138c..051f22d 100644 --- a/server/api/voiceRecording/voiceRecording.attributes.js +++ b/server/api/voiceRecording/voiceRecording.attributes.js @@ -1 +1 @@ -const a770_0x4895=['toString','DATE','membername','FLOAT','BOOLEAN','value','setDataValue','INTEGER','sequelize','split','format','MM-DD-YYYY\x20HH:mm','TEXT','updatedAt','moment','exports','channel','getDataValue','STRING'];(function(_0x2f6326,_0x4895f6){const _0x29e589=function(_0x14507f){while(--_0x14507f){_0x2f6326['push'](_0x2f6326['shift']());}};_0x29e589(++_0x4895f6);}(a770_0x4895,0x1cc));const a770_0x29e5=function(_0x2f6326,_0x4895f6){_0x2f6326=_0x2f6326-0x0;let _0x29e589=a770_0x4895[_0x2f6326];return _0x29e589;};const _0xe9a8dd=a770_0x29e5;'use strict';const Sequelize=require(_0xe9a8dd('0x4')),moment=require(_0xe9a8dd('0xa')),path=require('path');module[_0xe9a8dd('0xb')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x2c0f9e=_0xe9a8dd;return this[_0x2c0f9e('0xd')](_0x2c0f9e('0x1'))?path['extname'](this['getDataValue'](_0x2c0f9e('0x1'))):undefined;}},'uniqueid':{'type':Sequelize[_0xe9a8dd('0xe')]},'channel':{'type':Sequelize['STRING'],'set':function(_0x14507f){const _0x109c2c=_0xe9a8dd;_0x14507f&&(this[_0x109c2c('0x2')](_0x109c2c('0xc'),_0x14507f),this['setDataValue'](_0x109c2c('0x11'),_0x14507f[_0x109c2c('0x5')](/\/|-/)[0x1]));}},'membername':{'type':Sequelize[_0xe9a8dd('0xe')]},'calleridnum':{'type':Sequelize[_0xe9a8dd('0xe')]},'calleridname':{'type':Sequelize[_0xe9a8dd('0xe')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0xe9a8dd('0xe')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0xe9a8dd('0xe')]},'exten':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0xe9a8dd('0xe')]},'type':{'type':Sequelize[_0xe9a8dd('0xe')]},'rating':{'type':Sequelize[_0xe9a8dd('0x3')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0xe9a8dd('0xe')]},'userDisposition':{'type':Sequelize[_0xe9a8dd('0xe')]},'userSecondDisposition':{'type':Sequelize['STRING']},'userThirdDisposition':{'type':Sequelize[_0xe9a8dd('0xe')]},'location':{'type':Sequelize['TEXT']},'transcribeName':{'type':Sequelize['STRING']},'transcribeStatus':{'type':Sequelize[_0xe9a8dd('0xe')],'defaultValue':'NEW'},'fileUri':{'type':Sequelize[_0xe9a8dd('0x8')]},'fileText':{'type':Sequelize[_0xe9a8dd('0x8')]},'failureReason':{'type':Sequelize[_0xe9a8dd('0x8')]},'sentiment':{'type':Sequelize[_0xe9a8dd('0xe')]},'sPositive':{'type':Sequelize['FLOAT']},'sNegative':{'type':Sequelize[_0xe9a8dd('0x12')]},'sNeutral':{'type':Sequelize[_0xe9a8dd('0x12')]},'sMixed':{'type':Sequelize[_0xe9a8dd('0x12')]},'tempSentiment':{'type':Sequelize[_0xe9a8dd('0x0')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0xe9a8dd('0x10')],'get':function(){const _0x1b148e=_0xe9a8dd;return moment(this[_0x1b148e('0xd')]('createdAt'))[_0x1b148e('0x6')](_0x1b148e('0x7'))[_0x1b148e('0xf')]();}},'updatedAt':{'type':Sequelize[_0xe9a8dd('0x10')],'get':function(){const _0x5900e7=_0xe9a8dd;return moment(this['getDataValue'](_0x5900e7('0x9')))[_0x5900e7('0x6')]('MM-DD-YYYY\x20HH:mm')['toString']();}}}; \ No newline at end of file +const a770_0x1118=['NEW','exports','channel','STRING','createdAt','MM-DD-YYYY\x20HH:mm','path','value','format','getDataValue','DATE','VIRTUAL','INTEGER','FLOAT','BOOLEAN','sequelize','updatedAt','TEXT','toString'];(function(_0x11a0cd,_0x1118c4){const _0x4976e6=function(_0x341106){while(--_0x341106){_0x11a0cd['push'](_0x11a0cd['shift']());}};_0x4976e6(++_0x1118c4);}(a770_0x1118,0x18a));const a770_0x4976=function(_0x11a0cd,_0x1118c4){_0x11a0cd=_0x11a0cd-0x0;let _0x4976e6=a770_0x1118[_0x11a0cd];return _0x4976e6;};const _0x5e80c2=a770_0x4976;'use strict';const Sequelize=require(_0x5e80c2('0x1')),moment=require('moment'),path=require(_0x5e80c2('0xb'));module[_0x5e80c2('0x6')]={'format':{'type':Sequelize[_0x5e80c2('0x10')],'get':function(){const _0x2ffd97=_0x5e80c2;return this[_0x2ffd97('0xe')]('value')?path['extname'](this[_0x2ffd97('0xe')](_0x2ffd97('0xc'))):undefined;}},'uniqueid':{'type':Sequelize[_0x5e80c2('0x8')]},'channel':{'type':Sequelize[_0x5e80c2('0x8')],'set':function(_0x341106){const _0x4ed00b=_0x5e80c2;_0x341106&&(this['setDataValue'](_0x4ed00b('0x7'),_0x341106),this['setDataValue']('membername',_0x341106['split'](/\/|-/)[0x1]));}},'membername':{'type':Sequelize[_0x5e80c2('0x8')]},'calleridnum':{'type':Sequelize[_0x5e80c2('0x8')]},'calleridname':{'type':Sequelize[_0x5e80c2('0x8')]},'connectedlinenum':{'type':Sequelize[_0x5e80c2('0x8')]},'connectedlinename':{'type':Sequelize[_0x5e80c2('0x8')]},'accountcode':{'type':Sequelize[_0x5e80c2('0x8')]},'context':{'type':Sequelize[_0x5e80c2('0x8')]},'exten':{'type':Sequelize[_0x5e80c2('0x8')]},'value':{'type':Sequelize[_0x5e80c2('0x8')]},'type':{'type':Sequelize[_0x5e80c2('0x8')]},'rating':{'type':Sequelize[_0x5e80c2('0x11')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x5e80c2('0x8')]},'userDisposition':{'type':Sequelize['STRING']},'userSecondDisposition':{'type':Sequelize['STRING']},'userThirdDisposition':{'type':Sequelize[_0x5e80c2('0x8')]},'location':{'type':Sequelize[_0x5e80c2('0x3')]},'transcribeName':{'type':Sequelize[_0x5e80c2('0x8')]},'transcribeStatus':{'type':Sequelize[_0x5e80c2('0x8')],'defaultValue':_0x5e80c2('0x5')},'fileUri':{'type':Sequelize[_0x5e80c2('0x3')]},'fileText':{'type':Sequelize[_0x5e80c2('0x3')]},'failureReason':{'type':Sequelize[_0x5e80c2('0x3')]},'sentiment':{'type':Sequelize[_0x5e80c2('0x8')]},'sPositive':{'type':Sequelize[_0x5e80c2('0x12')]},'sNegative':{'type':Sequelize['FLOAT']},'sNeutral':{'type':Sequelize['FLOAT']},'sMixed':{'type':Sequelize['FLOAT']},'tempSentiment':{'type':Sequelize[_0x5e80c2('0x0')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0x5e80c2('0xf')],'get':function(){const _0x289690=_0x5e80c2;return moment(this[_0x289690('0xe')](_0x289690('0x9')))[_0x289690('0xd')](_0x289690('0xa'))[_0x289690('0x4')]();}},'updatedAt':{'type':Sequelize[_0x5e80c2('0xf')],'get':function(){const _0x373df4=_0x5e80c2;return moment(this[_0x373df4('0xe')](_0x373df4('0x2')))[_0x373df4('0xd')]('MM-DD-YYYY\x20HH:mm')[_0x373df4('0x4')]();}}}; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.controller.js b/server/api/voiceRecording/voiceRecording.controller.js index 9065ece..6e71f84 100644 --- a/server/api/voiceRecording/voiceRecording.controller.js +++ b/server/api/voiceRecording/voiceRecording.controller.js @@ -1 +1 @@ -const a771_0x1139=['download','filter','File:\x20\x22','runSentiment','where','merge','intersection','sequelize','../../config/environment','Voice\x20Recording\x20not\x20found','findOne','IN_PROGRESS','bucket','util','sentimentRegion','../../components/encryptor','sendStatus','downloadTranscribe','secrets','Buckets','describe','language','stack','include','Location','json','VoiceRecording\x20not\x20found','fieldName','extname','transcribeStatus','index','transcribe','Cloud\x20Provider\x20not\x20configured','downloads','differenceBy','transcribeRegion','ValidationError','startTranscriptionJob','api','listBuckets','fileText','nolimit','transcribeAccountId','sort','MD5','[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s','filters','Transcript\x20not\x20available','fields','offset','unlink','keys','length','then','[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested','.txt','isNil','key','send','Name','and','../../mysqldb','TranscriptionJobName','Cloud\x20Provider\x20not\x20available','message','readFileSync','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','recording','params','status','error','decryptFile','%s.cypher','TranscribeService','error-middleware/errors','map','$and','pick','token','includeAll','value','options','update','info','rows','NEW','location','rawAttributes','upload','writeFile','.cypher','uniqueid','name','data1','existsSync','basename','filename','catch','type','query','data2','undefined','Sequelize','set','Not\x20found','VoiceRecording','model','Sentiment\x20Analysis\x20not\x20configured','Entity\x20not\x20found','TranscriptionJob','order','count','Setting','Transcribe\x20not\x20configured','[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)','find','create','root','body','cancellazione\x20fisica\x20documento\x20%s','end','sentimentAccountId','uuid','VIRTUAL','destroy','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','CloudProvider','limit','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available','attributes','../../config/logger','format'];(function(_0x33eb82,_0x1139df){const _0x237ffb=function(_0x5f1e95){while(--_0x5f1e95){_0x33eb82['push'](_0x33eb82['shift']());}};_0x237ffb(++_0x1139df);}(a771_0x1139,0x123));const a771_0x237f=function(_0x33eb82,_0x1139df){_0x33eb82=_0x33eb82-0x0;let _0x237ffb=a771_0x1139[_0x33eb82];return _0x237ffb;};const _0x11f21b=a771_0x237f;'use strict';const util=require(_0x11f21b('0x76')),path=require('path'),fs=require('fs'),_=require('lodash'),AWS=require('aws-sdk'),{v4:uuidv4}=require(_0x11f21b('0x5f')),qs=require('../../components/parsers/qs'),logger=require(_0x11f21b('0x67'))(_0x11f21b('0xb')),config=require(_0x11f21b('0x71')),db=require(_0x11f21b('0x22'))['db'],{Op}=require(_0x11f21b('0x70')),{InternalError}=require(_0x11f21b('0x2f'));function respondWithResult(_0x5f1e95,_0x2ae54b){return _0x2ae54b=_0x2ae54b||0xc8,function(_0x35b021){const _0x2caa43=a771_0x237f;if(_0x35b021)return _0x5f1e95['status'](_0x2ae54b)[_0x2caa43('0x82')](_0x35b021);};}function respondWithFilteredResult(_0x4c686b,_0x397746){return function(_0x2cf3a2){const _0x642710=a771_0x237f;if(_0x2cf3a2){const _0x3545fd=_0x2cf3a2[_0x642710('0x54')],_0x3f3e69=_0x397746[_0x642710('0x16')];let _0x112ee2=_0x397746[_0x642710('0x16')]+_0x397746[_0x642710('0x64')],_0x4d12b8;return _0x112ee2>=_0x3545fd?(_0x112ee2=_0x3545fd,_0x4d12b8=0xc8):_0x4d12b8=0xce,_0x4c686b[_0x642710('0x2a')](_0x4d12b8),_0x4c686b[_0x642710('0x4c')]('Content-Range',_0x3f3e69+'-'+_0x112ee2+'/'+_0x3545fd)[_0x642710('0x82')](_0x2cf3a2);}return null;};}function saveUpdates(_0x4ad214){return function(_0x7f5819){const _0x1ea5d6=a771_0x237f;if(_0x7f5819)return _0x7f5819[_0x1ea5d6('0x37')](_0x4ad214)[_0x1ea5d6('0x1a')](function(_0x3a13c8){return _0x3a13c8;});return null;};}function handleEntityNotFound(_0x58505b){return function(_0x196112){const _0x52f78e=a771_0x237f;return!_0x196112&&_0x58505b[_0x52f78e('0x79')](0x194),_0x196112;};}function handleError(_0xce46,_0x3762b3){return _0x3762b3=_0x3762b3||0x1f4,function(_0x3d043c){const _0xe6d770=a771_0x237f;logger[_0xe6d770('0x2b')](_0x3d043c[_0xe6d770('0x7f')]),_0x3d043c[_0xe6d770('0x41')]&&delete _0x3d043c['name'],_0xce46[_0xe6d770('0x2a')](_0x3762b3)[_0xe6d770('0x1f')](_0x3d043c);};}exports[_0x11f21b('0x3')]=function(_0x29c99a,_0x149b25){const _0x934116=_0x11f21b;let _0x16ddd2={};const _0x1c8ea4={},_0x33914d={'count':0x0,'rows':[]},_0x3878e2=_[_0x934116('0x30')](db[_0x934116('0x4e')][_0x934116('0x3c')],function(_0x1c2386){const _0x7247a3=_0x934116;return{'name':_0x1c2386[_0x7247a3('0x0')],'type':_0x1c2386[_0x7247a3('0x47')][_0x7247a3('0x1e')]};});_0x1c8ea4[_0x934116('0x4f')]=_[_0x934116('0x7')](_[_0x934116('0x30')](_0x3878e2,_0x934116('0x41')),[_0x934116('0x68')]),_0x1c8ea4[_0x934116('0x48')]=_[_0x934116('0x18')](_0x29c99a['query']),_0x1c8ea4[_0x934116('0x13')]=_[_0x934116('0x6f')](_0x1c8ea4['model'],_0x1c8ea4['query']),_0x16ddd2[_0x934116('0x66')]=_[_0x934116('0x6f')](_0x1c8ea4[_0x934116('0x4f')],qs[_0x934116('0x15')](_0x29c99a[_0x934116('0x48')]['fields'])),_0x16ddd2[_0x934116('0x66')]=_0x16ddd2[_0x934116('0x66')][_0x934116('0x19')]?_0x16ddd2['attributes']:_0x1c8ea4[_0x934116('0x4f')];typeof _0x29c99a[_0x934116('0x48')][_0x934116('0xe')]===_0x934116('0x4a')&&(_0x16ddd2[_0x934116('0x64')]=qs[_0x934116('0x64')](_0x29c99a[_0x934116('0x48')]['limit']),_0x16ddd2[_0x934116('0x16')]=qs['offset'](_0x29c99a[_0x934116('0x48')][_0x934116('0x16')]));_0x16ddd2[_0x934116('0x53')]=qs[_0x934116('0x10')](_0x29c99a[_0x934116('0x48')][_0x934116('0x10')]),_0x16ddd2[_0x934116('0x6d')]=qs['filters'](_[_0x934116('0x32')](_0x29c99a[_0x934116('0x48')],_0x1c8ea4['filters']),_0x3878e2);_0x29c99a['query'][_0x934116('0x6a')]&&(_0x16ddd2[_0x934116('0x6d')]=_[_0x934116('0x6e')](_0x16ddd2[_0x934116('0x6d')],{[Op['or']]:_[_0x934116('0x30')](_0x3878e2,function(_0x4a0527){const _0x4ce545=_0x934116;if(_0x4a0527[_0x4ce545('0x47')]!==_0x4ce545('0x60')){const _0x3d23bc={};return _0x3d23bc[_0x4a0527[_0x4ce545('0x41')]]={[Op['like']]:'%'+_0x29c99a[_0x4ce545('0x48')][_0x4ce545('0x6a')]+'%'},_0x3d23bc;}})}));_0x16ddd2=_[_0x934116('0x6e')]({},_0x16ddd2,_0x29c99a[_0x934116('0x36')]);const _0x19da71={'where':_0x16ddd2['where']};return db[_0x934116('0x4e')][_0x934116('0x54')](_0x19da71)['then'](function(_0x242b9b){const _0x38b464=_0x934116;return _0x33914d[_0x38b464('0x54')]=_0x242b9b,_0x29c99a[_0x38b464('0x48')][_0x38b464('0x34')]&&(_0x16ddd2[_0x38b464('0x80')]=[{'all':!![]}]),db[_0x38b464('0x4e')]['findAll'](_0x16ddd2);})['then'](function(_0x573d0a){const _0x2527de=_0x934116;return _0x33914d[_0x2527de('0x39')]=_0x573d0a,_0x33914d;})[_0x934116('0x1a')](respondWithFilteredResult(_0x149b25,_0x16ddd2))[_0x934116('0x46')](handleError(_0x149b25,null));},exports['show']=function(_0x198104,_0x454ca7){const _0xfc1cfd=_0x11f21b;let _0x923756={'raw':![],'where':{'id':_0x198104[_0xfc1cfd('0x29')]['id']}};const _0x2ea5f5={};return _0x2ea5f5[_0xfc1cfd('0x4f')]=_[_0xfc1cfd('0x18')](db['VoiceRecording'][_0xfc1cfd('0x3c')]),_0x2ea5f5[_0xfc1cfd('0x48')]=_[_0xfc1cfd('0x18')](_0x198104[_0xfc1cfd('0x48')]),_0x2ea5f5[_0xfc1cfd('0x13')]=_['intersection'](_0x2ea5f5[_0xfc1cfd('0x4f')],_0x2ea5f5[_0xfc1cfd('0x48')]),_0x923756[_0xfc1cfd('0x66')]=_[_0xfc1cfd('0x6f')](_0x2ea5f5[_0xfc1cfd('0x4f')],qs[_0xfc1cfd('0x15')](_0x198104[_0xfc1cfd('0x48')][_0xfc1cfd('0x15')])),_0x923756['attributes']=_0x923756[_0xfc1cfd('0x66')][_0xfc1cfd('0x19')]?_0x923756[_0xfc1cfd('0x66')]:_0x2ea5f5['model'],_0x198104[_0xfc1cfd('0x48')]['includeAll']&&(_0x923756[_0xfc1cfd('0x80')]=[{'all':!![]}]),_0x923756=_[_0xfc1cfd('0x6e')]({},_0x923756,_0x198104[_0xfc1cfd('0x36')]),db['VoiceRecording'][_0xfc1cfd('0x73')](_0x923756)[_0xfc1cfd('0x1a')](handleEntityNotFound(_0x454ca7,null))[_0xfc1cfd('0x1a')](respondWithResult(_0x454ca7,null))['catch'](handleError(_0x454ca7,null));},exports[_0x11f21b('0x59')]=function(_0x5b9824,_0x21f7ab){return db['VoiceRecording']['create'](_0x5b9824['body'],{})['then'](respondWithResult(_0x21f7ab,0xc9))['catch'](handleError(_0x21f7ab,null));},exports[_0x11f21b('0x37')]=function(_0x2298bd,_0x2527d2){const _0x3528b2=_0x11f21b;return _0x2298bd[_0x3528b2('0x5b')]['id']&&delete _0x2298bd[_0x3528b2('0x5b')]['id'],db[_0x3528b2('0x4e')][_0x3528b2('0x73')]({'where':{'id':_0x2298bd[_0x3528b2('0x29')]['id']}})[_0x3528b2('0x1a')](handleEntityNotFound(_0x2527d2,null))[_0x3528b2('0x1a')](saveUpdates(_0x2298bd[_0x3528b2('0x5b')],null))[_0x3528b2('0x1a')](respondWithResult(_0x2527d2,null))[_0x3528b2('0x46')](handleError(_0x2527d2,null));},exports[_0x11f21b('0x7d')]=function(_0x27491c,_0x678807){const _0x530e98=_0x11f21b;return db['VoiceRecording']['describe']()[_0x530e98('0x1a')](respondWithResult(_0x678807,null))[_0x530e98('0x46')](handleError(_0x678807,null));},exports[_0x11f21b('0x69')]=function(_0x5a4200,_0x31e4dd){const _0x196f19=_0x11f21b,_0x3eb587=require(_0x196f19('0x78'));let _0x589476=![];const _0x443198={};return _0x5a4200[_0x196f19('0x48')]['type']&&_0x5a4200['query']['type']===_0x196f19('0x40')?_0x443198[_0x196f19('0x40')]=_0x5a4200[_0x196f19('0x29')]['id']:_0x443198['id']=_0x5a4200[_0x196f19('0x29')]['id'],db['VoiceRecording'][_0x196f19('0x73')]({'where':_0x443198,'attributes':['id',_0x196f19('0x35')],'raw':!![]})[_0x196f19('0x1a')](handleEntityNotFound(_0x31e4dd,null))[_0x196f19('0x1a')](function(_0xa77c30){const _0x4cf823=_0x196f19;if(_0xa77c30){const _0x2d9944=_0xa77c30[_0x4cf823('0x35')],_0x317de3=util[_0x4cf823('0x68')](_0x4cf823('0x2d'),_0x2d9944);if(fs[_0x4cf823('0x43')](_0x317de3))return _0x589476=!![],_0x3eb587[_0x4cf823('0x2c')](_0x317de3,_0x2d9944,config[_0x4cf823('0x7b')][_0x4cf823('0x28')])[_0x4cf823('0x1a')](function(){return _0xa77c30;});return _0xa77c30;}})[_0x196f19('0x1a')](function(_0x340482){const _0x5cdd6e=_0x196f19;if(_0x340482){const _0x369750=_0x340482[_0x5cdd6e('0x35')];if(!fs[_0x5cdd6e('0x43')](_0x369750))throw new db[(_0x5cdd6e('0x4b'))][(_0x5cdd6e('0x9'))](_0x5cdd6e('0x83'));return _0x340482[_0x5cdd6e('0x45')]?_0x31e4dd[_0x5cdd6e('0x69')](_0x369750,_0x340482[_0x5cdd6e('0x45')]+path[_0x5cdd6e('0x1')](_0x369750),function(){const _0x51ecf2=_0x5cdd6e;_0x589476&&fs[_0x51ecf2('0x17')](_0x369750);}):_0x31e4dd[_0x5cdd6e('0x69')](_0x369750,function(){const _0x14cdbb=_0x5cdd6e;_0x589476&&fs[_0x14cdbb('0x17')](_0x369750);});}})[_0x196f19('0x46')](function(_0x5d1c0a){const _0x3c4fc5=_0x196f19;if(_0x5d1c0a[_0x3c4fc5('0x25')]===_0x3c4fc5('0x83'))_0x31e4dd[_0x3c4fc5('0x2a')](0x194)['send'](_0x3c4fc5('0x4d'));else return handleError(_0x31e4dd,null);});},exports[_0x11f21b('0x6')]=function(_0x436d64,_0x150332){const _0x7bcf15=_0x11f21b,_0x28e8ca=require('../../components/encryptor');let _0x4f321d=![];const _0x1e8683={[Op[_0x7bcf15('0x21')]]:[db[_0x7bcf15('0x70')][_0x7bcf15('0x6d')](db['sequelize']['fn'](_0x7bcf15('0x11'),db[_0x7bcf15('0x70')]['col'](_0x7bcf15('0x40'))),_0x436d64['query'][_0x7bcf15('0x33')])]};return _0x436d64[_0x7bcf15('0x48')][_0x7bcf15('0x47')]&&_0x436d64[_0x7bcf15('0x48')]['type']===_0x7bcf15('0x40')?_0x1e8683[_0x7bcf15('0x31')]['push']({'uniqueid':_0x436d64[_0x7bcf15('0x29')]['id']}):_0x1e8683[_0x7bcf15('0x31')]['push']({'id':_0x436d64[_0x7bcf15('0x29')]['id']}),db[_0x7bcf15('0x4e')][_0x7bcf15('0x73')]({'where':_0x1e8683,'attributes':['id','value'],'raw':!![]})[_0x7bcf15('0x1a')](handleEntityNotFound(_0x150332,null))['then'](function(_0xc647be){const _0x26ea32=_0x7bcf15;if(_0xc647be){const _0x482b38=util[_0x26ea32('0x68')]('%s.cypher',_0xc647be[_0x26ea32('0x35')]);if(fs[_0x26ea32('0x43')](_0x482b38))return _0x4f321d=!![],_0x28e8ca[_0x26ea32('0x2c')](_0x482b38,_0xc647be[_0x26ea32('0x35')],config['secrets'][_0x26ea32('0x28')])[_0x26ea32('0x1a')](function(){return _0xc647be;});return _0xc647be;}})['then'](function(_0x1beee4){const _0x232184=_0x7bcf15;if(_0x1beee4){if(!fs[_0x232184('0x43')](_0x1beee4[_0x232184('0x35')]))throw new db[(_0x232184('0x4b'))][(_0x232184('0x9'))](_0x232184('0x83'));return _0x1beee4[_0x232184('0x45')]?_0x150332[_0x232184('0x69')](_0x1beee4['value'],_0x1beee4['filename']+path[_0x232184('0x1')](_0x1beee4[_0x232184('0x35')]),function(){const _0x516778=_0x232184;_0x4f321d&&fs[_0x516778('0x17')](_0x1beee4[_0x516778('0x35')]);}):_0x150332[_0x232184('0x69')](_0x1beee4['value'],function(){const _0x4ff4f0=_0x232184;_0x4f321d&&fs[_0x4ff4f0('0x17')](_0x1beee4[_0x4ff4f0('0x35')]);});}})['catch'](handleError(_0x150332,null));},exports[_0x11f21b('0x61')]=function(_0x5c0523,_0x2e4dc4){const _0x2dfe07=_0x11f21b;return db[_0x2dfe07('0x4e')][_0x2dfe07('0x73')]({'where':{'id':_0x5c0523[_0x2dfe07('0x29')]['id']}})[_0x2dfe07('0x1a')](function(_0x138818){const _0x33d549=_0x2dfe07;if(!_0x138818)throw new ReferenceError(_0x33d549('0x51'));return _0x138818;})['then'](function(_0x6a3a9f){const _0x2df668=_0x2dfe07;let _0x1eb119=_0x6a3a9f[_0x2df668('0x35')];return logger['info'](_0x2df668('0x5c'),_0x1eb119),!_[_0x2df668('0x1d')](_0x6a3a9f['value'])&&fs[_0x2df668('0x43')](_0x1eb119)&&(logger[_0x2df668('0x38')](_0x2df668('0x6b')+_0x1eb119+_0x2df668('0x62')),fs['unlinkSync'](_0x1eb119)),_0x1eb119=_0x1eb119+_0x2df668('0x3f'),!_[_0x2df668('0x1d')](_0x6a3a9f[_0x2df668('0x35')])&&fs[_0x2df668('0x43')](_0x1eb119)&&(logger[_0x2df668('0x38')](_0x2df668('0x6b')+_0x1eb119+_0x2df668('0x62')),fs['unlinkSync'](_0x1eb119)),_0x6a3a9f;})[_0x2dfe07('0x1a')](function(_0x2a371a){const _0x110572=_0x2dfe07;if(!_0x2a371a)throw new InternalError();return _0x2a371a[_0x110572('0x61')]();})[_0x2dfe07('0x1a')](function(){const _0x4641f7=_0x2dfe07;_0x2e4dc4[_0x4641f7('0x2a')](0xcc)[_0x4641f7('0x5d')]();})[_0x2dfe07('0x46')](handleError(_0x2e4dc4,null));};function getBucketslist(_0x4230ca,_0x16645a,_0x551eed){return new Promise(function(_0x1bfaa0,_0x419b4d){const _0xf57876=a771_0x237f,_0x35c665=new AWS['S3']({'accessKeyId':_0x16645a,'secretAccessKey':_0x4230ca,'region':_0x551eed});_0x35c665[_0xf57876('0xc')]({},function(_0xd8f837,_0x52dc18){return _0xd8f837?_0x419b4d(_0xd8f837):_0x1bfaa0(_0x52dc18);});});}function createBucket(_0x43b78b,_0x162cc2,_0x42ffad,_0x36198c){return new Promise(function(_0x53fbea,_0x4fcccd){const _0x35b563=new AWS['S3']({'accessKeyId':_0x162cc2,'secretAccessKey':_0x43b78b,'region':_0x42ffad});_0x35b563['createBucket']({'Bucket':_0x36198c},function(_0x5b4487,_0x5027b9){return _0x5b4487?_0x4fcccd(_0x5b4487):_0x53fbea(_0x5027b9);});});}function uploadFile(_0x53244c,_0x2406dc,_0x213c4a,_0x5129a6,_0x46e2b1,_0xcdea63){return new Promise(function(_0xd81614,_0x35f300){const _0x2b9ae8=a771_0x237f,_0x4c766d=new AWS['S3']({'accessKeyId':_0x2406dc,'secretAccessKey':_0x53244c,'region':_0x213c4a});_0x4c766d[_0x2b9ae8('0x3d')]({'Bucket':_0x5129a6,'Key':_0x46e2b1,'Body':_0xcdea63},function(_0x40d817,_0x385d48){return _0x40d817?_0x35f300(_0x40d817):_0xd81614(_0x385d48);});});}function startTranscribe(_0x5e56b3,_0x128553,_0x45e4c9,_0x40bbe8,_0x1e548e,_0x42e4f8){return new Promise(function(_0x380501,_0x1cb1bd){const _0x4e13d4=a771_0x237f,_0x15bcbd=new AWS[(_0x4e13d4('0x2e'))]({'accessKeyId':_0x128553,'secretAccessKey':_0x5e56b3,'region':_0x45e4c9});_0x15bcbd[_0x4e13d4('0xa')]({'TranscriptionJobName':_0x40bbe8,'LanguageCode':_0x1e548e,'Media':{'MediaFileUri':_0x42e4f8}},function(_0x384176,_0x54dc49){return _0x384176?_0x1cb1bd(_0x384176):_0x380501(_0x54dc49);});});}function transcribe(_0x3184d0,_0x5995d2,_0x45c273,_0x155993,_0x27f9cb,_0x5b80c1,_0x10f316){return new Promise(function(_0x1cbe5d,_0x4ec8d0){const _0x544ecb=a771_0x237f,_0x13fa77={};return logger['info'](util[_0x544ecb('0x68')](_0x544ecb('0x12'),_0x3184d0,_0x27f9cb)),uploadFile(_0x5995d2,_0x45c273,_0x155993,_0x27f9cb,path[_0x544ecb('0x44')](_0x5b80c1),fs[_0x544ecb('0x26')](_0x5b80c1))[_0x544ecb('0x1a')](function(_0x18f53a){const _0x5d2445=_0x544ecb;return logger['info'](util[_0x5d2445('0x68')](_0x5d2445('0x57'),_0x3184d0,_0x27f9cb,_0x18f53a['Location'])),_0x13fa77[_0x5d2445('0x75')]=_0x18f53a['Bucket'],_0x13fa77[_0x5d2445('0x3b')]=_0x18f53a[_0x5d2445('0x81')],logger[_0x5d2445('0x38')](util['format']('[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request',_0x3184d0)),startTranscribe(_0x5995d2,_0x45c273,_0x155993,uuidv4(),_0x10f316,_0x18f53a['Location']);})['then'](function(_0x469a0f){const _0x549e1f=_0x544ecb;return logger[_0x549e1f('0x38')](util[_0x549e1f('0x68')](_0x549e1f('0x27'),_0x3184d0,_0x469a0f[_0x549e1f('0x52')]['TranscriptionJobName'])),_0x13fa77['transcribeName']=_0x469a0f[_0x549e1f('0x52')][_0x549e1f('0x23')],_0x13fa77[_0x549e1f('0x2')]=_0x469a0f['TranscriptionJob']['TranscriptionJobStatus'],_0x1cbe5d(_0x13fa77);})[_0x544ecb('0x46')](function(_0x13dd91){return _0x4ec8d0(_0x13dd91);});});}exports['runTranscribe']=function(_0x26afdf,_0x2cee3a){const _0x51f4a5=_0x11f21b;let _0x4d3130,_0x4647f6,_0x299961;const _0x5bd1a9=require(_0x51f4a5('0x78'));return db[_0x51f4a5('0x4e')]['findOne']({'where':{'id':_0x26afdf[_0x51f4a5('0x29')]['id']}})['then'](function(_0x1ce920){const _0x1aa85b=_0x51f4a5;if(_0x1ce920){const _0x25dd37=util[_0x1aa85b('0x68')](_0x1aa85b('0x2d'),_0x1ce920['value']);if(fs[_0x1aa85b('0x43')](_0x25dd37))return _0x5bd1a9['decryptFile'](_0x25dd37,_0x1ce920[_0x1aa85b('0x35')],config[_0x1aa85b('0x7b')]['recording'])[_0x1aa85b('0x1a')](function(){return _0x1ce920;});return _0x1ce920;}})[_0x51f4a5('0x1a')](function(_0x4dd4a7){const _0x4955c9=_0x51f4a5;if(!_0x4dd4a7)throw new db['Sequelize'][(_0x4955c9('0x9'))](_0x4955c9('0x72'));return _0x4647f6=_0x4dd4a7,db[_0x4955c9('0x55')][_0x4955c9('0x73')]({'where':{'id':0x1}});})['then'](handleEntityNotFound(_0x2cee3a,null))[_0x51f4a5('0x1a')](function(_0x11f6d2){const _0x1e8570=_0x51f4a5;if(_0x11f6d2){_0x4d3130=_0x11f6d2;if(!_0x4d3130[_0x1e8570('0x4')]||!_0x4d3130[_0x1e8570('0xf')]||!_0x4d3130[_0x1e8570('0x8')]||!_0x4d3130[_0x1e8570('0x7e')]||!_0x4d3130[_0x1e8570('0x75')])throw new db[(_0x1e8570('0x4b'))]['ValidationError'](_0x1e8570('0x56'));if(_0x26afdf[_0x1e8570('0x5b')]['runSentiment']&&(!_0x4d3130['sentiment']||!_0x4d3130[_0x1e8570('0x5e')]||!_0x4d3130[_0x1e8570('0x77')]||!_0x4d3130[_0x1e8570('0x7e')]||!_0x4d3130[_0x1e8570('0x75')]))throw new db[(_0x1e8570('0x4b'))][(_0x1e8570('0x9'))](_0x1e8570('0x50'));return db[_0x1e8570('0x63')]['findOne']({'where':{'id':_0x4d3130['transcribeAccountId']}});}})['then'](function(_0x25295c){const _0x302ddf=_0x51f4a5;if(!_0x25295c)throw new db[(_0x302ddf('0x4b'))][(_0x302ddf('0x9'))](_0x302ddf('0x24'));if(!_0x25295c['data1']||!_0x25295c[_0x302ddf('0x49')])throw new db[(_0x302ddf('0x4b'))][(_0x302ddf('0x9'))](_0x302ddf('0x5'));return _0x299961=_0x25295c,getBucketslist(_0x299961[_0x302ddf('0x42')],_0x299961['data2'],_0x4d3130[_0x302ddf('0x8')]);})[_0x51f4a5('0x1a')](function(_0x3125d9){const _0x3a9b3a=_0x51f4a5;if(_0x3125d9&&_0x3125d9[_0x3a9b3a('0x7c')]){const _0x3f3882=_[_0x3a9b3a('0x58')](_0x3125d9[_0x3a9b3a('0x7c')],function(_0x1a3571){const _0x334745=_0x3a9b3a;return _0x1a3571[_0x334745('0x20')]===_0x4d3130['bucket'];});if(!_0x3f3882)return logger[_0x3a9b3a('0x38')](util[_0x3a9b3a('0x68')]('[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available',_0x26afdf[_0x3a9b3a('0x29')]['id'],_0x4d3130[_0x3a9b3a('0x75')])),createBucket(_0x299961[_0x3a9b3a('0x42')],_0x299961['data2'],_0x4d3130['transcribeRegion'],_0x4d3130[_0x3a9b3a('0x75')]);logger['info'](util[_0x3a9b3a('0x68')](_0x3a9b3a('0x65'),_0x26afdf[_0x3a9b3a('0x29')]['id'],_0x4d3130[_0x3a9b3a('0x75')]));return;}})[_0x51f4a5('0x1a')](function(){const _0x16a179=_0x51f4a5;return _0x4647f6[_0x16a179('0x2')]===_0x16a179('0x3a')?transcribe(_0x26afdf[_0x16a179('0x29')]['id'],_0x299961[_0x16a179('0x42')],_0x299961[_0x16a179('0x49')],_0x4d3130[_0x16a179('0x8')],_0x4d3130['bucket'],_0x4647f6['value'],_0x4d3130['language']):(logger[_0x16a179('0x38')](util[_0x16a179('0x68')](_0x16a179('0x1b'),_0x26afdf[_0x16a179('0x29')]['id'])),{'transcribeStatus':_0x16a179('0x74')});})['then'](function(_0x10e849){const _0x1f1bf1=_0x51f4a5;if(_0x10e849)return _0x10e849['tempSentiment']=_0x26afdf[_0x1f1bf1('0x5b')][_0x1f1bf1('0x6c')],_0x4647f6[_0x1f1bf1('0x37')](_0x10e849);})[_0x51f4a5('0x1a')](respondWithResult(_0x2cee3a,null))[_0x51f4a5('0x46')](handleError(_0x2cee3a,null));};function writeFile(_0x377a3a,_0x474c3e){return new Promise(function(_0x22c5ca,_0x25fd4e){const _0x5c4039=a771_0x237f;fs[_0x5c4039('0x3e')](_0x474c3e,_0x377a3a,function(_0x3af45a,_0x4edbca){return _0x3af45a?_0x25fd4e(_0x3af45a):_0x22c5ca(_0x4edbca);});});}exports[_0x11f21b('0x7a')]=function(_0x23e33f,_0x3b084d){const _0x317d4a=_0x11f21b;return db['VoiceRecording'][_0x317d4a('0x73')]({'where':{'id':_0x23e33f['params']['id']}})['then'](handleEntityNotFound(_0x3b084d))['then'](function(_0x299ef2){const _0x317f3f=_0x317d4a;if(_0x299ef2&&_0x299ef2[_0x317f3f('0xd')]){const _0x5df55d=_0x299ef2['fileText'],_0x1a9ce3=config[_0x317f3f('0x5a')]+'/server/files/transcribes/transcribe_'+_0x299ef2['id']+_0x317f3f('0x1c');if(fs[_0x317f3f('0x43')](_0x1a9ce3))return _0x1a9ce3;return writeFile(_0x5df55d,_0x1a9ce3)[_0x317f3f('0x1a')](function(){return _0x1a9ce3;});}else throw new db['Sequelize'][(_0x317f3f('0x9'))](_0x317f3f('0x14'));})['then'](function(_0x350ed9){const _0x20e84b=_0x317d4a;return _0x3b084d[_0x20e84b('0x69')](_0x350ed9);})[_0x317d4a('0x46')](handleError(_0x3b084d));}; \ No newline at end of file +const a771_0x3591=['params','sentimentAccountId','update','transcribeName','describe','readFileSync','map','attributes','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available','col','filters','Setting','transcribeRegion','findOne','File:\x20\x22','undefined','recording','transcribeStatus','ValidationError','merge','options','transcribeAccountId','Sentiment\x20Analysis\x20not\x20configured','VoiceRecording','nolimit','writeFile','json','MD5','includeAll','offset','VoiceRecording\x20not\x20found','unlink','sentimentRegion','downloadTranscribe','Entity\x20not\x20found','tempSentiment','format','length','and','status','language','push','type','TranscriptionJobName','api','uniqueid','Name','../../components/encryptor','sentiment','bucket','[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)','listBuckets','isNil','download','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available','path','data1','where','query','find','body','create','catch','Not\x20found','sequelize','index','count','runTranscribe','Transcribe\x20not\x20configured','fields','uuid','extname','Buckets','transcribe','include','CloudProvider','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','decryptFile','error','%s.cypher','name','limit','then','Sequelize','intersection','.cypher','VIRTUAL','info','value','Content-Range','send','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','/server/files/transcribes/transcribe_','runSentiment','startTranscriptionJob','show','createBucket','data2','.txt','Bucket','model','existsSync','secrets','order','location','TranscriptionJobStatus','keys','../../config/environment','[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request','TranscribeService','rawAttributes','token','findAll','destroy','lodash','util','TranscriptionJob','filename','sort','unlinkSync'];(function(_0x20dc9e,_0x359171){const _0x96e086=function(_0x2878ed){while(--_0x2878ed){_0x20dc9e['push'](_0x20dc9e['shift']());}};_0x96e086(++_0x359171);}(a771_0x3591,0x186));const a771_0x96e0=function(_0x20dc9e,_0x359171){_0x20dc9e=_0x20dc9e-0x0;let _0x96e086=a771_0x3591[_0x20dc9e];return _0x96e086;};const _0x213fff=a771_0x96e0;'use strict';const util=require(_0x213fff('0x55')),path=require(_0x213fff('0x19')),fs=require('fs'),_=require(_0x213fff('0x54')),AWS=require('aws-sdk'),{v4:uuidv4}=require(_0x213fff('0x28')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x213fff('0xe')),config=require(_0x213fff('0x4d')),db=require('../../mysqldb')['db'],{Op}=require(_0x213fff('0x22')),{InternalError}=require('error-middleware/errors');function respondWithResult(_0x2878ed,_0x1534fc){return _0x1534fc=_0x1534fc||0xc8,function(_0x4f4e02){const _0x1da020=a771_0x96e0;if(_0x4f4e02)return _0x2878ed[_0x1da020('0x9')](_0x1534fc)[_0x1da020('0x74')](_0x4f4e02);};}function respondWithFilteredResult(_0x5187ef,_0xc4c93b){return function(_0xc345bd){const _0x5b8227=a771_0x96e0;if(_0xc345bd){const _0x4c5b83=_0xc345bd['count'],_0x21aa86=_0xc4c93b[_0x5b8227('0x77')];let _0x72e60a=_0xc4c93b['offset']+_0xc4c93b[_0x5b8227('0x33')],_0x2498d4;return _0x72e60a>=_0x4c5b83?(_0x72e60a=_0x4c5b83,_0x2498d4=0xc8):_0x2498d4=0xce,_0x5187ef[_0x5b8227('0x9')](_0x2498d4),_0x5187ef['set'](_0x5b8227('0x3b'),_0x21aa86+'-'+_0x72e60a+'/'+_0x4c5b83)[_0x5b8227('0x74')](_0xc345bd);}return null;};}function saveUpdates(_0x238862){return function(_0x1ec74b){const _0x428cff=a771_0x96e0;if(_0x1ec74b)return _0x1ec74b['update'](_0x238862)[_0x428cff('0x34')](function(_0x3abbd1){return _0x3abbd1;});return null;};}function handleEntityNotFound(_0x23f82c){return function(_0x30fb2c){return!_0x30fb2c&&_0x23f82c['sendStatus'](0x194),_0x30fb2c;};}function handleError(_0x430327,_0x16e81c){return _0x16e81c=_0x16e81c||0x1f4,function(_0x1df893){const _0x387367=a771_0x96e0;logger[_0x387367('0x30')](_0x1df893['stack']),_0x1df893['name']&&delete _0x1df893[_0x387367('0x32')],_0x430327[_0x387367('0x9')](_0x16e81c)[_0x387367('0x3c')](_0x1df893);};}exports[_0x213fff('0x23')]=function(_0x3bcf45,_0x3f5fa0){const _0x48ca3d=_0x213fff;let _0x44a092={};const _0x109bb8={},_0xa20b62={'count':0x0,'rows':[]},_0x21d034=_[_0x48ca3d('0x60')](db[_0x48ca3d('0x71')][_0x48ca3d('0x50')],function(_0x3731e8){const _0x246bc2=_0x48ca3d;return{'name':_0x3731e8['fieldName'],'type':_0x3731e8[_0x246bc2('0xc')]['key']};});_0x109bb8[_0x48ca3d('0x46')]=_['differenceBy'](_[_0x48ca3d('0x60')](_0x21d034,'name'),[_0x48ca3d('0x6')]),_0x109bb8[_0x48ca3d('0x1c')]=_[_0x48ca3d('0x4c')](_0x3bcf45['query']),_0x109bb8[_0x48ca3d('0x64')]=_['intersection'](_0x109bb8['model'],_0x109bb8[_0x48ca3d('0x1c')]),_0x44a092['attributes']=_[_0x48ca3d('0x36')](_0x109bb8[_0x48ca3d('0x46')],qs[_0x48ca3d('0x27')](_0x3bcf45['query'][_0x48ca3d('0x27')])),_0x44a092[_0x48ca3d('0x61')]=_0x44a092[_0x48ca3d('0x61')]['length']?_0x44a092[_0x48ca3d('0x61')]:_0x109bb8[_0x48ca3d('0x46')];typeof _0x3bcf45[_0x48ca3d('0x1c')][_0x48ca3d('0x72')]===_0x48ca3d('0x69')&&(_0x44a092['limit']=qs[_0x48ca3d('0x33')](_0x3bcf45[_0x48ca3d('0x1c')][_0x48ca3d('0x33')]),_0x44a092[_0x48ca3d('0x77')]=qs[_0x48ca3d('0x77')](_0x3bcf45['query'][_0x48ca3d('0x77')]));_0x44a092[_0x48ca3d('0x49')]=qs[_0x48ca3d('0x58')](_0x3bcf45[_0x48ca3d('0x1c')][_0x48ca3d('0x58')]),_0x44a092['where']=qs[_0x48ca3d('0x64')](_['pick'](_0x3bcf45[_0x48ca3d('0x1c')],_0x109bb8['filters']),_0x21d034);_0x3bcf45['query']['filter']&&(_0x44a092[_0x48ca3d('0x1b')]=_['merge'](_0x44a092[_0x48ca3d('0x1b')],{[Op['or']]:_['map'](_0x21d034,function(_0x3f8b93){const _0x5d8e89=_0x48ca3d;if(_0x3f8b93[_0x5d8e89('0xc')]!==_0x5d8e89('0x38')){const _0x29fa95={};return _0x29fa95[_0x3f8b93[_0x5d8e89('0x32')]]={[Op['like']]:'%'+_0x3bcf45[_0x5d8e89('0x1c')]['filter']+'%'},_0x29fa95;}})}));_0x44a092=_['merge']({},_0x44a092,_0x3bcf45['options']);const _0x1c787c={'where':_0x44a092[_0x48ca3d('0x1b')]};return db[_0x48ca3d('0x71')][_0x48ca3d('0x24')](_0x1c787c)[_0x48ca3d('0x34')](function(_0x49d5b4){const _0xed51d4=_0x48ca3d;return _0xa20b62[_0xed51d4('0x24')]=_0x49d5b4,_0x3bcf45[_0xed51d4('0x1c')]['includeAll']&&(_0x44a092['include']=[{'all':!![]}]),db[_0xed51d4('0x71')][_0xed51d4('0x52')](_0x44a092);})['then'](function(_0x174815){return _0xa20b62['rows']=_0x174815,_0xa20b62;})[_0x48ca3d('0x34')](respondWithFilteredResult(_0x3f5fa0,_0x44a092))[_0x48ca3d('0x20')](handleError(_0x3f5fa0,null));},exports[_0x213fff('0x41')]=function(_0x793eb,_0x1c6eb9){const _0x16ec01=_0x213fff;let _0x2035f1={'raw':![],'where':{'id':_0x793eb[_0x16ec01('0x5a')]['id']}};const _0x30681d={};return _0x30681d[_0x16ec01('0x46')]=_[_0x16ec01('0x4c')](db[_0x16ec01('0x71')][_0x16ec01('0x50')]),_0x30681d[_0x16ec01('0x1c')]=_[_0x16ec01('0x4c')](_0x793eb['query']),_0x30681d[_0x16ec01('0x64')]=_[_0x16ec01('0x36')](_0x30681d['model'],_0x30681d[_0x16ec01('0x1c')]),_0x2035f1['attributes']=_[_0x16ec01('0x36')](_0x30681d[_0x16ec01('0x46')],qs[_0x16ec01('0x27')](_0x793eb[_0x16ec01('0x1c')][_0x16ec01('0x27')])),_0x2035f1[_0x16ec01('0x61')]=_0x2035f1['attributes'][_0x16ec01('0x7')]?_0x2035f1['attributes']:_0x30681d[_0x16ec01('0x46')],_0x793eb['query'][_0x16ec01('0x76')]&&(_0x2035f1[_0x16ec01('0x2c')]=[{'all':!![]}]),_0x2035f1=_[_0x16ec01('0x6d')]({},_0x2035f1,_0x793eb[_0x16ec01('0x6e')]),db[_0x16ec01('0x71')][_0x16ec01('0x67')](_0x2035f1)[_0x16ec01('0x34')](handleEntityNotFound(_0x1c6eb9,null))[_0x16ec01('0x34')](respondWithResult(_0x1c6eb9,null))['catch'](handleError(_0x1c6eb9,null));},exports[_0x213fff('0x1f')]=function(_0x27808f,_0xea8c40){const _0x23ac6c=_0x213fff;return db[_0x23ac6c('0x71')][_0x23ac6c('0x1f')](_0x27808f[_0x23ac6c('0x1e')],{})[_0x23ac6c('0x34')](respondWithResult(_0xea8c40,0xc9))[_0x23ac6c('0x20')](handleError(_0xea8c40,null));},exports[_0x213fff('0x5c')]=function(_0x296f4e,_0x23fac7){const _0x885369=_0x213fff;return _0x296f4e[_0x885369('0x1e')]['id']&&delete _0x296f4e[_0x885369('0x1e')]['id'],db[_0x885369('0x71')]['findOne']({'where':{'id':_0x296f4e[_0x885369('0x5a')]['id']}})[_0x885369('0x34')](handleEntityNotFound(_0x23fac7,null))[_0x885369('0x34')](saveUpdates(_0x296f4e[_0x885369('0x1e')],null))[_0x885369('0x34')](respondWithResult(_0x23fac7,null))[_0x885369('0x20')](handleError(_0x23fac7,null));},exports[_0x213fff('0x5e')]=function(_0x25d61f,_0xf66fa2){const _0x437d2f=_0x213fff;return db['VoiceRecording']['describe']()[_0x437d2f('0x34')](respondWithResult(_0xf66fa2,null))[_0x437d2f('0x20')](handleError(_0xf66fa2,null));},exports[_0x213fff('0x17')]=function(_0x4b12e6,_0x26cd52){const _0x5d0baa=_0x213fff,_0x1ddd65=require(_0x5d0baa('0x11'));let _0x226519=![];const _0x4e4b77={};return _0x4b12e6[_0x5d0baa('0x1c')]['type']&&_0x4b12e6[_0x5d0baa('0x1c')][_0x5d0baa('0xc')]===_0x5d0baa('0xf')?_0x4e4b77[_0x5d0baa('0xf')]=_0x4b12e6[_0x5d0baa('0x5a')]['id']:_0x4e4b77['id']=_0x4b12e6[_0x5d0baa('0x5a')]['id'],db[_0x5d0baa('0x71')][_0x5d0baa('0x67')]({'where':_0x4e4b77,'attributes':['id',_0x5d0baa('0x3a')],'raw':!![]})['then'](handleEntityNotFound(_0x26cd52,null))[_0x5d0baa('0x34')](function(_0x3b8721){const _0x53a47f=_0x5d0baa;if(_0x3b8721){const _0x4dacbb=_0x3b8721['value'],_0x4bd24d=util['format']('%s.cypher',_0x4dacbb);if(fs['existsSync'](_0x4bd24d))return _0x226519=!![],_0x1ddd65[_0x53a47f('0x2f')](_0x4bd24d,_0x4dacbb,config['secrets'][_0x53a47f('0x6a')])['then'](function(){return _0x3b8721;});return _0x3b8721;}})['then'](function(_0x49121f){const _0x41f4f1=_0x5d0baa;if(_0x49121f){const _0x2b07f4=_0x49121f[_0x41f4f1('0x3a')];if(!fs['existsSync'](_0x2b07f4))throw new db['Sequelize'][(_0x41f4f1('0x6c'))](_0x41f4f1('0x0'));return _0x49121f[_0x41f4f1('0x57')]?_0x26cd52[_0x41f4f1('0x17')](_0x2b07f4,_0x49121f[_0x41f4f1('0x57')]+path[_0x41f4f1('0x29')](_0x2b07f4),function(){_0x226519&&fs['unlink'](_0x2b07f4);}):_0x26cd52[_0x41f4f1('0x17')](_0x2b07f4,function(){_0x226519&&fs['unlink'](_0x2b07f4);});}})[_0x5d0baa('0x20')](function(_0x3d7117){const _0x373d9f=_0x5d0baa;if(_0x3d7117['message']===_0x373d9f('0x0'))_0x26cd52[_0x373d9f('0x9')](0x194)[_0x373d9f('0x3c')](_0x373d9f('0x21'));else return handleError(_0x26cd52,null);});},exports['downloads']=function(_0x89193c,_0x1d546d){const _0x80d602=_0x213fff,_0x230fc9=require('../../components/encryptor');let _0x2aa178=![];const _0x3f58db={[Op[_0x80d602('0x8')]]:[db['sequelize'][_0x80d602('0x1b')](db['sequelize']['fn'](_0x80d602('0x75'),db[_0x80d602('0x22')][_0x80d602('0x63')](_0x80d602('0xf'))),_0x89193c[_0x80d602('0x1c')][_0x80d602('0x51')])]};return _0x89193c[_0x80d602('0x1c')][_0x80d602('0xc')]&&_0x89193c[_0x80d602('0x1c')]['type']===_0x80d602('0xf')?_0x3f58db['$and']['push']({'uniqueid':_0x89193c[_0x80d602('0x5a')]['id']}):_0x3f58db['$and'][_0x80d602('0xb')]({'id':_0x89193c[_0x80d602('0x5a')]['id']}),db[_0x80d602('0x71')][_0x80d602('0x67')]({'where':_0x3f58db,'attributes':['id',_0x80d602('0x3a')],'raw':!![]})['then'](handleEntityNotFound(_0x1d546d,null))[_0x80d602('0x34')](function(_0xda1974){const _0x461b83=_0x80d602;if(_0xda1974){const _0x1511ec=util[_0x461b83('0x6')](_0x461b83('0x31'),_0xda1974[_0x461b83('0x3a')]);if(fs['existsSync'](_0x1511ec))return _0x2aa178=!![],_0x230fc9[_0x461b83('0x2f')](_0x1511ec,_0xda1974['value'],config[_0x461b83('0x48')][_0x461b83('0x6a')])[_0x461b83('0x34')](function(){return _0xda1974;});return _0xda1974;}})[_0x80d602('0x34')](function(_0x5027cc){const _0x2c7e9a=_0x80d602;if(_0x5027cc){if(!fs['existsSync'](_0x5027cc[_0x2c7e9a('0x3a')]))throw new db['Sequelize'][(_0x2c7e9a('0x6c'))]('VoiceRecording\x20not\x20found');return _0x5027cc['filename']?_0x1d546d[_0x2c7e9a('0x17')](_0x5027cc[_0x2c7e9a('0x3a')],_0x5027cc[_0x2c7e9a('0x57')]+path[_0x2c7e9a('0x29')](_0x5027cc[_0x2c7e9a('0x3a')]),function(){const _0x3139b0=_0x2c7e9a;_0x2aa178&&fs[_0x3139b0('0x1')](_0x5027cc[_0x3139b0('0x3a')]);}):_0x1d546d[_0x2c7e9a('0x17')](_0x5027cc['value'],function(){const _0x31b294=_0x2c7e9a;_0x2aa178&&fs[_0x31b294('0x1')](_0x5027cc[_0x31b294('0x3a')]);});}})[_0x80d602('0x20')](handleError(_0x1d546d,null));},exports[_0x213fff('0x53')]=function(_0x1d50ff,_0x4df7bd){const _0x595bd3=_0x213fff;return db['VoiceRecording'][_0x595bd3('0x67')]({'where':{'id':_0x1d50ff['params']['id']}})[_0x595bd3('0x34')](function(_0x3727b2){const _0x416b95=_0x595bd3;if(!_0x3727b2)throw new ReferenceError(_0x416b95('0x4'));return _0x3727b2;})['then'](function(_0x50b08c){const _0x3565b4=_0x595bd3;let _0x433b79=_0x50b08c[_0x3565b4('0x3a')];return logger[_0x3565b4('0x39')]('cancellazione\x20fisica\x20documento\x20%s',_0x433b79),!_[_0x3565b4('0x16')](_0x50b08c[_0x3565b4('0x3a')])&&fs['existsSync'](_0x433b79)&&(logger[_0x3565b4('0x39')]('File:\x20\x22'+_0x433b79+_0x3565b4('0x2e')),fs['unlinkSync'](_0x433b79)),_0x433b79=_0x433b79+_0x3565b4('0x37'),!_[_0x3565b4('0x16')](_0x50b08c[_0x3565b4('0x3a')])&&fs['existsSync'](_0x433b79)&&(logger[_0x3565b4('0x39')](_0x3565b4('0x68')+_0x433b79+_0x3565b4('0x2e')),fs[_0x3565b4('0x59')](_0x433b79)),_0x50b08c;})[_0x595bd3('0x34')](function(_0x37757f){const _0x4eecad=_0x595bd3;if(!_0x37757f)throw new InternalError();return _0x37757f[_0x4eecad('0x53')]();})[_0x595bd3('0x34')](function(){const _0x49394a=_0x595bd3;_0x4df7bd[_0x49394a('0x9')](0xcc)['end']();})['catch'](handleError(_0x4df7bd,null));};function getBucketslist(_0x502a6f,_0x4aa013,_0x4264a4){return new Promise(function(_0x1e6025,_0x59984b){const _0x5e8bbf=a771_0x96e0,_0x13b9d6=new AWS['S3']({'accessKeyId':_0x4aa013,'secretAccessKey':_0x502a6f,'region':_0x4264a4});_0x13b9d6[_0x5e8bbf('0x15')]({},function(_0x4da223,_0x5d2e6c){return _0x4da223?_0x59984b(_0x4da223):_0x1e6025(_0x5d2e6c);});});}function createBucket(_0x5e4733,_0x25c768,_0x10ac4d,_0x21d432){return new Promise(function(_0x2d1bb8,_0x5b035e){const _0x36aae2=a771_0x96e0,_0x1bc531=new AWS['S3']({'accessKeyId':_0x25c768,'secretAccessKey':_0x5e4733,'region':_0x10ac4d});_0x1bc531[_0x36aae2('0x42')]({'Bucket':_0x21d432},function(_0x2f61ef,_0x1a86f5){return _0x2f61ef?_0x5b035e(_0x2f61ef):_0x2d1bb8(_0x1a86f5);});});}function uploadFile(_0x32430b,_0x32726a,_0x36c955,_0x2e12bc,_0x14ca73,_0x56315c){return new Promise(function(_0x5a8dca,_0x36ebda){const _0x1473c3=new AWS['S3']({'accessKeyId':_0x32726a,'secretAccessKey':_0x32430b,'region':_0x36c955});_0x1473c3['upload']({'Bucket':_0x2e12bc,'Key':_0x14ca73,'Body':_0x56315c},function(_0x4c5e0,_0x51b6cd){return _0x4c5e0?_0x36ebda(_0x4c5e0):_0x5a8dca(_0x51b6cd);});});}function startTranscribe(_0x49882f,_0x2a6a82,_0x437772,_0x261cca,_0x55b048,_0x168faf){return new Promise(function(_0x2557de,_0x284dde){const _0xdc7ae4=a771_0x96e0,_0x860c10=new AWS[(_0xdc7ae4('0x4f'))]({'accessKeyId':_0x2a6a82,'secretAccessKey':_0x49882f,'region':_0x437772});_0x860c10[_0xdc7ae4('0x40')]({'TranscriptionJobName':_0x261cca,'LanguageCode':_0x55b048,'Media':{'MediaFileUri':_0x168faf}},function(_0x30c259,_0x4ad850){return _0x30c259?_0x284dde(_0x30c259):_0x2557de(_0x4ad850);});});}function transcribe(_0x489e37,_0x3bcbcb,_0x1f9efa,_0x109257,_0x3f43eb,_0x33e8af,_0x1b0843){return new Promise(function(_0x5c3b53,_0x43ec62){const _0x10839f=a771_0x96e0,_0x45f41b={};return logger[_0x10839f('0x39')](util[_0x10839f('0x6')]('[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s',_0x489e37,_0x3f43eb)),uploadFile(_0x3bcbcb,_0x1f9efa,_0x109257,_0x3f43eb,path['basename'](_0x33e8af),fs[_0x10839f('0x5f')](_0x33e8af))[_0x10839f('0x34')](function(_0x4af968){const _0x403aa6=_0x10839f;return logger[_0x403aa6('0x39')](util['format'](_0x403aa6('0x14'),_0x489e37,_0x3f43eb,_0x4af968['Location'])),_0x45f41b[_0x403aa6('0x13')]=_0x4af968[_0x403aa6('0x45')],_0x45f41b[_0x403aa6('0x4a')]=_0x4af968['Location'],logger[_0x403aa6('0x39')](util['format'](_0x403aa6('0x4e'),_0x489e37)),startTranscribe(_0x3bcbcb,_0x1f9efa,_0x109257,uuidv4(),_0x1b0843,_0x4af968['Location']);})[_0x10839f('0x34')](function(_0x4d49ed){const _0x1679e3=_0x10839f;return logger[_0x1679e3('0x39')](util['format'](_0x1679e3('0x3d'),_0x489e37,_0x4d49ed['TranscriptionJob'][_0x1679e3('0xd')])),_0x45f41b[_0x1679e3('0x5d')]=_0x4d49ed[_0x1679e3('0x56')][_0x1679e3('0xd')],_0x45f41b[_0x1679e3('0x6b')]=_0x4d49ed[_0x1679e3('0x56')][_0x1679e3('0x4b')],_0x5c3b53(_0x45f41b);})['catch'](function(_0x5251c6){return _0x43ec62(_0x5251c6);});});}exports[_0x213fff('0x25')]=function(_0x60a1fc,_0x34d2c0){const _0x3bd70d=_0x213fff;let _0x231e8a,_0xb77b98,_0x2d229e;const _0x264f87=require(_0x3bd70d('0x11'));return db['VoiceRecording'][_0x3bd70d('0x67')]({'where':{'id':_0x60a1fc[_0x3bd70d('0x5a')]['id']}})[_0x3bd70d('0x34')](function(_0x2caf2e){const _0x46691b=_0x3bd70d;if(_0x2caf2e){const _0x3e086c=util['format'](_0x46691b('0x31'),_0x2caf2e[_0x46691b('0x3a')]);if(fs[_0x46691b('0x47')](_0x3e086c))return _0x264f87[_0x46691b('0x2f')](_0x3e086c,_0x2caf2e[_0x46691b('0x3a')],config['secrets']['recording'])[_0x46691b('0x34')](function(){return _0x2caf2e;});return _0x2caf2e;}})[_0x3bd70d('0x34')](function(_0x3185a3){const _0x23b6fa=_0x3bd70d;if(!_0x3185a3)throw new db[(_0x23b6fa('0x35'))][(_0x23b6fa('0x6c'))]('Voice\x20Recording\x20not\x20found');return _0xb77b98=_0x3185a3,db[_0x23b6fa('0x65')][_0x23b6fa('0x67')]({'where':{'id':0x1}});})[_0x3bd70d('0x34')](handleEntityNotFound(_0x34d2c0,null))[_0x3bd70d('0x34')](function(_0x11fa11){const _0x314da8=_0x3bd70d;if(_0x11fa11){_0x231e8a=_0x11fa11;if(!_0x231e8a[_0x314da8('0x2b')]||!_0x231e8a[_0x314da8('0x6f')]||!_0x231e8a[_0x314da8('0x66')]||!_0x231e8a[_0x314da8('0xa')]||!_0x231e8a[_0x314da8('0x13')])throw new db[(_0x314da8('0x35'))][(_0x314da8('0x6c'))](_0x314da8('0x26'));if(_0x60a1fc[_0x314da8('0x1e')]['runSentiment']&&(!_0x231e8a[_0x314da8('0x12')]||!_0x231e8a[_0x314da8('0x5b')]||!_0x231e8a[_0x314da8('0x2')]||!_0x231e8a['language']||!_0x231e8a[_0x314da8('0x13')]))throw new db[(_0x314da8('0x35'))][(_0x314da8('0x6c'))](_0x314da8('0x70'));return db[_0x314da8('0x2d')][_0x314da8('0x67')]({'where':{'id':_0x231e8a['transcribeAccountId']}});}})[_0x3bd70d('0x34')](function(_0xc94308){const _0x2cfac0=_0x3bd70d;if(!_0xc94308)throw new db[(_0x2cfac0('0x35'))]['ValidationError']('Cloud\x20Provider\x20not\x20available');if(!_0xc94308[_0x2cfac0('0x1a')]||!_0xc94308[_0x2cfac0('0x43')])throw new db['Sequelize'][(_0x2cfac0('0x6c'))]('Cloud\x20Provider\x20not\x20configured');return _0x2d229e=_0xc94308,getBucketslist(_0x2d229e['data1'],_0x2d229e['data2'],_0x231e8a[_0x2cfac0('0x66')]);})[_0x3bd70d('0x34')](function(_0x307004){const _0xb074bc=_0x3bd70d;if(_0x307004&&_0x307004[_0xb074bc('0x2a')]){const _0x140945=_[_0xb074bc('0x1d')](_0x307004['Buckets'],function(_0x2922c5){const _0x1f45a2=_0xb074bc;return _0x2922c5[_0x1f45a2('0x10')]===_0x231e8a[_0x1f45a2('0x13')];});if(!_0x140945)return logger[_0xb074bc('0x39')](util['format'](_0xb074bc('0x18'),_0x60a1fc[_0xb074bc('0x5a')]['id'],_0x231e8a['bucket'])),createBucket(_0x2d229e[_0xb074bc('0x1a')],_0x2d229e['data2'],_0x231e8a[_0xb074bc('0x66')],_0x231e8a[_0xb074bc('0x13')]);logger[_0xb074bc('0x39')](util[_0xb074bc('0x6')](_0xb074bc('0x62'),_0x60a1fc[_0xb074bc('0x5a')]['id'],_0x231e8a[_0xb074bc('0x13')]));return;}})['then'](function(){const _0x2866f2=_0x3bd70d;return _0xb77b98[_0x2866f2('0x6b')]==='NEW'?transcribe(_0x60a1fc[_0x2866f2('0x5a')]['id'],_0x2d229e[_0x2866f2('0x1a')],_0x2d229e[_0x2866f2('0x43')],_0x231e8a[_0x2866f2('0x66')],_0x231e8a[_0x2866f2('0x13')],_0xb77b98[_0x2866f2('0x3a')],_0x231e8a['language']):(logger['info'](util[_0x2866f2('0x6')]('[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested',_0x60a1fc[_0x2866f2('0x5a')]['id'])),{'transcribeStatus':'IN_PROGRESS'});})[_0x3bd70d('0x34')](function(_0x2e0864){const _0x5bac27=_0x3bd70d;if(_0x2e0864)return _0x2e0864[_0x5bac27('0x5')]=_0x60a1fc[_0x5bac27('0x1e')][_0x5bac27('0x3f')],_0xb77b98[_0x5bac27('0x5c')](_0x2e0864);})['then'](respondWithResult(_0x34d2c0,null))[_0x3bd70d('0x20')](handleError(_0x34d2c0,null));};function writeFile(_0x4d121b,_0xf94139){return new Promise(function(_0x4dc02d,_0x58a84a){const _0x982392=a771_0x96e0;fs[_0x982392('0x73')](_0xf94139,_0x4d121b,function(_0x65948f,_0x47f69e){return _0x65948f?_0x58a84a(_0x65948f):_0x4dc02d(_0x47f69e);});});}exports[_0x213fff('0x3')]=function(_0x16252d,_0x321998){const _0x35de6e=_0x213fff;return db[_0x35de6e('0x71')][_0x35de6e('0x67')]({'where':{'id':_0x16252d[_0x35de6e('0x5a')]['id']}})[_0x35de6e('0x34')](handleEntityNotFound(_0x321998))[_0x35de6e('0x34')](function(_0x4a9877){const _0x273fd3=_0x35de6e;if(_0x4a9877&&_0x4a9877['fileText']){const _0x41418e=_0x4a9877['fileText'],_0xdeb644=config['root']+_0x273fd3('0x3e')+_0x4a9877['id']+_0x273fd3('0x44');if(fs[_0x273fd3('0x47')](_0xdeb644))return _0xdeb644;return writeFile(_0x41418e,_0xdeb644)[_0x273fd3('0x34')](function(){return _0xdeb644;});}else throw new db[(_0x273fd3('0x35'))][(_0x273fd3('0x6c'))]('Transcript\x20not\x20available');})['then'](function(_0xa2372d){const _0x1b0f1f=_0x35de6e;return _0x321998[_0x1b0f1f('0x17')](_0xa2372d);})[_0x35de6e('0x20')](handleError(_0x321998));}; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.model.js b/server/api/voiceRecording/voiceRecording.model.js index ebd74b0..e506462 100644 --- a/server/api/voiceRecording/voiceRecording.model.js +++ b/server/api/voiceRecording/voiceRecording.model.js @@ -1 +1 @@ -const a772_0x2b86=['VoiceRecording','uniqueid','exports','define','voice_recordings'];(function(_0x527bc7,_0x2b8687){const _0x5b8eec=function(_0x4b1b3c){while(--_0x4b1b3c){_0x527bc7['push'](_0x527bc7['shift']());}};_0x5b8eec(++_0x2b8687);}(a772_0x2b86,0xbc));const a772_0x5b8e=function(_0x527bc7,_0x2b8687){_0x527bc7=_0x527bc7-0x0;let _0x5b8eec=a772_0x2b86[_0x527bc7];return _0x5b8eec;};const _0x3142e8=a772_0x5b8e;'use strict';const attributes=require('./voiceRecording.attributes');module[_0x3142e8('0x4')]=function(_0x4b1b3c){const _0x4ff18a=_0x3142e8,_0x94308=_0x4b1b3c[_0x4ff18a('0x0')](_0x4ff18a('0x2'),attributes,{'tableName':_0x4ff18a('0x1'),'paranoid':![],'indexes':[{'name':_0x4ff18a('0x3'),'fields':['uniqueid']}],'timestamps':!![]});return _0x94308;}; \ No newline at end of file +const a772_0x4107=['uniqueid','define','voice_recordings'];(function(_0x8b162e,_0x4107cd){const _0x553072=function(_0x539e55){while(--_0x539e55){_0x8b162e['push'](_0x8b162e['shift']());}};_0x553072(++_0x4107cd);}(a772_0x4107,0xa6));const a772_0x5530=function(_0x8b162e,_0x4107cd){_0x8b162e=_0x8b162e-0x0;let _0x553072=a772_0x4107[_0x8b162e];return _0x553072;};'use strict';const attributes=require('./voiceRecording.attributes');module['exports']=function(_0x539e55){const _0x272cd4=a772_0x5530,_0x268805=_0x539e55[_0x272cd4('0x0')]('VoiceRecording',attributes,{'tableName':_0x272cd4('0x1'),'paranoid':![],'indexes':[{'name':_0x272cd4('0x2'),'fields':[_0x272cd4('0x2')]}],'timestamps':!![]});return _0x268805;}; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.rpc.js b/server/api/voiceRecording/voiceRecording.rpc.js index 777cfc4..c967acb 100644 --- a/server/api/voiceRecording/voiceRecording.rpc.js +++ b/server/api/voiceRecording/voiceRecording.rpc.js @@ -1 +1 @@ -const a773_0x5f4c=['Setting','VoiceRecording','create','where','catch','rpc','debug','CreateVoiceRecording','CreateVoiceRecording\x20file\x20encrypted','../../config/logger','body','../../config/environment','error','secrets','callRecordingEncryption','UpdateVoiceRecording','%s.cypher','then','unlink','format','attributes','message','stringify','update','raw','info','limit','value','util','encryptFile','recording','options'];(function(_0x337d6e,_0x5f4cb1){const _0x3f7b1f=function(_0x11afd9){while(--_0x11afd9){_0x337d6e['push'](_0x337d6e['shift']());}};_0x3f7b1f(++_0x5f4cb1);}(a773_0x5f4c,0xdd));const a773_0x3f7b=function(_0x337d6e,_0x5f4cb1){_0x337d6e=_0x337d6e-0x0;let _0x3f7b1f=a773_0x5f4c[_0x337d6e];return _0x3f7b1f;};const _0x56be68=a773_0x3f7b;'use strict';const util=require(_0x56be68('0x1f')),fs=require('fs'),db=require('../../mysqldb')['db'],logger=require(_0x56be68('0xc'))(_0x56be68('0x8')),config=require(_0x56be68('0xe'));exports[_0x56be68('0x12')]=function(_0x11afd9){const _0x378baa=this;return new Promise(function(_0x14eb9b,_0xea38cd){const _0x1c1bed=a773_0x3f7b;return db[_0x1c1bed('0x4')][_0x1c1bed('0x1a')](_0x11afd9['body'],{'raw':_0x11afd9['options']?_0x11afd9[_0x1c1bed('0x2')][_0x1c1bed('0x1b')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x11afd9[_0x1c1bed('0x2')]?_0x11afd9['options'][_0x1c1bed('0x6')]||null:null,'attributes':_0x11afd9[_0x1c1bed('0x2')]?_0x11afd9['options'][_0x1c1bed('0x17')]||null:null,'limit':_0x11afd9[_0x1c1bed('0x2')]?_0x11afd9[_0x1c1bed('0x2')][_0x1c1bed('0x1d')]||null:null})[_0x1c1bed('0x14')](function(_0x578a60){const _0xfd43b9=_0x1c1bed;logger[_0xfd43b9('0x1c')]('UpdateVoiceRecording',_0x11afd9),logger[_0xfd43b9('0x9')](_0xfd43b9('0x12'),_0x11afd9,JSON[_0xfd43b9('0x19')](_0x578a60)),_0x14eb9b(_0x578a60);})['catch'](function(_0x4d180b){const _0x13f380=_0x1c1bed;logger[_0x13f380('0xf')](_0x13f380('0x12'),_0x4d180b[_0x13f380('0x18')],_0x11afd9),_0xea38cd(_0x378baa[_0x13f380('0xf')](0x1f4,_0x4d180b[_0x13f380('0x18')]));});});},exports['CreateVoiceRecording']=function(_0x13bfd3){const _0x584e2f=this;return new Promise(function(_0x166de9,_0x3c7ef2){const _0x4f0a4d=a773_0x3f7b,_0x5c1141=require('../../components/encryptor');let _0x59bdc8;return db[_0x4f0a4d('0x3')]['findOne']({'attributes':['id',_0x4f0a4d('0x11')],'where':{'id':0x1},'raw':!![]})[_0x4f0a4d('0x14')](function(_0x5ef46a){const _0x1ab226=_0x4f0a4d;return _0x59bdc8=_0x5ef46a,db[_0x1ab226('0x4')][_0x1ab226('0x5')](_0x13bfd3[_0x1ab226('0xd')]);})[_0x4f0a4d('0x14')](function(_0xb726d2){const _0x926bb8=_0x4f0a4d;if(_0x59bdc8[_0x926bb8('0x11')]&&fs['existsSync'](_0xb726d2[_0x926bb8('0x1e')])){const _0x146b44=util[_0x926bb8('0x16')](_0x926bb8('0x13'),_0xb726d2['value']);return _0x5c1141[_0x926bb8('0x0')](_0xb726d2[_0x926bb8('0x1e')],_0x146b44,config[_0x926bb8('0x10')][_0x926bb8('0x1')])[_0x926bb8('0x14')](function(){const _0x528e60=_0x926bb8;return fs[_0x528e60('0x15')](_0xb726d2[_0x528e60('0x1e')]),logger[_0x528e60('0x1c')](_0x528e60('0xb')),_0xb726d2;});}return _0xb726d2;})[_0x4f0a4d('0x14')](function(_0x27d6d0){const _0x361238=_0x4f0a4d;logger['info'](_0x361238('0xa'),_0x13bfd3),logger[_0x361238('0x9')](_0x361238('0xa'),_0x13bfd3,JSON[_0x361238('0x19')](_0x27d6d0)),_0x166de9(_0x27d6d0);})[_0x4f0a4d('0x7')](function(_0x34fdd7){const _0x788f10=_0x4f0a4d;logger[_0x788f10('0xf')]('CreateVoiceRecording',_0x34fdd7[_0x788f10('0x18')],_0x13bfd3),_0x3c7ef2(_0x584e2f['error'](0x1f4,_0x34fdd7[_0x788f10('0x18')]));});});}; \ No newline at end of file +const a773_0x44ee=['then','value','VoiceRecording','../../config/environment','secrets','create','body','../../components/encryptor','update','info','unlink','error','existsSync','%s.cypher','message','debug','stringify','options','raw','Setting','UpdateVoiceRecording','attributes','CreateVoiceRecording','../../config/logger','../../mysqldb','util','rpc','catch','recording','callRecordingEncryption'];(function(_0x5d67f0,_0x44eea2){const _0x41e8a9=function(_0x31bdfe){while(--_0x31bdfe){_0x5d67f0['push'](_0x5d67f0['shift']());}};_0x41e8a9(++_0x44eea2);}(a773_0x44ee,0xb2));const a773_0x41e8=function(_0x5d67f0,_0x44eea2){_0x5d67f0=_0x5d67f0-0x0;let _0x41e8a9=a773_0x44ee[_0x5d67f0];return _0x41e8a9;};const _0x521cc1=a773_0x41e8;'use strict';const util=require(_0x521cc1('0x1b')),fs=require('fs'),db=require(_0x521cc1('0x1a'))['db'],logger=require(_0x521cc1('0x19'))(_0x521cc1('0x1c')),config=require(_0x521cc1('0x5'));exports['UpdateVoiceRecording']=function(_0x31bdfe){const _0x2cea1c=this;return new Promise(function(_0x2a613b,_0x40a85f){const _0x5cd356=a773_0x41e8;return db['VoiceRecording'][_0x5cd356('0xa')](_0x31bdfe[_0x5cd356('0x8')],{'raw':_0x31bdfe[_0x5cd356('0x13')]?_0x31bdfe['options'][_0x5cd356('0x14')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x31bdfe[_0x5cd356('0x13')]?_0x31bdfe[_0x5cd356('0x13')]['where']||null:null,'attributes':_0x31bdfe[_0x5cd356('0x13')]?_0x31bdfe[_0x5cd356('0x13')][_0x5cd356('0x17')]||null:null,'limit':_0x31bdfe[_0x5cd356('0x13')]?_0x31bdfe[_0x5cd356('0x13')]['limit']||null:null})[_0x5cd356('0x2')](function(_0x4ab17f){const _0x5b118c=_0x5cd356;logger[_0x5b118c('0xb')]('UpdateVoiceRecording',_0x31bdfe),logger[_0x5b118c('0x11')](_0x5b118c('0x16'),_0x31bdfe,JSON[_0x5b118c('0x12')](_0x4ab17f)),_0x2a613b(_0x4ab17f);})[_0x5cd356('0x1d')](function(_0x1306f9){const _0x292c3c=_0x5cd356;logger['error'](_0x292c3c('0x16'),_0x1306f9[_0x292c3c('0x10')],_0x31bdfe),_0x40a85f(_0x2cea1c[_0x292c3c('0xd')](0x1f4,_0x1306f9[_0x292c3c('0x10')]));});});},exports['CreateVoiceRecording']=function(_0x47b2e8){const _0x3fc4bc=this;return new Promise(function(_0xeb5cdb,_0x2e5e40){const _0x458c11=a773_0x41e8,_0x29c4c9=require(_0x458c11('0x9'));let _0x3d8fb8;return db[_0x458c11('0x15')]['findOne']({'attributes':['id',_0x458c11('0x1')],'where':{'id':0x1},'raw':!![]})[_0x458c11('0x2')](function(_0x36c265){const _0x58df7f=_0x458c11;return _0x3d8fb8=_0x36c265,db[_0x58df7f('0x4')][_0x58df7f('0x7')](_0x47b2e8['body']);})['then'](function(_0x16f7c7){const _0x12b21c=_0x458c11;if(_0x3d8fb8[_0x12b21c('0x1')]&&fs[_0x12b21c('0xe')](_0x16f7c7[_0x12b21c('0x3')])){const _0x189031=util['format'](_0x12b21c('0xf'),_0x16f7c7[_0x12b21c('0x3')]);return _0x29c4c9['encryptFile'](_0x16f7c7[_0x12b21c('0x3')],_0x189031,config[_0x12b21c('0x6')][_0x12b21c('0x0')])['then'](function(){const _0x301bff=_0x12b21c;return fs[_0x301bff('0xc')](_0x16f7c7[_0x301bff('0x3')]),logger['info']('CreateVoiceRecording\x20file\x20encrypted'),_0x16f7c7;});}return _0x16f7c7;})[_0x458c11('0x2')](function(_0x317591){const _0x5e7384=_0x458c11;logger[_0x5e7384('0xb')](_0x5e7384('0x18'),_0x47b2e8),logger[_0x5e7384('0x11')](_0x5e7384('0x18'),_0x47b2e8,JSON[_0x5e7384('0x12')](_0x317591)),_0xeb5cdb(_0x317591);})[_0x458c11('0x1d')](function(_0x526973){const _0x289645=_0x458c11;logger[_0x289645('0xd')](_0x289645('0x18'),_0x526973[_0x289645('0x10')],_0x47b2e8),_0x2e5e40(_0x3fc4bc[_0x289645('0xd')](0x1f4,_0x526973[_0x289645('0x10')]));});});}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/index.js b/server/api/voiceTransferReport/index.js index 3e36972..e51bf53 100644 --- a/server/api/voiceTransferReport/index.js +++ b/server/api/voiceTransferReport/index.js @@ -1 +1 @@ -const a774_0x2ae0=['isAuthenticated','delete','index','express','destroy','get','create','./voiceTransferReport.controller','/:id','../../components/auth/service'];(function(_0x28484b,_0x2ae03b){const _0x3e5809=function(_0x8c3f34){while(--_0x8c3f34){_0x28484b['push'](_0x28484b['shift']());}};_0x3e5809(++_0x2ae03b);}(a774_0x2ae0,0x196));const a774_0x3e58=function(_0x28484b,_0x2ae03b){_0x28484b=_0x28484b-0x0;let _0x3e5809=a774_0x2ae0[_0x28484b];return _0x3e5809;};const _0x119452=a774_0x3e58;'use strict';const express=require(_0x119452('0x7')),router=express['Router'](),auth=require(_0x119452('0x3')),controller=require(_0x119452('0x1'));router[_0x119452('0x9')]('/',auth[_0x119452('0x4')](),controller[_0x119452('0x6')]),router['get'](_0x119452('0x2'),auth[_0x119452('0x4')](),controller['show']),router['post']('/',auth[_0x119452('0x4')](),controller[_0x119452('0x0')]),router['put'](_0x119452('0x2'),auth['isAuthenticated'](),controller['update']),router[_0x119452('0x5')](_0x119452('0x2'),auth[_0x119452('0x4')](),controller[_0x119452('0x8')]),module['exports']=router; \ No newline at end of file +const a774_0x2e11=['isAuthenticated','post','create','../../components/auth/service','show','update','destroy','delete','get','put','index','express','/:id','exports','Router'];(function(_0x12bc5f,_0x2e1133){const _0x3a5260=function(_0x1d81db){while(--_0x1d81db){_0x12bc5f['push'](_0x12bc5f['shift']());}};_0x3a5260(++_0x2e1133);}(a774_0x2e11,0x148));const a774_0x3a52=function(_0x12bc5f,_0x2e1133){_0x12bc5f=_0x12bc5f-0x0;let _0x3a5260=a774_0x2e11[_0x12bc5f];return _0x3a5260;};const _0x3b9c8f=a774_0x3a52;'use strict';const express=require(_0x3b9c8f('0xd')),router=express[_0x3b9c8f('0x1')](),auth=require(_0x3b9c8f('0x5')),controller=require('./voiceTransferReport.controller');router[_0x3b9c8f('0xa')]('/',auth[_0x3b9c8f('0x2')](),controller[_0x3b9c8f('0xc')]),router[_0x3b9c8f('0xa')](_0x3b9c8f('0xe'),auth['isAuthenticated'](),controller[_0x3b9c8f('0x6')]),router[_0x3b9c8f('0x3')]('/',auth[_0x3b9c8f('0x2')](),controller[_0x3b9c8f('0x4')]),router[_0x3b9c8f('0xb')](_0x3b9c8f('0xe'),auth['isAuthenticated'](),controller[_0x3b9c8f('0x7')]),router[_0x3b9c8f('0x9')](_0x3b9c8f('0xe'),auth['isAuthenticated'](),controller[_0x3b9c8f('0x8')]),module[_0x3b9c8f('0x0')]=router; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.attributes.js b/server/api/voiceTransferReport/voiceTransferReport.attributes.js index 21d3249..9bf4d2f 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.attributes.js +++ b/server/api/voiceTransferReport/voiceTransferReport.attributes.js @@ -1 +1 @@ -const a775_0x481c=['exports','ENUM','attended','STRING','Yes','blind'];(function(_0x1ef212,_0x481cb4){const _0x4f4d27=function(_0x48ca71){while(--_0x48ca71){_0x1ef212['push'](_0x1ef212['shift']());}};_0x4f4d27(++_0x481cb4);}(a775_0x481c,0x1d1));const a775_0x4f4d=function(_0x1ef212,_0x481cb4){_0x1ef212=_0x1ef212-0x0;let _0x4f4d27=a775_0x481c[_0x1ef212];return _0x4f4d27;};const _0x32b5e4=a775_0x4f4d;'use strict';const Sequelize=require('sequelize');module[_0x32b5e4('0x3')]={'type':{'type':Sequelize[_0x32b5e4('0x4')](_0x32b5e4('0x2'),_0x32b5e4('0x5'))},'result':{'type':Sequelize[_0x32b5e4('0x0')]},'transfererchannel':{'type':Sequelize[_0x32b5e4('0x0')]},'transferercalleridnum':{'type':Sequelize[_0x32b5e4('0x0')]},'transferercalleridname':{'type':Sequelize[_0x32b5e4('0x0')]},'transfererconnectedlinenum':{'type':Sequelize['STRING']},'transfererconnectedlinename':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereraccountcode':{'type':Sequelize['STRING']},'transferercontext':{'type':Sequelize['STRING']},'transfererexten':{'type':Sequelize['STRING']},'transfererlinkedid':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereechannel':{'type':Sequelize['STRING']},'transfereecalleridnum':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereecalleridname':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereeconnectedlinenum':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereeconnectedlinename':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereeaccountcode':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereecontext':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereeexten':{'type':Sequelize[_0x32b5e4('0x0')]},'transfereelinkedid':{'type':Sequelize[_0x32b5e4('0x0')]},'isexternal':{'type':Sequelize[_0x32b5e4('0x4')](_0x32b5e4('0x1'),'No')},'context':{'type':Sequelize['STRING']},'extension':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a775_0x1f0b=['Yes','attended','sequelize','STRING'];(function(_0x65bcfb,_0x1f0bc8){const _0x1347dd=function(_0x26d7e3){while(--_0x26d7e3){_0x65bcfb['push'](_0x65bcfb['shift']());}};_0x1347dd(++_0x1f0bc8);}(a775_0x1f0b,0x173));const a775_0x1347=function(_0x65bcfb,_0x1f0bc8){_0x65bcfb=_0x65bcfb-0x0;let _0x1347dd=a775_0x1f0b[_0x65bcfb];return _0x1347dd;};const _0x19e36b=a775_0x1347;'use strict';const Sequelize=require(_0x19e36b('0x3'));module['exports']={'type':{'type':Sequelize['ENUM']('blind',_0x19e36b('0x2'))},'result':{'type':Sequelize[_0x19e36b('0x0')]},'transfererchannel':{'type':Sequelize[_0x19e36b('0x0')]},'transferercalleridnum':{'type':Sequelize[_0x19e36b('0x0')]},'transferercalleridname':{'type':Sequelize[_0x19e36b('0x0')]},'transfererconnectedlinenum':{'type':Sequelize[_0x19e36b('0x0')]},'transfererconnectedlinename':{'type':Sequelize['STRING']},'transfereraccountcode':{'type':Sequelize['STRING']},'transferercontext':{'type':Sequelize['STRING']},'transfererexten':{'type':Sequelize[_0x19e36b('0x0')]},'transfererlinkedid':{'type':Sequelize['STRING']},'transfereechannel':{'type':Sequelize['STRING']},'transfereecalleridnum':{'type':Sequelize[_0x19e36b('0x0')]},'transfereecalleridname':{'type':Sequelize[_0x19e36b('0x0')]},'transfereeconnectedlinenum':{'type':Sequelize['STRING']},'transfereeconnectedlinename':{'type':Sequelize[_0x19e36b('0x0')]},'transfereeaccountcode':{'type':Sequelize[_0x19e36b('0x0')]},'transfereecontext':{'type':Sequelize[_0x19e36b('0x0')]},'transfereeexten':{'type':Sequelize['STRING']},'transfereelinkedid':{'type':Sequelize['STRING']},'isexternal':{'type':Sequelize['ENUM'](_0x19e36b('0x1'),'No')},'context':{'type':Sequelize[_0x19e36b('0x0')]},'extension':{'type':Sequelize[_0x19e36b('0x0')]}}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.controller.js b/server/api/voiceTransferReport/voiceTransferReport.controller.js index 92b431c..eab83bd 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.controller.js +++ b/server/api/voiceTransferReport/voiceTransferReport.controller.js @@ -1 +1 @@ -const a776_0x5ef3=['params','nolimit','rawAttributes','show','limit','pick','destroy','attributes','create','keys','index','VoiceTransferReport','update','map','sendStatus','key','json','VIRTUAL','filters','send','body','merge','model','findOne','catch','filter','options','undefined','../../components/parsers/qs','sequelize','status','intersection','fieldName','api','offset','length','name','../../config/logger','then','sort','count','rows','includeAll','where','query','error','../../mysqldb','end','lodash','type'];(function(_0x3fba48,_0x5ef3a3){const _0x5e9577=function(_0xaba38c){while(--_0xaba38c){_0x3fba48['push'](_0x3fba48['shift']());}};_0x5e9577(++_0x5ef3a3);}(a776_0x5ef3,0x17b));const a776_0x5e95=function(_0x3fba48,_0x5ef3a3){_0x3fba48=_0x3fba48-0x0;let _0x5e9577=a776_0x5ef3[_0x3fba48];return _0x5e9577;};const _0x5a8cc6=a776_0x5e95;'use strict';const _=require(_0x5a8cc6('0x13')),qs=require(_0x5a8cc6('0x31')),logger=require(_0x5a8cc6('0x8'))(_0x5a8cc6('0x4')),db=require(_0x5a8cc6('0x11'))['db'],{Op}=require(_0x5a8cc6('0x0'));function respondWithResult(_0xaba38c,_0x2fa112){return _0x2fa112=_0x2fa112||0xc8,function(_0x2263b8){const _0x5aa941=a776_0x5e95;if(_0x2263b8)return _0xaba38c[_0x5aa941('0x1')](_0x2fa112)[_0x5aa941('0x25')](_0x2263b8);};}function respondWithFilteredResult(_0xb6d499,_0x237b74){return function(_0xc1d230){const _0x3627e2=a776_0x5e95;if(_0xc1d230){const _0x3357ec=_0xc1d230[_0x3627e2('0xb')],_0x164180=_0x237b74[_0x3627e2('0x5')];let _0x373d1b=_0x237b74[_0x3627e2('0x5')]+_0x237b74[_0x3627e2('0x19')],_0x131e81;return _0x373d1b>=_0x3357ec?(_0x373d1b=_0x3357ec,_0x131e81=0xc8):_0x131e81=0xce,_0xb6d499[_0x3627e2('0x1')](_0x131e81),_0xb6d499['set']('Content-Range',_0x164180+'-'+_0x373d1b+'/'+_0x3357ec)[_0x3627e2('0x25')](_0xc1d230);}return null;};}function saveUpdates(_0x44bd59){return function(_0x1797b3){const _0x2e54ff=a776_0x5e95;if(_0x1797b3)return _0x1797b3[_0x2e54ff('0x21')](_0x44bd59)[_0x2e54ff('0x9')](function(_0x5642be){return _0x5642be;});return null;};}function removeEntity(_0x2ac242){return function(_0x15d97a){const _0x58692d=a776_0x5e95;if(_0x15d97a)return _0x15d97a['destroy']()[_0x58692d('0x9')](function(){const _0x14ba8d=_0x58692d;_0x2ac242[_0x14ba8d('0x1')](0xcc)[_0x14ba8d('0x12')]();});};}function handleEntityNotFound(_0x31c8b1){return function(_0x59257b){const _0x2aff85=a776_0x5e95;return!_0x59257b&&_0x31c8b1[_0x2aff85('0x23')](0x194),_0x59257b;};}function handleError(_0x17a698,_0x12a2ff){return _0x12a2ff=_0x12a2ff||0x1f4,function(_0x283ff4){const _0x553f05=a776_0x5e95;logger[_0x553f05('0x10')](_0x283ff4['stack']),_0x283ff4['name']&&delete _0x283ff4[_0x553f05('0x7')],_0x17a698[_0x553f05('0x1')](_0x12a2ff)[_0x553f05('0x28')](_0x283ff4);};}exports[_0x5a8cc6('0x1f')]=function(_0x431ada,_0x33bcb3){const _0x427d58=_0x5a8cc6;let _0x150672={};const _0x3fa4d6={},_0x36583d={'count':0x0,'rows':[]},_0x496f39=_[_0x427d58('0x22')](db[_0x427d58('0x20')][_0x427d58('0x17')],function(_0x544966){const _0x1dc1e6=_0x427d58;return{'name':_0x544966[_0x1dc1e6('0x3')],'type':_0x544966[_0x1dc1e6('0x14')][_0x1dc1e6('0x24')]};});_0x3fa4d6[_0x427d58('0x2b')]=_[_0x427d58('0x22')](_0x496f39,_0x427d58('0x7')),_0x3fa4d6[_0x427d58('0xf')]=_[_0x427d58('0x1e')](_0x431ada[_0x427d58('0xf')]),_0x3fa4d6[_0x427d58('0x27')]=_['intersection'](_0x3fa4d6[_0x427d58('0x2b')],_0x3fa4d6[_0x427d58('0xf')]),_0x150672[_0x427d58('0x1c')]=_[_0x427d58('0x2')](_0x3fa4d6[_0x427d58('0x2b')],qs['fields'](_0x431ada[_0x427d58('0xf')]['fields'])),_0x150672['attributes']=_0x150672[_0x427d58('0x1c')][_0x427d58('0x6')]?_0x150672[_0x427d58('0x1c')]:_0x3fa4d6[_0x427d58('0x2b')];typeof _0x431ada[_0x427d58('0xf')][_0x427d58('0x16')]===_0x427d58('0x30')&&(_0x150672['limit']=qs['limit'](_0x431ada[_0x427d58('0xf')][_0x427d58('0x19')]),_0x150672[_0x427d58('0x5')]=qs[_0x427d58('0x5')](_0x431ada[_0x427d58('0xf')][_0x427d58('0x5')]));_0x150672['order']=qs[_0x427d58('0xa')](_0x431ada[_0x427d58('0xf')][_0x427d58('0xa')]),_0x150672['where']=qs['filters'](_[_0x427d58('0x1a')](_0x431ada[_0x427d58('0xf')],_0x3fa4d6[_0x427d58('0x27')]),_0x496f39);_0x431ada['query'][_0x427d58('0x2e')]&&(_0x150672[_0x427d58('0xe')]=_[_0x427d58('0x2a')](_0x150672[_0x427d58('0xe')],{[Op['or']]:_[_0x427d58('0x22')](_0x496f39,function(_0x4c8a06){const _0x4b065c=_0x427d58;if(_0x4c8a06[_0x4b065c('0x14')]!==_0x4b065c('0x26')){const _0x135e42={};return _0x135e42[_0x4c8a06[_0x4b065c('0x7')]]={[Op['like']]:'%'+_0x431ada[_0x4b065c('0xf')]['filter']+'%'},_0x135e42;}})}));_0x150672=_[_0x427d58('0x2a')]({},_0x150672,_0x431ada[_0x427d58('0x2f')]);const _0x54e57f={'where':_0x150672['where']};return db[_0x427d58('0x20')]['count'](_0x54e57f)[_0x427d58('0x9')](function(_0x68ecbe){const _0x50fb91=_0x427d58;return _0x36583d['count']=_0x68ecbe,_0x431ada[_0x50fb91('0xf')][_0x50fb91('0xd')]&&(_0x150672['include']=[{'all':!![]}]),db[_0x50fb91('0x20')]['findAll'](_0x150672);})[_0x427d58('0x9')](function(_0x52ea72){const _0x446033=_0x427d58;return _0x36583d[_0x446033('0xc')]=_0x52ea72,_0x36583d;})[_0x427d58('0x9')](respondWithFilteredResult(_0x33bcb3,_0x150672))[_0x427d58('0x2d')](handleError(_0x33bcb3,null));},exports[_0x5a8cc6('0x18')]=function(_0x1e9d0a,_0x3af74b){const _0x46f605=_0x5a8cc6;let _0x4d766b={'raw':!![],'where':{'id':_0x1e9d0a[_0x46f605('0x15')]['id']}};const _0x31ffe7={};return _0x31ffe7['model']=_[_0x46f605('0x1e')](db['VoiceTransferReport']['rawAttributes']),_0x31ffe7['query']=_[_0x46f605('0x1e')](_0x1e9d0a[_0x46f605('0xf')]),_0x31ffe7[_0x46f605('0x27')]=_[_0x46f605('0x2')](_0x31ffe7[_0x46f605('0x2b')],_0x31ffe7[_0x46f605('0xf')]),_0x4d766b[_0x46f605('0x1c')]=_[_0x46f605('0x2')](_0x31ffe7[_0x46f605('0x2b')],qs['fields'](_0x1e9d0a[_0x46f605('0xf')]['fields'])),_0x4d766b['attributes']=_0x4d766b[_0x46f605('0x1c')][_0x46f605('0x6')]?_0x4d766b[_0x46f605('0x1c')]:_0x31ffe7[_0x46f605('0x2b')],_0x1e9d0a['query']['includeAll']&&(_0x4d766b['include']=[{'all':!![]}]),_0x4d766b=_['merge']({},_0x4d766b,_0x1e9d0a[_0x46f605('0x2f')]),db[_0x46f605('0x20')][_0x46f605('0x2c')](_0x4d766b)['then'](handleEntityNotFound(_0x3af74b,null))['then'](respondWithResult(_0x3af74b,null))[_0x46f605('0x2d')](handleError(_0x3af74b,null));},exports['create']=function(_0x44cae8,_0x1f042e){const _0x22949f=_0x5a8cc6;return db[_0x22949f('0x20')][_0x22949f('0x1d')](_0x44cae8[_0x22949f('0x29')],{})['then'](respondWithResult(_0x1f042e,0xc9))[_0x22949f('0x2d')](handleError(_0x1f042e,null));},exports[_0x5a8cc6('0x21')]=function(_0x3e9659,_0x4c068e){const _0x2c77d6=_0x5a8cc6;return _0x3e9659[_0x2c77d6('0x29')]['id']&&delete _0x3e9659['body']['id'],db[_0x2c77d6('0x20')][_0x2c77d6('0x2c')]({'where':{'id':_0x3e9659[_0x2c77d6('0x15')]['id']}})[_0x2c77d6('0x9')](handleEntityNotFound(_0x4c068e,null))[_0x2c77d6('0x9')](saveUpdates(_0x3e9659[_0x2c77d6('0x29')],null))[_0x2c77d6('0x9')](respondWithResult(_0x4c068e,null))[_0x2c77d6('0x2d')](handleError(_0x4c068e,null));},exports[_0x5a8cc6('0x1b')]=function(_0x6ca34,_0x116f15){const _0x2ce623=_0x5a8cc6;return db['VoiceTransferReport'][_0x2ce623('0x2c')]({'where':{'id':_0x6ca34[_0x2ce623('0x15')]['id']}})[_0x2ce623('0x9')](handleEntityNotFound(_0x116f15,null))['then'](removeEntity(_0x116f15,null))[_0x2ce623('0x2d')](handleError(_0x116f15,null));}; \ No newline at end of file +const a776_0x59c9=['VoiceTransferReport','merge','fieldName','api','map','../../config/logger','pick','lodash','name','params','count','send','index','VIRTUAL','where','limit','includeAll','include','attributes','rawAttributes','filter','fields','destroy','update','keys','findOne','show','filters','undefined','options','body','Content-Range','query','offset','json','../../mysqldb','error','key','create','model','sendStatus','type','sort','like','intersection','length','status','stack','../../components/parsers/qs','then','end','catch'];(function(_0x39ea2a,_0x59c9d8){const _0x356e67=function(_0x15cd48){while(--_0x15cd48){_0x39ea2a['push'](_0x39ea2a['shift']());}};_0x356e67(++_0x59c9d8);}(a776_0x59c9,0xce));const a776_0x356e=function(_0x39ea2a,_0x59c9d8){_0x39ea2a=_0x39ea2a-0x0;let _0x356e67=a776_0x59c9[_0x39ea2a];return _0x356e67;};const _0x3cde72=a776_0x356e;'use strict';const _=require(_0x3cde72('0x9')),qs=require(_0x3cde72('0x32')),logger=require(_0x3cde72('0x7'))(_0x3cde72('0x5')),db=require(_0x3cde72('0x25'))['db'],{Op}=require('sequelize');function respondWithResult(_0x15cd48,_0x49283a){return _0x49283a=_0x49283a||0xc8,function(_0xebcb95){const _0x285a5d=a776_0x356e;if(_0xebcb95)return _0x15cd48[_0x285a5d('0x30')](_0x49283a)['json'](_0xebcb95);};}function respondWithFilteredResult(_0x2fafff,_0x35dba1){return function(_0x16c514){const _0x47edde=a776_0x356e;if(_0x16c514){const _0x45e9f4=_0x16c514[_0x47edde('0xc')],_0x35b637=_0x35dba1['offset'];let _0x5b7ab8=_0x35dba1[_0x47edde('0x23')]+_0x35dba1[_0x47edde('0x11')],_0x3ccd35;return _0x5b7ab8>=_0x45e9f4?(_0x5b7ab8=_0x45e9f4,_0x3ccd35=0xc8):_0x3ccd35=0xce,_0x2fafff['status'](_0x3ccd35),_0x2fafff['set'](_0x47edde('0x21'),_0x35b637+'-'+_0x5b7ab8+'/'+_0x45e9f4)[_0x47edde('0x24')](_0x16c514);}return null;};}function saveUpdates(_0xf8747b){return function(_0x5346cc){const _0x43fe0b=a776_0x356e;if(_0x5346cc)return _0x5346cc[_0x43fe0b('0x19')](_0xf8747b)[_0x43fe0b('0x33')](function(_0x116dce){return _0x116dce;});return null;};}function removeEntity(_0x2a7fa7){return function(_0x2285d2){const _0x5cdb05=a776_0x356e;if(_0x2285d2)return _0x2285d2[_0x5cdb05('0x18')]()[_0x5cdb05('0x33')](function(){const _0x16fc63=_0x5cdb05;_0x2a7fa7[_0x16fc63('0x30')](0xcc)[_0x16fc63('0x0')]();});};}function handleEntityNotFound(_0x10832a){return function(_0x194e1c){const _0x40ad98=a776_0x356e;return!_0x194e1c&&_0x10832a[_0x40ad98('0x2a')](0x194),_0x194e1c;};}function handleError(_0x3eb3c7,_0x534902){return _0x534902=_0x534902||0x1f4,function(_0x2d1e2b){const _0x3cc9e3=a776_0x356e;logger[_0x3cc9e3('0x26')](_0x2d1e2b[_0x3cc9e3('0x31')]),_0x2d1e2b[_0x3cc9e3('0xa')]&&delete _0x2d1e2b[_0x3cc9e3('0xa')],_0x3eb3c7[_0x3cc9e3('0x30')](_0x534902)[_0x3cc9e3('0xd')](_0x2d1e2b);};}exports[_0x3cde72('0xe')]=function(_0x1d850e,_0x346f6c){const _0x5f0cb3=_0x3cde72;let _0x4efcf5={};const _0xcd0180={},_0x563444={'count':0x0,'rows':[]},_0x2deb49=_[_0x5f0cb3('0x6')](db['VoiceTransferReport'][_0x5f0cb3('0x15')],function(_0x3206b8){const _0x3ad193=_0x5f0cb3;return{'name':_0x3206b8[_0x3ad193('0x4')],'type':_0x3206b8['type'][_0x3ad193('0x27')]};});_0xcd0180[_0x5f0cb3('0x29')]=_['map'](_0x2deb49,'name'),_0xcd0180[_0x5f0cb3('0x22')]=_[_0x5f0cb3('0x1a')](_0x1d850e[_0x5f0cb3('0x22')]),_0xcd0180[_0x5f0cb3('0x1d')]=_[_0x5f0cb3('0x2e')](_0xcd0180[_0x5f0cb3('0x29')],_0xcd0180[_0x5f0cb3('0x22')]),_0x4efcf5['attributes']=_[_0x5f0cb3('0x2e')](_0xcd0180[_0x5f0cb3('0x29')],qs[_0x5f0cb3('0x17')](_0x1d850e[_0x5f0cb3('0x22')][_0x5f0cb3('0x17')])),_0x4efcf5[_0x5f0cb3('0x14')]=_0x4efcf5['attributes']['length']?_0x4efcf5[_0x5f0cb3('0x14')]:_0xcd0180[_0x5f0cb3('0x29')];typeof _0x1d850e[_0x5f0cb3('0x22')]['nolimit']===_0x5f0cb3('0x1e')&&(_0x4efcf5[_0x5f0cb3('0x11')]=qs[_0x5f0cb3('0x11')](_0x1d850e['query'][_0x5f0cb3('0x11')]),_0x4efcf5[_0x5f0cb3('0x23')]=qs[_0x5f0cb3('0x23')](_0x1d850e[_0x5f0cb3('0x22')]['offset']));_0x4efcf5['order']=qs['sort'](_0x1d850e['query'][_0x5f0cb3('0x2c')]),_0x4efcf5['where']=qs['filters'](_[_0x5f0cb3('0x8')](_0x1d850e['query'],_0xcd0180[_0x5f0cb3('0x1d')]),_0x2deb49);_0x1d850e[_0x5f0cb3('0x22')][_0x5f0cb3('0x16')]&&(_0x4efcf5['where']=_[_0x5f0cb3('0x3')](_0x4efcf5['where'],{[Op['or']]:_[_0x5f0cb3('0x6')](_0x2deb49,function(_0x290fbb){const _0xc73eb7=_0x5f0cb3;if(_0x290fbb[_0xc73eb7('0x2b')]!==_0xc73eb7('0xf')){const _0x4bd4ab={};return _0x4bd4ab[_0x290fbb[_0xc73eb7('0xa')]]={[Op[_0xc73eb7('0x2d')]]:'%'+_0x1d850e[_0xc73eb7('0x22')][_0xc73eb7('0x16')]+'%'},_0x4bd4ab;}})}));_0x4efcf5=_[_0x5f0cb3('0x3')]({},_0x4efcf5,_0x1d850e[_0x5f0cb3('0x1f')]);const _0x592095={'where':_0x4efcf5[_0x5f0cb3('0x10')]};return db['VoiceTransferReport']['count'](_0x592095)[_0x5f0cb3('0x33')](function(_0x21151d){const _0x7d2de5=_0x5f0cb3;return _0x563444[_0x7d2de5('0xc')]=_0x21151d,_0x1d850e[_0x7d2de5('0x22')][_0x7d2de5('0x12')]&&(_0x4efcf5[_0x7d2de5('0x13')]=[{'all':!![]}]),db[_0x7d2de5('0x2')]['findAll'](_0x4efcf5);})[_0x5f0cb3('0x33')](function(_0x3c567e){return _0x563444['rows']=_0x3c567e,_0x563444;})['then'](respondWithFilteredResult(_0x346f6c,_0x4efcf5))[_0x5f0cb3('0x1')](handleError(_0x346f6c,null));},exports[_0x3cde72('0x1c')]=function(_0x428d38,_0x3ed83a){const _0x17233c=_0x3cde72;let _0x16ac15={'raw':!![],'where':{'id':_0x428d38[_0x17233c('0xb')]['id']}};const _0x26de0e={};return _0x26de0e[_0x17233c('0x29')]=_['keys'](db['VoiceTransferReport'][_0x17233c('0x15')]),_0x26de0e[_0x17233c('0x22')]=_[_0x17233c('0x1a')](_0x428d38[_0x17233c('0x22')]),_0x26de0e[_0x17233c('0x1d')]=_[_0x17233c('0x2e')](_0x26de0e[_0x17233c('0x29')],_0x26de0e[_0x17233c('0x22')]),_0x16ac15['attributes']=_[_0x17233c('0x2e')](_0x26de0e[_0x17233c('0x29')],qs['fields'](_0x428d38[_0x17233c('0x22')][_0x17233c('0x17')])),_0x16ac15['attributes']=_0x16ac15[_0x17233c('0x14')][_0x17233c('0x2f')]?_0x16ac15['attributes']:_0x26de0e[_0x17233c('0x29')],_0x428d38[_0x17233c('0x22')]['includeAll']&&(_0x16ac15[_0x17233c('0x13')]=[{'all':!![]}]),_0x16ac15=_[_0x17233c('0x3')]({},_0x16ac15,_0x428d38['options']),db['VoiceTransferReport'][_0x17233c('0x1b')](_0x16ac15)[_0x17233c('0x33')](handleEntityNotFound(_0x3ed83a,null))[_0x17233c('0x33')](respondWithResult(_0x3ed83a,null))['catch'](handleError(_0x3ed83a,null));},exports[_0x3cde72('0x28')]=function(_0x7dd00f,_0x46f777){const _0x1d5f04=_0x3cde72;return db[_0x1d5f04('0x2')]['create'](_0x7dd00f[_0x1d5f04('0x20')],{})[_0x1d5f04('0x33')](respondWithResult(_0x46f777,0xc9))[_0x1d5f04('0x1')](handleError(_0x46f777,null));},exports[_0x3cde72('0x19')]=function(_0x1a43a0,_0x1b51f0){const _0x2010aa=_0x3cde72;return _0x1a43a0[_0x2010aa('0x20')]['id']&&delete _0x1a43a0['body']['id'],db['VoiceTransferReport'][_0x2010aa('0x1b')]({'where':{'id':_0x1a43a0[_0x2010aa('0xb')]['id']}})['then'](handleEntityNotFound(_0x1b51f0,null))[_0x2010aa('0x33')](saveUpdates(_0x1a43a0['body'],null))[_0x2010aa('0x33')](respondWithResult(_0x1b51f0,null))[_0x2010aa('0x1')](handleError(_0x1b51f0,null));},exports[_0x3cde72('0x18')]=function(_0x23405c,_0x48b278){const _0x583490=_0x3cde72;return db[_0x583490('0x2')][_0x583490('0x1b')]({'where':{'id':_0x23405c[_0x583490('0xb')]['id']}})[_0x583490('0x33')](handleEntityNotFound(_0x48b278,null))[_0x583490('0x33')](removeEntity(_0x48b278,null))[_0x583490('0x1')](handleError(_0x48b278,null));}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.model.js b/server/api/voiceTransferReport/voiceTransferReport.model.js index c158e2c..001f2fd 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.model.js +++ b/server/api/voiceTransferReport/voiceTransferReport.model.js @@ -1 +1 @@ -const a777_0x3a3e=['report_call_transfer','define','VoiceTransferReport','exports','./voiceTransferReport.attributes'];(function(_0x2b5416,_0x3a3e0a){const _0x41a5d0=function(_0x41dfed){while(--_0x41dfed){_0x2b5416['push'](_0x2b5416['shift']());}};_0x41a5d0(++_0x3a3e0a);}(a777_0x3a3e,0x180));const a777_0x41a5=function(_0x2b5416,_0x3a3e0a){_0x2b5416=_0x2b5416-0x0;let _0x41a5d0=a777_0x3a3e[_0x2b5416];return _0x41a5d0;};const _0x2a2733=a777_0x41a5;'use strict';const attributes=require(_0x2a2733('0x0'));module[_0x2a2733('0x4')]=function(_0x41dfed){const _0x121155=_0x2a2733,_0x4c2e76=_0x41dfed[_0x121155('0x2')](_0x121155('0x3'),attributes,{'tableName':_0x121155('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c2e76;}; \ No newline at end of file +const a777_0x2997=['VoiceTransferReport','./voiceTransferReport.attributes','exports','report_call_transfer','define'];(function(_0x1cc5f7,_0x2997e4){const _0x4ff20c=function(_0x29015e){while(--_0x29015e){_0x1cc5f7['push'](_0x1cc5f7['shift']());}};_0x4ff20c(++_0x2997e4);}(a777_0x2997,0x7c));const a777_0x4ff2=function(_0x1cc5f7,_0x2997e4){_0x1cc5f7=_0x1cc5f7-0x0;let _0x4ff20c=a777_0x2997[_0x1cc5f7];return _0x4ff20c;};const _0xbf967b=a777_0x4ff2;'use strict';const attributes=require(_0xbf967b('0x2'));module[_0xbf967b('0x3')]=function(_0x29015e){const _0x52214f=_0xbf967b,_0x1bac67=_0x29015e[_0x52214f('0x0')](_0x52214f('0x1'),attributes,{'tableName':_0x52214f('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1bac67;}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.rpc.js b/server/api/voiceTransferReport/voiceTransferReport.rpc.js index 8d291c0..2efd456 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.rpc.js +++ b/server/api/voiceTransferReport/voiceTransferReport.rpc.js @@ -1 +1 @@ -const a778_0x5ec2=['create','info','debug','message','error','VoiceTransferReport','catch','raw','stringify','rpc','options','CreateVoiceTransferReport'];(function(_0x596f2f,_0x5ec2e5){const _0x5840a1=function(_0x3ed5cc){while(--_0x3ed5cc){_0x596f2f['push'](_0x596f2f['shift']());}};_0x5840a1(++_0x5ec2e5);}(a778_0x5ec2,0x120));const a778_0x5840=function(_0x596f2f,_0x5ec2e5){_0x596f2f=_0x596f2f-0x0;let _0x5840a1=a778_0x5ec2[_0x596f2f];return _0x5840a1;};const _0xe36707=a778_0x5840;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0xe36707('0x9'));exports[_0xe36707('0xb')]=function(_0x3ed5cc){const _0x5da692=this;return new Promise(function(_0x47ea7a,_0x5e7aec){const _0x59a510=a778_0x5840;return db[_0x59a510('0x5')][_0x59a510('0x0')](_0x3ed5cc['body'],{'raw':_0x3ed5cc[_0x59a510('0xa')]?_0x3ed5cc[_0x59a510('0xa')][_0x59a510('0x7')]===undefined?!![]:![]:!![]})['then'](function(_0xc80596){const _0x1ca293=_0x59a510;logger[_0x1ca293('0x1')](_0x1ca293('0xb'),_0x3ed5cc),logger[_0x1ca293('0x2')](_0x1ca293('0xb'),_0x3ed5cc,JSON[_0x1ca293('0x8')](_0xc80596)),_0x47ea7a(_0xc80596);})[_0x59a510('0x6')](function(_0x310d29){const _0x2f8079=_0x59a510;logger[_0x2f8079('0x4')](_0x2f8079('0xb'),_0x310d29[_0x2f8079('0x3')],_0x3ed5cc),_0x5e7aec(_0x5da692[_0x2f8079('0x4')](0x1f4,_0x310d29['message']));});});}; \ No newline at end of file +const a778_0x4f78=['then','catch','VoiceTransferReport','options','error','../../mysqldb','../../config/logger','body','create','CreateVoiceTransferReport','info','debug'];(function(_0x57bd99,_0x4f7891){const _0x2cfcf6=function(_0x4c5c35){while(--_0x4c5c35){_0x57bd99['push'](_0x57bd99['shift']());}};_0x2cfcf6(++_0x4f7891);}(a778_0x4f78,0x19a));const a778_0x2cfc=function(_0x57bd99,_0x4f7891){_0x57bd99=_0x57bd99-0x0;let _0x2cfcf6=a778_0x4f78[_0x57bd99];return _0x2cfcf6;};const _0xbfc898=a778_0x2cfc;'use strict';const db=require(_0xbfc898('0x3'))['db'],logger=require(_0xbfc898('0x4'))('rpc');exports[_0xbfc898('0x7')]=function(_0x4c5c35){const _0x57e2aa=this;return new Promise(function(_0x28d060,_0xa95ba4){const _0x6a4405=a778_0x2cfc;return db[_0x6a4405('0x0')][_0x6a4405('0x6')](_0x4c5c35[_0x6a4405('0x5')],{'raw':_0x4c5c35[_0x6a4405('0x1')]?_0x4c5c35[_0x6a4405('0x1')]['raw']===undefined?!![]:![]:!![]})[_0x6a4405('0xa')](function(_0x3e485f){const _0x51736a=_0x6a4405;logger[_0x51736a('0x8')](_0x51736a('0x7'),_0x4c5c35),logger[_0x51736a('0x9')](_0x51736a('0x7'),_0x4c5c35,JSON['stringify'](_0x3e485f)),_0x28d060(_0x3e485f);})[_0x6a4405('0xb')](function(_0x5e13df){const _0x1678ec=_0x6a4405;logger[_0x1678ec('0x2')](_0x1678ec('0x7'),_0x5e13df['message'],_0x4c5c35),_0xa95ba4(_0x57e2aa[_0x1678ec('0x2')](0x1f4,_0x5e13df['message']));});});}; \ No newline at end of file diff --git a/server/api/webbar/index.js b/server/api/webbar/index.js index 16d430f..b535690 100644 --- a/server/api/webbar/index.js +++ b/server/api/webbar/index.js @@ -1 +1 @@ -const a779_0x5302=['hold','/calls','/originate','../../components/auth/service','Router','/answer','hangup','answer','unhold','originate','/transfer','./webbar.controller','transfer','exports','/hold','canUpdate','/unhold','isAuthenticated','post','/hangup'];(function(_0x3a8617,_0x530231){const _0x5e4bbb=function(_0x5a9f09){while(--_0x5a9f09){_0x3a8617['push'](_0x3a8617['shift']());}};_0x5e4bbb(++_0x530231);}(a779_0x5302,0x1d1));const a779_0x5e4b=function(_0x3a8617,_0x530231){_0x3a8617=_0x3a8617-0x0;let _0x5e4bbb=a779_0x5302[_0x3a8617];return _0x5e4bbb;};const _0x4dba2e=a779_0x5e4b;'use strict';const express=require('express'),router=express[_0x4dba2e('0x13')](),auth=require(_0x4dba2e('0x12')),controller=require(_0x4dba2e('0x6'));router[_0x4dba2e('0xd')](_0x4dba2e('0x11'),auth['isAuthenticated'](),auth[_0x4dba2e('0xa')](),controller[_0x4dba2e('0x4')]),router[_0x4dba2e('0xd')](_0x4dba2e('0xe'),auth['isAuthenticated'](),auth[_0x4dba2e('0xa')](),controller[_0x4dba2e('0x1')]),router[_0x4dba2e('0xd')](_0x4dba2e('0x0'),auth[_0x4dba2e('0xc')](),auth[_0x4dba2e('0xa')](),controller[_0x4dba2e('0x2')]),router[_0x4dba2e('0xd')](_0x4dba2e('0x9'),auth['isAuthenticated'](),auth[_0x4dba2e('0xa')](),controller[_0x4dba2e('0xf')]),router[_0x4dba2e('0xd')](_0x4dba2e('0xb'),auth[_0x4dba2e('0xc')](),auth[_0x4dba2e('0xa')](),controller[_0x4dba2e('0x3')]),router[_0x4dba2e('0xd')](_0x4dba2e('0x10'),auth[_0x4dba2e('0xc')](),auth[_0x4dba2e('0xa')](),controller['calls']),router[_0x4dba2e('0xd')](_0x4dba2e('0x5'),auth[_0x4dba2e('0xc')](),auth[_0x4dba2e('0xa')](),controller[_0x4dba2e('0x7')]),module[_0x4dba2e('0x8')]=router; \ No newline at end of file +const a779_0x1332=['hangup','/calls','/unhold','isAuthenticated','canUpdate','/answer','/transfer','originate','exports','express','answer','transfer','./webbar.controller','/hangup','../../components/auth/service','unhold','post','Router'];(function(_0x29f8f6,_0x13326b){const _0x22f02a=function(_0x38e3bf){while(--_0x38e3bf){_0x29f8f6['push'](_0x29f8f6['shift']());}};_0x22f02a(++_0x13326b);}(a779_0x1332,0x1eb));const a779_0x22f0=function(_0x29f8f6,_0x13326b){_0x29f8f6=_0x29f8f6-0x0;let _0x22f02a=a779_0x1332[_0x29f8f6];return _0x22f02a;};const _0x7dc7fb=a779_0x22f0;'use strict';const express=require(_0x7dc7fb('0x4')),router=express[_0x7dc7fb('0xc')](),auth=require(_0x7dc7fb('0x9')),controller=require(_0x7dc7fb('0x7'));router['post']('/originate',auth['isAuthenticated'](),auth[_0x7dc7fb('0x11')](),controller[_0x7dc7fb('0x2')]),router[_0x7dc7fb('0xb')](_0x7dc7fb('0x8'),auth[_0x7dc7fb('0x10')](),auth[_0x7dc7fb('0x11')](),controller[_0x7dc7fb('0xd')]),router[_0x7dc7fb('0xb')](_0x7dc7fb('0x0'),auth['isAuthenticated'](),auth[_0x7dc7fb('0x11')](),controller[_0x7dc7fb('0x5')]),router['post']('/hold',auth[_0x7dc7fb('0x10')](),auth['canUpdate'](),controller['hold']),router['post'](_0x7dc7fb('0xf'),auth[_0x7dc7fb('0x10')](),auth[_0x7dc7fb('0x11')](),controller[_0x7dc7fb('0xa')]),router[_0x7dc7fb('0xb')](_0x7dc7fb('0xe'),auth[_0x7dc7fb('0x10')](),auth[_0x7dc7fb('0x11')](),controller['calls']),router[_0x7dc7fb('0xb')](_0x7dc7fb('0x1'),auth['isAuthenticated'](),auth[_0x7dc7fb('0x11')](),controller[_0x7dc7fb('0x6')]),module[_0x7dc7fb('0x3')]=router; \ No newline at end of file diff --git a/server/api/webbar/webbar.controller.js b/server/api/webbar/webbar.controller.js index b0e7b77..a51d53f 100644 --- a/server/api/webbar/webbar.controller.js +++ b/server/api/webbar/webbar.controller.js @@ -1 +1 @@ -const a780_0x311e=['then','webbarapi','number','callerId','answer','body','validate','string','http','log','send','originate\x20fired:','calls\x20fired:','client','transfer\x20fired:','entityFound:','message','hangup','lodash','handleError:','sessionId','stringify','webbar:originate','name','userId\x20is\x20required','catch','../../mysqldb','calls','status','callbackUrl','callNumber','answer\x20executed!','webbar:hold','transfer\x20executed!','conference\x20fired:','user:%s','conference\x20executed!','transferNumber','agent','format','json','util','unhold\x20fired:','code','User','originate','webbar:hangup','error','unhold\x20executed!','UserId','originate\x20executed!','NotFound','../../rediscache','info','webbar:unhold','webbar:answer','webbar:conference','unhold','filter','callNumber\x20is\x20required','length','stack','hangup\x20fired:','transfer','VoiceChannels','result','findOne','userId'];(function(_0x5dd648,_0x311e91){const _0x49859d=function(_0x3fbc87){while(--_0x3fbc87){_0x5dd648['push'](_0x5dd648['shift']());}};_0x49859d(++_0x311e91);}(a780_0x311e,0xd2));const a780_0x4985=function(_0x5dd648,_0x311e91){_0x5dd648=_0x5dd648-0x0;let _0x49859d=a780_0x311e[_0x5dd648];return _0x49859d;};const _0x5f5459=a780_0x4985;'use strict';const _=require(_0x5f5459('0xc')),db=require(_0x5f5459('0x14'))['db'],util=require(_0x5f5459('0x23')),jayson=require('jayson/promise'),amiClient=jayson[_0x5f5459('0x7')][_0x5f5459('0x2')]({'port':0x232a}),logger=require('../../config/logger')(_0x5f5459('0x3f')),{getSocket}=require(_0x5f5459('0x2e')),io=getSocket(),Schema=require(_0x5f5459('0x0')),originateValidation=new Schema({'userId':{'type':_0x5f5459('0x40'),'required':[!![],_0x5f5459('0x12')]},'callNumber':{'type':_0x5f5459('0x1'),'required':[!![],_0x5f5459('0x35')]},'callerId':{'type':_0x5f5459('0x1')},'callbackUrl':{'type':_0x5f5459('0x1')}}),hangupValidation=new Schema({'userId':{'type':_0x5f5459('0x40'),'required':[!![],_0x5f5459('0x12')]},'sessionId':{'type':_0x5f5459('0x1'),'required':![]}}),answerValidation=new Schema({'userId':{'type':_0x5f5459('0x40'),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':_0x5f5459('0x1'),'required':![]}}),transferValidation=new Schema({'userId':{'type':_0x5f5459('0x40'),'required':[!![],_0x5f5459('0x12')]},'sessionId':{'type':'string','required':[!![],'sessionId\x20is\x20required']},'transferNumber':{'type':_0x5f5459('0x1'),'required':[!![],'transferNumber\x20is\x20required']}}),holdValidation=new Schema({'userId':{'type':_0x5f5459('0x40'),'required':[!![],_0x5f5459('0x12')]},'sessionId':{'type':'string','required':![]}}),unholdValidation=new Schema({'userId':{'type':_0x5f5459('0x40'),'required':[!![],_0x5f5459('0x12')]},'sessionId':{'type':'string','required':![]}}),callsValidation=new Schema({'userId':{'type':_0x5f5459('0x40'),'required':[!![],_0x5f5459('0x12')]}}),conferenceValidation=new Schema({'userId':{'type':_0x5f5459('0x40'),'required':[!![],_0x5f5459('0x12')]}});function emit(_0x3fbc87,_0x4be2d6,_0x15f73b){const _0x3dccf9=_0x5f5459;logger['info'](_0x3fbc87,_0x4be2d6,JSON[_0x3dccf9('0xf')](_0x15f73b)),io['to'](_0x3fbc87)['emit'](_0x4be2d6,_0x15f73b);}function handleError(_0x2b8a82){return function(_0x2bae89){const _0x5c9fe3=a780_0x4985;console[_0x5c9fe3('0x3')](_0x5c9fe3('0xd'),_0x2bae89,_0x2bae89 instanceof RangeError),logger[_0x5c9fe3('0x29')](_0x2bae89[_0x5c9fe3('0x37')]),_0x2bae89 instanceof RangeError?(_0x2bae89[_0x5c9fe3('0x11')]&&delete _0x2bae89['name'],_0x2b8a82[_0x5c9fe3('0x16')](0x194)[_0x5c9fe3('0x4')](_0x2bae89)):(_0x2bae89[_0x5c9fe3('0x11')]&&delete _0x2bae89['name'],_0x2b8a82[_0x5c9fe3('0x16')](0x1f4)['send'](_0x2bae89));};}function checkError(){return function(_0xedc674){const _0x4e79d5=a780_0x4985;if(!_0xedc674)throw new RangeError(_0x4e79d5('0x2d'));return _0xedc674;};}function respondWithRpcPromise(_0x4ae215,_0x35b215){return new Promise(function(_0x116605,_0x569b2a){const _0x553c8f=a780_0x4985,_0x2fea80=amiClient;return _0x2fea80['request'](_0x4ae215,_0x35b215)[_0x553c8f('0x3e')](function(_0x4759a9){const _0x287a23=_0x553c8f;if(_0x4759a9['error']){if(_0x4759a9['error'][_0x287a23('0x25')]===0x1f4)return _0x569b2a(_0x4759a9[_0x287a23('0x29')][_0x287a23('0xa')]);return _0x116605(_0x4759a9['error'][_0x287a23('0xa')]);}else _0x116605(_0x4759a9[_0x287a23('0x3b')]);})[_0x553c8f('0x13')](function(_0x516770){_0x569b2a(_0x516770);});});}function getAgent(_0x52ffa0){const _0x4df0c8=_0x5f5459;return db[_0x4df0c8('0x26')][_0x4df0c8('0x3c')]({'where':{'id':_0x52ffa0,'role':_0x4df0c8('0x20')}})[_0x4df0c8('0x3e')](checkError());}exports[_0x5f5459('0x27')]=function(_0x3b0a71,_0x3ae070){const _0x369941=_0x5f5459;logger[_0x369941('0x2f')](_0x369941('0x5'),_0x3b0a71['body']);const _0x895cd8=originateValidation[_0x369941('0x0')](_0x3b0a71[_0x369941('0x43')]);if(_0x895cd8[_0x369941('0x36')]>0x0)return _0x3ae070['status'](0x190)[_0x369941('0x22')](_0x895cd8);const _0x583cb9=_0x3b0a71[_0x369941('0x43')][_0x369941('0x3d')],_0x3982a7=_0x3b0a71['body'][_0x369941('0x18')],_0x2ee952=_0x3b0a71[_0x369941('0x43')][_0x369941('0x41')],_0x155d21=_0x3b0a71['body'][_0x369941('0x17')];return getAgent(_0x583cb9)['then'](function(_0x236862){const _0x40d0ae=_0x369941;return logger[_0x40d0ae('0x2f')](_0x40d0ae('0x9'),_0x236862[_0x40d0ae('0x11')]),emit(util[_0x40d0ae('0x21')](_0x40d0ae('0x1d'),_0x236862[_0x40d0ae('0x11')]),_0x40d0ae('0x10'),{'callNumber':_0x3982a7,'callerId':_0x2ee952,'callbackUrl':_0x155d21}),_0x3ae070[_0x40d0ae('0x16')](0xc8)[_0x40d0ae('0x22')]({'error':![],'message':_0x40d0ae('0x2c')});})[_0x369941('0x13')](handleError(_0x3ae070));},exports[_0x5f5459('0xb')]=function(_0x59760a,_0x41fd00){const _0x8244f9=_0x5f5459;logger[_0x8244f9('0x2f')](_0x8244f9('0x38'),_0x59760a[_0x8244f9('0x43')]);const _0x774fa2=hangupValidation[_0x8244f9('0x0')](_0x59760a['body']);if(_0x774fa2[_0x8244f9('0x36')]>0x0)return _0x41fd00[_0x8244f9('0x16')](0x190)[_0x8244f9('0x22')](_0x774fa2);const _0x475c89=_0x59760a[_0x8244f9('0x43')][_0x8244f9('0x3d')],_0x96ec5c=_0x59760a['body'][_0x8244f9('0xe')];return getAgent(_0x475c89)[_0x8244f9('0x3e')](function(_0x185d53){const _0x4687f4=_0x8244f9;return logger[_0x4687f4('0x2f')](_0x4687f4('0x9'),_0x185d53['name']),emit(util[_0x4687f4('0x21')]('user:%s',_0x185d53[_0x4687f4('0x11')]),_0x4687f4('0x28'),{'sessionId':_0x96ec5c}),_0x41fd00[_0x4687f4('0x16')](0xc8)[_0x4687f4('0x22')]({'error':![],'message':'hangup\x20executed!'});})[_0x8244f9('0x13')](handleError(_0x41fd00));},exports[_0x5f5459('0x42')]=function(_0x4bf008,_0x2903af){const _0xaab23d=_0x5f5459;logger[_0xaab23d('0x2f')]('answer\x20fired:',_0x4bf008['body']);const _0xe053e0=answerValidation[_0xaab23d('0x0')](_0x4bf008['body']);if(_0xe053e0['length']>0x0)return _0x2903af['status'](0x190)[_0xaab23d('0x22')](_0xe053e0);const _0x28d2bb=_0x4bf008[_0xaab23d('0x43')][_0xaab23d('0x3d')],_0x2771b0=_0x4bf008[_0xaab23d('0x43')]['sessionId'];return getAgent(_0x28d2bb)[_0xaab23d('0x3e')](function(_0x49af06){const _0x4bdaf2=_0xaab23d;return logger['info']('entityFound:',_0x49af06[_0x4bdaf2('0x11')]),emit(util[_0x4bdaf2('0x21')]('user:%s',_0x49af06[_0x4bdaf2('0x11')]),_0x4bdaf2('0x31'),{'sessionId':_0x2771b0}),_0x2903af['status'](0xc8)[_0x4bdaf2('0x22')]({'error':![],'message':_0x4bdaf2('0x19')});})[_0xaab23d('0x13')](handleError(_0x2903af));},exports['hold']=function(_0x11a436,_0x5a2d7f){const _0x522b29=_0x5f5459;logger['info']('hold\x20fired:',_0x11a436[_0x522b29('0x43')]);const _0x3e5569=holdValidation[_0x522b29('0x0')](_0x11a436[_0x522b29('0x43')]);if(_0x3e5569[_0x522b29('0x36')]>0x0)return _0x5a2d7f[_0x522b29('0x16')](0x190)[_0x522b29('0x22')](_0x3e5569);const _0x414b2c=_0x11a436['body'][_0x522b29('0x3d')],_0x1b7ce0=_0x11a436[_0x522b29('0x43')]['sessionId'];return getAgent(_0x414b2c)['then'](function(_0x57697c){const _0x5b5c81=_0x522b29;return logger['info']('entityFound:',_0x57697c[_0x5b5c81('0x11')]),emit(util[_0x5b5c81('0x21')]('user:%s',_0x57697c[_0x5b5c81('0x11')]),_0x5b5c81('0x1a'),{'sessionId':_0x1b7ce0}),_0x5a2d7f['status'](0xc8)['json']({'error':![],'message':'hold\x20executed!'});})['catch'](handleError(_0x5a2d7f));},exports[_0x5f5459('0x33')]=function(_0x1bed7b,_0x3f2d30){const _0x215775=_0x5f5459;logger[_0x215775('0x2f')](_0x215775('0x24'),_0x1bed7b[_0x215775('0x43')]);const _0x5ed87e=unholdValidation[_0x215775('0x0')](_0x1bed7b['body']);if(_0x5ed87e[_0x215775('0x36')]>0x0)return _0x3f2d30['status'](0x190)[_0x215775('0x22')](_0x5ed87e);const _0x1a2cb7=_0x1bed7b['body'][_0x215775('0x3d')],_0x2c9987=_0x1bed7b[_0x215775('0x43')]['sessionId'];return getAgent(_0x1a2cb7)[_0x215775('0x3e')](function(_0x3e8ba3){const _0x2289ef=_0x215775;return logger[_0x2289ef('0x2f')](_0x2289ef('0x9'),_0x3e8ba3['name']),emit(util[_0x2289ef('0x21')](_0x2289ef('0x1d'),_0x3e8ba3['name']),_0x2289ef('0x30'),{'sessionId':_0x2c9987}),_0x3f2d30[_0x2289ef('0x16')](0xc8)[_0x2289ef('0x22')]({'error':![],'message':_0x2289ef('0x2a')});})[_0x215775('0x13')](handleError(_0x3f2d30));},exports[_0x5f5459('0x15')]=function(_0x32e2fc,_0x15284f){const _0x28e8a3=_0x5f5459;logger[_0x28e8a3('0x2f')](_0x28e8a3('0x6'),_0x15284f[_0x28e8a3('0x43')]);const _0x2bd767=callsValidation[_0x28e8a3('0x0')](_0x32e2fc[_0x28e8a3('0x43')]);if(_0x2bd767[_0x28e8a3('0x36')]>0x0)return _0x15284f['status'](0x190)[_0x28e8a3('0x22')](_0x2bd767);const _0x1d70e7=_0x32e2fc[_0x28e8a3('0x43')][_0x28e8a3('0x3d')],_0xaed465=respondWithRpcPromise(_0x28e8a3('0x3a')),_0x4d8ff6=getAgent(_0x1d70e7);return Promise['all']([_0xaed465,_0x4d8ff6])[_0x28e8a3('0x3e')](function(_0x455084){const _0x15c80c=_0x28e8a3,_0x5ada03=_0x455084[0x0],_0x4b6cfb=_0x455084[0x1],_0xa0501a=_[_0x15c80c('0x34')](_0x5ada03['rows'],function(_0x3fdf6f){const _0x324a55=_0x15c80c;return _0x3fdf6f[_0x324a55('0x2b')]==_0x4b6cfb['id'];});return _0x15284f['status'](0xc8)[_0x15c80c('0x22')]({'count':_0xa0501a[_0x15c80c('0x36')],'rows':_0xa0501a});})[_0x28e8a3('0x13')](handleError(_0x15284f));},exports['conference']=function(_0x1f7913,_0x49b450){const _0x35a719=_0x5f5459;logger['info'](_0x35a719('0x1c'),_0x1f7913[_0x35a719('0x43')]);const _0xdf7eb4=conferenceValidation[_0x35a719('0x0')](_0x1f7913[_0x35a719('0x43')]);if(_0xdf7eb4[_0x35a719('0x36')]>0x0)return _0x49b450[_0x35a719('0x16')](0x190)['json'](_0xdf7eb4);const _0x5a6e27=_0x1f7913[_0x35a719('0x43')][_0x35a719('0x3d')];return getAgent(_0x5a6e27)[_0x35a719('0x3e')](function(_0x4e6282){const _0x428378=_0x35a719;return logger[_0x428378('0x2f')](_0x428378('0x9'),_0x4e6282['name']),emit(util['format'](_0x428378('0x1d'),_0x4e6282[_0x428378('0x11')]),_0x428378('0x32')),_0x49b450[_0x428378('0x16')](0xc8)['json']({'error':![],'message':_0x428378('0x1e')});})[_0x35a719('0x13')](handleError(_0x49b450));},exports[_0x5f5459('0x39')]=function(_0x4e676f,_0x4c328a){const _0x807eed=_0x5f5459;logger[_0x807eed('0x2f')](_0x807eed('0x8'),_0x4e676f[_0x807eed('0x43')]);const _0x225ad8=transferValidation[_0x807eed('0x0')](_0x4e676f[_0x807eed('0x43')]);if(_0x225ad8[_0x807eed('0x36')]>0x0)return _0x4c328a[_0x807eed('0x16')](0x190)['json'](_0x225ad8);const _0x579022=_0x4e676f[_0x807eed('0x43')]['userId'],_0x2c5f7d=_0x4e676f['body'][_0x807eed('0xe')],_0x13fb0b=_0x4e676f['body'][_0x807eed('0x1f')];return getAgent(_0x579022)['then'](function(_0x465c52){const _0x466b40=_0x807eed;return logger[_0x466b40('0x2f')](_0x466b40('0x9'),_0x465c52[_0x466b40('0x11')]),emit(util[_0x466b40('0x21')](_0x466b40('0x1d'),_0x465c52['name']),'webbar:transfer',{'sessionId':_0x2c5f7d,'transferNumber':_0x13fb0b}),_0x4c328a['status'](0xc8)[_0x466b40('0x22')]({'error':![],'message':_0x466b40('0x1b')});})[_0x807eed('0x13')](handleError(_0x4c328a));}; \ No newline at end of file +const a780_0x5a05=['hangup\x20executed!','request','hangup\x20fired:','sessionId','sessionId\x20is\x20required','format','unhold\x20executed!','webbarapi','transferNumber\x20is\x20required','user:%s','callNumber','message','string','hold','filter','../../mysqldb','hold\x20executed!','result','userId','unhold\x20fired:','handleError:','webbar:conference','catch','client','originate\x20executed!','all','rows','conference\x20fired:','answer','body','entityFound:','calls','webbar:answer','callbackUrl','answer\x20executed!','json','originate','webbar:hangup','stringify','callerId','number','callNumber\x20is\x20required','log','info','NotFound','validate','status','transfer','findOne','http','userId\x20is\x20required','calls\x20fired:','name','VoiceChannels','code','lodash','emit','../../config/logger','webbar:hold','webbar:transfer','length','stack','transferNumber','then','error','originate\x20fired:','send','../../rediscache'];(function(_0x4111a3,_0x5a05e2){const _0x5c2568=function(_0x1652a7){while(--_0x1652a7){_0x4111a3['push'](_0x4111a3['shift']());}};_0x5c2568(++_0x5a05e2);}(a780_0x5a05,0x1e1));const a780_0x5c25=function(_0x4111a3,_0x5a05e2){_0x4111a3=_0x4111a3-0x0;let _0x5c2568=a780_0x5a05[_0x4111a3];return _0x5c2568;};const _0x43bb65=a780_0x5c25;'use strict';const _=require(_0x43bb65('0x32')),db=require(_0x43bb65('0xa'))['db'],util=require('util'),jayson=require('jayson/promise'),amiClient=jayson[_0x43bb65('0x12')][_0x43bb65('0x2c')]({'port':0x232a}),logger=require(_0x43bb65('0x34'))(_0x43bb65('0x2')),{getSocket}=require(_0x43bb65('0x3e')),io=getSocket(),Schema=require(_0x43bb65('0x28')),originateValidation=new Schema({'userId':{'type':_0x43bb65('0x23'),'required':[!![],'userId\x20is\x20required']},'callNumber':{'type':_0x43bb65('0x7'),'required':[!![],_0x43bb65('0x24')]},'callerId':{'type':'string'},'callbackUrl':{'type':_0x43bb65('0x7')}}),hangupValidation=new Schema({'userId':{'type':'number','required':[!![],_0x43bb65('0x2d')]},'sessionId':{'type':_0x43bb65('0x7'),'required':![]}}),answerValidation=new Schema({'userId':{'type':_0x43bb65('0x23'),'required':[!![],_0x43bb65('0x2d')]},'sessionId':{'type':_0x43bb65('0x7'),'required':![]}}),transferValidation=new Schema({'userId':{'type':_0x43bb65('0x23'),'required':[!![],_0x43bb65('0x2d')]},'sessionId':{'type':_0x43bb65('0x7'),'required':[!![],_0x43bb65('0x43')]},'transferNumber':{'type':_0x43bb65('0x7'),'required':[!![],_0x43bb65('0x3')]}}),holdValidation=new Schema({'userId':{'type':_0x43bb65('0x23'),'required':[!![],_0x43bb65('0x2d')]},'sessionId':{'type':_0x43bb65('0x7'),'required':![]}}),unholdValidation=new Schema({'userId':{'type':_0x43bb65('0x23'),'required':[!![],_0x43bb65('0x2d')]},'sessionId':{'type':_0x43bb65('0x7'),'required':![]}}),callsValidation=new Schema({'userId':{'type':_0x43bb65('0x23'),'required':[!![],_0x43bb65('0x2d')]}}),conferenceValidation=new Schema({'userId':{'type':_0x43bb65('0x23'),'required':[!![],_0x43bb65('0x2d')]}});function emit(_0x1652a7,_0x1926be,_0x2c3260){const _0x255a35=_0x43bb65;logger[_0x255a35('0x26')](_0x1652a7,_0x1926be,JSON[_0x255a35('0x21')](_0x2c3260)),io['to'](_0x1652a7)[_0x255a35('0x33')](_0x1926be,_0x2c3260);}function handleError(_0x5a1dae){return function(_0x14f30d){const _0xb97edf=a780_0x5c25;console[_0xb97edf('0x25')](_0xb97edf('0xf'),_0x14f30d,_0x14f30d instanceof RangeError),logger[_0xb97edf('0x3b')](_0x14f30d[_0xb97edf('0x38')]),_0x14f30d instanceof RangeError?(_0x14f30d[_0xb97edf('0x2f')]&&delete _0x14f30d[_0xb97edf('0x2f')],_0x5a1dae[_0xb97edf('0x29')](0x194)['send'](_0x14f30d)):(_0x14f30d[_0xb97edf('0x2f')]&&delete _0x14f30d[_0xb97edf('0x2f')],_0x5a1dae['status'](0x1f4)[_0xb97edf('0x3d')](_0x14f30d));};}function checkError(){return function(_0x1b71c0){const _0x3027c9=a780_0x5c25;if(!_0x1b71c0)throw new RangeError(_0x3027c9('0x27'));return _0x1b71c0;};}function respondWithRpcPromise(_0x43c4a0,_0x413bd9){return new Promise(function(_0x1df4ae,_0x58763d){const _0x3e8db0=a780_0x5c25,_0x2580e4=amiClient;return _0x2580e4[_0x3e8db0('0x40')](_0x43c4a0,_0x413bd9)[_0x3e8db0('0x3a')](function(_0x53bdb2){const _0x5a3ccb=_0x3e8db0;if(_0x53bdb2[_0x5a3ccb('0x3b')]){if(_0x53bdb2[_0x5a3ccb('0x3b')][_0x5a3ccb('0x31')]===0x1f4)return _0x58763d(_0x53bdb2[_0x5a3ccb('0x3b')][_0x5a3ccb('0x6')]);return _0x1df4ae(_0x53bdb2[_0x5a3ccb('0x3b')][_0x5a3ccb('0x6')]);}else _0x1df4ae(_0x53bdb2[_0x5a3ccb('0xc')]);})[_0x3e8db0('0x11')](function(_0x1d905e){_0x58763d(_0x1d905e);});});}function getAgent(_0x3999b6){const _0x5b3ea3=_0x43bb65;return db['User'][_0x5b3ea3('0x2b')]({'where':{'id':_0x3999b6,'role':'agent'}})[_0x5b3ea3('0x3a')](checkError());}exports[_0x43bb65('0x1f')]=function(_0x5f4e97,_0x292101){const _0x29a294=_0x43bb65;logger[_0x29a294('0x26')](_0x29a294('0x3c'),_0x5f4e97[_0x29a294('0x18')]);const _0x3c61a1=originateValidation[_0x29a294('0x28')](_0x5f4e97['body']);if(_0x3c61a1[_0x29a294('0x37')]>0x0)return _0x292101['status'](0x190)[_0x29a294('0x1e')](_0x3c61a1);const _0x4e662f=_0x5f4e97['body']['userId'],_0x2ef4cd=_0x5f4e97[_0x29a294('0x18')][_0x29a294('0x5')],_0x45111f=_0x5f4e97['body'][_0x29a294('0x22')],_0x3acf9f=_0x5f4e97[_0x29a294('0x18')][_0x29a294('0x1c')];return getAgent(_0x4e662f)[_0x29a294('0x3a')](function(_0x520736){const _0x34acf9=_0x29a294;return logger[_0x34acf9('0x26')](_0x34acf9('0x19'),_0x520736[_0x34acf9('0x2f')]),emit(util[_0x34acf9('0x0')]('user:%s',_0x520736['name']),'webbar:originate',{'callNumber':_0x2ef4cd,'callerId':_0x45111f,'callbackUrl':_0x3acf9f}),_0x292101[_0x34acf9('0x29')](0xc8)[_0x34acf9('0x1e')]({'error':![],'message':_0x34acf9('0x13')});})[_0x29a294('0x11')](handleError(_0x292101));},exports['hangup']=function(_0x3cda91,_0x396203){const _0x3436d1=_0x43bb65;logger[_0x3436d1('0x26')](_0x3436d1('0x41'),_0x3cda91[_0x3436d1('0x18')]);const _0xeba4b3=hangupValidation[_0x3436d1('0x28')](_0x3cda91[_0x3436d1('0x18')]);if(_0xeba4b3[_0x3436d1('0x37')]>0x0)return _0x396203[_0x3436d1('0x29')](0x190)[_0x3436d1('0x1e')](_0xeba4b3);const _0x682f33=_0x3cda91[_0x3436d1('0x18')]['userId'],_0x2989cd=_0x3cda91['body']['sessionId'];return getAgent(_0x682f33)[_0x3436d1('0x3a')](function(_0x461fcf){const _0x1a731f=_0x3436d1;return logger[_0x1a731f('0x26')](_0x1a731f('0x19'),_0x461fcf[_0x1a731f('0x2f')]),emit(util[_0x1a731f('0x0')](_0x1a731f('0x4'),_0x461fcf[_0x1a731f('0x2f')]),_0x1a731f('0x20'),{'sessionId':_0x2989cd}),_0x396203['status'](0xc8)['json']({'error':![],'message':_0x1a731f('0x3f')});})['catch'](handleError(_0x396203));},exports[_0x43bb65('0x17')]=function(_0x5169ba,_0x1f2af5){const _0x4574f6=_0x43bb65;logger[_0x4574f6('0x26')]('answer\x20fired:',_0x5169ba[_0x4574f6('0x18')]);const _0x44ab05=answerValidation[_0x4574f6('0x28')](_0x5169ba[_0x4574f6('0x18')]);if(_0x44ab05[_0x4574f6('0x37')]>0x0)return _0x1f2af5[_0x4574f6('0x29')](0x190)[_0x4574f6('0x1e')](_0x44ab05);const _0xd936e8=_0x5169ba[_0x4574f6('0x18')][_0x4574f6('0xd')],_0x4cfde8=_0x5169ba['body'][_0x4574f6('0x42')];return getAgent(_0xd936e8)['then'](function(_0x21ff51){const _0x2bbfb6=_0x4574f6;return logger[_0x2bbfb6('0x26')]('entityFound:',_0x21ff51[_0x2bbfb6('0x2f')]),emit(util[_0x2bbfb6('0x0')](_0x2bbfb6('0x4'),_0x21ff51[_0x2bbfb6('0x2f')]),_0x2bbfb6('0x1b'),{'sessionId':_0x4cfde8}),_0x1f2af5[_0x2bbfb6('0x29')](0xc8)[_0x2bbfb6('0x1e')]({'error':![],'message':_0x2bbfb6('0x1d')});})[_0x4574f6('0x11')](handleError(_0x1f2af5));},exports[_0x43bb65('0x8')]=function(_0xfaf4fd,_0x1994d3){const _0x1d41b4=_0x43bb65;logger[_0x1d41b4('0x26')]('hold\x20fired:',_0xfaf4fd['body']);const _0x1337dd=holdValidation['validate'](_0xfaf4fd['body']);if(_0x1337dd[_0x1d41b4('0x37')]>0x0)return _0x1994d3[_0x1d41b4('0x29')](0x190)[_0x1d41b4('0x1e')](_0x1337dd);const _0x5b7b0d=_0xfaf4fd[_0x1d41b4('0x18')][_0x1d41b4('0xd')],_0x12c072=_0xfaf4fd[_0x1d41b4('0x18')]['sessionId'];return getAgent(_0x5b7b0d)[_0x1d41b4('0x3a')](function(_0x615566){const _0x34185d=_0x1d41b4;return logger[_0x34185d('0x26')](_0x34185d('0x19'),_0x615566['name']),emit(util[_0x34185d('0x0')](_0x34185d('0x4'),_0x615566[_0x34185d('0x2f')]),_0x34185d('0x35'),{'sessionId':_0x12c072}),_0x1994d3[_0x34185d('0x29')](0xc8)[_0x34185d('0x1e')]({'error':![],'message':_0x34185d('0xb')});})[_0x1d41b4('0x11')](handleError(_0x1994d3));},exports['unhold']=function(_0x3d88a6,_0x1bff75){const _0xa97a8=_0x43bb65;logger[_0xa97a8('0x26')](_0xa97a8('0xe'),_0x3d88a6[_0xa97a8('0x18')]);const _0x56fccc=unholdValidation[_0xa97a8('0x28')](_0x3d88a6[_0xa97a8('0x18')]);if(_0x56fccc[_0xa97a8('0x37')]>0x0)return _0x1bff75[_0xa97a8('0x29')](0x190)[_0xa97a8('0x1e')](_0x56fccc);const _0xe236da=_0x3d88a6[_0xa97a8('0x18')][_0xa97a8('0xd')],_0x9007be=_0x3d88a6[_0xa97a8('0x18')][_0xa97a8('0x42')];return getAgent(_0xe236da)[_0xa97a8('0x3a')](function(_0x3649a6){const _0x49d0b3=_0xa97a8;return logger[_0x49d0b3('0x26')](_0x49d0b3('0x19'),_0x3649a6[_0x49d0b3('0x2f')]),emit(util['format'](_0x49d0b3('0x4'),_0x3649a6[_0x49d0b3('0x2f')]),'webbar:unhold',{'sessionId':_0x9007be}),_0x1bff75['status'](0xc8)[_0x49d0b3('0x1e')]({'error':![],'message':_0x49d0b3('0x1')});})[_0xa97a8('0x11')](handleError(_0x1bff75));},exports[_0x43bb65('0x1a')]=function(_0x19a1dd,_0x3abbfb){const _0x4c02f6=_0x43bb65;logger[_0x4c02f6('0x26')](_0x4c02f6('0x2e'),_0x3abbfb[_0x4c02f6('0x18')]);const _0xaba035=callsValidation[_0x4c02f6('0x28')](_0x19a1dd[_0x4c02f6('0x18')]);if(_0xaba035['length']>0x0)return _0x3abbfb[_0x4c02f6('0x29')](0x190)[_0x4c02f6('0x1e')](_0xaba035);const _0x4f9e1c=_0x19a1dd[_0x4c02f6('0x18')][_0x4c02f6('0xd')],_0xe03135=respondWithRpcPromise(_0x4c02f6('0x30')),_0x476d75=getAgent(_0x4f9e1c);return Promise[_0x4c02f6('0x14')]([_0xe03135,_0x476d75])[_0x4c02f6('0x3a')](function(_0x3b380e){const _0x483eab=_0x4c02f6,_0x466a73=_0x3b380e[0x0],_0x15546d=_0x3b380e[0x1],_0x21e10d=_[_0x483eab('0x9')](_0x466a73[_0x483eab('0x15')],function(_0x57d646){return _0x57d646['UserId']==_0x15546d['id'];});return _0x3abbfb[_0x483eab('0x29')](0xc8)['json']({'count':_0x21e10d[_0x483eab('0x37')],'rows':_0x21e10d});})[_0x4c02f6('0x11')](handleError(_0x3abbfb));},exports['conference']=function(_0x5ece42,_0x29a022){const _0x243387=_0x43bb65;logger[_0x243387('0x26')](_0x243387('0x16'),_0x5ece42['body']);const _0x17539a=conferenceValidation['validate'](_0x5ece42[_0x243387('0x18')]);if(_0x17539a[_0x243387('0x37')]>0x0)return _0x29a022[_0x243387('0x29')](0x190)['json'](_0x17539a);const _0x1cb8ed=_0x5ece42[_0x243387('0x18')][_0x243387('0xd')];return getAgent(_0x1cb8ed)['then'](function(_0x4623d1){const _0x18b49f=_0x243387;return logger[_0x18b49f('0x26')](_0x18b49f('0x19'),_0x4623d1['name']),emit(util[_0x18b49f('0x0')](_0x18b49f('0x4'),_0x4623d1['name']),_0x18b49f('0x10')),_0x29a022[_0x18b49f('0x29')](0xc8)[_0x18b49f('0x1e')]({'error':![],'message':'conference\x20executed!'});})[_0x243387('0x11')](handleError(_0x29a022));},exports[_0x43bb65('0x2a')]=function(_0x50d14d,_0x169b75){const _0x96c52=_0x43bb65;logger['info']('transfer\x20fired:',_0x50d14d['body']);const _0x124313=transferValidation[_0x96c52('0x28')](_0x50d14d[_0x96c52('0x18')]);if(_0x124313['length']>0x0)return _0x169b75[_0x96c52('0x29')](0x190)[_0x96c52('0x1e')](_0x124313);const _0x389929=_0x50d14d['body'][_0x96c52('0xd')],_0x460ac8=_0x50d14d['body']['sessionId'],_0x15242f=_0x50d14d['body'][_0x96c52('0x39')];return getAgent(_0x389929)['then'](function(_0x59af34){const _0x22994e=_0x96c52;return logger[_0x22994e('0x26')](_0x22994e('0x19'),_0x59af34['name']),emit(util[_0x22994e('0x0')](_0x22994e('0x4'),_0x59af34[_0x22994e('0x2f')]),_0x22994e('0x36'),{'sessionId':_0x460ac8,'transferNumber':_0x15242f}),_0x169b75[_0x22994e('0x29')](0xc8)[_0x22994e('0x1e')]({'error':![],'message':'transfer\x20executed!'});})[_0x96c52('0x11')](handleError(_0x169b75));}; \ No newline at end of file diff --git a/server/api/whatsappAccount/index.js b/server/api/whatsappAccount/index.js index 1f3035b..ddc46ce 100644 --- a/server/api/whatsappAccount/index.js +++ b/server/api/whatsappAccount/index.js @@ -1 +1 @@ -const a781_0x42cd=['../../components/auth/service','update','getDispositions','addAgents','/:id/send','get','getAgents','getAnswers','getApplications','/:id/users','addAnswer','/:id/applications','/:id/dispositions','addDisposition','./whatsappAccount.controller','post','removeAgents','/describe','/:id','show','delete','/:id/canned_answers','express','isAuthenticated','put','removeDispositions','create','index'];(function(_0x5c42e4,_0x42cdff){const _0x5e7fbb=function(_0x18716b){while(--_0x18716b){_0x5c42e4['push'](_0x5c42e4['shift']());}};_0x5e7fbb(++_0x42cdff);}(a781_0x42cd,0x186));const a781_0x5e7f=function(_0x5c42e4,_0x42cdff){_0x5c42e4=_0x5c42e4-0x0;let _0x5e7fbb=a781_0x42cd[_0x5c42e4];return _0x5e7fbb;};const _0x4233d9=a781_0x5e7f;'use strict';const express=require(_0x4233d9('0x18')),router=express['Router'](),auth=require(_0x4233d9('0x2')),controller=require(_0x4233d9('0x10'));router[_0x4233d9('0x7')]('/',auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x1')]),router['get'](_0x4233d9('0x13'),auth[_0x4233d9('0x19')](),controller['describe']),router[_0x4233d9('0x7')](_0x4233d9('0x14'),auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x15')]),router[_0x4233d9('0x7')](_0x4233d9('0xe'),auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x4')]),router[_0x4233d9('0x7')]('/:id/canned_answers',auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x9')]),router[_0x4233d9('0x7')](_0x4233d9('0xb'),auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x8')]),router[_0x4233d9('0x7')](_0x4233d9('0xd'),auth[_0x4233d9('0x19')](),controller[_0x4233d9('0xa')]),router[_0x4233d9('0x11')]('/',auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x0')]),router[_0x4233d9('0x11')](_0x4233d9('0xe'),auth[_0x4233d9('0x19')](),controller[_0x4233d9('0xf')]),router['post'](_0x4233d9('0x17'),auth['isAuthenticated'](),controller[_0x4233d9('0xc')]),router[_0x4233d9('0x11')]('/:id/users',auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x5')]),router['post'](_0x4233d9('0xd'),auth[_0x4233d9('0x19')](),controller['addApplications']),router['post']('/:id/notify',controller['notify']),router['post'](_0x4233d9('0x6'),auth[_0x4233d9('0x19')](),controller['send']),router[_0x4233d9('0x1a')]('/:id',auth['isAuthenticated'](),controller[_0x4233d9('0x3')]),router[_0x4233d9('0x16')]('/:id',auth[_0x4233d9('0x19')](),controller['destroy']),router[_0x4233d9('0x16')](_0x4233d9('0xe'),auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x1b')]),router[_0x4233d9('0x16')]('/:id/canned_answers',auth['isAuthenticated'](),controller['removeAnswers']),router[_0x4233d9('0x16')](_0x4233d9('0xb'),auth[_0x4233d9('0x19')](),controller[_0x4233d9('0x12')]),module['exports']=router; \ No newline at end of file +const a781_0xa95c=['destroy','index','describe','express','isAuthenticated','./whatsappAccount.controller','getDispositions','removeAgents','addDisposition','send','update','/:id/notify','delete','getApplications','addAgents','put','removeAnswers','addApplications','/:id/applications','/:id','get','post','/:id/canned_answers','/:id/dispositions','/:id/users','Router'];(function(_0x4153fb,_0xa95c92){const _0x3f5903=function(_0x225a4d){while(--_0x225a4d){_0x4153fb['push'](_0x4153fb['shift']());}};_0x3f5903(++_0xa95c92);}(a781_0xa95c,0x168));const a781_0x3f59=function(_0x4153fb,_0xa95c92){_0x4153fb=_0x4153fb-0x0;let _0x3f5903=a781_0xa95c[_0x4153fb];return _0x3f5903;};const _0xcd883e=a781_0x3f59;'use strict';const express=require(_0xcd883e('0x7')),router=express[_0xcd883e('0x3')](),auth=require('../../components/auth/service'),controller=require(_0xcd883e('0x9'));router[_0xcd883e('0x18')]('/',auth['isAuthenticated'](),controller[_0xcd883e('0x5')]),router['get']('/describe',auth[_0xcd883e('0x8')](),controller[_0xcd883e('0x6')]),router[_0xcd883e('0x18')](_0xcd883e('0x17'),auth[_0xcd883e('0x8')](),controller['show']),router['get'](_0xcd883e('0x1'),auth[_0xcd883e('0x8')](),controller[_0xcd883e('0xa')]),router[_0xcd883e('0x18')](_0xcd883e('0x0'),auth[_0xcd883e('0x8')](),controller['getAnswers']),router[_0xcd883e('0x18')](_0xcd883e('0x2'),auth['isAuthenticated'](),controller['getAgents']),router[_0xcd883e('0x18')](_0xcd883e('0x16'),auth[_0xcd883e('0x8')](),controller[_0xcd883e('0x11')]),router[_0xcd883e('0x19')]('/',auth[_0xcd883e('0x8')](),controller['create']),router['post'](_0xcd883e('0x1'),auth[_0xcd883e('0x8')](),controller[_0xcd883e('0xc')]),router['post']('/:id/canned_answers',auth[_0xcd883e('0x8')](),controller['addAnswer']),router[_0xcd883e('0x19')](_0xcd883e('0x2'),auth[_0xcd883e('0x8')](),controller[_0xcd883e('0x12')]),router[_0xcd883e('0x19')](_0xcd883e('0x16'),auth[_0xcd883e('0x8')](),controller[_0xcd883e('0x15')]),router[_0xcd883e('0x19')](_0xcd883e('0xf'),controller['notify']),router['post']('/:id/send',auth[_0xcd883e('0x8')](),controller[_0xcd883e('0xd')]),router[_0xcd883e('0x13')](_0xcd883e('0x17'),auth[_0xcd883e('0x8')](),controller[_0xcd883e('0xe')]),router[_0xcd883e('0x10')](_0xcd883e('0x17'),auth[_0xcd883e('0x8')](),controller[_0xcd883e('0x4')]),router[_0xcd883e('0x10')](_0xcd883e('0x1'),auth[_0xcd883e('0x8')](),controller['removeDispositions']),router[_0xcd883e('0x10')](_0xcd883e('0x0'),auth['isAuthenticated'](),controller[_0xcd883e('0x14')]),router[_0xcd883e('0x10')](_0xcd883e('0x2'),auth[_0xcd883e('0x8')](),controller[_0xcd883e('0xb')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.attributes.js b/server/api/whatsappAccount/whatsappAccount.attributes.js index b73de3d..81b5ab2 100644 --- a/server/api/whatsappAccount/whatsappAccount.attributes.js +++ b/server/api/whatsappAccount/whatsappAccount.attributes.js @@ -1 +1 @@ -const a782_0x5d29=['generate','TEXT','mandatoryDisposition','setDataValue','mandatoryDispositionPauseId','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','ENUM','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','STRING','INTEGER','BOOLEAN','exports','twilio','name'];(function(_0x5481b7,_0x5d29bc){const _0x183355=function(_0x2e552b){while(--_0x2e552b){_0x5481b7['push'](_0x5481b7['shift']());}};_0x183355(++_0x5d29bc);}(a782_0x5d29,0x107));const a782_0x1833=function(_0x5481b7,_0x5d29bc){_0x5481b7=_0x5481b7-0x0;let _0x183355=a782_0x5d29[_0x5481b7];return _0x183355;};const _0x5925e8=a782_0x1833;'use strict';const Sequelize=require('sequelize'),rs=require('randomstring');module[_0x5925e8('0x0')]={'name':{'type':Sequelize[_0x5925e8('0xb')],'unique':_0x5925e8('0x2'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0x5925e8('0xb')],'allowNull':![]},'token':{'type':Sequelize[_0x5925e8('0xb')],'defaultValue':function(){const _0x26a6a2=_0x5925e8;return rs[_0x26a6a2('0x3')]();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x5925e8('0x9')](_0x5925e8('0x1'))},'accountSid':{'type':Sequelize[_0x5925e8('0xb')]},'authToken':{'type':Sequelize[_0x5925e8('0xb')]},'notificationTemplate':{'type':Sequelize[_0x5925e8('0x4')],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x5925e8('0xd')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x5925e8('0xd')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x5925e8('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x5925e8('0xd')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x5925e8('0xd')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x5925e8('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x5925e8('0xc')],'comment':_0x5925e8('0xa')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x5925e8('0x8'),'set':function(_0x2e552b){const _0x4a872b=_0x5925e8;!_0x2e552b&&this['setDataValue'](_0x4a872b('0x7'),null),this[_0x4a872b('0x6')](_0x4a872b('0x5'),_0x2e552b);}},'description':{'type':Sequelize[_0x5925e8('0xb')]}}; \ No newline at end of file +const a782_0x114f=['Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','mandatoryDisposition','twilio','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','ENUM','TEXT','sequelize','mandatoryDispositionPauseId','randomstring','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','STRING','INTEGER','exports','BOOLEAN'];(function(_0x34ed13,_0x114f7b){const _0x504364=function(_0x1dd3c3){while(--_0x1dd3c3){_0x34ed13['push'](_0x34ed13['shift']());}};_0x504364(++_0x114f7b);}(a782_0x114f,0x1cc));const a782_0x5043=function(_0x34ed13,_0x114f7b){_0x34ed13=_0x34ed13-0x0;let _0x504364=a782_0x114f[_0x34ed13];return _0x504364;};const _0x2043f3=a782_0x5043;'use strict';const Sequelize=require(_0x2043f3('0xb')),rs=require(_0x2043f3('0xd'));module[_0x2043f3('0x3')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'key':{'type':Sequelize[_0x2043f3('0x1')],'allowNull':![]},'remote':{'type':Sequelize[_0x2043f3('0x1')],'allowNull':![]},'token':{'type':Sequelize[_0x2043f3('0x1')],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x2043f3('0x9')](_0x2043f3('0x7'))},'accountSid':{'type':Sequelize[_0x2043f3('0x1')]},'authToken':{'type':Sequelize[_0x2043f3('0x1')]},'notificationTemplate':{'type':Sequelize[_0x2043f3('0xa')],'defaultValue':function(){const _0x269727=_0x2043f3;return _0x269727('0x8');}},'notificationSound':{'type':Sequelize[_0x2043f3('0x4')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x2043f3('0x4')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x2043f3('0x2')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x2043f3('0x4')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x2043f3('0x4')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x2043f3('0x2')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x2043f3('0x2')],'comment':_0x2043f3('0x5')},'mandatoryDisposition':{'type':Sequelize[_0x2043f3('0x4')],'defaultValue':![],'comment':_0x2043f3('0xe'),'set':function(_0x1dd3c3){const _0x46be94=_0x2043f3;!_0x1dd3c3&&this[_0x46be94('0x0')](_0x46be94('0xc'),null),this['setDataValue'](_0x46be94('0x6'),_0x1dd3c3);}},'description':{'type':Sequelize[_0x2043f3('0x1')]}}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.controller.js b/server/api/whatsappAccount/whatsappAccount.controller.js index ee62e62..8bbdf4b 100644 --- a/server/api/whatsappAccount/whatsappAccount.controller.js +++ b/server/api/whatsappAccount/whatsappAccount.controller.js @@ -1 +1 @@ -const a783_0x1e11=['User','sort','CmList','like','api','getAgents','Body','get','describe','addDisposition','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','unshift','getAnswers','http','*,*,*,*','WhatsappAccounts','role','fields','WhatsappAccount,\x20%s,\x20%s','attributes','key','notify','applications','orderBy','getDispositions','whatsapp:','error','agent','nolimit','keys','addApplications','CmContact','destroy','addAnswer','filters','WhatsappApplication','body','userWhatsappAccount:save','stack','then','From','sequelize','removeAnswers','UserProfileResource','startRouting','fieldName','out','sendStatus','mapKey','getApplications','UserProfileSection','ListId','updatedAt','emit','code','replace','list','createdAt','stringify','CannedAnswer','lodash','from','filter','findAll','Contacts','Messages','user','params','autoclose','Applications','\x0a','mandatoryDispositionPause','isArray','removeDispositions','dataValues','rawAttributes','contact','WhatsappAccount','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','defaults','omit','Disposition','DESC','WhatsappAccount,\x20%s,\x20%s,\x20%s','name','message','Start','no\x20available\x20attributes','undefined','twilio','findOne','asc','json','CompanyId','transaction','type','interaction','end','create','body\x20is\x20mandatory\x20and\x20not\x20empty','info','request\x20sent','intersection','pick','messageId','offset','limit','mobile','Sequelize','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','debug','userWhatsappAccount:remove','includes','ids','userProfileId','WhatsappMessage','map','created','includeAll','WhatsappAccountId','where','result','difference','include','request','send','findAndCountAll','merge','model','ValidationError','account','client','status','addAgents','waitForTheAssignedAgent','List','priority','WhatsappInteraction','close','receiveMessage','../../rediscache','VIRTUAL','catch','index','entity\x20found','update','text/xml','options','count','isNil','set','unmanaged','order','query','length','to\x20is\x20mandatory','rows'];(function(_0x6af8b9,_0x1e11f1){const _0x240715=function(_0x3d6975){while(--_0x3d6975){_0x6af8b9['push'](_0x6af8b9['shift']());}};_0x240715(++_0x1e11f1);}(a783_0x1e11,0x18a));const a783_0x2407=function(_0x6af8b9,_0x1e11f1){_0x6af8b9=_0x6af8b9-0x0;let _0x240715=a783_0x1e11[_0x6af8b9];return _0x240715;};const _0x2e48e6=a783_0x2407;'use strict';const _=require(_0x2e48e6('0x89')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x2e48e6('0x51')),{getSocket}=require(_0x2e48e6('0x3c')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x2e48e6('0x76'));require('./whatsappAccount.socket')['register'](socket);const jayson=require('jayson/promise'),client=jayson[_0x2e48e6('0x33')][_0x2e48e6('0x5a')]({'port':0x232c});function respondWithRpcPromise(_0x3d6975,_0x385fce,_0x370883,_0x24c101){return new Promise(function(_0x139a8c,_0x2487d9){const _0x601a3f=a783_0x2407,_0x42bd91=_0x24c101||client;return _0x42bd91[_0x601a3f('0x2c')](_0x3d6975,_0x370883)[_0x601a3f('0x74')](function(_0x8ab519){const _0x5e9821=_0x601a3f;logger[_0x5e9821('0x14')](_0x5e9821('0x5f'),_0x385fce,_0x5e9821('0x15')),logger[_0x5e9821('0x1e')](_0x5e9821('0x3'),_0x385fce,_0x5e9821('0x15'),JSON[_0x5e9821('0x87')](_0x8ab519));if(_0x8ab519[_0x5e9821('0x67')]){if(_0x8ab519['error'][_0x5e9821('0x83')]===0x1f4)return logger['error'](_0x5e9821('0x5f'),_0x385fce,_0x8ab519[_0x5e9821('0x67')][_0x5e9821('0x5')]),_0x2487d9(_0x8ab519['error'][_0x5e9821('0x5')]);return logger[_0x5e9821('0x67')](_0x5e9821('0x5f'),_0x385fce,_0x8ab519[_0x5e9821('0x67')]['message']),_0x139a8c(_0x8ab519['error'][_0x5e9821('0x5')]);}else logger[_0x5e9821('0x14')](_0x5e9821('0x5f'),_0x385fce,_0x5e9821('0x15')),_0x139a8c(_0x8ab519[_0x5e9821('0x29')][_0x5e9821('0x5')]);})[_0x601a3f('0x3e')](function(_0x1d0448){logger['error']('WhatsappAccount,\x20%s,\x20%s',_0x385fce,_0x1d0448),_0x2487d9(_0x1d0448);});});}function respondWithStatusCode(_0x150937,_0x1dba52){return _0x1dba52=_0x1dba52||0xcc,function(_0x17e8c0){const _0x57f18f=a783_0x2407;if(_0x17e8c0)return _0x150937[_0x57f18f('0x7c')](_0x1dba52);return _0x150937['status'](_0x1dba52)[_0x57f18f('0x11')]();};}function respondWithResult(_0x1cbc4c,_0x43488d){return _0x43488d=_0x43488d||0xc8,function(_0x27729e){const _0x2bb59b=a783_0x2407;if(_0x27729e)return _0x1cbc4c[_0x2bb59b('0x34')](_0x43488d)[_0x2bb59b('0xc')](_0x27729e);};}function respondWithFilteredResult(_0x35519c,_0x1a4e3b){return function(_0x588401){const _0x567142=a783_0x2407;if(_0x588401){const _0x15d957=_0x588401['count'],_0x15a3de=_0x1a4e3b[_0x567142('0x19')];let _0x383e6b=_0x1a4e3b[_0x567142('0x19')]+_0x1a4e3b['limit'],_0x545cd9;return _0x383e6b>=_0x15d957?(_0x383e6b=_0x15d957,_0x545cd9=0xc8):_0x545cd9=0xce,_0x35519c['status'](_0x545cd9),_0x35519c[_0x567142('0x46')]('Content-Range',_0x15a3de+'-'+_0x383e6b+'/'+_0x15d957)[_0x567142('0xc')](_0x588401);}return null;};}function saveUpdates(_0x15ba27){return function(_0x174af8){const _0x432e98=a783_0x2407;if(_0x174af8)return _0x174af8[_0x432e98('0x41')](_0x15ba27)[_0x432e98('0x74')](function(_0x32c596){return _0x32c596;});return null;};}function removeEntity(_0x3760ec){return function(_0x5f341c){const _0xbed17=a783_0x2407;if(_0x5f341c)return _0x5f341c[_0xbed17('0x6d')]()[_0xbed17('0x74')](function(){const _0x4d4892=_0xbed17,_0x394407=_0x5f341c[_0x4d4892('0x54')]({'plain':!![]}),_0x44acdb=_0x4d4892('0x5c');return db['UserProfileResource']['destroy']({'where':{'type':_0x44acdb,'resourceId':_0x394407['id']}})[_0x4d4892('0x74')](function(){return _0x5f341c;});})[_0xbed17('0x74')](function(){const _0x48f944=_0xbed17;_0x3760ec[_0x48f944('0x34')](0xcc)[_0x48f944('0x11')]();});};}function handleEntityNotFound(_0x560be7){return function(_0x9b9e54){const _0xd6ff70=a783_0x2407;return!_0x9b9e54&&_0x560be7[_0xd6ff70('0x7c')](0x194),_0x9b9e54;};}function handleError(_0x4ebec8,_0x3b94d1){return _0x3b94d1=_0x3b94d1||0x1f4,function(_0x4214d1){const _0xc2c8f6=a783_0x2407;logger[_0xc2c8f6('0x67')](_0x4214d1[_0xc2c8f6('0x73')]),_0x4214d1['name']&&delete _0x4214d1['name'],_0x4ebec8['status'](_0x3b94d1)[_0xc2c8f6('0x2d')](_0x4214d1);};}exports[_0x2e48e6('0x3f')]=function(_0x4914ab,_0x397509){const _0x5ee20f=_0x2e48e6;let _0x3d435c={'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x17d191={},_0x3e18b2={'count':0x0,'rows':[]},_0x49931c=_[_0x5ee20f('0x24')](db[_0x5ee20f('0x9a')][_0x5ee20f('0x98')],function(_0x46a316){const _0x40830c=_0x5ee20f;return{'name':_0x46a316[_0x40830c('0x7a')],'type':_0x46a316[_0x40830c('0xf')][_0x40830c('0x61')]};});_0x17d191[_0x5ee20f('0x30')]=_['map'](_0x49931c,'name'),_0x17d191[_0x5ee20f('0x49')]=_[_0x5ee20f('0x6a')](_0x4914ab[_0x5ee20f('0x49')]),_0x17d191['filters']=_['intersection'](_0x17d191[_0x5ee20f('0x30')],_0x17d191[_0x5ee20f('0x49')]),_0x3d435c[_0x5ee20f('0x60')]=_[_0x5ee20f('0x16')](_0x17d191[_0x5ee20f('0x30')],qs[_0x5ee20f('0x5e')](_0x4914ab['query'][_0x5ee20f('0x5e')])),_0x3d435c[_0x5ee20f('0x60')]=_0x3d435c[_0x5ee20f('0x60')][_0x5ee20f('0x4a')]?_0x3d435c[_0x5ee20f('0x60')]:_0x17d191[_0x5ee20f('0x30')];typeof _0x4914ab[_0x5ee20f('0x49')][_0x5ee20f('0x69')]===_0x5ee20f('0x8')&&(_0x3d435c[_0x5ee20f('0x1a')]=qs[_0x5ee20f('0x1a')](_0x4914ab[_0x5ee20f('0x49')]['limit']),_0x3d435c['offset']=qs[_0x5ee20f('0x19')](_0x4914ab['query'][_0x5ee20f('0x19')]));_0x3d435c[_0x5ee20f('0x48')]=qs[_0x5ee20f('0x4e')](_0x4914ab[_0x5ee20f('0x49')][_0x5ee20f('0x4e')]),_0x3d435c[_0x5ee20f('0x28')]=qs['filters'](_[_0x5ee20f('0x17')](_0x4914ab[_0x5ee20f('0x49')],_0x17d191[_0x5ee20f('0x6f')]),_0x49931c);_0x4914ab[_0x5ee20f('0x49')][_0x5ee20f('0x8b')]&&(_0x3d435c['where']=_[_0x5ee20f('0x2f')](_0x3d435c[_0x5ee20f('0x28')],{[Op['or']]:_['map'](_0x49931c,function(_0xdca702){const _0x3e133c=_0x5ee20f;if(_0xdca702[_0x3e133c('0xf')]!==_0x3e133c('0x3d')){const _0x4fff99={};return _0x4fff99[_0xdca702[_0x3e133c('0x4')]]={[Op[_0x3e133c('0x50')]]:'%'+_0x4914ab['query'][_0x3e133c('0x8b')]+'%'},_0x4fff99;}})}));_0x3d435c=_['merge']({},_0x3d435c,_0x4914ab['options']);const _0x20b278={'where':_0x3d435c[_0x5ee20f('0x28')]};return db[_0x5ee20f('0x9a')][_0x5ee20f('0x44')](_0x20b278)[_0x5ee20f('0x74')](function(_0x544773){const _0x12fff3=_0x5ee20f;return _0x3e18b2[_0x12fff3('0x44')]=_0x544773,_0x4914ab[_0x12fff3('0x49')]['includeAll']&&(_0x3d435c['include']=[{'all':!![]}]),db[_0x12fff3('0x9a')]['findAll'](_0x3d435c);})[_0x5ee20f('0x74')](function(_0x2314a9){const _0x3ee06f=_0x5ee20f;return _0x3e18b2[_0x3ee06f('0x4c')]=_0x2314a9,_0x3e18b2;})[_0x5ee20f('0x74')](respondWithFilteredResult(_0x397509,_0x3d435c))[_0x5ee20f('0x3e')](handleError(_0x397509,null));},exports['show']=function(_0x26e1fc,_0x5d6d99){const _0x717ae2=_0x2e48e6;let _0x476007={'raw':![],'where':{'id':_0x26e1fc[_0x717ae2('0x90')]['id']},'include':[{'model':db['Pause'],'as':_0x717ae2('0x94')}]};const _0x44f98f={};return _0x44f98f[_0x717ae2('0x30')]=_[_0x717ae2('0x6a')](db[_0x717ae2('0x9a')][_0x717ae2('0x98')]),_0x44f98f['query']=_['keys'](_0x26e1fc[_0x717ae2('0x49')]),_0x44f98f[_0x717ae2('0x6f')]=_['intersection'](_0x44f98f[_0x717ae2('0x30')],_0x44f98f[_0x717ae2('0x49')]),_0x476007[_0x717ae2('0x60')]=_[_0x717ae2('0x16')](_0x44f98f['model'],qs['fields'](_0x26e1fc[_0x717ae2('0x49')][_0x717ae2('0x5e')])),_0x476007[_0x717ae2('0x60')]=_0x476007[_0x717ae2('0x60')][_0x717ae2('0x4a')]?_0x476007['attributes']:_0x44f98f[_0x717ae2('0x30')],_0x26e1fc['query'][_0x717ae2('0x26')]&&(_0x476007[_0x717ae2('0x2b')]=[{'all':!![]}]),_0x476007=_[_0x717ae2('0x2f')]({},_0x476007,_0x26e1fc[_0x717ae2('0x43')]),db[_0x717ae2('0x9a')][_0x717ae2('0xa')](_0x476007)[_0x717ae2('0x74')](handleEntityNotFound(_0x5d6d99,null))[_0x717ae2('0x74')](respondWithResult(_0x5d6d99,null))[_0x717ae2('0x3e')](handleError(_0x5d6d99,null));},exports[_0x2e48e6('0x12')]=function(_0x27a384,_0x46acd3){const _0xce36bc=_0x2e48e6;return db[_0xce36bc('0x9a')][_0xce36bc('0x12')](_0x27a384[_0xce36bc('0x71')],{})[_0xce36bc('0x74')](function(_0x26cc86){const _0x1d1682=_0xce36bc,_0x30605d=_0x27a384[_0x1d1682('0x8f')][_0x1d1682('0x54')]({'plain':!![]});if(!_0x30605d)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x30605d[_0x1d1682('0x5d')]===_0x1d1682('0x8f')){const _0x23da33=_0x26cc86['get']({'plain':!![]}),_0x14228e=_0x1d1682('0x5c');return db[_0x1d1682('0x7f')][_0x1d1682('0xa')]({'where':{'name':_0x14228e,'userProfileId':_0x30605d[_0x1d1682('0x22')]},'raw':!![]})[_0x1d1682('0x74')](function(_0x434c38){const _0x56d19e=_0x1d1682;return _0x434c38&&_0x434c38['autoAssociation']===0x0?db[_0x56d19e('0x78')][_0x56d19e('0x12')]({'name':_0x23da33[_0x56d19e('0x4')],'resourceId':_0x23da33['id'],'type':_0x434c38[_0x56d19e('0x4')],'sectionId':_0x434c38['id']},{})[_0x56d19e('0x74')](function(){return _0x26cc86;}):_0x26cc86;})[_0x1d1682('0x3e')](function(_0x16e62b){const _0x949766=_0x1d1682;logger[_0x949766('0x67')](_0x949766('0x9b'),_0x16e62b);throw _0x16e62b;});}return _0x26cc86;})[_0xce36bc('0x74')](respondWithResult(_0x46acd3,0xc9))['catch'](handleError(_0x46acd3,null));},exports[_0x2e48e6('0x41')]=function(_0x1aa7e5,_0x23c2d2){const _0xccb784=_0x2e48e6;return _0x1aa7e5[_0xccb784('0x71')]['id']&&delete _0x1aa7e5[_0xccb784('0x71')]['id'],db['WhatsappAccount'][_0xccb784('0xa')]({'where':{'id':_0x1aa7e5[_0xccb784('0x90')]['id']},'include':[{'model':db['Pause'],'as':_0xccb784('0x94')}]})[_0xccb784('0x74')](handleEntityNotFound(_0x23c2d2,null))[_0xccb784('0x74')](saveUpdates(_0x1aa7e5['body'],null))['then'](respondWithResult(_0x23c2d2,null))['catch'](handleError(_0x23c2d2,null));},exports[_0x2e48e6('0x6d')]=function(_0xf19e6c,_0x4936be){const _0x1e47c1=_0x2e48e6;return db[_0x1e47c1('0x9a')][_0x1e47c1('0xa')]({'where':{'id':_0xf19e6c[_0x1e47c1('0x90')]['id']}})[_0x1e47c1('0x74')](handleEntityNotFound(_0x4936be,null))[_0x1e47c1('0x74')](removeEntity(_0x4936be,null))[_0x1e47c1('0x3e')](handleError(_0x4936be,null));},exports['describe']=function(_0x3a381c,_0x468b32){const _0x4022d8=_0x2e48e6;return db[_0x4022d8('0x9a')][_0x4022d8('0x55')]()[_0x4022d8('0x74')](respondWithResult(_0x468b32,null))['catch'](handleError(_0x468b32,null));},exports[_0x2e48e6('0x56')]=function(_0x54b156,_0x33a879){const _0x347c79=_0x2e48e6;return _0x54b156[_0x347c79('0x71')]['id']&&delete _0x54b156['body']['id'],db[_0x347c79('0x9a')][_0x347c79('0xa')]({'where':{'id':_0x54b156['params']['id']}})[_0x347c79('0x74')](handleEntityNotFound(_0x33a879,null))[_0x347c79('0x74')](function(_0x324b55){const _0xb6748c=_0x347c79;if(_0x324b55)return _0x54b156[_0xb6748c('0x71')][_0xb6748c('0x27')]=_0x324b55['id'],db[_0xb6748c('0x1')]['create'](_0x54b156['body']);})['then'](respondWithResult(_0x33a879,null))[_0x347c79('0x3e')](handleError(_0x33a879,null));},exports[_0x2e48e6('0x65')]=function(_0x5dc9f9,_0x55b27d){const _0x4ac3fe=_0x2e48e6;let _0x289cf1={'raw':![],'where':{}};const _0x3be4cb={},_0x413d25={'count':0x0,'rows':[]};return db[_0x4ac3fe('0x9a')]['findOne']({'where':{'id':_0x5dc9f9[_0x4ac3fe('0x90')]['id']}})[_0x4ac3fe('0x74')](handleEntityNotFound(_0x55b27d,null))[_0x4ac3fe('0x74')](function(_0x8e9fda){const _0x3ac3ff=_0x4ac3fe;if(_0x8e9fda)return _0x3be4cb[_0x3ac3ff('0x30')]=_[_0x3ac3ff('0x6a')](db[_0x3ac3ff('0x1')][_0x3ac3ff('0x98')]),_0x3be4cb[_0x3ac3ff('0x49')]=_[_0x3ac3ff('0x6a')](_0x5dc9f9[_0x3ac3ff('0x49')]),_0x3be4cb[_0x3ac3ff('0x6f')]=_[_0x3ac3ff('0x16')](_0x3be4cb[_0x3ac3ff('0x30')],_0x3be4cb[_0x3ac3ff('0x49')]),_0x289cf1[_0x3ac3ff('0x60')]=_[_0x3ac3ff('0x16')](_0x3be4cb[_0x3ac3ff('0x30')],qs['fields'](_0x5dc9f9[_0x3ac3ff('0x49')][_0x3ac3ff('0x5e')])),_0x289cf1[_0x3ac3ff('0x60')]=_0x289cf1[_0x3ac3ff('0x60')][_0x3ac3ff('0x4a')]?_0x289cf1['attributes']:_0x3be4cb['model'],typeof _0x5dc9f9[_0x3ac3ff('0x49')][_0x3ac3ff('0x69')]==='undefined'&&(_0x289cf1[_0x3ac3ff('0x1a')]=qs[_0x3ac3ff('0x1a')](_0x5dc9f9[_0x3ac3ff('0x49')][_0x3ac3ff('0x1a')]),_0x289cf1[_0x3ac3ff('0x19')]=qs[_0x3ac3ff('0x19')](_0x5dc9f9['query'][_0x3ac3ff('0x19')])),_0x289cf1['order']=qs[_0x3ac3ff('0x4e')](_0x5dc9f9[_0x3ac3ff('0x49')][_0x3ac3ff('0x4e')]),_0x289cf1[_0x3ac3ff('0x28')]=qs[_0x3ac3ff('0x6f')](_[_0x3ac3ff('0x17')](_0x5dc9f9[_0x3ac3ff('0x49')],_0x3be4cb[_0x3ac3ff('0x6f')])),_0x289cf1[_0x3ac3ff('0x28')][_0x3ac3ff('0x27')]=_0x8e9fda['id'],_0x5dc9f9[_0x3ac3ff('0x49')][_0x3ac3ff('0x8b')]&&(_0x289cf1[_0x3ac3ff('0x28')]=_['merge'](_0x289cf1[_0x3ac3ff('0x28')],{[Op['or']]:_['map'](_0x289cf1['attributes'],function(_0x3c1410){const _0x13e90e=_0x3ac3ff,_0x167c76={};return _0x167c76[_0x3c1410]={[Op[_0x13e90e('0x50')]]:'%'+_0x5dc9f9[_0x13e90e('0x49')]['filter']+'%'},_0x167c76;})})),_0x289cf1=_[_0x3ac3ff('0x2f')]({},_0x289cf1,_0x5dc9f9['options']),db[_0x3ac3ff('0x1')][_0x3ac3ff('0x44')]({'where':_0x289cf1[_0x3ac3ff('0x28')]})['then'](function(_0x4551c7){const _0x295f3c=_0x3ac3ff;return _0x413d25['count']=_0x4551c7,_0x5dc9f9[_0x295f3c('0x49')][_0x295f3c('0x26')]&&(_0x289cf1[_0x295f3c('0x2b')]=[{'all':!![]}]),db[_0x295f3c('0x1')][_0x295f3c('0x8c')](_0x289cf1);})['then'](function(_0x106ac1){const _0x24db68=_0x3ac3ff;return _0x413d25[_0x24db68('0x4c')]=_0x106ac1,_0x413d25;});})[_0x4ac3fe('0x74')](respondWithFilteredResult(_0x55b27d,_0x289cf1))[_0x4ac3fe('0x3e')](handleError(_0x55b27d,null));},exports[_0x2e48e6('0x96')]=function(_0x332a66,_0x5eda54){const _0x8c5acf=_0x2e48e6;return db[_0x8c5acf('0x9a')]['findOne']({'where':{'id':_0x332a66[_0x8c5acf('0x90')]['id']}})['then'](handleEntityNotFound(_0x5eda54,null))[_0x8c5acf('0x74')](function(_0x4bb0ba){const _0x504e60=_0x8c5acf;if(_0x4bb0ba)return _0x4bb0ba['removeDispositions'](_0x332a66[_0x504e60('0x49')]['ids']);})[_0x8c5acf('0x74')](respondWithStatusCode(_0x5eda54,null))[_0x8c5acf('0x3e')](handleError(_0x5eda54,null));},exports[_0x2e48e6('0x6e')]=function(_0x2da9ce,_0x12d449){const _0x38ca0a=_0x2e48e6;return _0x2da9ce[_0x38ca0a('0x71')]['id']&&delete _0x2da9ce[_0x38ca0a('0x71')]['id'],db[_0x38ca0a('0x9a')][_0x38ca0a('0xa')]({'where':{'id':_0x2da9ce['params']['id']}})[_0x38ca0a('0x74')](handleEntityNotFound(_0x12d449,null))[_0x38ca0a('0x74')](function(_0x3f0e31){const _0x3f417c=_0x38ca0a;if(_0x3f0e31)return _0x2da9ce['body']['WhatsappAccountId']=_0x3f0e31['id'],db[_0x3f417c('0x88')][_0x3f417c('0x12')](_0x2da9ce[_0x3f417c('0x71')]);})[_0x38ca0a('0x74')](respondWithResult(_0x12d449,null))[_0x38ca0a('0x3e')](handleError(_0x12d449,null));},exports[_0x2e48e6('0x59')]=function(_0x1b5fef,_0x204bf5){const _0x234899=_0x2e48e6;let _0x50e31f={'raw':![],'where':{}};const _0x1660f9={},_0x1940f5={'count':0x0,'rows':[]};return db[_0x234899('0x9a')][_0x234899('0xa')]({'where':{'id':_0x1b5fef[_0x234899('0x90')]['id']}})[_0x234899('0x74')](handleEntityNotFound(_0x204bf5,null))[_0x234899('0x74')](function(_0x506ae5){const _0x3faa4e=_0x234899;if(_0x506ae5)return _0x1660f9['model']=_[_0x3faa4e('0x6a')](db['CannedAnswer'][_0x3faa4e('0x98')]),_0x1660f9['query']=_['keys'](_0x1b5fef['query']),_0x1660f9[_0x3faa4e('0x6f')]=_[_0x3faa4e('0x16')](_0x1660f9[_0x3faa4e('0x30')],_0x1660f9[_0x3faa4e('0x49')]),_0x50e31f[_0x3faa4e('0x60')]=_[_0x3faa4e('0x16')](_0x1660f9['model'],qs['fields'](_0x1b5fef['query'][_0x3faa4e('0x5e')])),_0x50e31f['attributes']=_0x50e31f[_0x3faa4e('0x60')][_0x3faa4e('0x4a')]?_0x50e31f['attributes']:_0x1660f9[_0x3faa4e('0x30')],typeof _0x1b5fef['query']['nolimit']===_0x3faa4e('0x8')&&(_0x50e31f[_0x3faa4e('0x1a')]=qs[_0x3faa4e('0x1a')](_0x1b5fef[_0x3faa4e('0x49')][_0x3faa4e('0x1a')]),_0x50e31f['offset']=qs[_0x3faa4e('0x19')](_0x1b5fef[_0x3faa4e('0x49')][_0x3faa4e('0x19')])),_0x50e31f[_0x3faa4e('0x48')]=qs[_0x3faa4e('0x4e')](_0x1b5fef[_0x3faa4e('0x49')][_0x3faa4e('0x4e')]),_0x50e31f[_0x3faa4e('0x28')]=qs[_0x3faa4e('0x6f')](_[_0x3faa4e('0x17')](_0x1b5fef[_0x3faa4e('0x49')],_0x1660f9['filters'])),_0x50e31f['where'][_0x3faa4e('0x27')]=_0x506ae5['id'],_0x1b5fef[_0x3faa4e('0x49')][_0x3faa4e('0x8b')]&&(_0x50e31f[_0x3faa4e('0x28')]=_[_0x3faa4e('0x2f')](_0x50e31f[_0x3faa4e('0x28')],{[Op['or']]:_['map'](_0x50e31f['attributes'],function(_0x2c36f1){const _0x1bdbb8=_0x3faa4e,_0x1ef85={};return _0x1ef85[_0x2c36f1]={[Op[_0x1bdbb8('0x50')]]:'%'+_0x1b5fef[_0x1bdbb8('0x49')][_0x1bdbb8('0x8b')]+'%'},_0x1ef85;})})),_0x50e31f=_[_0x3faa4e('0x2f')]({},_0x50e31f,_0x1b5fef[_0x3faa4e('0x43')]),db['CannedAnswer'][_0x3faa4e('0x44')]({'where':_0x50e31f[_0x3faa4e('0x28')]})['then'](function(_0x25a562){const _0x3a5189=_0x3faa4e;return _0x1940f5[_0x3a5189('0x44')]=_0x25a562,_0x1b5fef['query']['includeAll']&&(_0x50e31f['include']=[{'all':!![]}]),db[_0x3a5189('0x88')][_0x3a5189('0x8c')](_0x50e31f);})[_0x3faa4e('0x74')](function(_0x1d24cd){const _0x1b5748=_0x3faa4e;return _0x1940f5[_0x1b5748('0x4c')]=_0x1d24cd,_0x1940f5;});})['then'](respondWithFilteredResult(_0x204bf5,_0x50e31f))[_0x234899('0x3e')](handleError(_0x204bf5,null));},exports[_0x2e48e6('0x77')]=function(_0x21ccc2,_0x518e7e){const _0x4cab01=_0x2e48e6;return db[_0x4cab01('0x9a')]['findOne']({'where':{'id':_0x21ccc2[_0x4cab01('0x90')]['id']}})[_0x4cab01('0x74')](handleEntityNotFound(_0x518e7e,null))[_0x4cab01('0x74')](function(_0x1096cf){const _0xf9b0e=_0x4cab01;if(_0x1096cf)return _0x1096cf[_0xf9b0e('0x77')](_0x21ccc2[_0xf9b0e('0x49')]['ids']);})[_0x4cab01('0x74')](respondWithStatusCode(_0x518e7e,null))['catch'](handleError(_0x518e7e,null));},exports[_0x2e48e6('0x35')]=function(_0x1d4f97,_0x199367){const _0x12afe5=_0x2e48e6;return db[_0x12afe5('0x9a')][_0x12afe5('0xa')]({'where':{'id':_0x1d4f97[_0x12afe5('0x90')]['id']}})['then'](function(_0x340d31){const _0x41201b=_0x12afe5;if(_0x340d31)return _0x340d31[_0x41201b('0x35')](_0x1d4f97[_0x41201b('0x71')]['ids'],{'through':_['omit'](_0x1d4f97[_0x41201b('0x71')],['ids','id'])})['then'](function(_0x9b2d53){const _0x3f90c4=_0x41201b;for(let _0x316637=0x0;_0x316637<_0x1d4f97[_0x3f90c4('0x71')]['ids'][_0x3f90c4('0x4a')];_0x316637+=0x1){socket[_0x3f90c4('0x82')](_0x3f90c4('0x72'),{'UserId':_0x1d4f97['body'][_0x3f90c4('0x21')][_0x316637],'WhatsappAccountId':_0x1d4f97['params']['id']});}return _0x9b2d53;});})[_0x12afe5('0x74')](respondWithResult(_0x199367,null))[_0x12afe5('0x3e')](handleError(_0x199367,null));},exports['removeAgents']=function(_0x59b9f6,_0x4ea716){const _0x51fa17=_0x2e48e6;return db[_0x51fa17('0x9a')]['findOne']({'where':{'id':_0x59b9f6[_0x51fa17('0x90')]['id']}})[_0x51fa17('0x74')](handleEntityNotFound(_0x4ea716,null))['then'](function(_0x3aa1b8){const _0x3ba655=_0x51fa17;if(_0x3aa1b8)return _0x3aa1b8['removeAgents'](_0x59b9f6[_0x3ba655('0x49')][_0x3ba655('0x21')])['then'](function(){const _0x151693=_0x3ba655;if(_[_0x151693('0x95')](_0x59b9f6[_0x151693('0x49')][_0x151693('0x21')]))for(let _0x15f7de=0x0;_0x15f7de<_0x59b9f6[_0x151693('0x49')][_0x151693('0x21')][_0x151693('0x4a')];_0x15f7de+=0x1){socket[_0x151693('0x82')](_0x151693('0x1f'),{'UserId':Number(_0x59b9f6[_0x151693('0x49')][_0x151693('0x21')][_0x15f7de]),'WhatsappAccountId':Number(_0x59b9f6[_0x151693('0x90')]['id'])});}else socket[_0x151693('0x82')](_0x151693('0x1f'),{'UserId':Number(_0x59b9f6[_0x151693('0x49')][_0x151693('0x21')]),'WhatsappAccountId':Number(_0x59b9f6[_0x151693('0x90')]['id'])});});})[_0x51fa17('0x74')](respondWithStatusCode(_0x4ea716,null))['catch'](handleError(_0x4ea716,null));},exports[_0x2e48e6('0x52')]=function(_0x1cbff1,_0x641a60){const _0x236396=_0x2e48e6;let _0x2bf469={};const _0x4ce777={};let _0x5b6769,_0x350b5b;return db['WhatsappAccount'][_0x236396('0xa')]({'where':{'id':_0x1cbff1[_0x236396('0x90')]['id']}})[_0x236396('0x74')](handleEntityNotFound(_0x641a60,null))[_0x236396('0x74')](function(_0x28352e){const _0x1797bb=_0x236396;if(_0x28352e)return _0x5b6769=_0x28352e,_0x4ce777[_0x1797bb('0x30')]=_[_0x1797bb('0x6a')](db[_0x1797bb('0x4d')][_0x1797bb('0x98')]),_0x4ce777[_0x1797bb('0x49')]=_[_0x1797bb('0x6a')](_0x1cbff1[_0x1797bb('0x49')]),_0x4ce777['filters']=_[_0x1797bb('0x16')](_0x4ce777[_0x1797bb('0x30')],_0x4ce777['query']),_0x2bf469[_0x1797bb('0x60')]=_[_0x1797bb('0x16')](_0x4ce777['model'],qs['fields'](_0x1cbff1['query']['fields'])),_0x2bf469[_0x1797bb('0x60')]=_0x2bf469['attributes'][_0x1797bb('0x4a')]?_0x2bf469[_0x1797bb('0x60')]:_0x4ce777[_0x1797bb('0x30')],_0x2bf469[_0x1797bb('0x48')]=qs[_0x1797bb('0x4e')](_0x1cbff1[_0x1797bb('0x49')][_0x1797bb('0x4e')]),_0x2bf469[_0x1797bb('0x28')]=qs['filters'](_[_0x1797bb('0x17')](_0x1cbff1[_0x1797bb('0x49')],_0x4ce777[_0x1797bb('0x6f')])),_0x1cbff1[_0x1797bb('0x49')][_0x1797bb('0x8b')]&&(_0x2bf469['where']=_[_0x1797bb('0x2f')](_0x2bf469[_0x1797bb('0x28')],{[Op['or']]:_['map'](_0x2bf469[_0x1797bb('0x60')],function(_0x550024){const _0x55c355=_0x1797bb,_0x19c42f={};return _0x19c42f[_0x550024]={[Op[_0x55c355('0x50')]]:'%'+_0x1cbff1[_0x55c355('0x49')]['filter']+'%'},_0x19c42f;})})),_0x2bf469=_[_0x1797bb('0x2f')]({},_0x2bf469,_0x1cbff1[_0x1797bb('0x43')]),_0x5b6769[_0x1797bb('0x52')](_0x2bf469);})[_0x236396('0x74')](function(_0x5b254e){const _0x114d49=_0x236396;if(_0x5b254e)return _0x350b5b=_0x5b254e['length'],typeof _0x1cbff1[_0x114d49('0x49')][_0x114d49('0x69')]==='undefined'&&(_0x2bf469[_0x114d49('0x1a')]=qs['limit'](_0x1cbff1['query'][_0x114d49('0x1a')]),_0x2bf469['offset']=qs['offset'](_0x1cbff1['query'][_0x114d49('0x19')])),_0x5b6769[_0x114d49('0x52')](_0x2bf469);})['then'](function(_0x3c8925){if(_0x3c8925)return _0x3c8925?{'count':_0x350b5b,'rows':_0x3c8925}:null;})[_0x236396('0x74')](respondWithResult(_0x641a60,null))[_0x236396('0x3e')](handleError(_0x641a60,null));},exports[_0x2e48e6('0x6b')]=function(_0x59007e,_0x3ab9ea){const _0x3f7eee=_0x2e48e6;return db['WhatsappAccount'][_0x3f7eee('0xa')]({'where':{'id':_0x59007e['params']['id']}})[_0x3f7eee('0x74')](handleEntityNotFound(_0x3ab9ea,null))[_0x3f7eee('0x74')](function(_0x213c6f){const _0x1f85b5=_0x3f7eee;if(_0x213c6f)return db['sequelize'][_0x1f85b5('0xe')](function(_0x21f273){const _0x32c05f=_0x1f85b5;return db[_0x32c05f('0x70')]['destroy']({'where':{'WhatsappAccountId':_0x59007e[_0x32c05f('0x90')]['id']},'transaction':_0x21f273})[_0x32c05f('0x74')](function(){const _0xa68288=_0x32c05f,_0x383ca5=_[_0xa68288('0x24')](_0x59007e['body'],function(_0x26ad31){const _0x85824e=_0xa68288;return _0x26ad31[_0x85824e('0x27')]=_0x59007e[_0x85824e('0x90')]['id'],_0x26ad31;});return db['WhatsappApplication']['bulkCreate'](_0x383ca5,{'transaction':_0x21f273});});})['then'](function(){const _0x9ec84b=_0x1f85b5;return db['WhatsappApplication'][_0x9ec84b('0x2e')]({'where':{'WhatsappAccountId':_0x59007e[_0x9ec84b('0x90')]['id']},'order':_0x9ec84b('0x38')});});})[_0x3f7eee('0x74')](respondWithResult(_0x3ab9ea,null))['catch'](handleError(_0x3ab9ea,null));},exports[_0x2e48e6('0x7e')]=function(_0x19c318,_0x3f72b1){const _0x54a35c=_0x2e48e6;let _0x208c20={};const _0x4922cf={};let _0x10679a,_0x38e72c;return db['WhatsappAccount'][_0x54a35c('0xa')]({'where':{'id':_0x19c318['params']['id']}})[_0x54a35c('0x74')](handleEntityNotFound(_0x3f72b1,null))[_0x54a35c('0x74')](function(_0x28e27f){const _0x4ea909=_0x54a35c;if(_0x28e27f)return _0x10679a=_0x28e27f,_0x4922cf['model']=_['keys'](db[_0x4ea909('0x70')]['rawAttributes']),_0x4922cf[_0x4ea909('0x49')]=_[_0x4ea909('0x6a')](_0x19c318[_0x4ea909('0x49')]),_0x4922cf[_0x4ea909('0x6f')]=_[_0x4ea909('0x16')](_0x4922cf[_0x4ea909('0x30')],_0x4922cf[_0x4ea909('0x49')]),_0x208c20['attributes']=_[_0x4ea909('0x16')](_0x4922cf['model'],qs[_0x4ea909('0x5e')](_0x19c318['query']['fields'])),_0x208c20[_0x4ea909('0x60')]=_0x208c20[_0x4ea909('0x60')][_0x4ea909('0x4a')]?_0x208c20[_0x4ea909('0x60')]:_0x4922cf[_0x4ea909('0x30')],_0x208c20[_0x4ea909('0x48')]=qs[_0x4ea909('0x4e')](_0x19c318['query'][_0x4ea909('0x4e')]),_0x208c20[_0x4ea909('0x28')]=qs[_0x4ea909('0x6f')](_[_0x4ea909('0x17')](_0x19c318[_0x4ea909('0x49')],_0x4922cf[_0x4ea909('0x6f')])),_0x19c318['query']['filter']&&(_0x208c20[_0x4ea909('0x28')]=_[_0x4ea909('0x2f')](_0x208c20[_0x4ea909('0x28')],{[Op['or']]:_['map'](_0x208c20[_0x4ea909('0x60')],function(_0x918790){const _0x5463f8=_0x4ea909,_0x295c1a={};return _0x295c1a[_0x918790]={[Op[_0x5463f8('0x50')]]:'%'+_0x19c318[_0x5463f8('0x49')]['filter']+'%'},_0x295c1a;})})),_0x208c20=_[_0x4ea909('0x2f')]({},_0x208c20,_0x19c318['options']),_0x10679a[_0x4ea909('0x7e')](_0x208c20);})['then'](function(_0x41e883){const _0x124260=_0x54a35c;if(_0x41e883)return _0x38e72c=_0x41e883[_0x124260('0x4a')],typeof _0x19c318['query'][_0x124260('0x69')]===_0x124260('0x8')&&(_0x208c20[_0x124260('0x1a')]=qs['limit'](_0x19c318[_0x124260('0x49')][_0x124260('0x1a')]),_0x208c20[_0x124260('0x19')]=qs['offset'](_0x19c318['query'][_0x124260('0x19')])),_0x10679a['getApplications'](_0x208c20);})[_0x54a35c('0x74')](function(_0x2a39c0){if(_0x2a39c0)return _0x2a39c0?{'count':_0x38e72c,'rows':_0x2a39c0}:null;})[_0x54a35c('0x74')](respondWithResult(_0x3f72b1,null))[_0x54a35c('0x3e')](handleError(_0x3f72b1,null));},exports[_0x2e48e6('0x62')]=function(_0x4cad9f,_0x2e1f16){const _0x46c4aa=_0x2e48e6,_0x2205ac={'channel':'whatsapp'};let _0x5967bf=[],_0x141be7=[];const _0x4383fc={};return db[_0x46c4aa('0x9a')][_0x46c4aa('0xa')]({'where':{'id':_0x4cad9f[_0x46c4aa('0x90')]['id']},'include':[{'model':db[_0x46c4aa('0x70')],'as':_0x46c4aa('0x92')}]})[_0x46c4aa('0x74')](handleEntityNotFound(_0x2e1f16,null))[_0x46c4aa('0x74')](function(_0x30b8b5){const _0x5ecd97=_0x46c4aa;return _0x2205ac[_0x5ecd97('0x32')]=_0x30b8b5,_0x2205ac[_0x5ecd97('0x63')]=_[_0x5ecd97('0x64')](_0x30b8b5['Applications'],[_0x5ecd97('0x38')],[_0x5ecd97('0xb')]),_0x2205ac[_0x5ecd97('0x32')]['Applications']&&delete _0x2205ac[_0x5ecd97('0x32')][_0x5ecd97('0x92')],db[_0x5ecd97('0x6c')]['describe']();})['then'](function(_0x50fdca){const _0x5a78ba=_0x46c4aa;if(!_0x50fdca)throw new db['Sequelize'][(_0x5a78ba('0x31'))](_0x5a78ba('0x7'));_0x5967bf=_[_0x5a78ba('0x2a')](_[_0x5a78ba('0x6a')](_0x50fdca),['createdAt',_0x5a78ba('0x81')]),_0x141be7=_['difference'](_[_0x5a78ba('0x6a')](_0x50fdca),[_0x5a78ba('0x86'),_0x5a78ba('0x81'),_0x5a78ba('0xd'),_0x5a78ba('0x80')]),_0x2205ac[_0x5a78ba('0x71')]={'mapKey':_0x5a78ba('0x1b')};_0x2205ac[_0x5a78ba('0x32')][_0x5a78ba('0xf')]&&_0x2205ac['account']['type']===_0x5a78ba('0x9')&&(_0x2205ac[_0x5a78ba('0x71')][_0x5a78ba('0x8a')]=_0x4cad9f['body'][_0x5a78ba('0x75')][_0x5a78ba('0x84')](_0x5a78ba('0x66'),''),_0x2205ac[_0x5a78ba('0x71')]['body']=_0x4cad9f[_0x5a78ba('0x71')][_0x5a78ba('0x53')],_0x2205ac[_0x5a78ba('0x71')][_0x5a78ba('0x18')]=_0x4cad9f[_0x5a78ba('0x71')]['MessageSid']);_0x2205ac[_0x5a78ba('0x71')]['id']&&delete _0x2205ac[_0x5a78ba('0x71')]['id'];if(_[_0x5a78ba('0x45')](_0x2205ac[_0x5a78ba('0x71')][_0x5a78ba('0x8a')]))throw new db[(_0x5a78ba('0x1c'))][(_0x5a78ba('0x31'))]('from\x20is\x20mandatory');if(_[_0x5a78ba('0x45')](_0x2205ac[_0x5a78ba('0x71')][_0x5a78ba('0x71')])||_0x2205ac[_0x5a78ba('0x71')]['body']==='')throw new db['Sequelize'][(_0x5a78ba('0x31'))]('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x5a78ba('0x45')](_0x2205ac[_0x5a78ba('0x71')][_0x5a78ba('0x7d')]))throw new db['Sequelize'][(_0x5a78ba('0x31'))](_0x5a78ba('0x1d')+_0x141be7);if(!_[_0x5a78ba('0x20')](_0x141be7,_0x2205ac['body'][_0x5a78ba('0x7d')]))throw new db[(_0x5a78ba('0x1c'))][(_0x5a78ba('0x31'))](_0x5a78ba('0x57')+_0x141be7);return _0x4383fc[_0x2205ac['body'][_0x5a78ba('0x7d')]]=_0x2205ac[_0x5a78ba('0x71')][_0x5a78ba('0x8a')],db['CmList'][_0x5a78ba('0xa')]({'where':{'id':_0x2205ac[_0x5a78ba('0x32')]['ListId']},'include':[{'model':db['CmContact'],'as':'Contacts','where':_0x4383fc,'limit':0x1,'order':[[_0x5a78ba('0x81'),_0x5a78ba('0x2')]]}]});})[_0x46c4aa('0x74')](handleEntityNotFound(_0x2e1f16,null))[_0x46c4aa('0x74')](function(_0x420788){const _0x45c67f=_0x46c4aa;if(_0x420788){_0x2205ac[_0x45c67f('0x85')]=_[_0x45c67f('0x0')](_0x420788,[_0x45c67f('0x8d')]);if(_0x420788[_0x45c67f('0x8d')][_0x45c67f('0x4a')])return _0x420788[_0x45c67f('0x8d')][0x0];const _0x4ac342=_[_0x45c67f('0x9c')](_0x2205ac[_0x45c67f('0x71')],{'firstName':_0x2205ac[_0x45c67f('0x71')]['from'],'ListId':_0x420788['id']});return _0x4ac342[_0x2205ac[_0x45c67f('0x71')]['mapKey']]=_0x2205ac[_0x45c67f('0x71')][_0x45c67f('0x8a')],db[_0x45c67f('0x6c')][_0x45c67f('0x12')](_0x4ac342,{'fields':_0x5967bf,'raw':!![]});}})[_0x46c4aa('0x74')](handleEntityNotFound(_0x2e1f16,null))['then'](function(_0x11a96f){const _0x2b1867=_0x46c4aa;if(_0x11a96f){_0x2205ac[_0x2b1867('0x99')]=_0x11a96f;const _0x7fa0b7={'ContactId':_0x11a96f['id'],'phone':_0x2205ac['body'][_0x2b1867('0x8a')],'WhatsappAccountId':_0x4cad9f[_0x2b1867('0x90')]['id']},_0x58cd1b={'ContactId':_0x11a96f['id'],'WhatsappAccountId':_0x4cad9f['params']['id'],'closed':![]};return db[_0x2b1867('0x39')][_0x2b1867('0xa')]({'where':_0x58cd1b})['then'](function(_0x55bd4f){const _0x2a02ca=_0x2b1867;if(_0x55bd4f)return[_0x55bd4f,![]];return db['WhatsappInteraction'][_0x2a02ca('0x12')](_0x7fa0b7)[_0x2a02ca('0x74')](function(_0xb77fa3){return[_0xb77fa3,!![]];});});}})[_0x46c4aa('0x74')](function([_0x14a840,_0x2aecd3]){const _0x3c77fc=_0x46c4aa;return _0x2205ac[_0x3c77fc('0x10')]=_0x14a840[_0x3c77fc('0x54')]({'plain':!![]}),_0x2205ac[_0x3c77fc('0x10')][_0x3c77fc('0x25')]=![],_0x2aecd3&&(_0x2205ac[_0x3c77fc('0x32')][_0x3c77fc('0x91')]&&_0x2205ac[_0x3c77fc('0x63')]['push']({'id':0x0,'priority':_0x2205ac[_0x3c77fc('0x63')][_0x3c77fc('0x4a')]+0x1,'app':_0x3c77fc('0x3a'),'appdata':_0x3c77fc('0x47'),'interval':_0x3c77fc('0x5b')}),_0x2205ac[_0x3c77fc('0x10')]['created']=!![]),db['WhatsappMessage']['create']({'phone':_0x2205ac[_0x3c77fc('0x71')][_0x3c77fc('0x8a')],'messageId':_0x2205ac[_0x3c77fc('0x71')]['messageId'],'body':_0x2205ac[_0x3c77fc('0x71')][_0x3c77fc('0x71')],'WhatsappAccountId':_0x4cad9f[_0x3c77fc('0x90')]['id'],'WhatsappInteractionId':_0x14a840['id'],'direction':'in','ContactId':_0x14a840['ContactId'],'AttachmentId':_0x2205ac[_0x3c77fc('0x71')]['AttachmentId']});})[_0x46c4aa('0x74')](function(_0x140d7d){const _0xf61af6=_0x46c4aa;_0x2205ac[_0xf61af6('0x5')]=_0x140d7d;if(_0x2205ac['interaction']['UserId'])return db[_0xf61af6('0x4d')][_0xf61af6('0xa')]({'attributes':['id',_0xf61af6('0x4')],'where':{'id':_0x2205ac[_0xf61af6('0x10')]['UserId']}})['then'](function(_0x250069){const _0x19a6f2=_0xf61af6;return _0x250069&&_0x2205ac[_0x19a6f2('0x63')][_0x19a6f2('0x58')]({'id':0x0,'priority':0x0,'app':_0x19a6f2('0x68'),'appdata':_0x250069[_0x19a6f2('0x4')]+','+(_0x2205ac[_0x19a6f2('0x32')][_0x19a6f2('0x36')]||0xa),'interval':_0x19a6f2('0x5b')}),respondWithRpcPromise(_0x19a6f2('0x6'),_0x19a6f2('0x79'),_0x2205ac);});return respondWithRpcPromise(_0xf61af6('0x6'),_0xf61af6('0x79'),_0x2205ac);})['then'](function(_0x14cb2e){const _0x51ebcf=_0x46c4aa;if(_0x14cb2e){const _0x505012=0xc8,_0x51bee1=_0x51ebcf('0x3b');return logger[_0x51ebcf('0x14')](_0x51ebcf('0x3'),_0x51bee1,_0x505012,_0x51ebcf('0x40')),logger[_0x51ebcf('0x1e')]('WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s',_0x51bee1,_0x505012,_0x51ebcf('0x40'),JSON[_0x51ebcf('0x87')](_0x14cb2e)),_0x2205ac[_0x51ebcf('0x32')][_0x51ebcf('0xf')]===_0x51ebcf('0x9')?_0x2e1f16['status'](_0x505012)['set']('Content-Type',_0x51ebcf('0x42'))[_0x51ebcf('0x2d')](_0x51ebcf('0x93')):_0x2e1f16[_0x51ebcf('0x34')](_0x505012)[_0x51ebcf('0xc')](_0x14cb2e);}})[_0x46c4aa('0x3e')](handleError(_0x2e1f16,null));},exports['send']=function(_0x6cd039,_0x52012b){const _0x45c4a5=_0x2e48e6;let _0x4945da,_0x59d05b;if(_[_0x45c4a5('0x45')](_0x6cd039[_0x45c4a5('0x71')][_0x45c4a5('0x71')])||_0x6cd039[_0x45c4a5('0x71')][_0x45c4a5('0x71')]==='')throw new db[(_0x45c4a5('0x1c'))][(_0x45c4a5('0x31'))](_0x45c4a5('0x13'));if(_[_0x45c4a5('0x45')](_0x6cd039['body']['to']))throw new db[(_0x45c4a5('0x1c'))]['ValidationError'](_0x45c4a5('0x4b'));const _0x30d325=_0x6cd039['body']['to'];return db['WhatsappAccount']['findOne']({'where':{'id':_0x6cd039['params']['id']},'include':[{'model':db[_0x45c4a5('0x4f')],'as':'List','include':[{'model':db[_0x45c4a5('0x6c')],'as':_0x45c4a5('0x8d'),'where':{'mobile':_0x30d325},'limit':0x1,'order':[[_0x45c4a5('0x81'),_0x45c4a5('0x2')]]}]}]})[_0x45c4a5('0x74')](handleEntityNotFound(_0x52012b,null))[_0x45c4a5('0x74')](function(_0x215fcd){const _0x43877b=_0x45c4a5;if(_0x215fcd&&_0x215fcd[_0x43877b('0x37')]){_0x4945da=_0x215fcd[_0x43877b('0x54')]({'plain':!![]});if(_0x4945da['List']&&_0x4945da['List'][_0x43877b('0x8d')]['length'])return _0x4945da[_0x43877b('0x37')][_0x43877b('0x8d')][0x0];return db[_0x43877b('0x6c')][_0x43877b('0x12')](_['defaults'](_0x6cd039[_0x43877b('0x71')],{'firstName':_0x30d325,'mobile':_0x30d325,'phone':_0x30d325,'ListId':_0x4945da[_0x43877b('0x80')]}));}})['then'](handleEntityNotFound(_0x52012b,null))[_0x45c4a5('0x74')](function(_0x4d09c2){const _0x43cb6b=_0x45c4a5;if(_0x4d09c2)return _0x59d05b=_0x4d09c2,db[_0x43cb6b('0x39')][_0x43cb6b('0xa')]({'where':{'ContactId':_0x59d05b['id'],'closed':![],'WhatsappAccountId':_0x4945da['id']}})[_0x43cb6b('0x74')](function(_0x24ece6){const _0x48ce96=_0x43cb6b;if(_0x24ece6)return[_0x24ece6,![]];return db[_0x48ce96('0x39')][_0x48ce96('0x12')]({'UserId':_0x6cd039[_0x48ce96('0x8f')]['id'],'ContactId':_0x59d05b['id'],'WhatsappAccountId':_0x4945da['id'],'phone':_0x30d325,'firstMsgDirection':_0x48ce96('0x7b'),'Messages':[_[_0x48ce96('0x2f')](_0x6cd039['body'],{'read':![],'body':_0x6cd039[_0x48ce96('0x71')][_0x48ce96('0x71')],'phone':_0x30d325,'WhatsappAccountId':_0x4945da['id'],'UserId':_0x6cd039[_0x48ce96('0x8f')]['id'],'ContactId':_0x59d05b['id']})]},{'include':[{'model':db[_0x48ce96('0x23')],'as':_0x48ce96('0x8e')}]})['then'](function(_0x18ab3e){return[_0x18ab3e,!![]];});});})[_0x45c4a5('0x74')](function([_0xea275c,_0xe7c499]){const _0x2739d1=_0x45c4a5;if(_0xe7c499)return _0xea275c;return db[_0x2739d1('0x23')]['create'](_[_0x2739d1('0x2f')](_0x6cd039[_0x2739d1('0x71')],{'read':![],'body':_0x6cd039[_0x2739d1('0x71')][_0x2739d1('0x71')],'phone':_0x30d325,'WhatsappAccountId':_0x4945da['id'],'WhatsappInteractionId':_0xea275c['id'],'UserId':_0x6cd039['user']['id'],'ContactId':_0x59d05b['id']}))[_0x2739d1('0x74')](function(_0x284d61){const _0x119084=_0x2739d1;return _0xea275c[_0x119084('0x97')][_0x119084('0x8e')]=[],_0xea275c[_0x119084('0x97')][_0x119084('0x8e')]['push'](_0x284d61[_0x119084('0x97')]),_0xea275c;});})[_0x45c4a5('0x74')](respondWithResult(_0x52012b,null))[_0x45c4a5('0x3e')](handleError(_0x52012b,null));}; \ No newline at end of file +const a783_0x37d6=['push','name','ids','getApplications','userProfileId','catch','WhatsappAccount,\x20%s,\x20%s,\x20%s','created','user','twilio','ValidationError','WhatsappMessage','close','List','intersection','entity\x20found','code','fields','UserProfileResource','query','*,*,*,*','params','MessageSid','Messages','autoclose','orderBy','mobile','VIRTUAL','Start','model','then','./whatsappAccount.socket','type','list','From','lodash','notify','WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s','difference','attributes','getDispositions','nolimit','limit','mapKey','applications','send','filter','to\x20is\x20mandatory','addAgents','account','Unable\x20to\x20retrieve\x20the\x20current\x20user','http','emit','defaults','includeAll','userWhatsappAccount:remove','rawAttributes','User','update','merge','WhatsappAccount,\x20%s,\x20%s','asc','Pause','get','findOne','pick','removeDispositions','replace','set','WhatsappApplication','findAll','Disposition','filters','whatsapp:','contact','WhatsappAccount','includes','body\x20is\x20mandatory\x20and\x20not\x20empty','autoAssociation','CompanyId','no\x20available\x20attributes','CmContact','../../components/parsers/qs','order','map','isArray','unshift','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','json','end','create','addDisposition','CmList','findAndCountAll','length','out','Contacts','WhatsappInteraction','waitForTheAssignedAgent','ContactId','dataValues','updatedAt','whatsapp','priority','WhatsappAccountId','destroy','include','omit','debug','message','status','../../config/logger','Content-Range','from','info','offset','request\x20sent','CannedAnswer','keys','WhatsappAccounts','ListId','sequelize','sendStatus','startRouting','count','undefined','rows','getAgents','like','removeAnswers','DESC','agent','unmanaged','register','error','options','body','Sequelize','result','removeAgents','mandatoryDispositionPause','../../mysqldb','key','UserId','where','Applications','stringify','interaction','isNil','describe','AttachmentId','addAnswer','createdAt','jayson/promise','bulkCreate','show','sort'];(function(_0x16149e,_0x37d69c){const _0x30add8=function(_0x68a116){while(--_0x68a116){_0x16149e['push'](_0x16149e['shift']());}};_0x30add8(++_0x37d69c);}(a783_0x37d6,0x1a4));const a783_0x30ad=function(_0x16149e,_0x37d69c){_0x16149e=_0x16149e-0x0;let _0x30add8=a783_0x37d6[_0x16149e];return _0x30add8;};const _0x3b39b4=a783_0x30ad;'use strict';const _=require(_0x3b39b4('0x56')),qs=require(_0x3b39b4('0x85')),logger=require(_0x3b39b4('0x5'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x3b39b4('0x23'))['db'],{Op}=require(_0x3b39b4('0xf'));require(_0x3b39b4('0x52'))[_0x3b39b4('0x1b')](socket);const jayson=require(_0x3b39b4('0x2f')),client=jayson['client'][_0x3b39b4('0x66')]({'port':0x232c});function respondWithRpcPromise(_0x68a116,_0x3c20bf,_0x28cba7,_0x2f111d){return new Promise(function(_0x33aded,_0x49a6a5){const _0x2adda7=_0x2f111d||client;return _0x2adda7['request'](_0x68a116,_0x28cba7)['then'](function(_0x2000a0){const _0x5af9c0=a783_0x30ad;logger[_0x5af9c0('0x8')]('WhatsappAccount,\x20%s,\x20%s',_0x3c20bf,_0x5af9c0('0xa')),logger[_0x5af9c0('0x2')](_0x5af9c0('0x39'),_0x3c20bf,_0x5af9c0('0xa'),JSON[_0x5af9c0('0x28')](_0x2000a0));if(_0x2000a0[_0x5af9c0('0x1c')]){if(_0x2000a0[_0x5af9c0('0x1c')][_0x5af9c0('0x43')]===0x1f4)return logger[_0x5af9c0('0x1c')](_0x5af9c0('0x6f'),_0x3c20bf,_0x2000a0['error']['message']),_0x49a6a5(_0x2000a0[_0x5af9c0('0x1c')][_0x5af9c0('0x3')]);return logger[_0x5af9c0('0x1c')](_0x5af9c0('0x6f'),_0x3c20bf,_0x2000a0[_0x5af9c0('0x1c')][_0x5af9c0('0x3')]),_0x33aded(_0x2000a0[_0x5af9c0('0x1c')][_0x5af9c0('0x3')]);}else logger[_0x5af9c0('0x8')](_0x5af9c0('0x6f'),_0x3c20bf,_0x5af9c0('0xa')),_0x33aded(_0x2000a0[_0x5af9c0('0x20')][_0x5af9c0('0x3')]);})['catch'](function(_0x362dd5){const _0x45a62d=a783_0x30ad;logger[_0x45a62d('0x1c')]('WhatsappAccount,\x20%s,\x20%s',_0x3c20bf,_0x362dd5),_0x49a6a5(_0x362dd5);});});}function respondWithStatusCode(_0x22742b,_0x1f413b){return _0x1f413b=_0x1f413b||0xcc,function(_0x3b59d9){const _0x5ca641=a783_0x30ad;if(_0x3b59d9)return _0x22742b[_0x5ca641('0x10')](_0x1f413b);return _0x22742b['status'](_0x1f413b)[_0x5ca641('0x8c')]();};}function respondWithResult(_0x4364e1,_0xdb6039){return _0xdb6039=_0xdb6039||0xc8,function(_0x274f71){const _0x31c54c=a783_0x30ad;if(_0x274f71)return _0x4364e1['status'](_0xdb6039)[_0x31c54c('0x8b')](_0x274f71);};}function respondWithFilteredResult(_0x86688e,_0x1f07b1){return function(_0x1d18a3){const _0x154c95=a783_0x30ad;if(_0x1d18a3){const _0x13efea=_0x1d18a3[_0x154c95('0x12')],_0x554ebd=_0x1f07b1['offset'];let _0x280930=_0x1f07b1['offset']+_0x1f07b1[_0x154c95('0x5d')],_0x37a51c;return _0x280930>=_0x13efea?(_0x280930=_0x13efea,_0x37a51c=0xc8):_0x37a51c=0xce,_0x86688e[_0x154c95('0x4')](_0x37a51c),_0x86688e[_0x154c95('0x77')](_0x154c95('0x6'),_0x554ebd+'-'+_0x280930+'/'+_0x13efea)['json'](_0x1d18a3);}return null;};}function saveUpdates(_0x355f95){return function(_0x5c9a8b){const _0x4d5a4c=a783_0x30ad;if(_0x5c9a8b)return _0x5c9a8b['update'](_0x355f95)[_0x4d5a4c('0x51')](function(_0x193663){return _0x193663;});return null;};}function removeEntity(_0xee6d2d){return function(_0xa17257){const _0x11e6dc=a783_0x30ad;if(_0xa17257)return _0xa17257[_0x11e6dc('0x9c')]()['then'](function(){const _0x5162cd=_0x11e6dc,_0x5b0d8b=_0xa17257[_0x5162cd('0x72')]({'plain':!![]}),_0x37f963='WhatsappAccounts';return db[_0x5162cd('0x45')][_0x5162cd('0x9c')]({'where':{'type':_0x37f963,'resourceId':_0x5b0d8b['id']}})[_0x5162cd('0x51')](function(){return _0xa17257;});})[_0x11e6dc('0x51')](function(){const _0x26350e=_0x11e6dc;_0xee6d2d[_0x26350e('0x4')](0xcc)['end']();});};}function handleEntityNotFound(_0x3f24d9){return function(_0x1668fb){const _0x4f53e2=a783_0x30ad;return!_0x1668fb&&_0x3f24d9[_0x4f53e2('0x10')](0x194),_0x1668fb;};}function handleError(_0xd39c2d,_0x2cde68){return _0x2cde68=_0x2cde68||0x1f4,function(_0xae6d6){const _0x3fc83f=a783_0x30ad;logger[_0x3fc83f('0x1c')](_0xae6d6['stack']),_0xae6d6['name']&&delete _0xae6d6['name'],_0xd39c2d[_0x3fc83f('0x4')](_0x2cde68)[_0x3fc83f('0x60')](_0xae6d6);};}exports['index']=function(_0x4a1b1b,_0x494f19){const _0x178a1e=_0x3b39b4;let _0x202ab7={'include':[{'model':db[_0x178a1e('0x71')],'as':_0x178a1e('0x22')}]};const _0x9dd52c={},_0x1d7f6c={'count':0x0,'rows':[]},_0x1d10b8=_['map'](db['WhatsappAccount'][_0x178a1e('0x6b')],function(_0x231c7a){const _0x1e9c3f=_0x178a1e;return{'name':_0x231c7a['fieldName'],'type':_0x231c7a[_0x1e9c3f('0x53')][_0x1e9c3f('0x24')]};});_0x9dd52c[_0x178a1e('0x50')]=_[_0x178a1e('0x87')](_0x1d10b8,'name'),_0x9dd52c[_0x178a1e('0x46')]=_[_0x178a1e('0xc')](_0x4a1b1b[_0x178a1e('0x46')]),_0x9dd52c[_0x178a1e('0x7b')]=_['intersection'](_0x9dd52c['model'],_0x9dd52c['query']),_0x202ab7[_0x178a1e('0x5a')]=_['intersection'](_0x9dd52c['model'],qs[_0x178a1e('0x44')](_0x4a1b1b[_0x178a1e('0x46')][_0x178a1e('0x44')])),_0x202ab7['attributes']=_0x202ab7[_0x178a1e('0x5a')][_0x178a1e('0x91')]?_0x202ab7['attributes']:_0x9dd52c['model'];typeof _0x4a1b1b['query']['nolimit']===_0x178a1e('0x13')&&(_0x202ab7[_0x178a1e('0x5d')]=qs[_0x178a1e('0x5d')](_0x4a1b1b['query'][_0x178a1e('0x5d')]),_0x202ab7[_0x178a1e('0x9')]=qs['offset'](_0x4a1b1b[_0x178a1e('0x46')][_0x178a1e('0x9')]));_0x202ab7['order']=qs['sort'](_0x4a1b1b[_0x178a1e('0x46')]['sort']),_0x202ab7[_0x178a1e('0x26')]=qs[_0x178a1e('0x7b')](_[_0x178a1e('0x74')](_0x4a1b1b['query'],_0x9dd52c[_0x178a1e('0x7b')]),_0x1d10b8);_0x4a1b1b[_0x178a1e('0x46')][_0x178a1e('0x61')]&&(_0x202ab7[_0x178a1e('0x26')]=_[_0x178a1e('0x6e')](_0x202ab7['where'],{[Op['or']]:_[_0x178a1e('0x87')](_0x1d10b8,function(_0x1230ff){const _0x5e7291=_0x178a1e;if(_0x1230ff['type']!==_0x5e7291('0x4e')){const _0x3628ac={};return _0x3628ac[_0x1230ff[_0x5e7291('0x34')]]={[Op[_0x5e7291('0x16')]]:'%'+_0x4a1b1b[_0x5e7291('0x46')][_0x5e7291('0x61')]+'%'},_0x3628ac;}})}));_0x202ab7=_[_0x178a1e('0x6e')]({},_0x202ab7,_0x4a1b1b[_0x178a1e('0x1d')]);const _0x4f7847={'where':_0x202ab7[_0x178a1e('0x26')]};return db['WhatsappAccount']['count'](_0x4f7847)[_0x178a1e('0x51')](function(_0x322475){const _0x1412a8=_0x178a1e;return _0x1d7f6c['count']=_0x322475,_0x4a1b1b[_0x1412a8('0x46')][_0x1412a8('0x69')]&&(_0x202ab7[_0x1412a8('0x0')]=[{'all':!![]}]),db[_0x1412a8('0x7e')][_0x1412a8('0x79')](_0x202ab7);})[_0x178a1e('0x51')](function(_0x1cb130){const _0x43bdd1=_0x178a1e;return _0x1d7f6c[_0x43bdd1('0x14')]=_0x1cb130,_0x1d7f6c;})[_0x178a1e('0x51')](respondWithFilteredResult(_0x494f19,_0x202ab7))['catch'](handleError(_0x494f19,null));},exports[_0x3b39b4('0x31')]=function(_0x17b91a,_0x55c472){const _0x1a6334=_0x3b39b4;let _0x57aea7={'raw':![],'where':{'id':_0x17b91a[_0x1a6334('0x48')]['id']},'include':[{'model':db[_0x1a6334('0x71')],'as':_0x1a6334('0x22')}]};const _0x259feb={};return _0x259feb[_0x1a6334('0x50')]=_[_0x1a6334('0xc')](db[_0x1a6334('0x7e')]['rawAttributes']),_0x259feb['query']=_['keys'](_0x17b91a['query']),_0x259feb[_0x1a6334('0x7b')]=_[_0x1a6334('0x41')](_0x259feb[_0x1a6334('0x50')],_0x259feb[_0x1a6334('0x46')]),_0x57aea7[_0x1a6334('0x5a')]=_['intersection'](_0x259feb[_0x1a6334('0x50')],qs[_0x1a6334('0x44')](_0x17b91a[_0x1a6334('0x46')]['fields'])),_0x57aea7[_0x1a6334('0x5a')]=_0x57aea7['attributes'][_0x1a6334('0x91')]?_0x57aea7['attributes']:_0x259feb[_0x1a6334('0x50')],_0x17b91a[_0x1a6334('0x46')]['includeAll']&&(_0x57aea7[_0x1a6334('0x0')]=[{'all':!![]}]),_0x57aea7=_[_0x1a6334('0x6e')]({},_0x57aea7,_0x17b91a['options']),db[_0x1a6334('0x7e')][_0x1a6334('0x73')](_0x57aea7)[_0x1a6334('0x51')](handleEntityNotFound(_0x55c472,null))[_0x1a6334('0x51')](respondWithResult(_0x55c472,null))[_0x1a6334('0x38')](handleError(_0x55c472,null));},exports[_0x3b39b4('0x8d')]=function(_0x5b7d2c,_0x245edd){const _0x186471=_0x3b39b4;return db['WhatsappAccount'][_0x186471('0x8d')](_0x5b7d2c[_0x186471('0x1e')],{})[_0x186471('0x51')](function(_0x44e22f){const _0xa53fef=_0x186471,_0x42f060=_0x5b7d2c[_0xa53fef('0x3b')][_0xa53fef('0x72')]({'plain':!![]});if(!_0x42f060)throw new Error(_0xa53fef('0x65'));if(_0x42f060['role']===_0xa53fef('0x3b')){const _0x593021=_0x44e22f[_0xa53fef('0x72')]({'plain':!![]}),_0x306a95=_0xa53fef('0xd');return db['UserProfileSection'][_0xa53fef('0x73')]({'where':{'name':_0x306a95,'userProfileId':_0x42f060[_0xa53fef('0x37')]},'raw':!![]})['then'](function(_0x4e03b8){const _0x25a846=_0xa53fef;return _0x4e03b8&&_0x4e03b8[_0x25a846('0x81')]===0x0?db[_0x25a846('0x45')][_0x25a846('0x8d')]({'name':_0x593021[_0x25a846('0x34')],'resourceId':_0x593021['id'],'type':_0x4e03b8[_0x25a846('0x34')],'sectionId':_0x4e03b8['id']},{})[_0x25a846('0x51')](function(){return _0x44e22f;}):_0x44e22f;})[_0xa53fef('0x38')](function(_0x5ed222){const _0x351924=_0xa53fef;logger[_0x351924('0x1c')](_0x351924('0x8a'),_0x5ed222);throw _0x5ed222;});}return _0x44e22f;})[_0x186471('0x51')](respondWithResult(_0x245edd,0xc9))[_0x186471('0x38')](handleError(_0x245edd,null));},exports[_0x3b39b4('0x6d')]=function(_0x253cb5,_0x587643){const _0x24860f=_0x3b39b4;return _0x253cb5[_0x24860f('0x1e')]['id']&&delete _0x253cb5[_0x24860f('0x1e')]['id'],db['WhatsappAccount'][_0x24860f('0x73')]({'where':{'id':_0x253cb5[_0x24860f('0x48')]['id']},'include':[{'model':db[_0x24860f('0x71')],'as':'mandatoryDispositionPause'}]})[_0x24860f('0x51')](handleEntityNotFound(_0x587643,null))[_0x24860f('0x51')](saveUpdates(_0x253cb5[_0x24860f('0x1e')],null))[_0x24860f('0x51')](respondWithResult(_0x587643,null))[_0x24860f('0x38')](handleError(_0x587643,null));},exports['destroy']=function(_0x114616,_0x39975a){const _0x4db207=_0x3b39b4;return db[_0x4db207('0x7e')][_0x4db207('0x73')]({'where':{'id':_0x114616[_0x4db207('0x48')]['id']}})['then'](handleEntityNotFound(_0x39975a,null))[_0x4db207('0x51')](removeEntity(_0x39975a,null))['catch'](handleError(_0x39975a,null));},exports[_0x3b39b4('0x2b')]=function(_0x8a3d01,_0x4d4fe1){const _0x3772cc=_0x3b39b4;return db[_0x3772cc('0x7e')][_0x3772cc('0x2b')]()[_0x3772cc('0x51')](respondWithResult(_0x4d4fe1,null))[_0x3772cc('0x38')](handleError(_0x4d4fe1,null));},exports[_0x3b39b4('0x8e')]=function(_0x3184e9,_0x5e77aa){const _0x7d1d33=_0x3b39b4;return _0x3184e9['body']['id']&&delete _0x3184e9[_0x7d1d33('0x1e')]['id'],db['WhatsappAccount'][_0x7d1d33('0x73')]({'where':{'id':_0x3184e9[_0x7d1d33('0x48')]['id']}})[_0x7d1d33('0x51')](handleEntityNotFound(_0x5e77aa,null))[_0x7d1d33('0x51')](function(_0x3e963d){const _0x391dd0=_0x7d1d33;if(_0x3e963d)return _0x3184e9[_0x391dd0('0x1e')][_0x391dd0('0x9b')]=_0x3e963d['id'],db['Disposition'][_0x391dd0('0x8d')](_0x3184e9[_0x391dd0('0x1e')]);})['then'](respondWithResult(_0x5e77aa,null))[_0x7d1d33('0x38')](handleError(_0x5e77aa,null));},exports[_0x3b39b4('0x5b')]=function(_0x3970cd,_0x503dc8){const _0xd641d0=_0x3b39b4;let _0x438430={'raw':![],'where':{}};const _0x11c970={},_0xb2cc55={'count':0x0,'rows':[]};return db[_0xd641d0('0x7e')][_0xd641d0('0x73')]({'where':{'id':_0x3970cd[_0xd641d0('0x48')]['id']}})[_0xd641d0('0x51')](handleEntityNotFound(_0x503dc8,null))[_0xd641d0('0x51')](function(_0x2c3a24){const _0x440553=_0xd641d0;if(_0x2c3a24)return _0x11c970[_0x440553('0x50')]=_[_0x440553('0xc')](db[_0x440553('0x7a')][_0x440553('0x6b')]),_0x11c970[_0x440553('0x46')]=_[_0x440553('0xc')](_0x3970cd[_0x440553('0x46')]),_0x11c970[_0x440553('0x7b')]=_['intersection'](_0x11c970['model'],_0x11c970[_0x440553('0x46')]),_0x438430[_0x440553('0x5a')]=_[_0x440553('0x41')](_0x11c970['model'],qs[_0x440553('0x44')](_0x3970cd[_0x440553('0x46')][_0x440553('0x44')])),_0x438430['attributes']=_0x438430[_0x440553('0x5a')][_0x440553('0x91')]?_0x438430['attributes']:_0x11c970['model'],typeof _0x3970cd[_0x440553('0x46')][_0x440553('0x5c')]===_0x440553('0x13')&&(_0x438430[_0x440553('0x5d')]=qs[_0x440553('0x5d')](_0x3970cd[_0x440553('0x46')][_0x440553('0x5d')]),_0x438430[_0x440553('0x9')]=qs[_0x440553('0x9')](_0x3970cd[_0x440553('0x46')][_0x440553('0x9')])),_0x438430[_0x440553('0x86')]=qs[_0x440553('0x32')](_0x3970cd['query'][_0x440553('0x32')]),_0x438430[_0x440553('0x26')]=qs['filters'](_['pick'](_0x3970cd['query'],_0x11c970[_0x440553('0x7b')])),_0x438430['where'][_0x440553('0x9b')]=_0x2c3a24['id'],_0x3970cd[_0x440553('0x46')]['filter']&&(_0x438430[_0x440553('0x26')]=_[_0x440553('0x6e')](_0x438430['where'],{[Op['or']]:_[_0x440553('0x87')](_0x438430['attributes'],function(_0x4f30d3){const _0x3d1bff=_0x440553,_0xe05b30={};return _0xe05b30[_0x4f30d3]={[Op['like']]:'%'+_0x3970cd[_0x3d1bff('0x46')][_0x3d1bff('0x61')]+'%'},_0xe05b30;})})),_0x438430=_[_0x440553('0x6e')]({},_0x438430,_0x3970cd[_0x440553('0x1d')]),db[_0x440553('0x7a')][_0x440553('0x12')]({'where':_0x438430[_0x440553('0x26')]})[_0x440553('0x51')](function(_0x17fea6){const _0x5e4a02=_0x440553;return _0xb2cc55[_0x5e4a02('0x12')]=_0x17fea6,_0x3970cd[_0x5e4a02('0x46')]['includeAll']&&(_0x438430[_0x5e4a02('0x0')]=[{'all':!![]}]),db[_0x5e4a02('0x7a')][_0x5e4a02('0x79')](_0x438430);})[_0x440553('0x51')](function(_0x3fd330){return _0xb2cc55['rows']=_0x3fd330,_0xb2cc55;});})['then'](respondWithFilteredResult(_0x503dc8,_0x438430))[_0xd641d0('0x38')](handleError(_0x503dc8,null));},exports[_0x3b39b4('0x75')]=function(_0x771a52,_0x2a990e){const _0x4bc9ee=_0x3b39b4;return db['WhatsappAccount'][_0x4bc9ee('0x73')]({'where':{'id':_0x771a52[_0x4bc9ee('0x48')]['id']}})[_0x4bc9ee('0x51')](handleEntityNotFound(_0x2a990e,null))[_0x4bc9ee('0x51')](function(_0x5e7e9e){const _0x274a06=_0x4bc9ee;if(_0x5e7e9e)return _0x5e7e9e[_0x274a06('0x75')](_0x771a52[_0x274a06('0x46')][_0x274a06('0x35')]);})[_0x4bc9ee('0x51')](respondWithStatusCode(_0x2a990e,null))['catch'](handleError(_0x2a990e,null));},exports[_0x3b39b4('0x2d')]=function(_0x1ab37a,_0x3a6600){const _0x35c5e9=_0x3b39b4;return _0x1ab37a['body']['id']&&delete _0x1ab37a[_0x35c5e9('0x1e')]['id'],db[_0x35c5e9('0x7e')][_0x35c5e9('0x73')]({'where':{'id':_0x1ab37a[_0x35c5e9('0x48')]['id']}})[_0x35c5e9('0x51')](handleEntityNotFound(_0x3a6600,null))[_0x35c5e9('0x51')](function(_0xd026ff){const _0x106900=_0x35c5e9;if(_0xd026ff)return _0x1ab37a['body'][_0x106900('0x9b')]=_0xd026ff['id'],db[_0x106900('0xb')][_0x106900('0x8d')](_0x1ab37a[_0x106900('0x1e')]);})[_0x35c5e9('0x51')](respondWithResult(_0x3a6600,null))[_0x35c5e9('0x38')](handleError(_0x3a6600,null));},exports['getAnswers']=function(_0x5810a2,_0x32c2c7){const _0x423b5e=_0x3b39b4;let _0xa4bda3={'raw':![],'where':{}};const _0x6d570={},_0x7777b={'count':0x0,'rows':[]};return db[_0x423b5e('0x7e')][_0x423b5e('0x73')]({'where':{'id':_0x5810a2[_0x423b5e('0x48')]['id']}})[_0x423b5e('0x51')](handleEntityNotFound(_0x32c2c7,null))['then'](function(_0x18feed){const _0x47681b=_0x423b5e;if(_0x18feed)return _0x6d570[_0x47681b('0x50')]=_[_0x47681b('0xc')](db[_0x47681b('0xb')][_0x47681b('0x6b')]),_0x6d570['query']=_[_0x47681b('0xc')](_0x5810a2[_0x47681b('0x46')]),_0x6d570[_0x47681b('0x7b')]=_['intersection'](_0x6d570['model'],_0x6d570[_0x47681b('0x46')]),_0xa4bda3[_0x47681b('0x5a')]=_[_0x47681b('0x41')](_0x6d570[_0x47681b('0x50')],qs[_0x47681b('0x44')](_0x5810a2[_0x47681b('0x46')][_0x47681b('0x44')])),_0xa4bda3['attributes']=_0xa4bda3[_0x47681b('0x5a')][_0x47681b('0x91')]?_0xa4bda3['attributes']:_0x6d570[_0x47681b('0x50')],typeof _0x5810a2[_0x47681b('0x46')]['nolimit']==='undefined'&&(_0xa4bda3[_0x47681b('0x5d')]=qs[_0x47681b('0x5d')](_0x5810a2[_0x47681b('0x46')][_0x47681b('0x5d')]),_0xa4bda3[_0x47681b('0x9')]=qs['offset'](_0x5810a2[_0x47681b('0x46')][_0x47681b('0x9')])),_0xa4bda3[_0x47681b('0x86')]=qs['sort'](_0x5810a2[_0x47681b('0x46')]['sort']),_0xa4bda3[_0x47681b('0x26')]=qs[_0x47681b('0x7b')](_['pick'](_0x5810a2['query'],_0x6d570[_0x47681b('0x7b')])),_0xa4bda3[_0x47681b('0x26')][_0x47681b('0x9b')]=_0x18feed['id'],_0x5810a2['query'][_0x47681b('0x61')]&&(_0xa4bda3[_0x47681b('0x26')]=_[_0x47681b('0x6e')](_0xa4bda3[_0x47681b('0x26')],{[Op['or']]:_[_0x47681b('0x87')](_0xa4bda3[_0x47681b('0x5a')],function(_0x596a3a){const _0x18f9f6=_0x47681b,_0x197c77={};return _0x197c77[_0x596a3a]={[Op[_0x18f9f6('0x16')]]:'%'+_0x5810a2[_0x18f9f6('0x46')]['filter']+'%'},_0x197c77;})})),_0xa4bda3=_[_0x47681b('0x6e')]({},_0xa4bda3,_0x5810a2[_0x47681b('0x1d')]),db['CannedAnswer'][_0x47681b('0x12')]({'where':_0xa4bda3[_0x47681b('0x26')]})[_0x47681b('0x51')](function(_0x3de8f5){const _0x1c68c8=_0x47681b;return _0x7777b[_0x1c68c8('0x12')]=_0x3de8f5,_0x5810a2[_0x1c68c8('0x46')]['includeAll']&&(_0xa4bda3['include']=[{'all':!![]}]),db[_0x1c68c8('0xb')]['findAll'](_0xa4bda3);})[_0x47681b('0x51')](function(_0x18d5c4){return _0x7777b['rows']=_0x18d5c4,_0x7777b;});})[_0x423b5e('0x51')](respondWithFilteredResult(_0x32c2c7,_0xa4bda3))['catch'](handleError(_0x32c2c7,null));},exports['removeAnswers']=function(_0x1378ac,_0x4e2391){const _0x3e8d7f=_0x3b39b4;return db['WhatsappAccount'][_0x3e8d7f('0x73')]({'where':{'id':_0x1378ac[_0x3e8d7f('0x48')]['id']}})[_0x3e8d7f('0x51')](handleEntityNotFound(_0x4e2391,null))['then'](function(_0x6e9917){const _0x583903=_0x3e8d7f;if(_0x6e9917)return _0x6e9917[_0x583903('0x17')](_0x1378ac[_0x583903('0x46')]['ids']);})[_0x3e8d7f('0x51')](respondWithStatusCode(_0x4e2391,null))[_0x3e8d7f('0x38')](handleError(_0x4e2391,null));},exports[_0x3b39b4('0x63')]=function(_0x50f255,_0x1eeac9){const _0x313f04=_0x3b39b4;return db['WhatsappAccount'][_0x313f04('0x73')]({'where':{'id':_0x50f255[_0x313f04('0x48')]['id']}})[_0x313f04('0x51')](function(_0x4737e4){const _0x47381d=_0x313f04;if(_0x4737e4)return _0x4737e4['addAgents'](_0x50f255[_0x47381d('0x1e')][_0x47381d('0x35')],{'through':_[_0x47381d('0x1')](_0x50f255[_0x47381d('0x1e')],[_0x47381d('0x35'),'id'])})[_0x47381d('0x51')](function(_0x4e0442){const _0x13a52d=_0x47381d;for(let _0x5bef31=0x0;_0x5bef31<_0x50f255['body']['ids'][_0x13a52d('0x91')];_0x5bef31+=0x1){socket[_0x13a52d('0x67')]('userWhatsappAccount:save',{'UserId':_0x50f255['body'][_0x13a52d('0x35')][_0x5bef31],'WhatsappAccountId':_0x50f255[_0x13a52d('0x48')]['id']});}return _0x4e0442;});})[_0x313f04('0x51')](respondWithResult(_0x1eeac9,null))[_0x313f04('0x38')](handleError(_0x1eeac9,null));},exports[_0x3b39b4('0x21')]=function(_0x24d53d,_0x5a087e){const _0x14c42d=_0x3b39b4;return db[_0x14c42d('0x7e')][_0x14c42d('0x73')]({'where':{'id':_0x24d53d[_0x14c42d('0x48')]['id']}})[_0x14c42d('0x51')](handleEntityNotFound(_0x5a087e,null))[_0x14c42d('0x51')](function(_0x29b4da){const _0x4f3815=_0x14c42d;if(_0x29b4da)return _0x29b4da[_0x4f3815('0x21')](_0x24d53d[_0x4f3815('0x46')][_0x4f3815('0x35')])['then'](function(){const _0x463652=_0x4f3815;if(_[_0x463652('0x88')](_0x24d53d[_0x463652('0x46')][_0x463652('0x35')]))for(let _0x10a849=0x0;_0x10a849<_0x24d53d[_0x463652('0x46')][_0x463652('0x35')][_0x463652('0x91')];_0x10a849+=0x1){socket['emit'](_0x463652('0x6a'),{'UserId':Number(_0x24d53d[_0x463652('0x46')][_0x463652('0x35')][_0x10a849]),'WhatsappAccountId':Number(_0x24d53d['params']['id'])});}else socket['emit'](_0x463652('0x6a'),{'UserId':Number(_0x24d53d[_0x463652('0x46')][_0x463652('0x35')]),'WhatsappAccountId':Number(_0x24d53d['params']['id'])});});})[_0x14c42d('0x51')](respondWithStatusCode(_0x5a087e,null))[_0x14c42d('0x38')](handleError(_0x5a087e,null));},exports['getAgents']=function(_0x196673,_0x464197){const _0x5c3d30=_0x3b39b4;let _0x27ef11={};const _0x341a6a={};let _0xdae17a,_0x45f137;return db[_0x5c3d30('0x7e')][_0x5c3d30('0x73')]({'where':{'id':_0x196673['params']['id']}})['then'](handleEntityNotFound(_0x464197,null))[_0x5c3d30('0x51')](function(_0x4030b4){const _0x410452=_0x5c3d30;if(_0x4030b4)return _0xdae17a=_0x4030b4,_0x341a6a[_0x410452('0x50')]=_[_0x410452('0xc')](db['User'][_0x410452('0x6b')]),_0x341a6a[_0x410452('0x46')]=_[_0x410452('0xc')](_0x196673[_0x410452('0x46')]),_0x341a6a[_0x410452('0x7b')]=_['intersection'](_0x341a6a[_0x410452('0x50')],_0x341a6a['query']),_0x27ef11[_0x410452('0x5a')]=_[_0x410452('0x41')](_0x341a6a['model'],qs[_0x410452('0x44')](_0x196673[_0x410452('0x46')][_0x410452('0x44')])),_0x27ef11['attributes']=_0x27ef11[_0x410452('0x5a')]['length']?_0x27ef11[_0x410452('0x5a')]:_0x341a6a['model'],_0x27ef11[_0x410452('0x86')]=qs[_0x410452('0x32')](_0x196673[_0x410452('0x46')][_0x410452('0x32')]),_0x27ef11[_0x410452('0x26')]=qs[_0x410452('0x7b')](_[_0x410452('0x74')](_0x196673['query'],_0x341a6a[_0x410452('0x7b')])),_0x196673[_0x410452('0x46')][_0x410452('0x61')]&&(_0x27ef11[_0x410452('0x26')]=_['merge'](_0x27ef11['where'],{[Op['or']]:_[_0x410452('0x87')](_0x27ef11[_0x410452('0x5a')],function(_0x37b2d9){const _0x1f57a7=_0x410452,_0x2a1cf6={};return _0x2a1cf6[_0x37b2d9]={[Op[_0x1f57a7('0x16')]]:'%'+_0x196673[_0x1f57a7('0x46')][_0x1f57a7('0x61')]+'%'},_0x2a1cf6;})})),_0x27ef11=_[_0x410452('0x6e')]({},_0x27ef11,_0x196673[_0x410452('0x1d')]),_0xdae17a[_0x410452('0x15')](_0x27ef11);})[_0x5c3d30('0x51')](function(_0x51fe0a){const _0x15669b=_0x5c3d30;if(_0x51fe0a)return _0x45f137=_0x51fe0a['length'],typeof _0x196673[_0x15669b('0x46')][_0x15669b('0x5c')]===_0x15669b('0x13')&&(_0x27ef11[_0x15669b('0x5d')]=qs[_0x15669b('0x5d')](_0x196673[_0x15669b('0x46')]['limit']),_0x27ef11['offset']=qs[_0x15669b('0x9')](_0x196673[_0x15669b('0x46')][_0x15669b('0x9')])),_0xdae17a[_0x15669b('0x15')](_0x27ef11);})[_0x5c3d30('0x51')](function(_0x2cabdc){if(_0x2cabdc)return _0x2cabdc?{'count':_0x45f137,'rows':_0x2cabdc}:null;})[_0x5c3d30('0x51')](respondWithResult(_0x464197,null))['catch'](handleError(_0x464197,null));},exports['addApplications']=function(_0x553729,_0x311389){const _0x26b489=_0x3b39b4;return db[_0x26b489('0x7e')][_0x26b489('0x73')]({'where':{'id':_0x553729[_0x26b489('0x48')]['id']}})[_0x26b489('0x51')](handleEntityNotFound(_0x311389,null))[_0x26b489('0x51')](function(_0x17013b){const _0x15385f=_0x26b489;if(_0x17013b)return db['sequelize']['transaction'](function(_0x25d108){const _0x5f19b0=a783_0x30ad;return db[_0x5f19b0('0x78')]['destroy']({'where':{'WhatsappAccountId':_0x553729[_0x5f19b0('0x48')]['id']},'transaction':_0x25d108})[_0x5f19b0('0x51')](function(){const _0x802960=_0x5f19b0,_0x27912e=_[_0x802960('0x87')](_0x553729['body'],function(_0x3f6a9a){return _0x3f6a9a['WhatsappAccountId']=_0x553729['params']['id'],_0x3f6a9a;});return db['WhatsappApplication'][_0x802960('0x30')](_0x27912e,{'transaction':_0x25d108});});})[_0x15385f('0x51')](function(){const _0xbadb16=_0x15385f;return db[_0xbadb16('0x78')][_0xbadb16('0x90')]({'where':{'WhatsappAccountId':_0x553729[_0xbadb16('0x48')]['id']},'order':_0xbadb16('0x9a')});});})['then'](respondWithResult(_0x311389,null))[_0x26b489('0x38')](handleError(_0x311389,null));},exports[_0x3b39b4('0x36')]=function(_0x3fa0a8,_0x2de688){const _0x506f73=_0x3b39b4;let _0xab4929={};const _0x5163bd={};let _0x3d02e7,_0x5f1235;return db[_0x506f73('0x7e')][_0x506f73('0x73')]({'where':{'id':_0x3fa0a8[_0x506f73('0x48')]['id']}})[_0x506f73('0x51')](handleEntityNotFound(_0x2de688,null))[_0x506f73('0x51')](function(_0x12bd72){const _0x3ffc63=_0x506f73;if(_0x12bd72)return _0x3d02e7=_0x12bd72,_0x5163bd[_0x3ffc63('0x50')]=_['keys'](db[_0x3ffc63('0x78')][_0x3ffc63('0x6b')]),_0x5163bd[_0x3ffc63('0x46')]=_['keys'](_0x3fa0a8[_0x3ffc63('0x46')]),_0x5163bd[_0x3ffc63('0x7b')]=_[_0x3ffc63('0x41')](_0x5163bd['model'],_0x5163bd['query']),_0xab4929['attributes']=_[_0x3ffc63('0x41')](_0x5163bd[_0x3ffc63('0x50')],qs[_0x3ffc63('0x44')](_0x3fa0a8[_0x3ffc63('0x46')][_0x3ffc63('0x44')])),_0xab4929['attributes']=_0xab4929[_0x3ffc63('0x5a')][_0x3ffc63('0x91')]?_0xab4929[_0x3ffc63('0x5a')]:_0x5163bd[_0x3ffc63('0x50')],_0xab4929[_0x3ffc63('0x86')]=qs['sort'](_0x3fa0a8[_0x3ffc63('0x46')]['sort']),_0xab4929[_0x3ffc63('0x26')]=qs['filters'](_[_0x3ffc63('0x74')](_0x3fa0a8['query'],_0x5163bd['filters'])),_0x3fa0a8[_0x3ffc63('0x46')][_0x3ffc63('0x61')]&&(_0xab4929['where']=_[_0x3ffc63('0x6e')](_0xab4929['where'],{[Op['or']]:_[_0x3ffc63('0x87')](_0xab4929[_0x3ffc63('0x5a')],function(_0x196aeb){const _0x4e2b0d=_0x3ffc63,_0x3d6410={};return _0x3d6410[_0x196aeb]={[Op[_0x4e2b0d('0x16')]]:'%'+_0x3fa0a8[_0x4e2b0d('0x46')][_0x4e2b0d('0x61')]+'%'},_0x3d6410;})})),_0xab4929=_[_0x3ffc63('0x6e')]({},_0xab4929,_0x3fa0a8['options']),_0x3d02e7['getApplications'](_0xab4929);})[_0x506f73('0x51')](function(_0x3a59b6){const _0x1cdef4=_0x506f73;if(_0x3a59b6)return _0x5f1235=_0x3a59b6[_0x1cdef4('0x91')],typeof _0x3fa0a8[_0x1cdef4('0x46')]['nolimit']===_0x1cdef4('0x13')&&(_0xab4929['limit']=qs[_0x1cdef4('0x5d')](_0x3fa0a8[_0x1cdef4('0x46')]['limit']),_0xab4929['offset']=qs[_0x1cdef4('0x9')](_0x3fa0a8[_0x1cdef4('0x46')][_0x1cdef4('0x9')])),_0x3d02e7[_0x1cdef4('0x36')](_0xab4929);})[_0x506f73('0x51')](function(_0x361e6d){if(_0x361e6d)return _0x361e6d?{'count':_0x5f1235,'rows':_0x361e6d}:null;})[_0x506f73('0x51')](respondWithResult(_0x2de688,null))[_0x506f73('0x38')](handleError(_0x2de688,null));},exports[_0x3b39b4('0x57')]=function(_0xacac55,_0x2fd7a5){const _0x49b455=_0x3b39b4,_0x56177b={'channel':_0x49b455('0x99')};let _0x4d507d=[],_0x21e642=[];const _0x874388={};return db[_0x49b455('0x7e')]['findOne']({'where':{'id':_0xacac55[_0x49b455('0x48')]['id']},'include':[{'model':db[_0x49b455('0x78')],'as':_0x49b455('0x27')}]})[_0x49b455('0x51')](handleEntityNotFound(_0x2fd7a5,null))[_0x49b455('0x51')](function(_0x378411){const _0x36f8c2=_0x49b455;return _0x56177b['account']=_0x378411,_0x56177b['applications']=_[_0x36f8c2('0x4c')](_0x378411[_0x36f8c2('0x27')],['priority'],[_0x36f8c2('0x70')]),_0x56177b[_0x36f8c2('0x64')][_0x36f8c2('0x27')]&&delete _0x56177b[_0x36f8c2('0x64')][_0x36f8c2('0x27')],db['CmContact'][_0x36f8c2('0x2b')]();})[_0x49b455('0x51')](function(_0x6c041b){const _0x2d42db=_0x49b455;if(!_0x6c041b)throw new db[(_0x2d42db('0x1f'))][(_0x2d42db('0x3d'))](_0x2d42db('0x83'));_0x4d507d=_[_0x2d42db('0x59')](_['keys'](_0x6c041b),[_0x2d42db('0x2e'),_0x2d42db('0x98')]),_0x21e642=_[_0x2d42db('0x59')](_[_0x2d42db('0xc')](_0x6c041b),[_0x2d42db('0x2e'),_0x2d42db('0x98'),_0x2d42db('0x82'),'ListId']),_0x56177b[_0x2d42db('0x1e')]={'mapKey':_0x2d42db('0x4d')};_0x56177b[_0x2d42db('0x64')]['type']&&_0x56177b[_0x2d42db('0x64')][_0x2d42db('0x53')]===_0x2d42db('0x3c')&&(_0x56177b[_0x2d42db('0x1e')][_0x2d42db('0x7')]=_0xacac55['body'][_0x2d42db('0x55')][_0x2d42db('0x76')](_0x2d42db('0x7c'),''),_0x56177b[_0x2d42db('0x1e')]['body']=_0xacac55['body']['Body'],_0x56177b[_0x2d42db('0x1e')]['messageId']=_0xacac55[_0x2d42db('0x1e')][_0x2d42db('0x49')]);_0x56177b[_0x2d42db('0x1e')]['id']&&delete _0x56177b[_0x2d42db('0x1e')]['id'];if(_[_0x2d42db('0x2a')](_0x56177b[_0x2d42db('0x1e')]['from']))throw new db['Sequelize'][(_0x2d42db('0x3d'))]('from\x20is\x20mandatory');if(_['isNil'](_0x56177b[_0x2d42db('0x1e')][_0x2d42db('0x1e')])||_0x56177b[_0x2d42db('0x1e')][_0x2d42db('0x1e')]==='')throw new db[(_0x2d42db('0x1f'))][(_0x2d42db('0x3d'))](_0x2d42db('0x80'));if(_[_0x2d42db('0x2a')](_0x56177b[_0x2d42db('0x1e')][_0x2d42db('0x5e')]))throw new db['Sequelize'][(_0x2d42db('0x3d'))]('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x21e642);if(!_[_0x2d42db('0x7f')](_0x21e642,_0x56177b['body'][_0x2d42db('0x5e')]))throw new db[(_0x2d42db('0x1f'))][(_0x2d42db('0x3d'))]('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x21e642);return _0x874388[_0x56177b[_0x2d42db('0x1e')][_0x2d42db('0x5e')]]=_0x56177b[_0x2d42db('0x1e')][_0x2d42db('0x7')],db[_0x2d42db('0x8f')]['findOne']({'where':{'id':_0x56177b[_0x2d42db('0x64')][_0x2d42db('0xe')]},'include':[{'model':db[_0x2d42db('0x84')],'as':_0x2d42db('0x93'),'where':_0x874388,'limit':0x1,'order':[[_0x2d42db('0x98'),_0x2d42db('0x18')]]}]});})['then'](handleEntityNotFound(_0x2fd7a5,null))[_0x49b455('0x51')](function(_0x5b15ff){const _0x3993b7=_0x49b455;if(_0x5b15ff){_0x56177b[_0x3993b7('0x54')]=_['omit'](_0x5b15ff,[_0x3993b7('0x93')]);if(_0x5b15ff[_0x3993b7('0x93')]['length'])return _0x5b15ff[_0x3993b7('0x93')][0x0];const _0x26fcb8=_[_0x3993b7('0x68')](_0x56177b[_0x3993b7('0x1e')],{'firstName':_0x56177b['body']['from'],'ListId':_0x5b15ff['id']});return _0x26fcb8[_0x56177b[_0x3993b7('0x1e')][_0x3993b7('0x5e')]]=_0x56177b[_0x3993b7('0x1e')][_0x3993b7('0x7')],db[_0x3993b7('0x84')][_0x3993b7('0x8d')](_0x26fcb8,{'fields':_0x4d507d,'raw':!![]});}})[_0x49b455('0x51')](handleEntityNotFound(_0x2fd7a5,null))[_0x49b455('0x51')](function(_0x572f14){const _0x47622a=_0x49b455;if(_0x572f14){_0x56177b[_0x47622a('0x7d')]=_0x572f14;const _0x2b2b9f={'ContactId':_0x572f14['id'],'phone':_0x56177b[_0x47622a('0x1e')][_0x47622a('0x7')],'WhatsappAccountId':_0xacac55[_0x47622a('0x48')]['id']},_0x301144={'ContactId':_0x572f14['id'],'WhatsappAccountId':_0xacac55[_0x47622a('0x48')]['id'],'closed':![]};return db[_0x47622a('0x94')][_0x47622a('0x73')]({'where':_0x301144})[_0x47622a('0x51')](function(_0x5955dc){const _0xfbabe1=_0x47622a;if(_0x5955dc)return[_0x5955dc,![]];return db['WhatsappInteraction']['create'](_0x2b2b9f)[_0xfbabe1('0x51')](function(_0x49fcc5){return[_0x49fcc5,!![]];});});}})[_0x49b455('0x51')](function([_0x145af0,_0x11c9e8]){const _0x5e426d=_0x49b455;return _0x56177b['interaction']=_0x145af0[_0x5e426d('0x72')]({'plain':!![]}),_0x56177b['interaction'][_0x5e426d('0x3a')]=![],_0x11c9e8&&(_0x56177b[_0x5e426d('0x64')][_0x5e426d('0x4b')]&&_0x56177b[_0x5e426d('0x5f')][_0x5e426d('0x33')]({'id':0x0,'priority':_0x56177b[_0x5e426d('0x5f')]['length']+0x1,'app':_0x5e426d('0x3f'),'appdata':_0x5e426d('0x1a'),'interval':_0x5e426d('0x47')}),_0x56177b[_0x5e426d('0x29')][_0x5e426d('0x3a')]=!![]),db['WhatsappMessage'][_0x5e426d('0x8d')]({'phone':_0x56177b[_0x5e426d('0x1e')][_0x5e426d('0x7')],'messageId':_0x56177b['body']['messageId'],'body':_0x56177b[_0x5e426d('0x1e')]['body'],'WhatsappAccountId':_0xacac55[_0x5e426d('0x48')]['id'],'WhatsappInteractionId':_0x145af0['id'],'direction':'in','ContactId':_0x145af0[_0x5e426d('0x96')],'AttachmentId':_0x56177b[_0x5e426d('0x1e')][_0x5e426d('0x2c')]});})['then'](function(_0x3e28e7){const _0x38a393=_0x49b455;_0x56177b[_0x38a393('0x3')]=_0x3e28e7;if(_0x56177b[_0x38a393('0x29')]['UserId'])return db[_0x38a393('0x6c')][_0x38a393('0x73')]({'attributes':['id',_0x38a393('0x34')],'where':{'id':_0x56177b[_0x38a393('0x29')][_0x38a393('0x25')]}})[_0x38a393('0x51')](function(_0x41466e){const _0x109555=_0x38a393;return _0x41466e&&_0x56177b[_0x109555('0x5f')][_0x109555('0x89')]({'id':0x0,'priority':0x0,'app':_0x109555('0x19'),'appdata':_0x41466e[_0x109555('0x34')]+','+(_0x56177b[_0x109555('0x64')][_0x109555('0x95')]||0xa),'interval':_0x109555('0x47')}),respondWithRpcPromise('Start',_0x109555('0x11'),_0x56177b);});return respondWithRpcPromise(_0x38a393('0x4f'),_0x38a393('0x11'),_0x56177b);})[_0x49b455('0x51')](function(_0xa2ed9d){const _0x82b2d5=_0x49b455;if(_0xa2ed9d){const _0x393860=0xc8,_0x14abf3='receiveMessage';return logger[_0x82b2d5('0x8')](_0x82b2d5('0x39'),_0x14abf3,_0x393860,'entity\x20found'),logger[_0x82b2d5('0x2')](_0x82b2d5('0x58'),_0x14abf3,_0x393860,_0x82b2d5('0x42'),JSON[_0x82b2d5('0x28')](_0xa2ed9d)),_0x56177b['account'][_0x82b2d5('0x53')]==='twilio'?_0x2fd7a5[_0x82b2d5('0x4')](_0x393860)[_0x82b2d5('0x77')]('Content-Type','text/xml')[_0x82b2d5('0x60')]('\x0a'):_0x2fd7a5[_0x82b2d5('0x4')](_0x393860)['json'](_0xa2ed9d);}})[_0x49b455('0x38')](handleError(_0x2fd7a5,null));},exports[_0x3b39b4('0x60')]=function(_0x1d02e5,_0x5938bd){const _0x1fd80e=_0x3b39b4;let _0x2819e6,_0x20e4cd;if(_[_0x1fd80e('0x2a')](_0x1d02e5[_0x1fd80e('0x1e')]['body'])||_0x1d02e5[_0x1fd80e('0x1e')][_0x1fd80e('0x1e')]==='')throw new db[(_0x1fd80e('0x1f'))][(_0x1fd80e('0x3d'))]('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x1fd80e('0x2a')](_0x1d02e5[_0x1fd80e('0x1e')]['to']))throw new db[(_0x1fd80e('0x1f'))][(_0x1fd80e('0x3d'))](_0x1fd80e('0x62'));const _0x34ec39=_0x1d02e5['body']['to'];return db[_0x1fd80e('0x7e')][_0x1fd80e('0x73')]({'where':{'id':_0x1d02e5[_0x1fd80e('0x48')]['id']},'include':[{'model':db[_0x1fd80e('0x8f')],'as':_0x1fd80e('0x40'),'include':[{'model':db[_0x1fd80e('0x84')],'as':_0x1fd80e('0x93'),'where':{'mobile':_0x34ec39},'limit':0x1,'order':[[_0x1fd80e('0x98'),'DESC']]}]}]})[_0x1fd80e('0x51')](handleEntityNotFound(_0x5938bd,null))[_0x1fd80e('0x51')](function(_0x5cc5bd){const _0x58b5ed=_0x1fd80e;if(_0x5cc5bd&&_0x5cc5bd[_0x58b5ed('0x40')]){_0x2819e6=_0x5cc5bd[_0x58b5ed('0x72')]({'plain':!![]});if(_0x2819e6[_0x58b5ed('0x40')]&&_0x2819e6[_0x58b5ed('0x40')]['Contacts'][_0x58b5ed('0x91')])return _0x2819e6['List'][_0x58b5ed('0x93')][0x0];return db[_0x58b5ed('0x84')]['create'](_[_0x58b5ed('0x68')](_0x1d02e5[_0x58b5ed('0x1e')],{'firstName':_0x34ec39,'mobile':_0x34ec39,'phone':_0x34ec39,'ListId':_0x2819e6[_0x58b5ed('0xe')]}));}})[_0x1fd80e('0x51')](handleEntityNotFound(_0x5938bd,null))[_0x1fd80e('0x51')](function(_0x3c8e05){const _0xac3dfb=_0x1fd80e;if(_0x3c8e05)return _0x20e4cd=_0x3c8e05,db[_0xac3dfb('0x94')][_0xac3dfb('0x73')]({'where':{'ContactId':_0x20e4cd['id'],'closed':![],'WhatsappAccountId':_0x2819e6['id']}})[_0xac3dfb('0x51')](function(_0x5af464){const _0x33ab2b=_0xac3dfb;if(_0x5af464)return[_0x5af464,![]];return db['WhatsappInteraction']['create']({'UserId':_0x1d02e5['user']['id'],'ContactId':_0x20e4cd['id'],'WhatsappAccountId':_0x2819e6['id'],'phone':_0x34ec39,'firstMsgDirection':_0x33ab2b('0x92'),'Messages':[_[_0x33ab2b('0x6e')](_0x1d02e5['body'],{'read':![],'body':_0x1d02e5['body'][_0x33ab2b('0x1e')],'phone':_0x34ec39,'WhatsappAccountId':_0x2819e6['id'],'UserId':_0x1d02e5['user']['id'],'ContactId':_0x20e4cd['id']})]},{'include':[{'model':db[_0x33ab2b('0x3e')],'as':_0x33ab2b('0x4a')}]})['then'](function(_0x107009){return[_0x107009,!![]];});});})[_0x1fd80e('0x51')](function([_0x5aea6c,_0x5e3f79]){const _0xa530fd=_0x1fd80e;if(_0x5e3f79)return _0x5aea6c;return db[_0xa530fd('0x3e')][_0xa530fd('0x8d')](_['merge'](_0x1d02e5['body'],{'read':![],'body':_0x1d02e5[_0xa530fd('0x1e')][_0xa530fd('0x1e')],'phone':_0x34ec39,'WhatsappAccountId':_0x2819e6['id'],'WhatsappInteractionId':_0x5aea6c['id'],'UserId':_0x1d02e5[_0xa530fd('0x3b')]['id'],'ContactId':_0x20e4cd['id']}))[_0xa530fd('0x51')](function(_0x3894a4){const _0x113fca=_0xa530fd;return _0x5aea6c[_0x113fca('0x97')][_0x113fca('0x4a')]=[],_0x5aea6c[_0x113fca('0x97')]['Messages'][_0x113fca('0x33')](_0x3894a4[_0x113fca('0x97')]),_0x5aea6c;});})[_0x1fd80e('0x51')](respondWithResult(_0x5938bd,null))[_0x1fd80e('0x38')](handleError(_0x5938bd,null));}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.events.js b/server/api/whatsappAccount/whatsappAccount.events.js index adf73b3..cc6f27b 100644 --- a/server/api/whatsappAccount/whatsappAccount.events.js +++ b/server/api/whatsappAccount/whatsappAccount.events.js @@ -1 +1 @@ -const a784_0x1db2=['addHook','exports','setMaxListeners','emit','WhatsappAccount'];(function(_0x4eb98e,_0x1db229){const _0x38554c=function(_0x546a0e){while(--_0x546a0e){_0x4eb98e['push'](_0x4eb98e['shift']());}};_0x38554c(++_0x1db229);}(a784_0x1db2,0xe3));const a784_0x3855=function(_0x4eb98e,_0x1db229){_0x4eb98e=_0x4eb98e-0x0;let _0x38554c=a784_0x1db2[_0x4eb98e];return _0x38554c;};const _0x1d6ca9=a784_0x3855;'use strict';const EventEmitter=require('events'),WhatsappAccount=require('../../mysqldb')['db'][_0x1d6ca9('0x2')],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x1d6ca9('0x0')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x546a0e){return function(_0x434d08){const _0x59a6a2=a784_0x3855;WhatsappAccountEvents['emit'](_0x546a0e+':'+_0x434d08['id'],_0x434d08),WhatsappAccountEvents[_0x59a6a2('0x1')](_0x546a0e,_0x434d08);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappAccount[_0x1d6ca9('0x3')](e,emitEvent(event));}}module[_0x1d6ca9('0x4')]=WhatsappAccountEvents; \ No newline at end of file +const a784_0x4501=['undefined','setMaxListeners','emit','update','exports','WhatsappAccount'];(function(_0x4a4d36,_0x4501c8){const _0x21282c=function(_0x23540b){while(--_0x23540b){_0x4a4d36['push'](_0x4a4d36['shift']());}};_0x21282c(++_0x4501c8);}(a784_0x4501,0x11a));const a784_0x2128=function(_0x4a4d36,_0x4501c8){_0x4a4d36=_0x4a4d36-0x0;let _0x21282c=a784_0x4501[_0x4a4d36];return _0x21282c;};const _0x45ca95=a784_0x2128;'use strict';const EventEmitter=require('events'),WhatsappAccount=require('../../mysqldb')['db'][_0x45ca95('0x5')],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x45ca95('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x45ca95('0x3'),'afterDestroy':'remove'};function emitEvent(_0x23540b){return function(_0x152604){const _0x5f2a5e=a784_0x2128;WhatsappAccountEvents[_0x5f2a5e('0x2')](_0x23540b+':'+_0x152604['id'],_0x152604),WhatsappAccountEvents[_0x5f2a5e('0x2')](_0x23540b,_0x152604);};}for(const e in events){if(typeof events[e]!==_0x45ca95('0x0')){const event=events[e];WhatsappAccount['addHook'](e,emitEvent(event));}}module[_0x45ca95('0x4')]=WhatsappAccountEvents; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.model.js b/server/api/whatsappAccount/whatsappAccount.model.js index 07551bd..2caca01 100644 --- a/server/api/whatsappAccount/whatsappAccount.model.js +++ b/server/api/whatsappAccount/whatsappAccount.model.js @@ -1 +1 @@ -const a785_0x3504=['WhatsappAccount','exports'];(function(_0x3bf13f,_0x350419){const _0x2ea1b9=function(_0x8b2a83){while(--_0x8b2a83){_0x3bf13f['push'](_0x3bf13f['shift']());}};_0x2ea1b9(++_0x350419);}(a785_0x3504,0x81));const a785_0x2ea1=function(_0x3bf13f,_0x350419){_0x3bf13f=_0x3bf13f-0x0;let _0x2ea1b9=a785_0x3504[_0x3bf13f];return _0x2ea1b9;};const _0x43f8a9=a785_0x2ea1;'use strict';const attributes=require('./whatsappAccount.attributes');module[_0x43f8a9('0x0')]=function(_0x8b2a83){const _0x40cdc2=_0x43f8a9,_0x5bbb54=_0x8b2a83['define'](_0x40cdc2('0x1'),attributes,{'tableName':'whatsapp_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5bbb54;}; \ No newline at end of file +const a785_0x3939=['define','exports','./whatsappAccount.attributes','WhatsappAccount','whatsapp_accounts'];(function(_0x55dc76,_0x3939fc){const _0x233afd=function(_0x5ae5f5){while(--_0x5ae5f5){_0x55dc76['push'](_0x55dc76['shift']());}};_0x233afd(++_0x3939fc);}(a785_0x3939,0x17c));const a785_0x233a=function(_0x55dc76,_0x3939fc){_0x55dc76=_0x55dc76-0x0;let _0x233afd=a785_0x3939[_0x55dc76];return _0x233afd;};const _0x46513d=a785_0x233a;'use strict';const attributes=require(_0x46513d('0x2'));module[_0x46513d('0x1')]=function(_0x5ae5f5){const _0x5c0fb0=_0x46513d,_0x5a8c5d=_0x5ae5f5[_0x5c0fb0('0x0')](_0x5c0fb0('0x3'),attributes,{'tableName':_0x5c0fb0('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5a8c5d;}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.rpc.js b/server/api/whatsappAccount/whatsappAccount.rpc.js index b3a189f..a0da5f4 100644 --- a/server/api/whatsappAccount/whatsappAccount.rpc.js +++ b/server/api/whatsappAccount/whatsappAccount.rpc.js @@ -1 +1 @@ -const a786_0x4f7e=['debug','stringify','raw','rpc','options','attributes','include','findOne','map','../../mysqldb','then','message','WhatsappAccount','error','ShowWhatsappAccount','register','../../rediscache','../../config/logger','model','catch'];(function(_0x79ad86,_0x4f7ecf){const _0x565f4d=function(_0x730d33){while(--_0x730d33){_0x79ad86['push'](_0x79ad86['shift']());}};_0x565f4d(++_0x4f7ecf);}(a786_0x4f7e,0x7b));const a786_0x565f=function(_0x79ad86,_0x4f7ecf){_0x79ad86=_0x79ad86-0x0;let _0x565f4d=a786_0x4f7e[_0x79ad86];return _0x565f4d;};const _0x22e4df=a786_0x565f;'use strict';const db=require(_0x22e4df('0x6'))['db'],logger=require(_0x22e4df('0xe'))(_0x22e4df('0x0')),_=require('lodash'),{getSocket}=require(_0x22e4df('0xd')),socket=getSocket();require('./whatsappAccount.socket')[_0x22e4df('0xc')](socket),exports['ShowWhatsappAccount']=function(_0x730d33){const _0x201a57=this;return new Promise(function(_0x38efd7,_0x120047){const _0x418fdd=a786_0x565f;return db[_0x418fdd('0x9')][_0x418fdd('0x4')]({'raw':_0x730d33['options']?_0x730d33[_0x418fdd('0x1')][_0x418fdd('0x13')]===undefined?!![]:![]:!![],'where':_0x730d33[_0x418fdd('0x1')]?_0x730d33[_0x418fdd('0x1')]['where']||null:null,'attributes':_0x730d33[_0x418fdd('0x1')]?_0x730d33[_0x418fdd('0x1')][_0x418fdd('0x2')]||null:null,'include':_0x730d33[_0x418fdd('0x1')]?_0x730d33['options'][_0x418fdd('0x3')]?_[_0x418fdd('0x5')](_0x730d33[_0x418fdd('0x1')][_0x418fdd('0x3')],function(_0x409860){const _0x11d3bf=_0x418fdd;return{'model':db[_0x409860['model']],'as':_0x409860['as'],'attributes':_0x409860[_0x11d3bf('0x2')],'include':_0x409860['include']?_[_0x11d3bf('0x5')](_0x409860['include'],function(_0x3db125){const _0x121485=_0x11d3bf;return{'model':db[_0x3db125[_0x121485('0xf')]],'as':_0x3db125['as'],'attributes':_0x3db125[_0x121485('0x2')],'include':_0x3db125[_0x121485('0x3')]?_['map'](_0x3db125[_0x121485('0x3')],function(_0xca5d92){const _0x3beab5=_0x121485;return{'model':db[_0xca5d92[_0x3beab5('0xf')]],'as':_0xca5d92['as'],'attributes':_0xca5d92['attributes']};}):[]};}):[]};}):[]:[]})[_0x418fdd('0x7')](function(_0x525621){const _0x5273ac=_0x418fdd;logger['info'](_0x5273ac('0xb'),_0x730d33),logger[_0x5273ac('0x11')](_0x5273ac('0xb'),_0x730d33,JSON[_0x5273ac('0x12')](_0x525621)),_0x38efd7(_0x525621);})[_0x418fdd('0x10')](function(_0x2d5a09){const _0x2055ff=_0x418fdd;logger['error'](_0x2055ff('0xb'),_0x2d5a09[_0x2055ff('0x8')],_0x730d33),_0x120047(_0x201a57[_0x2055ff('0xa')](0x1f4,_0x2d5a09[_0x2055ff('0x8')]));});});}; \ No newline at end of file +const a786_0x52e4=['map','ShowWhatsappAccount','register','raw','error','lodash','attributes','model','../../mysqldb','stringify','message','include','options','catch','./whatsappAccount.socket','../../rediscache','WhatsappAccount','rpc','debug'];(function(_0x226575,_0x52e4fa){const _0x4ede1e=function(_0x3afed7){while(--_0x3afed7){_0x226575['push'](_0x226575['shift']());}};_0x4ede1e(++_0x52e4fa);}(a786_0x52e4,0x157));const a786_0x4ede=function(_0x226575,_0x52e4fa){_0x226575=_0x226575-0x0;let _0x4ede1e=a786_0x52e4[_0x226575];return _0x4ede1e;};const _0x311abf=a786_0x4ede;'use strict';const db=require(_0x311abf('0x7'))['db'],logger=require('../../config/logger')(_0x311abf('0x10')),_=require(_0x311abf('0x4')),{getSocket}=require(_0x311abf('0xe')),socket=getSocket();require(_0x311abf('0xd'))[_0x311abf('0x1')](socket),exports[_0x311abf('0x0')]=function(_0x3afed7){const _0x293b19=this;return new Promise(function(_0x3cb400,_0x1f18b7){const _0x280abb=a786_0x4ede;return db[_0x280abb('0xf')]['findOne']({'raw':_0x3afed7['options']?_0x3afed7['options'][_0x280abb('0x2')]===undefined?!![]:![]:!![],'where':_0x3afed7['options']?_0x3afed7[_0x280abb('0xb')]['where']||null:null,'attributes':_0x3afed7[_0x280abb('0xb')]?_0x3afed7[_0x280abb('0xb')][_0x280abb('0x5')]||null:null,'include':_0x3afed7[_0x280abb('0xb')]?_0x3afed7[_0x280abb('0xb')][_0x280abb('0xa')]?_[_0x280abb('0x12')](_0x3afed7['options'][_0x280abb('0xa')],function(_0xe7c32){const _0x4e5379=_0x280abb;return{'model':db[_0xe7c32[_0x4e5379('0x6')]],'as':_0xe7c32['as'],'attributes':_0xe7c32['attributes'],'include':_0xe7c32[_0x4e5379('0xa')]?_[_0x4e5379('0x12')](_0xe7c32['include'],function(_0x51fa8a){const _0x5795ea=_0x4e5379;return{'model':db[_0x51fa8a['model']],'as':_0x51fa8a['as'],'attributes':_0x51fa8a[_0x5795ea('0x5')],'include':_0x51fa8a[_0x5795ea('0xa')]?_[_0x5795ea('0x12')](_0x51fa8a['include'],function(_0x493970){const _0x2c8b59=_0x5795ea;return{'model':db[_0x493970[_0x2c8b59('0x6')]],'as':_0x493970['as'],'attributes':_0x493970[_0x2c8b59('0x5')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5bab4f){const _0x41ee39=_0x280abb;logger['info'](_0x41ee39('0x0'),_0x3afed7),logger[_0x41ee39('0x11')]('ShowWhatsappAccount',_0x3afed7,JSON[_0x41ee39('0x8')](_0x5bab4f)),_0x3cb400(_0x5bab4f);})[_0x280abb('0xc')](function(_0x4d4381){const _0x416f1e=_0x280abb;logger[_0x416f1e('0x3')]('ShowWhatsappAccount',_0x4d4381['message'],_0x3afed7),_0x1f18b7(_0x293b19[_0x416f1e('0x3')](0x1f4,_0x4d4381[_0x416f1e('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.socket.js b/server/api/whatsappAccount/whatsappAccount.socket.js index d777846..0fba788 100644 --- a/server/api/whatsappAccount/whatsappAccount.socket.js +++ b/server/api/whatsappAccount/whatsappAccount.socket.js @@ -1 +1 @@ -const a787_0x8cb8=['./whatsappAccount.events','remove','register','whatsappAccount:','save','emit','length'];(function(_0x51fc72,_0x8cb891){const _0x2095ee=function(_0x4323ee){while(--_0x4323ee){_0x51fc72['push'](_0x51fc72['shift']());}};_0x2095ee(++_0x8cb891);}(a787_0x8cb8,0x1cc));const a787_0x2095=function(_0x51fc72,_0x8cb891){_0x51fc72=_0x51fc72-0x0;let _0x2095ee=a787_0x8cb8[_0x51fc72];return _0x2095ee;};const _0x2c01de=a787_0x2095;'use strict';const WhatsappAccountEvents=require(_0x2c01de('0x2')),events=[_0x2c01de('0x6'),_0x2c01de('0x3'),'update'];function createListener(_0x4323ee,_0x3bddc0){return function(_0x4f34dd){const _0x5e1115=a787_0x2095;_0x3bddc0[_0x5e1115('0x0')](_0x4323ee,_0x4f34dd);};}exports[_0x2c01de('0x4')]=function(_0x5d3c07){const _0x569678=_0x2c01de;for(let _0x143c98=0x0,_0x51ca3a=events[_0x569678('0x1')];_0x143c98<_0x51ca3a;_0x143c98++){const _0x13ceef=events[_0x143c98],_0x41c1c2=createListener(_0x569678('0x5')+_0x13ceef,_0x5d3c07);WhatsappAccountEvents['on'](_0x13ceef,_0x41c1c2);}}; \ No newline at end of file +const a787_0x4ef4=['register','remove','whatsappAccount:','emit','save','./whatsappAccount.events'];(function(_0x30217c,_0x4ef4dc){const _0x1b6239=function(_0x1524f0){while(--_0x1524f0){_0x30217c['push'](_0x30217c['shift']());}};_0x1b6239(++_0x4ef4dc);}(a787_0x4ef4,0xa0));const a787_0x1b62=function(_0x30217c,_0x4ef4dc){_0x30217c=_0x30217c-0x0;let _0x1b6239=a787_0x4ef4[_0x30217c];return _0x1b6239;};const _0x63aaa5=a787_0x1b62;'use strict';const WhatsappAccountEvents=require(_0x63aaa5('0x1')),events=[_0x63aaa5('0x0'),_0x63aaa5('0x3'),'update'];function createListener(_0x1524f0,_0x3daa99){return function(_0xf4c328){const _0x44df94=a787_0x1b62;_0x3daa99[_0x44df94('0x5')](_0x1524f0,_0xf4c328);};}exports[_0x63aaa5('0x2')]=function(_0x4a030e){const _0x23574a=_0x63aaa5;for(let _0x187d42=0x0,_0x3d013d=events['length'];_0x187d42<_0x3d013d;_0x187d42++){const _0x319060=events[_0x187d42],_0x205ec3=createListener(_0x23574a('0x4')+_0x319060,_0x4a030e);WhatsappAccountEvents['on'](_0x319060,_0x205ec3);}}; \ No newline at end of file diff --git a/server/api/whatsappApplication/index.js b/server/api/whatsappApplication/index.js index 5fa9b31..ed7fc58 100644 --- a/server/api/whatsappApplication/index.js +++ b/server/api/whatsappApplication/index.js @@ -1 +1 @@ -const a788_0x51ec=['destroy','index','create','isAuthenticated','express','show','put','../../components/auth/service','./whatsappApplication.controller','delete','Router','/:id'];(function(_0x57ca1d,_0x51ec98){const _0x5db850=function(_0x130a07){while(--_0x130a07){_0x57ca1d['push'](_0x57ca1d['shift']());}};_0x5db850(++_0x51ec98);}(a788_0x51ec,0x1ac));const a788_0x5db8=function(_0x57ca1d,_0x51ec98){_0x57ca1d=_0x57ca1d-0x0;let _0x5db850=a788_0x51ec[_0x57ca1d];return _0x5db850;};const _0x45969e=a788_0x5db8;'use strict';const express=require(_0x45969e('0x8')),router=express[_0x45969e('0x2')](),auth=require(_0x45969e('0xb')),controller=require(_0x45969e('0x0'));router['get']('/',auth[_0x45969e('0x7')](),controller[_0x45969e('0x5')]),router['get'](_0x45969e('0x3'),auth[_0x45969e('0x7')](),controller[_0x45969e('0x9')]),router['post']('/',auth[_0x45969e('0x7')](),controller[_0x45969e('0x6')]),router[_0x45969e('0xa')](_0x45969e('0x3'),auth[_0x45969e('0x7')](),controller['update']),router[_0x45969e('0x1')](_0x45969e('0x3'),auth['isAuthenticated'](),controller[_0x45969e('0x4')]),module['exports']=router; \ No newline at end of file +const a788_0x5911=['./whatsappApplication.controller','express','create','destroy','delete','/:id','get','post','isAuthenticated','../../components/auth/service','Router','update'];(function(_0x5b7fec,_0x5911e1){const _0x2c26d5=function(_0x85f473){while(--_0x85f473){_0x5b7fec['push'](_0x5b7fec['shift']());}};_0x2c26d5(++_0x5911e1);}(a788_0x5911,0x1db));const a788_0x2c26=function(_0x5b7fec,_0x5911e1){_0x5b7fec=_0x5b7fec-0x0;let _0x2c26d5=a788_0x5911[_0x5b7fec];return _0x2c26d5;};const _0x41ae26=a788_0x2c26;'use strict';const express=require(_0x41ae26('0x6')),router=express[_0x41ae26('0x3')](),auth=require(_0x41ae26('0x2')),controller=require(_0x41ae26('0x5'));router[_0x41ae26('0xb')]('/',auth[_0x41ae26('0x1')](),controller['index']),router[_0x41ae26('0xb')](_0x41ae26('0xa'),auth['isAuthenticated'](),controller['show']),router[_0x41ae26('0x0')]('/',auth[_0x41ae26('0x1')](),controller[_0x41ae26('0x7')]),router['put'](_0x41ae26('0xa'),auth[_0x41ae26('0x1')](),controller[_0x41ae26('0x4')]),router[_0x41ae26('0x9')]('/:id',auth[_0x41ae26('0x1')](),controller[_0x41ae26('0x8')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.attributes.js b/server/api/whatsappApplication/whatsappApplication.attributes.js index d32c232..ee3cb4d 100644 --- a/server/api/whatsappApplication/whatsappApplication.attributes.js +++ b/server/api/whatsappApplication/whatsappApplication.attributes.js @@ -1 +1 @@ -const a789_0x4983=['TEXT','exports','*,*,*,*','sequelize','noop','INTEGER','STRING'];(function(_0x5cd4bf,_0x498307){const _0x1e57d8=function(_0x2f93aa){while(--_0x2f93aa){_0x5cd4bf['push'](_0x5cd4bf['shift']());}};_0x1e57d8(++_0x498307);}(a789_0x4983,0xb4));const a789_0x1e57=function(_0x5cd4bf,_0x498307){_0x5cd4bf=_0x5cd4bf-0x0;let _0x1e57d8=a789_0x4983[_0x5cd4bf];return _0x1e57d8;};const _0x5dfae1=a789_0x1e57;'use strict';const Sequelize=require(_0x5dfae1('0x5'));module[_0x5dfae1('0x3')]={'priority':{'type':Sequelize[_0x5dfae1('0x0')],'allowNull':![]},'app':{'type':Sequelize[_0x5dfae1('0x1')],'allowNull':![],'defaultValue':_0x5dfae1('0x6')},'appdata':{'type':Sequelize[_0x5dfae1('0x2')]()},'description':{'type':Sequelize[_0x5dfae1('0x1')]},'interval':{'type':Sequelize['STRING'],'defaultValue':_0x5dfae1('0x4')}}; \ No newline at end of file +const a789_0x27bd=['sequelize','INTEGER','*,*,*,*','STRING','noop','TEXT'];(function(_0x208a03,_0x27bd5b){const _0x366f39=function(_0x20186c){while(--_0x20186c){_0x208a03['push'](_0x208a03['shift']());}};_0x366f39(++_0x27bd5b);}(a789_0x27bd,0x1a7));const a789_0x366f=function(_0x208a03,_0x27bd5b){_0x208a03=_0x208a03-0x0;let _0x366f39=a789_0x27bd[_0x208a03];return _0x366f39;};const _0xfafc5c=a789_0x366f;'use strict';const Sequelize=require(_0xfafc5c('0x3'));module['exports']={'priority':{'type':Sequelize[_0xfafc5c('0x4')],'allowNull':![]},'app':{'type':Sequelize[_0xfafc5c('0x0')],'allowNull':![],'defaultValue':_0xfafc5c('0x1')},'appdata':{'type':Sequelize[_0xfafc5c('0x2')]()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0xfafc5c('0x0')],'defaultValue':_0xfafc5c('0x5')}}; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.controller.js b/server/api/whatsappApplication/whatsappApplication.controller.js index 564296b..67e035b 100644 --- a/server/api/whatsappApplication/whatsappApplication.controller.js +++ b/server/api/whatsappApplication/whatsappApplication.controller.js @@ -1 +1 @@ -const a790_0x7e4b=['filter','status','findOne','model','intersection','api','map','nolimit','Content-Range','rows','json','rawAttributes','query','fields','include','../../mysqldb','merge','fieldName','limit','params','findAll','VIRTUAL','options','sendStatus','catch','show','where','destroy','send','attributes','pick','count','keys','offset','create','filters','../../components/parsers/qs','sort','name','update','order','lodash','key','type','then','error','../../config/logger','undefined','length','body','index','WhatsappApplication','includeAll'];(function(_0x5861a2,_0x7e4b8a){const _0x160960=function(_0x56afd1){while(--_0x56afd1){_0x5861a2['push'](_0x5861a2['shift']());}};_0x160960(++_0x7e4b8a);}(a790_0x7e4b,0xea));const a790_0x1609=function(_0x5861a2,_0x7e4b8a){_0x5861a2=_0x5861a2-0x0;let _0x160960=a790_0x7e4b[_0x5861a2];return _0x160960;};const _0x5d1ea0=a790_0x1609;'use strict';const _=require(_0x5d1ea0('0x13')),qs=require(_0x5d1ea0('0xe')),logger=require(_0x5d1ea0('0x18'))(_0x5d1ea0('0x24')),db=require(_0x5d1ea0('0x2e'))['db'],{Op}=require('sequelize');function respondWithResult(_0x56afd1,_0x5a00da){return _0x5a00da=_0x5a00da||0xc8,function(_0x333fd5){const _0x3eff7a=a790_0x1609;if(_0x333fd5)return _0x56afd1[_0x3eff7a('0x20')](_0x5a00da)['json'](_0x333fd5);};}function respondWithFilteredResult(_0x9ed37e,_0x1ce546){return function(_0xe3ee89){const _0xd284dd=a790_0x1609;if(_0xe3ee89){const _0x36ad70=_0xe3ee89[_0xd284dd('0x9')],_0x351aa0=_0x1ce546['offset'];let _0x5c651c=_0x1ce546[_0xd284dd('0xb')]+_0x1ce546['limit'],_0x21481c;return _0x5c651c>=_0x36ad70?(_0x5c651c=_0x36ad70,_0x21481c=0xc8):_0x21481c=0xce,_0x9ed37e[_0xd284dd('0x20')](_0x21481c),_0x9ed37e['set'](_0xd284dd('0x27'),_0x351aa0+'-'+_0x5c651c+'/'+_0x36ad70)[_0xd284dd('0x29')](_0xe3ee89);}return null;};}function saveUpdates(_0x557794){return function(_0x444854){if(_0x444854)return _0x444854['update'](_0x557794)['then'](function(_0x30913f){return _0x30913f;});return null;};}function removeEntity(_0x350eff){return function(_0x6b351b){const _0x433b7b=a790_0x1609;if(_0x6b351b)return _0x6b351b['destroy']()[_0x433b7b('0x16')](function(){const _0x329ea8=_0x433b7b;_0x350eff[_0x329ea8('0x20')](0xcc)['end']();});};}function handleEntityNotFound(_0xb3c53d){return function(_0x1cb808){const _0x4d13a0=a790_0x1609;return!_0x1cb808&&_0xb3c53d[_0x4d13a0('0x1')](0x194),_0x1cb808;};}function handleError(_0x8d5407,_0x15ea00){return _0x15ea00=_0x15ea00||0x1f4,function(_0x484fa1){const _0x32d31f=a790_0x1609;logger[_0x32d31f('0x17')](_0x484fa1['stack']),_0x484fa1[_0x32d31f('0x10')]&&delete _0x484fa1[_0x32d31f('0x10')],_0x8d5407[_0x32d31f('0x20')](_0x15ea00)[_0x32d31f('0x6')](_0x484fa1);};}exports[_0x5d1ea0('0x1c')]=function(_0x22575b,_0x12d896){const _0x61421c=_0x5d1ea0;let _0x477ddb={};const _0x5a0d16={},_0x452553={'count':0x0,'rows':[]},_0x5c41b6=_[_0x61421c('0x25')](db[_0x61421c('0x1d')]['rawAttributes'],function(_0x11095a){const _0x27bf64=_0x61421c;return{'name':_0x11095a[_0x27bf64('0x30')],'type':_0x11095a[_0x27bf64('0x15')][_0x27bf64('0x14')]};});_0x5a0d16['model']=_[_0x61421c('0x25')](_0x5c41b6,_0x61421c('0x10')),_0x5a0d16[_0x61421c('0x2b')]=_[_0x61421c('0xa')](_0x22575b['query']),_0x5a0d16[_0x61421c('0xd')]=_[_0x61421c('0x23')](_0x5a0d16[_0x61421c('0x22')],_0x5a0d16[_0x61421c('0x2b')]),_0x477ddb[_0x61421c('0x7')]=_[_0x61421c('0x23')](_0x5a0d16[_0x61421c('0x22')],qs[_0x61421c('0x2c')](_0x22575b[_0x61421c('0x2b')]['fields'])),_0x477ddb[_0x61421c('0x7')]=_0x477ddb[_0x61421c('0x7')][_0x61421c('0x1a')]?_0x477ddb[_0x61421c('0x7')]:_0x5a0d16[_0x61421c('0x22')];typeof _0x22575b[_0x61421c('0x2b')][_0x61421c('0x26')]===_0x61421c('0x19')&&(_0x477ddb[_0x61421c('0x31')]=qs[_0x61421c('0x31')](_0x22575b[_0x61421c('0x2b')][_0x61421c('0x31')]),_0x477ddb[_0x61421c('0xb')]=qs[_0x61421c('0xb')](_0x22575b[_0x61421c('0x2b')][_0x61421c('0xb')]));_0x477ddb[_0x61421c('0x12')]=qs['sort'](_0x22575b[_0x61421c('0x2b')][_0x61421c('0xf')]),_0x477ddb[_0x61421c('0x4')]=qs[_0x61421c('0xd')](_[_0x61421c('0x8')](_0x22575b[_0x61421c('0x2b')],_0x5a0d16[_0x61421c('0xd')]),_0x5c41b6);_0x22575b[_0x61421c('0x2b')][_0x61421c('0x1f')]&&(_0x477ddb[_0x61421c('0x4')]=_[_0x61421c('0x2f')](_0x477ddb[_0x61421c('0x4')],{[Op['or']]:_[_0x61421c('0x25')](_0x5c41b6,function(_0x838eb4){const _0x21769c=_0x61421c;if(_0x838eb4[_0x21769c('0x15')]!==_0x21769c('0x34')){const _0x47f4e9={};return _0x47f4e9[_0x838eb4[_0x21769c('0x10')]]={[Op['like']]:'%'+_0x22575b[_0x21769c('0x2b')][_0x21769c('0x1f')]+'%'},_0x47f4e9;}})}));_0x477ddb=_[_0x61421c('0x2f')]({},_0x477ddb,_0x22575b[_0x61421c('0x0')]);const _0x3efa59={'where':_0x477ddb[_0x61421c('0x4')]};return db['WhatsappApplication'][_0x61421c('0x9')](_0x3efa59)[_0x61421c('0x16')](function(_0x161a55){const _0x22b580=_0x61421c;return _0x452553['count']=_0x161a55,_0x22575b[_0x22b580('0x2b')][_0x22b580('0x1e')]&&(_0x477ddb[_0x22b580('0x2d')]=[{'all':!![]}]),db[_0x22b580('0x1d')][_0x22b580('0x33')](_0x477ddb);})[_0x61421c('0x16')](function(_0x20e029){const _0x576a8b=_0x61421c;return _0x452553[_0x576a8b('0x28')]=_0x20e029,_0x452553;})[_0x61421c('0x16')](respondWithFilteredResult(_0x12d896,_0x477ddb))[_0x61421c('0x2')](handleError(_0x12d896,null));},exports[_0x5d1ea0('0x3')]=function(_0xd06001,_0x5bb8dc){const _0x303d13=_0x5d1ea0;let _0x5e8bd7={'raw':!![],'where':{'id':_0xd06001['params']['id']}};const _0x129c7f={};return _0x129c7f[_0x303d13('0x22')]=_[_0x303d13('0xa')](db[_0x303d13('0x1d')][_0x303d13('0x2a')]),_0x129c7f['query']=_['keys'](_0xd06001[_0x303d13('0x2b')]),_0x129c7f['filters']=_[_0x303d13('0x23')](_0x129c7f[_0x303d13('0x22')],_0x129c7f[_0x303d13('0x2b')]),_0x5e8bd7[_0x303d13('0x7')]=_['intersection'](_0x129c7f['model'],qs[_0x303d13('0x2c')](_0xd06001[_0x303d13('0x2b')][_0x303d13('0x2c')])),_0x5e8bd7[_0x303d13('0x7')]=_0x5e8bd7[_0x303d13('0x7')][_0x303d13('0x1a')]?_0x5e8bd7[_0x303d13('0x7')]:_0x129c7f[_0x303d13('0x22')],_0xd06001[_0x303d13('0x2b')][_0x303d13('0x1e')]&&(_0x5e8bd7[_0x303d13('0x2d')]=[{'all':!![]}]),_0x5e8bd7=_[_0x303d13('0x2f')]({},_0x5e8bd7,_0xd06001[_0x303d13('0x0')]),db['WhatsappApplication'][_0x303d13('0x21')](_0x5e8bd7)[_0x303d13('0x16')](handleEntityNotFound(_0x5bb8dc,null))[_0x303d13('0x16')](respondWithResult(_0x5bb8dc,null))[_0x303d13('0x2')](handleError(_0x5bb8dc,null));},exports[_0x5d1ea0('0xc')]=function(_0x5567e4,_0x5c229f){const _0x268fe8=_0x5d1ea0;return db['WhatsappApplication'][_0x268fe8('0xc')](_0x5567e4[_0x268fe8('0x1b')],{})[_0x268fe8('0x16')](respondWithResult(_0x5c229f,0xc9))['catch'](handleError(_0x5c229f,null));},exports[_0x5d1ea0('0x11')]=function(_0x38f89c,_0x241a21){const _0xbfda54=_0x5d1ea0;return _0x38f89c[_0xbfda54('0x1b')]['id']&&delete _0x38f89c[_0xbfda54('0x1b')]['id'],db[_0xbfda54('0x1d')][_0xbfda54('0x21')]({'where':{'id':_0x38f89c[_0xbfda54('0x32')]['id']}})['then'](handleEntityNotFound(_0x241a21,null))[_0xbfda54('0x16')](saveUpdates(_0x38f89c[_0xbfda54('0x1b')],null))[_0xbfda54('0x16')](respondWithResult(_0x241a21,null))[_0xbfda54('0x2')](handleError(_0x241a21,null));},exports[_0x5d1ea0('0x5')]=function(_0x272789,_0x4f5493){const _0x406bf6=_0x5d1ea0;return db['WhatsappApplication']['findOne']({'where':{'id':_0x272789[_0x406bf6('0x32')]['id']}})[_0x406bf6('0x16')](handleEntityNotFound(_0x4f5493,null))[_0x406bf6('0x16')](removeEntity(_0x4f5493,null))['catch'](handleError(_0x4f5493,null));}; \ No newline at end of file +const a790_0x54ff=['findAll','sendStatus','error','nolimit','findOne','order','model','../../config/logger','params','offset','stack','../../mysqldb','attributes','rows','keys','merge','include','rawAttributes','end','map','filters','length','undefined','catch','fieldName','pick','json','destroy','update','sequelize','fields','then','query','count','set','like','options','status','intersection','body','includeAll','key','create','name','WhatsappApplication','lodash','../../components/parsers/qs','Content-Range','limit','type','where'];(function(_0x46a0e1,_0x54ff24){const _0xd3a996=function(_0x26af22){while(--_0x26af22){_0x46a0e1['push'](_0x46a0e1['shift']());}};_0xd3a996(++_0x54ff24);}(a790_0x54ff,0xda));const a790_0xd3a9=function(_0x46a0e1,_0x54ff24){_0x46a0e1=_0x46a0e1-0x0;let _0xd3a996=a790_0x54ff[_0x46a0e1];return _0xd3a996;};const _0x2eafce=a790_0xd3a9;'use strict';const _=require(_0x2eafce('0x1f')),qs=require(_0x2eafce('0x20')),logger=require(_0x2eafce('0x2c'))('api'),db=require(_0x2eafce('0x30'))['db'],{Op}=require(_0x2eafce('0xf'));function respondWithResult(_0x26af22,_0x354a24){return _0x354a24=_0x354a24||0xc8,function(_0x329888){const _0x3b2b5c=a790_0xd3a9;if(_0x329888)return _0x26af22[_0x3b2b5c('0x17')](_0x354a24)[_0x3b2b5c('0xc')](_0x329888);};}function respondWithFilteredResult(_0x5cfef4,_0x1c7f15){return function(_0x486199){const _0x4b6994=a790_0xd3a9;if(_0x486199){const _0x31e9c4=_0x486199[_0x4b6994('0x13')],_0x14f34a=_0x1c7f15[_0x4b6994('0x2e')];let _0x404223=_0x1c7f15[_0x4b6994('0x2e')]+_0x1c7f15['limit'],_0x58cfe2;return _0x404223>=_0x31e9c4?(_0x404223=_0x31e9c4,_0x58cfe2=0xc8):_0x58cfe2=0xce,_0x5cfef4[_0x4b6994('0x17')](_0x58cfe2),_0x5cfef4[_0x4b6994('0x14')](_0x4b6994('0x21'),_0x14f34a+'-'+_0x404223+'/'+_0x31e9c4)[_0x4b6994('0xc')](_0x486199);}return null;};}function saveUpdates(_0x19fab6){return function(_0x1d90c2){const _0x3ef263=a790_0xd3a9;if(_0x1d90c2)return _0x1d90c2[_0x3ef263('0xe')](_0x19fab6)[_0x3ef263('0x11')](function(_0x208a42){return _0x208a42;});return null;};}function removeEntity(_0x3435dc){return function(_0x25883c){const _0x21a4aa=a790_0xd3a9;if(_0x25883c)return _0x25883c[_0x21a4aa('0xd')]()['then'](function(){const _0x5cec99=_0x21a4aa;_0x3435dc[_0x5cec99('0x17')](0xcc)[_0x5cec99('0x4')]();});};}function handleEntityNotFound(_0x233708){return function(_0x1aeb77){const _0x153eb3=a790_0xd3a9;return!_0x1aeb77&&_0x233708[_0x153eb3('0x26')](0x194),_0x1aeb77;};}function handleError(_0xa87ddb,_0x592224){return _0x592224=_0x592224||0x1f4,function(_0x4e19b9){const _0x113599=a790_0xd3a9;logger[_0x113599('0x27')](_0x4e19b9[_0x113599('0x2f')]),_0x4e19b9[_0x113599('0x1d')]&&delete _0x4e19b9[_0x113599('0x1d')],_0xa87ddb[_0x113599('0x17')](_0x592224)['send'](_0x4e19b9);};}exports['index']=function(_0xb72a7c,_0x36016a){const _0x1fef9f=_0x2eafce;let _0x234ac2={};const _0x3ef5e6={},_0x2fb676={'count':0x0,'rows':[]},_0x310896=_['map'](db[_0x1fef9f('0x1e')][_0x1fef9f('0x3')],function(_0x4ed09e){const _0x1bc925=_0x1fef9f;return{'name':_0x4ed09e[_0x1bc925('0xa')],'type':_0x4ed09e[_0x1bc925('0x23')][_0x1bc925('0x1b')]};});_0x3ef5e6[_0x1fef9f('0x2b')]=_[_0x1fef9f('0x5')](_0x310896,_0x1fef9f('0x1d')),_0x3ef5e6[_0x1fef9f('0x12')]=_[_0x1fef9f('0x0')](_0xb72a7c[_0x1fef9f('0x12')]),_0x3ef5e6[_0x1fef9f('0x6')]=_['intersection'](_0x3ef5e6['model'],_0x3ef5e6['query']),_0x234ac2[_0x1fef9f('0x31')]=_['intersection'](_0x3ef5e6[_0x1fef9f('0x2b')],qs[_0x1fef9f('0x10')](_0xb72a7c[_0x1fef9f('0x12')][_0x1fef9f('0x10')])),_0x234ac2['attributes']=_0x234ac2[_0x1fef9f('0x31')]['length']?_0x234ac2['attributes']:_0x3ef5e6[_0x1fef9f('0x2b')];typeof _0xb72a7c['query'][_0x1fef9f('0x28')]===_0x1fef9f('0x8')&&(_0x234ac2[_0x1fef9f('0x22')]=qs[_0x1fef9f('0x22')](_0xb72a7c[_0x1fef9f('0x12')][_0x1fef9f('0x22')]),_0x234ac2['offset']=qs[_0x1fef9f('0x2e')](_0xb72a7c[_0x1fef9f('0x12')][_0x1fef9f('0x2e')]));_0x234ac2[_0x1fef9f('0x2a')]=qs['sort'](_0xb72a7c[_0x1fef9f('0x12')]['sort']),_0x234ac2[_0x1fef9f('0x24')]=qs[_0x1fef9f('0x6')](_[_0x1fef9f('0xb')](_0xb72a7c[_0x1fef9f('0x12')],_0x3ef5e6[_0x1fef9f('0x6')]),_0x310896);_0xb72a7c[_0x1fef9f('0x12')]['filter']&&(_0x234ac2[_0x1fef9f('0x24')]=_['merge'](_0x234ac2[_0x1fef9f('0x24')],{[Op['or']]:_[_0x1fef9f('0x5')](_0x310896,function(_0x8bd35d){const _0x36ecee=_0x1fef9f;if(_0x8bd35d['type']!=='VIRTUAL'){const _0x4ec51e={};return _0x4ec51e[_0x8bd35d[_0x36ecee('0x1d')]]={[Op[_0x36ecee('0x15')]]:'%'+_0xb72a7c['query']['filter']+'%'},_0x4ec51e;}})}));_0x234ac2=_[_0x1fef9f('0x1')]({},_0x234ac2,_0xb72a7c[_0x1fef9f('0x16')]);const _0x1343b6={'where':_0x234ac2[_0x1fef9f('0x24')]};return db[_0x1fef9f('0x1e')][_0x1fef9f('0x13')](_0x1343b6)['then'](function(_0x1af4a8){const _0x27b7a1=_0x1fef9f;return _0x2fb676[_0x27b7a1('0x13')]=_0x1af4a8,_0xb72a7c[_0x27b7a1('0x12')][_0x27b7a1('0x1a')]&&(_0x234ac2[_0x27b7a1('0x2')]=[{'all':!![]}]),db[_0x27b7a1('0x1e')][_0x27b7a1('0x25')](_0x234ac2);})[_0x1fef9f('0x11')](function(_0xe8f7aa){const _0x597960=_0x1fef9f;return _0x2fb676[_0x597960('0x32')]=_0xe8f7aa,_0x2fb676;})[_0x1fef9f('0x11')](respondWithFilteredResult(_0x36016a,_0x234ac2))['catch'](handleError(_0x36016a,null));},exports['show']=function(_0x590f95,_0x52d3e2){const _0x221b6c=_0x2eafce;let _0x3f9884={'raw':!![],'where':{'id':_0x590f95[_0x221b6c('0x2d')]['id']}};const _0x5b3340={};return _0x5b3340[_0x221b6c('0x2b')]=_[_0x221b6c('0x0')](db[_0x221b6c('0x1e')][_0x221b6c('0x3')]),_0x5b3340[_0x221b6c('0x12')]=_[_0x221b6c('0x0')](_0x590f95[_0x221b6c('0x12')]),_0x5b3340[_0x221b6c('0x6')]=_[_0x221b6c('0x18')](_0x5b3340[_0x221b6c('0x2b')],_0x5b3340[_0x221b6c('0x12')]),_0x3f9884[_0x221b6c('0x31')]=_[_0x221b6c('0x18')](_0x5b3340[_0x221b6c('0x2b')],qs[_0x221b6c('0x10')](_0x590f95[_0x221b6c('0x12')][_0x221b6c('0x10')])),_0x3f9884['attributes']=_0x3f9884[_0x221b6c('0x31')][_0x221b6c('0x7')]?_0x3f9884['attributes']:_0x5b3340['model'],_0x590f95['query'][_0x221b6c('0x1a')]&&(_0x3f9884[_0x221b6c('0x2')]=[{'all':!![]}]),_0x3f9884=_[_0x221b6c('0x1')]({},_0x3f9884,_0x590f95['options']),db['WhatsappApplication'][_0x221b6c('0x29')](_0x3f9884)[_0x221b6c('0x11')](handleEntityNotFound(_0x52d3e2,null))[_0x221b6c('0x11')](respondWithResult(_0x52d3e2,null))['catch'](handleError(_0x52d3e2,null));},exports[_0x2eafce('0x1c')]=function(_0x1a558e,_0x5c8f0a){const _0x537e47=_0x2eafce;return db['WhatsappApplication'][_0x537e47('0x1c')](_0x1a558e[_0x537e47('0x19')],{})[_0x537e47('0x11')](respondWithResult(_0x5c8f0a,0xc9))[_0x537e47('0x9')](handleError(_0x5c8f0a,null));},exports[_0x2eafce('0xe')]=function(_0x480483,_0xddc48c){const _0x3639d6=_0x2eafce;return _0x480483[_0x3639d6('0x19')]['id']&&delete _0x480483[_0x3639d6('0x19')]['id'],db[_0x3639d6('0x1e')][_0x3639d6('0x29')]({'where':{'id':_0x480483[_0x3639d6('0x2d')]['id']}})[_0x3639d6('0x11')](handleEntityNotFound(_0xddc48c,null))['then'](saveUpdates(_0x480483[_0x3639d6('0x19')],null))['then'](respondWithResult(_0xddc48c,null))[_0x3639d6('0x9')](handleError(_0xddc48c,null));},exports[_0x2eafce('0xd')]=function(_0x4517e3,_0xc80e76){const _0x408ac5=_0x2eafce;return db[_0x408ac5('0x1e')]['findOne']({'where':{'id':_0x4517e3['params']['id']}})[_0x408ac5('0x11')](handleEntityNotFound(_0xc80e76,null))['then'](removeEntity(_0xc80e76,null))[_0x408ac5('0x9')](handleError(_0xc80e76,null));}; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.model.js b/server/api/whatsappApplication/whatsappApplication.model.js index ca2c44c..211063b 100644 --- a/server/api/whatsappApplication/whatsappApplication.model.js +++ b/server/api/whatsappApplication/whatsappApplication.model.js @@ -1 +1 @@ -const a791_0x5a20=['define','whatsapp_applications','WhatsappApplication'];(function(_0x55de9c,_0x5a2021){const _0x1ed813=function(_0x2958ee){while(--_0x2958ee){_0x55de9c['push'](_0x55de9c['shift']());}};_0x1ed813(++_0x5a2021);}(a791_0x5a20,0x196));const a791_0x1ed8=function(_0x55de9c,_0x5a2021){_0x55de9c=_0x55de9c-0x0;let _0x1ed813=a791_0x5a20[_0x55de9c];return _0x1ed813;};'use strict';const attributes=require('./whatsappApplication.attributes');module['exports']=function(_0x2958ee){const _0x27e239=a791_0x1ed8,_0x3c1cb0=_0x2958ee[_0x27e239('0x2')](_0x27e239('0x1'),attributes,{'tableName':_0x27e239('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x3c1cb0;}; \ No newline at end of file +const a791_0x3091=['define','WhatsappApplication','./whatsappApplication.attributes','exports','whatsapp_applications','utf8mb4'];(function(_0x396ab4,_0x309168){const _0x4c5f77=function(_0x26c7ea){while(--_0x26c7ea){_0x396ab4['push'](_0x396ab4['shift']());}};_0x4c5f77(++_0x309168);}(a791_0x3091,0xa3));const a791_0x4c5f=function(_0x396ab4,_0x309168){_0x396ab4=_0x396ab4-0x0;let _0x4c5f77=a791_0x3091[_0x396ab4];return _0x4c5f77;};const _0x4e88b3=a791_0x4c5f;'use strict';const attributes=require(_0x4e88b3('0x1'));module[_0x4e88b3('0x2')]=function(_0x26c7ea){const _0x3222e1=_0x4e88b3,_0x1ae47c=_0x26c7ea[_0x3222e1('0x5')](_0x3222e1('0x0'),attributes,{'tableName':_0x3222e1('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3222e1('0x4'),'collate':'utf8mb4_unicode_ci'});return _0x1ae47c;}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/index.js b/server/api/whatsappInteraction/index.js index 4b4e43f..8971744 100644 --- a/server/api/whatsappInteraction/index.js +++ b/server/api/whatsappInteraction/index.js @@ -1 +1 @@ -const a792_0x3ffe=['exports','create','tracked','post','download','./whatsappInteraction.controller','addTags','Router','describe','destroy','delete','update','/:id/download','addMessage','/:id/messages','/:id','removeTags','whatsappinteraction:addtags','getMessages','/:id/tags','../../components/interaction/service','/describe','whatsappinteraction:update','isAuthenticated','get','whatsapp'];(function(_0x49a242,_0x3ffef9){const _0x2a156a=function(_0x4f64e3){while(--_0x4f64e3){_0x49a242['push'](_0x49a242['shift']());}};_0x2a156a(++_0x3ffef9);}(a792_0x3ffe,0xc0));const a792_0x2a15=function(_0x49a242,_0x3ffef9){_0x49a242=_0x49a242-0x0;let _0x2a156a=a792_0x3ffe[_0x49a242];return _0x2a156a;};const _0x3f5a37=a792_0x2a15;'use strict';const express=require('express'),router=express[_0x3f5a37('0x17')](),auth=require('../../components/auth/service'),interaction=require(_0x3f5a37('0xa')),controller=require(_0x3f5a37('0x15'));router['get']('/',auth[_0x3f5a37('0xd')](),controller['index']),router[_0x3f5a37('0xe')](_0x3f5a37('0xb'),auth[_0x3f5a37('0xd')](),controller[_0x3f5a37('0x18')]),router[_0x3f5a37('0xe')](_0x3f5a37('0x5'),auth[_0x3f5a37('0xd')](),controller['show']),router['get'](_0x3f5a37('0x4'),auth[_0x3f5a37('0xd')](),controller[_0x3f5a37('0x8')]),router[_0x3f5a37('0xe')](_0x3f5a37('0x2'),auth[_0x3f5a37('0xd')](),controller[_0x3f5a37('0x14')]),router[_0x3f5a37('0x13')]('/',auth[_0x3f5a37('0xd')](),controller[_0x3f5a37('0x11')]),router['post']('/:id/messages',auth[_0x3f5a37('0xd')](),controller[_0x3f5a37('0x3')]),router[_0x3f5a37('0x13')](_0x3f5a37('0x9'),auth[_0x3f5a37('0xd')](),interaction['tracked'](_0x3f5a37('0xf'),_0x3f5a37('0x7')),controller[_0x3f5a37('0x16')]),router['put'](_0x3f5a37('0x5'),auth[_0x3f5a37('0xd')](),interaction[_0x3f5a37('0x12')](_0x3f5a37('0xf'),_0x3f5a37('0xc')),controller[_0x3f5a37('0x1')]),router['delete'](_0x3f5a37('0x5'),auth[_0x3f5a37('0xd')](),interaction['tracked']('whatsapp','whatsappinteraction:destroy'),controller[_0x3f5a37('0x19')]),router[_0x3f5a37('0x0')](_0x3f5a37('0x9'),auth[_0x3f5a37('0xd')](),controller[_0x3f5a37('0x6')]),module[_0x3f5a37('0x10')]=router; \ No newline at end of file +const a792_0x4d96=['/:id/tags','express','/:id','destroy','download','/:id/download','describe','whatsappinteraction:update','/:id/messages','removeTags','isAuthenticated','post','update','put','whatsappinteraction:addtags','addMessage','/describe','whatsapp','Router','tracked','../../components/interaction/service','./whatsappInteraction.controller','getMessages','get','addTags','show'];(function(_0x38ba8d,_0x4d963d){const _0x185aca=function(_0x3ff418){while(--_0x3ff418){_0x38ba8d['push'](_0x38ba8d['shift']());}};_0x185aca(++_0x4d963d);}(a792_0x4d96,0xb1));const a792_0x185a=function(_0x38ba8d,_0x4d963d){_0x38ba8d=_0x38ba8d-0x0;let _0x185aca=a792_0x4d96[_0x38ba8d];return _0x185aca;};const _0x3d5144=a792_0x185a;'use strict';const express=require(_0x3d5144('0x6')),router=express[_0x3d5144('0x17')](),auth=require('../../components/auth/service'),interaction=require(_0x3d5144('0x19')),controller=require(_0x3d5144('0x0'));router['get']('/',auth[_0x3d5144('0xf')](),controller['index']),router['get'](_0x3d5144('0x15'),auth[_0x3d5144('0xf')](),controller[_0x3d5144('0xb')]),router[_0x3d5144('0x2')](_0x3d5144('0x7'),auth['isAuthenticated'](),controller[_0x3d5144('0x4')]),router['get'](_0x3d5144('0xd'),auth[_0x3d5144('0xf')](),controller[_0x3d5144('0x1')]),router[_0x3d5144('0x2')](_0x3d5144('0xa'),auth['isAuthenticated'](),controller[_0x3d5144('0x9')]),router[_0x3d5144('0x10')]('/',auth['isAuthenticated'](),controller['create']),router[_0x3d5144('0x10')](_0x3d5144('0xd'),auth[_0x3d5144('0xf')](),controller[_0x3d5144('0x14')]),router['post'](_0x3d5144('0x5'),auth[_0x3d5144('0xf')](),interaction[_0x3d5144('0x18')]('whatsapp',_0x3d5144('0x13')),controller[_0x3d5144('0x3')]),router[_0x3d5144('0x12')](_0x3d5144('0x7'),auth[_0x3d5144('0xf')](),interaction[_0x3d5144('0x18')](_0x3d5144('0x16'),_0x3d5144('0xc')),controller[_0x3d5144('0x11')]),router['delete'](_0x3d5144('0x7'),auth['isAuthenticated'](),interaction[_0x3d5144('0x18')](_0x3d5144('0x16'),'whatsappinteraction:destroy'),controller[_0x3d5144('0x8')]),router['delete'](_0x3d5144('0x5'),auth['isAuthenticated'](),controller[_0x3d5144('0xe')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.attributes.js b/server/api/whatsappInteraction/whatsappInteraction.attributes.js index deb83c6..cbd45a3 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.attributes.js +++ b/server/api/whatsappInteraction/whatsappInteraction.attributes.js @@ -1 +1 @@ -const a793_0x8827=['out','STRING','exports','BOOLEAN'];(function(_0x32fc9b,_0x8827){const _0x36d0f2=function(_0x587d09){while(--_0x587d09){_0x32fc9b['push'](_0x32fc9b['shift']());}};_0x36d0f2(++_0x8827);}(a793_0x8827,0x9b));const a793_0x36d0=function(_0x32fc9b,_0x8827){_0x32fc9b=_0x32fc9b-0x0;let _0x36d0f2=a793_0x8827[_0x32fc9b];return _0x36d0f2;};const _0x58d337=a793_0x36d0;'use strict';const Sequelize=require('sequelize');module[_0x58d337('0x3')]={'closed':{'type':Sequelize[_0x58d337('0x0')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x58d337('0x2')]},'note':{'type':Sequelize[_0x58d337('0x2')]},'phone':{'type':Sequelize[_0x58d337('0x2')]},'read1stAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize['ENUM']('in',_0x58d337('0x1')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x58d337('0x1')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a793_0x3047=['DATE','STRING','exports','out','ENUM','sequelize'];(function(_0x3d34a1,_0x3047c8){const _0x2c1bde=function(_0x1b868a){while(--_0x1b868a){_0x3d34a1['push'](_0x3d34a1['shift']());}};_0x2c1bde(++_0x3047c8);}(a793_0x3047,0xba));const a793_0x2c1b=function(_0x3d34a1,_0x3047c8){_0x3d34a1=_0x3d34a1-0x0;let _0x2c1bde=a793_0x3047[_0x3d34a1];return _0x2c1bde;};const _0x145831=a793_0x2c1b;'use strict';const Sequelize=require(_0x145831('0x5'));module[_0x145831('0x2')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x145831('0x0')]},'disposition':{'type':Sequelize[_0x145831('0x1')]},'secondDisposition':{'type':Sequelize[_0x145831('0x1')]},'thirdDisposition':{'type':Sequelize[_0x145831('0x1')]},'note':{'type':Sequelize[_0x145831('0x1')]},'phone':{'type':Sequelize['STRING']},'read1stAt':{'type':Sequelize[_0x145831('0x0')]},'firstMsgDirection':{'type':Sequelize[_0x145831('0x4')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x145831('0x3')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.controller.js b/server/api/whatsappInteraction/whatsappInteraction.controller.js index ed1dca0..d080c9b 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.controller.js +++ b/server/api/whatsappInteraction/whatsappInteraction.controller.js @@ -1 +1 @@ -const a794_0x5dac=['send','merge','filter','all','intersection','resolve','Account.mandatoryDisposition','getFullTextValue','%s\x20#%d','body','System','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','show','WhatsappAccountId','i.WhatsappAccountId\x20IN\x20?','offset','Tag','$gte','join','user','Messages','select','30px','color','attributes','setTags','getWhatsappAccounts','buildExpression','firstName','count','sequelize','whatsappInteractionTags:save','whatsapp_interactions','createdAt','renderFile','having','moment','i.id','json','direction','addMessage','order','status','Contact.lastName','root','compact','rimraf','files','key','fieldName','../../mysqldb','c.firstName','options','c.lastName','Contact.firstName','closedAt','findAll','Contact.email','nolimit','index','journey','Attachment','Account.key','removeTags','users','set','$lte','length','type','text','createWriteStream','i.WhatsappAccountId\x20IS\x20NULL','UserId','keyBy','WhatsappMessage','YYYY-MM-DD\x20HH:mm:ss','u.id\x20=\x20ui.UserId','null','end','params','existsSync','disposition','destroy','pick','user_has_whatsapp_interactions','rows','clone','gte','c.phone','ContactId','fullname','t.id\x20IN\x20?','field','../../config/environment','c.fax','mkdirSync','sqlOperator','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','i.id\x20LIKE\x20?','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','views','include','40px','whatsapp_messages','toString','describe','read','omit','pipe','a.id\x20=\x20i.WhatsappAccountId','then','SELECT','unix','isArray','sendStatus','findOne','GROUP_CONCAT(DISTINCT\x20t.id)','o.id\x20=\x20i.UserId','map','find','out','err','WhatsappInteraction','catch','Users','`unreadMessages`\x20=\x200','basename','filters','tag','search','WhatsappAccount','start','Owner','toFile','limit','../../rediscache','Account','$substring','from','log','error','./whatsappInteraction.socket','ejs','Sequelize','format','keys','me.WhatsappInteractionId\x20=\x20i.id','c.mobile','tools_tags','attachments','push','../../components/parsers/advancedSearch','api','ids','split','`\x20>\x200','WhatsappInteractionId','query','\x27\x27\x27\x27','Contact.fax','secret','transcript-%d-%s.zip','model','Contact','ui.WhatsappInteractionId','group','value','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','YYYY-MM-DD','cm_contacts','like','fields','TagIds','forEach','unreadMessages','a.mandatoryDisposition','name','o.internal','Owner.fullname','\x20IS\x20NULL','path','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','Tags','create','i.*','server','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','replace','where','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','../../config/logger','isEmpty','10px','it.WhatsappInteractionId\x20=\x20i.id','sort','o.fullname','Whatsapp','register','.pdf','operator','lastName','zip-dir','undefined','html-pdf','rawAttributes','u.id','closed','left_join','CmContact','User','\x20=\x20?','c.email','tmp','conditions','download'];(function(_0xd33fc7,_0x5dacef){const _0x24e6ab=function(_0x412261){while(--_0x412261){_0xd33fc7['push'](_0xd33fc7['shift']());}};_0x24e6ab(++_0x5dacef);}(a794_0x5dac,0x122));const a794_0x24e6=function(_0xd33fc7,_0x5dacef){_0xd33fc7=_0xd33fc7-0x0;let _0x24e6ab=a794_0x5dac[_0xd33fc7];return _0x24e6ab;};const _0x244621=a794_0x24e6;'use strict';const pdf=require(_0x244621('0x80')),rimraf=require(_0x244621('0xba')),zipdir=require(_0x244621('0x7e')),moment=require(_0x244621('0xb0')),util=require('util'),path=require(_0x244621('0x69')),ejs=require(_0x244621('0x43')),fs=require('fs'),_=require('lodash'),squel=require('squel'),{getSocket}=require(_0x244621('0x3c')),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(_0x244621('0x4c')),logger=require(_0x244621('0x73'))(_0x244621('0x4d')),config=require(_0x244621('0x12')),db=require(_0x244621('0xbe'))['db'],{Op}=require('sequelize');require(_0x244621('0x42'))[_0x244621('0x7a')](socket);function respondWithStatusCode(_0x412261,_0x1a691){return _0x1a691=_0x1a691||0xcc,function(_0x28c023){const _0x462073=a794_0x24e6;if(_0x28c023)return _0x412261[_0x462073('0x27')](_0x1a691);return _0x412261[_0x462073('0xb6')](_0x1a691)[_0x462073('0x3')]();};}function respondWithResult(_0x3e8c71,_0x373668){return _0x373668=_0x373668||0xc8,function(_0x3e2d8d){const _0x1a1ee2=a794_0x24e6;if(_0x3e2d8d)return _0x3e8c71[_0x1a1ee2('0xb6')](_0x373668)[_0x1a1ee2('0xb2')](_0x3e2d8d);};}function respondWithFilteredResult(_0x5de9d6,_0x1c0c72){return function(_0x5b6c95){const _0x31de08=a794_0x24e6;if(_0x5b6c95){const _0xbda213=_0x5b6c95[_0x31de08('0xa9')],_0xa03406=_0x1c0c72[_0x31de08('0x9b')];let _0x43b7c9=_0x1c0c72[_0x31de08('0x9b')]+_0x1c0c72[_0x31de08('0x3b')],_0x1ca085;return _0x43b7c9>=_0xbda213?(_0x43b7c9=_0xbda213,_0x1ca085=0xc8):_0x1ca085=0xce,_0x5de9d6[_0x31de08('0xb6')](_0x1ca085),_0x5de9d6[_0x31de08('0xcd')]('Content-Range',_0xa03406+'-'+_0x43b7c9+'/'+_0xbda213)[_0x31de08('0xb2')](_0x5b6c95);}return null;};}function saveUpdates(_0x10f48b){return function(_0x584d32){const _0x6c15f8=a794_0x24e6;if(_0x584d32)return _0x584d32['update'](_0x10f48b)[_0x6c15f8('0x23')](function(_0x4dc486){return _0x4dc486;});return null;};}function removeEntity(_0x232d9b){return function(_0x1d6ed3){const _0x165029=a794_0x24e6;if(_0x1d6ed3)return _0x1d6ed3[_0x165029('0x7')]()[_0x165029('0x23')](function(){const _0x4cf727=_0x165029;_0x232d9b[_0x4cf727('0xb6')](0xcc)[_0x4cf727('0x3')]();});};}function handleEntityNotFound(_0x58c179){return function(_0x4d8d9c){const _0x3fbc44=a794_0x24e6;return!_0x4d8d9c&&_0x58c179[_0x3fbc44('0x27')](0x194),_0x4d8d9c;};}function handleError(_0x2c12fe,_0x22f5c0){return _0x22f5c0=_0x22f5c0||0x1f4,function(_0x5102df){const _0xfa2c7=a794_0x24e6;logger[_0xfa2c7('0x41')](_0x5102df['stack']),_0x5102df[_0xfa2c7('0x65')]&&delete _0x5102df[_0xfa2c7('0x65')],_0x2c12fe[_0xfa2c7('0xb6')](_0x22f5c0)[_0xfa2c7('0x8c')](_0x5102df);};}function getInteractionUsers(_0x41e549,_0x550043){return new Promise(function(_0x18e948,_0x58435f){const _0x463eac=a794_0x24e6;try{_0x550043[_0x41e549['id']]&&(_0x41e549[_0x463eac('0x31')]=_[_0x463eac('0x2b')](_0x550043[_0x41e549['id']],function(_0x39b6b6){return{'id':_0x39b6b6['id'],'fullname':_0x39b6b6['fullname']};}));}catch(_0x3ba54c){_0x58435f(_0x3ba54c);}_0x18e948(_0x41e549);});}function getInteractionTags(_0x43c491,_0x2d45ec){return new Promise(function(_0x2cf053,_0x553f8b){const _0x27e414=a794_0x24e6;try{_0x43c491[_0x27e414('0x61')]&&(_0x43c491[_0x27e414('0x6b')]=[],_0x43c491[_0x27e414('0x61')][_0x27e414('0x4f')](',')[_0x27e414('0x62')](function(_0x1ad8f3){const _0x30f43e=_0x27e414;_0x43c491[_0x30f43e('0x6b')][_0x30f43e('0x4b')](_0x2d45ec[_0x1ad8f3]);})),delete _0x43c491[_0x27e414('0x61')];}catch(_0x235149){_0x553f8b(_0x235149);}_0x2cf053(_0x43c491);});}function updateWhatsappInteraction(_0x1145e8,_0x5e3109,_0x30ff63){return new Promise(function(_0x5aeb8f,_0x27216d){const _0x2279ad=a794_0x24e6;return getInteractionUsers(_0x1145e8,_0x30ff63)[_0x2279ad('0x23')](function(_0x55d10b){return getInteractionTags(_0x55d10b,_0x5e3109);})[_0x2279ad('0x23')](function(_0x346153){_0x5aeb8f(_0x346153);})[_0x2279ad('0x30')](function(_0x328ab6){_0x27216d(_0x328ab6);});});}exports[_0x244621('0xc7')]=function(_0x4bff40,_0x3c86cf){const _0x1ba49a=_0x244621,_0xa72c23={},_0x399af0={},_0x1b036d={'count':0x0,'rows':[]},_0x251f15=_['map'](db[_0x1ba49a('0x2f')][_0x1ba49a('0x81')],function(_0x425c94){const _0x157004=_0x1ba49a;return{'name':_0x425c94[_0x157004('0xbd')],'type':_0x425c94['type'][_0x157004('0xbc')]};});_0x399af0[_0x1ba49a('0x57')]=_[_0x1ba49a('0x2b')](_0x251f15,_0x1ba49a('0x65')),_0x399af0[_0x1ba49a('0x52')]=_[_0x1ba49a('0x46')](_0x4bff40['query']),_0x399af0[_0x1ba49a('0x34')]=_[_0x1ba49a('0x90')](_0x399af0['model'],_0x399af0[_0x1ba49a('0x52')]),_0xa72c23[_0x1ba49a('0xa4')]=_['intersection'](_0x399af0[_0x1ba49a('0x57')],qs['fields'](_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x60')])),_0xa72c23['attributes']=_0xa72c23['attributes'][_0x1ba49a('0xcf')]?_0xa72c23[_0x1ba49a('0xa4')]:_0x399af0['model'];typeof _0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0xc6')]===_0x1ba49a('0x7f')&&(_0xa72c23[_0x1ba49a('0x3b')]=qs[_0x1ba49a('0x3b')](_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x3b')]),_0xa72c23[_0x1ba49a('0x9b')]=qs[_0x1ba49a('0x9b')](_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x9b')]));_0xa72c23[_0x1ba49a('0xb5')]=qs[_0x1ba49a('0x77')](_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x77')]),_0xa72c23[_0x1ba49a('0x71')]=qs['filters'](_['pick'](_0x4bff40[_0x1ba49a('0x52')],_0x399af0[_0x1ba49a('0x34')]),_0x251f15);let _0x20d93d=[];const _0x51a4de=squel[_0x1ba49a('0xa1')]()[_0x1ba49a('0x11')]('id')[_0x1ba49a('0x11')]('name')[_0x1ba49a('0x11')](_0x1ba49a('0xa3'))[_0x1ba49a('0x3f')](_0x1ba49a('0x49')),_0x4af369=squel['select']()[_0x1ba49a('0x11')](_0x1ba49a('0x82'))[_0x1ba49a('0x11')]('u.fullname')[_0x1ba49a('0x11')](_0x1ba49a('0x59'))['from'](_0x1ba49a('0x9'),'ui')[_0x1ba49a('0x84')](_0x1ba49a('0xcc'),'u',_0x1ba49a('0x1')),_0x9bc8d1=squel[_0x1ba49a('0xa1')]()[_0x1ba49a('0x3f')](_0x1ba49a('0xac'),'i')[_0x1ba49a('0x84')](_0x1ba49a('0x5e'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')['left_join']('users','o',_0x1ba49a('0x2a'))['left_join']('whatsapp_accounts','a',_0x1ba49a('0x22'))[_0x1ba49a('0x84')](_0x1ba49a('0x1c'),'me',_0x1ba49a('0x47'))[_0x1ba49a('0x84')]('whatsapp_interaction_has_tags','it',_0x1ba49a('0x76'))[_0x1ba49a('0x84')](_0x1ba49a('0x49'),'t','t.id\x20=\x20it.TagId'),_0x2909a2=squel['expr']();let _0x1722fe=[];const _0x1c4351=squel['expr']();let _0x38a15c;if(_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x36')]){_0x38a15c=as['parseSearch'](_0x4bff40['query'][_0x1ba49a('0x36')]);const _0x25942d=_0x38a15c[_0x1ba49a('0x15')];for(let _0x384b2d=0x0;_0x384b2d<_0x38a15c[_0x1ba49a('0x8a')][_0x1ba49a('0xcf')];_0x384b2d++){const _0x2ff874=_0x38a15c[_0x1ba49a('0x8a')][_0x384b2d],_0x3b3fa7='i';let _0x2edd82,_0x556636=_[_0x1ba49a('0x2c')](_0x251f15,[_0x1ba49a('0x65'),_0x2ff874[_0x1ba49a('0x11')]]);if(!_0x556636)switch(_0x2ff874[_0x1ba49a('0x11')]){case'unreadMessages':_0x2ff874[_0x1ba49a('0x5b')]==0x1?_0x9bc8d1['having']('`'+_0x2ff874[_0x1ba49a('0x11')]+'`\x20=\x200'):_0x9bc8d1[_0x1ba49a('0xaf')]('`'+_0x2ff874[_0x1ba49a('0x11')]+_0x1ba49a('0x50'));break;case'Contact':if(_0x2ff874['operator']===_0x1ba49a('0x3e')){if(_0x2ff874['value'][_0x1ba49a('0x4f')]('\x20')[_0x1ba49a('0xcf')]>0x1)_0x2909a2[_0x25942d](_0x1ba49a('0x97'),qs[_0x1ba49a('0x93')](_0x2ff874[_0x1ba49a('0x5b')]),null);else{const _0x25d7a4='%'+_0x2ff874['value']+'%';_0x2909a2[_0x25942d](_0x1ba49a('0x72'),_0x25d7a4,_0x25d7a4,_0x25d7a4);}}else _0x556636=_[_0x1ba49a('0x2c')](_0x251f15,[_0x1ba49a('0x65'),_0x1ba49a('0xe')]),_0x2ff874[_0x1ba49a('0x11')]=_0x1ba49a('0xe'),_0x2edd82=as[_0x1ba49a('0xa7')](_0x3b3fa7,_0x556636[_0x1ba49a('0xd0')],_0x2ff874),_0x2909a2[_0x25942d](_0x2edd82[_0x1ba49a('0xd1')],_0x2edd82[_0x1ba49a('0x5b')][_0x1ba49a('0x38')],_0x2edd82['value'][_0x1ba49a('0x3')]);break;case _0x1ba49a('0x9c'):{const _0x29e08f=_0x2ff874[_0x1ba49a('0x5b')]['split'](',')[_0x1ba49a('0x2b')](function(_0xbe2178){return Number(_0xbe2178);});_0x29e08f[_0x1ba49a('0x62')](function(_0x916da3){const _0x45b024=_0x1ba49a;_0x1c4351['or'](_0x45b024('0x16'),'%,'+_0x916da3+',%');}),_0x1722fe=_['union'](_0x1722fe,_0x29e08f);}break;case _0x1ba49a('0x86'):_0x2ff874[_0x1ba49a('0x7c')]===_0x1ba49a('0x3e')?_0x2909a2[_0x25942d]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x2ff874['value']+'%',null):(_0x556636=_[_0x1ba49a('0x2c')](_0x251f15,['name',_0x1ba49a('0xd4')]),_0x2ff874[_0x1ba49a('0x11')]='UserId',_0x2edd82=as[_0x1ba49a('0xa7')](_0x3b3fa7,_0x556636[_0x1ba49a('0xd0')],_0x2ff874),_0x2909a2[_0x25942d](_0x2edd82['text'],_0x2edd82[_0x1ba49a('0x5b')][_0x1ba49a('0x38')],_0x2edd82[_0x1ba49a('0x5b')][_0x1ba49a('0x3')]));break;case'body':_0x2edd82=as['buildExpression']('me',null,_0x2ff874),_0x2909a2[_0x25942d](_0x2edd82['text'],_0x2edd82['value']['start'],_0x2edd82[_0x1ba49a('0x5b')][_0x1ba49a('0x3')]);break;}else _0x2edd82=as['buildExpression'](_0x3b3fa7,_0x556636[_0x1ba49a('0xd0')],_0x2ff874),_0x2909a2[_0x25942d](_0x2edd82[_0x1ba49a('0xd1')],_0x2edd82['value'][_0x1ba49a('0x38')],_0x2edd82[_0x1ba49a('0x5b')][_0x1ba49a('0x3')]);}}else{const _0x277e82=_(_0x4bff40[_0x1ba49a('0x52')])[_0x1ba49a('0x46')]()[_0x1ba49a('0x2b')](function(_0x39202a){const _0x1d69ed=_0x1ba49a;return _['some'](_0x251f15,[_0x1d69ed('0x65'),_0x39202a])?_0x39202a:undefined;})[_0x1ba49a('0xb9')]()['value']();!_[_0x1ba49a('0x74')](_0x277e82)&&_0x277e82[_0x1ba49a('0x62')](function(_0x19de14){const _0x1ddc9a=_0x1ba49a;if(_0x19de14===_0x1ddc9a('0x99'))_0x9bc8d1[_0x1ddc9a('0x71')]('i.WhatsappAccountId\x20IN\x20?',[]['concat'](_0x4bff40[_0x1ddc9a('0x52')][_0x19de14]));else{if(_0x19de14===_0x1ddc9a('0xad')){const _0x588432=JSON['parse'](_0x4bff40[_0x1ddc9a('0x52')][_0x19de14])['$gte'],_0x48bc8a=JSON['parse'](_0x4bff40[_0x1ddc9a('0x52')][_0x19de14])[_0x1ddc9a('0xce')];_0x9bc8d1['where'](_0x1ddc9a('0x6f'),_0x588432,_0x48bc8a);}else _0x4bff40[_0x1ddc9a('0x52')][_0x19de14]===_0x1ddc9a('0x2')?_0x9bc8d1[_0x1ddc9a('0x71')]('i.'+_0x19de14+_0x1ddc9a('0x68')):_0x9bc8d1[_0x1ddc9a('0x71')]('i.'+_0x19de14+_0x1ddc9a('0x87'),_0x4bff40['query'][_0x19de14]);}});_0x4bff40[_0x1ba49a('0x52')]['read']&&(_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x1f')]==0x1?_0x9bc8d1[_0x1ba49a('0xaf')](_0x1ba49a('0x32')):_0x9bc8d1[_0x1ba49a('0xaf')]('`unreadMessages`\x20>\x200'));_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x35')]&&(_0x1722fe=_[_0x1ba49a('0x26')](_0x4bff40['query']['tag'])?_0x4bff40['query'][_0x1ba49a('0x35')]:new Array(_0x4bff40['query'][_0x1ba49a('0x35')]),_0x1722fe[_0x1ba49a('0x62')](function(_0x63f839){const _0x312e3a=_0x1ba49a;_0x1c4351['or'](_0x312e3a('0x16'),'%,'+_0x63f839+',%');}));if(_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x8e')]){const _0x1eaf5f=_0x4bff40[_0x1ba49a('0x52')][_0x1ba49a('0x8e')][_0x1ba49a('0x70')]('\x5c','\x5c\x5c')[_0x1ba49a('0x70')]('\x27\x27',_0x1ba49a('0x53'));qs['isNumeric'](_0x1eaf5f)?_0x2909a2['or'](_0x1ba49a('0x17'),_0x1eaf5f+'%')['or']('i.phone\x20LIKE\x20?',_0x1eaf5f+'%'):_0x2909a2['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x1ba49a('0x93')](_0x1eaf5f))['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x1eaf5f+'%');}}_0x9bc8d1[_0x1ba49a('0x71')](_0x2909a2),_0x9bc8d1[_0x1ba49a('0x5a')](_0x1ba49a('0xb1'));let _0x440849={'type':db[_0x1ba49a('0x44')]['QueryTypes'][_0x1ba49a('0x24')],'raw':!![]};const _0x2f64b3=_0x9bc8d1[_0x1ba49a('0xb')]();_0x2f64b3[_0x1ba49a('0x11')](_0x1ba49a('0xb1')),_0x2f64b3[_0x1ba49a('0x11')](_0x1ba49a('0x5c'),'unreadMessages'),_0xa72c23[_0x1ba49a('0xb5')]&&_0xa72c23[_0x1ba49a('0xb5')][_0x1ba49a('0x62')](function(_0x1312dd){const _0xe4cc14=_0x1ba49a;_0x9bc8d1[_0xe4cc14('0xb5')]('i.'+_0x1312dd[0x0],_0x1312dd[0x1]==='DESC'?![]:!![]);}),!_[_0x1ba49a('0x74')](_0x1722fe)&&(_0x9bc8d1['having'](_0x1c4351),_0x2f64b3['where'](_0x1ba49a('0x10'),_0x1722fe)),Promise[_0x1ba49a('0x91')]()[_0x1ba49a('0x23')](function(){const _0x4aafcf=_0x1ba49a;if(!_0x38a15c){if(_0x4bff40[_0x4aafcf('0x52')][_0x4aafcf('0x99')]||_0x4bff40[_0x4aafcf('0x52')][_0x4aafcf('0xc8')])return;_0x2f64b3[_0x4aafcf('0x71')]('i.WhatsappAccountId\x20IS\x20NOT\x20NULL'),_0x9bc8d1[_0x4aafcf('0x71')](_0x4aafcf('0x6a'));return;}return _0x4bff40[_0x4aafcf('0x9f')][_0x4aafcf('0xa6')]({'attributes':['id'],'raw':!![]})[_0x4aafcf('0x23')](function(_0x3cac00){const _0x5dad13=_0x4aafcf;_[_0x5dad13('0x74')](_0x3cac00)?(_0x2f64b3[_0x5dad13('0x71')](_0x5dad13('0xd3')),_0x9bc8d1[_0x5dad13('0x71')]('i.WhatsappAccountId\x20IS\x20NULL')):(_0x2f64b3[_0x5dad13('0x71')](_0x5dad13('0x9a'),_[_0x5dad13('0x2b')](_0x3cac00,'id')),_0x9bc8d1[_0x5dad13('0x71')](_0x5dad13('0x9a'),_[_0x5dad13('0x2b')](_0x3cac00,'id')));});})['then'](function(){const _0x3aa620=_0x1ba49a;db[_0x3aa620('0xaa')]['query'](_0x2f64b3[_0x3aa620('0x1d')](),_0x440849)[_0x3aa620('0x23')](function(_0x136720){const _0x3aeae2=_0x3aa620;_0x1b036d[_0x3aeae2('0xa9')]=_0x136720[_0x3aeae2('0xcf')];if(_0x1b036d[_0x3aeae2('0xa9')]===0x0)return[];return db['sequelize']['query'](_0x51a4de[_0x3aeae2('0x1d')](),_0x440849)['then'](function(_0x4ece34){const _0x3c8d24=_0x3aeae2;_0x20d93d=_[_0x3c8d24('0xd5')](_0x4ece34,'id'),_0x440849=_['merge'](_0x440849,{'model':db['WhatsappInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x4bff40['query']['fields']?_0xa72c23[_0x3c8d24('0xa4')][_0x3c8d24('0x62')](function(_0x4fff9b){_0x9bc8d1['field']('i.'+_0x4fff9b);}):(_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0x5c'),_0x3c8d24('0x63')),_0x9bc8d1[_0x3c8d24('0x11')]('a.key',_0x3c8d24('0xca')),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0x64'),_0x3c8d24('0x92')),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0x6d')),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0xbf'),_0x3c8d24('0xc2')),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0xc1'),_0x3c8d24('0xb7')),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0x88'),_0x3c8d24('0xc5')),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0xd'),'Contact.phone'),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0x48'),'Contact.mobile'),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0x13'),_0x3c8d24('0x54')),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0x78'),_0x3c8d24('0x67')),_0x9bc8d1[_0x3c8d24('0x11')](_0x3c8d24('0x66'),'Owner.internal'),_0x9bc8d1['field'](_0x3c8d24('0x29'),'TagIds'));if(_0xa72c23['limit'])_0x9bc8d1[_0x3c8d24('0x3b')](_0xa72c23['limit']);if(_0xa72c23[_0x3c8d24('0x9b')])_0x9bc8d1[_0x3c8d24('0x9b')](_0xa72c23[_0x3c8d24('0x9b')]);return db['sequelize'][_0x3c8d24('0x52')](_0x9bc8d1[_0x3c8d24('0x1d')](),_0x440849);})['then'](function(_0x5a73fc){const _0x46a795=_0x3aeae2;return _0x4af369['where']('ui.WhatsappInteractionId\x20IN\x20?',_[_0x46a795('0x2b')](_0x5a73fc,'id')),db['sequelize'][_0x46a795('0x52')](_0x4af369[_0x46a795('0x1d')](),_0x440849)[_0x46a795('0x23')](function(_0x5d831c){const _0x22e183=_0x46a795,_0x3b13aa=_['groupBy'](_0x5d831c,_0x22e183('0x51')),_0x48a073=[];return _0x5a73fc[_0x22e183('0x62')](function(_0x19bfbd){const _0x1f11cc=_0x22e183;_0x48a073[_0x1f11cc('0x4b')](updateWhatsappInteraction(_0x19bfbd,_0x20d93d,_0x3b13aa));}),Promise[_0x22e183('0x8f')](_0x48a073);});});})[_0x3aa620('0x23')](function(_0xbe2bb0){const _0x284064=_0x3aa620;return _0x1b036d[_0x284064('0xa')]=_0xbe2bb0,_0x1b036d;})[_0x3aa620('0x23')](respondWithFilteredResult(_0x3c86cf,_0xa72c23));})[_0x1ba49a('0x30')](handleError(_0x3c86cf,null));},exports[_0x244621('0x98')]=function(_0x4225cc,_0x202c03){const _0x22fa58=_0x244621;let _0x3960bd={'raw':![],'where':{'id':_0x4225cc[_0x22fa58('0x4')]['id']}};const _0x3ab3f0={};return _0x3ab3f0['model']=_[_0x22fa58('0x46')](db['WhatsappInteraction'][_0x22fa58('0x81')]),_0x3ab3f0[_0x22fa58('0x52')]=_[_0x22fa58('0x46')](_0x4225cc[_0x22fa58('0x52')]),_0x3ab3f0['filters']=_[_0x22fa58('0x90')](_0x3ab3f0[_0x22fa58('0x57')],_0x3ab3f0[_0x22fa58('0x52')]),_0x3960bd[_0x22fa58('0xa4')]=_[_0x22fa58('0x90')](_0x3ab3f0[_0x22fa58('0x57')],qs['fields'](_0x4225cc['query']['fields'])),_0x3960bd[_0x22fa58('0xa4')]=_0x3960bd['attributes'][_0x22fa58('0xcf')]?_0x3960bd[_0x22fa58('0xa4')]:_0x3ab3f0[_0x22fa58('0x57')],_0x4225cc['query']['includeAll']&&(_0x3960bd[_0x22fa58('0x1a')]=[{'all':!![]}]),_0x3960bd=_[_0x22fa58('0x8d')]({},_0x3960bd,_0x4225cc[_0x22fa58('0xc0')]),db[_0x22fa58('0x2f')][_0x22fa58('0x28')](_0x3960bd)['then'](handleEntityNotFound(_0x202c03,null))[_0x22fa58('0x23')](respondWithResult(_0x202c03,null))['catch'](handleError(_0x202c03,null));},exports[_0x244621('0x6c')]=function(_0x350511,_0x4c5d9e){const _0x3b975b=_0x244621;return db[_0x3b975b('0x2f')][_0x3b975b('0x6c')](_0x350511['body'],{})[_0x3b975b('0x23')](respondWithResult(_0x4c5d9e,0xc9))['catch'](handleError(_0x4c5d9e,null));},exports['update']=function(_0x14ad2c,_0x3ba6f4){const _0x1f1ff1=_0x244621;return _0x14ad2c[_0x1f1ff1('0x95')]['id']&&delete _0x14ad2c[_0x1f1ff1('0x95')]['id'],db[_0x1f1ff1('0x2f')]['findOne']({'where':{'id':_0x14ad2c[_0x1f1ff1('0x4')]['id']}})[_0x1f1ff1('0x23')](handleEntityNotFound(_0x3ba6f4,null))['then'](saveUpdates(_0x14ad2c[_0x1f1ff1('0x95')],null))[_0x1f1ff1('0x23')](respondWithResult(_0x3ba6f4,null))[_0x1f1ff1('0x30')](handleError(_0x3ba6f4,null));},exports[_0x244621('0x7')]=function(_0x4333c5,_0x12b32b){const _0x1e092a=_0x244621;return db[_0x1e092a('0x2f')][_0x1e092a('0x28')]({'where':{'id':_0x4333c5['params']['id']}})[_0x1e092a('0x23')](handleEntityNotFound(_0x12b32b,null))[_0x1e092a('0x23')](removeEntity(_0x12b32b,null))[_0x1e092a('0x30')](handleError(_0x12b32b,null));},exports[_0x244621('0x1e')]=function(_0x3f763a,_0x1b25a7){const _0x1e9815=_0x244621;return db[_0x1e9815('0x2f')][_0x1e9815('0x1e')]()['then'](respondWithResult(_0x1b25a7,null))[_0x1e9815('0x30')](handleError(_0x1b25a7,null));},exports[_0x244621('0xb4')]=function(_0x4182c5,_0x43e640){const _0x4f1fbb=_0x244621;return db[_0x4f1fbb('0xd6')][_0x4f1fbb('0x28')]({'where':{'id':_0x4182c5[_0x4f1fbb('0x4')]['id']}})[_0x4f1fbb('0x23')](function(_0x1bb43){const _0x227865=_0x4f1fbb;if(_0x1bb43)return _0x1bb43['addMessage'](_0x4182c5[_0x227865('0x95')][_0x227865('0x4e')],{'through':_[_0x227865('0x20')](_0x4182c5[_0x227865('0x95')],[_0x227865('0x4e'),'id'])});})['then'](respondWithResult(_0x43e640,null))['catch'](handleError(_0x43e640,null));},exports['getMessages']=function(_0x401d33,_0x1a41a8){const _0xeb9d69=_0x244621;let _0x1f158b={'raw':![],'where':{}};const _0x56a895={},_0x5c6ce3={'count':0x0,'rows':[]};return db[_0xeb9d69('0x2f')][_0xeb9d69('0x28')]({'where':{'id':_0x401d33[_0xeb9d69('0x4')]['id']}})[_0xeb9d69('0x23')](handleEntityNotFound(_0x1a41a8,null))[_0xeb9d69('0x23')](function(_0x1753fe){const _0xa29dd9=_0xeb9d69;if(_0x1753fe){_0x56a895['model']=_[_0xa29dd9('0x46')](db[_0xa29dd9('0xd6')][_0xa29dd9('0x81')]),_0x56a895['query']=_[_0xa29dd9('0x46')](_0x401d33[_0xa29dd9('0x52')]),_0x56a895[_0xa29dd9('0x34')]=_['intersection'](_0x56a895[_0xa29dd9('0x57')],_0x56a895[_0xa29dd9('0x52')]),_0x1f158b[_0xa29dd9('0xa4')]=_[_0xa29dd9('0x90')](_0x56a895[_0xa29dd9('0x57')],qs[_0xa29dd9('0x60')](_0x401d33[_0xa29dd9('0x52')][_0xa29dd9('0x60')])),_0x1f158b[_0xa29dd9('0xa4')]=_0x1f158b[_0xa29dd9('0xa4')][_0xa29dd9('0xcf')]?_0x1f158b['attributes']:_0x56a895['model'];typeof _0x401d33[_0xa29dd9('0x52')][_0xa29dd9('0xc6')]==='undefined'&&(_0x1f158b[_0xa29dd9('0x3b')]=qs[_0xa29dd9('0x3b')](_0x401d33[_0xa29dd9('0x52')]['limit']),_0x1f158b['offset']=qs[_0xa29dd9('0x9b')](_0x401d33[_0xa29dd9('0x52')][_0xa29dd9('0x9b')]));_0x1f158b[_0xa29dd9('0xb5')]=qs[_0xa29dd9('0x77')](_0x401d33[_0xa29dd9('0x52')][_0xa29dd9('0x77')]),_0x1f158b['where']=qs[_0xa29dd9('0x34')](_[_0xa29dd9('0x8')](_0x401d33[_0xa29dd9('0x52')],_0x56a895[_0xa29dd9('0x34')])),_0x1f158b[_0xa29dd9('0x71')][_0xa29dd9('0x51')]=_0x1753fe['id'];_0x401d33['query'][_0xa29dd9('0x8e')]&&(_0x1f158b['where']=_[_0xa29dd9('0x8d')](_0x1f158b[_0xa29dd9('0x71')],{[Op['or']]:_[_0xa29dd9('0x2b')](_0x1f158b[_0xa29dd9('0xa4')],function(_0x10170d){const _0x3cf63c=_0xa29dd9,_0x212f18={};return _0x212f18[_0x10170d]={[Op[_0x3cf63c('0x5f')]]:'%'+_0x401d33[_0x3cf63c('0x52')][_0x3cf63c('0x8e')]+'%'},_0x212f18;})}));if(_0x401d33[_0xa29dd9('0x52')][_0xa29dd9('0x9d')]){const _0x253dae=_0x401d33[_0xa29dd9('0x52')][_0xa29dd9('0x9d')][_0xa29dd9('0x4f')](','),_0x1fd4f2={};_0x1fd4f2[_0x253dae[0x0]]={[Op[_0xa29dd9('0xc')]]:moment(_0x253dae[0x1])[_0xa29dd9('0x45')](_0xa29dd9('0x0'))},_0x1f158b[_0xa29dd9('0x71')]=_[_0xa29dd9('0x8d')](_0x1f158b[_0xa29dd9('0x71')],_0x1fd4f2);}return _0x1f158b=_['merge']({},_0x1f158b,_0x401d33[_0xa29dd9('0xc0')]),db[_0xa29dd9('0xd6')][_0xa29dd9('0xa9')]({'where':_0x1f158b['where']})[_0xa29dd9('0x23')](function(_0x2f2cac){const _0x2b5458=_0xa29dd9;return _0x5c6ce3[_0x2b5458('0xa9')]=_0x2f2cac,_0x401d33['query']['includeAll']&&(_0x1f158b['include']=[{'all':!![]}]),db['WhatsappMessage']['findAll'](_0x1f158b);})['then'](function(_0x34d6c7){return _0x5c6ce3['rows']=_0x34d6c7,_0x5c6ce3;});}})['then'](respondWithFilteredResult(_0x1a41a8,_0x1f158b))[_0xeb9d69('0x30')](handleError(_0x1a41a8,null));},exports['addTags']=function(_0x41fdc9,_0x8c2e75){const _0x4feb84=_0x244621;return db[_0x4feb84('0x2f')][_0x4feb84('0x28')]({'where':{'id':_0x41fdc9[_0x4feb84('0x4')]['id']}})[_0x4feb84('0x23')](function(_0x1c00da){const _0x3890c2=_0x4feb84;if(_0x1c00da)return _0x1c00da[_0x3890c2('0xa5')](_0x41fdc9[_0x3890c2('0x95')][_0x3890c2('0x4e')],{'through':_[_0x3890c2('0x20')](_0x41fdc9['body'],[_0x3890c2('0x4e'),'id'])})[_0x3890c2('0x23')](function(){const _0xffe2b8=_0x3890c2;return db['Tag'][_0xffe2b8('0xc4')]({'attributes':['id',_0xffe2b8('0x65'),'color'],'where':{'id':_0x41fdc9['body']['ids']}});})[_0x3890c2('0x23')](function(_0x438918){const _0x507f62=_0x3890c2;return socket['emit'](_0x507f62('0xab'),{'id':Number(_0x41fdc9['params']['id']),'tags':_0x438918||[]}),{'id':Number(_0x41fdc9[_0x507f62('0x4')]['id']),'tags':_0x438918||[]};});})['then'](respondWithResult(_0x8c2e75,null))[_0x4feb84('0x30')](handleError(_0x8c2e75,null));},exports[_0x244621('0xcb')]=function(_0x169891,_0x515cd7){const _0x2d26bd=_0x244621;return db[_0x2d26bd('0x2f')][_0x2d26bd('0x28')]({'where':{'id':_0x169891[_0x2d26bd('0x4')]['id']}})[_0x2d26bd('0x23')](handleEntityNotFound(_0x515cd7,null))[_0x2d26bd('0x23')](function(_0x37e092){const _0x1d20e7=_0x2d26bd;if(_0x37e092)return _0x37e092[_0x1d20e7('0xcb')](_0x169891[_0x1d20e7('0x52')][_0x1d20e7('0x4e')]);})[_0x2d26bd('0x23')](respondWithStatusCode(_0x515cd7,null))[_0x2d26bd('0x30')](handleError(_0x515cd7,null));},exports[_0x244621('0x8b')]=function(_0x14e53b,_0x3701a4){const _0x3c519e=_0x244621,_0x283028=moment()[_0x3c519e('0x25')]()[_0x3c519e('0x1d')](),_0x24f64e=path[_0x3c519e('0x9e')](config[_0x3c519e('0xb8')],'server',_0x3c519e('0xbb'),_0x3c519e('0x89')),_0x18ea63=path['join'](config[_0x3c519e('0xb8')],'server','files',_0x3c519e('0x4a')),_0xd4b613=path['join'](_0x24f64e,_0x283028),_0x2fdac7=util['format'](_0x3c519e('0x56'),_0x14e53b[_0x3c519e('0x4')]['id'],_0x283028),_0x57e6f2=path[_0x3c519e('0x9e')](_0x24f64e,_0x2fdac7),_0x92d3ba=[];_0x92d3ba[_0x3c519e('0x4b')]({'model':db['User'],'as':_0x3c519e('0x86'),'attributes':['id',_0x3c519e('0xf')],'raw':!![]}),_0x92d3ba[_0x3c519e('0x4b')]({'model':db[_0x3c519e('0x85')],'as':_0x3c519e('0x58'),'attributes':['id',_0x3c519e('0xa8'),'lastName'],'raw':!![]});_0x14e53b[_0x3c519e('0x52')]['attachments']&&_0x92d3ba[_0x3c519e('0x4b')]({'model':db['Attachment'],'as':'Attachment','raw':!![]});const _0x415c7e=[{'model':db['WhatsappMessage'],'as':'Messages','attributes':['id','body',_0x3c519e('0xad'),_0x3c519e('0xb3'),'secret',_0x3c519e('0x1f')],'include':_0x92d3ba}];return _0x415c7e['push']({'model':db[_0x3c519e('0x37')],'as':_0x3c519e('0x3d'),'attributes':['id',_0x3c519e('0x65')]}),_0x415c7e[_0x3c519e('0x4b')]({'model':db['User'],'as':'Owner','attributes':['id','fullname']}),db[_0x3c519e('0x2f')][_0x3c519e('0x28')]({'where':{'id':_0x14e53b[_0x3c519e('0x4')]['id']},'include':_0x415c7e})[_0x3c519e('0x23')](handleEntityNotFound(_0x3701a4,null))[_0x3c519e('0x23')](function(_0x48ff59){const _0x80daf7=_0x3c519e;if(_0x48ff59){const _0x1bdafe=_0x48ff59['get']({'plain':!![]});fs[_0x80daf7('0x14')](_0xd4b613);const _0x424d75={'format':'A4','border':_0x80daf7('0x75'),'header':{'height':_0x80daf7('0x1b'),'contents':{'first':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
Interaction\x20Transcript
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}},'footer':{'height':_0x80daf7('0xa2'),'contents':{'default':util[_0x80daf7('0x45')](_0x80daf7('0x18'),util[_0x80daf7('0x45')](_0x80daf7('0x94'),_0x80daf7('0x79'),_0x1bdafe['id']),moment()[_0x80daf7('0x45')](_0x80daf7('0x5d'))[_0x80daf7('0x1d')]())}}},_0x28e721={'channel':_0x80daf7('0x79'),'account':_0x1bdafe[_0x80daf7('0x3d')][_0x80daf7('0x65')],'agent':_0x1bdafe[_0x80daf7('0x39')]?_0x1bdafe[_0x80daf7('0x39')][_0x80daf7('0xf')]:'N.A.','createdAt':moment(_0x1bdafe[_0x80daf7('0xad')])['format']('YYYY-MM-DD\x20HH:mm:ss')['toString'](),'closedAt':_0x1bdafe[_0x80daf7('0x83')]?moment(_0x1bdafe[_0x80daf7('0xc3')])['format'](_0x80daf7('0x0'))[_0x80daf7('0x1d')]():'','disposition':_0x1bdafe[_0x80daf7('0x6')],'messages':_(_0x1bdafe[_0x80daf7('0xa0')])[_0x80daf7('0x8e')]({'secret':![]})[_0x80daf7('0x2b')](function(_0x4a20da){const _0x82ad1e=_0x80daf7;if(_0x4a20da[_0x82ad1e('0xc9')]){const _0x15ce17=path[_0x82ad1e('0x9e')](_0x18ea63,_0x4a20da[_0x82ad1e('0xc9')][_0x82ad1e('0x33')]);fs[_0x82ad1e('0x5')](_0x15ce17)&&fs['createReadStream'](_0x15ce17)[_0x82ad1e('0x21')](fs[_0x82ad1e('0xd2')](path[_0x82ad1e('0x9e')](_0xd4b613,_0x4a20da[_0x82ad1e('0xc9')][_0x82ad1e('0x33')])));}return{'date':moment(_0x4a20da['createdAt'])['format']('YYYY-MM-DD\x20HH:mm:ss')['toString'](),'sender':_0x4a20da[_0x82ad1e('0xb3')]===_0x82ad1e('0x2d')?_0x4a20da[_0x82ad1e('0x86')]?_0x4a20da[_0x82ad1e('0x86')][_0x82ad1e('0xf')]:_0x82ad1e('0x96'):_0x4a20da[_0x82ad1e('0x58')][_0x82ad1e('0xa8')]+(_0x4a20da['Contact'][_0x82ad1e('0x7d')]?'\x20'+_0x4a20da['Contact'][_0x82ad1e('0x7d')]:''),'body':_0x4a20da[_0x82ad1e('0xc9')]?_0x4a20da['Attachment'][_0x82ad1e('0x33')]:_0x4a20da[_0x82ad1e('0x95')],'direction':_0x4a20da[_0x82ad1e('0xb3')]===_0x82ad1e('0x2d')?'A':'C','secret':_0x4a20da[_0x82ad1e('0x55')],'read':_0x4a20da['read'],'attachment':_0x4a20da[_0x82ad1e('0xc9')]};})[_0x80daf7('0x5b')]()};return ejs[_0x80daf7('0xae')](path['join'](config[_0x80daf7('0xb8')],_0x80daf7('0x6e'),_0x80daf7('0x19'),'downloadInteraction.html'),{'interaction':_0x28e721})[_0x80daf7('0x23')](function(_0x2de2fc){return new Promise(function(_0x5e9f43,_0x1ca123){const _0x4e57a7=a794_0x24e6;pdf[_0x4e57a7('0x6c')](_0x2de2fc,_0x424d75)[_0x4e57a7('0x3a')](path[_0x4e57a7('0x9e')](_0xd4b613,'transcript-'+_0x1bdafe['id']+'-'+_0x283028+_0x4e57a7('0x7b')),function(_0x4ffee6,_0x54605d){if(_0x4ffee6)return _0x1ca123(_0x4ffee6);_0x5e9f43(_0x54605d);});});})[_0x80daf7('0x23')](function(){const _0x2eb76e=_0x80daf7;return new Promise(function(_0x572e7f,_0x5b24a2){zipdir(_0xd4b613,{'saveTo':_0x57e6f2},function(_0x2130b8,_0x385bd2){if(_0x2130b8)return _0x5b24a2(_0x2130b8);return _0x572e7f(_0x385bd2);});})[_0x2eb76e('0x23')](function(){return new Promise(function(_0x19f995,_0x61d91f){rimraf(_0xd4b613,function(_0x114703){if(_0x114703)_0x61d91f(_0x114703);return _0x19f995();});});})[_0x2eb76e('0x23')](function(){const _0x2643fb=_0x2eb76e;return _0x3701a4[_0x2643fb('0x8b')](_0x57e6f2,_0x2fdac7,function(_0x87cd8f){const _0x2ff008=_0x2643fb;_0x87cd8f?console[_0x2ff008('0x40')](_0x2ff008('0x2e'),_0x87cd8f):fs['unlinkSync'](_0x57e6f2);});});});}else return _0x3701a4[_0x80daf7('0x27')](0xc8);})[_0x3c519e('0x30')](handleError(_0x3701a4,null));}; \ No newline at end of file +const a794_0x5059=['c.mobile','findAll','UserId','transcript-','`unreadMessages`\x20=\x200','user_has_whatsapp_interactions','getWhatsappAccounts','%s\x20#%d','../../rediscache','gte','10px','System','i.*','getFullTextValue','Messages','root','me.WhatsappInteractionId\x20=\x20i.id','parse','attributes','closed','basename','c.fax','N.A.','o.id\x20=\x20i.UserId','Contact.email','../../mysqldb','clone','i.WhatsappAccountId\x20IN\x20?','value','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','secret','replace','left_join','journey','../../config/logger','model','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','`\x20=\x200','util','direction','WhatsappAccountId','WhatsappInteraction','WhatsappInteractionId','it.WhatsappInteractionId\x20=\x20i.id','lastName','emit','having','rawAttributes','users','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','group','c.firstName','getMessages','t.id\x20=\x20it.TagId','createReadStream','closedAt','isEmpty','mkdirSync','describe','destroy','sequelize','u.id\x20=\x20ui.UserId','YYYY-MM-DD\x20HH:mm:ss','groupBy','sort','length','params','map','where','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','Whatsapp','filters','offset','expr','ui.WhatsappInteractionId\x20IN\x20?','index','join','whatsappInteractionTags:save','whatsapp_messages','find','tag','split','.pdf','i.WhatsappAccountId\x20IS\x20NULL','attachments','options','squel','server','Account.mandatoryDisposition','query','isNumeric','createdAt','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
Interaction\x20Transcript
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','renderFile','null','firstName','c.email','search','html-pdf','YYYY-MM-DD','c.lastName','o.internal','o.fullname','merge','undefined','a.mandatoryDisposition','keyBy','omit','views','catch','Contact','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','sendStatus','disposition','nolimit','downloadInteraction.html','Owner','$substring','i.id','SELECT','error','$gte','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','resolve','operator','pipe','Users','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','whatsapp_interaction_has_tags','Contact.fax','pick','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','body','findOne','tools_tags','union','Tags','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','fields','Contact.firstName','\x20IS\x20NULL','user','ContactId','Contact.lastName','keys','create','ids','register','color','WhatsappAccount','files','Content-Range','conditions','end','u.id','push','WhatsappMessage','update','setTags','parseSearch','count','toString','u.fullname','User','whatsapp_accounts','read','../../components/parsers/advancedSearch','type','buildExpression','field','select','isArray','order','like','filter','../../components/parsers/qs','get','limit','Owner.internal','whatsapp_interactions','Account','addMessage','fullname','Contact.phone','a.id\x20=\x20i.WhatsappAccountId','i.id\x20LIKE\x20?','show','Contact.mobile','Tag','text','c.phone','all','\x20=\x20?','name','QueryTypes','./whatsappInteraction.socket','forEach','download','from','existsSync','cm_contacts','intersection','some','ui.WhatsappInteractionId','then','lodash','TagIds','format','concat','removeTags','start','unreadMessages','Attachment','includeAll','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','out','$lte','include','compact','DESC','status','rows','path'];(function(_0x1968aa,_0x5059c4){const _0xc6e937=function(_0x18b814){while(--_0x18b814){_0x1968aa['push'](_0x1968aa['shift']());}};_0xc6e937(++_0x5059c4);}(a794_0x5059,0xb2));const a794_0xc6e9=function(_0x1968aa,_0x5059c4){_0x1968aa=_0x1968aa-0x0;let _0xc6e937=a794_0x5059[_0x1968aa];return _0xc6e937;};const _0x3586d7=a794_0xc6e9;'use strict';const pdf=require(_0x3586d7('0x8f')),rimraf=require('rimraf'),zipdir=require('zip-dir'),moment=require('moment'),util=require(_0x3586d7('0x53')),path=require(_0x3586d7('0x2c')),ejs=require('ejs'),fs=require('fs'),_=require(_0x3586d7('0x1b')),squel=require(_0x3586d7('0x83')),{getSocket}=require(_0x3586d7('0x35')),socket=getSocket(),qs=require(_0x3586d7('0xdc')),as=require(_0x3586d7('0xd3')),logger=require(_0x3586d7('0x4f'))('api'),config=require('../../config/environment'),db=require(_0x3586d7('0x46'))['db'],{Op}=require(_0x3586d7('0x69'));require(_0x3586d7('0x11'))[_0x3586d7('0xc0')](socket);function respondWithStatusCode(_0x18b814,_0x229d97){return _0x229d97=_0x229d97||0xcc,function(_0x40cbd6){const _0x421c7a=a794_0xc6e9;if(_0x40cbd6)return _0x18b814['sendStatus'](_0x229d97);return _0x18b814[_0x421c7a('0x2a')](_0x229d97)['end']();};}function respondWithResult(_0x669d2b,_0xbbcf2c){return _0xbbcf2c=_0xbbcf2c||0xc8,function(_0x4c7285){const _0x20f9ae=a794_0xc6e9;if(_0x4c7285)return _0x669d2b[_0x20f9ae('0x2a')](_0xbbcf2c)['json'](_0x4c7285);};}function respondWithFilteredResult(_0x43d680,_0x5cdc05){return function(_0x132d18){const _0x2726c7=a794_0xc6e9;if(_0x132d18){const _0x1024be=_0x132d18[_0x2726c7('0xcd')],_0x1ba1f1=_0x5cdc05['offset'];let _0x4d8bc8=_0x5cdc05[_0x2726c7('0x75')]+_0x5cdc05['limit'],_0xc42600;return _0x4d8bc8>=_0x1024be?(_0x4d8bc8=_0x1024be,_0xc42600=0xc8):_0xc42600=0xce,_0x43d680[_0x2726c7('0x2a')](_0xc42600),_0x43d680['set'](_0x2726c7('0xc4'),_0x1ba1f1+'-'+_0x4d8bc8+'/'+_0x1024be)['json'](_0x132d18);}return null;};}function saveUpdates(_0x955869){return function(_0x119519){const _0x265d25=a794_0xc6e9;if(_0x119519)return _0x119519[_0x265d25('0xca')](_0x955869)['then'](function(_0x2b3dfc){return _0x2b3dfc;});return null;};}function removeEntity(_0x12a654){return function(_0x42fb2c){const _0x1beb05=a794_0xc6e9;if(_0x42fb2c)return _0x42fb2c['destroy']()[_0x1beb05('0x1a')](function(){const _0x4140c1=_0x1beb05;_0x12a654[_0x4140c1('0x2a')](0xcc)[_0x4140c1('0xc6')]();});};}function handleEntityNotFound(_0x950607){return function(_0x514bb9){return!_0x514bb9&&_0x950607['sendStatus'](0x194),_0x514bb9;};}function handleError(_0x1fdfd2,_0x5033a1){return _0x5033a1=_0x5033a1||0x1f4,function(_0x2be301){const _0x4e1668=a794_0xc6e9;logger[_0x4e1668('0xa5')](_0x2be301['stack']),_0x2be301[_0x4e1668('0xf')]&&delete _0x2be301[_0x4e1668('0xf')],_0x1fdfd2[_0x4e1668('0x2a')](_0x5033a1)['send'](_0x2be301);};}function getInteractionUsers(_0x405aeb,_0x37fbca){return new Promise(function(_0x2bebb1,_0x509d36){const _0x130daa=a794_0xc6e9;try{_0x37fbca[_0x405aeb['id']]&&(_0x405aeb[_0x130daa('0xab')]=_['map'](_0x37fbca[_0x405aeb['id']],function(_0x307983){const _0x1789f4=_0x130daa;return{'id':_0x307983['id'],'fullname':_0x307983[_0x1789f4('0x4')]};}));}catch(_0x133f15){_0x509d36(_0x133f15);}_0x2bebb1(_0x405aeb);});}function getInteractionTags(_0x4f84bc,_0x1c62e5){return new Promise(function(_0x17692d,_0x39923c){const _0x34f934=a794_0xc6e9;try{_0x4f84bc['TagIds']&&(_0x4f84bc[_0x34f934('0xb5')]=[],_0x4f84bc[_0x34f934('0x1c')]['split'](',')[_0x34f934('0x12')](function(_0x5da4fe){const _0x431ccb=_0x34f934;_0x4f84bc[_0x431ccb('0xb5')][_0x431ccb('0xc8')](_0x1c62e5[_0x5da4fe]);})),delete _0x4f84bc[_0x34f934('0x1c')];}catch(_0x174145){_0x39923c(_0x174145);}_0x17692d(_0x4f84bc);});}function updateWhatsappInteraction(_0x26a598,_0x57a1fa,_0x1b0877){return new Promise(function(_0x33a023,_0xf0af75){const _0x1473f8=a794_0xc6e9;return getInteractionUsers(_0x26a598,_0x1b0877)[_0x1473f8('0x1a')](function(_0x1b1a18){return getInteractionTags(_0x1b1a18,_0x57a1fa);})[_0x1473f8('0x1a')](function(_0x303976){_0x33a023(_0x303976);})[_0x1473f8('0x9a')](function(_0x3fddee){_0xf0af75(_0x3fddee);});});}exports[_0x3586d7('0x78')]=function(_0x10e482,_0x2ced08){const _0x398aed=_0x3586d7,_0x390471={},_0x2b3555={},_0x467084={'count':0x0,'rows':[]},_0x28186b=_['map'](db[_0x398aed('0x56')][_0x398aed('0x5c')],function(_0x24637f){const _0x49d40c=_0x398aed;return{'name':_0x24637f['fieldName'],'type':_0x24637f[_0x49d40c('0xd4')]['key']};});_0x2b3555['model']=_[_0x398aed('0x70')](_0x28186b,_0x398aed('0xf')),_0x2b3555[_0x398aed('0x86')]=_[_0x398aed('0xbd')](_0x10e482[_0x398aed('0x86')]),_0x2b3555[_0x398aed('0x74')]=_[_0x398aed('0x17')](_0x2b3555[_0x398aed('0x50')],_0x2b3555[_0x398aed('0x86')]),_0x390471[_0x398aed('0x3f')]=_['intersection'](_0x2b3555['model'],qs['fields'](_0x10e482['query'][_0x398aed('0xb7')])),_0x390471[_0x398aed('0x3f')]=_0x390471[_0x398aed('0x3f')][_0x398aed('0x6e')]?_0x390471['attributes']:_0x2b3555['model'];typeof _0x10e482[_0x398aed('0x86')][_0x398aed('0x9f')]===_0x398aed('0x95')&&(_0x390471['limit']=qs[_0x398aed('0xde')](_0x10e482['query']['limit']),_0x390471[_0x398aed('0x75')]=qs['offset'](_0x10e482[_0x398aed('0x86')][_0x398aed('0x75')]));_0x390471[_0x398aed('0xd9')]=qs['sort'](_0x10e482[_0x398aed('0x86')][_0x398aed('0x6d')]),_0x390471[_0x398aed('0x71')]=qs['filters'](_[_0x398aed('0xaf')](_0x10e482[_0x398aed('0x86')],_0x2b3555[_0x398aed('0x74')]),_0x28186b);let _0x2b94ec=[];const _0x2c64cc=squel[_0x398aed('0xd7')]()[_0x398aed('0xd6')]('id')[_0x398aed('0xd6')]('name')['field'](_0x398aed('0xc1'))[_0x398aed('0x14')](_0x398aed('0xb3')),_0x58116b=squel[_0x398aed('0xd7')]()[_0x398aed('0xd6')](_0x398aed('0xc7'))[_0x398aed('0xd6')](_0x398aed('0xcf'))[_0x398aed('0xd6')](_0x398aed('0x19'))[_0x398aed('0x14')](_0x398aed('0x32'),'ui')[_0x398aed('0x4d')](_0x398aed('0x5d'),'u',_0x398aed('0x6a')),_0x16b008=squel[_0x398aed('0xd7')]()[_0x398aed('0x14')](_0x398aed('0x1'),'i')[_0x398aed('0x4d')](_0x398aed('0x16'),'c',_0x398aed('0x5e'))[_0x398aed('0x4d')](_0x398aed('0x5d'),'o',_0x398aed('0x44'))['left_join'](_0x398aed('0xd1'),'a',_0x398aed('0x6'))[_0x398aed('0x4d')](_0x398aed('0x7b'),'me',_0x398aed('0x3d'))[_0x398aed('0x4d')](_0x398aed('0xad'),'it',_0x398aed('0x58'))[_0x398aed('0x4d')]('tools_tags','t',_0x398aed('0x62')),_0x374d20=squel[_0x398aed('0x76')]();let _0x132942=[];const _0xb76e9c=squel['expr']();let _0x43c461;if(_0x10e482[_0x398aed('0x86')][_0x398aed('0x8e')]){_0x43c461=as[_0x398aed('0xcc')](_0x10e482[_0x398aed('0x86')][_0x398aed('0x8e')]);const _0x260c9c=_0x43c461['sqlOperator'];for(let _0x23bfd9=0x0;_0x23bfd9<_0x43c461[_0x398aed('0xc5')][_0x398aed('0x6e')];_0x23bfd9++){const _0xa6cee0=_0x43c461[_0x398aed('0xc5')][_0x23bfd9],_0x141a52='i';let _0x4ac5cd,_0x4a9cab=_[_0x398aed('0x7c')](_0x28186b,[_0x398aed('0xf'),_0xa6cee0[_0x398aed('0xd6')]]);if(!_0x4a9cab)switch(_0xa6cee0[_0x398aed('0xd6')]){case _0x398aed('0x21'):_0xa6cee0[_0x398aed('0x49')]==0x1?_0x16b008[_0x398aed('0x5b')]('`'+_0xa6cee0[_0x398aed('0xd6')]+_0x398aed('0x52')):_0x16b008[_0x398aed('0x5b')]('`'+_0xa6cee0['field']+'`\x20>\x200');break;case _0x398aed('0x9b'):if(_0xa6cee0['operator']===_0x398aed('0xa2')){if(_0xa6cee0[_0x398aed('0x49')]['split']('\x20')[_0x398aed('0x6e')]>0x1)_0x374d20[_0x260c9c](_0x398aed('0x72'),qs['getFullTextValue'](_0xa6cee0[_0x398aed('0x49')]),null);else{const _0x2bf436='%'+_0xa6cee0[_0x398aed('0x49')]+'%';_0x374d20[_0x260c9c](_0x398aed('0xa7'),_0x2bf436,_0x2bf436,_0x2bf436);}}else _0x4a9cab=_['find'](_0x28186b,[_0x398aed('0xf'),_0x398aed('0xbb')]),_0xa6cee0['field']=_0x398aed('0xbb'),_0x4ac5cd=as[_0x398aed('0xd5')](_0x141a52,_0x4a9cab[_0x398aed('0xd4')],_0xa6cee0),_0x374d20[_0x260c9c](_0x4ac5cd['text'],_0x4ac5cd[_0x398aed('0x49')]['start'],_0x4ac5cd['value']['end']);break;case _0x398aed('0xa'):{const _0x16802f=_0xa6cee0[_0x398aed('0x49')][_0x398aed('0x7e')](',')[_0x398aed('0x70')](function(_0x5465da){return Number(_0x5465da);});_0x16802f[_0x398aed('0x12')](function(_0x306354){const _0x178a05=_0x398aed;_0xb76e9c['or'](_0x178a05('0xb6'),'%,'+_0x306354+',%');}),_0x132942=_[_0x398aed('0xb4')](_0x132942,_0x16802f);}break;case'User':_0xa6cee0[_0x398aed('0xa9')]==='$substring'?_0x374d20[_0x260c9c](_0x398aed('0x4a'),'%'+_0xa6cee0[_0x398aed('0x49')]+'%',null):(_0x4a9cab=_[_0x398aed('0x7c')](_0x28186b,['name',_0x398aed('0x2f')]),_0xa6cee0[_0x398aed('0xd6')]='UserId',_0x4ac5cd=as[_0x398aed('0xd5')](_0x141a52,_0x4a9cab['type'],_0xa6cee0),_0x374d20[_0x260c9c](_0x4ac5cd[_0x398aed('0xb')],_0x4ac5cd[_0x398aed('0x49')][_0x398aed('0x20')],_0x4ac5cd[_0x398aed('0x49')]['end']));break;case _0x398aed('0xb1'):_0x4ac5cd=as[_0x398aed('0xd5')]('me',null,_0xa6cee0),_0x374d20[_0x260c9c](_0x4ac5cd[_0x398aed('0xb')],_0x4ac5cd[_0x398aed('0x49')][_0x398aed('0x20')],_0x4ac5cd[_0x398aed('0x49')]['end']);break;}else _0x4ac5cd=as[_0x398aed('0xd5')](_0x141a52,_0x4a9cab[_0x398aed('0xd4')],_0xa6cee0),_0x374d20[_0x260c9c](_0x4ac5cd['text'],_0x4ac5cd['value'][_0x398aed('0x20')],_0x4ac5cd[_0x398aed('0x49')][_0x398aed('0xc6')]);}}else{const _0x3e30ed=_(_0x10e482['query'])[_0x398aed('0xbd')]()[_0x398aed('0x70')](function(_0x2d5d2f){const _0x131ec2=_0x398aed;return _[_0x131ec2('0x18')](_0x28186b,[_0x131ec2('0xf'),_0x2d5d2f])?_0x2d5d2f:undefined;})[_0x398aed('0x28')]()[_0x398aed('0x49')]();!_[_0x398aed('0x65')](_0x3e30ed)&&_0x3e30ed['forEach'](function(_0x5b7b34){const _0x55af49=_0x398aed;if(_0x5b7b34===_0x55af49('0x55'))_0x16b008[_0x55af49('0x71')](_0x55af49('0x48'),[][_0x55af49('0x1e')](_0x10e482[_0x55af49('0x86')][_0x5b7b34]));else{if(_0x5b7b34==='createdAt'){const _0x2bd502=JSON[_0x55af49('0x3e')](_0x10e482[_0x55af49('0x86')][_0x5b7b34])[_0x55af49('0xa6')],_0x57fccf=JSON['parse'](_0x10e482[_0x55af49('0x86')][_0x5b7b34])[_0x55af49('0x26')];_0x16b008['where'](_0x55af49('0x9c'),_0x2bd502,_0x57fccf);}else _0x10e482['query'][_0x5b7b34]===_0x55af49('0x8b')?_0x16b008['where']('i.'+_0x5b7b34+_0x55af49('0xb9')):_0x16b008[_0x55af49('0x71')]('i.'+_0x5b7b34+_0x55af49('0xe'),_0x10e482[_0x55af49('0x86')][_0x5b7b34]);}});_0x10e482[_0x398aed('0x86')][_0x398aed('0xd2')]&&(_0x10e482[_0x398aed('0x86')][_0x398aed('0xd2')]==0x1?_0x16b008[_0x398aed('0x5b')](_0x398aed('0x31')):_0x16b008[_0x398aed('0x5b')]('`unreadMessages`\x20>\x200'));_0x10e482[_0x398aed('0x86')][_0x398aed('0x7d')]&&(_0x132942=_[_0x398aed('0xd8')](_0x10e482[_0x398aed('0x86')]['tag'])?_0x10e482['query'][_0x398aed('0x7d')]:new Array(_0x10e482[_0x398aed('0x86')][_0x398aed('0x7d')]),_0x132942['forEach'](function(_0x5dc169){_0xb76e9c['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x5dc169+',%');}));if(_0x10e482['query'][_0x398aed('0xdb')]){const _0x282550=_0x10e482[_0x398aed('0x86')][_0x398aed('0xdb')][_0x398aed('0x4c')]('\x5c','\x5c\x5c')['replace']('\x27\x27','\x27\x27\x27\x27');qs[_0x398aed('0x87')](_0x282550)?_0x374d20['or'](_0x398aed('0x7'),_0x282550+'%')['or']('i.phone\x20LIKE\x20?',_0x282550+'%'):_0x374d20['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x398aed('0x3a')](_0x282550))['or'](_0x398aed('0x51'),_0x282550+'%');}}_0x16b008[_0x398aed('0x71')](_0x374d20),_0x16b008[_0x398aed('0x5f')](_0x398aed('0xa3'));let _0x1ed99f={'type':db['Sequelize'][_0x398aed('0x10')][_0x398aed('0xa4')],'raw':!![]};const _0x1fefaf=_0x16b008[_0x398aed('0x47')]();_0x1fefaf[_0x398aed('0xd6')](_0x398aed('0xa3')),_0x1fefaf['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x390471['order']&&_0x390471[_0x398aed('0xd9')][_0x398aed('0x12')](function(_0x12b97d){const _0x39da16=_0x398aed;_0x16b008[_0x39da16('0xd9')]('i.'+_0x12b97d[0x0],_0x12b97d[0x1]===_0x39da16('0x29')?![]:!![]);}),!_[_0x398aed('0x65')](_0x132942)&&(_0x16b008['having'](_0xb76e9c),_0x1fefaf['where']('t.id\x20IN\x20?',_0x132942)),Promise[_0x398aed('0xa8')]()[_0x398aed('0x1a')](function(){const _0x3e0130=_0x398aed;if(!_0x43c461){if(_0x10e482[_0x3e0130('0x86')][_0x3e0130('0x55')]||_0x10e482[_0x3e0130('0x86')][_0x3e0130('0x4e')])return;_0x1fefaf[_0x3e0130('0x71')]('i.WhatsappAccountId\x20IS\x20NOT\x20NULL'),_0x16b008[_0x3e0130('0x71')](_0x3e0130('0xb0'));return;}return _0x10e482[_0x3e0130('0xba')][_0x3e0130('0x33')]({'attributes':['id'],'raw':!![]})[_0x3e0130('0x1a')](function(_0x52e73c){const _0x2dee95=_0x3e0130;_[_0x2dee95('0x65')](_0x52e73c)?(_0x1fefaf[_0x2dee95('0x71')](_0x2dee95('0x80')),_0x16b008[_0x2dee95('0x71')](_0x2dee95('0x80'))):(_0x1fefaf[_0x2dee95('0x71')](_0x2dee95('0x48'),_[_0x2dee95('0x70')](_0x52e73c,'id')),_0x16b008[_0x2dee95('0x71')](_0x2dee95('0x48'),_[_0x2dee95('0x70')](_0x52e73c,'id')));});})[_0x398aed('0x1a')](function(){const _0x5c4e4e=_0x398aed;db[_0x5c4e4e('0x69')]['query'](_0x1fefaf[_0x5c4e4e('0xce')](),_0x1ed99f)[_0x5c4e4e('0x1a')](function(_0x55dd0d){const _0x13de64=_0x5c4e4e;_0x467084['count']=_0x55dd0d[_0x13de64('0x6e')];if(_0x467084['count']===0x0)return[];return db[_0x13de64('0x69')][_0x13de64('0x86')](_0x2c64cc['toString'](),_0x1ed99f)['then'](function(_0x853af8){const _0x2590c8=_0x13de64;_0x2b94ec=_[_0x2590c8('0x97')](_0x853af8,'id'),_0x1ed99f=_['merge'](_0x1ed99f,{'model':db[_0x2590c8('0x56')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x10e482[_0x2590c8('0x86')][_0x2590c8('0xb7')]?_0x390471[_0x2590c8('0x3f')][_0x2590c8('0x12')](function(_0x438de1){const _0x27c39b=_0x2590c8;_0x16b008[_0x27c39b('0xd6')]('i.'+_0x438de1);}):(_0x16b008[_0x2590c8('0xd6')](_0x2590c8('0xac'),_0x2590c8('0x21')),_0x16b008[_0x2590c8('0xd6')]('a.key','Account.key'),_0x16b008[_0x2590c8('0xd6')](_0x2590c8('0x96'),_0x2590c8('0x85')),_0x16b008[_0x2590c8('0xd6')](_0x2590c8('0x39')),_0x16b008['field'](_0x2590c8('0x60'),_0x2590c8('0xb8')),_0x16b008[_0x2590c8('0xd6')](_0x2590c8('0x91'),_0x2590c8('0xbc')),_0x16b008[_0x2590c8('0xd6')](_0x2590c8('0x8d'),_0x2590c8('0x45')),_0x16b008[_0x2590c8('0xd6')](_0x2590c8('0xc'),_0x2590c8('0x5')),_0x16b008[_0x2590c8('0xd6')](_0x2590c8('0x2d'),_0x2590c8('0x9')),_0x16b008['field'](_0x2590c8('0x42'),_0x2590c8('0xae')),_0x16b008['field'](_0x2590c8('0x93'),'Owner.fullname'),_0x16b008[_0x2590c8('0xd6')](_0x2590c8('0x92'),_0x2590c8('0x0')),_0x16b008[_0x2590c8('0xd6')]('GROUP_CONCAT(DISTINCT\x20t.id)','TagIds'));if(_0x390471[_0x2590c8('0xde')])_0x16b008[_0x2590c8('0xde')](_0x390471[_0x2590c8('0xde')]);if(_0x390471[_0x2590c8('0x75')])_0x16b008[_0x2590c8('0x75')](_0x390471[_0x2590c8('0x75')]);return db[_0x2590c8('0x69')][_0x2590c8('0x86')](_0x16b008[_0x2590c8('0xce')](),_0x1ed99f);})[_0x13de64('0x1a')](function(_0x46357d){const _0x4ed7fb=_0x13de64;return _0x58116b['where'](_0x4ed7fb('0x77'),_[_0x4ed7fb('0x70')](_0x46357d,'id')),db[_0x4ed7fb('0x69')][_0x4ed7fb('0x86')](_0x58116b[_0x4ed7fb('0xce')](),_0x1ed99f)[_0x4ed7fb('0x1a')](function(_0x46b762){const _0x40b1ac=_0x4ed7fb,_0x56e8d2=_[_0x40b1ac('0x6c')](_0x46b762,_0x40b1ac('0x57')),_0x8587e5=[];return _0x46357d['forEach'](function(_0x3d65fa){const _0x275170=_0x40b1ac;_0x8587e5[_0x275170('0xc8')](updateWhatsappInteraction(_0x3d65fa,_0x2b94ec,_0x56e8d2));}),Promise[_0x40b1ac('0xd')](_0x8587e5);});});})['then'](function(_0x47ec35){return _0x467084['rows']=_0x47ec35,_0x467084;})[_0x5c4e4e('0x1a')](respondWithFilteredResult(_0x2ced08,_0x390471));})[_0x398aed('0x9a')](handleError(_0x2ced08,null));},exports[_0x3586d7('0x8')]=function(_0x2a42b6,_0x4e476b){const _0x5c6317=_0x3586d7;let _0xf8e4b9={'raw':![],'where':{'id':_0x2a42b6['params']['id']}};const _0x5d3f1a={};return _0x5d3f1a['model']=_['keys'](db[_0x5c6317('0x56')][_0x5c6317('0x5c')]),_0x5d3f1a[_0x5c6317('0x86')]=_['keys'](_0x2a42b6['query']),_0x5d3f1a[_0x5c6317('0x74')]=_[_0x5c6317('0x17')](_0x5d3f1a[_0x5c6317('0x50')],_0x5d3f1a[_0x5c6317('0x86')]),_0xf8e4b9[_0x5c6317('0x3f')]=_[_0x5c6317('0x17')](_0x5d3f1a[_0x5c6317('0x50')],qs['fields'](_0x2a42b6[_0x5c6317('0x86')][_0x5c6317('0xb7')])),_0xf8e4b9[_0x5c6317('0x3f')]=_0xf8e4b9[_0x5c6317('0x3f')][_0x5c6317('0x6e')]?_0xf8e4b9[_0x5c6317('0x3f')]:_0x5d3f1a[_0x5c6317('0x50')],_0x2a42b6[_0x5c6317('0x86')]['includeAll']&&(_0xf8e4b9['include']=[{'all':!![]}]),_0xf8e4b9=_[_0x5c6317('0x94')]({},_0xf8e4b9,_0x2a42b6['options']),db['WhatsappInteraction'][_0x5c6317('0xb2')](_0xf8e4b9)[_0x5c6317('0x1a')](handleEntityNotFound(_0x4e476b,null))[_0x5c6317('0x1a')](respondWithResult(_0x4e476b,null))[_0x5c6317('0x9a')](handleError(_0x4e476b,null));},exports['create']=function(_0x674fb8,_0x477437){const _0x3a6eef=_0x3586d7;return db[_0x3a6eef('0x56')][_0x3a6eef('0xbe')](_0x674fb8[_0x3a6eef('0xb1')],{})[_0x3a6eef('0x1a')](respondWithResult(_0x477437,0xc9))[_0x3a6eef('0x9a')](handleError(_0x477437,null));},exports[_0x3586d7('0xca')]=function(_0x23125f,_0x541657){const _0x9fcd60=_0x3586d7;return _0x23125f[_0x9fcd60('0xb1')]['id']&&delete _0x23125f[_0x9fcd60('0xb1')]['id'],db['WhatsappInteraction'][_0x9fcd60('0xb2')]({'where':{'id':_0x23125f[_0x9fcd60('0x6f')]['id']}})[_0x9fcd60('0x1a')](handleEntityNotFound(_0x541657,null))[_0x9fcd60('0x1a')](saveUpdates(_0x23125f[_0x9fcd60('0xb1')],null))[_0x9fcd60('0x1a')](respondWithResult(_0x541657,null))[_0x9fcd60('0x9a')](handleError(_0x541657,null));},exports[_0x3586d7('0x68')]=function(_0x577d52,_0x24967f){const _0x434d15=_0x3586d7;return db[_0x434d15('0x56')][_0x434d15('0xb2')]({'where':{'id':_0x577d52['params']['id']}})[_0x434d15('0x1a')](handleEntityNotFound(_0x24967f,null))[_0x434d15('0x1a')](removeEntity(_0x24967f,null))[_0x434d15('0x9a')](handleError(_0x24967f,null));},exports[_0x3586d7('0x67')]=function(_0x10f8ce,_0x2f496){const _0x1e5497=_0x3586d7;return db[_0x1e5497('0x56')][_0x1e5497('0x67')]()[_0x1e5497('0x1a')](respondWithResult(_0x2f496,null))[_0x1e5497('0x9a')](handleError(_0x2f496,null));},exports[_0x3586d7('0x3')]=function(_0x366d81,_0x32de29){const _0x534a5b=_0x3586d7;return db[_0x534a5b('0xc9')]['findOne']({'where':{'id':_0x366d81[_0x534a5b('0x6f')]['id']}})['then'](function(_0x3635ef){const _0x3dae7a=_0x534a5b;if(_0x3635ef)return _0x3635ef['addMessage'](_0x366d81['body']['ids'],{'through':_[_0x3dae7a('0x98')](_0x366d81[_0x3dae7a('0xb1')],[_0x3dae7a('0xbf'),'id'])});})[_0x534a5b('0x1a')](respondWithResult(_0x32de29,null))[_0x534a5b('0x9a')](handleError(_0x32de29,null));},exports[_0x3586d7('0x61')]=function(_0xce943,_0x1a7e8b){const _0x268a03=_0x3586d7;let _0x37b2ce={'raw':![],'where':{}};const _0x583643={},_0x32eef8={'count':0x0,'rows':[]};return db[_0x268a03('0x56')][_0x268a03('0xb2')]({'where':{'id':_0xce943[_0x268a03('0x6f')]['id']}})[_0x268a03('0x1a')](handleEntityNotFound(_0x1a7e8b,null))[_0x268a03('0x1a')](function(_0x20c3e8){const _0x480d6a=_0x268a03;if(_0x20c3e8){_0x583643[_0x480d6a('0x50')]=_[_0x480d6a('0xbd')](db[_0x480d6a('0xc9')][_0x480d6a('0x5c')]),_0x583643[_0x480d6a('0x86')]=_[_0x480d6a('0xbd')](_0xce943[_0x480d6a('0x86')]),_0x583643[_0x480d6a('0x74')]=_[_0x480d6a('0x17')](_0x583643[_0x480d6a('0x50')],_0x583643[_0x480d6a('0x86')]),_0x37b2ce[_0x480d6a('0x3f')]=_[_0x480d6a('0x17')](_0x583643[_0x480d6a('0x50')],qs['fields'](_0xce943[_0x480d6a('0x86')]['fields'])),_0x37b2ce['attributes']=_0x37b2ce[_0x480d6a('0x3f')][_0x480d6a('0x6e')]?_0x37b2ce[_0x480d6a('0x3f')]:_0x583643[_0x480d6a('0x50')];typeof _0xce943[_0x480d6a('0x86')][_0x480d6a('0x9f')]===_0x480d6a('0x95')&&(_0x37b2ce[_0x480d6a('0xde')]=qs['limit'](_0xce943['query'][_0x480d6a('0xde')]),_0x37b2ce[_0x480d6a('0x75')]=qs[_0x480d6a('0x75')](_0xce943['query'][_0x480d6a('0x75')]));_0x37b2ce['order']=qs[_0x480d6a('0x6d')](_0xce943[_0x480d6a('0x86')][_0x480d6a('0x6d')]),_0x37b2ce[_0x480d6a('0x71')]=qs[_0x480d6a('0x74')](_[_0x480d6a('0xaf')](_0xce943['query'],_0x583643[_0x480d6a('0x74')])),_0x37b2ce[_0x480d6a('0x71')][_0x480d6a('0x57')]=_0x20c3e8['id'];_0xce943[_0x480d6a('0x86')]['filter']&&(_0x37b2ce['where']=_[_0x480d6a('0x94')](_0x37b2ce['where'],{[Op['or']]:_['map'](_0x37b2ce[_0x480d6a('0x3f')],function(_0x25cf55){const _0x350bb8=_0x480d6a,_0x5473bd={};return _0x5473bd[_0x25cf55]={[Op[_0x350bb8('0xda')]]:'%'+_0xce943[_0x350bb8('0x86')][_0x350bb8('0xdb')]+'%'},_0x5473bd;})}));if(_0xce943[_0x480d6a('0x86')][_0x480d6a('0xa6')]){const _0x4bcb78=_0xce943[_0x480d6a('0x86')][_0x480d6a('0xa6')][_0x480d6a('0x7e')](','),_0x12d619={};_0x12d619[_0x4bcb78[0x0]]={[Op[_0x480d6a('0x36')]]:moment(_0x4bcb78[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0x37b2ce['where']=_['merge'](_0x37b2ce['where'],_0x12d619);}return _0x37b2ce=_['merge']({},_0x37b2ce,_0xce943[_0x480d6a('0x82')]),db[_0x480d6a('0xc9')][_0x480d6a('0xcd')]({'where':_0x37b2ce[_0x480d6a('0x71')]})[_0x480d6a('0x1a')](function(_0x2f553a){const _0x1990f9=_0x480d6a;return _0x32eef8[_0x1990f9('0xcd')]=_0x2f553a,_0xce943[_0x1990f9('0x86')][_0x1990f9('0x23')]&&(_0x37b2ce[_0x1990f9('0x27')]=[{'all':!![]}]),db['WhatsappMessage'][_0x1990f9('0x2e')](_0x37b2ce);})[_0x480d6a('0x1a')](function(_0x595b9a){const _0x8d46f9=_0x480d6a;return _0x32eef8[_0x8d46f9('0x2b')]=_0x595b9a,_0x32eef8;});}})['then'](respondWithFilteredResult(_0x1a7e8b,_0x37b2ce))[_0x268a03('0x9a')](handleError(_0x1a7e8b,null));},exports['addTags']=function(_0x5ee63d,_0x419c27){const _0x3a00a1=_0x3586d7;return db[_0x3a00a1('0x56')]['findOne']({'where':{'id':_0x5ee63d[_0x3a00a1('0x6f')]['id']}})[_0x3a00a1('0x1a')](function(_0x3066dd){const _0x2641ad=_0x3a00a1;if(_0x3066dd)return _0x3066dd[_0x2641ad('0xcb')](_0x5ee63d['body']['ids'],{'through':_[_0x2641ad('0x98')](_0x5ee63d['body'],['ids','id'])})[_0x2641ad('0x1a')](function(){const _0x5aa932=_0x2641ad;return db[_0x5aa932('0xa')][_0x5aa932('0x2e')]({'attributes':['id',_0x5aa932('0xf'),_0x5aa932('0xc1')],'where':{'id':_0x5ee63d[_0x5aa932('0xb1')][_0x5aa932('0xbf')]}});})[_0x2641ad('0x1a')](function(_0x587bf5){const _0x481a0b=_0x2641ad;return socket[_0x481a0b('0x5a')](_0x481a0b('0x7a'),{'id':Number(_0x5ee63d[_0x481a0b('0x6f')]['id']),'tags':_0x587bf5||[]}),{'id':Number(_0x5ee63d[_0x481a0b('0x6f')]['id']),'tags':_0x587bf5||[]};});})[_0x3a00a1('0x1a')](respondWithResult(_0x419c27,null))[_0x3a00a1('0x9a')](handleError(_0x419c27,null));},exports['removeTags']=function(_0x468a78,_0x332f0c){const _0xbdb1b5=_0x3586d7;return db['WhatsappInteraction'][_0xbdb1b5('0xb2')]({'where':{'id':_0x468a78[_0xbdb1b5('0x6f')]['id']}})['then'](handleEntityNotFound(_0x332f0c,null))['then'](function(_0x1dab44){const _0x388c1d=_0xbdb1b5;if(_0x1dab44)return _0x1dab44[_0x388c1d('0x1f')](_0x468a78[_0x388c1d('0x86')][_0x388c1d('0xbf')]);})[_0xbdb1b5('0x1a')](respondWithStatusCode(_0x332f0c,null))[_0xbdb1b5('0x9a')](handleError(_0x332f0c,null));},exports['download']=function(_0x48f443,_0x491433){const _0x2bf230=_0x3586d7,_0x553d1d=moment()['unix']()[_0x2bf230('0xce')](),_0x200070=path[_0x2bf230('0x79')](config[_0x2bf230('0x3c')],'server',_0x2bf230('0xc3'),'tmp'),_0x33e756=path['join'](config['root'],'server',_0x2bf230('0xc3'),_0x2bf230('0x81')),_0x3afc25=path[_0x2bf230('0x79')](_0x200070,_0x553d1d),_0x57cedd=util[_0x2bf230('0x1d')]('transcript-%d-%s.zip',_0x48f443['params']['id'],_0x553d1d),_0x3eb9b7=path[_0x2bf230('0x79')](_0x200070,_0x57cedd),_0x4917df=[];_0x4917df[_0x2bf230('0xc8')]({'model':db[_0x2bf230('0xd0')],'as':_0x2bf230('0xd0'),'attributes':['id',_0x2bf230('0x4')],'raw':!![]}),_0x4917df['push']({'model':db['CmContact'],'as':'Contact','attributes':['id',_0x2bf230('0x8c'),_0x2bf230('0x59')],'raw':!![]});_0x48f443[_0x2bf230('0x86')][_0x2bf230('0x81')]&&_0x4917df[_0x2bf230('0xc8')]({'model':db[_0x2bf230('0x22')],'as':_0x2bf230('0x22'),'raw':!![]});const _0x225f47=[{'model':db[_0x2bf230('0xc9')],'as':_0x2bf230('0x3b'),'attributes':['id','body','createdAt',_0x2bf230('0x54'),_0x2bf230('0x4b'),_0x2bf230('0xd2')],'include':_0x4917df}];return _0x225f47['push']({'model':db[_0x2bf230('0xc2')],'as':_0x2bf230('0x2'),'attributes':['id',_0x2bf230('0xf')]}),_0x225f47['push']({'model':db[_0x2bf230('0xd0')],'as':_0x2bf230('0xa1'),'attributes':['id',_0x2bf230('0x4')]}),db[_0x2bf230('0x56')][_0x2bf230('0xb2')]({'where':{'id':_0x48f443[_0x2bf230('0x6f')]['id']},'include':_0x225f47})[_0x2bf230('0x1a')](handleEntityNotFound(_0x491433,null))['then'](function(_0x3a7644){const _0x4f644e=_0x2bf230;if(_0x3a7644){const _0x1f8d69=_0x3a7644[_0x4f644e('0xdd')]({'plain':!![]});fs[_0x4f644e('0x66')](_0x3afc25);const _0x4a2091={'format':'A4','border':_0x4f644e('0x37'),'header':{'height':'40px','contents':{'first':_0x4f644e('0x89')}},'footer':{'height':'30px','contents':{'default':util['format'](_0x4f644e('0x24'),util[_0x4f644e('0x1d')](_0x4f644e('0x34'),_0x4f644e('0x73'),_0x1f8d69['id']),moment()['format'](_0x4f644e('0x90'))[_0x4f644e('0xce')]())}}},_0x428b35={'channel':'Whatsapp','account':_0x1f8d69[_0x4f644e('0x2')][_0x4f644e('0xf')],'agent':_0x1f8d69[_0x4f644e('0xa1')]?_0x1f8d69['Owner'][_0x4f644e('0x4')]:_0x4f644e('0x43'),'createdAt':moment(_0x1f8d69[_0x4f644e('0x88')])[_0x4f644e('0x1d')](_0x4f644e('0x6b'))['toString'](),'closedAt':_0x1f8d69[_0x4f644e('0x40')]?moment(_0x1f8d69[_0x4f644e('0x64')])['format'](_0x4f644e('0x6b'))[_0x4f644e('0xce')]():'','disposition':_0x1f8d69[_0x4f644e('0x9e')],'messages':_(_0x1f8d69['Messages'])[_0x4f644e('0xdb')]({'secret':![]})[_0x4f644e('0x70')](function(_0x3ec129){const _0x3d8d6c=_0x4f644e;if(_0x3ec129[_0x3d8d6c('0x22')]){const _0x53002e=path['join'](_0x33e756,_0x3ec129[_0x3d8d6c('0x22')][_0x3d8d6c('0x41')]);fs[_0x3d8d6c('0x15')](_0x53002e)&&fs[_0x3d8d6c('0x63')](_0x53002e)[_0x3d8d6c('0xaa')](fs['createWriteStream'](path['join'](_0x3afc25,_0x3ec129['Attachment'][_0x3d8d6c('0x41')])));}return{'date':moment(_0x3ec129[_0x3d8d6c('0x88')])['format'](_0x3d8d6c('0x6b'))[_0x3d8d6c('0xce')](),'sender':_0x3ec129[_0x3d8d6c('0x54')]===_0x3d8d6c('0x25')?_0x3ec129['User']?_0x3ec129[_0x3d8d6c('0xd0')][_0x3d8d6c('0x4')]:_0x3d8d6c('0x38'):_0x3ec129[_0x3d8d6c('0x9b')]['firstName']+(_0x3ec129[_0x3d8d6c('0x9b')]['lastName']?'\x20'+_0x3ec129['Contact'][_0x3d8d6c('0x59')]:''),'body':_0x3ec129[_0x3d8d6c('0x22')]?_0x3ec129[_0x3d8d6c('0x22')][_0x3d8d6c('0x41')]:_0x3ec129[_0x3d8d6c('0xb1')],'direction':_0x3ec129[_0x3d8d6c('0x54')]==='out'?'A':'C','secret':_0x3ec129[_0x3d8d6c('0x4b')],'read':_0x3ec129[_0x3d8d6c('0xd2')],'attachment':_0x3ec129[_0x3d8d6c('0x22')]};})[_0x4f644e('0x49')]()};return ejs[_0x4f644e('0x8a')](path[_0x4f644e('0x79')](config['root'],_0x4f644e('0x84'),_0x4f644e('0x99'),_0x4f644e('0xa0')),{'interaction':_0x428b35})['then'](function(_0x45539c){return new Promise(function(_0x1643ae,_0x2a8b1c){const _0x215e96=a794_0xc6e9;pdf[_0x215e96('0xbe')](_0x45539c,_0x4a2091)['toFile'](path[_0x215e96('0x79')](_0x3afc25,_0x215e96('0x30')+_0x1f8d69['id']+'-'+_0x553d1d+_0x215e96('0x7f')),function(_0x50032a,_0x1904a9){if(_0x50032a)return _0x2a8b1c(_0x50032a);_0x1643ae(_0x1904a9);});});})[_0x4f644e('0x1a')](function(){const _0x9a2240=_0x4f644e;return new Promise(function(_0x477159,_0x21a413){zipdir(_0x3afc25,{'saveTo':_0x3eb9b7},function(_0x405a2e,_0x32faf4){if(_0x405a2e)return _0x21a413(_0x405a2e);return _0x477159(_0x32faf4);});})[_0x9a2240('0x1a')](function(){return new Promise(function(_0x4f08ee,_0xa50b51){rimraf(_0x3afc25,function(_0x3f8d89){if(_0x3f8d89)_0xa50b51(_0x3f8d89);return _0x4f08ee();});});})[_0x9a2240('0x1a')](function(){const _0x493fde=_0x9a2240;return _0x491433[_0x493fde('0x13')](_0x3eb9b7,_0x57cedd,function(_0x202a4a){_0x202a4a?console['log']('err',_0x202a4a):fs['unlinkSync'](_0x3eb9b7);});});});}else return _0x491433[_0x4f644e('0x9d')](0xc8);})['catch'](handleError(_0x491433,null));}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.events.js b/server/api/whatsappInteraction/whatsappInteraction.events.js index 7588562..542784f 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.events.js +++ b/server/api/whatsappInteraction/whatsappInteraction.events.js @@ -1 +1 @@ -const a795_0x280a=['length','setDataValue','getUsers','setMaxListeners','addHook','update','then','unreadMessages','map','WhatsappMessage','exports','catch','events','Users','save','emit','../../mysqldb','WhatsappInteraction'];(function(_0x3a32b4,_0x280a4e){const _0x5a5926=function(_0x38858f){while(--_0x38858f){_0x3a32b4['push'](_0x3a32b4['shift']());}};_0x5a5926(++_0x280a4e);}(a795_0x280a,0xa2));const a795_0x5a59=function(_0x3a32b4,_0x280a4e){_0x3a32b4=_0x3a32b4-0x0;let _0x5a5926=a795_0x280a[_0x3a32b4];return _0x5a5926;};const _0x2db4df=a795_0x5a59;'use strict';const EventEmitter=require(_0x2db4df('0xc')),WhatsappInteraction=require(_0x2db4df('0x10'))['db'][_0x2db4df('0x11')],WhatsappMessage=require('../../mysqldb')['db'][_0x2db4df('0x9')],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[_0x2db4df('0x3')](0x0);const events={'afterCreate':_0x2db4df('0xe'),'afterUpdate':_0x2db4df('0x5'),'afterDestroy':'remove'};function emitEvent(_0x38858f){return function(_0x15ad08){const _0x3090f3=a795_0x5a59;_0x15ad08[_0x3090f3('0x2')]({'attributes':['id'],'raw':!![]})[_0x3090f3('0x6')](function(_0x1da28b){const _0x39b46f=_0x3090f3;return _0x15ad08[_0x39b46f('0x1')](_0x39b46f('0xd'),_0x1da28b[_0x39b46f('0x8')](function(_0x275a74){return{'id':_0x275a74['id']};})),WhatsappMessage['findAll']({'where':{'WhatsappInteractionId':_0x15ad08['id'],'direction':'in','read':![]},'raw':!![]});})[_0x3090f3('0x6')](function(_0x1f7a2f){const _0x229eec=_0x3090f3;_0x15ad08['setDataValue'](_0x229eec('0x7'),_0x1f7a2f[_0x229eec('0x0')]),WhatsappInteractionEvents[_0x229eec('0xf')](_0x38858f+':'+_0x15ad08['id'],_0x15ad08),WhatsappInteractionEvents[_0x229eec('0xf')](_0x38858f,_0x15ad08);})[_0x3090f3('0xb')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappInteraction[_0x2db4df('0x4')](e,emitEvent(event));}}module[_0x2db4df('0xa')]=WhatsappInteractionEvents; \ No newline at end of file +const a795_0x1306=['../../mysqldb','then','remove','length','events','catch','save','Users','emit','setDataValue','WhatsappMessage','setMaxListeners','unreadMessages','map','WhatsappInteraction','exports','addHook'];(function(_0x284687,_0x130675){const _0x1584ca=function(_0x145338){while(--_0x145338){_0x284687['push'](_0x284687['shift']());}};_0x1584ca(++_0x130675);}(a795_0x1306,0x1d5));const a795_0x1584=function(_0x284687,_0x130675){_0x284687=_0x284687-0x0;let _0x1584ca=a795_0x1306[_0x284687];return _0x1584ca;};const _0x4b0a83=a795_0x1584;'use strict';const EventEmitter=require(_0x4b0a83('0xb')),WhatsappInteraction=require(_0x4b0a83('0x7'))['db'][_0x4b0a83('0x4')],WhatsappMessage=require(_0x4b0a83('0x7'))['db'][_0x4b0a83('0x0')],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[_0x4b0a83('0x1')](0x0);const events={'afterCreate':_0x4b0a83('0xd'),'afterUpdate':'update','afterDestroy':_0x4b0a83('0x9')};function emitEvent(_0x145338){return function(_0x1fa33e){const _0x55f8bd=a795_0x1584;_0x1fa33e['getUsers']({'attributes':['id'],'raw':!![]})['then'](function(_0x5567e8){const _0x104491=a795_0x1584;return _0x1fa33e[_0x104491('0x10')](_0x104491('0xe'),_0x5567e8[_0x104491('0x3')](function(_0x3bae8c){return{'id':_0x3bae8c['id']};})),WhatsappMessage['findAll']({'where':{'WhatsappInteractionId':_0x1fa33e['id'],'direction':'in','read':![]},'raw':!![]});})[_0x55f8bd('0x8')](function(_0x34213){const _0x16547f=_0x55f8bd;_0x1fa33e['setDataValue'](_0x16547f('0x2'),_0x34213[_0x16547f('0xa')]),WhatsappInteractionEvents['emit'](_0x145338+':'+_0x1fa33e['id'],_0x1fa33e),WhatsappInteractionEvents[_0x16547f('0xf')](_0x145338,_0x1fa33e);})[_0x55f8bd('0xc')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappInteraction[_0x4b0a83('0x6')](e,emitEvent(event));}}module[_0x4b0a83('0x5')]=WhatsappInteractionEvents; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.model.js b/server/api/whatsappInteraction/whatsappInteraction.model.js index 00e908b..5f92ce2 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.model.js +++ b/server/api/whatsappInteraction/whatsappInteraction.model.js @@ -1 +1 @@ -const a796_0x45b2=['moment','closedAt','YYYY-MM-DD\x20HH:mm:ss','closed','define','changed','./whatsappInteraction.attributes','whatsapp_interactions','format'];(function(_0x44ae88,_0x45b2b1){const _0x35ad9e=function(_0x32b8e4){while(--_0x32b8e4){_0x44ae88['push'](_0x44ae88['shift']());}};_0x35ad9e(++_0x45b2b1);}(a796_0x45b2,0x17a));const a796_0x35ad=function(_0x44ae88,_0x45b2b1){_0x44ae88=_0x44ae88-0x0;let _0x35ad9e=a796_0x45b2[_0x44ae88];return _0x35ad9e;};const _0x5d781a=a796_0x35ad;'use strict';const moment=require(_0x5d781a('0x0')),attributes=require(_0x5d781a('0x6'));module['exports']=function(_0x32b8e4){const _0x3aa268=_0x5d781a,_0x3c20bb=_0x32b8e4[_0x3aa268('0x4')]('WhatsappInteraction',attributes,{'tableName':_0x3aa268('0x7'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x51258b){const _0x3f6c7f=_0x3aa268;_0x51258b[_0x3f6c7f('0x5')](_0x3f6c7f('0x3'))&&(_0x51258b[_0x3f6c7f('0x1')]=moment()[_0x3f6c7f('0x8')](_0x3f6c7f('0x2')));}}});return _0x3c20bb;}; \ No newline at end of file +const a796_0x5e66=['YYYY-MM-DD\x20HH:mm:ss','./whatsappInteraction.attributes','moment','WhatsappInteraction','changed','whatsapp_interactions','closed','format','exports'];(function(_0x30486c,_0x5e6649){const _0x3ddfd3=function(_0x50ec9a){while(--_0x50ec9a){_0x30486c['push'](_0x30486c['shift']());}};_0x3ddfd3(++_0x5e6649);}(a796_0x5e66,0x14e));const a796_0x3ddf=function(_0x30486c,_0x5e6649){_0x30486c=_0x30486c-0x0;let _0x3ddfd3=a796_0x5e66[_0x30486c];return _0x3ddfd3;};const _0x54186c=a796_0x3ddf;'use strict';const moment=require(_0x54186c('0x1')),attributes=require(_0x54186c('0x0'));module[_0x54186c('0x7')]=function(_0x50ec9a){const _0xfb5eac=_0x54186c,_0xb26a42=_0x50ec9a['define'](_0xfb5eac('0x2'),attributes,{'tableName':_0xfb5eac('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x363e33){const _0x2ecf32=_0xfb5eac;_0x363e33[_0x2ecf32('0x3')](_0x2ecf32('0x5'))&&(_0x363e33['closedAt']=moment()[_0x2ecf32('0x6')](_0x2ecf32('0x8')));}}});return _0xb26a42;}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.rpc.js b/server/api/whatsappInteraction/whatsappInteraction.rpc.js index 690c5ff..e57fa6f 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.rpc.js +++ b/server/api/whatsappInteraction/whatsappInteraction.rpc.js @@ -1 +1 @@ -const a797_0x19ac=['../../mysqldb','../../rediscache','register','addTags','UpdateWhatsappInteraction','body','omit','catch','lodash','WhatsappInteraction','message','AddTags','ids','./whatsappInteraction.socket','rpc','debug','where','options','error','AddTagsToWhatsappInteraction','limit','then','info','../../config/logger','raw','stringify'];(function(_0x1548ee,_0x19acda){const _0x4b396d=function(_0x556fe0){while(--_0x556fe0){_0x1548ee['push'](_0x1548ee['shift']());}};_0x4b396d(++_0x19acda);}(a797_0x19ac,0x174));const a797_0x4b39=function(_0x1548ee,_0x19acda){_0x1548ee=_0x1548ee-0x0;let _0x4b396d=a797_0x19ac[_0x1548ee];return _0x4b396d;};const _0x16b8c7=a797_0x4b39;'use strict';const _=require(_0x16b8c7('0x0')),db=require(_0x16b8c7('0x12'))['db'],logger=require(_0x16b8c7('0xf'))(_0x16b8c7('0x6')),{getSocket}=require(_0x16b8c7('0x13')),socket=getSocket();require(_0x16b8c7('0x5'))[_0x16b8c7('0x14')](socket),exports[_0x16b8c7('0x16')]=function(_0x556fe0){const _0x132c3f=this;return new Promise(function(_0x3d35ad,_0x5675a3){const _0x231cf9=a797_0x4b39;return db[_0x231cf9('0x1')]['update'](_0x556fe0[_0x231cf9('0x17')],{'raw':_0x556fe0[_0x231cf9('0x9')]?_0x556fe0[_0x231cf9('0x9')][_0x231cf9('0x10')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x556fe0[_0x231cf9('0x9')]?_0x556fe0[_0x231cf9('0x9')]['where']||null:null,'attributes':_0x556fe0['options']?_0x556fe0['options']['attributes']||null:null,'limit':_0x556fe0['options']?_0x556fe0['options'][_0x231cf9('0xc')]||null:null})['then'](function(_0x23bb91){const _0x5bde77=_0x231cf9;logger[_0x5bde77('0xe')](_0x5bde77('0x16'),_0x556fe0),logger[_0x5bde77('0x7')]('UpdateWhatsappInteraction',_0x556fe0,JSON[_0x5bde77('0x11')](_0x23bb91)),_0x3d35ad(_0x23bb91);})[_0x231cf9('0x19')](function(_0x2f3d23){const _0x14b70f=_0x231cf9;logger[_0x14b70f('0xa')]('UpdateWhatsappInteraction',_0x2f3d23[_0x14b70f('0x2')],_0x556fe0),_0x5675a3(_0x132c3f['error'](0x1f4,_0x2f3d23[_0x14b70f('0x2')]));});});},exports[_0x16b8c7('0xb')]=function(_0xb95780){const _0x51ce07=this;return new Promise(function(_0x5b9394,_0x34cb8d){const _0x1cf23f=a797_0x4b39;return db[_0x1cf23f('0x1')]['findOne']({'where':_0xb95780[_0x1cf23f('0x9')]?_0xb95780[_0x1cf23f('0x9')][_0x1cf23f('0x8')]||null:null})[_0x1cf23f('0xd')](function(_0x31ebf1){const _0x5b48cc=_0x1cf23f;if(_0x31ebf1)return _0x31ebf1[_0x5b48cc('0x15')](_0xb95780[_0x5b48cc('0x17')][_0x5b48cc('0x4')],{'through':_[_0x5b48cc('0x18')](_0xb95780[_0x5b48cc('0x17')],[_0x5b48cc('0x4'),'id'])});})[_0x1cf23f('0xd')](function([_0xce3866]){logger['info']('AddTags',_0xb95780),logger['debug']('AddTags',_0xb95780,JSON['stringify'](_0xce3866)),_0x5b9394(_0xce3866);})[_0x1cf23f('0x19')](function(_0x5b03bc){const _0x434c33=_0x1cf23f;logger[_0x434c33('0xa')](_0x434c33('0x3'),_0x5b03bc[_0x434c33('0x2')],_0xb95780),_0x34cb8d(_0x51ce07[_0x434c33('0xa')](0x1f4,_0x5b03bc[_0x434c33('0x2')]));});});}; \ No newline at end of file +const a797_0x1470=['stringify','debug','body','AddTags','AddTagsToWhatsappInteraction','catch','UpdateWhatsappInteraction','../../mysqldb','raw','error','../../config/logger','info','lodash','options','message','./whatsappInteraction.socket','../../rediscache','addTags','ids','where','then','WhatsappInteraction','register','omit','update'];(function(_0x3f7fad,_0x1470c5){const _0x14f0cb=function(_0x5174bd){while(--_0x5174bd){_0x3f7fad['push'](_0x3f7fad['shift']());}};_0x14f0cb(++_0x1470c5);}(a797_0x1470,0x154));const a797_0x14f0=function(_0x3f7fad,_0x1470c5){_0x3f7fad=_0x3f7fad-0x0;let _0x14f0cb=a797_0x1470[_0x3f7fad];return _0x14f0cb;};const _0x39763e=a797_0x14f0;'use strict';const _=require(_0x39763e('0x16')),db=require(_0x39763e('0x11'))['db'],logger=require(_0x39763e('0x14'))('rpc'),{getSocket}=require(_0x39763e('0x1')),socket=getSocket();require(_0x39763e('0x0'))[_0x39763e('0x7')](socket),exports[_0x39763e('0x10')]=function(_0x5174bd){const _0x59c9b2=this;return new Promise(function(_0x789223,_0x2cfcf1){const _0xaba28c=a797_0x14f0;return db[_0xaba28c('0x6')][_0xaba28c('0x9')](_0x5174bd['body'],{'raw':_0x5174bd[_0xaba28c('0x17')]?_0x5174bd[_0xaba28c('0x17')][_0xaba28c('0x12')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5174bd[_0xaba28c('0x17')]?_0x5174bd[_0xaba28c('0x17')]['where']||null:null,'attributes':_0x5174bd[_0xaba28c('0x17')]?_0x5174bd[_0xaba28c('0x17')]['attributes']||null:null,'limit':_0x5174bd[_0xaba28c('0x17')]?_0x5174bd[_0xaba28c('0x17')]['limit']||null:null})[_0xaba28c('0x5')](function(_0x217480){const _0x4123de=_0xaba28c;logger[_0x4123de('0x15')]('UpdateWhatsappInteraction',_0x5174bd),logger[_0x4123de('0xb')]('UpdateWhatsappInteraction',_0x5174bd,JSON[_0x4123de('0xa')](_0x217480)),_0x789223(_0x217480);})['catch'](function(_0x489711){const _0x248eb1=_0xaba28c;logger[_0x248eb1('0x13')](_0x248eb1('0x10'),_0x489711['message'],_0x5174bd),_0x2cfcf1(_0x59c9b2[_0x248eb1('0x13')](0x1f4,_0x489711[_0x248eb1('0x18')]));});});},exports[_0x39763e('0xe')]=function(_0x47dc03){const _0x263183=this;return new Promise(function(_0x461917,_0x33689b){const _0xa064f1=a797_0x14f0;return db['WhatsappInteraction']['findOne']({'where':_0x47dc03[_0xa064f1('0x17')]?_0x47dc03[_0xa064f1('0x17')][_0xa064f1('0x4')]||null:null})[_0xa064f1('0x5')](function(_0x425acc){const _0x38b1d1=_0xa064f1;if(_0x425acc)return _0x425acc[_0x38b1d1('0x2')](_0x47dc03[_0x38b1d1('0xc')][_0x38b1d1('0x3')],{'through':_[_0x38b1d1('0x8')](_0x47dc03['body'],[_0x38b1d1('0x3'),'id'])});})['then'](function([_0x38d7d7]){const _0x85d521=_0xa064f1;logger['info'](_0x85d521('0xd'),_0x47dc03),logger['debug']('AddTags',_0x47dc03,JSON[_0x85d521('0xa')](_0x38d7d7)),_0x461917(_0x38d7d7);})[_0xa064f1('0xf')](function(_0x4ff57f){const _0x1d15a9=_0xa064f1;logger['error'](_0x1d15a9('0xd'),_0x4ff57f[_0x1d15a9('0x18')],_0x47dc03),_0x33689b(_0x263183[_0x1d15a9('0x13')](0x1f4,_0x4ff57f['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.socket.js b/server/api/whatsappInteraction/whatsappInteraction.socket.js index e32caca..1d88451 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.socket.js +++ b/server/api/whatsappInteraction/whatsappInteraction.socket.js @@ -1 +1 @@ -const a798_0x2078=['remove','save','./whatsappInteraction.events','whatsappInteraction:','update','emit'];(function(_0x365a04,_0x2078de){const _0x3c897c=function(_0x410dfe){while(--_0x410dfe){_0x365a04['push'](_0x365a04['shift']());}};_0x3c897c(++_0x2078de);}(a798_0x2078,0x173));const a798_0x3c89=function(_0x365a04,_0x2078de){_0x365a04=_0x365a04-0x0;let _0x3c897c=a798_0x2078[_0x365a04];return _0x3c897c;};const _0x5aa249=a798_0x3c89;'use strict';const WhatsappInteractionEvents=require(_0x5aa249('0x3')),events=[_0x5aa249('0x2'),_0x5aa249('0x1'),_0x5aa249('0x5')];function createListener(_0x410dfe,_0x3ec60d){return function(_0x4dccc9){const _0x3fb335=a798_0x3c89;_0x3ec60d[_0x3fb335('0x0')](_0x410dfe,_0x4dccc9);};}exports['register']=function(_0x456517){const _0x3779bb=_0x5aa249;for(let _0x1e9daa=0x0,_0x4980a3=events['length'];_0x1e9daa<_0x4980a3;_0x1e9daa++){const _0x3de2dc=events[_0x1e9daa],_0xc47980=createListener(_0x3779bb('0x4')+_0x3de2dc,_0x456517);WhatsappInteractionEvents['on'](_0x3de2dc,_0xc47980);}}; \ No newline at end of file +const a798_0x46ba=['./whatsappInteraction.events','save','length','update','register','whatsappInteraction:'];(function(_0x581118,_0x46ba02){const _0x566d96=function(_0x3efa3c){while(--_0x3efa3c){_0x581118['push'](_0x581118['shift']());}};_0x566d96(++_0x46ba02);}(a798_0x46ba,0x192));const a798_0x566d=function(_0x581118,_0x46ba02){_0x581118=_0x581118-0x0;let _0x566d96=a798_0x46ba[_0x581118];return _0x566d96;};const _0x435388=a798_0x566d;'use strict';const WhatsappInteractionEvents=require(_0x435388('0x0')),events=[_0x435388('0x1'),'remove',_0x435388('0x3')];function createListener(_0x3efa3c,_0x125562){return function(_0x564721){_0x125562['emit'](_0x3efa3c,_0x564721);};}exports[_0x435388('0x4')]=function(_0x4976c7){const _0x4f6ea4=_0x435388;for(let _0x31f439=0x0,_0x1b03d2=events[_0x4f6ea4('0x2')];_0x31f439<_0x1b03d2;_0x31f439++){const _0x19507b=events[_0x31f439],_0x442608=createListener(_0x4f6ea4('0x5')+_0x19507b,_0x4976c7);WhatsappInteractionEvents['on'](_0x19507b,_0x442608);}}; \ No newline at end of file diff --git a/server/api/whatsappMessage/index.js b/server/api/whatsappMessage/index.js index 6939220..43e09ef 100644 --- a/server/api/whatsappMessage/index.js +++ b/server/api/whatsappMessage/index.js @@ -1 +1 @@ -const a799_0x8dc9=['whatsapp','express','../../components/interaction/service','delete','/:id','/:id/status','/describe','./whatsappMessage.controller','accept','isAuthenticated','post','show','reject','put','create','/:id/accept','get','status','whatsappmessage:create','exports'];(function(_0x361507,_0x8dc93c){const _0x218b65=function(_0x172df3){while(--_0x172df3){_0x361507['push'](_0x361507['shift']());}};_0x218b65(++_0x8dc93c);}(a799_0x8dc9,0xfc));const a799_0x218b=function(_0x361507,_0x8dc93c){_0x361507=_0x361507-0x0;let _0x218b65=a799_0x8dc9[_0x361507];return _0x218b65;};const _0x2b9acd=a799_0x218b;'use strict';const express=require(_0x2b9acd('0x9')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(_0x2b9acd('0xa')),controller=require(_0x2b9acd('0xf'));router[_0x2b9acd('0x4')]('/',auth[_0x2b9acd('0x11')](),controller['index']),router[_0x2b9acd('0x4')](_0x2b9acd('0xe'),auth[_0x2b9acd('0x11')](),controller['describe']),router[_0x2b9acd('0x4')](_0x2b9acd('0xc'),auth[_0x2b9acd('0x11')](),controller[_0x2b9acd('0x13')]),router[_0x2b9acd('0x12')]('/',auth['isAuthenticated'](),interaction['tracked'](_0x2b9acd('0x8'),_0x2b9acd('0x6')),controller[_0x2b9acd('0x2')]),router['post'](_0x2b9acd('0xd'),controller[_0x2b9acd('0x5')]),router[_0x2b9acd('0x1')]('/:id',auth[_0x2b9acd('0x11')](),controller['update']),router[_0x2b9acd('0x1')](_0x2b9acd('0x3'),auth[_0x2b9acd('0x11')](),controller[_0x2b9acd('0x10')]),router[_0x2b9acd('0x1')]('/:id/reject',auth[_0x2b9acd('0x11')](),controller[_0x2b9acd('0x0')]),router[_0x2b9acd('0xb')](_0x2b9acd('0xc'),auth[_0x2b9acd('0x11')](),controller['destroy']),module[_0x2b9acd('0x7')]=router; \ No newline at end of file +const a799_0x21c9=['describe','/describe','get','/:id/status','post','express','/:id','../../components/interaction/service','put','exports','whatsappmessage:create','status','isAuthenticated','index','delete','whatsapp','tracked','Router','show'];(function(_0x2e1f4a,_0x21c9cb){const _0x361bb8=function(_0x2f3f77){while(--_0x2f3f77){_0x2e1f4a['push'](_0x2e1f4a['shift']());}};_0x361bb8(++_0x21c9cb);}(a799_0x21c9,0x12f));const a799_0x361b=function(_0x2e1f4a,_0x21c9cb){_0x2e1f4a=_0x2e1f4a-0x0;let _0x361bb8=a799_0x21c9[_0x2e1f4a];return _0x361bb8;};const _0x516afa=a799_0x361b;'use strict';const express=require(_0x516afa('0x6')),router=express[_0x516afa('0x12')](),auth=require('../../components/auth/service'),interaction=require(_0x516afa('0x8')),controller=require('./whatsappMessage.controller');router[_0x516afa('0x3')]('/',auth[_0x516afa('0xd')](),controller[_0x516afa('0xe')]),router['get'](_0x516afa('0x2'),auth[_0x516afa('0xd')](),controller[_0x516afa('0x1')]),router['get'](_0x516afa('0x7'),auth['isAuthenticated'](),controller[_0x516afa('0x0')]),router[_0x516afa('0x5')]('/',auth[_0x516afa('0xd')](),interaction[_0x516afa('0x11')](_0x516afa('0x10'),_0x516afa('0xb')),controller['create']),router[_0x516afa('0x5')](_0x516afa('0x4'),controller[_0x516afa('0xc')]),router[_0x516afa('0x9')](_0x516afa('0x7'),auth[_0x516afa('0xd')](),controller['update']),router['put']('/:id/accept',auth['isAuthenticated'](),controller['accept']),router['put']('/:id/reject',auth[_0x516afa('0xd')](),controller['reject']),router[_0x516afa('0xf')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x516afa('0xa')]=router; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.attributes.js b/server/api/whatsappMessage/whatsappMessage.attributes.js index 6d8ed65..9af5c55 100644 --- a/server/api/whatsappMessage/whatsappMessage.attributes.js +++ b/server/api/whatsappMessage/whatsappMessage.attributes.js @@ -1 +1 @@ -const a800_0x24cb=['STRING','TEXT','sequelize','out','medium','exports','ENUM','BOOLEAN'];(function(_0xd4f775,_0x24cbba){const _0x2c042f=function(_0x4325a6){while(--_0x4325a6){_0xd4f775['push'](_0xd4f775['shift']());}};_0x2c042f(++_0x24cbba);}(a800_0x24cb,0x18e));const a800_0x2c04=function(_0xd4f775,_0x24cbba){_0xd4f775=_0xd4f775-0x0;let _0x2c042f=a800_0x24cb[_0xd4f775];return _0x2c042f;};const _0x446f53=a800_0x2c04;'use strict';const Sequelize=require(_0x446f53('0x4'));module[_0x446f53('0x7')]={'body':{'type':Sequelize[_0x446f53('0x3')](_0x446f53('0x6')),'allowNull':![]},'read':{'type':Sequelize[_0x446f53('0x1')],'defaultValue':![]},'direction':{'type':Sequelize[_0x446f53('0x0')]('in',_0x446f53('0x5')),'defaultValue':_0x446f53('0x5'),'allowNull':![]},'messageId':{'type':Sequelize[_0x446f53('0x2')](0xbe)},'phone':{'type':Sequelize[_0x446f53('0x2')]},'readAt':{'type':Sequelize['DATE']},'secret':{'type':Sequelize[_0x446f53('0x1')],'defaultValue':![]}}; \ No newline at end of file +const a800_0x1017=['sequelize','TEXT','BOOLEAN','out','STRING','ENUM','medium'];(function(_0x149601,_0x1017e7){const _0x49fbca=function(_0x9d96df){while(--_0x9d96df){_0x149601['push'](_0x149601['shift']());}};_0x49fbca(++_0x1017e7);}(a800_0x1017,0x11c));const a800_0x49fb=function(_0x149601,_0x1017e7){_0x149601=_0x149601-0x0;let _0x49fbca=a800_0x1017[_0x149601];return _0x49fbca;};const _0x407d18=a800_0x49fb;'use strict';const Sequelize=require(_0x407d18('0x3'));module['exports']={'body':{'type':Sequelize[_0x407d18('0x4')](_0x407d18('0x2')),'allowNull':![]},'read':{'type':Sequelize[_0x407d18('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x407d18('0x1')]('in',_0x407d18('0x6')),'defaultValue':_0x407d18('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0x407d18('0x0')](0xbe)},'phone':{'type':Sequelize[_0x407d18('0x0')]},'readAt':{'type':Sequelize['DATE']},'secret':{'type':Sequelize[_0x407d18('0x5')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.controller.js b/server/api/whatsappMessage/whatsappMessage.controller.js index 1c44321..46a8143 100644 --- a/server/api/whatsappMessage/whatsappMessage.controller.js +++ b/server/api/whatsappMessage/whatsappMessage.controller.js @@ -1 +1 @@ -const a801_0x517b=['event','sort','client','YYYY-MM-DD\x20HH:mm:ss','then','received\x20delivery\x20report\x20from','include','intersection','sequelize','create','MessageStatus','twilio','limit','keys','includeAll','WhatsappAccountId','whatsapp','request\x20sent','body','messageId','../../mysqldb','http','set','[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','jayson/promise','null','attributes','update','reject','inspect','stack','code','findAll','params','AcceptMessage','name','../../components/parsers/qs','result','WhatsappAccount','filter','interaction','merge','lodash','register','get','rawAttributes','acceptmessage','WhatsappMessage','catch','length','model','WhatsappInteractionId','accept','read1stAt','json','message','debug','nolimit','interface','MessageSid','key','end','index','where','RejectMessage','role','filters','UserId','count','rows','user','isNil','whatsapp-interactions','VIRTUAL','query','CmContact','error','rejectMessage','fields','channel','WhatsppMessage,\x20%s,\x20%s,\x20%s','send','describe','status','rejectmessage','like','map','acceptMessage','WhatsappAccount,\x20%s,\x20%s,\x20%s','agent','./whatsappMessage.socket','util','../../config/logger','WhatsappMessage,\x20%s,\x20%s','offset','SIP/%s','info','type','show','WhatsappInteraction','request','order','EventManager','format','stringify','Contact','read','findOne','pick','manual','destroy','options','Content-Range'];(function(_0x507f56,_0x517bc3){const _0x3bab91=function(_0x17ebc1){while(--_0x17ebc1){_0x507f56['push'](_0x507f56['shift']());}};_0x3bab91(++_0x517bc3);}(a801_0x517b,0x9c));const a801_0x3bab=function(_0x507f56,_0x517bc3){_0x507f56=_0x507f56-0x0;let _0x3bab91=a801_0x517b[_0x507f56];return _0x3bab91;};const _0x1c38df=a801_0x3bab;'use strict';const moment=require('moment'),util=require(_0x1c38df('0x30')),_=require(_0x1c38df('0x70')),qs=require(_0x1c38df('0x6a')),logger=require(_0x1c38df('0x31'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),interaction_log=require(_0x1c38df('0x31'))(_0x1c38df('0x1d')),db=require(_0x1c38df('0x5a'))['db'],{Op}=require(_0x1c38df('0x4e'));require(_0x1c38df('0x2f'))[_0x1c38df('0x0')](socket);const jayson=require(_0x1c38df('0x5e')),client=jayson[_0x1c38df('0x48')][_0x1c38df('0x5b')]({'port':0x232c}),client9002=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x17ebc1,_0x2a8121,_0x2da57c,_0x585aa4){return new Promise(function(_0x26ea7a,_0xd73601){const _0x309201=a801_0x3bab,_0x23f11d=_0x585aa4||client;return _0x23f11d[_0x309201('0x39')](_0x17ebc1,_0x2da57c)[_0x309201('0x4a')](function(_0x55cb3f){const _0x1a295a=_0x309201;logger[_0x1a295a('0x35')]('WhatsappMessage,\x20%s,\x20%s',_0x2a8121,_0x1a295a('0x57')),logger[_0x1a295a('0xd')]('WhatsappMessage,\x20%s,\x20%s,\x20%s',_0x2a8121,_0x1a295a('0x57'),JSON[_0x1a295a('0x3d')](_0x55cb3f));if(_0x55cb3f[_0x1a295a('0x21')]){if(_0x55cb3f[_0x1a295a('0x21')][_0x1a295a('0x65')]===0x1f4)return logger[_0x1a295a('0x21')](_0x1a295a('0x32'),_0x2a8121,_0x55cb3f[_0x1a295a('0x21')][_0x1a295a('0xc')]),_0xd73601(_0x55cb3f[_0x1a295a('0x21')][_0x1a295a('0xc')]);return logger[_0x1a295a('0x21')](_0x1a295a('0x32'),_0x2a8121,_0x55cb3f[_0x1a295a('0x21')]['message']),_0x26ea7a(_0x55cb3f['error'][_0x1a295a('0xc')]);}else logger[_0x1a295a('0x35')]('WhatsappMessage,\x20%s,\x20%s',_0x2a8121,_0x1a295a('0x57')),_0x26ea7a(_0x55cb3f[_0x1a295a('0x6b')][_0x1a295a('0xc')]);})[_0x309201('0x5')](function(_0x5de5e0){const _0x58f11c=_0x309201;logger['error'](_0x58f11c('0x32'),_0x2a8121,_0x5de5e0),_0xd73601(_0x5de5e0);});});}function respondWithResult(_0x53932f,_0x25ee79){return _0x25ee79=_0x25ee79||0xc8,function(_0x20647c){const _0x33fb9a=a801_0x3bab;if(_0x20647c)return _0x53932f[_0x33fb9a('0x28')](_0x25ee79)[_0x33fb9a('0xb')](_0x20647c);};}function respondWithFilteredResult(_0x3a4cf2,_0x33e9a5){return function(_0xc62280){const _0x3d98ad=a801_0x3bab;if(_0xc62280){const _0x9814d4=_0xc62280[_0x3d98ad('0x19')],_0x5172b0=_0x33e9a5[_0x3d98ad('0x33')];let _0x5dfd2f=_0x33e9a5[_0x3d98ad('0x33')]+_0x33e9a5[_0x3d98ad('0x52')],_0x31f300;return _0x5dfd2f>=_0x9814d4?(_0x5dfd2f=_0x9814d4,_0x31f300=0xc8):_0x31f300=0xce,_0x3a4cf2[_0x3d98ad('0x28')](_0x31f300),_0x3a4cf2[_0x3d98ad('0x5c')](_0x3d98ad('0x45'),_0x5172b0+'-'+_0x5dfd2f+'/'+_0x9814d4)[_0x3d98ad('0xb')](_0xc62280);}return null;};}function saveUpdates(_0x42b8dd){return function(_0x1635c4){const _0x4bc30b=a801_0x3bab;if(_0x1635c4)return _0x1635c4[_0x4bc30b('0x61')](_0x42b8dd)[_0x4bc30b('0x4a')](function(_0x21df95){return _0x21df95;});return null;};}function removeEntity(_0x57cf60){return function(_0x33ca30){const _0x209b56=a801_0x3bab;if(_0x33ca30)return _0x33ca30[_0x209b56('0x43')]()[_0x209b56('0x4a')](function(){const _0x316ef5=_0x209b56;_0x57cf60[_0x316ef5('0x28')](0xcc)[_0x316ef5('0x12')]();});};}function handleEntityNotFound(_0x17bcd7){return function(_0x1074f7){return!_0x1074f7&&_0x17bcd7['sendStatus'](0x194),_0x1074f7;};}function handleError(_0x1a7314,_0x1cdc66){return _0x1cdc66=_0x1cdc66||0x1f4,function(_0x2e4223){const _0xbfc7f0=a801_0x3bab;logger[_0xbfc7f0('0x21')](_0x2e4223[_0xbfc7f0('0x64')]),_0x2e4223[_0xbfc7f0('0x69')]&&delete _0x2e4223['name'],_0x1a7314[_0xbfc7f0('0x28')](_0x1cdc66)[_0xbfc7f0('0x26')](_0x2e4223);};}exports[_0x1c38df('0x13')]=function(_0x479907,_0x235754){const _0x5b6a99=_0x1c38df;let _0x2e5cee={};const _0x3d6097={},_0x4acaeb={'count':0x0,'rows':[]},_0x48bc57=_[_0x5b6a99('0x2b')](db['WhatsappMessage'][_0x5b6a99('0x2')],function(_0xfed1ac){const _0x27a02b=_0x5b6a99;return{'name':_0xfed1ac['fieldName'],'type':_0xfed1ac[_0x27a02b('0x36')][_0x27a02b('0x11')]};});_0x3d6097['model']=_[_0x5b6a99('0x2b')](_0x48bc57,_0x5b6a99('0x69')),_0x3d6097[_0x5b6a99('0x1f')]=_[_0x5b6a99('0x53')](_0x479907[_0x5b6a99('0x1f')]),_0x3d6097[_0x5b6a99('0x17')]=_[_0x5b6a99('0x4d')](_0x3d6097[_0x5b6a99('0x7')],_0x3d6097['query']),_0x2e5cee[_0x5b6a99('0x60')]=_[_0x5b6a99('0x4d')](_0x3d6097[_0x5b6a99('0x7')],qs[_0x5b6a99('0x23')](_0x479907[_0x5b6a99('0x1f')]['fields'])),_0x2e5cee[_0x5b6a99('0x60')]=_0x2e5cee[_0x5b6a99('0x60')][_0x5b6a99('0x6')]?_0x2e5cee['attributes']:_0x3d6097[_0x5b6a99('0x7')];typeof _0x479907[_0x5b6a99('0x1f')][_0x5b6a99('0xe')]==='undefined'&&(_0x2e5cee[_0x5b6a99('0x52')]=qs[_0x5b6a99('0x52')](_0x479907[_0x5b6a99('0x1f')][_0x5b6a99('0x52')]),_0x2e5cee[_0x5b6a99('0x33')]=qs[_0x5b6a99('0x33')](_0x479907['query'][_0x5b6a99('0x33')]));_0x2e5cee[_0x5b6a99('0x3a')]=qs[_0x5b6a99('0x47')](_0x479907[_0x5b6a99('0x1f')][_0x5b6a99('0x47')]),_0x2e5cee[_0x5b6a99('0x14')]=qs[_0x5b6a99('0x17')](_[_0x5b6a99('0x41')](_0x479907[_0x5b6a99('0x1f')],_0x3d6097[_0x5b6a99('0x17')]),_0x48bc57);_0x479907[_0x5b6a99('0x1f')]['filter']&&(_0x2e5cee['where']=_[_0x5b6a99('0x6f')](_0x2e5cee[_0x5b6a99('0x14')],{[Op['or']]:_[_0x5b6a99('0x2b')](_0x48bc57,function(_0x1a4370){const _0x2ccca3=_0x5b6a99;if(_0x1a4370[_0x2ccca3('0x36')]!==_0x2ccca3('0x1e')){const _0x5c8ef8={};return _0x5c8ef8[_0x1a4370[_0x2ccca3('0x69')]]={[Op[_0x2ccca3('0x2a')]]:'%'+_0x479907[_0x2ccca3('0x1f')][_0x2ccca3('0x6d')]+'%'},_0x5c8ef8;}})}));_0x2e5cee=_[_0x5b6a99('0x6f')]({},_0x2e5cee,_0x479907[_0x5b6a99('0x44')]);const _0x4c6990={'where':_0x2e5cee['where']};return db[_0x5b6a99('0x4')]['count'](_0x4c6990)[_0x5b6a99('0x4a')](function(_0x28f730){const _0x163138=_0x5b6a99;return _0x4acaeb[_0x163138('0x19')]=_0x28f730,_0x479907[_0x163138('0x1f')]['includeAll']&&(_0x2e5cee[_0x163138('0x4c')]=[{'all':!![]}]),db[_0x163138('0x4')][_0x163138('0x66')](_0x2e5cee);})[_0x5b6a99('0x4a')](function(_0x2edfd6){const _0x437b6d=_0x5b6a99;return _0x4acaeb[_0x437b6d('0x1a')]=_0x2edfd6,_0x4acaeb;})[_0x5b6a99('0x4a')](respondWithFilteredResult(_0x235754,_0x2e5cee))[_0x5b6a99('0x5')](handleError(_0x235754,null));},exports[_0x1c38df('0x37')]=function(_0x1b1509,_0xf06fa9){const _0x2e8836=_0x1c38df;let _0x48f575={'raw':!![],'where':{'id':_0x1b1509[_0x2e8836('0x67')]['id']}};const _0x13a429={};return _0x13a429['model']=_[_0x2e8836('0x53')](db['WhatsappMessage'][_0x2e8836('0x2')]),_0x13a429[_0x2e8836('0x1f')]=_[_0x2e8836('0x53')](_0x1b1509[_0x2e8836('0x1f')]),_0x13a429[_0x2e8836('0x17')]=_[_0x2e8836('0x4d')](_0x13a429[_0x2e8836('0x7')],_0x13a429[_0x2e8836('0x1f')]),_0x48f575[_0x2e8836('0x60')]=_['intersection'](_0x13a429[_0x2e8836('0x7')],qs[_0x2e8836('0x23')](_0x1b1509['query']['fields'])),_0x48f575[_0x2e8836('0x60')]=_0x48f575[_0x2e8836('0x60')][_0x2e8836('0x6')]?_0x48f575[_0x2e8836('0x60')]:_0x13a429['model'],_0x1b1509[_0x2e8836('0x1f')][_0x2e8836('0x54')]&&(_0x48f575[_0x2e8836('0x4c')]=[{'all':!![]}]),_0x48f575=_['merge']({},_0x48f575,_0x1b1509[_0x2e8836('0x44')]),db['WhatsappMessage'][_0x2e8836('0x40')](_0x48f575)[_0x2e8836('0x4a')](handleEntityNotFound(_0xf06fa9,null))['then'](respondWithResult(_0xf06fa9,null))[_0x2e8836('0x5')](handleError(_0xf06fa9,null));},exports['create']=function(_0x25af30,_0x5cacce){const _0x3c5db0=_0x1c38df;return db[_0x3c5db0('0x4')][_0x3c5db0('0x4f')](_0x25af30[_0x3c5db0('0x58')],{})[_0x3c5db0('0x4a')](respondWithResult(_0x5cacce,0xc9))[_0x3c5db0('0x5')](handleError(_0x5cacce,null));},exports[_0x1c38df('0x61')]=function(_0x55c6b3,_0x3ab2da){const _0x6655c1=_0x1c38df;return _0x55c6b3[_0x6655c1('0x58')]['id']&&delete _0x55c6b3['body']['id'],db[_0x6655c1('0x4')][_0x6655c1('0x40')]({'where':{'id':_0x55c6b3[_0x6655c1('0x67')]['id']}})['then'](handleEntityNotFound(_0x3ab2da,null))[_0x6655c1('0x4a')](saveUpdates(_0x55c6b3[_0x6655c1('0x58')],null))[_0x6655c1('0x4a')](respondWithResult(_0x3ab2da,null))[_0x6655c1('0x5')](handleError(_0x3ab2da,null));},exports[_0x1c38df('0x43')]=function(_0x268cb4,_0x389392){const _0x1a9145=_0x1c38df;return db[_0x1a9145('0x4')][_0x1a9145('0x40')]({'where':{'id':_0x268cb4['params']['id']}})[_0x1a9145('0x4a')](handleEntityNotFound(_0x389392,null))[_0x1a9145('0x4a')](removeEntity(_0x389392,null))[_0x1a9145('0x5')](handleError(_0x389392,null));},exports[_0x1c38df('0x27')]=function(_0x2794d1,_0x5087f4){const _0x180f96=_0x1c38df;return db['WhatsappMessage'][_0x180f96('0x27')]()[_0x180f96('0x4a')](respondWithResult(_0x5087f4,null))[_0x180f96('0x5')](handleError(_0x5087f4,null));},exports[_0x1c38df('0x9')]=function(_0x34ba4c,_0x10fee6){const _0x57e8a0=_0x1c38df,_0x33281b={'channel':'whatsapp'};return _0x34ba4c[_0x57e8a0('0x58')]['id']&&delete _0x34ba4c[_0x57e8a0('0x58')]['id'],_0x34ba4c['body'][_0x57e8a0('0x3f')]=!![],_0x34ba4c[_0x57e8a0('0x58')]['readAt']=moment()['format'](_0x57e8a0('0x49')),_0x34ba4c['body']['UserId']=_0x34ba4c[_0x57e8a0('0x58')][_0x57e8a0('0x18')]||_0x34ba4c[_0x57e8a0('0x1b')]['id'],db[_0x57e8a0('0x4')][_0x57e8a0('0x40')]({'where':{'id':_0x34ba4c[_0x57e8a0('0x67')]['id'],'UserId':null},'include':[{'model':db[_0x57e8a0('0x20')],'as':_0x57e8a0('0x3e')}]})[_0x57e8a0('0x4a')](handleEntityNotFound(_0x10fee6,null))[_0x57e8a0('0x4a')](saveUpdates(_0x34ba4c['body'],null))[_0x57e8a0('0x4a')](function(_0x437be6){const _0x2cf0d3=_0x57e8a0;if(_0x437be6)return _0x33281b[_0x2cf0d3('0xc')]=_0x437be6[_0x2cf0d3('0x1')]({'plain':!![]}),db[_0x2cf0d3('0x38')][_0x2cf0d3('0x40')]({'where':{'id':_0x437be6[_0x2cf0d3('0x8')]}});return null;})[_0x57e8a0('0x4a')](handleEntityNotFound(_0x10fee6,null))[_0x57e8a0('0x4a')](function(_0x5024f0){const _0x453bf1=_0x57e8a0;if(_0x5024f0)return _0x5024f0[_0x453bf1('0x61')]({'UserId':_0x34ba4c[_0x453bf1('0x58')][_0x453bf1('0x18')],'read1stAt':_[_0x453bf1('0x1c')](_0x5024f0[_0x453bf1('0xa')])?moment()[_0x453bf1('0x3c')](_0x453bf1('0x49')):undefined});return null;})[_0x57e8a0('0x4a')](function(_0xe9d5a8){const _0x2ce28e=_0x57e8a0;if(_0xe9d5a8)return _0x33281b[_0x2ce28e('0x6e')]=_0xe9d5a8['get']({'plain':!![]}),interaction_log[_0x2ce28e('0x35')]('[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x34ba4c['user']['id'],_0x34ba4c[_0x2ce28e('0x1b')][_0x2ce28e('0x69')],_0x34ba4c[_0x2ce28e('0x1b')][_0x2ce28e('0x16')],_0x33281b[_0x2ce28e('0x6e')]['id'],_0x34ba4c[_0x2ce28e('0x58')]?JSON[_0x2ce28e('0x3d')](_0x34ba4c['body']):_0x2ce28e('0x5f')),respondWithRpcPromise(_0x2ce28e('0x68'),_0x2ce28e('0x2c'),_0x33281b);return null;})[_0x57e8a0('0x4a')](function(_0x1a1479){const _0x4ad7ff=_0x57e8a0;if(_0x1a1479){if(_0x34ba4c[_0x4ad7ff('0x58')][_0x4ad7ff('0x42')])return _0x33281b['message'][_0x4ad7ff('0xf')]=util['format'](_0x4ad7ff('0x34'),_0x34ba4c[_0x4ad7ff('0x1b')][_0x4ad7ff('0x69')]),_0x33281b[_0x4ad7ff('0xc')][_0x4ad7ff('0x24')]=_0x33281b[_0x4ad7ff('0x24')],_0x33281b[_0x4ad7ff('0xc')][_0x4ad7ff('0x46')]='accept',respondWithRpcPromise(_0x4ad7ff('0x3b'),_0x4ad7ff('0x3b'),{'event':_0x4ad7ff('0x3'),'message':_0x33281b['message']},client9002)['then'](function(){return _0x33281b;});return _0x33281b;}return null;})['then'](respondWithResult(_0x10fee6,null))['catch'](handleError(_0x10fee6,null));},exports[_0x1c38df('0x62')]=function(_0x5475dd,_0x1c5d8f){const _0x1e5b65=_0x1c38df,_0x3181cf={'agent':{},'channel':_0x1e5b65('0x56')};return _0x5475dd[_0x1e5b65('0x58')]['id']&&delete _0x5475dd[_0x1e5b65('0x58')]['id'],_0x5475dd[_0x1e5b65('0x58')][_0x1e5b65('0x18')]=_0x5475dd['body'][_0x1e5b65('0x18')]||_0x5475dd['user']['id'],_0x3181cf[_0x1e5b65('0x2e')]['id']=_0x5475dd[_0x1e5b65('0x58')][_0x1e5b65('0x18')],db[_0x1e5b65('0x4')]['findOne']({'where':{'id':_0x5475dd[_0x1e5b65('0x67')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x1c5d8f,null))[_0x1e5b65('0x4a')](function(_0x165275){const _0x4e9974=_0x1e5b65;if(_0x165275)return _0x3181cf['message']=_0x165275[_0x4e9974('0x1')]({'plain':!![]}),db[_0x4e9974('0x38')][_0x4e9974('0x40')]({'where':{'id':_0x165275['WhatsappInteractionId']}});return null;})[_0x1e5b65('0x4a')](handleEntityNotFound(_0x1c5d8f,null))[_0x1e5b65('0x4a')](function(_0x405e8d){const _0x43ea18=_0x1e5b65;if(_0x405e8d)return _0x3181cf[_0x43ea18('0x6e')]=_0x405e8d['get']({'plain':!![]}),interaction_log['info'](_0x43ea18('0x5d'),_0x5475dd['user']['id'],_0x5475dd[_0x43ea18('0x1b')][_0x43ea18('0x69')],_0x5475dd['user'][_0x43ea18('0x16')],_0x3181cf[_0x43ea18('0x6e')]['id'],_0x5475dd['body']?JSON[_0x43ea18('0x3d')](_0x5475dd['body']):_0x43ea18('0x5f')),respondWithRpcPromise(_0x43ea18('0x15'),_0x43ea18('0x22'),_0x3181cf);return null;})[_0x1e5b65('0x4a')](function(_0x2a27e1){const _0x708239=_0x1e5b65;if(_0x2a27e1)return _0x2a27e1['message'][_0x708239('0xf')]=util['format']('SIP/%s',_0x5475dd['user']['name']),_0x2a27e1['message'][_0x708239('0x24')]=_0x3181cf['channel'],_0x2a27e1[_0x708239('0xc')][_0x708239('0x46')]=_0x708239('0x62'),respondWithRpcPromise(_0x708239('0x3b'),_0x708239('0x3b'),{'event':_0x708239('0x29'),'message':_0x2a27e1[_0x708239('0xc')]},client9002),_0x3181cf;return null;})[_0x1e5b65('0x4a')](respondWithResult(_0x1c5d8f,null))[_0x1e5b65('0x5')](handleError(_0x1c5d8f,null));},exports[_0x1c38df('0x28')]=function(_0x55cefd,_0x22d750){const _0x9a09a5=_0x1c38df;_0x55cefd[_0x9a09a5('0x58')]['id']&&delete _0x55cefd[_0x9a09a5('0x58')]['id'];let _0x9d8c8;return db[_0x9a09a5('0x4')][_0x9a09a5('0x40')]({'where':{'id':_0x55cefd[_0x9a09a5('0x67')]['id']}})['then'](handleEntityNotFound(_0x22d750,null))['then'](function(_0x1f19ce){const _0x40cad5=_0x9a09a5;if(_0x1f19ce)return _0x9d8c8=_0x1f19ce,db[_0x40cad5('0x6c')]['findOne']({'where':{'id':_0x1f19ce[_0x40cad5('0x55')]}});})[_0x9a09a5('0x4a')](handleEntityNotFound(_0x22d750,null))[_0x9a09a5('0x4a')](function(_0x8476d3){const _0x19bd7c=_0x9a09a5;if(_0x8476d3){logger[_0x19bd7c('0xd')](_0x19bd7c('0x25'),'status',_0x19bd7c('0x4b'),_0x8476d3[_0x19bd7c('0x36')],util['inspect'](_0x55cefd[_0x19bd7c('0x58')],{'showHidden':![],'depth':null}));switch(_0x8476d3[_0x19bd7c('0x36')]){case _0x19bd7c('0x51'):if(_0x55cefd[_0x19bd7c('0x58')][_0x19bd7c('0x10')]&&_0x55cefd[_0x19bd7c('0x58')][_0x19bd7c('0x10')]===_0x9d8c8[_0x19bd7c('0x59')]&&_0x55cefd[_0x19bd7c('0x58')][_0x19bd7c('0x50')]&&_0x55cefd[_0x19bd7c('0x58')]['MessageStatus']===_0x19bd7c('0x3f'))return _0x9d8c8[_0x19bd7c('0x61')]({'read':!![]});else logger[_0x19bd7c('0x21')](_0x19bd7c('0x2d'),_0x19bd7c('0x28'),_0x19bd7c('0x51'),util[_0x19bd7c('0x63')](_0x55cefd[_0x19bd7c('0x58')],{'showHidden':![],'depth':null}));break;}return _0x9d8c8;}})['then'](respondWithResult(_0x22d750,null))[_0x9a09a5('0x5')](handleError(_0x22d750,null));}; \ No newline at end of file +const a801_0x5802=['../../mysqldb','util','WhatsappAccount','rawAttributes','intersection','get','WhatsappMessage','read','../../rediscache','WhatsappMessage,\x20%s,\x20%s','Contact','describe','fieldName','../../config/logger','event','RejectMessage','WhatsappInteraction','rows','whatsapp-interactions','../../components/parsers/qs','MessageSid','received\x20delivery\x20report\x20from','manual','SIP/%s','includeAll','api','./whatsappMessage.socket','code','message','type','stringify','options','UserId','include','acceptmessage','YYYY-MM-DD\x20HH:mm:ss','format','index','WhatsappMessage,\x20%s,\x20%s,\x20%s','Content-Range','[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','jayson/promise','WhatsappInteractionId','WhatsappAccountId','pick','model','fields','rejectmessage','role','update','channel','whatsapp','rejectMessage','sort','interaction','read1stAt','WhatsappAccount,\x20%s,\x20%s,\x20%s','then','EventManager','json','catch','undefined','http','destroy','interface','error','where','findOne','client','end','send','limit','attributes','null','MessageStatus','info','AcceptMessage','status','sequelize','messageId','request\x20sent','reject','acceptMessage','twilio','request','query','params','set','findAll','key','filter','nolimit','moment','create','merge','WhatsppMessage,\x20%s,\x20%s,\x20%s','count','user','agent','like','debug','offset','CmContact','map','accept','stack','inspect','body','filters','name'];(function(_0x40e343,_0x5802ff){const _0x2b9151=function(_0x528958){while(--_0x528958){_0x40e343['push'](_0x40e343['shift']());}};_0x2b9151(++_0x5802ff);}(a801_0x5802,0x1a0));const a801_0x2b91=function(_0x40e343,_0x5802ff){_0x40e343=_0x40e343-0x0;let _0x2b9151=a801_0x5802[_0x40e343];return _0x2b9151;};const _0x2da178=a801_0x2b91;'use strict';const moment=require(_0x2da178('0x6')),util=require(_0x2da178('0x19')),_=require('lodash'),qs=require(_0x2da178('0x2b')),logger=require('../../config/logger')(_0x2da178('0x31')),{getSocket}=require(_0x2da178('0x20')),socket=getSocket(),interaction_log=require(_0x2da178('0x25'))(_0x2da178('0x2a')),db=require(_0x2da178('0x18'))['db'],{Op}=require(_0x2da178('0x66'));require(_0x2da178('0x32'))['register'](socket);const jayson=require(_0x2da178('0x41')),client=jayson[_0x2da178('0x5c')][_0x2da178('0x56')]({'port':0x232c}),client9002=jayson[_0x2da178('0x5c')][_0x2da178('0x56')]({'port':0x232a});function respondWithRpcPromise(_0x528958,_0x30ef88,_0xfee87d,_0xc904c6){return new Promise(function(_0x46f406,_0x447667){const _0x56d71f=a801_0x2b91,_0x1df487=_0xc904c6||client;return _0x1df487[_0x56d71f('0x6c')](_0x528958,_0xfee87d)[_0x56d71f('0x51')](function(_0x1c002b){const _0x4eee3b=_0x56d71f;logger[_0x4eee3b('0x63')](_0x4eee3b('0x21'),_0x30ef88,_0x4eee3b('0x68')),logger[_0x4eee3b('0xe')](_0x4eee3b('0x3e'),_0x30ef88,'request\x20sent',JSON[_0x4eee3b('0x36')](_0x1c002b));if(_0x1c002b[_0x4eee3b('0x59')]){if(_0x1c002b[_0x4eee3b('0x59')][_0x4eee3b('0x33')]===0x1f4)return logger['error'](_0x4eee3b('0x21'),_0x30ef88,_0x1c002b[_0x4eee3b('0x59')][_0x4eee3b('0x34')]),_0x447667(_0x1c002b[_0x4eee3b('0x59')][_0x4eee3b('0x34')]);return logger['error'](_0x4eee3b('0x21'),_0x30ef88,_0x1c002b[_0x4eee3b('0x59')][_0x4eee3b('0x34')]),_0x46f406(_0x1c002b[_0x4eee3b('0x59')][_0x4eee3b('0x34')]);}else logger[_0x4eee3b('0x63')]('WhatsappMessage,\x20%s,\x20%s',_0x30ef88,_0x4eee3b('0x68')),_0x46f406(_0x1c002b['result']['message']);})[_0x56d71f('0x54')](function(_0x5e1119){const _0x4d3c18=_0x56d71f;logger[_0x4d3c18('0x59')](_0x4d3c18('0x21'),_0x30ef88,_0x5e1119),_0x447667(_0x5e1119);});});}function respondWithResult(_0xbcd3cf,_0x5947d1){return _0x5947d1=_0x5947d1||0xc8,function(_0x23e69f){const _0x391c5c=a801_0x2b91;if(_0x23e69f)return _0xbcd3cf[_0x391c5c('0x65')](_0x5947d1)[_0x391c5c('0x53')](_0x23e69f);};}function respondWithFilteredResult(_0x436ce2,_0x163c11){return function(_0x5d274c){const _0xe3ed84=a801_0x2b91;if(_0x5d274c){const _0x256ab3=_0x5d274c['count'],_0x54afbf=_0x163c11[_0xe3ed84('0xf')];let _0x51eabf=_0x163c11[_0xe3ed84('0xf')]+_0x163c11[_0xe3ed84('0x5f')],_0x4c0c85;return _0x51eabf>=_0x256ab3?(_0x51eabf=_0x256ab3,_0x4c0c85=0xc8):_0x4c0c85=0xce,_0x436ce2[_0xe3ed84('0x65')](_0x4c0c85),_0x436ce2[_0xe3ed84('0x1')](_0xe3ed84('0x3f'),_0x54afbf+'-'+_0x51eabf+'/'+_0x256ab3)['json'](_0x5d274c);}return null;};}function saveUpdates(_0x111ad5){return function(_0x3918dc){const _0x1ff7f3=a801_0x2b91;if(_0x3918dc)return _0x3918dc[_0x1ff7f3('0x49')](_0x111ad5)[_0x1ff7f3('0x51')](function(_0x141ce9){return _0x141ce9;});return null;};}function removeEntity(_0xd26859){return function(_0x58b7db){const _0x392c1c=a801_0x2b91;if(_0x58b7db)return _0x58b7db[_0x392c1c('0x57')]()[_0x392c1c('0x51')](function(){const _0x50f04b=_0x392c1c;_0xd26859[_0x50f04b('0x65')](0xcc)[_0x50f04b('0x5d')]();});};}function handleEntityNotFound(_0x57b5e5){return function(_0x377e76){return!_0x377e76&&_0x57b5e5['sendStatus'](0x194),_0x377e76;};}function handleError(_0xab0788,_0x1b51e8){return _0x1b51e8=_0x1b51e8||0x1f4,function(_0x31eb46){const _0x32593e=a801_0x2b91;logger[_0x32593e('0x59')](_0x31eb46[_0x32593e('0x13')]),_0x31eb46['name']&&delete _0x31eb46[_0x32593e('0x17')],_0xab0788[_0x32593e('0x65')](_0x1b51e8)[_0x32593e('0x5e')](_0x31eb46);};}exports[_0x2da178('0x3d')]=function(_0x149b00,_0xcee25c){const _0x2a0d21=_0x2da178;let _0x1432bb={};const _0x3b5a33={},_0x49c60f={'count':0x0,'rows':[]},_0x17f88d=_[_0x2a0d21('0x11')](db['WhatsappMessage'][_0x2a0d21('0x1b')],function(_0x5770d9){const _0x2a0ffa=_0x2a0d21;return{'name':_0x5770d9[_0x2a0ffa('0x24')],'type':_0x5770d9[_0x2a0ffa('0x35')][_0x2a0ffa('0x3')]};});_0x3b5a33['model']=_['map'](_0x17f88d,_0x2a0d21('0x17')),_0x3b5a33[_0x2a0d21('0x6d')]=_['keys'](_0x149b00['query']),_0x3b5a33[_0x2a0d21('0x16')]=_[_0x2a0d21('0x1c')](_0x3b5a33['model'],_0x3b5a33[_0x2a0d21('0x6d')]),_0x1432bb[_0x2a0d21('0x60')]=_[_0x2a0d21('0x1c')](_0x3b5a33[_0x2a0d21('0x45')],qs['fields'](_0x149b00['query'][_0x2a0d21('0x46')])),_0x1432bb['attributes']=_0x1432bb['attributes']['length']?_0x1432bb[_0x2a0d21('0x60')]:_0x3b5a33[_0x2a0d21('0x45')];typeof _0x149b00[_0x2a0d21('0x6d')][_0x2a0d21('0x5')]===_0x2a0d21('0x55')&&(_0x1432bb['limit']=qs['limit'](_0x149b00[_0x2a0d21('0x6d')]['limit']),_0x1432bb['offset']=qs[_0x2a0d21('0xf')](_0x149b00[_0x2a0d21('0x6d')][_0x2a0d21('0xf')]));_0x1432bb['order']=qs[_0x2a0d21('0x4d')](_0x149b00[_0x2a0d21('0x6d')]['sort']),_0x1432bb['where']=qs['filters'](_[_0x2a0d21('0x44')](_0x149b00[_0x2a0d21('0x6d')],_0x3b5a33[_0x2a0d21('0x16')]),_0x17f88d);_0x149b00[_0x2a0d21('0x6d')][_0x2a0d21('0x4')]&&(_0x1432bb[_0x2a0d21('0x5a')]=_[_0x2a0d21('0x8')](_0x1432bb[_0x2a0d21('0x5a')],{[Op['or']]:_[_0x2a0d21('0x11')](_0x17f88d,function(_0x2f35d0){const _0x51446a=_0x2a0d21;if(_0x2f35d0['type']!=='VIRTUAL'){const _0x536c1b={};return _0x536c1b[_0x2f35d0[_0x51446a('0x17')]]={[Op[_0x51446a('0xd')]]:'%'+_0x149b00[_0x51446a('0x6d')]['filter']+'%'},_0x536c1b;}})}));_0x1432bb=_[_0x2a0d21('0x8')]({},_0x1432bb,_0x149b00[_0x2a0d21('0x37')]);const _0x37cff5={'where':_0x1432bb[_0x2a0d21('0x5a')]};return db[_0x2a0d21('0x1e')][_0x2a0d21('0xa')](_0x37cff5)[_0x2a0d21('0x51')](function(_0x3c137a){const _0x5cadb2=_0x2a0d21;return _0x49c60f['count']=_0x3c137a,_0x149b00[_0x5cadb2('0x6d')][_0x5cadb2('0x30')]&&(_0x1432bb[_0x5cadb2('0x39')]=[{'all':!![]}]),db[_0x5cadb2('0x1e')][_0x5cadb2('0x2')](_0x1432bb);})['then'](function(_0x1250c2){const _0x5aabe0=_0x2a0d21;return _0x49c60f[_0x5aabe0('0x29')]=_0x1250c2,_0x49c60f;})[_0x2a0d21('0x51')](respondWithFilteredResult(_0xcee25c,_0x1432bb))[_0x2a0d21('0x54')](handleError(_0xcee25c,null));},exports['show']=function(_0x5b3d29,_0x1b5ec4){const _0x51b9a8=_0x2da178;let _0x3b7cea={'raw':!![],'where':{'id':_0x5b3d29[_0x51b9a8('0x0')]['id']}};const _0x329f32={};return _0x329f32[_0x51b9a8('0x45')]=_['keys'](db['WhatsappMessage'][_0x51b9a8('0x1b')]),_0x329f32['query']=_['keys'](_0x5b3d29[_0x51b9a8('0x6d')]),_0x329f32[_0x51b9a8('0x16')]=_[_0x51b9a8('0x1c')](_0x329f32[_0x51b9a8('0x45')],_0x329f32[_0x51b9a8('0x6d')]),_0x3b7cea[_0x51b9a8('0x60')]=_[_0x51b9a8('0x1c')](_0x329f32[_0x51b9a8('0x45')],qs[_0x51b9a8('0x46')](_0x5b3d29[_0x51b9a8('0x6d')][_0x51b9a8('0x46')])),_0x3b7cea['attributes']=_0x3b7cea[_0x51b9a8('0x60')]['length']?_0x3b7cea[_0x51b9a8('0x60')]:_0x329f32[_0x51b9a8('0x45')],_0x5b3d29[_0x51b9a8('0x6d')][_0x51b9a8('0x30')]&&(_0x3b7cea[_0x51b9a8('0x39')]=[{'all':!![]}]),_0x3b7cea=_[_0x51b9a8('0x8')]({},_0x3b7cea,_0x5b3d29['options']),db[_0x51b9a8('0x1e')][_0x51b9a8('0x5b')](_0x3b7cea)['then'](handleEntityNotFound(_0x1b5ec4,null))[_0x51b9a8('0x51')](respondWithResult(_0x1b5ec4,null))['catch'](handleError(_0x1b5ec4,null));},exports['create']=function(_0x170327,_0x20ca3a){const _0x5e7709=_0x2da178;return db[_0x5e7709('0x1e')][_0x5e7709('0x7')](_0x170327[_0x5e7709('0x15')],{})[_0x5e7709('0x51')](respondWithResult(_0x20ca3a,0xc9))[_0x5e7709('0x54')](handleError(_0x20ca3a,null));},exports['update']=function(_0x276b2e,_0x1b541e){const _0x39abab=_0x2da178;return _0x276b2e[_0x39abab('0x15')]['id']&&delete _0x276b2e[_0x39abab('0x15')]['id'],db[_0x39abab('0x1e')][_0x39abab('0x5b')]({'where':{'id':_0x276b2e[_0x39abab('0x0')]['id']}})[_0x39abab('0x51')](handleEntityNotFound(_0x1b541e,null))['then'](saveUpdates(_0x276b2e['body'],null))[_0x39abab('0x51')](respondWithResult(_0x1b541e,null))[_0x39abab('0x54')](handleError(_0x1b541e,null));},exports['destroy']=function(_0x3f8263,_0x7e2ae9){const _0x51783e=_0x2da178;return db[_0x51783e('0x1e')][_0x51783e('0x5b')]({'where':{'id':_0x3f8263['params']['id']}})['then'](handleEntityNotFound(_0x7e2ae9,null))[_0x51783e('0x51')](removeEntity(_0x7e2ae9,null))[_0x51783e('0x54')](handleError(_0x7e2ae9,null));},exports[_0x2da178('0x23')]=function(_0x210efc,_0xceb4b7){const _0x4394b9=_0x2da178;return db[_0x4394b9('0x1e')][_0x4394b9('0x23')]()[_0x4394b9('0x51')](respondWithResult(_0xceb4b7,null))[_0x4394b9('0x54')](handleError(_0xceb4b7,null));},exports[_0x2da178('0x12')]=function(_0x4074e1,_0x1a675c){const _0x23a220=_0x2da178,_0x37903c={'channel':_0x23a220('0x4b')};return _0x4074e1[_0x23a220('0x15')]['id']&&delete _0x4074e1[_0x23a220('0x15')]['id'],_0x4074e1[_0x23a220('0x15')][_0x23a220('0x1f')]=!![],_0x4074e1['body']['readAt']=moment()[_0x23a220('0x3c')](_0x23a220('0x3b')),_0x4074e1[_0x23a220('0x15')][_0x23a220('0x38')]=_0x4074e1['body']['UserId']||_0x4074e1['user']['id'],db[_0x23a220('0x1e')][_0x23a220('0x5b')]({'where':{'id':_0x4074e1['params']['id'],'UserId':null},'include':[{'model':db[_0x23a220('0x10')],'as':_0x23a220('0x22')}]})['then'](handleEntityNotFound(_0x1a675c,null))[_0x23a220('0x51')](saveUpdates(_0x4074e1[_0x23a220('0x15')],null))[_0x23a220('0x51')](function(_0x229d06){const _0x3c5aea=_0x23a220;if(_0x229d06)return _0x37903c[_0x3c5aea('0x34')]=_0x229d06['get']({'plain':!![]}),db[_0x3c5aea('0x28')][_0x3c5aea('0x5b')]({'where':{'id':_0x229d06[_0x3c5aea('0x42')]}});return null;})['then'](handleEntityNotFound(_0x1a675c,null))[_0x23a220('0x51')](function(_0x5a45fc){const _0xe70ac3=_0x23a220;if(_0x5a45fc)return _0x5a45fc['update']({'UserId':_0x4074e1[_0xe70ac3('0x15')]['UserId'],'read1stAt':_['isNil'](_0x5a45fc[_0xe70ac3('0x4f')])?moment()[_0xe70ac3('0x3c')](_0xe70ac3('0x3b')):undefined});return null;})['then'](function(_0x524bd0){const _0x322073=_0x23a220;if(_0x524bd0)return _0x37903c[_0x322073('0x4e')]=_0x524bd0['get']({'plain':!![]}),interaction_log['info'](_0x322073('0x40'),_0x4074e1['user']['id'],_0x4074e1[_0x322073('0xb')][_0x322073('0x17')],_0x4074e1[_0x322073('0xb')][_0x322073('0x48')],_0x37903c[_0x322073('0x4e')]['id'],_0x4074e1[_0x322073('0x15')]?JSON[_0x322073('0x36')](_0x4074e1[_0x322073('0x15')]):_0x322073('0x61')),respondWithRpcPromise(_0x322073('0x64'),_0x322073('0x6a'),_0x37903c);return null;})['then'](function(_0x94001d){const _0x4ad400=_0x23a220;if(_0x94001d){if(_0x4074e1[_0x4ad400('0x15')][_0x4ad400('0x2e')])return _0x37903c[_0x4ad400('0x34')][_0x4ad400('0x58')]=util[_0x4ad400('0x3c')](_0x4ad400('0x2f'),_0x4074e1[_0x4ad400('0xb')][_0x4ad400('0x17')]),_0x37903c[_0x4ad400('0x34')][_0x4ad400('0x4a')]=_0x37903c[_0x4ad400('0x4a')],_0x37903c['message'][_0x4ad400('0x26')]='accept',respondWithRpcPromise(_0x4ad400('0x52'),_0x4ad400('0x52'),{'event':_0x4ad400('0x3a'),'message':_0x37903c[_0x4ad400('0x34')]},client9002)[_0x4ad400('0x51')](function(){return _0x37903c;});return _0x37903c;}return null;})[_0x23a220('0x51')](respondWithResult(_0x1a675c,null))[_0x23a220('0x54')](handleError(_0x1a675c,null));},exports[_0x2da178('0x69')]=function(_0x40e8dd,_0x456231){const _0x370d08=_0x2da178,_0x9d368b={'agent':{},'channel':_0x370d08('0x4b')};return _0x40e8dd[_0x370d08('0x15')]['id']&&delete _0x40e8dd['body']['id'],_0x40e8dd[_0x370d08('0x15')]['UserId']=_0x40e8dd[_0x370d08('0x15')][_0x370d08('0x38')]||_0x40e8dd[_0x370d08('0xb')]['id'],_0x9d368b[_0x370d08('0xc')]['id']=_0x40e8dd[_0x370d08('0x15')][_0x370d08('0x38')],db[_0x370d08('0x1e')]['findOne']({'where':{'id':_0x40e8dd[_0x370d08('0x0')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x456231,null))['then'](function(_0x26e320){const _0x37295c=_0x370d08;if(_0x26e320)return _0x9d368b[_0x37295c('0x34')]=_0x26e320[_0x37295c('0x1d')]({'plain':!![]}),db[_0x37295c('0x28')][_0x37295c('0x5b')]({'where':{'id':_0x26e320[_0x37295c('0x42')]}});return null;})['then'](handleEntityNotFound(_0x456231,null))[_0x370d08('0x51')](function(_0x42730c){const _0x2e1f38=_0x370d08;if(_0x42730c)return _0x9d368b[_0x2e1f38('0x4e')]=_0x42730c[_0x2e1f38('0x1d')]({'plain':!![]}),interaction_log['info']('[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x40e8dd[_0x2e1f38('0xb')]['id'],_0x40e8dd['user'][_0x2e1f38('0x17')],_0x40e8dd[_0x2e1f38('0xb')][_0x2e1f38('0x48')],_0x9d368b['interaction']['id'],_0x40e8dd[_0x2e1f38('0x15')]?JSON[_0x2e1f38('0x36')](_0x40e8dd['body']):_0x2e1f38('0x61')),respondWithRpcPromise(_0x2e1f38('0x27'),_0x2e1f38('0x4c'),_0x9d368b);return null;})['then'](function(_0x3896c9){const _0xd8e7a5=_0x370d08;if(_0x3896c9)return _0x3896c9['message']['interface']=util[_0xd8e7a5('0x3c')](_0xd8e7a5('0x2f'),_0x40e8dd[_0xd8e7a5('0xb')][_0xd8e7a5('0x17')]),_0x3896c9[_0xd8e7a5('0x34')][_0xd8e7a5('0x4a')]=_0x9d368b['channel'],_0x3896c9[_0xd8e7a5('0x34')][_0xd8e7a5('0x26')]='reject',respondWithRpcPromise('EventManager',_0xd8e7a5('0x52'),{'event':_0xd8e7a5('0x47'),'message':_0x3896c9[_0xd8e7a5('0x34')]},client9002),_0x9d368b;return null;})[_0x370d08('0x51')](respondWithResult(_0x456231,null))[_0x370d08('0x54')](handleError(_0x456231,null));},exports[_0x2da178('0x65')]=function(_0x552f39,_0x1214da){const _0x4ecf4e=_0x2da178;_0x552f39[_0x4ecf4e('0x15')]['id']&&delete _0x552f39[_0x4ecf4e('0x15')]['id'];let _0xe98356;return db['WhatsappMessage'][_0x4ecf4e('0x5b')]({'where':{'id':_0x552f39[_0x4ecf4e('0x0')]['id']}})[_0x4ecf4e('0x51')](handleEntityNotFound(_0x1214da,null))[_0x4ecf4e('0x51')](function(_0x56414c){const _0xf2bcf=_0x4ecf4e;if(_0x56414c)return _0xe98356=_0x56414c,db[_0xf2bcf('0x1a')]['findOne']({'where':{'id':_0x56414c[_0xf2bcf('0x43')]}});})[_0x4ecf4e('0x51')](handleEntityNotFound(_0x1214da,null))[_0x4ecf4e('0x51')](function(_0x2cb302){const _0xb58f1c=_0x4ecf4e;if(_0x2cb302){logger[_0xb58f1c('0xe')](_0xb58f1c('0x9'),_0xb58f1c('0x65'),_0xb58f1c('0x2d'),_0x2cb302[_0xb58f1c('0x35')],util[_0xb58f1c('0x14')](_0x552f39[_0xb58f1c('0x15')],{'showHidden':![],'depth':null}));switch(_0x2cb302[_0xb58f1c('0x35')]){case _0xb58f1c('0x6b'):if(_0x552f39[_0xb58f1c('0x15')][_0xb58f1c('0x2c')]&&_0x552f39[_0xb58f1c('0x15')][_0xb58f1c('0x2c')]===_0xe98356[_0xb58f1c('0x67')]&&_0x552f39[_0xb58f1c('0x15')]['MessageStatus']&&_0x552f39[_0xb58f1c('0x15')][_0xb58f1c('0x62')]===_0xb58f1c('0x1f'))return _0xe98356[_0xb58f1c('0x49')]({'read':!![]});else logger['error'](_0xb58f1c('0x50'),'status',_0xb58f1c('0x6b'),util[_0xb58f1c('0x14')](_0x552f39['body'],{'showHidden':![],'depth':null}));break;}return _0xe98356;}})[_0x4ecf4e('0x51')](respondWithResult(_0x1214da,null))['catch'](handleError(_0x1214da,null));}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.events.js b/server/api/whatsappMessage/whatsappMessage.events.js index 63ce7fa..d522835 100644 --- a/server/api/whatsappMessage/whatsappMessage.events.js +++ b/server/api/whatsappMessage/whatsappMessage.events.js @@ -1 +1 @@ -const a802_0x3b1a=['addHook','WhatsappMessage','exports','save','../../mysqldb','setMaxListeners','update','events'];(function(_0x582e5f,_0x3b1ac5){const _0x1f7120=function(_0x3b6bbd){while(--_0x3b6bbd){_0x582e5f['push'](_0x582e5f['shift']());}};_0x1f7120(++_0x3b1ac5);}(a802_0x3b1a,0x128));const a802_0x1f71=function(_0x582e5f,_0x3b1ac5){_0x582e5f=_0x582e5f-0x0;let _0x1f7120=a802_0x3b1a[_0x582e5f];return _0x1f7120;};const _0x47ab0e=a802_0x1f71;'use strict';const EventEmitter=require(_0x47ab0e('0x7')),WhatsappMessage=require(_0x47ab0e('0x4'))['db'][_0x47ab0e('0x1')],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[_0x47ab0e('0x5')](0x0);const events={'afterCreate':_0x47ab0e('0x3'),'afterUpdate':_0x47ab0e('0x6'),'afterDestroy':'remove'};function emitEvent(_0x3b6bbd){return function(_0xcbcf72){WhatsappMessageEvents['emit'](_0x3b6bbd+':'+_0xcbcf72['id'],_0xcbcf72),WhatsappMessageEvents['emit'](_0x3b6bbd,_0xcbcf72);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappMessage[_0x47ab0e('0x0')](e,emitEvent(event));}}module[_0x47ab0e('0x2')]=WhatsappMessageEvents; \ No newline at end of file +const a802_0x6cf6=['WhatsappMessage','setMaxListeners','save','undefined','exports','addHook','events','../../mysqldb','update','emit'];(function(_0x5f167d,_0x6cf6bd){const _0x11516c=function(_0x4dd4b7){while(--_0x4dd4b7){_0x5f167d['push'](_0x5f167d['shift']());}};_0x11516c(++_0x6cf6bd);}(a802_0x6cf6,0x16f));const a802_0x1151=function(_0x5f167d,_0x6cf6bd){_0x5f167d=_0x5f167d-0x0;let _0x11516c=a802_0x6cf6[_0x5f167d];return _0x11516c;};const _0x3fe366=a802_0x1151;'use strict';const EventEmitter=require(_0x3fe366('0x9')),WhatsappMessage=require(_0x3fe366('0x0'))['db'][_0x3fe366('0x3')],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[_0x3fe366('0x4')](0x0);const events={'afterCreate':_0x3fe366('0x5'),'afterUpdate':_0x3fe366('0x1'),'afterDestroy':'remove'};function emitEvent(_0x4dd4b7){return function(_0x4918c5){const _0x77f541=a802_0x1151;WhatsappMessageEvents[_0x77f541('0x2')](_0x4dd4b7+':'+_0x4918c5['id'],_0x4918c5),WhatsappMessageEvents[_0x77f541('0x2')](_0x4dd4b7,_0x4918c5);};}for(const e in events){if(typeof events[e]!==_0x3fe366('0x6')){const event=events[e];WhatsappMessage[_0x3fe366('0x8')](e,emitEvent(event));}}module[_0x3fe366('0x7')]=WhatsappMessageEvents; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.model.js b/server/api/whatsappMessage/whatsappMessage.model.js index e435f16..003760b 100644 --- a/server/api/whatsappMessage/whatsappMessage.model.js +++ b/server/api/whatsappMessage/whatsappMessage.model.js @@ -1 +1 @@ -const a803_0x3628=['FULLTEXT','accountSid','whatsapp_messages','finally','WhatsappMessage','type','phone','models','api','catch','UserId','token','twilio','messages','findOne','direction','secret','WhatsappInteractionId','out','toLowerCase','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','utf8mb4','isNil','error','utf8mb4_unicode_ci','body','whatsapp:','exports','afterCreate','update','then','/api/whatsapp/messages/','createdAt','remote','get','sid','WhatsappMessage,\x20%s,\x20%s,\x20%s','/status?token=','util','define','lodash','authToken','messageId','fti_whatsapp_messages'];(function(_0x241781,_0x3628bb){const _0x5dbe58=function(_0x20a18a){while(--_0x20a18a){_0x241781['push'](_0x241781['shift']());}};_0x5dbe58(++_0x3628bb);}(a803_0x3628,0x14b));const a803_0x5dbe=function(_0x241781,_0x3628bb){_0x241781=_0x241781-0x0;let _0x5dbe58=a803_0x3628[_0x241781];return _0x5dbe58;};const _0xab5c23=a803_0x5dbe;'use strict';const _=require(_0xab5c23('0x11')),util=require(_0xab5c23('0xf')),logger=require('../../config/logger')(_0xab5c23('0x1d')),attributes=require('./whatsappMessage.attributes');module[_0xab5c23('0x4')]=function(_0x20a18a){const _0x3f7840=_0xab5c23,_0x398675=_0x20a18a[_0x3f7840('0x1c')],_0x11a794=_0x20a18a[_0x3f7840('0x10')](_0x3f7840('0x19'),attributes,{'tableName':_0x3f7840('0x17'),'paranoid':![],'indexes':[{'name':'messageId','fields':[_0x3f7840('0x13')]},{'name':_0x3f7840('0x14'),'fields':[_0x3f7840('0x2')],'type':_0x3f7840('0x15')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x578890){const _0x35d721=_0x3f7840,_0x2c9acc=_0x578890[_0x35d721('0xb')]({'plain':!![]});(_0x2c9acc[_0x35d721('0x24')][_0x35d721('0x28')]()==='in'||_0x2c9acc[_0x35d721('0x24')]['toLowerCase']()===_0x35d721('0x27')&&!_0x2c9acc['secret']&&!_[_0x35d721('0x2b')](_0x2c9acc[_0x35d721('0x1f')]))&&_0x398675['WhatsappInteraction']['findOne']({'where':{'id':_0x2c9acc[_0x35d721('0x26')]}})[_0x35d721('0x7')](function(_0x1f4d90){const _0xdd7c1c=_0x35d721;_0x1f4d90&&_0x1f4d90['update']({'lastMsgAt':_0x2c9acc[_0xdd7c1c('0x9')],'lastMsgDirection':_0x2c9acc[_0xdd7c1c('0x24')][_0xdd7c1c('0x28')]()});})[_0x35d721('0x1e')](function(_0x490022){const _0x3c93b8=_0x35d721;console[_0x3c93b8('0x0')](_0x490022);});if(_0x2c9acc[_0x35d721('0x24')]===_0x35d721('0x27')&&!_0x2c9acc[_0x35d721('0x25')]){let _0x5ebac6;_0x398675['WhatsappAccount'][_0x35d721('0x23')]({'where':{'id':_0x2c9acc['WhatsappAccountId']},'raw':!![]})[_0x35d721('0x7')](function(_0x1b3840){const _0x39464d=_0x35d721;_0x5ebac6=_0x1b3840;if(_0x5ebac6&&_0x5ebac6['type'])switch(_0x5ebac6[_0x39464d('0x1a')]){case _0x39464d('0x21'):{const _0x3ad216=require('twilio');if(_0x5ebac6[_0x39464d('0x16')]&&_0x5ebac6['authToken']&&_0x5ebac6['phone']){const _0x270ea8=new _0x3ad216(_0x5ebac6[_0x39464d('0x16')],_0x5ebac6[_0x39464d('0x12')]);_0x270ea8[_0x39464d('0x22')]['create']({'body':_0x2c9acc[_0x39464d('0x2')],'to':_0x39464d('0x3')+_0x2c9acc[_0x39464d('0x1b')],'from':_0x39464d('0x3')+_0x5ebac6[_0x39464d('0x1b')],'statusCallback':_0x5ebac6[_0x39464d('0xa')]+_0x39464d('0x8')+_0x2c9acc['id']+_0x39464d('0xe')+_0x5ebac6[_0x39464d('0x20')]})[_0x39464d('0x7')](function(_0x2da43c){const _0x3b2920=_0x39464d;if(_0x2da43c[_0x3b2920('0xc')])return _0x578890[_0x3b2920('0x6')]({'messageId':_0x2da43c['sid']});})[_0x39464d('0x1e')](function(_0x54a1dd){const _0x253d29=_0x39464d;logger[_0x253d29('0x0')]('WhatsappMessage,\x20%s,\x20%s,\x20%s',_0x253d29('0x5'),'twilio',util['inspect'](_0x54a1dd,{'showHidden':![],'depth':null}));});}else logger[_0x39464d('0x0')](_0x39464d('0xd'),_0x39464d('0x5'),'twilio',_0x39464d('0x29'));}break;}})[_0x35d721('0x18')](function(){return null;});}else return null;}},'charset':_0x3f7840('0x2a'),'collate':_0x3f7840('0x1')});return _0x11a794;}; \ No newline at end of file +const a803_0x1526=['WhatsappAccountId','UserId','./whatsappMessage.attributes','lodash','afterCreate','/status?token=','secret','phone','direction','fti_whatsapp_messages','catch','then','WhatsappAccount','body','accountSid','finally','util','toLowerCase','token','findOne','type','error','twilio','../../config/logger','authToken','exports','utf8mb4_unicode_ci','messageId','out','define','update','create','get','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','inspect','whatsapp:','utf8mb4','WhatsappInteractionId','messages','WhatsappMessage','WhatsappInteraction','createdAt','sid'];(function(_0x5bb892,_0x152620){const _0x3f74c6=function(_0x3d7316){while(--_0x3d7316){_0x5bb892['push'](_0x5bb892['shift']());}};_0x3f74c6(++_0x152620);}(a803_0x1526,0xd3));const a803_0x3f74=function(_0x5bb892,_0x152620){_0x5bb892=_0x5bb892-0x0;let _0x3f74c6=a803_0x1526[_0x5bb892];return _0x3f74c6;};const _0x15f547=a803_0x3f74;'use strict';const _=require(_0x15f547('0x7')),util=require(_0x15f547('0x14')),logger=require(_0x15f547('0x1b'))('api'),attributes=require(_0x15f547('0x6'));module[_0x15f547('0x1d')]=function(_0x3d7316){const _0x19363f=_0x15f547,_0xcceb00=_0x3d7316['models'],_0x26cc47=_0x3d7316[_0x19363f('0x21')](_0x19363f('0x0'),attributes,{'tableName':'whatsapp_messages','paranoid':![],'indexes':[{'name':'messageId','fields':[_0x19363f('0x1f')]},{'name':_0x19363f('0xd'),'fields':['body'],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x4fbbab){const _0x2fbaa8=_0x19363f,_0x173278=_0x4fbbab[_0x2fbaa8('0x24')]({'plain':!![]});(_0x173278[_0x2fbaa8('0xc')]['toLowerCase']()==='in'||_0x173278[_0x2fbaa8('0xc')][_0x2fbaa8('0x15')]()==='out'&&!_0x173278[_0x2fbaa8('0xa')]&&!_['isNil'](_0x173278[_0x2fbaa8('0x5')]))&&_0xcceb00[_0x2fbaa8('0x1')][_0x2fbaa8('0x17')]({'where':{'id':_0x173278[_0x2fbaa8('0x29')]}})[_0x2fbaa8('0xf')](function(_0x43d9d7){const _0x29991b=_0x2fbaa8;_0x43d9d7&&_0x43d9d7[_0x29991b('0x22')]({'lastMsgAt':_0x173278[_0x29991b('0x2')],'lastMsgDirection':_0x173278[_0x29991b('0xc')][_0x29991b('0x15')]()});})[_0x2fbaa8('0xe')](function(_0x591ad7){const _0x1ccc5f=_0x2fbaa8;console[_0x1ccc5f('0x19')](_0x591ad7);});if(_0x173278[_0x2fbaa8('0xc')]===_0x2fbaa8('0x20')&&!_0x173278[_0x2fbaa8('0xa')]){let _0x1fc8ea;_0xcceb00[_0x2fbaa8('0x10')]['findOne']({'where':{'id':_0x173278[_0x2fbaa8('0x4')]},'raw':!![]})['then'](function(_0x22f90c){const _0x73f188=_0x2fbaa8;_0x1fc8ea=_0x22f90c;if(_0x1fc8ea&&_0x1fc8ea['type'])switch(_0x1fc8ea[_0x73f188('0x18')]){case _0x73f188('0x1a'):{const _0x4b4d21=require(_0x73f188('0x1a'));if(_0x1fc8ea[_0x73f188('0x12')]&&_0x1fc8ea[_0x73f188('0x1c')]&&_0x1fc8ea['phone']){const _0x185ff3=new _0x4b4d21(_0x1fc8ea['accountSid'],_0x1fc8ea[_0x73f188('0x1c')]);_0x185ff3[_0x73f188('0x2a')][_0x73f188('0x23')]({'body':_0x173278[_0x73f188('0x11')],'to':_0x73f188('0x27')+_0x173278[_0x73f188('0xb')],'from':_0x73f188('0x27')+_0x1fc8ea[_0x73f188('0xb')],'statusCallback':_0x1fc8ea['remote']+'/api/whatsapp/messages/'+_0x173278['id']+_0x73f188('0x9')+_0x1fc8ea[_0x73f188('0x16')]})[_0x73f188('0xf')](function(_0x199933){const _0x5a5439=_0x73f188;if(_0x199933[_0x5a5439('0x3')])return _0x4fbbab[_0x5a5439('0x22')]({'messageId':_0x199933[_0x5a5439('0x3')]});})[_0x73f188('0xe')](function(_0x276f67){const _0x39cb8d=_0x73f188;logger[_0x39cb8d('0x19')]('WhatsappMessage,\x20%s,\x20%s,\x20%s',_0x39cb8d('0x8'),'twilio',util[_0x39cb8d('0x26')](_0x276f67,{'showHidden':![],'depth':null}));});}else logger[_0x73f188('0x19')]('WhatsappMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x73f188('0x1a'),_0x73f188('0x25'));}break;}})[_0x2fbaa8('0x13')](function(){return null;});}else return null;}},'charset':_0x19363f('0x28'),'collate':_0x19363f('0x1e')});return _0x26cc47;}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.rpc.js b/server/api/whatsappMessage/whatsappMessage.rpc.js index 32f53f2..a7fc35c 100644 --- a/server/api/whatsappMessage/whatsappMessage.rpc.js +++ b/server/api/whatsappMessage/whatsappMessage.rpc.js @@ -1 +1 @@ -const a804_0x35fe=['CreateWhatsappMessage','body','catch','create','debug','../../mysqldb','../../config/logger','options','register','stringify','then','error'];(function(_0x3eb1b8,_0x35fe76){const _0x38ca9c=function(_0xcd18e){while(--_0xcd18e){_0x3eb1b8['push'](_0x3eb1b8['shift']());}};_0x38ca9c(++_0x35fe76);}(a804_0x35fe,0x1ed));const a804_0x38ca=function(_0x3eb1b8,_0x35fe76){_0x3eb1b8=_0x3eb1b8-0x0;let _0x38ca9c=a804_0x35fe[_0x3eb1b8];return _0x38ca9c;};const _0x291d3b=a804_0x38ca;'use strict';const db=require(_0x291d3b('0x4'))['db'],logger=require(_0x291d3b('0x5'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require('./whatsappMessage.socket')[_0x291d3b('0x7')](socket),exports[_0x291d3b('0xb')]=function(_0xcd18e){const _0x5bdd5c=this;return new Promise(function(_0x1175e3,_0x2889cb){const _0x111a38=a804_0x38ca;return db['WhatsappMessage'][_0x111a38('0x2')](_0xcd18e[_0x111a38('0x0')],{'raw':_0xcd18e[_0x111a38('0x6')]?_0xcd18e[_0x111a38('0x6')]['raw']===undefined?!![]:![]:!![]})[_0x111a38('0x9')](function(_0x1badc0){const _0x571a9b=_0x111a38;logger['info'](_0x571a9b('0xb'),_0xcd18e),logger[_0x571a9b('0x3')](_0x571a9b('0xb'),_0xcd18e,JSON[_0x571a9b('0x8')](_0x1badc0)),_0x1175e3(_0x1badc0);})[_0x111a38('0x1')](function(_0x256245){const _0x1ecb84=_0x111a38;logger[_0x1ecb84('0xa')](_0x1ecb84('0xb'),_0x256245['message'],_0xcd18e),_0x2889cb(_0x5bdd5c['error'](0x1f4,_0x256245['message']));});});}; \ No newline at end of file +const a804_0x2ee0=['create','WhatsappMessage','../../rediscache','message','stringify','options','error','CreateWhatsappMessage','register','rpc','./whatsappMessage.socket','body','info','debug','catch'];(function(_0x513247,_0x2ee026){const _0xc7237c=function(_0x39c2c0){while(--_0x39c2c0){_0x513247['push'](_0x513247['shift']());}};_0xc7237c(++_0x2ee026);}(a804_0x2ee0,0x1bc));const a804_0xc723=function(_0x513247,_0x2ee026){_0x513247=_0x513247-0x0;let _0xc7237c=a804_0x2ee0[_0x513247];return _0xc7237c;};const _0x583da5=a804_0xc723;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x583da5('0x0')),{getSocket}=require(_0x583da5('0x8')),socket=getSocket();require(_0x583da5('0x1'))[_0x583da5('0xe')](socket),exports[_0x583da5('0xd')]=function(_0x39c2c0){const _0x3950fb=this;return new Promise(function(_0x84da28,_0x3c47e6){const _0x129fb=a804_0xc723;return db[_0x129fb('0x7')][_0x129fb('0x6')](_0x39c2c0[_0x129fb('0x2')],{'raw':_0x39c2c0[_0x129fb('0xb')]?_0x39c2c0['options']['raw']===undefined?!![]:![]:!![]})['then'](function(_0x5435ba){const _0x4cde92=_0x129fb;logger[_0x4cde92('0x3')]('CreateWhatsappMessage',_0x39c2c0),logger[_0x4cde92('0x4')](_0x4cde92('0xd'),_0x39c2c0,JSON[_0x4cde92('0xa')](_0x5435ba)),_0x84da28(_0x5435ba);})[_0x129fb('0x5')](function(_0xc3ea1b){const _0xa12874=_0x129fb;logger['error'](_0xa12874('0xd'),_0xc3ea1b[_0xa12874('0x9')],_0x39c2c0),_0x3c47e6(_0x3950fb[_0xa12874('0xc')](0x1f4,_0xc3ea1b['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.socket.js b/server/api/whatsappMessage/whatsappMessage.socket.js index f29f62a..1514636 100644 --- a/server/api/whatsappMessage/whatsappMessage.socket.js +++ b/server/api/whatsappMessage/whatsappMessage.socket.js @@ -1 +1 @@ -const a805_0x3472=['./whatsappMessage.events','register','remove','save','whatsappMessage:','emit'];(function(_0x31df25,_0x347252){const _0x5ad120=function(_0xba2e98){while(--_0xba2e98){_0x31df25['push'](_0x31df25['shift']());}};_0x5ad120(++_0x347252);}(a805_0x3472,0xed));const a805_0x5ad1=function(_0x31df25,_0x347252){_0x31df25=_0x31df25-0x0;let _0x5ad120=a805_0x3472[_0x31df25];return _0x5ad120;};const _0x3eb4d1=a805_0x5ad1;'use strict';const WhatsappMessageEvents=require(_0x3eb4d1('0x3')),events=[_0x3eb4d1('0x0'),_0x3eb4d1('0x5'),'update'];function createListener(_0xba2e98,_0x2f521d){return function(_0x4a1c17){const _0x3e722f=a805_0x5ad1;_0x2f521d[_0x3e722f('0x2')](_0xba2e98,_0x4a1c17);};}exports[_0x3eb4d1('0x4')]=function(_0x398281){const _0x3177d1=_0x3eb4d1;for(let _0x110e32=0x0,_0xbed386=events['length'];_0x110e32<_0xbed386;_0x110e32++){const _0x2b21bd=events[_0x110e32],_0x4d2362=createListener(_0x3177d1('0x1')+_0x2b21bd,_0x398281);WhatsappMessageEvents['on'](_0x2b21bd,_0x4d2362);}}; \ No newline at end of file +const a805_0x2077=['save','length','update','whatsappMessage:','emit','remove','./whatsappMessage.events'];(function(_0xd94aa0,_0x2077a8){const _0x2b7031=function(_0x14db4e){while(--_0x14db4e){_0xd94aa0['push'](_0xd94aa0['shift']());}};_0x2b7031(++_0x2077a8);}(a805_0x2077,0x18d));const a805_0x2b70=function(_0xd94aa0,_0x2077a8){_0xd94aa0=_0xd94aa0-0x0;let _0x2b7031=a805_0x2077[_0xd94aa0];return _0x2b7031;};const _0x10798b=a805_0x2b70;'use strict';const WhatsappMessageEvents=require(_0x10798b('0x1')),events=[_0x10798b('0x2'),_0x10798b('0x0'),_0x10798b('0x4')];function createListener(_0x14db4e,_0x41b29c){return function(_0x5d1676){const _0xf0d985=a805_0x2b70;_0x41b29c[_0xf0d985('0x6')](_0x14db4e,_0x5d1676);};}exports['register']=function(_0x2c628b){const _0x3c3b25=_0x10798b;for(let _0x159867=0x0,_0x28a0b9=events[_0x3c3b25('0x3')];_0x159867<_0x28a0b9;_0x159867++){const _0x511eae=events[_0x159867],_0x3c888d=createListener(_0x3c3b25('0x5')+_0x511eae,_0x2c628b);WhatsappMessageEvents['on'](_0x511eae,_0x3c888d);}}; \ No newline at end of file diff --git a/server/api/whatsappQueue/index.js b/server/api/whatsappQueue/index.js index 946c9cf..20647ae 100644 --- a/server/api/whatsappQueue/index.js +++ b/server/api/whatsappQueue/index.js @@ -1 +1 @@ -const a806_0x7f76=['destroy','put','/:id/teams','express','addTeams','delete','/:id/members','removeAgents','index','/describe','get','exports','addAgents','removeTeams','isAuthenticated','../../components/auth/service','update','getTeams','getAgents','/:id/users','getMembers','show','/:id'];(function(_0x1ce116,_0x7f7605){const _0x32d5d8=function(_0x44036c){while(--_0x44036c){_0x1ce116['push'](_0x1ce116['shift']());}};_0x32d5d8(++_0x7f7605);}(a806_0x7f76,0x137));const a806_0x32d5=function(_0x1ce116,_0x7f7605){_0x1ce116=_0x1ce116-0x0;let _0x32d5d8=a806_0x7f76[_0x1ce116];return _0x32d5d8;};const _0x273c5e=a806_0x32d5;'use strict';const express=require(_0x273c5e('0xe')),router=express['Router'](),auth=require(_0x273c5e('0x3')),controller=require('./whatsappQueue.controller');router['get']('/',auth[_0x273c5e('0x2')](),controller[_0x273c5e('0x13')]),router[_0x273c5e('0x15')](_0x273c5e('0x14'),auth['isAuthenticated'](),controller['describe']),router[_0x273c5e('0x15')](_0x273c5e('0xa'),auth[_0x273c5e('0x2')](),controller[_0x273c5e('0x9')]),router[_0x273c5e('0x15')](_0x273c5e('0x11'),auth[_0x273c5e('0x2')](),controller[_0x273c5e('0x8')]),router[_0x273c5e('0x15')](_0x273c5e('0xd'),auth[_0x273c5e('0x2')](),controller[_0x273c5e('0x5')]),router['get'](_0x273c5e('0x7'),auth[_0x273c5e('0x2')](),controller[_0x273c5e('0x6')]),router['post']('/',auth[_0x273c5e('0x2')](),controller['create']),router['post']('/:id/teams',auth['isAuthenticated'](),controller[_0x273c5e('0xf')]),router['post'](_0x273c5e('0x7'),auth[_0x273c5e('0x2')](),controller[_0x273c5e('0x0')]),router[_0x273c5e('0xc')](_0x273c5e('0xa'),auth[_0x273c5e('0x2')](),controller[_0x273c5e('0x4')]),router[_0x273c5e('0x10')](_0x273c5e('0xa'),auth[_0x273c5e('0x2')](),controller[_0x273c5e('0xb')]),router[_0x273c5e('0x10')](_0x273c5e('0xd'),auth['isAuthenticated'](),controller[_0x273c5e('0x1')]),router[_0x273c5e('0x10')](_0x273c5e('0x7'),auth[_0x273c5e('0x2')](),controller[_0x273c5e('0x12')]),module[_0x273c5e('0x16')]=router; \ No newline at end of file +const a806_0x2d79=['create','isAuthenticated','Router','post','addTeams','getAgents','/describe','/:id/users','./whatsappQueue.controller','getTeams','removeTeams','/:id','../../components/auth/service','index','get','/:id/teams','put','addAgents','delete'];(function(_0x16f6fd,_0x2d79b){const _0xd79a2d=function(_0x52c305){while(--_0x52c305){_0x16f6fd['push'](_0x16f6fd['shift']());}};_0xd79a2d(++_0x2d79b);}(a806_0x2d79,0x1e8));const a806_0xd79a=function(_0x16f6fd,_0x2d79b){_0x16f6fd=_0x16f6fd-0x0;let _0xd79a2d=a806_0x2d79[_0x16f6fd];return _0xd79a2d;};const _0x520a21=a806_0xd79a;'use strict';const express=require('express'),router=express[_0x520a21('0x8')](),auth=require(_0x520a21('0x12')),controller=require(_0x520a21('0xe'));router[_0x520a21('0x1')]('/',auth[_0x520a21('0x7')](),controller[_0x520a21('0x0')]),router['get'](_0x520a21('0xc'),auth['isAuthenticated'](),controller['describe']),router[_0x520a21('0x1')](_0x520a21('0x11'),auth[_0x520a21('0x7')](),controller['show']),router['get']('/:id/members',auth['isAuthenticated'](),controller['getMembers']),router['get'](_0x520a21('0x2'),auth['isAuthenticated'](),controller[_0x520a21('0xf')]),router[_0x520a21('0x1')](_0x520a21('0xd'),auth[_0x520a21('0x7')](),controller[_0x520a21('0xb')]),router[_0x520a21('0x9')]('/',auth['isAuthenticated'](),controller[_0x520a21('0x6')]),router[_0x520a21('0x9')](_0x520a21('0x2'),auth[_0x520a21('0x7')](),controller[_0x520a21('0xa')]),router[_0x520a21('0x9')](_0x520a21('0xd'),auth[_0x520a21('0x7')](),controller[_0x520a21('0x4')]),router[_0x520a21('0x3')]('/:id',auth[_0x520a21('0x7')](),controller['update']),router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']),router[_0x520a21('0x5')](_0x520a21('0x2'),auth[_0x520a21('0x7')](),controller[_0x520a21('0x10')]),router[_0x520a21('0x5')](_0x520a21('0xd'),auth[_0x520a21('0x7')](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.attributes.js b/server/api/whatsappQueue/whatsappQueue.attributes.js index ada2af9..066a882 100644 --- a/server/api/whatsappQueue/whatsappQueue.attributes.js +++ b/server/api/whatsappQueue/whatsappQueue.attributes.js @@ -1 +1 @@ -const a807_0x5124=['sequelize','rrmemory','STRING','exports','name','roundrobin','beepall','ENUM'];(function(_0x4a0190,_0x512406){const _0x1c1805=function(_0x2c2b93){while(--_0x2c2b93){_0x4a0190['push'](_0x4a0190['shift']());}};_0x1c1805(++_0x512406);}(a807_0x5124,0x81));const a807_0x1c18=function(_0x4a0190,_0x512406){_0x4a0190=_0x4a0190-0x0;let _0x1c1805=a807_0x5124[_0x4a0190];return _0x1c1805;};const _0x2d7909=a807_0x1c18;'use strict';const Sequelize=require(_0x2d7909('0x7'));module[_0x2d7909('0x2')]={'name':{'type':Sequelize[_0x2d7909('0x1')],'unique':_0x2d7909('0x3'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x2d7909('0x6')](_0x2d7909('0x0'),_0x2d7909('0x5'),_0x2d7909('0x4'))},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a807_0x21f9=['ENUM','name','roundrobin','STRING','exports','INTEGER','beepall'];(function(_0x35af4c,_0x21f919){const _0x2c965e=function(_0x51be63){while(--_0x51be63){_0x35af4c['push'](_0x35af4c['shift']());}};_0x2c965e(++_0x21f919);}(a807_0x21f9,0xdb));const a807_0x2c96=function(_0x35af4c,_0x21f919){_0x35af4c=_0x35af4c-0x0;let _0x2c965e=a807_0x21f9[_0x35af4c];return _0x2c965e;};const _0x5c71a0=a807_0x2c96;'use strict';const Sequelize=require('sequelize');module[_0x5c71a0('0x2')]={'name':{'type':Sequelize[_0x5c71a0('0x1')],'unique':_0x5c71a0('0x6'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':Sequelize[_0x5c71a0('0x3')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x5c71a0('0x5')]('rrmemory',_0x5c71a0('0x4'),_0x5c71a0('0x0'))},'description':{'type':Sequelize[_0x5c71a0('0x1')]}}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.controller.js b/server/api/whatsappQueue/whatsappQueue.controller.js index 352c9f7..99aa1a7 100644 --- a/server/api/whatsappQueue/whatsappQueue.controller.js +++ b/server/api/whatsappQueue/whatsappQueue.controller.js @@ -1 +1 @@ -const a808_0x3c0a=['format','rawAttributes','where','sort','api','status','json','sendStatus','count','TeamId','flatMap','User','params','whatsappPause','squel','ids','length','includeAll','limit','VIRTUAL','toString','isEmpty','util','omit','offset','filters','undefined','intersection','then','forEach','compact','QueryTypes','set','tq.TeamId','from','get','UserProfileSection','../../components/parsers/qs','role','interface','push','create','like','filter','findOne','describe','field','userWhatsappQueue:remove','fieldName','WhatsappQueues','order','join','all','name','map','register','nolimit','body','clone','sequelize','transaction','getAgents','userProfileId','Team','keys','WhatsappQueue','getTeams','WhatsappQueueId\x20=\x20?','addAgents','catch','key','error','user','userWhatsappQueue:save','send','removeTeams','pick','show','rows','removeAgents','include','fields','createdAt','findAll','query','end','SIP','model','index','update','findAndCountAll','UserProfileResource','Agents','options','autoAssociation','emit','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../config/logger','attributes','updatedAt','ut.TeamId\x20=\x20tq.TeamId','destroy','team_has_whatsapp_queues','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','agent','merge','each','voicePause','UserWhatsappQueue'];(function(_0x1ba06c,_0x3c0ae8){const _0x332033=function(_0xf993b4){while(--_0xf993b4){_0x1ba06c['push'](_0x1ba06c['shift']());}};_0x332033(++_0x3c0ae8);}(a808_0x3c0a,0xe5));const a808_0x3320=function(_0x1ba06c,_0x3c0ae8){_0x1ba06c=_0x1ba06c-0x0;let _0x332033=a808_0x3c0a[_0x1ba06c];return _0x332033;};const _0x1c80a0=a808_0x3320;'use strict';const util=require(_0x1c80a0('0xb')),_=require('lodash'),squel=require(_0x1c80a0('0x3')),qs=require(_0x1c80a0('0x1a')),logger=require(_0x1c80a0('0x56'))(_0x1c80a0('0x66')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require('./whatsappQueue.socket')[_0x1c80a0('0x2c')](socket);function respondWithStatusCode(_0xf993b4,_0xa0dc36){return _0xa0dc36=_0xa0dc36||0xcc,function(_0xcf6569){const _0x421bfc=a808_0x3320;if(_0xcf6569)return _0xf993b4[_0x421bfc('0x69')](_0xa0dc36);return _0xf993b4[_0x421bfc('0x67')](_0xa0dc36)['end']();};}function respondWithResult(_0x14ccd0,_0xa43fbf){return _0xa43fbf=_0xa43fbf||0xc8,function(_0xc3496d){const _0x10cc6b=a808_0x3320;if(_0xc3496d)return _0x14ccd0[_0x10cc6b('0x67')](_0xa43fbf)['json'](_0xc3496d);};}function respondWithFilteredResult(_0x53a000,_0x3a2330){return function(_0x4c1d70){const _0xf4be84=a808_0x3320;if(_0x4c1d70){const _0x1bb296=_0x4c1d70['count'],_0x3bae8f=_0x3a2330[_0xf4be84('0xd')];let _0x4c52ad=_0x3a2330[_0xf4be84('0xd')]+_0x3a2330[_0xf4be84('0x7')],_0x392d01;return _0x4c52ad>=_0x1bb296?(_0x4c52ad=_0x1bb296,_0x392d01=0xc8):_0x392d01=0xce,_0x53a000[_0xf4be84('0x67')](_0x392d01),_0x53a000[_0xf4be84('0x15')]('Content-Range',_0x3bae8f+'-'+_0x4c52ad+'/'+_0x1bb296)[_0xf4be84('0x68')](_0x4c1d70);}return null;};}function saveUpdates(_0x2d817d){return function(_0x3c59bf){const _0xd18fee=a808_0x3320;if(_0x3c59bf)return _0x3c59bf[_0xd18fee('0x4e')](_0x2d817d)[_0xd18fee('0x11')](function(_0x217536){return _0x217536;});return null;};}function removeEntity(_0x2f3992){return function(_0x2706e0){const _0x5c880e=a808_0x3320;if(_0x2706e0)return _0x2706e0[_0x5c880e('0x5a')]()[_0x5c880e('0x11')](function(){const _0xf32a54=_0x5c880e,_0x32114b=_0x2706e0[_0xf32a54('0x18')]({'plain':!![]}),_0x133626='WhatsappQueues';return db['UserProfileResource'][_0xf32a54('0x5a')]({'where':{'type':_0x133626,'resourceId':_0x32114b['id']}})[_0xf32a54('0x11')](function(){return _0x2706e0;});})[_0x5c880e('0x11')](function(){const _0x198af3=_0x5c880e;_0x2f3992[_0x198af3('0x67')](0xcc)[_0x198af3('0x4a')]();});};}function handleEntityNotFound(_0x20581b){return function(_0x655bcb){return!_0x655bcb&&_0x20581b['sendStatus'](0x194),_0x655bcb;};}function handleError(_0x2e99f3,_0x42d0cb){return _0x42d0cb=_0x42d0cb||0x1f4,function(_0x2482a9){const _0x2eddcb=a808_0x3320;logger[_0x2eddcb('0x3c')](_0x2482a9['stack']),_0x2482a9[_0x2eddcb('0x2a')]&&delete _0x2482a9[_0x2eddcb('0x2a')],_0x2e99f3[_0x2eddcb('0x67')](_0x42d0cb)[_0x2eddcb('0x3f')](_0x2482a9);};}exports[_0x1c80a0('0x4d')]=function(_0x11c752,_0x403167){const _0x100af3=_0x1c80a0;let _0x51404f={};const _0x55ae3e={},_0x2cbc34={'count':0x0,'rows':[]},_0x447ea7=_['map'](db['WhatsappQueue'][_0x100af3('0x63')],function(_0x519df5){const _0x3437bf=_0x100af3;return{'name':_0x519df5[_0x3437bf('0x25')],'type':_0x519df5['type'][_0x3437bf('0x3b')]};});_0x55ae3e['model']=_[_0x100af3('0x2b')](_0x447ea7,_0x100af3('0x2a')),_0x55ae3e['query']=_[_0x100af3('0x35')](_0x11c752[_0x100af3('0x49')]),_0x55ae3e[_0x100af3('0xe')]=_[_0x100af3('0x10')](_0x55ae3e[_0x100af3('0x4c')],_0x55ae3e['query']),_0x51404f['attributes']=_[_0x100af3('0x10')](_0x55ae3e['model'],qs[_0x100af3('0x46')](_0x11c752[_0x100af3('0x49')]['fields'])),_0x51404f['attributes']=_0x51404f['attributes'][_0x100af3('0x5')]?_0x51404f[_0x100af3('0x57')]:_0x55ae3e[_0x100af3('0x4c')];typeof _0x11c752[_0x100af3('0x49')][_0x100af3('0x2d')]===_0x100af3('0xf')&&(_0x51404f[_0x100af3('0x7')]=qs[_0x100af3('0x7')](_0x11c752['query'][_0x100af3('0x7')]),_0x51404f['offset']=qs['offset'](_0x11c752['query'][_0x100af3('0xd')]));_0x51404f[_0x100af3('0x27')]=qs[_0x100af3('0x65')](_0x11c752[_0x100af3('0x49')][_0x100af3('0x65')]),_0x51404f[_0x100af3('0x64')]=qs[_0x100af3('0xe')](_[_0x100af3('0x41')](_0x11c752[_0x100af3('0x49')],_0x55ae3e[_0x100af3('0xe')]),_0x447ea7);_0x11c752['query'][_0x100af3('0x20')]&&(_0x51404f[_0x100af3('0x64')]=_[_0x100af3('0x5e')](_0x51404f[_0x100af3('0x64')],{[Op['or']]:_[_0x100af3('0x2b')](_0x447ea7,function(_0x3e2d34){const _0x271a1d=_0x100af3;if(_0x3e2d34['type']!==_0x271a1d('0x8')){const _0x59418d={};return _0x59418d[_0x3e2d34['name']]={[Op['like']]:'%'+_0x11c752['query']['filter']+'%'},_0x59418d;}})}));_0x51404f=_[_0x100af3('0x5e')]({},_0x51404f,_0x11c752[_0x100af3('0x52')]);const _0x5932cd={'where':_0x51404f[_0x100af3('0x64')]};return db[_0x100af3('0x36')][_0x100af3('0x6a')](_0x5932cd)['then'](function(_0x3b543f){const _0x49ad80=_0x100af3;return _0x2cbc34[_0x49ad80('0x6a')]=_0x3b543f,_0x11c752[_0x49ad80('0x49')][_0x49ad80('0x6')]&&(_0x51404f['include']=[{'all':!![]}]),db[_0x49ad80('0x36')][_0x49ad80('0x48')](_0x51404f);})[_0x100af3('0x11')](function(_0x3370e0){const _0xb6d9f1=_0x100af3;return _0x2cbc34[_0xb6d9f1('0x43')]=_0x3370e0,_0x2cbc34;})['then'](respondWithFilteredResult(_0x403167,_0x51404f))[_0x100af3('0x3a')](handleError(_0x403167,null));},exports[_0x1c80a0('0x42')]=function(_0x22c363,_0x154a92){const _0x99fc86=_0x1c80a0;let _0x3fc22a={'raw':!![],'where':{'id':_0x22c363[_0x99fc86('0x1')]['id']}};const _0x12ba6d={};return _0x12ba6d[_0x99fc86('0x4c')]=_[_0x99fc86('0x35')](db[_0x99fc86('0x36')][_0x99fc86('0x63')]),_0x12ba6d['query']=_[_0x99fc86('0x35')](_0x22c363['query']),_0x12ba6d[_0x99fc86('0xe')]=_[_0x99fc86('0x10')](_0x12ba6d[_0x99fc86('0x4c')],_0x12ba6d[_0x99fc86('0x49')]),_0x3fc22a[_0x99fc86('0x57')]=_[_0x99fc86('0x10')](_0x12ba6d[_0x99fc86('0x4c')],qs[_0x99fc86('0x46')](_0x22c363[_0x99fc86('0x49')][_0x99fc86('0x46')])),_0x3fc22a[_0x99fc86('0x57')]=_0x3fc22a[_0x99fc86('0x57')][_0x99fc86('0x5')]?_0x3fc22a[_0x99fc86('0x57')]:_0x12ba6d[_0x99fc86('0x4c')],_0x22c363[_0x99fc86('0x49')][_0x99fc86('0x6')]&&(_0x3fc22a[_0x99fc86('0x45')]=[{'all':!![]}]),_0x3fc22a=_[_0x99fc86('0x5e')]({},_0x3fc22a,_0x22c363[_0x99fc86('0x52')]),db[_0x99fc86('0x36')][_0x99fc86('0x21')](_0x3fc22a)['then'](handleEntityNotFound(_0x154a92,null))[_0x99fc86('0x11')](respondWithResult(_0x154a92,null))['catch'](handleError(_0x154a92,null));},exports[_0x1c80a0('0x1e')]=function(_0x180ed8,_0x57c02f){const _0xdca264=_0x1c80a0;return db['WhatsappQueue'][_0xdca264('0x1e')](_0x180ed8[_0xdca264('0x2e')],{})[_0xdca264('0x11')](function(_0x1f9408){const _0x45dd8a=_0xdca264,_0x499f44=_0x180ed8[_0x45dd8a('0x3d')]['get']({'plain':!![]});if(!_0x499f44)throw new Error(_0x45dd8a('0x55'));if(_0x499f44[_0x45dd8a('0x1b')]==='user'){const _0x3da1de=_0x1f9408['get']({'plain':!![]}),_0x1a12e4=_0x45dd8a('0x26');return db[_0x45dd8a('0x19')][_0x45dd8a('0x21')]({'where':{'name':_0x1a12e4,'userProfileId':_0x499f44[_0x45dd8a('0x33')]},'raw':!![]})[_0x45dd8a('0x11')](function(_0x1690c0){const _0x1d8e62=_0x45dd8a;return _0x1690c0&&_0x1690c0[_0x1d8e62('0x53')]===0x0?db[_0x1d8e62('0x50')][_0x1d8e62('0x1e')]({'name':_0x3da1de[_0x1d8e62('0x2a')],'resourceId':_0x3da1de['id'],'type':_0x1690c0[_0x1d8e62('0x2a')],'sectionId':_0x1690c0['id']},{})[_0x1d8e62('0x11')](function(){return _0x1f9408;}):_0x1f9408;})[_0x45dd8a('0x3a')](function(_0x53ebde){const _0x11c983=_0x45dd8a;logger['error'](_0x11c983('0x5c'),_0x53ebde);throw _0x53ebde;});}return _0x1f9408;})[_0xdca264('0x11')](respondWithResult(_0x57c02f,0xc9))[_0xdca264('0x3a')](handleError(_0x57c02f,null));},exports[_0x1c80a0('0x4e')]=function(_0x31ac0d,_0x281b2c){const _0x999187=_0x1c80a0;return _0x31ac0d['body']['id']&&delete _0x31ac0d[_0x999187('0x2e')]['id'],db['WhatsappQueue']['findOne']({'where':{'id':_0x31ac0d[_0x999187('0x1')]['id']}})[_0x999187('0x11')](handleEntityNotFound(_0x281b2c,null))[_0x999187('0x11')](saveUpdates(_0x31ac0d[_0x999187('0x2e')],null))[_0x999187('0x11')](respondWithResult(_0x281b2c,null))[_0x999187('0x3a')](handleError(_0x281b2c,null));},exports['destroy']=function(_0x109bfe,_0x3ce6ea){const _0x4679d4=_0x1c80a0;return db[_0x4679d4('0x36')][_0x4679d4('0x21')]({'where':{'id':_0x109bfe[_0x4679d4('0x1')]['id']}})[_0x4679d4('0x11')](handleEntityNotFound(_0x3ce6ea,null))['then'](removeEntity(_0x3ce6ea,null))['catch'](handleError(_0x3ce6ea,null));},exports['describe']=function(_0x23a1eb,_0x379280){const _0x4909f9=_0x1c80a0;return db['WhatsappQueue'][_0x4909f9('0x22')]()['then'](respondWithResult(_0x379280,null))[_0x4909f9('0x3a')](handleError(_0x379280,null));},exports['getMembers']=function(_0xbe2416,_0xd909a8){const _0x4719b9=_0x1c80a0;let _0x2f4d22={'raw':!![],'where':{}};const _0x2628d6={};let _0x8543ea;return db[_0x4719b9('0x36')]['findOne']({'where':{'id':_0xbe2416[_0x4719b9('0x1')]['id']}})[_0x4719b9('0x11')](handleEntityNotFound(_0xd909a8,null))[_0x4719b9('0x11')](function(_0x26f042){const _0x422a00=_0x4719b9;if(_0x26f042)return _0x8543ea=_0x26f042[_0x422a00('0x18')]({'plain':!![]}),_0x2628d6[_0x422a00('0x4c')]=_['keys'](db[_0x422a00('0x61')][_0x422a00('0x63')]),_0x2628d6[_0x422a00('0x49')]=_['keys'](_0xbe2416['query']),_0x2628d6[_0x422a00('0xe')]=_[_0x422a00('0x10')](_0x2628d6[_0x422a00('0x4c')],_0x2628d6[_0x422a00('0x49')]),_0x2f4d22[_0x422a00('0x57')]=_['intersection'](_0x2628d6[_0x422a00('0x4c')],qs[_0x422a00('0x46')](_0xbe2416[_0x422a00('0x49')][_0x422a00('0x46')])),_0x2f4d22[_0x422a00('0x57')]=_0x2f4d22['attributes'][_0x422a00('0x5')]?_0x2f4d22[_0x422a00('0x57')]:_0x2628d6[_0x422a00('0x4c')],typeof _0xbe2416[_0x422a00('0x49')][_0x422a00('0x2d')]===_0x422a00('0xf')&&(_0x2f4d22[_0x422a00('0x7')]=qs[_0x422a00('0x7')](_0xbe2416[_0x422a00('0x49')][_0x422a00('0x7')]),_0x2f4d22[_0x422a00('0xd')]=qs[_0x422a00('0xd')](_0xbe2416[_0x422a00('0x49')][_0x422a00('0xd')])),_0x2f4d22[_0x422a00('0x27')]=qs[_0x422a00('0x65')](_0xbe2416[_0x422a00('0x49')]['sort']),_0x2f4d22['where']=qs['filters'](_['pick'](_0xbe2416[_0x422a00('0x49')],_0x2628d6[_0x422a00('0xe')])),_0x2f4d22['where']['WhatsappQueueId']=_0x26f042['id'],_0xbe2416['query']['filter']&&(_0x2f4d22['where']=_[_0x422a00('0x5e')](_0x2f4d22[_0x422a00('0x64')],{[Op['or']]:_[_0x422a00('0x2b')](_0x2f4d22[_0x422a00('0x57')],function(_0x3a47dd){const _0x48385d=_0x422a00,_0x1c53b6={};return _0x1c53b6[_0x3a47dd]={[Op[_0x48385d('0x1f')]]:'%'+_0xbe2416[_0x48385d('0x49')][_0x48385d('0x20')]+'%'},_0x1c53b6;})})),_0x2f4d22=_[_0x422a00('0x5e')]({},_0x2f4d22,_0xbe2416[_0x422a00('0x52')]),db['UserWhatsappQueue'][_0x422a00('0x48')](_0x2f4d22);})[_0x4719b9('0x11')](function(_0x37db7c){const _0x4a67f7=_0x4719b9;if(_0x37db7c)return db[_0x4a67f7('0x0')][_0x4a67f7('0x4f')]({'where':{'id':_[_0x4a67f7('0x2b')](_0x37db7c,'UserId'),'role':_0x4a67f7('0x5d')},'attributes':['id',_0x4a67f7('0x2a'),_0x4a67f7('0x2'),_0x4a67f7('0x58'),_0x4a67f7('0x47')]});})[_0x4719b9('0x11')](function(_0x3b9ab3){const _0x4aa9c6=_0x4719b9;return _0x3b9ab3?{'count':_0x3b9ab3['count'],'rows':_['map'](_0x3b9ab3[_0x4aa9c6('0x43')],function(_0x4ff324){const _0xa3cfa1=_0x4aa9c6;return{'membername':_0x4ff324['name'],'UserId':_0x4ff324['id'],'queue_name':_0x8543ea['name'],'WhatsappQueueId':_0x8543ea['id'],'interface':util[_0xa3cfa1('0x62')]('%s/%s',_0xa3cfa1('0x4b'),_0x4ff324[_0xa3cfa1('0x2a')]),'penalty':0x0,'paused':_0x4ff324[_0xa3cfa1('0x2')],'createdAt':_0x4ff324[_0xa3cfa1('0x47')],'updatedAt':_0x4ff324['updatedAt']};})}:{'count':0x0,'rows':[]};})[_0x4719b9('0x11')](respondWithFilteredResult(_0xd909a8,_0x2f4d22))['catch'](handleError(_0xd909a8,null));},exports[_0x1c80a0('0x37')]=function(_0x433179,_0xa40600){const _0xa7aded=_0x1c80a0;let _0x250ebe={};const _0x1d2faf={};let _0x2e5ca2,_0xd9f4a8;return db[_0xa7aded('0x36')][_0xa7aded('0x21')]({'where':{'id':_0x433179['params']['id']}})[_0xa7aded('0x11')](handleEntityNotFound(_0xa40600,null))[_0xa7aded('0x11')](function(_0x12d3e3){const _0x583368=_0xa7aded;if(_0x12d3e3)return _0x2e5ca2=_0x12d3e3,_0x1d2faf[_0x583368('0x4c')]=_['keys'](db['Team']['rawAttributes']),_0x1d2faf[_0x583368('0x49')]=_[_0x583368('0x35')](_0x433179[_0x583368('0x49')]),_0x1d2faf['filters']=_[_0x583368('0x10')](_0x1d2faf[_0x583368('0x4c')],_0x1d2faf[_0x583368('0x49')]),_0x250ebe[_0x583368('0x57')]=_[_0x583368('0x10')](_0x1d2faf[_0x583368('0x4c')],qs['fields'](_0x433179['query'][_0x583368('0x46')])),_0x250ebe[_0x583368('0x57')]=_0x250ebe[_0x583368('0x57')][_0x583368('0x5')]?_0x250ebe[_0x583368('0x57')]:_0x1d2faf[_0x583368('0x4c')],_0x250ebe[_0x583368('0x27')]=qs['sort'](_0x433179[_0x583368('0x49')][_0x583368('0x65')]),_0x250ebe[_0x583368('0x64')]=qs['filters'](_[_0x583368('0x41')](_0x433179[_0x583368('0x49')],_0x1d2faf[_0x583368('0xe')])),_0x433179[_0x583368('0x49')][_0x583368('0x20')]&&(_0x250ebe[_0x583368('0x64')]=_[_0x583368('0x5e')](_0x250ebe[_0x583368('0x64')],{[Op['or']]:_[_0x583368('0x2b')](_0x250ebe[_0x583368('0x57')],function(_0x5ce710){const _0x1412cd=_0x583368,_0x1ea113={};return _0x1ea113[_0x5ce710]={[Op[_0x1412cd('0x1f')]]:'%'+_0x433179['query'][_0x1412cd('0x20')]+'%'},_0x1ea113;})})),_0x250ebe=_[_0x583368('0x5e')]({},_0x250ebe,_0x433179[_0x583368('0x52')]),_0x2e5ca2[_0x583368('0x37')](_0x250ebe);})[_0xa7aded('0x11')](function(_0x4fe4d2){const _0x51f15b=_0xa7aded;if(_0x4fe4d2)return _0xd9f4a8=_0x4fe4d2[_0x51f15b('0x5')],typeof _0x433179[_0x51f15b('0x49')]['nolimit']===_0x51f15b('0xf')&&(_0x250ebe[_0x51f15b('0x7')]=qs[_0x51f15b('0x7')](_0x433179['query'][_0x51f15b('0x7')]),_0x250ebe[_0x51f15b('0xd')]=qs[_0x51f15b('0xd')](_0x433179['query'][_0x51f15b('0xd')])),_0x2e5ca2[_0x51f15b('0x37')](_0x250ebe);})['then'](function(_0x106760){if(_0x106760)return _0x106760?{'count':_0xd9f4a8,'rows':_0x106760}:null;})[_0xa7aded('0x11')](respondWithResult(_0xa40600,null))[_0xa7aded('0x3a')](handleError(_0xa40600,null));},exports['addTeams']=function(_0x2ceb86,_0xe8e1ff){const _0x2fe32e=_0x1c80a0,_0x532b58=_0x2ceb86['body'][_0x2fe32e('0x4')];return db['Team'][_0x2fe32e('0x48')]({'where':{'id':_0x532b58},'attributes':['id'],'include':[{'model':db[_0x2fe32e('0x0')],'as':_0x2fe32e('0x51'),'attributes':['id',_0x2fe32e('0x2a'),'online',_0x2fe32e('0x60'),_0x2fe32e('0x1c')],'raw':!![]}]})[_0x2fe32e('0x11')](function(_0xee3aeb){const _0x1a7331=_0x2fe32e;if(_0xee3aeb){const _0x276565=_[_0x1a7331('0x6c')](_0xee3aeb,function(_0x475cd9){const _0x33a2b4=_0x1a7331,_0x38c84b=_0x475cd9[_0x33a2b4('0x18')]({'plain':!![]});return _0x38c84b[_0x33a2b4('0x51')];});return db[_0x1a7331('0x36')][_0x1a7331('0x21')]({'where':{'id':_0x2ceb86['params']['id']}})[_0x1a7331('0x11')](function(_0x321bce){const _0xd80bd7=_0x1a7331;return db[_0xd80bd7('0x30')]['transaction'](function(_0x50ae3e){const _0x489f6c=_0xd80bd7;return _0x321bce['addTeams'](_0x532b58,{'transaction':_0x50ae3e})['then'](function(){const _0x4fc849=a808_0x3320;return Promise[_0x4fc849('0x5f')](_0x276565,function(_0x55ee6a){const _0x5c2fc0=_0x4fc849;return db['UserWhatsappQueue']['findOrCreate']({'where':{'UserId':_0x55ee6a['id'],'WhatsappQueueId':_0x2ceb86[_0x5c2fc0('0x1')]['id']},'transaction':_0x50ae3e});});})[_0x489f6c('0x11')](function(){const _0x47b208=_0x489f6c;_0x276565[_0x47b208('0x12')](function(_0x1bbb41){const _0x9cf060=_0x47b208;socket[_0x9cf060('0x54')](_0x9cf060('0x3e'),{'UserId':_0x1bbb41['id'],'WhatsappQueueId':_0x321bce['id']});});});});});}})[_0x2fe32e('0x11')](respondWithStatusCode(_0xe8e1ff,null))[_0x2fe32e('0x3a')](handleError(_0xe8e1ff,null));},exports[_0x1c80a0('0x40')]=function(_0x1f067b,_0x8f310d){const _0x12804b=_0x1c80a0;return db[_0x12804b('0x34')][_0x12804b('0x48')]({'where':{'id':_0x1f067b[_0x12804b('0x49')][_0x12804b('0x4')]},'attributes':['id'],'include':[{'model':db[_0x12804b('0x0')],'as':_0x12804b('0x51'),'attributes':['id'],'raw':!![]}]})[_0x12804b('0x11')](handleEntityNotFound(_0x8f310d,null))[_0x12804b('0x11')](function(_0x4fc35e){const _0xa5d9e2=_0x12804b,_0x58d655=_['map'](_0x4fc35e,'id');let _0x5608b7=[];const _0x328971=[],_0x242302=squel['select']();_0x242302[_0xa5d9e2('0x23')](_0xa5d9e2('0x16'))[_0xa5d9e2('0x17')](_0xa5d9e2('0x5b'),'tq')[_0xa5d9e2('0x28')]('user_has_teams','ut',_0xa5d9e2('0x59'))['where'](_0xa5d9e2('0x38'),_0x1f067b[_0xa5d9e2('0x1')]['id']);for(let _0x595176=0x0;_0x595176<_0x4fc35e[_0xa5d9e2('0x5')];_0x595176+=0x1){const _0x535d96=_0x4fc35e[_0x595176];for(let _0x345b8d=0x0;_0x345b8d<_0x535d96['Agents'][_0xa5d9e2('0x5')];_0x345b8d+=0x1){const _0x67aa8a=_0x535d96[_0xa5d9e2('0x51')][_0x345b8d],_0x721345=_0x242302[_0xa5d9e2('0x2f')]();_0x721345[_0xa5d9e2('0x64')]('ut.UserId\x20=\x20?',_0x67aa8a['id']),_0x328971[_0xa5d9e2('0x1d')](db[_0xa5d9e2('0x30')]['query'](_0x721345[_0xa5d9e2('0x9')](),{'type':db['sequelize'][_0xa5d9e2('0x14')]['SELECT']})[_0xa5d9e2('0x11')](function(_0x529afd){const _0x5cfe31=_0xa5d9e2;if(_0x529afd[_0x5cfe31('0x5')]===0x1)return _0x67aa8a['id'];else{const _0x162dd0=_['every'](_['map'](_0x529afd,_0x5cfe31('0x6b')),function(_0x3d8ade){return _['includes'](_0x58d655,_0x3d8ade);});if(_0x162dd0)return _0x67aa8a['id'];}}));}}return Promise[_0xa5d9e2('0x29')](_0x328971)[_0xa5d9e2('0x11')](function(_0x2cc153){const _0x4467e1=_0xa5d9e2;return _0x5608b7=_(_0x5608b7)['union'](_0x2cc153)[_0x4467e1('0x13')]()['value'](),db[_0x4467e1('0x36')]['findOne']({'where':{'id':_0x1f067b[_0x4467e1('0x1')]['id']}})['then'](function(_0x11bfaa){const _0xd99811=_0x4467e1;return db[_0xd99811('0x30')][_0xd99811('0x31')](function(_0xb99645){const _0x3855b7=_0xd99811;return _0x11bfaa[_0x3855b7('0x40')](_0x1f067b['query'][_0x3855b7('0x4')],{'transaction':_0xb99645})[_0x3855b7('0x11')](function(){const _0x1ac2c3=_0x3855b7;if(!_[_0x1ac2c3('0xa')](_0x5608b7))return _0x11bfaa[_0x1ac2c3('0x44')](_0x5608b7,{'transaction':_0xb99645});})['then'](function(){const _0x11bc06=_0x3855b7;_0x5608b7[_0x11bc06('0x12')](function(_0x1c4a77){const _0x288f82=_0x11bc06;socket[_0x288f82('0x54')](_0x288f82('0x24'),{'UserId':_0x1c4a77,'WhatsappQueueId':_0x11bfaa['id']});});});});});});})[_0x12804b('0x11')](respondWithStatusCode(_0x8f310d,null))[_0x12804b('0x3a')](handleError(_0x8f310d,null));},exports['addAgents']=function(_0xff3189,_0x3b8885){const _0x3b6bb4=_0x1c80a0;return db[_0x3b6bb4('0x36')][_0x3b6bb4('0x21')]({'where':{'id':_0xff3189[_0x3b6bb4('0x1')]['id']}})[_0x3b6bb4('0x11')](function(_0x1a29e7){const _0x361166=_0x3b6bb4;if(_0x1a29e7)return _0x1a29e7[_0x361166('0x39')](_0xff3189[_0x361166('0x2e')][_0x361166('0x4')],{'through':_[_0x361166('0xc')](_0xff3189[_0x361166('0x2e')],[_0x361166('0x4'),'id'])})[_0x361166('0x11')](function(_0x582574){const _0x5e2023=_0x361166;for(let _0x5f20f5=0x0;_0x5f20f5<_0xff3189[_0x5e2023('0x2e')]['ids']['length'];_0x5f20f5+=0x1){socket['emit'](_0x5e2023('0x3e'),{'UserId':_0xff3189[_0x5e2023('0x2e')][_0x5e2023('0x4')][_0x5f20f5],'WhatsappQueueId':_0xff3189[_0x5e2023('0x1')]['id']});}return _0x582574;});})[_0x3b6bb4('0x11')](respondWithResult(_0x3b8885,null))[_0x3b6bb4('0x3a')](handleError(_0x3b8885,null));},exports['removeAgents']=function(_0x2bf2bf,_0x18cab6){const _0x5b72c=_0x1c80a0;return db[_0x5b72c('0x36')]['findOne']({'where':{'id':_0x2bf2bf[_0x5b72c('0x1')]['id']}})[_0x5b72c('0x11')](handleEntityNotFound(_0x18cab6,null))['then'](function(_0x2764b4){const _0x1b4ddd=_0x5b72c;if(_0x2764b4)return _0x2764b4['removeAgents'](_0x2bf2bf[_0x1b4ddd('0x49')]['ids'])['then'](function(){const _0x2007f8=_0x1b4ddd;if(_['isArray'](_0x2bf2bf[_0x2007f8('0x49')][_0x2007f8('0x4')]))for(let _0x20578c=0x0;_0x20578c<_0x2bf2bf['query'][_0x2007f8('0x4')]['length'];_0x20578c+=0x1){socket[_0x2007f8('0x54')]('userWhatsappQueue:remove',{'UserId':Number(_0x2bf2bf[_0x2007f8('0x49')][_0x2007f8('0x4')][_0x20578c]),'WhatsappQueueId':Number(_0x2bf2bf['params']['id'])});}else socket[_0x2007f8('0x54')]('userWhatsappQueue:remove',{'UserId':Number(_0x2bf2bf[_0x2007f8('0x49')][_0x2007f8('0x4')]),'WhatsappQueueId':Number(_0x2bf2bf[_0x2007f8('0x1')]['id'])});});})['then'](respondWithStatusCode(_0x18cab6,null))[_0x5b72c('0x3a')](handleError(_0x18cab6,null));},exports[_0x1c80a0('0x32')]=function(_0x31d6a5,_0x4bb8ab){const _0x3411d5=_0x1c80a0;let _0x38ab8d={};const _0x1b4df1={};let _0x39d69a,_0x2f816e;return db['WhatsappQueue']['findOne']({'where':{'id':_0x31d6a5[_0x3411d5('0x1')]['id']}})['then'](handleEntityNotFound(_0x4bb8ab,null))[_0x3411d5('0x11')](function(_0x36a1c7){const _0x936735=_0x3411d5;if(_0x36a1c7)return _0x39d69a=_0x36a1c7,_0x1b4df1[_0x936735('0x4c')]=_[_0x936735('0x35')](db[_0x936735('0x0')][_0x936735('0x63')]),_0x1b4df1[_0x936735('0x49')]=_[_0x936735('0x35')](_0x31d6a5['query']),_0x1b4df1[_0x936735('0xe')]=_[_0x936735('0x10')](_0x1b4df1['model'],_0x1b4df1[_0x936735('0x49')]),_0x38ab8d['attributes']=_[_0x936735('0x10')](_0x1b4df1[_0x936735('0x4c')],qs[_0x936735('0x46')](_0x31d6a5[_0x936735('0x49')][_0x936735('0x46')])),_0x38ab8d[_0x936735('0x57')]=_0x38ab8d['attributes'][_0x936735('0x5')]?_0x38ab8d[_0x936735('0x57')]:_0x1b4df1[_0x936735('0x4c')],_0x38ab8d[_0x936735('0x27')]=qs[_0x936735('0x65')](_0x31d6a5[_0x936735('0x49')][_0x936735('0x65')]),_0x38ab8d[_0x936735('0x64')]=qs[_0x936735('0xe')](_['pick'](_0x31d6a5[_0x936735('0x49')],_0x1b4df1['filters'])),_0x31d6a5[_0x936735('0x49')][_0x936735('0x20')]&&(_0x38ab8d[_0x936735('0x64')]=_[_0x936735('0x5e')](_0x38ab8d[_0x936735('0x64')],{[Op['or']]:_[_0x936735('0x2b')](_0x38ab8d['attributes'],function(_0x33ec2b){const _0x56e4f4=_0x936735,_0x5c09a6={};return _0x5c09a6[_0x33ec2b]={[Op[_0x56e4f4('0x1f')]]:'%'+_0x31d6a5[_0x56e4f4('0x49')][_0x56e4f4('0x20')]+'%'},_0x5c09a6;})})),_0x38ab8d=_[_0x936735('0x5e')]({},_0x38ab8d,_0x31d6a5['options']),_0x39d69a['getAgents'](_0x38ab8d);})[_0x3411d5('0x11')](function(_0x15625f){const _0x1b0a5c=_0x3411d5;if(_0x15625f)return _0x2f816e=_0x15625f['length'],typeof _0x31d6a5[_0x1b0a5c('0x49')][_0x1b0a5c('0x2d')]===_0x1b0a5c('0xf')&&(_0x38ab8d[_0x1b0a5c('0x7')]=qs[_0x1b0a5c('0x7')](_0x31d6a5[_0x1b0a5c('0x49')]['limit']),_0x38ab8d[_0x1b0a5c('0xd')]=qs[_0x1b0a5c('0xd')](_0x31d6a5[_0x1b0a5c('0x49')][_0x1b0a5c('0xd')])),_0x39d69a[_0x1b0a5c('0x32')](_0x38ab8d);})[_0x3411d5('0x11')](function(_0x6cd9d5){if(_0x6cd9d5)return _0x6cd9d5?{'count':_0x2f816e,'rows':_0x6cd9d5}:null;})['then'](respondWithResult(_0x4bb8ab,null))[_0x3411d5('0x3a')](handleError(_0x4bb8ab,null));}; \ No newline at end of file +const a808_0x4b30=['SIP','length','offset','keys','create','ids','value','findAll','tq.TeamId','format','sequelize','error','removeTeams','findOne','order','filters','includes','catch','from','join','include','./whatsappQueue.socket','role','getAgents','sendStatus','name','clone','user','then','toString','omit','rows','userWhatsappQueue:save','undefined','each','userWhatsappQueue:remove','online','transaction','whatsappPause','team_has_whatsapp_queues','createdAt','nolimit','json','compact','Unable\x20to\x20retrieve\x20the\x20current\x20user','TeamId','%s/%s','status','get','UserProfileSection','options','every','agent','util','fields','interface','User','UserProfileResource','findAndCountAll','update','getTeams','end','like','stack','select','send','voicePause','index','filter','WhatsappQueue','count','WhatsappQueueId\x20=\x20?','api','model','show','emit','merge','pick','findOrCreate','WhatsappQueues','body','destroy','query','getMembers','Content-Range','addAgents','UserWhatsappQueue','Agents','intersection','addTeams','attributes','forEach','SELECT','userProfileId','VIRTUAL','includeAll','describe','where','removeAgents','sort','rawAttributes','fieldName','../../mysqldb','type','params','map','Team','limit','set'];(function(_0x46bb76,_0x4b3088){const _0x4bf35f=function(_0x343fba){while(--_0x343fba){_0x46bb76['push'](_0x46bb76['shift']());}};_0x4bf35f(++_0x4b3088);}(a808_0x4b30,0x172));const a808_0x4bf3=function(_0x46bb76,_0x4b3088){_0x46bb76=_0x46bb76-0x0;let _0x4bf35f=a808_0x4b30[_0x46bb76];return _0x4bf35f;};const _0x4a5684=a808_0x4bf3;'use strict';const util=require(_0x4a5684('0xa')),_=require('lodash'),squel=require('squel'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x4a5684('0x1d')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x4a5684('0x3b'))['db'],{Op}=require('sequelize');require(_0x4a5684('0x57'))['register'](socket);function respondWithStatusCode(_0x343fba,_0x40154d){return _0x40154d=_0x40154d||0xcc,function(_0x38382c){const _0x470ac9=a808_0x4bf3;if(_0x38382c)return _0x343fba[_0x470ac9('0x5a')](_0x40154d);return _0x343fba[_0x470ac9('0x4')](_0x40154d)[_0x470ac9('0x12')]();};}function respondWithResult(_0x5e41e0,_0x24b0e6){return _0x24b0e6=_0x24b0e6||0xc8,function(_0x2842d8){const _0x230d5d=a808_0x4bf3;if(_0x2842d8)return _0x5e41e0[_0x230d5d('0x4')](_0x24b0e6)['json'](_0x2842d8);};}function respondWithFilteredResult(_0x57b78e,_0x49193e){return function(_0x4450d3){const _0x396c83=a808_0x4bf3;if(_0x4450d3){const _0x189e93=_0x4450d3[_0x396c83('0x1b')],_0x285662=_0x49193e[_0x396c83('0x44')];let _0x196239=_0x49193e[_0x396c83('0x44')]+_0x49193e[_0x396c83('0x40')],_0x706e;return _0x196239>=_0x189e93?(_0x196239=_0x189e93,_0x706e=0xc8):_0x706e=0xce,_0x57b78e[_0x396c83('0x4')](_0x706e),_0x57b78e[_0x396c83('0x41')](_0x396c83('0x29'),_0x285662+'-'+_0x196239+'/'+_0x189e93)[_0x396c83('0x6c')](_0x4450d3);}return null;};}function saveUpdates(_0x1f8204){return function(_0x2f410f){const _0x51460c=a808_0x4bf3;if(_0x2f410f)return _0x2f410f[_0x51460c('0x10')](_0x1f8204)[_0x51460c('0x5e')](function(_0x580f92){return _0x580f92;});return null;};}function removeEntity(_0x1f0da0){return function(_0x3514d8){const _0x2b4b2a=a808_0x4bf3;if(_0x3514d8)return _0x3514d8[_0x2b4b2a('0x26')]()[_0x2b4b2a('0x5e')](function(){const _0x3b16d5=_0x2b4b2a,_0x119199=_0x3514d8[_0x3b16d5('0x5')]({'plain':!![]}),_0x16ea7b=_0x3b16d5('0x24');return db[_0x3b16d5('0xe')][_0x3b16d5('0x26')]({'where':{'type':_0x16ea7b,'resourceId':_0x119199['id']}})[_0x3b16d5('0x5e')](function(){return _0x3514d8;});})[_0x2b4b2a('0x5e')](function(){const _0x712040=_0x2b4b2a;_0x1f0da0[_0x712040('0x4')](0xcc)[_0x712040('0x12')]();});};}function handleEntityNotFound(_0x4d6e79){return function(_0x37b5d5){const _0x4ecd4f=a808_0x4bf3;return!_0x37b5d5&&_0x4d6e79[_0x4ecd4f('0x5a')](0x194),_0x37b5d5;};}function handleError(_0x50d09d,_0x42da32){return _0x42da32=_0x42da32||0x1f4,function(_0xeddd04){const _0x4acbbb=a808_0x4bf3;logger[_0x4acbbb('0x4d')](_0xeddd04[_0x4acbbb('0x14')]),_0xeddd04[_0x4acbbb('0x5b')]&&delete _0xeddd04['name'],_0x50d09d[_0x4acbbb('0x4')](_0x42da32)[_0x4acbbb('0x16')](_0xeddd04);};}exports[_0x4a5684('0x18')]=function(_0x12f718,_0x1cc9cb){const _0x4ef5ed=_0x4a5684;let _0x1509c2={};const _0x28ef6f={},_0x3ef34e={'count':0x0,'rows':[]},_0x2b5c68=_[_0x4ef5ed('0x3e')](db[_0x4ef5ed('0x1a')][_0x4ef5ed('0x39')],function(_0x19442c){const _0x377f1a=_0x4ef5ed;return{'name':_0x19442c[_0x377f1a('0x3a')],'type':_0x19442c['type']['key']};});_0x28ef6f[_0x4ef5ed('0x1e')]=_[_0x4ef5ed('0x3e')](_0x2b5c68,_0x4ef5ed('0x5b')),_0x28ef6f[_0x4ef5ed('0x27')]=_['keys'](_0x12f718[_0x4ef5ed('0x27')]),_0x28ef6f[_0x4ef5ed('0x51')]=_[_0x4ef5ed('0x2d')](_0x28ef6f['model'],_0x28ef6f[_0x4ef5ed('0x27')]),_0x1509c2['attributes']=_['intersection'](_0x28ef6f[_0x4ef5ed('0x1e')],qs[_0x4ef5ed('0xb')](_0x12f718[_0x4ef5ed('0x27')][_0x4ef5ed('0xb')])),_0x1509c2['attributes']=_0x1509c2[_0x4ef5ed('0x2f')][_0x4ef5ed('0x43')]?_0x1509c2[_0x4ef5ed('0x2f')]:_0x28ef6f['model'];typeof _0x12f718[_0x4ef5ed('0x27')][_0x4ef5ed('0x6b')]===_0x4ef5ed('0x63')&&(_0x1509c2[_0x4ef5ed('0x40')]=qs[_0x4ef5ed('0x40')](_0x12f718[_0x4ef5ed('0x27')]['limit']),_0x1509c2['offset']=qs['offset'](_0x12f718[_0x4ef5ed('0x27')][_0x4ef5ed('0x44')]));_0x1509c2[_0x4ef5ed('0x50')]=qs['sort'](_0x12f718['query'][_0x4ef5ed('0x38')]),_0x1509c2['where']=qs['filters'](_[_0x4ef5ed('0x22')](_0x12f718[_0x4ef5ed('0x27')],_0x28ef6f['filters']),_0x2b5c68);_0x12f718[_0x4ef5ed('0x27')][_0x4ef5ed('0x19')]&&(_0x1509c2[_0x4ef5ed('0x36')]=_[_0x4ef5ed('0x21')](_0x1509c2[_0x4ef5ed('0x36')],{[Op['or']]:_[_0x4ef5ed('0x3e')](_0x2b5c68,function(_0x424b25){const _0x3cfdcf=_0x4ef5ed;if(_0x424b25[_0x3cfdcf('0x3c')]!==_0x3cfdcf('0x33')){const _0x510ae4={};return _0x510ae4[_0x424b25[_0x3cfdcf('0x5b')]]={[Op['like']]:'%'+_0x12f718[_0x3cfdcf('0x27')][_0x3cfdcf('0x19')]+'%'},_0x510ae4;}})}));_0x1509c2=_[_0x4ef5ed('0x21')]({},_0x1509c2,_0x12f718['options']);const _0x3176e3={'where':_0x1509c2[_0x4ef5ed('0x36')]};return db[_0x4ef5ed('0x1a')][_0x4ef5ed('0x1b')](_0x3176e3)[_0x4ef5ed('0x5e')](function(_0x5d8655){const _0xcc35f2=_0x4ef5ed;return _0x3ef34e[_0xcc35f2('0x1b')]=_0x5d8655,_0x12f718[_0xcc35f2('0x27')][_0xcc35f2('0x34')]&&(_0x1509c2[_0xcc35f2('0x56')]=[{'all':!![]}]),db[_0xcc35f2('0x1a')][_0xcc35f2('0x49')](_0x1509c2);})[_0x4ef5ed('0x5e')](function(_0x3b0f19){const _0x1e28b9=_0x4ef5ed;return _0x3ef34e[_0x1e28b9('0x61')]=_0x3b0f19,_0x3ef34e;})[_0x4ef5ed('0x5e')](respondWithFilteredResult(_0x1cc9cb,_0x1509c2))[_0x4ef5ed('0x53')](handleError(_0x1cc9cb,null));},exports[_0x4a5684('0x1f')]=function(_0x49d323,_0x3f9978){const _0x2160dd=_0x4a5684;let _0x50e272={'raw':!![],'where':{'id':_0x49d323['params']['id']}};const _0x21d2a9={};return _0x21d2a9[_0x2160dd('0x1e')]=_['keys'](db[_0x2160dd('0x1a')][_0x2160dd('0x39')]),_0x21d2a9[_0x2160dd('0x27')]=_[_0x2160dd('0x45')](_0x49d323[_0x2160dd('0x27')]),_0x21d2a9[_0x2160dd('0x51')]=_[_0x2160dd('0x2d')](_0x21d2a9[_0x2160dd('0x1e')],_0x21d2a9[_0x2160dd('0x27')]),_0x50e272[_0x2160dd('0x2f')]=_[_0x2160dd('0x2d')](_0x21d2a9[_0x2160dd('0x1e')],qs[_0x2160dd('0xb')](_0x49d323[_0x2160dd('0x27')][_0x2160dd('0xb')])),_0x50e272[_0x2160dd('0x2f')]=_0x50e272[_0x2160dd('0x2f')][_0x2160dd('0x43')]?_0x50e272[_0x2160dd('0x2f')]:_0x21d2a9[_0x2160dd('0x1e')],_0x49d323['query']['includeAll']&&(_0x50e272['include']=[{'all':!![]}]),_0x50e272=_[_0x2160dd('0x21')]({},_0x50e272,_0x49d323[_0x2160dd('0x7')]),db[_0x2160dd('0x1a')][_0x2160dd('0x4f')](_0x50e272)[_0x2160dd('0x5e')](handleEntityNotFound(_0x3f9978,null))[_0x2160dd('0x5e')](respondWithResult(_0x3f9978,null))[_0x2160dd('0x53')](handleError(_0x3f9978,null));},exports[_0x4a5684('0x46')]=function(_0x56aa6e,_0x4e51ed){const _0x379d49=_0x4a5684;return db[_0x379d49('0x1a')][_0x379d49('0x46')](_0x56aa6e['body'],{})[_0x379d49('0x5e')](function(_0xccb0a5){const _0x49756a=_0x379d49,_0x25f646=_0x56aa6e['user'][_0x49756a('0x5')]({'plain':!![]});if(!_0x25f646)throw new Error(_0x49756a('0x1'));if(_0x25f646[_0x49756a('0x58')]===_0x49756a('0x5d')){const _0x2a862e=_0xccb0a5[_0x49756a('0x5')]({'plain':!![]}),_0x5ded61=_0x49756a('0x24');return db[_0x49756a('0x6')][_0x49756a('0x4f')]({'where':{'name':_0x5ded61,'userProfileId':_0x25f646[_0x49756a('0x32')]},'raw':!![]})[_0x49756a('0x5e')](function(_0x1bd9a1){const _0x50da2e=_0x49756a;return _0x1bd9a1&&_0x1bd9a1['autoAssociation']===0x0?db['UserProfileResource'][_0x50da2e('0x46')]({'name':_0x2a862e['name'],'resourceId':_0x2a862e['id'],'type':_0x1bd9a1[_0x50da2e('0x5b')],'sectionId':_0x1bd9a1['id']},{})[_0x50da2e('0x5e')](function(){return _0xccb0a5;}):_0xccb0a5;})['catch'](function(_0x17a802){const _0x22a31a=_0x49756a;logger[_0x22a31a('0x4d')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x17a802);throw _0x17a802;});}return _0xccb0a5;})['then'](respondWithResult(_0x4e51ed,0xc9))[_0x379d49('0x53')](handleError(_0x4e51ed,null));},exports[_0x4a5684('0x10')]=function(_0xc131f3,_0x71196f){const _0x3dcf53=_0x4a5684;return _0xc131f3[_0x3dcf53('0x25')]['id']&&delete _0xc131f3[_0x3dcf53('0x25')]['id'],db[_0x3dcf53('0x1a')][_0x3dcf53('0x4f')]({'where':{'id':_0xc131f3[_0x3dcf53('0x3d')]['id']}})[_0x3dcf53('0x5e')](handleEntityNotFound(_0x71196f,null))['then'](saveUpdates(_0xc131f3[_0x3dcf53('0x25')],null))[_0x3dcf53('0x5e')](respondWithResult(_0x71196f,null))[_0x3dcf53('0x53')](handleError(_0x71196f,null));},exports[_0x4a5684('0x26')]=function(_0x5be2cc,_0x1d2fca){const _0x3c2150=_0x4a5684;return db[_0x3c2150('0x1a')][_0x3c2150('0x4f')]({'where':{'id':_0x5be2cc[_0x3c2150('0x3d')]['id']}})[_0x3c2150('0x5e')](handleEntityNotFound(_0x1d2fca,null))[_0x3c2150('0x5e')](removeEntity(_0x1d2fca,null))['catch'](handleError(_0x1d2fca,null));},exports[_0x4a5684('0x35')]=function(_0x501986,_0x5642d8){const _0x540919=_0x4a5684;return db[_0x540919('0x1a')][_0x540919('0x35')]()[_0x540919('0x5e')](respondWithResult(_0x5642d8,null))[_0x540919('0x53')](handleError(_0x5642d8,null));},exports[_0x4a5684('0x28')]=function(_0x209195,_0x4dce73){const _0x29760e=_0x4a5684;let _0x593295={'raw':!![],'where':{}};const _0x267abc={};let _0x2a68d6;return db[_0x29760e('0x1a')][_0x29760e('0x4f')]({'where':{'id':_0x209195[_0x29760e('0x3d')]['id']}})[_0x29760e('0x5e')](handleEntityNotFound(_0x4dce73,null))[_0x29760e('0x5e')](function(_0x427887){const _0x4c8c94=_0x29760e;if(_0x427887)return _0x2a68d6=_0x427887[_0x4c8c94('0x5')]({'plain':!![]}),_0x267abc[_0x4c8c94('0x1e')]=_[_0x4c8c94('0x45')](db[_0x4c8c94('0x2b')][_0x4c8c94('0x39')]),_0x267abc[_0x4c8c94('0x27')]=_[_0x4c8c94('0x45')](_0x209195[_0x4c8c94('0x27')]),_0x267abc[_0x4c8c94('0x51')]=_['intersection'](_0x267abc[_0x4c8c94('0x1e')],_0x267abc[_0x4c8c94('0x27')]),_0x593295[_0x4c8c94('0x2f')]=_['intersection'](_0x267abc[_0x4c8c94('0x1e')],qs[_0x4c8c94('0xb')](_0x209195['query'][_0x4c8c94('0xb')])),_0x593295[_0x4c8c94('0x2f')]=_0x593295[_0x4c8c94('0x2f')][_0x4c8c94('0x43')]?_0x593295[_0x4c8c94('0x2f')]:_0x267abc[_0x4c8c94('0x1e')],typeof _0x209195[_0x4c8c94('0x27')][_0x4c8c94('0x6b')]===_0x4c8c94('0x63')&&(_0x593295[_0x4c8c94('0x40')]=qs['limit'](_0x209195['query']['limit']),_0x593295[_0x4c8c94('0x44')]=qs[_0x4c8c94('0x44')](_0x209195['query'][_0x4c8c94('0x44')])),_0x593295['order']=qs[_0x4c8c94('0x38')](_0x209195[_0x4c8c94('0x27')][_0x4c8c94('0x38')]),_0x593295[_0x4c8c94('0x36')]=qs['filters'](_[_0x4c8c94('0x22')](_0x209195['query'],_0x267abc[_0x4c8c94('0x51')])),_0x593295[_0x4c8c94('0x36')]['WhatsappQueueId']=_0x427887['id'],_0x209195[_0x4c8c94('0x27')]['filter']&&(_0x593295['where']=_[_0x4c8c94('0x21')](_0x593295[_0x4c8c94('0x36')],{[Op['or']]:_['map'](_0x593295[_0x4c8c94('0x2f')],function(_0x50d6a7){const _0x552004=_0x4c8c94,_0x584c5c={};return _0x584c5c[_0x50d6a7]={[Op[_0x552004('0x13')]]:'%'+_0x209195['query']['filter']+'%'},_0x584c5c;})})),_0x593295=_[_0x4c8c94('0x21')]({},_0x593295,_0x209195['options']),db['UserWhatsappQueue'][_0x4c8c94('0x49')](_0x593295);})[_0x29760e('0x5e')](function(_0x2aa764){const _0x58e150=_0x29760e;if(_0x2aa764)return db[_0x58e150('0xd')][_0x58e150('0xf')]({'where':{'id':_[_0x58e150('0x3e')](_0x2aa764,'UserId'),'role':_0x58e150('0x9')},'attributes':['id',_0x58e150('0x5b'),_0x58e150('0x68'),'updatedAt',_0x58e150('0x6a')]});})['then'](function(_0x22d84a){const _0x1f7bd9=_0x29760e;return _0x22d84a?{'count':_0x22d84a[_0x1f7bd9('0x1b')],'rows':_[_0x1f7bd9('0x3e')](_0x22d84a['rows'],function(_0x4c6326){const _0x5a1a58=_0x1f7bd9;return{'membername':_0x4c6326['name'],'UserId':_0x4c6326['id'],'queue_name':_0x2a68d6[_0x5a1a58('0x5b')],'WhatsappQueueId':_0x2a68d6['id'],'interface':util[_0x5a1a58('0x4b')](_0x5a1a58('0x3'),_0x5a1a58('0x42'),_0x4c6326[_0x5a1a58('0x5b')]),'penalty':0x0,'paused':_0x4c6326[_0x5a1a58('0x68')],'createdAt':_0x4c6326[_0x5a1a58('0x6a')],'updatedAt':_0x4c6326['updatedAt']};})}:{'count':0x0,'rows':[]};})[_0x29760e('0x5e')](respondWithFilteredResult(_0x4dce73,_0x593295))[_0x29760e('0x53')](handleError(_0x4dce73,null));},exports[_0x4a5684('0x11')]=function(_0x2f42ba,_0x27494f){const _0x294cfd=_0x4a5684;let _0x239b3b={};const _0x2a9ca6={};let _0x2018bd,_0x1c3240;return db[_0x294cfd('0x1a')]['findOne']({'where':{'id':_0x2f42ba[_0x294cfd('0x3d')]['id']}})['then'](handleEntityNotFound(_0x27494f,null))[_0x294cfd('0x5e')](function(_0x451011){const _0x467b5e=_0x294cfd;if(_0x451011)return _0x2018bd=_0x451011,_0x2a9ca6[_0x467b5e('0x1e')]=_[_0x467b5e('0x45')](db[_0x467b5e('0x3f')][_0x467b5e('0x39')]),_0x2a9ca6['query']=_[_0x467b5e('0x45')](_0x2f42ba[_0x467b5e('0x27')]),_0x2a9ca6['filters']=_[_0x467b5e('0x2d')](_0x2a9ca6[_0x467b5e('0x1e')],_0x2a9ca6[_0x467b5e('0x27')]),_0x239b3b[_0x467b5e('0x2f')]=_[_0x467b5e('0x2d')](_0x2a9ca6[_0x467b5e('0x1e')],qs[_0x467b5e('0xb')](_0x2f42ba[_0x467b5e('0x27')][_0x467b5e('0xb')])),_0x239b3b['attributes']=_0x239b3b[_0x467b5e('0x2f')]['length']?_0x239b3b[_0x467b5e('0x2f')]:_0x2a9ca6[_0x467b5e('0x1e')],_0x239b3b[_0x467b5e('0x50')]=qs[_0x467b5e('0x38')](_0x2f42ba[_0x467b5e('0x27')][_0x467b5e('0x38')]),_0x239b3b[_0x467b5e('0x36')]=qs[_0x467b5e('0x51')](_[_0x467b5e('0x22')](_0x2f42ba[_0x467b5e('0x27')],_0x2a9ca6['filters'])),_0x2f42ba['query'][_0x467b5e('0x19')]&&(_0x239b3b['where']=_[_0x467b5e('0x21')](_0x239b3b[_0x467b5e('0x36')],{[Op['or']]:_[_0x467b5e('0x3e')](_0x239b3b[_0x467b5e('0x2f')],function(_0x17eabf){const _0x177d0c=_0x467b5e,_0x345936={};return _0x345936[_0x17eabf]={[Op[_0x177d0c('0x13')]]:'%'+_0x2f42ba[_0x177d0c('0x27')][_0x177d0c('0x19')]+'%'},_0x345936;})})),_0x239b3b=_[_0x467b5e('0x21')]({},_0x239b3b,_0x2f42ba[_0x467b5e('0x7')]),_0x2018bd['getTeams'](_0x239b3b);})[_0x294cfd('0x5e')](function(_0x3d5d78){const _0x2cc737=_0x294cfd;if(_0x3d5d78)return _0x1c3240=_0x3d5d78[_0x2cc737('0x43')],typeof _0x2f42ba[_0x2cc737('0x27')][_0x2cc737('0x6b')]==='undefined'&&(_0x239b3b[_0x2cc737('0x40')]=qs[_0x2cc737('0x40')](_0x2f42ba[_0x2cc737('0x27')][_0x2cc737('0x40')]),_0x239b3b[_0x2cc737('0x44')]=qs[_0x2cc737('0x44')](_0x2f42ba['query'][_0x2cc737('0x44')])),_0x2018bd['getTeams'](_0x239b3b);})['then'](function(_0xff3013){if(_0xff3013)return _0xff3013?{'count':_0x1c3240,'rows':_0xff3013}:null;})['then'](respondWithResult(_0x27494f,null))[_0x294cfd('0x53')](handleError(_0x27494f,null));},exports[_0x4a5684('0x2e')]=function(_0x325816,_0x5621f5){const _0x5149be=_0x4a5684,_0x4c4e1c=_0x325816['body'][_0x5149be('0x47')];return db[_0x5149be('0x3f')][_0x5149be('0x49')]({'where':{'id':_0x4c4e1c},'attributes':['id'],'include':[{'model':db[_0x5149be('0xd')],'as':_0x5149be('0x2c'),'attributes':['id',_0x5149be('0x5b'),_0x5149be('0x66'),_0x5149be('0x17'),_0x5149be('0xc')],'raw':!![]}]})[_0x5149be('0x5e')](function(_0x8405c9){const _0x5141f6=_0x5149be;if(_0x8405c9){const _0x3ed8b3=_['flatMap'](_0x8405c9,function(_0x465543){const _0x14b9a1=a808_0x4bf3,_0xa5826f=_0x465543['get']({'plain':!![]});return _0xa5826f[_0x14b9a1('0x2c')];});return db[_0x5141f6('0x1a')]['findOne']({'where':{'id':_0x325816[_0x5141f6('0x3d')]['id']}})[_0x5141f6('0x5e')](function(_0x2eec5f){const _0x1ab974=_0x5141f6;return db[_0x1ab974('0x4c')][_0x1ab974('0x67')](function(_0x379552){const _0x1416e6=_0x1ab974;return _0x2eec5f[_0x1416e6('0x2e')](_0x4c4e1c,{'transaction':_0x379552})[_0x1416e6('0x5e')](function(){const _0xd82ec2=_0x1416e6;return Promise[_0xd82ec2('0x64')](_0x3ed8b3,function(_0x3e5a6b){const _0x18f2f6=_0xd82ec2;return db[_0x18f2f6('0x2b')][_0x18f2f6('0x23')]({'where':{'UserId':_0x3e5a6b['id'],'WhatsappQueueId':_0x325816[_0x18f2f6('0x3d')]['id']},'transaction':_0x379552});});})[_0x1416e6('0x5e')](function(){const _0x26eb61=_0x1416e6;_0x3ed8b3[_0x26eb61('0x30')](function(_0x511297){const _0x111565=_0x26eb61;socket[_0x111565('0x20')](_0x111565('0x62'),{'UserId':_0x511297['id'],'WhatsappQueueId':_0x2eec5f['id']});});});});});}})['then'](respondWithStatusCode(_0x5621f5,null))[_0x5149be('0x53')](handleError(_0x5621f5,null));},exports['removeTeams']=function(_0x490842,_0x10b9cc){const _0x5f3504=_0x4a5684;return db[_0x5f3504('0x3f')]['findAll']({'where':{'id':_0x490842[_0x5f3504('0x27')]['ids']},'attributes':['id'],'include':[{'model':db[_0x5f3504('0xd')],'as':_0x5f3504('0x2c'),'attributes':['id'],'raw':!![]}]})[_0x5f3504('0x5e')](handleEntityNotFound(_0x10b9cc,null))[_0x5f3504('0x5e')](function(_0x357f9e){const _0x45d96f=_0x5f3504,_0x9e533a=_[_0x45d96f('0x3e')](_0x357f9e,'id');let _0x2a4526=[];const _0x4e9f92=[],_0x3b63c5=squel[_0x45d96f('0x15')]();_0x3b63c5['field'](_0x45d96f('0x4a'))[_0x45d96f('0x54')](_0x45d96f('0x69'),'tq')[_0x45d96f('0x55')]('user_has_teams','ut','ut.TeamId\x20=\x20tq.TeamId')[_0x45d96f('0x36')](_0x45d96f('0x1c'),_0x490842[_0x45d96f('0x3d')]['id']);for(let _0x48b075=0x0;_0x48b075<_0x357f9e[_0x45d96f('0x43')];_0x48b075+=0x1){const _0x585205=_0x357f9e[_0x48b075];for(let _0x2f3024=0x0;_0x2f3024<_0x585205[_0x45d96f('0x2c')][_0x45d96f('0x43')];_0x2f3024+=0x1){const _0xca41bc=_0x585205[_0x45d96f('0x2c')][_0x2f3024],_0x23fb7e=_0x3b63c5[_0x45d96f('0x5c')]();_0x23fb7e[_0x45d96f('0x36')]('ut.UserId\x20=\x20?',_0xca41bc['id']),_0x4e9f92['push'](db[_0x45d96f('0x4c')][_0x45d96f('0x27')](_0x23fb7e[_0x45d96f('0x5f')](),{'type':db[_0x45d96f('0x4c')]['QueryTypes'][_0x45d96f('0x31')]})[_0x45d96f('0x5e')](function(_0x34a28b){const _0x244644=_0x45d96f;if(_0x34a28b[_0x244644('0x43')]===0x1)return _0xca41bc['id'];else{const _0x23bc0a=_[_0x244644('0x8')](_[_0x244644('0x3e')](_0x34a28b,_0x244644('0x2')),function(_0x1f6072){const _0x4d7bd3=_0x244644;return _[_0x4d7bd3('0x52')](_0x9e533a,_0x1f6072);});if(_0x23bc0a)return _0xca41bc['id'];}}));}}return Promise['all'](_0x4e9f92)[_0x45d96f('0x5e')](function(_0x1be435){const _0x465ef8=_0x45d96f;return _0x2a4526=_(_0x2a4526)['union'](_0x1be435)[_0x465ef8('0x0')]()[_0x465ef8('0x48')](),db[_0x465ef8('0x1a')][_0x465ef8('0x4f')]({'where':{'id':_0x490842[_0x465ef8('0x3d')]['id']}})[_0x465ef8('0x5e')](function(_0x1ccbbf){const _0x573df4=_0x465ef8;return db[_0x573df4('0x4c')][_0x573df4('0x67')](function(_0x5090f1){const _0x4880a6=_0x573df4;return _0x1ccbbf[_0x4880a6('0x4e')](_0x490842['query']['ids'],{'transaction':_0x5090f1})[_0x4880a6('0x5e')](function(){const _0x1fbe03=_0x4880a6;if(!_['isEmpty'](_0x2a4526))return _0x1ccbbf[_0x1fbe03('0x37')](_0x2a4526,{'transaction':_0x5090f1});})[_0x4880a6('0x5e')](function(){const _0x57f001=_0x4880a6;_0x2a4526[_0x57f001('0x30')](function(_0x21364c){const _0x3e822c=_0x57f001;socket[_0x3e822c('0x20')](_0x3e822c('0x65'),{'UserId':_0x21364c,'WhatsappQueueId':_0x1ccbbf['id']});});});});});});})[_0x5f3504('0x5e')](respondWithStatusCode(_0x10b9cc,null))[_0x5f3504('0x53')](handleError(_0x10b9cc,null));},exports['addAgents']=function(_0x152c32,_0xf122c3){const _0x4c47c4=_0x4a5684;return db[_0x4c47c4('0x1a')]['findOne']({'where':{'id':_0x152c32[_0x4c47c4('0x3d')]['id']}})['then'](function(_0x44b5d9){const _0x3f4fba=_0x4c47c4;if(_0x44b5d9)return _0x44b5d9[_0x3f4fba('0x2a')](_0x152c32['body'][_0x3f4fba('0x47')],{'through':_[_0x3f4fba('0x60')](_0x152c32[_0x3f4fba('0x25')],['ids','id'])})['then'](function(_0x134ab2){const _0x59212b=_0x3f4fba;for(let _0x81af2c=0x0;_0x81af2c<_0x152c32[_0x59212b('0x25')][_0x59212b('0x47')]['length'];_0x81af2c+=0x1){socket[_0x59212b('0x20')]('userWhatsappQueue:save',{'UserId':_0x152c32[_0x59212b('0x25')][_0x59212b('0x47')][_0x81af2c],'WhatsappQueueId':_0x152c32[_0x59212b('0x3d')]['id']});}return _0x134ab2;});})[_0x4c47c4('0x5e')](respondWithResult(_0xf122c3,null))[_0x4c47c4('0x53')](handleError(_0xf122c3,null));},exports['removeAgents']=function(_0x5e1fb9,_0x1efdf8){const _0x203fe3=_0x4a5684;return db[_0x203fe3('0x1a')][_0x203fe3('0x4f')]({'where':{'id':_0x5e1fb9[_0x203fe3('0x3d')]['id']}})[_0x203fe3('0x5e')](handleEntityNotFound(_0x1efdf8,null))[_0x203fe3('0x5e')](function(_0x37e9e7){const _0x42f3c4=_0x203fe3;if(_0x37e9e7)return _0x37e9e7[_0x42f3c4('0x37')](_0x5e1fb9[_0x42f3c4('0x27')][_0x42f3c4('0x47')])['then'](function(){const _0x28bf17=_0x42f3c4;if(_['isArray'](_0x5e1fb9[_0x28bf17('0x27')][_0x28bf17('0x47')]))for(let _0x3199f5=0x0;_0x3199f5<_0x5e1fb9['query'][_0x28bf17('0x47')][_0x28bf17('0x43')];_0x3199f5+=0x1){socket[_0x28bf17('0x20')]('userWhatsappQueue:remove',{'UserId':Number(_0x5e1fb9[_0x28bf17('0x27')]['ids'][_0x3199f5]),'WhatsappQueueId':Number(_0x5e1fb9[_0x28bf17('0x3d')]['id'])});}else socket[_0x28bf17('0x20')]('userWhatsappQueue:remove',{'UserId':Number(_0x5e1fb9[_0x28bf17('0x27')][_0x28bf17('0x47')]),'WhatsappQueueId':Number(_0x5e1fb9[_0x28bf17('0x3d')]['id'])});});})[_0x203fe3('0x5e')](respondWithStatusCode(_0x1efdf8,null))[_0x203fe3('0x53')](handleError(_0x1efdf8,null));},exports[_0x4a5684('0x59')]=function(_0x4ee347,_0x30d0b6){const _0x2aa7d6=_0x4a5684;let _0xc8dd76={};const _0x9ad784={};let _0x494803,_0x17ac98;return db['WhatsappQueue'][_0x2aa7d6('0x4f')]({'where':{'id':_0x4ee347[_0x2aa7d6('0x3d')]['id']}})['then'](handleEntityNotFound(_0x30d0b6,null))[_0x2aa7d6('0x5e')](function(_0x1e34cd){const _0x472056=_0x2aa7d6;if(_0x1e34cd)return _0x494803=_0x1e34cd,_0x9ad784[_0x472056('0x1e')]=_[_0x472056('0x45')](db['User'][_0x472056('0x39')]),_0x9ad784[_0x472056('0x27')]=_[_0x472056('0x45')](_0x4ee347[_0x472056('0x27')]),_0x9ad784[_0x472056('0x51')]=_[_0x472056('0x2d')](_0x9ad784[_0x472056('0x1e')],_0x9ad784[_0x472056('0x27')]),_0xc8dd76['attributes']=_[_0x472056('0x2d')](_0x9ad784['model'],qs[_0x472056('0xb')](_0x4ee347[_0x472056('0x27')][_0x472056('0xb')])),_0xc8dd76['attributes']=_0xc8dd76[_0x472056('0x2f')][_0x472056('0x43')]?_0xc8dd76[_0x472056('0x2f')]:_0x9ad784[_0x472056('0x1e')],_0xc8dd76[_0x472056('0x50')]=qs[_0x472056('0x38')](_0x4ee347['query'][_0x472056('0x38')]),_0xc8dd76[_0x472056('0x36')]=qs[_0x472056('0x51')](_['pick'](_0x4ee347['query'],_0x9ad784[_0x472056('0x51')])),_0x4ee347[_0x472056('0x27')][_0x472056('0x19')]&&(_0xc8dd76[_0x472056('0x36')]=_[_0x472056('0x21')](_0xc8dd76['where'],{[Op['or']]:_[_0x472056('0x3e')](_0xc8dd76[_0x472056('0x2f')],function(_0x37ed32){const _0x3f8e4c=_0x472056,_0x683133={};return _0x683133[_0x37ed32]={[Op['like']]:'%'+_0x4ee347[_0x3f8e4c('0x27')][_0x3f8e4c('0x19')]+'%'},_0x683133;})})),_0xc8dd76=_[_0x472056('0x21')]({},_0xc8dd76,_0x4ee347['options']),_0x494803[_0x472056('0x59')](_0xc8dd76);})['then'](function(_0x614da7){const _0x55cf22=_0x2aa7d6;if(_0x614da7)return _0x17ac98=_0x614da7[_0x55cf22('0x43')],typeof _0x4ee347['query'][_0x55cf22('0x6b')]===_0x55cf22('0x63')&&(_0xc8dd76[_0x55cf22('0x40')]=qs[_0x55cf22('0x40')](_0x4ee347[_0x55cf22('0x27')]['limit']),_0xc8dd76[_0x55cf22('0x44')]=qs[_0x55cf22('0x44')](_0x4ee347[_0x55cf22('0x27')][_0x55cf22('0x44')])),_0x494803[_0x55cf22('0x59')](_0xc8dd76);})['then'](function(_0x36da53){if(_0x36da53)return _0x36da53?{'count':_0x17ac98,'rows':_0x36da53}:null;})['then'](respondWithResult(_0x30d0b6,null))['catch'](handleError(_0x30d0b6,null));}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.events.js b/server/api/whatsappQueue/whatsappQueue.events.js index aaf7ee3..6f2ab56 100644 --- a/server/api/whatsappQueue/whatsappQueue.events.js +++ b/server/api/whatsappQueue/whatsappQueue.events.js @@ -1 +1 @@ -const a809_0x2389=['WhatsappQueue','../../mysqldb','save','addHook','emit','setMaxListeners','events','exports'];(function(_0x1bb810,_0x2389d9){const _0x6796a1=function(_0x4b62d9){while(--_0x4b62d9){_0x1bb810['push'](_0x1bb810['shift']());}};_0x6796a1(++_0x2389d9);}(a809_0x2389,0x168));const a809_0x6796=function(_0x1bb810,_0x2389d9){_0x1bb810=_0x1bb810-0x0;let _0x6796a1=a809_0x2389[_0x1bb810];return _0x6796a1;};const _0x13bd97=a809_0x6796;'use strict';const EventEmitter=require(_0x13bd97('0x6')),WhatsappQueue=require(_0x13bd97('0x1'))['db'][_0x13bd97('0x0')],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[_0x13bd97('0x5')](0x0);const events={'afterCreate':_0x13bd97('0x2'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x4b62d9){return function(_0x2da3b8){const _0x1dafa3=a809_0x6796;WhatsappQueueEvents[_0x1dafa3('0x4')](_0x4b62d9+':'+_0x2da3b8['id'],_0x2da3b8),WhatsappQueueEvents[_0x1dafa3('0x4')](_0x4b62d9,_0x2da3b8);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappQueue[_0x13bd97('0x3')](e,emitEvent(event));}}module[_0x13bd97('0x7')]=WhatsappQueueEvents; \ No newline at end of file +const a809_0x2dba=['save','../../mysqldb','update','setMaxListeners','undefined','remove','emit'];(function(_0x380205,_0x2dba35){const _0x4ad359=function(_0x4a1b99){while(--_0x4a1b99){_0x380205['push'](_0x380205['shift']());}};_0x4ad359(++_0x2dba35);}(a809_0x2dba,0x8a));const a809_0x4ad3=function(_0x380205,_0x2dba35){_0x380205=_0x380205-0x0;let _0x4ad359=a809_0x2dba[_0x380205];return _0x4ad359;};const _0x5d65ff=a809_0x4ad3;'use strict';const EventEmitter=require('events'),WhatsappQueue=require(_0x5d65ff('0x3'))['db']['WhatsappQueue'],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[_0x5d65ff('0x5')](0x0);const events={'afterCreate':_0x5d65ff('0x2'),'afterUpdate':_0x5d65ff('0x4'),'afterDestroy':_0x5d65ff('0x0')};function emitEvent(_0x4a1b99){return function(_0x5c3873){const _0x323706=a809_0x4ad3;WhatsappQueueEvents[_0x323706('0x1')](_0x4a1b99+':'+_0x5c3873['id'],_0x5c3873),WhatsappQueueEvents['emit'](_0x4a1b99,_0x5c3873);};}for(const e in events){if(typeof events[e]!==_0x5d65ff('0x6')){const event=events[e];WhatsappQueue['addHook'](e,emitEvent(event));}}module['exports']=WhatsappQueueEvents; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.model.js b/server/api/whatsappQueue/whatsappQueue.model.js index 215b1a9..692ecef 100644 --- a/server/api/whatsappQueue/whatsappQueue.model.js +++ b/server/api/whatsappQueue/whatsappQueue.model.js @@ -1 +1 @@ -const a810_0x17f0=['define','exports','whatsapp_queues'];(function(_0x37a2d8,_0x17f069){const _0x5da1f0=function(_0x155b0e){while(--_0x155b0e){_0x37a2d8['push'](_0x37a2d8['shift']());}};_0x5da1f0(++_0x17f069);}(a810_0x17f0,0x121));const a810_0x5da1=function(_0x37a2d8,_0x17f069){_0x37a2d8=_0x37a2d8-0x0;let _0x5da1f0=a810_0x17f0[_0x37a2d8];return _0x5da1f0;};const _0x498f6f=a810_0x5da1;'use strict';const attributes=require('./whatsappQueue.attributes');module[_0x498f6f('0x0')]=function(_0x155b0e){const _0x428330=_0x498f6f,_0x4eda6f=_0x155b0e[_0x428330('0x2')]('WhatsappQueue',attributes,{'tableName':_0x428330('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4eda6f;}; \ No newline at end of file +const a810_0x38bb=['WhatsappQueue','whatsapp_queues','exports','./whatsappQueue.attributes','define'];(function(_0x53264f,_0x38bb5b){const _0x556f87=function(_0xf1583b){while(--_0xf1583b){_0x53264f['push'](_0x53264f['shift']());}};_0x556f87(++_0x38bb5b);}(a810_0x38bb,0x1a7));const a810_0x556f=function(_0x53264f,_0x38bb5b){_0x53264f=_0x53264f-0x0;let _0x556f87=a810_0x38bb[_0x53264f];return _0x556f87;};const _0x4b09e8=a810_0x556f;'use strict';const attributes=require(_0x4b09e8('0x0'));module[_0x4b09e8('0x4')]=function(_0xf1583b){const _0x383819=_0x4b09e8,_0x1f7709=_0xf1583b[_0x383819('0x1')](_0x383819('0x2'),attributes,{'tableName':_0x383819('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1f7709;}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.rpc.js b/server/api/whatsappQueue/whatsappQueue.rpc.js index 7700180..3f04714 100644 --- a/server/api/whatsappQueue/whatsappQueue.rpc.js +++ b/server/api/whatsappQueue/whatsappQueue.rpc.js @@ -1 +1 @@ -const a811_0x2faf=['map','findOne','lodash','stringify','options','ShowWhatsappQueue','debug','then','../../config/logger','info','where','message','model','attributes','../../mysqldb','include','limit','register','findAll','error','WhatsappQueue','rpc','catch','raw','GetWhatsappQueue'];(function(_0x1dbb1d,_0x2faf2e){const _0x48afd3=function(_0x4e1dc5){while(--_0x4e1dc5){_0x1dbb1d['push'](_0x1dbb1d['shift']());}};_0x48afd3(++_0x2faf2e);}(a811_0x2faf,0xee));const a811_0x48af=function(_0x1dbb1d,_0x2faf2e){_0x1dbb1d=_0x1dbb1d-0x0;let _0x48afd3=a811_0x2faf[_0x1dbb1d];return _0x48afd3;};const _0x3ad490=a811_0x48af;'use strict';const _=require(_0x3ad490('0xe')),db=require(_0x3ad490('0x1'))['db'],logger=require(_0x3ad490('0x14'))(_0x3ad490('0x8')),{getSocket}=require('../../rediscache'),socket=getSocket();require('./whatsappQueue.socket')[_0x3ad490('0x4')](socket),exports[_0x3ad490('0xb')]=function(_0x4e1dc5){const _0x357009=this;return new Promise(function(_0x48f06e,_0x19a82d){const _0x8adf65=a811_0x48af;return db[_0x8adf65('0x7')][_0x8adf65('0x5')]({'raw':_0x4e1dc5[_0x8adf65('0x10')]?_0x4e1dc5[_0x8adf65('0x10')][_0x8adf65('0xa')]===undefined?!![]:![]:!![],'where':_0x4e1dc5['options']?_0x4e1dc5[_0x8adf65('0x10')][_0x8adf65('0x16')]||null:null,'attributes':_0x4e1dc5[_0x8adf65('0x10')]?_0x4e1dc5[_0x8adf65('0x10')][_0x8adf65('0x0')]||null:null,'limit':_0x4e1dc5['options']?_0x4e1dc5['options'][_0x8adf65('0x3')]||null:null,'include':_0x4e1dc5[_0x8adf65('0x10')]?_0x4e1dc5[_0x8adf65('0x10')][_0x8adf65('0x2')]?_[_0x8adf65('0xc')](_0x4e1dc5[_0x8adf65('0x10')][_0x8adf65('0x2')],function(_0x5f1a14){const _0x37cb43=_0x8adf65;return{'model':db[_0x5f1a14[_0x37cb43('0x18')]],'as':_0x5f1a14['as'],'attributes':_0x5f1a14[_0x37cb43('0x0')],'include':_0x5f1a14[_0x37cb43('0x2')]?_[_0x37cb43('0xc')](_0x5f1a14[_0x37cb43('0x2')],function(_0x35f09e){const _0x2c8248=_0x37cb43;return{'model':db[_0x35f09e['model']],'as':_0x35f09e['as'],'attributes':_0x35f09e[_0x2c8248('0x0')],'include':_0x35f09e[_0x2c8248('0x2')]?_[_0x2c8248('0xc')](_0x35f09e[_0x2c8248('0x2')],function(_0x2906e8){const _0x3845a2=_0x2c8248;return{'model':db[_0x2906e8[_0x3845a2('0x18')]],'as':_0x2906e8['as'],'attributes':_0x2906e8[_0x3845a2('0x0')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x21c252){const _0x3199f2=_0x8adf65;logger[_0x3199f2('0x15')](_0x3199f2('0xb'),_0x4e1dc5),logger[_0x3199f2('0x12')](_0x3199f2('0xb'),_0x4e1dc5,JSON[_0x3199f2('0xf')](_0x21c252)),_0x48f06e(_0x21c252);})[_0x8adf65('0x9')](function(_0x5bbf9a){const _0x2e223c=_0x8adf65;logger[_0x2e223c('0x6')](_0x2e223c('0xb'),_0x5bbf9a[_0x2e223c('0x17')],_0x4e1dc5),_0x19a82d(_0x357009[_0x2e223c('0x6')](0x1f4,_0x5bbf9a[_0x2e223c('0x17')]));});});},exports['ShowWhatsappQueue']=function(_0x476215){const _0x397169=this;return new Promise(function(_0x412773,_0x9d3d56){const _0x57055e=a811_0x48af;return db[_0x57055e('0x7')][_0x57055e('0xd')]({'raw':_0x476215[_0x57055e('0x10')]?_0x476215[_0x57055e('0x10')]['raw']===undefined?!![]:![]:!![],'where':_0x476215[_0x57055e('0x10')]?_0x476215[_0x57055e('0x10')][_0x57055e('0x16')]||null:null,'attributes':_0x476215[_0x57055e('0x10')]?_0x476215['options'][_0x57055e('0x0')]||null:null,'include':_0x476215['options']?_0x476215[_0x57055e('0x10')][_0x57055e('0x2')]?_[_0x57055e('0xc')](_0x476215[_0x57055e('0x10')][_0x57055e('0x2')],function(_0x34f19f){const _0x4fe249=_0x57055e;return{'model':db[_0x34f19f[_0x4fe249('0x18')]],'as':_0x34f19f['as'],'attributes':_0x34f19f[_0x4fe249('0x0')],'include':_0x34f19f[_0x4fe249('0x2')]?_[_0x4fe249('0xc')](_0x34f19f['include'],function(_0x1ca2fb){const _0x36f07b=_0x4fe249;return{'model':db[_0x1ca2fb[_0x36f07b('0x18')]],'as':_0x1ca2fb['as'],'attributes':_0x1ca2fb[_0x36f07b('0x0')],'include':_0x1ca2fb[_0x36f07b('0x2')]?_['map'](_0x1ca2fb[_0x36f07b('0x2')],function(_0x547b49){const _0x521bd2=_0x36f07b;return{'model':db[_0x547b49[_0x521bd2('0x18')]],'as':_0x547b49['as'],'attributes':_0x547b49[_0x521bd2('0x0')]};}):[]};}):[]};}):[]:[]})[_0x57055e('0x13')](function(_0x134fef){const _0x443075=_0x57055e;logger[_0x443075('0x15')](_0x443075('0x11'),_0x476215),logger['debug'](_0x443075('0x11'),_0x476215,JSON[_0x443075('0xf')](_0x134fef)),_0x412773(_0x134fef);})[_0x57055e('0x9')](function(_0x3ca98f){const _0x42f758=_0x57055e;logger[_0x42f758('0x6')]('ShowWhatsappQueue',_0x3ca98f[_0x42f758('0x17')],_0x476215),_0x9d3d56(_0x397169[_0x42f758('0x6')](0x1f4,_0x3ca98f[_0x42f758('0x17')]));});});}; \ No newline at end of file +const a811_0x7466=['GetWhatsappQueue','rpc','ShowWhatsappQueue','where','findAll','debug','include','error','model','../../mysqldb','attributes','catch','./whatsappQueue.socket','WhatsappQueue','info','../../config/logger','options','stringify','raw','lodash','message','then','limit','map','register'];(function(_0x54984e,_0x746604){const _0x5e2ccd=function(_0x407df3){while(--_0x407df3){_0x54984e['push'](_0x54984e['shift']());}};_0x5e2ccd(++_0x746604);}(a811_0x7466,0xf9));const a811_0x5e2c=function(_0x54984e,_0x746604){_0x54984e=_0x54984e-0x0;let _0x5e2ccd=a811_0x7466[_0x54984e];return _0x5e2ccd;};const _0x4f47b9=a811_0x5e2c;'use strict';const _=require(_0x4f47b9('0x14')),db=require(_0x4f47b9('0xa'))['db'],logger=require(_0x4f47b9('0x10'))(_0x4f47b9('0x2')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x4f47b9('0xd'))[_0x4f47b9('0x0')](socket),exports[_0x4f47b9('0x1')]=function(_0x407df3){const _0x4116bf=this;return new Promise(function(_0x914c06,_0x1d4639){const _0x57d5f9=a811_0x5e2c;return db[_0x57d5f9('0xe')][_0x57d5f9('0x5')]({'raw':_0x407df3[_0x57d5f9('0x11')]?_0x407df3[_0x57d5f9('0x11')]['raw']===undefined?!![]:![]:!![],'where':_0x407df3[_0x57d5f9('0x11')]?_0x407df3['options'][_0x57d5f9('0x4')]||null:null,'attributes':_0x407df3[_0x57d5f9('0x11')]?_0x407df3[_0x57d5f9('0x11')]['attributes']||null:null,'limit':_0x407df3[_0x57d5f9('0x11')]?_0x407df3[_0x57d5f9('0x11')][_0x57d5f9('0x17')]||null:null,'include':_0x407df3[_0x57d5f9('0x11')]?_0x407df3[_0x57d5f9('0x11')][_0x57d5f9('0x7')]?_[_0x57d5f9('0x18')](_0x407df3[_0x57d5f9('0x11')]['include'],function(_0x4acff6){const _0x40f1ec=_0x57d5f9;return{'model':db[_0x4acff6['model']],'as':_0x4acff6['as'],'attributes':_0x4acff6[_0x40f1ec('0xb')],'include':_0x4acff6['include']?_[_0x40f1ec('0x18')](_0x4acff6[_0x40f1ec('0x7')],function(_0x567736){const _0x3484b2=_0x40f1ec;return{'model':db[_0x567736[_0x3484b2('0x9')]],'as':_0x567736['as'],'attributes':_0x567736['attributes'],'include':_0x567736['include']?_[_0x3484b2('0x18')](_0x567736['include'],function(_0x521df9){const _0x271597=_0x3484b2;return{'model':db[_0x521df9[_0x271597('0x9')]],'as':_0x521df9['as'],'attributes':_0x521df9[_0x271597('0xb')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x853145){const _0x127824=_0x57d5f9;logger[_0x127824('0xf')](_0x127824('0x1'),_0x407df3),logger[_0x127824('0x6')](_0x127824('0x1'),_0x407df3,JSON[_0x127824('0x12')](_0x853145)),_0x914c06(_0x853145);})[_0x57d5f9('0xc')](function(_0x21dfce){const _0x39d576=_0x57d5f9;logger[_0x39d576('0x8')](_0x39d576('0x1'),_0x21dfce[_0x39d576('0x15')],_0x407df3),_0x1d4639(_0x4116bf[_0x39d576('0x8')](0x1f4,_0x21dfce[_0x39d576('0x15')]));});});},exports['ShowWhatsappQueue']=function(_0x5a56bf){const _0x2948c4=this;return new Promise(function(_0x4d4c7d,_0x484c32){const _0x409ef9=a811_0x5e2c;return db[_0x409ef9('0xe')]['findOne']({'raw':_0x5a56bf['options']?_0x5a56bf[_0x409ef9('0x11')][_0x409ef9('0x13')]===undefined?!![]:![]:!![],'where':_0x5a56bf['options']?_0x5a56bf['options'][_0x409ef9('0x4')]||null:null,'attributes':_0x5a56bf[_0x409ef9('0x11')]?_0x5a56bf['options'][_0x409ef9('0xb')]||null:null,'include':_0x5a56bf[_0x409ef9('0x11')]?_0x5a56bf[_0x409ef9('0x11')]['include']?_['map'](_0x5a56bf[_0x409ef9('0x11')][_0x409ef9('0x7')],function(_0x5e631f){const _0x4cecad=_0x409ef9;return{'model':db[_0x5e631f[_0x4cecad('0x9')]],'as':_0x5e631f['as'],'attributes':_0x5e631f[_0x4cecad('0xb')],'include':_0x5e631f[_0x4cecad('0x7')]?_['map'](_0x5e631f['include'],function(_0x478940){const _0x27dc80=_0x4cecad;return{'model':db[_0x478940[_0x27dc80('0x9')]],'as':_0x478940['as'],'attributes':_0x478940[_0x27dc80('0xb')],'include':_0x478940[_0x27dc80('0x7')]?_[_0x27dc80('0x18')](_0x478940[_0x27dc80('0x7')],function(_0x228b5a){return{'model':db[_0x228b5a['model']],'as':_0x228b5a['as'],'attributes':_0x228b5a['attributes']};}):[]};}):[]};}):[]:[]})[_0x409ef9('0x16')](function(_0x49bb5d){const _0x45e2e8=_0x409ef9;logger['info'](_0x45e2e8('0x3'),_0x5a56bf),logger[_0x45e2e8('0x6')](_0x45e2e8('0x3'),_0x5a56bf,JSON[_0x45e2e8('0x12')](_0x49bb5d)),_0x4d4c7d(_0x49bb5d);})[_0x409ef9('0xc')](function(_0x19e834){const _0x6b4465=_0x409ef9;logger[_0x6b4465('0x8')]('ShowWhatsappQueue',_0x19e834[_0x6b4465('0x15')],_0x5a56bf),_0x484c32(_0x2948c4[_0x6b4465('0x8')](0x1f4,_0x19e834['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.socket.js b/server/api/whatsappQueue/whatsappQueue.socket.js index eb30b04..d64688a 100644 --- a/server/api/whatsappQueue/whatsappQueue.socket.js +++ b/server/api/whatsappQueue/whatsappQueue.socket.js @@ -1 +1 @@ -const a812_0x8308=['./whatsappQueue.events','whatsappQueue:','save','emit','length','update'];(function(_0x505573,_0x8308e3){const _0x4728ca=function(_0x4251a7){while(--_0x4251a7){_0x505573['push'](_0x505573['shift']());}};_0x4728ca(++_0x8308e3);}(a812_0x8308,0x112));const a812_0x4728=function(_0x505573,_0x8308e3){_0x505573=_0x505573-0x0;let _0x4728ca=a812_0x8308[_0x505573];return _0x4728ca;};const _0x5d92e2=a812_0x4728;'use strict';const WhatsappQueueEvents=require(_0x5d92e2('0x2')),events=[_0x5d92e2('0x4'),'remove',_0x5d92e2('0x1')];function createListener(_0x4251a7,_0x4e82a5){return function(_0x41d4a0){const _0x46cfaf=a812_0x4728;_0x4e82a5[_0x46cfaf('0x5')](_0x4251a7,_0x41d4a0);};}exports['register']=function(_0x5d9eda){const _0x34765b=_0x5d92e2;for(let _0xfd36bd=0x0,_0x46aef5=events[_0x34765b('0x0')];_0xfd36bd<_0x46aef5;_0xfd36bd++){const _0x1e4524=events[_0xfd36bd],_0x3d6b9f=createListener(_0x34765b('0x3')+_0x1e4524,_0x5d9eda);WhatsappQueueEvents['on'](_0x1e4524,_0x3d6b9f);}}; \ No newline at end of file +const a812_0x57a0=['register','remove','./whatsappQueue.events','save','length','whatsappQueue:','update'];(function(_0x4e4cf9,_0x57a0bb){const _0xbf6a8f=function(_0x3a69e6){while(--_0x3a69e6){_0x4e4cf9['push'](_0x4e4cf9['shift']());}};_0xbf6a8f(++_0x57a0bb);}(a812_0x57a0,0x1b4));const a812_0xbf6a=function(_0x4e4cf9,_0x57a0bb){_0x4e4cf9=_0x4e4cf9-0x0;let _0xbf6a8f=a812_0x57a0[_0x4e4cf9];return _0xbf6a8f;};const _0x312dfc=a812_0xbf6a;'use strict';const WhatsappQueueEvents=require(_0x312dfc('0x0')),events=[_0x312dfc('0x1'),_0x312dfc('0x6'),_0x312dfc('0x4')];function createListener(_0x3a69e6,_0x3339e3){return function(_0x55eaaa){_0x3339e3['emit'](_0x3a69e6,_0x55eaaa);};}exports[_0x312dfc('0x5')]=function(_0xd1a41a){const _0x5b8eab=_0x312dfc;for(let _0x2f9d4a=0x0,_0x5bc12a=events[_0x5b8eab('0x2')];_0x2f9d4a<_0x5bc12a;_0x2f9d4a++){const _0xdd1e7a=events[_0x2f9d4a],_0x32ee23=createListener(_0x5b8eab('0x3')+_0xdd1e7a,_0xd1a41a);WhatsappQueueEvents['on'](_0xdd1e7a,_0x32ee23);}}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/index.js b/server/api/whatsappQueueReport/index.js index 243b6c3..c2615d8 100644 --- a/server/api/whatsappQueueReport/index.js +++ b/server/api/whatsappQueueReport/index.js @@ -1 +1 @@ -const a813_0x5c7f=['exports','/:id','delete','index','destroy','isAuthenticated','../../components/auth/service','create','./whatsappQueueReport.controller','show','update','get','describe','post','Router','put'];(function(_0x1e9101,_0x5c7f65){const _0x50a42d=function(_0x580175){while(--_0x580175){_0x1e9101['push'](_0x1e9101['shift']());}};_0x50a42d(++_0x5c7f65);}(a813_0x5c7f,0x1a1));const a813_0x50a4=function(_0x1e9101,_0x5c7f65){_0x1e9101=_0x1e9101-0x0;let _0x50a42d=a813_0x5c7f[_0x1e9101];return _0x50a42d;};const _0xb4ca5f=a813_0x50a4;'use strict';const express=require('express'),router=express[_0xb4ca5f('0xd')](),auth=require(_0xb4ca5f('0x5')),controller=require(_0xb4ca5f('0x7'));router[_0xb4ca5f('0xa')]('/',auth['isAuthenticated'](),controller[_0xb4ca5f('0x2')]),router['get']('/describe',auth[_0xb4ca5f('0x4')](),controller[_0xb4ca5f('0xb')]),router['get'](_0xb4ca5f('0x0'),auth[_0xb4ca5f('0x4')](),controller[_0xb4ca5f('0x8')]),router[_0xb4ca5f('0xc')]('/',auth[_0xb4ca5f('0x4')](),controller[_0xb4ca5f('0x6')]),router[_0xb4ca5f('0xe')](_0xb4ca5f('0x0'),auth['isAuthenticated'](),controller[_0xb4ca5f('0x9')]),router[_0xb4ca5f('0x1')]('/:id',auth[_0xb4ca5f('0x4')](),controller[_0xb4ca5f('0x3')]),module[_0xb4ca5f('0xf')]=router; \ No newline at end of file +const a813_0x25c0=['Router','express','/:id','/describe','put','destroy','create','get','index','isAuthenticated','describe','exports'];(function(_0x316f97,_0x25c02c){const _0x2056f3=function(_0x2d8d52){while(--_0x2d8d52){_0x316f97['push'](_0x316f97['shift']());}};_0x2056f3(++_0x25c02c);}(a813_0x25c0,0x1d3));const a813_0x2056=function(_0x316f97,_0x25c02c){_0x316f97=_0x316f97-0x0;let _0x2056f3=a813_0x25c0[_0x316f97];return _0x2056f3;};const _0x2d8b75=a813_0x2056;'use strict';const express=require(_0x2d8b75('0x2')),router=express[_0x2d8b75('0x1')](),auth=require('../../components/auth/service'),controller=require('./whatsappQueueReport.controller');router[_0x2d8b75('0x8')]('/',auth[_0x2d8b75('0xa')](),controller[_0x2d8b75('0x9')]),router['get'](_0x2d8b75('0x4'),auth['isAuthenticated'](),controller[_0x2d8b75('0xb')]),router[_0x2d8b75('0x8')](_0x2d8b75('0x3'),auth[_0x2d8b75('0xa')](),controller['show']),router['post']('/',auth[_0x2d8b75('0xa')](),controller[_0x2d8b75('0x7')]),router[_0x2d8b75('0x5')](_0x2d8b75('0x3'),auth[_0x2d8b75('0xa')](),controller['update']),router['delete']('/:id',auth[_0x2d8b75('0xa')](),controller[_0x2d8b75('0x6')]),module[_0x2d8b75('0x0')]=router; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js index e439593..991fbb9 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js @@ -1 +1 @@ -const a814_0x1e04=['DATE','sequelize','exports','STRING'];(function(_0x531685,_0x1e04f2){const _0xdbe961=function(_0x42f8ec){while(--_0x42f8ec){_0x531685['push'](_0x531685['shift']());}};_0xdbe961(++_0x1e04f2);}(a814_0x1e04,0x86));const a814_0xdbe9=function(_0x531685,_0x1e04f2){_0x531685=_0x531685-0x0;let _0xdbe961=a814_0x1e04[_0x531685];return _0xdbe961;};const _0xfde943=a814_0xdbe9;'use strict';const Sequelize=require(_0xfde943('0x3'));module[_0xfde943('0x0')]={'uniqueid':{'type':Sequelize[_0xfde943('0x1')],'allowNull':![]},'from':{'type':Sequelize[_0xfde943('0x1')]},'joinAt':{'type':Sequelize[_0xfde943('0x2')]},'leaveAt':{'type':Sequelize[_0xfde943('0x2')]},'acceptAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0xfde943('0x2')]},'reason':{'type':Sequelize[_0xfde943('0x1')]}}; \ No newline at end of file +const a814_0x1e5e=['STRING','sequelize','DATE','exports'];(function(_0x498e04,_0x1e5ed5){const _0x1f8567=function(_0x1db126){while(--_0x1db126){_0x498e04['push'](_0x498e04['shift']());}};_0x1f8567(++_0x1e5ed5);}(a814_0x1e5e,0x1c0));const a814_0x1f85=function(_0x498e04,_0x1e5ed5){_0x498e04=_0x498e04-0x0;let _0x1f8567=a814_0x1e5e[_0x498e04];return _0x1f8567;};const _0xc3185d=a814_0x1f85;'use strict';const Sequelize=require(_0xc3185d('0x1'));module[_0xc3185d('0x3')]={'uniqueid':{'type':Sequelize[_0xc3185d('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0xc3185d('0x0')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0xc3185d('0x2')]},'acceptAt':{'type':Sequelize[_0xc3185d('0x2')]},'exitAt':{'type':Sequelize[_0xc3185d('0x2')]},'reason':{'type':Sequelize[_0xc3185d('0x0')]}}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js index 7ffb606..e8534aa 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js @@ -1 +1 @@ -const a815_0x4429=['includeAll','query','include','merge','Content-Range','show','params','../../mysqldb','VIRTUAL','sort','catch','where','end','like','status','stack','json','count','fields','body','keys','WhatsappQueueReport','name','fieldName','then','rows','key','api','lodash','create','error','order','filter','limit','intersection','attributes','findOne','index','undefined','options','../../components/parsers/qs','rawAttributes','set','describe','model','destroy','../../config/logger','nolimit','sendStatus','offset','filters','length','send','map','update','type'];(function(_0x533aa9,_0x44294b){const _0xb98d89=function(_0x5c346b){while(--_0x5c346b){_0x533aa9['push'](_0x533aa9['shift']());}};_0xb98d89(++_0x44294b);}(a815_0x4429,0xcb));const a815_0xb98d=function(_0x533aa9,_0x44294b){_0x533aa9=_0x533aa9-0x0;let _0xb98d89=a815_0x4429[_0x533aa9];return _0xb98d89;};const _0x3d33e5=a815_0xb98d;'use strict';const _=require(_0x3d33e5('0x31')),qs=require(_0x3d33e5('0x5')),logger=require(_0x3d33e5('0xb'))(_0x3d33e5('0x30')),db=require(_0x3d33e5('0x1c'))['db'],{Op}=require('sequelize');function respondWithResult(_0x5c346b,_0x2a8a66){return _0x2a8a66=_0x2a8a66||0xc8,function(_0x5d301a){const _0x20103d=a815_0xb98d;if(_0x5d301a)return _0x5c346b[_0x20103d('0x23')](_0x2a8a66)[_0x20103d('0x25')](_0x5d301a);};}function respondWithFilteredResult(_0x3a34ad,_0x4f19c0){return function(_0x880281){const _0x315d86=a815_0xb98d;if(_0x880281){const _0x30445c=_0x880281[_0x315d86('0x26')],_0x16a110=_0x4f19c0[_0x315d86('0xe')];let _0x45d609=_0x4f19c0['offset']+_0x4f19c0[_0x315d86('0x36')],_0x3d56b0;return _0x45d609>=_0x30445c?(_0x45d609=_0x30445c,_0x3d56b0=0xc8):_0x3d56b0=0xce,_0x3a34ad[_0x315d86('0x23')](_0x3d56b0),_0x3a34ad[_0x315d86('0x7')](_0x315d86('0x19'),_0x16a110+'-'+_0x45d609+'/'+_0x30445c)[_0x315d86('0x25')](_0x880281);}return null;};}function saveUpdates(_0x2ea104){return function(_0x424500){const _0x721018=a815_0xb98d;if(_0x424500)return _0x424500[_0x721018('0x13')](_0x2ea104)['then'](function(_0x1b37c7){return _0x1b37c7;});return null;};}function removeEntity(_0x257d9b){return function(_0x2e410f){const _0x15525f=a815_0xb98d;if(_0x2e410f)return _0x2e410f[_0x15525f('0xa')]()[_0x15525f('0x2d')](function(){const _0x2474d4=_0x15525f;_0x257d9b[_0x2474d4('0x23')](0xcc)[_0x2474d4('0x21')]();});};}function handleEntityNotFound(_0x563fa3){return function(_0x257aea){const _0x53017f=a815_0xb98d;return!_0x257aea&&_0x563fa3[_0x53017f('0xd')](0x194),_0x257aea;};}function handleError(_0x55eae0,_0x370410){return _0x370410=_0x370410||0x1f4,function(_0x56cf97){const _0x2e63be=a815_0xb98d;logger[_0x2e63be('0x33')](_0x56cf97[_0x2e63be('0x24')]),_0x56cf97[_0x2e63be('0x2b')]&&delete _0x56cf97['name'],_0x55eae0[_0x2e63be('0x23')](_0x370410)[_0x2e63be('0x11')](_0x56cf97);};}exports[_0x3d33e5('0x2')]=function(_0x5cf81b,_0x1a3897){const _0x3b387f=_0x3d33e5;let _0x1d269f={};const _0xbd46a1={},_0x71033e={'count':0x0,'rows':[]},_0x2b10fd=_[_0x3b387f('0x12')](db['WhatsappQueueReport'][_0x3b387f('0x6')],function(_0x355062){const _0xddae5d=_0x3b387f;return{'name':_0x355062[_0xddae5d('0x2c')],'type':_0x355062[_0xddae5d('0x14')][_0xddae5d('0x2f')]};});_0xbd46a1[_0x3b387f('0x9')]=_[_0x3b387f('0x12')](_0x2b10fd,_0x3b387f('0x2b')),_0xbd46a1[_0x3b387f('0x16')]=_[_0x3b387f('0x29')](_0x5cf81b[_0x3b387f('0x16')]),_0xbd46a1[_0x3b387f('0xf')]=_['intersection'](_0xbd46a1[_0x3b387f('0x9')],_0xbd46a1['query']),_0x1d269f[_0x3b387f('0x0')]=_[_0x3b387f('0x37')](_0xbd46a1[_0x3b387f('0x9')],qs[_0x3b387f('0x27')](_0x5cf81b[_0x3b387f('0x16')][_0x3b387f('0x27')])),_0x1d269f[_0x3b387f('0x0')]=_0x1d269f[_0x3b387f('0x0')][_0x3b387f('0x10')]?_0x1d269f[_0x3b387f('0x0')]:_0xbd46a1['model'];typeof _0x5cf81b['query'][_0x3b387f('0xc')]===_0x3b387f('0x3')&&(_0x1d269f[_0x3b387f('0x36')]=qs[_0x3b387f('0x36')](_0x5cf81b[_0x3b387f('0x16')][_0x3b387f('0x36')]),_0x1d269f['offset']=qs['offset'](_0x5cf81b[_0x3b387f('0x16')][_0x3b387f('0xe')]));_0x1d269f[_0x3b387f('0x34')]=qs[_0x3b387f('0x1e')](_0x5cf81b['query'][_0x3b387f('0x1e')]),_0x1d269f[_0x3b387f('0x20')]=qs['filters'](_['pick'](_0x5cf81b[_0x3b387f('0x16')],_0xbd46a1['filters']),_0x2b10fd);_0x5cf81b[_0x3b387f('0x16')][_0x3b387f('0x35')]&&(_0x1d269f['where']=_[_0x3b387f('0x18')](_0x1d269f[_0x3b387f('0x20')],{[Op['or']]:_[_0x3b387f('0x12')](_0x2b10fd,function(_0x4b3230){const _0x42c320=_0x3b387f;if(_0x4b3230[_0x42c320('0x14')]!==_0x42c320('0x1d')){const _0x828680={};return _0x828680[_0x4b3230['name']]={[Op[_0x42c320('0x22')]]:'%'+_0x5cf81b[_0x42c320('0x16')][_0x42c320('0x35')]+'%'},_0x828680;}})}));_0x1d269f=_[_0x3b387f('0x18')]({},_0x1d269f,_0x5cf81b[_0x3b387f('0x4')]);const _0x5a6bfe={'where':_0x1d269f[_0x3b387f('0x20')]};return db[_0x3b387f('0x2a')]['count'](_0x5a6bfe)[_0x3b387f('0x2d')](function(_0x27256e){const _0x2aa562=_0x3b387f;return _0x71033e[_0x2aa562('0x26')]=_0x27256e,_0x5cf81b['query'][_0x2aa562('0x15')]&&(_0x1d269f[_0x2aa562('0x17')]=[{'all':!![]}]),db[_0x2aa562('0x2a')]['findAll'](_0x1d269f);})[_0x3b387f('0x2d')](function(_0xee5eb){const _0xc0fc1c=_0x3b387f;return _0x71033e[_0xc0fc1c('0x2e')]=_0xee5eb,_0x71033e;})[_0x3b387f('0x2d')](respondWithFilteredResult(_0x1a3897,_0x1d269f))['catch'](handleError(_0x1a3897,null));},exports[_0x3d33e5('0x1a')]=function(_0x1db369,_0xd20095){const _0x3dd672=_0x3d33e5;let _0x28964c={'raw':!![],'where':{'id':_0x1db369['params']['id']}};const _0x24713e={};return _0x24713e['model']=_[_0x3dd672('0x29')](db['WhatsappQueueReport'][_0x3dd672('0x6')]),_0x24713e[_0x3dd672('0x16')]=_['keys'](_0x1db369['query']),_0x24713e['filters']=_[_0x3dd672('0x37')](_0x24713e[_0x3dd672('0x9')],_0x24713e[_0x3dd672('0x16')]),_0x28964c[_0x3dd672('0x0')]=_['intersection'](_0x24713e[_0x3dd672('0x9')],qs['fields'](_0x1db369['query'][_0x3dd672('0x27')])),_0x28964c[_0x3dd672('0x0')]=_0x28964c[_0x3dd672('0x0')][_0x3dd672('0x10')]?_0x28964c[_0x3dd672('0x0')]:_0x24713e[_0x3dd672('0x9')],_0x1db369[_0x3dd672('0x16')][_0x3dd672('0x15')]&&(_0x28964c[_0x3dd672('0x17')]=[{'all':!![]}]),_0x28964c=_[_0x3dd672('0x18')]({},_0x28964c,_0x1db369[_0x3dd672('0x4')]),db['WhatsappQueueReport'][_0x3dd672('0x1')](_0x28964c)[_0x3dd672('0x2d')](handleEntityNotFound(_0xd20095,null))[_0x3dd672('0x2d')](respondWithResult(_0xd20095,null))['catch'](handleError(_0xd20095,null));},exports[_0x3d33e5('0x32')]=function(_0x233371,_0x355c93){const _0x21d9ba=_0x3d33e5;return db['WhatsappQueueReport'][_0x21d9ba('0x32')](_0x233371[_0x21d9ba('0x28')],{})['then'](respondWithResult(_0x355c93,0xc9))[_0x21d9ba('0x1f')](handleError(_0x355c93,null));},exports[_0x3d33e5('0x13')]=function(_0x7e4d4c,_0x9b8389){const _0x54c5a3=_0x3d33e5;return _0x7e4d4c['body']['id']&&delete _0x7e4d4c['body']['id'],db[_0x54c5a3('0x2a')]['findOne']({'where':{'id':_0x7e4d4c[_0x54c5a3('0x1b')]['id']}})[_0x54c5a3('0x2d')](handleEntityNotFound(_0x9b8389,null))[_0x54c5a3('0x2d')](saveUpdates(_0x7e4d4c['body'],null))[_0x54c5a3('0x2d')](respondWithResult(_0x9b8389,null))[_0x54c5a3('0x1f')](handleError(_0x9b8389,null));},exports[_0x3d33e5('0xa')]=function(_0xe78aab,_0x1b9520){const _0x35d340=_0x3d33e5;return db[_0x35d340('0x2a')][_0x35d340('0x1')]({'where':{'id':_0xe78aab[_0x35d340('0x1b')]['id']}})[_0x35d340('0x2d')](handleEntityNotFound(_0x1b9520,null))[_0x35d340('0x2d')](removeEntity(_0x1b9520,null))[_0x35d340('0x1f')](handleError(_0x1b9520,null));},exports[_0x3d33e5('0x8')]=function(_0x41d605,_0x23d5e0){const _0x13e35f=_0x3d33e5;return db['WhatsappQueueReport']['describe']()['then'](respondWithResult(_0x23d5e0,null))[_0x13e35f('0x1f')](handleError(_0x23d5e0,null));}; \ No newline at end of file +const a815_0xab14=['status','params','update','filter','../../components/parsers/qs','offset','where','send','destroy','map','fieldName','VIRTUAL','options','catch','model','body','then','Content-Range','rawAttributes','attributes','create','count','show','nolimit','fields','lodash','limit','end','json','like','keys','length','index','describe','sequelize','stack','../../mysqldb','api','../../config/logger','intersection','WhatsappQueueReport','pick','type','order','include','findOne','merge','query','sort','filters','name','sendStatus','includeAll','error'];(function(_0x4c7a10,_0xab145a){const _0x43c659=function(_0x137904){while(--_0x137904){_0x4c7a10['push'](_0x4c7a10['shift']());}};_0x43c659(++_0xab145a);}(a815_0xab14,0x14e));const a815_0x43c6=function(_0x4c7a10,_0xab145a){_0x4c7a10=_0x4c7a10-0x0;let _0x43c659=a815_0xab14[_0x4c7a10];return _0x43c659;};const _0x3ad39a=a815_0x43c6;'use strict';const _=require(_0x3ad39a('0xf')),qs=require(_0x3ad39a('0x30')),logger=require(_0x3ad39a('0x1c'))(_0x3ad39a('0x1b')),db=require(_0x3ad39a('0x1a'))['db'],{Op}=require(_0x3ad39a('0x18'));function respondWithResult(_0x137904,_0x4186e3){return _0x4186e3=_0x4186e3||0xc8,function(_0x30b242){const _0x470f01=a815_0x43c6;if(_0x30b242)return _0x137904[_0x470f01('0x2c')](_0x4186e3)[_0x470f01('0x12')](_0x30b242);};}function respondWithFilteredResult(_0x529124,_0x54d4fe){return function(_0xc157e5){const _0x4874eb=a815_0x43c6;if(_0xc157e5){const _0x1d7aa5=_0xc157e5[_0x4874eb('0xb')],_0x4c65ba=_0x54d4fe['offset'];let _0xac85bb=_0x54d4fe[_0x4874eb('0x31')]+_0x54d4fe[_0x4874eb('0x10')],_0x2f3891;return _0xac85bb>=_0x1d7aa5?(_0xac85bb=_0x1d7aa5,_0x2f3891=0xc8):_0x2f3891=0xce,_0x529124[_0x4874eb('0x2c')](_0x2f3891),_0x529124['set'](_0x4874eb('0x7'),_0x4c65ba+'-'+_0xac85bb+'/'+_0x1d7aa5)[_0x4874eb('0x12')](_0xc157e5);}return null;};}function saveUpdates(_0x180e07){return function(_0x5e6e88){const _0x2baa1b=a815_0x43c6;if(_0x5e6e88)return _0x5e6e88[_0x2baa1b('0x2e')](_0x180e07)[_0x2baa1b('0x6')](function(_0x43f5ef){return _0x43f5ef;});return null;};}function removeEntity(_0x2b0fff){return function(_0x1fe8c6){const _0x44d28b=a815_0x43c6;if(_0x1fe8c6)return _0x1fe8c6[_0x44d28b('0x34')]()['then'](function(){const _0x5770b6=_0x44d28b;_0x2b0fff[_0x5770b6('0x2c')](0xcc)[_0x5770b6('0x11')]();});};}function handleEntityNotFound(_0xb103b8){return function(_0x53c789){const _0x511af9=a815_0x43c6;return!_0x53c789&&_0xb103b8[_0x511af9('0x29')](0x194),_0x53c789;};}function handleError(_0x2b7f62,_0x5273dd){return _0x5273dd=_0x5273dd||0x1f4,function(_0x28b64b){const _0x3a96bf=a815_0x43c6;logger[_0x3a96bf('0x2b')](_0x28b64b[_0x3a96bf('0x19')]),_0x28b64b[_0x3a96bf('0x28')]&&delete _0x28b64b[_0x3a96bf('0x28')],_0x2b7f62[_0x3a96bf('0x2c')](_0x5273dd)[_0x3a96bf('0x33')](_0x28b64b);};}exports[_0x3ad39a('0x16')]=function(_0x48ef9e,_0x14a593){const _0x2d642c=_0x3ad39a;let _0x401e16={};const _0x3f1ebf={},_0x270e6d={'count':0x0,'rows':[]},_0x48a7d3=_[_0x2d642c('0x35')](db[_0x2d642c('0x1e')][_0x2d642c('0x8')],function(_0x493402){const _0x170962=_0x2d642c;return{'name':_0x493402[_0x170962('0x0')],'type':_0x493402['type']['key']};});_0x3f1ebf[_0x2d642c('0x4')]=_[_0x2d642c('0x35')](_0x48a7d3,_0x2d642c('0x28')),_0x3f1ebf[_0x2d642c('0x25')]=_[_0x2d642c('0x14')](_0x48ef9e[_0x2d642c('0x25')]),_0x3f1ebf['filters']=_[_0x2d642c('0x1d')](_0x3f1ebf['model'],_0x3f1ebf[_0x2d642c('0x25')]),_0x401e16[_0x2d642c('0x9')]=_[_0x2d642c('0x1d')](_0x3f1ebf['model'],qs[_0x2d642c('0xe')](_0x48ef9e[_0x2d642c('0x25')]['fields'])),_0x401e16[_0x2d642c('0x9')]=_0x401e16[_0x2d642c('0x9')]['length']?_0x401e16[_0x2d642c('0x9')]:_0x3f1ebf[_0x2d642c('0x4')];typeof _0x48ef9e[_0x2d642c('0x25')][_0x2d642c('0xd')]==='undefined'&&(_0x401e16[_0x2d642c('0x10')]=qs[_0x2d642c('0x10')](_0x48ef9e['query'][_0x2d642c('0x10')]),_0x401e16['offset']=qs[_0x2d642c('0x31')](_0x48ef9e['query'][_0x2d642c('0x31')]));_0x401e16[_0x2d642c('0x21')]=qs[_0x2d642c('0x26')](_0x48ef9e[_0x2d642c('0x25')][_0x2d642c('0x26')]),_0x401e16['where']=qs[_0x2d642c('0x27')](_[_0x2d642c('0x1f')](_0x48ef9e['query'],_0x3f1ebf[_0x2d642c('0x27')]),_0x48a7d3);_0x48ef9e['query'][_0x2d642c('0x2f')]&&(_0x401e16[_0x2d642c('0x32')]=_[_0x2d642c('0x24')](_0x401e16[_0x2d642c('0x32')],{[Op['or']]:_[_0x2d642c('0x35')](_0x48a7d3,function(_0x2e0fe9){const _0x354abb=_0x2d642c;if(_0x2e0fe9[_0x354abb('0x20')]!==_0x354abb('0x1')){const _0x18d235={};return _0x18d235[_0x2e0fe9[_0x354abb('0x28')]]={[Op[_0x354abb('0x13')]]:'%'+_0x48ef9e[_0x354abb('0x25')][_0x354abb('0x2f')]+'%'},_0x18d235;}})}));_0x401e16=_[_0x2d642c('0x24')]({},_0x401e16,_0x48ef9e[_0x2d642c('0x2')]);const _0x67455f={'where':_0x401e16['where']};return db[_0x2d642c('0x1e')]['count'](_0x67455f)['then'](function(_0x92db19){const _0x1d6a20=_0x2d642c;return _0x270e6d[_0x1d6a20('0xb')]=_0x92db19,_0x48ef9e[_0x1d6a20('0x25')][_0x1d6a20('0x2a')]&&(_0x401e16['include']=[{'all':!![]}]),db[_0x1d6a20('0x1e')]['findAll'](_0x401e16);})[_0x2d642c('0x6')](function(_0x1ad124){return _0x270e6d['rows']=_0x1ad124,_0x270e6d;})[_0x2d642c('0x6')](respondWithFilteredResult(_0x14a593,_0x401e16))[_0x2d642c('0x3')](handleError(_0x14a593,null));},exports[_0x3ad39a('0xc')]=function(_0x4eb2e8,_0x150653){const _0x41dd2b=_0x3ad39a;let _0x3df5bb={'raw':!![],'where':{'id':_0x4eb2e8['params']['id']}};const _0x397234={};return _0x397234[_0x41dd2b('0x4')]=_[_0x41dd2b('0x14')](db[_0x41dd2b('0x1e')][_0x41dd2b('0x8')]),_0x397234[_0x41dd2b('0x25')]=_['keys'](_0x4eb2e8[_0x41dd2b('0x25')]),_0x397234['filters']=_[_0x41dd2b('0x1d')](_0x397234['model'],_0x397234['query']),_0x3df5bb[_0x41dd2b('0x9')]=_[_0x41dd2b('0x1d')](_0x397234[_0x41dd2b('0x4')],qs[_0x41dd2b('0xe')](_0x4eb2e8['query'][_0x41dd2b('0xe')])),_0x3df5bb[_0x41dd2b('0x9')]=_0x3df5bb[_0x41dd2b('0x9')][_0x41dd2b('0x15')]?_0x3df5bb[_0x41dd2b('0x9')]:_0x397234[_0x41dd2b('0x4')],_0x4eb2e8[_0x41dd2b('0x25')][_0x41dd2b('0x2a')]&&(_0x3df5bb[_0x41dd2b('0x22')]=[{'all':!![]}]),_0x3df5bb=_[_0x41dd2b('0x24')]({},_0x3df5bb,_0x4eb2e8[_0x41dd2b('0x2')]),db[_0x41dd2b('0x1e')][_0x41dd2b('0x23')](_0x3df5bb)['then'](handleEntityNotFound(_0x150653,null))['then'](respondWithResult(_0x150653,null))[_0x41dd2b('0x3')](handleError(_0x150653,null));},exports['create']=function(_0x1cd15e,_0x412c5b){const _0x3bd6cd=_0x3ad39a;return db[_0x3bd6cd('0x1e')][_0x3bd6cd('0xa')](_0x1cd15e[_0x3bd6cd('0x5')],{})['then'](respondWithResult(_0x412c5b,0xc9))[_0x3bd6cd('0x3')](handleError(_0x412c5b,null));},exports[_0x3ad39a('0x2e')]=function(_0x6a0ea7,_0x35329f){const _0x4d9286=_0x3ad39a;return _0x6a0ea7[_0x4d9286('0x5')]['id']&&delete _0x6a0ea7[_0x4d9286('0x5')]['id'],db['WhatsappQueueReport'][_0x4d9286('0x23')]({'where':{'id':_0x6a0ea7[_0x4d9286('0x2d')]['id']}})[_0x4d9286('0x6')](handleEntityNotFound(_0x35329f,null))['then'](saveUpdates(_0x6a0ea7[_0x4d9286('0x5')],null))[_0x4d9286('0x6')](respondWithResult(_0x35329f,null))[_0x4d9286('0x3')](handleError(_0x35329f,null));},exports[_0x3ad39a('0x34')]=function(_0x35893d,_0x2422cf){const _0x4f47b4=_0x3ad39a;return db[_0x4f47b4('0x1e')][_0x4f47b4('0x23')]({'where':{'id':_0x35893d[_0x4f47b4('0x2d')]['id']}})[_0x4f47b4('0x6')](handleEntityNotFound(_0x2422cf,null))['then'](removeEntity(_0x2422cf,null))[_0x4f47b4('0x3')](handleError(_0x2422cf,null));},exports[_0x3ad39a('0x17')]=function(_0x4e7f87,_0x45dfd8){const _0xb281bd=_0x3ad39a;return db[_0xb281bd('0x1e')]['describe']()[_0xb281bd('0x6')](respondWithResult(_0x45dfd8,null))[_0xb281bd('0x3')](handleError(_0x45dfd8,null));}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.model.js b/server/api/whatsappQueueReport/whatsappQueueReport.model.js index dff04d4..0bd6dc1 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.model.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.model.js @@ -1 +1 @@ -const a816_0x4ee1=['uniqueid','WhatsappQueueReport','./whatsappQueueReport.attributes'];(function(_0x21b2eb,_0x4ee16e){const _0x355216=function(_0x4f3d56){while(--_0x4f3d56){_0x21b2eb['push'](_0x21b2eb['shift']());}};_0x355216(++_0x4ee16e);}(a816_0x4ee1,0x86));const a816_0x3552=function(_0x21b2eb,_0x4ee16e){_0x21b2eb=_0x21b2eb-0x0;let _0x355216=a816_0x4ee1[_0x21b2eb];return _0x355216;};const _0x644e7d=a816_0x3552;'use strict';const attributes=require(_0x644e7d('0x0'));module['exports']=function(_0x4f3d56){const _0x19a752=_0x644e7d,_0x21ffd5=_0x4f3d56['define'](_0x19a752('0x2'),attributes,{'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':_0x19a752('0x1'),'fields':[_0x19a752('0x1')]}],'timestamps':!![]});return _0x21ffd5;}; \ No newline at end of file +const a816_0x495e=['define','WhatsappQueueReport','report_whatsapp_queue','exports','uniqueid'];(function(_0x12175e,_0x495ef6){const _0x1b7973=function(_0x1ad259){while(--_0x1ad259){_0x12175e['push'](_0x12175e['shift']());}};_0x1b7973(++_0x495ef6);}(a816_0x495e,0xca));const a816_0x1b79=function(_0x12175e,_0x495ef6){_0x12175e=_0x12175e-0x0;let _0x1b7973=a816_0x495e[_0x12175e];return _0x1b7973;};const _0x3c5c5a=a816_0x1b79;'use strict';const attributes=require('./whatsappQueueReport.attributes');module[_0x3c5c5a('0x1')]=function(_0x1ad259){const _0x27bd81=_0x3c5c5a,_0x4de2ec=_0x1ad259[_0x27bd81('0x3')](_0x27bd81('0x4'),attributes,{'tableName':_0x27bd81('0x0'),'paranoid':![],'indexes':[{'name':_0x27bd81('0x2'),'fields':[_0x27bd81('0x2')]}],'timestamps':!![]});return _0x4de2ec;}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js index 4be8275..aeaf5f2 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js @@ -1 +1 @@ -const a817_0x4d36=['WhatsappQueueReport','attributes','CreateWhatsappQueueReport','create','rpc','body','where','stringify','UpdateWhatsappQueueReport','error','info','message','then','catch','raw','../../mysqldb','options','../../config/logger','debug'];(function(_0x148a77,_0x4d369e){const _0x1904a1=function(_0x1e4562){while(--_0x1e4562){_0x148a77['push'](_0x148a77['shift']());}};_0x1904a1(++_0x4d369e);}(a817_0x4d36,0x173));const a817_0x1904=function(_0x148a77,_0x4d369e){_0x148a77=_0x148a77-0x0;let _0x1904a1=a817_0x4d36[_0x148a77];return _0x1904a1;};const _0x3de972=a817_0x1904;'use strict';const db=require(_0x3de972('0x5'))['db'],logger=require(_0x3de972('0x7'))(_0x3de972('0xd'));exports[_0x3de972('0xb')]=function(_0x1e4562){const _0x14fc5a=this;return new Promise(function(_0x456ad6,_0x4afbda){const _0x1c1c05=a817_0x1904;return db['WhatsappQueueReport'][_0x1c1c05('0xc')](_0x1e4562['body'],{'raw':_0x1e4562[_0x1c1c05('0x6')]?_0x1e4562[_0x1c1c05('0x6')]['raw']===undefined?!![]:![]:!![]})[_0x1c1c05('0x2')](function(_0x441e1a){const _0x5ca533=_0x1c1c05;logger['info']('CreateWhatsappQueueReport',_0x1e4562),logger[_0x5ca533('0x8')](_0x5ca533('0xb'),_0x1e4562,JSON[_0x5ca533('0x10')](_0x441e1a)),_0x456ad6(_0x441e1a);})[_0x1c1c05('0x3')](function(_0x5eb210){const _0x8f9282=_0x1c1c05;logger[_0x8f9282('0x12')](_0x8f9282('0xb'),_0x5eb210[_0x8f9282('0x1')],_0x1e4562),_0x4afbda(_0x14fc5a['error'](0x1f4,_0x5eb210[_0x8f9282('0x1')]));});});},exports[_0x3de972('0x11')]=function(_0x45c2e8){const _0x16de38=this;return new Promise(function(_0xe06f31,_0x13ed74){const _0x17ee9e=a817_0x1904;return db[_0x17ee9e('0x9')]['update'](_0x45c2e8[_0x17ee9e('0xe')],{'raw':_0x45c2e8['options']?_0x45c2e8['options'][_0x17ee9e('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x45c2e8[_0x17ee9e('0x6')]?_0x45c2e8['options'][_0x17ee9e('0xf')]||null:null,'attributes':_0x45c2e8[_0x17ee9e('0x6')]?_0x45c2e8[_0x17ee9e('0x6')][_0x17ee9e('0xa')]||null:null,'limit':_0x45c2e8[_0x17ee9e('0x6')]?_0x45c2e8[_0x17ee9e('0x6')]['limit']||null:null})[_0x17ee9e('0x2')](function(_0x1c80ca){const _0x443b4c=_0x17ee9e;logger[_0x443b4c('0x0')](_0x443b4c('0x11'),_0x45c2e8),logger[_0x443b4c('0x8')](_0x443b4c('0x11'),_0x45c2e8,JSON['stringify'](_0x1c80ca)),_0xe06f31(_0x1c80ca);})['catch'](function(_0x5aade7){const _0x4e14c3=_0x17ee9e;logger[_0x4e14c3('0x12')](_0x4e14c3('0x11'),_0x5aade7[_0x4e14c3('0x1')],_0x45c2e8),_0x13ed74(_0x16de38[_0x4e14c3('0x12')](0x1f4,_0x5aade7[_0x4e14c3('0x1')]));});});}; \ No newline at end of file +const a817_0x396c=['info','update','message','body','WhatsappQueueReport','../../mysqldb','create','options','../../config/logger','catch','raw','CreateWhatsappQueueReport','stringify','limit','error','rpc','debug','then','UpdateWhatsappQueueReport'];(function(_0x166c49,_0x396cd8){const _0x101d2b=function(_0x2f0c6a){while(--_0x2f0c6a){_0x166c49['push'](_0x166c49['shift']());}};_0x101d2b(++_0x396cd8);}(a817_0x396c,0xe7));const a817_0x101d=function(_0x166c49,_0x396cd8){_0x166c49=_0x166c49-0x0;let _0x101d2b=a817_0x396c[_0x166c49];return _0x101d2b;};const _0x123119=a817_0x101d;'use strict';const db=require(_0x123119('0x2'))['db'],logger=require(_0x123119('0x5'))(_0x123119('0xc'));exports['CreateWhatsappQueueReport']=function(_0x2f0c6a){const _0xdc348f=this;return new Promise(function(_0x4ba58f,_0x14ea2a){const _0x3af75a=a817_0x101d;return db[_0x3af75a('0x1')][_0x3af75a('0x3')](_0x2f0c6a[_0x3af75a('0x0')],{'raw':_0x2f0c6a['options']?_0x2f0c6a[_0x3af75a('0x4')][_0x3af75a('0x7')]===undefined?!![]:![]:!![]})[_0x3af75a('0xe')](function(_0x3c9962){const _0x4435eb=_0x3af75a;logger['info'](_0x4435eb('0x8'),_0x2f0c6a),logger[_0x4435eb('0xd')](_0x4435eb('0x8'),_0x2f0c6a,JSON[_0x4435eb('0x9')](_0x3c9962)),_0x4ba58f(_0x3c9962);})['catch'](function(_0x35e3b3){const _0x838c1a=_0x3af75a;logger[_0x838c1a('0xb')](_0x838c1a('0x8'),_0x35e3b3[_0x838c1a('0x12')],_0x2f0c6a),_0x14ea2a(_0xdc348f[_0x838c1a('0xb')](0x1f4,_0x35e3b3['message']));});});},exports[_0x123119('0xf')]=function(_0xb50e9c){const _0x50c002=this;return new Promise(function(_0x454120,_0x313a64){const _0x66d91=a817_0x101d;return db[_0x66d91('0x1')][_0x66d91('0x11')](_0xb50e9c[_0x66d91('0x0')],{'raw':_0xb50e9c['options']?_0xb50e9c['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xb50e9c[_0x66d91('0x4')]?_0xb50e9c['options']['where']||null:null,'attributes':_0xb50e9c['options']?_0xb50e9c[_0x66d91('0x4')]['attributes']||null:null,'limit':_0xb50e9c[_0x66d91('0x4')]?_0xb50e9c[_0x66d91('0x4')][_0x66d91('0xa')]||null:null})[_0x66d91('0xe')](function(_0x107b79){const _0x59cdb6=_0x66d91;logger[_0x59cdb6('0x10')](_0x59cdb6('0xf'),_0xb50e9c),logger['debug']('UpdateWhatsappQueueReport',_0xb50e9c,JSON[_0x59cdb6('0x9')](_0x107b79)),_0x454120(_0x107b79);})[_0x66d91('0x6')](function(_0x2fb035){const _0x458d3a=_0x66d91;logger[_0x458d3a('0xb')](_0x458d3a('0xf'),_0x2fb035[_0x458d3a('0x12')],_0xb50e9c),_0x313a64(_0x50c002[_0x458d3a('0xb')](0x1f4,_0x2fb035[_0x458d3a('0x12')]));});});}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/index.js b/server/api/whatsappTransferReport/index.js index f3cde37..c35a07b 100644 --- a/server/api/whatsappTransferReport/index.js +++ b/server/api/whatsappTransferReport/index.js @@ -1 +1 @@ -const a818_0x2771=['index','../../components/auth/service','isAuthenticated','describe','Router','put','/describe','post','exports','create','update','get','show','delete','./whatsappTransferReport.controller','express','/:id'];(function(_0x1e1f3a,_0x277119){const _0x5b4bbc=function(_0x39a1b9){while(--_0x39a1b9){_0x1e1f3a['push'](_0x1e1f3a['shift']());}};_0x5b4bbc(++_0x277119);}(a818_0x2771,0x1e4));const a818_0x5b4b=function(_0x1e1f3a,_0x277119){_0x1e1f3a=_0x1e1f3a-0x0;let _0x5b4bbc=a818_0x2771[_0x1e1f3a];return _0x5b4bbc;};const _0x1c460b=a818_0x5b4b;'use strict';const express=require(_0x1c460b('0x7')),router=express[_0x1c460b('0xd')](),auth=require(_0x1c460b('0xa')),controller=require(_0x1c460b('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x1c460b('0x9')]),router[_0x1c460b('0x3')](_0x1c460b('0xf'),auth[_0x1c460b('0xb')](),controller[_0x1c460b('0xc')]),router['get'](_0x1c460b('0x8'),auth[_0x1c460b('0xb')](),controller[_0x1c460b('0x4')]),router[_0x1c460b('0x10')]('/',auth[_0x1c460b('0xb')](),controller[_0x1c460b('0x1')]),router[_0x1c460b('0xe')](_0x1c460b('0x8'),auth[_0x1c460b('0xb')](),controller[_0x1c460b('0x2')]),router[_0x1c460b('0x5')](_0x1c460b('0x8'),auth['isAuthenticated'](),controller['destroy']),module[_0x1c460b('0x0')]=router; \ No newline at end of file +const a818_0x3708=['isAuthenticated','/describe','express','describe','destroy','get','../../components/auth/service','Router','./whatsappTransferReport.controller','update','delete','/:id','put','index'];(function(_0x2f2c98,_0x37085a){const _0x42d14d=function(_0xc8a327){while(--_0xc8a327){_0x2f2c98['push'](_0x2f2c98['shift']());}};_0x42d14d(++_0x37085a);}(a818_0x3708,0x17f));const a818_0x42d1=function(_0x2f2c98,_0x37085a){_0x2f2c98=_0x2f2c98-0x0;let _0x42d14d=a818_0x3708[_0x2f2c98];return _0x42d14d;};const _0x123313=a818_0x42d1;'use strict';const express=require(_0x123313('0xb')),router=express[_0x123313('0x2')](),auth=require(_0x123313('0x1')),controller=require(_0x123313('0x3'));router['get']('/',auth[_0x123313('0x9')](),controller[_0x123313('0x8')]),router['get'](_0x123313('0xa'),auth[_0x123313('0x9')](),controller[_0x123313('0xc')]),router[_0x123313('0x0')](_0x123313('0x6'),auth[_0x123313('0x9')](),controller['show']),router['post']('/',auth[_0x123313('0x9')](),controller['create']),router[_0x123313('0x7')](_0x123313('0x6'),auth[_0x123313('0x9')](),controller[_0x123313('0x4')]),router[_0x123313('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x123313('0xd')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js index 0b9de76..1562959 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js @@ -1 +1 @@ -const a819_0x3e2e=['account','STRING','exports','sequelize','DATE','ENUM'];(function(_0x5481ec,_0x3e2eb9){const _0x4e6978=function(_0x2e97ce){while(--_0x2e97ce){_0x5481ec['push'](_0x5481ec['shift']());}};_0x4e6978(++_0x3e2eb9);}(a819_0x3e2e,0x14d));const a819_0x4e69=function(_0x5481ec,_0x3e2eb9){_0x5481ec=_0x5481ec-0x0;let _0x4e6978=a819_0x3e2e[_0x5481ec];return _0x4e6978;};const _0x43324b=a819_0x4e69;'use strict';const Sequelize=require(_0x43324b('0x0'));module[_0x43324b('0x5')]={'uniqueid':{'type':Sequelize[_0x43324b('0x4')],'allowNull':![]},'type':{'type':Sequelize[_0x43324b('0x2')](_0x43324b('0x3'),'agent','queue'),'allowNull':![]},'transferredAt':{'type':Sequelize[_0x43324b('0x1')]}}; \ No newline at end of file +const a819_0x33f8=['exports','sequelize','account','DATE','STRING','queue'];(function(_0x42dfc7,_0x33f84f){const _0x39c4f1=function(_0x2952d0){while(--_0x2952d0){_0x42dfc7['push'](_0x42dfc7['shift']());}};_0x39c4f1(++_0x33f84f);}(a819_0x33f8,0xfb));const a819_0x39c4=function(_0x42dfc7,_0x33f84f){_0x42dfc7=_0x42dfc7-0x0;let _0x39c4f1=a819_0x33f8[_0x42dfc7];return _0x39c4f1;};const _0x2be9fe=a819_0x39c4;'use strict';const Sequelize=require(_0x2be9fe('0x2'));module[_0x2be9fe('0x1')]={'uniqueid':{'type':Sequelize[_0x2be9fe('0x5')],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x2be9fe('0x3'),'agent',_0x2be9fe('0x0')),'allowNull':![]},'transferredAt':{'type':Sequelize[_0x2be9fe('0x4')]}}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js index 661ba85..c741e31 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js @@ -1 +1 @@ -const a820_0x1575=['stack','nolimit','type','intersection','merge','destroy','Content-Range','model','body','catch','params','length','fields','api','../../components/parsers/qs','end','where','then','count','query','keys','findOne','lodash','includeAll','WhatsappTransferReport','include','name','filter','pick','rawAttributes','map','create','undefined','options','index','status','../../mysqldb','findAll','order','VIRTUAL','sequelize','../../config/logger','key','sendStatus','show','offset','filters','json','limit','attributes','describe'];(function(_0x3b1ada,_0x157592){const _0x4b275a=function(_0x1288dc){while(--_0x1288dc){_0x3b1ada['push'](_0x3b1ada['shift']());}};_0x4b275a(++_0x157592);}(a820_0x1575,0x109));const a820_0x4b27=function(_0x3b1ada,_0x157592){_0x3b1ada=_0x3b1ada-0x0;let _0x4b275a=a820_0x1575[_0x3b1ada];return _0x4b275a;};const _0x167a47=a820_0x4b27;'use strict';const _=require(_0x167a47('0xc')),qs=require(_0x167a47('0x4')),logger=require(_0x167a47('0x1f'))(_0x167a47('0x3')),db=require(_0x167a47('0x1a'))['db'],{Op}=require(_0x167a47('0x1e'));function respondWithResult(_0x1288dc,_0x2ceda2){return _0x2ceda2=_0x2ceda2||0xc8,function(_0x36394f){const _0x1dfa48=a820_0x4b27;if(_0x36394f)return _0x1288dc[_0x1dfa48('0x19')](_0x2ceda2)[_0x1dfa48('0x25')](_0x36394f);};}function respondWithFilteredResult(_0x19197e,_0x3ca2f6){return function(_0x3e54f5){const _0x598614=a820_0x4b27;if(_0x3e54f5){const _0x5acf4c=_0x3e54f5[_0x598614('0x8')],_0x91b09e=_0x3ca2f6[_0x598614('0x23')];let _0x4bf111=_0x3ca2f6[_0x598614('0x23')]+_0x3ca2f6[_0x598614('0x26')],_0x1e5009;return _0x4bf111>=_0x5acf4c?(_0x4bf111=_0x5acf4c,_0x1e5009=0xc8):_0x1e5009=0xce,_0x19197e[_0x598614('0x19')](_0x1e5009),_0x19197e['set'](_0x598614('0x2f'),_0x91b09e+'-'+_0x4bf111+'/'+_0x5acf4c)['json'](_0x3e54f5);}return null;};}function saveUpdates(_0x3bf284){return function(_0x33e630){if(_0x33e630)return _0x33e630['update'](_0x3bf284)['then'](function(_0x1a760c){return _0x1a760c;});return null;};}function removeEntity(_0x5d369b){return function(_0x4d7b9b){const _0x13caee=a820_0x4b27;if(_0x4d7b9b)return _0x4d7b9b[_0x13caee('0x2e')]()[_0x13caee('0x7')](function(){const _0x93f97f=_0x13caee;_0x5d369b['status'](0xcc)[_0x93f97f('0x5')]();});};}function handleEntityNotFound(_0xba7128){return function(_0x381002){const _0x3495d9=a820_0x4b27;return!_0x381002&&_0xba7128[_0x3495d9('0x21')](0x194),_0x381002;};}function handleError(_0x4bce82,_0x2284be){return _0x2284be=_0x2284be||0x1f4,function(_0x5a7f6d){const _0x19c94b=a820_0x4b27;logger['error'](_0x5a7f6d[_0x19c94b('0x29')]),_0x5a7f6d[_0x19c94b('0x10')]&&delete _0x5a7f6d[_0x19c94b('0x10')],_0x4bce82[_0x19c94b('0x19')](_0x2284be)['send'](_0x5a7f6d);};}exports[_0x167a47('0x18')]=function(_0x32da87,_0x433637){const _0x5de28e=_0x167a47;let _0x45d3f5={};const _0x53a209={},_0x10a0b6={'count':0x0,'rows':[]},_0x258df5=_[_0x5de28e('0x14')](db[_0x5de28e('0xe')][_0x5de28e('0x13')],function(_0x41ce92){const _0x28d92d=_0x5de28e;return{'name':_0x41ce92['fieldName'],'type':_0x41ce92[_0x28d92d('0x2b')][_0x28d92d('0x20')]};});_0x53a209[_0x5de28e('0x30')]=_[_0x5de28e('0x14')](_0x258df5,_0x5de28e('0x10')),_0x53a209['query']=_[_0x5de28e('0xa')](_0x32da87[_0x5de28e('0x9')]),_0x53a209[_0x5de28e('0x24')]=_[_0x5de28e('0x2c')](_0x53a209['model'],_0x53a209[_0x5de28e('0x9')]),_0x45d3f5['attributes']=_[_0x5de28e('0x2c')](_0x53a209[_0x5de28e('0x30')],qs[_0x5de28e('0x2')](_0x32da87[_0x5de28e('0x9')]['fields'])),_0x45d3f5['attributes']=_0x45d3f5['attributes'][_0x5de28e('0x1')]?_0x45d3f5[_0x5de28e('0x27')]:_0x53a209[_0x5de28e('0x30')];typeof _0x32da87[_0x5de28e('0x9')][_0x5de28e('0x2a')]===_0x5de28e('0x16')&&(_0x45d3f5[_0x5de28e('0x26')]=qs[_0x5de28e('0x26')](_0x32da87[_0x5de28e('0x9')]['limit']),_0x45d3f5[_0x5de28e('0x23')]=qs[_0x5de28e('0x23')](_0x32da87[_0x5de28e('0x9')][_0x5de28e('0x23')]));_0x45d3f5[_0x5de28e('0x1c')]=qs['sort'](_0x32da87[_0x5de28e('0x9')]['sort']),_0x45d3f5[_0x5de28e('0x6')]=qs[_0x5de28e('0x24')](_[_0x5de28e('0x12')](_0x32da87[_0x5de28e('0x9')],_0x53a209[_0x5de28e('0x24')]),_0x258df5);_0x32da87['query']['filter']&&(_0x45d3f5[_0x5de28e('0x6')]=_[_0x5de28e('0x2d')](_0x45d3f5['where'],{[Op['or']]:_[_0x5de28e('0x14')](_0x258df5,function(_0x46ef6e){const _0x465c8f=_0x5de28e;if(_0x46ef6e[_0x465c8f('0x2b')]!==_0x465c8f('0x1d')){const _0x4ba9d2={};return _0x4ba9d2[_0x46ef6e['name']]={[Op['like']]:'%'+_0x32da87[_0x465c8f('0x9')][_0x465c8f('0x11')]+'%'},_0x4ba9d2;}})}));_0x45d3f5=_['merge']({},_0x45d3f5,_0x32da87['options']);const _0xc26337={'where':_0x45d3f5['where']};return db[_0x5de28e('0xe')][_0x5de28e('0x8')](_0xc26337)[_0x5de28e('0x7')](function(_0x8ff1de){const _0x50ceb9=_0x5de28e;return _0x10a0b6[_0x50ceb9('0x8')]=_0x8ff1de,_0x32da87['query'][_0x50ceb9('0xd')]&&(_0x45d3f5[_0x50ceb9('0xf')]=[{'all':!![]}]),db[_0x50ceb9('0xe')][_0x50ceb9('0x1b')](_0x45d3f5);})['then'](function(_0x38ef16){return _0x10a0b6['rows']=_0x38ef16,_0x10a0b6;})['then'](respondWithFilteredResult(_0x433637,_0x45d3f5))['catch'](handleError(_0x433637,null));},exports[_0x167a47('0x22')]=function(_0x38d629,_0xa1ad04){const _0x7bbbea=_0x167a47;let _0x5eda11={'raw':!![],'where':{'id':_0x38d629[_0x7bbbea('0x0')]['id']}};const _0x48a373={};return _0x48a373['model']=_[_0x7bbbea('0xa')](db[_0x7bbbea('0xe')][_0x7bbbea('0x13')]),_0x48a373[_0x7bbbea('0x9')]=_['keys'](_0x38d629[_0x7bbbea('0x9')]),_0x48a373[_0x7bbbea('0x24')]=_[_0x7bbbea('0x2c')](_0x48a373[_0x7bbbea('0x30')],_0x48a373[_0x7bbbea('0x9')]),_0x5eda11[_0x7bbbea('0x27')]=_[_0x7bbbea('0x2c')](_0x48a373[_0x7bbbea('0x30')],qs[_0x7bbbea('0x2')](_0x38d629[_0x7bbbea('0x9')]['fields'])),_0x5eda11[_0x7bbbea('0x27')]=_0x5eda11[_0x7bbbea('0x27')][_0x7bbbea('0x1')]?_0x5eda11[_0x7bbbea('0x27')]:_0x48a373[_0x7bbbea('0x30')],_0x38d629[_0x7bbbea('0x9')][_0x7bbbea('0xd')]&&(_0x5eda11[_0x7bbbea('0xf')]=[{'all':!![]}]),_0x5eda11=_['merge']({},_0x5eda11,_0x38d629[_0x7bbbea('0x17')]),db[_0x7bbbea('0xe')][_0x7bbbea('0xb')](_0x5eda11)['then'](handleEntityNotFound(_0xa1ad04,null))['then'](respondWithResult(_0xa1ad04,null))[_0x7bbbea('0x32')](handleError(_0xa1ad04,null));},exports[_0x167a47('0x15')]=function(_0xb5773a,_0x33839b){const _0x100aab=_0x167a47;return db[_0x100aab('0xe')]['create'](_0xb5773a[_0x100aab('0x31')],{})[_0x100aab('0x7')](respondWithResult(_0x33839b,0xc9))[_0x100aab('0x32')](handleError(_0x33839b,null));},exports['update']=function(_0x4d542c,_0x2cde6f){const _0x26f3d8=_0x167a47;return _0x4d542c[_0x26f3d8('0x31')]['id']&&delete _0x4d542c[_0x26f3d8('0x31')]['id'],db['WhatsappTransferReport'][_0x26f3d8('0xb')]({'where':{'id':_0x4d542c[_0x26f3d8('0x0')]['id']}})[_0x26f3d8('0x7')](handleEntityNotFound(_0x2cde6f,null))['then'](saveUpdates(_0x4d542c[_0x26f3d8('0x31')],null))[_0x26f3d8('0x7')](respondWithResult(_0x2cde6f,null))[_0x26f3d8('0x32')](handleError(_0x2cde6f,null));},exports[_0x167a47('0x2e')]=function(_0x3bcd95,_0x44b876){const _0x3c9a08=_0x167a47;return db['WhatsappTransferReport']['findOne']({'where':{'id':_0x3bcd95[_0x3c9a08('0x0')]['id']}})[_0x3c9a08('0x7')](handleEntityNotFound(_0x44b876,null))['then'](removeEntity(_0x44b876,null))[_0x3c9a08('0x32')](handleError(_0x44b876,null));},exports[_0x167a47('0x28')]=function(_0x32e42d,_0x4e0a5f){const _0x50e498=_0x167a47;return db['WhatsappTransferReport'][_0x50e498('0x28')]()['then'](respondWithResult(_0x4e0a5f,null))['catch'](handleError(_0x4e0a5f,null));}; \ No newline at end of file +const a820_0x150c=['limit','sort','name','includeAll','destroy','params','count','Content-Range','json','update','../../mysqldb','merge','rawAttributes','filter','api','index','map','set','model','fieldName','create','options','where','end','sendStatus','attributes','status','catch','then','VIRTUAL','filters','findOne','pick','show','findAll','length','fields','error','rows','keys','offset','lodash','type','nolimit','WhatsappTransferReport','order','key','body','intersection','../../config/logger','query','describe','include'];(function(_0x5de996,_0x150cde){const _0x11b531=function(_0x4672bb){while(--_0x4672bb){_0x5de996['push'](_0x5de996['shift']());}};_0x11b531(++_0x150cde);}(a820_0x150c,0x12f));const a820_0x11b5=function(_0x5de996,_0x150cde){_0x5de996=_0x5de996-0x0;let _0x11b531=a820_0x150c[_0x5de996];return _0x11b531;};const _0x3a66c6=a820_0x11b5;'use strict';const _=require(_0x3a66c6('0x3')),qs=require('../../components/parsers/qs'),logger=require(_0x3a66c6('0xb'))(_0x3a66c6('0x1d')),db=require(_0x3a66c6('0x19'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4672bb,_0x3fd568){return _0x3fd568=_0x3fd568||0xc8,function(_0x2e3f9e){const _0x44f938=a820_0x11b5;if(_0x2e3f9e)return _0x4672bb['status'](_0x3fd568)[_0x44f938('0x17')](_0x2e3f9e);};}function respondWithFilteredResult(_0xffea88,_0x3e1309){return function(_0x44407c){const _0x272a10=a820_0x11b5;if(_0x44407c){const _0x564583=_0x44407c['count'],_0x5f30f5=_0x3e1309[_0x272a10('0x2')];let _0x18f5f6=_0x3e1309[_0x272a10('0x2')]+_0x3e1309['limit'],_0x3acf98;return _0x18f5f6>=_0x564583?(_0x18f5f6=_0x564583,_0x3acf98=0xc8):_0x3acf98=0xce,_0xffea88[_0x272a10('0x29')](_0x3acf98),_0xffea88[_0x272a10('0x20')](_0x272a10('0x16'),_0x5f30f5+'-'+_0x18f5f6+'/'+_0x564583)[_0x272a10('0x17')](_0x44407c);}return null;};}function saveUpdates(_0x2fd4b9){return function(_0x5997a1){const _0x2127e1=a820_0x11b5;if(_0x5997a1)return _0x5997a1['update'](_0x2fd4b9)[_0x2127e1('0x2b')](function(_0x40f1c8){return _0x40f1c8;});return null;};}function removeEntity(_0x374ecf){return function(_0x2cbfca){if(_0x2cbfca)return _0x2cbfca['destroy']()['then'](function(){const _0x58145d=a820_0x11b5;_0x374ecf[_0x58145d('0x29')](0xcc)[_0x58145d('0x26')]();});};}function handleEntityNotFound(_0x377194){return function(_0x14047a){const _0x3d9637=a820_0x11b5;return!_0x14047a&&_0x377194[_0x3d9637('0x27')](0x194),_0x14047a;};}function handleError(_0x223800,_0x2c146f){return _0x2c146f=_0x2c146f||0x1f4,function(_0x4e0108){const _0x2123f3=a820_0x11b5;logger[_0x2123f3('0x34')](_0x4e0108['stack']),_0x4e0108['name']&&delete _0x4e0108[_0x2123f3('0x11')],_0x223800['status'](_0x2c146f)['send'](_0x4e0108);};}exports[_0x3a66c6('0x1e')]=function(_0x1410db,_0x32136c){const _0x28a6c7=_0x3a66c6;let _0x12504b={};const _0x4edf65={},_0x4bfbbc={'count':0x0,'rows':[]},_0x53d0de=_['map'](db[_0x28a6c7('0x6')][_0x28a6c7('0x1b')],function(_0x29596d){const _0x83f1fc=_0x28a6c7;return{'name':_0x29596d[_0x83f1fc('0x22')],'type':_0x29596d['type'][_0x83f1fc('0x8')]};});_0x4edf65[_0x28a6c7('0x21')]=_[_0x28a6c7('0x1f')](_0x53d0de,_0x28a6c7('0x11')),_0x4edf65['query']=_[_0x28a6c7('0x1')](_0x1410db['query']),_0x4edf65[_0x28a6c7('0x2d')]=_[_0x28a6c7('0xa')](_0x4edf65[_0x28a6c7('0x21')],_0x4edf65[_0x28a6c7('0xc')]),_0x12504b[_0x28a6c7('0x28')]=_[_0x28a6c7('0xa')](_0x4edf65[_0x28a6c7('0x21')],qs[_0x28a6c7('0x33')](_0x1410db[_0x28a6c7('0xc')][_0x28a6c7('0x33')])),_0x12504b['attributes']=_0x12504b[_0x28a6c7('0x28')][_0x28a6c7('0x32')]?_0x12504b[_0x28a6c7('0x28')]:_0x4edf65[_0x28a6c7('0x21')];typeof _0x1410db[_0x28a6c7('0xc')][_0x28a6c7('0x5')]==='undefined'&&(_0x12504b[_0x28a6c7('0xf')]=qs[_0x28a6c7('0xf')](_0x1410db[_0x28a6c7('0xc')][_0x28a6c7('0xf')]),_0x12504b[_0x28a6c7('0x2')]=qs[_0x28a6c7('0x2')](_0x1410db['query'][_0x28a6c7('0x2')]));_0x12504b[_0x28a6c7('0x7')]=qs[_0x28a6c7('0x10')](_0x1410db['query'][_0x28a6c7('0x10')]),_0x12504b[_0x28a6c7('0x25')]=qs['filters'](_[_0x28a6c7('0x2f')](_0x1410db['query'],_0x4edf65[_0x28a6c7('0x2d')]),_0x53d0de);_0x1410db[_0x28a6c7('0xc')][_0x28a6c7('0x1c')]&&(_0x12504b[_0x28a6c7('0x25')]=_[_0x28a6c7('0x1a')](_0x12504b[_0x28a6c7('0x25')],{[Op['or']]:_[_0x28a6c7('0x1f')](_0x53d0de,function(_0x4af92b){const _0x549a12=_0x28a6c7;if(_0x4af92b[_0x549a12('0x4')]!==_0x549a12('0x2c')){const _0x304230={};return _0x304230[_0x4af92b[_0x549a12('0x11')]]={[Op['like']]:'%'+_0x1410db['query'][_0x549a12('0x1c')]+'%'},_0x304230;}})}));_0x12504b=_['merge']({},_0x12504b,_0x1410db[_0x28a6c7('0x24')]);const _0x5f30cd={'where':_0x12504b['where']};return db[_0x28a6c7('0x6')][_0x28a6c7('0x15')](_0x5f30cd)['then'](function(_0x32be1e){const _0xc7be55=_0x28a6c7;return _0x4bfbbc[_0xc7be55('0x15')]=_0x32be1e,_0x1410db[_0xc7be55('0xc')][_0xc7be55('0x12')]&&(_0x12504b[_0xc7be55('0xe')]=[{'all':!![]}]),db['WhatsappTransferReport'][_0xc7be55('0x31')](_0x12504b);})[_0x28a6c7('0x2b')](function(_0x412f17){const _0x5de258=_0x28a6c7;return _0x4bfbbc[_0x5de258('0x0')]=_0x412f17,_0x4bfbbc;})[_0x28a6c7('0x2b')](respondWithFilteredResult(_0x32136c,_0x12504b))[_0x28a6c7('0x2a')](handleError(_0x32136c,null));},exports[_0x3a66c6('0x30')]=function(_0x24c21c,_0x1f2eec){const _0x3c19f8=_0x3a66c6;let _0x4391ed={'raw':!![],'where':{'id':_0x24c21c[_0x3c19f8('0x14')]['id']}};const _0x45fca9={};return _0x45fca9[_0x3c19f8('0x21')]=_[_0x3c19f8('0x1')](db[_0x3c19f8('0x6')][_0x3c19f8('0x1b')]),_0x45fca9[_0x3c19f8('0xc')]=_[_0x3c19f8('0x1')](_0x24c21c[_0x3c19f8('0xc')]),_0x45fca9[_0x3c19f8('0x2d')]=_[_0x3c19f8('0xa')](_0x45fca9[_0x3c19f8('0x21')],_0x45fca9[_0x3c19f8('0xc')]),_0x4391ed['attributes']=_[_0x3c19f8('0xa')](_0x45fca9['model'],qs[_0x3c19f8('0x33')](_0x24c21c[_0x3c19f8('0xc')][_0x3c19f8('0x33')])),_0x4391ed['attributes']=_0x4391ed[_0x3c19f8('0x28')][_0x3c19f8('0x32')]?_0x4391ed['attributes']:_0x45fca9[_0x3c19f8('0x21')],_0x24c21c[_0x3c19f8('0xc')][_0x3c19f8('0x12')]&&(_0x4391ed[_0x3c19f8('0xe')]=[{'all':!![]}]),_0x4391ed=_[_0x3c19f8('0x1a')]({},_0x4391ed,_0x24c21c[_0x3c19f8('0x24')]),db[_0x3c19f8('0x6')][_0x3c19f8('0x2e')](_0x4391ed)[_0x3c19f8('0x2b')](handleEntityNotFound(_0x1f2eec,null))['then'](respondWithResult(_0x1f2eec,null))[_0x3c19f8('0x2a')](handleError(_0x1f2eec,null));},exports[_0x3a66c6('0x23')]=function(_0x1ce00b,_0x7487d3){const _0x5365e3=_0x3a66c6;return db[_0x5365e3('0x6')][_0x5365e3('0x23')](_0x1ce00b['body'],{})[_0x5365e3('0x2b')](respondWithResult(_0x7487d3,0xc9))[_0x5365e3('0x2a')](handleError(_0x7487d3,null));},exports[_0x3a66c6('0x18')]=function(_0x3c82b3,_0x3510f9){const _0x9c71f8=_0x3a66c6;return _0x3c82b3['body']['id']&&delete _0x3c82b3[_0x9c71f8('0x9')]['id'],db['WhatsappTransferReport']['findOne']({'where':{'id':_0x3c82b3[_0x9c71f8('0x14')]['id']}})[_0x9c71f8('0x2b')](handleEntityNotFound(_0x3510f9,null))[_0x9c71f8('0x2b')](saveUpdates(_0x3c82b3[_0x9c71f8('0x9')],null))[_0x9c71f8('0x2b')](respondWithResult(_0x3510f9,null))[_0x9c71f8('0x2a')](handleError(_0x3510f9,null));},exports[_0x3a66c6('0x13')]=function(_0xf06eb7,_0x42fbfd){const _0x7e25cb=_0x3a66c6;return db[_0x7e25cb('0x6')]['findOne']({'where':{'id':_0xf06eb7[_0x7e25cb('0x14')]['id']}})['then'](handleEntityNotFound(_0x42fbfd,null))[_0x7e25cb('0x2b')](removeEntity(_0x42fbfd,null))[_0x7e25cb('0x2a')](handleError(_0x42fbfd,null));},exports['describe']=function(_0x332c8b,_0x48707f){const _0x1a025d=_0x3a66c6;return db[_0x1a025d('0x6')][_0x1a025d('0xd')]()[_0x1a025d('0x2b')](respondWithResult(_0x48707f,null))[_0x1a025d('0x2a')](handleError(_0x48707f,null));}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.model.js b/server/api/whatsappTransferReport/whatsappTransferReport.model.js index 9511a81..602fb16 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.model.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.model.js @@ -1 +1 @@ -const a821_0x284e=['report_whatsapp_transfer','define','uniqueid','WhatsappTransferReport','exports'];(function(_0x13917f,_0x284e1a){const _0x3bd130=function(_0x403e95){while(--_0x403e95){_0x13917f['push'](_0x13917f['shift']());}};_0x3bd130(++_0x284e1a);}(a821_0x284e,0x1b4));const a821_0x3bd1=function(_0x13917f,_0x284e1a){_0x13917f=_0x13917f-0x0;let _0x3bd130=a821_0x284e[_0x13917f];return _0x3bd130;};const _0x48e5cf=a821_0x3bd1;'use strict';const attributes=require('./whatsappTransferReport.attributes');module[_0x48e5cf('0x3')]=function(_0x403e95){const _0x5c67af=_0x48e5cf,_0x2ea0d4=_0x403e95[_0x5c67af('0x0')](_0x5c67af('0x2'),attributes,{'tableName':_0x5c67af('0x4'),'paranoid':![],'indexes':[{'name':_0x5c67af('0x1'),'fields':['uniqueid']}],'timestamps':!![]});return _0x2ea0d4;}; \ No newline at end of file +const a821_0x402c=['report_whatsapp_transfer','uniqueid','./whatsappTransferReport.attributes','define','exports'];(function(_0x6d1319,_0x402c79){const _0x266cd3=function(_0x3d04d4){while(--_0x3d04d4){_0x6d1319['push'](_0x6d1319['shift']());}};_0x266cd3(++_0x402c79);}(a821_0x402c,0x1b2));const a821_0x266c=function(_0x6d1319,_0x402c79){_0x6d1319=_0x6d1319-0x0;let _0x266cd3=a821_0x402c[_0x6d1319];return _0x266cd3;};const _0x3921da=a821_0x266c;'use strict';const attributes=require(_0x3921da('0x3'));module[_0x3921da('0x0')]=function(_0x3d04d4){const _0x47a61f=_0x3921da,_0x279b92=_0x3d04d4[_0x47a61f('0x4')]('WhatsappTransferReport',attributes,{'tableName':_0x47a61f('0x1'),'paranoid':![],'indexes':[{'name':_0x47a61f('0x2'),'fields':['uniqueid']}],'timestamps':!![]});return _0x279b92;}; \ No newline at end of file diff --git a/server/app.js b/server/app.js index b81c01b..f54a37c 100644 --- a/server/app.js +++ b/server/app.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -const a822_0x414c=['debounce','./config/environment','delete','./config/schedule/transcribe','error','None','\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a','filter','Cannot\x20kill\x20','app','lodash','./config/license','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','SIGINT','join','Online\x20apps:','sync','kill','seedDB','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','apps','Error\x20on\x20server\x20exit','info','once','name','xCally\x20Starting...\x20','exit','./rediscache','./config/schedule','RPC\x20Error','./config/seedDB','status','./globals','./config/schedule/chat','\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a','online','map','disconnect','debug','log','pid','Seed\x20DB\x20ok','./config/pm2/config','SIGUSR2','./config/pm2','start','./config/logger'];(function(_0x50712f,_0x414cfa){const _0xcd3136=function(_0x296a14){while(--_0x296a14){_0x50712f['push'](_0x50712f['shift']());}};_0xcd3136(++_0x414cfa);}(a822_0x414c,0x17e));const a822_0xcd31=function(_0x50712f,_0x414cfa){_0x50712f=_0x50712f-0x0;let _0xcd3136=a822_0x414c[_0x50712f];return _0xcd3136;};const _0x51548f=a822_0xcd31;'use strict';require(_0x51548f('0x1a'));const mysqldb=require('./mysqldb'),{RPC}=require('./rpc'),{getConfigService}=require('./config/config.service'),config=require(_0x51548f('0x2a')),logger=require(_0x51548f('0x28'))(_0x51548f('0x3')),pm2=require(_0x51548f('0x26')),pm2Config=require(_0x51548f('0x24')),schedule=require(_0x51548f('0x16')),chat=require(_0x51548f('0x1b')),transcribe=require(_0x51548f('0x2c')),{default:seedDB}=require(_0x51548f('0x18')),{default:checkLicense}=require(_0x51548f('0x5')),{getRedis}=require(_0x51548f('0x15')),cs=getConfigService(),_=require(_0x51548f('0x4'));function onRPCError(_0x296a14){const _0x142d82=_0x51548f;logger[_0x142d82('0x2d')](_0x142d82('0x17'),_0x296a14);}const rpc=new RPC(onRPCError),onServerExitHandler=_[_0x51548f('0x29')](async function onServerExit(_0x12ded1){const _0x5a030d=_0x51548f;console[_0x5a030d('0x21')](_0x5a030d('0xd')+_0x12ded1+_0x5a030d('0x1c')),await rpc['close']();try{for(const _0x1998bd of pm2Config[_0x5a030d('0xe')]){try{await pm2[_0x5a030d('0x2b')](_0x1998bd['name']);}catch(_0x2dbd24){console[_0x5a030d('0x2d')](_0x5a030d('0x2')+_0x1998bd[_0x5a030d('0x12')],_0x2dbd24);}}console['log'](_0x5a030d('0x0')),getRedis()[_0x5a030d('0x1f')]();}catch(_0x38183b){console[_0x5a030d('0x2d')](_0x5a030d('0xf'),_0x38183b);}},0x7d0,{'leading':!![]});!cs['isProduction']&&process[_0x51548f('0x11')](_0x51548f('0x25'),async function(){const _0x15ffaa=_0x51548f;await onServerExitHandler(_0x15ffaa('0x25')),process[_0x15ffaa('0xb')](process[_0x15ffaa('0x22')],_0x15ffaa('0x25'));});process[_0x51548f('0x11')]('SIGINT',async function(){const _0x2174bc=_0x51548f;await onServerExitHandler(_0x2174bc('0x7')),process[_0x2174bc('0x14')](0x0);});async function main(){const _0x26c072=_0x51548f;try{console[_0x26c072('0x21')](_0x26c072('0x13')+(cs['isProduction']?'':'Development\x20Mode')),await mysqldb['db']['sequelize'][_0x26c072('0xa')]();config[_0x26c072('0xc')]===!![]&&(console['debug']('Starting\x20DB\x20seed...'),await seedDB(),console[_0x26c072('0x20')](_0x26c072('0x23')));await checkLicense();const _0x4297e4=await rpc['listen']();logger['info'](_0x4297e4),await chat[_0x26c072('0x27')](),await schedule[_0x26c072('0x27')]();const _0x30afdc=await transcribe[_0x26c072('0x27')]();logger['info'](_0x30afdc);const _0x2bd7d9=await pm2[_0x26c072('0x27')](pm2Config);logger[_0x26c072('0x10')](_0x26c072('0x9'),_[_0x26c072('0x1e')](_[_0x26c072('0x1')](_0x2bd7d9,{'status':_0x26c072('0x1d')}),'name')[_0x26c072('0x8')]()),logger[_0x26c072('0x10')]('Offline\x20apps:',_[_0x26c072('0x1e')](_[_0x26c072('0x1')](_0x2bd7d9,function(_0x3c9150){const _0x519b30=_0x26c072;return _0x3c9150[_0x519b30('0x19')]!==_0x519b30('0x1d');}),_0x26c072('0x12'))['join']()||_0x26c072('0x2e')),console[_0x26c072('0x21')]('xCally\x20ready!');}catch(_0x46889b){console['error'](_0x46889b),logger[_0x26c072('0x2d')](_0x26c072('0x6'),_0x46889b);throw _0x46889b;}}main(); \ No newline at end of file +const a822_0x295b=['join','log','name','error','start','Online\x20apps:','online','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','./rediscache','kill','filter','map','\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a','Error\x20on\x20server\x20exit','sync','None','listen','./config/logger','isProduction','seedDB','SIGINT','exit','xCally\x20Starting...\x20','./config/schedule/chat','RPC\x20Error','SIGUSR2','once','./config/license','disconnect','debug','./config/environment','pid','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','./config/pm2','delete','apps','Starting\x20DB\x20seed...','Development\x20Mode','./globals','./config/pm2/config','xCally\x20ready!','info','sequelize'];(function(_0x587770,_0x295b74){const _0x31253b=function(_0x9a4c80){while(--_0x9a4c80){_0x587770['push'](_0x587770['shift']());}};_0x31253b(++_0x295b74);}(a822_0x295b,0xa0));const a822_0x3125=function(_0x587770,_0x295b74){_0x587770=_0x587770-0x0;let _0x31253b=a822_0x295b[_0x587770];return _0x31253b;};const _0x1778f4=a822_0x3125;'use strict';require(_0x1778f4('0x7'));const mysqldb=require('./mysqldb'),{RPC}=require('./rpc'),{getConfigService}=require('./config/config.service'),config=require(_0x1778f4('0x2a')),logger=require(_0x1778f4('0x1d'))('app'),pm2=require(_0x1778f4('0x2')),pm2Config=require(_0x1778f4('0x8')),schedule=require('./config/schedule'),chat=require(_0x1778f4('0x23')),transcribe=require('./config/schedule/transcribe'),{default:seedDB}=require('./config/seedDB'),{default:checkLicense}=require(_0x1778f4('0x27')),{getRedis}=require(_0x1778f4('0x14')),cs=getConfigService(),_=require('lodash');function onRPCError(_0x9a4c80){const _0x522faf=_0x1778f4;logger[_0x522faf('0xf')](_0x522faf('0x24'),_0x9a4c80);}const rpc=new RPC(onRPCError),onServerExitHandler=_['debounce'](async function onServerExit(_0x142df3){const _0x2d4c6e=_0x1778f4;console[_0x2d4c6e('0xd')](_0x2d4c6e('0x13')+_0x142df3+'\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a'),await rpc['close']();try{for(const _0x23f6bd of pm2Config[_0x2d4c6e('0x4')]){try{await pm2[_0x2d4c6e('0x3')](_0x23f6bd['name']);}catch(_0x5e4084){console['error']('Cannot\x20kill\x20'+_0x23f6bd[_0x2d4c6e('0xe')],_0x5e4084);}}console[_0x2d4c6e('0xd')](_0x2d4c6e('0x18')),getRedis()[_0x2d4c6e('0x28')]();}catch(_0x720df2){console[_0x2d4c6e('0xf')](_0x2d4c6e('0x19'),_0x720df2);}},0x7d0,{'leading':!![]});!cs[_0x1778f4('0x1e')]&&process[_0x1778f4('0x26')](_0x1778f4('0x25'),async function(){const _0x2d5cb4=_0x1778f4;await onServerExitHandler(_0x2d5cb4('0x25')),process[_0x2d5cb4('0x15')](process[_0x2d5cb4('0x0')],_0x2d5cb4('0x25'));});process[_0x1778f4('0x26')](_0x1778f4('0x20'),async function(){const _0xc2de83=_0x1778f4;await onServerExitHandler(_0xc2de83('0x20')),process[_0xc2de83('0x21')](0x0);});async function main(){const _0x1a54af=_0x1778f4;try{console[_0x1a54af('0xd')](_0x1a54af('0x22')+(cs[_0x1a54af('0x1e')]?'':_0x1a54af('0x6'))),await mysqldb['db'][_0x1a54af('0xb')][_0x1a54af('0x1a')]();config[_0x1a54af('0x1f')]===!![]&&(console[_0x1a54af('0x29')](_0x1a54af('0x5')),await seedDB(),console[_0x1a54af('0x29')]('Seed\x20DB\x20ok'));await checkLicense();const _0x11a025=await rpc[_0x1a54af('0x1c')]();logger['info'](_0x11a025),await chat[_0x1a54af('0x10')](),await schedule[_0x1a54af('0x10')]();const _0x31cc22=await transcribe[_0x1a54af('0x10')]();logger[_0x1a54af('0xa')](_0x31cc22);const _0x1e5e3c=await pm2[_0x1a54af('0x10')](pm2Config);logger[_0x1a54af('0xa')](_0x1a54af('0x11'),_[_0x1a54af('0x17')](_[_0x1a54af('0x16')](_0x1e5e3c,{'status':_0x1a54af('0x12')}),'name')[_0x1a54af('0xc')]()),logger['info']('Offline\x20apps:',_[_0x1a54af('0x17')](_[_0x1a54af('0x16')](_0x1e5e3c,function(_0x109b13){const _0x4fbe6e=_0x1a54af;return _0x109b13['status']!==_0x4fbe6e('0x12');}),'name')[_0x1a54af('0xc')]()||_0x1a54af('0x1b')),console[_0x1a54af('0xd')](_0x1a54af('0x9'));}catch(_0x4031c5){console['error'](_0x4031c5),logger['error'](_0x1a54af('0x1'),_0x4031c5);throw _0x4031c5;}}main(); \ No newline at end of file diff --git a/server/components/auth/service.js b/server/components/auth/service.js index f8c2355..b882e7d 100644 --- a/server/components/auth/service.js +++ b/server/components/auth/service.js @@ -1 +1 @@ -const a823_0x2b37=['The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.','settingsEnabled','Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one','ValidationError','session','userpic','exports','options','Unknown\x20authorization\x20format','phoneBarEnableSettings','splice','phoneBarRemoteControlPort','smsPause','It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','promisify','Invalid\x20API\x20access\x20key','sub','jsonwebtoken','showWebBar','now','chatPause','status','isNil','decryptString','ChatInteraction','phoneBarPrefixRequired','unshift','use','apiKeyIat','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','passwordResetAt','toLowerCase','phoneBarAutoAnswer','startsWith','name','query','secrets','unmanaged','crudPermissions','basic-auth','closed','User\x20not\x20found.','apiKeyNonce','User\x20object\x20not\x20found.','../encryptor','floor','json','toString','secret','disposition','payload','Bearer','split','hex','phoneBarDnd','motion.token','faxPause','../../config/license/util','getUuid','pauseType','../../config/license/hardware','verify','headers','Forbidden','cookie','Forbidden.','email','HS256','openchannelPause','apikey','phoneBarEnableRecording','findOne','fullname','lastLoginAt','pass','mailPause','randomBytes','test','isAuthenticated','interface','../../mysqldb','User','params','alias','role','phoneBarExpires','express-jwt','phoneBarAutoAnswerDelay','catch','permissions','lodash','internal','user','/dashboards/general','authenticate','isMiddleware','then','nonce','authorization','Sequelize'];(function(_0x110343,_0x2b3786){const _0x5e2645=function(_0x5e06e5){while(--_0x5e06e5){_0x110343['push'](_0x110343['shift']());}};_0x5e2645(++_0x2b3786);}(a823_0x2b37,0x148));const a823_0x5e26=function(_0x110343,_0x2b3786){_0x110343=_0x110343-0x0;let _0x5e2645=a823_0x2b37[_0x110343];return _0x5e2645;};const _0x1d982a=a823_0x5e26;'use strict';const db=require(_0x1d982a('0x38'))['db'],config=require('../../config/environment'),hardwareConf=require(_0x1d982a('0x24')),licenseUtil=require(_0x1d982a('0x21')),encryptor=require(_0x1d982a('0x14')),util=require('util'),_=require(_0x1d982a('0x42')),jwt=require(_0x1d982a('0x5e')),expressJwt=require(_0x1d982a('0x3e')),compose=require('composable-middleware'),basicAuth=require(_0x1d982a('0xf')),crypto=require('crypto'),validateJwt=expressJwt({'secret':config[_0x1d982a('0xc')][_0x1d982a('0x50')],'algorithms':[_0x1d982a('0x2b')]}),userAttributes=['id',_0x1d982a('0x3c'),_0x1d982a('0x30'),_0x1d982a('0xa'),_0x1d982a('0x43'),_0x1d982a('0x2a'),_0x1d982a('0x51'),_0x1d982a('0x41'),'md5secret','voicePause',_0x1d982a('0x61'),_0x1d982a('0x33'),_0x1d982a('0x20'),_0x1d982a('0x58'),_0x1d982a('0x2c'),_0x1d982a('0x23'),_0x1d982a('0x5f'),_0x1d982a('0x31'),'lastPauseAt',_0x1d982a('0xe'),'allowmessenger',_0x1d982a('0x6'),_0x1d982a('0x3b'),_0x1d982a('0x8'),_0x1d982a('0x3f'),_0x1d982a('0x1e'),_0x1d982a('0x2e'),'phoneBarEnableDtmfTone',_0x1d982a('0x55'),_0x1d982a('0x3d'),_0x1d982a('0x1'),'phoneBarRemoteControl',_0x1d982a('0x57'),'hotdesk',_0x1d982a('0x37'),'userProfileId',_0x1d982a('0x4d')];function isChatInteractionAuthorized(){const _0x270967=_0x1d982a;return this[_0x270967('0x36')](!![])[_0x270967('0x3')](function(_0x5e06e5,_0x124a44,_0x4fc8ea){const _0x58e5bc=_0x270967;if(_0x5e06e5[_0x58e5bc('0x44')])_0x4fc8ea();else return db[_0x58e5bc('0x0')][_0x58e5bc('0x2f')]({'where':{'id':_0x5e06e5[_0x58e5bc('0x3a')]['id']},'attributes':['id',_0x58e5bc('0x10'),_0x58e5bc('0x19')],'raw':!![]})[_0x58e5bc('0x48')](function(_0x3f3923){const _0x18bfc4=_0x58e5bc;if(_0x3f3923&&_0x3f3923[_0x18bfc4('0x10')])return _0x124a44['status'](_0x3f3923['disposition']===_0x18bfc4('0xd')?0x195:0x193)[_0x18bfc4('0x16')]({'message':_0x3f3923[_0x18bfc4('0x19')]===_0x18bfc4('0xd')?'Unmanaged.':_0x18bfc4('0x29')});else _0x4fc8ea();})[_0x58e5bc('0x40')](function(_0x58d97d){_0x4fc8ea(_0x58d97d);});});}function isAuthenticated(_0x34256b){const _0x37f5c6=_0x1d982a;return compose()[_0x37f5c6('0x3')](function(_0x3b3852,_0x236642,_0x3f88a5){const _0x4861ba=_0x37f5c6;if(_0x3b3852[_0x4861ba('0x26')][_0x4861ba('0x4a')]){if(_[_0x4861ba('0x9')](_0x3b3852[_0x4861ba('0x26')][_0x4861ba('0x4a')],'Basic')){const _0x3f681a=basicAuth(_0x3b3852);db[_0x4861ba('0x39')][_0x4861ba('0x2f')]({'where':{'name':_0x3f681a['name']}})[_0x4861ba('0x48')](function(_0x29d276){const _0x4295f9=_0x4861ba;if(!_0x29d276||!_0x29d276[_0x4295f9('0x46')](_0x3f681a[_0x4295f9('0x32')]))return _0x236642[_0x4295f9('0x62')](0x191)[_0x4295f9('0x16')]({'message':'Wrong\x20credentials.'});_0x3b3852[_0x4295f9('0x44')]={'id':_0x29d276['id']},_0x3f88a5();})[_0x4861ba('0x40')](function(_0x4b798e){_0x3f88a5(_0x4b798e);});}else{if(_[_0x4861ba('0x9')](_0x3b3852[_0x4861ba('0x26')]['authorization'],_0x4861ba('0x1b')))validateJwt(_0x3b3852,_0x236642,_0x3f88a5);else{if(_0x34256b)_0x3f88a5();else return _0x236642[_0x4861ba('0x62')](0x193)[_0x4861ba('0x16')]({'message':_0x4861ba('0x54')});}}}else{if(_0x3b3852[_0x4861ba('0xb')]['apikey'])try{const _0x3eeb88={'audience':hardwareConf[_0x4861ba('0x22')](),'issuer':hardwareConf[_0x4861ba('0x22')]()};verifyJwt(_0x3b3852[_0x4861ba('0xb')][_0x4861ba('0x2d')],_0x3eeb88)[_0x4861ba('0x48')](function(_0x1ecd95){const _0x35ae7d=_0x4861ba;return db[_0x35ae7d('0x39')][_0x35ae7d('0x2f')]({'where':{'id':_0x1ecd95[_0x35ae7d('0x5d')]}})[_0x35ae7d('0x48')](function(_0xb2f4bf){const _0x4580dd=_0x35ae7d;if(!_0xb2f4bf||!_['isEqual'](_0xb2f4bf[_0x4580dd('0x12')],_0x1ecd95[_0x4580dd('0x49')]))return _0x236642[_0x4580dd('0x62')](0x191)[_0x4580dd('0x16')]({'message':'API\x20access\x20key\x20is\x20not\x20valid\x20anymore'});_0x3b3852[_0x4580dd('0x44')]={'id':_0xb2f4bf['id']},_0x3f88a5();});})[_0x4861ba('0x40')](function(){const _0x1b217d=_0x4861ba;return _0x236642[_0x1b217d('0x62')](0x191)[_0x1b217d('0x16')]({'message':_0x1b217d('0x5c')});});}catch(_0x4914d7){_0x3f88a5(_0x4914d7);}else{if(_0x34256b)_0x3f88a5();else return _0x236642[_0x4861ba('0x62')](0x193)['json']({'message':_0x4861ba('0x54')});}}})[_0x37f5c6('0x3')](function(_0x8fc900,_0x4a0ccc,_0x166707){const _0x2897f8=_0x37f5c6;if(_0x8fc900[_0x2897f8('0x44')])db[_0x2897f8('0x39')]['findOne']({'where':{'id':_0x8fc900[_0x2897f8('0x44')]['id']},'attributes':userAttributes})['then'](function(_0x5e6e4c){const _0x57cb31=_0x2897f8;if(!_0x5e6e4c)return _0x4a0ccc['status'](0x194)[_0x57cb31('0x16')]({'message':_0x57cb31('0x11')});_0x8fc900[_0x57cb31('0x44')]=_0x5e6e4c,_0x166707();})[_0x2897f8('0x40')](function(_0x16c86f){_0x166707(_0x16c86f);});else{if(_0x34256b)_0x166707();else return _0x4a0ccc[_0x2897f8('0x62')](0x194)[_0x2897f8('0x16')]({'message':_0x2897f8('0x13')});}});}function canUpdate(){return compose()['use'](function(_0x358550,_0x402aa4,_0x358ea6){const _0x43455c=a823_0x5e26;return licenseUtil['getLicense']()[_0x43455c('0x48')](function(_0x49dd25){const _0x1277b7=_0x43455c;if(_0x49dd25['update'])_0x358ea6();else return _0x402aa4[_0x1277b7('0x62')](0x193)[_0x1277b7('0x16')]({'message':_0x1277b7('0x27')});})[_0x43455c('0x40')](function(_0x3d48ee){_0x358ea6(_0x3d48ee);});});}function isMiddleware(_0x4174c9,_0x4c3e55,_0x14d557){const _0x389336=_0x1d982a;return _0x4174c9[_0x389336('0x47')]=!![],_0x14d557();}function signToken(_0x1ccb02){return signJwt(_0x1ccb02);}function setTokenCookie(_0x1e8052,_0x300399){const _0x11c541=_0x1d982a;if(!_0x1e8052['user'])return _0x300399[_0x11c541('0x62')](0x194)['json']({'message':_0x11c541('0x59')});const _0x1affd8={'payload':{'id':_0x1e8052[_0x11c541('0x44')]['id'],'role':_0x1e8052[_0x11c541('0x44')][_0x11c541('0x3c')]},'options':{'expiresIn':0x15180}};return signJwt(_0x1affd8)[_0x11c541('0x48')](function(_0x40677e){const _0x2b99dd=_0x11c541;_0x300399[_0x2b99dd('0x28')](_0x2b99dd('0x1f'),_0x40677e),_0x300399['redirect'](_0x2b99dd('0x45'));})[_0x11c541('0x40')](function(_0x3ca50c){return _0x300399['status'](0x1f4)['send'](_0x3ca50c);});}function retrieveApiKey(_0x4993b0){const _0x25b1f9=_0x1d982a;return _[_0x25b1f9('0x63')](_0x4993b0['apiKeyNonce'])||_[_0x25b1f9('0x63')](_0x4993b0[_0x25b1f9('0x4')])?null:createJwt(_0x4993b0);}function generateApiKey(_0x161cbb){return _0x161cbb['apiKeyNonce']=generateNonce(),_0x161cbb['apiKeyIat']=generateIssuedAt(),createJwt(_0x161cbb);}function regenerateApiKey(_0x338a57,_0x2705e8){const _0x239b75=_0x1d982a,_0x5f448d=_0x338a57[_0x239b75('0xb')][_0x239b75('0x2d')];if(_0x5f448d){const _0x168023={'nonce':_0x2705e8[_0x239b75('0x12')],'iat':_0x2705e8[_0x239b75('0x4')],'audience':hardwareConf[_0x239b75('0x22')](),'issuer':hardwareConf['getUuid']()};return verifyJwt(_0x5f448d,_0x168023)[_0x239b75('0x48')](function(){return generateApiKey(_0x2705e8);});}else throw{'message':_0x239b75('0x4e')};}function validatePasswordPattern(_0x5a512e){const _0x1633d1=_0x1d982a,_0x5efdc3=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x5efdc3[_0x1633d1('0x35')](_0x5a512e))throw new db['Sequelize']['ValidationError'](_0x1633d1('0x5'));return;}function validatePasswordHistory(_0x1b7ccf,_0x427bab,_0x1cd57f){const _0x52ee51=_0x1d982a,_0x201084=encryptor[_0x52ee51('0x64')](_0x427bab)[_0x52ee51('0x1c')](',');for(let _0x424bbe=0x0;_0x424bbe<_0x1cd57f;_0x424bbe++){if(!_0x201084[_0x424bbe])break;if(_0x1b7ccf[_0x52ee51('0x7')]()===_0x201084[_0x424bbe][_0x52ee51('0x7')]()){let _0x30b1e1=util['format'](_0x52ee51('0x4c'),_0x1cd57f);_0x1cd57f===0x1&&(_0x30b1e1=_0x52ee51('0x5a'));throw new db[(_0x52ee51('0x4b'))][(_0x52ee51('0x4f'))](_0x30b1e1);}}return;}function updatePasswordsHistory(_0x5b790b,_0x21e4ed){const _0x5b31ca=_0x1d982a,_0x8eb710=_0x21e4ed?encryptor[_0x5b31ca('0x64')](_0x21e4ed)[_0x5b31ca('0x1c')](','):[];return _0x8eb710['length']===0x5&&_0x8eb710[_0x5b31ca('0x56')](-0x1,0x1),_0x8eb710[_0x5b31ca('0x2')](_0x5b790b),encryptor['encryptString'](_0x8eb710['join'](','));}function signJwt(_0x5c1013){const _0x4bb2fd=_0x1d982a,_0x4c2cf3=util[_0x4bb2fd('0x5b')](jwt['sign'],{'context':jwt}),_0x41fadc=_0x5c1013[_0x4bb2fd('0x18')]||config[_0x4bb2fd('0xc')][_0x4bb2fd('0x50')];return new Promise(function(_0x166f19,_0x29f8b9){const _0x1a1b3c=_0x4bb2fd;_0x4c2cf3(_0x5c1013[_0x1a1b3c('0x1a')],_0x41fadc,_0x5c1013[_0x1a1b3c('0x53')])[_0x1a1b3c('0x48')](function(_0x1981eb){_0x166f19(_0x1981eb);})[_0x1a1b3c('0x40')](function(_0x2639b5){_0x29f8b9(_0x2639b5);});});}function verifyJwt(_0x3487f0,_0x25eed9,_0xf1dd0f){const _0x370dbe=_0x1d982a,_0x298565=util[_0x370dbe('0x5b')](jwt[_0x370dbe('0x25')],{'context':jwt}),_0x46426c=_0xf1dd0f||config[_0x370dbe('0xc')][_0x370dbe('0x50')];return new Promise(function(_0x34d721,_0x35438e){const _0x5c2402=_0x370dbe;_0x298565(_0x3487f0,_0x46426c,_0x25eed9)[_0x5c2402('0x48')](function(_0x234f89){_0x34d721(_0x234f89);})[_0x5c2402('0x40')](function(_0x4312a0){_0x35438e(_0x4312a0);});});}function generateNonce(){const _0x36b37c=_0x1d982a;return crypto[_0x36b37c('0x34')](0x10)['toString'](_0x36b37c('0x1d'));}function generateIssuedAt(){const _0xb8f75c=_0x1d982a;return Math[_0xb8f75c('0x15')](Date[_0xb8f75c('0x60')]()/0x3e8)[_0xb8f75c('0x17')]();}function createJwt(_0xed18af){const _0xa14b3e=_0x1d982a,_0x20d909={'payload':{'iat':_0xed18af[_0xa14b3e('0x4')],'nonce':_0xed18af['apiKeyNonce']},'options':{'algorithm':'HS512','subject':_0xed18af['id']['toString'](),'issuer':hardwareConf['getUuid'](),'audience':hardwareConf[_0xa14b3e('0x22')]()}};return signJwt(_0x20d909)[_0xa14b3e('0x48')](function(_0x30bf52){const _0x7be243=_0xa14b3e;return{'iat':_0xed18af[_0x7be243('0x4')],'nonce':_0xed18af[_0x7be243('0x12')],'token':_0x30bf52};});}module[_0x1d982a('0x52')]={'isChatInteractionAuthorized':isChatInteractionAuthorized,'isAuthenticated':isAuthenticated,'canUpdate':canUpdate,'isMiddleware':isMiddleware,'signToken':signToken,'setTokenCookie':setTokenCookie,'retrieveApiKey':retrieveApiKey,'generateApiKey':generateApiKey,'regenerateApiKey':regenerateApiKey,'validatePasswordPattern':validatePasswordPattern,'validatePasswordHistory':validatePasswordHistory,'updatePasswordsHistory':updatePasswordsHistory}; \ No newline at end of file +const a823_0x26b4=['It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.','sub','isNil','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','API\x20access\x20key\x20is\x20not\x20valid\x20anymore','pauseType','hex','catch','chatPause','Forbidden','unshift','interface','query','motion.token','Basic','findOne','email','Invalid\x20API\x20access\x20key','phoneBarEnableRecording','Sequelize','ChatInteraction','Unknown\x20authorization\x20format','closed','startsWith','toLowerCase','promisify','../encryptor','encryptString','lastPauseAt','role','HS256','phoneBarDnd','options','randomBytes','pass','json','name','crudPermissions','apikey','mailPause','phoneBarEnableSettings','isAuthenticated','then','phoneBarExpires','The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.','voicePause','unmanaged','floor','user','split','User\x20object\x20not\x20found.','redirect','secrets','status','../../config/environment','format','phoneBarAutoAnswerDelay','phoneBarRemoteControl','payload','length','User','Bearer','phoneBarEnableDtmfTone','join','authorization','toString','hotdesk','phoneBarRemoteControlPort','isMiddleware','../../config/license/hardware','jsonwebtoken','exports','internal','sign','params','Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one','disposition','lastLoginAt','getUuid','fullname','session','update','decryptString','send','../../mysqldb','util','getLicense','settingsEnabled','passwordResetAt','apiKeyIat','../../config/license/util','allowmessenger','permissions','Unmanaged.','phoneBarPrefixRequired','apiKeyNonce','Forbidden.','ValidationError','isEqual','phoneBarAutoAnswer','use','secret','nonce','Wrong\x20credentials.','test','headers','userpic','/dashboards/general','splice','HS512','verify'];(function(_0x4c7dbe,_0x26b428){const _0xf6ecb4=function(_0x2905d8){while(--_0x2905d8){_0x4c7dbe['push'](_0x4c7dbe['shift']());}};_0xf6ecb4(++_0x26b428);}(a823_0x26b4,0xcc));const a823_0xf6ec=function(_0x4c7dbe,_0x26b428){_0x4c7dbe=_0x4c7dbe-0x0;let _0xf6ecb4=a823_0x26b4[_0x4c7dbe];return _0xf6ecb4;};const _0x59d7ac=a823_0xf6ec;'use strict';const db=require(_0x59d7ac('0x66'))['db'],config=require(_0x59d7ac('0x48')),hardwareConf=require(_0x59d7ac('0x57')),licenseUtil=require(_0x59d7ac('0x6c')),encryptor=require(_0x59d7ac('0x2c')),util=require(_0x59d7ac('0x67')),_=require('lodash'),jwt=require(_0x59d7ac('0x58')),expressJwt=require('express-jwt'),compose=require('composable-middleware'),basicAuth=require('basic-auth'),crypto=require('crypto'),validateJwt=expressJwt({'secret':config['secrets'][_0x59d7ac('0x62')],'algorithms':[_0x59d7ac('0x30')]}),userAttributes=['id',_0x59d7ac('0x2f'),_0x59d7ac('0x61'),_0x59d7ac('0x36'),_0x59d7ac('0x5a'),_0x59d7ac('0x22'),_0x59d7ac('0xd'),_0x59d7ac('0x6e'),'md5secret',_0x59d7ac('0x3f'),_0x59d7ac('0x1a'),_0x59d7ac('0x39'),'faxPause','smsPause','openchannelPause',_0x59d7ac('0x17'),'showWebBar',_0x59d7ac('0x5f'),_0x59d7ac('0x2e'),_0x59d7ac('0x37'),_0x59d7ac('0x6d'),_0x59d7ac('0x6a'),'alias',_0x59d7ac('0x6'),_0x59d7ac('0x4a'),_0x59d7ac('0x31'),_0x59d7ac('0x24'),_0x59d7ac('0x50'),_0x59d7ac('0x3a'),_0x59d7ac('0x3d'),_0x59d7ac('0x1'),_0x59d7ac('0x4b'),_0x59d7ac('0x55'),_0x59d7ac('0x54'),_0x59d7ac('0x1d'),'userProfileId',_0x59d7ac('0x69')];function isChatInteractionAuthorized(){const _0x1270ee=_0x59d7ac;return this[_0x1270ee('0x3b')](!![])[_0x1270ee('0x7')](function(_0x2905d8,_0x54dd8c,_0x1affa5){const _0x5566c8=_0x1270ee;if(_0x2905d8[_0x5566c8('0x42')])_0x1affa5();else return db[_0x5566c8('0x26')][_0x5566c8('0x21')]({'where':{'id':_0x2905d8[_0x5566c8('0x5c')]['id']},'attributes':['id',_0x5566c8('0x28'),'disposition'],'raw':!![]})[_0x5566c8('0x3c')](function(_0x537070){const _0x251127=_0x5566c8;if(_0x537070&&_0x537070[_0x251127('0x28')])return _0x54dd8c[_0x251127('0x47')](_0x537070['disposition']==='unmanaged'?0x195:0x193)[_0x251127('0x35')]({'message':_0x537070[_0x251127('0x5e')]===_0x251127('0x40')?_0x251127('0x0'):_0x251127('0x3')});else _0x1affa5();})[_0x5566c8('0x19')](function(_0x435210){_0x1affa5(_0x435210);});});}function isAuthenticated(_0x5c7788){const _0x204517=_0x59d7ac;return compose()['use'](function(_0x2e4645,_0x3a795b,_0x16819a){const _0x1ebea8=a823_0xf6ec;if(_0x2e4645['headers']['authorization']){if(_[_0x1ebea8('0x29')](_0x2e4645['headers']['authorization'],_0x1ebea8('0x20'))){const _0x4aea5f=basicAuth(_0x2e4645);db[_0x1ebea8('0x4e')][_0x1ebea8('0x21')]({'where':{'name':_0x4aea5f[_0x1ebea8('0x36')]}})[_0x1ebea8('0x3c')](function(_0x10ce15){const _0x3bae17=_0x1ebea8;if(!_0x10ce15||!_0x10ce15['authenticate'](_0x4aea5f[_0x3bae17('0x34')]))return _0x3a795b[_0x3bae17('0x47')](0x191)[_0x3bae17('0x35')]({'message':_0x3bae17('0xa')});_0x2e4645['user']={'id':_0x10ce15['id']},_0x16819a();})[_0x1ebea8('0x19')](function(_0x1e3566){_0x16819a(_0x1e3566);});}else{if(_['startsWith'](_0x2e4645[_0x1ebea8('0xc')][_0x1ebea8('0x52')],_0x1ebea8('0x4f')))validateJwt(_0x2e4645,_0x3a795b,_0x16819a);else{if(_0x5c7788)_0x16819a();else return _0x3a795b['status'](0x193)[_0x1ebea8('0x35')]({'message':'Unknown\x20authorization\x20format'});}}}else{if(_0x2e4645[_0x1ebea8('0x1e')][_0x1ebea8('0x38')])try{const _0x5135ad={'audience':hardwareConf['getUuid'](),'issuer':hardwareConf[_0x1ebea8('0x60')]()};verifyJwt(_0x2e4645[_0x1ebea8('0x1e')][_0x1ebea8('0x38')],_0x5135ad)['then'](function(_0x428ef7){const _0x3d3e94=_0x1ebea8;return db[_0x3d3e94('0x4e')][_0x3d3e94('0x21')]({'where':{'id':_0x428ef7[_0x3d3e94('0x13')]}})[_0x3d3e94('0x3c')](function(_0x1223ea){const _0x63e593=_0x3d3e94;if(!_0x1223ea||!_[_0x63e593('0x5')](_0x1223ea['apiKeyNonce'],_0x428ef7[_0x63e593('0x9')]))return _0x3a795b[_0x63e593('0x47')](0x191)[_0x63e593('0x35')]({'message':_0x63e593('0x16')});_0x2e4645[_0x63e593('0x42')]={'id':_0x1223ea['id']},_0x16819a();});})[_0x1ebea8('0x19')](function(){const _0x2f7131=_0x1ebea8;return _0x3a795b[_0x2f7131('0x47')](0x191)['json']({'message':_0x2f7131('0x23')});});}catch(_0x213102){_0x16819a(_0x213102);}else{if(_0x5c7788)_0x16819a();else return _0x3a795b[_0x1ebea8('0x47')](0x193)[_0x1ebea8('0x35')]({'message':_0x1ebea8('0x27')});}}})[_0x204517('0x7')](function(_0x5d1983,_0x421b7b,_0x1552ba){const _0x5e200a=_0x204517;if(_0x5d1983[_0x5e200a('0x42')])db[_0x5e200a('0x4e')]['findOne']({'where':{'id':_0x5d1983['user']['id']},'attributes':userAttributes})[_0x5e200a('0x3c')](function(_0x5593c3){const _0x3c0274=_0x5e200a;if(!_0x5593c3)return _0x421b7b[_0x3c0274('0x47')](0x194)['json']({'message':'User\x20not\x20found.'});_0x5d1983['user']=_0x5593c3,_0x1552ba();})[_0x5e200a('0x19')](function(_0x4f113f){_0x1552ba(_0x4f113f);});else{if(_0x5c7788)_0x1552ba();else return _0x421b7b[_0x5e200a('0x47')](0x194)[_0x5e200a('0x35')]({'message':_0x5e200a('0x44')});}});}function canUpdate(){return compose()['use'](function(_0xa96097,_0x16622e,_0x144159){const _0xb2cd1e=a823_0xf6ec;return licenseUtil[_0xb2cd1e('0x68')]()[_0xb2cd1e('0x3c')](function(_0x51ba6e){const _0x235a39=_0xb2cd1e;if(_0x51ba6e[_0x235a39('0x63')])_0x144159();else return _0x16622e[_0x235a39('0x47')](0x193)['json']({'message':_0x235a39('0x1b')});})['catch'](function(_0x4d75f4){_0x144159(_0x4d75f4);});});}function isMiddleware(_0x3735df,_0x48ec3b,_0x48a4f1){const _0x44462a=_0x59d7ac;return _0x3735df[_0x44462a('0x56')]=!![],_0x48a4f1();}function signToken(_0x4f2d51){return signJwt(_0x4f2d51);}function setTokenCookie(_0x5da9ab,_0x5a3e2a){const _0x2db7d3=_0x59d7ac;if(!_0x5da9ab[_0x2db7d3('0x42')])return _0x5a3e2a[_0x2db7d3('0x47')](0x194)[_0x2db7d3('0x35')]({'message':_0x2db7d3('0x12')});const _0x464749={'payload':{'id':_0x5da9ab[_0x2db7d3('0x42')]['id'],'role':_0x5da9ab[_0x2db7d3('0x42')][_0x2db7d3('0x2f')]},'options':{'expiresIn':0x15180}};return signJwt(_0x464749)[_0x2db7d3('0x3c')](function(_0x5ce13c){const _0x171cba=_0x2db7d3;_0x5a3e2a['cookie'](_0x171cba('0x1f'),_0x5ce13c),_0x5a3e2a[_0x171cba('0x45')](_0x171cba('0xe'));})['catch'](function(_0x58b409){const _0x5817bd=_0x2db7d3;return _0x5a3e2a[_0x5817bd('0x47')](0x1f4)[_0x5817bd('0x65')](_0x58b409);});}function retrieveApiKey(_0x2313b6){const _0x25abee=_0x59d7ac;return _[_0x25abee('0x14')](_0x2313b6[_0x25abee('0x2')])||_[_0x25abee('0x14')](_0x2313b6['apiKeyIat'])?null:createJwt(_0x2313b6);}function generateApiKey(_0x2fd43f){const _0x199dde=_0x59d7ac;return _0x2fd43f[_0x199dde('0x2')]=generateNonce(),_0x2fd43f[_0x199dde('0x6b')]=generateIssuedAt(),createJwt(_0x2fd43f);}function regenerateApiKey(_0x38174f,_0x42c317){const _0x36ace5=_0x59d7ac,_0x1dd15f=_0x38174f['query'][_0x36ace5('0x38')];if(_0x1dd15f){const _0x381d7b={'nonce':_0x42c317[_0x36ace5('0x2')],'iat':_0x42c317[_0x36ace5('0x6b')],'audience':hardwareConf[_0x36ace5('0x60')](),'issuer':hardwareConf[_0x36ace5('0x60')]()};return verifyJwt(_0x1dd15f,_0x381d7b)[_0x36ace5('0x3c')](function(){return generateApiKey(_0x42c317);});}else throw{'message':_0x36ace5('0x5d')};}function validatePasswordPattern(_0xd49cd3){const _0x29fd85=_0x59d7ac,_0x1c522a=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x1c522a[_0x29fd85('0xb')](_0xd49cd3))throw new db[(_0x29fd85('0x25'))][(_0x29fd85('0x4'))]('The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.');return;}function validatePasswordHistory(_0x59917b,_0x3d58ca,_0x14e406){const _0x5f1b=_0x59d7ac,_0x426a49=encryptor['decryptString'](_0x3d58ca)[_0x5f1b('0x43')](',');for(let _0x1977fa=0x0;_0x1977fa<_0x14e406;_0x1977fa++){if(!_0x426a49[_0x1977fa])break;if(_0x59917b['toLowerCase']()===_0x426a49[_0x1977fa][_0x5f1b('0x2a')]()){let _0x5ddcc4=util[_0x5f1b('0x49')](_0x5f1b('0x3e'),_0x14e406);_0x14e406===0x1&&(_0x5ddcc4=_0x5f1b('0x15'));throw new db[(_0x5f1b('0x25'))][(_0x5f1b('0x4'))](_0x5ddcc4);}}return;}function updatePasswordsHistory(_0x24e5b2,_0xb6b821){const _0x283f8a=_0x59d7ac,_0x1b2240=_0xb6b821?encryptor[_0x283f8a('0x64')](_0xb6b821)[_0x283f8a('0x43')](','):[];return _0x1b2240[_0x283f8a('0x4d')]===0x5&&_0x1b2240[_0x283f8a('0xf')](-0x1,0x1),_0x1b2240[_0x283f8a('0x1c')](_0x24e5b2),encryptor[_0x283f8a('0x2d')](_0x1b2240[_0x283f8a('0x51')](','));}function signJwt(_0x13b143){const _0x5765c5=_0x59d7ac,_0x4ef616=util[_0x5765c5('0x2b')](jwt[_0x5765c5('0x5b')],{'context':jwt}),_0xaca744=_0x13b143[_0x5765c5('0x8')]||config[_0x5765c5('0x46')][_0x5765c5('0x62')];return new Promise(function(_0x1d6eb2,_0x27461d){const _0x6db03f=_0x5765c5;_0x4ef616(_0x13b143[_0x6db03f('0x4c')],_0xaca744,_0x13b143[_0x6db03f('0x32')])['then'](function(_0x2dbbd7){_0x1d6eb2(_0x2dbbd7);})[_0x6db03f('0x19')](function(_0xb22d88){_0x27461d(_0xb22d88);});});}function verifyJwt(_0x13aaa3,_0x42a44e,_0x1f45cd){const _0x4b1625=_0x59d7ac,_0x913ddb=util[_0x4b1625('0x2b')](jwt[_0x4b1625('0x11')],{'context':jwt}),_0x2e616b=_0x1f45cd||config[_0x4b1625('0x46')]['session'];return new Promise(function(_0x27bbd6,_0x3770a7){const _0x51e6bc=_0x4b1625;_0x913ddb(_0x13aaa3,_0x2e616b,_0x42a44e)['then'](function(_0xa745f3){_0x27bbd6(_0xa745f3);})[_0x51e6bc('0x19')](function(_0x437857){_0x3770a7(_0x437857);});});}function generateNonce(){const _0x364782=_0x59d7ac;return crypto[_0x364782('0x33')](0x10)[_0x364782('0x53')](_0x364782('0x18'));}function generateIssuedAt(){const _0x4c68aa=_0x59d7ac;return Math[_0x4c68aa('0x41')](Date['now']()/0x3e8)['toString']();}function createJwt(_0x222427){const _0x2ec82d=_0x59d7ac,_0xf7b802={'payload':{'iat':_0x222427[_0x2ec82d('0x6b')],'nonce':_0x222427[_0x2ec82d('0x2')]},'options':{'algorithm':_0x2ec82d('0x10'),'subject':_0x222427['id'][_0x2ec82d('0x53')](),'issuer':hardwareConf[_0x2ec82d('0x60')](),'audience':hardwareConf['getUuid']()}};return signJwt(_0xf7b802)[_0x2ec82d('0x3c')](function(_0x39b9f8){const _0x3df054=_0x2ec82d;return{'iat':_0x222427[_0x3df054('0x6b')],'nonce':_0x222427['apiKeyNonce'],'token':_0x39b9f8};});}module[_0x59d7ac('0x59')]={'isChatInteractionAuthorized':isChatInteractionAuthorized,'isAuthenticated':isAuthenticated,'canUpdate':canUpdate,'isMiddleware':isMiddleware,'signToken':signToken,'setTokenCookie':setTokenCookie,'retrieveApiKey':retrieveApiKey,'generateApiKey':generateApiKey,'regenerateApiKey':regenerateApiKey,'validatePasswordPattern':validatePasswordPattern,'validatePasswordHistory':validatePasswordHistory,'updatePasswordsHistory':updatePasswordsHistory}; \ No newline at end of file diff --git a/server/components/encryptor/create-cypher-fallback.js b/server/components/encryptor/create-cypher-fallback.js index e3662bf..73e984b 100644 --- a/server/components/encryptor/create-cypher-fallback.js +++ b/server/components/encryptor/create-cypher-fallback.js @@ -1 +1 @@ -const a824_0x1fe7=['update','slice','length','md5','digest','test','Missing\x20cipher','from','crypto','message','hex','repeat','min'];(function(_0x5a7ef8,_0x1fe71){const _0x5d41a2=function(_0x2774bc){while(--_0x2774bc){_0x5a7ef8['push'](_0x5a7ef8['shift']());}};_0x5d41a2(++_0x1fe71);}(a824_0x1fe7,0xb4));const a824_0x5d41=function(_0x5a7ef8,_0x1fe71){_0x5a7ef8=_0x5a7ef8-0x0;let _0x5d41a2=a824_0x1fe7[_0x5a7ef8];return _0x5d41a2;};const _0x4e53ce=a824_0x5d41;'use strict';const {createCipheriv,createHash}=require(_0x4e53ce('0xa'));function sizes(_0x2774bc){const _0x451276=_0x4e53ce;for(let _0xc436b4=0x1,_0x11c517=0x0;;){try{return createCipheriv(_0x2774bc,'.'[_0x451276('0x0')](_0xc436b4),'.'[_0x451276('0x0')](_0x11c517)),[_0xc436b4,_0x11c517];}catch(_0x144d5a){if(/invalid iv length/i[_0x451276('0x7')](_0x144d5a[_0x451276('0xb')]))_0x11c517+=0x1;else{if(/invalid key length/i[_0x451276('0x7')](_0x144d5a['message']))_0xc436b4+=0x1;else throw _0x144d5a;}}}}function compute(_0x4a3191,_0x3e137b){const _0x471be9=_0x4e53ce;let [_0x2f7dce,_0x4110cb]=sizes(_0x4a3191);for(let _0x4aff30='',_0x5e3e53='',_0x12cf2a='';;){const _0xcfb70d=createHash(_0x471be9('0x5'));_0xcfb70d[_0x471be9('0x2')](_0x12cf2a,_0x471be9('0xc')),_0xcfb70d[_0x471be9('0x2')](_0x3e137b),_0x12cf2a=_0xcfb70d[_0x471be9('0x6')](_0x471be9('0xc'));let _0x2ae4be=0x0,_0x4794e1=0x0;_0x2ae4be=Math['min'](_0x12cf2a['length']-_0x4794e1,0x2*_0x2f7dce),(_0x2f7dce-=_0x2ae4be/0x2,_0x4aff30+=_0x12cf2a[_0x471be9('0x3')](_0x4794e1,_0x4794e1+_0x2ae4be),_0x4794e1+=_0x2ae4be),_0x2ae4be=Math[_0x471be9('0x1')](_0x12cf2a[_0x471be9('0x4')]-_0x4794e1,0x2*_0x4110cb),(_0x4110cb-=_0x2ae4be/0x2,_0x5e3e53+=_0x12cf2a['slice'](_0x4794e1,_0x4794e1+_0x2ae4be),_0x4794e1+=_0x2ae4be);if(_0x2f7dce+_0x4110cb===0x0)return[_0x4aff30,_0x5e3e53];}}function createCypherFallback(_0x1861a4,_0x79d807){const _0x2d5b45=_0x4e53ce;if(!_0x1861a4)throw new Error(_0x2d5b45('0x8'));if(!_0x79d807)throw new Error('Missing\x20passphrase');const [_0x533035,_0xd8296d]=compute(_0x1861a4,_0x79d807);return{'key':Buffer[_0x2d5b45('0x9')](_0x533035,_0x2d5b45('0xc')),'iv':Buffer['from'](_0xd8296d,_0x2d5b45('0xc'))};}module['exports']={'createCypherFallback':createCypherFallback}; \ No newline at end of file +const a824_0x3bcc=['crypto','md5','repeat','test','hex','exports','length','slice','from','message','update','min','Missing\x20passphrase','Missing\x20cipher'];(function(_0x5dcbd4,_0x3bcc2a){const _0x1b323f=function(_0x112847){while(--_0x112847){_0x5dcbd4['push'](_0x5dcbd4['shift']());}};_0x1b323f(++_0x3bcc2a);}(a824_0x3bcc,0x155));const a824_0x1b32=function(_0x5dcbd4,_0x3bcc2a){_0x5dcbd4=_0x5dcbd4-0x0;let _0x1b323f=a824_0x3bcc[_0x5dcbd4];return _0x1b323f;};const _0x539320=a824_0x1b32;'use strict';const {createCipheriv,createHash}=require(_0x539320('0x9'));function sizes(_0x112847){const _0x553089=_0x539320;for(let _0x3645b9=0x1,_0x56786b=0x0;;){try{return createCipheriv(_0x112847,'.'[_0x553089('0xb')](_0x3645b9),'.'['repeat'](_0x56786b)),[_0x3645b9,_0x56786b];}catch(_0x33a6f0){if(/invalid iv length/i[_0x553089('0xc')](_0x33a6f0[_0x553089('0x4')]))_0x56786b+=0x1;else{if(/invalid key length/i['test'](_0x33a6f0[_0x553089('0x4')]))_0x3645b9+=0x1;else throw _0x33a6f0;}}}}function compute(_0x104ad1,_0x2dfc60){const _0x3153db=_0x539320;let [_0x555ad5,_0x503b6d]=sizes(_0x104ad1);for(let _0x5ea2d2='',_0x4086b8='',_0x2bf0fc='';;){const _0x3bd259=createHash(_0x3153db('0xa'));_0x3bd259['update'](_0x2bf0fc,'hex'),_0x3bd259[_0x3153db('0x5')](_0x2dfc60),_0x2bf0fc=_0x3bd259['digest'](_0x3153db('0xd'));let _0x5ea44e=0x0,_0x43c717=0x0;_0x5ea44e=Math[_0x3153db('0x6')](_0x2bf0fc[_0x3153db('0x1')]-_0x43c717,0x2*_0x555ad5),(_0x555ad5-=_0x5ea44e/0x2,_0x5ea2d2+=_0x2bf0fc[_0x3153db('0x2')](_0x43c717,_0x43c717+_0x5ea44e),_0x43c717+=_0x5ea44e),_0x5ea44e=Math[_0x3153db('0x6')](_0x2bf0fc['length']-_0x43c717,0x2*_0x503b6d),(_0x503b6d-=_0x5ea44e/0x2,_0x4086b8+=_0x2bf0fc[_0x3153db('0x2')](_0x43c717,_0x43c717+_0x5ea44e),_0x43c717+=_0x5ea44e);if(_0x555ad5+_0x503b6d===0x0)return[_0x5ea2d2,_0x4086b8];}}function createCypherFallback(_0x6da30a,_0x4e6ac9){const _0x5b09dd=_0x539320;if(!_0x6da30a)throw new Error(_0x5b09dd('0x8'));if(!_0x4e6ac9)throw new Error(_0x5b09dd('0x7'));const [_0xfffd45,_0x19d817]=compute(_0x6da30a,_0x4e6ac9);return{'key':Buffer[_0x5b09dd('0x3')](_0xfffd45,_0x5b09dd('0xd')),'iv':Buffer[_0x5b09dd('0x3')](_0x19d817,_0x5b09dd('0xd'))};}module[_0x539320('0x0')]={'createCypherFallback':createCypherFallback}; \ No newline at end of file diff --git a/server/components/encryptor/index.js b/server/components/encryptor/index.js index 2f1fec3..ca93653 100644 --- a/server/components/encryptor/index.js +++ b/server/components/encryptor/index.js @@ -1 +1 @@ -const a825_0xd2a8=['write','createHash','length','Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.','utf8','slice','key','you\x20must\x20pass\x20a\x20secret','toString','parse','final','unlink','createWriteStream','data1','exports','alloc','./create-cypher-fallback','aes-256-ctr','some-naughty-secret','end','separator','promises','sha256','from','undefined','digest','randomBytes','update','algorithm','utf-8','split','base64','secret','string','concat','license','crypto','join','binary','warn','close','error','aes192','createReadStream','substr','createCipheriv','data'];(function(_0x3b27af,_0xd2a8fb){const _0x551c7c=function(_0x1c8ab0){while(--_0x1c8ab0){_0x3b27af['push'](_0x3b27af['shift']());}};_0x551c7c(++_0xd2a8fb);}(a825_0xd2a8,0x131));const a825_0x551c=function(_0x3b27af,_0xd2a8fb){_0x3b27af=_0x3b27af-0x0;let _0x551c7c=a825_0xd2a8[_0x3b27af];return _0x551c7c;};const _0x32e944=a825_0x551c;'use strict';const fs=require('fs'),crypto=require(_0x32e944('0xd')),{createCypherFallback}=require(_0x32e944('0x28')),DEFAULT_STRING_OPTIONS={'secret':_0x32e944('0x2a'),'algorithm':_0x32e944('0x29'),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':_0x32e944('0x13'),'separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x1c8ab0,_0x5cf94a,_0x14b93c){const _0x25962c=_0x32e944,_0x55b59c=KEYLEN_MAP[_0x5cf94a],_0x2de073=crypto['createHash'](_0x25962c('0x2e'))[_0x25962c('0x4')](String(_0x1c8ab0))[_0x25962c('0x2')]('base64')['substr'](0x0,_0x55b59c),_0x1278cc=Buffer['from'](_0x2de073,_0x25962c('0x6')),_0x448965=crypto[_0x25962c('0x3')](0x10),_0x232e98=_0x448965['toString'](_0x25962c('0x8')),_0x594d33=crypto[_0x25962c('0x16')](_0x5cf94a,_0x1278cc,_0x448965,_0x14b93c);return[_0x594d33,_0x232e98];}function getDecipher(_0x32c391,_0x273649,_0xbfc476,_0x39d4a1){const _0x4455b1=_0x32e944,_0x20197b=KEYLEN_MAP[_0x273649],_0x2e40c9=typeof _0xbfc476===_0x4455b1('0xa')&&_0xbfc476[_0x4455b1('0x1a')]>0x0;let _0x5c2da6=null,_0x5acac8=null;if(!_0x2e40c9){console[_0x4455b1('0x10')](_0x4455b1('0x1b'));const _0x3fdb4f=createCypherFallback(_0x273649,_0x32c391);_0x5acac8=_0x3fdb4f['iv'],_0x5c2da6=_0x3fdb4f[_0x4455b1('0x1e')];}const _0x3e1bf4=_0x2e40c9?Buffer['from'](_0xbfc476,_0x4455b1('0x8')):_0x5acac8,_0x5216ce=_0x2e40c9?crypto[_0x4455b1('0x19')](_0x4455b1('0x2e'))['update'](String(_0x32c391))[_0x4455b1('0x2')](_0x4455b1('0x8'))[_0x4455b1('0x15')](0x0,_0x20197b):null,_0x1b2e59=_0x2e40c9?Buffer[_0x4455b1('0x0')](_0x5216ce,_0x4455b1('0x6')):_0x5c2da6,_0x279d6b=crypto['createDecipheriv'](_0x273649,_0x1b2e59,_0x3e1bf4,_0x39d4a1);return _0x279d6b;}function encryptFile(_0x1c91bf,_0x4bab7b,_0x364f38,_0x2630c8={}){return new Promise(function(_0x85e153,_0x42cca9){const _0x343aa2=a825_0x551c;_0x2630c8={...DEFAULT_FILE_OPTIONS,..._0x2630c8};const _0x3ba272=fs[_0x343aa2('0x14')](_0x1c91bf),_0x54bc1a=fs[_0x343aa2('0x24')](_0x4bab7b),[_0x59899b,_0x1de471]=getCipherAndIvText(_0x364f38,_0x2630c8[_0x343aa2('0x5')]);_0x3ba272['on']('open',function(){const _0x32b4e8=_0x343aa2,_0x1bda71=Buffer[_0x32b4e8('0x0')](_0x1de471,'base64'),_0x55439c=Buffer[_0x32b4e8('0x0')](_0x2630c8[_0x32b4e8('0x2c')],'utf-8');_0x54bc1a[_0x32b4e8('0x18')](Buffer[_0x32b4e8('0xb')]([_0x1bda71,_0x55439c],_0x1bda71[_0x32b4e8('0x1a')]+_0x55439c[_0x32b4e8('0x1a')]));}),_0x3ba272['on'](_0x343aa2('0x17'),function(_0x1cda72){const _0x1cca39=_0x343aa2,_0x4a3cf7=Buffer['from'](_0x59899b[_0x1cca39('0x4')](_0x1cda72),'binary');_0x54bc1a[_0x1cca39('0x18')](_0x4a3cf7);}),_0x3ba272['on']('end',function(){const _0x2569c0=_0x343aa2;try{const _0x54fa4e=Buffer[_0x2569c0('0x0')](_0x59899b['final'](_0x2569c0('0xf')),_0x2569c0('0xf'));_0x54bc1a[_0x2569c0('0x18')](_0x54fa4e),_0x54bc1a[_0x2569c0('0x2b')](),_0x54bc1a['on'](_0x2569c0('0x11'),function(){_0x85e153(_0x4bab7b);});}catch(_0x423b5a){fs['unlink'](_0x4bab7b,_0x3f4b43=>{_0x42cca9(_0x3f4b43===null?_0x423b5a:_0x3f4b43);});}});});}async function decryptFile(_0x1e8b17,_0x14cece,_0x2158f4,_0x211a48={}){const _0x3ccacf=_0x32e944;_0x211a48={...DEFAULT_FILE_OPTIONS,..._0x211a48};const _0x48490d=Buffer['from'](_0x211a48['separator'],_0x3ccacf('0x6'))[_0x3ccacf('0x1a')],_0x5e1fa0=IVLEN_MAP[_0x211a48[_0x3ccacf('0x5')]],_0x19ae50=_0x5e1fa0+_0x48490d,_0x4f87d6=await fs[_0x3ccacf('0x2d')]['open'](_0x1e8b17,'r'),_0x26306c=Buffer[_0x3ccacf('0x27')](_0x19ae50),{buffer:_0x34b35f}=await _0x4f87d6['read'](_0x26306c,0x0,_0x19ae50),_0x412432=_0x34b35f[_0x3ccacf('0x1d')](0x0,_0x5e1fa0),_0x3a6780=_0x34b35f['slice'](_0x5e1fa0),_0x1d6233=_0x3a6780[_0x3ccacf('0x20')](_0x3ccacf('0x6')),_0x3eeed7=_0x412432[_0x3ccacf('0x20')](_0x3ccacf('0x8')),_0x364393=_0x1d6233===_0x211a48[_0x3ccacf('0x2c')];return new Promise(function(_0x4d8001,_0x536d0e){const _0x5c2fb4=_0x3ccacf,_0x2d5e8a=fs[_0x5c2fb4('0x14')](_0x1e8b17,{'start':_0x364393?_0x19ae50:0x0,'fd':_0x4f87d6,'autoClose':!![]}),_0x2606a4=fs[_0x5c2fb4('0x24')](_0x14cece),_0x3a1c22=getDecipher(_0x2158f4,_0x211a48[_0x5c2fb4('0x5')],_0x364393?_0x3eeed7:null);_0x2d5e8a['on']('data',function(_0x580b14){const _0x489c5a=_0x5c2fb4,_0x2388ac=Buffer[_0x489c5a('0x0')](_0x3a1c22[_0x489c5a('0x4')](_0x580b14),_0x489c5a('0xf'));_0x2606a4[_0x489c5a('0x18')](_0x2388ac);}),_0x2d5e8a['on'](_0x5c2fb4('0x12'),_0x87f2c8=>_0x536d0e(_0x87f2c8)),_0x2d5e8a['on']('end',function(){const _0x50cae5=_0x5c2fb4;try{const _0x25d3ea=Buffer[_0x50cae5('0x0')](_0x3a1c22[_0x50cae5('0x22')]('binary'),_0x50cae5('0xf'));_0x2606a4['write'](_0x25d3ea),_0x2606a4[_0x50cae5('0x2b')](),_0x2606a4['on']('close',function(){_0x4d8001(_0x14cece);});}catch(_0x40019a){fs[_0x50cae5('0x23')](_0x14cece,_0x593d20=>{_0x536d0e(_0x593d20===null?_0x40019a:_0x593d20);});}});});}function encryptString(_0x1380ae,_0x555c6c=DEFAULT_STRING_OPTIONS[_0x32e944('0x9')],_0x4ec547=DEFAULT_STRING_OPTIONS['algorithm'],_0x3dc558=DEFAULT_STRING_OPTIONS[_0x32e944('0x2c')]){const _0x64ec71=_0x32e944;if(!_0x1380ae||_0x1380ae[_0x64ec71('0x1a')]===0x0)return _0x1380ae;if(!_0x555c6c||_0x555c6c[_0x64ec71('0x1a')]===0x0)throw new Error(_0x64ec71('0x1f'));const [_0x2ce355,_0x1edd3b]=getCipherAndIvText(_0x555c6c,_0x4ec547);let _0x3f66a0=_0x2ce355[_0x64ec71('0x4')](_0x1380ae,_0x64ec71('0x1c'),_0x64ec71('0x8'));return _0x3f66a0+=_0x2ce355[_0x64ec71('0x22')]('base64'),[_0x1edd3b,_0x3f66a0][_0x64ec71('0xe')](_0x3dc558);}function decryptString(_0x1b559c,_0x63c0c2=DEFAULT_STRING_OPTIONS['secret'],_0x5c5b47=DEFAULT_STRING_OPTIONS[_0x32e944('0x5')],_0x45f83b=DEFAULT_STRING_OPTIONS['separator']){const _0x400d86=_0x32e944;if(!_0x1b559c||_0x1b559c[_0x400d86('0x1a')]===0x0)return _0x1b559c;if(!_0x63c0c2||_0x63c0c2['length']===0x0)throw new Error('you\x20must\x20pass\x20a\x20secret');const _0x124ac2=_0x1b559c[_0x400d86('0x7')](_0x45f83b),_0x537a96=_0x124ac2['length']===0x2,_0x5938c=_0x537a96?_0x124ac2[0x1]:_0x1b559c,_0x254c4d=getDecipher(_0x63c0c2,_0x5c5b47,_0x537a96?_0x124ac2[0x0]:undefined);let _0x2701ff=_0x254c4d[_0x400d86('0x4')](_0x5938c,'base64',_0x400d86('0x1c'));return _0x2701ff+=_0x254c4d[_0x400d86('0x22')](_0x400d86('0x1c')),_0x2701ff;}function getValueFromLicense(_0x3328b0,_0x4dcaa6){const _0x36cefe=_0x32e944;if(_0x3328b0&&_0x4dcaa6){if(_0x4dcaa6[_0x36cefe('0x25')]&&_0x4dcaa6[_0x36cefe('0xc')]){const _0xf3cb62=_0x4dcaa6[_0x36cefe('0x25')],_0x11658a=_0x4dcaa6[_0x36cefe('0xc')],_0x5a24a8=_0xf3cb62[_0x36cefe('0x7')]('-')[0x4],_0x302750=_0xf3cb62['split']('-')[0x0],_0xd596b7=[_0x5a24a8,_0xf3cb62,_0x302750][_0x36cefe('0xe')](':'),_0x3f002d=getDecipher(_0xd596b7,_0x36cefe('0x29'));let _0x28ccea=_0x3f002d[_0x36cefe('0x4')](_0x11658a,_0x36cefe('0x8'),_0x36cefe('0x1c'));_0x28ccea+=_0x3f002d[_0x36cefe('0x22')]('utf8');const _0x5b3104=JSON[_0x36cefe('0x21')](_0x28ccea);return typeof _0x5b3104[_0x3328b0]===_0x36cefe('0x1')?null:_0x5b3104[_0x3328b0];}}return null;}module[_0x32e944('0x26')]={'encryptFile':encryptFile,'decryptFile':decryptFile,'encryptString':encryptString,'decryptString':decryptString,'getValueFromLicense':getValueFromLicense}; \ No newline at end of file +const a825_0xb956=['toString','promises','createDecipheriv','you\x20must\x20pass\x20a\x20secret','randomBytes','split','digest','some-naughty-secret','base64','undefined','concat','slice','createCipheriv','parse','final','string','key','from','binary','Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.','license','aes-256-ctr','length','createHash','alloc','utf8','createWriteStream','data','separator','sha256','algorithm','read','utf-8','write','aes192','createReadStream','error','secret','crypto','end','substr','update','join','exports'];(function(_0x5b9254,_0xb9562){const _0x619426=function(_0x412290){while(--_0x412290){_0x5b9254['push'](_0x5b9254['shift']());}};_0x619426(++_0xb9562);}(a825_0xb956,0xc8));const a825_0x6194=function(_0x5b9254,_0xb9562){_0x5b9254=_0x5b9254-0x0;let _0x619426=a825_0xb956[_0x5b9254];return _0x619426;};const _0x3ad972=a825_0x6194;'use strict';const fs=require('fs'),crypto=require(_0x3ad972('0xe')),{createCypherFallback}=require('./create-cypher-fallback'),DEFAULT_STRING_OPTIONS={'secret':_0x3ad972('0x1b'),'algorithm':_0x3ad972('0x29'),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':_0x3ad972('0xa'),'separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x412290,_0x48b706,_0x822d44){const _0x2fc0d8=_0x3ad972,_0x66acd4=KEYLEN_MAP[_0x48b706],_0x164c96=crypto[_0x2fc0d8('0x2b')](_0x2fc0d8('0x5'))[_0x2fc0d8('0x11')](String(_0x412290))[_0x2fc0d8('0x1a')](_0x2fc0d8('0x1c'))[_0x2fc0d8('0x10')](0x0,_0x66acd4),_0x111d26=Buffer[_0x2fc0d8('0x25')](_0x164c96,_0x2fc0d8('0x8')),_0x5a24ce=crypto[_0x2fc0d8('0x18')](0x10),_0x1e5947=_0x5a24ce['toString'](_0x2fc0d8('0x1c')),_0x2ddab4=crypto[_0x2fc0d8('0x20')](_0x48b706,_0x111d26,_0x5a24ce,_0x822d44);return[_0x2ddab4,_0x1e5947];}function getDecipher(_0x169f6b,_0x47694c,_0x36a59d,_0x1f91f3){const _0xeb5106=_0x3ad972,_0x39eb59=KEYLEN_MAP[_0x47694c],_0x5e6788=typeof _0x36a59d===_0xeb5106('0x23')&&_0x36a59d[_0xeb5106('0x2a')]>0x0;let _0x21a57d=null,_0x195cda=null;if(!_0x5e6788){console['warn'](_0xeb5106('0x27'));const _0x2f0e1c=createCypherFallback(_0x47694c,_0x169f6b);_0x195cda=_0x2f0e1c['iv'],_0x21a57d=_0x2f0e1c[_0xeb5106('0x24')];}const _0x4734f2=_0x5e6788?Buffer[_0xeb5106('0x25')](_0x36a59d,_0xeb5106('0x1c')):_0x195cda,_0x35501=_0x5e6788?crypto[_0xeb5106('0x2b')](_0xeb5106('0x5'))[_0xeb5106('0x11')](String(_0x169f6b))['digest'](_0xeb5106('0x1c'))['substr'](0x0,_0x39eb59):null,_0x3a76b3=_0x5e6788?Buffer['from'](_0x35501,_0xeb5106('0x8')):_0x21a57d,_0x6d0dae=crypto[_0xeb5106('0x16')](_0x47694c,_0x3a76b3,_0x4734f2,_0x1f91f3);return _0x6d0dae;}function encryptFile(_0x36d0ec,_0x2804f2,_0x4d074f,_0x7e91de={}){return new Promise(function(_0x9a70eb,_0x31c891){const _0x2d4a81=a825_0x6194;_0x7e91de={...DEFAULT_FILE_OPTIONS,..._0x7e91de};const _0x1a11be=fs[_0x2d4a81('0xb')](_0x36d0ec),_0x2bb915=fs[_0x2d4a81('0x2')](_0x2804f2),[_0x5a14c8,_0x18e922]=getCipherAndIvText(_0x4d074f,_0x7e91de[_0x2d4a81('0x6')]);_0x1a11be['on']('open',function(){const _0x68f875=_0x2d4a81,_0x232b80=Buffer[_0x68f875('0x25')](_0x18e922,_0x68f875('0x1c')),_0x14311f=Buffer['from'](_0x7e91de[_0x68f875('0x4')],'utf-8');_0x2bb915['write'](Buffer[_0x68f875('0x1e')]([_0x232b80,_0x14311f],_0x232b80[_0x68f875('0x2a')]+_0x14311f['length']));}),_0x1a11be['on'](_0x2d4a81('0x3'),function(_0x265b3e){const _0x183c9d=_0x2d4a81,_0x3eaae0=Buffer[_0x183c9d('0x25')](_0x5a14c8[_0x183c9d('0x11')](_0x265b3e),_0x183c9d('0x26'));_0x2bb915[_0x183c9d('0x9')](_0x3eaae0);}),_0x1a11be['on'](_0x2d4a81('0xf'),function(){const _0x323c9e=_0x2d4a81;try{const _0x373eaf=Buffer['from'](_0x5a14c8[_0x323c9e('0x22')](_0x323c9e('0x26')),_0x323c9e('0x26'));_0x2bb915['write'](_0x373eaf),_0x2bb915[_0x323c9e('0xf')](),_0x2bb915['on']('close',function(){_0x9a70eb(_0x2804f2);});}catch(_0x152471){fs['unlink'](_0x2804f2,_0x533665=>{_0x31c891(_0x533665===null?_0x152471:_0x533665);});}});});}async function decryptFile(_0x35edb8,_0x11df3a,_0x5a7888,_0x32f7ee={}){const _0x3f71df=_0x3ad972;_0x32f7ee={...DEFAULT_FILE_OPTIONS,..._0x32f7ee};const _0x4691d7=Buffer['from'](_0x32f7ee['separator'],'utf-8')[_0x3f71df('0x2a')],_0x4823c5=IVLEN_MAP[_0x32f7ee['algorithm']],_0x37d843=_0x4823c5+_0x4691d7,_0x580baa=await fs[_0x3f71df('0x15')]['open'](_0x35edb8,'r'),_0x29df8f=Buffer[_0x3f71df('0x0')](_0x37d843),{buffer:_0x3f3500}=await _0x580baa[_0x3f71df('0x7')](_0x29df8f,0x0,_0x37d843),_0x149f6e=_0x3f3500[_0x3f71df('0x1f')](0x0,_0x4823c5),_0x17d23b=_0x3f3500[_0x3f71df('0x1f')](_0x4823c5),_0x2f7d4a=_0x17d23b[_0x3f71df('0x14')]('utf-8'),_0x44762f=_0x149f6e[_0x3f71df('0x14')](_0x3f71df('0x1c')),_0x9cafa9=_0x2f7d4a===_0x32f7ee['separator'];return new Promise(function(_0x2f6199,_0x31eba0){const _0x2b5c57=_0x3f71df,_0x3d7477=fs[_0x2b5c57('0xb')](_0x35edb8,{'start':_0x9cafa9?_0x37d843:0x0,'fd':_0x580baa,'autoClose':!![]}),_0x338a46=fs['createWriteStream'](_0x11df3a),_0x40f238=getDecipher(_0x5a7888,_0x32f7ee[_0x2b5c57('0x6')],_0x9cafa9?_0x44762f:null);_0x3d7477['on'](_0x2b5c57('0x3'),function(_0x5d3005){const _0x2837e4=_0x2b5c57,_0x3d851c=Buffer[_0x2837e4('0x25')](_0x40f238[_0x2837e4('0x11')](_0x5d3005),'binary');_0x338a46[_0x2837e4('0x9')](_0x3d851c);}),_0x3d7477['on'](_0x2b5c57('0xc'),_0x53fc39=>_0x31eba0(_0x53fc39)),_0x3d7477['on'](_0x2b5c57('0xf'),function(){const _0x13930b=_0x2b5c57;try{const _0x414719=Buffer['from'](_0x40f238['final']('binary'),_0x13930b('0x26'));_0x338a46[_0x13930b('0x9')](_0x414719),_0x338a46['end'](),_0x338a46['on']('close',function(){_0x2f6199(_0x11df3a);});}catch(_0x2bdb5e){fs['unlink'](_0x11df3a,_0x456a29=>{_0x31eba0(_0x456a29===null?_0x2bdb5e:_0x456a29);});}});});}function encryptString(_0x337c31,_0x3c735b=DEFAULT_STRING_OPTIONS[_0x3ad972('0xd')],_0x8bdb4d=DEFAULT_STRING_OPTIONS[_0x3ad972('0x6')],_0x201717=DEFAULT_STRING_OPTIONS[_0x3ad972('0x4')]){const _0x55267=_0x3ad972;if(!_0x337c31||_0x337c31[_0x55267('0x2a')]===0x0)return _0x337c31;if(!_0x3c735b||_0x3c735b[_0x55267('0x2a')]===0x0)throw new Error(_0x55267('0x17'));const [_0x5baca1,_0x2dd10f]=getCipherAndIvText(_0x3c735b,_0x8bdb4d);let _0x3ff340=_0x5baca1[_0x55267('0x11')](_0x337c31,_0x55267('0x1'),_0x55267('0x1c'));return _0x3ff340+=_0x5baca1[_0x55267('0x22')](_0x55267('0x1c')),[_0x2dd10f,_0x3ff340][_0x55267('0x12')](_0x201717);}function decryptString(_0x52f224,_0x408693=DEFAULT_STRING_OPTIONS[_0x3ad972('0xd')],_0x18e637=DEFAULT_STRING_OPTIONS[_0x3ad972('0x6')],_0x1def1c=DEFAULT_STRING_OPTIONS[_0x3ad972('0x4')]){const _0x4dbc68=_0x3ad972;if(!_0x52f224||_0x52f224[_0x4dbc68('0x2a')]===0x0)return _0x52f224;if(!_0x408693||_0x408693[_0x4dbc68('0x2a')]===0x0)throw new Error(_0x4dbc68('0x17'));const _0x3d0b3e=_0x52f224[_0x4dbc68('0x19')](_0x1def1c),_0x5c0df8=_0x3d0b3e[_0x4dbc68('0x2a')]===0x2,_0x476dbe=_0x5c0df8?_0x3d0b3e[0x1]:_0x52f224,_0x23050f=getDecipher(_0x408693,_0x18e637,_0x5c0df8?_0x3d0b3e[0x0]:undefined);let _0x46553e=_0x23050f[_0x4dbc68('0x11')](_0x476dbe,_0x4dbc68('0x1c'),_0x4dbc68('0x1'));return _0x46553e+=_0x23050f[_0x4dbc68('0x22')](_0x4dbc68('0x1')),_0x46553e;}function getValueFromLicense(_0x1c588a,_0x3f8460){const _0x553f43=_0x3ad972;if(_0x1c588a&&_0x3f8460){if(_0x3f8460['data1']&&_0x3f8460[_0x553f43('0x28')]){const _0x1e9577=_0x3f8460['data1'],_0x143268=_0x3f8460['license'],_0x4b6d66=_0x1e9577[_0x553f43('0x19')]('-')[0x4],_0x2375f0=_0x1e9577[_0x553f43('0x19')]('-')[0x0],_0x5a2345=[_0x4b6d66,_0x1e9577,_0x2375f0][_0x553f43('0x12')](':'),_0x523eec=getDecipher(_0x5a2345,'aes-256-ctr');let _0x4ea6ad=_0x523eec[_0x553f43('0x11')](_0x143268,_0x553f43('0x1c'),'utf8');_0x4ea6ad+=_0x523eec[_0x553f43('0x22')](_0x553f43('0x1'));const _0x326c3e=JSON[_0x553f43('0x21')](_0x4ea6ad);return typeof _0x326c3e[_0x1c588a]===_0x553f43('0x1d')?null:_0x326c3e[_0x1c588a];}}return null;}module[_0x3ad972('0x13')]={'encryptFile':encryptFile,'decryptFile':decryptFile,'encryptString':encryptString,'decryptString':decryptString,'getValueFromLicense':getValueFromLicense}; \ No newline at end of file diff --git a/server/components/export/csv.js b/server/components/export/csv.js index 7b90c7b..cad5816 100644 --- a/server/components/export/csv.js +++ b/server/components/export/csv.js @@ -1 +1 @@ -const a826_0xb878=['join','existsSync','Completed','split','argv','%s%d.%s','SELECT','inspect','AnalyticExtractedReport','catch','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','../../mysqldb','push','csv','findOne','Failed','each','then','dbH','QueryTypes','zip','analytics','update','.csv','query','num','rimraf','Setting','%s\x20limit\x20%d\x20OFFSET\x20%d','length','CSV','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','%s.%s','savename','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','to-csv','sequelize','format','splitSizeCsv','info','basename'];(function(_0x2547d2,_0xb87863){const _0x415953=function(_0x4b5d48){while(--_0x4b5d48){_0x2547d2['push'](_0x2547d2['shift']());}};_0x415953(++_0xb87863);}(a826_0xb878,0xe6));const a826_0x4159=function(_0x2547d2,_0xb87863){_0x2547d2=_0x2547d2-0x0;let _0x415953=a826_0xb878[_0x2547d2];return _0x415953;};const _0x5b0dd1=a826_0x4159;'use strict';const util=require('util'),path=require('path'),csv=require(_0x5b0dd1('0xa')),fs=require('fs'),zipdir=require('zip-dir'),rimraf=require(_0x5b0dd1('0x1')),db=require('../../mysqldb')['db'],dbH=require(_0x5b0dd1('0x1b'))[_0x5b0dd1('0x22')],logger=require('../../config/logger')(_0x5b0dd1('0x25')),EXTRACTED_REPORT_ID=Number(process[_0x5b0dd1('0x14')][0x2]),QUERY=process['argv'][0x3],PATH=process[_0x5b0dd1('0x14')][0x4];function analyticExtractedReport(_0x4b5d48,_0x16de4c){const _0x41b411=_0x5b0dd1,_0x289046={'status':_0x4b5d48},_0x4d6e66={'where':{'id':EXTRACTED_REPORT_ID}};return _0x16de4c&&(_0x289046[_0x41b411('0x8')]=_0x16de4c),db[_0x41b411('0x18')][_0x41b411('0x26')](_0x289046,_0x4d6e66);}function main(){const _0x4ac42d=_0x5b0dd1;let _0x237a1b=0x1388,_0x412de2;return logger[_0x4ac42d('0xe')](util[_0x4ac42d('0xc')](_0x4ac42d('0x9'),EXTRACTED_REPORT_ID,_0x4ac42d('0x5'))),db[_0x4ac42d('0x2')][_0x4ac42d('0x1e')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x4ac42d('0x13'),_0x4ac42d('0xd')]})[_0x4ac42d('0x21')](function(_0x1865f5){const _0x353585=_0x4ac42d;_0x1865f5&&(_0x412de2=_0x1865f5,_0x237a1b=_0x412de2[_0x353585('0xd')]||0x1388);})['then'](function(){const _0x1ab1d8=_0x4ac42d;return dbH[_0x1ab1d8('0xb')][_0x1ab1d8('0x28')](util['format']('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH[_0x1ab1d8('0xb')]['QueryTypes'][_0x1ab1d8('0x16')]});})['then'](function(_0x397692){const _0x1bc9b6=_0x4ac42d;if(!_0x397692[0x0]['num'])return analyticExtractedReport('Empty');const _0x4699f4=[];let _0x461efe=0x0,_0x7a6822=!![];if(_0x397692&&_0x397692[_0x1bc9b6('0x4')]){let _0x22686a=_0x397692[0x0][_0x1bc9b6('0x0')]%(_0x461efe+_0x237a1b);if(_0x412de2['split'])for(;_0x7a6822;_0x461efe+=_0x237a1b,_0x22686a=_0x397692[0x0][_0x1bc9b6('0x0')]%(_0x461efe+_0x237a1b)){(_0x22686a==0x0||_0x22686a==_0x397692[0x0][_0x1bc9b6('0x0')])&&(_0x7a6822=![]),_0x4699f4[_0x1bc9b6('0x1c')](dbH[_0x1bc9b6('0xb')][_0x1bc9b6('0x28')](util[_0x1bc9b6('0xc')](_0x1bc9b6('0x3'),QUERY,_0x237a1b,_0x461efe),{'type':dbH[_0x1bc9b6('0xb')][_0x1bc9b6('0x23')]['SELECT']}));}else _0x4699f4['push'](dbH[_0x1bc9b6('0xb')]['query'](QUERY,{'type':dbH[_0x1bc9b6('0xb')][_0x1bc9b6('0x23')][_0x1bc9b6('0x16')]}));}const _0x468b6b=path['dirname'](PATH),_0xcce8d8=path[_0x1bc9b6('0xf')](PATH,_0x1bc9b6('0x27')),_0x85c29b=_0x412de2[_0x1bc9b6('0x13')]&&_0x4699f4[_0x1bc9b6('0x4')]>0x1,_0x3d99ff=[];return!fs[_0x1bc9b6('0x11')](path[_0x1bc9b6('0x10')](_0x468b6b,_0xcce8d8))&&_0x85c29b&&fs['mkdirSync'](path[_0x1bc9b6('0x10')](_0x468b6b,_0xcce8d8)),Promise[_0x1bc9b6('0x20')](_0x4699f4,function(_0xaa884e){_0x3d99ff['push'](_0xaa884e);})['then'](function(){const _0x5d2cf3=_0x1bc9b6;for(let _0x573ab1=0x0;_0x573ab1<_0x3d99ff[_0x5d2cf3('0x4')];_0x573ab1+=0x1){let _0x4a76fe;const _0x151c34=_0x3d99ff[_0x573ab1];_0x85c29b?_0x4a76fe=path[_0x5d2cf3('0x10')](_0x468b6b,_0xcce8d8,util[_0x5d2cf3('0xc')](_0x5d2cf3('0x15'),_0xcce8d8,_0x573ab1,_0x5d2cf3('0x1d'))):_0x4a76fe=path[_0x5d2cf3('0x10')](_0x468b6b,util['format'](_0x5d2cf3('0x7'),_0xcce8d8,_0x5d2cf3('0x1d'))),fs['writeFileSync'](_0x4a76fe,csv(_0x151c34));}})[_0x1bc9b6('0x21')](function(){const _0x24fe2e=_0x1bc9b6;_0x85c29b&&(zipdir(path[_0x24fe2e('0x10')](_0x468b6b,_0xcce8d8),{'saveTo':path[_0x24fe2e('0x10')](_0x468b6b,util[_0x24fe2e('0xc')]('%s.%s',_0xcce8d8,_0x24fe2e('0x24')))},function(){}),rimraf(path['join'](_0x468b6b,_0xcce8d8),function(){}));})[_0x1bc9b6('0x21')](function(){const _0x54e8be=_0x1bc9b6;return logger[_0x54e8be('0xe')](util[_0x54e8be('0xc')](_0x54e8be('0x1a'),EXTRACTED_REPORT_ID,_0x54e8be('0x5'))),analyticExtractedReport(_0x54e8be('0x12'),_0x85c29b?util[_0x54e8be('0xc')](_0x54e8be('0x7'),_0xcce8d8,_0x85c29b?_0x54e8be('0x24'):'csv'):null);});})[_0x4ac42d('0x19')](function(_0x4b9133){const _0x69fc8=_0x4ac42d;return logger[_0x69fc8('0xe')](util[_0x69fc8('0xc')](_0x69fc8('0x6'),EXTRACTED_REPORT_ID,_0x69fc8('0x5')),util[_0x69fc8('0x17')](_0x4b9133,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x69fc8('0x1f'));});}main(); \ No newline at end of file +const a826_0x59cf=['splitSizeCsv','length','../../mysqldb','num','info','format','sequelize','csv','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','analytics','push','Failed','to-csv','zip-dir','path','mkdirSync','Setting','SELECT','QueryTypes','then','rimraf','argv','util','update','CSV','split','AnalyticExtractedReport','dirname','%s\x20limit\x20%d\x20OFFSET\x20%d','findOne','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','basename','query','dbH','existsSync','join','%s.%s','writeFileSync','zip','each'];(function(_0x44fdf0,_0x59cf03){const _0x520b2c=function(_0x4c448d){while(--_0x4c448d){_0x44fdf0['push'](_0x44fdf0['shift']());}};_0x520b2c(++_0x59cf03);}(a826_0x59cf,0x1f4));const a826_0x520b=function(_0x44fdf0,_0x59cf03){_0x44fdf0=_0x44fdf0-0x0;let _0x520b2c=a826_0x59cf[_0x44fdf0];return _0x520b2c;};const _0x587c29=a826_0x520b;'use strict';const util=require(_0x587c29('0x2')),path=require(_0x587c29('0x22')),csv=require(_0x587c29('0x20')),fs=require('fs'),zipdir=require(_0x587c29('0x21')),rimraf=require(_0x587c29('0x0')),db=require(_0x587c29('0x16'))['db'],dbH=require(_0x587c29('0x16'))[_0x587c29('0xd')],logger=require('../../config/logger')(_0x587c29('0x1d')),EXTRACTED_REPORT_ID=Number(process[_0x587c29('0x1')][0x2]),QUERY=process[_0x587c29('0x1')][0x3],PATH=process['argv'][0x4];function analyticExtractedReport(_0x4c448d,_0x3ccd06){const _0x190abd=_0x587c29,_0x4999e3={'status':_0x4c448d},_0x456cfc={'where':{'id':EXTRACTED_REPORT_ID}};return _0x3ccd06&&(_0x4999e3['savename']=_0x3ccd06),db[_0x190abd('0x6')][_0x190abd('0x3')](_0x4999e3,_0x456cfc);}function main(){const _0x5148f3=_0x587c29;let _0xb20d2c=0x1388,_0x14c710;return logger[_0x5148f3('0x18')](util[_0x5148f3('0x19')](_0x5148f3('0x1c'),EXTRACTED_REPORT_ID,_0x5148f3('0x4'))),db[_0x5148f3('0x24')][_0x5148f3('0x9')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x5148f3('0x5'),_0x5148f3('0x14')]})[_0x5148f3('0x27')](function(_0x579226){const _0x2c8ad5=_0x5148f3;_0x579226&&(_0x14c710=_0x579226,_0xb20d2c=_0x14c710[_0x2c8ad5('0x14')]||0x1388);})[_0x5148f3('0x27')](function(){const _0x2690d2=_0x5148f3;return dbH[_0x2690d2('0x1a')][_0x2690d2('0xc')](util['format']('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH[_0x2690d2('0x1a')]['QueryTypes'][_0x2690d2('0x25')]});})[_0x5148f3('0x27')](function(_0x4b0d1f){const _0x5b9903=_0x5148f3;if(!_0x4b0d1f[0x0][_0x5b9903('0x17')])return analyticExtractedReport('Empty');const _0x1af593=[];let _0x38f221=0x0,_0x184cbe=!![];if(_0x4b0d1f&&_0x4b0d1f[_0x5b9903('0x15')]){let _0x2bf1ed=_0x4b0d1f[0x0][_0x5b9903('0x17')]%(_0x38f221+_0xb20d2c);if(_0x14c710[_0x5b9903('0x5')])for(;_0x184cbe;_0x38f221+=_0xb20d2c,_0x2bf1ed=_0x4b0d1f[0x0][_0x5b9903('0x17')]%(_0x38f221+_0xb20d2c)){(_0x2bf1ed==0x0||_0x2bf1ed==_0x4b0d1f[0x0][_0x5b9903('0x17')])&&(_0x184cbe=![]),_0x1af593[_0x5b9903('0x1e')](dbH[_0x5b9903('0x1a')]['query'](util[_0x5b9903('0x19')](_0x5b9903('0x8'),QUERY,_0xb20d2c,_0x38f221),{'type':dbH['sequelize'][_0x5b9903('0x26')]['SELECT']}));}else _0x1af593[_0x5b9903('0x1e')](dbH[_0x5b9903('0x1a')]['query'](QUERY,{'type':dbH[_0x5b9903('0x1a')][_0x5b9903('0x26')][_0x5b9903('0x25')]}));}const _0x1b7694=path[_0x5b9903('0x7')](PATH),_0x60746b=path[_0x5b9903('0xb')](PATH,'.csv'),_0x49853b=_0x14c710[_0x5b9903('0x5')]&&_0x1af593[_0x5b9903('0x15')]>0x1,_0xd1a3cd=[];return!fs[_0x5b9903('0xe')](path['join'](_0x1b7694,_0x60746b))&&_0x49853b&&fs[_0x5b9903('0x23')](path[_0x5b9903('0xf')](_0x1b7694,_0x60746b)),Promise[_0x5b9903('0x13')](_0x1af593,function(_0x156760){const _0x4b84ef=_0x5b9903;_0xd1a3cd[_0x4b84ef('0x1e')](_0x156760);})[_0x5b9903('0x27')](function(){const _0xbea82b=_0x5b9903;for(let _0x1a6345=0x0;_0x1a6345<_0xd1a3cd[_0xbea82b('0x15')];_0x1a6345+=0x1){let _0x120982;const _0x590787=_0xd1a3cd[_0x1a6345];_0x49853b?_0x120982=path[_0xbea82b('0xf')](_0x1b7694,_0x60746b,util[_0xbea82b('0x19')]('%s%d.%s',_0x60746b,_0x1a6345,_0xbea82b('0x1b'))):_0x120982=path[_0xbea82b('0xf')](_0x1b7694,util[_0xbea82b('0x19')](_0xbea82b('0x10'),_0x60746b,_0xbea82b('0x1b'))),fs[_0xbea82b('0x11')](_0x120982,csv(_0x590787));}})[_0x5b9903('0x27')](function(){const _0x184c0b=_0x5b9903;_0x49853b&&(zipdir(path[_0x184c0b('0xf')](_0x1b7694,_0x60746b),{'saveTo':path[_0x184c0b('0xf')](_0x1b7694,util[_0x184c0b('0x19')](_0x184c0b('0x10'),_0x60746b,_0x184c0b('0x12')))},function(){}),rimraf(path['join'](_0x1b7694,_0x60746b),function(){}));})[_0x5b9903('0x27')](function(){const _0x4ce457=_0x5b9903;return logger[_0x4ce457('0x18')](util[_0x4ce457('0x19')]('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,_0x4ce457('0x4'))),analyticExtractedReport('Completed',_0x49853b?util[_0x4ce457('0x19')](_0x4ce457('0x10'),_0x60746b,_0x49853b?_0x4ce457('0x12'):_0x4ce457('0x1b')):null);});})['catch'](function(_0x4acfae){const _0x408d59=_0x5148f3;return logger[_0x408d59('0x18')](util[_0x408d59('0x19')](_0x408d59('0xa'),EXTRACTED_REPORT_ID,_0x408d59('0x4')),util['inspect'](_0x4acfae,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x408d59('0x1f'));});}main(); \ No newline at end of file diff --git a/server/components/export/pdf.js b/server/components/export/pdf.js index 2095747..d44f043 100644 --- a/server/components/export/pdf.js +++ b/server/components/export/pdf.js @@ -1 +1 @@ -const a827_0x36b3=['endDate','Failed','zip','Completed','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a','catch','num','%s.%s','format','moment','pdf','finish','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','startDate','black','push','existsSync','../../mysqldb','undefined','name','/fonts/Roboto-Italic.ttf','QueryTypes','path','err','tableHeader','savename','pdfmake/src/printer','Setting','AnalyticExtractedReport','body','split','sequelize','log','rimraf','content','error','join','../../config/logger','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','%s%d.%s','update','end','length','util','query','mkdirSync','Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s','splitSizePdf','then','findOne','.pdf','pipe','/fonts/Roboto-Regular.ttf','argv','info','landscape','%s\x20limit\x20%d\x20OFFSET\x20%d','header','each','dirname','inspect','SELECT'];(function(_0x44d834,_0x36b370){const _0x1e8c4b=function(_0x3c6c09){while(--_0x3c6c09){_0x44d834['push'](_0x44d834['shift']());}};_0x1e8c4b(++_0x36b370);}(a827_0x36b3,0x170));const a827_0x1e8c=function(_0x44d834,_0x36b370){_0x44d834=_0x44d834-0x0;let _0x1e8c4b=a827_0x36b3[_0x44d834];return _0x1e8c4b;};const _0x4ead63=a827_0x1e8c;'use strict';const _=require('lodash'),fs=require('fs'),util=require(_0x4ead63('0x36')),path=require(_0x4ead63('0x21')),moment=require(_0x4ead63('0x14')),PdfPrinter=require(_0x4ead63('0x25')),zipdir=require('zip-dir'),rimraf=require(_0x4ead63('0x2c')),db=require(_0x4ead63('0x1c'))['db'],dbH=require('../../mysqldb')['dbH'],logger=require(_0x4ead63('0x30'))('analytics'),EXTRACTED_REPORT_ID=Number(process[_0x4ead63('0x1')][0x2]),QUERY=process[_0x4ead63('0x1')][0x3],PATH=process[_0x4ead63('0x1')][0x4],NAME=process[_0x4ead63('0x1')][0x5],FORMAT=_0x4ead63('0xf');let _extractedReport;function analyticExtractedReport(_0x3c6c09,_0x4ec364){const _0x40df51=_0x4ead63,_0x54abfc={'status':_0x3c6c09},_0x436a50={'where':{'id':EXTRACTED_REPORT_ID}};return _0x4ec364&&(_0x54abfc[_0x40df51('0x24')]=_0x4ec364),db[_0x40df51('0x27')][_0x40df51('0x33')](_0x54abfc,_0x436a50);}function getHeader(_0x30b487){const _0x1032cf=_0x4ead63,_0x53a4fd=[];for(const _0x83ed48 in _0x30b487){typeof _0x30b487[_0x83ed48]!=='undefined'&&_0x53a4fd[_0x1032cf('0x1a')]({'text':_0x83ed48,'style':_0x1032cf('0x23')});}return _0x53a4fd;}function extractReport(_0x5204ba){const _0x3b35ed=_0x4ead63;let _0xaa5f4b=0x1388,_0x26f6bc;if(!_0x5204ba[0x0][_0x3b35ed('0x11')])return analyticExtractedReport('Empty');const _0x3ce0c8=[];let _0x528c67=0x0,_0x1471fb=!![];const _0x3fdb1d=path[_0x3b35ed('0x7')](PATH),_0x38e97b=path['basename'](PATH,_0x3b35ed('0x3d'));let _0x1043fb=![];const _0x30af70=[];return db[_0x3b35ed('0x26')][_0x3b35ed('0x3c')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x3b35ed('0x29'),_0x3b35ed('0x3a')]})[_0x3b35ed('0x3b')](function(_0x3d0e31){const _0x193366=_0x3b35ed;_0x3d0e31&&(_0x26f6bc=_0x3d0e31,_0xaa5f4b=_0x26f6bc[_0x193366('0x3a')]||0x3e8);})[_0x3b35ed('0x3b')](function(){const _0x25dcdb=_0x3b35ed;if(_0x5204ba&&_0x5204ba[_0x25dcdb('0x35')]){let _0x1d0490=_0x5204ba[0x0]['num']%(_0x528c67+_0xaa5f4b);if(_0x26f6bc[_0x25dcdb('0x29')])for(;_0x1471fb;_0x528c67+=_0xaa5f4b,_0x1d0490=_0x5204ba[0x0][_0x25dcdb('0x11')]%(_0x528c67+_0xaa5f4b)){(_0x1d0490==0x0||_0x1d0490==_0x5204ba[0x0][_0x25dcdb('0x11')])&&(_0x1471fb=![]),_0x3ce0c8['push'](dbH[_0x25dcdb('0x2a')][_0x25dcdb('0x37')](util[_0x25dcdb('0x13')](_0x25dcdb('0x4'),QUERY,_0xaa5f4b,_0x528c67),{'type':dbH[_0x25dcdb('0x2a')][_0x25dcdb('0x20')][_0x25dcdb('0x9')]}));}else _0x3ce0c8[_0x25dcdb('0x1a')](dbH[_0x25dcdb('0x2a')][_0x25dcdb('0x37')](QUERY,{'type':dbH['sequelize'][_0x25dcdb('0x20')][_0x25dcdb('0x9')]}));}return _0x1043fb=_0x26f6bc[_0x25dcdb('0x29')]&&_0x3ce0c8[_0x25dcdb('0x35')]>0x1,!fs[_0x25dcdb('0x1b')](path['join'](_0x3fdb1d,_0x38e97b))&&_0x1043fb&&fs[_0x25dcdb('0x38')](path['join'](_0x3fdb1d,_0x38e97b)),Promise[_0x25dcdb('0x6')](_0x3ce0c8,function(_0x96d69b){const _0x3429c7=_0x25dcdb;_0x30af70[_0x3429c7('0x1a')](_0x96d69b);});})['then'](function(){const _0x3df03d=_0x3b35ed;return Promise[_0x3df03d('0x6')](_0x3ce0c8,function(_0x1423cf,_0x214fd7){const _0x3812f1=_0x3df03d;let _0xfd8de7;const _0x428eb1=util['format'](_0x3812f1('0x39'),NAME,_extractedReport[_0x3812f1('0x1e')],moment(_extractedReport[_0x3812f1('0x18')])[_0x3812f1('0x13')](FORMAT),moment(_extractedReport[_0x3812f1('0xa')])[_0x3812f1('0x13')](FORMAT)),_0x1adcd0={'pageSize':'A4','pageOrientation':_0x3812f1('0x3'),'content':[{'text':_0x428eb1,'style':_0x3812f1('0x5')}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':_0x3812f1('0x19')}}},_0xede7fe={'headerRows':0x1,'body':[]};_0xede7fe[_0x3812f1('0x28')][_0x3812f1('0x1a')](getHeader(_0x1423cf[0x0]));let _0xb10790;for(let _0x52a606=0x0;_0x52a606<_0x1423cf[_0x3812f1('0x35')];_0x52a606+=0x1){_0xb10790=[];for(const _0x728d96 in _0x1423cf[_0x52a606]){typeof _0x1423cf[_0x52a606][_0x728d96]!==_0x3812f1('0x1d')&&_0xb10790[_0x3812f1('0x1a')](_0x1423cf[_0x52a606][_0x728d96]?_['toString'](_0x1423cf[_0x52a606][_0x728d96]):'');}_0xede7fe[_0x3812f1('0x28')][_0x3812f1('0x1a')](_0xb10790);}return _0x1adcd0[_0x3812f1('0x2d')][_0x3812f1('0x1a')]({'table':_0xede7fe}),new Promise(function(_0x517be2,_0x1d4a18){const _0x1ccc36=_0x3812f1,_0x176411=new PdfPrinter({'Roboto':{'normal':__dirname+_0x1ccc36('0x0'),'bold':__dirname+'/fonts/Roboto-Medium.ttf','italics':__dirname+_0x1ccc36('0x1f'),'bolditalics':__dirname+'/fonts/Roboto-MediumItalic.ttf'}}),_0x2a94ac=_0x176411['createPdfKitDocument'](_0x1adcd0);_0x1043fb?_0xfd8de7=path[_0x1ccc36('0x2f')](_0x3fdb1d,_0x38e97b,util[_0x1ccc36('0x13')](_0x1ccc36('0x32'),_0x38e97b,_0x214fd7,_0x1ccc36('0x15'))):_0xfd8de7=path['join'](_0x3fdb1d,util['format'](_0x1ccc36('0x12'),_0x38e97b,'pdf'));const _0x51ab8b=_0x2a94ac[_0x1ccc36('0x3e')](fs['createWriteStream'](_0xfd8de7));_0x51ab8b['on'](_0x1ccc36('0x16'),function(){_0x517be2();}),_0x51ab8b['on'](_0x1ccc36('0x2e'),function(_0x4147a7){const _0x3bf587=_0x1ccc36;console[_0x3bf587('0x2b')](_0x3bf587('0x22'),_0x4147a7),_0x1d4a18(_0x4147a7);}),_0x2a94ac[_0x1ccc36('0x34')]();});});})[_0x3b35ed('0x3b')](function(){if(_0x1043fb)return new Promise(function(_0x5ab858,_0x1dd010){const _0x516f30=a827_0x1e8c;zipdir(path[_0x516f30('0x2f')](_0x3fdb1d,_0x38e97b),{'saveTo':path['join'](_0x3fdb1d,util[_0x516f30('0x13')]('%s.%s',_0x38e97b,_0x516f30('0xc')))},function(_0x5a82bf){_0x5a82bf?_0x1dd010(_0x5a82bf):_0x5ab858();});});})[_0x3b35ed('0x3b')](function(){_0x1043fb&&rimraf(path['join'](_0x3fdb1d,_0x38e97b),function(){});})[_0x3b35ed('0x3b')](function(){const _0x830849=_0x3b35ed;return logger[_0x830849('0x2')](util['format'](_0x830849('0x17'),EXTRACTED_REPORT_ID,'CSV')),analyticExtractedReport(_0x830849('0xd'),_0x1043fb?util['format'](_0x830849('0x12'),_0x38e97b,_0x1043fb?_0x830849('0xc'):_0x830849('0x15')):null);});}function main(){const _0x354855=_0x4ead63;return logger[_0x354855('0x2')](util[_0x354855('0x13')](_0x354855('0x31'),EXTRACTED_REPORT_ID,'PDF')),db['AnalyticExtractedReport'][_0x354855('0x3c')]({'where':{'id':EXTRACTED_REPORT_ID}})['then'](function(_0x4971c5){const _0x2aca72=_0x354855;return _extractedReport=_0x4971c5,dbH[_0x2aca72('0x2a')]['query'](util[_0x2aca72('0x13')]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH[_0x2aca72('0x2a')][_0x2aca72('0x20')][_0x2aca72('0x9')]});})['then'](extractReport)[_0x354855('0x10')](function(_0x443563){const _0xa4f040=_0x354855;return logger[_0xa4f040('0x2')](util[_0xa4f040('0x13')](_0xa4f040('0xe'),EXTRACTED_REPORT_ID,'PDF'),util[_0xa4f040('0x8')](_0x443563,{'showHidden':![],'depth':null})),analyticExtractedReport(_0xa4f040('0xb'));});}main(); \ No newline at end of file +const a827_0x3073=['num','info','createPdfKitDocument','header','query','update','join','%s%d.%s','argv','rimraf','body','AnalyticExtractedReport','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','Setting','zip-dir','pdf','name','Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s','split','Empty','zip','finish','QueryTypes','path','startDate','sequelize','createWriteStream','pdfmake/src/printer','SELECT','content','each','moment','basename','../../mysqldb','tableHeader','splitSizePdf','.pdf','push','length','util','mkdirSync','then','/fonts/Roboto-Medium.ttf','existsSync','findOne','%s.%s','PDF','endDate','error','dbH','analytics','toString','%s\x20limit\x20%d\x20OFFSET\x20%d','savename','end','format','undefined','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','lodash','pipe','landscape','err','dirname'];(function(_0x303036,_0x3073ce){const _0x7bdf=function(_0x39c300){while(--_0x39c300){_0x303036['push'](_0x303036['shift']());}};_0x7bdf(++_0x3073ce);}(a827_0x3073,0x64));const a827_0x7bdf=function(_0x303036,_0x3073ce){_0x303036=_0x303036-0x0;let _0x7bdf=a827_0x3073[_0x303036];return _0x7bdf;};const _0x1293c0=a827_0x7bdf;'use strict';const _=require(_0x1293c0('0x15')),fs=require('fs'),util=require(_0x1293c0('0x2')),path=require(_0x1293c0('0x31')),moment=require(_0x1293c0('0x39')),PdfPrinter=require(_0x1293c0('0x35')),zipdir=require(_0x1293c0('0x28')),rimraf=require(_0x1293c0('0x23')),db=require('../../mysqldb')['db'],dbH=require(_0x1293c0('0x3b'))[_0x1293c0('0xc')],logger=require('../../config/logger')(_0x1293c0('0xd')),EXTRACTED_REPORT_ID=Number(process[_0x1293c0('0x22')][0x2]),QUERY=process[_0x1293c0('0x22')][0x3],PATH=process[_0x1293c0('0x22')][0x4],NAME=process[_0x1293c0('0x22')][0x5],FORMAT='MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a';let _extractedReport;function analyticExtractedReport(_0x39c300,_0x4e28c7){const _0x3138b7=_0x1293c0,_0x4e448d={'status':_0x39c300},_0xc6c2fa={'where':{'id':EXTRACTED_REPORT_ID}};return _0x4e28c7&&(_0x4e448d[_0x3138b7('0x10')]=_0x4e28c7),db[_0x3138b7('0x25')][_0x3138b7('0x1f')](_0x4e448d,_0xc6c2fa);}function getHeader(_0x336e07){const _0x132e47=_0x1293c0,_0x2e1656=[];for(const _0x55ac3b in _0x336e07){typeof _0x336e07[_0x55ac3b]!==_0x132e47('0x13')&&_0x2e1656[_0x132e47('0x0')]({'text':_0x55ac3b,'style':_0x132e47('0x3c')});}return _0x2e1656;}function extractReport(_0x3b4967){const _0x4d574e=_0x1293c0;let _0x4dd4a9=0x1388,_0x2a7131;if(!_0x3b4967[0x0][_0x4d574e('0x1a')])return analyticExtractedReport(_0x4d574e('0x2d'));const _0x23a00=[];let _0x4a4498=0x0,_0x13f08f=!![];const _0x50b826=path[_0x4d574e('0x19')](PATH),_0x3dd6c5=path[_0x4d574e('0x3a')](PATH,_0x4d574e('0x3e'));let _0x248dc5=![];const _0x3d51cf=[];return db[_0x4d574e('0x27')][_0x4d574e('0x7')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x4d574e('0x2c'),_0x4d574e('0x3d')]})['then'](function(_0x1d0d72){const _0x526642=_0x4d574e;_0x1d0d72&&(_0x2a7131=_0x1d0d72,_0x4dd4a9=_0x2a7131[_0x526642('0x3d')]||0x3e8);})['then'](function(){const _0x26e7c7=_0x4d574e;if(_0x3b4967&&_0x3b4967[_0x26e7c7('0x1')]){let _0xb02c30=_0x3b4967[0x0]['num']%(_0x4a4498+_0x4dd4a9);if(_0x2a7131[_0x26e7c7('0x2c')])for(;_0x13f08f;_0x4a4498+=_0x4dd4a9,_0xb02c30=_0x3b4967[0x0][_0x26e7c7('0x1a')]%(_0x4a4498+_0x4dd4a9)){(_0xb02c30==0x0||_0xb02c30==_0x3b4967[0x0][_0x26e7c7('0x1a')])&&(_0x13f08f=![]),_0x23a00[_0x26e7c7('0x0')](dbH[_0x26e7c7('0x33')]['query'](util[_0x26e7c7('0x12')](_0x26e7c7('0xf'),QUERY,_0x4dd4a9,_0x4a4498),{'type':dbH['sequelize']['QueryTypes'][_0x26e7c7('0x36')]}));}else _0x23a00[_0x26e7c7('0x0')](dbH[_0x26e7c7('0x33')][_0x26e7c7('0x1e')](QUERY,{'type':dbH[_0x26e7c7('0x33')]['QueryTypes'][_0x26e7c7('0x36')]}));}return _0x248dc5=_0x2a7131['split']&&_0x23a00[_0x26e7c7('0x1')]>0x1,!fs[_0x26e7c7('0x6')](path['join'](_0x50b826,_0x3dd6c5))&&_0x248dc5&&fs[_0x26e7c7('0x3')](path[_0x26e7c7('0x20')](_0x50b826,_0x3dd6c5)),Promise[_0x26e7c7('0x38')](_0x23a00,function(_0x35fcb7){const _0x2c6c8d=_0x26e7c7;_0x3d51cf[_0x2c6c8d('0x0')](_0x35fcb7);});})['then'](function(){const _0x13fa55=_0x4d574e;return Promise[_0x13fa55('0x38')](_0x23a00,function(_0x234d18,_0x443e03){const _0x3c77e4=_0x13fa55;let _0x11374b;const _0x2b4b92=util[_0x3c77e4('0x12')](_0x3c77e4('0x2b'),NAME,_extractedReport[_0x3c77e4('0x2a')],moment(_extractedReport[_0x3c77e4('0x32')])['format'](FORMAT),moment(_extractedReport[_0x3c77e4('0xa')])[_0x3c77e4('0x12')](FORMAT)),_0x5e86a7={'pageSize':'A4','pageOrientation':_0x3c77e4('0x17'),'content':[{'text':_0x2b4b92,'style':_0x3c77e4('0x1d')}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':'black'}}},_0x23db04={'headerRows':0x1,'body':[]};_0x23db04[_0x3c77e4('0x24')][_0x3c77e4('0x0')](getHeader(_0x234d18[0x0]));let _0x39d98f;for(let _0x39a216=0x0;_0x39a216<_0x234d18[_0x3c77e4('0x1')];_0x39a216+=0x1){_0x39d98f=[];for(const _0x11d741 in _0x234d18[_0x39a216]){typeof _0x234d18[_0x39a216][_0x11d741]!=='undefined'&&_0x39d98f['push'](_0x234d18[_0x39a216][_0x11d741]?_[_0x3c77e4('0xe')](_0x234d18[_0x39a216][_0x11d741]):'');}_0x23db04['body'][_0x3c77e4('0x0')](_0x39d98f);}return _0x5e86a7[_0x3c77e4('0x37')][_0x3c77e4('0x0')]({'table':_0x23db04}),new Promise(function(_0x3a4998,_0x38fc70){const _0x4b2e1d=_0x3c77e4,_0x17f1fd=new PdfPrinter({'Roboto':{'normal':__dirname+'/fonts/Roboto-Regular.ttf','bold':__dirname+_0x4b2e1d('0x5'),'italics':__dirname+'/fonts/Roboto-Italic.ttf','bolditalics':__dirname+'/fonts/Roboto-MediumItalic.ttf'}}),_0x475094=_0x17f1fd[_0x4b2e1d('0x1c')](_0x5e86a7);_0x248dc5?_0x11374b=path[_0x4b2e1d('0x20')](_0x50b826,_0x3dd6c5,util[_0x4b2e1d('0x12')](_0x4b2e1d('0x21'),_0x3dd6c5,_0x443e03,_0x4b2e1d('0x29'))):_0x11374b=path[_0x4b2e1d('0x20')](_0x50b826,util[_0x4b2e1d('0x12')](_0x4b2e1d('0x8'),_0x3dd6c5,'pdf'));const _0x4d1522=_0x475094[_0x4b2e1d('0x16')](fs[_0x4b2e1d('0x34')](_0x11374b));_0x4d1522['on'](_0x4b2e1d('0x2f'),function(){_0x3a4998();}),_0x4d1522['on'](_0x4b2e1d('0xb'),function(_0x36bab5){const _0x34e29d=_0x4b2e1d;console['log'](_0x34e29d('0x18'),_0x36bab5),_0x38fc70(_0x36bab5);}),_0x475094[_0x4b2e1d('0x11')]();});});})[_0x4d574e('0x4')](function(){if(_0x248dc5)return new Promise(function(_0x105193,_0x44ad4f){const _0x540a74=a827_0x7bdf;zipdir(path[_0x540a74('0x20')](_0x50b826,_0x3dd6c5),{'saveTo':path[_0x540a74('0x20')](_0x50b826,util['format'](_0x540a74('0x8'),_0x3dd6c5,_0x540a74('0x2e')))},function(_0x90c865){_0x90c865?_0x44ad4f(_0x90c865):_0x105193();});});})['then'](function(){_0x248dc5&&rimraf(path['join'](_0x50b826,_0x3dd6c5),function(){});})[_0x4d574e('0x4')](function(){const _0x5882df=_0x4d574e;return logger[_0x5882df('0x1b')](util['format']('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,'CSV')),analyticExtractedReport('Completed',_0x248dc5?util[_0x5882df('0x12')](_0x5882df('0x8'),_0x3dd6c5,_0x248dc5?_0x5882df('0x2e'):'pdf'):null);});}function main(){const _0x2e53e1=_0x1293c0;return logger[_0x2e53e1('0x1b')](util['format']('Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,_0x2e53e1('0x9'))),db[_0x2e53e1('0x25')]['findOne']({'where':{'id':EXTRACTED_REPORT_ID}})[_0x2e53e1('0x4')](function(_0x1e5fed){const _0x341d4b=_0x2e53e1;return _extractedReport=_0x1e5fed,dbH[_0x341d4b('0x33')][_0x341d4b('0x1e')](util[_0x341d4b('0x12')](_0x341d4b('0x26'),QUERY),{'type':dbH[_0x341d4b('0x33')][_0x341d4b('0x30')][_0x341d4b('0x36')]});})['then'](extractReport)['catch'](function(_0x157e6c){const _0x3f6fdc=_0x2e53e1;return logger['info'](util[_0x3f6fdc('0x12')](_0x3f6fdc('0x14'),EXTRACTED_REPORT_ID,_0x3f6fdc('0x9')),util['inspect'](_0x157e6c,{'showHidden':![],'depth':null})),analyticExtractedReport('Failed');});}main(); \ No newline at end of file diff --git a/server/components/export/xlsx.js b/server/components/export/xlsx.js index a2db3ee..9072f05 100644 --- a/server/components/export/xlsx.js +++ b/server/components/export/xlsx.js @@ -1 +1 @@ -const a828_0xc24f=['num','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','.xlsx','dirname','inspect','writeFileSync','binary','push','mkdirSync','splitSizeXlsx','update','xlsx','argv','%s.%s','json2xls','util','AnalyticExtractedReport','Setting','info','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','findOne','XLSX','analytics','Empty','SELECT','QueryTypes','../../mysqldb','%s%d.%s','savename','dbH','then','zip','rimraf','%s\x20limit\x20%d\x20OFFSET\x20%d','each','format','join','query','sequelize','split','existsSync','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','../../config/logger','length','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format'];(function(_0x56d1b9,_0xc24ff1){const _0x1356d6=function(_0x5f14b7){while(--_0x5f14b7){_0x56d1b9['push'](_0x56d1b9['shift']());}};_0x1356d6(++_0xc24ff1);}(a828_0xc24f,0x14b));const a828_0x1356=function(_0x56d1b9,_0xc24ff1){_0x56d1b9=_0x56d1b9-0x0;let _0x1356d6=a828_0xc24f[_0x56d1b9];return _0x1356d6;};const _0x199ba2=a828_0x1356;'use strict';const util=require(_0x199ba2('0x2c')),path=require('path'),fs=require('fs'),json2xls=require(_0x199ba2('0x2b')),zipdir=require('zip-dir'),rimraf=require(_0x199ba2('0x10')),db=require(_0x199ba2('0xa'))['db'],dbH=require(_0x199ba2('0xa'))[_0x199ba2('0xd')],logger=require(_0x199ba2('0x1a'))(_0x199ba2('0x6')),EXTRACTED_REPORT_ID=Number(process['argv'][0x2]),QUERY=process[_0x199ba2('0x29')][0x3],PATH=process[_0x199ba2('0x29')][0x4];function analyticExtractedReport(_0x5f14b7,_0x328b1b){const _0x17cffd=_0x199ba2,_0x1da340={'status':_0x5f14b7},_0x4c3175={'where':{'id':EXTRACTED_REPORT_ID}};return _0x328b1b&&(_0x1da340[_0x17cffd('0xc')]=_0x328b1b),db[_0x17cffd('0x0')][_0x17cffd('0x27')](_0x1da340,_0x4c3175);}function main(){const _0x49e65b=_0x199ba2;let _0x44b03e=0x1388,_0x169415;return logger[_0x49e65b('0x2')](util[_0x49e65b('0x13')](_0x49e65b('0x19'),EXTRACTED_REPORT_ID,_0x49e65b('0x5'))),db[_0x49e65b('0x1')][_0x49e65b('0x4')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x49e65b('0x17'),_0x49e65b('0x26')]})[_0x49e65b('0xe')](function(_0x1f7e31){const _0x37dab0=_0x49e65b;_0x1f7e31&&(_0x169415=_0x1f7e31,_0x44b03e=_0x169415[_0x37dab0('0x26')]||0x1388);})[_0x49e65b('0xe')](function(){const _0xb34c73=_0x49e65b;return dbH[_0xb34c73('0x16')][_0xb34c73('0x15')](util[_0xb34c73('0x13')](_0xb34c73('0x1e'),QUERY),{'type':dbH[_0xb34c73('0x16')][_0xb34c73('0x9')][_0xb34c73('0x8')]});})[_0x49e65b('0xe')](function(_0x3bb7fa){const _0x2541ce=_0x49e65b;if(!_0x3bb7fa[0x0]['num'])return analyticExtractedReport(_0x2541ce('0x7'));const _0x5ca0c9=[];let _0x3d6aa8=0x0,_0xb1092a=!![];if(_0x169415[_0x2541ce('0x17')]){if(_0x3bb7fa&&_0x3bb7fa[_0x2541ce('0x1b')]){let _0x568995=_0x3bb7fa[0x0][_0x2541ce('0x1d')]%(_0x3d6aa8+_0x44b03e);for(;_0xb1092a;_0x3d6aa8+=_0x44b03e,_0x568995=_0x3bb7fa[0x0][_0x2541ce('0x1d')]%(_0x3d6aa8+_0x44b03e)){(_0x568995==0x0||_0x568995==_0x3bb7fa[0x0]['num'])&&(_0xb1092a=![]),_0x5ca0c9[_0x2541ce('0x24')](dbH[_0x2541ce('0x16')]['query'](util['format'](_0x2541ce('0x11'),QUERY,_0x44b03e,_0x3d6aa8),{'type':dbH[_0x2541ce('0x16')][_0x2541ce('0x9')]['SELECT']}));}}}else _0x5ca0c9[_0x2541ce('0x24')](dbH['sequelize'][_0x2541ce('0x15')](QUERY,{'type':dbH[_0x2541ce('0x16')][_0x2541ce('0x9')]['SELECT']}));const _0x4a95ef=path[_0x2541ce('0x20')](PATH),_0x2ff3b6=path['basename'](PATH,_0x2541ce('0x1f')),_0x460391=_0x169415['split']&&_0x5ca0c9['length']>0x1,_0x36b886=[];return!fs[_0x2541ce('0x18')](path[_0x2541ce('0x14')](_0x4a95ef,_0x2ff3b6))&&_0x460391&&fs[_0x2541ce('0x25')](path[_0x2541ce('0x14')](_0x4a95ef,_0x2ff3b6)),Promise[_0x2541ce('0x12')](_0x5ca0c9,function(_0x1fa97f){const _0x1b5a70=_0x2541ce;_0x36b886[_0x1b5a70('0x24')](_0x1fa97f);})[_0x2541ce('0xe')](function(){const _0x3fc146=_0x2541ce;for(let _0x54cd26=0x0;_0x54cd26<_0x36b886[_0x3fc146('0x1b')];_0x54cd26+=0x1){let _0x163b6a;const _0xc29a0b=_0x36b886[_0x54cd26];_0x460391?_0x163b6a=path[_0x3fc146('0x14')](_0x4a95ef,_0x2ff3b6,util['format'](_0x3fc146('0xb'),_0x2ff3b6,_0x54cd26,_0x3fc146('0x28'))):_0x163b6a=path['join'](_0x4a95ef,util[_0x3fc146('0x13')](_0x3fc146('0x2a'),_0x2ff3b6,_0x3fc146('0x28'))),fs[_0x3fc146('0x22')](_0x163b6a,json2xls(_0xc29a0b),_0x3fc146('0x23'));}})[_0x2541ce('0xe')](function(){const _0x7c2471=_0x2541ce;_0x460391&&(zipdir(path[_0x7c2471('0x14')](_0x4a95ef,_0x2ff3b6),{'saveTo':path['join'](_0x4a95ef,util['format'](_0x7c2471('0x2a'),_0x2ff3b6,_0x7c2471('0xf')))},function(){}),rimraf(path[_0x7c2471('0x14')](_0x4a95ef,_0x2ff3b6),function(){}));})[_0x2541ce('0xe')](function(){const _0x5ca28b=_0x2541ce;return logger['info'](util['format'](_0x5ca28b('0x3'),EXTRACTED_REPORT_ID,_0x5ca28b('0x5'))),analyticExtractedReport('Completed',_0x460391?util[_0x5ca28b('0x13')](_0x5ca28b('0x2a'),_0x2ff3b6,_0x460391?_0x5ca28b('0xf'):_0x5ca28b('0x28')):null);});})['catch'](function(_0x4e3518){const _0x4f51e2=_0x49e65b;return logger[_0x4f51e2('0x2')](util[_0x4f51e2('0x13')](_0x4f51e2('0x1c'),EXTRACTED_REPORT_ID,_0x4f51e2('0x5')),util[_0x4f51e2('0x21')](_0x4e3518,{'showHidden':![],'depth':null})),analyticExtractedReport('Failed');});}main(); \ No newline at end of file +const a828_0x596f=['splitSizeXlsx','Completed','xlsx','path','length','inspect','zip-dir','then','info','SELECT','sequelize','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','split','XLSX','existsSync','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','update','findOne','format','QueryTypes','%s%d.%s','%s\x20limit\x20%d\x20OFFSET\x20%d','%s.%s','push','num','zip','join','mkdirSync','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','savename','each','argv','dirname','Failed','Setting','dbH','../../mysqldb','binary','.xlsx','query','analytics'];(function(_0x4fc2e1,_0x596f7d){const _0x3fc9e6=function(_0x22a17f){while(--_0x22a17f){_0x4fc2e1['push'](_0x4fc2e1['shift']());}};_0x3fc9e6(++_0x596f7d);}(a828_0x596f,0x167));const a828_0x3fc9=function(_0x4fc2e1,_0x596f7d){_0x4fc2e1=_0x4fc2e1-0x0;let _0x3fc9e6=a828_0x596f[_0x4fc2e1];return _0x3fc9e6;};const _0x551d10=a828_0x3fc9;'use strict';const util=require('util'),path=require(_0x551d10('0x16')),fs=require('fs'),json2xls=require('json2xls'),zipdir=require(_0x551d10('0x19')),rimraf=require('rimraf'),db=require(_0x551d10('0xe'))['db'],dbH=require(_0x551d10('0xe'))[_0x551d10('0xd')],logger=require('../../config/logger')(_0x551d10('0x12')),EXTRACTED_REPORT_ID=Number(process[_0x551d10('0x9')][0x2]),QUERY=process[_0x551d10('0x9')][0x3],PATH=process[_0x551d10('0x9')][0x4];function analyticExtractedReport(_0x22a17f,_0x7efbef){const _0x26f6d4=_0x551d10,_0x503c61={'status':_0x22a17f},_0x1828b3={'where':{'id':EXTRACTED_REPORT_ID}};return _0x7efbef&&(_0x503c61[_0x26f6d4('0x7')]=_0x7efbef),db['AnalyticExtractedReport'][_0x26f6d4('0x24')](_0x503c61,_0x1828b3);}function main(){const _0x2cb396=_0x551d10;let _0x5e3354=0x1388,_0x2d0fe4;return logger[_0x2cb396('0x1b')](util['format'](_0x2cb396('0x1e'),EXTRACTED_REPORT_ID,_0x2cb396('0x21'))),db[_0x2cb396('0xc')][_0x2cb396('0x25')]({'where':{'id':0x1},'raw':!![],'attributes':['id','split',_0x2cb396('0x13')]})[_0x2cb396('0x1a')](function(_0x2fbdb2){const _0x102e98=_0x2cb396;_0x2fbdb2&&(_0x2d0fe4=_0x2fbdb2,_0x5e3354=_0x2d0fe4[_0x102e98('0x13')]||0x1388);})[_0x2cb396('0x1a')](function(){const _0x24d3df=_0x2cb396;return dbH[_0x24d3df('0x1d')][_0x24d3df('0x11')](util[_0x24d3df('0x26')](_0x24d3df('0x23'),QUERY),{'type':dbH[_0x24d3df('0x1d')][_0x24d3df('0x27')][_0x24d3df('0x1c')]});})[_0x2cb396('0x1a')](function(_0x6b7d9d){const _0x1b7094=_0x2cb396;if(!_0x6b7d9d[0x0][_0x1b7094('0x2')])return analyticExtractedReport('Empty');const _0x11fd3e=[];let _0x299f40=0x0,_0x2940ff=!![];if(_0x2d0fe4[_0x1b7094('0x20')]){if(_0x6b7d9d&&_0x6b7d9d[_0x1b7094('0x17')]){let _0x5d2a62=_0x6b7d9d[0x0][_0x1b7094('0x2')]%(_0x299f40+_0x5e3354);for(;_0x2940ff;_0x299f40+=_0x5e3354,_0x5d2a62=_0x6b7d9d[0x0][_0x1b7094('0x2')]%(_0x299f40+_0x5e3354)){(_0x5d2a62==0x0||_0x5d2a62==_0x6b7d9d[0x0][_0x1b7094('0x2')])&&(_0x2940ff=![]),_0x11fd3e['push'](dbH['sequelize'][_0x1b7094('0x11')](util['format'](_0x1b7094('0x29'),QUERY,_0x5e3354,_0x299f40),{'type':dbH[_0x1b7094('0x1d')]['QueryTypes'][_0x1b7094('0x1c')]}));}}}else _0x11fd3e[_0x1b7094('0x1')](dbH[_0x1b7094('0x1d')][_0x1b7094('0x11')](QUERY,{'type':dbH[_0x1b7094('0x1d')][_0x1b7094('0x27')]['SELECT']}));const _0x18fab2=path[_0x1b7094('0xa')](PATH),_0x51fb13=path['basename'](PATH,_0x1b7094('0x10')),_0x42c277=_0x2d0fe4[_0x1b7094('0x20')]&&_0x11fd3e['length']>0x1,_0x1a8341=[];return!fs[_0x1b7094('0x22')](path['join'](_0x18fab2,_0x51fb13))&&_0x42c277&&fs[_0x1b7094('0x5')](path[_0x1b7094('0x4')](_0x18fab2,_0x51fb13)),Promise[_0x1b7094('0x8')](_0x11fd3e,function(_0xeff918){const _0x267d05=_0x1b7094;_0x1a8341[_0x267d05('0x1')](_0xeff918);})['then'](function(){const _0x1eb269=_0x1b7094;for(let _0x32fde5=0x0;_0x32fde5<_0x1a8341['length'];_0x32fde5+=0x1){let _0x242f7a;const _0x1d5eb0=_0x1a8341[_0x32fde5];_0x42c277?_0x242f7a=path['join'](_0x18fab2,_0x51fb13,util[_0x1eb269('0x26')](_0x1eb269('0x28'),_0x51fb13,_0x32fde5,_0x1eb269('0x15'))):_0x242f7a=path[_0x1eb269('0x4')](_0x18fab2,util[_0x1eb269('0x26')](_0x1eb269('0x0'),_0x51fb13,_0x1eb269('0x15'))),fs['writeFileSync'](_0x242f7a,json2xls(_0x1d5eb0),_0x1eb269('0xf'));}})['then'](function(){const _0x584898=_0x1b7094;_0x42c277&&(zipdir(path['join'](_0x18fab2,_0x51fb13),{'saveTo':path[_0x584898('0x4')](_0x18fab2,util[_0x584898('0x26')](_0x584898('0x0'),_0x51fb13,_0x584898('0x3')))},function(){}),rimraf(path[_0x584898('0x4')](_0x18fab2,_0x51fb13),function(){}));})[_0x1b7094('0x1a')](function(){const _0x23e496=_0x1b7094;return logger[_0x23e496('0x1b')](util[_0x23e496('0x26')](_0x23e496('0x1f'),EXTRACTED_REPORT_ID,'XLSX')),analyticExtractedReport(_0x23e496('0x14'),_0x42c277?util[_0x23e496('0x26')](_0x23e496('0x0'),_0x51fb13,_0x42c277?_0x23e496('0x3'):_0x23e496('0x15')):null);});})['catch'](function(_0x23bd8f){const _0x175c56=_0x2cb396;return logger['info'](util['format'](_0x175c56('0x6'),EXTRACTED_REPORT_ID,_0x175c56('0x21')),util[_0x175c56('0x18')](_0x23bd8f,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x175c56('0xb'));});}main(); \ No newline at end of file diff --git a/server/components/extensions/rewrite.js b/server/components/extensions/rewrite.js index 0fbd2cc..6a27e69 100644 --- a/server/components/extensions/rewrite.js +++ b/server/components/extensions/rewrite.js @@ -1 +1 @@ -const a829_0x4e06=['GotoIfTime','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','format','sequelize','appType','CDR(prefix)=noprefix','extension','ExecIf','playback','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','literal','${EXTEN}','app','CDR(destination)=','transaction','last','push','find','context','lodash','$[${XCALLY-MOTION-ANSWER}=0]?Answer','util','XCALLY-MOTION-ANSWER=1','map','CDR(tag)=','createdAt','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','length','CDR(type)=%s','wav','tag','callerID','VoiceExtension','destroy','exten','intervals','queue','then','XCALLY-MOTION-PROGRESS=1','interval','outbound','findAll','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','*,*,*,*','Interval','CDR(prefix)=${EXTEN:0:','toLowerCase','models','rewrite','recordingFormat','CAST(priority\x20AS\x20UNSIGNED)','uniq','error','VoiceExtensionId','):Goto(','IntervalId','cutdigits','answer','catch','Set','${EXTEN:','extensions','undefined','filter','priority','indexOf','concat','Hangup','type',',${EXTEN},','bulkCreate','_XCALLY_MIXMONITOR_FORMAT='];(function(_0x308589,_0x4e060f){const _0x50235c=function(_0x34c71a){while(--_0x34c71a){_0x308589['push'](_0x308589['shift']());}};_0x50235c(++_0x4e060f);}(a829_0x4e06,0x1ba));const a829_0x5023=function(_0x308589,_0x4e060f){_0x308589=_0x308589-0x0;let _0x50235c=a829_0x4e06[_0x308589];return _0x50235c;};const _0x477526=a829_0x5023;'use strict';const _=require(_0x477526('0x9')),util=require(_0x477526('0xb')),{Op}=require(_0x477526('0x41'));function rewrite(_0x34c71a,_0x9ac046){const _0x5df8ae=_0x477526,_0x538cea=this;return _0x34c71a[_0x5df8ae('0x25')][_0x5df8ae('0x22')][_0x5df8ae('0x1f')]({'raw':!![]})[_0x5df8ae('0x1b')](function(_0x397dd1){const _0x85b0cf=_0x5df8ae;return _0x538cea['intervals']=_0x397dd1,_0x34c71a[_0x85b0cf('0x25')]['VoiceExtension'][_0x85b0cf('0x1f')]({'where':{'IntervalId':_0x9ac046[_0x85b0cf('0x2d')]},'raw':!![]});})[_0x5df8ae('0x1b')](function(_0x1af274){const _0x8a29c1=_0x5df8ae;return _0x34c71a[_0x8a29c1('0x25')][_0x8a29c1('0x16')][_0x8a29c1('0x1f')]({'where':{'exten':{[Op['in']]:_[_0x8a29c1('0x29')](_['map'](_0x1af274,_0x8a29c1('0x18')))}},'order':_0x34c71a[_0x8a29c1('0x0')](_0x8a29c1('0x28')),'raw':!![]});})[_0x5df8ae('0x1b')](function(_0x4ff92b){const _0x4935b3=_0x5df8ae,_0x551e80=_[_0x4935b3('0x35')](_0x4ff92b,{'priority':'1'}),_0x5426cc=_[_0x4935b3('0x35')](_0x4ff92b,{'isApp':0x1}),_0x1b27f7=_['groupBy'](_0x5426cc,'exten'),_0x3ad287=[_0x4935b3('0x1a'),_0x4935b3('0x46')],_0x327271=[];let _0xe1e5c=[];for(const _0x2d3274 in _0x1b27f7){if(typeof _0x1b27f7[_0x2d3274]!==_0x4935b3('0x34')){_0x538cea[_0x4935b3('0x36')]=0x2,_0x538cea[_0x4935b3('0x33')]=[],_0x538cea[_0x4935b3('0x44')]=_[_0x4935b3('0x7')](_0x551e80,{'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')]}),_0x538cea[_0x4935b3('0x33')]['push']({'type':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')],'app':_0x4935b3('0x31'),'appdata':util[_0x4935b3('0x40')](_0x4935b3('0x12'),_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')]),'context':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x8')],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x538cea[_0x4935b3('0x36')]++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]});if(_0x1b27f7[_0x2d3274][0x0]['type']===_0x4935b3('0x1e')){_0x538cea[_0x4935b3('0x44')]&&_0x538cea[_0x4935b3('0x33')][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')],'app':_0x4935b3('0x31'),'appdata':_0x4935b3('0x3')+(_0x538cea[_0x4935b3('0x44')]['cutdigits']?_0x4935b3('0x32')+_0x538cea[_0x4935b3('0x44')][_0x4935b3('0x2e')]+'}':_0x4935b3('0x1')),'context':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x8')],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x538cea[_0x4935b3('0x36')]++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]});_0x538cea[_0x4935b3('0x33')][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0]['type'],'app':_0x4935b3('0x31'),'appdata':'CDR(routeid)='+_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')],'context':_0x1b27f7[_0x2d3274][0x0]['context'],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x538cea[_0x4935b3('0x36')]++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]});const _0x17cdd1=_0x538cea['priority']++;_0x538cea[_0x4935b3('0x33')][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')],'app':_0x4935b3('0x45'),'appdata':_0x4935b3('0x3f')+(_0x17cdd1+0x2)+_0x4935b3('0x2c')+(_0x17cdd1+0x1)+')','context':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x8')],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x17cdd1,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0]['VoiceExtensionId']}),_0x538cea['extension']&&_0x538cea[_0x4935b3('0x33')]['push']({'type':_0x1b27f7[_0x2d3274][0x0]['type'],'app':'Set','appdata':_0x538cea[_0x4935b3('0x44')][_0x4935b3('0x2e')]?_0x4935b3('0x23')+_0x538cea[_0x4935b3('0x44')][_0x4935b3('0x2e')]+'}':_0x4935b3('0x43'),'context':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x8')],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x538cea['priority']++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]}),_0x538cea[_0x4935b3('0x33')]['push']({'type':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')],'app':_0x4935b3('0x31'),'appdata':'outboundrouteid='+_0x1b27f7[_0x2d3274][0x0]['VoiceExtensionId'],'context':_0x1b27f7[_0x2d3274][0x0]['context'],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x538cea[_0x4935b3('0x36')]++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]}),_0x538cea['extension']&&typeof _0x538cea[_0x4935b3('0x44')][_0x4935b3('0x27')]!=='undefined'&&_0x538cea['extension'][_0x4935b3('0x27')]!=='none'&&(_0x538cea[_0x4935b3('0x33')][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')],'app':'Set','appdata':_0x4935b3('0x47'),'context':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x8')],'exten':_0x1b27f7[_0x2d3274][0x0]['exten'],'priority':_0x538cea['priority']++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]}),_0x538cea['extensions'][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0]['type'],'app':_0x4935b3('0x31'),'appdata':_0x4935b3('0x3d')+_0x538cea[_0x4935b3('0x44')]['recordingFormat']||_0x4935b3('0x13'),'context':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x8')],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x538cea[_0x4935b3('0x36')]++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]}));}_0x538cea[_0x4935b3('0x33')][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')],'app':_0x4935b3('0x31'),'appdata':'XCALLY-MOTION-ANSWER=0','context':_0x1b27f7[_0x2d3274][0x0]['context'],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x538cea['priority']++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]}),_0x538cea['extensions'][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')],'app':_0x4935b3('0x31'),'appdata':'XCALLY-MOTION-PROGRESS=0','context':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x8')],'exten':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x18')],'priority':_0x538cea[_0x4935b3('0x36')]++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]}),_0x538cea['extensions'][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0]['type'],'app':_0x4935b3('0x31'),'appdata':'MONITOR_OPTIONS=ab','context':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x8')],'exten':_0x1b27f7[_0x2d3274][0x0]['exten'],'priority':_0x538cea[_0x4935b3('0x36')]++,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]});for(let _0x2ba476=0x0,_0x45dfe5=0x0;_0x2ba476<_0x1b27f7[_0x2d3274][_0x4935b3('0x11')];_0x2ba476+=0x1,_0x45dfe5=0x0){const _0x2d9184=_0x1b27f7[_0x2d3274][_0x2ba476];_0x2d9184['type']&&(_0x2d9184['type']=_0x2d9184[_0x4935b3('0x3a')][_0x4935b3('0x24')]());const _0x480f18=[],_0x54e981=[];delete _0x2d9184['id'],delete _0x2d9184[_0x4935b3('0xf')],delete _0x2d9184['updatedAt'];const _0x2f33c1=_0x2d9184[_0x4935b3('0x1d')]!==_0x4935b3('0x21')?[_0x2d9184[_0x4935b3('0x1d')]]:_0x2d9184[_0x4935b3('0x2d')]?_[_0x4935b3('0xd')](_[_0x4935b3('0x35')](_0x538cea[_0x4935b3('0x19')],{'IntervalId':_0x2d9184[_0x4935b3('0x2d')]}),_0x4935b3('0x1d')):[];typeof _0x2d9184['tag']!==_0x4935b3('0x34')&&(_0x2d9184[_0x4935b3('0x14')]&&_0x2d9184['tag']!=='--'&&_0x480f18[_0x4935b3('0x6')]({'type':_0x2d9184[_0x4935b3('0x3a')],'app':_0x4935b3('0x31'),'appdata':_0x4935b3('0xe')+_0x2d9184['tag'],'context':_0x2d9184[_0x4935b3('0x8')],'exten':_0x2d9184['exten'],'priority':_0x2f33c1[_0x4935b3('0x11')]+_0x538cea['priority']+_0x45dfe5++,'VoiceExtensionId':_0x2d9184['VoiceExtensionId']}));_0x2d9184[_0x4935b3('0x3a')]==='outbound'&&typeof _0x2d9184['callerID']!==_0x4935b3('0x34')&&(_0x2d9184[_0x4935b3('0x15')]?_0x480f18[_0x4935b3('0x6')]({'type':_0x2d9184['type'],'app':_0x4935b3('0x45'),'appdata':_0x4935b3('0x10')+_0x2d9184[_0x4935b3('0x15')]+')','context':_0x2d9184[_0x4935b3('0x8')],'exten':_0x2d9184['exten'],'priority':_0x2f33c1[_0x4935b3('0x11')]+_0x538cea['priority']+_0x45dfe5++,'VoiceExtensionId':_0x2d9184['VoiceExtensionId']}):_0x480f18[_0x4935b3('0x6')]({'type':_0x2d9184[_0x4935b3('0x3a')],'app':_0x4935b3('0x45'),'appdata':_0x4935b3('0x20'),'context':_0x2d9184[_0x4935b3('0x8')],'exten':_0x2d9184[_0x4935b3('0x18')],'priority':_0x2f33c1[_0x4935b3('0x11')]+_0x538cea[_0x4935b3('0x36')]+_0x45dfe5++,'VoiceExtensionId':_0x2d9184[_0x4935b3('0x2b')]}));typeof _0x2d9184[_0x4935b3('0x2f')]!==_0x4935b3('0x34')&&(_0x3ad287[_0x4935b3('0x37')](_0x2d9184[_0x4935b3('0x2')][_0x4935b3('0x24')]())>=0x0&&_0x2d9184[_0x4935b3('0x42')]!=='custom'&&(_0x2d9184[_0x4935b3('0x2f')]?(_0x480f18[_0x4935b3('0x6')]({'type':_0x2d9184[_0x4935b3('0x3a')],'app':_0x4935b3('0x45'),'appdata':_0x4935b3('0xa'),'context':_0x2d9184[_0x4935b3('0x8')],'exten':_0x2d9184[_0x4935b3('0x18')],'priority':_0x2f33c1[_0x4935b3('0x11')]+_0x538cea['priority']+_0x45dfe5++,'VoiceExtensionId':_0x2d9184[_0x4935b3('0x2b')]}),_0x480f18['push']({'type':_0x2d9184['type'],'app':_0x4935b3('0x31'),'appdata':_0x4935b3('0xc'),'context':_0x2d9184[_0x4935b3('0x8')],'exten':_0x2d9184[_0x4935b3('0x18')],'priority':_0x2f33c1[_0x4935b3('0x11')]+_0x538cea[_0x4935b3('0x36')]+_0x45dfe5++,'VoiceExtensionId':_0x2d9184[_0x4935b3('0x2b')]})):(_0x480f18[_0x4935b3('0x6')]({'type':_0x2d9184[_0x4935b3('0x3a')],'app':_0x4935b3('0x45'),'appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x2d9184[_0x4935b3('0x8')],'exten':_0x2d9184[_0x4935b3('0x18')],'priority':_0x2f33c1[_0x4935b3('0x11')]+_0x538cea[_0x4935b3('0x36')]+_0x45dfe5++,'VoiceExtensionId':_0x2d9184['VoiceExtensionId']}),_0x480f18[_0x4935b3('0x6')]({'type':_0x2d9184['type'],'app':'Set','appdata':_0x4935b3('0x1c'),'context':_0x2d9184[_0x4935b3('0x8')],'exten':_0x2d9184[_0x4935b3('0x18')],'priority':_0x2f33c1[_0x4935b3('0x11')]+_0x538cea['priority']+_0x45dfe5++,'VoiceExtensionId':_0x2d9184[_0x4935b3('0x2b')]}))));for(let _0xe9f2ed=0x0;_0xe9f2ed<_0x2f33c1['length'];_0xe9f2ed+=0x1){const _0x4cff54=_0x538cea[_0x4935b3('0x36')]+_0x2f33c1[_0x4935b3('0x11')],_0x31eb93=_0xe9f2ed===_0x2f33c1[_0x4935b3('0x11')]-0x1?_0x538cea[_0x4935b3('0x36')]+_0x480f18[_0x4935b3('0x11')]+_0x54e981[_0x4935b3('0x11')]+0x2:_0x538cea[_0x4935b3('0x36')]+_0xe9f2ed+0x1;_0x480f18['splice'](_0xe9f2ed,0x0,{'type':_0x2d9184[_0x4935b3('0x3a')],'app':_0x4935b3('0x3e'),'appdata':_0x2f33c1[_0xe9f2ed]+'?'+_0x2d9184['context']+_0x4935b3('0x3b')+_0x4cff54+':'+_0x2d9184['context']+_0x4935b3('0x3b')+_0x31eb93,'exten':_0x2d9184['exten'],'context':_0x2d9184[_0x4935b3('0x8')],'priority':_0x538cea[_0x4935b3('0x36')]+_0xe9f2ed,'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]});}_0x2d9184[_0x4935b3('0x36')]=_0x480f18[_0x4935b3('0x11')]?_[_0x4935b3('0x5')](_0x480f18)[_0x4935b3('0x36')]+0x1:_0x538cea[_0x4935b3('0x36')],_0x538cea[_0x4935b3('0x36')]=(_0x54e981[_0x4935b3('0x11')]?_[_0x4935b3('0x5')](_0x54e981)[_0x4935b3('0x36')]:_0x2d9184['priority'])+0x1,_0x538cea[_0x4935b3('0x33')]=_[_0x4935b3('0x38')](_0x538cea[_0x4935b3('0x33')],_0x480f18,[_0x2d9184],_0x54e981);}_0x538cea[_0x4935b3('0x33')][_0x4935b3('0x6')]({'type':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x3a')],'app':_0x4935b3('0x39'),'exten':_0x1b27f7[_0x2d3274][0x0]['exten'],'context':_0x1b27f7[_0x2d3274][0x0]['context'],'priority':_0x538cea[_0x4935b3('0x36')],'VoiceExtensionId':_0x1b27f7[_0x2d3274][0x0][_0x4935b3('0x2b')]}),_0x327271['push'](_0x1b27f7[_0x2d3274][0x0]['VoiceExtensionId']),_0xe1e5c=_[_0x4935b3('0x38')](_0xe1e5c,_0x538cea[_0x4935b3('0x33')]);}}return _0x34c71a[_0x4935b3('0x4')](function(_0x3ed65c){const _0x18b88c=_0x4935b3;return _0x34c71a[_0x18b88c('0x25')][_0x18b88c('0x16')][_0x18b88c('0x17')]({'where':{'VoiceExtensionId':{[Op['in']]:_0x327271}},'transaction':_0x3ed65c})[_0x18b88c('0x1b')](function(){const _0x25394c=_0x18b88c;return _0x34c71a['models']['VoiceExtension'][_0x25394c('0x3c')](_['sortBy'](_0xe1e5c,_0x25394c('0x36')),{'transaction':_0x3ed65c});});});})[_0x5df8ae('0x30')](function(_0x53ea47){const _0xed58a7=_0x5df8ae;console[_0xed58a7('0x2a')](_0x53ea47);});}exports[_0x477526('0x26')]=rewrite; \ No newline at end of file +const a829_0x5ae1=['CDR(prefix)=noprefix','last','find','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','error','Hangup','${EXTEN}','answer','filter','${EXTEN:','custom','lodash','map','cutdigits','format','appType','outbound','then','toLowerCase','indexOf','transaction',',${EXTEN},','XCALLY-MOTION-PROGRESS=0','ExecIf','push','recordingFormat','tag','extensions','destroy','queue','Set','sortBy','findAll','none','VoiceExtension','util','bulkCreate','):Goto(','app','CDR(tag)=','concat','VoiceExtensionId','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','priority','literal','interval','XCALLY-MOTION-ANSWER=0','CDR(routeid)=','splice','CDR(prefix)=${EXTEN:0:','undefined','length','rewrite','createdAt','context','type','CDR(destination)=','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','playback','outboundrouteid=','intervals','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','_XCALLY_MIXMONITOR_FORMAT=','extension','models','IntervalId','groupBy','exten','GotoIfTime','catch','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','callerID'];(function(_0x133c5a,_0x5ae1b2){const _0x59fbb7=function(_0x4b744f){while(--_0x4b744f){_0x133c5a['push'](_0x133c5a['shift']());}};_0x59fbb7(++_0x5ae1b2);}(a829_0x5ae1,0x1f1));const a829_0x59fb=function(_0x133c5a,_0x5ae1b2){_0x133c5a=_0x133c5a-0x0;let _0x59fbb7=a829_0x5ae1[_0x133c5a];return _0x59fbb7;};const _0x2a94ee=a829_0x59fb;'use strict';const _=require(_0x2a94ee('0x12')),util=require(_0x2a94ee('0x2a')),{Op}=require('sequelize');function rewrite(_0x4b744f,_0x48e220){const _0xf3ec44=_0x2a94ee,_0x55a227=this;return _0x4b744f[_0xf3ec44('0x47')]['Interval'][_0xf3ec44('0x27')]({'raw':!![]})[_0xf3ec44('0x18')](function(_0x327f95){const _0x39a09a=_0xf3ec44;return _0x55a227['intervals']=_0x327f95,_0x4b744f[_0x39a09a('0x47')][_0x39a09a('0x29')][_0x39a09a('0x27')]({'where':{'IntervalId':_0x48e220['IntervalId']},'raw':!![]});})[_0xf3ec44('0x18')](function(_0x591890){const _0x483a37=_0xf3ec44;return _0x4b744f[_0x483a37('0x47')][_0x483a37('0x29')][_0x483a37('0x27')]({'where':{'exten':{[Op['in']]:_['uniq'](_[_0x483a37('0x13')](_0x591890,_0x483a37('0x2')))}},'order':_0x4b744f[_0x483a37('0x33')]('CAST(priority\x20AS\x20UNSIGNED)'),'raw':!![]});})['then'](function(_0x3d5c69){const _0x5f33aa=_0xf3ec44,_0x2eb83e=_[_0x5f33aa('0xf')](_0x3d5c69,{'priority':'1'}),_0x23ad94=_[_0x5f33aa('0xf')](_0x3d5c69,{'isApp':0x1}),_0x43be65=_[_0x5f33aa('0x1')](_0x23ad94,'exten'),_0x355ada=[_0x5f33aa('0x24'),_0x5f33aa('0x41')],_0x2d5c31=[];let _0x492dc9=[];for(const _0x22575e in _0x43be65){if(typeof _0x43be65[_0x22575e]!==_0x5f33aa('0x39')){_0x55a227[_0x5f33aa('0x32')]=0x2,_0x55a227[_0x5f33aa('0x22')]=[],_0x55a227[_0x5f33aa('0x46')]=_[_0x5f33aa('0x9')](_0x2eb83e,{'exten':_0x43be65[_0x22575e][0x0]['exten']}),_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':util[_0x5f33aa('0x15')]('CDR(type)=%s',_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')]),'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]});if(_0x43be65[_0x22575e][0x0]['type']==='outbound'){_0x55a227[_0x5f33aa('0x46')]&&_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':_0x5f33aa('0x3f')+(_0x55a227[_0x5f33aa('0x46')][_0x5f33aa('0x14')]?_0x5f33aa('0x10')+_0x55a227[_0x5f33aa('0x46')]['cutdigits']+'}':_0x5f33aa('0xd')),'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]});_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':_0x5f33aa('0x36')+_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')],'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0]['VoiceExtensionId']});const _0x5a9261=_0x55a227[_0x5f33aa('0x32')]++;_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0]['type'],'app':_0x5f33aa('0x1e'),'appdata':_0x5f33aa('0x5')+(_0x5a9261+0x2)+_0x5f33aa('0x2c')+(_0x5a9261+0x1)+')','context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x5a9261,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]}),_0x55a227[_0x5f33aa('0x46')]&&_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':_0x55a227[_0x5f33aa('0x46')][_0x5f33aa('0x14')]?_0x5f33aa('0x38')+_0x55a227[_0x5f33aa('0x46')]['cutdigits']+'}':_0x5f33aa('0x7'),'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0]['VoiceExtensionId']}),_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':_0x5f33aa('0x42')+_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')],'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]}),_0x55a227[_0x5f33aa('0x46')]&&typeof _0x55a227['extension']['recordingFormat']!==_0x5f33aa('0x39')&&_0x55a227['extension'][_0x5f33aa('0x20')]!==_0x5f33aa('0x28')&&(_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':_0x5f33aa('0x31'),'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0]['exten'],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]}),_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':_0x5f33aa('0x45')+_0x55a227[_0x5f33aa('0x46')][_0x5f33aa('0x20')]||'wav','context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0]['exten'],'priority':_0x55a227['priority']++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0]['VoiceExtensionId']}));}_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':_0x5f33aa('0x35'),'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]}),_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0]['type'],'app':_0x5f33aa('0x25'),'appdata':_0x5f33aa('0x1d'),'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]}),_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':'MONITOR_OPTIONS=ab','context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'exten':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x2')],'priority':_0x55a227[_0x5f33aa('0x32')]++,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]});for(let _0x2f013a=0x0,_0x51af5a=0x0;_0x2f013a<_0x43be65[_0x22575e][_0x5f33aa('0x3a')];_0x2f013a+=0x1,_0x51af5a=0x0){const _0x8afc87=_0x43be65[_0x22575e][_0x2f013a];_0x8afc87[_0x5f33aa('0x3e')]&&(_0x8afc87[_0x5f33aa('0x3e')]=_0x8afc87[_0x5f33aa('0x3e')][_0x5f33aa('0x19')]());const _0x495f70=[],_0x28abc0=[];delete _0x8afc87['id'],delete _0x8afc87[_0x5f33aa('0x3c')],delete _0x8afc87['updatedAt'];const _0x21fa12=_0x8afc87[_0x5f33aa('0x34')]!=='*,*,*,*'?[_0x8afc87[_0x5f33aa('0x34')]]:_0x8afc87[_0x5f33aa('0x0')]?_[_0x5f33aa('0x13')](_[_0x5f33aa('0xf')](_0x55a227[_0x5f33aa('0x43')],{'IntervalId':_0x8afc87[_0x5f33aa('0x0')]}),'interval'):[];typeof _0x8afc87[_0x5f33aa('0x21')]!==_0x5f33aa('0x39')&&(_0x8afc87['tag']&&_0x8afc87['tag']!=='--'&&_0x495f70[_0x5f33aa('0x1f')]({'type':_0x8afc87[_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':_0x5f33aa('0x2e')+_0x8afc87[_0x5f33aa('0x21')],'context':_0x8afc87[_0x5f33aa('0x3d')],'exten':_0x8afc87[_0x5f33aa('0x2')],'priority':_0x21fa12[_0x5f33aa('0x3a')]+_0x55a227[_0x5f33aa('0x32')]+_0x51af5a++,'VoiceExtensionId':_0x8afc87[_0x5f33aa('0x30')]}));_0x8afc87['type']===_0x5f33aa('0x17')&&typeof _0x8afc87[_0x5f33aa('0x6')]!==_0x5f33aa('0x39')&&(_0x8afc87[_0x5f33aa('0x6')]?_0x495f70[_0x5f33aa('0x1f')]({'type':_0x8afc87[_0x5f33aa('0x3e')],'app':_0x5f33aa('0x1e'),'appdata':_0x5f33aa('0xa')+_0x8afc87[_0x5f33aa('0x6')]+')','context':_0x8afc87[_0x5f33aa('0x3d')],'exten':_0x8afc87[_0x5f33aa('0x2')],'priority':_0x21fa12[_0x5f33aa('0x3a')]+_0x55a227[_0x5f33aa('0x32')]+_0x51af5a++,'VoiceExtensionId':_0x8afc87['VoiceExtensionId']}):_0x495f70['push']({'type':_0x8afc87[_0x5f33aa('0x3e')],'app':_0x5f33aa('0x1e'),'appdata':_0x5f33aa('0x40'),'context':_0x8afc87[_0x5f33aa('0x3d')],'exten':_0x8afc87[_0x5f33aa('0x2')],'priority':_0x21fa12[_0x5f33aa('0x3a')]+_0x55a227[_0x5f33aa('0x32')]+_0x51af5a++,'VoiceExtensionId':_0x8afc87[_0x5f33aa('0x30')]}));typeof _0x8afc87['answer']!==_0x5f33aa('0x39')&&(_0x355ada[_0x5f33aa('0x1a')](_0x8afc87[_0x5f33aa('0x2d')][_0x5f33aa('0x19')]())>=0x0&&_0x8afc87[_0x5f33aa('0x16')]!==_0x5f33aa('0x11')&&(_0x8afc87[_0x5f33aa('0xe')]?(_0x495f70[_0x5f33aa('0x1f')]({'type':_0x8afc87['type'],'app':_0x5f33aa('0x1e'),'appdata':'$[${XCALLY-MOTION-ANSWER}=0]?Answer','context':_0x8afc87[_0x5f33aa('0x3d')],'exten':_0x8afc87[_0x5f33aa('0x2')],'priority':_0x21fa12[_0x5f33aa('0x3a')]+_0x55a227[_0x5f33aa('0x32')]+_0x51af5a++,'VoiceExtensionId':_0x8afc87[_0x5f33aa('0x30')]}),_0x495f70[_0x5f33aa('0x1f')]({'type':_0x8afc87['type'],'app':_0x5f33aa('0x25'),'appdata':'XCALLY-MOTION-ANSWER=1','context':_0x8afc87[_0x5f33aa('0x3d')],'exten':_0x8afc87[_0x5f33aa('0x2')],'priority':_0x21fa12['length']+_0x55a227[_0x5f33aa('0x32')]+_0x51af5a++,'VoiceExtensionId':_0x8afc87[_0x5f33aa('0x30')]})):(_0x495f70['push']({'type':_0x8afc87[_0x5f33aa('0x3e')],'app':_0x5f33aa('0x1e'),'appdata':_0x5f33aa('0x44'),'context':_0x8afc87[_0x5f33aa('0x3d')],'exten':_0x8afc87[_0x5f33aa('0x2')],'priority':_0x21fa12[_0x5f33aa('0x3a')]+_0x55a227['priority']+_0x51af5a++,'VoiceExtensionId':_0x8afc87[_0x5f33aa('0x30')]}),_0x495f70[_0x5f33aa('0x1f')]({'type':_0x8afc87[_0x5f33aa('0x3e')],'app':_0x5f33aa('0x25'),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x8afc87[_0x5f33aa('0x3d')],'exten':_0x8afc87[_0x5f33aa('0x2')],'priority':_0x21fa12[_0x5f33aa('0x3a')]+_0x55a227[_0x5f33aa('0x32')]+_0x51af5a++,'VoiceExtensionId':_0x8afc87['VoiceExtensionId']}))));for(let _0x4879e0=0x0;_0x4879e0<_0x21fa12[_0x5f33aa('0x3a')];_0x4879e0+=0x1){const _0x4047cc=_0x55a227[_0x5f33aa('0x32')]+_0x21fa12[_0x5f33aa('0x3a')],_0xb45aed=_0x4879e0===_0x21fa12[_0x5f33aa('0x3a')]-0x1?_0x55a227['priority']+_0x495f70[_0x5f33aa('0x3a')]+_0x28abc0['length']+0x2:_0x55a227[_0x5f33aa('0x32')]+_0x4879e0+0x1;_0x495f70[_0x5f33aa('0x37')](_0x4879e0,0x0,{'type':_0x8afc87[_0x5f33aa('0x3e')],'app':_0x5f33aa('0x3'),'appdata':_0x21fa12[_0x4879e0]+'?'+_0x8afc87[_0x5f33aa('0x3d')]+_0x5f33aa('0x1c')+_0x4047cc+':'+_0x8afc87['context']+',${EXTEN},'+_0xb45aed,'exten':_0x8afc87[_0x5f33aa('0x2')],'context':_0x8afc87[_0x5f33aa('0x3d')],'priority':_0x55a227[_0x5f33aa('0x32')]+_0x4879e0,'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]});}_0x8afc87[_0x5f33aa('0x32')]=_0x495f70[_0x5f33aa('0x3a')]?_[_0x5f33aa('0x8')](_0x495f70)[_0x5f33aa('0x32')]+0x1:_0x55a227[_0x5f33aa('0x32')],_0x55a227[_0x5f33aa('0x32')]=(_0x28abc0[_0x5f33aa('0x3a')]?_[_0x5f33aa('0x8')](_0x28abc0)[_0x5f33aa('0x32')]:_0x8afc87[_0x5f33aa('0x32')])+0x1,_0x55a227[_0x5f33aa('0x22')]=_[_0x5f33aa('0x2f')](_0x55a227['extensions'],_0x495f70,[_0x8afc87],_0x28abc0);}_0x55a227[_0x5f33aa('0x22')][_0x5f33aa('0x1f')]({'type':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3e')],'app':_0x5f33aa('0xc'),'exten':_0x43be65[_0x22575e][0x0]['exten'],'context':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x3d')],'priority':_0x55a227[_0x5f33aa('0x32')],'VoiceExtensionId':_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]}),_0x2d5c31[_0x5f33aa('0x1f')](_0x43be65[_0x22575e][0x0][_0x5f33aa('0x30')]),_0x492dc9=_['concat'](_0x492dc9,_0x55a227[_0x5f33aa('0x22')]);}}return _0x4b744f[_0x5f33aa('0x1b')](function(_0x225461){const _0x1d42de=_0x5f33aa;return _0x4b744f[_0x1d42de('0x47')][_0x1d42de('0x29')][_0x1d42de('0x23')]({'where':{'VoiceExtensionId':{[Op['in']]:_0x2d5c31}},'transaction':_0x225461})[_0x1d42de('0x18')](function(){const _0x569a2e=_0x1d42de;return _0x4b744f[_0x569a2e('0x47')][_0x569a2e('0x29')][_0x569a2e('0x2b')](_[_0x569a2e('0x26')](_0x492dc9,_0x569a2e('0x32')),{'transaction':_0x225461});});});})[_0xf3ec44('0x4')](function(_0x30c8c2){const _0x3343f6=_0xf3ec44;console[_0x3343f6('0xb')](_0x30c8c2);});}exports[_0x2a94ee('0x3b')]=rewrite; \ No newline at end of file diff --git a/server/components/import/cm/csv.js b/server/components/import/cm/csv.js index e6a4c2d..adb356c 100644 --- a/server/components/import/cm/csv.js +++ b/server/components/import/cm/csv.js @@ -1 +1 @@ -const a830_0x17b5=['firstName\x20not\x20specified!','email','isNil','keys','The\x20row\x20is\x20empty\x20or\x20the\x20number\x20of\x20parameters\x20does\x20not\x20match\x20the\x20columns!','inspect','CmList','NOW()','checkHopper','sequelize','select','updatedAt','argv','papaparse','data','contact:csv_','CampaignId','Missing\x20filepath\x20parameter!','null','isValid','BlackLists','Missing\x20ListId\x20parameter!','createdAt','cm_hopper_black','YYYY-MM-DD','squel','toString','phone\x20not\x20specified!','SIGINT','findAll','phone\x20IS\x20NOT\x20NULL','cm_hopper_final','get','phone','into','find','pick','duplicate','query','exit','deletedAt\x20IS\x20NULL','test','CSV\x20import\x20process\x20stopped!','where','length','util','VoiceQueue','field','Unable\x20to\x20delete\x20temp\x20file:','info','all','cmContact','\x20=\x20?','email\x20format\x20is\x20not\x20valid!','catch','message','Error\x20processing\x20rows\x20block:','CSV\x20parse\x20error','dialCheckDuplicateType','cm_contacts','VoiceQueueId','insert','Missing\x20binding\x20parameters!','../../../config/logger','scheduledAt','push','onlyIfOpen','CmContact','then','contact','from','unlinkSync','Missing\x20socket_timestamp\x20parameter!','firstName','undefined','create','birthDate\x20format\x20is\x20invalid,\x20YYYY-MM-DD\x20format\x20is\x20supported!','str','ListId','birthDate','error','Duplicate\x20Contact','generalCheckHopper','id\x20IN\x20?','always','register','CompanyId','outbound','errors','finally','zipObject','Error\x20executing\x20contact\x20csv\x20import:','emit','fromQuery','parse','ListId\x20=\x20?','ContactId','resolve','../../../rediscache','split','stringify','phone\x20NOT\x20IN\x20(?)','map','cm_hopper','Lists'];(function(_0x5d16db,_0x17b5d2){const _0x18f15b=function(_0x23b0d5){while(--_0x23b0d5){_0x5d16db['push'](_0x5d16db['shift']());}};_0x18f15b(++_0x17b5d2);}(a830_0x17b5,0x11a));const a830_0x18f1=function(_0x5d16db,_0x17b5d2){_0x5d16db=_0x5d16db-0x0;let _0x18f15b=a830_0x17b5[_0x5d16db];return _0x18f15b;};const _0x26b20f=a830_0x18f1;'use strict';const util=require(_0x26b20f('0x4e')),_=require('lodash'),fs=require('fs'),squel=require(_0x26b20f('0x3a')),Papa=require(_0x26b20f('0x2e')),moment=require('moment'),db=require('../../../mysqldb')['db'],logger=require(_0x26b20f('0x60'))('api'),{getSocket}=require(_0x26b20f('0x1a')),socket=getSocket();require('../../../api/cmContact/cmContact.socket')[_0x26b20f('0xd')](socket);let FILEPATH,FIELDS,LISTID,COMPANYID,DUPLICATES,SOCKET_TIMESTAMP;try{if(!process[_0x26b20f('0x2d')][0x2]||process[_0x26b20f('0x2d')][0x2]==='undefined'||process[_0x26b20f('0x2d')][0x2]==='null')throw new Error(_0x26b20f('0x32'));FILEPATH=process[_0x26b20f('0x2d')][0x2];if(!process['argv'][0x3]||process[_0x26b20f('0x2d')][0x3]===_0x26b20f('0x2')||process['argv'][0x3]===_0x26b20f('0x33')||!process['argv'][0x4]||process[_0x26b20f('0x2d')][0x4]===_0x26b20f('0x2')||process[_0x26b20f('0x2d')][0x4]===_0x26b20f('0x33'))throw new Error(_0x26b20f('0x5f'));FIELDS=_[_0x26b20f('0x12')](process[_0x26b20f('0x2d')][0x3][_0x26b20f('0x1b')](','),process[_0x26b20f('0x2d')][0x4][_0x26b20f('0x1b')](','));if(!process['argv'][0x5]||process[_0x26b20f('0x2d')][0x5]==='undefined'||process[_0x26b20f('0x2d')][0x5]===_0x26b20f('0x33'))throw new Error(_0x26b20f('0x36'));LISTID=process[_0x26b20f('0x2d')][0x5],COMPANYID=process[_0x26b20f('0x2d')][0x6]&&process[_0x26b20f('0x2d')][0x6]!==_0x26b20f('0x2')&&process[_0x26b20f('0x2d')][0x6]!==_0x26b20f('0x33')?process[_0x26b20f('0x2d')][0x6]:null,DUPLICATES=process['argv'][0x7]&&process['argv'][0x7]!==_0x26b20f('0x2')&&process[_0x26b20f('0x2d')][0x7]!==_0x26b20f('0x33')?process[_0x26b20f('0x2d')][0x7]:null;if(!process[_0x26b20f('0x2d')][0x8]||process[_0x26b20f('0x2d')][0x8]===_0x26b20f('0x2')||process['argv'][0x8]===_0x26b20f('0x33'))throw new Error(_0x26b20f('0x0'));SOCKET_TIMESTAMP=process['argv'][0x8];}catch(a830_0x23b0d5){logger[_0x26b20f('0x8')](a830_0x23b0d5),endCsv();}let total=0x0,success=0x0,errors=0x0,duplicates=0x0,rows=[],hopperContacts='',promises=[];function handleCheckRowError(_0x4ee14b,_0x46896f,_0x3245ed,_0x5df4eb){const _0x83baf5=_0x26b20f,_0x215e9f={'message':_0x46896f};return _0x215e9f[_0x4ee14b]=!![],_0x3245ed&&(_0x215e9f[_0x83baf5('0x66')]=_0x3245ed),_0x5df4eb&&(_0x215e9f['index']=_0x5df4eb),_0x215e9f;}function isEmail(_0x4bb388){const _0x4fc5b7=_0x26b20f;return/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/[_0x4fc5b7('0x4a')](_0x4bb388);}function checkRow(_0x14777a,_0x287342,_0x10afcb){return new Promise(function(_0x4eeadd,_0x38e37c){const _0x2021f4=a830_0x18f1;if(_[_0x2021f4('0x23')](_0x14777a))return _0x38e37c(handleCheckRowError('error',_0x2021f4('0x25'),null,_0x10afcb));if(_0x14777a[_0x2021f4('0x10')]&&_0x14777a[_0x2021f4('0x10')][_0x2021f4('0x4d')]){const _0x4fdf2=_[_0x2021f4('0x1e')](_0x14777a[_0x2021f4('0x10')],'message')['join'](';');return _0x38e37c(handleCheckRowError(_0x2021f4('0x8'),_0x4fdf2,null,_0x10afcb));}const _0x368809={};for(const _0x3750a4 in FIELDS){typeof FIELDS[_0x3750a4]!=='undefined'&&FIELDS[_0x3750a4]&&(_0x368809[_0x3750a4]=_0x14777a[_0x2021f4('0x2f')][0x0][FIELDS[_0x3750a4]]||_0x14777a[_0x2021f4('0x2f')][0x0]['\ufeff'+FIELDS[_0x3750a4]]);}if(!_0x368809[_0x2021f4('0x1')])return _0x38e37c(handleCheckRowError(_0x2021f4('0x8'),_0x2021f4('0x21'),null,_0x10afcb));if(!_0x368809['phone'])return _0x38e37c(handleCheckRowError('error',_0x2021f4('0x3c'),null,_0x10afcb));if(_0x368809[_0x2021f4('0x7')]){const _0x59815f=moment(_0x368809[_0x2021f4('0x7')],_0x2021f4('0x39'));if(!_0x59815f[_0x2021f4('0x34')]())return _0x38e37c(handleCheckRowError(_0x2021f4('0x8'),_0x2021f4('0x4'),null,_0x10afcb));}if(_0x368809[_0x2021f4('0x22')]){if(!isEmail(_0x368809[_0x2021f4('0x22')]))return _0x38e37c(handleCheckRowError('error',_0x2021f4('0x56'),null,_0x10afcb));}_0x368809['ListId']=LISTID,_0x368809[_0x2021f4('0xe')]=COMPANYID||undefined;if(DUPLICATES&&DUPLICATES[_0x2021f4('0x4d')]&&_0x287342){const _0x40f4b2={};for(let _0x26129a=0x0,_0x5ad17e=DUPLICATES[_0x2021f4('0x4d')];_0x26129a<_0x5ad17e;_0x26129a+=0x1){_0x40f4b2[DUPLICATES[_0x26129a]]=_0x368809[DUPLICATES[_0x26129a]];}const _0x5ed45a=_[_0x2021f4('0x44')](_0x287342,_0x40f4b2);if(_0x5ed45a)return _0x38e37c(handleCheckRowError('duplicate',_0x2021f4('0x9'),_0x5ed45a,_0x10afcb));}return db[_0x2021f4('0x64')][_0x2021f4('0x3')](_0x368809,{'raw':!![],'hooks':![],'fields':_[_0x2021f4('0x24')](_0x368809)})[_0x2021f4('0x65')](function(_0x56ac34){const _0xca2d59=_0x2021f4;return DUPLICATES&&DUPLICATES['length']&&_0x287342&&_0x287342['push'](_[_0xca2d59('0x45')](_0x368809,DUPLICATES)),hopperContacts+=(hopperContacts?',':'')+_0x56ac34['id'],_0x4eeadd();})[_0x2021f4('0x57')](function(_0x3d7344){const _0x1628e9=_0x2021f4;return _0x38e37c(handleCheckRowError(_0x1628e9('0x8'),'Error\x20while\x20creating\x20contact:\x20'+(_0x3d7344[_0x1628e9('0x58')]||JSON['stringify'](_0x3d7344)),null,_0x10afcb));});});}function checkHopper(){const _0x38b80f=_0x26b20f;function _0xf888de(){return function(_0x3ecb32){const _0x8b1571=a830_0x18f1;logger[_0x8b1571('0x8')](_0x8b1571('0x54'),_0x8b1571('0x29'),util[_0x8b1571('0x26')](_0x3ecb32,{'showHidden':![],'depth':null}));};}const _0x3902eb=function(_0x15724e,_0x22440f){const _0x54a16c=a830_0x18f1,_0x529c24=squel[_0x54a16c('0x5e')]()[_0x54a16c('0x43')](_0x54a16c('0x1f'))['fromQuery']([_0x54a16c('0x42'),_0x54a16c('0x61'),_0x54a16c('0x18'),_0x54a16c('0x6'),_0x22440f,_0x54a16c('0x37'),_0x54a16c('0x2c')],squel['select']()[_0x54a16c('0x50')]('phone',_0x54a16c('0x42'))[_0x54a16c('0x50')](_0x54a16c('0x28'),_0x54a16c('0x61'))['field']('id',_0x54a16c('0x18'))[_0x54a16c('0x50')](LISTID[_0x54a16c('0x3b')](),_0x54a16c('0x6'))[_0x54a16c('0x50')](_0x15724e['id'][_0x54a16c('0x3b')](),_0x22440f)[_0x54a16c('0x50')](_0x54a16c('0x28'),_0x54a16c('0x37'))['field'](_0x54a16c('0x28'),_0x54a16c('0x2c'))[_0x54a16c('0x67')](_0x54a16c('0x5c'))[_0x54a16c('0x4c')](_0x54a16c('0x49'))[_0x54a16c('0x4c')](_0x54a16c('0x17'),LISTID[_0x54a16c('0x3b')]())[_0x54a16c('0x4c')](_0x54a16c('0x3f'))[_0x54a16c('0x4c')](_0x54a16c('0x1d'),squel[_0x54a16c('0x2b')]()['field'](_0x54a16c('0x42'))[_0x54a16c('0x67')]('cm_hopper')['where'](_0x22440f+_0x54a16c('0x55'),_0x15724e['id'][_0x54a16c('0x3b')]())))['toString']();return _0x529c24;},_0x4ae691=function(_0x47d1b3,_0x10a74d){const _0x187af4=a830_0x18f1,_0x1b1cad=squel[_0x187af4('0x5e')]()['into'](_0x187af4('0x1f'))[_0x187af4('0x15')]([_0x187af4('0x42'),_0x187af4('0x61'),_0x187af4('0x18'),_0x187af4('0x6'),_0x10a74d,_0x187af4('0x37'),'updatedAt'],squel[_0x187af4('0x2b')]()['field'](_0x187af4('0x42'),_0x187af4('0x42'))[_0x187af4('0x50')](_0x187af4('0x28'),_0x187af4('0x61'))[_0x187af4('0x50')]('id',_0x187af4('0x18'))['field'](LISTID[_0x187af4('0x3b')](),'ListId')[_0x187af4('0x50')](_0x47d1b3['id'][_0x187af4('0x3b')](),_0x10a74d)[_0x187af4('0x50')](_0x187af4('0x28'),_0x187af4('0x37'))[_0x187af4('0x50')](_0x187af4('0x28'),_0x187af4('0x2c'))[_0x187af4('0x67')](_0x187af4('0x5c'))['where'](_0x187af4('0x49'))[_0x187af4('0x4c')]('ListId\x20=\x20?',LISTID[_0x187af4('0x3b')]())[_0x187af4('0x4c')](_0x187af4('0xb'),squel[_0x187af4('0x5')](hopperContacts))[_0x187af4('0x4c')]('phone\x20IS\x20NOT\x20NULL')['where']('phone\x20NOT\x20IN\x20(?)',squel[_0x187af4('0x2b')]()[_0x187af4('0x50')]('calleridnum')['from'](_0x187af4('0x40'))['where'](_0x10a74d+_0x187af4('0x55'),_0x47d1b3['id'][_0x187af4('0x3b')]()))[_0x187af4('0x4c')](_0x187af4('0x1d'),squel[_0x187af4('0x2b')]()['field'](_0x187af4('0x42'))[_0x187af4('0x67')]('cm_hopper')[_0x187af4('0x4c')](_0x10a74d+'\x20=\x20?',_0x47d1b3['id'][_0x187af4('0x3b')]())))[_0x187af4('0x3b')]();return _0x1b1cad;};function _0x57c2fa(_0x23d684,_0x170e91){const _0x11425d=a830_0x18f1,_0x1903a6=squel[_0x11425d('0x5e')]()[_0x11425d('0x43')](_0x11425d('0x1f'))[_0x11425d('0x15')]([_0x11425d('0x42'),_0x11425d('0x61'),_0x11425d('0x18'),_0x11425d('0x6'),_0x170e91,_0x11425d('0x37'),_0x11425d('0x2c')],squel['select']()[_0x11425d('0x50')]('phone',_0x11425d('0x42'))[_0x11425d('0x50')](_0x11425d('0x28'),_0x11425d('0x61'))['field']('id',_0x11425d('0x18'))['field'](LISTID['toString'](),_0x11425d('0x6'))[_0x11425d('0x50')](_0x23d684['id'][_0x11425d('0x3b')](),_0x170e91)[_0x11425d('0x50')](_0x11425d('0x28'),'createdAt')[_0x11425d('0x50')]('NOW()',_0x11425d('0x2c'))[_0x11425d('0x67')](_0x11425d('0x5c'))[_0x11425d('0x4c')](_0x11425d('0x49'))[_0x11425d('0x4c')](_0x11425d('0x17'),LISTID[_0x11425d('0x3b')]())[_0x11425d('0x4c')]('id\x20IN\x20?',squel[_0x11425d('0x5')](hopperContacts))[_0x11425d('0x4c')]('phone\x20IS\x20NOT\x20NULL'))[_0x11425d('0x3b')]();return _0x1903a6;}function _0x53192c(_0x3f8b7f,_0x2c1e80){const _0x4d491c=a830_0x18f1,_0xac332a=squel['insert']()[_0x4d491c('0x43')](_0x4d491c('0x38'))[_0x4d491c('0x15')]([_0x4d491c('0x42'),_0x4d491c('0x18'),_0x4d491c('0x6'),_0x2c1e80,_0x4d491c('0x37'),'updatedAt'],squel[_0x4d491c('0x2b')]()[_0x4d491c('0x50')](_0x4d491c('0x42'),_0x4d491c('0x42'))[_0x4d491c('0x50')]('id',_0x4d491c('0x18'))['field'](LISTID['toString'](),'ListId')[_0x4d491c('0x50')](_0x3f8b7f['id'][_0x4d491c('0x3b')](),_0x2c1e80)[_0x4d491c('0x50')](_0x4d491c('0x28'),_0x4d491c('0x37'))[_0x4d491c('0x50')](_0x4d491c('0x28'),'updatedAt')['from']('cm_contacts')[_0x4d491c('0x4c')](_0x4d491c('0x49'))[_0x4d491c('0x4c')](_0x4d491c('0x17'),LISTID[_0x4d491c('0x3b')]())[_0x4d491c('0x4c')](_0x4d491c('0xb'),squel[_0x4d491c('0x5')](hopperContacts))[_0x4d491c('0x4c')](_0x4d491c('0x3f')))['toString']();return _0xac332a;}return db[_0x38b80f('0x4f')]['findAll']({'where':{'type':_0x38b80f('0xf')},'attributes':['id',_0x38b80f('0x5b')],'include':[{'model':db['CmList'],'as':_0x38b80f('0x20'),'where':{'id':LISTID}}]})[_0x38b80f('0x65')](function(_0x527ec5){const _0x2bc573=_0x38b80f,_0x1db859=[];if(_0x527ec5)for(let _0x2337ff=0x0,_0x208993;_0x2337ff<_0x527ec5[_0x2bc573('0x4d')];_0x2337ff+=0x1){_0x208993=_0x527ec5[_0x2337ff][_0x2bc573('0x41')]({'plain':!![]});switch(_0x208993[_0x2bc573('0x5b')]){case'always':_0x1db859[_0x2bc573('0x62')](db[_0x2bc573('0x2a')][_0x2bc573('0x47')](_0x4ae691(_0x208993,_0x2bc573('0x5d')))[_0x2bc573('0x65')](function(){})[_0x2bc573('0x57')](_0xf888de()));break;case _0x2bc573('0x63'):_0x1db859[_0x2bc573('0x62')](db[_0x2bc573('0x2a')][_0x2bc573('0x47')](_0x3902eb(_0x208993,_0x2bc573('0x5d')))['then'](function(){})['catch'](_0xf888de()));break;default:_0x1db859[_0x2bc573('0x62')](db[_0x2bc573('0x2a')][_0x2bc573('0x47')](_0x57c2fa(_0x208993,_0x2bc573('0x5d')))[_0x2bc573('0x65')](function(){})[_0x2bc573('0x57')](_0xf888de()));}}return _0x1db859;})[_0x38b80f('0x53')]()[_0x38b80f('0x65')](function(){const _0x3a8577=_0x38b80f;return db[_0x3a8577('0x4f')][_0x3a8577('0x3e')]({'where':{'type':_0x3a8577('0xf')},'attributes':['id'],'include':[{'model':db[_0x3a8577('0x27')],'as':_0x3a8577('0x35'),'where':{'id':LISTID}}]})[_0x3a8577('0x65')](function(_0x407bdf){const _0x117568=_0x3a8577,_0x1a1462=[];if(_0x407bdf)for(let _0x57dcee=0x0,_0x3ac9ab;_0x57dcee<_0x407bdf['length'];_0x57dcee+=0x1){_0x3ac9ab=_0x407bdf[_0x57dcee][_0x117568('0x41')]({'plain':!![]}),_0x1a1462[_0x117568('0x62')](db[_0x117568('0x2a')][_0x117568('0x47')](_0x53192c(_0x3ac9ab,'VoiceQueueId'))[_0x117568('0x65')](function(){})[_0x117568('0x57')](_0xf888de()));}return _0x1a1462;})[_0x3a8577('0x53')]();})[_0x38b80f('0x65')](function(){const _0x4852c1=_0x38b80f;return db['Campaign'][_0x4852c1('0x3e')]({'attributes':['id',_0x4852c1('0x5b')],'include':[{'model':db[_0x4852c1('0x27')],'as':_0x4852c1('0x20'),'where':{'id':LISTID}}]})[_0x4852c1('0x65')](function(_0x100657){const _0x538e08=_0x4852c1,_0x272319=[];if(_0x100657)for(let _0x228cfe=0x0,_0x453834;_0x228cfe<_0x100657[_0x538e08('0x4d')];_0x228cfe+=0x1){_0x453834=_0x100657[_0x228cfe][_0x538e08('0x41')]({'plain':!![]});switch(_0x453834['dialCheckDuplicateType']){case _0x538e08('0xc'):_0x272319[_0x538e08('0x62')](db[_0x538e08('0x2a')][_0x538e08('0x47')](_0x4ae691(_0x453834,_0x538e08('0x31')))[_0x538e08('0x65')](function(){})[_0x538e08('0x57')](_0xf888de()));break;case _0x538e08('0x63'):_0x272319[_0x538e08('0x62')](db[_0x538e08('0x2a')][_0x538e08('0x47')](_0x3902eb(_0x453834,_0x538e08('0x31')))[_0x538e08('0x65')](function(){})['catch'](_0xf888de()));break;default:_0x272319[_0x538e08('0x62')](db[_0x538e08('0x2a')][_0x538e08('0x47')](_0x57c2fa(_0x453834,_0x538e08('0x31')))[_0x538e08('0x65')](function(){})['catch'](_0xf888de()));}}return _0x272319;})[_0x4852c1('0x53')]();})[_0x38b80f('0x65')](function(){const _0x564fff=_0x38b80f;return db['Campaign'][_0x564fff('0x3e')]({'attributes':['id'],'include':[{'model':db['CmList'],'as':'BlackLists','where':{'id':LISTID}}]})[_0x564fff('0x65')](function(_0x2ae52d){const _0x33df94=_0x564fff,_0x567a83=[];if(_0x2ae52d)for(let _0x209894=0x0,_0x55f4cb;_0x209894<_0x2ae52d[_0x33df94('0x4d')];_0x209894+=0x1){_0x55f4cb=_0x2ae52d[_0x209894][_0x33df94('0x41')]({'plain':!![]}),_0x567a83[_0x33df94('0x62')](db['sequelize'][_0x33df94('0x47')](_0x53192c(_0x55f4cb,_0x33df94('0x31')))[_0x33df94('0x65')](function(){})[_0x33df94('0x57')](_0xf888de()));}return _0x567a83;})[_0x564fff('0x53')]();})[_0x38b80f('0x57')](function(_0xc5bcc8){const _0x56936f=_0x38b80f;logger[_0x56936f('0x8')]('cmContact,\x20%s,\x20%s',_0x56936f('0xa'),_0xc5bcc8[_0x56936f('0x58')]);});}const processPromises=function(_0x58cd96){const _0x2803f0=_0x26b20f;return Promise['all'](promises)[_0x2803f0('0x57')](function(_0xb5c656){const _0x5029c2=_0x2803f0;logger[_0x5029c2('0x8')](_0x5029c2('0x59'),JSON[_0x5029c2('0x1c')](_0xb5c656));})[_0x2803f0('0x11')](function(){const _0x553388=_0x2803f0;socket[_0x553388('0x14')](_0x553388('0x30')+SOCKET_TIMESTAMP,{'success':success,'errors':errors,'duplicates':duplicates,'rows':rows}),promises=[],success=0x0,errors=0x0,duplicates=0x0,rows=[];if(_0x58cd96)return _0x58cd96['resume']();});},endCsv=function(){const _0x520170=_0x26b20f;return Promise[_0x520170('0x19')]()[_0x520170('0x65')](function(){if(hopperContacts)return checkHopper();})[_0x520170('0x65')](function(){const _0xf3b42b=_0x520170;socket[_0xf3b42b('0x14')](_0xf3b42b('0x30')+SOCKET_TIMESTAMP,{'finished':!![],'success':success,'errors':errors,'duplicates':duplicates,'rows':rows});try{fs[_0xf3b42b('0x68')](FILEPATH);}catch(_0x2970d2){logger[_0xf3b42b('0x8')](_0xf3b42b('0x51'),JSON[_0xf3b42b('0x1c')](_0x2970d2));}finally{process[_0xf3b42b('0x48')](0x0);}});};process['on'](_0x26b20f('0x3d'),function(){const _0x5c130d=_0x26b20f;logger[_0x5c130d('0x52')](_0x5c130d('0x4b')),endCsv();});function main(){const _0x547cac=_0x26b20f;return Promise[_0x547cac('0x19')]()[_0x547cac('0x65')](function(){const _0x1e4770=_0x547cac;if(DUPLICATES)return DUPLICATES=DUPLICATES['split'](','),db[_0x1e4770('0x64')][_0x1e4770('0x3e')]({'where':{'ListId':LISTID},'attributes':DUPLICATES,'raw':!![]});})['then'](function(_0x158543){const _0x2bfd95=_0x547cac,_0x538b61=fs['createReadStream'](FILEPATH,{'highWaterMark':0xf*0x400*0x400});Papa[_0x2bfd95('0x16')](_0x538b61,{'header':!![],'skipEmptyLines':!![],'step':function(_0xcc431d,_0x29a5c7){const _0x5337b6=_0x2bfd95;total+=0x1;const _0x39552d=total;promises[_0x5337b6('0x62')](checkRow(_0xcc431d,_0x158543,_0x39552d)[_0x5337b6('0x65')](function(){success+=0x1;})[_0x5337b6('0x57')](function(_0x1572d1){const _0x593903=_0x5337b6;if(_0x1572d1['error'])errors+=0x1,delete _0x1572d1[_0x593903('0x8')];else _0x1572d1['duplicate']&&(duplicates+=0x1,delete _0x1572d1[_0x593903('0x46')]);rows[_0x593903('0x62')](_0x1572d1);}));if(total%0xc8===0x0)return _0x29a5c7['pause'](),processPromises(_0x29a5c7);},'complete':function(){const _0x10bb7a=_0x2bfd95;return processPromises()[_0x10bb7a('0x65')](function(){logger['info']('CSV\x20parsed\x20correctly!'),endCsv();});},'error':function(_0x568bad){const _0x2eb9ec=_0x2bfd95;logger[_0x2eb9ec('0x52')](_0x2eb9ec('0x5a'),JSON[_0x2eb9ec('0x1c')](_0x568bad)),endCsv();}});})[_0x547cac('0x57')](function(_0x1c3956){const _0x21588d=_0x547cac;logger['error'](_0x21588d('0x13'),JSON[_0x21588d('0x1c')](_0x1c3956));});}main(); \ No newline at end of file +const a830_0x3a0a=['phone\x20NOT\x20IN\x20(?)','CmContact','onlyIfOpen','CSV\x20import\x20process\x20stopped!','query','phone\x20not\x20specified!','Unable\x20to\x20delete\x20temp\x20file:','Missing\x20filepath\x20parameter!','VoiceQueueId','phone','firstName','cmContact,\x20%s,\x20%s','Lists','test','CampaignId','NOW()','cm_hopper','str','papaparse','Missing\x20ListId\x20parameter!','always','emit','CSV\x20parse\x20error','cm_contacts','YYYY-MM-DD','Error\x20executing\x20contact\x20csv\x20import:','zipObject','message','deletedAt\x20IS\x20NULL','Error\x20processing\x20rows\x20block:','updatedAt','checkHopper','createdAt','CompanyId','cm_hopper_final','isValid','get','exit','ListId','error','map','BlackLists','lodash','api','../../../config/logger','info','../../../rediscache','index','fromQuery','SIGINT','birthDate','createReadStream','../../../api/cmContact/cmContact.socket','VoiceQueue','dialCheckDuplicateType','scheduledAt','register','into','null','phone\x20IS\x20NOT\x20NULL','push','split','ContactId','toString','where','sequelize','squel','all','email\x20format\x20is\x20not\x20valid!','findAll','duplicate','parse','\x20=\x20?','stringify','catch','generalCheckHopper','contact','CmList','Campaign','keys','undefined','argv','select','field','ListId\x20=\x20?','id\x20IN\x20?','isNil','resume','finally','then','length','Missing\x20binding\x20parameters!','inspect','The\x20row\x20is\x20empty\x20or\x20the\x20number\x20of\x20parameters\x20does\x20not\x20match\x20the\x20columns!','pick','email','insert','util','from','create','Duplicate\x20Contact','pause','cm_hopper_black'];(function(_0x51abca,_0x3a0abf){const _0xe07bbe=function(_0x4123f1){while(--_0x4123f1){_0x51abca['push'](_0x51abca['shift']());}};_0xe07bbe(++_0x3a0abf);}(a830_0x3a0a,0x1b1));const a830_0xe07b=function(_0x51abca,_0x3a0abf){_0x51abca=_0x51abca-0x0;let _0xe07bbe=a830_0x3a0a[_0x51abca];return _0xe07bbe;};const _0x48af24=a830_0xe07b;'use strict';const util=require(_0x48af24('0x4c')),_=require(_0x48af24('0x15')),fs=require('fs'),squel=require(_0x48af24('0x2d')),Papa=require(_0x48af24('0x64')),moment=require('moment'),db=require('../../../mysqldb')['db'],logger=require(_0x48af24('0x17'))(_0x48af24('0x16')),{getSocket}=require(_0x48af24('0x19')),socket=getSocket();require(_0x48af24('0x1f'))[_0x48af24('0x23')](socket);let FILEPATH,FIELDS,LISTID,COMPANYID,DUPLICATES,SOCKET_TIMESTAMP;try{if(!process[_0x48af24('0x3c')][0x2]||process[_0x48af24('0x3c')][0x2]===_0x48af24('0x3b')||process[_0x48af24('0x3c')][0x2]===_0x48af24('0x25'))throw new Error(_0x48af24('0x59'));FILEPATH=process[_0x48af24('0x3c')][0x2];if(!process[_0x48af24('0x3c')][0x3]||process[_0x48af24('0x3c')][0x3]==='undefined'||process[_0x48af24('0x3c')][0x3]===_0x48af24('0x25')||!process[_0x48af24('0x3c')][0x4]||process['argv'][0x4]===_0x48af24('0x3b')||process['argv'][0x4]===_0x48af24('0x25'))throw new Error(_0x48af24('0x46'));FIELDS=_[_0x48af24('0x5')](process['argv'][0x3]['split'](','),process[_0x48af24('0x3c')][0x4]['split'](','));if(!process[_0x48af24('0x3c')][0x5]||process[_0x48af24('0x3c')][0x5]===_0x48af24('0x3b')||process[_0x48af24('0x3c')][0x5]===_0x48af24('0x25'))throw new Error(_0x48af24('0x65'));LISTID=process[_0x48af24('0x3c')][0x5],COMPANYID=process[_0x48af24('0x3c')][0x6]&&process[_0x48af24('0x3c')][0x6]!==_0x48af24('0x3b')&&process[_0x48af24('0x3c')][0x6]!==_0x48af24('0x25')?process['argv'][0x6]:null,DUPLICATES=process[_0x48af24('0x3c')][0x7]&&process[_0x48af24('0x3c')][0x7]!==_0x48af24('0x3b')&&process['argv'][0x7]!==_0x48af24('0x25')?process[_0x48af24('0x3c')][0x7]:null;if(!process[_0x48af24('0x3c')][0x8]||process[_0x48af24('0x3c')][0x8]===_0x48af24('0x3b')||process[_0x48af24('0x3c')][0x8]===_0x48af24('0x25'))throw new Error('Missing\x20socket_timestamp\x20parameter!');SOCKET_TIMESTAMP=process[_0x48af24('0x3c')][0x8];}catch(a830_0x4123f1){logger[_0x48af24('0x12')](a830_0x4123f1),endCsv();}let total=0x0,success=0x0,errors=0x0,duplicates=0x0,rows=[],hopperContacts='',promises=[];function handleCheckRowError(_0x1b3c8f,_0x168956,_0x44505b,_0x30b2d1){const _0x1bf787=_0x48af24,_0x5b55ff={'message':_0x168956};return _0x5b55ff[_0x1b3c8f]=!![],_0x44505b&&(_0x5b55ff[_0x1bf787('0x37')]=_0x44505b),_0x30b2d1&&(_0x5b55ff[_0x1bf787('0x1a')]=_0x30b2d1),_0x5b55ff;}function isEmail(_0x15d7a2){const _0x30789a=_0x48af24;return/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/[_0x30789a('0x5f')](_0x15d7a2);}function checkRow(_0x39d13e,_0x208455,_0x5a1962){return new Promise(function(_0xee5bea,_0x5cbf99){const _0x145eaf=a830_0xe07b;if(_[_0x145eaf('0x41')](_0x39d13e))return _0x5cbf99(handleCheckRowError(_0x145eaf('0x12'),_0x145eaf('0x48'),null,_0x5a1962));if(_0x39d13e['errors']&&_0x39d13e['errors'][_0x145eaf('0x45')]){const _0x22c8d6=_[_0x145eaf('0x13')](_0x39d13e['errors'],_0x145eaf('0x6'))['join'](';');return _0x5cbf99(handleCheckRowError(_0x145eaf('0x12'),_0x22c8d6,null,_0x5a1962));}const _0x4dcce3={};for(const _0x345983 in FIELDS){typeof FIELDS[_0x345983]!==_0x145eaf('0x3b')&&FIELDS[_0x345983]&&(_0x4dcce3[_0x345983]=_0x39d13e['data'][0x0][FIELDS[_0x345983]]||_0x39d13e['data'][0x0]['\ufeff'+FIELDS[_0x345983]]);}if(!_0x4dcce3[_0x145eaf('0x5c')])return _0x5cbf99(handleCheckRowError(_0x145eaf('0x12'),'firstName\x20not\x20specified!',null,_0x5a1962));if(!_0x4dcce3[_0x145eaf('0x5b')])return _0x5cbf99(handleCheckRowError(_0x145eaf('0x12'),_0x145eaf('0x57'),null,_0x5a1962));if(_0x4dcce3['birthDate']){const _0xc2bd3e=moment(_0x4dcce3[_0x145eaf('0x1d')],_0x145eaf('0x3'));if(!_0xc2bd3e[_0x145eaf('0xe')]())return _0x5cbf99(handleCheckRowError(_0x145eaf('0x12'),'birthDate\x20format\x20is\x20invalid,\x20YYYY-MM-DD\x20format\x20is\x20supported!',null,_0x5a1962));}if(_0x4dcce3['email']){if(!isEmail(_0x4dcce3[_0x145eaf('0x4a')]))return _0x5cbf99(handleCheckRowError(_0x145eaf('0x12'),_0x145eaf('0x2f'),null,_0x5a1962));}_0x4dcce3['ListId']=LISTID,_0x4dcce3[_0x145eaf('0xc')]=COMPANYID||undefined;if(DUPLICATES&&DUPLICATES['length']&&_0x208455){const _0x2e4d3a={};for(let _0x1b67a2=0x0,_0x588e7c=DUPLICATES['length'];_0x1b67a2<_0x588e7c;_0x1b67a2+=0x1){_0x2e4d3a[DUPLICATES[_0x1b67a2]]=_0x4dcce3[DUPLICATES[_0x1b67a2]];}const _0x118009=_['find'](_0x208455,_0x2e4d3a);if(_0x118009)return _0x5cbf99(handleCheckRowError(_0x145eaf('0x31'),_0x145eaf('0x4f'),_0x118009,_0x5a1962));}return db[_0x145eaf('0x53')][_0x145eaf('0x4e')](_0x4dcce3,{'raw':!![],'hooks':![],'fields':_[_0x145eaf('0x3a')](_0x4dcce3)})['then'](function(_0x401664){const _0xb3906b=_0x145eaf;return DUPLICATES&&DUPLICATES['length']&&_0x208455&&_0x208455[_0xb3906b('0x27')](_[_0xb3906b('0x49')](_0x4dcce3,DUPLICATES)),hopperContacts+=(hopperContacts?',':'')+_0x401664['id'],_0xee5bea();})[_0x145eaf('0x35')](function(_0x271ee7){const _0x708945=_0x145eaf;return _0x5cbf99(handleCheckRowError(_0x708945('0x12'),'Error\x20while\x20creating\x20contact:\x20'+(_0x271ee7['message']||JSON[_0x708945('0x34')](_0x271ee7)),null,_0x5a1962));});});}function checkHopper(){const _0x2f3bcd=_0x48af24;function _0x384723(){return function(_0x33dec0){const _0x2e5425=a830_0xe07b;logger['error']('cmContact',_0x2e5425('0xa'),util[_0x2e5425('0x47')](_0x33dec0,{'showHidden':![],'depth':null}));};}const _0xd6ee3=function(_0x34dd53,_0x2096cc){const _0x549522=a830_0xe07b,_0x33ba8d=squel[_0x549522('0x4b')]()[_0x549522('0x24')](_0x549522('0x62'))[_0x549522('0x1b')]([_0x549522('0x5b'),_0x549522('0x22'),_0x549522('0x29'),_0x549522('0x11'),_0x2096cc,_0x549522('0xb'),_0x549522('0x9')],squel[_0x549522('0x3d')]()['field'](_0x549522('0x5b'),_0x549522('0x5b'))[_0x549522('0x3e')](_0x549522('0x61'),'scheduledAt')['field']('id',_0x549522('0x29'))['field'](LISTID[_0x549522('0x2a')](),_0x549522('0x11'))[_0x549522('0x3e')](_0x34dd53['id'][_0x549522('0x2a')](),_0x2096cc)[_0x549522('0x3e')](_0x549522('0x61'),_0x549522('0xb'))['field'](_0x549522('0x61'),_0x549522('0x9'))[_0x549522('0x4d')]('cm_contacts')['where'](_0x549522('0x7'))[_0x549522('0x2b')]('ListId\x20=\x20?',LISTID[_0x549522('0x2a')]())[_0x549522('0x2b')](_0x549522('0x26'))[_0x549522('0x2b')]('phone\x20NOT\x20IN\x20(?)',squel[_0x549522('0x3d')]()[_0x549522('0x3e')](_0x549522('0x5b'))[_0x549522('0x4d')](_0x549522('0x62'))[_0x549522('0x2b')](_0x2096cc+'\x20=\x20?',_0x34dd53['id']['toString']())))[_0x549522('0x2a')]();return _0x33ba8d;},_0xac277d=function(_0x272a21,_0x3b8a15){const _0x4f021d=a830_0xe07b,_0x3522c7=squel['insert']()['into']('cm_hopper')[_0x4f021d('0x1b')]([_0x4f021d('0x5b'),_0x4f021d('0x22'),_0x4f021d('0x29'),_0x4f021d('0x11'),_0x3b8a15,_0x4f021d('0xb'),_0x4f021d('0x9')],squel[_0x4f021d('0x3d')]()[_0x4f021d('0x3e')]('phone',_0x4f021d('0x5b'))[_0x4f021d('0x3e')](_0x4f021d('0x61'),_0x4f021d('0x22'))['field']('id',_0x4f021d('0x29'))[_0x4f021d('0x3e')](LISTID[_0x4f021d('0x2a')](),_0x4f021d('0x11'))[_0x4f021d('0x3e')](_0x272a21['id'][_0x4f021d('0x2a')](),_0x3b8a15)[_0x4f021d('0x3e')](_0x4f021d('0x61'),'createdAt')[_0x4f021d('0x3e')](_0x4f021d('0x61'),_0x4f021d('0x9'))['from']('cm_contacts')[_0x4f021d('0x2b')]('deletedAt\x20IS\x20NULL')[_0x4f021d('0x2b')](_0x4f021d('0x3f'),LISTID[_0x4f021d('0x2a')]())[_0x4f021d('0x2b')]('id\x20IN\x20?',squel[_0x4f021d('0x63')](hopperContacts))['where']('phone\x20IS\x20NOT\x20NULL')[_0x4f021d('0x2b')]('phone\x20NOT\x20IN\x20(?)',squel[_0x4f021d('0x3d')]()[_0x4f021d('0x3e')]('calleridnum')[_0x4f021d('0x4d')](_0x4f021d('0xd'))[_0x4f021d('0x2b')](_0x3b8a15+_0x4f021d('0x33'),_0x272a21['id'][_0x4f021d('0x2a')]()))[_0x4f021d('0x2b')](_0x4f021d('0x52'),squel['select']()['field'](_0x4f021d('0x5b'))[_0x4f021d('0x4d')](_0x4f021d('0x62'))[_0x4f021d('0x2b')](_0x3b8a15+_0x4f021d('0x33'),_0x272a21['id'][_0x4f021d('0x2a')]())))[_0x4f021d('0x2a')]();return _0x3522c7;};function _0x5a63de(_0x35bdd5,_0xaeda31){const _0x2fc235=a830_0xe07b,_0x322984=squel['insert']()['into'](_0x2fc235('0x62'))[_0x2fc235('0x1b')]([_0x2fc235('0x5b'),_0x2fc235('0x22'),'ContactId',_0x2fc235('0x11'),_0xaeda31,_0x2fc235('0xb'),_0x2fc235('0x9')],squel['select']()[_0x2fc235('0x3e')](_0x2fc235('0x5b'),_0x2fc235('0x5b'))[_0x2fc235('0x3e')]('NOW()',_0x2fc235('0x22'))['field']('id','ContactId')['field'](LISTID['toString'](),_0x2fc235('0x11'))[_0x2fc235('0x3e')](_0x35bdd5['id'][_0x2fc235('0x2a')](),_0xaeda31)['field']('NOW()',_0x2fc235('0xb'))[_0x2fc235('0x3e')](_0x2fc235('0x61'),'updatedAt')[_0x2fc235('0x4d')]('cm_contacts')[_0x2fc235('0x2b')](_0x2fc235('0x7'))[_0x2fc235('0x2b')](_0x2fc235('0x3f'),LISTID['toString']())[_0x2fc235('0x2b')](_0x2fc235('0x40'),squel[_0x2fc235('0x63')](hopperContacts))['where'](_0x2fc235('0x26')))['toString']();return _0x322984;}function _0x24229a(_0x5870a0,_0x510bff){const _0x145fb2=a830_0xe07b,_0x4d7c03=squel[_0x145fb2('0x4b')]()[_0x145fb2('0x24')](_0x145fb2('0x51'))[_0x145fb2('0x1b')]([_0x145fb2('0x5b'),'ContactId','ListId',_0x510bff,_0x145fb2('0xb'),_0x145fb2('0x9')],squel[_0x145fb2('0x3d')]()[_0x145fb2('0x3e')](_0x145fb2('0x5b'),'phone')['field']('id',_0x145fb2('0x29'))[_0x145fb2('0x3e')](LISTID['toString'](),'ListId')['field'](_0x5870a0['id'][_0x145fb2('0x2a')](),_0x510bff)[_0x145fb2('0x3e')](_0x145fb2('0x61'),_0x145fb2('0xb'))['field'](_0x145fb2('0x61'),_0x145fb2('0x9'))[_0x145fb2('0x4d')](_0x145fb2('0x2'))['where'](_0x145fb2('0x7'))[_0x145fb2('0x2b')](_0x145fb2('0x3f'),LISTID['toString']())[_0x145fb2('0x2b')](_0x145fb2('0x40'),squel[_0x145fb2('0x63')](hopperContacts))[_0x145fb2('0x2b')](_0x145fb2('0x26')))['toString']();return _0x4d7c03;}return db[_0x2f3bcd('0x20')]['findAll']({'where':{'type':'outbound'},'attributes':['id',_0x2f3bcd('0x21')],'include':[{'model':db[_0x2f3bcd('0x38')],'as':_0x2f3bcd('0x5e'),'where':{'id':LISTID}}]})['then'](function(_0x2dbb6a){const _0x4c9f42=_0x2f3bcd,_0x17c04b=[];if(_0x2dbb6a)for(let _0x15f461=0x0,_0x23cfc4;_0x15f461<_0x2dbb6a[_0x4c9f42('0x45')];_0x15f461+=0x1){_0x23cfc4=_0x2dbb6a[_0x15f461]['get']({'plain':!![]});switch(_0x23cfc4[_0x4c9f42('0x21')]){case _0x4c9f42('0x66'):_0x17c04b[_0x4c9f42('0x27')](db[_0x4c9f42('0x2c')][_0x4c9f42('0x56')](_0xac277d(_0x23cfc4,_0x4c9f42('0x5a')))['then'](function(){})['catch'](_0x384723()));break;case'onlyIfOpen':_0x17c04b[_0x4c9f42('0x27')](db['sequelize'][_0x4c9f42('0x56')](_0xd6ee3(_0x23cfc4,_0x4c9f42('0x5a')))[_0x4c9f42('0x44')](function(){})[_0x4c9f42('0x35')](_0x384723()));break;default:_0x17c04b[_0x4c9f42('0x27')](db[_0x4c9f42('0x2c')][_0x4c9f42('0x56')](_0x5a63de(_0x23cfc4,'VoiceQueueId'))[_0x4c9f42('0x44')](function(){})[_0x4c9f42('0x35')](_0x384723()));}}return _0x17c04b;})[_0x2f3bcd('0x2e')]()[_0x2f3bcd('0x44')](function(){const _0x1fa02f=_0x2f3bcd;return db[_0x1fa02f('0x20')][_0x1fa02f('0x30')]({'where':{'type':'outbound'},'attributes':['id'],'include':[{'model':db[_0x1fa02f('0x38')],'as':_0x1fa02f('0x14'),'where':{'id':LISTID}}]})[_0x1fa02f('0x44')](function(_0x2d7942){const _0x1185bf=_0x1fa02f,_0x4ec479=[];if(_0x2d7942)for(let _0x1246e1=0x0,_0xe0bd70;_0x1246e1<_0x2d7942[_0x1185bf('0x45')];_0x1246e1+=0x1){_0xe0bd70=_0x2d7942[_0x1246e1]['get']({'plain':!![]}),_0x4ec479[_0x1185bf('0x27')](db[_0x1185bf('0x2c')][_0x1185bf('0x56')](_0x24229a(_0xe0bd70,_0x1185bf('0x5a')))[_0x1185bf('0x44')](function(){})[_0x1185bf('0x35')](_0x384723()));}return _0x4ec479;})[_0x1fa02f('0x2e')]();})[_0x2f3bcd('0x44')](function(){const _0x4af2a4=_0x2f3bcd;return db[_0x4af2a4('0x39')][_0x4af2a4('0x30')]({'attributes':['id',_0x4af2a4('0x21')],'include':[{'model':db[_0x4af2a4('0x38')],'as':_0x4af2a4('0x5e'),'where':{'id':LISTID}}]})[_0x4af2a4('0x44')](function(_0x9ab58a){const _0xa3c141=_0x4af2a4,_0x11c883=[];if(_0x9ab58a)for(let _0xe7335c=0x0,_0x12b6d0;_0xe7335c<_0x9ab58a[_0xa3c141('0x45')];_0xe7335c+=0x1){_0x12b6d0=_0x9ab58a[_0xe7335c][_0xa3c141('0xf')]({'plain':!![]});switch(_0x12b6d0[_0xa3c141('0x21')]){case _0xa3c141('0x66'):_0x11c883[_0xa3c141('0x27')](db[_0xa3c141('0x2c')][_0xa3c141('0x56')](_0xac277d(_0x12b6d0,'CampaignId'))[_0xa3c141('0x44')](function(){})[_0xa3c141('0x35')](_0x384723()));break;case _0xa3c141('0x54'):_0x11c883[_0xa3c141('0x27')](db[_0xa3c141('0x2c')][_0xa3c141('0x56')](_0xd6ee3(_0x12b6d0,_0xa3c141('0x60')))[_0xa3c141('0x44')](function(){})[_0xa3c141('0x35')](_0x384723()));break;default:_0x11c883[_0xa3c141('0x27')](db['sequelize'][_0xa3c141('0x56')](_0x5a63de(_0x12b6d0,_0xa3c141('0x60')))['then'](function(){})[_0xa3c141('0x35')](_0x384723()));}}return _0x11c883;})[_0x4af2a4('0x2e')]();})[_0x2f3bcd('0x44')](function(){const _0xc1390b=_0x2f3bcd;return db[_0xc1390b('0x39')][_0xc1390b('0x30')]({'attributes':['id'],'include':[{'model':db['CmList'],'as':_0xc1390b('0x14'),'where':{'id':LISTID}}]})[_0xc1390b('0x44')](function(_0x3e32b6){const _0x5486e8=_0xc1390b,_0x360ffa=[];if(_0x3e32b6)for(let _0x4104ee=0x0,_0x1744b4;_0x4104ee<_0x3e32b6[_0x5486e8('0x45')];_0x4104ee+=0x1){_0x1744b4=_0x3e32b6[_0x4104ee][_0x5486e8('0xf')]({'plain':!![]}),_0x360ffa[_0x5486e8('0x27')](db[_0x5486e8('0x2c')][_0x5486e8('0x56')](_0x24229a(_0x1744b4,'CampaignId'))[_0x5486e8('0x44')](function(){})['catch'](_0x384723()));}return _0x360ffa;})[_0xc1390b('0x2e')]();})['catch'](function(_0x15a849){const _0x19645f=_0x2f3bcd;logger[_0x19645f('0x12')](_0x19645f('0x5d'),_0x19645f('0x36'),_0x15a849[_0x19645f('0x6')]);});}const processPromises=function(_0xb099df){const _0x4aed56=_0x48af24;return Promise[_0x4aed56('0x2e')](promises)[_0x4aed56('0x35')](function(_0x2e4810){const _0x151f08=_0x4aed56;logger[_0x151f08('0x12')](_0x151f08('0x8'),JSON[_0x151f08('0x34')](_0x2e4810));})[_0x4aed56('0x43')](function(){const _0x562a63=_0x4aed56;socket[_0x562a63('0x0')]('contact:csv_'+SOCKET_TIMESTAMP,{'success':success,'errors':errors,'duplicates':duplicates,'rows':rows}),promises=[],success=0x0,errors=0x0,duplicates=0x0,rows=[];if(_0xb099df)return _0xb099df[_0x562a63('0x42')]();});},endCsv=function(){const _0x532340=_0x48af24;return Promise['resolve']()['then'](function(){if(hopperContacts)return checkHopper();})[_0x532340('0x44')](function(){const _0x407b26=_0x532340;socket[_0x407b26('0x0')]('contact:csv_'+SOCKET_TIMESTAMP,{'finished':!![],'success':success,'errors':errors,'duplicates':duplicates,'rows':rows});try{fs['unlinkSync'](FILEPATH);}catch(_0x10d0dc){logger[_0x407b26('0x12')](_0x407b26('0x58'),JSON[_0x407b26('0x34')](_0x10d0dc));}finally{process[_0x407b26('0x10')](0x0);}});};process['on'](_0x48af24('0x1c'),function(){const _0x309371=_0x48af24;logger[_0x309371('0x18')](_0x309371('0x55')),endCsv();});function main(){const _0x28f061=_0x48af24;return Promise['resolve']()[_0x28f061('0x44')](function(){const _0x21d64d=_0x28f061;if(DUPLICATES)return DUPLICATES=DUPLICATES[_0x21d64d('0x28')](','),db['CmContact'][_0x21d64d('0x30')]({'where':{'ListId':LISTID},'attributes':DUPLICATES,'raw':!![]});})[_0x28f061('0x44')](function(_0x14b68c){const _0x1a1d84=_0x28f061,_0x2fae4b=fs[_0x1a1d84('0x1e')](FILEPATH,{'highWaterMark':0xf*0x400*0x400});Papa[_0x1a1d84('0x32')](_0x2fae4b,{'header':!![],'skipEmptyLines':!![],'step':function(_0x169a45,_0x1e5f7b){const _0x5cf380=_0x1a1d84;total+=0x1;const _0x2faaad=total;promises[_0x5cf380('0x27')](checkRow(_0x169a45,_0x14b68c,_0x2faaad)[_0x5cf380('0x44')](function(){success+=0x1;})[_0x5cf380('0x35')](function(_0x515735){const _0x1e685e=_0x5cf380;if(_0x515735['error'])errors+=0x1,delete _0x515735[_0x1e685e('0x12')];else _0x515735['duplicate']&&(duplicates+=0x1,delete _0x515735['duplicate']);rows[_0x1e685e('0x27')](_0x515735);}));if(total%0xc8===0x0)return _0x1e5f7b[_0x5cf380('0x50')](),processPromises(_0x1e5f7b);},'complete':function(){const _0x590f5c=_0x1a1d84;return processPromises()[_0x590f5c('0x44')](function(){const _0x54fb5b=_0x590f5c;logger[_0x54fb5b('0x18')]('CSV\x20parsed\x20correctly!'),endCsv();});},'error':function(_0x4fd607){const _0x48d53b=_0x1a1d84;logger[_0x48d53b('0x18')](_0x48d53b('0x1'),JSON[_0x48d53b('0x34')](_0x4fd607)),endCsv();}});})[_0x28f061('0x35')](function(_0x97d12e){const _0x4f8cf0=_0x28f061;logger['error'](_0x4f8cf0('0x4'),JSON[_0x4f8cf0('0x34')](_0x97d12e));});}main(); \ No newline at end of file diff --git a/server/components/import/cm/csv2.js b/server/components/import/cm/csv2.js index 1b8bd68..17ef85f 100644 --- a/server/components/import/cm/csv2.js +++ b/server/components/import/cm/csv2.js @@ -1 +1 @@ -const a831_0x3740=['email','exit','deletedAt\x20IS\x20NULL','firstName','body\x20id\x20mandatory','createdAt','format','.CmListId\x20=\x20?','step','root','cm_contacts.phone','scheduledat','binding','min_id','cm_contacts.UserId','email\x20wrong\x20format','CompanyId','isNaN','MIN(id)','query','id\x20IN\x20?','\x22always\x22','LOAD\x20DATA\x20LOCAL\x20INFILE\x20\x27%s\x27\x20INTO\x20TABLE\x20%s\x20CHARACTER\x20SET\x20UTF8\x20FIELDS\x20TERMINATED\x20BY\x20\x27,\x27\x20ENCLOSED\x20BY\x20\x27\x22\x27\x20LINES\x20TERMINATED\x20BY\x20\x27\x0a\x27\x20IGNORE\x201\x20ROWS\x20(%s)\x20SET\x20id\x20=\x20NULL,\x20ListId\x20=\x20%s,\x20CompanyId\x20=\x20%s,\x20createdAt\x20=\x20\x27%s\x27,\x20updatedAt\x20=\x20\x27%s\x27','recallme','toString','../../../config/environment','cm_hopper','ListId\x20is\x20mandatory','appendFileSync','includes','DROP\x20TABLE\x20','map','unlink','join','phone\x20is\x20mandatory','.dialCheckDuplicateType\x20IN\x20(','createReadStream','keys','../../../config/logger','insert','main','priority','errors','contact:import:','writeFileSync','sequelize','firstName\x20is\x20mandatory','VoiceQueueId','into','squel','cm_contacts.ListId\x20=\x20','voice_queues','ListId\x20=\x20?','\x20=\x20?','.id\x20=\x20','from','catch','voice_queues_has_cm_lists','then','isNil','socket_timestamp','trim','arguments\x20\x20\x20','parse','each','import','papaparse','start','moment','cm_hopper_black','isNumber','campaigns','uncaughtException','campaigns_has_cm_lists','UserId','select','cm_contacts.id','length','YYYY-MM-DD\x20HH:mm:ss','\x22onlyIfOpen\x22','isValid','argv','test','Abort\x20parser','dateOfBirth','where','.CmListId','cm_contacts.priority','cm_contacts.createdAt','send','duplicates','updatedAt','affectedRows','field','cm_contacts_','server/files/tmp','binding\x20doesn\x27t\x20exists','SystemRow','data','path','fields','cm_contacts.phone\x20NOT\x20IN\x20(?)','header','.csv','code','CampaignId','rows','cm_contacts.updatedAt','ListId','cm_contacts','agent\x20not\x20exists','complete','finish','phone','stringify','replace','emit','cm_contacts.createdAt\x20=\x20?','message','push','undefined','lodash','No\x20agent\x20available','info','campaigns_has_cm_blacklists','CREATE\x20TABLE\x20','cm_contacts.ListId','file\x20doesn\x27t\x20exists','error','dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)','fromQuery','existsSync','../../../mysqldb'];(function(_0x4bfee1,_0x3740c5){const _0x9e5eb1=function(_0x3ac0f6){while(--_0x3ac0f6){_0x4bfee1['push'](_0x4bfee1['shift']());}};_0x9e5eb1(++_0x3740c5);}(a831_0x3740,0x19c));const a831_0x9e5e=function(_0x4bfee1,_0x3740c5){_0x4bfee1=_0x4bfee1-0x0;let _0x9e5eb1=a831_0x3740[_0x4bfee1];return _0x9e5eb1;};const _0x4d0593=a831_0x9e5e;'use strict';const fs=require('fs'),path=require(_0x4d0593('0x56')),_=require(_0x4d0593('0x6c')),Papa=require(_0x4d0593('0x35')),util=require('util'),moment=require(_0x4d0593('0x37')),squel=require(_0x4d0593('0x24')),db=require(_0x4d0593('0x77'))['db'],config=require(_0x4d0593('0xc')),logger=require(_0x4d0593('0x19'))(_0x4d0593('0x34')),{getSocket}=require('../../../rediscache'),socket=getSocket(),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[_0x4d0593('0x7e')](_0x4d0593('0x41'));function isEmail(_0x3ac0f6){const _0x266be8=_0x4d0593;return/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/[_0x266be8('0x45')](_0x3ac0f6);}function selectNotIn(_0xe480a2,_0x34c7fa,_0x9111fc,_0x4528cd,_0x5471fb){const _0xb462ae=_0x4d0593;return squel[_0xb462ae('0x3e')]()[_0xb462ae('0x50')](_0xb462ae('0x64'))[_0xb462ae('0x2a')](_0x4528cd)[_0xb462ae('0x14')](_0x34c7fa,null,_0x34c7fa+'.id\x20=\x20'+_0x4528cd+'.'+_0x9111fc)[_0xb462ae('0x48')](_0x4528cd+'.'+_0x9111fc+'\x20=\x20'+_0xe480a2+'.'+_0x9111fc)[_0xb462ae('0x48')](_0x34c7fa+_0xb462ae('0x16')+_0x5471fb[_0xb462ae('0x14')]()+')');}function insertCmHopper(_0x426f70,_0x1a6207,_0x35a4d8,_0x4ba6a2,_0x485cfa){const _0x915fe4=_0x4d0593,_0x5f2f29=['cm_contacts.phone','cm_contacts.scheduledat',_0x915fe4('0x3f'),_0x915fe4('0x71'),_0x1a6207+'.'+_0x4ba6a2,'cm_contacts.createdAt',_0x915fe4('0x5e'),_0x915fe4('0x4a'),_0x915fe4('0x1'),'\x22'+_0x485cfa+'\x22'];return squel[_0x915fe4('0x1a')]()[_0x915fe4('0x23')](_0x915fe4('0xd'))[_0x915fe4('0x75')]([_0x915fe4('0x64'),_0x915fe4('0x83'),'ContactId',_0x915fe4('0x5f'),_0x4ba6a2,_0x915fe4('0x7d'),_0x915fe4('0x4e'),'priority',_0x915fe4('0x3d'),_0x915fe4('0xa')],squel[_0x915fe4('0x3e')]()['fields'](_0x5f2f29)[_0x915fe4('0x2a')](_0x1a6207)[_0x915fe4('0x14')](_0x915fe4('0x60'),null,'cm_contacts.ListId\x20=\x20'+_0x1a6207+_0x915fe4('0x49'))[_0x915fe4('0x14')](_0x35a4d8,null,_0x35a4d8+_0x915fe4('0x29')+_0x1a6207+'.'+_0x4ba6a2)[_0x915fe4('0x48')](_0x1a6207+'.CmListId\x20=\x20?',_0x426f70)['where']('cm_contacts.createdAt\x20=\x20?',NOW)[_0x915fe4('0x48')](_0x915fe4('0x58'),selectNotIn(_0x1a6207,_0x35a4d8,_0x4ba6a2,'cm_hopper',[_0x915fe4('0x8'),_0x915fe4('0x42')]))[_0x915fe4('0x48')](_0x915fe4('0x58'),selectNotIn(_0x1a6207,_0x35a4d8,_0x4ba6a2,'cm_hopper',[_0x915fe4('0x8')])))[_0x915fe4('0xb')]();}function insertCmHopperBlack(_0x203f14,_0xf1fa3b,_0x4a18b0,_0x26b33a){const _0x15a1e5=_0x4d0593,_0x259304=[_0x15a1e5('0x82'),_0x15a1e5('0x3f'),_0x15a1e5('0x71'),_0xf1fa3b+'.'+_0x26b33a,_0x15a1e5('0x4b'),_0x15a1e5('0x5e')];return squel['insert']()['into'](_0x15a1e5('0x38'))['fromQuery']([_0x15a1e5('0x64'),'ContactId','ListId',_0x26b33a,_0x15a1e5('0x7d'),_0x15a1e5('0x4e')],squel['select']()['fields'](_0x259304)[_0x15a1e5('0x2a')](_0xf1fa3b)[_0x15a1e5('0x14')](_0x15a1e5('0x60'),null,_0x15a1e5('0x25')+_0xf1fa3b+'.CmListId')[_0x15a1e5('0x14')](_0x4a18b0,null,_0x4a18b0+'.id\x20=\x20'+_0xf1fa3b+'.'+_0x26b33a)[_0x15a1e5('0x48')](_0xf1fa3b+_0x15a1e5('0x7f'),_0x203f14)[_0x15a1e5('0x48')](_0x15a1e5('0x68'),NOW)[_0x15a1e5('0x48')](_0x15a1e5('0x58'),squel[_0x15a1e5('0x3e')]()[_0x15a1e5('0x50')](_0x15a1e5('0x64'))['from']('cm_hopper_black')[_0x15a1e5('0x48')](_0x15a1e5('0x27'),_0x203f14)[_0x15a1e5('0x48')](_0x26b33a+_0x15a1e5('0x28'),_0xf1fa3b+'.'+_0x26b33a)))[_0x15a1e5('0xb')]();}function insertCmContact(_0x491fd7,_0x8714d4,_0x3c2f8c,_0x11f76c){const _0x29a976=_0x4d0593,_0x501c43=_['concat'](_[_0x29a976('0x18')](_0x11f76c),[_0x29a976('0x5f'),_0x29a976('0x3'),_0x29a976('0x7d'),_0x29a976('0x4e')]);return squel['insert']()[_0x29a976('0x23')](_0x29a976('0x60'))[_0x29a976('0x75')](_0x501c43,squel[_0x29a976('0x3e')]()['fields'](_0x501c43)['from'](_0x8714d4)[_0x29a976('0x48')]('('+_0x3c2f8c[_0x29a976('0x14')](',')+')\x20NOT\x20IN\x20?',squel['select']()[_0x29a976('0x57')](_0x3c2f8c)['from'](_0x29a976('0x60'))[_0x29a976('0x48')](_0x29a976('0x27'),_0x491fd7)[_0x29a976('0x48')](_0x29a976('0x7a')))[_0x29a976('0x48')](_0x29a976('0x7'),squel[_0x29a976('0x3e')]()['field'](_0x29a976('0x5'),_0x29a976('0x0'))[_0x29a976('0x2a')](_0x8714d4)['group'](_0x3c2f8c[_0x29a976('0x14')](','))))[_0x29a976('0xb')]();}function handleStop(){const _0x5c95e8=_0x4d0593;logger[_0x5c95e8('0x6e')]('Received\x20SIGINT'),stopped=!![];}function handleUncaughtException(_0xa77cfb){const _0x3aa67d=_0x4d0593;logger[_0x3aa67d('0x73')](_0xa77cfb[_0x3aa67d('0x69')]);throw _0xa77cfb;}function handleError(_0x300be9,_0x28e50c){const _0x2402fe=_0x4d0593;stats['errors']['push']({'name':_0x28e50c[_0x2402fe('0x5b')],'message':_0x28e50c['message'],'row':_0x300be9});}function handleQuery(_0x1a6f53){const _0x58a994=_0x4d0593;return logger['info'](_0x1a6f53),db[_0x58a994('0x20')][_0x58a994('0x6')](_0x1a6f53)[_0x58a994('0x2d')](function([_0x43ec10]){const _0x258de2=_0x58a994;results[_0x258de2('0x6a')](_0x43ec10);})[_0x58a994('0x2b')](function(_0xf4ae5f){const _0x39d7a3=_0x58a994;logger[_0x39d7a3('0x73')](_0xf4ae5f[_0x39d7a3('0x69')]);});}function main(_0x2d9392,_0x50276a,_0x410e49,_0x4e3520){const _0x3ece75=_0x4d0593;logger[_0x3ece75('0x6e')](_0x3ece75('0x1b'),_0x2d9392,JSON[_0x3ece75('0x65')](_0x50276a)),process[_0x3ece75('0x4c')](_0x3ece75('0x36'));const _0x84d4d6=_0x50276a[_0x3ece75('0x84')],_0x15eb20=_0x50276a[_0x3ece75('0x2f')],_0x26edef=path[_0x3ece75('0x14')](config[_0x3ece75('0x81')],_0x3ece75('0x52'),_0x15eb20+_0x3ece75('0x5a')),_0x4976a1=_[_0x3ece75('0x18')](_0x84d4d6)[_0x3ece75('0x14')]();logger[_0x3ece75('0x6e')](_0x3ece75('0x59'),_0x4976a1),fs[_0x3ece75('0x1f')](_0x26edef,_0x4976a1+'\x0a'),Papa[_0x3ece75('0x32')](fs[_0x3ece75('0x17')](_0x2d9392),{'header':!![],'skipEmptyLines':!![],'step':function(_0x36ccd8,_0x434f7c){const _0xa79bfa=_0x3ece75;let _0x2e26bc=0x0,_0x20cac2=[];try{for(_0x2e26bc=0x0,_0x20cac2=[];_0x2e26bc<_0x36ccd8[_0xa79bfa('0x55')][_0xa79bfa('0x40')];_0x2e26bc++){stats[_0xa79bfa('0x5d')]+=0x1;if(_0x36ccd8[_0xa79bfa('0x1d')][_0x2e26bc])handleError(_0x36ccd8[_0xa79bfa('0x55')][_0x2e26bc],_0x36ccd8[_0xa79bfa('0x1d')][_0x2e26bc]);else{const _0x2afbc1=[];for(const _0x344101 in _0x84d4d6){if(typeof _0x84d4d6[_0x344101]!==_0xa79bfa('0x6b')){if(_0x36ccd8[_0xa79bfa('0x55')][_0x2e26bc][_0x84d4d6[_0x344101]]){let _0x4ddee8=_[_0xa79bfa('0x30')](_0x36ccd8[_0xa79bfa('0x55')][_0x2e26bc][_0x84d4d6[_0x344101]][_0xa79bfa('0x66')](/"/g,'\x27'));switch(_0x344101){case _0xa79bfa('0x83'):{const _0x50e517=moment(_0x4ddee8,_0xa79bfa('0x41'),!![]);_0x50e517[_0xa79bfa('0x43')]()?_0x20cac2[_0xa79bfa('0x6a')]('\x22'+_0x4ddee8+'\x22'):_0x2afbc1[_0xa79bfa('0x6a')]('scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)');}break;case _0xa79bfa('0x1c'):{const _0x1ca237=parseInt(_0x4ddee8);_0x4ddee8=_[_0xa79bfa('0x4')](_0x1ca237)||_0x1ca237<0x0||_0x1ca237>0x4?_0x4e3520?0x3:0x2:_0x1ca237,_0x20cac2[_0xa79bfa('0x6a')]('\x22'+_0x4ddee8+'\x22');}break;case'UserId':{const _0x3db8c0=parseInt(_0x4ddee8);_[_0xa79bfa('0x39')](_0x3db8c0)&&_[_0xa79bfa('0x10')](_0x410e49,_0x3db8c0)?_0x20cac2[_0xa79bfa('0x6a')]('\x22'+_0x3db8c0+'\x22'):_0x2afbc1[_0xa79bfa('0x6a')](_0xa79bfa('0x61'));}break;case _0xa79bfa('0x78'):isEmail(_0x4ddee8)?_0x20cac2[_0xa79bfa('0x6a')]('\x22'+_0x4ddee8+'\x22'):_0x2afbc1[_0xa79bfa('0x6a')](_0xa79bfa('0x2'));break;case _0xa79bfa('0x47'):{const _0x1f0c52=moment(_0x4ddee8,'YYYY-MM-DD',!![]);_0x1f0c52[_0xa79bfa('0x43')]()?_0x20cac2[_0xa79bfa('0x6a')]('\x22'+_0x4ddee8+'\x22'):_0x2afbc1[_0xa79bfa('0x6a')](_0xa79bfa('0x74'));}break;default:_0x20cac2['push']('\x22'+_0x4ddee8+'\x22');}}else switch(_0x344101){case _0xa79bfa('0x7b'):case _0xa79bfa('0x64'):_0x2afbc1[_0xa79bfa('0x6a')](_0x344101+'\x20not\x20specified');break;default:_0x20cac2[_0xa79bfa('0x6a')]('\x22\x22');}}}_0x2afbc1[_0xa79bfa('0x40')]?handleError(_0x36ccd8['data'][_0x2e26bc],{'code':_0xa79bfa('0x54'),'message':_0x2afbc1[_0xa79bfa('0x14')]()}):fs[_0xa79bfa('0xf')](_0x26edef,_0x20cac2[_0xa79bfa('0x14')]()+'\x0a'),_0x20cac2=[];}!(stats[_0xa79bfa('0x5d')]%0xc8)&&(socket[_0xa79bfa('0x67')](_0xa79bfa('0x1e')+_0x15eb20,stats),stats[_0xa79bfa('0x1d')]=[]);}stopped&&(logger[_0xa79bfa('0x6e')](_0xa79bfa('0x46')),_0x434f7c['abort']());}catch(_0x546ff7){handleError(_0x36ccd8[_0xa79bfa('0x55')][_0x2e26bc],{'code':'SystemError','message':_0x546ff7[_0xa79bfa('0x69')]}),logger[_0xa79bfa('0x73')](_0xa79bfa('0x80'),_0x546ff7[_0xa79bfa('0x69')]);}},'complete':function(){const _0x14a63a=_0x3ece75;try{const _0x138dfc=[];let _0x4eef5=_0x14a63a('0x60');_0x50276a[_0x14a63a('0x4d')]&&_0x50276a[_0x14a63a('0x4d')][_0x14a63a('0x40')]&&(_0x4eef5=_0x14a63a('0x51')+_0x15eb20,_0x138dfc['push'](_0x14a63a('0x70')+_0x4eef5+'\x20LIKE\x20cm_contacts;'));let _0x2fec42=util[_0x14a63a('0x7e')](_0x14a63a('0x9'),_0x26edef,_0x4eef5,_0x4976a1,_0x50276a['ListId'],_0x50276a[_0x14a63a('0x3')]||null,NOW,NOW);_[_0x14a63a('0x2e')](_0x84d4d6[_0x14a63a('0x83')])&&(_0x2fec42+=',\x20scheduledAt\x20=\x20NOW()'),_0x138dfc[_0x14a63a('0x6a')](_0x2fec42),_0x50276a['duplicates']&&_0x50276a[_0x14a63a('0x4d')][_0x14a63a('0x40')]&&(_0x138dfc[_0x14a63a('0x6a')](insertCmContact(_0x50276a[_0x14a63a('0x5f')],_0x4eef5,_0x50276a[_0x14a63a('0x4d')],_0x84d4d6)),_0x138dfc['push'](_0x14a63a('0x11')+_0x4eef5+';')),_0x138dfc[_0x14a63a('0x6a')](insertCmHopper(_0x50276a[_0x14a63a('0x5f')],_0x14a63a('0x2c'),_0x14a63a('0x26'),_0x14a63a('0x22'),_0x4e3520)),_0x138dfc['push'](insertCmHopperBlack(_0x50276a['ListId'],'voice_queues_has_cm_blacklists',_0x14a63a('0x26'),'VoiceQueueId')),_0x138dfc['push'](insertCmHopper(_0x50276a['ListId'],_0x14a63a('0x3c'),_0x14a63a('0x3a'),_0x14a63a('0x5c'),_0x4e3520)),_0x138dfc['push'](insertCmHopperBlack(_0x50276a['ListId'],_0x14a63a('0x6f'),_0x14a63a('0x3a'),'CampaignId')),Promise[_0x14a63a('0x33')](_0x138dfc,handleQuery)[_0x14a63a('0x2d')](function(){const _0x2ea8e4=_0x14a63a;stats[_0x2ea8e4('0x63')]=!![],stats['affectedRows']=_0x50276a['duplicates']&&_0x50276a[_0x2ea8e4('0x4d')][_0x2ea8e4('0x40')]?results[0x2][_0x2ea8e4('0x4f')]:results[0x0][_0x2ea8e4('0x4f')],socket[_0x2ea8e4('0x67')](_0x2ea8e4('0x1e')+_0x15eb20,stats),fs[_0x2ea8e4('0x13')](_0x2d9392),fs[_0x2ea8e4('0x13')](_0x26edef),process[_0x2ea8e4('0x79')](0x0);})[_0x14a63a('0x2b')](function(_0x3cfcb8){const _0x3d0d50=_0x14a63a;logger[_0x3d0d50('0x73')](_0x3cfcb8['message']);throw _0x3cfcb8;});}catch(_0x31f0b1){logger[_0x14a63a('0x73')](_0x14a63a('0x62'),_0x31f0b1['message']);throw _0x31f0b1;}},'error':function(_0x226168,_0x21e6fa,_0x4e3ae1,_0x3cba9e){throw new Error(_0x3cba9e);}});}function validate(){const _0xde35a9=_0x4d0593;if(process[_0xde35a9('0x44')]&&process[_0xde35a9('0x44')][_0xde35a9('0x40')]<0x4)throw new Error(_0xde35a9('0x31'));const _0x55692d=path[_0xde35a9('0x14')](config[_0xde35a9('0x81')],_0xde35a9('0x52'),process[_0xde35a9('0x44')][0x2]);if(!fs[_0xde35a9('0x76')](_0x55692d))throw new Error(_0xde35a9('0x72'));let _0x4540f2={},_0x57d7fd=0x0;try{_0x4540f2=JSON[_0xde35a9('0x32')](process[_0xde35a9('0x44')][0x3]);if(!_0x4540f2[_0xde35a9('0x84')])throw new Error(_0xde35a9('0x53'));if(!_0x4540f2[_0xde35a9('0x84')][_0xde35a9('0x64')])throw new Error(_0xde35a9('0x15'));if(!_0x4540f2[_0xde35a9('0x84')][_0xde35a9('0x7b')])throw new Error(_0xde35a9('0x21'));_0x4540f2[_0xde35a9('0x84')]['UserId']&&(_0x57d7fd=0x1);if(!_0x4540f2[_0xde35a9('0x5f')])throw new Error(_0xde35a9('0xe'));}catch(_0x10c320){throw new Error(_0xde35a9('0x7c'));}let _0x10bc9d=[];try{_0x10bc9d=_[_0xde35a9('0x12')](JSON[_0xde35a9('0x32')](process[_0xde35a9('0x44')][0x4]),'id');}catch(_0x10aa13){logger[_0xde35a9('0x6e')](_0xde35a9('0x6d'));}main(_0x55692d,_0x4540f2,_0x10bc9d,_0x57d7fd);}validate(),process['on']('SIGINT',handleStop),process['on'](_0x4d0593('0x3b'),handleUncaughtException); \ No newline at end of file +const a831_0x5903=['each','id\x20IN\x20?','send','YYYY-MM-DD','join','cm_contacts.ListId','root','.id\x20=\x20','fields','affectedRows','papaparse','binding\x20doesn\x27t\x20exists','toString','isNumber','isNil','recallme','scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)','info','argv','phone','import','then','finish','uncaughtException','firstName','cm_contacts.priority','email\x20wrong\x20format','campaigns_has_cm_lists','data','server/files/tmp','YYYY-MM-DD\x20HH:mm:ss','parse','cm_contacts.id','CampaignId','priority','.CmListId','cm_contacts.phone\x20NOT\x20IN\x20(?)','util','lodash','where','error','stringify','body\x20id\x20mandatory','.CmListId\x20=\x20?','../../../config/environment','cm_hopper','.dialCheckDuplicateType\x20IN\x20(','step','squel','CREATE\x20TABLE\x20','\x20=\x20?','\x20LIKE\x20cm_contacts;','path','field','query','push','message','main',',\x20scheduledAt\x20=\x20NOW()','UserId','cm_contacts.phone','phone\x20is\x20mandatory','contact:import:','writeFileSync','SystemRow','replace','updatedAt','into','CompanyId','select','SystemError','SIGINT','cm_contacts','length','Abort\x20parser','catch','ListId','\x22always\x22','cm_contacts.UserId','dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)','email','ListId\x20=\x20?','cm_hopper_black','moment','scheduledat','concat','../../../rediscache','start','../../../config/logger','binding','cm_contacts.createdAt\x20=\x20?','fromQuery','rows','test','cm_contacts.ListId\x20=\x20','map','exit','voice_queues','from','MIN(id)','cm_contacts.updatedAt','isValid','duplicates','\x20not\x20specified','arguments\x20\x20\x20','agent\x20not\x20exists','trim','min_id','VoiceQueueId','\x22onlyIfOpen\x22','unlink','ListId\x20is\x20mandatory','createdAt','emit','appendFileSync','voice_queues_has_cm_blacklists','includes','errors','insert','complete','ContactId','../../../mysqldb','sequelize','cm_contacts_','campaigns','header','createReadStream'];(function(_0x5fac04,_0x5903ea){const _0x5f2695=function(_0x23c426){while(--_0x23c426){_0x5fac04['push'](_0x5fac04['shift']());}};_0x5f2695(++_0x5903ea);}(a831_0x5903,0x1be));const a831_0x5f26=function(_0x5fac04,_0x5903ea){_0x5fac04=_0x5fac04-0x0;let _0x5f2695=a831_0x5903[_0x5fac04];return _0x5f2695;};const _0x16641e=a831_0x5f26;'use strict';const fs=require('fs'),path=require(_0x16641e('0x72')),_=require(_0x16641e('0x64')),Papa=require(_0x16641e('0x48')),util=require(_0x16641e('0x63')),moment=require(_0x16641e('0x12')),squel=require(_0x16641e('0x6e')),db=require(_0x16641e('0x38'))['db'],config=require(_0x16641e('0x6a')),logger=require(_0x16641e('0x17'))(_0x16641e('0x52')),{getSocket}=require(_0x16641e('0x15')),socket=getSocket(),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()['format'](_0x16641e('0x5c'));function isEmail(_0x23c426){const _0x1d105a=_0x16641e;return/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/[_0x1d105a('0x1c')](_0x23c426);}function selectNotIn(_0x1f9199,_0x1f4050,_0xb426b4,_0xd8bb5b,_0x4520c4){const _0x5b68f1=_0x16641e;return squel[_0x5b68f1('0x4')]()[_0x5b68f1('0x73')](_0x5b68f1('0x51'))['from'](_0xd8bb5b)[_0x5b68f1('0x42')](_0x1f4050,null,_0x1f4050+_0x5b68f1('0x45')+_0xd8bb5b+'.'+_0xb426b4)[_0x5b68f1('0x65')](_0xd8bb5b+'.'+_0xb426b4+'\x20=\x20'+_0x1f9199+'.'+_0xb426b4)[_0x5b68f1('0x65')](_0x1f4050+_0x5b68f1('0x6c')+_0x4520c4[_0x5b68f1('0x42')]()+')');}function insertCmHopper(_0x64138a,_0x17ec7e,_0x1ec5e5,_0xc90a13,_0x26a689){const _0x16c47c=_0x16641e,_0x521a67=[_0x16c47c('0x7a'),'cm_contacts.scheduledat',_0x16c47c('0x5e'),_0x16c47c('0x43'),_0x17ec7e+'.'+_0xc90a13,'cm_contacts.createdAt','cm_contacts.updatedAt',_0x16c47c('0x57'),_0x16c47c('0xd'),'\x22'+_0x26a689+'\x22'];return squel[_0x16c47c('0x35')]()['into']('cm_hopper')[_0x16c47c('0x1a')]([_0x16c47c('0x51'),_0x16c47c('0x13'),_0x16c47c('0x37'),'ListId',_0xc90a13,'createdAt',_0x16c47c('0x1'),_0x16c47c('0x60'),_0x16c47c('0x79'),_0x16c47c('0x4d')],squel['select']()[_0x16c47c('0x46')](_0x521a67)[_0x16c47c('0x21')](_0x17ec7e)[_0x16c47c('0x42')](_0x16c47c('0x7'),null,_0x16c47c('0x1d')+_0x17ec7e+_0x16c47c('0x61'))[_0x16c47c('0x42')](_0x1ec5e5,null,_0x1ec5e5+_0x16c47c('0x45')+_0x17ec7e+'.'+_0xc90a13)[_0x16c47c('0x65')](_0x17ec7e+_0x16c47c('0x69'),_0x64138a)[_0x16c47c('0x65')](_0x16c47c('0x19'),NOW)[_0x16c47c('0x65')]('cm_contacts.phone\x20NOT\x20IN\x20(?)',selectNotIn(_0x17ec7e,_0x1ec5e5,_0xc90a13,'cm_hopper',['\x22always\x22',_0x16c47c('0x2c')]))[_0x16c47c('0x65')](_0x16c47c('0x62'),selectNotIn(_0x17ec7e,_0x1ec5e5,_0xc90a13,_0x16c47c('0x6b'),[_0x16c47c('0xc')])))[_0x16c47c('0x4a')]();}function insertCmHopperBlack(_0x3573a6,_0x2e4daa,_0x10db0d,_0x25c50e){const _0x34cfde=_0x16641e,_0x5f3023=[_0x34cfde('0x7a'),'cm_contacts.id',_0x34cfde('0x43'),_0x2e4daa+'.'+_0x25c50e,'cm_contacts.createdAt',_0x34cfde('0x23')];return squel[_0x34cfde('0x35')]()['into'](_0x34cfde('0x11'))[_0x34cfde('0x1a')]([_0x34cfde('0x51'),_0x34cfde('0x37'),_0x34cfde('0xb'),_0x25c50e,'createdAt',_0x34cfde('0x1')],squel[_0x34cfde('0x4')]()[_0x34cfde('0x46')](_0x5f3023)[_0x34cfde('0x21')](_0x2e4daa)['join'](_0x34cfde('0x7'),null,_0x34cfde('0x1d')+_0x2e4daa+_0x34cfde('0x61'))[_0x34cfde('0x42')](_0x10db0d,null,_0x10db0d+_0x34cfde('0x45')+_0x2e4daa+'.'+_0x25c50e)[_0x34cfde('0x65')](_0x2e4daa+_0x34cfde('0x69'),_0x3573a6)['where'](_0x34cfde('0x19'),NOW)[_0x34cfde('0x65')](_0x34cfde('0x62'),squel['select']()['field']('phone')['from'](_0x34cfde('0x11'))[_0x34cfde('0x65')]('ListId\x20=\x20?',_0x3573a6)[_0x34cfde('0x65')](_0x25c50e+_0x34cfde('0x70'),_0x2e4daa+'.'+_0x25c50e)))['toString']();}function insertCmContact(_0x1698f1,_0x93a46,_0x1c36a4,_0x5ec5b4){const _0x64fd95=_0x16641e,_0xa079c7=_[_0x64fd95('0x14')](_['keys'](_0x5ec5b4),[_0x64fd95('0xb'),_0x64fd95('0x3'),_0x64fd95('0x2f'),_0x64fd95('0x1')]);return squel['insert']()[_0x64fd95('0x2')]('cm_contacts')[_0x64fd95('0x1a')](_0xa079c7,squel[_0x64fd95('0x4')]()[_0x64fd95('0x46')](_0xa079c7)['from'](_0x93a46)[_0x64fd95('0x65')]('('+_0x1c36a4[_0x64fd95('0x42')](',')+')\x20NOT\x20IN\x20?',squel[_0x64fd95('0x4')]()[_0x64fd95('0x46')](_0x1c36a4)[_0x64fd95('0x21')]('cm_contacts')[_0x64fd95('0x65')](_0x64fd95('0x10'),_0x1698f1)['where']('deletedAt\x20IS\x20NULL'))['where'](_0x64fd95('0x3f'),squel[_0x64fd95('0x4')]()[_0x64fd95('0x73')](_0x64fd95('0x22'),_0x64fd95('0x2a'))[_0x64fd95('0x21')](_0x93a46)['group'](_0x1c36a4[_0x64fd95('0x42')](','))))[_0x64fd95('0x4a')]();}function handleStop(){const _0x4499c3=_0x16641e;logger[_0x4499c3('0x4f')]('Received\x20SIGINT'),stopped=!![];}function handleUncaughtException(_0x3f5773){const _0x4a28dd=_0x16641e;logger[_0x4a28dd('0x66')](_0x3f5773['message']);throw _0x3f5773;}function handleError(_0x483947,_0x2a3684){const _0x135954=_0x16641e;stats[_0x135954('0x34')][_0x135954('0x75')]({'name':_0x2a3684['code'],'message':_0x2a3684[_0x135954('0x76')],'row':_0x483947});}function handleQuery(_0x3733b9){const _0x475d24=_0x16641e;return logger['info'](_0x3733b9),db[_0x475d24('0x39')][_0x475d24('0x74')](_0x3733b9)[_0x475d24('0x53')](function([_0x4f4922]){results['push'](_0x4f4922);})[_0x475d24('0xa')](function(_0x4a159a){const _0xefcdb4=_0x475d24;logger[_0xefcdb4('0x66')](_0x4a159a['message']);});}function main(_0xd013ed,_0x31887a,_0x505304,_0x351db2){const _0x341e05=_0x16641e;logger[_0x341e05('0x4f')](_0x341e05('0x77'),_0xd013ed,JSON[_0x341e05('0x67')](_0x31887a)),process[_0x341e05('0x40')](_0x341e05('0x16'));const _0x591b58=_0x31887a[_0x341e05('0x18')],_0x169cf1=_0x31887a['socket_timestamp'],_0x5a760e=path[_0x341e05('0x42')](config[_0x341e05('0x44')],_0x341e05('0x5b'),_0x169cf1+'.csv'),_0x82c19a=_['keys'](_0x591b58)[_0x341e05('0x42')]();logger['info'](_0x341e05('0x3c'),_0x82c19a),fs[_0x341e05('0x7d')](_0x5a760e,_0x82c19a+'\x0a'),Papa[_0x341e05('0x5d')](fs[_0x341e05('0x3d')](_0xd013ed),{'header':!![],'skipEmptyLines':!![],'step':function(_0x738dcf,_0x3b2ae0){const _0x297a23=_0x341e05;let _0xc3d5d5=0x0,_0xe689ae=[];try{for(_0xc3d5d5=0x0,_0xe689ae=[];_0xc3d5d5<_0x738dcf['data'][_0x297a23('0x8')];_0xc3d5d5++){stats['rows']+=0x1;if(_0x738dcf[_0x297a23('0x34')][_0xc3d5d5])handleError(_0x738dcf[_0x297a23('0x5a')][_0xc3d5d5],_0x738dcf[_0x297a23('0x34')][_0xc3d5d5]);else{const _0x451d7c=[];for(const _0x38f804 in _0x591b58){if(typeof _0x591b58[_0x38f804]!=='undefined'){if(_0x738dcf[_0x297a23('0x5a')][_0xc3d5d5][_0x591b58[_0x38f804]]){let _0xad1631=_[_0x297a23('0x29')](_0x738dcf[_0x297a23('0x5a')][_0xc3d5d5][_0x591b58[_0x38f804]][_0x297a23('0x0')](/"/g,'\x27'));switch(_0x38f804){case _0x297a23('0x13'):{const _0x108fa9=moment(_0xad1631,_0x297a23('0x5c'),!![]);_0x108fa9[_0x297a23('0x24')]()?_0xe689ae[_0x297a23('0x75')]('\x22'+_0xad1631+'\x22'):_0x451d7c['push'](_0x297a23('0x4e'));}break;case _0x297a23('0x60'):{const _0xb1d36=parseInt(_0xad1631);_0xad1631=_['isNaN'](_0xb1d36)||_0xb1d36<0x0||_0xb1d36>0x4?_0x351db2?0x3:0x2:_0xb1d36,_0xe689ae['push']('\x22'+_0xad1631+'\x22');}break;case _0x297a23('0x79'):{const _0x363d04=parseInt(_0xad1631);_[_0x297a23('0x4b')](_0x363d04)&&_[_0x297a23('0x33')](_0x505304,_0x363d04)?_0xe689ae[_0x297a23('0x75')]('\x22'+_0x363d04+'\x22'):_0x451d7c['push'](_0x297a23('0x28'));}break;case _0x297a23('0xf'):isEmail(_0xad1631)?_0xe689ae[_0x297a23('0x75')]('\x22'+_0xad1631+'\x22'):_0x451d7c['push'](_0x297a23('0x58'));break;case'dateOfBirth':{const _0x25f5a9=moment(_0xad1631,_0x297a23('0x41'),!![]);_0x25f5a9[_0x297a23('0x24')]()?_0xe689ae[_0x297a23('0x75')]('\x22'+_0xad1631+'\x22'):_0x451d7c['push'](_0x297a23('0xe'));}break;default:_0xe689ae[_0x297a23('0x75')]('\x22'+_0xad1631+'\x22');}}else switch(_0x38f804){case _0x297a23('0x56'):case _0x297a23('0x51'):_0x451d7c[_0x297a23('0x75')](_0x38f804+_0x297a23('0x26'));break;default:_0xe689ae[_0x297a23('0x75')]('\x22\x22');}}}_0x451d7c[_0x297a23('0x8')]?handleError(_0x738dcf['data'][_0xc3d5d5],{'code':_0x297a23('0x7e'),'message':_0x451d7c[_0x297a23('0x42')]()}):fs[_0x297a23('0x31')](_0x5a760e,_0xe689ae[_0x297a23('0x42')]()+'\x0a'),_0xe689ae=[];}!(stats[_0x297a23('0x1b')]%0xc8)&&(socket[_0x297a23('0x30')](_0x297a23('0x7c')+_0x169cf1,stats),stats[_0x297a23('0x34')]=[]);}stopped&&(logger[_0x297a23('0x4f')](_0x297a23('0x9')),_0x3b2ae0['abort']());}catch(_0x256b81){handleError(_0x738dcf['data'][_0xc3d5d5],{'code':_0x297a23('0x5'),'message':_0x256b81[_0x297a23('0x76')]}),logger[_0x297a23('0x66')](_0x297a23('0x6d'),_0x256b81[_0x297a23('0x76')]);}},'complete':function(){const _0x341f10=_0x341e05;try{const _0x12dc2a=[];let _0x235351=_0x341f10('0x7');_0x31887a[_0x341f10('0x25')]&&_0x31887a['duplicates'][_0x341f10('0x8')]&&(_0x235351=_0x341f10('0x3a')+_0x169cf1,_0x12dc2a[_0x341f10('0x75')](_0x341f10('0x6f')+_0x235351+_0x341f10('0x71')));let _0x3cc04f=util['format']('LOAD\x20DATA\x20LOCAL\x20INFILE\x20\x27%s\x27\x20INTO\x20TABLE\x20%s\x20CHARACTER\x20SET\x20UTF8\x20FIELDS\x20TERMINATED\x20BY\x20\x27,\x27\x20ENCLOSED\x20BY\x20\x27\x22\x27\x20LINES\x20TERMINATED\x20BY\x20\x27\x0a\x27\x20IGNORE\x201\x20ROWS\x20(%s)\x20SET\x20id\x20=\x20NULL,\x20ListId\x20=\x20%s,\x20CompanyId\x20=\x20%s,\x20createdAt\x20=\x20\x27%s\x27,\x20updatedAt\x20=\x20\x27%s\x27',_0x5a760e,_0x235351,_0x82c19a,_0x31887a[_0x341f10('0xb')],_0x31887a[_0x341f10('0x3')]||null,NOW,NOW);_[_0x341f10('0x4c')](_0x591b58[_0x341f10('0x13')])&&(_0x3cc04f+=_0x341f10('0x78')),_0x12dc2a[_0x341f10('0x75')](_0x3cc04f),_0x31887a[_0x341f10('0x25')]&&_0x31887a[_0x341f10('0x25')][_0x341f10('0x8')]&&(_0x12dc2a[_0x341f10('0x75')](insertCmContact(_0x31887a[_0x341f10('0xb')],_0x235351,_0x31887a['duplicates'],_0x591b58)),_0x12dc2a[_0x341f10('0x75')]('DROP\x20TABLE\x20'+_0x235351+';')),_0x12dc2a[_0x341f10('0x75')](insertCmHopper(_0x31887a[_0x341f10('0xb')],'voice_queues_has_cm_lists',_0x341f10('0x20'),'VoiceQueueId',_0x351db2)),_0x12dc2a[_0x341f10('0x75')](insertCmHopperBlack(_0x31887a[_0x341f10('0xb')],_0x341f10('0x32'),_0x341f10('0x20'),_0x341f10('0x2b'))),_0x12dc2a[_0x341f10('0x75')](insertCmHopper(_0x31887a[_0x341f10('0xb')],_0x341f10('0x59'),_0x341f10('0x3b'),_0x341f10('0x5f'),_0x351db2)),_0x12dc2a[_0x341f10('0x75')](insertCmHopperBlack(_0x31887a[_0x341f10('0xb')],'campaigns_has_cm_blacklists',_0x341f10('0x3b'),'CampaignId')),Promise[_0x341f10('0x3e')](_0x12dc2a,handleQuery)[_0x341f10('0x53')](function(){const _0x4e9937=_0x341f10;stats[_0x4e9937('0x54')]=!![],stats[_0x4e9937('0x47')]=_0x31887a[_0x4e9937('0x25')]&&_0x31887a[_0x4e9937('0x25')]['length']?results[0x2][_0x4e9937('0x47')]:results[0x0][_0x4e9937('0x47')],socket[_0x4e9937('0x30')](_0x4e9937('0x7c')+_0x169cf1,stats),fs[_0x4e9937('0x2d')](_0xd013ed),fs[_0x4e9937('0x2d')](_0x5a760e),process[_0x4e9937('0x1f')](0x0);})[_0x341f10('0xa')](function(_0x51e884){const _0x49371f=_0x341f10;logger[_0x49371f('0x66')](_0x51e884[_0x49371f('0x76')]);throw _0x51e884;});}catch(_0x128d4e){logger[_0x341f10('0x66')](_0x341f10('0x36'),_0x128d4e['message']);throw _0x128d4e;}},'error':function(_0x12f2b3,_0x53c95a,_0x2f3901,_0x462a90){throw new Error(_0x462a90);}});}function validate(){const _0x2d6bfc=_0x16641e;if(process[_0x2d6bfc('0x50')]&&process[_0x2d6bfc('0x50')]['length']<0x4)throw new Error(_0x2d6bfc('0x27'));const _0x32ddcd=path[_0x2d6bfc('0x42')](config[_0x2d6bfc('0x44')],_0x2d6bfc('0x5b'),process[_0x2d6bfc('0x50')][0x2]);if(!fs['existsSync'](_0x32ddcd))throw new Error('file\x20doesn\x27t\x20exists');let _0x3a9bf4={},_0x280e26=0x0;try{_0x3a9bf4=JSON['parse'](process['argv'][0x3]);if(!_0x3a9bf4[_0x2d6bfc('0x18')])throw new Error(_0x2d6bfc('0x49'));if(!_0x3a9bf4['binding'][_0x2d6bfc('0x51')])throw new Error(_0x2d6bfc('0x7b'));if(!_0x3a9bf4['binding']['firstName'])throw new Error('firstName\x20is\x20mandatory');_0x3a9bf4[_0x2d6bfc('0x18')]['UserId']&&(_0x280e26=0x1);if(!_0x3a9bf4[_0x2d6bfc('0xb')])throw new Error(_0x2d6bfc('0x2e'));}catch(_0x2635fe){throw new Error(_0x2d6bfc('0x68'));}let _0x46aa77=[];try{_0x46aa77=_[_0x2d6bfc('0x1e')](JSON[_0x2d6bfc('0x5d')](process[_0x2d6bfc('0x50')][0x4]),'id');}catch(_0x360d74){logger['info']('No\x20agent\x20available');}main(_0x32ddcd,_0x3a9bf4,_0x46aa77,_0x280e26);}validate(),process['on'](_0x16641e('0x6'),handleStop),process['on'](_0x16641e('0x55'),handleUncaughtException); \ No newline at end of file diff --git a/server/components/integrations/configuration.js b/server/components/integrations/configuration.js index a599a42..f5fa510 100644 --- a/server/components/integrations/configuration.js +++ b/server/components/integrations/configuration.js @@ -1 +1 @@ -const a832_0x1708=['Member\x20Name','keyValue','endtime','Agent\x20Ring','Agent\x20Name','agentcompleteAt','UniqueId','toLowerCase','[xCALLY\x20Ticket]','Duration','***\x20Agent\x20Info\x20***','destcalleridnum','agentcalledAt','uniqueid','billableseconds','Agent\x20Number','Answer\x20Time','string','destcalleridname','agentconnectAt','***\x20Time\x20Info\x20***','queue','outbound','Outbound\x20Call','Called\x20Number','Agent\x20Complete','calleridname','destexten','Talk\x20Time','membername','Billable\x20Time','calleridnum','variable','voice','holdtime','Complete\x20Time','Agent\x20Connect','push','getSubjects','***\x20Call\x20Info\x20***','Date','duration','Call\x20To','starttime'];(function(_0x45e47f,_0x1708aa){const _0x24c0c9=function(_0x283dee){while(--_0x283dee){_0x45e47f['push'](_0x45e47f['shift']());}};_0x24c0c9(++_0x1708aa);}(a832_0x1708,0xe6));const a832_0x24c0=function(_0x45e47f,_0x1708aa){_0x45e47f=_0x45e47f-0x0;let _0x24c0c9=a832_0x1708[_0x45e47f];return _0x24c0c9;};const _0x2056c1=a832_0x24c0;'use strict';exports[_0x2056c1('0x1c')]=function(_0x283dee,_0x2e4a62){const _0x4a562f=_0x2056c1,_0x3291d8=[{'type':'string','content':_0x4a562f('0x2a'),'variableName':null}];switch(_0x283dee[_0x4a562f('0x29')]()){case _0x4a562f('0x17'):switch(_0x2e4a62[_0x4a562f('0x29')]()){case'inbound':_0x3291d8['push']({'type':_0x4a562f('0x16'),'content':'','variableName':_0x4a562f('0xb')}),_0x3291d8[_0x4a562f('0x1b')]({'type':_0x4a562f('0x16'),'content':'','variableName':_0x4a562f('0x15')});break;case'outbound':_0x3291d8['push']({'type':'string','content':_0x4a562f('0xd'),'variableName':null}),_0x3291d8[_0x4a562f('0x1b')]({'type':_0x4a562f('0x16'),'content':'','variableName':_0x4a562f('0x1')});break;}}return _0x3291d8;},exports['getDescriptions']=function(_0x432ff0,_0x2e8905){const _0x295110=_0x2056c1;let _0x45ef66=[];switch(_0x432ff0[_0x295110('0x29')]()){case'voice':switch(_0x2e8905[_0x295110('0x29')]()){case'inbound':_0x45ef66=[{'type':_0x295110('0x7'),'content':_0x295110('0x1d'),'key':null,'keyType':null,'variableName':null},{'type':_0x295110('0x23'),'content':'','key':'Caller\x20Number','keyType':'variable','variableName':_0x295110('0x15')},{'type':_0x295110('0x23'),'content':'','key':'Caller\x20Name','keyType':_0x295110('0x16'),'variableName':_0x295110('0x10')},{'type':'keyValue','content':'','key':_0x295110('0x20'),'keyType':_0x295110('0x16'),'variableName':_0x295110('0x11')},{'type':_0x295110('0x23'),'content':'','key':'Queue','keyType':'variable','variableName':_0x295110('0xb')},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x28'),'keyType':_0x295110('0x16'),'variableName':'uniqueid'},{'type':'keyValue','content':'','key':_0x295110('0x1e'),'keyType':_0x295110('0x16'),'variableName':_0x295110('0x2')},{'type':_0x295110('0x7'),'content':_0x295110('0x0'),'key':null,'keyType':null,'variableName':null},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x26'),'keyType':_0x295110('0x16'),'variableName':_0x295110('0x8')},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x5'),'keyType':_0x295110('0x16'),'variableName':_0x295110('0x1')},{'type':_0x295110('0x7'),'content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':_0x295110('0x25'),'keyType':_0x295110('0x16'),'variableName':'agentcalledAt'},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x1a'),'keyType':'variable','variableName':_0x295110('0x9')},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0xf'),'keyType':_0x295110('0x16'),'variableName':_0x295110('0x27')},{'type':_0x295110('0x23'),'content':'','key':'Hold\x20Time','keyType':'variable','variableName':_0x295110('0x18')},{'type':'keyValue','content':'','key':_0x295110('0x12'),'keyType':_0x295110('0x16'),'variableName':'talktime'}];break;case _0x295110('0xc'):_0x45ef66=[{'type':_0x295110('0x7'),'content':'***\x20Call\x20Info\x20***','variableName':null},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0xe'),'keyType':_0x295110('0x16'),'keyContent':'','variableName':'destcalleridnum'},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x22'),'keyType':_0x295110('0x16'),'keyContent':'','variableName':_0x295110('0x13')},{'type':'keyValue','content':'','key':_0x295110('0x28'),'keyType':_0x295110('0x16'),'keyContent':'','variableName':_0x295110('0x3')},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x1e'),'keyType':_0x295110('0x16'),'keyContent':'','variableName':_0x295110('0x21')},{'type':_0x295110('0x7'),'content':_0x295110('0xa')},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x6'),'keyType':_0x295110('0x16'),'keyContent':'','variableName':'answertime'},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x19'),'keyType':'variable','keyContent':'','variableName':_0x295110('0x24')},{'type':'keyValue','content':'','key':_0x295110('0x2b'),'keyType':'variable','keyContent':'','variableName':_0x295110('0x1f')},{'type':_0x295110('0x23'),'content':'','key':_0x295110('0x14'),'keyType':_0x295110('0x16'),'keyContent':'','variableName':_0x295110('0x4')}];break;}}return _0x45ef66;}; \ No newline at end of file +const a832_0x2867=['outbound','Answer\x20Time','Member\x20Name','Queue','Complete\x20Time','destcalleridname','UniqueId','inbound','queue','Talk\x20Time','uniqueid','agentcompleteAt','variable','getSubjects','[xCALLY\x20Ticket]','answertime','Agent\x20Number','keyValue','string','***\x20Agent\x20Info\x20***','calleridnum','***\x20Call\x20Info\x20***','Date','voice','getDescriptions','duration','destcalleridnum','Duration','endtime','Billable\x20Time','calleridname','membername','***\x20Time\x20Info\x20***','agentconnectAt','Caller\x20Number','Call\x20To','Hold\x20Time','push','toLowerCase','agentcalledAt','Agent\x20Ring'];(function(_0x2fd273,_0x286719){const _0x3d367a=function(_0x2f636c){while(--_0x2f636c){_0x2fd273['push'](_0x2fd273['shift']());}};_0x3d367a(++_0x286719);}(a832_0x2867,0x6f));const a832_0x3d36=function(_0x2fd273,_0x286719){_0x2fd273=_0x2fd273-0x0;let _0x3d367a=a832_0x2867[_0x2fd273];return _0x3d367a;};const _0x5174ef=a832_0x3d36;'use strict';exports[_0x5174ef('0x19')]=function(_0x2f636c,_0x1d2158){const _0x124c75=_0x5174ef,_0x51bc44=[{'type':_0x124c75('0x1e'),'content':_0x124c75('0x1a'),'variableName':null}];switch(_0x2f636c[_0x124c75('0x9')]()){case'voice':switch(_0x1d2158[_0x124c75('0x9')]()){case _0x124c75('0x13'):_0x51bc44[_0x124c75('0x8')]({'type':'variable','content':'','variableName':'queue'}),_0x51bc44[_0x124c75('0x8')]({'type':'variable','content':'','variableName':'calleridnum'});break;case _0x124c75('0xc'):_0x51bc44[_0x124c75('0x8')]({'type':_0x124c75('0x1e'),'content':'Outbound\x20Call','variableName':null}),_0x51bc44[_0x124c75('0x8')]({'type':'variable','content':'','variableName':_0x124c75('0x26')});break;}}return _0x51bc44;},exports[_0x5174ef('0x24')]=function(_0x19e2e8,_0x971b6e){const _0x21721d=_0x5174ef;let _0x223180=[];switch(_0x19e2e8[_0x21721d('0x9')]()){case _0x21721d('0x23'):switch(_0x971b6e['toLowerCase']()){case _0x21721d('0x13'):_0x223180=[{'type':_0x21721d('0x1e'),'content':_0x21721d('0x21'),'key':null,'keyType':null,'variableName':null},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x5'),'keyType':'variable','variableName':_0x21721d('0x20')},{'type':_0x21721d('0x1d'),'content':'','key':'Caller\x20Name','keyType':_0x21721d('0x18'),'variableName':_0x21721d('0x1')},{'type':'keyValue','content':'','key':_0x21721d('0x6'),'keyType':_0x21721d('0x18'),'variableName':'destexten'},{'type':'keyValue','content':'','key':_0x21721d('0xf'),'keyType':_0x21721d('0x18'),'variableName':_0x21721d('0x14')},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x12'),'keyType':_0x21721d('0x18'),'variableName':_0x21721d('0x16')},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x22'),'keyType':_0x21721d('0x18'),'variableName':'agentcalledAt'},{'type':'string','content':_0x21721d('0x1f'),'key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':'Agent\x20Name','keyType':_0x21721d('0x18'),'variableName':_0x21721d('0x11')},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x1c'),'keyType':_0x21721d('0x18'),'variableName':_0x21721d('0x26')},{'type':_0x21721d('0x1e'),'content':_0x21721d('0x3'),'key':null,'keyType':null,'variableName':null},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0xb'),'keyType':_0x21721d('0x18'),'variableName':_0x21721d('0xa')},{'type':_0x21721d('0x1d'),'content':'','key':'Agent\x20Connect','keyType':_0x21721d('0x18'),'variableName':_0x21721d('0x4')},{'type':_0x21721d('0x1d'),'content':'','key':'Agent\x20Complete','keyType':_0x21721d('0x18'),'variableName':_0x21721d('0x17')},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x7'),'keyType':'variable','variableName':'holdtime'},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x15'),'keyType':_0x21721d('0x18'),'variableName':'talktime'}];break;case _0x21721d('0xc'):_0x223180=[{'type':_0x21721d('0x1e'),'content':_0x21721d('0x21'),'variableName':null},{'type':'keyValue','content':'','key':'Called\x20Number','keyType':_0x21721d('0x18'),'keyContent':'','variableName':_0x21721d('0x26')},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0xe'),'keyType':_0x21721d('0x18'),'keyContent':'','variableName':_0x21721d('0x2')},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x12'),'keyType':'variable','keyContent':'','variableName':_0x21721d('0x16')},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x22'),'keyType':_0x21721d('0x18'),'keyContent':'','variableName':'starttime'},{'type':_0x21721d('0x1e'),'content':_0x21721d('0x3')},{'type':'keyValue','content':'','key':_0x21721d('0xd'),'keyType':_0x21721d('0x18'),'keyContent':'','variableName':_0x21721d('0x1b')},{'type':_0x21721d('0x1d'),'content':'','key':_0x21721d('0x10'),'keyType':_0x21721d('0x18'),'keyContent':'','variableName':_0x21721d('0x28')},{'type':'keyValue','content':'','key':_0x21721d('0x27'),'keyType':_0x21721d('0x18'),'keyContent':'','variableName':_0x21721d('0x25')},{'type':'keyValue','content':'','key':_0x21721d('0x0'),'keyType':_0x21721d('0x18'),'keyContent':'','variableName':'billableseconds'}];break;}}return _0x223180;}; \ No newline at end of file diff --git a/server/components/interaction/service.js b/server/components/interaction/service.js index b9fff51..4c38025 100644 --- a/server/components/interaction/service.js +++ b/server/components/interaction/service.js @@ -1 +1 @@ -const a833_0x314b=['html','then','fax-interactions','chat-interactions','InteractionId','omit','query','unknown','upperFirst','sms-interactions','tracked','toLowerCase','../../mysqldb','lodash','error','role','catch','[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','../../config/logger','update','mail-interactions','name','null','fax','body','Interaction','phone'];(function(_0x592672,_0x314bc0){const _0xb8d7b2=function(_0x9bd5e1){while(--_0x9bd5e1){_0x592672['push'](_0x592672['shift']());}};_0xb8d7b2(++_0x314bc0);}(a833_0x314b,0xba));const a833_0xb8d7=function(_0x592672,_0x314bc0){_0x592672=_0x592672-0x0;let _0xb8d7b2=a833_0x314b[_0x592672];return _0xb8d7b2;};const _0xa4e698=a833_0xb8d7;'use strict';const _=require(_0xa4e698('0x10')),db=require(_0xa4e698('0xf'))['db'],loggers={'openchannel':require(_0xa4e698('0x15'))('openchannel-interactions'),'mail':require(_0xa4e698('0x15'))(_0xa4e698('0x17')),'fax':require(_0xa4e698('0x15'))(_0xa4e698('0x5')),'sms':require(_0xa4e698('0x15'))(_0xa4e698('0xc')),'chat':require('../../config/logger')(_0xa4e698('0x6')),'whatsapp':require('../../config/logger')('whatsapp-interactions')};function getInteractionId(_0x9bd5e1,_0xdc5fb,_0x5f3b96){const _0x5ac242=_0xa4e698;if(_0x9bd5e1&&_0x9bd5e1[_[_0x5ac242('0xb')](_0x5f3b96)+_0x5ac242('0x7')])return _0x9bd5e1[_[_0x5ac242('0xb')](_0x5f3b96)+'InteractionId'];else{if(_0x9bd5e1&&_0x9bd5e1['id'])return _0x9bd5e1['id'];else return _0xdc5fb&&_0xdc5fb['id']?_0xdc5fb['id']:_0x5ac242('0xa');}}function log(_0x5bd8a2,_0x8b9c38,_0x11e757,_0x54dcc6,_0x3f114a,_0x4200f3){const _0x54d57d=_0xa4e698;loggers[_0x3f114a[_0x54d57d('0xe')]()][_0x5bd8a2](_0x54d57d('0x14'),_0x4200f3['toUpperCase'](),_0x8b9c38?_0x8b9c38['id']:null,_0x8b9c38?_0x8b9c38[_0x54d57d('0x18')]:null,_0x8b9c38?_0x8b9c38[_0x54d57d('0x12')]:null,getInteractionId(_0x11e757,_0x54dcc6,_0x3f114a),_0x11e757?JSON['stringify'](_0x11e757):_0x54d57d('0x19'));}function updateUser(_0x140c28,_0xd7c383,_0x30a177,_0x45e0d9,_0x3732ae){const _0x5a0c41=_0xa4e698;db[_[_0x5a0c41('0xb')](_0x45e0d9)+_0x5a0c41('0x1')]['findOne']({'where':{'id':getInteractionId(_0xd7c383,_0x30a177,_0x45e0d9)}})[_0x5a0c41('0x4')](function(_0x463fce){const _0x4e0214=_0x5a0c41;if(_0x463fce)return _0x463fce[_0x4e0214('0x16')]({'UserId':_0x140c28?_0x140c28['id']:null});})[_0x5a0c41('0x4')](function(_0xd81554){_0xd81554&&log('info',_0x140c28,_0xd7c383,_0x30a177,_0x45e0d9,_0x3732ae);})[_0x5a0c41('0x13')](function(){const _0x1c73ee=_0x5a0c41;log(_0x1c73ee('0x11'),_0x140c28,_0xd7c383,_0x30a177,_0x45e0d9,_0x3732ae);});}exports[_0xa4e698('0xd')]=function(_0x144b71,_0x368405){return function(_0x4a8006,_0x532396,_0x3f7b74){const _0x38c40d=a833_0xb8d7,_0xb22586=_0x4a8006['user'];let _0x19bf7b={};const _0x329652=_0x4a8006[_0x38c40d('0x9')];_0x19bf7b&&(_0x19bf7b=_['clone'](_0x4a8006['body']),_0x19bf7b=_[_0x38c40d('0x8')](_0x19bf7b,[_0x38c40d('0x0'),_0x38c40d('0x3'),_0x38c40d('0x2'),_0x38c40d('0x1a'),'mobile'])),updateUser(_0xb22586,_0x19bf7b,_0x329652,_0x144b71,_0x368405),_0x3f7b74(null);};}; \ No newline at end of file +const a833_0x4f76=['sms-interactions','omit','InteractionId','null','upperFirst','query','chat-interactions','clone','toUpperCase','role','../../mysqldb','catch','findOne','Interaction','mobile','phone','toLowerCase','openchannel-interactions','whatsapp-interactions','body','mail-interactions','html','stringify','unknown','then','fax','../../config/logger','fax-interactions','error'];(function(_0x40e29f,_0x4f7607){const _0x63fd2b=function(_0x2b96cf){while(--_0x2b96cf){_0x40e29f['push'](_0x40e29f['shift']());}};_0x63fd2b(++_0x4f7607);}(a833_0x4f76,0x10b));const a833_0x63fd=function(_0x40e29f,_0x4f7607){_0x40e29f=_0x40e29f-0x0;let _0x63fd2b=a833_0x4f76[_0x40e29f];return _0x63fd2b;};const _0x343464=a833_0x63fd;'use strict';const _=require('lodash'),db=require(_0x343464('0x4'))['db'],loggers={'openchannel':require(_0x343464('0x14'))(_0x343464('0xb')),'mail':require(_0x343464('0x14'))(_0x343464('0xe')),'fax':require('../../config/logger')(_0x343464('0x15')),'sms':require(_0x343464('0x14'))(_0x343464('0x17')),'chat':require(_0x343464('0x14'))(_0x343464('0x0')),'whatsapp':require(_0x343464('0x14'))(_0x343464('0xc'))};function getInteractionId(_0x2b96cf,_0x1abdb8,_0x4eee90){const _0x4b69b0=_0x343464;if(_0x2b96cf&&_0x2b96cf[_['upperFirst'](_0x4eee90)+_0x4b69b0('0x19')])return _0x2b96cf[_[_0x4b69b0('0x1b')](_0x4eee90)+_0x4b69b0('0x19')];else{if(_0x2b96cf&&_0x2b96cf['id'])return _0x2b96cf['id'];else return _0x1abdb8&&_0x1abdb8['id']?_0x1abdb8['id']:_0x4b69b0('0x11');}}function log(_0x379604,_0x3428be,_0x1965fd,_0x5d2356,_0x1fdc9b,_0x11e36d){const _0x4f345d=_0x343464;loggers[_0x1fdc9b[_0x4f345d('0xa')]()][_0x379604]('[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x11e36d[_0x4f345d('0x2')](),_0x3428be?_0x3428be['id']:null,_0x3428be?_0x3428be['name']:null,_0x3428be?_0x3428be[_0x4f345d('0x3')]:null,getInteractionId(_0x1965fd,_0x5d2356,_0x1fdc9b),_0x1965fd?JSON[_0x4f345d('0x10')](_0x1965fd):_0x4f345d('0x1a'));}function updateUser(_0x259a8c,_0x2344ab,_0xd41464,_0x5a8003,_0x7245c7){const _0x320b16=_0x343464;db[_[_0x320b16('0x1b')](_0x5a8003)+_0x320b16('0x7')][_0x320b16('0x6')]({'where':{'id':getInteractionId(_0x2344ab,_0xd41464,_0x5a8003)}})[_0x320b16('0x12')](function(_0x276b0d){if(_0x276b0d)return _0x276b0d['update']({'UserId':_0x259a8c?_0x259a8c['id']:null});})[_0x320b16('0x12')](function(_0x4c8956){_0x4c8956&&log('info',_0x259a8c,_0x2344ab,_0xd41464,_0x5a8003,_0x7245c7);})[_0x320b16('0x5')](function(){const _0x3284a8=_0x320b16;log(_0x3284a8('0x16'),_0x259a8c,_0x2344ab,_0xd41464,_0x5a8003,_0x7245c7);});}exports['tracked']=function(_0x471db2,_0xe4ece1){return function(_0x516c63,_0x42c984,_0x3604c0){const _0x325b1b=a833_0x63fd,_0xc71770=_0x516c63['user'];let _0xf42044={};const _0x170d64=_0x516c63[_0x325b1b('0x1c')];_0xf42044&&(_0xf42044=_[_0x325b1b('0x1')](_0x516c63[_0x325b1b('0xd')]),_0xf42044=_[_0x325b1b('0x18')](_0xf42044,['body',_0x325b1b('0xf'),_0x325b1b('0x9'),_0x325b1b('0x13'),_0x325b1b('0x8')])),updateUser(_0xc71770,_0xf42044,_0x170d64,_0x471db2,_0xe4ece1),_0x3604c0(null);};}; \ No newline at end of file diff --git a/server/components/license/service.js b/server/components/license/service.js index 5d5e1df..2036c6d 100644 --- a/server/components/license/service.js +++ b/server/components/license/service.js @@ -1 +1 @@ -const a834_0x3e4c=['License','then','../../mysqldb','User','admin','format','users','use','json','catch','util','findOne','Maximum\x20%s\x20limit\x20have\x20been\x20reached','count','../encryptor','isUserLimit','composable-middleware'];(function(_0x35e53c,_0x3e4cf0){const _0x284dbd=function(_0x434154){while(--_0x434154){_0x35e53c['push'](_0x35e53c['shift']());}};_0x284dbd(++_0x3e4cf0);}(a834_0x3e4c,0x17d));const a834_0x284d=function(_0x35e53c,_0x3e4cf0){_0x35e53c=_0x35e53c-0x0;let _0x284dbd=a834_0x3e4c[_0x35e53c];return _0x284dbd;};const _0x4d03db=a834_0x284d;'use strict';const util=require(_0x4d03db('0x3')),compose=require(_0x4d03db('0x9')),{Op}=require('sequelize'),db=require(_0x4d03db('0xc'))['db'],{getValueFromLicense}=require(_0x4d03db('0x7'));function isLimit(_0x434154,_0x49a7d4,_0x177c77,_0x300211){const _0x23d783=_0x4d03db;let _0x5860d9=_0x49a7d4;return compose()[_0x23d783('0x0')](function(_0x333a10,_0x4f869e,_0x33c0a5){const _0x516d63=_0x23d783;return db[_0x516d63('0xa')][_0x516d63('0x4')]({'where':{'id':0x1},'raw':!![]})['then'](function(_0xd11ad1){const _0x5e7a5b=getValueFromLicense(_0x434154,_0xd11ad1);return _0x5e7a5b?_0x5e7a5b:_0x5860d9;})['then'](function(_0x5b9628){const _0x3635ba=_0x516d63;return _0x5860d9=_0x5b9628,_0x177c77[_0x3635ba('0x6')](_0x300211);})[_0x516d63('0xb')](function(_0x233493){const _0x29241a=_0x516d63;if(_0x233493>=_0x5860d9)return _0x4f869e['status'](0x193)[_0x29241a('0x1')]({'message':util[_0x29241a('0xf')](_0x29241a('0x5'),_0x434154)});_0x33c0a5();})[_0x516d63('0x2')](function(_0x5379f){_0x33c0a5(_0x5379f);});});}function isUserLimit(){const _0x3adf81=_0x4d03db;return isLimit(_0x3adf81('0x10'),0x1,db[_0x3adf81('0xd')],{'where':{[Op['or']]:[{'role':_0x3adf81('0xe')},{'role':'user'}]}});}exports[_0x4d03db('0x8')]=isUserLimit; \ No newline at end of file +const a834_0x13fb=['util','admin','users','isUserLimit','../encryptor','../../mysqldb','status','format','use','findOne','then','catch','json','user','composable-middleware'];(function(_0x1bb285,_0x13fb32){const _0x47789e=function(_0x21511a){while(--_0x21511a){_0x1bb285['push'](_0x1bb285['shift']());}};_0x47789e(++_0x13fb32);}(a834_0x13fb,0xa7));const a834_0x4778=function(_0x1bb285,_0x13fb32){_0x1bb285=_0x1bb285-0x0;let _0x47789e=a834_0x13fb[_0x1bb285];return _0x47789e;};const _0xe8fe9d=a834_0x4778;'use strict';const util=require(_0xe8fe9d('0xd')),compose=require(_0xe8fe9d('0xc')),{Op}=require('sequelize'),db=require(_0xe8fe9d('0x3'))['db'],{getValueFromLicense}=require(_0xe8fe9d('0x2'));function isLimit(_0x21511a,_0x12d0af,_0x405fea,_0x4da80e){const _0x2ccdfb=_0xe8fe9d;let _0x28fc06=_0x12d0af;return compose()[_0x2ccdfb('0x6')](function(_0x8587ae,_0x199c5f,_0x50a81a){const _0x21d9a5=_0x2ccdfb;return db['License'][_0x21d9a5('0x7')]({'where':{'id':0x1},'raw':!![]})['then'](function(_0x5448fd){const _0x25f2b0=getValueFromLicense(_0x21511a,_0x5448fd);return _0x25f2b0?_0x25f2b0:_0x28fc06;})[_0x21d9a5('0x8')](function(_0x4f1294){return _0x28fc06=_0x4f1294,_0x405fea['count'](_0x4da80e);})[_0x21d9a5('0x8')](function(_0xb41ef2){const _0x297a84=_0x21d9a5;if(_0xb41ef2>=_0x28fc06)return _0x199c5f[_0x297a84('0x4')](0x193)[_0x297a84('0xa')]({'message':util[_0x297a84('0x5')]('Maximum\x20%s\x20limit\x20have\x20been\x20reached',_0x21511a)});_0x50a81a();})[_0x21d9a5('0x9')](function(_0x435cec){_0x50a81a(_0x435cec);});});}function isUserLimit(){const _0x4ecc52=_0xe8fe9d;return isLimit(_0x4ecc52('0x0'),0x1,db['User'],{'where':{[Op['or']]:[{'role':_0x4ecc52('0xe')},{'role':_0x4ecc52('0xb')}]}});}exports[_0xe8fe9d('0x1')]=isUserLimit; \ No newline at end of file diff --git a/server/components/parsers/advancedSearch.js b/server/components/parsers/advancedSearch.js index 7cc2598..ffa2847 100644 --- a/server/components/parsers/advancedSearch.js +++ b/server/components/parsers/advancedSearch.js @@ -1 +1 @@ -const a835_0x4705=['parseSearch','$substring','minutes','buildExpression','castTo','>=\x20?','DATE','$between','$lt','conditions','replace','NOT\x20IN\x20?','$in','<\x20?','\x20OR\x20','text','field','CAST(','utcOffset','$gte','value','lodash','$eq','format','start','indexOf','slice','\x20AS\x20','$lte','$endsWith','add','[$and]','map','moment','forEach','includes','YYYY-MM-DD','sqlOperator','push','$notIn','and','length','$startsWith','hours','BETWEEN\x20?\x20AND\x20?','\x20IS\x20NULL)','pop','$ne','shift','split','seconds','operator'];(function(_0x37692e,_0x470507){const _0x3a44f3=function(_0x4149b4){while(--_0x4149b4){_0x37692e['push'](_0x37692e['shift']());}};_0x3a44f3(++_0x470507);}(a835_0x4705,0x1cb));const a835_0x3a44=function(_0x37692e,_0x470507){_0x37692e=_0x37692e-0x0;let _0x3a44f3=a835_0x4705[_0x37692e];return _0x3a44f3;};const _0x402438=a835_0x3a44;'use strict';const _=require(_0x402438('0x1e')),moment=require(_0x402438('0x2a'));exports[_0x402438('0x9')]=function(_0x4149b4){const _0x59a3f7=_0x402438,_0x35ecc8={'conditions':[]};_0x35ecc8[_0x59a3f7('0x2e')]=_['startsWith'](_0x4149b4,'[$or]')?'or':_0x59a3f7('0x31');const _0x1d747=_0x4149b4['replace'](_0x59a3f7('0x28'),'')[_0x59a3f7('0x13')]('[$or]','')[_0x59a3f7('0x6')]('||');for(let _0x5650d5=0x0;_0x5650d5<_0x1d747[_0x59a3f7('0x32')];_0x5650d5++){const _0x497fcd=_0x1d747[_0x5650d5][_0x59a3f7('0x6')](':='),_0x9dcab8=_0x497fcd[0x0],_0x903e88=_0x497fcd[_0x59a3f7('0x23')](0x1);_0x903e88[_0x59a3f7('0x2b')](function(_0x5c0f6e){const _0x570620=_0x59a3f7,_0x46741e=_0x5c0f6e[_0x570620('0x6')]('[')[_0x570620('0x5')](),_0x4275fa=_0x5c0f6e['match'](/\[(.*?)\]/g);_0x4275fa[_0x570620('0x2b')](function(_0x527adf){const _0x2352b3=_0x570620,_0x5e8327=_0x527adf[_0x2352b3('0x6')]('[')['filter'](function(_0x5ef891){const _0x2af218=_0x2352b3;return _0x5ef891[_0x2af218('0x22')](']')>-0x1;})[_0x2352b3('0x29')](function(_0x37ec55){return _0x37ec55['split'](']')[0x0];})[0x0];_0x35ecc8[_0x2352b3('0x12')][_0x2352b3('0x2f')]({'field':_0x9dcab8,'operator':_0x46741e,'value':_0x5e8327});});});}return _0x35ecc8;},exports[_0x402438('0xc')]=function(_0x2e2b19,_0x3de927,_0x2a29cf){const _0x17e396=_0x402438,_0xe45aec={};if(_0x3de927===_0x17e396('0xf')){if(_0x2a29cf[_0x17e396('0x8')]===_0x17e396('0x1f'))_0x2a29cf[_0x17e396('0x8')]=_0x17e396('0x10'),_0x2a29cf[_0x17e396('0x1d')]+=','+_0x2a29cf[_0x17e396('0x1d')];else _[_0x17e396('0x2c')](['$gt',_0x17e396('0x25')],_0x2a29cf[_0x17e396('0x8')])&&(_0x2a29cf[_0x17e396('0x1d')]=moment(_0x2a29cf[_0x17e396('0x1d')])[_0x17e396('0x27')](0x1,'days')[_0x17e396('0x20')](_0x17e396('0x2d')));}_0x2a29cf[_0x17e396('0xd')]?(_0x3de927=_0x2a29cf[_0x17e396('0xd')],_0xe45aec[_0x17e396('0x18')]=_0x17e396('0x1a')+_0x2e2b19+'.'+_0x2a29cf[_0x17e396('0x19')]+_0x17e396('0x24')+_0x2a29cf[_0x17e396('0xd')]+')\x20'+parseOperator(_0x2a29cf['operator'])):_0xe45aec[_0x17e396('0x18')]=_0x2e2b19+'.'+_0x2a29cf[_0x17e396('0x19')]+'\x20'+parseOperator(_0x2a29cf[_0x17e396('0x8')]);if(_[_0x17e396('0x2c')]([_0x17e396('0x4'),_0x17e396('0x30')],_0x2a29cf['operator']))_0xe45aec[_0x17e396('0x18')]='('+_0xe45aec[_0x17e396('0x18')]+_0x17e396('0x17')+_0x2e2b19+'.'+_0x2a29cf[_0x17e396('0x19')]+_0x17e396('0x2');return _0xe45aec[_0x17e396('0x1d')]=parseValue(_0x3de927,_0x2a29cf[_0x17e396('0x8')],_0x2a29cf['value']),_0xe45aec;};function parseOperator(_0xf2a63){const _0x275100=_0x402438;let _0x1bb431;switch(_0xf2a63){case _0x275100('0x15'):_0x1bb431='IN\x20?';break;case'$notIn':_0x1bb431=_0x275100('0x14');break;case _0x275100('0x1f'):_0x1bb431='=\x20?';break;case _0x275100('0x4'):_0x1bb431='<>\x20?';break;case _0x275100('0xa'):case'$startsWith':case _0x275100('0x26'):_0x1bb431='LIKE\x20?';break;case _0x275100('0x11'):_0x1bb431=_0x275100('0x16');break;case'$gt':_0x1bb431='>\x20?';break;case _0x275100('0x25'):_0x1bb431='<=\x20?';break;case _0x275100('0x1c'):_0x1bb431=_0x275100('0xe');break;case _0x275100('0x10'):_0x1bb431=_0x275100('0x1');break;}return _0x1bb431;}function parseValue(_0x4b53ad,_0x2ba081,_0x1bb81b){const _0xfb86ff=_0x402438;let _0x496a3c={'start':undefined,'end':undefined};switch(_0x2ba081){case _0xfb86ff('0x15'):case _0xfb86ff('0x30'):_0x496a3c[_0xfb86ff('0x21')]=_0x1bb81b[_0xfb86ff('0x6')](',');break;case _0xfb86ff('0xa'):_0x496a3c[_0xfb86ff('0x21')]='%'+_0x1bb81b+'%';break;case _0xfb86ff('0x33'):_0x496a3c['start']=_0x1bb81b+'%';break;case'$endsWith':_0x496a3c[_0xfb86ff('0x21')]='%'+_0x1bb81b;break;case _0xfb86ff('0x10'):{const _0x559ed9=_0x2ddba1[_0xfb86ff('0x6')](',');let _0x2ddba1=_0x559ed9[_0xfb86ff('0x5')](),_0x38f306=_0x559ed9[_0xfb86ff('0x3')]();_0x4b53ad===_0xfb86ff('0xf')&&(_0x2ddba1=moment(_0x2ddba1)[_0xfb86ff('0x1b')](0x0,!![])[_0xfb86ff('0x20')](),_0x38f306=moment(_0x38f306)[_0xfb86ff('0x1b')](0x0,!![])['add'](0x17,_0xfb86ff('0x0'))['add'](0x3b,_0xfb86ff('0xb'))[_0xfb86ff('0x27')](0x3b,_0xfb86ff('0x7'))[_0xfb86ff('0x20')]()),_0x496a3c={'start':_0x2ddba1,'end':_0x38f306};}break;default:_0x496a3c[_0xfb86ff('0x21')]=_0x1bb81b;break;}return _0x496a3c;} \ No newline at end of file +const a835_0x113c=['CAST(','$lte','match','indexOf','includes','DATE','\x20IS\x20NULL)','value','startsWith','$startsWith','moment','add','start','conditions','$between','$ne','<=\x20?','split','$eq','IN\x20?','$in','LIKE\x20?','field','pop','length','$substring','BETWEEN\x20?\x20AND\x20?','forEach','$gt','$notIn','$endsWith','push','replace','<\x20?','operator','[$or]','shift','seconds','map','lodash','format','$lt','days','filter','slice','$gte','=\x20?','hours','\x20AS\x20','utcOffset','and','\x20OR\x20','>\x20?','text'];(function(_0x54d043,_0x113c12){const _0x13745a=function(_0x506bfb){while(--_0x506bfb){_0x54d043['push'](_0x54d043['shift']());}};_0x13745a(++_0x113c12);}(a835_0x113c,0x1e1));const a835_0x1374=function(_0x54d043,_0x113c12){_0x54d043=_0x54d043-0x0;let _0x13745a=a835_0x113c[_0x54d043];return _0x13745a;};const _0x38d969=a835_0x1374;'use strict';const _=require(_0x38d969('0x2c')),moment=require(_0x38d969('0xf'));exports['parseSearch']=function(_0x506bfb){const _0x3db0d6=_0x38d969,_0x3159ab={'conditions':[]};_0x3159ab['sqlOperator']=_[_0x3db0d6('0xd')](_0x506bfb,_0x3db0d6('0x28'))?'or':_0x3db0d6('0x1');const _0x4ce445=_0x506bfb[_0x3db0d6('0x25')]('[$and]','')[_0x3db0d6('0x25')](_0x3db0d6('0x28'),'')['split']('||');for(let _0x228795=0x0;_0x228795<_0x4ce445[_0x3db0d6('0x1d')];_0x228795++){const _0x1b38c7=_0x4ce445[_0x228795][_0x3db0d6('0x16')](':='),_0x537a3c=_0x1b38c7[0x0],_0x5b5f37=_0x1b38c7[_0x3db0d6('0x31')](0x1);_0x5b5f37[_0x3db0d6('0x20')](function(_0x3d4ce3){const _0x580707=_0x3db0d6,_0x494bb1=_0x3d4ce3[_0x580707('0x16')]('[')['shift'](),_0x189947=_0x3d4ce3[_0x580707('0x7')](/\[(.*?)\]/g);_0x189947[_0x580707('0x20')](function(_0x48da8d){const _0x20607b=_0x580707,_0x30165b=_0x48da8d[_0x20607b('0x16')]('[')[_0x20607b('0x30')](function(_0x2b9ed6){const _0x2ceb42=_0x20607b;return _0x2b9ed6[_0x2ceb42('0x8')](']')>-0x1;})[_0x20607b('0x2b')](function(_0x44d38d){const _0x234529=_0x20607b;return _0x44d38d[_0x234529('0x16')](']')[0x0];})[0x0];_0x3159ab[_0x20607b('0x12')][_0x20607b('0x24')]({'field':_0x537a3c,'operator':_0x494bb1,'value':_0x30165b});});});}return _0x3159ab;},exports['buildExpression']=function(_0x3c99bd,_0x18b111,_0x5478e2){const _0x50ac6d=_0x38d969,_0x4f339b={};if(_0x18b111===_0x50ac6d('0xa')){if(_0x5478e2[_0x50ac6d('0x27')]==='$eq')_0x5478e2[_0x50ac6d('0x27')]='$between',_0x5478e2[_0x50ac6d('0xc')]+=','+_0x5478e2[_0x50ac6d('0xc')];else _[_0x50ac6d('0x9')]([_0x50ac6d('0x21'),'$lte'],_0x5478e2[_0x50ac6d('0x27')])&&(_0x5478e2[_0x50ac6d('0xc')]=moment(_0x5478e2['value'])['add'](0x1,_0x50ac6d('0x2f'))[_0x50ac6d('0x2d')]('YYYY-MM-DD'));}_0x5478e2['castTo']?(_0x18b111=_0x5478e2['castTo'],_0x4f339b[_0x50ac6d('0x4')]=_0x50ac6d('0x5')+_0x3c99bd+'.'+_0x5478e2['field']+_0x50ac6d('0x35')+_0x5478e2['castTo']+')\x20'+parseOperator(_0x5478e2[_0x50ac6d('0x27')])):_0x4f339b[_0x50ac6d('0x4')]=_0x3c99bd+'.'+_0x5478e2[_0x50ac6d('0x1b')]+'\x20'+parseOperator(_0x5478e2['operator']);if(_[_0x50ac6d('0x9')](['$ne',_0x50ac6d('0x22')],_0x5478e2[_0x50ac6d('0x27')]))_0x4f339b[_0x50ac6d('0x4')]='('+_0x4f339b[_0x50ac6d('0x4')]+_0x50ac6d('0x2')+_0x3c99bd+'.'+_0x5478e2[_0x50ac6d('0x1b')]+_0x50ac6d('0xb');return _0x4f339b['value']=parseValue(_0x18b111,_0x5478e2[_0x50ac6d('0x27')],_0x5478e2[_0x50ac6d('0xc')]),_0x4f339b;};function parseOperator(_0x5baf77){const _0x3c7bb8=_0x38d969;let _0x158c93;switch(_0x5baf77){case _0x3c7bb8('0x19'):_0x158c93=_0x3c7bb8('0x18');break;case _0x3c7bb8('0x22'):_0x158c93='NOT\x20IN\x20?';break;case _0x3c7bb8('0x17'):_0x158c93=_0x3c7bb8('0x33');break;case _0x3c7bb8('0x14'):_0x158c93='<>\x20?';break;case _0x3c7bb8('0x1e'):case _0x3c7bb8('0xe'):case'$endsWith':_0x158c93=_0x3c7bb8('0x1a');break;case _0x3c7bb8('0x2e'):_0x158c93=_0x3c7bb8('0x26');break;case _0x3c7bb8('0x21'):_0x158c93=_0x3c7bb8('0x3');break;case _0x3c7bb8('0x6'):_0x158c93=_0x3c7bb8('0x15');break;case _0x3c7bb8('0x32'):_0x158c93='>=\x20?';break;case _0x3c7bb8('0x13'):_0x158c93=_0x3c7bb8('0x1f');break;}return _0x158c93;}function parseValue(_0x1cd59c,_0x1e5885,_0x1e9e75){const _0x17a8b9=_0x38d969;let _0x49d84b={'start':undefined,'end':undefined};switch(_0x1e5885){case'$in':case _0x17a8b9('0x22'):_0x49d84b[_0x17a8b9('0x11')]=_0x1e9e75['split'](',');break;case _0x17a8b9('0x1e'):_0x49d84b[_0x17a8b9('0x11')]='%'+_0x1e9e75+'%';break;case'$startsWith':_0x49d84b[_0x17a8b9('0x11')]=_0x1e9e75+'%';break;case _0x17a8b9('0x23'):_0x49d84b['start']='%'+_0x1e9e75;break;case _0x17a8b9('0x13'):{const _0xa1672f=_0xe96eb[_0x17a8b9('0x16')](',');let _0xe96eb=_0xa1672f[_0x17a8b9('0x29')](),_0x79b75d=_0xa1672f[_0x17a8b9('0x1c')]();_0x1cd59c===_0x17a8b9('0xa')&&(_0xe96eb=moment(_0xe96eb)[_0x17a8b9('0x0')](0x0,!![])[_0x17a8b9('0x2d')](),_0x79b75d=moment(_0x79b75d)[_0x17a8b9('0x0')](0x0,!![])[_0x17a8b9('0x10')](0x17,_0x17a8b9('0x34'))[_0x17a8b9('0x10')](0x3b,'minutes')[_0x17a8b9('0x10')](0x3b,_0x17a8b9('0x2a'))[_0x17a8b9('0x2d')]()),_0x49d84b={'start':_0xe96eb,'end':_0x79b75d};}break;default:_0x49d84b['start']=_0x1e9e75;break;}return _0x49d84b;} \ No newline at end of file diff --git a/server/components/parsers/qs.js b/server/components/parsers/qs.js index 862e156..da54e68 100644 --- a/server/components/parsers/qs.js +++ b/server/components/parsers/qs.js @@ -1 +1 @@ -const a836_0x1601=['isPlainObject','parse','push','utc','DATE','isNumeric','DESC','isEmail','filters','isObject','$gte','fields','isArray','unsigned','$lte','subtract','isString','map','offset','priority','cast','undefined','lodash','substr','split','omit','format','length','lte','match','col','find','forOwn','type','moment','forEach'];(function(_0x10ee6d,_0x16011a){const _0xb2e310=function(_0x26bb9e){while(--_0x26bb9e){_0x10ee6d['push'](_0x10ee6d['shift']());}};_0xb2e310(++_0x16011a);}(a836_0x1601,0x17c));const a836_0xb2e3=function(_0x10ee6d,_0x16011a){_0x10ee6d=_0x10ee6d-0x0;let _0xb2e310=a836_0x1601[_0x10ee6d];return _0xb2e310;};const _0x5de6f9=a836_0xb2e3;'use strict';const _=require(_0x5de6f9('0x2')),sequelize=require('sequelize'),moment=require(_0x5de6f9('0xe')),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports[_0x5de6f9('0x1b')]=function(_0x26bb9e){const _0x20f09d=_0x5de6f9;let _0x184db4=null;return _0x26bb9e&&(_0x184db4=_0x26bb9e[_0x20f09d('0x4')](',')),_0x184db4;},exports[_0x5de6f9('0x18')]=function(_0x3c7caf,_0x5f4318){const _0x4c123f=_0x5de6f9,_0x387b05={};return!_['isEmpty'](_0x3c7caf)&&_[_0x4c123f('0xc')](_0x3c7caf,function(_0x12a924,_0x41a141){const _0x896606=_0x4c123f;try{if(_0x5f4318){const _0x16a279=_[_0x896606('0xb')](_0x5f4318,{'name':_0x41a141})||{};if(_0x16a279[_0x896606('0xd')]===_0x896606('0x14')&&_[_0x896606('0x10')](_0x12a924)){const _0x36e2ea=JSON['parse'](_0x12a924),_0x29b38b={[Op['gte']]:moment(moment(_0x36e2ea[_0x896606('0x1a')])[_0x896606('0x6')]('YYYY-MM-DD'))[_0x896606('0x13')]()[_0x896606('0x6')](),[Op[_0x896606('0x8')]]:moment(moment(_0x36e2ea[_0x896606('0x1e')])[_0x896606('0x6')]('YYYY-MM-DD'))['utc']()[_0x896606('0x1f')](0x1,'s')['format']()};_0x387b05[_0x41a141]=_0x29b38b;}else _0x387b05[_0x41a141]=_[_0x896606('0x1c')](_0x12a924)?_0x12a924:JSON['parse'](_0x12a924);}else _0x387b05[_0x41a141]=_['isArray'](_0x12a924)?_0x12a924:JSON[_0x896606('0x11')](_0x12a924);}catch(_0x3a0586){_0x387b05[_0x41a141]=_0x12a924[_0x896606('0x4')](',');}}),_0x387b05;},exports['limit']=function(_0x248105){return _0x248105=parseInt(_0x248105,0xa),(!_0x248105||_0x248105<0x0)&&(_0x248105=LIMIT_VALUE),_0x248105;},exports[_0x5de6f9('0x22')]=function(_0x3cdfd3){return _0x3cdfd3=parseInt(_0x3cdfd3,0xa),(!_0x3cdfd3||_0x3cdfd3<0x0)&&(_0x3cdfd3=0x0),_0x3cdfd3;},exports['sort']=function(_0x512b67){const _0x5a19a0=_0x5de6f9;let _0x7d5896,_0x4cb963=null;return _0x512b67&&(_0x7d5896=_0x512b67[_0x5a19a0('0x4')](','),_0x4cb963=_[_0x5a19a0('0x21')](_0x7d5896,function(_0x296d0e){const _0x4d0abb=_0x5a19a0;return _0x296d0e['indexOf']('-')===0x0?[_0x296d0e===_0x4d0abb('0x23')?sequelize[_0x4d0abb('0x0')](sequelize['col'](_0x4d0abb('0x23')),_0x4d0abb('0x1d')):_0x296d0e[_0x4d0abb('0x3')](0x1),_0x4d0abb('0x16')]:[_0x296d0e===_0x4d0abb('0x23')?sequelize['cast'](sequelize[_0x4d0abb('0xa')]('priority'),_0x4d0abb('0x1d')):_0x296d0e,'ASC'];})),_0x4cb963;},exports[_0x5de6f9('0x5')]=function(_0x59116b,_0x432ed1){const _0x4be799=_0x5de6f9;if(_['isEmpty'](_0x59116b))return _0x59116b;if(_[_0x4be799('0x1c')](_0x59116b)){for(let _0x4cf26c=0x0;_0x4cf26c<_0x59116b[_0x4be799('0x7')];_0x4cf26c+=0x1){_0x59116b[_0x4cf26c]=this[_0x4be799('0x5')](_0x59116b[_0x4cf26c],_0x432ed1);}return _0x59116b;}if(!_[_0x4be799('0x19')](_0x59116b))return _0x59116b;_[_0x4be799('0x20')](_0x432ed1)&&(_0x432ed1=[_0x432ed1]);if(!_['isArray'](_0x432ed1))return _0x59116b;for(let _0xa123be=0x0;_0xa123be<_0x432ed1['length'];_0xa123be+=0x1){_['unset'](_0x59116b,_0x432ed1[_0xa123be]);}for(const _0x3482b3 in _0x59116b){typeof _0x59116b[_0x3482b3]!==_0x4be799('0x1')&&(_0x59116b[_0x3482b3]=this[_0x4be799('0x5')](_0x59116b[_0x3482b3],_0x432ed1));}return _0x59116b;},exports[_0x5de6f9('0x15')]=function(_0x1b1a77){const _0xefb5ec=_0x5de6f9;return _0x1b1a77[_0xefb5ec('0x9')](RegExp('^[+]?[0-9]*$'))?!![]:![];},exports[_0x5de6f9('0x17')]=function(_0x18466a){return _0x18466a['match'](/^\S+@\S+$/)?!![]:![];},exports['getFullTextValue']=function(_0x1c4b7c){const _0xe5239=_0x5de6f9,_0x41eb36=[];return _0x1c4b7c[_0xe5239('0x4')]('\x20')[_0xe5239('0xf')](function(_0x1a1875){const _0x5be47f=_0xe5239;_0x41eb36[_0x5be47f('0x12')]('+'+_0x1a1875['toString']()+'*');}),_0x41eb36['join']('\x20');}; \ No newline at end of file +const a836_0x49a9=['substr','split','ASC','map','unset','isObject','getFullTextValue','forOwn','limit','$lte','unsigned','utc','length','filters','lodash','subtract','forEach','lte','$gte','isEmpty','DATE','col','gte','omit','isPlainObject','format','toString','cast','undefined','DESC','sequelize','priority','fields','parse','sort','isArray','find','join','type','indexOf','isString'];(function(_0x164cd0,_0x49a928){const _0x8b55b4=function(_0xf99f98){while(--_0xf99f98){_0x164cd0['push'](_0x164cd0['shift']());}};_0x8b55b4(++_0x49a928);}(a836_0x49a9,0x86));const a836_0x8b55=function(_0x164cd0,_0x49a928){_0x164cd0=_0x164cd0-0x0;let _0x8b55b4=a836_0x49a9[_0x164cd0];return _0x8b55b4;};const _0x3872a8=a836_0x8b55;'use strict';const _=require(_0x3872a8('0x3')),sequelize=require(_0x3872a8('0x13')),moment=require('moment'),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports[_0x3872a8('0x15')]=function(_0xf99f98){const _0x1a4766=_0x3872a8;let _0x41fffb=null;return _0xf99f98&&(_0x41fffb=_0xf99f98[_0x1a4766('0x1f')](',')),_0x41fffb;},exports[_0x3872a8('0x2')]=function(_0x1e94df,_0x4d5982){const _0x1c44de=_0x3872a8,_0x301214={};return!_['isEmpty'](_0x1e94df)&&_[_0x1c44de('0x25')](_0x1e94df,function(_0x16651f,_0x1d684b){const _0x3044f8=_0x1c44de;try{if(_0x4d5982){const _0x3ee993=_[_0x3044f8('0x19')](_0x4d5982,{'name':_0x1d684b})||{};if(_0x3ee993[_0x3044f8('0x1b')]===_0x3044f8('0x9')&&_[_0x3044f8('0xd')](_0x16651f)){const _0x5ad0b8=JSON[_0x3044f8('0x16')](_0x16651f),_0x332bb0={[Op[_0x3044f8('0xb')]]:moment(moment(_0x5ad0b8[_0x3044f8('0x7')])['format']('YYYY-MM-DD'))[_0x3044f8('0x0')]()[_0x3044f8('0xe')](),[Op[_0x3044f8('0x6')]]:moment(moment(_0x5ad0b8[_0x3044f8('0x27')])[_0x3044f8('0xe')]('YYYY-MM-DD'))[_0x3044f8('0x0')]()[_0x3044f8('0x4')](0x1,'s')['format']()};_0x301214[_0x1d684b]=_0x332bb0;}else _0x301214[_0x1d684b]=_[_0x3044f8('0x18')](_0x16651f)?_0x16651f:JSON[_0x3044f8('0x16')](_0x16651f);}else _0x301214[_0x1d684b]=_['isArray'](_0x16651f)?_0x16651f:JSON[_0x3044f8('0x16')](_0x16651f);}catch(_0x175129){_0x301214[_0x1d684b]=_0x16651f[_0x3044f8('0x1f')](',');}}),_0x301214;},exports[_0x3872a8('0x26')]=function(_0x1a3b1f){return _0x1a3b1f=parseInt(_0x1a3b1f,0xa),(!_0x1a3b1f||_0x1a3b1f<0x0)&&(_0x1a3b1f=LIMIT_VALUE),_0x1a3b1f;},exports['offset']=function(_0x32a56d){return _0x32a56d=parseInt(_0x32a56d,0xa),(!_0x32a56d||_0x32a56d<0x0)&&(_0x32a56d=0x0),_0x32a56d;},exports[_0x3872a8('0x17')]=function(_0x37fcd7){const _0x1c50dd=_0x3872a8;let _0xee437f,_0x42a8b8=null;return _0x37fcd7&&(_0xee437f=_0x37fcd7[_0x1c50dd('0x1f')](','),_0x42a8b8=_[_0x1c50dd('0x21')](_0xee437f,function(_0x1d5718){const _0x4c2d7e=_0x1c50dd;return _0x1d5718[_0x4c2d7e('0x1c')]('-')===0x0?[_0x1d5718===_0x4c2d7e('0x14')?sequelize[_0x4c2d7e('0x10')](sequelize[_0x4c2d7e('0xa')]('priority'),_0x4c2d7e('0x28')):_0x1d5718[_0x4c2d7e('0x1e')](0x1),_0x4c2d7e('0x12')]:[_0x1d5718===_0x4c2d7e('0x14')?sequelize[_0x4c2d7e('0x10')](sequelize[_0x4c2d7e('0xa')](_0x4c2d7e('0x14')),'unsigned'):_0x1d5718,_0x4c2d7e('0x20')];})),_0x42a8b8;},exports[_0x3872a8('0xc')]=function(_0x531e72,_0x4c0fde){const _0x153126=_0x3872a8;if(_[_0x153126('0x8')](_0x531e72))return _0x531e72;if(_[_0x153126('0x18')](_0x531e72)){for(let _0x3b786d=0x0;_0x3b786d<_0x531e72[_0x153126('0x1')];_0x3b786d+=0x1){_0x531e72[_0x3b786d]=this[_0x153126('0xc')](_0x531e72[_0x3b786d],_0x4c0fde);}return _0x531e72;}if(!_[_0x153126('0x23')](_0x531e72))return _0x531e72;_[_0x153126('0x1d')](_0x4c0fde)&&(_0x4c0fde=[_0x4c0fde]);if(!_['isArray'](_0x4c0fde))return _0x531e72;for(let _0x5ccadc=0x0;_0x5ccadc<_0x4c0fde[_0x153126('0x1')];_0x5ccadc+=0x1){_[_0x153126('0x22')](_0x531e72,_0x4c0fde[_0x5ccadc]);}for(const _0x197204 in _0x531e72){typeof _0x531e72[_0x197204]!==_0x153126('0x11')&&(_0x531e72[_0x197204]=this[_0x153126('0xc')](_0x531e72[_0x197204],_0x4c0fde));}return _0x531e72;},exports['isNumeric']=function(_0x28c07b){return _0x28c07b['match'](RegExp('^[+]?[0-9]*$'))?!![]:![];},exports['isEmail']=function(_0x5f0400){return _0x5f0400['match'](/^\S+@\S+$/)?!![]:![];},exports[_0x3872a8('0x24')]=function(_0xe02973){const _0x3dde8c=_0x3872a8,_0x271daa=[];return _0xe02973['split']('\x20')[_0x3dde8c('0x5')](function(_0x6f5333){const _0x1a669b=_0x3dde8c;_0x271daa['push']('+'+_0x6f5333[_0x1a669b('0xf')]()+'*');}),_0x271daa[_0x3dde8c('0x1a')]('\x20');}; \ No newline at end of file diff --git a/server/config/config.service.js b/server/config/config.service.js index 3c932c5..7d4a80a 100644 --- a/server/config/config.service.js +++ b/server/config/config.service.js @@ -1 +1 @@ -const a837_0x3f87=['lodash','number','production','./env_definitions','undefined','defineProperties','env','exports','NODE_ENV','string','replace','true','toLowerCase'];(function(_0x40f1b6,_0x3f87b8){const _0x1d4ff1=function(_0x243b32){while(--_0x243b32){_0x40f1b6['push'](_0x40f1b6['shift']());}};_0x1d4ff1(++_0x3f87b8);}(a837_0x3f87,0xdb));const a837_0x1d4f=function(_0x40f1b6,_0x3f87b8){_0x40f1b6=_0x40f1b6-0x0;let _0x1d4ff1=a837_0x3f87[_0x40f1b6];return _0x1d4ff1;};const _0x155cab=a837_0x1d4f,{camelCase}=require(_0x155cab('0x2')),{validKeys}=require(_0x155cab('0x5')),VALID_KEYS=validKeys;function toBoolean(_0x243b32,_0x2da218=![]){const _0x2414f5=_0x155cab;return typeof _0x243b32===_0x2414f5('0x6')?_0x2da218:Boolean(typeof _0x243b32===_0x2414f5('0xb')?_0x243b32[_0x2414f5('0x1')]()===_0x2414f5('0x0'):_0x243b32);}function toNumber(_0x3e6d9f,_0x4b824e=null){const _0x53f049=_0x155cab,_0x195cde=typeof _0x3e6d9f===_0x53f049('0x6')||_0x3e6d9f===null?NaN:Number(_0x3e6d9f);return isNaN(_0x195cde)?_0x4b824e:_0x195cde;}function toString(_0x1fb5a0,_0x2f4570=''){const _0x4f19a3=_0x155cab;return typeof _0x1fb5a0===_0x4f19a3('0x6')||_0x1fb5a0===null?_0x2f4570:String(_0x1fb5a0);}function getPropertiesConfiguration(){const _0x46a511={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS['reduce']((_0x36cf61,{env:_0x11e532,type:_0x3a3439,defaultValue:_0x1c1e55})=>{const _0x341c45=a837_0x1d4f;let _0x43114f=null;const _0x30e6d8=process[_0x341c45('0x8')][_0x11e532];switch(_0x3a3439){case'boolean':_0x43114f=toBoolean(_0x30e6d8,_0x1c1e55);break;case _0x341c45('0x3'):_0x43114f=toNumber(_0x30e6d8,_0x1c1e55);break;case _0x341c45('0xb'):_0x43114f=toString(_0x30e6d8,_0x1c1e55);break;default:break;}if(_0x11e532===_0x341c45('0xa'))_0x36cf61={..._0x36cf61,'isProduction':{'value':_0x43114f===_0x341c45('0x4'),..._0x46a511},'environment':{'value':_0x43114f,..._0x46a511}};else{const _0x58f640=camelCase(_0x11e532[_0x341c45('0xc')](/^XC_/,''));_0x36cf61={..._0x36cf61,[_0x58f640]:{'value':_0x43114f,..._0x46a511}};}return _0x36cf61;},{});}let configService=null;function getConfigService(){const _0x338ccc=_0x155cab;if(configService===null){configService={};const _0x15320f=getPropertiesConfiguration();Object[_0x338ccc('0x7')](configService,_0x15320f);}return configService;}module[_0x155cab('0x9')]={'getConfigService':getConfigService}; \ No newline at end of file +const a837_0x5211=['boolean','production','number','replace','undefined','env','defineProperties','NODE_ENV','true','reduce','exports','lodash','string'];(function(_0x5867ca,_0x52117a){const _0x51535c=function(_0x224fe8){while(--_0x224fe8){_0x5867ca['push'](_0x5867ca['shift']());}};_0x51535c(++_0x52117a);}(a837_0x5211,0xf9));const a837_0x5153=function(_0x5867ca,_0x52117a){_0x5867ca=_0x5867ca-0x0;let _0x51535c=a837_0x5211[_0x5867ca];return _0x51535c;};const _0x162dfb=a837_0x5153,{camelCase}=require(_0x162dfb('0x9')),{validKeys}=require('./env_definitions'),VALID_KEYS=validKeys;function toBoolean(_0x224fe8,_0x3bba50=![]){const _0x152934=_0x162dfb;return typeof _0x224fe8===_0x152934('0x2')?_0x3bba50:Boolean(typeof _0x224fe8===_0x152934('0xa')?_0x224fe8['toLowerCase']()===_0x152934('0x6'):_0x224fe8);}function toNumber(_0x97211c,_0x3c4fa8=null){const _0x363b26=_0x162dfb,_0x333352=typeof _0x97211c===_0x363b26('0x2')||_0x97211c===null?NaN:Number(_0x97211c);return isNaN(_0x333352)?_0x3c4fa8:_0x333352;}function toString(_0x4760a0,_0x200d9e=''){const _0x57887f=_0x162dfb;return typeof _0x4760a0===_0x57887f('0x2')||_0x4760a0===null?_0x200d9e:String(_0x4760a0);}function getPropertiesConfiguration(){const _0x4292a8=_0x162dfb,_0x38ad98={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS[_0x4292a8('0x7')]((_0x2f64b4,{env:_0x31fc59,type:_0x30e66f,defaultValue:_0x33da86})=>{const _0x8d4272=_0x4292a8;let _0x29813b=null;const _0x4ad313=process[_0x8d4272('0x3')][_0x31fc59];switch(_0x30e66f){case _0x8d4272('0xb'):_0x29813b=toBoolean(_0x4ad313,_0x33da86);break;case _0x8d4272('0x0'):_0x29813b=toNumber(_0x4ad313,_0x33da86);break;case'string':_0x29813b=toString(_0x4ad313,_0x33da86);break;default:break;}if(_0x31fc59===_0x8d4272('0x5'))_0x2f64b4={..._0x2f64b4,'isProduction':{'value':_0x29813b===_0x8d4272('0xc'),..._0x38ad98},'environment':{'value':_0x29813b,..._0x38ad98}};else{const _0x111fda=camelCase(_0x31fc59[_0x8d4272('0x1')](/^XC_/,''));_0x2f64b4={..._0x2f64b4,[_0x111fda]:{'value':_0x29813b,..._0x38ad98}};}return _0x2f64b4;},{});}let configService=null;function getConfigService(){const _0x5a4842=_0x162dfb;if(configService===null){configService={};const _0x1884d3=getPropertiesConfiguration();Object[_0x5a4842('0x4')](configService,_0x1884d3);}return configService;}module[_0x162dfb('0x8')]={'getConfigService':getConfigService}; \ No newline at end of file diff --git a/server/config/environment/development.js b/server/config/environment/development.js index 9cb6c93..6ed7f0e 100644 --- a/server/config/environment/development.js +++ b/server/config/environment/development.js @@ -1 +1 @@ -const a838_0x57b1=['redisHost','mysql','mysqlUser','googleId','getConfigService','utf8mb4','rpcPort','sessionSecret','asteriskHost','dbHost','dbPort','domain','recordingSecret','determine','name','googleSecret','/api/auth/google/callback','jstz','agiPort','asteriskPort','agiIp','seedDb','../config.service','./shared','utf8_general_ci','mysqlDatabase','utf8','mysqlPassword','offsetStr','exports'];(function(_0xe8240a,_0x57b14f){const _0xd62f88=function(_0x394251){while(--_0x394251){_0xe8240a['push'](_0xe8240a['shift']());}};_0xd62f88(++_0x57b14f);}(a838_0x57b1,0x1a9));const a838_0xd62f=function(_0xe8240a,_0x57b14f){_0xe8240a=_0xe8240a-0x0;let _0xd62f88=a838_0x57b1[_0xe8240a];return _0xd62f88;};const _0x22f9d6=a838_0xd62f;'use strict';const shared=require(_0x22f9d6('0x12')),jstz=require(_0x22f9d6('0xc')),timezone=jstz[_0x22f9d6('0x8')](),timezoneOffset=shared['timezones'][timezone[_0x22f9d6('0x9')]()][_0x22f9d6('0x17')],cs=require(_0x22f9d6('0x11'))[_0x22f9d6('0x1d')]();module[_0x22f9d6('0x18')]={'sequelize':{'database':cs[_0x22f9d6('0x14')],'username':cs['mysqlUser'],'password':cs['mysqlPassword'],'options':{'host':cs[_0x22f9d6('0x4')],'port':cs[_0x22f9d6('0x5')],'dialect':'mysql','dialectOptions':{'charset':_0x22f9d6('0x0')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x22f9d6('0x15'),'collate':_0x22f9d6('0x13')}}},'sequelizeHistory':{'database':cs['mysqlDatabase'],'username':cs[_0x22f9d6('0x1b')],'password':cs[_0x22f9d6('0x16')],'options':{'host':cs['dbHost'],'port':cs[_0x22f9d6('0x5')],'dialect':_0x22f9d6('0x1a'),'dialectOptions':{'charset':_0x22f9d6('0x0')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x22f9d6('0x15'),'collate':_0x22f9d6('0x13')}}},'asterisk':{'ip':cs[_0x22f9d6('0x3')],'port':cs[_0x22f9d6('0xe')],'username':cs['asteriskUsername'],'password':cs['asteriskPassword']},'redis':{'host':cs[_0x22f9d6('0x19')],'port':cs['redisPort']},'rpc':{'port':cs[_0x22f9d6('0x1')],'ip':cs['rpcIp']},'agi':{'port':cs[_0x22f9d6('0xd')],'ip':cs[_0x22f9d6('0xf')]},'seedDB':cs[_0x22f9d6('0x10')],'google':{'clientID':cs[_0x22f9d6('0x1c')],'clientSecret':cs[_0x22f9d6('0xa')],'callbackURL':cs[_0x22f9d6('0x6')]+_0x22f9d6('0xb')},'secrets':{'session':cs[_0x22f9d6('0x2')],'recording':cs[_0x22f9d6('0x7')]},'xdr':{'disabled':![]}}; \ No newline at end of file +const a838_0x5951=['mysql','domain','dbPort','googleId','agiIp','utf8','seedDb','determine','asteriskPort','rpcIp','sessionSecret','jstz','exports','mysqlUser','redisPort','timezones','utf8_general_ci','asteriskHost','redisHost','mysqlDatabase','getConfigService','mysqlPassword','rpcPort','agiPort','./shared','recordingSecret','asteriskPassword','../config.service','dbHost','name','/api/auth/google/callback'];(function(_0x39a5f9,_0x595144){const _0x56d170=function(_0x47757a){while(--_0x47757a){_0x39a5f9['push'](_0x39a5f9['shift']());}};_0x56d170(++_0x595144);}(a838_0x5951,0x65));const a838_0x56d1=function(_0x39a5f9,_0x595144){_0x39a5f9=_0x39a5f9-0x0;let _0x56d170=a838_0x5951[_0x39a5f9];return _0x56d170;};const _0x3ccfac=a838_0x56d1;'use strict';const shared=require(_0x3ccfac('0x10')),jstz=require(_0x3ccfac('0x3')),timezone=jstz[_0x3ccfac('0x1e')](),timezoneOffset=shared[_0x3ccfac('0x7')][timezone[_0x3ccfac('0x15')]()]['offsetStr'],cs=require(_0x3ccfac('0x13'))[_0x3ccfac('0xc')]();module[_0x3ccfac('0x4')]={'sequelize':{'database':cs[_0x3ccfac('0xb')],'username':cs[_0x3ccfac('0x5')],'password':cs[_0x3ccfac('0xd')],'options':{'host':cs[_0x3ccfac('0x14')],'port':cs[_0x3ccfac('0x19')],'dialect':_0x3ccfac('0x17'),'dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':'utf8','collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs[_0x3ccfac('0xb')],'username':cs[_0x3ccfac('0x5')],'password':cs[_0x3ccfac('0xd')],'options':{'host':cs['dbHost'],'port':cs[_0x3ccfac('0x19')],'dialect':_0x3ccfac('0x17'),'dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x3ccfac('0x1c'),'collate':_0x3ccfac('0x8')}}},'asterisk':{'ip':cs[_0x3ccfac('0x9')],'port':cs[_0x3ccfac('0x0')],'username':cs['asteriskUsername'],'password':cs[_0x3ccfac('0x12')]},'redis':{'host':cs[_0x3ccfac('0xa')],'port':cs[_0x3ccfac('0x6')]},'rpc':{'port':cs[_0x3ccfac('0xe')],'ip':cs[_0x3ccfac('0x1')]},'agi':{'port':cs[_0x3ccfac('0xf')],'ip':cs[_0x3ccfac('0x1b')]},'seedDB':cs[_0x3ccfac('0x1d')],'google':{'clientID':cs[_0x3ccfac('0x1a')],'clientSecret':cs['googleSecret'],'callbackURL':cs[_0x3ccfac('0x18')]+_0x3ccfac('0x16')},'secrets':{'session':cs[_0x3ccfac('0x2')],'recording':cs[_0x3ccfac('0x11')]},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/environment/index.js b/server/config/environment/index.js index 9db3334..75268f5 100644 --- a/server/config/environment/index.js +++ b/server/config/environment/index.js @@ -1 +1 @@ -const a839_0xbf18=['exports','environment','../environment/','seedDB','./shared','browserSyncPort','getConfigService','sessionSecret'];(function(_0x408cb9,_0xbf18f){const _0x4e2662=function(_0x4b833e){while(--_0x4b833e){_0x408cb9['push'](_0x408cb9['shift']());}};_0x4e2662(++_0xbf18f);}(a839_0xbf18,0x9f));const a839_0x4e26=function(_0x408cb9,_0xbf18f){_0x408cb9=_0x408cb9-0x0;let _0x4e2662=a839_0xbf18[_0x408cb9];return _0x4e2662;};const _0x306f2c=a839_0x4e26;'use strict';const cs=require('../config.service')[_0x306f2c('0x7')](),all={'env':cs['environment'],'root':global['appRoot'],'browserSyncPort':cs[_0x306f2c('0x6')],'port':cs['port'],'ip':cs['ip'],'seedDB':cs[_0x306f2c('0x4')],'secrets':{'session':cs[_0x306f2c('0x0')],'recording':cs['recordingSecret']}},shared=require(_0x306f2c('0x5')),variables=require(_0x306f2c('0x3')+cs[_0x306f2c('0x2')]);module[_0x306f2c('0x1')]={...all,...shared,...variables}; \ No newline at end of file +const a839_0x2373=['exports','sessionSecret','../environment/','getConfigService','../config.service','environment','port','seedDB','recordingSecret','./shared'];(function(_0x3848c0,_0x237309){const _0x3df693=function(_0x379875){while(--_0x379875){_0x3848c0['push'](_0x3848c0['shift']());}};_0x3df693(++_0x237309);}(a839_0x2373,0x19c));const a839_0x3df6=function(_0x3848c0,_0x237309){_0x3848c0=_0x3848c0-0x0;let _0x3df693=a839_0x2373[_0x3848c0];return _0x3df693;};const _0x37fff9=a839_0x3df6;'use strict';const cs=require(_0x37fff9('0x2'))[_0x37fff9('0x1')](),all={'env':cs[_0x37fff9('0x3')],'root':global['appRoot'],'browserSyncPort':cs['browserSyncPort'],'port':cs[_0x37fff9('0x4')],'ip':cs['ip'],'seedDB':cs[_0x37fff9('0x5')],'secrets':{'session':cs[_0x37fff9('0x9')],'recording':cs[_0x37fff9('0x6')]}},shared=require(_0x37fff9('0x7')),variables=require(_0x37fff9('0x0')+cs[_0x37fff9('0x3')]);module[_0x37fff9('0x8')]={...all,...shared,...variables}; \ No newline at end of file diff --git a/server/config/environment/shared.js b/server/config/environment/shared.js index a58037d..56fc794 100644 --- a/server/config/environment/shared.js +++ b/server/config/environment/shared.js @@ -1 +1 @@ -var a840_0x1c36=['Asia/Kamchatka','Pacific/Kiritimati','America/St_Johns','Asia/Bangkok','America/Swift_Current','Asia/Kolkata','America/Nipigon','Africa/Khartoum','America/Miquelon','America/Havana','-08:00','America/Jamaica','America/Phoenix','Pacific/Pohnpei','Asia/Thimphu','Pacific/Fiji','Europe/Tirane','Pacific/Fakaofo','Asia/Dili','America/Argentina/Cordoba','Atlantic/Reykjavik','Pacific/Tahiti','America/Matamoros','America/Danmarkshavn','+03:00','Pacific/Tarawa','Africa/Bissau','America/Menominee','America/Bogota','+08:00','Africa/Ceuta','Pacific/Guam','Asia/Baku','Asia/Omsk','Asia/Pyongyang','Pacific/Apia','America/Santo_Domingo','America/Tijuana','America/Yellowknife','America/Denver','+09:30','+10:00','Asia/Dhaka','America/Cayenne','America/Costa_Rica','admin','America/Detroit','America/Indiana/Winamac','Europe/Helsinki','-09:00','Europe/Belgrade','Africa/Accra','Pacific/Chuuk','Asia/Aqtau','Indian/Maldives','Antarctica/Macquarie','UTC','Pacific/Pago_Pago','Europe/Vienna','Europe/Vilnius','Indian/Cocos','America/Fort_Nelson','Asia/Yekaterinburg','Pacific/Auckland','Asia/Kuala_Lumpur','Asia/Riyadh','Antarctica/Palmer','America/Cambridge_Bay','-11:00','Africa/Lagos','Europe/Luxembourg','Atlantic/Canary','Pacific/Noumea','-03:00','Antarctica/Rothera','Australia/Currie','America/Regina','+05:00','Asia/Karachi','America/Lima','Africa/Cairo','Europe/Paris','America/Caracas','Europe/Samara','Asia/Macau','Asia/Kuching','user','America/Argentina/Tucuman','Atlantic/Stanley','Pacific/Kosrae','Africa/Tripoli','Africa/Johannesburg','America/Whitehorse','guest','Atlantic/South_Georgia','America/Belem','-01:00','+03:30','-03:30','America/Pangnirtung','America/Indiana/Knox','America/Curacao','Australia/Darwin','America/Los_Angeles','Africa/Casablanca','America/Iqaluit','Africa/El_Aaiun','Asia/Magadan','America/Cancun','Pacific/Majuro','Atlantic/Bermuda','America/Guayaquil','Asia/Nicosia','+09:00','Indian/Mahe','-04:00','Pacific/Chatham','America/Anchorage','America/Toronto','Asia/Ashgabat','America/Panama','America/Noronha','-04:30','Europe/Gibraltar','Asia/Oral','America/Port-au-Prince','Asia/Damascus','Asia/Novosibirsk','Indian/Kerguelen','+02:00','America/La_Paz','Pacific/Funafuti','America/Argentina/Mendoza','America/Guyana','Asia/Makassar','Africa/Abidjan','+05:30','America/Argentina/San_Juan','Europe/Volgograd','+13:00','Asia/Chita','Atlantic/Cape_Verde','Australia/Hobart','America/Glace_Bay','Antarctica/Davis','Europe/London','America/Port_of_Spain','+06:30','America/Maceio','America/Resolute','Pacific/Rarotonga','America/Paramaribo','+01:00','Indian/Christmas','Pacific/Bougainville','+12:00','Europe/Athens','Pacific/Marquesas','Africa/Nairobi','+00:00','Africa/Windhoek','America/Bahia','America/Nassau','America/Boa_Vista','Pacific/Nauru','America/Indiana/Vincennes','America/Winnipeg','America/Argentina/Salta','+06:00','Asia/Baghdad','America/Nome','Asia/Urumqi','Asia/Krasnoyarsk','Australia/Perth','America/Scoresbysund','Europe/Prague','America/Blanc-Sablon','Europe/Kiev','Pacific/Wake','Asia/Samarkand','America/Moncton','America/Bahia_Banderas','Indian/Chagos','America/Indiana/Vevay','Europe/Copenhagen','Antarctica/Vostok','America/Campo_Grande','America/Indiana/Marengo','America/Barbados','America/Dawson_Creek','Africa/Ndjamena','America/Indiana/Tell_City','Europe/Monaco','Asia/Jakarta','Europe/Moscow','Africa/Maputo','Antarctica/Casey','America/Boise','Australia/Lindeman','Asia/Bishkek','Africa/Monrovia','-05:00','-07:00','Asia/Tashkent','Asia/Choibalsan','Europe/Zurich','Antarctica/Syowa','Atlantic/Faroe','Europe/Sofia','America/Juneau','America/Sitka','Pacific/Niue','+04:00','America/Belize','Europe/Zaporozhye','+05:45','Asia/Khandyga','America/Merida','America/Dawson','Asia/Hebron','Asia/Dushanbe','Europe/Uzhgorod','America/Eirunepe','Asia/Ust-Nera','America/Kentucky/Louisville','Europe/Warsaw','America/Adak','America/Indiana/Indianapolis','Pacific/Port_Moresby','America/Argentina/Buenos_Aires','Asia/Tbilisi','+07:00','America/Argentina/Rio_Gallegos','Europe/Budapest','Asia/Anadyr','Asia/Sakhalin','America/Argentina/San_Luis','America/Chihuahua','Antarctica/DumontDUrville','Asia/Hovd','+14:00','America/North_Dakota/New_Salem','Asia/Jerusalem','Asia/Rangoon','Pacific/Pitcairn','Asia/Taipei','Asia/Kabul','America/Guatemala','America/Recife','Asia/Yakutsk','Pacific/Kwajalein','Europe/Chisinau','Australia/Adelaide','America/Thunder_Bay','-06:00','Pacific/Wallis','America/Managua','Asia/Beirut','Asia/Aqtobe','Asia/Seoul','America/Indiana/Petersburg','exports','-10:00','Asia/Novokuznetsk','America/New_York','Europe/Lisbon','America/Grand_Turk','Europe/Malta','Asia/Yerevan','Pacific/Guadalcanal','Asia/Colombo','America/Edmonton','America/Puerto_Rico','America/Rankin_Inlet','Australia/Brisbane','Africa/Tunis','+11:00','-02:00','+10:30','America/Fortaleza','America/Yakutat','America/Argentina/Jujuy','Europe/Oslo','America/Inuvik'];(function(_0x581eba,_0x1c36f5){var _0x2d9b27=function(_0x12f9f5){while(--_0x12f9f5){_0x581eba['push'](_0x581eba['shift']());}};_0x2d9b27(++_0x1c36f5);}(a840_0x1c36,0x164));var a840_0x2d9b=function(_0x581eba,_0x1c36f5){_0x581eba=_0x581eba-0x0;var _0x2d9b27=a840_0x1c36[_0x581eba];return _0x2d9b27;};var _0x1dcae2=a840_0x2d9b;'use strict';module[_0x1dcae2('0xbd')]={'userRoles':[_0x1dcae2('0x15'),_0x1dcae2('0xe'),_0x1dcae2('0x101')],'timezones':{'Europe/Andorra':{'name':'Europe/Andorra','utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['AD']},'Asia/Dubai':{'name':'Asia/Dubai','utcOffset':0xf0,'offsetStr':_0x1dcae2('0x8c'),'countries':['AE','OM']},'Asia/Kabul':{'name':_0x1dcae2('0xae'),'utcOffset':0x10e,'offsetStr':'+04:30','countries':['AF']},'Europe/Tirane':{'name':_0x1dcae2('0xe4'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['AL']},'Asia/Yerevan':{'name':_0x1dcae2('0xc4'),'utcOffset':0xf0,'offsetStr':_0x1dcae2('0x8c'),'countries':['AM']},'Antarctica/Rothera':{'name':_0x1dcae2('0x2'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AQ']},'Antarctica/Palmer':{'name':_0x1dcae2('0x116'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AQ']},'Antarctica/Mawson':{'name':'Antarctica/Mawson','utcOffset':0x12c,'offsetStr':'+05:00','countries':['AQ']},'Antarctica/Davis':{'name':_0x1dcae2('0x48'),'utcOffset':0x1a4,'offsetStr':_0x1dcae2('0x9f'),'countries':['AQ']},'Antarctica/Casey':{'name':_0x1dcae2('0x7c'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['AQ']},'Antarctica/Vostok':{'name':_0x1dcae2('0x71'),'utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['AQ']},'Antarctica/DumontDUrville':{'name':_0x1dcae2('0xa6'),'utcOffset':0x258,'offsetStr':_0x1dcae2('0xfd'),'countries':['AQ']},'Antarctica/Syowa':{'name':_0x1dcae2('0x86'),'utcOffset':0xb4,'offsetStr':_0x1dcae2('0xec'),'countries':['AQ']},'Antarctica/Troll':{'name':'Antarctica/Troll','utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':_0x1dcae2('0x9d'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'America/Argentina/Cordoba':{'name':_0x1dcae2('0xe7'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'America/Argentina/Salta':{'name':_0x1dcae2('0x5f'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'America/Argentina/Jujuy':{'name':_0x1dcae2('0xd1'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'America/Argentina/Tucuman':{'name':_0x1dcae2('0xf'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Catamarca':{'name':'America/Argentina/Catamarca','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/La_Rioja':{'name':'America/Argentina/La_Rioja','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'America/Argentina/San_Juan':{'name':_0x1dcae2('0x41'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'America/Argentina/Mendoza':{'name':_0x1dcae2('0x3c'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'America/Argentina/San_Luis':{'name':_0x1dcae2('0xa4'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':_0x1dcae2('0xa0'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Ushuaia':{'name':'America/Argentina/Ushuaia','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['AR']},'Pacific/Pago_Pago':{'name':_0x1dcae2('0x10d'),'utcOffset':-0x294,'offsetStr':_0x1dcae2('0x118'),'countries':['AS','UM']},'Europe/Vienna':{'name':_0x1dcae2('0x10e'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['AT']},'Australia/Lord_Howe':{'name':'Australia/Lord_Howe','utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['AU']},'Antarctica/Macquarie':{'name':_0x1dcae2('0x10b'),'utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['AU']},'Australia/Hobart':{'name':_0x1dcae2('0x46'),'utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['AU']},'Australia/Currie':{'name':_0x1dcae2('0x3'),'utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['AU']},'Australia/Melbourne':{'name':'Australia/Melbourne','utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['AU']},'Australia/Sydney':{'name':'Australia/Sydney','utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['AU']},'Australia/Broken_Hill':{'name':'Australia/Broken_Hill','utcOffset':0x276,'offsetStr':_0x1dcae2('0xce'),'countries':['AU']},'Australia/Brisbane':{'name':_0x1dcae2('0xca'),'utcOffset':0x258,'offsetStr':_0x1dcae2('0xfd'),'countries':['AU']},'Australia/Lindeman':{'name':_0x1dcae2('0x7e'),'utcOffset':0x258,'offsetStr':_0x1dcae2('0xfd'),'countries':['AU']},'Australia/Adelaide':{'name':_0x1dcae2('0xb4'),'utcOffset':0x276,'offsetStr':_0x1dcae2('0xce'),'countries':['AU']},'Australia/Darwin':{'name':_0x1dcae2('0x1e'),'utcOffset':0x23a,'offsetStr':_0x1dcae2('0xfc'),'countries':['AU']},'Australia/Perth':{'name':_0x1dcae2('0x65'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['AU']},'Australia/Eucla':{'name':'Australia/Eucla','utcOffset':0x20d,'offsetStr':'+08:45','countries':['AU']},'Asia/Baku':{'name':_0x1dcae2('0xf4'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['AZ']},'America/Barbados':{'name':_0x1dcae2('0x74'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['BB']},'Asia/Dhaka':{'name':_0x1dcae2('0xfe'),'utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['BD']},'Europe/Brussels':{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['BE']},'Europe/Sofia':{'name':_0x1dcae2('0x88'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['BG']},'Atlantic/Bermuda':{'name':_0x1dcae2('0x26'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['BM']},'Asia/Brunei':{'name':'Asia/Brunei','utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['BN']},'America/La_Paz':{'name':_0x1dcae2('0x3a'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['BO']},'America/Noronha':{'name':_0x1dcae2('0x31'),'utcOffset':-0x78,'offsetStr':_0x1dcae2('0xcd'),'countries':['BR']},'America/Belem':{'name':_0x1dcae2('0x17'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Fortaleza':{'name':_0x1dcae2('0xcf'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Recife':{'name':_0x1dcae2('0xb0'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Araguaina':{'name':'America/Araguaina','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Maceio':{'name':_0x1dcae2('0x4c'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Bahia':{'name':_0x1dcae2('0x59'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Sao_Paulo':{'name':'America/Sao_Paulo','utcOffset':-0x78,'offsetStr':_0x1dcae2('0xcd'),'countries':['BR']},'America/Campo_Grande':{'name':_0x1dcae2('0x72'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Cuiaba':{'name':'America/Cuiaba','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Santarem':{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['BR']},'America/Porto_Velho':{'name':'America/Porto_Velho','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},'America/Boa_Vista':{'name':_0x1dcae2('0x5b'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['BR']},'America/Manaus':{'name':'America/Manaus','utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['BR']},'America/Eirunepe':{'name':_0x1dcae2('0x96'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Rio_Branco':{'name':'America/Rio_Branco','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Nassau':{'name':_0x1dcae2('0x5a'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['BS']},'Asia/Thimphu':{'name':_0x1dcae2('0xe2'),'utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['BT']},'Europe/Minsk':{'name':'Europe/Minsk','utcOffset':0xb4,'offsetStr':_0x1dcae2('0xec'),'countries':['BY']},'America/Belize':{'name':_0x1dcae2('0x8d'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['BZ']},'America/St_Johns':{'name':_0x1dcae2('0xd6'),'utcOffset':-0xd2,'offsetStr':_0x1dcae2('0x1a'),'countries':['CA']},'America/Halifax':{'name':'America/Halifax','utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['CA']},'America/Glace_Bay':{'name':_0x1dcae2('0x47'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['CA']},'America/Moncton':{'name':_0x1dcae2('0x6c'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['CA']},'America/Goose_Bay':{'name':'America/Goose_Bay','utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['CA']},'America/Blanc-Sablon':{'name':_0x1dcae2('0x68'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['CA']},'America/Toronto':{'name':_0x1dcae2('0x2e'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['CA']},'America/Nipigon':{'name':_0x1dcae2('0xda'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Thunder_Bay':{'name':_0x1dcae2('0xb5'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['CA']},'America/Iqaluit':{'name':_0x1dcae2('0x21'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Pangnirtung':{'name':_0x1dcae2('0x1b'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['CA']},'America/Resolute':{'name':_0x1dcae2('0x4d'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Atikokan':{'name':'America/Atikokan','utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['CA']},'America/Rankin_Inlet':{'name':_0x1dcae2('0xc9'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['CA']},'America/Winnipeg':{'name':_0x1dcae2('0x5e'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Rainy_River':{'name':'America/Rainy_River','utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Regina':{'name':_0x1dcae2('0x4'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['CA']},'America/Swift_Current':{'name':_0x1dcae2('0xd8'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['CA']},'America/Edmonton':{'name':_0x1dcae2('0xc7'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['CA']},'America/Cambridge_Bay':{'name':_0x1dcae2('0x117'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['CA']},'America/Yellowknife':{'name':_0x1dcae2('0xfa'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['CA']},'America/Inuvik':{'name':_0x1dcae2('0xd3'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['CA']},'America/Creston':{'name':'America/Creston','utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['CA']},'America/Dawson_Creek':{'name':_0x1dcae2('0x75'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['CA']},'America/Fort_Nelson':{'name':_0x1dcae2('0x111'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Vancouver':{'name':'America/Vancouver','utcOffset':-0x1e0,'offsetStr':_0x1dcae2('0xde'),'countries':['CA']},'America/Whitehorse':{'name':_0x1dcae2('0x14'),'utcOffset':-0x1e0,'offsetStr':_0x1dcae2('0xde'),'countries':['CA']},'America/Dawson':{'name':_0x1dcae2('0x92'),'utcOffset':-0x1e0,'offsetStr':_0x1dcae2('0xde'),'countries':['CA']},'Indian/Cocos':{'name':_0x1dcae2('0x110'),'utcOffset':0x186,'offsetStr':'+06:30','countries':['CC']},'Europe/Zurich':{'name':_0x1dcae2('0x85'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CH','DE','LI']},'Africa/Abidjan':{'name':_0x1dcae2('0x3f'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':_0x1dcae2('0x4e'),'utcOffset':-0x258,'offsetStr':_0x1dcae2('0xbe'),'countries':['CK']},'America/Santiago':{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['CL']},'Pacific/Easter':{'name':'Pacific/Easter','utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['CL']},'Asia/Shanghai':{'name':'Asia/Shanghai','utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['CN']},'Asia/Urumqi':{'name':_0x1dcae2('0x63'),'utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['CN']},'America/Bogota':{'name':_0x1dcae2('0xf0'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['CO']},'America/Costa_Rica':{'name':_0x1dcae2('0x100'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CR']},'America/Havana':{'name':_0x1dcae2('0xdd'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['CU']},'Atlantic/Cape_Verde':{'name':_0x1dcae2('0x45'),'utcOffset':-0x3c,'offsetStr':_0x1dcae2('0x18'),'countries':['CV']},'America/Curacao':{'name':_0x1dcae2('0x1d'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':_0x1dcae2('0x51'),'utcOffset':0x1a4,'offsetStr':_0x1dcae2('0x9f'),'countries':['CX']},'Asia/Nicosia':{'name':_0x1dcae2('0x28'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['CY']},'Europe/Prague':{'name':_0x1dcae2('0x67'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CZ','SK']},'Europe/Berlin':{'name':'Europe/Berlin','utcOffset':0x3c,'offsetStr':'+01:00','countries':['DE']},'Europe/Copenhagen':{'name':_0x1dcae2('0x70'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DK']},'America/Santo_Domingo':{'name':_0x1dcae2('0xf8'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['DO']},'Africa/Algiers':{'name':'Africa/Algiers','utcOffset':0x3c,'offsetStr':'+01:00','countries':['DZ']},'America/Guayaquil':{'name':_0x1dcae2('0x27'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['EC']},'Pacific/Galapagos':{'name':'Pacific/Galapagos','utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['EC']},'Europe/Tallinn':{'name':'Europe/Tallinn','utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['EE']},'Africa/Cairo':{'name':_0x1dcae2('0x8'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['EG']},'Africa/El_Aaiun':{'name':_0x1dcae2('0x22'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['EH']},'Europe/Madrid':{'name':'Europe/Madrid','utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['ES']},'Africa/Ceuta':{'name':_0x1dcae2('0xf2'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},'Atlantic/Canary':{'name':_0x1dcae2('0x11b'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['ES']},'Europe/Helsinki':{'name':_0x1dcae2('0x104'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['FI','AX']},'Pacific/Fiji':{'name':_0x1dcae2('0xe3'),'utcOffset':0x2d0,'offsetStr':_0x1dcae2('0x53'),'countries':['FJ']},'Atlantic/Stanley':{'name':_0x1dcae2('0x10'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['FK']},'Pacific/Chuuk':{'name':_0x1dcae2('0x108'),'utcOffset':0x258,'offsetStr':_0x1dcae2('0xfd'),'countries':['FM']},'Pacific/Pohnpei':{'name':_0x1dcae2('0xe1'),'utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['FM']},'Pacific/Kosrae':{'name':_0x1dcae2('0x11'),'utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['FM']},'Atlantic/Faroe':{'name':_0x1dcae2('0x87'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['FO']},'Europe/Paris':{'name':_0x1dcae2('0x9'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['FR']},'UTC':{'name':_0x1dcae2('0x10c'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},'Europe/London':{'name':_0x1dcae2('0x49'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':_0x1dcae2('0x9e'),'utcOffset':0xf0,'offsetStr':_0x1dcae2('0x8c'),'countries':['GE']},'America/Cayenne':{'name':_0x1dcae2('0xff'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['GF']},'Africa/Accra':{'name':_0x1dcae2('0x107'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GH']},'Europe/Gibraltar':{'name':_0x1dcae2('0x33'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['GI']},'America/Godthab':{'name':'America/Godthab','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['GL']},'America/Danmarkshavn':{'name':_0x1dcae2('0xeb'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['GL']},'America/Scoresbysund':{'name':_0x1dcae2('0x66'),'utcOffset':-0x3c,'offsetStr':_0x1dcae2('0x18'),'countries':['GL']},'America/Thule':{'name':'America/Thule','utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['GL']},'Europe/Athens':{'name':_0x1dcae2('0x54'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['GR']},'Atlantic/South_Georgia':{'name':_0x1dcae2('0x16'),'utcOffset':-0x78,'offsetStr':_0x1dcae2('0xcd'),'countries':['GS']},'America/Guatemala':{'name':_0x1dcae2('0xaf'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['GT']},'Pacific/Guam':{'name':_0x1dcae2('0xf3'),'utcOffset':0x258,'offsetStr':_0x1dcae2('0xfd'),'countries':['GU','MP']},'Africa/Bissau':{'name':_0x1dcae2('0xee'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['GW']},'America/Guyana':{'name':_0x1dcae2('0x3d'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['GY']},'Asia/Hong_Kong':{'name':'Asia/Hong_Kong','utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['HK']},'America/Tegucigalpa':{'name':'America/Tegucigalpa','utcOffset':-0x168,'offsetStr':'-06:00','countries':['HN']},'America/Port-au-Prince':{'name':_0x1dcae2('0x35'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['HT']},'Europe/Budapest':{'name':_0x1dcae2('0xa1'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['HU']},'Asia/Jakarta':{'name':_0x1dcae2('0x79'),'utcOffset':0x1a4,'offsetStr':_0x1dcae2('0x9f'),'countries':['ID']},'Asia/Pontianak':{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':_0x1dcae2('0x9f'),'countries':['ID']},'Asia/Makassar':{'name':_0x1dcae2('0x3e'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['ID']},'Asia/Jayapura':{'name':'Asia/Jayapura','utcOffset':0x21c,'offsetStr':'+09:00','countries':['ID']},'Europe/Dublin':{'name':'Europe/Dublin','utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['IE']},'Asia/Jerusalem':{'name':_0x1dcae2('0xaa'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['IL']},'Asia/Kolkata':{'name':_0x1dcae2('0xd9'),'utcOffset':0x14a,'offsetStr':'+05:30','countries':['IN']},'Indian/Chagos':{'name':_0x1dcae2('0x6e'),'utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['IO']},'Asia/Baghdad':{'name':_0x1dcae2('0x61'),'utcOffset':0xb4,'offsetStr':_0x1dcae2('0xec'),'countries':['IQ']},'Asia/Tehran':{'name':'Asia/Tehran','utcOffset':0xd2,'offsetStr':_0x1dcae2('0x19'),'countries':['IR']},'Atlantic/Reykjavik':{'name':_0x1dcae2('0xe8'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['IS']},'Europe/Rome':{'name':'Europe/Rome','utcOffset':0x3c,'offsetStr':'+01:00','countries':['IT','SM','VA']},'America/Jamaica':{'name':_0x1dcae2('0xdf'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['JM']},'Asia/Amman':{'name':'Asia/Amman','utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['JO']},'Asia/Tokyo':{'name':'Asia/Tokyo','utcOffset':0x21c,'offsetStr':_0x1dcae2('0x29'),'countries':['JP']},'Africa/Nairobi':{'name':_0x1dcae2('0x56'),'utcOffset':0xb4,'offsetStr':_0x1dcae2('0xec'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':_0x1dcae2('0x7f'),'utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['KG']},'Pacific/Tarawa':{'name':_0x1dcae2('0xed'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['KI']},'Pacific/Enderbury':{'name':'Pacific/Enderbury','utcOffset':0x30c,'offsetStr':_0x1dcae2('0x43'),'countries':['KI']},'Pacific/Kiritimati':{'name':_0x1dcae2('0xd5'),'utcOffset':0x348,'offsetStr':_0x1dcae2('0xa8'),'countries':['KI']},'Asia/Pyongyang':{'name':_0x1dcae2('0xf6'),'utcOffset':0x1fe,'offsetStr':'+08:30','countries':['KP']},'Asia/Seoul':{'name':_0x1dcae2('0xbb'),'utcOffset':0x21c,'offsetStr':_0x1dcae2('0x29'),'countries':['KR']},'America/Cayman':{'name':'America/Cayman','utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['KY']},'Asia/Almaty':{'name':'Asia/Almaty','utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['KZ']},'Asia/Qyzylorda':{'name':'Asia/Qyzylorda','utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['KZ']},'Asia/Aqtobe':{'name':_0x1dcae2('0xba'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['KZ']},'Asia/Aqtau':{'name':_0x1dcae2('0x109'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['KZ']},'Asia/Oral':{'name':_0x1dcae2('0x34'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['KZ']},'Asia/Beirut':{'name':_0x1dcae2('0xb9'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LB']},'Asia/Colombo':{'name':_0x1dcae2('0xc6'),'utcOffset':0x14a,'offsetStr':_0x1dcae2('0x40'),'countries':['LK']},'Africa/Monrovia':{'name':_0x1dcae2('0x80'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['LR']},'Europe/Vilnius':{'name':_0x1dcae2('0x10f'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['LT']},'Europe/Luxembourg':{'name':_0x1dcae2('0x11a'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['LU']},'Europe/Riga':{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':'+02:00','countries':['LV']},'Africa/Tripoli':{'name':_0x1dcae2('0x12'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LY']},'Africa/Casablanca':{'name':_0x1dcae2('0x20'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['MA']},'Europe/Monaco':{'name':_0x1dcae2('0x78'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['MC']},'Europe/Chisinau':{'name':_0x1dcae2('0xb3'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['MD']},'Pacific/Majuro':{'name':_0x1dcae2('0x25'),'utcOffset':0x2d0,'offsetStr':_0x1dcae2('0x53'),'countries':['MH']},'Pacific/Kwajalein':{'name':_0x1dcae2('0xb2'),'utcOffset':0x2d0,'offsetStr':_0x1dcae2('0x53'),'countries':['MH']},'Asia/Rangoon':{'name':_0x1dcae2('0xab'),'utcOffset':0x186,'offsetStr':_0x1dcae2('0x4b'),'countries':['MM']},'Asia/Ulaanbaatar':{'name':'Asia/Ulaanbaatar','utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['MN']},'Asia/Hovd':{'name':_0x1dcae2('0xa7'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['MN']},'Asia/Choibalsan':{'name':_0x1dcae2('0x84'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['MN']},'Asia/Macau':{'name':_0x1dcae2('0xc'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['MO']},'America/Martinique':{'name':'America/Martinique','utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['MQ']},'Europe/Malta':{'name':_0x1dcae2('0xc3'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['MT']},'Indian/Mauritius':{'name':'Indian/Mauritius','utcOffset':0xf0,'offsetStr':_0x1dcae2('0x8c'),'countries':['MU']},'Indian/Maldives':{'name':_0x1dcae2('0x10a'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['MV']},'America/Mexico_City':{'name':'America/Mexico_City','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Cancun':{'name':_0x1dcae2('0x24'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['MX']},'America/Merida':{'name':_0x1dcae2('0x91'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['MX']},'America/Monterrey':{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Matamoros':{'name':_0x1dcae2('0xea'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['MX']},'America/Mazatlan':{'name':'America/Mazatlan','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},'America/Chihuahua':{'name':_0x1dcae2('0xa5'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['MX']},'America/Ojinaga':{'name':'America/Ojinaga','utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['MX']},'America/Hermosillo':{'name':'America/Hermosillo','utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['MX']},'America/Tijuana':{'name':_0x1dcae2('0xf9'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},'America/Santa_Isabel':{'name':'America/Santa_Isabel','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},'America/Bahia_Banderas':{'name':_0x1dcae2('0x6d'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['MX']},'Asia/Kuala_Lumpur':{'name':_0x1dcae2('0x114'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['MY']},'Asia/Kuching':{'name':_0x1dcae2('0xd'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['MY']},'Africa/Maputo':{'name':_0x1dcae2('0x7b'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':_0x1dcae2('0x58'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['NA']},'Pacific/Noumea':{'name':_0x1dcae2('0x0'),'utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['NC']},'Pacific/Norfolk':{'name':'Pacific/Norfolk','utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['NF']},'Africa/Lagos':{'name':_0x1dcae2('0x119'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':_0x1dcae2('0xb8'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['NI']},'Europe/Amsterdam':{'name':'Europe/Amsterdam','utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['NL']},'Europe/Oslo':{'name':_0x1dcae2('0xd2'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NO','SJ']},'Asia/Kathmandu':{'name':'Asia/Kathmandu','utcOffset':0x159,'offsetStr':_0x1dcae2('0x8f'),'countries':['NP']},'Pacific/Nauru':{'name':_0x1dcae2('0x5c'),'utcOffset':0x2d0,'offsetStr':_0x1dcae2('0x53'),'countries':['NR']},'Pacific/Niue':{'name':_0x1dcae2('0x8b'),'utcOffset':-0x294,'offsetStr':_0x1dcae2('0x118'),'countries':['NU']},'Pacific/Auckland':{'name':_0x1dcae2('0x113'),'utcOffset':0x30c,'offsetStr':_0x1dcae2('0x43'),'countries':['NZ','AQ']},'Pacific/Chatham':{'name':_0x1dcae2('0x2c'),'utcOffset':0x339,'offsetStr':'+13:45','countries':['NZ']},'America/Panama':{'name':_0x1dcae2('0x30'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['PA']},'America/Lima':{'name':_0x1dcae2('0x7'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['PE']},'Pacific/Tahiti':{'name':_0x1dcae2('0xe9'),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['PF']},'Pacific/Marquesas':{'name':_0x1dcae2('0x55'),'utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},'Pacific/Gambier':{'name':'Pacific/Gambier','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['PF']},'Pacific/Port_Moresby':{'name':_0x1dcae2('0x9c'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['PG']},'Pacific/Bougainville':{'name':_0x1dcae2('0x52'),'utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['PG']},'Asia/Manila':{'name':'Asia/Manila','utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['PH']},'Asia/Karachi':{'name':_0x1dcae2('0x6'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},'Europe/Warsaw':{'name':_0x1dcae2('0x99'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['PL']},'America/Miquelon':{'name':_0x1dcae2('0xdc'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['PM']},'Pacific/Pitcairn':{'name':_0x1dcae2('0xac'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['PN']},'America/Puerto_Rico':{'name':_0x1dcae2('0xc8'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['PR']},'Asia/Gaza':{'name':'Asia/Gaza','utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['PS']},'Asia/Hebron':{'name':_0x1dcae2('0x93'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['PS']},'Europe/Lisbon':{'name':_0x1dcae2('0xc1'),'utcOffset':0x0,'offsetStr':_0x1dcae2('0x57'),'countries':['PT']},'Atlantic/Madeira':{'name':'Atlantic/Madeira','utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},'Atlantic/Azores':{'name':'Atlantic/Azores','utcOffset':-0x3c,'offsetStr':_0x1dcae2('0x18'),'countries':['PT']},'Pacific/Palau':{'name':'Pacific/Palau','utcOffset':0x21c,'offsetStr':_0x1dcae2('0x29'),'countries':['PW']},'America/Asuncion':{'name':'America/Asuncion','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['PY']},'Asia/Qatar':{'name':'Asia/Qatar','utcOffset':0xb4,'offsetStr':'+03:00','countries':['QA','BH']},'Indian/Reunion':{'name':'Indian/Reunion','utcOffset':0xf0,'offsetStr':_0x1dcae2('0x8c'),'countries':['RE','TF']},'Europe/Bucharest':{'name':'Europe/Bucharest','utcOffset':0x78,'offsetStr':'+02:00','countries':['RO']},'Europe/Belgrade':{'name':_0x1dcae2('0x106'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':'+02:00','countries':['RU']},'Europe/Moscow':{'name':_0x1dcae2('0x7a'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Simferopol':{'name':'Europe/Simferopol','utcOffset':0xb4,'offsetStr':_0x1dcae2('0xec'),'countries':['RU']},'Europe/Volgograd':{'name':_0x1dcae2('0x42'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Samara':{'name':_0x1dcae2('0xb'),'utcOffset':0xf0,'offsetStr':_0x1dcae2('0x8c'),'countries':['RU']},'Asia/Yekaterinburg':{'name':_0x1dcae2('0x112'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['RU']},'Asia/Omsk':{'name':_0x1dcae2('0xf5'),'utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['RU']},'Asia/Novosibirsk':{'name':_0x1dcae2('0x37'),'utcOffset':0x168,'offsetStr':_0x1dcae2('0x60'),'countries':['RU']},'Asia/Novokuznetsk':{'name':_0x1dcae2('0xbf'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['RU']},'Asia/Krasnoyarsk':{'name':_0x1dcae2('0x64'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['RU']},'Asia/Irkutsk':{'name':'Asia/Irkutsk','utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['RU']},'Asia/Chita':{'name':_0x1dcae2('0x44'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['RU']},'Asia/Yakutsk':{'name':_0x1dcae2('0xb1'),'utcOffset':0x21c,'offsetStr':_0x1dcae2('0x29'),'countries':['RU']},'Asia/Khandyga':{'name':_0x1dcae2('0x90'),'utcOffset':0x21c,'offsetStr':_0x1dcae2('0x29'),'countries':['RU']},'Asia/Vladivostok':{'name':'Asia/Vladivostok','utcOffset':0x258,'offsetStr':_0x1dcae2('0xfd'),'countries':['RU']},'Asia/Sakhalin':{'name':_0x1dcae2('0xa3'),'utcOffset':0x258,'offsetStr':_0x1dcae2('0xfd'),'countries':['RU']},'Asia/Ust-Nera':{'name':_0x1dcae2('0x97'),'utcOffset':0x258,'offsetStr':_0x1dcae2('0xfd'),'countries':['RU']},'Asia/Magadan':{'name':_0x1dcae2('0x23'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Srednekolymsk':{'name':'Asia/Srednekolymsk','utcOffset':0x294,'offsetStr':'+11:00','countries':['RU']},'Asia/Kamchatka':{'name':_0x1dcae2('0xd4'),'utcOffset':0x2d0,'offsetStr':_0x1dcae2('0x53'),'countries':['RU']},'Asia/Anadyr':{'name':_0x1dcae2('0xa2'),'utcOffset':0x2d0,'offsetStr':_0x1dcae2('0x53'),'countries':['RU']},'Asia/Riyadh':{'name':_0x1dcae2('0x115'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':_0x1dcae2('0xc5'),'utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['SB']},'Indian/Mahe':{'name':_0x1dcae2('0x2a'),'utcOffset':0xf0,'offsetStr':_0x1dcae2('0x8c'),'countries':['SC']},'Africa/Khartoum':{'name':_0x1dcae2('0xdb'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SD','SS']},'Europe/Stockholm':{'name':'Europe/Stockholm','utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['SE']},'Asia/Singapore':{'name':'Asia/Singapore','utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['SG']},'America/Paramaribo':{'name':_0x1dcae2('0x4f'),'utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['SR']},'America/El_Salvador':{'name':'America/El_Salvador','utcOffset':-0x168,'offsetStr':'-06:00','countries':['SV']},'Asia/Damascus':{'name':_0x1dcae2('0x36'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['SY']},'America/Grand_Turk':{'name':_0x1dcae2('0xc2'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['TC']},'Africa/Ndjamena':{'name':_0x1dcae2('0x76'),'utcOffset':0x3c,'offsetStr':_0x1dcae2('0x50'),'countries':['TD']},'Indian/Kerguelen':{'name':_0x1dcae2('0x38'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['TF']},'Asia/Bangkok':{'name':_0x1dcae2('0xd7'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':_0x1dcae2('0x94'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['TJ']},'Pacific/Fakaofo':{'name':_0x1dcae2('0xe5'),'utcOffset':0x30c,'offsetStr':_0x1dcae2('0x43'),'countries':['TK']},'Asia/Dili':{'name':_0x1dcae2('0xe6'),'utcOffset':0x21c,'offsetStr':_0x1dcae2('0x29'),'countries':['TL']},'Asia/Ashgabat':{'name':_0x1dcae2('0x2f'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['TM']},'Africa/Tunis':{'name':_0x1dcae2('0xcb'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['TN']},'Pacific/Tongatapu':{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':_0x1dcae2('0x43'),'countries':['TO']},'Europe/Istanbul':{'name':'Europe/Istanbul','utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['TR']},'America/Port_of_Spain':{'name':_0x1dcae2('0x4a'),'utcOffset':-0xf0,'offsetStr':_0x1dcae2('0x2b'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':_0x1dcae2('0x3b'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['TV']},'Asia/Taipei':{'name':_0x1dcae2('0xad'),'utcOffset':0x1e0,'offsetStr':_0x1dcae2('0xf1'),'countries':['TW']},'Europe/Kiev':{'name':_0x1dcae2('0x69'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['UA']},'Europe/Uzhgorod':{'name':_0x1dcae2('0x95'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Europe/Zaporozhye':{'name':_0x1dcae2('0x8e'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Pacific/Wake':{'name':_0x1dcae2('0x6a'),'utcOffset':0x2d0,'offsetStr':_0x1dcae2('0x53'),'countries':['UM']},'America/New_York':{'name':_0x1dcae2('0xc0'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['US']},'America/Detroit':{'name':_0x1dcae2('0x102'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Kentucky/Louisville':{'name':_0x1dcae2('0x98'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['US']},'America/Kentucky/Monticello':{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['US']},'America/Indiana/Indianapolis':{'name':_0x1dcae2('0x9b'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Vincennes':{'name':_0x1dcae2('0x5d'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Winamac':{'name':_0x1dcae2('0x103'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['US']},'America/Indiana/Marengo':{'name':_0x1dcae2('0x73'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Petersburg':{'name':_0x1dcae2('0xbc'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['US']},'America/Indiana/Vevay':{'name':_0x1dcae2('0x6f'),'utcOffset':-0x12c,'offsetStr':_0x1dcae2('0x81'),'countries':['US']},'America/Chicago':{'name':'America/Chicago','utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['US']},'America/Indiana/Tell_City':{'name':_0x1dcae2('0x77'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Indiana/Knox':{'name':_0x1dcae2('0x1c'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Menominee':{'name':_0x1dcae2('0xef'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['US']},'America/North_Dakota/Center':{'name':'America/North_Dakota/Center','utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['US']},'America/North_Dakota/New_Salem':{'name':_0x1dcae2('0xa9'),'utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['US']},'America/North_Dakota/Beulah':{'name':'America/North_Dakota/Beulah','utcOffset':-0x168,'offsetStr':_0x1dcae2('0xb6'),'countries':['US']},'America/Denver':{'name':_0x1dcae2('0xfb'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['US']},'America/Boise':{'name':_0x1dcae2('0x7d'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['US']},'America/Phoenix':{'name':_0x1dcae2('0xe0'),'utcOffset':-0x1a4,'offsetStr':_0x1dcae2('0x82'),'countries':['US']},'America/Los_Angeles':{'name':_0x1dcae2('0x1f'),'utcOffset':-0x1e0,'offsetStr':_0x1dcae2('0xde'),'countries':['US']},'America/Metlakatla':{'name':'America/Metlakatla','utcOffset':-0x1e0,'offsetStr':_0x1dcae2('0xde'),'countries':['US']},'America/Anchorage':{'name':_0x1dcae2('0x2d'),'utcOffset':-0x21c,'offsetStr':_0x1dcae2('0x105'),'countries':['US']},'America/Juneau':{'name':_0x1dcae2('0x89'),'utcOffset':-0x21c,'offsetStr':_0x1dcae2('0x105'),'countries':['US']},'America/Sitka':{'name':_0x1dcae2('0x8a'),'utcOffset':-0x21c,'offsetStr':_0x1dcae2('0x105'),'countries':['US']},'America/Yakutat':{'name':_0x1dcae2('0xd0'),'utcOffset':-0x21c,'offsetStr':_0x1dcae2('0x105'),'countries':['US']},'America/Nome':{'name':_0x1dcae2('0x62'),'utcOffset':-0x21c,'offsetStr':_0x1dcae2('0x105'),'countries':['US']},'America/Adak':{'name':_0x1dcae2('0x9a'),'utcOffset':-0x258,'offsetStr':_0x1dcae2('0xbe'),'countries':['US']},'Pacific/Honolulu':{'name':'Pacific/Honolulu','utcOffset':-0x258,'offsetStr':_0x1dcae2('0xbe'),'countries':['US','UM']},'America/Montevideo':{'name':'America/Montevideo','utcOffset':-0xb4,'offsetStr':_0x1dcae2('0x1'),'countries':['UY']},'Asia/Samarkand':{'name':_0x1dcae2('0x6b'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},'Asia/Tashkent':{'name':_0x1dcae2('0x83'),'utcOffset':0x12c,'offsetStr':_0x1dcae2('0x5'),'countries':['UZ']},'America/Caracas':{'name':_0x1dcae2('0xa'),'utcOffset':-0x10e,'offsetStr':_0x1dcae2('0x32'),'countries':['VE']},'Asia/Ho_Chi_Minh':{'name':'Asia/Ho_Chi_Minh','utcOffset':0x1a4,'offsetStr':_0x1dcae2('0x9f'),'countries':['VN']},'Pacific/Efate':{'name':'Pacific/Efate','utcOffset':0x294,'offsetStr':_0x1dcae2('0xcc'),'countries':['VU']},'Pacific/Wallis':{'name':_0x1dcae2('0xb7'),'utcOffset':0x2d0,'offsetStr':_0x1dcae2('0x53'),'countries':['WF']},'Pacific/Apia':{'name':_0x1dcae2('0xf7'),'utcOffset':0x348,'offsetStr':_0x1dcae2('0xa8'),'countries':['WS']},'Africa/Johannesburg':{'name':_0x1dcae2('0x13'),'utcOffset':0x78,'offsetStr':_0x1dcae2('0x39'),'countries':['ZA','LS','SZ']}}}; \ No newline at end of file +var a840_0x3aa1=['Pacific/Easter','Asia/Tokyo','Asia/Taipei','America/Yellowknife','Pacific/Pago_Pago','America/North_Dakota/Center','Asia/Samarkand','America/Port-au-Prince','Australia/Hobart','Asia/Nicosia','America/Whitehorse','Pacific/Pitcairn','America/Argentina/San_Luis','-03:30','Asia/Kuching','Asia/Shanghai','Europe/Prague','Antarctica/Vostok','Indian/Maldives','Europe/Chisinau','Pacific/Niue','America/Argentina/Ushuaia','Pacific/Wallis','America/Nome','Asia/Thimphu','America/Argentina/Mendoza','Asia/Qatar','Africa/Windhoek','-03:00','America/Indiana/Petersburg','Asia/Krasnoyarsk','America/Argentina/Salta','America/Inuvik','Pacific/Funafuti','Asia/Khandyga','America/Goose_Bay','Pacific/Enderbury','Asia/Almaty','America/Moncton','Asia/Colombo','Europe/Belgrade','Asia/Hong_Kong','America/Cayman','America/Montevideo','America/Winnipeg','America/Guayaquil','+06:00','Pacific/Honolulu','America/Matamoros','Asia/Tehran','Europe/Monaco','Africa/El_Aaiun','Europe/Simferopol','America/Dawson','Pacific/Tarawa','Africa/Tripoli','Africa/Nairobi','Europe/Rome','Pacific/Rarotonga','America/Atikokan','America/Vancouver','Asia/Yerevan','-01:00','Africa/Ceuta','America/Rainy_River','America/Metlakatla','Asia/Gaza','America/Indiana/Tell_City','Europe/Moscow','Europe/Budapest','admin','Antarctica/Mawson','Indian/Cocos','Asia/Jakarta','America/Phoenix','+01:00','+08:45','America/Bogota','Asia/Riyadh','America/Dawson_Creek','America/El_Salvador','+03:30','America/Indiana/Winamac','Australia/Broken_Hill','Africa/Monrovia','America/North_Dakota/Beulah','America/Kentucky/Louisville','America/North_Dakota/New_Salem','Pacific/Tahiti','America/Hermosillo','+10:00','Europe/Samara','Asia/Ulaanbaatar','Europe/Andorra','Asia/Srednekolymsk','Australia/Currie','Antarctica/Casey','Asia/Chita','Pacific/Chatham','Asia/Ho_Chi_Minh','Europe/Lisbon','America/Argentina/La_Rioja','Europe/Uzhgorod','Asia/Hebron','Australia/Melbourne','Asia/Damascus','America/Argentina/Rio_Gallegos','Africa/Algiers','Atlantic/Canary','America/Kentucky/Monticello','Africa/Cairo','Asia/Pyongyang','Pacific/Noumea','Asia/Brunei','-05:00','Pacific/Wake','-07:00','America/Tijuana','America/Yakutat','Pacific/Kiritimati','Pacific/Nauru','America/Fort_Nelson','America/Caracas','America/Jamaica','-04:00','Asia/Beirut','Indian/Reunion','Australia/Perth','America/Puerto_Rico','Asia/Seoul','Pacific/Guam','-02:00','Asia/Kabul','+12:00','+13:00','+08:00','Pacific/Kosrae','Indian/Kerguelen','Australia/Lindeman','America/Blanc-Sablon','UTC','+10:30','Africa/Lagos','Asia/Yakutsk','Atlantic/South_Georgia','Atlantic/Stanley','Europe/Riga','America/Lima','America/Martinique','Pacific/Apia','Europe/Stockholm','Africa/Khartoum','Pacific/Bougainville','Atlantic/Cape_Verde','Asia/Qyzylorda','Asia/Jerusalem','Asia/Kuala_Lumpur','Australia/Lord_Howe','America/Resolute','Indian/Chagos','Asia/Omsk','America/Porto_Velho','+11:00','+09:30','Atlantic/Madeira','Europe/Athens','Africa/Tunis','America/St_Johns','Pacific/Tongatapu','America/Glace_Bay','Asia/Manila','Asia/Baku','+05:30','Asia/Dhaka','+00:00','-08:00','America/Santa_Isabel','+05:00','-09:00','Europe/London','America/Danmarkshavn','America/Edmonton','Asia/Irkutsk','Asia/Kamchatka','America/Asuncion','America/Havana','America/Nassau','America/Thunder_Bay','Asia/Sakhalin','America/Port_of_Spain','Pacific/Efate','America/Merida','Africa/Bissau','America/Godthab','America/Indiana/Vincennes','America/Paramaribo','Africa/Ndjamena','America/Mazatlan','Europe/Tallinn','guest','America/Indiana/Marengo','Europe/Copenhagen','America/Scoresbysund','Europe/Luxembourg','Asia/Bangkok','America/Regina','America/Belize','Europe/Malta','Atlantic/Reykjavik','America/Araguaina','America/Recife','-06:00','Pacific/Fakaofo','Pacific/Gambier','Atlantic/Faroe','Asia/Rangoon','Asia/Tashkent','Pacific/Fiji','Antarctica/Troll','Pacific/Majuro','America/Guatemala','America/Santiago','America/Boa_Vista','Europe/Madrid','America/Bahia_Banderas','America/Cuiaba','Asia/Macau','America/Eirunepe','Australia/Adelaide','Africa/Abidjan','Europe/Tirane','America/Barbados','Australia/Sydney','America/Manaus','Asia/Aqtau','Asia/Pontianak','Antarctica/Macquarie','Antarctica/Palmer','Asia/Urumqi','America/Rio_Branco','+02:00','-11:00','Europe/Berlin','America/Juneau','Asia/Amman','Asia/Dubai','America/Denver','Asia/Baghdad','Asia/Novosibirsk','America/Campo_Grande','Pacific/Pohnpei','America/Argentina/Catamarca','Asia/Dili','+03:00','+06:30','Asia/Novokuznetsk','Europe/Vienna','America/Indiana/Knox','America/Ojinaga','Europe/Paris','Europe/Bucharest','Australia/Darwin','America/Chihuahua','Asia/Tbilisi','America/Chicago','America/Adak','America/Toronto','America/Sao_Paulo','+04:00','America/Boise','Africa/Maputo','America/Curacao','Asia/Anadyr','Europe/Sofia','+09:00','Asia/Choibalsan','Indian/Mauritius','Asia/Oral','Africa/Johannesburg','Europe/Zaporozhye','-10:00','America/Rankin_Inlet','Asia/Bishkek','America/Santo_Domingo','America/Costa_Rica','America/Belem','Pacific/Marquesas','+13:45','+14:00','America/Managua','Europe/Oslo','+05:45','Europe/Amsterdam','America/Los_Angeles','America/Noronha','Atlantic/Azores','America/Cancun','+07:00','Asia/Karachi'];(function(_0x40b6a2,_0x3aa14f){var _0x5f1847=function(_0x4921c9){while(--_0x4921c9){_0x40b6a2['push'](_0x40b6a2['shift']());}};_0x5f1847(++_0x3aa14f);}(a840_0x3aa1,0x183));var a840_0x5f18=function(_0x40b6a2,_0x3aa14f){_0x40b6a2=_0x40b6a2-0x0;var _0x5f1847=a840_0x3aa1[_0x40b6a2];return _0x5f1847;};var _0x4a7f20=a840_0x5f18;'use strict';module['exports']={'userRoles':[_0x4a7f20('0x6f'),'user',_0x4a7f20('0x119')],'timezones':{'Europe/Andorra':{'name':_0x4a7f20('0x5'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AD']},'Asia/Dubai':{'name':_0x4a7f20('0x9d'),'utcOffset':0xf0,'offsetStr':_0x4a7f20('0xb4'),'countries':['AE','OM']},'Asia/Kabul':{'name':_0x4a7f20('0x2c'),'utcOffset':0x10e,'offsetStr':'+04:30','countries':['AF']},'Europe/Tirane':{'name':_0x4a7f20('0x8e'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['AL']},'Asia/Yerevan':{'name':_0x4a7f20('0x110'),'utcOffset':0xf0,'offsetStr':_0x4a7f20('0xb4'),'countries':['AM']},'Antarctica/Rothera':{'name':'Antarctica/Rothera','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AQ']},'Antarctica/Palmer':{'name':_0x4a7f20('0x95'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['AQ']},'Antarctica/Mawson':{'name':_0x4a7f20('0x11a'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['AQ']},'Antarctica/Davis':{'name':'Antarctica/Davis','utcOffset':0x1a4,'offsetStr':_0x4a7f20('0xd1'),'countries':['AQ']},'Antarctica/Casey':{'name':_0x4a7f20('0x8'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['AQ']},'Antarctica/Vostok':{'name':_0x4a7f20('0xe4'),'utcOffset':0x168,'offsetStr':_0x4a7f20('0x101'),'countries':['AQ']},'Antarctica/DumontDUrville':{'name':'Antarctica/DumontDUrville','utcOffset':0x258,'offsetStr':'+10:00','countries':['AQ']},'Antarctica/Syowa':{'name':'Antarctica/Syowa','utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['AQ']},'Antarctica/Troll':{'name':_0x4a7f20('0x82'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':'America/Argentina/Buenos_Aires','utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['AR']},'America/Argentina/Cordoba':{'name':'America/Argentina/Cordoba','utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['AR']},'America/Argentina/Salta':{'name':_0x4a7f20('0xf2'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Jujuy':{'name':'America/Argentina/Jujuy','utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['AR']},'America/Argentina/Tucuman':{'name':'America/Argentina/Tucuman','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Catamarca':{'name':_0x4a7f20('0xa3'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['AR']},'America/Argentina/La_Rioja':{'name':_0x4a7f20('0xd'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/San_Juan':{'name':'America/Argentina/San_Juan','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Mendoza':{'name':_0x4a7f20('0xec'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['AR']},'America/Argentina/San_Luis':{'name':_0x4a7f20('0xdf'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':_0x4a7f20('0x12'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Ushuaia':{'name':_0x4a7f20('0xe8'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'Pacific/Pago_Pago':{'name':_0x4a7f20('0xd7'),'utcOffset':-0x294,'offsetStr':_0x4a7f20('0x99'),'countries':['AS','UM']},'Europe/Vienna':{'name':_0x4a7f20('0xa8'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AT']},'Australia/Lord_Howe':{'name':_0x4a7f20('0x45'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['AU']},'Antarctica/Macquarie':{'name':_0x4a7f20('0x94'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['AU']},'Australia/Hobart':{'name':_0x4a7f20('0xdb'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['AU']},'Australia/Currie':{'name':_0x4a7f20('0x7'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['AU']},'Australia/Melbourne':{'name':_0x4a7f20('0x10'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Sydney':{'name':_0x4a7f20('0x90'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['AU']},'Australia/Broken_Hill':{'name':_0x4a7f20('0x126'),'utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},'Australia/Brisbane':{'name':'Australia/Brisbane','utcOffset':0x258,'offsetStr':_0x4a7f20('0x2'),'countries':['AU']},'Australia/Lindeman':{'name':_0x4a7f20('0x32'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AU']},'Australia/Adelaide':{'name':_0x4a7f20('0x8c'),'utcOffset':0x276,'offsetStr':_0x4a7f20('0x35'),'countries':['AU']},'Australia/Darwin':{'name':_0x4a7f20('0xad'),'utcOffset':0x23a,'offsetStr':_0x4a7f20('0x4b'),'countries':['AU']},'Australia/Perth':{'name':_0x4a7f20('0x27'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['AU']},'Australia/Eucla':{'name':'Australia/Eucla','utcOffset':0x20d,'offsetStr':_0x4a7f20('0x11f'),'countries':['AU']},'Asia/Baku':{'name':_0x4a7f20('0x53'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['AZ']},'America/Barbados':{'name':_0x4a7f20('0x8f'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['BB']},'Asia/Dhaka':{'name':_0x4a7f20('0x55'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},'Europe/Brussels':{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['BE']},'Europe/Sofia':{'name':_0x4a7f20('0xb9'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['BG']},'Atlantic/Bermuda':{'name':'Atlantic/Bermuda','utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['BM']},'Asia/Brunei':{'name':_0x4a7f20('0x19'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['BN']},'America/La_Paz':{'name':'America/La_Paz','utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['BO']},'America/Noronha':{'name':_0x4a7f20('0xce'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['BR']},'America/Belem':{'name':_0x4a7f20('0xc5'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Fortaleza':{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['BR']},'America/Recife':{'name':_0x4a7f20('0x7a'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['BR']},'America/Araguaina':{'name':_0x4a7f20('0x79'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Maceio':{'name':'America/Maceio','utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['BR']},'America/Bahia':{'name':'America/Bahia','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Sao_Paulo':{'name':_0x4a7f20('0xb3'),'utcOffset':-0x78,'offsetStr':_0x4a7f20('0x2b'),'countries':['BR']},'America/Campo_Grande':{'name':_0x4a7f20('0xa1'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Cuiaba':{'name':_0x4a7f20('0x89'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['BR']},'America/Santarem':{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Porto_Velho':{'name':_0x4a7f20('0x49'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['BR']},'America/Boa_Vista':{'name':_0x4a7f20('0x86'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},'America/Manaus':{'name':_0x4a7f20('0x91'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['BR']},'America/Eirunepe':{'name':_0x4a7f20('0x8b'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['BR']},'America/Rio_Branco':{'name':_0x4a7f20('0x97'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Nassau':{'name':_0x4a7f20('0x62'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['BS']},'Asia/Thimphu':{'name':_0x4a7f20('0xeb'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['BT']},'Europe/Minsk':{'name':'Europe/Minsk','utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['BY']},'America/Belize':{'name':_0x4a7f20('0x76'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['BZ']},'America/St_Johns':{'name':_0x4a7f20('0x4f'),'utcOffset':-0xd2,'offsetStr':_0x4a7f20('0xe0'),'countries':['CA']},'America/Halifax':{'name':'America/Halifax','utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['CA']},'America/Glace_Bay':{'name':_0x4a7f20('0x51'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['CA']},'America/Moncton':{'name':_0x4a7f20('0xf9'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['CA']},'America/Goose_Bay':{'name':_0x4a7f20('0xf6'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Blanc-Sablon':{'name':_0x4a7f20('0x33'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['CA']},'America/Toronto':{'name':_0x4a7f20('0xb2'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['CA']},'America/Nipigon':{'name':'America/Nipigon','utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['CA']},'America/Thunder_Bay':{'name':_0x4a7f20('0x63'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['CA']},'America/Iqaluit':{'name':'America/Iqaluit','utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['CA']},'America/Pangnirtung':{'name':'America/Pangnirtung','utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['CA']},'America/Resolute':{'name':_0x4a7f20('0x46'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Atikokan':{'name':_0x4a7f20('0x10e'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['CA']},'America/Rankin_Inlet':{'name':_0x4a7f20('0xc1'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['CA']},'America/Winnipeg':{'name':_0x4a7f20('0xff'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['CA']},'America/Rainy_River':{'name':_0x4a7f20('0x113'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Regina':{'name':_0x4a7f20('0x75'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['CA']},'America/Swift_Current':{'name':'America/Swift_Current','utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['CA']},'America/Edmonton':{'name':_0x4a7f20('0x5d'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['CA']},'America/Cambridge_Bay':{'name':'America/Cambridge_Bay','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Yellowknife':{'name':_0x4a7f20('0xd6'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['CA']},'America/Inuvik':{'name':_0x4a7f20('0xf3'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Creston':{'name':'America/Creston','utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['CA']},'America/Dawson_Creek':{'name':_0x4a7f20('0x122'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['CA']},'America/Fort_Nelson':{'name':_0x4a7f20('0x21'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['CA']},'America/Vancouver':{'name':_0x4a7f20('0x10f'),'utcOffset':-0x1e0,'offsetStr':_0x4a7f20('0x57'),'countries':['CA']},'America/Whitehorse':{'name':_0x4a7f20('0xdd'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},'America/Dawson':{'name':_0x4a7f20('0x108'),'utcOffset':-0x1e0,'offsetStr':_0x4a7f20('0x57'),'countries':['CA']},'Indian/Cocos':{'name':_0x4a7f20('0x11b'),'utcOffset':0x186,'offsetStr':'+06:30','countries':['CC']},'Europe/Zurich':{'name':'Europe/Zurich','utcOffset':0x3c,'offsetStr':'+01:00','countries':['CH','DE','LI']},'Africa/Abidjan':{'name':_0x4a7f20('0x8d'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':_0x4a7f20('0x10d'),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['CK']},'America/Santiago':{'name':_0x4a7f20('0x85'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['CL']},'Pacific/Easter':{'name':_0x4a7f20('0xd3'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CL']},'Asia/Shanghai':{'name':_0x4a7f20('0xe2'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['CN']},'Asia/Urumqi':{'name':_0x4a7f20('0x96'),'utcOffset':0x168,'offsetStr':_0x4a7f20('0x101'),'countries':['CN']},'America/Bogota':{'name':_0x4a7f20('0x120'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['CO']},'America/Costa_Rica':{'name':_0x4a7f20('0xc4'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['CR']},'America/Havana':{'name':_0x4a7f20('0x61'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['CU']},'Atlantic/Cape_Verde':{'name':_0x4a7f20('0x41'),'utcOffset':-0x3c,'offsetStr':_0x4a7f20('0x111'),'countries':['CV']},'America/Curacao':{'name':_0x4a7f20('0xb7'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':'Indian/Christmas','utcOffset':0x1a4,'offsetStr':_0x4a7f20('0xd1'),'countries':['CX']},'Asia/Nicosia':{'name':_0x4a7f20('0xdc'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['CY']},'Europe/Prague':{'name':_0x4a7f20('0xe3'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['CZ','SK']},'Europe/Berlin':{'name':_0x4a7f20('0x9a'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['DE']},'Europe/Copenhagen':{'name':_0x4a7f20('0x71'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['DK']},'America/Santo_Domingo':{'name':_0x4a7f20('0xc3'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['DO']},'Africa/Algiers':{'name':_0x4a7f20('0x13'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DZ']},'America/Guayaquil':{'name':_0x4a7f20('0x100'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['EC']},'Pacific/Galapagos':{'name':'Pacific/Galapagos','utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['EC']},'Europe/Tallinn':{'name':_0x4a7f20('0x6e'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['EE']},'Africa/Cairo':{'name':_0x4a7f20('0x16'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['EG']},'Africa/El_Aaiun':{'name':_0x4a7f20('0x106'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['EH']},'Europe/Madrid':{'name':_0x4a7f20('0x87'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['ES']},'Africa/Ceuta':{'name':_0x4a7f20('0x112'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['ES']},'Atlantic/Canary':{'name':_0x4a7f20('0x14'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['ES']},'Europe/Helsinki':{'name':'Europe/Helsinki','utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['FI','AX']},'Pacific/Fiji':{'name':_0x4a7f20('0x81'),'utcOffset':0x2d0,'offsetStr':_0x4a7f20('0x2d'),'countries':['FJ']},'Atlantic/Stanley':{'name':_0x4a7f20('0x39'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['FK']},'Pacific/Chuuk':{'name':'Pacific/Chuuk','utcOffset':0x258,'offsetStr':'+10:00','countries':['FM']},'Pacific/Pohnpei':{'name':_0x4a7f20('0xa2'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['FM']},'Pacific/Kosrae':{'name':_0x4a7f20('0x30'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['FM']},'Atlantic/Faroe':{'name':_0x4a7f20('0x7e'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['FO']},'Europe/Paris':{'name':_0x4a7f20('0xab'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['FR']},'UTC':{'name':_0x4a7f20('0x34'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['GB','GG','IM','JE']},'Europe/London':{'name':_0x4a7f20('0x5b'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':_0x4a7f20('0xaf'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['GE']},'America/Cayenne':{'name':'America/Cayenne','utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['GF']},'Africa/Accra':{'name':'Africa/Accra','utcOffset':0x0,'offsetStr':'+00:00','countries':['GH']},'Europe/Gibraltar':{'name':'Europe/Gibraltar','utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['GI']},'America/Godthab':{'name':_0x4a7f20('0x69'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['GL']},'America/Danmarkshavn':{'name':_0x4a7f20('0x5c'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['GL']},'America/Scoresbysund':{'name':_0x4a7f20('0x72'),'utcOffset':-0x3c,'offsetStr':_0x4a7f20('0x111'),'countries':['GL']},'America/Thule':{'name':'America/Thule','utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['GL']},'Europe/Athens':{'name':_0x4a7f20('0x4d'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['GR']},'Atlantic/South_Georgia':{'name':_0x4a7f20('0x38'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['GS']},'America/Guatemala':{'name':_0x4a7f20('0x84'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['GT']},'Pacific/Guam':{'name':_0x4a7f20('0x2a'),'utcOffset':0x258,'offsetStr':_0x4a7f20('0x2'),'countries':['GU','MP']},'Africa/Bissau':{'name':_0x4a7f20('0x68'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['GW']},'America/Guyana':{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['GY']},'Asia/Hong_Kong':{'name':_0x4a7f20('0xfc'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['HK']},'America/Tegucigalpa':{'name':'America/Tegucigalpa','utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['HN']},'America/Port-au-Prince':{'name':_0x4a7f20('0xda'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['HT']},'Europe/Budapest':{'name':_0x4a7f20('0x118'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['HU']},'Asia/Jakarta':{'name':_0x4a7f20('0x11c'),'utcOffset':0x1a4,'offsetStr':_0x4a7f20('0xd1'),'countries':['ID']},'Asia/Pontianak':{'name':_0x4a7f20('0x93'),'utcOffset':0x1a4,'offsetStr':_0x4a7f20('0xd1'),'countries':['ID']},'Asia/Makassar':{'name':'Asia/Makassar','utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['ID']},'Asia/Jayapura':{'name':'Asia/Jayapura','utcOffset':0x21c,'offsetStr':_0x4a7f20('0xba'),'countries':['ID']},'Europe/Dublin':{'name':'Europe/Dublin','utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['IE']},'Asia/Jerusalem':{'name':_0x4a7f20('0x43'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['IL']},'Asia/Kolkata':{'name':'Asia/Kolkata','utcOffset':0x14a,'offsetStr':_0x4a7f20('0x54'),'countries':['IN']},'Indian/Chagos':{'name':_0x4a7f20('0x47'),'utcOffset':0x168,'offsetStr':_0x4a7f20('0x101'),'countries':['IO']},'Asia/Baghdad':{'name':_0x4a7f20('0x9f'),'utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['IQ']},'Asia/Tehran':{'name':_0x4a7f20('0x104'),'utcOffset':0xd2,'offsetStr':_0x4a7f20('0x124'),'countries':['IR']},'Atlantic/Reykjavik':{'name':_0x4a7f20('0x78'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['IS']},'Europe/Rome':{'name':_0x4a7f20('0x10c'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['IT','SM','VA']},'America/Jamaica':{'name':_0x4a7f20('0x23'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['JM']},'Asia/Amman':{'name':_0x4a7f20('0x9c'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['JO']},'Asia/Tokyo':{'name':_0x4a7f20('0xd4'),'utcOffset':0x21c,'offsetStr':_0x4a7f20('0xba'),'countries':['JP']},'Africa/Nairobi':{'name':_0x4a7f20('0x10b'),'utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':_0x4a7f20('0xc2'),'utcOffset':0x168,'offsetStr':_0x4a7f20('0x101'),'countries':['KG']},'Pacific/Tarawa':{'name':_0x4a7f20('0x109'),'utcOffset':0x2d0,'offsetStr':_0x4a7f20('0x2d'),'countries':['KI']},'Pacific/Enderbury':{'name':_0x4a7f20('0xf7'),'utcOffset':0x30c,'offsetStr':_0x4a7f20('0x2e'),'countries':['KI']},'Pacific/Kiritimati':{'name':_0x4a7f20('0x1f'),'utcOffset':0x348,'offsetStr':'+14:00','countries':['KI']},'Asia/Pyongyang':{'name':_0x4a7f20('0x17'),'utcOffset':0x1fe,'offsetStr':'+08:30','countries':['KP']},'Asia/Seoul':{'name':_0x4a7f20('0x29'),'utcOffset':0x21c,'offsetStr':_0x4a7f20('0xba'),'countries':['KR']},'America/Cayman':{'name':_0x4a7f20('0xfd'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['KY']},'Asia/Almaty':{'name':_0x4a7f20('0xf8'),'utcOffset':0x168,'offsetStr':_0x4a7f20('0x101'),'countries':['KZ']},'Asia/Qyzylorda':{'name':_0x4a7f20('0x42'),'utcOffset':0x168,'offsetStr':_0x4a7f20('0x101'),'countries':['KZ']},'Asia/Aqtobe':{'name':'Asia/Aqtobe','utcOffset':0x12c,'offsetStr':_0x4a7f20('0x59'),'countries':['KZ']},'Asia/Aqtau':{'name':_0x4a7f20('0x92'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Oral':{'name':_0x4a7f20('0xbd'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Beirut':{'name':_0x4a7f20('0x25'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['LB']},'Asia/Colombo':{'name':_0x4a7f20('0xfa'),'utcOffset':0x14a,'offsetStr':_0x4a7f20('0x54'),'countries':['LK']},'Africa/Monrovia':{'name':_0x4a7f20('0x127'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['LR']},'Europe/Vilnius':{'name':'Europe/Vilnius','utcOffset':0x78,'offsetStr':'+02:00','countries':['LT']},'Europe/Luxembourg':{'name':_0x4a7f20('0x73'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['LU']},'Europe/Riga':{'name':_0x4a7f20('0x3a'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['LV']},'Africa/Tripoli':{'name':_0x4a7f20('0x10a'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['LY']},'Africa/Casablanca':{'name':'Africa/Casablanca','utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['MA']},'Europe/Monaco':{'name':_0x4a7f20('0x105'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['MC']},'Europe/Chisinau':{'name':_0x4a7f20('0xe6'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['MD']},'Pacific/Majuro':{'name':_0x4a7f20('0x83'),'utcOffset':0x2d0,'offsetStr':_0x4a7f20('0x2d'),'countries':['MH']},'Pacific/Kwajalein':{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['MH']},'Asia/Rangoon':{'name':_0x4a7f20('0x7f'),'utcOffset':0x186,'offsetStr':_0x4a7f20('0xa6'),'countries':['MM']},'Asia/Ulaanbaatar':{'name':_0x4a7f20('0x4'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Hovd':{'name':'Asia/Hovd','utcOffset':0x1a4,'offsetStr':_0x4a7f20('0xd1'),'countries':['MN']},'Asia/Choibalsan':{'name':_0x4a7f20('0xbb'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Macau':{'name':_0x4a7f20('0x8a'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['MO']},'America/Martinique':{'name':_0x4a7f20('0x3c'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['MQ']},'Europe/Malta':{'name':_0x4a7f20('0x77'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['MT']},'Indian/Mauritius':{'name':_0x4a7f20('0xbc'),'utcOffset':0xf0,'offsetStr':_0x4a7f20('0xb4'),'countries':['MU']},'Indian/Maldives':{'name':_0x4a7f20('0xe5'),'utcOffset':0x12c,'offsetStr':_0x4a7f20('0x59'),'countries':['MV']},'America/Mexico_City':{'name':'America/Mexico_City','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Cancun':{'name':_0x4a7f20('0xd0'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['MX']},'America/Merida':{'name':_0x4a7f20('0x67'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Monterrey':{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Matamoros':{'name':_0x4a7f20('0x103'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Mazatlan':{'name':_0x4a7f20('0x6d'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['MX']},'America/Chihuahua':{'name':_0x4a7f20('0xae'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['MX']},'America/Ojinaga':{'name':_0x4a7f20('0xaa'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['MX']},'America/Hermosillo':{'name':_0x4a7f20('0x1'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['MX']},'America/Tijuana':{'name':_0x4a7f20('0x1d'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},'America/Santa_Isabel':{'name':_0x4a7f20('0x58'),'utcOffset':-0x1e0,'offsetStr':_0x4a7f20('0x57'),'countries':['MX']},'America/Bahia_Banderas':{'name':_0x4a7f20('0x88'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['MX']},'Asia/Kuala_Lumpur':{'name':_0x4a7f20('0x44'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},'Asia/Kuching':{'name':_0x4a7f20('0xe1'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['MY']},'Africa/Maputo':{'name':_0x4a7f20('0xb6'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':_0x4a7f20('0xee'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['NA']},'Pacific/Noumea':{'name':_0x4a7f20('0x18'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['NC']},'Pacific/Norfolk':{'name':'Pacific/Norfolk','utcOffset':0x294,'offsetStr':'+11:00','countries':['NF']},'Africa/Lagos':{'name':_0x4a7f20('0x36'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':_0x4a7f20('0xc9'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['NI']},'Europe/Amsterdam':{'name':_0x4a7f20('0xcc'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},'Europe/Oslo':{'name':_0x4a7f20('0xca'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['NO','SJ']},'Asia/Kathmandu':{'name':'Asia/Kathmandu','utcOffset':0x159,'offsetStr':_0x4a7f20('0xcb'),'countries':['NP']},'Pacific/Nauru':{'name':_0x4a7f20('0x20'),'utcOffset':0x2d0,'offsetStr':_0x4a7f20('0x2d'),'countries':['NR']},'Pacific/Niue':{'name':_0x4a7f20('0xe7'),'utcOffset':-0x294,'offsetStr':'-11:00','countries':['NU']},'Pacific/Auckland':{'name':'Pacific/Auckland','utcOffset':0x30c,'offsetStr':_0x4a7f20('0x2e'),'countries':['NZ','AQ']},'Pacific/Chatham':{'name':_0x4a7f20('0xa'),'utcOffset':0x339,'offsetStr':_0x4a7f20('0xc7'),'countries':['NZ']},'America/Panama':{'name':'America/Panama','utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['PA']},'America/Lima':{'name':_0x4a7f20('0x3b'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['PE']},'Pacific/Tahiti':{'name':_0x4a7f20('0x0'),'utcOffset':-0x258,'offsetStr':_0x4a7f20('0xc0'),'countries':['PF']},'Pacific/Marquesas':{'name':_0x4a7f20('0xc6'),'utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},'Pacific/Gambier':{'name':_0x4a7f20('0x7d'),'utcOffset':-0x21c,'offsetStr':_0x4a7f20('0x5a'),'countries':['PF']},'Pacific/Port_Moresby':{'name':'Pacific/Port_Moresby','utcOffset':0x258,'offsetStr':_0x4a7f20('0x2'),'countries':['PG']},'Pacific/Bougainville':{'name':_0x4a7f20('0x40'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['PG']},'Asia/Manila':{'name':_0x4a7f20('0x52'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['PH']},'Asia/Karachi':{'name':_0x4a7f20('0xd2'),'utcOffset':0x12c,'offsetStr':_0x4a7f20('0x59'),'countries':['PK']},'Europe/Warsaw':{'name':'Europe/Warsaw','utcOffset':0x3c,'offsetStr':'+01:00','countries':['PL']},'America/Miquelon':{'name':'America/Miquelon','utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['PM']},'Pacific/Pitcairn':{'name':_0x4a7f20('0xde'),'utcOffset':-0x1e0,'offsetStr':_0x4a7f20('0x57'),'countries':['PN']},'America/Puerto_Rico':{'name':_0x4a7f20('0x28'),'utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['PR']},'Asia/Gaza':{'name':_0x4a7f20('0x115'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['PS']},'Asia/Hebron':{'name':_0x4a7f20('0xf'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['PS']},'Europe/Lisbon':{'name':_0x4a7f20('0xc'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['PT']},'Atlantic/Madeira':{'name':_0x4a7f20('0x4c'),'utcOffset':0x0,'offsetStr':_0x4a7f20('0x56'),'countries':['PT']},'Atlantic/Azores':{'name':_0x4a7f20('0xcf'),'utcOffset':-0x3c,'offsetStr':_0x4a7f20('0x111'),'countries':['PT']},'Pacific/Palau':{'name':'Pacific/Palau','utcOffset':0x21c,'offsetStr':_0x4a7f20('0xba'),'countries':['PW']},'America/Asuncion':{'name':_0x4a7f20('0x60'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},'Asia/Qatar':{'name':_0x4a7f20('0xed'),'utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['QA','BH']},'Indian/Reunion':{'name':_0x4a7f20('0x26'),'utcOffset':0xf0,'offsetStr':_0x4a7f20('0xb4'),'countries':['RE','TF']},'Europe/Bucharest':{'name':_0x4a7f20('0xac'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['RO']},'Europe/Belgrade':{'name':_0x4a7f20('0xfb'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['RU']},'Europe/Moscow':{'name':_0x4a7f20('0x117'),'utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['RU']},'Europe/Simferopol':{'name':_0x4a7f20('0x107'),'utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['RU']},'Europe/Volgograd':{'name':'Europe/Volgograd','utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['RU']},'Europe/Samara':{'name':_0x4a7f20('0x3'),'utcOffset':0xf0,'offsetStr':_0x4a7f20('0xb4'),'countries':['RU']},'Asia/Yekaterinburg':{'name':'Asia/Yekaterinburg','utcOffset':0x12c,'offsetStr':'+05:00','countries':['RU']},'Asia/Omsk':{'name':_0x4a7f20('0x48'),'utcOffset':0x168,'offsetStr':_0x4a7f20('0x101'),'countries':['RU']},'Asia/Novosibirsk':{'name':_0x4a7f20('0xa0'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},'Asia/Novokuznetsk':{'name':_0x4a7f20('0xa7'),'utcOffset':0x1a4,'offsetStr':_0x4a7f20('0xd1'),'countries':['RU']},'Asia/Krasnoyarsk':{'name':_0x4a7f20('0xf1'),'utcOffset':0x1a4,'offsetStr':_0x4a7f20('0xd1'),'countries':['RU']},'Asia/Irkutsk':{'name':_0x4a7f20('0x5e'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['RU']},'Asia/Chita':{'name':_0x4a7f20('0x9'),'utcOffset':0x1e0,'offsetStr':_0x4a7f20('0x2f'),'countries':['RU']},'Asia/Yakutsk':{'name':_0x4a7f20('0x37'),'utcOffset':0x21c,'offsetStr':_0x4a7f20('0xba'),'countries':['RU']},'Asia/Khandyga':{'name':_0x4a7f20('0xf5'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},'Asia/Vladivostok':{'name':'Asia/Vladivostok','utcOffset':0x258,'offsetStr':_0x4a7f20('0x2'),'countries':['RU']},'Asia/Sakhalin':{'name':_0x4a7f20('0x64'),'utcOffset':0x258,'offsetStr':_0x4a7f20('0x2'),'countries':['RU']},'Asia/Ust-Nera':{'name':'Asia/Ust-Nera','utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Magadan':{'name':'Asia/Magadan','utcOffset':0x258,'offsetStr':_0x4a7f20('0x2'),'countries':['RU']},'Asia/Srednekolymsk':{'name':_0x4a7f20('0x6'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['RU']},'Asia/Kamchatka':{'name':_0x4a7f20('0x5f'),'utcOffset':0x2d0,'offsetStr':_0x4a7f20('0x2d'),'countries':['RU']},'Asia/Anadyr':{'name':_0x4a7f20('0xb8'),'utcOffset':0x2d0,'offsetStr':_0x4a7f20('0x2d'),'countries':['RU']},'Asia/Riyadh':{'name':_0x4a7f20('0x121'),'utcOffset':0xb4,'offsetStr':_0x4a7f20('0xa5'),'countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':'Pacific/Guadalcanal','utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['SB']},'Indian/Mahe':{'name':'Indian/Mahe','utcOffset':0xf0,'offsetStr':_0x4a7f20('0xb4'),'countries':['SC']},'Africa/Khartoum':{'name':_0x4a7f20('0x3f'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SD','SS']},'Europe/Stockholm':{'name':_0x4a7f20('0x3e'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['SE']},'Asia/Singapore':{'name':'Asia/Singapore','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['SG']},'America/Paramaribo':{'name':_0x4a7f20('0x6b'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['SR']},'America/El_Salvador':{'name':_0x4a7f20('0x123'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['SV']},'Asia/Damascus':{'name':_0x4a7f20('0x11'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['SY']},'America/Grand_Turk':{'name':'America/Grand_Turk','utcOffset':-0xf0,'offsetStr':_0x4a7f20('0x24'),'countries':['TC']},'Africa/Ndjamena':{'name':_0x4a7f20('0x6c'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['TD']},'Indian/Kerguelen':{'name':_0x4a7f20('0x31'),'utcOffset':0x12c,'offsetStr':_0x4a7f20('0x59'),'countries':['TF']},'Asia/Bangkok':{'name':_0x4a7f20('0x74'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':'Asia/Dushanbe','utcOffset':0x12c,'offsetStr':_0x4a7f20('0x59'),'countries':['TJ']},'Pacific/Fakaofo':{'name':_0x4a7f20('0x7c'),'utcOffset':0x30c,'offsetStr':_0x4a7f20('0x2e'),'countries':['TK']},'Asia/Dili':{'name':_0x4a7f20('0xa4'),'utcOffset':0x21c,'offsetStr':_0x4a7f20('0xba'),'countries':['TL']},'Asia/Ashgabat':{'name':'Asia/Ashgabat','utcOffset':0x12c,'offsetStr':_0x4a7f20('0x59'),'countries':['TM']},'Africa/Tunis':{'name':_0x4a7f20('0x4e'),'utcOffset':0x3c,'offsetStr':_0x4a7f20('0x11e'),'countries':['TN']},'Pacific/Tongatapu':{'name':_0x4a7f20('0x50'),'utcOffset':0x30c,'offsetStr':_0x4a7f20('0x2e'),'countries':['TO']},'Europe/Istanbul':{'name':'Europe/Istanbul','utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['TR']},'America/Port_of_Spain':{'name':_0x4a7f20('0x65'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':_0x4a7f20('0xf4'),'utcOffset':0x2d0,'offsetStr':_0x4a7f20('0x2d'),'countries':['TV']},'Asia/Taipei':{'name':_0x4a7f20('0xd5'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['TW']},'Europe/Kiev':{'name':'Europe/Kiev','utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['UA']},'Europe/Uzhgorod':{'name':_0x4a7f20('0xe'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['UA']},'Europe/Zaporozhye':{'name':_0x4a7f20('0xbf'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['UA']},'Pacific/Wake':{'name':_0x4a7f20('0x1b'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['UM']},'America/New_York':{'name':'America/New_York','utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Detroit':{'name':'America/Detroit','utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Kentucky/Louisville':{'name':_0x4a7f20('0x129'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Kentucky/Monticello':{'name':_0x4a7f20('0x15'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Indiana/Indianapolis':{'name':'America/Indiana/Indianapolis','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Vincennes':{'name':_0x4a7f20('0x6a'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Indiana/Winamac':{'name':_0x4a7f20('0x125'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Indiana/Marengo':{'name':_0x4a7f20('0x70'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Indiana/Petersburg':{'name':_0x4a7f20('0xf0'),'utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Indiana/Vevay':{'name':'America/Indiana/Vevay','utcOffset':-0x12c,'offsetStr':_0x4a7f20('0x1a'),'countries':['US']},'America/Chicago':{'name':_0x4a7f20('0xb0'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Indiana/Tell_City':{'name':_0x4a7f20('0x116'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['US']},'America/Indiana/Knox':{'name':_0x4a7f20('0xa9'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['US']},'America/Menominee':{'name':'America/Menominee','utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['US']},'America/North_Dakota/Center':{'name':_0x4a7f20('0xd8'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['US']},'America/North_Dakota/New_Salem':{'name':_0x4a7f20('0x12a'),'utcOffset':-0x168,'offsetStr':_0x4a7f20('0x7b'),'countries':['US']},'America/North_Dakota/Beulah':{'name':_0x4a7f20('0x128'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Denver':{'name':_0x4a7f20('0x9e'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['US']},'America/Boise':{'name':_0x4a7f20('0xb5'),'utcOffset':-0x1a4,'offsetStr':_0x4a7f20('0x1c'),'countries':['US']},'America/Phoenix':{'name':_0x4a7f20('0x11d'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},'America/Los_Angeles':{'name':_0x4a7f20('0xcd'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},'America/Metlakatla':{'name':_0x4a7f20('0x114'),'utcOffset':-0x1e0,'offsetStr':_0x4a7f20('0x57'),'countries':['US']},'America/Anchorage':{'name':'America/Anchorage','utcOffset':-0x21c,'offsetStr':_0x4a7f20('0x5a'),'countries':['US']},'America/Juneau':{'name':_0x4a7f20('0x9b'),'utcOffset':-0x21c,'offsetStr':_0x4a7f20('0x5a'),'countries':['US']},'America/Sitka':{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':_0x4a7f20('0x5a'),'countries':['US']},'America/Yakutat':{'name':_0x4a7f20('0x1e'),'utcOffset':-0x21c,'offsetStr':_0x4a7f20('0x5a'),'countries':['US']},'America/Nome':{'name':_0x4a7f20('0xea'),'utcOffset':-0x21c,'offsetStr':_0x4a7f20('0x5a'),'countries':['US']},'America/Adak':{'name':_0x4a7f20('0xb1'),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['US']},'Pacific/Honolulu':{'name':_0x4a7f20('0x102'),'utcOffset':-0x258,'offsetStr':_0x4a7f20('0xc0'),'countries':['US','UM']},'America/Montevideo':{'name':_0x4a7f20('0xfe'),'utcOffset':-0xb4,'offsetStr':_0x4a7f20('0xef'),'countries':['UY']},'Asia/Samarkand':{'name':_0x4a7f20('0xd9'),'utcOffset':0x12c,'offsetStr':_0x4a7f20('0x59'),'countries':['UZ']},'Asia/Tashkent':{'name':_0x4a7f20('0x80'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},'America/Caracas':{'name':_0x4a7f20('0x22'),'utcOffset':-0x10e,'offsetStr':'-04:30','countries':['VE']},'Asia/Ho_Chi_Minh':{'name':_0x4a7f20('0xb'),'utcOffset':0x1a4,'offsetStr':_0x4a7f20('0xd1'),'countries':['VN']},'Pacific/Efate':{'name':_0x4a7f20('0x66'),'utcOffset':0x294,'offsetStr':_0x4a7f20('0x4a'),'countries':['VU']},'Pacific/Wallis':{'name':_0x4a7f20('0xe9'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['WF']},'Pacific/Apia':{'name':_0x4a7f20('0x3d'),'utcOffset':0x348,'offsetStr':_0x4a7f20('0xc8'),'countries':['WS']},'Africa/Johannesburg':{'name':_0x4a7f20('0xbe'),'utcOffset':0x78,'offsetStr':_0x4a7f20('0x98'),'countries':['ZA','LS','SZ']}}}; \ No newline at end of file diff --git a/server/config/environment/test.js b/server/config/environment/test.js index aac310b..3053738 100644 --- a/server/config/environment/test.js +++ b/server/config/environment/test.js @@ -1 +1 @@ -const a841_0x2826=['redisPort','seedDb','name','redisHost','asteriskUsername','./shared','utf8','asteriskPort','utf8mb4','jstz','mysqlDatabase','../config.service','/api/auth/google/callback','mysqlPassword','mysql','exports','agiPort','mysqlUser','timezones','recordingSecret','rpcPort','offsetStr','dbHost','getConfigService','sessionSecret','dbPort','asteriskPassword','utf8_general_ci'];(function(_0x1e8b83,_0x282609){const _0x10cf96=function(_0x280a5a){while(--_0x280a5a){_0x1e8b83['push'](_0x1e8b83['shift']());}};_0x10cf96(++_0x282609);}(a841_0x2826,0x171));const a841_0x10cf=function(_0x1e8b83,_0x282609){_0x1e8b83=_0x1e8b83-0x0;let _0x10cf96=a841_0x2826[_0x1e8b83];return _0x10cf96;};const _0x3ebfef=a841_0x10cf;'use strict';const shared=require(_0x3ebfef('0x0')),jstz=require(_0x3ebfef('0x4')),timezone=jstz['determine'](),timezoneOffset=shared[_0x3ebfef('0xd')][timezone[_0x3ebfef('0x19')]()][_0x3ebfef('0x10')],cs=require(_0x3ebfef('0x6'))[_0x3ebfef('0x12')]();module[_0x3ebfef('0xa')]={'sequelize':{'database':cs['mysqlDatabase'],'username':cs['mysqlUser'],'password':cs[_0x3ebfef('0x8')],'options':{'host':cs[_0x3ebfef('0x11')],'port':cs[_0x3ebfef('0x14')],'dialect':_0x3ebfef('0x9'),'dialectOptions':{'charset':_0x3ebfef('0x3')},'logging':![],'timezone':timezoneOffset,'define':{'charset':'utf8','collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs[_0x3ebfef('0x5')],'username':cs[_0x3ebfef('0xc')],'password':cs[_0x3ebfef('0x8')],'options':{'host':cs[_0x3ebfef('0x11')],'port':cs[_0x3ebfef('0x14')],'dialect':_0x3ebfef('0x9'),'dialectOptions':{'charset':_0x3ebfef('0x3')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x3ebfef('0x1'),'collate':_0x3ebfef('0x16')}}},'asterisk':{'ip':cs['asteriskHost'],'port':cs[_0x3ebfef('0x2')],'username':cs[_0x3ebfef('0x1b')],'password':cs[_0x3ebfef('0x15')]},'redis':{'host':cs[_0x3ebfef('0x1a')],'port':cs[_0x3ebfef('0x17')]},'rpc':{'port':cs[_0x3ebfef('0xf')],'ip':cs['rpcIp']},'agi':{'port':cs[_0x3ebfef('0xb')],'ip':cs['agiIp']},'seedDB':cs[_0x3ebfef('0x18')],'google':{'clientID':cs['googleId'],'clientSecret':cs['googleSecret'],'callbackURL':cs['domain']+_0x3ebfef('0x7')},'secrets':{'session':cs[_0x3ebfef('0x13')],'recording':cs[_0x3ebfef('0xe')]},'xdr':{'disabled':![]}}; \ No newline at end of file +const a841_0x2ad4=['asteriskPort','exports','timezones','dbPort','rpcIp','mysqlPassword','sessionSecret','mysqlDatabase','rpcPort','asteriskUsername','jstz','name','offsetStr','agiPort','utf8_general_ci','googleSecret','../config.service','asteriskPassword','./shared','googleId','dbHost','utf8mb4','seedDb','agiIp','redisPort'];(function(_0x3c9865,_0x2ad4d5){const _0x4e92fc=function(_0x19f911){while(--_0x19f911){_0x3c9865['push'](_0x3c9865['shift']());}};_0x4e92fc(++_0x2ad4d5);}(a841_0x2ad4,0x96));const a841_0x4e92=function(_0x3c9865,_0x2ad4d5){_0x3c9865=_0x3c9865-0x0;let _0x4e92fc=a841_0x2ad4[_0x3c9865];return _0x4e92fc;};const _0x64fc7c=a841_0x4e92;'use strict';const shared=require(_0x64fc7c('0x12')),jstz=require(_0x64fc7c('0xa')),timezone=jstz['determine'](),timezoneOffset=shared[_0x64fc7c('0x2')][timezone[_0x64fc7c('0xb')]()][_0x64fc7c('0xc')],cs=require(_0x64fc7c('0x10'))['getConfigService']();module[_0x64fc7c('0x1')]={'sequelize':{'database':cs['mysqlDatabase'],'username':cs['mysqlUser'],'password':cs[_0x64fc7c('0x5')],'options':{'host':cs['dbHost'],'port':cs[_0x64fc7c('0x3')],'dialect':'mysql','dialectOptions':{'charset':_0x64fc7c('0x15')},'logging':![],'timezone':timezoneOffset,'define':{'charset':'utf8','collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs[_0x64fc7c('0x7')],'username':cs['mysqlUser'],'password':cs[_0x64fc7c('0x5')],'options':{'host':cs[_0x64fc7c('0x14')],'port':cs[_0x64fc7c('0x3')],'dialect':'mysql','dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':'utf8','collate':_0x64fc7c('0xe')}}},'asterisk':{'ip':cs['asteriskHost'],'port':cs[_0x64fc7c('0x0')],'username':cs[_0x64fc7c('0x9')],'password':cs[_0x64fc7c('0x11')]},'redis':{'host':cs['redisHost'],'port':cs[_0x64fc7c('0x18')]},'rpc':{'port':cs[_0x64fc7c('0x8')],'ip':cs[_0x64fc7c('0x4')]},'agi':{'port':cs[_0x64fc7c('0xd')],'ip':cs[_0x64fc7c('0x17')]},'seedDB':cs[_0x64fc7c('0x16')],'google':{'clientID':cs[_0x64fc7c('0x13')],'clientSecret':cs[_0x64fc7c('0xf')],'callbackURL':cs['domain']+'/api/auth/google/callback'},'secrets':{'session':cs[_0x64fc7c('0x6')],'recording':cs['recordingSecret']},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/express.js b/server/config/express.js index fb88540..a194c6a 100644 --- a/server/config/express.js +++ b/server/config/express.js @@ -1 +1 @@ -const a842_0x519f=['set','get','renderFile','cors','/server/views','ejs','./environment','view\x20engine','path','50mb','json','cookie-parser','use','test','join','Public\x20path\x20set\x20to\x20','initialize','static','errorhandler','views','express','appPath','GET,HEAD,PUT,PATCH,POST,DELETE','client','env','public','log','default','body-parser','isProduction','urlencoded','html','OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','root','production'];(function(_0x1ab485,_0x519fb0){const _0x2c48ae=function(_0x1b8f2c){while(--_0x1b8f2c){_0x1ab485['push'](_0x1ab485['shift']());}};_0x2c48ae(++_0x519fb0);}(a842_0x519f,0x133));const a842_0x2c48=function(_0x1ab485,_0x519fb0){_0x1ab485=_0x1ab485-0x0;let _0x2c48ae=a842_0x519f[_0x1ab485];return _0x2c48ae;};const _0x484bcd=a842_0x2c48;'use strict';const express=require(_0x484bcd('0x1c')),bodyParser=require(_0x484bcd('0x1')),methodOverride=require('method-override'),cookieParser=require(_0x484bcd('0x13')),errorHandler=require(_0x484bcd('0x1a')),path=require(_0x484bcd('0x10')),passport=require('passport'),cors=require(_0x484bcd('0xb')),config=require(_0x484bcd('0xe')),{getConfigService}=require('./config.service');exports[_0x484bcd('0x0')]=function(_0x1b8f2c){const _0x332cb9=_0x484bcd,_0x54bc36=_0x1b8f2c[_0x332cb9('0x9')](_0x332cb9('0x20')),_0x59e00a=getConfigService();_0x54bc36===_0x332cb9('0x7')&&(_0x1b8f2c[_0x332cb9('0x8')](_0x332cb9('0x1d'),path[_0x332cb9('0x16')](config[_0x332cb9('0x6')],'..',_0x332cb9('0x21'))),console[_0x332cb9('0x22')](_0x332cb9('0x17'),_0x1b8f2c[_0x332cb9('0x9')](_0x332cb9('0x1d')))),(_0x54bc36==='development'||_0x54bc36===_0x332cb9('0x15'))&&(_0x1b8f2c[_0x332cb9('0x8')](_0x332cb9('0x1d'),path[_0x332cb9('0x16')](config[_0x332cb9('0x6')],_0x332cb9('0x1f'))),_0x1b8f2c[_0x332cb9('0x14')](errorHandler())),_0x1b8f2c[_0x332cb9('0x8')]('json\x20replacer',function(_0x34a331,_0x34e74e){return this[_0x34a331]instanceof Date&&(_0x34e74e=this[_0x34a331]['toISOString']()['split']('.')[0x0]+'Z'),_0x34e74e;}),_0x1b8f2c[_0x332cb9('0x14')](express[_0x332cb9('0x19')](_0x1b8f2c['get'](_0x332cb9('0x1d')))),_0x1b8f2c[_0x332cb9('0x8')](_0x332cb9('0x1b'),config[_0x332cb9('0x6')]+_0x332cb9('0xc')),_0x1b8f2c['engine'](_0x332cb9('0x4'),require(_0x332cb9('0xd'))[_0x332cb9('0xa')]),_0x1b8f2c[_0x332cb9('0x8')](_0x332cb9('0xf'),_0x332cb9('0x4')),_0x1b8f2c[_0x332cb9('0x14')](bodyParser[_0x332cb9('0x3')]({'limit':_0x332cb9('0x11'),'extended':!![]})),_0x1b8f2c[_0x332cb9('0x14')](bodyParser[_0x332cb9('0x12')]({'limit':_0x332cb9('0x11')})),_0x1b8f2c[_0x332cb9('0x14')](cors({'origin':!_0x59e00a[_0x332cb9('0x2')],'methods':_0x59e00a[_0x332cb9('0x2')]?_0x332cb9('0x1e'):_0x332cb9('0x5'),'preflightContinue':!![]})),_0x1b8f2c[_0x332cb9('0x14')](methodOverride()),_0x1b8f2c['use'](cookieParser()),_0x1b8f2c[_0x332cb9('0x14')](passport[_0x332cb9('0x18')]());}; \ No newline at end of file +const a842_0x4d28=['cookie-parser','initialize','path','set','OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','public','appPath','html','json\x20replacer','method-override','/server/views','urlencoded','express','join','use','50mb','view\x20engine','development','static','split','toISOString','renderFile','ejs','./config.service','engine','json','log','get','root','test','isProduction','views','GET,HEAD,PUT,PATCH,POST,DELETE','env','Public\x20path\x20set\x20to\x20'];(function(_0x280750,_0x4d28b8){const _0x37333f=function(_0x5e3397){while(--_0x5e3397){_0x280750['push'](_0x280750['shift']());}};_0x37333f(++_0x4d28b8);}(a842_0x4d28,0xc0));const a842_0x3733=function(_0x280750,_0x4d28b8){_0x280750=_0x280750-0x0;let _0x37333f=a842_0x4d28[_0x280750];return _0x37333f;};const _0x22f351=a842_0x3733;'use strict';const express=require(_0x22f351('0x1e')),bodyParser=require('body-parser'),methodOverride=require(_0x22f351('0x1b')),cookieParser=require(_0x22f351('0x12')),errorHandler=require('errorhandler'),path=require(_0x22f351('0x14')),passport=require('passport'),cors=require('cors'),config=require('./environment'),{getConfigService}=require(_0x22f351('0x6'));exports['default']=function(_0x5e3397){const _0x23482a=_0x22f351,_0x41621c=_0x5e3397[_0x23482a('0xa')](_0x23482a('0x10')),_0x12d66c=getConfigService();_0x5e3397[_0x23482a('0x15')](_0x23482a('0x18'),path[_0x23482a('0x1f')](config[_0x23482a('0xb')],'..',_0x23482a('0x17'))),console[_0x23482a('0x9')](_0x23482a('0x11'),_0x5e3397['get'](_0x23482a('0x18'))),(_0x41621c===_0x23482a('0x0')||_0x41621c===_0x23482a('0xc'))&&_0x5e3397[_0x23482a('0x20')](errorHandler()),_0x5e3397['set'](_0x23482a('0x1a'),function(_0x433cd0,_0x372a80){const _0x36d92a=_0x23482a;return this[_0x433cd0]instanceof Date&&(_0x372a80=this[_0x433cd0][_0x36d92a('0x3')]()[_0x36d92a('0x2')]('.')[0x0]+'Z'),_0x372a80;}),_0x5e3397[_0x23482a('0x20')](express[_0x23482a('0x1')](_0x5e3397[_0x23482a('0xa')](_0x23482a('0x18')))),_0x5e3397[_0x23482a('0x15')](_0x23482a('0xe'),config['root']+_0x23482a('0x1c')),_0x5e3397[_0x23482a('0x7')]('html',require(_0x23482a('0x5'))[_0x23482a('0x4')]),_0x5e3397[_0x23482a('0x15')](_0x23482a('0x22'),_0x23482a('0x19')),_0x5e3397[_0x23482a('0x20')](bodyParser[_0x23482a('0x1d')]({'limit':_0x23482a('0x21'),'extended':!![]})),_0x5e3397[_0x23482a('0x20')](bodyParser[_0x23482a('0x8')]({'limit':_0x23482a('0x21')})),_0x5e3397[_0x23482a('0x20')](cors({'origin':!_0x12d66c['isProduction'],'methods':_0x12d66c[_0x23482a('0xd')]?_0x23482a('0xf'):_0x23482a('0x16'),'preflightContinue':!![]})),_0x5e3397['use'](methodOverride()),_0x5e3397[_0x23482a('0x20')](cookieParser()),_0x5e3397[_0x23482a('0x20')](passport[_0x23482a('0x13')]());}; \ No newline at end of file diff --git a/server/config/license/hardware.js b/server/config/license/hardware.js index bc8d283..36bb09c 100644 --- a/server/config/license/hardware.js +++ b/server/config/license/hardware.js @@ -1 +1 @@ -const a843_0x1a64=['family','address','isProduction','map','hostname','devLicense','join','length','execSync','mac','keys','update','replace','utf8','platform','head','digest','model','substring','md5','hex','test','ipAddress','orderBy','exports','win32','127.0.0.1','createHash','dmidecode\x20--string\x20system-uuid'];(function(_0x5ca131,_0x1a64b1){const _0x7bf852=function(_0xd777be){while(--_0xd777be){_0x5ca131['push'](_0x5ca131['shift']());}};_0x7bf852(++_0x1a64b1);}(a843_0x1a64,0x156));const a843_0x7bf8=function(_0x5ca131,_0x1a64b1){_0x5ca131=_0x5ca131-0x0;let _0x7bf852=a843_0x1a64[_0x5ca131];return _0x7bf852;};const _0x428f7e=a843_0x7bf8;'use strict';const _=require('lodash'),os=require('os'),crypto=require('crypto'),{getConfigService}=require('../config.service'),exec=require('child_process')[_0x428f7e('0xe')];function getInterfaces(){const _0x523565=_0x428f7e;let _0xd777be=[];const _0x564bbb=os['networkInterfaces'](),_0x5f517e=_[_0x523565('0x0')](_[_0x523565('0x10')](_0x564bbb));for(let _0x324c8b=0x0;_0x324c8b<_0x5f517e[_0x523565('0xd')];_0x324c8b++){const _0x3ef53a=_0x564bbb[_0x5f517e[_0x324c8b]]['filter'](function(_0x5ee55a){const _0x30c52c=_0x523565;return _0x5ee55a[_0x30c52c('0x6')]==='IPv4'&&_0x5ee55a['internal']===![];});_0xd777be=_0xd777be['concat'](_0x3ef53a);}return _0xd777be;}function getFirstInterface(){const _0x1f948d=_0x428f7e,_0x37491b=_[_0x1f948d('0x15')](getInterfaces());return{'macAddress':_0x37491b&&_0x37491b[_0x1f948d('0xf')]?_0x37491b[_0x1f948d('0xf')]:'00:00:00:00:00:00','ipAddress':_0x37491b&&_0x37491b[_0x1f948d('0x7')]?_0x37491b['address']:_0x1f948d('0x3')};}function getCPUhash(){const _0x564413=_0x428f7e,_0x1afb72=_['orderBy'](os['cpus']()[_0x564413('0x9')](function(_0x3cc179){const _0x3ca23a=_0x564413;return _0x3cc179[_0x3ca23a('0x17')];}))[_0x564413('0xc')](':');return crypto['createHash'](_0x564413('0x19'))[_0x564413('0x11')](_0x1afb72)['digest'](_0x564413('0x1a'));}function getUuid(){const _0x5f21db=_0x428f7e,_0x285aad=getConfigService(),_0x234a71=os[_0x5f21db('0x14')](),_0x273a77=/[0-9a-f-]{36}/;if(!_0x285aad[_0x5f21db('0x8')]&&_0x273a77[_0x5f21db('0x1b')](_0x285aad[_0x5f21db('0xb')]))return _0x285aad[_0x5f21db('0xb')];else{if(_0x234a71===_0x5f21db('0x2'))return exec(_0x5f21db('0x5'),{'encoding':_0x5f21db('0x13')})[_0x5f21db('0x12')]('\x0d\x0a','');else{const _0x3489dc=getFirstInterface(),_0x5f536f=getCPUhash(),_0x323d36=_0x5f536f+'|'+os[_0x5f21db('0xa')]()+'|'+_0x3489dc['macAddress']+'|'+_0x3489dc[_0x5f21db('0x1c')],_0x2f6516=crypto[_0x5f21db('0x4')](_0x5f21db('0x19'))[_0x5f21db('0x11')](_0x323d36)[_0x5f21db('0x16')](_0x5f21db('0x1a'));return _0x2f6516['substring'](0x0,0x8)+'-'+_0x2f6516[_0x5f21db('0x18')](0x8,0xc)+'-'+_0x2f6516[_0x5f21db('0x18')](0xc,0x10)+'-'+_0x2f6516[_0x5f21db('0x18')](0x10,0x14)+'-'+_0x2f6516['substring'](0x14);}}}module[_0x428f7e('0x1')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash}; \ No newline at end of file +const a843_0x2965=['filter','substring','hostname','digest','ipAddress','IPv4','test','update','127.0.0.1','crypto','execSync','devLicense','lodash','platform','macAddress','isProduction','cpus','win32','keys','dmidecode\x20--string\x20system-uuid','exports','replace','mac','join','00:00:00:00:00:00','createHash','model','../config.service','md5','address','hex','networkInterfaces','family'];(function(_0x493c44,_0x296572){const _0x5f1fac=function(_0x3a51f9){while(--_0x3a51f9){_0x493c44['push'](_0x493c44['shift']());}};_0x5f1fac(++_0x296572);}(a843_0x2965,0x1c7));const a843_0x5f1f=function(_0x493c44,_0x296572){_0x493c44=_0x493c44-0x0;let _0x5f1fac=a843_0x2965[_0x493c44];return _0x5f1fac;};const _0x13e646=a843_0x5f1f;'use strict';const _=require(_0x13e646('0x13')),os=require('os'),crypto=require(_0x13e646('0x10')),{getConfigService}=require(_0x13e646('0x1')),exec=require('child_process')[_0x13e646('0x11')];function getInterfaces(){const _0x1cb818=_0x13e646;let _0x3a51f9=[];const _0xca579c=os[_0x1cb818('0x5')](),_0x38d087=_['orderBy'](_[_0x1cb818('0x19')](_0xca579c));for(let _0xb07cec=0x0;_0xb07cec<_0x38d087['length'];_0xb07cec++){const _0x1bd7e7=_0xca579c[_0x38d087[_0xb07cec]][_0x1cb818('0x7')](function(_0x56be2e){const _0x3e6b1e=_0x1cb818;return _0x56be2e[_0x3e6b1e('0x6')]===_0x3e6b1e('0xc')&&_0x56be2e['internal']===![];});_0x3a51f9=_0x3a51f9['concat'](_0x1bd7e7);}return _0x3a51f9;}function getFirstInterface(){const _0xcd844c=_0x13e646,_0x443e2d=_['head'](getInterfaces());return{'macAddress':_0x443e2d&&_0x443e2d['mac']?_0x443e2d[_0xcd844c('0x1d')]:_0xcd844c('0x1f'),'ipAddress':_0x443e2d&&_0x443e2d[_0xcd844c('0x3')]?_0x443e2d[_0xcd844c('0x3')]:_0xcd844c('0xf')};}function getCPUhash(){const _0x5cec66=_0x13e646,_0x5cdcd4=_['orderBy'](os[_0x5cec66('0x17')]()['map'](function(_0x18eeb2){const _0x87b2f7=_0x5cec66;return _0x18eeb2[_0x87b2f7('0x0')];}))[_0x5cec66('0x1e')](':');return crypto[_0x5cec66('0x20')](_0x5cec66('0x2'))['update'](_0x5cdcd4)[_0x5cec66('0xa')](_0x5cec66('0x4'));}function getUuid(){const _0x17b087=_0x13e646,_0x5e0d61=getConfigService(),_0x3fae59=os[_0x17b087('0x14')](),_0x53d382=/[0-9a-f-]{36}/;if(!_0x5e0d61[_0x17b087('0x16')]&&_0x53d382[_0x17b087('0xd')](_0x5e0d61[_0x17b087('0x12')]))return _0x5e0d61['devLicense'];else{if(_0x3fae59===_0x17b087('0x18'))return exec(_0x17b087('0x1a'),{'encoding':'utf8'})[_0x17b087('0x1c')]('\x0d\x0a','');else{const _0x3dcd40=getFirstInterface(),_0xc79ccb=getCPUhash(),_0x11036e=_0xc79ccb+'|'+os[_0x17b087('0x9')]()+'|'+_0x3dcd40[_0x17b087('0x15')]+'|'+_0x3dcd40[_0x17b087('0xb')],_0x31d87f=crypto[_0x17b087('0x20')]('md5')[_0x17b087('0xe')](_0x11036e)['digest'](_0x17b087('0x4'));return _0x31d87f[_0x17b087('0x8')](0x0,0x8)+'-'+_0x31d87f[_0x17b087('0x8')](0x8,0xc)+'-'+_0x31d87f[_0x17b087('0x8')](0xc,0x10)+'-'+_0x31d87f[_0x17b087('0x8')](0x10,0x14)+'-'+_0x31d87f[_0x17b087('0x8')](0x14);}}}module[_0x13e646('0x1b')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash}; \ No newline at end of file diff --git a/server/config/license/index.js b/server/config/license/index.js index 9539ba7..65e9ea7 100644 --- a/server/config/license/index.js +++ b/server/config/license/index.js @@ -1 +1 @@ -const a844_0x3260=['No\x20UUID\x20found','email','data1','default','getUuid','util','../logger','YYYY-MM-DD\x20HH:mm','||FIELD||VALUE||\x0a','uuid','info','message','%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s','encryptString','reject','active','get','License','../../api/jira/jira.controller','moment','Alert','diff','./hardware','admin','%s/api/servers/%s/check?version=%s','|machineUuid|','|uuid|','fullname','DEMO\x20START\x20AT\x20%s','Changed','GET','|name|','SERVICE\x20LICENSE\x20STARTED\x20%s','error','findOrCreate','../../../package.json','|reason|','then','update','|email|','days','THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','../../mysqldb','toUpperCase','format','catch','data2','THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED','THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED','Disabled','request-promise-native','%s/api/servers/%s/check?version=%s&oldtoken=%s','getFirstInterface','finally','license','User'];(function(_0x25e66f,_0x3260cd){const _0x2ce6d9=function(_0x4ea0dd){while(--_0x4ea0dd){_0x25e66f['push'](_0x25e66f['shift']());}};_0x2ce6d9(++_0x3260cd);}(a844_0x3260,0xdf));const a844_0x2ce6=function(_0x25e66f,_0x3260cd){_0x25e66f=_0x25e66f-0x0;let _0x2ce6d9=a844_0x3260[_0x25e66f];return _0x2ce6d9;};const _0x119cc1=a844_0x2ce6;'use strict';const {version}=require(_0x119cc1('0x28')),util=require(_0x119cc1('0xa')),encryptor=require('../../components/encryptor'),moment=require(_0x119cc1('0x18')),rp=require(_0x119cc1('0x38')),db=require(_0x119cc1('0x30'))['db'],hardware=require(_0x119cc1('0x1b')),logger=require(_0x119cc1('0xb'))(_0x119cc1('0x3')),jira=require(_0x119cc1('0x17')),HOST='https://www.xcallymotion.com',TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x4ea0dd){return new Promise(function(_0x334fcf,_0x2c59d3){const _0xeabbef=a844_0x2ce6;let _0x5aa52f=util[_0xeabbef('0x32')](_0xeabbef('0x1d'),HOST,_0x4ea0dd,version);oldToken&&(_0x5aa52f=util['format'](_0xeabbef('0x0'),HOST,_0x4ea0dd,version,oldToken));const _0x20154b={'uri':_0x5aa52f,'method':_0xeabbef('0x23'),'timeout':0xea60,'json':!![]};return rp(_0x20154b)[_0xeabbef('0x2a')](function(_0x2b0c85){_0x334fcf(_0x2b0c85);})['catch'](function(_0x2c203b){_0x2c59d3(_0x2c203b);});});}function sendJiraAlert(_0xf6c217,_0x2c55d1,_0x33ebee){const _0x338fb3=_0x119cc1;let _0x5f5b49=_0x338fb3('0xd');return db[_0x338fb3('0x4')]['findOne']({'where':{'role':_0x338fb3('0x1c')},'attributes':[_0x338fb3('0x20'),_0x338fb3('0x6')],'raw':!![]})[_0x338fb3('0x2a')](function(_0x3bbbaa){const _0x42191f=_0x338fb3;return ADMIN=_0x3bbbaa,_0x5f5b49+=_0x42191f('0x29')+_0x33ebee+'|\x0a',_0x5f5b49+=_0x42191f('0x1f')+_0xf6c217+'|\x0a',_0x5f5b49+=_0x42191f('0x1e')+_0x2c55d1+'|\x0a',_0x5f5b49+=_0x42191f('0x24')+ADMIN[_0x42191f('0x20')]+'|\x0a',_0x5f5b49+=_0x42191f('0x2c')+ADMIN[_0x42191f('0x6')]+'|\x0a',_0x5f5b49;})[_0x338fb3('0x2a')](function(_0x377de8){const _0x7290d0=_0x338fb3,_0x191df8=hardware[_0x7290d0('0x1')]()['ipAddress'];return jira['openIssue']({'key':'MOTLICENSE','summary':'Motion\x20License\x20Alert','description':_0x377de8,'issuetype':_0x7290d0('0x19'),'oldToken':_0xf6c217,'newToken':_0x2c55d1,'email':ADMIN[_0x7290d0('0x6')],'name':ADMIN[_0x7290d0('0x20')],'reason':GRAY_PERIOD_REASON,'ip':_0x191df8});});}function manageLicense(_0x12c348,_0x3dc1db){const _0x5c949e=_0x119cc1,_0x58dfe2=_0x3dc1db[_0x5c949e('0x15')]({'plain':!![]});httpRequest(_0x12c348)[_0x5c949e('0x2a')](function(_0x55aece){const _0x189039=_0x5c949e;oldToken&&(oldToken=undefined);if(_0x55aece[_0x189039('0x14')]){(!_0x58dfe2[_0x189039('0x3')]&&_0x58dfe2['license']!=_0x55aece['license']||_0x58dfe2[_0x189039('0x3')]&&_0x58dfe2[_0x189039('0x34')])&&logger[_0x189039('0xf')](_0x189039('0x2e'));_0x58dfe2['license']&&!_0x58dfe2[_0x189039('0x34')]&&_0x58dfe2[_0x189039('0x3')]!=_0x55aece[_0x189039('0x3')]&&logger[_0x189039('0xf')](_0x189039('0x36'));if(_0x58dfe2[_0x189039('0x3')]&&!_0x58dfe2['data2']&&_0x58dfe2['license']==_0x55aece[_0x189039('0x3')])return _0x3dc1db;return _0x3dc1db['update']({'data1':_0x12c348,'data2':null,'license':_0x55aece[_0x189039('0x3')]});}else{if(_0x55aece[_0x189039('0x3')]||_0x58dfe2[_0x189039('0x3')]){if(!_0x58dfe2[_0x189039('0x34')])return _0x58dfe2[_0x189039('0x7')]==_0x12c348?(GRAY_PERIOD_REASON=_0x189039('0x37'),logger['info'](_0x189039('0x35'))):(GRAY_PERIOD_REASON=_0x189039('0x22'),oldToken=_0x58dfe2['data1'],logger[_0x189039('0xf')](_0x189039('0x2f'),_0x58dfe2['data1'],_0x12c348)),sendJiraAlert(_0x58dfe2['data1'],_0x55aece[_0x189039('0xe')],GRAY_PERIOD_REASON),logger['info'](_0x189039('0x11'),GRAY_PERIOD_REASON[_0x189039('0x31')](),moment()[_0x189039('0x32')]('YYYY-MM-DD\x20HH:mm')),_0x3dc1db['update']({'data2':encryptor[_0x189039('0x12')](moment()[_0x189039('0x32')](_0x189039('0xc')))});else{if(moment()[_0x189039('0x1a')](encryptor['decryptString'](_0x58dfe2['data2']),_0x189039('0x2d'))>DAYS)return logger[_0x189039('0xf')](_0x189039('0x21'),moment()[_0x189039('0x32')]('YYYY-MM-DD\x20HH:mm')),_0x3dc1db[_0x189039('0x2b')]({'data1':_0x12c348,'data2':null,'license':null});}}else{if(_0x58dfe2[_0x189039('0x7')]!=_0x12c348)return logger['info']('NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s',_0x58dfe2[_0x189039('0x7')],_0x12c348),_0x3dc1db[_0x189039('0x2b')]({'data1':_0x12c348,'data2':null,'license':null});}}return _0x3dc1db;})[_0x5c949e('0x2a')](function(_0x23003f){_0x3dc1db=_0x23003f;})['catch'](function(_0x580af1){const _0x550da5=_0x5c949e;logger[_0x550da5('0x26')](_0x580af1[_0x550da5('0x10')]);})[_0x5c949e('0x2')](function(){setTimeout(function(){manageLicense(hardware['getUuid'](),_0x3dc1db);},TIME);});}function defaultLicense(){const _0x8226aa=_0x119cc1,_0x1dd8ac=hardware[_0x8226aa('0x9')]();return _0x1dd8ac?db[_0x8226aa('0x16')][_0x8226aa('0x27')]({'where':{'id':0x1},'defaults':{'data1':_0x1dd8ac}})[_0x8226aa('0x2a')](function([_0x29547b]){const _0x333ec7=_0x8226aa;logger[_0x333ec7('0xf')](_0x333ec7('0x25'),_0x1dd8ac),manageLicense(_0x1dd8ac,_0x29547b);})[_0x8226aa('0x33')](function(_0x1d4d41){const _0x1d6ed1=_0x8226aa;logger[_0x1d6ed1('0x26')](_0x1d4d41[_0x1d6ed1('0x10')]);throw _0x1d4d41;}):Promise[_0x8226aa('0x13')](new Error(_0x8226aa('0x5')));}exports[_0x119cc1('0x8')]=defaultLicense; \ No newline at end of file +const a844_0x1155=['THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED','diff','Disabled','error','data1','https://www.xcallymotion.com','catch','encryptString','toUpperCase','active','DEMO\x20START\x20AT\x20%s','email','message','findOrCreate','|machineUuid|','|reason|','../../../package.json','update','../logger','Changed','format','%s/api/servers/%s/check?version=%s&oldtoken=%s','data2','fullname','license','User','../../components/encryptor','|email|','%s/api/servers/%s/check?version=%s','openIssue','Motion\x20License\x20Alert','info','days','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','||FIELD||VALUE||\x0a','../../mysqldb','getUuid','Alert','finally','then','moment','request-promise-native','admin','THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED','uuid','YYYY-MM-DD\x20HH:mm','%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s','|uuid|','../../api/jira/jira.controller','decryptString','THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED','GET','|name|'];(function(_0x59698b,_0x11559a){const _0xceea96=function(_0x3a567d){while(--_0x3a567d){_0x59698b['push'](_0x59698b['shift']());}};_0xceea96(++_0x11559a);}(a844_0x1155,0xc1));const a844_0xceea=function(_0x59698b,_0x11559a){_0x59698b=_0x59698b-0x0;let _0xceea96=a844_0x1155[_0x59698b];return _0xceea96;};const _0x205dda=a844_0xceea;'use strict';const {version}=require(_0x205dda('0x23')),util=require('util'),encryptor=require(_0x205dda('0x2d')),moment=require(_0x205dda('0x6')),rp=require(_0x205dda('0x7')),db=require(_0x205dda('0x1'))['db'],hardware=require('./hardware'),logger=require(_0x205dda('0x25'))(_0x205dda('0x2b')),jira=require(_0x205dda('0xe')),HOST=_0x205dda('0x18'),TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x3a567d){return new Promise(function(_0x595d6c,_0x352b62){const _0x1ff516=a844_0xceea;let _0x3e32a9=util['format'](_0x1ff516('0x2f'),HOST,_0x3a567d,version);oldToken&&(_0x3e32a9=util[_0x1ff516('0x27')](_0x1ff516('0x28'),HOST,_0x3a567d,version,oldToken));const _0x24dcd2={'uri':_0x3e32a9,'method':_0x1ff516('0x11'),'timeout':0xea60,'json':!![]};return rp(_0x24dcd2)[_0x1ff516('0x5')](function(_0x1f168f){_0x595d6c(_0x1f168f);})['catch'](function(_0x54dc7b){_0x352b62(_0x54dc7b);});});}function sendJiraAlert(_0x2e501d,_0x565e05,_0x3f47f1){const _0xae9239=_0x205dda;let _0xfa47d5=_0xae9239('0x0');return db[_0xae9239('0x2c')]['findOne']({'where':{'role':_0xae9239('0x8')},'attributes':[_0xae9239('0x2a'),'email'],'raw':!![]})[_0xae9239('0x5')](function(_0x3902aa){const _0x399633=_0xae9239;return ADMIN=_0x3902aa,_0xfa47d5+=_0x399633('0x22')+_0x3f47f1+'|\x0a',_0xfa47d5+=_0x399633('0xd')+_0x2e501d+'|\x0a',_0xfa47d5+=_0x399633('0x21')+_0x565e05+'|\x0a',_0xfa47d5+=_0x399633('0x12')+ADMIN['fullname']+'|\x0a',_0xfa47d5+=_0x399633('0x2e')+ADMIN[_0x399633('0x1e')]+'|\x0a',_0xfa47d5;})[_0xae9239('0x5')](function(_0x783e92){const _0x4aa886=_0xae9239,_0x1e18fa=hardware['getFirstInterface']()['ipAddress'];return jira[_0x4aa886('0x30')]({'key':'MOTLICENSE','summary':_0x4aa886('0x31'),'description':_0x783e92,'issuetype':_0x4aa886('0x3'),'oldToken':_0x2e501d,'newToken':_0x565e05,'email':ADMIN['email'],'name':ADMIN[_0x4aa886('0x2a')],'reason':GRAY_PERIOD_REASON,'ip':_0x1e18fa});});}function manageLicense(_0x2d2ca6,_0x24b98a){const _0x2a5fab=_0x205dda,_0x77014f=_0x24b98a['get']({'plain':!![]});httpRequest(_0x2d2ca6)[_0x2a5fab('0x5')](function(_0x42b867){const _0x252b28=_0x2a5fab;oldToken&&(oldToken=undefined);if(_0x42b867[_0x252b28('0x1c')]){(!_0x77014f[_0x252b28('0x2b')]&&_0x77014f[_0x252b28('0x2b')]!=_0x42b867[_0x252b28('0x2b')]||_0x77014f[_0x252b28('0x2b')]&&_0x77014f[_0x252b28('0x29')])&&logger[_0x252b28('0x32')](_0x252b28('0x9'));_0x77014f[_0x252b28('0x2b')]&&!_0x77014f[_0x252b28('0x29')]&&_0x77014f[_0x252b28('0x2b')]!=_0x42b867[_0x252b28('0x2b')]&&logger[_0x252b28('0x32')](_0x252b28('0x13'));if(_0x77014f[_0x252b28('0x2b')]&&!_0x77014f[_0x252b28('0x29')]&&_0x77014f[_0x252b28('0x2b')]==_0x42b867[_0x252b28('0x2b')])return _0x24b98a;return _0x24b98a[_0x252b28('0x24')]({'data1':_0x2d2ca6,'data2':null,'license':_0x42b867['license']});}else{if(_0x42b867[_0x252b28('0x2b')]||_0x77014f[_0x252b28('0x2b')]){if(!_0x77014f['data2'])return _0x77014f['data1']==_0x2d2ca6?(GRAY_PERIOD_REASON=_0x252b28('0x15'),logger[_0x252b28('0x32')](_0x252b28('0x10'))):(GRAY_PERIOD_REASON=_0x252b28('0x26'),oldToken=_0x77014f['data1'],logger[_0x252b28('0x32')](_0x252b28('0x34'),_0x77014f[_0x252b28('0x17')],_0x2d2ca6)),sendJiraAlert(_0x77014f[_0x252b28('0x17')],_0x42b867[_0x252b28('0xa')],GRAY_PERIOD_REASON),logger[_0x252b28('0x32')](_0x252b28('0xc'),GRAY_PERIOD_REASON[_0x252b28('0x1b')](),moment()['format'](_0x252b28('0xb'))),_0x24b98a[_0x252b28('0x24')]({'data2':encryptor[_0x252b28('0x1a')](moment()[_0x252b28('0x27')](_0x252b28('0xb')))});else{if(moment()[_0x252b28('0x14')](encryptor[_0x252b28('0xf')](_0x77014f[_0x252b28('0x29')]),_0x252b28('0x33'))>DAYS)return logger[_0x252b28('0x32')](_0x252b28('0x1d'),moment()[_0x252b28('0x27')](_0x252b28('0xb'))),_0x24b98a[_0x252b28('0x24')]({'data1':_0x2d2ca6,'data2':null,'license':null});}}else{if(_0x77014f['data1']!=_0x2d2ca6)return logger[_0x252b28('0x32')](_0x252b28('0x34'),_0x77014f[_0x252b28('0x17')],_0x2d2ca6),_0x24b98a[_0x252b28('0x24')]({'data1':_0x2d2ca6,'data2':null,'license':null});}}return _0x24b98a;})['then'](function(_0x1a6c78){_0x24b98a=_0x1a6c78;})['catch'](function(_0x52def4){const _0x278e8a=_0x2a5fab;logger['error'](_0x52def4[_0x278e8a('0x1f')]);})[_0x2a5fab('0x4')](function(){setTimeout(function(){const _0x4ab0a5=a844_0xceea;manageLicense(hardware[_0x4ab0a5('0x2')](),_0x24b98a);},TIME);});}function defaultLicense(){const _0x39859e=_0x205dda,_0x4b5151=hardware['getUuid']();return _0x4b5151?db['License'][_0x39859e('0x20')]({'where':{'id':0x1},'defaults':{'data1':_0x4b5151}})[_0x39859e('0x5')](function([_0x4a8d19]){const _0x4906d2=_0x39859e;logger[_0x4906d2('0x32')]('SERVICE\x20LICENSE\x20STARTED\x20%s',_0x4b5151),manageLicense(_0x4b5151,_0x4a8d19);})[_0x39859e('0x19')](function(_0x7615a4){const _0x448237=_0x39859e;logger[_0x448237('0x16')](_0x7615a4[_0x448237('0x1f')]);throw _0x7615a4;}):Promise['reject'](new Error('No\x20UUID\x20found'));}exports['default']=defaultLicense; \ No newline at end of file diff --git a/server/config/license/util.js b/server/config/license/util.js index 3a5f997..8082e00 100644 --- a/server/config/license/util.js +++ b/server/config/license/util.js @@ -1 +1 @@ -const a845_0x470c=['split','isEmpty','COUNT','parse','telephone','machineUuid','countBy','2027-01-01T00:00:00.000Z','telephones','deadline','Breaking\x20license','role','moment','demo','col','users','disabled','../../mysqldb','admin','%s:%s:%s','forEach','gray','License\x20limit\x20reached\x20for\x20telephones','data1','user','findOne','catch','then','add','sequelize','grayReason','format','message','getUuid','License','util','findAll','uuid','days','exports','decryptString','license','./hardware','changed','defaults','License\x20limit\x20reached\x20for\x20users','data2','count'];(function(_0x2c1211,_0x470ceb){const _0x23e361=function(_0x210c05){while(--_0x210c05){_0x2c1211['push'](_0x2c1211['shift']());}};_0x23e361(++_0x470ceb);}(a845_0x470c,0xe3));const a845_0x23e3=function(_0x2c1211,_0x470ceb){_0x2c1211=_0x2c1211-0x0;let _0x23e361=a845_0x470c[_0x2c1211];return _0x23e361;};const _0xb7bf86=a845_0x23e3;'use strict';const encryptor=require('../../components/encryptor'),util=require(_0xb7bf86('0x0')),_=require('lodash'),moment=require(_0xb7bf86('0x19')),hardware=require(_0xb7bf86('0x7')),db=require(_0xb7bf86('0x1e'))['db'],{Op}=require(_0xb7bf86('0x2a')),demoLicense={'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':_0xb7bf86('0x14'),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'description':'Demo\x20license','machineUuid':hardware[_0xb7bf86('0x2e')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':_0xb7bf86('0x14'),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':_0xb7bf86('0x17'),'machineUuid':hardware[_0xb7bf86('0x2e')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x210c05){return new Promise(function(_0x5a94bf,_0x4657c9){const _0x2bcc58=a845_0x23e3;return db[_0x2bcc58('0x2f')][_0x2bcc58('0x26')](_[_0x2bcc58('0x9')](_0x210c05,{'raw':!![],'where':{'id':0x1}}))[_0x2bcc58('0x28')](function(_0x198231){return checkLicense(_0x198231,null);})[_0x2bcc58('0x28')](function(_0x516b6c){_0x5a94bf(_0x516b6c);return;})[_0x2bcc58('0x27')](function(_0xeab34b){_0x4657c9(_0xeab34b);});});}function checkLicense(_0x5147e8,_0x3ef006){const _0x27531b=_0xb7bf86;if(!_0x5147e8)return demoLicense[_0x27531b('0x2')]=_0x5147e8[_0x27531b('0x24')],demoLicense;try{const _0x182ea3=_0x3ef006||_0x5147e8[_0x27531b('0x6')];if(_[_0x27531b('0xe')](_0x182ea3))throw new Error('License\x20key\x20value\x20not\x20found');const _0x4278aa=_0x5147e8[_0x27531b('0x24')],_0x19291d=_0x5147e8[_0x27531b('0xb')],_0x17fad8=_0x4278aa[_0x27531b('0xd')]('-')[0x4],_0x250d6d=_0x4278aa['split']('-')[0x0],_0x2ca5d5=encryptor[_0x27531b('0x5')](_0x182ea3,util[_0x27531b('0x2c')](_0x27531b('0x20'),_0x17fad8,_0x4278aa,_0x250d6d)),_0x55e293=JSON[_0x27531b('0x10')](_0x2ca5d5);_0x55e293[_0x27531b('0x1a')]=![],_0x55e293[_0x27531b('0x2')]=_0x4278aa,_0x55e293['machineUuid']=hardware[_0x27531b('0x2e')]();if(_0x19291d){const _0x96f929=encryptor['decryptString'](_0x19291d);_0x55e293[_0x27531b('0x22')]=_0x96f929,_0x55e293[_0x27531b('0x16')]=moment(_0x96f929)[_0x27531b('0x29')](0x7,_0x27531b('0x3'))[_0x27531b('0x2c')](),_0x55e293[_0x27531b('0x2b')]=_0x55e293[_0x27531b('0x2')]!=_0x55e293[_0x27531b('0x12')]?_0x27531b('0x8'):_0x27531b('0x1d');}return _0x55e293;}catch(_0x27eebb){return breakingLicense[_0x27531b('0x2')]=_0x5147e8[_0x27531b('0x24')],breakingLicense[_0x27531b('0x2d')]=_0x27eebb[_0x27531b('0x2d')],breakingLicense;}}function getLimits(){return new Promise(function(_0x3aa05e,_0x138dd6){const _0x2dcb20=a845_0x23e3;getLicense()['then'](function(_0x215d3a){const _0x509969=a845_0x23e3;return db['User'][_0x509969('0x1')]({'attributes':[_0x509969('0x18'),[db[_0x509969('0x2a')]['fn'](_0x509969('0xf'),db[_0x509969('0x2a')][_0x509969('0x1b')](_0x509969('0x18'))),'count']],'group':_0x509969('0x18'),'where':{'role':{[Op['or']]:[_0x509969('0x1f'),_0x509969('0x25'),_0x509969('0x11')]}},'raw':!![]})[_0x509969('0x28')](function(_0x29c32a){const _0x1f032a=_0x509969,_0x2fdb99={'user':_0x215d3a[_0x1f032a('0x1c')]||0x0,'telephone':_0x215d3a[_0x1f032a('0x15')]||0x0};_0x29c32a[_0x1f032a('0x21')](function(_0xa10984){const _0x3d3cc2=_0x1f032a,_0x80b20=_0xa10984[_0x3d3cc2('0x18')]===_0x3d3cc2('0x1f')?_0x3d3cc2('0x25'):_0xa10984['role'];_0x2fdb99[_0x80b20]-=_0xa10984[_0x3d3cc2('0xc')];if(_0x2fdb99[_0x80b20]<0x0)_0x2fdb99[_0x80b20]=0x0;}),_0x3aa05e(_0x2fdb99);return;});})[_0x2dcb20('0x27')](function(_0x5e36f4){_0x138dd6(_0x5e36f4);});});}function checkUserLimits(_0x7209c5){return new Promise(function(_0x48bce1,_0x331040){const _0x57c71c=a845_0x23e3;getLimits()[_0x57c71c('0x28')](function(_0x1c2aa6){const _0x33bd46=_0x57c71c,_0x1e4e1b=_['pick'](_[_0x33bd46('0x13')](_0x7209c5,_0x33bd46('0x18')),['admin',_0x33bd46('0x25'),'telephone']),_0x27b59e=(_0x1e4e1b[_0x33bd46('0x1f')]||0x0)+(_0x1e4e1b[_0x33bd46('0x25')]||0x0),_0x38c903=_0x1e4e1b['telephone']||0x0;if(_0x27b59e>_0x1c2aa6['user'])return _0x331040(_0x33bd46('0xa'));if(_0x38c903>_0x1c2aa6['telephone'])return _0x331040(_0x33bd46('0x23'));return _0x48bce1();})[_0x57c71c('0x27')](function(_0x9e73a9){_0x331040(_0x9e73a9);});});}module[_0xb7bf86('0x4')]={'checkLicense':checkLicense,'checkUserLimits':checkUserLimits,'getLicense':getLicense}; \ No newline at end of file +const a845_0x463c=['moment','User','findAll','user','License\x20key\x20value\x20not\x20found','license','col','2027-01-01T00:00:00.000Z','../../mysqldb','days','forEach','parse','demo','lodash','then','count','changed','License\x20limit\x20reached\x20for\x20telephones','./hardware','uuid','message','add','sequelize','telephones','users','../../components/encryptor','countBy','role','grayReason','split','License\x20limit\x20reached\x20for\x20users','deadline','util','gray','telephone','exports','pick','COUNT','%s:%s:%s','getUuid','format','data1','catch','License','Demo\x20license','admin','disabled','machineUuid','decryptString'];(function(_0x1f520f,_0x463cfb){const _0xf5d71c=function(_0x2cbf90){while(--_0x2cbf90){_0x1f520f['push'](_0x1f520f['shift']());}};_0xf5d71c(++_0x463cfb);}(a845_0x463c,0x98));const a845_0xf5d7=function(_0x1f520f,_0x463cfb){_0x1f520f=_0x1f520f-0x0;let _0xf5d71c=a845_0x463c[_0x1f520f];return _0xf5d71c;};const _0x140a60=a845_0xf5d7;'use strict';const encryptor=require(_0x140a60('0x14')),util=require(_0x140a60('0x1b')),_=require(_0x140a60('0x8')),moment=require(_0x140a60('0x2c')),hardware=require(_0x140a60('0xd')),db=require(_0x140a60('0x3'))['db'],{Op}=require(_0x140a60('0x11')),demoLicense={'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':'2027-01-01T00:00:00.000Z','chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'description':_0x140a60('0x27'),'machineUuid':hardware['getUuid'](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':_0x140a60('0x2'),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':'Breaking\x20license','machineUuid':hardware[_0x140a60('0x22')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x2cbf90){return new Promise(function(_0x30e11f,_0x4eddab){const _0xb8f0c8=a845_0xf5d7;return db[_0xb8f0c8('0x26')]['findOne'](_['defaults'](_0x2cbf90,{'raw':!![],'where':{'id':0x1}}))[_0xb8f0c8('0x9')](function(_0x115246){return checkLicense(_0x115246,null);})[_0xb8f0c8('0x9')](function(_0x371084){_0x30e11f(_0x371084);return;})[_0xb8f0c8('0x25')](function(_0x1031d6){_0x4eddab(_0x1031d6);});});}function checkLicense(_0x135693,_0x101460){const _0x4f9f10=_0x140a60;if(!_0x135693)return demoLicense['uuid']=_0x135693[_0x4f9f10('0x24')],demoLicense;try{const _0x2f8609=_0x101460||_0x135693[_0x4f9f10('0x0')];if(_['isEmpty'](_0x2f8609))throw new Error(_0x4f9f10('0x30'));const _0x4a5097=_0x135693[_0x4f9f10('0x24')],_0x59943e=_0x135693['data2'],_0x3be446=_0x4a5097[_0x4f9f10('0x18')]('-')[0x4],_0x4af1ce=_0x4a5097[_0x4f9f10('0x18')]('-')[0x0],_0x1d554f=encryptor['decryptString'](_0x2f8609,util[_0x4f9f10('0x23')](_0x4f9f10('0x21'),_0x3be446,_0x4a5097,_0x4af1ce)),_0x3f42bd=JSON[_0x4f9f10('0x6')](_0x1d554f);_0x3f42bd[_0x4f9f10('0x7')]=![],_0x3f42bd[_0x4f9f10('0xe')]=_0x4a5097,_0x3f42bd[_0x4f9f10('0x2a')]=hardware[_0x4f9f10('0x22')]();if(_0x59943e){const _0x33112d=encryptor[_0x4f9f10('0x2b')](_0x59943e);_0x3f42bd[_0x4f9f10('0x1c')]=_0x33112d,_0x3f42bd[_0x4f9f10('0x1a')]=moment(_0x33112d)[_0x4f9f10('0x10')](0x7,_0x4f9f10('0x4'))[_0x4f9f10('0x23')](),_0x3f42bd[_0x4f9f10('0x17')]=_0x3f42bd[_0x4f9f10('0xe')]!=_0x3f42bd[_0x4f9f10('0x2a')]?_0x4f9f10('0xb'):_0x4f9f10('0x29');}return _0x3f42bd;}catch(_0x161061){return breakingLicense['uuid']=_0x135693['data1'],breakingLicense[_0x4f9f10('0xf')]=_0x161061[_0x4f9f10('0xf')],breakingLicense;}}function getLimits(){return new Promise(function(_0x13318f,_0x4a8ad3){const _0x4d7923=a845_0xf5d7;getLicense()[_0x4d7923('0x9')](function(_0x6f1be3){const _0x227284=_0x4d7923;return db[_0x227284('0x2d')][_0x227284('0x2e')]({'attributes':[_0x227284('0x16'),[db['sequelize']['fn'](_0x227284('0x20'),db[_0x227284('0x11')][_0x227284('0x1')](_0x227284('0x16'))),_0x227284('0xa')]],'group':_0x227284('0x16'),'where':{'role':{[Op['or']]:[_0x227284('0x28'),_0x227284('0x2f'),_0x227284('0x1d')]}},'raw':!![]})[_0x227284('0x9')](function(_0x209120){const _0x14254d=_0x227284,_0x380c28={'user':_0x6f1be3[_0x14254d('0x13')]||0x0,'telephone':_0x6f1be3[_0x14254d('0x12')]||0x0};_0x209120[_0x14254d('0x5')](function(_0x2de48e){const _0x2b61a3=_0x14254d,_0x3d9c1d=_0x2de48e[_0x2b61a3('0x16')]==='admin'?_0x2b61a3('0x2f'):_0x2de48e[_0x2b61a3('0x16')];_0x380c28[_0x3d9c1d]-=_0x2de48e[_0x2b61a3('0xa')];if(_0x380c28[_0x3d9c1d]<0x0)_0x380c28[_0x3d9c1d]=0x0;}),_0x13318f(_0x380c28);return;});})[_0x4d7923('0x25')](function(_0x1e519f){_0x4a8ad3(_0x1e519f);});});}function checkUserLimits(_0x417480){return new Promise(function(_0x2e0ded,_0x30dc47){const _0x34fe01=a845_0xf5d7;getLimits()[_0x34fe01('0x9')](function(_0x493c46){const _0x48ad15=_0x34fe01,_0x46ec02=_[_0x48ad15('0x1f')](_[_0x48ad15('0x15')](_0x417480,'role'),[_0x48ad15('0x28'),_0x48ad15('0x2f'),_0x48ad15('0x1d')]),_0x268913=(_0x46ec02[_0x48ad15('0x28')]||0x0)+(_0x46ec02[_0x48ad15('0x2f')]||0x0),_0x866194=_0x46ec02[_0x48ad15('0x1d')]||0x0;if(_0x268913>_0x493c46[_0x48ad15('0x2f')])return _0x30dc47(_0x48ad15('0x19'));if(_0x866194>_0x493c46[_0x48ad15('0x1d')])return _0x30dc47(_0x48ad15('0xc'));return _0x2e0ded();})[_0x34fe01('0x25')](function(_0x148ef0){_0x30dc47(_0x148ef0);});});}module[_0x140a60('0x1e')]={'checkLicense':checkLicense,'checkUserLimits':checkUserLimits,'getLicense':getLicense}; \ No newline at end of file diff --git a/server/config/local.env.js b/server/config/local.env.js index c3e2019..5ca5ce9 100644 --- a/server/config/local.env.js +++ b/server/config/local.env.js @@ -1 +1 @@ -var a846_0x50d1=['http://localhost:9000','exports','myappanuglar-secret','app-id'];(function(_0x780440,_0x50d13b){var _0x4f2050=function(_0x2240e9){while(--_0x2240e9){_0x780440['push'](_0x780440['shift']());}};_0x4f2050(++_0x50d13b);}(a846_0x50d1,0x151));var a846_0x4f20=function(_0x780440,_0x50d13b){_0x780440=_0x780440-0x0;var _0x4f2050=a846_0x50d1[_0x780440];return _0x4f2050;};var _0x5ccc32=a846_0x4f20;'use strict';module[_0x5ccc32('0x0')]={'DOMAIN':_0x5ccc32('0x3'),'SESSION_SECRET':_0x5ccc32('0x1'),'GOOGLE_ID':_0x5ccc32('0x2'),'GOOGLE_SECRET':'secret','DEBUG':''}; \ No newline at end of file +var a846_0x10af=['myappanuglar-secret','exports','secret','http://localhost:9000','app-id'];(function(_0xcb65f9,_0x10afcc){var _0x4ba95b=function(_0x2687ab){while(--_0x2687ab){_0xcb65f9['push'](_0xcb65f9['shift']());}};_0x4ba95b(++_0x10afcc);}(a846_0x10af,0x163));var a846_0x4ba9=function(_0xcb65f9,_0x10afcc){_0xcb65f9=_0xcb65f9-0x0;var _0x4ba95b=a846_0x10af[_0xcb65f9];return _0x4ba95b;};var _0x3a9e25=a846_0x4ba9;'use strict';module[_0x3a9e25('0x1')]={'DOMAIN':_0x3a9e25('0x3'),'SESSION_SECRET':_0x3a9e25('0x0'),'GOOGLE_ID':_0x3a9e25('0x4'),'GOOGLE_SECRET':_0x3a9e25('0x2'),'DEBUG':''}; \ No newline at end of file diff --git a/server/config/logger.js b/server/config/logger.js index 4a24863..e559fc7 100644 --- a/server/config/logger.js +++ b/server/config/logger.js @@ -1 +1 @@ -const a847_0x24cc=['%s-%s','util','winston',']\x20[','transports','File','toUpperCase','exports','path','info','YYYY-MM-DD\x20HH:mm:ss','triple-beam','debugLevel','moment','getConfigService','format','assign','error'];(function(_0x175f98,_0x24cc7f){const _0x466f51=function(_0x320b73){while(--_0x320b73){_0x175f98['push'](_0x175f98['shift']());}};_0x466f51(++_0x24cc7f);}(a847_0x24cc,0x1a2));const a847_0x466f=function(_0x175f98,_0x24cc7f){_0x175f98=_0x175f98-0x0;let _0x466f51=a847_0x24cc[_0x175f98];return _0x466f51;};const _0x3dd4b5=a847_0x466f;'use strict';const moment=require(_0x3dd4b5('0x9')),winston=require(_0x3dd4b5('0x10')),util=require(_0x3dd4b5('0xf')),path=require(_0x3dd4b5('0x4')),{MESSAGE}=require(_0x3dd4b5('0x7')),jsonStringify=require('safe-stable-stringify'),cs=require('./config.service')[_0x3dd4b5('0xa')](),logPath=cs['logPath'];function filename(_0x320b73,_0x48c4ac){return path['join'](logPath,util['format']('%s-%s.log',_0x320b73,_0x48c4ac));}const MotionFormatter=_0x5bcdcc=>winston[_0x3dd4b5('0xb')](_0x552d25=>{const _0x5f907b=_0x3dd4b5,_0x1c28f0=moment()['format'](_0x5f907b('0x6')),{level:_0x321fe6,message:_0x3aa56f}=_0x552d25,_0x17154f=jsonStringify(Object[_0x5f907b('0xc')]({},_0x552d25,{'level':undefined,'message':undefined,'splat':undefined}));return _0x552d25[MESSAGE]='['+_0x1c28f0+_0x5f907b('0x11')+_0x321fe6[_0x5f907b('0x2')]()+']\x20'+_0x5bcdcc+'\x20-\x20'+_0x3aa56f+'\x20'+(_0x17154f==='{}'?'':_0x17154f),_0x552d25;})();module[_0x3dd4b5('0x3')]=function(_0x49c126){const _0x2b93bd=_0x3dd4b5;return winston['createLogger']({'transports':[new winston[(_0x2b93bd('0x0'))][(_0x2b93bd('0x1'))]({'name':util[_0x2b93bd('0xb')](_0x2b93bd('0xe'),_0x49c126,'error'),'filename':filename(_0x49c126,_0x2b93bd('0xd')),'level':_0x2b93bd('0xd'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x49c126)}),new winston[(_0x2b93bd('0x0'))][(_0x2b93bd('0x1'))]({'name':util[_0x2b93bd('0xb')](_0x2b93bd('0xe'),_0x49c126,_0x2b93bd('0x5')),'filename':filename(_0x49c126,_0x2b93bd('0x5')),'level':_0x2b93bd('0x5'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x49c126)}),new winston[(_0x2b93bd('0x0'))]['Console']({'level':cs[_0x2b93bd('0x8')],'format':MotionFormatter(_0x49c126)})]});}; \ No newline at end of file +const a847_0x1950=['Console','debugLevel','safe-stable-stringify','moment','transports','createLogger','toUpperCase','File','util','winston','YYYY-MM-DD\x20HH:mm:ss','path','triple-beam','getConfigService',']\x20[','format','logPath','%s-%s','error','info'];(function(_0x450e8a,_0x195096){const _0x34a84c=function(_0x37a871){while(--_0x37a871){_0x450e8a['push'](_0x450e8a['shift']());}};_0x34a84c(++_0x195096);}(a847_0x1950,0x116));const a847_0x34a8=function(_0x450e8a,_0x195096){_0x450e8a=_0x450e8a-0x0;let _0x34a84c=a847_0x1950[_0x450e8a];return _0x34a84c;};const _0x22f143=a847_0x34a8;'use strict';const moment=require(_0x22f143('0x5')),winston=require(_0x22f143('0xb')),util=require(_0x22f143('0xa')),path=require(_0x22f143('0xd')),{MESSAGE}=require(_0x22f143('0xe')),jsonStringify=require(_0x22f143('0x4')),cs=require('./config.service')[_0x22f143('0xf')](),logPath=cs[_0x22f143('0x12')];function filename(_0x37a871,_0x4988d4){const _0x544767=_0x22f143;return path['join'](logPath,util[_0x544767('0x11')]('%s-%s.log',_0x37a871,_0x4988d4));}const MotionFormatter=_0x16729=>winston[_0x22f143('0x11')](_0x5e3659=>{const _0x5ce56b=_0x22f143,_0x36be76=moment()[_0x5ce56b('0x11')](_0x5ce56b('0xc')),{level:_0x2e7f3a,message:_0x34b31d}=_0x5e3659,_0x42a848=jsonStringify(Object['assign']({},_0x5e3659,{'level':undefined,'message':undefined,'splat':undefined}));return _0x5e3659[MESSAGE]='['+_0x36be76+_0x5ce56b('0x10')+_0x2e7f3a[_0x5ce56b('0x8')]()+']\x20'+_0x16729+'\x20-\x20'+_0x34b31d+'\x20'+(_0x42a848==='{}'?'':_0x42a848),_0x5e3659;})();module['exports']=function(_0xdfc878){const _0x45fc0b=_0x22f143;return winston[_0x45fc0b('0x7')]({'transports':[new winston[(_0x45fc0b('0x6'))][(_0x45fc0b('0x9'))]({'name':util[_0x45fc0b('0x11')](_0x45fc0b('0x13'),_0xdfc878,'error'),'filename':filename(_0xdfc878,'error'),'level':_0x45fc0b('0x0'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0xdfc878)}),new winston[(_0x45fc0b('0x6'))][(_0x45fc0b('0x9'))]({'name':util[_0x45fc0b('0x11')](_0x45fc0b('0x13'),_0xdfc878,_0x45fc0b('0x1')),'filename':filename(_0xdfc878,'info'),'level':_0x45fc0b('0x1'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0xdfc878)}),new winston['transports'][(_0x45fc0b('0x2'))]({'level':cs[_0x45fc0b('0x3')],'format':MotionFormatter(_0xdfc878)})]});}; \ No newline at end of file diff --git a/server/config/pm2/config.js b/server/config/pm2/config.js index bf7e192..896ac91 100644 --- a/server/config/pm2/config.js +++ b/server/config/pm2/config.js @@ -1 +1 @@ -const a848_0x57b2=['agi','appRoot','services/express/index.js','path','email','join','express','services/xdr/index.js','services/routing/index.js','xdr','services/agi/index.js','routing','services/email/index.js'];(function(_0xc497a8,_0x57b2fe){const _0x28abc8=function(_0x41d336){while(--_0x41d336){_0xc497a8['push'](_0xc497a8['shift']());}};_0x28abc8(++_0x57b2fe);}(a848_0x57b2,0x90));const a848_0x28ab=function(_0xc497a8,_0x57b2fe){_0xc497a8=_0xc497a8-0x0;let _0x28abc8=a848_0x57b2[_0xc497a8];return _0x28abc8;};const _0x4631b8=a848_0x28ab;'use strict';const path=require(_0x4631b8('0x2')),config={'apps':[{'wait_ready':!![],'name':_0x4631b8('0x5'),'script':path[_0x4631b8('0x4')](global[_0x4631b8('0x0')],_0x4631b8('0x1'))},{'name':'ami','script':path[_0x4631b8('0x4')](global[_0x4631b8('0x0')],'services/ami/index.js')},{'name':_0x4631b8('0xc'),'script':path[_0x4631b8('0x4')](global[_0x4631b8('0x0')],_0x4631b8('0x9'))},{'name':_0x4631b8('0x3'),'script':path[_0x4631b8('0x4')](global[_0x4631b8('0x0')],_0x4631b8('0xb'))},{'name':_0x4631b8('0xa'),'script':path['join'](global[_0x4631b8('0x0')],_0x4631b8('0x7'))},{'name':_0x4631b8('0x8'),'script':path[_0x4631b8('0x4')](global[_0x4631b8('0x0')],_0x4631b8('0x6'))}]};module['exports']=config; \ No newline at end of file +const a848_0x43c9=['join','appRoot','xdr','services/xdr/index.js','ami','agi','express','services/routing/index.js','services/email/index.js','exports','services/express/index.js','services/ami/index.js','path','email'];(function(_0xce61d,_0x43c94f){const _0x35c759=function(_0x3d099c){while(--_0x3d099c){_0xce61d['push'](_0xce61d['shift']());}};_0x35c759(++_0x43c94f);}(a848_0x43c9,0x6b));const a848_0x35c7=function(_0xce61d,_0x43c94f){_0xce61d=_0xce61d-0x0;let _0x35c759=a848_0x43c9[_0xce61d];return _0x35c759;};const _0x4942b1=a848_0x35c7;'use strict';const path=require(_0x4942b1('0x3')),config={'apps':[{'wait_ready':!![],'name':_0x4942b1('0xb'),'script':path[_0x4942b1('0x5')](global[_0x4942b1('0x6')],_0x4942b1('0x1'))},{'name':_0x4942b1('0x9'),'script':path[_0x4942b1('0x5')](global[_0x4942b1('0x6')],_0x4942b1('0x2'))},{'name':_0x4942b1('0xa'),'script':path[_0x4942b1('0x5')](global[_0x4942b1('0x6')],'services/agi/index.js')},{'name':_0x4942b1('0x4'),'script':path[_0x4942b1('0x5')](global[_0x4942b1('0x6')],_0x4942b1('0xd'))},{'name':'routing','script':path['join'](global[_0x4942b1('0x6')],_0x4942b1('0xc'))},{'name':_0x4942b1('0x7'),'script':path[_0x4942b1('0x5')](global['appRoot'],_0x4942b1('0x8'))}]};module[_0x4942b1('0x0')]=config; \ No newline at end of file diff --git a/server/config/pm2/index.js b/server/config/pm2/index.js index 7927edb..2a31a95 100644 --- a/server/config/pm2/index.js +++ b/server/config/pm2/index.js @@ -1 +1 @@ -const a849_0x55f2=['Stopped','then','list','describe','connect','Stopped\x20and\x20Deleted','start','disconnect','stop','debug','saved','delete','dump','restart'];(function(_0x56c731,_0x55f2cc){const _0x28ff9d=function(_0x50e3aa){while(--_0x50e3aa){_0x56c731['push'](_0x56c731['shift']());}};_0x28ff9d(++_0x55f2cc);}(a849_0x55f2,0x1c7));const a849_0x28ff=function(_0x56c731,_0x55f2cc){_0x56c731=_0x56c731-0x0;let _0x28ff9d=a849_0x55f2[_0x56c731];return _0x28ff9d;};const _0x3de132=a849_0x28ff;'use strict';const pm2=require('pm2');function connect(){return new Promise(function(_0x50e3aa,_0x4f99f1){const _0x2d754f=a849_0x28ff;return pm2[_0x2d754f('0xb')](function(_0x2ea55a){_0x2ea55a?_0x4f99f1(_0x2ea55a):_0x50e3aa('connected');});});}exports[_0x3de132('0xd')]=function(_0x250a9f){return connect()['then'](function(){return new Promise(function(_0x4d7d18,_0x208a10){const _0x298b04=a849_0x28ff;return pm2[_0x298b04('0xd')](_0x250a9f,function(_0x2f790a,_0xed759f){const _0x160c22=_0x298b04;_0x2f790a?_0x208a10(_0x2f790a):(pm2[_0x160c22('0x0')](),_0x4d7d18(_0xed759f));});});});},exports[_0x3de132('0x1')]=function(_0x6907c7){const _0xb61381=_0x3de132;return connect()[_0xb61381('0x8')](function(){return new Promise(function(_0x1950ab,_0x1cdabb){return pm2['stop'](_0x6907c7,function(_0x15e56b,_0x207aad){const _0x3c555a=a849_0x28ff;_0x15e56b?_0x1cdabb(_0x15e56b):(console[_0x3c555a('0x2')](_0x3c555a('0x7'),_0x6907c7),_0x1950ab(_0x207aad));});});});},exports[_0x3de132('0x6')]=function(_0x1a26ce){const _0x186302=_0x3de132;return connect()[_0x186302('0x8')](function(){return new Promise(function(_0x370187,_0x2b0525){const _0x5063e4=a849_0x28ff;return pm2[_0x5063e4('0x6')](_0x1a26ce,function(_0x3e7d89,_0x51fe85){_0x3e7d89?_0x2b0525(_0x3e7d89):(console['debug']('Restarted',_0x1a26ce),_0x370187(_0x51fe85));});});});},exports[_0x3de132('0x9')]=function(){const _0x3cb499=_0x3de132;return connect()[_0x3cb499('0x8')](function(){return new Promise(function(_0xd4367b,_0x57b2ec){const _0x14b781=a849_0x28ff;return pm2[_0x14b781('0x9')](function(_0x5d56fb,_0x2ae621){_0x5d56fb?_0x57b2ec(_0x5d56fb):_0xd4367b(_0x2ae621);});});});},exports[_0x3de132('0xa')]=function(_0x58cd4c){const _0x30167c=_0x3de132;return connect()[_0x30167c('0x8')](function(){return new Promise(function(_0x272d7c,_0xdfa6a5){const _0x401808=a849_0x28ff;return pm2[_0x401808('0xa')](_0x58cd4c,function(_0x45bcce,_0x3c7d3d){_0x45bcce?_0xdfa6a5(_0x45bcce):_0x272d7c(_0x3c7d3d);});});});},exports['delete']=function(_0x15ca44){const _0x562365=_0x3de132;return connect()[_0x562365('0x8')](function(){return new Promise(function(_0xae3feb,_0x310901){const _0x45fe90=a849_0x28ff;return pm2[_0x45fe90('0x4')](_0x15ca44,function(_0x3c58f6,_0x51ecbc){const _0x444b55=_0x45fe90;_0x3c58f6?_0x310901(_0x3c58f6):(console[_0x444b55('0x2')](_0x444b55('0xc'),_0x15ca44),_0xae3feb(_0x51ecbc));});});});},exports[_0x3de132('0x5')]=function(){const _0x21c578=_0x3de132;return connect()[_0x21c578('0x8')](function(){return new Promise(function(_0xa1ed4f,_0x38c71d){const _0xdaa2a4=a849_0x28ff;return pm2[_0xdaa2a4('0x5')](function(_0xa6ab89){const _0x59f7e6=_0xdaa2a4;_0xa6ab89?_0x38c71d(_0xa6ab89):_0xa1ed4f(_0x59f7e6('0x3'));});});});}; \ No newline at end of file +const a849_0x5f43=['delete','pm2','debug','dump','then','stop','connect','connected','list','restart','saved','start','Stopped\x20and\x20Deleted','describe','Stopped','disconnect'];(function(_0x2fa589,_0x5f4387){const _0x190b91=function(_0x1f904c){while(--_0x1f904c){_0x2fa589['push'](_0x2fa589['shift']());}};_0x190b91(++_0x5f4387);}(a849_0x5f43,0x7e));const a849_0x190b=function(_0x2fa589,_0x5f4387){_0x2fa589=_0x2fa589-0x0;let _0x190b91=a849_0x5f43[_0x2fa589];return _0x190b91;};const _0x40b2c1=a849_0x190b;'use strict';const pm2=require(_0x40b2c1('0x3'));function connect(){return new Promise(function(_0x1f904c,_0x234e92){const _0x6cddb9=a849_0x190b;return pm2[_0x6cddb9('0x8')](function(_0xf7e537){const _0xbbfd0e=_0x6cddb9;_0xf7e537?_0x234e92(_0xf7e537):_0x1f904c(_0xbbfd0e('0x9'));});});}exports[_0x40b2c1('0xd')]=function(_0x381445){const _0x571386=_0x40b2c1;return connect()[_0x571386('0x6')](function(){return new Promise(function(_0x9fa829,_0x3f0d46){return pm2['start'](_0x381445,function(_0x2da799,_0x1e1dc5){const _0x5e315b=a849_0x190b;_0x2da799?_0x3f0d46(_0x2da799):(pm2[_0x5e315b('0x1')](),_0x9fa829(_0x1e1dc5));});});});},exports[_0x40b2c1('0x7')]=function(_0x2427fc){const _0x878adc=_0x40b2c1;return connect()[_0x878adc('0x6')](function(){return new Promise(function(_0x46795f,_0x257632){const _0x227056=a849_0x190b;return pm2[_0x227056('0x7')](_0x2427fc,function(_0xcad08a,_0x424e60){const _0x731399=_0x227056;_0xcad08a?_0x257632(_0xcad08a):(console[_0x731399('0x4')](_0x731399('0x0'),_0x2427fc),_0x46795f(_0x424e60));});});});},exports[_0x40b2c1('0xb')]=function(_0x1b552b){const _0x54f4a7=_0x40b2c1;return connect()[_0x54f4a7('0x6')](function(){return new Promise(function(_0xe972cf,_0x52f419){const _0xe94404=a849_0x190b;return pm2[_0xe94404('0xb')](_0x1b552b,function(_0x45488e,_0x57c5d1){const _0x4640f3=_0xe94404;_0x45488e?_0x52f419(_0x45488e):(console[_0x4640f3('0x4')]('Restarted',_0x1b552b),_0xe972cf(_0x57c5d1));});});});},exports[_0x40b2c1('0xa')]=function(){const _0x44bbb4=_0x40b2c1;return connect()[_0x44bbb4('0x6')](function(){return new Promise(function(_0x5719b9,_0x559c44){return pm2['list'](function(_0x3716bd,_0xdccf60){_0x3716bd?_0x559c44(_0x3716bd):_0x5719b9(_0xdccf60);});});});},exports[_0x40b2c1('0xf')]=function(_0x449386){const _0x2f8e13=_0x40b2c1;return connect()[_0x2f8e13('0x6')](function(){return new Promise(function(_0x144ee9,_0x2e2540){const _0x2017f2=a849_0x190b;return pm2[_0x2017f2('0xf')](_0x449386,function(_0x4e3b33,_0x23baf8){_0x4e3b33?_0x2e2540(_0x4e3b33):_0x144ee9(_0x23baf8);});});});},exports[_0x40b2c1('0x2')]=function(_0x200957){const _0x4bbe2d=_0x40b2c1;return connect()[_0x4bbe2d('0x6')](function(){return new Promise(function(_0x17013a,_0x54285){const _0x2e6e59=a849_0x190b;return pm2[_0x2e6e59('0x2')](_0x200957,function(_0x1fa223,_0x43c07d){const _0x81782b=_0x2e6e59;_0x1fa223?_0x54285(_0x1fa223):(console[_0x81782b('0x4')](_0x81782b('0xe'),_0x200957),_0x17013a(_0x43c07d));});});});},exports[_0x40b2c1('0x5')]=function(){const _0x8162d2=_0x40b2c1;return connect()[_0x8162d2('0x6')](function(){return new Promise(function(_0x537ac4,_0x5e9f47){const _0x186d3c=a849_0x190b;return pm2[_0x186d3c('0x5')](function(_0x1c425f){const _0x242351=_0x186d3c;_0x1c425f?_0x5e9f47(_0x1c425f):_0x537ac4(_0x242351('0xc'));});});});}; \ No newline at end of file diff --git a/server/config/schedule/chat.js b/server/config/schedule/chat.js index f28dce7..04568e3 100644 --- a/server/config/schedule/chat.js +++ b/server/config/schedule/chat.js @@ -1 +1 @@ -const a850_0x13ee=['chatTimeout','update','error','findAll','format','../../rediscache','then','findOne','start','subtract','YYYY-MM-DD\x20HH:mm:ss','emit','map','length','ChatInteraction','minutes','timeout','Setting','chatInteraction:update','../../mysqldb','lastMsgAt','moment','system'];(function(_0x554ebb,_0x13ee6f){const _0x2596eb=function(_0x95d1c4){while(--_0x95d1c4){_0x554ebb['push'](_0x554ebb['shift']());}};_0x2596eb(++_0x13ee6f);}(a850_0x13ee,0x17a));const a850_0x2596=function(_0x554ebb,_0x13ee6f){_0x554ebb=_0x554ebb-0x0;let _0x2596eb=a850_0x13ee[_0x554ebb];return _0x2596eb;};const _0xc882a8=a850_0x2596;'use strict';const _=require('lodash'),moment=require(_0xc882a8('0xb')),db=require(_0xc882a8('0x9'))['db'],{getSocket}=require(_0xc882a8('0x12')),io=getSocket();function closeInteractions(){const _0x45c63b=_0xc882a8;let _0x95d1c4=0x0,_0xd1d23d=[];return db[_0x45c63b('0x7')][_0x45c63b('0x14')]({'raw':!![],'attributes':['id','chatTimeout'],'where':{'id':0x1}})[_0x45c63b('0x13')](function(_0x36786f){const _0x2a2c21=_0x45c63b;return _0x95d1c4=_0x36786f['chatTimeout'],_0x95d1c4?db[_0x2a2c21('0x4')][_0x2a2c21('0x10')]({'raw':!![],'attributes':['id',_0x2a2c21('0xa')],'where':{'closed':![],'lastMsgAt':{'$lt':moment()[_0x2a2c21('0x16')](_0x36786f[_0x2a2c21('0xd')],_0x2a2c21('0x5'))}}}):[];})[_0x45c63b('0x13')](function(_0x1514e6){const _0x11046a=_0x45c63b;_0xd1d23d=_0x1514e6;if(_0x95d1c4)return db[_0x11046a('0x4')][_0x11046a('0xe')]({'closeReason':_0x11046a('0xc'),'disposition':_0x11046a('0x6'),'closed':!![],'closedAt':moment()[_0x11046a('0x11')](_0x11046a('0x0'))},{'where':{'id':_[_0x11046a('0x2')](_0xd1d23d||[],'id')}});})[_0x45c63b('0x13')](function(){const _0x1ef33d=_0x45c63b;for(let _0x1d89bf=0x0;_0x1d89bf<_0xd1d23d[_0x1ef33d('0x3')];_0x1d89bf++){io[_0x1ef33d('0x1')](_0x1ef33d('0x8'),{'id':_0xd1d23d[_0x1d89bf]['id'],'closed':!![]});}})['catch'](function(_0x3a6589){const _0x239f8a=_0x45c63b;console[_0x239f8a('0xf')](_0x3a6589);});}exports[_0xc882a8('0x15')]=function(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}; \ No newline at end of file +const a850_0x1db7=['../../rediscache','ChatInteraction','chatInteraction:update','lodash','YYYY-MM-DD\x20HH:mm:ss','../../mysqldb','lastMsgAt','map','update','catch','error','minutes','findOne','findAll','start','subtract','timeout','chatTimeout','then','system'];(function(_0x5a9bb4,_0x1db76f){const _0x11c895=function(_0x797eb5){while(--_0x797eb5){_0x5a9bb4['push'](_0x5a9bb4['shift']());}};_0x11c895(++_0x1db76f);}(a850_0x1db7,0x1af));const a850_0x11c8=function(_0x5a9bb4,_0x1db76f){_0x5a9bb4=_0x5a9bb4-0x0;let _0x11c895=a850_0x1db7[_0x5a9bb4];return _0x11c895;};const _0x507170=a850_0x11c8;'use strict';const _=require(_0x507170('0xc')),moment=require('moment'),db=require(_0x507170('0xe'))['db'],{getSocket}=require(_0x507170('0x9')),io=getSocket();function closeInteractions(){const _0x34d54f=_0x507170;let _0x797eb5=0x0,_0x736e26=[];return db['Setting'][_0x34d54f('0x1')]({'raw':!![],'attributes':['id','chatTimeout'],'where':{'id':0x1}})[_0x34d54f('0x7')](function(_0x22cfa8){const _0x425884=_0x34d54f;return _0x797eb5=_0x22cfa8[_0x425884('0x6')],_0x797eb5?db[_0x425884('0xa')][_0x425884('0x2')]({'raw':!![],'attributes':['id',_0x425884('0xf')],'where':{'closed':![],'lastMsgAt':{'$lt':moment()[_0x425884('0x4')](_0x22cfa8[_0x425884('0x6')],_0x425884('0x0'))}}}):[];})['then'](function(_0x1722dd){const _0x56d354=_0x34d54f;_0x736e26=_0x1722dd;if(_0x797eb5)return db['ChatInteraction'][_0x56d354('0x11')]({'closeReason':_0x56d354('0x8'),'disposition':_0x56d354('0x5'),'closed':!![],'closedAt':moment()['format'](_0x56d354('0xd'))},{'where':{'id':_[_0x56d354('0x10')](_0x736e26||[],'id')}});})['then'](function(){const _0x280711=_0x34d54f;for(let _0x44ea42=0x0;_0x44ea42<_0x736e26['length'];_0x44ea42++){io['emit'](_0x280711('0xb'),{'id':_0x736e26[_0x44ea42]['id'],'closed':!![]});}})[_0x34d54f('0x12')](function(_0xc2600e){const _0x197e2d=_0x34d54f;console[_0x197e2d('0x13')](_0xc2600e);});}exports[_0x507170('0x3')]=function(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}; \ No newline at end of file diff --git a/server/config/schedule/index.js b/server/config/schedule/index.js index c1fda8a..fdb7432 100644 --- a/server/config/schedule/index.js +++ b/server/config/schedule/index.js @@ -1 +1 @@ -const a851_0x4a6f=['run\x20job','difference','join','data','toRun','map','stop\x20cron','auth','cron','subtractNumber\x20null\x20or\x20undefined','existsSync','MailAccount','isNil','output','endAt','exec\x20defaul\x20report\x20id:%s','Report\x20%s\x20last\x20%s\x20%s','length','request','run','subtractNumber','authentication','stop','keys','bcc','format','CustomReportId','stringify','SendMail','my\x20id','message','host','Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a','email\x20sent','add','subtractUnit\x20null\x20or\x20undefined','moment','name','subtractUnit','then','Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a','zip','client','basename','extname','user','schedule','status','\x22%s\x22\x20<%s>','findAll','intersection','info','../logger','../../mysqldb','text','savename','delete\x20cron','Sent','DefaultReportId','port','start','empty\x20file,\x20email\x20not\x20sent','catch','service','util','toString','attachments','exists','startAt','subtract','resolve','error\x20mail','MailServerOut','%s.%s','../../api/analyticDefaultReport/analyticDefaultReport.controller','deleteJob','isBetween','jobs','Smtp','../../api/analyticCustomReport/analyticCustomReport.controller','active','secure','jayson/promise','email','YYYY-MM-DD\x20HH:mm:ss','exec\x20custom\x20report\x20id:%s','error'];(function(_0x4f2609,_0x4a6f61){const _0x2ca85b=function(_0x1bd6b2){while(--_0x1bd6b2){_0x4f2609['push'](_0x4f2609['shift']());}};_0x2ca85b(++_0x4a6f61);}(a851_0x4a6f,0x17f));const a851_0x2ca8=function(_0x4f2609,_0x4a6f61){_0x4f2609=_0x4f2609-0x0;let _0x2ca85b=a851_0x4a6f[_0x4f2609];return _0x2ca85b;};const _0x38ae2e=a851_0x2ca8;'use strict';const fs=require('fs'),util=require(_0x38ae2e('0x1d')),path=require('path'),_=require('lodash'),moment=require(_0x38ae2e('0x1')),CronJobManager=require('cron-job-manager'),jayson=require(_0x38ae2e('0x2f')),logger=require(_0x38ae2e('0x11'))(_0x38ae2e('0xb')),db=require(_0x38ae2e('0x12'))['db'],analyticCustomReportController=require(_0x38ae2e('0x2c')),analyticDefaultReportController=require(_0x38ae2e('0x27')),client=jayson[_0x38ae2e('0x7')]['http']({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x1bd6b2,_0x207dee){return function(){const _0x5e709c=a851_0x2ca8;logger[_0x5e709c('0x10')]('Try\x20to\x20send\x20a\x20mail\x20to',_0x1bd6b2[_0x5e709c('0x30')]);let _0x13ce27=!![];const _0xb9edc={'tls':{'rejectUnauthorized':![]}};_0x1bd6b2[_0x5e709c('0x3f')][_0x5e709c('0x2b')]['service']?_0xb9edc[_0x5e709c('0x1c')]=_0x1bd6b2['MailAccount'][_0x5e709c('0x2b')][_0x5e709c('0x1c')]:(_0xb9edc[_0x5e709c('0x53')]=_0x1bd6b2[_0x5e709c('0x3f')][_0x5e709c('0x2b')]['host'],_0xb9edc[_0x5e709c('0x18')]=_0x1bd6b2[_0x5e709c('0x3f')][_0x5e709c('0x2b')]['port'],_0xb9edc['secure']=_0x1bd6b2[_0x5e709c('0x3f')]['Smtp'][_0x5e709c('0x2e')]);_0x1bd6b2['MailAccount']['Smtp'][_0x5e709c('0x49')]&&(_0xb9edc[_0x5e709c('0x3b')]={'user':_0x1bd6b2[_0x5e709c('0x3f')][_0x5e709c('0x2b')][_0x5e709c('0xa')],'pass':_0x1bd6b2[_0x5e709c('0x3f')][_0x5e709c('0x2b')]['pass']});const _0x4954e4={'account':_0xb9edc,'message':{'from':util[_0x5e709c('0x4d')](_0x5e709c('0xd'),_0x1bd6b2[_0x5e709c('0x3f')][_0x5e709c('0x2')],_0x1bd6b2[_0x5e709c('0x3f')][_0x5e709c('0x30')]||_0x1bd6b2[_0x5e709c('0x3f')][_0x5e709c('0x2b')][_0x5e709c('0xa')]),'to':_0x1bd6b2[_0x5e709c('0x30')],'cc':_0x1bd6b2['cc'],'bcc':_0x1bd6b2[_0x5e709c('0x4c')],'subject':util[_0x5e709c('0x4d')](_0x5e709c('0x44'),_0x207dee['name'],_0x1bd6b2[_0x5e709c('0x48')],_0x1bd6b2['subtractUnit'])}},_0x46b574=path[_0x5e709c('0x36')](__dirname,'../../files/reports'),_0xb42a6e=_0x207dee[_0x5e709c('0x14')],_0x8cfb44=util[_0x5e709c('0x4d')](_0x5e709c('0x26'),path[_0x5e709c('0x8')](_0x207dee[_0x5e709c('0x14')],path[_0x5e709c('0x9')](_0x207dee[_0x5e709c('0x14')])),_0x5e709c('0x6')),_0x5fd176=path[_0x5e709c('0x36')](_0x46b574,_0xb42a6e),_0x3d2580=path[_0x5e709c('0x36')](_0x46b574,_0x8cfb44);if(fs['existsSync'](_0x5fd176))_0x207dee[_0x5e709c('0xc')]=_0x5e709c('0x16'),_0x4954e4[_0x5e709c('0x52')][_0x5e709c('0x1f')]=[{'filename':_0xb42a6e,'path':_0x5fd176}],_0x4954e4[_0x5e709c('0x52')][_0x5e709c('0x13')]=util[_0x5e709c('0x4d')](_0x5e709c('0x5'),JSON[_0x5e709c('0x4f')](_0x207dee,null,0x2));else fs[_0x5e709c('0x3e')](_0x3d2580)?(_0x207dee[_0x5e709c('0xc')]='Sent',_0x4954e4[_0x5e709c('0x52')][_0x5e709c('0x1f')]=[{'filename':_0x8cfb44,'path':_0x3d2580}]):(_0x4954e4[_0x5e709c('0x52')][_0x5e709c('0x13')]=_0x5e709c('0x54'),!_0x1bd6b2['sendIfEmpty']&&(_0x13ce27=![],logger['info'](_0x5e709c('0x1a'))));if(_0x13ce27)return client[_0x5e709c('0x46')](_0x5e709c('0x50'),_0x4954e4)[_0x5e709c('0x4')](function(_0x1cc1f5){const _0x40bf3d=_0x5e709c;if(_0x1cc1f5[_0x40bf3d('0x33')])return logger[_0x40bf3d('0x33')]('error\x20mail',JSON[_0x40bf3d('0x4f')](_0x1cc1f5));return logger['info'](_0x40bf3d('0x55'));})[_0x5e709c('0x1b')](function(_0x3bc3b5){const _0x2a6823=_0x5e709c;return logger['error'](_0x2a6823('0x24'),JSON[_0x2a6823('0x4f')](_0x3bc3b5));});};}function handleError(){return function(_0xb4cd4d){const _0x1419c5=a851_0x2ca8;return logger[_0x1419c5('0x33')](JSON[_0x1419c5('0x4f')](_0xb4cd4d));};}function handleResult(_0x5ad4ba){return function(_0x4819bc){const _0x2bbb74=a851_0x2ca8;logger['info'](_0x2bbb74('0x37'),JSON[_0x2bbb74('0x4f')](_0x4819bc)),_0x5ad4ba[_0x2bbb74('0x3f')]&&_0x5ad4ba[_0x2bbb74('0x3f')][_0x2bbb74('0x2b')]&&!_[_0x2bbb74('0x40')](_0x5ad4ba['email'])&&setTimeout(handleSendEmail(_0x5ad4ba,_0x4819bc),0x3c*0x3e8);};}function handleJob(_0x131226){return function(){const _0x430ab3=a851_0x2ca8;try{if(_['isNil'](_0x131226[_0x430ab3('0x48')]))return logger['info'](_0x430ab3('0x3d'));if(_[_0x430ab3('0x40')](_0x131226['subtractUnit']))return logger[_0x430ab3('0x10')](_0x430ab3('0x0'));const _0x58c755={'startDate':moment()[_0x430ab3('0x22')](_0x131226[_0x430ab3('0x48')],_0x131226[_0x430ab3('0x3')])[_0x430ab3('0x4d')](_0x430ab3('0x31')),'endDate':moment()['format'](_0x430ab3('0x31')),'type':'scheduled','output':_0x131226[_0x430ab3('0x41')],'name':_0x131226['name']};if(!_[_0x430ab3('0x40')](_0x131226[_0x430ab3('0x17')]))return logger[_0x430ab3('0x10')](_0x430ab3('0x43'),_0x131226[_0x430ab3('0x17')]),analyticDefaultReportController['runReport']({'id':_0x131226[_0x430ab3('0x17')]},_0x58c755)[_0x430ab3('0x4')](handleResult(_0x131226))[_0x430ab3('0x1b')](handleError());if(!_[_0x430ab3('0x40')](_0x131226[_0x430ab3('0x4e')]))return logger[_0x430ab3('0x10')](_0x430ab3('0x32'),_0x131226[_0x430ab3('0x4e')]),analyticCustomReportController['runReport']({'id':_0x131226[_0x430ab3('0x4e')]},_0x58c755)[_0x430ab3('0x4')](handleResult(_0x131226))[_0x430ab3('0x1b')](handleError());}catch(_0x5aabb8){logger['error'](JSON[_0x430ab3('0x4f')](_0x5aabb8));}return logger[_0x430ab3('0x10')]('no\x20report\x20id');};}function getJobs(_0x596a54){const _0x30d014=_0x38ae2e,_0x173fcb={};return _0x596a54&&(_0x173fcb['id']=_0x596a54),db['Schedule'][_0x30d014('0xe')]({'where':_0x173fcb,'include':[{'model':db[_0x30d014('0x3f')],'attributes':['id','name',_0x30d014('0x30')],'include':[{'model':db[_0x30d014('0x25')],'as':_0x30d014('0x2b')}]}]})[_0x30d014('0x4')](function(_0x236adf){const _0x407d6f=_0x30d014,_0x3639f8=_[_0x407d6f('0x4b')](manager[_0x407d6f('0x2a')]),_0x48550c=_[_0x407d6f('0x39')](_0x236adf,function(_0xb8322d){const _0x5f2f86=_0x407d6f;return _0xb8322d['id'][_0x5f2f86('0x1e')]();}),_0x2e6dc0=_['keyBy'](_0x236adf,function(_0x9da649){const _0xa20c09=_0x407d6f;return _0x9da649['id'][_0xa20c09('0x1e')]();}),_0x4c4600=_0x596a54?_0x48550c:_['difference'](_0x48550c,_0x3639f8),_0x43060a=_[_0x407d6f('0xf')](_0x48550c,_0x3639f8),_0x34108b=_[_0x407d6f('0x35')](_0x3639f8,_0x48550c);let _0x5aab6e,_0x4f9bc1;for(_0x5aab6e=0x0;_0x5aab6e<_0x34108b[_0x407d6f('0x45')]&&!_0x596a54;_0x5aab6e+=0x1){_0x4f9bc1=_0x34108b[_0x5aab6e]['toString'](),manager[_0x407d6f('0x20')](_0x4f9bc1)&&(manager[_0x407d6f('0x4a')](_0x4f9bc1),manager['deleteJob'](_0x4f9bc1),logger[_0x407d6f('0x10')](_0x407d6f('0x15'),_0x4f9bc1));}logger[_0x407d6f('0x10')](_0x407d6f('0x38'),JSON[_0x407d6f('0x4f')](_0x4c4600));for(_0x5aab6e=0x0;_0x5aab6e<_0x4c4600[_0x407d6f('0x45')];_0x5aab6e+=0x1){_0x4f9bc1=_0x4c4600[_0x5aab6e][_0x407d6f('0x1e')](),logger[_0x407d6f('0x10')]('index',_0x4f9bc1);if(_0x596a54)logger[_0x407d6f('0x10')](_0x407d6f('0x51'),_0x596a54),logger[_0x407d6f('0x10')](JSON[_0x407d6f('0x4f')](_0x2e6dc0[_0x4f9bc1])),Promise[_0x407d6f('0x23')]()[_0x407d6f('0x4')](handleJob(_0x2e6dc0[_0x4f9bc1])),logger['info'](_0x407d6f('0x34'),_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x2')],_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x3c')]);else{if(_0x2e6dc0[_0x4f9bc1]['cron']&&_0x2e6dc0[_0x4f9bc1]['active']&&moment()['isBetween'](_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x21')],_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x42')]))manager[_0x407d6f('0x56')](_0x4f9bc1,_0x2e6dc0[_0x4f9bc1]['cron'],handleJob(_0x2e6dc0[_0x4f9bc1])),manager[_0x407d6f('0x19')](_0x4f9bc1),logger['info']('add\x20cron',_0x2e6dc0[_0x4f9bc1]['name'],_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x3c')]);else manager[_0x407d6f('0x20')](_0x4f9bc1)&&(manager['stop'](_0x4f9bc1),manager[_0x407d6f('0x28')](_0x4f9bc1),logger[_0x407d6f('0x10')](_0x407d6f('0x3a'),_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x2')],_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x3c')]));}}for(_0x5aab6e=0x0,_0x4f9bc1;_0x5aab6e<_0x43060a['length']&&!_0x596a54;_0x5aab6e+=0x1){_0x4f9bc1=_0x43060a[_0x5aab6e]['toString'](),manager[_0x407d6f('0x20')](_0x4f9bc1)&&(_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x3c')]&&_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x2d')]&&moment()[_0x407d6f('0x29')](_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x21')],_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x42')])?(manager['update'](_0x4f9bc1,_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x3c')],handleJob(_0x2e6dc0[_0x4f9bc1])),logger['info']('update\x20cron',_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x2')],_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x3c')])):(manager[_0x407d6f('0x4a')](_0x4f9bc1),manager['deleteJob'](_0x4f9bc1),logger[_0x407d6f('0x10')]('stop\x20cron',_0x2e6dc0[_0x4f9bc1]['name'],_0x2e6dc0[_0x4f9bc1][_0x407d6f('0x3c')])));}})[_0x30d014('0x1b')](function(_0x5d6cd2){const _0x47600b=_0x30d014;logger[_0x47600b('0x33')](JSON[_0x47600b('0x4f')](_0x5d6cd2));});}exports[_0x38ae2e('0x47')]=function(_0x1f63da){return getJobs(_0x1f63da);},exports[_0x38ae2e('0x19')]=function(){return setInterval(function(){return getJobs();},0x3c*0x3e8),getJobs();}; \ No newline at end of file +const a851_0x5a3e=['existsSync','subtractNumber','join','message','add','util','deleteJob','stringify','index','cron-job-manager','my\x20id','SendMail','MailAccount','scheduled','lodash','then','active','Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a','Sent','Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a','exists','intersection','startAt','email','moment','auth','pass','stop','subtractUnit','user','../logger','schedule','length','error\x20mail','update\x20cron','CustomReportId','../../api/analyticDefaultReport/analyticDefaultReport.controller','delete\x20cron','stop\x20cron','../../files/reports','subtractUnit\x20null\x20or\x20undefined','sendIfEmpty','format','%s.%s','jayson/promise','Smtp','keys','port','subtract','empty\x20file,\x20email\x20not\x20sent','difference','bcc','extname','error','info','cron','exec\x20custom\x20report\x20id:%s','basename','attachments','service','email\x20sent','jobs','host','start','status','../../mysqldb','savename','Schedule','isNil','YYYY-MM-DD\x20HH:mm:ss','isBetween','name','DefaultReportId','toString','runReport','catch','findAll','client','zip','endAt','map','run\x20job','keyBy','secure','text','no\x20report\x20id','output'];(function(_0x17e6ba,_0x5a3ed7){const _0x506e3e=function(_0x3a48d4){while(--_0x3a48d4){_0x17e6ba['push'](_0x17e6ba['shift']());}};_0x506e3e(++_0x5a3ed7);}(a851_0x5a3e,0x7c));const a851_0x506e=function(_0x17e6ba,_0x5a3ed7){_0x17e6ba=_0x17e6ba-0x0;let _0x506e3e=a851_0x5a3e[_0x17e6ba];return _0x506e3e;};const _0x2976af=a851_0x506e;'use strict';const fs=require('fs'),util=require(_0x2976af('0x37')),path=require('path'),_=require(_0x2976af('0x40')),moment=require(_0x2976af('0x4a')),CronJobManager=require(_0x2976af('0x3b')),jayson=require(_0x2976af('0x7')),logger=require(_0x2976af('0x50'))(_0x2976af('0x51')),db=require(_0x2976af('0x1c'))['db'],analyticCustomReportController=require('../../api/analyticCustomReport/analyticCustomReport.controller'),analyticDefaultReportController=require(_0x2976af('0x56')),client=jayson[_0x2976af('0x28')]['http']({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x3a48d4,_0x152dde){return function(){const _0x557096=a851_0x506e;logger[_0x557096('0x11')]('Try\x20to\x20send\x20a\x20mail\x20to',_0x3a48d4[_0x557096('0x49')]);let _0x2eca6c=!![];const _0x3a8bab={'tls':{'rejectUnauthorized':![]}};_0x3a48d4['MailAccount'][_0x557096('0x8')][_0x557096('0x16')]?_0x3a8bab[_0x557096('0x16')]=_0x3a48d4[_0x557096('0x3e')]['Smtp'][_0x557096('0x16')]:(_0x3a8bab[_0x557096('0x19')]=_0x3a48d4[_0x557096('0x3e')]['Smtp'][_0x557096('0x19')],_0x3a8bab[_0x557096('0xa')]=_0x3a48d4[_0x557096('0x3e')]['Smtp']['port'],_0x3a8bab[_0x557096('0x2e')]=_0x3a48d4[_0x557096('0x3e')][_0x557096('0x8')][_0x557096('0x2e')]);_0x3a48d4[_0x557096('0x3e')][_0x557096('0x8')]['authentication']&&(_0x3a8bab[_0x557096('0x4b')]={'user':_0x3a48d4[_0x557096('0x3e')]['Smtp'][_0x557096('0x4f')],'pass':_0x3a48d4[_0x557096('0x3e')][_0x557096('0x8')][_0x557096('0x4c')]});const _0x4fcc04={'account':_0x3a8bab,'message':{'from':util[_0x557096('0x5')]('\x22%s\x22\x20<%s>',_0x3a48d4[_0x557096('0x3e')][_0x557096('0x22')],_0x3a48d4[_0x557096('0x3e')][_0x557096('0x49')]||_0x3a48d4[_0x557096('0x3e')][_0x557096('0x8')][_0x557096('0x4f')]),'to':_0x3a48d4['email'],'cc':_0x3a48d4['cc'],'bcc':_0x3a48d4[_0x557096('0xe')],'subject':util['format']('Report\x20%s\x20last\x20%s\x20%s',_0x152dde[_0x557096('0x22')],_0x3a48d4[_0x557096('0x33')],_0x3a48d4['subtractUnit'])}},_0x1c7432=path[_0x557096('0x34')](__dirname,_0x557096('0x2')),_0x3a69e3=_0x152dde[_0x557096('0x1d')],_0x504918=util[_0x557096('0x5')](_0x557096('0x6'),path[_0x557096('0x14')](_0x152dde['savename'],path[_0x557096('0xf')](_0x152dde[_0x557096('0x1d')])),_0x557096('0x29')),_0x228a8=path[_0x557096('0x34')](_0x1c7432,_0x3a69e3),_0x474dc5=path['join'](_0x1c7432,_0x504918);if(fs[_0x557096('0x32')](_0x228a8))_0x152dde[_0x557096('0x1b')]=_0x557096('0x44'),_0x4fcc04['message'][_0x557096('0x15')]=[{'filename':_0x3a69e3,'path':_0x228a8}],_0x4fcc04[_0x557096('0x35')]['text']=util[_0x557096('0x5')](_0x557096('0x43'),JSON[_0x557096('0x39')](_0x152dde,null,0x2));else fs['existsSync'](_0x474dc5)?(_0x152dde[_0x557096('0x1b')]=_0x557096('0x44'),_0x4fcc04[_0x557096('0x35')][_0x557096('0x15')]=[{'filename':_0x504918,'path':_0x474dc5}]):(_0x4fcc04[_0x557096('0x35')][_0x557096('0x2f')]=_0x557096('0x45'),!_0x3a48d4[_0x557096('0x4')]&&(_0x2eca6c=![],logger[_0x557096('0x11')](_0x557096('0xc'))));if(_0x2eca6c)return client['request'](_0x557096('0x3d'),_0x4fcc04)['then'](function(_0x29945b){const _0x24efb4=_0x557096;if(_0x29945b['error'])return logger[_0x24efb4('0x10')](_0x24efb4('0x53'),JSON[_0x24efb4('0x39')](_0x29945b));return logger['info'](_0x24efb4('0x17'));})[_0x557096('0x26')](function(_0x2d734f){const _0x502563=_0x557096;return logger[_0x502563('0x10')](_0x502563('0x53'),JSON[_0x502563('0x39')](_0x2d734f));});};}function handleError(){return function(_0x3f411b){const _0x5b2a50=a851_0x506e;return logger[_0x5b2a50('0x10')](JSON['stringify'](_0x3f411b));};}function handleResult(_0x44b586){return function(_0x3cf7ae){const _0xfda461=a851_0x506e;logger[_0xfda461('0x11')]('data',JSON['stringify'](_0x3cf7ae)),_0x44b586[_0xfda461('0x3e')]&&_0x44b586['MailAccount'][_0xfda461('0x8')]&&!_[_0xfda461('0x1f')](_0x44b586[_0xfda461('0x49')])&&setTimeout(handleSendEmail(_0x44b586,_0x3cf7ae),0x3c*0x3e8);};}function handleJob(_0x4794bc){return function(){const _0x2eddc8=a851_0x506e;try{if(_['isNil'](_0x4794bc[_0x2eddc8('0x33')]))return logger['info']('subtractNumber\x20null\x20or\x20undefined');if(_['isNil'](_0x4794bc['subtractUnit']))return logger[_0x2eddc8('0x11')](_0x2eddc8('0x3'));const _0x142dee={'startDate':moment()[_0x2eddc8('0xb')](_0x4794bc[_0x2eddc8('0x33')],_0x4794bc[_0x2eddc8('0x4e')])[_0x2eddc8('0x5')](_0x2eddc8('0x20')),'endDate':moment()[_0x2eddc8('0x5')](_0x2eddc8('0x20')),'type':_0x2eddc8('0x3f'),'output':_0x4794bc[_0x2eddc8('0x31')],'name':_0x4794bc[_0x2eddc8('0x22')]};if(!_['isNil'](_0x4794bc[_0x2eddc8('0x23')]))return logger[_0x2eddc8('0x11')]('exec\x20defaul\x20report\x20id:%s',_0x4794bc[_0x2eddc8('0x23')]),analyticDefaultReportController[_0x2eddc8('0x25')]({'id':_0x4794bc[_0x2eddc8('0x23')]},_0x142dee)[_0x2eddc8('0x41')](handleResult(_0x4794bc))['catch'](handleError());if(!_[_0x2eddc8('0x1f')](_0x4794bc[_0x2eddc8('0x55')]))return logger[_0x2eddc8('0x11')](_0x2eddc8('0x13'),_0x4794bc[_0x2eddc8('0x55')]),analyticCustomReportController[_0x2eddc8('0x25')]({'id':_0x4794bc['CustomReportId']},_0x142dee)[_0x2eddc8('0x41')](handleResult(_0x4794bc))['catch'](handleError());}catch(_0xba595c){logger['error'](JSON[_0x2eddc8('0x39')](_0xba595c));}return logger[_0x2eddc8('0x11')](_0x2eddc8('0x30'));};}function getJobs(_0x108450){const _0x3644bb=_0x2976af,_0x57c4a0={};return _0x108450&&(_0x57c4a0['id']=_0x108450),db[_0x3644bb('0x1e')][_0x3644bb('0x27')]({'where':_0x57c4a0,'include':[{'model':db['MailAccount'],'attributes':['id',_0x3644bb('0x22'),_0x3644bb('0x49')],'include':[{'model':db['MailServerOut'],'as':_0x3644bb('0x8')}]}]})[_0x3644bb('0x41')](function(_0x1a69d3){const _0xaf56ba=_0x3644bb,_0x4609b7=_[_0xaf56ba('0x9')](manager[_0xaf56ba('0x18')]),_0x15c0df=_[_0xaf56ba('0x2b')](_0x1a69d3,function(_0x59c67e){return _0x59c67e['id']['toString']();}),_0x4b7f97=_[_0xaf56ba('0x2d')](_0x1a69d3,function(_0x405020){const _0x2982b1=_0xaf56ba;return _0x405020['id'][_0x2982b1('0x24')]();}),_0xd1334b=_0x108450?_0x15c0df:_['difference'](_0x15c0df,_0x4609b7),_0x2315db=_[_0xaf56ba('0x47')](_0x15c0df,_0x4609b7),_0x553a13=_[_0xaf56ba('0xd')](_0x4609b7,_0x15c0df);let _0x1b4d4e,_0x467b7a;for(_0x1b4d4e=0x0;_0x1b4d4e<_0x553a13[_0xaf56ba('0x52')]&&!_0x108450;_0x1b4d4e+=0x1){_0x467b7a=_0x553a13[_0x1b4d4e][_0xaf56ba('0x24')](),manager[_0xaf56ba('0x46')](_0x467b7a)&&(manager['stop'](_0x467b7a),manager[_0xaf56ba('0x38')](_0x467b7a),logger['info'](_0xaf56ba('0x0'),_0x467b7a));}logger[_0xaf56ba('0x11')]('toRun',JSON['stringify'](_0xd1334b));for(_0x1b4d4e=0x0;_0x1b4d4e<_0xd1334b[_0xaf56ba('0x52')];_0x1b4d4e+=0x1){_0x467b7a=_0xd1334b[_0x1b4d4e][_0xaf56ba('0x24')](),logger[_0xaf56ba('0x11')](_0xaf56ba('0x3a'),_0x467b7a);if(_0x108450)logger[_0xaf56ba('0x11')](_0xaf56ba('0x3c'),_0x108450),logger[_0xaf56ba('0x11')](JSON['stringify'](_0x4b7f97[_0x467b7a])),Promise['resolve']()[_0xaf56ba('0x41')](handleJob(_0x4b7f97[_0x467b7a])),logger[_0xaf56ba('0x11')](_0xaf56ba('0x2c'),_0x4b7f97[_0x467b7a][_0xaf56ba('0x22')],_0x4b7f97[_0x467b7a][_0xaf56ba('0x12')]);else{if(_0x4b7f97[_0x467b7a][_0xaf56ba('0x12')]&&_0x4b7f97[_0x467b7a][_0xaf56ba('0x42')]&&moment()['isBetween'](_0x4b7f97[_0x467b7a]['startAt'],_0x4b7f97[_0x467b7a][_0xaf56ba('0x2a')]))manager[_0xaf56ba('0x36')](_0x467b7a,_0x4b7f97[_0x467b7a][_0xaf56ba('0x12')],handleJob(_0x4b7f97[_0x467b7a])),manager[_0xaf56ba('0x1a')](_0x467b7a),logger[_0xaf56ba('0x11')]('add\x20cron',_0x4b7f97[_0x467b7a][_0xaf56ba('0x22')],_0x4b7f97[_0x467b7a][_0xaf56ba('0x12')]);else manager['exists'](_0x467b7a)&&(manager[_0xaf56ba('0x4d')](_0x467b7a),manager[_0xaf56ba('0x38')](_0x467b7a),logger['info'](_0xaf56ba('0x1'),_0x4b7f97[_0x467b7a][_0xaf56ba('0x22')],_0x4b7f97[_0x467b7a]['cron']));}}for(_0x1b4d4e=0x0,_0x467b7a;_0x1b4d4e<_0x2315db[_0xaf56ba('0x52')]&&!_0x108450;_0x1b4d4e+=0x1){_0x467b7a=_0x2315db[_0x1b4d4e][_0xaf56ba('0x24')](),manager[_0xaf56ba('0x46')](_0x467b7a)&&(_0x4b7f97[_0x467b7a][_0xaf56ba('0x12')]&&_0x4b7f97[_0x467b7a][_0xaf56ba('0x42')]&&moment()[_0xaf56ba('0x21')](_0x4b7f97[_0x467b7a][_0xaf56ba('0x48')],_0x4b7f97[_0x467b7a][_0xaf56ba('0x2a')])?(manager['update'](_0x467b7a,_0x4b7f97[_0x467b7a][_0xaf56ba('0x12')],handleJob(_0x4b7f97[_0x467b7a])),logger[_0xaf56ba('0x11')](_0xaf56ba('0x54'),_0x4b7f97[_0x467b7a][_0xaf56ba('0x22')],_0x4b7f97[_0x467b7a]['cron'])):(manager[_0xaf56ba('0x4d')](_0x467b7a),manager[_0xaf56ba('0x38')](_0x467b7a),logger['info'](_0xaf56ba('0x1'),_0x4b7f97[_0x467b7a][_0xaf56ba('0x22')],_0x4b7f97[_0x467b7a][_0xaf56ba('0x12')])));}})[_0x3644bb('0x26')](function(_0xd83be0){const _0x386101=_0x3644bb;logger[_0x386101('0x10')](JSON['stringify'](_0xd83be0));});}exports['run']=function(_0xc6027){return getJobs(_0xc6027);},exports[_0x2976af('0x1a')]=function(){return setInterval(function(){return getJobs();},0x3c*0x3e8),getJobs();}; \ No newline at end of file diff --git a/server/config/schedule/transcribe.js b/server/config/schedule/transcribe.js index d54dd5b..110415b 100644 --- a/server/config/schedule/transcribe.js +++ b/server/config/schedule/transcribe.js @@ -1 +1 @@ -const a852_0x585c=['VoiceRecording','name','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','forEach','transcribeName','start','TranscriptionJobStatus','transcribeRegion','COMPLETED','Sentiment\x20Analysis\x20not\x20requested','Transcript\x20not\x20available','then','fileText','SentimentScore','transcripts','Negative','tempSentiment','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','getTranscriptionJob','Sequelize','data2','Positive','transcript','transcribe','bucket','Transcribe\x20not\x20configured','CloudProvider','Setting','aws-sdk','data1','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','results','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','detectSentiment','Cloud\x20Provider\x20not\x20configured','length','sentimentAccountId','update','TranscriptionJob','Cloud\x20Provider\x20not\x20available','Sentiment','TranscriptFileUri','[RECORDING:%d]\x20Sentiment\x20Analysis\x20available','FAILED','No\x20transcribe\x20job\x20to\x20check','catch','resolve','push','inspect','[RECORDING:%d]\x20Get\x20transcript','util','language','FailureReason','info','format','findOne','[RECORDING:%d]\x20Transcript\x20downloaded','../../mysqldb','Mixed','SequelizeValidationError','Sentiment\x20Analysis\x20not\x20configured','sentimentRegion','Settings\x20not\x20available','[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s','Neutral','IN_PROGRESS','Transcript','ValidationError','sentiment','../../config/logger'];(function(_0x188eb4,_0x585c6c){const _0x43d916=function(_0xe4cb99){while(--_0xe4cb99){_0x188eb4['push'](_0x188eb4['shift']());}};_0x43d916(++_0x585c6c);}(a852_0x585c,0x1d9));const a852_0x43d9=function(_0x188eb4,_0x585c6c){_0x188eb4=_0x188eb4-0x0;let _0x43d916=a852_0x585c[_0x188eb4];return _0x43d916;};const _0x507dcc=a852_0x43d9,AWS=require(_0x507dcc('0x2d')),rp=require('request-promise-native'),util=require(_0x507dcc('0x43')),db=require(_0x507dcc('0x4'))['db'],logger=require(_0x507dcc('0x10'))('transcribe');function getTranscriptionJob(_0xe4cb99,_0x32f23b,_0x3ebbb,_0x5cec77){return new Promise(function(_0x2e065b,_0xab3f2){const _0x4288d4=a852_0x43d9,_0x2e4803=new AWS['TranscribeService']({'accessKeyId':_0x32f23b,'secretAccessKey':_0xe4cb99,'region':_0x3ebbb});_0x2e4803[_0x4288d4('0x23')]({'TranscriptionJobName':_0x5cec77},function(_0x14d776,_0x37fece){return _0x14d776?_0xab3f2(_0x14d776):_0x2e065b(_0x37fece);});});}function sentiment(_0x28f415,_0x3e0556,_0x3bcd65,_0xebc5e5,_0x387f84){return new Promise(function(_0x42b35d,_0x3d1870){const _0x250b4d=a852_0x43d9,_0x376d62=new AWS['Comprehend']({'accessKeyId':_0x3e0556,'secretAccessKey':_0x28f415,'region':_0x3bcd65});_0x376d62[_0x250b4d('0x32')]({'Text':_0xebc5e5,'LanguageCode':_0x387f84['substring'](0x0,0x2)},function(_0x2fe005,_0x3d40aa){return _0x2fe005?_0x3d1870(_0x2fe005):_0x42b35d(_0x3d40aa);});});}function checkTranscribeJob(_0x1f48b4,_0xee4e03,_0x159bc8){let _0x1c9727;return new Promise(function(_0x4f53d3){const _0x22b24d=a852_0x43d9;return logger['info'](util[_0x22b24d('0x1')]('[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)',_0x1f48b4['id'],_0x1f48b4['transcribeName'])),getTranscriptionJob(_0x159bc8[_0x22b24d('0x2e')],_0x159bc8[_0x22b24d('0x25')],_0xee4e03[_0x22b24d('0x18')],_0x1f48b4[_0x22b24d('0x15')])['then'](function(_0x12dc88){const _0x4f51a3=_0x22b24d;logger[_0x4f51a3('0x0')](util[_0x4f51a3('0x1')](_0x4f51a3('0xa'),_0x1f48b4['id'],_0x1f48b4[_0x4f51a3('0x15')],_0x12dc88[_0x4f51a3('0x37')][_0x4f51a3('0x17')]));if(!_0x1f48b4[_0x4f51a3('0x1d')])switch(_0x12dc88[_0x4f51a3('0x37')][_0x4f51a3('0x17')]){case _0x4f51a3('0x19'):{const _0x3dc217={'transcribeStatus':_0x12dc88[_0x4f51a3('0x37')]['TranscriptionJobStatus'],'fileUri':_0x12dc88[_0x4f51a3('0x37')][_0x4f51a3('0xd')][_0x4f51a3('0x3a')]};return logger['info'](util['format'](_0x4f51a3('0x42'),_0x1f48b4['id'])),rp({'uri':_0x12dc88[_0x4f51a3('0x37')][_0x4f51a3('0xd')][_0x4f51a3('0x3a')],'json':!![]})[_0x4f51a3('0x1c')](function(_0x8b90e){const _0x29dd65=_0x4f51a3;logger[_0x29dd65('0x0')](util[_0x29dd65('0x1')](_0x29dd65('0x3'),_0x1f48b4['id']));if(_0x8b90e&&_0x8b90e[_0x29dd65('0x30')]&&_0x8b90e['results'][_0x29dd65('0x1f')]&&_0x8b90e[_0x29dd65('0x30')][_0x29dd65('0x1f')][_0x29dd65('0x34')]){_0x3dc217[_0x29dd65('0x1d')]='';for(let _0x35dd00=0x0;_0x35dd00<_0x8b90e['results']['transcripts']['length'];_0x35dd00++){_0x3dc217[_0x29dd65('0x1d')]+=_0x8b90e[_0x29dd65('0x30')][_0x29dd65('0x1f')][_0x35dd00][_0x29dd65('0x27')]+'';}}return _0x1f48b4[_0x29dd65('0x36')](_0x3dc217);})['then'](function(){const _0x3b8465=_0x4f51a3;logger['info'](util[_0x3b8465('0x1')]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x1f48b4['id']));if(!_0x1f48b4[_0x3b8465('0x21')])throw new db[(_0x3b8465('0x24'))]['ValidationError']('Sentiment\x20Analysis\x20not\x20requested');if(!_0xee4e03[_0x3b8465('0xf')]||!_0xee4e03['sentimentAccountId']||!_0xee4e03[_0x3b8465('0x8')]||!_0xee4e03[_0x3b8465('0x44')]||!_0xee4e03['bucket'])throw new db[(_0x3b8465('0x24'))][(_0x3b8465('0xe'))]('Sentiment\x20Analysis\x20not\x20configured');if(!_0x3dc217[_0x3b8465('0x1d')])throw new Error(_0x3b8465('0x1b'));return _0xee4e03['sentimentAccountId']===_0x159bc8['id']?_0x159bc8:db['CloudProvider'][_0x3b8465('0x2')]({'where':{'id':_0xee4e03[_0x3b8465('0x35')]}});})[_0x4f51a3('0x1c')](function(_0x69278f){const _0x453be2=_0x4f51a3;if(!_0x69278f)throw new db['Sequelize']['ValidationError'](_0x453be2('0x38'));if(!_0x69278f['data1']||!_0x69278f[_0x453be2('0x25')])throw new db[(_0x453be2('0x24'))]['ValidationError'](_0x453be2('0x33'));return _0x1c9727=_0x69278f,logger[_0x453be2('0x0')](util['format'](_0x453be2('0x22'),_0x1f48b4['id'])),sentiment(_0x1c9727[_0x453be2('0x2e')],_0x1c9727[_0x453be2('0x25')],_0xee4e03[_0x453be2('0x8')],_0x3dc217[_0x453be2('0x1d')],_0xee4e03[_0x453be2('0x44')]);})[_0x4f51a3('0x1c')](function(_0x27117a){const _0x2cce3f=_0x4f51a3;return logger[_0x2cce3f('0x0')](util[_0x2cce3f('0x1')]('[RECORDING:%d]\x20Sentiment\x20Analysis\x20available',_0x1f48b4['id'])),_0x1f48b4[_0x2cce3f('0x36')]({'sentiment':_0x27117a[_0x2cce3f('0x39')],'sPositive':_0x27117a[_0x2cce3f('0x1e')]['Positive'],'sNegative':_0x27117a['SentimentScore'][_0x2cce3f('0x20')],'sMixed':_0x27117a[_0x2cce3f('0x1e')][_0x2cce3f('0x5')],'sNeutral':_0x27117a[_0x2cce3f('0x1e')][_0x2cce3f('0xb')]});})[_0x4f51a3('0x1c')](function(){const _0x536439=_0x4f51a3;logger[_0x536439('0x0')](util[_0x536439('0x1')](_0x536439('0x13'),_0x1f48b4['id'])),_0x4f53d3();});}case _0x4f51a3('0x3c'):return _0x1f48b4[_0x4f51a3('0x36')]({'transcribeStatus':'FAILED','failureReason':_0x12dc88[_0x4f51a3('0x37')][_0x4f51a3('0x45')]})[_0x4f51a3('0x1c')](function(){const _0x3837d1=_0x4f51a3;logger['info'](util[_0x3837d1('0x1')]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x1f48b4['id'])),_0x4f53d3();});default:logger[_0x4f51a3('0x0')](util['format'](_0x4f51a3('0x2f'),_0x1f48b4['id']));break;}else return Promise[_0x4f51a3('0x3f')]()[_0x4f51a3('0x1c')](function(){const _0x5e0b4a=_0x4f51a3;if(!_0x1f48b4[_0x5e0b4a('0x21')])throw new db[(_0x5e0b4a('0x24'))][(_0x5e0b4a('0xe'))](_0x5e0b4a('0x1a'));if(!_0xee4e03['sentiment']||!_0xee4e03[_0x5e0b4a('0x35')]||!_0xee4e03['sentimentRegion']||!_0xee4e03[_0x5e0b4a('0x44')]||!_0xee4e03[_0x5e0b4a('0x29')])throw new db[(_0x5e0b4a('0x24'))]['ValidationError'](_0x5e0b4a('0x7'));if(!_0x1f48b4[_0x5e0b4a('0x1d')])throw new Error('Transcript\x20not\x20available');return _0xee4e03['sentimentAccountId']===_0x159bc8['id']?_0x159bc8:db[_0x5e0b4a('0x2b')][_0x5e0b4a('0x2')]({'where':{'id':_0xee4e03['sentimentAccountId']}});})[_0x4f51a3('0x1c')](function(_0x26ba09){const _0x1e740a=_0x4f51a3;if(!_0x26ba09)throw new db[(_0x1e740a('0x24'))][(_0x1e740a('0xe'))]('Cloud\x20Provider\x20not\x20available');if(!_0x26ba09['data1']||!_0x26ba09[_0x1e740a('0x25')])throw new db[(_0x1e740a('0x24'))][(_0x1e740a('0xe'))]('Cloud\x20Provider\x20not\x20configured');return _0x1c9727=_0x26ba09,logger[_0x1e740a('0x0')](util['format'](_0x1e740a('0x22'),_0x1f48b4['id'])),sentiment(_0x1c9727[_0x1e740a('0x2e')],_0x1c9727[_0x1e740a('0x25')],_0xee4e03['sentimentRegion'],_0x1f48b4[_0x1e740a('0x1d')],_0xee4e03[_0x1e740a('0x44')]);})[_0x4f51a3('0x1c')](function(_0x3a3283){const _0x1db131=_0x4f51a3;return logger[_0x1db131('0x0')](util[_0x1db131('0x1')](_0x1db131('0x3b'),_0x1f48b4['id'])),_0x1f48b4['update']({'sentiment':_0x3a3283['Sentiment'],'sPositive':_0x3a3283[_0x1db131('0x1e')][_0x1db131('0x26')],'sNegative':_0x3a3283[_0x1db131('0x1e')][_0x1db131('0x20')],'sMixed':_0x3a3283[_0x1db131('0x1e')]['Mixed'],'sNeutral':_0x3a3283['SentimentScore'][_0x1db131('0xb')],'transcribeStatus':_0x1db131('0x19')});})[_0x4f51a3('0x1c')](function(){const _0x5c3321=_0x4f51a3;logger[_0x5c3321('0x0')](util[_0x5c3321('0x1')](_0x5c3321('0x13'),_0x1f48b4['id'])),_0x4f53d3();});})[_0x22b24d('0x3e')](function(_0x5b87fe){const _0x5eca3e=_0x22b24d;_0x5b87fe&&((!_0x5b87fe[_0x5eca3e('0x12')]||_0x5b87fe[_0x5eca3e('0x12')]!=='SequelizeValidationError')&&logger['error'](util[_0x5eca3e('0x1')](_0x5eca3e('0x31'),_0x1f48b4['id']),util[_0x5eca3e('0x41')](_0x5b87fe,{'showHidden':![],'depth':null}))),_0x4f53d3();});});}function checkTranscribe(){const _0x5dec6e=_0x507dcc;let _0x18ed31,_0x4bafaa,_0xd48499;return db[_0x5dec6e('0x11')]['findAll']({'where':{'transcribeStatus':_0x5dec6e('0xc')}})[_0x5dec6e('0x1c')](function(_0x1d192b){const _0x35d371=_0x5dec6e;if(!_0x1d192b||!_0x1d192b[_0x35d371('0x34')])throw new db[(_0x35d371('0x24'))][(_0x35d371('0xe'))](_0x35d371('0x3d'));return _0x18ed31=_0x1d192b,db[_0x35d371('0x2c')][_0x35d371('0x2')]({'where':{'id':0x1}});})[_0x5dec6e('0x1c')](function(_0x1faf98){const _0xa84d54=_0x5dec6e;if(!_0x1faf98)throw new db[(_0xa84d54('0x24'))]['ValidationError'](_0xa84d54('0x9'));_0x4bafaa=_0x1faf98;if(!_0x4bafaa[_0xa84d54('0x28')]||!_0x4bafaa['transcribeAccountId']||!_0x4bafaa[_0xa84d54('0x18')]||!_0x4bafaa[_0xa84d54('0x44')]||!_0x4bafaa[_0xa84d54('0x29')])throw new db[(_0xa84d54('0x24'))][(_0xa84d54('0xe'))](_0xa84d54('0x2a'));return db[_0xa84d54('0x2b')]['findOne']({'where':{'id':_0x4bafaa['transcribeAccountId']}});})[_0x5dec6e('0x1c')](function(_0x3b3cc2){const _0x35717f=_0x5dec6e;if(!_0x3b3cc2)throw new db[(_0x35717f('0x24'))]['ValidationError'](_0x35717f('0x38'));if(!_0x3b3cc2[_0x35717f('0x2e')]||!_0x3b3cc2[_0x35717f('0x25')])throw new db[(_0x35717f('0x24'))][(_0x35717f('0xe'))](_0x35717f('0x33'));_0xd48499=_0x3b3cc2;const _0x4677be=[];return _0x18ed31[_0x35717f('0x14')](function(_0x267609){const _0x51213e=_0x35717f;_0x4677be[_0x51213e('0x40')](checkTranscribeJob(_0x267609,_0x4bafaa,_0xd48499));}),Promise['all'](_0x4677be);})[_0x5dec6e('0x3e')](function(_0x10cec2){const _0x17d858=_0x5dec6e;_0x10cec2&&((!_0x10cec2[_0x17d858('0x12')]||_0x10cec2[_0x17d858('0x12')]!==_0x17d858('0x6'))&&logger['error'](util[_0x17d858('0x41')](_0x10cec2,{'showHidden':![],'depth':null})));});}exports[_0x507dcc('0x16')]=function(){return setInterval(function(){return checkTranscribe();},0x3c*0x3e8),checkTranscribe();}; \ No newline at end of file +const a852_0x44a5=['catch','fileText','resolve','No\x20transcribe\x20job\x20to\x20check','sentimentRegion','sentiment','FAILED','VoiceRecording','IN_PROGRESS','push','TranscribeService','Sentiment\x20Analysis\x20not\x20configured','results','aws-sdk','../../config/logger','name','transcribe','Sequelize','all','format','transcribeRegion','CloudProvider','util','TranscriptFileUri','bucket','SentimentScore','getTranscriptionJob','findAll','tempSentiment','findOne','TranscriptionJob','sentimentAccountId','request-promise-native','error','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','forEach','info','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','Negative','Cloud\x20Provider\x20not\x20configured','data1','length','update','Setting','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','Mixed','transcript','Settings\x20not\x20available','language','ValidationError','detectSentiment','then','data2','SequelizeValidationError','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','Sentiment','Neutral','transcribeName','COMPLETED','Cloud\x20Provider\x20not\x20available','Sentiment\x20Analysis\x20not\x20requested','TranscriptionJobStatus','transcripts','Positive','Transcript\x20not\x20available','FailureReason'];(function(_0x2f4f18,_0x44a5b3){const _0xaacbed=function(_0x2d5f87){while(--_0x2d5f87){_0x2f4f18['push'](_0x2f4f18['shift']());}};_0xaacbed(++_0x44a5b3);}(a852_0x44a5,0x16d));const a852_0xaacb=function(_0x2f4f18,_0x44a5b3){_0x2f4f18=_0x2f4f18-0x0;let _0xaacbed=a852_0x44a5[_0x2f4f18];return _0xaacbed;};const _0x3688c0=a852_0xaacb,AWS=require(_0x3688c0('0x2c')),rp=require(_0x3688c0('0x3f')),util=require(_0x3688c0('0x35')),db=require('../../mysqldb')['db'],logger=require(_0x3688c0('0x2d'))(_0x3688c0('0x2f'));function getTranscriptionJob(_0x2d5f87,_0x3a3c9b,_0xe74e42,_0x40d397){return new Promise(function(_0x1f90e4,_0x300565){const _0x984bfb=a852_0xaacb,_0x46ccb9=new AWS[(_0x984bfb('0x29'))]({'accessKeyId':_0x3a3c9b,'secretAccessKey':_0x2d5f87,'region':_0xe74e42});_0x46ccb9[_0x984bfb('0x39')]({'TranscriptionJobName':_0x40d397},function(_0x5a43f1,_0x11023e){return _0x5a43f1?_0x300565(_0x5a43f1):_0x1f90e4(_0x11023e);});});}function sentiment(_0x3baf5e,_0x20c518,_0x28250a,_0x1e3aee,_0x13966a){return new Promise(function(_0x1fb12e,_0x4505ae){const _0x4c5684=a852_0xaacb,_0xdc2eec=new AWS['Comprehend']({'accessKeyId':_0x20c518,'secretAccessKey':_0x3baf5e,'region':_0x28250a});_0xdc2eec[_0x4c5684('0xf')]({'Text':_0x1e3aee,'LanguageCode':_0x13966a['substring'](0x0,0x2)},function(_0x1c2221,_0x47f4e9){return _0x1c2221?_0x4505ae(_0x1c2221):_0x1fb12e(_0x47f4e9);});});}function checkTranscribeJob(_0x51f48c,_0x130ff3,_0x4deeca){let _0x564ab6;return new Promise(function(_0x1d844f){const _0x121aa1=a852_0xaacb;return logger[_0x121aa1('0x1')](util[_0x121aa1('0x32')]('[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)',_0x51f48c['id'],_0x51f48c[_0x121aa1('0x16')])),getTranscriptionJob(_0x4deeca[_0x121aa1('0x5')],_0x4deeca['data2'],_0x130ff3[_0x121aa1('0x33')],_0x51f48c[_0x121aa1('0x16')])['then'](function(_0x344588){const _0x2812fe=_0x121aa1;logger['info'](util[_0x2812fe('0x32')]('[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s',_0x51f48c['id'],_0x51f48c[_0x2812fe('0x16')],_0x344588[_0x2812fe('0x3d')]['TranscriptionJobStatus']));if(!_0x51f48c[_0x2812fe('0x20')])switch(_0x344588[_0x2812fe('0x3d')][_0x2812fe('0x1a')]){case _0x2812fe('0x17'):{const _0x4cf3bb={'transcribeStatus':_0x344588[_0x2812fe('0x3d')][_0x2812fe('0x1a')],'fileUri':_0x344588[_0x2812fe('0x3d')]['Transcript'][_0x2812fe('0x36')]};return logger[_0x2812fe('0x1')](util['format']('[RECORDING:%d]\x20Get\x20transcript',_0x51f48c['id'])),rp({'uri':_0x344588['TranscriptionJob']['Transcript'][_0x2812fe('0x36')],'json':!![]})[_0x2812fe('0x10')](function(_0x24455f){const _0x15b022=_0x2812fe;logger['info'](util[_0x15b022('0x32')]('[RECORDING:%d]\x20Transcript\x20downloaded',_0x51f48c['id']));if(_0x24455f&&_0x24455f[_0x15b022('0x2b')]&&_0x24455f['results'][_0x15b022('0x1b')]&&_0x24455f[_0x15b022('0x2b')][_0x15b022('0x1b')][_0x15b022('0x6')]){_0x4cf3bb[_0x15b022('0x20')]='';for(let _0x581da8=0x0;_0x581da8<_0x24455f[_0x15b022('0x2b')][_0x15b022('0x1b')][_0x15b022('0x6')];_0x581da8++){_0x4cf3bb[_0x15b022('0x20')]+=_0x24455f[_0x15b022('0x2b')][_0x15b022('0x1b')][_0x581da8][_0x15b022('0xb')]+'';}}return _0x51f48c[_0x15b022('0x7')](_0x4cf3bb);})[_0x2812fe('0x10')](function(){const _0x4a1656=_0x2812fe;logger[_0x4a1656('0x1')](util[_0x4a1656('0x32')](_0x4a1656('0x13'),_0x51f48c['id']));if(!_0x51f48c[_0x4a1656('0x3b')])throw new db[(_0x4a1656('0x30'))][(_0x4a1656('0xe'))](_0x4a1656('0x19'));if(!_0x130ff3['sentiment']||!_0x130ff3[_0x4a1656('0x3e')]||!_0x130ff3[_0x4a1656('0x23')]||!_0x130ff3[_0x4a1656('0xd')]||!_0x130ff3[_0x4a1656('0x37')])throw new db[(_0x4a1656('0x30'))][(_0x4a1656('0xe'))](_0x4a1656('0x2a'));if(!_0x4cf3bb[_0x4a1656('0x20')])throw new Error(_0x4a1656('0x1d'));return _0x130ff3[_0x4a1656('0x3e')]===_0x4deeca['id']?_0x4deeca:db[_0x4a1656('0x34')][_0x4a1656('0x3c')]({'where':{'id':_0x130ff3['sentimentAccountId']}});})[_0x2812fe('0x10')](function(_0x5a5711){const _0x355d16=_0x2812fe;if(!_0x5a5711)throw new db[(_0x355d16('0x30'))][(_0x355d16('0xe'))](_0x355d16('0x18'));if(!_0x5a5711[_0x355d16('0x5')]||!_0x5a5711[_0x355d16('0x11')])throw new db[(_0x355d16('0x30'))][(_0x355d16('0xe'))](_0x355d16('0x4'));return _0x564ab6=_0x5a5711,logger[_0x355d16('0x1')](util['format']('[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis',_0x51f48c['id'])),sentiment(_0x564ab6[_0x355d16('0x5')],_0x564ab6[_0x355d16('0x11')],_0x130ff3[_0x355d16('0x23')],_0x4cf3bb[_0x355d16('0x20')],_0x130ff3['language']);})[_0x2812fe('0x10')](function(_0x212a1b){const _0x1287f9=_0x2812fe;return logger['info'](util[_0x1287f9('0x32')]('[RECORDING:%d]\x20Sentiment\x20Analysis\x20available',_0x51f48c['id'])),_0x51f48c['update']({'sentiment':_0x212a1b['Sentiment'],'sPositive':_0x212a1b[_0x1287f9('0x38')][_0x1287f9('0x1c')],'sNegative':_0x212a1b[_0x1287f9('0x38')][_0x1287f9('0x3')],'sMixed':_0x212a1b['SentimentScore'][_0x1287f9('0xa')],'sNeutral':_0x212a1b[_0x1287f9('0x38')]['Neutral']});})[_0x2812fe('0x10')](function(){const _0x3aaffd=_0x2812fe;logger[_0x3aaffd('0x1')](util[_0x3aaffd('0x32')](_0x3aaffd('0x13'),_0x51f48c['id'])),_0x1d844f();});}case _0x2812fe('0x25'):return _0x51f48c['update']({'transcribeStatus':'FAILED','failureReason':_0x344588[_0x2812fe('0x3d')][_0x2812fe('0x1e')]})['then'](function(){logger['info'](util['format']('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x51f48c['id'])),_0x1d844f();});default:logger[_0x2812fe('0x1')](util[_0x2812fe('0x32')](_0x2812fe('0x2'),_0x51f48c['id']));break;}else return Promise[_0x2812fe('0x21')]()[_0x2812fe('0x10')](function(){const _0x2222d5=_0x2812fe;if(!_0x51f48c[_0x2222d5('0x3b')])throw new db[(_0x2222d5('0x30'))][(_0x2222d5('0xe'))](_0x2222d5('0x19'));if(!_0x130ff3[_0x2222d5('0x24')]||!_0x130ff3[_0x2222d5('0x3e')]||!_0x130ff3[_0x2222d5('0x23')]||!_0x130ff3['language']||!_0x130ff3[_0x2222d5('0x37')])throw new db[(_0x2222d5('0x30'))][(_0x2222d5('0xe'))](_0x2222d5('0x2a'));if(!_0x51f48c[_0x2222d5('0x20')])throw new Error(_0x2222d5('0x1d'));return _0x130ff3[_0x2222d5('0x3e')]===_0x4deeca['id']?_0x4deeca:db[_0x2222d5('0x34')][_0x2222d5('0x3c')]({'where':{'id':_0x130ff3[_0x2222d5('0x3e')]}});})[_0x2812fe('0x10')](function(_0x332295){const _0xc3c844=_0x2812fe;if(!_0x332295)throw new db[(_0xc3c844('0x30'))]['ValidationError'](_0xc3c844('0x18'));if(!_0x332295['data1']||!_0x332295['data2'])throw new db[(_0xc3c844('0x30'))][(_0xc3c844('0xe'))](_0xc3c844('0x4'));return _0x564ab6=_0x332295,logger[_0xc3c844('0x1')](util[_0xc3c844('0x32')](_0xc3c844('0x9'),_0x51f48c['id'])),sentiment(_0x564ab6[_0xc3c844('0x5')],_0x564ab6['data2'],_0x130ff3[_0xc3c844('0x23')],_0x51f48c[_0xc3c844('0x20')],_0x130ff3[_0xc3c844('0xd')]);})[_0x2812fe('0x10')](function(_0x192f15){const _0xec0ba9=_0x2812fe;return logger['info'](util[_0xec0ba9('0x32')]('[RECORDING:%d]\x20Sentiment\x20Analysis\x20available',_0x51f48c['id'])),_0x51f48c[_0xec0ba9('0x7')]({'sentiment':_0x192f15[_0xec0ba9('0x14')],'sPositive':_0x192f15[_0xec0ba9('0x38')][_0xec0ba9('0x1c')],'sNegative':_0x192f15[_0xec0ba9('0x38')][_0xec0ba9('0x3')],'sMixed':_0x192f15[_0xec0ba9('0x38')][_0xec0ba9('0xa')],'sNeutral':_0x192f15['SentimentScore'][_0xec0ba9('0x15')],'transcribeStatus':_0xec0ba9('0x17')});})[_0x2812fe('0x10')](function(){const _0x280c4d=_0x2812fe;logger['info'](util[_0x280c4d('0x32')]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x51f48c['id'])),_0x1d844f();});})[_0x121aa1('0x1f')](function(_0x14abce){const _0x1ee941=_0x121aa1;_0x14abce&&((!_0x14abce[_0x1ee941('0x2e')]||_0x14abce[_0x1ee941('0x2e')]!==_0x1ee941('0x12'))&&logger['error'](util[_0x1ee941('0x32')](_0x1ee941('0x41'),_0x51f48c['id']),util['inspect'](_0x14abce,{'showHidden':![],'depth':null}))),_0x1d844f();});});}function checkTranscribe(){const _0x394563=_0x3688c0;let _0x5bd9e2,_0x330699,_0xbefab2;return db[_0x394563('0x26')][_0x394563('0x3a')]({'where':{'transcribeStatus':_0x394563('0x27')}})[_0x394563('0x10')](function(_0xe43106){const _0x5d8512=_0x394563;if(!_0xe43106||!_0xe43106[_0x5d8512('0x6')])throw new db[(_0x5d8512('0x30'))]['ValidationError'](_0x5d8512('0x22'));return _0x5bd9e2=_0xe43106,db[_0x5d8512('0x8')][_0x5d8512('0x3c')]({'where':{'id':0x1}});})[_0x394563('0x10')](function(_0x233184){const _0x575dda=_0x394563;if(!_0x233184)throw new db[(_0x575dda('0x30'))][(_0x575dda('0xe'))](_0x575dda('0xc'));_0x330699=_0x233184;if(!_0x330699['transcribe']||!_0x330699['transcribeAccountId']||!_0x330699[_0x575dda('0x33')]||!_0x330699['language']||!_0x330699['bucket'])throw new db[(_0x575dda('0x30'))][(_0x575dda('0xe'))]('Transcribe\x20not\x20configured');return db[_0x575dda('0x34')][_0x575dda('0x3c')]({'where':{'id':_0x330699['transcribeAccountId']}});})[_0x394563('0x10')](function(_0x136e98){const _0x224065=_0x394563;if(!_0x136e98)throw new db[(_0x224065('0x30'))][(_0x224065('0xe'))](_0x224065('0x18'));if(!_0x136e98['data1']||!_0x136e98['data2'])throw new db[(_0x224065('0x30'))][(_0x224065('0xe'))]('Cloud\x20Provider\x20not\x20configured');_0xbefab2=_0x136e98;const _0xe14f5a=[];return _0x5bd9e2[_0x224065('0x0')](function(_0xea473){const _0x2d738e=_0x224065;_0xe14f5a[_0x2d738e('0x28')](checkTranscribeJob(_0xea473,_0x330699,_0xbefab2));}),Promise[_0x224065('0x31')](_0xe14f5a);})[_0x394563('0x1f')](function(_0x1ad05e){const _0x5eefd9=_0x394563;_0x1ad05e&&((!_0x1ad05e[_0x5eefd9('0x2e')]||_0x1ad05e['name']!==_0x5eefd9('0x12'))&&logger[_0x5eefd9('0x40')](util['inspect'](_0x1ad05e,{'showHidden':![],'depth':null})));});}exports['start']=function(){return setInterval(function(){return checkTranscribe();},0x3c*0x3e8),checkTranscribe();}; \ No newline at end of file diff --git a/server/config/seedContact.js b/server/config/seedContact.js index c5f751a..9959234 100644 --- a/server/config/seedContact.js +++ b/server/config/seedContact.js @@ -1 +1 @@ -const a853_0x4bc3=['contacts1','Biondo','CmContact','../mysqldb','Innocenzo','then','finished\x20populating','destroy','now','innocenzo.biondo','bulkCreate','push','hopper1','log','hopper2','catch','@xcally.com','CmHopper'];(function(_0x3d6b5f,_0x4bc30f){const _0x3e25b9=function(_0x288afe){while(--_0x288afe){_0x3d6b5f['push'](_0x3d6b5f['shift']());}};_0x3e25b9(++_0x4bc30f);}(a853_0x4bc3,0x170));const a853_0x3e25=function(_0x3d6b5f,_0x4bc30f){_0x3d6b5f=_0x3d6b5f-0x0;let _0x3e25b9=a853_0x4bc3[_0x3d6b5f];return _0x3e25b9;};const _0x2dc216=a853_0x3e25;'use strict';const db=require(_0x2dc216('0xd'))['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts[_0x2dc216('0x3')]({'id':i,'firstName':_0x2dc216('0xe')+i,'lastName':_0x2dc216('0xb')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x2dc216('0x8')});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[_0x2dc216('0x3')]({'id':i,'active':![],'scheduledat':Date[_0x2dc216('0x0')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x2dc216('0x0')](),'updatedAt':Date['now']()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x2dc216('0x3')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x2dc216('0xb')+i,'phone':0xf879fb460+i,'email':_0x2dc216('0x1')+i+_0x2dc216('0x8')});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x2dc216('0x3')]({'id':i,'active':![],'scheduledat':Date[_0x2dc216('0x0')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x2dc216('0x0')](),'updatedAt':Date[_0x2dc216('0x0')]()});}db[_0x2dc216('0xc')][_0x2dc216('0x11')]({'where':{}})[_0x2dc216('0xf')](function(){return db['CmContact']['bulkCreate'](contacts);})['then'](function(){const _0x31ce4f=_0x2dc216;return console[_0x31ce4f('0x5')](_0x31ce4f('0x10'),_0x31ce4f('0xa')),db[_0x31ce4f('0x9')]['destroy']({'where':{}});})[_0x2dc216('0xf')](function(){const _0x50798e=_0x2dc216;return db[_0x50798e('0x9')][_0x50798e('0x2')](hopper);})['then'](function(){const _0x1fa322=_0x2dc216;return console[_0x1fa322('0x5')](_0x1fa322('0x10'),_0x1fa322('0x4')),db[_0x1fa322('0xc')][_0x1fa322('0x2')](contacts2);})['then'](function(){const _0x44012d=_0x2dc216;return console[_0x44012d('0x5')](_0x44012d('0x10'),'contacts2'),db[_0x44012d('0x9')][_0x44012d('0x2')](hopper2);})[_0x2dc216('0xf')](function(){const _0x262e2f=_0x2dc216;console[_0x262e2f('0x5')](_0x262e2f('0x10'),_0x262e2f('0x6'));})[_0x2dc216('0x7')](function(_0x288afe){const _0x1b61e6=_0x2dc216;console[_0x1b61e6('0x5')](_0x288afe);}); \ No newline at end of file +const a853_0x18e6=['now','finished\x20populating','then','log','Biondo','destroy','catch','innocenzo.biondo','contacts1','Innocenzo','CmContact','push','bulkCreate','CmHopper','hopper1','../mysqldb','@xcally.com','contacts2','hopper2'];(function(_0x28e81d,_0x18e613){const _0x5f18c1=function(_0x1ab637){while(--_0x1ab637){_0x28e81d['push'](_0x28e81d['shift']());}};_0x5f18c1(++_0x18e613);}(a853_0x18e6,0xaa));const a853_0x5f18=function(_0x28e81d,_0x18e613){_0x28e81d=_0x28e81d-0x0;let _0x5f18c1=a853_0x18e6[_0x28e81d];return _0x5f18c1;};const _0x10d6f5=a853_0x5f18;'use strict';const db=require(_0x10d6f5('0x10'))['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts[_0x10d6f5('0xc')]({'id':i,'firstName':_0x10d6f5('0xa')+i,'lastName':_0x10d6f5('0x5')+i,'phone':0xf879fb460+i,'email':_0x10d6f5('0x8')+i+_0x10d6f5('0x11')});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper['push']({'id':i,'active':![],'scheduledat':Date[_0x10d6f5('0x1')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date[_0x10d6f5('0x1')]()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x10d6f5('0xc')]({'id':i,'firstName':_0x10d6f5('0xa')+i,'lastName':_0x10d6f5('0x5')+i,'phone':0xf879fb460+i,'email':_0x10d6f5('0x8')+i+_0x10d6f5('0x11')});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x10d6f5('0xc')]({'id':i,'active':![],'scheduledat':Date[_0x10d6f5('0x1')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x10d6f5('0x1')](),'updatedAt':Date['now']()});}db[_0x10d6f5('0xb')][_0x10d6f5('0x6')]({'where':{}})[_0x10d6f5('0x3')](function(){const _0x30b730=_0x10d6f5;return db['CmContact'][_0x30b730('0xd')](contacts);})[_0x10d6f5('0x3')](function(){const _0x296c35=_0x10d6f5;return console[_0x296c35('0x4')](_0x296c35('0x2'),_0x296c35('0x9')),db[_0x296c35('0xe')][_0x296c35('0x6')]({'where':{}});})[_0x10d6f5('0x3')](function(){const _0x30e7d6=_0x10d6f5;return db[_0x30e7d6('0xe')][_0x30e7d6('0xd')](hopper);})[_0x10d6f5('0x3')](function(){const _0x32d7e5=_0x10d6f5;return console[_0x32d7e5('0x4')](_0x32d7e5('0x2'),_0x32d7e5('0xf')),db['CmContact'][_0x32d7e5('0xd')](contacts2);})[_0x10d6f5('0x3')](function(){const _0x5b77d0=_0x10d6f5;return console[_0x5b77d0('0x4')](_0x5b77d0('0x2'),_0x5b77d0('0x12')),db[_0x5b77d0('0xe')]['bulkCreate'](hopper2);})[_0x10d6f5('0x3')](function(){const _0x4e9906=_0x10d6f5;console[_0x4e9906('0x4')]('finished\x20populating',_0x4e9906('0x0'));})[_0x10d6f5('0x7')](function(_0x1ab637){const _0x1a4e3c=_0x10d6f5;console[_0x1a4e3c('0x4')](_0x1ab637);}); \ No newline at end of file diff --git a/server/config/seedDB/analyticReports.js b/server/config/seedDB/analyticReports.js index 0a53054..6515582 100644 --- a/server/config/seedDB/analyticReports.js +++ b/server/config/seedDB/analyticReports.js @@ -1 +1 @@ -const a854_0x1183=['default','destroy','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','AnalyticDefaultReport','fields','catch','ReportId','CustomReportId','Can\x27t\x20create\x20Analytic\x20Custom\x20Report','error','custom','length','../logger','./report','AnalyticFieldReport','then','message','Can\x27t\x20create\x20Analytic\x20Default\x20Report','Analytic\x20Default\x20Reports\x20have\x20been\x20created','bulkCreate','createCustom','info','createDefault'];(function(_0x571137,_0x118337){const _0x4669d8=function(_0x3dbf77){while(--_0x3dbf77){_0x571137['push'](_0x571137['shift']());}};_0x4669d8(++_0x118337);}(a854_0x1183,0x1bb));const a854_0x4669=function(_0x571137,_0x118337){_0x571137=_0x571137-0x0;let _0x4669d8=a854_0x1183[_0x571137];return _0x4669d8;};const _0x589dac=a854_0x4669;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x589dac('0x6'))('app'),report=require(_0x589dac('0x7'));exports[_0x589dac('0x10')]=function(){const _0x29d09b=_0x589dac;return db[_0x29d09b('0x14')][_0x29d09b('0x12')]({'where':{}})[_0x29d09b('0x9')](function(){const _0x24854b=_0x29d09b;return db[_0x24854b('0x14')][_0x24854b('0xd')](report[_0x24854b('0x11')]('motion'),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x29d09b('0x9')](function(_0x3dbf77){const _0x26dce0=_0x29d09b,_0x139ad3=report[_0x26dce0('0x15')]();for(let _0x1ab6b9=0x0;_0x1ab6b9<_0x3dbf77[_0x26dce0('0x5')];_0x1ab6b9+=0x1){if(_0x139ad3[_0x3dbf77[_0x1ab6b9]['id']]){for(let _0xc1c2da=0x0;_0xc1c2da<_0x139ad3[_0x3dbf77[_0x1ab6b9]['id']]['length'];_0xc1c2da+=0x1){_0x139ad3[_0x3dbf77[_0x1ab6b9]['id']][_0xc1c2da]['DefaultReportId']=_0x139ad3[_0x3dbf77[_0x1ab6b9]['id']][_0xc1c2da][_0x26dce0('0x0')],delete _0x139ad3[_0x3dbf77[_0x1ab6b9]['id']][_0xc1c2da]['ReportId'];}db['AnalyticFieldReport'][_0x26dce0('0xd')](_0x139ad3[_0x3dbf77[_0x1ab6b9]['id']]);}}})[_0x29d09b('0x9')](function(){const _0x492b00=_0x29d09b;logger[_0x492b00('0xf')](_0x492b00('0xc'));})[_0x29d09b('0x16')](function(_0x2e45c3){const _0x410eb0=_0x29d09b;logger[_0x410eb0('0x3')](_0x410eb0('0xb'),_0x2e45c3[_0x410eb0('0xa')]);});},exports[_0x589dac('0xe')]=function(){const _0x500757=_0x589dac;return db['AnalyticCustomReport'][_0x500757('0xd')](report[_0x500757('0x11')](_0x500757('0x4')),{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x500757('0x9')](function(_0x99f3b3){const _0xeb4443=_0x500757,_0x31e5bc=report['fields']();for(let _0x506805=0x0;_0x506805<_0x99f3b3[_0xeb4443('0x5')];_0x506805+=0x1){if(_0x31e5bc[_0x99f3b3[_0x506805]['id']]){for(let _0x2f3685=0x0;_0x2f3685<_0x31e5bc[_0x99f3b3[_0x506805]['id']][_0xeb4443('0x5')];_0x2f3685+=0x1){_0x31e5bc[_0x99f3b3[_0x506805]['id']][_0x2f3685][_0xeb4443('0x1')]=_0x31e5bc[_0x99f3b3[_0x506805]['id']][_0x2f3685][_0xeb4443('0x0')],delete _0x31e5bc[_0x99f3b3[_0x506805]['id']][_0x2f3685][_0xeb4443('0x0')];}db[_0xeb4443('0x8')][_0xeb4443('0xd')](_0x31e5bc[_0x99f3b3[_0x506805]['id']]);}}})[_0x500757('0x9')](function(){const _0x42f7c3=_0x500757;logger[_0x42f7c3('0xf')](_0x42f7c3('0x13'));})[_0x500757('0x16')](function(){const _0x325e4=_0x500757;logger[_0x325e4('0x3')](_0x325e4('0x2'));});}; \ No newline at end of file +const a854_0x42a8=['custom','AnalyticCustomReport','Can\x27t\x20create\x20Analytic\x20Default\x20Report','error','info','default','AnalyticFieldReport','catch','createDefault','ReportId','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','../../mysqldb','AnalyticDefaultReport','../logger','bulkCreate','motion','message','length','app','destroy','fields','then','createCustom'];(function(_0x15cb69,_0x42a8c4){const _0x3508dd=function(_0x4230c0){while(--_0x4230c0){_0x15cb69['push'](_0x15cb69['shift']());}};_0x3508dd(++_0x42a8c4);}(a854_0x42a8,0xb5));const a854_0x3508=function(_0x15cb69,_0x42a8c4){_0x15cb69=_0x15cb69-0x0;let _0x3508dd=a854_0x42a8[_0x15cb69];return _0x3508dd;};const _0x4b583c=a854_0x3508;'use strict';const db=require(_0x4b583c('0xe'))['db'],logger=require(_0x4b583c('0x10'))(_0x4b583c('0x15')),report=require('./report');exports[_0x4b583c('0xb')]=function(){const _0x22414f=_0x4b583c;return db[_0x22414f('0xf')][_0x22414f('0x16')]({'where':{}})['then'](function(){const _0x986514=_0x22414f;return db[_0x986514('0xf')][_0x986514('0x11')](report[_0x986514('0x8')](_0x986514('0x12')),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x22414f('0x1')](function(_0x4230c0){const _0x31f1f1=_0x22414f,_0x3c7317=report['fields']();for(let _0x4093c2=0x0;_0x4093c2<_0x4230c0['length'];_0x4093c2+=0x1){if(_0x3c7317[_0x4230c0[_0x4093c2]['id']]){for(let _0x153dce=0x0;_0x153dce<_0x3c7317[_0x4230c0[_0x4093c2]['id']][_0x31f1f1('0x14')];_0x153dce+=0x1){_0x3c7317[_0x4230c0[_0x4093c2]['id']][_0x153dce]['DefaultReportId']=_0x3c7317[_0x4230c0[_0x4093c2]['id']][_0x153dce]['ReportId'],delete _0x3c7317[_0x4230c0[_0x4093c2]['id']][_0x153dce][_0x31f1f1('0xc')];}db[_0x31f1f1('0x9')][_0x31f1f1('0x11')](_0x3c7317[_0x4230c0[_0x4093c2]['id']]);}}})[_0x22414f('0x1')](function(){const _0x8c3907=_0x22414f;logger[_0x8c3907('0x7')]('Analytic\x20Default\x20Reports\x20have\x20been\x20created');})['catch'](function(_0xd44902){const _0x30b313=_0x22414f;logger[_0x30b313('0x6')](_0x30b313('0x5'),_0xd44902[_0x30b313('0x13')]);});},exports[_0x4b583c('0x2')]=function(){const _0x372b0a=_0x4b583c;return db[_0x372b0a('0x4')][_0x372b0a('0x11')](report['default'](_0x372b0a('0x3')),{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x372b0a('0x1')](function(_0x2bec4a){const _0x21e74b=_0x372b0a,_0x3c0041=report[_0x21e74b('0x0')]();for(let _0x698f7b=0x0;_0x698f7b<_0x2bec4a[_0x21e74b('0x14')];_0x698f7b+=0x1){if(_0x3c0041[_0x2bec4a[_0x698f7b]['id']]){for(let _0x471f2e=0x0;_0x471f2e<_0x3c0041[_0x2bec4a[_0x698f7b]['id']][_0x21e74b('0x14')];_0x471f2e+=0x1){_0x3c0041[_0x2bec4a[_0x698f7b]['id']][_0x471f2e]['CustomReportId']=_0x3c0041[_0x2bec4a[_0x698f7b]['id']][_0x471f2e]['ReportId'],delete _0x3c0041[_0x2bec4a[_0x698f7b]['id']][_0x471f2e][_0x21e74b('0xc')];}db[_0x21e74b('0x9')][_0x21e74b('0x11')](_0x3c0041[_0x2bec4a[_0x698f7b]['id']]);}}})['then'](function(){const _0xfa4c45=_0x372b0a;logger[_0xfa4c45('0x7')](_0xfa4c45('0xd'));})[_0x372b0a('0xa')](function(){const _0x260f8a=_0x372b0a;logger[_0x260f8a('0x6')]('Can\x27t\x20create\x20Analytic\x20Custom\x20Report');});}; \ No newline at end of file diff --git a/server/config/seedDB/analyticTreeReports.js b/server/config/seedDB/analyticTreeReports.js index c599447..71917ea 100644 --- a/server/config/seedDB/analyticTreeReports.js +++ b/server/config/seedDB/analyticTreeReports.js @@ -1 +1 @@ -const a855_0x27a0=['Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created','../logger','AnalyticTreeReport','Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report','app','./tree','info','../../mysqldb','then','motion','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','createCustom','error','custom','stringify','Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report','update'];(function(_0x156ed3,_0x27a0a6){const _0x338820=function(_0x15e5d6){while(--_0x15e5d6){_0x156ed3['push'](_0x156ed3['shift']());}};_0x338820(++_0x27a0a6);}(a855_0x27a0,0x1ee));const a855_0x3388=function(_0x156ed3,_0x27a0a6){_0x156ed3=_0x156ed3-0x0;let _0x338820=a855_0x27a0[_0x156ed3];return _0x338820;};const _0x1ca354=a855_0x3388;'use strict';const db=require(_0x1ca354('0x6'))['db'],logger=require(_0x1ca354('0x0'))(_0x1ca354('0x3')),tree=require(_0x1ca354('0x4'));exports['createDefault']=function(){const _0x3b9d7a=_0x1ca354;return db[_0x3b9d7a('0x1')]['findOrCreate']({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON[_0x3b9d7a('0xd')](tree[_0x3b9d7a('0x8')])}})[_0x3b9d7a('0x7')](function([_0x15e5d6,_0x5a2924]){const _0x411812=_0x3b9d7a;if(!_0x5a2924)return _0x15e5d6[_0x411812('0xf')]({'tree':JSON[_0x411812('0xd')](tree[_0x411812('0x8')])});return _0x15e5d6;})[_0x3b9d7a('0x7')](function(){const _0x5b9ce5=_0x3b9d7a;logger[_0x5b9ce5('0x5')](_0x5b9ce5('0x10'));})['catch'](function(){const _0x5cc931=_0x3b9d7a;logger[_0x5cc931('0xb')](_0x5cc931('0xe'));});},exports[_0x1ca354('0xa')]=function(){const _0x5a9376=_0x1ca354;return db[_0x5a9376('0x1')]['bulkCreate']([{'id':0x2,'tree':JSON[_0x5a9376('0xd')](tree[_0x5a9376('0xc')])}],{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5a9376('0x7')](function(){const _0x52916a=_0x5a9376;logger[_0x52916a('0x5')](_0x52916a('0x9'));})['catch'](function(){const _0xe13775=_0x5a9376;logger[_0xe13775('0xb')](_0xe13775('0x2'));});}; \ No newline at end of file +const a855_0x4622=['update','../../mysqldb','stringify','../logger','error','info','app','createDefault','Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created','Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report','createCustom','bulkCreate','then','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','AnalyticTreeReport','catch','motion'];(function(_0x4d1a5b,_0x4622d4){const _0x45aa9d=function(_0x435e26){while(--_0x435e26){_0x4d1a5b['push'](_0x4d1a5b['shift']());}};_0x45aa9d(++_0x4622d4);}(a855_0x4622,0xb6));const a855_0x45aa=function(_0x4d1a5b,_0x4622d4){_0x4d1a5b=_0x4d1a5b-0x0;let _0x45aa9d=a855_0x4622[_0x4d1a5b];return _0x45aa9d;};const _0x1dd69f=a855_0x45aa;'use strict';const db=require(_0x1dd69f('0x6'))['db'],logger=require(_0x1dd69f('0x8'))(_0x1dd69f('0xb')),tree=require('./tree');exports[_0x1dd69f('0xc')]=function(){const _0x356833=_0x1dd69f;return db[_0x356833('0x2')]['findOrCreate']({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON['stringify'](tree[_0x356833('0x4')])}})[_0x356833('0x0')](function([_0x435e26,_0x50f3c3]){const _0x305806=_0x356833;if(!_0x50f3c3)return _0x435e26[_0x305806('0x5')]({'tree':JSON[_0x305806('0x7')](tree[_0x305806('0x4')])});return _0x435e26;})[_0x356833('0x0')](function(){const _0x232f0b=_0x356833;logger[_0x232f0b('0xa')](_0x232f0b('0xd'));})[_0x356833('0x3')](function(){const _0x50854e=_0x356833;logger[_0x50854e('0x9')](_0x50854e('0xe'));});},exports[_0x1dd69f('0xf')]=function(){const _0x348699=_0x1dd69f;return db['AnalyticTreeReport'][_0x348699('0x10')]([{'id':0x2,'tree':JSON[_0x348699('0x7')](tree['custom'])}],{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x348699('0x0')](function(){const _0x11c95b=_0x348699;logger[_0x11c95b('0xa')](_0x11c95b('0x1'));})[_0x348699('0x3')](function(){const _0x32bd96=_0x348699;logger[_0x32bd96('0x9')]('Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report');});}; \ No newline at end of file diff --git a/server/config/seedDB/chanspy.js b/server/config/seedDB/chanspy.js index 4f25856..1f00335 100644 --- a/server/config/seedDB/chanspy.js +++ b/server/config/seedDB/chanspy.js @@ -1 +1 @@ -const a856_0x2eec=['spy4','app','OnlyListenBoth','spy2','catch','Listen&TalkBoth','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice','error','VoiceChanSpy','../logger','create','Listen&TalkOne','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call'];(function(_0x17ae39,_0x2eecf2){const _0x49ff07=function(_0x568a2c){while(--_0x568a2c){_0x17ae39['push'](_0x17ae39['shift']());}};_0x49ff07(++_0x2eecf2);}(a856_0x2eec,0xaa));const a856_0x49ff=function(_0x17ae39,_0x2eecf2){_0x17ae39=_0x17ae39-0x0;let _0x49ff07=a856_0x2eec[_0x17ae39];return _0x49ff07;};const _0x3f9463=a856_0x49ff;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x3f9463('0x7'))(_0x3f9463('0xd')),chanSpy=[{'id':0x1,'name':_0x3f9463('0x9'),'prefix':'spy1','options':['b','w','E','S'],'description':_0x3f9463('0x4')},{'id':0x2,'name':'OnlyListen','prefix':_0x3f9463('0x1'),'options':['b','o','E','S'],'description':'The\x20supervisor\x20can\x20only\x20listen\x20the\x20agent\x20channel\x20(neither\x20the\x20agent\x20nor\x20the\x20customer\x20will\x20listen\x20to\x20the\x20supervisor\x20voice)'},{'id':0x3,'name':_0x3f9463('0x3'),'prefix':'spy3','options':['B','w','E','S'],'description':_0x3f9463('0xa')},{'id':0x4,'name':_0x3f9463('0x0'),'prefix':_0x3f9463('0xc'),'options':['B','o','E','S'],'description':_0x3f9463('0xb')}];exports[_0x3f9463('0x8')]=function(){const _0x5c4905=_0x3f9463;return db[_0x5c4905('0x6')]['bulkCreate'](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('ChanSpy\x20have\x20been\x20created');})[_0x5c4905('0x2')](function(){const _0x59e15c=_0x5c4905;logger[_0x59e15c('0x5')]('Can\x27t\x20create\x20ChanSpy');});}; \ No newline at end of file +const a856_0x16c5=['then','spy2','The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call','error','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','spy1','The\x20supervisor\x20can\x20only\x20listen\x20the\x20agent\x20channel\x20(neither\x20the\x20agent\x20nor\x20the\x20customer\x20will\x20listen\x20to\x20the\x20supervisor\x20voice)','info','OnlyListenBoth','app','create','OnlyListen','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice','bulkCreate','../../mysqldb','Can\x27t\x20create\x20ChanSpy','VoiceChanSpy','../logger'];(function(_0x141b07,_0x16c575){const _0x5a287b=function(_0x369b3d){while(--_0x369b3d){_0x141b07['push'](_0x141b07['shift']());}};_0x5a287b(++_0x16c575);}(a856_0x16c5,0x14e));const a856_0x5a28=function(_0x141b07,_0x16c575){_0x141b07=_0x141b07-0x0;let _0x5a287b=a856_0x16c5[_0x141b07];return _0x5a287b;};const _0x358c3b=a856_0x5a28;'use strict';const db=require(_0x358c3b('0x4'))['db'],logger=require(_0x358c3b('0x7'))(_0x358c3b('0x11')),chanSpy=[{'id':0x1,'name':'Listen&TalkOne','prefix':_0x358c3b('0xd'),'options':['b','w','E','S'],'description':_0x358c3b('0x2')},{'id':0x2,'name':_0x358c3b('0x1'),'prefix':_0x358c3b('0x9'),'options':['b','o','E','S'],'description':_0x358c3b('0xe')},{'id':0x3,'name':'Listen&TalkBoth','prefix':'spy3','options':['B','w','E','S'],'description':_0x358c3b('0xc')},{'id':0x4,'name':_0x358c3b('0x10'),'prefix':'spy4','options':['B','o','E','S'],'description':_0x358c3b('0xa')}];exports[_0x358c3b('0x0')]=function(){const _0x3ca0cc=_0x358c3b;return db[_0x3ca0cc('0x6')][_0x3ca0cc('0x3')](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3ca0cc('0x8')](function(){const _0x37c680=_0x3ca0cc;logger[_0x37c680('0xf')]('ChanSpy\x20have\x20been\x20created');})['catch'](function(){const _0x4d2c0a=_0x3ca0cc;logger[_0x4d2c0a('0xb')](_0x4d2c0a('0x5'));});}; \ No newline at end of file diff --git a/server/config/seedDB/companies.js b/server/config/seedDB/companies.js index 2ee09b3..14dbe60 100644 --- a/server/config/seedDB/companies.js +++ b/server/config/seedDB/companies.js @@ -1 +1 @@ -const a857_0x3b61=['10128','www.xcallymotion.com','CmCompany','Xenialab','Italy','create','srl','+390110960070','info@xcally.com','app','Turin','catch','../../mysqldb','../logger','Companies\x20have\x20been\x20created','Can\x27t\x20create\x20Companies','09668910012','info','error','Corso\x20Vittorio\x20Emanuele\x20II,\x20111'];(function(_0x4c3d03,_0x3b6108){const _0x16798a=function(_0x1c0093){while(--_0x1c0093){_0x4c3d03['push'](_0x4c3d03['shift']());}};_0x16798a(++_0x3b6108);}(a857_0x3b61,0xe5));const a857_0x1679=function(_0x4c3d03,_0x3b6108){_0x4c3d03=_0x4c3d03-0x0;let _0x16798a=a857_0x3b61[_0x4c3d03];return _0x16798a;};const _0x5335ac=a857_0x1679;'use strict';const db=require(_0x5335ac('0x3'))['db'],logger=require(_0x5335ac('0x4'))(_0x5335ac('0x0')),companies=[{'id':0x1,'name':_0x5335ac('0xe'),'type':_0x5335ac('0x11'),'vat':_0x5335ac('0x7'),'phone':'+3901119886500','fax':_0x5335ac('0x12'),'website':_0x5335ac('0xc'),'email':_0x5335ac('0x13'),'emailDomain':'xcally.com','street':_0x5335ac('0xa'),'postalCode':_0x5335ac('0xb'),'city':_0x5335ac('0x1'),'country':_0x5335ac('0xf'),'description':'company\x20auto\x20generated'}];exports[_0x5335ac('0x10')]=function(){const _0x55a341=_0x5335ac;return db[_0x55a341('0xd')]['bulkCreate'](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x3fdad2=_0x55a341;logger[_0x3fdad2('0x8')](_0x3fdad2('0x5'));})[_0x55a341('0x2')](function(){const _0xc6ebf5=_0x55a341;logger[_0xc6ebf5('0x9')](_0xc6ebf5('0x6'));});}; \ No newline at end of file +const a857_0x26e9=['../logger','xcally.com','info@xcally.com','www.xcallymotion.com','../../mysqldb','10128','info','Turin','bulkCreate','catch','+3901119886500','then','create','company\x20auto\x20generated','Companies\x20have\x20been\x20created','Corso\x20Vittorio\x20Emanuele\x20II,\x20111','error','09668910012'];(function(_0x8d13b5,_0x26e945){const _0x8207f=function(_0x39288c){while(--_0x39288c){_0x8d13b5['push'](_0x8d13b5['shift']());}};_0x8207f(++_0x26e945);}(a857_0x26e9,0xe1));const a857_0x8207=function(_0x8d13b5,_0x26e945){_0x8d13b5=_0x8d13b5-0x0;let _0x8207f=a857_0x26e9[_0x8d13b5];return _0x8207f;};const _0x2ab76c=a857_0x8207;'use strict';const db=require(_0x2ab76c('0xd'))['db'],logger=require(_0x2ab76c('0x9'))('app'),companies=[{'id':0x1,'name':'Xenialab','type':'srl','vat':_0x2ab76c('0x8'),'phone':_0x2ab76c('0x1'),'fax':'+390110960070','website':_0x2ab76c('0xc'),'email':_0x2ab76c('0xb'),'emailDomain':_0x2ab76c('0xa'),'street':_0x2ab76c('0x6'),'postalCode':_0x2ab76c('0xe'),'city':_0x2ab76c('0x10'),'country':'Italy','description':_0x2ab76c('0x4')}];exports[_0x2ab76c('0x3')]=function(){const _0x469653=_0x2ab76c;return db['CmCompany'][_0x469653('0x11')](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x469653('0x2')](function(){const _0x5a7e0b=_0x469653;logger[_0x5a7e0b('0xf')](_0x5a7e0b('0x5'));})[_0x469653('0x0')](function(){const _0x3d72d8=_0x469653;logger[_0x3d72d8('0x7')]('Can\x27t\x20create\x20Companies');});}; \ No newline at end of file diff --git a/server/config/seedDB/contacts.js b/server/config/seedDB/contacts.js index 71c86d3..1e636f4 100644 --- a/server/config/seedDB/contacts.js +++ b/server/config/seedDB/contacts.js @@ -1 +1 @@ -const a858_0x53a3=['catch','error','info','create','Andrea','Giuseppe','Mario','Can\x27t\x20create\x20Contacts','length','contact\x20auto\x20generated','./tags','123','../logger','../../mysqldb','giuseppe.verdi@xcally.com','CmContact','Bianco','random','Rossi','app','andrea.bianco@xcally.com','floor','bulkCreate','getNames'];(function(_0x2f2c1e,_0x53a3fe){const _0x5c8d4e=function(_0x3d61ec){while(--_0x3d61ec){_0x2f2c1e['push'](_0x2f2c1e['shift']());}};_0x5c8d4e(++_0x53a3fe);}(a858_0x53a3,0x1e8));const a858_0x5c8d=function(_0x2f2c1e,_0x53a3fe){_0x2f2c1e=_0x2f2c1e-0x0;let _0x5c8d4e=a858_0x53a3[_0x2f2c1e];return _0x5c8d4e;};const _0x2826ce=a858_0x5c8d;'use strict';const db=require(_0x2826ce('0x5'))['db'],logger=require(_0x2826ce('0x4'))(_0x2826ce('0xb')),tags=require(_0x2826ce('0x2'))[_0x2826ce('0xf')](),getRandomTag=function(){const _0x5eb2b2=_0x2826ce,_0x3d61ec=tags[_0x5eb2b2('0x0')]-0x1;return[tags[Math[_0x5eb2b2('0xd')](Math[_0x5eb2b2('0x9')]()*_0x3d61ec)+0x1]];},contacts=[{'id':0x1,'firstName':_0x2826ce('0x16'),'lastName':_0x2826ce('0xa'),'phone':_0x2826ce('0x3'),'email':'mario.rossi@xcally.com','ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x2826ce('0x1')},{'id':0x2,'firstName':_0x2826ce('0x15'),'lastName':'Verdi','phone':'456','email':_0x2826ce('0x6'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x2826ce('0x1')},{'id':0x3,'firstName':_0x2826ce('0x14'),'lastName':_0x2826ce('0x8'),'phone':'789','email':_0x2826ce('0xc'),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x2826ce('0x1')}];exports[_0x2826ce('0x13')]=function(){const _0xf1fb46=_0x2826ce;return db[_0xf1fb46('0x7')][_0xf1fb46('0xe')](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x2b5760=_0xf1fb46;logger[_0x2b5760('0x12')]('Contacts\x20have\x20been\x20created');})[_0xf1fb46('0x10')](function(){const _0xe186f4=_0xf1fb46;logger[_0xe186f4('0x11')](_0xe186f4('0x17'));});}; \ No newline at end of file +const a858_0x59cf=['giuseppe.verdi@xcally.com','../logger','create','Verdi','Andrea','Rossi','error','bulkCreate','Mario','CmContact','contact\x20auto\x20generated','Bianco','info','andrea.bianco@xcally.com','./tags','Can\x27t\x20create\x20Contacts','then','Contacts\x20have\x20been\x20created','random','../../mysqldb','app','123','getNames'];(function(_0x16f20c,_0x59cfc8){const _0x449576=function(_0x2b69d6){while(--_0x2b69d6){_0x16f20c['push'](_0x16f20c['shift']());}};_0x449576(++_0x59cfc8);}(a858_0x59cf,0xa4));const a858_0x4495=function(_0x16f20c,_0x59cfc8){_0x16f20c=_0x16f20c-0x0;let _0x449576=a858_0x59cf[_0x16f20c];return _0x449576;};const _0x173db8=a858_0x4495;'use strict';const db=require(_0x173db8('0x10'))['db'],logger=require(_0x173db8('0x15'))(_0x173db8('0x11')),tags=require(_0x173db8('0xb'))[_0x173db8('0x13')](),getRandomTag=function(){const _0x2802f0=_0x173db8,_0x2b69d6=tags['length']-0x1;return[tags[Math['floor'](Math[_0x2802f0('0xf')]()*_0x2b69d6)+0x1]];},contacts=[{'id':0x1,'firstName':_0x173db8('0x5'),'lastName':_0x173db8('0x2'),'phone':_0x173db8('0x12'),'email':'mario.rossi@xcally.com','ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x173db8('0x7')},{'id':0x2,'firstName':'Giuseppe','lastName':_0x173db8('0x0'),'phone':'456','email':_0x173db8('0x14'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'},{'id':0x3,'firstName':_0x173db8('0x1'),'lastName':_0x173db8('0x8'),'phone':'789','email':_0x173db8('0xa'),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'}];exports[_0x173db8('0x16')]=function(){const _0x5ccc42=_0x173db8;return db[_0x5ccc42('0x6')][_0x5ccc42('0x4')](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5ccc42('0xd')](function(){const _0x2fcbb=_0x5ccc42;logger[_0x2fcbb('0x9')](_0x2fcbb('0xe'));})['catch'](function(){const _0x4ded4f=_0x5ccc42;logger[_0x4ded4f('0x3')](_0x4ded4f('0xc'));});}; \ No newline at end of file diff --git a/server/config/seedDB/dispositions.js b/server/config/seedDB/dispositions.js index 71634ae..3154c05 100644 --- a/server/config/seedDB/dispositions.js +++ b/server/config/seedDB/dispositions.js @@ -1 +1 @@ -const a859_0x2859=['catch','../logger','Not\x20Interested','bulkCreate','Answer\x20Machine','Sold','Fax','app','../../mysqldb','Special'];(function(_0x1e4dd8,_0x28590f){const _0x2b2abc=function(_0x2bfc1c){while(--_0x2bfc1c){_0x1e4dd8['push'](_0x1e4dd8['shift']());}};_0x2b2abc(++_0x28590f);}(a859_0x2859,0x165));const a859_0x2b2a=function(_0x1e4dd8,_0x28590f){_0x1e4dd8=_0x1e4dd8-0x0;let _0x2b2abc=a859_0x2859[_0x1e4dd8];return _0x2b2abc;};const _0x2503b3=a859_0x2b2a;'use strict';const db=require(_0x2503b3('0x1'))['db'],logger=require(_0x2503b3('0x4'))(_0x2503b3('0x0')),dispositions=[{'name':_0x2503b3('0x9')},{'name':_0x2503b3('0x7')},{'name':'Interested'},{'name':_0x2503b3('0x5')},{'name':_0x2503b3('0x8')},{'name':_0x2503b3('0x2')}];exports['create']=function(){const _0x5ec6e5=_0x2503b3;return db['Disposition'][_0x5ec6e5('0x6')](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('Dispositions\x20have\x20been\x20created');})[_0x5ec6e5('0x3')](function(){logger['error']('Can\x27t\x20create\x20Companies');});}; \ No newline at end of file +const a859_0x5e5e=['Answer\x20Machine','../../mysqldb','bulkCreate','then','catch','info','error','Not\x20Interested','Interested','Dispositions\x20have\x20been\x20created','Sold','Disposition','Special','create'];(function(_0x49369c,_0x5e5ead){const _0x2696b7=function(_0x294cff){while(--_0x294cff){_0x49369c['push'](_0x49369c['shift']());}};_0x2696b7(++_0x5e5ead);}(a859_0x5e5e,0xd6));const a859_0x2696=function(_0x49369c,_0x5e5ead){_0x49369c=_0x49369c-0x0;let _0x2696b7=a859_0x5e5e[_0x49369c];return _0x2696b7;};const _0x1c528a=a859_0x2696;'use strict';const db=require(_0x1c528a('0xb'))['db'],logger=require('../logger')('app'),dispositions=[{'name':'Fax'},{'name':_0x1c528a('0xa')},{'name':_0x1c528a('0x4')},{'name':_0x1c528a('0x3')},{'name':_0x1c528a('0x6')},{'name':_0x1c528a('0x8')}];exports[_0x1c528a('0x9')]=function(){const _0x3d8dad=_0x1c528a;return db[_0x3d8dad('0x7')][_0x3d8dad('0xc')](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3d8dad('0xd')](function(){const _0x5a5d34=_0x3d8dad;logger[_0x5a5d34('0x1')](_0x5a5d34('0x5'));})[_0x3d8dad('0x0')](function(){const _0x16cdb7=_0x3d8dad;logger[_0x16cdb7('0x2')]('Can\x27t\x20create\x20Companies');});}; \ No newline at end of file diff --git a/server/config/seedDB/index.js b/server/config/seedDB/index.js index b417994..4472429 100644 --- a/server/config/seedDB/index.js +++ b/server/config/seedDB/index.js @@ -1 +1 @@ -const a860_0x5294=['./squareProjects','app','./users','./jscriptyProjects','./migrations','./userProfiles','./pauses','findOrCreate','./voiceQueues','./lists','createDefault','./tags','./analyticTreeReports','./voiceContexts','./chanspy','./voiceExtensions','create','./dispositions','createAlways','stringify','info','../logger','./contacts','./analyticReports','Default\x20seed','default','./companies','./intervals','createCustom','Settings\x20have\x20been\x20created','./squareOdbc','./mailSubstatuses','Setting','./teams','error'];(function(_0x424aa1,_0x529429){const _0x566c44=function(_0x5df52c){while(--_0x5df52c){_0x424aa1['push'](_0x424aa1['shift']());}};_0x566c44(++_0x529429);}(a860_0x5294,0x99));const a860_0x566c=function(_0x424aa1,_0x529429){_0x424aa1=_0x424aa1-0x0;let _0x566c44=a860_0x5294[_0x424aa1];return _0x566c44;};const _0x3da31a=a860_0x566c;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x3da31a('0x8'))(_0x3da31a('0x17'));async function defaultSeed(){const _0x57b1ce=_0x3da31a;try{const [,_0x5df52c]=await db[_0x57b1ce('0x13')][_0x57b1ce('0x1d')]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x5df52c?(logger[_0x57b1ce('0x7')](_0x57b1ce('0x10')),await require(_0x57b1ce('0x22'))[_0x57b1ce('0xf')](),await require(_0x57b1ce('0xa'))['createCustom'](),await require(_0x57b1ce('0x1a'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0xe'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x1b'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x18'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x14'))['create'](),await require('./trunks')[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x1e'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x1'))[_0x57b1ce('0x3')](),await require('./voiceMusicOnHold')['create'](),await require('./variables')[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x1c'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x21'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0xd'))[_0x57b1ce('0x3')](),await require('./sounds')[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x11'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x16'))['create'](),await require(_0x57b1ce('0x19'))['create'](),await require('./voiceExtensions')[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x12'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x4'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x1f'))[_0x57b1ce('0x3')](),await require(_0x57b1ce('0x9'))[_0x57b1ce('0x3')]()):(await require(_0x57b1ce('0x0'))['create'](),await require(_0x57b1ce('0x2'))[_0x57b1ce('0x5')](),await require('./mailAccounts')['create'](),await require('./analyticTreeReports')['createDefault'](),await require('./analyticReports')[_0x57b1ce('0x20')]());}catch(_0x28167c){logger[_0x57b1ce('0x15')](_0x57b1ce('0xb'),JSON[_0x57b1ce('0x6')](_0x28167c));}}exports[_0x3da31a('0xc')]=defaultSeed; \ No newline at end of file +const a860_0x53f9=['stringify','Settings\x20have\x20been\x20created','./voiceMusicOnHold','createDefault','./mailSubstatuses','./intervals','./contacts','./mailAccounts','Default\x20seed','findOrCreate','Setting','info','./squareProjects','./sounds','./chanspy','./migrations','error','./dispositions','./voiceExtensions','./tags','./analyticTreeReports','./analyticReports','../../mysqldb','./voiceQueues','./teams','create','./trunks','./variables','./lists','createCustom','default','./voiceContexts','./jscriptyProjects','./userProfiles'];(function(_0xae7d4d,_0x53f93c){const _0x340bc7=function(_0x362d6e){while(--_0x362d6e){_0xae7d4d['push'](_0xae7d4d['shift']());}};_0x340bc7(++_0x53f93c);}(a860_0x53f9,0x186));const a860_0x340b=function(_0xae7d4d,_0x53f93c){_0xae7d4d=_0xae7d4d-0x0;let _0x340bc7=a860_0x53f9[_0xae7d4d];return _0x340bc7;};const _0x58d581=a860_0x340b;'use strict';const db=require(_0x58d581('0x6'))['db'],logger=require('../logger')('app');async function defaultSeed(){const _0x4089f9=_0x58d581;try{const [,_0x362d6e]=await db[_0x4089f9('0x1c')][_0x4089f9('0x1b')]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x362d6e?(logger[_0x4089f9('0x1d')](_0x4089f9('0x13')),await require(_0x4089f9('0x4'))[_0x4089f9('0xd')](),await require(_0x4089f9('0x5'))['createCustom'](),await require(_0x4089f9('0x21'))[_0x4089f9('0x9')](),await require(_0x4089f9('0x17'))[_0x4089f9('0x9')](),await require(_0x4089f9('0x11'))[_0x4089f9('0x9')](),await require('./users')[_0x4089f9('0x9')](),await require(_0x4089f9('0x8'))[_0x4089f9('0x9')](),await require(_0x4089f9('0xa'))[_0x4089f9('0x9')](),await require(_0x4089f9('0x7'))['create'](),await require(_0x4089f9('0x20'))['create'](),await require(_0x4089f9('0x14'))['create'](),await require(_0x4089f9('0xb'))[_0x4089f9('0x9')](),await require('./pauses')[_0x4089f9('0x9')](),await require(_0x4089f9('0x3'))[_0x4089f9('0x9')](),await require('./companies')[_0x4089f9('0x9')](),await require(_0x4089f9('0x1f'))[_0x4089f9('0x9')](),await require('./squareOdbc')[_0x4089f9('0x9')](),await require(_0x4089f9('0x1e'))['create'](),await require(_0x4089f9('0x10'))[_0x4089f9('0x9')](),await require(_0x4089f9('0x2'))[_0x4089f9('0x9')](),await require(_0x4089f9('0x16'))[_0x4089f9('0x9')](),await require(_0x4089f9('0x1'))['create'](),await require(_0x4089f9('0xc'))['create'](),await require(_0x4089f9('0x18'))[_0x4089f9('0x9')]()):(await require(_0x4089f9('0xf'))[_0x4089f9('0x9')](),await require('./voiceExtensions')['createAlways'](),await require(_0x4089f9('0x19'))[_0x4089f9('0x9')](),await require('./analyticTreeReports')[_0x4089f9('0x15')](),await require('./analyticReports')[_0x4089f9('0x15')]());}catch(_0x2e88d6){logger[_0x4089f9('0x0')](_0x4089f9('0x1a'),JSON[_0x4089f9('0x12')](_0x2e88d6));}}exports[_0x58d581('0xe')]=defaultSeed; \ No newline at end of file diff --git a/server/config/seedDB/intervals.js b/server/config/seedDB/intervals.js index 999138b..93160d5 100644 --- a/server/config/seedDB/intervals.js +++ b/server/config/seedDB/intervals.js @@ -1 +1 @@ -const a861_0xa6c7=['14:00-18:00,mon-fri,*,*','info','name','bulkCreate','error','09:00-13:00,mon-fri,*,*','../logger','map','../../mysqldb','*,*,1,jan','filter','Holidays','flat','Halloween','*,*,14,feb','findAll','Christmas','working\x20time\x20auto\x20generated','*,*,31,oct','Intervals\x20have\x20been\x20created'];(function(_0x49b519,_0xa6c722){const _0x5b4bfe=function(_0x4c3c9b){while(--_0x4c3c9b){_0x49b519['push'](_0x49b519['shift']());}};_0x5b4bfe(++_0xa6c722);}(a861_0xa6c7,0xaa));const a861_0x5b4b=function(_0x49b519,_0xa6c722){_0x49b519=_0x49b519-0x0;let _0x5b4bfe=a861_0xa6c7[_0x49b519];return _0x5b4bfe;};const _0x46eafc=a861_0x5b4b;'use strict';const db=require(_0x46eafc('0x12'))['db'],logger=require(_0x46eafc('0x10'))('app'),subIntervals={'WorkingTime':[{'name':'Morning','interval':_0x46eafc('0xf')},{'name':'Afternoon','interval':_0x46eafc('0xa')}],'Holidays':[{'name':_0x46eafc('0x6'),'interval':'*,*,25,dec'},{'name':'NewYear','interval':_0x46eafc('0x13')},{'name':'Valentines','interval':_0x46eafc('0x4')},{'name':_0x46eafc('0x3'),'interval':_0x46eafc('0x8')}]},intervals=[{'id':0x1,'name':'WorkingTime','description':_0x46eafc('0x7')},{'id':0x2,'name':_0x46eafc('0x1'),'description':_0x46eafc('0x7')}];async function create(){const _0x4e3c56=_0x46eafc;try{await db['Interval'][_0x4e3c56('0xd')](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x4c3c9b=await db['Interval'][_0x4e3c56('0x5')](),_0x485b3f=_0x4c3c9b[_0x4e3c56('0x11')](_0x5c32c9=>{const _0x22b899=_0x4e3c56,_0x296b3b=subIntervals[_0x5c32c9[_0x22b899('0xc')]];return Array['isArray'](_0x296b3b)?_0x296b3b['map'](_0x3a6d77=>{const {description:_0x525a2c,id:_0x8620f4}=_0x5c32c9;return{'description':_0x525a2c,'IntervalId':_0x8620f4,..._0x3a6d77};}):null;})[_0x4e3c56('0x0')](_0x139ffa=>_0x139ffa!==null)[_0x4e3c56('0x2')]();await db['Interval'][_0x4e3c56('0xd')](_0x485b3f,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger[_0x4e3c56('0xb')](_0x4e3c56('0x9'));}catch(_0x31ad83){logger[_0x4e3c56('0xe')]('Can\x27t\x20create\x20Intevals',_0x31ad83);throw _0x31ad83;}}module['exports']={'create':create}; \ No newline at end of file +const a861_0x4dc4=['app','NewYear','Can\x27t\x20create\x20Intevals','09:00-13:00,mon-fri,*,*','error','Halloween','Intervals\x20have\x20been\x20created','bulkCreate','exports','../../mysqldb','*,*,25,dec','*,*,1,jan','isArray','14:00-18:00,mon-fri,*,*','working\x20time\x20auto\x20generated','../logger','Holidays','Interval','Valentines','Christmas','WorkingTime','Morning','info','findAll','flat','map'];(function(_0x1b6967,_0x4dc42c){const _0x5e9c1f=function(_0x1d5690){while(--_0x1d5690){_0x1b6967['push'](_0x1b6967['shift']());}};_0x5e9c1f(++_0x4dc42c);}(a861_0x4dc4,0xfb));const a861_0x5e9c=function(_0x1b6967,_0x4dc42c){_0x1b6967=_0x1b6967-0x0;let _0x5e9c1f=a861_0x4dc4[_0x1b6967];return _0x5e9c1f;};const _0x572fc8=a861_0x5e9c;'use strict';const db=require(_0x572fc8('0x12'))['db'],logger=require(_0x572fc8('0x18'))(_0x572fc8('0x9')),subIntervals={'WorkingTime':[{'name':_0x572fc8('0x4'),'interval':_0x572fc8('0xc')},{'name':'Afternoon','interval':_0x572fc8('0x16')}],'Holidays':[{'name':_0x572fc8('0x2'),'interval':_0x572fc8('0x13')},{'name':_0x572fc8('0xa'),'interval':_0x572fc8('0x14')},{'name':_0x572fc8('0x1'),'interval':'*,*,14,feb'},{'name':_0x572fc8('0xe'),'interval':'*,*,31,oct'}]},intervals=[{'id':0x1,'name':_0x572fc8('0x3'),'description':_0x572fc8('0x17')},{'id':0x2,'name':_0x572fc8('0x19'),'description':_0x572fc8('0x17')}];async function create(){const _0x4af325=_0x572fc8;try{await db[_0x4af325('0x0')][_0x4af325('0x10')](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x1d5690=await db[_0x4af325('0x0')][_0x4af325('0x6')](),_0x540b0e=_0x1d5690['map'](_0x4caa0d=>{const _0x3d6d11=_0x4af325,_0x3b9226=subIntervals[_0x4caa0d['name']];return Array[_0x3d6d11('0x15')](_0x3b9226)?_0x3b9226[_0x3d6d11('0x8')](_0x3faeea=>{const {description:_0x17f8c5,id:_0x2fcfe0}=_0x4caa0d;return{'description':_0x17f8c5,'IntervalId':_0x2fcfe0,..._0x3faeea};}):null;})['filter'](_0x226cb2=>_0x226cb2!==null)[_0x4af325('0x7')]();await db['Interval']['bulkCreate'](_0x540b0e,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger[_0x4af325('0x5')](_0x4af325('0xf'));}catch(_0x599356){logger[_0x4af325('0xd')](_0x4af325('0xb'),_0x599356);throw _0x599356;}}module[_0x572fc8('0x11')]={'create':create}; \ No newline at end of file diff --git a/server/config/seedDB/jscriptyProjects.js b/server/config/seedDB/jscriptyProjects.js index 2c39c35..d312270 100644 --- a/server/config/seedDB/jscriptyProjects.js +++ b/server/config/seedDB/jscriptyProjects.js @@ -1 +1 @@ -const a862_0x1fdd=['JscriptyProject','.json','then','join','app','customerSatisfation','bulkCreate','readFileSync','../../mysqldb','catch','Can\x27t\x20create\x20Jscripty\x20Projects','create','../logger','error'];(function(_0x2f99e1,_0x1fdd14){const _0x52ea08=function(_0x315564){while(--_0x315564){_0x2f99e1['push'](_0x2f99e1['shift']());}};_0x52ea08(++_0x1fdd14);}(a862_0x1fdd,0x111));const a862_0x52ea=function(_0x2f99e1,_0x1fdd14){_0x2f99e1=_0x2f99e1-0x0;let _0x52ea08=a862_0x1fdd[_0x2f99e1];return _0x52ea08;};const _0x1a6ab8=a862_0x52ea;'use strict';const fs=require('fs'),path=require('path'),db=require(_0x1a6ab8('0x1'))['db'],logger=require(_0x1a6ab8('0x5'))(_0x1a6ab8('0xb')),getJson=function(_0x315564){const _0x156217=_0x1a6ab8;return fs[_0x156217('0x0')](path[_0x156217('0xa')](__dirname,'jscripty',_0x315564+_0x156217('0x8')),{'encoding':'utf-8'});},jscriptyProjects=[{'id':0x1,'name':'CustomerSatisfaction','description':'Customer\x20Satisfaction\x20auto\x20generated','formData':getJson(_0x1a6ab8('0xc'))}];exports[_0x1a6ab8('0x4')]=function(){const _0x14efdc=_0x1a6ab8;return db[_0x14efdc('0x7')][_0x14efdc('0xd')](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x14efdc('0x9')](function(){logger['info']('Jscripty\x20Projects\x20have\x20been\x20created');})[_0x14efdc('0x2')](function(){const _0x322024=_0x14efdc;logger[_0x322024('0x6')](_0x322024('0x3'));});}; \ No newline at end of file +const a862_0x307f=['app','path','catch','../../mysqldb','join','../logger','info','.json','Customer\x20Satisfaction\x20auto\x20generated','then','utf-8','readFileSync','error','create','Can\x27t\x20create\x20Jscripty\x20Projects'];(function(_0x45fd5d,_0x307f0a){const _0x4238d8=function(_0x18c1d3){while(--_0x18c1d3){_0x45fd5d['push'](_0x45fd5d['shift']());}};_0x4238d8(++_0x307f0a);}(a862_0x307f,0xca));const a862_0x4238=function(_0x45fd5d,_0x307f0a){_0x45fd5d=_0x45fd5d-0x0;let _0x4238d8=a862_0x307f[_0x45fd5d];return _0x4238d8;};const _0x3fef1e=a862_0x4238;'use strict';const fs=require('fs'),path=require(_0x3fef1e('0x9')),db=require(_0x3fef1e('0xb'))['db'],logger=require(_0x3fef1e('0xd'))(_0x3fef1e('0x8')),getJson=function(_0x18c1d3){const _0x1f0b1b=_0x3fef1e;return fs[_0x1f0b1b('0x4')](path[_0x1f0b1b('0xc')](__dirname,'jscripty',_0x18c1d3+_0x1f0b1b('0x0')),{'encoding':_0x1f0b1b('0x3')});},jscriptyProjects=[{'id':0x1,'name':'CustomerSatisfaction','description':_0x3fef1e('0x1'),'formData':getJson('customerSatisfation')}];exports[_0x3fef1e('0x6')]=function(){const _0x1092f8=_0x3fef1e;return db['JscriptyProject']['bulkCreate'](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1092f8('0x2')](function(){const _0x42c45f=_0x1092f8;logger[_0x42c45f('0xe')]('Jscripty\x20Projects\x20have\x20been\x20created');})[_0x1092f8('0xa')](function(){const _0x1aaadf=_0x1092f8;logger[_0x1aaadf('0x5')](_0x1aaadf('0x7'));});}; \ No newline at end of file diff --git a/server/config/seedDB/lists.js b/server/config/seedDB/lists.js index c30c2df..b6ce784 100644 --- a/server/config/seedDB/lists.js +++ b/server/config/seedDB/lists.js @@ -1 +1 @@ -const a863_0x3ff4=['../../mysqldb','black\x20list\x20auto\x20generated','public\x20list\x20auto\x20generated','Black\x20List','bulkCreate','app','Public\x20List','create','then','../logger','Can\x27t\x20create\x20Lists','Callback\x20List'];(function(_0x457f17,_0x3ff426){const _0x5f18c0=function(_0x4401cf){while(--_0x4401cf){_0x457f17['push'](_0x457f17['shift']());}};_0x5f18c0(++_0x3ff426);}(a863_0x3ff4,0x1cd));const a863_0x5f18=function(_0x457f17,_0x3ff426){_0x457f17=_0x457f17-0x0;let _0x5f18c0=a863_0x3ff4[_0x457f17];return _0x5f18c0;};const _0x14181a=a863_0x5f18;'use strict';const db=require(_0x14181a('0x7'))['db'],logger=require(_0x14181a('0x4'))(_0x14181a('0x0')),lists=[{'id':0x1,'name':_0x14181a('0x1'),'description':_0x14181a('0x9')},{'id':0x2,'name':_0x14181a('0xa'),'description':_0x14181a('0x8')},{'id':0x3,'name':_0x14181a('0x6'),'description':'Callback\x20list\x20auto\x20generated'}];exports[_0x14181a('0x2')]=function(){const _0x542524=_0x14181a;return db['CmList'][_0x542524('0xb')](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x542524('0x3')](function(){logger['info']('Lists\x20have\x20been\x20created');})['catch'](function(){const _0xe46d01=_0x542524;logger['error'](_0xe46d01('0x5'));});}; \ No newline at end of file +const a863_0x35a5=['bulkCreate','Lists\x20have\x20been\x20created','Public\x20List','../logger','then','error','app','Callback\x20list\x20auto\x20generated','CmList','info','Callback\x20List'];(function(_0x26aa9d,_0x35a59d){const _0x3a7111=function(_0x5e1de6){while(--_0x5e1de6){_0x26aa9d['push'](_0x26aa9d['shift']());}};_0x3a7111(++_0x35a59d);}(a863_0x35a5,0x1ee));const a863_0x3a71=function(_0x26aa9d,_0x35a59d){_0x26aa9d=_0x26aa9d-0x0;let _0x3a7111=a863_0x35a5[_0x26aa9d];return _0x3a7111;};const _0x56cd38=a863_0x3a71;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x56cd38('0x4'))(_0x56cd38('0x7')),lists=[{'id':0x1,'name':_0x56cd38('0x3'),'description':'public\x20list\x20auto\x20generated'},{'id':0x2,'name':'Black\x20List','description':'black\x20list\x20auto\x20generated'},{'id':0x3,'name':_0x56cd38('0x0'),'description':_0x56cd38('0x8')}];exports['create']=function(){const _0x23552d=_0x56cd38;return db[_0x23552d('0x9')][_0x23552d('0x1')](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x23552d('0x5')](function(){const _0x3536ad=_0x23552d;logger[_0x3536ad('0xa')](_0x3536ad('0x2'));})['catch'](function(){const _0x2a448f=_0x23552d;logger[_0x2a448f('0x6')]('Can\x27t\x20create\x20Lists');});}; \ No newline at end of file diff --git a/server/config/seedDB/mailAccounts.js b/server/config/seedDB/mailAccounts.js index 5649614..c09bc9a 100644 --- a/server/config/seedDB/mailAccounts.js +++ b/server/config/seedDB/mailAccounts.js @@ -1 +1 @@ -const a864_0x40d9=['password','127.0.0.1','error','../logger','username','MailAccount','MailServerOut','SERV','service\x20motion\x20account\x20auto\x20generated','info','Service\x20Mail','MailServerIn','create','then','service\x20motion\x20imap\x20auto\x20generated','service\x20motion\x20smtp\x20auto\x20generated','email@xcally.com','Can\x27t\x20create\x20Mail\x20Accounts'];(function(_0x2fe41d,_0x40d915){const _0x426b7e=function(_0x2c2294){while(--_0x2c2294){_0x2fe41d['push'](_0x2fe41d['shift']());}};_0x426b7e(++_0x40d915);}(a864_0x40d9,0xf3));const a864_0x426b=function(_0x2fe41d,_0x40d915){_0x2fe41d=_0x2fe41d-0x0;let _0x426b7e=a864_0x40d9[_0x2fe41d];return _0x426b7e;};const _0x1fbb8b=a864_0x426b;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x1fbb8b('0xc'))('app');exports[_0x1fbb8b('0x3')]=function(){const _0x39b317=_0x1fbb8b;let _0x2c2294;return db[_0x39b317('0xe')]['findOrCreate']({'where':{'service':!![]},'defaults':{'name':_0x39b317('0x1'),'key':_0x39b317('0x10'),'email':_0x39b317('0x7'),'service':!![],'description':_0x39b317('0x11'),'active':![],'ListId':0x1}})[_0x39b317('0x4')](function([_0x201d08,_0x11d882]){const _0x5f233f=_0x39b317;return _0x11d882&&logger[_0x5f233f('0x0')](_0x5f233f('0x11')),_0x2c2294=_0x201d08,db[_0x5f233f('0xf')]['findOrCreate']({'where':{'MailAccountId':_0x2c2294['id']},'defaults':{'host':'127.0.0.1','user':_0x5f233f('0xd'),'pass':_0x5f233f('0x9'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x2c2294['id'],'description':_0x5f233f('0x6')}});})[_0x39b317('0x4')](function([,_0x2abc40]){const _0x26cb10=_0x39b317;return _0x2abc40&&logger['info'](_0x26cb10('0x6')),db[_0x26cb10('0x2')]['findOrCreate']({'where':{'MailAccountId':_0x2c2294['id']},'defaults':{'host':_0x26cb10('0xa'),'user':_0x26cb10('0xd'),'password':_0x26cb10('0x9'),'port':0x3e1,'MailAccountId':_0x2c2294['id'],'description':_0x26cb10('0x5')}});})[_0x39b317('0x4')](function([,_0x1a907e]){const _0x555dc3=_0x39b317;_0x1a907e&&logger[_0x555dc3('0x0')](_0x555dc3('0x5'));})['catch'](function(){const _0x173484=_0x39b317;logger[_0x173484('0xb')](_0x173484('0x8'));});}; \ No newline at end of file +const a864_0x77b8=['findOrCreate','Service\x20Mail','Can\x27t\x20create\x20Mail\x20Accounts','then','info','create','email@xcally.com','service\x20motion\x20smtp\x20auto\x20generated','catch','service\x20motion\x20imap\x20auto\x20generated','127.0.0.1','password','error','SERV','username','MailAccount','service\x20motion\x20account\x20auto\x20generated'];(function(_0x78d652,_0x77b8aa){const _0x42ad7f=function(_0xb4b6d7){while(--_0xb4b6d7){_0x78d652['push'](_0x78d652['shift']());}};_0x42ad7f(++_0x77b8aa);}(a864_0x77b8,0x1e0));const a864_0x42ad=function(_0x78d652,_0x77b8aa){_0x78d652=_0x78d652-0x0;let _0x42ad7f=a864_0x77b8[_0x78d652];return _0x42ad7f;};const _0x39d3b4=a864_0x42ad;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')('app');exports[_0x39d3b4('0x1')]=function(){const _0x1446d4=_0x39d3b4;let _0xb4b6d7;return db[_0x1446d4('0xb')][_0x1446d4('0xd')]({'where':{'service':!![]},'defaults':{'name':_0x1446d4('0xe'),'key':_0x1446d4('0x9'),'email':_0x1446d4('0x2'),'service':!![],'description':_0x1446d4('0xc'),'active':![],'ListId':0x1}})[_0x1446d4('0x10')](function([_0x4f6d18,_0x6c7bc2]){const _0xf60f8d=_0x1446d4;return _0x6c7bc2&&logger['info'](_0xf60f8d('0xc')),_0xb4b6d7=_0x4f6d18,db['MailServerOut'][_0xf60f8d('0xd')]({'where':{'MailAccountId':_0xb4b6d7['id']},'defaults':{'host':_0xf60f8d('0x6'),'user':'username','pass':_0xf60f8d('0x7'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0xb4b6d7['id'],'description':_0xf60f8d('0x3')}});})[_0x1446d4('0x10')](function([,_0x10fb6d]){const _0x471d37=_0x1446d4;return _0x10fb6d&&logger[_0x471d37('0x0')](_0x471d37('0x3')),db['MailServerIn']['findOrCreate']({'where':{'MailAccountId':_0xb4b6d7['id']},'defaults':{'host':'127.0.0.1','user':_0x471d37('0xa'),'password':_0x471d37('0x7'),'port':0x3e1,'MailAccountId':_0xb4b6d7['id'],'description':'service\x20motion\x20imap\x20auto\x20generated'}});})[_0x1446d4('0x10')](function([,_0x46f991]){const _0x14dcaf=_0x1446d4;_0x46f991&&logger['info'](_0x14dcaf('0x5'));})[_0x1446d4('0x4')](function(){const _0x2cb863=_0x1446d4;logger[_0x2cb863('0x8')](_0x2cb863('0xf'));});}; \ No newline at end of file diff --git a/server/config/seedDB/mailSubstatuses.js b/server/config/seedDB/mailSubstatuses.js index 2c530d4..bd08d8f 100644 --- a/server/config/seedDB/mailSubstatuses.js +++ b/server/config/seedDB/mailSubstatuses.js @@ -1 +1 @@ -const a865_0x4c8c=['catch','info','../../mysqldb','MailSubstatus','create','then','Can\x27t\x20create\x20MailSubstatuses','../logger','pending'];(function(_0x6526ad,_0x4c8cea){const _0x12c59b=function(_0xcc12a0){while(--_0xcc12a0){_0x6526ad['push'](_0x6526ad['shift']());}};_0x12c59b(++_0x4c8cea);}(a865_0x4c8c,0x12b));const a865_0x12c5=function(_0x6526ad,_0x4c8cea){_0x6526ad=_0x6526ad-0x0;let _0x12c59b=a865_0x4c8c[_0x6526ad];return _0x12c59b;};const _0x2d9525=a865_0x12c5;'use strict';const db=require(_0x2d9525('0x0'))['db'],logger=require(_0x2d9525('0x5'))('app'),items=[{'id':0x1,'name':_0x2d9525('0x6'),'description':'Pending\x20status\x20for\x20mail\x20interaction'}];exports[_0x2d9525('0x2')]=function(){const _0x3f8308=_0x2d9525;return db[_0x3f8308('0x1')]['bulkCreate'](items,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3f8308('0x3')](function(){const _0x5d027c=_0x3f8308;logger[_0x5d027c('0x8')]('Substatues\x20have\x20been\x20created');})[_0x3f8308('0x7')](function(){const _0x3a6937=_0x3f8308;logger['error'](_0x3a6937('0x4'));});}; \ No newline at end of file +const a865_0x1952=['../logger','create','info','Pending\x20status\x20for\x20mail\x20interaction','catch','MailSubstatus','error','then','Can\x27t\x20create\x20MailSubstatuses','bulkCreate','app'];(function(_0x11bd52,_0x1952a7){const _0x21272f=function(_0x4ce962){while(--_0x4ce962){_0x11bd52['push'](_0x11bd52['shift']());}};_0x21272f(++_0x1952a7);}(a865_0x1952,0x71));const a865_0x2127=function(_0x11bd52,_0x1952a7){_0x11bd52=_0x11bd52-0x0;let _0x21272f=a865_0x1952[_0x11bd52];return _0x21272f;};const _0x198a49=a865_0x2127;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x198a49('0x8'))(_0x198a49('0x7')),items=[{'id':0x1,'name':'pending','description':_0x198a49('0x0')}];exports[_0x198a49('0x9')]=function(){const _0x1a3e09=_0x198a49;return db[_0x1a3e09('0x2')][_0x1a3e09('0x6')](items,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1a3e09('0x4')](function(){const _0x168f8f=_0x1a3e09;logger[_0x168f8f('0xa')]('Substatues\x20have\x20been\x20created');})[_0x1a3e09('0x1')](function(){const _0x55e10c=_0x1a3e09;logger[_0x55e10c('0x3')](_0x55e10c('0x5'));});}; \ No newline at end of file diff --git a/server/config/seedDB/migrations.js b/server/config/seedDB/migrations.js index b96c475..48eabe5 100644 --- a/server/config/seedDB/migrations.js +++ b/server/config/seedDB/migrations.js @@ -1 +1 @@ -const a866_0x1274=['Migration','app','then','create','../logger','Version\x20have\x20been\x20created','catch','.js','error','../../mysqldb','../../../package.json','Can\x27t\x20create\x20Version'];(function(_0x19a311,_0x1274e2){const _0x325d44=function(_0x293d2c){while(--_0x293d2c){_0x19a311['push'](_0x19a311['shift']());}};_0x325d44(++_0x1274e2);}(a866_0x1274,0x82));const a866_0x325d=function(_0x19a311,_0x1274e2){_0x19a311=_0x19a311-0x0;let _0x325d44=a866_0x1274[_0x19a311];return _0x325d44;};const _0x19b399=a866_0x325d;'use strict';const db=require(_0x19b399('0xb'))['db'],logger=require(_0x19b399('0x6'))(_0x19b399('0x3')),{version:packageVersion}=require(_0x19b399('0x0'));exports[_0x19b399('0x5')]=function(){const _0x4c8e90=_0x19b399;return db[_0x4c8e90('0x2')][_0x4c8e90('0x5')]({'version':packageVersion+_0x4c8e90('0x9')})[_0x4c8e90('0x4')](function(){const _0x1e8670=_0x4c8e90;logger['info'](_0x1e8670('0x7'));})[_0x4c8e90('0x8')](function(){const _0x36f5ff=_0x4c8e90;logger[_0x36f5ff('0xa')](_0x36f5ff('0x1'));});}; \ No newline at end of file +const a866_0x2f08=['../../../package.json','Migration','../../mysqldb','info','create','app','Version\x20have\x20been\x20created','then','.js','../logger'];(function(_0x120e98,_0x2f08c5){const _0x54a91d=function(_0x38ffbc){while(--_0x38ffbc){_0x120e98['push'](_0x120e98['shift']());}};_0x54a91d(++_0x2f08c5);}(a866_0x2f08,0xc2));const a866_0x54a9=function(_0x120e98,_0x2f08c5){_0x120e98=_0x120e98-0x0;let _0x54a91d=a866_0x2f08[_0x120e98];return _0x54a91d;};const _0x2ea07f=a866_0x54a9;'use strict';const db=require(_0x2ea07f('0x8'))['db'],logger=require(_0x2ea07f('0x5'))(_0x2ea07f('0x1')),{version:packageVersion}=require(_0x2ea07f('0x6'));exports[_0x2ea07f('0x0')]=function(){const _0x259de8=_0x2ea07f;return db[_0x259de8('0x7')][_0x259de8('0x0')]({'version':packageVersion+_0x259de8('0x4')})[_0x259de8('0x3')](function(){const _0x178ba6=_0x259de8;logger[_0x178ba6('0x9')](_0x178ba6('0x2'));})['catch'](function(){logger['error']('Can\x27t\x20create\x20Version');});}; \ No newline at end of file diff --git a/server/config/seedDB/pauses.js b/server/config/seedDB/pauses.js index 469a83d..99c5c5b 100644 --- a/server/config/seedDB/pauses.js +++ b/server/config/seedDB/pauses.js @@ -1 +1 @@ -const a867_0x464c=['Can\x27t\x20create\x20Pauses','create','catch','../../mysqldb','BACKOFFICE','../logger','aftercall\x20pause\x20auto\x20generated','AFTERCALL','Pauses\x20have\x20been\x20created','then','Pause'];(function(_0x518a30,_0x464cdd){const _0x51e12a=function(_0xcc16ea){while(--_0xcc16ea){_0x518a30['push'](_0x518a30['shift']());}};_0x51e12a(++_0x464cdd);}(a867_0x464c,0x1b5));const a867_0x51e1=function(_0x518a30,_0x464cdd){_0x518a30=_0x518a30-0x0;let _0x51e12a=a867_0x464c[_0x518a30];return _0x51e12a;};const _0x1f23fc=a867_0x51e1;'use strict';const db=require(_0x1f23fc('0x6'))['db'],logger=require(_0x1f23fc('0x8'))('app'),pauses=[{'id':0x1,'name':_0x1f23fc('0x7'),'description':'backoffice\x20pause\x20auto\x20generated'},{'id':0x2,'name':_0x1f23fc('0xa'),'description':_0x1f23fc('0x9')}];exports[_0x1f23fc('0x4')]=function(){const _0x194d68=_0x1f23fc;return db[_0x194d68('0x2')]['bulkCreate'](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x194d68('0x1')](function(){const _0x918eb4=_0x194d68;logger['info'](_0x918eb4('0x0'));})[_0x194d68('0x5')](function(){const _0x35d589=_0x194d68;logger['error'](_0x35d589('0x3'));});}; \ No newline at end of file +const a867_0x48b3=['create','../logger','then','Can\x27t\x20create\x20Pauses','bulkCreate','app','catch','BACKOFFICE','backoffice\x20pause\x20auto\x20generated','error','aftercall\x20pause\x20auto\x20generated','info','Pause','AFTERCALL'];(function(_0x298d77,_0x48b3ec){const _0x2cd198=function(_0x5de68f){while(--_0x5de68f){_0x298d77['push'](_0x298d77['shift']());}};_0x2cd198(++_0x48b3ec);}(a867_0x48b3,0x11a));const a867_0x2cd1=function(_0x298d77,_0x48b3ec){_0x298d77=_0x298d77-0x0;let _0x2cd198=a867_0x48b3[_0x298d77];return _0x2cd198;};const _0x31af78=a867_0x2cd1;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x31af78('0xd'))(_0x31af78('0x3')),pauses=[{'id':0x1,'name':_0x31af78('0x5'),'description':_0x31af78('0x6')},{'id':0x2,'name':_0x31af78('0xb'),'description':_0x31af78('0x8')}];exports[_0x31af78('0xc')]=function(){const _0x3ba45e=_0x31af78;return db[_0x3ba45e('0xa')][_0x3ba45e('0x2')](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3ba45e('0x0')](function(){const _0x50dab8=_0x3ba45e;logger[_0x50dab8('0x9')]('Pauses\x20have\x20been\x20created');})[_0x3ba45e('0x4')](function(){const _0xfef7ad=_0x3ba45e;logger[_0xfef7ad('0x7')](_0xfef7ad('0x1'));});}; \ No newline at end of file diff --git a/server/config/seedDB/report/default.js b/server/config/seedDB/report/default.js index ea8b8b9..03833de 100644 --- a/server/config/seedDB/report/default.js +++ b/server/config/seedDB/report/default.js @@ -1 +1 @@ -var a868_0x4f22=['Openchannel\x20Account\x20Summary','_chat','WhatsApp\x20Account\x20Summary','Fax\x20By\x20Agent','Sms\x20interaction\x20times\x20by\x20account','_voice_recordings','CallySquare\x20Summary','_fax','cm_hopper_final','Sms\x20By\x20Agent','_whatsapp','Unmanaged\x20calls\x20summary','Answer\x20Time\x20by\x20Queue','voice_recordings','Agents\x20status\x20details','Chat\x20interactions\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22queue\x22,\x22value\x22:\x22\x22,\x22required\x22:false},{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Fax\x20interaction\x20times\x20by\x20account','chat_interactions','Details','Outbound','Fax\x20By\x20Queue','report_queue','_voice_queues_unanswered','_bull_ivr_campaigns','Queues\x20answer\x20time\x20performance','Manual\x20outbound\x20calls\x20detailed\x20report','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','sms_interactions','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22whatsapp_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22whatsapp_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','Fax\x20interactions\x20by\x20queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerexit\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','mail_interactions','Sms\x20By\x20Queue','Sentiment\x20Summary','Email\x20interactions\x20by\x20date','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Email\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22fax_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22fax_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Chat\x20By\x20Agent','Website\x20Times','Website\x20Summary','Abandon\x20Time\x20by\x20Queue','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','Unanswered\x20calls\x20summary\x20by\x20queue','_openchannel','report_square_details','Records\x20rating\x20by\x20agent','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','openchannel_interactions','Sms\x20By\x20Date','Calls\x20by\x20Type','Openchannel\x20interactions\x20by\x20queue','Fax\x20By\x20Date','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20by\x20Day','fax_interactions','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Pause\x20Time','Summary\x20of\x20the\x20calls\x20disconnection\x20causes','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27LOGIN\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}','Sms\x20interactions\x20by\x20agent','[{\x22parentKey\x22:\x22WhatsappQueueId\x22,\x22foreignTable\x22:\x22whatsapp_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22sms_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22sms_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','Rating\x20by\x20Agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','Calls\x20by\x20Agent','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_agents','Rating\x20by\x20Queue','Calls\x20distribution\x20by\x20hour','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27outbound\x27\x22,\x22required\x22:true}]}}','Agent\x27s\x20pause\x20time','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20detail\x20(cdr)','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','_voice_callysquare','report_mail_queue','Fax\x20interactions\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x22},{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x27abandoned\x27\x22},{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22}]}}]}}]}}','Email\x20interactions\x20by\x20agent','_mail','Agent\x20Disposition\x20Rate','Outbound\x20Calls\x20Disposition','Chat\x20interaction\x20times\x20by\x20website','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Records\x20rating\x20by\x20queue','Agent\x20Calls','Openchannel\x20By\x20Agent','_bull_queue_campaigns','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27PAUSE\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}','_voice_calls','Sentiment\x20by\x20Agent','Outbound\x20Calls\x20by\x20Date','Calls\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','Sms\x20Account\x20Times','Sms\x20interactions\x20by\x20date','Email\x20interactions\x20by\x20queue','Sms\x20interactions\x20by\x20queue','Openchannel\x20By\x20Queue','report_agent','Pause\x20Details','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20by\x20Weekday','_voice_queues_distribution','whatsapp_interactions','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20distribution\x20by\x20queue','Calls\x20by\x20Date','Unmanaged\x20calls','Agent\x27s\x20login\x20time','Email\x20Account\x20Times','Answer\x20Time\x20by\x20Hour','report_call','report_square','Email\x20By\x20Agent','exports','Simple\x20queue\x20calls\x20overview','Email\x20interaction\x20times\x20by\x20account','Agent\x27s\x20activities\x20report','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Unanswered\x20by\x20Queue','WhatsApp\x20interactions\x20by\x20date','Summary\x20report\x20of\x20the\x20calls\x20type','_voice_queues','Fax\x20Account\x20Times','report_member','Sms\x20Account\x20Summary','Login\x20Time','Fax\x20Account\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Openchannel\x20interaction\x20times\x20by\x20account','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_queues_answered','Chat\x20interactions\x20by\x20queue','Abandon\x20time\x20performance\x20by\x20queue','Queue\x20calls\x20summary\x20by\x20date','Email\x20By\x20Date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22disposition\x22,\x22value\x22:\x22\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}','cm_hopper_history','Email\x20Account\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Summary','_sms','WhatsApp\x20interactions\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','Activities\x20Summary','Campaign\x20Calls','Agent\x27s\x20status\x20detail','Answer\x20time\x20\x20by\x20hour','Detailed\x20queues\x20report','Fax\x20interactions\x20by\x20account','Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20by\x20Hour','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','report_fax_queue'];(function(_0x5c7ec6,_0x4f228f){var _0x153950=function(_0x1390fe){while(--_0x1390fe){_0x5c7ec6['push'](_0x5c7ec6['shift']());}};_0x153950(++_0x4f228f);}(a868_0x4f22,0x68));var a868_0x1539=function(_0x5c7ec6,_0x4f228f){_0x5c7ec6=_0x5c7ec6-0x0;var _0x153950=a868_0x4f22[_0x5c7ec6];return _0x153950;};var _0x12a910=a868_0x1539;'use strict';module[_0x12a910('0x12')]=function(_0x1390fe){var _0x2be331=_0x12a910;return[{'id':0x1,'name':_0x2be331('0x52'),'description':_0x2be331('0x37'),'parent':_0x1390fe+'_voice_queues','table':_0x2be331('0x55'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x2,'name':'Calls\x20Result','description':_0x2be331('0x13'),'parent':_0x1390fe+_0x2be331('0x1b'),'table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x3,'name':_0x2be331('0x52'),'description':'Detailed\x20report\x20about\x20answered\x20queue\x20calls','parent':_0x1390fe+_0x2be331('0x26'),'table':_0x2be331('0x2'),'conditions':_0x2be331('0x2e')},{'id':0x4,'name':_0x2be331('0x86'),'description':_0x2be331('0x61'),'parent':_0x1390fe+_0x2be331('0x26'),'table':_0x2be331('0x2'),'conditions':_0x2be331('0x2e')},{'id':0x5,'name':'Calls\x20by\x20Queue','description':_0x2be331('0x74'),'parent':_0x1390fe+_0x2be331('0x26'),'table':'report_agent','conditions':_0x2be331('0x2e')},{'id':0x6,'name':_0x2be331('0x4b'),'description':_0x2be331('0x58'),'parent':_0x1390fe+'_voice_queues_answered','table':_0x2be331('0x2'),'conditions':_0x2be331('0x2e')},{'id':0x7,'name':'Disconnection\x20Cause','description':_0x2be331('0x7f'),'parent':_0x1390fe+_0x2be331('0x26'),'table':_0x2be331('0x2'),'conditions':_0x2be331('0x2e')},{'id':0x8,'name':_0x2be331('0xe'),'description':_0x2be331('0x36'),'parent':_0x1390fe+_0x2be331('0x26'),'table':_0x2be331('0x2'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0x9,'name':_0x2be331('0x52'),'description':_0x2be331('0x16'),'parent':_0x1390fe+_0x2be331('0x56'),'table':_0x2be331('0x55'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}'},{'id':0xa,'name':_0x2be331('0x18'),'description':_0x2be331('0x70'),'parent':_0x1390fe+_0x2be331('0x56'),'table':'report_queue','conditions':_0x2be331('0x99')},{'id':0xb,'name':_0x2be331('0xb'),'description':_0x2be331('0x4a'),'parent':_0x1390fe+_0x2be331('0x56'),'table':_0x2be331('0x55'),'conditions':_0x2be331('0x5f')},{'id':0xc,'name':_0x2be331('0x6d'),'description':_0x2be331('0x28'),'parent':_0x1390fe+_0x2be331('0x56'),'table':_0x2be331('0x55'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerabandon\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0xd,'name':_0x2be331('0xa'),'description':_0x2be331('0x29'),'parent':_0x1390fe+_0x2be331('0x6'),'table':_0x2be331('0x55'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0xe,'name':_0x2be331('0x3c'),'description':_0x2be331('0x8a'),'parent':_0x1390fe+_0x2be331('0x6'),'table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0xf,'name':_0x2be331('0x7b'),'description':_0x2be331('0x3d'),'parent':_0x1390fe+_0x2be331('0x6'),'table':'report_queue','conditions':_0x2be331('0x32')},{'id':0x10,'name':_0x2be331('0x5'),'description':_0x2be331('0x39'),'parent':_0x1390fe+'_voice_queues_distribution','table':_0x2be331('0x55'),'conditions':_0x2be331('0x32')},{'id':0x11,'name':_0x2be331('0x2f'),'description':_0x2be331('0x9'),'parent':_0x1390fe+'_voice_queues','table':_0x2be331('0x55'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x12,'name':'Details','description':_0x2be331('0x8e'),'parent':_0x1390fe+_0x2be331('0x9f'),'table':'report_call','conditions':_0x2be331('0x32')},{'id':0x13,'name':_0x2be331('0x53'),'description':_0x2be331('0x59'),'parent':_0x1390fe+'_voice_calls','table':'report_call','conditions':_0x2be331('0x8b')},{'id':0x14,'name':_0x2be331('0x77'),'description':_0x2be331('0x1a'),'parent':_0x1390fe+_0x2be331('0x9f'),'table':'report_call','conditions':_0x2be331('0x32')},{'id':0x15,'name':_0x2be331('0x97'),'description':'Outbound\x20calls\x20grouped\x20by\x20disposition','parent':_0x1390fe+_0x2be331('0x9f'),'table':_0x2be331('0xf'),'conditions':_0x2be331('0x8b')},{'id':0x16,'name':'Outbound\x20Calls\x20by\x20Agent','description':_0x2be331('0x6f'),'parent':_0x1390fe+_0x2be331('0x9f'),'table':_0x2be331('0xf'),'conditions':_0x2be331('0x8b')},{'id':0x17,'name':_0x2be331('0xa1'),'description':_0x2be331('0x3a'),'parent':_0x1390fe+_0x2be331('0x9f'),'table':'report_call','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27outbound\x27\x22,\x22required\x22:true}]}}'},{'id':0x18,'name':_0x2be331('0x1f'),'description':_0x2be331('0xc'),'parent':_0x1390fe+'_agents','table':_0x2be331('0x1d'),'conditions':_0x2be331('0x80')},{'id':0x19,'name':_0x2be331('0x33'),'description':_0x2be331('0x15'),'parent':_0x1390fe+_0x2be331('0x88'),'table':'report_member','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}'},{'id':0x1a,'name':_0x2be331('0x3'),'description':_0x2be331('0x4d'),'parent':_0x1390fe+_0x2be331('0x88'),'table':_0x2be331('0x1d'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27PAUSE\x27\x22,\x22required\x22:true}]}}'},{'id':0x1b,'name':_0x2be331('0x52'),'description':_0x2be331('0x35'),'parent':_0x1390fe+'_voice_agents','table':_0x2be331('0x1d'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}'},{'id':0x1c,'name':_0x2be331('0x7e'),'description':_0x2be331('0x8c'),'parent':_0x1390fe+_0x2be331('0x88'),'table':_0x2be331('0x1d'),'conditions':_0x2be331('0x9e')},{'id':0x1d,'name':'Summary','description':_0x2be331('0x45'),'parent':_0x1390fe+_0x2be331('0x90'),'table':_0x2be331('0x10'),'conditions':_0x2be331('0x32')},{'id':0x1e,'name':'Blocks','description':'CallySquare\x20Blocks\x20Detail','parent':_0x1390fe+_0x2be331('0x90'),'table':_0x2be331('0x72'),'conditions':_0x2be331('0x32')},{'id':0x1f,'name':_0x2be331('0x84'),'description':_0x2be331('0x73'),'parent':_0x1390fe+_0x2be331('0x44'),'table':_0x2be331('0x4c'),'conditions':_0x2be331('0x5a')},{'id':0x20,'name':_0x2be331('0x89'),'description':_0x2be331('0x9a'),'parent':_0x1390fe+'_voice_recordings','table':_0x2be331('0x4c'),'conditions':_0x2be331('0x4f')},{'id':0x21,'name':_0x2be331('0x52'),'description':'','parent':_0x1390fe+'_bull_queue_campaigns','table':_0x2be331('0x47'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}'},{'id':0x22,'name':_0x2be331('0xa2'),'description':'','parent':_0x1390fe+_0x2be331('0x9d'),'table':'cm_hopper_history','conditions':_0x2be331('0x85')},{'id':0x23,'name':_0x2be331('0x34'),'description':'','parent':_0x1390fe+'_bull_queue_campaigns','table':_0x2be331('0x47'),'conditions':_0x2be331('0x85')},{'id':0x24,'name':'List\x20Penetration\x20Rate','description':'','parent':_0x1390fe+_0x2be331('0x9d'),'table':_0x2be331('0x47'),'conditions':_0x2be331('0x85')},{'id':0x25,'name':_0x2be331('0x9b'),'description':'','parent':_0x1390fe+_0x2be331('0x9d'),'table':_0x2be331('0x47'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}'},{'id':0x26,'name':'Disposition\x20Rate','description':'','parent':_0x1390fe+_0x2be331('0x9d'),'table':'cm_hopper_final','conditions':_0x2be331('0x2b')},{'id':0x27,'name':_0x2be331('0x96'),'description':'','parent':_0x1390fe+_0x2be331('0x9d'),'table':_0x2be331('0x47'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22disposition\x22,\x22value\x22:\x22\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}'},{'id':0x28,'name':'Details','description':'','parent':_0x1390fe+_0x2be331('0x57'),'table':_0x2be331('0x47'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}'},{'id':0x29,'name':_0x2be331('0xa2'),'description':'','parent':_0x1390fe+_0x2be331('0x57'),'table':_0x2be331('0x2c'),'conditions':_0x2be331('0x8f')},{'id':0x2a,'name':_0x2be331('0x34'),'description':'','parent':_0x1390fe+_0x2be331('0x57'),'table':_0x2be331('0x47'),'conditions':_0x2be331('0x8f')},{'id':0x2b,'name':'List\x20Penetration\x20Rate','description':'','parent':_0x1390fe+_0x2be331('0x57'),'table':_0x2be331('0x47'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}'},{'id':0x2c,'name':_0x2be331('0x6c'),'description':'Chat\x20interactions\x20by\x20website','parent':_0x1390fe+'_chat','table':_0x2be331('0x51'),'joins':'[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x2d,'name':_0x2be331('0x6b'),'description':_0x2be331('0x98'),'parent':_0x1390fe+_0x2be331('0x40'),'table':'chat_interactions','conditions':_0x2be331('0x93'),'joins':'[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x2e,'name':_0x2be331('0x6a'),'description':'Chat\x20interactions\x20by\x20agent','parent':_0x1390fe+_0x2be331('0x40'),'table':'chat_interactions','conditions':_0x2be331('0x3b'),'joins':_0x2be331('0x24')},{'id':0x2f,'name':'Chat\x20By\x20Date','description':_0x2be331('0x4e'),'parent':_0x1390fe+'_chat','table':'chat_interactions','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}'},{'id':0x30,'name':'Chat\x20By\x20Queue','description':_0x2be331('0x27'),'parent':_0x1390fe+_0x2be331('0x40'),'table':'report_chat_queue','joins':_0x2be331('0x7a')},{'id':0x31,'name':_0x2be331('0x2d'),'description':'Email\x20interactions\x20by\x20account','parent':_0x1390fe+_0x2be331('0x95'),'table':'mail_interactions','joins':_0x2be331('0x6e')},{'id':0x32,'name':_0x2be331('0xd'),'description':_0x2be331('0x14'),'parent':_0x1390fe+_0x2be331('0x95'),'table':_0x2be331('0x62'),'conditions':_0x2be331('0x5e'),'joins':'[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x33,'name':_0x2be331('0x11'),'description':_0x2be331('0x94'),'parent':_0x1390fe+_0x2be331('0x95'),'table':_0x2be331('0x62'),'conditions':_0x2be331('0x69'),'joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x34,'name':_0x2be331('0x2a'),'description':_0x2be331('0x65'),'parent':_0x1390fe+_0x2be331('0x95'),'table':_0x2be331('0x62'),'conditions':_0x2be331('0x69')},{'id':0x35,'name':_0x2be331('0x67'),'description':_0x2be331('0xa6'),'parent':_0x1390fe+_0x2be331('0x95'),'table':_0x2be331('0x91'),'joins':_0x2be331('0x25')},{'id':0x36,'name':_0x2be331('0x3f'),'description':'Openchannel\x20interactions\x20by\x20account','parent':_0x1390fe+_0x2be331('0x71'),'table':_0x2be331('0x75'),'joins':_0x2be331('0x87')},{'id':0x37,'name':'Openchannel\x20Account\x20Times','description':_0x2be331('0x23'),'parent':_0x1390fe+_0x2be331('0x71'),'table':'openchannel_interactions','conditions':_0x2be331('0x60'),'joins':_0x2be331('0x87')},{'id':0x38,'name':_0x2be331('0x9c'),'description':'Openchannel\x20interactions\x20by\x20agent','parent':_0x1390fe+_0x2be331('0x71'),'table':_0x2be331('0x75'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x39,'name':'Openchannel\x20By\x20Date','description':'Openchannel\x20interactions\x20by\x20date','parent':_0x1390fe+_0x2be331('0x71'),'table':_0x2be331('0x75'),'conditions':_0x2be331('0x8d')},{'id':0x3a,'name':_0x2be331('0x1'),'description':_0x2be331('0x78'),'parent':_0x1390fe+_0x2be331('0x71'),'table':'report_openchannel_queue','joins':'[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x3b,'name':_0x2be331('0x1e'),'description':'Sms\x20interactions\x20by\x20account','parent':_0x1390fe+'_sms','table':_0x2be331('0x5b'),'joins':_0x2be331('0x66')},{'id':0x3c,'name':_0x2be331('0xa4'),'description':_0x2be331('0x43'),'parent':_0x1390fe+_0x2be331('0x30'),'table':_0x2be331('0x5b'),'conditions':_0x2be331('0x83'),'joins':_0x2be331('0x66')},{'id':0x3d,'name':_0x2be331('0x48'),'description':_0x2be331('0x81'),'parent':_0x1390fe+_0x2be331('0x30'),'table':_0x2be331('0x5b'),'conditions':_0x2be331('0x7d'),'joins':_0x2be331('0x24')},{'id':0x3e,'name':_0x2be331('0x76'),'description':_0x2be331('0xa5'),'parent':_0x1390fe+_0x2be331('0x30'),'table':'sms_interactions','conditions':_0x2be331('0x7d')},{'id':0x3f,'name':_0x2be331('0x63'),'description':_0x2be331('0x0'),'parent':_0x1390fe+_0x2be331('0x30'),'table':'report_sms_queue','joins':'[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x40,'name':_0x2be331('0x20'),'description':_0x2be331('0x38'),'parent':_0x1390fe+_0x2be331('0x46'),'table':_0x2be331('0x7c'),'joins':_0x2be331('0x8')},{'id':0x41,'name':_0x2be331('0x1c'),'description':_0x2be331('0x50'),'parent':_0x1390fe+_0x2be331('0x46'),'table':'fax_interactions','conditions':_0x2be331('0x68'),'joins':_0x2be331('0x8')},{'id':0x42,'name':_0x2be331('0x42'),'description':_0x2be331('0x92'),'parent':_0x1390fe+_0x2be331('0x46'),'table':'fax_interactions','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x2be331('0x24')},{'id':0x43,'name':_0x2be331('0x79'),'description':'Fax\x20interactions\x20by\x20date','parent':_0x1390fe+'_fax','table':'fax_interactions','conditions':_0x2be331('0x4')},{'id':0x44,'name':_0x2be331('0x54'),'description':_0x2be331('0x5d'),'parent':_0x1390fe+_0x2be331('0x46'),'table':_0x2be331('0x3e'),'joins':'[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x45,'name':_0x2be331('0x41'),'description':'WhatsApp\x20interactions\x20by\x20account','parent':_0x1390fe+_0x2be331('0x49'),'table':'whatsapp_interactions','joins':'[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x46,'name':'WhatsApp\x20Account\x20Times','description':'WhatsApp\x20interaction\x20times\x20by\x20account','parent':_0x1390fe+_0x2be331('0x49'),'table':'whatsapp_interactions','conditions':_0x2be331('0x5c'),'joins':_0x2be331('0x17')},{'id':0x47,'name':'WhatsApp\x20By\x20Agent','description':_0x2be331('0x31'),'parent':_0x1390fe+_0x2be331('0x49'),'table':_0x2be331('0x7'),'conditions':_0x2be331('0x22'),'joins':_0x2be331('0x24')},{'id':0x48,'name':'WhatsApp\x20By\x20Date','description':_0x2be331('0x19'),'parent':_0x1390fe+_0x2be331('0x49'),'table':'whatsapp_interactions','conditions':_0x2be331('0x22')},{'id':0x49,'name':'WhatsApp\x20By\x20Queue','description':'WhatsApp\x20interactions\x20by\x20queue','parent':_0x1390fe+'_whatsapp','table':'report_whatsapp_queue','joins':_0x2be331('0x82')},{'id':0x4a,'name':_0x2be331('0xa0'),'description':'Sentiment\x20by\x20agent','parent':_0x1390fe+'_voice_recordings','table':_0x2be331('0x4c'),'conditions':_0x2be331('0xa3'),'joins':_0x2be331('0x24')},{'id':0x4b,'name':_0x2be331('0x64'),'description':_0x2be331('0x64'),'parent':_0x1390fe+_0x2be331('0x44'),'table':_0x2be331('0x4c'),'conditions':_0x2be331('0x21')}];}; \ No newline at end of file +var a868_0x1805=['{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','_whatsapp','_voice_queues_distribution','openchannel_interactions','report_member','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Chat\x20By\x20Queue','CallySquare\x20Summary','[{\x22parentKey\x22:\x22WhatsappQueueId\x22,\x22foreignTable\x22:\x22whatsapp_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27PAUSE\x27\x22,\x22required\x22:true}]}}','[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Detailed\x20queues\x20report','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Agent\x27s\x20status\x20detail','Sentiment\x20by\x20Agent','Sms\x20interactions\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22disposition\x22,\x22value\x22:\x22\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}','Sms\x20Account\x20Summary','report_queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x22},{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x27abandoned\x27\x22},{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22}]}}]}}]}}','Agent\x27s\x20pause\x20time','Email\x20Account\x20Summary','Openchannel\x20interaction\x20times\x20by\x20account','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20by\x20Date','report_square','_bull_ivr_campaigns','_voice_callysquare','Calls\x20by\x20Day','report_mail_queue','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','report_chat_queue','_mail','Calls\x20by\x20Type','Calls\x20by\x20Weekday','_voice_queues','report_whatsapp_queue','cm_hopper_final','_voice_recordings','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','Queue\x20calls\x20summary\x20by\x20date','_chat','cm_hopper_history','Openchannel\x20By\x20Date','report_call','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22sms_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22sms_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','Summary\x20of\x20the\x20calls\x20disconnection\x20causes','Pause\x20Details','[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','mail_interactions','Email\x20interaction\x20times\x20by\x20account','Answer\x20Time\x20by\x20Hour','Agent\x20Disposition\x20Rate','Fax\x20Account\x20Times','_agents','Outbound\x20Calls\x20by\x20Agent','Sentiment\x20by\x20agent','Outbound','exports','Sms\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27outbound\x27\x22,\x22required\x22:true}]}}','Chat\x20By\x20Date','_bull_queue_campaigns','Email\x20By\x20Date','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','Rating\x20by\x20Queue','Manual\x20outbound\x20calls\x20detailed\x20report','Agent\x27s\x20activities\x20report','Disposition\x20Rate','Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Pause\x20Time','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27LOGIN\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}','Agent\x27s\x20login\x20time','Openchannel\x20interactions\x20by\x20account','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','WhatsApp\x20interactions\x20by\x20queue','Sms\x20interactions\x20by\x20agent','Calls\x20detail\x20(cdr)','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}','Openchannel\x20Account\x20Summary','Agents\x20status\x20details','report_fax_queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','Fax\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20distribution\x20by\x20queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','Outbound\x20Calls\x20Disposition','Chat\x20By\x20Agent','[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22whatsapp_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22whatsapp_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','WhatsApp\x20By\x20Queue','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','sms_interactions','List\x20Penetration\x20Rate','Openchannel\x20interactions\x20by\x20date','Calls\x20by\x20Agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_agents','Calls\x20by\x20Queue','_fax','_openchannel','report_agent','Campaign\x20Calls','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','WhatsApp\x20By\x20Agent','WhatsApp\x20Account\x20Times','Activities\x20Summary','Calls\x20Summary','report_openchannel_queue','_sms','Fax\x20interactions\x20by\x20agent','Email\x20interactions\x20by\x20queue','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','WhatsApp\x20interactions\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','Fax\x20Account\x20Summary','Records\x20rating\x20by\x20agent','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','fax_interactions','Openchannel\x20By\x20Agent','Chat\x20interactions\x20by\x20agent','Calls\x20by\x20Hour','WhatsApp\x20Account\x20Summary','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerabandon\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','chat_interactions','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Outbound\x20calls\x20grouped\x20by\x20disposition','_voice_calls','Answer\x20Time\x20by\x20Queue','[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','whatsapp_interactions','Fax\x20By\x20Agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}','Fax\x20interactions\x20by\x20account','Sms\x20interactions\x20by\x20queue','_voice_queues_answered','Calls\x20Result','Chat\x20interactions\x20by\x20queue','Login\x20Time','Email\x20interactions\x20by\x20date','WhatsApp\x20interactions\x20by\x20account','Blocks','Fax\x20interactions\x20by\x20date','report_square_details','Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','Abandon\x20Time\x20by\x20Queue','voice_recordings','Disconnection\x20Cause','Details','Chat\x20interactions\x20by\x20website','Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','Email\x20By\x20Agent','_voice_queues_unanswered','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','Sms\x20Account\x20Times','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22queue\x22,\x22value\x22:\x22\x22,\x22required\x22:false},{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Rating\x20by\x20Agent','Sentiment\x20Summary','Unmanaged\x20calls\x20summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22fax_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22fax_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}'];(function(_0x58f3ed,_0x18059b){var _0x229696=function(_0x375b58){while(--_0x375b58){_0x58f3ed['push'](_0x58f3ed['shift']());}};_0x229696(++_0x18059b);}(a868_0x1805,0x1ad));var a868_0x2296=function(_0x58f3ed,_0x18059b){_0x58f3ed=_0x58f3ed-0x0;var _0x229696=a868_0x1805[_0x58f3ed];return _0x229696;};var _0x252332=a868_0x2296;'use strict';module[_0x252332('0x8b')]=function(_0x375b58){var _0x5051f6=_0x252332;return[{'id':0x1,'name':'Details','description':_0x5051f6('0x5a'),'parent':_0x375b58+_0x5051f6('0x72'),'table':_0x5051f6('0x61'),'conditions':_0x5051f6('0x7d')},{'id':0x2,'name':_0x5051f6('0x36'),'description':'Simple\x20queue\x20calls\x20overview','parent':_0x375b58+_0x5051f6('0x72'),'table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x3,'name':_0x5051f6('0x42'),'description':'Detailed\x20report\x20about\x20answered\x20queue\x20calls','parent':_0x375b58+'_voice_queues_answered','table':_0x5051f6('0x11'),'conditions':_0x5051f6('0xb')},{'id':0x4,'name':_0x5051f6('0xa'),'description':_0x5051f6('0x3e'),'parent':_0x375b58+'_voice_queues_answered','table':_0x5051f6('0x11'),'conditions':_0x5051f6('0xb')},{'id':0x5,'name':_0x5051f6('0xe'),'description':_0x5051f6('0x1f'),'parent':_0x375b58+_0x5051f6('0x35'),'table':'report_agent','conditions':_0x5051f6('0xb')},{'id':0x6,'name':_0x5051f6('0x2e'),'description':'Queues\x20answer\x20time\x20performance','parent':_0x375b58+_0x5051f6('0x35'),'table':_0x5051f6('0x11'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0x7,'name':_0x5051f6('0x41'),'description':_0x5051f6('0x7f'),'parent':_0x375b58+_0x5051f6('0x35'),'table':'report_agent','conditions':_0x5051f6('0xb')},{'id':0x8,'name':_0x5051f6('0x84'),'description':'Answer\x20time\x20\x20by\x20hour','parent':_0x375b58+_0x5051f6('0x35'),'table':_0x5051f6('0x11'),'conditions':_0x5051f6('0xb')},{'id':0x9,'name':_0x5051f6('0x42'),'description':_0x5051f6('0x91'),'parent':_0x375b58+_0x5051f6('0x46'),'table':'report_queue','conditions':_0x5051f6('0x54')},{'id':0xa,'name':'Unanswered\x20by\x20Queue','description':'Unanswered\x20calls\x20summary\x20by\x20queue','parent':_0x375b58+_0x5051f6('0x46'),'table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}'},{'id':0xb,'name':'Unmanaged\x20calls','description':_0x5051f6('0x4c'),'parent':_0x375b58+_0x5051f6('0x46'),'table':_0x5051f6('0x61'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerexit\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0xc,'name':_0x5051f6('0x3f'),'description':'Abandon\x20time\x20performance\x20by\x20queue','parent':_0x375b58+_0x5051f6('0x46'),'table':_0x5051f6('0x61'),'conditions':_0x5051f6('0x29')},{'id':0xd,'name':_0x5051f6('0x67'),'description':_0x5051f6('0x77'),'parent':_0x375b58+_0x5051f6('0x51'),'table':_0x5051f6('0x61'),'conditions':_0x5051f6('0x7d')},{'id':0xe,'name':_0x5051f6('0x26'),'description':'Calls\x20distribution\x20by\x20hour','parent':_0x375b58+'_voice_queues_distribution','table':_0x5051f6('0x61'),'conditions':_0x5051f6('0x7d')},{'id':0xf,'name':_0x5051f6('0x6b'),'description':_0x5051f6('0x1c'),'parent':_0x375b58+_0x5051f6('0x51'),'table':'report_queue','conditions':_0x5051f6('0x7d')},{'id':0x10,'name':_0x5051f6('0x71'),'description':_0x5051f6('0x44'),'parent':_0x375b58+_0x5051f6('0x51'),'table':_0x5051f6('0x61'),'conditions':_0x5051f6('0x7d')},{'id':0x11,'name':_0x5051f6('0x97'),'description':_0x5051f6('0xa8'),'parent':_0x375b58+_0x5051f6('0x72'),'table':_0x5051f6('0x61'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x12,'name':_0x5051f6('0x42'),'description':_0x5051f6('0xa0'),'parent':_0x375b58+_0x5051f6('0x2d'),'table':_0x5051f6('0x7b'),'conditions':_0x5051f6('0x7d')},{'id':0x13,'name':_0x5051f6('0x8a'),'description':_0x5051f6('0x94'),'parent':_0x375b58+'_voice_calls','table':_0x5051f6('0x7b'),'conditions':_0x5051f6('0x8d')},{'id':0x14,'name':_0x5051f6('0x70'),'description':'Summary\x20report\x20of\x20the\x20calls\x20type','parent':_0x375b58+_0x5051f6('0x2d'),'table':_0x5051f6('0x7b'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x15,'name':_0x5051f6('0x1'),'description':_0x5051f6('0x2c'),'parent':_0x375b58+_0x5051f6('0x2d'),'table':_0x5051f6('0x7b'),'conditions':_0x5051f6('0x8d')},{'id':0x16,'name':_0x5051f6('0x88'),'description':_0x5051f6('0x76'),'parent':_0x375b58+'_voice_calls','table':_0x5051f6('0x7b'),'conditions':_0x5051f6('0x8d')},{'id':0x17,'name':'Outbound\x20Calls\x20by\x20Date','description':_0x5051f6('0x22'),'parent':_0x375b58+_0x5051f6('0x2d'),'table':_0x5051f6('0x7b'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27outbound\x27\x22,\x22required\x22:true}]}}'},{'id':0x18,'name':_0x5051f6('0x38'),'description':_0x5051f6('0x9b'),'parent':_0x375b58+_0x5051f6('0x87'),'table':_0x5051f6('0x53'),'conditions':_0x5051f6('0x9a')},{'id':0x19,'name':_0x5051f6('0x16'),'description':_0x5051f6('0x95'),'parent':_0x375b58+'_voice_agents','table':_0x5051f6('0x53'),'conditions':_0x5051f6('0x32')},{'id':0x1a,'name':_0x5051f6('0x80'),'description':_0x5051f6('0xa3'),'parent':_0x375b58+_0x5051f6('0xd'),'table':_0x5051f6('0x53'),'conditions':_0x5051f6('0x58')},{'id':0x1b,'name':'Details','description':_0x5051f6('0x5c'),'parent':_0x375b58+_0x5051f6('0xd'),'table':'report_member','conditions':_0x5051f6('0x32')},{'id':0x1c,'name':_0x5051f6('0x99'),'description':_0x5051f6('0x63'),'parent':_0x375b58+_0x5051f6('0xd'),'table':'report_member','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27PAUSE\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}'},{'id':0x1d,'name':_0x5051f6('0x97'),'description':_0x5051f6('0x56'),'parent':_0x375b58+_0x5051f6('0x6a'),'table':_0x5051f6('0x68'),'conditions':_0x5051f6('0x7d')},{'id':0x1e,'name':_0x5051f6('0x3b'),'description':'CallySquare\x20Blocks\x20Detail','parent':_0x375b58+_0x5051f6('0x6a'),'table':_0x5051f6('0x3d'),'conditions':_0x5051f6('0x7d')},{'id':0x1f,'name':_0x5051f6('0x4a'),'description':_0x5051f6('0x21'),'parent':_0x375b58+_0x5051f6('0x75'),'table':_0x5051f6('0x40'),'conditions':_0x5051f6('0x13')},{'id':0x20,'name':_0x5051f6('0x93'),'description':'Records\x20rating\x20by\x20queue','parent':_0x375b58+'_voice_recordings','table':_0x5051f6('0x40'),'conditions':_0x5051f6('0x49')},{'id':0x21,'name':_0x5051f6('0x42'),'description':'','parent':_0x375b58+'_bull_queue_campaigns','table':'cm_hopper_final','conditions':_0x5051f6('0x92')},{'id':0x22,'name':_0x5051f6('0x17'),'description':'','parent':_0x375b58+_0x5051f6('0x8f'),'table':_0x5051f6('0x79'),'conditions':_0x5051f6('0x92')},{'id':0x23,'name':_0x5051f6('0x12'),'description':'','parent':_0x375b58+_0x5051f6('0x8f'),'table':_0x5051f6('0x74'),'conditions':_0x5051f6('0x92')},{'id':0x24,'name':'List\x20Penetration\x20Rate','description':'','parent':_0x375b58+_0x5051f6('0x8f'),'table':_0x5051f6('0x74'),'conditions':_0x5051f6('0x92')},{'id':0x25,'name':'Agent\x20Calls','description':'','parent':_0x375b58+_0x5051f6('0x8f'),'table':'cm_hopper_final','conditions':_0x5051f6('0xa1')},{'id':0x26,'name':_0x5051f6('0x96'),'description':'','parent':_0x375b58+_0x5051f6('0x8f'),'table':_0x5051f6('0x74'),'conditions':_0x5051f6('0x5f')},{'id':0x27,'name':_0x5051f6('0x85'),'description':'','parent':_0x375b58+_0x5051f6('0x8f'),'table':_0x5051f6('0x74'),'conditions':_0x5051f6('0x5f')},{'id':0x28,'name':_0x5051f6('0x42'),'description':'','parent':_0x375b58+_0x5051f6('0x69'),'table':'cm_hopper_final','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}'},{'id':0x29,'name':'Calls\x20Summary','description':'','parent':_0x375b58+'_bull_ivr_campaigns','table':'cm_hopper_history','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}'},{'id':0x2a,'name':_0x5051f6('0x12'),'description':'','parent':_0x375b58+'_bull_ivr_campaigns','table':_0x5051f6('0x74'),'conditions':_0x5051f6('0x0')},{'id':0x2b,'name':_0x5051f6('0x8'),'description':'','parent':_0x375b58+_0x5051f6('0x69'),'table':_0x5051f6('0x74'),'conditions':_0x5051f6('0x0')},{'id':0x2c,'name':'Website\x20Summary','description':_0x5051f6('0x43'),'parent':_0x375b58+'_chat','table':'chat_interactions','joins':_0x5051f6('0x81')},{'id':0x2d,'name':'Website\x20Times','description':'Chat\x20interaction\x20times\x20by\x20website','parent':_0x375b58+_0x5051f6('0x78'),'table':'chat_interactions','conditions':_0x5051f6('0x62'),'joins':_0x5051f6('0x81')},{'id':0x2e,'name':_0x5051f6('0x2'),'description':_0x5051f6('0x25'),'parent':_0x375b58+'_chat','table':_0x5051f6('0x2a'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x5051f6('0x28')},{'id':0x2f,'name':_0x5051f6('0x8e'),'description':'Chat\x20interactions\x20by\x20date','parent':_0x375b58+_0x5051f6('0x78'),'table':_0x5051f6('0x2a'),'conditions':_0x5051f6('0x98')},{'id':0x30,'name':_0x5051f6('0x55'),'description':_0x5051f6('0x37'),'parent':_0x375b58+_0x5051f6('0x78'),'table':_0x5051f6('0x6e'),'joins':'[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x31,'name':_0x5051f6('0x64'),'description':'Email\x20interactions\x20by\x20account','parent':_0x375b58+_0x5051f6('0x6f'),'table':'mail_interactions','joins':_0x5051f6('0x6d')},{'id':0x32,'name':'Email\x20Account\x20Times','description':_0x5051f6('0x83'),'parent':_0x375b58+_0x5051f6('0x6f'),'table':_0x5051f6('0x82'),'conditions':_0x5051f6('0x47'),'joins':_0x5051f6('0x6d')},{'id':0x33,'name':_0x5051f6('0x45'),'description':'Email\x20interactions\x20by\x20agent','parent':_0x375b58+'_mail','table':_0x5051f6('0x82'),'conditions':_0x5051f6('0x1e'),'joins':_0x5051f6('0x28')},{'id':0x34,'name':_0x5051f6('0x90'),'description':_0x5051f6('0x39'),'parent':_0x375b58+'_mail','table':_0x5051f6('0x82'),'conditions':_0x5051f6('0x1e')},{'id':0x35,'name':'Email\x20By\x20Queue','description':_0x5051f6('0x1b'),'parent':_0x375b58+'_mail','table':_0x5051f6('0x6c'),'joins':_0x5051f6('0x2f')},{'id':0x36,'name':_0x5051f6('0xa2'),'description':_0x5051f6('0x9c'),'parent':_0x375b58+'_openchannel','table':_0x5051f6('0x52'),'joins':_0x5051f6('0x66')},{'id':0x37,'name':'Openchannel\x20Account\x20Times','description':_0x5051f6('0x65'),'parent':_0x375b58+_0x5051f6('0x10'),'table':_0x5051f6('0x52'),'conditions':_0x5051f6('0x4e'),'joins':'[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x38,'name':_0x5051f6('0x24'),'description':'Openchannel\x20interactions\x20by\x20agent','parent':_0x375b58+'_openchannel','table':_0x5051f6('0x52'),'conditions':_0x5051f6('0x4f'),'joins':_0x5051f6('0x28')},{'id':0x39,'name':_0x5051f6('0x7a'),'description':_0x5051f6('0x9'),'parent':_0x375b58+_0x5051f6('0x10'),'table':_0x5051f6('0x52'),'conditions':_0x5051f6('0x4f')},{'id':0x3a,'name':'Openchannel\x20By\x20Queue','description':'Openchannel\x20interactions\x20by\x20queue','parent':_0x375b58+'_openchannel','table':_0x5051f6('0x18'),'joins':_0x5051f6('0xc')},{'id':0x3b,'name':_0x5051f6('0x60'),'description':'Sms\x20interactions\x20by\x20account','parent':_0x375b58+_0x5051f6('0x19'),'table':'sms_interactions','joins':_0x5051f6('0x6')},{'id':0x3c,'name':_0x5051f6('0x48'),'description':'Sms\x20interaction\x20times\x20by\x20account','parent':_0x375b58+_0x5051f6('0x19'),'table':_0x5051f6('0x7'),'conditions':_0x5051f6('0x7e'),'joins':'[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x3d,'name':'Sms\x20By\x20Agent','description':_0x5051f6('0x9f'),'parent':_0x375b58+_0x5051f6('0x19'),'table':_0x5051f6('0x7'),'conditions':_0x5051f6('0x7c'),'joins':_0x5051f6('0x28')},{'id':0x3e,'name':'Sms\x20By\x20Date','description':_0x5051f6('0x5e'),'parent':_0x375b58+_0x5051f6('0x19'),'table':_0x5051f6('0x7'),'conditions':_0x5051f6('0x7c')},{'id':0x3f,'name':_0x5051f6('0x8c'),'description':_0x5051f6('0x34'),'parent':_0x375b58+_0x5051f6('0x19'),'table':'report_sms_queue','joins':_0x5051f6('0x59')},{'id':0x40,'name':_0x5051f6('0x20'),'description':_0x5051f6('0x33'),'parent':_0x375b58+_0x5051f6('0xf'),'table':_0x5051f6('0x23'),'joins':_0x5051f6('0x2b')},{'id':0x41,'name':_0x5051f6('0x86'),'description':'Fax\x20interaction\x20times\x20by\x20account','parent':_0x375b58+_0x5051f6('0xf'),'table':'fax_interactions','conditions':_0x5051f6('0x4d'),'joins':_0x5051f6('0x2b')},{'id':0x42,'name':_0x5051f6('0x31'),'description':_0x5051f6('0x1a'),'parent':_0x375b58+'_fax','table':_0x5051f6('0x23'),'conditions':_0x5051f6('0x9d'),'joins':_0x5051f6('0x28')},{'id':0x43,'name':'Fax\x20By\x20Date','description':_0x5051f6('0x3c'),'parent':_0x375b58+_0x5051f6('0xf'),'table':'fax_interactions','conditions':_0x5051f6('0x9d')},{'id':0x44,'name':_0x5051f6('0xa6'),'description':'Fax\x20interactions\x20by\x20queue','parent':_0x375b58+_0x5051f6('0xf'),'table':_0x5051f6('0xa4'),'joins':_0x5051f6('0x3')},{'id':0x45,'name':_0x5051f6('0x27'),'description':_0x5051f6('0x3a'),'parent':_0x375b58+_0x5051f6('0x50'),'table':_0x5051f6('0x30'),'joins':_0x5051f6('0x5b')},{'id':0x46,'name':_0x5051f6('0x15'),'description':'WhatsApp\x20interaction\x20times\x20by\x20account','parent':_0x375b58+_0x5051f6('0x50'),'table':_0x5051f6('0x30'),'conditions':_0x5051f6('0x4'),'joins':_0x5051f6('0x5b')},{'id':0x47,'name':_0x5051f6('0x14'),'description':'WhatsApp\x20interactions\x20by\x20agent','parent':_0x375b58+_0x5051f6('0x50'),'table':_0x5051f6('0x30'),'conditions':_0x5051f6('0xa7'),'joins':_0x5051f6('0x28')},{'id':0x48,'name':'WhatsApp\x20By\x20Date','description':_0x5051f6('0x1d'),'parent':_0x375b58+_0x5051f6('0x50'),'table':_0x5051f6('0x30'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}'},{'id':0x49,'name':_0x5051f6('0x5'),'description':_0x5051f6('0x9e'),'parent':_0x375b58+_0x5051f6('0x50'),'table':_0x5051f6('0x73'),'joins':_0x5051f6('0x57')},{'id':0x4a,'name':_0x5051f6('0x5d'),'description':_0x5051f6('0x89'),'parent':_0x375b58+_0x5051f6('0x75'),'table':_0x5051f6('0x40'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','joins':_0x5051f6('0x28')},{'id':0x4b,'name':_0x5051f6('0x4b'),'description':_0x5051f6('0x4b'),'parent':_0x375b58+_0x5051f6('0x75'),'table':'voice_recordings','conditions':_0x5051f6('0xa5')}];}; \ No newline at end of file diff --git a/server/config/seedDB/report/fields.js b/server/config/seedDB/report/fields.js index 5c1a2c8..32e52c2 100644 --- a/server/config/seedDB/report/fields.js +++ b/server/config/seedDB/report/fields.js @@ -1 +1 @@ -const a869_0x64b3=['Data','JoinAt','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','Avg\x20Duration','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','TOT','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','Project\x20Name','agentcalledAt','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','queuecallercompleteAt','Unmanaged\x20(%)','openchannel_accounts.name','Tag','Tot\x20TalkTime','Contacts','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','endtime','Answer\x20Rate','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','Rated\x20Calls','report_chat_queue.id','holdtime','Calls','queuecallerexitAt','campaign','ROUND(AVG(holdtime))','COUNT(IF(reason=\x27accepted\x27,1,NULL))','mail_interactions.id','Abandoned\x20Rate<10s','AvgAbandonTime','AgentACWTime','data1','Tot\x20Handle\x20Time','fax_interactions.closed','COUNT(IF(reason=\x27timeout\x27,1,NULL))','IF(queuecallercomplete=1,holdtime,null)','mail_accounts.name','QueueExitAt','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','POSITIVE','chat_interactions.createdAt','UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','exten','AgentExtension','project_name','calleridname','Completed','chat_interactions.closed','CallerIdNum','CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','Agent','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','Tot\x20Duration','Abandoned\x20Rate>120s','Answer\x20Rate\x2010-20s','exitAt','Whatsapp\x20Account','EndTime','COUNT(IF(holdtime<10,1,NULL))','AbandonAt','Answered\x2010-20s','whatsapp_accounts.name','Start\x20Time','UniqueId','agentacw','sms_interactions.id','connectedlinename','TalkTime','DATE','Event','exports','fax_interactions.createdAt','Penetration\x20Rate','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','rating','LastEvent','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','Complete','voice_recordings.UserId','HOUR','queuecallerjoinat','Answered\x20<10s','queuecallerexitreason','sms_interactions.closed','Answered','Abandoned\x20Rate\x2060-120s','AnswerTime','Pause','LeaveAt','Source','SEC_TO_TIME','ListId','chat_queues.name','ROUND(COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))/COUNT(id)\x20*100,1)','TotHandleTime','AgentComplete','LastData','Date','Answer\x20Rate\x20<10s','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Disposition','fax_accounts.name','Abandoned>120s','Completed\x20(%)','mail_interactions.closed','fax_queues.name','Sentiment\x20TOT','Open','TotTalkTime','UniqueID','answertime','EnterAt','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','ExitAt','duration','Tot\x20ACWTime','Login\x20Time','PauseType','reason','AvgHandleTime','queuecallerjoinAt','statedesc','report_whatsapp_queue.id','queue','AvgTalkTime','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','Positive(%)','Avg\x20ACWTime','QueuePosition','Total\x20Rating','Sms\x20Account','lodash','Hold\x20Time','End\x20Time','HangupReason','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','groupBy','Drop\x20Reason','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','callerid','Fax\x20Account','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','COUNT(IF(closed=0,1,NULL))','Web\x20Site','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','node','SEC_TO_TIME(AVG(talktime))','chat_websites.name','data','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','mail_queues.name','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','queuecallerabandon','Day','Duration','destination','NEGATIVE','Interactions','Tot\x20AbandonTime','Neutral(%)','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','Avg\x20Handle\x20Time','QueueJoinAt','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','Total\x20Calls','interface','AgentConnectAt','AvgACWTime','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','sms_accounts.name','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','countglobal','CallerID','calleridnum','membername','Interface','fax_interactions.id','DID','Offered','DestChannel','Avg\x20Rating','leaveAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','AVG','ASC','Negative(%)','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','AVG\x20Interaction\x20Time','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','DAYNAME(queuecallerjoinat)','type','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','BlackList','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','talktime\x20+\x20acwtime','Avg\x20HoldTime','SUM','disposition','talktime','openchannel_queues.name','COUNT\x20DISTINCT','tag','Abandoned\x20(%)','voice_recordings.sentiment','whatsapp_interactions.createdAt','report_fax_queue.id','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Type','openchannel_interactions.id','Tot\x20Answered','LastCallAt','Timeout','Abandoned<10s','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','Campaign\x20Name','Avg\x20Unmanaged\x20TIme','dnid','Hour','Recorded\x20Calls','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','AbandonTime','Email\x20Account','ROUND(AVG(acwtime))','Answered\x2020-30s','chat_interactions.id','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','DESC','AgentCompleteAt','enterAt','Closed','agentcomplete','source','QueueAbandon','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','Answer\x20Rate\x20>30s','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','QueueExit','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','billableseconds','uniqueid','position','Mixed(%)','openchannel_interactions.closed','Talk\x20Time','Reason','acwtime','Tot\x20Unmanaged\x20Time','COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','COUNT','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))\x20\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','ROUND(AVG(duration))','sms_interactions.createdAt','UnmanagedReason','QueueAbandonAt','Destination','Accepted','starttime','State','Openchannel\x20Account','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','Pause\x20Time','SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','UnmanagedAt','Interaction\x20Time','queuecallerexit','Answer\x20Rate\x2020-30s','Tot\x20Abandoned','COUNT(IF(closed=1,1,NULL))','users.fullname','StartTime','DAY(queuecallerjoinat)','Managed','queuecallerleaveAt','queuecallercomplete','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','sms_queues.name','DayOfWeek','Abandoned\x2060-120s','Global\x20Count','report_openchannel_queue.id','queuecallerabandonAt','accountcode','AgentACW','Abandon','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','SUM(IF(state=4,1,0))','AVG\x20Hold\x20Time','CallerIdName','Abandoned','Abandoned\x2010-60s','COUNT(IF(holdtime\x20>=30,1,NULL))','Queue','Unmanaged','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','mail_interactions.createdAt'];(function(_0x938c84,_0x64b377){const _0x5177b0=function(_0x559fae){while(--_0x559fae){_0x938c84['push'](_0x938c84['shift']());}};_0x5177b0(++_0x64b377);}(a869_0x64b3,0x16e));const a869_0x5177=function(_0x938c84,_0x64b377){_0x938c84=_0x938c84-0x0;let _0x5177b0=a869_0x64b3[_0x938c84];return _0x5177b0;};const _0x3386db=a869_0x5177;'use strict';const _=require(_0x3386db('0x47'));module[_0x3386db('0x9')]=function(){const _0x157a68=_0x3386db,_0x559fae=[{'field':_0x157a68('0xb9'),'alias':'UniqueId','ReportId':0x1},{'field':_0x157a68('0x75'),'alias':_0x157a68('0x123'),'ReportId':0x1},{'field':_0x157a68('0x120'),'alias':_0x157a68('0xea'),'ReportId':0x1},{'field':_0x157a68('0x3f'),'alias':_0x157a68('0xee'),'ReportId':0x1},{'field':_0x157a68('0x3c'),'alias':_0x157a68('0x6a'),'ReportId':0x1},{'field':_0x157a68('0xdb'),'alias':'QueueLeaveAt','ReportId':0x1},{'field':_0x157a68('0x60'),'alias':_0x157a68('0xb2'),'ReportId':0x1},{'field':_0x157a68('0xe3'),'alias':_0x157a68('0xc8'),'ReportId':0x1},{'field':'queuecallercomplete','alias':_0x157a68('0x11'),'ReportId':0x1},{'field':_0x157a68('0xfc'),'alias':'CompleteAt','ReportId':0x1},{'field':_0x157a68('0xd3'),'alias':_0x157a68('0xb6'),'ReportId':0x1},{'field':_0x157a68('0x10a'),'alias':_0x157a68('0x118'),'ReportId':0x1},{'field':'queuecallerexitreason','alias':'QueueExitReason','ReportId':0x1},{'field':_0x157a68('0x11d'),'alias':_0x157a68('0x79'),'ReportId':0x1},{'field':_0x157a68('0x68'),'alias':_0x157a68('0x6'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x1},{'field':'UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x157a68('0xa5'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x1},{'field':_0x157a68('0x116'),'alias':'AnswerTime','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x1},{'field':_0x157a68('0x75'),'alias':_0x157a68('0x74'),'ReportId':0x2},{'field':_0x157a68('0x3f'),'alias':_0x157a68('0xee'),'ReportId':0x2},{'field':_0x157a68('0x3c'),'alias':_0x157a68('0xd8'),'ReportId':0x2},{'field':'CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','alias':'EndTime','custom':0x1,'ReportId':0x2},{'field':_0x157a68('0x108'),'alias':'HoldTime','format':_0x157a68('0x1e'),'ReportId':0x2},{'field':_0x157a68('0x5f'),'alias':_0x157a68('0x18'),'custom':0x1,'ReportId':0x2},{'field':'uniqueid','alias':'UniqueId','ReportId':0x3},{'field':'calleridnum','alias':_0x157a68('0x123'),'ReportId':0x3},{'field':_0x157a68('0x120'),'alias':_0x157a68('0xea'),'ReportId':0x3},{'field':_0x157a68('0x3f'),'alias':_0x157a68('0xee'),'ReportId':0x3},{'field':_0x157a68('0x76'),'alias':_0x157a68('0x125'),'ReportId':0x3},{'field':_0x157a68('0xfa'),'alias':'AgentCalledAt','ReportId':0x3},{'field':'agentconnectAt','alias':_0x157a68('0x6e'),'ReportId':0x3},{'field':'agentcompleteAt','alias':_0x157a68('0xad'),'ReportId':0x3},{'field':_0x157a68('0x108'),'alias':_0x157a68('0x1a'),'ReportId':0x3},{'field':_0x157a68('0x8f'),'alias':_0x157a68('0x6'),'ReportId':0x3},{'field':_0x157a68('0x3'),'alias':_0x157a68('0xe5'),'ReportId':0x3},{'field':_0x157a68('0xbf'),'alias':_0x157a68('0x111'),'ReportId':0x3},{'field':_0x157a68('0xb0'),'alias':_0x157a68('0x23'),'ReportId':0x3},{'field':_0x157a68('0x3a'),'alias':_0x157a68('0x4a'),'ReportId':0x3},{'field':'lastevent','alias':_0x157a68('0xe'),'ReportId':0x3},{'field':_0x157a68('0x11d'),'alias':_0x157a68('0x79'),'ReportId':0x3},{'field':_0x157a68('0x76'),'alias':_0x157a68('0x125'),'groupBy':0x1,'ReportId':0x4},{'field':'agentcomplete','alias':_0x157a68('0x121'),'function':_0x157a68('0x8d'),'ReportId':0x4},{'field':_0x157a68('0x8f'),'alias':_0x157a68('0x30'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','ReportId':0x4},{'field':_0x157a68('0xbf'),'alias':'TotACWTime','function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'ReportId':0x4},{'field':'talktime\x20+\x20acwtime','alias':_0x157a68('0x22'),'function':'SUM','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(talktime))','alias':_0x157a68('0x40'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x4},{'field':_0x157a68('0xa7'),'alias':_0x157a68('0x6f'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':'ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','alias':_0x157a68('0x3b'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':'queue','alias':_0x157a68('0xee'),'groupBy':0x1,'ReportId':0x5},{'field':'agentcomplete','alias':_0x157a68('0x121'),'function':_0x157a68('0x8d'),'ReportId':0x5},{'field':'talktime','alias':_0x157a68('0x100'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','ReportId':0x5},{'field':'holdtime','alias':'Tot\x20HoldTime','function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'ReportId':0x5},{'field':_0x157a68('0xbf'),'alias':_0x157a68('0x37'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','ReportId':0x5},{'field':_0x157a68('0x8b'),'alias':_0x157a68('0x113'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(talktime))','alias':'Avg\x20TalkTime','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x5},{'field':_0x157a68('0x10c'),'alias':_0x157a68('0x8c'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x5},{'field':_0x157a68('0xa7'),'alias':_0x157a68('0x43'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':'ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','alias':_0x157a68('0x69'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x5},{'field':_0x157a68('0x3f'),'alias':_0x157a68('0xee'),'groupBy':0x1,'ReportId':0x6},{'field':_0x157a68('0xb0'),'alias':_0x157a68('0x9a'),'function':_0x157a68('0x8d'),'ReportId':0x6},{'field':'COUNT(IF(holdtime<10,1,NULL))','alias':'Answered\x20<10s','custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':_0x157a68('0x26'),'custom':0x1,'ReportId':0x6},{'field':_0x157a68('0xe7'),'alias':_0x157a68('0x12f'),'custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':_0x157a68('0x129'),'custom':0x1,'ReportId':0x6},{'field':_0x157a68('0xf0'),'alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x6},{'field':_0x157a68('0x4f'),'alias':_0x157a68('0xd4'),'custom':0x1,'ReportId':0x6},{'field':_0x157a68('0xed'),'alias':'Answered\x20>30s','custom':0x1,'ReportId':0x6},{'field':_0x157a68('0xc4'),'alias':_0x157a68('0xb4'),'custom':0x1,'ReportId':0x6},{'field':_0x157a68('0x3a'),'alias':_0x157a68('0xbe'),'groupBy':0x1,'ReportId':0x7},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x109'),'function':'COUNT','ReportId':0x7},{'field':'agentconnectAt','alias':'Hour','format':'HOUR','groupBy':0x1,'ReportId':0x8},{'field':_0x157a68('0xb0'),'alias':'Tot\x20Answered','function':_0x157a68('0x8d'),'ReportId':0x8},{'field':_0x157a68('0x12d'),'alias':_0x157a68('0x15'),'custom':0x1,'ReportId':0x8},{'field':_0x157a68('0xe7'),'alias':'Answered\x2010-20s','custom':0x1,'ReportId':0x8},{'field':_0x157a68('0xf0'),'alias':_0x157a68('0xa8'),'custom':0x1,'ReportId':0x8},{'field':'COUNT(IF(holdtime\x20>=30,1,NULL))','alias':'Answered\x20>30s','custom':0x1,'ReportId':0x8},{'field':'uniqueid','alias':_0x157a68('0x2'),'ReportId':0x9},{'field':_0x157a68('0x75'),'alias':_0x157a68('0x123'),'ReportId':0x9},{'field':_0x157a68('0x3f'),'alias':_0x157a68('0xee'),'ReportId':0x9},{'field':'queuecallerjoinAt','alias':_0x157a68('0xf3'),'ReportId':0x9},{'field':_0x157a68('0xdb'),'alias':_0x157a68('0x1c'),'ReportId':0x9},{'field':_0x157a68('0x60'),'alias':_0x157a68('0xe6'),'ReportId':0x9},{'field':'queuecallerabandonAt','alias':_0x157a68('0x12e'),'ReportId':0x9},{'field':'queuecallerexit','alias':_0x157a68('0xef'),'ReportId':0x9},{'field':_0x157a68('0x10a'),'alias':_0x157a68('0xd1'),'ReportId':0x9},{'field':_0x157a68('0x16'),'alias':_0x157a68('0xc7'),'ReportId':0x9},{'field':_0x157a68('0xba'),'alias':_0x157a68('0x44'),'ReportId':0x9},{'field':_0x157a68('0x11d'),'alias':_0x157a68('0x79'),'ReportId':0x9},{'field':_0x157a68('0x11c'),'alias':'Abandon\x20Time','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x9},{'field':_0x157a68('0x84'),'alias':'Unmanaged\x20HoldTime','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x9},{'field':_0x157a68('0x3f'),'alias':'Queue','groupBy':0x1,'ReportId':0xa},{'field':'queuecallerabandon','alias':_0x157a68('0xeb'),'function':'SUM','ReportId':0xa},{'field':_0x157a68('0xd3'),'alias':_0x157a68('0xef'),'function':_0x157a68('0x8d'),'ReportId':0xa},{'field':_0x157a68('0x11c'),'alias':_0x157a68('0x66'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x157a68('0xc'),'alias':'AvgAbandonTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x157a68('0x84'),'alias':_0x157a68('0xc0'),'function':'SUM','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xa},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':_0x157a68('0xa0'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x157a68('0x16'),'alias':_0x157a68('0xbe'),'groupBy':0x1,'ReportId':0xb},{'field':_0x157a68('0xd3'),'alias':_0x157a68('0x109'),'function':'SUM','ReportId':0xb},{'field':_0x157a68('0x84'),'alias':_0x157a68('0xc0'),'function':_0x157a68('0x8d'),'custom':0x1,'ReportId':0xb},{'field':_0x157a68('0x3f'),'alias':_0x157a68('0xee'),'groupBy':0x1,'ReportId':0xc},{'field':_0x157a68('0x60'),'alias':_0x157a68('0xd5'),'function':'SUM','ReportId':0xc},{'field':_0x157a68('0x9e'),'alias':_0x157a68('0x9d'),'custom':0x1,'ReportId':0xc},{'field':_0x157a68('0x34'),'alias':_0x157a68('0x10f'),'custom':0x1,'ReportId':0xc},{'field':_0x157a68('0x4b'),'alias':_0x157a68('0xec'),'custom':0x1,'ReportId':0xc},{'field':_0x157a68('0xf4'),'alias':'Abandoned\x20Rate\x2010-60s','custom':0x1,'ReportId':0xc},{'field':'COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','alias':_0x157a68('0xe0'),'custom':0x1,'ReportId':0xc},{'field':_0x157a68('0xc3'),'alias':_0x157a68('0x19'),'custom':0x1,'ReportId':0xc},{'field':_0x157a68('0xa4'),'alias':_0x157a68('0x2a'),'custom':0x1,'ReportId':0xc},{'field':'ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','alias':_0x157a68('0x128'),'custom':0x1,'ReportId':0xc},{'field':_0x157a68('0x14'),'alias':_0x157a68('0x25'),'format':_0x157a68('0x7'),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x7a'),'function':'COUNT\x20DISTINCT','ReportId':0xd},{'field':_0x157a68('0xdc'),'alias':_0x157a68('0x121'),'function':'SUM','ReportId':0xd},{'field':_0x157a68('0x60'),'alias':_0x157a68('0xeb'),'function':_0x157a68('0x8d'),'custom':0x1,'ReportId':0xd},{'field':'queuecallerexit','alias':'Unmanaged','function':'SUM','custom':0x1,'ReportId':0xd},{'field':_0x157a68('0x68'),'alias':'Tot\x20TalkTime','function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xd},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x157a68('0x40'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xd},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':_0x157a68('0x110'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xd},{'field':_0x157a68('0x14'),'alias':_0x157a68('0xa2'),'format':_0x157a68('0x13'),'groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x7a'),'function':_0x157a68('0x91'),'ReportId':0xe},{'field':_0x157a68('0xdc'),'alias':_0x157a68('0x18'),'function':_0x157a68('0x8d'),'ReportId':0xe},{'field':'ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','alias':_0x157a68('0x104'),'custom':0x1,'ReportId':0xe},{'field':_0x157a68('0x60'),'alias':_0x157a68('0xeb'),'function':_0x157a68('0x8d'),'ReportId':0xe},{'field':_0x157a68('0xd3'),'alias':_0x157a68('0xef'),'function':_0x157a68('0x8d'),'ReportId':0xe},{'field':_0x157a68('0x68'),'alias':_0x157a68('0x100'),'function':'SUM','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xe},{'field':_0x157a68('0x5e'),'alias':_0x157a68('0x40'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xe},{'field':_0x157a68('0xc'),'alias':_0x157a68('0x110'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xe},{'field':_0x157a68('0xd9'),'alias':_0x157a68('0x61'),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x7a'),'function':'COUNT\x20DISTINCT','ReportId':0xf},{'field':_0x157a68('0xdc'),'alias':'Answered','function':_0x157a68('0x8d'),'ReportId':0xf},{'field':'ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','alias':'Answer\x20Rate','custom':0x1,'ReportId':0xf},{'field':_0x157a68('0x60'),'alias':_0x157a68('0xeb'),'function':_0x157a68('0x8d'),'ReportId':0xf},{'field':_0x157a68('0xd3'),'alias':_0x157a68('0xef'),'function':_0x157a68('0x8d'),'ReportId':0xf},{'field':_0x157a68('0x68'),'alias':'Tot\x20TalkTime','function':'SUM','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xf},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x157a68('0x40'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0xf},{'field':_0x157a68('0xc'),'alias':'AvgAbandonTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xf},{'field':_0x157a68('0x85'),'alias':_0x157a68('0xdf'),'groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':'uniqueid','alias':_0x157a68('0x7a'),'function':'COUNT\x20DISTINCT','ReportId':0x10},{'field':_0x157a68('0xdc'),'alias':_0x157a68('0x18'),'function':'SUM','ReportId':0x10},{'field':_0x157a68('0xab'),'alias':_0x157a68('0x104'),'custom':0x1,'ReportId':0x10},{'field':_0x157a68('0x60'),'alias':_0x157a68('0xeb'),'function':_0x157a68('0x8d'),'orderBy':_0x157a68('0x80'),'ReportId':0x10},{'field':_0x157a68('0xd3'),'alias':_0x157a68('0xef'),'function':_0x157a68('0x8d'),'ReportId':0x10},{'field':_0x157a68('0x68'),'alias':_0x157a68('0x100'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x10},{'field':_0x157a68('0x5e'),'alias':_0x157a68('0x40'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x10},{'field':_0x157a68('0xc'),'alias':_0x157a68('0x110'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x10},{'field':'queue','alias':_0x157a68('0xee'),'groupBy':0x1,'ReportId':0x11},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x7a'),'function':'COUNT\x20DISTINCT','ReportId':0x11},{'field':_0x157a68('0xdc'),'alias':'Answered','function':_0x157a68('0x8d'),'ReportId':0x11},{'field':_0x157a68('0xab'),'alias':_0x157a68('0x104'),'custom':0x1,'ReportId':0x11},{'field':_0x157a68('0x60'),'alias':_0x157a68('0xeb'),'function':'SUM','ReportId':0x11},{'field':_0x157a68('0xd3'),'alias':'Unmanaged','function':_0x157a68('0x8d'),'ReportId':0x11},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x157a68('0x100'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x11},{'field':_0x157a68('0x5e'),'alias':_0x157a68('0x40'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x11},{'field':_0x157a68('0xc'),'alias':'AvgAbandonTime','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x11},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x31'),'ReportId':0x12},{'field':_0x157a68('0x86'),'alias':_0x157a68('0x98'),'ReportId':0x12},{'field':_0x157a68('0x92'),'alias':_0x157a68('0xff'),'ReportId':0x12},{'field':_0x157a68('0xb1'),'alias':_0x157a68('0x1d'),'ReportId':0x12},{'field':_0x157a68('0x63'),'alias':_0x157a68('0xc9'),'ReportId':0x12},{'field':_0x157a68('0x50'),'alias':_0x157a68('0x74'),'ReportId':0x12},{'field':'destinationchannel','alias':_0x157a68('0x7b'),'ReportId':0x12},{'field':'lastapplication','alias':'LastApp','ReportId':0x12},{'field':'lastdata','alias':_0x157a68('0x24'),'ReportId':0x12},{'field':_0x157a68('0xcb'),'alias':_0x157a68('0xd8'),'ReportId':0x12},{'field':'answertime','alias':'AnswerTime','ReportId':0x12},{'field':'endtime','alias':_0x157a68('0x12c'),'ReportId':0x12},{'field':_0x157a68('0x36'),'alias':_0x157a68('0x62'),'ReportId':0x12},{'field':_0x157a68('0x8e'),'alias':_0x157a68('0x28'),'ReportId':0x12},{'field':_0x157a68('0xb9'),'alias':'UniqueID','ReportId':0x13},{'field':_0x157a68('0xe4'),'alias':_0x157a68('0x11e'),'ReportId':0x13},{'field':_0x157a68('0xb1'),'alias':'Source','ReportId':0x13},{'field':_0x157a68('0x63'),'alias':_0x157a68('0xc9'),'ReportId':0x13},{'field':_0x157a68('0x50'),'alias':'CallerId','ReportId':0x13},{'field':_0x157a68('0xcb'),'alias':_0x157a68('0xd8'),'ReportId':0x13},{'field':_0x157a68('0x32'),'alias':_0x157a68('0x1a'),'ReportId':0x13},{'field':_0x157a68('0x103'),'alias':_0x157a68('0x12c'),'ReportId':0x13},{'field':_0x157a68('0x36'),'alias':_0x157a68('0x62'),'format':_0x157a68('0x1e'),'ReportId':0x13},{'field':_0x157a68('0xb8'),'alias':'Billsec','format':_0x157a68('0x1e'),'ReportId':0x13},{'field':_0x157a68('0x8e'),'alias':_0x157a68('0x28'),'ReportId':0x13},{'field':_0x157a68('0x92'),'alias':_0x157a68('0xff'),'ReportId':0x13},{'field':'type','alias':'Type','groupBy':0x1,'ReportId':0x14},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x109'),'function':_0x157a68('0xc2'),'ReportId':0x14},{'field':_0x157a68('0x36'),'alias':_0x157a68('0x127'),'function':'SUM','format':_0x157a68('0x1e'),'ReportId':0x14},{'field':_0x157a68('0xc5'),'alias':_0x157a68('0xf5'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x14},{'field':_0x157a68('0x8e'),'alias':_0x157a68('0x28'),'groupBy':0x1,'ReportId':0x15},{'field':'uniqueid','alias':_0x157a68('0x109'),'function':_0x157a68('0xc2'),'ReportId':0x15},{'field':'duration','alias':_0x157a68('0x127'),'function':'SUM','format':_0x157a68('0x1e'),'ReportId':0x15},{'field':'ROUND(AVG(duration))','alias':_0x157a68('0xf5'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x15},{'field':_0x157a68('0xd0'),'alias':_0x157a68('0x125'),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x109'),'function':_0x157a68('0xc2'),'ReportId':0x16},{'field':_0x157a68('0x36'),'alias':_0x157a68('0x127'),'function':'SUM','format':_0x157a68('0x1e'),'ReportId':0x16},{'field':_0x157a68('0xc5'),'alias':'Avg\x20Duration','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x16},{'field':'starttime','alias':_0x157a68('0x25'),'format':_0x157a68('0x7'),'groupBy':0x1,'ReportId':0x17},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x109'),'function':'COUNT','ReportId':0x17},{'field':'duration','alias':_0x157a68('0x127'),'function':'SUM','format':_0x157a68('0x1e'),'ReportId':0x17},{'field':_0x157a68('0xc5'),'alias':_0x157a68('0xf5'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x17},{'field':'membername','alias':_0x157a68('0x125'),'groupBy':0x1,'orderBy':'ASC','ReportId':0x18},{'field':_0x157a68('0x5b'),'alias':_0x157a68('0x62'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x18},{'field':_0x157a68('0x76'),'alias':_0x157a68('0x125'),'groupBy':0x1,'ReportId':0x19},{'field':_0x157a68('0xf'),'alias':_0x157a68('0x38'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x19},{'field':_0x157a68('0x124'),'alias':_0x157a68('0xbd'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x19},{'field':'CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','alias':_0x157a68('0xcf'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x19},{'field':_0x157a68('0x76'),'alias':_0x157a68('0x125'),'ReportId':0x1a},{'field':_0x157a68('0xae'),'alias':_0x157a68('0x33'),'ReportId':0x1a},{'field':_0x157a68('0x12a'),'alias':_0x157a68('0x35'),'ReportId':0x1a},{'field':_0x157a68('0x112'),'alias':_0x157a68('0x1b'),'ReportId':0x1a},{'field':_0x157a68('0x36'),'alias':_0x157a68('0x62'),'format':_0x157a68('0x1e'),'ReportId':0x1a},{'field':_0x157a68('0x76'),'alias':_0x157a68('0x125'),'ReportId':0x1b},{'field':_0x157a68('0x6d'),'alias':_0x157a68('0x77'),'ReportId':0x1b},{'field':'type','alias':_0x157a68('0x8'),'ReportId':0x1b},{'field':'data1','alias':'Type','ReportId':0x1b},{'field':'enterAt','alias':_0x157a68('0x33'),'ReportId':0x1b},{'field':_0x157a68('0x12a'),'alias':_0x157a68('0x35'),'ReportId':0x1b},{'field':_0x157a68('0x5b'),'alias':_0x157a68('0x62'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x1b},{'field':_0x157a68('0x76'),'alias':_0x157a68('0x125'),'groupBy':0x1,'orderBy':_0x157a68('0x80'),'ReportId':0x1c},{'field':'data1','alias':_0x157a68('0x39'),'groupBy':0x1,'orderBy':_0x157a68('0x80'),'ReportId':0x1c},{'field':_0x157a68('0x5b'),'alias':_0x157a68('0x62'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x1c},{'field':_0x157a68('0x11f'),'alias':_0x157a68('0xf9'),'ReportId':0x1d},{'field':'uniqueid','alias':_0x157a68('0x2'),'ReportId':0x1d},{'field':_0x157a68('0x50'),'alias':'CallerId','ReportId':0x1d},{'field':_0x157a68('0xa1'),'alias':_0x157a68('0x79'),'ReportId':0x1d},{'field':'joinAt','alias':_0x157a68('0x1'),'orderBy':_0x157a68('0x80'),'ReportId':0x1d},{'field':_0x157a68('0x7d'),'alias':_0x157a68('0x49'),'ReportId':0x1d},{'field':_0x157a68('0x41'),'alias':'Duration','format':_0x157a68('0x1e'),'custom':0x1,'ReportId':0x1d},{'field':_0x157a68('0xb9'),'alias':'Unique\x20Id','ReportId':0x1e},{'field':_0x157a68('0x11f'),'alias':'Project\x20Name','ReportId':0x1e},{'field':_0x157a68('0x50'),'alias':'Caller\x20Id','ReportId':0x1e},{'field':_0x157a68('0x57'),'alias':'Block','ReportId':0x1e},{'field':_0x157a68('0x5a'),'alias':_0x157a68('0xf2'),'ReportId':0x1e},{'field':_0x157a68('0x5'),'alias':_0x157a68('0x125'),'groupBy':0x1,'ReportId':0x1f},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0xa3'),'function':_0x157a68('0xc2'),'ReportId':0x1f},{'field':_0x157a68('0xd'),'alias':'Total\x20Rating','function':_0x157a68('0x8d'),'ReportId':0x1f},{'field':_0x157a68('0xd'),'alias':_0x157a68('0x7c'),'function':_0x157a68('0x7f'),'ReportId':0x1f},{'field':_0x157a68('0x3f'),'alias':'Queue','groupBy':0x1,'ReportId':0x20},{'field':'uniqueid','alias':_0x157a68('0x106'),'function':'COUNT','ReportId':0x20},{'field':_0x157a68('0xd'),'alias':_0x157a68('0x45'),'function':'SUM','ReportId':0x20},{'field':'rating','alias':_0x157a68('0x7c'),'function':_0x157a68('0x7f'),'ReportId':0x20},{'field':_0x157a68('0x10b'),'alias':_0x157a68('0x9f'),'ReportId':0x21},{'field':'calleridnum','alias':_0x157a68('0x123'),'ReportId':0x21},{'field':'starttime','alias':_0x157a68('0x9b'),'orderBy':'DESC','ReportId':0x21},{'field':_0x157a68('0x3d'),'alias':_0x157a68('0xcc'),'ReportId':0x21},{'field':_0x157a68('0x73'),'alias':_0x157a68('0xe1'),'ReportId':0x21},{'field':'dropreason','alias':_0x157a68('0x4e'),'ReportId':0x21},{'field':'blacklist','alias':'BlackList','ReportId':0x21},{'field':_0x157a68('0x76'),'alias':_0x157a68('0x125'),'ReportId':0x21},{'field':_0x157a68('0x8f'),'alias':_0x157a68('0xbd'),'ReportId':0x21},{'field':_0x157a68('0x8e'),'alias':'Disposition','ReportId':0x21},{'field':_0x157a68('0xb9'),'alias':'UniqueId','ReportId':0x21},{'field':_0x157a68('0x3d'),'alias':_0x157a68('0xcc'),'groupBy':!![],'orderBy':_0x157a68('0x80'),'ReportId':0x22},{'field':'id','alias':'Calls','function':_0x157a68('0xc2'),'ReportId':0x22},{'field':'ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','alias':'Calls\x20(%)','custom':!![],'ReportId':0x22},{'field':_0x157a68('0x10b'),'alias':'Campaign\x20Name','orderBy':_0x157a68('0x80'),'groupBy':!![],'ReportId':0x23},{'field':'statedesc','alias':'State','groupBy':!![],'ReportId':0x23},{'field':'id','alias':'Total\x20Calls','function':_0x157a68('0xc2'),'ReportId':0x23},{'field':_0x157a68('0x1f'),'groupBy':!![],'orderBy':_0x157a68('0x80'),'ReportId':0x24},{'field':'id','alias':_0x157a68('0x101'),'function':'COUNT','ReportId':0x24},{'field':_0x157a68('0xe8'),'alias':'Managed','custom':!![],'ReportId':0x24},{'field':_0x157a68('0x126'),'alias':_0x157a68('0xb'),'custom':!![],'ReportId':0x24},{'field':_0x157a68('0x76'),'alias':'Agent','groupBy':!![],'orderBy':_0x157a68('0x80'),'ReportId':0x25},{'field':'id','alias':_0x157a68('0x109'),'function':_0x157a68('0xc2'),'ReportId':0x25},{'field':_0x157a68('0x58'),'alias':'AVG\x20Talk\x20Time','custom':!![],'ReportId':0x25},{'field':_0x157a68('0x8e'),'alias':_0x157a68('0x28'),'groupBy':!![],'ReportId':0x26},{'field':'id','alias':'Total','function':_0x157a68('0xc2'),'ReportId':0x26},{'field':_0x157a68('0x70'),'alias':'Total\x20(%)','custom':!![],'ReportId':0x26},{'field':_0x157a68('0x76'),'alias':_0x157a68('0x125'),'groupBy':!![],'ReportId':0x27},{'field':'disposition','alias':'Disposition','groupBy':!![],'ReportId':0x27},{'field':'id','alias':'Total','function':_0x157a68('0xc2'),'ReportId':0x27},{'field':_0x157a68('0x70'),'alias':'Total\x20(%)','custom':!![],'ReportId':0x27},{'field':_0x157a68('0x10b'),'alias':_0x157a68('0x9f'),'ReportId':0x28},{'field':_0x157a68('0x75'),'alias':_0x157a68('0x123'),'ReportId':0x28},{'field':_0x157a68('0xcb'),'alias':_0x157a68('0x9b'),'orderBy':_0x157a68('0xac'),'ReportId':0x28},{'field':_0x157a68('0x3d'),'alias':_0x157a68('0xcc'),'ReportId':0x28},{'field':_0x157a68('0x73'),'alias':_0x157a68('0xe1'),'ReportId':0x28},{'field':'dropreason','alias':_0x157a68('0x4e'),'ReportId':0x28},{'field':'blacklist','alias':_0x157a68('0x89'),'ReportId':0x28},{'field':_0x157a68('0x8f'),'alias':'Talk\x20Time','ReportId':0x28},{'field':_0x157a68('0xb9'),'alias':_0x157a68('0x2'),'ReportId':0x28},{'field':_0x157a68('0x3d'),'alias':_0x157a68('0xcc'),'groupBy':!![],'orderBy':_0x157a68('0x80'),'ReportId':0x29},{'field':'id','alias':_0x157a68('0x109'),'function':_0x157a68('0xc2'),'ReportId':0x29},{'field':_0x157a68('0x56'),'alias':'Calls\x20(%)','custom':!![],'ReportId':0x29},{'field':_0x157a68('0x10b'),'alias':'Campaign\x20Name','orderBy':_0x157a68('0x80'),'groupBy':!![],'ReportId':0x2a},{'field':_0x157a68('0x3d'),'alias':_0x157a68('0xcc'),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':_0x157a68('0x6c'),'function':'COUNT','ReportId':0x2a},{'field':'ListId','groupBy':!![],'orderBy':'ASC','ReportId':0x2b},{'field':'id','alias':_0x157a68('0x101'),'function':'COUNT','ReportId':0x2b},{'field':_0x157a68('0xe8'),'alias':_0x157a68('0xda'),'custom':!![],'ReportId':0x2b},{'field':_0x157a68('0x126'),'alias':_0x157a68('0xb'),'custom':!![],'ReportId':0x2b},{'field':'chat_websites.name','alias':_0x157a68('0x55'),'groupBy':!![],'ReportId':0x2c},{'field':_0x157a68('0xa9'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x2c},{'field':_0x157a68('0x54'),'alias':'Open','custom':!![],'ReportId':0x2c},{'field':_0x157a68('0xc1'),'alias':_0x157a68('0xaf'),'custom':!![],'ReportId':0x2c},{'field':_0x157a68('0xb7'),'alias':_0x157a68('0xef'),'custom':!![],'ReportId':0x2c},{'field':_0x157a68('0xb3'),'alias':'Abandoned','custom':!![],'ReportId':0x2c},{'field':_0x157a68('0x59'),'alias':'Web\x20Site','groupBy':!![],'ReportId':0x2d},{'field':_0x157a68('0xdd'),'alias':'Interaction\x20Time','function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2d},{'field':_0x157a68('0x6b'),'alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x2d},{'field':_0x157a68('0xd7'),'alias':_0x157a68('0x125'),'groupBy':!![],'ReportId':0x2e},{'field':_0x157a68('0x122'),'alias':_0x157a68('0xaf'),'function':_0x157a68('0x8d'),'ReportId':0x2e},{'field':_0x157a68('0xdd'),'alias':'Interaction\x20Time','function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x2e},{'field':_0x157a68('0x6b'),'alias':'AVG\x20Interaction\x20Time','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x2e},{'field':_0x157a68('0x11b'),'alias':_0x157a68('0x25'),'format':_0x157a68('0x7'),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':_0x157a68('0xa9'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x2f},{'field':_0x157a68('0xc1'),'alias':_0x157a68('0x121'),'custom':!![],'ReportId':0x2f},{'field':_0x157a68('0x21'),'alias':_0x157a68('0x2b'),'custom':!![],'ReportId':0x2f},{'field':'COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','alias':_0x157a68('0xef'),'custom':!![],'ReportId':0x2f},{'field':'ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x157a68('0xfd'),'custom':!![],'ReportId':0x2f},{'field':_0x157a68('0xb3'),'alias':'Abandoned','custom':!![],'ReportId':0x2f},{'field':_0x157a68('0x4c'),'alias':_0x157a68('0x93'),'custom':!![],'ReportId':0x2f},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x2f},{'field':_0x157a68('0x53'),'alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x2f},{'field':_0x157a68('0x20'),'alias':_0x157a68('0xee'),'groupBy':!![],'ReportId':0x30},{'field':_0x157a68('0x107'),'alias':_0x157a68('0x65'),'function':'COUNT','ReportId':0x30},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x157a68('0xca'),'custom':!![],'ReportId':0x30},{'field':_0x157a68('0x115'),'alias':_0x157a68('0x9c'),'custom':!![],'ReportId':0x30},{'field':_0x157a68('0x41'),'alias':_0x157a68('0x48'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x30},{'field':_0x157a68('0xaa'),'alias':_0x157a68('0xe9'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x30},{'field':_0x157a68('0x117'),'alias':_0x157a68('0xa6'),'groupBy':!![],'ReportId':0x31},{'field':_0x157a68('0x10e'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x31},{'field':_0x157a68('0x54'),'alias':_0x157a68('0x2f'),'custom':!![],'ReportId':0x31},{'field':_0x157a68('0xd6'),'alias':_0x157a68('0xaf'),'custom':!![],'ReportId':0x31},{'field':_0x157a68('0x117'),'alias':_0x157a68('0xa6'),'groupBy':!![],'ReportId':0x32},{'field':_0x157a68('0x82'),'alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x32},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','alias':_0x157a68('0x83'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x32},{'field':_0x157a68('0xd7'),'alias':_0x157a68('0x125'),'groupBy':!![],'ReportId':0x33},{'field':_0x157a68('0x2c'),'alias':_0x157a68('0xaf'),'function':_0x157a68('0x8d'),'ReportId':0x33},{'field':_0x157a68('0x82'),'alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x33},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x33},{'field':_0x157a68('0xf1'),'alias':'Date','format':_0x157a68('0x7'),'groupBy':!![],'custom':!![],'ReportId':0x34},{'field':_0x157a68('0x10e'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x34},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x157a68('0x121'),'custom':!![],'ReportId':0x34},{'field':_0x157a68('0xf8'),'alias':_0x157a68('0x2b'),'custom':!![],'ReportId':0x34},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':'Interaction\x20Time','function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x34},{'field':_0x157a68('0x53'),'alias':'AVG\x20Interaction\x20Time','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x34},{'field':_0x157a68('0x5d'),'alias':_0x157a68('0xee'),'groupBy':!![],'ReportId':0x35},{'field':'report_mail_queue.id','alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x35},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x157a68('0xca'),'custom':!![],'ReportId':0x35},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x157a68('0x9c'),'custom':!![],'ReportId':0x35},{'field':_0x157a68('0x41'),'alias':_0x157a68('0x48'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x35},{'field':_0x157a68('0xaa'),'alias':'AVG\x20Hold\x20Time','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x35},{'field':'openchannel_accounts.name','alias':_0x157a68('0xcd'),'groupBy':!![],'ReportId':0x36},{'field':_0x157a68('0x99'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x36},{'field':_0x157a68('0x54'),'alias':_0x157a68('0x2f'),'custom':!![],'ReportId':0x36},{'field':_0x157a68('0xd6'),'alias':_0x157a68('0xaf'),'custom':!![],'ReportId':0x36},{'field':_0x157a68('0xfe'),'alias':'Openchannel\x20Account','groupBy':!![],'ReportId':0x37},{'field':_0x157a68('0x102'),'alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x37},{'field':_0x157a68('0xf6'),'alias':'AVG\x20Interaction\x20Time','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x37},{'field':_0x157a68('0xd7'),'alias':_0x157a68('0x125'),'groupBy':!![],'ReportId':0x38},{'field':_0x157a68('0xbc'),'alias':_0x157a68('0xaf'),'function':_0x157a68('0x8d'),'ReportId':0x38},{'field':_0x157a68('0x102'),'alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x38},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x38},{'field':'openchannel_interactions.createdAt','alias':_0x157a68('0x25'),'format':_0x157a68('0x7'),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x157a68('0x99'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x39},{'field':_0x157a68('0xd6'),'alias':'Completed','custom':!![],'ReportId':0x39},{'field':_0x157a68('0xf8'),'alias':_0x157a68('0x2b'),'custom':!![],'ReportId':0x39},{'field':_0x157a68('0x7e'),'alias':'Interaction\x20Time','function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x39},{'field':_0x157a68('0x53'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x39},{'field':_0x157a68('0x90'),'alias':'Queue','groupBy':!![],'ReportId':0x3a},{'field':_0x157a68('0xe2'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x3a},{'field':_0x157a68('0x10d'),'alias':_0x157a68('0xca'),'custom':!![],'ReportId':0x3a},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x157a68('0x9c'),'custom':!![],'ReportId':0x3a},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x157a68('0x48'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':_0x157a68('0xaa'),'alias':'AVG\x20Hold\x20Time','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x3a},{'field':_0x157a68('0x71'),'alias':'Sms\x20Account','groupBy':!![],'ReportId':0x3b},{'field':_0x157a68('0x4'),'alias':'Interactions','function':'COUNT','ReportId':0x3b},{'field':_0x157a68('0x54'),'alias':_0x157a68('0x2f'),'custom':!![],'ReportId':0x3b},{'field':_0x157a68('0xd6'),'alias':'Closed','custom':!![],'ReportId':0x3b},{'field':_0x157a68('0x71'),'alias':_0x157a68('0x46'),'groupBy':!![],'ReportId':0x3c},{'field':_0x157a68('0x88'),'alias':_0x157a68('0xd2'),'function':'SUM','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x3c},{'field':_0x157a68('0x5c'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3c},{'field':'users.fullname','alias':_0x157a68('0x125'),'groupBy':!![],'ReportId':0x3d},{'field':_0x157a68('0x17'),'alias':'Closed','function':_0x157a68('0x8d'),'ReportId':0x3d},{'field':_0x157a68('0x88'),'alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3d},{'field':_0x157a68('0x5c'),'alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x3d},{'field':_0x157a68('0xc6'),'alias':'Date','format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':_0x157a68('0x4'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x3e},{'field':_0x157a68('0xd6'),'alias':'Completed','custom':!![],'ReportId':0x3e},{'field':_0x157a68('0xf8'),'alias':_0x157a68('0x2b'),'custom':!![],'ReportId':0x3e},{'field':_0x157a68('0x7e'),'alias':_0x157a68('0xd2'),'function':'SUM','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x3e},{'field':_0x157a68('0x53'),'alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x3e},{'field':_0x157a68('0xde'),'alias':_0x157a68('0xee'),'groupBy':!![],'ReportId':0x3f},{'field':'report_sms_queue.id','alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x3f},{'field':_0x157a68('0x10d'),'alias':'Accepted','custom':!![],'ReportId':0x3f},{'field':_0x157a68('0x115'),'alias':_0x157a68('0x9c'),'custom':!![],'ReportId':0x3f},{'field':_0x157a68('0x41'),'alias':_0x157a68('0x48'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x3f},{'field':_0x157a68('0xaa'),'alias':_0x157a68('0xe9'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3f},{'field':_0x157a68('0x2d'),'alias':_0x157a68('0xee'),'groupBy':!![],'ReportId':0x44},{'field':_0x157a68('0x96'),'alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x44},{'field':_0x157a68('0x10d'),'alias':'Accepted','custom':!![],'ReportId':0x44},{'field':_0x157a68('0x115'),'alias':_0x157a68('0x9c'),'custom':!![],'ReportId':0x44},{'field':_0x157a68('0x41'),'alias':'Hold\x20Time','function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x44},{'field':_0x157a68('0xaa'),'alias':_0x157a68('0xe9'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x44},{'field':_0x157a68('0xa'),'alias':'Date','format':_0x157a68('0x7'),'groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0x157a68('0x78'),'alias':'Interactions','function':_0x157a68('0xc2'),'ReportId':0x43},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x157a68('0x121'),'custom':!![],'ReportId':0x43},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x157a68('0x2b'),'custom':!![],'ReportId':0x43},{'field':_0x157a68('0x7e'),'alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x43},{'field':_0x157a68('0x53'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x43},{'field':_0x157a68('0xd7'),'alias':'Agent','groupBy':!![],'ReportId':0x42},{'field':_0x157a68('0x114'),'alias':_0x157a68('0xaf'),'function':_0x157a68('0x8d'),'ReportId':0x42},{'field':_0x157a68('0x10'),'alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x42},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','alias':_0x157a68('0x83'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x42},{'field':_0x157a68('0x29'),'alias':'Fax\x20Account','groupBy':!![],'ReportId':0x41},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x41},{'field':_0x157a68('0xce'),'alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x41},{'field':'fax_accounts.name','alias':_0x157a68('0x51'),'groupBy':!![],'ReportId':0x40},{'field':_0x157a68('0x78'),'alias':_0x157a68('0x65'),'function':'COUNT','ReportId':0x40},{'field':_0x157a68('0x54'),'alias':_0x157a68('0x2f'),'custom':!![],'ReportId':0x40},{'field':_0x157a68('0xd6'),'alias':_0x157a68('0xaf'),'custom':!![],'ReportId':0x40},{'field':_0x157a68('0x12'),'alias':'UserId','groupBy':!![],'custom':![],'ReportId':0x4a},{'field':_0x157a68('0xd7'),'alias':'Full\x20Name','groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x157a68('0xb5'),'alias':_0x157a68('0x11a'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','alias':_0x157a68('0x64'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x157a68('0x8a'),'alias':'NEUTRAL','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x157a68('0x87'),'alias':'MIXED','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x157a68('0x94'),'alias':_0x157a68('0xf7'),'function':_0x157a68('0xc2'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x157a68('0x97'),'alias':_0x157a68('0x42'),'groupBy':![],'custom':!![],'ReportId':0x45},{'field':_0x157a68('0xfb'),'alias':'Negative(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x157a68('0x72'),'alias':_0x157a68('0x67'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x157a68('0x27'),'alias':_0x157a68('0xbb'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x157a68('0x94'),'alias':_0x157a68('0x2e'),'function':_0x157a68('0xc2'),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','alias':_0x157a68('0x11a'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x157a68('0x105'),'alias':'NEGATIVE','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x157a68('0x8a'),'alias':'NEUTRAL','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x157a68('0x87'),'alias':'MIXED','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x157a68('0x97'),'alias':_0x157a68('0x42'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x157a68('0xfb'),'alias':_0x157a68('0x81'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x157a68('0x72'),'alias':'Neutral(%)','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x157a68('0x27'),'alias':_0x157a68('0xbb'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'whatsapp_accounts.name','alias':_0x157a68('0x12b'),'groupBy':!![],'ReportId':0x45},{'field':'whatsapp_interactions.id','alias':_0x157a68('0x65'),'function':_0x157a68('0xc2'),'ReportId':0x45},{'field':_0x157a68('0x54'),'alias':_0x157a68('0x2f'),'custom':!![],'ReportId':0x45},{'field':_0x157a68('0xd6'),'alias':_0x157a68('0xaf'),'custom':!![],'ReportId':0x45},{'field':_0x157a68('0x0'),'alias':_0x157a68('0x12b'),'groupBy':!![],'ReportId':0x46},{'field':_0x157a68('0x52'),'alias':_0x157a68('0xd2'),'function':'SUM','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x46},{'field':_0x157a68('0x119'),'alias':_0x157a68('0x83'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x46},{'field':_0x157a68('0xd7'),'alias':_0x157a68('0x125'),'groupBy':!![],'ReportId':0x47},{'field':'whatsapp_interactions.closed','alias':_0x157a68('0xaf'),'function':_0x157a68('0x8d'),'ReportId':0x47},{'field':_0x157a68('0x52'),'alias':_0x157a68('0xd2'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x47},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x47},{'field':_0x157a68('0x95'),'alias':_0x157a68('0x25'),'format':_0x157a68('0x7'),'groupBy':!![],'custom':!![],'ReportId':0x48},{'field':'whatsapp_interactions.id','alias':_0x157a68('0x65'),'function':'COUNT','ReportId':0x48},{'field':_0x157a68('0xd6'),'alias':_0x157a68('0x121'),'custom':!![],'ReportId':0x48},{'field':_0x157a68('0xf8'),'alias':_0x157a68('0x2b'),'custom':!![],'ReportId':0x48},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':'Interaction\x20Time','function':_0x157a68('0x8d'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x48},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x157a68('0x83'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x48},{'field':'whatsapp_queues.name','alias':_0x157a68('0xee'),'groupBy':!![],'ReportId':0x49},{'field':_0x157a68('0x3e'),'alias':_0x157a68('0x65'),'function':'COUNT','ReportId':0x49},{'field':_0x157a68('0x10d'),'alias':_0x157a68('0xca'),'custom':!![],'ReportId':0x49},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x157a68('0x9c'),'custom':!![],'ReportId':0x49},{'field':_0x157a68('0x41'),'alias':_0x157a68('0x48'),'function':_0x157a68('0x8d'),'format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x49},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':'AVG\x20Hold\x20Time','format':_0x157a68('0x1e'),'custom':!![],'ReportId':0x49}];return _[_0x157a68('0x4d')](_0x559fae,'ReportId');}; \ No newline at end of file +const a869_0x7f70=['Closed','DATE','CallerIdNum','EndTime','Mixed(%)','endtime','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','QueueExitAt','sms_interactions.id','Total\x20Rating','AgentExtension','UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','IF(queuecallercomplete=1,holdtime,null)','Drop\x20Reason','Avg\x20Rating','Interactions','AgentACWTime','voice_recordings.sentiment','fax_interactions.createdAt','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','answertime','acwtime','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','Queue','DID','node','queuecallerjoinat','statedesc','ROUND(AVG(talktime))','Avg\x20Handle\x20Time','Reason','StartTime','DAYNAME(queuecallerjoinat)','agentconnectAt','report_whatsapp_queue.id','QueueAbandonAt','type','ReportId','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','Tot\x20Answered','openchannel_interactions.closed','Type','Tot\x20Duration','ASC','enterAt','NEUTRAL','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','holdtime','Whatsapp\x20Account','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','Talk\x20Time','duration','whatsapp_accounts.name','Disposition','Start\x20Time','Complete','queuecallerleaveAt','DestChannel','BlackList','Global\x20Count','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','HOUR','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','ROUND(AVG(acwtime))','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','fax_interactions.closed','fax_accounts.name','Answer\x20Rate','Contacts','users.fullname','Recorded\x20Calls','Tot\x20AbandonTime','Total\x20Calls','queue','UnmanagedAt','countglobal','Abandoned<10s','fax_queues.name','Total\x20(%)','openchannel_accounts.name','ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','UnmanagedReason','ListId','Abandoned\x2010-60s','Block','HoldTime','Offered','SUM','COUNT(IF(closed=1,1,NULL))','agentacw','DayOfWeek','SUM(IF(state=4,1,0))','Tot\x20TalkTime','lastevent','Calls','data1','source','dnid','Completed','chat_interactions.createdAt','Abandon\x20Time','Fax\x20Account','Day','ROUND(COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))/COUNT(id)\x20*100,1)','queuecallerexitreason','mail_interactions.id','AbandonAt','campaign','Tot\x20ACWTime','Avg\x20ACWTime','reason','agentcompleteAt','Billsec','Abandoned\x2060-120s','TalkTime','talktime\x20+\x20acwtime','Event','Tot\x20Unmanaged\x20Time','Open','Avg\x20Duration','State','rating','Managed','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','Answered\x2020-30s','report_sms_queue.id','whatsapp_interactions.id','Answer\x20Rate\x2020-30s','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','Source','PauseType','Date','Abandoned\x20Rate<10s','UniqueId','exten','Full\x20Name','Tot\x20Abandoned','LastCallAt','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))\x20\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','report_fax_queue.id','COUNT(IF(holdtime<10,1,NULL))','AVG','ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','Answered','openchannel_queues.name','data','LastEvent','interface','Unique\x20Id','connectedlinename','Abandoned\x20Rate\x2010-60s','CallerId','COUNT(IF(closed=0,1,NULL))','AVG\x20Talk\x20Time','AVG\x20Interaction\x20Time','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','Pause\x20Time','chat_websites.name','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','QueueAbandon','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','exports','AnswerTime','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','SEC_TO_TIME','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','MIXED','dropreason','Abandon','project_name','Penetration\x20Rate','ExitAt','Web\x20Site','Unmanaged\x20(%)','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','Hour','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','Sentiment\x20TOT','AgentComplete','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','report_mail_queue.id','QueueExit','NEGATIVE','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','Data','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','openchannel_interactions.createdAt','Unmanaged','leaveAt','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','mail_interactions.closed','Tag','queuecallerjoinAt','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','ROUND(AVG(holdtime))','callerid','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','Answer\x20Rate\x20<10s','Accepted','lodash','Pause','Abandoned\x20(%)','calleridname','UniqueID','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','Login\x20Time','Unmanaged\x20HoldTime','AgentConnectAt','JoinAt','Hold\x20Time','Negative(%)','queuecallerabandonAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','End\x20Time','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','HangupReason','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','queuecallercompleteAt','calleridnum','Campaign\x20Name','Abandoned>120s','fax_interactions.id','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','Answer\x20Rate\x20>30s','Positive(%)','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','disposition','sms_interactions.closed','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','openchannel_interactions.id','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','agentcomplete','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','DESC','AvgHandleTime','membername','starttime','mail_queues.name','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','agentcalledAt','uniqueid','destination','ROUND(AVG(duration))','blacklist','joinAt','groupBy','lastapplication','chat_interactions.id','Email\x20Account','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','Interaction\x20Time','sms_accounts.name','Duration','whatsapp_interactions.createdAt','COUNT(IF(holdtime\x20>=30,1,NULL))','EnterAt','ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','tag','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','accountcode','Calls\x20(%)','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','AVG\x20Hold\x20Time','sms_queues.name','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','COUNT(IF(reason=\x27timeout\x27,1,NULL))','talktime','Avg\x20HoldTime','Neutral(%)','TOT','queuecallerabandon','AgentACW','mail_accounts.name','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','whatsapp_queues.name','AvgTalkTime','AgentCalledAt','report_openchannel_queue.id','TotTalkTime','Answered\x2010-20s','QueueExitReason','Rated\x20Calls','Openchannel\x20Account','queuecallerexitAt','lastdata','AbandonTime','queuecallerexit','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','AvgAbandonTime','COUNT(IF(reason=\x27accepted\x27,1,NULL))','LastApp','Abandoned\x20Rate>120s','Abandoned','DAY(queuecallerjoinat)','LeaveAt','COUNT','Total','Completed\x20(%)','QueuePosition','chat_interactions.closed','COUNT\x20DISTINCT','destinationchannel','POSITIVE','Agent','CallerID','Timeout','Tot\x20HoldTime','CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','Answered\x20>30s','queuecallercomplete','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)'];(function(_0xf7ec1f,_0x7f7021){const _0x25c403=function(_0x1818d6){while(--_0x1818d6){_0xf7ec1f['push'](_0xf7ec1f['shift']());}};_0x25c403(++_0x7f7021);}(a869_0x7f70,0x1f1));const a869_0x25c4=function(_0xf7ec1f,_0x7f7021){_0xf7ec1f=_0xf7ec1f-0x0;let _0x25c403=a869_0x7f70[_0xf7ec1f];return _0x25c403;};const _0x12aa89=a869_0x25c4;'use strict';const _=require(_0x12aa89('0x19'));module[_0x12aa89('0x12f')]=function(){const _0x279748=_0x12aa89,_0x1818d6=[{'field':_0x279748('0x42'),'alias':_0x279748('0x111'),'ReportId':0x1},{'field':'calleridnum','alias':'CallerIdNum','ReportId':0x1},{'field':_0x279748('0x1c'),'alias':'CallerIdName','ReportId':0x1},{'field':_0x279748('0xd5'),'alias':'Queue','ReportId':0x1},{'field':_0x279748('0x12'),'alias':'QueueJoinAt','ReportId':0x1},{'field':_0x279748('0xc4'),'alias':'QueueLeaveAt','ReportId':0x1},{'field':'queuecallerabandon','alias':_0x279748('0x12c'),'ReportId':0x1},{'field':'queuecallerabandonAt','alias':_0x279748('0xaf'),'ReportId':0x1},{'field':_0x279748('0x88'),'alias':_0x279748('0xc3'),'ReportId':0x1},{'field':_0x279748('0x2b'),'alias':'CompleteAt','ReportId':0x1},{'field':_0x279748('0x71'),'alias':_0x279748('0x5'),'ReportId':0x1},{'field':_0x279748('0x6e'),'alias':_0x279748('0x92'),'ReportId':0x1},{'field':'queuecallerexitreason','alias':_0x279748('0x6b'),'ReportId':0x1},{'field':_0x279748('0x112'),'alias':'DID','ReportId':0x1},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':'TalkTime','format':_0x279748('0x132'),'custom':0x1,'ReportId':0x1},{'field':_0x279748('0x96'),'alias':_0x279748('0x70'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x1},{'field':_0x279748('0x97'),'alias':_0x279748('0x130'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x1},{'field':_0x279748('0x2c'),'alias':'CallerID','ReportId':0x2},{'field':_0x279748('0xd5'),'alias':_0x279748('0xa3'),'ReportId':0x2},{'field':_0x279748('0x12'),'alias':_0x279748('0xab'),'ReportId':0x2},{'field':_0x279748('0x58'),'alias':_0x279748('0x8e'),'custom':0x1,'ReportId':0x2},{'field':_0x279748('0xbb'),'alias':_0x279748('0xe1'),'format':_0x279748('0x132'),'ReportId':0x2},{'field':_0x279748('0xd'),'alias':_0x279748('0x11b'),'custom':0x1,'ReportId':0x2},{'field':_0x279748('0x42'),'alias':'UniqueId','ReportId':0x3},{'field':_0x279748('0x2c'),'alias':_0x279748('0x8d'),'ReportId':0x3},{'field':_0x279748('0x1c'),'alias':'CallerIdName','ReportId':0x3},{'field':_0x279748('0xd5'),'alias':_0x279748('0xa3'),'ReportId':0x3},{'field':'membername','alias':_0x279748('0x82'),'ReportId':0x3},{'field':_0x279748('0x41'),'alias':_0x279748('0x67'),'ReportId':0x3},{'field':_0x279748('0xad'),'alias':_0x279748('0x21'),'ReportId':0x3},{'field':_0x279748('0xfb'),'alias':'AgentCompleteAt','ReportId':0x3},{'field':'holdtime','alias':'AnswerTime','ReportId':0x3},{'field':_0x279748('0x5d'),'alias':_0x279748('0xfe'),'ReportId':0x3},{'field':_0x279748('0xe5'),'alias':_0x279748('0x62'),'ReportId':0x3},{'field':'acwtime','alias':_0x279748('0x9b'),'ReportId':0x3},{'field':_0x279748('0x39'),'alias':_0x279748('0x2'),'ReportId':0x3},{'field':'reason','alias':_0x279748('0x29'),'ReportId':0x3},{'field':_0x279748('0xe9'),'alias':_0x279748('0x11e'),'ReportId':0x3},{'field':_0x279748('0x112'),'alias':_0x279748('0xa4'),'ReportId':0x3},{'field':_0x279748('0x3d'),'alias':_0x279748('0x82'),'groupBy':0x1,'ReportId':0x4},{'field':_0x279748('0x39'),'alias':'Completed','function':_0x279748('0xe3'),'ReportId':0x4},{'field':_0x279748('0x5d'),'alias':_0x279748('0x69'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'ReportId':0x4},{'field':_0x279748('0xa1'),'alias':'TotACWTime','function':'SUM','format':_0x279748('0x132'),'ReportId':0x4},{'field':'talktime\x20+\x20acwtime','alias':'TotHandleTime','function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x4},{'field':_0x279748('0xa8'),'alias':_0x279748('0x66'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':_0x279748('0xcb'),'alias':'AvgACWTime','format':_0x279748('0x132'),'custom':0x1,'ReportId':0x4},{'field':_0x279748('0x11a'),'alias':_0x279748('0x3c'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x4},{'field':_0x279748('0xd5'),'alias':_0x279748('0xa3'),'groupBy':0x1,'ReportId':0x5},{'field':_0x279748('0x39'),'alias':_0x279748('0xee'),'function':_0x279748('0xe3'),'ReportId':0x5},{'field':'talktime','alias':'Tot\x20TalkTime','function':_0x279748('0xe3'),'format':'SEC_TO_TIME','ReportId':0x5},{'field':'holdtime','alias':_0x279748('0x85'),'function':'SUM','format':'SEC_TO_TIME','ReportId':0x5},{'field':'acwtime','alias':_0x279748('0xf8'),'function':'SUM','format':_0x279748('0x132'),'ReportId':0x5},{'field':_0x279748('0xff'),'alias':'Tot\x20Handle\x20Time','function':'SUM','format':_0x279748('0x132'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(talktime))','alias':'Avg\x20TalkTime','format':_0x279748('0x132'),'custom':0x1,'ReportId':0x5},{'field':_0x279748('0x14'),'alias':_0x279748('0x5e'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(acwtime))','alias':_0x279748('0xf9'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x5},{'field':_0x279748('0x11a'),'alias':_0x279748('0xa9'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x5},{'field':'queue','alias':_0x279748('0xa3'),'groupBy':0x1,'ReportId':0x6},{'field':_0x279748('0x39'),'alias':_0x279748('0xb3'),'function':_0x279748('0xe3'),'ReportId':0x6},{'field':'COUNT(IF(holdtime<10,1,NULL))','alias':'Answered\x20<10s','custom':0x1,'ReportId':0x6},{'field':_0x279748('0x38'),'alias':_0x279748('0x17'),'custom':0x1,'ReportId':0x6},{'field':_0x279748('0x2a'),'alias':_0x279748('0x6a'),'custom':0x1,'ReportId':0x6},{'field':_0x279748('0xdc'),'alias':'Answer\x20Rate\x2010-20s','custom':0x1,'ReportId':0x6},{'field':_0x279748('0x127'),'alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x6},{'field':_0x279748('0x91'),'alias':_0x279748('0x10b'),'custom':0x1,'ReportId':0x6},{'field':_0x279748('0x50'),'alias':_0x279748('0x87'),'custom':0x1,'ReportId':0x6},{'field':_0x279748('0x52'),'alias':_0x279748('0x31'),'custom':0x1,'ReportId':0x6},{'field':_0x279748('0xfa'),'alias':'Reason','groupBy':0x1,'ReportId':0x7},{'field':'uniqueid','alias':_0x279748('0xea'),'function':_0x279748('0x7a'),'ReportId':0x7},{'field':_0x279748('0xad'),'alias':_0x279748('0x13d'),'format':_0x279748('0xc9'),'groupBy':0x1,'ReportId':0x8},{'field':_0x279748('0x39'),'alias':'Tot\x20Answered','function':_0x279748('0xe3'),'ReportId':0x8},{'field':_0x279748('0x118'),'alias':'Answered\x20<10s','custom':0x1,'ReportId':0x8},{'field':_0x279748('0x2a'),'alias':_0x279748('0x6a'),'custom':0x1,'ReportId':0x8},{'field':_0x279748('0x127'),'alias':_0x279748('0x108'),'custom':0x1,'ReportId':0x8},{'field':'COUNT(IF(holdtime\x20>=30,1,NULL))','alias':_0x279748('0x87'),'custom':0x1,'ReportId':0x8},{'field':_0x279748('0x42'),'alias':_0x279748('0x111'),'ReportId':0x9},{'field':_0x279748('0x2c'),'alias':_0x279748('0x8d'),'ReportId':0x9},{'field':'queue','alias':'Queue','ReportId':0x9},{'field':_0x279748('0x12'),'alias':_0x279748('0x22'),'ReportId':0x9},{'field':_0x279748('0xc4'),'alias':_0x279748('0x79'),'ReportId':0x9},{'field':'queuecallerabandon','alias':_0x279748('0x136'),'ReportId':0x9},{'field':_0x279748('0x25'),'alias':_0x279748('0xf6'),'ReportId':0x9},{'field':_0x279748('0x71'),'alias':_0x279748('0xb'),'ReportId':0x9},{'field':'queuecallerexitAt','alias':_0x279748('0xd6'),'ReportId':0x9},{'field':_0x279748('0xf4'),'alias':_0x279748('0xdd'),'ReportId':0x9},{'field':'position','alias':_0x279748('0x7d'),'ReportId':0x9},{'field':_0x279748('0x112'),'alias':_0x279748('0xa4'),'ReportId':0x9},{'field':'UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x279748('0xf0'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x9},{'field':'UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x279748('0x20'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x9},{'field':_0x279748('0xd5'),'alias':_0x279748('0xa3'),'groupBy':0x1,'ReportId':0xa},{'field':_0x279748('0x61'),'alias':_0x279748('0x77'),'function':_0x279748('0xe3'),'ReportId':0xa},{'field':_0x279748('0x71'),'alias':_0x279748('0xb'),'function':_0x279748('0xe3'),'ReportId':0xa},{'field':_0x279748('0x96'),'alias':_0x279748('0xd3'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0xa},{'field':_0x279748('0x30'),'alias':_0x279748('0x73'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':'UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x279748('0x101'),'function':'SUM','format':_0x279748('0x132'),'custom':0x1,'ReportId':0xa},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':'Avg\x20Unmanaged\x20TIme','format':_0x279748('0x132'),'custom':0x1,'ReportId':0xa},{'field':'queuecallerexitreason','alias':_0x279748('0xaa'),'groupBy':0x1,'ReportId':0xb},{'field':_0x279748('0x71'),'alias':'Calls','function':'SUM','ReportId':0xb},{'field':_0x279748('0x16'),'alias':_0x279748('0x101'),'function':_0x279748('0xe3'),'custom':0x1,'ReportId':0xb},{'field':_0x279748('0xd5'),'alias':_0x279748('0xa3'),'groupBy':0x1,'ReportId':0xc},{'field':_0x279748('0x61'),'alias':_0x279748('0x114'),'function':_0x279748('0xe3'),'ReportId':0xc},{'field':_0x279748('0xcc'),'alias':_0x279748('0xd8'),'custom':0x1,'ReportId':0xc},{'field':_0x279748('0x4b'),'alias':_0x279748('0x110'),'custom':0x1,'ReportId':0xc},{'field':_0x279748('0x33'),'alias':_0x279748('0xdf'),'custom':0x1,'ReportId':0xc},{'field':_0x279748('0x9e'),'alias':_0x279748('0x122'),'custom':0x1,'ReportId':0xc},{'field':_0x279748('0x9'),'alias':_0x279748('0xfd'),'custom':0x1,'ReportId':0xc},{'field':_0x279748('0x116'),'alias':'Abandoned\x20Rate\x2060-120s','custom':0x1,'ReportId':0xc},{'field':'COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','alias':_0x279748('0x2e'),'custom':0x1,'ReportId':0xc},{'field':_0x279748('0x13'),'alias':_0x279748('0x76'),'custom':0x1,'ReportId':0xc},{'field':_0x279748('0xa6'),'alias':_0x279748('0x10f'),'format':_0x279748('0x8c'),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':'uniqueid','alias':_0x279748('0xe2'),'function':_0x279748('0x7f'),'ReportId':0xd},{'field':_0x279748('0x88'),'alias':_0x279748('0xee'),'function':_0x279748('0xe3'),'ReportId':0xd},{'field':_0x279748('0x61'),'alias':_0x279748('0x77'),'function':_0x279748('0xe3'),'custom':0x1,'ReportId':0xd},{'field':_0x279748('0x71'),'alias':_0x279748('0xb'),'function':_0x279748('0xe3'),'custom':0x1,'ReportId':0xd},{'field':_0x279748('0x12e'),'alias':_0x279748('0xe8'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0xd},{'field':_0x279748('0xa2'),'alias':'AvgTalkTime','format':_0x279748('0x132'),'custom':0x1,'ReportId':0xd},{'field':_0x279748('0x30'),'alias':_0x279748('0x73'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0xd},{'field':_0x279748('0xa6'),'alias':_0x279748('0x13d'),'format':'HOUR','groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':'uniqueid','alias':_0x279748('0xe2'),'function':_0x279748('0x7f'),'ReportId':0xe},{'field':_0x279748('0x88'),'alias':_0x279748('0x11b'),'function':'SUM','ReportId':0xe},{'field':_0x279748('0x131'),'alias':_0x279748('0xcf'),'custom':0x1,'ReportId':0xe},{'field':_0x279748('0x61'),'alias':_0x279748('0x77'),'function':_0x279748('0xe3'),'ReportId':0xe},{'field':'queuecallerexit','alias':_0x279748('0xb'),'function':_0x279748('0xe3'),'ReportId':0xe},{'field':_0x279748('0x12e'),'alias':_0x279748('0xe8'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0xe},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':'AvgTalkTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':_0x279748('0x30'),'alias':'AvgAbandonTime','format':_0x279748('0x132'),'custom':0x1,'ReportId':0xe},{'field':_0x279748('0x78'),'alias':_0x279748('0xf2'),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':'uniqueid','alias':_0x279748('0xe2'),'function':_0x279748('0x7f'),'ReportId':0xf},{'field':_0x279748('0x88'),'alias':_0x279748('0x11b'),'function':_0x279748('0xe3'),'ReportId':0xf},{'field':_0x279748('0x131'),'alias':_0x279748('0xcf'),'custom':0x1,'ReportId':0xf},{'field':'queuecallerabandon','alias':_0x279748('0x77'),'function':'SUM','ReportId':0xf},{'field':_0x279748('0x71'),'alias':'Unmanaged','function':_0x279748('0xe3'),'ReportId':0xf},{'field':_0x279748('0x12e'),'alias':_0x279748('0xe8'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0xf},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':'AvgTalkTime','format':_0x279748('0x132'),'custom':0x1,'ReportId':0xf},{'field':_0x279748('0x30'),'alias':_0x279748('0x73'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0xf},{'field':_0x279748('0xac'),'alias':_0x279748('0xe6'),'groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':_0x279748('0x42'),'alias':'Offered','function':_0x279748('0x7f'),'ReportId':0x10},{'field':_0x279748('0x88'),'alias':'Answered','function':_0x279748('0xe3'),'ReportId':0x10},{'field':_0x279748('0x131'),'alias':_0x279748('0xcf'),'custom':0x1,'ReportId':0x10},{'field':_0x279748('0x61'),'alias':_0x279748('0x77'),'function':_0x279748('0xe3'),'orderBy':_0x279748('0xb7'),'ReportId':0x10},{'field':_0x279748('0x71'),'alias':_0x279748('0xb'),'function':_0x279748('0xe3'),'ReportId':0x10},{'field':_0x279748('0x12e'),'alias':_0x279748('0xe8'),'function':_0x279748('0xe3'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x10},{'field':_0x279748('0xa2'),'alias':_0x279748('0x66'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x10},{'field':_0x279748('0x30'),'alias':_0x279748('0x73'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x10},{'field':_0x279748('0xd5'),'alias':_0x279748('0xa3'),'groupBy':0x1,'ReportId':0x11},{'field':_0x279748('0x42'),'alias':_0x279748('0xe2'),'function':_0x279748('0x7f'),'ReportId':0x11},{'field':_0x279748('0x88'),'alias':_0x279748('0x11b'),'function':_0x279748('0xe3'),'ReportId':0x11},{'field':_0x279748('0x131'),'alias':'Answer\x20Rate','custom':0x1,'ReportId':0x11},{'field':_0x279748('0x61'),'alias':_0x279748('0x77'),'function':_0x279748('0xe3'),'ReportId':0x11},{'field':'queuecallerexit','alias':_0x279748('0xb'),'function':_0x279748('0xe3'),'ReportId':0x11},{'field':_0x279748('0x12e'),'alias':_0x279748('0xe8'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x11},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x279748('0x66'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x11},{'field':_0x279748('0x30'),'alias':_0x279748('0x73'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x11},{'field':_0x279748('0x42'),'alias':_0x279748('0x1d'),'ReportId':0x12},{'field':_0x279748('0xb0'),'alias':_0x279748('0xb5'),'ReportId':0x12},{'field':_0x279748('0x53'),'alias':_0x279748('0x11'),'ReportId':0x12},{'field':_0x279748('0xec'),'alias':_0x279748('0x10d'),'ReportId':0x12},{'field':_0x279748('0x43'),'alias':'Destination','ReportId':0x12},{'field':_0x279748('0x15'),'alias':_0x279748('0x83'),'ReportId':0x12},{'field':_0x279748('0x80'),'alias':_0x279748('0xc5'),'ReportId':0x12},{'field':_0x279748('0x48'),'alias':_0x279748('0x75'),'ReportId':0x12},{'field':_0x279748('0x6f'),'alias':'LastData','ReportId':0x12},{'field':_0x279748('0x3e'),'alias':_0x279748('0xab'),'ReportId':0x12},{'field':_0x279748('0xa0'),'alias':'AnswerTime','ReportId':0x12},{'field':_0x279748('0x90'),'alias':_0x279748('0x8e'),'ReportId':0x12},{'field':_0x279748('0xbf'),'alias':_0x279748('0x4e'),'ReportId':0x12},{'field':_0x279748('0x34'),'alias':_0x279748('0xc1'),'ReportId':0x12},{'field':'uniqueid','alias':_0x279748('0x1d'),'ReportId':0x13},{'field':_0x279748('0x55'),'alias':_0x279748('0x95'),'ReportId':0x13},{'field':_0x279748('0xec'),'alias':_0x279748('0x10d'),'ReportId':0x13},{'field':'destination','alias':'Destination','ReportId':0x13},{'field':_0x279748('0x15'),'alias':_0x279748('0x123'),'ReportId':0x13},{'field':'starttime','alias':_0x279748('0xab'),'ReportId':0x13},{'field':'answertime','alias':'AnswerTime','ReportId':0x13},{'field':_0x279748('0x90'),'alias':'EndTime','ReportId':0x13},{'field':_0x279748('0xbf'),'alias':_0x279748('0x4e'),'format':_0x279748('0x132'),'ReportId':0x13},{'field':'billableseconds','alias':_0x279748('0xfc'),'format':'SEC_TO_TIME','ReportId':0x13},{'field':_0x279748('0x34'),'alias':'Disposition','ReportId':0x13},{'field':_0x279748('0x53'),'alias':_0x279748('0x11'),'ReportId':0x13},{'field':'type','alias':_0x279748('0xb5'),'groupBy':0x1,'ReportId':0x14},{'field':_0x279748('0x42'),'alias':_0x279748('0xea'),'function':'COUNT','ReportId':0x14},{'field':_0x279748('0xbf'),'alias':_0x279748('0xb6'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'ReportId':0x14},{'field':_0x279748('0x44'),'alias':'Avg\x20Duration','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x14},{'field':_0x279748('0x34'),'alias':_0x279748('0xc1'),'groupBy':0x1,'ReportId':0x15},{'field':_0x279748('0x42'),'alias':'Calls','function':'COUNT','ReportId':0x15},{'field':_0x279748('0xbf'),'alias':_0x279748('0xb6'),'function':_0x279748('0xe3'),'format':'SEC_TO_TIME','ReportId':0x15},{'field':_0x279748('0x44'),'alias':_0x279748('0x103'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x15},{'field':'SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','alias':_0x279748('0x82'),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':_0x279748('0x42'),'alias':_0x279748('0xea'),'function':'COUNT','ReportId':0x16},{'field':_0x279748('0xbf'),'alias':_0x279748('0xb6'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'ReportId':0x16},{'field':_0x279748('0x44'),'alias':_0x279748('0x103'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x16},{'field':'starttime','alias':_0x279748('0x10f'),'format':'DATE','groupBy':0x1,'ReportId':0x17},{'field':_0x279748('0x42'),'alias':'Calls','function':_0x279748('0x7a'),'ReportId':0x17},{'field':_0x279748('0xbf'),'alias':_0x279748('0xb6'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'ReportId':0x17},{'field':_0x279748('0x44'),'alias':'Avg\x20Duration','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x17},{'field':_0x279748('0x3d'),'alias':_0x279748('0x82'),'groupBy':0x1,'orderBy':_0x279748('0xb7'),'ReportId':0x18},{'field':_0x279748('0x13c'),'alias':'Duration','function':_0x279748('0xe3'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x18},{'field':_0x279748('0x3d'),'alias':_0x279748('0x82'),'groupBy':0x1,'ReportId':0x19},{'field':_0x279748('0xb2'),'alias':_0x279748('0x1f'),'function':'SUM','format':_0x279748('0x132'),'custom':0x1,'ReportId':0x19},{'field':_0x279748('0x9f'),'alias':_0x279748('0xbe'),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x19},{'field':_0x279748('0x86'),'alias':_0x279748('0x129'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x19},{'field':'membername','alias':_0x279748('0x82'),'ReportId':0x1a},{'field':_0x279748('0xb8'),'alias':_0x279748('0x51'),'ReportId':0x1a},{'field':'exitAt','alias':_0x279748('0x139'),'ReportId':0x1a},{'field':_0x279748('0xeb'),'alias':_0x279748('0x1a'),'ReportId':0x1a},{'field':_0x279748('0xbf'),'alias':'Duration','format':'SEC_TO_TIME','ReportId':0x1a},{'field':'membername','alias':_0x279748('0x82'),'ReportId':0x1b},{'field':_0x279748('0x11f'),'alias':'Interface','ReportId':0x1b},{'field':_0x279748('0xb0'),'alias':_0x279748('0x100'),'ReportId':0x1b},{'field':_0x279748('0xeb'),'alias':'Type','ReportId':0x1b},{'field':_0x279748('0xb8'),'alias':_0x279748('0x51'),'ReportId':0x1b},{'field':'exitAt','alias':_0x279748('0x139'),'ReportId':0x1b},{'field':_0x279748('0x13c'),'alias':_0x279748('0x4e'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1b},{'field':'membername','alias':_0x279748('0x82'),'groupBy':0x1,'orderBy':_0x279748('0xb7'),'ReportId':0x1c},{'field':'data1','alias':_0x279748('0x10e'),'groupBy':0x1,'orderBy':_0x279748('0xb7'),'ReportId':0x1c},{'field':_0x279748('0x13c'),'alias':_0x279748('0x4e'),'function':_0x279748('0xe3'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1c},{'field':_0x279748('0x137'),'alias':'Project\x20Name','ReportId':0x1d},{'field':'uniqueid','alias':_0x279748('0x111'),'ReportId':0x1d},{'field':_0x279748('0x15'),'alias':'CallerId','ReportId':0x1d},{'field':_0x279748('0xed'),'alias':_0x279748('0xa4'),'ReportId':0x1d},{'field':_0x279748('0x46'),'alias':_0x279748('0xc2'),'orderBy':_0x279748('0xb7'),'ReportId':0x1d},{'field':_0x279748('0xc'),'alias':_0x279748('0x27'),'ReportId':0x1d},{'field':_0x279748('0xbd'),'alias':_0x279748('0x4e'),'format':_0x279748('0x132'),'custom':0x1,'ReportId':0x1d},{'field':'uniqueid','alias':_0x279748('0x120'),'ReportId':0x1e},{'field':_0x279748('0x137'),'alias':'Project\x20Name','ReportId':0x1e},{'field':'callerid','alias':'Caller\x20Id','ReportId':0x1e},{'field':_0x279748('0xa5'),'alias':_0x279748('0xe0'),'ReportId':0x1e},{'field':_0x279748('0x11d'),'alias':_0x279748('0x8'),'ReportId':0x1e},{'field':_0x279748('0x121'),'alias':_0x279748('0x82'),'groupBy':0x1,'ReportId':0x1f},{'field':_0x279748('0x42'),'alias':_0x279748('0xd2'),'function':_0x279748('0x7a'),'ReportId':0x1f},{'field':_0x279748('0x105'),'alias':_0x279748('0x94'),'function':_0x279748('0xe3'),'ReportId':0x1f},{'field':_0x279748('0x105'),'alias':_0x279748('0x99'),'function':_0x279748('0x119'),'ReportId':0x1f},{'field':_0x279748('0xd5'),'alias':_0x279748('0xa3'),'groupBy':0x1,'ReportId':0x20},{'field':_0x279748('0x42'),'alias':_0x279748('0x6c'),'function':'COUNT','ReportId':0x20},{'field':_0x279748('0x105'),'alias':_0x279748('0x94'),'function':_0x279748('0xe3'),'ReportId':0x20},{'field':_0x279748('0x105'),'alias':'Avg\x20Rating','function':_0x279748('0x119'),'ReportId':0x20},{'field':_0x279748('0xf7'),'alias':_0x279748('0x2d'),'ReportId':0x21},{'field':_0x279748('0x2c'),'alias':_0x279748('0x8d'),'ReportId':0x21},{'field':_0x279748('0x3e'),'alias':'LastCallAt','orderBy':'DESC','ReportId':0x21},{'field':'statedesc','alias':_0x279748('0x104'),'ReportId':0x21},{'field':_0x279748('0xd7'),'alias':_0x279748('0xc7'),'ReportId':0x21},{'field':_0x279748('0x135'),'alias':'Drop\x20Reason','ReportId':0x21},{'field':_0x279748('0x45'),'alias':_0x279748('0xc6'),'ReportId':0x21},{'field':'membername','alias':_0x279748('0x82'),'ReportId':0x21},{'field':_0x279748('0x5d'),'alias':'Talk\x20Time','ReportId':0x21},{'field':_0x279748('0x34'),'alias':_0x279748('0xc1'),'ReportId':0x21},{'field':_0x279748('0x42'),'alias':_0x279748('0x111'),'ReportId':0x21},{'field':_0x279748('0xa7'),'alias':_0x279748('0x104'),'groupBy':!![],'orderBy':_0x279748('0xb7'),'ReportId':0x22},{'field':'id','alias':_0x279748('0xea'),'function':_0x279748('0x7a'),'ReportId':0x22},{'field':_0x279748('0x89'),'alias':_0x279748('0x56'),'custom':!![],'ReportId':0x22},{'field':_0x279748('0xf7'),'alias':_0x279748('0x2d'),'orderBy':'ASC','groupBy':!![],'ReportId':0x23},{'field':_0x279748('0xa7'),'alias':'State','groupBy':!![],'ReportId':0x23},{'field':'id','alias':_0x279748('0xd4'),'function':_0x279748('0x7a'),'ReportId':0x23},{'field':_0x279748('0xde'),'groupBy':!![],'orderBy':_0x279748('0xb7'),'ReportId':0x24},{'field':'id','alias':_0x279748('0xd0'),'function':'COUNT','ReportId':0x24},{'field':_0x279748('0xe7'),'alias':_0x279748('0x106'),'custom':!![],'ReportId':0x24},{'field':_0x279748('0x3'),'alias':_0x279748('0x138'),'custom':!![],'ReportId':0x24},{'field':_0x279748('0x3d'),'alias':'Agent','groupBy':!![],'orderBy':_0x279748('0xb7'),'ReportId':0x25},{'field':'id','alias':_0x279748('0xea'),'function':_0x279748('0x7a'),'ReportId':0x25},{'field':'SEC_TO_TIME(AVG(talktime))','alias':_0x279748('0x125'),'custom':!![],'ReportId':0x25},{'field':_0x279748('0x34'),'alias':_0x279748('0xc1'),'groupBy':!![],'ReportId':0x26},{'field':'id','alias':_0x279748('0x7b'),'function':'COUNT','ReportId':0x26},{'field':_0x279748('0x10c'),'alias':'Total\x20(%)','custom':!![],'ReportId':0x26},{'field':'membername','alias':_0x279748('0x82'),'groupBy':!![],'ReportId':0x27},{'field':_0x279748('0x34'),'alias':'Disposition','groupBy':!![],'ReportId':0x27},{'field':'id','alias':'Total','function':_0x279748('0x7a'),'ReportId':0x27},{'field':_0x279748('0x10c'),'alias':_0x279748('0xda'),'custom':!![],'ReportId':0x27},{'field':_0x279748('0xf7'),'alias':_0x279748('0x2d'),'ReportId':0x28},{'field':_0x279748('0x2c'),'alias':_0x279748('0x8d'),'ReportId':0x28},{'field':'starttime','alias':_0x279748('0x115'),'orderBy':_0x279748('0x3b'),'ReportId':0x28},{'field':_0x279748('0xa7'),'alias':_0x279748('0x104'),'ReportId':0x28},{'field':_0x279748('0xd7'),'alias':_0x279748('0xc7'),'ReportId':0x28},{'field':_0x279748('0x135'),'alias':_0x279748('0x98'),'ReportId':0x28},{'field':'blacklist','alias':_0x279748('0xc6'),'ReportId':0x28},{'field':_0x279748('0x5d'),'alias':_0x279748('0xbe'),'ReportId':0x28},{'field':_0x279748('0x42'),'alias':_0x279748('0x111'),'ReportId':0x28},{'field':_0x279748('0xa7'),'alias':_0x279748('0x104'),'groupBy':!![],'orderBy':_0x279748('0xb7'),'ReportId':0x29},{'field':'id','alias':'Calls','function':_0x279748('0x7a'),'ReportId':0x29},{'field':'ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','alias':_0x279748('0x56'),'custom':!![],'ReportId':0x29},{'field':_0x279748('0xf7'),'alias':_0x279748('0x2d'),'orderBy':'ASC','groupBy':!![],'ReportId':0x2a},{'field':_0x279748('0xa7'),'alias':_0x279748('0x104'),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':'Total\x20Calls','function':_0x279748('0x7a'),'ReportId':0x2a},{'field':_0x279748('0xde'),'groupBy':!![],'orderBy':_0x279748('0xb7'),'ReportId':0x2b},{'field':'id','alias':_0x279748('0xd0'),'function':_0x279748('0x7a'),'ReportId':0x2b},{'field':_0x279748('0xe7'),'alias':'Managed','custom':!![],'ReportId':0x2b},{'field':'ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','alias':_0x279748('0x138'),'custom':!![],'ReportId':0x2b},{'field':_0x279748('0x12a'),'alias':_0x279748('0x13a'),'groupBy':!![],'ReportId':0x2c},{'field':_0x279748('0x49'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x2c},{'field':_0x279748('0x124'),'alias':'Open','custom':!![],'ReportId':0x2c},{'field':'COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','alias':'Closed','custom':!![],'ReportId':0x2c},{'field':_0x279748('0x5b'),'alias':_0x279748('0xb'),'custom':!![],'ReportId':0x2c},{'field':'COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','alias':'Abandoned','custom':!![],'ReportId':0x2c},{'field':_0x279748('0x12a'),'alias':_0x279748('0x13a'),'groupBy':!![],'ReportId':0x2d},{'field':_0x279748('0x12b'),'alias':_0x279748('0x4c'),'function':'SUM','format':_0x279748('0x132'),'custom':!![],'ReportId':0x2d},{'field':_0x279748('0xf'),'alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x2d},{'field':_0x279748('0xd1'),'alias':_0x279748('0x82'),'groupBy':!![],'ReportId':0x2e},{'field':_0x279748('0x7e'),'alias':_0x279748('0x8b'),'function':_0x279748('0xe3'),'ReportId':0x2e},{'field':_0x279748('0x12b'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x2e},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','alias':_0x279748('0x126'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2e},{'field':_0x279748('0xef'),'alias':'Date','format':_0x279748('0x8c'),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':_0x279748('0x49'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x2f},{'field':'COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','alias':_0x279748('0xee'),'custom':!![],'ReportId':0x2f},{'field':_0x279748('0xf3'),'alias':_0x279748('0x7c'),'custom':!![],'ReportId':0x2f},{'field':_0x279748('0x5b'),'alias':'Unmanaged','custom':!![],'ReportId':0x2f},{'field':'ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x279748('0x13b'),'custom':!![],'ReportId':0x2f},{'field':_0x279748('0xba'),'alias':_0x279748('0x77'),'custom':!![],'ReportId':0x2f},{'field':'ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x279748('0x1b'),'custom':!![],'ReportId':0x2f},{'field':_0x279748('0x26'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x2f},{'field':_0x279748('0x40'),'alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x2f},{'field':'chat_queues.name','alias':_0x279748('0xa3'),'groupBy':!![],'ReportId':0x30},{'field':'report_chat_queue.id','alias':_0x279748('0x9a'),'function':'COUNT','ReportId':0x30},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':'Accepted','custom':!![],'ReportId':0x30},{'field':_0x279748('0x5c'),'alias':'Timeout','custom':!![],'ReportId':0x30},{'field':_0x279748('0xbd'),'alias':_0x279748('0x23'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x30},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':_0x279748('0x59'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x30},{'field':'mail_accounts.name','alias':'Email\x20Account','groupBy':!![],'ReportId':0x31},{'field':_0x279748('0xf5'),'alias':'Interactions','function':_0x279748('0x7a'),'ReportId':0x31},{'field':_0x279748('0x124'),'alias':_0x279748('0x102'),'custom':!![],'ReportId':0x31},{'field':_0x279748('0xe4'),'alias':_0x279748('0x8b'),'custom':!![],'ReportId':0x31},{'field':_0x279748('0x63'),'alias':_0x279748('0x4a'),'groupBy':!![],'ReportId':0x32},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x32},{'field':_0x279748('0x0'),'alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x32},{'field':_0x279748('0xd1'),'alias':_0x279748('0x82'),'groupBy':!![],'ReportId':0x33},{'field':_0x279748('0x10'),'alias':_0x279748('0x8b'),'function':'SUM','ReportId':0x33},{'field':_0x279748('0x57'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x33},{'field':_0x279748('0x0'),'alias':_0x279748('0x126'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x33},{'field':'mail_interactions.createdAt','alias':_0x279748('0x10f'),'format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x34},{'field':_0x279748('0xf5'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x34},{'field':_0x279748('0xe4'),'alias':_0x279748('0xee'),'custom':!![],'ReportId':0x34},{'field':_0x279748('0x128'),'alias':_0x279748('0x7c'),'custom':!![],'ReportId':0x34},{'field':_0x279748('0x26'),'alias':_0x279748('0x4c'),'function':'SUM','format':_0x279748('0x132'),'custom':!![],'ReportId':0x34},{'field':_0x279748('0x40'),'alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x34},{'field':_0x279748('0x3f'),'alias':_0x279748('0xa3'),'groupBy':!![],'ReportId':0x35},{'field':_0x279748('0x4'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x35},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x279748('0x18'),'custom':!![],'ReportId':0x35},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x279748('0x84'),'custom':!![],'ReportId':0x35},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x279748('0x23'),'function':_0x279748('0xe3'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x35},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':_0x279748('0x59'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x35},{'field':_0x279748('0xdb'),'alias':_0x279748('0x6d'),'groupBy':!![],'ReportId':0x36},{'field':_0x279748('0x37'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x36},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x279748('0x102'),'custom':!![],'ReportId':0x36},{'field':_0x279748('0xe4'),'alias':_0x279748('0x8b'),'custom':!![],'ReportId':0x36},{'field':_0x279748('0xdb'),'alias':'Openchannel\x20Account','groupBy':!![],'ReportId':0x37},{'field':_0x279748('0x8a'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x37},{'field':_0x279748('0xca'),'alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x37},{'field':_0x279748('0xd1'),'alias':_0x279748('0x82'),'groupBy':!![],'ReportId':0x38},{'field':_0x279748('0xb4'),'alias':_0x279748('0x8b'),'function':_0x279748('0xe3'),'ReportId':0x38},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x38},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x38},{'field':_0x279748('0xa'),'alias':_0x279748('0x10f'),'format':_0x279748('0x8c'),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x279748('0x37'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x39},{'field':_0x279748('0xe4'),'alias':_0x279748('0xee'),'custom':!![],'ReportId':0x39},{'field':_0x279748('0x128'),'alias':_0x279748('0x7c'),'custom':!![],'ReportId':0x39},{'field':_0x279748('0x26'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x39},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x279748('0x126'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x39},{'field':_0x279748('0x11c'),'alias':_0x279748('0xa3'),'groupBy':!![],'ReportId':0x3a},{'field':_0x279748('0x68'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x3a},{'field':_0x279748('0x74'),'alias':'Accepted','custom':!![],'ReportId':0x3a},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':'Timeout','custom':!![],'ReportId':0x3a},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x279748('0x23'),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':_0x279748('0x36'),'alias':_0x279748('0x59'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':_0x279748('0x4d'),'alias':'Sms\x20Account','groupBy':!![],'ReportId':0x3b},{'field':_0x279748('0x93'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x3b},{'field':_0x279748('0x124'),'alias':_0x279748('0x102'),'custom':!![],'ReportId':0x3b},{'field':_0x279748('0xe4'),'alias':_0x279748('0x8b'),'custom':!![],'ReportId':0x3b},{'field':_0x279748('0x4d'),'alias':'Sms\x20Account','groupBy':!![],'ReportId':0x3c},{'field':_0x279748('0x72'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x3c},{'field':_0x279748('0x1e'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3c},{'field':_0x279748('0xd1'),'alias':_0x279748('0x82'),'groupBy':!![],'ReportId':0x3d},{'field':_0x279748('0x35'),'alias':_0x279748('0x8b'),'function':_0x279748('0xe3'),'ReportId':0x3d},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','alias':_0x279748('0x4c'),'function':'SUM','format':_0x279748('0x132'),'custom':!![],'ReportId':0x3d},{'field':_0x279748('0x1e'),'alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x3d},{'field':'sms_interactions.createdAt','alias':_0x279748('0x10f'),'format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':_0x279748('0x93'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x3e},{'field':_0x279748('0xe4'),'alias':_0x279748('0xee'),'custom':!![],'ReportId':0x3e},{'field':_0x279748('0x128'),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x3e},{'field':_0x279748('0x26'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x3e},{'field':_0x279748('0x40'),'alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x3e},{'field':_0x279748('0x5a'),'alias':_0x279748('0xa3'),'groupBy':!![],'ReportId':0x3f},{'field':_0x279748('0x109'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x3f},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':'Accepted','custom':!![],'ReportId':0x3f},{'field':_0x279748('0x5c'),'alias':_0x279748('0x84'),'custom':!![],'ReportId':0x3f},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':'Hold\x20Time','function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x3f},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':_0x279748('0x59'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x3f},{'field':_0x279748('0xd9'),'alias':_0x279748('0xa3'),'groupBy':!![],'ReportId':0x44},{'field':_0x279748('0x117'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x44},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x279748('0x18'),'custom':!![],'ReportId':0x44},{'field':_0x279748('0x5c'),'alias':_0x279748('0x84'),'custom':!![],'ReportId':0x44},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x279748('0x23'),'function':_0x279748('0xe3'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x44},{'field':_0x279748('0x36'),'alias':_0x279748('0x59'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x44},{'field':_0x279748('0x9d'),'alias':_0x279748('0x10f'),'format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0x279748('0x2f'),'alias':_0x279748('0x9a'),'function':'COUNT','ReportId':0x43},{'field':_0x279748('0xe4'),'alias':_0x279748('0xee'),'custom':!![],'ReportId':0x43},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x279748('0x7c'),'custom':!![],'ReportId':0x43},{'field':_0x279748('0x26'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x43},{'field':_0x279748('0x40'),'alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x43},{'field':_0x279748('0xd1'),'alias':_0x279748('0x82'),'groupBy':!![],'ReportId':0x42},{'field':_0x279748('0xcd'),'alias':_0x279748('0x8b'),'function':_0x279748('0xe3'),'ReportId':0x42},{'field':_0x279748('0x133'),'alias':_0x279748('0x4c'),'function':_0x279748('0xe3'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x42},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':_0x279748('0x132'),'custom':!![],'ReportId':0x42},{'field':'fax_accounts.name','alias':_0x279748('0xf1'),'groupBy':!![],'ReportId':0x41},{'field':_0x279748('0x133'),'alias':_0x279748('0x4c'),'function':'SUM','format':_0x279748('0x132'),'custom':!![],'ReportId':0x41},{'field':_0x279748('0xc8'),'alias':_0x279748('0x126'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x41},{'field':_0x279748('0xce'),'alias':_0x279748('0xf1'),'groupBy':!![],'ReportId':0x40},{'field':_0x279748('0x2f'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x40},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x279748('0x102'),'custom':!![],'ReportId':0x40},{'field':_0x279748('0xe4'),'alias':_0x279748('0x8b'),'custom':!![],'ReportId':0x40},{'field':'voice_recordings.UserId','alias':'UserId','groupBy':!![],'custom':![],'ReportId':0x4a},{'field':_0x279748('0xd1'),'alias':_0x279748('0x113'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x279748('0x3a'),'alias':_0x279748('0x81'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','alias':_0x279748('0x6'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x279748('0x64'),'alias':_0x279748('0xb9'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','alias':_0x279748('0x134'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x279748('0x9c'),'alias':_0x279748('0x60'),'function':'COUNT','groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x279748('0x28'),'alias':_0x279748('0x32'),'groupBy':![],'custom':!![],'ReportId':0x45},{'field':_0x279748('0x12d'),'alias':_0x279748('0x24'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x279748('0xe'),'alias':_0x279748('0x5f'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x279748('0x54'),'alias':_0x279748('0x8f'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x279748('0x9c'),'alias':_0x279748('0x1'),'function':_0x279748('0x7a'),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':_0x279748('0x3a'),'alias':_0x279748('0x81'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x279748('0x107'),'alias':'NEGATIVE','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','alias':_0x279748('0xb9'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','alias':_0x279748('0x134'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x279748('0x28'),'alias':'Positive(%)','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x279748('0x12d'),'alias':'Negative(%)','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x279748('0xe'),'alias':_0x279748('0x5f'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x279748('0x54'),'alias':'Mixed(%)','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x279748('0xc0'),'alias':_0x279748('0xbc'),'groupBy':!![],'ReportId':0x45},{'field':_0x279748('0x10a'),'alias':'Interactions','function':_0x279748('0x7a'),'ReportId':0x45},{'field':_0x279748('0x124'),'alias':_0x279748('0x102'),'custom':!![],'ReportId':0x45},{'field':_0x279748('0xe4'),'alias':'Closed','custom':!![],'ReportId':0x45},{'field':_0x279748('0xc0'),'alias':_0x279748('0xbc'),'groupBy':!![],'ReportId':0x46},{'field':_0x279748('0x7'),'alias':'Interaction\x20Time','function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x46},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x46},{'field':_0x279748('0xd1'),'alias':_0x279748('0x82'),'groupBy':!![],'ReportId':0x47},{'field':'whatsapp_interactions.closed','alias':_0x279748('0x8b'),'function':'SUM','ReportId':0x47},{'field':_0x279748('0x7'),'alias':'Interaction\x20Time','function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x47},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','alias':_0x279748('0x126'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x47},{'field':_0x279748('0x4f'),'alias':'Date','format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x48},{'field':_0x279748('0x10a'),'alias':_0x279748('0x9a'),'function':_0x279748('0x7a'),'ReportId':0x48},{'field':_0x279748('0xe4'),'alias':_0x279748('0xee'),'custom':!![],'ReportId':0x48},{'field':_0x279748('0x128'),'alias':_0x279748('0x7c'),'custom':!![],'ReportId':0x48},{'field':_0x279748('0x26'),'alias':_0x279748('0x4c'),'function':'SUM','format':_0x279748('0x132'),'custom':!![],'ReportId':0x48},{'field':_0x279748('0x40'),'alias':_0x279748('0x126'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x48},{'field':_0x279748('0x65'),'alias':_0x279748('0xa3'),'groupBy':!![],'ReportId':0x49},{'field':_0x279748('0xae'),'alias':'Interactions','function':_0x279748('0x7a'),'ReportId':0x49},{'field':_0x279748('0x74'),'alias':'Accepted','custom':!![],'ReportId':0x49},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x279748('0x84'),'custom':!![],'ReportId':0x49},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':'Hold\x20Time','function':_0x279748('0xe3'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x49},{'field':_0x279748('0x36'),'alias':_0x279748('0x59'),'format':_0x279748('0x132'),'custom':!![],'ReportId':0x49}];return _[_0x279748('0x47')](_0x1818d6,_0x279748('0xb1'));}; \ No newline at end of file diff --git a/server/config/seedDB/report/index.js b/server/config/seedDB/report/index.js index 18a533a..18c50c4 100644 --- a/server/config/seedDB/report/index.js +++ b/server/config/seedDB/report/index.js @@ -1 +1 @@ -var a870_0x464b=['./fields','./default','exports'];(function(_0x33ced6,_0x464b24){var _0x2fcd72=function(_0x2750fd){while(--_0x2750fd){_0x33ced6['push'](_0x33ced6['shift']());}};_0x2fcd72(++_0x464b24);}(a870_0x464b,0x13d));var a870_0x2fcd=function(_0x33ced6,_0x464b24){_0x33ced6=_0x33ced6-0x0;var _0x2fcd72=a870_0x464b[_0x33ced6];return _0x2fcd72;};var _0x344091=a870_0x2fcd;'use strict';module[_0x344091('0x0')]={'default':require(_0x344091('0x2')),'fields':require(_0x344091('0x1'))}; \ No newline at end of file +var a870_0x317d=['exports','./fields','./default'];(function(_0x530bfb,_0x317d14){var _0x5249b2=function(_0x204c69){while(--_0x204c69){_0x530bfb['push'](_0x530bfb['shift']());}};_0x5249b2(++_0x317d14);}(a870_0x317d,0x198));var a870_0x5249=function(_0x530bfb,_0x317d14){_0x530bfb=_0x530bfb-0x0;var _0x5249b2=a870_0x317d[_0x530bfb];return _0x5249b2;};var _0x4ae2c5=a870_0x5249;'use strict';module[_0x4ae2c5('0x0')]={'default':require(_0x4ae2c5('0x2')),'fields':require(_0x4ae2c5('0x1'))}; \ No newline at end of file diff --git a/server/config/seedDB/sounds.js b/server/config/seedDB/sounds.js index db8ea6d..89a1002 100644 --- a/server/config/seedDB/sounds.js +++ b/server/config/seedDB/sounds.js @@ -1 +1 @@ -const a871_0x33a2=['Sounds\x20have\x20been\x20created','app','agentmanagement-login','mp3','create','Call\x20Rating\x20Message','Order\x20Elaborated','Agent\x20Action\x20Failure','Agent\x20Logout','agentmanagement-pause','Agent\x20Pause','wav','Can\x27t\x20create\x20Sounds','thanx','Thank\x20You','Order\x20Message','bulkCreate','Agent\x20Login','Welcome\x20Message','../logger','order-elaborated','agentmanagement-action-failure','catch','welcome-acme','order-number','Sound','then','Agent\x20Menu','error','agentmanagement-unpause','Agent\x20End\x20Pause','auto\x20generated\x20sound'];(function(_0x2cc432,_0x33a2d2){const _0x213008=function(_0x4b6fb5){while(--_0x4b6fb5){_0x2cc432['push'](_0x2cc432['shift']());}};_0x213008(++_0x33a2d2);}(a871_0x33a2,0xa7));const a871_0x2130=function(_0x2cc432,_0x33a2d2){_0x2cc432=_0x2cc432-0x0;let _0x213008=a871_0x33a2[_0x2cc432];return _0x213008;};const _0xa04698=a871_0x2130;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0xa04698('0xc'))(_0xa04698('0x1a')),sounds=[{'id':0x1,'name':_0xa04698('0xb'),'save_name':_0xa04698('0x10'),'display_name':_0xa04698('0xb'),'original_format':'wav','converted_format':'wav','description':_0xa04698('0x18')},{'id':0x2,'name':_0xa04698('0x8'),'save_name':_0xa04698('0x11'),'display_name':_0xa04698('0x8'),'original_format':_0xa04698('0x4'),'converted_format':'wav','description':_0xa04698('0x18')},{'id':0x3,'name':'Order\x20Shipped','save_name':'order-shipped','display_name':'Order\x20Shipped','original_format':_0xa04698('0x4'),'converted_format':_0xa04698('0x4'),'description':_0xa04698('0x18')},{'id':0x4,'name':'Order\x20Elaborated','save_name':_0xa04698('0xd'),'display_name':_0xa04698('0x1f'),'original_format':_0xa04698('0x4'),'converted_format':_0xa04698('0x4'),'description':_0xa04698('0x18')},{'id':0x5,'name':_0xa04698('0x1e'),'save_name':'rate-call','display_name':_0xa04698('0x1e'),'original_format':'wav','converted_format':_0xa04698('0x4'),'description':_0xa04698('0x18')},{'id':0x6,'name':_0xa04698('0x7'),'save_name':_0xa04698('0x6'),'display_name':_0xa04698('0x7'),'original_format':_0xa04698('0x4'),'converted_format':_0xa04698('0x4'),'description':_0xa04698('0x18')},{'id':0x7,'name':_0xa04698('0xa'),'save_name':_0xa04698('0x1b'),'display_name':'Agent\x20Login','original_format':_0xa04698('0x1c'),'converted_format':_0xa04698('0x4'),'description':_0xa04698('0x18')},{'id':0x8,'name':'Agent\x20Logout','save_name':'agentmanagement-logout','display_name':_0xa04698('0x1'),'original_format':_0xa04698('0x1c'),'converted_format':_0xa04698('0x4'),'description':_0xa04698('0x18')},{'id':0x9,'name':'Agent\x20Menu','save_name':'agentmanagement-menu','display_name':_0xa04698('0x14'),'original_format':'wav','converted_format':_0xa04698('0x4'),'description':_0xa04698('0x18')},{'id':0xa,'name':_0xa04698('0x3'),'save_name':_0xa04698('0x2'),'display_name':_0xa04698('0x3'),'original_format':_0xa04698('0x1c'),'converted_format':'wav','description':'auto\x20generated\x20sound'},{'id':0xb,'name':_0xa04698('0x17'),'save_name':_0xa04698('0x16'),'display_name':_0xa04698('0x17'),'original_format':_0xa04698('0x1c'),'converted_format':_0xa04698('0x4'),'description':_0xa04698('0x18')},{'id':0xc,'name':'Agent\x20Action\x20Failure','save_name':_0xa04698('0xe'),'display_name':_0xa04698('0x0'),'original_format':'wav','converted_format':_0xa04698('0x4'),'description':'auto\x20generated\x20sound'}];exports[_0xa04698('0x1d')]=function(){const _0xe67fee=_0xa04698;return db[_0xe67fee('0x12')][_0xe67fee('0x9')](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xe67fee('0x13')](function(){const _0x2ca8a1=_0xe67fee;logger['info'](_0x2ca8a1('0x19'));})[_0xe67fee('0xf')](function(){const _0x3f8e36=_0xe67fee;logger[_0x3f8e36('0x15')](_0x3f8e36('0x5'));});}; \ No newline at end of file +const a871_0x1b4b=['Sounds\x20have\x20been\x20created','rate-call','Agent\x20Pause','agentmanagement-login','agentmanagement-menu','agentmanagement-pause','order-elaborated','Order\x20Elaborated','Agent\x20Login','Welcome\x20Message','Agent\x20Menu','order-shipped','../logger','agentmanagement-action-failure','Agent\x20End\x20Pause','mp3','bulkCreate','then','create','auto\x20generated\x20sound','Order\x20Shipped','error','agentmanagement-logout','agentmanagement-unpause','../../mysqldb','Call\x20Rating\x20Message','Agent\x20Action\x20Failure','catch','welcome-acme','Can\x27t\x20create\x20Sounds','Agent\x20Logout','Order\x20Message','wav'];(function(_0x5675d7,_0x1b4be2){const _0x1ab3f7=function(_0x32496e){while(--_0x32496e){_0x5675d7['push'](_0x5675d7['shift']());}};_0x1ab3f7(++_0x1b4be2);}(a871_0x1b4b,0x16c));const a871_0x1ab3=function(_0x5675d7,_0x1b4be2){_0x5675d7=_0x5675d7-0x0;let _0x1ab3f7=a871_0x1b4b[_0x5675d7];return _0x1ab3f7;};const _0x50fece=a871_0x1ab3;'use strict';const db=require(_0x50fece('0x17'))['db'],logger=require(_0x50fece('0xb'))('app'),sounds=[{'id':0x1,'name':'Welcome\x20Message','save_name':_0x50fece('0x1b'),'display_name':_0x50fece('0x8'),'original_format':_0x50fece('0x1f'),'converted_format':'wav','description':_0x50fece('0x12')},{'id':0x2,'name':'Order\x20Message','save_name':'order-number','display_name':_0x50fece('0x1e'),'original_format':'wav','converted_format':_0x50fece('0x1f'),'description':_0x50fece('0x12')},{'id':0x3,'name':_0x50fece('0x13'),'save_name':_0x50fece('0xa'),'display_name':_0x50fece('0x13'),'original_format':_0x50fece('0x1f'),'converted_format':_0x50fece('0x1f'),'description':_0x50fece('0x12')},{'id':0x4,'name':_0x50fece('0x6'),'save_name':_0x50fece('0x5'),'display_name':_0x50fece('0x6'),'original_format':_0x50fece('0x1f'),'converted_format':_0x50fece('0x1f'),'description':_0x50fece('0x12')},{'id':0x5,'name':'Call\x20Rating\x20Message','save_name':_0x50fece('0x0'),'display_name':_0x50fece('0x18'),'original_format':_0x50fece('0x1f'),'converted_format':'wav','description':'auto\x20generated\x20sound'},{'id':0x6,'name':'Thank\x20You','save_name':'thanx','display_name':'Thank\x20You','original_format':_0x50fece('0x1f'),'converted_format':_0x50fece('0x1f'),'description':'auto\x20generated\x20sound'},{'id':0x7,'name':_0x50fece('0x7'),'save_name':_0x50fece('0x2'),'display_name':_0x50fece('0x7'),'original_format':_0x50fece('0xe'),'converted_format':_0x50fece('0x1f'),'description':'auto\x20generated\x20sound'},{'id':0x8,'name':_0x50fece('0x1d'),'save_name':_0x50fece('0x15'),'display_name':_0x50fece('0x1d'),'original_format':_0x50fece('0xe'),'converted_format':_0x50fece('0x1f'),'description':_0x50fece('0x12')},{'id':0x9,'name':_0x50fece('0x9'),'save_name':_0x50fece('0x3'),'display_name':_0x50fece('0x9'),'original_format':_0x50fece('0x1f'),'converted_format':'wav','description':_0x50fece('0x12')},{'id':0xa,'name':_0x50fece('0x1'),'save_name':_0x50fece('0x4'),'display_name':_0x50fece('0x1'),'original_format':_0x50fece('0xe'),'converted_format':_0x50fece('0x1f'),'description':_0x50fece('0x12')},{'id':0xb,'name':_0x50fece('0xd'),'save_name':_0x50fece('0x16'),'display_name':_0x50fece('0xd'),'original_format':_0x50fece('0xe'),'converted_format':_0x50fece('0x1f'),'description':_0x50fece('0x12')},{'id':0xc,'name':_0x50fece('0x19'),'save_name':_0x50fece('0xc'),'display_name':_0x50fece('0x19'),'original_format':_0x50fece('0x1f'),'converted_format':_0x50fece('0x1f'),'description':_0x50fece('0x12')}];exports[_0x50fece('0x11')]=function(){const _0x28cb9d=_0x50fece;return db['Sound'][_0x28cb9d('0xf')](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x28cb9d('0x10')](function(){const _0x533c0a=_0x28cb9d;logger['info'](_0x533c0a('0x20'));})[_0x28cb9d('0x1a')](function(){const _0x4f7a9a=_0x28cb9d;logger[_0x4f7a9a('0x14')](_0x4f7a9a('0x1c'));});}; \ No newline at end of file diff --git a/server/config/seedDB/squareOdbc.js b/server/config/seedDB/squareOdbc.js index 1267f40..e618d87 100644 --- a/server/config/seedDB/squareOdbc.js +++ b/server/config/seedDB/squareOdbc.js @@ -1 +1 @@ -const a872_0xbc4e=['xcally-motion-database','DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','catch','../../mysqldb','create','info','ODBC\x20have\x20been\x20created','SquareOdbc','bulkCreate','then','../logger','error','Can\x27t\x20create\x20ODBC'];(function(_0x2d0b3b,_0xbc4e8f){const _0x25e974=function(_0xffaf1f){while(--_0xffaf1f){_0x2d0b3b['push'](_0x2d0b3b['shift']());}};_0x25e974(++_0xbc4e8f);}(a872_0xbc4e,0x165));const a872_0x25e9=function(_0x2d0b3b,_0xbc4e8f){_0x2d0b3b=_0x2d0b3b-0x0;let _0x25e974=a872_0xbc4e[_0x2d0b3b];return _0x25e974;};const _0x3d4926=a872_0x25e9;'use strict';const db=require(_0x3d4926('0xa'))['db'],logger=require(_0x3d4926('0x4'))('app'),odbc=[{'id':0x1,'name':_0x3d4926('0x7'),'dsn':_0x3d4926('0x8'),'description':'xcally\x20motion\x20db\x20auto\x20generated'}];exports[_0x3d4926('0xb')]=function(){const _0x2ffd18=_0x3d4926;return db[_0x2ffd18('0x1')][_0x2ffd18('0x2')](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2ffd18('0x3')](function(){const _0x5c0647=_0x2ffd18;logger[_0x5c0647('0xc')](_0x5c0647('0x0'));})[_0x2ffd18('0x9')](function(){const _0x492a47=_0x2ffd18;logger[_0x492a47('0x5')](_0x492a47('0x6'));});}; \ No newline at end of file +const a872_0x4ba7=['SquareOdbc','ODBC\x20have\x20been\x20created','xcally\x20motion\x20db\x20auto\x20generated','DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','xcally-motion-database','catch','error','bulkCreate','info','then'];(function(_0x48c9f3,_0x4ba7e4){const _0xea947b=function(_0x50b8b0){while(--_0x50b8b0){_0x48c9f3['push'](_0x48c9f3['shift']());}};_0xea947b(++_0x4ba7e4);}(a872_0x4ba7,0x130));const a872_0xea94=function(_0x48c9f3,_0x4ba7e4){_0x48c9f3=_0x48c9f3-0x0;let _0xea947b=a872_0x4ba7[_0x48c9f3];return _0xea947b;};const _0x429390=a872_0xea94;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')('app'),odbc=[{'id':0x1,'name':_0x429390('0x0'),'dsn':_0x429390('0x9'),'description':_0x429390('0x8')}];exports['create']=function(){const _0x5ad7ab=_0x429390;return db[_0x5ad7ab('0x6')][_0x5ad7ab('0x3')](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5ad7ab('0x5')](function(){const _0x326e25=_0x5ad7ab;logger[_0x326e25('0x4')](_0x326e25('0x7'));})[_0x5ad7ab('0x1')](function(){const _0x185e92=_0x5ad7ab;logger[_0x185e92('0x2')]('Can\x27t\x20create\x20ODBC');});}; \ No newline at end of file diff --git a/server/config/seedDB/squareProjects.js b/server/config/seedDB/squareProjects.js index e2aa102..8c0cb64 100644 --- a/server/config/seedDB/squareProjects.js +++ b/server/config/seedDB/squareProjects.js @@ -1 +1 @@ -const a873_0x2255=['AgentManagement','bulkCreate','SquareProject','readFileSync','path','../../mysqldb','join','AutoAttendant','catch','utf-8','Orders','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','.xml','info','error','Survey','CSI','Basic\x20IVR\x20sample\x20auto\x20generated','Can\x27t\x20create\x20Square\x20Projects','Agent\x20Management\x20sample\x20auto\x20generated','then','Survey\x20IVR\x20sample\x20auto\x20generated','xml','create','app'];(function(_0x29abf8,_0x225515){const _0x28e4d5=function(_0x14d169){while(--_0x14d169){_0x29abf8['push'](_0x29abf8['shift']());}};_0x28e4d5(++_0x225515);}(a873_0x2255,0x12d));const a873_0x28e4=function(_0x29abf8,_0x225515){_0x29abf8=_0x29abf8-0x0;let _0x28e4d5=a873_0x2255[_0x29abf8];return _0x28e4d5;};const _0x4222e4=a873_0x28e4;'use strict';const fs=require('fs'),path=require(_0x4222e4('0x3')),db=require(_0x4222e4('0x4'))['db'],logger=require('../logger')(_0x4222e4('0x17')),getXml=function(_0x14d169){const _0x2741f7=_0x4222e4;return fs[_0x2741f7('0x2')](path[_0x2741f7('0x5')](__dirname,_0x2741f7('0x15'),_0x14d169+_0x2741f7('0xb')),{'encoding':_0x2741f7('0x8')});},squareProjects=[{'id':0x1,'name':_0x4222e4('0x6'),'description':_0x4222e4('0x10'),'preproduction':getXml(_0x4222e4('0x6')),'production':getXml(_0x4222e4('0x6'))},{'id':0x2,'name':_0x4222e4('0xf'),'description':'Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','preproduction':getXml(_0x4222e4('0xf')),'production':getXml('CSI')},{'id':0x3,'name':_0x4222e4('0x9'),'description':_0x4222e4('0xa'),'preproduction':getXml(_0x4222e4('0x9')),'production':getXml(_0x4222e4('0x9'))},{'id':0x4,'name':_0x4222e4('0xe'),'description':_0x4222e4('0x14'),'preproduction':getXml(_0x4222e4('0xe')),'production':getXml(_0x4222e4('0xe'))},{'id':0x5,'name':_0x4222e4('0x18'),'description':_0x4222e4('0x12'),'preproduction':getXml(_0x4222e4('0x18')),'production':getXml(_0x4222e4('0x18'))}];exports[_0x4222e4('0x16')]=function(){const _0x334460=_0x4222e4;return db[_0x334460('0x1')][_0x334460('0x0')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x334460('0x13')](function(){const _0x23c21d=_0x334460;logger[_0x23c21d('0xc')]('Square\x20Projects\x20have\x20been\x20created');})[_0x334460('0x7')](function(){const _0x11e558=_0x334460;logger[_0x11e558('0xd')](_0x11e558('0x11'));});}; \ No newline at end of file +const a873_0x3bfb=['readFileSync','catch','Survey\x20IVR\x20sample\x20auto\x20generated','path','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','Survey','AutoAttendant','../../mysqldb','Can\x27t\x20create\x20Square\x20Projects','app','info','Square\x20Projects\x20have\x20been\x20created','Orders','xml','.xml','join','AgentManagement','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','bulkCreate','Basic\x20IVR\x20sample\x20auto\x20generated','CSI','then'];(function(_0x1def00,_0x3bfb1d){const _0x5521c2=function(_0x440e6d){while(--_0x440e6d){_0x1def00['push'](_0x1def00['shift']());}};_0x5521c2(++_0x3bfb1d);}(a873_0x3bfb,0x1f0));const a873_0x5521=function(_0x1def00,_0x3bfb1d){_0x1def00=_0x1def00-0x0;let _0x5521c2=a873_0x3bfb[_0x1def00];return _0x5521c2;};const _0x57fd5e=a873_0x5521;'use strict';const fs=require('fs'),path=require(_0x57fd5e('0xd')),db=require(_0x57fd5e('0x11'))['db'],logger=require('../logger')(_0x57fd5e('0x13')),getXml=function(_0x440e6d){const _0x18e1d7=_0x57fd5e;return fs[_0x18e1d7('0xa')](path[_0x18e1d7('0x3')](__dirname,_0x18e1d7('0x1'),_0x440e6d+_0x18e1d7('0x2')),{'encoding':'utf-8'});},squareProjects=[{'id':0x1,'name':_0x57fd5e('0x10'),'description':_0x57fd5e('0x7'),'preproduction':getXml(_0x57fd5e('0x10')),'production':getXml('AutoAttendant')},{'id':0x2,'name':_0x57fd5e('0x8'),'description':_0x57fd5e('0x5'),'preproduction':getXml('CSI'),'production':getXml(_0x57fd5e('0x8'))},{'id':0x3,'name':_0x57fd5e('0x0'),'description':_0x57fd5e('0xe'),'preproduction':getXml(_0x57fd5e('0x0')),'production':getXml(_0x57fd5e('0x0'))},{'id':0x4,'name':_0x57fd5e('0xf'),'description':_0x57fd5e('0xc'),'preproduction':getXml('Survey'),'production':getXml(_0x57fd5e('0xf'))},{'id':0x5,'name':_0x57fd5e('0x4'),'description':'Agent\x20Management\x20sample\x20auto\x20generated','preproduction':getXml('AgentManagement'),'production':getXml('AgentManagement')}];exports['create']=function(){const _0x38281e=_0x57fd5e;return db['SquareProject'][_0x38281e('0x6')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x38281e('0x9')](function(){const _0x3005ed=_0x38281e;logger[_0x3005ed('0x14')](_0x3005ed('0x15'));})[_0x38281e('0xb')](function(){const _0x41da35=_0x38281e;logger['error'](_0x41da35('0x12'));});}; \ No newline at end of file diff --git a/server/config/seedDB/tags.js b/server/config/seedDB/tags.js index 244ca64..6005215 100644 --- a/server/config/seedDB/tags.js +++ b/server/config/seedDB/tags.js @@ -1 +1 @@ -const a874_0x345c=['installation','tag\x20defective\x20auto\x20generated','catch','defective','../../mysqldb','Tag','tag\x20about_sales\x20auto\x20generated','info','map','app','Tags\x20have\x20been\x20created','then','tag\x20installation\x20auto\x20generated','about_sales','tag\x20forums\x20auto\x20generated','forums','Can\x27t\x20create\x20Tags','faq','error','bulkCreate','getNames','name','lodash'];(function(_0x268f25,_0x345cda){const _0x3834be=function(_0x1dc7c6){while(--_0x1dc7c6){_0x268f25['push'](_0x268f25['shift']());}};_0x3834be(++_0x345cda);}(a874_0x345c,0x129));const a874_0x3834=function(_0x268f25,_0x345cda){_0x268f25=_0x268f25-0x0;let _0x3834be=a874_0x345c[_0x268f25];return _0x3834be;};const _0x46b2d0=a874_0x3834;'use strict';const _=require(_0x46b2d0('0x1')),db=require(_0x46b2d0('0x6'))['db'],logger=require('../logger')(_0x46b2d0('0xb')),tags=[{'id':0x1,'name':_0x46b2d0('0x11'),'description':_0x46b2d0('0x10')},{'id':0x2,'name':_0x46b2d0('0x5'),'description':_0x46b2d0('0x3')},{'id':0x3,'name':_0x46b2d0('0x13'),'description':'tag\x20faq\x20auto\x20generated'},{'id':0x4,'name':_0x46b2d0('0x2'),'description':_0x46b2d0('0xe')},{'id':0x5,'name':_0x46b2d0('0xf'),'description':_0x46b2d0('0x8')}];exports['create']=function(){const _0x395305=_0x46b2d0;return db[_0x395305('0x7')][_0x395305('0x15')](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x395305('0xd')](function(){const _0x5c94ae=_0x395305;logger[_0x5c94ae('0x9')](_0x5c94ae('0xc'));})[_0x395305('0x4')](function(){const _0x2d21e2=_0x395305;logger[_0x2d21e2('0x14')](_0x2d21e2('0x12'));});},exports[_0x46b2d0('0x16')]=function(){const _0x5e3fcf=_0x46b2d0;return _[_0x5e3fcf('0xa')](tags,_0x5e3fcf('0x0'));}; \ No newline at end of file +const a874_0x501f=['about_sales','installation','catch','map','lodash','tag\x20forums\x20auto\x20generated','Tag','../logger','info','forums','name','then','getNames','create','Tags\x20have\x20been\x20created','tag\x20about_sales\x20auto\x20generated','tag\x20defective\x20auto\x20generated','tag\x20installation\x20auto\x20generated','app','defective','Can\x27t\x20create\x20Tags'];(function(_0x490f6c,_0x501f7d){const _0x5363f=function(_0x33d285){while(--_0x33d285){_0x490f6c['push'](_0x490f6c['shift']());}};_0x5363f(++_0x501f7d);}(a874_0x501f,0x1c7));const a874_0x5363=function(_0x490f6c,_0x501f7d){_0x490f6c=_0x490f6c-0x0;let _0x5363f=a874_0x501f[_0x490f6c];return _0x5363f;};const _0xb11717=a874_0x5363;'use strict';const _=require(_0xb11717('0xb')),db=require('../../mysqldb')['db'],logger=require(_0xb11717('0xe'))(_0xb11717('0x4')),tags=[{'id':0x1,'name':_0xb11717('0x10'),'description':_0xb11717('0xc')},{'id':0x2,'name':_0xb11717('0x5'),'description':_0xb11717('0x2')},{'id':0x3,'name':'faq','description':'tag\x20faq\x20auto\x20generated'},{'id':0x4,'name':_0xb11717('0x8'),'description':_0xb11717('0x3')},{'id':0x5,'name':_0xb11717('0x7'),'description':_0xb11717('0x1')}];exports[_0xb11717('0x14')]=function(){const _0x11254a=_0xb11717;return db[_0x11254a('0xd')]['bulkCreate'](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x11254a('0x12')](function(){const _0x2004db=_0x11254a;logger[_0x2004db('0xf')](_0x2004db('0x0'));})[_0x11254a('0x9')](function(){const _0x58464b=_0x11254a;logger['error'](_0x58464b('0x6'));});},exports[_0xb11717('0x13')]=function(){const _0x11e2f2=_0xb11717;return _[_0x11e2f2('0xa')](tags,_0x11e2f2('0x11'));}; \ No newline at end of file diff --git a/server/config/seedDB/teams.js b/server/config/seedDB/teams.js index f0975a7..184f6c2 100644 --- a/server/config/seedDB/teams.js +++ b/server/config/seedDB/teams.js @@ -1 +1 @@ -const a875_0x1e75=['Teams\x20have\x20been\x20created','../logger','then','../../mysqldb','catch','addAgents','info','bulkCreate','Team','demo\x20team\x20auto\x20generated','app'];(function(_0x4f9e12,_0x1e7520){const _0x31f13c=function(_0x14f805){while(--_0x14f805){_0x4f9e12['push'](_0x4f9e12['shift']());}};_0x31f13c(++_0x1e7520);}(a875_0x1e75,0x1a9));const a875_0x31f1=function(_0x4f9e12,_0x1e7520){_0x4f9e12=_0x4f9e12-0x0;let _0x31f13c=a875_0x1e75[_0x4f9e12];return _0x31f13c;};const _0x1dedf3=a875_0x31f1;'use strict';const db=require(_0x1dedf3('0x7'))['db'],logger=require(_0x1dedf3('0x5'))(_0x1dedf3('0x3')),teams=[{'id':0x1,'name':'Demo\x20Team','description':_0x1dedf3('0x2')}];exports['create']=function(){const _0x5ed75f=_0x1dedf3;return db[_0x5ed75f('0x1')][_0x5ed75f('0x0')](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5ed75f('0x6')](function(_0x14f805){const _0x32c2e0=_0x5ed75f;for(let _0x10f0df=0x0;_0x10f0df<_0x14f805['length'];_0x10f0df+=0x1){_0x14f805[_0x10f0df][_0x32c2e0('0x9')]([0x2,0x3]);}})[_0x5ed75f('0x6')](function(){const _0x58386c=_0x5ed75f;logger[_0x58386c('0xa')](_0x58386c('0x4'));})[_0x5ed75f('0x8')](function(){logger['error']('Can\x27t\x20create\x20Teams');});}; \ No newline at end of file +const a875_0x4197=['bulkCreate','demo\x20team\x20auto\x20generated','catch','info','addAgents','error','length','../logger','then','Demo\x20Team'];(function(_0x159fc7,_0x419767){const _0x188649=function(_0x376fb7){while(--_0x376fb7){_0x159fc7['push'](_0x159fc7['shift']());}};_0x188649(++_0x419767);}(a875_0x4197,0x187));const a875_0x1886=function(_0x159fc7,_0x419767){_0x159fc7=_0x159fc7-0x0;let _0x188649=a875_0x4197[_0x159fc7];return _0x188649;};const _0x36a735=a875_0x1886;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x36a735('0x6'))('app'),teams=[{'id':0x1,'name':_0x36a735('0x8'),'description':_0x36a735('0x0')}];exports['create']=function(){const _0x5e6aff=_0x36a735;return db['Team'][_0x5e6aff('0x9')](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5e6aff('0x7')](function(_0x376fb7){const _0x3f18ef=_0x5e6aff;for(let _0x5b6c94=0x0;_0x5b6c94<_0x376fb7[_0x3f18ef('0x5')];_0x5b6c94+=0x1){_0x376fb7[_0x5b6c94][_0x3f18ef('0x3')]([0x2,0x3]);}})[_0x5e6aff('0x7')](function(){const _0x1efd4e=_0x5e6aff;logger[_0x1efd4e('0x2')]('Teams\x20have\x20been\x20created');})[_0x5e6aff('0x1')](function(){const _0x4a7cb7=_0x5e6aff;logger[_0x4a7cb7('0x4')]('Can\x27t\x20create\x20Teams');});}; \ No newline at end of file diff --git a/server/config/seedDB/tree/index.js b/server/config/seedDB/tree/index.js index 58d6d39..bafbc80 100644 --- a/server/config/seedDB/tree/index.js +++ b/server/config/seedDB/tree/index.js @@ -1 +1 @@ -var a876_0x16f4=['icon\x20s20\x20icon-sitemap','WhatsApp\x20Connector','icon\x20s20\x20icon-phone-log','voice','whatsapp','Fax','icon\x20s20\x20icon-stackoverflow','openchannel','bull','callysquare','Voice','chat','queues','queue_campaigns','icon\x20s20\x20icon-account-multiple','sms','icon\x20s20\x20icon-whatsapp','\x20Reports','Queue\x20Campaigns','Answered','Recordings','icon\x20s20\x20icon-google-earth','Sms','agents','Motion','icon\x20s20\x20icon-phone-dots','Motion\x20Bull','IVR\x20Campaigns','Chat','fax','calls','distribution','Agents','mail','icon\x20s20\x20','Queues','icon-laptop-chromebook','ivr_campaigns','icon\x20s20\x20icon-microphone','icon\x20s20\x20icon-email','Custom','motion','Email','icon\x20s20\x20icon-message-text','custom'];(function(_0x131724,_0x16f40a){var _0x5a32e2=function(_0x1c28aa){while(--_0x1c28aa){_0x131724['push'](_0x131724['shift']());}};_0x5a32e2(++_0x16f40a);}(a876_0x16f4,0x80));var a876_0x5a32=function(_0x131724,_0x16f40a){_0x131724=_0x131724-0x0;var _0x5a32e2=a876_0x16f4[_0x131724];return _0x5a32e2;};var _0x4b860d=a876_0x5a32;'use strict';function getQueuesChildren(_0x1c28aa){var _0x5acc17=a876_0x5a32;return _0x1c28aa+='_',[{'id':_0x1c28aa+'answered','text':_0x5acc17('0x1a')},{'id':_0x1c28aa+'unanswered','text':'Unanswered'},{'id':_0x1c28aa+_0x5acc17('0x26'),'text':'Distribution'}];}function getVoiceChildren(_0x35134c){var _0x55bfac=a876_0x5a32;return _0x35134c+='_',[{'id':_0x35134c+_0x55bfac('0x13'),'text':_0x55bfac('0x2a'),'icon':_0x55bfac('0xd'),'children':getQueuesChildren(_0x35134c+_0x55bfac('0x13'))},{'id':_0x35134c+_0x55bfac('0x25'),'text':'Calls','icon':_0x55bfac('0x20')},{'id':_0x35134c+_0x55bfac('0x1e'),'text':_0x55bfac('0x27'),'icon':_0x55bfac('0x15')},{'id':_0x35134c+_0x55bfac('0x10'),'text':'Cally\x20Square','icon':_0x55bfac('0x7')},{'id':_0x35134c+'recordings','text':_0x55bfac('0x1b'),'icon':_0x55bfac('0x0')}];}function getBullChildren(_0x32509b){var _0xb5792=a876_0x5a32;return _0x32509b+='_',[{'id':_0x32509b+_0xb5792('0x14'),'text':_0xb5792('0x19'),'icon':_0xb5792('0xd')},{'id':_0x32509b+_0xb5792('0x2c'),'text':_0xb5792('0x22'),'icon':'icon\x20s20\x20icon-sitemap'}];}function getMotionChildren(_0x56d10c){var _0x20af2=a876_0x5a32;return _0x56d10c+='_',[{'id':_0x56d10c+'voice','text':_0x20af2('0x11'),'icon':_0x20af2('0x9'),'children':getVoiceChildren(_0x56d10c+_0x20af2('0xa'))},{'id':_0x56d10c+_0x20af2('0xf'),'text':_0x20af2('0x21'),'icon':'icon\x20s20\x20icon-fire','children':getBullChildren(_0x56d10c+_0x20af2('0xf'))},{'id':_0x56d10c+_0x20af2('0x12'),'text':_0x20af2('0x23'),'icon':'icon\x20s20\x20icon-hangouts'},{'id':_0x56d10c+_0x20af2('0x28'),'text':_0x20af2('0x4'),'icon':_0x20af2('0x1')},{'id':_0x56d10c+_0x20af2('0xe'),'text':'Openchannel','icon':_0x20af2('0x1c')},{'id':_0x56d10c+_0x20af2('0x16'),'text':_0x20af2('0x1d'),'icon':_0x20af2('0x5')},{'id':_0x56d10c+_0x20af2('0x24'),'text':_0x20af2('0xc'),'icon':'icon\x20s20\x20icon-deskphone'},{'id':_0x56d10c+_0x20af2('0xb'),'text':_0x20af2('0x8'),'icon':_0x20af2('0x17')},{'id':_0x56d10c+_0x20af2('0x1e'),'text':_0x20af2('0x27'),'icon':_0x20af2('0x15')}];}function getTree(_0x593efb){var _0x334351=a876_0x5a32;return[{'id':_0x593efb?_0x334351('0x6'):_0x334351('0x3'),'text':(_0x593efb?_0x334351('0x2'):_0x334351('0x1f'))+_0x334351('0x18'),'icon':_0x334351('0x29')+(_0x593efb?_0x334351('0x2b'):'icon-cloud'),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x593efb?_0x334351('0x6'):_0x334351('0x3'))}];}exports[_0x4b860d('0x3')]=getTree(![]),exports[_0x4b860d('0x6')]=getTree(!![]); \ No newline at end of file +var a876_0x4cea=['icon\x20s20\x20icon-microphone','IVR\x20Campaigns','Queue\x20Campaigns','icon\x20s20\x20icon-hangouts','openchannel','whatsapp','answered','Distribution','Sms','callysquare','icon\x20s20\x20icon-google-earth','Voice','bull','icon\x20s20\x20icon-fire','Answered','Agents','Cally\x20Square','icon\x20s20\x20icon-email','fax','icon\x20s20\x20icon-message-text','icon\x20s20\x20icon-account-multiple','motion','sms','icon\x20s20\x20icon-phone-dots','queue_campaigns','Fax','icon\x20s20\x20icon-stackoverflow','Recordings','chat','queues','Motion','mail','Queues','ivr_campaigns','custom','recordings','icon\x20s20\x20icon-sitemap','voice','Motion\x20Bull','icon\x20s20\x20','agents','icon\x20s20\x20icon-phone-log','icon\x20s20\x20icon-whatsapp'];(function(_0xbafbf4,_0x4cea3b){var _0x51c030=function(_0x107207){while(--_0x107207){_0xbafbf4['push'](_0xbafbf4['shift']());}};_0x51c030(++_0x4cea3b);}(a876_0x4cea,0x18d));var a876_0x51c0=function(_0xbafbf4,_0x4cea3b){_0xbafbf4=_0xbafbf4-0x0;var _0x51c030=a876_0x4cea[_0xbafbf4];return _0x51c030;};var _0x11eac7=a876_0x51c0;'use strict';function getQueuesChildren(_0x107207){var _0x28fc64=a876_0x51c0;return _0x107207+='_',[{'id':_0x107207+_0x28fc64('0x27'),'text':_0x28fc64('0x4')},{'id':_0x107207+'unanswered','text':'Unanswered'},{'id':_0x107207+'distribution','text':_0x28fc64('0x28')}];}function getVoiceChildren(_0x5d5e21){var _0x3440c5=a876_0x51c0;return _0x5d5e21+='_',[{'id':_0x5d5e21+_0x3440c5('0x13'),'text':_0x3440c5('0x16'),'icon':_0x3440c5('0x10'),'children':getQueuesChildren(_0x5d5e21+_0x3440c5('0x13'))},{'id':_0x5d5e21+'calls','text':'Calls','icon':_0x3440c5('0xd')},{'id':_0x5d5e21+_0x3440c5('0x1e'),'text':'Agents','icon':_0x3440c5('0xa')},{'id':_0x5d5e21+_0x3440c5('0x2a'),'text':_0x3440c5('0x6'),'icon':'icon\x20s20\x20icon-sitemap'},{'id':_0x5d5e21+_0x3440c5('0x19'),'text':_0x3440c5('0x11'),'icon':_0x3440c5('0x21')}];}function getBullChildren(_0x2db404){var _0x2a2b30=a876_0x51c0;return _0x2db404+='_',[{'id':_0x2db404+_0x2a2b30('0xe'),'text':_0x2a2b30('0x23'),'icon':_0x2a2b30('0x10')},{'id':_0x2db404+_0x2a2b30('0x17'),'text':_0x2a2b30('0x22'),'icon':_0x2a2b30('0x1a')}];}function getMotionChildren(_0x3d23e5){var _0x999d54=a876_0x51c0;return _0x3d23e5+='_',[{'id':_0x3d23e5+_0x999d54('0x1b'),'text':_0x999d54('0x1'),'icon':_0x999d54('0x1f'),'children':getVoiceChildren(_0x3d23e5+_0x999d54('0x1b'))},{'id':_0x3d23e5+_0x999d54('0x2'),'text':_0x999d54('0x1c'),'icon':_0x999d54('0x3'),'children':getBullChildren(_0x3d23e5+_0x999d54('0x2'))},{'id':_0x3d23e5+_0x999d54('0x12'),'text':'Chat','icon':_0x999d54('0x24')},{'id':_0x3d23e5+_0x999d54('0x15'),'text':'Email','icon':_0x999d54('0x7')},{'id':_0x3d23e5+_0x999d54('0x25'),'text':'Openchannel','icon':_0x999d54('0x0')},{'id':_0x3d23e5+_0x999d54('0xc'),'text':_0x999d54('0x29'),'icon':_0x999d54('0x9')},{'id':_0x3d23e5+_0x999d54('0x8'),'text':_0x999d54('0xf'),'icon':'icon\x20s20\x20icon-deskphone'},{'id':_0x3d23e5+_0x999d54('0x26'),'text':'WhatsApp\x20Connector','icon':_0x999d54('0x20')},{'id':_0x3d23e5+_0x999d54('0x1e'),'text':_0x999d54('0x5'),'icon':'icon\x20s20\x20icon-account-multiple'}];}function getTree(_0x364d39){var _0x579034=a876_0x51c0;return[{'id':_0x364d39?'custom':_0x579034('0xb'),'text':(_0x364d39?'Custom':_0x579034('0x14'))+'\x20Reports','icon':_0x579034('0x1d')+(_0x364d39?'icon-laptop-chromebook':'icon-cloud'),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x364d39?_0x579034('0x18'):_0x579034('0xb'))}];}exports['motion']=getTree(![]),exports[_0x11eac7('0x18')]=getTree(!![]); \ No newline at end of file diff --git a/server/config/seedDB/trunks.js b/server/config/seedDB/trunks.js index 329721c..0de9665 100644 --- a/server/config/seedDB/trunks.js +++ b/server/config/seedDB/trunks.js @@ -1 +1 @@ -const a877_0x3949=['create','../logger','Trunk','Trunks\x20have\x20been\x20created','error','55xcally55','Can\x27t\x20create\x20Trunks','then','info','bulkCreate','trunk\x20demo\x20auto\x20generated','catch','demo'];(function(_0x3d91dc,_0x3949bc){const _0x490de3=function(_0x561179){while(--_0x561179){_0x3d91dc['push'](_0x3d91dc['shift']());}};_0x490de3(++_0x3949bc);}(a877_0x3949,0x180));const a877_0x490d=function(_0x3d91dc,_0x3949bc){_0x3d91dc=_0x3d91dc-0x0;let _0x490de3=a877_0x3949[_0x3d91dc];return _0x490de3;};const _0x298a5a=a877_0x490d;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x298a5a('0x7'))('app'),trunks=[{'id':0x1,'name':_0x298a5a('0x5'),'secret':_0x298a5a('0xb'),'defaultuser':'demo','description':_0x298a5a('0x3')}];exports[_0x298a5a('0x6')]=function(){const _0x26a7af=_0x298a5a;return db[_0x26a7af('0x8')][_0x26a7af('0x2')](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x26a7af('0x0')](function(){const _0x1dbafe=_0x26a7af;logger[_0x1dbafe('0x1')](_0x1dbafe('0x9'));})[_0x26a7af('0x4')](function(){const _0xb39051=_0x26a7af;logger[_0xb39051('0xa')](_0xb39051('0xc'));});}; \ No newline at end of file +const a877_0x152e=['Can\x27t\x20create\x20Trunks','error','app','55xcally55','../../mysqldb','trunk\x20demo\x20auto\x20generated','demo','catch','Trunk','Trunks\x20have\x20been\x20created'];(function(_0x8c7a53,_0x152e26){const _0x165848=function(_0x1ac713){while(--_0x1ac713){_0x8c7a53['push'](_0x8c7a53['shift']());}};_0x165848(++_0x152e26);}(a877_0x152e,0x16e));const a877_0x1658=function(_0x8c7a53,_0x152e26){_0x8c7a53=_0x8c7a53-0x0;let _0x165848=a877_0x152e[_0x8c7a53];return _0x165848;};const _0x59ca3b=a877_0x1658;'use strict';const db=require(_0x59ca3b('0x8'))['db'],logger=require('../logger')(_0x59ca3b('0x6')),trunks=[{'id':0x1,'name':_0x59ca3b('0x0'),'secret':_0x59ca3b('0x7'),'defaultuser':'demo','description':_0x59ca3b('0x9')}];exports['create']=function(){const _0x5d072b=_0x59ca3b;return db[_0x5d072b('0x2')]['bulkCreate'](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x5dde3b=_0x5d072b;logger['info'](_0x5dde3b('0x3'));})[_0x5d072b('0x1')](function(){const _0x5ab58d=_0x5d072b;logger[_0x5ab58d('0x5')](_0x5ab58d('0x4'));});}; \ No newline at end of file diff --git a/server/config/seedDB/userProfiles.js b/server/config/seedDB/userProfiles.js index fd30356..d6a0a5c 100644 --- a/server/config/seedDB/userProfiles.js +++ b/server/config/seedDB/userProfiles.js @@ -1 +1 @@ -const a878_0x3107=['UserProfile','create','Default','../../mysqldb','error','../logger','then','info','bulkCreate','catch'];(function(_0x26530d,_0x310719){const _0x278bd2=function(_0x13530c){while(--_0x13530c){_0x26530d['push'](_0x26530d['shift']());}};_0x278bd2(++_0x310719);}(a878_0x3107,0x13d));const a878_0x278b=function(_0x26530d,_0x310719){_0x26530d=_0x26530d-0x0;let _0x278bd2=a878_0x3107[_0x26530d];return _0x278bd2;};const _0x4e6829=a878_0x278b;'use strict';const db=require(_0x4e6829('0x6'))['db'],logger=require(_0x4e6829('0x8'))('app'),userProfiles=[{'id':0x1,'name':_0x4e6829('0x5'),'crudPermissions':['r','e','d'],'description':'Auto\x20generated\x20User\x20Profile'}];exports[_0x4e6829('0x4')]=function(){const _0x33ab4a=_0x4e6829;return db[_0x33ab4a('0x3')][_0x33ab4a('0x1')](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x33ab4a('0x9')](function(){const _0x477adf=_0x33ab4a;logger[_0x477adf('0x0')]('User\x20Profiles\x20have\x20been\x20created');})[_0x33ab4a('0x2')](function(){const _0x1a5f20=_0x33ab4a;logger[_0x1a5f20('0x7')]('Can\x27t\x20create\x20User\x20Profiles');});}; \ No newline at end of file +const a878_0x5d23=['Can\x27t\x20create\x20User\x20Profiles','then','app','info','bulkCreate','../../mysqldb','create','Default','../logger','error','Auto\x20generated\x20User\x20Profile'];(function(_0x4c26d1,_0x5d23bc){const _0x75b26c=function(_0x61f8a7){while(--_0x61f8a7){_0x4c26d1['push'](_0x4c26d1['shift']());}};_0x75b26c(++_0x5d23bc);}(a878_0x5d23,0xe5));const a878_0x75b2=function(_0x4c26d1,_0x5d23bc){_0x4c26d1=_0x4c26d1-0x0;let _0x75b26c=a878_0x5d23[_0x4c26d1];return _0x75b26c;};const _0x1e59da=a878_0x75b2;'use strict';const db=require(_0x1e59da('0x7'))['db'],logger=require(_0x1e59da('0xa'))(_0x1e59da('0x4')),userProfiles=[{'id':0x1,'name':_0x1e59da('0x9'),'crudPermissions':['r','e','d'],'description':_0x1e59da('0x1')}];exports[_0x1e59da('0x8')]=function(){const _0x32338e=_0x1e59da;return db['UserProfile'][_0x32338e('0x6')](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x32338e('0x3')](function(){const _0x4dfc5f=_0x32338e;logger[_0x4dfc5f('0x5')]('User\x20Profiles\x20have\x20been\x20created');})['catch'](function(){const _0x3e1379=_0x32338e;logger[_0x3e1379('0x0')](_0x3e1379('0x2'));});}; \ No newline at end of file diff --git a/server/config/seedDB/users.js b/server/config/seedDB/users.js index 5b72e59..ceda95e 100644 --- a/server/config/seedDB/users.js +++ b/server/config/seedDB/users.js @@ -1 +1 @@ -const a879_0x56f2=['split','shuttle55','Can\x27t\x20create\x20Users','admin@xcally.com','agent','Administrator','John\x20Doe','create','then','User','catch','admin','jane.miller','info','error','agent\x20auto\x20generated','john.doe@xcally.com','john.doe','Jane\x20Miller','101,102,103,113,110,104,105,106,107,108,109,100,111,114','password'];(function(_0x33e2e9,_0x56f21e){const _0xfbca64=function(_0x468c71){while(--_0x468c71){_0x33e2e9['push'](_0x33e2e9['shift']());}};_0xfbca64(++_0x56f21e);}(a879_0x56f2,0x118));const a879_0xfbca=function(_0x33e2e9,_0x56f21e){_0x33e2e9=_0x33e2e9-0x0;let _0xfbca64=a879_0x56f2[_0x33e2e9];return _0xfbca64;};const _0x179e6e=a879_0xfbca;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')('app'),users=[{'id':0x1,'role':_0x179e6e('0x4'),'name':_0x179e6e('0x4'),'password':_0x179e6e('0xd'),'fullname':_0x179e6e('0x13'),'email':_0x179e6e('0x11'),'internal':0x3e8,'description':'user\x20auto\x20generated'},{'id':0x2,'role':_0x179e6e('0x12'),'name':_0x179e6e('0xa'),'email':_0x179e6e('0x9'),'password':_0x179e6e('0xf'),'fullname':_0x179e6e('0x14'),'internal':0x3e9,'permissions':_0x179e6e('0xc')[_0x179e6e('0xe')](','),'description':_0x179e6e('0x8')},{'id':0x3,'role':_0x179e6e('0x12'),'name':_0x179e6e('0x5'),'email':'jane.miller@xcally.com','password':_0x179e6e('0xf'),'fullname':_0x179e6e('0xb'),'internal':0x3ea,'permissions':_0x179e6e('0xc')[_0x179e6e('0xe')](','),'description':_0x179e6e('0x8')}];exports[_0x179e6e('0x0')]=function(){const _0x3517b4=_0x179e6e;return db[_0x3517b4('0x2')]['bulkCreate'](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3517b4('0x1')](function(){const _0x3f0a42=_0x3517b4;logger[_0x3f0a42('0x6')]('Users\x20have\x20been\x20created');})[_0x3517b4('0x3')](function(_0x468c71){const _0x52a407=_0x3517b4;logger[_0x52a407('0x7')](_0x52a407('0x10'),_0x468c71);});}; \ No newline at end of file +const a879_0x5892=['catch','John\x20Doe','john.doe','../../mysqldb','bulkCreate','john.doe@xcally.com','Users\x20have\x20been\x20created','Jane\x20Miller','101,102,103,113,110,104,105,106,107,108,109,100,111,114','error','create','agent','split','admin','jane.miller','shuttle55','admin@xcally.com','User','password','then','app','agent\x20auto\x20generated'];(function(_0x45f44b,_0x5892da){const _0x31b9e3=function(_0x5dd7c7){while(--_0x5dd7c7){_0x45f44b['push'](_0x45f44b['shift']());}};_0x31b9e3(++_0x5892da);}(a879_0x5892,0x1ce));const a879_0x31b9=function(_0x45f44b,_0x5892da){_0x45f44b=_0x45f44b-0x0;let _0x31b9e3=a879_0x5892[_0x45f44b];return _0x31b9e3;};const _0x2bbe6d=a879_0x31b9;'use strict';const db=require(_0x2bbe6d('0x3'))['db'],logger=require('../logger')(_0x2bbe6d('0x14')),users=[{'id':0x1,'role':_0x2bbe6d('0xd'),'name':_0x2bbe6d('0xd'),'password':_0x2bbe6d('0x12'),'fullname':'Administrator','email':_0x2bbe6d('0x10'),'internal':0x3e8,'description':'user\x20auto\x20generated'},{'id':0x2,'role':_0x2bbe6d('0xb'),'name':_0x2bbe6d('0x2'),'email':_0x2bbe6d('0x5'),'password':_0x2bbe6d('0xf'),'fullname':_0x2bbe6d('0x1'),'internal':0x3e9,'permissions':_0x2bbe6d('0x8')['split'](','),'description':_0x2bbe6d('0x15')},{'id':0x3,'role':_0x2bbe6d('0xb'),'name':_0x2bbe6d('0xe'),'email':'jane.miller@xcally.com','password':_0x2bbe6d('0xf'),'fullname':_0x2bbe6d('0x7'),'internal':0x3ea,'permissions':_0x2bbe6d('0x8')[_0x2bbe6d('0xc')](','),'description':_0x2bbe6d('0x15')}];exports[_0x2bbe6d('0xa')]=function(){const _0x360cba=_0x2bbe6d;return db[_0x360cba('0x11')][_0x360cba('0x4')](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x360cba('0x13')](function(){const _0x4bf08a=_0x360cba;logger['info'](_0x4bf08a('0x6'));})[_0x360cba('0x0')](function(_0x5dd7c7){const _0x1dd0ef=_0x360cba;logger[_0x1dd0ef('0x9')]('Can\x27t\x20create\x20Users',_0x5dd7c7);});}; \ No newline at end of file diff --git a/server/config/seedDB/variables.js b/server/config/seedDB/variables.js index 6d358b5..28e6b45 100644 --- a/server/config/seedDB/variables.js +++ b/server/config/seedDB/variables.js @@ -1 +1 @@ -const a880_0x2099=['FIRSTNAME','variable\x20for\x20rate\x20call\x20auto\x20generated','VAR2','ORDERNUM','Variables\x20have\x20been\x20created','PHONE','variable\x20dialed\x20number\x20identifier\x20auto\x20generated','EMAIL','Can\x27t\x20create\x20Variables','variable\x20auto\x20generated','DBRESULT','../../mysqldb','bulkCreate','ORDER','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated','app','CHANNEL(language)','CALLERID(name)','then','../logger','generic\x20variable\x20auto\x20generated','RESULT','COUNTER','catch','variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated','LASTNAME','variable\x20for\x20order\x20auto\x20generated','VAR1','error','RATE','CALLERID(num)'];(function(_0x185e11,_0x20998d){const _0xd64913=function(_0x8c276c){while(--_0x8c276c){_0x185e11['push'](_0x185e11['shift']());}};_0xd64913(++_0x20998d);}(a880_0x2099,0xe5));const a880_0xd649=function(_0x185e11,_0x20998d){_0x185e11=_0x185e11-0x0;let _0xd64913=a880_0x2099[_0x185e11];return _0xd64913;};const _0x3eb454=a880_0xd649;'use strict';const db=require(_0x3eb454('0x1e'))['db'],logger=require(_0x3eb454('0x7'))(_0x3eb454('0x3')),variables=[{'id':0x1,'name':'CHOICE','description':'variable\x20for\x20menu\x20auto\x20generated'},{'id':0x2,'name':_0x3eb454('0x16'),'description':_0x3eb454('0xe')},{'id':0x3,'name':_0x3eb454('0x1d'),'description':'variable\x20for\x20db\x20query\x20result\x20auto\x20generated'},{'id':0x4,'name':_0x3eb454('0x11'),'description':_0x3eb454('0x14')},{'id':0x5,'name':'CALLERID(dnid)','description':_0x3eb454('0x19')},{'id':0x6,'name':_0x3eb454('0x5'),'description':_0x3eb454('0x2')},{'id':0x7,'name':_0x3eb454('0x12'),'description':'variable\x20number\x20of\x20the\x20caller\x20auto\x20generated'},{'id':0x8,'name':_0x3eb454('0x4'),'description':_0x3eb454('0xc')},{'id':0x9,'name':_0x3eb454('0xa'),'description':_0x3eb454('0x1c')},{'id':0xa,'name':_0x3eb454('0x1a'),'description':_0x3eb454('0x1c')},{'id':0xb,'name':'EXTRAVAR','description':'variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated'},{'id':0xc,'name':_0x3eb454('0x13'),'description':_0x3eb454('0x1c')},{'id':0xd,'name':_0x3eb454('0xd'),'description':_0x3eb454('0x1c')},{'id':0xe,'name':'INPUT','description':'variable\x20auto\x20generated'},{'id':0xf,'name':'OPTION','description':_0x3eb454('0x1c')},{'id':0x10,'name':_0x3eb454('0x1'),'description':_0x3eb454('0x1c')},{'id':0x11,'name':_0x3eb454('0x18'),'description':_0x3eb454('0x1c')},{'id':0x12,'name':_0x3eb454('0x9'),'description':_0x3eb454('0x1c')},{'id':0x13,'name':'UNIQUEID','description':'variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated'},{'id':0x14,'name':_0x3eb454('0xf'),'description':_0x3eb454('0x8')},{'id':0x15,'name':_0x3eb454('0x15'),'description':_0x3eb454('0x8')},{'id':0x16,'name':'VAR3','description':_0x3eb454('0x8')}];exports['create']=function(){const _0xa9bc29=_0x3eb454;return db['Variable'][_0xa9bc29('0x0')](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xa9bc29('0x6')](function(){const _0x233e11=_0xa9bc29;logger['info'](_0x233e11('0x17'));})[_0xa9bc29('0xb')](function(){const _0x5ead79=_0xa9bc29;logger[_0x5ead79('0x10')](_0x5ead79('0x1b'));});}; \ No newline at end of file +const a880_0x3466=['variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated','CALLERID(num)','create','LASTNAME','variable\x20for\x20menu\x20auto\x20generated','RESULT','VAR2','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated','../../mysqldb','CALLERID(name)','RATE','Variable','then','variable\x20for\x20rate\x20call\x20auto\x20generated','variable\x20auto\x20generated','../logger','VAR3','bulkCreate','Can\x27t\x20create\x20Variables','variable\x20number\x20of\x20the\x20caller\x20auto\x20generated','app','DBRESULT','ORDERNUM','EXTRAVAR','CALLERID(dnid)','generic\x20variable\x20auto\x20generated','variable\x20dialed\x20number\x20identifier\x20auto\x20generated','variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated','INPUT','UNIQUEID','info','variable\x20for\x20order\x20auto\x20generated','VAR1','variable\x20for\x20db\x20query\x20result\x20auto\x20generated','variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated','ORDER'];(function(_0x67ec74,_0x3466ab){const _0x2a4ebb=function(_0x365a89){while(--_0x365a89){_0x67ec74['push'](_0x67ec74['shift']());}};_0x2a4ebb(++_0x3466ab);}(a880_0x3466,0x7c));const a880_0x2a4e=function(_0x67ec74,_0x3466ab){_0x67ec74=_0x67ec74-0x0;let _0x2a4ebb=a880_0x3466[_0x67ec74];return _0x2a4ebb;};const _0x180f33=a880_0x2a4e;'use strict';const db=require(_0x180f33('0x1c'))['db'],logger=require(_0x180f33('0x23'))(_0x180f33('0x4')),variables=[{'id':0x1,'name':'CHOICE','description':_0x180f33('0x18')},{'id':0x2,'name':_0x180f33('0x6'),'description':_0x180f33('0xf')},{'id':0x3,'name':_0x180f33('0x5'),'description':_0x180f33('0x11')},{'id':0x4,'name':_0x180f33('0x1e'),'description':_0x180f33('0x21')},{'id':0x5,'name':_0x180f33('0x8'),'description':_0x180f33('0xa')},{'id':0x6,'name':_0x180f33('0x1d'),'description':_0x180f33('0x1b')},{'id':0x7,'name':_0x180f33('0x15'),'description':_0x180f33('0x3')},{'id':0x8,'name':'CHANNEL(language)','description':_0x180f33('0xb')},{'id':0x9,'name':'COUNTER','description':_0x180f33('0x22')},{'id':0xa,'name':'EMAIL','description':_0x180f33('0x22')},{'id':0xb,'name':_0x180f33('0x7'),'description':_0x180f33('0x12')},{'id':0xc,'name':'FIRSTNAME','description':'variable\x20auto\x20generated'},{'id':0xd,'name':_0x180f33('0x17'),'description':'variable\x20auto\x20generated'},{'id':0xe,'name':_0x180f33('0xc'),'description':_0x180f33('0x22')},{'id':0xf,'name':'OPTION','description':_0x180f33('0x22')},{'id':0x10,'name':_0x180f33('0x13'),'description':'variable\x20auto\x20generated'},{'id':0x11,'name':'PHONE','description':'variable\x20auto\x20generated'},{'id':0x12,'name':_0x180f33('0x19'),'description':_0x180f33('0x22')},{'id':0x13,'name':_0x180f33('0xd'),'description':_0x180f33('0x14')},{'id':0x14,'name':_0x180f33('0x10'),'description':_0x180f33('0x9')},{'id':0x15,'name':_0x180f33('0x1a'),'description':_0x180f33('0x9')},{'id':0x16,'name':_0x180f33('0x0'),'description':'generic\x20variable\x20auto\x20generated'}];exports[_0x180f33('0x16')]=function(){const _0x48e83e=_0x180f33;return db[_0x48e83e('0x1f')][_0x48e83e('0x1')](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x48e83e('0x20')](function(){const _0x4d2278=_0x48e83e;logger[_0x4d2278('0xe')]('Variables\x20have\x20been\x20created');})['catch'](function(){const _0x43885f=_0x48e83e;logger['error'](_0x43885f('0x2'));});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceContexts.js b/server/config/seedDB/voiceContexts.js index 545b9a1..9724ee2 100644 --- a/server/config/seedDB/voiceContexts.js +++ b/server/config/seedDB/voiceContexts.js @@ -1 +1 @@ -const a881_0x5e91=['error','\x20context','from-sip','name','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','findOrCreate','inbound-fax','info','\x20have\x20been\x20created','Context\x20','outbound-fax','exports','app','xcally-mixmonitor-context','../logger','Can\x27t\x20create\x20','../../mysqldb','from-voicemail'];(function(_0x1cb68c,_0x5e9172){const _0x5cc5a6=function(_0x4be045){while(--_0x4be045){_0x1cb68c['push'](_0x1cb68c['shift']());}};_0x5cc5a6(++_0x5e9172);}(a881_0x5e91,0x19f));const a881_0x5cc5=function(_0x1cb68c,_0x5e9172){_0x1cb68c=_0x1cb68c-0x0;let _0x5cc5a6=a881_0x5e91[_0x1cb68c];return _0x5cc5a6;};const _0x502003=a881_0x5cc5;'use strict';const db=require(_0x502003('0xf'))['db'],logger=require(_0x502003('0xd'))(_0x502003('0xb')),voiceContexts=[{'name':_0x502003('0x1'),'description':_0x502003('0x3'),'defaultEntry':!![]},{'name':'from-voip-provider','description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':_0x502003('0x5'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':_0x502003('0x9'),'description':_0x502003('0x3'),'defaultEntry':!![]},{'name':_0x502003('0x10'),'description':_0x502003('0x3'),'defaultEntry':!![]},{'name':_0x502003('0xc'),'description':_0x502003('0x3'),'defaultEntry':!![]}];async function create(){const _0x48440f=_0x502003;for(const _0x4be045 of voiceContexts){try{const [,_0x4f40a2]=await db['VoiceContext'][_0x48440f('0x4')]({'where':{'name':_0x4be045[_0x48440f('0x2')]},'defaults':_0x4be045});_0x4f40a2&&logger[_0x48440f('0x6')](_0x48440f('0x8')+_0x4be045['name']+_0x48440f('0x7'));}catch(_0xf58301){logger[_0x48440f('0x11')](_0x48440f('0xe')+_0x4be045[_0x48440f('0x2')]+_0x48440f('0x0'),_0xf58301);}}}module[_0x502003('0xa')]={'create':create}; \ No newline at end of file +const a881_0x50cf=['Can\x27t\x20create\x20','from-sip','findOrCreate','app','xcally-mixmonitor-context','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','from-voip-provider','outbound-fax','from-voicemail','name','\x20context','../../mysqldb','VoiceContext','info','error'];(function(_0x2b7f3d,_0x50cf8f){const _0xfe30ad=function(_0x24687f){while(--_0x24687f){_0x2b7f3d['push'](_0x2b7f3d['shift']());}};_0xfe30ad(++_0x50cf8f);}(a881_0x50cf,0x73));const a881_0xfe30=function(_0x2b7f3d,_0x50cf8f){_0x2b7f3d=_0x2b7f3d-0x0;let _0xfe30ad=a881_0x50cf[_0x2b7f3d];return _0xfe30ad;};const _0x3f65ad=a881_0xfe30;'use strict';const db=require(_0x3f65ad('0x1'))['db'],logger=require('../logger')(_0x3f65ad('0x8')),voiceContexts=[{'name':_0x3f65ad('0x6'),'description':_0x3f65ad('0xa'),'defaultEntry':!![]},{'name':_0x3f65ad('0xb'),'description':_0x3f65ad('0xa'),'defaultEntry':!![]},{'name':'inbound-fax','description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':_0x3f65ad('0xc'),'description':_0x3f65ad('0xa'),'defaultEntry':!![]},{'name':_0x3f65ad('0xd'),'description':_0x3f65ad('0xa'),'defaultEntry':!![]},{'name':_0x3f65ad('0x9'),'description':_0x3f65ad('0xa'),'defaultEntry':!![]}];async function create(){const _0x5a7c90=_0x3f65ad;for(const _0x24687f of voiceContexts){try{const [,_0x2deed6]=await db[_0x5a7c90('0x2')][_0x5a7c90('0x7')]({'where':{'name':_0x24687f['name']},'defaults':_0x24687f});_0x2deed6&&logger[_0x5a7c90('0x3')]('Context\x20'+_0x24687f[_0x5a7c90('0xe')]+'\x20have\x20been\x20created');}catch(_0x31ef99){logger[_0x5a7c90('0x4')](_0x5a7c90('0x5')+_0x24687f[_0x5a7c90('0xe')]+_0x5a7c90('0x0'),_0x31ef99);}}}module['exports']={'create':create}; \ No newline at end of file diff --git a/server/config/seedDB/voiceExtensions.js b/server/config/seedDB/voiceExtensions.js index 42559fc..a86615f 100644 --- a/server/config/seedDB/voiceExtensions.js +++ b/server/config/seedDB/voiceExtensions.js @@ -1 +1 @@ -const a882_0x6a70=['6000','outbound','Dial','sequelize','inbound','6669','${EXTEN:20},xX','then','forward\x20to\x20Support\x20queue\x20auto\x20generated','internal','catch\x20hangup\x20event\x20auto\x20generated','6668','Set','outboundrouteid','6667','Echo','_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].','../logger','6670','xcally-motion-fax','lodash','catch\x20all\x20inbound\x20calls\x20auto\x20generated','bulkCreate','echo\x20test\x20demo\x20auto\x20generated','outboundrouteid=','Support,xX,,,300,,,,,','FAXOPT(modem)=${XMF-MODEM}','CDR(type)=outbound-fax','agi','xcally-motion-preview','XCALLY-MOTION-PROGRESS=0','catch\x20failed\x20event\x20auto\x20generated','Wait','FAXOPT(t38timeout)=${XMF-T38TIMEOUT}','CDR(type)=dialer','MONITOR_OPTIONS=ab','../../mysqldb','failed','create','FAXOPT(minrate)=${XMF-MINRATE}','AMD','AGI','xcally-mixmonitor-context','Progress','type','dialer\x20extensions\x20auto\x20generated','app','forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated','demo\x20outbound\x20calls\x20auto\x20generated','Queue','demo-echodone','exten','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','agi://127.0.0.1/square,Orders','VoiceExtension','agi://127.0.0.1/square,CSI','demo-congrats','CDR(type)=inbound','${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab','Answer','custom','Hangup','CDR(type)=outbound','error','forward\x20to\x20Survey\x20IVR\x20auto\x20generated','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','from-sip','info','agi://127.0.0.1/square,Survey','createAlways','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','GotoIf','length','XCALLY-MOTION-ANSWER=0','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','6001','Playback','FAXOPT(ecm)=${XMF-ECM}','$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11','demo-echotest','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','600','forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated','FAXOPT(maxrate)=${XMF-MAXRATE}','description','FAXOPT(headerinfo)=${XMF-HEADERINFO}','Sales,xX,,,300,,,,,','Execif','system','Can\x27t\x20create\x20Voice\x20Extensions','forward\x20to\x20Orders\x20IVR\x20auto\x20generated','_X.','priority','CALLERID(all)=${XMD-CALLERID}','CDR(type)=internal','${XMF-PATH},d','6666','queue','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','Return','destroy','forward\x20to\x20Sales\x20queue\x20auto\x20generated','SendFax'];(function(_0x12058a,_0x6a7091){const _0x575c6b=function(_0x2cfb59){while(--_0x2cfb59){_0x12058a['push'](_0x12058a['shift']());}};_0x575c6b(++_0x6a7091);}(a882_0x6a70,0x1be));const a882_0x575c=function(_0x12058a,_0x6a7091){_0x12058a=_0x12058a-0x0;let _0x575c6b=a882_0x6a70[_0x12058a];return _0x575c6b;};const _0x54651a=a882_0x575c;'use strict';const _=require(_0x54651a('0x5e')),db=require(_0x54651a('0x6'))['db'],{Op}=require(_0x54651a('0x4d')),logger=require(_0x54651a('0x5b'))(_0x54651a('0x10')),applications={0x258:[{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x41')},{'app':'Answer'},{'app':_0x54651a('0x2f'),'appdata':_0x54651a('0x32'),'isApp':!![]},{'app':_0x54651a('0x59'),'isApp':!![]},{'app':'Playback','appdata':_0x54651a('0x14'),'isApp':!![]},{'app':'Hangup'}],0x1770:[{'app':_0x54651a('0x56'),'appdata':'CDR(type)=internal'},{'app':_0x54651a('0x1e')},{'app':_0x54651a('0x13'),'appdata':_0x54651a('0x63'),'appType':_0x54651a('0x44'),'isApp':!![]},{'app':_0x54651a('0x20')}],0x1771:[{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x41')},{'app':_0x54651a('0x1e')},{'app':_0x54651a('0x13'),'appdata':_0x54651a('0x39'),'appType':_0x54651a('0x44'),'isApp':!![]},{'app':_0x54651a('0x20')}],0x1a0a:[{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x41')},{'app':_0x54651a('0xb'),'appdata':'agi://127.0.0.1/square,AutoAttendant','appType':_0x54651a('0x66'),'isApp':!![]},{'app':'Hangup'}],0x1a0b:[{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x41')},{'app':_0x54651a('0xb'),'appdata':_0x54651a('0x18'),'appType':'agi','isApp':!![]},{'app':_0x54651a('0x20')}],0x1a0c:[{'app':_0x54651a('0x56'),'appdata':'CDR(type)=internal'},{'app':_0x54651a('0xb'),'appdata':_0x54651a('0x1a'),'appType':'agi','isApp':!![]},{'app':'Hangup'}],0x1a0d:[{'app':_0x54651a('0x56'),'appdata':'CDR(type)=internal'},{'app':_0x54651a('0xb'),'appdata':_0x54651a('0x27'),'appType':_0x54651a('0x66'),'isApp':!![]},{'app':_0x54651a('0x20')}],0x1a0e:[{'app':'Set','appdata':'CDR(type)=internal'},{'app':_0x54651a('0xb'),'appdata':'agi://127.0.0.1/square,AgentManagement','appType':_0x54651a('0x66'),'isApp':!![]},{'app':_0x54651a('0x20')}],'xcally-motion-dialer':[{'app':'Set','appdata':_0x54651a('0x4')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x40')},{'app':_0x54651a('0x2a'),'appdata':_0x54651a('0x17')},{'app':_0x54651a('0x1e'),'appdata':''},{'app':'Background','appdata':'silence/1'},{'app':_0x54651a('0xa'),'appdata':'${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}'},{'app':_0x54651a('0x2a'),'appdata':_0x54651a('0x29')},{'app':_0x54651a('0x2a'),'appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10'},{'app':_0x54651a('0x2a'),'appdata':_0x54651a('0x31')},{'app':_0x54651a('0x3a'),'appdata':_0x54651a('0x2d')},{'app':_0x54651a('0x3a'),'appdata':_0x54651a('0x24')},{'app':_0x54651a('0x3a'),'appdata':_0x54651a('0x33')},{'app':_0x54651a('0x20')}],'xcally-motion-fax':[{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x65')},{'app':_0x54651a('0x2'),'appdata':'6'},{'app':'Set','appdata':_0x54651a('0x30')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x38')},{'app':'Set','appdata':_0x54651a('0x16')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x36')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x9')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x64')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x3')},{'app':_0x54651a('0x49'),'appdata':_0x54651a('0x42')}],'xcally-motion-preview':[{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x4')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x40')},{'app':'Execif','appdata':_0x54651a('0x2d')},{'app':_0x54651a('0x4c'),'appdata':'${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}'},{'app':_0x54651a('0x3a'),'appdata':_0x54651a('0x33')},{'app':_0x54651a('0x20')}],'_.':[{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x21')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x2c')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x0')},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x5')},{'app':'Set','outboundrouteid':!![]},{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x45')},{'app':_0x54651a('0x56'),'appdata':'_XCALLY_MIXMONITOR_FORMAT=wav'},{'app':_0x54651a('0x2f'),'appdata':_0x54651a('0x1b'),'appType':_0x54651a('0x1f'),'isApp':!![]},{'app':_0x54651a('0x20')}],'_X.':[{'app':_0x54651a('0x56'),'appdata':_0x54651a('0x1c')},{'app':_0x54651a('0x1e')},{'app':_0x54651a('0x2f'),'appdata':_0x54651a('0x1b'),'isApp':!![]},{'app':'Hangup'}],'h':[{'app':_0x54651a('0x20')}],'failed':[{'app':'Hangup'}]},voiceExtensions=[{'type':'internal','context':_0x54651a('0x25'),'exten':_0x54651a('0x34'),'description':_0x54651a('0x61')},{'type':_0x54651a('0x53'),'context':'from-sip','exten':_0x54651a('0x4a'),'description':_0x54651a('0x52')},{'type':_0x54651a('0x53'),'context':_0x54651a('0x25'),'exten':_0x54651a('0x2e'),'description':_0x54651a('0x48')},{'type':_0x54651a('0x53'),'context':'from-sip','exten':_0x54651a('0x43'),'description':_0x54651a('0x11')},{'type':_0x54651a('0x53'),'context':_0x54651a('0x25'),'exten':_0x54651a('0x58'),'description':_0x54651a('0x3d')},{'type':'internal','context':'from-sip','exten':_0x54651a('0x55'),'description':'forward\x20to\x20CSI\x20IVR\x20auto\x20generated'},{'type':_0x54651a('0x53'),'context':_0x54651a('0x25'),'exten':_0x54651a('0x4f'),'description':_0x54651a('0x23')},{'type':_0x54651a('0x53'),'context':_0x54651a('0x25'),'exten':_0x54651a('0x5c'),'description':_0x54651a('0x35')},{'type':_0x54651a('0x3b'),'context':_0x54651a('0x25'),'exten':'xcally-motion-dialer','description':_0x54651a('0xf')},{'type':'system','context':_0x54651a('0x25'),'exten':_0x54651a('0x5d'),'description':'fax\x20extensions\x20auto\x20generated'},{'type':_0x54651a('0x3b'),'context':_0x54651a('0x25'),'exten':_0x54651a('0x67'),'description':_0x54651a('0xf')},{'type':_0x54651a('0x4b'),'context':_0x54651a('0x25'),'exten':'_.','description':_0x54651a('0x12')},{'type':_0x54651a('0x4e'),'context':'from-voip-provider','exten':_0x54651a('0x3e'),'description':_0x54651a('0x5f')},{'type':_0x54651a('0x3b'),'context':_0x54651a('0x25'),'exten':'h','description':_0x54651a('0x54')},{'type':_0x54651a('0x3b'),'context':_0x54651a('0x25'),'exten':_0x54651a('0x7'),'description':_0x54651a('0x1')}],applicationsAlways={'s':[{'app':'MixMonitor','appdata':_0x54651a('0x1d')},{'app':_0x54651a('0x46')}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':_0x54651a('0xd')},{'app':_0x54651a('0x13'),'appdata':_0x54651a('0x50')}]},voiceExtensionsAlways=[{'type':'system','context':_0x54651a('0xc'),'exten':'s'},{'type':_0x54651a('0x3b'),'context':_0x54651a('0x25'),'exten':_0x54651a('0x5a')}];function createExtensions(_0x2cfb59,_0x5c2cd2){const _0x2eb64b=_0x54651a;return db[_0x2eb64b('0x19')][_0x2eb64b('0x60')](_0x2cfb59,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2eb64b('0x51')](function(_0x19ae39){const _0x475ef5=_0x2eb64b;for(let _0x5be22c=0x0;_0x5be22c<_0x19ae39['length'];_0x5be22c+=0x1){if(_0x5c2cd2[_0x19ae39[_0x5be22c]['exten']])for(let _0x330768=0x0;_0x330768<_0x5c2cd2[_0x19ae39[_0x5be22c]['exten']][_0x475ef5('0x2b')];_0x330768+=0x1){_0x5c2cd2[_0x19ae39[_0x5be22c][_0x475ef5('0x15')]][_0x330768][_0x475ef5('0x57')]&&(_0x5c2cd2[_0x19ae39[_0x5be22c][_0x475ef5('0x15')]][_0x330768]['appdata']=_0x475ef5('0x62')+_0x19ae39[_0x5be22c]['id'],delete _0x5c2cd2[_0x19ae39[_0x5be22c][_0x475ef5('0x15')]][_0x330768][_0x475ef5('0x57')]),_0x5c2cd2[_0x19ae39[_0x5be22c][_0x475ef5('0x15')]][_0x330768]=_['defaults'](_0x5c2cd2[_0x19ae39[_0x5be22c][_0x475ef5('0x15')]][_0x330768],{'isApp':![],'appType':_0x475ef5('0x1f'),'type':_0x19ae39[_0x5be22c][_0x475ef5('0xe')],'context':_0x19ae39[_0x5be22c]['context'],'exten':_0x19ae39[_0x5be22c][_0x475ef5('0x15')],'priority':parseInt(_0x19ae39[_0x5be22c][_0x475ef5('0x3f')],0xa)+0x1+_0x330768,'description':_0x19ae39[_0x5be22c][_0x475ef5('0x37')],'VoiceExtensionId':_0x19ae39[_0x5be22c]['id']}),db[_0x475ef5('0x19')][_0x475ef5('0x8')](_0x5c2cd2[_0x19ae39[_0x5be22c]['exten']][_0x330768]);}}})[_0x2eb64b('0x51')](function(){const _0x3995ba=_0x2eb64b;logger[_0x3995ba('0x26')]('Voice\x20Extensions\x20have\x20been\x20created');})['catch'](function(_0x422cb5){logger['error']('Can\x27t\x20create\x20Voice\x20Extensions',_0x422cb5);});}exports['create']=function(){createExtensions(voiceExtensions,applications);},exports[_0x54651a('0x28')]=function(){const _0xdad482=_0x54651a;return db[_0xdad482('0x19')][_0xdad482('0x47')]({'where':{[Op['or']]:voiceExtensionsAlways}})['then'](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})['catch'](function(_0x4be69a){const _0x1092fe=_0xdad482;logger[_0x1092fe('0x22')](_0x1092fe('0x3c'),_0x4be69a);});}; \ No newline at end of file +const a882_0x2aac=['system','demo-congrats','appdata','Return','internal','Voice\x20Extensions\x20have\x20been\x20created','catch\x20hangup\x20event\x20auto\x20generated','from-voip-provider','outboundrouteid=','agi://127.0.0.1/square,CSI','demo-echodone','_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].','CDR(type)=outbound-fax','createAlways','${XMF-PATH},d','agi://127.0.0.1/square,AutoAttendant','forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated','CDR(type)=dialer','Can\x27t\x20create\x20Voice\x20Extensions','app','_X.','AGI','exten','MONITOR_OPTIONS=ab','type','Background','_XCALLY_MIXMONITOR_FORMAT=wav','priority','Wait','Set','Playback','Dial','defaults','echo\x20test\x20demo\x20auto\x20generated','../logger','Echo','6000','Execif','error','$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','XCALLY-MOTION-PROGRESS=0','catch\x20failed\x20event\x20auto\x20generated','Queue','create','description','destroy','agi://127.0.0.1/square,Orders','${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','6669','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','GotoIf','catch','agi','forward\x20to\x20Support\x20queue\x20auto\x20generated','sequelize','from-sip','then','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}','Answer','FAXOPT(maxrate)=${XMF-MAXRATE}','Hangup','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','bulkCreate','xcally-mixmonitor-context','fax\x20extensions\x20auto\x20generated','6670','CDR(type)=internal','forward\x20to\x20Sales\x20queue\x20auto\x20generated','demo\x20outbound\x20calls\x20auto\x20generated','XCALLY-MOTION-ANSWER=0','length','CDR(type)=outbound','info','dialer\x20extensions\x20auto\x20generated','outboundrouteid','6666','FAXOPT(minrate)=${XMF-MINRATE}','xcally-motion-dialer','CALLERID(all)=${XMD-CALLERID}','forward\x20to\x20Orders\x20IVR\x20auto\x20generated','FAXOPT(ecm)=${XMF-ECM}','VoiceExtension','xcally-motion-preview','catch\x20all\x20inbound\x20calls\x20auto\x20generated','FAXOPT(headerinfo)=${XMF-HEADERINFO}','../../mysqldb','MixMonitor','600','Sales,xX,,,300,,,,,'];(function(_0x334373,_0x2aacf3){const _0x266ed7=function(_0x51ebaa){while(--_0x51ebaa){_0x334373['push'](_0x334373['shift']());}};_0x266ed7(++_0x2aacf3);}(a882_0x2aac,0x1e5));const a882_0x266e=function(_0x334373,_0x2aacf3){_0x334373=_0x334373-0x0;let _0x266ed7=a882_0x2aac[_0x334373];return _0x266ed7;};const _0x1c5ce1=a882_0x266e;'use strict';const _=require('lodash'),db=require(_0x1c5ce1('0x3f'))['db'],{Op}=require(_0x1c5ce1('0x1e')),logger=require(_0x1c5ce1('0x9'))(_0x1c5ce1('0x56')),applications={0x258:[{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x2c')},{'app':_0x1c5ce1('0x23')},{'app':_0x1c5ce1('0x5'),'appdata':'demo-echotest','isApp':!![]},{'app':_0x1c5ce1('0xa'),'isApp':!![]},{'app':_0x1c5ce1('0x5'),'appdata':_0x1c5ce1('0x4d'),'isApp':!![]},{'app':'Hangup'}],0x1770:[{'app':_0x1c5ce1('0x4'),'appdata':'CDR(type)=internal'},{'app':'Answer'},{'app':_0x1c5ce1('0x11'),'appdata':'Support,xX,,,300,,,,,','appType':'queue','isApp':!![]},{'app':_0x1c5ce1('0x25')}],0x1771:[{'app':_0x1c5ce1('0x4'),'appdata':'CDR(type)=internal'},{'app':_0x1c5ce1('0x23')},{'app':_0x1c5ce1('0x11'),'appdata':_0x1c5ce1('0x42'),'appType':'queue','isApp':!![]},{'app':_0x1c5ce1('0x25')}],0x1a0a:[{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x2c')},{'app':_0x1c5ce1('0x58'),'appdata':_0x1c5ce1('0x52'),'appType':_0x1c5ce1('0x1c'),'isApp':!![]},{'app':'Hangup'}],0x1a0b:[{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x2c')},{'app':_0x1c5ce1('0x58'),'appdata':_0x1c5ce1('0x15'),'appType':_0x1c5ce1('0x1c'),'isApp':!![]},{'app':_0x1c5ce1('0x25')}],0x1a0c:[{'app':_0x1c5ce1('0x4'),'appdata':'CDR(type)=internal'},{'app':_0x1c5ce1('0x58'),'appdata':_0x1c5ce1('0x4c'),'appType':'agi','isApp':!![]},{'app':_0x1c5ce1('0x25')}],0x1a0d:[{'app':'Set','appdata':_0x1c5ce1('0x2c')},{'app':_0x1c5ce1('0x58'),'appdata':'agi://127.0.0.1/square,Survey','appType':_0x1c5ce1('0x1c'),'isApp':!![]},{'app':'Hangup'}],0x1a0e:[{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x2c')},{'app':_0x1c5ce1('0x58'),'appdata':'agi://127.0.0.1/square,AgentManagement','appType':_0x1c5ce1('0x1c'),'isApp':!![]},{'app':_0x1c5ce1('0x25')}],'xcally-motion-dialer':[{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x54')},{'app':_0x1c5ce1('0x4'),'appdata':'CALLERID(all)=${XMD-CALLERID}'},{'app':_0x1c5ce1('0x1a'),'appdata':_0x1c5ce1('0xe')},{'app':_0x1c5ce1('0x23'),'appdata':''},{'app':_0x1c5ce1('0x0'),'appdata':'silence/1'},{'app':'AMD','appdata':_0x1c5ce1('0x22')},{'app':_0x1c5ce1('0x1a'),'appdata':_0x1c5ce1('0x27')},{'app':_0x1c5ce1('0x1a'),'appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10'},{'app':_0x1c5ce1('0x1a'),'appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11'},{'app':_0x1c5ce1('0xc'),'appdata':_0x1c5ce1('0x17')},{'app':_0x1c5ce1('0xc'),'appdata':_0x1c5ce1('0x26')},{'app':'Execif','appdata':_0x1c5ce1('0x21')},{'app':'Hangup'}],'xcally-motion-fax':[{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x4f')},{'app':_0x1c5ce1('0x3'),'appdata':'6'},{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x3a')},{'app':'Set','appdata':_0x1c5ce1('0x3e')},{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x19')},{'app':'Set','appdata':_0x1c5ce1('0x24')},{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x36')},{'app':_0x1c5ce1('0x4'),'appdata':'FAXOPT(modem)=${XMF-MODEM}'},{'app':'Set','appdata':'FAXOPT(t38timeout)=${XMF-T38TIMEOUT}'},{'app':'SendFax','appdata':_0x1c5ce1('0x51')}],'xcally-motion-preview':[{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x54')},{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x38')},{'app':_0x1c5ce1('0xc'),'appdata':'$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})'},{'app':_0x1c5ce1('0x6'),'appdata':'${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}'},{'app':_0x1c5ce1('0xc'),'appdata':'$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})'},{'app':'Hangup'}],'_.':[{'app':'Set','appdata':_0x1c5ce1('0x31')},{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x2f')},{'app':'Set','appdata':_0x1c5ce1('0xf')},{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x5a')},{'app':_0x1c5ce1('0x4'),'outboundrouteid':!![]},{'app':_0x1c5ce1('0x4'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}'},{'app':_0x1c5ce1('0x4'),'appdata':_0x1c5ce1('0x1')},{'app':_0x1c5ce1('0x5'),'appdata':_0x1c5ce1('0x44'),'appType':'custom','isApp':!![]},{'app':_0x1c5ce1('0x25')}],'_X.':[{'app':'Set','appdata':'CDR(type)=inbound'},{'app':_0x1c5ce1('0x23')},{'app':_0x1c5ce1('0x5'),'appdata':_0x1c5ce1('0x44'),'isApp':!![]},{'app':_0x1c5ce1('0x25')}],'h':[{'app':'Hangup'}],'failed':[{'app':_0x1c5ce1('0x25')}]},voiceExtensions=[{'type':'internal','context':_0x1c5ce1('0x1f'),'exten':_0x1c5ce1('0x41'),'description':_0x1c5ce1('0x8')},{'type':'internal','context':'from-sip','exten':_0x1c5ce1('0xb'),'description':_0x1c5ce1('0x1d')},{'type':_0x1c5ce1('0x47'),'context':_0x1c5ce1('0x1f'),'exten':'6001','description':_0x1c5ce1('0x2d')},{'type':_0x1c5ce1('0x47'),'context':_0x1c5ce1('0x1f'),'exten':_0x1c5ce1('0x35'),'description':'forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated'},{'type':_0x1c5ce1('0x47'),'context':'from-sip','exten':'6667','description':_0x1c5ce1('0x39')},{'type':'internal','context':'from-sip','exten':'6668','description':'forward\x20to\x20CSI\x20IVR\x20auto\x20generated'},{'type':_0x1c5ce1('0x47'),'context':'from-sip','exten':_0x1c5ce1('0x18'),'description':'forward\x20to\x20Survey\x20IVR\x20auto\x20generated'},{'type':_0x1c5ce1('0x47'),'context':_0x1c5ce1('0x1f'),'exten':_0x1c5ce1('0x2b'),'description':_0x1c5ce1('0x53')},{'type':'system','context':_0x1c5ce1('0x1f'),'exten':_0x1c5ce1('0x37'),'description':_0x1c5ce1('0x33')},{'type':_0x1c5ce1('0x43'),'context':'from-sip','exten':'xcally-motion-fax','description':_0x1c5ce1('0x2a')},{'type':_0x1c5ce1('0x43'),'context':'from-sip','exten':_0x1c5ce1('0x3c'),'description':_0x1c5ce1('0x33')},{'type':'outbound','context':_0x1c5ce1('0x1f'),'exten':'_.','description':_0x1c5ce1('0x2e')},{'type':'inbound','context':_0x1c5ce1('0x4a'),'exten':_0x1c5ce1('0x57'),'description':_0x1c5ce1('0x3d')},{'type':_0x1c5ce1('0x43'),'context':_0x1c5ce1('0x1f'),'exten':'h','description':_0x1c5ce1('0x49')},{'type':_0x1c5ce1('0x43'),'context':_0x1c5ce1('0x1f'),'exten':'failed','description':_0x1c5ce1('0x10')}],applicationsAlways={'s':[{'app':_0x1c5ce1('0x40'),'appdata':_0x1c5ce1('0x16')},{'app':_0x1c5ce1('0x46')}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':'Progress'},{'app':_0x1c5ce1('0x11'),'appdata':'${EXTEN:20},xX'}]},voiceExtensionsAlways=[{'type':_0x1c5ce1('0x43'),'context':_0x1c5ce1('0x29'),'exten':'s'},{'type':_0x1c5ce1('0x43'),'context':_0x1c5ce1('0x1f'),'exten':_0x1c5ce1('0x4e')}];function createExtensions(_0x51ebaa,_0x569a58){const _0x3a1e20=_0x1c5ce1;return db[_0x3a1e20('0x3b')][_0x3a1e20('0x28')](_0x51ebaa,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0x5400e2){const _0x2f1544=_0x3a1e20;for(let _0x12fdae=0x0;_0x12fdae<_0x5400e2[_0x2f1544('0x30')];_0x12fdae+=0x1){if(_0x569a58[_0x5400e2[_0x12fdae][_0x2f1544('0x59')]])for(let _0x46d336=0x0;_0x46d336<_0x569a58[_0x5400e2[_0x12fdae][_0x2f1544('0x59')]][_0x2f1544('0x30')];_0x46d336+=0x1){_0x569a58[_0x5400e2[_0x12fdae][_0x2f1544('0x59')]][_0x46d336]['outboundrouteid']&&(_0x569a58[_0x5400e2[_0x12fdae]['exten']][_0x46d336][_0x2f1544('0x45')]=_0x2f1544('0x4b')+_0x5400e2[_0x12fdae]['id'],delete _0x569a58[_0x5400e2[_0x12fdae]['exten']][_0x46d336][_0x2f1544('0x34')]),_0x569a58[_0x5400e2[_0x12fdae][_0x2f1544('0x59')]][_0x46d336]=_[_0x2f1544('0x7')](_0x569a58[_0x5400e2[_0x12fdae][_0x2f1544('0x59')]][_0x46d336],{'isApp':![],'appType':'custom','type':_0x5400e2[_0x12fdae][_0x2f1544('0x5b')],'context':_0x5400e2[_0x12fdae]['context'],'exten':_0x5400e2[_0x12fdae][_0x2f1544('0x59')],'priority':parseInt(_0x5400e2[_0x12fdae][_0x2f1544('0x2')],0xa)+0x1+_0x46d336,'description':_0x5400e2[_0x12fdae][_0x2f1544('0x13')],'VoiceExtensionId':_0x5400e2[_0x12fdae]['id']}),db[_0x2f1544('0x3b')][_0x2f1544('0x12')](_0x569a58[_0x5400e2[_0x12fdae]['exten']][_0x46d336]);}}})[_0x3a1e20('0x20')](function(){const _0x444291=_0x3a1e20;logger[_0x444291('0x32')](_0x444291('0x48'));})[_0x3a1e20('0x1b')](function(_0xf3bcb8){const _0x5bc59a=_0x3a1e20;logger['error'](_0x5bc59a('0x55'),_0xf3bcb8);});}exports['create']=function(){createExtensions(voiceExtensions,applications);},exports[_0x1c5ce1('0x50')]=function(){const _0x244143=_0x1c5ce1;return db['VoiceExtension'][_0x244143('0x14')]({'where':{[Op['or']]:voiceExtensionsAlways}})[_0x244143('0x20')](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})['catch'](function(_0x134ce8){const _0x5c1a31=_0x244143;logger[_0x5c1a31('0xd')]('Can\x27t\x20create\x20Voice\x20Extensions',_0x134ce8);});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceMusicOnHold.js b/server/config/seedDB/voiceMusicOnHold.js index a0c1abe..ff4b6db 100644 --- a/server/config/seedDB/voiceMusicOnHold.js +++ b/server/config/seedDB/voiceMusicOnHold.js @@ -1 +1 @@ -const a883_0x4da6=['VoiceMusicOnHold','/var/opt/motion2/server/files/moh/noice/','bulkCreate','files','default','noice','catch','error','wav','wait\x20moh\x20auto\x20generated','random','Music\x20on\x20hold\x20have\x20been\x20created','/var/lib/asterisk/moh/','wait','info','noice\x20moh\x20auto\x20generated'];(function(_0x43c641,_0x4da681){const _0x2fce30=function(_0x4b5e20){while(--_0x4b5e20){_0x43c641['push'](_0x43c641['shift']());}};_0x2fce30(++_0x4da681);}(a883_0x4da6,0x1b5));const a883_0x2fce=function(_0x43c641,_0x4da681){_0x43c641=_0x43c641-0x0;let _0x2fce30=a883_0x4da6[_0x43c641];return _0x2fce30;};const _0x54f242=a883_0x2fce;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')('app'),voiceMusicOnHold=[{'id':0x1,'name':_0x54f242('0xf'),'directory':_0x54f242('0x7'),'mode':_0x54f242('0xe'),'sort':_0x54f242('0x5'),'format':_0x54f242('0x3'),'defaultEntry':!![],'description':'default\x20moh\x20auto\x20generated'},{'id':0x2,'name':_0x54f242('0x0'),'directory':_0x54f242('0xc'),'mode':_0x54f242('0xe'),'sort':_0x54f242('0x5'),'format':_0x54f242('0x3'),'defaultEntry':!![],'description':_0x54f242('0xa')},{'id':0x3,'name':_0x54f242('0x8'),'directory':'/var/opt/motion2/server/files/moh/wait/','mode':_0x54f242('0xe'),'sort':_0x54f242('0x5'),'format':_0x54f242('0x3'),'defaultEntry':!![],'description':_0x54f242('0x4')}];exports['create']=function(){const _0x236d5e=_0x54f242;return db[_0x236d5e('0xb')][_0x236d5e('0xd')](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x35b6cf=_0x236d5e;logger[_0x35b6cf('0x9')](_0x35b6cf('0x6'));})[_0x236d5e('0x1')](function(){const _0x3425d3=_0x236d5e;logger[_0x3425d3('0x2')]('Can\x27t\x20create\x20Music\x20on\x20hold');});}; \ No newline at end of file +const a883_0x169c=['error','app','/var/opt/motion2/server/files/moh/noice/','wait\x20moh\x20auto\x20generated','../logger','catch','/var/opt/motion2/server/files/moh/wait/','info','bulkCreate','wait','/var/lib/asterisk/moh/','random','create','files','wav','default','noice'];(function(_0x1ebdb6,_0x169c9a){const _0x20fc0d=function(_0x4b3580){while(--_0x4b3580){_0x1ebdb6['push'](_0x1ebdb6['shift']());}};_0x20fc0d(++_0x169c9a);}(a883_0x169c,0x74));const a883_0x20fc=function(_0x1ebdb6,_0x169c9a){_0x1ebdb6=_0x1ebdb6-0x0;let _0x20fc0d=a883_0x169c[_0x1ebdb6];return _0x20fc0d;};const _0x5c19fb=a883_0x20fc;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x5c19fb('0x7'))(_0x5c19fb('0x4')),voiceMusicOnHold=[{'id':0x1,'name':_0x5c19fb('0x1'),'directory':_0x5c19fb('0xd'),'mode':'files','sort':_0x5c19fb('0xe'),'format':_0x5c19fb('0x0'),'defaultEntry':!![],'description':'default\x20moh\x20auto\x20generated'},{'id':0x2,'name':_0x5c19fb('0x2'),'directory':_0x5c19fb('0x5'),'mode':_0x5c19fb('0x10'),'sort':_0x5c19fb('0xe'),'format':'wav','defaultEntry':!![],'description':'noice\x20moh\x20auto\x20generated'},{'id':0x3,'name':_0x5c19fb('0xc'),'directory':_0x5c19fb('0x9'),'mode':_0x5c19fb('0x10'),'sort':_0x5c19fb('0xe'),'format':_0x5c19fb('0x0'),'defaultEntry':!![],'description':_0x5c19fb('0x6')}];exports[_0x5c19fb('0xf')]=function(){const _0xa99c70=_0x5c19fb;return db['VoiceMusicOnHold'][_0xa99c70('0xb')](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x269e00=_0xa99c70;logger[_0x269e00('0xa')]('Music\x20on\x20hold\x20have\x20been\x20created');})[_0xa99c70('0x8')](function(){const _0x27b171=_0xa99c70;logger[_0x27b171('0x3')]('Can\x27t\x20create\x20Music\x20on\x20hold');});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceQueues.js b/server/config/seedDB/voiceQueues.js index d65dd12..ca23fd6 100644 --- a/server/config/seedDB/voiceQueues.js +++ b/server/config/seedDB/voiceQueues.js @@ -1 +1 @@ -const a884_0x307d=['inbound','Survey','Voice\x20Queues\x20have\x20been\x20created','ringall','bulkCreate','rrmemory','Sales','exports','outbound','addAgents','Telemarketing','VoiceQueue','wait','app','type','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','addLists','noice','inbound\x20voice\x20queue\x20auto\x20generated','findAll','addTeams','../logger'];(function(_0x56a0b1,_0x307d90){const _0x5adb72=function(_0x16c884){while(--_0x16c884){_0x56a0b1['push'](_0x56a0b1['shift']());}};_0x5adb72(++_0x307d90);}(a884_0x307d,0x17b));const a884_0x5adb=function(_0x56a0b1,_0x307d90){_0x56a0b1=_0x56a0b1-0x0;let _0x5adb72=a884_0x307d[_0x56a0b1];return _0x5adb72;};const _0x502e52=a884_0x5adb;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x502e52('0x10'))(_0x502e52('0x8')),voiceQueues=[{'id':0x1,'type':'inbound','name':'Support','strategy':_0x502e52('0x14'),'musiconhold':_0x502e52('0x7'),'description':'inbound\x20voice\x20queue\x20auto\x20generated'},{'id':0x2,'type':_0x502e52('0x11'),'name':_0x502e52('0x1'),'strategy':_0x502e52('0x14'),'musiconhold':_0x502e52('0x7'),'description':_0x502e52('0xd')},{'id':0x3,'type':_0x502e52('0x3'),'name':_0x502e52('0x12'),'strategy':_0x502e52('0x0'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x502e52('0xc'),'description':_0x502e52('0xa')},{'id':0x4,'type':_0x502e52('0x3'),'name':_0x502e52('0x5'),'strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x502e52('0xc'),'description':_0x502e52('0xa')},{'id':0x5,'type':'outbound','name':'CallbackCampaign','strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x502e52('0xc'),'description':_0x502e52('0xa')}];async function create(){const _0x599731=_0x502e52;try{await db[_0x599731('0x6')][_0x599731('0x15')](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x16c884=await db['VoiceQueue'][_0x599731('0xe')]();for(const _0x40887a of _0x16c884){await _0x40887a[_0x599731('0x4')]([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x40887a[_0x599731('0xf')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x40887a[_0x599731('0x9')]===_0x599731('0x3')&&_0x40887a['id']!==0x5&&(await _0x40887a[_0x599731('0xb')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x40887a['addBlackLists']([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x40887a['id']===0x5&&await _0x40887a[_0x599731('0xb')]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger['info'](_0x599731('0x13'));}catch(_0x230037){logger['error']('Can\x27t\x20create\x20Voice\x20Queues',_0x230037);throw _0x230037;}}module[_0x502e52('0x2')]={'create':create}; \ No newline at end of file +const a884_0x69c5=['Support','addBlackLists','VoiceQueue','wait','exports','ringall','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','type','CallbackCampaign','addLists','info','inbound\x20voice\x20queue\x20auto\x20generated','noice','../logger','inbound','Can\x27t\x20create\x20Voice\x20Queues','Survey','outbound','addTeams','rrmemory','addAgents','Sales'];(function(_0xb73ac1,_0x69c505){const _0x1515ba=function(_0x153baf){while(--_0x153baf){_0xb73ac1['push'](_0xb73ac1['shift']());}};_0x1515ba(++_0x69c505);}(a884_0x69c5,0xa7));const a884_0x1515=function(_0xb73ac1,_0x69c505){_0xb73ac1=_0xb73ac1-0x0;let _0x1515ba=a884_0x69c5[_0xb73ac1];return _0x1515ba;};const _0x3eb5d0=a884_0x1515;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x3eb5d0('0x0'))('app'),voiceQueues=[{'id':0x1,'type':'inbound','name':_0x3eb5d0('0x9'),'strategy':_0x3eb5d0('0xe'),'musiconhold':_0x3eb5d0('0xc'),'description':_0x3eb5d0('0x14')},{'id':0x2,'type':_0x3eb5d0('0x1'),'name':_0x3eb5d0('0x8'),'strategy':_0x3eb5d0('0xe'),'musiconhold':_0x3eb5d0('0xc'),'description':_0x3eb5d0('0x14')},{'id':0x3,'type':_0x3eb5d0('0x4'),'name':_0x3eb5d0('0x3'),'strategy':_0x3eb5d0('0x6'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x3eb5d0('0x15'),'description':_0x3eb5d0('0xf')},{'id':0x4,'type':_0x3eb5d0('0x4'),'name':'Telemarketing','strategy':_0x3eb5d0('0x6'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x3eb5d0('0x15'),'description':_0x3eb5d0('0xf')},{'id':0x5,'type':_0x3eb5d0('0x4'),'name':_0x3eb5d0('0x11'),'strategy':_0x3eb5d0('0x6'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x3eb5d0('0x15'),'description':_0x3eb5d0('0xf')}];async function create(){const _0xc938e6=_0x3eb5d0;try{await db[_0xc938e6('0xb')]['bulkCreate'](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x153baf=await db[_0xc938e6('0xb')]['findAll']();for(const _0x5db864 of _0x153baf){await _0x5db864[_0xc938e6('0x7')]([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x5db864[_0xc938e6('0x5')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x5db864[_0xc938e6('0x10')]==='outbound'&&_0x5db864['id']!==0x5&&(await _0x5db864[_0xc938e6('0x12')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x5db864[_0xc938e6('0xa')]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x5db864['id']===0x5&&await _0x5db864[_0xc938e6('0x12')]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger[_0xc938e6('0x13')]('Voice\x20Queues\x20have\x20been\x20created');}catch(_0xed995b){logger['error'](_0xc938e6('0x2'),_0xed995b);throw _0xed995b;}}module[_0x3eb5d0('0xd')]={'create':create}; \ No newline at end of file diff --git a/server/config/seedUsers.js b/server/config/seedUsers.js index 975bc4a..bbe5465 100644 --- a/server/config/seedUsers.js +++ b/server/config/seedUsers.js @@ -1 +1 @@ -const a885_0x4241=['add\x20user','friend','then','User','udp','bulkCreate','wss','actpass','../mysqldb','log','ulaw','/etc/pki/tls/certs/motion.crt','agent','\x22%s\x22\x20<%s>','%s%s','format','yes','catch','util','/etc/pki/tls/private/motion.key'];(function(_0x9ee6cf,_0x424174){const _0x65b306=function(_0xabc357){while(--_0xabc357){_0x9ee6cf['push'](_0x9ee6cf['shift']());}};_0x65b306(++_0x424174);}(a885_0x4241,0x1cc));const a885_0x65b3=function(_0x9ee6cf,_0x424174){_0x9ee6cf=_0x9ee6cf-0x0;let _0x65b306=a885_0x4241[_0x9ee6cf];return _0x65b306;};const _0x3b2981=a885_0x65b3;'use strict';const util=require(_0x3b2981('0x12')),db=require(_0x3b2981('0x8'))['db'],users=[];for(let i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0x3b2981('0xf')](_0x3b2981('0xe'),_0x3b2981('0xc'),i),'fullname':util['format'](_0x3b2981('0xe'),'agent',i),'email':util[_0x3b2981('0xf')]('%s%s@xcally.com','agent',i),'role':_0x3b2981('0xc'),'password':'password','internal':0xfa0+i,'type':_0x3b2981('0x1'),'transport':[_0x3b2981('0x4'),'ws',_0x3b2981('0x6')],'disallow':['all'],'allow':[_0x3b2981('0xa')],'defaultuser':util[_0x3b2981('0xf')]('%s%s',_0x3b2981('0xc'),i),'encryption':_0x3b2981('0x10'),'avpf':'yes','force_avp':_0x3b2981('0x10'),'icesupport':_0x3b2981('0x10'),'dtlsenable':_0x3b2981('0x10'),'dtlsverify':'no','dtlscertfile':_0x3b2981('0xb'),'dtlsprivatekey':_0x3b2981('0x13'),'dtlssetup':_0x3b2981('0x7'),'callerid':util[_0x3b2981('0xf')](_0x3b2981('0xd'),util['format'](_0x3b2981('0xe'),_0x3b2981('0xc'),i),0xfa0+i)});}db[_0x3b2981('0x3')][_0x3b2981('0x5')](users)[_0x3b2981('0x2')](function(){const _0x24614e=_0x3b2981;console['log'](_0x24614e('0x0'));})[_0x3b2981('0x11')](function(_0xabc357){const _0x26cdaa=_0x3b2981;console[_0x26cdaa('0x9')](_0xabc357);}); \ No newline at end of file +const a885_0x2f70=['log','User','add\x20user','yes','%s%s','catch','wss','password','actpass','all','friend','util','ulaw','format','push','agent','%s%s@xcally.com','../mysqldb','\x22%s\x22\x20<%s>','then'];(function(_0x5d1aeb,_0x2f7074){const _0x235219=function(_0x53f45f){while(--_0x53f45f){_0x5d1aeb['push'](_0x5d1aeb['shift']());}};_0x235219(++_0x2f7074);}(a885_0x2f70,0xc4));const a885_0x2352=function(_0x5d1aeb,_0x2f7074){_0x5d1aeb=_0x5d1aeb-0x0;let _0x235219=a885_0x2f70[_0x5d1aeb];return _0x235219;};const _0x41ec2d=a885_0x2352;'use strict';const util=require(_0x41ec2d('0xf')),db=require(_0x41ec2d('0x1'))['db'],users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[_0x41ec2d('0x12')]({'name':util[_0x41ec2d('0x11')](_0x41ec2d('0x8'),_0x41ec2d('0x13'),i),'fullname':util['format']('%s%s',_0x41ec2d('0x13'),i),'email':util[_0x41ec2d('0x11')](_0x41ec2d('0x0'),_0x41ec2d('0x13'),i),'role':'agent','password':_0x41ec2d('0xb'),'internal':0xfa0+i,'type':_0x41ec2d('0xe'),'transport':['udp','ws',_0x41ec2d('0xa')],'disallow':[_0x41ec2d('0xd')],'allow':[_0x41ec2d('0x10')],'defaultuser':util[_0x41ec2d('0x11')](_0x41ec2d('0x8'),'agent',i),'encryption':'yes','avpf':_0x41ec2d('0x7'),'force_avp':'yes','icesupport':_0x41ec2d('0x7'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0x41ec2d('0xc'),'callerid':util[_0x41ec2d('0x11')](_0x41ec2d('0x2'),util['format'](_0x41ec2d('0x8'),_0x41ec2d('0x13'),i),0xfa0+i)});}db[_0x41ec2d('0x5')]['bulkCreate'](users)[_0x41ec2d('0x3')](function(){const _0x5de40d=_0x41ec2d;console[_0x5de40d('0x4')](_0x5de40d('0x6'));})[_0x41ec2d('0x9')](function(_0x53f45f){const _0x8fe1d9=_0x41ec2d;console[_0x8fe1d9('0x4')](_0x53f45f);}); \ No newline at end of file diff --git a/server/config/socketio.js b/server/config/socketio.js index 817448c..604b636 100644 --- a/server/config/socketio.js +++ b/server/config/socketio.js @@ -1 +1 @@ -const a886_0x5bc5=['util','leave','WhatsappQueue','FaxQueue','mail','user_has_mail_interactions:remove','OpenchannelQueue','undefined','query','findAll','Trunk','disconnect','chat','request','MailQueue','%s:queue:%s','OpenchannelInteraction','CONNECTED','removeFaxInteractions','OpenchannelQueues','user','openchannel','catch','remoteAddress','campaign:%s:%s','voice:outbound','connection','ChatInteraction','SmsQueues','OpenchannelInteractions','user_has_sms_interactions:remove','user_has_whatsapp_interactions:remove','getFaxQueues','type','admin','WhatsappQueues','Agents','UserProfileResource','voice','remotePort','agent','where','getSmsQueues','setMaxListeners','getMailQueues','FaxQueues','push','FaxInteractions','SmsQueue','then','MailQueues','Campaign','resourceId','User','fax','user_has_chat_interactions:remove','emit','whatsapp','include','findOne','IvrCampaigns','removeSmsInteractions','userProfileId','user_has_fax_interactions:remove','MailInteraction','length','map','format','removeWhatsappInteractions','ChatInteractions','ChatQueue','DISCONNECTED','MailInteractions','log','join','SocketIO\x20','autoAssociation','ivr','getVoiceQueues','Telephones','lodash','UserProfileSection','SmsInteractions','voice:inbound','user:%s','../mysqldb','name','WhatsappInteraction','removeChatInteractions','default','getOpenchannelQueues','handshake','getChatQueues','Trunks','address','removeOpenchannelInteractions','VoiceQueues','SmsInteraction','user_has_openchannel_interactions:remove','role'];(function(_0x32d254,_0x5bc592){const _0x26f716=function(_0x43e5c){while(--_0x43e5c){_0x32d254['push'](_0x32d254['shift']());}};_0x26f716(++_0x5bc592);}(a886_0x5bc5,0x1b1));const a886_0x26f7=function(_0x32d254,_0x5bc592){_0x32d254=_0x32d254-0x0;let _0x26f716=a886_0x5bc5[_0x32d254];return _0x26f716;};const _0x4cb694=a886_0x26f7;'use strict';const _=require(_0x4cb694('0x2f')),util=require(_0x4cb694('0x43')),db=require(_0x4cb694('0x34'))['db'],queryQueues={'attributes':['id',_0x4cb694('0x35')],'include':[{'as':'Agents','model':db[_0x4cb694('0x14')],'attributes':['id',_0x4cb694('0x35'),'role'],'raw':!![],'where':{'role':_0x4cb694('0x7')},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id',_0x4cb694('0x35')],'where':{'role':'telephone'}},queryTrunks={'raw':!![],'attributes':['id','name']},queryAgents={'raw':!![],'attributes':['id',_0x4cb694('0x35')],'where':{'role':_0x4cb694('0x7')}},queryCampaigns={'raw':!![],'attributes':['id',_0x4cb694('0x35'),'type'],'where':{'type':_0x4cb694('0x2c')}};function getAssociatedResources(_0x43e5c,_0x2d8853,_0x4d7f8c){const _0x579531=_0x4cb694;return db[_0x579531('0x30')][_0x579531('0x1a')]({'where':{'name':_0x43e5c,'userProfileId':_0x2d8853},'raw':!![]})[_0x579531('0x10')](function(_0x2ed08e){const _0x3d0a69=_0x579531;if(_0x2ed08e){if(_0x2ed08e[_0x3d0a69('0x2b')]){let _0x57bb6a;switch(_0x43e5c){case _0x3d0a69('0x3f'):case'ChatQueues':case _0x3d0a69('0xc'):case _0x3d0a69('0x5f'):case _0x3d0a69('0x11'):case'OpenchannelQueues':case _0x3d0a69('0x2'):_0x57bb6a=queryQueues;break;case _0x3d0a69('0x2e'):_0x57bb6a=queryTelephones;break;case _0x3d0a69('0x3c'):_0x57bb6a=queryTrunks;break;case _0x3d0a69('0x1b'):_0x57bb6a=queryCampaigns;break;default:break;}return _0x57bb6a?db[_0x4d7f8c][_0x3d0a69('0x4c')](_0x57bb6a):_0x57bb6a;}else return db[_0x3d0a69('0x4')][_0x3d0a69('0x4c')]({'attributes':[_0x3d0a69('0x13')],'where':{'sectionId':_0x2ed08e['id']},'raw':!![]})[_0x3d0a69('0x10')](function(_0x3db02a){const _0x571242=_0x3d0a69;if(_0x3db02a){const _0x47cf08={'where':{'id':_[_0x571242('0x21')](_0x3db02a,_0x571242('0x13'))},'raw':!![]};switch(_0x4d7f8c){case'User':_0x47cf08[_0x571242('0x8')][_0x571242('0x42')]='telephone';break;case _0x571242('0x12'):_0x47cf08['where'][_0x571242('0x0')]=_0x571242('0x2c');break;}return db[_0x4d7f8c][_0x571242('0x4c')](_0x47cf08);}else return[];});}else return[];})['then'](function(_0x5d1f3c){return _0x5d1f3c;});}function joinOrLeaveQueues(_0x48c808,_0x3ea862,_0x39f9fe,_0x337652){const _0x5b622c=_0x4cb694;_0x48c808[_0x3ea862](util[_0x5b622c('0x22')](_0x5b622c('0x52'),_0x39f9fe,_0x337652[_0x5b622c('0x35')]));if(_0x337652[_0x5b622c('0x3')])for(let _0x3a98cc=0x0;_0x3a98cc<_0x337652[_0x5b622c('0x3')][_0x5b622c('0x20')];_0x3a98cc+=0x1){_0x48c808[_0x3ea862](util[_0x5b622c('0x22')](_0x5b622c('0x33'),_0x337652['Agents'][_0x3a98cc][_0x5b622c('0x35')]));}}function joinOrLeave(_0x1914b2,_0x195478,_0x12bd81){const _0x4fec5c=_0x4cb694;let _0x5d8534;_0x1914b2[_0x4fec5c('0x3a')][_0x4fec5c('0x4b')]['id']&&db[_0x4fec5c('0x14')]['findOne']({'attributes':['id',_0x4fec5c('0x35'),_0x4fec5c('0x42'),_0x4fec5c('0x1d')],'where':{'id':_0x1914b2['handshake'][_0x4fec5c('0x4b')]['id']},'include':[{'model':db[_0x4fec5c('0x5e')],'as':'ChatInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x4fec5c('0x1f')],'as':_0x4fec5c('0x27'),'attributes':['id'],'raw':!![]},{'model':db['FaxInteraction'],'as':_0x4fec5c('0xe'),'attributes':['id'],'raw':!![]},{'model':db[_0x4fec5c('0x40')],'as':_0x4fec5c('0x31'),'attributes':['id'],'raw':!![]},{'model':db[_0x4fec5c('0x53')],'as':_0x4fec5c('0x60'),'attributes':['id'],'raw':!![]},{'model':db[_0x4fec5c('0x36')],'as':'WhatsappInteractions','attributes':['id'],'raw':!![]}]})['then'](function(_0x9f9221){const _0xeb9707=_0x4fec5c;if(_0x9f9221){_0x5d8534=_0x9f9221,_0x1914b2[_0x195478](util['format']('user:%s',_0x9f9221[_0xeb9707('0x35')]));const _0x5dd0fe=[];switch(_0x9f9221[_0xeb9707('0x42')]){case _0xeb9707('0x1'):_0x1914b2[_0x195478](_0xeb9707('0x32')),_0x1914b2[_0x195478]('voice:outbound');typeof queryQueues['include']!==_0xeb9707('0x4a')&&delete queryQueues[_0xeb9707('0x19')];_0x5dd0fe[_0xeb9707('0xd')](db['VoiceQueue']['findAll'](queryQueues)),_0x5dd0fe[_0xeb9707('0xd')](db[_0xeb9707('0x25')]['findAll'](queryQueues)),_0x5dd0fe[_0xeb9707('0xd')](db[_0xeb9707('0x46')]['findAll'](queryQueues)),_0x5dd0fe[_0xeb9707('0xd')](db[_0xeb9707('0xf')][_0xeb9707('0x4c')](queryQueues)),_0x5dd0fe[_0xeb9707('0xd')](db[_0xeb9707('0x51')][_0xeb9707('0x4c')](queryQueues)),_0x5dd0fe['push'](db[_0xeb9707('0x49')][_0xeb9707('0x4c')](queryQueues)),_0x5dd0fe['push'](db[_0xeb9707('0x45')][_0xeb9707('0x4c')](queryQueues)),_0x5dd0fe['push'](db[_0xeb9707('0x14')][_0xeb9707('0x4c')](queryTelephones)),_0x5dd0fe[_0xeb9707('0xd')](db[_0xeb9707('0x4d')][_0xeb9707('0x4c')](queryTrunks)),_0x5dd0fe['push'](db[_0xeb9707('0x12')][_0xeb9707('0x4c')](queryCampaigns)),_0x5dd0fe[_0xeb9707('0xd')](db[_0xeb9707('0x14')][_0xeb9707('0x4c')](queryAgents));break;case _0xeb9707('0x57'):_0x1914b2[_0x195478](_0xeb9707('0x32')),_0x1914b2[_0x195478](_0xeb9707('0x5c')),_0x5dd0fe[_0xeb9707('0xd')](getAssociatedResources(_0xeb9707('0x3f'),_0x9f9221[_0xeb9707('0x1d')],'VoiceQueue')),_0x5dd0fe[_0xeb9707('0xd')](getAssociatedResources('ChatQueues',_0x9f9221[_0xeb9707('0x1d')],_0xeb9707('0x25'))),_0x5dd0fe[_0xeb9707('0xd')](getAssociatedResources(_0xeb9707('0xc'),_0x9f9221[_0xeb9707('0x1d')],_0xeb9707('0x46'))),_0x5dd0fe[_0xeb9707('0xd')](getAssociatedResources(_0xeb9707('0x5f'),_0x9f9221['userProfileId'],_0xeb9707('0xf'))),_0x5dd0fe['push'](getAssociatedResources(_0xeb9707('0x11'),_0x9f9221[_0xeb9707('0x1d')],_0xeb9707('0x51'))),_0x5dd0fe[_0xeb9707('0xd')](getAssociatedResources(_0xeb9707('0x56'),_0x9f9221[_0xeb9707('0x1d')],_0xeb9707('0x49'))),_0x5dd0fe[_0xeb9707('0xd')](getAssociatedResources('WhatsappQueues',_0x9f9221['userProfileId'],_0xeb9707('0x45'))),_0x5dd0fe['push'](getAssociatedResources('Telephones',_0x9f9221['userProfileId'],_0xeb9707('0x14'))),_0x5dd0fe['push'](getAssociatedResources('Trunks',_0x9f9221[_0xeb9707('0x1d')],_0xeb9707('0x4d'))),_0x5dd0fe['push'](getAssociatedResources(_0xeb9707('0x1b'),_0x9f9221[_0xeb9707('0x1d')],'Campaign')),_0x5dd0fe[_0xeb9707('0xd')](db[_0xeb9707('0x14')][_0xeb9707('0x4c')](queryAgents));break;case'agent':_0x1914b2[_0x195478](_0xeb9707('0x32')),_0x1914b2[_0x195478](_0xeb9707('0x5c')),_0x5dd0fe['push'](_0x9f9221[_0xeb9707('0x2d')]({'attributes':['id',_0xeb9707('0x35')]})),_0x5dd0fe['push'](_0x9f9221[_0xeb9707('0x3b')]({'attributes':['id','name']})),_0x5dd0fe[_0xeb9707('0xd')](_0x9f9221[_0xeb9707('0x63')]({'attributes':['id',_0xeb9707('0x35')]})),_0x5dd0fe['push'](_0x9f9221[_0xeb9707('0x9')]({'attributes':['id',_0xeb9707('0x35')]})),_0x5dd0fe[_0xeb9707('0xd')](_0x9f9221[_0xeb9707('0xb')]({'attributes':['id',_0xeb9707('0x35')]})),_0x5dd0fe[_0xeb9707('0xd')](_0x9f9221[_0xeb9707('0x39')]({'attributes':['id',_0xeb9707('0x35')]})),_0x5dd0fe[_0xeb9707('0xd')](_0x9f9221['getWhatsappQueues']({'attributes':['id',_0xeb9707('0x35')]}));break;}return Promise['all'](_0x5dd0fe);}})[_0x4fec5c('0x10')](function(_0x5ac93a){const _0x566ce8=_0x4fec5c;if(_0x5ac93a&&_0x5ac93a[_0x566ce8('0x20')])for(let _0x30250c=0x0;_0x30250c<_0x5ac93a[_0x566ce8('0x20')];_0x30250c+=0x1){for(let _0xe94f39=0x0;_0xe94f39<_0x5ac93a[_0x30250c][_0x566ce8('0x20')];_0xe94f39+=0x1){switch(_0x30250c){case 0x0:joinOrLeaveQueues(_0x1914b2,_0x195478,_0x566ce8('0x5'),_0x5ac93a[_0x30250c][_0xe94f39]);break;case 0x1:joinOrLeaveQueues(_0x1914b2,_0x195478,_0x566ce8('0x4f'),_0x5ac93a[_0x30250c][_0xe94f39]);break;case 0x2:joinOrLeaveQueues(_0x1914b2,_0x195478,_0x566ce8('0x15'),_0x5ac93a[_0x30250c][_0xe94f39]);break;case 0x3:joinOrLeaveQueues(_0x1914b2,_0x195478,'sms',_0x5ac93a[_0x30250c][_0xe94f39]);break;case 0x4:joinOrLeaveQueues(_0x1914b2,_0x195478,_0x566ce8('0x47'),_0x5ac93a[_0x30250c][_0xe94f39]);break;case 0x5:joinOrLeaveQueues(_0x1914b2,_0x195478,_0x566ce8('0x58'),_0x5ac93a[_0x30250c][_0xe94f39]);break;case 0x6:joinOrLeaveQueues(_0x1914b2,_0x195478,_0x566ce8('0x18'),_0x5ac93a[_0x30250c][_0xe94f39]);break;case 0x7:_0x1914b2[_0x195478](util[_0x566ce8('0x22')]('telephone:%s',_0x5ac93a[_0x30250c][_0xe94f39]['name']));break;case 0x8:_0x1914b2[_0x195478](util[_0x566ce8('0x22')]('trunk:%s',_0x5ac93a[_0x30250c][_0xe94f39][_0x566ce8('0x35')]));break;case 0x9:_0x1914b2[_0x195478](util[_0x566ce8('0x22')](_0x566ce8('0x5b'),_0x5ac93a[_0x30250c][_0xe94f39][_0x566ce8('0x0')],_0x5ac93a[_0x30250c][_0xe94f39][_0x566ce8('0x35')]));break;case 0xa:_0x1914b2[_0x195478](util[_0x566ce8('0x22')]('user:%s',_0x5ac93a[_0x30250c][_0xe94f39][_0x566ce8('0x35')]));break;}}}})[_0x4fec5c('0x10')](function(){const _0x9fb793=_0x4fec5c;if(_0x195478==='leave'){const _0x4f5a3f=_[_0x9fb793('0x21')](_0x5d8534[_0x9fb793('0x24')],'id');return _0x5d8534[_0x9fb793('0x37')](_0x4f5a3f)['then'](function(){const _0x5b2e56=_0x9fb793;for(let _0x58a06a=0x0;_0x58a06a<_0x4f5a3f['length'];_0x58a06a+=0x1){_0x12bd81[_0x5b2e56('0x17')](_0x5b2e56('0x16'),{'ChatInteractionId':Number(_0x4f5a3f[_0x58a06a]),'UserId':Number(_0x5d8534['id'])});}});}})['then'](function(){const _0x451557=_0x4fec5c;if(_0x195478==='leave'){const _0xced971=_[_0x451557('0x21')](_0x5d8534['MailInteractions'],'id');return _0x5d8534['removeMailInteractions'](_0xced971)[_0x451557('0x10')](function(){const _0x2ba0a3=_0x451557;for(let _0x204894=0x0;_0x204894<_0xced971[_0x2ba0a3('0x20')];_0x204894+=0x1){_0x12bd81['emit'](_0x2ba0a3('0x48'),{'MailInteractionId':Number(_0xced971[_0x204894]),'UserId':Number(_0x5d8534['id'])});}});}})[_0x4fec5c('0x10')](function(){const _0x12eccc=_0x4fec5c;if(_0x195478===_0x12eccc('0x44')){const _0x294fd6=_['map'](_0x5d8534[_0x12eccc('0xe')],'id');return _0x5d8534[_0x12eccc('0x55')](_0x294fd6)[_0x12eccc('0x10')](function(){const _0x3e2525=_0x12eccc;for(let _0x16d110=0x0;_0x16d110<_0x294fd6[_0x3e2525('0x20')];_0x16d110+=0x1){_0x12bd81[_0x3e2525('0x17')](_0x3e2525('0x1e'),{'FaxInteractionId':Number(_0x294fd6[_0x16d110]),'UserId':Number(_0x5d8534['id'])});}});}})[_0x4fec5c('0x10')](function(){const _0x1f5d99=_0x4fec5c;if(_0x195478===_0x1f5d99('0x44')){const _0x2cc7b2=_[_0x1f5d99('0x21')](_0x5d8534[_0x1f5d99('0x31')],'id');return _0x5d8534[_0x1f5d99('0x1c')](_0x2cc7b2)[_0x1f5d99('0x10')](function(){const _0x20d9fe=_0x1f5d99;for(let _0x336d83=0x0;_0x336d83<_0x2cc7b2[_0x20d9fe('0x20')];_0x336d83+=0x1){_0x12bd81[_0x20d9fe('0x17')](_0x20d9fe('0x61'),{'SmsInteractionId':Number(_0x2cc7b2[_0x336d83]),'UserId':Number(_0x5d8534['id'])});}});}})[_0x4fec5c('0x10')](function(){const _0x29a6e9=_0x4fec5c;if(_0x195478===_0x29a6e9('0x44')){const _0x5b810b=_['map'](_0x5d8534['OpenchannelInteractions'],'id');return _0x5d8534[_0x29a6e9('0x3e')](_0x5b810b)[_0x29a6e9('0x10')](function(){const _0x82a7bc=_0x29a6e9;for(let _0xd96ae6=0x0;_0xd96ae6<_0x5b810b[_0x82a7bc('0x20')];_0xd96ae6+=0x1){_0x12bd81[_0x82a7bc('0x17')](_0x82a7bc('0x41'),{'OpenchannelInteractionId':Number(_0x5b810b[_0xd96ae6]),'UserId':Number(_0x5d8534['id'])});}});}})['then'](function(){const _0x33524f=_0x4fec5c;if(_0x195478===_0x33524f('0x44')){const _0x553746=_[_0x33524f('0x21')](_0x5d8534['WhatsappInteractions'],'id');return _0x5d8534[_0x33524f('0x23')](_0x553746)[_0x33524f('0x10')](function(){const _0x10f8a4=_0x33524f;for(let _0xe71bd5=0x0;_0xe71bd5<_0x553746[_0x10f8a4('0x20')];_0xe71bd5+=0x1){_0x12bd81['emit'](_0x10f8a4('0x62'),{'WhatsappInteractionId':Number(_0x553746[_0xe71bd5]),'UserId':Number(_0x5d8534['id'])});}});}})[_0x4fec5c('0x59')](function(_0x189e2a){const _0x2efa0d=_0x4fec5c;_0x1914b2[_0x2efa0d('0x28')](_0x189e2a);});}function onDisconnect(_0x5b2342,_0x507bd1){const _0x4aaa55=_0x4cb694;joinOrLeave(_0x5b2342,_0x4aaa55('0x44'),_0x507bd1);}function onConnect(_0x5cf1ee){const _0x405561=_0x4cb694;joinOrLeave(_0x5cf1ee,_0x405561('0x29'));}exports[_0x4cb694('0x38')]=function(_0x4e4d65){const _0x3eff63=_0x4cb694;_0x4e4d65['on'](_0x3eff63('0x5d'),function(_0x1291f3){const _0xbb433e=_0x3eff63;_0x1291f3[_0xbb433e('0xa')](0x0),_0x1291f3[_0xbb433e('0x3d')]=_0x1291f3['request'][_0xbb433e('0x5d')][_0xbb433e('0x5a')]+':'+_0x1291f3[_0xbb433e('0x50')][_0xbb433e('0x5d')][_0xbb433e('0x6')],_0x1291f3['connectedAt']=new Date(),_0x1291f3['log']=function(_0x3238fe){const _0x18c5b9=_0xbb433e;console[_0x18c5b9('0x28')](_0x18c5b9('0x2a')+_0x1291f3['nsp'][_0x18c5b9('0x35')]+'['+_0x1291f3[_0x18c5b9('0x3d')]+']',_0x3238fe);},_0x1291f3['on'](_0xbb433e('0x4e'),function(){const _0x2b11dc=_0xbb433e;onDisconnect(_0x1291f3,_0x4e4d65),_0x1291f3[_0x2b11dc('0x28')](_0x2b11dc('0x26'));}),onConnect(_0x1291f3),_0x1291f3[_0xbb433e('0x28')](_0xbb433e('0x54'));});}; \ No newline at end of file +const a886_0x4e86=['user_has_mail_interactions:remove','user_has_whatsapp_interactions:remove','Telephones','setMaxListeners','user:%s','all','Trunks','format','type','util','leave','address','CONNECTED','SmsInteraction','removeFaxInteractions','length','resourceId','OpenchannelInteractions','where','user_has_chat_interactions:remove','openchannel','MailInteractions','findOne','nsp','ChatInteractions','user_has_sms_interactions:remove','removeOpenchannelInteractions','connection','userProfileId','telephone:%s','whatsapp','getMailQueues','telephone','removeSmsInteractions','map','SmsInteractions','ChatQueue','name','undefined','Campaign','fax','OpenchannelQueues','VoiceQueues','sms','FaxQueues','then','connectedAt','MailQueue','agent','WhatsappQueues','%s:queue:%s','autoAssociation','VoiceQueue','role','join','User','IvrCampaigns','FaxQueue','FaxInteractions','voice','voice:outbound','log','voice:inbound','push','SmsQueue','default','WhatsappInteractions','remotePort','emit','admin','removeWhatsappInteractions','WhatsappQueue','OpenchannelQueue','remoteAddress','request','mail','findAll','getWhatsappQueues','getSmsQueues','Agents','SmsQueues','lodash','UserProfileSection','FaxInteraction','user_has_openchannel_interactions:remove','Trunk','handshake','ivr','query','user','user_has_fax_interactions:remove','DISCONNECTED','removeChatInteractions','trunk:%s','UserProfileResource','SocketIO\x20','getOpenchannelQueues'];(function(_0x15f00b,_0x4e867d){const _0x4c28e1=function(_0x432afa){while(--_0x432afa){_0x15f00b['push'](_0x15f00b['shift']());}};_0x4c28e1(++_0x4e867d);}(a886_0x4e86,0x114));const a886_0x4c28=function(_0x15f00b,_0x4e867d){_0x15f00b=_0x15f00b-0x0;let _0x4c28e1=a886_0x4e86[_0x15f00b];return _0x4c28e1;};const _0x177408=a886_0x4c28;'use strict';const _=require(_0x177408('0x60')),util=require(_0x177408('0x18')),db=require('../mysqldb')['db'],queryQueues={'attributes':['id',_0x177408('0x34')],'include':[{'as':_0x177408('0x5e'),'model':db['User'],'attributes':['id',_0x177408('0x34'),_0x177408('0x44')],'raw':!![],'where':{'role':_0x177408('0x3f')},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id',_0x177408('0x34')],'where':{'role':_0x177408('0x2f')}},queryTrunks={'raw':!![],'attributes':['id',_0x177408('0x34')]},queryAgents={'raw':!![],'attributes':['id',_0x177408('0x34')],'where':{'role':_0x177408('0x3f')}},queryCampaigns={'raw':!![],'attributes':['id',_0x177408('0x34'),_0x177408('0x17')],'where':{'type':_0x177408('0x5')}};function getAssociatedResources(_0x432afa,_0x149710,_0x3c8b17){const _0x114f64=_0x177408;return db[_0x114f64('0x0')][_0x114f64('0x25')]({'where':{'name':_0x432afa,'userProfileId':_0x149710},'raw':!![]})[_0x114f64('0x3c')](function(_0xae4ff1){const _0x29ce6d=_0x114f64;if(_0xae4ff1){if(_0xae4ff1[_0x29ce6d('0x42')]){let _0x2a595d;switch(_0x432afa){case _0x29ce6d('0x39'):case'ChatQueues':case'FaxQueues':case'SmsQueues':case'MailQueues':case _0x29ce6d('0x38'):case _0x29ce6d('0x40'):_0x2a595d=queryQueues;break;case _0x29ce6d('0x11'):_0x2a595d=queryTelephones;break;case _0x29ce6d('0x15'):_0x2a595d=queryTrunks;break;case _0x29ce6d('0x47'):_0x2a595d=queryCampaigns;break;default:break;}return _0x2a595d?db[_0x3c8b17][_0x29ce6d('0x5b')](_0x2a595d):_0x2a595d;}else return db[_0x29ce6d('0xc')][_0x29ce6d('0x5b')]({'attributes':[_0x29ce6d('0x1f')],'where':{'sectionId':_0xae4ff1['id']},'raw':!![]})[_0x29ce6d('0x3c')](function(_0x37912c){const _0x263edc=_0x29ce6d;if(_0x37912c){const _0x3c1ffc={'where':{'id':_[_0x263edc('0x31')](_0x37912c,_0x263edc('0x1f'))},'raw':!![]};switch(_0x3c8b17){case _0x263edc('0x46'):_0x3c1ffc[_0x263edc('0x21')][_0x263edc('0x44')]=_0x263edc('0x2f');break;case'Campaign':_0x3c1ffc['where'][_0x263edc('0x17')]=_0x263edc('0x5');break;}return db[_0x3c8b17][_0x263edc('0x5b')](_0x3c1ffc);}else return[];});}else return[];})['then'](function(_0x484fd1){return _0x484fd1;});}function joinOrLeaveQueues(_0x17aeef,_0x3e1350,_0x22412f,_0x207542){const _0x32d6e1=_0x177408;_0x17aeef[_0x3e1350](util[_0x32d6e1('0x16')](_0x32d6e1('0x41'),_0x22412f,_0x207542[_0x32d6e1('0x34')]));if(_0x207542['Agents'])for(let _0x916c5f=0x0;_0x916c5f<_0x207542[_0x32d6e1('0x5e')][_0x32d6e1('0x1e')];_0x916c5f+=0x1){_0x17aeef[_0x3e1350](util[_0x32d6e1('0x16')](_0x32d6e1('0x13'),_0x207542[_0x32d6e1('0x5e')][_0x916c5f]['name']));}}function joinOrLeave(_0x5a75bd,_0x19a38c,_0x139f0b){const _0x526055=_0x177408;let _0x45496e;_0x5a75bd[_0x526055('0x4')][_0x526055('0x6')]['id']&&db[_0x526055('0x46')][_0x526055('0x25')]({'attributes':['id',_0x526055('0x34'),_0x526055('0x44'),_0x526055('0x2b')],'where':{'id':_0x5a75bd[_0x526055('0x4')][_0x526055('0x6')]['id']},'include':[{'model':db['ChatInteraction'],'as':_0x526055('0x27'),'attributes':['id'],'raw':!![]},{'model':db['MailInteraction'],'as':_0x526055('0x24'),'attributes':['id'],'raw':!![]},{'model':db[_0x526055('0x1')],'as':'FaxInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x526055('0x1c')],'as':'SmsInteractions','attributes':['id'],'raw':!![]},{'model':db['OpenchannelInteraction'],'as':_0x526055('0x20'),'attributes':['id'],'raw':!![]},{'model':db['WhatsappInteraction'],'as':_0x526055('0x51'),'attributes':['id'],'raw':!![]}]})['then'](function(_0xe48d8){const _0x70e137=_0x526055;if(_0xe48d8){_0x45496e=_0xe48d8,_0x5a75bd[_0x19a38c](util[_0x70e137('0x16')](_0x70e137('0x13'),_0xe48d8[_0x70e137('0x34')]));const _0x4af87c=[];switch(_0xe48d8[_0x70e137('0x44')]){case _0x70e137('0x54'):_0x5a75bd[_0x19a38c](_0x70e137('0x4d')),_0x5a75bd[_0x19a38c](_0x70e137('0x4b'));typeof queryQueues['include']!==_0x70e137('0x35')&&delete queryQueues['include'];_0x4af87c[_0x70e137('0x4e')](db[_0x70e137('0x43')][_0x70e137('0x5b')](queryQueues)),_0x4af87c[_0x70e137('0x4e')](db[_0x70e137('0x33')]['findAll'](queryQueues)),_0x4af87c[_0x70e137('0x4e')](db[_0x70e137('0x48')][_0x70e137('0x5b')](queryQueues)),_0x4af87c['push'](db[_0x70e137('0x4f')][_0x70e137('0x5b')](queryQueues)),_0x4af87c[_0x70e137('0x4e')](db[_0x70e137('0x3e')][_0x70e137('0x5b')](queryQueues)),_0x4af87c[_0x70e137('0x4e')](db[_0x70e137('0x57')][_0x70e137('0x5b')](queryQueues)),_0x4af87c[_0x70e137('0x4e')](db[_0x70e137('0x56')]['findAll'](queryQueues)),_0x4af87c['push'](db[_0x70e137('0x46')][_0x70e137('0x5b')](queryTelephones)),_0x4af87c[_0x70e137('0x4e')](db[_0x70e137('0x3')][_0x70e137('0x5b')](queryTrunks)),_0x4af87c[_0x70e137('0x4e')](db[_0x70e137('0x36')][_0x70e137('0x5b')](queryCampaigns)),_0x4af87c['push'](db['User'][_0x70e137('0x5b')](queryAgents));break;case _0x70e137('0x7'):_0x5a75bd[_0x19a38c]('voice:inbound'),_0x5a75bd[_0x19a38c](_0x70e137('0x4b')),_0x4af87c[_0x70e137('0x4e')](getAssociatedResources(_0x70e137('0x39'),_0xe48d8[_0x70e137('0x2b')],'VoiceQueue')),_0x4af87c[_0x70e137('0x4e')](getAssociatedResources('ChatQueues',_0xe48d8['userProfileId'],_0x70e137('0x33'))),_0x4af87c[_0x70e137('0x4e')](getAssociatedResources(_0x70e137('0x3b'),_0xe48d8['userProfileId'],_0x70e137('0x48'))),_0x4af87c[_0x70e137('0x4e')](getAssociatedResources(_0x70e137('0x5f'),_0xe48d8['userProfileId'],_0x70e137('0x4f'))),_0x4af87c['push'](getAssociatedResources('MailQueues',_0xe48d8[_0x70e137('0x2b')],_0x70e137('0x3e'))),_0x4af87c[_0x70e137('0x4e')](getAssociatedResources(_0x70e137('0x38'),_0xe48d8['userProfileId'],_0x70e137('0x57'))),_0x4af87c['push'](getAssociatedResources(_0x70e137('0x40'),_0xe48d8[_0x70e137('0x2b')],_0x70e137('0x56'))),_0x4af87c[_0x70e137('0x4e')](getAssociatedResources(_0x70e137('0x11'),_0xe48d8['userProfileId'],'User')),_0x4af87c['push'](getAssociatedResources(_0x70e137('0x15'),_0xe48d8[_0x70e137('0x2b')],_0x70e137('0x3'))),_0x4af87c[_0x70e137('0x4e')](getAssociatedResources('IvrCampaigns',_0xe48d8['userProfileId'],'Campaign')),_0x4af87c[_0x70e137('0x4e')](db['User'][_0x70e137('0x5b')](queryAgents));break;case'agent':_0x5a75bd[_0x19a38c](_0x70e137('0x4d')),_0x5a75bd[_0x19a38c](_0x70e137('0x4b')),_0x4af87c['push'](_0xe48d8['getVoiceQueues']({'attributes':['id','name']})),_0x4af87c[_0x70e137('0x4e')](_0xe48d8['getChatQueues']({'attributes':['id',_0x70e137('0x34')]})),_0x4af87c[_0x70e137('0x4e')](_0xe48d8['getFaxQueues']({'attributes':['id','name']})),_0x4af87c['push'](_0xe48d8[_0x70e137('0x5d')]({'attributes':['id',_0x70e137('0x34')]})),_0x4af87c[_0x70e137('0x4e')](_0xe48d8[_0x70e137('0x2e')]({'attributes':['id','name']})),_0x4af87c['push'](_0xe48d8[_0x70e137('0xe')]({'attributes':['id','name']})),_0x4af87c[_0x70e137('0x4e')](_0xe48d8[_0x70e137('0x5c')]({'attributes':['id',_0x70e137('0x34')]}));break;}return Promise[_0x70e137('0x14')](_0x4af87c);}})[_0x526055('0x3c')](function(_0x2040c4){const _0x5dc12c=_0x526055;if(_0x2040c4&&_0x2040c4[_0x5dc12c('0x1e')])for(let _0x1681df=0x0;_0x1681df<_0x2040c4[_0x5dc12c('0x1e')];_0x1681df+=0x1){for(let _0x3653f1=0x0;_0x3653f1<_0x2040c4[_0x1681df][_0x5dc12c('0x1e')];_0x3653f1+=0x1){switch(_0x1681df){case 0x0:joinOrLeaveQueues(_0x5a75bd,_0x19a38c,_0x5dc12c('0x4a'),_0x2040c4[_0x1681df][_0x3653f1]);break;case 0x1:joinOrLeaveQueues(_0x5a75bd,_0x19a38c,'chat',_0x2040c4[_0x1681df][_0x3653f1]);break;case 0x2:joinOrLeaveQueues(_0x5a75bd,_0x19a38c,_0x5dc12c('0x37'),_0x2040c4[_0x1681df][_0x3653f1]);break;case 0x3:joinOrLeaveQueues(_0x5a75bd,_0x19a38c,_0x5dc12c('0x3a'),_0x2040c4[_0x1681df][_0x3653f1]);break;case 0x4:joinOrLeaveQueues(_0x5a75bd,_0x19a38c,_0x5dc12c('0x5a'),_0x2040c4[_0x1681df][_0x3653f1]);break;case 0x5:joinOrLeaveQueues(_0x5a75bd,_0x19a38c,_0x5dc12c('0x23'),_0x2040c4[_0x1681df][_0x3653f1]);break;case 0x6:joinOrLeaveQueues(_0x5a75bd,_0x19a38c,_0x5dc12c('0x2d'),_0x2040c4[_0x1681df][_0x3653f1]);break;case 0x7:_0x5a75bd[_0x19a38c](util[_0x5dc12c('0x16')](_0x5dc12c('0x2c'),_0x2040c4[_0x1681df][_0x3653f1]['name']));break;case 0x8:_0x5a75bd[_0x19a38c](util[_0x5dc12c('0x16')](_0x5dc12c('0xb'),_0x2040c4[_0x1681df][_0x3653f1][_0x5dc12c('0x34')]));break;case 0x9:_0x5a75bd[_0x19a38c](util[_0x5dc12c('0x16')]('campaign:%s:%s',_0x2040c4[_0x1681df][_0x3653f1][_0x5dc12c('0x17')],_0x2040c4[_0x1681df][_0x3653f1][_0x5dc12c('0x34')]));break;case 0xa:_0x5a75bd[_0x19a38c](util[_0x5dc12c('0x16')]('user:%s',_0x2040c4[_0x1681df][_0x3653f1][_0x5dc12c('0x34')]));break;}}}})['then'](function(){const _0x2bc73e=_0x526055;if(_0x19a38c===_0x2bc73e('0x19')){const _0xd01c7c=_[_0x2bc73e('0x31')](_0x45496e[_0x2bc73e('0x27')],'id');return _0x45496e[_0x2bc73e('0xa')](_0xd01c7c)[_0x2bc73e('0x3c')](function(){const _0x4e79bb=_0x2bc73e;for(let _0x46c66b=0x0;_0x46c66b<_0xd01c7c[_0x4e79bb('0x1e')];_0x46c66b+=0x1){_0x139f0b[_0x4e79bb('0x53')](_0x4e79bb('0x22'),{'ChatInteractionId':Number(_0xd01c7c[_0x46c66b]),'UserId':Number(_0x45496e['id'])});}});}})[_0x526055('0x3c')](function(){const _0x208858=_0x526055;if(_0x19a38c==='leave'){const _0x1c33e6=_[_0x208858('0x31')](_0x45496e[_0x208858('0x24')],'id');return _0x45496e['removeMailInteractions'](_0x1c33e6)[_0x208858('0x3c')](function(){const _0x2f9d9a=_0x208858;for(let _0x83c6be=0x0;_0x83c6be<_0x1c33e6[_0x2f9d9a('0x1e')];_0x83c6be+=0x1){_0x139f0b[_0x2f9d9a('0x53')](_0x2f9d9a('0xf'),{'MailInteractionId':Number(_0x1c33e6[_0x83c6be]),'UserId':Number(_0x45496e['id'])});}});}})[_0x526055('0x3c')](function(){const _0x22f123=_0x526055;if(_0x19a38c==='leave'){const _0xa310ff=_[_0x22f123('0x31')](_0x45496e[_0x22f123('0x49')],'id');return _0x45496e[_0x22f123('0x1d')](_0xa310ff)[_0x22f123('0x3c')](function(){const _0x410601=_0x22f123;for(let _0x205355=0x0;_0x205355<_0xa310ff[_0x410601('0x1e')];_0x205355+=0x1){_0x139f0b[_0x410601('0x53')](_0x410601('0x8'),{'FaxInteractionId':Number(_0xa310ff[_0x205355]),'UserId':Number(_0x45496e['id'])});}});}})['then'](function(){const _0x1ef343=_0x526055;if(_0x19a38c===_0x1ef343('0x19')){const _0x98f9f5=_[_0x1ef343('0x31')](_0x45496e[_0x1ef343('0x32')],'id');return _0x45496e[_0x1ef343('0x30')](_0x98f9f5)[_0x1ef343('0x3c')](function(){const _0x151faf=_0x1ef343;for(let _0x491e1e=0x0;_0x491e1e<_0x98f9f5[_0x151faf('0x1e')];_0x491e1e+=0x1){_0x139f0b[_0x151faf('0x53')](_0x151faf('0x28'),{'SmsInteractionId':Number(_0x98f9f5[_0x491e1e]),'UserId':Number(_0x45496e['id'])});}});}})['then'](function(){const _0xb0bd3a=_0x526055;if(_0x19a38c===_0xb0bd3a('0x19')){const _0x67272a=_[_0xb0bd3a('0x31')](_0x45496e[_0xb0bd3a('0x20')],'id');return _0x45496e[_0xb0bd3a('0x29')](_0x67272a)[_0xb0bd3a('0x3c')](function(){const _0x46aaa0=_0xb0bd3a;for(let _0x5cdc33=0x0;_0x5cdc33<_0x67272a[_0x46aaa0('0x1e')];_0x5cdc33+=0x1){_0x139f0b[_0x46aaa0('0x53')](_0x46aaa0('0x2'),{'OpenchannelInteractionId':Number(_0x67272a[_0x5cdc33]),'UserId':Number(_0x45496e['id'])});}});}})[_0x526055('0x3c')](function(){const _0x4437d0=_0x526055;if(_0x19a38c===_0x4437d0('0x19')){const _0x45a3fc=_[_0x4437d0('0x31')](_0x45496e[_0x4437d0('0x51')],'id');return _0x45496e[_0x4437d0('0x55')](_0x45a3fc)['then'](function(){const _0x26a48b=_0x4437d0;for(let _0x4b2708=0x0;_0x4b2708<_0x45a3fc['length'];_0x4b2708+=0x1){_0x139f0b[_0x26a48b('0x53')](_0x26a48b('0x10'),{'WhatsappInteractionId':Number(_0x45a3fc[_0x4b2708]),'UserId':Number(_0x45496e['id'])});}});}})['catch'](function(_0x2cc2d9){const _0x3e405e=_0x526055;_0x5a75bd[_0x3e405e('0x4c')](_0x2cc2d9);});}function onDisconnect(_0x24f381,_0x42e11b){const _0x3945bc=_0x177408;joinOrLeave(_0x24f381,_0x3945bc('0x19'),_0x42e11b);}function onConnect(_0x24c897){const _0x210629=_0x177408;joinOrLeave(_0x24c897,_0x210629('0x45'));}exports[_0x177408('0x50')]=function(_0x29d374){_0x29d374['on']('connection',function(_0x5c31e3){const _0x2dc8b8=a886_0x4c28;_0x5c31e3[_0x2dc8b8('0x12')](0x0),_0x5c31e3[_0x2dc8b8('0x1a')]=_0x5c31e3[_0x2dc8b8('0x59')][_0x2dc8b8('0x2a')][_0x2dc8b8('0x58')]+':'+_0x5c31e3['request']['connection'][_0x2dc8b8('0x52')],_0x5c31e3[_0x2dc8b8('0x3d')]=new Date(),_0x5c31e3[_0x2dc8b8('0x4c')]=function(_0x1fd12f){const _0x35eed3=_0x2dc8b8;console['log'](_0x35eed3('0xd')+_0x5c31e3[_0x35eed3('0x26')][_0x35eed3('0x34')]+'['+_0x5c31e3['address']+']',_0x1fd12f);},_0x5c31e3['on']('disconnect',function(){const _0x6dd02=_0x2dc8b8;onDisconnect(_0x5c31e3,_0x29d374),_0x5c31e3[_0x6dd02('0x4c')](_0x6dd02('0x9'));}),onConnect(_0x5c31e3),_0x5c31e3['log'](_0x2dc8b8('0x1b'));});}; \ No newline at end of file diff --git a/server/config/triggers/index.js b/server/config/triggers/index.js index 6de30eb..3e91918 100644 --- a/server/config/triggers/index.js +++ b/server/config/triggers/index.js @@ -1 +1 @@ -const a887_0x5eec=['catch','default','callback','SmsInteraction','Fax','triggers','condition','get','http','info','ChatInteraction','opened','undefined','Mail','SIP/%s','toLowerCase','MailMessage','SmsMessage','FaxMessage','outgoingmessage','code','length','error','../../mysqldb','FaxInteraction','UserId','Sms','OpenchannelInteraction','WhatsappInteraction','changed','WhatsappMessage','jayson/promise','newinteraction','client','Chat','afterCreate','EventManager','format','direction','request','../logger','Whatsapp','addHook','User','incomingmessage','name','Trigger,\x20%s','closedinteraction','interface','channel','findOne','Openchannel','newmessage','event','then','afterUpdate','closed','model'];(function(_0xe107dc,_0x5eecaa){const _0x560549=function(_0xedc1f8){while(--_0xedc1f8){_0xe107dc['push'](_0xe107dc['shift']());}};_0x560549(++_0x5eecaa);}(a887_0x5eec,0x10e));const a887_0x5605=function(_0xe107dc,_0x5eecaa){_0xe107dc=_0xe107dc-0x0;let _0x560549=a887_0x5eec[_0xe107dc];return _0x560549;};const _0x1c8dbb=a887_0x5605;'use strict';const util=require('util'),db=require(_0x1c8dbb('0x2b'))['db'],jayson=require(_0x1c8dbb('0x33')),logger=require(_0x1c8dbb('0x2'))(_0x1c8dbb('0x19')),client=jayson[_0x1c8dbb('0x35')][_0x1c8dbb('0x1c')]({'port':0x232a}),triggers=[{'channel':_0x1c8dbb('0x36'),'model':_0x1c8dbb('0x1e'),'event':'afterCreate','condition':_0x1c8dbb('0x34'),'callback':afterCreate},{'channel':_0x1c8dbb('0x36'),'model':_0x1c8dbb('0x1e'),'event':_0x1c8dbb('0x11'),'condition':_0x1c8dbb('0x9'),'callback':afterUpdate},{'channel':_0x1c8dbb('0x36'),'model':'ChatMessage','event':_0x1c8dbb('0x37'),'condition':_0x1c8dbb('0xe'),'callback':afterCreateMessage},{'channel':_0x1c8dbb('0x2e'),'model':_0x1c8dbb('0x17'),'event':_0x1c8dbb('0x37'),'condition':_0x1c8dbb('0x34'),'callback':afterCreate},{'channel':_0x1c8dbb('0x2e'),'model':_0x1c8dbb('0x17'),'event':_0x1c8dbb('0x11'),'condition':_0x1c8dbb('0x9'),'callback':afterUpdate},{'channel':_0x1c8dbb('0x2e'),'model':_0x1c8dbb('0x25'),'event':_0x1c8dbb('0x37'),'condition':_0x1c8dbb('0xe'),'callback':afterCreateMessage},{'channel':_0x1c8dbb('0x3'),'model':_0x1c8dbb('0x30'),'event':'afterCreate','condition':_0x1c8dbb('0x34'),'callback':afterCreate},{'channel':_0x1c8dbb('0x3'),'model':_0x1c8dbb('0x30'),'event':_0x1c8dbb('0x11'),'condition':'closedinteraction','callback':afterUpdate},{'channel':_0x1c8dbb('0x3'),'model':_0x1c8dbb('0x32'),'event':_0x1c8dbb('0x37'),'condition':_0x1c8dbb('0xe'),'callback':afterCreateMessage},{'channel':_0x1c8dbb('0x18'),'model':'FaxInteraction','event':_0x1c8dbb('0x37'),'condition':_0x1c8dbb('0x34'),'callback':afterCreate},{'channel':_0x1c8dbb('0x18'),'model':_0x1c8dbb('0x2c'),'event':_0x1c8dbb('0x11'),'condition':_0x1c8dbb('0x9'),'callback':afterUpdate},{'channel':'Fax','model':_0x1c8dbb('0x26'),'event':_0x1c8dbb('0x37'),'condition':_0x1c8dbb('0xe'),'callback':afterCreateMessage},{'channel':'Mail','model':'MailInteraction','event':_0x1c8dbb('0x37'),'condition':_0x1c8dbb('0x34'),'callback':afterCreate},{'channel':_0x1c8dbb('0x21'),'model':'MailInteraction','event':'afterUpdate','condition':'closedinteraction','callback':afterUpdate},{'channel':_0x1c8dbb('0x21'),'model':_0x1c8dbb('0x24'),'event':_0x1c8dbb('0x37'),'condition':'newmessage','callback':afterCreateMessage},{'channel':_0x1c8dbb('0xd'),'model':'OpenchannelInteraction','event':_0x1c8dbb('0x37'),'condition':_0x1c8dbb('0x34'),'callback':afterCreate},{'channel':'Openchannel','model':_0x1c8dbb('0x2f'),'event':_0x1c8dbb('0x11'),'condition':'closedinteraction','callback':afterUpdate},{'channel':'Openchannel','model':'OpenchannelMessage','event':'afterCreate','condition':_0x1c8dbb('0xe'),'callback':afterCreateMessage}];function request(_0xedc1f8){const _0x183eee=_0x1c8dbb;return client[_0x183eee('0x1')](_0x183eee('0x38'),_0xedc1f8)[_0x183eee('0x10')](function(_0x4f6fcb){const _0x27502b=_0x183eee;logger[_0x27502b('0x1d')](_0x27502b('0x8'),'EventManager',_0x4f6fcb),_0x4f6fcb[_0x27502b('0x2a')]&&(_0x4f6fcb[_0x27502b('0x2a')][_0x27502b('0x28')]===0x1f4&&logger[_0x27502b('0x2a')](_0x27502b('0x8'),_0x27502b('0x38'),_0x4f6fcb[_0x27502b('0x2a')]));})[_0x183eee('0x14')](function(_0x59834d){const _0x313d7a=_0x183eee;logger['error'](_0x313d7a('0x8'),_0x313d7a('0x38'),_0x59834d);});}function afterCreateMessage(_0x4477f3){return function(_0x5108b1){const _0x39625f=a887_0x5605;return _0x5108b1=_0x5108b1['get']({'plain':!![]}),_0x5108b1[_0x39625f('0xb')]=_0x4477f3,_0x5108b1[_0x39625f('0xf')]=_0x5108b1[_0x39625f('0x0')],_0x5108b1[_0x39625f('0x2d')]?db[_0x39625f('0x5')][_0x39625f('0xc')]({'where':{'id':_0x5108b1[_0x39625f('0x2d')]},'attributes':['id',_0x39625f('0x7')],'raw':!![]})[_0x39625f('0x10')](function(_0x27a796){const _0x29c1d9=_0x39625f;return _0x5108b1[_0x29c1d9('0xa')]=util[_0x29c1d9('0x39')](_0x29c1d9('0x22'),_0x27a796[_0x29c1d9('0x7')]),_0x5108b1[_0x29c1d9('0xb')]=_0x4477f3,request({'event':_0x29c1d9('0x6'),'message':_0x5108b1});})[_0x39625f('0x14')](function(_0x8f9d76){const _0x47f4fc=_0x39625f;console[_0x47f4fc('0x2a')](_0x8f9d76);}):request({'event':_0x39625f('0x27'),'message':_0x5108b1});};}function afterCreate(_0x2d83b0,_0x5370ff){return function(_0x4be562){const _0x6009c6=a887_0x5605;return _0x4be562=_0x4be562['get']({'plain':!![]}),_0x4be562[_0x6009c6('0xb')]=_0x2d83b0,_0x4be562[_0x6009c6('0xf')]=_0x6009c6('0x1f'),request({'event':_0x5370ff,'message':_0x4be562});};}function afterUpdate(_0x3e9190,_0x16dd4a){return function(_0x1bbdd5){const _0x2269f4=a887_0x5605;if(_0x1bbdd5[_0x2269f4('0x31')]('closed')&&_0x1bbdd5['closed'])return _0x1bbdd5=_0x1bbdd5[_0x2269f4('0x1b')]({'plain':!![]}),_0x1bbdd5['channel']=_0x3e9190,_0x1bbdd5['event']=_0x2269f4('0x12'),_0x1bbdd5[_0x2269f4('0x2d')]?db[_0x2269f4('0x5')][_0x2269f4('0xc')]({'where':{'id':_0x1bbdd5[_0x2269f4('0x2d')]},'attributes':['id','name'],'raw':!![]})[_0x2269f4('0x10')](function(_0x3d6018){const _0x5218fc=_0x2269f4;return _0x1bbdd5[_0x5218fc('0xa')]=util[_0x5218fc('0x39')](_0x5218fc('0x22'),_0x3d6018[_0x5218fc('0x7')]),request({'event':_0x16dd4a,'message':_0x1bbdd5});})[_0x2269f4('0x14')](function(_0x11bda4){const _0x37fe00=_0x2269f4;console[_0x37fe00('0x2a')](_0x11bda4);}):request({'event':_0x16dd4a,'message':_0x1bbdd5});};}exports[_0x1c8dbb('0x15')]=function(){const _0x5e79c3=_0x1c8dbb;for(let _0x3e0925=0x0;_0x3e0925=_0x4bcc77['agents'])throw Error(_0x4e8790('0x13'));_0xd4bd13(_0x2413f0);})['catch'](function(_0x4c6808){_0x4908d1(_0x4c6808);});});}; \ No newline at end of file +const a888_0x8f95=['isUndefined','getChannels','Maximum\x20login\x20has\x20been\x20reached','count','role','openchannel','includes','agent','clearBlockUser','chat','isValidChannel','then','update','../mysqldb','sequelize','agents','lodash','catch','sms','fax'];(function(_0x2f01f1,_0x8f9562){const _0x3c9327=function(_0x5eb642){while(--_0x5eb642){_0x2f01f1['push'](_0x2f01f1['shift']());}};_0x3c9327(++_0x8f9562);}(a888_0x8f95,0x1b7));const a888_0x3c93=function(_0x2f01f1,_0x8f9562){_0x2f01f1=_0x2f01f1-0x0;let _0x3c9327=a888_0x8f95[_0x2f01f1];return _0x3c9327;};const _0x3e2056=a888_0x3c93;'use strict';const _=require(_0x3e2056('0x11')),db=require(_0x3e2056('0xe'))['db'],util=require('./license/util'),{Op}=require(_0x3e2056('0xf')),channels=['voice','mail',_0x3e2056('0xa'),_0x3e2056('0x0'),_0x3e2056('0x13'),'whatsapp',_0x3e2056('0x6')];exports[_0x3e2056('0x2')]=function(){return channels;},exports[_0x3e2056('0xb')]=function(_0x5eb642){const _0xfc9b16=_0x3e2056;return _0x5eb642=_0x5eb642['toLowerCase'](),_[_0xfc9b16('0x7')](channels,_0x5eb642);},exports[_0x3e2056('0x9')]=function(_0x2e10ff,_0x30c3ee,_0x1ee331,_0x20935a){const _0x38579a=_0x3e2056,_0x348dba={'loginAttempts':_0x30c3ee,'blocked':_0x1ee331};return!_[_0x38579a('0x1')](_0x20935a)&&(_0x348dba['blockedAt']=_0x20935a),_0x2e10ff[_0x38579a('0xd')](_0x348dba);},exports['getLicense']=function(_0x3bb728){return new Promise(function(_0x203474,_0x37539e){const _0x4076b8=a888_0x3c93;let _0x184ee7=0x0;_0x3bb728[_0x4076b8('0x5')]!==_0x4076b8('0x8')&&_0x203474(_0x3bb728),db['User'][_0x4076b8('0x4')]({'where':{'role':_0x4076b8('0x8'),'online':!![],'id':{[Op['ne']]:_0x3bb728['id']}}})['then'](function(_0x2c1592){return _0x184ee7=_0x2c1592,util['getLicense']();})[_0x4076b8('0xc')](function(_0x1d25a3){const _0x5b01cb=_0x4076b8;if(_0x1d25a3&&_0x1d25a3[_0x5b01cb('0x10')]&&_0x184ee7>=_0x1d25a3['agents'])throw Error(_0x5b01cb('0x3'));_0x203474(_0x3bb728);})[_0x4076b8('0x12')](function(_0x107291){_0x37539e(_0x107291);});});}; \ No newline at end of file diff --git a/server/errors/index.js b/server/errors/index.js index 3a94b0e..d85b975 100644 --- a/server/errors/index.js +++ b/server/errors/index.js @@ -1 +1 @@ -const a889_0x5767=['send','status','404','render'];(function(_0x35e86f,_0x576718){const _0x15269f=function(_0x3919bc){while(--_0x3919bc){_0x35e86f['push'](_0x35e86f['shift']());}};_0x15269f(++_0x576718);}(a889_0x5767,0x1b1));const a889_0x1526=function(_0x35e86f,_0x576718){_0x35e86f=_0x35e86f-0x0;let _0x15269f=a889_0x5767[_0x35e86f];return _0x15269f;};'use strict';module['exports'][0x194]=function pageNotFound(_0x3919bc,_0x1d43ff){const _0x2da828=a889_0x1526,_0x17989a=_0x2da828('0x1'),_0xd690d2=0x194,_0x19bd22={'status':_0xd690d2};_0x1d43ff['status'](_0x19bd22[_0x2da828('0x0')]),_0x1d43ff[_0x2da828('0x2')](_0x17989a,{},function(_0x41bf2f,_0x40df2f){const _0x201fff=_0x2da828;if(_0x41bf2f)return _0x1d43ff[_0x201fff('0x0')](_0x19bd22[_0x201fff('0x0')])['json'](_0x19bd22);_0x1d43ff[_0x201fff('0x3')](_0x40df2f);});}; \ No newline at end of file +const a889_0x3f8b=['json','status','404','send'];(function(_0x1fe616,_0x3f8b2a){const _0x11175c=function(_0x223c57){while(--_0x223c57){_0x1fe616['push'](_0x1fe616['shift']());}};_0x11175c(++_0x3f8b2a);}(a889_0x3f8b,0x6f));const a889_0x1117=function(_0x1fe616,_0x3f8b2a){_0x1fe616=_0x1fe616-0x0;let _0x11175c=a889_0x3f8b[_0x1fe616];return _0x11175c;};'use strict';module['exports'][0x194]=function pageNotFound(_0x223c57,_0x10a267){const _0x56f6b2=a889_0x1117,_0x3a7d7f=_0x56f6b2('0x3'),_0x4ba67f=0x194,_0x1426d5={'status':_0x4ba67f};_0x10a267[_0x56f6b2('0x2')](_0x1426d5[_0x56f6b2('0x2')]),_0x10a267['render'](_0x3a7d7f,{},function(_0x1bc49e,_0x3e53b4){const _0x175ef3=_0x56f6b2;if(_0x1bc49e)return _0x10a267[_0x175ef3('0x2')](_0x1426d5[_0x175ef3('0x2')])[_0x175ef3('0x1')](_0x1426d5);_0x10a267[_0x175ef3('0x0')](_0x3e53b4);});}; \ No newline at end of file diff --git a/server/globals.js b/server/globals.js index 65652f8..63a1a1d 100644 --- a/server/globals.js +++ b/server/globals.js @@ -1 +1 @@ -const a890_0x1ef6=['appRoot','path','resolve'];(function(_0x456e07,_0x1ef6e4){const _0x17fe69=function(_0x109932){while(--_0x109932){_0x456e07['push'](_0x456e07['shift']());}};_0x17fe69(++_0x1ef6e4);}(a890_0x1ef6,0x118));const a890_0x17fe=function(_0x456e07,_0x1ef6e4){_0x456e07=_0x456e07-0x0;let _0x17fe69=a890_0x1ef6[_0x456e07];return _0x17fe69;};const _0x286674=a890_0x17fe,path=require(_0x286674('0x0'));global[_0x286674('0x2')]=path[_0x286674('0x1')](__dirname); \ No newline at end of file +const a890_0x5d20=['resolve','appRoot','path'];(function(_0xbf2cac,_0x5d20a1){const _0x97ec9a=function(_0x3b6157){while(--_0x3b6157){_0xbf2cac['push'](_0xbf2cac['shift']());}};_0x97ec9a(++_0x5d20a1);}(a890_0x5d20,0x6a));const a890_0x97ec=function(_0xbf2cac,_0x5d20a1){_0xbf2cac=_0xbf2cac-0x0;let _0x97ec9a=a890_0x5d20[_0xbf2cac];return _0x97ec9a;};const _0x3f2b30=a890_0x97ec,path=require(_0x3f2b30('0x1'));global[_0x3f2b30('0x0')]=path[_0x3f2b30('0x2')](__dirname); \ No newline at end of file diff --git a/server/migrations/2.0.12.js b/server/migrations/2.0.12.js index 0378935..1c43b74 100644 --- a/server/migrations/2.0.12.js +++ b/server/migrations/2.0.12.js @@ -1 +1 @@ -var a891_0x3ce4=['exports'];(function(_0x123ec8,_0x3ce4f6){var _0x2c8a0b=function(_0x36a58d){while(--_0x36a58d){_0x123ec8['push'](_0x123ec8['shift']());}};_0x2c8a0b(++_0x3ce4f6);}(a891_0x3ce4,0xe7));var a891_0x2c8a=function(_0x123ec8,_0x3ce4f6){_0x123ec8=_0x123ec8-0x0;var _0x2c8a0b=a891_0x3ce4[_0x123ec8];return _0x2c8a0b;};var _0x2e753e=a891_0x2c8a;'use strict';module[_0x2e753e('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a891_0x5ec5=['exports'];(function(_0x45b015,_0x5ec505){var _0xde55f5=function(_0x18660b){while(--_0x18660b){_0x45b015['push'](_0x45b015['shift']());}};_0xde55f5(++_0x5ec505);}(a891_0x5ec5,0x110));var a891_0xde55=function(_0x45b015,_0x5ec505){_0x45b015=_0x45b015-0x0;var _0xde55f5=a891_0x5ec5[_0x45b015];return _0xde55f5;};var _0x532d68=a891_0xde55;'use strict';module[_0x532d68('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.13.js b/server/migrations/2.0.13.js index 12c8e63..62604e0 100644 --- a/server/migrations/2.0.13.js +++ b/server/migrations/2.0.13.js @@ -1 +1 @@ -const a892_0x1b1b=['catch','deleted','then','phoneBarRingInUse','addColumn','Added\x20column\x20%s\x20to\x20%s','info','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','cm_hopper_final','rescheduled','Removed\x20column\x20%s\x20from\x20%s','../config/logger','users','removeColumn','prototype','STRING','queryInterface','DATE','deletedat','renameColumn','migration','reschedule','exports'];(function(_0x41b73a,_0x1b1b1f){const _0xd91e7b=function(_0x230ac6){while(--_0x230ac6){_0x41b73a['push'](_0x41b73a['shift']());}};_0xd91e7b(++_0x1b1b1f);}(a892_0x1b1b,0x77));const a892_0xd91e=function(_0x41b73a,_0x1b1b1f){_0x41b73a=_0x41b73a-0x0;let _0xd91e7b=a892_0x1b1b[_0x41b73a];return _0xd91e7b;};const _0x16ed50=a892_0xd91e;'use strict';const logger=require(_0x16ed50('0xd'))(_0x16ed50('0x16')),Migration=function(_0x230ac6){const _0x4abb3b=_0x16ed50;this[_0x4abb3b('0x12')]=_0x230ac6;};Migration['prototype'][_0x16ed50('0x5')]=function(_0x34ef87,_0x3a9c94,_0x3b7f78){const _0x162c57=_0x16ed50;return this[_0x162c57('0x12')][_0x162c57('0x5')](_0x34ef87,_0x3a9c94,_0x3b7f78)[_0x162c57('0x3')](function(){const _0x5162c9=_0x162c57;logger[_0x5162c9('0x7')](_0x5162c9('0x6'),_0x3a9c94,_0x34ef87);})[_0x162c57('0x1')](function(_0x5f4590){const _0x26fb74=_0x162c57;logger[_0x26fb74('0x7')](JSON[_0x26fb74('0x8')](_0x5f4590));});},Migration[_0x16ed50('0x10')][_0x16ed50('0xf')]=function(_0xc8e381,_0x1aed0d){const _0x4294ab=_0x16ed50;return this[_0x4294ab('0x12')][_0x4294ab('0xf')](_0xc8e381,_0x1aed0d)[_0x4294ab('0x3')](function(){const _0x5a1f0a=_0x4294ab;logger[_0x5a1f0a('0x7')](_0x5a1f0a('0xc'),_0x1aed0d,_0xc8e381);})[_0x4294ab('0x1')](function(_0x2fde3d){const _0x3a77fc=_0x4294ab;logger[_0x3a77fc('0x7')](JSON[_0x3a77fc('0x8')](_0x2fde3d));});},Migration[_0x16ed50('0x10')]['renameColumn']=function(_0x579f1b,_0x5b78d9,_0x502a47){const _0x2c00a6=_0x16ed50;return this[_0x2c00a6('0x12')]['renameColumn'](_0x579f1b,_0x5b78d9,_0x502a47)['then'](function(){const _0x5e62b4=_0x2c00a6;logger[_0x5e62b4('0x7')](_0x5e62b4('0x9'),_0x5b78d9,_0x502a47,_0x579f1b);})[_0x2c00a6('0x1')](function(_0x3366f3){const _0x39c721=_0x2c00a6;logger[_0x39c721('0x7')](JSON[_0x39c721('0x8')](_0x3366f3));});},module[_0x16ed50('0x0')]={'up':function(_0x1c315c,_0x247217){const _0xe81a97=_0x16ed50,_0x259fb3=new Migration(_0x1c315c);_0x259fb3[_0xe81a97('0x5')]('cm_hopper_final',_0xe81a97('0x14'),{'type':_0x247217[_0xe81a97('0x13')]}),_0x259fb3['addColumn'](_0xe81a97('0xe'),_0xe81a97('0x4'),{'type':_0x247217['BOOLEAN'],'defaultValue':![]}),_0x259fb3['addColumn'](_0xe81a97('0xa'),_0xe81a97('0x2'),{'type':_0x247217[_0xe81a97('0x11')],'defaultValue':null}),_0x259fb3[_0xe81a97('0x15')]('cm_hopper_final',_0xe81a97('0x17'),_0xe81a97('0xb'));},'down':function(_0x347f0e,_0x1d3ffe){const _0x1aee9f=_0x16ed50,_0x469ae9=new Migration(_0x347f0e,_0x1d3ffe);_0x469ae9[_0x1aee9f('0xf')](_0x1aee9f('0xe'),_0x1aee9f('0x4')),_0x469ae9[_0x1aee9f('0xf')](_0x1aee9f('0xa'),_0x1aee9f('0x14')),_0x469ae9[_0x1aee9f('0xf')](_0x1aee9f('0xa'),'deleted'),_0x469ae9[_0x1aee9f('0x15')]('cm_hopper_final',_0x1aee9f('0xb'),'reschedule');}}; \ No newline at end of file +const a892_0x19f3=['renameColumn','migration','rescheduled','reschedule','removeColumn','info','../config/logger','stringify','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','cm_hopper_final','DATE','deleted','exports','prototype','users','Added\x20column\x20%s\x20to\x20%s','phoneBarRingInUse','then','queryInterface','deletedat'];(function(_0x385a97,_0x19f31f){const _0x4dd8ce=function(_0xd86065){while(--_0xd86065){_0x385a97['push'](_0x385a97['shift']());}};_0x4dd8ce(++_0x19f31f);}(a892_0x19f3,0x92));const a892_0x4dd8=function(_0x385a97,_0x19f31f){_0x385a97=_0x385a97-0x0;let _0x4dd8ce=a892_0x19f3[_0x385a97];return _0x4dd8ce;};const _0x4832b0=a892_0x4dd8;'use strict';const logger=require(_0x4832b0('0xe'))(_0x4832b0('0x9')),Migration=function(_0xd86065){this['queryInterface']=_0xd86065;};Migration[_0x4832b0('0x1')][_0x4832b0('0x12')]=function(_0x156ffb,_0x4b0b6f,_0x447772){const _0x438622=_0x4832b0;return this[_0x438622('0x6')][_0x438622('0x12')](_0x156ffb,_0x4b0b6f,_0x447772)[_0x438622('0x5')](function(){const _0x7048=_0x438622;logger['info'](_0x7048('0x3'),_0x4b0b6f,_0x156ffb);})['catch'](function(_0x301c26){const _0x2caebe=_0x438622;logger[_0x2caebe('0xd')](JSON[_0x2caebe('0xf')](_0x301c26));});},Migration[_0x4832b0('0x1')][_0x4832b0('0xc')]=function(_0x2c5325,_0x318369){const _0x5b399d=_0x4832b0;return this[_0x5b399d('0x6')]['removeColumn'](_0x2c5325,_0x318369)[_0x5b399d('0x5')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x318369,_0x2c5325);})[_0x5b399d('0x10')](function(_0x1d912c){const _0x51d808=_0x5b399d;logger[_0x51d808('0xd')](JSON[_0x51d808('0xf')](_0x1d912c));});},Migration[_0x4832b0('0x1')]['renameColumn']=function(_0x10b35d,_0x5e5b13,_0x217867){const _0x54cf93=_0x4832b0;return this['queryInterface']['renameColumn'](_0x10b35d,_0x5e5b13,_0x217867)['then'](function(){const _0x590dba=a892_0x4dd8;logger[_0x590dba('0xd')](_0x590dba('0x11'),_0x5e5b13,_0x217867,_0x10b35d);})[_0x54cf93('0x10')](function(_0x3c75f0){const _0x554885=_0x54cf93;logger[_0x554885('0xd')](JSON[_0x554885('0xf')](_0x3c75f0));});},module[_0x4832b0('0x0')]={'up':function(_0x2bf93d,_0x527476){const _0xebd233=_0x4832b0,_0x2d0c3e=new Migration(_0x2bf93d);_0x2d0c3e[_0xebd233('0x12')](_0xebd233('0x13'),_0xebd233('0x7'),{'type':_0x527476[_0xebd233('0x14')]}),_0x2d0c3e[_0xebd233('0x12')](_0xebd233('0x2'),_0xebd233('0x4'),{'type':_0x527476['BOOLEAN'],'defaultValue':![]}),_0x2d0c3e[_0xebd233('0x12')](_0xebd233('0x13'),'deleted',{'type':_0x527476['STRING'],'defaultValue':null}),_0x2d0c3e[_0xebd233('0x8')](_0xebd233('0x13'),'reschedule',_0xebd233('0xa'));},'down':function(_0x494c8a,_0x4fbf20){const _0x1a2bbb=_0x4832b0,_0x4f983a=new Migration(_0x494c8a,_0x4fbf20);_0x4f983a[_0x1a2bbb('0xc')](_0x1a2bbb('0x2'),_0x1a2bbb('0x4')),_0x4f983a[_0x1a2bbb('0xc')](_0x1a2bbb('0x13'),'deletedat'),_0x4f983a['removeColumn'](_0x1a2bbb('0x13'),_0x1a2bbb('0x15')),_0x4f983a[_0x1a2bbb('0x8')](_0x1a2bbb('0x13'),'rescheduled',_0x1a2bbb('0xb'));}}; \ No newline at end of file diff --git a/server/migrations/2.0.14.js b/server/migrations/2.0.14.js index 9ddf12e..12143c4 100644 --- a/server/migrations/2.0.14.js +++ b/server/migrations/2.0.14.js @@ -1 +1 @@ -var a893_0x4d0c=['exports'];(function(_0x500a4e,_0x4d0ce7){var _0x2862d0=function(_0x4160a3){while(--_0x4160a3){_0x500a4e['push'](_0x500a4e['shift']());}};_0x2862d0(++_0x4d0ce7);}(a893_0x4d0c,0xcc));var a893_0x2862=function(_0x500a4e,_0x4d0ce7){_0x500a4e=_0x500a4e-0x0;var _0x2862d0=a893_0x4d0c[_0x500a4e];return _0x2862d0;};var _0x2317dc=a893_0x2862;'use strict';module[_0x2317dc('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.15.js b/server/migrations/2.0.15.js index 652d8c7..12143c4 100644 --- a/server/migrations/2.0.15.js +++ b/server/migrations/2.0.15.js @@ -1 +1 @@ -var a894_0x537a=['exports'];(function(_0x3c2a91,_0x537a35){var _0x3831b3=function(_0x314713){while(--_0x314713){_0x3c2a91['push'](_0x3c2a91['shift']());}};_0x3831b3(++_0x537a35);}(a894_0x537a,0x138));var a894_0x3831=function(_0x3c2a91,_0x537a35){_0x3c2a91=_0x3c2a91-0x0;var _0x3831b3=a894_0x537a[_0x3c2a91];return _0x3831b3;};var _0x2d7b32=a894_0x3831;'use strict';module[_0x2d7b32('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.16.js b/server/migrations/2.0.16.js index 12143c4..451b733 100644 --- a/server/migrations/2.0.16.js +++ b/server/migrations/2.0.16.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a895_0x19e1=['exports'];(function(_0x1a9cb4,_0x19e1a8){var _0x3f5600=function(_0x13930b){while(--_0x13930b){_0x1a9cb4['push'](_0x1a9cb4['shift']());}};_0x3f5600(++_0x19e1a8);}(a895_0x19e1,0xe2));var a895_0x3f56=function(_0x1a9cb4,_0x19e1a8){_0x1a9cb4=_0x1a9cb4-0x0;var _0x3f5600=a895_0x19e1[_0x1a9cb4];return _0x3f5600;};var _0x12226f=a895_0x3f56;'use strict';module[_0x12226f('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.17.js b/server/migrations/2.0.17.js index e9ab5d5..12143c4 100644 --- a/server/migrations/2.0.17.js +++ b/server/migrations/2.0.17.js @@ -1 +1 @@ -var a896_0x3c9e=['exports'];(function(_0x15d46b,_0x3c9e24){var _0x38fe26=function(_0x41aa93){while(--_0x41aa93){_0x15d46b['push'](_0x15d46b['shift']());}};_0x38fe26(++_0x3c9e24);}(a896_0x3c9e,0xa0));var a896_0x38fe=function(_0x15d46b,_0x3c9e24){_0x15d46b=_0x15d46b-0x0;var _0x38fe26=a896_0x3c9e[_0x15d46b];return _0x38fe26;};var _0xe95781=a896_0x38fe;'use strict';module[_0xe95781('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.18.js b/server/migrations/2.0.18.js index 12143c4..144a9be 100644 --- a/server/migrations/2.0.18.js +++ b/server/migrations/2.0.18.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a897_0x105f=['exports'];(function(_0x452d10,_0x105fe8){var _0x40c587=function(_0x360e0d){while(--_0x360e0d){_0x452d10['push'](_0x452d10['shift']());}};_0x40c587(++_0x105fe8);}(a897_0x105f,0xf2));var a897_0x40c5=function(_0x452d10,_0x105fe8){_0x452d10=_0x452d10-0x0;var _0x40c587=a897_0x105f[_0x452d10];return _0x40c587;};var _0x45d19a=a897_0x40c5;'use strict';module[_0x45d19a('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.19.js b/server/migrations/2.0.19.js index df1a9af..0adbe9d 100644 --- a/server/migrations/2.0.19.js +++ b/server/migrations/2.0.19.js @@ -1 +1 @@ -var a898_0xa2b0=['exports'];(function(_0x56c078,_0xa2b0db){var _0x127c4e=function(_0x26f418){while(--_0x26f418){_0x56c078['push'](_0x56c078['shift']());}};_0x127c4e(++_0xa2b0db);}(a898_0xa2b0,0xea));var a898_0x127c=function(_0x56c078,_0xa2b0db){_0x56c078=_0x56c078-0x0;var _0x127c4e=a898_0xa2b0[_0x56c078];return _0x127c4e;};var _0x9eb176=a898_0x127c;'use strict';module[_0x9eb176('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a898_0x1f82=['exports'];(function(_0x5e0d17,_0x1f82ec){var _0xf4ca37=function(_0x28cf4b){while(--_0x28cf4b){_0x5e0d17['push'](_0x5e0d17['shift']());}};_0xf4ca37(++_0x1f82ec);}(a898_0x1f82,0x87));var a898_0xf4ca=function(_0x5e0d17,_0x1f82ec){_0x5e0d17=_0x5e0d17-0x0;var _0xf4ca37=a898_0x1f82[_0x5e0d17];return _0xf4ca37;};var _0x4a1b5a=a898_0xf4ca;'use strict';module[_0x4a1b5a('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.20.js b/server/migrations/2.0.20.js index abb6c16..aa0bc8b 100644 --- a/server/migrations/2.0.20.js +++ b/server/migrations/2.0.20.js @@ -1 +1 @@ -const a899_0x51d2=['dropTable','stringify','catch','report_jscripty_questions','prototype','migration','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','report_jscripty_sessions','renameColumn','info','Removed\x20column\x20%s\x20from\x20%s','jscripty_projects','addColumn','../config/logger','exports','queryInterface','removeColumn','report_jscripty_inputs'];(function(_0x370fa0,_0x51d246){const _0x3555b8=function(_0xf5d369){while(--_0xf5d369){_0x370fa0['push'](_0x370fa0['shift']());}};_0x3555b8(++_0x51d246);}(a899_0x51d2,0x163));const a899_0x3555=function(_0x370fa0,_0x51d246){_0x370fa0=_0x370fa0-0x0;let _0x3555b8=a899_0x51d2[_0x370fa0];return _0x3555b8;};const _0x3d0a7d=a899_0x3555;'use strict';const logger=require(_0x3d0a7d('0x1'))(_0x3d0a7d('0xb')),Migration=function(_0xf5d369){this['queryInterface']=_0xf5d369;};Migration['prototype'][_0x3d0a7d('0x0')]=function(_0x46c3f1,_0x1beba7,_0x39c74b){const _0x341b8e=_0x3d0a7d;return this[_0x341b8e('0x3')][_0x341b8e('0x0')](_0x46c3f1,_0x1beba7,_0x39c74b)[_0x341b8e('0xc')](function(){const _0x1e8234=_0x341b8e;logger[_0x1e8234('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x1beba7,_0x46c3f1);})[_0x341b8e('0x8')](function(_0x449291){const _0x4223c6=_0x341b8e;logger[_0x4223c6('0x10')](JSON[_0x4223c6('0x7')](_0x449291));});},Migration[_0x3d0a7d('0xa')][_0x3d0a7d('0x4')]=function(_0xc87ae4,_0x51daec){const _0x20c8cf=_0x3d0a7d;return this[_0x20c8cf('0x3')][_0x20c8cf('0x4')](_0xc87ae4,_0x51daec)[_0x20c8cf('0xc')](function(){const _0x2e816b=_0x20c8cf;logger[_0x2e816b('0x10')](_0x2e816b('0x11'),_0x51daec,_0xc87ae4);})[_0x20c8cf('0x8')](function(_0x3e015a){const _0xcb52bb=_0x20c8cf;logger['info'](JSON[_0xcb52bb('0x7')](_0x3e015a));});},Migration[_0x3d0a7d('0xa')]['renameColumn']=function(_0x34f387,_0x24b45b,_0x46a4b9){const _0x2545c7=_0x3d0a7d;return this['queryInterface'][_0x2545c7('0xf')](_0x34f387,_0x24b45b,_0x46a4b9)[_0x2545c7('0xc')](function(){const _0x189649=_0x2545c7;logger[_0x189649('0x10')](_0x189649('0xd'),_0x24b45b,_0x46a4b9,_0x34f387);})['catch'](function(_0x18a9ff){const _0x44661a=_0x2545c7;logger['info'](JSON[_0x44661a('0x7')](_0x18a9ff));});},Migration['prototype'][_0x3d0a7d('0x6')]=function(_0x1b3fb4){const _0x43bc65=_0x3d0a7d;return this[_0x43bc65('0x3')][_0x43bc65('0x6')](_0x1b3fb4)[_0x43bc65('0xc')](function(){const _0x135e42=_0x43bc65;logger[_0x135e42('0x10')]('table\x20dropped\x20%s',_0x1b3fb4);})[_0x43bc65('0x8')](function(_0x31843f){const _0x6e49ce=_0x43bc65;logger['info'](JSON[_0x6e49ce('0x7')](_0x31843f));});},module[_0x3d0a7d('0x2')]={'up':function(_0x276a4b){const _0xa6a862=_0x3d0a7d,_0x33cd67=new Migration(_0x276a4b);_0x33cd67[_0xa6a862('0x6')](_0xa6a862('0x12')),_0x33cd67[_0xa6a862('0x6')](_0xa6a862('0x5')),_0x33cd67[_0xa6a862('0x6')](_0xa6a862('0x9')),_0x33cd67['dropTable'](_0xa6a862('0xe'));},'down':function(){}}; \ No newline at end of file +const a899_0x27f4=['table\x20dropped\x20%s','jscripty_projects','info','Removed\x20column\x20%s\x20from\x20%s','stringify','report_jscripty_questions','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','catch','then','report_jscripty_inputs','queryInterface','renameColumn','dropTable','exports','prototype','report_jscripty_sessions','removeColumn'];(function(_0x3d8189,_0x27f485){const _0x2faa16=function(_0x608473){while(--_0x608473){_0x3d8189['push'](_0x3d8189['shift']());}};_0x2faa16(++_0x27f485);}(a899_0x27f4,0x118));const a899_0x2faa=function(_0x3d8189,_0x27f485){_0x3d8189=_0x3d8189-0x0;let _0x2faa16=a899_0x27f4[_0x3d8189];return _0x2faa16;};const _0x52119f=a899_0x2faa;'use strict';const logger=require('../config/logger')(_0x52119f('0xd')),Migration=function(_0x608473){const _0x799f2e=_0x52119f;this[_0x799f2e('0x11')]=_0x608473;};Migration[_0x52119f('0x2')][_0x52119f('0xb')]=function(_0x24a34a,_0xb96513,_0x29e0b4){const _0x21f86d=_0x52119f;return this['queryInterface'][_0x21f86d('0xb')](_0x24a34a,_0xb96513,_0x29e0b4)[_0x21f86d('0xf')](function(){const _0xd393fa=_0x21f86d;logger[_0xd393fa('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0xb96513,_0x24a34a);})[_0x21f86d('0xe')](function(_0x255ea9){const _0x447902=_0x21f86d;logger[_0x447902('0x7')](JSON[_0x447902('0x9')](_0x255ea9));});},Migration[_0x52119f('0x2')][_0x52119f('0x4')]=function(_0x3b7eb6,_0x2e837a){const _0xd9b4ea=_0x52119f;return this['queryInterface'][_0xd9b4ea('0x4')](_0x3b7eb6,_0x2e837a)[_0xd9b4ea('0xf')](function(){const _0x49f790=_0xd9b4ea;logger[_0x49f790('0x7')](_0x49f790('0x8'),_0x2e837a,_0x3b7eb6);})[_0xd9b4ea('0xe')](function(_0x45295b){const _0x3463de=_0xd9b4ea;logger[_0x3463de('0x7')](JSON['stringify'](_0x45295b));});},Migration[_0x52119f('0x2')][_0x52119f('0x12')]=function(_0x1347b1,_0x401ccd,_0xaa83e0){const _0x1f0da5=_0x52119f;return this['queryInterface']['renameColumn'](_0x1347b1,_0x401ccd,_0xaa83e0)['then'](function(){const _0x89a8f8=a899_0x2faa;logger[_0x89a8f8('0x7')](_0x89a8f8('0xc'),_0x401ccd,_0xaa83e0,_0x1347b1);})[_0x1f0da5('0xe')](function(_0x1b17db){logger['info'](JSON['stringify'](_0x1b17db));});},Migration[_0x52119f('0x2')][_0x52119f('0x0')]=function(_0x22f2cb){const _0x423cf1=_0x52119f;return this[_0x423cf1('0x11')][_0x423cf1('0x0')](_0x22f2cb)[_0x423cf1('0xf')](function(){const _0x32f4af=_0x423cf1;logger[_0x32f4af('0x7')](_0x32f4af('0x5'),_0x22f2cb);})[_0x423cf1('0xe')](function(_0x1a7b13){const _0x498d00=_0x423cf1;logger[_0x498d00('0x7')](JSON[_0x498d00('0x9')](_0x1a7b13));});},module[_0x52119f('0x1')]={'up':function(_0x584852){const _0x373095=_0x52119f,_0x509bf0=new Migration(_0x584852);_0x509bf0[_0x373095('0x0')](_0x373095('0x6')),_0x509bf0[_0x373095('0x0')](_0x373095('0x10')),_0x509bf0[_0x373095('0x0')](_0x373095('0xa')),_0x509bf0[_0x373095('0x0')](_0x373095('0x3'));},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.21.js b/server/migrations/2.0.21.js index 43b0ae9..5a7975d 100644 --- a/server/migrations/2.0.21.js +++ b/server/migrations/2.0.21.js @@ -1 +1 @@ -const a900_0x457b=['Removed\x20column\x20%s\x20from\x20%s','stringify','info','report_jscripty_questions','queryInterface','jscripty_projects','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','prototype','Added\x20column\x20%s\x20to\x20%s','then','report_jscripty_inputs','migration','dropTable','catch','renameColumn','table\x20dropped\x20%s','removeColumn'];(function(_0x5cff32,_0x457b66){const _0x5ca492=function(_0x2cfcda){while(--_0x2cfcda){_0x5cff32['push'](_0x5cff32['shift']());}};_0x5ca492(++_0x457b66);}(a900_0x457b,0x1d8));const a900_0x5ca4=function(_0x5cff32,_0x457b66){_0x5cff32=_0x5cff32-0x0;let _0x5ca492=a900_0x457b[_0x5cff32];return _0x5ca492;};const _0x3b52be=a900_0x5ca4;'use strict';const logger=require('../config/logger')(_0x3b52be('0x8')),Migration=function(_0x2cfcda){const _0xa30141=_0x3b52be;this[_0xa30141('0x0')]=_0x2cfcda;};Migration[_0x3b52be('0x4')][_0x3b52be('0x3')]=function(_0xbd664a,_0x3c3dd4,_0x32cd05){const _0x2b6d72=_0x3b52be;return this[_0x2b6d72('0x0')][_0x2b6d72('0x3')](_0xbd664a,_0x3c3dd4,_0x32cd05)[_0x2b6d72('0x6')](function(){const _0x399a26=_0x2b6d72;logger['info'](_0x399a26('0x5'),_0x3c3dd4,_0xbd664a);})[_0x2b6d72('0xa')](function(_0x3ce6f3){const _0x194a41=_0x2b6d72;logger[_0x194a41('0x10')](JSON['stringify'](_0x3ce6f3));});},Migration['prototype'][_0x3b52be('0xd')]=function(_0x196a77,_0x16cedb){const _0xc177cc=_0x3b52be;return this[_0xc177cc('0x0')][_0xc177cc('0xd')](_0x196a77,_0x16cedb)[_0xc177cc('0x6')](function(){const _0x3eca34=_0xc177cc;logger[_0x3eca34('0x10')](_0x3eca34('0xe'),_0x16cedb,_0x196a77);})[_0xc177cc('0xa')](function(_0x50ca52){const _0x1e67a2=_0xc177cc;logger['info'](JSON[_0x1e67a2('0xf')](_0x50ca52));});},Migration['prototype'][_0x3b52be('0xb')]=function(_0x1ace52,_0x12fb63,_0x3dd5d0){const _0x8cd106=_0x3b52be;return this[_0x8cd106('0x0')][_0x8cd106('0xb')](_0x1ace52,_0x12fb63,_0x3dd5d0)[_0x8cd106('0x6')](function(){const _0x4720fa=_0x8cd106;logger['info'](_0x4720fa('0x2'),_0x12fb63,_0x3dd5d0,_0x1ace52);})[_0x8cd106('0xa')](function(_0x1605b4){const _0x14cd57=_0x8cd106;logger['info'](JSON[_0x14cd57('0xf')](_0x1605b4));});},Migration[_0x3b52be('0x4')][_0x3b52be('0x9')]=function(_0x20aac5){const _0x17759d=_0x3b52be;return this[_0x17759d('0x0')][_0x17759d('0x9')](_0x20aac5)[_0x17759d('0x6')](function(){const _0xffd695=_0x17759d;logger[_0xffd695('0x10')](_0xffd695('0xc'),_0x20aac5);})[_0x17759d('0xa')](function(_0x23da36){const _0x40be36=_0x17759d;logger[_0x40be36('0x10')](JSON[_0x40be36('0xf')](_0x23da36));});},module['exports']={'up':function(_0x308cd7){const _0x3388d0=_0x3b52be,_0x331cbd=new Migration(_0x308cd7);_0x331cbd['dropTable'](_0x3388d0('0x1'),{'force':!![]}),_0x331cbd[_0x3388d0('0x9')](_0x3388d0('0x7'),{'force':!![]}),_0x331cbd[_0x3388d0('0x9')](_0x3388d0('0x11'),{'force':!![]}),_0x331cbd[_0x3388d0('0x9')]('report_jscripty_sessions',{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a900_0x1b37=['report_jscripty_sessions','report_jscripty_questions','migration','queryInterface','dropTable','Added\x20column\x20%s\x20to\x20%s','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','renameColumn','report_jscripty_inputs','../config/logger','then','prototype','stringify','Removed\x20column\x20%s\x20from\x20%s','removeColumn','catch'];(function(_0x384b79,_0x1b37b7){const _0x40d04d=function(_0x5babff){while(--_0x5babff){_0x384b79['push'](_0x384b79['shift']());}};_0x40d04d(++_0x1b37b7);}(a900_0x1b37,0x19b));const a900_0x40d0=function(_0x384b79,_0x1b37b7){_0x384b79=_0x384b79-0x0;let _0x40d04d=a900_0x1b37[_0x384b79];return _0x40d04d;};const _0x4f3846=a900_0x40d0;'use strict';const logger=require(_0x4f3846('0xe'))(_0x4f3846('0x5')),Migration=function(_0x5babff){this['queryInterface']=_0x5babff;};Migration[_0x4f3846('0x10')]['addColumn']=function(_0x52c1d3,_0x12d973,_0x472be1){const _0x2d25cf=_0x4f3846;return this[_0x2d25cf('0x6')][_0x2d25cf('0x9')](_0x52c1d3,_0x12d973,_0x472be1)['then'](function(){const _0x48d836=_0x2d25cf;logger['info'](_0x48d836('0x8'),_0x12d973,_0x52c1d3);})[_0x2d25cf('0x2')](function(_0x45f0f4){const _0x2323dc=_0x2d25cf;logger[_0x2323dc('0xb')](JSON[_0x2323dc('0x11')](_0x45f0f4));});},Migration[_0x4f3846('0x10')][_0x4f3846('0x1')]=function(_0x143cf6,_0x5c06f1){const _0x22cd7f=_0x4f3846;return this[_0x22cd7f('0x6')][_0x22cd7f('0x1')](_0x143cf6,_0x5c06f1)[_0x22cd7f('0xf')](function(){const _0x1fecd6=_0x22cd7f;logger['info'](_0x1fecd6('0x0'),_0x5c06f1,_0x143cf6);})['catch'](function(_0x29b52d){const _0x42e066=_0x22cd7f;logger[_0x42e066('0xb')](JSON[_0x42e066('0x11')](_0x29b52d));});},Migration[_0x4f3846('0x10')]['renameColumn']=function(_0x210884,_0x1ec555,_0x18578f){const _0x336fc4=_0x4f3846;return this[_0x336fc4('0x6')][_0x336fc4('0xc')](_0x210884,_0x1ec555,_0x18578f)[_0x336fc4('0xf')](function(){const _0x170785=_0x336fc4;logger[_0x170785('0xb')](_0x170785('0xa'),_0x1ec555,_0x18578f,_0x210884);})[_0x336fc4('0x2')](function(_0xf48027){logger['info'](JSON['stringify'](_0xf48027));});},Migration['prototype'][_0x4f3846('0x7')]=function(_0x35d4d5){const _0x27a4aa=_0x4f3846;return this[_0x27a4aa('0x6')]['dropTable'](_0x35d4d5)[_0x27a4aa('0xf')](function(){const _0x3a2acf=_0x27a4aa;logger[_0x3a2acf('0xb')]('table\x20dropped\x20%s',_0x35d4d5);})[_0x27a4aa('0x2')](function(_0x4aed75){const _0x4450e2=_0x27a4aa;logger['info'](JSON[_0x4450e2('0x11')](_0x4aed75));});},module['exports']={'up':function(_0x2abaa9){const _0x6b2a2=_0x4f3846,_0x594b5f=new Migration(_0x2abaa9);_0x594b5f[_0x6b2a2('0x7')]('jscripty_projects',{'force':!![]}),_0x594b5f[_0x6b2a2('0x7')](_0x6b2a2('0xd'),{'force':!![]}),_0x594b5f[_0x6b2a2('0x7')](_0x6b2a2('0x4'),{'force':!![]}),_0x594b5f['dropTable'](_0x6b2a2('0x3'),{'force':!![]});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.22.js b/server/migrations/2.0.22.js index 576cb2d..b6ad3ed 100644 --- a/server/migrations/2.0.22.js +++ b/server/migrations/2.0.22.js @@ -1 +1 @@ -const a901_0x44b3=['catch','Added\x20column\x20%s\x20to\x20%s','info','../config/logger','dropTable','removeColumn','then','stringify','queryInterface','addColumn','report_jscripty_questions','report_jscripty_sessions','migration','renameColumn','exports','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','report_jscripty_answers','table\x20dropped\x20%s'];(function(_0x37c103,_0x44b36a){const _0x5eaa36=function(_0x403db0){while(--_0x403db0){_0x37c103['push'](_0x37c103['shift']());}};_0x5eaa36(++_0x44b36a);}(a901_0x44b3,0xcc));const a901_0x5eaa=function(_0x37c103,_0x44b36a){_0x37c103=_0x37c103-0x0;let _0x5eaa36=a901_0x44b3[_0x37c103];return _0x5eaa36;};const _0x1f52fd=a901_0x5eaa;'use strict';const logger=require(_0x1f52fd('0x8'))(_0x1f52fd('0x11')),Migration=function(_0x403db0){const _0x338247=_0x1f52fd;this[_0x338247('0xd')]=_0x403db0;};Migration['prototype'][_0x1f52fd('0xe')]=function(_0xb53701,_0x40e131,_0x4926e2){const _0x28135e=_0x1f52fd;return this[_0x28135e('0xd')][_0x28135e('0xe')](_0xb53701,_0x40e131,_0x4926e2)[_0x28135e('0xb')](function(){const _0x121eb0=_0x28135e;logger[_0x121eb0('0x7')](_0x121eb0('0x6'),_0x40e131,_0xb53701);})[_0x28135e('0x5')](function(_0x437c48){const _0x208863=_0x28135e;logger[_0x208863('0x7')](JSON[_0x208863('0xc')](_0x437c48));});},Migration['prototype'][_0x1f52fd('0xa')]=function(_0x127735,_0x3009df){const _0x4acad4=_0x1f52fd;return this['queryInterface']['removeColumn'](_0x127735,_0x3009df)[_0x4acad4('0xb')](function(){const _0x278b81=_0x4acad4;logger[_0x278b81('0x7')]('Removed\x20column\x20%s\x20from\x20%s',_0x3009df,_0x127735);})['catch'](function(_0xdf3c3b){const _0x3eb8ec=_0x4acad4;logger[_0x3eb8ec('0x7')](JSON[_0x3eb8ec('0xc')](_0xdf3c3b));});},Migration[_0x1f52fd('0x1')]['renameColumn']=function(_0xb5b19c,_0x170d2a,_0x2f0bac){const _0x573078=_0x1f52fd;return this['queryInterface'][_0x573078('0x12')](_0xb5b19c,_0x170d2a,_0x2f0bac)['then'](function(){const _0x206f22=_0x573078;logger[_0x206f22('0x7')](_0x206f22('0x2'),_0x170d2a,_0x2f0bac,_0xb5b19c);})[_0x573078('0x5')](function(_0x3a6ef9){const _0x586a08=_0x573078;logger[_0x586a08('0x7')](JSON[_0x586a08('0xc')](_0x3a6ef9));});},Migration['prototype'][_0x1f52fd('0x9')]=function(_0x3dfe67){const _0x4f6e5a=_0x1f52fd;return this[_0x4f6e5a('0xd')][_0x4f6e5a('0x9')](_0x3dfe67)[_0x4f6e5a('0xb')](function(){const _0x250a76=_0x4f6e5a;logger[_0x250a76('0x7')](_0x250a76('0x4'),_0x3dfe67);})[_0x4f6e5a('0x5')](function(_0x2f2293){const _0x422d7f=_0x4f6e5a;logger[_0x422d7f('0x7')](JSON[_0x422d7f('0xc')](_0x2f2293));});},module[_0x1f52fd('0x0')]={'up':function(_0x5e85cc){const _0x52d0bd=_0x1f52fd,_0x560310=new Migration(_0x5e85cc);_0x560310['dropTable'](_0x52d0bd('0x3'),{'force':!![]}),_0x560310['dropTable'](_0x52d0bd('0xf'),{'force':!![]}),_0x560310[_0x52d0bd('0x9')](_0x52d0bd('0x10'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a901_0x2c40=['report_jscripty_sessions','queryInterface','Removed\x20column\x20%s\x20from\x20%s','renameColumn','info','removeColumn','report_jscripty_questions','stringify','prototype','dropTable','addColumn','Added\x20column\x20%s\x20to\x20%s','report_jscripty_answers','table\x20dropped\x20%s','then','exports','catch'];(function(_0x47e376,_0x2c40e3){const _0x1bf5ae=function(_0x1dd897){while(--_0x1dd897){_0x47e376['push'](_0x47e376['shift']());}};_0x1bf5ae(++_0x2c40e3);}(a901_0x2c40,0x193));const a901_0x1bf5=function(_0x47e376,_0x2c40e3){_0x47e376=_0x47e376-0x0;let _0x1bf5ae=a901_0x2c40[_0x47e376];return _0x1bf5ae;};const _0x424a53=a901_0x1bf5;'use strict';const logger=require('../config/logger')('migration'),Migration=function(_0x1dd897){const _0x176a65=a901_0x1bf5;this[_0x176a65('0x6')]=_0x1dd897;};Migration[_0x424a53('0xd')][_0x424a53('0xf')]=function(_0x5dd599,_0x2ff99d,_0x555ffc){const _0x2c9468=_0x424a53;return this[_0x2c9468('0x6')][_0x2c9468('0xf')](_0x5dd599,_0x2ff99d,_0x555ffc)['then'](function(){const _0x54feb9=_0x2c9468;logger[_0x54feb9('0x9')](_0x54feb9('0x10'),_0x2ff99d,_0x5dd599);})['catch'](function(_0xd9540e){const _0x218d5c=_0x2c9468;logger[_0x218d5c('0x9')](JSON[_0x218d5c('0xc')](_0xd9540e));});},Migration[_0x424a53('0xd')][_0x424a53('0xa')]=function(_0x26f71a,_0x430364){const _0x5d6682=_0x424a53;return this[_0x5d6682('0x6')]['removeColumn'](_0x26f71a,_0x430364)[_0x5d6682('0x2')](function(){const _0x580130=_0x5d6682;logger[_0x580130('0x9')](_0x580130('0x7'),_0x430364,_0x26f71a);})[_0x5d6682('0x4')](function(_0x51040f){const _0xe00170=_0x5d6682;logger[_0xe00170('0x9')](JSON['stringify'](_0x51040f));});},Migration[_0x424a53('0xd')][_0x424a53('0x8')]=function(_0x13b872,_0x49d5c5,_0x3b37e0){const _0x1cedca=_0x424a53;return this[_0x1cedca('0x6')][_0x1cedca('0x8')](_0x13b872,_0x49d5c5,_0x3b37e0)[_0x1cedca('0x2')](function(){const _0x39d47b=_0x1cedca;logger[_0x39d47b('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x49d5c5,_0x3b37e0,_0x13b872);})[_0x1cedca('0x4')](function(_0x3811e1){const _0x3123f6=_0x1cedca;logger['info'](JSON[_0x3123f6('0xc')](_0x3811e1));});},Migration['prototype']['dropTable']=function(_0x474a02){const _0x40ef1b=_0x424a53;return this[_0x40ef1b('0x6')][_0x40ef1b('0xe')](_0x474a02)[_0x40ef1b('0x2')](function(){const _0x28386a=_0x40ef1b;logger[_0x28386a('0x9')](_0x28386a('0x1'),_0x474a02);})['catch'](function(_0x4cd7e1){const _0x20007b=_0x40ef1b;logger[_0x20007b('0x9')](JSON[_0x20007b('0xc')](_0x4cd7e1));});},module[_0x424a53('0x3')]={'up':function(_0x591264){const _0x148bde=_0x424a53,_0x471c79=new Migration(_0x591264);_0x471c79[_0x148bde('0xe')](_0x148bde('0x0'),{'force':!![]}),_0x471c79['dropTable'](_0x148bde('0xb'),{'force':!![]}),_0x471c79[_0x148bde('0xe')](_0x148bde('0x5'),{'force':!![]});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.23.js b/server/migrations/2.0.23.js index 973f0b4..b7e8efe 100644 --- a/server/migrations/2.0.23.js +++ b/server/migrations/2.0.23.js @@ -1 +1 @@ -const a902_0x1a7a=['removeColumn','info','Removed\x20column\x20%s\x20from\x20%s','stringify','addColumn','../config/logger','ENUM','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','type','openchannel_accounts','newTab','migration','catch','exports','renameColumn','int_salesforce_accounts','table\x20dropped\x20%s','openchannel_rooms','int_zendesk_accounts','queryInterface','integrationTab','openchannel_messages','prototype','then'];(function(_0x196741,_0x1a7a15){const _0x9f6a6b=function(_0x7fc4e8){while(--_0x7fc4e8){_0x196741['push'](_0x196741['shift']());}};_0x9f6a6b(++_0x1a7a15);}(a902_0x1a7a,0x153));const a902_0x9f6a=function(_0x196741,_0x1a7a15){_0x196741=_0x196741-0x0;let _0x9f6a6b=a902_0x1a7a[_0x196741];return _0x9f6a6b;};const _0x2db5b4=a902_0x9f6a;'use strict';const logger=require(_0x2db5b4('0x10'))(_0x2db5b4('0x17')),Migration=function(_0x7fc4e8){this['queryInterface']=_0x7fc4e8;};Migration[_0x2db5b4('0x9')]['addColumn']=function(_0x2162ba,_0x4276b4,_0x374035){const _0x3dfe67=_0x2db5b4;return this[_0x3dfe67('0x6')][_0x3dfe67('0xf')](_0x2162ba,_0x4276b4,_0x374035)[_0x3dfe67('0xa')](function(){const _0x9e5b04=_0x3dfe67;logger[_0x9e5b04('0xc')]('Added\x20column\x20%s\x20to\x20%s',_0x4276b4,_0x2162ba);})[_0x3dfe67('0x18')](function(_0x5e43f5){const _0x1bccc8=_0x3dfe67;logger[_0x1bccc8('0xc')](JSON[_0x1bccc8('0xe')](_0x5e43f5));});},Migration[_0x2db5b4('0x9')]['removeColumn']=function(_0x3ec454,_0x250cdf){const _0x2437ba=_0x2db5b4;return this[_0x2437ba('0x6')]['removeColumn'](_0x3ec454,_0x250cdf)[_0x2437ba('0xa')](function(){const _0x38d3c7=_0x2437ba;logger[_0x38d3c7('0xc')](_0x38d3c7('0xd'),_0x250cdf,_0x3ec454);})[_0x2437ba('0x18')](function(_0x3afb0d){const _0xa392a8=_0x2437ba;logger[_0xa392a8('0xc')](JSON['stringify'](_0x3afb0d));});},Migration['prototype'][_0x2db5b4('0x1')]=function(_0x4c0414,_0x105703,_0x212e68){const _0x587c19=_0x2db5b4;return this[_0x587c19('0x6')][_0x587c19('0x1')](_0x4c0414,_0x105703,_0x212e68)[_0x587c19('0xa')](function(){const _0x348c71=_0x587c19;logger[_0x348c71('0xc')](_0x348c71('0x13'),_0x105703,_0x212e68,_0x4c0414);})[_0x587c19('0x18')](function(_0x3619ca){const _0x4bd5e7=_0x587c19;logger[_0x4bd5e7('0xc')](JSON[_0x4bd5e7('0xe')](_0x3619ca));});},Migration[_0x2db5b4('0x9')][_0x2db5b4('0x12')]=function(_0xd87344){const _0x57853f=_0x2db5b4;return this['queryInterface'][_0x57853f('0x12')](_0xd87344)[_0x57853f('0xa')](function(){const _0x7d7543=_0x57853f;logger[_0x7d7543('0xc')](_0x7d7543('0x3'),_0xd87344);})[_0x57853f('0x18')](function(_0x177634){const _0x32271e=_0x57853f;logger[_0x32271e('0xc')](JSON[_0x32271e('0xe')](_0x177634));});},module[_0x2db5b4('0x0')]={'up':function(_0x282cbc,_0x4ad075){const _0x3695b6=_0x2db5b4,_0x2038e4=new Migration(_0x282cbc);_0x2038e4['addColumn'](_0x3695b6('0x2'),'type',{'type':_0x4ad075[_0x3695b6('0x11')](_0x3695b6('0x7'),_0x3695b6('0x16')),'defaultValue':_0x3695b6('0x7')}),_0x2038e4[_0x3695b6('0xf')](_0x3695b6('0x5'),_0x3695b6('0x14'),{'type':_0x4ad075[_0x3695b6('0x11')]('integrationTab',_0x3695b6('0x16')),'defaultValue':_0x3695b6('0x7')}),_0x2038e4[_0x3695b6('0x12')]('user_has_openchannel_rooms',{'force':!![]}),_0x2038e4[_0x3695b6('0x12')](_0x3695b6('0x8'),{'force':!![]}),_0x2038e4[_0x3695b6('0x12')](_0x3695b6('0x4'),{'force':!![]}),_0x2038e4[_0x3695b6('0x12')]('openchannel_applications',{'force':!![]}),_0x2038e4[_0x3695b6('0x12')](_0x3695b6('0x15'),{'force':!![]});},'down':function(_0x51378c){const _0x4b4f4a=_0x2db5b4,_0x389807=new Migration(_0x51378c);_0x389807[_0x4b4f4a('0xb')]('int_salesforce_accounts','type'),_0x389807[_0x4b4f4a('0xb')]('int_zendesk_accounts',_0x4b4f4a('0x14'));}}; \ No newline at end of file +const a902_0x24bd=['stringify','newTab','info','then','openchannel_accounts','../config/logger','renameColumn','type','removeColumn','openchannel_messages','catch','prototype','user_has_openchannel_rooms','dropTable','table\x20dropped\x20%s','exports','addColumn','queryInterface','integrationTab','int_salesforce_accounts','int_zendesk_accounts','ENUM','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x328ea6,_0x24bdb0){const _0x1a77ce=function(_0x14beb5){while(--_0x14beb5){_0x328ea6['push'](_0x328ea6['shift']());}};_0x1a77ce(++_0x24bdb0);}(a902_0x24bd,0x17d));const a902_0x1a77=function(_0x328ea6,_0x24bdb0){_0x328ea6=_0x328ea6-0x0;let _0x1a77ce=a902_0x24bd[_0x328ea6];return _0x1a77ce;};const _0x51c62e=a902_0x1a77;'use strict';const logger=require(_0x51c62e('0xf'))('migration'),Migration=function(_0x14beb5){this['queryInterface']=_0x14beb5;};Migration[_0x51c62e('0x15')][_0x51c62e('0x3')]=function(_0x539bf7,_0x5a1bc1,_0xb8a5f6){const _0x48b1f5=_0x51c62e;return this[_0x48b1f5('0x4')][_0x48b1f5('0x3')](_0x539bf7,_0x5a1bc1,_0xb8a5f6)[_0x48b1f5('0xd')](function(){const _0x25c8ad=_0x48b1f5;logger[_0x25c8ad('0xc')]('Added\x20column\x20%s\x20to\x20%s',_0x5a1bc1,_0x539bf7);})[_0x48b1f5('0x14')](function(_0x1a3d30){logger['info'](JSON['stringify'](_0x1a3d30));});},Migration['prototype'][_0x51c62e('0x12')]=function(_0x4d8859,_0x58d80e){const _0x27664f=_0x51c62e;return this[_0x27664f('0x4')][_0x27664f('0x12')](_0x4d8859,_0x58d80e)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x58d80e,_0x4d8859);})[_0x27664f('0x14')](function(_0x696e02){const _0x5d0d8b=_0x27664f;logger[_0x5d0d8b('0xc')](JSON[_0x5d0d8b('0xa')](_0x696e02));});},Migration['prototype'][_0x51c62e('0x10')]=function(_0x305b01,_0x328dc5,_0x35a693){const _0x57cb83=_0x51c62e;return this[_0x57cb83('0x4')][_0x57cb83('0x10')](_0x305b01,_0x328dc5,_0x35a693)[_0x57cb83('0xd')](function(){const _0x55f0f7=_0x57cb83;logger[_0x55f0f7('0xc')](_0x55f0f7('0x9'),_0x328dc5,_0x35a693,_0x305b01);})[_0x57cb83('0x14')](function(_0x3de1ed){const _0xe5916b=_0x57cb83;logger[_0xe5916b('0xc')](JSON[_0xe5916b('0xa')](_0x3de1ed));});},Migration[_0x51c62e('0x15')][_0x51c62e('0x0')]=function(_0x29f8e5){const _0x93e6e7=_0x51c62e;return this[_0x93e6e7('0x4')]['dropTable'](_0x29f8e5)[_0x93e6e7('0xd')](function(){const _0x23521c=_0x93e6e7;logger[_0x23521c('0xc')](_0x23521c('0x1'),_0x29f8e5);})[_0x93e6e7('0x14')](function(_0x47db92){logger['info'](JSON['stringify'](_0x47db92));});},module[_0x51c62e('0x2')]={'up':function(_0x3b9c45,_0x2405d4){const _0x19e262=_0x51c62e,_0x3ecfc5=new Migration(_0x3b9c45);_0x3ecfc5[_0x19e262('0x3')](_0x19e262('0x6'),_0x19e262('0x11'),{'type':_0x2405d4[_0x19e262('0x8')](_0x19e262('0x5'),_0x19e262('0xb')),'defaultValue':_0x19e262('0x5')}),_0x3ecfc5['addColumn'](_0x19e262('0x7'),_0x19e262('0x11'),{'type':_0x2405d4[_0x19e262('0x8')](_0x19e262('0x5'),_0x19e262('0xb')),'defaultValue':'integrationTab'}),_0x3ecfc5[_0x19e262('0x0')](_0x19e262('0x16'),{'force':!![]}),_0x3ecfc5['dropTable'](_0x19e262('0x13'),{'force':!![]}),_0x3ecfc5[_0x19e262('0x0')]('openchannel_rooms',{'force':!![]}),_0x3ecfc5[_0x19e262('0x0')]('openchannel_applications',{'force':!![]}),_0x3ecfc5[_0x19e262('0x0')](_0x19e262('0xe'),{'force':!![]});},'down':function(_0x1b7d7e){const _0x25c97c=_0x51c62e,_0x51daf4=new Migration(_0x1b7d7e);_0x51daf4[_0x25c97c('0x12')](_0x25c97c('0x6'),_0x25c97c('0x11')),_0x51daf4[_0x25c97c('0x12')]('int_zendesk_accounts',_0x25c97c('0x11'));}}; \ No newline at end of file diff --git a/server/migrations/2.0.24.js b/server/migrations/2.0.24.js index 6738c58..8938419 100644 --- a/server/migrations/2.0.24.js +++ b/server/migrations/2.0.24.js @@ -1 +1 @@ -const a903_0xbd18=['dropTable','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','../config/logger','removeColumn','renameColumn','then','exports','migration','queryInterface','info','stringify','tools_schedules','prototype','addColumn','catch'];(function(_0x12ce31,_0xbd183f){const _0x2c4e4b=function(_0xab7bf9){while(--_0xab7bf9){_0x12ce31['push'](_0x12ce31['shift']());}};_0x2c4e4b(++_0xbd183f);}(a903_0xbd18,0x1f0));const a903_0x2c4e=function(_0x12ce31,_0xbd183f){_0x12ce31=_0x12ce31-0x0;let _0x2c4e4b=a903_0xbd18[_0x12ce31];return _0x2c4e4b;};const _0x4b3a2f=a903_0x2c4e;'use strict';const logger=require(_0x4b3a2f('0x3'))(_0x4b3a2f('0x8')),Migration=function(_0xab7bf9){this['queryInterface']=_0xab7bf9;};Migration[_0x4b3a2f('0xd')][_0x4b3a2f('0xe')]=function(_0x2f691b,_0x96707e,_0x23d1f0){const _0x22b6eb=_0x4b3a2f;return this['queryInterface'][_0x22b6eb('0xe')](_0x2f691b,_0x96707e,_0x23d1f0)[_0x22b6eb('0x6')](function(){const _0x1ff176=_0x22b6eb;logger[_0x1ff176('0xa')]('Added\x20column\x20%s\x20to\x20%s',_0x96707e,_0x2f691b);})[_0x22b6eb('0xf')](function(_0x41fb69){const _0x472f32=_0x22b6eb;logger[_0x472f32('0xa')](JSON['stringify'](_0x41fb69));});},Migration['prototype'][_0x4b3a2f('0x4')]=function(_0x3e7a25,_0xfee705){const _0x330a83=_0x4b3a2f;return this[_0x330a83('0x9')][_0x330a83('0x4')](_0x3e7a25,_0xfee705)[_0x330a83('0x6')](function(){const _0x2be299=_0x330a83;logger[_0x2be299('0xa')](_0x2be299('0x2'),_0xfee705,_0x3e7a25);})[_0x330a83('0xf')](function(_0xb78ba2){const _0x5184e8=_0x330a83;logger[_0x5184e8('0xa')](JSON[_0x5184e8('0xb')](_0xb78ba2));});},Migration[_0x4b3a2f('0xd')][_0x4b3a2f('0x5')]=function(_0x5ccced,_0x53b3e1,_0x3584b4){const _0x37e879=_0x4b3a2f;return this['queryInterface'][_0x37e879('0x5')](_0x5ccced,_0x53b3e1,_0x3584b4)[_0x37e879('0x6')](function(){const _0x2921bf=_0x37e879;logger[_0x2921bf('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x53b3e1,_0x3584b4,_0x5ccced);})[_0x37e879('0xf')](function(_0xb29751){const _0x4f36e4=_0x37e879;logger['info'](JSON[_0x4f36e4('0xb')](_0xb29751));});},Migration[_0x4b3a2f('0xd')][_0x4b3a2f('0x0')]=function(_0x35c8d8){const _0x1ab564=_0x4b3a2f;return this[_0x1ab564('0x9')]['dropTable'](_0x35c8d8)[_0x1ab564('0x6')](function(){const _0x9651c5=_0x1ab564;logger[_0x9651c5('0xa')](_0x9651c5('0x1'),_0x35c8d8);})[_0x1ab564('0xf')](function(_0x5935f2){const _0x45b7db=_0x1ab564;logger['info'](JSON[_0x45b7db('0xb')](_0x5935f2));});},module[_0x4b3a2f('0x7')]={'up':function(_0x23a942){const _0x30aa47=_0x4b3a2f,_0x89b44b=new Migration(_0x23a942);_0x89b44b['dropTable'](_0x30aa47('0xc'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a903_0x2b5e=['dropTable','removeColumn','addColumn','exports','tools_schedules','../config/logger','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','renameColumn','info','then','table\x20dropped\x20%s','prototype','catch','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface'];(function(_0x49599e,_0x2b5eb3){const _0x221204=function(_0x5d1bae){while(--_0x5d1bae){_0x49599e['push'](_0x49599e['shift']());}};_0x221204(++_0x2b5eb3);}(a903_0x2b5e,0x1d7));const a903_0x2212=function(_0x49599e,_0x2b5eb3){_0x49599e=_0x49599e-0x0;let _0x221204=a903_0x2b5e[_0x49599e];return _0x221204;};const _0x418dd1=a903_0x2212;'use strict';const logger=require(_0x418dd1('0xa'))('migration'),Migration=function(_0x5d1bae){const _0x950ef7=_0x418dd1;this[_0x950ef7('0x4')]=_0x5d1bae;};Migration[_0x418dd1('0x0')][_0x418dd1('0x7')]=function(_0x10e0aa,_0x3e9aac,_0xf2a39b){return this['queryInterface']['addColumn'](_0x10e0aa,_0x3e9aac,_0xf2a39b)['then'](function(){const _0x50252a=a903_0x2212;logger[_0x50252a('0xe')](_0x50252a('0xc'),_0x3e9aac,_0x10e0aa);})['catch'](function(_0x8ba611){const _0xaf4121=a903_0x2212;logger['info'](JSON[_0xaf4121('0x2')](_0x8ba611));});},Migration['prototype'][_0x418dd1('0x6')]=function(_0x9c6c3c,_0xb1498f){const _0x4267c7=_0x418dd1;return this[_0x4267c7('0x4')][_0x4267c7('0x6')](_0x9c6c3c,_0xb1498f)[_0x4267c7('0xf')](function(){const _0x28cee5=_0x4267c7;logger[_0x28cee5('0xe')](_0x28cee5('0xb'),_0xb1498f,_0x9c6c3c);})['catch'](function(_0x20253e){const _0x5eadb5=_0x4267c7;logger[_0x5eadb5('0xe')](JSON[_0x5eadb5('0x2')](_0x20253e));});},Migration['prototype'][_0x418dd1('0xd')]=function(_0xe31b91,_0x10836d,_0x49a158){const _0x20ea00=_0x418dd1;return this[_0x20ea00('0x4')][_0x20ea00('0xd')](_0xe31b91,_0x10836d,_0x49a158)[_0x20ea00('0xf')](function(){const _0x243a32=_0x20ea00;logger[_0x243a32('0xe')](_0x243a32('0x3'),_0x10836d,_0x49a158,_0xe31b91);})[_0x20ea00('0x1')](function(_0x234caf){const _0x1a9dc9=_0x20ea00;logger[_0x1a9dc9('0xe')](JSON[_0x1a9dc9('0x2')](_0x234caf));});},Migration['prototype'][_0x418dd1('0x5')]=function(_0x544dfa){const _0x8ae2e=_0x418dd1;return this[_0x8ae2e('0x4')]['dropTable'](_0x544dfa)[_0x8ae2e('0xf')](function(){const _0x202154=_0x8ae2e;logger[_0x202154('0xe')](_0x202154('0x10'),_0x544dfa);})['catch'](function(_0x4dd5cb){const _0x52b5ce=_0x8ae2e;logger['info'](JSON[_0x52b5ce('0x2')](_0x4dd5cb));});},module[_0x418dd1('0x8')]={'up':function(_0x1c69d7){const _0x189e35=_0x418dd1,_0x2007d8=new Migration(_0x1c69d7);_0x2007d8[_0x189e35('0x5')](_0x189e35('0x9'),{'force':!![]});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.25.js b/server/migrations/2.0.25.js index 1f22fe2..12259f7 100644 --- a/server/migrations/2.0.25.js +++ b/server/migrations/2.0.25.js @@ -1 +1 @@ -const a904_0x4015=['INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x272\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());','prototype','voice_queues','util','changeColumn','../config/logger','catch','migration','STRING','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());','queryInterface','allow','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','info','sequelize','insertExtension','inspect','addColumn','then','Added\x20column\x20%s\x20to\x20%s'];(function(_0x3c9a04,_0x401512){const _0x280538=function(_0x46d66f){while(--_0x46d66f){_0x3c9a04['push'](_0x3c9a04['shift']());}};_0x280538(++_0x401512);}(a904_0x4015,0xd9));const a904_0x2805=function(_0x3c9a04,_0x401512){_0x3c9a04=_0x3c9a04-0x0;let _0x280538=a904_0x4015[_0x3c9a04];return _0x280538;};const _0x7fbcca=a904_0x2805;'use strict';const logger=require(_0x7fbcca('0x13'))(_0x7fbcca('0x0')),util=require(_0x7fbcca('0x11')),Migration=function(_0x46d66f){this['queryInterface']=_0x46d66f;};Migration[_0x7fbcca('0xf')][_0x7fbcca('0x9')]=function(_0x32dd48){const _0x45ae9e=_0x7fbcca;return this[_0x45ae9e('0x3')][_0x45ae9e('0x8')]['query'](_0x32dd48)['then'](function(){const _0x10549c=_0x45ae9e;logger[_0x10549c('0x7')]('Insert\x20new\x20row\x20in\x20voice_extensions');})[_0x45ae9e('0x14')](function(_0x1e731c){const _0x250aef=_0x45ae9e;logger[_0x250aef('0x7')](util[_0x250aef('0xa')](_0x1e731c,{'showHidden':![],'depth':null}));});},Migration['prototype']['changeColumn']=function(_0x42ae64,_0x540ca0,_0x2c00a0){const _0x31b491=_0x7fbcca;return this[_0x31b491('0x3')][_0x31b491('0x12')](_0x42ae64,_0x540ca0,_0x2c00a0)[_0x31b491('0xc')](function(){const _0x2f660c=_0x31b491;logger[_0x2f660c('0x7')](_0x2f660c('0x5'),_0x540ca0,_0x42ae64);})[_0x31b491('0x14')](function(_0x384917){const _0x5d17a6=_0x31b491;logger[_0x5d17a6('0x7')](util[_0x5d17a6('0xa')](_0x384917,{'showHidden':![],'depth':null}));});},Migration['prototype'][_0x7fbcca('0xb')]=function(_0x2e3071,_0x178fbd,_0x215572){const _0x3f859e=_0x7fbcca;return this[_0x3f859e('0x3')]['addColumn'](_0x2e3071,_0x178fbd,_0x215572)[_0x3f859e('0xc')](function(){const _0x1b3dbc=_0x3f859e;logger[_0x1b3dbc('0x7')](_0x1b3dbc('0xd'),_0x178fbd,_0x2e3071);})[_0x3f859e('0x14')](function(_0x31df75){const _0x283bb6=_0x3f859e;logger['info'](JSON[_0x283bb6('0x6')](_0x31df75));});},module['exports']={'up':function(_0x325f13,_0x34f3b){const _0x508916=_0x7fbcca,_0x3da73e=new Migration(_0x325f13);_0x3da73e['insertExtension'](_0x508916('0x2')),_0x3da73e[_0x508916('0x9')](_0x508916('0xe')),_0x3da73e[_0x508916('0x12')]('users',_0x508916('0x4'),{'type':_0x34f3b['STRING'],'defaultValue':'ulaw;gsm'}),_0x3da73e['changeColumn']('tools_trunks',_0x508916('0x4'),{'type':_0x34f3b[_0x508916('0x1')],'defaultValue':'ulaw;gsm;alaw'}),_0x3da73e[_0x508916('0xb')](_0x508916('0x10'),'dialPrefix',{'type':_0x34f3b[_0x508916('0x1')],'defaultValue':null});},'down':function(){}}; \ No newline at end of file +const a904_0x5aea=['STRING','Added\x20column\x20%s\x20to\x20%s','../config/logger','then','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x272\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());','query','sequelize','ulaw;gsm;alaw','queryInterface','addColumn','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());','changeColumn','tools_trunks','catch','util','voice_queues','dialPrefix','users','insertExtension','allow','info','Insert\x20new\x20row\x20in\x20voice_extensions'];(function(_0x1b46d1,_0x5aea5c){const _0x2e8d88=function(_0x24c44e){while(--_0x24c44e){_0x1b46d1['push'](_0x1b46d1['shift']());}};_0x2e8d88(++_0x5aea5c);}(a904_0x5aea,0xef));const a904_0x2e8d=function(_0x1b46d1,_0x5aea5c){_0x1b46d1=_0x1b46d1-0x0;let _0x2e8d88=a904_0x5aea[_0x1b46d1];return _0x2e8d88;};const _0x2f1579=a904_0x2e8d;'use strict';const logger=require(_0x2f1579('0xd'))('migration'),util=require(_0x2f1579('0x3')),Migration=function(_0x24c44e){const _0x209834=_0x2f1579;this[_0x209834('0x13')]=_0x24c44e;};Migration[_0x2f1579('0x15')]['insertExtension']=function(_0x4f30b7){const _0x18796d=_0x2f1579;return this[_0x18796d('0x13')][_0x18796d('0x11')][_0x18796d('0x10')](_0x4f30b7)['then'](function(){const _0x3934ce=_0x18796d;logger[_0x3934ce('0x9')](_0x3934ce('0xa'));})[_0x18796d('0x2')](function(_0x4fc8d9){const _0x5cd31f=_0x18796d;logger[_0x5cd31f('0x9')](util['inspect'](_0x4fc8d9,{'showHidden':![],'depth':null}));});},Migration[_0x2f1579('0x15')]['changeColumn']=function(_0xb72c9d,_0x2c0f85,_0x525fae){const _0x2c0e60=_0x2f1579;return this['queryInterface'][_0x2c0e60('0x0')](_0xb72c9d,_0x2c0f85,_0x525fae)[_0x2c0e60('0xe')](function(){const _0x1fc9d6=_0x2c0e60;logger[_0x1fc9d6('0x9')](_0x1fc9d6('0x16'),_0x2c0f85,_0xb72c9d);})[_0x2c0e60('0x2')](function(_0x448b67){const _0x4f29e1=_0x2c0e60;logger[_0x4f29e1('0x9')](util['inspect'](_0x448b67,{'showHidden':![],'depth':null}));});},Migration[_0x2f1579('0x15')][_0x2f1579('0x14')]=function(_0x31a88b,_0x4f7539,_0x27bac0){const _0x5d0cf8=_0x2f1579;return this[_0x5d0cf8('0x13')][_0x5d0cf8('0x14')](_0x31a88b,_0x4f7539,_0x27bac0)[_0x5d0cf8('0xe')](function(){const _0xc5d97f=_0x5d0cf8;logger[_0xc5d97f('0x9')](_0xc5d97f('0xc'),_0x4f7539,_0x31a88b);})[_0x5d0cf8('0x2')](function(_0x3ae16e){logger['info'](JSON['stringify'](_0x3ae16e));});},module[_0x2f1579('0x17')]={'up':function(_0x54a426,_0x865079){const _0x1c00de=_0x2f1579,_0x5d9f43=new Migration(_0x54a426);_0x5d9f43[_0x1c00de('0x7')](_0x1c00de('0x18')),_0x5d9f43[_0x1c00de('0x7')](_0x1c00de('0xf')),_0x5d9f43[_0x1c00de('0x0')](_0x1c00de('0x6'),_0x1c00de('0x8'),{'type':_0x865079[_0x1c00de('0xb')],'defaultValue':'ulaw;gsm'}),_0x5d9f43[_0x1c00de('0x0')](_0x1c00de('0x1'),'allow',{'type':_0x865079['STRING'],'defaultValue':_0x1c00de('0x12')}),_0x5d9f43['addColumn'](_0x1c00de('0x4'),_0x1c00de('0x5'),{'type':_0x865079[_0x1c00de('0xb')],'defaultValue':null});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.26.js b/server/migrations/2.0.26.js index 7d238c0..2868ddb 100644 --- a/server/migrations/2.0.26.js +++ b/server/migrations/2.0.26.js @@ -1 +1 @@ -const a905_0x40b8=['inspect','stringify','never','queryInterface','prototype','authentication','users','migration','voice_queues','STRING','allow','then','BOOLEAN','INTEGER','addColumn','catch','changeColumn','pai','tools_trunks','info','campaigns','always','ulaw;alaw;gsm','Added\x20column\x20%s\x20to\x20%s','exports','timeout','email','ENUM','onlyIfOpen','mail_servers_out','yes','dialCheckDuplicateType','sendrpid','util'];(function(_0x310cb2,_0x40b8d2){const _0x34a5fb=function(_0x344382){while(--_0x344382){_0x310cb2['push'](_0x310cb2['shift']());}};_0x34a5fb(++_0x40b8d2);}(a905_0x40b8,0x18a));const a905_0x34a5=function(_0x310cb2,_0x40b8d2){_0x310cb2=_0x310cb2-0x0;let _0x34a5fb=a905_0x40b8[_0x310cb2];return _0x34a5fb;};const _0x5c7f84=a905_0x34a5;'use strict';const logger=require('../config/logger')(_0x5c7f84('0x15')),util=require(_0x5c7f84('0xd')),Migration=function(_0x344382){const _0x2a6604=_0x5c7f84;this[_0x2a6604('0x11')]=_0x344382;};Migration[_0x5c7f84('0x12')]['changeColumn']=function(_0x294fd8,_0x30b690,_0x234028){const _0x5671f4=_0x5c7f84;return this[_0x5671f4('0x11')][_0x5671f4('0x1e')](_0x294fd8,_0x30b690,_0x234028)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x30b690,_0x294fd8);})['catch'](function(_0x101fe0){const _0x5d746f=_0x5671f4;logger['info'](util[_0x5d746f('0xe')](_0x101fe0,{'showHidden':![],'depth':null}));});},Migration['prototype'][_0x5c7f84('0x1c')]=function(_0x14152e,_0x15c81f,_0x40a7ef){const _0x1b1349=_0x5c7f84;return this['queryInterface']['addColumn'](_0x14152e,_0x15c81f,_0x40a7ef)[_0x1b1349('0x19')](function(){const _0x335103=_0x1b1349;logger[_0x335103('0x21')](_0x335103('0x3'),_0x15c81f,_0x14152e);})[_0x1b1349('0x1d')](function(_0x10d65c){const _0x28bd7b=_0x1b1349;logger[_0x28bd7b('0x21')](JSON[_0x28bd7b('0xf')](_0x10d65c));});},module[_0x5c7f84('0x4')]={'up':function(_0x112613,_0x2a762c){const _0x4b1c4b=_0x5c7f84,_0x37d9d2=new Migration(_0x112613);_0x37d9d2[_0x4b1c4b('0x1e')](_0x4b1c4b('0x20'),_0x4b1c4b('0xc'),{'type':_0x2a762c[_0x4b1c4b('0x7')](_0x4b1c4b('0xa'),'no',_0x4b1c4b('0x1f')),'defaultValue':'no'}),_0x37d9d2[_0x4b1c4b('0x1c')](_0x4b1c4b('0x9'),_0x4b1c4b('0x13'),{'type':_0x2a762c[_0x4b1c4b('0x1a')],'defaultValue':!![]}),_0x37d9d2[_0x4b1c4b('0x1e')](_0x4b1c4b('0x16'),_0x4b1c4b('0x5'),{'type':_0x2a762c[_0x4b1c4b('0x1b')](0xb),'defaultValue':0xf}),_0x37d9d2[_0x4b1c4b('0x1e')](_0x4b1c4b('0x16'),'retry',{'type':_0x2a762c[_0x4b1c4b('0x1b')](0xb),'defaultValue':0x2}),_0x37d9d2[_0x4b1c4b('0x1e')](_0x4b1c4b('0x14'),_0x4b1c4b('0x18'),{'type':_0x2a762c[_0x4b1c4b('0x17')],'allowNull':![],'defaultValue':'ulaw;alaw;gsm'}),_0x37d9d2[_0x4b1c4b('0x1e')](_0x4b1c4b('0x20'),_0x4b1c4b('0x18'),{'type':_0x2a762c[_0x4b1c4b('0x17')],'allowNull':![],'defaultValue':_0x4b1c4b('0x2')}),_0x37d9d2[_0x4b1c4b('0x1c')](_0x4b1c4b('0x16'),_0x4b1c4b('0xb'),{'type':_0x2a762c[_0x4b1c4b('0x7')](_0x4b1c4b('0x1'),_0x4b1c4b('0x10'),_0x4b1c4b('0x8')),'defaultValue':'always'}),_0x37d9d2['addColumn'](_0x4b1c4b('0x0'),'dialCheckDuplicateType',{'type':_0x2a762c[_0x4b1c4b('0x7')]('always',_0x4b1c4b('0x10'),'onlyIfOpen'),'defaultValue':'always'}),_0x37d9d2['addColumn']('mail_accounts',_0x4b1c4b('0x6'),{'type':_0x2a762c[_0x4b1c4b('0x17')]});},'down':function(){}}; \ No newline at end of file +const a905_0x3748=['exports','dialCheckDuplicateType','yes','ENUM','catch','changeColumn','Added\x20column\x20%s\x20to\x20%s','always','util','STRING','allow','sendrpid','campaigns','migration','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','addColumn','retry','mail_accounts','never','onlyIfOpen','tools_trunks','prototype','voice_queues','users','info','then','pai'];(function(_0x1d6e69,_0x374868){const _0x8957ab=function(_0x1ed749){while(--_0x1ed749){_0x1d6e69['push'](_0x1d6e69['shift']());}};_0x8957ab(++_0x374868);}(a905_0x3748,0x109));const a905_0x8957=function(_0x1d6e69,_0x374868){_0x1d6e69=_0x1d6e69-0x0;let _0x8957ab=a905_0x3748[_0x1d6e69];return _0x8957ab;};const _0x34c58a=a905_0x8957;'use strict';const logger=require(_0x34c58a('0xa'))(_0x34c58a('0x9')),util=require(_0x34c58a('0x4')),Migration=function(_0x1ed749){const _0x59d60d=_0x34c58a;this[_0x59d60d('0xc')]=_0x1ed749;};Migration[_0x34c58a('0x13')][_0x34c58a('0x1')]=function(_0x3cadf7,_0x3e8b2f,_0x5c0ad1){const _0x4a07b4=_0x34c58a;return this[_0x4a07b4('0xc')]['changeColumn'](_0x3cadf7,_0x3e8b2f,_0x5c0ad1)[_0x4a07b4('0x17')](function(){const _0x5e4504=_0x4a07b4;logger[_0x5e4504('0x16')](_0x5e4504('0xb'),_0x3e8b2f,_0x3cadf7);})[_0x4a07b4('0x0')](function(_0x30ca77){const _0x1eb4e6=_0x4a07b4;logger[_0x1eb4e6('0x16')](util['inspect'](_0x30ca77,{'showHidden':![],'depth':null}));});},Migration['prototype'][_0x34c58a('0xd')]=function(_0x646c4a,_0x37a12e,_0x2d194c){const _0x4772cc=_0x34c58a;return this[_0x4772cc('0xc')][_0x4772cc('0xd')](_0x646c4a,_0x37a12e,_0x2d194c)['then'](function(){const _0x341b56=_0x4772cc;logger[_0x341b56('0x16')](_0x341b56('0x2'),_0x37a12e,_0x646c4a);})[_0x4772cc('0x0')](function(_0x12f17f){logger['info'](JSON['stringify'](_0x12f17f));});},module[_0x34c58a('0x19')]={'up':function(_0x874812,_0x552789){const _0x36bfd8=_0x34c58a,_0x16f73a=new Migration(_0x874812);_0x16f73a[_0x36bfd8('0x1')]('tools_trunks',_0x36bfd8('0x7'),{'type':_0x552789[_0x36bfd8('0x1c')](_0x36bfd8('0x1b'),'no',_0x36bfd8('0x18')),'defaultValue':'no'}),_0x16f73a['addColumn']('mail_servers_out','authentication',{'type':_0x552789['BOOLEAN'],'defaultValue':!![]}),_0x16f73a[_0x36bfd8('0x1')](_0x36bfd8('0x14'),'timeout',{'type':_0x552789['INTEGER'](0xb),'defaultValue':0xf}),_0x16f73a[_0x36bfd8('0x1')](_0x36bfd8('0x14'),_0x36bfd8('0xe'),{'type':_0x552789['INTEGER'](0xb),'defaultValue':0x2}),_0x16f73a[_0x36bfd8('0x1')](_0x36bfd8('0x15'),'allow',{'type':_0x552789['STRING'],'allowNull':![],'defaultValue':'ulaw;alaw;gsm'}),_0x16f73a[_0x36bfd8('0x1')](_0x36bfd8('0x12'),_0x36bfd8('0x6'),{'type':_0x552789['STRING'],'allowNull':![],'defaultValue':'ulaw;alaw;gsm'}),_0x16f73a[_0x36bfd8('0xd')](_0x36bfd8('0x14'),_0x36bfd8('0x1a'),{'type':_0x552789[_0x36bfd8('0x1c')](_0x36bfd8('0x3'),_0x36bfd8('0x10'),_0x36bfd8('0x11')),'defaultValue':'always'}),_0x16f73a['addColumn'](_0x36bfd8('0x8'),_0x36bfd8('0x1a'),{'type':_0x552789[_0x36bfd8('0x1c')]('always',_0x36bfd8('0x10'),'onlyIfOpen'),'defaultValue':_0x36bfd8('0x3')}),_0x16f73a['addColumn'](_0x36bfd8('0xf'),'email',{'type':_0x552789[_0x36bfd8('0x5')]});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.27.js b/server/migrations/2.0.27.js index 12143c4..9cf57e7 100644 --- a/server/migrations/2.0.27.js +++ b/server/migrations/2.0.27.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a906_0x2e02=['exports'];(function(_0x43a59c,_0x2e0243){var _0x4207dc=function(_0x36d293){while(--_0x36d293){_0x43a59c['push'](_0x43a59c['shift']());}};_0x4207dc(++_0x2e0243);}(a906_0x2e02,0x16d));var a906_0x4207=function(_0x43a59c,_0x2e0243){_0x43a59c=_0x43a59c-0x0;var _0x4207dc=a906_0x2e02[_0x43a59c];return _0x4207dc;};var _0x33fbd7=a906_0x4207;'use strict';module[_0x33fbd7('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.28.js b/server/migrations/2.0.28.js index 12143c4..813d127 100644 --- a/server/migrations/2.0.28.js +++ b/server/migrations/2.0.28.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a907_0x13a5=['exports'];(function(_0x3e0ab0,_0x13a574){var _0x4366c4=function(_0x13ca3d){while(--_0x13ca3d){_0x3e0ab0['push'](_0x3e0ab0['shift']());}};_0x4366c4(++_0x13a574);}(a907_0x13a5,0x1c7));var a907_0x4366=function(_0x3e0ab0,_0x13a574){_0x3e0ab0=_0x3e0ab0-0x0;var _0x4366c4=a907_0x13a5[_0x3e0ab0];return _0x4366c4;};var _0x861534=a907_0x4366;'use strict';module[_0x861534('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.29.js b/server/migrations/2.0.29.js index cf2b5af..52825c4 100644 --- a/server/migrations/2.0.29.js +++ b/server/migrations/2.0.29.js @@ -1 +1 @@ -const a908_0xfe4c=['#AMD\x20After\x20Greeting\x20Silence','sequence','UNSIGNED','prototype','dialAMDBetweenWordsSilence','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','users','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x278\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?11:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','STRING','addColumn','query','#AMD\x20Greeting','info','user_has_chat_rooms','Added\x20column\x20%s\x20to\x20%s','chat_messages','#AMD\x20Maximum\x20Word\x20Length','dialAMDGreeting','BOOLEAN','changeColumn','dialAMDMaximumNumberOfWords','final','voice_queues','#AMD\x20Min\x20Word\x20Length','phoneBarNoReplyNumber','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x275\x27,\x20\x27amd\x27,\x20\x27${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','dropTable','finally','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','campaigns','phoneBarDnd','dialAMDTotalAnalysisTime','user_has_chat_queues','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','#AMD\x20Initial\x20Silence','phoneBarBusy','phoneBarNoReply','catch','then','Changed\x20column\x20%s\x20in\x20table\x20%s','team_has_chat_queues','chat_dispositions','../config/logger','phoneBarBusyNumber','INTEGER','calleridnum','#AMD\x20Total\x20Analysis\x20Time','Active/Disactive\x20AMD','addIndex\x20%s\x20%s\x20%s','dialQueueTimeout','addIndex','phoneBarUnconditionalNumber','dialAMDAfterGreetingSilence','dialAMDInitialSilence','dialAMDMinWordLength','#AMD\x20Maximum\x20Number\x20Of\x20Words','dialAMDSilenceThreshold','chat_proactive_actions','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?9:7\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2710\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','queryInterface','chat_applications','cm_hopper_final','tail','phone','phoneBarUnconditional','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x277\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?9:8\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','user_has_chat_interactions','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','openchannel_messages','chat_interactions','stringify','#AMD\x20Between\x20Words\x20Silence','chat_queues','user_has_openchannel_interactions','enqueue','dialAMDMaximumWordLength','openchannel_interactions','migration'];(function(_0x5404a,_0xfe4c69){const _0x1ca295=function(_0x42797d){while(--_0x42797d){_0x5404a['push'](_0x5404a['shift']());}};_0x1ca295(++_0xfe4c69);}(a908_0xfe4c,0xee));const a908_0x1ca2=function(_0x5404a,_0xfe4c69){_0x5404a=_0x5404a-0x0;let _0x1ca295=a908_0xfe4c[_0x5404a];return _0x1ca295;};const _0xb388=a908_0x1ca2;'use strict';const logger=require(_0xb388('0x30'))(_0xb388('0x4')),Sequence=function(){};Sequence[_0xb388('0x8')][_0xb388('0x1')]=function(_0x42797d){const _0x8af587=_0xb388;this[_0x8af587('0x45')]=this[_0x8af587('0x45')]?this['tail'][_0x8af587('0x21')](_0x42797d):_0x42797d();};const Migration=function(_0x1eb265){const _0xbb4139=_0xb388;this[_0xbb4139('0x42')]=_0x1eb265,this[_0xbb4139('0x6')]=new Sequence();};Migration[_0xb388('0x8')][_0xb388('0x18')]=function(_0x515a38,_0x2c7c51,_0x574db2){const _0x43d0d3=this;this['sequence']['enqueue'](function(){const _0x403679=a908_0x1ca2;return _0x43d0d3[_0x403679('0x42')][_0x403679('0x18')](_0x515a38,_0x2c7c51,_0x574db2)['then'](function(){const _0x41eb18=_0x403679;logger[_0x41eb18('0x11')](_0x41eb18('0x2d'),_0x2c7c51,_0x515a38);})[_0x403679('0x2b')](function(_0x2c9e30){const _0x2f0a19=_0x403679;logger[_0x2f0a19('0x11')](JSON['stringify'](_0x2c9e30));});});},Migration[_0xb388('0x8')]['addColumn']=function(_0xe3ede7,_0x2f08c3,_0x3c386e){const _0x490e88=_0xb388,_0x57eefe=this;this[_0x490e88('0x6')]['enqueue'](function(){const _0x2995d7=_0x490e88;return _0x57eefe[_0x2995d7('0x42')][_0x2995d7('0xe')](_0xe3ede7,_0x2f08c3,_0x3c386e)[_0x2995d7('0x2c')](function(){const _0x14da4f=_0x2995d7;logger['info'](_0x14da4f('0x13'),_0x2f08c3,_0xe3ede7);})['catch'](function(_0x3d6e4f){const _0x3d4899=_0x2995d7;logger[_0x3d4899('0x11')](JSON[_0x3d4899('0x4e')](_0x3d6e4f));});});},Migration[_0xb388('0x8')][_0xb388('0x20')]=function(_0x1c2267){const _0x4577b8=_0xb388,_0x4eb6d4=this;this[_0x4577b8('0x6')]['enqueue'](function(){const _0x132fb6=_0x4577b8;return _0x4eb6d4[_0x132fb6('0x42')][_0x132fb6('0x20')](_0x1c2267,{'force':!![]})['then'](function(){const _0x33a9ca=_0x132fb6;logger[_0x33a9ca('0x11')]('table\x20dropped\x20%s',_0x1c2267);})[_0x132fb6('0x2b')](function(_0x1d6c98){const _0x218b09=_0x132fb6;logger[_0x218b09('0x11')](JSON['stringify'](_0x1d6c98));});});},Migration[_0xb388('0x8')][_0xb388('0x38')]=function(_0x53ed66,_0x39d9fc,_0x39ebf1){const _0x58041b=_0xb388,_0x34fd4d=this;this[_0x58041b('0x6')][_0x58041b('0x1')](function(){const _0x297e96=_0x58041b;return _0x34fd4d[_0x297e96('0x42')][_0x297e96('0x38')](_0x53ed66,_0x39d9fc,{'indexName':_0x39ebf1})[_0x297e96('0x2c')](function(){const _0x174761=_0x297e96;logger['info'](_0x174761('0x36'),_0x53ed66,_0x39d9fc['join'](','),_0x39ebf1);})[_0x297e96('0x2b')](function(_0x5daf2b){const _0x5135f7=_0x297e96;logger['info'](JSON[_0x5135f7('0x4e')](_0x5daf2b));});});},Migration[_0xb388('0x8')][_0xb388('0xf')]=function(_0x5314b3){const _0x573631=_0xb388,_0x4c2213=this;this[_0x573631('0x6')]['enqueue'](function(){const _0x5b7dfc=_0x573631;return _0x4c2213[_0x5b7dfc('0x42')]['sequelize']['query'](_0x5314b3)[_0x5b7dfc('0x2c')](function(){const _0x1bf2d1=_0x5b7dfc;logger[_0x1bf2d1('0x11')]('query\x20%s',_0x5314b3);})[_0x5b7dfc('0x2b')](function(_0x39533f){const _0x33e437=_0x5b7dfc;logger[_0x33e437('0x11')](JSON['stringify'](_0x39533f));});});},Migration[_0xb388('0x8')]['final']=function(_0x211142){const _0x5c63da=_0xb388;this[_0x5c63da('0x6')][_0x5c63da('0x1')](function(){return _0x211142();});},module['exports']={'up':function(_0x246333,_0x49768b){return new Promise(function(_0x4b7bd6){const _0x5a3873=a908_0x1ca2,_0x59cb49=new Migration(_0x246333);_0x59cb49[_0x5a3873('0x20')](_0x5a3873('0x12')),_0x59cb49['dropTable']('chat_enquiries'),_0x59cb49[_0x5a3873('0x20')](_0x5a3873('0x14')),_0x59cb49[_0x5a3873('0x20')](_0x5a3873('0x3f')),_0x59cb49[_0x5a3873('0x20')](_0x5a3873('0x2f')),_0x59cb49['dropTable'](_0x5a3873('0x43')),_0x59cb49['dropTable'](_0x5a3873('0x4a')),_0x59cb49['dropTable'](_0x5a3873('0x4d')),_0x59cb49[_0x5a3873('0x20')](_0x5a3873('0x2e')),_0x59cb49['dropTable'](_0x5a3873('0x26')),_0x59cb49[_0x5a3873('0x20')](_0x5a3873('0x50')),_0x59cb49[_0x5a3873('0x20')]('chat_websites'),_0x59cb49['dropTable'](_0x5a3873('0x4c')),_0x59cb49['dropTable'](_0x5a3873('0x0')),_0x59cb49[_0x5a3873('0x20')](_0x5a3873('0x3')),_0x59cb49['addIndex']('cm_hopper',[_0x5a3873('0x46')],'phone'),_0x59cb49[_0x5a3873('0x38')](_0x5a3873('0x44'),[_0x5a3873('0x33')],_0x5a3873('0x33')),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0xb'),_0x5a3873('0x39'),{'type':_0x49768b[_0x5a3873('0xd')]}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0xb'),_0x5a3873('0x1d'),{'type':_0x49768b[_0x5a3873('0xd')]}),_0x59cb49['addColumn'](_0x5a3873('0xb'),_0x5a3873('0x31'),{'type':_0x49768b[_0x5a3873('0xd')]}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0xb'),_0x5a3873('0x47'),{'type':_0x49768b[_0x5a3873('0x17')],'defaultValue':![]}),_0x59cb49[_0x5a3873('0xe')]('users',_0x5a3873('0x2a'),{'type':_0x49768b[_0x5a3873('0x17')],'defaultValue':![]}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0xb'),_0x5a3873('0x29'),{'type':_0x49768b[_0x5a3873('0x17')],'defaultValue':![]}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0xb'),_0x5a3873('0x24'),{'type':_0x49768b[_0x5a3873('0x17')],'defaultValue':!![]}),_0x59cb49[_0x5a3873('0x18')](_0x5a3873('0x23'),_0x5a3873('0x37'),{'type':_0x49768b['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x5a3873('0x1e')}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x1b'),'dialAMDActive',{'type':_0x49768b[_0x5a3873('0x17')],'defaultValue':0x0,'comment':_0x5a3873('0x35')}),_0x59cb49['addColumn'](_0x5a3873('0x1b'),_0x5a3873('0x3b'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x5a3873('0x28')}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x1b'),_0x5a3873('0x16'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0x5a3873('0x10')}),_0x59cb49[_0x5a3873('0xe')]('voice_queues',_0x5a3873('0x3a'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x320,'comment':'#AMD\x20After\x20Greeting\x20Silence'}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x1b'),_0x5a3873('0x25'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x5a3873('0x34')}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x1b'),_0x5a3873('0x3c'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x64,'comment':'#AMD\x20Min\x20Word\x20Length'}),_0x59cb49[_0x5a3873('0xe')]('voice_queues','dialAMDBetweenWordsSilence',{'type':_0x49768b[_0x5a3873('0x32')](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x32,'comment':'#AMD\x20Between\x20Words\x20Silence'}),_0x59cb49['addColumn'](_0x5a3873('0x1b'),_0x5a3873('0x19'),{'type':_0x49768b['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x59cb49['addColumn']('voice_queues',_0x5a3873('0x3e'),{'type':_0x49768b[_0x5a3873('0x32')](0x5)[_0x5a3873('0x7')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x1b'),_0x5a3873('0x2'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x5a3873('0x15')}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x23'),'dialAMDActive',{'type':_0x49768b[_0x5a3873('0x17')],'defaultValue':0x0,'comment':_0x5a3873('0x35')}),_0x59cb49['addColumn'](_0x5a3873('0x23'),_0x5a3873('0x3b'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x5a3873('0x28')}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x23'),_0x5a3873('0x16'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':'#AMD\x20Greeting'}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x23'),'dialAMDAfterGreetingSilence',{'type':_0x49768b[_0x5a3873('0x32')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0x5a3873('0x5')}),_0x59cb49[_0x5a3873('0xe')]('campaigns','dialAMDTotalAnalysisTime',{'type':_0x49768b[_0x5a3873('0x32')](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x5a3873('0x34')}),_0x59cb49['addColumn']('campaigns',_0x5a3873('0x3c'),{'type':_0x49768b[_0x5a3873('0x32')](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x5a3873('0x1c')}),_0x59cb49['addColumn'](_0x5a3873('0x23'),_0x5a3873('0x9'),{'type':_0x49768b['INTEGER'](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x5a3873('0x4f')}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x23'),_0x5a3873('0x19'),{'type':_0x49768b['INTEGER'](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x3,'comment':_0x5a3873('0x3d')}),_0x59cb49['addColumn'](_0x5a3873('0x23'),'dialAMDSilenceThreshold',{'type':_0x49768b[_0x5a3873('0x32')](0x5)[_0x5a3873('0x7')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'}),_0x59cb49[_0x5a3873('0xe')](_0x5a3873('0x23'),_0x5a3873('0x2'),{'type':_0x49768b['INTEGER'](0x9)[_0x5a3873('0x7')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':'#AMD\x20Maximum\x20Word\x20Length'}),_0x59cb49['query'](_0x5a3873('0x48')),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0x27')),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0xa')),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0x22')),_0x59cb49[_0x5a3873('0xf')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x274\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0x1f')),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0x40')),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0x49')),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0xc')),_0x59cb49[_0x5a3873('0xf')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0x41')),_0x59cb49[_0x5a3873('0xf')](_0x5a3873('0x4b')),_0x59cb49[_0x5a3873('0x1a')](_0x4b7bd6);});},'down':function(){}}; \ No newline at end of file +const a908_0x2ef6=['chat_dispositions','dialAMDMinWordLength','phoneBarDnd','dialAMDTotalAnalysisTime','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x278\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?11:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chat_messages','voice_queues','user_has_chat_rooms','#AMD\x20Between\x20Words\x20Silence','#AMD\x20Greeting','addIndex\x20%s\x20%s\x20%s','#AMD\x20Total\x20Analysis\x20Time','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','cm_hopper','cm_hopper_final','INTEGER','dialAMDGreeting','Added\x20column\x20%s\x20to\x20%s','then','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','prototype','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','info','chat_queues','enqueue','sequence','join','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','tail','UNSIGNED','dropTable','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x275\x27,\x20\x27amd\x27,\x20\x27${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','phoneBarNoReplyNumber','query\x20%s','migration','#AMD\x20After\x20Greeting\x20Silence','dialQueueTimeout','phoneBarUnconditional','dialAMDMaximumNumberOfWords','query','dialAMDSilenceThreshold','#AMD\x20Maximum\x20Word\x20Length','addIndex','addColumn','stringify','users','catch','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?9:7\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','BOOLEAN','#AMD\x20Initial\x20Silence','chat_applications','Active/Disactive\x20AMD','exports','user_has_chat_queues','dialAMDActive','phoneBarNoReply','final','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','../config/logger','openchannel_messages','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x277\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?9:8\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','calleridnum','#AMD\x20Min\x20Word\x20Length','dialAMDMaximumWordLength','campaigns','STRING','queryInterface','dialAMDAfterGreetingSilence','phone','dialAMDBetweenWordsSilence'];(function(_0x3540d3,_0x2ef64c){const _0x1506cd=function(_0xa3940c){while(--_0xa3940c){_0x3540d3['push'](_0x3540d3['shift']());}};_0x1506cd(++_0x2ef64c);}(a908_0x2ef6,0x77));const a908_0x1506=function(_0x3540d3,_0x2ef64c){_0x3540d3=_0x3540d3-0x0;let _0x1506cd=a908_0x2ef6[_0x3540d3];return _0x1506cd;};const _0x3db403=a908_0x1506;'use strict';const logger=require(_0x3db403('0xd'))(_0x3db403('0x3d')),Sequence=function(){};Sequence[_0x3db403('0x2d')][_0x3db403('0x33')]=function(_0xa3940c){const _0x1888b2=_0x3db403;this[_0x1888b2('0x37')]=this[_0x1888b2('0x37')]?this[_0x1888b2('0x37')]['finally'](_0xa3940c):_0xa3940c();};const Migration=function(_0x4f7989){const _0x22ae6b=_0x3db403;this[_0x22ae6b('0x15')]=_0x4f7989,this[_0x22ae6b('0x34')]=new Sequence();};Migration[_0x3db403('0x2d')]['changeColumn']=function(_0x3621ba,_0x64c779,_0x55f385){const _0x1dd10f=_0x3db403,_0x5e750e=this;this[_0x1dd10f('0x34')][_0x1dd10f('0x33')](function(){const _0x52d871=_0x1dd10f;return _0x5e750e[_0x52d871('0x15')]['changeColumn'](_0x3621ba,_0x64c779,_0x55f385)[_0x52d871('0x2b')](function(){const _0x35aa1c=_0x52d871;logger[_0x35aa1c('0x31')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x64c779,_0x3621ba);})['catch'](function(_0x27911d){const _0x46ec92=_0x52d871;logger[_0x46ec92('0x31')](JSON['stringify'](_0x27911d));});});},Migration[_0x3db403('0x2d')]['addColumn']=function(_0x10e053,_0x36944c,_0x4b7a56){const _0x1d050c=_0x3db403,_0x48426f=this;this[_0x1d050c('0x34')][_0x1d050c('0x33')](function(){const _0x40b678=_0x1d050c;return _0x48426f[_0x40b678('0x15')][_0x40b678('0x46')](_0x10e053,_0x36944c,_0x4b7a56)[_0x40b678('0x2b')](function(){const _0x12a05b=_0x40b678;logger[_0x12a05b('0x31')](_0x12a05b('0x2a'),_0x36944c,_0x10e053);})[_0x40b678('0x1')](function(_0x5930da){const _0x277425=_0x40b678;logger[_0x277425('0x31')](JSON['stringify'](_0x5930da));});});},Migration['prototype'][_0x3db403('0x39')]=function(_0x590484){const _0xbd8304=_0x3db403,_0x5b9202=this;this[_0xbd8304('0x34')][_0xbd8304('0x33')](function(){const _0x4b4795=_0xbd8304;return _0x5b9202['queryInterface'][_0x4b4795('0x39')](_0x590484,{'force':!![]})[_0x4b4795('0x2b')](function(){const _0x2db34a=_0x4b4795;logger[_0x2db34a('0x31')]('table\x20dropped\x20%s',_0x590484);})[_0x4b4795('0x1')](function(_0x4b92b0){const _0x4662db=_0x4b4795;logger[_0x4662db('0x31')](JSON['stringify'](_0x4b92b0));});});},Migration[_0x3db403('0x2d')][_0x3db403('0x45')]=function(_0x2fad2b,_0x3b7e0c,_0x39d504){const _0x5cf5df=_0x3db403,_0x2dc18a=this;this[_0x5cf5df('0x34')]['enqueue'](function(){const _0x201205=_0x5cf5df;return _0x2dc18a[_0x201205('0x15')][_0x201205('0x45')](_0x2fad2b,_0x3b7e0c,{'indexName':_0x39d504})['then'](function(){const _0x32259c=_0x201205;logger[_0x32259c('0x31')](_0x32259c('0x23'),_0x2fad2b,_0x3b7e0c[_0x32259c('0x35')](','),_0x39d504);})['catch'](function(_0x33c959){const _0x556a96=_0x201205;logger[_0x556a96('0x31')](JSON['stringify'](_0x33c959));});});},Migration[_0x3db403('0x2d')][_0x3db403('0x42')]=function(_0xda6035){const _0x4300a7=_0x3db403,_0x32984c=this;this[_0x4300a7('0x34')]['enqueue'](function(){const _0x440c0d=_0x4300a7;return _0x32984c[_0x440c0d('0x15')]['sequelize']['query'](_0xda6035)[_0x440c0d('0x2b')](function(){const _0x350624=_0x440c0d;logger[_0x350624('0x31')](_0x350624('0x3c'),_0xda6035);})[_0x440c0d('0x1')](function(_0x48b235){const _0x2bd370=_0x440c0d;logger[_0x2bd370('0x31')](JSON[_0x2bd370('0x47')](_0x48b235));});});},Migration['prototype'][_0x3db403('0xb')]=function(_0xadf5c7){const _0x51e725=_0x3db403;this['sequence'][_0x51e725('0x33')](function(){return _0xadf5c7();});},module[_0x3db403('0x7')]={'up':function(_0x141e91,_0x192a27){return new Promise(function(_0x3aab65){const _0x19e517=a908_0x1506,_0x59d925=new Migration(_0x141e91);_0x59d925[_0x19e517('0x39')](_0x19e517('0x20')),_0x59d925[_0x19e517('0x39')]('chat_enquiries'),_0x59d925[_0x19e517('0x39')](_0x19e517('0x1e')),_0x59d925[_0x19e517('0x39')]('chat_proactive_actions'),_0x59d925['dropTable'](_0x19e517('0x19')),_0x59d925[_0x19e517('0x39')](_0x19e517('0x5')),_0x59d925['dropTable']('user_has_chat_interactions'),_0x59d925[_0x19e517('0x39')]('chat_interactions'),_0x59d925['dropTable']('team_has_chat_queues'),_0x59d925[_0x19e517('0x39')](_0x19e517('0x8')),_0x59d925[_0x19e517('0x39')](_0x19e517('0x32')),_0x59d925['dropTable']('chat_websites'),_0x59d925[_0x19e517('0x39')](_0x19e517('0xe')),_0x59d925['dropTable']('user_has_openchannel_interactions'),_0x59d925[_0x19e517('0x39')]('openchannel_interactions'),_0x59d925['addIndex'](_0x19e517('0x26'),['phone'],_0x19e517('0x17')),_0x59d925[_0x19e517('0x45')](_0x19e517('0x27'),[_0x19e517('0x10')],_0x19e517('0x10')),_0x59d925[_0x19e517('0x46')](_0x19e517('0x0'),'phoneBarUnconditionalNumber',{'type':_0x192a27[_0x19e517('0x14')]}),_0x59d925['addColumn']('users',_0x19e517('0x3b'),{'type':_0x192a27[_0x19e517('0x14')]}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x0'),'phoneBarBusyNumber',{'type':_0x192a27[_0x19e517('0x14')]}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x0'),_0x19e517('0x40'),{'type':_0x192a27['BOOLEAN'],'defaultValue':![]}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x0'),_0x19e517('0xa'),{'type':_0x192a27[_0x19e517('0x3')],'defaultValue':![]}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x0'),'phoneBarBusy',{'type':_0x192a27[_0x19e517('0x3')],'defaultValue':![]}),_0x59d925[_0x19e517('0x46')]('users',_0x19e517('0x1b'),{'type':_0x192a27[_0x19e517('0x3')],'defaultValue':!![]}),_0x59d925['changeColumn'](_0x19e517('0x13'),_0x19e517('0x3f'),{'type':_0x192a27[_0x19e517('0x28')](0x3)[_0x19e517('0x38')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'}),_0x59d925[_0x19e517('0x46')]('voice_queues',_0x19e517('0x9'),{'type':_0x192a27[_0x19e517('0x3')],'defaultValue':0x0,'comment':_0x19e517('0x6')}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x1f'),'dialAMDInitialSilence',{'type':_0x192a27[_0x19e517('0x28')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':'#AMD\x20Initial\x20Silence'}),_0x59d925['addColumn'](_0x19e517('0x1f'),'dialAMDGreeting',{'type':_0x192a27['INTEGER'](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0x19e517('0x22')}),_0x59d925['addColumn'](_0x19e517('0x1f'),'dialAMDAfterGreetingSilence',{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0x19e517('0x3e')}),_0x59d925['addColumn'](_0x19e517('0x1f'),_0x19e517('0x1c'),{'type':_0x192a27['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x19e517('0x24')}),_0x59d925['addColumn']('voice_queues',_0x19e517('0x1a'),{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x19e517('0x11')}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x1f'),_0x19e517('0x18'),{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x19e517('0x21')}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x1f'),_0x19e517('0x41'),{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x1f'),_0x19e517('0x43'),{'type':_0x192a27[_0x19e517('0x28')](0x5)[_0x19e517('0x38')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x1f'),'dialAMDMaximumWordLength',{'type':_0x192a27['INTEGER'](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':'#AMD\x20Maximum\x20Word\x20Length'}),_0x59d925['addColumn']('campaigns',_0x19e517('0x9'),{'type':_0x192a27[_0x19e517('0x3')],'defaultValue':0x0,'comment':_0x19e517('0x6')}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x13'),'dialAMDInitialSilence',{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x19e517('0x4')}),_0x59d925['addColumn'](_0x19e517('0x13'),_0x19e517('0x29'),{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0x19e517('0x22')}),_0x59d925['addColumn']('campaigns',_0x19e517('0x16'),{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x320,'comment':'#AMD\x20After\x20Greeting\x20Silence'}),_0x59d925[_0x19e517('0x46')]('campaigns',_0x19e517('0x1c'),{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':'#AMD\x20Total\x20Analysis\x20Time'}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x13'),_0x19e517('0x1a'),{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x19e517('0x11')}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x13'),_0x19e517('0x18'),{'type':_0x192a27['INTEGER'](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x19e517('0x21')}),_0x59d925[_0x19e517('0x46')]('campaigns','dialAMDMaximumNumberOfWords',{'type':_0x192a27[_0x19e517('0x28')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x59d925[_0x19e517('0x46')](_0x19e517('0x13'),'dialAMDSilenceThreshold',{'type':_0x192a27['INTEGER'](0x5)[_0x19e517('0x38')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x19e517('0x2e')}),_0x59d925[_0x19e517('0x46')]('campaigns',_0x19e517('0x12'),{'type':_0x192a27[_0x19e517('0x28')](0x9)[_0x19e517('0x38')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x19e517('0x44')}),_0x59d925[_0x19e517('0x42')](_0x19e517('0x36')),_0x59d925[_0x19e517('0x42')](_0x19e517('0x30')),_0x59d925['query'](_0x19e517('0x25')),_0x59d925[_0x19e517('0x42')](_0x19e517('0x2f')),_0x59d925[_0x19e517('0x42')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x274\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x59d925['query'](_0x19e517('0x3a')),_0x59d925[_0x19e517('0x42')](_0x19e517('0x2')),_0x59d925[_0x19e517('0x42')](_0x19e517('0xf')),_0x59d925[_0x19e517('0x42')](_0x19e517('0x1d')),_0x59d925['query'](_0x19e517('0x2c')),_0x59d925[_0x19e517('0x42')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2710\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x59d925[_0x19e517('0x42')](_0x19e517('0xc')),_0x59d925['final'](_0x3aab65);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.30.js b/server/migrations/2.0.30.js index 1fa6ec0..ff349c0 100644 --- a/server/migrations/2.0.30.js +++ b/server/migrations/2.0.30.js @@ -1 +1 @@ -const a909_0x4fad=['query\x20%s','INTEGER','dropTable','addIndex','queryInterface','addIndex\x20%s\x20%s\x20%s','stringify','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','chat_websites_fields','sequence','final','addColumn','chat_proactive_actions','changeColumn','join','then','migration','table\x20dropped\x20%s','user_has_chat_rooms','chat_queues','user_has_chat_interactions','chat_enquiries','enqueue','tail','catch','info','Added\x20column\x20%s\x20to\x20%s','voice_queues','prototype','UNSIGNED','chat_visitors','chat_applications','chat_interactions','sequelize','exports','chat_websites','user_has_chat_queues','query','dialQueueTimeout'];(function(_0x33ea14,_0x4fad49){const _0x2f482e=function(_0x24caab){while(--_0x24caab){_0x33ea14['push'](_0x33ea14['shift']());}};_0x2f482e(++_0x4fad49);}(a909_0x4fad,0xf2));const a909_0x2f48=function(_0x33ea14,_0x4fad49){_0x33ea14=_0x33ea14-0x0;let _0x2f482e=a909_0x4fad[_0x33ea14];return _0x2f482e;};const _0x40cf93=a909_0x2f48;'use strict';const logger=require('../config/logger')(_0x40cf93('0x8')),Sequence=function(){};Sequence[_0x40cf93('0x14')][_0x40cf93('0xe')]=function(_0x24caab){const _0x73ea90=_0x40cf93;this[_0x73ea90('0xf')]=this[_0x73ea90('0xf')]?this[_0x73ea90('0xf')]['finally'](_0x24caab):_0x24caab();};const Migration=function(_0x4cf33e){const _0x5950e5=_0x40cf93;this[_0x5950e5('0x23')]=_0x4cf33e,this['sequence']=new Sequence();};Migration[_0x40cf93('0x14')][_0x40cf93('0x5')]=function(_0x180e91,_0x532ebd,_0x5e2ae4){const _0x21895d=_0x40cf93,_0x3b6d5f=this;this['sequence'][_0x21895d('0xe')](function(){const _0x2b3e05=_0x21895d;return _0x3b6d5f[_0x2b3e05('0x23')][_0x2b3e05('0x5')](_0x180e91,_0x532ebd,_0x5e2ae4)['then'](function(){const _0x8749b8=_0x2b3e05;logger[_0x8749b8('0x11')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x532ebd,_0x180e91);})[_0x2b3e05('0x10')](function(_0x3b174c){const _0x3ad97d=_0x2b3e05;logger['info'](JSON[_0x3ad97d('0x25')](_0x3b174c));});});},Migration['prototype'][_0x40cf93('0x3')]=function(_0x302913,_0x4f3178,_0x18b371){const _0xb5216c=_0x40cf93,_0x67efcc=this;this['sequence'][_0xb5216c('0xe')](function(){const _0x4516df=_0xb5216c;return _0x67efcc[_0x4516df('0x23')][_0x4516df('0x3')](_0x302913,_0x4f3178,_0x18b371)[_0x4516df('0x7')](function(){const _0x1434f6=_0x4516df;logger['info'](_0x1434f6('0x12'),_0x4f3178,_0x302913);})[_0x4516df('0x10')](function(_0x2c4690){const _0x524444=_0x4516df;logger[_0x524444('0x11')](JSON[_0x524444('0x25')](_0x2c4690));});});},Migration[_0x40cf93('0x14')][_0x40cf93('0x21')]=function(_0x32f6b8){const _0x3c47ed=_0x40cf93,_0x5892c2=this;this['sequence'][_0x3c47ed('0xe')](function(){const _0x3e6244=_0x3c47ed;return _0x5892c2[_0x3e6244('0x23')][_0x3e6244('0x21')](_0x32f6b8,{'force':!![]})[_0x3e6244('0x7')](function(){const _0x3e3d7e=_0x3e6244;logger[_0x3e3d7e('0x11')](_0x3e3d7e('0x9'),_0x32f6b8);})[_0x3e6244('0x10')](function(_0x8d70c7){const _0x5182f1=_0x3e6244;logger[_0x5182f1('0x11')](JSON['stringify'](_0x8d70c7));});});},Migration[_0x40cf93('0x14')][_0x40cf93('0x22')]=function(_0x93cd0,_0x21df35,_0x18b866){const _0x1b0996=_0x40cf93,_0x25acef=this;this[_0x1b0996('0x1')][_0x1b0996('0xe')](function(){const _0xf7ad96=_0x1b0996;return _0x25acef[_0xf7ad96('0x23')][_0xf7ad96('0x22')](_0x93cd0,_0x21df35,{'indexName':_0x18b866})['then'](function(){const _0x1d6c76=_0xf7ad96;logger['info'](_0x1d6c76('0x24'),_0x93cd0,_0x21df35[_0x1d6c76('0x6')](','),_0x18b866);})[_0xf7ad96('0x10')](function(_0x4e53f0){const _0x33443b=_0xf7ad96;logger[_0x33443b('0x11')](JSON[_0x33443b('0x25')](_0x4e53f0));});});},Migration[_0x40cf93('0x14')][_0x40cf93('0x1d')]=function(_0x5f14c5){const _0x37cbd5=_0x40cf93,_0x4e8799=this;this[_0x37cbd5('0x1')][_0x37cbd5('0xe')](function(){const _0x363212=_0x37cbd5;return _0x4e8799['queryInterface'][_0x363212('0x19')]['query'](_0x5f14c5)[_0x363212('0x7')](function(){const _0x52daf9=_0x363212;logger[_0x52daf9('0x11')](_0x52daf9('0x1f'),_0x5f14c5);})[_0x363212('0x10')](function(_0x5ed8fe){const _0x88651b=_0x363212;logger[_0x88651b('0x11')](JSON['stringify'](_0x5ed8fe));});});},Migration['prototype'][_0x40cf93('0x2')]=function(_0x2d1c71){const _0x8548ca=_0x40cf93;this[_0x8548ca('0x1')][_0x8548ca('0xe')](function(){return _0x2d1c71();});},module[_0x40cf93('0x1a')]={'up':function(_0x1411b3,_0x251ee3){return new Promise(function(_0x256063){const _0x2545d9=a909_0x2f48,_0x3568dc=new Migration(_0x1411b3);_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0xa')),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0xd')),_0x3568dc[_0x2545d9('0x21')]('chat_messages'),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0x4')),_0x3568dc['dropTable']('chat_dispositions'),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0x17')),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0xc')),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0x18')),_0x3568dc['dropTable']('team_has_chat_queues'),_0x3568dc['dropTable'](_0x2545d9('0x1c')),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0xb')),_0x3568dc['dropTable'](_0x2545d9('0x16')),_0x3568dc['dropTable'](_0x2545d9('0x0')),_0x3568dc['dropTable'](_0x2545d9('0x1b')),_0x3568dc['changeColumn'](_0x2545d9('0x13'),_0x2545d9('0x1e'),{'type':_0x251ee3[_0x2545d9('0x20')](0x3)[_0x2545d9('0x15')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2545d9('0x26')}),_0x3568dc[_0x2545d9('0x2')](_0x256063);});},'down':function(){}}; \ No newline at end of file +const a909_0x1020=['catch','queryInterface','chat_websites_fields','sequelize','Added\x20column\x20%s\x20to\x20%s','user_has_chat_queues','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','chat_messages','chat_queues','chat_dispositions','chat_visitors','then','chat_enquiries','user_has_chat_interactions','finally','query','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','table\x20dropped\x20%s','chat_applications','dropTable','tail','addColumn','final','enqueue','chat_interactions','UNSIGNED','chat_websites','addIndex','stringify','prototype','info','changeColumn','voice_queues','query\x20%s','join','user_has_chat_rooms'];(function(_0x54bb89,_0x102030){const _0x516b86=function(_0x2b782b){while(--_0x2b782b){_0x54bb89['push'](_0x54bb89['shift']());}};_0x516b86(++_0x102030);}(a909_0x1020,0x12f));const a909_0x516b=function(_0x54bb89,_0x102030){_0x54bb89=_0x54bb89-0x0;let _0x516b86=a909_0x1020[_0x54bb89];return _0x516b86;};const _0x3b569f=a909_0x516b;'use strict';const logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x3b569f('0x17')][_0x3b569f('0x11')]=function(_0x2b782b){const _0x72a557=_0x3b569f;this['tail']=this[_0x72a557('0xe')]?this[_0x72a557('0xe')][_0x72a557('0x7')](_0x2b782b):_0x2b782b();};const Migration=function(_0x214fa2){const _0x3c0f94=_0x3b569f;this[_0x3c0f94('0x1f')]=_0x214fa2,this[_0x3c0f94('0xa')]=new Sequence();};Migration['prototype'][_0x3b569f('0x19')]=function(_0x4011dd,_0x47a7fb,_0x21e87e){const _0xf02c09=_0x3b569f,_0x4166c8=this;this[_0xf02c09('0xa')]['enqueue'](function(){const _0x2bc840=_0xf02c09;return _0x4166c8[_0x2bc840('0x1f')][_0x2bc840('0x19')](_0x4011dd,_0x47a7fb,_0x21e87e)['then'](function(){const _0x57de12=_0x2bc840;logger[_0x57de12('0x18')](_0x57de12('0x9'),_0x47a7fb,_0x4011dd);})[_0x2bc840('0x1e')](function(_0x176e8f){const _0x4d6ae6=_0x2bc840;logger[_0x4d6ae6('0x18')](JSON[_0x4d6ae6('0x16')](_0x176e8f));});});},Migration[_0x3b569f('0x17')]['addColumn']=function(_0x20e6f5,_0x4e6021,_0x2a7e7b){const _0x481f6d=_0x3b569f,_0x2e773b=this;this[_0x481f6d('0xa')]['enqueue'](function(){const _0x2ff8b3=_0x481f6d;return _0x2e773b[_0x2ff8b3('0x1f')][_0x2ff8b3('0xf')](_0x20e6f5,_0x4e6021,_0x2a7e7b)[_0x2ff8b3('0x4')](function(){const _0x535e9d=_0x2ff8b3;logger['info'](_0x535e9d('0x22'),_0x4e6021,_0x20e6f5);})[_0x2ff8b3('0x1e')](function(_0x2cf02f){const _0x24d67e=_0x2ff8b3;logger['info'](JSON[_0x24d67e('0x16')](_0x2cf02f));});});},Migration[_0x3b569f('0x17')]['dropTable']=function(_0x4c99bc){const _0x134330=_0x3b569f,_0x3dc24c=this;this['sequence'][_0x134330('0x11')](function(){const _0x7c1a6=_0x134330;return _0x3dc24c[_0x7c1a6('0x1f')][_0x7c1a6('0xd')](_0x4c99bc,{'force':!![]})['then'](function(){const _0x581227=_0x7c1a6;logger[_0x581227('0x18')](_0x581227('0xb'),_0x4c99bc);})[_0x7c1a6('0x1e')](function(_0x1fe6d9){logger['info'](JSON['stringify'](_0x1fe6d9));});});},Migration[_0x3b569f('0x17')][_0x3b569f('0x15')]=function(_0x53813d,_0x2fa867,_0x5676f0){const _0x2f0824=_0x3b569f,_0x158eb9=this;this[_0x2f0824('0xa')][_0x2f0824('0x11')](function(){const _0x34373f=_0x2f0824;return _0x158eb9[_0x34373f('0x1f')]['addIndex'](_0x53813d,_0x2fa867,{'indexName':_0x5676f0})[_0x34373f('0x4')](function(){const _0x590145=_0x34373f;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x53813d,_0x2fa867[_0x590145('0x1c')](','),_0x5676f0);})['catch'](function(_0x5d4b27){logger['info'](JSON['stringify'](_0x5d4b27));});});},Migration[_0x3b569f('0x17')][_0x3b569f('0x8')]=function(_0x1373e5){const _0x25b3c3=_0x3b569f,_0x1b3f49=this;this[_0x25b3c3('0xa')][_0x25b3c3('0x11')](function(){const _0x11bd31=_0x25b3c3;return _0x1b3f49[_0x11bd31('0x1f')][_0x11bd31('0x21')][_0x11bd31('0x8')](_0x1373e5)[_0x11bd31('0x4')](function(){const _0xcf87d8=_0x11bd31;logger[_0xcf87d8('0x18')](_0xcf87d8('0x1b'),_0x1373e5);})[_0x11bd31('0x1e')](function(_0x320b6e){const _0x1b9117=_0x11bd31;logger[_0x1b9117('0x18')](JSON[_0x1b9117('0x16')](_0x320b6e));});});},Migration['prototype'][_0x3b569f('0x10')]=function(_0x13d313){const _0xf0b5e0=_0x3b569f;this[_0xf0b5e0('0xa')][_0xf0b5e0('0x11')](function(){return _0x13d313();});},module['exports']={'up':function(_0x7800ac,_0x35cb2e){return new Promise(function(_0x365544){const _0x5b64e2=a909_0x516b,_0x2f7eda=new Migration(_0x7800ac);_0x2f7eda['dropTable'](_0x5b64e2('0x1d')),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0x5')),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0x0')),_0x2f7eda['dropTable']('chat_proactive_actions'),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0x2')),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0xc')),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0x6')),_0x2f7eda['dropTable'](_0x5b64e2('0x12')),_0x2f7eda[_0x5b64e2('0xd')]('team_has_chat_queues'),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0x23')),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0x1')),_0x2f7eda['dropTable'](_0x5b64e2('0x3')),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0x20')),_0x2f7eda[_0x5b64e2('0xd')](_0x5b64e2('0x14')),_0x2f7eda[_0x5b64e2('0x19')](_0x5b64e2('0x1a'),'dialQueueTimeout',{'type':_0x35cb2e['INTEGER'](0x3)[_0x5b64e2('0x13')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x5b64e2('0x24')}),_0x2f7eda['final'](_0x365544);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.31.js b/server/migrations/2.0.31.js index 175b236..d6238e6 100644 --- a/server/migrations/2.0.31.js +++ b/server/migrations/2.0.31.js @@ -1 +1 @@ -const a910_0xf83d=['info','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x274\x27,\x20\x27dial\x27,\x20\x27${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INTEGER','queryInterface','sms_dispositions','user_has_sms_interactions','transferuniqueid','token','sms_applications','stringify','sms_interactions','ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId','timezone','STRING','finally','then','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','transferexten','questionId','transfer','chat_websites','../config/logger','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','addColumn','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','join','changeColumn','report_jscripty_questions','FORWARD,\x20BLIND,\x20ATTENDED','dropTable','team_has_sms_queues','cm_contacts','user_has_sms_queues','sms_messages','phoneBarUnansweredCallBadge','query\x20%s','prototype','enqueue','BOOLEAN','twitter','final','catch','ALTER\x20TABLE\x20chat_websites\x20ADD\x20CONSTRAINT\x20chat_websites_ibfk_2\x20FOREIGN\x20KEY\x20(IntervalId)\x20REFERENCES\x20tools_intervals(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x275\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','report_jscripty_answers','addIndex\x20%s\x20%s\x20%s','tail','sms_accounts','table\x20dropped\x20%s','query','facebook','report_queue','addIndex','sequence','users'];(function(_0x59920a,_0xf83dbe){const _0x2a3b4e=function(_0x5053fa){while(--_0x5053fa){_0x59920a['push'](_0x59920a['shift']());}};_0x2a3b4e(++_0xf83dbe);}(a910_0xf83d,0x1af));const a910_0x2a3b=function(_0x59920a,_0xf83dbe){_0x59920a=_0x59920a-0x0;let _0x2a3b4e=a910_0xf83d[_0x59920a];return _0x2a3b4e;};const _0x4a9793=a910_0x2a3b;'use strict';const logger=require(_0x4a9793('0x1e'))('migration'),Sequence=function(){};Sequence[_0x4a9793('0x2d')][_0x4a9793('0x2e')]=function(_0x5053fa){const _0x3ea75f=_0x4a9793;this[_0x3ea75f('0x0')]=this[_0x3ea75f('0x0')]?this[_0x3ea75f('0x0')][_0x3ea75f('0x17')](_0x5053fa):_0x5053fa();};const Migration=function(_0x4625d9){const _0x4a6bdc=_0x4a9793;this['queryInterface']=_0x4625d9,this[_0x4a6bdc('0x7')]=new Sequence();};Migration[_0x4a9793('0x2d')][_0x4a9793('0x23')]=function(_0x17b9fa,_0x5c18b9,_0x37ce73){const _0x5df44a=_0x4a9793,_0x502f3a=this;this[_0x5df44a('0x7')][_0x5df44a('0x2e')](function(){const _0x44fe14=_0x5df44a;return _0x502f3a[_0x44fe14('0xc')][_0x44fe14('0x23')](_0x17b9fa,_0x5c18b9,_0x37ce73)['then'](function(){const _0x44aa06=_0x44fe14;logger[_0x44aa06('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5c18b9,_0x17b9fa);})[_0x44fe14('0x32')](function(_0x7d10db){const _0x39caa9=_0x44fe14;logger[_0x39caa9('0x9')](JSON['stringify'](_0x7d10db));});});},Migration['prototype'][_0x4a9793('0x20')]=function(_0xfd96d3,_0x2abcbc,_0x5913ee){const _0x493e87=_0x4a9793,_0x4e546e=this;this['sequence'][_0x493e87('0x2e')](function(){const _0x4d7aed=_0x493e87;return _0x4e546e[_0x4d7aed('0xc')]['addColumn'](_0xfd96d3,_0x2abcbc,_0x5913ee)[_0x4d7aed('0x18')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2abcbc,_0xfd96d3);})[_0x4d7aed('0x32')](function(_0xee0e7c){const _0x198535=_0x4d7aed;logger[_0x198535('0x9')](JSON[_0x198535('0x12')](_0xee0e7c));});});},Migration[_0x4a9793('0x2d')]['dropTable']=function(_0x51097e){const _0x3a001d=_0x4a9793,_0x1d0999=this;this[_0x3a001d('0x7')][_0x3a001d('0x2e')](function(){const _0x54f746=_0x3a001d;return _0x1d0999[_0x54f746('0xc')][_0x54f746('0x26')](_0x51097e,{'force':!![]})['then'](function(){const _0x1a5a49=_0x54f746;logger[_0x1a5a49('0x9')](_0x1a5a49('0x2'),_0x51097e);})[_0x54f746('0x32')](function(_0x4aa18e){const _0x401ee5=_0x54f746;logger[_0x401ee5('0x9')](JSON[_0x401ee5('0x12')](_0x4aa18e));});});},Migration['prototype']['addIndex']=function(_0x20c408,_0x1dd897,_0x1fe0de){const _0x19df49=_0x4a9793,_0x226ecd=this;this['sequence'][_0x19df49('0x2e')](function(){const _0x443dc3=_0x19df49;return _0x226ecd['queryInterface'][_0x443dc3('0x6')](_0x20c408,_0x1dd897,{'indexName':_0x1fe0de})[_0x443dc3('0x18')](function(){const _0x4bd1ac=_0x443dc3;logger[_0x4bd1ac('0x9')](_0x4bd1ac('0x36'),_0x20c408,_0x1dd897[_0x4bd1ac('0x22')](','),_0x1fe0de);})[_0x443dc3('0x32')](function(_0x4264fe){const _0x2b1065=_0x443dc3;logger[_0x2b1065('0x9')](JSON[_0x2b1065('0x12')](_0x4264fe));});});},Migration[_0x4a9793('0x2d')][_0x4a9793('0x3')]=function(_0x45f33b){const _0x55b5b8=_0x4a9793,_0x288258=this;this[_0x55b5b8('0x7')][_0x55b5b8('0x2e')](function(){const _0xaf5439=_0x55b5b8;return _0x288258[_0xaf5439('0xc')]['sequelize'][_0xaf5439('0x3')](_0x45f33b)[_0xaf5439('0x18')](function(){const _0x44f922=_0xaf5439;logger['info'](_0x44f922('0x2c'),_0x45f33b);})['catch'](function(_0x180bfc){logger['info'](JSON['stringify'](_0x180bfc));});});},Migration[_0x4a9793('0x2d')][_0x4a9793('0x31')]=function(_0x539902){const _0x465794=_0x4a9793;this['sequence'][_0x465794('0x2e')](function(){return _0x539902();});},module['exports']={'up':function(_0x36cec2,_0x1096b4){return new Promise(function(_0x249d98){const _0x566d6a=a910_0x2a3b,_0x95d27=new Migration(_0x36cec2);_0x95d27['dropTable'](_0x566d6a('0x2a')),_0x95d27[_0x566d6a('0x26')](_0x566d6a('0xd')),_0x95d27[_0x566d6a('0x26')](_0x566d6a('0x11')),_0x95d27[_0x566d6a('0x26')](_0x566d6a('0xe')),_0x95d27[_0x566d6a('0x26')](_0x566d6a('0x13')),_0x95d27['dropTable'](_0x566d6a('0x27')),_0x95d27[_0x566d6a('0x26')](_0x566d6a('0x29')),_0x95d27['dropTable']('sms_queues'),_0x95d27[_0x566d6a('0x26')](_0x566d6a('0x1')),_0x95d27[_0x566d6a('0x20')]('cm_contacts',_0x566d6a('0x4'),{'type':_0x1096b4['STRING']}),_0x95d27[_0x566d6a('0x20')](_0x566d6a('0x28'),_0x566d6a('0x30'),{'type':_0x1096b4[_0x566d6a('0x16')]}),_0x95d27[_0x566d6a('0x3')](_0x566d6a('0x21')),_0x95d27[_0x566d6a('0x3')](_0x566d6a('0x14')),_0x95d27[_0x566d6a('0x20')](_0x566d6a('0x1d'),_0x566d6a('0x15'),{'type':_0x1096b4['STRING']}),_0x95d27[_0x566d6a('0x20')](_0x566d6a('0x1d'),_0x566d6a('0x10'),{'type':_0x1096b4[_0x566d6a('0x16')]}),_0x95d27['addColumn'](_0x566d6a('0x1d'),'IntervalId',{'type':_0x1096b4[_0x566d6a('0xb')](0xb)}),_0x95d27['query'](_0x566d6a('0x33')),_0x95d27['addColumn'](_0x566d6a('0x5'),_0x566d6a('0x1c'),{'type':_0x1096b4['BOOLEAN'],'defaultValue':![]}),_0x95d27['addColumn']('report_queue','transfertype',{'type':_0x1096b4[_0x566d6a('0x16')],'comment':_0x566d6a('0x25')}),_0x95d27['addColumn'](_0x566d6a('0x5'),_0x566d6a('0x1a'),{'type':_0x1096b4[_0x566d6a('0x16')]}),_0x95d27[_0x566d6a('0x20')](_0x566d6a('0x5'),_0x566d6a('0xf'),{'type':_0x1096b4[_0x566d6a('0x16')]}),_0x95d27[_0x566d6a('0x20')](_0x566d6a('0x35'),'questionId',{'type':_0x1096b4[_0x566d6a('0x16')]}),_0x95d27[_0x566d6a('0x20')](_0x566d6a('0x24'),_0x566d6a('0x1b'),{'type':_0x1096b4['STRING']}),_0x95d27[_0x566d6a('0x20')](_0x566d6a('0x8'),_0x566d6a('0x2b'),{'type':_0x1096b4[_0x566d6a('0x2f')],'defaultValue':!![]}),_0x95d27[_0x566d6a('0x3')](_0x566d6a('0x19')),_0x95d27[_0x566d6a('0x3')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x95d27['query'](_0x566d6a('0x1f')),_0x95d27[_0x566d6a('0x3')](_0x566d6a('0xa')),_0x95d27[_0x566d6a('0x3')](_0x566d6a('0x34')),_0x95d27[_0x566d6a('0x31')](_0x249d98);});},'down':function(){}}; \ No newline at end of file +const a910_0x19a3=['prototype','FORWARD,\x20BLIND,\x20ATTENDED','chat_websites','facebook','team_has_sms_queues','questionId','query\x20%s','queryInterface','Added\x20column\x20%s\x20to\x20%s','info','token','phoneBarUnansweredCallBadge','sms_queues','transferuniqueid','addColumn','ALTER\x20TABLE\x20chat_websites\x20ADD\x20CONSTRAINT\x20chat_websites_ibfk_2\x20FOREIGN\x20KEY\x20(IntervalId)\x20REFERENCES\x20tools_intervals(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','report_queue','sms_dispositions','join','dropTable','timezone','STRING','final','sms_accounts','then','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','enqueue','table\x20dropped\x20%s','user_has_sms_interactions','changeColumn','sms_applications','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','catch','exports','sms_interactions','sequence','user_has_sms_queues','cm_contacts','BOOLEAN','addIndex','sequelize','../config/logger','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x275\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','tail','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x274\x27,\x20\x27dial\x27,\x20\x27${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','query'];(function(_0x1aeedf,_0x19a39c){const _0x7b4688=function(_0x4681a1){while(--_0x4681a1){_0x1aeedf['push'](_0x1aeedf['shift']());}};_0x7b4688(++_0x19a39c);}(a910_0x19a3,0x15e));const a910_0x7b46=function(_0x1aeedf,_0x19a39c){_0x1aeedf=_0x1aeedf-0x0;let _0x7b4688=a910_0x19a3[_0x1aeedf];return _0x7b4688;};const _0x75d7fc=a910_0x7b46;'use strict';const logger=require(_0x75d7fc('0x24'))('migration'),Sequence=function(){};Sequence[_0x75d7fc('0x2a')][_0x75d7fc('0x15')]=function(_0x4681a1){const _0x2bf0ab=_0x75d7fc;this[_0x2bf0ab('0x27')]=this[_0x2bf0ab('0x27')]?this[_0x2bf0ab('0x27')]['finally'](_0x4681a1):_0x4681a1();};const Migration=function(_0x4690c3){const _0x30cb13=_0x75d7fc;this[_0x30cb13('0x0')]=_0x4690c3,this[_0x30cb13('0x1e')]=new Sequence();};Migration['prototype'][_0x75d7fc('0x18')]=function(_0x1757e7,_0x14fd35,_0x183bd7){const _0x5b6407=_0x75d7fc,_0xfcfa92=this;this[_0x5b6407('0x1e')][_0x5b6407('0x15')](function(){const _0x437121=_0x5b6407;return _0xfcfa92[_0x437121('0x0')][_0x437121('0x18')](_0x1757e7,_0x14fd35,_0x183bd7)['then'](function(){const _0x3f2704=_0x437121;logger[_0x3f2704('0x2')](_0x3f2704('0x9'),_0x14fd35,_0x1757e7);})['catch'](function(_0xec6b99){const _0x562f74=_0x437121;logger[_0x562f74('0x2')](JSON['stringify'](_0xec6b99));});});},Migration['prototype'][_0x75d7fc('0x7')]=function(_0x573b38,_0x1e795b,_0x33d547){const _0xe78f37=_0x75d7fc,_0x3a952c=this;this[_0xe78f37('0x1e')][_0xe78f37('0x15')](function(){const _0x17e71c=_0xe78f37;return _0x3a952c[_0x17e71c('0x0')]['addColumn'](_0x573b38,_0x1e795b,_0x33d547)[_0x17e71c('0x13')](function(){const _0x14f2fe=_0x17e71c;logger['info'](_0x14f2fe('0x1'),_0x1e795b,_0x573b38);})[_0x17e71c('0x1b')](function(_0x2b7a5d){const _0x59b587=_0x17e71c;logger[_0x59b587('0x2')](JSON[_0x59b587('0xa')](_0x2b7a5d));});});},Migration[_0x75d7fc('0x2a')][_0x75d7fc('0xe')]=function(_0x574225){const _0x2c4be5=_0x75d7fc,_0x2a21c9=this;this[_0x2c4be5('0x1e')][_0x2c4be5('0x15')](function(){const _0x850d2=_0x2c4be5;return _0x2a21c9[_0x850d2('0x0')]['dropTable'](_0x574225,{'force':!![]})[_0x850d2('0x13')](function(){const _0x5a5b2b=_0x850d2;logger[_0x5a5b2b('0x2')](_0x5a5b2b('0x16'),_0x574225);})['catch'](function(_0x493493){const _0x3c0cce=_0x850d2;logger['info'](JSON[_0x3c0cce('0xa')](_0x493493));});});},Migration[_0x75d7fc('0x2a')][_0x75d7fc('0x22')]=function(_0x4a5d54,_0x40a46a,_0x500eaa){const _0x2b1eb0=_0x75d7fc,_0x2f882b=this;this[_0x2b1eb0('0x1e')]['enqueue'](function(){const _0xfe68a4=_0x2b1eb0;return _0x2f882b['queryInterface'][_0xfe68a4('0x22')](_0x4a5d54,_0x40a46a,{'indexName':_0x500eaa})['then'](function(){const _0x311019=_0xfe68a4;logger[_0x311019('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x4a5d54,_0x40a46a[_0x311019('0xd')](','),_0x500eaa);})['catch'](function(_0x56e327){const _0xa7323f=_0xfe68a4;logger[_0xa7323f('0x2')](JSON['stringify'](_0x56e327));});});},Migration[_0x75d7fc('0x2a')][_0x75d7fc('0x29')]=function(_0x296dc1){const _0x36570a=_0x75d7fc,_0x54bc14=this;this[_0x36570a('0x1e')][_0x36570a('0x15')](function(){const _0x3467da=_0x36570a;return _0x54bc14[_0x3467da('0x0')][_0x3467da('0x23')]['query'](_0x296dc1)[_0x3467da('0x13')](function(){const _0x5a42b1=_0x3467da;logger[_0x5a42b1('0x2')](_0x5a42b1('0x30'),_0x296dc1);})[_0x3467da('0x1b')](function(_0x539077){const _0x43f210=_0x3467da;logger['info'](JSON[_0x43f210('0xa')](_0x539077));});});},Migration['prototype'][_0x75d7fc('0x11')]=function(_0x1c6b32){const _0x2663d7=_0x75d7fc;this['sequence'][_0x2663d7('0x15')](function(){return _0x1c6b32();});},module[_0x75d7fc('0x1c')]={'up':function(_0x3583d1,_0x1f5ba7){return new Promise(function(_0x44df5f){const _0x608347=a910_0x7b46,_0x391131=new Migration(_0x3583d1);_0x391131[_0x608347('0xe')]('sms_messages'),_0x391131[_0x608347('0xe')](_0x608347('0xc')),_0x391131[_0x608347('0xe')](_0x608347('0x19')),_0x391131[_0x608347('0xe')](_0x608347('0x17')),_0x391131[_0x608347('0xe')](_0x608347('0x1d')),_0x391131[_0x608347('0xe')](_0x608347('0x2e')),_0x391131[_0x608347('0xe')](_0x608347('0x1f')),_0x391131['dropTable'](_0x608347('0x5')),_0x391131[_0x608347('0xe')](_0x608347('0x12')),_0x391131[_0x608347('0x7')]('cm_contacts',_0x608347('0x2d'),{'type':_0x1f5ba7[_0x608347('0x10')]}),_0x391131[_0x608347('0x7')](_0x608347('0x20'),'twitter',{'type':_0x1f5ba7[_0x608347('0x10')]}),_0x391131['query'](_0x608347('0x26')),_0x391131[_0x608347('0x29')]('ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId'),_0x391131['addColumn'](_0x608347('0x2c'),_0x608347('0xf'),{'type':_0x1f5ba7[_0x608347('0x10')]}),_0x391131[_0x608347('0x7')](_0x608347('0x2c'),_0x608347('0x3'),{'type':_0x1f5ba7['STRING']}),_0x391131[_0x608347('0x7')](_0x608347('0x2c'),'IntervalId',{'type':_0x1f5ba7['INTEGER'](0xb)}),_0x391131[_0x608347('0x29')](_0x608347('0x8')),_0x391131[_0x608347('0x7')](_0x608347('0xb'),'transfer',{'type':_0x1f5ba7[_0x608347('0x21')],'defaultValue':![]}),_0x391131[_0x608347('0x7')](_0x608347('0xb'),'transfertype',{'type':_0x1f5ba7[_0x608347('0x10')],'comment':_0x608347('0x2b')}),_0x391131[_0x608347('0x7')](_0x608347('0xb'),'transferexten',{'type':_0x1f5ba7['STRING']}),_0x391131[_0x608347('0x7')](_0x608347('0xb'),_0x608347('0x6'),{'type':_0x1f5ba7[_0x608347('0x10')]}),_0x391131[_0x608347('0x7')]('report_jscripty_answers','questionId',{'type':_0x1f5ba7[_0x608347('0x10')]}),_0x391131[_0x608347('0x7')]('report_jscripty_questions',_0x608347('0x2f'),{'type':_0x1f5ba7['STRING']}),_0x391131['addColumn']('users',_0x608347('0x4'),{'type':_0x1f5ba7[_0x608347('0x21')],'defaultValue':!![]}),_0x391131[_0x608347('0x29')](_0x608347('0x14')),_0x391131['query'](_0x608347('0x1a')),_0x391131['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x391131[_0x608347('0x29')](_0x608347('0x28')),_0x391131[_0x608347('0x29')](_0x608347('0x25')),_0x391131[_0x608347('0x11')](_0x44df5f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.32.js b/server/migrations/2.0.32.js index b2989f5..72c42b8 100644 --- a/server/migrations/2.0.32.js +++ b/server/migrations/2.0.32.js @@ -1 +1 @@ -var a911_0x178a=['exports'];(function(_0x1974ba,_0x178a5c){var _0x406236=function(_0x38bedc){while(--_0x38bedc){_0x1974ba['push'](_0x1974ba['shift']());}};_0x406236(++_0x178a5c);}(a911_0x178a,0x1cf));var a911_0x4062=function(_0x1974ba,_0x178a5c){_0x1974ba=_0x1974ba-0x0;var _0x406236=a911_0x178a[_0x1974ba];return _0x406236;};var _0x433ecc=a911_0x4062;'use strict';module[_0x433ecc('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a911_0xb8a0=['exports'];(function(_0x21adec,_0xb8a044){var _0x6f9650=function(_0x433d4c){while(--_0x433d4c){_0x21adec['push'](_0x21adec['shift']());}};_0x6f9650(++_0xb8a044);}(a911_0xb8a0,0xab));var a911_0x6f96=function(_0x21adec,_0xb8a044){_0x21adec=_0x21adec-0x0;var _0x6f9650=a911_0xb8a0[_0x21adec];return _0x6f9650;};var _0xbf96a9=a911_0x6f96;'use strict';module[_0xbf96a9('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.33.js b/server/migrations/2.0.33.js index 1498bb8..7c13d38 100644 --- a/server/migrations/2.0.33.js +++ b/server/migrations/2.0.33.js @@ -1 +1 @@ -const a912_0x940b=['then','inspect','pathTranscript','Agent','removeColumn','rejectMethod','ratingStarsNumber','ratingMessage','closingMessageButton','timeout','team_has_fax_queues','enqueue','user_has_fax_rooms','color','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','email','STRING','cm_hopper','table\x20dropped\x20%s','fax_interactions','sequence','acceptUrl','fax_rooms','addIndex\x20%s\x20%s\x20%s','sms_messages','fax_applications','Removed\x20column\x20%s\x20from\x20%s','final','addColumn','fax_queues','fax_attachments','stringify','query\x20%s','join','info','user_has_chat_queues','prototype','closeUrl','tail','sequelize','changeColumn','assigned','fax_accounts','chat_interactions','priority','BOOLEAN','dropTable','user_has_openchannel_queues','forwardOfflineAddress','forwardTranscript','ratingValue','closingMessage','Added\x20column\x20%s\x20to\x20%s','mailTranscript','finally','forwardOffline','acceptMethod','util','addIndex','chat_websites','user_has_fax_interactions','user_has_fax_queues','exports','mapKeyOffline','INTEGER','thumb','ratingType','catch','fax_messages','#9f946a','query','TEXT','Send','color_button'];(function(_0xae2621,_0x940b74){const _0x4f8ade=function(_0x5ebab5){while(--_0x5ebab5){_0xae2621['push'](_0xae2621['shift']());}};_0x4f8ade(++_0x940b74);}(a912_0x940b,0x1af));const a912_0x4f8a=function(_0xae2621,_0x940b74){_0xae2621=_0xae2621-0x0;let _0x4f8ade=a912_0x940b[_0xae2621];return _0x4f8ade;};const _0x25c2c1=a912_0x4f8a;'use strict';const logger=require('../config/logger')('migration'),util=require(_0x25c2c1('0x2')),Sequence=function(){};Sequence[_0x25c2c1('0x38')][_0x25c2c1('0x1e')]=function(_0x5ebab5){const _0x16169c=_0x25c2c1;this[_0x16169c('0x3a')]=this[_0x16169c('0x3a')]?this[_0x16169c('0x3a')][_0x16169c('0x4a')](_0x5ebab5):_0x5ebab5();};const Migration=function(_0x710ee4){const _0x4682d7=_0x25c2c1;this[_0x4682d7('0x21')]=_0x710ee4,this[_0x4682d7('0x28')]=new Sequence();};Migration['prototype'][_0x25c2c1('0x3c')]=function(_0x4a85e6,_0x290409,_0x25827c){const _0x4bcbef=_0x25c2c1,_0x5c223e=this;this[_0x4bcbef('0x28')][_0x4bcbef('0x1e')](function(){const _0xaef860=_0x4bcbef;return _0x5c223e[_0xaef860('0x21')][_0xaef860('0x3c')](_0x4a85e6,_0x290409,_0x25827c)[_0xaef860('0x13')](function(){const _0x3c3ddf=_0xaef860;logger[_0x3c3ddf('0x36')](_0x3c3ddf('0x22'),_0x290409,_0x4a85e6);})[_0xaef860('0xc')](function(_0x51af66){const _0x1249dc=_0xaef860;logger[_0x1249dc('0x36')](JSON[_0x1249dc('0x33')](_0x51af66));});});},Migration[_0x25c2c1('0x38')][_0x25c2c1('0x30')]=function(_0x397172,_0x5822c9,_0x1acf6a){const _0x21582b=_0x25c2c1,_0x22c859=this;this['sequence'][_0x21582b('0x1e')](function(){const _0x2ec1d4=_0x21582b;return _0x22c859[_0x2ec1d4('0x21')][_0x2ec1d4('0x30')](_0x397172,_0x5822c9,_0x1acf6a)[_0x2ec1d4('0x13')](function(){const _0x2f23f3=_0x2ec1d4;logger[_0x2f23f3('0x36')](_0x2f23f3('0x48'),_0x5822c9,_0x397172);})[_0x2ec1d4('0xc')](function(_0x305962){logger['info'](JSON['stringify'](_0x305962));});});},Migration[_0x25c2c1('0x38')][_0x25c2c1('0x42')]=function(_0x1beec9){const _0x56027e=_0x25c2c1,_0x3aa698=this;this[_0x56027e('0x28')][_0x56027e('0x1e')](function(){const _0x496f68=_0x56027e;return _0x3aa698[_0x496f68('0x21')][_0x496f68('0x42')](_0x1beec9,{'force':!![]})[_0x496f68('0x13')](function(){const _0x309967=_0x496f68;logger[_0x309967('0x36')](_0x309967('0x26'),_0x1beec9);})[_0x496f68('0xc')](function(_0x2be238){const _0x7a62ce=_0x496f68;logger[_0x7a62ce('0x36')](JSON['stringify'](_0x2be238));});});},Migration['prototype'][_0x25c2c1('0x3')]=function(_0x38b917,_0x1cfaa1,_0x1d6efe){const _0x4922e5=_0x25c2c1,_0x431339=this;this[_0x4922e5('0x28')]['enqueue'](function(){const _0x27ecdf=_0x4922e5;return _0x431339[_0x27ecdf('0x21')][_0x27ecdf('0x3')](_0x38b917,_0x1cfaa1,{'indexName':_0x1d6efe})[_0x27ecdf('0x13')](function(){const _0x516299=_0x27ecdf;logger[_0x516299('0x36')](_0x516299('0x2b'),_0x38b917,_0x1cfaa1[_0x516299('0x35')](','),_0x1d6efe);})[_0x27ecdf('0xc')](function(_0x291380){const _0x3b8162=_0x27ecdf;logger[_0x3b8162('0x36')](JSON[_0x3b8162('0x33')](_0x291380));});});},Migration[_0x25c2c1('0x38')][_0x25c2c1('0xf')]=function(_0x512db5){const _0x1c70a2=this;this['sequence']['enqueue'](function(){const _0x77f071=a912_0x4f8a;return _0x1c70a2[_0x77f071('0x21')][_0x77f071('0x3b')][_0x77f071('0xf')](_0x512db5)['then'](function(){const _0x20c9a4=_0x77f071;logger[_0x20c9a4('0x36')](_0x20c9a4('0x34'),_0x512db5);})['catch'](function(_0x34a0f5){const _0x2e1512=_0x77f071;logger[_0x2e1512('0x36')](JSON[_0x2e1512('0x33')](_0x34a0f5));});});},Migration['prototype']['removeColumn']=function(_0x4edb15,_0x2555f9){const _0x176ee2=_0x25c2c1,_0x330047=this;this[_0x176ee2('0x28')][_0x176ee2('0x1e')](function(){const _0x2da427=_0x176ee2;return _0x330047[_0x2da427('0x21')]['removeColumn'](_0x4edb15,_0x2555f9)[_0x2da427('0x13')](function(){const _0x13d568=_0x2da427;logger[_0x13d568('0x36')](_0x13d568('0x2e'),_0x2555f9,_0x4edb15);})['catch'](function(_0x47bb1b){const _0x5f4466=_0x2da427;logger[_0x5f4466('0x36')](util[_0x5f4466('0x14')](_0x47bb1b,{'showHidden':![],'depth':null}));});});},Migration[_0x25c2c1('0x38')][_0x25c2c1('0x2f')]=function(_0x18fec2){const _0x4ff4dd=_0x25c2c1;this[_0x4ff4dd('0x28')]['enqueue'](function(){return _0x18fec2();});},module[_0x25c2c1('0x7')]={'up':function(_0x30b54c,_0x3ff48e){return new Promise(function(_0x58e923){const _0x2e62b3=a912_0x4f8a,_0x2f3215=new Migration(_0x30b54c);_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),'agentAlias',{'type':_0x3ff48e[_0x2e62b3('0x24')],'defaultValue':_0x2e62b3('0x16')}),_0x2f3215[_0x2e62b3('0x30')]('chat_websites',_0x2e62b3('0x8'),{'type':_0x3ff48e[_0x2e62b3('0x24')],'defaultValue':_0x2e62b3('0x23')}),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),'sitepic',{'type':_0x3ff48e[_0x2e62b3('0x10')]}),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),_0x2e62b3('0x47'),{'type':_0x3ff48e[_0x2e62b3('0x10')]}),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),_0x2e62b3('0x1b'),{'type':_0x3ff48e[_0x2e62b3('0x24')],'defaultValue':_0x2e62b3('0x11')}),_0x2f3215['addColumn']('chat_websites','enableRating',{'type':_0x3ff48e[_0x2e62b3('0x41')],'defaultValue':![]}),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),_0x2e62b3('0xb'),{'type':_0x3ff48e['ENUM']('star',_0x2e62b3('0xa')),'defaultValue':'star'}),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),_0x2e62b3('0x19'),{'type':_0x3ff48e[_0x2e62b3('0x9')],'defaultValue':0x5}),_0x2f3215[_0x2e62b3('0x30')]('chat_interactions',_0x2e62b3('0x46'),{'type':_0x3ff48e[_0x2e62b3('0x9')]}),_0x2f3215[_0x2e62b3('0x30')]('chat_interactions',_0x2e62b3('0x1a'),{'type':_0x3ff48e[_0x2e62b3('0x10')]}),_0x2f3215['addColumn'](_0x2e62b3('0x3f'),_0x2e62b3('0x15'),{'type':_0x3ff48e[_0x2e62b3('0x10')]}),_0x2f3215['addColumn']('chat_interactions',_0x2e62b3('0x49'),{'type':_0x3ff48e[_0x2e62b3('0x24')]}),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),_0x2e62b3('0x45'),{'type':_0x3ff48e[_0x2e62b3('0x41')],'defaultValue':![]}),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),_0x2e62b3('0x0'),{'type':_0x3ff48e['BOOLEAN'],'defaultValue':![]}),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x4'),_0x2e62b3('0x44'),{'type':_0x3ff48e['STRING'],'validate':{'isEmail':!![]}}),_0x2f3215[_0x2e62b3('0x3c')](_0x2e62b3('0x4'),_0x2e62b3('0x20'),{'type':_0x3ff48e[_0x2e62b3('0x24')],'allowNull':![],'defaultValue':_0x2e62b3('0xe')}),_0x2f3215['changeColumn'](_0x2e62b3('0x4'),_0x2e62b3('0x12'),{'type':_0x3ff48e[_0x2e62b3('0x24')],'allowNull':![],'defaultValue':_0x2e62b3('0xe')}),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0x32')),_0x2f3215['dropTable'](_0x2e62b3('0x1f')),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0x2a')),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0xd')),_0x2f3215[_0x2e62b3('0x42')]('fax_dispositions'),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0x2d')),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0x5')),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0x27')),_0x2f3215['dropTable'](_0x2e62b3('0x1d')),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0x6')),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0x31')),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x3e'),'fidelity'),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x3e'),_0x2e62b3('0x1c')),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x3e'),_0x2e62b3('0x29')),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x3e'),'rejectUrl'),_0x2f3215[_0x2e62b3('0x17')]('fax_accounts',_0x2e62b3('0x1')),_0x2f3215[_0x2e62b3('0x17')]('fax_accounts',_0x2e62b3('0x18')),_0x2f3215['removeColumn'](_0x2e62b3('0x3e'),'actions'),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x3e'),_0x2e62b3('0x39')),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x3e'),'closeMethod'),_0x2f3215['removeColumn'](_0x2e62b3('0x37'),_0x2e62b3('0x3d')),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x37'),'queue'),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x43'),'assigned'),_0x2f3215[_0x2e62b3('0x17')](_0x2e62b3('0x43'),'queue'),_0x2f3215[_0x2e62b3('0x30')](_0x2e62b3('0x25'),_0x2e62b3('0x40'),{'type':_0x3ff48e[_0x2e62b3('0x9')](0x2)['UNSIGNED'],'defaultValue':0x2}),_0x2f3215['addIndex'](_0x2e62b3('0x25'),[_0x2e62b3('0x40')],_0x2e62b3('0x40')),_0x2f3215[_0x2e62b3('0x42')](_0x2e62b3('0x2c')),_0x2f3215['final'](_0x58e923);});},'down':function(){}}; \ No newline at end of file +const a912_0x20c6=['forwardTranscript','ratingValue','stringify','chat_websites','forwardOfflineAddress','user_has_chat_queues','closingMessageButton','ratingMessage','addIndex\x20%s\x20%s\x20%s','final','closingMessage','UNSIGNED','email','actions','queryInterface','removeColumn','dropTable','fax_attachments','timeout','user_has_openchannel_queues','prototype','fax_messages','Agent','BOOLEAN','finally','color_button','table\x20dropped\x20%s','Send','#9f946a','changeColumn','sms_messages','fax_accounts','fidelity','catch','fax_rooms','STRING','addColumn','team_has_fax_queues','Changed\x20column\x20%s\x20in\x20table\x20%s','user_has_fax_rooms','thumb','cm_hopper','TEXT','rejectMethod','color','addIndex','sequelize','query','INTEGER','acceptMethod','mapKeyOffline','join','star','queue','../config/logger','ratingType','priority','pathTranscript','sitepic','rejectUrl','fax_interactions','sequence','enqueue','fax_queues','user_has_fax_interactions','assigned','tail','closeMethod','fax_dispositions','user_has_fax_queues','agentAlias','Added\x20column\x20%s\x20to\x20%s','chat_interactions','then','ratingStarsNumber','info','mailTranscript','inspect'];(function(_0x2d1d75,_0x20c61f){const _0x3b28d3=function(_0x2b300c){while(--_0x2b300c){_0x2d1d75['push'](_0x2d1d75['shift']());}};_0x3b28d3(++_0x20c61f);}(a912_0x20c6,0x1e0));const a912_0x3b28=function(_0x2d1d75,_0x20c61f){_0x2d1d75=_0x2d1d75-0x0;let _0x3b28d3=a912_0x20c6[_0x2d1d75];return _0x3b28d3;};const _0x5858d3=a912_0x3b28;'use strict';const logger=require(_0x5858d3('0x2a'))('migration'),util=require('util'),Sequence=function(){};Sequence['prototype'][_0x5858d3('0x32')]=function(_0x2b300c){const _0x2b46fc=_0x5858d3;this['tail']=this[_0x2b46fc('0x36')]?this[_0x2b46fc('0x36')][_0x2b46fc('0xc')](_0x2b300c):_0x2b300c();};const Migration=function(_0x2d5a7a){const _0x2338aa=_0x5858d3;this[_0x2338aa('0x2')]=_0x2d5a7a,this[_0x2338aa('0x31')]=new Sequence();};Migration['prototype'][_0x5858d3('0x11')]=function(_0x10307e,_0x238612,_0x12b4eb){const _0x2b3a57=_0x5858d3,_0x1a23ee=this;this[_0x2b3a57('0x31')][_0x2b3a57('0x32')](function(){const _0x20e6e6=_0x2b3a57;return _0x1a23ee[_0x20e6e6('0x2')][_0x20e6e6('0x11')](_0x10307e,_0x238612,_0x12b4eb)[_0x20e6e6('0x3d')](function(){const _0x2789e=_0x20e6e6;logger[_0x2789e('0x3f')](_0x2789e('0x1a'),_0x238612,_0x10307e);})[_0x20e6e6('0x15')](function(_0x2c48ad){const _0x36d5cf=_0x20e6e6;logger['info'](JSON[_0x36d5cf('0x44')](_0x2c48ad));});});},Migration[_0x5858d3('0x8')]['addColumn']=function(_0x4085d2,_0x59016a,_0x149797){const _0x385ff4=_0x5858d3,_0x2f2aab=this;this[_0x385ff4('0x31')]['enqueue'](function(){const _0x1af649=_0x385ff4;return _0x2f2aab[_0x1af649('0x2')]['addColumn'](_0x4085d2,_0x59016a,_0x149797)[_0x1af649('0x3d')](function(){const _0x9a33fb=_0x1af649;logger[_0x9a33fb('0x3f')](_0x9a33fb('0x3b'),_0x59016a,_0x4085d2);})['catch'](function(_0x476f46){const _0x3d048f=_0x1af649;logger[_0x3d048f('0x3f')](JSON[_0x3d048f('0x44')](_0x476f46));});});},Migration[_0x5858d3('0x8')][_0x5858d3('0x4')]=function(_0x464379){const _0xba9ada=_0x5858d3,_0x43f9dc=this;this[_0xba9ada('0x31')][_0xba9ada('0x32')](function(){const _0x4de01b=_0xba9ada;return _0x43f9dc[_0x4de01b('0x2')][_0x4de01b('0x4')](_0x464379,{'force':!![]})['then'](function(){const _0x17c279=_0x4de01b;logger[_0x17c279('0x3f')](_0x17c279('0xe'),_0x464379);})[_0x4de01b('0x15')](function(_0xcb4ac5){const _0x4a0b0c=_0x4de01b;logger[_0x4a0b0c('0x3f')](JSON[_0x4a0b0c('0x44')](_0xcb4ac5));});});},Migration[_0x5858d3('0x8')][_0x5858d3('0x21')]=function(_0xc832e3,_0x585503,_0x14ba6f){const _0x214540=_0x5858d3,_0x5deeba=this;this[_0x214540('0x31')][_0x214540('0x32')](function(){const _0x1ccdc7=_0x214540;return _0x5deeba['queryInterface']['addIndex'](_0xc832e3,_0x585503,{'indexName':_0x14ba6f})[_0x1ccdc7('0x3d')](function(){const _0x9ce96=_0x1ccdc7;logger[_0x9ce96('0x3f')](_0x9ce96('0x4a'),_0xc832e3,_0x585503[_0x9ce96('0x27')](','),_0x14ba6f);})['catch'](function(_0x1804a1){const _0x46079d=_0x1ccdc7;logger[_0x46079d('0x3f')](JSON[_0x46079d('0x44')](_0x1804a1));});});},Migration['prototype'][_0x5858d3('0x23')]=function(_0x4e7958){const _0x25ee0a=_0x5858d3,_0x255084=this;this[_0x25ee0a('0x31')]['enqueue'](function(){const _0x37ae66=_0x25ee0a;return _0x255084[_0x37ae66('0x2')][_0x37ae66('0x22')]['query'](_0x4e7958)['then'](function(){const _0x40555d=_0x37ae66;logger[_0x40555d('0x3f')]('query\x20%s',_0x4e7958);})[_0x37ae66('0x15')](function(_0x3a594b){const _0x5b9a1b=_0x37ae66;logger['info'](JSON[_0x5b9a1b('0x44')](_0x3a594b));});});},Migration[_0x5858d3('0x8')][_0x5858d3('0x3')]=function(_0x3ee7fa,_0x2c1146){const _0x131061=_0x5858d3,_0x4d2b1b=this;this[_0x131061('0x31')]['enqueue'](function(){const _0x28948d=_0x131061;return _0x4d2b1b['queryInterface'][_0x28948d('0x3')](_0x3ee7fa,_0x2c1146)['then'](function(){const _0x1d853c=_0x28948d;logger[_0x1d853c('0x3f')]('Removed\x20column\x20%s\x20from\x20%s',_0x2c1146,_0x3ee7fa);})[_0x28948d('0x15')](function(_0x49777f){const _0x15ec93=_0x28948d;logger['info'](util[_0x15ec93('0x41')](_0x49777f,{'showHidden':![],'depth':null}));});});},Migration[_0x5858d3('0x8')][_0x5858d3('0x4b')]=function(_0xec311f){const _0x2911ae=_0x5858d3;this[_0x2911ae('0x31')]['enqueue'](function(){return _0xec311f();});},module['exports']={'up':function(_0x566ede,_0x1046b5){return new Promise(function(_0x4f9e75){const _0x5bd173=a912_0x3b28,_0x2efeca=new Migration(_0x566ede);_0x2efeca['addColumn'](_0x5bd173('0x45'),_0x5bd173('0x3a'),{'type':_0x1046b5[_0x5bd173('0x17')],'defaultValue':_0x5bd173('0xa')}),_0x2efeca['addColumn']('chat_websites',_0x5bd173('0x26'),{'type':_0x1046b5['STRING'],'defaultValue':_0x5bd173('0x0')}),_0x2efeca['addColumn'](_0x5bd173('0x45'),_0x5bd173('0x2e'),{'type':_0x1046b5[_0x5bd173('0x1e')]}),_0x2efeca[_0x5bd173('0x18')](_0x5bd173('0x45'),_0x5bd173('0x4c'),{'type':_0x1046b5['TEXT']}),_0x2efeca[_0x5bd173('0x18')](_0x5bd173('0x45'),_0x5bd173('0x48'),{'type':_0x1046b5[_0x5bd173('0x17')],'defaultValue':_0x5bd173('0xf')}),_0x2efeca['addColumn'](_0x5bd173('0x45'),'enableRating',{'type':_0x1046b5[_0x5bd173('0xb')],'defaultValue':![]}),_0x2efeca[_0x5bd173('0x18')](_0x5bd173('0x45'),_0x5bd173('0x2b'),{'type':_0x1046b5['ENUM']('star',_0x5bd173('0x1c')),'defaultValue':_0x5bd173('0x28')}),_0x2efeca[_0x5bd173('0x18')](_0x5bd173('0x45'),_0x5bd173('0x3e'),{'type':_0x1046b5[_0x5bd173('0x24')],'defaultValue':0x5}),_0x2efeca[_0x5bd173('0x18')]('chat_interactions',_0x5bd173('0x43'),{'type':_0x1046b5[_0x5bd173('0x24')]}),_0x2efeca[_0x5bd173('0x18')](_0x5bd173('0x3c'),_0x5bd173('0x49'),{'type':_0x1046b5[_0x5bd173('0x1e')]}),_0x2efeca[_0x5bd173('0x18')]('chat_interactions',_0x5bd173('0x2d'),{'type':_0x1046b5[_0x5bd173('0x1e')]}),_0x2efeca[_0x5bd173('0x18')]('chat_interactions',_0x5bd173('0x40'),{'type':_0x1046b5[_0x5bd173('0x17')]}),_0x2efeca[_0x5bd173('0x18')]('chat_websites',_0x5bd173('0x42'),{'type':_0x1046b5[_0x5bd173('0xb')],'defaultValue':![]}),_0x2efeca[_0x5bd173('0x18')](_0x5bd173('0x45'),'forwardOffline',{'type':_0x1046b5[_0x5bd173('0xb')],'defaultValue':![]}),_0x2efeca[_0x5bd173('0x18')](_0x5bd173('0x45'),_0x5bd173('0x46'),{'type':_0x1046b5[_0x5bd173('0x17')],'validate':{'isEmail':!![]}}),_0x2efeca['changeColumn']('chat_websites',_0x5bd173('0x20'),{'type':_0x1046b5['STRING'],'allowNull':![],'defaultValue':_0x5bd173('0x10')}),_0x2efeca[_0x5bd173('0x11')](_0x5bd173('0x45'),_0x5bd173('0xd'),{'type':_0x1046b5['STRING'],'allowNull':![],'defaultValue':_0x5bd173('0x10')}),_0x2efeca['dropTable'](_0x5bd173('0x5')),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x1b')),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x16')),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x9')),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x38')),_0x2efeca['dropTable']('fax_applications'),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x34')),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x30')),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x19')),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x39')),_0x2efeca[_0x5bd173('0x4')](_0x5bd173('0x33')),_0x2efeca['removeColumn'](_0x5bd173('0x13'),_0x5bd173('0x14')),_0x2efeca['removeColumn'](_0x5bd173('0x13'),_0x5bd173('0x6')),_0x2efeca['removeColumn']('fax_accounts','acceptUrl'),_0x2efeca[_0x5bd173('0x3')](_0x5bd173('0x13'),_0x5bd173('0x2f')),_0x2efeca['removeColumn'](_0x5bd173('0x13'),_0x5bd173('0x25')),_0x2efeca['removeColumn'](_0x5bd173('0x13'),_0x5bd173('0x1f')),_0x2efeca[_0x5bd173('0x3')]('fax_accounts',_0x5bd173('0x1')),_0x2efeca['removeColumn']('fax_accounts','closeUrl'),_0x2efeca[_0x5bd173('0x3')](_0x5bd173('0x13'),_0x5bd173('0x37')),_0x2efeca[_0x5bd173('0x3')](_0x5bd173('0x47'),'assigned'),_0x2efeca[_0x5bd173('0x3')]('user_has_chat_queues',_0x5bd173('0x29')),_0x2efeca['removeColumn'](_0x5bd173('0x7'),_0x5bd173('0x35')),_0x2efeca[_0x5bd173('0x3')](_0x5bd173('0x7'),_0x5bd173('0x29')),_0x2efeca[_0x5bd173('0x18')]('cm_hopper','priority',{'type':_0x1046b5['INTEGER'](0x2)[_0x5bd173('0x4d')],'defaultValue':0x2}),_0x2efeca[_0x5bd173('0x21')](_0x5bd173('0x1d'),['priority'],_0x5bd173('0x2c')),_0x2efeca['dropTable'](_0x5bd173('0x12')),_0x2efeca[_0x5bd173('0x4b')](_0x4f9e75);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.34.js b/server/migrations/2.0.34.js index 87255f5..8f7f350 100644 --- a/server/migrations/2.0.34.js +++ b/server/migrations/2.0.34.js @@ -1 +1 @@ -const a913_0x4885=['then','recallme','query\x20%s','table\x20dropped\x20%s','CREATE\x20TABLE\x20`mail_interactions`\x20(\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20`closed`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,\x20\x20\x20\x20\x20\x20\x20`closedAt`\x20datetime\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`disposition`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`note`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`inReplyTo`\x20varchar(190)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`to`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`cc`\x20longtext,\x20\x20\x20\x20\x20\x20\x20`subject`\x20text,\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`ContactId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailAccountId`\x20(`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20KEY\x20`ContactId`\x20(`ContactId`),\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_interactions_ibfk_1`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_interactions_ibfk_2`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_interactions_ibfk_3`\x20FOREIGN\x20KEY\x20(`ContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','closeUrl','mail_messages','voice_recordings','phone','deviceVendor','ALTER\x20TABLE\x20`chat_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','unmanagedMessage','util','Added\x20column\x20%s\x20to\x20%s','inspect','Thanks\x20you\x20for\x20your\x20time!','deviceModel','join','STRING','ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;','catch','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','chat_websites','sequelize','BOOLEAN','sendUnmanaged','team_has_mail_queues','INTEGER','rejectMethod','mail_servers_in','custom','cm_hopper_history','browserVersion','deviceType','../config/logger','query','mail_dispositions','finally','stringify','state','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId','waitingTitle','Changed\x20column\x20%s\x20in\x20table\x20%s','enableUnmanagedNote','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2','fidelity','fax_attachments','skipMessageButton','Skip','dropTable','authToken','addIndex','prototype','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','CREATE\x20TABLE\x20`attachments`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`basename`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`type`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailMessageId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailMessageId`\x20(`MailMessageId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`attachments_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailMessageId`)\x20REFERENCES\x20`mail_messages`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20AUTO_INCREMENT=5\x20DEFAULT\x20CHARSET=utf8;','mail_interactions','chat_interactions','osVersion','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','tail','enableFeedback','mail_applications','mail_servers_out','enqueue','addIndex\x20%s\x20%s\x20%s','sms_accounts','final','removeColumn','userDisposition','CREATE\x20TABLE\x20`mail_messages`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`body`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`read`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`direction`\x20enum(\x27in\x27,\x27out\x27)\x20COLLATE\x20utf8mb4_unicode_ci\x20NOT\x20NULL\x20DEFAULT\x20\x27out\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`messageId`\x20varchar(190)\x20COLLATE\x20utf8mb4_unicode_ci\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`from`\x20varchar(255)\x20COLLATE\x20utf8mb4_unicode_ci\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`to`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`cc`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`bcc`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`subject`\x20text\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`sentAt`\x20datetime\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailInteractionId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`ContactId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailAccountId`\x20(`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailInteractionId`\x20(`MailInteractionId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ContactId`\x20(`ContactId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`messageId`\x20(`messageId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_2`\x20FOREIGN\x20KEY\x20(`MailInteractionId`)\x20REFERENCES\x20`mail_interactions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_3`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_4`\x20FOREIGN\x20KEY\x20(`ContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8mb4\x20COLLATE=utf8mb4_unicode_ci;','rejectUrl','sequence','mail_rooms','mail_accounts','info','Send','whiteLabel','browserName','user_has_mail_rooms','changeColumn','voice_queues','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1','migration','ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1','addColumn','cm_hopper','queryInterface','accountSid','key','conditionAgreement'];(function(_0x525be2,_0x48852a){const _0x39db30=function(_0x8fff4a){while(--_0x8fff4a){_0x525be2['push'](_0x525be2['shift']());}};_0x39db30(++_0x48852a);}(a913_0x4885,0x18b));const a913_0x39db=function(_0x525be2,_0x48852a){_0x525be2=_0x525be2-0x0;let _0x39db30=a913_0x4885[_0x525be2];return _0x39db30;};const _0x5a7b74=a913_0x39db;'use strict';const logger=require(_0x5a7b74('0x59'))(_0x5a7b74('0x2f')),util=require(_0x5a7b74('0x43')),Sequence=function(){};Sequence[_0x5a7b74('0x11')][_0x5a7b74('0x1c')]=function(_0x8fff4a){const _0x1d8a51=_0x5a7b74;this[_0x1d8a51('0x18')]=this[_0x1d8a51('0x18')]?this['tail'][_0x1d8a51('0x2')](_0x8fff4a):_0x8fff4a();};const Migration=function(_0x5b099b){const _0x5ec951=_0x5a7b74;this[_0x5ec951('0x33')]=_0x5b099b,this[_0x5ec951('0x24')]=new Sequence();};Migration[_0x5a7b74('0x11')][_0x5a7b74('0x2c')]=function(_0x51ba26,_0x50bad3,_0x49a2d6){const _0x1725eb=_0x5a7b74,_0x46c6ec=this;this[_0x1725eb('0x24')][_0x1725eb('0x1c')](function(){const _0x5ed334=_0x1725eb;return _0x46c6ec[_0x5ed334('0x33')]['changeColumn'](_0x51ba26,_0x50bad3,_0x49a2d6)['then'](function(){const _0x1f2fe3=_0x5ed334;logger[_0x1f2fe3('0x27')](_0x1f2fe3('0x7'),_0x50bad3,_0x51ba26);})[_0x5ed334('0x4b')](function(_0x4a4a69){const _0x202594=_0x5ed334;logger[_0x202594('0x27')](JSON['stringify'](_0x4a4a69));});});},Migration[_0x5a7b74('0x11')][_0x5a7b74('0x31')]=function(_0x14faac,_0x41a86c,_0x1402c1){const _0x1de8a7=_0x5a7b74,_0x38bcc8=this;this[_0x1de8a7('0x24')][_0x1de8a7('0x1c')](function(){const _0x44edab=_0x1de8a7;return _0x38bcc8[_0x44edab('0x33')][_0x44edab('0x31')](_0x14faac,_0x41a86c,_0x1402c1)[_0x44edab('0x37')](function(){const _0x50b1ba=_0x44edab;logger['info'](_0x50b1ba('0x44'),_0x41a86c,_0x14faac);})[_0x44edab('0x4b')](function(_0x28a601){const _0x3f32f1=_0x44edab;logger[_0x3f32f1('0x27')](JSON['stringify'](_0x28a601));});});},Migration[_0x5a7b74('0x11')][_0x5a7b74('0xe')]=function(_0x32ac84){const _0x661c5d=_0x5a7b74,_0x186e0d=this;this[_0x661c5d('0x24')][_0x661c5d('0x1c')](function(){const _0x7b0a19=_0x661c5d;return _0x186e0d[_0x7b0a19('0x33')][_0x7b0a19('0xe')](_0x32ac84,{'force':!![]})['then'](function(){const _0x34461c=_0x7b0a19;logger[_0x34461c('0x27')](_0x34461c('0x3a'),_0x32ac84);})['catch'](function(_0x23c8ad){logger['info'](JSON['stringify'](_0x23c8ad));});});},Migration[_0x5a7b74('0x11')]['addIndex']=function(_0x44bdc3,_0x5dafd3,_0x40824c){const _0x1cad65=_0x5a7b74,_0x5e7107=this;this['sequence'][_0x1cad65('0x1c')](function(){const _0x495532=_0x1cad65;return _0x5e7107[_0x495532('0x33')][_0x495532('0x10')](_0x44bdc3,_0x5dafd3,{'indexName':_0x40824c})[_0x495532('0x37')](function(){const _0x598728=_0x495532;logger[_0x598728('0x27')](_0x598728('0x1d'),_0x44bdc3,_0x5dafd3[_0x598728('0x48')](','),_0x40824c);})[_0x495532('0x4b')](function(_0x4d84d1){const _0x3d3bbc=_0x495532;logger[_0x3d3bbc('0x27')](JSON[_0x3d3bbc('0x3')](_0x4d84d1));});});},Migration['prototype'][_0x5a7b74('0x0')]=function(_0x5894b9){const _0x416002=_0x5a7b74,_0x28f2b9=this;this['sequence'][_0x416002('0x1c')](function(){const _0x292787=_0x416002;return _0x28f2b9[_0x292787('0x33')][_0x292787('0x4e')][_0x292787('0x0')](_0x5894b9)[_0x292787('0x37')](function(){const _0x3b60eb=_0x292787;logger[_0x3b60eb('0x27')](_0x3b60eb('0x39'),_0x5894b9);})[_0x292787('0x4b')](function(_0x250ba4){const _0x12f3c3=_0x292787;logger[_0x12f3c3('0x27')](JSON[_0x12f3c3('0x3')](_0x250ba4));});});},Migration['prototype'][_0x5a7b74('0x20')]=function(_0x437aaa,_0x33e9cd){const _0x2c1834=_0x5a7b74,_0x4ccb3b=this;this[_0x2c1834('0x24')][_0x2c1834('0x1c')](function(){const _0x50e7d6=_0x2c1834;return _0x4ccb3b[_0x50e7d6('0x33')][_0x50e7d6('0x20')](_0x437aaa,_0x33e9cd)[_0x50e7d6('0x37')](function(){const _0x53cd41=_0x50e7d6;logger[_0x53cd41('0x27')]('Removed\x20column\x20%s\x20from\x20%s',_0x33e9cd,_0x437aaa);})['catch'](function(_0x34384b){const _0x5f43e9=_0x50e7d6;logger[_0x5f43e9('0x27')](util[_0x5f43e9('0x45')](_0x34384b,{'showHidden':![],'depth':null}));});});},Migration[_0x5a7b74('0x11')][_0x5a7b74('0x1f')]=function(_0x965567){const _0x11dd13=_0x5a7b74;this[_0x11dd13('0x24')][_0x11dd13('0x1c')](function(){return _0x965567();});},module['exports']={'up':function(_0x48b1ce,_0x67455a){return new Promise(function(_0x5d994f){const _0x4de89d=a913_0x39db,_0xc33c55=new Migration(_0x48b1ce);_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x4d'),_0x4de89d('0x35'),{'type':_0x67455a['STRING'],'allowNull':![]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x4d'),'forwardTranscriptMessage',{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x4d'),_0x4de89d('0xc'),{'type':_0x67455a[_0x4de89d('0x49')],'defaultValue':_0x4de89d('0xd')}),_0xc33c55[_0x4de89d('0x31')]('chat_websites',_0x4de89d('0x19'),{'type':_0x67455a[_0x4de89d('0x4f')],'defaultValue':![]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x4d'),'enableCustomerWriting',{'type':_0x67455a[_0x4de89d('0x4f')],'defaultValue':![]}),_0xc33c55['addColumn']('chat_websites',_0x4de89d('0x36'),{'type':_0x67455a['BOOLEAN'],'defaultValue':![]}),_0xc33c55['addColumn'](_0x4de89d('0x4d'),_0x4de89d('0x6'),{'type':_0x67455a[_0x4de89d('0x49')],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'}),_0xc33c55['addColumn']('chat_websites','waitingMessage',{'type':_0x67455a[_0x4de89d('0x49')],'defaultValue':'Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.'}),_0xc33c55[_0x4de89d('0x31')]('chat_websites','autoclose',{'type':_0x67455a[_0x4de89d('0x4f')],'defaultValue':!![]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x4d'),_0x4de89d('0x42'),{'type':_0x67455a['STRING'],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'}),_0xc33c55['addColumn'](_0x4de89d('0x4d'),_0x4de89d('0x8'),{'type':_0x67455a['BOOLEAN'],'defaultValue':!![]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x4d'),_0x4de89d('0x50'),{'type':_0x67455a[_0x4de89d('0x49')],'defaultValue':_0x4de89d('0x28')}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x4d'),'skipUnmanaged',{'type':_0x67455a[_0x4de89d('0x49')],'defaultValue':_0x4de89d('0xd')}),_0xc33c55['changeColumn']('chat_websites','closingMessage',{'type':_0x67455a[_0x4de89d('0x49')],'defaultValue':_0x4de89d('0x46')}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x15'),_0x4de89d('0x2a'),{'type':_0x67455a['STRING']}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x15'),_0x4de89d('0x57'),{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55['addColumn'](_0x4de89d('0x15'),'osName',{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55[_0x4de89d('0x31')]('chat_interactions',_0x4de89d('0x16'),{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55['addColumn']('chat_interactions',_0x4de89d('0x47'),{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55['addColumn']('chat_interactions',_0x4de89d('0x40'),{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x15'),_0x4de89d('0x58'),{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55[_0x4de89d('0x31')]('chat_messages','AttachmentId',{'type':_0x67455a[_0x4de89d('0x52')]}),_0xc33c55[_0x4de89d('0x0')](_0x4de89d('0x41')),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x2d'),'dialRecallMeTimeout',{'type':_0x67455a[_0x4de89d('0x52')](0x5)['UNSIGNED'],'defaultValue':0x1e}),_0xc33c55['addColumn'](_0x4de89d('0x2d'),'dialRecallInQueue',{'type':_0x67455a['BOOLEAN'],'defaultValue':![]}),_0xc33c55['addColumn'](_0x4de89d('0x32'),'recallme',{'type':_0x67455a['BOOLEAN'],'defaultValue':![]}),_0xc33c55[_0x4de89d('0x31')]('cm_hopper_final',_0x4de89d('0x38'),{'type':_0x67455a[_0x4de89d('0x4f')],'defaultValue':![]}),_0xc33c55['addColumn'](_0x4de89d('0x56'),_0x4de89d('0x38'),{'type':_0x67455a[_0x4de89d('0x4f')],'defaultValue':![]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x3e'),_0x4de89d('0x21'),{'type':_0x67455a['STRING']}),_0xc33c55['dropTable'](_0x4de89d('0x2b')),_0xc33c55[_0x4de89d('0x0')](_0x4de89d('0x2e')),_0xc33c55[_0x4de89d('0x0')](_0x4de89d('0x12')),_0xc33c55[_0x4de89d('0xe')](_0x4de89d('0x25')),_0xc33c55[_0x4de89d('0x0')](_0x4de89d('0x30')),_0xc33c55[_0x4de89d('0x0')](_0x4de89d('0x5')),_0xc33c55['query'](_0x4de89d('0x4c')),_0xc33c55[_0x4de89d('0x0')](_0x4de89d('0x17')),_0xc33c55['query'](_0x4de89d('0x9')),_0xc33c55['query']('ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId'),_0xc33c55['dropTable'](_0x4de89d('0x3d')),_0xc33c55['dropTable']('mail_attachments'),_0xc33c55[_0x4de89d('0xe')](_0x4de89d('0x1')),_0xc33c55['dropTable'](_0x4de89d('0x1a')),_0xc33c55[_0x4de89d('0xe')]('user_has_mail_interactions'),_0xc33c55[_0x4de89d('0xe')](_0x4de89d('0x14')),_0xc33c55[_0x4de89d('0xe')](_0x4de89d('0x51')),_0xc33c55['dropTable']('user_has_mail_queues'),_0xc33c55['dropTable']('mail_queues'),_0xc33c55[_0x4de89d('0x20')]('mail_accounts',_0x4de89d('0xa')),_0xc33c55[_0x4de89d('0x20')](_0x4de89d('0x26'),'timeout'),_0xc33c55[_0x4de89d('0x20')](_0x4de89d('0x26'),_0x4de89d('0x29')),_0xc33c55[_0x4de89d('0x20')](_0x4de89d('0x26'),'acceptUrl'),_0xc33c55[_0x4de89d('0x20')]('mail_accounts',_0x4de89d('0x23')),_0xc33c55['removeColumn']('mail_accounts','acceptMethod'),_0xc33c55[_0x4de89d('0x20')](_0x4de89d('0x26'),_0x4de89d('0x53')),_0xc33c55['removeColumn']('mail_accounts','actions'),_0xc33c55['removeColumn'](_0x4de89d('0x26'),_0x4de89d('0x3c')),_0xc33c55['removeColumn'](_0x4de89d('0x26'),'closeMethod'),_0xc33c55[_0x4de89d('0x20')]('mail_accounts','signature'),_0xc33c55[_0x4de89d('0x20')]('mail_accounts',_0x4de89d('0x55')),_0xc33c55[_0x4de89d('0x31')]('mail_accounts','active',{'type':_0x67455a[_0x4de89d('0x4f')],'defaultValue':!![]}),_0xc33c55['removeColumn'](_0x4de89d('0x1b'),_0x4de89d('0x4')),_0xc33c55[_0x4de89d('0xe')](_0x4de89d('0x54')),_0xc33c55[_0x4de89d('0x0')](_0x4de89d('0x3b')),_0xc33c55['query'](_0x4de89d('0x22')),_0xc33c55[_0x4de89d('0x0')](_0x4de89d('0x13')),_0xc33c55[_0x4de89d('0xe')](_0x4de89d('0xb')),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x1e'),_0x4de89d('0x3f'),{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x1e'),_0x4de89d('0x34'),{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x1e'),_0x4de89d('0xf'),{'type':_0x67455a[_0x4de89d('0x49')]}),_0xc33c55['addColumn'](_0x4de89d('0x1e'),'key',{'type':_0x67455a[_0x4de89d('0x49')],'allowNull':![]}),_0xc33c55['query'](_0x4de89d('0x4a')),_0xc33c55[_0x4de89d('0x31')]('openchannel_accounts','key',{'type':_0x67455a[_0x4de89d('0x49')],'allowNull':![]}),_0xc33c55[_0x4de89d('0x31')]('fax_accounts',_0x4de89d('0x35'),{'type':_0x67455a['STRING'],'allowNull':![]}),_0xc33c55[_0x4de89d('0x31')](_0x4de89d('0x26'),_0x4de89d('0x35'),{'type':_0x67455a['STRING'],'allowNull':![]}),_0xc33c55[_0x4de89d('0x1f')](_0x5d994f);});},'down':function(){}}; \ No newline at end of file +const a913_0x1c08=['enableFeedback','prototype','fax_accounts','ALTER\x20TABLE\x20`chat_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','Thanks\x20you\x20for\x20your\x20time!','queryInterface','changeColumn','cm_hopper','info','unmanagedMessage','timeout','actions','custom','sms_accounts','openchannel_accounts','Added\x20column\x20%s\x20to\x20%s','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','enableUnmanagedNote','addIndex','skipMessageButton','mail_accounts','autoclose','addColumn','tail','Removed\x20column\x20%s\x20from\x20%s','osName','mail_interactions','query\x20%s','waitingTitle','CREATE\x20TABLE\x20`mail_interactions`\x20(\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20`closed`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,\x20\x20\x20\x20\x20\x20\x20`closedAt`\x20datetime\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`disposition`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`note`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`inReplyTo`\x20varchar(190)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`to`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`cc`\x20longtext,\x20\x20\x20\x20\x20\x20\x20`subject`\x20text,\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20`ContactId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailAccountId`\x20(`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20KEY\x20`ContactId`\x20(`ContactId`),\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_interactions_ibfk_1`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_interactions_ibfk_2`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_interactions_ibfk_3`\x20FOREIGN\x20KEY\x20(`ContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','browserName','CREATE\x20TABLE\x20`attachments`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`basename`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`type`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailMessageId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailMessageId`\x20(`MailMessageId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`attachments_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailMessageId`)\x20REFERENCES\x20`mail_messages`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20AUTO_INCREMENT=5\x20DEFAULT\x20CHARSET=utf8;','user_has_mail_interactions','user_has_mail_rooms','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','then','dropTable','signature','mail_servers_in','phone','enqueue','removeColumn','user_has_mail_queues','sequence','INTEGER','Skip','../config/logger','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','deviceVendor','Your\x20request\x20has\x20not\x20been\x20processed.','closingMessage','chat_interactions','AttachmentId','ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;','BOOLEAN','final','finally','cm_hopper_history','whiteLabel','mail_queues','fax_attachments','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2','table\x20dropped\x20%s','key','join','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','state','skipUnmanaged','mail_messages','recallme','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1','query','userDisposition','mail_servers_out','Changed\x20column\x20%s\x20in\x20table\x20%s','voice_recordings','inspect','CREATE\x20TABLE\x20`mail_messages`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`body`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`read`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`direction`\x20enum(\x27in\x27,\x27out\x27)\x20COLLATE\x20utf8mb4_unicode_ci\x20NOT\x20NULL\x20DEFAULT\x20\x27out\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`messageId`\x20varchar(190)\x20COLLATE\x20utf8mb4_unicode_ci\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`from`\x20varchar(255)\x20COLLATE\x20utf8mb4_unicode_ci\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`to`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`cc`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`bcc`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`subject`\x20text\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`sentAt`\x20datetime\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailInteractionId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`ContactId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailAccountId`\x20(`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailInteractionId`\x20(`MailInteractionId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ContactId`\x20(`ContactId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`messageId`\x20(`messageId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_2`\x20FOREIGN\x20KEY\x20(`MailInteractionId`)\x20REFERENCES\x20`mail_interactions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_3`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_4`\x20FOREIGN\x20KEY\x20(`ContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8mb4\x20COLLATE=utf8mb4_unicode_ci;','browserVersion','sendUnmanaged','mail_dispositions','acceptUrl','stringify','catch','util','closeUrl','osVersion','chat_websites','voice_queues','STRING','UNSIGNED','addIndex\x20%s\x20%s\x20%s','waitingMessage','fidelity','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','enableCustomerWriting','migration','cm_hopper_final','deviceType'];(function(_0x325aaa,_0x1c08da){const _0x40b4a8=function(_0x40514d){while(--_0x40514d){_0x325aaa['push'](_0x325aaa['shift']());}};_0x40b4a8(++_0x1c08da);}(a913_0x1c08,0x17d));const a913_0x40b4=function(_0x325aaa,_0x1c08da){_0x325aaa=_0x325aaa-0x0;let _0x40b4a8=a913_0x1c08[_0x325aaa];return _0x40b4a8;};const _0x1a2c0a=a913_0x40b4;'use strict';const logger=require(_0x1a2c0a('0x3d'))(_0x1a2c0a('0xc')),util=require(_0x1a2c0a('0x0')),Sequence=function(){};Sequence[_0x1a2c0a('0x10')][_0x1a2c0a('0x37')]=function(_0x40514d){const _0x597a2a=_0x1a2c0a;this[_0x597a2a('0x26')]=this[_0x597a2a('0x26')]?this[_0x597a2a('0x26')][_0x597a2a('0x47')](_0x40514d):_0x40514d();};const Migration=function(_0x319b83){const _0x427f26=_0x1a2c0a;this[_0x427f26('0x14')]=_0x319b83,this['sequence']=new Sequence();};Migration[_0x1a2c0a('0x10')]['changeColumn']=function(_0x433ab0,_0x5a6cdf,_0x49b1aa){const _0x7a258=_0x1a2c0a,_0xa9939d=this;this[_0x7a258('0x3a')][_0x7a258('0x37')](function(){const _0x38d1eb=_0x7a258;return _0xa9939d['queryInterface'][_0x38d1eb('0x15')](_0x433ab0,_0x5a6cdf,_0x49b1aa)['then'](function(){const _0x590b54=_0x38d1eb;logger[_0x590b54('0x17')](_0x590b54('0x59'),_0x5a6cdf,_0x433ab0);})['catch'](function(_0x4f301d){const _0x28e374=_0x38d1eb;logger[_0x28e374('0x17')](JSON[_0x28e374('0x61')](_0x4f301d));});});},Migration[_0x1a2c0a('0x10')][_0x1a2c0a('0x25')]=function(_0x471eaa,_0x2caf7e,_0x2e0722){const _0x317b60=_0x1a2c0a,_0x554712=this;this[_0x317b60('0x3a')][_0x317b60('0x37')](function(){const _0x152ee7=_0x317b60;return _0x554712[_0x152ee7('0x14')][_0x152ee7('0x25')](_0x471eaa,_0x2caf7e,_0x2e0722)[_0x152ee7('0x32')](function(){const _0x3ce90e=_0x152ee7;logger[_0x3ce90e('0x17')](_0x3ce90e('0x1e'),_0x2caf7e,_0x471eaa);})[_0x152ee7('0x62')](function(_0x3abff5){const _0xe8b048=_0x152ee7;logger[_0xe8b048('0x17')](JSON['stringify'](_0x3abff5));});});},Migration[_0x1a2c0a('0x10')]['dropTable']=function(_0x146a9a){const _0x353fc2=_0x1a2c0a,_0x363b09=this;this[_0x353fc2('0x3a')][_0x353fc2('0x37')](function(){const _0x368341=_0x353fc2;return _0x363b09[_0x368341('0x14')]['dropTable'](_0x146a9a,{'force':!![]})['then'](function(){const _0x7a7fe5=_0x368341;logger[_0x7a7fe5('0x17')](_0x7a7fe5('0x4d'),_0x146a9a);})['catch'](function(_0x24f19f){const _0x4d1228=_0x368341;logger[_0x4d1228('0x17')](JSON['stringify'](_0x24f19f));});});},Migration[_0x1a2c0a('0x10')][_0x1a2c0a('0x21')]=function(_0x53ffc7,_0x21e201,_0x14c0df){const _0x23719c=_0x1a2c0a,_0x2e2007=this;this[_0x23719c('0x3a')][_0x23719c('0x37')](function(){const _0x102353=_0x23719c;return _0x2e2007[_0x102353('0x14')]['addIndex'](_0x53ffc7,_0x21e201,{'indexName':_0x14c0df})[_0x102353('0x32')](function(){const _0xb8cbc2=_0x102353;logger[_0xb8cbc2('0x17')](_0xb8cbc2('0x7'),_0x53ffc7,_0x21e201[_0xb8cbc2('0x4f')](','),_0x14c0df);})[_0x102353('0x62')](function(_0x506b69){const _0x5d06fd=_0x102353;logger['info'](JSON[_0x5d06fd('0x61')](_0x506b69));});});},Migration['prototype'][_0x1a2c0a('0x56')]=function(_0x47647b){const _0x46f291=_0x1a2c0a,_0x565032=this;this[_0x46f291('0x3a')][_0x46f291('0x37')](function(){const _0x30685e=_0x46f291;return _0x565032[_0x30685e('0x14')]['sequelize'][_0x30685e('0x56')](_0x47647b)[_0x30685e('0x32')](function(){const _0x2792c3=_0x30685e;logger[_0x2792c3('0x17')](_0x2792c3('0x2a'),_0x47647b);})[_0x30685e('0x62')](function(_0x3b51fb){const _0x4e998d=_0x30685e;logger[_0x4e998d('0x17')](JSON[_0x4e998d('0x61')](_0x3b51fb));});});},Migration[_0x1a2c0a('0x10')][_0x1a2c0a('0x38')]=function(_0x42d3ca,_0x481e30){const _0x5210b3=_0x1a2c0a,_0x408673=this;this[_0x5210b3('0x3a')][_0x5210b3('0x37')](function(){const _0x2b0fc6=_0x5210b3;return _0x408673['queryInterface'][_0x2b0fc6('0x38')](_0x42d3ca,_0x481e30)[_0x2b0fc6('0x32')](function(){const _0x58e2d5=_0x2b0fc6;logger[_0x58e2d5('0x17')](_0x58e2d5('0x27'),_0x481e30,_0x42d3ca);})[_0x2b0fc6('0x62')](function(_0x181100){const _0x25a21a=_0x2b0fc6;logger[_0x25a21a('0x17')](util[_0x25a21a('0x5b')](_0x181100,{'showHidden':![],'depth':null}));});});},Migration[_0x1a2c0a('0x10')][_0x1a2c0a('0x46')]=function(_0x1bd0c2){const _0x4d40aa=_0x1a2c0a;this['sequence'][_0x4d40aa('0x37')](function(){return _0x1bd0c2();});},module['exports']={'up':function(_0x1b9799,_0x2ea155){return new Promise(function(_0x210967){const _0x1aea01=a913_0x40b4,_0x584719=new Migration(_0x1b9799);_0x584719[_0x1aea01('0x25')](_0x1aea01('0x3'),_0x1aea01('0x4e'),{'type':_0x2ea155['STRING'],'allowNull':![]}),_0x584719[_0x1aea01('0x25')]('chat_websites','forwardTranscriptMessage',{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x3'),_0x1aea01('0x22'),{'type':_0x2ea155[_0x1aea01('0x5')],'defaultValue':_0x1aea01('0x3c')}),_0x584719[_0x1aea01('0x25')]('chat_websites',_0x1aea01('0xf'),{'type':_0x2ea155[_0x1aea01('0x45')],'defaultValue':![]}),_0x584719['addColumn'](_0x1aea01('0x3'),_0x1aea01('0xb'),{'type':_0x2ea155[_0x1aea01('0x45')],'defaultValue':![]}),_0x584719[_0x1aea01('0x25')]('chat_websites','conditionAgreement',{'type':_0x2ea155['BOOLEAN'],'defaultValue':![]}),_0x584719[_0x1aea01('0x25')]('chat_websites',_0x1aea01('0x2b'),{'type':_0x2ea155['STRING'],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'}),_0x584719['addColumn'](_0x1aea01('0x3'),_0x1aea01('0x8'),{'type':_0x2ea155[_0x1aea01('0x5')],'defaultValue':_0x1aea01('0x1f')}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x3'),_0x1aea01('0x24'),{'type':_0x2ea155['BOOLEAN'],'defaultValue':!![]}),_0x584719[_0x1aea01('0x25')]('chat_websites',_0x1aea01('0x18'),{'type':_0x2ea155[_0x1aea01('0x5')],'defaultValue':_0x1aea01('0x40')}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x3'),_0x1aea01('0x20'),{'type':_0x2ea155[_0x1aea01('0x45')],'defaultValue':!![]}),_0x584719[_0x1aea01('0x25')]('chat_websites',_0x1aea01('0x5e'),{'type':_0x2ea155[_0x1aea01('0x5')],'defaultValue':'Send'}),_0x584719['addColumn']('chat_websites',_0x1aea01('0x52'),{'type':_0x2ea155[_0x1aea01('0x5')],'defaultValue':_0x1aea01('0x3c')}),_0x584719['changeColumn'](_0x1aea01('0x3'),_0x1aea01('0x41'),{'type':_0x2ea155['STRING'],'defaultValue':_0x1aea01('0x13')}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x42'),_0x1aea01('0x2d'),{'type':_0x2ea155['STRING']}),_0x584719['addColumn'](_0x1aea01('0x42'),_0x1aea01('0x5d'),{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719[_0x1aea01('0x25')]('chat_interactions',_0x1aea01('0x28'),{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x42'),_0x1aea01('0x2'),{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x42'),'deviceModel',{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719[_0x1aea01('0x25')]('chat_interactions',_0x1aea01('0x3f'),{'type':_0x2ea155['STRING']}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x42'),_0x1aea01('0xe'),{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719[_0x1aea01('0x25')]('chat_messages',_0x1aea01('0x43'),{'type':_0x2ea155[_0x1aea01('0x3b')]}),_0x584719[_0x1aea01('0x56')](_0x1aea01('0x12')),_0x584719[_0x1aea01('0x25')]('voice_queues','dialRecallMeTimeout',{'type':_0x2ea155[_0x1aea01('0x3b')](0x5)[_0x1aea01('0x6')],'defaultValue':0x1e}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x4'),'dialRecallInQueue',{'type':_0x2ea155[_0x1aea01('0x45')],'defaultValue':![]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x16'),_0x1aea01('0x54'),{'type':_0x2ea155[_0x1aea01('0x45')],'defaultValue':![]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0xd'),_0x1aea01('0x54'),{'type':_0x2ea155['BOOLEAN'],'defaultValue':![]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x48'),_0x1aea01('0x54'),{'type':_0x2ea155[_0x1aea01('0x45')],'defaultValue':![]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x5a'),_0x1aea01('0x57'),{'type':_0x2ea155['STRING']}),_0x584719[_0x1aea01('0x33')](_0x1aea01('0x30')),_0x584719[_0x1aea01('0x56')](_0x1aea01('0x55')),_0x584719[_0x1aea01('0x56')](_0x1aea01('0xa')),_0x584719[_0x1aea01('0x33')]('mail_rooms'),_0x584719[_0x1aea01('0x56')]('ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1'),_0x584719[_0x1aea01('0x56')]('ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId'),_0x584719['query'](_0x1aea01('0x50')),_0x584719['query'](_0x1aea01('0x3e')),_0x584719[_0x1aea01('0x56')](_0x1aea01('0x4c')),_0x584719[_0x1aea01('0x56')](_0x1aea01('0x31')),_0x584719[_0x1aea01('0x33')](_0x1aea01('0x53')),_0x584719['dropTable']('mail_attachments'),_0x584719['dropTable'](_0x1aea01('0x5f')),_0x584719[_0x1aea01('0x33')]('mail_applications'),_0x584719[_0x1aea01('0x33')](_0x1aea01('0x2f')),_0x584719['dropTable'](_0x1aea01('0x29')),_0x584719[_0x1aea01('0x33')]('team_has_mail_queues'),_0x584719[_0x1aea01('0x33')](_0x1aea01('0x39')),_0x584719[_0x1aea01('0x33')](_0x1aea01('0x4a')),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x23'),_0x1aea01('0x9')),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x23'),_0x1aea01('0x19')),_0x584719['removeColumn'](_0x1aea01('0x23'),_0x1aea01('0x49')),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x23'),_0x1aea01('0x60')),_0x584719[_0x1aea01('0x38')]('mail_accounts','rejectUrl'),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x23'),'acceptMethod'),_0x584719['removeColumn']('mail_accounts','rejectMethod'),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x23'),_0x1aea01('0x1a')),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x23'),_0x1aea01('0x1')),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x23'),'closeMethod'),_0x584719[_0x1aea01('0x38')]('mail_accounts',_0x1aea01('0x34')),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x23'),_0x1aea01('0x1b')),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x23'),'active',{'type':_0x2ea155[_0x1aea01('0x45')],'defaultValue':!![]}),_0x584719[_0x1aea01('0x38')](_0x1aea01('0x58'),_0x1aea01('0x51')),_0x584719[_0x1aea01('0x33')](_0x1aea01('0x35')),_0x584719[_0x1aea01('0x56')](_0x1aea01('0x2c')),_0x584719['query'](_0x1aea01('0x5c')),_0x584719[_0x1aea01('0x56')](_0x1aea01('0x2e')),_0x584719['dropTable'](_0x1aea01('0x4b')),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x1c'),_0x1aea01('0x36'),{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719[_0x1aea01('0x25')]('sms_accounts','accountSid',{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x1c'),'authToken',{'type':_0x2ea155[_0x1aea01('0x5')]}),_0x584719['addColumn'](_0x1aea01('0x1c'),_0x1aea01('0x4e'),{'type':_0x2ea155[_0x1aea01('0x5')],'allowNull':![]}),_0x584719[_0x1aea01('0x56')](_0x1aea01('0x44')),_0x584719['addColumn'](_0x1aea01('0x1d'),_0x1aea01('0x4e'),{'type':_0x2ea155[_0x1aea01('0x5')],'allowNull':![]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x11'),_0x1aea01('0x4e'),{'type':_0x2ea155[_0x1aea01('0x5')],'allowNull':![]}),_0x584719[_0x1aea01('0x25')](_0x1aea01('0x23'),_0x1aea01('0x4e'),{'type':_0x2ea155['STRING'],'allowNull':![]}),_0x584719[_0x1aea01('0x46')](_0x210967);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.35.js b/server/migrations/2.0.35.js index 664df45..3a23670 100644 --- a/server/migrations/2.0.35.js +++ b/server/migrations/2.0.35.js @@ -1 +1 @@ -const a914_0x3db1=['userFullname','sequence','DATE','dialOrderByScheduledAt','ENUM','catch','final','ContactId','body','report_openchannel_session','phoneBarEnableDtmfTone','signature','report_sms','users','chat_websites','voice_queues','retry','report_sms_session','inReplyTo','UserId','attach','finally','info','ASC','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','report_fax','TEXT','report_mail','mail_messages','read','cm_hopper_history','report_fax_session','removeColumn','phoneBarAutoAnswerDelay','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','campaigns','MailAccountId','inspect','joins','STRING','out','mail_accounts','subject','editedat','enqueue','mail_interactions','fromId','join','tail','text','exports','report_chat_session','analytics_default_reports','ratingType','Added\x20column\x20%s\x20to\x20%s','thumb','query\x20%s','queryInterface','table\x20dropped\x20%s','../config/logger','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_1`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`UserId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20users(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','INTEGER','util','report_mail_session','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_2`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailInteractionId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_interactions(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','chat_interactions','attachment','BOOLEAN','addIndex','customerIp','edited','accountId','query','MailInteractionId','status','dropTable','stringify','enableCustomerAttachment','auto','offline_chat_button','long','addColumn','sentAt','report_openchannel','html','accountName','star','DESC','changeColumn','messageId','reason','then','bcc'];(function(_0x58a8c1,_0x3db129){const _0xf78444=function(_0x4a981c){while(--_0x4a981c){_0x58a8c1['push'](_0x58a8c1['shift']());}};_0xf78444(++_0x3db129);}(a914_0x3db1,0x172));const a914_0xf784=function(_0x58a8c1,_0x3db129){_0x58a8c1=_0x58a8c1-0x0;let _0xf78444=a914_0x3db1[_0x58a8c1];return _0xf78444;};const _0x4d5535=a914_0xf784;'use strict';const logger=require(_0x4d5535('0x4b'))('migration'),util=require(_0x4d5535('0x4f')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x4a981c){const _0x457b8e=_0x4d5535;this[_0x457b8e('0x40')]=this[_0x457b8e('0x40')]?this[_0x457b8e('0x40')][_0x457b8e('0x23')](_0x4a981c):_0x4a981c();};const Migration=function(_0x521c32){const _0x26d20a=_0x4d5535;this[_0x26d20a('0x49')]=_0x521c32,this[_0x26d20a('0xf')]=new Sequence();};Migration['prototype'][_0x4d5535('0x9')]=function(_0x2eaad1,_0x1ee000,_0x5b4ae1){const _0x43b3eb=_0x4d5535,_0x5cd172=this;this['sequence'][_0x43b3eb('0x3c')](function(){const _0xd2bccb=_0x43b3eb;return _0x5cd172[_0xd2bccb('0x49')]['changeColumn'](_0x2eaad1,_0x1ee000,_0x5b4ae1)[_0xd2bccb('0xc')](function(){const _0x1924f5=_0xd2bccb;logger['info'](_0x1924f5('0x32'),_0x1ee000,_0x2eaad1);})[_0xd2bccb('0x13')](function(_0x1bb35c){const _0x5a7c47=_0xd2bccb;logger[_0x5a7c47('0x24')](JSON[_0x5a7c47('0x5d')](_0x1bb35c));});});},Migration['prototype'][_0x4d5535('0x2')]=function(_0x48f5dc,_0x485c17,_0x4b216b){const _0x2cbd90=_0x4d5535,_0x2b7f2f=this;this[_0x2cbd90('0xf')][_0x2cbd90('0x3c')](function(){const _0x479ba9=_0x2cbd90;return _0x2b7f2f[_0x479ba9('0x49')][_0x479ba9('0x2')](_0x48f5dc,_0x485c17,_0x4b216b)[_0x479ba9('0xc')](function(){const _0x24ec57=_0x479ba9;logger[_0x24ec57('0x24')](_0x24ec57('0x46'),_0x485c17,_0x48f5dc);})[_0x479ba9('0x13')](function(_0x1dca34){const _0x471ad7=_0x479ba9;logger[_0x471ad7('0x24')](JSON[_0x471ad7('0x5d')](_0x1dca34));});});},Migration['prototype'][_0x4d5535('0x5c')]=function(_0x5ea33c){const _0x3d3b80=_0x4d5535,_0x5e249a=this;this[_0x3d3b80('0xf')]['enqueue'](function(){const _0x55be9d=_0x3d3b80;return _0x5e249a[_0x55be9d('0x49')]['dropTable'](_0x5ea33c,{'force':!![]})[_0x55be9d('0xc')](function(){const _0x545202=_0x55be9d;logger[_0x545202('0x24')](_0x545202('0x4a'),_0x5ea33c);})[_0x55be9d('0x13')](function(_0x2b4290){const _0x152508=_0x55be9d;logger[_0x152508('0x24')](JSON[_0x152508('0x5d')](_0x2b4290));});});},Migration[_0x4d5535('0x31')][_0x4d5535('0x55')]=function(_0x5c0711,_0x261cba,_0x4906cf){const _0x41b549=_0x4d5535,_0x44fee3=this;this[_0x41b549('0xf')][_0x41b549('0x3c')](function(){const _0x5d8deb=_0x41b549;return _0x44fee3[_0x5d8deb('0x49')][_0x5d8deb('0x55')](_0x5c0711,_0x261cba,{'indexName':_0x4906cf})[_0x5d8deb('0xc')](function(){const _0x4511ea=_0x5d8deb;logger[_0x4511ea('0x24')](_0x4511ea('0x27'),_0x5c0711,_0x261cba[_0x4511ea('0x3f')](','),_0x4906cf);})[_0x5d8deb('0x13')](function(_0x45255d){const _0x45a2fe=_0x5d8deb;logger['info'](JSON[_0x45a2fe('0x5d')](_0x45255d));});});},Migration[_0x4d5535('0x31')][_0x4d5535('0x59')]=function(_0x5edcfb){const _0x99cba6=_0x4d5535,_0x4e9127=this;this['sequence'][_0x99cba6('0x3c')](function(){const _0x337ba4=_0x99cba6;return _0x4e9127['queryInterface']['sequelize'][_0x337ba4('0x59')](_0x5edcfb)[_0x337ba4('0xc')](function(){const _0x532bf2=_0x337ba4;logger['info'](_0x532bf2('0x48'),_0x5edcfb);})[_0x337ba4('0x13')](function(_0x7f7955){const _0x1ad75b=_0x337ba4;logger['info'](JSON[_0x1ad75b('0x5d')](_0x7f7955));});});},Migration[_0x4d5535('0x31')]['removeColumn']=function(_0x25aea7,_0x5591bc){const _0x22f8b1=_0x4d5535,_0x3450f9=this;this[_0x22f8b1('0xf')][_0x22f8b1('0x3c')](function(){const _0x2aa6ff=_0x22f8b1;return _0x3450f9[_0x2aa6ff('0x49')][_0x2aa6ff('0x2f')](_0x25aea7,_0x5591bc)['then'](function(){const _0x5918f3=_0x2aa6ff;logger[_0x5918f3('0x24')](_0x5918f3('0x26'),_0x5591bc,_0x25aea7);})[_0x2aa6ff('0x13')](function(_0x565a48){const _0x48bb8b=_0x2aa6ff;logger[_0x48bb8b('0x24')](util[_0x48bb8b('0x35')](_0x565a48,{'showHidden':![],'depth':null}));});});},Migration[_0x4d5535('0x31')][_0x4d5535('0x14')]=function(_0x1e9edc){const _0x98caa1=_0x4d5535;this[_0x98caa1('0xf')][_0x98caa1('0x3c')](function(){return _0x1e9edc();});},module[_0x4d5535('0x42')]={'up':function(_0x2af189,_0x2863a0){return new Promise(function(_0x50268c){const _0x3ceca2=a914_0xf784,_0x44754e=new Migration(_0x2af189);_0x44754e['addColumn']('analytics_custom_reports',_0x3ceca2('0x36'),{'type':_0x2863a0[_0x3ceca2('0x29')]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x44'),_0x3ceca2('0x36'),{'type':_0x2863a0[_0x3ceca2('0x29')]}),_0x44754e[_0x3ceca2('0x59')]('ALTER\x20TABLE\x20`chat_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL'),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x1c'),_0x3ceca2('0x0'),{'type':_0x2863a0[_0x3ceca2('0x37')],'defaultValue':'Send'}),_0x44754e['addColumn'](_0x3ceca2('0x1c'),_0x3ceca2('0x5e'),{'type':_0x2863a0[_0x3ceca2('0x54')],'defaultValue':![]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x52'),'referer',{'type':_0x2863a0[_0x3ceca2('0x37')]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x52'),_0x3ceca2('0x56'),{'type':_0x2863a0[_0x3ceca2('0x37')]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x52'),_0x3ceca2('0x45'),{'type':_0x2863a0[_0x3ceca2('0x12')](_0x3ceca2('0x7'),_0x3ceca2('0x47')),'defaultValue':_0x3ceca2('0x7')}),_0x44754e[_0x3ceca2('0x59')]('ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'),_0x44754e[_0x3ceca2('0x2')]('mail_messages',_0x3ceca2('0x16'),{'type':_0x2863a0[_0x3ceca2('0x29')](_0x3ceca2('0x1')),'allowNull':![]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x2b'),_0x3ceca2('0x2c'),{'type':_0x2863a0[_0x3ceca2('0x54')],'defaultValue':![]}),_0x44754e['addColumn'](_0x3ceca2('0x2b'),'direction',{'type':_0x2863a0[_0x3ceca2('0x12')]('in',_0x3ceca2('0x38')),'defaultValue':_0x3ceca2('0x38'),'allowNull':![]}),_0x44754e['changeColumn']('mail_messages',_0x3ceca2('0xa'),{'type':_0x2863a0[_0x3ceca2('0x37')](0xbe)}),_0x44754e[_0x3ceca2('0x2f')](_0x3ceca2('0x2b'),_0x3ceca2('0x20')),_0x44754e[_0x3ceca2('0x9')](_0x3ceca2('0x2b'),'to',{'type':_0x2863a0[_0x3ceca2('0x29')](_0x3ceca2('0x1'))}),_0x44754e[_0x3ceca2('0x9')]('mail_messages','cc',{'type':_0x2863a0['TEXT'](_0x3ceca2('0x1'))}),_0x44754e[_0x3ceca2('0x9')](_0x3ceca2('0x2b'),_0x3ceca2('0xd'),{'type':_0x2863a0['TEXT']('long')}),_0x44754e[_0x3ceca2('0x9')](_0x3ceca2('0x2b'),_0x3ceca2('0x3a'),{'type':_0x2863a0[_0x3ceca2('0x29')]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x2b'),_0x3ceca2('0x3'),{'type':_0x2863a0[_0x3ceca2('0x10')]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x2b'),_0x3ceca2('0x22'),{'type':_0x2863a0[_0x3ceca2('0x4e')],'defaultValue':0x0}),_0x44754e[_0x3ceca2('0x2f')](_0x3ceca2('0x2b'),_0x3ceca2('0x3e')),_0x44754e[_0x3ceca2('0x2f')]('mail_messages',_0x3ceca2('0x53')),_0x44754e[_0x3ceca2('0x2f')](_0x3ceca2('0x2b'),_0x3ceca2('0x41')),_0x44754e[_0x3ceca2('0x2f')](_0x3ceca2('0x2b'),_0x3ceca2('0x5')),_0x44754e[_0x3ceca2('0x2f')](_0x3ceca2('0x2b'),_0x3ceca2('0xb')),_0x44754e[_0x3ceca2('0x2f')]('mail_messages',_0x3ceca2('0x5f')),_0x44754e[_0x3ceca2('0x2f')]('mail_messages',_0x3ceca2('0x5b')),_0x44754e[_0x3ceca2('0x2f')](_0x3ceca2('0x2b'),_0x3ceca2('0x1e')),_0x44754e[_0x3ceca2('0x2f')](_0x3ceca2('0x2b'),'voiceSource'),_0x44754e['removeColumn'](_0x3ceca2('0x2b'),'userName'),_0x44754e[_0x3ceca2('0x2f')](_0x3ceca2('0x2b'),_0x3ceca2('0xe')),_0x44754e['removeColumn'](_0x3ceca2('0x2b'),_0x3ceca2('0x58')),_0x44754e['removeColumn'](_0x3ceca2('0x2b'),_0x3ceca2('0x6')),_0x44754e['removeColumn'](_0x3ceca2('0x2b'),_0x3ceca2('0x5a')),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x2b'),_0x3ceca2('0x34'),{'type':_0x2863a0[_0x3ceca2('0x4e')]}),_0x44754e[_0x3ceca2('0x59')](_0x3ceca2('0x4c')),_0x44754e['addColumn'](_0x3ceca2('0x2b'),_0x3ceca2('0x5a'),{'type':_0x2863a0[_0x3ceca2('0x4e')]}),_0x44754e['query'](_0x3ceca2('0x51')),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x2b'),_0x3ceca2('0x21'),{'type':_0x2863a0['INTEGER']}),_0x44754e[_0x3ceca2('0x59')](_0x3ceca2('0x4d')),_0x44754e['addColumn'](_0x3ceca2('0x2b'),_0x3ceca2('0x15'),{'type':_0x2863a0[_0x3ceca2('0x4e')]}),_0x44754e['query']('ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_4`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ContactId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20cm_contacts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x44754e[_0x3ceca2('0x59')]('ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x3d'),_0x3ceca2('0x22'),{'type':_0x2863a0[_0x3ceca2('0x54')],'defaultValue':![]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x39'),_0x3ceca2('0x19'),{'type':_0x2863a0['TEXT']}),_0x44754e[_0x3ceca2('0x2f')]('tools_templates',_0x3ceca2('0x3a')),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x1b'),_0x3ceca2('0x18'),{'type':_0x2863a0[_0x3ceca2('0x54')],'defaultValue':![]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x1b'),_0x3ceca2('0x30'),{'type':_0x2863a0[_0x3ceca2('0x4e')],'defaultValue':0x0}),_0x44754e[_0x3ceca2('0x5c')](_0x3ceca2('0x4')),_0x44754e[_0x3ceca2('0x5c')](_0x3ceca2('0x17')),_0x44754e[_0x3ceca2('0x5c')]('report_chat'),_0x44754e[_0x3ceca2('0x5c')](_0x3ceca2('0x43')),_0x44754e[_0x3ceca2('0x5c')](_0x3ceca2('0x28')),_0x44754e[_0x3ceca2('0x5c')](_0x3ceca2('0x2e')),_0x44754e[_0x3ceca2('0x5c')](_0x3ceca2('0x2a')),_0x44754e['dropTable'](_0x3ceca2('0x50')),_0x44754e[_0x3ceca2('0x5c')](_0x3ceca2('0x1a')),_0x44754e[_0x3ceca2('0x5c')](_0x3ceca2('0x1f')),_0x44754e['addColumn'](_0x3ceca2('0x2d'),_0x3ceca2('0x3b'),{'type':_0x2863a0['DATE']}),_0x44754e['addColumn'](_0x3ceca2('0x2d'),_0x3ceca2('0x57'),{'type':_0x2863a0['BOOLEAN'],'defaultValue':![]}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x1d'),_0x3ceca2('0x11'),{'type':_0x2863a0[_0x3ceca2('0x12')](_0x3ceca2('0x8'),_0x3ceca2('0x25')),'defaultValue':_0x3ceca2('0x8')}),_0x44754e[_0x3ceca2('0x2')](_0x3ceca2('0x33'),_0x3ceca2('0x11'),{'type':_0x2863a0['ENUM'](_0x3ceca2('0x8'),_0x3ceca2('0x25')),'defaultValue':'DESC'}),_0x44754e[_0x3ceca2('0x14')](_0x50268c);});},'down':function(){}}; \ No newline at end of file +const a914_0x581c=['BOOLEAN','status','report_fax_session','enqueue','report_chat_session','dialOrderByScheduledAt','tools_templates','text','sequelize','report_sms_session','INTEGER','enableCustomerAttachment','MailAccountId','ContactId','referer','offline_chat_button','fromId','body','STRING','phoneBarEnableDtmfTone','attachment','prototype','removeColumn','ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','thumb','Changed\x20column\x20%s\x20in\x20table\x20%s','inReplyTo','tail','addIndex','../config/logger','report_mail','star','table\x20dropped\x20%s','sequence','inspect','mail_interactions','queryInterface','then','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_1`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','out','stringify','retry','migration','report_sms','query','accountName','chat_websites','ENUM','read','messageId','report_openchannel','phoneBarAutoAnswerDelay','joins','campaigns','attach','MailInteractionId','sentAt','exports','DESC','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`UserId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20users(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','users','reason','ratingType','addIndex\x20%s\x20%s\x20%s','mail_messages','report_chat','changeColumn','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_2`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailInteractionId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_interactions(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','auto','direction','info','query\x20%s','ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','editedat','chat_interactions','voiceSource','subject','userFullname','join','final','customerIp','ASC','Added\x20column\x20%s\x20to\x20%s','util','cm_hopper_history','mail_accounts','report_openchannel_session','catch','long','TEXT','DATE','addColumn','dropTable','Send','report_fax'];(function(_0x3ce5c0,_0x581ca7){const _0x533ccc=function(_0x5a6bee){while(--_0x5a6bee){_0x3ce5c0['push'](_0x3ce5c0['shift']());}};_0x533ccc(++_0x581ca7);}(a914_0x581c,0x13a));const a914_0x533c=function(_0x3ce5c0,_0x581ca7){_0x3ce5c0=_0x3ce5c0-0x0;let _0x533ccc=a914_0x581c[_0x3ce5c0];return _0x533ccc;};const _0xb6a611=a914_0x533c;'use strict';const logger=require(_0xb6a611('0x0'))(_0xb6a611('0xd')),util=require(_0xb6a611('0x36')),Sequence=function(){};Sequence[_0xb6a611('0x57')][_0xb6a611('0x45')]=function(_0x5a6bee){const _0x4ce0e9=_0xb6a611;this[_0x4ce0e9('0x5d')]=this[_0x4ce0e9('0x5d')]?this[_0x4ce0e9('0x5d')]['finally'](_0x5a6bee):_0x5a6bee();};const Migration=function(_0x464eb4){const _0x24df7a=_0xb6a611;this[_0x24df7a('0x7')]=_0x464eb4,this[_0x24df7a('0x4')]=new Sequence();};Migration[_0xb6a611('0x57')][_0xb6a611('0x25')]=function(_0x378ead,_0x3211c2,_0x41cfa7){const _0x5bcc42=_0xb6a611,_0xe2921a=this;this[_0x5bcc42('0x4')][_0x5bcc42('0x45')](function(){const _0x36d192=_0x5bcc42;return _0xe2921a[_0x36d192('0x7')][_0x36d192('0x25')](_0x378ead,_0x3211c2,_0x41cfa7)[_0x36d192('0x8')](function(){const _0x52c753=_0x36d192;logger[_0x52c753('0x29')](_0x52c753('0x5b'),_0x3211c2,_0x378ead);})['catch'](function(_0x2e2cf2){const _0x13058d=_0x36d192;logger['info'](JSON[_0x13058d('0xb')](_0x2e2cf2));});});},Migration[_0xb6a611('0x57')][_0xb6a611('0x3e')]=function(_0x4e71cf,_0x987062,_0x317af9){const _0x34cd03=_0xb6a611,_0x1fb25b=this;this[_0x34cd03('0x4')]['enqueue'](function(){const _0x3ef48c=_0x34cd03;return _0x1fb25b[_0x3ef48c('0x7')][_0x3ef48c('0x3e')](_0x4e71cf,_0x987062,_0x317af9)[_0x3ef48c('0x8')](function(){const _0x10eaf1=_0x3ef48c;logger[_0x10eaf1('0x29')](_0x10eaf1('0x35'),_0x987062,_0x4e71cf);})[_0x3ef48c('0x3a')](function(_0x520a61){const _0x2a8e8e=_0x3ef48c;logger[_0x2a8e8e('0x29')](JSON[_0x2a8e8e('0xb')](_0x520a61));});});},Migration[_0xb6a611('0x57')][_0xb6a611('0x3f')]=function(_0x1aa0c3){const _0xefc37b=_0xb6a611,_0x259d62=this;this[_0xefc37b('0x4')][_0xefc37b('0x45')](function(){const _0x4dab46=_0xefc37b;return _0x259d62['queryInterface'][_0x4dab46('0x3f')](_0x1aa0c3,{'force':!![]})[_0x4dab46('0x8')](function(){const _0x3ca357=_0x4dab46;logger[_0x3ca357('0x29')](_0x3ca357('0x3'),_0x1aa0c3);})[_0x4dab46('0x3a')](function(_0x457468){const _0x4679cf=_0x4dab46;logger['info'](JSON[_0x4679cf('0xb')](_0x457468));});});},Migration['prototype'][_0xb6a611('0x5e')]=function(_0x495c14,_0x47745d,_0x379283){const _0x380183=this;this['sequence']['enqueue'](function(){const _0x46bd73=a914_0x533c;return _0x380183['queryInterface'][_0x46bd73('0x5e')](_0x495c14,_0x47745d,{'indexName':_0x379283})[_0x46bd73('0x8')](function(){const _0x28e1a1=_0x46bd73;logger[_0x28e1a1('0x29')](_0x28e1a1('0x22'),_0x495c14,_0x47745d[_0x28e1a1('0x31')](','),_0x379283);})[_0x46bd73('0x3a')](function(_0x1e5f95){const _0x4ca389=_0x46bd73;logger[_0x4ca389('0x29')](JSON[_0x4ca389('0xb')](_0x1e5f95));});});},Migration[_0xb6a611('0x57')][_0xb6a611('0xf')]=function(_0x11cda6){const _0x917c70=this;this['sequence']['enqueue'](function(){const _0x2e4603=a914_0x533c;return _0x917c70[_0x2e4603('0x7')][_0x2e4603('0x4a')][_0x2e4603('0xf')](_0x11cda6)['then'](function(){const _0x3aa78f=_0x2e4603;logger['info'](_0x3aa78f('0x2a'),_0x11cda6);})[_0x2e4603('0x3a')](function(_0x591027){const _0x3ebc2a=_0x2e4603;logger['info'](JSON[_0x3ebc2a('0xb')](_0x591027));});});},Migration['prototype'][_0xb6a611('0x58')]=function(_0x179f87,_0xb22874){const _0x3014af=this;this['sequence']['enqueue'](function(){const _0xc5349e=a914_0x533c;return _0x3014af[_0xc5349e('0x7')][_0xc5349e('0x58')](_0x179f87,_0xb22874)[_0xc5349e('0x8')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0xb22874,_0x179f87);})[_0xc5349e('0x3a')](function(_0x18f72b){const _0x1aea25=_0xc5349e;logger[_0x1aea25('0x29')](util[_0x1aea25('0x5')](_0x18f72b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xb6a611('0x32')]=function(_0x7cbfa7){const _0x401ca2=_0xb6a611;this[_0x401ca2('0x4')][_0x401ca2('0x45')](function(){return _0x7cbfa7();});},module[_0xb6a611('0x1c')]={'up':function(_0x2d2218,_0x4d546b){return new Promise(function(_0x457411){const _0x1e119f=a914_0x533c,_0x2279bf=new Migration(_0x2d2218);_0x2279bf[_0x1e119f('0x3e')]('analytics_custom_reports',_0x1e119f('0x17'),{'type':_0x4d546b['TEXT']}),_0x2279bf[_0x1e119f('0x3e')]('analytics_default_reports',_0x1e119f('0x17'),{'type':_0x4d546b['TEXT']}),_0x2279bf[_0x1e119f('0xf')]('ALTER\x20TABLE\x20`chat_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL'),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x11'),_0x1e119f('0x51'),{'type':_0x4d546b['STRING'],'defaultValue':_0x1e119f('0x40')}),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x11'),_0x1e119f('0x4d'),{'type':_0x4d546b[_0x1e119f('0x42')],'defaultValue':![]}),_0x2279bf[_0x1e119f('0x3e')]('chat_interactions',_0x1e119f('0x50'),{'type':_0x4d546b[_0x1e119f('0x54')]}),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x2d'),_0x1e119f('0x33'),{'type':_0x4d546b[_0x1e119f('0x54')]}),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x2d'),_0x1e119f('0x21'),{'type':_0x4d546b[_0x1e119f('0x12')]('star',_0x1e119f('0x5a')),'defaultValue':_0x1e119f('0x2')}),_0x2279bf[_0x1e119f('0xf')](_0x1e119f('0x59')),_0x2279bf['addColumn'](_0x1e119f('0x23'),_0x1e119f('0x53'),{'type':_0x4d546b[_0x1e119f('0x3c')](_0x1e119f('0x3b')),'allowNull':![]}),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x23'),_0x1e119f('0x13'),{'type':_0x4d546b[_0x1e119f('0x42')],'defaultValue':![]}),_0x2279bf['addColumn'](_0x1e119f('0x23'),_0x1e119f('0x28'),{'type':_0x4d546b[_0x1e119f('0x12')]('in',_0x1e119f('0xa')),'defaultValue':_0x1e119f('0xa'),'allowNull':![]}),_0x2279bf[_0x1e119f('0x25')]('mail_messages',_0x1e119f('0x14'),{'type':_0x4d546b[_0x1e119f('0x54')](0xbe)}),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x5c')),_0x2279bf[_0x1e119f('0x25')](_0x1e119f('0x23'),'to',{'type':_0x4d546b[_0x1e119f('0x3c')](_0x1e119f('0x3b'))}),_0x2279bf[_0x1e119f('0x25')]('mail_messages','cc',{'type':_0x4d546b[_0x1e119f('0x3c')](_0x1e119f('0x3b'))}),_0x2279bf[_0x1e119f('0x25')]('mail_messages','bcc',{'type':_0x4d546b[_0x1e119f('0x3c')](_0x1e119f('0x3b'))}),_0x2279bf[_0x1e119f('0x25')](_0x1e119f('0x23'),_0x1e119f('0x2f'),{'type':_0x4d546b[_0x1e119f('0x3c')]}),_0x2279bf[_0x1e119f('0x3e')]('mail_messages',_0x1e119f('0x1b'),{'type':_0x4d546b[_0x1e119f('0x3d')]}),_0x2279bf['addColumn']('mail_messages','attach',{'type':_0x4d546b[_0x1e119f('0x4c')],'defaultValue':0x0}),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x52')),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x56')),_0x2279bf['removeColumn'](_0x1e119f('0x23'),_0x1e119f('0x49')),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),'html'),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x20')),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x27')),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x43')),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0xc')),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x2e')),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),'userName'),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x30')),_0x2279bf[_0x1e119f('0x58')]('mail_messages','accountId'),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x23'),_0x1e119f('0x10')),_0x2279bf['removeColumn'](_0x1e119f('0x23'),_0x1e119f('0x1a')),_0x2279bf['addColumn'](_0x1e119f('0x23'),_0x1e119f('0x4e'),{'type':_0x4d546b['INTEGER']}),_0x2279bf['query'](_0x1e119f('0x9')),_0x2279bf[_0x1e119f('0x3e')]('mail_messages','MailInteractionId',{'type':_0x4d546b[_0x1e119f('0x4c')]}),_0x2279bf[_0x1e119f('0xf')](_0x1e119f('0x26')),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x23'),'UserId',{'type':_0x4d546b[_0x1e119f('0x4c')]}),_0x2279bf[_0x1e119f('0xf')](_0x1e119f('0x1e')),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x23'),_0x1e119f('0x4f'),{'type':_0x4d546b[_0x1e119f('0x4c')]}),_0x2279bf[_0x1e119f('0xf')]('ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_4`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ContactId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20cm_contacts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x2279bf[_0x1e119f('0xf')](_0x1e119f('0x2b')),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x6'),_0x1e119f('0x19'),{'type':_0x4d546b['BOOLEAN'],'defaultValue':![]}),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x38'),'signature',{'type':_0x4d546b[_0x1e119f('0x3c')]}),_0x2279bf[_0x1e119f('0x58')](_0x1e119f('0x48'),_0x1e119f('0x2f')),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x1f'),_0x1e119f('0x55'),{'type':_0x4d546b[_0x1e119f('0x42')],'defaultValue':![]}),_0x2279bf['addColumn'](_0x1e119f('0x1f'),_0x1e119f('0x16'),{'type':_0x4d546b[_0x1e119f('0x4c')],'defaultValue':0x0}),_0x2279bf[_0x1e119f('0x3f')](_0x1e119f('0x15')),_0x2279bf['dropTable'](_0x1e119f('0x39')),_0x2279bf[_0x1e119f('0x3f')](_0x1e119f('0x24')),_0x2279bf[_0x1e119f('0x3f')](_0x1e119f('0x46')),_0x2279bf[_0x1e119f('0x3f')](_0x1e119f('0x41')),_0x2279bf[_0x1e119f('0x3f')](_0x1e119f('0x44')),_0x2279bf[_0x1e119f('0x3f')](_0x1e119f('0x1')),_0x2279bf[_0x1e119f('0x3f')]('report_mail_session'),_0x2279bf['dropTable'](_0x1e119f('0xe')),_0x2279bf[_0x1e119f('0x3f')](_0x1e119f('0x4b')),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x37'),_0x1e119f('0x2c'),{'type':_0x4d546b[_0x1e119f('0x3d')]}),_0x2279bf['addColumn'](_0x1e119f('0x37'),'edited',{'type':_0x4d546b['BOOLEAN'],'defaultValue':![]}),_0x2279bf[_0x1e119f('0x3e')]('voice_queues',_0x1e119f('0x47'),{'type':_0x4d546b[_0x1e119f('0x12')](_0x1e119f('0x1d'),_0x1e119f('0x34')),'defaultValue':_0x1e119f('0x1d')}),_0x2279bf[_0x1e119f('0x3e')](_0x1e119f('0x18'),'dialOrderByScheduledAt',{'type':_0x4d546b[_0x1e119f('0x12')]('DESC',_0x1e119f('0x34')),'defaultValue':_0x1e119f('0x1d')}),_0x2279bf['final'](_0x457411);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.36.js b/server/migrations/2.0.36.js index c7e7490..e7d7a82 100644 --- a/server/migrations/2.0.36.js +++ b/server/migrations/2.0.36.js @@ -1 +1 @@ -const a915_0x5b0e=['enqueue','table\x20dropped\x20%s','addIndex','sequelize','addColumn','migration','finally','Added\x20column\x20%s\x20to\x20%s','removeColumn','stringify','final','Changed\x20column\x20%s\x20in\x20table\x20%s','info','inspect','changeColumn','INTEGER','prototype','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','query','then','queryInterface','../config/logger','tail','AttachmentId','catch','ALTER\x20TABLE\x20`openchannel_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`openchannel_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','dropTable','openchannel_messages','addIndex\x20%s\x20%s\x20%s','sequence'];(function(_0x40c29a,_0x5b0eff){const _0x43ca7a=function(_0x37f914){while(--_0x37f914){_0x40c29a['push'](_0x40c29a['shift']());}};_0x43ca7a(++_0x5b0eff);}(a915_0x5b0e,0xe0));const a915_0x43ca=function(_0x40c29a,_0x5b0eff){_0x40c29a=_0x40c29a-0x0;let _0x43ca7a=a915_0x5b0e[_0x40c29a];return _0x43ca7a;};const _0x3095f8=a915_0x43ca;'use strict';const logger=require(_0x3095f8('0xf'))(_0x3095f8('0x1d')),util=require('util'),Sequence=function(){};Sequence[_0x3095f8('0x9')][_0x3095f8('0x18')]=function(_0x37f914){const _0x3667c8=_0x3095f8;this[_0x3667c8('0x10')]=this[_0x3667c8('0x10')]?this['tail'][_0x3667c8('0x1e')](_0x37f914):_0x37f914();};const Migration=function(_0x1c0845){const _0x3d6f30=_0x3095f8;this['queryInterface']=_0x1c0845,this[_0x3d6f30('0x17')]=new Sequence();};Migration['prototype'][_0x3095f8('0x7')]=function(_0x54d76d,_0x5e6628,_0x35ea49){const _0x1c92fa=_0x3095f8,_0x4373a8=this;this[_0x1c92fa('0x17')][_0x1c92fa('0x18')](function(){const _0x5d2b16=_0x1c92fa;return _0x4373a8[_0x5d2b16('0xe')]['changeColumn'](_0x54d76d,_0x5e6628,_0x35ea49)[_0x5d2b16('0xd')](function(){const _0x40eb55=_0x5d2b16;logger[_0x40eb55('0x5')](_0x40eb55('0x4'),_0x5e6628,_0x54d76d);})[_0x5d2b16('0x12')](function(_0x17360f){const _0x5b95c8=_0x5d2b16;logger[_0x5b95c8('0x5')](JSON[_0x5b95c8('0x2')](_0x17360f));});});},Migration[_0x3095f8('0x9')][_0x3095f8('0x1c')]=function(_0x57c349,_0x19282a,_0x19c5c1){const _0x53d6c3=_0x3095f8,_0x263a93=this;this[_0x53d6c3('0x17')][_0x53d6c3('0x18')](function(){const _0x3809c7=_0x53d6c3;return _0x263a93['queryInterface'][_0x3809c7('0x1c')](_0x57c349,_0x19282a,_0x19c5c1)[_0x3809c7('0xd')](function(){const _0x2c3c38=_0x3809c7;logger['info'](_0x2c3c38('0x0'),_0x19282a,_0x57c349);})['catch'](function(_0x377621){const _0x54c6a4=_0x3809c7;logger[_0x54c6a4('0x5')](JSON[_0x54c6a4('0x2')](_0x377621));});});},Migration['prototype'][_0x3095f8('0x14')]=function(_0xed132a){const _0x5327ac=_0x3095f8,_0x1d3def=this;this['sequence'][_0x5327ac('0x18')](function(){const _0x41db92=_0x5327ac;return _0x1d3def[_0x41db92('0xe')]['dropTable'](_0xed132a,{'force':!![]})[_0x41db92('0xd')](function(){const _0x29cba0=_0x41db92;logger[_0x29cba0('0x5')](_0x29cba0('0x19'),_0xed132a);})['catch'](function(_0xf0a0d3){const _0x1b9c88=_0x41db92;logger['info'](JSON[_0x1b9c88('0x2')](_0xf0a0d3));});});},Migration['prototype'][_0x3095f8('0x1a')]=function(_0x30fe07,_0x1792f3,_0x514036){const _0x1268eb=_0x3095f8,_0x118100=this;this[_0x1268eb('0x17')]['enqueue'](function(){const _0x3c29bb=_0x1268eb;return _0x118100[_0x3c29bb('0xe')]['addIndex'](_0x30fe07,_0x1792f3,{'indexName':_0x514036})['then'](function(){const _0xc24828=_0x3c29bb;logger['info'](_0xc24828('0x16'),_0x30fe07,_0x1792f3['join'](','),_0x514036);})[_0x3c29bb('0x12')](function(_0x2c34ee){const _0x4f9c18=_0x3c29bb;logger[_0x4f9c18('0x5')](JSON[_0x4f9c18('0x2')](_0x2c34ee));});});},Migration['prototype'][_0x3095f8('0xc')]=function(_0x26f1a4){const _0x314043=_0x3095f8,_0x122fb9=this;this[_0x314043('0x17')]['enqueue'](function(){const _0x18795f=_0x314043;return _0x122fb9[_0x18795f('0xe')][_0x18795f('0x1b')][_0x18795f('0xc')](_0x26f1a4)[_0x18795f('0xd')](function(){const _0x3345f3=_0x18795f;logger[_0x3345f3('0x5')](_0x3345f3('0xb'),_0x26f1a4);})[_0x18795f('0x12')](function(_0x2705b7){const _0x426d24=_0x18795f;logger[_0x426d24('0x5')](JSON[_0x426d24('0x2')](_0x2705b7));});});},Migration[_0x3095f8('0x9')]['removeColumn']=function(_0x5c6aa3,_0xd9bc92){const _0x1b5bad=_0x3095f8,_0x1f9fbf=this;this[_0x1b5bad('0x17')][_0x1b5bad('0x18')](function(){const _0x26a794=_0x1b5bad;return _0x1f9fbf[_0x26a794('0xe')][_0x26a794('0x1')](_0x5c6aa3,_0xd9bc92)[_0x26a794('0xd')](function(){const _0x1fbea6=_0x26a794;logger['info'](_0x1fbea6('0xa'),_0xd9bc92,_0x5c6aa3);})[_0x26a794('0x12')](function(_0x14af6c){const _0x44294f=_0x26a794;logger[_0x44294f('0x5')](util[_0x44294f('0x6')](_0x14af6c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3095f8('0x3')]=function(_0x1917f6){const _0x2b15c5=_0x3095f8;this['sequence'][_0x2b15c5('0x18')](function(){return _0x1917f6();});},module['exports']={'up':function(_0x362354,_0x127a26){return new Promise(function(_0x29d0f2){const _0x2d49b3=a915_0x43ca,_0x104a1f=new Migration(_0x362354);_0x104a1f[_0x2d49b3('0x1c')](_0x2d49b3('0x15'),_0x2d49b3('0x11'),{'type':_0x127a26[_0x2d49b3('0x8')]}),_0x104a1f[_0x2d49b3('0xc')](_0x2d49b3('0x13')),_0x104a1f['final'](_0x29d0f2);});},'down':function(){}}; \ No newline at end of file +const a915_0x2c6e=['ALTER\x20TABLE\x20`openchannel_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`openchannel_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','Removed\x20column\x20%s\x20from\x20%s','join','query\x20%s','final','AttachmentId','queryInterface','enqueue','info','then','removeColumn','prototype','util','tail','changeColumn','catch','exports','sequence','migration','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','query','stringify','dropTable','../config/logger','addColumn','addIndex','openchannel_messages'];(function(_0x1d4df6,_0x2c6eb7){const _0x1172ee=function(_0x180c18){while(--_0x180c18){_0x1d4df6['push'](_0x1d4df6['shift']());}};_0x1172ee(++_0x2c6eb7);}(a915_0x2c6e,0x1a9));const a915_0x1172=function(_0x1d4df6,_0x2c6eb7){_0x1d4df6=_0x1d4df6-0x0;let _0x1172ee=a915_0x2c6e[_0x1d4df6];return _0x1172ee;};const _0x165c58=a915_0x1172;'use strict';const logger=require(_0x165c58('0x13'))(_0x165c58('0xd')),util=require(_0x165c58('0x7')),Sequence=function(){};Sequence[_0x165c58('0x6')][_0x165c58('0x2')]=function(_0x180c18){const _0x402d63=_0x165c58;this['tail']=this[_0x402d63('0x8')]?this[_0x402d63('0x8')]['finally'](_0x180c18):_0x180c18();};const Migration=function(_0x40ff0a){const _0x2c431f=_0x165c58;this[_0x2c431f('0x1')]=_0x40ff0a,this[_0x2c431f('0xc')]=new Sequence();};Migration[_0x165c58('0x6')]['changeColumn']=function(_0x9fa24c,_0x413c1d,_0x4a1a03){const _0x121408=_0x165c58,_0x30def8=this;this[_0x121408('0xc')][_0x121408('0x2')](function(){const _0x2b5b0f=_0x121408;return _0x30def8[_0x2b5b0f('0x1')][_0x2b5b0f('0x9')](_0x9fa24c,_0x413c1d,_0x4a1a03)[_0x2b5b0f('0x4')](function(){const _0xb464cb=_0x2b5b0f;logger[_0xb464cb('0x3')](_0xb464cb('0xf'),_0x413c1d,_0x9fa24c);})[_0x2b5b0f('0xa')](function(_0x2bf7f1){const _0x15079e=_0x2b5b0f;logger[_0x15079e('0x3')](JSON[_0x15079e('0x11')](_0x2bf7f1));});});},Migration[_0x165c58('0x6')][_0x165c58('0x14')]=function(_0x401a12,_0x5ef80e,_0x150d21){const _0x4cf3fc=_0x165c58,_0x38cc45=this;this['sequence'][_0x4cf3fc('0x2')](function(){const _0x52cff2=_0x4cf3fc;return _0x38cc45[_0x52cff2('0x1')][_0x52cff2('0x14')](_0x401a12,_0x5ef80e,_0x150d21)[_0x52cff2('0x4')](function(){const _0x1028cb=_0x52cff2;logger[_0x1028cb('0x3')]('Added\x20column\x20%s\x20to\x20%s',_0x5ef80e,_0x401a12);})['catch'](function(_0x3bc1ce){const _0x46ee2e=_0x52cff2;logger[_0x46ee2e('0x3')](JSON[_0x46ee2e('0x11')](_0x3bc1ce));});});},Migration[_0x165c58('0x6')]['dropTable']=function(_0xc0586){const _0x2bc1b=_0x165c58,_0x126078=this;this[_0x2bc1b('0xc')][_0x2bc1b('0x2')](function(){const _0x1ef49f=_0x2bc1b;return _0x126078[_0x1ef49f('0x1')][_0x1ef49f('0x12')](_0xc0586,{'force':!![]})[_0x1ef49f('0x4')](function(){const _0x549134=_0x1ef49f;logger[_0x549134('0x3')]('table\x20dropped\x20%s',_0xc0586);})[_0x1ef49f('0xa')](function(_0x6a90a9){const _0x2e333e=_0x1ef49f;logger[_0x2e333e('0x3')](JSON[_0x2e333e('0x11')](_0x6a90a9));});});},Migration[_0x165c58('0x6')][_0x165c58('0x15')]=function(_0x586440,_0x39a749,_0x33caaa){const _0x24b4be=_0x165c58,_0x1c8d0a=this;this['sequence'][_0x24b4be('0x2')](function(){const _0x30a085=_0x24b4be;return _0x1c8d0a[_0x30a085('0x1')]['addIndex'](_0x586440,_0x39a749,{'indexName':_0x33caaa})['then'](function(){const _0x29a568=_0x30a085;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x586440,_0x39a749[_0x29a568('0x19')](','),_0x33caaa);})[_0x30a085('0xa')](function(_0x199099){const _0x466aaa=_0x30a085;logger[_0x466aaa('0x3')](JSON[_0x466aaa('0x11')](_0x199099));});});},Migration['prototype']['query']=function(_0x2c503e){const _0x29aaf9=_0x165c58,_0xfb98e1=this;this[_0x29aaf9('0xc')][_0x29aaf9('0x2')](function(){const _0x593742=_0x29aaf9;return _0xfb98e1[_0x593742('0x1')][_0x593742('0xe')][_0x593742('0x10')](_0x2c503e)[_0x593742('0x4')](function(){const _0x228808=_0x593742;logger[_0x228808('0x3')](_0x228808('0x1a'),_0x2c503e);})['catch'](function(_0x18c5b9){logger['info'](JSON['stringify'](_0x18c5b9));});});},Migration[_0x165c58('0x6')][_0x165c58('0x5')]=function(_0x32f761,_0x336b54){const _0x4f6f63=_0x165c58,_0x22cf96=this;this['sequence'][_0x4f6f63('0x2')](function(){const _0x49a878=_0x4f6f63;return _0x22cf96[_0x49a878('0x1')][_0x49a878('0x5')](_0x32f761,_0x336b54)[_0x49a878('0x4')](function(){const _0x199810=_0x49a878;logger['info'](_0x199810('0x18'),_0x336b54,_0x32f761);})['catch'](function(_0x24fe1b){const _0x3742a8=_0x49a878;logger[_0x3742a8('0x3')](util['inspect'](_0x24fe1b,{'showHidden':![],'depth':null}));});});},Migration[_0x165c58('0x6')]['final']=function(_0x3ae94e){const _0x1af70a=_0x165c58;this[_0x1af70a('0xc')][_0x1af70a('0x2')](function(){return _0x3ae94e();});},module[_0x165c58('0xb')]={'up':function(_0x2174f5,_0xf35879){return new Promise(function(_0x58a60a){const _0x549c28=a915_0x1172,_0x384879=new Migration(_0x2174f5);_0x384879[_0x549c28('0x14')](_0x549c28('0x16'),_0x549c28('0x0'),{'type':_0xf35879['INTEGER']}),_0x384879[_0x549c28('0x10')](_0x549c28('0x17')),_0x384879[_0x549c28('0x1b')](_0x58a60a);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.37.js b/server/migrations/2.0.37.js index 6071b2a..57e0190 100644 --- a/server/migrations/2.0.37.js +++ b/server/migrations/2.0.37.js @@ -1 +1 @@ -const a916_0x5b90=['BOOLEAN','catch','removeColumn','then','util','Removed\x20column\x20%s\x20from\x20%s','enqueue','changeColumn','info','addIndex','join','query','enableUncompleteSave','sms_messages','completed','report_jscripty_sessions','Added\x20column\x20%s\x20to\x20%s','sequelize','sms_interactions','sequence','STRING','finally','addColumn','prototype','query\x20%s','stringify','phone','table\x20dropped\x20%s','tail','queryInterface'];(function(_0x46d74f,_0x5b9083){const _0x10cef0=function(_0x514b20){while(--_0x514b20){_0x46d74f['push'](_0x46d74f['shift']());}};_0x10cef0(++_0x5b9083);}(a916_0x5b90,0x1e0));const a916_0x10ce=function(_0x46d74f,_0x5b9083){_0x46d74f=_0x46d74f-0x0;let _0x10cef0=a916_0x5b90[_0x46d74f];return _0x10cef0;};const _0x13fb58=a916_0x10ce;'use strict';const logger=require('../config/logger')('migration'),util=require(_0x13fb58('0x4')),Sequence=function(){};Sequence[_0x13fb58('0x17')]['enqueue']=function(_0x514b20){const _0x5bd709=_0x13fb58;this['tail']=this[_0x5bd709('0x1c')]?this[_0x5bd709('0x1c')][_0x5bd709('0x15')](_0x514b20):_0x514b20();};const Migration=function(_0x145f09){const _0x2f2732=_0x13fb58;this[_0x2f2732('0x1d')]=_0x145f09,this[_0x2f2732('0x13')]=new Sequence();};Migration[_0x13fb58('0x17')][_0x13fb58('0x7')]=function(_0x410db7,_0x1463e9,_0x408dfc){const _0xe99ad9=this;this['sequence']['enqueue'](function(){const _0x23387=a916_0x10ce;return _0xe99ad9['queryInterface'][_0x23387('0x7')](_0x410db7,_0x1463e9,_0x408dfc)['then'](function(){const _0x17b028=_0x23387;logger[_0x17b028('0x8')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1463e9,_0x410db7);})[_0x23387('0x1')](function(_0x1234d9){const _0x5b262d=_0x23387;logger[_0x5b262d('0x8')](JSON['stringify'](_0x1234d9));});});},Migration[_0x13fb58('0x17')][_0x13fb58('0x16')]=function(_0x43dd30,_0x1a3e89,_0x5e3da3){const _0x3b353b=_0x13fb58,_0x207978=this;this[_0x3b353b('0x13')][_0x3b353b('0x6')](function(){const _0x51484f=_0x3b353b;return _0x207978[_0x51484f('0x1d')]['addColumn'](_0x43dd30,_0x1a3e89,_0x5e3da3)[_0x51484f('0x3')](function(){const _0x271efb=_0x51484f;logger[_0x271efb('0x8')](_0x271efb('0x10'),_0x1a3e89,_0x43dd30);})[_0x51484f('0x1')](function(_0x4e78da){const _0x3d9352=_0x51484f;logger[_0x3d9352('0x8')](JSON[_0x3d9352('0x19')](_0x4e78da));});});},Migration[_0x13fb58('0x17')]['dropTable']=function(_0x483b9a){const _0x13e7ba=_0x13fb58,_0x1b3b00=this;this['sequence'][_0x13e7ba('0x6')](function(){const _0x2e3a68=_0x13e7ba;return _0x1b3b00[_0x2e3a68('0x1d')]['dropTable'](_0x483b9a,{'force':!![]})[_0x2e3a68('0x3')](function(){const _0x36c616=_0x2e3a68;logger[_0x36c616('0x8')](_0x36c616('0x1b'),_0x483b9a);})['catch'](function(_0x31496e){const _0x1d1cfd=_0x2e3a68;logger['info'](JSON[_0x1d1cfd('0x19')](_0x31496e));});});},Migration['prototype'][_0x13fb58('0x9')]=function(_0x354c2f,_0x2d1169,_0x22f9fa){const _0x4225d7=this;this['sequence']['enqueue'](function(){const _0xd5396a=a916_0x10ce;return _0x4225d7['queryInterface'][_0xd5396a('0x9')](_0x354c2f,_0x2d1169,{'indexName':_0x22f9fa})[_0xd5396a('0x3')](function(){const _0x551c72=_0xd5396a;logger[_0x551c72('0x8')]('addIndex\x20%s\x20%s\x20%s',_0x354c2f,_0x2d1169[_0x551c72('0xa')](','),_0x22f9fa);})['catch'](function(_0x20f4c7){const _0xc83d76=_0xd5396a;logger[_0xc83d76('0x8')](JSON[_0xc83d76('0x19')](_0x20f4c7));});});},Migration[_0x13fb58('0x17')][_0x13fb58('0xb')]=function(_0x242494){const _0x254082=_0x13fb58,_0x57c0e9=this;this[_0x254082('0x13')][_0x254082('0x6')](function(){const _0x60241a=_0x254082;return _0x57c0e9[_0x60241a('0x1d')][_0x60241a('0x11')]['query'](_0x242494)[_0x60241a('0x3')](function(){const _0x47a505=_0x60241a;logger[_0x47a505('0x8')](_0x47a505('0x18'),_0x242494);})['catch'](function(_0x46f9a8){const _0x6d4f17=_0x60241a;logger[_0x6d4f17('0x8')](JSON['stringify'](_0x46f9a8));});});},Migration[_0x13fb58('0x17')][_0x13fb58('0x2')]=function(_0x18abbf,_0x42c6fa){const _0x5271b5=_0x13fb58,_0x3a5590=this;this[_0x5271b5('0x13')][_0x5271b5('0x6')](function(){const _0x404707=_0x5271b5;return _0x3a5590[_0x404707('0x1d')][_0x404707('0x2')](_0x18abbf,_0x42c6fa)[_0x404707('0x3')](function(){const _0x40e379=_0x404707;logger[_0x40e379('0x8')](_0x40e379('0x5'),_0x42c6fa,_0x18abbf);})['catch'](function(_0x21414f){const _0x26a2dd=_0x404707;logger[_0x26a2dd('0x8')](util['inspect'](_0x21414f,{'showHidden':![],'depth':null}));});});},Migration[_0x13fb58('0x17')]['final']=function(_0x17e5b9){const _0x406700=_0x13fb58;this[_0x406700('0x13')][_0x406700('0x6')](function(){return _0x17e5b9();});},module['exports']={'up':function(_0xf4c9f4,_0x51244e){return new Promise(function(_0x3a6a8d){const _0x2caf0d=a916_0x10ce,_0x47d90a=new Migration(_0xf4c9f4);_0x47d90a['addColumn']('jscripty_projects',_0x2caf0d('0xc'),{'type':_0x51244e['BOOLEAN'],'defaultValue':!![]}),_0x47d90a[_0x2caf0d('0x16')](_0x2caf0d('0xf'),_0x2caf0d('0xe'),{'type':_0x51244e[_0x2caf0d('0x0')],'defaultValue':![]}),_0x47d90a[_0x2caf0d('0xb')]('UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true'),_0x47d90a[_0x2caf0d('0x16')](_0x2caf0d('0x12'),'phone',{'type':_0x51244e[_0x2caf0d('0x14')]}),_0x47d90a[_0x2caf0d('0x16')](_0x2caf0d('0xd'),_0x2caf0d('0x1a'),{'type':_0x51244e['STRING']}),_0x47d90a['final'](_0x3a6a8d);});},'down':function(){}}; \ No newline at end of file +const a916_0x12d5=['enableUncompleteSave','../config/logger','sequelize','sms_messages','stringify','addColumn','catch','BOOLEAN','dropTable','jscripty_projects','sequence','prototype','phone','inspect','tail','enqueue','exports','addIndex','query\x20%s','then','changeColumn','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','completed','table\x20dropped\x20%s','report_jscripty_sessions','join','Changed\x20column\x20%s\x20in\x20table\x20%s','final','STRING','query','removeColumn','info','queryInterface','finally'];(function(_0x18aaac,_0x12d562){const _0x129a56=function(_0x47e6c1){while(--_0x47e6c1){_0x18aaac['push'](_0x18aaac['shift']());}};_0x129a56(++_0x12d562);}(a916_0x12d5,0xe5));const a916_0x129a=function(_0x18aaac,_0x12d562){_0x18aaac=_0x18aaac-0x0;let _0x129a56=a916_0x12d5[_0x18aaac];return _0x129a56;};const _0x32dcc5=a916_0x129a;'use strict';const logger=require(_0x32dcc5('0xa'))('migration'),util=require('util'),Sequence=function(){};Sequence['prototype'][_0x32dcc5('0x18')]=function(_0x47e6c1){const _0x2007e9=_0x32dcc5;this[_0x2007e9('0x17')]=this[_0x2007e9('0x17')]?this['tail'][_0x2007e9('0x8')](_0x47e6c1):_0x47e6c1();};const Migration=function(_0x4694b5){const _0x3a9a38=_0x32dcc5;this[_0x3a9a38('0x7')]=_0x4694b5,this[_0x3a9a38('0x13')]=new Sequence();};Migration[_0x32dcc5('0x14')][_0x32dcc5('0x1d')]=function(_0x5f0cd7,_0x3598ef,_0x10089d){const _0x15f107=_0x32dcc5,_0x267b73=this;this[_0x15f107('0x13')]['enqueue'](function(){const _0x2d9d26=_0x15f107;return _0x267b73[_0x2d9d26('0x7')]['changeColumn'](_0x5f0cd7,_0x3598ef,_0x10089d)[_0x2d9d26('0x1c')](function(){const _0x7bdd56=_0x2d9d26;logger[_0x7bdd56('0x6')](_0x7bdd56('0x1'),_0x3598ef,_0x5f0cd7);})[_0x2d9d26('0xf')](function(_0x46db9c){const _0x26cff9=_0x2d9d26;logger['info'](JSON[_0x26cff9('0xd')](_0x46db9c));});});},Migration[_0x32dcc5('0x14')][_0x32dcc5('0xe')]=function(_0x2fa2fb,_0x3dc83a,_0x3bf069){const _0x42bfb4=_0x32dcc5,_0x5d5222=this;this['sequence'][_0x42bfb4('0x18')](function(){const _0x3d5f52=_0x42bfb4;return _0x5d5222['queryInterface'][_0x3d5f52('0xe')](_0x2fa2fb,_0x3dc83a,_0x3bf069)[_0x3d5f52('0x1c')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3dc83a,_0x2fa2fb);})[_0x3d5f52('0xf')](function(_0x46954f){const _0x47c6ce=_0x3d5f52;logger[_0x47c6ce('0x6')](JSON[_0x47c6ce('0xd')](_0x46954f));});});},Migration[_0x32dcc5('0x14')][_0x32dcc5('0x11')]=function(_0xec1867){const _0x3d7178=_0x32dcc5,_0x428aa0=this;this[_0x3d7178('0x13')][_0x3d7178('0x18')](function(){const _0x3439e0=_0x3d7178;return _0x428aa0[_0x3439e0('0x7')][_0x3439e0('0x11')](_0xec1867,{'force':!![]})[_0x3439e0('0x1c')](function(){const _0x1efe9c=_0x3439e0;logger[_0x1efe9c('0x6')](_0x1efe9c('0x20'),_0xec1867);})[_0x3439e0('0xf')](function(_0x1adf4f){const _0x49d2db=_0x3439e0;logger[_0x49d2db('0x6')](JSON[_0x49d2db('0xd')](_0x1adf4f));});});},Migration[_0x32dcc5('0x14')][_0x32dcc5('0x1a')]=function(_0x51c972,_0x4670aa,_0x4d40a3){const _0x893acb=_0x32dcc5,_0x276d07=this;this[_0x893acb('0x13')][_0x893acb('0x18')](function(){const _0x433004=_0x893acb;return _0x276d07[_0x433004('0x7')][_0x433004('0x1a')](_0x51c972,_0x4670aa,{'indexName':_0x4d40a3})[_0x433004('0x1c')](function(){const _0x35b6ce=_0x433004;logger[_0x35b6ce('0x6')]('addIndex\x20%s\x20%s\x20%s',_0x51c972,_0x4670aa[_0x35b6ce('0x0')](','),_0x4d40a3);})[_0x433004('0xf')](function(_0x5b6c0c){const _0x3b5708=_0x433004;logger[_0x3b5708('0x6')](JSON[_0x3b5708('0xd')](_0x5b6c0c));});});},Migration[_0x32dcc5('0x14')][_0x32dcc5('0x4')]=function(_0x4ff5d9){const _0x59b85f=this;this['sequence']['enqueue'](function(){const _0x5ec839=a916_0x129a;return _0x59b85f[_0x5ec839('0x7')][_0x5ec839('0xb')][_0x5ec839('0x4')](_0x4ff5d9)[_0x5ec839('0x1c')](function(){const _0x5655b0=_0x5ec839;logger[_0x5655b0('0x6')](_0x5655b0('0x1b'),_0x4ff5d9);})[_0x5ec839('0xf')](function(_0xb90428){const _0x4b50a2=_0x5ec839;logger[_0x4b50a2('0x6')](JSON['stringify'](_0xb90428));});});},Migration['prototype'][_0x32dcc5('0x5')]=function(_0xefefa9,_0x3a7ca2){const _0x154e27=_0x32dcc5,_0x49d5a4=this;this[_0x154e27('0x13')][_0x154e27('0x18')](function(){const _0x33e498=_0x154e27;return _0x49d5a4[_0x33e498('0x7')][_0x33e498('0x5')](_0xefefa9,_0x3a7ca2)['then'](function(){const _0x340664=_0x33e498;logger[_0x340664('0x6')]('Removed\x20column\x20%s\x20from\x20%s',_0x3a7ca2,_0xefefa9);})[_0x33e498('0xf')](function(_0x26fe8e){const _0x46977c=_0x33e498;logger[_0x46977c('0x6')](util[_0x46977c('0x16')](_0x26fe8e,{'showHidden':![],'depth':null}));});});},Migration[_0x32dcc5('0x14')][_0x32dcc5('0x2')]=function(_0x54262d){const _0x23ff83=_0x32dcc5;this[_0x23ff83('0x13')][_0x23ff83('0x18')](function(){return _0x54262d();});},module[_0x32dcc5('0x19')]={'up':function(_0x35458d,_0x5e0979){return new Promise(function(_0xa5ed88){const _0x144268=a916_0x129a,_0x593755=new Migration(_0x35458d);_0x593755['addColumn'](_0x144268('0x12'),_0x144268('0x9'),{'type':_0x5e0979[_0x144268('0x10')],'defaultValue':!![]}),_0x593755[_0x144268('0xe')](_0x144268('0x21'),_0x144268('0x1f'),{'type':_0x5e0979['BOOLEAN'],'defaultValue':![]}),_0x593755[_0x144268('0x4')](_0x144268('0x1e')),_0x593755[_0x144268('0xe')]('sms_interactions',_0x144268('0x15'),{'type':_0x5e0979[_0x144268('0x3')]}),_0x593755[_0x144268('0xe')](_0x144268('0xc'),_0x144268('0x15'),{'type':_0x5e0979[_0x144268('0x3')]}),_0x593755[_0x144268('0x2')](_0xa5ed88);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.38.js b/server/migrations/2.0.38.js index e6e08d2..f5ef52e 100644 --- a/server/migrations/2.0.38.js +++ b/server/migrations/2.0.38.js @@ -1 +1 @@ -const a917_0x3331=['exports','fax_messages','fax_applications','Added\x20column\x20%s\x20to\x20%s','enqueue','tools_trunks','Ls\x20:','sequelize','addIndex','STRING','query','final','prototype','finally','t38pt_udptl','then','messageId','chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments','stringify','addColumn','join','sms_accounts','Removed\x20column\x20%s\x20from\x20%s','catch','queryInterface','Exec\x20chmod','ALTER\x20TABLE\x20`fax_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`fax_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','../config/logger','info','sequence','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20Error\x20:','ls\x20-la\x20/var/opt/motion2/server/files','child_process','changeColumn','dropTable','removeColumn'];(function(_0x5167b2,_0x33319f){const _0x198311=function(_0x47fb82){while(--_0x47fb82){_0x5167b2['push'](_0x5167b2['shift']());}};_0x198311(++_0x33319f);}(a917_0x3331,0x1c2));const a917_0x1983=function(_0x5167b2,_0x33319f){_0x5167b2=_0x5167b2-0x0;let _0x198311=a917_0x3331[_0x5167b2];return _0x198311;};const _0x4ad5cb=a917_0x1983;'use strict';const logger=require(_0x4ad5cb('0x21'))('migration'),util=require('util'),exec=require(_0x4ad5cb('0x2'))['exec'],cmd=_0x4ad5cb('0x17'),ls=_0x4ad5cb('0x1'),Sequence=function(){};Sequence['prototype'][_0x4ad5cb('0xa')]=function(_0x47fb82){const _0x4e3309=_0x4ad5cb;this[_0x4e3309('0x24')]=this[_0x4e3309('0x24')]?this['tail'][_0x4e3309('0x13')](_0x47fb82):_0x47fb82();};const Migration=function(_0x458ddf){const _0x35c6b4=_0x4ad5cb;this[_0x35c6b4('0x1e')]=_0x458ddf,this[_0x35c6b4('0x23')]=new Sequence();};Migration[_0x4ad5cb('0x12')][_0x4ad5cb('0x3')]=function(_0x3fe4d7,_0x3c898c,_0x43a072){const _0x116967=_0x4ad5cb,_0xe7faa5=this;this[_0x116967('0x23')][_0x116967('0xa')](function(){const _0x48f6d4=_0x116967;return _0xe7faa5['queryInterface']['changeColumn'](_0x3fe4d7,_0x3c898c,_0x43a072)[_0x48f6d4('0x15')](function(){const _0x3472d5=_0x48f6d4;logger[_0x3472d5('0x22')](_0x3472d5('0x25'),_0x3c898c,_0x3fe4d7);})[_0x48f6d4('0x1d')](function(_0x2c7936){logger['info'](JSON['stringify'](_0x2c7936));});});},Migration[_0x4ad5cb('0x12')][_0x4ad5cb('0x19')]=function(_0x566a7b,_0x16b2e3,_0x4a3dab){const _0x4ddc3d=_0x4ad5cb,_0x28f7a0=this;this[_0x4ddc3d('0x23')]['enqueue'](function(){const _0x69194a=_0x4ddc3d;return _0x28f7a0[_0x69194a('0x1e')][_0x69194a('0x19')](_0x566a7b,_0x16b2e3,_0x4a3dab)[_0x69194a('0x15')](function(){const _0x167bee=_0x69194a;logger[_0x167bee('0x22')](_0x167bee('0x9'),_0x16b2e3,_0x566a7b);})[_0x69194a('0x1d')](function(_0x12f2b3){const _0x107f9c=_0x69194a;logger[_0x107f9c('0x22')](JSON['stringify'](_0x12f2b3));});});},Migration[_0x4ad5cb('0x12')][_0x4ad5cb('0x4')]=function(_0x437530){const _0x574c71=_0x4ad5cb,_0x4f8766=this;this[_0x574c71('0x23')][_0x574c71('0xa')](function(){const _0x3d2463=_0x574c71;return _0x4f8766['queryInterface'][_0x3d2463('0x4')](_0x437530,{'force':!![]})[_0x3d2463('0x15')](function(){logger['info']('table\x20dropped\x20%s',_0x437530);})[_0x3d2463('0x1d')](function(_0x305120){const _0x1e1eb0=_0x3d2463;logger[_0x1e1eb0('0x22')](JSON[_0x1e1eb0('0x18')](_0x305120));});});},Migration[_0x4ad5cb('0x12')][_0x4ad5cb('0xe')]=function(_0x5cd0c3,_0x1f1b58,_0x3ee27d){const _0x1dbcd2=_0x4ad5cb,_0x3890ba=this;this[_0x1dbcd2('0x23')][_0x1dbcd2('0xa')](function(){const _0x5eba94=_0x1dbcd2;return _0x3890ba['queryInterface'][_0x5eba94('0xe')](_0x5cd0c3,_0x1f1b58,{'indexName':_0x3ee27d})[_0x5eba94('0x15')](function(){const _0xde6c16=_0x5eba94;logger[_0xde6c16('0x22')]('addIndex\x20%s\x20%s\x20%s',_0x5cd0c3,_0x1f1b58[_0xde6c16('0x1a')](','),_0x3ee27d);})['catch'](function(_0x3f5669){const _0x121432=_0x5eba94;logger[_0x121432('0x22')](JSON[_0x121432('0x18')](_0x3f5669));});});},Migration[_0x4ad5cb('0x12')]['query']=function(_0x1883b8){const _0x17a591=_0x4ad5cb,_0x3624cc=this;this[_0x17a591('0x23')]['enqueue'](function(){const _0x12b018=_0x17a591;return _0x3624cc['queryInterface'][_0x12b018('0xd')]['query'](_0x1883b8)[_0x12b018('0x15')](function(){const _0x1bcda8=_0x12b018;logger[_0x1bcda8('0x22')]('query\x20%s',_0x1883b8);})[_0x12b018('0x1d')](function(_0x5ac233){const _0x4e3152=_0x12b018;logger[_0x4e3152('0x22')](JSON['stringify'](_0x5ac233));});});},Migration[_0x4ad5cb('0x12')]['removeColumn']=function(_0x4913e9,_0x482666){const _0x4eaa56=_0x4ad5cb,_0x152488=this;this[_0x4eaa56('0x23')][_0x4eaa56('0xa')](function(){const _0xf27d65=_0x4eaa56;return _0x152488['queryInterface'][_0xf27d65('0x5')](_0x4913e9,_0x482666)[_0xf27d65('0x15')](function(){const _0x2231e6=_0xf27d65;logger['info'](_0x2231e6('0x1c'),_0x482666,_0x4913e9);})[_0xf27d65('0x1d')](function(_0x3ae520){const _0x8727e7=_0xf27d65;logger[_0x8727e7('0x22')](util['inspect'](_0x3ae520,{'showHidden':![],'depth':null}));});});},Migration[_0x4ad5cb('0x12')][_0x4ad5cb('0x11')]=function(_0x483abf){const _0x3a5455=_0x4ad5cb;this[_0x3a5455('0x23')]['enqueue'](function(){return _0x483abf();});},module[_0x4ad5cb('0x6')]={'up':function(_0x4fb52d,_0x30f293){return new Promise(function(_0x10abc3){const _0x45dbf3=a917_0x1983,_0x1bacf8=new Migration(_0x4fb52d);_0x1bacf8['addColumn']('sms_accounts','remote',{'type':_0x30f293[_0x45dbf3('0xf')]}),_0x1bacf8['addColumn'](_0x45dbf3('0x1b'),'token',{'type':_0x30f293[_0x45dbf3('0xf')]}),_0x1bacf8['addColumn']('sms_messages',_0x45dbf3('0x16'),{'type':_0x30f293['STRING']}),exec(cmd,function(_0x45a7d3,_0x315807,_0x586086){const _0x52e9cb=_0x45dbf3;logger[_0x52e9cb('0x22')](_0x52e9cb('0x1f'),_0x52e9cb('0x0'),JSON[_0x52e9cb('0x18')](_0x45a7d3),_0x315807,_0x586086),exec(ls,function(_0x2195a1,_0x4bd508,_0x508792){const _0x419783=_0x52e9cb;logger[_0x419783('0x22')](_0x419783('0xc'),_0x419783('0x0'),JSON[_0x419783('0x18')](_0x2195a1),_0x4bd508,_0x508792);});}),_0x1bacf8['dropTable'](_0x45dbf3('0x8')),_0x1bacf8[_0x45dbf3('0x19')](_0x45dbf3('0x7'),'AttachmentId',{'type':_0x30f293['INTEGER']}),_0x1bacf8[_0x45dbf3('0x10')](_0x45dbf3('0x20')),_0x1bacf8['addColumn'](_0x45dbf3('0xb'),_0x45dbf3('0x14'),{'type':_0x30f293[_0x45dbf3('0xf')],'defaultValue':'no'}),_0x1bacf8[_0x45dbf3('0x11')](_0x10abc3);});},'down':function(){}}; \ No newline at end of file +const a917_0x2295=['child_process','token','info','migration','then','changeColumn','util','messageId','INTEGER','Ls\x20:','addIndex','inspect','enqueue','sms_accounts','tail','sequelize','STRING','query\x20%s','exec','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','fax_messages','Added\x20column\x20%s\x20to\x20%s','query','addColumn','ALTER\x20TABLE\x20`fax_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`fax_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','prototype','\x20Error\x20:','t38pt_udptl','catch','sms_messages','table\x20dropped\x20%s','stringify','addIndex\x20%s\x20%s\x20%s','fax_applications','Exec\x20chmod','remote','dropTable','sequence','AttachmentId','queryInterface','../config/logger','final','ls\x20-la\x20/var/opt/motion2/server/files','exports','join'];(function(_0x219d95,_0x2295b4){const _0x5d83b3=function(_0x4a59d3){while(--_0x4a59d3){_0x219d95['push'](_0x219d95['shift']());}};_0x5d83b3(++_0x2295b4);}(a917_0x2295,0xdf));const a917_0x5d83=function(_0x219d95,_0x2295b4){_0x219d95=_0x219d95-0x0;let _0x5d83b3=a917_0x2295[_0x219d95];return _0x5d83b3;};const _0x5a0465=a917_0x5d83;'use strict';const logger=require(_0x5a0465('0x2'))(_0x5a0465('0xa')),util=require(_0x5a0465('0xd')),exec=require(_0x5a0465('0x7'))[_0x5a0465('0x19')],cmd='chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments',ls=_0x5a0465('0x4'),Sequence=function(){};Sequence[_0x5a0465('0x21')]['enqueue']=function(_0x4a59d3){const _0x2d61e1=_0x5a0465;this[_0x2d61e1('0x15')]=this[_0x2d61e1('0x15')]?this[_0x2d61e1('0x15')]['finally'](_0x4a59d3):_0x4a59d3();};const Migration=function(_0x389ef4){this['queryInterface']=_0x389ef4,this['sequence']=new Sequence();};Migration[_0x5a0465('0x21')][_0x5a0465('0xc')]=function(_0x4a4498,_0x3d4ce8,_0x606421){const _0x3d221b=_0x5a0465,_0x384999=this;this[_0x3d221b('0x2d')][_0x3d221b('0x13')](function(){const _0x40d47a=_0x3d221b;return _0x384999[_0x40d47a('0x1')][_0x40d47a('0xc')](_0x4a4498,_0x3d4ce8,_0x606421)[_0x40d47a('0xb')](function(){const _0x3e6c41=_0x40d47a;logger[_0x3e6c41('0x9')](_0x3e6c41('0x1a'),_0x3d4ce8,_0x4a4498);})[_0x40d47a('0x24')](function(_0x22560c){const _0x31989d=_0x40d47a;logger[_0x31989d('0x9')](JSON[_0x31989d('0x27')](_0x22560c));});});},Migration[_0x5a0465('0x21')][_0x5a0465('0x1f')]=function(_0x5b99de,_0x4f1146,_0x5a276c){const _0x42a42d=_0x5a0465,_0x1312a1=this;this[_0x42a42d('0x2d')][_0x42a42d('0x13')](function(){const _0x913797=_0x42a42d;return _0x1312a1[_0x913797('0x1')][_0x913797('0x1f')](_0x5b99de,_0x4f1146,_0x5a276c)[_0x913797('0xb')](function(){const _0x382489=_0x913797;logger['info'](_0x382489('0x1d'),_0x4f1146,_0x5b99de);})[_0x913797('0x24')](function(_0x1bd601){const _0x34e65a=_0x913797;logger[_0x34e65a('0x9')](JSON[_0x34e65a('0x27')](_0x1bd601));});});},Migration[_0x5a0465('0x21')]['dropTable']=function(_0x1b0774){const _0x44a6b5=_0x5a0465,_0x4f6b71=this;this[_0x44a6b5('0x2d')][_0x44a6b5('0x13')](function(){const _0x21cce5=_0x44a6b5;return _0x4f6b71[_0x21cce5('0x1')][_0x21cce5('0x2c')](_0x1b0774,{'force':!![]})[_0x21cce5('0xb')](function(){const _0x5bf108=_0x21cce5;logger[_0x5bf108('0x9')](_0x5bf108('0x26'),_0x1b0774);})[_0x21cce5('0x24')](function(_0x9bdcc2){const _0x1f40df=_0x21cce5;logger[_0x1f40df('0x9')](JSON['stringify'](_0x9bdcc2));});});},Migration[_0x5a0465('0x21')]['addIndex']=function(_0x4ac392,_0x2adfd3,_0x553a92){const _0x5079a9=_0x5a0465,_0x2fac56=this;this[_0x5079a9('0x2d')]['enqueue'](function(){const _0x51385e=_0x5079a9;return _0x2fac56[_0x51385e('0x1')][_0x51385e('0x11')](_0x4ac392,_0x2adfd3,{'indexName':_0x553a92})[_0x51385e('0xb')](function(){const _0x29954f=_0x51385e;logger[_0x29954f('0x9')](_0x29954f('0x28'),_0x4ac392,_0x2adfd3[_0x29954f('0x6')](','),_0x553a92);})[_0x51385e('0x24')](function(_0x228fdf){const _0x5a8e0b=_0x51385e;logger[_0x5a8e0b('0x9')](JSON[_0x5a8e0b('0x27')](_0x228fdf));});});},Migration[_0x5a0465('0x21')][_0x5a0465('0x1e')]=function(_0x43b40e){const _0x3af03b=_0x5a0465,_0x4cf3cd=this;this['sequence'][_0x3af03b('0x13')](function(){const _0x5ec4f7=_0x3af03b;return _0x4cf3cd['queryInterface'][_0x5ec4f7('0x16')][_0x5ec4f7('0x1e')](_0x43b40e)['then'](function(){const _0x1425d9=_0x5ec4f7;logger['info'](_0x1425d9('0x18'),_0x43b40e);})['catch'](function(_0x2c20fd){const _0x49dddc=_0x5ec4f7;logger['info'](JSON[_0x49dddc('0x27')](_0x2c20fd));});});},Migration[_0x5a0465('0x21')][_0x5a0465('0x1b')]=function(_0x43a97a,_0x4a2052){const _0xf80536=_0x5a0465,_0x4dc251=this;this['sequence'][_0xf80536('0x13')](function(){const _0xbde05f=_0xf80536;return _0x4dc251['queryInterface']['removeColumn'](_0x43a97a,_0x4a2052)[_0xbde05f('0xb')](function(){const _0xf093ce=_0xbde05f;logger[_0xf093ce('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0x4a2052,_0x43a97a);})[_0xbde05f('0x24')](function(_0xbf8ac9){const _0x523c74=_0xbde05f;logger[_0x523c74('0x9')](util[_0x523c74('0x12')](_0xbf8ac9,{'showHidden':![],'depth':null}));});});},Migration[_0x5a0465('0x21')][_0x5a0465('0x3')]=function(_0x52e3e9){const _0x3948eb=_0x5a0465;this[_0x3948eb('0x2d')][_0x3948eb('0x13')](function(){return _0x52e3e9();});},module[_0x5a0465('0x5')]={'up':function(_0x271e1d,_0x48460e){return new Promise(function(_0x1ccd49){const _0xc9d950=a917_0x5d83,_0x1b2822=new Migration(_0x271e1d);_0x1b2822[_0xc9d950('0x1f')](_0xc9d950('0x14'),_0xc9d950('0x2b'),{'type':_0x48460e[_0xc9d950('0x17')]}),_0x1b2822[_0xc9d950('0x1f')]('sms_accounts',_0xc9d950('0x8'),{'type':_0x48460e[_0xc9d950('0x17')]}),_0x1b2822[_0xc9d950('0x1f')](_0xc9d950('0x25'),_0xc9d950('0xe'),{'type':_0x48460e[_0xc9d950('0x17')]}),exec(cmd,function(_0x11fc18,_0x3899c9,_0x53e0f6){const _0x572704=_0xc9d950;logger['info'](_0x572704('0x2a'),'\x20Error\x20:',JSON['stringify'](_0x11fc18),_0x3899c9,_0x53e0f6),exec(ls,function(_0x4405c3,_0x3abfad,_0x243197){const _0x59cdd0=_0x572704;logger[_0x59cdd0('0x9')](_0x59cdd0('0x10'),_0x59cdd0('0x22'),JSON[_0x59cdd0('0x27')](_0x4405c3),_0x3abfad,_0x243197);});}),_0x1b2822[_0xc9d950('0x2c')](_0xc9d950('0x29')),_0x1b2822[_0xc9d950('0x1f')](_0xc9d950('0x1c'),_0xc9d950('0x0'),{'type':_0x48460e[_0xc9d950('0xf')]}),_0x1b2822[_0xc9d950('0x1e')](_0xc9d950('0x20')),_0x1b2822[_0xc9d950('0x1f')]('tools_trunks',_0xc9d950('0x23'),{'type':_0x48460e[_0xc9d950('0x17')],'defaultValue':'no'}),_0x1b2822[_0xc9d950('0x3')](_0x1ccd49);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.39.js b/server/migrations/2.0.39.js index 978ebd1..87de239 100644 --- a/server/migrations/2.0.39.js +++ b/server/migrations/2.0.39.js @@ -1 +1 @@ -const a918_0xcaee=['INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x279\x27,\x20\x27Set\x27,\x20\x27FAXOPT(modem)=${XMF-MODEM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','contact','server/files/templates/context.ejs','checkVoiceContexts','enqueue','exec','root','server/api/voiceContext/voiceContext.model','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x275\x27,\x20\x27Set\x27,\x20\x27FAXOPT(headerinfo)=${XMF-HEADERINFO}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','deletedAt','utf8','sequelize','catch','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultPageTitle','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x2710\x27,\x20\x27Set\x27,\x20\x27FAXOPT(t38timeout)=${XMF-T38TIMEOUT}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','lead','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x278\x27,\x20\x27Set\x27,\x20\x27FAXOPT(minrate)=${XMF-MINRATE}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','info','ls\x20-la\x20/var/opt/motion2/server/files','stringify','findAll','util','ejs','spread','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','ENUM','table\x20dropped\x20%s','addColumn','addIndex\x20%s\x20%s\x20%s','queryInterface','sequence','path','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x2711\x27,\x20\x27SendFax\x27,\x20\x27${XMF-PATH},d\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','writeFileSync','/etc/asterisk/extensions_xcally_contexts.conf','STRING','finally','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x277\x27,\x20\x27Set\x27,\x20\x27FAXOPT(maxrate)=${XMF-MAXRATE}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','pageTitle','xcally-mixmonitor-context','Exec\x20chmod','then','../config/environment','render','settings','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','import','inspect','contact_lead','child_process','\x20Error\x20:','query','DATE','join','addIndex','asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22','nothing','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x273\x27,\x20\x27Wait\x27,\x20\x276\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chmod\x20775\x20/var/opt/motion2/server/files/attachments','tail','Added\x20column\x20%s\x20to\x20%s','int_salesforce_configurations','prototype','cm_contacts','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x274\x27,\x20\x27Set\x27,\x20\x27FAXOPT(ecm)=${XMF-ECM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','moduleSearch','findOrCreate','exports'];(function(_0x5309e8,_0xcaee7e){const _0x118f59=function(_0x58e3c4){while(--_0x58e3c4){_0x5309e8['push'](_0x5309e8['shift']());}};_0x118f59(++_0xcaee7e);}(a918_0xcaee,0x9a));const a918_0x118f=function(_0x5309e8,_0xcaee7e){_0x5309e8=_0x5309e8-0x0;let _0x118f59=a918_0xcaee[_0x5309e8];return _0x118f59;};const _0x343970=a918_0x118f;'use strict';const logger=require('../config/logger')('migration'),util=require(_0x343970('0x8')),ejs=require(_0x343970('0x9')),fs=require('fs'),path=require(_0x343970('0x12')),exec=require(_0x343970('0x25'))[_0x343970('0x3d')],config=require(_0x343970('0x1d')),Sequence=function(){};Sequence[_0x343970('0x32')][_0x343970('0x3c')]=function(_0x58e3c4){const _0x29d92c=_0x343970;this[_0x29d92c('0x2f')]=this[_0x29d92c('0x2f')]?this[_0x29d92c('0x2f')][_0x29d92c('0x17')](_0x58e3c4):_0x58e3c4();};const Migration=function(_0x1c7e28){this['queryInterface']=_0x1c7e28,this['sequence']=new Sequence();};Migration[_0x343970('0x32')]['changeColumn']=function(_0x2c6954,_0x532cb5,_0xf6b43d){const _0x432905=_0x343970,_0x295b6a=this;this[_0x432905('0x11')]['enqueue'](function(){const _0xc796a1=_0x432905;return _0x295b6a[_0xc796a1('0x10')]['changeColumn'](_0x2c6954,_0x532cb5,_0xf6b43d)['then'](function(){const _0x3e6e9a=_0xc796a1;logger[_0x3e6e9a('0x4')](_0x3e6e9a('0x20'),_0x532cb5,_0x2c6954);})['catch'](function(_0xbda048){const _0x261032=_0xc796a1;logger[_0x261032('0x4')](JSON[_0x261032('0x6')](_0xbda048));});});},Migration[_0x343970('0x32')][_0x343970('0xe')]=function(_0x2ad909,_0x510fcb,_0x199ee3){const _0x135498=_0x343970,_0x52cd8b=this;this['sequence'][_0x135498('0x3c')](function(){const _0x2061ff=_0x135498;return _0x52cd8b[_0x2061ff('0x10')][_0x2061ff('0xe')](_0x2ad909,_0x510fcb,_0x199ee3)[_0x2061ff('0x1c')](function(){const _0x4f02e1=_0x2061ff;logger[_0x4f02e1('0x4')](_0x4f02e1('0x30'),_0x510fcb,_0x2ad909);})['catch'](function(_0x494b0b){const _0x3faf48=_0x2061ff;logger[_0x3faf48('0x4')](JSON[_0x3faf48('0x6')](_0x494b0b));});});},Migration[_0x343970('0x32')][_0x343970('0x21')]=function(_0x21f5bc){const _0x1c248b=_0x343970,_0x42dc0e=this;this[_0x1c248b('0x11')]['enqueue'](function(){const _0x2effa0=_0x1c248b;return _0x42dc0e[_0x2effa0('0x10')][_0x2effa0('0x21')](_0x21f5bc,{'force':!![]})[_0x2effa0('0x1c')](function(){const _0x4787b7=_0x2effa0;logger[_0x4787b7('0x4')](_0x4787b7('0xd'),_0x21f5bc);})[_0x2effa0('0x44')](function(_0x3c7713){const _0x250ab3=_0x2effa0;logger['info'](JSON[_0x250ab3('0x6')](_0x3c7713));});});},Migration['prototype'][_0x343970('0x2a')]=function(_0x28443b,_0x245e21,_0x1f097a){const _0x2b059e=_0x343970,_0x7a21d6=this;this[_0x2b059e('0x11')][_0x2b059e('0x3c')](function(){const _0x59ccc9=_0x2b059e;return _0x7a21d6[_0x59ccc9('0x10')][_0x59ccc9('0x2a')](_0x28443b,_0x245e21,{'indexName':_0x1f097a})[_0x59ccc9('0x1c')](function(){const _0x375463=_0x59ccc9;logger[_0x375463('0x4')](_0x375463('0xf'),_0x28443b,_0x245e21['join'](','),_0x1f097a);})[_0x59ccc9('0x44')](function(_0x4f6523){const _0x32946d=_0x59ccc9;logger['info'](JSON[_0x32946d('0x6')](_0x4f6523));});});},Migration[_0x343970('0x32')][_0x343970('0x27')]=function(_0x3320b2){const _0x13f321=_0x343970,_0x3895d0=this;this[_0x13f321('0x11')][_0x13f321('0x3c')](function(){const _0x5b226c=_0x13f321;return _0x3895d0[_0x5b226c('0x10')][_0x5b226c('0x43')]['query'](_0x3320b2)[_0x5b226c('0x1c')](function(){logger['info']('query\x20%s',_0x3320b2);})[_0x5b226c('0x44')](function(_0xf6fad7){const _0x50f53a=_0x5b226c;logger[_0x50f53a('0x4')](JSON[_0x50f53a('0x6')](_0xf6fad7));});});},Migration[_0x343970('0x32')]['removeColumn']=function(_0x224d3e,_0xe53159){const _0x3ad105=_0x343970,_0x2e8f4d=this;this[_0x3ad105('0x11')][_0x3ad105('0x3c')](function(){const _0x5d4831=_0x3ad105;return _0x2e8f4d[_0x5d4831('0x10')]['removeColumn'](_0x224d3e,_0xe53159)['then'](function(){const _0x54a2da=_0x5d4831;logger[_0x54a2da('0x4')]('Removed\x20column\x20%s\x20from\x20%s',_0xe53159,_0x224d3e);})['catch'](function(_0x411a7c){const _0x234149=_0x5d4831;logger[_0x234149('0x4')](util[_0x234149('0x23')](_0x411a7c,{'showHidden':![],'depth':null}));});});},Migration[_0x343970('0x32')][_0x343970('0x3b')]=function(){const _0x48bc50=_0x343970,_0x20995b=this,_0x136c04=_0x20995b['queryInterface'][_0x48bc50('0x43')][_0x48bc50('0x22')](path[_0x48bc50('0x29')](config[_0x48bc50('0x3e')],_0x48bc50('0x3f')));this[_0x48bc50('0x11')]['enqueue'](function(){const _0x235bd7=_0x48bc50;return _0x136c04[_0x235bd7('0x36')]({'where':{'name':_0x235bd7('0x1a')},'defaults':{'name':_0x235bd7('0x1a'),'description':_0x235bd7('0x45'),'defaultEntry':!![]}})[_0x235bd7('0xa')](function(){const _0x57ea89=_0x235bd7;return _0x136c04[_0x57ea89('0x7')]({'raw':!![]});})[_0x235bd7('0x1c')](function(_0x1146ff){const _0x776805=_0x235bd7,_0x5575ec=fs['readFileSync'](path[_0x776805('0x29')](config[_0x776805('0x3e')],_0x776805('0x3a')),_0x776805('0x42')),_0xa0785a=ejs[_0x776805('0x1e')](_0x5575ec,{'contexts':_0x1146ff||[]});fs[_0x776805('0x14')](_0x776805('0x15'),_0xa0785a),exec(_0x776805('0x2b'),function(_0x4fbc21,_0x39aa19,_0x5456f4){const _0x591a32=_0x776805;logger[_0x591a32('0x4')](_0x591a32('0x1b'),_0x591a32('0x26'),JSON['stringify'](_0x4fbc21),_0x39aa19,_0x5456f4);});})[_0x235bd7('0x44')](function(_0x53cf75){const _0x398b97=_0x235bd7;logger[_0x398b97('0x4')](JSON[_0x398b97('0x6')](_0x53cf75));});});},Migration['prototype']['final']=function(_0x5ae8fd){const _0x313cbf=_0x343970;this[_0x313cbf('0x11')]['enqueue'](function(){return _0x5ae8fd();});},module[_0x343970('0x37')]={'up':function(_0x198fd1,_0x24f1c9){return new Promise(function(_0x4b8226){const _0xda2acc=a918_0x118f,_0x19df95=new Migration(_0x198fd1);_0x19df95[_0xda2acc('0xe')]('settings',_0xda2acc('0x0'),{'type':_0x24f1c9['BOOLEAN'],'defaultValue':!![]}),_0x19df95['addColumn'](_0xda2acc('0x1f'),_0xda2acc('0x19'),{'type':_0x24f1c9[_0xda2acc('0x16')]}),_0x19df95['checkVoiceContexts'](),_0x19df95[_0xda2acc('0xe')](_0xda2acc('0x31'),_0xda2acc('0x35'),{'type':_0x24f1c9['ENUM'](_0xda2acc('0x24'),_0xda2acc('0x39'),_0xda2acc('0x2')),'defaultValue':_0xda2acc('0x24')}),_0x19df95[_0xda2acc('0xe')](_0xda2acc('0x31'),'moduleCreate',{'type':_0x24f1c9[_0xda2acc('0xc')](_0xda2acc('0x2c'),'contact','lead'),'defaultValue':_0xda2acc('0x2')}),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0xb')),_0x19df95['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x272\x27,\x20\x27Set\x27,\x20\x27CDR(type)=outbound-fax\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0x2d')),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0x34')),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0x40')),_0x19df95['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x276\x27,\x20\x27Set\x27,\x20\x27FAXOPT(localstationid)=${XMF-LOCALSTATIONID}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0x18')),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0x3')),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0x38')),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0x1')),_0x19df95[_0xda2acc('0x27')](_0xda2acc('0x13')),exec(_0xda2acc('0x2e'),function(_0x221cdd,_0x3226d8,_0x100aca){const _0x2f91af=_0xda2acc;logger[_0x2f91af('0x4')]('Exec\x20chmod',_0x2f91af('0x26'),JSON[_0x2f91af('0x6')](_0x221cdd),_0x3226d8,_0x100aca),exec(_0x2f91af('0x5'),function(_0xc737d4,_0x2e0af1,_0x18318b){const _0x224023=_0x2f91af;logger[_0x224023('0x4')]('Ls\x20:',_0x224023('0x26'),JSON['stringify'](_0xc737d4),_0x2e0af1,_0x18318b);});}),_0x19df95['addColumn'](_0xda2acc('0x33'),_0xda2acc('0x41'),{'type':_0x24f1c9[_0xda2acc('0x28')],'defaultValue':null}),_0x19df95['final'](_0x4b8226);});},'down':function(){}}; \ No newline at end of file +const a918_0x3e35=['finally','/etc/asterisk/extensions_xcally_contexts.conf','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','deletedAt','query\x20%s','exec','findAll','moduleCreate','contact','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x275\x27,\x20\x27Set\x27,\x20\x27FAXOPT(headerinfo)=${XMF-HEADERINFO}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','sequelize','addIndex\x20%s\x20%s\x20%s','utf8','lead','cm_contacts','writeFileSync','Exec\x20chmod','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x276\x27,\x20\x27Set\x27,\x20\x27FAXOPT(localstationid)=${XMF-LOCALSTATIONID}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','Added\x20column\x20%s\x20to\x20%s','info','settings','then','changeColumn','contact_lead','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x2710\x27,\x20\x27Set\x27,\x20\x27FAXOPT(t38timeout)=${XMF-T38TIMEOUT}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','stringify','removeColumn','DATE','moduleSearch','exports','dropTable','sequence','render','server/api/voiceContext/voiceContext.model','path','addIndex','join','xcally-mixmonitor-context','../config/logger','\x20Error\x20:','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x2711\x27,\x20\x27SendFax\x27,\x20\x27${XMF-PATH},d\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','prototype','enqueue','tail','child_process','STRING','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x278\x27,\x20\x27Set\x27,\x20\x27FAXOPT(minrate)=${XMF-MINRATE}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','final','root','table\x20dropped\x20%s','defaultPageTitle','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','query','queryInterface','catch','migration','util','int_salesforce_configurations','ENUM','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x273\x27,\x20\x27Wait\x27,\x20\x276\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','checkVoiceContexts'];(function(_0xe4da2e,_0x3e35a2){const _0x16d7bd=function(_0xd3586b){while(--_0xd3586b){_0xe4da2e['push'](_0xe4da2e['shift']());}};_0x16d7bd(++_0x3e35a2);}(a918_0x3e35,0x1d9));const a918_0x16d7=function(_0xe4da2e,_0x3e35a2){_0xe4da2e=_0xe4da2e-0x0;let _0x16d7bd=a918_0x3e35[_0xe4da2e];return _0x16d7bd;};const _0x36072e=a918_0x16d7;'use strict';const logger=require(_0x36072e('0x7'))(_0x36072e('0x19')),util=require(_0x36072e('0x1a')),ejs=require('ejs'),fs=require('fs'),path=require(_0x36072e('0x3')),exec=require(_0x36072e('0xd'))[_0x36072e('0x24')],config=require('../config/environment'),Sequence=function(){};Sequence[_0x36072e('0xa')][_0x36072e('0xb')]=function(_0xd3586b){const _0x550767=_0x36072e;this['tail']=this[_0x550767('0xc')]?this[_0x550767('0xc')][_0x550767('0x1f')](_0xd3586b):_0xd3586b();};const Migration=function(_0xda11d4){const _0x49ab4b=_0x36072e;this[_0x49ab4b('0x17')]=_0xda11d4,this['sequence']=new Sequence();};Migration[_0x36072e('0xa')]['changeColumn']=function(_0x1f13dc,_0x10bbeb,_0x4a53cf){const _0x462020=_0x36072e,_0x254f29=this;this[_0x462020('0x0')][_0x462020('0xb')](function(){const _0x34614a=_0x462020;return _0x254f29[_0x34614a('0x17')][_0x34614a('0x36')](_0x1f13dc,_0x10bbeb,_0x4a53cf)[_0x34614a('0x35')](function(){const _0x3e52f7=_0x34614a;logger[_0x3e52f7('0x33')](_0x3e52f7('0x15'),_0x10bbeb,_0x1f13dc);})['catch'](function(_0x3243c4){const _0x22dba3=_0x34614a;logger['info'](JSON[_0x22dba3('0x39')](_0x3243c4));});});},Migration['prototype'][_0x36072e('0x14')]=function(_0x902055,_0x42f290,_0x29ae9d){const _0x46b31f=_0x36072e,_0x2c4dbf=this;this[_0x46b31f('0x0')][_0x46b31f('0xb')](function(){const _0x55d265=_0x46b31f;return _0x2c4dbf[_0x55d265('0x17')][_0x55d265('0x14')](_0x902055,_0x42f290,_0x29ae9d)[_0x55d265('0x35')](function(){const _0x38f5b0=_0x55d265;logger['info'](_0x38f5b0('0x32'),_0x42f290,_0x902055);})[_0x55d265('0x18')](function(_0x80599b){const _0x51693b=_0x55d265;logger[_0x51693b('0x33')](JSON[_0x51693b('0x39')](_0x80599b));});});},Migration[_0x36072e('0xa')][_0x36072e('0x3e')]=function(_0x38fc28){const _0x3de347=_0x36072e,_0x2a2362=this;this[_0x3de347('0x0')][_0x3de347('0xb')](function(){const _0x43d3df=_0x3de347;return _0x2a2362[_0x43d3df('0x17')][_0x43d3df('0x3e')](_0x38fc28,{'force':!![]})[_0x43d3df('0x35')](function(){const _0x3c92c0=_0x43d3df;logger[_0x3c92c0('0x33')](_0x3c92c0('0x12'),_0x38fc28);})[_0x43d3df('0x18')](function(_0x45b4d1){const _0x447dfd=_0x43d3df;logger[_0x447dfd('0x33')](JSON[_0x447dfd('0x39')](_0x45b4d1));});});},Migration[_0x36072e('0xa')][_0x36072e('0x4')]=function(_0x45d4b2,_0x229def,_0x4b6d2f){const _0x1207b6=_0x36072e,_0x41417a=this;this[_0x1207b6('0x0')][_0x1207b6('0xb')](function(){return _0x41417a['queryInterface']['addIndex'](_0x45d4b2,_0x229def,{'indexName':_0x4b6d2f})['then'](function(){const _0xd35bb4=a918_0x16d7;logger[_0xd35bb4('0x33')](_0xd35bb4('0x2a'),_0x45d4b2,_0x229def[_0xd35bb4('0x5')](','),_0x4b6d2f);})['catch'](function(_0x187dbd){logger['info'](JSON['stringify'](_0x187dbd));});});},Migration[_0x36072e('0xa')]['query']=function(_0x4e7e36){const _0x51b888=_0x36072e,_0xbff615=this;this[_0x51b888('0x0')][_0x51b888('0xb')](function(){const _0x194b24=_0x51b888;return _0xbff615[_0x194b24('0x17')][_0x194b24('0x29')][_0x194b24('0x16')](_0x4e7e36)[_0x194b24('0x35')](function(){const _0x535725=_0x194b24;logger[_0x535725('0x33')](_0x535725('0x23'),_0x4e7e36);})[_0x194b24('0x18')](function(_0x43e4f6){const _0x33c822=_0x194b24;logger['info'](JSON[_0x33c822('0x39')](_0x43e4f6));});});},Migration['prototype'][_0x36072e('0x3a')]=function(_0x1f686d,_0x546814){const _0x36ee12=_0x36072e,_0x2cdb22=this;this['sequence'][_0x36ee12('0xb')](function(){const _0x3b3d3b=_0x36ee12;return _0x2cdb22[_0x3b3d3b('0x17')][_0x3b3d3b('0x3a')](_0x1f686d,_0x546814)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x546814,_0x1f686d);})['catch'](function(_0x57aa6b){logger['info'](util['inspect'](_0x57aa6b,{'showHidden':![],'depth':null}));});});},Migration[_0x36072e('0xa')][_0x36072e('0x1e')]=function(){const _0x344b9e=_0x36072e,_0x353a54=this,_0x5ea6c9=_0x353a54[_0x344b9e('0x17')]['sequelize']['import'](path['join'](config[_0x344b9e('0x11')],_0x344b9e('0x2')));this[_0x344b9e('0x0')][_0x344b9e('0xb')](function(){const _0x8e5342=_0x344b9e;return _0x5ea6c9['findOrCreate']({'where':{'name':'xcally-mixmonitor-context'},'defaults':{'name':_0x8e5342('0x6'),'description':_0x8e5342('0x31'),'defaultEntry':!![]}})['spread'](function(){const _0x5dc376=_0x8e5342;return _0x5ea6c9[_0x5dc376('0x25')]({'raw':!![]});})[_0x8e5342('0x35')](function(_0x950234){const _0x343582=_0x8e5342,_0x253cbd=fs['readFileSync'](path[_0x343582('0x5')](config[_0x343582('0x11')],'server/files/templates/context.ejs'),_0x343582('0x2b')),_0x495d37=ejs[_0x343582('0x1')](_0x253cbd,{'contexts':_0x950234||[]});fs[_0x343582('0x2e')](_0x343582('0x20'),_0x495d37),exec('asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22',function(_0x45acd0,_0x20c166,_0x30b974){const _0x332dd2=_0x343582;logger[_0x332dd2('0x33')]('Exec\x20chmod',_0x332dd2('0x8'),JSON[_0x332dd2('0x39')](_0x45acd0),_0x20c166,_0x30b974);});})[_0x8e5342('0x18')](function(_0x53b903){const _0x5dc5b9=_0x8e5342;logger[_0x5dc5b9('0x33')](JSON[_0x5dc5b9('0x39')](_0x53b903));});});},Migration['prototype'][_0x36072e('0x10')]=function(_0x26ce41){const _0x19beb3=_0x36072e;this[_0x19beb3('0x0')][_0x19beb3('0xb')](function(){return _0x26ce41();});},module[_0x36072e('0x3d')]={'up':function(_0x1c9ffc,_0x3318cd){return new Promise(function(_0x3b941d){const _0xa8de3=a918_0x16d7,_0xcabd0d=new Migration(_0x1c9ffc);_0xcabd0d[_0xa8de3('0x14')](_0xa8de3('0x34'),_0xa8de3('0x13'),{'type':_0x3318cd['BOOLEAN'],'defaultValue':!![]}),_0xcabd0d[_0xa8de3('0x14')](_0xa8de3('0x34'),'pageTitle',{'type':_0x3318cd[_0xa8de3('0xe')]}),_0xcabd0d[_0xa8de3('0x1e')](),_0xcabd0d[_0xa8de3('0x14')](_0xa8de3('0x1b'),_0xa8de3('0x3c'),{'type':_0x3318cd[_0xa8de3('0x1c')](_0xa8de3('0x37'),_0xa8de3('0x27'),'lead'),'defaultValue':_0xa8de3('0x37')}),_0xcabd0d[_0xa8de3('0x14')](_0xa8de3('0x1b'),_0xa8de3('0x26'),{'type':_0x3318cd[_0xa8de3('0x1c')]('nothing',_0xa8de3('0x27'),'lead'),'defaultValue':_0xa8de3('0x2c')}),_0xcabd0d['query'](_0xa8de3('0x21')),_0xcabd0d[_0xa8de3('0x16')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x272\x27,\x20\x27Set\x27,\x20\x27CDR(type)=outbound-fax\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0xcabd0d[_0xa8de3('0x16')](_0xa8de3('0x1d')),_0xcabd0d[_0xa8de3('0x16')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x274\x27,\x20\x27Set\x27,\x20\x27FAXOPT(ecm)=${XMF-ECM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0xcabd0d[_0xa8de3('0x16')](_0xa8de3('0x28')),_0xcabd0d['query'](_0xa8de3('0x30')),_0xcabd0d['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x277\x27,\x20\x27Set\x27,\x20\x27FAXOPT(maxrate)=${XMF-MAXRATE}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0xcabd0d['query'](_0xa8de3('0xf')),_0xcabd0d[_0xa8de3('0x16')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x279\x27,\x20\x27Set\x27,\x20\x27FAXOPT(modem)=${XMF-MODEM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0xcabd0d[_0xa8de3('0x16')](_0xa8de3('0x38')),_0xcabd0d[_0xa8de3('0x16')](_0xa8de3('0x9')),exec('chmod\x20775\x20/var/opt/motion2/server/files/attachments',function(_0x46ea80,_0x2ca490,_0x3247ed){const _0x540627=_0xa8de3;logger[_0x540627('0x33')](_0x540627('0x2f'),_0x540627('0x8'),JSON[_0x540627('0x39')](_0x46ea80),_0x2ca490,_0x3247ed),exec('ls\x20-la\x20/var/opt/motion2/server/files',function(_0x4ee287,_0x5ae8ef,_0xba9e8a){const _0x557818=_0x540627;logger[_0x557818('0x33')]('Ls\x20:',_0x557818('0x8'),JSON[_0x557818('0x39')](_0x4ee287),_0x5ae8ef,_0xba9e8a);});}),_0xcabd0d[_0xa8de3('0x14')](_0xa8de3('0x2d'),_0xa8de3('0x22'),{'type':_0x3318cd[_0xa8de3('0x3b')],'defaultValue':null}),_0xcabd0d['final'](_0x3b941d);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.40.js b/server/migrations/2.0.40.js index 4922033..a7ff229 100644 --- a/server/migrations/2.0.40.js +++ b/server/migrations/2.0.40.js @@ -1 +1 @@ -var a919_0x53b3=['exports'];(function(_0x37eda9,_0x53b339){var _0x298c02=function(_0x1b4c91){while(--_0x1b4c91){_0x37eda9['push'](_0x37eda9['shift']());}};_0x298c02(++_0x53b339);}(a919_0x53b3,0x6e));var a919_0x298c=function(_0x37eda9,_0x53b339){_0x37eda9=_0x37eda9-0x0;var _0x298c02=a919_0x53b3[_0x37eda9];return _0x298c02;};var _0x3701a4=a919_0x298c;'use strict';module[_0x3701a4('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a919_0x4481=['exports'];(function(_0x17dcb2,_0x4481f7){var _0x4264f5=function(_0x18f4f4){while(--_0x18f4f4){_0x17dcb2['push'](_0x17dcb2['shift']());}};_0x4264f5(++_0x4481f7);}(a919_0x4481,0x157));var a919_0x4264=function(_0x17dcb2,_0x4481f7){_0x17dcb2=_0x17dcb2-0x0;var _0x4264f5=a919_0x4481[_0x17dcb2];return _0x4264f5;};var _0x429bd8=a919_0x4264;'use strict';module[_0x429bd8('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.41.js b/server/migrations/2.0.41.js index 9b10038..06d4e0e 100644 --- a/server/migrations/2.0.41.js +++ b/server/migrations/2.0.41.js @@ -1 +1 @@ -const a920_0x1f91=['catch','TEXT','sequence','int_desk_accounts','formData','inspect','removeColumn','Added\x20column\x20%s\x20to\x20%s','tail','migration','chat_interactions','addColumn','then','cm_custom_fields','chat_messages','prototype','long','enqueue','secret','values','../config/logger','addIndex','sequelize','join','final','BOOLEAN','info','query','dropTable','STRING','addIndex\x20%s\x20%s\x20%s','queryInterface','stringify','showAgentAvatar','exports','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_websites','query\x20%s','changeColumn'];(function(_0x49f4f4,_0x1f91fb){const _0x1b107d=function(_0x35c77c){while(--_0x35c77c){_0x49f4f4['push'](_0x49f4f4['shift']());}};_0x1b107d(++_0x1f91fb);}(a920_0x1f91,0xd6));const a920_0x1b10=function(_0x49f4f4,_0x1f91fb){_0x49f4f4=_0x49f4f4-0x0;let _0x1b107d=a920_0x1f91[_0x49f4f4];return _0x1b107d;};const _0x1547b8=a920_0x1b10;'use strict';const logger=require(_0x1547b8('0x6'))(_0x1547b8('0x23')),util=require('util'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x35c77c){const _0x21f8e6=_0x1547b8;this[_0x21f8e6('0x22')]=this[_0x21f8e6('0x22')]?this[_0x21f8e6('0x22')][_0x21f8e6('0x15')](_0x35c77c):_0x35c77c();};const Migration=function(_0x227d60){const _0x49f9d1=_0x1547b8;this[_0x49f9d1('0x11')]=_0x227d60,this[_0x49f9d1('0x1c')]=new Sequence();};Migration[_0x1547b8('0x1')][_0x1547b8('0x19')]=function(_0x38042d,_0x5ccc04,_0x585e89){const _0x2918d7=_0x1547b8,_0x18f96b=this;this[_0x2918d7('0x1c')]['enqueue'](function(){const _0x39d0d4=_0x2918d7;return _0x18f96b[_0x39d0d4('0x11')][_0x39d0d4('0x19')](_0x38042d,_0x5ccc04,_0x585e89)[_0x39d0d4('0x26')](function(){const _0xc8e5c6=_0x39d0d4;logger[_0xc8e5c6('0xc')](_0xc8e5c6('0x16'),_0x5ccc04,_0x38042d);})[_0x39d0d4('0x1a')](function(_0x44771a){const _0x2cc4a3=_0x39d0d4;logger[_0x2cc4a3('0xc')](JSON[_0x2cc4a3('0x12')](_0x44771a));});});},Migration[_0x1547b8('0x1')]['addColumn']=function(_0x1a5546,_0x40dd95,_0x248225){const _0x37ab1c=_0x1547b8,_0x30d3b2=this;this[_0x37ab1c('0x1c')][_0x37ab1c('0x3')](function(){const _0x1b1ef2=_0x37ab1c;return _0x30d3b2[_0x1b1ef2('0x11')][_0x1b1ef2('0x25')](_0x1a5546,_0x40dd95,_0x248225)[_0x1b1ef2('0x26')](function(){const _0x5b8dce=_0x1b1ef2;logger[_0x5b8dce('0xc')](_0x5b8dce('0x21'),_0x40dd95,_0x1a5546);})[_0x1b1ef2('0x1a')](function(_0x498e04){logger['info'](JSON['stringify'](_0x498e04));});});},Migration[_0x1547b8('0x1')][_0x1547b8('0xe')]=function(_0xa2a9a){const _0x13bc73=this;this['sequence']['enqueue'](function(){const _0x5f022b=a920_0x1b10;return _0x13bc73[_0x5f022b('0x11')][_0x5f022b('0xe')](_0xa2a9a,{'force':!![]})[_0x5f022b('0x26')](function(){const _0x1a9223=_0x5f022b;logger[_0x1a9223('0xc')]('table\x20dropped\x20%s',_0xa2a9a);})['catch'](function(_0x353f2e){const _0x159142=_0x5f022b;logger[_0x159142('0xc')](JSON[_0x159142('0x12')](_0x353f2e));});});},Migration[_0x1547b8('0x1')][_0x1547b8('0x7')]=function(_0x127b91,_0x276586,_0x12960c){const _0x104509=_0x1547b8,_0x420561=this;this['sequence'][_0x104509('0x3')](function(){const _0x12aac5=_0x104509;return _0x420561[_0x12aac5('0x11')][_0x12aac5('0x7')](_0x127b91,_0x276586,{'indexName':_0x12960c})['then'](function(){const _0x5f319e=_0x12aac5;logger[_0x5f319e('0xc')](_0x5f319e('0x10'),_0x127b91,_0x276586[_0x5f319e('0x9')](','),_0x12960c);})['catch'](function(_0x4d26b2){const _0x3f6b22=_0x12aac5;logger[_0x3f6b22('0xc')](JSON[_0x3f6b22('0x12')](_0x4d26b2));});});},Migration[_0x1547b8('0x1')][_0x1547b8('0xd')]=function(_0x25d574){const _0x23fada=_0x1547b8,_0x4ce49f=this;this[_0x23fada('0x1c')][_0x23fada('0x3')](function(){const _0x2fee63=_0x23fada;return _0x4ce49f[_0x2fee63('0x11')][_0x2fee63('0x8')][_0x2fee63('0xd')](_0x25d574)['then'](function(){const _0x167d45=_0x2fee63;logger[_0x167d45('0xc')](_0x167d45('0x18'),_0x25d574);})['catch'](function(_0x1e2a34){const _0x22d868=_0x2fee63;logger['info'](JSON[_0x22d868('0x12')](_0x1e2a34));});});},Migration[_0x1547b8('0x1')]['removeColumn']=function(_0x4b383e,_0x1865ac){const _0x26b9c7=_0x1547b8,_0x474bcb=this;this[_0x26b9c7('0x1c')][_0x26b9c7('0x3')](function(){const _0x196d2f=_0x26b9c7;return _0x474bcb[_0x196d2f('0x11')][_0x196d2f('0x20')](_0x4b383e,_0x1865ac)['then'](function(){const _0x3636bd=_0x196d2f;logger[_0x3636bd('0xc')]('Removed\x20column\x20%s\x20from\x20%s',_0x1865ac,_0x4b383e);})[_0x196d2f('0x1a')](function(_0x95fb19){const _0x157b73=_0x196d2f;logger[_0x157b73('0xc')](util[_0x157b73('0x1f')](_0x95fb19,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1547b8('0xa')]=function(_0xc3fa46){const _0x12bf93=_0x1547b8;this[_0x12bf93('0x1c')][_0x12bf93('0x3')](function(){return _0xc3fa46();});},module[_0x1547b8('0x14')]={'up':function(_0x3f37a7,_0xc8091f){return new Promise(function(_0x1dc0f8){const _0x16ec7f=a920_0x1b10,_0x4b8347=new Migration(_0x3f37a7);_0x4b8347['addColumn'](_0x16ec7f('0x1d'),'serverUrl',{'type':_0xc8091f[_0x16ec7f('0xf')]}),_0x4b8347['addColumn'](_0x16ec7f('0x24'),_0x16ec7f('0x1e'),{'type':_0xc8091f[_0x16ec7f('0x1b')](_0x16ec7f('0x2'))}),_0x4b8347['addColumn'](_0x16ec7f('0x0'),_0x16ec7f('0x4'),{'type':_0xc8091f['BOOLEAN'],'defaultValue':![]}),_0x4b8347['addColumn'](_0x16ec7f('0x17'),'agentAvatar',{'type':_0xc8091f['TEXT']}),_0x4b8347[_0x16ec7f('0x25')](_0x16ec7f('0x17'),_0x16ec7f('0x13'),{'type':_0xc8091f[_0x16ec7f('0xb')],'defaultValue':![]}),_0x4b8347['changeColumn'](_0x16ec7f('0x27'),_0x16ec7f('0x5'),{'type':_0xc8091f['TEXT'](_0x16ec7f('0x2'))}),_0x4b8347[_0x16ec7f('0xa')](_0x1dc0f8);});},'down':function(){}}; \ No newline at end of file +const a920_0x41ca=['addIndex','TEXT','addIndex\x20%s\x20%s\x20%s','migration','finally','secret','dropTable','query','exports','prototype','chat_messages','cm_custom_fields','showAgentAvatar','serverUrl','../config/logger','queryInterface','info','chat_websites','sequelize','join','stringify','chat_interactions','addColumn','then','table\x20dropped\x20%s','enqueue','BOOLEAN','values','changeColumn','STRING','Changed\x20column\x20%s\x20in\x20table\x20%s','formData','sequence','catch','long','removeColumn','tail','final','Added\x20column\x20%s\x20to\x20%s'];(function(_0x2a121e,_0x41cafc){const _0xfba9a7=function(_0x5ec56e){while(--_0x5ec56e){_0x2a121e['push'](_0x2a121e['shift']());}};_0xfba9a7(++_0x41cafc);}(a920_0x41ca,0x1d8));const a920_0xfba9=function(_0x2a121e,_0x41cafc){_0x2a121e=_0x2a121e-0x0;let _0xfba9a7=a920_0x41ca[_0x2a121e];return _0xfba9a7;};const _0x1a0cfb=a920_0xfba9;'use strict';const logger=require(_0x1a0cfb('0xa'))(_0x1a0cfb('0x26')),util=require('util'),Sequence=function(){};Sequence[_0x1a0cfb('0x5')]['enqueue']=function(_0x5ec56e){const _0x4f5bee=_0x1a0cfb;this[_0x4f5bee('0x20')]=this[_0x4f5bee('0x20')]?this['tail'][_0x4f5bee('0x0')](_0x5ec56e):_0x5ec56e();};const Migration=function(_0xaa325e){const _0x4c4691=_0x1a0cfb;this[_0x4c4691('0xb')]=_0xaa325e,this['sequence']=new Sequence();};Migration[_0x1a0cfb('0x5')][_0x1a0cfb('0x18')]=function(_0x1fa0d2,_0x365153,_0x553095){const _0x15f2c8=_0x1a0cfb,_0xf857a2=this;this['sequence'][_0x15f2c8('0x15')](function(){const _0x259dac=_0x15f2c8;return _0xf857a2['queryInterface']['changeColumn'](_0x1fa0d2,_0x365153,_0x553095)[_0x259dac('0x13')](function(){const _0x3b974b=_0x259dac;logger[_0x3b974b('0xc')](_0x3b974b('0x1a'),_0x365153,_0x1fa0d2);})[_0x259dac('0x1d')](function(_0x589337){const _0x184de9=_0x259dac;logger[_0x184de9('0xc')](JSON[_0x184de9('0x10')](_0x589337));});});},Migration[_0x1a0cfb('0x5')][_0x1a0cfb('0x12')]=function(_0x292b14,_0x1da928,_0x45c640){const _0x23d9be=_0x1a0cfb,_0x30ffbf=this;this[_0x23d9be('0x1c')][_0x23d9be('0x15')](function(){const _0x179f8c=_0x23d9be;return _0x30ffbf[_0x179f8c('0xb')][_0x179f8c('0x12')](_0x292b14,_0x1da928,_0x45c640)[_0x179f8c('0x13')](function(){const _0x5f0e55=_0x179f8c;logger[_0x5f0e55('0xc')](_0x5f0e55('0x22'),_0x1da928,_0x292b14);})[_0x179f8c('0x1d')](function(_0x28514c){const _0x5e9a28=_0x179f8c;logger[_0x5e9a28('0xc')](JSON[_0x5e9a28('0x10')](_0x28514c));});});},Migration[_0x1a0cfb('0x5')][_0x1a0cfb('0x2')]=function(_0x2c5dfa){const _0x1040a3=_0x1a0cfb,_0x438d67=this;this[_0x1040a3('0x1c')][_0x1040a3('0x15')](function(){const _0x44a9d8=_0x1040a3;return _0x438d67[_0x44a9d8('0xb')]['dropTable'](_0x2c5dfa,{'force':!![]})[_0x44a9d8('0x13')](function(){const _0xb2a1e3=_0x44a9d8;logger[_0xb2a1e3('0xc')](_0xb2a1e3('0x14'),_0x2c5dfa);})[_0x44a9d8('0x1d')](function(_0x308817){const _0x82dea6=_0x44a9d8;logger[_0x82dea6('0xc')](JSON[_0x82dea6('0x10')](_0x308817));});});},Migration[_0x1a0cfb('0x5')][_0x1a0cfb('0x23')]=function(_0x52c7be,_0x495acb,_0x342a2b){const _0x435392=_0x1a0cfb,_0x3bf579=this;this['sequence'][_0x435392('0x15')](function(){const _0xcda9d8=_0x435392;return _0x3bf579[_0xcda9d8('0xb')][_0xcda9d8('0x23')](_0x52c7be,_0x495acb,{'indexName':_0x342a2b})[_0xcda9d8('0x13')](function(){const _0x166822=_0xcda9d8;logger[_0x166822('0xc')](_0x166822('0x25'),_0x52c7be,_0x495acb[_0x166822('0xf')](','),_0x342a2b);})[_0xcda9d8('0x1d')](function(_0x5489c0){const _0x5162fe=_0xcda9d8;logger[_0x5162fe('0xc')](JSON[_0x5162fe('0x10')](_0x5489c0));});});},Migration[_0x1a0cfb('0x5')]['query']=function(_0x59e288){const _0x15ccc1=_0x1a0cfb,_0x375a4b=this;this[_0x15ccc1('0x1c')][_0x15ccc1('0x15')](function(){const _0x97e975=_0x15ccc1;return _0x375a4b[_0x97e975('0xb')][_0x97e975('0xe')][_0x97e975('0x3')](_0x59e288)[_0x97e975('0x13')](function(){logger['info']('query\x20%s',_0x59e288);})[_0x97e975('0x1d')](function(_0xd859a3){const _0x40b3c6=_0x97e975;logger[_0x40b3c6('0xc')](JSON[_0x40b3c6('0x10')](_0xd859a3));});});},Migration['prototype']['removeColumn']=function(_0x5650ab,_0x57c24a){const _0x298671=_0x1a0cfb,_0x519b58=this;this[_0x298671('0x1c')][_0x298671('0x15')](function(){const _0x729673=_0x298671;return _0x519b58[_0x729673('0xb')][_0x729673('0x1f')](_0x5650ab,_0x57c24a)[_0x729673('0x13')](function(){const _0x12f39b=_0x729673;logger[_0x12f39b('0xc')]('Removed\x20column\x20%s\x20from\x20%s',_0x57c24a,_0x5650ab);})[_0x729673('0x1d')](function(_0x357568){const _0x5cc567=_0x729673;logger[_0x5cc567('0xc')](util['inspect'](_0x357568,{'showHidden':![],'depth':null}));});});},Migration[_0x1a0cfb('0x5')][_0x1a0cfb('0x21')]=function(_0x38c36b){const _0x4b324b=_0x1a0cfb;this[_0x4b324b('0x1c')][_0x4b324b('0x15')](function(){return _0x38c36b();});},module[_0x1a0cfb('0x4')]={'up':function(_0xf71386,_0x17d5c2){return new Promise(function(_0x39d85b){const _0x54a901=a920_0xfba9,_0x3df6a7=new Migration(_0xf71386);_0x3df6a7[_0x54a901('0x12')]('int_desk_accounts',_0x54a901('0x9'),{'type':_0x17d5c2[_0x54a901('0x19')]}),_0x3df6a7['addColumn'](_0x54a901('0x11'),_0x54a901('0x1b'),{'type':_0x17d5c2[_0x54a901('0x24')](_0x54a901('0x1e'))}),_0x3df6a7[_0x54a901('0x12')](_0x54a901('0x6'),_0x54a901('0x1'),{'type':_0x17d5c2[_0x54a901('0x16')],'defaultValue':![]}),_0x3df6a7['addColumn']('chat_websites','agentAvatar',{'type':_0x17d5c2[_0x54a901('0x24')]}),_0x3df6a7['addColumn'](_0x54a901('0xd'),_0x54a901('0x8'),{'type':_0x17d5c2[_0x54a901('0x16')],'defaultValue':![]}),_0x3df6a7['changeColumn'](_0x54a901('0x7'),_0x54a901('0x17'),{'type':_0x17d5c2['TEXT'](_0x54a901('0x1e'))}),_0x3df6a7[_0x54a901('0x21')](_0x39d85b);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.42.js b/server/migrations/2.0.42.js index 57b99ae..dcf37d8 100644 --- a/server/migrations/2.0.42.js +++ b/server/migrations/2.0.42.js @@ -1 +1 @@ -const a921_0x384e=['tools_tags','join','dropTable','migration','secret','info','query','root','enqueue','switch','color','findAll','queryInterface','STRING','getCustomFields','addColumn','../config/logger','Removed\x20column\x20%s\x20from\x20%s','sequence','catch','addIndex\x20%s\x20%s\x20%s','exports','finally','notIn','../config/environment','extensionMonitor','changeColumn','util','prototype','import','then','cm_contacts','users','tail','TEXT','stringify','length','final','Changed\x20column\x20%s\x20in\x20table\x20%s','fax_messages','sequelize','number','openchannel_messages','Added\x20column\x20%s\x20to\x20%s','removeColumn'];(function(_0x195d78,_0x384e59){const _0x2c1353=function(_0x3b02df){while(--_0x3b02df){_0x195d78['push'](_0x195d78['shift']());}};_0x2c1353(++_0x384e59);}(a921_0x384e,0x132));const a921_0x2c13=function(_0x195d78,_0x384e59){_0x195d78=_0x195d78-0x0;let _0x2c1353=a921_0x384e[_0x195d78];return _0x2c1353;};const _0x39ac46=a921_0x2c13;'use strict';const logger=require(_0x39ac46('0x19'))(_0x39ac46('0xc')),util=require(_0x39ac46('0x24')),path=require('path'),config=require(_0x39ac46('0x21')),{Op}=require(_0x39ac46('0x4')),Sequence=function(){};Sequence[_0x39ac46('0x25')]['enqueue']=function(_0x3b02df){const _0x27caf2=_0x39ac46;this[_0x27caf2('0x2a')]=this[_0x27caf2('0x2a')]?this['tail'][_0x27caf2('0x1f')](_0x3b02df):_0x3b02df();};const Migration=function(_0x49e22a){this['queryInterface']=_0x49e22a,this['sequence']=new Sequence();};Migration[_0x39ac46('0x25')]['changeColumn']=function(_0x2a333b,_0x37aa85,_0x1408a0){const _0x586fc5=_0x39ac46,_0x509f8d=this;this[_0x586fc5('0x1b')]['enqueue'](function(){const _0xed95d1=_0x586fc5;return _0x509f8d['queryInterface'][_0xed95d1('0x23')](_0x2a333b,_0x37aa85,_0x1408a0)[_0xed95d1('0x27')](function(){const _0x25c7e5=_0xed95d1;logger[_0x25c7e5('0xe')](_0x25c7e5('0x2'),_0x37aa85,_0x2a333b);})[_0xed95d1('0x1c')](function(_0x34af0c){const _0x5ba00e=_0xed95d1;logger[_0x5ba00e('0xe')](JSON[_0x5ba00e('0x2c')](_0x34af0c));});});},Migration[_0x39ac46('0x25')][_0x39ac46('0x18')]=function(_0x590936,_0x49d3b5,_0x16b527){const _0x149cd5=_0x39ac46,_0x234210=this;this[_0x149cd5('0x1b')][_0x149cd5('0x11')](function(){const _0x4a2f05=_0x149cd5;return _0x234210['queryInterface'][_0x4a2f05('0x18')](_0x590936,_0x49d3b5,_0x16b527)[_0x4a2f05('0x27')](function(){const _0x201432=_0x4a2f05;logger[_0x201432('0xe')](_0x201432('0x7'),_0x49d3b5,_0x590936);})[_0x4a2f05('0x1c')](function(_0x3933ca){const _0xdae4b8=_0x4a2f05;logger[_0xdae4b8('0xe')](JSON[_0xdae4b8('0x2c')](_0x3933ca));});});},Migration[_0x39ac46('0x25')][_0x39ac46('0xb')]=function(_0x152718){const _0x3f1735=_0x39ac46,_0x5436de=this;this['sequence'][_0x3f1735('0x11')](function(){const _0x331aff=_0x3f1735;return _0x5436de['queryInterface'][_0x331aff('0xb')](_0x152718,{'force':!![]})[_0x331aff('0x27')](function(){const _0x36cc7f=_0x331aff;logger[_0x36cc7f('0xe')]('table\x20dropped\x20%s',_0x152718);})[_0x331aff('0x1c')](function(_0x47d344){const _0x3c10ca=_0x331aff;logger['info'](JSON[_0x3c10ca('0x2c')](_0x47d344));});});},Migration['prototype']['addIndex']=function(_0x4ad49a,_0x40e94b,_0x136a3b){const _0x32fb85=_0x39ac46,_0x2307a8=this;this[_0x32fb85('0x1b')][_0x32fb85('0x11')](function(){const _0x18695e=_0x32fb85;return _0x2307a8[_0x18695e('0x15')]['addIndex'](_0x4ad49a,_0x40e94b,{'indexName':_0x136a3b})['then'](function(){const _0x2aa9ce=_0x18695e;logger[_0x2aa9ce('0xe')](_0x2aa9ce('0x1d'),_0x4ad49a,_0x40e94b[_0x2aa9ce('0xa')](','),_0x136a3b);})['catch'](function(_0xc1dce4){const _0x7e8be0=_0x18695e;logger[_0x7e8be0('0xe')](JSON[_0x7e8be0('0x2c')](_0xc1dce4));});});},Migration[_0x39ac46('0x25')][_0x39ac46('0xf')]=function(_0x115b91){const _0x3586d5=this;this['sequence']['enqueue'](function(){const _0x23d964=a921_0x2c13;return _0x3586d5[_0x23d964('0x15')][_0x23d964('0x4')][_0x23d964('0xf')](_0x115b91)[_0x23d964('0x27')](function(){const _0x10f8a7=_0x23d964;logger[_0x10f8a7('0xe')]('query\x20%s',_0x115b91);})['catch'](function(_0x439ca1){const _0xcf99df=_0x23d964;logger[_0xcf99df('0xe')](JSON[_0xcf99df('0x2c')](_0x439ca1));});});},Migration['prototype'][_0x39ac46('0x8')]=function(_0x232308,_0x2854a8){const _0x51ff1b=_0x39ac46,_0x1edb59=this;this[_0x51ff1b('0x1b')][_0x51ff1b('0x11')](function(){const _0x4ae31b=_0x51ff1b;return _0x1edb59[_0x4ae31b('0x15')][_0x4ae31b('0x8')](_0x232308,_0x2854a8)[_0x4ae31b('0x27')](function(){const _0x21b941=_0x4ae31b;logger[_0x21b941('0xe')](_0x21b941('0x1a'),_0x2854a8,_0x232308);})[_0x4ae31b('0x1c')](function(_0x20e2a4){logger['info'](util['inspect'](_0x20e2a4,{'showHidden':![],'depth':null}));});});},Migration[_0x39ac46('0x25')][_0x39ac46('0x17')]=function(){const _0x2d15c3=_0x39ac46,_0x1c48c7=this,_0x34e450=_0x1c48c7[_0x2d15c3('0x15')][_0x2d15c3('0x4')][_0x2d15c3('0x26')](path[_0x2d15c3('0xa')](config[_0x2d15c3('0x10')],'server/api/cmCustomField/cmCustomField.model'));return _0x34e450[_0x2d15c3('0x14')]({'where':{'type':{[Op[_0x2d15c3('0x20')]]:[_0x2d15c3('0x5'),_0x2d15c3('0x12')]}},'attributes':['id']})[_0x2d15c3('0x27')](function(_0x526b5a){return _0x526b5a;})[_0x2d15c3('0x1c')](function(_0x5c6228){const _0x5117e1=_0x2d15c3;logger[_0x5117e1('0xe')](JSON[_0x5117e1('0x2c')](_0x5c6228));});},Migration[_0x39ac46('0x25')][_0x39ac46('0x1')]=function(_0x3a54bb){const _0x2e9787=_0x39ac46;this[_0x2e9787('0x1b')]['enqueue'](function(){return _0x3a54bb();});},module[_0x39ac46('0x1e')]={'up':function(_0x190df1,_0x578752){return new Promise(function(_0xb00732){const _0x4e5bd9=a921_0x2c13,_0x4caabc=new Migration(_0x190df1);_0x4caabc[_0x4e5bd9('0x18')](_0x4e5bd9('0x9'),_0x4e5bd9('0x13'),{'type':_0x578752[_0x4e5bd9('0x16')],'defaultValue':'#0091EA'}),_0x4caabc[_0x4e5bd9('0x18')](_0x4e5bd9('0x6'),_0x4e5bd9('0xd'),{'type':_0x578752['BOOLEAN'],'defaultValue':![]}),_0x4caabc['getCustomFields']()['then'](function(_0x35f136){const _0x459019=_0x4e5bd9;if(_0x35f136)for(let _0x2bae77=0x0,_0x4e8056=_0x35f136[_0x459019('0x0')];_0x2bae77<_0x4e8056;_0x2bae77++){_0x4caabc[_0x459019('0x23')](_0x459019('0x28'),'cf_'+_0x35f136[_0x2bae77]['id'],{'type':_0x578752[_0x459019('0x2b')]});}}),_0x4caabc[_0x4e5bd9('0x18')](_0x4e5bd9('0x3'),'failMessage',{'type':_0x578752['TEXT']}),_0x4caabc['addColumn'](_0x4e5bd9('0x29'),_0x4e5bd9('0x22'),{'type':_0x578752[_0x4e5bd9('0x16')],'defaultValue':''}),_0x4caabc[_0x4e5bd9('0x1')](_0xb00732);});},'down':function(){}}; \ No newline at end of file +const a921_0x2f53=['notIn','queryInterface','findAll','path','root','tail','join','Added\x20column\x20%s\x20to\x20%s','util','removeColumn','changeColumn','addColumn','catch','table\x20dropped\x20%s','final','TEXT','addIndex','info','tools_tags','stringify','extensionMonitor','then','dropTable','length','openchannel_messages','users','cm_contacts','inspect','prototype','#0091EA','switch','query','getCustomFields','../config/environment','sequence','STRING','enqueue','sequelize','addIndex\x20%s\x20%s\x20%s','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','number','Removed\x20column\x20%s\x20from\x20%s','BOOLEAN'];(function(_0xc05223,_0x2f53cc){const _0x3d96bc=function(_0x2421c5){while(--_0x2421c5){_0xc05223['push'](_0xc05223['shift']());}};_0x3d96bc(++_0x2f53cc);}(a921_0x2f53,0x154));const a921_0x3d96=function(_0xc05223,_0x2f53cc){_0xc05223=_0xc05223-0x0;let _0x3d96bc=a921_0x2f53[_0xc05223];return _0x3d96bc;};const _0xd2a113=a921_0x3d96;'use strict';const logger=require('../config/logger')('migration'),util=require(_0xd2a113('0x14')),path=require(_0xd2a113('0xf')),config=require(_0xd2a113('0x1')),{Op}=require(_0xd2a113('0x5')),Sequence=function(){};Sequence['prototype'][_0xd2a113('0x4')]=function(_0x2421c5){const _0x2a132c=_0xd2a113;this[_0x2a132c('0x11')]=this[_0x2a132c('0x11')]?this[_0x2a132c('0x11')]['finally'](_0x2421c5):_0x2421c5();};const Migration=function(_0x4ad9d6){const _0x191f91=_0xd2a113;this[_0x191f91('0xd')]=_0x4ad9d6,this['sequence']=new Sequence();};Migration['prototype'][_0xd2a113('0x16')]=function(_0x512ded,_0x1d1695,_0x3f3426){const _0x1b4556=_0xd2a113,_0xba4988=this;this[_0x1b4556('0x2')][_0x1b4556('0x4')](function(){const _0x3c1513=_0x1b4556;return _0xba4988['queryInterface'][_0x3c1513('0x16')](_0x512ded,_0x1d1695,_0x3f3426)[_0x3c1513('0x21')](function(){const _0x21d9da=_0x3c1513;logger[_0x21d9da('0x1d')](_0x21d9da('0x8'),_0x1d1695,_0x512ded);})[_0x3c1513('0x18')](function(_0x34b011){const _0x3bb8bf=_0x3c1513;logger[_0x3bb8bf('0x1d')](JSON[_0x3bb8bf('0x1f')](_0x34b011));});});},Migration[_0xd2a113('0x28')][_0xd2a113('0x17')]=function(_0x12acc2,_0x9a14e,_0xc187cd){const _0x4a9ad4=_0xd2a113,_0x4fc696=this;this[_0x4a9ad4('0x2')][_0x4a9ad4('0x4')](function(){const _0x2e2f81=_0x4a9ad4;return _0x4fc696[_0x2e2f81('0xd')][_0x2e2f81('0x17')](_0x12acc2,_0x9a14e,_0xc187cd)[_0x2e2f81('0x21')](function(){const _0x4dd6f3=_0x2e2f81;logger[_0x4dd6f3('0x1d')](_0x4dd6f3('0x13'),_0x9a14e,_0x12acc2);})[_0x2e2f81('0x18')](function(_0x4f7e79){const _0xb8b8fc=_0x2e2f81;logger['info'](JSON[_0xb8b8fc('0x1f')](_0x4f7e79));});});},Migration[_0xd2a113('0x28')][_0xd2a113('0x22')]=function(_0x2d6605){const _0x4e4a5f=_0xd2a113,_0x5e6d25=this;this['sequence'][_0x4e4a5f('0x4')](function(){const _0xfeb0ae=_0x4e4a5f;return _0x5e6d25[_0xfeb0ae('0xd')]['dropTable'](_0x2d6605,{'force':!![]})[_0xfeb0ae('0x21')](function(){const _0x2282f6=_0xfeb0ae;logger[_0x2282f6('0x1d')](_0x2282f6('0x19'),_0x2d6605);})[_0xfeb0ae('0x18')](function(_0x4c28fb){const _0xdb2e51=_0xfeb0ae;logger[_0xdb2e51('0x1d')](JSON[_0xdb2e51('0x1f')](_0x4c28fb));});});},Migration[_0xd2a113('0x28')][_0xd2a113('0x1c')]=function(_0x833fb6,_0x3b09fd,_0x30440a){const _0x18b044=_0xd2a113,_0x44b6ee=this;this[_0x18b044('0x2')][_0x18b044('0x4')](function(){const _0x26a969=_0x18b044;return _0x44b6ee[_0x26a969('0xd')]['addIndex'](_0x833fb6,_0x3b09fd,{'indexName':_0x30440a})[_0x26a969('0x21')](function(){const _0x484133=_0x26a969;logger[_0x484133('0x1d')](_0x484133('0x6'),_0x833fb6,_0x3b09fd[_0x484133('0x12')](','),_0x30440a);})[_0x26a969('0x18')](function(_0x3b236d){const _0x536ca4=_0x26a969;logger['info'](JSON[_0x536ca4('0x1f')](_0x3b236d));});});},Migration['prototype']['query']=function(_0x5e8360){const _0x31f542=_0xd2a113,_0x14c49c=this;this['sequence'][_0x31f542('0x4')](function(){const _0x274fa2=_0x31f542;return _0x14c49c[_0x274fa2('0xd')][_0x274fa2('0x5')][_0x274fa2('0x2b')](_0x5e8360)['then'](function(){const _0x4e5e8b=_0x274fa2;logger[_0x4e5e8b('0x1d')](_0x4e5e8b('0x7'),_0x5e8360);})[_0x274fa2('0x18')](function(_0x34ac6a){const _0x1de856=_0x274fa2;logger[_0x1de856('0x1d')](JSON[_0x1de856('0x1f')](_0x34ac6a));});});},Migration[_0xd2a113('0x28')]['removeColumn']=function(_0x4b6805,_0x1bcd8d){const _0x59ba5d=_0xd2a113,_0x36611a=this;this['sequence'][_0x59ba5d('0x4')](function(){const _0x145ded=_0x59ba5d;return _0x36611a[_0x145ded('0xd')][_0x145ded('0x15')](_0x4b6805,_0x1bcd8d)[_0x145ded('0x21')](function(){const _0x4ab720=_0x145ded;logger[_0x4ab720('0x1d')](_0x4ab720('0xa'),_0x1bcd8d,_0x4b6805);})[_0x145ded('0x18')](function(_0x9405b6){const _0x165432=_0x145ded;logger[_0x165432('0x1d')](util[_0x165432('0x27')](_0x9405b6,{'showHidden':![],'depth':null}));});});},Migration[_0xd2a113('0x28')][_0xd2a113('0x0')]=function(){const _0x2f39ec=_0xd2a113,_0x3a5952=this,_0x4b84e0=_0x3a5952[_0x2f39ec('0xd')][_0x2f39ec('0x5')]['import'](path[_0x2f39ec('0x12')](config[_0x2f39ec('0x10')],'server/api/cmCustomField/cmCustomField.model'));return _0x4b84e0[_0x2f39ec('0xe')]({'where':{'type':{[Op[_0x2f39ec('0xc')]]:[_0x2f39ec('0x9'),_0x2f39ec('0x2a')]}},'attributes':['id']})[_0x2f39ec('0x21')](function(_0x1d03d1){return _0x1d03d1;})['catch'](function(_0x568e2a){const _0x20d932=_0x2f39ec;logger['info'](JSON[_0x20d932('0x1f')](_0x568e2a));});},Migration['prototype'][_0xd2a113('0x1a')]=function(_0x41a263){const _0x46a43d=_0xd2a113;this['sequence'][_0x46a43d('0x4')](function(){return _0x41a263();});},module['exports']={'up':function(_0x24d590,_0x5c027e){return new Promise(function(_0x4bd0e1){const _0x7bd584=a921_0x3d96,_0x19c88d=new Migration(_0x24d590);_0x19c88d['addColumn'](_0x7bd584('0x1e'),'color',{'type':_0x5c027e[_0x7bd584('0x3')],'defaultValue':_0x7bd584('0x29')}),_0x19c88d['addColumn'](_0x7bd584('0x24'),'secret',{'type':_0x5c027e[_0x7bd584('0xb')],'defaultValue':![]}),_0x19c88d['getCustomFields']()['then'](function(_0x12e069){const _0x49b41e=_0x7bd584;if(_0x12e069)for(let _0x5f0268=0x0,_0xa22370=_0x12e069[_0x49b41e('0x23')];_0x5f0268<_0xa22370;_0x5f0268++){_0x19c88d[_0x49b41e('0x16')](_0x49b41e('0x26'),'cf_'+_0x12e069[_0x5f0268]['id'],{'type':_0x5c027e['TEXT']});}}),_0x19c88d[_0x7bd584('0x17')]('fax_messages','failMessage',{'type':_0x5c027e[_0x7bd584('0x1b')]}),_0x19c88d[_0x7bd584('0x17')](_0x7bd584('0x25'),_0x7bd584('0x20'),{'type':_0x5c027e['STRING'],'defaultValue':''}),_0x19c88d[_0x7bd584('0x1a')](_0x4bd0e1);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.43.js b/server/migrations/2.0.43.js index a9e806a..d0a4206 100644 --- a/server/migrations/2.0.43.js +++ b/server/migrations/2.0.43.js @@ -1 +1 @@ -const a922_0x494a=['Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','dropTable','finally','BOOLEAN','Removed\x20column\x20%s\x20from\x20%s','enqueue','sequence','addColumn','catch','addIndex','util','secret','then','final','tail','table\x20dropped\x20%s','prototype','info','query\x20%s','migration','exports','query','join','changeColumn','addIndex\x20%s\x20%s\x20%s','queryInterface','sequelize','removeColumn','../config/logger'];(function(_0x1ad6f7,_0x494ac0){const _0x4edcbf=function(_0x1d32a1){while(--_0x1d32a1){_0x1ad6f7['push'](_0x1ad6f7['shift']());}};_0x4edcbf(++_0x494ac0);}(a922_0x494a,0x153));const a922_0x4edc=function(_0x1ad6f7,_0x494ac0){_0x1ad6f7=_0x1ad6f7-0x0;let _0x4edcbf=a922_0x494a[_0x1ad6f7];return _0x4edcbf;};const _0x3a152d=a922_0x4edc;'use strict';const logger=require(_0x3a152d('0x14'))(_0x3a152d('0xb')),util=require(_0x3a152d('0x2')),Sequence=function(){};Sequence[_0x3a152d('0x8')][_0x3a152d('0x1b')]=function(_0x1d32a1){const _0xd64201=_0x3a152d;this[_0xd64201('0x6')]=this[_0xd64201('0x6')]?this[_0xd64201('0x6')][_0xd64201('0x18')](_0x1d32a1):_0x1d32a1();};const Migration=function(_0x53692c){const _0x25e1ec=_0x3a152d;this[_0x25e1ec('0x11')]=_0x53692c,this['sequence']=new Sequence();};Migration['prototype'][_0x3a152d('0xf')]=function(_0x306260,_0x315b12,_0x88be23){const _0x3e1e9f=_0x3a152d,_0x1caecc=this;this[_0x3e1e9f('0x1c')][_0x3e1e9f('0x1b')](function(){const _0x1f94e6=_0x3e1e9f;return _0x1caecc[_0x1f94e6('0x11')]['changeColumn'](_0x306260,_0x315b12,_0x88be23)[_0x1f94e6('0x4')](function(){const _0x4833af=_0x1f94e6;logger[_0x4833af('0x9')](_0x4833af('0x15'),_0x315b12,_0x306260);})[_0x1f94e6('0x0')](function(_0x180364){const _0x4863ea=_0x1f94e6;logger['info'](JSON[_0x4863ea('0x16')](_0x180364));});});},Migration[_0x3a152d('0x8')][_0x3a152d('0x1d')]=function(_0x543873,_0x4edec3,_0x34ae37){const _0xa91c34=_0x3a152d,_0x4feb81=this;this[_0xa91c34('0x1c')]['enqueue'](function(){const _0x5c9284=_0xa91c34;return _0x4feb81[_0x5c9284('0x11')][_0x5c9284('0x1d')](_0x543873,_0x4edec3,_0x34ae37)[_0x5c9284('0x4')](function(){const _0xc4969d=_0x5c9284;logger[_0xc4969d('0x9')]('Added\x20column\x20%s\x20to\x20%s',_0x4edec3,_0x543873);})['catch'](function(_0x2c2701){const _0x2426ed=_0x5c9284;logger[_0x2426ed('0x9')](JSON[_0x2426ed('0x16')](_0x2c2701));});});},Migration['prototype'][_0x3a152d('0x17')]=function(_0x4a6956){const _0x49cf55=_0x3a152d,_0x32bca2=this;this[_0x49cf55('0x1c')][_0x49cf55('0x1b')](function(){const _0x585813=_0x49cf55;return _0x32bca2[_0x585813('0x11')][_0x585813('0x17')](_0x4a6956,{'force':!![]})[_0x585813('0x4')](function(){const _0x248cfd=_0x585813;logger[_0x248cfd('0x9')](_0x248cfd('0x7'),_0x4a6956);})[_0x585813('0x0')](function(_0x21082b){const _0x271d6d=_0x585813;logger[_0x271d6d('0x9')](JSON[_0x271d6d('0x16')](_0x21082b));});});},Migration[_0x3a152d('0x8')][_0x3a152d('0x1')]=function(_0x2dc0a9,_0x1a4b87,_0x3d3aed){const _0xd5dec3=_0x3a152d,_0x4d525d=this;this[_0xd5dec3('0x1c')][_0xd5dec3('0x1b')](function(){const _0x2d71f0=_0xd5dec3;return _0x4d525d[_0x2d71f0('0x11')]['addIndex'](_0x2dc0a9,_0x1a4b87,{'indexName':_0x3d3aed})[_0x2d71f0('0x4')](function(){const _0x1b6482=_0x2d71f0;logger[_0x1b6482('0x9')](_0x1b6482('0x10'),_0x2dc0a9,_0x1a4b87[_0x1b6482('0xe')](','),_0x3d3aed);})['catch'](function(_0x3c8f64){const _0x461214=_0x2d71f0;logger['info'](JSON[_0x461214('0x16')](_0x3c8f64));});});},Migration[_0x3a152d('0x8')][_0x3a152d('0xd')]=function(_0x397a3f){const _0x57dbf7=_0x3a152d,_0xcdc74b=this;this[_0x57dbf7('0x1c')][_0x57dbf7('0x1b')](function(){const _0x932fd9=_0x57dbf7;return _0xcdc74b['queryInterface'][_0x932fd9('0x12')][_0x932fd9('0xd')](_0x397a3f)[_0x932fd9('0x4')](function(){const _0x46e66c=_0x932fd9;logger[_0x46e66c('0x9')](_0x46e66c('0xa'),_0x397a3f);})[_0x932fd9('0x0')](function(_0x21addb){const _0x2ee0ab=_0x932fd9;logger['info'](JSON[_0x2ee0ab('0x16')](_0x21addb));});});},Migration[_0x3a152d('0x8')][_0x3a152d('0x13')]=function(_0x374fb9,_0x46deda){const _0x5cddaf=_0x3a152d,_0xc6704e=this;this[_0x5cddaf('0x1c')][_0x5cddaf('0x1b')](function(){const _0x14fd4b=_0x5cddaf;return _0xc6704e['queryInterface']['removeColumn'](_0x374fb9,_0x46deda)[_0x14fd4b('0x4')](function(){const _0x4efdd2=_0x14fd4b;logger[_0x4efdd2('0x9')](_0x4efdd2('0x1a'),_0x46deda,_0x374fb9);})[_0x14fd4b('0x0')](function(_0x3daa19){const _0x29a55c=_0x14fd4b;logger[_0x29a55c('0x9')](util['inspect'](_0x3daa19,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3a152d('0x5')]=function(_0x295c46){const _0xbd7c53=_0x3a152d;this[_0xbd7c53('0x1c')]['enqueue'](function(){return _0x295c46();});},module[_0x3a152d('0xc')]={'up':function(_0x4e13df,_0x53d9a5){return new Promise(function(_0x5d428f){const _0x5b4095=a922_0x4edc,_0xf80f07=new Migration(_0x4e13df);_0xf80f07[_0x5b4095('0x1d')]('mail_messages',_0x5b4095('0x3'),{'type':_0x53d9a5[_0x5b4095('0x19')],'defaultValue':![]}),_0xf80f07[_0x5b4095('0x5')](_0x5d428f);});},'down':function(){}}; \ No newline at end of file +const a922_0xb11d=['sequence','Added\x20column\x20%s\x20to\x20%s','prototype','BOOLEAN','catch','secret','inspect','Removed\x20column\x20%s\x20from\x20%s','addIndex','util','queryInterface','dropTable','stringify','finally','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','final','tail','mail_messages','query','migration','exports','../config/logger','then','info','removeColumn','addColumn','join','addIndex\x20%s\x20%s\x20%s','query\x20%s','changeColumn'];(function(_0x448af3,_0xb11ded){const _0x528a1d=function(_0x477492){while(--_0x477492){_0x448af3['push'](_0x448af3['shift']());}};_0x528a1d(++_0xb11ded);}(a922_0xb11d,0x102));const a922_0x528a=function(_0x448af3,_0xb11ded){_0x448af3=_0x448af3-0x0;let _0x528a1d=a922_0xb11d[_0x448af3];return _0x528a1d;};const _0x10cf55=a922_0x528a;'use strict';const logger=require(_0x10cf55('0xc'))(_0x10cf55('0xa')),util=require(_0x10cf55('0x1e')),Sequence=function(){};Sequence[_0x10cf55('0x17')][_0x10cf55('0x4')]=function(_0x477492){const _0x395afd=_0x10cf55;this[_0x395afd('0x7')]=this[_0x395afd('0x7')]?this[_0x395afd('0x7')][_0x395afd('0x3')](_0x477492):_0x477492();};const Migration=function(_0x44df53){const _0xd6382d=_0x10cf55;this[_0xd6382d('0x0')]=_0x44df53,this[_0xd6382d('0x15')]=new Sequence();};Migration[_0x10cf55('0x17')][_0x10cf55('0x14')]=function(_0xfd836b,_0x162869,_0x5b8a32){const _0x59874b=_0x10cf55,_0x551a0b=this;this[_0x59874b('0x15')][_0x59874b('0x4')](function(){const _0x48466e=_0x59874b;return _0x551a0b[_0x48466e('0x0')]['changeColumn'](_0xfd836b,_0x162869,_0x5b8a32)[_0x48466e('0xd')](function(){const _0x47fa72=_0x48466e;logger['info'](_0x47fa72('0x5'),_0x162869,_0xfd836b);})[_0x48466e('0x19')](function(_0xda6df7){const _0x204ae4=_0x48466e;logger[_0x204ae4('0xe')](JSON[_0x204ae4('0x2')](_0xda6df7));});});},Migration[_0x10cf55('0x17')][_0x10cf55('0x10')]=function(_0x52c005,_0x4f6a15,_0x547254){const _0x527d1d=_0x10cf55,_0x3f0f16=this;this[_0x527d1d('0x15')]['enqueue'](function(){const _0x27a3bf=_0x527d1d;return _0x3f0f16[_0x27a3bf('0x0')][_0x27a3bf('0x10')](_0x52c005,_0x4f6a15,_0x547254)['then'](function(){const _0x18d48a=_0x27a3bf;logger[_0x18d48a('0xe')](_0x18d48a('0x16'),_0x4f6a15,_0x52c005);})[_0x27a3bf('0x19')](function(_0x2b7568){const _0x4ef883=_0x27a3bf;logger[_0x4ef883('0xe')](JSON[_0x4ef883('0x2')](_0x2b7568));});});},Migration[_0x10cf55('0x17')][_0x10cf55('0x1')]=function(_0x39ad26){const _0x592772=_0x10cf55,_0x2d7108=this;this[_0x592772('0x15')][_0x592772('0x4')](function(){const _0x4cf128=_0x592772;return _0x2d7108[_0x4cf128('0x0')][_0x4cf128('0x1')](_0x39ad26,{'force':!![]})['then'](function(){const _0x19b031=_0x4cf128;logger[_0x19b031('0xe')]('table\x20dropped\x20%s',_0x39ad26);})[_0x4cf128('0x19')](function(_0x4ce18e){const _0x1a4ff9=_0x4cf128;logger[_0x1a4ff9('0xe')](JSON['stringify'](_0x4ce18e));});});},Migration[_0x10cf55('0x17')][_0x10cf55('0x1d')]=function(_0x1cb74c,_0xd0db0,_0x258e43){const _0x5396a7=_0x10cf55,_0x3f98b6=this;this[_0x5396a7('0x15')][_0x5396a7('0x4')](function(){const _0x2270f4=_0x5396a7;return _0x3f98b6[_0x2270f4('0x0')][_0x2270f4('0x1d')](_0x1cb74c,_0xd0db0,{'indexName':_0x258e43})[_0x2270f4('0xd')](function(){const _0x3616f0=_0x2270f4;logger['info'](_0x3616f0('0x12'),_0x1cb74c,_0xd0db0[_0x3616f0('0x11')](','),_0x258e43);})[_0x2270f4('0x19')](function(_0x50c8a8){const _0x2f9516=_0x2270f4;logger[_0x2f9516('0xe')](JSON[_0x2f9516('0x2')](_0x50c8a8));});});},Migration[_0x10cf55('0x17')][_0x10cf55('0x9')]=function(_0xaf74e5){const _0x5adcd4=_0x10cf55,_0x546496=this;this[_0x5adcd4('0x15')][_0x5adcd4('0x4')](function(){const _0x43e799=_0x5adcd4;return _0x546496[_0x43e799('0x0')]['sequelize']['query'](_0xaf74e5)[_0x43e799('0xd')](function(){const _0x1132e3=_0x43e799;logger[_0x1132e3('0xe')](_0x1132e3('0x13'),_0xaf74e5);})[_0x43e799('0x19')](function(_0x52df0e){const _0x5c2071=_0x43e799;logger['info'](JSON[_0x5c2071('0x2')](_0x52df0e));});});},Migration[_0x10cf55('0x17')][_0x10cf55('0xf')]=function(_0x30ee87,_0x1ebb61){const _0x20fb9b=_0x10cf55,_0x3bd4d6=this;this[_0x20fb9b('0x15')]['enqueue'](function(){const _0x3ed9e2=_0x20fb9b;return _0x3bd4d6[_0x3ed9e2('0x0')][_0x3ed9e2('0xf')](_0x30ee87,_0x1ebb61)[_0x3ed9e2('0xd')](function(){const _0x4c4f24=_0x3ed9e2;logger[_0x4c4f24('0xe')](_0x4c4f24('0x1c'),_0x1ebb61,_0x30ee87);})[_0x3ed9e2('0x19')](function(_0x142d97){const _0x59128f=_0x3ed9e2;logger[_0x59128f('0xe')](util[_0x59128f('0x1b')](_0x142d97,{'showHidden':![],'depth':null}));});});},Migration[_0x10cf55('0x17')][_0x10cf55('0x6')]=function(_0x1474f6){const _0x3313c1=_0x10cf55;this[_0x3313c1('0x15')][_0x3313c1('0x4')](function(){return _0x1474f6();});},module[_0x10cf55('0xb')]={'up':function(_0x3a7f04,_0xe78563){return new Promise(function(_0x27b065){const _0x42d6da=a922_0x528a,_0xc662b7=new Migration(_0x3a7f04);_0xc662b7[_0x42d6da('0x10')](_0x42d6da('0x8'),_0x42d6da('0x1a'),{'type':_0xe78563[_0x42d6da('0x18')],'defaultValue':![]}),_0xc662b7[_0x42d6da('0x6')](_0x27b065);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.44.js b/server/migrations/2.0.44.js index 205161a..81e3611 100644 --- a/server/migrations/2.0.44.js +++ b/server/migrations/2.0.44.js @@ -1 +1 @@ -const a923_0x5399=['sequelize','mail_interactions','nameAndAccount','removeColumn','tail','addColumn','ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)','ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name','ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)','voice_dispositions','inspect','Added\x20column\x20%s\x20to\x20%s','dropTable','then','fax_messages','fax_interactions','join','catch','table\x20dropped\x20%s','DATE','name','final','openchannel_messages','openchannel_interactions','migration','../config/logger','ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)','ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','readAt','queryInterface','stringify','sms_interactions','Removed\x20column\x20%s\x20from\x20%s','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_messages','sequence','sms_messages','substatusAt','addIndex\x20%s\x20%s\x20%s','openchannel_dispositions','prototype','util','closingQuestion','mail_dispositions','query','chat_dispositions','changeColumn','STRING','read1stAt','enqueue','chat_websites','query\x20%s','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','info','threadId','externalUrl'];(function(_0x36f2f0,_0x539943){const _0x1d7abf=function(_0x4f870f){while(--_0x4f870f){_0x36f2f0['push'](_0x36f2f0['shift']());}};_0x1d7abf(++_0x539943);}(a923_0x5399,0xd1));const a923_0x1d7a=function(_0x36f2f0,_0x539943){_0x36f2f0=_0x36f2f0-0x0;let _0x1d7abf=a923_0x5399[_0x36f2f0];return _0x1d7abf;};const _0x162e7c=a923_0x1d7a;'use strict';const logger=require(_0x162e7c('0x2c'))(_0x162e7c('0x2b')),util=require(_0x162e7c('0x4')),Sequence=function(){};Sequence[_0x162e7c('0x3')][_0x162e7c('0xc')]=function(_0x4f870f){const _0x40bc51=_0x162e7c;this[_0x40bc51('0x17')]=this[_0x40bc51('0x17')]?this[_0x40bc51('0x17')]['finally'](_0x4f870f):_0x4f870f();};const Migration=function(_0x477159){const _0x27258c=_0x162e7c;this[_0x27258c('0x30')]=_0x477159,this[_0x27258c('0x37')]=new Sequence();};Migration['prototype'][_0x162e7c('0x9')]=function(_0xa2cc84,_0x38dc6f,_0x143e37){const _0x381f9b=_0x162e7c,_0x1779e6=this;this['sequence'][_0x381f9b('0xc')](function(){const _0x47b984=_0x381f9b;return _0x1779e6['queryInterface'][_0x47b984('0x9')](_0xa2cc84,_0x38dc6f,_0x143e37)[_0x47b984('0x20')](function(){const _0x3b0624=_0x47b984;logger[_0x3b0624('0x10')](_0x3b0624('0x35'),_0x38dc6f,_0xa2cc84);})[_0x47b984('0x24')](function(_0x25e822){const _0x5afc21=_0x47b984;logger[_0x5afc21('0x10')](JSON[_0x5afc21('0x31')](_0x25e822));});});},Migration[_0x162e7c('0x3')][_0x162e7c('0x18')]=function(_0x2bdfca,_0x3092c4,_0x3495ad){const _0x41e0ac=_0x162e7c,_0x4bfdfe=this;this[_0x41e0ac('0x37')][_0x41e0ac('0xc')](function(){const _0x279e4e=_0x41e0ac;return _0x4bfdfe[_0x279e4e('0x30')]['addColumn'](_0x2bdfca,_0x3092c4,_0x3495ad)[_0x279e4e('0x20')](function(){const _0x1dbe05=_0x279e4e;logger[_0x1dbe05('0x10')](_0x1dbe05('0x1e'),_0x3092c4,_0x2bdfca);})[_0x279e4e('0x24')](function(_0x454ebf){const _0x3e6a28=_0x279e4e;logger[_0x3e6a28('0x10')](JSON[_0x3e6a28('0x31')](_0x454ebf));});});},Migration[_0x162e7c('0x3')]['dropTable']=function(_0x4f17da){const _0x1a71cc=_0x162e7c,_0x222c4b=this;this[_0x1a71cc('0x37')]['enqueue'](function(){const _0x577ae4=_0x1a71cc;return _0x222c4b[_0x577ae4('0x30')][_0x577ae4('0x1f')](_0x4f17da,{'force':!![]})[_0x577ae4('0x20')](function(){const _0x48b43e=_0x577ae4;logger[_0x48b43e('0x10')](_0x48b43e('0x25'),_0x4f17da);})['catch'](function(_0x4343af){const _0x25f4fd=_0x577ae4;logger[_0x25f4fd('0x10')](JSON['stringify'](_0x4343af));});});},Migration[_0x162e7c('0x3')]['addIndex']=function(_0x31d8d3,_0x24a8ef,_0x14cfdf){const _0x1b064f=_0x162e7c,_0x3fceb2=this;this[_0x1b064f('0x37')][_0x1b064f('0xc')](function(){const _0x2353ed=_0x1b064f;return _0x3fceb2['queryInterface']['addIndex'](_0x31d8d3,_0x24a8ef,{'indexName':_0x14cfdf})[_0x2353ed('0x20')](function(){const _0x54316f=_0x2353ed;logger['info'](_0x54316f('0x1'),_0x31d8d3,_0x24a8ef[_0x54316f('0x23')](','),_0x14cfdf);})[_0x2353ed('0x24')](function(_0x4b1d91){const _0x47a39e=_0x2353ed;logger[_0x47a39e('0x10')](JSON['stringify'](_0x4b1d91));});});},Migration['prototype']['query']=function(_0xc181f6){const _0xa7562e=_0x162e7c,_0x3a5941=this;this[_0xa7562e('0x37')][_0xa7562e('0xc')](function(){const _0x4a8456=_0xa7562e;return _0x3a5941[_0x4a8456('0x30')][_0x4a8456('0x13')][_0x4a8456('0x7')](_0xc181f6)[_0x4a8456('0x20')](function(){const _0x155af6=_0x4a8456;logger['info'](_0x155af6('0xe'),_0xc181f6);})[_0x4a8456('0x24')](function(_0x953cf4){const _0xf896b8=_0x4a8456;logger[_0xf896b8('0x10')](JSON['stringify'](_0x953cf4));});});},Migration['prototype'][_0x162e7c('0x16')]=function(_0x749d08,_0x1835c1){const _0x239c7e=_0x162e7c,_0x1688ba=this;this[_0x239c7e('0x37')][_0x239c7e('0xc')](function(){const _0xd14d68=_0x239c7e;return _0x1688ba['queryInterface'][_0xd14d68('0x16')](_0x749d08,_0x1835c1)[_0xd14d68('0x20')](function(){const _0x5d274b=_0xd14d68;logger['info'](_0x5d274b('0x33'),_0x1835c1,_0x749d08);})[_0xd14d68('0x24')](function(_0x1da25c){const _0x387395=_0xd14d68;logger[_0x387395('0x10')](util[_0x387395('0x1d')](_0x1da25c,{'showHidden':![],'depth':null}));});});},Migration[_0x162e7c('0x3')][_0x162e7c('0x28')]=function(_0x3493e9){const _0x56c745=_0x162e7c;this['sequence'][_0x56c745('0xc')](function(){return _0x3493e9();});},module[_0x162e7c('0x34')]={'up':function(_0x59d0d4,_0x213257){return new Promise(function(_0x3e7054){const _0x42ebdb=a923_0x1d7a,_0x2f3ea9=new Migration(_0x59d0d4);_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0xd'),_0x42ebdb('0x5'),{'type':_0x213257[_0x42ebdb('0xa')],'defaultValue':_0x42ebdb('0xf')}),_0x2f3ea9[_0x42ebdb('0x18')]('chat_interactions','read1stAt',{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x36'),_0x42ebdb('0x2f'),{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x22'),'read1stAt',{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x21'),_0x42ebdb('0x2f'),{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x2a'),_0x42ebdb('0xb'),{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x2a'),_0x42ebdb('0x11'),{'type':_0x213257[_0x42ebdb('0xa')]}),_0x2f3ea9[_0x42ebdb('0x18')]('openchannel_interactions',_0x42ebdb('0x12'),{'type':_0x213257[_0x42ebdb('0xa')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x29'),_0x42ebdb('0x2f'),{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')]('mail_interactions','read1stAt',{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x14'),'substatus',{'type':_0x213257[_0x42ebdb('0xa')](0x3c)}),_0x2f3ea9[_0x42ebdb('0x18')]('mail_interactions',_0x42ebdb('0x0'),{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9['addColumn']('mail_messages',_0x42ebdb('0x2f'),{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x32'),_0x42ebdb('0xb'),{'type':_0x213257[_0x42ebdb('0x26')]}),_0x2f3ea9[_0x42ebdb('0x18')](_0x42ebdb('0x38'),_0x42ebdb('0x2f'),{'type':_0x213257['DATE']}),_0x2f3ea9[_0x42ebdb('0x9')](_0x42ebdb('0x8'),_0x42ebdb('0x27'),{'type':_0x213257[_0x42ebdb('0xa')],'unique':_0x42ebdb('0x15'),'allowNull':![]}),_0x2f3ea9['changeColumn']('fax_dispositions','name',{'type':_0x213257[_0x42ebdb('0xa')],'unique':_0x42ebdb('0x15'),'allowNull':![]}),_0x2f3ea9[_0x42ebdb('0x9')](_0x42ebdb('0x2'),_0x42ebdb('0x27'),{'type':_0x213257[_0x42ebdb('0xa')],'unique':'nameAndAccount','allowNull':![]}),_0x2f3ea9[_0x42ebdb('0x9')]('sms_dispositions','name',{'type':_0x213257[_0x42ebdb('0xa')],'unique':'nameAndAccount','allowNull':![]}),_0x2f3ea9[_0x42ebdb('0x9')](_0x42ebdb('0x1c'),_0x42ebdb('0x27'),{'type':_0x213257[_0x42ebdb('0xa')],'unique':'nameAndAccount','allowNull':![]}),_0x2f3ea9[_0x42ebdb('0x7')](_0x42ebdb('0x2d')),_0x2f3ea9[_0x42ebdb('0x7')](_0x42ebdb('0x19')),_0x2f3ea9[_0x42ebdb('0x7')]('ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)'),_0x2f3ea9['query']('ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)'),_0x2f3ea9[_0x42ebdb('0x7')](_0x42ebdb('0x2e')),_0x2f3ea9[_0x42ebdb('0x9')](_0x42ebdb('0x6'),_0x42ebdb('0x27'),{'type':_0x213257[_0x42ebdb('0xa')],'unique':_0x42ebdb('0x15'),'allowNull':![]}),_0x2f3ea9['query'](_0x42ebdb('0x1a')),_0x2f3ea9[_0x42ebdb('0x7')](_0x42ebdb('0x1b')),_0x2f3ea9[_0x42ebdb('0x28')](_0x3e7054);});},'down':function(){}}; \ No newline at end of file +const a923_0x5a94=['read1stAt','final','threadId','changeColumn','chat_interactions','sms_interactions','openchannel_dispositions','enqueue','removeColumn','mail_dispositions','nameAndAccount','fax_dispositions','inspect','closingQuestion','chat_messages','ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name','dropTable','info','prototype','then','table\x20dropped\x20%s','openchannel_messages','voice_dispositions','Removed\x20column\x20%s\x20from\x20%s','ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)','util','queryInterface','sequelize','chat_websites','query','../config/logger','ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)','Added\x20column\x20%s\x20to\x20%s','substatus','ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','catch','mail_messages','migration','sequence','openchannel_interactions','addColumn','addIndex','exports','name','addIndex\x20%s\x20%s\x20%s','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','readAt','join','stringify','tail','query\x20%s','DATE','STRING','mail_interactions','ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)','chat_dispositions','sms_messages'];(function(_0x3c14b7,_0x5a9470){const _0x4e876b=function(_0x26b6cc){while(--_0x26b6cc){_0x3c14b7['push'](_0x3c14b7['shift']());}};_0x4e876b(++_0x5a9470);}(a923_0x5a94,0x186));const a923_0x4e87=function(_0x3c14b7,_0x5a9470){_0x3c14b7=_0x3c14b7-0x0;let _0x4e876b=a923_0x5a94[_0x3c14b7];return _0x4e876b;};const _0x3f0415=a923_0x4e87;'use strict';const logger=require(_0x3f0415('0x27'))(_0x3f0415('0x2e')),util=require(_0x3f0415('0x22')),Sequence=function(){};Sequence[_0x3f0415('0x1b')][_0x3f0415('0x10')]=function(_0x26b6cc){const _0x5e6816=_0x3f0415;this[_0x5e6816('0x1')]=this[_0x5e6816('0x1')]?this[_0x5e6816('0x1')]['finally'](_0x26b6cc):_0x26b6cc();};const Migration=function(_0x11866d){const _0x4172c2=_0x3f0415;this[_0x4172c2('0x23')]=_0x11866d,this[_0x4172c2('0x2f')]=new Sequence();};Migration[_0x3f0415('0x1b')][_0x3f0415('0xc')]=function(_0x2fd197,_0x32d4c5,_0x375bad){const _0x141fe5=_0x3f0415,_0x26154b=this;this['sequence'][_0x141fe5('0x10')](function(){const _0x2bad4d=_0x141fe5;return _0x26154b['queryInterface'][_0x2bad4d('0xc')](_0x2fd197,_0x32d4c5,_0x375bad)[_0x2bad4d('0x1c')](function(){const _0x2194c5=_0x2bad4d;logger[_0x2194c5('0x1a')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x32d4c5,_0x2fd197);})[_0x2bad4d('0x2c')](function(_0x30749b){const _0x48c6da=_0x2bad4d;logger[_0x48c6da('0x1a')](JSON['stringify'](_0x30749b));});});},Migration['prototype'][_0x3f0415('0x31')]=function(_0x19b411,_0x5ce3bd,_0x1effda){const _0x556ff8=_0x3f0415,_0x4eb4f7=this;this[_0x556ff8('0x2f')][_0x556ff8('0x10')](function(){const _0x3e7d83=_0x556ff8;return _0x4eb4f7[_0x3e7d83('0x23')][_0x3e7d83('0x31')](_0x19b411,_0x5ce3bd,_0x1effda)[_0x3e7d83('0x1c')](function(){const _0x356486=_0x3e7d83;logger[_0x356486('0x1a')](_0x356486('0x29'),_0x5ce3bd,_0x19b411);})[_0x3e7d83('0x2c')](function(_0x1af33c){const _0x415957=_0x3e7d83;logger[_0x415957('0x1a')](JSON[_0x415957('0x0')](_0x1af33c));});});},Migration[_0x3f0415('0x1b')][_0x3f0415('0x19')]=function(_0x418751){const _0x325067=_0x3f0415,_0x464e6d=this;this[_0x325067('0x2f')][_0x325067('0x10')](function(){const _0x2dfda7=_0x325067;return _0x464e6d[_0x2dfda7('0x23')][_0x2dfda7('0x19')](_0x418751,{'force':!![]})[_0x2dfda7('0x1c')](function(){const _0x4f9965=_0x2dfda7;logger[_0x4f9965('0x1a')](_0x4f9965('0x1d'),_0x418751);})[_0x2dfda7('0x2c')](function(_0x3c38de){const _0x8e6760=_0x2dfda7;logger[_0x8e6760('0x1a')](JSON[_0x8e6760('0x0')](_0x3c38de));});});},Migration['prototype'][_0x3f0415('0x32')]=function(_0x1a9b94,_0x80b0fc,_0x4a04ab){const _0xde504a=_0x3f0415,_0x2b4580=this;this[_0xde504a('0x2f')][_0xde504a('0x10')](function(){const _0x30eb0c=_0xde504a;return _0x2b4580[_0x30eb0c('0x23')]['addIndex'](_0x1a9b94,_0x80b0fc,{'indexName':_0x4a04ab})['then'](function(){const _0x1ec956=_0x30eb0c;logger[_0x1ec956('0x1a')](_0x1ec956('0x35'),_0x1a9b94,_0x80b0fc[_0x1ec956('0x38')](','),_0x4a04ab);})[_0x30eb0c('0x2c')](function(_0xf8971d){const _0x563e66=_0x30eb0c;logger['info'](JSON[_0x563e66('0x0')](_0xf8971d));});});},Migration[_0x3f0415('0x1b')][_0x3f0415('0x26')]=function(_0x522b8f){const _0x2eb308=_0x3f0415,_0xb4622c=this;this['sequence'][_0x2eb308('0x10')](function(){const _0x30e353=_0x2eb308;return _0xb4622c[_0x30e353('0x23')][_0x30e353('0x24')][_0x30e353('0x26')](_0x522b8f)[_0x30e353('0x1c')](function(){const _0x5ba3fe=_0x30e353;logger['info'](_0x5ba3fe('0x2'),_0x522b8f);})[_0x30e353('0x2c')](function(_0x1f07da){const _0xf01bf=_0x30e353;logger[_0xf01bf('0x1a')](JSON[_0xf01bf('0x0')](_0x1f07da));});});},Migration[_0x3f0415('0x1b')][_0x3f0415('0x11')]=function(_0x1d6c9a,_0x12aee2){const _0x110722=_0x3f0415,_0xade274=this;this['sequence'][_0x110722('0x10')](function(){const _0x44b527=_0x110722;return _0xade274[_0x44b527('0x23')][_0x44b527('0x11')](_0x1d6c9a,_0x12aee2)[_0x44b527('0x1c')](function(){const _0x1b6b5e=_0x44b527;logger['info'](_0x1b6b5e('0x20'),_0x12aee2,_0x1d6c9a);})[_0x44b527('0x2c')](function(_0x40a70d){const _0x4e6dcd=_0x44b527;logger['info'](util[_0x4e6dcd('0x15')](_0x40a70d,{'showHidden':![],'depth':null}));});});},Migration[_0x3f0415('0x1b')][_0x3f0415('0xa')]=function(_0x1a3a41){const _0x40809a=_0x3f0415;this[_0x40809a('0x2f')][_0x40809a('0x10')](function(){return _0x1a3a41();});},module[_0x3f0415('0x33')]={'up':function(_0x4f6c81,_0x3503f4){return new Promise(function(_0x6f48b2){const _0x4b2af2=a923_0x4e87,_0xb05ceb=new Migration(_0x4f6c81);_0xb05ceb[_0x4b2af2('0x31')](_0x4b2af2('0x25'),_0x4b2af2('0x16'),{'type':_0x3503f4[_0x4b2af2('0x4')],'defaultValue':_0x4b2af2('0x36')}),_0xb05ceb['addColumn'](_0x4b2af2('0xd'),'read1stAt',{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb['addColumn'](_0x4b2af2('0x17'),_0x4b2af2('0x37'),{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb[_0x4b2af2('0x31')]('fax_interactions',_0x4b2af2('0x9'),{'type':_0x3503f4['DATE']}),_0xb05ceb[_0x4b2af2('0x31')]('fax_messages',_0x4b2af2('0x37'),{'type':_0x3503f4['DATE']}),_0xb05ceb[_0x4b2af2('0x31')](_0x4b2af2('0x30'),_0x4b2af2('0x9'),{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb[_0x4b2af2('0x31')](_0x4b2af2('0x30'),_0x4b2af2('0xb'),{'type':_0x3503f4['STRING']}),_0xb05ceb[_0x4b2af2('0x31')](_0x4b2af2('0x30'),'externalUrl',{'type':_0x3503f4[_0x4b2af2('0x4')]}),_0xb05ceb['addColumn'](_0x4b2af2('0x1e'),_0x4b2af2('0x37'),{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb['addColumn'](_0x4b2af2('0x5'),'read1stAt',{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb['addColumn']('mail_interactions',_0x4b2af2('0x2a'),{'type':_0x3503f4[_0x4b2af2('0x4')](0x3c)}),_0xb05ceb[_0x4b2af2('0x31')](_0x4b2af2('0x5'),'substatusAt',{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb['addColumn'](_0x4b2af2('0x2d'),_0x4b2af2('0x37'),{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb['addColumn'](_0x4b2af2('0xe'),_0x4b2af2('0x9'),{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb[_0x4b2af2('0x31')](_0x4b2af2('0x8'),_0x4b2af2('0x37'),{'type':_0x3503f4[_0x4b2af2('0x3')]}),_0xb05ceb[_0x4b2af2('0xc')](_0x4b2af2('0x7'),_0x4b2af2('0x34'),{'type':_0x3503f4[_0x4b2af2('0x4')],'unique':_0x4b2af2('0x13'),'allowNull':![]}),_0xb05ceb[_0x4b2af2('0xc')](_0x4b2af2('0x14'),'name',{'type':_0x3503f4[_0x4b2af2('0x4')],'unique':_0x4b2af2('0x13'),'allowNull':![]}),_0xb05ceb[_0x4b2af2('0xc')](_0x4b2af2('0xf'),'name',{'type':_0x3503f4[_0x4b2af2('0x4')],'unique':_0x4b2af2('0x13'),'allowNull':![]}),_0xb05ceb[_0x4b2af2('0xc')]('sms_dispositions',_0x4b2af2('0x34'),{'type':_0x3503f4[_0x4b2af2('0x4')],'unique':'nameAndAccount','allowNull':![]}),_0xb05ceb[_0x4b2af2('0xc')](_0x4b2af2('0x1f'),'name',{'type':_0x3503f4['STRING'],'unique':_0x4b2af2('0x13'),'allowNull':![]}),_0xb05ceb[_0x4b2af2('0x26')](_0x4b2af2('0x6')),_0xb05ceb[_0x4b2af2('0x26')]('ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)'),_0xb05ceb[_0x4b2af2('0x26')](_0x4b2af2('0x28')),_0xb05ceb[_0x4b2af2('0x26')]('ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)'),_0xb05ceb[_0x4b2af2('0x26')](_0x4b2af2('0x2b')),_0xb05ceb[_0x4b2af2('0xc')](_0x4b2af2('0x12'),'name',{'type':_0x3503f4[_0x4b2af2('0x4')],'unique':'nameAndAccount','allowNull':![]}),_0xb05ceb[_0x4b2af2('0x26')](_0x4b2af2('0x18')),_0xb05ceb[_0x4b2af2('0x26')](_0x4b2af2('0x21')),_0xb05ceb[_0x4b2af2('0xa')](_0x6f48b2);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.45.js b/server/migrations/2.0.45.js index 6a2eab8..ebd7a38 100644 --- a/server/migrations/2.0.45.js +++ b/server/migrations/2.0.45.js @@ -1 +1 @@ -var a924_0x3a4c=['exports'];(function(_0x1c443b,_0x3a4c10){var _0x55109e=function(_0x108481){while(--_0x108481){_0x1c443b['push'](_0x1c443b['shift']());}};_0x55109e(++_0x3a4c10);}(a924_0x3a4c,0xf9));var a924_0x5510=function(_0x1c443b,_0x3a4c10){_0x1c443b=_0x1c443b-0x0;var _0x55109e=a924_0x3a4c[_0x1c443b];return _0x55109e;};var _0x4bdaee=a924_0x5510;'use strict';module[_0x4bdaee('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a924_0x263e=['exports'];(function(_0x4f8784,_0x263e92){var _0x265f84=function(_0x1d75f8){while(--_0x1d75f8){_0x4f8784['push'](_0x4f8784['shift']());}};_0x265f84(++_0x263e92);}(a924_0x263e,0x7c));var a924_0x265f=function(_0x4f8784,_0x263e92){_0x4f8784=_0x4f8784-0x0;var _0x265f84=a924_0x263e[_0x4f8784];return _0x265f84;};var _0x7831d7=a924_0x265f;'use strict';module[_0x7831d7('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.46.js b/server/migrations/2.0.46.js index 4462b58..8c7d7b7 100644 --- a/server/migrations/2.0.46.js +++ b/server/migrations/2.0.46.js @@ -1 +1 @@ -const a925_0x9851=['info','showWebBar','finally','Removed\x20column\x20%s\x20from\x20%s','INTEGER','sequence','prototype','tail','Note','UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax','stringify','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','users','final','placeholderMessage','fax_interactions','exports','enqueue','fax','sequelize','query','chat_websites','util','Added\x20column\x20%s\x20to\x20%s','queryInterface','table\x20dropped\x20%s','dropTable','migration','then','Type\x20a\x20message','addColumn','STRING','noteTitle','catch','changeColumn','inspect'];(function(_0x163bc3,_0x9851d0){const _0x4b4778=function(_0x289b89){while(--_0x289b89){_0x163bc3['push'](_0x163bc3['shift']());}};_0x4b4778(++_0x9851d0);}(a925_0x9851,0x12f));const a925_0x4b47=function(_0x163bc3,_0x9851d0){_0x163bc3=_0x163bc3-0x0;let _0x4b4778=a925_0x9851[_0x163bc3];return _0x4b4778;};const _0x46487e=a925_0x4b47;'use strict';const logger=require('../config/logger')(_0x46487e('0x15')),util=require(_0x46487e('0x10')),Sequence=function(){};Sequence[_0x46487e('0x24')]['enqueue']=function(_0x289b89){const _0x57f391=_0x46487e;this[_0x57f391('0x0')]=this[_0x57f391('0x0')]?this[_0x57f391('0x0')][_0x57f391('0x20')](_0x289b89):_0x289b89();};const Migration=function(_0x3effad){const _0x57fcca=_0x46487e;this[_0x57fcca('0x12')]=_0x3effad,this[_0x57fcca('0x23')]=new Sequence();};Migration[_0x46487e('0x24')][_0x46487e('0x1c')]=function(_0x569c7b,_0x26700a,_0x50bd3d){const _0x33a38a=_0x46487e,_0x525760=this;this[_0x33a38a('0x23')][_0x33a38a('0xb')](function(){const _0x455b88=_0x33a38a;return _0x525760[_0x455b88('0x12')][_0x455b88('0x1c')](_0x569c7b,_0x26700a,_0x50bd3d)[_0x455b88('0x16')](function(){const _0x4246d1=_0x455b88;logger['info'](_0x4246d1('0x5'),_0x26700a,_0x569c7b);})['catch'](function(_0x4cbc74){const _0x1bb125=_0x455b88;logger[_0x1bb125('0x1e')](JSON[_0x1bb125('0x3')](_0x4cbc74));});});},Migration[_0x46487e('0x24')][_0x46487e('0x18')]=function(_0x11cc40,_0x4ffe1d,_0x16ee61){const _0x3ac79d=_0x46487e,_0x18bd2f=this;this[_0x3ac79d('0x23')]['enqueue'](function(){const _0x421294=_0x3ac79d;return _0x18bd2f['queryInterface'][_0x421294('0x18')](_0x11cc40,_0x4ffe1d,_0x16ee61)[_0x421294('0x16')](function(){const _0xc3b261=_0x421294;logger['info'](_0xc3b261('0x11'),_0x4ffe1d,_0x11cc40);})[_0x421294('0x1b')](function(_0xd0cdad){const _0x1b0012=_0x421294;logger[_0x1b0012('0x1e')](JSON[_0x1b0012('0x3')](_0xd0cdad));});});},Migration['prototype'][_0x46487e('0x14')]=function(_0x238525){const _0x2d1ce1=_0x46487e,_0x11f0a1=this;this['sequence'][_0x2d1ce1('0xb')](function(){const _0x2c45cc=_0x2d1ce1;return _0x11f0a1[_0x2c45cc('0x12')][_0x2c45cc('0x14')](_0x238525,{'force':!![]})['then'](function(){const _0x58f3ba=_0x2c45cc;logger[_0x58f3ba('0x1e')](_0x58f3ba('0x13'),_0x238525);})[_0x2c45cc('0x1b')](function(_0x86131f){const _0x1fa754=_0x2c45cc;logger[_0x1fa754('0x1e')](JSON[_0x1fa754('0x3')](_0x86131f));});});},Migration[_0x46487e('0x24')]['addIndex']=function(_0x6392a2,_0xdede2,_0x129885){const _0x13cda1=_0x46487e,_0x51f229=this;this[_0x13cda1('0x23')][_0x13cda1('0xb')](function(){const _0x5486da=_0x13cda1;return _0x51f229[_0x5486da('0x12')]['addIndex'](_0x6392a2,_0xdede2,{'indexName':_0x129885})[_0x5486da('0x16')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x6392a2,_0xdede2['join'](','),_0x129885);})['catch'](function(_0x3e12fe){const _0x3370f5=_0x5486da;logger[_0x3370f5('0x1e')](JSON[_0x3370f5('0x3')](_0x3e12fe));});});},Migration[_0x46487e('0x24')][_0x46487e('0xe')]=function(_0x25a60d){const _0x5d9ee7=_0x46487e,_0x790f75=this;this[_0x5d9ee7('0x23')][_0x5d9ee7('0xb')](function(){const _0x4eaed5=_0x5d9ee7;return _0x790f75['queryInterface'][_0x4eaed5('0xd')][_0x4eaed5('0xe')](_0x25a60d)['then'](function(){const _0x1651f4=_0x4eaed5;logger[_0x1651f4('0x1e')]('query\x20%s',_0x25a60d);})[_0x4eaed5('0x1b')](function(_0x5690a3){const _0xaf7a90=_0x4eaed5;logger[_0xaf7a90('0x1e')](JSON[_0xaf7a90('0x3')](_0x5690a3));});});},Migration[_0x46487e('0x24')]['removeColumn']=function(_0x14ad13,_0x19b72f){const _0x503126=_0x46487e,_0x4b3e6c=this;this[_0x503126('0x23')][_0x503126('0xb')](function(){const _0xdbcbe6=_0x503126;return _0x4b3e6c[_0xdbcbe6('0x12')][_0xdbcbe6('0x4')](_0x14ad13,_0x19b72f)[_0xdbcbe6('0x16')](function(){const _0x34efac=_0xdbcbe6;logger[_0x34efac('0x1e')](_0x34efac('0x21'),_0x19b72f,_0x14ad13);})[_0xdbcbe6('0x1b')](function(_0x1278fe){const _0x38af55=_0xdbcbe6;logger[_0x38af55('0x1e')](util[_0x38af55('0x1d')](_0x1278fe,{'showHidden':![],'depth':null}));});});},Migration[_0x46487e('0x24')][_0x46487e('0x7')]=function(_0x379f42){const _0x3e8fd=_0x46487e;this['sequence'][_0x3e8fd('0xb')](function(){return _0x379f42();});},module[_0x46487e('0xa')]={'up':function(_0x3b0acc,_0x28e98f){return new Promise(function(_0x492190){const _0x529572=a925_0x4b47,_0x314722=new Migration(_0x3b0acc);_0x314722[_0x529572('0x1c')](_0x529572('0x6'),_0x529572('0x1f'),{'type':_0x28e98f['INTEGER'],'defaultValue':0x0}),_0x314722[_0x529572('0xe')]('UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20(permissions\x20IS\x20NULL\x20OR\x20permissions\x20=\x20\x27\x27)'),_0x314722[_0x529572('0x18')](_0x529572('0x6'),'crudPermissions',{'type':_0x28e98f[_0x529572('0x22')],'defaultValue':0x0}),_0x314722[_0x529572('0x18')](_0x529572('0xf'),_0x529572('0x1a'),{'type':_0x28e98f[_0x529572('0x19')],'defaultValue':_0x529572('0x1')}),_0x314722['addColumn']('chat_websites',_0x529572('0x8'),{'type':_0x28e98f['STRING'],'defaultValue':_0x529572('0x17')}),_0x314722['addColumn'](_0x529572('0x9'),_0x529572('0xc'),{'type':_0x28e98f[_0x529572('0x19')]}),_0x314722['query'](_0x529572('0x2')),_0x314722[_0x529572('0x7')](_0x492190);});},'down':function(){}}; \ No newline at end of file +const a925_0x12e5=['crudPermissions','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20(permissions\x20IS\x20NULL\x20OR\x20permissions\x20=\x20\x27\x27)','queryInterface','catch','exports','UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax','removeColumn','sequelize','sequence','dropTable','noteTitle','info','stringify','STRING','chat_websites','INTEGER','../config/logger','util','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','placeholderMessage','migration','inspect','addIndex','changeColumn','query','final','enqueue','fax','users','prototype','then','showWebBar','addIndex\x20%s\x20%s\x20%s','Note','query\x20%s','addColumn'];(function(_0x214341,_0x12e515){const _0x35b372=function(_0x3e1892){while(--_0x3e1892){_0x214341['push'](_0x214341['shift']());}};_0x35b372(++_0x12e515);}(a925_0x12e5,0x17b));const a925_0x35b3=function(_0x214341,_0x12e515){_0x214341=_0x214341-0x0;let _0x35b372=a925_0x12e5[_0x214341];return _0x35b372;};const _0x583416=a925_0x35b3;'use strict';const logger=require(_0x583416('0x7'))(_0x583416('0xc')),util=require(_0x583416('0x8')),Sequence=function(){};Sequence[_0x583416('0x15')][_0x583416('0x12')]=function(_0x3e1892){const _0x4e3473=_0x583416;this[_0x4e3473('0xa')]=this[_0x4e3473('0xa')]?this[_0x4e3473('0xa')]['finally'](_0x3e1892):_0x3e1892();};const Migration=function(_0x1cb6fb){const _0x5079ef=_0x583416;this[_0x5079ef('0x1e')]=_0x1cb6fb,this['sequence']=new Sequence();};Migration[_0x583416('0x15')][_0x583416('0xf')]=function(_0x4344ed,_0x2e9f3a,_0x3c80c2){const _0x14d592=_0x583416,_0x13f436=this;this[_0x14d592('0x24')][_0x14d592('0x12')](function(){const _0x36795f=_0x14d592;return _0x13f436[_0x36795f('0x1e')][_0x36795f('0xf')](_0x4344ed,_0x2e9f3a,_0x3c80c2)[_0x36795f('0x16')](function(){const _0x15d8cb=_0x36795f;logger[_0x15d8cb('0x2')](_0x15d8cb('0x9'),_0x2e9f3a,_0x4344ed);})[_0x36795f('0x1f')](function(_0x2d1abb){const _0x47eaa5=_0x36795f;logger[_0x47eaa5('0x2')](JSON[_0x47eaa5('0x3')](_0x2d1abb));});});},Migration['prototype']['addColumn']=function(_0x481032,_0x49f217,_0xc7a6df){const _0x2af034=_0x583416,_0xfd6f28=this;this[_0x2af034('0x24')][_0x2af034('0x12')](function(){const _0x3426e4=_0x2af034;return _0xfd6f28[_0x3426e4('0x1e')][_0x3426e4('0x1b')](_0x481032,_0x49f217,_0xc7a6df)[_0x3426e4('0x16')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x49f217,_0x481032);})[_0x3426e4('0x1f')](function(_0x3ab272){const _0x5bc8c5=_0x3426e4;logger[_0x5bc8c5('0x2')](JSON[_0x5bc8c5('0x3')](_0x3ab272));});});},Migration[_0x583416('0x15')]['dropTable']=function(_0x296d0e){const _0x3062b7=_0x583416,_0x2b3cad=this;this[_0x3062b7('0x24')][_0x3062b7('0x12')](function(){const _0x595f51=_0x3062b7;return _0x2b3cad[_0x595f51('0x1e')][_0x595f51('0x0')](_0x296d0e,{'force':!![]})[_0x595f51('0x16')](function(){logger['info']('table\x20dropped\x20%s',_0x296d0e);})['catch'](function(_0x3dedce){const _0x205631=_0x595f51;logger['info'](JSON[_0x205631('0x3')](_0x3dedce));});});},Migration[_0x583416('0x15')][_0x583416('0xe')]=function(_0x49a547,_0x8808e3,_0x5de4b3){const _0x3e8efe=_0x583416,_0x5eb5c3=this;this[_0x3e8efe('0x24')][_0x3e8efe('0x12')](function(){const _0x21afab=_0x3e8efe;return _0x5eb5c3[_0x21afab('0x1e')][_0x21afab('0xe')](_0x49a547,_0x8808e3,{'indexName':_0x5de4b3})[_0x21afab('0x16')](function(){const _0x2495b2=_0x21afab;logger[_0x2495b2('0x2')](_0x2495b2('0x18'),_0x49a547,_0x8808e3['join'](','),_0x5de4b3);})['catch'](function(_0x2850cd){const _0x2504eb=_0x21afab;logger['info'](JSON[_0x2504eb('0x3')](_0x2850cd));});});},Migration[_0x583416('0x15')][_0x583416('0x10')]=function(_0xe9d8c9){const _0x1c265f=_0x583416,_0x5f261b=this;this[_0x1c265f('0x24')][_0x1c265f('0x12')](function(){const _0x1a0cf6=_0x1c265f;return _0x5f261b[_0x1a0cf6('0x1e')][_0x1a0cf6('0x23')]['query'](_0xe9d8c9)[_0x1a0cf6('0x16')](function(){const _0x11f297=_0x1a0cf6;logger[_0x11f297('0x2')](_0x11f297('0x1a'),_0xe9d8c9);})[_0x1a0cf6('0x1f')](function(_0x253f40){const _0x21d422=_0x1a0cf6;logger[_0x21d422('0x2')](JSON[_0x21d422('0x3')](_0x253f40));});});},Migration[_0x583416('0x15')][_0x583416('0x22')]=function(_0x5755cf,_0x244b6d){const _0x1570d7=_0x583416,_0x417e9a=this;this['sequence'][_0x1570d7('0x12')](function(){const _0x471ccb=_0x1570d7;return _0x417e9a[_0x471ccb('0x1e')]['removeColumn'](_0x5755cf,_0x244b6d)[_0x471ccb('0x16')](function(){const _0x529114=_0x471ccb;logger[_0x529114('0x2')]('Removed\x20column\x20%s\x20from\x20%s',_0x244b6d,_0x5755cf);})[_0x471ccb('0x1f')](function(_0x55a444){const _0x4b5041=_0x471ccb;logger['info'](util[_0x4b5041('0xd')](_0x55a444,{'showHidden':![],'depth':null}));});});},Migration[_0x583416('0x15')][_0x583416('0x11')]=function(_0x28d00f){const _0x47a570=_0x583416;this[_0x47a570('0x24')][_0x47a570('0x12')](function(){return _0x28d00f();});},module[_0x583416('0x20')]={'up':function(_0x51aa91,_0x13ef61){return new Promise(function(_0x3f041d){const _0x36ccc0=a925_0x35b3,_0x38ad3f=new Migration(_0x51aa91);_0x38ad3f[_0x36ccc0('0xf')](_0x36ccc0('0x14'),_0x36ccc0('0x17'),{'type':_0x13ef61[_0x36ccc0('0x6')],'defaultValue':0x0}),_0x38ad3f['query'](_0x36ccc0('0x1d')),_0x38ad3f[_0x36ccc0('0x1b')](_0x36ccc0('0x14'),_0x36ccc0('0x1c'),{'type':_0x13ef61[_0x36ccc0('0x6')],'defaultValue':0x0}),_0x38ad3f['addColumn'](_0x36ccc0('0x5'),_0x36ccc0('0x1'),{'type':_0x13ef61[_0x36ccc0('0x4')],'defaultValue':_0x36ccc0('0x19')}),_0x38ad3f[_0x36ccc0('0x1b')](_0x36ccc0('0x5'),_0x36ccc0('0xb'),{'type':_0x13ef61[_0x36ccc0('0x4')],'defaultValue':'Type\x20a\x20message'}),_0x38ad3f[_0x36ccc0('0x1b')]('fax_interactions',_0x36ccc0('0x13'),{'type':_0x13ef61['STRING']}),_0x38ad3f[_0x36ccc0('0x10')](_0x36ccc0('0x21')),_0x38ad3f['final'](_0x3f041d);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.47.js b/server/migrations/2.0.47.js index ab0df81..1549537 100644 --- a/server/migrations/2.0.47.js +++ b/server/migrations/2.0.47.js @@ -1 +1 @@ -const a926_0x4f29=['formSubmitFailureMessage','migration','dropTable','prototype','dashboard_items','info','addColumn','sequelize','enqueue','final','addIndex','inspect','attrs','formSubmitSuccessMessage','addIndex\x20%s\x20%s\x20%s','chat_websites','table\x20dropped\x20%s','util','exports','then','data','Added\x20column\x20%s\x20to\x20%s','title','catch','sequence','query\x20%s','Form\x20submission\x20error','Form\x20properly\x20submitted','join','query','secret','queryInterface','removeColumn','type','sms_messages','dashboards','Removed\x20column\x20%s\x20from\x20%s','STRING','stringify','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','DELETE\x20FROM\x20dashboards','changeColumn'];(function(_0x3723de,_0x4f29ab){const _0x38c675=function(_0x3afe05){while(--_0x3afe05){_0x3723de['push'](_0x3723de['shift']());}};_0x38c675(++_0x4f29ab);}(a926_0x4f29,0x144));const a926_0x38c6=function(_0x3723de,_0x4f29ab){_0x3723de=_0x3723de-0x0;let _0x38c675=a926_0x4f29[_0x3723de];return _0x38c675;};const _0x1dc451=a926_0x38c6;'use strict';const logger=require(_0x1dc451('0x17'))(_0x1dc451('0x1d')),util=require(_0x1dc451('0x1')),Sequence=function(){};Sequence['prototype'][_0x1dc451('0x24')]=function(_0x3afe05){const _0x29f49e=_0x1dc451;this[_0x29f49e('0x19')]=this['tail']?this[_0x29f49e('0x19')]['finally'](_0x3afe05):_0x3afe05();};const Migration=function(_0x5820b9){const _0x423a99=_0x1dc451;this[_0x423a99('0xf')]=_0x5820b9,this[_0x423a99('0x8')]=new Sequence();};Migration[_0x1dc451('0x1f')][_0x1dc451('0x1b')]=function(_0x27f0f5,_0x4cde0c,_0x57dbd4){const _0x17892c=_0x1dc451,_0x53679c=this;this['sequence'][_0x17892c('0x24')](function(){const _0x2d766e=_0x17892c;return _0x53679c['queryInterface'][_0x2d766e('0x1b')](_0x27f0f5,_0x4cde0c,_0x57dbd4)[_0x2d766e('0x3')](function(){const _0x121e72=_0x2d766e;logger['info'](_0x121e72('0x18'),_0x4cde0c,_0x27f0f5);})[_0x2d766e('0x7')](function(_0x1753ff){const _0x35be87=_0x2d766e;logger[_0x35be87('0x21')](JSON[_0x35be87('0x16')](_0x1753ff));});});},Migration['prototype']['addColumn']=function(_0x4619a9,_0x94fae7,_0x4eabb1){const _0x54d5f0=_0x1dc451,_0x4acdf0=this;this[_0x54d5f0('0x8')][_0x54d5f0('0x24')](function(){const _0x3182d8=_0x54d5f0;return _0x4acdf0[_0x3182d8('0xf')]['addColumn'](_0x4619a9,_0x94fae7,_0x4eabb1)[_0x3182d8('0x3')](function(){const _0x46dbcb=_0x3182d8;logger[_0x46dbcb('0x21')](_0x46dbcb('0x5'),_0x94fae7,_0x4619a9);})[_0x3182d8('0x7')](function(_0x53af92){const _0x543ba9=_0x3182d8;logger[_0x543ba9('0x21')](JSON[_0x543ba9('0x16')](_0x53af92));});});},Migration[_0x1dc451('0x1f')][_0x1dc451('0x1e')]=function(_0x53b87d){const _0x654d8c=_0x1dc451,_0x1d9d6a=this;this['sequence'][_0x654d8c('0x24')](function(){const _0x3ce1d0=_0x654d8c;return _0x1d9d6a[_0x3ce1d0('0xf')][_0x3ce1d0('0x1e')](_0x53b87d,{'force':!![]})[_0x3ce1d0('0x3')](function(){const _0x1cd18f=_0x3ce1d0;logger[_0x1cd18f('0x21')](_0x1cd18f('0x0'),_0x53b87d);})[_0x3ce1d0('0x7')](function(_0x4efe32){const _0x59e4cd=_0x3ce1d0;logger['info'](JSON[_0x59e4cd('0x16')](_0x4efe32));});});},Migration['prototype'][_0x1dc451('0x26')]=function(_0x2057a7,_0x3b50ab,_0x2c68fc){const _0x409554=_0x1dc451,_0x215339=this;this[_0x409554('0x8')]['enqueue'](function(){const _0x165c13=_0x409554;return _0x215339[_0x165c13('0xf')][_0x165c13('0x26')](_0x2057a7,_0x3b50ab,{'indexName':_0x2c68fc})['then'](function(){const _0x326d02=_0x165c13;logger[_0x326d02('0x21')](_0x326d02('0x2a'),_0x2057a7,_0x3b50ab[_0x326d02('0xc')](','),_0x2c68fc);})[_0x165c13('0x7')](function(_0x2e211d){logger['info'](JSON['stringify'](_0x2e211d));});});},Migration['prototype'][_0x1dc451('0xd')]=function(_0x556963){const _0x28fef0=_0x1dc451,_0x242811=this;this[_0x28fef0('0x8')][_0x28fef0('0x24')](function(){const _0x1f173c=_0x28fef0;return _0x242811['queryInterface'][_0x1f173c('0x23')][_0x1f173c('0xd')](_0x556963)['then'](function(){const _0x205a52=_0x1f173c;logger['info'](_0x205a52('0x9'),_0x556963);})['catch'](function(_0x443196){const _0x9f1a67=_0x1f173c;logger[_0x9f1a67('0x21')](JSON[_0x9f1a67('0x16')](_0x443196));});});},Migration[_0x1dc451('0x1f')][_0x1dc451('0x10')]=function(_0x33a7e0,_0x1dfa84){const _0x5c2995=_0x1dc451,_0x3057b1=this;this[_0x5c2995('0x8')][_0x5c2995('0x24')](function(){const _0x13c184=_0x5c2995;return _0x3057b1[_0x13c184('0xf')][_0x13c184('0x10')](_0x33a7e0,_0x1dfa84)[_0x13c184('0x3')](function(){const _0x298343=_0x13c184;logger[_0x298343('0x21')](_0x298343('0x14'),_0x1dfa84,_0x33a7e0);})[_0x13c184('0x7')](function(_0x42930c){const _0x4f1399=_0x13c184;logger[_0x4f1399('0x21')](util[_0x4f1399('0x27')](_0x42930c,{'showHidden':![],'depth':null}));});});},Migration[_0x1dc451('0x1f')][_0x1dc451('0x25')]=function(_0x1dd58d){const _0xa91689=_0x1dc451;this[_0xa91689('0x8')][_0xa91689('0x24')](function(){return _0x1dd58d();});},module[_0x1dc451('0x2')]={'up':function(_0x34ce53,_0x29ab2e){return new Promise(function(_0x1a8e2d){const _0x3165dc=a926_0x38c6,_0x41a2ab=new Migration(_0x34ce53);_0x41a2ab[_0x3165dc('0xd')](_0x3165dc('0x1a')),_0x41a2ab[_0x3165dc('0x10')](_0x3165dc('0x13'),'interval'),_0x41a2ab[_0x3165dc('0x1b')](_0x3165dc('0x20'),_0x3165dc('0x11'),{'type':_0x29ab2e[_0x3165dc('0x15')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x41a2ab[_0x3165dc('0x10')](_0x3165dc('0x20'),'query'),_0x41a2ab[_0x3165dc('0x10')](_0x3165dc('0x20'),_0x3165dc('0x4')),_0x41a2ab[_0x3165dc('0x22')](_0x3165dc('0x20'),_0x3165dc('0x6'),{'type':_0x29ab2e[_0x3165dc('0x15')](0x14),'validate':{'len':[0x0,0x14]}}),_0x41a2ab[_0x3165dc('0x22')](_0x3165dc('0x20'),_0x3165dc('0x28'),{'type':_0x29ab2e['TEXT']('long')}),_0x41a2ab[_0x3165dc('0x22')](_0x3165dc('0x12'),_0x3165dc('0xe'),{'type':_0x29ab2e['BOOLEAN'],'defaultValue':![]}),_0x41a2ab[_0x3165dc('0x22')](_0x3165dc('0x2b'),_0x3165dc('0x29'),{'type':_0x29ab2e['STRING'],'defaultValue':_0x3165dc('0xb')}),_0x41a2ab[_0x3165dc('0x22')](_0x3165dc('0x2b'),_0x3165dc('0x1c'),{'type':_0x29ab2e['STRING'],'defaultValue':_0x3165dc('0xa')}),_0x41a2ab[_0x3165dc('0x25')](_0x1a8e2d);});},'down':function(){}}; \ No newline at end of file +const a926_0x5d5c=['BOOLEAN','type','chat_websites','then','Added\x20column\x20%s\x20to\x20%s','formSubmitFailureMessage','long','tail','sms_messages','title','sequence','addColumn','stringify','query','removeColumn','Removed\x20column\x20%s\x20from\x20%s','dropTable','migration','util','formSubmitSuccessMessage','join','inspect','secret','DELETE\x20FROM\x20dashboards','TEXT','prototype','dashboard_items','final','data','interval','table\x20dropped\x20%s','info','changeColumn','Form\x20submission\x20error','query\x20%s','queryInterface','catch','dashboards','finally','STRING','enqueue','addIndex'];(function(_0x4d5e70,_0x5d5c90){const _0x43a81f=function(_0x51752e){while(--_0x51752e){_0x4d5e70['push'](_0x4d5e70['shift']());}};_0x43a81f(++_0x5d5c90);}(a926_0x5d5c,0x160));const a926_0x43a8=function(_0x4d5e70,_0x5d5c90){_0x4d5e70=_0x4d5e70-0x0;let _0x43a81f=a926_0x5d5c[_0x4d5e70];return _0x43a81f;};const _0x4394cf=a926_0x43a8;'use strict';const logger=require('../config/logger')(_0x4394cf('0x1')),util=require(_0x4394cf('0x2')),Sequence=function(){};Sequence[_0x4394cf('0x9')][_0x4394cf('0x18')]=function(_0x51752e){const _0x49b3f2=_0x4394cf;this[_0x49b3f2('0x21')]=this[_0x49b3f2('0x21')]?this[_0x49b3f2('0x21')][_0x49b3f2('0x16')](_0x51752e):_0x51752e();};const Migration=function(_0x1f8571){const _0x5689ad=_0x4394cf;this[_0x5689ad('0x13')]=_0x1f8571,this[_0x5689ad('0x24')]=new Sequence();};Migration[_0x4394cf('0x9')][_0x4394cf('0x10')]=function(_0x3dbd5e,_0x4c9d2d,_0x2285c8){const _0x23545b=_0x4394cf,_0x3e135f=this;this[_0x23545b('0x24')][_0x23545b('0x18')](function(){const _0x20ece9=_0x23545b;return _0x3e135f['queryInterface']['changeColumn'](_0x3dbd5e,_0x4c9d2d,_0x2285c8)[_0x20ece9('0x1d')](function(){const _0x454ac6=_0x20ece9;logger[_0x454ac6('0xf')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4c9d2d,_0x3dbd5e);})[_0x20ece9('0x14')](function(_0x271ad9){logger['info'](JSON['stringify'](_0x271ad9));});});},Migration['prototype'][_0x4394cf('0x25')]=function(_0x4c7318,_0x26e802,_0x118421){const _0x413294=_0x4394cf,_0x5020ea=this;this[_0x413294('0x24')][_0x413294('0x18')](function(){const _0xbb3e8e=_0x413294;return _0x5020ea[_0xbb3e8e('0x13')][_0xbb3e8e('0x25')](_0x4c7318,_0x26e802,_0x118421)[_0xbb3e8e('0x1d')](function(){const _0x5dba94=_0xbb3e8e;logger[_0x5dba94('0xf')](_0x5dba94('0x1e'),_0x26e802,_0x4c7318);})[_0xbb3e8e('0x14')](function(_0x4a9b28){const _0x37a8c8=_0xbb3e8e;logger[_0x37a8c8('0xf')](JSON[_0x37a8c8('0x26')](_0x4a9b28));});});},Migration[_0x4394cf('0x9')][_0x4394cf('0x0')]=function(_0x7c0333){const _0x178127=this;this['sequence']['enqueue'](function(){const _0x47eddf=a926_0x43a8;return _0x178127[_0x47eddf('0x13')]['dropTable'](_0x7c0333,{'force':!![]})[_0x47eddf('0x1d')](function(){const _0x5b4484=_0x47eddf;logger[_0x5b4484('0xf')](_0x5b4484('0xe'),_0x7c0333);})['catch'](function(_0x3e16f3){logger['info'](JSON['stringify'](_0x3e16f3));});});},Migration[_0x4394cf('0x9')][_0x4394cf('0x19')]=function(_0x4cf06e,_0x37f0d0,_0x1bdbad){const _0x4d5477=_0x4394cf,_0x5e7d9d=this;this[_0x4d5477('0x24')][_0x4d5477('0x18')](function(){const _0x21043d=_0x4d5477;return _0x5e7d9d[_0x21043d('0x13')][_0x21043d('0x19')](_0x4cf06e,_0x37f0d0,{'indexName':_0x1bdbad})[_0x21043d('0x1d')](function(){const _0x512cf7=_0x21043d;logger[_0x512cf7('0xf')]('addIndex\x20%s\x20%s\x20%s',_0x4cf06e,_0x37f0d0[_0x512cf7('0x4')](','),_0x1bdbad);})[_0x21043d('0x14')](function(_0x1d9e7f){const _0x95cff6=_0x21043d;logger[_0x95cff6('0xf')](JSON[_0x95cff6('0x26')](_0x1d9e7f));});});},Migration[_0x4394cf('0x9')]['query']=function(_0x51cbf7){const _0x381fc4=_0x4394cf,_0x438b71=this;this['sequence'][_0x381fc4('0x18')](function(){const _0xc593a1=_0x381fc4;return _0x438b71[_0xc593a1('0x13')]['sequelize'][_0xc593a1('0x27')](_0x51cbf7)['then'](function(){const _0x3df124=_0xc593a1;logger['info'](_0x3df124('0x12'),_0x51cbf7);})[_0xc593a1('0x14')](function(_0x1cfdd9){const _0x3fd4c8=_0xc593a1;logger[_0x3fd4c8('0xf')](JSON['stringify'](_0x1cfdd9));});});},Migration[_0x4394cf('0x9')][_0x4394cf('0x28')]=function(_0x3c6c9b,_0x37f9a3){const _0x3b8b68=_0x4394cf,_0x527b2a=this;this['sequence'][_0x3b8b68('0x18')](function(){const _0x14551e=_0x3b8b68;return _0x527b2a[_0x14551e('0x13')][_0x14551e('0x28')](_0x3c6c9b,_0x37f9a3)[_0x14551e('0x1d')](function(){const _0x4a9e2b=_0x14551e;logger[_0x4a9e2b('0xf')](_0x4a9e2b('0x29'),_0x37f9a3,_0x3c6c9b);})['catch'](function(_0x4f2eac){const _0x57555a=_0x14551e;logger[_0x57555a('0xf')](util[_0x57555a('0x5')](_0x4f2eac,{'showHidden':![],'depth':null}));});});},Migration[_0x4394cf('0x9')][_0x4394cf('0xb')]=function(_0x75901d){const _0x15ba51=_0x4394cf;this[_0x15ba51('0x24')]['enqueue'](function(){return _0x75901d();});},module['exports']={'up':function(_0x1d854d,_0x31cc89){return new Promise(function(_0x277d0c){const _0x409ce9=a926_0x43a8,_0x4fdaad=new Migration(_0x1d854d);_0x4fdaad[_0x409ce9('0x27')](_0x409ce9('0x7')),_0x4fdaad[_0x409ce9('0x28')](_0x409ce9('0x15'),_0x409ce9('0xd')),_0x4fdaad[_0x409ce9('0x10')](_0x409ce9('0xa'),_0x409ce9('0x1b'),{'type':_0x31cc89[_0x409ce9('0x17')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x4fdaad[_0x409ce9('0x28')](_0x409ce9('0xa'),_0x409ce9('0x27')),_0x4fdaad[_0x409ce9('0x28')](_0x409ce9('0xa'),_0x409ce9('0xc')),_0x4fdaad[_0x409ce9('0x25')](_0x409ce9('0xa'),_0x409ce9('0x23'),{'type':_0x31cc89[_0x409ce9('0x17')](0x14),'validate':{'len':[0x0,0x14]}}),_0x4fdaad[_0x409ce9('0x25')](_0x409ce9('0xa'),'attrs',{'type':_0x31cc89[_0x409ce9('0x8')](_0x409ce9('0x20'))}),_0x4fdaad[_0x409ce9('0x25')](_0x409ce9('0x22'),_0x409ce9('0x6'),{'type':_0x31cc89[_0x409ce9('0x1a')],'defaultValue':![]}),_0x4fdaad[_0x409ce9('0x25')](_0x409ce9('0x1c'),_0x409ce9('0x3'),{'type':_0x31cc89[_0x409ce9('0x17')],'defaultValue':'Form\x20properly\x20submitted'}),_0x4fdaad[_0x409ce9('0x25')]('chat_websites',_0x409ce9('0x1f'),{'type':_0x31cc89[_0x409ce9('0x17')],'defaultValue':_0x409ce9('0x11')}),_0x4fdaad[_0x409ce9('0xb')](_0x277d0c);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.48.js b/server/migrations/2.0.48.js index 476eb9e..61fda73 100644 --- a/server/migrations/2.0.48.js +++ b/server/migrations/2.0.48.js @@ -1 +1 @@ -const a927_0x1790=['prototype','stringify','enqueue','queryInterface','replace','out','lodash','fax_interactions','/etc/asterisk/turn_xcally.conf',';\x20STUN\x20server\x20list\x0a','Removed\x20column\x20%s\x20from\x20%s','UPDATE\x20sms_interactions\x20t1,\x20(SELECT\x20SmsInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20sms_messages\x20WHERE\x20SmsInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20SmsInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.SmsInteractionId;','sequence','UPDATE\x20mail_interactions\x20t1,\x20(SELECT\x20MailInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20mail_messages\x20WHERE\x20MailInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20MailInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.MailInteractionId;','inspect','users','settings','changeColumn','UPDATE\x20fax_interactions\x20t1,\x20(SELECT\x20FaxInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20fax_messages\x20WHERE\x20FaxInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20FaxInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.FaxInteractionId;','ENUM','utf8','#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]','rtcp_mux','addColumn','yes','final','removeColumn','appendFileSync','addIndex\x20%s\x20%s\x20%s','/etc/asterisk/rtp.conf','turnusername','dropTable','info','UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2','firstMsgDirection','catch','sms_interactions','then','query','/etc/asterisk/stun_xcally.conf','Changed\x20column\x20%s\x20in\x20table\x20%s','writeFileSync','tail','turnpassword','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','query\x20%s','/etc/asterisk/res_stun_monitor.conf','turnaddr',';\x20TURN\x20server\x20list\x0a','STRING','exports'];(function(_0x48fdea,_0x1790a8){const _0x324b73=function(_0x4a944e){while(--_0x4a944e){_0x48fdea['push'](_0x48fdea['shift']());}};_0x324b73(++_0x1790a8);}(a927_0x1790,0x1a6));const a927_0x324b=function(_0x48fdea,_0x1790a8){_0x48fdea=_0x48fdea-0x0;let _0x324b73=a927_0x1790[_0x48fdea];return _0x324b73;};const _0x5d9ce7=a927_0x324b;'use strict';const fs=require('fs'),util=require('util'),_=require(_0x5d9ce7('0x0')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x5d9ce7('0x30')]=function(_0x4a944e){const _0x1167e4=_0x5d9ce7;this[_0x1167e4('0x24')]=this['tail']?this[_0x1167e4('0x24')]['finally'](_0x4a944e):_0x4a944e();};const Migration=function(_0x389e65){const _0x86ef5e=_0x5d9ce7;this[_0x86ef5e('0x31')]=_0x389e65,this[_0x86ef5e('0x6')]=new Sequence();};Migration[_0x5d9ce7('0x2e')][_0x5d9ce7('0xb')]=function(_0x17333b,_0x183615,_0x370734){const _0x2c6aae=_0x5d9ce7,_0x16822c=this;this[_0x2c6aae('0x6')][_0x2c6aae('0x30')](function(){const _0x274ae9=_0x2c6aae;return _0x16822c['queryInterface']['changeColumn'](_0x17333b,_0x183615,_0x370734)[_0x274ae9('0x1f')](function(){const _0x5763ac=_0x274ae9;logger[_0x5763ac('0x1a')](_0x5763ac('0x22'),_0x183615,_0x17333b);})[_0x274ae9('0x1d')](function(_0x56e10e){const _0x5c74ec=_0x274ae9;logger['info'](JSON[_0x5c74ec('0x2f')](_0x56e10e));});});},Migration[_0x5d9ce7('0x2e')][_0x5d9ce7('0x11')]=function(_0x5a9347,_0x39d462,_0x27a0a1){const _0x8ae967=_0x5d9ce7,_0xbb41d7=this;this[_0x8ae967('0x6')]['enqueue'](function(){const _0x5d11ce=_0x8ae967;return _0xbb41d7[_0x5d11ce('0x31')][_0x5d11ce('0x11')](_0x5a9347,_0x39d462,_0x27a0a1)[_0x5d11ce('0x1f')](function(){const _0x428b0e=_0x5d11ce;logger[_0x428b0e('0x1a')](_0x428b0e('0x26'),_0x39d462,_0x5a9347);})['catch'](function(_0x523929){const _0x35c5eb=_0x5d11ce;logger[_0x35c5eb('0x1a')](JSON[_0x35c5eb('0x2f')](_0x523929));});});},Migration[_0x5d9ce7('0x2e')]['dropTable']=function(_0xa93db6){const _0x3222d3=_0x5d9ce7,_0x44baf0=this;this[_0x3222d3('0x6')][_0x3222d3('0x30')](function(){const _0x135b77=_0x3222d3;return _0x44baf0[_0x135b77('0x31')][_0x135b77('0x19')](_0xa93db6,{'force':!![]})[_0x135b77('0x1f')](function(){const _0x53f198=_0x135b77;logger[_0x53f198('0x1a')](_0x53f198('0x27'),_0xa93db6);})[_0x135b77('0x1d')](function(_0x207a42){const _0x1d4069=_0x135b77;logger[_0x1d4069('0x1a')](JSON[_0x1d4069('0x2f')](_0x207a42));});});},Migration[_0x5d9ce7('0x2e')]['addIndex']=function(_0x37799d,_0x386d8b,_0x4fbd77){const _0x4e5fed=_0x5d9ce7,_0x4f5912=this;this[_0x4e5fed('0x6')][_0x4e5fed('0x30')](function(){const _0x25a447=_0x4e5fed;return _0x4f5912[_0x25a447('0x31')]['addIndex'](_0x37799d,_0x386d8b,{'indexName':_0x4fbd77})[_0x25a447('0x1f')](function(){const _0x41fe0b=_0x25a447;logger[_0x41fe0b('0x1a')](_0x41fe0b('0x16'),_0x37799d,_0x386d8b['join'](','),_0x4fbd77);})['catch'](function(_0x5fc523){const _0x1e74fd=_0x25a447;logger[_0x1e74fd('0x1a')](JSON['stringify'](_0x5fc523));});});},Migration[_0x5d9ce7('0x2e')]['query']=function(_0x40c6e9){const _0x2bbdb2=_0x5d9ce7,_0x181924=this;this[_0x2bbdb2('0x6')][_0x2bbdb2('0x30')](function(){const _0x348c2d=_0x2bbdb2;return _0x181924[_0x348c2d('0x31')]['sequelize']['query'](_0x40c6e9)['then'](function(){const _0x17b9e5=_0x348c2d;logger[_0x17b9e5('0x1a')](_0x17b9e5('0x28'),_0x40c6e9);})[_0x348c2d('0x1d')](function(_0x42f006){const _0x4c1c0a=_0x348c2d;logger[_0x4c1c0a('0x1a')](JSON[_0x4c1c0a('0x2f')](_0x42f006));});});},Migration[_0x5d9ce7('0x2e')]['removeColumn']=function(_0x2752ef,_0x1f2466){const _0x157bf6=_0x5d9ce7,_0x4b681d=this;this['sequence'][_0x157bf6('0x30')](function(){const _0x4d0be1=_0x157bf6;return _0x4b681d[_0x4d0be1('0x31')][_0x4d0be1('0x14')](_0x2752ef,_0x1f2466)[_0x4d0be1('0x1f')](function(){const _0x5ebf25=_0x4d0be1;logger[_0x5ebf25('0x1a')](_0x5ebf25('0x4'),_0x1f2466,_0x2752ef);})[_0x4d0be1('0x1d')](function(_0x16bbf5){const _0x5de1cb=_0x4d0be1;logger[_0x5de1cb('0x1a')](util[_0x5de1cb('0x8')](_0x16bbf5,{'showHidden':![],'depth':null}));});});},Migration[_0x5d9ce7('0x2e')][_0x5d9ce7('0x13')]=function(_0x421f96){const _0x86e8c8=_0x5d9ce7;this[_0x86e8c8('0x6')][_0x86e8c8('0x30')](function(){return _0x421f96();});},module[_0x5d9ce7('0x2d')]={'up':function(_0x8e2a41,_0x4f632a){return new Promise(function(_0x5907c3){const _0x231f9d=a927_0x324b,_0x547d7e=new Migration(_0x8e2a41);_0x547d7e[_0x231f9d('0x11')]('settings',_0x231f9d('0x2a'),{'type':_0x4f632a[_0x231f9d('0x2c')]}),_0x547d7e[_0x231f9d('0x11')](_0x231f9d('0xa'),_0x231f9d('0x18'),{'type':_0x4f632a[_0x231f9d('0x2c')]}),_0x547d7e[_0x231f9d('0x11')](_0x231f9d('0xa'),_0x231f9d('0x25'),{'type':_0x4f632a[_0x231f9d('0x2c')]}),_0x547d7e[_0x231f9d('0x11')](_0x231f9d('0x9'),_0x231f9d('0x10'),{'type':_0x4f632a[_0x231f9d('0xd')](_0x231f9d('0x12'),'no'),'defaultValue':'no'}),_0x547d7e[_0x231f9d('0x20')](_0x231f9d('0x1b')),_0x547d7e['addColumn'](_0x231f9d('0x1e'),_0x231f9d('0x1c'),{'type':_0x4f632a[_0x231f9d('0xd')]('in',_0x231f9d('0x33')),'defaultValue':'in','allowNull':![]}),_0x547d7e[_0x231f9d('0x20')](_0x231f9d('0x5')),_0x547d7e[_0x231f9d('0x11')]('mail_interactions',_0x231f9d('0x1c'),{'type':_0x4f632a[_0x231f9d('0xd')]('in',_0x231f9d('0x33')),'defaultValue':'in','allowNull':![]}),_0x547d7e[_0x231f9d('0x20')](_0x231f9d('0x7')),_0x547d7e['addColumn'](_0x231f9d('0x1'),_0x231f9d('0x1c'),{'type':_0x4f632a[_0x231f9d('0xd')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x547d7e[_0x231f9d('0x20')](_0x231f9d('0xc'));try{fs[_0x231f9d('0x23')](_0x231f9d('0x21'),_0x231f9d('0x3'),{'encoding':_0x231f9d('0xe')}),fs[_0x231f9d('0x23')](_0x231f9d('0x2'),_0x231f9d('0x2b'),{'encoding':_0x231f9d('0xe')});let _0x1397a3=fs['readFileSync'](_0x231f9d('0x17'),{'encoding':'utf8'});_0x1397a3=_[_0x231f9d('0x32')](_0x1397a3,'[ice_host_candidates]',_0x231f9d('0xf')),fs[_0x231f9d('0x23')](_0x231f9d('0x17'),_0x1397a3,{'encoding':'utf8'}),fs[_0x231f9d('0x15')](_0x231f9d('0x29'),'#include\x20\x22stun_xcally.conf\x22',{'encoding':_0x231f9d('0xe')});}catch(_0xf8441e){logger[_0x231f9d('0x1a')](JSON[_0x231f9d('0x2f')](_0xf8441e));}_0x547d7e[_0x231f9d('0x13')](_0x5907c3);});},'down':function(){}}; \ No newline at end of file +const a927_0xd530=['addIndex','stringify','fax_interactions','yes','info','../config/logger','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','turnaddr','utf8','Added\x20column\x20%s\x20to\x20%s','addColumn','util','[ice_host_candidates]','queryInterface','dropTable','UPDATE\x20mail_interactions\x20t1,\x20(SELECT\x20MailInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20mail_messages\x20WHERE\x20MailInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20MailInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.MailInteractionId;','tail','users','UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2','final','replace','table\x20dropped\x20%s','ENUM','sms_interactions','lodash','addIndex\x20%s\x20%s\x20%s','migration','UPDATE\x20sms_interactions\x20t1,\x20(SELECT\x20SmsInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20sms_messages\x20WHERE\x20SmsInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20SmsInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.SmsInteractionId;','sequence','/etc/asterisk/rtp.conf','finally','readFileSync','exports','out','mail_interactions','turnusername','query\x20%s','writeFileSync','settings','#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]','catch','appendFileSync','/etc/asterisk/turn_xcally.conf','/etc/asterisk/res_stun_monitor.conf','firstMsgDirection','then','turnpassword','prototype','/etc/asterisk/stun_xcally.conf','join','changeColumn','query','enqueue'];(function(_0x3105a8,_0xd530cd){const _0x51ab58=function(_0x9f6f22){while(--_0x9f6f22){_0x3105a8['push'](_0x3105a8['shift']());}};_0x51ab58(++_0xd530cd);}(a927_0xd530,0x13c));const a927_0x51ab=function(_0x3105a8,_0xd530cd){_0x3105a8=_0x3105a8-0x0;let _0x51ab58=a927_0xd530[_0x3105a8];return _0x51ab58;};const _0x54b380=a927_0x51ab;'use strict';const fs=require('fs'),util=require(_0x54b380('0x14')),_=require(_0x54b380('0x21')),logger=require(_0x54b380('0xd'))(_0x54b380('0x23')),Sequence=function(){};Sequence[_0x54b380('0x2')][_0x54b380('0x7')]=function(_0x9f6f22){const _0x1a7ea6=_0x54b380;this[_0x1a7ea6('0x19')]=this[_0x1a7ea6('0x19')]?this[_0x1a7ea6('0x19')][_0x1a7ea6('0x27')](_0x9f6f22):_0x9f6f22();};const Migration=function(_0x1d5d09){const _0x30d086=_0x54b380;this[_0x30d086('0x16')]=_0x1d5d09,this[_0x30d086('0x25')]=new Sequence();};Migration[_0x54b380('0x2')][_0x54b380('0x5')]=function(_0x5e6366,_0x14551f,_0x20857f){const _0x5814f0=_0x54b380,_0xab646d=this;this[_0x5814f0('0x25')][_0x5814f0('0x7')](function(){const _0x16c0f=_0x5814f0;return _0xab646d[_0x16c0f('0x16')][_0x16c0f('0x5')](_0x5e6366,_0x14551f,_0x20857f)['then'](function(){const _0x4a96a1=_0x16c0f;logger[_0x4a96a1('0xc')](_0x4a96a1('0xf'),_0x14551f,_0x5e6366);})[_0x16c0f('0x31')](function(_0x5021cd){const _0x5ad313=_0x16c0f;logger[_0x5ad313('0xc')](JSON['stringify'](_0x5021cd));});});},Migration[_0x54b380('0x2')]['addColumn']=function(_0x35676e,_0x1c5289,_0x2517d7){const _0x130d02=_0x54b380,_0x389049=this;this[_0x130d02('0x25')][_0x130d02('0x7')](function(){const _0x3fe094=_0x130d02;return _0x389049[_0x3fe094('0x16')][_0x3fe094('0x13')](_0x35676e,_0x1c5289,_0x2517d7)[_0x3fe094('0x0')](function(){const _0x4ea144=_0x3fe094;logger['info'](_0x4ea144('0x12'),_0x1c5289,_0x35676e);})[_0x3fe094('0x31')](function(_0x2b0941){logger['info'](JSON['stringify'](_0x2b0941));});});},Migration[_0x54b380('0x2')]['dropTable']=function(_0x12005e){const _0x238035=_0x54b380,_0x48e075=this;this[_0x238035('0x25')][_0x238035('0x7')](function(){const _0x1c74d8=_0x238035;return _0x48e075[_0x1c74d8('0x16')][_0x1c74d8('0x17')](_0x12005e,{'force':!![]})['then'](function(){const _0x2ca6bb=_0x1c74d8;logger[_0x2ca6bb('0xc')](_0x2ca6bb('0x1e'),_0x12005e);})[_0x1c74d8('0x31')](function(_0x163b79){const _0x487c5a=_0x1c74d8;logger[_0x487c5a('0xc')](JSON[_0x487c5a('0x9')](_0x163b79));});});},Migration['prototype'][_0x54b380('0x8')]=function(_0x20089c,_0x3466aa,_0x5acdb3){const _0x23a44a=_0x54b380,_0x2be07b=this;this[_0x23a44a('0x25')][_0x23a44a('0x7')](function(){const _0x22505e=_0x23a44a;return _0x2be07b[_0x22505e('0x16')][_0x22505e('0x8')](_0x20089c,_0x3466aa,{'indexName':_0x5acdb3})[_0x22505e('0x0')](function(){const _0xec31d5=_0x22505e;logger[_0xec31d5('0xc')](_0xec31d5('0x22'),_0x20089c,_0x3466aa[_0xec31d5('0x4')](','),_0x5acdb3);})['catch'](function(_0x420d3a){const _0x216e70=_0x22505e;logger[_0x216e70('0xc')](JSON[_0x216e70('0x9')](_0x420d3a));});});},Migration[_0x54b380('0x2')]['query']=function(_0x36d929){const _0x11880e=_0x54b380,_0x2375ca=this;this[_0x11880e('0x25')][_0x11880e('0x7')](function(){const _0x3cc5b5=_0x11880e;return _0x2375ca[_0x3cc5b5('0x16')]['sequelize'][_0x3cc5b5('0x6')](_0x36d929)[_0x3cc5b5('0x0')](function(){const _0x183564=_0x3cc5b5;logger['info'](_0x183564('0x2d'),_0x36d929);})['catch'](function(_0x2450ae){const _0x447b7f=_0x3cc5b5;logger[_0x447b7f('0xc')](JSON[_0x447b7f('0x9')](_0x2450ae));});});},Migration[_0x54b380('0x2')][_0x54b380('0xe')]=function(_0x5a7c1f,_0x262afb){const _0x241d87=_0x54b380,_0x435d72=this;this['sequence'][_0x241d87('0x7')](function(){const _0xd0d57a=_0x241d87;return _0x435d72[_0xd0d57a('0x16')][_0xd0d57a('0xe')](_0x5a7c1f,_0x262afb)['then'](function(){const _0x2a6ac0=_0xd0d57a;logger[_0x2a6ac0('0xc')]('Removed\x20column\x20%s\x20from\x20%s',_0x262afb,_0x5a7c1f);})[_0xd0d57a('0x31')](function(_0x433fbd){const _0x128aa3=_0xd0d57a;logger[_0x128aa3('0xc')](util['inspect'](_0x433fbd,{'showHidden':![],'depth':null}));});});},Migration[_0x54b380('0x2')][_0x54b380('0x1c')]=function(_0x51e5f1){const _0x247fc3=_0x54b380;this[_0x247fc3('0x25')][_0x247fc3('0x7')](function(){return _0x51e5f1();});},module[_0x54b380('0x29')]={'up':function(_0x429906,_0x5f580a){return new Promise(function(_0x56563c){const _0x48befc=a927_0x51ab,_0xf503ca=new Migration(_0x429906);_0xf503ca[_0x48befc('0x13')](_0x48befc('0x2f'),_0x48befc('0x10'),{'type':_0x5f580a['STRING']}),_0xf503ca[_0x48befc('0x13')](_0x48befc('0x2f'),_0x48befc('0x2c'),{'type':_0x5f580a['STRING']}),_0xf503ca[_0x48befc('0x13')](_0x48befc('0x2f'),_0x48befc('0x1'),{'type':_0x5f580a['STRING']}),_0xf503ca[_0x48befc('0x13')](_0x48befc('0x1a'),'rtcp_mux',{'type':_0x5f580a[_0x48befc('0x1f')](_0x48befc('0xb'),'no'),'defaultValue':'no'}),_0xf503ca[_0x48befc('0x6')](_0x48befc('0x1b')),_0xf503ca[_0x48befc('0x13')](_0x48befc('0x20'),_0x48befc('0x35'),{'type':_0x5f580a[_0x48befc('0x1f')]('in','out'),'defaultValue':'in','allowNull':![]}),_0xf503ca['query'](_0x48befc('0x24')),_0xf503ca[_0x48befc('0x13')](_0x48befc('0x2b'),_0x48befc('0x35'),{'type':_0x5f580a[_0x48befc('0x1f')]('in',_0x48befc('0x2a')),'defaultValue':'in','allowNull':![]}),_0xf503ca[_0x48befc('0x6')](_0x48befc('0x18')),_0xf503ca[_0x48befc('0x13')](_0x48befc('0xa'),'firstMsgDirection',{'type':_0x5f580a[_0x48befc('0x1f')]('in','out'),'defaultValue':'in','allowNull':![]}),_0xf503ca[_0x48befc('0x6')]('UPDATE\x20fax_interactions\x20t1,\x20(SELECT\x20FaxInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20fax_messages\x20WHERE\x20FaxInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20FaxInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.FaxInteractionId;');try{fs[_0x48befc('0x2e')](_0x48befc('0x3'),';\x20STUN\x20server\x20list\x0a',{'encoding':_0x48befc('0x11')}),fs[_0x48befc('0x2e')](_0x48befc('0x33'),';\x20TURN\x20server\x20list\x0a',{'encoding':_0x48befc('0x11')});let _0x51e539=fs[_0x48befc('0x28')]('/etc/asterisk/rtp.conf',{'encoding':_0x48befc('0x11')});_0x51e539=_[_0x48befc('0x1d')](_0x51e539,_0x48befc('0x15'),_0x48befc('0x30')),fs[_0x48befc('0x2e')](_0x48befc('0x26'),_0x51e539,{'encoding':_0x48befc('0x11')}),fs[_0x48befc('0x32')](_0x48befc('0x34'),'#include\x20\x22stun_xcally.conf\x22',{'encoding':'utf8'});}catch(_0x3ad36b){logger['info'](JSON[_0x48befc('0x9')](_0x3ad36b));}_0xf503ca[_0x48befc('0x1c')](_0x56563c);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.49.js b/server/migrations/2.0.49.js index 76e30fe..c50e386 100644 --- a/server/migrations/2.0.49.js +++ b/server/migrations/2.0.49.js @@ -1 +1 @@ -const a928_0x238e=['INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x274\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','Changed\x20column\x20%s\x20in\x20table\x20%s','users','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205','queryInterface','util','offlineMessageBody','enqueue','query','STRING','basic','dropTable','Added\x20column\x20%s\x20to\x20%s','migration','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','finally','dialAgiAfterHangupAgent','changeColumn','query\x20%s','DATE','chat_websites','ENUM','senderString','../config/logger','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','stringify','addColumn','sequence','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','agiafterat','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','exports','dialQueueProject2','addIndex','BOOLEAN','table\x20dropped\x20%s','dialAgiAfterHangupClient','offlineMessageSubject','sequelize','password','New\x20offline\x20message\x20from\x20websiteName','tail','sms_accounts','username','info','catch','inspect','final','Removed\x20column\x20%s\x20from\x20%s','classic+','voice_queues','then','prototype','allowmessenger','addIndex\x20%s\x20%s\x20%s'];(function(_0x18cc4d,_0x238eba){const _0x52631f=function(_0x1f6205){while(--_0x1f6205){_0x18cc4d['push'](_0x18cc4d['shift']());}};_0x52631f(++_0x238eba);}(a928_0x238e,0x102));const a928_0x5263=function(_0x18cc4d,_0x238eba){_0x18cc4d=_0x18cc4d-0x0;let _0x52631f=a928_0x238e[_0x18cc4d];return _0x52631f;};const _0x319e24=a928_0x5263;'use strict';const util=require(_0x319e24('0x16')),logger=require(_0x319e24('0x28'))(_0x319e24('0x1e')),Sequence=function(){};Sequence[_0x319e24('0xe')]['enqueue']=function(_0x1f6205){const _0x42bf53=_0x319e24;this['tail']=this['tail']?this[_0x42bf53('0x3')][_0x42bf53('0x20')](_0x1f6205):_0x1f6205();};const Migration=function(_0x501687){const _0x16b86f=_0x319e24;this[_0x16b86f('0x15')]=_0x501687,this[_0x16b86f('0x2c')]=new Sequence();};Migration[_0x319e24('0xe')][_0x319e24('0x22')]=function(_0x537c4b,_0x4bde16,_0xd9cba5){const _0x3d4a23=this;this['sequence']['enqueue'](function(){const _0x630b1=a928_0x5263;return _0x3d4a23[_0x630b1('0x15')]['changeColumn'](_0x537c4b,_0x4bde16,_0xd9cba5)[_0x630b1('0xd')](function(){const _0x4d2c11=_0x630b1;logger[_0x4d2c11('0x6')](_0x4d2c11('0x12'),_0x4bde16,_0x537c4b);})[_0x630b1('0x7')](function(_0x5f141b){const _0x33ebcc=_0x630b1;logger[_0x33ebcc('0x6')](JSON['stringify'](_0x5f141b));});});},Migration[_0x319e24('0xe')][_0x319e24('0x2b')]=function(_0x4c263c,_0x5531aa,_0x3191d2){const _0x5d2ce7=_0x319e24,_0x44f6e3=this;this[_0x5d2ce7('0x2c')]['enqueue'](function(){const _0x534621=_0x5d2ce7;return _0x44f6e3[_0x534621('0x15')][_0x534621('0x2b')](_0x4c263c,_0x5531aa,_0x3191d2)[_0x534621('0xd')](function(){const _0x7aea41=_0x534621;logger['info'](_0x7aea41('0x1d'),_0x5531aa,_0x4c263c);})[_0x534621('0x7')](function(_0xfcd0d1){logger['info'](JSON['stringify'](_0xfcd0d1));});});},Migration[_0x319e24('0xe')][_0x319e24('0x1c')]=function(_0xc5235b){const _0x2fa48f=_0x319e24,_0x219166=this;this[_0x2fa48f('0x2c')][_0x2fa48f('0x18')](function(){const _0x2d51aa=_0x2fa48f;return _0x219166['queryInterface'][_0x2d51aa('0x1c')](_0xc5235b,{'force':!![]})[_0x2d51aa('0xd')](function(){const _0x243c06=_0x2d51aa;logger['info'](_0x243c06('0x34'),_0xc5235b);})[_0x2d51aa('0x7')](function(_0x470960){const _0x5ac168=_0x2d51aa;logger[_0x5ac168('0x6')](JSON['stringify'](_0x470960));});});},Migration[_0x319e24('0xe')][_0x319e24('0x32')]=function(_0x1cf3c1,_0x51eb50,_0x5ce542){const _0x250226=_0x319e24,_0x4b7468=this;this['sequence'][_0x250226('0x18')](function(){const _0x54ffdb=_0x250226;return _0x4b7468[_0x54ffdb('0x15')]['addIndex'](_0x1cf3c1,_0x51eb50,{'indexName':_0x5ce542})[_0x54ffdb('0xd')](function(){const _0x2e217a=_0x54ffdb;logger[_0x2e217a('0x6')](_0x2e217a('0x10'),_0x1cf3c1,_0x51eb50['join'](','),_0x5ce542);})[_0x54ffdb('0x7')](function(_0x12d5fc){const _0x388803=_0x54ffdb;logger['info'](JSON[_0x388803('0x2a')](_0x12d5fc));});});},Migration[_0x319e24('0xe')][_0x319e24('0x19')]=function(_0x512156){const _0x47df4e=_0x319e24,_0x2bbe2c=this;this[_0x47df4e('0x2c')][_0x47df4e('0x18')](function(){const _0x3fbb8e=_0x47df4e;return _0x2bbe2c['queryInterface'][_0x3fbb8e('0x0')][_0x3fbb8e('0x19')](_0x512156)[_0x3fbb8e('0xd')](function(){const _0x332ef7=_0x3fbb8e;logger[_0x332ef7('0x6')](_0x332ef7('0x23'),_0x512156);})[_0x3fbb8e('0x7')](function(_0x24fb01){const _0x404620=_0x3fbb8e;logger['info'](JSON[_0x404620('0x2a')](_0x24fb01));});});},Migration[_0x319e24('0xe')]['removeColumn']=function(_0x40e79f,_0x42d57d){const _0x10d776=_0x319e24,_0x5318bd=this;this[_0x10d776('0x2c')][_0x10d776('0x18')](function(){const _0x420c60=_0x10d776;return _0x5318bd['queryInterface']['removeColumn'](_0x40e79f,_0x42d57d)[_0x420c60('0xd')](function(){const _0x2caed=_0x420c60;logger[_0x2caed('0x6')](_0x2caed('0xa'),_0x42d57d,_0x40e79f);})[_0x420c60('0x7')](function(_0x2a0daf){const _0x18e2b8=_0x420c60;logger[_0x18e2b8('0x6')](util[_0x18e2b8('0x8')](_0x2a0daf,{'showHidden':![],'depth':null}));});});},Migration[_0x319e24('0xe')][_0x319e24('0x9')]=function(_0x44d7e7){this['sequence']['enqueue'](function(){return _0x44d7e7();});},module[_0x319e24('0x30')]={'up':function(_0xe21eb0,_0x283318){return new Promise(function(_0x928450){const _0x11a1a9=a928_0x5263,_0x141514=new Migration(_0xe21eb0);_0x141514[_0x11a1a9('0x2b')]('sms_accounts','smsMethod',{'type':_0x283318[_0x11a1a9('0x26')](_0x11a1a9('0x1b'),'classic',_0x11a1a9('0xb'))}),_0x141514[_0x11a1a9('0x2b')]('sms_accounts',_0x11a1a9('0x5'),{'type':_0x283318[_0x11a1a9('0x1a')]}),_0x141514['addColumn']('sms_accounts',_0x11a1a9('0x1'),{'type':_0x283318[_0x11a1a9('0x1a')]}),_0x141514[_0x11a1a9('0x2b')](_0x11a1a9('0x4'),_0x11a1a9('0x27'),{'type':_0x283318[_0x11a1a9('0x1a')]}),_0x141514['addColumn']('sms_accounts','deliveryReport',{'type':_0x283318[_0x11a1a9('0x33')],'defaultValue':![]}),_0x141514[_0x11a1a9('0x2b')](_0x11a1a9('0x13'),_0x11a1a9('0xf'),{'type':_0x283318['BOOLEAN'],'defaultValue':!![]}),_0x141514[_0x11a1a9('0x2b')](_0x11a1a9('0x13'),'phoneBarOutboundProxy',{'type':_0x283318[_0x11a1a9('0x1a')]}),_0x141514[_0x11a1a9('0x2b')](_0x11a1a9('0x25'),_0x11a1a9('0x36'),{'type':_0x283318[_0x11a1a9('0x1a')],'defaultValue':_0x11a1a9('0x2')}),_0x141514[_0x11a1a9('0x2b')](_0x11a1a9('0x25'),_0x11a1a9('0x17'),{'type':_0x283318[_0x11a1a9('0x1a')],'defaultValue':_0x11a1a9('0x29')}),_0x141514['addColumn'](_0x11a1a9('0xc'),_0x11a1a9('0x31'),{'type':_0x283318[_0x11a1a9('0x1a')]}),_0x141514['addColumn'](_0x11a1a9('0xc'),_0x11a1a9('0x35'),{'type':_0x283318[_0x11a1a9('0x33')],'defaultValue':![]}),_0x141514[_0x11a1a9('0x2b')](_0x11a1a9('0xc'),_0x11a1a9('0x21'),{'type':_0x283318[_0x11a1a9('0x33')],'defaultValue':![]}),_0x141514[_0x11a1a9('0x19')](_0x11a1a9('0x1f')),_0x141514['query'](_0x11a1a9('0x2f')),_0x141514[_0x11a1a9('0x19')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x141514[_0x11a1a9('0x19')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204'),_0x141514[_0x11a1a9('0x19')](_0x11a1a9('0x14')),_0x141514['query'](_0x11a1a9('0x11')),_0x141514[_0x11a1a9('0x19')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x275\x27,\x20\x27dial\x27,\x20\x27${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x141514['query'](_0x11a1a9('0x2d')),_0x141514['addColumn']('cm_hopper_final',_0x11a1a9('0x2e'),{'type':_0x283318[_0x11a1a9('0x24')]}),_0x141514[_0x11a1a9('0x9')](_0x928450);});},'down':function(){}}; \ No newline at end of file +const a928_0x2f0f=['classic','senderString','BOOLEAN','dialAgiAfterHangupAgent','New\x20offline\x20message\x20from\x20websiteName','addColumn','cm_hopper_final','finally','tail','voice_queues','sequence','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chat_websites','ENUM','deliveryReport','offlineMessageSubject','query','prototype','changeColumn','addIndex\x20%s\x20%s\x20%s','queryInterface','DATE','phoneBarOutboundProxy','Removed\x20column\x20%s\x20from\x20%s','removeColumn','enqueue','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','catch','join','sms_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s','classic+','sequelize','users','inspect','util','stringify','password','../config/logger','query\x20%s','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','dropTable','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x274\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','username','allowmessenger','dialAgiAfterHangupClient','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','final','Added\x20column\x20%s\x20to\x20%s','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x275\x27,\x20\x27dial\x27,\x20\x27${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','STRING','addIndex','exports','then','info','offlineMessageBody','agiafterat'];(function(_0xa8cdb6,_0x2f0fbe){const _0x5075a1=function(_0x2b89d9){while(--_0x2b89d9){_0xa8cdb6['push'](_0xa8cdb6['shift']());}};_0x5075a1(++_0x2f0fbe);}(a928_0x2f0f,0x1c3));const a928_0x5075=function(_0xa8cdb6,_0x2f0fbe){_0xa8cdb6=_0xa8cdb6-0x0;let _0x5075a1=a928_0x2f0f[_0xa8cdb6];return _0x5075a1;};const _0x1f7383=a928_0x5075;'use strict';const util=require(_0x1f7383('0x30')),logger=require(_0x1f7383('0x33'))('migration'),Sequence=function(){};Sequence['prototype'][_0x1f7383('0x26')]=function(_0x2b89d9){const _0x28658e=_0x1f7383;this['tail']=this[_0x28658e('0x15')]?this['tail'][_0x28658e('0x14')](_0x2b89d9):_0x2b89d9();};const Migration=function(_0x454846){this['queryInterface']=_0x454846,this['sequence']=new Sequence();};Migration[_0x1f7383('0x1e')][_0x1f7383('0x1f')]=function(_0x207c09,_0x285a06,_0x28b800){const _0x79ab51=_0x1f7383,_0x37c540=this;this[_0x79ab51('0x17')]['enqueue'](function(){const _0x1d4510=_0x79ab51;return _0x37c540[_0x1d4510('0x21')][_0x1d4510('0x1f')](_0x207c09,_0x285a06,_0x28b800)[_0x1d4510('0x9')](function(){const _0x3f4250=_0x1d4510;logger['info'](_0x3f4250('0x2b'),_0x285a06,_0x207c09);})['catch'](function(_0x12bac5){const _0x3e7ca5=_0x1d4510;logger[_0x3e7ca5('0xa')](JSON[_0x3e7ca5('0x31')](_0x12bac5));});});},Migration[_0x1f7383('0x1e')][_0x1f7383('0x12')]=function(_0x22ecfb,_0x2df4f9,_0x73ea62){const _0x110228=_0x1f7383,_0x323f99=this;this[_0x110228('0x17')][_0x110228('0x26')](function(){const _0x1c5aa4=_0x110228;return _0x323f99['queryInterface'][_0x1c5aa4('0x12')](_0x22ecfb,_0x2df4f9,_0x73ea62)['then'](function(){const _0x330aa9=_0x1c5aa4;logger[_0x330aa9('0xa')](_0x330aa9('0x3'),_0x2df4f9,_0x22ecfb);})[_0x1c5aa4('0x28')](function(_0x3bf154){const _0x287627=_0x1c5aa4;logger[_0x287627('0xa')](JSON['stringify'](_0x3bf154));});});},Migration['prototype'][_0x1f7383('0x36')]=function(_0xfea65d){const _0x41d548=_0x1f7383,_0x1fb041=this;this[_0x41d548('0x17')][_0x41d548('0x26')](function(){const _0x276cf7=_0x41d548;return _0x1fb041['queryInterface'][_0x276cf7('0x36')](_0xfea65d,{'force':!![]})[_0x276cf7('0x9')](function(){const _0x48a850=_0x276cf7;logger[_0x48a850('0xa')]('table\x20dropped\x20%s',_0xfea65d);})['catch'](function(_0x196493){const _0x5055b4=_0x276cf7;logger[_0x5055b4('0xa')](JSON['stringify'](_0x196493));});});},Migration[_0x1f7383('0x1e')][_0x1f7383('0x7')]=function(_0x1cdec2,_0x82e6a2,_0x27807f){const _0x5dfe85=_0x1f7383,_0x461e59=this;this['sequence'][_0x5dfe85('0x26')](function(){const _0x147e22=_0x5dfe85;return _0x461e59[_0x147e22('0x21')][_0x147e22('0x7')](_0x1cdec2,_0x82e6a2,{'indexName':_0x27807f})[_0x147e22('0x9')](function(){const _0x2024ab=_0x147e22;logger['info'](_0x2024ab('0x20'),_0x1cdec2,_0x82e6a2[_0x2024ab('0x29')](','),_0x27807f);})[_0x147e22('0x28')](function(_0x5b44f3){logger['info'](JSON['stringify'](_0x5b44f3));});});},Migration[_0x1f7383('0x1e')][_0x1f7383('0x1d')]=function(_0x1a521c){const _0x1b124e=_0x1f7383,_0x2b7933=this;this['sequence'][_0x1b124e('0x26')](function(){const _0x3da03=_0x1b124e;return _0x2b7933[_0x3da03('0x21')][_0x3da03('0x2d')][_0x3da03('0x1d')](_0x1a521c)['then'](function(){const _0x38c609=_0x3da03;logger['info'](_0x38c609('0x34'),_0x1a521c);})['catch'](function(_0x22c286){const _0x175879=_0x3da03;logger[_0x175879('0xa')](JSON[_0x175879('0x31')](_0x22c286));});});},Migration[_0x1f7383('0x1e')][_0x1f7383('0x25')]=function(_0x2726bd,_0xfebda3){const _0x1b32f9=_0x1f7383,_0x4b3dbb=this;this[_0x1b32f9('0x17')][_0x1b32f9('0x26')](function(){const _0x5ef235=_0x1b32f9;return _0x4b3dbb[_0x5ef235('0x21')][_0x5ef235('0x25')](_0x2726bd,_0xfebda3)[_0x5ef235('0x9')](function(){const _0x47de3b=_0x5ef235;logger['info'](_0x47de3b('0x24'),_0xfebda3,_0x2726bd);})[_0x5ef235('0x28')](function(_0x2742ea){const _0x13a953=_0x5ef235;logger[_0x13a953('0xa')](util[_0x13a953('0x2f')](_0x2742ea,{'showHidden':![],'depth':null}));});});},Migration[_0x1f7383('0x1e')][_0x1f7383('0x2')]=function(_0x51716f){const _0x54f33a=_0x1f7383;this['sequence'][_0x54f33a('0x26')](function(){return _0x51716f();});},module[_0x1f7383('0x8')]={'up':function(_0xef2a70,_0x3a4f9d){return new Promise(function(_0x1c2b64){const _0x1520bc=a928_0x5075,_0x3e9d16=new Migration(_0xef2a70);_0x3e9d16[_0x1520bc('0x12')](_0x1520bc('0x2a'),'smsMethod',{'type':_0x3a4f9d[_0x1520bc('0x1a')]('basic',_0x1520bc('0xd'),_0x1520bc('0x2c'))}),_0x3e9d16[_0x1520bc('0x12')](_0x1520bc('0x2a'),_0x1520bc('0x38'),{'type':_0x3a4f9d[_0x1520bc('0x6')]}),_0x3e9d16[_0x1520bc('0x12')](_0x1520bc('0x2a'),_0x1520bc('0x32'),{'type':_0x3a4f9d['STRING']}),_0x3e9d16[_0x1520bc('0x12')](_0x1520bc('0x2a'),_0x1520bc('0xe'),{'type':_0x3a4f9d[_0x1520bc('0x6')]}),_0x3e9d16['addColumn'](_0x1520bc('0x2a'),_0x1520bc('0x1b'),{'type':_0x3a4f9d['BOOLEAN'],'defaultValue':![]}),_0x3e9d16['addColumn'](_0x1520bc('0x2e'),_0x1520bc('0x39'),{'type':_0x3a4f9d[_0x1520bc('0xf')],'defaultValue':!![]}),_0x3e9d16[_0x1520bc('0x12')](_0x1520bc('0x2e'),_0x1520bc('0x23'),{'type':_0x3a4f9d[_0x1520bc('0x6')]}),_0x3e9d16['addColumn'](_0x1520bc('0x19'),_0x1520bc('0x1c'),{'type':_0x3a4f9d[_0x1520bc('0x6')],'defaultValue':_0x1520bc('0x11')}),_0x3e9d16[_0x1520bc('0x12')](_0x1520bc('0x19'),_0x1520bc('0xb'),{'type':_0x3a4f9d[_0x1520bc('0x6')],'defaultValue':_0x1520bc('0x1')}),_0x3e9d16[_0x1520bc('0x12')](_0x1520bc('0x16'),'dialQueueProject2',{'type':_0x3a4f9d[_0x1520bc('0x6')]}),_0x3e9d16[_0x1520bc('0x12')]('voice_queues',_0x1520bc('0x0'),{'type':_0x3a4f9d[_0x1520bc('0xf')],'defaultValue':![]}),_0x3e9d16['addColumn'](_0x1520bc('0x16'),_0x1520bc('0x10'),{'type':_0x3a4f9d[_0x1520bc('0xf')],'defaultValue':![]}),_0x3e9d16[_0x1520bc('0x1d')](_0x1520bc('0x27')),_0x3e9d16[_0x1520bc('0x1d')](_0x1520bc('0x18')),_0x3e9d16[_0x1520bc('0x1d')](_0x1520bc('0x5')),_0x3e9d16[_0x1520bc('0x1d')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204'),_0x3e9d16[_0x1520bc('0x1d')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205'),_0x3e9d16[_0x1520bc('0x1d')](_0x1520bc('0x37')),_0x3e9d16[_0x1520bc('0x1d')](_0x1520bc('0x4')),_0x3e9d16[_0x1520bc('0x1d')](_0x1520bc('0x35')),_0x3e9d16[_0x1520bc('0x12')](_0x1520bc('0x13'),_0x1520bc('0xc'),{'type':_0x3a4f9d[_0x1520bc('0x22')]}),_0x3e9d16[_0x1520bc('0x2')](_0x1c2b64);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.50.js b/server/migrations/2.0.50.js index 64a106a..7aa8dae 100644 --- a/server/migrations/2.0.50.js +++ b/server/migrations/2.0.50.js @@ -1 +1 @@ -const a929_0x2f64=['INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x277\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','inspect','queryInterface','../config/logger','exports','sequence','sequelize','addIndex','prototype','query','progressive','catch','addColumn','final','then','preview','Removed\x20column\x20%s\x20from\x20%s','power','info','booked','removeColumn','tail','query\x20%s','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','sms_messages','stringify','ENUM','enqueue','STRING','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','util','dropTable','dialMethod','messageId','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','join','changeColumn'];(function(_0x57d31c,_0x2f6487){const _0x4b8f65=function(_0x570d94){while(--_0x570d94){_0x57d31c['push'](_0x57d31c['shift']());}};_0x4b8f65(++_0x2f6487);}(a929_0x2f64,0x114));const a929_0x4b8f=function(_0x57d31c,_0x2f6487){_0x57d31c=_0x57d31c-0x0;let _0x4b8f65=a929_0x2f64[_0x57d31c];return _0x4b8f65;};const _0xe2cf02=a929_0x4b8f;'use strict';const util=require(_0xe2cf02('0x15')),logger=require(_0xe2cf02('0x1f'))('migration'),Sequence=function(){};Sequence['prototype'][_0xe2cf02('0x12')]=function(_0x570d94){const _0x515d7c=_0xe2cf02;this[_0x515d7c('0xb')]=this[_0x515d7c('0xb')]?this[_0x515d7c('0xb')]['finally'](_0x570d94):_0x570d94();};const Migration=function(_0x1d4ea8){this['queryInterface']=_0x1d4ea8,this['sequence']=new Sequence();};Migration[_0xe2cf02('0x24')][_0xe2cf02('0x1b')]=function(_0x3b09f9,_0xd99517,_0x2c8864){const _0x2648b3=_0xe2cf02,_0x4e83e8=this;this['sequence'][_0x2648b3('0x12')](function(){const _0x3dd365=_0x2648b3;return _0x4e83e8[_0x3dd365('0x1e')]['changeColumn'](_0x3b09f9,_0xd99517,_0x2c8864)['then'](function(){const _0x11fe1a=_0x3dd365;logger[_0x11fe1a('0x8')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd99517,_0x3b09f9);})['catch'](function(_0x2d8cc0){const _0x17ef35=_0x3dd365;logger[_0x17ef35('0x8')](JSON[_0x17ef35('0x10')](_0x2d8cc0));});});},Migration['prototype'][_0xe2cf02('0x2')]=function(_0x3bd33c,_0xd87318,_0x1d039f){const _0x335ac0=_0xe2cf02,_0x25997c=this;this[_0x335ac0('0x21')][_0x335ac0('0x12')](function(){const _0x391fca=_0x335ac0;return _0x25997c[_0x391fca('0x1e')][_0x391fca('0x2')](_0x3bd33c,_0xd87318,_0x1d039f)['then'](function(){const _0x460b00=_0x391fca;logger[_0x460b00('0x8')](_0x460b00('0xe'),_0xd87318,_0x3bd33c);})['catch'](function(_0x2cdcb3){const _0x85788d=_0x391fca;logger[_0x85788d('0x8')](JSON[_0x85788d('0x10')](_0x2cdcb3));});});},Migration[_0xe2cf02('0x24')][_0xe2cf02('0x16')]=function(_0x3891af){const _0x145535=_0xe2cf02,_0x55f539=this;this[_0x145535('0x21')][_0x145535('0x12')](function(){const _0x1258bf=_0x145535;return _0x55f539['queryInterface'][_0x1258bf('0x16')](_0x3891af,{'force':!![]})[_0x1258bf('0x4')](function(){const _0x40b111=_0x1258bf;logger['info'](_0x40b111('0xd'),_0x3891af);})[_0x1258bf('0x1')](function(_0x237d31){const _0x4e679d=_0x1258bf;logger[_0x4e679d('0x8')](JSON['stringify'](_0x237d31));});});},Migration[_0xe2cf02('0x24')][_0xe2cf02('0x23')]=function(_0x5ee578,_0x1632d4,_0x5a1fbc){const _0x52c6e7=_0xe2cf02,_0x5d38bf=this;this['sequence'][_0x52c6e7('0x12')](function(){const _0x37b8f1=_0x52c6e7;return _0x5d38bf['queryInterface'][_0x37b8f1('0x23')](_0x5ee578,_0x1632d4,{'indexName':_0x5a1fbc})[_0x37b8f1('0x4')](function(){const _0x4e53e7=_0x37b8f1;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x5ee578,_0x1632d4[_0x4e53e7('0x1a')](','),_0x5a1fbc);})['catch'](function(_0x2fff5f){const _0xa9be9a=_0x37b8f1;logger[_0xa9be9a('0x8')](JSON[_0xa9be9a('0x10')](_0x2fff5f));});});},Migration[_0xe2cf02('0x24')]['query']=function(_0x3e3bde){const _0x22b996=_0xe2cf02,_0x57366a=this;this[_0x22b996('0x21')]['enqueue'](function(){const _0x229d14=_0x22b996;return _0x57366a['queryInterface'][_0x229d14('0x22')]['query'](_0x3e3bde)[_0x229d14('0x4')](function(){const _0x52ea57=_0x229d14;logger['info'](_0x52ea57('0xc'),_0x3e3bde);})[_0x229d14('0x1')](function(_0x2d3190){const _0x158d8a=_0x229d14;logger['info'](JSON[_0x158d8a('0x10')](_0x2d3190));});});},Migration[_0xe2cf02('0x24')][_0xe2cf02('0xa')]=function(_0x4b25da,_0x25d8c9){const _0x370aaf=_0xe2cf02,_0x3500b2=this;this[_0x370aaf('0x21')][_0x370aaf('0x12')](function(){const _0xe71b6a=_0x370aaf;return _0x3500b2[_0xe71b6a('0x1e')][_0xe71b6a('0xa')](_0x4b25da,_0x25d8c9)[_0xe71b6a('0x4')](function(){const _0x5e2ac6=_0xe71b6a;logger['info'](_0x5e2ac6('0x6'),_0x25d8c9,_0x4b25da);})['catch'](function(_0x4f9d59){const _0x5b6c6d=_0xe71b6a;logger[_0x5b6c6d('0x8')](util[_0x5b6c6d('0x1d')](_0x4f9d59,{'showHidden':![],'depth':null}));});});},Migration[_0xe2cf02('0x24')]['final']=function(_0x490fe4){const _0x538e75=_0xe2cf02;this[_0x538e75('0x21')][_0x538e75('0x12')](function(){return _0x490fe4();});},module[_0xe2cf02('0x20')]={'up':function(_0x39bc34,_0x48fbff){return new Promise(function(_0x2be1bb){const _0x2116f6=a929_0x4b8f,_0x56c683=new Migration(_0x39bc34);_0x56c683[_0x2116f6('0x1b')]('sms_messages','messageId',{'type':_0x48fbff[_0x2116f6('0x13')](0xbe)}),_0x56c683['addIndex'](_0x2116f6('0xf'),[_0x2116f6('0x18')],_0x2116f6('0x18')),_0x56c683['changeColumn']('voice_queues',_0x2116f6('0x17'),{'type':_0x48fbff[_0x2116f6('0x11')](_0x2116f6('0x5'),_0x2116f6('0x0'),_0x2116f6('0x7'),'predictive',_0x2116f6('0x9')),'defaultValue':_0x2116f6('0x0')}),_0x56c683[_0x2116f6('0x25')](_0x2116f6('0x14')),_0x56c683[_0x2116f6('0x25')](_0x2116f6('0x19')),_0x56c683['query'](_0x2116f6('0x1c')),_0x56c683[_0x2116f6('0x3')](_0x2be1bb);});},'down':function(){}}; \ No newline at end of file +const a929_0x4dba=['messageId','addIndex','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','enqueue','progressive','sequelize','changeColumn','sms_messages','final','finally','query','tail','removeColumn','sequence','migration','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','info','prototype','catch','then','dialMethod','STRING','Added\x20column\x20%s\x20to\x20%s','stringify','Removed\x20column\x20%s\x20from\x20%s','dropTable','predictive','queryInterface','preview','power','util','join','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','booked'];(function(_0x2177e2,_0x4dba70){const _0x4888d9=function(_0x32a8a7){while(--_0x32a8a7){_0x2177e2['push'](_0x2177e2['shift']());}};_0x4888d9(++_0x4dba70);}(a929_0x4dba,0x14a));const a929_0x4888=function(_0x2177e2,_0x4dba70){_0x2177e2=_0x2177e2-0x0;let _0x4888d9=a929_0x4dba[_0x2177e2];return _0x4888d9;};const _0x4f4894=a929_0x4888;'use strict';const util=require(_0x4f4894('0x10')),logger=require('../config/logger')(_0x4f4894('0x22')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x32a8a7){const _0x53fa0f=_0x4f4894;this['tail']=this[_0x53fa0f('0x1f')]?this[_0x53fa0f('0x1f')][_0x53fa0f('0x1d')](_0x32a8a7):_0x32a8a7();};const Migration=function(_0x2224fa){const _0x132ba8=_0x4f4894;this[_0x132ba8('0xd')]=_0x2224fa,this[_0x132ba8('0x21')]=new Sequence();};Migration[_0x4f4894('0x3')][_0x4f4894('0x1a')]=function(_0x15b040,_0x49346a,_0xdeb936){const _0xe6adf9=_0x4f4894,_0x293e99=this;this[_0xe6adf9('0x21')][_0xe6adf9('0x17')](function(){const _0x1fec9d=_0xe6adf9;return _0x293e99[_0x1fec9d('0xd')]['changeColumn'](_0x15b040,_0x49346a,_0xdeb936)[_0x1fec9d('0x5')](function(){const _0x441d78=_0x1fec9d;logger[_0x441d78('0x2')](_0x441d78('0x1'),_0x49346a,_0x15b040);})[_0x1fec9d('0x4')](function(_0x502c29){const _0x9a3cf8=_0x1fec9d;logger[_0x9a3cf8('0x2')](JSON[_0x9a3cf8('0x9')](_0x502c29));});});},Migration[_0x4f4894('0x3')][_0x4f4894('0x0')]=function(_0x12b0d3,_0x40d102,_0x65a7f9){const _0x526172=_0x4f4894,_0x2c1657=this;this[_0x526172('0x21')][_0x526172('0x17')](function(){const _0x29db19=_0x526172;return _0x2c1657[_0x29db19('0xd')][_0x29db19('0x0')](_0x12b0d3,_0x40d102,_0x65a7f9)[_0x29db19('0x5')](function(){const _0x2463b6=_0x29db19;logger[_0x2463b6('0x2')](_0x2463b6('0x8'),_0x40d102,_0x12b0d3);})[_0x29db19('0x4')](function(_0x5bff2f){const _0x14c58a=_0x29db19;logger[_0x14c58a('0x2')](JSON['stringify'](_0x5bff2f));});});},Migration[_0x4f4894('0x3')][_0x4f4894('0xb')]=function(_0x2a0ac8){const _0x500e68=this;this['sequence']['enqueue'](function(){const _0x431187=a929_0x4888;return _0x500e68[_0x431187('0xd')][_0x431187('0xb')](_0x2a0ac8,{'force':!![]})[_0x431187('0x5')](function(){logger['info']('table\x20dropped\x20%s',_0x2a0ac8);})[_0x431187('0x4')](function(_0x4e8959){logger['info'](JSON['stringify'](_0x4e8959));});});},Migration['prototype'][_0x4f4894('0x15')]=function(_0x1440b0,_0x5cb3a4,_0xa57821){const _0x4a7acb=_0x4f4894,_0x4f9aaf=this;this[_0x4a7acb('0x21')]['enqueue'](function(){const _0x5de610=_0x4a7acb;return _0x4f9aaf[_0x5de610('0xd')][_0x5de610('0x15')](_0x1440b0,_0x5cb3a4,{'indexName':_0xa57821})[_0x5de610('0x5')](function(){const _0x1f9e03=_0x5de610;logger[_0x1f9e03('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x1440b0,_0x5cb3a4[_0x1f9e03('0x11')](','),_0xa57821);})[_0x5de610('0x4')](function(_0x1515d7){const _0x462065=_0x5de610;logger[_0x462065('0x2')](JSON[_0x462065('0x9')](_0x1515d7));});});},Migration[_0x4f4894('0x3')][_0x4f4894('0x1e')]=function(_0x1bb8ff){const _0x20ed1d=_0x4f4894,_0x39905b=this;this[_0x20ed1d('0x21')]['enqueue'](function(){const _0x3fdde4=_0x20ed1d;return _0x39905b[_0x3fdde4('0xd')][_0x3fdde4('0x19')]['query'](_0x1bb8ff)[_0x3fdde4('0x5')](function(){logger['info']('query\x20%s',_0x1bb8ff);})[_0x3fdde4('0x4')](function(_0x48285b){logger['info'](JSON['stringify'](_0x48285b));});});},Migration[_0x4f4894('0x3')]['removeColumn']=function(_0x4838e9,_0x25a869){const _0x2860a6=_0x4f4894,_0x43c6c7=this;this[_0x2860a6('0x21')][_0x2860a6('0x17')](function(){const _0x39f8fa=_0x2860a6;return _0x43c6c7['queryInterface'][_0x39f8fa('0x20')](_0x4838e9,_0x25a869)['then'](function(){const _0x1ef38d=_0x39f8fa;logger['info'](_0x1ef38d('0xa'),_0x25a869,_0x4838e9);})['catch'](function(_0x590a20){logger['info'](util['inspect'](_0x590a20,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x29c300){const _0x520956=_0x4f4894;this['sequence'][_0x520956('0x17')](function(){return _0x29c300();});},module['exports']={'up':function(_0x19ac84,_0x3eba7e){return new Promise(function(_0x4b2652){const _0x41f188=a929_0x4888,_0x2161bd=new Migration(_0x19ac84);_0x2161bd['changeColumn'](_0x41f188('0x1b'),_0x41f188('0x14'),{'type':_0x3eba7e[_0x41f188('0x7')](0xbe)}),_0x2161bd[_0x41f188('0x15')](_0x41f188('0x1b'),[_0x41f188('0x14')],_0x41f188('0x14')),_0x2161bd['changeColumn']('voice_queues',_0x41f188('0x6'),{'type':_0x3eba7e['ENUM'](_0x41f188('0xe'),'progressive',_0x41f188('0xf'),_0x41f188('0xc'),_0x41f188('0x13')),'defaultValue':_0x41f188('0x18')}),_0x2161bd[_0x41f188('0x1e')](_0x41f188('0x16')),_0x2161bd[_0x41f188('0x1e')](_0x41f188('0x12')),_0x2161bd[_0x41f188('0x1e')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x277\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x2161bd[_0x41f188('0x1c')](_0x4b2652);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.51.js b/server/migrations/2.0.51.js index f8527d7..ed660d7 100644 --- a/server/migrations/2.0.51.js +++ b/server/migrations/2.0.51.js @@ -1 +1 @@ -const a930_0x21f3=['prototype','changeColumn','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','sequelize','tail','query','UPDATE\x20','addIndex','cm_hopper_history','enqueue','membername','Openchannel','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100\x27\x20WHERE\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27','Mail','phone','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','ENUM','cm_hopper_final','toLowerCase','INTEGER','interface','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27background\x27,\x20\x27silence/1\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','DATE','InteractionId,\x20MAX(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction,\x20ANY_VALUE(createdAt)\x20AS\x20createdAt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','ALTER\x20TABLE\x20`chat_internal_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_internal_messages_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ChatGroupId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20chat_groups(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','info','addColumn','_interactions\x20t1,\x20(SELECT\x20','report_call','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','queryInterface','exports','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2710\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','InteractionId\x20IS\x20NOT\x20NULL\x20AND\x20(direction=\x27in\x27\x20OR\x20(direction=\x27out\x27\x20AND\x20secret=0\x20AND\x20UserId\x20IS\x20NOT\x20NULL))\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20','Sms','catch','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','sms_interactions','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','dropTable','query\x20%s','uniqueid','ChatInternalMessageId','chat_internal_messages','table\x20dropped\x20%s','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x278\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x274\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','then','migration','report_member','openchannel_interactions','lastMsgDirection','mail_interactions','fax_interactions','ChatGroupId','util','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','InteractionId;','note','UPDATE\x20fax_interactions\x20t1,\x20(SELECT\x20FaxInteractionId,\x20MAX(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction,\x20ANY_VALUE(createdAt)\x20AS\x20createdAt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20fax_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20FaxInteractionId\x20IS\x20NOT\x20NULL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20FaxInteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.FaxInteractionId;','final','membername_interface','out','Removed\x20column\x20%s\x20from\x20%s','../config/logger','lastMsgAt','finally','chat_interactions','sms_accounts','inspect','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2714\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','STRING','stringify','sequence','Chat','cm_contacts','skebby'];(function(_0x2d6284,_0x21f3f6){const _0x1eea8d=function(_0x2008ce){while(--_0x2008ce){_0x2d6284['push'](_0x2d6284['shift']());}};_0x1eea8d(++_0x21f3f6);}(a930_0x21f3,0x10d));const a930_0x1eea=function(_0x2d6284,_0x21f3f6){_0x2d6284=_0x2d6284-0x0;let _0x1eea8d=a930_0x21f3[_0x2d6284];return _0x1eea8d;};const _0x55509b=a930_0x1eea;'use strict';const util=require(_0x55509b('0x15')),logger=require(_0x55509b('0x1e'))(_0x55509b('0xe')),Sequence=function(){};Sequence['prototype'][_0x55509b('0x34')]=function(_0x2008ce){const _0x2bac99=_0x55509b;this[_0x2bac99('0x2f')]=this[_0x2bac99('0x2f')]?this[_0x2bac99('0x2f')][_0x2bac99('0x20')](_0x2008ce):_0x2008ce();};const Migration=function(_0x16d4a7){const _0x49b923=_0x55509b;this[_0x49b923('0x4a')]=_0x16d4a7,this[_0x49b923('0x27')]=new Sequence();};Migration[_0x55509b('0x2b')][_0x55509b('0x2c')]=function(_0x33b3c0,_0x4bbd19,_0x26328e){const _0x45c380=_0x55509b,_0x3c5840=this;this[_0x45c380('0x27')][_0x45c380('0x34')](function(){const _0x85a8e8=_0x45c380;return _0x3c5840[_0x85a8e8('0x4a')][_0x85a8e8('0x2c')](_0x33b3c0,_0x4bbd19,_0x26328e)['then'](function(){const _0x5a5b1d=_0x85a8e8;logger[_0x5a5b1d('0x45')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4bbd19,_0x33b3c0);})[_0x85a8e8('0x1')](function(_0x2fff97){const _0x2a2e3f=_0x85a8e8;logger[_0x2a2e3f('0x45')](JSON['stringify'](_0x2fff97));});});},Migration[_0x55509b('0x2b')]['addColumn']=function(_0x4bbd6c,_0x53fd39,_0x203a7f){const _0x133596=_0x55509b,_0xb6c428=this;this[_0x133596('0x27')][_0x133596('0x34')](function(){const _0x28ae7b=_0x133596;return _0xb6c428[_0x28ae7b('0x4a')][_0x28ae7b('0x46')](_0x4bbd6c,_0x53fd39,_0x203a7f)[_0x28ae7b('0xd')](function(){const _0xab0211=_0x28ae7b;logger[_0xab0211('0x45')]('Added\x20column\x20%s\x20to\x20%s',_0x53fd39,_0x4bbd6c);})[_0x28ae7b('0x1')](function(_0x563373){const _0x57d5dd=_0x28ae7b;logger[_0x57d5dd('0x45')](JSON[_0x57d5dd('0x26')](_0x563373));});});},Migration['prototype'][_0x55509b('0x5')]=function(_0x4a3cfa){const _0x290411=_0x55509b,_0xf6e485=this;this['sequence'][_0x290411('0x34')](function(){const _0x20560b=_0x290411;return _0xf6e485[_0x20560b('0x4a')]['dropTable'](_0x4a3cfa,{'force':!![]})[_0x20560b('0xd')](function(){const _0x2d59fc=_0x20560b;logger[_0x2d59fc('0x45')](_0x2d59fc('0xa'),_0x4a3cfa);})[_0x20560b('0x1')](function(_0x10b38e){const _0x2add27=_0x20560b;logger[_0x2add27('0x45')](JSON['stringify'](_0x10b38e));});});},Migration[_0x55509b('0x2b')][_0x55509b('0x32')]=function(_0x206918,_0xab460c,_0x2c6462){const _0x3040b0=_0x55509b,_0x3d94d3=this;this[_0x3040b0('0x27')][_0x3040b0('0x34')](function(){const _0x46b2dd=_0x3040b0;return _0x3d94d3[_0x46b2dd('0x4a')][_0x46b2dd('0x32')](_0x206918,_0xab460c,{'indexName':_0x2c6462})['then'](function(){const _0x8d78f6=_0x46b2dd;logger[_0x8d78f6('0x45')]('addIndex\x20%s\x20%s\x20%s',_0x206918,_0xab460c['join'](','),_0x2c6462);})['catch'](function(_0x4cf8ea){const _0x51c547=_0x46b2dd;logger[_0x51c547('0x45')](JSON[_0x51c547('0x26')](_0x4cf8ea));});});},Migration[_0x55509b('0x2b')][_0x55509b('0x30')]=function(_0x1ab76e){const _0x3e1e07=_0x55509b,_0x5d0bd8=this;this[_0x3e1e07('0x27')]['enqueue'](function(){const _0x1741a5=_0x3e1e07;return _0x5d0bd8[_0x1741a5('0x4a')][_0x1741a5('0x2e')][_0x1741a5('0x30')](_0x1ab76e)[_0x1741a5('0xd')](function(){const _0x2a6a11=_0x1741a5;logger[_0x2a6a11('0x45')](_0x2a6a11('0x6'),_0x1ab76e);})['catch'](function(_0x828712){const _0x3582dc=_0x1741a5;logger[_0x3582dc('0x45')](JSON['stringify'](_0x828712));});});},Migration[_0x55509b('0x2b')]['removeColumn']=function(_0x24f045,_0x53a585){const _0x3e7d4b=_0x55509b,_0xceb1de=this;this[_0x3e7d4b('0x27')][_0x3e7d4b('0x34')](function(){const _0x26749d=_0x3e7d4b;return _0xceb1de['queryInterface']['removeColumn'](_0x24f045,_0x53a585)[_0x26749d('0xd')](function(){const _0x1f9eb8=_0x26749d;logger[_0x1f9eb8('0x45')](_0x1f9eb8('0x1d'),_0x53a585,_0x24f045);})[_0x26749d('0x1')](function(_0x229c17){const _0x25d782=_0x26749d;logger[_0x25d782('0x45')](util[_0x25d782('0x23')](_0x229c17,{'showHidden':![],'depth':null}));});});},Migration[_0x55509b('0x2b')][_0x55509b('0x1a')]=function(_0x1f246c){const _0x19bda3=_0x55509b;this['sequence'][_0x19bda3('0x34')](function(){return _0x1f246c();});},module[_0x55509b('0x4b')]={'up':function(_0x249a8c,_0x8849d8){return new Promise(function(_0x448877){const _0x494d56=a930_0x1eea,_0x5ee67f=new Migration(_0x249a8c);_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x9'),_0x494d56('0x8'),{'type':_0x8849d8[_0x494d56('0x3e')]}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x9'),_0x494d56('0x14'),{'type':_0x8849d8[_0x494d56('0x3e')]}),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x44')),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x21'),_0x494d56('0x11'),{'type':_0x8849d8[_0x494d56('0x3b')]('in',_0x494d56('0x1c')),'defaultValue':'in','allowNull':![]}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x21'),_0x494d56('0x1f'),{'type':_0x8849d8[_0x494d56('0x41')]}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x12'),_0x494d56('0x11'),{'type':_0x8849d8[_0x494d56('0x3b')]('in',_0x494d56('0x1c')),'defaultValue':'in','allowNull':![]}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x12'),_0x494d56('0x1f'),{'type':_0x8849d8[_0x494d56('0x41')]}),_0x5ee67f['addColumn'](_0x494d56('0x3'),_0x494d56('0x11'),{'type':_0x8849d8[_0x494d56('0x3b')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x3'),_0x494d56('0x1f'),{'type':_0x8849d8[_0x494d56('0x41')]}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x10'),_0x494d56('0x11'),{'type':_0x8849d8[_0x494d56('0x3b')]('in',_0x494d56('0x1c')),'defaultValue':'in','allowNull':![]}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x10'),_0x494d56('0x1f'),{'type':_0x8849d8[_0x494d56('0x41')]}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x13'),_0x494d56('0x11'),{'type':_0x8849d8['ENUM']('in','out'),'defaultValue':'in','allowNull':![]}),_0x5ee67f['addColumn']('fax_interactions',_0x494d56('0x1f'),{'type':_0x8849d8[_0x494d56('0x41')]});const _0x3bb43b=[_0x494d56('0x28'),_0x494d56('0x38'),_0x494d56('0x0'),_0x494d56('0x36')];for(let _0x5a6660=0x0;_0x5a6660<_0x3bb43b['length'];_0x5a6660++){_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x31')+_0x3bb43b[_0x5a6660][_0x494d56('0x3d')]()+_0x494d56('0x47')+_0x3bb43b[_0x5a6660]+_0x494d56('0x42')+_0x3bb43b[_0x5a6660][_0x494d56('0x3d')]()+_0x494d56('0x43')+_0x3bb43b[_0x5a6660]+_0x494d56('0x4d')+_0x3bb43b[_0x5a6660]+'InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.'+_0x3bb43b[_0x5a6660]+_0x494d56('0x17'));}_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x19')),_0x5ee67f[_0x494d56('0x2c')](_0x494d56('0x22'),'type',{'type':_0x8849d8[_0x494d56('0x3b')]('twilio',_0x494d56('0x2a'),'connectel')}),_0x5ee67f[_0x494d56('0x46')](_0x494d56('0x48'),_0x494d56('0x18'),{'type':_0x8849d8[_0x494d56('0x25')]}),_0x5ee67f[_0x494d56('0x32')](_0x494d56('0x29'),[_0x494d56('0x39')],_0x494d56('0x39')),_0x5ee67f[_0x494d56('0x32')](_0x494d56('0x3c'),['uniqueid'],_0x494d56('0x7')),_0x5ee67f[_0x494d56('0x32')](_0x494d56('0x33'),['uniqueid'],_0x494d56('0x7')),_0x5ee67f[_0x494d56('0x32')]('voice_recordings',['uniqueid'],'uniqueid'),_0x5ee67f[_0x494d56('0x32')](_0x494d56('0xf'),[_0x494d56('0x35'),_0x494d56('0x3f')],_0x494d56('0x1b')),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x37')),_0x5ee67f['query'](_0x494d56('0x2d')),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x3a')),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x4')),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x16')),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0xc')),_0x5ee67f[_0x494d56('0x30')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x275\x27,\x20\x27answer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x5ee67f['query'](_0x494d56('0x40')),_0x5ee67f[_0x494d56('0x30')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x277\x27,\x20\x27amd\x27,\x20\x27${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0xb')),_0x5ee67f[_0x494d56('0x30')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x4c')),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x49')),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x2')),_0x5ee67f['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2713\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x5ee67f[_0x494d56('0x30')](_0x494d56('0x24')),_0x5ee67f[_0x494d56('0x1a')](_0x448877);});},'down':function(){}}; \ No newline at end of file +const a930_0x31b4=['INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2713\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','queryInterface','_interactions\x20t1,\x20(SELECT\x20','stringify','enqueue','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x275\x27,\x20\x27answer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','note','uniqueid','final','chat_internal_messages','exports','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','mail_interactions','lastMsgDirection','lastMsgAt','Removed\x20column\x20%s\x20from\x20%s','removeColumn','sequence','sms_interactions','type','tail','voice_recordings','table\x20dropped\x20%s','query','InteractionId;','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2710\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x277\x27,\x20\x27amd\x27,\x20\x27${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','sequelize','toLowerCase','ALTER\x20TABLE\x20`chat_internal_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_internal_messages_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ChatGroupId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20chat_groups(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','cm_contacts','report_member','then','ChatGroupId','membername','addColumn','migration','InteractionId\x20IS\x20NOT\x20NULL\x20AND\x20(direction=\x27in\x27\x20OR\x20(direction=\x27out\x27\x20AND\x20secret=0\x20AND\x20UserId\x20IS\x20NOT\x20NULL))\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20','dropTable','INTEGER','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100\x27\x20WHERE\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','InteractionId,\x20MAX(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction,\x20ANY_VALUE(createdAt)\x20AS\x20createdAt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20','prototype','connectel','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x274\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x278\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','openchannel_interactions','cm_hopper_final','length','chat_interactions','twilio','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','report_call','join','fax_interactions','ChatInternalMessageId','Openchannel','catch','addIndex\x20%s\x20%s\x20%s','out','inspect','Chat','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','addIndex','ENUM','info','UPDATE\x20fax_interactions\x20t1,\x20(SELECT\x20FaxInteractionId,\x20MAX(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction,\x20ANY_VALUE(createdAt)\x20AS\x20createdAt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20fax_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20FaxInteractionId\x20IS\x20NOT\x20NULL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20FaxInteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.FaxInteractionId;','DATE','changeColumn','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27background\x27,\x20\x27silence/1\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','skebby','finally','phone','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x30f0b7,_0x31b49e){const _0x307c31=function(_0x104147){while(--_0x104147){_0x30f0b7['push'](_0x30f0b7['shift']());}};_0x307c31(++_0x31b49e);}(a930_0x31b4,0x196));const a930_0x307c=function(_0x30f0b7,_0x31b49e){_0x30f0b7=_0x30f0b7-0x0;let _0x307c31=a930_0x31b4[_0x30f0b7];return _0x307c31;};const _0x53a56f=a930_0x307c;'use strict';const util=require('util'),logger=require('../config/logger')(_0x53a56f('0x10')),Sequence=function(){};Sequence[_0x53a56f('0x18')][_0x53a56f('0x3c')]=function(_0x104147){const _0x5254be=_0x53a56f;this[_0x5254be('0x4c')]=this[_0x5254be('0x4c')]?this[_0x5254be('0x4c')][_0x5254be('0x35')](_0x104147):_0x104147();};const Migration=function(_0x5e4117){const _0x5b349d=_0x53a56f;this[_0x5b349d('0x39')]=_0x5e4117,this['sequence']=new Sequence();};Migration[_0x53a56f('0x18')][_0x53a56f('0x32')]=function(_0x6e5769,_0x45ce0c,_0x38622c){const _0x578a32=_0x53a56f,_0x2f02bb=this;this['sequence'][_0x578a32('0x3c')](function(){const _0x3c8ca5=_0x578a32;return _0x2f02bb[_0x3c8ca5('0x39')][_0x3c8ca5('0x32')](_0x6e5769,_0x45ce0c,_0x38622c)[_0x3c8ca5('0xc')](function(){const _0x1c673f=_0x3c8ca5;logger[_0x1c673f('0x2f')](_0x1c673f('0x37'),_0x45ce0c,_0x6e5769);})['catch'](function(_0x2e76f0){const _0x5260d0=_0x3c8ca5;logger[_0x5260d0('0x2f')](JSON['stringify'](_0x2e76f0));});});},Migration[_0x53a56f('0x18')][_0x53a56f('0xf')]=function(_0x50ba93,_0x3b9856,_0x50973b){const _0x532eaa=_0x53a56f,_0x374ecd=this;this[_0x532eaa('0x49')][_0x532eaa('0x3c')](function(){const _0x189043=_0x532eaa;return _0x374ecd[_0x189043('0x39')][_0x189043('0xf')](_0x50ba93,_0x3b9856,_0x50973b)['then'](function(){const _0x4d5b93=_0x189043;logger[_0x4d5b93('0x2f')]('Added\x20column\x20%s\x20to\x20%s',_0x3b9856,_0x50ba93);})[_0x189043('0x27')](function(_0xb2c555){const _0x20cd62=_0x189043;logger[_0x20cd62('0x2f')](JSON['stringify'](_0xb2c555));});});},Migration[_0x53a56f('0x18')][_0x53a56f('0x12')]=function(_0x5b348a){const _0x77a119=_0x53a56f,_0x4be3c7=this;this['sequence'][_0x77a119('0x3c')](function(){const _0x5c21f5=_0x77a119;return _0x4be3c7['queryInterface'][_0x5c21f5('0x12')](_0x5b348a,{'force':!![]})[_0x5c21f5('0xc')](function(){const _0x3df35e=_0x5c21f5;logger[_0x3df35e('0x2f')](_0x3df35e('0x1'),_0x5b348a);})[_0x5c21f5('0x27')](function(_0x457c67){const _0x3b6af2=_0x5c21f5;logger[_0x3b6af2('0x2f')](JSON[_0x3b6af2('0x3b')](_0x457c67));});});},Migration[_0x53a56f('0x18')][_0x53a56f('0x2d')]=function(_0x31cad3,_0x4248a9,_0x39e3a0){const _0x436f8d=_0x53a56f,_0x803424=this;this[_0x436f8d('0x49')]['enqueue'](function(){const _0x25374a=_0x436f8d;return _0x803424[_0x25374a('0x39')][_0x25374a('0x2d')](_0x31cad3,_0x4248a9,{'indexName':_0x39e3a0})[_0x25374a('0xc')](function(){const _0x2156a1=_0x25374a;logger[_0x2156a1('0x2f')](_0x2156a1('0x28'),_0x31cad3,_0x4248a9[_0x2156a1('0x23')](','),_0x39e3a0);})[_0x25374a('0x27')](function(_0x19ef74){const _0x3e4a15=_0x25374a;logger[_0x3e4a15('0x2f')](JSON[_0x3e4a15('0x3b')](_0x19ef74));});});},Migration['prototype'][_0x53a56f('0x2')]=function(_0x1cb0e1){const _0x1a8a8b=_0x53a56f,_0x3f3696=this;this[_0x1a8a8b('0x49')][_0x1a8a8b('0x3c')](function(){const _0x161fc8=_0x1a8a8b;return _0x3f3696[_0x161fc8('0x39')][_0x161fc8('0x7')][_0x161fc8('0x2')](_0x1cb0e1)[_0x161fc8('0xc')](function(){const _0x5519d1=_0x161fc8;logger[_0x5519d1('0x2f')]('query\x20%s',_0x1cb0e1);})[_0x161fc8('0x27')](function(_0x23a2ab){const _0x112876=_0x161fc8;logger[_0x112876('0x2f')](JSON[_0x112876('0x3b')](_0x23a2ab));});});},Migration[_0x53a56f('0x18')][_0x53a56f('0x48')]=function(_0xf11446,_0x35c572){const _0x2cf216=_0x53a56f,_0x5afcb6=this;this[_0x2cf216('0x49')]['enqueue'](function(){const _0x4997df=_0x2cf216;return _0x5afcb6[_0x4997df('0x39')][_0x4997df('0x48')](_0xf11446,_0x35c572)[_0x4997df('0xc')](function(){const _0x326bfb=_0x4997df;logger[_0x326bfb('0x2f')](_0x326bfb('0x47'),_0x35c572,_0xf11446);})[_0x4997df('0x27')](function(_0x5b80b2){const _0x143f70=_0x4997df;logger[_0x143f70('0x2f')](util[_0x143f70('0x2a')](_0x5b80b2,{'showHidden':![],'depth':null}));});});},Migration[_0x53a56f('0x18')][_0x53a56f('0x40')]=function(_0x22ccb8){const _0x5f27b7=_0x53a56f;this[_0x5f27b7('0x49')]['enqueue'](function(){return _0x22ccb8();});},module[_0x53a56f('0x42')]={'up':function(_0x1284d0,_0x269e1e){return new Promise(function(_0x4f2a74){const _0x17c914=a930_0x307c,_0x47e558=new Migration(_0x1284d0);_0x47e558[_0x17c914('0xf')](_0x17c914('0x41'),_0x17c914('0x25'),{'type':_0x269e1e[_0x17c914('0x13')]}),_0x47e558[_0x17c914('0xf')](_0x17c914('0x41'),_0x17c914('0xd'),{'type':_0x269e1e[_0x17c914('0x13')]}),_0x47e558[_0x17c914('0x2')](_0x17c914('0x9')),_0x47e558[_0x17c914('0xf')](_0x17c914('0x1f'),'lastMsgDirection',{'type':_0x269e1e[_0x17c914('0x2e')]('in',_0x17c914('0x29')),'defaultValue':'in','allowNull':![]}),_0x47e558[_0x17c914('0xf')](_0x17c914('0x1f'),'lastMsgAt',{'type':_0x269e1e[_0x17c914('0x31')]}),_0x47e558[_0x17c914('0xf')](_0x17c914('0x44'),'lastMsgDirection',{'type':_0x269e1e[_0x17c914('0x2e')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x47e558[_0x17c914('0xf')](_0x17c914('0x44'),_0x17c914('0x46'),{'type':_0x269e1e[_0x17c914('0x31')]}),_0x47e558[_0x17c914('0xf')]('sms_interactions',_0x17c914('0x45'),{'type':_0x269e1e[_0x17c914('0x2e')]('in',_0x17c914('0x29')),'defaultValue':'in','allowNull':![]}),_0x47e558[_0x17c914('0xf')](_0x17c914('0x4a'),'lastMsgAt',{'type':_0x269e1e[_0x17c914('0x31')]}),_0x47e558[_0x17c914('0xf')](_0x17c914('0x1c'),_0x17c914('0x45'),{'type':_0x269e1e[_0x17c914('0x2e')]('in',_0x17c914('0x29')),'defaultValue':'in','allowNull':![]}),_0x47e558[_0x17c914('0xf')]('openchannel_interactions',_0x17c914('0x46'),{'type':_0x269e1e[_0x17c914('0x31')]}),_0x47e558['addColumn'](_0x17c914('0x24'),_0x17c914('0x45'),{'type':_0x269e1e[_0x17c914('0x2e')]('in',_0x17c914('0x29')),'defaultValue':'in','allowNull':![]}),_0x47e558[_0x17c914('0xf')]('fax_interactions',_0x17c914('0x46'),{'type':_0x269e1e[_0x17c914('0x31')]});const _0x2b0442=[_0x17c914('0x2b'),'Mail','Sms',_0x17c914('0x26')];for(let _0x106548=0x0;_0x106548<_0x2b0442[_0x17c914('0x1e')];_0x106548++){_0x47e558[_0x17c914('0x2')]('UPDATE\x20'+_0x2b0442[_0x106548]['toLowerCase']()+_0x17c914('0x3a')+_0x2b0442[_0x106548]+_0x17c914('0x17')+_0x2b0442[_0x106548][_0x17c914('0x8')]()+_0x17c914('0x2c')+_0x2b0442[_0x106548]+_0x17c914('0x11')+_0x2b0442[_0x106548]+'InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.'+_0x2b0442[_0x106548]+_0x17c914('0x3'));}_0x47e558['query'](_0x17c914('0x30')),_0x47e558['changeColumn']('sms_accounts',_0x17c914('0x4b'),{'type':_0x269e1e[_0x17c914('0x2e')](_0x17c914('0x20'),_0x17c914('0x34'),_0x17c914('0x19'))}),_0x47e558[_0x17c914('0xf')](_0x17c914('0x22'),_0x17c914('0x3e'),{'type':_0x269e1e['STRING']}),_0x47e558[_0x17c914('0x2d')](_0x17c914('0xa'),[_0x17c914('0x36')],_0x17c914('0x36')),_0x47e558[_0x17c914('0x2d')](_0x17c914('0x1d'),['uniqueid'],'uniqueid'),_0x47e558[_0x17c914('0x2d')]('cm_hopper_history',['uniqueid'],_0x17c914('0x3f')),_0x47e558[_0x17c914('0x2d')](_0x17c914('0x0'),[_0x17c914('0x3f')],_0x17c914('0x3f')),_0x47e558[_0x17c914('0x2d')](_0x17c914('0xb'),[_0x17c914('0xe'),'interface'],'membername_interface'),_0x47e558[_0x17c914('0x2')](_0x17c914('0x14')),_0x47e558['query'](_0x17c914('0x21')),_0x47e558['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x47e558[_0x17c914('0x2')](_0x17c914('0x6')),_0x47e558[_0x17c914('0x2')](_0x17c914('0x16')),_0x47e558['query'](_0x17c914('0x1a')),_0x47e558['query'](_0x17c914('0x3d')),_0x47e558[_0x17c914('0x2')](_0x17c914('0x33')),_0x47e558['query'](_0x17c914('0x5')),_0x47e558['query'](_0x17c914('0x1b')),_0x47e558['query'](_0x17c914('0x43')),_0x47e558[_0x17c914('0x2')](_0x17c914('0x4')),_0x47e558[_0x17c914('0x2')](_0x17c914('0x15')),_0x47e558[_0x17c914('0x2')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x47e558[_0x17c914('0x2')](_0x17c914('0x38')),_0x47e558['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2714\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x47e558['final'](_0x4f2a74);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.52.js b/server/migrations/2.0.52.js index 52b7556..5c82724 100644 --- a/server/migrations/2.0.52.js +++ b/server/migrations/2.0.52.js @@ -1 +1 @@ -const a931_0x14e6=['duration','table\x20dropped\x20%s','final','Added\x20column\x20%s\x20to\x20%s','dropTable','exports','BOOLEAN','catch','tools_canned_answers','../config/logger','join','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_4`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`OpenchannelAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20openchannel_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ChatWebsiteId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20chat_websites(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','twilio','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','addColumn','sms_accounts','dashboard_items','OpenchannelAccountId','report_dial','SmsAccountId','holdtime','sequence','addIndex','Removed\x20column\x20%s\x20from\x20%s','tail','DATE','callRecordingEncryption','background','#ffffff','skebby','#2196f3','finally','inspect','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20sms_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','settings','stringify','changeColumn','MailAccountId','enqueue','queryInterface','query\x20%s','STRING','migration','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','info','passwordResetAt','removeColumn','query','sequelize','then','INTEGER','addIndex\x20%s\x20%s\x20%s','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_2`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`FaxAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20fax_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','ChatWebsiteId','type'];(function(_0x11407d,_0x14e624){const _0x1ba373=function(_0x6599a5){while(--_0x6599a5){_0x11407d['push'](_0x11407d['shift']());}};_0x1ba373(++_0x14e624);}(a931_0x14e6,0x66));const a931_0x1ba3=function(_0x11407d,_0x14e624){_0x11407d=_0x11407d-0x0;let _0x1ba373=a931_0x14e6[_0x11407d];return _0x1ba373;};const _0x926af6=a931_0x1ba3;'use strict';const util=require('util'),logger=require(_0x926af6('0x15'))(_0x926af6('0x37')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x6599a5){const _0x494940=_0x926af6;this[_0x494940('0x25')]=this[_0x494940('0x25')]?this[_0x494940('0x25')][_0x494940('0x2c')](_0x6599a5):_0x6599a5();};const Migration=function(_0x1348d1){const _0x57848d=_0x926af6;this['queryInterface']=_0x1348d1,this[_0x57848d('0x22')]=new Sequence();};Migration[_0x926af6('0x38')][_0x926af6('0x31')]=function(_0x80e984,_0x591eb4,_0x1ba166){const _0x25e367=_0x926af6,_0x4d2bc8=this;this[_0x25e367('0x22')]['enqueue'](function(){const _0x4f5c63=_0x25e367;return _0x4d2bc8[_0x4f5c63('0x34')]['changeColumn'](_0x80e984,_0x591eb4,_0x1ba166)[_0x4f5c63('0x6')](function(){const _0x5f3315=_0x4f5c63;logger['info'](_0x5f3315('0x0'),_0x591eb4,_0x80e984);})[_0x4f5c63('0x13')](function(_0x734342){const _0x544315=_0x4f5c63;logger[_0x544315('0x1')](JSON[_0x544315('0x30')](_0x734342));});});},Migration[_0x926af6('0x38')][_0x926af6('0x1b')]=function(_0x4fd123,_0x4757e4,_0x2106c2){const _0x17759c=_0x926af6,_0x1e1ab5=this;this[_0x17759c('0x22')][_0x17759c('0x33')](function(){const _0x261730=_0x17759c;return _0x1e1ab5[_0x261730('0x34')][_0x261730('0x1b')](_0x4fd123,_0x4757e4,_0x2106c2)['then'](function(){const _0x43c4b9=_0x261730;logger[_0x43c4b9('0x1')](_0x43c4b9('0xf'),_0x4757e4,_0x4fd123);})[_0x261730('0x13')](function(_0x256062){const _0x2d8812=_0x261730;logger[_0x2d8812('0x1')](JSON[_0x2d8812('0x30')](_0x256062));});});},Migration['prototype'][_0x926af6('0x10')]=function(_0x3d7d7e){const _0x5c17ee=this;this['sequence']['enqueue'](function(){const _0x459c7b=a931_0x1ba3;return _0x5c17ee[_0x459c7b('0x34')]['dropTable'](_0x3d7d7e,{'force':!![]})[_0x459c7b('0x6')](function(){const _0x2c6c1b=_0x459c7b;logger[_0x2c6c1b('0x1')](_0x2c6c1b('0xd'),_0x3d7d7e);})['catch'](function(_0x21f46b){const _0x786c5c=_0x459c7b;logger[_0x786c5c('0x1')](JSON[_0x786c5c('0x30')](_0x21f46b));});});},Migration['prototype'][_0x926af6('0x23')]=function(_0xe9c33,_0x3e8fe5,_0x1b968a){const _0x579c00=_0x926af6,_0x24bf42=this;this[_0x579c00('0x22')]['enqueue'](function(){const _0x2a5598=_0x579c00;return _0x24bf42[_0x2a5598('0x34')][_0x2a5598('0x23')](_0xe9c33,_0x3e8fe5,{'indexName':_0x1b968a})['then'](function(){const _0x386b3a=_0x2a5598;logger[_0x386b3a('0x1')](_0x386b3a('0x8'),_0xe9c33,_0x3e8fe5[_0x386b3a('0x16')](','),_0x1b968a);})[_0x2a5598('0x13')](function(_0x20562b){const _0xa5189e=_0x2a5598;logger[_0xa5189e('0x1')](JSON['stringify'](_0x20562b));});});},Migration[_0x926af6('0x38')]['query']=function(_0xfbae18){const _0x3da551=this;this['sequence']['enqueue'](function(){const _0x2d024f=a931_0x1ba3;return _0x3da551[_0x2d024f('0x34')][_0x2d024f('0x5')]['query'](_0xfbae18)['then'](function(){const _0x2535a2=_0x2d024f;logger[_0x2535a2('0x1')](_0x2535a2('0x35'),_0xfbae18);})[_0x2d024f('0x13')](function(_0x526693){const _0x35fd2d=_0x2d024f;logger[_0x35fd2d('0x1')](JSON['stringify'](_0x526693));});});},Migration[_0x926af6('0x38')][_0x926af6('0x3')]=function(_0x1efafa,_0x4aa163){const _0x124543=_0x926af6,_0x3007a2=this;this[_0x124543('0x22')][_0x124543('0x33')](function(){const _0x6bf879=_0x124543;return _0x3007a2[_0x6bf879('0x34')][_0x6bf879('0x3')](_0x1efafa,_0x4aa163)[_0x6bf879('0x6')](function(){const _0x1b38cf=_0x6bf879;logger[_0x1b38cf('0x1')](_0x1b38cf('0x24'),_0x4aa163,_0x1efafa);})[_0x6bf879('0x13')](function(_0x318fd1){const _0x37d7a0=_0x6bf879;logger[_0x37d7a0('0x1')](util[_0x37d7a0('0x2d')](_0x318fd1,{'showHidden':![],'depth':null}));});});},Migration[_0x926af6('0x38')]['final']=function(_0x1142b5){this['sequence']['enqueue'](function(){return _0x1142b5();});},module[_0x926af6('0x11')]={'up':function(_0x407af4,_0x5acdd0){return new Promise(function(_0xe95aaa){const _0x32eb86=a931_0x1ba3,_0x2b7d69=new Migration(_0x407af4);_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x2f'),_0x32eb86('0x27'),{'type':_0x5acdd0[_0x32eb86('0x12')],'defaultValue':![]}),_0x2b7d69[_0x32eb86('0x1b')]('settings','passwordExpiresDays',{'type':_0x5acdd0[_0x32eb86('0x7')](0xb),'defaultValue':0x5a}),_0x2b7d69[_0x32eb86('0x4')](_0x32eb86('0x1a')),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x14'),_0x32eb86('0x32'),{'type':_0x5acdd0['INTEGER']}),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x14'),'FaxAccountId',{'type':_0x5acdd0[_0x32eb86('0x7')]}),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x14'),_0x32eb86('0x20'),{'type':_0x5acdd0[_0x32eb86('0x7')]}),_0x2b7d69[_0x32eb86('0x1b')]('tools_canned_answers',_0x32eb86('0x1e'),{'type':_0x5acdd0[_0x32eb86('0x7')]}),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x14'),_0x32eb86('0xa'),{'type':_0x5acdd0[_0x32eb86('0x7')]}),_0x2b7d69['query']('ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_1`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x2b7d69['query'](_0x32eb86('0x9')),_0x2b7d69[_0x32eb86('0x4')](_0x32eb86('0x2e')),_0x2b7d69['query'](_0x32eb86('0x17')),_0x2b7d69[_0x32eb86('0x4')](_0x32eb86('0x18')),_0x2b7d69[_0x32eb86('0x1b')]('users',_0x32eb86('0x2'),{'type':_0x5acdd0[_0x32eb86('0x26')],'defaultValue':null}),_0x2b7d69['query']('UPDATE\x20users\x20SET\x20passwordResetAt=NOW()'),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x1f'),_0x32eb86('0xc'),{'type':_0x5acdd0[_0x32eb86('0x7')]}),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x1f'),_0x32eb86('0x21'),{'type':_0x5acdd0[_0x32eb86('0x7')]}),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x1f'),'billableseconds',{'type':_0x5acdd0['INTEGER']}),_0x2b7d69[_0x32eb86('0x31')](_0x32eb86('0x1c'),_0x32eb86('0xb'),{'type':_0x5acdd0['ENUM'](_0x32eb86('0x19'),_0x32eb86('0x2a'),'connectel','clicksend')}),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x1d'),_0x32eb86('0x28'),{'type':_0x5acdd0[_0x32eb86('0x36')],'allowNull':![],'defaultValue':_0x32eb86('0x29'),'validate':{'notEmpty':!![]}}),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x1d'),'foreground',{'type':_0x5acdd0[_0x32eb86('0x36')],'allowNull':![],'defaultValue':_0x32eb86('0x2b'),'validate':{'notEmpty':!![]}}),_0x2b7d69[_0x32eb86('0x1b')](_0x32eb86('0x1d'),'link',{'type':_0x5acdd0[_0x32eb86('0x36')]}),_0x2b7d69[_0x32eb86('0xe')](_0xe95aaa);});},'down':function(){}}; \ No newline at end of file +const a931_0x58ce=['table\x20dropped\x20%s','BOOLEAN','SmsAccountId','INTEGER','query\x20%s','OpenchannelAccountId','UPDATE\x20users\x20SET\x20passwordResetAt=NOW()','#2196f3','ENUM','tools_canned_answers','users','changeColumn','addIndex','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ChatWebsiteId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20chat_websites(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','STRING','join','passwordExpiresDays','then','final','../config/logger','clicksend','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','link','settings','Changed\x20column\x20%s\x20in\x20table\x20%s','foreground','dashboard_items','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_1`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','stringify','billableseconds','ChatWebsiteId','report_dial','connectel','Removed\x20column\x20%s\x20from\x20%s','catch','FaxAccountId','sequence','queryInterface','query','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20sms_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','sms_accounts','sequelize','duration','holdtime','enqueue','addColumn','prototype','util','removeColumn','dropTable','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_2`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`FaxAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20fax_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','tail','passwordResetAt','#ffffff','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_4`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`OpenchannelAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20openchannel_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','info'];(function(_0x248288,_0x58ceee){const _0x953018=function(_0x441d2f){while(--_0x441d2f){_0x248288['push'](_0x248288['shift']());}};_0x953018(++_0x58ceee);}(a931_0x58ce,0x1a0));const a931_0x9530=function(_0x248288,_0x58ceee){_0x248288=_0x248288-0x0;let _0x953018=a931_0x58ce[_0x248288];return _0x953018;};const _0x13315a=a931_0x9530;'use strict';const util=require(_0x13315a('0x17')),logger=require(_0x13315a('0x33'))('migration'),Sequence=function(){};Sequence[_0x13315a('0x16')][_0x13315a('0x14')]=function(_0x441d2f){const _0x822e07=_0x13315a;this[_0x822e07('0x1b')]=this['tail']?this['tail']['finally'](_0x441d2f):_0x441d2f();};const Migration=function(_0x5e544f){const _0x80ff14=_0x13315a;this[_0x80ff14('0xd')]=_0x5e544f,this[_0x80ff14('0xc')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x224b2c,_0x4c9dc4,_0xb9bd42){const _0x4813fd=_0x13315a,_0x35972f=this;this[_0x4813fd('0xc')][_0x4813fd('0x14')](function(){const _0x3b1c27=_0x4813fd;return _0x35972f[_0x3b1c27('0xd')][_0x3b1c27('0x2b')](_0x224b2c,_0x4c9dc4,_0xb9bd42)[_0x3b1c27('0x31')](function(){const _0x3901b4=_0x3b1c27;logger[_0x3901b4('0x1f')](_0x3901b4('0x0'),_0x4c9dc4,_0x224b2c);})['catch'](function(_0x5552b5){const _0x3abef1=_0x3b1c27;logger[_0x3abef1('0x1f')](JSON['stringify'](_0x5552b5));});});},Migration[_0x13315a('0x16')][_0x13315a('0x15')]=function(_0x1f82ae,_0x392270,_0x48a687){const _0x5d04b9=_0x13315a,_0xb1830=this;this[_0x5d04b9('0xc')][_0x5d04b9('0x14')](function(){const _0x4fff26=_0x5d04b9;return _0xb1830[_0x4fff26('0xd')][_0x4fff26('0x15')](_0x1f82ae,_0x392270,_0x48a687)['then'](function(){const _0x3cf6e1=_0x4fff26;logger[_0x3cf6e1('0x1f')]('Added\x20column\x20%s\x20to\x20%s',_0x392270,_0x1f82ae);})['catch'](function(_0x52196b){const _0x12cba2=_0x4fff26;logger[_0x12cba2('0x1f')](JSON['stringify'](_0x52196b));});});},Migration['prototype']['dropTable']=function(_0x256286){const _0x17c6b4=_0x13315a,_0x3dba1f=this;this[_0x17c6b4('0xc')][_0x17c6b4('0x14')](function(){const _0x288933=_0x17c6b4;return _0x3dba1f[_0x288933('0xd')][_0x288933('0x19')](_0x256286,{'force':!![]})[_0x288933('0x31')](function(){const _0x1a13d4=_0x288933;logger['info'](_0x1a13d4('0x20'),_0x256286);})[_0x288933('0xa')](function(_0x348eca){const _0x5b7fd2=_0x288933;logger[_0x5b7fd2('0x1f')](JSON['stringify'](_0x348eca));});});},Migration['prototype'][_0x13315a('0x2c')]=function(_0xe29acd,_0x181e7d,_0x268a8d){const _0x27a31a=_0x13315a,_0x50db0a=this;this[_0x27a31a('0xc')][_0x27a31a('0x14')](function(){const _0x49a279=_0x27a31a;return _0x50db0a[_0x49a279('0xd')][_0x49a279('0x2c')](_0xe29acd,_0x181e7d,{'indexName':_0x268a8d})[_0x49a279('0x31')](function(){const _0x322cf3=_0x49a279;logger['info']('addIndex\x20%s\x20%s\x20%s',_0xe29acd,_0x181e7d[_0x322cf3('0x2f')](','),_0x268a8d);})[_0x49a279('0xa')](function(_0x37e8a4){const _0x18908f=_0x49a279;logger[_0x18908f('0x1f')](JSON[_0x18908f('0x4')](_0x37e8a4));});});},Migration['prototype']['query']=function(_0x4a5414){const _0x2f5d57=_0x13315a,_0x18ca38=this;this[_0x2f5d57('0xc')][_0x2f5d57('0x14')](function(){const _0x43c826=_0x2f5d57;return _0x18ca38[_0x43c826('0xd')][_0x43c826('0x11')][_0x43c826('0xe')](_0x4a5414)[_0x43c826('0x31')](function(){const _0x341f57=_0x43c826;logger[_0x341f57('0x1f')](_0x341f57('0x24'),_0x4a5414);})[_0x43c826('0xa')](function(_0x2787b0){const _0x2da9a5=_0x43c826;logger[_0x2da9a5('0x1f')](JSON[_0x2da9a5('0x4')](_0x2787b0));});});},Migration['prototype']['removeColumn']=function(_0x44867d,_0x466489){const _0x223310=_0x13315a,_0x2b7a07=this;this[_0x223310('0xc')][_0x223310('0x14')](function(){const _0x349250=_0x223310;return _0x2b7a07[_0x349250('0xd')][_0x349250('0x18')](_0x44867d,_0x466489)[_0x349250('0x31')](function(){const _0x280a7f=_0x349250;logger[_0x280a7f('0x1f')](_0x280a7f('0x9'),_0x466489,_0x44867d);})[_0x349250('0xa')](function(_0x36708c){const _0x458cb1=_0x349250;logger[_0x458cb1('0x1f')](util['inspect'](_0x36708c,{'showHidden':![],'depth':null}));});});},Migration[_0x13315a('0x16')]['final']=function(_0x4d69c9){const _0x49e843=_0x13315a;this[_0x49e843('0xc')][_0x49e843('0x14')](function(){return _0x4d69c9();});},module['exports']={'up':function(_0x565adc,_0x4680c8){return new Promise(function(_0x2251a5){const _0x385a33=a931_0x9530,_0x1a9e0a=new Migration(_0x565adc);_0x1a9e0a['addColumn'](_0x385a33('0x37'),'callRecordingEncryption',{'type':_0x4680c8[_0x385a33('0x21')],'defaultValue':![]}),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x37'),_0x385a33('0x30'),{'type':_0x4680c8[_0x385a33('0x23')](0xb),'defaultValue':0x5a}),_0x1a9e0a[_0x385a33('0xe')](_0x385a33('0x35')),_0x1a9e0a['addColumn'](_0x385a33('0x29'),'MailAccountId',{'type':_0x4680c8[_0x385a33('0x23')]}),_0x1a9e0a[_0x385a33('0x15')]('tools_canned_answers',_0x385a33('0xb'),{'type':_0x4680c8[_0x385a33('0x23')]}),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x29'),_0x385a33('0x22'),{'type':_0x4680c8['INTEGER']}),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x29'),_0x385a33('0x25'),{'type':_0x4680c8[_0x385a33('0x23')]}),_0x1a9e0a[_0x385a33('0x15')]('tools_canned_answers',_0x385a33('0x6'),{'type':_0x4680c8[_0x385a33('0x23')]}),_0x1a9e0a[_0x385a33('0xe')](_0x385a33('0x3')),_0x1a9e0a['query'](_0x385a33('0x1a')),_0x1a9e0a[_0x385a33('0xe')](_0x385a33('0xf')),_0x1a9e0a[_0x385a33('0xe')](_0x385a33('0x1e')),_0x1a9e0a[_0x385a33('0xe')](_0x385a33('0x2d')),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x2a'),_0x385a33('0x1c'),{'type':_0x4680c8['DATE'],'defaultValue':null}),_0x1a9e0a[_0x385a33('0xe')](_0x385a33('0x26')),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x7'),_0x385a33('0x12'),{'type':_0x4680c8[_0x385a33('0x23')]}),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x7'),_0x385a33('0x13'),{'type':_0x4680c8[_0x385a33('0x23')]}),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x7'),_0x385a33('0x5'),{'type':_0x4680c8['INTEGER']}),_0x1a9e0a[_0x385a33('0x2b')](_0x385a33('0x10'),'type',{'type':_0x4680c8[_0x385a33('0x28')]('twilio','skebby',_0x385a33('0x8'),_0x385a33('0x34'))}),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x2'),'background',{'type':_0x4680c8[_0x385a33('0x2e')],'allowNull':![],'defaultValue':_0x385a33('0x1d'),'validate':{'notEmpty':!![]}}),_0x1a9e0a['addColumn']('dashboard_items',_0x385a33('0x1'),{'type':_0x4680c8[_0x385a33('0x2e')],'allowNull':![],'defaultValue':_0x385a33('0x27'),'validate':{'notEmpty':!![]}}),_0x1a9e0a[_0x385a33('0x15')](_0x385a33('0x2'),_0x385a33('0x36'),{'type':_0x4680c8['STRING']}),_0x1a9e0a[_0x385a33('0x32')](_0x2251a5);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.53.js b/server/migrations/2.0.53.js index cf0a10a..d11788d 100644 --- a/server/migrations/2.0.53.js +++ b/server/migrations/2.0.53.js @@ -1 +1 @@ -const a932_0x2449=['csv','tail','util','Changed\x20column\x20%s\x20in\x20table\x20%s','description','queryInterface','connectel','migration','xls','query\x20%s','exports','clicksend','addIndex\x20%s\x20%s\x20%s','pdf','Added\x20column\x20%s\x20to\x20%s','finally','final','enqueue','xlsx','cm_contacts','ENUM','analytics_extracted_reports','removeColumn','prototype','output','sequelize','../config/logger','inspect','query','stringify','addIndex','UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','twilio','sequence','catch','then','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','plivo','info','addColumn','changeColumn'];(function(_0x5d0e75,_0x2449c6){const _0x398097=function(_0x5b0ab6){while(--_0x5b0ab6){_0x5d0e75['push'](_0x5d0e75['shift']());}};_0x398097(++_0x2449c6);}(a932_0x2449,0xdb));const a932_0x3980=function(_0x5d0e75,_0x2449c6){_0x5d0e75=_0x5d0e75-0x0;let _0x398097=a932_0x2449[_0x5d0e75];return _0x398097;};const _0x321ec3=a932_0x3980;'use strict';const util=require(_0x321ec3('0x1d')),logger=require(_0x321ec3('0xc'))(_0x321ec3('0x22')),Sequence=function(){};Sequence[_0x321ec3('0x9')][_0x321ec3('0x3')]=function(_0x5b0ab6){const _0x309173=_0x321ec3;this['tail']=this[_0x309173('0x1c')]?this['tail'][_0x309173('0x1')](_0x5b0ab6):_0x5b0ab6();};const Migration=function(_0x1bcd29){const _0x32d7a6=_0x321ec3;this['queryInterface']=_0x1bcd29,this[_0x32d7a6('0x13')]=new Sequence();};Migration[_0x321ec3('0x9')][_0x321ec3('0x1a')]=function(_0x4a58e5,_0x5a9154,_0x38de05){const _0x197549=_0x321ec3,_0x8e6a80=this;this[_0x197549('0x13')][_0x197549('0x3')](function(){const _0x2e5386=_0x197549;return _0x8e6a80[_0x2e5386('0x20')][_0x2e5386('0x1a')](_0x4a58e5,_0x5a9154,_0x38de05)['then'](function(){const _0x322f96=_0x2e5386;logger[_0x322f96('0x18')](_0x322f96('0x1e'),_0x5a9154,_0x4a58e5);})['catch'](function(_0x2b3d63){const _0x3d965f=_0x2e5386;logger[_0x3d965f('0x18')](JSON[_0x3d965f('0xf')](_0x2b3d63));});});},Migration[_0x321ec3('0x9')]['addColumn']=function(_0x5ea778,_0x1812a0,_0x2b0b23){const _0x2c6253=_0x321ec3,_0x5b6495=this;this[_0x2c6253('0x13')][_0x2c6253('0x3')](function(){const _0xcfc9b=_0x2c6253;return _0x5b6495[_0xcfc9b('0x20')][_0xcfc9b('0x19')](_0x5ea778,_0x1812a0,_0x2b0b23)[_0xcfc9b('0x15')](function(){const _0x5962bd=_0xcfc9b;logger[_0x5962bd('0x18')](_0x5962bd('0x0'),_0x1812a0,_0x5ea778);})[_0xcfc9b('0x14')](function(_0x3da1b8){const _0x3b7642=_0xcfc9b;logger[_0x3b7642('0x18')](JSON[_0x3b7642('0xf')](_0x3da1b8));});});},Migration[_0x321ec3('0x9')]['dropTable']=function(_0x40e5e8){const _0x58723d=_0x321ec3,_0x26c280=this;this['sequence'][_0x58723d('0x3')](function(){const _0x455662=_0x58723d;return _0x26c280[_0x455662('0x20')]['dropTable'](_0x40e5e8,{'force':!![]})['then'](function(){const _0x301111=_0x455662;logger[_0x301111('0x18')]('table\x20dropped\x20%s',_0x40e5e8);})[_0x455662('0x14')](function(_0x4db22){const _0x14b5d1=_0x455662;logger[_0x14b5d1('0x18')](JSON[_0x14b5d1('0xf')](_0x4db22));});});},Migration[_0x321ec3('0x9')][_0x321ec3('0x10')]=function(_0x50f61d,_0xc27eb6,_0x41ea47){const _0x33f468=_0x321ec3,_0xe0be4b=this;this[_0x33f468('0x13')][_0x33f468('0x3')](function(){const _0x2ac2f3=_0x33f468;return _0xe0be4b['queryInterface'][_0x2ac2f3('0x10')](_0x50f61d,_0xc27eb6,{'indexName':_0x41ea47})[_0x2ac2f3('0x15')](function(){const _0x2bea49=_0x2ac2f3;logger[_0x2bea49('0x18')](_0x2bea49('0x27'),_0x50f61d,_0xc27eb6['join'](','),_0x41ea47);})['catch'](function(_0x5803be){const _0x50cc93=_0x2ac2f3;logger[_0x50cc93('0x18')](JSON['stringify'](_0x5803be));});});},Migration['prototype']['query']=function(_0x532c28){const _0x3ac4c4=_0x321ec3,_0x17a8d9=this;this[_0x3ac4c4('0x13')][_0x3ac4c4('0x3')](function(){const _0x2a2713=_0x3ac4c4;return _0x17a8d9[_0x2a2713('0x20')][_0x2a2713('0xb')][_0x2a2713('0xe')](_0x532c28)[_0x2a2713('0x15')](function(){const _0x16893a=_0x2a2713;logger['info'](_0x16893a('0x24'),_0x532c28);})[_0x2a2713('0x14')](function(_0x4fc05c){const _0x3d7fb7=_0x2a2713;logger[_0x3d7fb7('0x18')](JSON[_0x3d7fb7('0xf')](_0x4fc05c));});});},Migration[_0x321ec3('0x9')][_0x321ec3('0x8')]=function(_0x139e8e,_0x55ba11){const _0x24c0a9=_0x321ec3,_0x1798da=this;this[_0x24c0a9('0x13')][_0x24c0a9('0x3')](function(){const _0x320a05=_0x24c0a9;return _0x1798da[_0x320a05('0x20')][_0x320a05('0x8')](_0x139e8e,_0x55ba11)[_0x320a05('0x15')](function(){const _0x2b3b8b=_0x320a05;logger[_0x2b3b8b('0x18')]('Removed\x20column\x20%s\x20from\x20%s',_0x55ba11,_0x139e8e);})[_0x320a05('0x14')](function(_0x4979f2){const _0x5b521a=_0x320a05;logger[_0x5b521a('0x18')](util[_0x5b521a('0xd')](_0x4979f2,{'showHidden':![],'depth':null}));});});},Migration[_0x321ec3('0x9')][_0x321ec3('0x2')]=function(_0x481e85){const _0x4f5a6c=_0x321ec3;this[_0x4f5a6c('0x13')][_0x4f5a6c('0x3')](function(){return _0x481e85();});},module[_0x321ec3('0x25')]={'up':function(_0xae7362,_0x264751){return new Promise(function(_0x319074){const _0x42ad9e=a932_0x3980,_0x531996=new Migration(_0xae7362);_0x531996[_0x42ad9e('0x1a')](_0x42ad9e('0x5'),_0x42ad9e('0x1f'),{'type':_0x264751['TEXT']}),_0x531996[_0x42ad9e('0x1a')]('sms_accounts','type',{'type':_0x264751[_0x42ad9e('0x6')](_0x42ad9e('0x12'),'skebby',_0x42ad9e('0x21'),_0x42ad9e('0x26'),_0x42ad9e('0x17'))}),_0x531996[_0x42ad9e('0x1a')](_0x42ad9e('0x7'),_0x42ad9e('0xa'),{'type':_0x264751[_0x42ad9e('0x6')](_0x42ad9e('0x1b'),'pdf',_0x42ad9e('0x23'),_0x42ad9e('0x4')),'allowNull':![],'defaultValue':_0x42ad9e('0x1b')}),_0x531996[_0x42ad9e('0xe')](_0x42ad9e('0x11')),_0x531996[_0x42ad9e('0x1a')](_0x42ad9e('0x7'),'output',{'type':_0x264751['ENUM'](_0x42ad9e('0x1b'),_0x42ad9e('0x28'),_0x42ad9e('0x4')),'allowNull':![],'defaultValue':'csv'}),_0x531996[_0x42ad9e('0xe')](_0x42ad9e('0x16')),_0x531996[_0x42ad9e('0x1a')]('users','insecure',{'type':_0x264751['STRING'],'allowNull':!![]}),_0x531996[_0x42ad9e('0x2')](_0x319074);});},'down':function(){}}; \ No newline at end of file +const a932_0x5366=['dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','clicksend','STRING','output','TEXT','twilio','addIndex','query','removeColumn','then','csv','../config/logger','users','skebby','final','sequelize','analytics_extracted_reports','catch','query\x20%s','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','ENUM','changeColumn','tail','inspect','sms_accounts','xlsx','info','sequence','join','plivo','addColumn','util','stringify','addIndex\x20%s\x20%s\x20%s','cm_contacts','table\x20dropped\x20%s','pdf','prototype','Removed\x20column\x20%s\x20from\x20%s','enqueue','queryInterface'];(function(_0x5d744b,_0x53663e){const _0x519d2e=function(_0x42466e){while(--_0x42466e){_0x5d744b['push'](_0x5d744b['shift']());}};_0x519d2e(++_0x53663e);}(a932_0x5366,0x10b));const a932_0x519d=function(_0x5d744b,_0x53663e){_0x5d744b=_0x5d744b-0x0;let _0x519d2e=a932_0x5366[_0x5d744b];return _0x519d2e;};const _0x496c79=a932_0x519d;'use strict';const util=require(_0x496c79('0x18')),logger=require(_0x496c79('0x4'))('migration'),Sequence=function(){};Sequence['prototype'][_0x496c79('0x20')]=function(_0x42466e){const _0x552b73=_0x496c79;this[_0x552b73('0xf')]=this[_0x552b73('0xf')]?this[_0x552b73('0xf')][_0x552b73('0x24')](_0x42466e):_0x42466e();};const Migration=function(_0x1a28ac){const _0x536d74=_0x496c79;this[_0x536d74('0x21')]=_0x1a28ac,this['sequence']=new Sequence();};Migration[_0x496c79('0x1e')][_0x496c79('0xe')]=function(_0x37028d,_0x116c79,_0x13c5eb){const _0x393136=_0x496c79,_0x1c5c20=this;this[_0x393136('0x14')][_0x393136('0x20')](function(){const _0x10165f=_0x393136;return _0x1c5c20[_0x10165f('0x21')][_0x10165f('0xe')](_0x37028d,_0x116c79,_0x13c5eb)[_0x10165f('0x2')](function(){const _0x348a1c=_0x10165f;logger[_0x348a1c('0x13')](_0x348a1c('0x23'),_0x116c79,_0x37028d);})['catch'](function(_0x2af26d){const _0xdc6ac2=_0x10165f;logger[_0xdc6ac2('0x13')](JSON[_0xdc6ac2('0x19')](_0x2af26d));});});},Migration[_0x496c79('0x1e')][_0x496c79('0x17')]=function(_0x396244,_0x2f5339,_0x2315f7){const _0x490a18=_0x496c79,_0x425332=this;this[_0x490a18('0x14')][_0x490a18('0x20')](function(){const _0x11194b=_0x490a18;return _0x425332['queryInterface'][_0x11194b('0x17')](_0x396244,_0x2f5339,_0x2315f7)[_0x11194b('0x2')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2f5339,_0x396244);})[_0x11194b('0xa')](function(_0x307b09){const _0x20eb24=_0x11194b;logger['info'](JSON[_0x20eb24('0x19')](_0x307b09));});});},Migration['prototype']['dropTable']=function(_0x51362c){const _0x430784=_0x496c79,_0x244b0c=this;this[_0x430784('0x14')][_0x430784('0x20')](function(){const _0x26495f=_0x430784;return _0x244b0c[_0x26495f('0x21')][_0x26495f('0x22')](_0x51362c,{'force':!![]})[_0x26495f('0x2')](function(){const _0x595a8e=_0x26495f;logger[_0x595a8e('0x13')](_0x595a8e('0x1c'),_0x51362c);})[_0x26495f('0xa')](function(_0x153efc){const _0x12a226=_0x26495f;logger[_0x12a226('0x13')](JSON[_0x12a226('0x19')](_0x153efc));});});},Migration[_0x496c79('0x1e')][_0x496c79('0x2a')]=function(_0xba8591,_0x460673,_0x1bf654){const _0x40b341=_0x496c79,_0x2a844a=this;this['sequence'][_0x40b341('0x20')](function(){const _0x1187fd=_0x40b341;return _0x2a844a[_0x1187fd('0x21')][_0x1187fd('0x2a')](_0xba8591,_0x460673,{'indexName':_0x1bf654})['then'](function(){const _0x544080=_0x1187fd;logger[_0x544080('0x13')](_0x544080('0x1a'),_0xba8591,_0x460673[_0x544080('0x15')](','),_0x1bf654);})[_0x1187fd('0xa')](function(_0xebc616){logger['info'](JSON['stringify'](_0xebc616));});});},Migration[_0x496c79('0x1e')][_0x496c79('0x0')]=function(_0x29cc82){const _0x42ac1c=_0x496c79,_0x564f75=this;this[_0x42ac1c('0x14')]['enqueue'](function(){const _0x4f3d5a=_0x42ac1c;return _0x564f75[_0x4f3d5a('0x21')][_0x4f3d5a('0x8')][_0x4f3d5a('0x0')](_0x29cc82)['then'](function(){const _0x14f024=_0x4f3d5a;logger[_0x14f024('0x13')](_0x14f024('0xb'),_0x29cc82);})[_0x4f3d5a('0xa')](function(_0x58a047){const _0x3debba=_0x4f3d5a;logger[_0x3debba('0x13')](JSON[_0x3debba('0x19')](_0x58a047));});});},Migration[_0x496c79('0x1e')][_0x496c79('0x1')]=function(_0x3b6228,_0x395aa7){const _0x5d0370=_0x496c79,_0x383b34=this;this['sequence'][_0x5d0370('0x20')](function(){const _0x4bb01e=_0x5d0370;return _0x383b34[_0x4bb01e('0x21')]['removeColumn'](_0x3b6228,_0x395aa7)['then'](function(){const _0xc9b900=_0x4bb01e;logger[_0xc9b900('0x13')](_0xc9b900('0x1f'),_0x395aa7,_0x3b6228);})[_0x4bb01e('0xa')](function(_0x5a89c1){const _0x53a03f=_0x4bb01e;logger[_0x53a03f('0x13')](util[_0x53a03f('0x10')](_0x5a89c1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x496c79('0x7')]=function(_0x19e763){this['sequence']['enqueue'](function(){return _0x19e763();});},module['exports']={'up':function(_0x4e50bf,_0x5c98ad){return new Promise(function(_0x4daf50){const _0x1ff2e3=a932_0x519d,_0x1de245=new Migration(_0x4e50bf);_0x1de245[_0x1ff2e3('0xe')](_0x1ff2e3('0x1b'),'description',{'type':_0x5c98ad[_0x1ff2e3('0x28')]}),_0x1de245[_0x1ff2e3('0xe')](_0x1ff2e3('0x11'),'type',{'type':_0x5c98ad['ENUM'](_0x1ff2e3('0x29'),_0x1ff2e3('0x6'),'connectel',_0x1ff2e3('0x25'),_0x1ff2e3('0x16'))}),_0x1de245['changeColumn'](_0x1ff2e3('0x9'),_0x1ff2e3('0x27'),{'type':_0x5c98ad[_0x1ff2e3('0xd')](_0x1ff2e3('0x3'),_0x1ff2e3('0x1d'),'xls',_0x1ff2e3('0x12')),'allowNull':![],'defaultValue':_0x1ff2e3('0x3')}),_0x1de245[_0x1ff2e3('0x0')]('UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'),_0x1de245['changeColumn']('analytics_extracted_reports',_0x1ff2e3('0x27'),{'type':_0x5c98ad[_0x1ff2e3('0xd')](_0x1ff2e3('0x3'),_0x1ff2e3('0x1d'),_0x1ff2e3('0x12')),'allowNull':![],'defaultValue':_0x1ff2e3('0x3')}),_0x1de245[_0x1ff2e3('0x0')](_0x1ff2e3('0xc')),_0x1de245['changeColumn'](_0x1ff2e3('0x5'),'insecure',{'type':_0x5c98ad[_0x1ff2e3('0x26')],'allowNull':!![]}),_0x1de245[_0x1ff2e3('0x7')](_0x4daf50);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.54.js b/server/migrations/2.0.54.js index a8d98af..cf8a229 100644 --- a/server/migrations/2.0.54.js +++ b/server/migrations/2.0.54.js @@ -1 +1 @@ -const a933_0x4a81=['../config/logger','tail','template','sequence','STRING','then','removeColumn','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','query','table\x20dropped\x20%s','enqueue','query\x20%s','addColumn','addIndex','dropTable','csv','mail_accounts','util','fontFamily','markAsUnread','BOOLEAN','final','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','queryInterface','renameColumn','INTEGER','textColor','ENUM','sequelize','catch','inspect','timezone','chat_websites','info','fontSize','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','prototype','changeColumn','stringify','exports','Removed\x20column\x20%s\x20from\x20%s','tools_schedules','signature','join','Changed\x20column\x20%s\x20in\x20table\x20%s','output','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','pdf','migration'];(function(_0x9e06f4,_0x4a81b9){const _0x191822=function(_0x7a3f4b){while(--_0x7a3f4b){_0x9e06f4['push'](_0x9e06f4['shift']());}};_0x191822(++_0x4a81b9);}(a933_0x4a81,0x191));const a933_0x1918=function(_0x9e06f4,_0x4a81b9){_0x9e06f4=_0x9e06f4-0x0;let _0x191822=a933_0x4a81[_0x9e06f4];return _0x191822;};const _0x1d2c1f=a933_0x1918;'use strict';const util=require(_0x1d2c1f('0x18')),logger=require(_0x1d2c1f('0x7'))(_0x1d2c1f('0x6')),Sequence=function(){};Sequence[_0x1d2c1f('0x2d')][_0x1d2c1f('0x11')]=function(_0x7a3f4b){const _0x5bc897=_0x1d2c1f;this['tail']=this[_0x5bc897('0x8')]?this[_0x5bc897('0x8')][_0x5bc897('0x2a')](_0x7a3f4b):_0x7a3f4b();};const Migration=function(_0x1d9791){const _0x1d1edd=_0x1d2c1f;this[_0x1d1edd('0x1e')]=_0x1d9791,this[_0x1d1edd('0xa')]=new Sequence();};Migration[_0x1d2c1f('0x2d')][_0x1d2c1f('0x2e')]=function(_0x35ae15,_0x56980a,_0x76fa00){const _0x558f5b=_0x1d2c1f,_0x5ecc31=this;this[_0x558f5b('0xa')][_0x558f5b('0x11')](function(){const _0x4bff31=_0x558f5b;return _0x5ecc31[_0x4bff31('0x1e')][_0x4bff31('0x2e')](_0x35ae15,_0x56980a,_0x76fa00)[_0x4bff31('0xc')](function(){const _0x5a8d93=_0x4bff31;logger[_0x5a8d93('0x28')](_0x5a8d93('0x2'),_0x56980a,_0x35ae15);})[_0x4bff31('0x24')](function(_0x49b629){const _0x3cfcf3=_0x4bff31;logger['info'](JSON[_0x3cfcf3('0x2f')](_0x49b629));});});},Migration[_0x1d2c1f('0x2d')][_0x1d2c1f('0x13')]=function(_0x11de7d,_0x5598b0,_0xa79392){const _0x1efa8f=_0x1d2c1f,_0x233a2a=this;this[_0x1efa8f('0xa')][_0x1efa8f('0x11')](function(){const _0xf1e98a=_0x1efa8f;return _0x233a2a[_0xf1e98a('0x1e')]['addColumn'](_0x11de7d,_0x5598b0,_0xa79392)[_0xf1e98a('0xc')](function(){const _0x47adf1=_0xf1e98a;logger[_0x47adf1('0x28')]('Added\x20column\x20%s\x20to\x20%s',_0x5598b0,_0x11de7d);})[_0xf1e98a('0x24')](function(_0x16be16){const _0x2abbca=_0xf1e98a;logger[_0x2abbca('0x28')](JSON[_0x2abbca('0x2f')](_0x16be16));});});},Migration[_0x1d2c1f('0x2d')][_0x1d2c1f('0x15')]=function(_0x12307e){const _0x18c3ae=_0x1d2c1f,_0xf9d07f=this;this[_0x18c3ae('0xa')][_0x18c3ae('0x11')](function(){const _0x5b3f5a=_0x18c3ae;return _0xf9d07f['queryInterface']['dropTable'](_0x12307e,{'force':!![]})[_0x5b3f5a('0xc')](function(){const _0x2baeef=_0x5b3f5a;logger[_0x2baeef('0x28')](_0x2baeef('0x10'),_0x12307e);})[_0x5b3f5a('0x24')](function(_0x2c82ba){const _0x477160=_0x5b3f5a;logger[_0x477160('0x28')](JSON[_0x477160('0x2f')](_0x2c82ba));});});},Migration[_0x1d2c1f('0x2d')][_0x1d2c1f('0x14')]=function(_0x3e4181,_0x5b094b,_0x2399ce){const _0x44c663=_0x1d2c1f,_0x43e8db=this;this[_0x44c663('0xa')]['enqueue'](function(){const _0x150b63=_0x44c663;return _0x43e8db['queryInterface'][_0x150b63('0x14')](_0x3e4181,_0x5b094b,{'indexName':_0x2399ce})[_0x150b63('0xc')](function(){const _0xf71115=_0x150b63;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x3e4181,_0x5b094b[_0xf71115('0x1')](','),_0x2399ce);})['catch'](function(_0x3720ba){const _0x54c62c=_0x150b63;logger[_0x54c62c('0x28')](JSON[_0x54c62c('0x2f')](_0x3720ba));});});},Migration[_0x1d2c1f('0x2d')][_0x1d2c1f('0xf')]=function(_0x5e5e48){const _0xaf2ae5=_0x1d2c1f,_0x5c7fd3=this;this[_0xaf2ae5('0xa')][_0xaf2ae5('0x11')](function(){const _0x55bf51=_0xaf2ae5;return _0x5c7fd3['queryInterface'][_0x55bf51('0x23')][_0x55bf51('0xf')](_0x5e5e48)[_0x55bf51('0xc')](function(){const _0x526c70=_0x55bf51;logger[_0x526c70('0x28')](_0x526c70('0x12'),_0x5e5e48);})[_0x55bf51('0x24')](function(_0x5d7758){const _0x4b8231=_0x55bf51;logger[_0x4b8231('0x28')](JSON[_0x4b8231('0x2f')](_0x5d7758));});});},Migration[_0x1d2c1f('0x2d')]['removeColumn']=function(_0x577ab4,_0x3b7add){const _0x39b87d=_0x1d2c1f,_0x46707b=this;this[_0x39b87d('0xa')]['enqueue'](function(){const _0x37b199=_0x39b87d;return _0x46707b[_0x37b199('0x1e')][_0x37b199('0xd')](_0x577ab4,_0x3b7add)['then'](function(){const _0x456381=_0x37b199;logger[_0x456381('0x28')](_0x456381('0x31'),_0x3b7add,_0x577ab4);})[_0x37b199('0x24')](function(_0x4c6f7a){const _0x332fde=_0x37b199;logger[_0x332fde('0x28')](util[_0x332fde('0x25')](_0x4c6f7a,{'showHidden':![],'depth':null}));});});},Migration[_0x1d2c1f('0x2d')][_0x1d2c1f('0x1f')]=function(_0x3ec917,_0x2cf43d,_0x442c6d){const _0xbcddc3=_0x1d2c1f,_0x589c31=this;this[_0xbcddc3('0xa')]['enqueue'](function(){const _0x2b776d=_0xbcddc3;return _0x589c31[_0x2b776d('0x1e')][_0x2b776d('0x1f')](_0x3ec917,_0x2cf43d,_0x442c6d)['then'](function(){const _0x2e3505=_0x2b776d;logger[_0x2e3505('0x28')](_0x2e3505('0x2b'),_0x2cf43d,_0x442c6d,_0x3ec917);})[_0x2b776d('0x24')](function(_0x117316){const _0x353431=_0x2b776d;logger[_0x353431('0x28')](util[_0x353431('0x25')](_0x117316,{'showHidden':![],'depth':null}));});});},Migration[_0x1d2c1f('0x2d')]['final']=function(_0xb1d70){const _0x1250ee=_0x1d2c1f;this[_0x1250ee('0xa')][_0x1250ee('0x11')](function(){return _0xb1d70();});},module[_0x1d2c1f('0x30')]={'up':function(_0x2fb411,_0x9ec41e){return new Promise(function(_0x3b27ba){const _0x2ea7b0=a933_0x1918,_0x27b0f3=new Migration(_0x2fb411);_0x27b0f3[_0x2ea7b0('0x13')]('chat_websites',_0x2ea7b0('0x21'),{'type':_0x9ec41e[_0x2ea7b0('0xb')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}}),_0x27b0f3['addColumn']('chat_websites',_0x2ea7b0('0x29'),{'type':_0x9ec41e[_0x2ea7b0('0x20')],'defaultValue':0xf}),_0x27b0f3['addColumn'](_0x2ea7b0('0x27'),_0x2ea7b0('0x26'),{'type':_0x9ec41e[_0x2ea7b0('0xb')]}),_0x27b0f3[_0x2ea7b0('0xf')](_0x2ea7b0('0xe')),_0x27b0f3[_0x2ea7b0('0xf')](_0x2ea7b0('0x1d')),_0x27b0f3[_0x2ea7b0('0xf')](_0x2ea7b0('0x2c')),_0x27b0f3[_0x2ea7b0('0x2e')](_0x2ea7b0('0x32'),_0x2ea7b0('0x3'),{'type':_0x9ec41e[_0x2ea7b0('0x22')]('csv',_0x2ea7b0('0x5'),'xls','xlsx'),'allowNull':![],'defaultValue':_0x2ea7b0('0x16')}),_0x27b0f3[_0x2ea7b0('0xf')](_0x2ea7b0('0x4')),_0x27b0f3[_0x2ea7b0('0x2e')](_0x2ea7b0('0x32'),_0x2ea7b0('0x3'),{'type':_0x9ec41e[_0x2ea7b0('0x22')](_0x2ea7b0('0x16'),_0x2ea7b0('0x5'),'xlsx'),'allowNull':![],'defaultValue':_0x2ea7b0('0x16')}),_0x27b0f3[_0x2ea7b0('0x13')](_0x2ea7b0('0x17'),_0x2ea7b0('0x1a'),{'type':_0x9ec41e[_0x2ea7b0('0x1b')],'defaultValue':![]}),_0x27b0f3[_0x2ea7b0('0x13')]('mail_accounts',_0x2ea7b0('0x19'),{'type':_0x9ec41e[_0x2ea7b0('0xb')],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'}),_0x27b0f3['addColumn'](_0x2ea7b0('0x17'),_0x2ea7b0('0x29'),{'type':_0x9ec41e[_0x2ea7b0('0x20')](0x2)['UNSIGNED'],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x27b0f3[_0x2ea7b0('0x1f')](_0x2ea7b0('0x17'),_0x2ea7b0('0x0'),_0x2ea7b0('0x9')),_0x27b0f3[_0x2ea7b0('0x1c')](_0x3b27ba);});},'down':function(){}}; \ No newline at end of file +const a933_0x510b=['fontSize','signature','info','chat_websites','template','util','enqueue','stringify','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','query\x20%s','exports','STRING','catch','addIndex','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','addColumn','Removed\x20column\x20%s\x20from\x20%s','join','fontFamily','prototype','finally','migration','addIndex\x20%s\x20%s\x20%s','sequelize','dropTable','query','then','queryInterface','tools_schedules','inspect','Added\x20column\x20%s\x20to\x20%s','INTEGER','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','xlsx','ENUM','#ffffff','pdf','Arial,Helvetica,sans-serif','mail_accounts','sequence','timezone','csv','final','output','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','renameColumn','changeColumn'];(function(_0x53d935,_0x510b6a){const _0x5cee31=function(_0x50023e){while(--_0x50023e){_0x53d935['push'](_0x53d935['shift']());}};_0x5cee31(++_0x510b6a);}(a933_0x510b,0x8e));const a933_0x5cee=function(_0x53d935,_0x510b6a){_0x53d935=_0x53d935-0x0;let _0x5cee31=a933_0x510b[_0x53d935];return _0x5cee31;};const _0x37dbd6=a933_0x5cee;'use strict';const util=require(_0x37dbd6('0xd')),logger=require('../config/logger')(_0x37dbd6('0x1d')),Sequence=function(){};Sequence[_0x37dbd6('0x1b')][_0x37dbd6('0xe')]=function(_0x50023e){const _0x4e4391=_0x37dbd6;this[_0x4e4391('0x2')]=this[_0x4e4391('0x2')]?this[_0x4e4391('0x2')][_0x4e4391('0x1c')](_0x50023e):_0x50023e();};const Migration=function(_0x2f8c07){const _0x443c70=_0x37dbd6;this[_0x443c70('0x23')]=_0x2f8c07,this[_0x443c70('0x2f')]=new Sequence();};Migration[_0x37dbd6('0x1b')][_0x37dbd6('0x7')]=function(_0x5c7c3e,_0x4cf4f4,_0x4a2f28){const _0x2b5137=_0x37dbd6,_0x39d759=this;this[_0x2b5137('0x2f')][_0x2b5137('0xe')](function(){const _0x3e30d1=_0x2b5137;return _0x39d759[_0x3e30d1('0x23')]['changeColumn'](_0x5c7c3e,_0x4cf4f4,_0x4a2f28)['then'](function(){const _0x1ffefc=_0x3e30d1;logger[_0x1ffefc('0xa')](_0x1ffefc('0x4'),_0x4cf4f4,_0x5c7c3e);})[_0x3e30d1('0x14')](function(_0x1a02ce){const _0x511958=_0x3e30d1;logger[_0x511958('0xa')](JSON[_0x511958('0xf')](_0x1a02ce));});});},Migration[_0x37dbd6('0x1b')][_0x37dbd6('0x17')]=function(_0x1eea07,_0x1f09f5,_0xebb8eb){const _0x5256ba=_0x37dbd6,_0x3e1cea=this;this[_0x5256ba('0x2f')]['enqueue'](function(){const _0x3ecfc2=_0x5256ba;return _0x3e1cea['queryInterface'][_0x3ecfc2('0x17')](_0x1eea07,_0x1f09f5,_0xebb8eb)[_0x3ecfc2('0x22')](function(){const _0x2bf7e4=_0x3ecfc2;logger[_0x2bf7e4('0xa')](_0x2bf7e4('0x26'),_0x1f09f5,_0x1eea07);})[_0x3ecfc2('0x14')](function(_0x48e5ee){const _0xcc3532=_0x3ecfc2;logger[_0xcc3532('0xa')](JSON[_0xcc3532('0xf')](_0x48e5ee));});});},Migration[_0x37dbd6('0x1b')][_0x37dbd6('0x20')]=function(_0x33bc6a){const _0x1bf6ca=this;this['sequence']['enqueue'](function(){const _0x212a4=a933_0x5cee;return _0x1bf6ca[_0x212a4('0x23')]['dropTable'](_0x33bc6a,{'force':!![]})['then'](function(){const _0xd5b007=_0x212a4;logger[_0xd5b007('0xa')]('table\x20dropped\x20%s',_0x33bc6a);})['catch'](function(_0xd819e6){const _0x195f52=_0x212a4;logger[_0x195f52('0xa')](JSON[_0x195f52('0xf')](_0xd819e6));});});},Migration[_0x37dbd6('0x1b')][_0x37dbd6('0x15')]=function(_0x11c439,_0x1d326a,_0x3a40c0){const _0x86e9cc=_0x37dbd6,_0x45d4ac=this;this[_0x86e9cc('0x2f')][_0x86e9cc('0xe')](function(){const _0x137e7e=_0x86e9cc;return _0x45d4ac[_0x137e7e('0x23')]['addIndex'](_0x11c439,_0x1d326a,{'indexName':_0x3a40c0})[_0x137e7e('0x22')](function(){const _0x4c038c=_0x137e7e;logger[_0x4c038c('0xa')](_0x4c038c('0x1e'),_0x11c439,_0x1d326a[_0x4c038c('0x19')](','),_0x3a40c0);})['catch'](function(_0x53d286){const _0x4549e2=_0x137e7e;logger[_0x4549e2('0xa')](JSON[_0x4549e2('0xf')](_0x53d286));});});},Migration['prototype'][_0x37dbd6('0x21')]=function(_0x7effe3){const _0xc6ebb7=_0x37dbd6,_0x398ab7=this;this['sequence'][_0xc6ebb7('0xe')](function(){const _0x4c1179=_0xc6ebb7;return _0x398ab7[_0x4c1179('0x23')][_0x4c1179('0x1f')][_0x4c1179('0x21')](_0x7effe3)[_0x4c1179('0x22')](function(){const _0x338d18=_0x4c1179;logger[_0x338d18('0xa')](_0x338d18('0x11'),_0x7effe3);})[_0x4c1179('0x14')](function(_0x279b60){const _0x368b34=_0x4c1179;logger[_0x368b34('0xa')](JSON['stringify'](_0x279b60));});});},Migration['prototype'][_0x37dbd6('0x5')]=function(_0x125431,_0x1b0f0e){const _0x4881ca=this;this['sequence']['enqueue'](function(){const _0x301e88=a933_0x5cee;return _0x4881ca['queryInterface'][_0x301e88('0x5')](_0x125431,_0x1b0f0e)[_0x301e88('0x22')](function(){const _0x4818d8=_0x301e88;logger[_0x4818d8('0xa')](_0x4818d8('0x18'),_0x1b0f0e,_0x125431);})[_0x301e88('0x14')](function(_0x545aa3){const _0x19082b=_0x301e88;logger['info'](util[_0x19082b('0x25')](_0x545aa3,{'showHidden':![],'depth':null}));});});},Migration[_0x37dbd6('0x1b')][_0x37dbd6('0x6')]=function(_0x1e766f,_0x4e49ca,_0x248817){const _0x19193c=_0x37dbd6,_0x40c2ad=this;this[_0x19193c('0x2f')][_0x19193c('0xe')](function(){const _0x5bc2a0=_0x19193c;return _0x40c2ad[_0x5bc2a0('0x23')][_0x5bc2a0('0x6')](_0x1e766f,_0x4e49ca,_0x248817)[_0x5bc2a0('0x22')](function(){const _0x711768=_0x5bc2a0;logger['info'](_0x711768('0x3'),_0x4e49ca,_0x248817,_0x1e766f);})[_0x5bc2a0('0x14')](function(_0x378421){const _0x35e3a0=_0x5bc2a0;logger['info'](util[_0x35e3a0('0x25')](_0x378421,{'showHidden':![],'depth':null}));});});},Migration[_0x37dbd6('0x1b')][_0x37dbd6('0x0')]=function(_0xe0a7c4){const _0x2b0cc9=_0x37dbd6;this[_0x2b0cc9('0x2f')]['enqueue'](function(){return _0xe0a7c4();});},module[_0x37dbd6('0x12')]={'up':function(_0x3f359e,_0xd7ee6a){return new Promise(function(_0x1b1d92){const _0x39c7f2=a933_0x5cee,_0x52ecb2=new Migration(_0x3f359e);_0x52ecb2[_0x39c7f2('0x17')](_0x39c7f2('0xb'),'textColor',{'type':_0xd7ee6a[_0x39c7f2('0x13')],'allowNull':![],'defaultValue':_0x39c7f2('0x2b'),'validate':{'notEmpty':!![]}}),_0x52ecb2[_0x39c7f2('0x17')](_0x39c7f2('0xb'),'fontSize',{'type':_0xd7ee6a[_0x39c7f2('0x27')],'defaultValue':0xf}),_0x52ecb2[_0x39c7f2('0x17')](_0x39c7f2('0xb'),_0x39c7f2('0x30'),{'type':_0xd7ee6a['STRING']}),_0x52ecb2[_0x39c7f2('0x21')](_0x39c7f2('0x28')),_0x52ecb2[_0x39c7f2('0x21')](_0x39c7f2('0x10')),_0x52ecb2[_0x39c7f2('0x21')](_0x39c7f2('0x16')),_0x52ecb2[_0x39c7f2('0x7')](_0x39c7f2('0x24'),_0x39c7f2('0x1'),{'type':_0xd7ee6a[_0x39c7f2('0x2a')](_0x39c7f2('0x31'),_0x39c7f2('0x2c'),'xls',_0x39c7f2('0x29')),'allowNull':![],'defaultValue':_0x39c7f2('0x31')}),_0x52ecb2['query']('UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'),_0x52ecb2[_0x39c7f2('0x7')](_0x39c7f2('0x24'),_0x39c7f2('0x1'),{'type':_0xd7ee6a[_0x39c7f2('0x2a')](_0x39c7f2('0x31'),_0x39c7f2('0x2c'),_0x39c7f2('0x29')),'allowNull':![],'defaultValue':_0x39c7f2('0x31')}),_0x52ecb2[_0x39c7f2('0x17')]('mail_accounts','markAsUnread',{'type':_0xd7ee6a['BOOLEAN'],'defaultValue':![]}),_0x52ecb2[_0x39c7f2('0x17')](_0x39c7f2('0x2e'),_0x39c7f2('0x1a'),{'type':_0xd7ee6a[_0x39c7f2('0x13')],'allowNull':![],'defaultValue':_0x39c7f2('0x2d')}),_0x52ecb2[_0x39c7f2('0x17')]('mail_accounts',_0x39c7f2('0x8'),{'type':_0xd7ee6a[_0x39c7f2('0x27')](0x2)['UNSIGNED'],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x52ecb2[_0x39c7f2('0x6')](_0x39c7f2('0x2e'),_0x39c7f2('0x9'),_0x39c7f2('0xc')),_0x52ecb2[_0x39c7f2('0x0')](_0x1b1d92);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.55.js b/server/migrations/2.0.55.js index 61a326e..ed19b7a 100644 --- a/server/migrations/2.0.55.js +++ b/server/migrations/2.0.55.js @@ -1 +1 @@ -const a934_0x3c59=['addIndex\x20%s\x20%s\x20%s','join','removeColumn','../config/logger','authId','then','query','Removed\x20column\x20%s\x20from\x20%s','changeColumn','enqueue','queryInterface','exports','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','prototype','renameColumn','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','inspect','query\x20%s','addColumn','info','sms_accounts','INSERT\x20INTO\x20`mail_substatuses`\x20(`name`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27pending\x27,\x20\x27Pending\x20status\x20for\x20mail\x20interaction\x27,\x20NOW(),\x20NOW());','STRING','catch','util','final'];(function(_0x53393b,_0x3c591b){const _0x13f57a=function(_0x2748af){while(--_0x2748af){_0x53393b['push'](_0x53393b['shift']());}};_0x13f57a(++_0x3c591b);}(a934_0x3c59,0x182));const a934_0x13f5=function(_0x53393b,_0x3c591b){_0x53393b=_0x53393b-0x0;let _0x13f57a=a934_0x3c59[_0x53393b];return _0x13f57a;};const _0x9fb42d=a934_0x13f5;'use strict';const util=require(_0x9fb42d('0x1c')),logger=require(_0x9fb42d('0x1'))(_0x9fb42d('0x10')),Sequence=function(){};Sequence[_0x9fb42d('0xc')]['enqueue']=function(_0x2748af){const _0x968a64=_0x9fb42d;this[_0x968a64('0xe')]=this[_0x968a64('0xe')]?this['tail']['finally'](_0x2748af):_0x2748af();};const Migration=function(_0x2014da){const _0x469035=_0x9fb42d;this['queryInterface']=_0x2014da,this[_0x469035('0x11')]=new Sequence();};Migration[_0x9fb42d('0xc')][_0x9fb42d('0x6')]=function(_0x1450c4,_0x2efb34,_0x2ebee8){const _0x58e286=_0x9fb42d,_0x964fd3=this;this[_0x58e286('0x11')][_0x58e286('0x7')](function(){const _0x2debd4=_0x58e286;return _0x964fd3['queryInterface'][_0x2debd4('0x6')](_0x1450c4,_0x2efb34,_0x2ebee8)['then'](function(){const _0x1588f7=_0x2debd4;logger[_0x1588f7('0x17')](_0x1588f7('0x12'),_0x2efb34,_0x1450c4);})[_0x2debd4('0x1b')](function(_0x5b90f8){logger['info'](JSON['stringify'](_0x5b90f8));});});},Migration[_0x9fb42d('0xc')][_0x9fb42d('0x16')]=function(_0x8053d6,_0x173c8b,_0x53c9cb){const _0x15e84c=_0x9fb42d,_0x590ed3=this;this[_0x15e84c('0x11')][_0x15e84c('0x7')](function(){const _0x509f63=_0x15e84c;return _0x590ed3[_0x509f63('0x8')][_0x509f63('0x16')](_0x8053d6,_0x173c8b,_0x53c9cb)[_0x509f63('0x3')](function(){const _0x426ad4=_0x509f63;logger[_0x426ad4('0x17')](_0x426ad4('0xa'),_0x173c8b,_0x8053d6);})['catch'](function(_0x1b7da3){const _0x1a2900=_0x509f63;logger['info'](JSON[_0x1a2900('0x13')](_0x1b7da3));});});},Migration[_0x9fb42d('0xc')]['dropTable']=function(_0x1d9b50){const _0x3f216e=_0x9fb42d,_0x436b81=this;this[_0x3f216e('0x11')][_0x3f216e('0x7')](function(){const _0x5a2d18=_0x3f216e;return _0x436b81[_0x5a2d18('0x8')]['dropTable'](_0x1d9b50,{'force':!![]})[_0x5a2d18('0x3')](function(){const _0x55486f=_0x5a2d18;logger[_0x55486f('0x17')](_0x55486f('0xb'),_0x1d9b50);})[_0x5a2d18('0x1b')](function(_0xf1cc08){logger['info'](JSON['stringify'](_0xf1cc08));});});},Migration[_0x9fb42d('0xc')]['addIndex']=function(_0x1c98c4,_0x1a342c,_0x1e81c6){const _0x53d272=_0x9fb42d,_0x1bb659=this;this[_0x53d272('0x11')][_0x53d272('0x7')](function(){const _0x14600e=_0x53d272;return _0x1bb659[_0x14600e('0x8')]['addIndex'](_0x1c98c4,_0x1a342c,{'indexName':_0x1e81c6})[_0x14600e('0x3')](function(){const _0x31f9f9=_0x14600e;logger[_0x31f9f9('0x17')](_0x31f9f9('0x1e'),_0x1c98c4,_0x1a342c[_0x31f9f9('0x1f')](','),_0x1e81c6);})[_0x14600e('0x1b')](function(_0x269b50){const _0x3d7898=_0x14600e;logger[_0x3d7898('0x17')](JSON['stringify'](_0x269b50));});});},Migration[_0x9fb42d('0xc')][_0x9fb42d('0x4')]=function(_0x1d3d65){const _0x399d31=this;this['sequence']['enqueue'](function(){const _0x1414b5=a934_0x13f5;return _0x399d31[_0x1414b5('0x8')]['sequelize']['query'](_0x1d3d65)[_0x1414b5('0x3')](function(){const _0x1fe9af=_0x1414b5;logger[_0x1fe9af('0x17')](_0x1fe9af('0x15'),_0x1d3d65);})[_0x1414b5('0x1b')](function(_0x41064e){logger['info'](JSON['stringify'](_0x41064e));});});},Migration[_0x9fb42d('0xc')]['removeColumn']=function(_0x1724cb,_0x43fa4a){const _0xaa6207=_0x9fb42d,_0x3a43e4=this;this[_0xaa6207('0x11')][_0xaa6207('0x7')](function(){const _0x11bd80=_0xaa6207;return _0x3a43e4[_0x11bd80('0x8')][_0x11bd80('0x0')](_0x1724cb,_0x43fa4a)['then'](function(){const _0x65790f=_0x11bd80;logger[_0x65790f('0x17')](_0x65790f('0x5'),_0x43fa4a,_0x1724cb);})[_0x11bd80('0x1b')](function(_0x175de8){const _0x2b9340=_0x11bd80;logger['info'](util[_0x2b9340('0x14')](_0x175de8,{'showHidden':![],'depth':null}));});});},Migration[_0x9fb42d('0xc')][_0x9fb42d('0xd')]=function(_0x2068ee,_0x44f5b8,_0x24ad08){const _0x2e2416=_0x9fb42d,_0x16f474=this;this[_0x2e2416('0x11')]['enqueue'](function(){const _0x4fce94=_0x2e2416;return _0x16f474[_0x4fce94('0x8')][_0x4fce94('0xd')](_0x2068ee,_0x44f5b8,_0x24ad08)[_0x4fce94('0x3')](function(){const _0xcc8551=_0x4fce94;logger[_0xcc8551('0x17')](_0xcc8551('0xf'),_0x44f5b8,_0x24ad08,_0x2068ee);})[_0x4fce94('0x1b')](function(_0x35a979){const _0x592331=_0x4fce94;logger['info'](util[_0x592331('0x14')](_0x35a979,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x9fb42d('0x1d')]=function(_0x494f46){const _0x4973c2=_0x9fb42d;this[_0x4973c2('0x11')]['enqueue'](function(){return _0x494f46();});},module[_0x9fb42d('0x9')]={'up':function(_0x12efc1,_0x5be943){return new Promise(function(_0x39287a){const _0x27f456=a934_0x13f5,_0x27dd9f=new Migration(_0x12efc1);_0x27dd9f[_0x27f456('0x16')](_0x27f456('0x18'),_0x27f456('0x2'),{'type':_0x5be943[_0x27f456('0x1a')]}),_0x27dd9f[_0x27f456('0x4')]('CREATE\x20TABLE\x20`mail_substatuses`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x27dd9f[_0x27f456('0x4')](_0x27f456('0x19')),_0x27dd9f[_0x27f456('0x1d')](_0x39287a);});},'down':function(){}}; \ No newline at end of file +const a934_0x3c8a=['then','addIndex','query','addColumn','final','renameColumn','stringify','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','prototype','addIndex\x20%s\x20%s\x20%s','changeColumn','Removed\x20column\x20%s\x20from\x20%s','inspect','enqueue','CREATE\x20TABLE\x20`mail_substatuses`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','authId','sms_accounts','INSERT\x20INTO\x20`mail_substatuses`\x20(`name`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27pending\x27,\x20\x27Pending\x20status\x20for\x20mail\x20interaction\x27,\x20NOW(),\x20NOW());','dropTable','join','catch','query\x20%s','exports','sequelize','queryInterface','info','finally','sequence'];(function(_0x4c1a5a,_0x3c8a17){const _0x321182=function(_0x28bc7b){while(--_0x28bc7b){_0x4c1a5a['push'](_0x4c1a5a['shift']());}};_0x321182(++_0x3c8a17);}(a934_0x3c8a,0x116));const a934_0x3211=function(_0x4c1a5a,_0x3c8a17){_0x4c1a5a=_0x4c1a5a-0x0;let _0x321182=a934_0x3c8a[_0x4c1a5a];return _0x321182;};const _0x350c55=a934_0x3211;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x350c55('0x2')][_0x350c55('0x7')]=function(_0x28bc7b){const _0x3a7a94=_0x350c55;this['tail']=this['tail']?this['tail'][_0x3a7a94('0x14')](_0x28bc7b):_0x28bc7b();};const Migration=function(_0x1a2c79){const _0x4a37a1=_0x350c55;this[_0x4a37a1('0x12')]=_0x1a2c79,this['sequence']=new Sequence();};Migration['prototype'][_0x350c55('0x4')]=function(_0x449d83,_0x58f47b,_0x1d09ae){const _0x11bdee=_0x350c55,_0x372ee7=this;this['sequence'][_0x11bdee('0x7')](function(){const _0x38c62b=_0x11bdee;return _0x372ee7[_0x38c62b('0x12')][_0x38c62b('0x4')](_0x449d83,_0x58f47b,_0x1d09ae)[_0x38c62b('0x16')](function(){const _0x2ca1c8=_0x38c62b;logger[_0x2ca1c8('0x13')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x58f47b,_0x449d83);})['catch'](function(_0xc8ce62){const _0x10d065=_0x38c62b;logger['info'](JSON[_0x10d065('0x1c')](_0xc8ce62));});});},Migration[_0x350c55('0x2')][_0x350c55('0x19')]=function(_0x1cb22a,_0x21df69,_0x57c8ff){const _0x58e7bb=_0x350c55,_0x4cf486=this;this[_0x58e7bb('0x15')][_0x58e7bb('0x7')](function(){const _0x577082=_0x58e7bb;return _0x4cf486[_0x577082('0x12')]['addColumn'](_0x1cb22a,_0x21df69,_0x57c8ff)[_0x577082('0x16')](function(){const _0x3cf872=_0x577082;logger[_0x3cf872('0x13')]('Added\x20column\x20%s\x20to\x20%s',_0x21df69,_0x1cb22a);})[_0x577082('0xe')](function(_0x3e495f){const _0x34198c=_0x577082;logger[_0x34198c('0x13')](JSON['stringify'](_0x3e495f));});});},Migration[_0x350c55('0x2')][_0x350c55('0xc')]=function(_0x259efb){const _0x207301=_0x350c55,_0x15da3d=this;this[_0x207301('0x15')][_0x207301('0x7')](function(){const _0x408565=_0x207301;return _0x15da3d[_0x408565('0x12')][_0x408565('0xc')](_0x259efb,{'force':!![]})[_0x408565('0x16')](function(){const _0x422895=_0x408565;logger[_0x422895('0x13')](_0x422895('0x1d'),_0x259efb);})[_0x408565('0xe')](function(_0x1d4775){const _0x4c68fc=_0x408565;logger[_0x4c68fc('0x13')](JSON['stringify'](_0x1d4775));});});},Migration[_0x350c55('0x2')][_0x350c55('0x17')]=function(_0x1b30c4,_0x2cb7a7,_0x35311f){const _0xa18e28=_0x350c55,_0x27028c=this;this[_0xa18e28('0x15')][_0xa18e28('0x7')](function(){const _0x262163=_0xa18e28;return _0x27028c[_0x262163('0x12')]['addIndex'](_0x1b30c4,_0x2cb7a7,{'indexName':_0x35311f})[_0x262163('0x16')](function(){const _0x4155f8=_0x262163;logger[_0x4155f8('0x13')](_0x4155f8('0x3'),_0x1b30c4,_0x2cb7a7[_0x4155f8('0xd')](','),_0x35311f);})[_0x262163('0xe')](function(_0x3137d1){const _0x4dc086=_0x262163;logger[_0x4dc086('0x13')](JSON[_0x4dc086('0x1c')](_0x3137d1));});});},Migration['prototype'][_0x350c55('0x18')]=function(_0x218302){const _0x16f353=_0x350c55,_0x2c5b9b=this;this[_0x16f353('0x15')][_0x16f353('0x7')](function(){const _0x4efdbb=_0x16f353;return _0x2c5b9b[_0x4efdbb('0x12')][_0x4efdbb('0x11')][_0x4efdbb('0x18')](_0x218302)['then'](function(){const _0x6ad561=_0x4efdbb;logger[_0x6ad561('0x13')](_0x6ad561('0xf'),_0x218302);})[_0x4efdbb('0xe')](function(_0x17ee66){const _0x25389b=_0x4efdbb;logger[_0x25389b('0x13')](JSON[_0x25389b('0x1c')](_0x17ee66));});});},Migration['prototype'][_0x350c55('0x1')]=function(_0x440a1c,_0xddb5f6){const _0x18c1e6=_0x350c55,_0x1e82a8=this;this[_0x18c1e6('0x15')][_0x18c1e6('0x7')](function(){const _0x2610d5=_0x18c1e6;return _0x1e82a8[_0x2610d5('0x12')]['removeColumn'](_0x440a1c,_0xddb5f6)[_0x2610d5('0x16')](function(){const _0x28758e=_0x2610d5;logger['info'](_0x28758e('0x5'),_0xddb5f6,_0x440a1c);})[_0x2610d5('0xe')](function(_0x4d0a2e){const _0x1dd12e=_0x2610d5;logger[_0x1dd12e('0x13')](util[_0x1dd12e('0x6')](_0x4d0a2e,{'showHidden':![],'depth':null}));});});},Migration[_0x350c55('0x2')]['renameColumn']=function(_0x2c6df7,_0x1a5b2e,_0x277ed9){const _0x3bc823=_0x350c55,_0xc70cbc=this;this[_0x3bc823('0x15')]['enqueue'](function(){const _0x644266=_0x3bc823;return _0xc70cbc[_0x644266('0x12')][_0x644266('0x1b')](_0x2c6df7,_0x1a5b2e,_0x277ed9)[_0x644266('0x16')](function(){const _0x744272=_0x644266;logger['info'](_0x744272('0x0'),_0x1a5b2e,_0x277ed9,_0x2c6df7);})[_0x644266('0xe')](function(_0x1a8dfe){const _0x24777d=_0x644266;logger['info'](util[_0x24777d('0x6')](_0x1a8dfe,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x350c55('0x1a')]=function(_0x3c8b56){const _0x489fa8=_0x350c55;this[_0x489fa8('0x15')]['enqueue'](function(){return _0x3c8b56();});},module[_0x350c55('0x10')]={'up':function(_0xb91b05,_0x2d4a5a){return new Promise(function(_0x11e0d5){const _0x12a8da=a934_0x3211,_0x1246e9=new Migration(_0xb91b05);_0x1246e9[_0x12a8da('0x19')](_0x12a8da('0xa'),_0x12a8da('0x9'),{'type':_0x2d4a5a['STRING']}),_0x1246e9['query'](_0x12a8da('0x8')),_0x1246e9[_0x12a8da('0x18')](_0x12a8da('0xb')),_0x1246e9[_0x12a8da('0x1a')](_0x11e0d5);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.56.js b/server/migrations/2.0.56.js index 2bf45f6..3b9b620 100644 --- a/server/migrations/2.0.56.js +++ b/server/migrations/2.0.56.js @@ -1 +1 @@ -const a935_0x37d4=['info','UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','addIndex\x20%s\x20%s\x20%s','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','basename','wrandom','roundrobin','Changed\x20column\x20%s\x20in\x20table\x20%s','sms_accounts','catch','UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','mail_accounts','linear','removeColumn','dropTable','notificationShake','chat_websites','strategy','ENUM','UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','query\x20%s','finally','changeColumn','then','final','UPDATE\x20mail_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}\x27','Added\x20column\x20%s\x20to\x20%s','inspect','UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','enqueue','Removed\x20column\x20%s\x20from\x20%s','rrmemory','fax_accounts','sequelize','TEXT','renameColumn','query','prototype','exports','ringall','analytics_extracted_reports','tail','BOOLEAN','fewestcalls','addIndex','openchannel_accounts','stringify','join','migration','util','voice_queues','notificationTemplate','addColumn','notificationSound','table\x20dropped\x20%s','queryInterface'];(function(_0x5d1c92,_0x37d46f){const _0x2eb931=function(_0x3edabe){while(--_0x3edabe){_0x5d1c92['push'](_0x5d1c92['shift']());}};_0x2eb931(++_0x37d46f);}(a935_0x37d4,0xf5));const a935_0x2eb9=function(_0x5d1c92,_0x37d46f){_0x5d1c92=_0x5d1c92-0x0;let _0x2eb931=a935_0x37d4[_0x5d1c92];return _0x2eb931;};const _0xd10e1f=a935_0x2eb9;'use strict';const util=require(_0xd10e1f('0x21')),logger=require('../config/logger')(_0xd10e1f('0x20')),Sequence=function(){};Sequence[_0xd10e1f('0x15')][_0xd10e1f('0xd')]=function(_0x3edabe){const _0x1c140d=_0xd10e1f;this[_0x1c140d('0x19')]=this[_0x1c140d('0x19')]?this[_0x1c140d('0x19')][_0x1c140d('0x5')](_0x3edabe):_0x3edabe();};const Migration=function(_0x3df392){const _0xa308b1=_0xd10e1f;this['queryInterface']=_0x3df392,this[_0xa308b1('0x2b')]=new Sequence();};Migration[_0xd10e1f('0x15')]['changeColumn']=function(_0x1b3892,_0x13407b,_0x15b68d){const _0x196740=_0xd10e1f,_0x40cc76=this;this[_0x196740('0x2b')][_0x196740('0xd')](function(){const _0x2c0d84=_0x196740;return _0x40cc76[_0x2c0d84('0x27')][_0x2c0d84('0x6')](_0x1b3892,_0x13407b,_0x15b68d)[_0x2c0d84('0x7')](function(){const _0x5653dc=_0x2c0d84;logger[_0x5653dc('0x28')](_0x5653dc('0x30'),_0x13407b,_0x1b3892);})[_0x2c0d84('0x32')](function(_0x6f4fb0){const _0x18377d=_0x2c0d84;logger[_0x18377d('0x28')](JSON[_0x18377d('0x1e')](_0x6f4fb0));});});},Migration[_0xd10e1f('0x15')][_0xd10e1f('0x24')]=function(_0x4fa570,_0x48b18c,_0x2bcfab){const _0x4da5fb=_0xd10e1f,_0x20f4f8=this;this['sequence'][_0x4da5fb('0xd')](function(){const _0xb3cb89=_0x4da5fb;return _0x20f4f8[_0xb3cb89('0x27')]['addColumn'](_0x4fa570,_0x48b18c,_0x2bcfab)['then'](function(){const _0x3ae859=_0xb3cb89;logger[_0x3ae859('0x28')](_0x3ae859('0xa'),_0x48b18c,_0x4fa570);})['catch'](function(_0x141414){const _0x1bc2b2=_0xb3cb89;logger[_0x1bc2b2('0x28')](JSON[_0x1bc2b2('0x1e')](_0x141414));});});},Migration[_0xd10e1f('0x15')][_0xd10e1f('0x37')]=function(_0x4e9b7e){const _0x13f3ce=_0xd10e1f,_0x3a2dca=this;this[_0x13f3ce('0x2b')][_0x13f3ce('0xd')](function(){const _0x30e37f=_0x13f3ce;return _0x3a2dca[_0x30e37f('0x27')]['dropTable'](_0x4e9b7e,{'force':!![]})['then'](function(){const _0x21f6a9=_0x30e37f;logger[_0x21f6a9('0x28')](_0x21f6a9('0x26'),_0x4e9b7e);})[_0x30e37f('0x32')](function(_0x22ce7c){const _0x13406c=_0x30e37f;logger['info'](JSON[_0x13406c('0x1e')](_0x22ce7c));});});},Migration[_0xd10e1f('0x15')]['addIndex']=function(_0x4dcf4c,_0x182cc5,_0x1faf75){const _0x3276e9=_0xd10e1f,_0x3fc37c=this;this[_0x3276e9('0x2b')][_0x3276e9('0xd')](function(){const _0xf78753=_0x3276e9;return _0x3fc37c[_0xf78753('0x27')][_0xf78753('0x1c')](_0x4dcf4c,_0x182cc5,{'indexName':_0x1faf75})[_0xf78753('0x7')](function(){const _0x4a3ba7=_0xf78753;logger[_0x4a3ba7('0x28')](_0x4a3ba7('0x2a'),_0x4dcf4c,_0x182cc5[_0x4a3ba7('0x1f')](','),_0x1faf75);})['catch'](function(_0x5acd5f){const _0x35ce05=_0xf78753;logger['info'](JSON[_0x35ce05('0x1e')](_0x5acd5f));});});},Migration[_0xd10e1f('0x15')][_0xd10e1f('0x14')]=function(_0x12b5b7){const _0x260308=_0xd10e1f,_0x24a84a=this;this[_0x260308('0x2b')][_0x260308('0xd')](function(){const _0x546f2a=_0x260308;return _0x24a84a[_0x546f2a('0x27')][_0x546f2a('0x11')][_0x546f2a('0x14')](_0x12b5b7)['then'](function(){const _0x2b0a37=_0x546f2a;logger[_0x2b0a37('0x28')](_0x2b0a37('0x4'),_0x12b5b7);})[_0x546f2a('0x32')](function(_0x309f91){const _0x5c85ae=_0x546f2a;logger[_0x5c85ae('0x28')](JSON[_0x5c85ae('0x1e')](_0x309f91));});});},Migration[_0xd10e1f('0x15')][_0xd10e1f('0x36')]=function(_0x557050,_0x4addfd){const _0x4dcaad=_0xd10e1f,_0x6eed4f=this;this['sequence'][_0x4dcaad('0xd')](function(){const _0xbbe7d8=_0x4dcaad;return _0x6eed4f[_0xbbe7d8('0x27')][_0xbbe7d8('0x36')](_0x557050,_0x4addfd)[_0xbbe7d8('0x7')](function(){const _0x2d05be=_0xbbe7d8;logger['info'](_0x2d05be('0xe'),_0x4addfd,_0x557050);})[_0xbbe7d8('0x32')](function(_0x4b5b46){const _0x2bf669=_0xbbe7d8;logger['info'](util[_0x2bf669('0xb')](_0x4b5b46,{'showHidden':![],'depth':null}));});});},Migration[_0xd10e1f('0x15')][_0xd10e1f('0x13')]=function(_0x12368c,_0x3637ac,_0xe7e01a){const _0x124bfc=_0xd10e1f,_0x1db535=this;this[_0x124bfc('0x2b')][_0x124bfc('0xd')](function(){const _0x292c54=_0x124bfc;return _0x1db535[_0x292c54('0x27')][_0x292c54('0x13')](_0x12368c,_0x3637ac,_0xe7e01a)[_0x292c54('0x7')](function(){const _0x7e6745=_0x292c54;logger[_0x7e6745('0x28')](_0x7e6745('0x2c'),_0x3637ac,_0xe7e01a,_0x12368c);})['catch'](function(_0x44cd9a){const _0x9686f=_0x292c54;logger[_0x9686f('0x28')](util['inspect'](_0x44cd9a,{'showHidden':![],'depth':null}));});});},Migration[_0xd10e1f('0x15')][_0xd10e1f('0x8')]=function(_0x5cfc12){const _0x23243c=_0xd10e1f;this[_0x23243c('0x2b')][_0x23243c('0xd')](function(){return _0x5cfc12();});},module[_0xd10e1f('0x16')]={'up':function(_0x2ffb3a,_0x5beecb){return new Promise(function(_0x514c64){const _0x24948d=a935_0x2eb9,_0x265731=new Migration(_0x2ffb3a);_0x265731[_0x24948d('0x6')](_0x24948d('0x22'),_0x24948d('0x1'),{'type':_0x5beecb[_0x24948d('0x2')](_0x24948d('0x2f'),_0x24948d('0x17'),'leastrecent',_0x24948d('0x1b'),'random',_0x24948d('0xf'),_0x24948d('0x35'),_0x24948d('0x2e'),'rrordered'),'allowNull':![],'defaultValue':_0x24948d('0x17')}),_0x265731[_0x24948d('0x24')](_0x24948d('0x18'),_0x24948d('0x2d'),{'type':_0x5beecb['STRING'],'allowNull':![]}),_0x265731[_0x24948d('0x24')](_0x24948d('0x34'),_0x24948d('0x23'),{'type':_0x5beecb[_0x24948d('0x12')]}),_0x265731['addColumn'](_0x24948d('0x34'),'notificationSound',{'type':_0x5beecb[_0x24948d('0x1a')],'defaultValue':!![]}),_0x265731[_0x24948d('0x24')](_0x24948d('0x34'),_0x24948d('0x38'),{'type':_0x5beecb['BOOLEAN'],'defaultValue':![]}),_0x265731[_0x24948d('0x24')](_0x24948d('0x0'),_0x24948d('0x23'),{'type':_0x5beecb[_0x24948d('0x12')]}),_0x265731[_0x24948d('0x24')](_0x24948d('0x0'),'notificationSound',{'type':_0x5beecb['BOOLEAN'],'defaultValue':!![]}),_0x265731[_0x24948d('0x24')]('chat_websites','notificationShake',{'type':_0x5beecb[_0x24948d('0x1a')],'defaultValue':![]}),_0x265731[_0x24948d('0x24')](_0x24948d('0x10'),'notificationTemplate',{'type':_0x5beecb['TEXT']}),_0x265731[_0x24948d('0x24')]('fax_accounts',_0x24948d('0x25'),{'type':_0x5beecb[_0x24948d('0x1a')],'defaultValue':!![]}),_0x265731[_0x24948d('0x24')](_0x24948d('0x10'),'notificationShake',{'type':_0x5beecb[_0x24948d('0x1a')],'defaultValue':![]}),_0x265731[_0x24948d('0x24')](_0x24948d('0x31'),_0x24948d('0x23'),{'type':_0x5beecb[_0x24948d('0x12')]}),_0x265731[_0x24948d('0x24')](_0x24948d('0x31'),_0x24948d('0x25'),{'type':_0x5beecb[_0x24948d('0x1a')],'defaultValue':!![]}),_0x265731['addColumn']('sms_accounts','notificationShake',{'type':_0x5beecb[_0x24948d('0x1a')],'defaultValue':![]}),_0x265731[_0x24948d('0x24')]('openchannel_accounts',_0x24948d('0x23'),{'type':_0x5beecb['TEXT']}),_0x265731[_0x24948d('0x24')](_0x24948d('0x1d'),_0x24948d('0x25'),{'type':_0x5beecb[_0x24948d('0x1a')],'defaultValue':!![]}),_0x265731['addColumn'](_0x24948d('0x1d'),_0x24948d('0x38'),{'type':_0x5beecb[_0x24948d('0x1a')],'defaultValue':![]}),_0x265731[_0x24948d('0x14')](_0x24948d('0x29')),_0x265731[_0x24948d('0x14')](_0x24948d('0x9')),_0x265731[_0x24948d('0x14')](_0x24948d('0x3')),_0x265731[_0x24948d('0x14')](_0x24948d('0x33')),_0x265731['query'](_0x24948d('0xc')),_0x265731[_0x24948d('0x8')](_0x514c64);});},'down':function(){}}; \ No newline at end of file +const a935_0x1121=['linear','fewestcalls','inspect','BOOLEAN','UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','rrordered','mail_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','TEXT','addIndex','UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','sequelize','catch','query','wrandom','Changed\x20column\x20%s\x20in\x20table\x20%s','util','strategy','ENUM','query\x20%s','renameColumn','join','sequence','removeColumn','queryInterface','changeColumn','STRING','notificationTemplate','notificationShake','openchannel_accounts','roundrobin','enqueue','ringall','leastrecent','sms_accounts','notificationSound','then','chat_websites','migration','Added\x20column\x20%s\x20to\x20%s','addColumn','stringify','exports','fax_accounts','dropTable','UPDATE\x20mail_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}\x27','tail','info','voice_queues','addIndex\x20%s\x20%s\x20%s','prototype'];(function(_0x432b1f,_0x1121cd){const _0x4cf8a5=function(_0x4ba8d8){while(--_0x4ba8d8){_0x432b1f['push'](_0x432b1f['shift']());}};_0x4cf8a5(++_0x1121cd);}(a935_0x1121,0xf7));const a935_0x4cf8=function(_0x432b1f,_0x1121cd){_0x432b1f=_0x432b1f-0x0;let _0x4cf8a5=a935_0x1121[_0x432b1f];return _0x4cf8a5;};const _0x2e7ba6=a935_0x4cf8;'use strict';const util=require(_0x2e7ba6('0x18')),logger=require('../config/logger')(_0x2e7ba6('0x2e')),Sequence=function(){};Sequence[_0x2e7ba6('0x7')][_0x2e7ba6('0x27')]=function(_0x4ba8d8){const _0xf3191f=_0x2e7ba6;this[_0xf3191f('0x3')]=this[_0xf3191f('0x3')]?this[_0xf3191f('0x3')]['finally'](_0x4ba8d8):_0x4ba8d8();};const Migration=function(_0x41c024){const _0x40e4b8=_0x2e7ba6;this[_0x40e4b8('0x20')]=_0x41c024,this[_0x40e4b8('0x1e')]=new Sequence();};Migration['prototype'][_0x2e7ba6('0x21')]=function(_0x5cd2a7,_0x525ab8,_0x27303a){const _0xcc276f=_0x2e7ba6,_0x54ffa0=this;this[_0xcc276f('0x1e')][_0xcc276f('0x27')](function(){const _0x12d96d=_0xcc276f;return _0x54ffa0[_0x12d96d('0x20')][_0x12d96d('0x21')](_0x5cd2a7,_0x525ab8,_0x27303a)[_0x12d96d('0x2c')](function(){const _0xbf13ba=_0x12d96d;logger[_0xbf13ba('0x4')](_0xbf13ba('0x17'),_0x525ab8,_0x5cd2a7);})[_0x12d96d('0x14')](function(_0x434034){const _0x568e10=_0x12d96d;logger[_0x568e10('0x4')](JSON[_0x568e10('0x31')](_0x434034));});});},Migration[_0x2e7ba6('0x7')][_0x2e7ba6('0x30')]=function(_0x37210a,_0x480059,_0x538ea6){const _0x5b3aae=_0x2e7ba6,_0x33e1db=this;this[_0x5b3aae('0x1e')][_0x5b3aae('0x27')](function(){const _0x3cd171=_0x5b3aae;return _0x33e1db[_0x3cd171('0x20')][_0x3cd171('0x30')](_0x37210a,_0x480059,_0x538ea6)[_0x3cd171('0x2c')](function(){const _0x5408c7=_0x3cd171;logger[_0x5408c7('0x4')](_0x5408c7('0x2f'),_0x480059,_0x37210a);})[_0x3cd171('0x14')](function(_0x35f10e){const _0xd140e1=_0x3cd171;logger[_0xd140e1('0x4')](JSON[_0xd140e1('0x31')](_0x35f10e));});});},Migration['prototype'][_0x2e7ba6('0x1')]=function(_0x1e7d4b){const _0x48c96e=_0x2e7ba6,_0x4fb576=this;this['sequence'][_0x48c96e('0x27')](function(){const _0x47d692=_0x48c96e;return _0x4fb576['queryInterface'][_0x47d692('0x1')](_0x1e7d4b,{'force':!![]})['then'](function(){const _0x355f6d=_0x47d692;logger[_0x355f6d('0x4')]('table\x20dropped\x20%s',_0x1e7d4b);})['catch'](function(_0x3e733e){const _0x235ec9=_0x47d692;logger[_0x235ec9('0x4')](JSON['stringify'](_0x3e733e));});});},Migration[_0x2e7ba6('0x7')][_0x2e7ba6('0x11')]=function(_0x3670f4,_0x3d5e3b,_0x1d14af){const _0x3af8a7=_0x2e7ba6,_0x1bdf7a=this;this[_0x3af8a7('0x1e')][_0x3af8a7('0x27')](function(){const _0xca4bbc=_0x3af8a7;return _0x1bdf7a['queryInterface'][_0xca4bbc('0x11')](_0x3670f4,_0x3d5e3b,{'indexName':_0x1d14af})['then'](function(){const _0xa19ef0=_0xca4bbc;logger[_0xa19ef0('0x4')](_0xa19ef0('0x6'),_0x3670f4,_0x3d5e3b[_0xa19ef0('0x1d')](','),_0x1d14af);})[_0xca4bbc('0x14')](function(_0x563bbb){const _0x3b9b45=_0xca4bbc;logger[_0x3b9b45('0x4')](JSON[_0x3b9b45('0x31')](_0x563bbb));});});},Migration[_0x2e7ba6('0x7')]['query']=function(_0x14e609){const _0x2a2835=_0x2e7ba6,_0x9c8b12=this;this[_0x2a2835('0x1e')][_0x2a2835('0x27')](function(){const _0x38ad91=_0x2a2835;return _0x9c8b12[_0x38ad91('0x20')][_0x38ad91('0x13')]['query'](_0x14e609)[_0x38ad91('0x2c')](function(){const _0x729002=_0x38ad91;logger[_0x729002('0x4')](_0x729002('0x1b'),_0x14e609);})[_0x38ad91('0x14')](function(_0x201887){logger['info'](JSON['stringify'](_0x201887));});});},Migration['prototype']['removeColumn']=function(_0x337ec9,_0x33fdd2){const _0x275b6e=_0x2e7ba6,_0x485d76=this;this[_0x275b6e('0x1e')][_0x275b6e('0x27')](function(){const _0x22faed=_0x275b6e;return _0x485d76[_0x22faed('0x20')][_0x22faed('0x1f')](_0x337ec9,_0x33fdd2)[_0x22faed('0x2c')](function(){const _0x2315e4=_0x22faed;logger[_0x2315e4('0x4')]('Removed\x20column\x20%s\x20from\x20%s',_0x33fdd2,_0x337ec9);})[_0x22faed('0x14')](function(_0x2f515c){const _0x4853b9=_0x22faed;logger[_0x4853b9('0x4')](util['inspect'](_0x2f515c,{'showHidden':![],'depth':null}));});});},Migration[_0x2e7ba6('0x7')][_0x2e7ba6('0x1c')]=function(_0x4df845,_0x3f291e,_0x307b94){const _0xd66de6=_0x2e7ba6,_0x12b28d=this;this['sequence'][_0xd66de6('0x27')](function(){const _0x517b9c=_0xd66de6;return _0x12b28d[_0x517b9c('0x20')][_0x517b9c('0x1c')](_0x4df845,_0x3f291e,_0x307b94)[_0x517b9c('0x2c')](function(){const _0x48a869=_0x517b9c;logger[_0x48a869('0x4')](_0x48a869('0xf'),_0x3f291e,_0x307b94,_0x4df845);})[_0x517b9c('0x14')](function(_0x478d47){const _0x24df69=_0x517b9c;logger[_0x24df69('0x4')](util[_0x24df69('0xa')](_0x478d47,{'showHidden':![],'depth':null}));});});},Migration[_0x2e7ba6('0x7')]['final']=function(_0x478ab1){const _0x275b7e=_0x2e7ba6;this[_0x275b7e('0x1e')][_0x275b7e('0x27')](function(){return _0x478ab1();});},module[_0x2e7ba6('0x32')]={'up':function(_0x27bb65,_0x3dc6e1){return new Promise(function(_0x2de4ae){const _0x59f7c9=a935_0x4cf8,_0x2e8aaf=new Migration(_0x27bb65);_0x2e8aaf['changeColumn'](_0x59f7c9('0x5'),_0x59f7c9('0x19'),{'type':_0x3dc6e1[_0x59f7c9('0x1a')](_0x59f7c9('0x26'),_0x59f7c9('0x28'),_0x59f7c9('0x29'),_0x59f7c9('0x9'),'random','rrmemory',_0x59f7c9('0x8'),_0x59f7c9('0x16'),_0x59f7c9('0xd')),'allowNull':![],'defaultValue':'ringall'}),_0x2e8aaf[_0x59f7c9('0x30')]('analytics_extracted_reports','basename',{'type':_0x3dc6e1[_0x59f7c9('0x22')],'allowNull':![]}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0xe'),_0x59f7c9('0x23'),{'type':_0x3dc6e1['TEXT']}),_0x2e8aaf[_0x59f7c9('0x30')]('mail_accounts',_0x59f7c9('0x2b'),{'type':_0x3dc6e1[_0x59f7c9('0xb')],'defaultValue':!![]}),_0x2e8aaf[_0x59f7c9('0x30')]('mail_accounts',_0x59f7c9('0x24'),{'type':_0x3dc6e1[_0x59f7c9('0xb')],'defaultValue':![]}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0x2d'),_0x59f7c9('0x23'),{'type':_0x3dc6e1[_0x59f7c9('0x10')]}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0x2d'),'notificationSound',{'type':_0x3dc6e1[_0x59f7c9('0xb')],'defaultValue':!![]}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0x2d'),_0x59f7c9('0x24'),{'type':_0x3dc6e1[_0x59f7c9('0xb')],'defaultValue':![]}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0x0'),_0x59f7c9('0x23'),{'type':_0x3dc6e1['TEXT']}),_0x2e8aaf['addColumn']('fax_accounts','notificationSound',{'type':_0x3dc6e1[_0x59f7c9('0xb')],'defaultValue':!![]}),_0x2e8aaf['addColumn'](_0x59f7c9('0x0'),_0x59f7c9('0x24'),{'type':_0x3dc6e1[_0x59f7c9('0xb')],'defaultValue':![]}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0x2a'),_0x59f7c9('0x23'),{'type':_0x3dc6e1[_0x59f7c9('0x10')]}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0x2a'),_0x59f7c9('0x2b'),{'type':_0x3dc6e1['BOOLEAN'],'defaultValue':!![]}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0x2a'),_0x59f7c9('0x24'),{'type':_0x3dc6e1['BOOLEAN'],'defaultValue':![]}),_0x2e8aaf[_0x59f7c9('0x30')]('openchannel_accounts','notificationTemplate',{'type':_0x3dc6e1['TEXT']}),_0x2e8aaf[_0x59f7c9('0x30')](_0x59f7c9('0x25'),_0x59f7c9('0x2b'),{'type':_0x3dc6e1[_0x59f7c9('0xb')],'defaultValue':!![]}),_0x2e8aaf['addColumn'](_0x59f7c9('0x25'),'notificationShake',{'type':_0x3dc6e1[_0x59f7c9('0xb')],'defaultValue':![]}),_0x2e8aaf['query']('UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0x2e8aaf[_0x59f7c9('0x15')](_0x59f7c9('0x2')),_0x2e8aaf[_0x59f7c9('0x15')]('UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0x2e8aaf['query'](_0x59f7c9('0xc')),_0x2e8aaf[_0x59f7c9('0x15')](_0x59f7c9('0x12')),_0x2e8aaf['final'](_0x2de4ae);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.57.js b/server/migrations/2.0.57.js index efe54ee..c39e345 100644 --- a/server/migrations/2.0.57.js +++ b/server/migrations/2.0.57.js @@ -1 +1 @@ -const a936_0x3b22=['Changed\x20column\x20%s\x20in\x20table\x20%s','query','migration','periodic_announce','table\x20dropped\x20%s','join','final','tail','UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22','then','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100,111\x27\x20WHERE\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100\x27','../config/logger','finally','renameColumn','sequence','changeColumn','prototype','addIndex\x20%s\x20%s\x20%s','queryInterface','addColumn','BOOLEAN','Added\x20column\x20%s\x20to\x20%s','hideWhenOffline','TEXT','dropTable','catch','sequelize','chat_websites','enqueue','inspect','removeColumn','stringify','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x48ff45,_0x3b222f){const _0x1a6ae1=function(_0xdda4f7){while(--_0xdda4f7){_0x48ff45['push'](_0x48ff45['shift']());}};_0x1a6ae1(++_0x3b222f);}(a936_0x3b22,0x119));const a936_0x1a6a=function(_0x48ff45,_0x3b222f){_0x48ff45=_0x48ff45-0x0;let _0x1a6ae1=a936_0x3b22[_0x48ff45];return _0x1a6ae1;};const _0x44df29=a936_0x1a6a;'use strict';const util=require('util'),logger=require(_0x44df29('0x12'))(_0x44df29('0x9')),Sequence=function(){};Sequence[_0x44df29('0x17')][_0x44df29('0x23')]=function(_0xdda4f7){const _0x1ccdaa=_0x44df29;this[_0x1ccdaa('0xe')]=this['tail']?this[_0x1ccdaa('0xe')][_0x1ccdaa('0x13')](_0xdda4f7):_0xdda4f7();};const Migration=function(_0x2b467e){const _0x492a72=_0x44df29;this[_0x492a72('0x19')]=_0x2b467e,this[_0x492a72('0x15')]=new Sequence();};Migration[_0x44df29('0x17')]['changeColumn']=function(_0x47ba65,_0x5ac662,_0x191014){const _0x5e1d5b=_0x44df29,_0x5733dc=this;this[_0x5e1d5b('0x15')]['enqueue'](function(){const _0x252fc9=_0x5e1d5b;return _0x5733dc['queryInterface'][_0x252fc9('0x16')](_0x47ba65,_0x5ac662,_0x191014)[_0x252fc9('0x10')](function(){const _0x5cd869=_0x252fc9;logger[_0x5cd869('0x3')](_0x5cd869('0x7'),_0x5ac662,_0x47ba65);})[_0x252fc9('0x20')](function(_0x1e8739){const _0x330906=_0x252fc9;logger[_0x330906('0x3')](JSON[_0x330906('0x2')](_0x1e8739));});});},Migration[_0x44df29('0x17')]['addColumn']=function(_0x2187d6,_0x127f33,_0x4a12f1){const _0x594f66=_0x44df29,_0x405086=this;this['sequence'][_0x594f66('0x23')](function(){const _0x437aae=_0x594f66;return _0x405086['queryInterface'][_0x437aae('0x1a')](_0x2187d6,_0x127f33,_0x4a12f1)[_0x437aae('0x10')](function(){const _0x2bd602=_0x437aae;logger[_0x2bd602('0x3')](_0x2bd602('0x1c'),_0x127f33,_0x2187d6);})[_0x437aae('0x20')](function(_0x5df4ed){const _0x192353=_0x437aae;logger['info'](JSON[_0x192353('0x2')](_0x5df4ed));});});},Migration[_0x44df29('0x17')][_0x44df29('0x1f')]=function(_0x204ae0){const _0x264db7=this;this['sequence']['enqueue'](function(){const _0x444ede=a936_0x1a6a;return _0x264db7['queryInterface'][_0x444ede('0x1f')](_0x204ae0,{'force':!![]})[_0x444ede('0x10')](function(){const _0x23a170=_0x444ede;logger[_0x23a170('0x3')](_0x23a170('0xb'),_0x204ae0);})[_0x444ede('0x20')](function(_0x585de8){logger['info'](JSON['stringify'](_0x585de8));});});},Migration[_0x44df29('0x17')]['addIndex']=function(_0xf9becd,_0x2f17a3,_0x13f8ee){const _0x97536d=_0x44df29,_0xe5af9a=this;this[_0x97536d('0x15')]['enqueue'](function(){const _0xb19312=_0x97536d;return _0xe5af9a['queryInterface'][_0xb19312('0x5')](_0xf9becd,_0x2f17a3,{'indexName':_0x13f8ee})['then'](function(){const _0x5b2f1e=_0xb19312;logger[_0x5b2f1e('0x3')](_0x5b2f1e('0x18'),_0xf9becd,_0x2f17a3[_0x5b2f1e('0xc')](','),_0x13f8ee);})['catch'](function(_0x16422d){const _0x890c02=_0xb19312;logger[_0x890c02('0x3')](JSON[_0x890c02('0x2')](_0x16422d));});});},Migration[_0x44df29('0x17')]['query']=function(_0x568753){const _0x2cfce1=_0x44df29,_0x5e5f22=this;this[_0x2cfce1('0x15')]['enqueue'](function(){const _0x349110=_0x2cfce1;return _0x5e5f22['queryInterface'][_0x349110('0x21')]['query'](_0x568753)[_0x349110('0x10')](function(){const _0x17aa7c=_0x349110;logger[_0x17aa7c('0x3')]('query\x20%s',_0x568753);})[_0x349110('0x20')](function(_0x1877ba){const _0xfa1ee0=_0x349110;logger[_0xfa1ee0('0x3')](JSON[_0xfa1ee0('0x2')](_0x1877ba));});});},Migration['prototype'][_0x44df29('0x1')]=function(_0x161613,_0xc64d63){const _0x23a75b=_0x44df29,_0x7ac410=this;this[_0x23a75b('0x15')][_0x23a75b('0x23')](function(){const _0x175e14=_0x23a75b;return _0x7ac410[_0x175e14('0x19')]['removeColumn'](_0x161613,_0xc64d63)[_0x175e14('0x10')](function(){const _0x3b4686=_0x175e14;logger['info'](_0x3b4686('0x6'),_0xc64d63,_0x161613);})['catch'](function(_0x2b58da){const _0x26d9b4=_0x175e14;logger[_0x26d9b4('0x3')](util['inspect'](_0x2b58da,{'showHidden':![],'depth':null}));});});},Migration[_0x44df29('0x17')][_0x44df29('0x14')]=function(_0x2491a6,_0x32eef2,_0x52af0f){const _0x41b1ba=_0x44df29,_0x5c8819=this;this[_0x41b1ba('0x15')][_0x41b1ba('0x23')](function(){const _0x23c82a=_0x41b1ba;return _0x5c8819[_0x23c82a('0x19')][_0x23c82a('0x14')](_0x2491a6,_0x32eef2,_0x52af0f)[_0x23c82a('0x10')](function(){const _0x58a1ad=_0x23c82a;logger[_0x58a1ad('0x3')](_0x58a1ad('0x4'),_0x32eef2,_0x52af0f,_0x2491a6);})[_0x23c82a('0x20')](function(_0x1eeeb5){const _0x310641=_0x23c82a;logger[_0x310641('0x3')](util[_0x310641('0x0')](_0x1eeeb5,{'showHidden':![],'depth':null}));});});},Migration[_0x44df29('0x17')][_0x44df29('0xd')]=function(_0x7775c0){const _0x53eeb2=_0x44df29;this['sequence'][_0x53eeb2('0x23')](function(){return _0x7775c0();});},module['exports']={'up':function(_0x1a492d,_0x552b82){return new Promise(function(_0x5f4d93){const _0x5339a3=a936_0x1a6a,_0x215230=new Migration(_0x1a492d);_0x215230[_0x5339a3('0x1a')](_0x5339a3('0x22'),_0x5339a3('0x1d'),{'type':_0x552b82[_0x5339a3('0x1b')],'defaultValue':![]}),_0x215230[_0x5339a3('0x16')]('voice_queues',_0x5339a3('0xa'),{'type':_0x552b82[_0x5339a3('0x1e')]}),_0x215230[_0x5339a3('0x8')](_0x5339a3('0x11')),_0x215230[_0x5339a3('0x8')](_0x5339a3('0xf')),_0x215230[_0x5339a3('0xd')](_0x5f4d93);});},'down':function(){}}; \ No newline at end of file +const a936_0x511a=['queryInterface','sequence','query\x20%s','changeColumn','tail','sequelize','addColumn','then','renameColumn','../config/logger','enqueue','table\x20dropped\x20%s','dropTable','exports','prototype','util','UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22','catch','addIndex','periodic_announce','info','join','finally','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','query','final','Removed\x20column\x20%s\x20from\x20%s','hideWhenOffline','migration','inspect','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x4f8d99,_0x511ac7){const _0x324fb5=function(_0x3e8978){while(--_0x3e8978){_0x4f8d99['push'](_0x4f8d99['shift']());}};_0x324fb5(++_0x511ac7);}(a936_0x511a,0x6d));const a936_0x324f=function(_0x4f8d99,_0x511ac7){_0x4f8d99=_0x4f8d99-0x0;let _0x324fb5=a936_0x511a[_0x4f8d99];return _0x324fb5;};const _0x2f2c05=a936_0x324f;'use strict';const util=require(_0x2f2c05('0x8')),logger=require(_0x2f2c05('0x2'))(_0x2f2c05('0x16')),Sequence=function(){};Sequence[_0x2f2c05('0x7')][_0x2f2c05('0x3')]=function(_0x3e8978){const _0xe928d3=_0x2f2c05;this[_0xe928d3('0x1f')]=this[_0xe928d3('0x1f')]?this['tail'][_0xe928d3('0xf')](_0x3e8978):_0x3e8978();};const Migration=function(_0x11be5e){const _0x1de9f7=_0x2f2c05;this[_0x1de9f7('0x1b')]=_0x11be5e,this['sequence']=new Sequence();};Migration[_0x2f2c05('0x7')][_0x2f2c05('0x1e')]=function(_0x419e18,_0x51f14d,_0x590699){const _0x23d921=_0x2f2c05,_0x1824c1=this;this[_0x23d921('0x1c')][_0x23d921('0x3')](function(){const _0x44dca4=_0x23d921;return _0x1824c1['queryInterface'][_0x44dca4('0x1e')](_0x419e18,_0x51f14d,_0x590699)[_0x44dca4('0x0')](function(){const _0x1cc960=_0x44dca4;logger[_0x1cc960('0xd')](_0x1cc960('0x11'),_0x51f14d,_0x419e18);})['catch'](function(_0x4f787e){const _0x1e2511=_0x44dca4;logger[_0x1e2511('0xd')](JSON[_0x1e2511('0x10')](_0x4f787e));});});},Migration[_0x2f2c05('0x7')][_0x2f2c05('0x21')]=function(_0x45eed3,_0x4118d7,_0x210b93){const _0x31efbc=_0x2f2c05,_0x5e5b36=this;this[_0x31efbc('0x1c')][_0x31efbc('0x3')](function(){const _0x2ba164=_0x31efbc;return _0x5e5b36[_0x2ba164('0x1b')][_0x2ba164('0x21')](_0x45eed3,_0x4118d7,_0x210b93)[_0x2ba164('0x0')](function(){const _0x1064eb=_0x2ba164;logger[_0x1064eb('0xd')](_0x1064eb('0x18'),_0x4118d7,_0x45eed3);})['catch'](function(_0x179d99){const _0x14cffe=_0x2ba164;logger[_0x14cffe('0xd')](JSON[_0x14cffe('0x10')](_0x179d99));});});},Migration['prototype']['dropTable']=function(_0x1c5422){const _0x453947=_0x2f2c05,_0x3f804a=this;this[_0x453947('0x1c')][_0x453947('0x3')](function(){const _0x32cede=_0x453947;return _0x3f804a[_0x32cede('0x1b')][_0x32cede('0x5')](_0x1c5422,{'force':!![]})[_0x32cede('0x0')](function(){const _0x2fdbe9=_0x32cede;logger['info'](_0x2fdbe9('0x4'),_0x1c5422);})[_0x32cede('0xa')](function(_0x1e4982){const _0xd16f7b=_0x32cede;logger[_0xd16f7b('0xd')](JSON[_0xd16f7b('0x10')](_0x1e4982));});});},Migration[_0x2f2c05('0x7')][_0x2f2c05('0xb')]=function(_0x109161,_0x28fee3,_0x30e9a2){const _0x344d82=_0x2f2c05,_0x10fa5b=this;this['sequence'][_0x344d82('0x3')](function(){const _0x469acd=_0x344d82;return _0x10fa5b[_0x469acd('0x1b')]['addIndex'](_0x109161,_0x28fee3,{'indexName':_0x30e9a2})['then'](function(){const _0x3664a1=_0x469acd;logger['info'](_0x3664a1('0x19'),_0x109161,_0x28fee3[_0x3664a1('0xe')](','),_0x30e9a2);})[_0x469acd('0xa')](function(_0xf3c7c9){const _0x3d53fe=_0x469acd;logger['info'](JSON[_0x3d53fe('0x10')](_0xf3c7c9));});});},Migration[_0x2f2c05('0x7')][_0x2f2c05('0x12')]=function(_0x1041c9){const _0x500577=_0x2f2c05,_0x115aae=this;this['sequence'][_0x500577('0x3')](function(){const _0x8e2a01=_0x500577;return _0x115aae[_0x8e2a01('0x1b')][_0x8e2a01('0x20')][_0x8e2a01('0x12')](_0x1041c9)[_0x8e2a01('0x0')](function(){const _0x2c8395=_0x8e2a01;logger[_0x2c8395('0xd')](_0x2c8395('0x1d'),_0x1041c9);})[_0x8e2a01('0xa')](function(_0x24a901){const _0x2aa9b6=_0x8e2a01;logger[_0x2aa9b6('0xd')](JSON[_0x2aa9b6('0x10')](_0x24a901));});});},Migration[_0x2f2c05('0x7')]['removeColumn']=function(_0x25543b,_0x65dc71){const _0x54c2ca=_0x2f2c05,_0x4d7f63=this;this[_0x54c2ca('0x1c')][_0x54c2ca('0x3')](function(){const _0x2e6804=_0x54c2ca;return _0x4d7f63['queryInterface']['removeColumn'](_0x25543b,_0x65dc71)['then'](function(){const _0x31d1b4=a936_0x324f;logger[_0x31d1b4('0xd')](_0x31d1b4('0x14'),_0x65dc71,_0x25543b);})[_0x2e6804('0xa')](function(_0x1916e9){const _0x443839=_0x2e6804;logger[_0x443839('0xd')](util[_0x443839('0x17')](_0x1916e9,{'showHidden':![],'depth':null}));});});},Migration[_0x2f2c05('0x7')][_0x2f2c05('0x1')]=function(_0x59fe49,_0x42f2a0,_0x1b5bec){const _0x1e7e3f=_0x2f2c05,_0x4dfe08=this;this[_0x1e7e3f('0x1c')][_0x1e7e3f('0x3')](function(){const _0x11c255=_0x1e7e3f;return _0x4dfe08[_0x11c255('0x1b')][_0x11c255('0x1')](_0x59fe49,_0x42f2a0,_0x1b5bec)[_0x11c255('0x0')](function(){const _0x34b430=_0x11c255;logger[_0x34b430('0xd')](_0x34b430('0x1a'),_0x42f2a0,_0x1b5bec,_0x59fe49);})[_0x11c255('0xa')](function(_0x18a5b2){const _0x4284ba=_0x11c255;logger[_0x4284ba('0xd')](util['inspect'](_0x18a5b2,{'showHidden':![],'depth':null}));});});},Migration[_0x2f2c05('0x7')][_0x2f2c05('0x13')]=function(_0x28c2af){this['sequence']['enqueue'](function(){return _0x28c2af();});},module[_0x2f2c05('0x6')]={'up':function(_0x22390a,_0x43394c){return new Promise(function(_0x7a6da7){const _0x2cc901=a936_0x324f,_0x540e28=new Migration(_0x22390a);_0x540e28[_0x2cc901('0x21')]('chat_websites',_0x2cc901('0x15'),{'type':_0x43394c['BOOLEAN'],'defaultValue':![]}),_0x540e28[_0x2cc901('0x1e')]('voice_queues',_0x2cc901('0xc'),{'type':_0x43394c['TEXT']}),_0x540e28['query']('UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100,111\x27\x20WHERE\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100\x27'),_0x540e28[_0x2cc901('0x12')](_0x2cc901('0x9')),_0x540e28['final'](_0x7a6da7);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.58.js b/server/migrations/2.0.58.js index 5cd6fe0..6f9d8d4 100644 --- a/server/migrations/2.0.58.js +++ b/server/migrations/2.0.58.js @@ -1 +1 @@ -const a937_0x3b56=['addColumn','catch','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Action\x20Failure\x27,\x20\x27agentmanagement-action-failure\x27,\x20\x27Agent\x20Action\x20Failure\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','report_queue','Removed\x20column\x20%s\x20from\x20%s','queue','inspect','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20End\x20Pause\x27,\x20\x27agentmanagement-unpause\x27,\x20\x27Agent\x20End\x20Pause\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','Added\x20column\x20%s\x20to\x20%s','../config/logger','queryInterface','query','exports','queuecallerexitreason','final','info','then','dropTable','sequelize','addIndex\x20%s\x20%s\x20%s','removeColumn','STRING','tail','migration','util','ALTER\x20TABLE\x20`voice_voicemail_messages`\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_voicemail_messages_ibfk_1`\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`mailboxuser`)\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_voicemail(`mailbox`)\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','stringify','sequence','query\x20%s','renameColumn','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Menu\x27,\x20\x27agentmanagement-menu\x27,\x20\x27Agent\x20Menu\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','join','table\x20dropped\x20%s','addIndex','enqueue','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Pause\x27,\x20\x27agentmanagement-pause\x27,\x20\x27Agent\x20Pause\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','prototype'];(function(_0x21f9d0,_0x3b560a){const _0x35ecbb=function(_0x2c3cf5){while(--_0x2c3cf5){_0x21f9d0['push'](_0x21f9d0['shift']());}};_0x35ecbb(++_0x3b560a);}(a937_0x3b56,0xa0));const a937_0x35ec=function(_0x21f9d0,_0x3b560a){_0x21f9d0=_0x21f9d0-0x0;let _0x35ecbb=a937_0x3b56[_0x21f9d0];return _0x35ecbb;};const _0x1e0074=a937_0x35ec;'use strict';const util=require(_0x1e0074('0x16')),logger=require(_0x1e0074('0x7'))(_0x1e0074('0x15')),Sequence=function(){};Sequence[_0x1e0074('0x22')][_0x1e0074('0x20')]=function(_0x2c3cf5){const _0x3e8478=_0x1e0074;this[_0x3e8478('0x14')]=this[_0x3e8478('0x14')]?this[_0x3e8478('0x14')]['finally'](_0x2c3cf5):_0x2c3cf5();};const Migration=function(_0x1b10cd){const _0x30ae72=_0x1e0074;this[_0x30ae72('0x8')]=_0x1b10cd,this['sequence']=new Sequence();};Migration[_0x1e0074('0x22')][_0x1e0074('0x3')]=function(_0x392b70,_0x47bffe,_0x25241e){const _0xb061d=_0x1e0074,_0x12bdd2=this;this[_0xb061d('0x19')][_0xb061d('0x20')](function(){const _0x193774=_0xb061d;return _0x12bdd2['queryInterface'][_0x193774('0x3')](_0x392b70,_0x47bffe,_0x25241e)[_0x193774('0xe')](function(){const _0x122083=_0x193774;logger[_0x122083('0xd')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x47bffe,_0x392b70);})[_0x193774('0x24')](function(_0x357fff){const _0x32af67=_0x193774;logger[_0x32af67('0xd')](JSON['stringify'](_0x357fff));});});},Migration[_0x1e0074('0x22')][_0x1e0074('0x23')]=function(_0x1bbf7d,_0xbd5fc0,_0x370045){const _0x3450e3=_0x1e0074,_0x1ffc62=this;this[_0x3450e3('0x19')][_0x3450e3('0x20')](function(){const _0x2acd95=_0x3450e3;return _0x1ffc62[_0x2acd95('0x8')][_0x2acd95('0x23')](_0x1bbf7d,_0xbd5fc0,_0x370045)[_0x2acd95('0xe')](function(){const _0x15bab9=_0x2acd95;logger[_0x15bab9('0xd')](_0x15bab9('0x6'),_0xbd5fc0,_0x1bbf7d);})[_0x2acd95('0x24')](function(_0x11ffd1){const _0x4ff8c2=_0x2acd95;logger[_0x4ff8c2('0xd')](JSON[_0x4ff8c2('0x18')](_0x11ffd1));});});},Migration[_0x1e0074('0x22')][_0x1e0074('0xf')]=function(_0x3bc9f4){const _0x61aa7c=_0x1e0074,_0x50bb07=this;this[_0x61aa7c('0x19')]['enqueue'](function(){const _0x3e7cd7=_0x61aa7c;return _0x50bb07[_0x3e7cd7('0x8')][_0x3e7cd7('0xf')](_0x3bc9f4,{'force':!![]})[_0x3e7cd7('0xe')](function(){const _0xa120cf=_0x3e7cd7;logger['info'](_0xa120cf('0x1e'),_0x3bc9f4);})['catch'](function(_0x157685){const _0x56b151=_0x3e7cd7;logger['info'](JSON[_0x56b151('0x18')](_0x157685));});});},Migration[_0x1e0074('0x22')]['addIndex']=function(_0x3dc465,_0xe2f557,_0x4c5ab3){const _0x44382e=_0x1e0074,_0x205080=this;this[_0x44382e('0x19')][_0x44382e('0x20')](function(){const _0x1af263=_0x44382e;return _0x205080['queryInterface'][_0x1af263('0x1f')](_0x3dc465,_0xe2f557,{'indexName':_0x4c5ab3})[_0x1af263('0xe')](function(){const _0x3e30c1=_0x1af263;logger[_0x3e30c1('0xd')](_0x3e30c1('0x11'),_0x3dc465,_0xe2f557[_0x3e30c1('0x1d')](','),_0x4c5ab3);})[_0x1af263('0x24')](function(_0x37cc3e){const _0x59c809=_0x1af263;logger[_0x59c809('0xd')](JSON['stringify'](_0x37cc3e));});});},Migration[_0x1e0074('0x22')][_0x1e0074('0x9')]=function(_0x501742){const _0x4a6214=_0x1e0074,_0x22b6ba=this;this[_0x4a6214('0x19')][_0x4a6214('0x20')](function(){const _0x2b29d2=_0x4a6214;return _0x22b6ba[_0x2b29d2('0x8')][_0x2b29d2('0x10')]['query'](_0x501742)['then'](function(){const _0x323620=_0x2b29d2;logger[_0x323620('0xd')](_0x323620('0x1a'),_0x501742);})[_0x2b29d2('0x24')](function(_0x4ee785){const _0x4fd4ce=_0x2b29d2;logger['info'](JSON[_0x4fd4ce('0x18')](_0x4ee785));});});},Migration['prototype']['removeColumn']=function(_0x2f3c27,_0x4ec6fa){const _0x4633c9=_0x1e0074,_0x1a6540=this;this['sequence'][_0x4633c9('0x20')](function(){const _0x2946a5=_0x4633c9;return _0x1a6540[_0x2946a5('0x8')][_0x2946a5('0x12')](_0x2f3c27,_0x4ec6fa)['then'](function(){const _0x28a6ef=_0x2946a5;logger[_0x28a6ef('0xd')](_0x28a6ef('0x0'),_0x4ec6fa,_0x2f3c27);})[_0x2946a5('0x24')](function(_0x22f38c){const _0xd3f840=_0x2946a5;logger[_0xd3f840('0xd')](util[_0xd3f840('0x2')](_0x22f38c,{'showHidden':![],'depth':null}));});});},Migration[_0x1e0074('0x22')][_0x1e0074('0x1b')]=function(_0x5791bc,_0xcf29ff,_0x58ab1d){const _0x1fda9a=_0x1e0074,_0x524c8=this;this[_0x1fda9a('0x19')][_0x1fda9a('0x20')](function(){const _0x497f30=_0x1fda9a;return _0x524c8[_0x497f30('0x8')]['renameColumn'](_0x5791bc,_0xcf29ff,_0x58ab1d)[_0x497f30('0xe')](function(){const _0x36c6b1=_0x497f30;logger['info'](_0x36c6b1('0x4'),_0xcf29ff,_0x58ab1d,_0x5791bc);})['catch'](function(_0x25b66d){const _0x6e0347=_0x497f30;logger[_0x6e0347('0xd')](util[_0x6e0347('0x2')](_0x25b66d,{'showHidden':![],'depth':null}));});});},Migration[_0x1e0074('0x22')][_0x1e0074('0xc')]=function(_0x4bd967){const _0x4a6e34=_0x1e0074;this[_0x4a6e34('0x19')][_0x4a6e34('0x20')](function(){return _0x4bd967();});},module[_0x1e0074('0xa')]={'up':function(_0x43d831,_0x5aae6c){return new Promise(function(_0x456f24){const _0x25c7ea=a937_0x35ec,_0x5a2877=new Migration(_0x43d831);_0x5a2877[_0x25c7ea('0x9')](_0x25c7ea('0x17')),_0x5a2877['addIndex'](_0x25c7ea('0x26'),[_0x25c7ea('0x1')],_0x25c7ea('0x1')),_0x5a2877[_0x25c7ea('0x1f')](_0x25c7ea('0x26'),[_0x25c7ea('0xb')],'queuecallerexitreason'),_0x5a2877['addColumn'](_0x25c7ea('0x26'),'disposition',{'type':_0x5aae6c[_0x25c7ea('0x13')]}),_0x5a2877[_0x25c7ea('0x9')]('INSERT\x20INTO\x20`square_projects`\x20(`name`,\x20`description`,\x20`notes`,\x20`preproduction`,\x20`production`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27AgentManagement\x27,\x20\x27Agent\x20Management\x20sample\x20auto\x20generated\x27,\x20NULL,\x20X\x273C6D7847726170684D6F64656C20677269643D223122206775696465733D22312220746F6F6C746970733D22312220636F6E6E6563743D22312220666F6C643D22312220706167653D22302220706167655363616C653D223122207061676557696474683D223832362220706167654865696768743D2231313639223E0A20203C726F6F743E0A202020203C6D7843656C6C2069643D2230222F3E0A202020203C6D7843656C6C2069643D22312220706172656E743D2230222F3E0A202020203C7374617274206C6162656C3D2253746172742220616E737765723D22796573222069643D2239223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F656E7472792F73746172745F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D2234302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F73746172743E0A202020203C6D656E75206C6162656C3D224D656E75222066696C655F69643D222220726573706F6E73653D2235222064696769743D2231222072657472793D223122207661726961626C655F69643D2230222069643D223136223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F6D656E755F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223137302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6D656E753E0A202020203C6C6F67696E206C6162656C3D224C6F67696E222066696E6442793D22696E7465726E616C222069643D223339223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F6C6F67696E5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D223132222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6C6F67696E3E0A202020203C7061757365206C6162656C3D225061757365222066696E6442793D22696E7465726E616C222070617573655F69643D22222069643D223430223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F70617573655F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22333434222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F70617573653E0A202020203C756E7061757365206C6162656C3D22556E7061757365222066696E6442793D22696E7465726E616C222069643D223431223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F756E70617573655F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22343634222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F756E70617573653E0A202020203C6C6F676F7574206C6162656C3D224C6F676F7574222066696E6442793D22696E7465726E616C222069643D223432223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F6C6F676F75745F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22313332222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6C6F676F75743E0A202020203C6D7843656C6C2069643D223433222076616C75653D22312220706172656E743D22312220736F757263653D22313622207461726765743D2233392220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223231302220793D22313432222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223434222076616C75653D22322220706172656E743D22312220736F757263653D22313622207461726765743D2234322220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223435222076616C75653D22332220706172656E743D22312220736F757263653D22313622207461726765743D2234302220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223436222076616C75653D22342220706172656E743D22312220736F757263653D22313622207461726765743D2234312220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223231302220793D22343134222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2234372220706172656E743D22312220736F757263653D223922207461726765743D2231362220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223438223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223435302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C6D7843656C6C2069643D223530222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343222207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223531222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343022207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C68616E677570206C6162656C3D2248616E677570222069643D223533223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F63616C6C5F6D616E6167656D656E742F68616E6775705F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223735302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F68616E6775703E0A202020203C6D7843656C6C2069643D2235342220706172656E743D22312220736F757263653D22343822207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223535222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22333922207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223439302220793D22313730222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223536222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343122207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223439302220793D22333930222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223537223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22313332222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223538223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D223132222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223539223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22333434222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223630223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22343634222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C6D7843656C6C2069643D223631222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22333922207461726765743D2235382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223632222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343222207461726765743D2235372220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223633222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343022207461726765743D2235392220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223634222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343122207461726765743D2236302220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236352220706172656E743D22312220736F757263653D22353822207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236362220706172656E743D22312220736F757263653D22353722207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236372220706172656E743D22312220736F757263653D22353922207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236382220706172656E743D22312220736F757263653D22363022207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A20203C2F726F6F743E0A3C2F6D7847726170684D6F64656C3E\x27,\x20X\x273C6D7847726170684D6F64656C20677269643D223122206775696465733D22312220746F6F6C746970733D22312220636F6E6E6563743D22312220666F6C643D22312220706167653D22302220706167655363616C653D223122207061676557696474683D223832362220706167654865696768743D2231313639223E0A20203C726F6F743E0A202020203C6D7843656C6C2069643D2230222F3E0A202020203C6D7843656C6C2069643D22312220706172656E743D2230222F3E0A202020203C7374617274206C6162656C3D2253746172742220616E737765723D22796573222069643D2239223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F656E7472792F73746172745F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D2234302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F73746172743E0A202020203C6D656E75206C6162656C3D224D656E75222066696C655F69643D222220726573706F6E73653D2235222064696769743D2231222072657472793D223122207661726961626C655F69643D2230222069643D223136223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F6D656E755F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223137302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6D656E753E0A202020203C6C6F67696E206C6162656C3D224C6F67696E222066696E6442793D22696E7465726E616C222069643D223339223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F6C6F67696E5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D223132222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6C6F67696E3E0A202020203C7061757365206C6162656C3D225061757365222066696E6442793D22696E7465726E616C222070617573655F69643D22222069643D223430223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F70617573655F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22333434222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F70617573653E0A202020203C756E7061757365206C6162656C3D22556E7061757365222066696E6442793D22696E7465726E616C222069643D223431223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F756E70617573655F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22343634222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F756E70617573653E0A202020203C6C6F676F7574206C6162656C3D224C6F676F7574222066696E6442793D22696E7465726E616C222069643D223432223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F6C6F676F75745F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22313332222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6C6F676F75743E0A202020203C6D7843656C6C2069643D223433222076616C75653D22312220706172656E743D22312220736F757263653D22313622207461726765743D2233392220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223231302220793D22313432222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223434222076616C75653D22322220706172656E743D22312220736F757263653D22313622207461726765743D2234322220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223435222076616C75653D22332220706172656E743D22312220736F757263653D22313622207461726765743D2234302220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223436222076616C75653D22342220706172656E743D22312220736F757263653D22313622207461726765743D2234312220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223231302220793D22343134222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2234372220706172656E743D22312220736F757263653D223922207461726765743D2231362220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223438223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223435302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C6D7843656C6C2069643D223530222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343222207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223531222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343022207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C68616E677570206C6162656C3D2248616E677570222069643D223533223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F63616C6C5F6D616E6167656D656E742F68616E6775705F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223735302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F68616E6775703E0A202020203C6D7843656C6C2069643D2235342220706172656E743D22312220736F757263653D22343822207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223535222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22333922207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223439302220793D22313730222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223536222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343122207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223439302220793D22333930222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223537223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22313332222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223538223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D223132222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223539223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22333434222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223630223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22343634222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C6D7843656C6C2069643D223631222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22333922207461726765743D2235382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223632222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343222207461726765743D2235372220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223633222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343022207461726765743D2235392220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223634222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343122207461726765743D2236302220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236352220706172656E743D22312220736F757263653D22353822207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236362220706172656E743D22312220736F757263653D22353722207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236372220706172656E743D22312220736F757263653D22353922207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236382220706172656E743D22312220736F757263653D22363022207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A20203C2F726F6F743E0A3C2F6D7847726170684D6F64656C3E\x27,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x5a2877[_0x25c7ea('0x9')]('INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Login\x27,\x20\x27agentmanagement-login\x27,\x20\x27Agent\x20Login\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x5a2877[_0x25c7ea('0x9')]('INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Logout\x27,\x20\x27agentmanagement-logout\x27,\x20\x27Agent\x20Logout\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x5a2877[_0x25c7ea('0x9')](_0x25c7ea('0x1c')),_0x5a2877['query'](_0x25c7ea('0x21')),_0x5a2877['query'](_0x25c7ea('0x5')),_0x5a2877[_0x25c7ea('0x9')](_0x25c7ea('0x25')),_0x5a2877[_0x25c7ea('0xc')](_0x456f24);});},'down':function(){}}; \ No newline at end of file +const a937_0x42cf=['dropTable','tail','info','disposition','catch','sequelize','finally','queryInterface','query\x20%s','addIndex\x20%s\x20%s\x20%s','prototype','inspect','Removed\x20column\x20%s\x20from\x20%s','sequence','changeColumn','addColumn','query','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Menu\x27,\x20\x27agentmanagement-menu\x27,\x20\x27Agent\x20Menu\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','Added\x20column\x20%s\x20to\x20%s','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Pause\x27,\x20\x27agentmanagement-pause\x27,\x20\x27Agent\x20Pause\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','addIndex','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Login\x27,\x20\x27agentmanagement-login\x27,\x20\x27Agent\x20Login\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','stringify','exports','queuecallerexitreason','report_queue','then','renameColumn','migration','table\x20dropped\x20%s','queue','ALTER\x20TABLE\x20`voice_voicemail_messages`\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_voicemail_messages_ibfk_1`\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`mailboxuser`)\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_voicemail(`mailbox`)\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','removeColumn','enqueue','STRING'];(function(_0x32207c,_0x42cf91){const _0x963cf4=function(_0x24bc34){while(--_0x24bc34){_0x32207c['push'](_0x32207c['shift']());}};_0x963cf4(++_0x42cf91);}(a937_0x42cf,0x81));const a937_0x963c=function(_0x32207c,_0x42cf91){_0x32207c=_0x32207c-0x0;let _0x963cf4=a937_0x42cf[_0x32207c];return _0x963cf4;};const _0x5e5866=a937_0x963c;'use strict';const util=require('util'),logger=require(_0x5e5866('0x3'))(_0x5e5866('0xc')),Sequence=function(){};Sequence[_0x5e5866('0x1d')][_0x5e5866('0x11')]=function(_0x24bc34){const _0x38eec8=_0x5e5866;this[_0x38eec8('0x14')]=this['tail']?this[_0x38eec8('0x14')][_0x38eec8('0x19')](_0x24bc34):_0x24bc34();};const Migration=function(_0x4cd97d){const _0x473e57=_0x5e5866;this[_0x473e57('0x1a')]=_0x4cd97d,this[_0x473e57('0x20')]=new Sequence();};Migration[_0x5e5866('0x1d')][_0x5e5866('0x21')]=function(_0x19cbea,_0x5f4adf,_0x5ebe64){const _0x28350c=_0x5e5866,_0xe16a9c=this;this[_0x28350c('0x20')][_0x28350c('0x11')](function(){const _0x326f97=_0x28350c;return _0xe16a9c[_0x326f97('0x1a')][_0x326f97('0x21')](_0x19cbea,_0x5f4adf,_0x5ebe64)[_0x326f97('0xa')](function(){const _0xa8978a=_0x326f97;logger['info'](_0xa8978a('0x2'),_0x5f4adf,_0x19cbea);})[_0x326f97('0x17')](function(_0x409960){logger['info'](JSON['stringify'](_0x409960));});});},Migration['prototype'][_0x5e5866('0x22')]=function(_0x539efd,_0x3de040,_0x560fc6){const _0x163c4e=_0x5e5866,_0x147a3e=this;this['sequence'][_0x163c4e('0x11')](function(){const _0x38f90c=_0x163c4e;return _0x147a3e['queryInterface'][_0x38f90c('0x22')](_0x539efd,_0x3de040,_0x560fc6)['then'](function(){const _0x23b18d=_0x38f90c;logger['info'](_0x23b18d('0x0'),_0x3de040,_0x539efd);})[_0x38f90c('0x17')](function(_0x3367b0){const _0x436a93=_0x38f90c;logger['info'](JSON[_0x436a93('0x6')](_0x3367b0));});});},Migration[_0x5e5866('0x1d')][_0x5e5866('0x13')]=function(_0x25e957){const _0xabcf6d=_0x5e5866,_0x1aa422=this;this[_0xabcf6d('0x20')][_0xabcf6d('0x11')](function(){const _0x504639=_0xabcf6d;return _0x1aa422['queryInterface'][_0x504639('0x13')](_0x25e957,{'force':!![]})[_0x504639('0xa')](function(){const _0x5603c2=_0x504639;logger[_0x5603c2('0x15')](_0x5603c2('0xd'),_0x25e957);})[_0x504639('0x17')](function(_0x28041a){const _0x464f6a=_0x504639;logger[_0x464f6a('0x15')](JSON[_0x464f6a('0x6')](_0x28041a));});});},Migration[_0x5e5866('0x1d')][_0x5e5866('0x4')]=function(_0x4fc344,_0x55f70f,_0x26723f){const _0xe52394=_0x5e5866,_0xe006e=this;this['sequence'][_0xe52394('0x11')](function(){const _0x43f31f=_0xe52394;return _0xe006e['queryInterface'][_0x43f31f('0x4')](_0x4fc344,_0x55f70f,{'indexName':_0x26723f})[_0x43f31f('0xa')](function(){const _0x3cd7b2=_0x43f31f;logger[_0x3cd7b2('0x15')](_0x3cd7b2('0x1c'),_0x4fc344,_0x55f70f['join'](','),_0x26723f);})[_0x43f31f('0x17')](function(_0x355fa9){const _0x1c9a58=_0x43f31f;logger['info'](JSON[_0x1c9a58('0x6')](_0x355fa9));});});},Migration[_0x5e5866('0x1d')][_0x5e5866('0x23')]=function(_0x45920b){const _0x4fbe5b=_0x5e5866,_0xcb5f9a=this;this[_0x4fbe5b('0x20')][_0x4fbe5b('0x11')](function(){const _0x80b252=_0x4fbe5b;return _0xcb5f9a[_0x80b252('0x1a')][_0x80b252('0x18')]['query'](_0x45920b)[_0x80b252('0xa')](function(){const _0x1a6ff7=_0x80b252;logger[_0x1a6ff7('0x15')](_0x1a6ff7('0x1b'),_0x45920b);})[_0x80b252('0x17')](function(_0x447c85){const _0x101af1=_0x80b252;logger[_0x101af1('0x15')](JSON['stringify'](_0x447c85));});});},Migration['prototype'][_0x5e5866('0x10')]=function(_0x2be8a7,_0x331a7e){const _0x4d0a6f=_0x5e5866,_0x5bc4cf=this;this['sequence'][_0x4d0a6f('0x11')](function(){const _0xb80a38=_0x4d0a6f;return _0x5bc4cf['queryInterface'][_0xb80a38('0x10')](_0x2be8a7,_0x331a7e)[_0xb80a38('0xa')](function(){const _0x19c2f1=_0xb80a38;logger[_0x19c2f1('0x15')](_0x19c2f1('0x1f'),_0x331a7e,_0x2be8a7);})[_0xb80a38('0x17')](function(_0x3a9185){const _0x59daee=_0xb80a38;logger['info'](util[_0x59daee('0x1e')](_0x3a9185,{'showHidden':![],'depth':null}));});});},Migration[_0x5e5866('0x1d')][_0x5e5866('0xb')]=function(_0x3318cc,_0x34323e,_0x298a9e){const _0x2a7a50=_0x5e5866,_0x26631c=this;this[_0x2a7a50('0x20')][_0x2a7a50('0x11')](function(){const _0x119e7d=_0x2a7a50;return _0x26631c[_0x119e7d('0x1a')]['renameColumn'](_0x3318cc,_0x34323e,_0x298a9e)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x34323e,_0x298a9e,_0x3318cc);})['catch'](function(_0x54395c){const _0xdd5aee=_0x119e7d;logger[_0xdd5aee('0x15')](util['inspect'](_0x54395c,{'showHidden':![],'depth':null}));});});},Migration[_0x5e5866('0x1d')]['final']=function(_0x2a3b6c){const _0x30c833=_0x5e5866;this[_0x30c833('0x20')]['enqueue'](function(){return _0x2a3b6c();});},module[_0x5e5866('0x7')]={'up':function(_0x12b6f5,_0x354e44){return new Promise(function(_0x5aa035){const _0x127d5a=a937_0x963c,_0x23e5b9=new Migration(_0x12b6f5);_0x23e5b9[_0x127d5a('0x23')](_0x127d5a('0xf')),_0x23e5b9[_0x127d5a('0x4')]('report_queue',[_0x127d5a('0xe')],_0x127d5a('0xe')),_0x23e5b9[_0x127d5a('0x4')](_0x127d5a('0x9'),[_0x127d5a('0x8')],'queuecallerexitreason'),_0x23e5b9[_0x127d5a('0x22')](_0x127d5a('0x9'),_0x127d5a('0x16'),{'type':_0x354e44[_0x127d5a('0x12')]}),_0x23e5b9[_0x127d5a('0x23')]('INSERT\x20INTO\x20`square_projects`\x20(`name`,\x20`description`,\x20`notes`,\x20`preproduction`,\x20`production`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27AgentManagement\x27,\x20\x27Agent\x20Management\x20sample\x20auto\x20generated\x27,\x20NULL,\x20X\x273C6D7847726170684D6F64656C20677269643D223122206775696465733D22312220746F6F6C746970733D22312220636F6E6E6563743D22312220666F6C643D22312220706167653D22302220706167655363616C653D223122207061676557696474683D223832362220706167654865696768743D2231313639223E0A20203C726F6F743E0A202020203C6D7843656C6C2069643D2230222F3E0A202020203C6D7843656C6C2069643D22312220706172656E743D2230222F3E0A202020203C7374617274206C6162656C3D2253746172742220616E737765723D22796573222069643D2239223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F656E7472792F73746172745F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D2234302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F73746172743E0A202020203C6D656E75206C6162656C3D224D656E75222066696C655F69643D222220726573706F6E73653D2235222064696769743D2231222072657472793D223122207661726961626C655F69643D2230222069643D223136223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F6D656E755F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223137302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6D656E753E0A202020203C6C6F67696E206C6162656C3D224C6F67696E222066696E6442793D22696E7465726E616C222069643D223339223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F6C6F67696E5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D223132222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6C6F67696E3E0A202020203C7061757365206C6162656C3D225061757365222066696E6442793D22696E7465726E616C222070617573655F69643D22222069643D223430223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F70617573655F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22333434222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F70617573653E0A202020203C756E7061757365206C6162656C3D22556E7061757365222066696E6442793D22696E7465726E616C222069643D223431223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F756E70617573655F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22343634222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F756E70617573653E0A202020203C6C6F676F7574206C6162656C3D224C6F676F7574222066696E6442793D22696E7465726E616C222069643D223432223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F6C6F676F75745F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22313332222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6C6F676F75743E0A202020203C6D7843656C6C2069643D223433222076616C75653D22312220706172656E743D22312220736F757263653D22313622207461726765743D2233392220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223231302220793D22313432222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223434222076616C75653D22322220706172656E743D22312220736F757263653D22313622207461726765743D2234322220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223435222076616C75653D22332220706172656E743D22312220736F757263653D22313622207461726765743D2234302220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223436222076616C75653D22342220706172656E743D22312220736F757263653D22313622207461726765743D2234312220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223231302220793D22343134222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2234372220706172656E743D22312220736F757263653D223922207461726765743D2231362220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223438223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223435302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C6D7843656C6C2069643D223530222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343222207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223531222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343022207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C68616E677570206C6162656C3D2248616E677570222069643D223533223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F63616C6C5F6D616E6167656D656E742F68616E6775705F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223735302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F68616E6775703E0A202020203C6D7843656C6C2069643D2235342220706172656E743D22312220736F757263653D22343822207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223535222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22333922207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223439302220793D22313730222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223536222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343122207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223439302220793D22333930222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223537223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22313332222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223538223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D223132222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223539223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22333434222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223630223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22343634222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C6D7843656C6C2069643D223631222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22333922207461726765743D2235382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223632222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343222207461726765743D2235372220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223633222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343022207461726765743D2235392220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223634222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343122207461726765743D2236302220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236352220706172656E743D22312220736F757263653D22353822207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236362220706172656E743D22312220736F757263653D22353722207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236372220706172656E743D22312220736F757263653D22353922207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236382220706172656E743D22312220736F757263653D22363022207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A20203C2F726F6F743E0A3C2F6D7847726170684D6F64656C3E\x27,\x20X\x273C6D7847726170684D6F64656C20677269643D223122206775696465733D22312220746F6F6C746970733D22312220636F6E6E6563743D22312220666F6C643D22312220706167653D22302220706167655363616C653D223122207061676557696474683D223832362220706167654865696768743D2231313639223E0A20203C726F6F743E0A202020203C6D7843656C6C2069643D2230222F3E0A202020203C6D7843656C6C2069643D22312220706172656E743D2230222F3E0A202020203C7374617274206C6162656C3D2253746172742220616E737765723D22796573222069643D2239223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F656E7472792F73746172745F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D2234302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F73746172743E0A202020203C6D656E75206C6162656C3D224D656E75222066696C655F69643D222220726573706F6E73653D2235222064696769743D2231222072657472793D223122207661726961626C655F69643D2230222069643D223136223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F6D656E755F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223137302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6D656E753E0A202020203C6C6F67696E206C6162656C3D224C6F67696E222066696E6442793D22696E7465726E616C222069643D223339223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F6C6F67696E5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D223132222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6C6F67696E3E0A202020203C7061757365206C6162656C3D225061757365222066696E6442793D22696E7465726E616C222070617573655F69643D22222069643D223430223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F70617573655F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22333434222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F70617573653E0A202020203C756E7061757365206C6162656C3D22556E7061757365222066696E6442793D22696E7465726E616C222069643D223431223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F756E70617573655F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22343634222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F756E70617573653E0A202020203C6C6F676F7574206C6162656C3D224C6F676F7574222066696E6442793D22696E7465726E616C222069643D223432223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F6167656E745F6D616E6167656D656E742F6C6F676F75745F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223332302220793D22313332222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F6C6F676F75743E0A202020203C6D7843656C6C2069643D223433222076616C75653D22312220706172656E743D22312220736F757263653D22313622207461726765743D2233392220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223231302220793D22313432222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223434222076616C75653D22322220706172656E743D22312220736F757263653D22313622207461726765743D2234322220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223435222076616C75653D22332220706172656E743D22312220736F757263653D22313622207461726765743D2234302220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223436222076616C75653D22342220706172656E743D22312220736F757263653D22313622207461726765743D2234312220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223231302220793D22343134222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2234372220706172656E743D22312220736F757263653D223922207461726765743D2231362220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223438223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223435302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C6D7843656C6C2069643D223530222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343222207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223531222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343022207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C68616E677570206C6162656C3D2248616E677570222069643D223533223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F63616C6C5F6D616E6167656D656E742F68616E6775705F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223735302220793D22323338222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F68616E6775703E0A202020203C6D7843656C6C2069643D2235342220706172656E743D22312220736F757263653D22343822207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223535222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22333922207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223439302220793D22313730222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223536222076616C75653D226661696C7572652220706172656E743D22312220736F757263653D22343122207461726765743D2234382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279223E0A20202020202020203C41727261792061733D22706F696E7473223E0A202020202020202020203C6D78506F696E7420783D223439302220793D22333930222F3E0A20202020202020203C2F41727261793E0A2020202020203C2F6D7847656F6D657472793E0A202020203C2F6D7843656C6C3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223537223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22313332222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223538223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D223132222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223539223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22333434222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C706C61796261636B206C6162656C3D22506C61796261636B222066696C655F69643D2222206F7074733D22222069643D223630223E0A2020202020203C6D7843656C6C207374796C653D22696D6167653B68746D6C3D313B6C6162656C4261636B67726F756E64436F6C6F723D236666666666663B696D6167653D2F6173736574732F706C7567696E732F7371756172652F7374656E63696C732F706C61796261636B2F706C61796261636B5F313238783132382E706E672220706172656E743D223122207665727465783D2231223E0A20202020202020203C6D7847656F6D6574727920783D223630302220793D22343634222077696474683D22383022206865696768743D223830222061733D2267656F6D65747279222F3E0A2020202020203C2F6D7843656C6C3E0A202020203C2F706C61796261636B3E0A202020203C6D7843656C6C2069643D223631222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22333922207461726765743D2235382220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223632222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343222207461726765743D2235372220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223633222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343022207461726765743D2235392220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D223634222076616C75653D22737563636573732220706172656E743D22312220736F757263653D22343122207461726765743D2236302220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236352220706172656E743D22312220736F757263653D22353822207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236362220706172656E743D22312220736F757263653D22353722207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236372220706172656E743D22312220736F757263653D22353922207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A202020203C6D7843656C6C2069643D2236382220706172656E743D22312220736F757263653D22363022207461726765743D2235332220656467653D2231223E0A2020202020203C6D7847656F6D657472792072656C61746976653D2231222061733D2267656F6D65747279222F3E0A202020203C2F6D7843656C6C3E0A20203C2F726F6F743E0A3C2F6D7847726170684D6F64656C3E\x27,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x23e5b9[_0x127d5a('0x23')](_0x127d5a('0x5')),_0x23e5b9[_0x127d5a('0x23')]('INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Logout\x27,\x20\x27agentmanagement-logout\x27,\x20\x27Agent\x20Logout\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x23e5b9[_0x127d5a('0x23')](_0x127d5a('0x24')),_0x23e5b9['query'](_0x127d5a('0x1')),_0x23e5b9[_0x127d5a('0x23')]('INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20End\x20Pause\x27,\x20\x27agentmanagement-unpause\x27,\x20\x27Agent\x20End\x20Pause\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x23e5b9[_0x127d5a('0x23')]('INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Action\x20Failure\x27,\x20\x27agentmanagement-action-failure\x27,\x20\x27Agent\x20Action\x20Failure\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x23e5b9['final'](_0x5aa035);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.59.js b/server/migrations/2.0.59.js index c5b4d82..f471d74 100644 --- a/server/migrations/2.0.59.js +++ b/server/migrations/2.0.59.js @@ -1 +1 @@ -const a938_0x28f9=['addColumn','alias','users','enqueue','dialPrefix','BOOLEAN','DATE','INTEGER','addIndex','dropTable','migration','catch','renameColumn','UNSIGNED','STRING','skype','queryInterface','join','cm_contacts','mail_interactions','inspect','UserId','sequelize','priority','removeColumn','changeColumn','Added\x20column\x20%s\x20to\x20%s','DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)','scheduledat','chat_interactions','prototype','final','settings','query','exports','tail','fax_interactions','Removed\x20column\x20%s\x20from\x20%s','sequence','openedBy','campaigns','ALTER\x20TABLE\x20`voice_voicemail_messages`\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_voicemail_messages_ibfk_1`\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`mailboxuser`)\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_voicemail(`mailbox`)\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','NOW','phoneBarAutoUpdaterUrl','../config/logger','stringify','util','info','finally','query\x20%s','then','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s'];(function(_0xc40507,_0x28f92e){const _0x475252=function(_0x2b8093){while(--_0x2b8093){_0xc40507['push'](_0xc40507['shift']());}};_0x475252(++_0x28f92e);}(a938_0x28f9,0xee));const a938_0x4752=function(_0xc40507,_0x28f92e){_0xc40507=_0xc40507-0x0;let _0x475252=a938_0x28f9[_0xc40507];return _0x475252;};const _0x3390c8=a938_0x4752;'use strict';const util=require(_0x3390c8('0x14')),logger=require(_0x3390c8('0x12'))(_0x3390c8('0x25')),Sequence=function(){};Sequence[_0x3390c8('0x4')]['enqueue']=function(_0x2b8093){const _0x1e103a=_0x3390c8;this[_0x1e103a('0x9')]=this['tail']?this['tail'][_0x1e103a('0x16')](_0x2b8093):_0x2b8093();};const Migration=function(_0x236608){const _0x26a6b7=_0x3390c8;this['queryInterface']=_0x236608,this[_0x26a6b7('0xc')]=new Sequence();};Migration[_0x3390c8('0x4')]['changeColumn']=function(_0x4cfc61,_0x39c288,_0x4a5a71){const _0x265b4c=_0x3390c8,_0x27a90e=this;this[_0x265b4c('0xc')][_0x265b4c('0x1e')](function(){const _0x3b0264=_0x265b4c;return _0x27a90e[_0x3b0264('0x2b')][_0x3b0264('0x34')](_0x4cfc61,_0x39c288,_0x4a5a71)[_0x3b0264('0x18')](function(){const _0x52349c=_0x3b0264;logger[_0x52349c('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x39c288,_0x4cfc61);})[_0x3b0264('0x26')](function(_0x184f06){const _0x1e2445=_0x3b0264;logger['info'](JSON[_0x1e2445('0x13')](_0x184f06));});});},Migration[_0x3390c8('0x4')][_0x3390c8('0x1b')]=function(_0x5aad73,_0x1a7c2f,_0x28b871){const _0x483568=_0x3390c8,_0x12745c=this;this[_0x483568('0xc')]['enqueue'](function(){const _0x38f9b7=_0x483568;return _0x12745c[_0x38f9b7('0x2b')]['addColumn'](_0x5aad73,_0x1a7c2f,_0x28b871)['then'](function(){const _0x20c916=_0x38f9b7;logger['info'](_0x20c916('0x0'),_0x1a7c2f,_0x5aad73);})[_0x38f9b7('0x26')](function(_0x4f8594){const _0x59dddc=_0x38f9b7;logger[_0x59dddc('0x15')](JSON[_0x59dddc('0x13')](_0x4f8594));});});},Migration[_0x3390c8('0x4')][_0x3390c8('0x24')]=function(_0x53c7cc){const _0xc7166e=_0x3390c8,_0x39de33=this;this[_0xc7166e('0xc')]['enqueue'](function(){const _0x180e01=_0xc7166e;return _0x39de33['queryInterface'][_0x180e01('0x24')](_0x53c7cc,{'force':!![]})[_0x180e01('0x18')](function(){const _0x2c0957=_0x180e01;logger[_0x2c0957('0x15')](_0x2c0957('0x1a'),_0x53c7cc);})[_0x180e01('0x26')](function(_0x2d840d){const _0x4cbf49=_0x180e01;logger[_0x4cbf49('0x15')](JSON['stringify'](_0x2d840d));});});},Migration[_0x3390c8('0x4')][_0x3390c8('0x23')]=function(_0x4f06eb,_0x4c64ae,_0x137f33){const _0x415bd1=_0x3390c8,_0xc16f35=this;this['sequence'][_0x415bd1('0x1e')](function(){const _0xf24c4d=_0x415bd1;return _0xc16f35[_0xf24c4d('0x2b')][_0xf24c4d('0x23')](_0x4f06eb,_0x4c64ae,{'indexName':_0x137f33})[_0xf24c4d('0x18')](function(){const _0x14c0ab=_0xf24c4d;logger[_0x14c0ab('0x15')](_0x14c0ab('0x19'),_0x4f06eb,_0x4c64ae[_0x14c0ab('0x2c')](','),_0x137f33);})[_0xf24c4d('0x26')](function(_0x5bb90a){const _0x4a1fe4=_0xf24c4d;logger[_0x4a1fe4('0x15')](JSON[_0x4a1fe4('0x13')](_0x5bb90a));});});},Migration[_0x3390c8('0x4')][_0x3390c8('0x7')]=function(_0x151db3){const _0x137216=_0x3390c8,_0x1ac7ae=this;this[_0x137216('0xc')][_0x137216('0x1e')](function(){const _0x448809=_0x137216;return _0x1ac7ae[_0x448809('0x2b')][_0x448809('0x31')][_0x448809('0x7')](_0x151db3)[_0x448809('0x18')](function(){const _0x282352=_0x448809;logger['info'](_0x282352('0x17'),_0x151db3);})[_0x448809('0x26')](function(_0xfec42e){logger['info'](JSON['stringify'](_0xfec42e));});});},Migration[_0x3390c8('0x4')][_0x3390c8('0x33')]=function(_0x5c814e,_0x2ec03b){const _0xb0f373=this;this['sequence']['enqueue'](function(){const _0x2245a1=a938_0x4752;return _0xb0f373['queryInterface'][_0x2245a1('0x33')](_0x5c814e,_0x2ec03b)['then'](function(){const _0x1b557d=_0x2245a1;logger[_0x1b557d('0x15')](_0x1b557d('0xb'),_0x2ec03b,_0x5c814e);})[_0x2245a1('0x26')](function(_0x2fd037){const _0x116e34=_0x2245a1;logger[_0x116e34('0x15')](util['inspect'](_0x2fd037,{'showHidden':![],'depth':null}));});});},Migration[_0x3390c8('0x4')][_0x3390c8('0x27')]=function(_0x41fe1d,_0x2c4bb1,_0x422b1e){const _0xd9f1b1=_0x3390c8,_0x178b68=this;this[_0xd9f1b1('0xc')][_0xd9f1b1('0x1e')](function(){const _0x4ce056=_0xd9f1b1;return _0x178b68[_0x4ce056('0x2b')][_0x4ce056('0x27')](_0x41fe1d,_0x2c4bb1,_0x422b1e)[_0x4ce056('0x18')](function(){const _0x1d297f=_0x4ce056;logger[_0x1d297f('0x15')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2c4bb1,_0x422b1e,_0x41fe1d);})[_0x4ce056('0x26')](function(_0x5cd5da){const _0x152d56=_0x4ce056;logger[_0x152d56('0x15')](util[_0x152d56('0x2f')](_0x5cd5da,{'showHidden':![],'depth':null}));});});},Migration[_0x3390c8('0x4')][_0x3390c8('0x5')]=function(_0x18f0c8){const _0x5ae69b=_0x3390c8;this[_0x5ae69b('0xc')][_0x5ae69b('0x1e')](function(){return _0x18f0c8();});},module[_0x3390c8('0x8')]={'up':function(_0x54b12f,_0x5c090f){return new Promise(function(_0x584ea4){const _0x5db2dd=a938_0x4752,_0x33e81a=new Migration(_0x54b12f);_0x33e81a[_0x5db2dd('0x1b')]('settings','phoneBarAutoUpdater',{'type':_0x5c090f[_0x5db2dd('0x20')],'defaultValue':!![]}),_0x33e81a[_0x5db2dd('0x1b')](_0x5db2dd('0x6'),_0x5db2dd('0x11'),{'type':_0x5c090f['STRING'],'defaultValue':'https://www.xcally.com/bar/phonebar/autoupdater.xml'}),_0x33e81a['addColumn'](_0x5db2dd('0xe'),_0x5db2dd('0x1f'),{'type':_0x5c090f[_0x5db2dd('0x29')]}),_0x33e81a[_0x5db2dd('0x1b')]('cm_lists',_0x5db2dd('0x1f'),{'type':_0x5c090f[_0x5db2dd('0x29')]}),_0x33e81a[_0x5db2dd('0x1b')](_0x5db2dd('0x1d'),_0x5db2dd('0x1c'),{'type':_0x5c090f[_0x5db2dd('0x29')]}),_0x33e81a[_0x5db2dd('0x1b')]('cm_contacts',_0x5db2dd('0x2a'),{'type':_0x5c090f[_0x5db2dd('0x29')]}),_0x33e81a[_0x5db2dd('0x1b')](_0x5db2dd('0x2d'),_0x5db2dd('0x30'),{'type':_0x5c090f[_0x5db2dd('0x22')]}),_0x33e81a[_0x5db2dd('0x1b')](_0x5db2dd('0x2d'),_0x5db2dd('0x32'),{'type':_0x5c090f[_0x5db2dd('0x22')](0x2)[_0x5db2dd('0x28')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0x33e81a[_0x5db2dd('0x1b')](_0x5db2dd('0x2d'),_0x5db2dd('0x2'),{'type':_0x5c090f[_0x5db2dd('0x21')],'defaultValue':_0x5c090f[_0x5db2dd('0x10')]}),_0x33e81a[_0x5db2dd('0x1b')](_0x5db2dd('0x2e'),_0x5db2dd('0xd'),{'type':_0x5c090f['STRING'],'defaultValue':''}),_0x33e81a[_0x5db2dd('0x1b')](_0x5db2dd('0x3'),'openedBy',{'type':_0x5c090f[_0x5db2dd('0x29')],'defaultValue':''}),_0x33e81a[_0x5db2dd('0x1b')]('sms_interactions',_0x5db2dd('0xd'),{'type':_0x5c090f['STRING'],'defaultValue':''}),_0x33e81a[_0x5db2dd('0x1b')]('openchannel_interactions',_0x5db2dd('0xd'),{'type':_0x5c090f[_0x5db2dd('0x29')],'defaultValue':''}),_0x33e81a['addColumn'](_0x5db2dd('0xa'),_0x5db2dd('0xd'),{'type':_0x5c090f[_0x5db2dd('0x29')],'defaultValue':''}),_0x33e81a[_0x5db2dd('0x7')](_0x5db2dd('0x1')),_0x33e81a[_0x5db2dd('0x7')](_0x5db2dd('0xf')),_0x33e81a['final'](_0x584ea4);});},'down':function(){}}; \ No newline at end of file +const a938_0x496e=['final','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','cm_lists','DATE','prototype','dialPrefix','https://www.xcally.com/bar/phonebar/autoupdater.xml','cm_contacts','openedBy','../config/logger','openchannel_interactions','dropTable','sequelize','sms_interactions','migration','chat_interactions','settings','addColumn','INTEGER','mail_interactions','ALTER\x20TABLE\x20`voice_voicemail_messages`\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_voicemail_messages_ibfk_1`\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`mailboxuser`)\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_voicemail(`mailbox`)\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','tail','STRING','exports','changeColumn','finally','sequence','NOW','removeColumn','campaigns','users','stringify','enqueue','info','inspect','then','query\x20%s','addIndex','query','UserId','fax_interactions','Added\x20column\x20%s\x20to\x20%s','UNSIGNED','alias','renameColumn','catch','addIndex\x20%s\x20%s\x20%s','skype','phoneBarAutoUpdaterUrl','util','scheduledat','phoneBarAutoUpdater','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','table\x20dropped\x20%s'];(function(_0x38ac99,_0x496e04){const _0x272033=function(_0x2ea42f){while(--_0x2ea42f){_0x38ac99['push'](_0x38ac99['shift']());}};_0x272033(++_0x496e04);}(a938_0x496e,0xc9));const a938_0x2720=function(_0x38ac99,_0x496e04){_0x38ac99=_0x38ac99-0x0;let _0x272033=a938_0x496e[_0x38ac99];return _0x272033;};const _0x5ad9f4=a938_0x2720;'use strict';const util=require(_0x5ad9f4('0x14')),logger=require(_0x5ad9f4('0x25'))(_0x5ad9f4('0x2a')),Sequence=function(){};Sequence['prototype'][_0x5ad9f4('0x3')]=function(_0x2ea42f){const _0x1a8b62=_0x5ad9f4;this[_0x1a8b62('0x31')]=this[_0x1a8b62('0x31')]?this[_0x1a8b62('0x31')][_0x1a8b62('0x35')](_0x2ea42f):_0x2ea42f();};const Migration=function(_0x13b966){const _0x45ff19=_0x5ad9f4;this['queryInterface']=_0x13b966,this[_0x45ff19('0x36')]=new Sequence();};Migration[_0x5ad9f4('0x20')]['changeColumn']=function(_0x9cc09b,_0x185a24,_0x22f2fd){const _0x351d62=_0x5ad9f4,_0x4adef7=this;this['sequence'][_0x351d62('0x3')](function(){const _0x116304=_0x351d62;return _0x4adef7[_0x116304('0x17')][_0x116304('0x34')](_0x9cc09b,_0x185a24,_0x22f2fd)['then'](function(){const _0x2e8b27=_0x116304;logger[_0x2e8b27('0x4')](_0x2e8b27('0x18'),_0x185a24,_0x9cc09b);})[_0x116304('0x10')](function(_0x45ac0a){const _0x43df01=_0x116304;logger[_0x43df01('0x4')](JSON[_0x43df01('0x2')](_0x45ac0a));});});},Migration[_0x5ad9f4('0x20')][_0x5ad9f4('0x2d')]=function(_0x21d1fd,_0x48fc7e,_0xdd1cb0){const _0x15eaa5=_0x5ad9f4,_0x41016a=this;this[_0x15eaa5('0x36')][_0x15eaa5('0x3')](function(){const _0x44c232=_0x15eaa5;return _0x41016a[_0x44c232('0x17')][_0x44c232('0x2d')](_0x21d1fd,_0x48fc7e,_0xdd1cb0)[_0x44c232('0x6')](function(){const _0x4824fd=_0x44c232;logger['info'](_0x4824fd('0xc'),_0x48fc7e,_0x21d1fd);})[_0x44c232('0x10')](function(_0x294917){const _0x39ed38=_0x44c232;logger[_0x39ed38('0x4')](JSON[_0x39ed38('0x2')](_0x294917));});});},Migration[_0x5ad9f4('0x20')][_0x5ad9f4('0x27')]=function(_0x178c2a){const _0x2819de=_0x5ad9f4,_0x3df9f8=this;this[_0x2819de('0x36')][_0x2819de('0x3')](function(){const _0x358ff3=_0x2819de;return _0x3df9f8[_0x358ff3('0x17')][_0x358ff3('0x27')](_0x178c2a,{'force':!![]})[_0x358ff3('0x6')](function(){const _0x1d1e2c=_0x358ff3;logger[_0x1d1e2c('0x4')](_0x1d1e2c('0x1a'),_0x178c2a);})[_0x358ff3('0x10')](function(_0x273793){const _0x39c911=_0x358ff3;logger[_0x39c911('0x4')](JSON[_0x39c911('0x2')](_0x273793));});});},Migration[_0x5ad9f4('0x20')][_0x5ad9f4('0x8')]=function(_0x55270e,_0xfb6969,_0x3e617a){const _0x2c95d4=_0x5ad9f4,_0x2a7d28=this;this[_0x2c95d4('0x36')]['enqueue'](function(){const _0x57d538=_0x2c95d4;return _0x2a7d28[_0x57d538('0x17')][_0x57d538('0x8')](_0x55270e,_0xfb6969,{'indexName':_0x3e617a})['then'](function(){const _0x1b0985=_0x57d538;logger[_0x1b0985('0x4')](_0x1b0985('0x11'),_0x55270e,_0xfb6969['join'](','),_0x3e617a);})['catch'](function(_0x5aff6d){const _0x43e1c3=_0x57d538;logger[_0x43e1c3('0x4')](JSON[_0x43e1c3('0x2')](_0x5aff6d));});});},Migration[_0x5ad9f4('0x20')][_0x5ad9f4('0x9')]=function(_0x3590fc){const _0x1c99ec=_0x5ad9f4,_0x5165b1=this;this[_0x1c99ec('0x36')][_0x1c99ec('0x3')](function(){const _0x36e227=_0x1c99ec;return _0x5165b1[_0x36e227('0x17')][_0x36e227('0x28')][_0x36e227('0x9')](_0x3590fc)[_0x36e227('0x6')](function(){const _0x560f57=_0x36e227;logger['info'](_0x560f57('0x7'),_0x3590fc);})[_0x36e227('0x10')](function(_0xf3276a){logger['info'](JSON['stringify'](_0xf3276a));});});},Migration[_0x5ad9f4('0x20')]['removeColumn']=function(_0x59132d,_0x26988e){const _0x29659e=_0x5ad9f4,_0x45f77c=this;this['sequence'][_0x29659e('0x3')](function(){const _0x5d5df6=_0x29659e;return _0x45f77c[_0x5d5df6('0x17')][_0x5d5df6('0x38')](_0x59132d,_0x26988e)[_0x5d5df6('0x6')](function(){const _0x2a402b=_0x5d5df6;logger[_0x2a402b('0x4')](_0x2a402b('0x1c'),_0x26988e,_0x59132d);})[_0x5d5df6('0x10')](function(_0x13fe13){const _0x23af22=_0x5d5df6;logger['info'](util[_0x23af22('0x5')](_0x13fe13,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5ad9f4('0xf')]=function(_0x162c90,_0x4faf34,_0xe26c50){const _0x437187=_0x5ad9f4,_0x25b253=this;this[_0x437187('0x36')]['enqueue'](function(){const _0x5a25d9=_0x437187;return _0x25b253[_0x5a25d9('0x17')]['renameColumn'](_0x162c90,_0x4faf34,_0xe26c50)['then'](function(){const _0x12de33=_0x5a25d9;logger[_0x12de33('0x4')](_0x12de33('0x1d'),_0x4faf34,_0xe26c50,_0x162c90);})['catch'](function(_0x406d43){const _0x5b412e=_0x5a25d9;logger[_0x5b412e('0x4')](util[_0x5b412e('0x5')](_0x406d43,{'showHidden':![],'depth':null}));});});},Migration[_0x5ad9f4('0x20')][_0x5ad9f4('0x1b')]=function(_0x2b1864){const _0x410ad1=_0x5ad9f4;this[_0x410ad1('0x36')]['enqueue'](function(){return _0x2b1864();});},module[_0x5ad9f4('0x33')]={'up':function(_0x154a3e,_0x1fa981){return new Promise(function(_0xfb6207){const _0x3da493=a938_0x2720,_0x271c6a=new Migration(_0x154a3e);_0x271c6a[_0x3da493('0x2d')]('settings',_0x3da493('0x16'),{'type':_0x1fa981[_0x3da493('0x19')],'defaultValue':!![]}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x2c'),_0x3da493('0x13'),{'type':_0x1fa981[_0x3da493('0x32')],'defaultValue':_0x3da493('0x22')}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x0'),_0x3da493('0x21'),{'type':_0x1fa981[_0x3da493('0x32')]}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x1e'),'dialPrefix',{'type':_0x1fa981[_0x3da493('0x32')]}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x1'),_0x3da493('0xe'),{'type':_0x1fa981[_0x3da493('0x32')]}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x23'),_0x3da493('0x12'),{'type':_0x1fa981[_0x3da493('0x32')]}),_0x271c6a['addColumn'](_0x3da493('0x23'),_0x3da493('0xa'),{'type':_0x1fa981[_0x3da493('0x2e')]}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x23'),'priority',{'type':_0x1fa981[_0x3da493('0x2e')](0x2)[_0x3da493('0xd')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x23'),_0x3da493('0x15'),{'type':_0x1fa981[_0x3da493('0x1f')],'defaultValue':_0x1fa981[_0x3da493('0x37')]}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x2f'),_0x3da493('0x24'),{'type':_0x1fa981[_0x3da493('0x32')],'defaultValue':''}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x2b'),_0x3da493('0x24'),{'type':_0x1fa981['STRING'],'defaultValue':''}),_0x271c6a['addColumn'](_0x3da493('0x29'),_0x3da493('0x24'),{'type':_0x1fa981[_0x3da493('0x32')],'defaultValue':''}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0x26'),'openedBy',{'type':_0x1fa981[_0x3da493('0x32')],'defaultValue':''}),_0x271c6a[_0x3da493('0x2d')](_0x3da493('0xb'),_0x3da493('0x24'),{'type':_0x1fa981[_0x3da493('0x32')],'defaultValue':''}),_0x271c6a[_0x3da493('0x9')]('DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)'),_0x271c6a[_0x3da493('0x9')](_0x3da493('0x30')),_0x271c6a[_0x3da493('0x1b')](_0xfb6207);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.60.js b/server/migrations/2.0.60.js index 2367809..2f19393 100644 --- a/server/migrations/2.0.60.js +++ b/server/migrations/2.0.60.js @@ -1 +1 @@ -const a939_0x30ec=['util','chat_websites','TEXT','info','mail_accounts','INTEGER','../config/logger','stringify','long','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','waitForTheAssignedAgent','renameColumn','openchannel_interactions','addColumn','prototype','removeColumn','then','addIndex\x20%s\x20%s\x20%s','inspect','tail','from','sequence','catch','Added\x20column\x20%s\x20to\x20%s','STRING','lastMsgBody','queryInterface','enqueue','final','sms_accounts','dropTable','finally','migration','website_alias','mail_interactions','users','sms_interactions','fax_interactions','addIndex','query','phoneBarEnableJaws','query\x20%s','openedBy','join'];(function(_0x111fbc,_0x30ece1){const _0x277322=function(_0x69a2fa){while(--_0x69a2fa){_0x111fbc['push'](_0x111fbc['shift']());}};_0x277322(++_0x30ece1);}(a939_0x30ec,0x112));const a939_0x2773=function(_0x111fbc,_0x30ece1){_0x111fbc=_0x111fbc-0x0;let _0x277322=a939_0x30ec[_0x111fbc];return _0x277322;};const _0x12b408=a939_0x2773;'use strict';const util=require(_0x12b408('0x22')),logger=require(_0x12b408('0x28'))(_0x12b408('0x16')),Sequence=function(){};Sequence[_0x12b408('0x4')][_0x12b408('0x11')]=function(_0x69a2fa){const _0x356f22=_0x12b408;this[_0x356f22('0x9')]=this[_0x356f22('0x9')]?this[_0x356f22('0x9')][_0x356f22('0x15')](_0x69a2fa):_0x69a2fa();};const Migration=function(_0x6d5f53){this['queryInterface']=_0x6d5f53,this['sequence']=new Sequence();};Migration[_0x12b408('0x4')]['changeColumn']=function(_0x38625e,_0x32f861,_0x1b8eb8){const _0x52030e=_0x12b408,_0x54ae79=this;this[_0x52030e('0xb')][_0x52030e('0x11')](function(){const _0x39cf38=_0x52030e;return _0x54ae79[_0x39cf38('0x10')]['changeColumn'](_0x38625e,_0x32f861,_0x1b8eb8)[_0x39cf38('0x6')](function(){const _0x339560=_0x39cf38;logger[_0x339560('0x25')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x32f861,_0x38625e);})[_0x39cf38('0xc')](function(_0x53d146){const _0x1e2f54=_0x39cf38;logger[_0x1e2f54('0x25')](JSON[_0x1e2f54('0x29')](_0x53d146));});});},Migration[_0x12b408('0x4')][_0x12b408('0x3')]=function(_0x4fb363,_0x11e9fc,_0x2da881){const _0x33c25c=_0x12b408,_0x339e56=this;this[_0x33c25c('0xb')][_0x33c25c('0x11')](function(){const _0x2b07fd=_0x33c25c;return _0x339e56[_0x2b07fd('0x10')][_0x2b07fd('0x3')](_0x4fb363,_0x11e9fc,_0x2da881)['then'](function(){const _0x221db1=_0x2b07fd;logger[_0x221db1('0x25')](_0x221db1('0xd'),_0x11e9fc,_0x4fb363);})[_0x2b07fd('0xc')](function(_0x2ae4ee){const _0x5ad5b2=_0x2b07fd;logger[_0x5ad5b2('0x25')](JSON[_0x5ad5b2('0x29')](_0x2ae4ee));});});},Migration[_0x12b408('0x4')][_0x12b408('0x14')]=function(_0x45d2cb){const _0x45972d=_0x12b408,_0x46cb80=this;this[_0x45972d('0xb')][_0x45972d('0x11')](function(){const _0x470578=_0x45972d;return _0x46cb80['queryInterface']['dropTable'](_0x45d2cb,{'force':!![]})['then'](function(){const _0x15c6aa=a939_0x2773;logger[_0x15c6aa('0x25')]('table\x20dropped\x20%s',_0x45d2cb);})[_0x470578('0xc')](function(_0x10c488){const _0x2d9a20=_0x470578;logger['info'](JSON[_0x2d9a20('0x29')](_0x10c488));});});},Migration[_0x12b408('0x4')][_0x12b408('0x1c')]=function(_0x3dfc17,_0x481424,_0x298cd5){const _0x476092=_0x12b408,_0x3dc3fe=this;this['sequence'][_0x476092('0x11')](function(){const _0x398a35=_0x476092;return _0x3dc3fe[_0x398a35('0x10')][_0x398a35('0x1c')](_0x3dfc17,_0x481424,{'indexName':_0x298cd5})[_0x398a35('0x6')](function(){const _0x3ade0f=_0x398a35;logger[_0x3ade0f('0x25')](_0x3ade0f('0x7'),_0x3dfc17,_0x481424[_0x3ade0f('0x21')](','),_0x298cd5);})['catch'](function(_0x56e26a){const _0x579aa2=_0x398a35;logger[_0x579aa2('0x25')](JSON[_0x579aa2('0x29')](_0x56e26a));});});},Migration[_0x12b408('0x4')][_0x12b408('0x1d')]=function(_0xb05990){const _0x414237=this;this['sequence']['enqueue'](function(){const _0x1ff638=a939_0x2773;return _0x414237[_0x1ff638('0x10')]['sequelize'][_0x1ff638('0x1d')](_0xb05990)[_0x1ff638('0x6')](function(){const _0x135afd=_0x1ff638;logger['info'](_0x135afd('0x1f'),_0xb05990);})['catch'](function(_0x5aa81b){const _0x2d4bc7=_0x1ff638;logger[_0x2d4bc7('0x25')](JSON[_0x2d4bc7('0x29')](_0x5aa81b));});});},Migration[_0x12b408('0x4')][_0x12b408('0x5')]=function(_0x1f3216,_0x5c53fb){const _0x72bec4=_0x12b408,_0x3abcb5=this;this[_0x72bec4('0xb')][_0x72bec4('0x11')](function(){const _0x30daf2=_0x72bec4;return _0x3abcb5[_0x30daf2('0x10')][_0x30daf2('0x5')](_0x1f3216,_0x5c53fb)[_0x30daf2('0x6')](function(){const _0x251983=_0x30daf2;logger[_0x251983('0x25')]('Removed\x20column\x20%s\x20from\x20%s',_0x5c53fb,_0x1f3216);})[_0x30daf2('0xc')](function(_0x5e9907){logger['info'](util['inspect'](_0x5e9907,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x12b408('0x1')]=function(_0x9990fe,_0x4f9146,_0x27c3ed){const _0x28bb7f=_0x12b408,_0x5cfd5a=this;this[_0x28bb7f('0xb')]['enqueue'](function(){const _0x4fd888=_0x28bb7f;return _0x5cfd5a[_0x4fd888('0x10')][_0x4fd888('0x1')](_0x9990fe,_0x4f9146,_0x27c3ed)[_0x4fd888('0x6')](function(){const _0xf66ae1=_0x4fd888;logger[_0xf66ae1('0x25')](_0xf66ae1('0x2b'),_0x4f9146,_0x27c3ed,_0x9990fe);})[_0x4fd888('0xc')](function(_0x4b8756){const _0x49e471=_0x4fd888;logger['info'](util[_0x49e471('0x8')](_0x4b8756,{'showHidden':![],'depth':null}));});});},Migration[_0x12b408('0x4')][_0x12b408('0x12')]=function(_0x45fa37){const _0x4930ee=_0x12b408;this['sequence'][_0x4930ee('0x11')](function(){return _0x45fa37();});},module['exports']={'up':function(_0xea6e1e,_0x44899c){return new Promise(function(_0x18c47c){const _0x1c739f=a939_0x2773,_0x55b38d=new Migration(_0xea6e1e);_0x55b38d['addColumn']('chat_websites','agentIdentifier',{'type':_0x44899c[_0x1c739f('0xe')],'defaultValue':_0x1c739f('0x17')}),_0x55b38d[_0x1c739f('0x3')](_0x1c739f('0x23'),_0x1c739f('0x0'),{'type':_0x44899c[_0x1c739f('0x27')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x55b38d['removeColumn']('chat_interactions',_0x1c739f('0x20')),_0x55b38d[_0x1c739f('0x5')](_0x1c739f('0x18'),_0x1c739f('0x20')),_0x55b38d[_0x1c739f('0x3')](_0x1c739f('0x18'),_0x1c739f('0xf'),{'type':_0x44899c[_0x1c739f('0x24')](_0x1c739f('0x2a'))}),_0x55b38d[_0x1c739f('0x5')](_0x1c739f('0x1a'),'openedBy'),_0x55b38d[_0x1c739f('0x5')](_0x1c739f('0x1b'),_0x1c739f('0x20')),_0x55b38d[_0x1c739f('0x5')](_0x1c739f('0x2'),_0x1c739f('0x20')),_0x55b38d[_0x1c739f('0x3')](_0x1c739f('0x2'),_0x1c739f('0xa'),{'type':_0x44899c['STRING']}),_0x55b38d[_0x1c739f('0x3')](_0x1c739f('0x26'),'waitForTheAssignedAgent',{'type':_0x44899c[_0x1c739f('0x27')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x55b38d['addColumn']('openchannel_accounts',_0x1c739f('0x0'),{'type':_0x44899c[_0x1c739f('0x27')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x55b38d[_0x1c739f('0x3')]('fax_accounts',_0x1c739f('0x0'),{'type':_0x44899c[_0x1c739f('0x27')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x55b38d[_0x1c739f('0x3')](_0x1c739f('0x13'),_0x1c739f('0x0'),{'type':_0x44899c[_0x1c739f('0x27')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x55b38d['addColumn'](_0x1c739f('0x19'),_0x1c739f('0x1e'),{'type':_0x44899c['BOOLEAN'],'defaultValue':![]}),_0x55b38d[_0x1c739f('0x12')](_0x18c47c);});},'down':function(){}}; \ No newline at end of file +const a939_0x4cd4=['phoneBarEnableJaws','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','removeColumn','query\x20%s','addIndex\x20%s\x20%s\x20%s','final','stringify','from','INTEGER','join','queryInterface','dropTable','openedBy','renameColumn','../config/logger','long','prototype','waitForTheAssignedAgent','fax_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s','users','sms_accounts','inspect','util','info','migration','then','changeColumn','openchannel_interactions','mail_interactions','chat_websites','website_alias','query','sequence','sms_interactions','tail','STRING','addIndex','catch','sequelize','enqueue','Removed\x20column\x20%s\x20from\x20%s','finally'];(function(_0x561c20,_0x4cd48a){const _0x471cef=function(_0x5082e0){while(--_0x5082e0){_0x561c20['push'](_0x561c20['shift']());}};_0x471cef(++_0x4cd48a);}(a939_0x4cd4,0x6f));const a939_0x471c=function(_0x561c20,_0x4cd48a){_0x561c20=_0x561c20-0x0;let _0x471cef=a939_0x4cd4[_0x561c20];return _0x471cef;};const _0x39fd12=a939_0x471c;'use strict';const util=require(_0x39fd12('0x1')),logger=require(_0x39fd12('0x24'))(_0x39fd12('0x3')),Sequence=function(){};Sequence[_0x39fd12('0x26')][_0x39fd12('0x12')]=function(_0x5082e0){const _0x45f519=_0x39fd12;this[_0x45f519('0xd')]=this[_0x45f519('0xd')]?this[_0x45f519('0xd')][_0x45f519('0x14')](_0x5082e0):_0x5082e0();};const Migration=function(_0x1964c5){const _0x1cc2c6=_0x39fd12;this['queryInterface']=_0x1964c5,this[_0x1cc2c6('0xb')]=new Sequence();};Migration['prototype'][_0x39fd12('0x5')]=function(_0x2d277b,_0x452161,_0x2e57f7){const _0x394ccc=_0x39fd12,_0x24cc12=this;this[_0x394ccc('0xb')]['enqueue'](function(){const _0x33b8d5=_0x394ccc;return _0x24cc12['queryInterface'][_0x33b8d5('0x5')](_0x2d277b,_0x452161,_0x2e57f7)[_0x33b8d5('0x4')](function(){const _0x4f1689=_0x33b8d5;logger['info'](_0x4f1689('0x29'),_0x452161,_0x2d277b);})[_0x33b8d5('0x10')](function(_0x60753c){const _0x445576=_0x33b8d5;logger[_0x445576('0x2')](JSON[_0x445576('0x1c')](_0x60753c));});});},Migration['prototype'][_0x39fd12('0x17')]=function(_0x69d641,_0x21834b,_0x22b642){const _0x132737=_0x39fd12,_0x7067f3=this;this[_0x132737('0xb')][_0x132737('0x12')](function(){const _0x4bb40f=_0x132737;return _0x7067f3['queryInterface']['addColumn'](_0x69d641,_0x21834b,_0x22b642)[_0x4bb40f('0x4')](function(){const _0x50fc51=_0x4bb40f;logger[_0x50fc51('0x2')]('Added\x20column\x20%s\x20to\x20%s',_0x21834b,_0x69d641);})[_0x4bb40f('0x10')](function(_0x87936b){const _0x680cd8=_0x4bb40f;logger[_0x680cd8('0x2')](JSON['stringify'](_0x87936b));});});},Migration[_0x39fd12('0x26')][_0x39fd12('0x21')]=function(_0xd0f8c0){const _0xe834d=_0x39fd12,_0x2dd050=this;this[_0xe834d('0xb')]['enqueue'](function(){const _0x4723e5=_0xe834d;return _0x2dd050['queryInterface'][_0x4723e5('0x21')](_0xd0f8c0,{'force':!![]})[_0x4723e5('0x4')](function(){const _0x4cfc38=_0x4723e5;logger[_0x4cfc38('0x2')]('table\x20dropped\x20%s',_0xd0f8c0);})[_0x4723e5('0x10')](function(_0x4ddff7){const _0x37c453=_0x4723e5;logger['info'](JSON[_0x37c453('0x1c')](_0x4ddff7));});});},Migration[_0x39fd12('0x26')][_0x39fd12('0xf')]=function(_0x14cad8,_0x5e37b4,_0x302a77){const _0xcba393=_0x39fd12,_0x3b6f6f=this;this[_0xcba393('0xb')][_0xcba393('0x12')](function(){const _0x549575=_0xcba393;return _0x3b6f6f[_0x549575('0x20')][_0x549575('0xf')](_0x14cad8,_0x5e37b4,{'indexName':_0x302a77})[_0x549575('0x4')](function(){const _0x2ac334=_0x549575;logger[_0x2ac334('0x2')](_0x2ac334('0x1a'),_0x14cad8,_0x5e37b4[_0x2ac334('0x1f')](','),_0x302a77);})[_0x549575('0x10')](function(_0xfef797){const _0x1d9ea2=_0x549575;logger['info'](JSON[_0x1d9ea2('0x1c')](_0xfef797));});});},Migration['prototype'][_0x39fd12('0xa')]=function(_0x45d491){const _0x2b6214=_0x39fd12,_0x4c7114=this;this[_0x2b6214('0xb')][_0x2b6214('0x12')](function(){const _0x24bebc=_0x2b6214;return _0x4c7114[_0x24bebc('0x20')][_0x24bebc('0x11')][_0x24bebc('0xa')](_0x45d491)[_0x24bebc('0x4')](function(){const _0xefe32=_0x24bebc;logger[_0xefe32('0x2')](_0xefe32('0x19'),_0x45d491);})[_0x24bebc('0x10')](function(_0x1a465e){const _0x120be3=_0x24bebc;logger[_0x120be3('0x2')](JSON[_0x120be3('0x1c')](_0x1a465e));});});},Migration[_0x39fd12('0x26')]['removeColumn']=function(_0x5bd5b8,_0x222824){const _0xde9906=_0x39fd12,_0x68f7a9=this;this[_0xde9906('0xb')]['enqueue'](function(){const _0xdb60c1=_0xde9906;return _0x68f7a9[_0xdb60c1('0x20')]['removeColumn'](_0x5bd5b8,_0x222824)[_0xdb60c1('0x4')](function(){const _0x4315fb=_0xdb60c1;logger[_0x4315fb('0x2')](_0x4315fb('0x13'),_0x222824,_0x5bd5b8);})[_0xdb60c1('0x10')](function(_0x23050b){const _0x3de526=_0xdb60c1;logger[_0x3de526('0x2')](util[_0x3de526('0x0')](_0x23050b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x39fd12('0x23')]=function(_0x3172ce,_0x5b4be3,_0x4a451b){const _0x516aec=_0x39fd12,_0x58c032=this;this[_0x516aec('0xb')][_0x516aec('0x12')](function(){const _0x264f63=_0x516aec;return _0x58c032['queryInterface']['renameColumn'](_0x3172ce,_0x5b4be3,_0x4a451b)[_0x264f63('0x4')](function(){const _0x26090d=_0x264f63;logger['info'](_0x26090d('0x16'),_0x5b4be3,_0x4a451b,_0x3172ce);})[_0x264f63('0x10')](function(_0x2dcd52){const _0x372122=_0x264f63;logger[_0x372122('0x2')](util[_0x372122('0x0')](_0x2dcd52,{'showHidden':![],'depth':null}));});});},Migration[_0x39fd12('0x26')][_0x39fd12('0x1b')]=function(_0x5d68d2){const _0x241838=_0x39fd12;this[_0x241838('0xb')][_0x241838('0x12')](function(){return _0x5d68d2();});},module['exports']={'up':function(_0x8ae574,_0x47a929){return new Promise(function(_0x4df99f){const _0x2cc3f2=a939_0x471c,_0x11457d=new Migration(_0x8ae574);_0x11457d[_0x2cc3f2('0x17')](_0x2cc3f2('0x8'),'agentIdentifier',{'type':_0x47a929[_0x2cc3f2('0xe')],'defaultValue':_0x2cc3f2('0x9')}),_0x11457d[_0x2cc3f2('0x17')]('chat_websites',_0x2cc3f2('0x27'),{'type':_0x47a929[_0x2cc3f2('0x1e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x11457d[_0x2cc3f2('0x18')]('chat_interactions',_0x2cc3f2('0x22')),_0x11457d[_0x2cc3f2('0x18')](_0x2cc3f2('0x7'),_0x2cc3f2('0x22')),_0x11457d[_0x2cc3f2('0x17')](_0x2cc3f2('0x7'),'lastMsgBody',{'type':_0x47a929['TEXT'](_0x2cc3f2('0x25'))}),_0x11457d[_0x2cc3f2('0x18')](_0x2cc3f2('0xc'),_0x2cc3f2('0x22')),_0x11457d[_0x2cc3f2('0x18')]('fax_interactions',_0x2cc3f2('0x22')),_0x11457d['removeColumn'](_0x2cc3f2('0x6'),_0x2cc3f2('0x22')),_0x11457d['addColumn'](_0x2cc3f2('0x6'),_0x2cc3f2('0x1d'),{'type':_0x47a929[_0x2cc3f2('0xe')]}),_0x11457d[_0x2cc3f2('0x17')]('mail_accounts',_0x2cc3f2('0x27'),{'type':_0x47a929[_0x2cc3f2('0x1e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x11457d['addColumn']('openchannel_accounts',_0x2cc3f2('0x27'),{'type':_0x47a929['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x11457d[_0x2cc3f2('0x17')](_0x2cc3f2('0x28'),_0x2cc3f2('0x27'),{'type':_0x47a929['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x11457d['addColumn'](_0x2cc3f2('0x2b'),'waitForTheAssignedAgent',{'type':_0x47a929[_0x2cc3f2('0x1e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x11457d[_0x2cc3f2('0x17')](_0x2cc3f2('0x2a'),_0x2cc3f2('0x15'),{'type':_0x47a929['BOOLEAN'],'defaultValue':![]}),_0x11457d[_0x2cc3f2('0x1b')](_0x4df99f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.61.js b/server/migrations/2.0.61.js index 5664065..3bbfe9c 100644 --- a/server/migrations/2.0.61.js +++ b/server/migrations/2.0.61.js @@ -1 +1 @@ -const a940_0x1022=['queryInterface','addIndex','query\x20%s','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','catch','renameColumn','final','addColumn','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','exports','removeColumn','query','tail','then','changeColumn','inspect','dropTable','prototype','util','enqueue'];(function(_0x24900d,_0x1022fb){const _0x35cd26=function(_0x2eed88){while(--_0x2eed88){_0x24900d['push'](_0x24900d['shift']());}};_0x35cd26(++_0x1022fb);}(a940_0x1022,0xd9));const a940_0x35cd=function(_0x24900d,_0x1022fb){_0x24900d=_0x24900d-0x0;let _0x35cd26=a940_0x1022[_0x24900d];return _0x35cd26;};const _0x5d48cc=a940_0x35cd;'use strict';const util=require(_0x5d48cc('0xf')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x5d48cc('0xe')][_0x5d48cc('0x10')]=function(_0x2eed88){const _0x25fd8a=_0x5d48cc;this[_0x25fd8a('0x9')]=this[_0x25fd8a('0x9')]?this[_0x25fd8a('0x9')][_0x25fd8a('0x18')](_0x2eed88):_0x2eed88();};const Migration=function(_0x5ac7b8){const _0x440aae=_0x5d48cc;this[_0x440aae('0x11')]=_0x5ac7b8,this[_0x440aae('0x16')]=new Sequence();};Migration[_0x5d48cc('0xe')][_0x5d48cc('0xb')]=function(_0x33cb0a,_0x4ff8dd,_0x8262d9){const _0x998ddb=_0x5d48cc,_0x4e044c=this;this['sequence'][_0x998ddb('0x10')](function(){const _0x112e20=_0x998ddb;return _0x4e044c[_0x112e20('0x11')]['changeColumn'](_0x33cb0a,_0x4ff8dd,_0x8262d9)[_0x112e20('0xa')](function(){const _0x5458b6=_0x112e20;logger[_0x5458b6('0x5')](_0x5458b6('0x17'),_0x4ff8dd,_0x33cb0a);})[_0x112e20('0x19')](function(_0x26e457){const _0x10d1bd=_0x112e20;logger[_0x10d1bd('0x5')](JSON[_0x10d1bd('0x3')](_0x26e457));});});},Migration[_0x5d48cc('0xe')]['addColumn']=function(_0x40b57d,_0x463d2a,_0x3dfe66){const _0x2364e4=_0x5d48cc,_0x287bdb=this;this[_0x2364e4('0x16')][_0x2364e4('0x10')](function(){const _0x230ca5=_0x2364e4;return _0x287bdb[_0x230ca5('0x11')][_0x230ca5('0x2')](_0x40b57d,_0x463d2a,_0x3dfe66)['then'](function(){const _0x42bc58=_0x230ca5;logger[_0x42bc58('0x5')](_0x42bc58('0x15'),_0x463d2a,_0x40b57d);})[_0x230ca5('0x19')](function(_0x82b74b){const _0x54e254=_0x230ca5;logger[_0x54e254('0x5')](JSON[_0x54e254('0x3')](_0x82b74b));});});},Migration[_0x5d48cc('0xe')][_0x5d48cc('0xd')]=function(_0x24f6ee){const _0x3f76d6=_0x5d48cc,_0x4ce37c=this;this[_0x3f76d6('0x16')]['enqueue'](function(){const _0x43529f=_0x3f76d6;return _0x4ce37c[_0x43529f('0x11')]['dropTable'](_0x24f6ee,{'force':!![]})[_0x43529f('0xa')](function(){const _0x15390b=_0x43529f;logger[_0x15390b('0x5')]('table\x20dropped\x20%s',_0x24f6ee);})['catch'](function(_0x1d7f10){const _0x3df9f6=_0x43529f;logger['info'](JSON[_0x3df9f6('0x3')](_0x1d7f10));});});},Migration[_0x5d48cc('0xe')][_0x5d48cc('0x12')]=function(_0x53d956,_0x551858,_0x18cd0b){const _0xb5dd1d=_0x5d48cc,_0x130afa=this;this[_0xb5dd1d('0x16')][_0xb5dd1d('0x10')](function(){const _0x5d04d3=_0xb5dd1d;return _0x130afa[_0x5d04d3('0x11')][_0x5d04d3('0x12')](_0x53d956,_0x551858,{'indexName':_0x18cd0b})[_0x5d04d3('0xa')](function(){const _0x2150c8=_0x5d04d3;logger['info'](_0x2150c8('0x14'),_0x53d956,_0x551858['join'](','),_0x18cd0b);})[_0x5d04d3('0x19')](function(_0x4d66e7){const _0x43bc38=_0x5d04d3;logger['info'](JSON[_0x43bc38('0x3')](_0x4d66e7));});});},Migration['prototype'][_0x5d48cc('0x8')]=function(_0x5d18a1){const _0x1e8531=_0x5d48cc,_0x121e40=this;this['sequence'][_0x1e8531('0x10')](function(){const _0x21b2a5=_0x1e8531;return _0x121e40['queryInterface']['sequelize'][_0x21b2a5('0x8')](_0x5d18a1)[_0x21b2a5('0xa')](function(){const _0x558679=_0x21b2a5;logger[_0x558679('0x5')](_0x558679('0x13'),_0x5d18a1);})[_0x21b2a5('0x19')](function(_0x298c71){const _0x3e3f3b=_0x21b2a5;logger[_0x3e3f3b('0x5')](JSON[_0x3e3f3b('0x3')](_0x298c71));});});},Migration[_0x5d48cc('0xe')][_0x5d48cc('0x7')]=function(_0x3d5385,_0x4058c0){const _0x444b0c=_0x5d48cc,_0x3883e9=this;this['sequence'][_0x444b0c('0x10')](function(){const _0x4f9fca=_0x444b0c;return _0x3883e9[_0x4f9fca('0x11')]['removeColumn'](_0x3d5385,_0x4058c0)[_0x4f9fca('0xa')](function(){const _0x26f7fd=_0x4f9fca;logger[_0x26f7fd('0x5')]('Removed\x20column\x20%s\x20from\x20%s',_0x4058c0,_0x3d5385);})[_0x4f9fca('0x19')](function(_0x11fbf4){const _0x4014ea=_0x4f9fca;logger['info'](util[_0x4014ea('0xc')](_0x11fbf4,{'showHidden':![],'depth':null}));});});},Migration[_0x5d48cc('0xe')][_0x5d48cc('0x0')]=function(_0x5dad71,_0x4359b8,_0x2e7ffc){const _0xadb66a=_0x5d48cc,_0xae6844=this;this['sequence'][_0xadb66a('0x10')](function(){const _0x4e8c49=_0xadb66a;return _0xae6844[_0x4e8c49('0x11')][_0x4e8c49('0x0')](_0x5dad71,_0x4359b8,_0x2e7ffc)[_0x4e8c49('0xa')](function(){const _0x5507cf=_0x4e8c49;logger[_0x5507cf('0x5')](_0x5507cf('0x4'),_0x4359b8,_0x2e7ffc,_0x5dad71);})[_0x4e8c49('0x19')](function(_0x1d8359){const _0xf445fe=_0x4e8c49;logger[_0xf445fe('0x5')](util['inspect'](_0x1d8359,{'showHidden':![],'depth':null}));});});},Migration[_0x5d48cc('0xe')][_0x5d48cc('0x1')]=function(_0x5e3130){const _0x4f067f=_0x5d48cc;this[_0x4f067f('0x16')][_0x4f067f('0x10')](function(){return _0x5e3130();});},module[_0x5d48cc('0x6')]={'up':function(_0x263f36){return new Promise(function(_0x57f273){const _0x5bebdd=new Migration(_0x263f36);_0x5bebdd['final'](_0x57f273);});},'down':function(){}}; \ No newline at end of file +const a940_0x4d80=['sequence','stringify','util','inspect','query','catch','sequelize','dropTable','final','changeColumn','tail','migration','then','query\x20%s','removeColumn','info','queryInterface','addIndex','addColumn','join','enqueue','renameColumn','table\x20dropped\x20%s','prototype'];(function(_0x59619e,_0x4d805f){const _0x5ccfb4=function(_0x247b13){while(--_0x247b13){_0x59619e['push'](_0x59619e['shift']());}};_0x5ccfb4(++_0x4d805f);}(a940_0x4d80,0xc3));const a940_0x5ccf=function(_0x59619e,_0x4d805f){_0x59619e=_0x59619e-0x0;let _0x5ccfb4=a940_0x4d80[_0x59619e];return _0x5ccfb4;};const _0x18380c=a940_0x5ccf;'use strict';const util=require(_0x18380c('0x17')),logger=require('../config/logger')(_0x18380c('0x8')),Sequence=function(){};Sequence[_0x18380c('0x14')]['enqueue']=function(_0x247b13){const _0x539ea4=_0x18380c;this[_0x539ea4('0x7')]=this[_0x539ea4('0x7')]?this[_0x539ea4('0x7')]['finally'](_0x247b13):_0x247b13();};const Migration=function(_0x2e1b08){const _0x1b3cfd=_0x18380c;this[_0x1b3cfd('0xd')]=_0x2e1b08,this[_0x1b3cfd('0x15')]=new Sequence();};Migration[_0x18380c('0x14')][_0x18380c('0x6')]=function(_0x3ae5b0,_0x6c167,_0x445df4){const _0x11f293=_0x18380c,_0x4e6a29=this;this[_0x11f293('0x15')][_0x11f293('0x11')](function(){const _0x144209=_0x11f293;return _0x4e6a29['queryInterface'][_0x144209('0x6')](_0x3ae5b0,_0x6c167,_0x445df4)[_0x144209('0x9')](function(){const _0x42b802=_0x144209;logger[_0x42b802('0xc')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x6c167,_0x3ae5b0);})[_0x144209('0x2')](function(_0x49dd35){const _0x2e5a09=_0x144209;logger['info'](JSON[_0x2e5a09('0x16')](_0x49dd35));});});},Migration['prototype'][_0x18380c('0xf')]=function(_0x2922f8,_0x1cd7ce,_0x236513){const _0x334d62=_0x18380c,_0x4f84e6=this;this[_0x334d62('0x15')][_0x334d62('0x11')](function(){const _0x59056e=_0x334d62;return _0x4f84e6[_0x59056e('0xd')][_0x59056e('0xf')](_0x2922f8,_0x1cd7ce,_0x236513)[_0x59056e('0x9')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x1cd7ce,_0x2922f8);})[_0x59056e('0x2')](function(_0x402b11){const _0x566bfe=_0x59056e;logger[_0x566bfe('0xc')](JSON[_0x566bfe('0x16')](_0x402b11));});});},Migration[_0x18380c('0x14')][_0x18380c('0x4')]=function(_0x48d84b){const _0x3d8572=_0x18380c,_0x13616c=this;this[_0x3d8572('0x15')][_0x3d8572('0x11')](function(){const _0xadc5a6=_0x3d8572;return _0x13616c[_0xadc5a6('0xd')][_0xadc5a6('0x4')](_0x48d84b,{'force':!![]})['then'](function(){const _0x4cc676=_0xadc5a6;logger['info'](_0x4cc676('0x13'),_0x48d84b);})[_0xadc5a6('0x2')](function(_0xaa6fe2){const _0x4c8613=_0xadc5a6;logger[_0x4c8613('0xc')](JSON[_0x4c8613('0x16')](_0xaa6fe2));});});},Migration[_0x18380c('0x14')][_0x18380c('0xe')]=function(_0x11094c,_0x170579,_0x4a2493){const _0x2b58a5=_0x18380c,_0x11c99e=this;this[_0x2b58a5('0x15')][_0x2b58a5('0x11')](function(){const _0x458dde=_0x2b58a5;return _0x11c99e['queryInterface'][_0x458dde('0xe')](_0x11094c,_0x170579,{'indexName':_0x4a2493})[_0x458dde('0x9')](function(){const _0x31aae7=_0x458dde;logger[_0x31aae7('0xc')]('addIndex\x20%s\x20%s\x20%s',_0x11094c,_0x170579[_0x31aae7('0x10')](','),_0x4a2493);})[_0x458dde('0x2')](function(_0x377ca7){const _0x3283d4=_0x458dde;logger[_0x3283d4('0xc')](JSON[_0x3283d4('0x16')](_0x377ca7));});});},Migration[_0x18380c('0x14')]['query']=function(_0x12636b){const _0xa8084a=_0x18380c,_0x35368f=this;this[_0xa8084a('0x15')][_0xa8084a('0x11')](function(){const _0x115498=_0xa8084a;return _0x35368f[_0x115498('0xd')][_0x115498('0x3')][_0x115498('0x1')](_0x12636b)[_0x115498('0x9')](function(){const _0xf681d3=_0x115498;logger['info'](_0xf681d3('0xa'),_0x12636b);})[_0x115498('0x2')](function(_0x4f9b14){const _0x43ae4f=_0x115498;logger['info'](JSON[_0x43ae4f('0x16')](_0x4f9b14));});});},Migration['prototype']['removeColumn']=function(_0x1bd2bc,_0x3ac8c0){const _0xf6fcf2=this;this['sequence']['enqueue'](function(){const _0x1f9342=a940_0x5ccf;return _0xf6fcf2[_0x1f9342('0xd')][_0x1f9342('0xb')](_0x1bd2bc,_0x3ac8c0)[_0x1f9342('0x9')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x3ac8c0,_0x1bd2bc);})[_0x1f9342('0x2')](function(_0x18e65d){const _0x4b5a16=_0x1f9342;logger[_0x4b5a16('0xc')](util[_0x4b5a16('0x0')](_0x18e65d,{'showHidden':![],'depth':null}));});});},Migration[_0x18380c('0x14')][_0x18380c('0x12')]=function(_0x481317,_0x44e00e,_0x1d87d3){const _0x340a0d=_0x18380c,_0x402493=this;this['sequence'][_0x340a0d('0x11')](function(){const _0x513637=_0x340a0d;return _0x402493['queryInterface'][_0x513637('0x12')](_0x481317,_0x44e00e,_0x1d87d3)[_0x513637('0x9')](function(){const _0x425fbe=_0x513637;logger[_0x425fbe('0xc')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x44e00e,_0x1d87d3,_0x481317);})[_0x513637('0x2')](function(_0x1a7af6){const _0x268256=_0x513637;logger[_0x268256('0xc')](util[_0x268256('0x0')](_0x1a7af6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x18380c('0x5')]=function(_0x5dc334){const _0x127ced=_0x18380c;this['sequence'][_0x127ced('0x11')](function(){return _0x5dc334();});},module['exports']={'up':function(_0x116370){return new Promise(function(_0x145c15){const _0x36d8d7=a940_0x5ccf,_0x1e4718=new Migration(_0x116370);_0x1e4718[_0x36d8d7('0x5')](_0x145c15);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.62.js b/server/migrations/2.0.62.js index c134bdc..129b044 100644 --- a/server/migrations/2.0.62.js +++ b/server/migrations/2.0.62.js @@ -1 +1 @@ -const a941_0x4c09=['exports','alignment','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','dropTable','util','finally','Added\x20column\x20%s\x20to\x20%s','sequence','stringify','sendIfEmpty','phone','addColumn','STRING','addIndex','renameColumn','migration','verticalAlignment','../config/logger','BOOLEAN','changeColumn','queryInterface','info','final','then','bottom_right','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','join','query','tools_schedules','tail','INTEGER','settings','enableEmailPreview','catch','chat_websites','inspect'];(function(_0x275ffb,_0x4c09ae){const _0x16d9db=function(_0x400d30){while(--_0x400d30){_0x275ffb['push'](_0x275ffb['shift']());}};_0x16d9db(++_0x4c09ae);}(a941_0x4c09,0x6e));const a941_0x16d9=function(_0x275ffb,_0x4c09ae){_0x275ffb=_0x275ffb-0x0;let _0x16d9db=a941_0x4c09[_0x275ffb];return _0x16d9db;};const _0x443da4=a941_0x16d9;'use strict';const util=require(_0x443da4('0xd')),logger=require(_0x443da4('0x1a'))(_0x443da4('0x18')),Sequence=function(){};Sequence['prototype'][_0x443da4('0x9')]=function(_0x400d30){const _0x432d52=_0x443da4;this[_0x432d52('0x0')]=this['tail']?this['tail'][_0x432d52('0xe')](_0x400d30):_0x400d30();};const Migration=function(_0x32c219){const _0x498fca=_0x443da4;this[_0x498fca('0x1d')]=_0x32c219,this[_0x498fca('0x10')]=new Sequence();};Migration['prototype'][_0x443da4('0x1c')]=function(_0x10d4a5,_0x21608c,_0x274ce3){const _0x2167ab=_0x443da4,_0x3c0e8d=this;this[_0x2167ab('0x10')][_0x2167ab('0x9')](function(){const _0x35bff2=_0x2167ab;return _0x3c0e8d[_0x35bff2('0x1d')][_0x35bff2('0x1c')](_0x10d4a5,_0x21608c,_0x274ce3)['then'](function(){const _0x9b8728=_0x35bff2;logger['info'](_0x9b8728('0x23'),_0x21608c,_0x10d4a5);})['catch'](function(_0x14f7a5){const _0x25549f=_0x35bff2;logger['info'](JSON[_0x25549f('0x11')](_0x14f7a5));});});},Migration[_0x443da4('0x22')][_0x443da4('0x14')]=function(_0x5ca7a9,_0x33896b,_0x386d6d){const _0x25a002=_0x443da4,_0xfaca19=this;this['sequence'][_0x25a002('0x9')](function(){const _0x4a3246=_0x25a002;return _0xfaca19[_0x4a3246('0x1d')][_0x4a3246('0x14')](_0x5ca7a9,_0x33896b,_0x386d6d)[_0x4a3246('0x20')](function(){const _0x4935a9=_0x4a3246;logger[_0x4935a9('0x1e')](_0x4935a9('0xf'),_0x33896b,_0x5ca7a9);})[_0x4a3246('0x4')](function(_0x5b7d8c){const _0x1d78d4=_0x4a3246;logger[_0x1d78d4('0x1e')](JSON[_0x1d78d4('0x11')](_0x5b7d8c));});});},Migration[_0x443da4('0x22')][_0x443da4('0xc')]=function(_0x789eed){const _0x5ba5d3=_0x443da4,_0x38f86d=this;this[_0x5ba5d3('0x10')][_0x5ba5d3('0x9')](function(){const _0x307023=_0x5ba5d3;return _0x38f86d[_0x307023('0x1d')][_0x307023('0xc')](_0x789eed,{'force':!![]})['then'](function(){const _0x2903f7=_0x307023;logger[_0x2903f7('0x1e')]('table\x20dropped\x20%s',_0x789eed);})['catch'](function(_0x10a406){const _0x3ceeb7=_0x307023;logger[_0x3ceeb7('0x1e')](JSON[_0x3ceeb7('0x11')](_0x10a406));});});},Migration[_0x443da4('0x22')][_0x443da4('0x16')]=function(_0x5b2d47,_0x2b14c3,_0x5e3dac){const _0x26821c=_0x443da4,_0x481bb5=this;this[_0x26821c('0x10')][_0x26821c('0x9')](function(){const _0x44b1ea=_0x26821c;return _0x481bb5[_0x44b1ea('0x1d')][_0x44b1ea('0x16')](_0x5b2d47,_0x2b14c3,{'indexName':_0x5e3dac})[_0x44b1ea('0x20')](function(){const _0x4bf385=_0x44b1ea;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x5b2d47,_0x2b14c3[_0x4bf385('0x24')](','),_0x5e3dac);})[_0x44b1ea('0x4')](function(_0x3514f5){const _0x5f29b0=_0x44b1ea;logger['info'](JSON[_0x5f29b0('0x11')](_0x3514f5));});});},Migration[_0x443da4('0x22')]['query']=function(_0x586fb5){const _0x2d0f61=_0x443da4,_0x462b6d=this;this[_0x2d0f61('0x10')]['enqueue'](function(){const _0x23b7de=_0x2d0f61;return _0x462b6d[_0x23b7de('0x1d')][_0x23b7de('0xb')][_0x23b7de('0x25')](_0x586fb5)[_0x23b7de('0x20')](function(){logger['info']('query\x20%s',_0x586fb5);})[_0x23b7de('0x4')](function(_0x3ff88b){logger['info'](JSON['stringify'](_0x3ff88b));});});},Migration[_0x443da4('0x22')]['removeColumn']=function(_0x1d9eff,_0x2af674){const _0x5d5692=_0x443da4,_0x677656=this;this[_0x5d5692('0x10')]['enqueue'](function(){const _0xa56e71=_0x5d5692;return _0x677656[_0xa56e71('0x1d')]['removeColumn'](_0x1d9eff,_0x2af674)[_0xa56e71('0x20')](function(){const _0x26d948=_0xa56e71;logger[_0x26d948('0x1e')]('Removed\x20column\x20%s\x20from\x20%s',_0x2af674,_0x1d9eff);})[_0xa56e71('0x4')](function(_0x504f45){logger['info'](util['inspect'](_0x504f45,{'showHidden':![],'depth':null}));});});},Migration[_0x443da4('0x22')][_0x443da4('0x17')]=function(_0x53cd19,_0x327947,_0x5eb338){const _0x2a8856=_0x443da4,_0x42ce3a=this;this['sequence'][_0x2a8856('0x9')](function(){const _0x2bb64f=_0x2a8856;return _0x42ce3a[_0x2bb64f('0x1d')]['renameColumn'](_0x53cd19,_0x327947,_0x5eb338)[_0x2bb64f('0x20')](function(){const _0x22dff6=_0x2bb64f;logger[_0x22dff6('0x1e')](_0x22dff6('0xa'),_0x327947,_0x5eb338,_0x53cd19);})[_0x2bb64f('0x4')](function(_0x58df78){const _0x3a4b9d=_0x2bb64f;logger[_0x3a4b9d('0x1e')](util[_0x3a4b9d('0x6')](_0x58df78,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x443da4('0x1f')]=function(_0x201c20){this['sequence']['enqueue'](function(){return _0x201c20();});},module[_0x443da4('0x7')]={'up':function(_0x406a17,_0x416cc2){return new Promise(function(_0x1cf6c1){const _0x4b453c=a941_0x16d9,_0x1f1253=new Migration(_0x406a17);_0x1f1253[_0x4b453c('0x14')](_0x4b453c('0x26'),_0x4b453c('0x12'),{'type':_0x416cc2[_0x4b453c('0x1b')],'defaultValue':!![]}),_0x1f1253[_0x4b453c('0x1c')]('cm_contacts',_0x4b453c('0x13'),{'type':_0x416cc2[_0x4b453c('0x15')],'allowNull':!![]}),_0x1f1253[_0x4b453c('0x14')](_0x4b453c('0x2'),_0x4b453c('0x3'),{'type':_0x416cc2[_0x4b453c('0x1b')],'defaultValue':![]}),_0x1f1253['addColumn'](_0x4b453c('0x5'),_0x4b453c('0x8'),{'type':_0x416cc2['STRING'],'defaultValue':_0x4b453c('0x21')}),_0x1f1253[_0x4b453c('0x14')]('chat_websites',_0x4b453c('0x19'),{'type':_0x416cc2[_0x4b453c('0x1')],'defaultValue':0x1e}),_0x1f1253[_0x4b453c('0x1f')](_0x1cf6c1);});},'down':function(){}}; \ No newline at end of file +const a941_0x3bd0=['removeColumn','alignment','renameColumn','info','STRING','Removed\x20column\x20%s\x20from\x20%s','enqueue','tail','phone','finally','table\x20dropped\x20%s','migration','addIndex','stringify','catch','enableEmailPreview','changeColumn','../config/logger','Added\x20column\x20%s\x20to\x20%s','then','prototype','sequelize','join','BOOLEAN','util','queryInterface','exports','addIndex\x20%s\x20%s\x20%s','INTEGER','chat_websites','sequence','final','dropTable','addColumn','inspect','tools_schedules','query\x20%s','bottom_right','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x39a8d4,_0x3bd067){const _0x414efd=function(_0x19574f){while(--_0x19574f){_0x39a8d4['push'](_0x39a8d4['shift']());}};_0x414efd(++_0x3bd067);}(a941_0x3bd0,0x1ce));const a941_0x414e=function(_0x39a8d4,_0x3bd067){_0x39a8d4=_0x39a8d4-0x0;let _0x414efd=a941_0x3bd0[_0x39a8d4];return _0x414efd;};const _0x10c7ff=a941_0x414e;'use strict';const util=require(_0x10c7ff('0x1e')),logger=require(_0x10c7ff('0x17'))(_0x10c7ff('0x11')),Sequence=function(){};Sequence['prototype'][_0x10c7ff('0xc')]=function(_0x19574f){const _0x1bdcd2=_0x10c7ff;this['tail']=this[_0x1bdcd2('0xd')]?this['tail'][_0x1bdcd2('0xf')](_0x19574f):_0x19574f();};const Migration=function(_0x46a36d){const _0x173f27=_0x10c7ff;this[_0x173f27('0x1f')]=_0x46a36d,this[_0x173f27('0x24')]=new Sequence();};Migration['prototype'][_0x10c7ff('0x16')]=function(_0x48384f,_0x5a2d71,_0x5be930){const _0x184f22=_0x10c7ff,_0x21c049=this;this[_0x184f22('0x24')][_0x184f22('0xc')](function(){const _0x351ff8=_0x184f22;return _0x21c049['queryInterface'][_0x351ff8('0x16')](_0x48384f,_0x5a2d71,_0x5be930)[_0x351ff8('0x19')](function(){const _0xf13874=_0x351ff8;logger[_0xf13874('0x9')](_0xf13874('0x5'),_0x5a2d71,_0x48384f);})['catch'](function(_0x22453b){const _0x1d70be=_0x351ff8;logger['info'](JSON[_0x1d70be('0x13')](_0x22453b));});});},Migration[_0x10c7ff('0x1a')][_0x10c7ff('0x0')]=function(_0x2d04c4,_0x1159c6,_0x3665af){const _0x220b8e=_0x10c7ff,_0x5e55c3=this;this['sequence'][_0x220b8e('0xc')](function(){const _0x247f3c=_0x220b8e;return _0x5e55c3['queryInterface'][_0x247f3c('0x0')](_0x2d04c4,_0x1159c6,_0x3665af)[_0x247f3c('0x19')](function(){const _0x2a29de=_0x247f3c;logger[_0x2a29de('0x9')](_0x2a29de('0x18'),_0x1159c6,_0x2d04c4);})['catch'](function(_0x4e99a2){const _0x204ccf=_0x247f3c;logger[_0x204ccf('0x9')](JSON['stringify'](_0x4e99a2));});});},Migration[_0x10c7ff('0x1a')][_0x10c7ff('0x26')]=function(_0x326397){const _0x2a2390=_0x10c7ff,_0x5b7480=this;this[_0x2a2390('0x24')][_0x2a2390('0xc')](function(){const _0x5ba40a=_0x2a2390;return _0x5b7480['queryInterface'][_0x5ba40a('0x26')](_0x326397,{'force':!![]})[_0x5ba40a('0x19')](function(){const _0x3bc819=_0x5ba40a;logger[_0x3bc819('0x9')](_0x3bc819('0x10'),_0x326397);})[_0x5ba40a('0x14')](function(_0x1ada11){const _0x201e54=_0x5ba40a;logger[_0x201e54('0x9')](JSON[_0x201e54('0x13')](_0x1ada11));});});},Migration['prototype']['addIndex']=function(_0x3900bf,_0x403ec2,_0x464a52){const _0x60c5c7=_0x10c7ff,_0x3ac9b3=this;this[_0x60c5c7('0x24')][_0x60c5c7('0xc')](function(){const _0x20b0c8=_0x60c5c7;return _0x3ac9b3[_0x20b0c8('0x1f')][_0x20b0c8('0x12')](_0x3900bf,_0x403ec2,{'indexName':_0x464a52})[_0x20b0c8('0x19')](function(){const _0x70ea48=_0x20b0c8;logger[_0x70ea48('0x9')](_0x70ea48('0x21'),_0x3900bf,_0x403ec2[_0x70ea48('0x1c')](','),_0x464a52);})['catch'](function(_0x36e91a){const _0x2aab87=_0x20b0c8;logger[_0x2aab87('0x9')](JSON[_0x2aab87('0x13')](_0x36e91a));});});},Migration[_0x10c7ff('0x1a')]['query']=function(_0x3712e2){const _0x19c2f0=_0x10c7ff,_0x48c7b8=this;this['sequence'][_0x19c2f0('0xc')](function(){const _0x31d3ba=_0x19c2f0;return _0x48c7b8[_0x31d3ba('0x1f')][_0x31d3ba('0x1b')]['query'](_0x3712e2)['then'](function(){const _0x4b197f=_0x31d3ba;logger['info'](_0x4b197f('0x3'),_0x3712e2);})[_0x31d3ba('0x14')](function(_0x320cc2){const _0x7bb370=_0x31d3ba;logger[_0x7bb370('0x9')](JSON['stringify'](_0x320cc2));});});},Migration[_0x10c7ff('0x1a')][_0x10c7ff('0x6')]=function(_0x41e01a,_0x64b6e1){const _0x1f6969=this;this['sequence']['enqueue'](function(){const _0x33bc22=a941_0x414e;return _0x1f6969[_0x33bc22('0x1f')][_0x33bc22('0x6')](_0x41e01a,_0x64b6e1)[_0x33bc22('0x19')](function(){const _0x3e0a6f=_0x33bc22;logger[_0x3e0a6f('0x9')](_0x3e0a6f('0xb'),_0x64b6e1,_0x41e01a);})[_0x33bc22('0x14')](function(_0xb9185a){const _0x5ba93b=_0x33bc22;logger['info'](util[_0x5ba93b('0x1')](_0xb9185a,{'showHidden':![],'depth':null}));});});},Migration[_0x10c7ff('0x1a')]['renameColumn']=function(_0x210a40,_0x58a91e,_0x2d1fd7){const _0x591671=_0x10c7ff,_0x1a7ea3=this;this['sequence'][_0x591671('0xc')](function(){const _0x129108=_0x591671;return _0x1a7ea3[_0x129108('0x1f')][_0x129108('0x8')](_0x210a40,_0x58a91e,_0x2d1fd7)[_0x129108('0x19')](function(){const _0x4f396f=_0x129108;logger[_0x4f396f('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x58a91e,_0x2d1fd7,_0x210a40);})[_0x129108('0x14')](function(_0x12ea1e){const _0x3e6f49=_0x129108;logger[_0x3e6f49('0x9')](util[_0x3e6f49('0x1')](_0x12ea1e,{'showHidden':![],'depth':null}));});});},Migration[_0x10c7ff('0x1a')][_0x10c7ff('0x25')]=function(_0x32bf6a){const _0x9c8e22=_0x10c7ff;this['sequence'][_0x9c8e22('0xc')](function(){return _0x32bf6a();});},module[_0x10c7ff('0x20')]={'up':function(_0x1ca996,_0x547d44){return new Promise(function(_0x4a5402){const _0x1cdfbe=a941_0x414e,_0x422ba3=new Migration(_0x1ca996);_0x422ba3[_0x1cdfbe('0x0')](_0x1cdfbe('0x2'),'sendIfEmpty',{'type':_0x547d44[_0x1cdfbe('0x1d')],'defaultValue':!![]}),_0x422ba3[_0x1cdfbe('0x16')]('cm_contacts',_0x1cdfbe('0xe'),{'type':_0x547d44[_0x1cdfbe('0xa')],'allowNull':!![]}),_0x422ba3['addColumn']('settings',_0x1cdfbe('0x15'),{'type':_0x547d44[_0x1cdfbe('0x1d')],'defaultValue':![]}),_0x422ba3[_0x1cdfbe('0x0')](_0x1cdfbe('0x23'),_0x1cdfbe('0x7'),{'type':_0x547d44[_0x1cdfbe('0xa')],'defaultValue':_0x1cdfbe('0x4')}),_0x422ba3[_0x1cdfbe('0x0')](_0x1cdfbe('0x23'),'verticalAlignment',{'type':_0x547d44[_0x1cdfbe('0x22')],'defaultValue':0x1e}),_0x422ba3[_0x1cdfbe('0x25')](_0x4a5402);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.63.js b/server/migrations/2.0.63.js index d70b640..eeff8cd 100644 --- a/server/migrations/2.0.63.js +++ b/server/migrations/2.0.63.js @@ -1 +1 @@ -const a942_0x1c7e=['ALTER\x20TABLE\x20`chat_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','customerAvatar','finally','sequence','token','inspect','prototype','changeColumn','renameColumn','dropTable','util','query','TEXT','openchannel_accounts','final','addColumn','title','dashboard_items','defaultTitle','Added\x20column\x20%s\x20to\x20%s','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','tail','enqueue','openchannel_applications','query\x20%s','INTEGER','info','chat_websites','table\x20dropped\x20%s','ALTER\x20TABLE\x20`fax_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`fax_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','showCustomerAvatar','../config/logger','TagId','Removed\x20column\x20%s\x20from\x20%s','BOOLEAN','ALTER\x20TABLE\x20`mail_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','alternate','addIndex','removeColumn','then','mail_applications','exports','messagesAlignment','catch','ALTER\x20TABLE\x20`sms_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`sms_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','chat_applications','stringify'];(function(_0x3cf3cd,_0x1c7e5e){const _0x1a3ea3=function(_0x5a019e){while(--_0x5a019e){_0x3cf3cd['push'](_0x3cf3cd['shift']());}};_0x1a3ea3(++_0x1c7e5e);}(a942_0x1c7e,0x117));const a942_0x1a3e=function(_0x3cf3cd,_0x1c7e5e){_0x3cf3cd=_0x3cf3cd-0x0;let _0x1a3ea3=a942_0x1c7e[_0x3cf3cd];return _0x1a3ea3;};const _0x2fd29f=a942_0x1a3e;'use strict';const util=require(_0x2fd29f('0x19')),logger=require(_0x2fd29f('0x30'))('migration'),Sequence=function(){};Sequence[_0x2fd29f('0x15')][_0x2fd29f('0x27')]=function(_0x5a019e){const _0x983a51=_0x2fd29f;this['tail']=this['tail']?this[_0x983a51('0x26')][_0x983a51('0x11')](_0x5a019e):_0x5a019e();};const Migration=function(_0x4c4a97){const _0x376d87=_0x2fd29f;this[_0x376d87('0x23')]=_0x4c4a97,this['sequence']=new Sequence();};Migration[_0x2fd29f('0x15')][_0x2fd29f('0x16')]=function(_0x2d3b8c,_0x4aeb2f,_0x2c5719){const _0x21abbe=this;this['sequence']['enqueue'](function(){const _0x40e00b=a942_0x1a3e;return _0x21abbe[_0x40e00b('0x23')][_0x40e00b('0x16')](_0x2d3b8c,_0x4aeb2f,_0x2c5719)[_0x40e00b('0x7')](function(){const _0x247f0a=_0x40e00b;logger[_0x247f0a('0x2b')](_0x247f0a('0x24'),_0x4aeb2f,_0x2d3b8c);})[_0x40e00b('0xb')](function(_0x5ad807){const _0x39e5d2=_0x40e00b;logger[_0x39e5d2('0x2b')](JSON['stringify'](_0x5ad807));});});},Migration[_0x2fd29f('0x15')][_0x2fd29f('0x1e')]=function(_0x37e2fe,_0x3d5c17,_0x10b1d8){const _0x1dd2e7=_0x2fd29f,_0x4ccc08=this;this[_0x1dd2e7('0x12')][_0x1dd2e7('0x27')](function(){const _0x28ec7c=_0x1dd2e7;return _0x4ccc08[_0x28ec7c('0x23')]['addColumn'](_0x37e2fe,_0x3d5c17,_0x10b1d8)['then'](function(){const _0x497b68=_0x28ec7c;logger[_0x497b68('0x2b')](_0x497b68('0x22'),_0x3d5c17,_0x37e2fe);})[_0x28ec7c('0xb')](function(_0x5c9159){const _0x10bd97=_0x28ec7c;logger[_0x10bd97('0x2b')](JSON['stringify'](_0x5c9159));});});},Migration[_0x2fd29f('0x15')]['dropTable']=function(_0x39c9ca){const _0x21a16d=_0x2fd29f,_0x3a094a=this;this['sequence'][_0x21a16d('0x27')](function(){const _0x392a48=_0x21a16d;return _0x3a094a[_0x392a48('0x23')][_0x392a48('0x18')](_0x39c9ca,{'force':!![]})[_0x392a48('0x7')](function(){const _0x57fcf6=_0x392a48;logger['info'](_0x57fcf6('0x2d'),_0x39c9ca);})[_0x392a48('0xb')](function(_0x523598){const _0x202571=_0x392a48;logger[_0x202571('0x2b')](JSON[_0x202571('0xe')](_0x523598));});});},Migration['prototype'][_0x2fd29f('0x5')]=function(_0xfdd1a2,_0x4bafde,_0x9d40a7){const _0x1b2330=_0x2fd29f,_0x523fb9=this;this[_0x1b2330('0x12')][_0x1b2330('0x27')](function(){const _0x648a60=_0x1b2330;return _0x523fb9[_0x648a60('0x23')][_0x648a60('0x5')](_0xfdd1a2,_0x4bafde,{'indexName':_0x9d40a7})['then'](function(){const _0x3408d1=_0x648a60;logger[_0x3408d1('0x2b')]('addIndex\x20%s\x20%s\x20%s',_0xfdd1a2,_0x4bafde['join'](','),_0x9d40a7);})[_0x648a60('0xb')](function(_0x213d7e){const _0x41630b=_0x648a60;logger[_0x41630b('0x2b')](JSON['stringify'](_0x213d7e));});});},Migration[_0x2fd29f('0x15')][_0x2fd29f('0x1a')]=function(_0x53d2a0){const _0x3f9b84=_0x2fd29f,_0x2d9807=this;this[_0x3f9b84('0x12')][_0x3f9b84('0x27')](function(){const _0x452eae=_0x3f9b84;return _0x2d9807[_0x452eae('0x23')]['sequelize'][_0x452eae('0x1a')](_0x53d2a0)[_0x452eae('0x7')](function(){const _0xa9f229=_0x452eae;logger[_0xa9f229('0x2b')](_0xa9f229('0x29'),_0x53d2a0);})[_0x452eae('0xb')](function(_0x2fd481){const _0x1cef67=_0x452eae;logger[_0x1cef67('0x2b')](JSON['stringify'](_0x2fd481));});});},Migration[_0x2fd29f('0x15')][_0x2fd29f('0x6')]=function(_0x5b648a,_0x1c0979){const _0x32e899=_0x2fd29f,_0x4ef82f=this;this[_0x32e899('0x12')][_0x32e899('0x27')](function(){const _0x47ca54=_0x32e899;return _0x4ef82f[_0x47ca54('0x23')][_0x47ca54('0x6')](_0x5b648a,_0x1c0979)[_0x47ca54('0x7')](function(){const _0x1e17b7=_0x47ca54;logger['info'](_0x1e17b7('0x1'),_0x1c0979,_0x5b648a);})[_0x47ca54('0xb')](function(_0x3a6642){const _0x334daa=_0x47ca54;logger['info'](util[_0x334daa('0x14')](_0x3a6642,{'showHidden':![],'depth':null}));});});},Migration[_0x2fd29f('0x15')]['renameColumn']=function(_0x38cb3f,_0x4ba9eb,_0xd12c53){const _0x2d62b7=_0x2fd29f,_0x2f4e5e=this;this[_0x2d62b7('0x12')][_0x2d62b7('0x27')](function(){const _0x4d963c=_0x2d62b7;return _0x2f4e5e[_0x4d963c('0x23')][_0x4d963c('0x17')](_0x38cb3f,_0x4ba9eb,_0xd12c53)[_0x4d963c('0x7')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4ba9eb,_0xd12c53,_0x38cb3f);})[_0x4d963c('0xb')](function(_0xafa033){const _0x4ae8f8=_0x4d963c;logger[_0x4ae8f8('0x2b')](util['inspect'](_0xafa033,{'showHidden':![],'depth':null}));});});},Migration[_0x2fd29f('0x15')][_0x2fd29f('0x1d')]=function(_0x3ccbc2){const _0x1dd3da=_0x2fd29f;this['sequence'][_0x1dd3da('0x27')](function(){return _0x3ccbc2();});},module[_0x2fd29f('0x9')]={'up':function(_0x3f5147,_0x1aab1b){return new Promise(function(_0x3ff72d){const _0x98a6a9=a942_0x1a3e,_0x26b634=new Migration(_0x3f5147);_0x26b634[_0x98a6a9('0x1e')]('chat_websites',_0x98a6a9('0xa'),{'type':_0x1aab1b['STRING'],'defaultValue':_0x98a6a9('0x4')}),_0x26b634[_0x98a6a9('0x1e')]('chat_websites',_0x98a6a9('0x21'),{'type':_0x1aab1b[_0x98a6a9('0x25')]}),_0x26b634[_0x98a6a9('0x1e')](_0x98a6a9('0x2c'),_0x98a6a9('0x10'),{'type':_0x1aab1b[_0x98a6a9('0x1b')]}),_0x26b634['addColumn'](_0x98a6a9('0x2c'),_0x98a6a9('0x2f'),{'type':_0x1aab1b[_0x98a6a9('0x2')],'defaultValue':![]}),_0x26b634[_0x98a6a9('0x1e')](_0x98a6a9('0xd'),_0x98a6a9('0x0'),{'type':_0x1aab1b['INTEGER']}),_0x26b634[_0x98a6a9('0x1a')](_0x98a6a9('0xf')),_0x26b634['addColumn']('fax_applications','TagId',{'type':_0x1aab1b[_0x98a6a9('0x2a')]}),_0x26b634[_0x98a6a9('0x1a')](_0x98a6a9('0x2e')),_0x26b634[_0x98a6a9('0x1e')](_0x98a6a9('0x8'),_0x98a6a9('0x0'),{'type':_0x1aab1b[_0x98a6a9('0x2a')]}),_0x26b634[_0x98a6a9('0x1a')](_0x98a6a9('0x3')),_0x26b634[_0x98a6a9('0x1e')](_0x98a6a9('0x28'),_0x98a6a9('0x0'),{'type':_0x1aab1b[_0x98a6a9('0x2a')]}),_0x26b634['query']('ALTER\x20TABLE\x20`openchannel_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`openchannel_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE'),_0x26b634['addColumn']('sms_applications','TagId',{'type':_0x1aab1b[_0x98a6a9('0x2a')]}),_0x26b634[_0x98a6a9('0x1a')](_0x98a6a9('0xc')),_0x26b634['query']('ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL'),_0x26b634[_0x98a6a9('0x1e')](_0x98a6a9('0x1c'),_0x98a6a9('0x13'),{'type':_0x1aab1b[_0x98a6a9('0x25')]}),_0x26b634[_0x98a6a9('0x1e')]('voice_queues_log','data',{'type':_0x1aab1b['STRING'],'allowNull':![],'defaultValue':''}),_0x26b634[_0x98a6a9('0x16')](_0x98a6a9('0x20'),_0x98a6a9('0x1f'),{'type':_0x1aab1b[_0x98a6a9('0x25')],'allowNull':![]}),_0x26b634[_0x98a6a9('0x1d')](_0x3ff72d);});},'down':function(){}}; \ No newline at end of file +const a942_0x2cb3=['catch','customerAvatar','sms_applications','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20`sms_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`sms_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','ALTER\x20TABLE\x20`fax_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`fax_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','INTEGER','tail','addIndex','table\x20dropped\x20%s','chat_websites','ALTER\x20TABLE\x20`openchannel_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`openchannel_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','info','../config/logger','showCustomerAvatar','query','ALTER\x20TABLE\x20`mail_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','alternate','sequence','ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL','Removed\x20column\x20%s\x20from\x20%s','addColumn','prototype','final','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','removeColumn','sequelize','renameColumn','voice_queues_log','inspect','then','dropTable','STRING','stringify','TagId','TEXT','openchannel_accounts','ALTER\x20TABLE\x20`chat_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','defaultTitle','queryInterface','BOOLEAN','openchannel_applications','finally','messagesAlignment','changeColumn','exports','enqueue','data','title'];(function(_0x9987a0,_0x2cb35b){const _0x1ad58f=function(_0x3464c7){while(--_0x3464c7){_0x9987a0['push'](_0x9987a0['shift']());}};_0x1ad58f(++_0x2cb35b);}(a942_0x2cb3,0xf1));const a942_0x1ad5=function(_0x9987a0,_0x2cb35b){_0x9987a0=_0x9987a0-0x0;let _0x1ad58f=a942_0x2cb3[_0x9987a0];return _0x1ad58f;};const _0x4e1fa0=a942_0x1ad5;'use strict';const util=require('util'),logger=require(_0x4e1fa0('0x22'))('migration'),Sequence=function(){};Sequence[_0x4e1fa0('0x2b')]['enqueue']=function(_0x3464c7){const _0x296670=_0x4e1fa0;this['tail']=this[_0x296670('0x1c')]?this['tail'][_0x296670('0xc')](_0x3464c7):_0x3464c7();};const Migration=function(_0x42aad2){const _0x5a55ae=_0x4e1fa0;this[_0x5a55ae('0x9')]=_0x42aad2,this[_0x5a55ae('0x27')]=new Sequence();};Migration[_0x4e1fa0('0x2b')][_0x4e1fa0('0xe')]=function(_0x42f010,_0x3d3d90,_0x54b183){const _0x379b49=_0x4e1fa0,_0x3dc53b=this;this['sequence'][_0x379b49('0x10')](function(){const _0x445d27=_0x379b49;return _0x3dc53b[_0x445d27('0x9')][_0x445d27('0xe')](_0x42f010,_0x3d3d90,_0x54b183)[_0x445d27('0x0')](function(){const _0xd2c38f=_0x445d27;logger['info'](_0xd2c38f('0x18'),_0x3d3d90,_0x42f010);})[_0x445d27('0x13')](function(_0x1c3d80){const _0x25afd6=_0x445d27;logger[_0x25afd6('0x21')](JSON[_0x25afd6('0x3')](_0x1c3d80));});});},Migration['prototype'][_0x4e1fa0('0x2a')]=function(_0x40fd4e,_0x3708de,_0x3fefff){const _0x177b62=_0x4e1fa0,_0x54103c=this;this['sequence'][_0x177b62('0x10')](function(){const _0x5111c6=_0x177b62;return _0x54103c[_0x5111c6('0x9')][_0x5111c6('0x2a')](_0x40fd4e,_0x3708de,_0x3fefff)['then'](function(){const _0x33acc6=_0x5111c6;logger[_0x33acc6('0x21')](_0x33acc6('0x2e'),_0x3708de,_0x40fd4e);})['catch'](function(_0xbddbc6){logger['info'](JSON['stringify'](_0xbddbc6));});});},Migration[_0x4e1fa0('0x2b')][_0x4e1fa0('0x1')]=function(_0x149ea2){const _0x2d752d=_0x4e1fa0,_0x307029=this;this[_0x2d752d('0x27')]['enqueue'](function(){const _0xb31c17=_0x2d752d;return _0x307029['queryInterface']['dropTable'](_0x149ea2,{'force':!![]})[_0xb31c17('0x0')](function(){const _0xb79f8c=_0xb31c17;logger[_0xb79f8c('0x21')](_0xb79f8c('0x1e'),_0x149ea2);})[_0xb31c17('0x13')](function(_0x1bb5d5){const _0x2b1962=_0xb31c17;logger[_0x2b1962('0x21')](JSON[_0x2b1962('0x3')](_0x1bb5d5));});});},Migration[_0x4e1fa0('0x2b')][_0x4e1fa0('0x1d')]=function(_0x1b4871,_0x162451,_0x495c86){const _0x1b53a4=_0x4e1fa0,_0x280c1f=this;this[_0x1b53a4('0x27')][_0x1b53a4('0x10')](function(){const _0x524e0a=_0x1b53a4;return _0x280c1f[_0x524e0a('0x9')]['addIndex'](_0x1b4871,_0x162451,{'indexName':_0x495c86})[_0x524e0a('0x0')](function(){const _0x52033d=_0x524e0a;logger[_0x52033d('0x21')](_0x52033d('0x2d'),_0x1b4871,_0x162451[_0x52033d('0x17')](','),_0x495c86);})[_0x524e0a('0x13')](function(_0x4ecc83){const _0x28d9ac=_0x524e0a;logger[_0x28d9ac('0x21')](JSON[_0x28d9ac('0x3')](_0x4ecc83));});});},Migration[_0x4e1fa0('0x2b')]['query']=function(_0x3d3e58){const _0x5ec228=_0x4e1fa0,_0x5921dd=this;this['sequence'][_0x5ec228('0x10')](function(){const _0x2a83bf=_0x5ec228;return _0x5921dd[_0x2a83bf('0x9')][_0x2a83bf('0x30')]['query'](_0x3d3e58)[_0x2a83bf('0x0')](function(){const _0x1ce804=_0x2a83bf;logger[_0x1ce804('0x21')]('query\x20%s',_0x3d3e58);})[_0x2a83bf('0x13')](function(_0x294741){const _0x442214=_0x2a83bf;logger[_0x442214('0x21')](JSON[_0x442214('0x3')](_0x294741));});});},Migration[_0x4e1fa0('0x2b')][_0x4e1fa0('0x2f')]=function(_0x24143c,_0x5d0dbc){const _0x3b9a2f=_0x4e1fa0,_0x306418=this;this[_0x3b9a2f('0x27')]['enqueue'](function(){const _0x153d8f=_0x3b9a2f;return _0x306418[_0x153d8f('0x9')][_0x153d8f('0x2f')](_0x24143c,_0x5d0dbc)['then'](function(){const _0x45c2cb=_0x153d8f;logger[_0x45c2cb('0x21')](_0x45c2cb('0x29'),_0x5d0dbc,_0x24143c);})[_0x153d8f('0x13')](function(_0x1c5319){const _0x54161f=_0x153d8f;logger[_0x54161f('0x21')](util['inspect'](_0x1c5319,{'showHidden':![],'depth':null}));});});},Migration[_0x4e1fa0('0x2b')]['renameColumn']=function(_0x249cfe,_0x92bc01,_0x360608){const _0x3e8e73=_0x4e1fa0,_0x4b53a4=this;this['sequence'][_0x3e8e73('0x10')](function(){const _0x1066f4=_0x3e8e73;return _0x4b53a4[_0x1066f4('0x9')][_0x1066f4('0x31')](_0x249cfe,_0x92bc01,_0x360608)[_0x1066f4('0x0')](function(){const _0x411d6=_0x1066f4;logger[_0x411d6('0x21')](_0x411d6('0x16'),_0x92bc01,_0x360608,_0x249cfe);})[_0x1066f4('0x13')](function(_0x315ffc){const _0x1eb71e=_0x1066f4;logger['info'](util[_0x1eb71e('0x33')](_0x315ffc,{'showHidden':![],'depth':null}));});});},Migration[_0x4e1fa0('0x2b')][_0x4e1fa0('0x2c')]=function(_0x31bd6b){const _0x4814ad=_0x4e1fa0;this[_0x4814ad('0x27')][_0x4814ad('0x10')](function(){return _0x31bd6b();});},module[_0x4e1fa0('0xf')]={'up':function(_0x29d125,_0x512ab7){return new Promise(function(_0x28055e){const _0x2976d4=a942_0x1ad5,_0x170f63=new Migration(_0x29d125);_0x170f63[_0x2976d4('0x2a')](_0x2976d4('0x1f'),_0x2976d4('0xd'),{'type':_0x512ab7[_0x2976d4('0x2')],'defaultValue':_0x2976d4('0x26')}),_0x170f63[_0x2976d4('0x2a')](_0x2976d4('0x1f'),_0x2976d4('0x8'),{'type':_0x512ab7['STRING']}),_0x170f63[_0x2976d4('0x2a')](_0x2976d4('0x1f'),_0x2976d4('0x14'),{'type':_0x512ab7[_0x2976d4('0x5')]}),_0x170f63[_0x2976d4('0x2a')](_0x2976d4('0x1f'),_0x2976d4('0x23'),{'type':_0x512ab7[_0x2976d4('0xa')],'defaultValue':![]}),_0x170f63[_0x2976d4('0x2a')]('chat_applications',_0x2976d4('0x4'),{'type':_0x512ab7[_0x2976d4('0x1b')]}),_0x170f63['query'](_0x2976d4('0x7')),_0x170f63[_0x2976d4('0x2a')]('fax_applications',_0x2976d4('0x4'),{'type':_0x512ab7['INTEGER']}),_0x170f63[_0x2976d4('0x24')](_0x2976d4('0x1a')),_0x170f63['addColumn']('mail_applications',_0x2976d4('0x4'),{'type':_0x512ab7[_0x2976d4('0x1b')]}),_0x170f63['query'](_0x2976d4('0x25')),_0x170f63['addColumn'](_0x2976d4('0xb'),_0x2976d4('0x4'),{'type':_0x512ab7[_0x2976d4('0x1b')]}),_0x170f63[_0x2976d4('0x24')](_0x2976d4('0x20')),_0x170f63[_0x2976d4('0x2a')](_0x2976d4('0x15'),_0x2976d4('0x4'),{'type':_0x512ab7[_0x2976d4('0x1b')]}),_0x170f63[_0x2976d4('0x24')](_0x2976d4('0x19')),_0x170f63[_0x2976d4('0x24')](_0x2976d4('0x28')),_0x170f63[_0x2976d4('0x2a')](_0x2976d4('0x6'),'token',{'type':_0x512ab7['STRING']}),_0x170f63[_0x2976d4('0x2a')](_0x2976d4('0x32'),_0x2976d4('0x11'),{'type':_0x512ab7[_0x2976d4('0x2')],'allowNull':![],'defaultValue':''}),_0x170f63[_0x2976d4('0xe')]('dashboard_items',_0x2976d4('0x12'),{'type':_0x512ab7[_0x2976d4('0x2')],'allowNull':![]}),_0x170f63[_0x2976d4('0x2c')](_0x28055e);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.64.js b/server/migrations/2.0.64.js index 95abacd..95b552c 100644 --- a/server/migrations/2.0.64.js +++ b/server/migrations/2.0.64.js @@ -1 +1 @@ -const a943_0x626f=['table\x20dropped\x20%s','catch','stringify','query','tail','BOOLEAN','Removed\x20column\x20%s\x20from\x20%s','inspect','exports','customerAlias','prototype','lastdata','info','queryInterface','phoneBarEnableVideoRecording','join','../config/logger','changeColumn','enqueue','removeIndex\x20%s\x20%s','dropTable','finally','chat_websites','analytics_report_fields','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','removeIndex','final','sequelize','sequence','addColumn','users','removeColumn','TEXT','migration','STRING','renameColumn','then','query\x20%s'];(function(_0x2e4c8a,_0x626f4f){const _0x32a2f2=function(_0xfda16c){while(--_0xfda16c){_0x2e4c8a['push'](_0x2e4c8a['shift']());}};_0x32a2f2(++_0x626f4f);}(a943_0x626f,0x198));const a943_0x32a2=function(_0x2e4c8a,_0x626f4f){_0x2e4c8a=_0x2e4c8a-0x0;let _0x32a2f2=a943_0x626f[_0x2e4c8a];return _0x32a2f2;};const _0x227fcc=a943_0x32a2;'use strict';const util=require('util'),logger=require(_0x227fcc('0x25'))(_0x227fcc('0x10')),Sequence=function(){};Sequence[_0x227fcc('0x1f')][_0x227fcc('0x0')]=function(_0xfda16c){const _0x46c79d=_0x227fcc;this[_0x46c79d('0x19')]=this['tail']?this[_0x46c79d('0x19')][_0x46c79d('0x3')](_0xfda16c):_0xfda16c();};const Migration=function(_0x5965dc){const _0x4cd2fa=_0x227fcc;this[_0x4cd2fa('0x22')]=_0x5965dc,this['sequence']=new Sequence();};Migration[_0x227fcc('0x1f')][_0x227fcc('0x26')]=function(_0x4001e9,_0x195b9e,_0x482ade){const _0x29e44a=_0x227fcc,_0x50c31d=this;this['sequence'][_0x29e44a('0x0')](function(){const _0x56b51a=_0x29e44a;return _0x50c31d[_0x56b51a('0x22')]['changeColumn'](_0x4001e9,_0x195b9e,_0x482ade)[_0x56b51a('0x13')](function(){const _0x51cfb9=_0x56b51a;logger[_0x51cfb9('0x21')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x195b9e,_0x4001e9);})[_0x56b51a('0x16')](function(_0x4e930a){const _0x56e86e=_0x56b51a;logger[_0x56e86e('0x21')](JSON[_0x56e86e('0x17')](_0x4e930a));});});},Migration[_0x227fcc('0x1f')][_0x227fcc('0xc')]=function(_0x2f9a52,_0x1e11db,_0x372281){const _0x104310=_0x227fcc,_0x256c54=this;this[_0x104310('0xb')]['enqueue'](function(){const _0x1c5a19=_0x104310;return _0x256c54[_0x1c5a19('0x22')][_0x1c5a19('0xc')](_0x2f9a52,_0x1e11db,_0x372281)['then'](function(){const _0x3ae704=_0x1c5a19;logger[_0x3ae704('0x21')]('Added\x20column\x20%s\x20to\x20%s',_0x1e11db,_0x2f9a52);})['catch'](function(_0x118792){const _0x4b152a=_0x1c5a19;logger['info'](JSON[_0x4b152a('0x17')](_0x118792));});});},Migration['prototype'][_0x227fcc('0x2')]=function(_0x1ecfac){const _0x3c5b9c=_0x227fcc,_0x1023ec=this;this['sequence'][_0x3c5b9c('0x0')](function(){const _0x10eca4=_0x3c5b9c;return _0x1023ec[_0x10eca4('0x22')]['dropTable'](_0x1ecfac,{'force':!![]})[_0x10eca4('0x13')](function(){const _0x2a160a=_0x10eca4;logger['info'](_0x2a160a('0x15'),_0x1ecfac);})[_0x10eca4('0x16')](function(_0x16f0e0){const _0x4a6527=_0x10eca4;logger[_0x4a6527('0x21')](JSON[_0x4a6527('0x17')](_0x16f0e0));});});},Migration[_0x227fcc('0x1f')][_0x227fcc('0x7')]=function(_0x1fa5bd,_0x4b5d6a,_0x5bd061){const _0x1bbbd4=_0x227fcc,_0x1dac6d=this;this['sequence'][_0x1bbbd4('0x0')](function(){const _0x357dc5=_0x1bbbd4;return _0x1dac6d[_0x357dc5('0x22')][_0x357dc5('0x7')](_0x1fa5bd,_0x4b5d6a,{'indexName':_0x5bd061})[_0x357dc5('0x13')](function(){const _0x2d6731=_0x357dc5;logger[_0x2d6731('0x21')]('addIndex\x20%s\x20%s\x20%s',_0x1fa5bd,_0x4b5d6a[_0x2d6731('0x24')](','),_0x5bd061);})[_0x357dc5('0x16')](function(_0x52c5e7){const _0x3bb279=_0x357dc5;logger[_0x3bb279('0x21')](JSON[_0x3bb279('0x17')](_0x52c5e7));});});},Migration[_0x227fcc('0x1f')][_0x227fcc('0x8')]=function(_0x7a38bf,_0x35f011){const _0x4284e4=_0x227fcc,_0x4f368a=this;this[_0x4284e4('0xb')][_0x4284e4('0x0')](function(){const _0x48bc57=_0x4284e4;return _0x4f368a[_0x48bc57('0x22')][_0x48bc57('0x8')](_0x7a38bf,_0x35f011)[_0x48bc57('0x13')](function(){const _0x24ebdf=_0x48bc57;logger[_0x24ebdf('0x21')](_0x24ebdf('0x1'),_0x7a38bf,_0x35f011);})['catch'](function(_0x3e87dc){const _0x1eed88=_0x48bc57;logger[_0x1eed88('0x21')](JSON[_0x1eed88('0x17')](_0x3e87dc));});});},Migration[_0x227fcc('0x1f')][_0x227fcc('0x18')]=function(_0x283442){const _0x3002bb=_0x227fcc,_0x5d9994=this;this[_0x3002bb('0xb')]['enqueue'](function(){const _0x2ecfe0=_0x3002bb;return _0x5d9994['queryInterface'][_0x2ecfe0('0xa')][_0x2ecfe0('0x18')](_0x283442)['then'](function(){const _0x293e11=_0x2ecfe0;logger['info'](_0x293e11('0x14'),_0x283442);})[_0x2ecfe0('0x16')](function(_0x2883cf){const _0x15f375=_0x2ecfe0;logger['info'](JSON[_0x15f375('0x17')](_0x2883cf));});});},Migration[_0x227fcc('0x1f')]['removeColumn']=function(_0x509efe,_0x37e308){const _0xefe9d5=_0x227fcc,_0x1d1c7f=this;this['sequence'][_0xefe9d5('0x0')](function(){const _0x4b6664=_0xefe9d5;return _0x1d1c7f[_0x4b6664('0x22')][_0x4b6664('0xe')](_0x509efe,_0x37e308)[_0x4b6664('0x13')](function(){const _0x4baeb0=_0x4b6664;logger[_0x4baeb0('0x21')](_0x4baeb0('0x1b'),_0x37e308,_0x509efe);})[_0x4b6664('0x16')](function(_0xa3c60b){const _0x407093=_0x4b6664;logger[_0x407093('0x21')](util[_0x407093('0x1c')](_0xa3c60b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x227fcc('0x12')]=function(_0x3542b7,_0x42cfed,_0x76b4){const _0xf8d1d4=_0x227fcc,_0x3d57f5=this;this[_0xf8d1d4('0xb')][_0xf8d1d4('0x0')](function(){const _0x447526=_0xf8d1d4;return _0x3d57f5[_0x447526('0x22')][_0x447526('0x12')](_0x3542b7,_0x42cfed,_0x76b4)[_0x447526('0x13')](function(){const _0x564ee1=_0x447526;logger[_0x564ee1('0x21')](_0x564ee1('0x6'),_0x42cfed,_0x76b4,_0x3542b7);})['catch'](function(_0x50af4e){const _0x5f34c7=_0x447526;logger[_0x5f34c7('0x21')](util['inspect'](_0x50af4e,{'showHidden':![],'depth':null}));});});},Migration[_0x227fcc('0x1f')][_0x227fcc('0x9')]=function(_0x217760){const _0x5732d9=_0x227fcc;this[_0x5732d9('0xb')][_0x5732d9('0x0')](function(){return _0x217760();});},module[_0x227fcc('0x1d')]={'up':function(_0x41bf63,_0xc3f130){return new Promise(function(_0x1280d8){const _0x3bc610=a943_0x32a2,_0x5bfff9=new Migration(_0x41bf63);_0x5bfff9[_0x3bc610('0xc')](_0x3bc610('0xd'),_0x3bc610('0x23'),{'type':_0xc3f130[_0x3bc610('0x1a')],'defaultValue':![]}),_0x5bfff9[_0x3bc610('0x26')]('report_call',_0x3bc610('0x20'),{'type':_0xc3f130[_0x3bc610('0xf')]}),_0x5bfff9[_0x3bc610('0xc')](_0x3bc610('0x4'),_0x3bc610('0x1e'),{'type':_0xc3f130[_0x3bc610('0x11')],'defaultValue':'Me'}),_0x5bfff9[_0x3bc610('0x26')](_0x3bc610('0x5'),'field',{'type':_0xc3f130['TEXT'],'allowNull':![]}),_0x5bfff9[_0x3bc610('0x8')]('report_call','uniqueid'),_0x5bfff9[_0x3bc610('0x9')](_0x1280d8);});},'down':function(){}}; \ No newline at end of file +const a943_0x2ba6=['then','tail','inspect','sequence','enqueue','prototype','removeIndex','../config/logger','util','changeColumn','uniqueid','removeColumn','Removed\x20column\x20%s\x20from\x20%s','STRING','BOOLEAN','table\x20dropped\x20%s','dropTable','chat_websites','addIndex\x20%s\x20%s\x20%s','customerAlias','info','query\x20%s','lastdata','final','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','TEXT','join','queryInterface','report_call','stringify','catch','Added\x20column\x20%s\x20to\x20%s','analytics_report_fields','users','finally','exports','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x2447ec,_0x2ba685){const _0x114cd5=function(_0x1f264c){while(--_0x1f264c){_0x2447ec['push'](_0x2447ec['shift']());}};_0x114cd5(++_0x2ba685);}(a943_0x2ba6,0x114));const a943_0x114c=function(_0x2447ec,_0x2ba685){_0x2447ec=_0x2447ec-0x0;let _0x114cd5=a943_0x2ba6[_0x2447ec];return _0x114cd5;};const _0x4d12cf=a943_0x114c;'use strict';const util=require(_0x4d12cf('0xc')),logger=require(_0x4d12cf('0xb'))('migration'),Sequence=function(){};Sequence[_0x4d12cf('0x9')][_0x4d12cf('0x8')]=function(_0x1f264c){const _0x4ad8cc=_0x4d12cf;this['tail']=this[_0x4ad8cc('0x5')]?this[_0x4ad8cc('0x5')][_0x4ad8cc('0x0')](_0x1f264c):_0x1f264c();};const Migration=function(_0x54f58f){this['queryInterface']=_0x54f58f,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x3b7003,_0x3c6ed3,_0x23f958){const _0x554e56=_0x4d12cf,_0xaab679=this;this[_0x554e56('0x7')][_0x554e56('0x8')](function(){const _0x4cb121=_0x554e56;return _0xaab679[_0x4cb121('0x21')][_0x4cb121('0xd')](_0x3b7003,_0x3c6ed3,_0x23f958)[_0x4cb121('0x4')](function(){const _0x5ccc1a=_0x4cb121;logger['info'](_0x5ccc1a('0x3'),_0x3c6ed3,_0x3b7003);})['catch'](function(_0x410326){const _0x526ca7=_0x4cb121;logger[_0x526ca7('0x18')](JSON[_0x526ca7('0x23')](_0x410326));});});},Migration[_0x4d12cf('0x9')][_0x4d12cf('0x1c')]=function(_0x304ecb,_0x4cdffe,_0xf7a1e4){const _0x4be8be=_0x4d12cf,_0x552e1d=this;this[_0x4be8be('0x7')][_0x4be8be('0x8')](function(){const _0x87da7c=_0x4be8be;return _0x552e1d[_0x87da7c('0x21')][_0x87da7c('0x1c')](_0x304ecb,_0x4cdffe,_0xf7a1e4)[_0x87da7c('0x4')](function(){const _0x163bc3=_0x87da7c;logger[_0x163bc3('0x18')](_0x163bc3('0x25'),_0x4cdffe,_0x304ecb);})[_0x87da7c('0x24')](function(_0x507974){const _0x4c4873=_0x87da7c;logger['info'](JSON[_0x4c4873('0x23')](_0x507974));});});},Migration['prototype'][_0x4d12cf('0x14')]=function(_0x33d82){const _0x4bc45d=_0x4d12cf,_0x19bd5e=this;this[_0x4bc45d('0x7')][_0x4bc45d('0x8')](function(){const _0x4ce1ff=_0x4bc45d;return _0x19bd5e[_0x4ce1ff('0x21')][_0x4ce1ff('0x14')](_0x33d82,{'force':!![]})['then'](function(){const _0x5198cd=_0x4ce1ff;logger[_0x5198cd('0x18')](_0x5198cd('0x13'),_0x33d82);})[_0x4ce1ff('0x24')](function(_0x41d8fa){const _0x37ad12=_0x4ce1ff;logger[_0x37ad12('0x18')](JSON[_0x37ad12('0x23')](_0x41d8fa));});});},Migration['prototype'][_0x4d12cf('0x2')]=function(_0xe0d765,_0x584871,_0x5ac7f6){const _0x5d9412=_0x4d12cf,_0x5cd594=this;this[_0x5d9412('0x7')]['enqueue'](function(){const _0x96fd3d=_0x5d9412;return _0x5cd594[_0x96fd3d('0x21')][_0x96fd3d('0x2')](_0xe0d765,_0x584871,{'indexName':_0x5ac7f6})['then'](function(){const _0x2c0690=_0x96fd3d;logger[_0x2c0690('0x18')](_0x2c0690('0x16'),_0xe0d765,_0x584871[_0x2c0690('0x20')](','),_0x5ac7f6);})[_0x96fd3d('0x24')](function(_0x14c7c7){const _0x27ab4b=_0x96fd3d;logger[_0x27ab4b('0x18')](JSON['stringify'](_0x14c7c7));});});},Migration[_0x4d12cf('0x9')][_0x4d12cf('0xa')]=function(_0x191696,_0x3de264){const _0x4d676f=_0x4d12cf,_0x505940=this;this[_0x4d676f('0x7')][_0x4d676f('0x8')](function(){const _0x1473da=_0x4d676f;return _0x505940[_0x1473da('0x21')][_0x1473da('0xa')](_0x191696,_0x3de264)[_0x1473da('0x4')](function(){const _0x4ad41d=_0x1473da;logger[_0x4ad41d('0x18')]('removeIndex\x20%s\x20%s',_0x191696,_0x3de264);})['catch'](function(_0x5d0ef2){const _0x7d3bcd=_0x1473da;logger['info'](JSON[_0x7d3bcd('0x23')](_0x5d0ef2));});});},Migration[_0x4d12cf('0x9')]['query']=function(_0xbc192e){const _0x4b20ed=_0x4d12cf,_0x1d52d5=this;this[_0x4b20ed('0x7')]['enqueue'](function(){const _0x28450c=_0x4b20ed;return _0x1d52d5['queryInterface']['sequelize']['query'](_0xbc192e)['then'](function(){const _0x5c6e97=a943_0x114c;logger[_0x5c6e97('0x18')](_0x5c6e97('0x19'),_0xbc192e);})[_0x28450c('0x24')](function(_0x26ce89){const _0x49474a=_0x28450c;logger[_0x49474a('0x18')](JSON[_0x49474a('0x23')](_0x26ce89));});});},Migration['prototype'][_0x4d12cf('0xf')]=function(_0x49278b,_0x82109){const _0x2f9e07=_0x4d12cf,_0x48ee61=this;this[_0x2f9e07('0x7')]['enqueue'](function(){const _0x5b63cd=_0x2f9e07;return _0x48ee61[_0x5b63cd('0x21')][_0x5b63cd('0xf')](_0x49278b,_0x82109)[_0x5b63cd('0x4')](function(){const _0x14f9ec=_0x5b63cd;logger['info'](_0x14f9ec('0x10'),_0x82109,_0x49278b);})[_0x5b63cd('0x24')](function(_0x3d0eee){const _0x50d5d=_0x5b63cd;logger[_0x50d5d('0x18')](util[_0x50d5d('0x6')](_0x3d0eee,{'showHidden':![],'depth':null}));});});},Migration[_0x4d12cf('0x9')][_0x4d12cf('0x1e')]=function(_0x17782b,_0xd49e9f,_0x117da7){const _0xa4310b=_0x4d12cf,_0x37e175=this;this[_0xa4310b('0x7')][_0xa4310b('0x8')](function(){const _0x47c97d=_0xa4310b;return _0x37e175[_0x47c97d('0x21')][_0x47c97d('0x1e')](_0x17782b,_0xd49e9f,_0x117da7)[_0x47c97d('0x4')](function(){const _0x29113f=_0x47c97d;logger[_0x29113f('0x18')](_0x29113f('0x1d'),_0xd49e9f,_0x117da7,_0x17782b);})[_0x47c97d('0x24')](function(_0x1e9948){const _0x6f7a93=_0x47c97d;logger['info'](util[_0x6f7a93('0x6')](_0x1e9948,{'showHidden':![],'depth':null}));});});},Migration[_0x4d12cf('0x9')][_0x4d12cf('0x1b')]=function(_0x2e9005){const _0x29bb4b=_0x4d12cf;this['sequence'][_0x29bb4b('0x8')](function(){return _0x2e9005();});},module[_0x4d12cf('0x1')]={'up':function(_0x40fe05,_0x32378a){return new Promise(function(_0x1a5f84){const _0x5b0c30=a943_0x114c,_0x196439=new Migration(_0x40fe05);_0x196439[_0x5b0c30('0x1c')](_0x5b0c30('0x27'),'phoneBarEnableVideoRecording',{'type':_0x32378a[_0x5b0c30('0x12')],'defaultValue':![]}),_0x196439[_0x5b0c30('0xd')](_0x5b0c30('0x22'),_0x5b0c30('0x1a'),{'type':_0x32378a[_0x5b0c30('0x1f')]}),_0x196439[_0x5b0c30('0x1c')](_0x5b0c30('0x15'),_0x5b0c30('0x17'),{'type':_0x32378a[_0x5b0c30('0x11')],'defaultValue':'Me'}),_0x196439[_0x5b0c30('0xd')](_0x5b0c30('0x26'),'field',{'type':_0x32378a[_0x5b0c30('0x1f')],'allowNull':![]}),_0x196439[_0x5b0c30('0xa')](_0x5b0c30('0x22'),_0x5b0c30('0xe')),_0x196439['final'](_0x1a5f84);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.65.js b/server/migrations/2.0.65.js index 23a573f..8aec4f2 100644 --- a/server/migrations/2.0.65.js +++ b/server/migrations/2.0.65.js @@ -1 +1 @@ -const a944_0x27ae=['INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','enqueue','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','dialRandomLastDigitCallerIdNumber','renameColumn','prototype','stringify','info','sequelize','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','dropTable','addIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)','tail','table\x20dropped\x20%s','dialCutDigit','teams','voice_queues','../config/logger','INSERT\x20INTO\x20cm_contact_has_tags(createdAt,\x20updatedAt,\x20`CmContactId`,\x20`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20\x20NOW(),\x20NOW(),\x20tmt.contact_id,\x20tt.id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmp_tools_tags\x20tmt\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20tools_tags\x20tt\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20tmt.name\x20=\x20tt.name;','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','removeIndex\x20%s\x20%s','removeColumn','queryInterface','CREATE\x20TABLE\x20`cm_contact_has_tags`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`CmContactId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`TagId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`CmContactId`,`TagId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`TagId`\x20(`TagId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`cm_contact_has_tags_ibfk_1`\x20FOREIGN\x20KEY\x20(`CmContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`cm_contact_has_tags_ibfk_2`\x20FOREIGN\x20KEY\x20(`TagId`)\x20REFERENCES\x20`tools_tags`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','addIndex\x20%s\x20%s\x20%s','inspect','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','campaigns','UNSIGNED','exports','changeColumn','addColumn','final','STRING','INSERT\x20INTO\x20tmp_tools_tags(\x20name,\x20createdAt,\x20updatedAt,\x20contact_id)\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20splitted_tags,\x20CURRENT_TIMESTAMP(),\x20CURRENT_TIMESTAMP()\x20,\x20id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20DISTINCT\x20cm.id,\x20cm.tags,\x20TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(cm.tags,\x20\x27;\x27,\x20i+1),\x27;\x27,-1))\x20splitted_tags\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20ints\x20i,\x20cm_contacts\x20cm\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20cm.tags\x20REGEXP\x20\x27(.*;){1}\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20id)\x20a\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20a.tags\x20IS\x20NOT\x20NULL\x20and\x20splitted_tags\x20<>\x20\x27\x27;','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)','query\x20%s','join','query','migration','INTEGER','then','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','removeIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)','sequence','cm_contacts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally'];(function(_0x5bbc39,_0x27ae8d){const _0x355032=function(_0x1f4047){while(--_0x1f4047){_0x5bbc39['push'](_0x5bbc39['shift']());}};_0x355032(++_0x27ae8d);}(a944_0x27ae,0xbd));const a944_0x3550=function(_0x5bbc39,_0x27ae8d){_0x5bbc39=_0x5bbc39-0x0;let _0x355032=a944_0x27ae[_0x5bbc39];return _0x355032;};const _0x23c144=a944_0x3550;'use strict';const util=require('util'),logger=require(_0x23c144('0x2e'))(_0x23c144('0xe')),Sequence=function(){};Sequence[_0x23c144('0x21')][_0x23c144('0x1d')]=function(_0x1f4047){const _0x201fd8=_0x23c144;this[_0x201fd8('0x29')]=this[_0x201fd8('0x29')]?this['tail'][_0x201fd8('0x1a')](_0x1f4047):_0x1f4047();};const Migration=function(_0x2dc249){const _0x11e5a6=_0x23c144;this['queryInterface']=_0x2dc249,this[_0x11e5a6('0x17')]=new Sequence();};Migration[_0x23c144('0x21')][_0x23c144('0x5')]=function(_0x26d74d,_0x192e67,_0x5d7851){const _0x145812=_0x23c144,_0x14837c=this;this[_0x145812('0x17')][_0x145812('0x1d')](function(){const _0x295763=_0x145812;return _0x14837c[_0x295763('0x33')]['changeColumn'](_0x26d74d,_0x192e67,_0x5d7851)[_0x295763('0x10')](function(){const _0x422d4c=_0x295763;logger[_0x422d4c('0x23')](_0x422d4c('0x13'),_0x192e67,_0x26d74d);})[_0x295763('0x14')](function(_0x520c87){const _0x1d92c6=_0x295763;logger['info'](JSON[_0x1d92c6('0x22')](_0x520c87));});});},Migration[_0x23c144('0x21')][_0x23c144('0x6')]=function(_0xd1b52d,_0x220d4b,_0x4acb81){const _0x38cf54=_0x23c144,_0x36902a=this;this[_0x38cf54('0x17')][_0x38cf54('0x1d')](function(){const _0x3079ef=_0x38cf54;return _0x36902a[_0x3079ef('0x33')]['addColumn'](_0xd1b52d,_0x220d4b,_0x4acb81)[_0x3079ef('0x10')](function(){const _0x550f99=_0x3079ef;logger[_0x550f99('0x23')](_0x550f99('0x12'),_0x220d4b,_0xd1b52d);})[_0x3079ef('0x14')](function(_0x53ae30){const _0x164674=_0x3079ef;logger[_0x164674('0x23')](JSON['stringify'](_0x53ae30));});});},Migration[_0x23c144('0x21')][_0x23c144('0x26')]=function(_0x267b6d){const _0x5a270b=_0x23c144,_0x925d6f=this;this[_0x5a270b('0x17')]['enqueue'](function(){const _0x33d0ea=_0x5a270b;return _0x925d6f['queryInterface'][_0x33d0ea('0x26')](_0x267b6d,{'force':!![]})[_0x33d0ea('0x10')](function(){const _0x9a27e9=_0x33d0ea;logger[_0x9a27e9('0x23')](_0x9a27e9('0x2a'),_0x267b6d);})[_0x33d0ea('0x14')](function(_0x2ffc69){const _0x59544b=_0x33d0ea;logger[_0x59544b('0x23')](JSON[_0x59544b('0x22')](_0x2ffc69));});});},Migration[_0x23c144('0x21')][_0x23c144('0x27')]=function(_0xa6b273,_0x41a88e,_0x338dcf){const _0x2b85f9=this;this['sequence']['enqueue'](function(){const _0x302eb4=a944_0x3550;return _0x2b85f9['queryInterface'][_0x302eb4('0x27')](_0xa6b273,_0x41a88e,{'indexName':_0x338dcf})[_0x302eb4('0x10')](function(){const _0x2f8606=_0x302eb4;logger[_0x2f8606('0x23')](_0x2f8606('0x35'),_0xa6b273,_0x41a88e[_0x2f8606('0xc')](','),_0x338dcf);})['catch'](function(_0x524447){const _0x118572=_0x302eb4;logger[_0x118572('0x23')](JSON[_0x118572('0x22')](_0x524447));});});},Migration[_0x23c144('0x21')][_0x23c144('0x15')]=function(_0x21e02d,_0x587974){const _0x5a1d8c=_0x23c144,_0x32f06c=this;this[_0x5a1d8c('0x17')][_0x5a1d8c('0x1d')](function(){const _0x1a78fd=_0x5a1d8c;return _0x32f06c[_0x1a78fd('0x33')][_0x1a78fd('0x15')](_0x21e02d,_0x587974)[_0x1a78fd('0x10')](function(){const _0x1471e5=_0x1a78fd;logger[_0x1471e5('0x23')](_0x1471e5('0x31'),_0x21e02d,_0x587974);})[_0x1a78fd('0x14')](function(_0x1c1079){const _0x4f2df9=_0x1a78fd;logger['info'](JSON[_0x4f2df9('0x22')](_0x1c1079));});});},Migration['prototype'][_0x23c144('0xd')]=function(_0x1b819b){const _0x28619e=_0x23c144,_0x2e8aa1=this;this[_0x28619e('0x17')][_0x28619e('0x1d')](function(){const _0x4826e4=_0x28619e;return _0x2e8aa1[_0x4826e4('0x33')][_0x4826e4('0x24')][_0x4826e4('0xd')](_0x1b819b)[_0x4826e4('0x10')](function(){const _0x1dbab3=_0x4826e4;logger[_0x1dbab3('0x23')](_0x1dbab3('0xb'),_0x1b819b);})[_0x4826e4('0x14')](function(_0x2a436a){const _0x1e9f41=_0x4826e4;logger[_0x1e9f41('0x23')](JSON[_0x1e9f41('0x22')](_0x2a436a));});});},Migration[_0x23c144('0x21')][_0x23c144('0x32')]=function(_0x4b7cbc,_0x2ee7df){const _0x344aa1=_0x23c144,_0xaf8230=this;this[_0x344aa1('0x17')]['enqueue'](function(){const _0x8dd43d=_0x344aa1;return _0xaf8230[_0x8dd43d('0x33')][_0x8dd43d('0x32')](_0x4b7cbc,_0x2ee7df)[_0x8dd43d('0x10')](function(){const _0x2da6cc=_0x8dd43d;logger[_0x2da6cc('0x23')]('Removed\x20column\x20%s\x20from\x20%s',_0x2ee7df,_0x4b7cbc);})['catch'](function(_0x26f6a6){logger['info'](util['inspect'](_0x26f6a6,{'showHidden':![],'depth':null}));});});},Migration[_0x23c144('0x21')][_0x23c144('0x20')]=function(_0x385ee3,_0x41e14f,_0x3759eb){const _0x39fb56=_0x23c144,_0x52e6f6=this;this[_0x39fb56('0x17')][_0x39fb56('0x1d')](function(){const _0x45a9ee=_0x39fb56;return _0x52e6f6['queryInterface']['renameColumn'](_0x385ee3,_0x41e14f,_0x3759eb)['then'](function(){const _0x8b5e87=a944_0x3550;logger[_0x8b5e87('0x23')](_0x8b5e87('0x19'),_0x41e14f,_0x3759eb,_0x385ee3);})[_0x45a9ee('0x14')](function(_0x350500){const _0x4cf18d=_0x45a9ee;logger[_0x4cf18d('0x23')](util[_0x4cf18d('0x0')](_0x350500,{'showHidden':![],'depth':null}));});});},Migration[_0x23c144('0x21')]['final']=function(_0x7686a9){const _0x5ba63b=_0x23c144;this[_0x5ba63b('0x17')][_0x5ba63b('0x1d')](function(){return _0x7686a9();});},module[_0x23c144('0x4')]={'up':function(_0x4736c1,_0x57890a){return new Promise(function(_0x96572a){const _0x5252b1=a944_0x3550,_0x39a85c=new Migration(_0x4736c1);_0x39a85c[_0x5252b1('0x6')](_0x5252b1('0x2d'),_0x5252b1('0x1f'),{'type':_0x57890a['INTEGER'](0x3)[_0x5252b1('0x3')],'defaultValue':0x0}),_0x39a85c[_0x5252b1('0x6')]('voice_queues','dialCutDigit',{'type':_0x57890a[_0x5252b1('0xf')](0x3)[_0x5252b1('0x3')],'defaultValue':0x0}),_0x39a85c[_0x5252b1('0x6')](_0x5252b1('0x2'),'dialRandomLastDigitCallerIdNumber',{'type':_0x57890a[_0x5252b1('0xf')](0x3)[_0x5252b1('0x3')],'defaultValue':0x0}),_0x39a85c[_0x5252b1('0x6')]('campaigns',_0x5252b1('0x2b'),{'type':_0x57890a[_0x5252b1('0xf')](0x3)[_0x5252b1('0x3')],'defaultValue':0x0}),_0x39a85c[_0x5252b1('0x6')](_0x5252b1('0x18'),_0x5252b1('0x2c'),{'type':_0x57890a[_0x5252b1('0x8')]}),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x34')),_0x39a85c['query']('CREATE\x20TABLE\x20`tmp_tools_tags`\x20(\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`color`\x20varchar(255)\x20DEFAULT\x20\x27#0091EA\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`))\x20ENGINE=InnoDB\x20CHARSET=utf8;'),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x30')),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x1e')),_0x39a85c['query']('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)'),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x28')),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x1b')),_0x39a85c[_0x5252b1('0xd')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)'),_0x39a85c['query'](_0x5252b1('0x25')),_0x39a85c['query'](_0x5252b1('0x1')),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x1c')),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0xa')),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x16')),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x11')),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x9')),_0x39a85c[_0x5252b1('0xd')](_0x5252b1('0x2f')),_0x39a85c[_0x5252b1('0x7')](_0x96572a);});},'down':function(){}}; \ No newline at end of file +const a944_0x6818=['prototype','cm_contacts','sequelize','UNSIGNED','sequence','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','info','dialCutDigit','enqueue','then','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','catch','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','removeColumn','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','renameColumn','inspect','removeIndex\x20%s\x20%s','INTEGER','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)','finally','INSERT\x20INTO\x20cm_contact_has_tags(createdAt,\x20updatedAt,\x20`CmContactId`,\x20`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20\x20NOW(),\x20NOW(),\x20tmt.contact_id,\x20tt.id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmp_tools_tags\x20tmt\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20tools_tags\x20tt\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20tmt.name\x20=\x20tt.name;','dropTable','addColumn','query','dialRandomLastDigitCallerIdNumber','tail','campaigns','stringify','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','STRING','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','Changed\x20column\x20%s\x20in\x20table\x20%s','teams','addIndex\x20%s\x20%s\x20%s','removeIndex','CREATE\x20TABLE\x20`cm_contact_has_tags`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`CmContactId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`TagId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`CmContactId`,`TagId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`TagId`\x20(`TagId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`cm_contact_has_tags_ibfk_1`\x20FOREIGN\x20KEY\x20(`CmContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`cm_contact_has_tags_ibfk_2`\x20FOREIGN\x20KEY\x20(`TagId`)\x20REFERENCES\x20`tools_tags`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','util','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','queryInterface'];(function(_0x277fe1,_0x68189d){const _0x44a7ce=function(_0x2b4eb8){while(--_0x2b4eb8){_0x277fe1['push'](_0x277fe1['shift']());}};_0x44a7ce(++_0x68189d);}(a944_0x6818,0x161));const a944_0x44a7=function(_0x277fe1,_0x68189d){_0x277fe1=_0x277fe1-0x0;let _0x44a7ce=a944_0x6818[_0x277fe1];return _0x44a7ce;};const _0x58d4ee=a944_0x44a7;'use strict';const util=require(_0x58d4ee('0xc')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x58d4ee('0xf')][_0x58d4ee('0x17')]=function(_0x2b4eb8){const _0x24f88f=_0x58d4ee;this['tail']=this['tail']?this[_0x24f88f('0x2c')][_0x24f88f('0x26')](_0x2b4eb8):_0x2b4eb8();};const Migration=function(_0x2ed932){const _0x2b9992=_0x58d4ee;this[_0x2b9992('0xe')]=_0x2ed932,this['sequence']=new Sequence();};Migration[_0x58d4ee('0xf')][_0x58d4ee('0x5')]=function(_0x1edbba,_0x25686f,_0x5c1a24){const _0x368e36=_0x58d4ee,_0x4e2f42=this;this[_0x368e36('0x13')]['enqueue'](function(){const _0x33af48=_0x368e36;return _0x4e2f42[_0x33af48('0xe')][_0x33af48('0x5')](_0x1edbba,_0x25686f,_0x5c1a24)[_0x33af48('0x18')](function(){const _0x119ac9=_0x33af48;logger[_0x119ac9('0x15')](_0x119ac9('0x7'),_0x25686f,_0x1edbba);})['catch'](function(_0x2b7c0a){const _0x578323=_0x33af48;logger[_0x578323('0x15')](JSON[_0x578323('0x0')](_0x2b7c0a));});});},Migration[_0x58d4ee('0xf')][_0x58d4ee('0x29')]=function(_0x2d25e9,_0x4250f7,_0x10b574){const _0x3a1baa=_0x58d4ee,_0x4b9680=this;this[_0x3a1baa('0x13')][_0x3a1baa('0x17')](function(){const _0x211290=_0x3a1baa;return _0x4b9680[_0x211290('0xe')][_0x211290('0x29')](_0x2d25e9,_0x4250f7,_0x10b574)[_0x211290('0x18')](function(){const _0x487339=_0x211290;logger['info'](_0x487339('0x1f'),_0x4250f7,_0x2d25e9);})[_0x211290('0x1a')](function(_0xfcfbd9){const _0x21b1f4=_0x211290;logger[_0x21b1f4('0x15')](JSON[_0x21b1f4('0x0')](_0xfcfbd9));});});},Migration['prototype'][_0x58d4ee('0x28')]=function(_0x764bd5){const _0x2b0b79=_0x58d4ee,_0x131180=this;this[_0x2b0b79('0x13')][_0x2b0b79('0x17')](function(){const _0x27fea3=_0x2b0b79;return _0x131180[_0x27fea3('0xe')]['dropTable'](_0x764bd5,{'force':!![]})[_0x27fea3('0x18')](function(){const _0x279823=_0x27fea3;logger[_0x279823('0x15')](_0x279823('0x1e'),_0x764bd5);})[_0x27fea3('0x1a')](function(_0x247d2d){const _0x106683=_0x27fea3;logger[_0x106683('0x15')](JSON[_0x106683('0x0')](_0x247d2d));});});},Migration[_0x58d4ee('0xf')]['addIndex']=function(_0x5113b2,_0xf371fd,_0x41afe0){const _0x3566c7=_0x58d4ee,_0x355054=this;this['sequence'][_0x3566c7('0x17')](function(){const _0x4b7e7d=_0x3566c7;return _0x355054[_0x4b7e7d('0xe')]['addIndex'](_0x5113b2,_0xf371fd,{'indexName':_0x41afe0})[_0x4b7e7d('0x18')](function(){const _0x5f5410=_0x4b7e7d;logger[_0x5f5410('0x15')](_0x5f5410('0x9'),_0x5113b2,_0xf371fd['join'](','),_0x41afe0);})[_0x4b7e7d('0x1a')](function(_0x34f87d){const _0x3d1c52=_0x4b7e7d;logger[_0x3d1c52('0x15')](JSON[_0x3d1c52('0x0')](_0x34f87d));});});},Migration['prototype']['removeIndex']=function(_0x17fd49,_0x43b9d5){const _0x1e8f2e=this;this['sequence']['enqueue'](function(){const _0x386894=a944_0x44a7;return _0x1e8f2e[_0x386894('0xe')][_0x386894('0xa')](_0x17fd49,_0x43b9d5)[_0x386894('0x18')](function(){const _0x246300=_0x386894;logger[_0x246300('0x15')](_0x246300('0x22'),_0x17fd49,_0x43b9d5);})['catch'](function(_0x633b36){const _0x12cd0a=_0x386894;logger[_0x12cd0a('0x15')](JSON['stringify'](_0x633b36));});});},Migration[_0x58d4ee('0xf')][_0x58d4ee('0x2a')]=function(_0x256b6a){const _0x254246=_0x58d4ee,_0x3d4853=this;this['sequence'][_0x254246('0x17')](function(){const _0x4699e8=_0x254246;return _0x3d4853[_0x4699e8('0xe')][_0x4699e8('0x11')]['query'](_0x256b6a)[_0x4699e8('0x18')](function(){const _0x4be9ce=_0x4699e8;logger[_0x4be9ce('0x15')]('query\x20%s',_0x256b6a);})[_0x4699e8('0x1a')](function(_0x2eed82){const _0x407344=_0x4699e8;logger[_0x407344('0x15')](JSON[_0x407344('0x0')](_0x2eed82));});});},Migration[_0x58d4ee('0xf')][_0x58d4ee('0x1d')]=function(_0x20024d,_0x143247){const _0x423264=_0x58d4ee,_0x517f6e=this;this[_0x423264('0x13')][_0x423264('0x17')](function(){const _0x44c063=_0x423264;return _0x517f6e[_0x44c063('0xe')][_0x44c063('0x1d')](_0x20024d,_0x143247)[_0x44c063('0x18')](function(){const _0xb6662e=_0x44c063;logger[_0xb6662e('0x15')](_0xb6662e('0x3'),_0x143247,_0x20024d);})[_0x44c063('0x1a')](function(_0x5467e3){const _0x30adc9=_0x44c063;logger[_0x30adc9('0x15')](util[_0x30adc9('0x21')](_0x5467e3,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x770641,_0x5ae196,_0x2b15eb){const _0x3311da=_0x58d4ee,_0x33e8fd=this;this['sequence'][_0x3311da('0x17')](function(){const _0x19dfb4=_0x3311da;return _0x33e8fd[_0x19dfb4('0xe')][_0x19dfb4('0x20')](_0x770641,_0x5ae196,_0x2b15eb)[_0x19dfb4('0x18')](function(){const _0x2b3497=_0x19dfb4;logger['info'](_0x2b3497('0x4'),_0x5ae196,_0x2b15eb,_0x770641);})[_0x19dfb4('0x1a')](function(_0x3df3ec){const _0x3e3972=_0x19dfb4;logger[_0x3e3972('0x15')](util['inspect'](_0x3df3ec,{'showHidden':![],'depth':null}));});});},Migration[_0x58d4ee('0xf')]['final']=function(_0x2d6bcc){const _0x180745=_0x58d4ee;this[_0x180745('0x13')][_0x180745('0x17')](function(){return _0x2d6bcc();});},module['exports']={'up':function(_0x1c3526,_0x6b6763){return new Promise(function(_0xc49370){const _0x3750f0=a944_0x44a7,_0x59f076=new Migration(_0x1c3526);_0x59f076['addColumn']('voice_queues',_0x3750f0('0x2b'),{'type':_0x6b6763[_0x3750f0('0x23')](0x3)[_0x3750f0('0x12')],'defaultValue':0x0}),_0x59f076[_0x3750f0('0x29')]('voice_queues','dialCutDigit',{'type':_0x6b6763[_0x3750f0('0x23')](0x3)[_0x3750f0('0x12')],'defaultValue':0x0}),_0x59f076['addColumn'](_0x3750f0('0x2d'),_0x3750f0('0x2b'),{'type':_0x6b6763[_0x3750f0('0x23')](0x3)[_0x3750f0('0x12')],'defaultValue':0x0}),_0x59f076['addColumn'](_0x3750f0('0x2d'),_0x3750f0('0x16'),{'type':_0x6b6763[_0x3750f0('0x23')](0x3)[_0x3750f0('0x12')],'defaultValue':0x0}),_0x59f076['addColumn'](_0x3750f0('0x10'),_0x3750f0('0x8'),{'type':_0x6b6763[_0x3750f0('0x2')]}),_0x59f076[_0x3750f0('0x2a')](_0x3750f0('0xb')),_0x59f076[_0x3750f0('0x2a')]('CREATE\x20TABLE\x20`tmp_tools_tags`\x20(\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`color`\x20varchar(255)\x20DEFAULT\x20\x27#0091EA\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`))\x20ENGINE=InnoDB\x20CHARSET=utf8;'),_0x59f076[_0x3750f0('0x2a')]('CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8'),_0x59f076['query'](_0x3750f0('0x1c')),_0x59f076[_0x3750f0('0x2a')](_0x3750f0('0x1')),_0x59f076['query']('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)'),_0x59f076[_0x3750f0('0x2a')](_0x3750f0('0x1b')),_0x59f076[_0x3750f0('0x2a')](_0x3750f0('0x24')),_0x59f076[_0x3750f0('0x2a')](_0x3750f0('0x6')),_0x59f076[_0x3750f0('0x2a')](_0x3750f0('0x14')),_0x59f076['query'](_0x3750f0('0xd')),_0x59f076['query'](_0x3750f0('0x25')),_0x59f076['query']('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)'),_0x59f076[_0x3750f0('0x2a')](_0x3750f0('0x19')),_0x59f076['query']('INSERT\x20INTO\x20tmp_tools_tags(\x20name,\x20createdAt,\x20updatedAt,\x20contact_id)\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20splitted_tags,\x20CURRENT_TIMESTAMP(),\x20CURRENT_TIMESTAMP()\x20,\x20id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20DISTINCT\x20cm.id,\x20cm.tags,\x20TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(cm.tags,\x20\x27;\x27,\x20i+1),\x27;\x27,-1))\x20splitted_tags\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20ints\x20i,\x20cm_contacts\x20cm\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20cm.tags\x20REGEXP\x20\x27(.*;){1}\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20id)\x20a\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20a.tags\x20IS\x20NOT\x20NULL\x20and\x20splitted_tags\x20<>\x20\x27\x27;'),_0x59f076[_0x3750f0('0x2a')](_0x3750f0('0x27')),_0x59f076['final'](_0xc49370);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.66.js b/server/migrations/2.0.66.js index 61b65d8..090de48 100644 --- a/server/migrations/2.0.66.js +++ b/server/migrations/2.0.66.js @@ -1 +1 @@ -const a945_0x56dc=['addIndex','sequence','exports','phoneBarPrefixRequired','changeColumn','subject','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','queryInterface','inspect','removeIndex','viber','catch','renameColumn','enqueue','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','lastMsgBody','then','table\x20dropped\x20%s','settings','migration','tail','final','splitSizeCsv','removeColumn','splitSizeXlsx','queueTransferTimeout','addIndex\x20%s\x20%s\x20%s','TEXT','BOOLEAN','stringify','Removed\x20column\x20%s\x20from\x20%s','STRING','tools_schedules','INTEGER','queueTransfer','agentTransfer','removeIndex\x20%s\x20%s','split','mail_interactions','prototype','sequelize','agentTransferTimeout','query','analytics_report_fields','cm_contacts','mail_accounts','info','dropTable'];(function(_0x169071,_0x56dc4d){const _0x551df9=function(_0x188851){while(--_0x188851){_0x169071['push'](_0x169071['shift']());}};_0x551df9(++_0x56dc4d);}(a945_0x56dc,0xf9));const a945_0x551d=function(_0x169071,_0x56dc4d){_0x169071=_0x169071-0x0;let _0x551df9=a945_0x56dc[_0x169071];return _0x551df9;};const _0x1c6eca=a945_0x551d;'use strict';const util=require('util'),logger=require('../config/logger')(_0x1c6eca('0x10')),Sequence=function(){};Sequence[_0x1c6eca('0x24')][_0x1c6eca('0xa')]=function(_0x188851){const _0x34e133=_0x1c6eca;this[_0x34e133('0x11')]=this[_0x34e133('0x11')]?this['tail']['finally'](_0x188851):_0x188851();};const Migration=function(_0x3a0b2b){const _0x32bd23=_0x1c6eca;this[_0x32bd23('0x4')]=_0x3a0b2b,this['sequence']=new Sequence();};Migration['prototype'][_0x1c6eca('0x0')]=function(_0x592f71,_0x54aa5c,_0x2ca475){const _0x1fb941=_0x1c6eca,_0x84d817=this;this[_0x1fb941('0x2e')]['enqueue'](function(){const _0xfae1c6=_0x1fb941;return _0x84d817[_0xfae1c6('0x4')][_0xfae1c6('0x0')](_0x592f71,_0x54aa5c,_0x2ca475)[_0xfae1c6('0xd')](function(){const _0x508d26=_0xfae1c6;logger['info'](_0x508d26('0x2'),_0x54aa5c,_0x592f71);})[_0xfae1c6('0x8')](function(_0x1f9a05){const _0x14f06a=_0xfae1c6;logger[_0x14f06a('0x2b')](JSON[_0x14f06a('0x1a')](_0x1f9a05));});});},Migration[_0x1c6eca('0x24')][_0x1c6eca('0x3')]=function(_0x48bad5,_0x2460a7,_0x56b108){const _0x149a6b=this;this['sequence']['enqueue'](function(){const _0x2c53f3=a945_0x551d;return _0x149a6b[_0x2c53f3('0x4')][_0x2c53f3('0x3')](_0x48bad5,_0x2460a7,_0x56b108)['then'](function(){const _0x497ed0=_0x2c53f3;logger[_0x497ed0('0x2b')]('Added\x20column\x20%s\x20to\x20%s',_0x2460a7,_0x48bad5);})['catch'](function(_0x4f763f){const _0x334709=_0x2c53f3;logger[_0x334709('0x2b')](JSON['stringify'](_0x4f763f));});});},Migration[_0x1c6eca('0x24')]['dropTable']=function(_0x19611c){const _0x20a1ac=_0x1c6eca,_0x30ec82=this;this[_0x20a1ac('0x2e')][_0x20a1ac('0xa')](function(){const _0x4fc408=_0x20a1ac;return _0x30ec82[_0x4fc408('0x4')][_0x4fc408('0x2c')](_0x19611c,{'force':!![]})[_0x4fc408('0xd')](function(){const _0x4d8760=_0x4fc408;logger['info'](_0x4d8760('0xe'),_0x19611c);})[_0x4fc408('0x8')](function(_0x2dcdf8){const _0x85dc17=_0x4fc408;logger[_0x85dc17('0x2b')](JSON[_0x85dc17('0x1a')](_0x2dcdf8));});});},Migration[_0x1c6eca('0x24')][_0x1c6eca('0x2d')]=function(_0x2a7e6e,_0x56b345,_0x1edb40){const _0x5c5058=_0x1c6eca,_0x4da40c=this;this[_0x5c5058('0x2e')]['enqueue'](function(){const _0x20eb0e=_0x5c5058;return _0x4da40c[_0x20eb0e('0x4')][_0x20eb0e('0x2d')](_0x2a7e6e,_0x56b345,{'indexName':_0x1edb40})[_0x20eb0e('0xd')](function(){const _0x56137a=_0x20eb0e;logger['info'](_0x56137a('0x17'),_0x2a7e6e,_0x56b345['join'](','),_0x1edb40);})[_0x20eb0e('0x8')](function(_0x5ed770){const _0x48b966=_0x20eb0e;logger['info'](JSON[_0x48b966('0x1a')](_0x5ed770));});});},Migration[_0x1c6eca('0x24')][_0x1c6eca('0x6')]=function(_0x41baec,_0x5e59a0){const _0x4f4a03=_0x1c6eca,_0x23caa3=this;this[_0x4f4a03('0x2e')][_0x4f4a03('0xa')](function(){const _0x3fa26d=_0x4f4a03;return _0x23caa3[_0x3fa26d('0x4')]['removeIndex'](_0x41baec,_0x5e59a0)['then'](function(){const _0x2cdfda=_0x3fa26d;logger[_0x2cdfda('0x2b')](_0x2cdfda('0x21'),_0x41baec,_0x5e59a0);})['catch'](function(_0x5d532b){const _0x5c5fbe=_0x3fa26d;logger[_0x5c5fbe('0x2b')](JSON[_0x5c5fbe('0x1a')](_0x5d532b));});});},Migration['prototype'][_0x1c6eca('0x27')]=function(_0x369ac3){const _0x1840f9=_0x1c6eca,_0x59f084=this;this['sequence'][_0x1840f9('0xa')](function(){const _0x2bc526=_0x1840f9;return _0x59f084[_0x2bc526('0x4')][_0x2bc526('0x25')][_0x2bc526('0x27')](_0x369ac3)[_0x2bc526('0xd')](function(){const _0x570a3a=_0x2bc526;logger[_0x570a3a('0x2b')]('query\x20%s',_0x369ac3);})[_0x2bc526('0x8')](function(_0x5e8643){const _0x480a70=_0x2bc526;logger[_0x480a70('0x2b')](JSON[_0x480a70('0x1a')](_0x5e8643));});});},Migration[_0x1c6eca('0x24')][_0x1c6eca('0x14')]=function(_0x2547b2,_0x33e4fa){const _0x22b221=_0x1c6eca,_0x31fd92=this;this[_0x22b221('0x2e')][_0x22b221('0xa')](function(){const _0x2b0094=_0x22b221;return _0x31fd92[_0x2b0094('0x4')][_0x2b0094('0x14')](_0x2547b2,_0x33e4fa)[_0x2b0094('0xd')](function(){const _0x21e91d=_0x2b0094;logger[_0x21e91d('0x2b')](_0x21e91d('0x1b'),_0x33e4fa,_0x2547b2);})[_0x2b0094('0x8')](function(_0x445d11){const _0x297041=_0x2b0094;logger[_0x297041('0x2b')](util[_0x297041('0x5')](_0x445d11,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x13497d,_0x2872bf,_0x51bb2a){const _0x181950=_0x1c6eca,_0x60c9b1=this;this[_0x181950('0x2e')][_0x181950('0xa')](function(){const _0xb8276c=_0x181950;return _0x60c9b1[_0xb8276c('0x4')][_0xb8276c('0x9')](_0x13497d,_0x2872bf,_0x51bb2a)['then'](function(){const _0x17c37a=_0xb8276c;logger[_0x17c37a('0x2b')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2872bf,_0x51bb2a,_0x13497d);})[_0xb8276c('0x8')](function(_0x424eae){const _0x1be98b=_0xb8276c;logger[_0x1be98b('0x2b')](util[_0x1be98b('0x5')](_0x424eae,{'showHidden':![],'depth':null}));});});},Migration[_0x1c6eca('0x24')][_0x1c6eca('0x12')]=function(_0x1d42d7){const _0x390b4a=_0x1c6eca;this[_0x390b4a('0x2e')][_0x390b4a('0xa')](function(){return _0x1d42d7();});},module[_0x1c6eca('0x2f')]={'up':function(_0x1f316d,_0x57dba8){return new Promise(function(_0x52f2dc){const _0x1ba731=a945_0x551d,_0x49c690=new Migration(_0x1f316d);_0x49c690['changeColumn'](_0x1ba731('0x28'),'field',{'type':_0x57dba8[_0x1ba731('0x18')]}),_0x49c690['addColumn'](_0x1ba731('0x1d'),'cc',{'type':_0x57dba8[_0x1ba731('0x18')]}),_0x49c690[_0x1ba731('0x3')]('tools_schedules','bcc',{'type':_0x57dba8['TEXT']}),_0x49c690[_0x1ba731('0x3')]('settings',_0x1ba731('0x22'),{'type':_0x57dba8[_0x1ba731('0x19')],'defaultValue':!![]}),_0x49c690[_0x1ba731('0x3')](_0x1ba731('0xf'),_0x1ba731('0x13'),{'type':_0x57dba8[_0x1ba731('0x1e')],'defaultValue':0x1388}),_0x49c690['addColumn']('settings','splitSizePdf',{'type':_0x57dba8[_0x1ba731('0x1e')],'defaultValue':0x3e8}),_0x49c690[_0x1ba731('0x3')](_0x1ba731('0xf'),_0x1ba731('0x15'),{'type':_0x57dba8[_0x1ba731('0x1e')],'defaultValue':0x1388}),_0x49c690[_0x1ba731('0x3')](_0x1ba731('0x2a'),_0x1ba731('0x1f'),{'type':_0x57dba8['BOOLEAN'],'defaultValue':![]}),_0x49c690[_0x1ba731('0x3')](_0x1ba731('0x2a'),_0x1ba731('0x16'),{'type':_0x57dba8[_0x1ba731('0x1e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x49c690[_0x1ba731('0x3')](_0x1ba731('0x2a'),_0x1ba731('0x20'),{'type':_0x57dba8[_0x1ba731('0x19')],'defaultValue':![]}),_0x49c690[_0x1ba731('0x3')]('mail_accounts',_0x1ba731('0x26'),{'type':_0x57dba8[_0x1ba731('0x1e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x49c690[_0x1ba731('0x3')]('users',_0x1ba731('0x30'),{'type':_0x57dba8[_0x1ba731('0x19')],'defaultValue':![]}),_0x49c690['changeColumn'](_0x1ba731('0x23'),_0x1ba731('0x1'),{'type':_0x57dba8[_0x1ba731('0x18')]('')+_0x1ba731('0xb')}),_0x49c690[_0x1ba731('0x0')](_0x1ba731('0x23'),_0x1ba731('0xc'),{'type':_0x57dba8[_0x1ba731('0x18')]('long')+_0x1ba731('0xb')}),_0x49c690[_0x1ba731('0x3')](_0x1ba731('0x29'),_0x1ba731('0x7'),{'type':_0x57dba8[_0x1ba731('0x1c')]}),_0x49c690[_0x1ba731('0x12')](_0x52f2dc);});},'down':function(){}}; \ No newline at end of file +const a945_0x3400=['cm_contacts','info','../config/logger','TEXT','removeColumn','analytics_report_fields','settings','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','prototype','migration','exports','inspect','addColumn','long','removeIndex\x20%s\x20%s','agentTransferTimeout','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','mail_interactions','finally','splitSizeXlsx','Changed\x20column\x20%s\x20in\x20table\x20%s','field','stringify','INTEGER','changeColumn','renameColumn','splitSizePdf','phoneBarPrefixRequired','queueTransfer','addIndex\x20%s\x20%s\x20%s','BOOLEAN','tools_schedules','Added\x20column\x20%s\x20to\x20%s','then','split','queryInterface','enqueue','tail','removeIndex','query','agentTransfer','splitSizeCsv','catch','table\x20dropped\x20%s','queueTransferTimeout','sequence','final','lastMsgBody','sequelize','mail_accounts'];(function(_0x459374,_0x3400c7){const _0x5d7f54=function(_0x4bc0da){while(--_0x4bc0da){_0x459374['push'](_0x459374['shift']());}};_0x5d7f54(++_0x3400c7);}(a945_0x3400,0x6e));const a945_0x5d7f=function(_0x459374,_0x3400c7){_0x459374=_0x459374-0x0;let _0x5d7f54=a945_0x3400[_0x459374];return _0x5d7f54;};const _0x46a533=a945_0x5d7f;'use strict';const util=require('util'),logger=require(_0x46a533('0x2a'))(_0x46a533('0x31')),Sequence=function(){};Sequence[_0x46a533('0x30')][_0x46a533('0x1a')]=function(_0x4bc0da){const _0x43677c=_0x46a533;this[_0x43677c('0x1b')]=this[_0x43677c('0x1b')]?this[_0x43677c('0x1b')][_0x43677c('0x8')](_0x4bc0da):_0x4bc0da();};const Migration=function(_0x55f6e3){const _0x5995d5=_0x46a533;this['queryInterface']=_0x55f6e3,this[_0x5995d5('0x23')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x521830,_0x2f5881,_0x1900f5){const _0x4ac7e7=_0x46a533,_0x320d99=this;this[_0x4ac7e7('0x23')][_0x4ac7e7('0x1a')](function(){const _0x999cf5=_0x4ac7e7;return _0x320d99[_0x999cf5('0x19')][_0x999cf5('0xe')](_0x521830,_0x2f5881,_0x1900f5)[_0x999cf5('0x17')](function(){const _0x346788=_0x999cf5;logger[_0x346788('0x29')](_0x346788('0xa'),_0x2f5881,_0x521830);})[_0x999cf5('0x20')](function(_0x20a3e8){const _0x5a436b=_0x999cf5;logger[_0x5a436b('0x29')](JSON[_0x5a436b('0xc')](_0x20a3e8));});});},Migration['prototype']['addColumn']=function(_0x5240e9,_0x56402f,_0x3228a0){const _0x5c7377=_0x46a533,_0x1ca6bd=this;this[_0x5c7377('0x23')][_0x5c7377('0x1a')](function(){const _0x5bc2d7=_0x5c7377;return _0x1ca6bd[_0x5bc2d7('0x19')][_0x5bc2d7('0x2')](_0x5240e9,_0x56402f,_0x3228a0)[_0x5bc2d7('0x17')](function(){const _0x3d3a1a=_0x5bc2d7;logger[_0x3d3a1a('0x29')](_0x3d3a1a('0x16'),_0x56402f,_0x5240e9);})[_0x5bc2d7('0x20')](function(_0x3d8f23){const _0x3a4d12=_0x5bc2d7;logger[_0x3a4d12('0x29')](JSON[_0x3a4d12('0xc')](_0x3d8f23));});});},Migration[_0x46a533('0x30')]['dropTable']=function(_0x4c4e48){const _0x3238f4=_0x46a533,_0x33629c=this;this['sequence'][_0x3238f4('0x1a')](function(){const _0x20663e=_0x3238f4;return _0x33629c[_0x20663e('0x19')]['dropTable'](_0x4c4e48,{'force':!![]})['then'](function(){const _0x178b04=_0x20663e;logger[_0x178b04('0x29')](_0x178b04('0x21'),_0x4c4e48);})[_0x20663e('0x20')](function(_0x294290){const _0x5e4812=_0x20663e;logger['info'](JSON[_0x5e4812('0xc')](_0x294290));});});},Migration[_0x46a533('0x30')]['addIndex']=function(_0x39dc85,_0x4c0004,_0x5d98c3){const _0x17bb3d=_0x46a533,_0x2c809e=this;this[_0x17bb3d('0x23')][_0x17bb3d('0x1a')](function(){const _0x4d4fb6=_0x17bb3d;return _0x2c809e['queryInterface']['addIndex'](_0x39dc85,_0x4c0004,{'indexName':_0x5d98c3})[_0x4d4fb6('0x17')](function(){const _0x3c80c6=_0x4d4fb6;logger[_0x3c80c6('0x29')](_0x3c80c6('0x13'),_0x39dc85,_0x4c0004['join'](','),_0x5d98c3);})[_0x4d4fb6('0x20')](function(_0x299856){const _0x2e02ff=_0x4d4fb6;logger[_0x2e02ff('0x29')](JSON['stringify'](_0x299856));});});},Migration[_0x46a533('0x30')][_0x46a533('0x1c')]=function(_0x19018f,_0x3a59c1){const _0x4ce2b8=_0x46a533,_0x4808e7=this;this[_0x4ce2b8('0x23')][_0x4ce2b8('0x1a')](function(){const _0x360443=_0x4ce2b8;return _0x4808e7[_0x360443('0x19')][_0x360443('0x1c')](_0x19018f,_0x3a59c1)[_0x360443('0x17')](function(){const _0x86e6f2=_0x360443;logger[_0x86e6f2('0x29')](_0x86e6f2('0x4'),_0x19018f,_0x3a59c1);})[_0x360443('0x20')](function(_0x4537dd){const _0x4337a4=_0x360443;logger[_0x4337a4('0x29')](JSON[_0x4337a4('0xc')](_0x4537dd));});});},Migration[_0x46a533('0x30')]['query']=function(_0x3ccf02){const _0x4f357f=_0x46a533,_0x3d84e4=this;this[_0x4f357f('0x23')][_0x4f357f('0x1a')](function(){const _0x35bc57=_0x4f357f;return _0x3d84e4[_0x35bc57('0x19')][_0x35bc57('0x26')][_0x35bc57('0x1d')](_0x3ccf02)[_0x35bc57('0x17')](function(){const _0x6a3282=_0x35bc57;logger[_0x6a3282('0x29')]('query\x20%s',_0x3ccf02);})[_0x35bc57('0x20')](function(_0x4dbba4){const _0x5b8e6d=_0x35bc57;logger[_0x5b8e6d('0x29')](JSON[_0x5b8e6d('0xc')](_0x4dbba4));});});},Migration[_0x46a533('0x30')]['removeColumn']=function(_0x335665,_0x11d24f){const _0x56bf2f=_0x46a533,_0x1e3322=this;this[_0x56bf2f('0x23')]['enqueue'](function(){const _0x1984be=_0x56bf2f;return _0x1e3322[_0x1984be('0x19')][_0x1984be('0x2c')](_0x335665,_0x11d24f)[_0x1984be('0x17')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x11d24f,_0x335665);})['catch'](function(_0x14fec9){const _0x582ace=_0x1984be;logger[_0x582ace('0x29')](util[_0x582ace('0x1')](_0x14fec9,{'showHidden':![],'depth':null}));});});},Migration[_0x46a533('0x30')][_0x46a533('0xf')]=function(_0x249fba,_0x4c52ca,_0x3acc50){const _0x2c4bc0=_0x46a533,_0x3c69a4=this;this[_0x2c4bc0('0x23')][_0x2c4bc0('0x1a')](function(){const _0x152dd4=_0x2c4bc0;return _0x3c69a4[_0x152dd4('0x19')][_0x152dd4('0xf')](_0x249fba,_0x4c52ca,_0x3acc50)['then'](function(){const _0x43e877=_0x152dd4;logger[_0x43e877('0x29')](_0x43e877('0x6'),_0x4c52ca,_0x3acc50,_0x249fba);})['catch'](function(_0x525063){const _0x4311df=_0x152dd4;logger[_0x4311df('0x29')](util[_0x4311df('0x1')](_0x525063,{'showHidden':![],'depth':null}));});});},Migration[_0x46a533('0x30')]['final']=function(_0x57bc70){const _0x307681=_0x46a533;this['sequence'][_0x307681('0x1a')](function(){return _0x57bc70();});},module[_0x46a533('0x0')]={'up':function(_0xe9690,_0x53bb15){return new Promise(function(_0x14b0a8){const _0x11476f=a945_0x5d7f,_0x45c56e=new Migration(_0xe9690);_0x45c56e['changeColumn'](_0x11476f('0x2d'),_0x11476f('0xb'),{'type':_0x53bb15[_0x11476f('0x2b')]}),_0x45c56e[_0x11476f('0x2')]('tools_schedules','cc',{'type':_0x53bb15[_0x11476f('0x2b')]}),_0x45c56e[_0x11476f('0x2')](_0x11476f('0x15'),'bcc',{'type':_0x53bb15[_0x11476f('0x2b')]}),_0x45c56e[_0x11476f('0x2')](_0x11476f('0x2e'),_0x11476f('0x18'),{'type':_0x53bb15[_0x11476f('0x14')],'defaultValue':!![]}),_0x45c56e[_0x11476f('0x2')](_0x11476f('0x2e'),_0x11476f('0x1f'),{'type':_0x53bb15['INTEGER'],'defaultValue':0x1388}),_0x45c56e[_0x11476f('0x2')](_0x11476f('0x2e'),_0x11476f('0x10'),{'type':_0x53bb15[_0x11476f('0xd')],'defaultValue':0x3e8}),_0x45c56e[_0x11476f('0x2')](_0x11476f('0x2e'),_0x11476f('0x9'),{'type':_0x53bb15['INTEGER'],'defaultValue':0x1388}),_0x45c56e['addColumn']('mail_accounts',_0x11476f('0x12'),{'type':_0x53bb15['BOOLEAN'],'defaultValue':![]}),_0x45c56e[_0x11476f('0x2')](_0x11476f('0x27'),_0x11476f('0x22'),{'type':_0x53bb15[_0x11476f('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x45c56e[_0x11476f('0x2')](_0x11476f('0x27'),_0x11476f('0x1e'),{'type':_0x53bb15['BOOLEAN'],'defaultValue':![]}),_0x45c56e['addColumn'](_0x11476f('0x27'),_0x11476f('0x5'),{'type':_0x53bb15['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x45c56e[_0x11476f('0x2')]('users',_0x11476f('0x11'),{'type':_0x53bb15['BOOLEAN'],'defaultValue':![]}),_0x45c56e[_0x11476f('0xe')](_0x11476f('0x7'),'subject',{'type':_0x53bb15[_0x11476f('0x2b')]('')+'\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'}),_0x45c56e[_0x11476f('0xe')](_0x11476f('0x7'),_0x11476f('0x25'),{'type':_0x53bb15[_0x11476f('0x2b')](_0x11476f('0x3'))+_0x11476f('0x2f')}),_0x45c56e[_0x11476f('0x2')](_0x11476f('0x28'),'viber',{'type':_0x53bb15['STRING']}),_0x45c56e[_0x11476f('0x24')](_0x14b0a8);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.67.js b/server/migrations/2.0.67.js index fb560b8..e93019d 100644 --- a/server/migrations/2.0.67.js +++ b/server/migrations/2.0.67.js @@ -1 +1 @@ -const a946_0x91a5=['sequence','renameColumn','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','../config/logger','originCc','CREATE\x20TABLE\x20`user_has_chat_websites`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`ChatWebsiteId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`ChatWebsiteId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_chat_websites_ibfk_1`\x20FOREIGN\x20KEY\x20(`ChatWebsiteId`)\x20REFERENCES\x20`chat_websites`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_chat_websites_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','dropTable','long','query','prototype','INSERT\x20INTO\x20user_has_mail_accounts\x20(`UserId`,\x20`MailAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`MailAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20mail_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','CREATE\x20TABLE\x20`user_has_mail_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`MailAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_mail_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_mail_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','catch','addColumn','tail','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ChatWebsiteId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ChatWebsiteId`\x20FROM\x20chat_dispositions;','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','removeIndex','inspect','mail_messages','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`FaxAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`FaxAccountId`\x20FROM\x20fax_dispositions;','CREATE\x20TABLE\x20`tools_dispositions`\x20(\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`FaxAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`SmsAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`OpenchannelAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`ChatWebsiteId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_voice`\x20(`name`,`ListId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_chat`\x20(`name`,`ChatWebsiteId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_mail`\x20(`name`,`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_sms`\x20(`name`,`SmsAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_fax`\x20(`name`,`FaxAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_openchannel`\x20(`name`,`OpenchannelAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailAccountId`\x20(`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`FaxAccountId`\x20(`FaxAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`SmsAccountId`\x20(`SmsAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`OpenchannelAccountId`\x20(`OpenchannelAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ChatWebsiteId`\x20(`ChatWebsiteId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ListId`\x20(`ListId`),\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_2`\x20FOREIGN\x20KEY\x20(`FaxAccountId`)\x20REFERENCES\x20`fax_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_3`\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20REFERENCES\x20`sms_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_4`\x20FOREIGN\x20KEY\x20(`OpenchannelAccountId`)\x20REFERENCES\x20`openchannel_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_5`\x20FOREIGN\x20KEY\x20(`ChatWebsiteId`)\x20REFERENCES\x20`chat_websites`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_6`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','enqueue','CREATE\x20TABLE\x20`user_has_openchannel_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`OpenchannelAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`OpenchannelAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_openchannel_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`OpenchannelAccountId`)\x20REFERENCES\x20`openchannel_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_openchannel_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','CREATE\x20TABLE\x20`user_has_sms_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`SmsAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`SmsAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_sms_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20REFERENCES\x20`sms_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_sms_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','sequelize','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`SmsAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`SmsAccountId`\x20FROM\x20sms_dispositions;','finally','final','TEXT','changeColumn','then','exports','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`OpenchannelAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`OpenchannelAccountId`\x20FROM\x20openchannel_dispositions;','removeColumn','join','CREATE\x20TABLE\x20`user_has_fax_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`FaxAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`FaxAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_fax_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`FaxAccountId`)\x20REFERENCES\x20`fax_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_fax_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','stringify','addIndex\x20%s\x20%s\x20%s'];(function(_0x529b65,_0x91a564){const _0x42a494=function(_0x1df0af){while(--_0x1df0af){_0x529b65['push'](_0x529b65['shift']());}};_0x42a494(++_0x91a564);}(a946_0x91a5,0x175));const a946_0x42a4=function(_0x529b65,_0x91a564){_0x529b65=_0x529b65-0x0;let _0x42a494=a946_0x91a5[_0x529b65];return _0x42a494;};const _0x5dcf74=a946_0x42a4;'use strict';const util=require('util'),logger=require(_0x5dcf74('0x13'))('migration'),Sequence=function(){};Sequence[_0x5dcf74('0x19')][_0x5dcf74('0x28')]=function(_0x1df0af){const _0x517f9c=_0x5dcf74;this[_0x517f9c('0x1e')]=this[_0x517f9c('0x1e')]?this[_0x517f9c('0x1e')][_0x517f9c('0x2')](_0x1df0af):_0x1df0af();};const Migration=function(_0x170d4a){this['queryInterface']=_0x170d4a,this['sequence']=new Sequence();};Migration[_0x5dcf74('0x19')]['changeColumn']=function(_0x4a74be,_0x5a9742,_0x3d5215){const _0x2e338c=_0x5dcf74,_0x28c025=this;this[_0x2e338c('0xe')][_0x2e338c('0x28')](function(){const _0x24f183=_0x2e338c;return _0x28c025[_0x24f183('0x22')][_0x24f183('0x5')](_0x4a74be,_0x5a9742,_0x3d5215)[_0x24f183('0x6')](function(){const _0x4ca1ee=_0x24f183;logger['info'](_0x4ca1ee('0x21'),_0x5a9742,_0x4a74be);})['catch'](function(_0x2b8d4c){const _0x530e0d=_0x24f183;logger[_0x530e0d('0x10')](JSON[_0x530e0d('0xc')](_0x2b8d4c));});});},Migration[_0x5dcf74('0x19')]['addColumn']=function(_0xf91892,_0x42dfe3,_0x126a92){const _0x178420=_0x5dcf74,_0x5fb997=this;this[_0x178420('0xe')]['enqueue'](function(){const _0x4086b7=_0x178420;return _0x5fb997[_0x4086b7('0x22')]['addColumn'](_0xf91892,_0x42dfe3,_0x126a92)[_0x4086b7('0x6')](function(){const _0x4cb071=_0x4086b7;logger[_0x4cb071('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x42dfe3,_0xf91892);})[_0x4086b7('0x1c')](function(_0x79a8dc){const _0x162c49=_0x4086b7;logger[_0x162c49('0x10')](JSON[_0x162c49('0xc')](_0x79a8dc));});});},Migration['prototype'][_0x5dcf74('0x16')]=function(_0x138f0d){const _0x3827dc=_0x5dcf74,_0x204c22=this;this['sequence'][_0x3827dc('0x28')](function(){const _0x385669=_0x3827dc;return _0x204c22['queryInterface']['dropTable'](_0x138f0d,{'force':!![]})[_0x385669('0x6')](function(){const _0x4b4a22=_0x385669;logger[_0x4b4a22('0x10')](_0x4b4a22('0x20'),_0x138f0d);})[_0x385669('0x1c')](function(_0xe414a3){const _0x1915a9=_0x385669;logger[_0x1915a9('0x10')](JSON['stringify'](_0xe414a3));});});},Migration[_0x5dcf74('0x19')]['addIndex']=function(_0x51727f,_0x1681e0,_0x3317bb){const _0x3a52c3=_0x5dcf74,_0x579b0e=this;this[_0x3a52c3('0xe')][_0x3a52c3('0x28')](function(){const _0x58c53b=_0x3a52c3;return _0x579b0e[_0x58c53b('0x22')]['addIndex'](_0x51727f,_0x1681e0,{'indexName':_0x3317bb})[_0x58c53b('0x6')](function(){const _0x1c0cd2=_0x58c53b;logger[_0x1c0cd2('0x10')](_0x1c0cd2('0xd'),_0x51727f,_0x1681e0[_0x1c0cd2('0xa')](','),_0x3317bb);})[_0x58c53b('0x1c')](function(_0xc4d580){const _0x318401=_0x58c53b;logger['info'](JSON[_0x318401('0xc')](_0xc4d580));});});},Migration[_0x5dcf74('0x19')][_0x5dcf74('0x23')]=function(_0x235aed,_0x334865){const _0x5edf7a=_0x5dcf74,_0x57eb46=this;this[_0x5edf7a('0xe')][_0x5edf7a('0x28')](function(){const _0x316ee2=_0x5edf7a;return _0x57eb46[_0x316ee2('0x22')][_0x316ee2('0x23')](_0x235aed,_0x334865)[_0x316ee2('0x6')](function(){const _0x1fd284=_0x316ee2;logger[_0x1fd284('0x10')](_0x1fd284('0x12'),_0x235aed,_0x334865);})[_0x316ee2('0x1c')](function(_0x593366){const _0x48ed4c=_0x316ee2;logger[_0x48ed4c('0x10')](JSON[_0x48ed4c('0xc')](_0x593366));});});},Migration[_0x5dcf74('0x19')]['query']=function(_0x1f13c3){const _0x5e64ca=_0x5dcf74,_0x277ba8=this;this[_0x5e64ca('0xe')][_0x5e64ca('0x28')](function(){const _0x31dc84=_0x5e64ca;return _0x277ba8[_0x31dc84('0x22')][_0x31dc84('0x0')][_0x31dc84('0x18')](_0x1f13c3)['then'](function(){const _0x3da087=_0x31dc84;logger[_0x3da087('0x10')]('query\x20%s',_0x1f13c3);})[_0x31dc84('0x1c')](function(_0x598003){const _0x484865=_0x31dc84;logger[_0x484865('0x10')](JSON[_0x484865('0xc')](_0x598003));});});},Migration['prototype'][_0x5dcf74('0x9')]=function(_0x47906c,_0x54bad8){const _0x21855c=_0x5dcf74,_0x3ace89=this;this[_0x21855c('0xe')]['enqueue'](function(){const _0x31f6ed=_0x21855c;return _0x3ace89[_0x31f6ed('0x22')][_0x31f6ed('0x9')](_0x47906c,_0x54bad8)['then'](function(){const _0x1d3af9=_0x31f6ed;logger[_0x1d3af9('0x10')]('Removed\x20column\x20%s\x20from\x20%s',_0x54bad8,_0x47906c);})[_0x31f6ed('0x1c')](function(_0x2ecb63){const _0x28c41b=_0x31f6ed;logger[_0x28c41b('0x10')](util[_0x28c41b('0x24')](_0x2ecb63,{'showHidden':![],'depth':null}));});});},Migration[_0x5dcf74('0x19')][_0x5dcf74('0xf')]=function(_0x469391,_0x451ce1,_0x170390){const _0x35ad56=_0x5dcf74,_0x4b4aae=this;this[_0x35ad56('0xe')][_0x35ad56('0x28')](function(){const _0x5d40cf=_0x35ad56;return _0x4b4aae[_0x5d40cf('0x22')]['renameColumn'](_0x469391,_0x451ce1,_0x170390)[_0x5d40cf('0x6')](function(){const _0x23c0ca=_0x5d40cf;logger[_0x23c0ca('0x10')](_0x23c0ca('0x11'),_0x451ce1,_0x170390,_0x469391);})[_0x5d40cf('0x1c')](function(_0x4502b5){const _0x1434fc=_0x5d40cf;logger[_0x1434fc('0x10')](util['inspect'](_0x4502b5,{'showHidden':![],'depth':null}));});});},Migration[_0x5dcf74('0x19')][_0x5dcf74('0x3')]=function(_0x1e9189){const _0x251d3e=_0x5dcf74;this['sequence'][_0x251d3e('0x28')](function(){return _0x1e9189();});},module[_0x5dcf74('0x7')]={'up':function(_0x436b76,_0x143503){return new Promise(function(_0x30d225){const _0x9b8093=a946_0x42a4,_0x28fc6c=new Migration(_0x436b76),_0xb2b41a=_0x9b8093('0x27');_0x28fc6c[_0x9b8093('0x18')](_0xb2b41a),_0x28fc6c['query'](_0x9b8093('0x1f')),_0x28fc6c[_0x9b8093('0x18')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`MailAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`MailAccountId`\x20FROM\x20mail_dispositions;'),_0x28fc6c[_0x9b8093('0x18')](_0x9b8093('0x26')),_0x28fc6c[_0x9b8093('0x18')](_0x9b8093('0x1')),_0x28fc6c[_0x9b8093('0x18')](_0x9b8093('0x8')),_0x28fc6c[_0x9b8093('0x18')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ListId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ListId`\x20FROM\x20voice_dispositions;'),_0x28fc6c[_0x9b8093('0x18')](_0x9b8093('0x15')),_0x28fc6c['query']('INSERT\x20INTO\x20user_has_chat_websites\x20(`UserId`,\x20`ChatWebsiteId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`ChatWebsiteId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20chat_websites\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;'),_0x28fc6c['query'](_0x9b8093('0x1b')),_0x28fc6c[_0x9b8093('0x18')](_0x9b8093('0x1a')),_0x28fc6c['query'](_0x9b8093('0xb')),_0x28fc6c[_0x9b8093('0x18')]('INSERT\x20INTO\x20user_has_fax_accounts\x20(`UserId`,\x20`FaxAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`FaxAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20fax_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;'),_0x28fc6c[_0x9b8093('0x18')](_0x9b8093('0x2a')),_0x28fc6c['query']('INSERT\x20INTO\x20user_has_sms_accounts\x20(`UserId`,\x20`SmsAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`SmsAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20sms_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;'),_0x28fc6c[_0x9b8093('0x18')](_0x9b8093('0x29')),_0x28fc6c[_0x9b8093('0x18')]('INSERT\x20INTO\x20user_has_openchannel_accounts\x20(`UserId`,\x20`OpenchannelAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`OpenchannelAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20openchannel_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;'),_0x28fc6c['addColumn'](_0x9b8093('0x25'),'originTo',{'type':_0x143503[_0x9b8093('0x4')](_0x9b8093('0x17'))}),_0x28fc6c[_0x9b8093('0x1d')](_0x9b8093('0x25'),_0x9b8093('0x14'),{'type':_0x143503[_0x9b8093('0x4')]('long')}),_0x28fc6c[_0x9b8093('0x3')](_0x30d225);});},'down':function(){}}; \ No newline at end of file +const a946_0x15d7=['CREATE\x20TABLE\x20`user_has_mail_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`MailAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_mail_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_mail_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','CREATE\x20TABLE\x20`user_has_chat_websites`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`ChatWebsiteId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`ChatWebsiteId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_chat_websites_ibfk_1`\x20FOREIGN\x20KEY\x20(`ChatWebsiteId`)\x20REFERENCES\x20`chat_websites`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_chat_websites_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','CREATE\x20TABLE\x20`user_has_openchannel_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`OpenchannelAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`OpenchannelAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_openchannel_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`OpenchannelAccountId`)\x20REFERENCES\x20`openchannel_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_openchannel_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ListId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ListId`\x20FROM\x20voice_dispositions;','mail_messages','final','enqueue','CREATE\x20TABLE\x20`user_has_sms_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`SmsAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`SmsAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_sms_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20REFERENCES\x20`sms_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_sms_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','Added\x20column\x20%s\x20to\x20%s','../config/logger','originCc','INSERT\x20INTO\x20user_has_openchannel_accounts\x20(`UserId`,\x20`OpenchannelAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`OpenchannelAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20openchannel_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','sequelize','tail','dropTable','CREATE\x20TABLE\x20`tools_dispositions`\x20(\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`FaxAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`SmsAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`OpenchannelAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`ChatWebsiteId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_voice`\x20(`name`,`ListId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_chat`\x20(`name`,`ChatWebsiteId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_mail`\x20(`name`,`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_sms`\x20(`name`,`SmsAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_fax`\x20(`name`,`FaxAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_openchannel`\x20(`name`,`OpenchannelAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailAccountId`\x20(`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`FaxAccountId`\x20(`FaxAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`SmsAccountId`\x20(`SmsAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`OpenchannelAccountId`\x20(`OpenchannelAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ChatWebsiteId`\x20(`ChatWebsiteId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ListId`\x20(`ListId`),\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_2`\x20FOREIGN\x20KEY\x20(`FaxAccountId`)\x20REFERENCES\x20`fax_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_3`\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20REFERENCES\x20`sms_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_4`\x20FOREIGN\x20KEY\x20(`OpenchannelAccountId`)\x20REFERENCES\x20`openchannel_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_5`\x20FOREIGN\x20KEY\x20(`ChatWebsiteId`)\x20REFERENCES\x20`chat_websites`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_6`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`MailAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`MailAccountId`\x20FROM\x20mail_dispositions;','addIndex\x20%s\x20%s\x20%s','info','INSERT\x20INTO\x20user_has_mail_accounts\x20(`UserId`,\x20`MailAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`MailAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20mail_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','changeColumn','then','table\x20dropped\x20%s','long','INSERT\x20INTO\x20user_has_sms_accounts\x20(`UserId`,\x20`SmsAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`SmsAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20sms_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','INSERT\x20INTO\x20user_has_chat_websites\x20(`UserId`,\x20`ChatWebsiteId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`ChatWebsiteId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20chat_websites\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','renameColumn','addColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`FaxAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`FaxAccountId`\x20FROM\x20fax_dispositions;','TEXT','originTo','removeIndex\x20%s\x20%s','queryInterface','prototype','stringify','migration','catch','sequence','CREATE\x20TABLE\x20`user_has_fax_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`FaxAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`FaxAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_fax_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`FaxAccountId`)\x20REFERENCES\x20`fax_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_fax_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','query','exports'];(function(_0x5dac6f,_0x15d772){const _0x4dbc11=function(_0x5d43e0){while(--_0x5d43e0){_0x5dac6f['push'](_0x5dac6f['shift']());}};_0x4dbc11(++_0x15d772);}(a946_0x15d7,0x176));const a946_0x4dbc=function(_0x5dac6f,_0x15d772){_0x5dac6f=_0x5dac6f-0x0;let _0x4dbc11=a946_0x15d7[_0x5dac6f];return _0x4dbc11;};const _0x3e509f=a946_0x4dbc;'use strict';const util=require('util'),logger=require(_0x3e509f('0x4'))(_0x3e509f('0x1e')),Sequence=function(){};Sequence[_0x3e509f('0x1c')][_0x3e509f('0x1')]=function(_0x5d43e0){const _0x4bc4c6=_0x3e509f;this[_0x4bc4c6('0x8')]=this[_0x4bc4c6('0x8')]?this[_0x4bc4c6('0x8')]['finally'](_0x5d43e0):_0x5d43e0();};const Migration=function(_0x1f5e75){const _0x112230=_0x3e509f;this[_0x112230('0x1b')]=_0x1f5e75,this['sequence']=new Sequence();};Migration[_0x3e509f('0x1c')][_0x3e509f('0xf')]=function(_0x4f7d7c,_0x303189,_0x156b09){const _0x55493f=_0x3e509f,_0x540250=this;this[_0x55493f('0x20')][_0x55493f('0x1')](function(){const _0x1e0317=_0x55493f;return _0x540250['queryInterface']['changeColumn'](_0x4f7d7c,_0x303189,_0x156b09)[_0x1e0317('0x10')](function(){const _0x50354f=_0x1e0317;logger[_0x50354f('0xd')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x303189,_0x4f7d7c);})[_0x1e0317('0x1f')](function(_0x46252c){const _0x46fffe=_0x1e0317;logger[_0x46fffe('0xd')](JSON[_0x46fffe('0x1d')](_0x46252c));});});},Migration['prototype'][_0x3e509f('0x16')]=function(_0x149c78,_0xa9d5cb,_0x1a5580){const _0x380c41=_0x3e509f,_0x2c6d7e=this;this['sequence'][_0x380c41('0x1')](function(){const _0x4f7518=_0x380c41;return _0x2c6d7e[_0x4f7518('0x1b')]['addColumn'](_0x149c78,_0xa9d5cb,_0x1a5580)[_0x4f7518('0x10')](function(){const _0x53e73f=_0x4f7518;logger[_0x53e73f('0xd')](_0x53e73f('0x3'),_0xa9d5cb,_0x149c78);})[_0x4f7518('0x1f')](function(_0x23243e){const _0x27f03c=_0x4f7518;logger[_0x27f03c('0xd')](JSON[_0x27f03c('0x1d')](_0x23243e));});});},Migration[_0x3e509f('0x1c')][_0x3e509f('0x9')]=function(_0x356128){const _0x49636f=_0x3e509f,_0x4ad5c1=this;this[_0x49636f('0x20')]['enqueue'](function(){const _0x5bfc52=_0x49636f;return _0x4ad5c1[_0x5bfc52('0x1b')][_0x5bfc52('0x9')](_0x356128,{'force':!![]})[_0x5bfc52('0x10')](function(){const _0xc7e684=_0x5bfc52;logger[_0xc7e684('0xd')](_0xc7e684('0x11'),_0x356128);})['catch'](function(_0x5481d4){const _0x1b116a=_0x5bfc52;logger[_0x1b116a('0xd')](JSON[_0x1b116a('0x1d')](_0x5481d4));});});},Migration[_0x3e509f('0x1c')]['addIndex']=function(_0x3b26b5,_0xc6117c,_0x16d577){const _0x529b0d=_0x3e509f,_0x21f30b=this;this['sequence'][_0x529b0d('0x1')](function(){const _0x1d3fa3=_0x529b0d;return _0x21f30b[_0x1d3fa3('0x1b')]['addIndex'](_0x3b26b5,_0xc6117c,{'indexName':_0x16d577})[_0x1d3fa3('0x10')](function(){const _0x447b5d=_0x1d3fa3;logger[_0x447b5d('0xd')](_0x447b5d('0xc'),_0x3b26b5,_0xc6117c['join'](','),_0x16d577);})['catch'](function(_0x110452){const _0x3f4283=_0x1d3fa3;logger[_0x3f4283('0xd')](JSON[_0x3f4283('0x1d')](_0x110452));});});},Migration[_0x3e509f('0x1c')]['removeIndex']=function(_0x133a73,_0x593f92){const _0x22c515=_0x3e509f,_0x5b07ce=this;this['sequence'][_0x22c515('0x1')](function(){const _0x5a2fba=_0x22c515;return _0x5b07ce[_0x5a2fba('0x1b')]['removeIndex'](_0x133a73,_0x593f92)[_0x5a2fba('0x10')](function(){const _0x13731e=_0x5a2fba;logger[_0x13731e('0xd')](_0x13731e('0x1a'),_0x133a73,_0x593f92);})['catch'](function(_0x39e355){const _0x171713=_0x5a2fba;logger[_0x171713('0xd')](JSON['stringify'](_0x39e355));});});},Migration[_0x3e509f('0x1c')][_0x3e509f('0x22')]=function(_0x48e208){const _0x1316d0=_0x3e509f,_0x4f41ae=this;this[_0x1316d0('0x20')][_0x1316d0('0x1')](function(){const _0x38f261=_0x1316d0;return _0x4f41ae[_0x38f261('0x1b')][_0x38f261('0x7')]['query'](_0x48e208)['then'](function(){const _0x1bdc46=_0x38f261;logger[_0x1bdc46('0xd')]('query\x20%s',_0x48e208);})[_0x38f261('0x1f')](function(_0x4a0475){const _0x473746=_0x38f261;logger[_0x473746('0xd')](JSON['stringify'](_0x4a0475));});});},Migration[_0x3e509f('0x1c')]['removeColumn']=function(_0x1785ec,_0x3c8a9d){const _0x48573a=_0x3e509f,_0x535bf4=this;this['sequence'][_0x48573a('0x1')](function(){const _0x4ddc4e=_0x48573a;return _0x535bf4[_0x4ddc4e('0x1b')]['removeColumn'](_0x1785ec,_0x3c8a9d)[_0x4ddc4e('0x10')](function(){const _0x2d8728=_0x4ddc4e;logger[_0x2d8728('0xd')]('Removed\x20column\x20%s\x20from\x20%s',_0x3c8a9d,_0x1785ec);})[_0x4ddc4e('0x1f')](function(_0x30570e){const _0x2a8b58=_0x4ddc4e;logger[_0x2a8b58('0xd')](util['inspect'](_0x30570e,{'showHidden':![],'depth':null}));});});},Migration[_0x3e509f('0x1c')][_0x3e509f('0x15')]=function(_0x3fc0ac,_0x5948cc,_0x3ef1de){const _0x495ff1=_0x3e509f,_0x3dcfef=this;this['sequence'][_0x495ff1('0x1')](function(){const _0x3e508b=_0x495ff1;return _0x3dcfef['queryInterface']['renameColumn'](_0x3fc0ac,_0x5948cc,_0x3ef1de)[_0x3e508b('0x10')](function(){const _0x41b314=_0x3e508b;logger[_0x41b314('0xd')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5948cc,_0x3ef1de,_0x3fc0ac);})['catch'](function(_0x5b378b){logger['info'](util['inspect'](_0x5b378b,{'showHidden':![],'depth':null}));});});},Migration[_0x3e509f('0x1c')]['final']=function(_0x4d99d3){this['sequence']['enqueue'](function(){return _0x4d99d3();});},module[_0x3e509f('0x23')]={'up':function(_0x3e8de5,_0x51ed53){return new Promise(function(_0x26fe63){const _0x4386bd=a946_0x4dbc,_0x5e5140=new Migration(_0x3e8de5),_0xc88981=_0x4386bd('0xa');_0x5e5140['query'](_0xc88981),_0x5e5140['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ChatWebsiteId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ChatWebsiteId`\x20FROM\x20chat_dispositions;'),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0xb')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x17')),_0x5e5140['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`SmsAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`SmsAccountId`\x20FROM\x20sms_dispositions;'),_0x5e5140['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`OpenchannelAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`OpenchannelAccountId`\x20FROM\x20openchannel_dispositions;'),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x27')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x25')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x14')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x24')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0xe')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x21')),_0x5e5140[_0x4386bd('0x22')]('INSERT\x20INTO\x20user_has_fax_accounts\x20(`UserId`,\x20`FaxAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`FaxAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20fax_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;'),_0x5e5140['query'](_0x4386bd('0x2')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x13')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x26')),_0x5e5140[_0x4386bd('0x22')](_0x4386bd('0x6')),_0x5e5140['addColumn'](_0x4386bd('0x28'),_0x4386bd('0x19'),{'type':_0x51ed53['TEXT'](_0x4386bd('0x12'))}),_0x5e5140['addColumn'](_0x4386bd('0x28'),_0x4386bd('0x5'),{'type':_0x51ed53[_0x4386bd('0x18')]('long')}),_0x5e5140[_0x4386bd('0x0')](_0x26fe63);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.68.js b/server/migrations/2.0.68.js index 5372ee7..2acc778 100644 --- a/server/migrations/2.0.68.js +++ b/server/migrations/2.0.68.js @@ -1 +1 @@ -const a947_0x1cce=['INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','chat_interactions','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','addIndex\x20%s\x20%s\x20%s','mapKey','closeReason','removeIndex','changeColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())','STRING','sequence','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','messagesAlignment','then','Changed\x20column\x20%s\x20in\x20table\x20%s','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())','join','removeColumn','dropTable','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','renameColumn','openchannel_accounts','queryInterface','addIndex','catch','migration','addColumn','../config/logger','settings','table\x20dropped\x20%s','query','tail','finally','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','final','prototype','inspect','enqueue','query\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x5d91ec,_0x1cce3){const _0x1221ab=function(_0x2e3b59){while(--_0x2e3b59){_0x5d91ec['push'](_0x5d91ec['shift']());}};_0x1221ab(++_0x1cce3);}(a947_0x1cce,0xf2));const a947_0x1221=function(_0x5d91ec,_0x1cce3){_0x5d91ec=_0x5d91ec-0x0;let _0x1221ab=a947_0x1cce[_0x5d91ec];return _0x1221ab;};const _0x1657a6=a947_0x1221;'use strict';const util=require('util'),logger=require(_0x1657a6('0x0'))(_0x1657a6('0x29')),Sequence=function(){};Sequence[_0x1657a6('0xb')][_0x1657a6('0xd')]=function(_0x2e3b59){const _0x23f974=_0x1657a6;this[_0x23f974('0x4')]=this[_0x23f974('0x4')]?this[_0x23f974('0x4')][_0x23f974('0x5')](_0x2e3b59):_0x2e3b59();};const Migration=function(_0x2f705a){const _0x17ddde=_0x1657a6;this['queryInterface']=_0x2f705a,this[_0x17ddde('0x1a')]=new Sequence();};Migration['prototype'][_0x1657a6('0x17')]=function(_0x4d1058,_0xad82d,_0x1927a1){const _0x572ff8=_0x1657a6,_0x18dd41=this;this[_0x572ff8('0x1a')][_0x572ff8('0xd')](function(){const _0x2e2801=_0x572ff8;return _0x18dd41[_0x2e2801('0x26')][_0x2e2801('0x17')](_0x4d1058,_0xad82d,_0x1927a1)[_0x2e2801('0x1d')](function(){const _0x57b9d8=_0x2e2801;logger[_0x57b9d8('0x9')](_0x57b9d8('0x1e'),_0xad82d,_0x4d1058);})[_0x2e2801('0x28')](function(_0x4c3dc3){const _0x592ff9=_0x2e2801;logger[_0x592ff9('0x9')](JSON[_0x592ff9('0x7')](_0x4c3dc3));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0x2a')]=function(_0x35aba0,_0x503c00,_0x332576){const _0x57c177=_0x1657a6,_0x41066d=this;this['sequence'][_0x57c177('0xd')](function(){const _0x5b21ae=_0x57c177;return _0x41066d[_0x5b21ae('0x26')][_0x5b21ae('0x2a')](_0x35aba0,_0x503c00,_0x332576)[_0x5b21ae('0x1d')](function(){const _0x21f548=_0x5b21ae;logger[_0x21f548('0x9')]('Added\x20column\x20%s\x20to\x20%s',_0x503c00,_0x35aba0);})[_0x5b21ae('0x28')](function(_0xa3ad62){const _0x287744=_0x5b21ae;logger[_0x287744('0x9')](JSON['stringify'](_0xa3ad62));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0x22')]=function(_0x39aa73){const _0x3a680d=_0x1657a6,_0x516817=this;this[_0x3a680d('0x1a')][_0x3a680d('0xd')](function(){const _0x3c076a=_0x3a680d;return _0x516817[_0x3c076a('0x26')][_0x3c076a('0x22')](_0x39aa73,{'force':!![]})[_0x3c076a('0x1d')](function(){const _0x2f21fe=_0x3c076a;logger[_0x2f21fe('0x9')](_0x2f21fe('0x2'),_0x39aa73);})[_0x3c076a('0x28')](function(_0x5df38d){const _0x5d45aa=_0x3c076a;logger[_0x5d45aa('0x9')](JSON[_0x5d45aa('0x7')](_0x5df38d));});});},Migration['prototype'][_0x1657a6('0x27')]=function(_0x322d39,_0x5b937c,_0x2eaa70){const _0xe7aed7=_0x1657a6,_0x3123e1=this;this[_0xe7aed7('0x1a')][_0xe7aed7('0xd')](function(){const _0x2e7dfb=_0xe7aed7;return _0x3123e1[_0x2e7dfb('0x26')]['addIndex'](_0x322d39,_0x5b937c,{'indexName':_0x2eaa70})[_0x2e7dfb('0x1d')](function(){const _0x49f42a=_0x2e7dfb;logger[_0x49f42a('0x9')](_0x49f42a('0x13'),_0x322d39,_0x5b937c[_0x49f42a('0x20')](','),_0x2eaa70);})[_0x2e7dfb('0x28')](function(_0x52539b){const _0xd20b17=_0x2e7dfb;logger[_0xd20b17('0x9')](JSON[_0xd20b17('0x7')](_0x52539b));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0x16')]=function(_0x362853,_0x60a6a0){const _0x4e5498=_0x1657a6,_0xb2fff=this;this[_0x4e5498('0x1a')][_0x4e5498('0xd')](function(){const _0x289985=_0x4e5498;return _0xb2fff['queryInterface'][_0x289985('0x16')](_0x362853,_0x60a6a0)['then'](function(){const _0x2f5a8b=_0x289985;logger[_0x2f5a8b('0x9')]('removeIndex\x20%s\x20%s',_0x362853,_0x60a6a0);})[_0x289985('0x28')](function(_0x332364){const _0x2fa0aa=_0x289985;logger[_0x2fa0aa('0x9')](JSON[_0x2fa0aa('0x7')](_0x332364));});});},Migration['prototype'][_0x1657a6('0x3')]=function(_0x58e071){const _0x104a5b=_0x1657a6,_0x236aff=this;this[_0x104a5b('0x1a')]['enqueue'](function(){const _0x936700=_0x104a5b;return _0x236aff[_0x936700('0x26')]['sequelize'][_0x936700('0x3')](_0x58e071)[_0x936700('0x1d')](function(){const _0x22e080=_0x936700;logger['info'](_0x22e080('0xe'),_0x58e071);})['catch'](function(_0x5775d6){const _0x4ab883=_0x936700;logger['info'](JSON[_0x4ab883('0x7')](_0x5775d6));});});},Migration[_0x1657a6('0xb')]['removeColumn']=function(_0x3c8378,_0x4835b3){const _0x138b0d=_0x1657a6,_0x20d936=this;this['sequence'][_0x138b0d('0xd')](function(){const _0x180432=_0x138b0d;return _0x20d936[_0x180432('0x26')][_0x180432('0x21')](_0x3c8378,_0x4835b3)[_0x180432('0x1d')](function(){const _0x109273=_0x180432;logger['info'](_0x109273('0xf'),_0x4835b3,_0x3c8378);})['catch'](function(_0x174ddf){const _0xd70b2c=_0x180432;logger[_0xd70b2c('0x9')](util[_0xd70b2c('0xc')](_0x174ddf,{'showHidden':![],'depth':null}));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0x24')]=function(_0x434cbf,_0x286720,_0x429bf0){const _0x3c083b=_0x1657a6,_0xb5fae8=this;this[_0x3c083b('0x1a')]['enqueue'](function(){const _0x105e93=_0x3c083b;return _0xb5fae8[_0x105e93('0x26')][_0x105e93('0x24')](_0x434cbf,_0x286720,_0x429bf0)['then'](function(){const _0x31fb3d=_0x105e93;logger[_0x31fb3d('0x9')](_0x31fb3d('0x8'),_0x286720,_0x429bf0,_0x434cbf);})[_0x105e93('0x28')](function(_0xe41a33){const _0x219d23=_0x105e93;logger[_0x219d23('0x9')](util[_0x219d23('0xc')](_0xe41a33,{'showHidden':![],'depth':null}));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0xa')]=function(_0x5a3225){const _0x992f6a=_0x1657a6;this[_0x992f6a('0x1a')][_0x992f6a('0xd')](function(){return _0x5a3225();});},module['exports']={'up':function(_0x26597d,_0x2dc250){return new Promise(function(_0x5aa82d){const _0x4886d5=a947_0x1221,_0xc9a9bf=new Migration(_0x26597d);_0xc9a9bf[_0x4886d5('0x3')](_0x4886d5('0x1f')),_0xc9a9bf[_0x4886d5('0x3')](_0x4886d5('0x12')),_0xc9a9bf['query'](_0x4886d5('0x18')),_0xc9a9bf['query'](_0x4886d5('0x10')),_0xc9a9bf['query'](_0x4886d5('0x23')),_0xc9a9bf[_0x4886d5('0x3')](_0x4886d5('0x1b')),_0xc9a9bf[_0x4886d5('0x2a')](_0x4886d5('0x25'),_0x4886d5('0x14'),{'type':_0x2dc250['STRING']}),_0xc9a9bf[_0x4886d5('0x2a')](_0x4886d5('0x11'),_0x4886d5('0x15'),{'type':_0x2dc250['STRING']}),_0xc9a9bf[_0x4886d5('0x2a')](_0x4886d5('0x1'),_0x4886d5('0x1c'),{'type':_0x2dc250[_0x4886d5('0x19')]}),_0xc9a9bf[_0x4886d5('0x3')](_0x4886d5('0x6')),_0xc9a9bf[_0x4886d5('0xa')](_0x5aa82d);});},'down':function(){}}; \ No newline at end of file +const a947_0x53bf=['sequence','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','info','removeColumn','table\x20dropped\x20%s','removeIndex','changeColumn','addIndex','STRING','catch','queryInterface','messagesAlignment','addColumn','exports','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','../config/logger','then','prototype','util','query','openchannel_accounts','dropTable','stringify','enqueue','settings','migration','query\x20%s','closeReason','inspect','tail','renameColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','mapKey','final','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s'];(function(_0x2f7597,_0x53bf06){const _0x583f5e=function(_0x5a5bc3){while(--_0x5a5bc3){_0x2f7597['push'](_0x2f7597['shift']());}};_0x583f5e(++_0x53bf06);}(a947_0x53bf,0x98));const a947_0x583f=function(_0x2f7597,_0x53bf06){_0x2f7597=_0x2f7597-0x0;let _0x583f5e=a947_0x53bf[_0x2f7597];return _0x583f5e;};const _0x5e16c7=a947_0x583f;'use strict';const util=require(_0x5e16c7('0x1c')),logger=require(_0x5e16c7('0x19'))(_0x5e16c7('0x23')),Sequence=function(){};Sequence[_0x5e16c7('0x1b')]['enqueue']=function(_0x5a5bc3){const _0x18d3e0=_0x5e16c7;this[_0x18d3e0('0x27')]=this['tail']?this[_0x18d3e0('0x27')]['finally'](_0x5a5bc3):_0x5a5bc3();};const Migration=function(_0x5b0fb8){const _0x335522=_0x5e16c7;this[_0x335522('0x14')]=_0x5b0fb8,this['sequence']=new Sequence();};Migration[_0x5e16c7('0x1b')][_0x5e16c7('0x10')]=function(_0x18d2e8,_0x24f090,_0x51fa82){const _0x2ee98c=_0x5e16c7,_0x429cff=this;this[_0x2ee98c('0x8')][_0x2ee98c('0x21')](function(){const _0x3bbe2b=_0x2ee98c;return _0x429cff[_0x3bbe2b('0x14')][_0x3bbe2b('0x10')](_0x18d2e8,_0x24f090,_0x51fa82)['then'](function(){const _0x1db188=_0x3bbe2b;logger[_0x1db188('0xc')](_0x1db188('0x6'),_0x24f090,_0x18d2e8);})[_0x3bbe2b('0x13')](function(_0x213561){const _0x384455=_0x3bbe2b;logger[_0x384455('0xc')](JSON[_0x384455('0x20')](_0x213561));});});},Migration['prototype'][_0x5e16c7('0x16')]=function(_0x3f99d8,_0x4c51a9,_0x5af663){const _0x3c9297=_0x5e16c7,_0x7f59f1=this;this[_0x3c9297('0x8')][_0x3c9297('0x21')](function(){const _0x399736=_0x3c9297;return _0x7f59f1[_0x399736('0x14')][_0x399736('0x16')](_0x3f99d8,_0x4c51a9,_0x5af663)[_0x399736('0x1a')](function(){const _0x840fe9=_0x399736;logger[_0x840fe9('0xc')](_0x840fe9('0x2'),_0x4c51a9,_0x3f99d8);})[_0x399736('0x13')](function(_0x2c68bc){const _0x79eadb=_0x399736;logger[_0x79eadb('0xc')](JSON[_0x79eadb('0x20')](_0x2c68bc));});});},Migration[_0x5e16c7('0x1b')][_0x5e16c7('0x1f')]=function(_0xf52a8b){const _0x297680=_0x5e16c7,_0x4958fa=this;this[_0x297680('0x8')][_0x297680('0x21')](function(){const _0x4fbc13=_0x297680;return _0x4958fa[_0x4fbc13('0x14')][_0x4fbc13('0x1f')](_0xf52a8b,{'force':!![]})[_0x4fbc13('0x1a')](function(){const _0x364957=_0x4fbc13;logger['info'](_0x364957('0xe'),_0xf52a8b);})[_0x4fbc13('0x13')](function(_0x263009){const _0x31d2ce=_0x4fbc13;logger['info'](JSON[_0x31d2ce('0x20')](_0x263009));});});},Migration[_0x5e16c7('0x1b')][_0x5e16c7('0x11')]=function(_0x13e3dd,_0x24833f,_0x26a40f){const _0x37d1a6=_0x5e16c7,_0x10ce36=this;this[_0x37d1a6('0x8')][_0x37d1a6('0x21')](function(){const _0x35ce23=_0x37d1a6;return _0x10ce36[_0x35ce23('0x14')]['addIndex'](_0x13e3dd,_0x24833f,{'indexName':_0x26a40f})[_0x35ce23('0x1a')](function(){const _0x1a361a=_0x35ce23;logger[_0x1a361a('0xc')](_0x1a361a('0x7'),_0x13e3dd,_0x24833f['join'](','),_0x26a40f);})['catch'](function(_0x262e07){const _0x224939=_0x35ce23;logger[_0x224939('0xc')](JSON[_0x224939('0x20')](_0x262e07));});});},Migration[_0x5e16c7('0x1b')][_0x5e16c7('0xf')]=function(_0x509fa4,_0x50312b){const _0x39d9b8=_0x5e16c7,_0x1fd5f6=this;this[_0x39d9b8('0x8')][_0x39d9b8('0x21')](function(){const _0x1a1b00=_0x39d9b8;return _0x1fd5f6[_0x1a1b00('0x14')]['removeIndex'](_0x509fa4,_0x50312b)[_0x1a1b00('0x1a')](function(){const _0x15d745=_0x1a1b00;logger[_0x15d745('0xc')](_0x15d745('0x3'),_0x509fa4,_0x50312b);})[_0x1a1b00('0x13')](function(_0x1d712d){const _0x3893d4=_0x1a1b00;logger[_0x3893d4('0xc')](JSON['stringify'](_0x1d712d));});});},Migration['prototype'][_0x5e16c7('0x1d')]=function(_0x4ae2ab){const _0x266a8d=_0x5e16c7,_0x5f2207=this;this[_0x266a8d('0x8')]['enqueue'](function(){const _0x325097=_0x266a8d;return _0x5f2207[_0x325097('0x14')]['sequelize']['query'](_0x4ae2ab)[_0x325097('0x1a')](function(){const _0x12e260=_0x325097;logger[_0x12e260('0xc')](_0x12e260('0x24'),_0x4ae2ab);})[_0x325097('0x13')](function(_0x215fcc){const _0x4153b5=_0x325097;logger[_0x4153b5('0xc')](JSON['stringify'](_0x215fcc));});});},Migration['prototype'][_0x5e16c7('0xd')]=function(_0x12d5a6,_0x26166d){const _0x126e0c=_0x5e16c7,_0x1b128d=this;this[_0x126e0c('0x8')]['enqueue'](function(){const _0x3de6ac=_0x126e0c;return _0x1b128d['queryInterface'][_0x3de6ac('0xd')](_0x12d5a6,_0x26166d)[_0x3de6ac('0x1a')](function(){const _0x374a21=_0x3de6ac;logger[_0x374a21('0xc')](_0x374a21('0xb'),_0x26166d,_0x12d5a6);})[_0x3de6ac('0x13')](function(_0x3ed5fd){const _0x26741b=_0x3de6ac;logger[_0x26741b('0xc')](util[_0x26741b('0x26')](_0x3ed5fd,{'showHidden':![],'depth':null}));});});},Migration[_0x5e16c7('0x1b')][_0x5e16c7('0x0')]=function(_0x8b2ee4,_0xa81ff1,_0x4fd60c){const _0x30c20=_0x5e16c7,_0x253701=this;this[_0x30c20('0x8')][_0x30c20('0x21')](function(){const _0x531c28=_0x30c20;return _0x253701[_0x531c28('0x14')]['renameColumn'](_0x8b2ee4,_0xa81ff1,_0x4fd60c)[_0x531c28('0x1a')](function(){const _0x76a1e4=_0x531c28;logger[_0x76a1e4('0xc')](_0x76a1e4('0xa'),_0xa81ff1,_0x4fd60c,_0x8b2ee4);})['catch'](function(_0x2b8a22){const _0x46cd53=_0x531c28;logger[_0x46cd53('0xc')](util['inspect'](_0x2b8a22,{'showHidden':![],'depth':null}));});});},Migration[_0x5e16c7('0x1b')][_0x5e16c7('0x5')]=function(_0x3f2829){const _0x265fd1=_0x5e16c7;this[_0x265fd1('0x8')]['enqueue'](function(){return _0x3f2829();});},module[_0x5e16c7('0x17')]={'up':function(_0x90eb75,_0x363715){return new Promise(function(_0x5e3cdf){const _0x3b2def=a947_0x583f,_0x1b95dc=new Migration(_0x90eb75);_0x1b95dc[_0x3b2def('0x1d')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0x1b95dc[_0x3b2def('0x1d')](_0x3b2def('0x1')),_0x1b95dc[_0x3b2def('0x1d')](_0x3b2def('0x9')),_0x1b95dc[_0x3b2def('0x1d')](_0x3b2def('0x18')),_0x1b95dc[_0x3b2def('0x1d')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())'),_0x1b95dc['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())'),_0x1b95dc[_0x3b2def('0x16')](_0x3b2def('0x1e'),_0x3b2def('0x4'),{'type':_0x363715['STRING']}),_0x1b95dc[_0x3b2def('0x16')]('chat_interactions',_0x3b2def('0x25'),{'type':_0x363715[_0x3b2def('0x12')]}),_0x1b95dc[_0x3b2def('0x16')](_0x3b2def('0x22'),_0x3b2def('0x15'),{'type':_0x363715[_0x3b2def('0x12')]}),_0x1b95dc[_0x3b2def('0x1d')]('UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27'),_0x1b95dc['final'](_0x5e3cdf);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.69.js b/server/migrations/2.0.69.js index 58573d2..72bda20 100644 --- a/server/migrations/2.0.69.js +++ b/server/migrations/2.0.69.js @@ -1 +1 @@ -const a948_0x19a4=['backgroundColor','VoicePrefixId','../config/logger','stringify','VoiceExtensionId','sequelize','removeIndex','exports','addColumn','messageFontSize','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','join','prefix','callerIdAll','report_jscripty_answers','long','final','report_call','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','finally','TEXT','cm_contacts','INTEGER','catch','DELETE\x20FROM\x20`user_has_voice_prefixes`','UPDATE\x20tools_sounds\x20S1\x20JOIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20name\x20FROM\x20tools_sounds\x20GROUP\x20BY\x20name\x20HAVING\x20COUNT(id)\x20>\x201)\x20S2\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20S1.name\x20=\x20S2.name\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20S1.name\x20=\x20CONCAT(S1.name,\x20\x27_\x27,\x20LOWER(LPAD(CONV(FLOOR(RAND()*POW(36,6)),\x2010,\x2036),\x206,\x200)))','sequence','migration','queryInterface','name','addIndex','update\x20voice_extensions\x20set\x20app\x20=\x20\x27ExecIf\x27,\x20appdata\x20=\x20CONCAT(\x27$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(\x27,\x20appdata,\x20\x27)\x27)\x20where\x20appdata\x20LIKE\x20CONCAT(\x27CALLERID(all)\x27,\x20\x27%\x27)\x20and\x20type\x20=\x20\x27outbound\x27','enqueue','chat_websites','tail','prototype','dropTable','renameColumn','changeColumn','query','voice_prefixes','then','DELETE\x20FROM\x20`voice_prefixes`','tools_sounds','removeColumn','voice_extensions','info','table\x20dropped\x20%s','answer','STRING','inspect'];(function(_0x434a66,_0x19a47e){const _0x534e3d=function(_0x2c3001){while(--_0x2c3001){_0x434a66['push'](_0x434a66['shift']());}};_0x534e3d(++_0x19a47e);}(a948_0x19a4,0xeb));const a948_0x534e=function(_0x434a66,_0x19a47e){_0x434a66=_0x434a66-0x0;let _0x534e3d=a948_0x19a4[_0x434a66];return _0x534e3d;};const _0x452804=a948_0x534e;'use strict';const util=require('util'),logger=require(_0x452804('0x20'))(_0x452804('0x6')),Sequence=function(){};Sequence[_0x452804('0xe')][_0x452804('0xb')]=function(_0x2c3001){const _0x4ec780=_0x452804;this[_0x4ec780('0xd')]=this[_0x4ec780('0xd')]?this[_0x4ec780('0xd')][_0x4ec780('0x33')](_0x2c3001):_0x2c3001();};const Migration=function(_0x14855c){const _0x13493c=_0x452804;this[_0x13493c('0x7')]=_0x14855c,this[_0x13493c('0x5')]=new Sequence();};Migration[_0x452804('0xe')][_0x452804('0x11')]=function(_0x24ddb9,_0x59d324,_0x503e6d){const _0x50f14c=_0x452804,_0x2b963b=this;this['sequence'][_0x50f14c('0xb')](function(){const _0x5f589c=_0x50f14c;return _0x2b963b['queryInterface']['changeColumn'](_0x24ddb9,_0x59d324,_0x503e6d)[_0x5f589c('0x14')](function(){const _0x16156b=_0x5f589c;logger[_0x16156b('0x19')](_0x16156b('0x28'),_0x59d324,_0x24ddb9);})[_0x5f589c('0x2')](function(_0x760d86){const _0x24569c=_0x5f589c;logger[_0x24569c('0x19')](JSON[_0x24569c('0x21')](_0x760d86));});});},Migration[_0x452804('0xe')][_0x452804('0x26')]=function(_0x1e0835,_0x5b095b,_0x50b3c4){const _0x583762=_0x452804,_0x491ec8=this;this[_0x583762('0x5')]['enqueue'](function(){const _0x41c64d=_0x583762;return _0x491ec8[_0x41c64d('0x7')][_0x41c64d('0x26')](_0x1e0835,_0x5b095b,_0x50b3c4)[_0x41c64d('0x14')](function(){const _0x24edf0=_0x41c64d;logger[_0x24edf0('0x19')]('Added\x20column\x20%s\x20to\x20%s',_0x5b095b,_0x1e0835);})['catch'](function(_0x348659){const _0x218778=_0x41c64d;logger['info'](JSON[_0x218778('0x21')](_0x348659));});});},Migration[_0x452804('0xe')][_0x452804('0xf')]=function(_0x2fc771){const _0x3f1642=_0x452804,_0x265d7a=this;this[_0x3f1642('0x5')][_0x3f1642('0xb')](function(){const _0x2fa3aa=_0x3f1642;return _0x265d7a[_0x2fa3aa('0x7')][_0x2fa3aa('0xf')](_0x2fc771,{'force':!![]})[_0x2fa3aa('0x14')](function(){const _0x2b8dea=_0x2fa3aa;logger[_0x2b8dea('0x19')](_0x2b8dea('0x1a'),_0x2fc771);})[_0x2fa3aa('0x2')](function(_0x19991a){const _0x2527cd=_0x2fa3aa;logger[_0x2527cd('0x19')](JSON['stringify'](_0x19991a));});});},Migration[_0x452804('0xe')][_0x452804('0x9')]=function(_0xc32b3e,_0x1040a1,_0x33f4da){const _0x13bf55=_0x452804,_0x151a29=this;this['sequence'][_0x13bf55('0xb')](function(){const _0xcdb95f=_0x13bf55;return _0x151a29[_0xcdb95f('0x7')][_0xcdb95f('0x9')](_0xc32b3e,_0x1040a1,{'indexName':_0x33f4da})[_0xcdb95f('0x14')](function(){const _0x4f4384=_0xcdb95f;logger[_0x4f4384('0x19')]('addIndex\x20%s\x20%s\x20%s',_0xc32b3e,_0x1040a1[_0x4f4384('0x2a')](','),_0x33f4da);})[_0xcdb95f('0x2')](function(_0x1038a1){const _0xb10461=_0xcdb95f;logger[_0xb10461('0x19')](JSON[_0xb10461('0x21')](_0x1038a1));});});},Migration['prototype'][_0x452804('0x24')]=function(_0x3f71ed,_0x2f2a05){const _0x5cc986=_0x452804,_0x3ae5cb=this;this[_0x5cc986('0x5')][_0x5cc986('0xb')](function(){const _0x57db6a=_0x5cc986;return _0x3ae5cb['queryInterface']['removeIndex'](_0x3f71ed,_0x2f2a05)[_0x57db6a('0x14')](function(){const _0x37394c=_0x57db6a;logger[_0x37394c('0x19')](_0x37394c('0x31'),_0x3f71ed,_0x2f2a05);})['catch'](function(_0x371102){const _0xe8d61c=_0x57db6a;logger[_0xe8d61c('0x19')](JSON['stringify'](_0x371102));});});},Migration[_0x452804('0xe')][_0x452804('0x12')]=function(_0x3cdd4c){const _0xc2ccf3=_0x452804,_0x105684=this;this['sequence'][_0xc2ccf3('0xb')](function(){const _0x48d612=_0xc2ccf3;return _0x105684[_0x48d612('0x7')][_0x48d612('0x23')][_0x48d612('0x12')](_0x3cdd4c)[_0x48d612('0x14')](function(){const _0x26c585=_0x48d612;logger['info'](_0x26c585('0x29'),_0x3cdd4c);})[_0x48d612('0x2')](function(_0x9dff34){const _0x528b69=_0x48d612;logger[_0x528b69('0x19')](JSON[_0x528b69('0x21')](_0x9dff34));});});},Migration[_0x452804('0xe')][_0x452804('0x17')]=function(_0x5c8ffa,_0x4e41d3){const _0x51e9d6=_0x452804,_0x29947c=this;this[_0x51e9d6('0x5')][_0x51e9d6('0xb')](function(){const _0x3ea9cd=_0x51e9d6;return _0x29947c[_0x3ea9cd('0x7')][_0x3ea9cd('0x17')](_0x5c8ffa,_0x4e41d3)['then'](function(){const _0x47a32b=_0x3ea9cd;logger[_0x47a32b('0x19')](_0x47a32b('0x32'),_0x4e41d3,_0x5c8ffa);})['catch'](function(_0x3e0f82){const _0x124fec=_0x3ea9cd;logger[_0x124fec('0x19')](util['inspect'](_0x3e0f82,{'showHidden':![],'depth':null}));});});},Migration[_0x452804('0xe')]['renameColumn']=function(_0x1cf500,_0x30c479,_0x57a744){const _0x43cbb1=_0x452804,_0x10d57a=this;this[_0x43cbb1('0x5')][_0x43cbb1('0xb')](function(){const _0xae3061=_0x43cbb1;return _0x10d57a[_0xae3061('0x7')][_0xae3061('0x10')](_0x1cf500,_0x30c479,_0x57a744)[_0xae3061('0x14')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x30c479,_0x57a744,_0x1cf500);})[_0xae3061('0x2')](function(_0x3acd4b){const _0x3f530d=_0xae3061;logger[_0x3f530d('0x19')](util[_0x3f530d('0x1d')](_0x3acd4b,{'showHidden':![],'depth':null}));});});},Migration[_0x452804('0xe')][_0x452804('0x2f')]=function(_0x4d14a3){const _0x52c379=_0x452804;this[_0x52c379('0x5')][_0x52c379('0xb')](function(){return _0x4d14a3();});},module[_0x452804('0x25')]={'up':function(_0x2dbbff,_0x3b69ab){return new Promise(function(_0x452db2){const _0x25a8f6=a948_0x534e,_0x4b3e22=new Migration(_0x2dbbff);_0x4b3e22['changeColumn'](_0x25a8f6('0x2d'),'answer',{'type':_0x3b69ab['TEXT'](_0x25a8f6('0x2e'))}),_0x4b3e22[_0x25a8f6('0x11')]('report_jscripty_questions',_0x25a8f6('0x1b'),{'type':_0x3b69ab[_0x25a8f6('0x34')](_0x25a8f6('0x2e'))}),_0x4b3e22['query'](_0x25a8f6('0x4')),_0x4b3e22[_0x25a8f6('0x11')](_0x25a8f6('0x16'),_0x25a8f6('0x8'),{'type':_0x3b69ab['STRING'],'unique':!![],'allowNull':![]}),_0x4b3e22['addColumn'](_0x25a8f6('0xc'),_0x25a8f6('0x27'),{'type':_0x3b69ab[_0x25a8f6('0x1')],'defaultValue':0xc}),_0x4b3e22[_0x25a8f6('0x26')](_0x25a8f6('0xc'),_0x25a8f6('0x1e'),{'type':_0x3b69ab[_0x25a8f6('0x1c')],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}}),_0x4b3e22[_0x25a8f6('0x26')](_0x25a8f6('0x0'),'line',{'type':_0x3b69ab[_0x25a8f6('0x1c')]}),_0x4b3e22[_0x25a8f6('0x12')](_0x25a8f6('0x15')),_0x4b3e22['query'](_0x25a8f6('0x3')),_0x4b3e22[_0x25a8f6('0x24')]('voice_prefixes',_0x25a8f6('0x2b')),_0x4b3e22[_0x25a8f6('0x17')](_0x25a8f6('0x13'),_0x25a8f6('0x2b')),_0x4b3e22[_0x25a8f6('0x26')](_0x25a8f6('0x13'),_0x25a8f6('0x2c'),{'type':_0x3b69ab['STRING']}),_0x4b3e22['addColumn'](_0x25a8f6('0x13'),_0x25a8f6('0x22'),{'type':_0x3b69ab[_0x25a8f6('0x1')]}),_0x4b3e22['addColumn'](_0x25a8f6('0x18'),_0x25a8f6('0x1f'),{'type':_0x3b69ab['INTEGER']}),_0x4b3e22[_0x25a8f6('0x12')]('ALTER\x20TABLE\x20`voice_extensions`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_extensions_ibfk_7`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`VoicePrefixId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_prefixes(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x4b3e22[_0x25a8f6('0x12')](_0x25a8f6('0xa')),_0x4b3e22['addColumn'](_0x25a8f6('0x30'),_0x25a8f6('0x2b'),{'type':_0x3b69ab[_0x25a8f6('0x1c')]}),_0x4b3e22[_0x25a8f6('0x2f')](_0x452db2);});},'down':function(){}}; \ No newline at end of file +const a948_0x3d9f=['DELETE\x20FROM\x20`voice_prefixes`','stringify','renameColumn','addIndex','backgroundColor','#fafafa','long','TEXT','query\x20%s','addColumn','messageFontSize','chat_websites','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','answer','finally','prefix','util','removeColumn','then','../config/logger','voice_prefixes','cm_contacts','changeColumn','STRING','tools_sounds','removeIndex','name','info','inspect','Removed\x20column\x20%s\x20from\x20%s','VoicePrefixId','final','queryInterface','removeIndex\x20%s\x20%s','migration','prototype','sequence','update\x20voice_extensions\x20set\x20app\x20=\x20\x27ExecIf\x27,\x20appdata\x20=\x20CONCAT(\x27$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(\x27,\x20appdata,\x20\x27)\x27)\x20where\x20appdata\x20LIKE\x20CONCAT(\x27CALLERID(all)\x27,\x20\x27%\x27)\x20and\x20type\x20=\x20\x27outbound\x27','report_call','INTEGER','query','join','UPDATE\x20tools_sounds\x20S1\x20JOIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20name\x20FROM\x20tools_sounds\x20GROUP\x20BY\x20name\x20HAVING\x20COUNT(id)\x20>\x201)\x20S2\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20S1.name\x20=\x20S2.name\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20S1.name\x20=\x20CONCAT(S1.name,\x20\x27_\x27,\x20LOWER(LPAD(CONV(FLOOR(RAND()*POW(36,6)),\x2010,\x2036),\x206,\x200)))','catch','enqueue','Added\x20column\x20%s\x20to\x20%s','dropTable','report_jscripty_answers','voice_extensions','table\x20dropped\x20%s','tail','DELETE\x20FROM\x20`user_has_voice_prefixes`','VoiceExtensionId','callerIdAll'];(function(_0x39327f,_0x3d9f93){const _0x442852=function(_0x259cb5){while(--_0x259cb5){_0x39327f['push'](_0x39327f['shift']());}};_0x442852(++_0x3d9f93);}(a948_0x3d9f,0x188));const a948_0x4428=function(_0x39327f,_0x3d9f93){_0x39327f=_0x39327f-0x0;let _0x442852=a948_0x3d9f[_0x39327f];return _0x442852;};const _0x497e67=a948_0x4428;'use strict';const util=require(_0x497e67('0xa')),logger=require(_0x497e67('0xd'))(_0x497e67('0x1c')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x259cb5){const _0x4cc425=_0x497e67;this[_0x4cc425('0x2c')]=this[_0x4cc425('0x2c')]?this[_0x4cc425('0x2c')][_0x4cc425('0x8')](_0x259cb5):_0x259cb5();};const Migration=function(_0x421ddc){const _0x2f7f11=_0x497e67;this[_0x2f7f11('0x1a')]=_0x421ddc,this[_0x2f7f11('0x1e')]=new Sequence();};Migration[_0x497e67('0x1d')]['changeColumn']=function(_0x4f6d98,_0x483437,_0x480f9b){const _0x53dedf=_0x497e67,_0x3f5d32=this;this['sequence'][_0x53dedf('0x26')](function(){const _0x3f89a3=_0x53dedf;return _0x3f5d32['queryInterface'][_0x3f89a3('0x10')](_0x4f6d98,_0x483437,_0x480f9b)[_0x3f89a3('0xc')](function(){const _0x27a217=_0x3f89a3;logger[_0x27a217('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x483437,_0x4f6d98);})[_0x3f89a3('0x25')](function(_0x276fbf){const _0x17cb92=_0x3f89a3;logger[_0x17cb92('0x15')](JSON['stringify'](_0x276fbf));});});},Migration[_0x497e67('0x1d')][_0x497e67('0x2')]=function(_0x5d8d99,_0x3bc15e,_0xf680c5){const _0x40c4ab=_0x497e67,_0x1893d3=this;this[_0x40c4ab('0x1e')]['enqueue'](function(){const _0x3886f1=_0x40c4ab;return _0x1893d3[_0x3886f1('0x1a')][_0x3886f1('0x2')](_0x5d8d99,_0x3bc15e,_0xf680c5)[_0x3886f1('0xc')](function(){const _0xa72858=_0x3886f1;logger['info'](_0xa72858('0x27'),_0x3bc15e,_0x5d8d99);})[_0x3886f1('0x25')](function(_0x47aa92){const _0x4d114a=_0x3886f1;logger[_0x4d114a('0x15')](JSON['stringify'](_0x47aa92));});});},Migration[_0x497e67('0x1d')][_0x497e67('0x28')]=function(_0xf5319d){const _0xcffd05=_0x497e67,_0x4a802e=this;this[_0xcffd05('0x1e')]['enqueue'](function(){const _0x4c92b8=_0xcffd05;return _0x4a802e[_0x4c92b8('0x1a')][_0x4c92b8('0x28')](_0xf5319d,{'force':!![]})[_0x4c92b8('0xc')](function(){const _0x12f1a5=_0x4c92b8;logger[_0x12f1a5('0x15')](_0x12f1a5('0x2b'),_0xf5319d);})[_0x4c92b8('0x25')](function(_0x535e47){const _0x4951dd=_0x4c92b8;logger[_0x4951dd('0x15')](JSON[_0x4951dd('0x31')](_0x535e47));});});},Migration[_0x497e67('0x1d')][_0x497e67('0x33')]=function(_0x1ea520,_0x491457,_0x35a189){const _0x241cca=_0x497e67,_0xd0047=this;this[_0x241cca('0x1e')]['enqueue'](function(){const _0x22122c=_0x241cca;return _0xd0047['queryInterface']['addIndex'](_0x1ea520,_0x491457,{'indexName':_0x35a189})[_0x22122c('0xc')](function(){const _0x32e014=_0x22122c;logger[_0x32e014('0x15')](_0x32e014('0x5'),_0x1ea520,_0x491457[_0x32e014('0x23')](','),_0x35a189);})[_0x22122c('0x25')](function(_0x2d6e2b){const _0x550968=_0x22122c;logger[_0x550968('0x15')](JSON[_0x550968('0x31')](_0x2d6e2b));});});},Migration[_0x497e67('0x1d')]['removeIndex']=function(_0x5500d3,_0x38e0b0){const _0x4d9671=_0x497e67,_0x85b34a=this;this[_0x4d9671('0x1e')][_0x4d9671('0x26')](function(){const _0x4e26ad=_0x4d9671;return _0x85b34a[_0x4e26ad('0x1a')][_0x4e26ad('0x13')](_0x5500d3,_0x38e0b0)[_0x4e26ad('0xc')](function(){const _0x1291f9=_0x4e26ad;logger[_0x1291f9('0x15')](_0x1291f9('0x1b'),_0x5500d3,_0x38e0b0);})[_0x4e26ad('0x25')](function(_0x4bc38e){const _0x5376a7=_0x4e26ad;logger[_0x5376a7('0x15')](JSON['stringify'](_0x4bc38e));});});},Migration[_0x497e67('0x1d')][_0x497e67('0x22')]=function(_0x49e248){const _0x1aaa1a=_0x497e67,_0x5a1d47=this;this[_0x1aaa1a('0x1e')]['enqueue'](function(){const _0x49c2c4=_0x1aaa1a;return _0x5a1d47[_0x49c2c4('0x1a')]['sequelize']['query'](_0x49e248)['then'](function(){const _0x570c82=_0x49c2c4;logger[_0x570c82('0x15')](_0x570c82('0x1'),_0x49e248);})[_0x49c2c4('0x25')](function(_0x126aa2){const _0x426147=_0x49c2c4;logger[_0x426147('0x15')](JSON[_0x426147('0x31')](_0x126aa2));});});},Migration[_0x497e67('0x1d')][_0x497e67('0xb')]=function(_0x5c4cdf,_0x4fc448){const _0x179c52=_0x497e67,_0x4b299c=this;this['sequence'][_0x179c52('0x26')](function(){const _0x21e3e2=_0x179c52;return _0x4b299c[_0x21e3e2('0x1a')][_0x21e3e2('0xb')](_0x5c4cdf,_0x4fc448)[_0x21e3e2('0xc')](function(){const _0x82ec6a=_0x21e3e2;logger[_0x82ec6a('0x15')](_0x82ec6a('0x17'),_0x4fc448,_0x5c4cdf);})[_0x21e3e2('0x25')](function(_0x26b114){const _0x1c9e51=_0x21e3e2;logger['info'](util[_0x1c9e51('0x16')](_0x26b114,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x497e67('0x32')]=function(_0xa4c01a,_0x42eea3,_0x380d4c){const _0x43ee9f=_0x497e67,_0x33404f=this;this[_0x43ee9f('0x1e')][_0x43ee9f('0x26')](function(){const _0x576447=_0x43ee9f;return _0x33404f[_0x576447('0x1a')][_0x576447('0x32')](_0xa4c01a,_0x42eea3,_0x380d4c)[_0x576447('0xc')](function(){const _0xc26208=_0x576447;logger[_0xc26208('0x15')](_0xc26208('0x6'),_0x42eea3,_0x380d4c,_0xa4c01a);})[_0x576447('0x25')](function(_0x4be24a){const _0x5e36e3=_0x576447;logger[_0x5e36e3('0x15')](util[_0x5e36e3('0x16')](_0x4be24a,{'showHidden':![],'depth':null}));});});},Migration[_0x497e67('0x1d')][_0x497e67('0x19')]=function(_0x2ee006){const _0x5e9454=_0x497e67;this['sequence'][_0x5e9454('0x26')](function(){return _0x2ee006();});},module['exports']={'up':function(_0x457e05,_0xadabb){return new Promise(function(_0x29944a){const _0x2275a9=a948_0x4428,_0x3fedbf=new Migration(_0x457e05);_0x3fedbf[_0x2275a9('0x10')](_0x2275a9('0x29'),_0x2275a9('0x7'),{'type':_0xadabb[_0x2275a9('0x0')](_0x2275a9('0x36'))}),_0x3fedbf['changeColumn']('report_jscripty_questions',_0x2275a9('0x7'),{'type':_0xadabb[_0x2275a9('0x0')](_0x2275a9('0x36'))}),_0x3fedbf[_0x2275a9('0x22')](_0x2275a9('0x24')),_0x3fedbf[_0x2275a9('0x10')](_0x2275a9('0x12'),_0x2275a9('0x14'),{'type':_0xadabb[_0x2275a9('0x11')],'unique':!![],'allowNull':![]}),_0x3fedbf[_0x2275a9('0x2')](_0x2275a9('0x4'),_0x2275a9('0x3'),{'type':_0xadabb['INTEGER'],'defaultValue':0xc}),_0x3fedbf[_0x2275a9('0x2')](_0x2275a9('0x4'),_0x2275a9('0x34'),{'type':_0xadabb[_0x2275a9('0x11')],'allowNull':![],'defaultValue':_0x2275a9('0x35'),'validate':{'notEmpty':!![]}}),_0x3fedbf[_0x2275a9('0x2')](_0x2275a9('0xf'),'line',{'type':_0xadabb[_0x2275a9('0x11')]}),_0x3fedbf[_0x2275a9('0x22')](_0x2275a9('0x30')),_0x3fedbf[_0x2275a9('0x22')](_0x2275a9('0x2d')),_0x3fedbf['removeIndex'](_0x2275a9('0xe'),_0x2275a9('0x9')),_0x3fedbf[_0x2275a9('0xb')]('voice_prefixes',_0x2275a9('0x9')),_0x3fedbf['addColumn'](_0x2275a9('0xe'),_0x2275a9('0x2f'),{'type':_0xadabb[_0x2275a9('0x11')]}),_0x3fedbf[_0x2275a9('0x2')](_0x2275a9('0xe'),_0x2275a9('0x2e'),{'type':_0xadabb['INTEGER']}),_0x3fedbf['addColumn'](_0x2275a9('0x2a'),_0x2275a9('0x18'),{'type':_0xadabb[_0x2275a9('0x21')]}),_0x3fedbf['query']('ALTER\x20TABLE\x20`voice_extensions`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_extensions_ibfk_7`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`VoicePrefixId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_prefixes(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x3fedbf[_0x2275a9('0x22')](_0x2275a9('0x1f')),_0x3fedbf[_0x2275a9('0x2')](_0x2275a9('0x20'),_0x2275a9('0x9'),{'type':_0xadabb['STRING']}),_0x3fedbf[_0x2275a9('0x19')](_0x29944a);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.70.js b/server/migrations/2.0.70.js index 7bca790..a5b0d55 100644 --- a/server/migrations/2.0.70.js +++ b/server/migrations/2.0.70.js @@ -1 +1 @@ -const a949_0x2b16=['removeIndex','sequence','stringify','migration','finally','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','table\x20dropped\x20%s','tail','exports','../config/logger','final','addColumn','addIndex','catch','changeColumn','info','mohtime','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','addIndex\x20%s\x20%s\x20%s','removeIndex\x20%s\x20%s','util','dropTable','then','removeColumn','Added\x20column\x20%s\x20to\x20%s','report_queue','query','enqueue','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','Removed\x20column\x20%s\x20from\x20%s','INTEGER','prototype','report_call','inspect'];(function(_0x1ada08,_0x2b1687){const _0x5190ee=function(_0x5b7e2e){while(--_0x5b7e2e){_0x1ada08['push'](_0x1ada08['shift']());}};_0x5190ee(++_0x2b1687);}(a949_0x2b16,0x1f3));const a949_0x5190=function(_0x1ada08,_0x2b1687){_0x1ada08=_0x1ada08-0x0;let _0x5190ee=a949_0x2b16[_0x1ada08];return _0x5190ee;};const _0x204593=a949_0x5190;'use strict';const util=require(_0x204593('0x5')),logger=require(_0x204593('0x1e'))(_0x204593('0x16')),Sequence=function(){};Sequence['prototype'][_0x204593('0xc')]=function(_0x5b7e2e){const _0x3a4ed9=_0x204593;this[_0x3a4ed9('0x1c')]=this[_0x3a4ed9('0x1c')]?this[_0x3a4ed9('0x1c')][_0x3a4ed9('0x17')](_0x5b7e2e):_0x5b7e2e();};const Migration=function(_0xea0752){this['queryInterface']=_0xea0752,this['sequence']=new Sequence();};Migration[_0x204593('0x10')][_0x204593('0x23')]=function(_0xe8d5c3,_0x6e8b23,_0x70f818){const _0x4ec7f9=_0x204593,_0x118f1b=this;this[_0x4ec7f9('0x14')][_0x4ec7f9('0xc')](function(){const _0x1f25bc=_0x4ec7f9;return _0x118f1b[_0x1f25bc('0x2')][_0x1f25bc('0x23')](_0xe8d5c3,_0x6e8b23,_0x70f818)[_0x1f25bc('0x7')](function(){const _0x19b5a5=_0x1f25bc;logger[_0x19b5a5('0x24')](_0x19b5a5('0x19'),_0x6e8b23,_0xe8d5c3);})[_0x1f25bc('0x22')](function(_0x28871e){const _0x233ea7=_0x1f25bc;logger[_0x233ea7('0x24')](JSON[_0x233ea7('0x15')](_0x28871e));});});},Migration[_0x204593('0x10')]['addColumn']=function(_0x22c542,_0x57eb20,_0x21a3b7){const _0x56cb67=_0x204593,_0x36fcc6=this;this[_0x56cb67('0x14')][_0x56cb67('0xc')](function(){const _0x3eb5ac=_0x56cb67;return _0x36fcc6['queryInterface'][_0x3eb5ac('0x20')](_0x22c542,_0x57eb20,_0x21a3b7)[_0x3eb5ac('0x7')](function(){const _0x14fc3d=_0x3eb5ac;logger[_0x14fc3d('0x24')](_0x14fc3d('0x9'),_0x57eb20,_0x22c542);})[_0x3eb5ac('0x22')](function(_0x58183e){const _0x57133a=_0x3eb5ac;logger[_0x57133a('0x24')](JSON[_0x57133a('0x15')](_0x58183e));});});},Migration[_0x204593('0x10')][_0x204593('0x6')]=function(_0x308ed8){const _0x17213c=_0x204593,_0x89b29f=this;this[_0x17213c('0x14')][_0x17213c('0xc')](function(){const _0x586a27=_0x17213c;return _0x89b29f[_0x586a27('0x2')]['dropTable'](_0x308ed8,{'force':!![]})[_0x586a27('0x7')](function(){const _0x4ecb2e=_0x586a27;logger[_0x4ecb2e('0x24')](_0x4ecb2e('0x1b'),_0x308ed8);})[_0x586a27('0x22')](function(_0x247a38){const _0xdaee31=_0x586a27;logger[_0xdaee31('0x24')](JSON['stringify'](_0x247a38));});});},Migration[_0x204593('0x10')][_0x204593('0x21')]=function(_0x33a2f1,_0x10478a,_0xde88cf){const _0x3791a1=_0x204593,_0x489c7c=this;this['sequence'][_0x3791a1('0xc')](function(){const _0x1b8376=_0x3791a1;return _0x489c7c[_0x1b8376('0x2')][_0x1b8376('0x21')](_0x33a2f1,_0x10478a,{'indexName':_0xde88cf})['then'](function(){const _0x540fdb=_0x1b8376;logger[_0x540fdb('0x24')](_0x540fdb('0x3'),_0x33a2f1,_0x10478a['join'](','),_0xde88cf);})[_0x1b8376('0x22')](function(_0xf6e3ec){const _0x31ab7f=_0x1b8376;logger[_0x31ab7f('0x24')](JSON[_0x31ab7f('0x15')](_0xf6e3ec));});});},Migration[_0x204593('0x10')][_0x204593('0x13')]=function(_0x32d40f,_0x157057){const _0x5900ee=_0x204593,_0x38d38a=this;this[_0x5900ee('0x14')]['enqueue'](function(){const _0x3421bd=_0x5900ee;return _0x38d38a['queryInterface'][_0x3421bd('0x13')](_0x32d40f,_0x157057)[_0x3421bd('0x7')](function(){const _0x4ff4e4=_0x3421bd;logger[_0x4ff4e4('0x24')](_0x4ff4e4('0x4'),_0x32d40f,_0x157057);})[_0x3421bd('0x22')](function(_0x55713b){const _0x2666e4=_0x3421bd;logger[_0x2666e4('0x24')](JSON[_0x2666e4('0x15')](_0x55713b));});});},Migration[_0x204593('0x10')][_0x204593('0xb')]=function(_0x2e05cd){const _0x35d939=_0x204593,_0x50dbe6=this;this[_0x35d939('0x14')][_0x35d939('0xc')](function(){const _0x17b0c2=_0x35d939;return _0x50dbe6['queryInterface'][_0x17b0c2('0x1a')][_0x17b0c2('0xb')](_0x2e05cd)[_0x17b0c2('0x7')](function(){const _0x3b1f53=_0x17b0c2;logger[_0x3b1f53('0x24')]('query\x20%s',_0x2e05cd);})['catch'](function(_0x36c021){const _0x2a62d0=_0x17b0c2;logger[_0x2a62d0('0x24')](JSON[_0x2a62d0('0x15')](_0x36c021));});});},Migration[_0x204593('0x10')][_0x204593('0x8')]=function(_0x375dd0,_0xf46d35){const _0x276d94=_0x204593,_0x53096c=this;this[_0x276d94('0x14')]['enqueue'](function(){const _0x4d51f8=_0x276d94;return _0x53096c['queryInterface'][_0x4d51f8('0x8')](_0x375dd0,_0xf46d35)[_0x4d51f8('0x7')](function(){const _0x10df4d=_0x4d51f8;logger[_0x10df4d('0x24')](_0x10df4d('0xe'),_0xf46d35,_0x375dd0);})[_0x4d51f8('0x22')](function(_0x756ec5){const _0x1a7dcd=_0x4d51f8;logger[_0x1a7dcd('0x24')](util['inspect'](_0x756ec5,{'showHidden':![],'depth':null}));});});},Migration[_0x204593('0x10')][_0x204593('0x18')]=function(_0x278d52,_0x41fd8d,_0x567ece){const _0x13777e=_0x204593,_0x1c03ca=this;this[_0x13777e('0x14')]['enqueue'](function(){const _0x1b2ee9=_0x13777e;return _0x1c03ca[_0x1b2ee9('0x2')][_0x1b2ee9('0x18')](_0x278d52,_0x41fd8d,_0x567ece)[_0x1b2ee9('0x7')](function(){const _0x4534f9=_0x1b2ee9;logger[_0x4534f9('0x24')](_0x4534f9('0x1'),_0x41fd8d,_0x567ece,_0x278d52);})[_0x1b2ee9('0x22')](function(_0x4e9b5b){const _0x38a482=_0x1b2ee9;logger['info'](util[_0x38a482('0x12')](_0x4e9b5b,{'showHidden':![],'depth':null}));});});},Migration[_0x204593('0x10')][_0x204593('0x1f')]=function(_0x54bf90){const _0x188b30=_0x204593;this['sequence'][_0x188b30('0xc')](function(){return _0x54bf90();});},module[_0x204593('0x1d')]={'up':function(_0x25eb05,_0x258e68){return new Promise(function(_0x3aebf5){const _0x395ef1=a949_0x5190,_0x261936=new Migration(_0x25eb05);_0x261936[_0x395ef1('0x20')](_0x395ef1('0xa'),_0x395ef1('0x0'),{'type':_0x258e68[_0x395ef1('0xf')],'defaultValue':0x0}),_0x261936['addColumn'](_0x395ef1('0x11'),_0x395ef1('0x0'),{'type':_0x258e68[_0x395ef1('0xf')],'defaultValue':0x0}),_0x261936[_0x395ef1('0xb')](_0x395ef1('0xd')),_0x261936['final'](_0x3aebf5);});},'down':function(){}}; \ No newline at end of file +const a949_0x5d76=['finally','final','Removed\x20column\x20%s\x20from\x20%s','changeColumn','queryInterface','info','sequelize','migration','util','addIndex','renameColumn','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','query\x20%s','mohtime','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','catch','sequence','table\x20dropped\x20%s','enqueue','report_call','then','tail','exports','dropTable','addIndex\x20%s\x20%s\x20%s','report_queue','prototype','stringify','removeColumn','inspect','addColumn'];(function(_0x34000a,_0x5d769a){const _0x1b59d8=function(_0x43f2ec){while(--_0x43f2ec){_0x34000a['push'](_0x34000a['shift']());}};_0x1b59d8(++_0x5d769a);}(a949_0x5d76,0xb6));const a949_0x1b59=function(_0x34000a,_0x5d769a){_0x34000a=_0x34000a-0x0;let _0x1b59d8=a949_0x5d76[_0x34000a];return _0x1b59d8;};const _0x2720ed=a949_0x1b59;'use strict';const util=require(_0x2720ed('0x18')),logger=require('../config/logger')(_0x2720ed('0x17')),Sequence=function(){};Sequence[_0x2720ed('0xb')][_0x2720ed('0x3')]=function(_0x43f2ec){const _0x11f5b2=_0x2720ed;this[_0x11f5b2('0x6')]=this[_0x11f5b2('0x6')]?this[_0x11f5b2('0x6')][_0x11f5b2('0x10')](_0x43f2ec):_0x43f2ec();};const Migration=function(_0x1222e2){const _0x4dad4e=_0x2720ed;this[_0x4dad4e('0x14')]=_0x1222e2,this[_0x4dad4e('0x1')]=new Sequence();};Migration[_0x2720ed('0xb')][_0x2720ed('0x13')]=function(_0x3ecb3b,_0x272cf9,_0x399b3e){const _0x513aa6=_0x2720ed,_0x3b50a0=this;this[_0x513aa6('0x1')][_0x513aa6('0x3')](function(){const _0x2f88c6=_0x513aa6;return _0x3b50a0['queryInterface'][_0x2f88c6('0x13')](_0x3ecb3b,_0x272cf9,_0x399b3e)[_0x2f88c6('0x5')](function(){const _0x480b94=_0x2f88c6;logger[_0x480b94('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x272cf9,_0x3ecb3b);})[_0x2f88c6('0x0')](function(_0x6b5a14){const _0x566960=_0x2f88c6;logger[_0x566960('0x15')](JSON[_0x566960('0xc')](_0x6b5a14));});});},Migration[_0x2720ed('0xb')][_0x2720ed('0xf')]=function(_0x37c1f6,_0x7f6f04,_0x530808){const _0x17ad64=_0x2720ed,_0x26313a=this;this[_0x17ad64('0x1')]['enqueue'](function(){const _0x43ccc3=_0x17ad64;return _0x26313a[_0x43ccc3('0x14')]['addColumn'](_0x37c1f6,_0x7f6f04,_0x530808)[_0x43ccc3('0x5')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x7f6f04,_0x37c1f6);})[_0x43ccc3('0x0')](function(_0x1ad4cb){const _0x512737=_0x43ccc3;logger[_0x512737('0x15')](JSON[_0x512737('0xc')](_0x1ad4cb));});});},Migration[_0x2720ed('0xb')][_0x2720ed('0x8')]=function(_0x15d7a0){const _0x530aed=_0x2720ed,_0x516ada=this;this['sequence'][_0x530aed('0x3')](function(){const _0x2eabc8=_0x530aed;return _0x516ada[_0x2eabc8('0x14')][_0x2eabc8('0x8')](_0x15d7a0,{'force':!![]})['then'](function(){const _0x5c4a10=_0x2eabc8;logger[_0x5c4a10('0x15')](_0x5c4a10('0x2'),_0x15d7a0);})[_0x2eabc8('0x0')](function(_0x33c15e){const _0x2444b8=_0x2eabc8;logger[_0x2444b8('0x15')](JSON['stringify'](_0x33c15e));});});},Migration['prototype'][_0x2720ed('0x19')]=function(_0xc6605,_0x16b77e,_0x456510){const _0x7f70eb=_0x2720ed,_0x4adf04=this;this[_0x7f70eb('0x1')][_0x7f70eb('0x3')](function(){const _0x93c016=_0x7f70eb;return _0x4adf04[_0x93c016('0x14')][_0x93c016('0x19')](_0xc6605,_0x16b77e,{'indexName':_0x456510})[_0x93c016('0x5')](function(){const _0x1092b4=_0x93c016;logger['info'](_0x1092b4('0x9'),_0xc6605,_0x16b77e['join'](','),_0x456510);})[_0x93c016('0x0')](function(_0x4e979d){const _0x16d531=_0x93c016;logger[_0x16d531('0x15')](JSON[_0x16d531('0xc')](_0x4e979d));});});},Migration[_0x2720ed('0xb')][_0x2720ed('0x1b')]=function(_0x5f1247,_0x25bfb4){const _0x5ce1d8=_0x2720ed,_0x316bb1=this;this['sequence'][_0x5ce1d8('0x3')](function(){const _0x33f2ad=_0x5ce1d8;return _0x316bb1[_0x33f2ad('0x14')][_0x33f2ad('0x1b')](_0x5f1247,_0x25bfb4)[_0x33f2ad('0x5')](function(){const _0x79003e=_0x33f2ad;logger[_0x79003e('0x15')]('removeIndex\x20%s\x20%s',_0x5f1247,_0x25bfb4);})[_0x33f2ad('0x0')](function(_0x5134bc){const _0x3fe290=_0x33f2ad;logger[_0x3fe290('0x15')](JSON[_0x3fe290('0xc')](_0x5134bc));});});},Migration[_0x2720ed('0xb')][_0x2720ed('0x1d')]=function(_0x4e45d3){const _0x464c1a=_0x2720ed,_0x17f2d2=this;this[_0x464c1a('0x1')][_0x464c1a('0x3')](function(){const _0x1b1f85=_0x464c1a;return _0x17f2d2[_0x1b1f85('0x14')][_0x1b1f85('0x16')]['query'](_0x4e45d3)[_0x1b1f85('0x5')](function(){const _0x32c9c5=_0x1b1f85;logger[_0x32c9c5('0x15')](_0x32c9c5('0x1e'),_0x4e45d3);})[_0x1b1f85('0x0')](function(_0x1ab980){const _0x3ba9a1=_0x1b1f85;logger[_0x3ba9a1('0x15')](JSON[_0x3ba9a1('0xc')](_0x1ab980));});});},Migration['prototype']['removeColumn']=function(_0x1f8d34,_0x1d5a37){const _0x443ed3=this;this['sequence']['enqueue'](function(){const _0x43889d=a949_0x1b59;return _0x443ed3[_0x43889d('0x14')][_0x43889d('0xd')](_0x1f8d34,_0x1d5a37)[_0x43889d('0x5')](function(){const _0x1873ae=_0x43889d;logger[_0x1873ae('0x15')](_0x1873ae('0x12'),_0x1d5a37,_0x1f8d34);})[_0x43889d('0x0')](function(_0x4e36f7){logger['info'](util['inspect'](_0x4e36f7,{'showHidden':![],'depth':null}));});});},Migration[_0x2720ed('0xb')][_0x2720ed('0x1a')]=function(_0x567411,_0x2319ea,_0x17cd4e){const _0x5c7f5b=_0x2720ed,_0x375857=this;this[_0x5c7f5b('0x1')][_0x5c7f5b('0x3')](function(){const _0x15454f=_0x5c7f5b;return _0x375857['queryInterface'][_0x15454f('0x1a')](_0x567411,_0x2319ea,_0x17cd4e)[_0x15454f('0x5')](function(){const _0x444c39=_0x15454f;logger['info'](_0x444c39('0x1c'),_0x2319ea,_0x17cd4e,_0x567411);})[_0x15454f('0x0')](function(_0x546232){const _0xfefa98=_0x15454f;logger['info'](util[_0xfefa98('0xe')](_0x546232,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2720ed('0x11')]=function(_0xa8a624){const _0x4f1f47=_0x2720ed;this[_0x4f1f47('0x1')]['enqueue'](function(){return _0xa8a624();});},module[_0x2720ed('0x7')]={'up':function(_0x3d915b,_0x2a9812){return new Promise(function(_0x3e5cd7){const _0x28d4aa=a949_0x1b59,_0x39924f=new Migration(_0x3d915b);_0x39924f[_0x28d4aa('0xf')](_0x28d4aa('0xa'),_0x28d4aa('0x1f'),{'type':_0x2a9812['INTEGER'],'defaultValue':0x0}),_0x39924f[_0x28d4aa('0xf')](_0x28d4aa('0x4'),_0x28d4aa('0x1f'),{'type':_0x2a9812['INTEGER'],'defaultValue':0x0}),_0x39924f[_0x28d4aa('0x1d')](_0x28d4aa('0x20')),_0x39924f[_0x28d4aa('0x11')](_0x3e5cd7);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.71.js b/server/migrations/2.0.71.js index 30c7159..4d0456d 100644 --- a/server/migrations/2.0.71.js +++ b/server/migrations/2.0.71.js @@ -1 +1 @@ -const a950_0xe3ae=['queueTransferTimeout','stringify','chat_websites','sms_accounts','catch','removeColumn','final','renameColumn','System','STRING','info','sequence','prototype','queryInterface','inspect','query','systemAvatar','addColumn','INTEGER','Added\x20column\x20%s\x20to\x20%s','agentTransfer','openchannel_accounts','tail','queueTransfer','fax_accounts','chatTimeout','agentTransferTimeout','util','table\x20dropped\x20%s','then','join','dropTable','removeIndex','UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','settings','../config/logger','enqueue','exports','phoneBarRememberMeEnabled','systemAlias','addIndex\x20%s\x20%s\x20%s','data7','TEXT','license','addIndex','sequelize'];(function(_0x4d2a4e,_0xe3ae2b){const _0x14f9f1=function(_0x5efe46){while(--_0x5efe46){_0x4d2a4e['push'](_0x4d2a4e['shift']());}};_0x14f9f1(++_0xe3ae2b);}(a950_0xe3ae,0x17d));const a950_0x14f9=function(_0x4d2a4e,_0xe3ae2b){_0x4d2a4e=_0x4d2a4e-0x0;let _0x14f9f1=a950_0xe3ae[_0x4d2a4e];return _0x14f9f1;};const _0x362864=a950_0x14f9;'use strict';const util=require(_0x362864('0x1e')),logger=require(_0x362864('0x28'))('migration'),Sequence=function(){};Sequence[_0x362864('0xf')]['enqueue']=function(_0x5efe46){const _0x3afb57=_0x362864;this[_0x3afb57('0x19')]=this[_0x3afb57('0x19')]?this[_0x3afb57('0x19')]['finally'](_0x5efe46):_0x5efe46();};const Migration=function(_0x5d0887){const _0x3d07ca=_0x362864;this[_0x3d07ca('0x10')]=_0x5d0887,this[_0x3d07ca('0xe')]=new Sequence();};Migration[_0x362864('0xf')]['changeColumn']=function(_0x79888c,_0x567f38,_0x5ba401){const _0x4ef516=_0x362864,_0x175031=this;this[_0x4ef516('0xe')]['enqueue'](function(){const _0xfe5fd3=_0x4ef516;return _0x175031[_0xfe5fd3('0x10')]['changeColumn'](_0x79888c,_0x567f38,_0x5ba401)['then'](function(){const _0x23e351=_0xfe5fd3;logger[_0x23e351('0xd')](_0x23e351('0x26'),_0x567f38,_0x79888c);})[_0xfe5fd3('0x7')](function(_0x4c4157){const _0x901301=_0xfe5fd3;logger['info'](JSON[_0x901301('0x4')](_0x4c4157));});});},Migration[_0x362864('0xf')][_0x362864('0x14')]=function(_0x53f321,_0x30725d,_0x23a4c2){const _0x4e8872=_0x362864,_0x41b21c=this;this[_0x4e8872('0xe')][_0x4e8872('0x29')](function(){const _0x533c9e=_0x4e8872;return _0x41b21c[_0x533c9e('0x10')][_0x533c9e('0x14')](_0x53f321,_0x30725d,_0x23a4c2)[_0x533c9e('0x20')](function(){const _0x50c0fe=_0x533c9e;logger[_0x50c0fe('0xd')](_0x50c0fe('0x16'),_0x30725d,_0x53f321);})[_0x533c9e('0x7')](function(_0x1f5411){const _0x451460=_0x533c9e;logger[_0x451460('0xd')](JSON[_0x451460('0x4')](_0x1f5411));});});},Migration[_0x362864('0xf')][_0x362864('0x22')]=function(_0x13fa09){const _0x531162=_0x362864,_0x12e0e3=this;this[_0x531162('0xe')]['enqueue'](function(){const _0x4f16f6=_0x531162;return _0x12e0e3['queryInterface'][_0x4f16f6('0x22')](_0x13fa09,{'force':!![]})['then'](function(){const _0x29cfbc=_0x4f16f6;logger[_0x29cfbc('0xd')](_0x29cfbc('0x1f'),_0x13fa09);})['catch'](function(_0x32844){const _0x4c5c88=_0x4f16f6;logger[_0x4c5c88('0xd')](JSON[_0x4c5c88('0x4')](_0x32844));});});},Migration[_0x362864('0xf')][_0x362864('0x1')]=function(_0x572e9c,_0x29c5d1,_0xac687e){const _0xcd875a=_0x362864,_0x1c13d9=this;this[_0xcd875a('0xe')][_0xcd875a('0x29')](function(){const _0x43be41=_0xcd875a;return _0x1c13d9[_0x43be41('0x10')][_0x43be41('0x1')](_0x572e9c,_0x29c5d1,{'indexName':_0xac687e})[_0x43be41('0x20')](function(){const _0x6d766f=_0x43be41;logger[_0x6d766f('0xd')](_0x6d766f('0x2d'),_0x572e9c,_0x29c5d1[_0x6d766f('0x21')](','),_0xac687e);})[_0x43be41('0x7')](function(_0x2a3547){const _0xbd7808=_0x43be41;logger[_0xbd7808('0xd')](JSON['stringify'](_0x2a3547));});});},Migration[_0x362864('0xf')][_0x362864('0x23')]=function(_0xa3c1cd,_0x387ac1){const _0x4d0fa6=_0x362864,_0x2f1911=this;this[_0x4d0fa6('0xe')][_0x4d0fa6('0x29')](function(){const _0x5a2c75=_0x4d0fa6;return _0x2f1911[_0x5a2c75('0x10')][_0x5a2c75('0x23')](_0xa3c1cd,_0x387ac1)[_0x5a2c75('0x20')](function(){const _0x3c66e8=_0x5a2c75;logger[_0x3c66e8('0xd')]('removeIndex\x20%s\x20%s',_0xa3c1cd,_0x387ac1);})[_0x5a2c75('0x7')](function(_0xa11d50){const _0x26b9a7=_0x5a2c75;logger[_0x26b9a7('0xd')](JSON[_0x26b9a7('0x4')](_0xa11d50));});});},Migration[_0x362864('0xf')][_0x362864('0x12')]=function(_0x5b8513){const _0x28a072=_0x362864,_0x58fc5b=this;this[_0x28a072('0xe')][_0x28a072('0x29')](function(){const _0x4d9c8e=_0x28a072;return _0x58fc5b[_0x4d9c8e('0x10')][_0x4d9c8e('0x2')]['query'](_0x5b8513)['then'](function(){logger['info']('query\x20%s',_0x5b8513);})[_0x4d9c8e('0x7')](function(_0x41d12a){const _0x18fc78=_0x4d9c8e;logger[_0x18fc78('0xd')](JSON[_0x18fc78('0x4')](_0x41d12a));});});},Migration[_0x362864('0xf')][_0x362864('0x8')]=function(_0xb6ee0e,_0x197706){const _0x4b5866=_0x362864,_0x3dcb67=this;this['sequence'][_0x4b5866('0x29')](function(){const _0x58bfe3=_0x4b5866;return _0x3dcb67[_0x58bfe3('0x10')][_0x58bfe3('0x8')](_0xb6ee0e,_0x197706)[_0x58bfe3('0x20')](function(){const _0x490979=_0x58bfe3;logger[_0x490979('0xd')]('Removed\x20column\x20%s\x20from\x20%s',_0x197706,_0xb6ee0e);})[_0x58bfe3('0x7')](function(_0x307bff){const _0x3a9de9=_0x58bfe3;logger[_0x3a9de9('0xd')](util[_0x3a9de9('0x11')](_0x307bff,{'showHidden':![],'depth':null}));});});},Migration[_0x362864('0xf')]['renameColumn']=function(_0x41a545,_0xac3f4d,_0x5c61cd){const _0xd2d873=_0x362864,_0x5b33c8=this;this['sequence'][_0xd2d873('0x29')](function(){const _0x76c509=_0xd2d873;return _0x5b33c8[_0x76c509('0x10')][_0x76c509('0xa')](_0x41a545,_0xac3f4d,_0x5c61cd)[_0x76c509('0x20')](function(){const _0x530208=_0x76c509;logger[_0x530208('0xd')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xac3f4d,_0x5c61cd,_0x41a545);})[_0x76c509('0x7')](function(_0x5dd71b){const _0x11329c=_0x76c509;logger[_0x11329c('0xd')](util[_0x11329c('0x11')](_0x5dd71b,{'showHidden':![],'depth':null}));});});},Migration[_0x362864('0xf')][_0x362864('0x9')]=function(_0x27da73){const _0x269ad9=_0x362864;this['sequence'][_0x269ad9('0x29')](function(){return _0x27da73();});},module[_0x362864('0x2a')]={'up':function(_0x6b52ad,_0x49d2ff){return new Promise(function(_0x1b32ba){const _0x30c230=a950_0x14f9,_0x41a632=new Migration(_0x6b52ad);_0x41a632['addColumn'](_0x30c230('0x5'),_0x30c230('0x1a'),{'type':_0x49d2ff['BOOLEAN'],'defaultValue':![]}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x5'),'enableCustomerCheckmarks',{'type':_0x49d2ff[_0x30c230('0x25')],'defaultValue':![]}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x5'),_0x30c230('0x3'),{'type':_0x49d2ff[_0x30c230('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x5'),_0x30c230('0x17'),{'type':_0x49d2ff[_0x30c230('0x25')],'defaultValue':![]}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x5'),_0x30c230('0x1d'),{'type':_0x49d2ff[_0x30c230('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x5'),_0x30c230('0x2c'),{'type':_0x49d2ff[_0x30c230('0xc')],'defaultValue':_0x30c230('0xb')}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x5'),_0x30c230('0x13'),{'type':_0x49d2ff['TEXT']}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x1b'),_0x30c230('0x1a'),{'type':_0x49d2ff[_0x30c230('0x25')],'defaultValue':![]}),_0x41a632['addColumn'](_0x30c230('0x1b'),_0x30c230('0x3'),{'type':_0x49d2ff[_0x30c230('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x41a632['addColumn'](_0x30c230('0x1b'),_0x30c230('0x17'),{'type':_0x49d2ff['BOOLEAN'],'defaultValue':![]}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x1b'),_0x30c230('0x1d'),{'type':_0x49d2ff[_0x30c230('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x18'),'queueTransfer',{'type':_0x49d2ff[_0x30c230('0x25')],'defaultValue':![]}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x18'),_0x30c230('0x3'),{'type':_0x49d2ff[_0x30c230('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x18'),_0x30c230('0x17'),{'type':_0x49d2ff[_0x30c230('0x25')],'defaultValue':![]}),_0x41a632['addColumn'](_0x30c230('0x18'),_0x30c230('0x1d'),{'type':_0x49d2ff[_0x30c230('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x6'),_0x30c230('0x1a'),{'type':_0x49d2ff['BOOLEAN'],'defaultValue':![]}),_0x41a632[_0x30c230('0x14')]('sms_accounts',_0x30c230('0x3'),{'type':_0x49d2ff[_0x30c230('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x41a632['addColumn'](_0x30c230('0x6'),_0x30c230('0x17'),{'type':_0x49d2ff[_0x30c230('0x25')],'defaultValue':![]}),_0x41a632['addColumn']('sms_accounts','agentTransferTimeout',{'type':_0x49d2ff[_0x30c230('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x27'),_0x30c230('0x1c'),{'type':_0x49d2ff[_0x30c230('0x15')],'defaultValue':0x1e}),_0x41a632[_0x30c230('0x12')](_0x30c230('0x24')),_0x41a632['addColumn'](_0x30c230('0x27'),_0x30c230('0x2b'),{'type':_0x49d2ff[_0x30c230('0x25')],'defaultValue':!![]}),_0x41a632[_0x30c230('0x14')](_0x30c230('0x0'),'chatLicenseExceeded',{'type':_0x49d2ff['INTEGER'],'defaultValue':0x0}),_0x41a632[_0x30c230('0x14')]('tools_actions',_0x30c230('0x2e'),{'type':_0x49d2ff[_0x30c230('0x2f')]}),_0x41a632[_0x30c230('0x9')](_0x1b32ba);});},'down':function(){}}; \ No newline at end of file +const a950_0x3288=['info','removeIndex','../config/logger','queueTransfer','STRING','fax_accounts','renameColumn','phoneBarRememberMeEnabled','Added\x20column\x20%s\x20to\x20%s','tail','settings','chatLicenseExceeded','chat_websites','data7','addIndex\x20%s\x20%s\x20%s','TEXT','catch','agentTransfer','license','sms_accounts','enqueue','finally','join','BOOLEAN','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','final','query\x20%s','INTEGER','addColumn','tools_actions','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','query','dropTable','addIndex','sequence','enableCustomerCheckmarks','stringify','agentTransferTimeout','queueTransferTimeout','then','queryInterface','prototype','sequelize','Removed\x20column\x20%s\x20from\x20%s','systemAlias','removeColumn','UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;'];(function(_0x5c92a4,_0x3288a2){const _0x43b976=function(_0x13fe5a){while(--_0x13fe5a){_0x5c92a4['push'](_0x5c92a4['shift']());}};_0x43b976(++_0x3288a2);}(a950_0x3288,0x103));const a950_0x43b9=function(_0x5c92a4,_0x3288a2){_0x5c92a4=_0x5c92a4-0x0;let _0x43b976=a950_0x3288[_0x5c92a4];return _0x43b976;};const _0x32f592=a950_0x43b9;'use strict';const util=require('util'),logger=require(_0x32f592('0x25'))('migration'),Sequence=function(){};Sequence[_0x32f592('0x1d')][_0x32f592('0x6')]=function(_0x13fe5a){const _0x11474f=_0x32f592;this[_0x11474f('0x2c')]=this[_0x11474f('0x2c')]?this[_0x11474f('0x2c')][_0x11474f('0x7')](_0x13fe5a):_0x13fe5a();};const Migration=function(_0x5331a0){const _0x332805=_0x32f592;this[_0x332805('0x1c')]=_0x5331a0,this[_0x332805('0x16')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x5abbcd,_0x2a993e,_0x5b53be){const _0x28134f=_0x32f592,_0x36eee2=this;this[_0x28134f('0x16')][_0x28134f('0x6')](function(){const _0x28f0ce=_0x28134f;return _0x36eee2[_0x28f0ce('0x1c')]['changeColumn'](_0x5abbcd,_0x2a993e,_0x5b53be)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2a993e,_0x5abbcd);})['catch'](function(_0x20b641){const _0x3634e8=_0x28f0ce;logger[_0x3634e8('0x23')](JSON['stringify'](_0x20b641));});});},Migration[_0x32f592('0x1d')][_0x32f592('0xf')]=function(_0x15efe6,_0x533aac,_0x2e0a0d){const _0x4ab433=_0x32f592,_0x37da2e=this;this['sequence'][_0x4ab433('0x6')](function(){const _0x2279ef=_0x4ab433;return _0x37da2e[_0x2279ef('0x1c')][_0x2279ef('0xf')](_0x15efe6,_0x533aac,_0x2e0a0d)[_0x2279ef('0x1b')](function(){const _0x31f807=_0x2279ef;logger['info'](_0x31f807('0x2b'),_0x533aac,_0x15efe6);})[_0x2279ef('0x2')](function(_0x299f6e){const _0x3753d6=_0x2279ef;logger[_0x3753d6('0x23')](JSON[_0x3753d6('0x18')](_0x299f6e));});});},Migration[_0x32f592('0x1d')]['dropTable']=function(_0x267786){const _0xfdfc26=_0x32f592,_0x3b71f2=this;this['sequence'][_0xfdfc26('0x6')](function(){const _0x413982=_0xfdfc26;return _0x3b71f2[_0x413982('0x1c')][_0x413982('0x14')](_0x267786,{'force':!![]})[_0x413982('0x1b')](function(){const _0x559d99=_0x413982;logger[_0x559d99('0x23')](_0x559d99('0x12'),_0x267786);})[_0x413982('0x2')](function(_0x1d4f6b){const _0x72f24=_0x413982;logger[_0x72f24('0x23')](JSON[_0x72f24('0x18')](_0x1d4f6b));});});},Migration[_0x32f592('0x1d')]['addIndex']=function(_0x5d4dda,_0x5185d6,_0x4b87a7){const _0x5c5acb=_0x32f592,_0x4aad5b=this;this[_0x5c5acb('0x16')][_0x5c5acb('0x6')](function(){const _0x2eafe4=_0x5c5acb;return _0x4aad5b['queryInterface'][_0x2eafe4('0x15')](_0x5d4dda,_0x5185d6,{'indexName':_0x4b87a7})['then'](function(){const _0x5d3de5=_0x2eafe4;logger[_0x5d3de5('0x23')](_0x5d3de5('0x0'),_0x5d4dda,_0x5185d6[_0x5d3de5('0x8')](','),_0x4b87a7);})['catch'](function(_0x3e18e9){const _0x6a75b0=_0x2eafe4;logger[_0x6a75b0('0x23')](JSON[_0x6a75b0('0x18')](_0x3e18e9));});});},Migration[_0x32f592('0x1d')][_0x32f592('0x24')]=function(_0x5da857,_0x4a967f){const _0x3b95ed=_0x32f592,_0x52812e=this;this[_0x3b95ed('0x16')]['enqueue'](function(){const _0x4e994b=_0x3b95ed;return _0x52812e[_0x4e994b('0x1c')][_0x4e994b('0x24')](_0x5da857,_0x4a967f)['then'](function(){const _0x162311=_0x4e994b;logger[_0x162311('0x23')](_0x162311('0x11'),_0x5da857,_0x4a967f);})[_0x4e994b('0x2')](function(_0x12b7df){const _0x2895a1=_0x4e994b;logger[_0x2895a1('0x23')](JSON['stringify'](_0x12b7df));});});},Migration[_0x32f592('0x1d')][_0x32f592('0x13')]=function(_0x5f0ac0){const _0x28274a=_0x32f592,_0x1d8500=this;this[_0x28274a('0x16')][_0x28274a('0x6')](function(){const _0x3bede3=_0x28274a;return _0x1d8500[_0x3bede3('0x1c')][_0x3bede3('0x1e')][_0x3bede3('0x13')](_0x5f0ac0)[_0x3bede3('0x1b')](function(){const _0x2346b4=_0x3bede3;logger['info'](_0x2346b4('0xd'),_0x5f0ac0);})[_0x3bede3('0x2')](function(_0x5e3414){const _0x30eb59=_0x3bede3;logger[_0x30eb59('0x23')](JSON[_0x30eb59('0x18')](_0x5e3414));});});},Migration[_0x32f592('0x1d')][_0x32f592('0x21')]=function(_0x3368cb,_0x5586ee){const _0x325990=_0x32f592,_0x421b2e=this;this[_0x325990('0x16')][_0x325990('0x6')](function(){const _0x4960b7=_0x325990;return _0x421b2e['queryInterface']['removeColumn'](_0x3368cb,_0x5586ee)['then'](function(){const _0x109827=a950_0x43b9;logger[_0x109827('0x23')](_0x109827('0x1f'),_0x5586ee,_0x3368cb);})[_0x4960b7('0x2')](function(_0x35934e){const _0x3bd30a=_0x4960b7;logger[_0x3bd30a('0x23')](util['inspect'](_0x35934e,{'showHidden':![],'depth':null}));});});},Migration[_0x32f592('0x1d')][_0x32f592('0x29')]=function(_0x10130c,_0x34ced1,_0x31a5fb){const _0x119ec4=_0x32f592,_0x1acd34=this;this[_0x119ec4('0x16')][_0x119ec4('0x6')](function(){const _0x13b5ca=_0x119ec4;return _0x1acd34['queryInterface'][_0x13b5ca('0x29')](_0x10130c,_0x34ced1,_0x31a5fb)[_0x13b5ca('0x1b')](function(){const _0x5b6060=_0x13b5ca;logger[_0x5b6060('0x23')](_0x5b6060('0xa'),_0x34ced1,_0x31a5fb,_0x10130c);})[_0x13b5ca('0x2')](function(_0x24bccd){const _0x4abc87=_0x13b5ca;logger[_0x4abc87('0x23')](util['inspect'](_0x24bccd,{'showHidden':![],'depth':null}));});});},Migration[_0x32f592('0x1d')][_0x32f592('0xc')]=function(_0xc97723){const _0x426fe5=_0x32f592;this[_0x426fe5('0x16')][_0x426fe5('0x6')](function(){return _0xc97723();});},module[_0x32f592('0xb')]={'up':function(_0x29e7c9,_0x38a3d){return new Promise(function(_0x593099){const _0x117d89=a950_0x43b9,_0xd4baca=new Migration(_0x29e7c9);_0xd4baca['addColumn'](_0x117d89('0x2f'),_0x117d89('0x26'),{'type':_0x38a3d['BOOLEAN'],'defaultValue':![]}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x2f'),_0x117d89('0x17'),{'type':_0x38a3d[_0x117d89('0x9')],'defaultValue':![]}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x2f'),_0x117d89('0x1a'),{'type':_0x38a3d[_0x117d89('0xe')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x2f'),_0x117d89('0x3'),{'type':_0x38a3d['BOOLEAN'],'defaultValue':![]}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x2f'),'agentTransferTimeout',{'type':_0x38a3d[_0x117d89('0xe')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xd4baca['addColumn'](_0x117d89('0x2f'),_0x117d89('0x20'),{'type':_0x38a3d[_0x117d89('0x27')],'defaultValue':'System'}),_0xd4baca['addColumn'](_0x117d89('0x2f'),'systemAvatar',{'type':_0x38a3d[_0x117d89('0x1')]}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x28'),_0x117d89('0x26'),{'type':_0x38a3d['BOOLEAN'],'defaultValue':![]}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x28'),_0x117d89('0x1a'),{'type':_0x38a3d[_0x117d89('0xe')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xd4baca['addColumn'](_0x117d89('0x28'),_0x117d89('0x3'),{'type':_0x38a3d[_0x117d89('0x9')],'defaultValue':![]}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x28'),'agentTransferTimeout',{'type':_0x38a3d['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xd4baca[_0x117d89('0xf')]('openchannel_accounts',_0x117d89('0x26'),{'type':_0x38a3d[_0x117d89('0x9')],'defaultValue':![]}),_0xd4baca[_0x117d89('0xf')]('openchannel_accounts',_0x117d89('0x1a'),{'type':_0x38a3d[_0x117d89('0xe')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xd4baca[_0x117d89('0xf')]('openchannel_accounts',_0x117d89('0x3'),{'type':_0x38a3d['BOOLEAN'],'defaultValue':![]}),_0xd4baca['addColumn']('openchannel_accounts',_0x117d89('0x19'),{'type':_0x38a3d[_0x117d89('0xe')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x5'),'queueTransfer',{'type':_0x38a3d[_0x117d89('0x9')],'defaultValue':![]}),_0xd4baca[_0x117d89('0xf')]('sms_accounts',_0x117d89('0x1a'),{'type':_0x38a3d['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x5'),_0x117d89('0x3'),{'type':_0x38a3d[_0x117d89('0x9')],'defaultValue':![]}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x5'),_0x117d89('0x19'),{'type':_0x38a3d[_0x117d89('0xe')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xd4baca['addColumn'](_0x117d89('0x2d'),'chatTimeout',{'type':_0x38a3d['INTEGER'],'defaultValue':0x1e}),_0xd4baca[_0x117d89('0x13')](_0x117d89('0x22')),_0xd4baca[_0x117d89('0xf')]('settings',_0x117d89('0x2a'),{'type':_0x38a3d[_0x117d89('0x9')],'defaultValue':!![]}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x4'),_0x117d89('0x2e'),{'type':_0x38a3d[_0x117d89('0xe')],'defaultValue':0x0}),_0xd4baca[_0x117d89('0xf')](_0x117d89('0x10'),_0x117d89('0x30'),{'type':_0x38a3d[_0x117d89('0x1')]}),_0xd4baca[_0x117d89('0xc')](_0x593099);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.72.js b/server/migrations/2.0.72.js index cf4a833..e0905b7 100644 --- a/server/migrations/2.0.72.js +++ b/server/migrations/2.0.72.js @@ -1 +1 @@ -const a951_0x5ba3=['then','changeColumn','removeIndex','removeColumn','removeIndex\x20%s\x20%s','renameColumn','inspect','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','finally','report_square','final','query','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','catch','tail','sequelize','leaveAt','queryInterface','query\x20%s','../config/logger','prototype','dropTable','exports','Added\x20column\x20%s\x20to\x20%s','sequence','uid_pname','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','project_name','info','util','addColumn','enqueue'];(function(_0x581756,_0x5ba322){const _0x32286a=function(_0x24d469){while(--_0x24d469){_0x581756['push'](_0x581756['shift']());}};_0x32286a(++_0x5ba322);}(a951_0x5ba3,0x65));const a951_0x3228=function(_0x581756,_0x5ba322){_0x581756=_0x581756-0x0;let _0x32286a=a951_0x5ba3[_0x581756];return _0x32286a;};const _0x3b76fa=a951_0x3228;'use strict';const util=require(_0x3b76fa('0x1')),logger=require(_0x3b76fa('0x19'))('migration'),Sequence=function(){};Sequence['prototype'][_0x3b76fa('0x3')]=function(_0x24d469){const _0x5b4ca5=_0x3b76fa;this[_0x5b4ca5('0x14')]=this['tail']?this[_0x5b4ca5('0x14')][_0x5b4ca5('0xc')](_0x24d469):_0x24d469();};const Migration=function(_0x16734f){const _0x1b425b=_0x3b76fa;this['queryInterface']=_0x16734f,this[_0x1b425b('0x1e')]=new Sequence();};Migration[_0x3b76fa('0x1a')][_0x3b76fa('0x5')]=function(_0x20beac,_0x399854,_0x269d67){const _0x5cafb0=_0x3b76fa,_0x8223bb=this;this[_0x5cafb0('0x1e')]['enqueue'](function(){const _0x7fc6a9=_0x5cafb0;return _0x8223bb['queryInterface'][_0x7fc6a9('0x5')](_0x20beac,_0x399854,_0x269d67)[_0x7fc6a9('0x4')](function(){const _0x3ce010=_0x7fc6a9;logger[_0x3ce010('0x0')](_0x3ce010('0x20'),_0x399854,_0x20beac);})[_0x7fc6a9('0x13')](function(_0x2633c0){const _0x5bc7c=_0x7fc6a9;logger[_0x5bc7c('0x0')](JSON[_0x5bc7c('0x21')](_0x2633c0));});});},Migration[_0x3b76fa('0x1a')][_0x3b76fa('0x2')]=function(_0x591df8,_0x16437d,_0x3747c0){const _0x2f43dd=_0x3b76fa,_0x89b0e9=this;this[_0x2f43dd('0x1e')][_0x2f43dd('0x3')](function(){const _0x202ac2=_0x2f43dd;return _0x89b0e9['queryInterface']['addColumn'](_0x591df8,_0x16437d,_0x3747c0)['then'](function(){const _0x3c031f=a951_0x3228;logger[_0x3c031f('0x0')](_0x3c031f('0x1d'),_0x16437d,_0x591df8);})[_0x202ac2('0x13')](function(_0x174207){logger['info'](JSON['stringify'](_0x174207));});});},Migration[_0x3b76fa('0x1a')]['dropTable']=function(_0x3fe31c){const _0x2582e4=_0x3b76fa,_0x167287=this;this[_0x2582e4('0x1e')][_0x2582e4('0x3')](function(){const _0x3692eb=_0x2582e4;return _0x167287[_0x3692eb('0x17')][_0x3692eb('0x1b')](_0x3fe31c,{'force':!![]})[_0x3692eb('0x4')](function(){logger['info']('table\x20dropped\x20%s',_0x3fe31c);})[_0x3692eb('0x13')](function(_0x9aec6b){const _0x39b18e=_0x3692eb;logger[_0x39b18e('0x0')](JSON[_0x39b18e('0x21')](_0x9aec6b));});});},Migration[_0x3b76fa('0x1a')][_0x3b76fa('0x10')]=function(_0x47e597,_0x4fedea,_0x3e08eb){const _0x1c8f15=_0x3b76fa,_0x196c59=this;this[_0x1c8f15('0x1e')]['enqueue'](function(){const _0x2f3820=_0x1c8f15;return _0x196c59[_0x2f3820('0x17')]['addIndex'](_0x47e597,_0x4fedea,{'indexName':_0x3e08eb})[_0x2f3820('0x4')](function(){const _0x59f6e1=_0x2f3820;logger[_0x59f6e1('0x0')]('addIndex\x20%s\x20%s\x20%s',_0x47e597,_0x4fedea[_0x59f6e1('0x12')](','),_0x3e08eb);})[_0x2f3820('0x13')](function(_0x1074e4){const _0x2a64d3=_0x2f3820;logger['info'](JSON[_0x2a64d3('0x21')](_0x1074e4));});});},Migration[_0x3b76fa('0x1a')][_0x3b76fa('0x6')]=function(_0x3300d5,_0x25f954){const _0x430e8f=_0x3b76fa,_0xf207e7=this;this['sequence'][_0x430e8f('0x3')](function(){const _0x35f166=_0x430e8f;return _0xf207e7[_0x35f166('0x17')]['removeIndex'](_0x3300d5,_0x25f954)['then'](function(){const _0x31d4c7=_0x35f166;logger['info'](_0x31d4c7('0x8'),_0x3300d5,_0x25f954);})[_0x35f166('0x13')](function(_0x9ae91b){const _0x1be1a2=_0x35f166;logger[_0x1be1a2('0x0')](JSON[_0x1be1a2('0x21')](_0x9ae91b));});});},Migration[_0x3b76fa('0x1a')][_0x3b76fa('0xf')]=function(_0x45cfbc){const _0x12d25d=_0x3b76fa,_0x25b464=this;this['sequence'][_0x12d25d('0x3')](function(){const _0x1ed445=_0x12d25d;return _0x25b464['queryInterface'][_0x1ed445('0x15')][_0x1ed445('0xf')](_0x45cfbc)[_0x1ed445('0x4')](function(){const _0xb6a0c7=_0x1ed445;logger['info'](_0xb6a0c7('0x18'),_0x45cfbc);})[_0x1ed445('0x13')](function(_0x39e53f){const _0x162029=_0x1ed445;logger[_0x162029('0x0')](JSON[_0x162029('0x21')](_0x39e53f));});});},Migration['prototype']['removeColumn']=function(_0x2a16b4,_0x449caf){const _0x282533=this;this['sequence']['enqueue'](function(){const _0x25950c=a951_0x3228;return _0x282533['queryInterface'][_0x25950c('0x7')](_0x2a16b4,_0x449caf)[_0x25950c('0x4')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x449caf,_0x2a16b4);})['catch'](function(_0x48957a){const _0x566784=_0x25950c;logger['info'](util[_0x566784('0xa')](_0x48957a,{'showHidden':![],'depth':null}));});});},Migration[_0x3b76fa('0x1a')]['renameColumn']=function(_0x6ed1de,_0x3decdc,_0x2f78a0){const _0x4dba43=_0x3b76fa,_0x53c74a=this;this[_0x4dba43('0x1e')][_0x4dba43('0x3')](function(){const _0x42312e=_0x4dba43;return _0x53c74a[_0x42312e('0x17')][_0x42312e('0x9')](_0x6ed1de,_0x3decdc,_0x2f78a0)[_0x42312e('0x4')](function(){const _0x1aa20c=_0x42312e;logger['info'](_0x1aa20c('0x11'),_0x3decdc,_0x2f78a0,_0x6ed1de);})[_0x42312e('0x13')](function(_0x246d3f){const _0x5b93da=_0x42312e;logger[_0x5b93da('0x0')](util[_0x5b93da('0xa')](_0x246d3f,{'showHidden':![],'depth':null}));});});},Migration[_0x3b76fa('0x1a')][_0x3b76fa('0xe')]=function(_0x405913){const _0x410960=_0x3b76fa;this[_0x410960('0x1e')][_0x410960('0x3')](function(){return _0x405913();});},module[_0x3b76fa('0x1c')]={'up':function(_0x239b4f){return new Promise(function(_0x3870ae){const _0x1fb0ce=a951_0x3228,_0x48f039=new Migration(_0x239b4f);_0x48f039['query'](_0x1fb0ce('0xb')),_0x48f039['addIndex'](_0x1fb0ce('0xd'),['uniqueid',_0x1fb0ce('0x22')],_0x1fb0ce('0x1f')),_0x48f039[_0x1fb0ce('0x10')](_0x1fb0ce('0xd'),[_0x1fb0ce('0x16')],'leaveAt'),_0x48f039['final'](_0x3870ae);});},'down':function(){}}; \ No newline at end of file +const a951_0x33b3=['renameColumn','enqueue','queryInterface','uniqueid','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','report_square','then','info','stringify','addColumn','inspect','table\x20dropped\x20%s','migration','addIndex\x20%s\x20%s\x20%s','changeColumn','removeColumn','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','query','final','exports','removeIndex\x20%s\x20%s','sequence','dropTable','finally','catch','leaveAt','../config/logger','addIndex','util','tail','removeIndex'];(function(_0x9b0004,_0x33b302){const _0x2cc68e=function(_0x1f3692){while(--_0x1f3692){_0x9b0004['push'](_0x9b0004['shift']());}};_0x2cc68e(++_0x33b302);}(a951_0x33b3,0xf4));const a951_0x2cc6=function(_0x9b0004,_0x33b302){_0x9b0004=_0x9b0004-0x0;let _0x2cc68e=a951_0x33b3[_0x9b0004];return _0x2cc68e;};const _0x11d647=a951_0x2cc6;'use strict';const util=require(_0x11d647('0x9')),logger=require(_0x11d647('0x7'))(_0x11d647('0x19')),Sequence=function(){};Sequence['prototype'][_0x11d647('0xd')]=function(_0x1f3692){const _0x402e99=_0x11d647;this[_0x402e99('0xa')]=this[_0x402e99('0xa')]?this['tail'][_0x402e99('0x4')](_0x1f3692):_0x1f3692();};const Migration=function(_0x5cbae5){this['queryInterface']=_0x5cbae5,this['sequence']=new Sequence();};Migration[_0x11d647('0x10')][_0x11d647('0x1b')]=function(_0x34c8df,_0x252ee8,_0x890e5c){const _0x36ada0=_0x11d647,_0xfd0ac9=this;this[_0x36ada0('0x2')][_0x36ada0('0xd')](function(){const _0x278840=_0x36ada0;return _0xfd0ac9['queryInterface'][_0x278840('0x1b')](_0x34c8df,_0x252ee8,_0x890e5c)[_0x278840('0x13')](function(){const _0x2fbf62=_0x278840;logger[_0x2fbf62('0x14')](_0x2fbf62('0x11'),_0x252ee8,_0x34c8df);})[_0x278840('0x5')](function(_0x3ede84){const _0x3c988a=_0x278840;logger[_0x3c988a('0x14')](JSON[_0x3c988a('0x15')](_0x3ede84));});});},Migration[_0x11d647('0x10')]['addColumn']=function(_0x3c8bf3,_0x4be134,_0x9acb83){const _0x546e85=_0x11d647,_0x259489=this;this[_0x546e85('0x2')][_0x546e85('0xd')](function(){const _0x1e7c69=_0x546e85;return _0x259489[_0x1e7c69('0xe')][_0x1e7c69('0x16')](_0x3c8bf3,_0x4be134,_0x9acb83)[_0x1e7c69('0x13')](function(){const _0x259ebb=_0x1e7c69;logger[_0x259ebb('0x14')]('Added\x20column\x20%s\x20to\x20%s',_0x4be134,_0x3c8bf3);})[_0x1e7c69('0x5')](function(_0x2760af){const _0x85143b=_0x1e7c69;logger[_0x85143b('0x14')](JSON[_0x85143b('0x15')](_0x2760af));});});},Migration['prototype'][_0x11d647('0x3')]=function(_0x384612){const _0x52eb23=_0x11d647,_0x4dda47=this;this['sequence'][_0x52eb23('0xd')](function(){const _0x3359c7=_0x52eb23;return _0x4dda47[_0x3359c7('0xe')]['dropTable'](_0x384612,{'force':!![]})['then'](function(){const _0x590216=_0x3359c7;logger[_0x590216('0x14')](_0x590216('0x18'),_0x384612);})[_0x3359c7('0x5')](function(_0x1d733a){const _0x2b103d=_0x3359c7;logger[_0x2b103d('0x14')](JSON[_0x2b103d('0x15')](_0x1d733a));});});},Migration[_0x11d647('0x10')][_0x11d647('0x8')]=function(_0x5157c3,_0x14f35d,_0x3cf250){const _0x2bda52=_0x11d647,_0x547f9a=this;this[_0x2bda52('0x2')][_0x2bda52('0xd')](function(){const _0x5452c5=_0x2bda52;return _0x547f9a[_0x5452c5('0xe')]['addIndex'](_0x5157c3,_0x14f35d,{'indexName':_0x3cf250})['then'](function(){const _0x161a4c=_0x5452c5;logger[_0x161a4c('0x14')](_0x161a4c('0x1a'),_0x5157c3,_0x14f35d['join'](','),_0x3cf250);})[_0x5452c5('0x5')](function(_0x16aff4){const _0x466737=_0x5452c5;logger['info'](JSON[_0x466737('0x15')](_0x16aff4));});});},Migration[_0x11d647('0x10')][_0x11d647('0xb')]=function(_0x52f765,_0xdc427){const _0x32f354=_0x11d647,_0x413346=this;this[_0x32f354('0x2')]['enqueue'](function(){const _0x540f3c=_0x32f354;return _0x413346[_0x540f3c('0xe')][_0x540f3c('0xb')](_0x52f765,_0xdc427)[_0x540f3c('0x13')](function(){const _0x2a47fa=_0x540f3c;logger['info'](_0x2a47fa('0x1'),_0x52f765,_0xdc427);})[_0x540f3c('0x5')](function(_0x2aa294){const _0x2aeebd=_0x540f3c;logger[_0x2aeebd('0x14')](JSON[_0x2aeebd('0x15')](_0x2aa294));});});},Migration['prototype'][_0x11d647('0x1e')]=function(_0x32032c){const _0x2f2cdb=_0x11d647,_0x2eb7eb=this;this[_0x2f2cdb('0x2')][_0x2f2cdb('0xd')](function(){const _0x46688e=_0x2f2cdb;return _0x2eb7eb[_0x46688e('0xe')]['sequelize'][_0x46688e('0x1e')](_0x32032c)[_0x46688e('0x13')](function(){const _0x4ad9dd=_0x46688e;logger[_0x4ad9dd('0x14')]('query\x20%s',_0x32032c);})['catch'](function(_0x43c00a){const _0xe291f3=_0x46688e;logger[_0xe291f3('0x14')](JSON[_0xe291f3('0x15')](_0x43c00a));});});},Migration[_0x11d647('0x10')][_0x11d647('0x1c')]=function(_0x4bd9a8,_0x18533d){const _0x103f64=this;this['sequence']['enqueue'](function(){const _0x5e06ca=a951_0x2cc6;return _0x103f64[_0x5e06ca('0xe')][_0x5e06ca('0x1c')](_0x4bd9a8,_0x18533d)[_0x5e06ca('0x13')](function(){const _0x467168=_0x5e06ca;logger[_0x467168('0x14')]('Removed\x20column\x20%s\x20from\x20%s',_0x18533d,_0x4bd9a8);})[_0x5e06ca('0x5')](function(_0x27c1b8){const _0x2f0b5b=_0x5e06ca;logger[_0x2f0b5b('0x14')](util[_0x2f0b5b('0x17')](_0x27c1b8,{'showHidden':![],'depth':null}));});});},Migration[_0x11d647('0x10')][_0x11d647('0xc')]=function(_0x2e0429,_0x2ee82a,_0x1eb510){const _0x11d1a5=this;this['sequence']['enqueue'](function(){const _0x17c261=a951_0x2cc6;return _0x11d1a5[_0x17c261('0xe')][_0x17c261('0xc')](_0x2e0429,_0x2ee82a,_0x1eb510)[_0x17c261('0x13')](function(){const _0x422919=_0x17c261;logger[_0x422919('0x14')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2ee82a,_0x1eb510,_0x2e0429);})[_0x17c261('0x5')](function(_0x2fbed6){const _0x56e005=_0x17c261;logger[_0x56e005('0x14')](util[_0x56e005('0x17')](_0x2fbed6,{'showHidden':![],'depth':null}));});});},Migration[_0x11d647('0x10')][_0x11d647('0x1f')]=function(_0x240da1){const _0x31dce4=_0x11d647;this[_0x31dce4('0x2')][_0x31dce4('0xd')](function(){return _0x240da1();});},module[_0x11d647('0x0')]={'up':function(_0x599513){return new Promise(function(_0x186e43){const _0x44b64f=a951_0x2cc6,_0x2270e8=new Migration(_0x599513);_0x2270e8[_0x44b64f('0x1e')](_0x44b64f('0x1d')),_0x2270e8[_0x44b64f('0x8')](_0x44b64f('0x12'),[_0x44b64f('0xf'),'project_name'],'uid_pname'),_0x2270e8['addIndex'](_0x44b64f('0x12'),[_0x44b64f('0x6')],_0x44b64f('0x6')),_0x2270e8[_0x44b64f('0x1f')](_0x186e43);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.73.js b/server/migrations/2.0.73.js index 30793a3..4aa7995 100644 --- a/server/migrations/2.0.73.js +++ b/server/migrations/2.0.73.js @@ -1 +1 @@ -const a952_0x7ac9=['addColumn','stringify','cm_hopper_history','addIndex\x20%s\x20%s\x20%s','INTEGER','fb_data','info','query\x20%s','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','cm_contacts','tail','removeColumn','final','prototype','table\x20dropped\x20%s','catch','changeColumn','queryInterface','query','renameColumn','removeIndex\x20%s\x20%s','wechat','sequence','then','dropTable','inspect','exports','join','addIndex','util','sequelize','cm_hopper_final','originatecalleridnum','STRING','finally','routeid','originatecalleridname','enqueue'];(function(_0x3ba50d,_0x7ac931){const _0xbb5a7a=function(_0x303a5d){while(--_0x303a5d){_0x3ba50d['push'](_0x3ba50d['shift']());}};_0xbb5a7a(++_0x7ac931);}(a952_0x7ac9,0x175));const a952_0xbb5a=function(_0x3ba50d,_0x7ac931){_0x3ba50d=_0x3ba50d-0x0;let _0xbb5a7a=a952_0x7ac9[_0x3ba50d];return _0xbb5a7a;};const _0x56d15d=a952_0xbb5a;'use strict';const util=require(_0x56d15d('0x12')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x56d15d('0x2')]['enqueue']=function(_0x303a5d){const _0x5becf0=_0x56d15d;this['tail']=this['tail']?this[_0x5becf0('0x27')][_0x5becf0('0x17')](_0x303a5d):_0x303a5d();};const Migration=function(_0x5b292d){const _0x289ce5=_0x56d15d;this[_0x289ce5('0x6')]=_0x5b292d,this[_0x289ce5('0xb')]=new Sequence();};Migration[_0x56d15d('0x2')][_0x56d15d('0x5')]=function(_0x3d29b7,_0x3dd24b,_0x3ad080){const _0x80feb2=_0x56d15d,_0x454013=this;this[_0x80feb2('0xb')][_0x80feb2('0x1a')](function(){const _0x55ea8d=_0x80feb2;return _0x454013[_0x55ea8d('0x6')][_0x55ea8d('0x5')](_0x3d29b7,_0x3dd24b,_0x3ad080)[_0x55ea8d('0xc')](function(){const _0x3c8917=_0x55ea8d;logger['info'](_0x3c8917('0x24'),_0x3dd24b,_0x3d29b7);})[_0x55ea8d('0x4')](function(_0x259ce5){const _0x45513a=_0x55ea8d;logger['info'](JSON[_0x45513a('0x1c')](_0x259ce5));});});},Migration['prototype'][_0x56d15d('0x1b')]=function(_0x57c630,_0x44e359,_0x1c4579){const _0x1b2aa7=_0x56d15d,_0x433c0b=this;this['sequence'][_0x1b2aa7('0x1a')](function(){const _0x8293cb=_0x1b2aa7;return _0x433c0b['queryInterface'][_0x8293cb('0x1b')](_0x57c630,_0x44e359,_0x1c4579)[_0x8293cb('0xc')](function(){const _0x1c37e1=_0x8293cb;logger[_0x1c37e1('0x21')](_0x1c37e1('0x23'),_0x44e359,_0x57c630);})[_0x8293cb('0x4')](function(_0x26450a){const _0xd1fe69=_0x8293cb;logger[_0xd1fe69('0x21')](JSON[_0xd1fe69('0x1c')](_0x26450a));});});},Migration[_0x56d15d('0x2')]['dropTable']=function(_0x1b9dbb){const _0x21ea58=_0x56d15d,_0x374b53=this;this['sequence'][_0x21ea58('0x1a')](function(){const _0x16f54c=_0x21ea58;return _0x374b53[_0x16f54c('0x6')][_0x16f54c('0xd')](_0x1b9dbb,{'force':!![]})['then'](function(){const _0x172176=_0x16f54c;logger[_0x172176('0x21')](_0x172176('0x3'),_0x1b9dbb);})['catch'](function(_0x123753){const _0x44b3f3=_0x16f54c;logger[_0x44b3f3('0x21')](JSON[_0x44b3f3('0x1c')](_0x123753));});});},Migration['prototype'][_0x56d15d('0x11')]=function(_0xb93d5,_0x47b154,_0x361a22){const _0x3c333d=_0x56d15d,_0x58b67d=this;this[_0x3c333d('0xb')][_0x3c333d('0x1a')](function(){const _0x30eb64=_0x3c333d;return _0x58b67d[_0x30eb64('0x6')][_0x30eb64('0x11')](_0xb93d5,_0x47b154,{'indexName':_0x361a22})[_0x30eb64('0xc')](function(){const _0x2fbb92=_0x30eb64;logger[_0x2fbb92('0x21')](_0x2fbb92('0x1e'),_0xb93d5,_0x47b154[_0x2fbb92('0x10')](','),_0x361a22);})[_0x30eb64('0x4')](function(_0x2ebac6){const _0x224947=_0x30eb64;logger[_0x224947('0x21')](JSON[_0x224947('0x1c')](_0x2ebac6));});});},Migration[_0x56d15d('0x2')][_0x56d15d('0x25')]=function(_0x334c13,_0x3d5e02){const _0x1cfea4=_0x56d15d,_0x31c337=this;this[_0x1cfea4('0xb')]['enqueue'](function(){const _0x499fdb=_0x1cfea4;return _0x31c337[_0x499fdb('0x6')]['removeIndex'](_0x334c13,_0x3d5e02)[_0x499fdb('0xc')](function(){const _0x4b3203=_0x499fdb;logger[_0x4b3203('0x21')](_0x4b3203('0x9'),_0x334c13,_0x3d5e02);})['catch'](function(_0xcf4574){const _0x334fa7=_0x499fdb;logger[_0x334fa7('0x21')](JSON[_0x334fa7('0x1c')](_0xcf4574));});});},Migration['prototype'][_0x56d15d('0x7')]=function(_0x1ae6c5){const _0xe85ab3=_0x56d15d,_0x20c80d=this;this[_0xe85ab3('0xb')]['enqueue'](function(){const _0x594313=_0xe85ab3;return _0x20c80d[_0x594313('0x6')][_0x594313('0x13')][_0x594313('0x7')](_0x1ae6c5)[_0x594313('0xc')](function(){const _0xaba84f=_0x594313;logger[_0xaba84f('0x21')](_0xaba84f('0x22'),_0x1ae6c5);})[_0x594313('0x4')](function(_0x513a12){const _0x30501c=_0x594313;logger[_0x30501c('0x21')](JSON[_0x30501c('0x1c')](_0x513a12));});});},Migration[_0x56d15d('0x2')][_0x56d15d('0x0')]=function(_0x75d336,_0x1e485b){const _0x56ff96=this;this['sequence']['enqueue'](function(){const _0x4a22e6=a952_0xbb5a;return _0x56ff96[_0x4a22e6('0x6')]['removeColumn'](_0x75d336,_0x1e485b)[_0x4a22e6('0xc')](function(){const _0x46506d=_0x4a22e6;logger[_0x46506d('0x21')]('Removed\x20column\x20%s\x20from\x20%s',_0x1e485b,_0x75d336);})[_0x4a22e6('0x4')](function(_0x58e54c){const _0x141722=_0x4a22e6;logger[_0x141722('0x21')](util[_0x141722('0xe')](_0x58e54c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x56d15d('0x8')]=function(_0x3eac6c,_0x3d87b1,_0x5d3969){const _0x150914=_0x56d15d,_0x5ddda6=this;this['sequence'][_0x150914('0x1a')](function(){const _0x539305=_0x150914;return _0x5ddda6[_0x539305('0x6')][_0x539305('0x8')](_0x3eac6c,_0x3d87b1,_0x5d3969)[_0x539305('0xc')](function(){const _0x268b74=_0x539305;logger[_0x268b74('0x21')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3d87b1,_0x5d3969,_0x3eac6c);})[_0x539305('0x4')](function(_0x5edafa){const _0x40c9a3=_0x539305;logger['info'](util[_0x40c9a3('0xe')](_0x5edafa,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x56d15d('0x1')]=function(_0x17e280){const _0x3a3434=_0x56d15d;this[_0x3a3434('0xb')][_0x3a3434('0x1a')](function(){return _0x17e280();});},module[_0x56d15d('0xf')]={'up':function(_0x351162,_0x337b90){return new Promise(function(_0x4dd860){const _0x4480bb=a952_0xbb5a,_0x34faf7=new Migration(_0x351162);_0x34faf7['addColumn']('report_call',_0x4480bb('0x18'),{'type':_0x337b90[_0x4480bb('0x1f')]}),_0x34faf7[_0x4480bb('0x1b')](_0x4480bb('0x14'),_0x4480bb('0x15'),{'type':_0x337b90['STRING']}),_0x34faf7[_0x4480bb('0x1b')]('cm_hopper_final',_0x4480bb('0x19'),{'type':_0x337b90[_0x4480bb('0x16')]}),_0x34faf7[_0x4480bb('0x1b')](_0x4480bb('0x1d'),_0x4480bb('0x15'),{'type':_0x337b90['STRING']}),_0x34faf7[_0x4480bb('0x1b')]('cm_hopper_history',_0x4480bb('0x19'),{'type':_0x337b90[_0x4480bb('0x16')]}),_0x34faf7[_0x4480bb('0x1b')](_0x4480bb('0x26'),_0x4480bb('0xa'),{'type':_0x337b90['STRING']}),_0x34faf7[_0x4480bb('0x1b')](_0x4480bb('0x26'),_0x4480bb('0x20'),{'type':_0x337b90[_0x4480bb('0x16')]}),_0x34faf7[_0x4480bb('0x1')](_0x4dd860);});},'down':function(){}}; \ No newline at end of file +const a952_0x4eef=['fb_data','table\x20dropped\x20%s','addIndex','sequelize','Removed\x20column\x20%s\x20from\x20%s','join','query\x20%s','addIndex\x20%s\x20%s\x20%s','../config/logger','enqueue','inspect','renameColumn','wechat','stringify','finally','then','addColumn','query','util','prototype','migration','info','INTEGER','cm_hopper_history','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','queryInterface','report_call','dropTable','Added\x20column\x20%s\x20to\x20%s','final','Changed\x20column\x20%s\x20in\x20table\x20%s','originatecalleridnum','sequence','cm_contacts','removeColumn','STRING','tail','changeColumn','cm_hopper_final','originatecalleridname','removeIndex','removeIndex\x20%s\x20%s'];(function(_0x490656,_0x4eeffe){const _0x56d076=function(_0x46f3e1){while(--_0x46f3e1){_0x490656['push'](_0x490656['shift']());}};_0x56d076(++_0x4eeffe);}(a952_0x4eef,0x146));const a952_0x56d0=function(_0x490656,_0x4eeffe){_0x490656=_0x490656-0x0;let _0x56d076=a952_0x4eef[_0x490656];return _0x56d076;};const _0x276be2=a952_0x56d0;'use strict';const util=require(_0x276be2('0x24')),logger=require(_0x276be2('0x1a'))(_0x276be2('0x26')),Sequence=function(){};Sequence[_0x276be2('0x25')][_0x276be2('0x1b')]=function(_0x46f3e1){const _0x5e14d6=_0x276be2;this['tail']=this[_0x5e14d6('0xc')]?this['tail'][_0x5e14d6('0x20')](_0x46f3e1):_0x46f3e1();};const Migration=function(_0x1165c2){const _0x23bd7e=_0x276be2;this[_0x23bd7e('0x1')]=_0x1165c2,this[_0x23bd7e('0x8')]=new Sequence();};Migration[_0x276be2('0x25')][_0x276be2('0xd')]=function(_0x3fa48a,_0x25843a,_0x5bfc6c){const _0x37eced=_0x276be2,_0x3912f8=this;this[_0x37eced('0x8')][_0x37eced('0x1b')](function(){const _0xe93e88=_0x37eced;return _0x3912f8[_0xe93e88('0x1')][_0xe93e88('0xd')](_0x3fa48a,_0x25843a,_0x5bfc6c)[_0xe93e88('0x21')](function(){const _0xcad43e=_0xe93e88;logger[_0xcad43e('0x27')](_0xcad43e('0x6'),_0x25843a,_0x3fa48a);})[_0xe93e88('0x0')](function(_0x3ba39e){const _0x336927=_0xe93e88;logger[_0x336927('0x27')](JSON[_0x336927('0x1f')](_0x3ba39e));});});},Migration[_0x276be2('0x25')]['addColumn']=function(_0x5a4fb4,_0x2d2df5,_0x2830bf){const _0x2b4c33=_0x276be2,_0x66b7a1=this;this[_0x2b4c33('0x8')][_0x2b4c33('0x1b')](function(){const _0x393ecd=_0x2b4c33;return _0x66b7a1['queryInterface'][_0x393ecd('0x22')](_0x5a4fb4,_0x2d2df5,_0x2830bf)[_0x393ecd('0x21')](function(){const _0x4db2cb=_0x393ecd;logger[_0x4db2cb('0x27')](_0x4db2cb('0x4'),_0x2d2df5,_0x5a4fb4);})[_0x393ecd('0x0')](function(_0x4d20c0){const _0x1e150c=_0x393ecd;logger['info'](JSON[_0x1e150c('0x1f')](_0x4d20c0));});});},Migration[_0x276be2('0x25')][_0x276be2('0x3')]=function(_0x182ae6){const _0x128de2=_0x276be2,_0x5930f7=this;this[_0x128de2('0x8')][_0x128de2('0x1b')](function(){const _0x48c6c8=_0x128de2;return _0x5930f7[_0x48c6c8('0x1')][_0x48c6c8('0x3')](_0x182ae6,{'force':!![]})['then'](function(){const _0x17d540=_0x48c6c8;logger[_0x17d540('0x27')](_0x17d540('0x13'),_0x182ae6);})[_0x48c6c8('0x0')](function(_0x4b1f7a){const _0x3a3d33=_0x48c6c8;logger['info'](JSON[_0x3a3d33('0x1f')](_0x4b1f7a));});});},Migration[_0x276be2('0x25')]['addIndex']=function(_0x43f03b,_0x3e256a,_0x3773c8){const _0x4d7d41=_0x276be2,_0x279edb=this;this[_0x4d7d41('0x8')][_0x4d7d41('0x1b')](function(){const _0x59a775=_0x4d7d41;return _0x279edb[_0x59a775('0x1')][_0x59a775('0x14')](_0x43f03b,_0x3e256a,{'indexName':_0x3773c8})[_0x59a775('0x21')](function(){const _0x272ef0=_0x59a775;logger['info'](_0x272ef0('0x19'),_0x43f03b,_0x3e256a[_0x272ef0('0x17')](','),_0x3773c8);})[_0x59a775('0x0')](function(_0x435665){const _0x93d2f5=_0x59a775;logger[_0x93d2f5('0x27')](JSON[_0x93d2f5('0x1f')](_0x435665));});});},Migration['prototype'][_0x276be2('0x10')]=function(_0x551faa,_0x528421){const _0x3cec10=_0x276be2,_0x230ff8=this;this['sequence'][_0x3cec10('0x1b')](function(){const _0x1ca7d8=_0x3cec10;return _0x230ff8[_0x1ca7d8('0x1')]['removeIndex'](_0x551faa,_0x528421)[_0x1ca7d8('0x21')](function(){const _0x582fc1=_0x1ca7d8;logger[_0x582fc1('0x27')](_0x582fc1('0x11'),_0x551faa,_0x528421);})[_0x1ca7d8('0x0')](function(_0x844355){const _0x543fa9=_0x1ca7d8;logger['info'](JSON[_0x543fa9('0x1f')](_0x844355));});});},Migration[_0x276be2('0x25')]['query']=function(_0x654b55){const _0x2bb629=_0x276be2,_0x18b948=this;this[_0x2bb629('0x8')][_0x2bb629('0x1b')](function(){const _0x4877c7=_0x2bb629;return _0x18b948['queryInterface'][_0x4877c7('0x15')][_0x4877c7('0x23')](_0x654b55)[_0x4877c7('0x21')](function(){const _0x16f5ad=_0x4877c7;logger[_0x16f5ad('0x27')](_0x16f5ad('0x18'),_0x654b55);})[_0x4877c7('0x0')](function(_0x5839b3){const _0x58ddbd=_0x4877c7;logger[_0x58ddbd('0x27')](JSON[_0x58ddbd('0x1f')](_0x5839b3));});});},Migration[_0x276be2('0x25')][_0x276be2('0xa')]=function(_0x2ac630,_0x4ca7d6){const _0x89d175=_0x276be2,_0xb95dad=this;this[_0x89d175('0x8')][_0x89d175('0x1b')](function(){const _0x1a3522=_0x89d175;return _0xb95dad['queryInterface']['removeColumn'](_0x2ac630,_0x4ca7d6)[_0x1a3522('0x21')](function(){const _0x229254=_0x1a3522;logger[_0x229254('0x27')](_0x229254('0x16'),_0x4ca7d6,_0x2ac630);})[_0x1a3522('0x0')](function(_0x4a9ef9){const _0x17d3bc=_0x1a3522;logger[_0x17d3bc('0x27')](util[_0x17d3bc('0x1c')](_0x4a9ef9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x276be2('0x1d')]=function(_0x4c8c78,_0x3c1290,_0x4572c5){const _0x3c26f3=_0x276be2,_0x3c2be8=this;this[_0x3c26f3('0x8')]['enqueue'](function(){const _0x22a3fa=_0x3c26f3;return _0x3c2be8[_0x22a3fa('0x1')]['renameColumn'](_0x4c8c78,_0x3c1290,_0x4572c5)['then'](function(){const _0x15024d=_0x22a3fa;logger['info'](_0x15024d('0x2a'),_0x3c1290,_0x4572c5,_0x4c8c78);})[_0x22a3fa('0x0')](function(_0x173d74){const _0xbbea21=_0x22a3fa;logger['info'](util[_0xbbea21('0x1c')](_0x173d74,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x276be2('0x5')]=function(_0x5e1526){const _0x37b2b1=_0x276be2;this[_0x37b2b1('0x8')][_0x37b2b1('0x1b')](function(){return _0x5e1526();});},module['exports']={'up':function(_0x3f030a,_0x5ee958){return new Promise(function(_0x30e18f){const _0x212e1a=a952_0x56d0,_0x4f8334=new Migration(_0x3f030a);_0x4f8334['addColumn'](_0x212e1a('0x2'),'routeid',{'type':_0x5ee958[_0x212e1a('0x28')]}),_0x4f8334[_0x212e1a('0x22')](_0x212e1a('0xe'),_0x212e1a('0x7'),{'type':_0x5ee958[_0x212e1a('0xb')]}),_0x4f8334[_0x212e1a('0x22')](_0x212e1a('0xe'),_0x212e1a('0xf'),{'type':_0x5ee958[_0x212e1a('0xb')]}),_0x4f8334[_0x212e1a('0x22')](_0x212e1a('0x29'),_0x212e1a('0x7'),{'type':_0x5ee958[_0x212e1a('0xb')]}),_0x4f8334[_0x212e1a('0x22')](_0x212e1a('0x29'),'originatecalleridname',{'type':_0x5ee958[_0x212e1a('0xb')]}),_0x4f8334[_0x212e1a('0x22')](_0x212e1a('0x9'),_0x212e1a('0x1e'),{'type':_0x5ee958[_0x212e1a('0xb')]}),_0x4f8334['addColumn'](_0x212e1a('0x9'),_0x212e1a('0x12'),{'type':_0x5ee958[_0x212e1a('0xb')]}),_0x4f8334[_0x212e1a('0x5')](_0x30e18f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.74.js b/server/migrations/2.0.74.js index d34c7c0..81cd4c2 100644 --- a/server/migrations/2.0.74.js +++ b/server/migrations/2.0.74.js @@ -1 +1 @@ -const a953_0x2b71=['table\x20dropped\x20%s','final','catch','enqueue','query\x20%s','exports','tail','removeIndex','removeColumn','addIndex','util','migration','sequelize','queryInterface','then','addIndex\x20%s\x20%s\x20%s','prototype','finally','stringify','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','query','inspect','sequence','dropTable','join','info'];(function(_0x203969,_0x2b71cc){const _0x25085f=function(_0x3c40fe){while(--_0x3c40fe){_0x203969['push'](_0x203969['shift']());}};_0x25085f(++_0x2b71cc);}(a953_0x2b71,0xce));const a953_0x2508=function(_0x203969,_0x2b71cc){_0x203969=_0x203969-0x0;let _0x25085f=a953_0x2b71[_0x203969];return _0x25085f;};const _0x4129db=a953_0x2508;'use strict';const util=require(_0x4129db('0xe')),logger=require('../config/logger')(_0x4129db('0xf')),Sequence=function(){};Sequence[_0x4129db('0x14')][_0x4129db('0x7')]=function(_0x3c40fe){const _0x44991b=_0x4129db;this[_0x44991b('0xa')]=this[_0x44991b('0xa')]?this[_0x44991b('0xa')][_0x44991b('0x15')](_0x3c40fe):_0x3c40fe();};const Migration=function(_0x4ace8e){const _0x3702ad=_0x4129db;this[_0x3702ad('0x11')]=_0x4ace8e,this[_0x3702ad('0x0')]=new Sequence();};Migration[_0x4129db('0x14')]['changeColumn']=function(_0x267ef0,_0x1c520a,_0x24d61c){const _0x5753cf=_0x4129db,_0x45b7c6=this;this['sequence'][_0x5753cf('0x7')](function(){const _0x27e6e7=_0x5753cf;return _0x45b7c6['queryInterface'][_0x27e6e7('0x1a')](_0x267ef0,_0x1c520a,_0x24d61c)[_0x27e6e7('0x12')](function(){const _0x123302=_0x27e6e7;logger['info'](_0x123302('0x1b'),_0x1c520a,_0x267ef0);})['catch'](function(_0x59f1ea){const _0x3883b9=_0x27e6e7;logger['info'](JSON[_0x3883b9('0x16')](_0x59f1ea));});});},Migration[_0x4129db('0x14')][_0x4129db('0x19')]=function(_0x4e1b08,_0xe67028,_0x1c0440){const _0x127cef=this;this['sequence']['enqueue'](function(){const _0x2c22d8=a953_0x2508;return _0x127cef[_0x2c22d8('0x11')][_0x2c22d8('0x19')](_0x4e1b08,_0xe67028,_0x1c0440)[_0x2c22d8('0x12')](function(){const _0x4dd343=_0x2c22d8;logger[_0x4dd343('0x3')]('Added\x20column\x20%s\x20to\x20%s',_0xe67028,_0x4e1b08);})[_0x2c22d8('0x6')](function(_0x3d7385){const _0x19e908=_0x2c22d8;logger[_0x19e908('0x3')](JSON['stringify'](_0x3d7385));});});},Migration[_0x4129db('0x14')]['dropTable']=function(_0x3da547){const _0x2b8d38=_0x4129db,_0x6a9b33=this;this['sequence'][_0x2b8d38('0x7')](function(){const _0x4e2238=_0x2b8d38;return _0x6a9b33['queryInterface'][_0x4e2238('0x1')](_0x3da547,{'force':!![]})[_0x4e2238('0x12')](function(){const _0x47c40f=_0x4e2238;logger[_0x47c40f('0x3')](_0x47c40f('0x4'),_0x3da547);})[_0x4e2238('0x6')](function(_0x2055cf){const _0x274cf0=_0x4e2238;logger[_0x274cf0('0x3')](JSON[_0x274cf0('0x16')](_0x2055cf));});});},Migration['prototype'][_0x4129db('0xd')]=function(_0x269e35,_0x117945,_0x1ce988){const _0x52913e=_0x4129db,_0x6394b5=this;this[_0x52913e('0x0')]['enqueue'](function(){const _0xb436e6=_0x52913e;return _0x6394b5['queryInterface']['addIndex'](_0x269e35,_0x117945,{'indexName':_0x1ce988})[_0xb436e6('0x12')](function(){const _0x383c3e=_0xb436e6;logger['info'](_0x383c3e('0x13'),_0x269e35,_0x117945[_0x383c3e('0x2')](','),_0x1ce988);})['catch'](function(_0x10fad9){logger['info'](JSON['stringify'](_0x10fad9));});});},Migration[_0x4129db('0x14')][_0x4129db('0xb')]=function(_0x17479f,_0x1fc4e3){const _0x4f7ae4=_0x4129db,_0x4cc073=this;this[_0x4f7ae4('0x0')][_0x4f7ae4('0x7')](function(){const _0x1d1bd3=_0x4f7ae4;return _0x4cc073[_0x1d1bd3('0x11')][_0x1d1bd3('0xb')](_0x17479f,_0x1fc4e3)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x17479f,_0x1fc4e3);})[_0x1d1bd3('0x6')](function(_0x212e3b){const _0x2a7812=_0x1d1bd3;logger[_0x2a7812('0x3')](JSON['stringify'](_0x212e3b));});});},Migration[_0x4129db('0x14')][_0x4129db('0x1c')]=function(_0xae9a8f){const _0x1879f7=_0x4129db,_0xdf843c=this;this['sequence'][_0x1879f7('0x7')](function(){const _0x41d0ed=_0x1879f7;return _0xdf843c[_0x41d0ed('0x11')][_0x41d0ed('0x10')]['query'](_0xae9a8f)[_0x41d0ed('0x12')](function(){const _0xbe09ad=_0x41d0ed;logger[_0xbe09ad('0x3')](_0xbe09ad('0x8'),_0xae9a8f);})[_0x41d0ed('0x6')](function(_0xc7a6ee){const _0x90e286=_0x41d0ed;logger[_0x90e286('0x3')](JSON[_0x90e286('0x16')](_0xc7a6ee));});});},Migration[_0x4129db('0x14')][_0x4129db('0xc')]=function(_0x4041a4,_0x49ca59){const _0x4e640f=_0x4129db,_0xd382c3=this;this[_0x4e640f('0x0')][_0x4e640f('0x7')](function(){const _0x3eb1a8=_0x4e640f;return _0xd382c3[_0x3eb1a8('0x11')][_0x3eb1a8('0xc')](_0x4041a4,_0x49ca59)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x49ca59,_0x4041a4);})['catch'](function(_0x34e88f){const _0x32aea6=_0x3eb1a8;logger[_0x32aea6('0x3')](util['inspect'](_0x34e88f,{'showHidden':![],'depth':null}));});});},Migration[_0x4129db('0x14')]['renameColumn']=function(_0x4f01f5,_0x25104b,_0x33f79b){const _0x498620=_0x4129db,_0x238b2f=this;this[_0x498620('0x0')][_0x498620('0x7')](function(){const _0x33f78e=_0x498620;return _0x238b2f[_0x33f78e('0x11')][_0x33f78e('0x17')](_0x4f01f5,_0x25104b,_0x33f79b)[_0x33f78e('0x12')](function(){const _0x39901f=_0x33f78e;logger['info'](_0x39901f('0x18'),_0x25104b,_0x33f79b,_0x4f01f5);})[_0x33f78e('0x6')](function(_0x97cdc){const _0xba8a53=_0x33f78e;logger[_0xba8a53('0x3')](util[_0xba8a53('0x1d')](_0x97cdc,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x415dd9){const _0x3bcf71=_0x4129db;this[_0x3bcf71('0x0')]['enqueue'](function(){return _0x415dd9();});},module[_0x4129db('0x9')]={'up':function(_0x2f4f79){return new Promise(function(_0x544f2d){const _0x337541=a953_0x2508,_0x302988=new Migration(_0x2f4f79);_0x302988[_0x337541('0x5')](_0x544f2d);});},'down':function(){}}; \ No newline at end of file +const a953_0x1028=['addColumn','enqueue','Added\x20column\x20%s\x20to\x20%s','queryInterface','stringify','final','removeIndex\x20%s\x20%s','util','catch','sequelize','inspect','prototype','addIndex','sequence','join','../config/logger','addIndex\x20%s\x20%s\x20%s','query','migration','tail','finally','removeIndex','then','dropTable','table\x20dropped\x20%s','changeColumn','info'];(function(_0x431419,_0x102856){const _0xc945d4=function(_0xbd39bf){while(--_0xbd39bf){_0x431419['push'](_0x431419['shift']());}};_0xc945d4(++_0x102856);}(a953_0x1028,0x1c3));const a953_0xc945=function(_0x431419,_0x102856){_0x431419=_0x431419-0x0;let _0xc945d4=a953_0x1028[_0x431419];return _0xc945d4;};const _0x21ddbd=a953_0xc945;'use strict';const util=require(_0x21ddbd('0xf')),logger=require(_0x21ddbd('0x17'))(_0x21ddbd('0x1a')),Sequence=function(){};Sequence['prototype'][_0x21ddbd('0x9')]=function(_0xbd39bf){const _0x4f61ea=_0x21ddbd;this[_0x4f61ea('0x0')]=this[_0x4f61ea('0x0')]?this['tail'][_0x4f61ea('0x1')](_0xbd39bf):_0xbd39bf();};const Migration=function(_0x5e8e8a){const _0x28ff9d=_0x21ddbd;this[_0x28ff9d('0xb')]=_0x5e8e8a,this[_0x28ff9d('0x15')]=new Sequence();};Migration[_0x21ddbd('0x13')]['changeColumn']=function(_0x14101d,_0x1ba725,_0x33f09c){const _0x1525a5=_0x21ddbd,_0x3ad392=this;this['sequence'][_0x1525a5('0x9')](function(){const _0x3873da=_0x1525a5;return _0x3ad392['queryInterface'][_0x3873da('0x6')](_0x14101d,_0x1ba725,_0x33f09c)['then'](function(){const _0x381dc3=_0x3873da;logger[_0x381dc3('0x7')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1ba725,_0x14101d);})['catch'](function(_0x1432a2){const _0x276410=_0x3873da;logger[_0x276410('0x7')](JSON['stringify'](_0x1432a2));});});},Migration[_0x21ddbd('0x13')][_0x21ddbd('0x8')]=function(_0x5307c4,_0x5187e3,_0x3f28eb){const _0x3fceab=_0x21ddbd,_0x521b14=this;this[_0x3fceab('0x15')][_0x3fceab('0x9')](function(){const _0xc9d275=_0x3fceab;return _0x521b14['queryInterface'][_0xc9d275('0x8')](_0x5307c4,_0x5187e3,_0x3f28eb)['then'](function(){const _0x296c9d=_0xc9d275;logger['info'](_0x296c9d('0xa'),_0x5187e3,_0x5307c4);})['catch'](function(_0x1d7c5d){const _0x5b4fe4=_0xc9d275;logger[_0x5b4fe4('0x7')](JSON[_0x5b4fe4('0xc')](_0x1d7c5d));});});},Migration[_0x21ddbd('0x13')][_0x21ddbd('0x4')]=function(_0xba6d35){const _0x32d9a1=_0x21ddbd,_0x46fdee=this;this[_0x32d9a1('0x15')][_0x32d9a1('0x9')](function(){const _0x56a62e=_0x32d9a1;return _0x46fdee[_0x56a62e('0xb')][_0x56a62e('0x4')](_0xba6d35,{'force':!![]})['then'](function(){const _0x2dae8e=_0x56a62e;logger[_0x2dae8e('0x7')](_0x2dae8e('0x5'),_0xba6d35);})[_0x56a62e('0x10')](function(_0x266563){const _0x26c335=_0x56a62e;logger[_0x26c335('0x7')](JSON[_0x26c335('0xc')](_0x266563));});});},Migration['prototype']['addIndex']=function(_0x337bd4,_0x142c8f,_0xec6ba1){const _0x414ad7=_0x21ddbd,_0x444913=this;this[_0x414ad7('0x15')][_0x414ad7('0x9')](function(){const _0x103681=_0x414ad7;return _0x444913[_0x103681('0xb')][_0x103681('0x14')](_0x337bd4,_0x142c8f,{'indexName':_0xec6ba1})[_0x103681('0x3')](function(){const _0x4ccc21=_0x103681;logger[_0x4ccc21('0x7')](_0x4ccc21('0x18'),_0x337bd4,_0x142c8f[_0x4ccc21('0x16')](','),_0xec6ba1);})[_0x103681('0x10')](function(_0x1199b7){const _0x3b8a93=_0x103681;logger[_0x3b8a93('0x7')](JSON[_0x3b8a93('0xc')](_0x1199b7));});});},Migration[_0x21ddbd('0x13')][_0x21ddbd('0x2')]=function(_0xe315df,_0xb7ba04){const _0x2f4c8e=_0x21ddbd,_0x2a830b=this;this[_0x2f4c8e('0x15')][_0x2f4c8e('0x9')](function(){const _0x14f4d6=_0x2f4c8e;return _0x2a830b[_0x14f4d6('0xb')][_0x14f4d6('0x2')](_0xe315df,_0xb7ba04)['then'](function(){const _0x3bf00d=_0x14f4d6;logger[_0x3bf00d('0x7')](_0x3bf00d('0xe'),_0xe315df,_0xb7ba04);})[_0x14f4d6('0x10')](function(_0x4a2f9f){const _0x57a4a5=_0x14f4d6;logger['info'](JSON[_0x57a4a5('0xc')](_0x4a2f9f));});});},Migration[_0x21ddbd('0x13')][_0x21ddbd('0x19')]=function(_0x2e3c7c){const _0x3d4025=_0x21ddbd,_0x6c7c69=this;this[_0x3d4025('0x15')][_0x3d4025('0x9')](function(){const _0x2594bd=_0x3d4025;return _0x6c7c69['queryInterface'][_0x2594bd('0x11')][_0x2594bd('0x19')](_0x2e3c7c)[_0x2594bd('0x3')](function(){logger['info']('query\x20%s',_0x2e3c7c);})[_0x2594bd('0x10')](function(_0x1cb616){const _0x204601=_0x2594bd;logger[_0x204601('0x7')](JSON[_0x204601('0xc')](_0x1cb616));});});},Migration[_0x21ddbd('0x13')]['removeColumn']=function(_0x721e91,_0x5a0327){const _0x26d987=_0x21ddbd,_0x585ca9=this;this[_0x26d987('0x15')][_0x26d987('0x9')](function(){const _0x19f286=_0x26d987;return _0x585ca9[_0x19f286('0xb')]['removeColumn'](_0x721e91,_0x5a0327)['then'](function(){const _0x52468e=_0x19f286;logger[_0x52468e('0x7')]('Removed\x20column\x20%s\x20from\x20%s',_0x5a0327,_0x721e91);})[_0x19f286('0x10')](function(_0x9de56){const _0x41de82=_0x19f286;logger[_0x41de82('0x7')](util['inspect'](_0x9de56,{'showHidden':![],'depth':null}));});});},Migration[_0x21ddbd('0x13')]['renameColumn']=function(_0x38803d,_0x3572a6,_0x4c5955){const _0x1d09b9=_0x21ddbd,_0x42985b=this;this[_0x1d09b9('0x15')][_0x1d09b9('0x9')](function(){const _0x327496=_0x1d09b9;return _0x42985b[_0x327496('0xb')]['renameColumn'](_0x38803d,_0x3572a6,_0x4c5955)[_0x327496('0x3')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3572a6,_0x4c5955,_0x38803d);})[_0x327496('0x10')](function(_0x191386){const _0x4ee24e=_0x327496;logger[_0x4ee24e('0x7')](util[_0x4ee24e('0x12')](_0x191386,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x21ddbd('0xd')]=function(_0x54e28d){const _0x3b2ffa=_0x21ddbd;this[_0x3b2ffa('0x15')][_0x3b2ffa('0x9')](function(){return _0x54e28d();});},module['exports']={'up':function(_0x3f1861){return new Promise(function(_0x1f96a9){const _0x12ec65=a953_0xc945,_0x2df2fb=new Migration(_0x3f1861);_0x2df2fb[_0x12ec65('0xd')](_0x1f96a9);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.75.js b/server/migrations/2.0.75.js index 05dc426..987a2e4 100644 --- a/server/migrations/2.0.75.js +++ b/server/migrations/2.0.75.js @@ -1 +1 @@ -const a954_0x4959=['addIndex','enqueue','removeIndex','Added\x20column\x20%s\x20to\x20%s','tail','join','final','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','addIndex\x20%s\x20%s\x20%s','stringify','renameColumn','migration','removeColumn','Removed\x20column\x20%s\x20from\x20%s','prototype','dropTable','table\x20dropped\x20%s','query','sequelize','sequence','queryInterface','changeColumn','catch','inspect','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger'];(function(_0x399cfe,_0x495977){const _0x4da795=function(_0x22b28b){while(--_0x22b28b){_0x399cfe['push'](_0x399cfe['shift']());}};_0x4da795(++_0x495977);}(a954_0x4959,0xcd));const a954_0x4da7=function(_0x399cfe,_0x495977){_0x399cfe=_0x399cfe-0x0;let _0x4da795=a954_0x4959[_0x399cfe];return _0x4da795;};const _0x456d66=a954_0x4da7;'use strict';const util=require('util'),logger=require(_0x456d66('0x1a'))(_0x456d66('0xb')),Sequence=function(){};Sequence['prototype'][_0x456d66('0x1c')]=function(_0x22b28b){const _0x44f5ad=_0x456d66;this[_0x44f5ad('0x2')]=this[_0x44f5ad('0x2')]?this[_0x44f5ad('0x2')]['finally'](_0x22b28b):_0x22b28b();};const Migration=function(_0x2b5513){const _0x4c8fdb=_0x456d66;this[_0x4c8fdb('0x14')]=_0x2b5513,this[_0x4c8fdb('0x13')]=new Sequence();};Migration[_0x456d66('0xe')][_0x456d66('0x15')]=function(_0x53b355,_0x387913,_0x3b0852){const _0x353e6e=_0x456d66,_0x4844e0=this;this['sequence'][_0x353e6e('0x1c')](function(){const _0x5bbc4b=_0x353e6e;return _0x4844e0[_0x5bbc4b('0x14')][_0x5bbc4b('0x15')](_0x53b355,_0x387913,_0x3b0852)['then'](function(){const _0x5a756d=_0x5bbc4b;logger[_0x5a756d('0x5')](_0x5a756d('0x19'),_0x387913,_0x53b355);})[_0x5bbc4b('0x16')](function(_0x57b6c4){const _0x55c689=_0x5bbc4b;logger[_0x55c689('0x5')](JSON[_0x55c689('0x9')](_0x57b6c4));});});},Migration[_0x456d66('0xe')]['addColumn']=function(_0x544b3a,_0xf0d19f,_0x1ed890){const _0x2f8036=this;this['sequence']['enqueue'](function(){const _0x2eddc2=a954_0x4da7;return _0x2f8036[_0x2eddc2('0x14')]['addColumn'](_0x544b3a,_0xf0d19f,_0x1ed890)[_0x2eddc2('0x7')](function(){const _0x40b979=_0x2eddc2;logger[_0x40b979('0x5')](_0x40b979('0x1'),_0xf0d19f,_0x544b3a);})['catch'](function(_0x1e92fe){const _0xf3635d=_0x2eddc2;logger[_0xf3635d('0x5')](JSON['stringify'](_0x1e92fe));});});},Migration[_0x456d66('0xe')]['dropTable']=function(_0x29e367){const _0x1aa80e=_0x456d66,_0x2f4c26=this;this[_0x1aa80e('0x13')][_0x1aa80e('0x1c')](function(){const _0x3874be=_0x1aa80e;return _0x2f4c26[_0x3874be('0x14')][_0x3874be('0xf')](_0x29e367,{'force':!![]})[_0x3874be('0x7')](function(){const _0x35ce75=_0x3874be;logger[_0x35ce75('0x5')](_0x35ce75('0x10'),_0x29e367);})[_0x3874be('0x16')](function(_0x190145){const _0x3ab960=_0x3874be;logger['info'](JSON[_0x3ab960('0x9')](_0x190145));});});},Migration[_0x456d66('0xe')][_0x456d66('0x1b')]=function(_0x5e1675,_0x310e4c,_0x215ce0){const _0x476e99=_0x456d66,_0x44c867=this;this[_0x476e99('0x13')]['enqueue'](function(){const _0x178038=_0x476e99;return _0x44c867[_0x178038('0x14')]['addIndex'](_0x5e1675,_0x310e4c,{'indexName':_0x215ce0})[_0x178038('0x7')](function(){const _0x3764d0=_0x178038;logger[_0x3764d0('0x5')](_0x3764d0('0x8'),_0x5e1675,_0x310e4c[_0x3764d0('0x3')](','),_0x215ce0);})['catch'](function(_0xa18ac3){const _0x22a2ad=_0x178038;logger[_0x22a2ad('0x5')](JSON['stringify'](_0xa18ac3));});});},Migration['prototype'][_0x456d66('0x0')]=function(_0xd596dd,_0x233902){const _0x2321b8=_0x456d66,_0x232f49=this;this['sequence'][_0x2321b8('0x1c')](function(){const _0x57c2ea=_0x2321b8;return _0x232f49[_0x57c2ea('0x14')]['removeIndex'](_0xd596dd,_0x233902)[_0x57c2ea('0x7')](function(){const _0x3bc6e7=_0x57c2ea;logger['info'](_0x3bc6e7('0x18'),_0xd596dd,_0x233902);})[_0x57c2ea('0x16')](function(_0x2f7b53){const _0x2ded27=_0x57c2ea;logger[_0x2ded27('0x5')](JSON['stringify'](_0x2f7b53));});});},Migration[_0x456d66('0xe')][_0x456d66('0x11')]=function(_0x317973){const _0x3fa728=_0x456d66,_0x2e24b6=this;this['sequence'][_0x3fa728('0x1c')](function(){const _0x3e4412=_0x3fa728;return _0x2e24b6[_0x3e4412('0x14')][_0x3e4412('0x12')][_0x3e4412('0x11')](_0x317973)[_0x3e4412('0x7')](function(){const _0x50d6d9=_0x3e4412;logger[_0x50d6d9('0x5')]('query\x20%s',_0x317973);})[_0x3e4412('0x16')](function(_0xff47f6){const _0x49b8ea=_0x3e4412;logger[_0x49b8ea('0x5')](JSON[_0x49b8ea('0x9')](_0xff47f6));});});},Migration[_0x456d66('0xe')][_0x456d66('0xc')]=function(_0x7c7cd4,_0x3e8993){const _0x38ee3f=_0x456d66,_0x2eb670=this;this[_0x38ee3f('0x13')]['enqueue'](function(){const _0x2a3e13=_0x38ee3f;return _0x2eb670[_0x2a3e13('0x14')]['removeColumn'](_0x7c7cd4,_0x3e8993)[_0x2a3e13('0x7')](function(){const _0x5b88f7=_0x2a3e13;logger['info'](_0x5b88f7('0xd'),_0x3e8993,_0x7c7cd4);})[_0x2a3e13('0x16')](function(_0x511652){const _0x300f44=_0x2a3e13;logger[_0x300f44('0x5')](util[_0x300f44('0x17')](_0x511652,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x456d66('0xa')]=function(_0x3eaf1e,_0x5d1dc4,_0x114152){const _0x326530=_0x456d66,_0x33fdd0=this;this[_0x326530('0x13')][_0x326530('0x1c')](function(){const _0x75c987=_0x326530;return _0x33fdd0[_0x75c987('0x14')]['renameColumn'](_0x3eaf1e,_0x5d1dc4,_0x114152)[_0x75c987('0x7')](function(){const _0x4a1779=_0x75c987;logger['info'](_0x4a1779('0x6'),_0x5d1dc4,_0x114152,_0x3eaf1e);})['catch'](function(_0x5be365){const _0x350f9f=_0x75c987;logger[_0x350f9f('0x5')](util[_0x350f9f('0x17')](_0x5be365,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x456d66('0x4')]=function(_0x1f4937){const _0x58324f=_0x456d66;this['sequence'][_0x58324f('0x1c')](function(){return _0x1f4937();});},module['exports']={'up':function(_0x2ab0fa){return new Promise(function(_0x582076){const _0xc7924b=new Migration(_0x2ab0fa);_0xc7924b['final'](_0x582076);});},'down':function(){}}; \ No newline at end of file +const a954_0x4ac8=['Added\x20column\x20%s\x20to\x20%s','join','queryInterface','stringify','addIndex\x20%s\x20%s\x20%s','prototype','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','final','enqueue','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','migration','../config/logger','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','removeColumn','query','sequence','addIndex','inspect','info','finally','removeIndex','dropTable','renameColumn','query\x20%s','exports','catch'];(function(_0x4c342c,_0x4ac8d6){const _0x6fb319=function(_0x246aa0){while(--_0x246aa0){_0x4c342c['push'](_0x4c342c['shift']());}};_0x6fb319(++_0x4ac8d6);}(a954_0x4ac8,0x96));const a954_0x6fb3=function(_0x4c342c,_0x4ac8d6){_0x4c342c=_0x4c342c-0x0;let _0x6fb319=a954_0x4ac8[_0x4c342c];return _0x6fb319;};const _0x14345c=a954_0x6fb3;'use strict';const util=require('util'),logger=require(_0x14345c('0xe'))(_0x14345c('0xd')),Sequence=function(){};Sequence[_0x14345c('0x5')][_0x14345c('0x9')]=function(_0x246aa0){const _0x3114c0=_0x14345c;this[_0x3114c0('0x6')]=this[_0x3114c0('0x6')]?this[_0x3114c0('0x6')][_0x3114c0('0x17')](_0x246aa0):_0x246aa0();};const Migration=function(_0x163650){const _0x1a7f21=_0x14345c;this['queryInterface']=_0x163650,this[_0x1a7f21('0x13')]=new Sequence();};Migration['prototype'][_0x14345c('0xc')]=function(_0xf550c2,_0x1ec16d,_0x5cd78e){const _0x405efa=_0x14345c,_0x568f97=this;this['sequence'][_0x405efa('0x9')](function(){const _0x3fc0e5=_0x405efa;return _0x568f97[_0x3fc0e5('0x2')]['changeColumn'](_0xf550c2,_0x1ec16d,_0x5cd78e)[_0x3fc0e5('0xa')](function(){const _0x5f7f0f=_0x3fc0e5;logger['info'](_0x5f7f0f('0x7'),_0x1ec16d,_0xf550c2);})['catch'](function(_0x12d1c3){const _0x70247f=_0x3fc0e5;logger[_0x70247f('0x16')](JSON[_0x70247f('0x3')](_0x12d1c3));});});},Migration[_0x14345c('0x5')]['addColumn']=function(_0x32c971,_0x183606,_0x45edad){const _0x160ee9=_0x14345c,_0x409fc6=this;this['sequence'][_0x160ee9('0x9')](function(){const _0xcb8365=_0x160ee9;return _0x409fc6[_0xcb8365('0x2')]['addColumn'](_0x32c971,_0x183606,_0x45edad)[_0xcb8365('0xa')](function(){const _0x487ec0=_0xcb8365;logger[_0x487ec0('0x16')](_0x487ec0('0x0'),_0x183606,_0x32c971);})['catch'](function(_0x2f3197){const _0x698493=_0xcb8365;logger[_0x698493('0x16')](JSON[_0x698493('0x3')](_0x2f3197));});});},Migration[_0x14345c('0x5')][_0x14345c('0x19')]=function(_0x3fbff9){const _0x2b0af5=this;this['sequence']['enqueue'](function(){const _0x199282=a954_0x6fb3;return _0x2b0af5[_0x199282('0x2')]['dropTable'](_0x3fbff9,{'force':!![]})[_0x199282('0xa')](function(){const _0x51b4ed=_0x199282;logger[_0x51b4ed('0x16')]('table\x20dropped\x20%s',_0x3fbff9);})[_0x199282('0x1d')](function(_0x2c2042){const _0x3d3fa9=_0x199282;logger[_0x3d3fa9('0x16')](JSON[_0x3d3fa9('0x3')](_0x2c2042));});});},Migration['prototype'][_0x14345c('0x14')]=function(_0x597186,_0xe649ab,_0x31ce5f){const _0x3f3f42=_0x14345c,_0x46f260=this;this[_0x3f3f42('0x13')][_0x3f3f42('0x9')](function(){const _0x5e6fa0=_0x3f3f42;return _0x46f260[_0x5e6fa0('0x2')]['addIndex'](_0x597186,_0xe649ab,{'indexName':_0x31ce5f})['then'](function(){const _0x510146=_0x5e6fa0;logger[_0x510146('0x16')](_0x510146('0x4'),_0x597186,_0xe649ab[_0x510146('0x1')](','),_0x31ce5f);})['catch'](function(_0xfaf0d9){const _0x1b5f24=_0x5e6fa0;logger[_0x1b5f24('0x16')](JSON[_0x1b5f24('0x3')](_0xfaf0d9));});});},Migration[_0x14345c('0x5')][_0x14345c('0x18')]=function(_0x33812d,_0x13b930){const _0x30a801=this;this['sequence']['enqueue'](function(){const _0x897748=a954_0x6fb3;return _0x30a801[_0x897748('0x2')][_0x897748('0x18')](_0x33812d,_0x13b930)[_0x897748('0xa')](function(){const _0x2d87de=_0x897748;logger['info'](_0x2d87de('0x10'),_0x33812d,_0x13b930);})[_0x897748('0x1d')](function(_0x49d594){const _0x1b0f45=_0x897748;logger[_0x1b0f45('0x16')](JSON[_0x1b0f45('0x3')](_0x49d594));});});},Migration[_0x14345c('0x5')][_0x14345c('0x12')]=function(_0x2181c7){const _0x3eb0b3=_0x14345c,_0x1ebbe9=this;this[_0x3eb0b3('0x13')][_0x3eb0b3('0x9')](function(){const _0x47ee90=_0x3eb0b3;return _0x1ebbe9[_0x47ee90('0x2')]['sequelize']['query'](_0x2181c7)[_0x47ee90('0xa')](function(){const _0x42bbcd=_0x47ee90;logger[_0x42bbcd('0x16')](_0x42bbcd('0x1b'),_0x2181c7);})[_0x47ee90('0x1d')](function(_0x5e26e9){const _0xb0e5be=_0x47ee90;logger[_0xb0e5be('0x16')](JSON[_0xb0e5be('0x3')](_0x5e26e9));});});},Migration['prototype'][_0x14345c('0x11')]=function(_0x2e5855,_0x3d6352){const _0x451eaf=_0x14345c,_0x4683d8=this;this[_0x451eaf('0x13')]['enqueue'](function(){const _0x1b1f21=_0x451eaf;return _0x4683d8[_0x1b1f21('0x2')][_0x1b1f21('0x11')](_0x2e5855,_0x3d6352)['then'](function(){const _0x4c53dc=_0x1b1f21;logger['info'](_0x4c53dc('0xf'),_0x3d6352,_0x2e5855);})['catch'](function(_0x30c4b3){const _0xd9caa5=_0x1b1f21;logger[_0xd9caa5('0x16')](util['inspect'](_0x30c4b3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x14345c('0x1a')]=function(_0x4bde72,_0x5b2516,_0x2531a4){const _0x2796dc=_0x14345c,_0xcefe44=this;this['sequence'][_0x2796dc('0x9')](function(){const _0x8dcf46=_0x2796dc;return _0xcefe44['queryInterface'][_0x8dcf46('0x1a')](_0x4bde72,_0x5b2516,_0x2531a4)[_0x8dcf46('0xa')](function(){const _0x4a6f71=_0x8dcf46;logger[_0x4a6f71('0x16')](_0x4a6f71('0xb'),_0x5b2516,_0x2531a4,_0x4bde72);})[_0x8dcf46('0x1d')](function(_0x3bfb6a){const _0x490ba9=_0x8dcf46;logger[_0x490ba9('0x16')](util[_0x490ba9('0x15')](_0x3bfb6a,{'showHidden':![],'depth':null}));});});},Migration[_0x14345c('0x5')][_0x14345c('0x8')]=function(_0x5d9cf2){const _0x4ef383=_0x14345c;this[_0x4ef383('0x13')][_0x4ef383('0x9')](function(){return _0x5d9cf2();});},module[_0x14345c('0x1c')]={'up':function(_0x41bada){return new Promise(function(_0x36d17d){const _0x32a358=new Migration(_0x41bada);_0x32a358['final'](_0x36d17d);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.76.js b/server/migrations/2.0.76.js index d01a816..7e675af 100644 --- a/server/migrations/2.0.76.js +++ b/server/migrations/2.0.76.js @@ -1 +1 @@ -const a955_0x1469=['ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;','removeIndex\x20%s\x20%s','../config/logger','sequence','addIndex','ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;','Added\x20column\x20%s\x20to\x20%s','dropTable','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','sequelize','removeIndex','inspect','query','final','catch','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','enqueue','Removed\x20column\x20%s\x20from\x20%s','tail','users','query\x20%s','BOOLEAN','prototype','stringify','addColumn','then','queryInterface','join','addIndex\x20%s\x20%s\x20%s','renameColumn','info'];(function(_0x2eabd7,_0x14692e){const _0x13a270=function(_0x202f86){while(--_0x202f86){_0x2eabd7['push'](_0x2eabd7['shift']());}};_0x13a270(++_0x14692e);}(a955_0x1469,0x161));const a955_0x13a2=function(_0x2eabd7,_0x14692e){_0x2eabd7=_0x2eabd7-0x0;let _0x13a270=a955_0x1469[_0x2eabd7];return _0x13a270;};const _0x3f35da=a955_0x13a2;'use strict';const util=require('util'),logger=require(_0x3f35da('0x22'))(_0x3f35da('0xe')),Sequence=function(){};Sequence[_0x3f35da('0x17')][_0x3f35da('0x11')]=function(_0x202f86){const _0x41355d=_0x3f35da;this['tail']=this['tail']?this[_0x41355d('0x13')]['finally'](_0x202f86):_0x202f86();};const Migration=function(_0x1a59ae){const _0x137004=_0x3f35da;this['queryInterface']=_0x1a59ae,this[_0x137004('0x0')]=new Sequence();};Migration[_0x3f35da('0x17')][_0x3f35da('0x10')]=function(_0xbd57e9,_0x154bbb,_0x59c437){const _0x276013=_0x3f35da,_0x59430d=this;this[_0x276013('0x0')][_0x276013('0x11')](function(){const _0x39a15f=_0x276013;return _0x59430d[_0x39a15f('0x1b')][_0x39a15f('0x10')](_0xbd57e9,_0x154bbb,_0x59c437)[_0x39a15f('0x1a')](function(){const _0x2df4d2=_0x39a15f;logger[_0x2df4d2('0x1f')](_0x2df4d2('0x6'),_0x154bbb,_0xbd57e9);})[_0x39a15f('0xd')](function(_0xeb8b9d){const _0x5610f5=_0x39a15f;logger[_0x5610f5('0x1f')](JSON[_0x5610f5('0x18')](_0xeb8b9d));});});},Migration['prototype']['addColumn']=function(_0x1bf856,_0x80741d,_0x3adf51){const _0x46acf6=_0x3f35da,_0x37f4d5=this;this[_0x46acf6('0x0')]['enqueue'](function(){const _0x1efe56=_0x46acf6;return _0x37f4d5[_0x1efe56('0x1b')]['addColumn'](_0x1bf856,_0x80741d,_0x3adf51)[_0x1efe56('0x1a')](function(){const _0x4951f1=_0x1efe56;logger['info'](_0x4951f1('0x3'),_0x80741d,_0x1bf856);})[_0x1efe56('0xd')](function(_0x293f5c){logger['info'](JSON['stringify'](_0x293f5c));});});},Migration['prototype'][_0x3f35da('0x4')]=function(_0x32f6c4){const _0x92aa=_0x3f35da,_0x48b50d=this;this[_0x92aa('0x0')][_0x92aa('0x11')](function(){const _0x2b2962=_0x92aa;return _0x48b50d[_0x2b2962('0x1b')][_0x2b2962('0x4')](_0x32f6c4,{'force':!![]})[_0x2b2962('0x1a')](function(){const _0x5bb1b7=_0x2b2962;logger[_0x5bb1b7('0x1f')]('table\x20dropped\x20%s',_0x32f6c4);})[_0x2b2962('0xd')](function(_0x204e79){const _0x3034a2=_0x2b2962;logger[_0x3034a2('0x1f')](JSON[_0x3034a2('0x18')](_0x204e79));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0x1')]=function(_0xff6bab,_0x42b088,_0x4e9983){const _0x4d8b64=_0x3f35da,_0x2e8bdd=this;this[_0x4d8b64('0x0')][_0x4d8b64('0x11')](function(){const _0x509f46=_0x4d8b64;return _0x2e8bdd[_0x509f46('0x1b')][_0x509f46('0x1')](_0xff6bab,_0x42b088,{'indexName':_0x4e9983})['then'](function(){const _0x59a894=_0x509f46;logger[_0x59a894('0x1f')](_0x59a894('0x1d'),_0xff6bab,_0x42b088[_0x59a894('0x1c')](','),_0x4e9983);})[_0x509f46('0xd')](function(_0x5a3a7d){const _0x3631b1=_0x509f46;logger['info'](JSON[_0x3631b1('0x18')](_0x5a3a7d));});});},Migration[_0x3f35da('0x17')]['removeIndex']=function(_0x4056fb,_0x167cb8){const _0x599f51=_0x3f35da,_0x2d5a79=this;this['sequence'][_0x599f51('0x11')](function(){const _0xf064e7=_0x599f51;return _0x2d5a79[_0xf064e7('0x1b')][_0xf064e7('0x9')](_0x4056fb,_0x167cb8)[_0xf064e7('0x1a')](function(){const _0x1eebb1=_0xf064e7;logger['info'](_0x1eebb1('0x21'),_0x4056fb,_0x167cb8);})[_0xf064e7('0xd')](function(_0x6e8e0d){const _0x46f577=_0xf064e7;logger[_0x46f577('0x1f')](JSON[_0x46f577('0x18')](_0x6e8e0d));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0xb')]=function(_0x25f062){const _0x31c9c4=_0x3f35da,_0x47973b=this;this['sequence'][_0x31c9c4('0x11')](function(){const _0x2085a8=_0x31c9c4;return _0x47973b[_0x2085a8('0x1b')][_0x2085a8('0x8')][_0x2085a8('0xb')](_0x25f062)[_0x2085a8('0x1a')](function(){const _0x2bf215=_0x2085a8;logger['info'](_0x2bf215('0x15'),_0x25f062);})[_0x2085a8('0xd')](function(_0x12661b){const _0x4c32e5=_0x2085a8;logger[_0x4c32e5('0x1f')](JSON[_0x4c32e5('0x18')](_0x12661b));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0x7')]=function(_0x2e217d,_0x590ccc){const _0x1c87bf=_0x3f35da,_0x3c46e2=this;this[_0x1c87bf('0x0')][_0x1c87bf('0x11')](function(){const _0x46287e=_0x1c87bf;return _0x3c46e2['queryInterface'][_0x46287e('0x7')](_0x2e217d,_0x590ccc)['then'](function(){const _0x4f551d=_0x46287e;logger[_0x4f551d('0x1f')](_0x4f551d('0x12'),_0x590ccc,_0x2e217d);})[_0x46287e('0xd')](function(_0x84abc4){logger['info'](util['inspect'](_0x84abc4,{'showHidden':![],'depth':null}));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0x1e')]=function(_0x584ed1,_0x5beb38,_0x2968e9){const _0x429f8b=_0x3f35da,_0x2c7126=this;this['sequence'][_0x429f8b('0x11')](function(){const _0x5a613d=_0x429f8b;return _0x2c7126[_0x5a613d('0x1b')][_0x5a613d('0x1e')](_0x584ed1,_0x5beb38,_0x2968e9)[_0x5a613d('0x1a')](function(){const _0x3fae24=_0x5a613d;logger['info'](_0x3fae24('0xf'),_0x5beb38,_0x2968e9,_0x584ed1);})[_0x5a613d('0xd')](function(_0xa1b0c2){const _0x4eb588=_0x5a613d;logger[_0x4eb588('0x1f')](util[_0x4eb588('0xa')](_0xa1b0c2,{'showHidden':![],'depth':null}));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0xc')]=function(_0x3fb341){const _0x54e939=_0x3f35da;this[_0x54e939('0x0')][_0x54e939('0x11')](function(){return _0x3fb341();});},module['exports']={'up':function(_0x106e17,_0x45bb23){return new Promise(function(_0x3828a2){const _0x45d4ea=a955_0x13a2,_0x1f3948=new Migration(_0x106e17);_0x1f3948[_0x45d4ea('0xb')]('TRUNCATE\x20sessions'),_0x1f3948[_0x45d4ea('0xb')]('ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x1f3948[_0x45d4ea('0xb')](_0x45d4ea('0x20')),_0x1f3948[_0x45d4ea('0xb')](_0x45d4ea('0x5')),_0x1f3948[_0x45d4ea('0xb')](_0x45d4ea('0x2')),_0x1f3948[_0x45d4ea('0xb')]('ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x1f3948[_0x45d4ea('0x19')](_0x45d4ea('0x14'),'hotdesk',{'type':_0x45bb23[_0x45d4ea('0x16')],'defaultValue':![]}),_0x1f3948[_0x45d4ea('0xc')](_0x3828a2);});},'down':function(){}}; \ No newline at end of file +const a955_0x9a70=['Added\x20column\x20%s\x20to\x20%s','catch','ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;','final','BOOLEAN','hotdesk','addIndex','table\x20dropped\x20%s','TRUNCATE\x20sessions','dropTable','addColumn','../config/logger','changeColumn','ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;','query','info','removeIndex\x20%s\x20%s','removeColumn','removeIndex','join','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','renameColumn','exports','sequelize','stringify','Removed\x20column\x20%s\x20from\x20%s','then','sequence','migration','users','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue'];(function(_0x55e574,_0x9a70d){const _0x2f137e=function(_0x58c905){while(--_0x58c905){_0x55e574['push'](_0x55e574['shift']());}};_0x2f137e(++_0x9a70d);}(a955_0x9a70,0x139));const a955_0x2f13=function(_0x55e574,_0x9a70d){_0x55e574=_0x55e574-0x0;let _0x2f137e=a955_0x9a70[_0x55e574];return _0x2f137e;};const _0x167cff=a955_0x2f13;'use strict';const util=require('util'),logger=require(_0x167cff('0x1f'))(_0x167cff('0xf')),Sequence=function(){};Sequence['prototype'][_0x167cff('0x13')]=function(_0x58c905){const _0x3bbba4=_0x167cff;this[_0x3bbba4('0x5')]=this[_0x3bbba4('0x5')]?this[_0x3bbba4('0x5')]['finally'](_0x58c905):_0x58c905();};const Migration=function(_0x333622){const _0x43a7ce=_0x167cff;this[_0x43a7ce('0x11')]=_0x333622,this[_0x43a7ce('0xe')]=new Sequence();};Migration[_0x167cff('0x7')][_0x167cff('0x20')]=function(_0x49dff0,_0x3bac4f,_0xdb1e0){const _0x487563=_0x167cff,_0x1bb10d=this;this[_0x487563('0xe')][_0x487563('0x13')](function(){const _0x24c654=_0x487563;return _0x1bb10d[_0x24c654('0x11')][_0x24c654('0x20')](_0x49dff0,_0x3bac4f,_0xdb1e0)['then'](function(){const _0x27b347=_0x24c654;logger[_0x27b347('0x24')](_0x27b347('0x6'),_0x3bac4f,_0x49dff0);})['catch'](function(_0x5da28c){const _0x3964f5=_0x24c654;logger['info'](JSON[_0x3964f5('0xb')](_0x5da28c));});});},Migration[_0x167cff('0x7')][_0x167cff('0x1e')]=function(_0x10a9fd,_0x52646a,_0x2818a1){const _0x2e36a8=_0x167cff,_0x162646=this;this[_0x2e36a8('0xe')][_0x2e36a8('0x13')](function(){const _0x900f1=_0x2e36a8;return _0x162646[_0x900f1('0x11')][_0x900f1('0x1e')](_0x10a9fd,_0x52646a,_0x2818a1)[_0x900f1('0xd')](function(){const _0x43e7c6=_0x900f1;logger[_0x43e7c6('0x24')](_0x43e7c6('0x14'),_0x52646a,_0x10a9fd);})['catch'](function(_0x2c4355){const _0x1c0e82=_0x900f1;logger[_0x1c0e82('0x24')](JSON['stringify'](_0x2c4355));});});},Migration[_0x167cff('0x7')][_0x167cff('0x1d')]=function(_0x14e32d){const _0x4c090c=_0x167cff,_0x5c3532=this;this[_0x4c090c('0xe')][_0x4c090c('0x13')](function(){const _0x4d552b=_0x4c090c;return _0x5c3532[_0x4d552b('0x11')][_0x4d552b('0x1d')](_0x14e32d,{'force':!![]})[_0x4d552b('0xd')](function(){const _0x4701c3=_0x4d552b;logger[_0x4701c3('0x24')](_0x4701c3('0x1b'),_0x14e32d);})[_0x4d552b('0x15')](function(_0x17e4f7){const _0x167f79=_0x4d552b;logger[_0x167f79('0x24')](JSON[_0x167f79('0xb')](_0x17e4f7));});});},Migration['prototype'][_0x167cff('0x1a')]=function(_0xc1f439,_0x1f8830,_0x581536){const _0x4eed28=_0x167cff,_0x3cc926=this;this[_0x4eed28('0xe')]['enqueue'](function(){const _0x30867c=_0x4eed28;return _0x3cc926['queryInterface'][_0x30867c('0x1a')](_0xc1f439,_0x1f8830,{'indexName':_0x581536})[_0x30867c('0xd')](function(){const _0x124e56=_0x30867c;logger[_0x124e56('0x24')]('addIndex\x20%s\x20%s\x20%s',_0xc1f439,_0x1f8830[_0x124e56('0x3')](','),_0x581536);})[_0x30867c('0x15')](function(_0x7472c4){const _0x22ac0e=_0x30867c;logger['info'](JSON[_0x22ac0e('0xb')](_0x7472c4));});});},Migration[_0x167cff('0x7')][_0x167cff('0x2')]=function(_0x97af0,_0x384a5a){const _0x394345=_0x167cff,_0x5a58b6=this;this[_0x394345('0xe')]['enqueue'](function(){return _0x5a58b6['queryInterface']['removeIndex'](_0x97af0,_0x384a5a)['then'](function(){const _0x37a276=a955_0x2f13;logger[_0x37a276('0x24')](_0x37a276('0x0'),_0x97af0,_0x384a5a);})['catch'](function(_0x13967a){const _0x186ce4=a955_0x2f13;logger[_0x186ce4('0x24')](JSON[_0x186ce4('0xb')](_0x13967a));});});},Migration['prototype'][_0x167cff('0x23')]=function(_0x51865c){const _0x292928=_0x167cff,_0x44392e=this;this['sequence'][_0x292928('0x13')](function(){const _0x5cde77=_0x292928;return _0x44392e[_0x5cde77('0x11')][_0x5cde77('0xa')][_0x5cde77('0x23')](_0x51865c)['then'](function(){logger['info']('query\x20%s',_0x51865c);})[_0x5cde77('0x15')](function(_0x29088e){logger['info'](JSON['stringify'](_0x29088e));});});},Migration[_0x167cff('0x7')][_0x167cff('0x1')]=function(_0x48d43f,_0x5ef3a7){const _0x17d4e7=_0x167cff,_0x2960e7=this;this[_0x17d4e7('0xe')]['enqueue'](function(){const _0x9b7a3f=_0x17d4e7;return _0x2960e7[_0x9b7a3f('0x11')]['removeColumn'](_0x48d43f,_0x5ef3a7)[_0x9b7a3f('0xd')](function(){const _0x3452a8=_0x9b7a3f;logger['info'](_0x3452a8('0xc'),_0x5ef3a7,_0x48d43f);})[_0x9b7a3f('0x15')](function(_0x583a0a){const _0x32dffa=_0x9b7a3f;logger[_0x32dffa('0x24')](util['inspect'](_0x583a0a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x167cff('0x8')]=function(_0x5c048b,_0x55de69,_0x3cd5c3){const _0x67de0=_0x167cff,_0x2a590c=this;this[_0x67de0('0xe')][_0x67de0('0x13')](function(){const _0x31fa99=_0x67de0;return _0x2a590c['queryInterface'][_0x31fa99('0x8')](_0x5c048b,_0x55de69,_0x3cd5c3)[_0x31fa99('0xd')](function(){const _0x48b605=_0x31fa99;logger[_0x48b605('0x24')](_0x48b605('0x12'),_0x55de69,_0x3cd5c3,_0x5c048b);})[_0x31fa99('0x15')](function(_0x47ab0c){const _0x1db38c=_0x31fa99;logger[_0x1db38c('0x24')](util['inspect'](_0x47ab0c,{'showHidden':![],'depth':null}));});});},Migration[_0x167cff('0x7')][_0x167cff('0x17')]=function(_0x48d934){const _0x4882be=_0x167cff;this[_0x4882be('0xe')][_0x4882be('0x13')](function(){return _0x48d934();});},module[_0x167cff('0x9')]={'up':function(_0x2007f5,_0x445668){return new Promise(function(_0x1db6b3){const _0xb74a09=a955_0x2f13,_0x4199ac=new Migration(_0x2007f5);_0x4199ac['query'](_0xb74a09('0x1c')),_0x4199ac[_0xb74a09('0x23')](_0xb74a09('0x21')),_0x4199ac[_0xb74a09('0x23')](_0xb74a09('0x22')),_0x4199ac[_0xb74a09('0x23')](_0xb74a09('0x4')),_0x4199ac[_0xb74a09('0x23')]('ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x4199ac[_0xb74a09('0x23')](_0xb74a09('0x16')),_0x4199ac['addColumn'](_0xb74a09('0x10'),_0xb74a09('0x19'),{'type':_0x445668[_0xb74a09('0x18')],'defaultValue':![]}),_0x4199ac['final'](_0x1db6b3);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.77.js b/server/migrations/2.0.77.js index e25915e..33119e0 100644 --- a/server/migrations/2.0.77.js +++ b/server/migrations/2.0.77.js @@ -1 +1 @@ -const a956_0x1cb4=['BOOLEAN','../config/logger','inspect','renameColumn','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','addIndex\x20%s\x20%s\x20%s','info','prototype','privacyEnabled','users','interface','removeIndex','removeIndex\x20%s\x20%s','sequence','query','enqueue','table\x20dropped\x20%s','addColumn','report_square','addIndex','removeColumn','stringify','finally','STRING','join','final','query\x20%s','dropTable','Removed\x20column\x20%s\x20from\x20%s','changeColumn','then','bot','util','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','catch'];(function(_0x4dc09b,_0x1cb44c){const _0x11689a=function(_0x4c3177){while(--_0x4c3177){_0x4dc09b['push'](_0x4dc09b['shift']());}};_0x11689a(++_0x1cb44c);}(a956_0x1cb4,0x160));const a956_0x1168=function(_0x4dc09b,_0x1cb44c){_0x4dc09b=_0x4dc09b-0x0;let _0x11689a=a956_0x1cb4[_0x4dc09b];return _0x11689a;};const _0x14108f=a956_0x1168;'use strict';const util=require(_0x14108f('0x21')),logger=require(_0x14108f('0x0'))(_0x14108f('0x24')),Sequence=function(){};Sequence['prototype'][_0x14108f('0x10')]=function(_0x4c3177){const _0x12bbae=_0x14108f;this['tail']=this['tail']?this[_0x12bbae('0x5')][_0x12bbae('0x17')](_0x4c3177):_0x4c3177();};const Migration=function(_0x3eb88c){const _0x489c27=_0x14108f;this[_0x489c27('0x3')]=_0x3eb88c,this[_0x489c27('0xe')]=new Sequence();};Migration[_0x14108f('0x8')]['changeColumn']=function(_0x59c52c,_0x2ad19b,_0x7868c0){const _0x391001=_0x14108f,_0x567997=this;this[_0x391001('0xe')]['enqueue'](function(){const _0x32380b=_0x391001;return _0x567997[_0x32380b('0x3')][_0x32380b('0x1e')](_0x59c52c,_0x2ad19b,_0x7868c0)[_0x32380b('0x1f')](function(){const _0x2fd17f=_0x32380b;logger['info'](_0x2fd17f('0x23'),_0x2ad19b,_0x59c52c);})['catch'](function(_0x51b50f){const _0x55c542=_0x32380b;logger[_0x55c542('0x7')](JSON[_0x55c542('0x16')](_0x51b50f));});});},Migration[_0x14108f('0x8')][_0x14108f('0x12')]=function(_0x2592d9,_0x486c0d,_0x1242ac){const _0x3c12e4=_0x14108f,_0x277f04=this;this[_0x3c12e4('0xe')][_0x3c12e4('0x10')](function(){const _0x569078=_0x3c12e4;return _0x277f04[_0x569078('0x3')][_0x569078('0x12')](_0x2592d9,_0x486c0d,_0x1242ac)[_0x569078('0x1f')](function(){const _0x1c913b=_0x569078;logger[_0x1c913b('0x7')](_0x1c913b('0x22'),_0x486c0d,_0x2592d9);})['catch'](function(_0x342b2d){const _0x2888a2=_0x569078;logger[_0x2888a2('0x7')](JSON['stringify'](_0x342b2d));});});},Migration[_0x14108f('0x8')][_0x14108f('0x1c')]=function(_0x354b0f){const _0x9b61b6=_0x14108f,_0x126f5e=this;this[_0x9b61b6('0xe')][_0x9b61b6('0x10')](function(){const _0x4976a7=_0x9b61b6;return _0x126f5e['queryInterface'][_0x4976a7('0x1c')](_0x354b0f,{'force':!![]})[_0x4976a7('0x1f')](function(){const _0x42e998=_0x4976a7;logger[_0x42e998('0x7')](_0x42e998('0x11'),_0x354b0f);})['catch'](function(_0x529466){const _0x168186=_0x4976a7;logger[_0x168186('0x7')](JSON[_0x168186('0x16')](_0x529466));});});},Migration['prototype']['addIndex']=function(_0x54fb47,_0xc3c8c9,_0x55f588){const _0xea125a=_0x14108f,_0xce770c=this;this[_0xea125a('0xe')][_0xea125a('0x10')](function(){const _0x19d93e=_0xea125a;return _0xce770c[_0x19d93e('0x3')][_0x19d93e('0x14')](_0x54fb47,_0xc3c8c9,{'indexName':_0x55f588})[_0x19d93e('0x1f')](function(){const _0x227ab4=_0x19d93e;logger[_0x227ab4('0x7')](_0x227ab4('0x6'),_0x54fb47,_0xc3c8c9[_0x227ab4('0x19')](','),_0x55f588);})['catch'](function(_0x549826){const _0x33f2f0=_0x19d93e;logger[_0x33f2f0('0x7')](JSON[_0x33f2f0('0x16')](_0x549826));});});},Migration[_0x14108f('0x8')][_0x14108f('0xc')]=function(_0x395e2b,_0xfc892c){const _0x90a6ee=_0x14108f,_0x22f38e=this;this[_0x90a6ee('0xe')]['enqueue'](function(){const _0x4f9d1d=_0x90a6ee;return _0x22f38e['queryInterface']['removeIndex'](_0x395e2b,_0xfc892c)[_0x4f9d1d('0x1f')](function(){const _0x171433=_0x4f9d1d;logger[_0x171433('0x7')](_0x171433('0xd'),_0x395e2b,_0xfc892c);})[_0x4f9d1d('0x25')](function(_0x39788f){const _0x1e0bd9=_0x4f9d1d;logger[_0x1e0bd9('0x7')](JSON[_0x1e0bd9('0x16')](_0x39788f));});});},Migration[_0x14108f('0x8')][_0x14108f('0xf')]=function(_0xfa8104){const _0x4520b2=_0x14108f,_0x34a977=this;this[_0x4520b2('0xe')][_0x4520b2('0x10')](function(){const _0x2ebd2a=_0x4520b2;return _0x34a977[_0x2ebd2a('0x3')]['sequelize'][_0x2ebd2a('0xf')](_0xfa8104)[_0x2ebd2a('0x1f')](function(){const _0x5bdc83=_0x2ebd2a;logger['info'](_0x5bdc83('0x1b'),_0xfa8104);})[_0x2ebd2a('0x25')](function(_0x510095){const _0x4c4d4c=_0x2ebd2a;logger[_0x4c4d4c('0x7')](JSON[_0x4c4d4c('0x16')](_0x510095));});});},Migration[_0x14108f('0x8')]['removeColumn']=function(_0x320732,_0x1045df){const _0x1c6b9b=_0x14108f,_0x31422e=this;this[_0x1c6b9b('0xe')][_0x1c6b9b('0x10')](function(){const _0x24c88e=_0x1c6b9b;return _0x31422e[_0x24c88e('0x3')][_0x24c88e('0x15')](_0x320732,_0x1045df)[_0x24c88e('0x1f')](function(){const _0x313c96=_0x24c88e;logger[_0x313c96('0x7')](_0x313c96('0x1d'),_0x1045df,_0x320732);})[_0x24c88e('0x25')](function(_0x2fbd5a){const _0x12c097=_0x24c88e;logger['info'](util[_0x12c097('0x1')](_0x2fbd5a,{'showHidden':![],'depth':null}));});});},Migration[_0x14108f('0x8')][_0x14108f('0x2')]=function(_0x209d21,_0x100204,_0x183bbe){const _0x3258a3=_0x14108f,_0x4f780e=this;this[_0x3258a3('0xe')][_0x3258a3('0x10')](function(){const _0x1a0d41=_0x3258a3;return _0x4f780e[_0x1a0d41('0x3')][_0x1a0d41('0x2')](_0x209d21,_0x100204,_0x183bbe)['then'](function(){const _0x5242f9=_0x1a0d41;logger[_0x5242f9('0x7')](_0x5242f9('0x4'),_0x100204,_0x183bbe,_0x209d21);})[_0x1a0d41('0x25')](function(_0x4e94a1){const _0x44a7f1=_0x1a0d41;logger[_0x44a7f1('0x7')](util[_0x44a7f1('0x1')](_0x4e94a1,{'showHidden':![],'depth':null}));});});},Migration[_0x14108f('0x8')]['final']=function(_0x5627ae){const _0x58dd76=_0x14108f;this[_0x58dd76('0xe')][_0x58dd76('0x10')](function(){return _0x5627ae();});},module['exports']={'up':function(_0xc5f03a,_0x459345){return new Promise(function(_0x4e098f){const _0x17bd5b=a956_0x1168,_0x2ebee9=new Migration(_0xc5f03a);_0x2ebee9['addColumn'](_0x17bd5b('0x13'),_0x17bd5b('0x20'),{'type':_0x459345[_0x17bd5b('0x26')],'defaultValue':![]}),_0x2ebee9[_0x17bd5b('0x12')]('users',_0x17bd5b('0xb'),{'type':_0x459345[_0x17bd5b('0x18')],'defaultValue':null}),_0x2ebee9[_0x17bd5b('0x12')](_0x17bd5b('0xa'),_0x17bd5b('0x9'),{'type':_0x459345['BOOLEAN'],'defaultValue':![]}),_0x2ebee9[_0x17bd5b('0x1a')](_0x4e098f);});},'down':function(){}}; \ No newline at end of file +const a956_0x2093=['info','exports','catch','stringify','interface','prototype','migration','STRING','tail','removeIndex','finally','addColumn','then','sequence','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','addIndex\x20%s\x20%s\x20%s','removeIndex\x20%s\x20%s','bot','report_square','addIndex','dropTable','BOOLEAN','changeColumn','users','query','join','renameColumn','queryInterface','../config/logger','privacyEnabled','inspect','enqueue'];(function(_0x2b2d8c,_0x2093fd){const _0x439f6d=function(_0x2a4839){while(--_0x2a4839){_0x2b2d8c['push'](_0x2b2d8c['shift']());}};_0x439f6d(++_0x2093fd);}(a956_0x2093,0xc7));const a956_0x439f=function(_0x2b2d8c,_0x2093fd){_0x2b2d8c=_0x2b2d8c-0x0;let _0x439f6d=a956_0x2093[_0x2b2d8c];return _0x439f6d;};const _0x5b9681=a956_0x439f;'use strict';const util=require('util'),logger=require(_0x5b9681('0x1'))(_0x5b9681('0xb')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x2a4839){const _0x54469e=_0x5b9681;this[_0x54469e('0xd')]=this[_0x54469e('0xd')]?this['tail'][_0x54469e('0xf')](_0x2a4839):_0x2a4839();};const Migration=function(_0x56f2fe){const _0x2f447d=_0x5b9681;this[_0x2f447d('0x0')]=_0x56f2fe,this[_0x2f447d('0x12')]=new Sequence();};Migration['prototype'][_0x5b9681('0x1d')]=function(_0x45d5ae,_0x13f0a9,_0x46b28d){const _0x2183e1=this;this['sequence']['enqueue'](function(){const _0x1172aa=a956_0x439f;return _0x2183e1[_0x1172aa('0x0')]['changeColumn'](_0x45d5ae,_0x13f0a9,_0x46b28d)[_0x1172aa('0x11')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x13f0a9,_0x45d5ae);})[_0x1172aa('0x7')](function(_0x92fd79){const _0x5e8fc7=_0x1172aa;logger[_0x5e8fc7('0x5')](JSON['stringify'](_0x92fd79));});});},Migration[_0x5b9681('0xa')][_0x5b9681('0x10')]=function(_0x5e1a60,_0x5854b0,_0x227f2b){const _0x5a0fec=_0x5b9681,_0x105bbb=this;this[_0x5a0fec('0x12')]['enqueue'](function(){const _0x4d2520=_0x5a0fec;return _0x105bbb[_0x4d2520('0x0')][_0x4d2520('0x10')](_0x5e1a60,_0x5854b0,_0x227f2b)['then'](function(){const _0x4d18c5=_0x4d2520;logger[_0x4d18c5('0x5')]('Added\x20column\x20%s\x20to\x20%s',_0x5854b0,_0x5e1a60);})[_0x4d2520('0x7')](function(_0x2bad18){const _0x33b4f6=_0x4d2520;logger[_0x33b4f6('0x5')](JSON['stringify'](_0x2bad18));});});},Migration[_0x5b9681('0xa')][_0x5b9681('0x1b')]=function(_0x2e3f10){const _0x1c21be=_0x5b9681,_0x3343f9=this;this['sequence'][_0x1c21be('0x4')](function(){const _0xc4860d=_0x1c21be;return _0x3343f9[_0xc4860d('0x0')][_0xc4860d('0x1b')](_0x2e3f10,{'force':!![]})[_0xc4860d('0x11')](function(){logger['info']('table\x20dropped\x20%s',_0x2e3f10);})[_0xc4860d('0x7')](function(_0x4e09e4){const _0x4a2031=_0xc4860d;logger[_0x4a2031('0x5')](JSON[_0x4a2031('0x8')](_0x4e09e4));});});},Migration[_0x5b9681('0xa')][_0x5b9681('0x1a')]=function(_0x52ab78,_0x12c44f,_0xbbd537){const _0x4a97ee=_0x5b9681,_0x33d596=this;this['sequence'][_0x4a97ee('0x4')](function(){const _0x1666b1=_0x4a97ee;return _0x33d596[_0x1666b1('0x0')]['addIndex'](_0x52ab78,_0x12c44f,{'indexName':_0xbbd537})['then'](function(){const _0x4901da=_0x1666b1;logger['info'](_0x4901da('0x16'),_0x52ab78,_0x12c44f[_0x4901da('0x20')](','),_0xbbd537);})['catch'](function(_0x12bacd){const _0x2ac876=_0x1666b1;logger[_0x2ac876('0x5')](JSON[_0x2ac876('0x8')](_0x12bacd));});});},Migration[_0x5b9681('0xa')][_0x5b9681('0xe')]=function(_0x458620,_0x5ed82a){const _0x17f7fb=this;this['sequence']['enqueue'](function(){const _0x5b396b=a956_0x439f;return _0x17f7fb[_0x5b396b('0x0')][_0x5b396b('0xe')](_0x458620,_0x5ed82a)[_0x5b396b('0x11')](function(){const _0x18aabd=_0x5b396b;logger[_0x18aabd('0x5')](_0x18aabd('0x17'),_0x458620,_0x5ed82a);})[_0x5b396b('0x7')](function(_0x4a6a40){const _0x95c09=_0x5b396b;logger[_0x95c09('0x5')](JSON['stringify'](_0x4a6a40));});});},Migration[_0x5b9681('0xa')][_0x5b9681('0x1f')]=function(_0x578180){const _0x22ce31=_0x5b9681,_0xc3560d=this;this[_0x22ce31('0x12')][_0x22ce31('0x4')](function(){const _0xbec618=_0x22ce31;return _0xc3560d[_0xbec618('0x0')]['sequelize'][_0xbec618('0x1f')](_0x578180)[_0xbec618('0x11')](function(){const _0x3a0c08=_0xbec618;logger[_0x3a0c08('0x5')]('query\x20%s',_0x578180);})[_0xbec618('0x7')](function(_0x1c5eb8){const _0x3f33db=_0xbec618;logger[_0x3f33db('0x5')](JSON[_0x3f33db('0x8')](_0x1c5eb8));});});},Migration['prototype'][_0x5b9681('0x15')]=function(_0x3dd526,_0x247908){const _0x777411=_0x5b9681,_0x484b33=this;this[_0x777411('0x12')][_0x777411('0x4')](function(){const _0x32d43e=_0x777411;return _0x484b33[_0x32d43e('0x0')]['removeColumn'](_0x3dd526,_0x247908)[_0x32d43e('0x11')](function(){const _0x2d9d5c=_0x32d43e;logger[_0x2d9d5c('0x5')]('Removed\x20column\x20%s\x20from\x20%s',_0x247908,_0x3dd526);})[_0x32d43e('0x7')](function(_0x3e59c9){const _0x2aae0e=_0x32d43e;logger[_0x2aae0e('0x5')](util[_0x2aae0e('0x3')](_0x3e59c9,{'showHidden':![],'depth':null}));});});},Migration[_0x5b9681('0xa')]['renameColumn']=function(_0x493610,_0x3209a5,_0x1224d7){const _0x452017=_0x5b9681,_0x1c6b07=this;this[_0x452017('0x12')][_0x452017('0x4')](function(){const _0x394070=_0x452017;return _0x1c6b07[_0x394070('0x0')][_0x394070('0x21')](_0x493610,_0x3209a5,_0x1224d7)[_0x394070('0x11')](function(){const _0x26d34d=_0x394070;logger[_0x26d34d('0x5')](_0x26d34d('0x14'),_0x3209a5,_0x1224d7,_0x493610);})[_0x394070('0x7')](function(_0x3f08a6){const _0x1225f6=_0x394070;logger[_0x1225f6('0x5')](util[_0x1225f6('0x3')](_0x3f08a6,{'showHidden':![],'depth':null}));});});},Migration[_0x5b9681('0xa')][_0x5b9681('0x13')]=function(_0x3bfa92){const _0x4a0c14=_0x5b9681;this[_0x4a0c14('0x12')]['enqueue'](function(){return _0x3bfa92();});},module[_0x5b9681('0x6')]={'up':function(_0x3c8ef7,_0x3dc506){return new Promise(function(_0x200a53){const _0x2292f0=a956_0x439f,_0x178488=new Migration(_0x3c8ef7);_0x178488[_0x2292f0('0x10')](_0x2292f0('0x19'),_0x2292f0('0x18'),{'type':_0x3dc506[_0x2292f0('0x1c')],'defaultValue':![]}),_0x178488[_0x2292f0('0x10')](_0x2292f0('0x1e'),_0x2292f0('0x9'),{'type':_0x3dc506[_0x2292f0('0xc')],'defaultValue':null}),_0x178488['addColumn']('users',_0x2292f0('0x2'),{'type':_0x3dc506[_0x2292f0('0x1c')],'defaultValue':![]}),_0x178488[_0x2292f0('0x13')](_0x200a53);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.78.js b/server/migrations/2.0.78.js index 92e322e..72cf09e 100644 --- a/server/migrations/2.0.78.js +++ b/server/migrations/2.0.78.js @@ -1 +1 @@ -const a957_0x2e05=['stringify','join','then','catch','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','changeColumn','removeIndex','queryInterface','prototype','sequence','addColumn','../config/logger','util','tail','Added\x20column\x20%s\x20to\x20%s','addIndex','sequelize','final','finally','inspect','enqueue','Removed\x20column\x20%s\x20from\x20%s','info','query','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','removeColumn','renameColumn','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;'];(function(_0x43cd72,_0x2e051d){const _0x12b319=function(_0x15eaec){while(--_0x15eaec){_0x43cd72['push'](_0x43cd72['shift']());}};_0x12b319(++_0x2e051d);}(a957_0x2e05,0x1c7));const a957_0x12b3=function(_0x43cd72,_0x2e051d){_0x43cd72=_0x43cd72-0x0;let _0x12b319=a957_0x2e05[_0x43cd72];return _0x12b319;};const _0x360c4b=a957_0x12b3;'use strict';const util=require(_0x360c4b('0x18')),logger=require(_0x360c4b('0x17'))('migration'),Sequence=function(){};Sequence['prototype'][_0x360c4b('0x1')]=function(_0x15eaec){const _0x3c11d5=_0x360c4b;this[_0x3c11d5('0x19')]=this[_0x3c11d5('0x19')]?this[_0x3c11d5('0x19')][_0x3c11d5('0x1e')](_0x15eaec):_0x15eaec();};const Migration=function(_0x247ea3){const _0x18fa02=_0x360c4b;this[_0x18fa02('0x13')]=_0x247ea3,this['sequence']=new Sequence();};Migration[_0x360c4b('0x14')][_0x360c4b('0x11')]=function(_0x5a47b3,_0xbe635b,_0x2e717b){const _0x380682=_0x360c4b,_0x3ce038=this;this[_0x380682('0x15')][_0x380682('0x1')](function(){const _0x107365=_0x380682;return _0x3ce038[_0x107365('0x13')]['changeColumn'](_0x5a47b3,_0xbe635b,_0x2e717b)[_0x107365('0xc')](function(){const _0x2a951a=_0x107365;logger[_0x2a951a('0x3')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xbe635b,_0x5a47b3);})[_0x107365('0xd')](function(_0x5040db){const _0x5ac9fe=_0x107365;logger['info'](JSON[_0x5ac9fe('0xa')](_0x5040db));});});},Migration[_0x360c4b('0x14')][_0x360c4b('0x16')]=function(_0x1542ba,_0x1c9aad,_0x32232d){const _0x517738=_0x360c4b,_0x4299ed=this;this[_0x517738('0x15')][_0x517738('0x1')](function(){const _0x5aba1d=_0x517738;return _0x4299ed[_0x5aba1d('0x13')][_0x5aba1d('0x16')](_0x1542ba,_0x1c9aad,_0x32232d)[_0x5aba1d('0xc')](function(){const _0x392a91=_0x5aba1d;logger[_0x392a91('0x3')](_0x392a91('0x1a'),_0x1c9aad,_0x1542ba);})[_0x5aba1d('0xd')](function(_0x1ac3f3){const _0x2ea83f=_0x5aba1d;logger['info'](JSON[_0x2ea83f('0xa')](_0x1ac3f3));});});},Migration[_0x360c4b('0x14')][_0x360c4b('0xe')]=function(_0x4d82c4){const _0x344ec4=_0x360c4b,_0x4bea7=this;this[_0x344ec4('0x15')][_0x344ec4('0x1')](function(){const _0xd5ef5d=_0x344ec4;return _0x4bea7[_0xd5ef5d('0x13')][_0xd5ef5d('0xe')](_0x4d82c4,{'force':!![]})[_0xd5ef5d('0xc')](function(){const _0x48917d=_0xd5ef5d;logger['info'](_0x48917d('0x6'),_0x4d82c4);})['catch'](function(_0x5db3b8){const _0x19e199=_0xd5ef5d;logger[_0x19e199('0x3')](JSON[_0x19e199('0xa')](_0x5db3b8));});});},Migration[_0x360c4b('0x14')][_0x360c4b('0x1b')]=function(_0x283d6a,_0x4ccd5a,_0x301036){const _0xefe87f=_0x360c4b,_0x161a8b=this;this[_0xefe87f('0x15')][_0xefe87f('0x1')](function(){const _0x666426=_0xefe87f;return _0x161a8b[_0x666426('0x13')][_0x666426('0x1b')](_0x283d6a,_0x4ccd5a,{'indexName':_0x301036})[_0x666426('0xc')](function(){const _0x18d1d7=_0x666426;logger[_0x18d1d7('0x3')](_0x18d1d7('0x5'),_0x283d6a,_0x4ccd5a[_0x18d1d7('0xb')](','),_0x301036);})[_0x666426('0xd')](function(_0x1b5458){const _0x10e282=_0x666426;logger[_0x10e282('0x3')](JSON[_0x10e282('0xa')](_0x1b5458));});});},Migration[_0x360c4b('0x14')][_0x360c4b('0x12')]=function(_0xa9d7b9,_0x522816){const _0x3a2010=_0x360c4b,_0x403d56=this;this[_0x3a2010('0x15')][_0x3a2010('0x1')](function(){const _0x2029d3=_0x3a2010;return _0x403d56[_0x2029d3('0x13')][_0x2029d3('0x12')](_0xa9d7b9,_0x522816)['then'](function(){const _0x474f64=_0x2029d3;logger[_0x474f64('0x3')]('removeIndex\x20%s\x20%s',_0xa9d7b9,_0x522816);})['catch'](function(_0x5019f8){const _0x5259c4=_0x2029d3;logger[_0x5259c4('0x3')](JSON['stringify'](_0x5019f8));});});},Migration['prototype']['query']=function(_0xd8ca7a){const _0x10d3e9=_0x360c4b,_0x41f88c=this;this[_0x10d3e9('0x15')][_0x10d3e9('0x1')](function(){const _0x4945d7=_0x10d3e9;return _0x41f88c[_0x4945d7('0x13')][_0x4945d7('0x1c')]['query'](_0xd8ca7a)[_0x4945d7('0xc')](function(){const _0x22fa20=_0x4945d7;logger[_0x22fa20('0x3')](_0x22fa20('0x10'),_0xd8ca7a);})[_0x4945d7('0xd')](function(_0x3c8f44){const _0x47c13d=_0x4945d7;logger[_0x47c13d('0x3')](JSON[_0x47c13d('0xa')](_0x3c8f44));});});},Migration[_0x360c4b('0x14')][_0x360c4b('0x7')]=function(_0x9bfbd0,_0x187862){const _0x15a4dc=_0x360c4b,_0x4d7d25=this;this[_0x15a4dc('0x15')][_0x15a4dc('0x1')](function(){const _0x5523c4=_0x15a4dc;return _0x4d7d25[_0x5523c4('0x13')][_0x5523c4('0x7')](_0x9bfbd0,_0x187862)['then'](function(){const _0x5a783e=_0x5523c4;logger[_0x5a783e('0x3')](_0x5a783e('0x2'),_0x187862,_0x9bfbd0);})[_0x5523c4('0xd')](function(_0x460a75){logger['info'](util['inspect'](_0x460a75,{'showHidden':![],'depth':null}));});});},Migration[_0x360c4b('0x14')][_0x360c4b('0x8')]=function(_0x64b224,_0xeddd5e,_0x4ba9b8){const _0xee2a7e=_0x360c4b,_0x30807c=this;this[_0xee2a7e('0x15')][_0xee2a7e('0x1')](function(){const _0x14d20b=_0xee2a7e;return _0x30807c[_0x14d20b('0x13')][_0x14d20b('0x8')](_0x64b224,_0xeddd5e,_0x4ba9b8)[_0x14d20b('0xc')](function(){const _0x5bfcc2=_0x14d20b;logger[_0x5bfcc2('0x3')](_0x5bfcc2('0xf'),_0xeddd5e,_0x4ba9b8,_0x64b224);})[_0x14d20b('0xd')](function(_0x23584c){const _0x20418a=_0x14d20b;logger[_0x20418a('0x3')](util[_0x20418a('0x0')](_0x23584c,{'showHidden':![],'depth':null}));});});},Migration[_0x360c4b('0x14')][_0x360c4b('0x1d')]=function(_0x3961ce){const _0x5738ef=_0x360c4b;this[_0x5738ef('0x15')][_0x5738ef('0x1')](function(){return _0x3961ce();});},module['exports']={'up':function(_0x425638){return new Promise(function(_0x1194f4){const _0x430d01=a957_0x12b3,_0x4dae89=new Migration(_0x425638);_0x4dae89[_0x430d01('0x4')](_0x430d01('0x9')),_0x4dae89[_0x430d01('0x1d')](_0x1194f4);});},'down':function(){}}; \ No newline at end of file +const a957_0x1f7f=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','final','migration','queryInterface','tail','stringify','removeIndex','inspect','util','renameColumn','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','catch','sequence','Removed\x20column\x20%s\x20from\x20%s','prototype','enqueue','table\x20dropped\x20%s','exports','removeIndex\x20%s\x20%s','finally','addColumn','dropTable','query','removeColumn','Added\x20column\x20%s\x20to\x20%s','then','info','../config/logger','addIndex\x20%s\x20%s\x20%s','changeColumn','sequelize'];(function(_0x4efa35,_0x1f7f23){const _0x3a4c0d=function(_0x44981b){while(--_0x44981b){_0x4efa35['push'](_0x4efa35['shift']());}};_0x3a4c0d(++_0x1f7f23);}(a957_0x1f7f,0x10f));const a957_0x3a4c=function(_0x4efa35,_0x1f7f23){_0x4efa35=_0x4efa35-0x0;let _0x3a4c0d=a957_0x1f7f[_0x4efa35];return _0x3a4c0d;};const _0x5a7346=a957_0x3a4c;'use strict';const util=require(_0x5a7346('0x1a')),logger=require(_0x5a7346('0xd'))(_0x5a7346('0x14')),Sequence=function(){};Sequence[_0x5a7346('0x0')]['enqueue']=function(_0x44981b){const _0x21b677=_0x5a7346;this[_0x21b677('0x16')]=this[_0x21b677('0x16')]?this['tail'][_0x21b677('0x5')](_0x44981b):_0x44981b();};const Migration=function(_0x58a48a){const _0x2fc0f1=_0x5a7346;this[_0x2fc0f1('0x15')]=_0x58a48a,this['sequence']=new Sequence();};Migration[_0x5a7346('0x0')][_0x5a7346('0xf')]=function(_0x556ab6,_0x32757d,_0x230e08){const _0x33fb70=_0x5a7346,_0x6fd231=this;this[_0x33fb70('0x1e')][_0x33fb70('0x1')](function(){const _0x1f9caf=_0x33fb70;return _0x6fd231[_0x1f9caf('0x15')][_0x1f9caf('0xf')](_0x556ab6,_0x32757d,_0x230e08)[_0x1f9caf('0xb')](function(){const _0x38505b=_0x1f9caf;logger[_0x38505b('0xc')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x32757d,_0x556ab6);})[_0x1f9caf('0x1d')](function(_0x35aeaa){const _0x402c33=_0x1f9caf;logger[_0x402c33('0xc')](JSON['stringify'](_0x35aeaa));});});},Migration['prototype']['addColumn']=function(_0x177053,_0x3bb026,_0x39fcb8){const _0x57fd8a=_0x5a7346,_0x442ab4=this;this[_0x57fd8a('0x1e')][_0x57fd8a('0x1')](function(){const _0x10540e=_0x57fd8a;return _0x442ab4['queryInterface'][_0x10540e('0x6')](_0x177053,_0x3bb026,_0x39fcb8)[_0x10540e('0xb')](function(){const _0x526138=_0x10540e;logger[_0x526138('0xc')](_0x526138('0xa'),_0x3bb026,_0x177053);})[_0x10540e('0x1d')](function(_0x21b7a0){logger['info'](JSON['stringify'](_0x21b7a0));});});},Migration[_0x5a7346('0x0')][_0x5a7346('0x7')]=function(_0x510fca){const _0x46a9b4=_0x5a7346,_0x24c2bd=this;this[_0x46a9b4('0x1e')]['enqueue'](function(){const _0x9377b3=_0x46a9b4;return _0x24c2bd[_0x9377b3('0x15')][_0x9377b3('0x7')](_0x510fca,{'force':!![]})[_0x9377b3('0xb')](function(){const _0x4b127d=_0x9377b3;logger[_0x4b127d('0xc')](_0x4b127d('0x2'),_0x510fca);})[_0x9377b3('0x1d')](function(_0x41690d){const _0x542054=_0x9377b3;logger[_0x542054('0xc')](JSON[_0x542054('0x17')](_0x41690d));});});},Migration[_0x5a7346('0x0')]['addIndex']=function(_0x2d5c2a,_0x286739,_0x155b77){const _0x131568=_0x5a7346,_0x14a601=this;this['sequence'][_0x131568('0x1')](function(){const _0x19f684=_0x131568;return _0x14a601[_0x19f684('0x15')]['addIndex'](_0x2d5c2a,_0x286739,{'indexName':_0x155b77})[_0x19f684('0xb')](function(){const _0x5dde07=_0x19f684;logger['info'](_0x5dde07('0xe'),_0x2d5c2a,_0x286739[_0x5dde07('0x12')](','),_0x155b77);})['catch'](function(_0x57b899){logger['info'](JSON['stringify'](_0x57b899));});});},Migration[_0x5a7346('0x0')][_0x5a7346('0x18')]=function(_0x5bfb61,_0x4a24cc){const _0x54a3d9=_0x5a7346,_0x170d7f=this;this['sequence'][_0x54a3d9('0x1')](function(){const _0x1a65dc=_0x54a3d9;return _0x170d7f[_0x1a65dc('0x15')][_0x1a65dc('0x18')](_0x5bfb61,_0x4a24cc)[_0x1a65dc('0xb')](function(){const _0x1e696d=_0x1a65dc;logger['info'](_0x1e696d('0x4'),_0x5bfb61,_0x4a24cc);})[_0x1a65dc('0x1d')](function(_0x256f01){const _0x1f0739=_0x1a65dc;logger[_0x1f0739('0xc')](JSON[_0x1f0739('0x17')](_0x256f01));});});},Migration[_0x5a7346('0x0')]['query']=function(_0x40174c){const _0x22743f=_0x5a7346,_0x49e6b4=this;this['sequence'][_0x22743f('0x1')](function(){const _0x2e129b=_0x22743f;return _0x49e6b4[_0x2e129b('0x15')][_0x2e129b('0x10')][_0x2e129b('0x8')](_0x40174c)['then'](function(){const _0x3c6c66=_0x2e129b;logger[_0x3c6c66('0xc')]('query\x20%s',_0x40174c);})[_0x2e129b('0x1d')](function(_0x178e7d){const _0x38d46a=_0x2e129b;logger[_0x38d46a('0xc')](JSON[_0x38d46a('0x17')](_0x178e7d));});});},Migration[_0x5a7346('0x0')][_0x5a7346('0x9')]=function(_0x410215,_0x4a83ee){const _0x4e5b54=_0x5a7346,_0x379cb0=this;this[_0x4e5b54('0x1e')][_0x4e5b54('0x1')](function(){const _0x3099e9=_0x4e5b54;return _0x379cb0[_0x3099e9('0x15')][_0x3099e9('0x9')](_0x410215,_0x4a83ee)[_0x3099e9('0xb')](function(){const _0x21b3d0=_0x3099e9;logger[_0x21b3d0('0xc')](_0x21b3d0('0x1f'),_0x4a83ee,_0x410215);})['catch'](function(_0x1df58d){const _0x232f28=_0x3099e9;logger['info'](util[_0x232f28('0x19')](_0x1df58d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5a7346('0x1b')]=function(_0xf7cff8,_0x44974b,_0x12b2c3){const _0x4036b4=_0x5a7346,_0x31dae2=this;this[_0x4036b4('0x1e')]['enqueue'](function(){const _0x182a0c=_0x4036b4;return _0x31dae2['queryInterface'][_0x182a0c('0x1b')](_0xf7cff8,_0x44974b,_0x12b2c3)[_0x182a0c('0xb')](function(){const _0x1be3ec=_0x182a0c;logger['info'](_0x1be3ec('0x11'),_0x44974b,_0x12b2c3,_0xf7cff8);})[_0x182a0c('0x1d')](function(_0x16893b){const _0xd3bc4=_0x182a0c;logger[_0xd3bc4('0xc')](util[_0xd3bc4('0x19')](_0x16893b,{'showHidden':![],'depth':null}));});});},Migration[_0x5a7346('0x0')][_0x5a7346('0x13')]=function(_0x526066){const _0x31c7c7=_0x5a7346;this['sequence'][_0x31c7c7('0x1')](function(){return _0x526066();});},module[_0x5a7346('0x3')]={'up':function(_0x2c7243){return new Promise(function(_0x26ee79){const _0x227ce3=a957_0x3a4c,_0xd65375=new Migration(_0x2c7243);_0xd65375[_0x227ce3('0x8')](_0x227ce3('0x1c')),_0xd65375[_0x227ce3('0x13')](_0x26ee79);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.79.js b/server/migrations/2.0.79.js index 3b4163b..d055c9b 100644 --- a/server/migrations/2.0.79.js +++ b/server/migrations/2.0.79.js @@ -1 +1 @@ -const a958_0x5115=['then','addIndex','renameColumn','migration','info','final','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','addColumn','query','UPDATE\x20dashboard_items\x20SET\x20attrs\x20=\x20REPLACE(attrs,\x27[{\x22name\x22:\x22attrReport\x22\x27,\x27[{\x22name\x22:\x22attrReport\x22,\x22type\x22:\x22custom\x22\x27)\x20WHERE\x20type\x20=\x20\x27web-report\x27\x20AND\x20attrs\x20NOT\x20LIKE\x20\x27%type%\x27','enqueue','sequence','stringify','queryInterface','exports','changeColumn','sequelize','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','finally','Added\x20column\x20%s\x20to\x20%s','catch','prototype','addIndex\x20%s\x20%s\x20%s','util','tail','dropTable','removeColumn'];(function(_0x165daf,_0x5115d2){const _0x47aa7c=function(_0x9a31d1){while(--_0x9a31d1){_0x165daf['push'](_0x165daf['shift']());}};_0x47aa7c(++_0x5115d2);}(a958_0x5115,0x133));const a958_0x47aa=function(_0x165daf,_0x5115d2){_0x165daf=_0x165daf-0x0;let _0x47aa7c=a958_0x5115[_0x165daf];return _0x47aa7c;};const _0x1a9a7b=a958_0x47aa;'use strict';const util=require(_0x1a9a7b('0x13')),logger=require('../config/logger')(_0x1a9a7b('0x1a')),Sequence=function(){};Sequence[_0x1a9a7b('0x11')]['enqueue']=function(_0x9a31d1){const _0x745fac=_0x1a9a7b;this[_0x745fac('0x14')]=this[_0x745fac('0x14')]?this[_0x745fac('0x14')][_0x745fac('0xe')](_0x9a31d1):_0x9a31d1();};const Migration=function(_0x1f9730){const _0x518b01=_0x1a9a7b;this[_0x518b01('0x8')]=_0x1f9730,this[_0x518b01('0x6')]=new Sequence();};Migration[_0x1a9a7b('0x11')][_0x1a9a7b('0xa')]=function(_0x56f27b,_0x4177f1,_0x1ab1b3){const _0x1203bb=_0x1a9a7b,_0x1479be=this;this[_0x1203bb('0x6')][_0x1203bb('0x5')](function(){const _0x15f793=_0x1203bb;return _0x1479be[_0x15f793('0x8')][_0x15f793('0xa')](_0x56f27b,_0x4177f1,_0x1ab1b3)[_0x15f793('0x17')](function(){const _0x1d230c=_0x15f793;logger[_0x1d230c('0x1b')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4177f1,_0x56f27b);})[_0x15f793('0x10')](function(_0xbd0185){const _0x4f2a88=_0x15f793;logger[_0x4f2a88('0x1b')](JSON[_0x4f2a88('0x7')](_0xbd0185));});});},Migration[_0x1a9a7b('0x11')][_0x1a9a7b('0x2')]=function(_0xfc5acc,_0x3170c9,_0x2e2e79){const _0x4b293e=this;this['sequence']['enqueue'](function(){const _0x3c5ffd=a958_0x47aa;return _0x4b293e[_0x3c5ffd('0x8')][_0x3c5ffd('0x2')](_0xfc5acc,_0x3170c9,_0x2e2e79)[_0x3c5ffd('0x17')](function(){const _0x3c1304=_0x3c5ffd;logger['info'](_0x3c1304('0xf'),_0x3170c9,_0xfc5acc);})[_0x3c5ffd('0x10')](function(_0x1a5064){const _0x10f2a4=_0x3c5ffd;logger[_0x10f2a4('0x1b')](JSON['stringify'](_0x1a5064));});});},Migration['prototype'][_0x1a9a7b('0x15')]=function(_0x3883cc){const _0x538def=_0x1a9a7b,_0x2d678c=this;this[_0x538def('0x6')]['enqueue'](function(){const _0x15015a=_0x538def;return _0x2d678c[_0x15015a('0x8')][_0x15015a('0x15')](_0x3883cc,{'force':!![]})['then'](function(){const _0x12b83f=_0x15015a;logger[_0x12b83f('0x1b')](_0x12b83f('0xc'),_0x3883cc);})[_0x15015a('0x10')](function(_0x216edc){const _0x458b4b=_0x15015a;logger[_0x458b4b('0x1b')](JSON[_0x458b4b('0x7')](_0x216edc));});});},Migration[_0x1a9a7b('0x11')][_0x1a9a7b('0x18')]=function(_0x339194,_0x1a7156,_0x20dce3){const _0x4c6088=_0x1a9a7b,_0x129401=this;this[_0x4c6088('0x6')][_0x4c6088('0x5')](function(){const _0x371b54=_0x4c6088;return _0x129401['queryInterface'][_0x371b54('0x18')](_0x339194,_0x1a7156,{'indexName':_0x20dce3})[_0x371b54('0x17')](function(){const _0x14f8f3=_0x371b54;logger['info'](_0x14f8f3('0x12'),_0x339194,_0x1a7156[_0x14f8f3('0x1')](','),_0x20dce3);})[_0x371b54('0x10')](function(_0x5e8cf7){const _0x3c2e9c=_0x371b54;logger[_0x3c2e9c('0x1b')](JSON['stringify'](_0x5e8cf7));});});},Migration[_0x1a9a7b('0x11')]['removeIndex']=function(_0x2e867c,_0x6877d3){const _0x2b72dd=_0x1a9a7b,_0x33a05f=this;this['sequence'][_0x2b72dd('0x5')](function(){const _0x2a43e6=_0x2b72dd;return _0x33a05f['queryInterface']['removeIndex'](_0x2e867c,_0x6877d3)[_0x2a43e6('0x17')](function(){const _0x5707aa=_0x2a43e6;logger['info'](_0x5707aa('0xd'),_0x2e867c,_0x6877d3);})[_0x2a43e6('0x10')](function(_0x5dc85f){const _0x4115c5=_0x2a43e6;logger['info'](JSON[_0x4115c5('0x7')](_0x5dc85f));});});},Migration['prototype'][_0x1a9a7b('0x3')]=function(_0x2ad201){const _0x23a185=_0x1a9a7b,_0x598a78=this;this[_0x23a185('0x6')][_0x23a185('0x5')](function(){const _0x3a5f29=_0x23a185;return _0x598a78[_0x3a5f29('0x8')][_0x3a5f29('0xb')][_0x3a5f29('0x3')](_0x2ad201)[_0x3a5f29('0x17')](function(){const _0x5b8371=_0x3a5f29;logger[_0x5b8371('0x1b')]('query\x20%s',_0x2ad201);})[_0x3a5f29('0x10')](function(_0x340b95){const _0xc84e47=_0x3a5f29;logger['info'](JSON[_0xc84e47('0x7')](_0x340b95));});});},Migration[_0x1a9a7b('0x11')][_0x1a9a7b('0x16')]=function(_0x3e1cea,_0x4d7166){const _0x3d9b68=_0x1a9a7b,_0x15c4bd=this;this[_0x3d9b68('0x6')][_0x3d9b68('0x5')](function(){const _0x176bc8=_0x3d9b68;return _0x15c4bd[_0x176bc8('0x8')][_0x176bc8('0x16')](_0x3e1cea,_0x4d7166)[_0x176bc8('0x17')](function(){const _0xe5123c=_0x176bc8;logger[_0xe5123c('0x1b')]('Removed\x20column\x20%s\x20from\x20%s',_0x4d7166,_0x3e1cea);})[_0x176bc8('0x10')](function(_0x3b3bdc){const _0xe8cea3=_0x176bc8;logger[_0xe8cea3('0x1b')](util[_0xe8cea3('0x1d')](_0x3b3bdc,{'showHidden':![],'depth':null}));});});},Migration[_0x1a9a7b('0x11')][_0x1a9a7b('0x19')]=function(_0x217230,_0x3a49cf,_0x36cc93){const _0x3c1bcd=_0x1a9a7b,_0x47f10f=this;this[_0x3c1bcd('0x6')][_0x3c1bcd('0x5')](function(){const _0xdbf6ba=_0x3c1bcd;return _0x47f10f[_0xdbf6ba('0x8')][_0xdbf6ba('0x19')](_0x217230,_0x3a49cf,_0x36cc93)[_0xdbf6ba('0x17')](function(){const _0x1b0f77=_0xdbf6ba;logger['info'](_0x1b0f77('0x0'),_0x3a49cf,_0x36cc93,_0x217230);})[_0xdbf6ba('0x10')](function(_0x2377b0){const _0x4b541c=_0xdbf6ba;logger['info'](util[_0x4b541c('0x1d')](_0x2377b0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1a9a7b('0x1c')]=function(_0xbe925a){const _0x2636cc=_0x1a9a7b;this[_0x2636cc('0x6')][_0x2636cc('0x5')](function(){return _0xbe925a();});},module[_0x1a9a7b('0x9')]={'up':function(_0x3f0780){return new Promise(function(_0x16134c){const _0x5f51cb=a958_0x47aa,_0x1ba6a4=new Migration(_0x3f0780);_0x1ba6a4[_0x5f51cb('0x3')](_0x5f51cb('0x4')),_0x1ba6a4['final'](_0x16134c);});},'down':function(){}}; \ No newline at end of file +const a958_0x21d5=['addIndex\x20%s\x20%s\x20%s','util','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','UPDATE\x20dashboard_items\x20SET\x20attrs\x20=\x20REPLACE(attrs,\x27[{\x22name\x22:\x22attrReport\x22\x27,\x27[{\x22name\x22:\x22attrReport\x22,\x22type\x22:\x22custom\x22\x27)\x20WHERE\x20type\x20=\x20\x27web-report\x27\x20AND\x20attrs\x20NOT\x20LIKE\x20\x27%type%\x27','tail','addIndex','then','Removed\x20column\x20%s\x20from\x20%s','changeColumn','catch','join','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','removeIndex','query\x20%s','inspect','stringify','finally','dropTable','migration','query','prototype','renameColumn','sequelize','sequence','final','enqueue','removeColumn'];(function(_0x24794d,_0x21d52d){const _0x459749=function(_0x103d04){while(--_0x103d04){_0x24794d['push'](_0x24794d['shift']());}};_0x459749(++_0x21d52d);}(a958_0x21d5,0xef));const a958_0x4597=function(_0x24794d,_0x21d52d){_0x24794d=_0x24794d-0x0;let _0x459749=a958_0x21d5[_0x24794d];return _0x459749;};const _0x512b6f=a958_0x4597;'use strict';const util=require(_0x512b6f('0x2')),logger=require('../config/logger')(_0x512b6f('0x16')),Sequence=function(){};Sequence[_0x512b6f('0x18')][_0x512b6f('0x1d')]=function(_0x103d04){const _0x1fd1c2=_0x512b6f;this[_0x1fd1c2('0x6')]=this['tail']?this[_0x1fd1c2('0x6')][_0x1fd1c2('0x14')](_0x103d04):_0x103d04();};const Migration=function(_0x37e479){const _0x15a509=_0x512b6f;this[_0x15a509('0xd')]=_0x37e479,this[_0x15a509('0x1b')]=new Sequence();};Migration[_0x512b6f('0x18')][_0x512b6f('0xa')]=function(_0x3688e3,_0x1fdf2e,_0x4d84be){const _0x319d7a=_0x512b6f,_0x259bd5=this;this[_0x319d7a('0x1b')][_0x319d7a('0x1d')](function(){const _0x5b551e=_0x319d7a;return _0x259bd5[_0x5b551e('0xd')][_0x5b551e('0xa')](_0x3688e3,_0x1fdf2e,_0x4d84be)['then'](function(){const _0x1aa388=_0x5b551e;logger[_0x1aa388('0xf')](_0x1aa388('0x3'),_0x1fdf2e,_0x3688e3);})[_0x5b551e('0xb')](function(_0x4a3e0b){const _0x1f8a97=_0x5b551e;logger['info'](JSON[_0x1f8a97('0x13')](_0x4a3e0b));});});},Migration['prototype']['addColumn']=function(_0x1142fd,_0x135093,_0x1d0cef){const _0xb814a5=this;this['sequence']['enqueue'](function(){const _0x4a3a3c=a958_0x4597;return _0xb814a5[_0x4a3a3c('0xd')]['addColumn'](_0x1142fd,_0x135093,_0x1d0cef)[_0x4a3a3c('0x8')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x135093,_0x1142fd);})['catch'](function(_0x1d592d){const _0x1ed99f=_0x4a3a3c;logger[_0x1ed99f('0xf')](JSON[_0x1ed99f('0x13')](_0x1d592d));});});},Migration[_0x512b6f('0x18')]['dropTable']=function(_0x190f3d){const _0x48a6c8=_0x512b6f,_0x49c693=this;this[_0x48a6c8('0x1b')][_0x48a6c8('0x1d')](function(){const _0x242510=_0x48a6c8;return _0x49c693[_0x242510('0xd')][_0x242510('0x15')](_0x190f3d,{'force':!![]})[_0x242510('0x8')](function(){const _0x43c633=_0x242510;logger[_0x43c633('0xf')]('table\x20dropped\x20%s',_0x190f3d);})[_0x242510('0xb')](function(_0x44e119){const _0x1101ce=_0x242510;logger[_0x1101ce('0xf')](JSON[_0x1101ce('0x13')](_0x44e119));});});},Migration[_0x512b6f('0x18')][_0x512b6f('0x7')]=function(_0x34250a,_0x1efa42,_0x233fe8){const _0xf0b082=_0x512b6f,_0x41db6b=this;this['sequence'][_0xf0b082('0x1d')](function(){const _0x322a9a=_0xf0b082;return _0x41db6b[_0x322a9a('0xd')][_0x322a9a('0x7')](_0x34250a,_0x1efa42,{'indexName':_0x233fe8})[_0x322a9a('0x8')](function(){const _0x4a1029=_0x322a9a;logger[_0x4a1029('0xf')](_0x4a1029('0x1'),_0x34250a,_0x1efa42[_0x4a1029('0xc')](','),_0x233fe8);})[_0x322a9a('0xb')](function(_0x1a8e1a){const _0x2a9248=_0x322a9a;logger[_0x2a9248('0xf')](JSON['stringify'](_0x1a8e1a));});});},Migration[_0x512b6f('0x18')][_0x512b6f('0x10')]=function(_0xa082a,_0x307a83){const _0x469d21=_0x512b6f,_0x2c8104=this;this[_0x469d21('0x1b')]['enqueue'](function(){const _0x30095a=_0x469d21;return _0x2c8104['queryInterface'][_0x30095a('0x10')](_0xa082a,_0x307a83)['then'](function(){const _0x1592dc=_0x30095a;logger[_0x1592dc('0xf')](_0x1592dc('0x4'),_0xa082a,_0x307a83);})['catch'](function(_0x4a5fc8){const _0xb417ab=_0x30095a;logger[_0xb417ab('0xf')](JSON[_0xb417ab('0x13')](_0x4a5fc8));});});},Migration[_0x512b6f('0x18')][_0x512b6f('0x17')]=function(_0x2a2156){const _0x5b96e1=_0x512b6f,_0x471def=this;this[_0x5b96e1('0x1b')]['enqueue'](function(){const _0x33cc6=_0x5b96e1;return _0x471def[_0x33cc6('0xd')][_0x33cc6('0x1a')]['query'](_0x2a2156)['then'](function(){const _0x2019d2=_0x33cc6;logger[_0x2019d2('0xf')](_0x2019d2('0x11'),_0x2a2156);})['catch'](function(_0x4b1fd1){const _0x1464f5=_0x33cc6;logger[_0x1464f5('0xf')](JSON[_0x1464f5('0x13')](_0x4b1fd1));});});},Migration['prototype'][_0x512b6f('0x0')]=function(_0x40d50d,_0x567a69){const _0x2a20e4=_0x512b6f,_0x33e0c4=this;this['sequence'][_0x2a20e4('0x1d')](function(){const _0x3ba43a=_0x2a20e4;return _0x33e0c4[_0x3ba43a('0xd')]['removeColumn'](_0x40d50d,_0x567a69)[_0x3ba43a('0x8')](function(){const _0x55d6e6=_0x3ba43a;logger[_0x55d6e6('0xf')](_0x55d6e6('0x9'),_0x567a69,_0x40d50d);})[_0x3ba43a('0xb')](function(_0x510cb9){const _0x37f331=_0x3ba43a;logger[_0x37f331('0xf')](util['inspect'](_0x510cb9,{'showHidden':![],'depth':null}));});});},Migration[_0x512b6f('0x18')][_0x512b6f('0x19')]=function(_0x5946e2,_0x15ccaf,_0x5b98d8){const _0x5b2551=_0x512b6f,_0xaa5cec=this;this[_0x5b2551('0x1b')]['enqueue'](function(){const _0x31a90e=_0x5b2551;return _0xaa5cec[_0x31a90e('0xd')]['renameColumn'](_0x5946e2,_0x15ccaf,_0x5b98d8)[_0x31a90e('0x8')](function(){const _0x288d85=_0x31a90e;logger['info'](_0x288d85('0xe'),_0x15ccaf,_0x5b98d8,_0x5946e2);})[_0x31a90e('0xb')](function(_0x15c5c9){const _0x3672d9=_0x31a90e;logger[_0x3672d9('0xf')](util[_0x3672d9('0x12')](_0x15c5c9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x512b6f('0x1c')]=function(_0x415be3){const _0x3de1b9=_0x512b6f;this[_0x3de1b9('0x1b')][_0x3de1b9('0x1d')](function(){return _0x415be3();});},module['exports']={'up':function(_0x3a9f04){return new Promise(function(_0x5e6082){const _0x2769f1=a958_0x4597,_0x38657a=new Migration(_0x3a9f04);_0x38657a[_0x2769f1('0x17')](_0x2769f1('0x5')),_0x38657a[_0x2769f1('0x1c')](_0x5e6082);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.80.js b/server/migrations/2.0.80.js index 9ae006c..ba5b9d7 100644 --- a/server/migrations/2.0.80.js +++ b/server/migrations/2.0.80.js @@ -1 +1 @@ -const a959_0x347f=['tail','changeColumn','finally','removeColumn','addIndex','BOOLEAN','dropTable','info','addIndex\x20%s\x20%s\x20%s','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','sequelize','stringify','settings','catch','enqueue','table\x20dropped\x20%s','then','prototype','util','exports','query','STRING','defaultPreferred','final','query\x20%s','removeIndex','queryInterface','inspect','addColumn','join','preferred'];(function(_0x3c9cb7,_0x347f80){const _0x3e16ef=function(_0x270cef){while(--_0x270cef){_0x3c9cb7['push'](_0x3c9cb7['shift']());}};_0x3e16ef(++_0x347f80);}(a959_0x347f,0x199));const a959_0x3e16=function(_0x3c9cb7,_0x347f80){_0x3c9cb7=_0x3c9cb7-0x0;let _0x3e16ef=a959_0x347f[_0x3c9cb7];return _0x3e16ef;};const _0x17c792=a959_0x3e16;'use strict';const util=require(_0x17c792('0x21')),logger=require(_0x17c792('0x18'))('migration'),Sequence=function(){};Sequence[_0x17c792('0x20')]['enqueue']=function(_0x270cef){const _0x3892f1=_0x17c792;this[_0x3892f1('0xb')]=this[_0x3892f1('0xb')]?this[_0x3892f1('0xb')][_0x3892f1('0xd')](_0x270cef):_0x270cef();};const Migration=function(_0x1f487c){const _0x23430c=_0x17c792;this[_0x23430c('0x6')]=_0x1f487c,this[_0x23430c('0x14')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x575699,_0x3b0ce5,_0x5d0659){const _0x288606=_0x17c792,_0x5a5dfa=this;this[_0x288606('0x14')]['enqueue'](function(){const _0x502be0=_0x288606;return _0x5a5dfa[_0x502be0('0x6')][_0x502be0('0xc')](_0x575699,_0x3b0ce5,_0x5d0659)[_0x502be0('0x1f')](function(){const _0x3e9d10=_0x502be0;logger[_0x3e9d10('0x12')](_0x3e9d10('0x17'),_0x3b0ce5,_0x575699);})['catch'](function(_0x3edb70){const _0xd5eead=_0x502be0;logger[_0xd5eead('0x12')](JSON[_0xd5eead('0x1a')](_0x3edb70));});});},Migration[_0x17c792('0x20')][_0x17c792('0x8')]=function(_0x15cecc,_0x23dc2c,_0x50113f){const _0x43395e=_0x17c792,_0x5c8cd5=this;this[_0x43395e('0x14')][_0x43395e('0x1d')](function(){const _0x385ceb=_0x43395e;return _0x5c8cd5[_0x385ceb('0x6')][_0x385ceb('0x8')](_0x15cecc,_0x23dc2c,_0x50113f)[_0x385ceb('0x1f')](function(){const _0x2d4cdf=_0x385ceb;logger['info'](_0x2d4cdf('0x16'),_0x23dc2c,_0x15cecc);})[_0x385ceb('0x1c')](function(_0xd8887d){const _0x3524c6=_0x385ceb;logger['info'](JSON[_0x3524c6('0x1a')](_0xd8887d));});});},Migration[_0x17c792('0x20')][_0x17c792('0x11')]=function(_0x16133c){const _0x2281c6=_0x17c792,_0x18924d=this;this[_0x2281c6('0x14')][_0x2281c6('0x1d')](function(){const _0x31caa2=_0x2281c6;return _0x18924d[_0x31caa2('0x6')]['dropTable'](_0x16133c,{'force':!![]})[_0x31caa2('0x1f')](function(){const _0x53a527=_0x31caa2;logger['info'](_0x53a527('0x1e'),_0x16133c);})['catch'](function(_0x3f8808){const _0x58e9ac=_0x31caa2;logger['info'](JSON[_0x58e9ac('0x1a')](_0x3f8808));});});},Migration[_0x17c792('0x20')][_0x17c792('0xf')]=function(_0x3180c4,_0x4ac4a0,_0x3562b4){const _0x3bc882=_0x17c792,_0x2d5d1=this;this[_0x3bc882('0x14')][_0x3bc882('0x1d')](function(){const _0x4765d3=_0x3bc882;return _0x2d5d1[_0x4765d3('0x6')]['addIndex'](_0x3180c4,_0x4ac4a0,{'indexName':_0x3562b4})['then'](function(){const _0x34b35f=_0x4765d3;logger['info'](_0x34b35f('0x13'),_0x3180c4,_0x4ac4a0[_0x34b35f('0x9')](','),_0x3562b4);})['catch'](function(_0x5f156c){const _0xbced1=_0x4765d3;logger['info'](JSON[_0xbced1('0x1a')](_0x5f156c));});});},Migration[_0x17c792('0x20')]['removeIndex']=function(_0x2df407,_0x146d55){const _0x2296f8=_0x17c792,_0x205200=this;this['sequence'][_0x2296f8('0x1d')](function(){const _0xec19d6=_0x2296f8;return _0x205200[_0xec19d6('0x6')][_0xec19d6('0x5')](_0x2df407,_0x146d55)[_0xec19d6('0x1f')](function(){const _0x414c5d=_0xec19d6;logger[_0x414c5d('0x12')]('removeIndex\x20%s\x20%s',_0x2df407,_0x146d55);})[_0xec19d6('0x1c')](function(_0x3a605e){const _0x30bc17=_0xec19d6;logger[_0x30bc17('0x12')](JSON['stringify'](_0x3a605e));});});},Migration[_0x17c792('0x20')][_0x17c792('0x0')]=function(_0x2c632b){const _0xe99cd3=_0x17c792,_0x28d083=this;this['sequence'][_0xe99cd3('0x1d')](function(){const _0x5608b8=_0xe99cd3;return _0x28d083['queryInterface'][_0x5608b8('0x19')][_0x5608b8('0x0')](_0x2c632b)[_0x5608b8('0x1f')](function(){const _0x3e85f2=_0x5608b8;logger['info'](_0x3e85f2('0x4'),_0x2c632b);})['catch'](function(_0x10aa3d){const _0x5a0df3=_0x5608b8;logger[_0x5a0df3('0x12')](JSON[_0x5a0df3('0x1a')](_0x10aa3d));});});},Migration[_0x17c792('0x20')]['removeColumn']=function(_0x7b9d28,_0x23cc7c){const _0x48310b=_0x17c792,_0x33c5cf=this;this[_0x48310b('0x14')][_0x48310b('0x1d')](function(){const _0x194a55=_0x48310b;return _0x33c5cf[_0x194a55('0x6')][_0x194a55('0xe')](_0x7b9d28,_0x23cc7c)[_0x194a55('0x1f')](function(){const _0x1eee8d=_0x194a55;logger[_0x1eee8d('0x12')]('Removed\x20column\x20%s\x20from\x20%s',_0x23cc7c,_0x7b9d28);})[_0x194a55('0x1c')](function(_0x5ce118){const _0x58ce85=_0x194a55;logger[_0x58ce85('0x12')](util[_0x58ce85('0x7')](_0x5ce118,{'showHidden':![],'depth':null}));});});},Migration[_0x17c792('0x20')]['renameColumn']=function(_0x35751c,_0x56a3e2,_0x39ecef){const _0x25c95c=_0x17c792,_0xff736c=this;this['sequence'][_0x25c95c('0x1d')](function(){const _0x29c594=_0x25c95c;return _0xff736c[_0x29c594('0x6')]['renameColumn'](_0x35751c,_0x56a3e2,_0x39ecef)['then'](function(){const _0xef7976=_0x29c594;logger[_0xef7976('0x12')](_0xef7976('0x15'),_0x56a3e2,_0x39ecef,_0x35751c);})[_0x29c594('0x1c')](function(_0x496af5){const _0x37c1b1=_0x29c594;logger[_0x37c1b1('0x12')](util[_0x37c1b1('0x7')](_0x496af5,{'showHidden':![],'depth':null}));});});},Migration[_0x17c792('0x20')][_0x17c792('0x3')]=function(_0x1ea1b6){const _0x12d008=_0x17c792;this[_0x12d008('0x14')][_0x12d008('0x1d')](function(){return _0x1ea1b6();});},module[_0x17c792('0x22')]={'up':function(_0x389c1d,_0x1b83da){return new Promise(function(_0x1ee72c){const _0x13d22e=a959_0x3e16,_0x331000=new Migration(_0x389c1d);_0x331000[_0x13d22e('0x8')](_0x13d22e('0x1b'),_0x13d22e('0xa'),{'type':_0x1b83da[_0x13d22e('0x1')]}),_0x331000['addColumn'](_0x13d22e('0x1b'),_0x13d22e('0x2'),{'type':_0x1b83da[_0x13d22e('0x10')],'defaultValue':!![]}),_0x331000[_0x13d22e('0x3')](_0x1ee72c);});},'down':function(){}}; \ No newline at end of file +const a959_0x21cb=['stringify','removeColumn','Removed\x20column\x20%s\x20from\x20%s','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','STRING','../config/logger','inspect','prototype','finally','sequence','enqueue','util','removeIndex\x20%s\x20%s','query\x20%s','removeIndex','tail','then','final','addColumn','queryInterface','addIndex\x20%s\x20%s\x20%s','settings','preferred','defaultPreferred','query','renameColumn','migration','sequelize','dropTable','changeColumn','catch','info','exports','table\x20dropped\x20%s'];(function(_0x1e8555,_0x21cbeb){const _0x5330f6=function(_0x443a4e){while(--_0x443a4e){_0x1e8555['push'](_0x1e8555['shift']());}};_0x5330f6(++_0x21cbeb);}(a959_0x21cb,0x86));const a959_0x5330=function(_0x1e8555,_0x21cbeb){_0x1e8555=_0x1e8555-0x0;let _0x5330f6=a959_0x21cb[_0x1e8555];return _0x5330f6;};const _0x542e92=a959_0x5330;'use strict';const util=require(_0x542e92('0x17')),logger=require(_0x542e92('0x11'))(_0x542e92('0x2')),Sequence=function(){};Sequence[_0x542e92('0x13')][_0x542e92('0x16')]=function(_0x443a4e){const _0x47e3f2=_0x542e92;this[_0x47e3f2('0x1b')]=this[_0x47e3f2('0x1b')]?this[_0x47e3f2('0x1b')][_0x47e3f2('0x14')](_0x443a4e):_0x443a4e();};const Migration=function(_0x1cb5fb){const _0x4bb987=_0x542e92;this[_0x4bb987('0x1f')]=_0x1cb5fb,this[_0x4bb987('0x15')]=new Sequence();};Migration[_0x542e92('0x13')]['changeColumn']=function(_0x15333d,_0x47e0a6,_0x59f132){const _0x51454b=_0x542e92,_0x4bc9a8=this;this[_0x51454b('0x15')][_0x51454b('0x16')](function(){const _0x42e2f5=_0x51454b;return _0x4bc9a8['queryInterface'][_0x42e2f5('0x5')](_0x15333d,_0x47e0a6,_0x59f132)['then'](function(){const _0x43a37f=_0x42e2f5;logger[_0x43a37f('0x7')](_0x43a37f('0xe'),_0x47e0a6,_0x15333d);})[_0x42e2f5('0x6')](function(_0x2c946f){logger['info'](JSON['stringify'](_0x2c946f));});});},Migration[_0x542e92('0x13')][_0x542e92('0x1e')]=function(_0x58eb81,_0x4d640f,_0x126668){const _0x137d38=_0x542e92,_0x52468e=this;this['sequence'][_0x137d38('0x16')](function(){const _0x47fa44=_0x137d38;return _0x52468e[_0x47fa44('0x1f')][_0x47fa44('0x1e')](_0x58eb81,_0x4d640f,_0x126668)[_0x47fa44('0x1c')](function(){const _0x53f091=_0x47fa44;logger[_0x53f091('0x7')](_0x53f091('0xf'),_0x4d640f,_0x58eb81);})[_0x47fa44('0x6')](function(_0x61faa4){const _0x4c29f3=_0x47fa44;logger[_0x4c29f3('0x7')](JSON[_0x4c29f3('0xa')](_0x61faa4));});});},Migration[_0x542e92('0x13')]['dropTable']=function(_0x3b09dc){const _0x14170d=_0x542e92,_0x40a1fb=this;this[_0x14170d('0x15')]['enqueue'](function(){const _0x315d51=_0x14170d;return _0x40a1fb['queryInterface'][_0x315d51('0x4')](_0x3b09dc,{'force':!![]})['then'](function(){const _0x595e8d=_0x315d51;logger[_0x595e8d('0x7')](_0x595e8d('0x9'),_0x3b09dc);})['catch'](function(_0x328958){const _0x4c619d=_0x315d51;logger[_0x4c619d('0x7')](JSON[_0x4c619d('0xa')](_0x328958));});});},Migration['prototype'][_0x542e92('0xd')]=function(_0x2ea09f,_0x3c266d,_0x3ab496){const _0x25d1b1=_0x542e92,_0x4a305c=this;this[_0x25d1b1('0x15')][_0x25d1b1('0x16')](function(){const _0x24d973=_0x25d1b1;return _0x4a305c[_0x24d973('0x1f')][_0x24d973('0xd')](_0x2ea09f,_0x3c266d,{'indexName':_0x3ab496})[_0x24d973('0x1c')](function(){const _0x11f3c8=_0x24d973;logger[_0x11f3c8('0x7')](_0x11f3c8('0x20'),_0x2ea09f,_0x3c266d['join'](','),_0x3ab496);})[_0x24d973('0x6')](function(_0x8905e7){const _0x3c68ce=_0x24d973;logger['info'](JSON[_0x3c68ce('0xa')](_0x8905e7));});});},Migration['prototype'][_0x542e92('0x1a')]=function(_0x4498a0,_0x252edc){const _0x5d4132=_0x542e92,_0xb3ad6f=this;this['sequence'][_0x5d4132('0x16')](function(){const _0x1e82d4=_0x5d4132;return _0xb3ad6f['queryInterface'][_0x1e82d4('0x1a')](_0x4498a0,_0x252edc)['then'](function(){const _0x159b37=_0x1e82d4;logger['info'](_0x159b37('0x18'),_0x4498a0,_0x252edc);})[_0x1e82d4('0x6')](function(_0x4e373c){const _0x5a6ca9=_0x1e82d4;logger[_0x5a6ca9('0x7')](JSON[_0x5a6ca9('0xa')](_0x4e373c));});});},Migration[_0x542e92('0x13')][_0x542e92('0x0')]=function(_0x5cef4a){const _0x3211ea=_0x542e92,_0x5f2bb8=this;this[_0x3211ea('0x15')][_0x3211ea('0x16')](function(){const _0xefa79e=_0x3211ea;return _0x5f2bb8[_0xefa79e('0x1f')][_0xefa79e('0x3')]['query'](_0x5cef4a)[_0xefa79e('0x1c')](function(){const _0x17afe9=_0xefa79e;logger[_0x17afe9('0x7')](_0x17afe9('0x19'),_0x5cef4a);})[_0xefa79e('0x6')](function(_0x5ab2cf){const _0x3b3d5d=_0xefa79e;logger[_0x3b3d5d('0x7')](JSON[_0x3b3d5d('0xa')](_0x5ab2cf));});});},Migration[_0x542e92('0x13')]['removeColumn']=function(_0x1e4ac5,_0x4bbaf5){const _0x330342=_0x542e92,_0x504dee=this;this['sequence'][_0x330342('0x16')](function(){const _0x5900ee=_0x330342;return _0x504dee[_0x5900ee('0x1f')][_0x5900ee('0xb')](_0x1e4ac5,_0x4bbaf5)[_0x5900ee('0x1c')](function(){const _0x53ae8f=_0x5900ee;logger[_0x53ae8f('0x7')](_0x53ae8f('0xc'),_0x4bbaf5,_0x1e4ac5);})[_0x5900ee('0x6')](function(_0x59f81b){const _0x208867=_0x5900ee;logger[_0x208867('0x7')](util[_0x208867('0x12')](_0x59f81b,{'showHidden':![],'depth':null}));});});},Migration[_0x542e92('0x13')][_0x542e92('0x1')]=function(_0x3e3742,_0x2537d4,_0x4e9d74){const _0xbc9811=_0x542e92,_0x484ead=this;this[_0xbc9811('0x15')][_0xbc9811('0x16')](function(){const _0x38ebd1=_0xbc9811;return _0x484ead[_0x38ebd1('0x1f')][_0x38ebd1('0x1')](_0x3e3742,_0x2537d4,_0x4e9d74)[_0x38ebd1('0x1c')](function(){const _0x208373=_0x38ebd1;logger[_0x208373('0x7')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2537d4,_0x4e9d74,_0x3e3742);})[_0x38ebd1('0x6')](function(_0x498a74){const _0x74e952=_0x38ebd1;logger[_0x74e952('0x7')](util[_0x74e952('0x12')](_0x498a74,{'showHidden':![],'depth':null}));});});},Migration[_0x542e92('0x13')]['final']=function(_0x25a52c){const _0xdaa530=_0x542e92;this[_0xdaa530('0x15')][_0xdaa530('0x16')](function(){return _0x25a52c();});},module[_0x542e92('0x8')]={'up':function(_0x4b89b3,_0x2a2c2b){return new Promise(function(_0xb9bda8){const _0x50789b=a959_0x5330,_0x538ad2=new Migration(_0x4b89b3);_0x538ad2[_0x50789b('0x1e')](_0x50789b('0x21'),_0x50789b('0x22'),{'type':_0x2a2c2b[_0x50789b('0x10')]}),_0x538ad2[_0x50789b('0x1e')](_0x50789b('0x21'),_0x50789b('0x23'),{'type':_0x2a2c2b['BOOLEAN'],'defaultValue':!![]}),_0x538ad2[_0x50789b('0x1d')](_0xb9bda8);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.81.js b/server/migrations/2.0.81.js index 19d37b6..7a6f426 100644 --- a/server/migrations/2.0.81.js +++ b/server/migrations/2.0.81.js @@ -1 +1 @@ -const a960_0x2a58=['dropTable','join','cm_contacts','enqueue','prototype','Added\x20column\x20%s\x20to\x20%s','finally','removeColumn','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27GP\x27\x20WHERE\x20smsMethod\x20=\x20\x27classic+\x27','renameColumn','tail','ENUM','queryInterface','util','STRING','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','classic','addIndex','Removed\x20column\x20%s\x20from\x20%s','removeIndex','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27TI\x27\x20WHERE\x20smsMethod\x20=\x20\x27classic\x27','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','migration','addColumn','exports','telegram','sequelize','smsMethod','query','catch','../config/logger','final','sequence','basic','changeColumn','sms_accounts','removeIndex\x20%s\x20%s','inspect','then','table\x20dropped\x20%s'];(function(_0x138d30,_0x2a5843){const _0x3a57e9=function(_0xa2afa9){while(--_0xa2afa9){_0x138d30['push'](_0x138d30['shift']());}};_0x3a57e9(++_0x2a5843);}(a960_0x2a58,0x159));const a960_0x3a57=function(_0x138d30,_0x2a5843){_0x138d30=_0x138d30-0x0;let _0x3a57e9=a960_0x2a58[_0x138d30];return _0x3a57e9;};const _0x4e1940=a960_0x3a57;'use strict';const util=require(_0x4e1940('0xc')),logger=require(_0x4e1940('0x20'))(_0x4e1940('0x18')),Sequence=function(){};Sequence[_0x4e1940('0x3')][_0x4e1940('0x2')]=function(_0xa2afa9){const _0x3b9905=_0x4e1940;this[_0x3b9905('0x9')]=this[_0x3b9905('0x9')]?this[_0x3b9905('0x9')][_0x3b9905('0x5')](_0xa2afa9):_0xa2afa9();};const Migration=function(_0x2848d8){const _0x1d65eb=_0x4e1940;this[_0x1d65eb('0xb')]=_0x2848d8,this[_0x1d65eb('0x22')]=new Sequence();};Migration['prototype'][_0x4e1940('0x24')]=function(_0x26b581,_0x3f9349,_0x534b58){const _0x31fa57=_0x4e1940,_0xd866a5=this;this[_0x31fa57('0x22')][_0x31fa57('0x2')](function(){const _0x5d26b7=_0x31fa57;return _0xd866a5['queryInterface']['changeColumn'](_0x26b581,_0x3f9349,_0x534b58)[_0x5d26b7('0x28')](function(){const _0x2f780f=_0x5d26b7;logger[_0x2f780f('0xe')](_0x2f780f('0x16'),_0x3f9349,_0x26b581);})[_0x5d26b7('0x1f')](function(_0x3ed1a3){const _0x11f79e=_0x5d26b7;logger[_0x11f79e('0xe')](JSON['stringify'](_0x3ed1a3));});});},Migration[_0x4e1940('0x3')]['addColumn']=function(_0x5a0ffe,_0x5365ca,_0xab2a1a){const _0x358888=_0x4e1940,_0x17b1e3=this;this[_0x358888('0x22')][_0x358888('0x2')](function(){const _0x465d64=_0x358888;return _0x17b1e3[_0x465d64('0xb')][_0x465d64('0x19')](_0x5a0ffe,_0x5365ca,_0xab2a1a)[_0x465d64('0x28')](function(){const _0x4f65f7=_0x465d64;logger['info'](_0x4f65f7('0x4'),_0x5365ca,_0x5a0ffe);})[_0x465d64('0x1f')](function(_0x219e08){const _0x10a051=_0x465d64;logger['info'](JSON[_0x10a051('0x17')](_0x219e08));});});},Migration[_0x4e1940('0x3')][_0x4e1940('0x2a')]=function(_0x9d7de6){const _0x486f44=_0x4e1940,_0x391a2c=this;this[_0x486f44('0x22')][_0x486f44('0x2')](function(){const _0x297841=_0x486f44;return _0x391a2c[_0x297841('0xb')][_0x297841('0x2a')](_0x9d7de6,{'force':!![]})[_0x297841('0x28')](function(){const _0x4a6315=_0x297841;logger[_0x4a6315('0xe')](_0x4a6315('0x29'),_0x9d7de6);})['catch'](function(_0x108acd){const _0x11aa76=_0x297841;logger[_0x11aa76('0xe')](JSON[_0x11aa76('0x17')](_0x108acd));});});},Migration['prototype']['addIndex']=function(_0x1aac64,_0x1873bd,_0x15df94){const _0x12dbbe=this;this['sequence']['enqueue'](function(){const _0x1dc186=a960_0x3a57;return _0x12dbbe['queryInterface'][_0x1dc186('0x11')](_0x1aac64,_0x1873bd,{'indexName':_0x15df94})['then'](function(){const _0xf87d49=_0x1dc186;logger[_0xf87d49('0xe')](_0xf87d49('0x15'),_0x1aac64,_0x1873bd[_0xf87d49('0x0')](','),_0x15df94);})['catch'](function(_0x26862e){const _0x5f37ad=_0x1dc186;logger[_0x5f37ad('0xe')](JSON[_0x5f37ad('0x17')](_0x26862e));});});},Migration[_0x4e1940('0x3')]['removeIndex']=function(_0x3427c2,_0xfa5f11){const _0x5a047b=_0x4e1940,_0x3c729d=this;this[_0x5a047b('0x22')]['enqueue'](function(){const _0x144f50=_0x5a047b;return _0x3c729d['queryInterface'][_0x144f50('0x13')](_0x3427c2,_0xfa5f11)[_0x144f50('0x28')](function(){const _0x484c32=_0x144f50;logger[_0x484c32('0xe')](_0x484c32('0x26'),_0x3427c2,_0xfa5f11);})[_0x144f50('0x1f')](function(_0x16b767){const _0x241ac3=_0x144f50;logger[_0x241ac3('0xe')](JSON[_0x241ac3('0x17')](_0x16b767));});});},Migration[_0x4e1940('0x3')]['query']=function(_0x595834){const _0x2bb690=_0x4e1940,_0x4a0eac=this;this[_0x2bb690('0x22')][_0x2bb690('0x2')](function(){const _0x487c53=_0x2bb690;return _0x4a0eac[_0x487c53('0xb')][_0x487c53('0x1c')][_0x487c53('0x1e')](_0x595834)['then'](function(){const _0x280326=_0x487c53;logger[_0x280326('0xe')]('query\x20%s',_0x595834);})['catch'](function(_0xb7353){const _0x1e72f3=_0x487c53;logger[_0x1e72f3('0xe')](JSON[_0x1e72f3('0x17')](_0xb7353));});});},Migration[_0x4e1940('0x3')][_0x4e1940('0x6')]=function(_0x3bea55,_0x396f5e){const _0x5a4438=_0x4e1940,_0x2b051e=this;this['sequence'][_0x5a4438('0x2')](function(){const _0x465871=_0x5a4438;return _0x2b051e[_0x465871('0xb')][_0x465871('0x6')](_0x3bea55,_0x396f5e)[_0x465871('0x28')](function(){const _0x2d14af=_0x465871;logger[_0x2d14af('0xe')](_0x2d14af('0x12'),_0x396f5e,_0x3bea55);})[_0x465871('0x1f')](function(_0x2a409c){const _0x2ecea1=_0x465871;logger[_0x2ecea1('0xe')](util['inspect'](_0x2a409c,{'showHidden':![],'depth':null}));});});},Migration[_0x4e1940('0x3')]['renameColumn']=function(_0x565cc7,_0x5c262f,_0x974cc4){const _0x405184=_0x4e1940,_0x31200e=this;this['sequence'][_0x405184('0x2')](function(){const _0x467d22=_0x405184;return _0x31200e[_0x467d22('0xb')][_0x467d22('0x8')](_0x565cc7,_0x5c262f,_0x974cc4)['then'](function(){const _0x4e5a25=_0x467d22;logger[_0x4e5a25('0xe')](_0x4e5a25('0xf'),_0x5c262f,_0x974cc4,_0x565cc7);})[_0x467d22('0x1f')](function(_0xcab272){const _0x1e19cb=_0x467d22;logger[_0x1e19cb('0xe')](util[_0x1e19cb('0x27')](_0xcab272,{'showHidden':![],'depth':null}));});});},Migration[_0x4e1940('0x3')][_0x4e1940('0x21')]=function(_0x52d315){const _0xcc58b9=_0x4e1940;this[_0xcc58b9('0x22')][_0xcc58b9('0x2')](function(){return _0x52d315();});},module[_0x4e1940('0x1a')]={'up':function(_0x144dd1,_0x5e0c73){return new Promise(function(_0x39000d){const _0x49c342=a960_0x3a57,_0x160ba0=new Migration(_0x144dd1);_0x160ba0[_0x49c342('0x24')](_0x49c342('0x25'),_0x49c342('0x1d'),{'type':_0x5e0c73[_0x49c342('0xa')](_0x49c342('0x23'),_0x49c342('0x10'),'classic+','SI','TI','GP')}),_0x160ba0['query']('UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27SI\x27\x20WHERE\x20smsMethod\x20=\x20\x27basic\x27'),_0x160ba0[_0x49c342('0x1e')](_0x49c342('0x14')),_0x160ba0[_0x49c342('0x1e')](_0x49c342('0x7')),_0x160ba0[_0x49c342('0x24')](_0x49c342('0x25'),_0x49c342('0x1d'),{'type':_0x5e0c73[_0x49c342('0xa')]('SI','TI','GP')}),_0x160ba0[_0x49c342('0x19')](_0x49c342('0x1'),_0x49c342('0x1b'),{'type':_0x5e0c73[_0x49c342('0xd')]}),_0x160ba0['final'](_0x39000d);});},'down':function(){}}; \ No newline at end of file +const a960_0x5808=['Removed\x20column\x20%s\x20from\x20%s','sms_accounts','tail','Added\x20column\x20%s\x20to\x20%s','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27TI\x27\x20WHERE\x20smsMethod\x20=\x20\x27classic\x27','removeColumn','smsMethod','addColumn','telegram','query\x20%s','ENUM','finally','then','final','renameColumn','catch','basic','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27GP\x27\x20WHERE\x20smsMethod\x20=\x20\x27classic+\x27','info','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27SI\x27\x20WHERE\x20smsMethod\x20=\x20\x27basic\x27','prototype','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','../config/logger','sequence','removeIndex','addIndex','classic','enqueue','inspect','query','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','queryInterface','removeIndex\x20%s\x20%s','dropTable'];(function(_0x2cd1b6,_0x5808c2){const _0x5640a2=function(_0x35a02b){while(--_0x35a02b){_0x2cd1b6['push'](_0x2cd1b6['shift']());}};_0x5640a2(++_0x5808c2);}(a960_0x5808,0xf3));const a960_0x5640=function(_0x2cd1b6,_0x5808c2){_0x2cd1b6=_0x2cd1b6-0x0;let _0x5640a2=a960_0x5808[_0x2cd1b6];return _0x5640a2;};const _0x2d2622=a960_0x5640;'use strict';const util=require('util'),logger=require(_0x2d2622('0x3'))('migration'),Sequence=function(){};Sequence['prototype'][_0x2d2622('0x8')]=function(_0x35a02b){const _0x45806d=_0x2d2622;this['tail']=this['tail']?this[_0x45806d('0x12')][_0x45806d('0x1b')](_0x35a02b):_0x35a02b();};const Migration=function(_0x484c0f){const _0x3a3d48=_0x2d2622;this[_0x3a3d48('0xd')]=_0x484c0f,this[_0x3a3d48('0x4')]=new Sequence();};Migration['prototype'][_0x2d2622('0xc')]=function(_0x3100f0,_0x5f4109,_0x51c0ca){const _0x33e147=_0x2d2622,_0x51f92d=this;this['sequence'][_0x33e147('0x8')](function(){const _0x390050=_0x33e147;return _0x51f92d[_0x390050('0xd')][_0x390050('0xc')](_0x3100f0,_0x5f4109,_0x51c0ca)[_0x390050('0x1c')](function(){const _0x3365a4=_0x390050;logger[_0x3365a4('0x22')](_0x3365a4('0xb'),_0x5f4109,_0x3100f0);})['catch'](function(_0x597722){const _0x3d3d72=_0x390050;logger[_0x3d3d72('0x22')](JSON[_0x3d3d72('0x2')](_0x597722));});});},Migration['prototype']['addColumn']=function(_0x4a883e,_0x107c98,_0xf72d5){const _0x2181a1=_0x2d2622,_0x7c30ad=this;this[_0x2181a1('0x4')][_0x2181a1('0x8')](function(){const _0x2b67c1=_0x2181a1;return _0x7c30ad[_0x2b67c1('0xd')][_0x2b67c1('0x17')](_0x4a883e,_0x107c98,_0xf72d5)['then'](function(){const _0x3bd745=_0x2b67c1;logger[_0x3bd745('0x22')](_0x3bd745('0x13'),_0x107c98,_0x4a883e);})[_0x2b67c1('0x1f')](function(_0x191b5b){const _0x375855=_0x2b67c1;logger[_0x375855('0x22')](JSON[_0x375855('0x2')](_0x191b5b));});});},Migration[_0x2d2622('0x24')][_0x2d2622('0xf')]=function(_0x15546f){const _0x32ff87=_0x2d2622,_0xecf26=this;this[_0x32ff87('0x4')][_0x32ff87('0x8')](function(){const _0x20b74b=_0x32ff87;return _0xecf26['queryInterface'][_0x20b74b('0xf')](_0x15546f,{'force':!![]})[_0x20b74b('0x1c')](function(){const _0x49e3c2=_0x20b74b;logger[_0x49e3c2('0x22')]('table\x20dropped\x20%s',_0x15546f);})['catch'](function(_0x3e03dc){const _0x4bf2be=_0x20b74b;logger['info'](JSON[_0x4bf2be('0x2')](_0x3e03dc));});});},Migration['prototype'][_0x2d2622('0x6')]=function(_0x57ffd7,_0x7b67a1,_0x35e75a){const _0x59fce0=_0x2d2622,_0xc400b9=this;this[_0x59fce0('0x4')][_0x59fce0('0x8')](function(){const _0x5e2a49=_0x59fce0;return _0xc400b9[_0x5e2a49('0xd')][_0x5e2a49('0x6')](_0x57ffd7,_0x7b67a1,{'indexName':_0x35e75a})[_0x5e2a49('0x1c')](function(){const _0x21aa89=_0x5e2a49;logger[_0x21aa89('0x22')]('addIndex\x20%s\x20%s\x20%s',_0x57ffd7,_0x7b67a1[_0x21aa89('0x0')](','),_0x35e75a);})[_0x5e2a49('0x1f')](function(_0x549702){const _0x3d424b=_0x5e2a49;logger[_0x3d424b('0x22')](JSON[_0x3d424b('0x2')](_0x549702));});});},Migration['prototype']['removeIndex']=function(_0x2c2b28,_0x5e9921){const _0x420e47=_0x2d2622,_0x18ef2d=this;this[_0x420e47('0x4')]['enqueue'](function(){const _0x52d714=_0x420e47;return _0x18ef2d['queryInterface'][_0x52d714('0x5')](_0x2c2b28,_0x5e9921)[_0x52d714('0x1c')](function(){const _0x2df7aa=_0x52d714;logger[_0x2df7aa('0x22')](_0x2df7aa('0xe'),_0x2c2b28,_0x5e9921);})[_0x52d714('0x1f')](function(_0x294e7b){const _0x13c0d1=_0x52d714;logger[_0x13c0d1('0x22')](JSON[_0x13c0d1('0x2')](_0x294e7b));});});},Migration[_0x2d2622('0x24')][_0x2d2622('0xa')]=function(_0x4d7264){const _0x2fdc5d=_0x2d2622,_0x5c7bc0=this;this[_0x2fdc5d('0x4')][_0x2fdc5d('0x8')](function(){const _0x1bf2ae=_0x2fdc5d;return _0x5c7bc0[_0x1bf2ae('0xd')]['sequelize']['query'](_0x4d7264)[_0x1bf2ae('0x1c')](function(){const _0x1c2829=_0x1bf2ae;logger[_0x1c2829('0x22')](_0x1c2829('0x19'),_0x4d7264);})[_0x1bf2ae('0x1f')](function(_0x5df400){const _0x343004=_0x1bf2ae;logger[_0x343004('0x22')](JSON[_0x343004('0x2')](_0x5df400));});});},Migration[_0x2d2622('0x24')]['removeColumn']=function(_0x11fe11,_0x510dd6){const _0x4a501c=_0x2d2622,_0x373df9=this;this[_0x4a501c('0x4')][_0x4a501c('0x8')](function(){const _0x48d788=_0x4a501c;return _0x373df9['queryInterface'][_0x48d788('0x15')](_0x11fe11,_0x510dd6)['then'](function(){const _0x1b87f3=_0x48d788;logger[_0x1b87f3('0x22')](_0x1b87f3('0x10'),_0x510dd6,_0x11fe11);})['catch'](function(_0x33f8e6){const _0x173946=_0x48d788;logger[_0x173946('0x22')](util[_0x173946('0x9')](_0x33f8e6,{'showHidden':![],'depth':null}));});});},Migration[_0x2d2622('0x24')][_0x2d2622('0x1e')]=function(_0x2e0445,_0x4ed56d,_0x527c87){const _0x4df927=_0x2d2622,_0x200724=this;this[_0x4df927('0x4')][_0x4df927('0x8')](function(){const _0x21eae6=_0x4df927;return _0x200724['queryInterface']['renameColumn'](_0x2e0445,_0x4ed56d,_0x527c87)[_0x21eae6('0x1c')](function(){const _0x3c5f86=_0x21eae6;logger[_0x3c5f86('0x22')](_0x3c5f86('0x1'),_0x4ed56d,_0x527c87,_0x2e0445);})[_0x21eae6('0x1f')](function(_0x32d8be){const _0x46ec4d=_0x21eae6;logger[_0x46ec4d('0x22')](util[_0x46ec4d('0x9')](_0x32d8be,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2d2622('0x1d')]=function(_0x141874){const _0x3235e3=_0x2d2622;this['sequence'][_0x3235e3('0x8')](function(){return _0x141874();});},module['exports']={'up':function(_0x346e05,_0x4fc348){return new Promise(function(_0x3a2c34){const _0x57d14b=a960_0x5640,_0x3e1ad5=new Migration(_0x346e05);_0x3e1ad5['changeColumn'](_0x57d14b('0x11'),'smsMethod',{'type':_0x4fc348[_0x57d14b('0x1a')](_0x57d14b('0x20'),_0x57d14b('0x7'),'classic+','SI','TI','GP')}),_0x3e1ad5[_0x57d14b('0xa')](_0x57d14b('0x23')),_0x3e1ad5[_0x57d14b('0xa')](_0x57d14b('0x14')),_0x3e1ad5[_0x57d14b('0xa')](_0x57d14b('0x21')),_0x3e1ad5[_0x57d14b('0xc')](_0x57d14b('0x11'),_0x57d14b('0x16'),{'type':_0x4fc348[_0x57d14b('0x1a')]('SI','TI','GP')}),_0x3e1ad5['addColumn']('cm_contacts',_0x57d14b('0x18'),{'type':_0x4fc348['STRING']}),_0x3e1ad5['final'](_0x3a2c34);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.82.js b/server/migrations/2.0.82.js index 1de452f..0985476 100644 --- a/server/migrations/2.0.82.js +++ b/server/migrations/2.0.82.js @@ -1 +1 @@ -const a961_0x8a50=['ENUM','Removed\x20column\x20%s\x20from\x20%s','sequelize','removeIndex','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','clicksend','clickatell','query','sequence','catch','changeColumn','info','dropTable','addIndex\x20%s\x20%s\x20%s','plivo','then','util','addColumn','query\x20%s','finally','../config/logger','inspect','removeColumn','renameColumn','prototype','apiKey','skebby','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING','final','removeIndex\x20%s\x20%s','type','tail','twilio','sms_accounts','csc','enqueue','stringify','queryInterface','join'];(function(_0x3b52cb,_0x8a5014){const _0x2028b5=function(_0x31d560){while(--_0x31d560){_0x3b52cb['push'](_0x3b52cb['shift']());}};_0x2028b5(++_0x8a5014);}(a961_0x8a50,0x1c3));const a961_0x2028=function(_0x3b52cb,_0x8a5014){_0x3b52cb=_0x3b52cb-0x0;let _0x2028b5=a961_0x8a50[_0x3b52cb];return _0x2028b5;};const _0x2fc226=a961_0x2028;'use strict';const util=require(_0x2fc226('0x11')),logger=require(_0x2fc226('0x15'))('migration'),Sequence=function(){};Sequence[_0x2fc226('0x19')][_0x2fc226('0x25')]=function(_0x31d560){const _0x19002e=_0x2fc226;this[_0x19002e('0x21')]=this['tail']?this[_0x19002e('0x21')][_0x19002e('0x14')](_0x31d560):_0x31d560();};const Migration=function(_0x296d92){const _0x58b34b=_0x2fc226;this[_0x58b34b('0x27')]=_0x296d92,this[_0x58b34b('0x9')]=new Sequence();};Migration[_0x2fc226('0x19')]['changeColumn']=function(_0x2e53e8,_0x421f96,_0x522678){const _0x275417=_0x2fc226,_0x775fe5=this;this[_0x275417('0x9')][_0x275417('0x25')](function(){const _0x2384e7=_0x275417;return _0x775fe5[_0x2384e7('0x27')][_0x2384e7('0xb')](_0x2e53e8,_0x421f96,_0x522678)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x421f96,_0x2e53e8);})[_0x2384e7('0xa')](function(_0x482d94){const _0x4149bb=_0x2384e7;logger[_0x4149bb('0xc')](JSON['stringify'](_0x482d94));});});},Migration[_0x2fc226('0x19')][_0x2fc226('0x12')]=function(_0x56a75a,_0x40b171,_0x539f02){const _0x485866=_0x2fc226,_0x12cd91=this;this['sequence'][_0x485866('0x25')](function(){const _0x2c7e9f=_0x485866;return _0x12cd91[_0x2c7e9f('0x27')][_0x2c7e9f('0x12')](_0x56a75a,_0x40b171,_0x539f02)[_0x2c7e9f('0x10')](function(){const _0x2c714b=_0x2c7e9f;logger['info'](_0x2c714b('0x4'),_0x40b171,_0x56a75a);})['catch'](function(_0x16e9ce){const _0x2100ce=_0x2c7e9f;logger[_0x2100ce('0xc')](JSON[_0x2100ce('0x26')](_0x16e9ce));});});},Migration[_0x2fc226('0x19')][_0x2fc226('0xd')]=function(_0x263e9a){const _0x2e0a2c=_0x2fc226,_0x5e9027=this;this[_0x2e0a2c('0x9')]['enqueue'](function(){const _0x375bca=_0x2e0a2c;return _0x5e9027[_0x375bca('0x27')][_0x375bca('0xd')](_0x263e9a,{'force':!![]})[_0x375bca('0x10')](function(){const _0x2aca45=_0x375bca;logger[_0x2aca45('0xc')](_0x2aca45('0x5'),_0x263e9a);})[_0x375bca('0xa')](function(_0x5d14db){const _0x493a78=_0x375bca;logger[_0x493a78('0xc')](JSON[_0x493a78('0x26')](_0x5d14db));});});},Migration[_0x2fc226('0x19')]['addIndex']=function(_0x1c777b,_0x16607f,_0x19fd1d){const _0x50205e=_0x2fc226,_0x580161=this;this[_0x50205e('0x9')][_0x50205e('0x25')](function(){const _0xf1f16e=_0x50205e;return _0x580161[_0xf1f16e('0x27')]['addIndex'](_0x1c777b,_0x16607f,{'indexName':_0x19fd1d})[_0xf1f16e('0x10')](function(){const _0x1e924d=_0xf1f16e;logger[_0x1e924d('0xc')](_0x1e924d('0xe'),_0x1c777b,_0x16607f[_0x1e924d('0x28')](','),_0x19fd1d);})[_0xf1f16e('0xa')](function(_0x546bf4){const _0x5a3543=_0xf1f16e;logger[_0x5a3543('0xc')](JSON[_0x5a3543('0x26')](_0x546bf4));});});},Migration[_0x2fc226('0x19')][_0x2fc226('0x3')]=function(_0x4a82d9,_0x3f20d0){const _0xb35ae9=_0x2fc226,_0x3500b9=this;this[_0xb35ae9('0x9')]['enqueue'](function(){const _0x19d2d6=_0xb35ae9;return _0x3500b9[_0x19d2d6('0x27')]['removeIndex'](_0x4a82d9,_0x3f20d0)[_0x19d2d6('0x10')](function(){const _0x24a668=_0x19d2d6;logger[_0x24a668('0xc')](_0x24a668('0x1f'),_0x4a82d9,_0x3f20d0);})[_0x19d2d6('0xa')](function(_0x1ce532){const _0x492d3c=_0x19d2d6;logger[_0x492d3c('0xc')](JSON[_0x492d3c('0x26')](_0x1ce532));});});},Migration['prototype'][_0x2fc226('0x8')]=function(_0x24ed73){const _0x4dad41=_0x2fc226,_0x42a2cb=this;this[_0x4dad41('0x9')][_0x4dad41('0x25')](function(){const _0x134eff=_0x4dad41;return _0x42a2cb[_0x134eff('0x27')][_0x134eff('0x2')][_0x134eff('0x8')](_0x24ed73)[_0x134eff('0x10')](function(){const _0x2f8668=_0x134eff;logger[_0x2f8668('0xc')](_0x2f8668('0x13'),_0x24ed73);})[_0x134eff('0xa')](function(_0x145aab){const _0x126f15=_0x134eff;logger[_0x126f15('0xc')](JSON[_0x126f15('0x26')](_0x145aab));});});},Migration['prototype']['removeColumn']=function(_0x124d39,_0x571162){const _0x5a1528=_0x2fc226,_0x20d5a7=this;this['sequence'][_0x5a1528('0x25')](function(){const _0x683966=_0x5a1528;return _0x20d5a7[_0x683966('0x27')][_0x683966('0x17')](_0x124d39,_0x571162)[_0x683966('0x10')](function(){const _0x55d903=_0x683966;logger[_0x55d903('0xc')](_0x55d903('0x1'),_0x571162,_0x124d39);})['catch'](function(_0x532500){const _0x12d1d1=_0x683966;logger[_0x12d1d1('0xc')](util[_0x12d1d1('0x16')](_0x532500,{'showHidden':![],'depth':null}));});});},Migration[_0x2fc226('0x19')][_0x2fc226('0x18')]=function(_0x218917,_0x1b28d7,_0x4fbd53){const _0x1c5a79=_0x2fc226,_0x434bd6=this;this['sequence'][_0x1c5a79('0x25')](function(){const _0x2ade3d=_0x1c5a79;return _0x434bd6[_0x2ade3d('0x27')]['renameColumn'](_0x218917,_0x1b28d7,_0x4fbd53)['then'](function(){const _0x2a8b1e=_0x2ade3d;logger[_0x2a8b1e('0xc')](_0x2a8b1e('0x1c'),_0x1b28d7,_0x4fbd53,_0x218917);})[_0x2ade3d('0xa')](function(_0x5b894c){const _0x3191d9=_0x2ade3d;logger[_0x3191d9('0xc')](util[_0x3191d9('0x16')](_0x5b894c,{'showHidden':![],'depth':null}));});});},Migration[_0x2fc226('0x19')][_0x2fc226('0x1e')]=function(_0x14e56e){this['sequence']['enqueue'](function(){return _0x14e56e();});},module['exports']={'up':function(_0x3affa0,_0x35b372){return new Promise(function(_0x52036e){const _0x5ee19d=a961_0x2028,_0x592a74=new Migration(_0x3affa0);_0x592a74['addColumn']('sms_accounts',_0x5ee19d('0x1a'),{'type':_0x35b372[_0x5ee19d('0x1d')]}),_0x592a74[_0x5ee19d('0xb')](_0x5ee19d('0x23'),_0x5ee19d('0x20'),{'type':_0x35b372[_0x5ee19d('0x0')](_0x5ee19d('0x22'),_0x5ee19d('0x1b'),'connectel',_0x5ee19d('0x6'),_0x5ee19d('0xf'),_0x5ee19d('0x7'),_0x5ee19d('0x24'))}),_0x592a74[_0x5ee19d('0x1e')](_0x52036e);});},'down':function(){}}; \ No newline at end of file +const a961_0xfcc7=['prototype','enqueue','query','addIndex','sequence','Removed\x20column\x20%s\x20from\x20%s','renameColumn','plivo','addIndex\x20%s\x20%s\x20%s','migration','clicksend','connectel','ENUM','final','info','then','inspect','sequelize','tail','Added\x20column\x20%s\x20to\x20%s','addColumn','util','type','join','dropTable','queryInterface','catch','../config/logger','query\x20%s','sms_accounts','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','csc','stringify','removeColumn','apiKey','changeColumn'];(function(_0x35128c,_0xfcc708){const _0x18df05=function(_0x4b0ee8){while(--_0x4b0ee8){_0x35128c['push'](_0x35128c['shift']());}};_0x18df05(++_0xfcc708);}(a961_0xfcc7,0xdd));const a961_0x18df=function(_0x35128c,_0xfcc708){_0x35128c=_0x35128c-0x0;let _0x18df05=a961_0xfcc7[_0x35128c];return _0x18df05;};const _0x56cb41=a961_0x18df;'use strict';const util=require(_0x56cb41('0x16')),logger=require(_0x56cb41('0x1c'))(_0x56cb41('0xa')),Sequence=function(){};Sequence[_0x56cb41('0x1')][_0x56cb41('0x2')]=function(_0x4b0ee8){const _0x38cb05=_0x56cb41;this['tail']=this[_0x38cb05('0x13')]?this[_0x38cb05('0x13')]['finally'](_0x4b0ee8):_0x4b0ee8();};const Migration=function(_0x3cf5c6){const _0x7e5fac=_0x56cb41;this[_0x7e5fac('0x1a')]=_0x3cf5c6,this[_0x7e5fac('0x5')]=new Sequence();};Migration[_0x56cb41('0x1')][_0x56cb41('0x0')]=function(_0x2a9720,_0x3680ba,_0x59728f){const _0x27101a=_0x56cb41,_0x475b14=this;this['sequence'][_0x27101a('0x2')](function(){const _0x5e8026=_0x27101a;return _0x475b14['queryInterface'][_0x5e8026('0x0')](_0x2a9720,_0x3680ba,_0x59728f)[_0x5e8026('0x10')](function(){const _0x4d1fee=_0x5e8026;logger[_0x4d1fee('0xf')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3680ba,_0x2a9720);})[_0x5e8026('0x1b')](function(_0x3519bd){const _0x4878d1=_0x5e8026;logger[_0x4878d1('0xf')](JSON[_0x4878d1('0x22')](_0x3519bd));});});},Migration['prototype'][_0x56cb41('0x15')]=function(_0x5d11dd,_0x1f8db4,_0x205e0c){const _0x54bbab=_0x56cb41,_0x34be35=this;this[_0x54bbab('0x5')][_0x54bbab('0x2')](function(){const _0xb0638d=_0x54bbab;return _0x34be35[_0xb0638d('0x1a')][_0xb0638d('0x15')](_0x5d11dd,_0x1f8db4,_0x205e0c)['then'](function(){const _0x1faaf5=_0xb0638d;logger[_0x1faaf5('0xf')](_0x1faaf5('0x14'),_0x1f8db4,_0x5d11dd);})[_0xb0638d('0x1b')](function(_0x5510cf){const _0x23d350=_0xb0638d;logger[_0x23d350('0xf')](JSON['stringify'](_0x5510cf));});});},Migration[_0x56cb41('0x1')][_0x56cb41('0x19')]=function(_0x29ad48){const _0x257509=_0x56cb41,_0x595ed9=this;this[_0x257509('0x5')]['enqueue'](function(){const _0x40cd98=_0x257509;return _0x595ed9['queryInterface']['dropTable'](_0x29ad48,{'force':!![]})[_0x40cd98('0x10')](function(){const _0x5a5f40=_0x40cd98;logger[_0x5a5f40('0xf')]('table\x20dropped\x20%s',_0x29ad48);})['catch'](function(_0x929fc9){const _0x232d8f=_0x40cd98;logger[_0x232d8f('0xf')](JSON['stringify'](_0x929fc9));});});},Migration[_0x56cb41('0x1')][_0x56cb41('0x4')]=function(_0x3a1ee2,_0x277cec,_0x3b6606){const _0x4b1185=this;this['sequence']['enqueue'](function(){const _0x3ed3c4=a961_0x18df;return _0x4b1185['queryInterface'][_0x3ed3c4('0x4')](_0x3a1ee2,_0x277cec,{'indexName':_0x3b6606})['then'](function(){const _0x4e305c=_0x3ed3c4;logger[_0x4e305c('0xf')](_0x4e305c('0x9'),_0x3a1ee2,_0x277cec[_0x4e305c('0x18')](','),_0x3b6606);})['catch'](function(_0x4b2041){const _0x1cf975=_0x3ed3c4;logger['info'](JSON[_0x1cf975('0x22')](_0x4b2041));});});},Migration[_0x56cb41('0x1')][_0x56cb41('0x1f')]=function(_0x3b0f34,_0x47043c){const _0x205829=_0x56cb41,_0x45ca3b=this;this[_0x205829('0x5')][_0x205829('0x2')](function(){const _0x2eb571=_0x205829;return _0x45ca3b[_0x2eb571('0x1a')][_0x2eb571('0x1f')](_0x3b0f34,_0x47043c)[_0x2eb571('0x10')](function(){const _0x498ae2=_0x2eb571;logger[_0x498ae2('0xf')]('removeIndex\x20%s\x20%s',_0x3b0f34,_0x47043c);})[_0x2eb571('0x1b')](function(_0x54fe20){const _0x8b37f8=_0x2eb571;logger[_0x8b37f8('0xf')](JSON[_0x8b37f8('0x22')](_0x54fe20));});});},Migration[_0x56cb41('0x1')]['query']=function(_0x5bfba6){const _0x5bda93=_0x56cb41,_0x35bd0a=this;this['sequence'][_0x5bda93('0x2')](function(){const _0x1f86ee=_0x5bda93;return _0x35bd0a['queryInterface'][_0x1f86ee('0x12')][_0x1f86ee('0x3')](_0x5bfba6)[_0x1f86ee('0x10')](function(){const _0x2671de=_0x1f86ee;logger[_0x2671de('0xf')](_0x2671de('0x1d'),_0x5bfba6);})[_0x1f86ee('0x1b')](function(_0x18c602){const _0x242508=_0x1f86ee;logger['info'](JSON[_0x242508('0x22')](_0x18c602));});});},Migration[_0x56cb41('0x1')][_0x56cb41('0x23')]=function(_0x3fcafe,_0x3fcaa6){const _0x17eedc=_0x56cb41,_0x571a43=this;this['sequence'][_0x17eedc('0x2')](function(){const _0x1beb7d=_0x17eedc;return _0x571a43[_0x1beb7d('0x1a')][_0x1beb7d('0x23')](_0x3fcafe,_0x3fcaa6)[_0x1beb7d('0x10')](function(){const _0x3c90b9=_0x1beb7d;logger[_0x3c90b9('0xf')](_0x3c90b9('0x6'),_0x3fcaa6,_0x3fcafe);})[_0x1beb7d('0x1b')](function(_0x5cbb3f){const _0x519835=_0x1beb7d;logger['info'](util[_0x519835('0x11')](_0x5cbb3f,{'showHidden':![],'depth':null}));});});},Migration[_0x56cb41('0x1')]['renameColumn']=function(_0xb04a8b,_0x2ac599,_0x35e57c){const _0x5a87b2=_0x56cb41,_0x3b6b29=this;this[_0x5a87b2('0x5')][_0x5a87b2('0x2')](function(){const _0x1f11cb=_0x5a87b2;return _0x3b6b29[_0x1f11cb('0x1a')][_0x1f11cb('0x7')](_0xb04a8b,_0x2ac599,_0x35e57c)[_0x1f11cb('0x10')](function(){const _0x116a92=_0x1f11cb;logger[_0x116a92('0xf')](_0x116a92('0x20'),_0x2ac599,_0x35e57c,_0xb04a8b);})[_0x1f11cb('0x1b')](function(_0x221b91){const _0x570d55=_0x1f11cb;logger[_0x570d55('0xf')](util[_0x570d55('0x11')](_0x221b91,{'showHidden':![],'depth':null}));});});},Migration[_0x56cb41('0x1')][_0x56cb41('0xe')]=function(_0x4b829d){const _0x77aff5=_0x56cb41;this[_0x77aff5('0x5')][_0x77aff5('0x2')](function(){return _0x4b829d();});},module['exports']={'up':function(_0x2187a2,_0x40b685){return new Promise(function(_0x3fa399){const _0x393a19=a961_0x18df,_0x217b60=new Migration(_0x2187a2);_0x217b60[_0x393a19('0x15')](_0x393a19('0x1e'),_0x393a19('0x24'),{'type':_0x40b685['STRING']}),_0x217b60[_0x393a19('0x0')](_0x393a19('0x1e'),_0x393a19('0x17'),{'type':_0x40b685[_0x393a19('0xd')]('twilio','skebby',_0x393a19('0xc'),_0x393a19('0xb'),_0x393a19('0x8'),'clickatell',_0x393a19('0x21'))}),_0x217b60[_0x393a19('0xe')](_0x3fa399);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.83.js b/server/migrations/2.0.83.js index 9007df4..54a8a09 100644 --- a/server/migrations/2.0.83.js +++ b/server/migrations/2.0.83.js @@ -1 +1 @@ -const a962_0x109a=['final','report_queue','sequelize','fb_data','join','migration','addColumn','info','query\x20%s','clicksend','removeIndex','inspect','OwnerId','query','connectel','../config/logger','renameColumn','table\x20dropped\x20%s','finally','cm_contacts','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','tail','queuecallerenterreason','sms_accounts','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','STRING','sequence','removeColumn','changeColumn','catch','util','prototype','enqueue','then','INTEGER','baseUrl','twilio','plivo','queryInterface','skebby','dropTable','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','type','csc','addIndex','clickatell'];(function(_0x3aae00,_0x109abd){const _0x174a1c=function(_0xbc6a2f){while(--_0xbc6a2f){_0x3aae00['push'](_0x3aae00['shift']());}};_0x174a1c(++_0x109abd);}(a962_0x109a,0x162));const a962_0x174a=function(_0x3aae00,_0x109abd){_0x3aae00=_0x3aae00-0x0;let _0x174a1c=a962_0x109a[_0x3aae00];return _0x174a1c;};const _0x234aa5=a962_0x174a;'use strict';const util=require(_0x234aa5('0x14')),logger=require(_0x234aa5('0x4'))(_0x234aa5('0x2b')),Sequence=function(){};Sequence[_0x234aa5('0x15')][_0x234aa5('0x16')]=function(_0xbc6a2f){const _0x2d87b1=_0x234aa5;this[_0x2d87b1('0xa')]=this[_0x2d87b1('0xa')]?this[_0x2d87b1('0xa')][_0x2d87b1('0x7')](_0xbc6a2f):_0xbc6a2f();};const Migration=function(_0x26c580){const _0x20c73b=_0x234aa5;this['queryInterface']=_0x26c580,this[_0x20c73b('0x10')]=new Sequence();};Migration[_0x234aa5('0x15')][_0x234aa5('0x12')]=function(_0x540470,_0x41f7ca,_0x8185c7){const _0x224cbb=_0x234aa5,_0x59d41f=this;this[_0x224cbb('0x10')][_0x224cbb('0x16')](function(){const _0xeba534=_0x224cbb;return _0x59d41f[_0xeba534('0x1c')]['changeColumn'](_0x540470,_0x41f7ca,_0x8185c7)['then'](function(){const _0x2e32f4=_0xeba534;logger[_0x2e32f4('0x2d')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x41f7ca,_0x540470);})[_0xeba534('0x13')](function(_0x502a69){const _0x5b5eeb=_0xeba534;logger[_0x5b5eeb('0x2d')](JSON[_0x5b5eeb('0x21')](_0x502a69));});});},Migration[_0x234aa5('0x15')][_0x234aa5('0x2c')]=function(_0x5925d8,_0x3a0716,_0x9803fc){const _0x1d0d1b=_0x234aa5,_0x22086a=this;this[_0x1d0d1b('0x10')]['enqueue'](function(){const _0x52fd4c=_0x1d0d1b;return _0x22086a['queryInterface']['addColumn'](_0x5925d8,_0x3a0716,_0x9803fc)[_0x52fd4c('0x17')](function(){const _0x298380=_0x52fd4c;logger[_0x298380('0x2d')](_0x298380('0xe'),_0x3a0716,_0x5925d8);})['catch'](function(_0x51909e){const _0x18fa2e=_0x52fd4c;logger['info'](JSON[_0x18fa2e('0x21')](_0x51909e));});});},Migration[_0x234aa5('0x15')][_0x234aa5('0x1e')]=function(_0xdd5afd){const _0x30745b=_0x234aa5,_0x16d782=this;this[_0x30745b('0x10')][_0x30745b('0x16')](function(){const _0x1c0021=_0x30745b;return _0x16d782['queryInterface']['dropTable'](_0xdd5afd,{'force':!![]})['then'](function(){const _0x460c16=a962_0x174a;logger[_0x460c16('0x2d')](_0x460c16('0x6'),_0xdd5afd);})[_0x1c0021('0x13')](function(_0xf597ad){const _0x17ea66=_0x1c0021;logger['info'](JSON[_0x17ea66('0x21')](_0xf597ad));});});},Migration[_0x234aa5('0x15')]['addIndex']=function(_0x3701a0,_0x44d30f,_0x43ea6c){const _0x3fdf3a=_0x234aa5,_0x439c31=this;this['sequence'][_0x3fdf3a('0x16')](function(){const _0x348521=_0x3fdf3a;return _0x439c31[_0x348521('0x1c')][_0x348521('0x24')](_0x3701a0,_0x44d30f,{'indexName':_0x43ea6c})[_0x348521('0x17')](function(){const _0x3e8787=_0x348521;logger[_0x3e8787('0x2d')]('addIndex\x20%s\x20%s\x20%s',_0x3701a0,_0x44d30f[_0x3e8787('0x2a')](','),_0x43ea6c);})[_0x348521('0x13')](function(_0x287fe3){const _0x323138=_0x348521;logger[_0x323138('0x2d')](JSON[_0x323138('0x21')](_0x287fe3));});});},Migration[_0x234aa5('0x15')][_0x234aa5('0x30')]=function(_0x14310d,_0x4279aa){const _0x109a45=_0x234aa5,_0x2928d9=this;this[_0x109a45('0x10')]['enqueue'](function(){const _0x3835a2=_0x109a45;return _0x2928d9[_0x3835a2('0x1c')]['removeIndex'](_0x14310d,_0x4279aa)[_0x3835a2('0x17')](function(){const _0x43037a=_0x3835a2;logger[_0x43037a('0x2d')](_0x43037a('0x1f'),_0x14310d,_0x4279aa);})['catch'](function(_0x1686e5){const _0x161aa7=_0x3835a2;logger[_0x161aa7('0x2d')](JSON['stringify'](_0x1686e5));});});},Migration[_0x234aa5('0x15')][_0x234aa5('0x2')]=function(_0x573f18){const _0x340cd5=_0x234aa5,_0x34de35=this;this[_0x340cd5('0x10')][_0x340cd5('0x16')](function(){const _0x344b65=_0x340cd5;return _0x34de35[_0x344b65('0x1c')][_0x344b65('0x28')][_0x344b65('0x2')](_0x573f18)['then'](function(){const _0x139f42=_0x344b65;logger[_0x139f42('0x2d')](_0x139f42('0x2e'),_0x573f18);})[_0x344b65('0x13')](function(_0x4bfcad){const _0x284a72=_0x344b65;logger[_0x284a72('0x2d')](JSON['stringify'](_0x4bfcad));});});},Migration['prototype'][_0x234aa5('0x11')]=function(_0x31f95b,_0x4bccde){const _0x312600=_0x234aa5,_0x2488b0=this;this['sequence'][_0x312600('0x16')](function(){const _0x40de51=_0x312600;return _0x2488b0[_0x40de51('0x1c')][_0x40de51('0x11')](_0x31f95b,_0x4bccde)[_0x40de51('0x17')](function(){const _0x5e0a2d=_0x40de51;logger[_0x5e0a2d('0x2d')](_0x5e0a2d('0xd'),_0x4bccde,_0x31f95b);})[_0x40de51('0x13')](function(_0xbb678d){const _0x1e5999=_0x40de51;logger['info'](util[_0x1e5999('0x0')](_0xbb678d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x234aa5('0x5')]=function(_0x5d81c3,_0x1098c0,_0x52cd68){const _0x24b616=_0x234aa5,_0x23cca9=this;this[_0x24b616('0x10')][_0x24b616('0x16')](function(){const _0x4b3003=_0x24b616;return _0x23cca9[_0x4b3003('0x1c')][_0x4b3003('0x5')](_0x5d81c3,_0x1098c0,_0x52cd68)[_0x4b3003('0x17')](function(){const _0x20d932=_0x4b3003;logger[_0x20d932('0x2d')](_0x20d932('0x20'),_0x1098c0,_0x52cd68,_0x5d81c3);})['catch'](function(_0x515fcb){const _0x48d587=_0x4b3003;logger[_0x48d587('0x2d')](util[_0x48d587('0x0')](_0x515fcb,{'showHidden':![],'depth':null}));});});},Migration[_0x234aa5('0x15')][_0x234aa5('0x26')]=function(_0xedcf33){const _0x15e96d=_0x234aa5;this[_0x15e96d('0x10')][_0x15e96d('0x16')](function(){return _0xedcf33();});},module['exports']={'up':function(_0x171218,_0x37e595){return new Promise(function(_0x1a775f){const _0x9aac8b=a962_0x174a,_0x2ff50b=new Migration(_0x171218);_0x2ff50b[_0x9aac8b('0x2c')]('cm_hopper',_0x9aac8b('0x1'),{'type':_0x37e595['INTEGER'](0xb)}),_0x2ff50b['query'](_0x9aac8b('0x9')),_0x2ff50b[_0x9aac8b('0x2c')](_0x9aac8b('0x8'),_0x9aac8b('0x29'),{'type':_0x37e595[_0x9aac8b('0xf')]}),_0x2ff50b[_0x9aac8b('0x12')](_0x9aac8b('0xc'),_0x9aac8b('0x22'),{'type':_0x37e595['ENUM'](_0x9aac8b('0x1a'),_0x9aac8b('0x1d'),_0x9aac8b('0x3'),_0x9aac8b('0x2f'),_0x9aac8b('0x1b'),_0x9aac8b('0x25'),_0x9aac8b('0x23'),'infobip')}),_0x2ff50b[_0x9aac8b('0x2c')]('sms_accounts',_0x9aac8b('0x19'),{'type':_0x37e595[_0x9aac8b('0xf')]}),_0x2ff50b['addColumn'](_0x9aac8b('0x27'),_0x9aac8b('0xb'),{'type':_0x37e595[_0x9aac8b('0x18')],'defaultValue':0x0}),_0x2ff50b[_0x9aac8b('0x26')](_0x1a775f);});},'down':function(){}}; \ No newline at end of file +const a962_0x5e53=['report_queue','query\x20%s','type','finally','ENUM','addColumn','removeColumn','dropTable','cm_contacts','twilio','enqueue','clickatell','removeIndex\x20%s\x20%s','prototype','queryInterface','infobip','renameColumn','sms_accounts','sequence','OwnerId','skebby','INTEGER','queuecallerenterreason','join','info','csc','util','catch','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','connectel','query','migration','addIndex','Removed\x20column\x20%s\x20from\x20%s','inspect','sequelize','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','fb_data','baseUrl','STRING','final','tail','changeColumn','stringify','../config/logger','addIndex\x20%s\x20%s\x20%s','then'];(function(_0x180718,_0x5e5381){const _0x28ff29=function(_0x29135d){while(--_0x29135d){_0x180718['push'](_0x180718['shift']());}};_0x28ff29(++_0x5e5381);}(a962_0x5e53,0x1ab));const a962_0x28ff=function(_0x180718,_0x5e5381){_0x180718=_0x180718-0x0;let _0x28ff29=a962_0x5e53[_0x180718];return _0x28ff29;};const _0xb55a86=a962_0x28ff;'use strict';const util=require(_0xb55a86('0x31')),logger=require(_0xb55a86('0x14'))(_0xb55a86('0x6')),Sequence=function(){};Sequence[_0xb55a86('0x24')][_0xb55a86('0x21')]=function(_0x29135d){const _0x2b31f4=_0xb55a86;this[_0x2b31f4('0x11')]=this[_0x2b31f4('0x11')]?this['tail'][_0x2b31f4('0x1a')](_0x29135d):_0x29135d();};const Migration=function(_0x401d60){const _0xc544ad=_0xb55a86;this['queryInterface']=_0x401d60,this[_0xc544ad('0x29')]=new Sequence();};Migration[_0xb55a86('0x24')]['changeColumn']=function(_0x31aec7,_0xa43829,_0x5031af){const _0x2006aa=this;this['sequence']['enqueue'](function(){const _0x53fcc3=a962_0x28ff;return _0x2006aa['queryInterface'][_0x53fcc3('0x12')](_0x31aec7,_0xa43829,_0x5031af)[_0x53fcc3('0x16')](function(){const _0x5ecdb2=_0x53fcc3;logger[_0x5ecdb2('0x2f')](_0x5ecdb2('0xc'),_0xa43829,_0x31aec7);})[_0x53fcc3('0x0')](function(_0x2c9977){const _0x54fc42=_0x53fcc3;logger[_0x54fc42('0x2f')](JSON[_0x54fc42('0x13')](_0x2c9977));});});},Migration[_0xb55a86('0x24')][_0xb55a86('0x1c')]=function(_0x487bf8,_0x23b45a,_0x43d550){const _0x207507=_0xb55a86,_0x1f37b5=this;this[_0x207507('0x29')]['enqueue'](function(){const _0x2bad9a=_0x207507;return _0x1f37b5[_0x2bad9a('0x25')][_0x2bad9a('0x1c')](_0x487bf8,_0x23b45a,_0x43d550)[_0x2bad9a('0x16')](function(){const _0x4d7b87=_0x2bad9a;logger[_0x4d7b87('0x2f')](_0x4d7b87('0x1'),_0x23b45a,_0x487bf8);})[_0x2bad9a('0x0')](function(_0x401fdb){const _0x380545=_0x2bad9a;logger[_0x380545('0x2f')](JSON[_0x380545('0x13')](_0x401fdb));});});},Migration[_0xb55a86('0x24')][_0xb55a86('0x1e')]=function(_0x5135fd){const _0xcba34b=_0xb55a86,_0x1eb9a0=this;this[_0xcba34b('0x29')][_0xcba34b('0x21')](function(){const _0x35ade3=_0xcba34b;return _0x1eb9a0[_0x35ade3('0x25')][_0x35ade3('0x1e')](_0x5135fd,{'force':!![]})[_0x35ade3('0x16')](function(){const _0x101e7a=_0x35ade3;logger[_0x101e7a('0x2f')](_0x101e7a('0x2'),_0x5135fd);})[_0x35ade3('0x0')](function(_0x185a8f){const _0x10713c=_0x35ade3;logger[_0x10713c('0x2f')](JSON[_0x10713c('0x13')](_0x185a8f));});});},Migration[_0xb55a86('0x24')]['addIndex']=function(_0xe580be,_0x38fd47,_0x3a86bc){const _0x3e4432=_0xb55a86,_0x5260bc=this;this[_0x3e4432('0x29')][_0x3e4432('0x21')](function(){const _0x4e39fd=_0x3e4432;return _0x5260bc[_0x4e39fd('0x25')][_0x4e39fd('0x7')](_0xe580be,_0x38fd47,{'indexName':_0x3a86bc})[_0x4e39fd('0x16')](function(){const _0x4d8625=_0x4e39fd;logger[_0x4d8625('0x2f')](_0x4d8625('0x15'),_0xe580be,_0x38fd47[_0x4d8625('0x2e')](','),_0x3a86bc);})['catch'](function(_0x273588){const _0x56f5cd=_0x4e39fd;logger['info'](JSON[_0x56f5cd('0x13')](_0x273588));});});},Migration[_0xb55a86('0x24')][_0xb55a86('0xb')]=function(_0x4540b6,_0x4a06a6){const _0x43e78a=_0xb55a86,_0xc5fa8c=this;this['sequence'][_0x43e78a('0x21')](function(){const _0x2c8350=_0x43e78a;return _0xc5fa8c[_0x2c8350('0x25')][_0x2c8350('0xb')](_0x4540b6,_0x4a06a6)['then'](function(){const _0x534188=_0x2c8350;logger[_0x534188('0x2f')](_0x534188('0x23'),_0x4540b6,_0x4a06a6);})[_0x2c8350('0x0')](function(_0x4e425d){const _0x810598=_0x2c8350;logger['info'](JSON[_0x810598('0x13')](_0x4e425d));});});},Migration['prototype']['query']=function(_0x10c5ec){const _0xd7f1cf=_0xb55a86,_0x45c892=this;this[_0xd7f1cf('0x29')][_0xd7f1cf('0x21')](function(){const _0x57af56=_0xd7f1cf;return _0x45c892[_0x57af56('0x25')][_0x57af56('0xa')][_0x57af56('0x5')](_0x10c5ec)['then'](function(){const _0x499ce4=_0x57af56;logger['info'](_0x499ce4('0x18'),_0x10c5ec);})[_0x57af56('0x0')](function(_0x2d9137){const _0x111252=_0x57af56;logger[_0x111252('0x2f')](JSON[_0x111252('0x13')](_0x2d9137));});});},Migration[_0xb55a86('0x24')][_0xb55a86('0x1d')]=function(_0x27855f,_0x2fd9fc){const _0x331ee9=_0xb55a86,_0x1877e7=this;this[_0x331ee9('0x29')][_0x331ee9('0x21')](function(){const _0x2d6f49=_0x331ee9;return _0x1877e7[_0x2d6f49('0x25')][_0x2d6f49('0x1d')](_0x27855f,_0x2fd9fc)[_0x2d6f49('0x16')](function(){const _0x4a4faf=_0x2d6f49;logger['info'](_0x4a4faf('0x8'),_0x2fd9fc,_0x27855f);})['catch'](function(_0x4db06d){const _0x4113d5=_0x2d6f49;logger[_0x4113d5('0x2f')](util['inspect'](_0x4db06d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xb55a86('0x27')]=function(_0x1fba65,_0x44bbde,_0x951b1d){const _0x4a523c=_0xb55a86,_0x507cc8=this;this['sequence'][_0x4a523c('0x21')](function(){const _0x477f3a=_0x4a523c;return _0x507cc8[_0x477f3a('0x25')][_0x477f3a('0x27')](_0x1fba65,_0x44bbde,_0x951b1d)[_0x477f3a('0x16')](function(){const _0x258dbc=_0x477f3a;logger['info'](_0x258dbc('0x3'),_0x44bbde,_0x951b1d,_0x1fba65);})[_0x477f3a('0x0')](function(_0x1c0514){const _0x491358=_0x477f3a;logger[_0x491358('0x2f')](util[_0x491358('0x9')](_0x1c0514,{'showHidden':![],'depth':null}));});});},Migration[_0xb55a86('0x24')]['final']=function(_0x25ee61){const _0x329a80=_0xb55a86;this[_0x329a80('0x29')]['enqueue'](function(){return _0x25ee61();});},module['exports']={'up':function(_0x11de73,_0x4aff86){return new Promise(function(_0x3b3df2){const _0x45fb4d=a962_0x28ff,_0x52b7f6=new Migration(_0x11de73);_0x52b7f6[_0x45fb4d('0x1c')]('cm_hopper',_0x45fb4d('0x2a'),{'type':_0x4aff86[_0x45fb4d('0x2c')](0xb)}),_0x52b7f6[_0x45fb4d('0x5')]('ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL'),_0x52b7f6[_0x45fb4d('0x1c')](_0x45fb4d('0x1f'),_0x45fb4d('0xd'),{'type':_0x4aff86[_0x45fb4d('0xf')]}),_0x52b7f6['changeColumn']('sms_accounts',_0x45fb4d('0x19'),{'type':_0x4aff86[_0x45fb4d('0x1b')](_0x45fb4d('0x20'),_0x45fb4d('0x2b'),_0x45fb4d('0x4'),'clicksend','plivo',_0x45fb4d('0x22'),_0x45fb4d('0x30'),_0x45fb4d('0x26'))}),_0x52b7f6[_0x45fb4d('0x1c')](_0x45fb4d('0x28'),_0x45fb4d('0xe'),{'type':_0x4aff86[_0x45fb4d('0xf')]}),_0x52b7f6[_0x45fb4d('0x1c')](_0x45fb4d('0x17'),_0x45fb4d('0x2d'),{'type':_0x4aff86[_0x45fb4d('0x2c')],'defaultValue':0x0}),_0x52b7f6[_0x45fb4d('0x10')](_0x3b3df2);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.84.js b/server/migrations/2.0.84.js index 13430b8..188966b 100644 --- a/server/migrations/2.0.84.js +++ b/server/migrations/2.0.84.js @@ -1 +1 @@ -const a963_0x3dd7=['query','info','prototype','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s','enqueue','Removed\x20column\x20%s\x20from\x20%s','exports','join','dropTable','Added\x20column\x20%s\x20to\x20%s','sequence','tail','then','addColumn','renameColumn','finally','stringify','migration','changeColumn','catch','removeIndex','table\x20dropped\x20%s','inspect','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','removeColumn','final'];(function(_0x29717c,_0x3dd70a){const _0x4d141f=function(_0x521328){while(--_0x521328){_0x29717c['push'](_0x29717c['shift']());}};_0x4d141f(++_0x3dd70a);}(a963_0x3dd7,0x1a1));const a963_0x4d14=function(_0x29717c,_0x3dd70a){_0x29717c=_0x29717c-0x0;let _0x4d141f=a963_0x3dd7[_0x29717c];return _0x4d141f;};const _0x5bb616=a963_0x4d14;'use strict';const util=require(_0x5bb616('0x1c')),logger=require('../config/logger')(_0x5bb616('0x11')),Sequence=function(){};Sequence[_0x5bb616('0x1')][_0x5bb616('0x4')]=function(_0x521328){const _0x152f71=_0x5bb616;this['tail']=this[_0x152f71('0xb')]?this[_0x152f71('0xb')][_0x152f71('0xf')](_0x521328):_0x521328();};const Migration=function(_0x2b054a){const _0x4c2637=_0x5bb616;this['queryInterface']=_0x2b054a,this[_0x4c2637('0xa')]=new Sequence();};Migration[_0x5bb616('0x1')]['changeColumn']=function(_0x47b28c,_0x33afad,_0x4e223b){const _0x4c879a=_0x5bb616,_0x4a3eae=this;this[_0x4c879a('0xa')][_0x4c879a('0x4')](function(){const _0x1e3ac0=_0x4c879a;return _0x4a3eae['queryInterface'][_0x1e3ac0('0x12')](_0x47b28c,_0x33afad,_0x4e223b)[_0x1e3ac0('0xc')](function(){const _0x327173=_0x1e3ac0;logger[_0x327173('0x0')](_0x327173('0x18'),_0x33afad,_0x47b28c);})[_0x1e3ac0('0x13')](function(_0x1b0700){const _0x3b6bf4=_0x1e3ac0;logger[_0x3b6bf4('0x0')](JSON['stringify'](_0x1b0700));});});},Migration[_0x5bb616('0x1')][_0x5bb616('0xd')]=function(_0x15d4d0,_0x1c85f3,_0x5258e8){const _0x7bf7e2=_0x5bb616,_0x941d9e=this;this[_0x7bf7e2('0xa')][_0x7bf7e2('0x4')](function(){const _0x33ec66=_0x7bf7e2;return _0x941d9e[_0x33ec66('0x17')][_0x33ec66('0xd')](_0x15d4d0,_0x1c85f3,_0x5258e8)[_0x33ec66('0xc')](function(){const _0x2a32a2=_0x33ec66;logger[_0x2a32a2('0x0')](_0x2a32a2('0x9'),_0x1c85f3,_0x15d4d0);})[_0x33ec66('0x13')](function(_0x36b265){const _0x5f3ec1=_0x33ec66;logger[_0x5f3ec1('0x0')](JSON[_0x5f3ec1('0x10')](_0x36b265));});});},Migration[_0x5bb616('0x1')]['dropTable']=function(_0x5503b6){const _0x6efbf1=_0x5bb616,_0x3871e8=this;this[_0x6efbf1('0xa')]['enqueue'](function(){const _0x273158=_0x6efbf1;return _0x3871e8[_0x273158('0x17')][_0x273158('0x8')](_0x5503b6,{'force':!![]})[_0x273158('0xc')](function(){const _0x5563e9=_0x273158;logger[_0x5563e9('0x0')](_0x5563e9('0x15'),_0x5503b6);})[_0x273158('0x13')](function(_0x2107df){logger['info'](JSON['stringify'](_0x2107df));});});},Migration[_0x5bb616('0x1')][_0x5bb616('0x1a')]=function(_0xa3fc09,_0x237781,_0x1245fa){const _0x94bdbb=_0x5bb616,_0x3404d3=this;this[_0x94bdbb('0xa')][_0x94bdbb('0x4')](function(){const _0x3ceba4=_0x94bdbb;return _0x3404d3['queryInterface'][_0x3ceba4('0x1a')](_0xa3fc09,_0x237781,{'indexName':_0x1245fa})[_0x3ceba4('0xc')](function(){const _0x2b333f=_0x3ceba4;logger[_0x2b333f('0x0')](_0x2b333f('0x3'),_0xa3fc09,_0x237781[_0x2b333f('0x7')](','),_0x1245fa);})['catch'](function(_0xebb68){const _0x4b9734=_0x3ceba4;logger[_0x4b9734('0x0')](JSON[_0x4b9734('0x10')](_0xebb68));});});},Migration['prototype'][_0x5bb616('0x14')]=function(_0x268f97,_0x7d7b20){const _0x1886f0=_0x5bb616,_0x3c816c=this;this['sequence'][_0x1886f0('0x4')](function(){const _0x387222=_0x1886f0;return _0x3c816c[_0x387222('0x17')][_0x387222('0x14')](_0x268f97,_0x7d7b20)['then'](function(){const _0x562a7f=_0x387222;logger['info'](_0x562a7f('0x2'),_0x268f97,_0x7d7b20);})[_0x387222('0x13')](function(_0x33e3bd){const _0x5c120c=_0x387222;logger[_0x5c120c('0x0')](JSON[_0x5c120c('0x10')](_0x33e3bd));});});},Migration[_0x5bb616('0x1')][_0x5bb616('0x1f')]=function(_0x561534){const _0x2c631c=_0x5bb616,_0x4ce8ce=this;this['sequence'][_0x2c631c('0x4')](function(){const _0x421e30=_0x2c631c;return _0x4ce8ce['queryInterface'][_0x421e30('0x19')]['query'](_0x561534)['then'](function(){const _0x4823df=_0x421e30;logger[_0x4823df('0x0')]('query\x20%s',_0x561534);})[_0x421e30('0x13')](function(_0x34a51e){const _0x519348=_0x421e30;logger['info'](JSON[_0x519348('0x10')](_0x34a51e));});});},Migration[_0x5bb616('0x1')]['removeColumn']=function(_0x4cb157,_0xe8e627){const _0x3beb03=_0x5bb616,_0x5e04d2=this;this[_0x3beb03('0xa')][_0x3beb03('0x4')](function(){const _0x3f8766=_0x3beb03;return _0x5e04d2[_0x3f8766('0x17')][_0x3f8766('0x1d')](_0x4cb157,_0xe8e627)[_0x3f8766('0xc')](function(){const _0x553ec0=_0x3f8766;logger[_0x553ec0('0x0')](_0x553ec0('0x5'),_0xe8e627,_0x4cb157);})[_0x3f8766('0x13')](function(_0x1748fa){const _0x5f0a55=_0x3f8766;logger['info'](util[_0x5f0a55('0x16')](_0x1748fa,{'showHidden':![],'depth':null}));});});},Migration[_0x5bb616('0x1')][_0x5bb616('0xe')]=function(_0x4fad78,_0x28ca5e,_0x3427dd){const _0x1af4e9=_0x5bb616,_0xa638be=this;this[_0x1af4e9('0xa')]['enqueue'](function(){const _0x3ac27e=_0x1af4e9;return _0xa638be[_0x3ac27e('0x17')][_0x3ac27e('0xe')](_0x4fad78,_0x28ca5e,_0x3427dd)[_0x3ac27e('0xc')](function(){const _0x9e84d4=_0x3ac27e;logger[_0x9e84d4('0x0')](_0x9e84d4('0x1b'),_0x28ca5e,_0x3427dd,_0x4fad78);})[_0x3ac27e('0x13')](function(_0x2d62a9){const _0x10ae89=_0x3ac27e;logger['info'](util[_0x10ae89('0x16')](_0x2d62a9,{'showHidden':![],'depth':null}));});});},Migration[_0x5bb616('0x1')]['final']=function(_0xdff760){const _0x10f55f=_0x5bb616;this[_0x10f55f('0xa')][_0x10f55f('0x4')](function(){return _0xdff760();});},module[_0x5bb616('0x6')]={'up':function(_0x58f11f){return new Promise(function(_0x33d5c4){const _0x4ad5dc=a963_0x4d14,_0x1cf428=new Migration(_0x58f11f);_0x1cf428[_0x4ad5dc('0x1e')](_0x33d5c4);});},'down':function(){}}; \ No newline at end of file +const a963_0x321a=['addIndex','prototype','sequence','removeColumn','final','removeIndex','sequelize','tail','../config/logger','addColumn','stringify','finally','then','inspect','queryInterface','util','query\x20%s','changeColumn','info','catch','Added\x20column\x20%s\x20to\x20%s','renameColumn','migration','table\x20dropped\x20%s','join','enqueue','Removed\x20column\x20%s\x20from\x20%s','exports','query','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x581a92,_0x321a59){const _0x3dbdb3=function(_0x33f8f8){while(--_0x33f8f8){_0x581a92['push'](_0x581a92['shift']());}};_0x3dbdb3(++_0x321a59);}(a963_0x321a,0x175));const a963_0x3dbd=function(_0x581a92,_0x321a59){_0x581a92=_0x581a92-0x0;let _0x3dbdb3=a963_0x321a[_0x581a92];return _0x3dbdb3;};const _0x406867=a963_0x3dbd;'use strict';const util=require(_0x406867('0x2')),logger=require(_0x406867('0x19'))(_0x406867('0x9')),Sequence=function(){};Sequence[_0x406867('0x12')][_0x406867('0xc')]=function(_0x33f8f8){const _0xc855ce=_0x406867;this[_0xc855ce('0x18')]=this[_0xc855ce('0x18')]?this[_0xc855ce('0x18')][_0xc855ce('0x1c')](_0x33f8f8):_0x33f8f8();};const Migration=function(_0x141b3c){const _0x26d1c9=_0x406867;this[_0x26d1c9('0x1')]=_0x141b3c,this[_0x26d1c9('0x13')]=new Sequence();};Migration[_0x406867('0x12')][_0x406867('0x4')]=function(_0x4b15b9,_0x4d32fd,_0x3091c9){const _0x4539e8=_0x406867,_0x2679c7=this;this[_0x4539e8('0x13')][_0x4539e8('0xc')](function(){const _0x3e64b4=_0x4539e8;return _0x2679c7[_0x3e64b4('0x1')]['changeColumn'](_0x4b15b9,_0x4d32fd,_0x3091c9)[_0x3e64b4('0x1d')](function(){const _0x23aadd=_0x3e64b4;logger[_0x23aadd('0x5')](_0x23aadd('0x10'),_0x4d32fd,_0x4b15b9);})[_0x3e64b4('0x6')](function(_0x16e693){const _0x55e96a=_0x3e64b4;logger[_0x55e96a('0x5')](JSON[_0x55e96a('0x1b')](_0x16e693));});});},Migration[_0x406867('0x12')][_0x406867('0x1a')]=function(_0x44e44a,_0x57d819,_0x46d284){const _0x545867=_0x406867,_0x41a62c=this;this['sequence'][_0x545867('0xc')](function(){const _0x2c42cb=_0x545867;return _0x41a62c[_0x2c42cb('0x1')]['addColumn'](_0x44e44a,_0x57d819,_0x46d284)[_0x2c42cb('0x1d')](function(){const _0x41a60c=_0x2c42cb;logger['info'](_0x41a60c('0x7'),_0x57d819,_0x44e44a);})['catch'](function(_0x5c83fa){const _0x8e3520=_0x2c42cb;logger[_0x8e3520('0x5')](JSON[_0x8e3520('0x1b')](_0x5c83fa));});});},Migration[_0x406867('0x12')]['dropTable']=function(_0x1ca937){const _0x264888=_0x406867,_0x55164b=this;this['sequence'][_0x264888('0xc')](function(){const _0x235da0=_0x264888;return _0x55164b[_0x235da0('0x1')]['dropTable'](_0x1ca937,{'force':!![]})[_0x235da0('0x1d')](function(){const _0x47bb33=_0x235da0;logger['info'](_0x47bb33('0xa'),_0x1ca937);})[_0x235da0('0x6')](function(_0x29a1d3){const _0x3b316a=_0x235da0;logger[_0x3b316a('0x5')](JSON[_0x3b316a('0x1b')](_0x29a1d3));});});},Migration[_0x406867('0x12')][_0x406867('0x11')]=function(_0x3b5f22,_0x4c9af8,_0x38d923){const _0x245881=_0x406867,_0x1344d3=this;this[_0x245881('0x13')][_0x245881('0xc')](function(){const _0x2a5d8f=_0x245881;return _0x1344d3[_0x2a5d8f('0x1')][_0x2a5d8f('0x11')](_0x3b5f22,_0x4c9af8,{'indexName':_0x38d923})['then'](function(){const _0x83d81f=_0x2a5d8f;logger[_0x83d81f('0x5')]('addIndex\x20%s\x20%s\x20%s',_0x3b5f22,_0x4c9af8[_0x83d81f('0xb')](','),_0x38d923);})[_0x2a5d8f('0x6')](function(_0x8f7f31){const _0x116d81=_0x2a5d8f;logger[_0x116d81('0x5')](JSON[_0x116d81('0x1b')](_0x8f7f31));});});},Migration[_0x406867('0x12')][_0x406867('0x16')]=function(_0x4a38ef,_0x243f1e){const _0x50d305=_0x406867,_0x385c1c=this;this[_0x50d305('0x13')]['enqueue'](function(){const _0x58b2a7=_0x50d305;return _0x385c1c[_0x58b2a7('0x1')]['removeIndex'](_0x4a38ef,_0x243f1e)[_0x58b2a7('0x1d')](function(){const _0xe18789=_0x58b2a7;logger[_0xe18789('0x5')]('removeIndex\x20%s\x20%s',_0x4a38ef,_0x243f1e);})[_0x58b2a7('0x6')](function(_0x2d1e71){const _0x1d73d7=_0x58b2a7;logger[_0x1d73d7('0x5')](JSON[_0x1d73d7('0x1b')](_0x2d1e71));});});},Migration[_0x406867('0x12')]['query']=function(_0x4dfbcf){const _0x3d8b23=_0x406867,_0x38dd5a=this;this[_0x3d8b23('0x13')]['enqueue'](function(){const _0x218387=_0x3d8b23;return _0x38dd5a[_0x218387('0x1')][_0x218387('0x17')][_0x218387('0xf')](_0x4dfbcf)[_0x218387('0x1d')](function(){const _0x5eadb3=_0x218387;logger[_0x5eadb3('0x5')](_0x5eadb3('0x3'),_0x4dfbcf);})[_0x218387('0x6')](function(_0x218bf4){const _0x5a0228=_0x218387;logger[_0x5a0228('0x5')](JSON['stringify'](_0x218bf4));});});},Migration[_0x406867('0x12')]['removeColumn']=function(_0x3c59ac,_0x777216){const _0x2cf8ec=_0x406867,_0x17f153=this;this[_0x2cf8ec('0x13')][_0x2cf8ec('0xc')](function(){const _0x580a1a=_0x2cf8ec;return _0x17f153['queryInterface'][_0x580a1a('0x14')](_0x3c59ac,_0x777216)[_0x580a1a('0x1d')](function(){const _0x555722=_0x580a1a;logger[_0x555722('0x5')](_0x555722('0xd'),_0x777216,_0x3c59ac);})[_0x580a1a('0x6')](function(_0x391985){const _0x2d3a27=_0x580a1a;logger[_0x2d3a27('0x5')](util['inspect'](_0x391985,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x406867('0x8')]=function(_0x5f30fe,_0x30c543,_0x12feea){const _0x98e814=this;this['sequence']['enqueue'](function(){return _0x98e814['queryInterface']['renameColumn'](_0x5f30fe,_0x30c543,_0x12feea)['then'](function(){const _0x24d989=a963_0x3dbd;logger[_0x24d989('0x5')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x30c543,_0x12feea,_0x5f30fe);})['catch'](function(_0x41b90e){const _0xcef8ee=a963_0x3dbd;logger[_0xcef8ee('0x5')](util[_0xcef8ee('0x0')](_0x41b90e,{'showHidden':![],'depth':null}));});});},Migration[_0x406867('0x12')]['final']=function(_0x583bc3){this['sequence']['enqueue'](function(){return _0x583bc3();});},module[_0x406867('0xe')]={'up':function(_0xa61815){return new Promise(function(_0x40411c){const _0x404638=a963_0x3dbd,_0x5a4438=new Migration(_0xa61815);_0x5a4438[_0x404638('0x15')](_0x40411c);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.1.0.js b/server/migrations/2.1.0.js index 0bb7176..01259cd 100644 --- a/server/migrations/2.1.0.js +++ b/server/migrations/2.1.0.js @@ -1 +1 @@ -const a964_0xf057=['changeColumn','\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpFinalProfiles\x20fp\x20ON\x20CHAR_LENGTH(fp.permissions)\x20-\x20CHAR_LENGTH(REPLACE(fp.permissions,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27Plugins\x27','name','\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20\x20FROM\x20tmpSections;','\x20\x20SELECT\x20id,\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20301\x20THEN\x20\x27Lists\x27','voice_voicemail','\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20410\x20THEN\x20\x27VoicePrefixes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','renameColumn','(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20a','sequence','\x20\x20FROM\x20tmpNormalizedSections','\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.resourceId,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20resourceId,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20101\x20THEN\x20\x27DELETE\x27','catch','\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201003\x20THEN\x20\x27CustomDashboards\x27','\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id','\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;','\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20800\x20THEN\x20\x27DELETE\x27','\x20\x20WHERE\x20u.id\x20=\x20f.userId;','\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null','\x20\x20UNION','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201307\x20THEN\x20\x27ZohoAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20409\x20THEN\x20\x27ChanSpies\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20401\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27inbound\x27),\x27DELETE_MIGRATION\x27)','CREATE\x20TABLE\x20tally\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20600\x20THEN\x20\x27DELETE\x27','\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20category\x20=\x20(SELECT','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20702\x20THEN\x20\x27SmsAccounts\x27','\x20\x20FROM\x20user_profiles\x20u','\x20\x20WHERE\x20x.sectionId\x20=\x20802;','reportType','\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20WHERE\x20x.sectionId\x20=\x20401\x20AND\x20q.type\x20=\x20\x27inbound\x27;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20200\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','\x20\x20`autoAssociation`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20901\x20THEN\x20\x27FaxQueues\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20502\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20chat_websites\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20403\x20THEN\x20\x27OutboundRoutes\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201103\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20square_projects\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','dropTable','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1301,\x201302,\x201303,\x201305,\x201306,\x201307,\x201308)\x20THEN\x20\x27Integrations\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20s.userProfileId\x20=\x20x.userProfileId\x20AND\x20s.sectionId\x20=\x20x.sectionId);','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','\x20\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId','INSERT\x20INTO\x20tmpResources','\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20INNER\x20JOIN\x20user_has_sms_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20910\x20THEN\x20\x27Realtime\x27','analytics_extracted_reports','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20405\x20THEN\x20\x27Contexts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201302\x20THEN\x20\x27SalesforceAccounts\x27','UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s','UPDATE\x20tmpNormalizedResources\x20x','\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20SELECT\x20x.sectionId,\x20u.SmsAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','\x20\x20sectionId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20userId\x20text,','\x20\x20SET\x20u.permissions\x20=\x20t.permissions','\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201301\x20THEN\x20\x27ZendeskAccounts\x27','\x20\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(SELECT','removeColumn','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(301,\x20302,\x20303,\x20304)\x20THEN\x20\x27ContactManager\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201103\x20THEN\x20\x27SquareProjects\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;','removeIndex\x20%s\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201007\x20THEN\x20\x27Sounds\x27',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20e','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201501\x20THEN\x20\x27QueueCampaigns\x27','\x20\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201002\x20THEN\x20\x27Dispositions\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201700\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);','\x20\x20\x20\x20userId\x20int(11)\x20not\x20null','\x20\x20WHERE\x20x.sectionId\x20=\x20501;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20710\x20THEN\x20\x27Realtime\x27','\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId','\x20\x20FROM\x20tmpNormalizedUsers\x20x','../config/logger','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','removeIndex','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20700\x20THEN\x20\x27DELETE\x27','UPDATE\x20users\x20u','\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','CREATE\x20TABLE\x20tmpGroupedPermissions','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','\x20\x20WHERE\x20x.sectionId\x20=\x20902;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201305\x20THEN\x20\x27SugarcrmAccounts\x27','UPDATE\x20tmpFinalProfiles','CREATE\x20TABLE\x20tmpExtractedResources\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201306\x20THEN\x20\x27DeskAccounts\x27','INSERT\x20INTO\x20tmpCustomResources','\x20\x20\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(401,\x20402,\x20403,\x20404,\x20405,\x20406,\x20407,\x20408,\x20409,\x20410,\x20411)\x20THEN\x20\x27Voice\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20304\x20THEN\x20\x27GlobalCustomFields\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201202\x20THEN\x20\x27ExtractedReports\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27','prototype','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20402\x20THEN\x20\x27InboundRoutes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20801\x20THEN\x20\x27OpenchannelQueues\x27','INSERT\x20INTO\x20tmpPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201200\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201601\x20THEN\x20\x27DELETE\x27','migration','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpPermissions\x20r\x20on\x20CHAR_LENGTH(r.userIds)\x20-\x20CHAR_LENGTH(REPLACE(r.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201006\x20THEN\x20\x27Scheduler\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','Added\x20column\x20%s\x20to\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1401,\x201402,\x201403,\x201404,\x201405,\x201406,\x201407)\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20602\x20THEN\x20\x27MailAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20408\x20THEN\x20\x27VoiceRecordings\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20204\x20THEN\x20\x27Teams\x27','join','users','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20404\x20THEN\x20\x27InternalRoutes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20501\x20THEN\x20\x27ChatQueues\x27','\x20\x20`sectionId`\x20int(11)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split','\x20\x20`userProfileId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201009\x20THEN\x20\x27Templates\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201203\x20THEN\x20\x27Reports\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20411\x20THEN\x20\x27Realtime\x27','TRUNCATE\x20TABLE\x20tmpPermissions;','query','\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27Projects\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20401\x20THEN\x20\x27VoiceQueues\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20702\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20sms_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20302\x20THEN\x20\x27Companies\x27','\x20\x20SET\x20u.userProfileId\x20=\x201',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20c','\x20\x20SET','\x20\x20GROUP\x20BY\x20permissions','DELETE\x20FROM\x20tmpSections','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,','\x20\x20(','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(901,\x20902,\x20910)\x20THEN\x20\x27Fax\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201100\x20THEN\x20\x27DELETE\x27','\x20\x20ORDER\x20BY\x20userId;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201501\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27outbound\x27),\x27DELETE_MIGRATION\x27)','\x20\x20FROM\x20tmpSections\x20s','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20802\x20THEN\x20\x27OpenchannelAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','\x20\x20FROM\x20users','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20603\x20THEN\x20\x27MailSubstatuses\x27','\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY','\x20\x20\x20\x20p.userIds\x20userId','\x20\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20502\x20THEN\x20\x27ChatWebsites\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201308\x20THEN\x20\x27VtigerAccounts\x27','CREATE\x20TABLE\x20tmpNormalizedSections','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20902\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20601\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20CONSTRAINT\x20`user_profile_has_resources_ibfk_1`\x20FOREIGN\x20KEY\x20(`sectionId`)\x20REFERENCES\x20`user_profile_has_sections`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20300\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null','\x20\x20SELECT\x20permission,\x20userId,\x200','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1001,\x201002,\x201003,\x201004,\x201005,\x201006,\x201007,\x201008,\x201009,\x201010,\x201011,\x201012)\x20THEN\x20\x27Tools\x27','queryInterface','stringify','INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)','CREATE\x20TABLE\x20tmpSections','addColumn','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(select\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),','\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;','\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId','\x20\x20\x20\x20\x20\x20resourceId\x20text,','\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;','\x20\x20\x20\x20\x20\x20sectionId\x20int(11)','\x20\x20ORDER\x20BY\x20id;','\x20\x20WHERE\x20x.sectionId\x20=\x20901;','\x20\x20PRIMARY\x20KEY\x20(`id`),','CREATE\x20TABLE\x20tmpSharedProfiles','ON\x20UPDATE\x20CASCADE','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\x27','INSERT\x20INTO\x20tmpExtractedResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201008\x20THEN\x20\x27Tags\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20902\x20THEN\x20\x27FaxAccounts\x27','\x20\x20`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20303\x20THEN\x20\x27Contacts\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;','\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27CustomDashboards\x27','\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','util','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20601\x20THEN\x20\x27MailQueues\x27','\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpResources\x20r\x20ON\x20CHAR_LENGTH(r.resourceId)\x20-\x20CHAR_LENGTH(REPLACE(r.resourceId,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;','INTEGER','\x20\x20\x20\x20insertedId\x20int(11),','\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,','\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;','\x20\x20\x20\x20\x20\x20\x20\x20fp.profileId\x20profileId,','\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles','\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','tail','\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','\x20\x20FROM\x20tmpSections','DELETE\x20FROM\x20tmpNormalizedResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','INSERT\x20INTO\x20tmpSingleProfiles','\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','\x20\x20\x20\x20t.permissions\x20permissions','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20701\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20sms_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','info','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20901\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),','CREATE\x20TABLE\x20tmpPermissions','\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId','\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x201)\x20as\x20dummy\x20LIMIT\x201)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20user_profile_has_sections\x20x','CREATE\x20TABLE\x20tmpFinalProfiles','\x20\x20SELECT\x20CONCAT(\x27Profile_\x27,\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27','INSERT\x20INTO\x20tmpSections','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20602\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201010\x20THEN\x20\x27Triggers\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201510\x20THEN\x20\x27Realtime\x27','\x20\x20SET\x20insertedId\x20=\x20(SELECT\x20id','\x20\x20WHERE\x20u.id\x20=\x20t.userId;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20406\x20THEN\x20\x27Voicemails\x27','UPDATE\x20tmpSections\x20s','CREATE\x20TABLE\x20tmpResources','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;','\x20\x20`type`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201004\x20THEN\x20\x27Intervals\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20as\x20split','\x20\x20SET\x20name\x20=\x20(SELECT','\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.userId','\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20610\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20407\x20THEN\x20\x27MusicOnHolds\x27','inspect',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20d','\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;','addIndex','UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f','\x20\x20END','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\x20\x20\x20\x20userId\x20text','\x20\x20\x20\x20resourceId\x20text','\x20\x20FROM\x20tmpFinalProfiles;','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId','UPDATE\x20tmpSections','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;','\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,','\x20\x20WHERE\x20x.sectionId\x20=\x20701;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201101\x20THEN\x20\x27ODBC\x27','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','INSERT\x20INTO\x20tmpGroupedPermissions','CREATE\x20TABLE\x20tmpNormalizedResources','\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20203\x20THEN\x20\x27Telephones\x27','\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','REFERENCES\x20user_profiles(`id`)\x20','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20801\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,','CREATE\x20TABLE\x20tmpSingleProfiles','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20WHERE\x20x.sectionId\x20=\x201103;','finally','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201502\x20THEN\x20\x27IvrCampaigns\x27','\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM','\x20\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\x27;','\x20\x20`category`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20501\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20chat_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','INSERT\x20INTO\x20user_profile_has_resources\x20(name,\x20resourceId,\x20type,\x20createdAt,\x20updatedAt,\x20sectionId)','CREATE\x20TABLE\x20tmpNormalizedPermissions','\x20\x20`resourceId`\x20int(11)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,','table\x20dropped\x20%s','\x20\x20SELECT\x20*','INSERT\x20INTO\x20tmpNormalizedSections','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20\x20FROM\x20(SELECT','UPDATE\x20tmpCustomResources','\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27CustomDashboards\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20dashboards\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','then','\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20SELECT\x20userId,\x20permissions,\x20null','\x20\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpNormalizedSections\x20s\x20ON\x20CHAR_LENGTH(s.userId)\x20-\x20CHAR_LENGTH(REPLACE(s.userId,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20602;','\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','INSERT\x20INTO\x20tmpNormalizedPermissions','DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;','\x20\x20);','\x20\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId','enqueue','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201005\x20THEN\x20\x27Pauses\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20AS\x20users','\x20\x20\x20\x20\x20\x20CASE','CREATE\x20TABLE\x20`user_profiles`\x20('];(function(_0x36c84f,_0xf0571f){const _0x1166b5=function(_0x4730bd){while(--_0x4730bd){_0x36c84f['push'](_0x36c84f['shift']());}};_0x1166b5(++_0xf0571f);}(a964_0xf057,0x198));const a964_0x1166=function(_0x36c84f,_0xf0571f){_0x36c84f=_0x36c84f-0x0;let _0x1166b5=a964_0xf057[_0x36c84f];return _0x1166b5;};const _0x5d4238=a964_0x1166;'use strict';const util=require(_0x5d4238('0xb3')),logger=require(_0x5d4238('0x34'))(_0x5d4238('0x51')),Sequence=function(){};Sequence['prototype'][_0x5d4238('0x125')]=function(_0x4730bd){const _0x5826a4=_0x5d4238;this[_0x5826a4('0xbe')]=this[_0x5826a4('0xbe')]?this[_0x5826a4('0xbe')][_0x5826a4('0x105')](_0x4730bd):_0x4730bd();};const Migration=function(_0xfb2ca5){const _0x5697ab=_0x5d4238;this['queryInterface']=_0xfb2ca5,this[_0x5697ab('0x13c')]=new Sequence();};Migration[_0x5d4238('0x4b')][_0x5d4238('0x12a')]=function(_0xb6a54f,_0x3427ed,_0xec7e6d){const _0x2a2ebf=_0x5d4238,_0xb34e2a=this;this[_0x2a2ebf('0x13c')][_0x2a2ebf('0x125')](function(){const _0x418585=_0x2a2ebf;return _0xb34e2a[_0x418585('0x96')]['changeColumn'](_0xb6a54f,_0x3427ed,_0xec7e6d)[_0x418585('0x116')](function(){const _0x18d7ae=_0x418585;logger['info'](_0x18d7ae('0x112'),_0x3427ed,_0xb6a54f);})[_0x418585('0x141')](function(_0x3f435f){const _0x13e388=_0x418585;logger[_0x13e388('0xc9')](JSON['stringify'](_0x3f435f));});});},Migration[_0x5d4238('0x4b')][_0x5d4238('0x9a')]=function(_0x15967c,_0x2510b0,_0x25b3da){const _0x1f804c=_0x5d4238,_0x3dae6d=this;this['sequence'][_0x1f804c('0x125')](function(){const _0x570196=_0x1f804c;return _0x3dae6d[_0x570196('0x96')][_0x570196('0x9a')](_0x15967c,_0x2510b0,_0x25b3da)[_0x570196('0x116')](function(){const _0x2eab6c=_0x570196;logger[_0x2eab6c('0xc9')](_0x2eab6c('0x56'),_0x2510b0,_0x15967c);})[_0x570196('0x141')](function(_0x3b7f91){const _0x5db0b4=_0x570196;logger[_0x5db0b4('0xc9')](JSON[_0x5db0b4('0x97')](_0x3b7f91));});});},Migration[_0x5d4238('0x4b')][_0x5d4238('0x4')]=function(_0x110ff7){const _0x25346c=_0x5d4238,_0x43b133=this;this[_0x25346c('0x13c')][_0x25346c('0x125')](function(){const _0x109a89=_0x25346c;return _0x43b133[_0x109a89('0x96')][_0x109a89('0x4')](_0x110ff7,{'force':!![]})[_0x109a89('0x116')](function(){const _0x40e0fa=_0x109a89;logger[_0x40e0fa('0xc9')](_0x40e0fa('0x10f'),_0x110ff7);})['catch'](function(_0x13be5a){const _0x4d4517=_0x109a89;logger[_0x4d4517('0xc9')](JSON['stringify'](_0x13be5a));});});},Migration[_0x5d4238('0x4b')][_0x5d4238('0xeb')]=function(_0x1c0131,_0x450782,_0x15f231){const _0x20519f=_0x5d4238,_0x420453=this;this[_0x20519f('0x13c')][_0x20519f('0x125')](function(){const _0x3727ff=_0x20519f;return _0x420453[_0x3727ff('0x96')][_0x3727ff('0xeb')](_0x1c0131,_0x450782,{'indexName':_0x15f231})['then'](function(){const _0x86d46=_0x3727ff;logger[_0x86d46('0xc9')]('addIndex\x20%s\x20%s\x20%s',_0x1c0131,_0x450782[_0x86d46('0x5b')](','),_0x15f231);})[_0x3727ff('0x141')](function(_0x41deea){const _0x5c8ed4=_0x3727ff;logger[_0x5c8ed4('0xc9')](JSON['stringify'](_0x41deea));});});},Migration['prototype']['removeIndex']=function(_0x46b756,_0x473e3a){const _0x1d0fce=_0x5d4238,_0x2f7244=this;this[_0x1d0fce('0x13c')][_0x1d0fce('0x125')](function(){const _0x4d56f=_0x1d0fce;return _0x2f7244['queryInterface'][_0x4d56f('0x36')](_0x46b756,_0x473e3a)[_0x4d56f('0x116')](function(){const _0x35d242=_0x4d56f;logger['info'](_0x35d242('0x23'),_0x46b756,_0x473e3a);})[_0x4d56f('0x141')](function(_0x1dcb9d){logger['info'](JSON['stringify'](_0x1dcb9d));});});},Migration[_0x5d4238('0x4b')][_0x5d4238('0x68')]=function(_0xd942c1){const _0x3f569c=_0x5d4238,_0x1adb15=this;this['sequence'][_0x3f569c('0x125')](function(){const _0x1e23a9=_0x3f569c;return _0x1adb15[_0x1e23a9('0x96')]['sequelize'][_0x1e23a9('0x68')](_0xd942c1)[_0x1e23a9('0x116')](function(){const _0x377697=_0x1e23a9;logger[_0x377697('0xc9')]('query\x20%s',_0xd942c1);})[_0x1e23a9('0x141')](function(_0x54daab){const _0x2a98f0=_0x1e23a9;logger['info'](JSON[_0x2a98f0('0x97')](_0x54daab));});});},Migration[_0x5d4238('0x4b')][_0x5d4238('0x1f')]=function(_0x51053b,_0x4d2a48){const _0x6d2d65=_0x5d4238,_0x1ac41a=this;this[_0x6d2d65('0x13c')]['enqueue'](function(){const _0x22b8ed=_0x6d2d65;return _0x1ac41a[_0x22b8ed('0x96')]['removeColumn'](_0x51053b,_0x4d2a48)[_0x22b8ed('0x116')](function(){const _0x28d0d1=_0x22b8ed;logger[_0x28d0d1('0xc9')]('Removed\x20column\x20%s\x20from\x20%s',_0x4d2a48,_0x51053b);})[_0x22b8ed('0x141')](function(_0x1e2fca){const _0x2c85fe=_0x22b8ed;logger[_0x2c85fe('0xc9')](util[_0x2c85fe('0xe8')](_0x1e2fca,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5d4238('0x13a')]=function(_0x199aab,_0x4928d6,_0x3ae32b){const _0x2cdb8e=_0x5d4238,_0x2198d8=this;this[_0x2cdb8e('0x13c')][_0x2cdb8e('0x125')](function(){const _0x5d0774=_0x2cdb8e;return _0x2198d8['queryInterface']['renameColumn'](_0x199aab,_0x4928d6,_0x3ae32b)[_0x5d0774('0x116')](function(){const _0x27967c=_0x5d0774;logger['info'](_0x27967c('0x91'),_0x4928d6,_0x3ae32b,_0x199aab);})['catch'](function(_0xe279f7){const _0x56d643=_0x5d0774;logger[_0x56d643('0xc9')](util['inspect'](_0xe279f7,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x14b679){const _0x4b652b=_0x5d4238;this[_0x4b652b('0x13c')][_0x4b652b('0x125')](function(){return _0x14b679();});},module['exports']={'up':function(_0x480dc9,_0x2c116f){return new Promise(function(_0x59a9aa){const _0x48a566=a964_0x1166,_0x44b80f=new Migration(_0x480dc9);_0x44b80f[_0x48a566('0x9a')](_0x48a566('0xe'),'reportId',{'type':_0x2c116f[_0x48a566('0xb7')]}),_0x44b80f[_0x48a566('0x9a')]('analytics_extracted_reports',_0x48a566('0x159'),{'type':_0x2c116f['STRING']}),_0x44b80f['addColumn'](_0x48a566('0x5c'),'userProfileId',{'type':_0x2c116f[_0x48a566('0xb7')]}),_0x44b80f[_0x48a566('0x1f')](_0x48a566('0x136'),_0x48a566('0x131')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x129')+_0x48a566('0xf9')+_0x48a566('0xb')+_0x48a566('0xe5')+_0x48a566('0xbd')+_0x48a566('0xef')+_0x48a566('0x15a')+'\x20\x20PRIMARY\x20KEY\x20(`id`),'+_0x48a566('0x137')+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x12d')+_0x48a566('0xcb')),_0x44b80f['query']('ALTER\x20TABLE\x20`users`\x20'+_0x48a566('0x11e')+'FOREIGN\x20KEY\x20(`userProfileId`)\x20'+_0x48a566('0xff')+_0x48a566('0xa8')),_0x44b80f[_0x48a566('0x68')]('CREATE\x20TABLE\x20`user_profile_has_sections`\x20('+_0x48a566('0xf9')+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x48a566('0x109')+_0x48a566('0x5f')+_0x48a566('0xad')+_0x48a566('0x15f')+_0x48a566('0x132')+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x48a566('0x15a')+_0x48a566('0x61')+_0x48a566('0xa6')+_0x48a566('0x149')+_0x48a566('0xbf')+'\x20\x20CONSTRAINT\x20`user_profile_has_sections_ibfk_1`\x20FOREIGN\x20KEY\x20(`userProfileId`)\x20REFERENCES\x20`user_profiles`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE'+_0x48a566('0xc8')),_0x44b80f[_0x48a566('0x68')]('CREATE\x20TABLE\x20`user_profile_has_resources`\x20('+_0x48a566('0xf9')+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x48a566('0x10d')+_0x48a566('0xe0')+_0x48a566('0xef')+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+_0x48a566('0x142')+_0x48a566('0xa6')+'\x20\x20KEY\x20`sectionId`\x20(`sectionId`),'+_0x48a566('0x9c')+_0x48a566('0x90')+_0x48a566('0xc8')),_0x44b80f['query'](_0x48a566('0x151')+_0x48a566('0x87')+');'),_0x44b80f[_0x48a566('0x68')]('INSERT\x20INTO\x20tally\x20(n)'+'SELECT\x20NULL\x20FROM'+_0x48a566('0x13b')+',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20b'+_0x48a566('0x70')+_0x48a566('0xe9')+_0x48a566('0x26')+';'),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xcd')+'\x20\x20('+'\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,'+_0x48a566('0x45')+_0x48a566('0x146')+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x4e')+_0x48a566('0x134')+'\x20\x20FROM\x20users'+_0x48a566('0x80')+_0x48a566('0xa4')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x8c')+_0x48a566('0x76')+_0x48a566('0x75')+_0x48a566('0x18')+'\x20\x20\x20\x20resourceId\x20text'+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x111')+_0x48a566('0x6d')+'\x20\x20FROM\x20(SELECT'+_0x48a566('0x12f')+_0x48a566('0x88')+'\x20\x20FROM\x20tally\x20INNER\x20JOIN\x20tmpPermissions\x20p\x20ON\x20CHAR_LENGTH(p.permissions)\x20-\x20CHAR_LENGTH(REPLACE(p.permissions,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1'+_0x48a566('0xfe')),_0x44b80f['query'](_0x48a566('0x10c')+_0x48a566('0x76')+'\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x48a566('0x2d')+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x11f')+_0x48a566('0x89')+_0x48a566('0x13d')+'\x20\x20GROUP\x20BY\x20userId;'),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x3d')+_0x48a566('0x19')+_0x48a566('0xdb')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x67')),_0x44b80f['query']('INSERT\x20INTO\x20tmpPermissions'+_0x48a566('0x14c')+_0x48a566('0x84')+'\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27'+_0x48a566('0x72')+'\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);'),_0x44b80f[_0x48a566('0x68')]('CREATE\x20TABLE\x20tmpNormalizedUsers'+_0x48a566('0x76')+_0x48a566('0x75')+_0x48a566('0x18')+_0x48a566('0xf1')+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')]('INSERT\x20INTO\x20tmpNormalizedUsers'+_0x48a566('0x94')+'\x20\x20FROM\x20(SELECT'+'\x20\x20s.sectionId\x20permission,'+_0x48a566('0x117')+_0x48a566('0x11a')+_0x48a566('0xfe')),_0x44b80f['query'](_0x48a566('0x41')+_0x48a566('0x17')+'\x20\x20resourceId\x20int(11),'+'\x20\x20userId\x20int(11)'+_0x48a566('0x122')),_0x44b80f['query'](_0x48a566('0xaa')+'\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId'+_0x48a566('0x33')+_0x48a566('0xb0')+'\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id'+_0x48a566('0x15c')),_0x44b80f[_0x48a566('0x68')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x48a566('0x11d')+_0x48a566('0x33')+_0x48a566('0x118')+_0x48a566('0x2e')),_0x44b80f[_0x48a566('0x68')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x48a566('0x16')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x20502;'),_0x44b80f['query'](_0x48a566('0xaa')+_0x48a566('0x28')+_0x48a566('0x33')+_0x48a566('0xb2')+'\x20\x20WHERE\x20x.sectionId\x20=\x20601;'),_0x44b80f[_0x48a566('0x68')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x48a566('0x63')+_0x48a566('0x33')+_0x48a566('0x9d')+_0x48a566('0x11c')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xaa')+_0x48a566('0x3b')+_0x48a566('0x33')+_0x48a566('0x143')+_0x48a566('0xf7')),_0x44b80f['query'](_0x48a566('0xaa')+_0x48a566('0x14')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x48a566('0xc')+'\x20\x20WHERE\x20x.sectionId\x20=\x20702;'),_0x44b80f['query'](_0x48a566('0xaa')+_0x48a566('0xf3')+_0x48a566('0x33')+_0x48a566('0x13')+'\x20\x20WHERE\x20x.sectionId\x20=\x20801;'),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xaa')+'\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelAccountId,\x20x.userId'+_0x48a566('0x33')+'\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x48a566('0x158')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xaa')+_0x48a566('0x1a')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x48a566('0xa5')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xaa')+_0x48a566('0x81')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x48a566('0x3e')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xaa')+_0x48a566('0x32')+_0x48a566('0x33')+_0x48a566('0x15b')+_0x48a566('0x104')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xaa')+_0x48a566('0x13e')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x48a566('0x147')+_0x48a566('0x108')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x3c')+_0x48a566('0x76')+_0x48a566('0x37')+_0x48a566('0x93')+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xfa')+'\x20\x20SELECT\x20userId,\x20permissions'+_0x48a566('0x113')+_0x48a566('0x101')+_0x48a566('0xc6')+'\x20\x20FROM\x20tally\x20INNER\x20JOIN\x20tmpPermissions\x20t\x20ON\x20CHAR_LENGTH(t.userIds)\x20-\x20CHAR_LENGTH(REPLACE(t.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1'+_0x48a566('0xfe')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xa7')+_0x48a566('0x76')+'\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,'+_0x48a566('0x45')+_0x48a566('0x146')+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')]('INSERT\x20INTO\x20tmpSharedProfiles'+_0x48a566('0x145')+'\x20\x20FROM\x20tmpGroupedPermissions'+_0x48a566('0xe4')+_0x48a566('0x1e')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t'+_0x48a566('0x53')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200'+_0x48a566('0x60')+_0x48a566('0x107')+_0x48a566('0x127')+_0x48a566('0x139')+_0x48a566('0x79')+_0x48a566('0x62')+_0x48a566('0x1d')+_0x48a566('0x72')+_0x48a566('0x2c')),_0x44b80f['query'](_0x48a566('0x102')+_0x48a566('0x76')+_0x48a566('0x37')+_0x48a566('0x45')+'\x20\x20\x20\x20\x20\x20profileId\x20int(11)'+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xc4')+_0x48a566('0x119')+'\x20\x20FROM\x20tmpGroupedPermissions'+_0x48a566('0x9')+_0x48a566('0x9b')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpPermissions\x20r\x20ON\x20CHAR_LENGTH(r.userIds)\x20-\x20CHAR_LENGTH(REPLACE(r.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1'+_0x48a566('0xc3')+_0x48a566('0xe2')+_0x48a566('0x107')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20as\x20users'+_0x48a566('0x83')+_0x48a566('0x154')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b'+_0x48a566('0xd6')+_0x48a566('0x7c')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xd2')+'\x20\x20('+_0x48a566('0x37')+_0x48a566('0x45')+_0x48a566('0x146')+_0x48a566('0x122')),_0x44b80f['query']('INSERT\x20INTO\x20tmpFinalProfiles'+_0x48a566('0xbc')+_0x48a566('0x14d')+_0x48a566('0xa1')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xee')+_0x48a566('0xd3')+'\x20\x20FROM\x20tmpFinalProfiles\x20t'+_0x48a566('0x8')+_0x48a566('0xf2')),_0x44b80f['query'](_0x48a566('0x40')+_0x48a566('0x123')+_0x48a566('0x157')+_0x48a566('0xd0')),_0x44b80f['query'](_0x48a566('0x99')+'\x20\x20('+'\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,'+_0x48a566('0x69')+'\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,'+_0x48a566('0xf6')+_0x48a566('0x8e')+_0x48a566('0xb8')+'\x20\x20\x20\x20userId\x20text'+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xd5')+_0x48a566('0xce')+'\x20\x20FROM\x20(SELECT'+_0x48a566('0xbb')+'\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(fp.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,'+'\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId'+_0x48a566('0x2b')+_0x48a566('0x12c')+_0x48a566('0x12b')),_0x44b80f['query'](_0x48a566('0xf4')+_0x48a566('0x71')+'\x20\x20\x20\x20\x20\x20name\x20=\x20(SELECT'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27'+_0x48a566('0x140')+_0x48a566('0x15d')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20201\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20202\x20THEN\x20\x27Agents\x27'+_0x48a566('0xfd')+_0x48a566('0x5a')+_0x48a566('0x92')+_0x48a566('0x135')+_0x48a566('0x6e')+_0x48a566('0xae')+_0x48a566('0x48')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20400\x20THEN\x20\x27DELETE\x27'+_0x48a566('0x6b')+_0x48a566('0x4c')+_0x48a566('0x2')+_0x48a566('0x5d')+_0x48a566('0xf')+_0x48a566('0xdc')+_0x48a566('0xe7')+_0x48a566('0x59')+_0x48a566('0x14f')+_0x48a566('0x138')+_0x48a566('0x66')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20500\x20THEN\x20\x27DELETE\x27'+_0x48a566('0x5e')+_0x48a566('0x8a')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20510\x20THEN\x20\x27Realtime\x27'+_0x48a566('0x152')+_0x48a566('0xb4')+_0x48a566('0x58')+_0x48a566('0x86')+_0x48a566('0xe6')+_0x48a566('0x39')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20701\x20THEN\x20\x27SmsQueues\x27'+_0x48a566('0x156')+_0x48a566('0x31')+_0x48a566('0x14a')+_0x48a566('0x4d')+_0x48a566('0x82')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20810\x20THEN\x20\x27Realtime\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20900\x20THEN\x20\x27DELETE\x27'+_0x48a566('0x160')+_0x48a566('0xac')+_0x48a566('0xd')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201000\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201001\x20THEN\x20\x27CannedAnswers\x27'+_0x48a566('0x29')+_0x48a566('0x144')+_0x48a566('0xe1')+_0x48a566('0x126')+_0x48a566('0x54')+_0x48a566('0x25')+_0x48a566('0xab')+_0x48a566('0x64')+_0x48a566('0xd8')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201011\x20THEN\x20\x27Trunks\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201012\x20THEN\x20\x27Variables\x27'+_0x48a566('0x7b')+_0x48a566('0xf8')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201102\x20THEN\x20\x27SquareRecordings\x27'+_0x48a566('0x21')+_0x48a566('0x4f')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201201\x20THEN\x20\x27Metrics\x27'+_0x48a566('0x49')+_0x48a566('0x65')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201300\x20THEN\x20\x27DELETE\x27'+_0x48a566('0x1b')+_0x48a566('0x10')+_0x48a566('0x11b')+_0x48a566('0x3f')+_0x48a566('0x42')+_0x48a566('0x14e')+_0x48a566('0x8b')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27'+_0x48a566('0x57')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201500\x20THEN\x20\x27DELETE\x27'+_0x48a566('0x27')+_0x48a566('0x106')+_0x48a566('0xd9')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27'+_0x48a566('0x50')+_0x48a566('0x2a')+_0x48a566('0x6a')+_0x48a566('0x130')+_0x48a566('0xb1')+_0x48a566('0x55')+_0x48a566('0x35')+_0x48a566('0xcc')+_0x48a566('0x155')+_0x48a566('0x128')+_0x48a566('0x74')+_0x48a566('0x15e')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27'+_0x48a566('0x20')+_0x48a566('0x47')+_0x48a566('0x6')+_0x48a566('0x85')+_0x48a566('0xd4')+_0x48a566('0xa9')+_0x48a566('0x77')+_0x48a566('0x95')+_0x48a566('0x4a')+_0x48a566('0x52')+_0x48a566('0x5')+_0x48a566('0x78')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27AppZone\x27'+_0x48a566('0xfc')+'\x20\x20\x20\x20\x20\x20END'+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x73')+_0x48a566('0x148')),_0x44b80f[_0x48a566('0x68')]('CREATE\x20TABLE\x20tmpCustomResources'+_0x48a566('0x76')+_0x48a566('0x46')+_0x48a566('0x69')+_0x48a566('0x75')+'\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,'+_0x48a566('0xf6')+'\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20insertedId\x20int(11),'+_0x48a566('0xf0')+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x43')+_0x48a566('0x110')+_0x48a566('0xc1')+_0x48a566('0x7a')),_0x44b80f['query'](_0x48a566('0x120')+_0x48a566('0xea')),_0x44b80f['query'](_0x48a566('0xf4')+_0x48a566('0xba')),_0x44b80f['query'](_0x48a566('0xf4')+_0x48a566('0xcf')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xf4')+'\x20\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;'),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x114')+'\x20\x20SET\x20insertedId\x20=\x20(SELECT'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'+'\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27CustomDashboards\x27\x20THEN\x20(sectionId\x20-\x2099999)'+_0x48a566('0x38')+_0x48a566('0x103')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x98')+'\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId'+_0x48a566('0x133')),_0x44b80f['query'](_0x48a566('0xdd')+_0x48a566('0xda')+_0x48a566('0xd1')+_0x48a566('0x7')),_0x44b80f['query'](_0x48a566('0x11')+_0x48a566('0x9f')+_0x48a566('0x1')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xde')+_0x48a566('0x76')+_0x48a566('0xa0')+_0x48a566('0x44')+'\x20\x20\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,'+_0x48a566('0xa3')+'\x20\x20);'),_0x44b80f['query'](_0x48a566('0xa')+'\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId'+_0x48a566('0x7f')+_0x48a566('0x1c')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xfb')+'\x20\x20('+_0x48a566('0x46')+_0x48a566('0xb9')+'\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,'+'\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20sectionId\x20int(11)'+_0x48a566('0x122')),_0x44b80f[_0x48a566('0x68')]('INSERT\x20INTO\x20tmpNormalizedResources'+'\x20\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId'+_0x48a566('0x113')+_0x48a566('0x13f')+_0x48a566('0x10e')+'\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,'+'\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId'+_0x48a566('0x2b')+_0x48a566('0xb5')+_0x48a566('0x12b')),_0x44b80f[_0x48a566('0x68')]('INSERT\x20INTO\x20tmpNormalizedResources'+_0x48a566('0xc0')+'\x20\x20FROM\x20tmpCustomResources;'),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x12')+_0x48a566('0xe3')+_0x48a566('0x24')+_0x48a566('0x150')+_0x48a566('0x10a')+_0x48a566('0x0')+_0x48a566('0x8f')+_0x48a566('0xd7')+_0x48a566('0xc7')+_0x48a566('0x6c')+_0x48a566('0x100')+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20802\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x48a566('0xca')+_0x48a566('0x8d')+_0x48a566('0x3')+_0x48a566('0x7e')+'\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27Plugins\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20plugins\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x48a566('0x115')+_0x48a566('0xed')+_0x48a566('0x15')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xc2')+_0x48a566('0x9e')),_0x44b80f['query'](_0x48a566('0x10b')+_0x48a566('0x124')+'\x20\x20FROM\x20tmpNormalizedResources;'),_0x44b80f['query'](_0x48a566('0xec')+'\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId'+_0x48a566('0x14b')),_0x44b80f['query'](_0x48a566('0x3a')+_0x48a566('0x6f')+_0x48a566('0xc5')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x153')),_0x44b80f['query'](_0x48a566('0x121')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xa2')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xdf')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x7d')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xb6')),_0x44b80f['query'](_0x48a566('0xaf')),_0x44b80f[_0x48a566('0x68')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;'),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x22')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x30')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0xf5')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x2f')),_0x44b80f[_0x48a566('0x68')](_0x48a566('0x12e')),_0x44b80f['final'](_0x59a9aa);});},'down':function(){}}; \ No newline at end of file +const a964_0x1486=['\x20\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId','migration','changeColumn','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201011\x20THEN\x20\x27Trunks\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;','\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','CREATE\x20TABLE\x20tmpResources','\x20\x20WHERE\x20x.sectionId\x20=\x20602;','CREATE\x20TABLE\x20tmpPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201001\x20THEN\x20\x27CannedAnswers\x27','\x20\x20FROM\x20tally\x20INNER\x20JOIN\x20tmpPermissions\x20t\x20ON\x20CHAR_LENGTH(t.userIds)\x20-\x20CHAR_LENGTH(REPLACE(t.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','UPDATE\x20tmpCustomResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20301\x20THEN\x20\x27Lists\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201000\x20THEN\x20\x27DELETE\x27','UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),','catch','addColumn','\x20\x20FROM\x20tmpSections;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1301,\x201302,\x201303,\x201305,\x201306,\x201307,\x201308)\x20THEN\x20\x27Integrations\x27','\x20\x20GROUP\x20BY\x20userId;','addIndex','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20801\x20THEN\x20\x27OpenchannelQueues\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20601;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','INSERT\x20INTO\x20tmpGroupedPermissions','INSERT\x20INTO\x20tmpNormalizedUsers','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null','\x20\x20FROM\x20tmpGroupedPermissions','\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,','CREATE\x20TABLE\x20`user_profile_has_resources`\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','\x20\x20\x20\x20\x20\x20sectionId\x20int(11)','DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201004\x20THEN\x20\x27Intervals\x27','CREATE\x20TABLE\x20tmpNormalizedResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20101\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27CustomDashboards\x27',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201012\x20THEN\x20\x27Variables\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20810\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20502\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20chat_websites\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20ORDER\x20BY\x20id;','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20702\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20sms_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','tail','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27','UPDATE\x20users\x20u','\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20userId\x20text,','removeIndex','userProfileId','\x20\x20`userProfileId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27','\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally','\x20\x20FROM\x20(SELECT','voice_voicemail','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20203\x20THEN\x20\x27Telephones\x27','INSERT\x20INTO\x20tmpNormalizedPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201306\x20THEN\x20\x27DeskAccounts\x27','users','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;','\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId','\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201009\x20THEN\x20\x27Templates\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20801\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','finally','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201501\x20THEN\x20\x27QueueCampaigns\x27','\x20\x20FROM\x20tmpNormalizedResources;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20406\x20THEN\x20\x27Voicemails\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20902;','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20602\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20SELECT\x20*','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27','\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20901\x20THEN\x20\x27FaxQueues\x27','\x20\x20\x20\x20\x20\x20END','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;','INSERT\x20INTO\x20tmpSharedProfiles','sequence','\x20\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20WHERE\x20x.sectionId\x20=\x20401\x20AND\x20q.type\x20=\x20\x27inbound\x27;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201003\x20THEN\x20\x27CustomDashboards\x27','dropTable','info','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201700\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20FROM\x20tmpCustomResources;','analytics_extracted_reports','\x20\x20\x20\x20p.userIds\x20userId','\x20\x20\x20\x20t.permissions\x20permissions','UPDATE\x20tmpSections','\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20411\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20710\x20THEN\x20\x27Realtime\x27','\x20\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20501;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(301,\x20302,\x20303,\x20304)\x20THEN\x20\x27ContactManager\x27','\x20\x20WHERE\x20u.id\x20=\x20t.userId;','renameColumn','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201008\x20THEN\x20\x27Tags\x27','Removed\x20column\x20%s\x20from\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201502\x20THEN\x20\x27IvrCampaigns\x27','\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201302\x20THEN\x20\x27SalesforceAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201010\x20THEN\x20\x27Triggers\x27','DELETE\x20FROM\x20tmpSections','\x20\x20sectionId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,','prototype','\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20303\x20THEN\x20\x27Contacts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201002\x20THEN\x20\x27Dispositions\x27','\x20\x20UNION','\x20\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201601\x20THEN\x20\x27DELETE\x27','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','final','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201202\x20THEN\x20\x27ExtractedReports\x27','CREATE\x20TABLE\x20tmpExtractedResources\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20602\x20THEN\x20\x27MailAccounts\x27','join','\x20\x20);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20501\x20THEN\x20\x27ChatQueues\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20502\x20THEN\x20\x27ChatWebsites\x27','\x20\x20\x20\x20resourceId\x20text','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','INSERT\x20INTO\x20tmpFinalProfiles','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,','\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20202\x20THEN\x20\x27Agents\x27','\x20\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','INSERT\x20INTO\x20tally\x20(n)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20410\x20THEN\x20\x27VoicePrefixes\x27','FOREIGN\x20KEY\x20(`userProfileId`)\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20as\x20split','stringify','\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20601\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201500\x20THEN\x20\x27DELETE\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20802;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20user_profile_has_sections\x20x','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpPermissions\x20r\x20on\x20CHAR_LENGTH(r.userIds)\x20-\x20CHAR_LENGTH(REPLACE(r.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','CREATE\x20TABLE\x20tally\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201300\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201103\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20square_projects\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20304\x20THEN\x20\x27GlobalCustomFields\x27','\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20401\x20THEN\x20\x27VoiceQueues\x27','INSERT\x20INTO\x20tmpExtractedResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split','\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;','\x20\x20\x20\x20userId\x20int(11)\x20not\x20null','\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null','\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','UPDATE\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20902\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20as\x20users','\x20\x20\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','ON\x20UPDATE\x20CASCADE','\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpPermissions\x20r\x20ON\x20CHAR_LENGTH(r.userIds)\x20-\x20CHAR_LENGTH(REPLACE(r.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','removeIndex\x20%s\x20%s','\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,','\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId','inspect','\x20\x20SELECT\x20id,\x20permissions,\x20null','DELETE\x20FROM\x20tmpNormalizedResources','INSERT\x20INTO\x20tmpResources','\x20\x20FROM\x20user_profiles\x20u','then','\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId','\x20\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;','\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20702\x20THEN\x20\x27SmsAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201307\x20THEN\x20\x27ZohoAccounts\x27','\x20\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\x27;','\x20\x20(','\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27Plugins\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20plugins\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20901\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20fp.profileId\x20profileId,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20603\x20THEN\x20\x27MailSubstatuses\x27',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20d','\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','INSERT\x20INTO\x20tmpNormalizedResources','\x20\x20SELECT\x20x.sectionId,\x20u.SmsAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201501\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27outbound\x27),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),','\x20\x20WHERE\x20x.sectionId\x20=\x20901;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1001,\x201002,\x201003,\x201004,\x201005,\x201006,\x201007,\x201008,\x201009,\x201010,\x201011,\x201012)\x20THEN\x20\x27Tools\x27','\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)','INSERT\x20INTO\x20user_profile_has_resources\x20(name,\x20resourceId,\x20type,\x20createdAt,\x20updatedAt,\x20sectionId)','\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201305\x20THEN\x20\x27SugarcrmAccounts\x27','\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20resourceId\x20text,','\x20\x20CONSTRAINT\x20`user_profile_has_sections_ibfk_1`\x20FOREIGN\x20KEY\x20(`userProfileId`)\x20REFERENCES\x20`user_profiles`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,','\x20\x20FROM\x20tmpFinalProfiles\x20t','CREATE\x20TABLE\x20tmpGroupedPermissions','CREATE\x20TABLE\x20tmpNormalizedUsers','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null','CREATE\x20TABLE\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20AS\x20users','enqueue','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201201\x20THEN\x20\x27Metrics\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(SELECT','\x20\x20WHERE\x20x.sectionId\x20=\x20702;','\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,','SELECT\x20NULL\x20FROM','\x20\x20GROUP\x20BY\x20permissions','\x20\x20SET\x20insertedId\x20=\x20(SELECT','reportType','\x20\x20FROM\x20tmpNormalizedUsers\x20x','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20409\x20THEN\x20\x27ChanSpies\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20403\x20THEN\x20\x27OutboundRoutes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201102\x20THEN\x20\x27SquareRecordings\x27','\x20\x20SELECT\x20CONCAT(\x27Profile_\x27,\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20408\x20THEN\x20\x27VoiceRecordings\x27','\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27','\x20\x20FROM\x20tmpNormalizedSections','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20402\x20THEN\x20\x27InboundRoutes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(fp.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;','removeColumn','\x20\x20`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201006\x20THEN\x20\x27Scheduler\x27','CREATE\x20TABLE\x20tmpCustomResources','addIndex\x20%s\x20%s\x20%s','CREATE\x20TABLE\x20tmpNormalizedPermissions','CREATE\x20TABLE\x20`user_profiles`\x20(','\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20SET\x20name\x20=\x20(SELECT','\x20\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpNormalizedSections\x20s\x20ON\x20CHAR_LENGTH(s.userId)\x20-\x20CHAR_LENGTH(REPLACE(s.userId,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f','\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','query','\x20\x20\x20\x20userId\x20text','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','\x20\x20SET','\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,','../config/logger','\x20\x20END','\x20\x20resourceId\x20int(11),','INSERT\x20INTO\x20tmpCustomResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20902\x20THEN\x20\x27FaxAccounts\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20801;',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20c','INSERT\x20INTO\x20tmpNormalizedSections','\x20\x20FROM\x20tmpFinalProfiles;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20500\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','CREATE\x20TABLE\x20`user_profile_has_sections`\x20(','\x20\x20\x20\x20\x20\x20name\x20=\x20(SELECT','\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),','UPDATE\x20tmpSections\x20s','\x20\x20userId\x20int(11)','name','Added\x20column\x20%s\x20to\x20%s','\x20\x20\x20\x20sectionId\x20int(11)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1401,\x201402,\x201403,\x201404,\x201405,\x201406,\x201407)\x20THEN\x20\x27DELETE\x27','CREATE\x20TABLE\x20tmpSharedProfiles','\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.userId','\x20\x20WHERE\x20x.sectionId\x20=\x20502;','query\x20%s','ALTER\x20TABLE\x20`users`\x20','\x20\x20SET\x20u.userProfileId\x20=\x201','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20802\x20THEN\x20\x27OpenchannelAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\x27','(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20a','INSERT\x20INTO\x20tmpPermissions','util','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x201)\x20as\x20dummy\x20LIMIT\x201)','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(select\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id','\x20\x20PRIMARY\x20KEY\x20(`id`),','sequelize','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20800\x20THEN\x20\x27DELETE\x27','\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','exports','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27','\x20\x20FROM\x20tmpSections\x20s','INTEGER','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201308\x20THEN\x20\x27VtigerAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpResources\x20r\x20ON\x20CHAR_LENGTH(r.resourceId)\x20-\x20CHAR_LENGTH(REPLACE(r.resourceId,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','\x20\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27AppZone\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20302\x20THEN\x20\x27Companies\x27',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20e','\x20\x20`type`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20910\x20THEN\x20\x27Realtime\x27','queryInterface','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20s.userProfileId\x20=\x20x.userProfileId\x20AND\x20s.sectionId\x20=\x20x.sectionId);','\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20300\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20profileId\x20int(11)'];(function(_0x58fa1e,_0x1486f2){const _0x16eda0=function(_0x2ed34a){while(--_0x2ed34a){_0x58fa1e['push'](_0x58fa1e['shift']());}};_0x16eda0(++_0x1486f2);}(a964_0x1486,0xd2));const a964_0x16ed=function(_0x58fa1e,_0x1486f2){_0x58fa1e=_0x58fa1e-0x0;let _0x16eda0=a964_0x1486[_0x58fa1e];return _0x16eda0;};const _0x3c5ce2=a964_0x16ed;'use strict';const util=require(_0x3c5ce2('0x66')),logger=require(_0x3c5ce2('0x47'))(_0x3c5ce2('0x86')),Sequence=function(){};Sequence['prototype'][_0x3c5ce2('0x1d')]=function(_0x2ed34a){const _0x4fa1a0=_0x3c5ce2;this[_0x4fa1a0('0xb5')]=this[_0x4fa1a0('0xb5')]?this['tail'][_0x4fa1a0('0xcb')](_0x2ed34a):_0x2ed34a();};const Migration=function(_0x5badba){const _0x5d0609=_0x3c5ce2;this[_0x5d0609('0x7f')]=_0x5badba,this[_0x5d0609('0xdb')]=new Sequence();};Migration['prototype'][_0x3c5ce2('0x87')]=function(_0x40bdc9,_0x514702,_0x350775){const _0x447ee0=_0x3c5ce2,_0x24fa08=this;this['sequence'][_0x447ee0('0x1d')](function(){const _0x1bf508=_0x447ee0;return _0x24fa08[_0x1bf508('0x7f')][_0x1bf508('0x87')](_0x40bdc9,_0x514702,_0x350775)['then'](function(){const _0x5d8aaa=_0x1bf508;logger[_0x5d8aaa('0xe1')](_0x5d8aaa('0x2b'),_0x514702,_0x40bdc9);})['catch'](function(_0x3a78a2){const _0xa56bd5=_0x1bf508;logger[_0xa56bd5('0xe1')](JSON[_0xa56bd5('0x11e')](_0x3a78a2));});});},Migration[_0x3c5ce2('0x101')][_0x3c5ce2('0x97')]=function(_0x11157b,_0x130922,_0x3f2235){const _0xf97856=_0x3c5ce2,_0x4090fa=this;this[_0xf97856('0xdb')]['enqueue'](function(){const _0x489929=_0xf97856;return _0x4090fa['queryInterface'][_0x489929('0x97')](_0x11157b,_0x130922,_0x3f2235)[_0x489929('0x14b')](function(){const _0x97b799=_0x489929;logger[_0x97b799('0xe1')](_0x97b799('0x59'),_0x130922,_0x11157b);})['catch'](function(_0x37e92f){const _0x55a6d1=_0x489929;logger[_0x55a6d1('0xe1')](JSON[_0x55a6d1('0x11e')](_0x37e92f));});});},Migration[_0x3c5ce2('0x101')][_0x3c5ce2('0xe0')]=function(_0x3ab5de){const _0x5bc820=_0x3c5ce2,_0xd4ba4b=this;this[_0x5bc820('0xdb')][_0x5bc820('0x1d')](function(){const _0x5f382d=_0x5bc820;return _0xd4ba4b[_0x5f382d('0x7f')][_0x5f382d('0xe0')](_0x3ab5de,{'force':!![]})[_0x5f382d('0x14b')](function(){const _0x4807be=_0x5f382d;logger[_0x4807be('0xe1')]('table\x20dropped\x20%s',_0x3ab5de);})[_0x5f382d('0x96')](function(_0x2722e6){const _0x2f39af=_0x5f382d;logger[_0x2f39af('0xe1')](JSON[_0x2f39af('0x11e')](_0x2722e6));});});},Migration['prototype'][_0x3c5ce2('0x9b')]=function(_0xb930ee,_0x3c4aeb,_0x71eef1){const _0x583611=_0x3c5ce2,_0x1096c4=this;this[_0x583611('0xdb')][_0x583611('0x1d')](function(){const _0xfac932=_0x583611;return _0x1096c4['queryInterface']['addIndex'](_0xb930ee,_0x3c4aeb,{'indexName':_0x71eef1})[_0xfac932('0x14b')](function(){const _0x3a815d=_0xfac932;logger[_0x3a815d('0xe1')](_0x3a815d('0x3a'),_0xb930ee,_0x3c4aeb[_0x3a815d('0x10e')](','),_0x71eef1);})[_0xfac932('0x96')](function(_0x33d71a){const _0x176251=_0xfac932;logger['info'](JSON[_0x176251('0x11e')](_0x33d71a));});});},Migration[_0x3c5ce2('0x101')][_0x3c5ce2('0xba')]=function(_0x2d6811,_0x16d486){const _0x298e1a=_0x3c5ce2,_0x5ac3fc=this;this['sequence'][_0x298e1a('0x1d')](function(){const _0x50e335=_0x298e1a;return _0x5ac3fc['queryInterface'][_0x50e335('0xba')](_0x2d6811,_0x16d486)[_0x50e335('0x14b')](function(){const _0x1b9721=_0x50e335;logger[_0x1b9721('0xe1')](_0x1b9721('0x143'),_0x2d6811,_0x16d486);})[_0x50e335('0x96')](function(_0x5db799){const _0xfc7fc0=_0x50e335;logger[_0xfc7fc0('0xe1')](JSON['stringify'](_0x5db799));});});},Migration[_0x3c5ce2('0x101')]['query']=function(_0x1d565d){const _0x1d61f4=_0x3c5ce2,_0x4de22a=this;this[_0x1d61f4('0xdb')][_0x1d61f4('0x1d')](function(){const _0x450a5e=_0x1d61f4;return _0x4de22a['queryInterface'][_0x450a5e('0x6c')][_0x450a5e('0x42')](_0x1d565d)[_0x450a5e('0x14b')](function(){const _0x5a52c9=_0x450a5e;logger['info'](_0x5a52c9('0x5f'),_0x1d565d);})[_0x450a5e('0x96')](function(_0x414ab6){const _0x28d551=_0x450a5e;logger[_0x28d551('0xe1')](JSON['stringify'](_0x414ab6));});});},Migration['prototype']['removeColumn']=function(_0x441d0b,_0x32c27a){const _0x4bb882=_0x3c5ce2,_0x228c84=this;this[_0x4bb882('0xdb')][_0x4bb882('0x1d')](function(){const _0x2f47b=_0x4bb882;return _0x228c84[_0x2f47b('0x7f')][_0x2f47b('0x36')](_0x441d0b,_0x32c27a)[_0x2f47b('0x14b')](function(){const _0xb9cfcf=_0x2f47b;logger[_0xb9cfcf('0xe1')](_0xb9cfcf('0xf9'),_0x32c27a,_0x441d0b);})[_0x2f47b('0x96')](function(_0x39eaa7){const _0xb0d680=_0x2f47b;logger[_0xb0d680('0xe1')](util['inspect'](_0x39eaa7,{'showHidden':![],'depth':null}));});});},Migration[_0x3c5ce2('0x101')][_0x3c5ce2('0xf6')]=function(_0x3411b6,_0x411a03,_0x3119f3){const _0x551ef8=_0x3c5ce2,_0x4d4aa4=this;this[_0x551ef8('0xdb')][_0x551ef8('0x1d')](function(){const _0x22cb9b=_0x551ef8;return _0x4d4aa4[_0x22cb9b('0x7f')][_0x22cb9b('0xf6')](_0x3411b6,_0x411a03,_0x3119f3)['then'](function(){const _0x282522=_0x22cb9b;logger[_0x282522('0xe1')](_0x282522('0x13a'),_0x411a03,_0x3119f3,_0x3411b6);})[_0x22cb9b('0x96')](function(_0x26f867){const _0x1c3b5d=_0x22cb9b;logger[_0x1c3b5d('0xe1')](util[_0x1c3b5d('0x146')](_0x26f867,{'showHidden':![],'depth':null}));});});},Migration[_0x3c5ce2('0x101')][_0x3c5ce2('0x10a')]=function(_0x4fa8ad){const _0x290bf9=_0x3c5ce2;this[_0x290bf9('0xdb')]['enqueue'](function(){return _0x4fa8ad();});},module[_0x3c5ce2('0x6f')]={'up':function(_0x2dc412,_0x52a1af){return new Promise(function(_0x2ba63d){const _0x10ea21=a964_0x16ed,_0x144f7b=new Migration(_0x2dc412);_0x144f7b['addColumn'](_0x10ea21('0xe6'),'reportId',{'type':_0x52a1af['INTEGER']}),_0x144f7b[_0x10ea21('0x97')](_0x10ea21('0xe6'),_0x10ea21('0x25'),{'type':_0x52a1af['STRING']}),_0x144f7b[_0x10ea21('0x97')](_0x10ea21('0xc5'),_0x10ea21('0xbb'),{'type':_0x52a1af[_0x10ea21('0x73')]}),_0x144f7b[_0x10ea21('0x36')](_0x10ea21('0xc1'),_0x10ea21('0x58')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x3c')+_0x10ea21('0x52')+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x10ea21('0x144')+'\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x10ea21('0x70')+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+_0x10ea21('0x6b')+_0x10ea21('0x102')+_0x10ea21('0xaf')),_0x144f7b[_0x10ea21('0x42')]('INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)'+_0x10ea21('0x131')),_0x144f7b['query'](_0x10ea21('0x60')+_0x10ea21('0x1b')+_0x10ea21('0x11c')+'REFERENCES\x20user_profiles(`id`)\x20'+_0x10ea21('0x140')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x53')+_0x10ea21('0x52')+_0x10ea21('0x46')+'\x20\x20`category`\x20varchar(255)\x20NOT\x20NULL,'+'\x20\x20`sectionId`\x20int(11)\x20NOT\x20NULL,'+_0x10ea21('0x37')+'\x20\x20`autoAssociation`\x20tinyint(1)\x20DEFAULT\x20NULL,'+_0x10ea21('0x76')+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x10ea21('0xbe')+_0x10ea21('0xbc')+_0x10ea21('0x6b')+_0x10ea21('0x55')+_0x10ea21('0x11f')+_0x10ea21('0x13')+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xa7')+_0x10ea21('0x52')+_0x10ea21('0x46')+'\x20\x20`resourceId`\x20int(11)\x20NOT\x20NULL,'+_0x10ea21('0x7d')+_0x10ea21('0x70')+_0x10ea21('0xbe')+_0x10ea21('0x2c')+_0x10ea21('0x6b')+_0x10ea21('0x95')+'\x20\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),'+'\x20\x20CONSTRAINT\x20`user_profile_has_resources_ibfk_1`\x20FOREIGN\x20KEY\x20(`sectionId`)\x20REFERENCES\x20`user_profile_has_sections`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE'+_0x10ea21('0xaf')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x12b')+_0x10ea21('0x77')+');'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x11a')+_0x10ea21('0x22')+_0x10ea21('0x64')+',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20b'+_0x10ea21('0x4d')+_0x10ea21('0x4')+_0x10ea21('0x7c')+';'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x8e')+'\x20\x20('+'\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,'+_0x10ea21('0x150')+_0x10ea21('0x84')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x65')+_0x10ea21('0x147')+'\x20\x20FROM\x20users'+_0x10ea21('0x109')+_0x10ea21('0xb3')),_0x144f7b[_0x10ea21('0x42')]('CREATE\x20TABLE\x20tmpNormalizedSections'+_0x10ea21('0x155')+_0x10ea21('0x82')+_0x10ea21('0xb9')+_0x10ea21('0x113')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x4e')+'\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200'+_0x10ea21('0xc0')+_0x10ea21('0xa1')+_0x10ea21('0xe7')+'\x20\x20FROM\x20tally\x20INNER\x20JOIN\x20tmpPermissions\x20p\x20ON\x20CHAR_LENGTH(p.permissions)\x20-\x20CHAR_LENGTH(REPLACE(p.permissions,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1'+_0x10ea21('0xf')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x3b')+_0x10ea21('0x155')+'\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x10ea21('0x137')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xc3')+_0x10ea21('0xdc')+_0x10ea21('0x30')+_0x10ea21('0x9a')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x120')+'\x20\x20SET\x20u.permissions\x20=\x20t.permissions'+_0x10ea21('0xf5')),_0x144f7b[_0x10ea21('0x42')]('TRUNCATE\x20TABLE\x20tmpPermissions;'),_0x144f7b['query'](_0x10ea21('0x65')+_0x10ea21('0x138')+'\x20\x20FROM\x20users'+'\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27'+_0x10ea21('0x23')+'\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x17')+_0x10ea21('0x155')+_0x10ea21('0x82')+'\x20\x20\x20\x20userId\x20text,'+_0x10ea21('0x113')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xa0')+'\x20\x20SELECT\x20permission,\x20userId,\x200'+_0x10ea21('0xc0')+'\x20\x20s.sectionId\x20permission,'+'\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId'+_0x10ea21('0x3f')+_0x10ea21('0xf')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x10c')+_0x10ea21('0xff')+_0x10ea21('0x49')+_0x10ea21('0x57')+'\x20\x20);'),_0x144f7b['query'](_0x10ea21('0x134')+_0x10ea21('0xfb')+_0x10ea21('0x26')+'\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x10ea21('0x6a')+_0x10ea21('0xde')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x134')+_0x10ea21('0xc7')+_0x10ea21('0x26')+_0x10ea21('0x6e')+_0x10ea21('0xf3')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x134')+_0x10ea21('0x119')+_0x10ea21('0x26')+'\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x10ea21('0x5e')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x134')+'\x20\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId'+_0x10ea21('0x26')+_0x10ea21('0xe4')+_0x10ea21('0x9d')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x134')+_0x10ea21('0xc8')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x10ea21('0x11')+_0x10ea21('0x8d')),_0x144f7b[_0x10ea21('0x42')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x10ea21('0x132')+_0x10ea21('0x26')+_0x10ea21('0x106')+'\x20\x20WHERE\x20x.sectionId\x20=\x20701;'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x134')+_0x10ea21('0x7')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_sms_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x10ea21('0x20')),_0x144f7b[_0x10ea21('0x42')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x10ea21('0xa2')+_0x10ea21('0x26')+'\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x10ea21('0x4c')),_0x144f7b['query'](_0x10ea21('0x134')+'\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelAccountId,\x20x.userId'+_0x10ea21('0x26')+_0x10ea21('0x5')+_0x10ea21('0x124')),_0x144f7b[_0x10ea21('0x42')]('INSERT\x20INTO\x20tmpExtractedResources'+'\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId'+_0x10ea21('0x26')+_0x10ea21('0x130')+_0x10ea21('0xa')),_0x144f7b[_0x10ea21('0x42')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x10ea21('0x2e')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x10ea21('0x41')+_0x10ea21('0xd0')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x134')+_0x10ea21('0x8a')+_0x10ea21('0x26')+_0x10ea21('0x3d')+'\x20\x20WHERE\x20x.sectionId\x20=\x201103;'),_0x144f7b[_0x10ea21('0x42')]('INSERT\x20INTO\x20tmpExtractedResources'+'\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId'+_0x10ea21('0x26')+_0x10ea21('0xb8')+_0x10ea21('0x6a')+_0x10ea21('0x154')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x16')+_0x10ea21('0x155')+_0x10ea21('0x107')+_0x10ea21('0x18')+_0x10ea21('0x10f')),_0x144f7b['query'](_0x10ea21('0x9f')+'\x20\x20SELECT\x20userId,\x20permissions'+_0x10ea21('0xc0')+_0x10ea21('0x116')+_0x10ea21('0xe8')+_0x10ea21('0x90')+_0x10ea21('0xf')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x5c')+_0x10ea21('0x155')+'\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,'+'\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x10ea21('0x84')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xda')+_0x10ea21('0xa4')+_0x10ea21('0xa5')+_0x10ea21('0x5d')+_0x10ea21('0x1f')+_0x10ea21('0xe3')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t'+_0x10ea21('0x129')+_0x10ea21('0xed')+_0x10ea21('0x135')+'\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM'+_0x10ea21('0x1c')+_0x10ea21('0x78')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId'+_0x10ea21('0x80')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))'+_0x10ea21('0x23')+_0x10ea21('0x128')),_0x144f7b[_0x10ea21('0x42')]('CREATE\x20TABLE\x20tmpSingleProfiles'+'\x20\x20('+_0x10ea21('0x107')+_0x10ea21('0x150')+_0x10ea21('0x84')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')]('INSERT\x20INTO\x20tmpSingleProfiles'+'\x20\x20SELECT\x20userId,\x20permissions,\x20null'+_0x10ea21('0xa5')+_0x10ea21('0x85')+_0x10ea21('0x69')+_0x10ea21('0x142')+_0x10ea21('0xa8')+_0x10ea21('0x11d')+'\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM'+_0x10ea21('0x13e')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers'+_0x10ea21('0xdd')+_0x10ea21('0xd3')+_0x10ea21('0x44')+'\x20\x20ORDER\x20BY\x20userId;'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x19')+'\x20\x20('+_0x10ea21('0x107')+_0x10ea21('0x150')+_0x10ea21('0x84')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x115')+'\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles'+_0x10ea21('0x105')+'\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;'),_0x144f7b['query'](_0x10ea21('0x12a')+_0x10ea21('0x2a')+_0x10ea21('0x15')+_0x10ea21('0xa3')+_0x10ea21('0x4f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x13b')+_0x10ea21('0xf0')+_0x10ea21('0x14a')+_0x10ea21('0x67')),_0x144f7b[_0x10ea21('0x42')]('CREATE\x20TABLE\x20tmpSections'+_0x10ea21('0x155')+_0x10ea21('0x13d')+'\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,'+_0x10ea21('0x82')+_0x10ea21('0x21')+'\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,'+_0x10ea21('0xa6')+'\x20\x20\x20\x20insertedId\x20int(11),'+_0x10ea21('0x43')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')]('INSERT\x20INTO\x20tmpSections'+'\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId'+_0x10ea21('0xc0')+_0x10ea21('0x1')+_0x10ea21('0x34')+'\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId'+_0x10ea21('0xbf')+'\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpFinalProfiles\x20fp\x20ON\x20CHAR_LENGTH(fp.permissions)\x20-\x20CHAR_LENGTH(REPLACE(fp.permissions,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1'+_0x10ea21('0x14c')),_0x144f7b[_0x10ea21('0x42')]('UPDATE\x20tmpSections'+_0x10ea21('0x45')+_0x10ea21('0x54')+_0x10ea21('0x126')+_0x10ea21('0xce')+_0x10ea21('0xad')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20200\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20201\x20THEN\x20\x27DELETE\x27'+_0x10ea21('0x118')+_0x10ea21('0xc2')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20204\x20THEN\x20\x27Teams\x27'+_0x10ea21('0x83')+_0x10ea21('0x92')+_0x10ea21('0x7b')+_0x10ea21('0x103')+_0x10ea21('0x12f')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20400\x20THEN\x20\x27DELETE\x27'+_0x10ea21('0x133')+_0x10ea21('0x31')+_0x10ea21('0x28')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20404\x20THEN\x20\x27InternalRoutes\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20405\x20THEN\x20\x27Contexts\x27'+_0x10ea21('0xcf')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20407\x20THEN\x20\x27MusicOnHolds\x27'+_0x10ea21('0x2d')+_0x10ea21('0x27')+_0x10ea21('0x11b')+_0x10ea21('0xec')+_0x10ea21('0x50')+_0x10ea21('0x110')+_0x10ea21('0x112')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20510\x20THEN\x20\x27Realtime\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20600\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20601\x20THEN\x20\x27MailQueues\x27'+_0x10ea21('0x10d')+_0x10ea21('0x3')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20610\x20THEN\x20\x27Realtime\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20700\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20701\x20THEN\x20\x27SmsQueues\x27'+_0x10ea21('0x152')+_0x10ea21('0xef')+_0x10ea21('0x6d')+_0x10ea21('0x9c')+_0x10ea21('0x62')+_0x10ea21('0xb1')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20900\x20THEN\x20\x27DELETE\x27'+_0x10ea21('0xd7')+_0x10ea21('0x4b')+_0x10ea21('0x7e')+_0x10ea21('0x93')+_0x10ea21('0x8f')+_0x10ea21('0x104')+_0x10ea21('0xdf')+_0x10ea21('0xab')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201005\x20THEN\x20\x27Pauses\x27'+_0x10ea21('0x38')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201007\x20THEN\x20\x27Sounds\x27'+_0x10ea21('0xf8')+_0x10ea21('0xc9')+_0x10ea21('0xfd')+_0x10ea21('0x88')+_0x10ea21('0xb0')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201100\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201101\x20THEN\x20\x27ODBC\x27'+_0x10ea21('0x29')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201103\x20THEN\x20\x27SquareProjects\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201200\x20THEN\x20\x27DELETE\x27'+_0x10ea21('0x1e')+_0x10ea21('0x10b')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201203\x20THEN\x20\x27Reports\x27'+_0x10ea21('0x12c')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201301\x20THEN\x20\x27ZendeskAccounts\x27'+_0x10ea21('0xfc')+_0x10ea21('0x2')+_0x10ea21('0x10')+_0x10ea21('0xc4')+_0x10ea21('0x153')+_0x10ea21('0x74')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27'+_0x10ea21('0x5b')+_0x10ea21('0x123')+_0x10ea21('0xcc')+_0x10ea21('0xfa')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201510\x20THEN\x20\x27Realtime\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27'+_0x10ea21('0x108')+_0x10ea21('0xe2')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27Projects\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27Plugins\x27'+_0x10ea21('0xae')+_0x10ea21('0x9e')+_0x10ea21('0x32')+_0x10ea21('0x9')+'\x20\x20category\x20=\x20(SELECT'+_0x10ea21('0x12e')+_0x10ea21('0x51')+_0x10ea21('0xf2')+_0x10ea21('0xd4')+_0x10ea21('0xf4')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(401,\x20402,\x20403,\x20404,\x20405,\x20406,\x20407,\x20408,\x20409,\x20410,\x20411)\x20THEN\x20\x27Voice\x27'+_0x10ea21('0x63')+_0x10ea21('0xbd')+_0x10ea21('0x2f')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(901,\x20902,\x20910)\x20THEN\x20\x27Fax\x27'+_0x10ea21('0xb')+_0x10ea21('0x71')+_0x10ea21('0xeb')+_0x10ea21('0x99')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27'+_0x10ea21('0x1a')+_0x10ea21('0xb6')+_0x10ea21('0x127')+_0x10ea21('0x7a')+_0x10ea21('0xc')+_0x10ea21('0xd8')+_0x10ea21('0x10f')),_0x144f7b['query'](_0x10ea21('0xfe')+_0x10ea21('0x136')),_0x144f7b['query'](_0x10ea21('0x39')+_0x10ea21('0x155')+_0x10ea21('0x13d')+_0x10ea21('0x14')+_0x10ea21('0x82')+_0x10ea21('0x21')+_0x10ea21('0x117')+_0x10ea21('0xa6')+'\x20\x20\x20\x20insertedId\x20int(11),'+_0x10ea21('0x43')+'\x20\x20);'),_0x144f7b['query'](_0x10ea21('0x4a')+_0x10ea21('0xd2')+'\x20\x20FROM\x20tmpSections'+'\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xaa')+_0x10ea21('0x139')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xe9')+_0x10ea21('0xf1')),_0x144f7b['query'](_0x10ea21('0xe9')+'\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;'),_0x144f7b['query'](_0x10ea21('0xe9')+'\x20\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x91')+_0x10ea21('0x24')+_0x10ea21('0xee')+_0x10ea21('0xd')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27CustomDashboards\x27\x20THEN\x20(sectionId\x20-\x2099999)'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END'+_0x10ea21('0x33')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x151')+'\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId'+_0x10ea21('0x98')),_0x144f7b['query'](_0x10ea21('0x56')+'\x20\x20SET\x20insertedId\x20=\x20(SELECT\x20id'+_0x10ea21('0x125')+_0x10ea21('0x81')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x94')+_0x10ea21('0x14d')+_0x10ea21('0x121')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x8c')+_0x10ea21('0x155')+_0x10ea21('0x12')+_0x10ea21('0x13f')+'\x20\x20\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,'+_0x10ea21('0xa9')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x149')+_0x10ea21('0x145')+_0x10ea21('0x72')+_0x10ea21('0x14e')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xac')+_0x10ea21('0x155')+_0x10ea21('0x13d')+'\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,'+_0x10ea21('0x141')+_0x10ea21('0xd6')+_0x10ea21('0x5a')+_0x10ea21('0x10f')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x6')+'\x20\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId'+_0x10ea21('0xc0')+'\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.resourceId,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20resourceId,'+_0x10ea21('0x100')+_0x10ea21('0xea')+_0x10ea21('0x14f')+'\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally'+_0x10ea21('0x75')+'\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x144f7b['query']('INSERT\x20INTO\x20tmpNormalizedResources'+_0x10ea21('0x8b')+_0x10ea21('0xe5')),_0x144f7b[_0x10ea21('0x42')]('UPDATE\x20tmpNormalizedResources\x20x'+_0x10ea21('0x3e')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20401\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27inbound\x27),\x27DELETE_MIGRATION\x27)'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20501\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20chat_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x10ea21('0xb2')+_0x10ea21('0x122')+_0x10ea21('0xd1')+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20701\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20sms_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x10ea21('0xb4')+_0x10ea21('0xca')+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20802\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x10ea21('0x0')+_0x10ea21('0x13c')+_0x10ea21('0x12d')+_0x10ea21('0x8')+_0x10ea21('0x156')+'\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27CustomDashboards\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20dashboards\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x10ea21('0x48')+_0x10ea21('0x114')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x148')+_0x10ea21('0x79')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xe')+'\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId'+_0x10ea21('0xcd')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x40')+'\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId'+'\x20\x20WHERE\x20u.id\x20=\x20f.userId;'),_0x144f7b['query'](_0x10ea21('0xb7')+_0x10ea21('0x61')+_0x10ea21('0xd5')),_0x144f7b[_0x10ea21('0x42')]('\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;'),_0x144f7b['query'](_0x10ea21('0xc6')),_0x144f7b[_0x10ea21('0x42')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;'),_0x144f7b[_0x10ea21('0x42')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;'),_0x144f7b[_0x10ea21('0x42')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x89')),_0x144f7b[_0x10ea21('0x42')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;'),_0x144f7b[_0x10ea21('0x42')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;'),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xf7')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x68')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x35')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0xd9')),_0x144f7b[_0x10ea21('0x42')](_0x10ea21('0x111')),_0x144f7b['final'](_0x2ba63d);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.2.0.js b/server/migrations/2.2.0.js index 8d4ea8e..7014d47 100644 --- a/server/migrations/2.2.0.js +++ b/server/migrations/2.2.0.js @@ -1 +1 @@ -const a965_0x48aa=['exports','plivo','query\x20%s','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','dropTable','addIndex','info','clickatell','finally','sms_accounts','sequelize','type','twilio','queryInterface','table\x20dropped\x20%s','enqueue','addColumn','catch','infobip','final','query','phoneBarListenPort','connectel','util','sequence','ENUM','../config/logger','removeColumn','join','changeColumn','then','stringify','tail','csc','removeIndex','clicksend','prototype','users'];(function(_0x342181,_0x48aa78){const _0x7e83c0=function(_0x326dd8){while(--_0x326dd8){_0x342181['push'](_0x342181['shift']());}};_0x7e83c0(++_0x48aa78);}(a965_0x48aa,0x101));const a965_0x7e83=function(_0x342181,_0x48aa78){_0x342181=_0x342181-0x0;let _0x7e83c0=a965_0x48aa[_0x342181];return _0x7e83c0;};const _0x28132e=a965_0x7e83;'use strict';const util=require(_0x28132e('0x8')),logger=require(_0x28132e('0xb'))('migration'),Sequence=function(){};Sequence[_0x28132e('0x15')]['enqueue']=function(_0x326dd8){const _0x592569=_0x28132e;this[_0x592569('0x11')]=this[_0x592569('0x11')]?this['tail'][_0x592569('0x21')](_0x326dd8):_0x326dd8();};const Migration=function(_0x4805b4){const _0x263511=_0x28132e;this['queryInterface']=_0x4805b4,this[_0x263511('0x9')]=new Sequence();};Migration[_0x28132e('0x15')][_0x28132e('0xe')]=function(_0x194db1,_0x227a02,_0x51ecef){const _0x2bda56=_0x28132e,_0x1ae90c=this;this[_0x2bda56('0x9')]['enqueue'](function(){const _0x3cac78=_0x2bda56;return _0x1ae90c[_0x3cac78('0x26')][_0x3cac78('0xe')](_0x194db1,_0x227a02,_0x51ecef)[_0x3cac78('0xf')](function(){const _0x1a0109=_0x3cac78;logger[_0x1a0109('0x1f')](_0x1a0109('0x1b'),_0x227a02,_0x194db1);})['catch'](function(_0x46f3b0){const _0x5df53c=_0x3cac78;logger['info'](JSON[_0x5df53c('0x10')](_0x46f3b0));});});},Migration[_0x28132e('0x15')][_0x28132e('0x1')]=function(_0x2f3dc9,_0x63174b,_0x4fa8fe){const _0x552b70=_0x28132e,_0x5a83f0=this;this[_0x552b70('0x9')][_0x552b70('0x0')](function(){const _0x5f1d03=_0x552b70;return _0x5a83f0['queryInterface'][_0x5f1d03('0x1')](_0x2f3dc9,_0x63174b,_0x4fa8fe)[_0x5f1d03('0xf')](function(){const _0x5c13cf=_0x5f1d03;logger[_0x5c13cf('0x1f')](_0x5c13cf('0x1a'),_0x63174b,_0x2f3dc9);})[_0x5f1d03('0x2')](function(_0x328013){const _0x5adce5=_0x5f1d03;logger['info'](JSON[_0x5adce5('0x10')](_0x328013));});});},Migration[_0x28132e('0x15')][_0x28132e('0x1d')]=function(_0x1c6fa7){const _0x2831c9=_0x28132e,_0x337790=this;this[_0x2831c9('0x9')][_0x2831c9('0x0')](function(){const _0xd3fd78=_0x2831c9;return _0x337790[_0xd3fd78('0x26')]['dropTable'](_0x1c6fa7,{'force':!![]})['then'](function(){const _0x36ba5f=_0xd3fd78;logger[_0x36ba5f('0x1f')](_0x36ba5f('0x27'),_0x1c6fa7);})['catch'](function(_0x1bd8a2){const _0x4d6e09=_0xd3fd78;logger[_0x4d6e09('0x1f')](JSON[_0x4d6e09('0x10')](_0x1bd8a2));});});},Migration[_0x28132e('0x15')][_0x28132e('0x1e')]=function(_0x2e846a,_0x1bb392,_0x533702){const _0x4ac387=_0x28132e,_0x231a90=this;this[_0x4ac387('0x9')]['enqueue'](function(){const _0x5dc59=_0x4ac387;return _0x231a90[_0x5dc59('0x26')][_0x5dc59('0x1e')](_0x2e846a,_0x1bb392,{'indexName':_0x533702})[_0x5dc59('0xf')](function(){const _0x46344f=_0x5dc59;logger[_0x46344f('0x1f')]('addIndex\x20%s\x20%s\x20%s',_0x2e846a,_0x1bb392[_0x46344f('0xd')](','),_0x533702);})[_0x5dc59('0x2')](function(_0x58d0f7){const _0x22e052=_0x5dc59;logger[_0x22e052('0x1f')](JSON[_0x22e052('0x10')](_0x58d0f7));});});},Migration['prototype'][_0x28132e('0x13')]=function(_0xadb496,_0x1447f1){const _0x18e61d=_0x28132e,_0x189ac6=this;this[_0x18e61d('0x9')][_0x18e61d('0x0')](function(){const _0x5e6383=_0x18e61d;return _0x189ac6[_0x5e6383('0x26')][_0x5e6383('0x13')](_0xadb496,_0x1447f1)['then'](function(){const _0x3acea=_0x5e6383;logger[_0x3acea('0x1f')]('removeIndex\x20%s\x20%s',_0xadb496,_0x1447f1);})[_0x5e6383('0x2')](function(_0x521814){const _0x2757ba=_0x5e6383;logger[_0x2757ba('0x1f')](JSON['stringify'](_0x521814));});});},Migration['prototype'][_0x28132e('0x5')]=function(_0x4dab1f){const _0x3fd0c9=_0x28132e,_0x191c69=this;this['sequence'][_0x3fd0c9('0x0')](function(){const _0xb407fd=_0x3fd0c9;return _0x191c69[_0xb407fd('0x26')][_0xb407fd('0x23')]['query'](_0x4dab1f)[_0xb407fd('0xf')](function(){const _0xa63d7c=_0xb407fd;logger[_0xa63d7c('0x1f')](_0xa63d7c('0x19'),_0x4dab1f);})['catch'](function(_0x42431e){const _0x3c353e=_0xb407fd;logger[_0x3c353e('0x1f')](JSON[_0x3c353e('0x10')](_0x42431e));});});},Migration['prototype'][_0x28132e('0xc')]=function(_0x48e215,_0x2f9b18){const _0xe46152=_0x28132e,_0x52ff4d=this;this[_0xe46152('0x9')][_0xe46152('0x0')](function(){const _0x3dc7ee=_0xe46152;return _0x52ff4d[_0x3dc7ee('0x26')]['removeColumn'](_0x48e215,_0x2f9b18)[_0x3dc7ee('0xf')](function(){const _0x1b2632=_0x3dc7ee;logger[_0x1b2632('0x1f')]('Removed\x20column\x20%s\x20from\x20%s',_0x2f9b18,_0x48e215);})[_0x3dc7ee('0x2')](function(_0x20f64e){const _0x230018=_0x3dc7ee;logger[_0x230018('0x1f')](util[_0x230018('0x1c')](_0x20f64e,{'showHidden':![],'depth':null}));});});},Migration[_0x28132e('0x15')]['renameColumn']=function(_0x3c7017,_0x3af645,_0x4dd9af){const _0x362c9e=_0x28132e,_0x3f4424=this;this['sequence'][_0x362c9e('0x0')](function(){const _0xd27bfa=_0x362c9e;return _0x3f4424[_0xd27bfa('0x26')]['renameColumn'](_0x3c7017,_0x3af645,_0x4dd9af)[_0xd27bfa('0xf')](function(){const _0x16f767=_0xd27bfa;logger[_0x16f767('0x1f')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3af645,_0x4dd9af,_0x3c7017);})[_0xd27bfa('0x2')](function(_0x1670bf){logger['info'](util['inspect'](_0x1670bf,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x9e3344){const _0x931bc=_0x28132e;this[_0x931bc('0x9')][_0x931bc('0x0')](function(){return _0x9e3344();});},module[_0x28132e('0x17')]={'up':function(_0x3a80ac,_0x2da1cf){return new Promise(function(_0x2dcf35){const _0x35f9c4=a965_0x7e83,_0x5c580a=new Migration(_0x3a80ac);_0x5c580a[_0x35f9c4('0xe')](_0x35f9c4('0x22'),_0x35f9c4('0x24'),{'type':_0x2da1cf[_0x35f9c4('0xa')](_0x35f9c4('0x25'),'skebby',_0x35f9c4('0x7'),_0x35f9c4('0x14'),_0x35f9c4('0x18'),_0x35f9c4('0x20'),_0x35f9c4('0x12'),_0x35f9c4('0x3'),'intelepeer')}),_0x5c580a['changeColumn'](_0x35f9c4('0x16'),_0x35f9c4('0x6'),{'type':_0x2da1cf['INTEGER'](0x5),'defaultValue':0x1428}),_0x5c580a[_0x35f9c4('0x4')](_0x2dcf35);});},'down':function(){}}; \ No newline at end of file +const a965_0x4380=['stringify','changeColumn','connectel','addIndex\x20%s\x20%s\x20%s','skebby','addIndex','removeColumn','infobip','queryInterface','info','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','Added\x20column\x20%s\x20to\x20%s','migration','prototype','users','catch','removeIndex','final','addColumn','sequence','then','csc','type','clickatell','INTEGER','finally','twilio','query','sms_accounts','table\x20dropped\x20%s','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','renameColumn','dropTable','plivo','phoneBarListenPort','intelepeer','tail','inspect'];(function(_0x5474dd,_0x4380fd){const _0x42db4f=function(_0xa2f46f){while(--_0xa2f46f){_0x5474dd['push'](_0x5474dd['shift']());}};_0x42db4f(++_0x4380fd);}(a965_0x4380,0xfd));const a965_0x42db=function(_0x5474dd,_0x4380fd){_0x5474dd=_0x5474dd-0x0;let _0x42db4f=a965_0x4380[_0x5474dd];return _0x42db4f;};const _0xb7c1ce=a965_0x42db;'use strict';const util=require('util'),logger=require(_0xb7c1ce('0x1a'))(_0xb7c1ce('0x6')),Sequence=function(){};Sequence[_0xb7c1ce('0x7')][_0xb7c1ce('0x18')]=function(_0xa2f46f){const _0x33ad1a=_0xb7c1ce;this[_0x33ad1a('0x20')]=this['tail']?this['tail'][_0x33ad1a('0x13')](_0xa2f46f):_0xa2f46f();};const Migration=function(_0x287ca7){const _0xb52183=_0xb7c1ce;this[_0xb52183('0x1')]=_0x287ca7,this[_0xb52183('0xd')]=new Sequence();};Migration[_0xb7c1ce('0x7')][_0xb7c1ce('0x23')]=function(_0x2e8fd5,_0x44b931,_0x27f6cf){const _0x16e537=_0xb7c1ce,_0x355362=this;this['sequence'][_0x16e537('0x18')](function(){const _0x3a13d5=_0x16e537;return _0x355362[_0x3a13d5('0x1')][_0x3a13d5('0x23')](_0x2e8fd5,_0x44b931,_0x27f6cf)['then'](function(){const _0x2ce2fc=_0x3a13d5;logger[_0x2ce2fc('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x44b931,_0x2e8fd5);})[_0x3a13d5('0x9')](function(_0x4a6b6c){const _0x57363e=_0x3a13d5;logger['info'](JSON[_0x57363e('0x22')](_0x4a6b6c));});});},Migration[_0xb7c1ce('0x7')][_0xb7c1ce('0xc')]=function(_0x312287,_0xee65da,_0x5f221c){const _0x19b183=_0xb7c1ce,_0x4c949d=this;this[_0x19b183('0xd')]['enqueue'](function(){const _0x2f5236=_0x19b183;return _0x4c949d[_0x2f5236('0x1')][_0x2f5236('0xc')](_0x312287,_0xee65da,_0x5f221c)['then'](function(){const _0x262f0e=_0x2f5236;logger[_0x262f0e('0x2')](_0x262f0e('0x5'),_0xee65da,_0x312287);})[_0x2f5236('0x9')](function(_0x1829f7){const _0x1f258f=_0x2f5236;logger['info'](JSON[_0x1f258f('0x22')](_0x1829f7));});});},Migration['prototype'][_0xb7c1ce('0x1c')]=function(_0x4e0111){const _0xaf36e4=_0xb7c1ce,_0x509cc7=this;this[_0xaf36e4('0xd')]['enqueue'](function(){const _0x154db2=_0xaf36e4;return _0x509cc7[_0x154db2('0x1')][_0x154db2('0x1c')](_0x4e0111,{'force':!![]})[_0x154db2('0xe')](function(){const _0x405695=_0x154db2;logger[_0x405695('0x2')](_0x405695('0x17'),_0x4e0111);})['catch'](function(_0x41c166){const _0x2df5c5=_0x154db2;logger[_0x2df5c5('0x2')](JSON['stringify'](_0x41c166));});});},Migration[_0xb7c1ce('0x7')][_0xb7c1ce('0x27')]=function(_0x166e38,_0x534eb4,_0x882209){const _0x43026a=_0xb7c1ce,_0xf0a838=this;this[_0x43026a('0xd')]['enqueue'](function(){const _0x25f80a=_0x43026a;return _0xf0a838['queryInterface'][_0x25f80a('0x27')](_0x166e38,_0x534eb4,{'indexName':_0x882209})[_0x25f80a('0xe')](function(){const _0x4e746c=_0x25f80a;logger['info'](_0x4e746c('0x25'),_0x166e38,_0x534eb4['join'](','),_0x882209);})[_0x25f80a('0x9')](function(_0x4bdae8){const _0x3503bf=_0x25f80a;logger[_0x3503bf('0x2')](JSON[_0x3503bf('0x22')](_0x4bdae8));});});},Migration[_0xb7c1ce('0x7')][_0xb7c1ce('0xa')]=function(_0x1b0659,_0x152591){const _0x53c7fe=_0xb7c1ce,_0x403e2f=this;this[_0x53c7fe('0xd')][_0x53c7fe('0x18')](function(){const _0x4dab4c=_0x53c7fe;return _0x403e2f[_0x4dab4c('0x1')][_0x4dab4c('0xa')](_0x1b0659,_0x152591)[_0x4dab4c('0xe')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x1b0659,_0x152591);})[_0x4dab4c('0x9')](function(_0x372ff6){const _0x98d03e=_0x4dab4c;logger[_0x98d03e('0x2')](JSON[_0x98d03e('0x22')](_0x372ff6));});});},Migration['prototype'][_0xb7c1ce('0x15')]=function(_0x56b68a){const _0x2e1f22=_0xb7c1ce,_0x21ee7b=this;this['sequence'][_0x2e1f22('0x18')](function(){const _0x13320c=_0x2e1f22;return _0x21ee7b[_0x13320c('0x1')]['sequelize']['query'](_0x56b68a)[_0x13320c('0xe')](function(){const _0x49863a=_0x13320c;logger['info'](_0x49863a('0x4'),_0x56b68a);})['catch'](function(_0x7e52ff){const _0x36f07f=_0x13320c;logger[_0x36f07f('0x2')](JSON[_0x36f07f('0x22')](_0x7e52ff));});});},Migration[_0xb7c1ce('0x7')][_0xb7c1ce('0x28')]=function(_0x41c40c,_0x44109f){const _0x58a3fe=_0xb7c1ce,_0x32b3fb=this;this['sequence'][_0x58a3fe('0x18')](function(){const _0x7b1c36=_0x58a3fe;return _0x32b3fb['queryInterface']['removeColumn'](_0x41c40c,_0x44109f)[_0x7b1c36('0xe')](function(){const _0x421c62=_0x7b1c36;logger['info'](_0x421c62('0x3'),_0x44109f,_0x41c40c);})['catch'](function(_0x25fadc){const _0x160b28=_0x7b1c36;logger['info'](util[_0x160b28('0x21')](_0x25fadc,{'showHidden':![],'depth':null}));});});},Migration[_0xb7c1ce('0x7')][_0xb7c1ce('0x1b')]=function(_0x47c625,_0x2a90a5,_0x11b521){const _0x56396c=_0xb7c1ce,_0x2fb26b=this;this[_0x56396c('0xd')][_0x56396c('0x18')](function(){const _0x654e6d=_0x56396c;return _0x2fb26b['queryInterface']['renameColumn'](_0x47c625,_0x2a90a5,_0x11b521)[_0x654e6d('0xe')](function(){const _0x540409=_0x654e6d;logger[_0x540409('0x2')](_0x540409('0x19'),_0x2a90a5,_0x11b521,_0x47c625);})[_0x654e6d('0x9')](function(_0x1975bb){const _0xa8a241=_0x654e6d;logger[_0xa8a241('0x2')](util[_0xa8a241('0x21')](_0x1975bb,{'showHidden':![],'depth':null}));});});},Migration[_0xb7c1ce('0x7')][_0xb7c1ce('0xb')]=function(_0x48c566){const _0x52e86a=_0xb7c1ce;this[_0x52e86a('0xd')][_0x52e86a('0x18')](function(){return _0x48c566();});},module['exports']={'up':function(_0x2b3288,_0x5e3e42){return new Promise(function(_0x2f000b){const _0x4894f8=a965_0x42db,_0x8fbe28=new Migration(_0x2b3288);_0x8fbe28[_0x4894f8('0x23')](_0x4894f8('0x16'),_0x4894f8('0x10'),{'type':_0x5e3e42['ENUM'](_0x4894f8('0x14'),_0x4894f8('0x26'),_0x4894f8('0x24'),'clicksend',_0x4894f8('0x1d'),_0x4894f8('0x11'),_0x4894f8('0xf'),_0x4894f8('0x0'),_0x4894f8('0x1f'))}),_0x8fbe28[_0x4894f8('0x23')](_0x4894f8('0x8'),_0x4894f8('0x1e'),{'type':_0x5e3e42[_0x4894f8('0x12')](0x5),'defaultValue':0x1428}),_0x8fbe28[_0x4894f8('0xb')](_0x2f000b);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.2.1.js b/server/migrations/2.2.1.js index c7a90e8..96ce6f6 100644 --- a/server/migrations/2.2.1.js +++ b/server/migrations/2.2.1.js @@ -1 +1 @@ -const a966_0x5270=['tail','addIndex','dropTable','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','sequelize','then','inspect','addIndex\x20%s\x20%s\x20%s','exports','catch','addColumn','final','enqueue','removeIndex','queryInterface','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','migration','info','removeIndex\x20%s\x20%s','stringify','util','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','prototype','sequence','join','../config/logger'];(function(_0x5d5e3f,_0x5270b5){const _0x134f09=function(_0x490657){while(--_0x490657){_0x5d5e3f['push'](_0x5d5e3f['shift']());}};_0x134f09(++_0x5270b5);}(a966_0x5270,0xa2));const a966_0x134f=function(_0x5d5e3f,_0x5270b5){_0x5d5e3f=_0x5d5e3f-0x0;let _0x134f09=a966_0x5270[_0x5d5e3f];return _0x134f09;};const _0x4bb2c8=a966_0x134f;'use strict';const util=require(_0x4bb2c8('0xb')),logger=require(_0x4bb2c8('0x11'))(_0x4bb2c8('0x7')),Sequence=function(){};Sequence[_0x4bb2c8('0xe')][_0x4bb2c8('0x1')]=function(_0x490657){const _0x3e7ccd=_0x4bb2c8;this['tail']=this[_0x3e7ccd('0x12')]?this[_0x3e7ccd('0x12')]['finally'](_0x490657):_0x490657();};const Migration=function(_0x2f117c){const _0x4ce0b2=_0x4bb2c8;this[_0x4ce0b2('0x3')]=_0x2f117c,this[_0x4ce0b2('0xf')]=new Sequence();};Migration[_0x4bb2c8('0xe')][_0x4bb2c8('0x4')]=function(_0x3d9541,_0x5be0f4,_0x27ad17){const _0x24fb80=_0x4bb2c8,_0x33169b=this;this[_0x24fb80('0xf')][_0x24fb80('0x1')](function(){const _0x36b982=_0x24fb80;return _0x33169b['queryInterface'][_0x36b982('0x4')](_0x3d9541,_0x5be0f4,_0x27ad17)[_0x36b982('0x18')](function(){const _0x387519=_0x36b982;logger[_0x387519('0x8')](_0x387519('0xc'),_0x5be0f4,_0x3d9541);})[_0x36b982('0x1c')](function(_0x2a8756){const _0x2276e2=_0x36b982;logger['info'](JSON[_0x2276e2('0xa')](_0x2a8756));});});},Migration[_0x4bb2c8('0xe')][_0x4bb2c8('0x1d')]=function(_0x492e9b,_0x12daa1,_0xc75f18){const _0x2225b1=_0x4bb2c8,_0x148e21=this;this[_0x2225b1('0xf')][_0x2225b1('0x1')](function(){const _0x4aae2c=_0x2225b1;return _0x148e21[_0x4aae2c('0x3')][_0x4aae2c('0x1d')](_0x492e9b,_0x12daa1,_0xc75f18)[_0x4aae2c('0x18')](function(){const _0x410954=_0x4aae2c;logger[_0x410954('0x8')](_0x410954('0x15'),_0x12daa1,_0x492e9b);})[_0x4aae2c('0x1c')](function(_0x4fb27b){const _0x25c131=_0x4aae2c;logger['info'](JSON[_0x25c131('0xa')](_0x4fb27b));});});},Migration['prototype'][_0x4bb2c8('0x14')]=function(_0x4e99cf){const _0x34d473=_0x4bb2c8,_0xddc8b9=this;this[_0x34d473('0xf')][_0x34d473('0x1')](function(){const _0x5ab9b3=_0x34d473;return _0xddc8b9[_0x5ab9b3('0x3')][_0x5ab9b3('0x14')](_0x4e99cf,{'force':!![]})[_0x5ab9b3('0x18')](function(){const _0x26bc90=_0x5ab9b3;logger[_0x26bc90('0x8')]('table\x20dropped\x20%s',_0x4e99cf);})[_0x5ab9b3('0x1c')](function(_0xf54cba){const _0x25cfff=_0x5ab9b3;logger['info'](JSON[_0x25cfff('0xa')](_0xf54cba));});});},Migration[_0x4bb2c8('0xe')]['addIndex']=function(_0x29a556,_0x2a63bb,_0x3f1b6b){const _0xc7c9d8=_0x4bb2c8,_0x42fa35=this;this[_0xc7c9d8('0xf')][_0xc7c9d8('0x1')](function(){const _0xc73b75=_0xc7c9d8;return _0x42fa35[_0xc73b75('0x3')][_0xc73b75('0x13')](_0x29a556,_0x2a63bb,{'indexName':_0x3f1b6b})[_0xc73b75('0x18')](function(){const _0xa7af3c=_0xc73b75;logger[_0xa7af3c('0x8')](_0xa7af3c('0x1a'),_0x29a556,_0x2a63bb[_0xa7af3c('0x10')](','),_0x3f1b6b);})['catch'](function(_0x37e96b){const _0x244321=_0xc73b75;logger[_0x244321('0x8')](JSON['stringify'](_0x37e96b));});});},Migration['prototype'][_0x4bb2c8('0x2')]=function(_0x31a626,_0x2a320a){const _0x50fb62=_0x4bb2c8,_0x1a8f96=this;this[_0x50fb62('0xf')][_0x50fb62('0x1')](function(){const _0xaedf7a=_0x50fb62;return _0x1a8f96[_0xaedf7a('0x3')][_0xaedf7a('0x2')](_0x31a626,_0x2a320a)[_0xaedf7a('0x18')](function(){const _0x11b90f=_0xaedf7a;logger[_0x11b90f('0x8')](_0x11b90f('0x9'),_0x31a626,_0x2a320a);})['catch'](function(_0x3e8f36){const _0x329917=_0xaedf7a;logger[_0x329917('0x8')](JSON[_0x329917('0xa')](_0x3e8f36));});});},Migration['prototype'][_0x4bb2c8('0x6')]=function(_0x3b0f32){const _0x48e3d3=_0x4bb2c8,_0x3f479b=this;this['sequence'][_0x48e3d3('0x1')](function(){const _0x341667=_0x48e3d3;return _0x3f479b[_0x341667('0x3')][_0x341667('0x17')][_0x341667('0x6')](_0x3b0f32)['then'](function(){const _0x6d21d1=_0x341667;logger[_0x6d21d1('0x8')]('query\x20%s',_0x3b0f32);})[_0x341667('0x1c')](function(_0x43af84){const _0x2aa55b=_0x341667;logger[_0x2aa55b('0x8')](JSON['stringify'](_0x43af84));});});},Migration[_0x4bb2c8('0xe')]['removeColumn']=function(_0x29c718,_0x4d1855){const _0x43dd4c=_0x4bb2c8,_0x2b57b4=this;this[_0x43dd4c('0xf')][_0x43dd4c('0x1')](function(){const _0x1f38fa=_0x43dd4c;return _0x2b57b4[_0x1f38fa('0x3')]['removeColumn'](_0x29c718,_0x4d1855)['then'](function(){const _0xd3242b=_0x1f38fa;logger[_0xd3242b('0x8')](_0xd3242b('0x16'),_0x4d1855,_0x29c718);})[_0x1f38fa('0x1c')](function(_0x466a98){const _0x3f100b=_0x1f38fa;logger[_0x3f100b('0x8')](util[_0x3f100b('0x19')](_0x466a98,{'showHidden':![],'depth':null}));});});},Migration[_0x4bb2c8('0xe')][_0x4bb2c8('0xd')]=function(_0x129786,_0x1293be,_0xb4dfbc){const _0x2a9cd1=_0x4bb2c8,_0x3da575=this;this[_0x2a9cd1('0xf')][_0x2a9cd1('0x1')](function(){const _0x326a52=_0x2a9cd1;return _0x3da575[_0x326a52('0x3')][_0x326a52('0xd')](_0x129786,_0x1293be,_0xb4dfbc)[_0x326a52('0x18')](function(){const _0x5399ed=_0x326a52;logger[_0x5399ed('0x8')](_0x5399ed('0x5'),_0x1293be,_0xb4dfbc,_0x129786);})['catch'](function(_0x59b343){const _0x20c858=_0x326a52;logger[_0x20c858('0x8')](util[_0x20c858('0x19')](_0x59b343,{'showHidden':![],'depth':null}));});});},Migration[_0x4bb2c8('0xe')][_0x4bb2c8('0x0')]=function(_0x222015){const _0x16d2b2=_0x4bb2c8;this[_0x16d2b2('0xf')][_0x16d2b2('0x1')](function(){return _0x222015();});},module[_0x4bb2c8('0x1b')]={'up':function(_0x469d78){return new Promise(function(_0xf8dc2){const _0x52eb7f=new Migration(_0x469d78);_0x52eb7f['final'](_0xf8dc2);});},'down':function(){}}; \ No newline at end of file +const a966_0x5594=['inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','table\x20dropped\x20%s','query','then','addColumn','addIndex\x20%s\x20%s\x20%s','changeColumn','finally','join','util','queryInterface','addIndex','removeIndex','renameColumn','sequelize','sequence','catch','removeColumn','migration','exports','prototype','final','stringify','query\x20%s','tail','info'];(function(_0xbdbb8f,_0x559404){const _0x2ce229=function(_0x7ac75b){while(--_0x7ac75b){_0xbdbb8f['push'](_0xbdbb8f['shift']());}};_0x2ce229(++_0x559404);}(a966_0x5594,0x1ae));const a966_0x2ce2=function(_0xbdbb8f,_0x559404){_0xbdbb8f=_0xbdbb8f-0x0;let _0x2ce229=a966_0x5594[_0xbdbb8f];return _0x2ce229;};const _0x189bff=a966_0x2ce2;'use strict';const util=require(_0x189bff('0x11')),logger=require('../config/logger')(_0x189bff('0x1a')),Sequence=function(){};Sequence[_0x189bff('0x1c')]['enqueue']=function(_0x7ac75b){const _0x29b0d8=_0x189bff;this[_0x29b0d8('0x3')]=this['tail']?this[_0x29b0d8('0x3')][_0x29b0d8('0xf')](_0x7ac75b):_0x7ac75b();};const Migration=function(_0x2a49a3){const _0x1fe18d=_0x189bff;this[_0x1fe18d('0x12')]=_0x2a49a3,this['sequence']=new Sequence();};Migration[_0x189bff('0x1c')][_0x189bff('0xe')]=function(_0x21206d,_0x20ef89,_0x582054){const _0x213706=_0x189bff,_0x2ac518=this;this[_0x213706('0x17')][_0x213706('0x8')](function(){const _0x24bcd6=_0x213706;return _0x2ac518['queryInterface'][_0x24bcd6('0xe')](_0x21206d,_0x20ef89,_0x582054)[_0x24bcd6('0xb')](function(){const _0x295d08=_0x24bcd6;logger[_0x295d08('0x4')](_0x295d08('0x7'),_0x20ef89,_0x21206d);})[_0x24bcd6('0x18')](function(_0x526b8d){const _0x263227=_0x24bcd6;logger[_0x263227('0x4')](JSON[_0x263227('0x1')](_0x526b8d));});});},Migration[_0x189bff('0x1c')]['addColumn']=function(_0x33a569,_0x2a1e08,_0x1e3145){const _0x21a334=_0x189bff,_0x5ea2b6=this;this['sequence'][_0x21a334('0x8')](function(){const _0x237eb9=_0x21a334;return _0x5ea2b6[_0x237eb9('0x12')][_0x237eb9('0xc')](_0x33a569,_0x2a1e08,_0x1e3145)[_0x237eb9('0xb')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2a1e08,_0x33a569);})[_0x237eb9('0x18')](function(_0x5e9349){const _0x2f3af8=_0x237eb9;logger[_0x2f3af8('0x4')](JSON[_0x2f3af8('0x1')](_0x5e9349));});});},Migration[_0x189bff('0x1c')]['dropTable']=function(_0x139913){const _0x5bb391=_0x189bff,_0x4fc4d3=this;this[_0x5bb391('0x17')][_0x5bb391('0x8')](function(){const _0x28e947=_0x5bb391;return _0x4fc4d3['queryInterface']['dropTable'](_0x139913,{'force':!![]})['then'](function(){const _0x107ee6=a966_0x2ce2;logger[_0x107ee6('0x4')](_0x107ee6('0x9'),_0x139913);})[_0x28e947('0x18')](function(_0x3d73bb){logger['info'](JSON['stringify'](_0x3d73bb));});});},Migration[_0x189bff('0x1c')][_0x189bff('0x13')]=function(_0x47fa6f,_0x4295b5,_0x45d5ca){const _0x55645c=_0x189bff,_0x1c74cf=this;this[_0x55645c('0x17')][_0x55645c('0x8')](function(){const _0x217b56=_0x55645c;return _0x1c74cf['queryInterface'][_0x217b56('0x13')](_0x47fa6f,_0x4295b5,{'indexName':_0x45d5ca})[_0x217b56('0xb')](function(){const _0x59c8a5=_0x217b56;logger[_0x59c8a5('0x4')](_0x59c8a5('0xd'),_0x47fa6f,_0x4295b5[_0x59c8a5('0x10')](','),_0x45d5ca);})[_0x217b56('0x18')](function(_0x4a6855){const _0x2bea1=_0x217b56;logger[_0x2bea1('0x4')](JSON[_0x2bea1('0x1')](_0x4a6855));});});},Migration['prototype'][_0x189bff('0x14')]=function(_0x184e33,_0x444880){const _0x5aa5bc=_0x189bff,_0x321cf0=this;this[_0x5aa5bc('0x17')][_0x5aa5bc('0x8')](function(){const _0xe54d2b=_0x5aa5bc;return _0x321cf0['queryInterface'][_0xe54d2b('0x14')](_0x184e33,_0x444880)['then'](function(){const _0x5372cf=_0xe54d2b;logger[_0x5372cf('0x4')]('removeIndex\x20%s\x20%s',_0x184e33,_0x444880);})[_0xe54d2b('0x18')](function(_0x772586){const _0x6e77ed=_0xe54d2b;logger[_0x6e77ed('0x4')](JSON[_0x6e77ed('0x1')](_0x772586));});});},Migration[_0x189bff('0x1c')][_0x189bff('0xa')]=function(_0x3761de){const _0xc41003=_0x189bff,_0x2dd5e9=this;this[_0xc41003('0x17')][_0xc41003('0x8')](function(){const _0x28f64b=_0xc41003;return _0x2dd5e9['queryInterface'][_0x28f64b('0x16')][_0x28f64b('0xa')](_0x3761de)[_0x28f64b('0xb')](function(){const _0x610c0c=_0x28f64b;logger[_0x610c0c('0x4')](_0x610c0c('0x2'),_0x3761de);})[_0x28f64b('0x18')](function(_0x5ed0b0){const _0x4f62b9=_0x28f64b;logger[_0x4f62b9('0x4')](JSON['stringify'](_0x5ed0b0));});});},Migration[_0x189bff('0x1c')][_0x189bff('0x19')]=function(_0x20e567,_0x14f91a){const _0x573f6d=_0x189bff,_0x189928=this;this[_0x573f6d('0x17')][_0x573f6d('0x8')](function(){const _0x2c8633=_0x573f6d;return _0x189928[_0x2c8633('0x12')]['removeColumn'](_0x20e567,_0x14f91a)[_0x2c8633('0xb')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x14f91a,_0x20e567);})[_0x2c8633('0x18')](function(_0x384891){const _0x368a5d=_0x2c8633;logger[_0x368a5d('0x4')](util['inspect'](_0x384891,{'showHidden':![],'depth':null}));});});},Migration[_0x189bff('0x1c')]['renameColumn']=function(_0x480560,_0x33402a,_0xa7b83d){const _0x4545b8=_0x189bff,_0x5a2a76=this;this['sequence'][_0x4545b8('0x8')](function(){const _0xde3d4a=_0x4545b8;return _0x5a2a76['queryInterface'][_0xde3d4a('0x15')](_0x480560,_0x33402a,_0xa7b83d)['then'](function(){const _0x2ff13a=_0xde3d4a;logger['info'](_0x2ff13a('0x6'),_0x33402a,_0xa7b83d,_0x480560);})[_0xde3d4a('0x18')](function(_0x5e68bd){const _0x4f72ce=_0xde3d4a;logger[_0x4f72ce('0x4')](util[_0x4f72ce('0x5')](_0x5e68bd,{'showHidden':![],'depth':null}));});});},Migration[_0x189bff('0x1c')][_0x189bff('0x0')]=function(_0x4c41cf){const _0x54f08e=_0x189bff;this['sequence'][_0x54f08e('0x8')](function(){return _0x4c41cf();});},module[_0x189bff('0x1b')]={'up':function(_0x17156d){return new Promise(function(_0x5ec940){const _0x45a5ee=new Migration(_0x17156d);_0x45a5ee['final'](_0x5ec940);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.2.2.js b/server/migrations/2.2.2.js index 67f3c2f..aa68612 100644 --- a/server/migrations/2.2.2.js +++ b/server/migrations/2.2.2.js @@ -1 +1 @@ -const a967_0xcf59=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','query\x20%s','removeIndex','tail','catch','stringify','addColumn','then','sequence','sequelize','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','enqueue','finally','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','util','prototype','query','queryInterface','info','removeIndex\x20%s\x20%s','dropTable','addIndex','removeColumn','table\x20dropped\x20%s','changeColumn'];(function(_0x4d93d9,_0xcf594a){const _0x264e5a=function(_0x52a325){while(--_0x52a325){_0x4d93d9['push'](_0x4d93d9['shift']());}};_0x264e5a(++_0xcf594a);}(a967_0xcf59,0x14e));const a967_0x264e=function(_0x4d93d9,_0xcf594a){_0x4d93d9=_0x4d93d9-0x0;let _0x264e5a=a967_0xcf59[_0x4d93d9];return _0x264e5a;};const _0x43091f=a967_0x264e;'use strict';const util=require(_0x43091f('0x3')),logger=require(_0x43091f('0x2'))(_0x43091f('0x0')),Sequence=function(){};Sequence[_0x43091f('0x4')]['enqueue']=function(_0x52a325){const _0x245e9b=_0x43091f;this[_0x245e9b('0x12')]=this[_0x245e9b('0x12')]?this[_0x245e9b('0x12')][_0x245e9b('0x1c')](_0x52a325):_0x52a325();};const Migration=function(_0x31b7c6){this['queryInterface']=_0x31b7c6,this['sequence']=new Sequence();};Migration[_0x43091f('0x4')][_0x43091f('0xd')]=function(_0xf193c9,_0x44f672,_0x4a9fef){const _0x2636a8=_0x43091f,_0x1be712=this;this[_0x2636a8('0x17')]['enqueue'](function(){const _0x58096c=_0x2636a8;return _0x1be712['queryInterface'][_0x58096c('0xd')](_0xf193c9,_0x44f672,_0x4a9fef)[_0x58096c('0x16')](function(){const _0x5097e1=_0x58096c;logger[_0x5097e1('0x7')](_0x5097e1('0x1'),_0x44f672,_0xf193c9);})[_0x58096c('0x13')](function(_0x52f731){const _0x65df4a=_0x58096c;logger[_0x65df4a('0x7')](JSON[_0x65df4a('0x14')](_0x52f731));});});},Migration[_0x43091f('0x4')][_0x43091f('0x15')]=function(_0x4ab510,_0x2008a6,_0x3f1569){const _0x4677bc=_0x43091f,_0x1d9683=this;this[_0x4677bc('0x17')][_0x4677bc('0x1b')](function(){const _0x42392d=_0x4677bc;return _0x1d9683[_0x42392d('0x6')][_0x42392d('0x15')](_0x4ab510,_0x2008a6,_0x3f1569)[_0x42392d('0x16')](function(){const _0x33e868=_0x42392d;logger[_0x33e868('0x7')](_0x33e868('0x1a'),_0x2008a6,_0x4ab510);})[_0x42392d('0x13')](function(_0x338125){const _0x2541ef=_0x42392d;logger[_0x2541ef('0x7')](JSON[_0x2541ef('0x14')](_0x338125));});});},Migration['prototype'][_0x43091f('0x9')]=function(_0x3f1d82){const _0x158e65=_0x43091f,_0x5e0b25=this;this[_0x158e65('0x17')][_0x158e65('0x1b')](function(){const _0x2306d4=_0x158e65;return _0x5e0b25[_0x2306d4('0x6')]['dropTable'](_0x3f1d82,{'force':!![]})['then'](function(){const _0x16f7e3=_0x2306d4;logger[_0x16f7e3('0x7')](_0x16f7e3('0xc'),_0x3f1d82);})[_0x2306d4('0x13')](function(_0xb015d){const _0x5200c3=_0x2306d4;logger[_0x5200c3('0x7')](JSON[_0x5200c3('0x14')](_0xb015d));});});},Migration[_0x43091f('0x4')][_0x43091f('0xa')]=function(_0x27671b,_0x3a36a7,_0x2d29b7){const _0x3e9449=_0x43091f,_0x14bbf2=this;this[_0x3e9449('0x17')][_0x3e9449('0x1b')](function(){const _0x556d53=_0x3e9449;return _0x14bbf2[_0x556d53('0x6')]['addIndex'](_0x27671b,_0x3a36a7,{'indexName':_0x2d29b7})[_0x556d53('0x16')](function(){const _0x120ff8=_0x556d53;logger[_0x120ff8('0x7')](_0x120ff8('0xf'),_0x27671b,_0x3a36a7['join'](','),_0x2d29b7);})[_0x556d53('0x13')](function(_0x528f75){const _0xbf9cc9=_0x556d53;logger[_0xbf9cc9('0x7')](JSON['stringify'](_0x528f75));});});},Migration[_0x43091f('0x4')][_0x43091f('0x11')]=function(_0xeeb861,_0x543ded){const _0x470d64=_0x43091f,_0x23a1ee=this;this[_0x470d64('0x17')][_0x470d64('0x1b')](function(){const _0xc3bacd=_0x470d64;return _0x23a1ee[_0xc3bacd('0x6')][_0xc3bacd('0x11')](_0xeeb861,_0x543ded)[_0xc3bacd('0x16')](function(){const _0x1ab65b=_0xc3bacd;logger['info'](_0x1ab65b('0x8'),_0xeeb861,_0x543ded);})['catch'](function(_0x51b406){logger['info'](JSON['stringify'](_0x51b406));});});},Migration[_0x43091f('0x4')]['query']=function(_0x5de14a){const _0x3d28d1=_0x43091f,_0x1306b9=this;this[_0x3d28d1('0x17')]['enqueue'](function(){const _0xb7e409=_0x3d28d1;return _0x1306b9[_0xb7e409('0x6')][_0xb7e409('0x18')][_0xb7e409('0x5')](_0x5de14a)[_0xb7e409('0x16')](function(){const _0x2699e8=_0xb7e409;logger[_0x2699e8('0x7')](_0x2699e8('0x10'),_0x5de14a);})[_0xb7e409('0x13')](function(_0x4c6260){const _0x4b6420=_0xb7e409;logger['info'](JSON[_0x4b6420('0x14')](_0x4c6260));});});},Migration[_0x43091f('0x4')][_0x43091f('0xb')]=function(_0xb42ddb,_0x4eeccd){const _0x571b8d=_0x43091f,_0x6a0e5=this;this['sequence'][_0x571b8d('0x1b')](function(){const _0x258a8f=_0x571b8d;return _0x6a0e5[_0x258a8f('0x6')][_0x258a8f('0xb')](_0xb42ddb,_0x4eeccd)[_0x258a8f('0x16')](function(){const _0x4bd8ee=_0x258a8f;logger['info'](_0x4bd8ee('0x19'),_0x4eeccd,_0xb42ddb);})[_0x258a8f('0x13')](function(_0x571f94){const _0x2dd1ab=_0x258a8f;logger[_0x2dd1ab('0x7')](util['inspect'](_0x571f94,{'showHidden':![],'depth':null}));});});},Migration[_0x43091f('0x4')]['renameColumn']=function(_0x370c5e,_0xcfcf28,_0x4a8590){const _0x22bcd9=_0x43091f,_0x219425=this;this['sequence'][_0x22bcd9('0x1b')](function(){const _0x3c4bb5=_0x22bcd9;return _0x219425[_0x3c4bb5('0x6')]['renameColumn'](_0x370c5e,_0xcfcf28,_0x4a8590)[_0x3c4bb5('0x16')](function(){const _0x57fab3=_0x3c4bb5;logger[_0x57fab3('0x7')](_0x57fab3('0xe'),_0xcfcf28,_0x4a8590,_0x370c5e);})[_0x3c4bb5('0x13')](function(_0x1eeb15){const _0x32a999=_0x3c4bb5;logger[_0x32a999('0x7')](util['inspect'](_0x1eeb15,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x55e54b){const _0x1488f1=_0x43091f;this[_0x1488f1('0x17')][_0x1488f1('0x1b')](function(){return _0x55e54b();});},module['exports']={'up':function(_0x4ea6ff){return new Promise(function(_0x51430d){const _0x20837d=new Migration(_0x4ea6ff);_0x20837d['final'](_0x51430d);});},'down':function(){}}; \ No newline at end of file +const a967_0x2780=['removeIndex','prototype','join','tail','renameColumn','addIndex','removeIndex\x20%s\x20%s','removeColumn','queryInterface','table\x20dropped\x20%s','changeColumn','then','inspect','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','catch','addIndex\x20%s\x20%s\x20%s','query','finally','dropTable','info','sequence','sequelize','stringify'];(function(_0xb34385,_0x27802c){const _0x4ae7c0=function(_0x36b83a){while(--_0x36b83a){_0xb34385['push'](_0xb34385['shift']());}};_0x4ae7c0(++_0x27802c);}(a967_0x2780,0x1ad));const a967_0x4ae7=function(_0xb34385,_0x27802c){_0xb34385=_0xb34385-0x0;let _0x4ae7c0=a967_0x2780[_0xb34385];return _0x4ae7c0;};const _0x5a70d9=a967_0x4ae7;'use strict';const util=require('util'),logger=require(_0x5a70d9('0x6'))('migration'),Sequence=function(){};Sequence[_0x5a70d9('0x14')][_0x5a70d9('0x9')]=function(_0x36b83a){const _0x46aed6=_0x5a70d9;this['tail']=this[_0x46aed6('0x16')]?this[_0x46aed6('0x16')][_0x46aed6('0xd')](_0x36b83a):_0x36b83a();};const Migration=function(_0x42c9af){const _0x2700fc=_0x5a70d9;this[_0x2700fc('0x1b')]=_0x42c9af,this[_0x2700fc('0x10')]=new Sequence();};Migration[_0x5a70d9('0x14')][_0x5a70d9('0x1')]=function(_0x12564a,_0x4da14c,_0x363538){const _0x2bfef6=_0x5a70d9,_0x590c73=this;this[_0x2bfef6('0x10')]['enqueue'](function(){const _0x39f043=_0x2bfef6;return _0x590c73[_0x39f043('0x1b')][_0x39f043('0x1')](_0x12564a,_0x4da14c,_0x363538)[_0x39f043('0x2')](function(){const _0x1ec14b=_0x39f043;logger[_0x1ec14b('0xf')](_0x1ec14b('0x5'),_0x4da14c,_0x12564a);})[_0x39f043('0xa')](function(_0x52f9a0){const _0x14b3ad=_0x39f043;logger[_0x14b3ad('0xf')](JSON[_0x14b3ad('0x12')](_0x52f9a0));});});},Migration['prototype']['addColumn']=function(_0x207284,_0x2f4c81,_0x486e68){const _0x45a76b=_0x5a70d9,_0x36d2f6=this;this[_0x45a76b('0x10')][_0x45a76b('0x9')](function(){const _0x405047=_0x45a76b;return _0x36d2f6[_0x405047('0x1b')]['addColumn'](_0x207284,_0x2f4c81,_0x486e68)[_0x405047('0x2')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2f4c81,_0x207284);})['catch'](function(_0xdeef13){const _0x6cc401=_0x405047;logger[_0x6cc401('0xf')](JSON[_0x6cc401('0x12')](_0xdeef13));});});},Migration[_0x5a70d9('0x14')]['dropTable']=function(_0x120e65){const _0x1aa281=this;this['sequence']['enqueue'](function(){const _0xd68c8c=a967_0x4ae7;return _0x1aa281['queryInterface'][_0xd68c8c('0xe')](_0x120e65,{'force':!![]})[_0xd68c8c('0x2')](function(){const _0x11d958=_0xd68c8c;logger[_0x11d958('0xf')](_0x11d958('0x0'),_0x120e65);})[_0xd68c8c('0xa')](function(_0x20c4a5){const _0x524a1a=_0xd68c8c;logger[_0x524a1a('0xf')](JSON[_0x524a1a('0x12')](_0x20c4a5));});});},Migration['prototype'][_0x5a70d9('0x18')]=function(_0x513a3c,_0xe7609f,_0x9a20b2){const _0x24f9e0=_0x5a70d9,_0x379325=this;this[_0x24f9e0('0x10')][_0x24f9e0('0x9')](function(){const _0x52012e=_0x24f9e0;return _0x379325[_0x52012e('0x1b')][_0x52012e('0x18')](_0x513a3c,_0xe7609f,{'indexName':_0x9a20b2})[_0x52012e('0x2')](function(){const _0x487e5b=_0x52012e;logger['info'](_0x487e5b('0xb'),_0x513a3c,_0xe7609f[_0x487e5b('0x15')](','),_0x9a20b2);})[_0x52012e('0xa')](function(_0x9c9deb){const _0x47184f=_0x52012e;logger[_0x47184f('0xf')](JSON['stringify'](_0x9c9deb));});});},Migration['prototype'][_0x5a70d9('0x13')]=function(_0x13d235,_0x261310){const _0xa9ef65=_0x5a70d9,_0x4a9b9f=this;this['sequence'][_0xa9ef65('0x9')](function(){const _0x29d5c9=_0xa9ef65;return _0x4a9b9f[_0x29d5c9('0x1b')][_0x29d5c9('0x13')](_0x13d235,_0x261310)[_0x29d5c9('0x2')](function(){const _0x4e7933=_0x29d5c9;logger[_0x4e7933('0xf')](_0x4e7933('0x19'),_0x13d235,_0x261310);})[_0x29d5c9('0xa')](function(_0x30a173){const _0x11bff6=_0x29d5c9;logger[_0x11bff6('0xf')](JSON['stringify'](_0x30a173));});});},Migration[_0x5a70d9('0x14')][_0x5a70d9('0xc')]=function(_0x2b8069){const _0x55bf0c=this;this['sequence']['enqueue'](function(){const _0x434017=a967_0x4ae7;return _0x55bf0c[_0x434017('0x1b')][_0x434017('0x11')][_0x434017('0xc')](_0x2b8069)['then'](function(){const _0x558902=_0x434017;logger[_0x558902('0xf')](_0x558902('0x4'),_0x2b8069);})[_0x434017('0xa')](function(_0x6a1f8f){const _0x347e8d=_0x434017;logger[_0x347e8d('0xf')](JSON[_0x347e8d('0x12')](_0x6a1f8f));});});},Migration[_0x5a70d9('0x14')][_0x5a70d9('0x1a')]=function(_0x5521fe,_0x4efd80){const _0x42a0c3=_0x5a70d9,_0x27f8cc=this;this['sequence'][_0x42a0c3('0x9')](function(){const _0x1b386c=_0x42a0c3;return _0x27f8cc['queryInterface'][_0x1b386c('0x1a')](_0x5521fe,_0x4efd80)[_0x1b386c('0x2')](function(){const _0x3f0b01=_0x1b386c;logger[_0x3f0b01('0xf')]('Removed\x20column\x20%s\x20from\x20%s',_0x4efd80,_0x5521fe);})[_0x1b386c('0xa')](function(_0x1e85f0){const _0x8bb512=_0x1b386c;logger[_0x8bb512('0xf')](util[_0x8bb512('0x3')](_0x1e85f0,{'showHidden':![],'depth':null}));});});},Migration[_0x5a70d9('0x14')]['renameColumn']=function(_0x1d60c3,_0x56fc0f,_0x5de50d){const _0x5e0014=_0x5a70d9,_0x50cea1=this;this[_0x5e0014('0x10')]['enqueue'](function(){const _0x2f495b=_0x5e0014;return _0x50cea1[_0x2f495b('0x1b')][_0x2f495b('0x17')](_0x1d60c3,_0x56fc0f,_0x5de50d)[_0x2f495b('0x2')](function(){const _0x428834=_0x2f495b;logger['info'](_0x428834('0x8'),_0x56fc0f,_0x5de50d,_0x1d60c3);})[_0x2f495b('0xa')](function(_0x1d3e60){const _0x19efd6=_0x2f495b;logger[_0x19efd6('0xf')](util['inspect'](_0x1d3e60,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5a70d9('0x7')]=function(_0x1415cf){const _0x4e7006=_0x5a70d9;this[_0x4e7006('0x10')][_0x4e7006('0x9')](function(){return _0x1415cf();});},module['exports']={'up':function(_0xb02fbd){return new Promise(function(_0x90f017){const _0x50eb2c=a967_0x4ae7,_0x5d7d1e=new Migration(_0xb02fbd);_0x5d7d1e[_0x50eb2c('0x7')](_0x90f017);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.2.3.js b/server/migrations/2.2.3.js index 8c59aae..6e35746 100644 --- a/server/migrations/2.2.3.js +++ b/server/migrations/2.2.3.js @@ -1 +1 @@ -const a968_0x22ca=['messageId','catch','join','then','removeColumn','../config/logger','Removed\x20column\x20%s\x20from\x20%s','sequence','addIndex\x20%s\x20%s\x20%s','stringify','addIndex','exports','info','mail_interactions','prototype','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','mail_messages','util','changeColumn','renameColumn','query','migration','removeIndex','queryInterface','sequelize','addColumn','removeIndex\x20%s\x20%s','final','STRING','inspect','inReplyTo','dropTable','tail','enqueue'];(function(_0x49fe6e,_0x22ca37){const _0x471c97=function(_0x33a344){while(--_0x33a344){_0x49fe6e['push'](_0x49fe6e['shift']());}};_0x471c97(++_0x22ca37);}(a968_0x22ca,0xac));const a968_0x471c=function(_0x49fe6e,_0x22ca37){_0x49fe6e=_0x49fe6e-0x0;let _0x471c97=a968_0x22ca[_0x49fe6e];return _0x471c97;};const _0x1ba499=a968_0x471c;'use strict';const util=require(_0x1ba499('0x15')),logger=require(_0x1ba499('0x8'))(_0x1ba499('0x19')),Sequence=function(){};Sequence[_0x1ba499('0x11')]['enqueue']=function(_0x33a344){const _0x39b60e=_0x1ba499;this[_0x39b60e('0x1')]=this[_0x39b60e('0x1')]?this[_0x39b60e('0x1')]['finally'](_0x33a344):_0x33a344();};const Migration=function(_0x104d76){const _0x3cfd88=_0x1ba499;this[_0x3cfd88('0x1b')]=_0x104d76,this[_0x3cfd88('0xa')]=new Sequence();};Migration[_0x1ba499('0x11')]['changeColumn']=function(_0x6c130b,_0x1702ab,_0x2dbb3c){const _0x3e44be=_0x1ba499,_0x15f736=this;this[_0x3e44be('0xa')][_0x3e44be('0x2')](function(){const _0x162510=_0x3e44be;return _0x15f736[_0x162510('0x1b')][_0x162510('0x16')](_0x6c130b,_0x1702ab,_0x2dbb3c)[_0x162510('0x6')](function(){const _0x5ddeb1=_0x162510;logger['info'](_0x5ddeb1('0x13'),_0x1702ab,_0x6c130b);})[_0x162510('0x4')](function(_0x4533cf){const _0x2c1e63=_0x162510;logger[_0x2c1e63('0xf')](JSON[_0x2c1e63('0xc')](_0x4533cf));});});},Migration[_0x1ba499('0x11')]['addColumn']=function(_0x33baec,_0x2024e9,_0x527095){const _0x16ed3b=_0x1ba499,_0x44eac2=this;this[_0x16ed3b('0xa')][_0x16ed3b('0x2')](function(){const _0x234a95=_0x16ed3b;return _0x44eac2['queryInterface'][_0x234a95('0x1d')](_0x33baec,_0x2024e9,_0x527095)[_0x234a95('0x6')](function(){const _0xb2ed6f=_0x234a95;logger[_0xb2ed6f('0xf')](_0xb2ed6f('0x12'),_0x2024e9,_0x33baec);})[_0x234a95('0x4')](function(_0x1b9b03){const _0x5742cc=_0x234a95;logger[_0x5742cc('0xf')](JSON['stringify'](_0x1b9b03));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x0')]=function(_0x4389b8){const _0x5d0859=_0x1ba499,_0x193fca=this;this[_0x5d0859('0xa')][_0x5d0859('0x2')](function(){const _0x5e2b92=_0x5d0859;return _0x193fca[_0x5e2b92('0x1b')][_0x5e2b92('0x0')](_0x4389b8,{'force':!![]})['then'](function(){const _0x324f14=_0x5e2b92;logger[_0x324f14('0xf')]('table\x20dropped\x20%s',_0x4389b8);})[_0x5e2b92('0x4')](function(_0x41d6b6){const _0x4cda7f=_0x5e2b92;logger[_0x4cda7f('0xf')](JSON[_0x4cda7f('0xc')](_0x41d6b6));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0xd')]=function(_0x418739,_0x1df2ef,_0x233741){const _0x18a538=_0x1ba499,_0x2a83ca=this;this[_0x18a538('0xa')]['enqueue'](function(){const _0xa2311a=_0x18a538;return _0x2a83ca['queryInterface'][_0xa2311a('0xd')](_0x418739,_0x1df2ef,{'indexName':_0x233741})[_0xa2311a('0x6')](function(){const _0xe4291b=_0xa2311a;logger[_0xe4291b('0xf')](_0xe4291b('0xb'),_0x418739,_0x1df2ef[_0xe4291b('0x5')](','),_0x233741);})[_0xa2311a('0x4')](function(_0x47e05c){const _0x5e2b02=_0xa2311a;logger[_0x5e2b02('0xf')](JSON['stringify'](_0x47e05c));});});},Migration[_0x1ba499('0x11')]['removeIndex']=function(_0xd2ab59,_0x3a4f54){const _0x4ba345=_0x1ba499,_0x28d3e2=this;this[_0x4ba345('0xa')][_0x4ba345('0x2')](function(){const _0x3f9329=_0x4ba345;return _0x28d3e2['queryInterface'][_0x3f9329('0x1a')](_0xd2ab59,_0x3a4f54)['then'](function(){const _0x40678b=_0x3f9329;logger[_0x40678b('0xf')](_0x40678b('0x1e'),_0xd2ab59,_0x3a4f54);})['catch'](function(_0x3c682b){logger['info'](JSON['stringify'](_0x3c682b));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x18')]=function(_0x540bc1){const _0x2e485f=_0x1ba499,_0x2ccca0=this;this[_0x2e485f('0xa')][_0x2e485f('0x2')](function(){const _0xfd8390=_0x2e485f;return _0x2ccca0[_0xfd8390('0x1b')][_0xfd8390('0x1c')][_0xfd8390('0x18')](_0x540bc1)['then'](function(){logger['info']('query\x20%s',_0x540bc1);})[_0xfd8390('0x4')](function(_0x8fb6cd){const _0x2fee65=_0xfd8390;logger[_0x2fee65('0xf')](JSON[_0x2fee65('0xc')](_0x8fb6cd));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x7')]=function(_0x55317f,_0x50b661){const _0x13d4c2=_0x1ba499,_0x5ab267=this;this[_0x13d4c2('0xa')][_0x13d4c2('0x2')](function(){const _0x4a0366=_0x13d4c2;return _0x5ab267[_0x4a0366('0x1b')][_0x4a0366('0x7')](_0x55317f,_0x50b661)[_0x4a0366('0x6')](function(){const _0x515229=_0x4a0366;logger[_0x515229('0xf')](_0x515229('0x9'),_0x50b661,_0x55317f);})[_0x4a0366('0x4')](function(_0xbcbba6){const _0x177c3a=_0x4a0366;logger['info'](util[_0x177c3a('0x21')](_0xbcbba6,{'showHidden':![],'depth':null}));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x17')]=function(_0xbf44a4,_0x38e557,_0xf4afe9){const _0x3cf942=_0x1ba499,_0x4ef6af=this;this[_0x3cf942('0xa')][_0x3cf942('0x2')](function(){const _0x1386e7=_0x3cf942;return _0x4ef6af[_0x1386e7('0x1b')]['renameColumn'](_0xbf44a4,_0x38e557,_0xf4afe9)[_0x1386e7('0x6')](function(){const _0x190fb6=_0x1386e7;logger[_0x190fb6('0xf')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x38e557,_0xf4afe9,_0xbf44a4);})['catch'](function(_0x28f625){const _0x5df846=_0x1386e7;logger[_0x5df846('0xf')](util[_0x5df846('0x21')](_0x28f625,{'showHidden':![],'depth':null}));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x1f')]=function(_0x17d43c){const _0x348632=_0x1ba499;this[_0x348632('0xa')][_0x348632('0x2')](function(){return _0x17d43c();});},module[_0x1ba499('0xe')]={'up':function(_0x472a46,_0x455589){return new Promise(function(_0x361f0e){const _0x1532a1=a968_0x471c,_0x5c4fe7=new Migration(_0x472a46);_0x5c4fe7[_0x1532a1('0x16')](_0x1532a1('0x10'),_0x1532a1('0x22'),{'type':_0x455589[_0x1532a1('0x20')](0x1fe)}),_0x5c4fe7[_0x1532a1('0x16')](_0x1532a1('0x14'),_0x1532a1('0x3'),{'type':_0x455589[_0x1532a1('0x20')](0x1fe)}),_0x5c4fe7[_0x1532a1('0x1f')](_0x361f0e);});},'down':function(){}}; \ No newline at end of file +const a968_0x600b=['messageId','inspect','dropTable','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','queryInterface','exports','catch','addColumn','query\x20%s','finally','STRING','stringify','mail_messages','enqueue','then','removeColumn','Added\x20column\x20%s\x20to\x20%s','prototype','renameColumn','info','final','removeIndex\x20%s\x20%s','tail','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence'];(function(_0x5428ad,_0x600ba2){const _0x5b87c6=function(_0x68207b){while(--_0x68207b){_0x5428ad['push'](_0x5428ad['shift']());}};_0x5b87c6(++_0x600ba2);}(a968_0x600b,0x1f1));const a968_0x5b87=function(_0x5428ad,_0x600ba2){_0x5428ad=_0x5428ad-0x0;let _0x5b87c6=a968_0x600b[_0x5428ad];return _0x5b87c6;};const _0x33416a=a968_0x5b87;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x33416a('0x1a')][_0x33416a('0x16')]=function(_0x68207b){const _0x4704cd=_0x33416a;this[_0x4704cd('0x3')]=this[_0x4704cd('0x3')]?this['tail'][_0x4704cd('0x12')](_0x68207b):_0x68207b();};const Migration=function(_0x2e53c4){const _0x204b75=_0x33416a;this[_0x204b75('0xd')]=_0x2e53c4,this[_0x204b75('0x6')]=new Sequence();};Migration[_0x33416a('0x1a')][_0x33416a('0xc')]=function(_0x1effdb,_0x191523,_0x15fa99){const _0x35a61d=_0x33416a,_0x28a112=this;this[_0x35a61d('0x6')][_0x35a61d('0x16')](function(){const _0x48c5a5=_0x35a61d;return _0x28a112[_0x48c5a5('0xd')][_0x48c5a5('0xc')](_0x1effdb,_0x191523,_0x15fa99)[_0x48c5a5('0x17')](function(){const _0x5a8d44=_0x48c5a5;logger[_0x5a8d44('0x0')](_0x5a8d44('0x5'),_0x191523,_0x1effdb);})[_0x48c5a5('0xf')](function(_0x7a324e){const _0x2242be=_0x48c5a5;logger[_0x2242be('0x0')](JSON['stringify'](_0x7a324e));});});},Migration[_0x33416a('0x1a')][_0x33416a('0x10')]=function(_0x2e013f,_0x2e5687,_0x30b4f2){const _0x2cd3eb=_0x33416a,_0xc9a58f=this;this[_0x2cd3eb('0x6')][_0x2cd3eb('0x16')](function(){const _0x543b85=_0x2cd3eb;return _0xc9a58f[_0x543b85('0xd')][_0x543b85('0x10')](_0x2e013f,_0x2e5687,_0x30b4f2)[_0x543b85('0x17')](function(){const _0x10126c=_0x543b85;logger[_0x10126c('0x0')](_0x10126c('0x19'),_0x2e5687,_0x2e013f);})[_0x543b85('0xf')](function(_0x1959a0){const _0x3acfb9=_0x543b85;logger[_0x3acfb9('0x0')](JSON[_0x3acfb9('0x14')](_0x1959a0));});});},Migration[_0x33416a('0x1a')][_0x33416a('0x9')]=function(_0x306aeb){const _0x365e33=_0x33416a,_0x24fd7e=this;this[_0x365e33('0x6')][_0x365e33('0x16')](function(){const _0x501b21=_0x365e33;return _0x24fd7e[_0x501b21('0xd')]['dropTable'](_0x306aeb,{'force':!![]})[_0x501b21('0x17')](function(){const _0x2b4c09=_0x501b21;logger[_0x2b4c09('0x0')]('table\x20dropped\x20%s',_0x306aeb);})[_0x501b21('0xf')](function(_0x5b5d02){const _0x746bfe=_0x501b21;logger[_0x746bfe('0x0')](JSON[_0x746bfe('0x14')](_0x5b5d02));});});},Migration['prototype']['addIndex']=function(_0x51a294,_0x9e4f7f,_0x255416){const _0x143262=_0x33416a,_0xc28cf9=this;this['sequence'][_0x143262('0x16')](function(){const _0x2218bc=_0x143262;return _0xc28cf9[_0x2218bc('0xd')]['addIndex'](_0x51a294,_0x9e4f7f,{'indexName':_0x255416})['then'](function(){const _0x585e9f=_0x2218bc;logger[_0x585e9f('0x0')]('addIndex\x20%s\x20%s\x20%s',_0x51a294,_0x9e4f7f['join'](','),_0x255416);})[_0x2218bc('0xf')](function(_0x34c14c){const _0x4e45f2=_0x2218bc;logger[_0x4e45f2('0x0')](JSON['stringify'](_0x34c14c));});});},Migration[_0x33416a('0x1a')]['removeIndex']=function(_0x25b361,_0xaca70a){const _0xa62f94=_0x33416a,_0x40281f=this;this[_0xa62f94('0x6')][_0xa62f94('0x16')](function(){const _0xfac3a3=_0xa62f94;return _0x40281f[_0xfac3a3('0xd')][_0xfac3a3('0x4')](_0x25b361,_0xaca70a)[_0xfac3a3('0x17')](function(){const _0x448d48=_0xfac3a3;logger[_0x448d48('0x0')](_0x448d48('0x2'),_0x25b361,_0xaca70a);})[_0xfac3a3('0xf')](function(_0x491aa4){const _0x1e93e3=_0xfac3a3;logger['info'](JSON[_0x1e93e3('0x14')](_0x491aa4));});});},Migration['prototype'][_0x33416a('0xa')]=function(_0x515b10){const _0x26b235=_0x33416a,_0x2a9fca=this;this['sequence'][_0x26b235('0x16')](function(){const _0xa0565=_0x26b235;return _0x2a9fca[_0xa0565('0xd')]['sequelize']['query'](_0x515b10)[_0xa0565('0x17')](function(){const _0x587a54=_0xa0565;logger[_0x587a54('0x0')](_0x587a54('0x11'),_0x515b10);})[_0xa0565('0xf')](function(_0x3d3485){const _0x4cfb7d=_0xa0565;logger[_0x4cfb7d('0x0')](JSON[_0x4cfb7d('0x14')](_0x3d3485));});});},Migration['prototype']['removeColumn']=function(_0x196e1c,_0x1506e0){const _0x3e4671=_0x33416a,_0xafa140=this;this[_0x3e4671('0x6')]['enqueue'](function(){const _0x3eddd3=_0x3e4671;return _0xafa140[_0x3eddd3('0xd')][_0x3eddd3('0x18')](_0x196e1c,_0x1506e0)[_0x3eddd3('0x17')](function(){const _0x246781=_0x3eddd3;logger[_0x246781('0x0')]('Removed\x20column\x20%s\x20from\x20%s',_0x1506e0,_0x196e1c);})[_0x3eddd3('0xf')](function(_0x146b6f){const _0x207c49=_0x3eddd3;logger[_0x207c49('0x0')](util[_0x207c49('0x8')](_0x146b6f,{'showHidden':![],'depth':null}));});});},Migration[_0x33416a('0x1a')][_0x33416a('0x1b')]=function(_0x58cd60,_0x32ed9d,_0x2ce0fd){const _0x513921=this;this['sequence']['enqueue'](function(){const _0x17a754=a968_0x5b87;return _0x513921['queryInterface']['renameColumn'](_0x58cd60,_0x32ed9d,_0x2ce0fd)[_0x17a754('0x17')](function(){const _0x49d3d0=_0x17a754;logger[_0x49d3d0('0x0')](_0x49d3d0('0xb'),_0x32ed9d,_0x2ce0fd,_0x58cd60);})[_0x17a754('0xf')](function(_0x55a2eb){const _0x7e48c5=_0x17a754;logger[_0x7e48c5('0x0')](util[_0x7e48c5('0x8')](_0x55a2eb,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x26dcf7){const _0x7f04c4=_0x33416a;this['sequence'][_0x7f04c4('0x16')](function(){return _0x26dcf7();});},module[_0x33416a('0xe')]={'up':function(_0x28c060,_0x3de63d){return new Promise(function(_0x26d0db){const _0x331208=a968_0x5b87,_0x555238=new Migration(_0x28c060);_0x555238[_0x331208('0xc')]('mail_interactions','inReplyTo',{'type':_0x3de63d[_0x331208('0x13')](0x1fe)}),_0x555238[_0x331208('0xc')](_0x331208('0x15'),_0x331208('0x7'),{'type':_0x3de63d[_0x331208('0x13')](0x1fe)}),_0x555238[_0x331208('0x1')](_0x26d0db);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.2.4.js b/server/migrations/2.2.4.js index ed3fac3..8cd8ccb 100644 --- a/server/migrations/2.2.4.js +++ b/server/migrations/2.2.4.js @@ -1 +1 @@ -const a969_0x1349=['util','enqueue','table\x20dropped\x20%s','inspect','removeIndex\x20%s\x20%s','addIndex','tail','info','ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)','then','query','exports','Added\x20column\x20%s\x20to\x20%s','query\x20%s','migration','sequence','addColumn','finally','addIndex\x20%s\x20%s\x20%s','prototype','removeIndex','ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)','../config/logger','queryInterface','removeColumn','stringify','final','renameColumn','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','changeColumn','catch','dropTable','ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)'];(function(_0x17ca3b,_0x1349a4){const _0x168847=function(_0x3823bb){while(--_0x3823bb){_0x17ca3b['push'](_0x17ca3b['shift']());}};_0x168847(++_0x1349a4);}(a969_0x1349,0x13a));const a969_0x1688=function(_0x17ca3b,_0x1349a4){_0x17ca3b=_0x17ca3b-0x0;let _0x168847=a969_0x1349[_0x17ca3b];return _0x168847;};const _0x507863=a969_0x1688;'use strict';const util=require(_0x507863('0x1a')),logger=require(_0x507863('0xe'))(_0x507863('0x6')),Sequence=function(){};Sequence['prototype'][_0x507863('0x1b')]=function(_0x3823bb){const _0x209589=_0x507863;this[_0x209589('0x20')]=this['tail']?this[_0x209589('0x20')][_0x209589('0x9')](_0x3823bb):_0x3823bb();};const Migration=function(_0x4689a6){const _0x5af9c5=_0x507863;this[_0x5af9c5('0xf')]=_0x4689a6,this[_0x5af9c5('0x7')]=new Sequence();};Migration[_0x507863('0xb')][_0x507863('0x16')]=function(_0xad87f1,_0x51254e,_0x3401d3){const _0x41c648=this;this['sequence']['enqueue'](function(){const _0x75e22e=a969_0x1688;return _0x41c648[_0x75e22e('0xf')]['changeColumn'](_0xad87f1,_0x51254e,_0x3401d3)[_0x75e22e('0x1')](function(){const _0xf0cc8b=_0x75e22e;logger[_0xf0cc8b('0x21')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x51254e,_0xad87f1);})[_0x75e22e('0x17')](function(_0x3bff8e){const _0x40c227=_0x75e22e;logger['info'](JSON[_0x40c227('0x11')](_0x3bff8e));});});},Migration[_0x507863('0xb')][_0x507863('0x8')]=function(_0x1eddd9,_0x22aa36,_0x1f0613){const _0x435f31=_0x507863,_0x2f4795=this;this[_0x435f31('0x7')][_0x435f31('0x1b')](function(){const _0x95d546=_0x435f31;return _0x2f4795[_0x95d546('0xf')]['addColumn'](_0x1eddd9,_0x22aa36,_0x1f0613)[_0x95d546('0x1')](function(){const _0xf35579=_0x95d546;logger[_0xf35579('0x21')](_0xf35579('0x4'),_0x22aa36,_0x1eddd9);})[_0x95d546('0x17')](function(_0x4df3f4){const _0x10a370=_0x95d546;logger[_0x10a370('0x21')](JSON[_0x10a370('0x11')](_0x4df3f4));});});},Migration[_0x507863('0xb')]['dropTable']=function(_0x362aa5){const _0x41b26e=_0x507863,_0x5c8e4d=this;this[_0x41b26e('0x7')]['enqueue'](function(){const _0x3f0e3a=_0x41b26e;return _0x5c8e4d[_0x3f0e3a('0xf')][_0x3f0e3a('0x18')](_0x362aa5,{'force':!![]})['then'](function(){const _0x545ebd=_0x3f0e3a;logger['info'](_0x545ebd('0x1c'),_0x362aa5);})[_0x3f0e3a('0x17')](function(_0x1e67f5){const _0xa3875a=_0x3f0e3a;logger[_0xa3875a('0x21')](JSON[_0xa3875a('0x11')](_0x1e67f5));});});},Migration[_0x507863('0xb')][_0x507863('0x1f')]=function(_0x564133,_0x3bc1a0,_0x290424){const _0xe68baf=_0x507863,_0x2b4a10=this;this[_0xe68baf('0x7')][_0xe68baf('0x1b')](function(){const _0x66e88=_0xe68baf;return _0x2b4a10['queryInterface'][_0x66e88('0x1f')](_0x564133,_0x3bc1a0,{'indexName':_0x290424})[_0x66e88('0x1')](function(){const _0x472ab7=_0x66e88;logger['info'](_0x472ab7('0xa'),_0x564133,_0x3bc1a0['join'](','),_0x290424);})[_0x66e88('0x17')](function(_0x5c6ee5){const _0x44485b=_0x66e88;logger[_0x44485b('0x21')](JSON[_0x44485b('0x11')](_0x5c6ee5));});});},Migration[_0x507863('0xb')][_0x507863('0xc')]=function(_0x7e7501,_0x583652){const _0x48364d=_0x507863,_0x1d4250=this;this[_0x48364d('0x7')]['enqueue'](function(){const _0x5b836f=_0x48364d;return _0x1d4250[_0x5b836f('0xf')]['removeIndex'](_0x7e7501,_0x583652)[_0x5b836f('0x1')](function(){const _0x25c39e=_0x5b836f;logger[_0x25c39e('0x21')](_0x25c39e('0x1e'),_0x7e7501,_0x583652);})['catch'](function(_0x57ee74){const _0xbc8549=_0x5b836f;logger[_0xbc8549('0x21')](JSON[_0xbc8549('0x11')](_0x57ee74));});});},Migration['prototype'][_0x507863('0x2')]=function(_0x114aca){const _0x5ab2a8=_0x507863,_0xfe04e5=this;this[_0x5ab2a8('0x7')][_0x5ab2a8('0x1b')](function(){const _0xc5715c=_0x5ab2a8;return _0xfe04e5[_0xc5715c('0xf')]['sequelize'][_0xc5715c('0x2')](_0x114aca)[_0xc5715c('0x1')](function(){const _0x481751=_0xc5715c;logger[_0x481751('0x21')](_0x481751('0x5'),_0x114aca);})['catch'](function(_0x1f4bd2){const _0x395ea6=_0xc5715c;logger[_0x395ea6('0x21')](JSON[_0x395ea6('0x11')](_0x1f4bd2));});});},Migration[_0x507863('0xb')][_0x507863('0x10')]=function(_0x2e6a41,_0x3d59c2){const _0x1ced9e=_0x507863,_0x4dd864=this;this[_0x1ced9e('0x7')]['enqueue'](function(){const _0x4eb98f=_0x1ced9e;return _0x4dd864[_0x4eb98f('0xf')][_0x4eb98f('0x10')](_0x2e6a41,_0x3d59c2)[_0x4eb98f('0x1')](function(){const _0x3abd02=_0x4eb98f;logger[_0x3abd02('0x21')]('Removed\x20column\x20%s\x20from\x20%s',_0x3d59c2,_0x2e6a41);})[_0x4eb98f('0x17')](function(_0x8a1067){const _0x761381=_0x4eb98f;logger['info'](util[_0x761381('0x1d')](_0x8a1067,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x507863('0x13')]=function(_0x4d6c79,_0x4c4131,_0x512163){const _0x38607e=_0x507863,_0x2bd83a=this;this[_0x38607e('0x7')]['enqueue'](function(){const _0x4db1a8=_0x38607e;return _0x2bd83a[_0x4db1a8('0xf')]['renameColumn'](_0x4d6c79,_0x4c4131,_0x512163)['then'](function(){const _0x40eb97=_0x4db1a8;logger[_0x40eb97('0x21')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4c4131,_0x512163,_0x4d6c79);})[_0x4db1a8('0x17')](function(_0x1e5a36){const _0x43c7d9=_0x4db1a8;logger[_0x43c7d9('0x21')](util[_0x43c7d9('0x1d')](_0x1e5a36,{'showHidden':![],'depth':null}));});});},Migration[_0x507863('0xb')][_0x507863('0x12')]=function(_0x2640d5){const _0x32842c=_0x507863;this[_0x32842c('0x7')]['enqueue'](function(){return _0x2640d5();});},module[_0x507863('0x3')]={'up':function(_0x19df8a){return new Promise(function(_0x328aca){const _0x37b080=a969_0x1688,_0x2d1d53=new Migration(_0x19df8a);_0x2d1d53['query'](_0x37b080('0x15')),_0x2d1d53[_0x37b080('0x2')](_0x37b080('0x14')),_0x2d1d53['query'](_0x37b080('0x0')),_0x2d1d53[_0x37b080('0x2')](_0x37b080('0xd')),_0x2d1d53[_0x37b080('0x2')](_0x37b080('0x19')),_0x2d1d53['query']('ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)'),_0x2d1d53[_0x37b080('0x2')]('ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)'),_0x2d1d53[_0x37b080('0x12')](_0x328aca);});},'down':function(){}}; \ No newline at end of file +const a969_0x267b=['query\x20%s','sequence','info','queryInterface','tail','catch','query','ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','migration','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','sequelize','removeIndex','removeIndex\x20%s\x20%s','final','dropTable','enqueue','join','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','../config/logger','then','addIndex','prototype','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','stringify','exports','util','renameColumn','ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)'];(function(_0x523adb,_0x267b22){const _0x266f10=function(_0x544e1b){while(--_0x544e1b){_0x523adb['push'](_0x523adb['shift']());}};_0x266f10(++_0x267b22);}(a969_0x267b,0x1ce));const a969_0x266f=function(_0x523adb,_0x267b22){_0x523adb=_0x523adb-0x0;let _0x266f10=a969_0x267b[_0x523adb];return _0x266f10;};const _0x6f9b4d=a969_0x266f;'use strict';const util=require(_0x6f9b4d('0x1d')),logger=require(_0x6f9b4d('0x14'))(_0x6f9b4d('0xa')),Sequence=function(){};Sequence['prototype'][_0x6f9b4d('0x11')]=function(_0x544e1b){const _0x4bc664=_0x6f9b4d;this[_0x4bc664('0x4')]=this[_0x4bc664('0x4')]?this[_0x4bc664('0x4')][_0x4bc664('0x18')](_0x544e1b):_0x544e1b();};const Migration=function(_0x284e9e){const _0x5b01a7=_0x6f9b4d;this[_0x5b01a7('0x3')]=_0x284e9e,this[_0x5b01a7('0x1')]=new Sequence();};Migration[_0x6f9b4d('0x17')]['changeColumn']=function(_0x1773d1,_0x32e534,_0x54455d){const _0x15f533=_0x6f9b4d,_0x59e080=this;this['sequence'][_0x15f533('0x11')](function(){const _0x2e107a=_0x15f533;return _0x59e080[_0x2e107a('0x3')]['changeColumn'](_0x1773d1,_0x32e534,_0x54455d)[_0x2e107a('0x15')](function(){const _0x502773=_0x2e107a;logger[_0x502773('0x2')](_0x502773('0x19'),_0x32e534,_0x1773d1);})[_0x2e107a('0x5')](function(_0x392d2a){const _0x169288=_0x2e107a;logger[_0x169288('0x2')](JSON[_0x169288('0x1b')](_0x392d2a));});});},Migration[_0x6f9b4d('0x17')]['addColumn']=function(_0x56d7d0,_0x203cd2,_0x2805bb){const _0x648a4c=_0x6f9b4d,_0x3fd117=this;this[_0x648a4c('0x1')][_0x648a4c('0x11')](function(){const _0x4328c2=_0x648a4c;return _0x3fd117[_0x4328c2('0x3')]['addColumn'](_0x56d7d0,_0x203cd2,_0x2805bb)[_0x4328c2('0x15')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x203cd2,_0x56d7d0);})[_0x4328c2('0x5')](function(_0x58acb1){const _0x22427c=_0x4328c2;logger[_0x22427c('0x2')](JSON[_0x22427c('0x1b')](_0x58acb1));});});},Migration[_0x6f9b4d('0x17')][_0x6f9b4d('0x10')]=function(_0x186d8e){const _0x4fc058=_0x6f9b4d,_0x2c1bf9=this;this[_0x4fc058('0x1')]['enqueue'](function(){const _0x4efa19=_0x4fc058;return _0x2c1bf9[_0x4efa19('0x3')][_0x4efa19('0x10')](_0x186d8e,{'force':!![]})[_0x4efa19('0x15')](function(){const _0x21e163=_0x4efa19;logger[_0x21e163('0x2')](_0x21e163('0x1a'),_0x186d8e);})[_0x4efa19('0x5')](function(_0x35eea4){const _0x2c8a82=_0x4efa19;logger[_0x2c8a82('0x2')](JSON['stringify'](_0x35eea4));});});},Migration[_0x6f9b4d('0x17')][_0x6f9b4d('0x16')]=function(_0x77ffa4,_0x2dead0,_0x40cd02){const _0x205a5a=_0x6f9b4d,_0x152331=this;this[_0x205a5a('0x1')][_0x205a5a('0x11')](function(){const _0x86a39a=_0x205a5a;return _0x152331[_0x86a39a('0x3')]['addIndex'](_0x77ffa4,_0x2dead0,{'indexName':_0x40cd02})['then'](function(){const _0x3be3dc=_0x86a39a;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x77ffa4,_0x2dead0[_0x3be3dc('0x12')](','),_0x40cd02);})['catch'](function(_0x1aa92c){const _0x53fd5a=_0x86a39a;logger[_0x53fd5a('0x2')](JSON[_0x53fd5a('0x1b')](_0x1aa92c));});});},Migration[_0x6f9b4d('0x17')][_0x6f9b4d('0xd')]=function(_0x3e6911,_0x3e9818){const _0x21ab56=_0x6f9b4d,_0xba61c5=this;this['sequence'][_0x21ab56('0x11')](function(){const _0x2da751=_0x21ab56;return _0xba61c5[_0x2da751('0x3')][_0x2da751('0xd')](_0x3e6911,_0x3e9818)[_0x2da751('0x15')](function(){const _0x2a03dc=_0x2da751;logger[_0x2a03dc('0x2')](_0x2a03dc('0xe'),_0x3e6911,_0x3e9818);})[_0x2da751('0x5')](function(_0x1f1ce0){const _0x1eb70e=_0x2da751;logger['info'](JSON[_0x1eb70e('0x1b')](_0x1f1ce0));});});},Migration['prototype']['query']=function(_0x1476d7){const _0x5505aa=_0x6f9b4d,_0x3d6bbc=this;this[_0x5505aa('0x1')][_0x5505aa('0x11')](function(){const _0x36ea55=_0x5505aa;return _0x3d6bbc[_0x36ea55('0x3')][_0x36ea55('0xc')][_0x36ea55('0x6')](_0x1476d7)['then'](function(){const _0x22f03c=_0x36ea55;logger['info'](_0x22f03c('0x0'),_0x1476d7);})[_0x36ea55('0x5')](function(_0x8eaf43){const _0x621e8b=_0x36ea55;logger['info'](JSON[_0x621e8b('0x1b')](_0x8eaf43));});});},Migration['prototype']['removeColumn']=function(_0x18b932,_0x58748e){const _0xfd03bd=_0x6f9b4d,_0x159004=this;this[_0xfd03bd('0x1')][_0xfd03bd('0x11')](function(){const _0x28032b=_0xfd03bd;return _0x159004['queryInterface']['removeColumn'](_0x18b932,_0x58748e)[_0x28032b('0x15')](function(){const _0x1c13ed=_0x28032b;logger[_0x1c13ed('0x2')]('Removed\x20column\x20%s\x20from\x20%s',_0x58748e,_0x18b932);})['catch'](function(_0xf40f2e){const _0x3181a6=_0x28032b;logger[_0x3181a6('0x2')](util[_0x3181a6('0x9')](_0xf40f2e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x6f9b4d('0x1e')]=function(_0x59e8c1,_0x13db4b,_0x1e20d3){const _0xe5f5be=_0x6f9b4d,_0x4226c9=this;this[_0xe5f5be('0x1')]['enqueue'](function(){const _0x1d63da=_0xe5f5be;return _0x4226c9[_0x1d63da('0x3')]['renameColumn'](_0x59e8c1,_0x13db4b,_0x1e20d3)[_0x1d63da('0x15')](function(){const _0x84ab5b=_0x1d63da;logger[_0x84ab5b('0x2')](_0x84ab5b('0x8'),_0x13db4b,_0x1e20d3,_0x59e8c1);})['catch'](function(_0x52ecd8){const _0x36e4be=_0x1d63da;logger[_0x36e4be('0x2')](util['inspect'](_0x52ecd8,{'showHidden':![],'depth':null}));});});},Migration[_0x6f9b4d('0x17')][_0x6f9b4d('0xf')]=function(_0x3db77d){const _0x7be2f5=_0x6f9b4d;this[_0x7be2f5('0x1')][_0x7be2f5('0x11')](function(){return _0x3db77d();});},module[_0x6f9b4d('0x1c')]={'up':function(_0x5801ec){return new Promise(function(_0x31b67b){const _0x593cf3=a969_0x266f,_0x2a85ba=new Migration(_0x5801ec);_0x2a85ba[_0x593cf3('0x6')](_0x593cf3('0xb')),_0x2a85ba['query'](_0x593cf3('0x13')),_0x2a85ba[_0x593cf3('0x6')]('ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)'),_0x2a85ba[_0x593cf3('0x6')]('ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)'),_0x2a85ba['query'](_0x593cf3('0x7')),_0x2a85ba['query'](_0x593cf3('0x20')),_0x2a85ba['query'](_0x593cf3('0x1f')),_0x2a85ba[_0x593cf3('0xf')](_0x31b67b);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.2.5.js b/server/migrations/2.2.5.js index 35078ff..af5570d 100644 --- a/server/migrations/2.2.5.js +++ b/server/migrations/2.2.5.js @@ -1 +1 @@ -const a970_0x4ee8=['addIndex\x20%s\x20%s\x20%s','finally','stringify','exports','then','sequelize','final','addColumn','changeColumn','migration','removeIndex\x20%s\x20%s','prototype','query','catch','util','join','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','addIndex','sequence','dropTable','tail','inspect','info','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','queryInterface'];(function(_0x398890,_0x4ee82e){const _0x411d37=function(_0x206d71){while(--_0x206d71){_0x398890['push'](_0x398890['shift']());}};_0x411d37(++_0x4ee82e);}(a970_0x4ee8,0x1bb));const a970_0x411d=function(_0x398890,_0x4ee82e){_0x398890=_0x398890-0x0;let _0x411d37=a970_0x4ee8[_0x398890];return _0x411d37;};const _0x4600c9=a970_0x411d;'use strict';const util=require(_0x4600c9('0x6')),logger=require('../config/logger')(_0x4600c9('0x1')),Sequence=function(){};Sequence[_0x4600c9('0x3')][_0x4600c9('0x8')]=function(_0x206d71){const _0x434198=_0x4600c9;this[_0x434198('0xe')]=this['tail']?this[_0x434198('0xe')][_0x434198('0x16')](_0x206d71):_0x206d71();};const Migration=function(_0x5f3bf7){const _0x11e87e=_0x4600c9;this['queryInterface']=_0x5f3bf7,this[_0x11e87e('0xc')]=new Sequence();};Migration['prototype'][_0x4600c9('0x0')]=function(_0x2dfc92,_0xbf885c,_0x2537b8){const _0x48cf23=_0x4600c9,_0x24e86c=this;this['sequence'][_0x48cf23('0x8')](function(){const _0x2fc499=_0x48cf23;return _0x24e86c[_0x2fc499('0x14')][_0x2fc499('0x0')](_0x2dfc92,_0xbf885c,_0x2537b8)[_0x2fc499('0x19')](function(){const _0x2039fe=_0x2fc499;logger[_0x2039fe('0x10')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xbf885c,_0x2dfc92);})[_0x2fc499('0x5')](function(_0x594a1f){const _0x272ee0=_0x2fc499;logger[_0x272ee0('0x10')](JSON[_0x272ee0('0x17')](_0x594a1f));});});},Migration[_0x4600c9('0x3')][_0x4600c9('0x1c')]=function(_0x576dfd,_0x1e675c,_0x6a5cc4){const _0x5a1f89=_0x4600c9,_0x4e4350=this;this[_0x5a1f89('0xc')][_0x5a1f89('0x8')](function(){const _0x313296=_0x5a1f89;return _0x4e4350[_0x313296('0x14')][_0x313296('0x1c')](_0x576dfd,_0x1e675c,_0x6a5cc4)[_0x313296('0x19')](function(){const _0x4326ef=_0x313296;logger['info'](_0x4326ef('0x11'),_0x1e675c,_0x576dfd);})[_0x313296('0x5')](function(_0x4c27c5){logger['info'](JSON['stringify'](_0x4c27c5));});});},Migration['prototype'][_0x4600c9('0xd')]=function(_0x59258b){const _0x86fe3d=_0x4600c9,_0x2522c2=this;this['sequence'][_0x86fe3d('0x8')](function(){const _0x38a538=_0x86fe3d;return _0x2522c2[_0x38a538('0x14')][_0x38a538('0xd')](_0x59258b,{'force':!![]})['then'](function(){const _0x187c82=_0x38a538;logger[_0x187c82('0x10')](_0x187c82('0x13'),_0x59258b);})[_0x38a538('0x5')](function(_0x550583){const _0x26429d=_0x38a538;logger[_0x26429d('0x10')](JSON[_0x26429d('0x17')](_0x550583));});});},Migration[_0x4600c9('0x3')][_0x4600c9('0xb')]=function(_0x3d208b,_0x456ad8,_0x44494e){const _0x357bb1=_0x4600c9,_0x1fdaf8=this;this[_0x357bb1('0xc')][_0x357bb1('0x8')](function(){const _0x1a7d73=_0x357bb1;return _0x1fdaf8[_0x1a7d73('0x14')]['addIndex'](_0x3d208b,_0x456ad8,{'indexName':_0x44494e})[_0x1a7d73('0x19')](function(){const _0x582482=_0x1a7d73;logger['info'](_0x582482('0x15'),_0x3d208b,_0x456ad8[_0x582482('0x7')](','),_0x44494e);})['catch'](function(_0x46b888){logger['info'](JSON['stringify'](_0x46b888));});});},Migration[_0x4600c9('0x3')][_0x4600c9('0xa')]=function(_0x4c9694,_0x1f9963){const _0x53073b=_0x4600c9,_0x2e1df6=this;this['sequence'][_0x53073b('0x8')](function(){const _0x1e2060=_0x53073b;return _0x2e1df6[_0x1e2060('0x14')][_0x1e2060('0xa')](_0x4c9694,_0x1f9963)[_0x1e2060('0x19')](function(){const _0x4e1221=_0x1e2060;logger[_0x4e1221('0x10')](_0x4e1221('0x2'),_0x4c9694,_0x1f9963);})[_0x1e2060('0x5')](function(_0x7b9c72){const _0x2f8e65=_0x1e2060;logger[_0x2f8e65('0x10')](JSON[_0x2f8e65('0x17')](_0x7b9c72));});});},Migration['prototype'][_0x4600c9('0x4')]=function(_0x3f0465){const _0x5cb9b4=_0x4600c9,_0x5c8660=this;this[_0x5cb9b4('0xc')][_0x5cb9b4('0x8')](function(){const _0x3d0846=_0x5cb9b4;return _0x5c8660[_0x3d0846('0x14')][_0x3d0846('0x1a')][_0x3d0846('0x4')](_0x3f0465)['then'](function(){const _0x123faa=_0x3d0846;logger[_0x123faa('0x10')]('query\x20%s',_0x3f0465);})[_0x3d0846('0x5')](function(_0x195064){const _0x100a61=_0x3d0846;logger[_0x100a61('0x10')](JSON['stringify'](_0x195064));});});},Migration['prototype']['removeColumn']=function(_0x3260bc,_0x197f43){const _0x2a9dfd=_0x4600c9,_0x4984ca=this;this[_0x2a9dfd('0xc')][_0x2a9dfd('0x8')](function(){const _0x3d7154=_0x2a9dfd;return _0x4984ca[_0x3d7154('0x14')]['removeColumn'](_0x3260bc,_0x197f43)[_0x3d7154('0x19')](function(){const _0x4356a6=_0x3d7154;logger[_0x4356a6('0x10')](_0x4356a6('0x12'),_0x197f43,_0x3260bc);})[_0x3d7154('0x5')](function(_0x288118){const _0x9d5e29=_0x3d7154;logger[_0x9d5e29('0x10')](util['inspect'](_0x288118,{'showHidden':![],'depth':null}));});});},Migration[_0x4600c9('0x3')]['renameColumn']=function(_0x2c6305,_0x4ea4b5,_0x1e828f){const _0x2bb11c=_0x4600c9,_0x5261c4=this;this[_0x2bb11c('0xc')]['enqueue'](function(){const _0x106dcd=_0x2bb11c;return _0x5261c4[_0x106dcd('0x14')]['renameColumn'](_0x2c6305,_0x4ea4b5,_0x1e828f)[_0x106dcd('0x19')](function(){const _0x1a941c=_0x106dcd;logger[_0x1a941c('0x10')](_0x1a941c('0x9'),_0x4ea4b5,_0x1e828f,_0x2c6305);})[_0x106dcd('0x5')](function(_0x521f69){const _0x26447b=_0x106dcd;logger[_0x26447b('0x10')](util[_0x26447b('0xf')](_0x521f69,{'showHidden':![],'depth':null}));});});},Migration[_0x4600c9('0x3')][_0x4600c9('0x1b')]=function(_0x1e5575){const _0x30a4cb=_0x4600c9;this[_0x30a4cb('0xc')][_0x30a4cb('0x8')](function(){return _0x1e5575();});},module[_0x4600c9('0x18')]={'up':function(_0x337763){return new Promise(function(_0x577d00){const _0x5610e0=a970_0x411d,_0x3bef25=new Migration(_0x337763);_0x3bef25[_0x5610e0('0x1b')](_0x577d00);});},'down':function(){}}; \ No newline at end of file +const a970_0x5a7f=['../config/logger','dropTable','final','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','queryInterface','addIndex','enqueue','util','addColumn','tail','catch','renameColumn','removeIndex\x20%s\x20%s','query','then','addIndex\x20%s\x20%s\x20%s','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','sequelize','removeColumn','sequence','prototype','join','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','info'];(function(_0x35b93e,_0x5a7f39){const _0x405d43=function(_0x53b978){while(--_0x53b978){_0x35b93e['push'](_0x35b93e['shift']());}};_0x405d43(++_0x5a7f39);}(a970_0x5a7f,0x164));const a970_0x405d=function(_0x35b93e,_0x5a7f39){_0x35b93e=_0x35b93e-0x0;let _0x405d43=a970_0x5a7f[_0x35b93e];return _0x405d43;};const _0x1aa532=a970_0x405d;'use strict';const util=require(_0x1aa532('0x10')),logger=require(_0x1aa532('0x8'))('migration'),Sequence=function(){};Sequence[_0x1aa532('0x3')][_0x1aa532('0xf')]=function(_0x53b978){const _0x208221=_0x1aa532;this[_0x208221('0x12')]=this[_0x208221('0x12')]?this[_0x208221('0x12')]['finally'](_0x53b978):_0x53b978();};const Migration=function(_0x35fa18){const _0x5f5197=_0x1aa532;this[_0x5f5197('0xd')]=_0x35fa18,this[_0x5f5197('0x2')]=new Sequence();};Migration[_0x1aa532('0x3')]['changeColumn']=function(_0x4bae1e,_0x5c1517,_0x518b7e){const _0xf74bac=_0x1aa532,_0x184dc8=this;this[_0xf74bac('0x2')]['enqueue'](function(){const _0x3eb992=_0xf74bac;return _0x184dc8['queryInterface']['changeColumn'](_0x4bae1e,_0x5c1517,_0x518b7e)[_0x3eb992('0x17')](function(){const _0x49331a=_0x3eb992;logger['info'](_0x49331a('0x1a'),_0x5c1517,_0x4bae1e);})[_0x3eb992('0x13')](function(_0x562946){const _0x156fde=_0x3eb992;logger[_0x156fde('0x7')](JSON[_0x156fde('0x1b')](_0x562946));});});},Migration[_0x1aa532('0x3')][_0x1aa532('0x11')]=function(_0x14b091,_0xc636ca,_0xde5e1){const _0x322326=_0x1aa532,_0x50dc78=this;this[_0x322326('0x2')][_0x322326('0xf')](function(){const _0x244c72=_0x322326;return _0x50dc78[_0x244c72('0xd')][_0x244c72('0x11')](_0x14b091,_0xc636ca,_0xde5e1)[_0x244c72('0x17')](function(){const _0x4e8b92=_0x244c72;logger[_0x4e8b92('0x7')](_0x4e8b92('0xc'),_0xc636ca,_0x14b091);})[_0x244c72('0x13')](function(_0x121641){const _0x52ba35=_0x244c72;logger[_0x52ba35('0x7')](JSON['stringify'](_0x121641));});});},Migration[_0x1aa532('0x3')][_0x1aa532('0x9')]=function(_0x5407b6){const _0x331c9c=_0x1aa532,_0x23e3b5=this;this[_0x331c9c('0x2')][_0x331c9c('0xf')](function(){const _0x4979a9=_0x331c9c;return _0x23e3b5[_0x4979a9('0xd')][_0x4979a9('0x9')](_0x5407b6,{'force':!![]})[_0x4979a9('0x17')](function(){const _0x35acb6=_0x4979a9;logger[_0x35acb6('0x7')](_0x35acb6('0xb'),_0x5407b6);})[_0x4979a9('0x13')](function(_0x1db7b8){const _0x4d4924=_0x4979a9;logger[_0x4d4924('0x7')](JSON[_0x4d4924('0x1b')](_0x1db7b8));});});},Migration[_0x1aa532('0x3')][_0x1aa532('0xe')]=function(_0x18bb4c,_0x481617,_0xf53481){const _0x97f3a4=_0x1aa532,_0x22f496=this;this[_0x97f3a4('0x2')][_0x97f3a4('0xf')](function(){const _0x3121c9=_0x97f3a4;return _0x22f496[_0x3121c9('0xd')][_0x3121c9('0xe')](_0x18bb4c,_0x481617,{'indexName':_0xf53481})[_0x3121c9('0x17')](function(){const _0x3b22f6=_0x3121c9;logger[_0x3b22f6('0x7')](_0x3b22f6('0x18'),_0x18bb4c,_0x481617[_0x3b22f6('0x4')](','),_0xf53481);})[_0x3121c9('0x13')](function(_0x45ba72){const _0x17833d=_0x3121c9;logger[_0x17833d('0x7')](JSON[_0x17833d('0x1b')](_0x45ba72));});});},Migration[_0x1aa532('0x3')]['removeIndex']=function(_0x1d2578,_0x177abf){const _0x1c2ae1=_0x1aa532,_0x91e432=this;this[_0x1c2ae1('0x2')]['enqueue'](function(){const _0x59a2d2=_0x1c2ae1;return _0x91e432[_0x59a2d2('0xd')]['removeIndex'](_0x1d2578,_0x177abf)[_0x59a2d2('0x17')](function(){const _0x17b98b=_0x59a2d2;logger['info'](_0x17b98b('0x15'),_0x1d2578,_0x177abf);})[_0x59a2d2('0x13')](function(_0x3c052a){const _0x398891=_0x59a2d2;logger[_0x398891('0x7')](JSON['stringify'](_0x3c052a));});});},Migration[_0x1aa532('0x3')][_0x1aa532('0x16')]=function(_0x360e60){const _0x181449=_0x1aa532,_0x5d1633=this;this[_0x181449('0x2')][_0x181449('0xf')](function(){const _0x3d0657=_0x181449;return _0x5d1633[_0x3d0657('0xd')][_0x3d0657('0x0')][_0x3d0657('0x16')](_0x360e60)['then'](function(){const _0x31d06c=_0x3d0657;logger['info'](_0x31d06c('0x6'),_0x360e60);})[_0x3d0657('0x13')](function(_0x33c9a2){const _0x398ca7=_0x3d0657;logger['info'](JSON[_0x398ca7('0x1b')](_0x33c9a2));});});},Migration[_0x1aa532('0x3')]['removeColumn']=function(_0x53f445,_0x1d5f3f){const _0xc5c8da=_0x1aa532,_0x4bf0e9=this;this[_0xc5c8da('0x2')][_0xc5c8da('0xf')](function(){const _0x3338c8=_0xc5c8da;return _0x4bf0e9['queryInterface'][_0x3338c8('0x1')](_0x53f445,_0x1d5f3f)[_0x3338c8('0x17')](function(){const _0x271143=_0x3338c8;logger[_0x271143('0x7')](_0x271143('0x5'),_0x1d5f3f,_0x53f445);})['catch'](function(_0x4fe9f9){const _0x1c04bc=_0x3338c8;logger[_0x1c04bc('0x7')](util[_0x1c04bc('0x19')](_0x4fe9f9,{'showHidden':![],'depth':null}));});});},Migration[_0x1aa532('0x3')][_0x1aa532('0x14')]=function(_0x23f0ed,_0xce9313,_0x5049e9){const _0x5df258=_0x1aa532,_0x531d33=this;this[_0x5df258('0x2')][_0x5df258('0xf')](function(){const _0x7314bb=_0x5df258;return _0x531d33[_0x7314bb('0xd')][_0x7314bb('0x14')](_0x23f0ed,_0xce9313,_0x5049e9)[_0x7314bb('0x17')](function(){const _0x30b679=_0x7314bb;logger[_0x30b679('0x7')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xce9313,_0x5049e9,_0x23f0ed);})[_0x7314bb('0x13')](function(_0x76de15){const _0x535588=_0x7314bb;logger[_0x535588('0x7')](util['inspect'](_0x76de15,{'showHidden':![],'depth':null}));});});},Migration[_0x1aa532('0x3')][_0x1aa532('0xa')]=function(_0x1db333){const _0x5b7324=_0x1aa532;this[_0x5b7324('0x2')][_0x5b7324('0xf')](function(){return _0x1db333();});},module['exports']={'up':function(_0x5ac408){return new Promise(function(_0x426346){const _0x5cc43e=a970_0x405d,_0x586db5=new Migration(_0x5ac408);_0x586db5[_0x5cc43e('0xa')](_0x426346);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.2.6.js b/server/migrations/2.2.6.js index 976577a..c2f734f 100644 --- a/server/migrations/2.2.6.js +++ b/server/migrations/2.2.6.js @@ -1 +1 @@ -const a971_0x2586=['addIndex','join','Changed\x20column\x20%s\x20in\x20table\x20%s','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','renameColumn','addColumn','addIndex\x20%s\x20%s\x20%s','chat_websites','Removed\x20column\x20%s\x20from\x20%s','queryInterface','util','dropTable','mandatoryDispositionPauseId','info','prototype','tail','ALTER\x20TABLE\x20fax_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`fax_accounts_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','enqueue','final','../config/logger','inspect','mail_accounts','INTEGER','removeColumn','openchannel_accounts','ALTER\x20TABLE\x20sms_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`sms_accounts_ibfk_2`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','then','ALTER\x20TABLE\x20chat_websites\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`chat_websites_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','removeIndex','ALTER\x20TABLE\x20mail_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`mail_accounts_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','stringify','sequence','query','table\x20dropped\x20%s','BOOLEAN','ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','catch','migration','voice_queues','mandatoryDisposition','fax_accounts','UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','changeColumn'];(function(_0x37bac0,_0x258695){const _0x4f62c6=function(_0x187f4c){while(--_0x187f4c){_0x37bac0['push'](_0x37bac0['shift']());}};_0x4f62c6(++_0x258695);}(a971_0x2586,0x9c));const a971_0x4f62=function(_0x37bac0,_0x258695){_0x37bac0=_0x37bac0-0x0;let _0x4f62c6=a971_0x2586[_0x37bac0];return _0x4f62c6;};const _0x43415f=a971_0x4f62;'use strict';const util=require(_0x43415f('0x1a')),logger=require(_0x43415f('0x23'))(_0x43415f('0xa')),Sequence=function(){};Sequence['prototype'][_0x43415f('0x21')]=function(_0x187f4c){const _0x3e46a8=_0x43415f;this[_0x3e46a8('0x1f')]=this[_0x3e46a8('0x1f')]?this[_0x3e46a8('0x1f')]['finally'](_0x187f4c):_0x187f4c();};const Migration=function(_0x24d1f5){const _0x3b86a1=_0x43415f;this[_0x3b86a1('0x19')]=_0x24d1f5,this[_0x3b86a1('0x4')]=new Sequence();};Migration['prototype'][_0x43415f('0xf')]=function(_0x1fcccb,_0x350273,_0x2840ea){const _0x5a022f=_0x43415f,_0x56a7b6=this;this[_0x5a022f('0x4')][_0x5a022f('0x21')](function(){const _0x2e71b7=_0x5a022f;return _0x56a7b6[_0x2e71b7('0x19')][_0x2e71b7('0xf')](_0x1fcccb,_0x350273,_0x2840ea)[_0x2e71b7('0x2a')](function(){const _0x3a873b=_0x2e71b7;logger[_0x3a873b('0x1d')](_0x3a873b('0x12'),_0x350273,_0x1fcccb);})['catch'](function(_0x1ee4eb){const _0x454f4c=_0x2e71b7;logger[_0x454f4c('0x1d')](JSON[_0x454f4c('0x3')](_0x1ee4eb));});});},Migration['prototype'][_0x43415f('0x15')]=function(_0xd56852,_0xe83da4,_0x2c62ed){const _0x1ec207=_0x43415f,_0xfac6d6=this;this[_0x1ec207('0x4')][_0x1ec207('0x21')](function(){const _0x498f70=_0x1ec207;return _0xfac6d6[_0x498f70('0x19')][_0x498f70('0x15')](_0xd56852,_0xe83da4,_0x2c62ed)[_0x498f70('0x2a')](function(){const _0x5d64de=_0x498f70;logger[_0x5d64de('0x1d')]('Added\x20column\x20%s\x20to\x20%s',_0xe83da4,_0xd56852);})[_0x498f70('0x9')](function(_0x173e8e){const _0x54f022=_0x498f70;logger[_0x54f022('0x1d')](JSON[_0x54f022('0x3')](_0x173e8e));});});},Migration['prototype'][_0x43415f('0x1b')]=function(_0x3bf1e6){const _0x8aa438=_0x43415f,_0x144cf4=this;this[_0x8aa438('0x4')][_0x8aa438('0x21')](function(){const _0x54b43c=_0x8aa438;return _0x144cf4['queryInterface'][_0x54b43c('0x1b')](_0x3bf1e6,{'force':!![]})[_0x54b43c('0x2a')](function(){const _0x2e7984=_0x54b43c;logger['info'](_0x2e7984('0x6'),_0x3bf1e6);})['catch'](function(_0x53eb07){const _0x598740=_0x54b43c;logger[_0x598740('0x1d')](JSON['stringify'](_0x53eb07));});});},Migration[_0x43415f('0x1e')][_0x43415f('0x10')]=function(_0x39d1c6,_0x438776,_0xe5ec2c){const _0x3bdbb8=_0x43415f,_0x1f31c9=this;this[_0x3bdbb8('0x4')][_0x3bdbb8('0x21')](function(){const _0x4c931b=_0x3bdbb8;return _0x1f31c9['queryInterface']['addIndex'](_0x39d1c6,_0x438776,{'indexName':_0xe5ec2c})[_0x4c931b('0x2a')](function(){const _0x5d9e76=_0x4c931b;logger[_0x5d9e76('0x1d')](_0x5d9e76('0x16'),_0x39d1c6,_0x438776[_0x5d9e76('0x11')](','),_0xe5ec2c);})['catch'](function(_0xedc514){const _0x57e36a=_0x4c931b;logger[_0x57e36a('0x1d')](JSON[_0x57e36a('0x3')](_0xedc514));});});},Migration[_0x43415f('0x1e')][_0x43415f('0x1')]=function(_0x44bd03,_0x480f0b){const _0x1c4b74=_0x43415f,_0xde9525=this;this['sequence'][_0x1c4b74('0x21')](function(){const _0x43fe9a=_0x1c4b74;return _0xde9525['queryInterface']['removeIndex'](_0x44bd03,_0x480f0b)[_0x43fe9a('0x2a')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x44bd03,_0x480f0b);})[_0x43fe9a('0x9')](function(_0x3c26c1){const _0x2df905=_0x43fe9a;logger[_0x2df905('0x1d')](JSON[_0x2df905('0x3')](_0x3c26c1));});});},Migration[_0x43415f('0x1e')][_0x43415f('0x5')]=function(_0x354a2c){const _0x219267=_0x43415f,_0x4706a6=this;this[_0x219267('0x4')][_0x219267('0x21')](function(){const _0x4d431b=_0x219267;return _0x4706a6[_0x4d431b('0x19')]['sequelize']['query'](_0x354a2c)[_0x4d431b('0x2a')](function(){const _0x577bfc=_0x4d431b;logger[_0x577bfc('0x1d')]('query\x20%s',_0x354a2c);})[_0x4d431b('0x9')](function(_0x240e84){const _0x4a9f61=_0x4d431b;logger[_0x4a9f61('0x1d')](JSON[_0x4a9f61('0x3')](_0x240e84));});});},Migration[_0x43415f('0x1e')][_0x43415f('0x27')]=function(_0x3090e4,_0x3c2e58){const _0x2f63da=_0x43415f,_0x44304a=this;this[_0x2f63da('0x4')]['enqueue'](function(){const _0x28490e=_0x2f63da;return _0x44304a[_0x28490e('0x19')][_0x28490e('0x27')](_0x3090e4,_0x3c2e58)[_0x28490e('0x2a')](function(){const _0x5b52db=_0x28490e;logger['info'](_0x5b52db('0x18'),_0x3c2e58,_0x3090e4);})['catch'](function(_0x41a0da){const _0x3414ea=_0x28490e;logger[_0x3414ea('0x1d')](util[_0x3414ea('0x24')](_0x41a0da,{'showHidden':![],'depth':null}));});});},Migration[_0x43415f('0x1e')][_0x43415f('0x14')]=function(_0x4fab46,_0x237534,_0xa061d5){const _0x11180f=_0x43415f,_0x4aa1ed=this;this[_0x11180f('0x4')]['enqueue'](function(){const _0x4a89dd=_0x11180f;return _0x4aa1ed[_0x4a89dd('0x19')][_0x4a89dd('0x14')](_0x4fab46,_0x237534,_0xa061d5)[_0x4a89dd('0x2a')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x237534,_0xa061d5,_0x4fab46);})[_0x4a89dd('0x9')](function(_0x33625e){const _0x3466d0=_0x4a89dd;logger['info'](util[_0x3466d0('0x24')](_0x33625e,{'showHidden':![],'depth':null}));});});},Migration[_0x43415f('0x1e')][_0x43415f('0x22')]=function(_0x32b5b4){this['sequence']['enqueue'](function(){return _0x32b5b4();});},module['exports']={'up':function(_0x165105,_0x57201b){return new Promise(function(_0x4630a6){const _0x5b2029=a971_0x4f62,_0xcdc354=new Migration(_0x165105);_0xcdc354['query'](_0x5b2029('0x8')),_0xcdc354[_0x5b2029('0x5')]('UPDATE\x20analytics_custom_reports\x20SET\x20joins\x20=\x20REPLACE(joins,\x27\x22type\x22:\x22outer_join\x22\x27,\x27\x22type\x22:\x22left_join\x22\x27)\x20WHERE\x20joins\x20LIKE\x20\x27%\x22type\x22:\x22outer_join\x22%\x27'),_0xcdc354[_0x5b2029('0x5')](_0x5b2029('0xe')),_0xcdc354['query'](_0x5b2029('0x13')),_0xcdc354[_0x5b2029('0x15')](_0x5b2029('0xb'),'mandatoryDisposition',{'type':_0x57201b[_0x5b2029('0x7')],'defaultValue':![]}),_0xcdc354[_0x5b2029('0x15')]('voice_queues',_0x5b2029('0x1c'),{'type':_0x57201b[_0x5b2029('0x26')]}),_0xcdc354['query']('ALTER\x20TABLE\x20voice_queues\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`voice_queues_ibfk_4`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE'),_0xcdc354[_0x5b2029('0x15')](_0x5b2029('0x17'),_0x5b2029('0xc'),{'type':_0x57201b[_0x5b2029('0x7')],'defaultValue':![]}),_0xcdc354['addColumn']('chat_websites',_0x5b2029('0x1c'),{'type':_0x57201b[_0x5b2029('0x26')]}),_0xcdc354[_0x5b2029('0x5')](_0x5b2029('0x0')),_0xcdc354[_0x5b2029('0x15')](_0x5b2029('0xd'),_0x5b2029('0xc'),{'type':_0x57201b[_0x5b2029('0x7')],'defaultValue':![]}),_0xcdc354[_0x5b2029('0x15')](_0x5b2029('0xd'),'mandatoryDispositionPauseId',{'type':_0x57201b['INTEGER']}),_0xcdc354['query'](_0x5b2029('0x20')),_0xcdc354['addColumn'](_0x5b2029('0x25'),_0x5b2029('0xc'),{'type':_0x57201b[_0x5b2029('0x7')],'defaultValue':![]}),_0xcdc354['addColumn'](_0x5b2029('0x25'),_0x5b2029('0x1c'),{'type':_0x57201b[_0x5b2029('0x26')]}),_0xcdc354[_0x5b2029('0x5')](_0x5b2029('0x2')),_0xcdc354[_0x5b2029('0x15')](_0x5b2029('0x28'),_0x5b2029('0xc'),{'type':_0x57201b[_0x5b2029('0x7')],'defaultValue':![]}),_0xcdc354[_0x5b2029('0x15')]('openchannel_accounts',_0x5b2029('0x1c'),{'type':_0x57201b['INTEGER']}),_0xcdc354[_0x5b2029('0x5')]('ALTER\x20TABLE\x20openchannel_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`openchannel_accounts_ibfk_2`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE'),_0xcdc354[_0x5b2029('0x15')]('sms_accounts',_0x5b2029('0xc'),{'type':_0x57201b[_0x5b2029('0x7')],'defaultValue':![]}),_0xcdc354[_0x5b2029('0x15')]('sms_accounts',_0x5b2029('0x1c'),{'type':_0x57201b[_0x5b2029('0x26')]}),_0xcdc354[_0x5b2029('0x5')](_0x5b2029('0x29')),_0xcdc354[_0x5b2029('0x22')](_0x4630a6);});},'down':function(){}}; \ No newline at end of file +const a971_0x250a=['Added\x20column\x20%s\x20to\x20%s','sequelize','changeColumn','BOOLEAN','util','removeIndex\x20%s\x20%s','stringify','ALTER\x20TABLE\x20voice_queues\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`voice_queues_ibfk_4`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','table\x20dropped\x20%s','info','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','sms_accounts','then','enqueue','queryInterface','addIndex','final','sequence','INTEGER','mail_accounts','UPDATE\x20analytics_custom_reports\x20SET\x20joins\x20=\x20REPLACE(joins,\x27\x22type\x22:\x22outer_join\x22\x27,\x27\x22type\x22:\x22left_join\x22\x27)\x20WHERE\x20joins\x20LIKE\x20\x27%\x22type\x22:\x22outer_join\x22%\x27','ALTER\x20TABLE\x20mail_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`mail_accounts_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','dropTable','migration','addColumn','mandatoryDisposition','voice_queues','mandatoryDispositionPauseId','query','inspect','ALTER\x20TABLE\x20chat_websites\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`chat_websites_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','join','Removed\x20column\x20%s\x20from\x20%s','catch','ALTER\x20TABLE\x20openchannel_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`openchannel_accounts_ibfk_2`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','openchannel_accounts','addIndex\x20%s\x20%s\x20%s','removeColumn','UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','ALTER\x20TABLE\x20fax_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`fax_accounts_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','chat_websites','renameColumn','ALTER\x20TABLE\x20sms_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`sms_accounts_ibfk_2`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE'];(function(_0x52d688,_0x250a61){const _0x49448e=function(_0x989b5e){while(--_0x989b5e){_0x52d688['push'](_0x52d688['shift']());}};_0x49448e(++_0x250a61);}(a971_0x250a,0x193));const a971_0x4944=function(_0x52d688,_0x250a61){_0x52d688=_0x52d688-0x0;let _0x49448e=a971_0x250a[_0x52d688];return _0x49448e;};const _0x124f6f=a971_0x4944;'use strict';const util=require(_0x124f6f('0x18')),logger=require('../config/logger')(_0x124f6f('0x0')),Sequence=function(){};Sequence[_0x124f6f('0x1c')]['enqueue']=function(_0x989b5e){const _0x5353af=_0x124f6f;this[_0x5353af('0x22')]=this['tail']?this[_0x5353af('0x22')]['finally'](_0x989b5e):_0x989b5e();};const Migration=function(_0x5ff75c){const _0x440fa3=_0x124f6f;this[_0x440fa3('0x26')]=_0x5ff75c,this[_0x440fa3('0x29')]=new Sequence();};Migration[_0x124f6f('0x1c')][_0x124f6f('0x16')]=function(_0x27f6e1,_0x2d5409,_0x81679e){const _0x17fb48=_0x124f6f,_0x163774=this;this[_0x17fb48('0x29')][_0x17fb48('0x25')](function(){const _0x4f2a3a=_0x17fb48;return _0x163774[_0x4f2a3a('0x26')][_0x4f2a3a('0x16')](_0x27f6e1,_0x2d5409,_0x81679e)[_0x4f2a3a('0x24')](function(){const _0x3f49a7=_0x4f2a3a;logger[_0x3f49a7('0x20')](_0x3f49a7('0x21'),_0x2d5409,_0x27f6e1);})[_0x4f2a3a('0xa')](function(_0x54c531){const _0x39b28a=_0x4f2a3a;logger[_0x39b28a('0x20')](JSON[_0x39b28a('0x1a')](_0x54c531));});});},Migration[_0x124f6f('0x1c')]['addColumn']=function(_0x532592,_0x4422cd,_0x11da53){const _0x3445cf=_0x124f6f,_0x4a2a48=this;this[_0x3445cf('0x29')][_0x3445cf('0x25')](function(){const _0x3d3e80=_0x3445cf;return _0x4a2a48[_0x3d3e80('0x26')]['addColumn'](_0x532592,_0x4422cd,_0x11da53)['then'](function(){const _0x32ce24=_0x3d3e80;logger[_0x32ce24('0x20')](_0x32ce24('0x14'),_0x4422cd,_0x532592);})[_0x3d3e80('0xa')](function(_0x4b142e){const _0x2e942b=_0x3d3e80;logger[_0x2e942b('0x20')](JSON['stringify'](_0x4b142e));});});},Migration['prototype'][_0x124f6f('0x2e')]=function(_0x375868){const _0x2df569=_0x124f6f,_0x26f214=this;this[_0x2df569('0x29')]['enqueue'](function(){const _0xdd58b5=_0x2df569;return _0x26f214[_0xdd58b5('0x26')][_0xdd58b5('0x2e')](_0x375868,{'force':!![]})[_0xdd58b5('0x24')](function(){const _0x481d01=_0xdd58b5;logger[_0x481d01('0x20')](_0x481d01('0x1f'),_0x375868);})[_0xdd58b5('0xa')](function(_0x4d4b7e){const _0x23c18d=_0xdd58b5;logger['info'](JSON[_0x23c18d('0x1a')](_0x4d4b7e));});});},Migration[_0x124f6f('0x1c')][_0x124f6f('0x27')]=function(_0x31c31e,_0x236af0,_0x4f9253){const _0x3dd346=_0x124f6f,_0x49d842=this;this[_0x3dd346('0x29')]['enqueue'](function(){const _0x27ba50=_0x3dd346;return _0x49d842[_0x27ba50('0x26')][_0x27ba50('0x27')](_0x31c31e,_0x236af0,{'indexName':_0x4f9253})[_0x27ba50('0x24')](function(){const _0x422192=_0x27ba50;logger[_0x422192('0x20')](_0x422192('0xd'),_0x31c31e,_0x236af0[_0x422192('0x8')](','),_0x4f9253);})['catch'](function(_0x3c5f0b){const _0x5dab78=_0x27ba50;logger[_0x5dab78('0x20')](JSON[_0x5dab78('0x1a')](_0x3c5f0b));});});},Migration[_0x124f6f('0x1c')]['removeIndex']=function(_0x293121,_0x143676){const _0x580d2b=_0x124f6f,_0xb6ae9a=this;this[_0x580d2b('0x29')][_0x580d2b('0x25')](function(){const _0x1400b0=_0x580d2b;return _0xb6ae9a[_0x1400b0('0x26')]['removeIndex'](_0x293121,_0x143676)[_0x1400b0('0x24')](function(){const _0x2fdae2=_0x1400b0;logger['info'](_0x2fdae2('0x19'),_0x293121,_0x143676);})[_0x1400b0('0xa')](function(_0x10d825){const _0x550fe5=_0x1400b0;logger[_0x550fe5('0x20')](JSON[_0x550fe5('0x1a')](_0x10d825));});});},Migration['prototype'][_0x124f6f('0x5')]=function(_0xab6acf){const _0x3ea591=_0x124f6f,_0x189f2e=this;this[_0x3ea591('0x29')][_0x3ea591('0x25')](function(){const _0x3d8c50=_0x3ea591;return _0x189f2e['queryInterface'][_0x3d8c50('0x15')][_0x3d8c50('0x5')](_0xab6acf)[_0x3d8c50('0x24')](function(){const _0x325a6b=_0x3d8c50;logger[_0x325a6b('0x20')]('query\x20%s',_0xab6acf);})[_0x3d8c50('0xa')](function(_0x510114){const _0x46b2af=_0x3d8c50;logger[_0x46b2af('0x20')](JSON[_0x46b2af('0x1a')](_0x510114));});});},Migration[_0x124f6f('0x1c')][_0x124f6f('0xe')]=function(_0x17c111,_0x2b8755){const _0x469df1=_0x124f6f,_0x3af0c1=this;this[_0x469df1('0x29')]['enqueue'](function(){const _0x3a9ef1=_0x469df1;return _0x3af0c1[_0x3a9ef1('0x26')][_0x3a9ef1('0xe')](_0x17c111,_0x2b8755)['then'](function(){const _0x483b1d=_0x3a9ef1;logger[_0x483b1d('0x20')](_0x483b1d('0x9'),_0x2b8755,_0x17c111);})[_0x3a9ef1('0xa')](function(_0x14b1e6){const _0x5209c6=_0x3a9ef1;logger[_0x5209c6('0x20')](util[_0x5209c6('0x6')](_0x14b1e6,{'showHidden':![],'depth':null}));});});},Migration[_0x124f6f('0x1c')]['renameColumn']=function(_0xf188cd,_0x5de6ca,_0x1dda88){const _0x5a5bff=_0x124f6f,_0x290380=this;this[_0x5a5bff('0x29')]['enqueue'](function(){const _0x1660d9=_0x5a5bff;return _0x290380[_0x1660d9('0x26')][_0x1660d9('0x12')](_0xf188cd,_0x5de6ca,_0x1dda88)[_0x1660d9('0x24')](function(){const _0x29bb0e=_0x1660d9;logger[_0x29bb0e('0x20')](_0x29bb0e('0x1d'),_0x5de6ca,_0x1dda88,_0xf188cd);})['catch'](function(_0x418b67){const _0x23a22b=_0x1660d9;logger[_0x23a22b('0x20')](util[_0x23a22b('0x6')](_0x418b67,{'showHidden':![],'depth':null}));});});},Migration[_0x124f6f('0x1c')][_0x124f6f('0x28')]=function(_0x3b9fc2){const _0x479b4d=_0x124f6f;this['sequence'][_0x479b4d('0x25')](function(){return _0x3b9fc2();});},module[_0x124f6f('0x1e')]={'up':function(_0x203ca2,_0x448dc3){return new Promise(function(_0x1f5346){const _0xe85656=a971_0x4944,_0x18af25=new Migration(_0x203ca2);_0x18af25[_0xe85656('0x5')]('ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'),_0x18af25['query'](_0xe85656('0x2c')),_0x18af25['query'](_0xe85656('0xf')),_0x18af25[_0xe85656('0x5')]('UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)'),_0x18af25[_0xe85656('0x1')](_0xe85656('0x3'),_0xe85656('0x2'),{'type':_0x448dc3[_0xe85656('0x17')],'defaultValue':![]}),_0x18af25[_0xe85656('0x1')](_0xe85656('0x3'),_0xe85656('0x4'),{'type':_0x448dc3[_0xe85656('0x2a')]}),_0x18af25[_0xe85656('0x5')](_0xe85656('0x1b')),_0x18af25[_0xe85656('0x1')](_0xe85656('0x11'),_0xe85656('0x2'),{'type':_0x448dc3[_0xe85656('0x17')],'defaultValue':![]}),_0x18af25[_0xe85656('0x1')]('chat_websites',_0xe85656('0x4'),{'type':_0x448dc3['INTEGER']}),_0x18af25[_0xe85656('0x5')](_0xe85656('0x7')),_0x18af25[_0xe85656('0x1')]('fax_accounts',_0xe85656('0x2'),{'type':_0x448dc3[_0xe85656('0x17')],'defaultValue':![]}),_0x18af25[_0xe85656('0x1')]('fax_accounts','mandatoryDispositionPauseId',{'type':_0x448dc3[_0xe85656('0x2a')]}),_0x18af25[_0xe85656('0x5')](_0xe85656('0x10')),_0x18af25[_0xe85656('0x1')](_0xe85656('0x2b'),'mandatoryDisposition',{'type':_0x448dc3[_0xe85656('0x17')],'defaultValue':![]}),_0x18af25[_0xe85656('0x1')](_0xe85656('0x2b'),_0xe85656('0x4'),{'type':_0x448dc3[_0xe85656('0x2a')]}),_0x18af25['query'](_0xe85656('0x2d')),_0x18af25['addColumn'](_0xe85656('0xc'),_0xe85656('0x2'),{'type':_0x448dc3[_0xe85656('0x17')],'defaultValue':![]}),_0x18af25[_0xe85656('0x1')](_0xe85656('0xc'),'mandatoryDispositionPauseId',{'type':_0x448dc3['INTEGER']}),_0x18af25['query'](_0xe85656('0xb')),_0x18af25[_0xe85656('0x1')](_0xe85656('0x23'),'mandatoryDisposition',{'type':_0x448dc3[_0xe85656('0x17')],'defaultValue':![]}),_0x18af25['addColumn'](_0xe85656('0x23'),_0xe85656('0x4'),{'type':_0x448dc3[_0xe85656('0x2a')]}),_0x18af25[_0xe85656('0x5')](_0xe85656('0x13')),_0x18af25[_0xe85656('0x28')](_0x1f5346);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.0.js b/server/migrations/2.3.0.js index 4d94437..c3476a6 100644 --- a/server/migrations/2.3.0.js +++ b/server/migrations/2.3.0.js @@ -1 +1 @@ -const a972_0x2aba=['addColumn','changeColumn','util','queryInterface','uniqueid','inspect','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','tail','info','removeIndex','renameColumn','apiKeyNonce','join','stringify','exports','Added\x20column\x20%s\x20to\x20%s','catch','enqueue','users','query\x20%s','dropTable','sequence','query','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','apiKeyIat','STRING','prototype','finally','then','addIndex'];(function(_0x31e891,_0x2aba53){const _0x5b2476=function(_0x5209b0){while(--_0x5209b0){_0x31e891['push'](_0x31e891['shift']());}};_0x5b2476(++_0x2aba53);}(a972_0x2aba,0x14c));const a972_0x5b24=function(_0x31e891,_0x2aba53){_0x31e891=_0x31e891-0x0;let _0x5b2476=a972_0x2aba[_0x31e891];return _0x5b2476;};const _0x2c2ca2=a972_0x5b24;'use strict';const util=require(_0x2c2ca2('0xa')),logger=require(_0x2c2ca2('0xe'))('migration'),Sequence=function(){};Sequence[_0x2c2ca2('0x4')][_0x2c2ca2('0x1b')]=function(_0x5209b0){const _0x285fb0=_0x2c2ca2;this['tail']=this[_0x285fb0('0x11')]?this[_0x285fb0('0x11')][_0x285fb0('0x5')](_0x5209b0):_0x5209b0();};const Migration=function(_0x283c98){const _0x98b107=_0x2c2ca2;this[_0x98b107('0xb')]=_0x283c98,this[_0x98b107('0x1f')]=new Sequence();};Migration[_0x2c2ca2('0x4')][_0x2c2ca2('0x9')]=function(_0x506f2c,_0x4ae35f,_0xd03f57){const _0x2504e4=_0x2c2ca2,_0x5c4cb5=this;this[_0x2504e4('0x1f')][_0x2504e4('0x1b')](function(){const _0x4a4400=_0x2504e4;return _0x5c4cb5['queryInterface'][_0x4a4400('0x9')](_0x506f2c,_0x4ae35f,_0xd03f57)['then'](function(){const _0x2a39b9=_0x4a4400;logger[_0x2a39b9('0x12')](_0x2a39b9('0x0'),_0x4ae35f,_0x506f2c);})[_0x4a4400('0x1a')](function(_0x392e17){const _0x5e1bc3=_0x4a4400;logger['info'](JSON[_0x5e1bc3('0x17')](_0x392e17));});});},Migration[_0x2c2ca2('0x4')][_0x2c2ca2('0x8')]=function(_0x129eee,_0x5a4879,_0x24b7c7){const _0x42448b=_0x2c2ca2,_0x5b48d4=this;this[_0x42448b('0x1f')][_0x42448b('0x1b')](function(){const _0x237c3=_0x42448b;return _0x5b48d4[_0x237c3('0xb')][_0x237c3('0x8')](_0x129eee,_0x5a4879,_0x24b7c7)[_0x237c3('0x6')](function(){const _0x18f3db=_0x237c3;logger['info'](_0x18f3db('0x19'),_0x5a4879,_0x129eee);})['catch'](function(_0x14caeb){const _0x2c6ecb=_0x237c3;logger[_0x2c6ecb('0x12')](JSON[_0x2c6ecb('0x17')](_0x14caeb));});});},Migration[_0x2c2ca2('0x4')][_0x2c2ca2('0x1e')]=function(_0x4014bf){const _0x9f75f=_0x2c2ca2,_0x18a841=this;this['sequence'][_0x9f75f('0x1b')](function(){const _0x58c2c7=_0x9f75f;return _0x18a841[_0x58c2c7('0xb')][_0x58c2c7('0x1e')](_0x4014bf,{'force':!![]})[_0x58c2c7('0x6')](function(){const _0x29ea79=_0x58c2c7;logger[_0x29ea79('0x12')]('table\x20dropped\x20%s',_0x4014bf);})[_0x58c2c7('0x1a')](function(_0x390bf0){const _0x30ac5a=_0x58c2c7;logger[_0x30ac5a('0x12')](JSON[_0x30ac5a('0x17')](_0x390bf0));});});},Migration[_0x2c2ca2('0x4')][_0x2c2ca2('0x7')]=function(_0x5bfb8a,_0x24d81c,_0x5a9e18){const _0x17daa2=_0x2c2ca2,_0x1e9c2a=this;this['sequence'][_0x17daa2('0x1b')](function(){const _0x2e5735=_0x17daa2;return _0x1e9c2a[_0x2e5735('0xb')][_0x2e5735('0x7')](_0x5bfb8a,_0x24d81c,{'indexName':_0x5a9e18})[_0x2e5735('0x6')](function(){const _0x2a3539=_0x2e5735;logger[_0x2a3539('0x12')](_0x2a3539('0x21'),_0x5bfb8a,_0x24d81c[_0x2a3539('0x16')](','),_0x5a9e18);})[_0x2e5735('0x1a')](function(_0x12bc08){const _0xf66bdb=_0x2e5735;logger[_0xf66bdb('0x12')](JSON['stringify'](_0x12bc08));});});},Migration[_0x2c2ca2('0x4')][_0x2c2ca2('0x13')]=function(_0x23ab2d,_0xdfc7a2){const _0x236fb4=_0x2c2ca2,_0x216378=this;this[_0x236fb4('0x1f')][_0x236fb4('0x1b')](function(){const _0x11ada4=_0x236fb4;return _0x216378['queryInterface']['removeIndex'](_0x23ab2d,_0xdfc7a2)[_0x11ada4('0x6')](function(){const _0x50a754=_0x11ada4;logger[_0x50a754('0x12')](_0x50a754('0x1'),_0x23ab2d,_0xdfc7a2);})[_0x11ada4('0x1a')](function(_0x180677){const _0xe71fa=_0x11ada4;logger[_0xe71fa('0x12')](JSON[_0xe71fa('0x17')](_0x180677));});});},Migration['prototype'][_0x2c2ca2('0x20')]=function(_0x2599fa){const _0x56bbc7=_0x2c2ca2,_0x3b69fd=this;this[_0x56bbc7('0x1f')]['enqueue'](function(){const _0x463f21=_0x56bbc7;return _0x3b69fd['queryInterface'][_0x463f21('0x10')][_0x463f21('0x20')](_0x2599fa)[_0x463f21('0x6')](function(){const _0x31a5dd=_0x463f21;logger[_0x31a5dd('0x12')](_0x31a5dd('0x1d'),_0x2599fa);})[_0x463f21('0x1a')](function(_0x4db56c){const _0x58e345=_0x463f21;logger[_0x58e345('0x12')](JSON['stringify'](_0x4db56c));});});},Migration[_0x2c2ca2('0x4')]['removeColumn']=function(_0x26bf5a,_0x353a4d){const _0x105321=_0x2c2ca2,_0x17f845=this;this[_0x105321('0x1f')]['enqueue'](function(){const _0x50da03=_0x105321;return _0x17f845[_0x50da03('0xb')]['removeColumn'](_0x26bf5a,_0x353a4d)[_0x50da03('0x6')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x353a4d,_0x26bf5a);})['catch'](function(_0x560ca3){const _0x12880b=_0x50da03;logger[_0x12880b('0x12')](util['inspect'](_0x560ca3,{'showHidden':![],'depth':null}));});});},Migration[_0x2c2ca2('0x4')][_0x2c2ca2('0x14')]=function(_0xdfffd2,_0x10e04a,_0x45ff1e){const _0x2af34d=_0x2c2ca2,_0x1f4c6a=this;this[_0x2af34d('0x1f')][_0x2af34d('0x1b')](function(){const _0x4c0eff=_0x2af34d;return _0x1f4c6a[_0x4c0eff('0xb')][_0x4c0eff('0x14')](_0xdfffd2,_0x10e04a,_0x45ff1e)['then'](function(){const _0xa80a37=_0x4c0eff;logger[_0xa80a37('0x12')](_0xa80a37('0xf'),_0x10e04a,_0x45ff1e,_0xdfffd2);})['catch'](function(_0x275838){const _0x289215=_0x4c0eff;logger[_0x289215('0x12')](util[_0x289215('0xd')](_0x275838,{'showHidden':![],'depth':null}));});});},Migration[_0x2c2ca2('0x4')]['final']=function(_0x193a4d){const _0x434f5c=_0x2c2ca2;this[_0x434f5c('0x1f')][_0x434f5c('0x1b')](function(){return _0x193a4d();});},module[_0x2c2ca2('0x18')]={'up':function(_0x4fa5f0,_0x20a62d){return new Promise(function(_0xeeefd0){const _0x248f22=a972_0x5b24,_0x5b124a=new Migration(_0x4fa5f0);_0x5b124a[_0x248f22('0x8')](_0x248f22('0x1c'),_0x248f22('0x15'),{'type':_0x20a62d[_0x248f22('0x3')]}),_0x5b124a['addColumn'](_0x248f22('0x1c'),_0x248f22('0x2'),{'type':_0x20a62d[_0x248f22('0x3')]}),_0x5b124a[_0x248f22('0x7')]('report_call',[_0x248f22('0xc')],_0x248f22('0xc')),_0x5b124a['final'](_0xeeefd0);});},'down':function(){}}; \ No newline at end of file +const a972_0x48a4=['query','inspect','catch','removeColumn','info','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','apiKeyIat','report_call','removeIndex\x20%s\x20%s','tail','addIndex','Removed\x20column\x20%s\x20from\x20%s','STRING','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','util','enqueue','apiKeyNonce','sequence','then','uniqueid','dropTable','../config/logger','addColumn','final','queryInterface','users','exports','migration','stringify','addIndex\x20%s\x20%s\x20%s','prototype','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s'];(function(_0x1bba7c,_0x48a401){const _0x4eed76=function(_0x30cc6f){while(--_0x30cc6f){_0x1bba7c['push'](_0x1bba7c['shift']());}};_0x4eed76(++_0x48a401);}(a972_0x48a4,0x129));const a972_0x4eed=function(_0x1bba7c,_0x48a401){_0x1bba7c=_0x1bba7c-0x0;let _0x4eed76=a972_0x48a4[_0x1bba7c];return _0x4eed76;};const _0x4e3163=a972_0x4eed;'use strict';const util=require(_0x4e3163('0x22')),logger=require(_0x4e3163('0x6'))(_0x4e3163('0xc')),Sequence=function(){};Sequence[_0x4e3163('0xf')][_0x4e3163('0x0')]=function(_0x30cc6f){const _0x597c6c=_0x4e3163;this[_0x597c6c('0x1c')]=this[_0x597c6c('0x1c')]?this[_0x597c6c('0x1c')]['finally'](_0x30cc6f):_0x30cc6f();};const Migration=function(_0x2eec6c){const _0x20b244=_0x4e3163;this[_0x20b244('0x9')]=_0x2eec6c,this[_0x20b244('0x2')]=new Sequence();};Migration[_0x4e3163('0xf')]['changeColumn']=function(_0x2f20bb,_0x4d184c,_0x2631de){const _0x3d1b2e=_0x4e3163,_0x282995=this;this[_0x3d1b2e('0x2')][_0x3d1b2e('0x0')](function(){const _0x74a2d0=_0x3d1b2e;return _0x282995[_0x74a2d0('0x9')]['changeColumn'](_0x2f20bb,_0x4d184c,_0x2631de)['then'](function(){const _0x123719=_0x74a2d0;logger['info'](_0x123719('0x20'),_0x4d184c,_0x2f20bb);})['catch'](function(_0x38f802){const _0x523272=_0x74a2d0;logger[_0x523272('0x16')](JSON[_0x523272('0xd')](_0x38f802));});});},Migration[_0x4e3163('0xf')]['addColumn']=function(_0x20215f,_0xa0107d,_0x1b2444){const _0x7be5b5=this;this['sequence']['enqueue'](function(){const _0x5131f9=a972_0x4eed;return _0x7be5b5['queryInterface'][_0x5131f9('0x7')](_0x20215f,_0xa0107d,_0x1b2444)[_0x5131f9('0x3')](function(){const _0x5bd899=_0x5131f9;logger[_0x5bd899('0x16')](_0x5bd899('0x11'),_0xa0107d,_0x20215f);})[_0x5131f9('0x14')](function(_0x3f4abe){const _0xb1e842=_0x5131f9;logger[_0xb1e842('0x16')](JSON[_0xb1e842('0xd')](_0x3f4abe));});});},Migration[_0x4e3163('0xf')][_0x4e3163('0x5')]=function(_0x3180cc){const _0x1d89de=_0x4e3163,_0x5883e5=this;this[_0x1d89de('0x2')]['enqueue'](function(){const _0x31c0b3=_0x1d89de;return _0x5883e5[_0x31c0b3('0x9')][_0x31c0b3('0x5')](_0x3180cc,{'force':!![]})[_0x31c0b3('0x3')](function(){const _0x3fc1d4=_0x31c0b3;logger[_0x3fc1d4('0x16')](_0x3fc1d4('0x10'),_0x3180cc);})['catch'](function(_0x78de42){const _0x3a7746=_0x31c0b3;logger[_0x3a7746('0x16')](JSON[_0x3a7746('0xd')](_0x78de42));});});},Migration['prototype'][_0x4e3163('0x1d')]=function(_0x11989b,_0x3eacc3,_0x4851af){const _0x456f29=_0x4e3163,_0x3118b4=this;this[_0x456f29('0x2')]['enqueue'](function(){const _0x50abf7=_0x456f29;return _0x3118b4[_0x50abf7('0x9')][_0x50abf7('0x1d')](_0x11989b,_0x3eacc3,{'indexName':_0x4851af})[_0x50abf7('0x3')](function(){const _0x5e57f7=_0x50abf7;logger[_0x5e57f7('0x16')](_0x5e57f7('0xe'),_0x11989b,_0x3eacc3['join'](','),_0x4851af);})[_0x50abf7('0x14')](function(_0x50c650){const _0x48ea51=_0x50abf7;logger[_0x48ea51('0x16')](JSON[_0x48ea51('0xd')](_0x50c650));});});},Migration[_0x4e3163('0xf')]['removeIndex']=function(_0x27ae65,_0x3c295b){const _0x45f021=_0x4e3163,_0x2af17e=this;this[_0x45f021('0x2')][_0x45f021('0x0')](function(){const _0x5a5799=_0x45f021;return _0x2af17e['queryInterface']['removeIndex'](_0x27ae65,_0x3c295b)[_0x5a5799('0x3')](function(){const _0x508a5a=_0x5a5799;logger[_0x508a5a('0x16')](_0x508a5a('0x1b'),_0x27ae65,_0x3c295b);})['catch'](function(_0x4c7a1e){const _0x447cca=_0x5a5799;logger[_0x447cca('0x16')](JSON[_0x447cca('0xd')](_0x4c7a1e));});});},Migration[_0x4e3163('0xf')][_0x4e3163('0x12')]=function(_0x4fd3d5){const _0x345ead=_0x4e3163,_0x5860c5=this;this[_0x345ead('0x2')][_0x345ead('0x0')](function(){const _0x13b7fd=_0x345ead;return _0x5860c5[_0x13b7fd('0x9')]['sequelize'][_0x13b7fd('0x12')](_0x4fd3d5)[_0x13b7fd('0x3')](function(){const _0x53edb4=_0x13b7fd;logger[_0x53edb4('0x16')](_0x53edb4('0x21'),_0x4fd3d5);})[_0x13b7fd('0x14')](function(_0x2f8120){const _0x30cfd0=_0x13b7fd;logger[_0x30cfd0('0x16')](JSON[_0x30cfd0('0xd')](_0x2f8120));});});},Migration[_0x4e3163('0xf')][_0x4e3163('0x15')]=function(_0x3c55d5,_0x4ca7ad){const _0x48f7cb=_0x4e3163,_0x1a59c7=this;this[_0x48f7cb('0x2')][_0x48f7cb('0x0')](function(){const _0x2329b7=_0x48f7cb;return _0x1a59c7[_0x2329b7('0x9')][_0x2329b7('0x15')](_0x3c55d5,_0x4ca7ad)[_0x2329b7('0x3')](function(){const _0x156896=_0x2329b7;logger['info'](_0x156896('0x1e'),_0x4ca7ad,_0x3c55d5);})[_0x2329b7('0x14')](function(_0x248753){const _0xf9de10=_0x2329b7;logger[_0xf9de10('0x16')](util[_0xf9de10('0x13')](_0x248753,{'showHidden':![],'depth':null}));});});},Migration[_0x4e3163('0xf')][_0x4e3163('0x17')]=function(_0x4bb15f,_0x4ea3fe,_0x434186){const _0x28a73b=_0x4e3163,_0x2b3aa5=this;this[_0x28a73b('0x2')][_0x28a73b('0x0')](function(){const _0x28f197=_0x28a73b;return _0x2b3aa5['queryInterface']['renameColumn'](_0x4bb15f,_0x4ea3fe,_0x434186)[_0x28f197('0x3')](function(){const _0x447265=_0x28f197;logger['info'](_0x447265('0x18'),_0x4ea3fe,_0x434186,_0x4bb15f);})[_0x28f197('0x14')](function(_0xb9c00b){const _0x398661=_0x28f197;logger[_0x398661('0x16')](util['inspect'](_0xb9c00b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4e3163('0x8')]=function(_0xf3ba75){const _0x12ab68=_0x4e3163;this[_0x12ab68('0x2')][_0x12ab68('0x0')](function(){return _0xf3ba75();});},module[_0x4e3163('0xb')]={'up':function(_0x2ee7b0,_0x4eafd4){return new Promise(function(_0x3096da){const _0x5c3dbd=a972_0x4eed,_0x41ae13=new Migration(_0x2ee7b0);_0x41ae13[_0x5c3dbd('0x7')](_0x5c3dbd('0xa'),_0x5c3dbd('0x1'),{'type':_0x4eafd4['STRING']}),_0x41ae13[_0x5c3dbd('0x7')]('users',_0x5c3dbd('0x19'),{'type':_0x4eafd4[_0x5c3dbd('0x1f')]}),_0x41ae13['addIndex'](_0x5c3dbd('0x1a'),[_0x5c3dbd('0x4')],_0x5c3dbd('0x4')),_0x41ae13[_0x5c3dbd('0x8')](_0x3096da);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.1.js b/server/migrations/2.3.1.js index 53c718b..c7b5cdd 100644 --- a/server/migrations/2.3.1.js +++ b/server/migrations/2.3.1.js @@ -1 +1 @@ -const a973_0x188e=['Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','then','Removed\x20column\x20%s\x20from\x20%s','removeIndex','final','../config/logger','removeColumn','info','queryInterface','util','migration','query','prototype','join','table\x20dropped\x20%s','catch','addColumn','sequelize','finally','Added\x20column\x20%s\x20to\x20%s','tail','enqueue','addIndex\x20%s\x20%s\x20%s','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','stringify','dropTable','sequence','query\x20%s','addIndex'];(function(_0x26463,_0x188e8d){const _0x529ac9=function(_0x577cc1){while(--_0x577cc1){_0x26463['push'](_0x26463['shift']());}};_0x529ac9(++_0x188e8d);}(a973_0x188e,0x9b));const a973_0x529a=function(_0x26463,_0x188e8d){_0x26463=_0x26463-0x0;let _0x529ac9=a973_0x188e[_0x26463];return _0x529ac9;};const _0x30e7e1=a973_0x529a;'use strict';const util=require(_0x30e7e1('0xf')),logger=require(_0x30e7e1('0xb'))(_0x30e7e1('0x10')),Sequence=function(){};Sequence[_0x30e7e1('0x12')][_0x30e7e1('0x1b')]=function(_0x577cc1){const _0x1c904e=_0x30e7e1;this[_0x1c904e('0x1a')]=this[_0x1c904e('0x1a')]?this[_0x1c904e('0x1a')][_0x1c904e('0x18')](_0x577cc1):_0x577cc1();};const Migration=function(_0x1c2bc5){const _0x4919a3=_0x30e7e1;this[_0x4919a3('0xe')]=_0x1c2bc5,this[_0x4919a3('0x2')]=new Sequence();};Migration[_0x30e7e1('0x12')]['changeColumn']=function(_0x380904,_0x44247f,_0x388e74){const _0x54f219=_0x30e7e1,_0x2bd4e7=this;this[_0x54f219('0x2')][_0x54f219('0x1b')](function(){const _0x52a1a1=_0x54f219;return _0x2bd4e7[_0x52a1a1('0xe')][_0x52a1a1('0x6')](_0x380904,_0x44247f,_0x388e74)[_0x52a1a1('0x7')](function(){const _0x2f32a7=_0x52a1a1;logger[_0x2f32a7('0xd')](_0x2f32a7('0x5'),_0x44247f,_0x380904);})[_0x52a1a1('0x15')](function(_0x57610a){const _0x32c5b8=_0x52a1a1;logger[_0x32c5b8('0xd')](JSON[_0x32c5b8('0x0')](_0x57610a));});});},Migration[_0x30e7e1('0x12')]['addColumn']=function(_0x54b2da,_0x360121,_0x15724a){const _0x5a3825=_0x30e7e1,_0x4e7109=this;this[_0x5a3825('0x2')][_0x5a3825('0x1b')](function(){const _0x40bcb0=_0x5a3825;return _0x4e7109[_0x40bcb0('0xe')][_0x40bcb0('0x16')](_0x54b2da,_0x360121,_0x15724a)['then'](function(){const _0x451b35=_0x40bcb0;logger[_0x451b35('0xd')](_0x451b35('0x19'),_0x360121,_0x54b2da);})[_0x40bcb0('0x15')](function(_0x310cf5){const _0x5a419d=_0x40bcb0;logger[_0x5a419d('0xd')](JSON[_0x5a419d('0x0')](_0x310cf5));});});},Migration['prototype'][_0x30e7e1('0x1')]=function(_0x2b173f){const _0x3a4d40=this;this['sequence']['enqueue'](function(){const _0x5f1326=a973_0x529a;return _0x3a4d40['queryInterface'][_0x5f1326('0x1')](_0x2b173f,{'force':!![]})[_0x5f1326('0x7')](function(){const _0x24f787=_0x5f1326;logger['info'](_0x24f787('0x14'),_0x2b173f);})['catch'](function(_0x5cb5b6){const _0x16785b=_0x5f1326;logger[_0x16785b('0xd')](JSON[_0x16785b('0x0')](_0x5cb5b6));});});},Migration[_0x30e7e1('0x12')]['addIndex']=function(_0x5b951d,_0xb045c,_0x5cecd5){const _0x48a37d=_0x30e7e1,_0x2aef05=this;this[_0x48a37d('0x2')][_0x48a37d('0x1b')](function(){const _0x4ba010=_0x48a37d;return _0x2aef05[_0x4ba010('0xe')][_0x4ba010('0x4')](_0x5b951d,_0xb045c,{'indexName':_0x5cecd5})[_0x4ba010('0x7')](function(){const _0x3a6418=_0x4ba010;logger[_0x3a6418('0xd')](_0x3a6418('0x1c'),_0x5b951d,_0xb045c[_0x3a6418('0x13')](','),_0x5cecd5);})[_0x4ba010('0x15')](function(_0x145450){const _0x20ca9a=_0x4ba010;logger[_0x20ca9a('0xd')](JSON[_0x20ca9a('0x0')](_0x145450));});});},Migration[_0x30e7e1('0x12')][_0x30e7e1('0x9')]=function(_0x34db0f,_0x10220d){const _0x19ec54=_0x30e7e1,_0x30ddfe=this;this['sequence'][_0x19ec54('0x1b')](function(){const _0x4aba6f=_0x19ec54;return _0x30ddfe['queryInterface'][_0x4aba6f('0x9')](_0x34db0f,_0x10220d)['then'](function(){const _0x3b1b9c=_0x4aba6f;logger[_0x3b1b9c('0xd')]('removeIndex\x20%s\x20%s',_0x34db0f,_0x10220d);})['catch'](function(_0xfa2a3){const _0xf96d41=_0x4aba6f;logger[_0xf96d41('0xd')](JSON[_0xf96d41('0x0')](_0xfa2a3));});});},Migration[_0x30e7e1('0x12')][_0x30e7e1('0x11')]=function(_0x187c87){const _0x20a126=_0x30e7e1,_0x193a55=this;this[_0x20a126('0x2')][_0x20a126('0x1b')](function(){const _0x20921f=_0x20a126;return _0x193a55['queryInterface'][_0x20921f('0x17')][_0x20921f('0x11')](_0x187c87)['then'](function(){const _0xcdf224=_0x20921f;logger[_0xcdf224('0xd')](_0xcdf224('0x3'),_0x187c87);})[_0x20921f('0x15')](function(_0x151690){const _0x5d578e=_0x20921f;logger[_0x5d578e('0xd')](JSON['stringify'](_0x151690));});});},Migration[_0x30e7e1('0x12')][_0x30e7e1('0xc')]=function(_0x102a60,_0x18d861){const _0x37037b=_0x30e7e1,_0x451884=this;this[_0x37037b('0x2')][_0x37037b('0x1b')](function(){const _0x3407af=_0x37037b;return _0x451884[_0x3407af('0xe')][_0x3407af('0xc')](_0x102a60,_0x18d861)[_0x3407af('0x7')](function(){const _0x46683e=_0x3407af;logger[_0x46683e('0xd')](_0x46683e('0x8'),_0x18d861,_0x102a60);})[_0x3407af('0x15')](function(_0x4f4f65){const _0x29ee8f=_0x3407af;logger['info'](util[_0x29ee8f('0x1f')](_0x4f4f65,{'showHidden':![],'depth':null}));});});},Migration[_0x30e7e1('0x12')][_0x30e7e1('0x1d')]=function(_0x27a4c0,_0xbcc86d,_0x29e9cc){const _0x23e1ae=_0x30e7e1,_0x34a0ed=this;this[_0x23e1ae('0x2')][_0x23e1ae('0x1b')](function(){const _0x565ebe=_0x23e1ae;return _0x34a0ed[_0x565ebe('0xe')][_0x565ebe('0x1d')](_0x27a4c0,_0xbcc86d,_0x29e9cc)[_0x565ebe('0x7')](function(){const _0x4c86dd=_0x565ebe;logger[_0x4c86dd('0xd')](_0x4c86dd('0x1e'),_0xbcc86d,_0x29e9cc,_0x27a4c0);})[_0x565ebe('0x15')](function(_0x1203c0){const _0x46300e=_0x565ebe;logger['info'](util[_0x46300e('0x1f')](_0x1203c0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x30e7e1('0xa')]=function(_0xf88800){const _0x43241c=_0x30e7e1;this['sequence'][_0x43241c('0x1b')](function(){return _0xf88800();});},module['exports']={'up':function(_0x5426ef){return new Promise(function(_0x148dee){const _0x4ad725=a973_0x529a,_0x19ad82=new Migration(_0x5426ef);_0x19ad82[_0x4ad725('0xa')](_0x148dee);});},'down':function(){}}; \ No newline at end of file +const a973_0x1127=['migration','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','inspect','removeIndex\x20%s\x20%s','query\x20%s','catch','changeColumn','prototype','exports','addIndex','removeColumn','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','removeIndex','then','stringify','enqueue','info','tail','addColumn','final','Added\x20column\x20%s\x20to\x20%s','join','query','sequence','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','util','dropTable'];(function(_0x196432,_0x11279f){const _0x38ba7e=function(_0xf54d25){while(--_0xf54d25){_0x196432['push'](_0x196432['shift']());}};_0x38ba7e(++_0x11279f);}(a973_0x1127,0xc2));const a973_0x38ba=function(_0x196432,_0x11279f){_0x196432=_0x196432-0x0;let _0x38ba7e=a973_0x1127[_0x196432];return _0x38ba7e;};const _0x95229f=a973_0x38ba;'use strict';const util=require(_0x95229f('0x1c')),logger=require(_0x95229f('0xa'))(_0x95229f('0x1e')),Sequence=function(){};Sequence[_0x95229f('0x6')]['enqueue']=function(_0xf54d25){const _0x2c527c=_0x95229f;this['tail']=this[_0x2c527c('0x12')]?this['tail']['finally'](_0xf54d25):_0xf54d25();};const Migration=function(_0x4b5db3){const _0x1fc03c=_0x95229f;this['queryInterface']=_0x4b5db3,this[_0x1fc03c('0x18')]=new Sequence();};Migration[_0x95229f('0x6')][_0x95229f('0x5')]=function(_0x24f98b,_0x158fc2,_0x477213){const _0x57ba83=_0x95229f,_0x548871=this;this['sequence'][_0x57ba83('0x10')](function(){const _0x2eb2aa=_0x57ba83;return _0x548871[_0x2eb2aa('0xc')][_0x2eb2aa('0x5')](_0x24f98b,_0x158fc2,_0x477213)[_0x2eb2aa('0xe')](function(){const _0x33c25c=_0x2eb2aa;logger[_0x33c25c('0x11')](_0x33c25c('0x1a'),_0x158fc2,_0x24f98b);})[_0x2eb2aa('0x4')](function(_0x343193){logger['info'](JSON['stringify'](_0x343193));});});},Migration[_0x95229f('0x6')][_0x95229f('0x13')]=function(_0x4bf57a,_0x4a5d58,_0x3cbc29){const _0x3882ba=this;this['sequence']['enqueue'](function(){const _0x53d645=a973_0x38ba;return _0x3882ba[_0x53d645('0xc')][_0x53d645('0x13')](_0x4bf57a,_0x4a5d58,_0x3cbc29)[_0x53d645('0xe')](function(){const _0x4b4908=_0x53d645;logger[_0x4b4908('0x11')](_0x4b4908('0x15'),_0x4a5d58,_0x4bf57a);})[_0x53d645('0x4')](function(_0x2c02c5){const _0x27c0fb=_0x53d645;logger['info'](JSON[_0x27c0fb('0xf')](_0x2c02c5));});});},Migration[_0x95229f('0x6')][_0x95229f('0x1d')]=function(_0x3927f4){const _0x243a04=_0x95229f,_0x3846e9=this;this[_0x243a04('0x18')][_0x243a04('0x10')](function(){const _0x13bbb9=_0x243a04;return _0x3846e9[_0x13bbb9('0xc')][_0x13bbb9('0x1d')](_0x3927f4,{'force':!![]})['then'](function(){const _0x5e1ccc=_0x13bbb9;logger['info'](_0x5e1ccc('0x0'),_0x3927f4);})[_0x13bbb9('0x4')](function(_0x2b4d58){const _0x597ff8=_0x13bbb9;logger[_0x597ff8('0x11')](JSON[_0x597ff8('0xf')](_0x2b4d58));});});},Migration[_0x95229f('0x6')][_0x95229f('0x8')]=function(_0x548255,_0x310d04,_0x410371){const _0x129fe2=_0x95229f,_0x3781db=this;this[_0x129fe2('0x18')][_0x129fe2('0x10')](function(){const _0x6490f7=_0x129fe2;return _0x3781db[_0x6490f7('0xc')][_0x6490f7('0x8')](_0x548255,_0x310d04,{'indexName':_0x410371})[_0x6490f7('0xe')](function(){const _0x2b3861=_0x6490f7;logger[_0x2b3861('0x11')](_0x2b3861('0x1f'),_0x548255,_0x310d04[_0x2b3861('0x16')](','),_0x410371);})[_0x6490f7('0x4')](function(_0x5dc6da){const _0x37aa6a=_0x6490f7;logger[_0x37aa6a('0x11')](JSON[_0x37aa6a('0xf')](_0x5dc6da));});});},Migration[_0x95229f('0x6')][_0x95229f('0xd')]=function(_0x500a78,_0x4eef2d){const _0x33d546=_0x95229f,_0x2738c1=this;this[_0x33d546('0x18')][_0x33d546('0x10')](function(){const _0x2454bd=_0x33d546;return _0x2738c1[_0x2454bd('0xc')][_0x2454bd('0xd')](_0x500a78,_0x4eef2d)[_0x2454bd('0xe')](function(){const _0x390d63=_0x2454bd;logger[_0x390d63('0x11')](_0x390d63('0x2'),_0x500a78,_0x4eef2d);})[_0x2454bd('0x4')](function(_0x505ec0){const _0x254bbe=_0x2454bd;logger[_0x254bbe('0x11')](JSON[_0x254bbe('0xf')](_0x505ec0));});});},Migration[_0x95229f('0x6')][_0x95229f('0x17')]=function(_0x3be668){const _0x3b0d57=_0x95229f,_0x15cbd1=this;this[_0x3b0d57('0x18')][_0x3b0d57('0x10')](function(){const _0x1dd7a9=_0x3b0d57;return _0x15cbd1[_0x1dd7a9('0xc')]['sequelize'][_0x1dd7a9('0x17')](_0x3be668)[_0x1dd7a9('0xe')](function(){const _0x2c63e5=_0x1dd7a9;logger[_0x2c63e5('0x11')](_0x2c63e5('0x3'),_0x3be668);})[_0x1dd7a9('0x4')](function(_0xc3bf72){const _0x179f44=_0x1dd7a9;logger[_0x179f44('0x11')](JSON[_0x179f44('0xf')](_0xc3bf72));});});},Migration[_0x95229f('0x6')][_0x95229f('0x9')]=function(_0x4f3da8,_0x4fa750){const _0x37fd30=_0x95229f,_0x4e19dc=this;this['sequence'][_0x37fd30('0x10')](function(){const _0x44e3fc=_0x37fd30;return _0x4e19dc[_0x44e3fc('0xc')][_0x44e3fc('0x9')](_0x4f3da8,_0x4fa750)[_0x44e3fc('0xe')](function(){const _0x4eda53=_0x44e3fc;logger[_0x4eda53('0x11')](_0x4eda53('0x1b'),_0x4fa750,_0x4f3da8);})['catch'](function(_0x125c4a){const _0x2acaf6=_0x44e3fc;logger[_0x2acaf6('0x11')](util[_0x2acaf6('0x1')](_0x125c4a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x95229f('0x19')]=function(_0x5f214d,_0xde1747,_0x518c9c){const _0x18d0e0=_0x95229f,_0x19c8de=this;this[_0x18d0e0('0x18')][_0x18d0e0('0x10')](function(){const _0x246fee=_0x18d0e0;return _0x19c8de[_0x246fee('0xc')][_0x246fee('0x19')](_0x5f214d,_0xde1747,_0x518c9c)[_0x246fee('0xe')](function(){const _0x4a7d41=_0x246fee;logger[_0x4a7d41('0x11')](_0x4a7d41('0xb'),_0xde1747,_0x518c9c,_0x5f214d);})[_0x246fee('0x4')](function(_0x29e0e2){const _0xb6db54=_0x246fee;logger[_0xb6db54('0x11')](util[_0xb6db54('0x1')](_0x29e0e2,{'showHidden':![],'depth':null}));});});},Migration[_0x95229f('0x6')][_0x95229f('0x14')]=function(_0x49582b){const _0x50581c=_0x95229f;this['sequence'][_0x50581c('0x10')](function(){return _0x49582b();});},module[_0x95229f('0x7')]={'up':function(_0x387294){return new Promise(function(_0x44efaa){const _0xb3094b=a973_0x38ba,_0x19a4fe=new Migration(_0x387294);_0x19a4fe[_0xb3094b('0x14')](_0x44efaa);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.10.js b/server/migrations/2.3.10.js index 4d6a506..61d21f8 100644 --- a/server/migrations/2.3.10.js +++ b/server/migrations/2.3.10.js @@ -1 +1 @@ -const a974_0x1b9e=['queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','Added\x20column\x20%s\x20to\x20%s','prototype','dropTable','addIndex\x20%s\x20%s\x20%s','query','sipcallid','final','sequelize','sequence','join','removeColumn','then','addColumn','info','removeIndex\x20%s\x20%s','removeIndex','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','exports','addIndex','inspect','table\x20dropped\x20%s','stringify','../config/logger','catch','tail','migration'];(function(_0x4eeabf,_0x1b9e67){const _0x171bd6=function(_0x2bdc4b){while(--_0x2bdc4b){_0x4eeabf['push'](_0x4eeabf['shift']());}};_0x171bd6(++_0x1b9e67);}(a974_0x1b9e,0x1c9));const a974_0x171b=function(_0x4eeabf,_0x1b9e67){_0x4eeabf=_0x4eeabf-0x0;let _0x171bd6=a974_0x1b9e[_0x4eeabf];return _0x171bd6;};const _0x516e2d=a974_0x171b;'use strict';const util=require(_0x516e2d('0x1b')),logger=require(_0x516e2d('0x4'))(_0x516e2d('0x7')),Sequence=function(){};Sequence[_0x516e2d('0xc')][_0x516e2d('0x1d')]=function(_0x2bdc4b){const _0x5e2353=_0x516e2d;this[_0x5e2353('0x6')]=this[_0x5e2353('0x6')]?this['tail']['finally'](_0x2bdc4b):_0x2bdc4b();};const Migration=function(_0x5c5960){const _0x4223ac=_0x516e2d;this[_0x4223ac('0x8')]=_0x5c5960,this[_0x4223ac('0x13')]=new Sequence();};Migration[_0x516e2d('0xc')]['changeColumn']=function(_0x1245d7,_0xe1fe00,_0x4d6a35){const _0x2e93bd=_0x516e2d,_0x2a3f76=this;this['sequence'][_0x2e93bd('0x1d')](function(){const _0x409ec1=_0x2e93bd;return _0x2a3f76[_0x409ec1('0x8')]['changeColumn'](_0x1245d7,_0xe1fe00,_0x4d6a35)[_0x409ec1('0x16')](function(){const _0x21a74e=_0x409ec1;logger[_0x21a74e('0x18')](_0x21a74e('0x9'),_0xe1fe00,_0x1245d7);})[_0x409ec1('0x5')](function(_0x5a80e1){const _0x5831b6=_0x409ec1;logger[_0x5831b6('0x18')](JSON[_0x5831b6('0x3')](_0x5a80e1));});});},Migration[_0x516e2d('0xc')][_0x516e2d('0x17')]=function(_0x5f03c2,_0x3c89a4,_0x95f7ff){const _0x414a4d=_0x516e2d,_0x2142b5=this;this[_0x414a4d('0x13')]['enqueue'](function(){const _0xf09c10=_0x414a4d;return _0x2142b5['queryInterface'][_0xf09c10('0x17')](_0x5f03c2,_0x3c89a4,_0x95f7ff)['then'](function(){const _0x38cbcd=_0xf09c10;logger[_0x38cbcd('0x18')](_0x38cbcd('0xb'),_0x3c89a4,_0x5f03c2);})[_0xf09c10('0x5')](function(_0x20aecc){const _0x2189cf=_0xf09c10;logger[_0x2189cf('0x18')](JSON[_0x2189cf('0x3')](_0x20aecc));});});},Migration['prototype'][_0x516e2d('0xd')]=function(_0x20798d){const _0x36e71c=_0x516e2d,_0x1db6d4=this;this[_0x36e71c('0x13')][_0x36e71c('0x1d')](function(){const _0x105817=_0x36e71c;return _0x1db6d4[_0x105817('0x8')]['dropTable'](_0x20798d,{'force':!![]})['then'](function(){const _0x39e5dc=_0x105817;logger['info'](_0x39e5dc('0x2'),_0x20798d);})[_0x105817('0x5')](function(_0x164774){const _0x2ad298=_0x105817;logger[_0x2ad298('0x18')](JSON['stringify'](_0x164774));});});},Migration['prototype'][_0x516e2d('0x0')]=function(_0x345b4f,_0xd9eaa5,_0x55f681){const _0x5ed10d=_0x516e2d,_0x32cc85=this;this[_0x5ed10d('0x13')][_0x5ed10d('0x1d')](function(){const _0x555ccc=_0x5ed10d;return _0x32cc85[_0x555ccc('0x8')][_0x555ccc('0x0')](_0x345b4f,_0xd9eaa5,{'indexName':_0x55f681})['then'](function(){const _0x6b29a5=_0x555ccc;logger[_0x6b29a5('0x18')](_0x6b29a5('0xe'),_0x345b4f,_0xd9eaa5[_0x6b29a5('0x14')](','),_0x55f681);})[_0x555ccc('0x5')](function(_0x314943){const _0x7ea540=_0x555ccc;logger[_0x7ea540('0x18')](JSON[_0x7ea540('0x3')](_0x314943));});});},Migration[_0x516e2d('0xc')][_0x516e2d('0x1a')]=function(_0x5d048f,_0x25dbb0){const _0x6210ed=_0x516e2d,_0x56af7d=this;this[_0x6210ed('0x13')]['enqueue'](function(){const _0x3e49fd=_0x6210ed;return _0x56af7d[_0x3e49fd('0x8')]['removeIndex'](_0x5d048f,_0x25dbb0)[_0x3e49fd('0x16')](function(){const _0x3c1ce5=_0x3e49fd;logger['info'](_0x3c1ce5('0x19'),_0x5d048f,_0x25dbb0);})[_0x3e49fd('0x5')](function(_0x482309){const _0x2bc30b=_0x3e49fd;logger[_0x2bc30b('0x18')](JSON[_0x2bc30b('0x3')](_0x482309));});});},Migration[_0x516e2d('0xc')]['query']=function(_0x403286){const _0x58055a=_0x516e2d,_0x10fd24=this;this[_0x58055a('0x13')][_0x58055a('0x1d')](function(){const _0x43bb0f=_0x58055a;return _0x10fd24[_0x43bb0f('0x8')][_0x43bb0f('0x12')][_0x43bb0f('0xf')](_0x403286)['then'](function(){const _0x3cbafd=_0x43bb0f;logger[_0x3cbafd('0x18')](_0x3cbafd('0xa'),_0x403286);})[_0x43bb0f('0x5')](function(_0xadefc){const _0x455a37=_0x43bb0f;logger[_0x455a37('0x18')](JSON[_0x455a37('0x3')](_0xadefc));});});},Migration[_0x516e2d('0xc')][_0x516e2d('0x15')]=function(_0x56b7cb,_0x398ac5){const _0x41efe0=_0x516e2d,_0x2e888c=this;this['sequence'][_0x41efe0('0x1d')](function(){const _0x39b125=_0x41efe0;return _0x2e888c[_0x39b125('0x8')][_0x39b125('0x15')](_0x56b7cb,_0x398ac5)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x398ac5,_0x56b7cb);})['catch'](function(_0x593e26){const _0x57d8a0=_0x39b125;logger[_0x57d8a0('0x18')](util[_0x57d8a0('0x1')](_0x593e26,{'showHidden':![],'depth':null}));});});},Migration[_0x516e2d('0xc')]['renameColumn']=function(_0x4c3d66,_0x508b87,_0xec6eb6){const _0x216b01=_0x516e2d,_0x54b09b=this;this[_0x216b01('0x13')][_0x216b01('0x1d')](function(){const _0x29129a=_0x216b01;return _0x54b09b[_0x29129a('0x8')]['renameColumn'](_0x4c3d66,_0x508b87,_0xec6eb6)[_0x29129a('0x16')](function(){const _0xa1baea=_0x29129a;logger[_0xa1baea('0x18')](_0xa1baea('0x1c'),_0x508b87,_0xec6eb6,_0x4c3d66);})[_0x29129a('0x5')](function(_0x2cfb2e){const _0x60238d=_0x29129a;logger['info'](util[_0x60238d('0x1')](_0x2cfb2e,{'showHidden':![],'depth':null}));});});},Migration[_0x516e2d('0xc')][_0x516e2d('0x11')]=function(_0x33c905){const _0x23249a=_0x516e2d;this[_0x23249a('0x13')][_0x23249a('0x1d')](function(){return _0x33c905();});},module[_0x516e2d('0x1e')]={'up':function(_0x2f302f,_0x2ae122){return new Promise(function(_0xe8b60b){const _0x450b5b=a974_0x171b,_0x2777e5=new Migration(_0x2f302f);_0x2777e5[_0x450b5b('0x17')]('report_call',_0x450b5b('0x10'),{'type':_0x2ae122['STRING']}),_0x2777e5[_0x450b5b('0x11')](_0xe8b60b);});},'down':function(){}}; \ No newline at end of file +const a974_0x2238=['addColumn','removeColumn','addIndex','catch','report_call','prototype','enqueue','queryInterface','sequence','exports','sipcallid','final','util','stringify','query','../config/logger','tail','inspect','info','finally','migration','changeColumn','dropTable','removeIndex','STRING','then','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s'];(function(_0x122753,_0x2238e7){const _0x158d51=function(_0x61f3){while(--_0x61f3){_0x122753['push'](_0x122753['shift']());}};_0x158d51(++_0x2238e7);}(a974_0x2238,0xc6));const a974_0x158d=function(_0x122753,_0x2238e7){_0x122753=_0x122753-0x0;let _0x158d51=a974_0x2238[_0x122753];return _0x158d51;};const _0x18f5af=a974_0x158d;'use strict';const util=require(_0x18f5af('0x11')),logger=require(_0x18f5af('0x14'))(_0x18f5af('0x19')),Sequence=function(){};Sequence[_0x18f5af('0xa')]['enqueue']=function(_0x61f3){const _0x142f21=_0x18f5af;this[_0x142f21('0x15')]=this[_0x142f21('0x15')]?this[_0x142f21('0x15')][_0x142f21('0x18')](_0x61f3):_0x61f3();};const Migration=function(_0x3d6488){const _0x1beaf6=_0x18f5af;this[_0x1beaf6('0xc')]=_0x3d6488,this[_0x1beaf6('0xd')]=new Sequence();};Migration[_0x18f5af('0xa')][_0x18f5af('0x1a')]=function(_0x3a0fbc,_0x551bbd,_0x107ad4){const _0x1caaaa=this;this['sequence']['enqueue'](function(){const _0x5b490f=a974_0x158d;return _0x1caaaa[_0x5b490f('0xc')][_0x5b490f('0x1a')](_0x3a0fbc,_0x551bbd,_0x107ad4)['then'](function(){const _0x2a96bd=_0x5b490f;logger[_0x2a96bd('0x17')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x551bbd,_0x3a0fbc);})[_0x5b490f('0x8')](function(_0x26aa12){const _0x19b4e3=_0x5b490f;logger[_0x19b4e3('0x17')](JSON[_0x19b4e3('0x12')](_0x26aa12));});});},Migration[_0x18f5af('0xa')][_0x18f5af('0x5')]=function(_0x5cd634,_0x42199d,_0x3691ad){const _0x32ecfc=_0x18f5af,_0x4072b2=this;this['sequence'][_0x32ecfc('0xb')](function(){const _0x2c86da=_0x32ecfc;return _0x4072b2[_0x2c86da('0xc')][_0x2c86da('0x5')](_0x5cd634,_0x42199d,_0x3691ad)[_0x2c86da('0x1')](function(){const _0x1a842f=_0x2c86da;logger[_0x1a842f('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x42199d,_0x5cd634);})['catch'](function(_0x1a5a08){const _0x397ef6=_0x2c86da;logger[_0x397ef6('0x17')](JSON['stringify'](_0x1a5a08));});});},Migration[_0x18f5af('0xa')][_0x18f5af('0x1b')]=function(_0x281ba8){const _0x52f236=_0x18f5af,_0x5358d7=this;this[_0x52f236('0xd')][_0x52f236('0xb')](function(){const _0x196b60=_0x52f236;return _0x5358d7['queryInterface'][_0x196b60('0x1b')](_0x281ba8,{'force':!![]})[_0x196b60('0x1')](function(){const _0x2dc817=_0x196b60;logger[_0x2dc817('0x17')](_0x2dc817('0x2'),_0x281ba8);})['catch'](function(_0x42023e){const _0x5e4387=_0x196b60;logger[_0x5e4387('0x17')](JSON[_0x5e4387('0x12')](_0x42023e));});});},Migration[_0x18f5af('0xa')]['addIndex']=function(_0x2b0fb4,_0xda06bb,_0x3e6cfd){const _0x1e6dd1=_0x18f5af,_0x2f4e35=this;this[_0x1e6dd1('0xd')][_0x1e6dd1('0xb')](function(){const _0x30c758=_0x1e6dd1;return _0x2f4e35[_0x30c758('0xc')][_0x30c758('0x7')](_0x2b0fb4,_0xda06bb,{'indexName':_0x3e6cfd})[_0x30c758('0x1')](function(){const _0x3beccd=_0x30c758;logger[_0x3beccd('0x17')]('addIndex\x20%s\x20%s\x20%s',_0x2b0fb4,_0xda06bb['join'](','),_0x3e6cfd);})[_0x30c758('0x8')](function(_0x5572bd){const _0x37f756=_0x30c758;logger[_0x37f756('0x17')](JSON[_0x37f756('0x12')](_0x5572bd));});});},Migration[_0x18f5af('0xa')]['removeIndex']=function(_0x56d3ba,_0x15ca24){const _0x1a05e4=_0x18f5af,_0x367d62=this;this[_0x1a05e4('0xd')][_0x1a05e4('0xb')](function(){const _0x4c2c10=_0x1a05e4;return _0x367d62[_0x4c2c10('0xc')][_0x4c2c10('0x1c')](_0x56d3ba,_0x15ca24)[_0x4c2c10('0x1')](function(){const _0x45acc7=_0x4c2c10;logger[_0x45acc7('0x17')](_0x45acc7('0x4'),_0x56d3ba,_0x15ca24);})['catch'](function(_0xbb382b){const _0xf2b48f=_0x4c2c10;logger[_0xf2b48f('0x17')](JSON[_0xf2b48f('0x12')](_0xbb382b));});});},Migration[_0x18f5af('0xa')][_0x18f5af('0x13')]=function(_0x17f9a4){const _0xabf9d1=_0x18f5af,_0x1cc83b=this;this[_0xabf9d1('0xd')][_0xabf9d1('0xb')](function(){const _0x385775=_0xabf9d1;return _0x1cc83b[_0x385775('0xc')]['sequelize'][_0x385775('0x13')](_0x17f9a4)['then'](function(){const _0x3bd3e5=_0x385775;logger[_0x3bd3e5('0x17')]('query\x20%s',_0x17f9a4);})['catch'](function(_0x52ed54){const _0x575b6e=_0x385775;logger['info'](JSON[_0x575b6e('0x12')](_0x52ed54));});});},Migration['prototype']['removeColumn']=function(_0x31e3de,_0x4f29b4){const _0xf7195b=this;this['sequence']['enqueue'](function(){const _0x358db2=a974_0x158d;return _0xf7195b['queryInterface'][_0x358db2('0x6')](_0x31e3de,_0x4f29b4)[_0x358db2('0x1')](function(){const _0x951f30=_0x358db2;logger[_0x951f30('0x17')](_0x951f30('0x3'),_0x4f29b4,_0x31e3de);})[_0x358db2('0x8')](function(_0xfcd511){const _0x1a4b59=_0x358db2;logger['info'](util[_0x1a4b59('0x16')](_0xfcd511,{'showHidden':![],'depth':null}));});});},Migration[_0x18f5af('0xa')]['renameColumn']=function(_0x27fb19,_0x5b4ea9,_0x4760ac){const _0x58cf71=this;this['sequence']['enqueue'](function(){const _0x826142=a974_0x158d;return _0x58cf71['queryInterface']['renameColumn'](_0x27fb19,_0x5b4ea9,_0x4760ac)[_0x826142('0x1')](function(){const _0x799d80=_0x826142;logger[_0x799d80('0x17')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5b4ea9,_0x4760ac,_0x27fb19);})[_0x826142('0x8')](function(_0x32bcb3){const _0x292041=_0x826142;logger[_0x292041('0x17')](util[_0x292041('0x16')](_0x32bcb3,{'showHidden':![],'depth':null}));});});},Migration[_0x18f5af('0xa')][_0x18f5af('0x10')]=function(_0x2529b5){const _0x328af6=_0x18f5af;this[_0x328af6('0xd')]['enqueue'](function(){return _0x2529b5();});},module[_0x18f5af('0xe')]={'up':function(_0x3643c7,_0x4199b5){return new Promise(function(_0x29ce08){const _0x2827e8=a974_0x158d,_0x1f39f3=new Migration(_0x3643c7);_0x1f39f3[_0x2827e8('0x5')](_0x2827e8('0x9'),_0x2827e8('0xf'),{'type':_0x4199b5[_0x2827e8('0x0')]}),_0x1f39f3[_0x2827e8('0x10')](_0x29ce08);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.2.js b/server/migrations/2.3.2.js index a8dab08..68b8876 100644 --- a/server/migrations/2.3.2.js +++ b/server/migrations/2.3.2.js @@ -1 +1 @@ -const a975_0xe3da=['removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','migration','query\x20%s','then','final','settings','join','Removed\x20column\x20%s\x20from\x20%s','removeIndex','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','addColumn','changeColumn','table\x20dropped\x20%s','info','prototype','catch','addIndex\x20%s\x20%s\x20%s','dropTable','queryInterface','inspect','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','util','stringify','sequence','query','rtlSupport','finally','addIndex','enqueue','removeColumn','renameColumn','exports'];(function(_0x66c021,_0xe3dad7){const _0x4b5c54=function(_0x414029){while(--_0x414029){_0x66c021['push'](_0x66c021['shift']());}};_0x4b5c54(++_0xe3dad7);}(a975_0xe3da,0x17c));const a975_0x4b5c=function(_0x66c021,_0xe3dad7){_0x66c021=_0x66c021-0x0;let _0x4b5c54=a975_0xe3da[_0x66c021];return _0x4b5c54;};const _0x104708=a975_0x4b5c;'use strict';const util=require(_0x104708('0x1d')),logger=require('../config/logger')(_0x104708('0x7')),Sequence=function(){};Sequence[_0x104708('0x16')][_0x104708('0x1')]=function(_0x414029){const _0x4bb15d=_0x104708;this[_0x4bb15d('0xf')]=this[_0x4bb15d('0xf')]?this['tail'][_0x4bb15d('0x22')](_0x414029):_0x414029();};const Migration=function(_0x2a1804){const _0x4bbffd=_0x104708;this[_0x4bbffd('0x1a')]=_0x2a1804,this['sequence']=new Sequence();};Migration[_0x104708('0x16')][_0x104708('0x13')]=function(_0x55ea50,_0x5b3bed,_0xd518ad){const _0x35a818=this;this['sequence']['enqueue'](function(){const _0x150c9d=a975_0x4b5c;return _0x35a818[_0x150c9d('0x1a')]['changeColumn'](_0x55ea50,_0x5b3bed,_0xd518ad)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5b3bed,_0x55ea50);})[_0x150c9d('0x17')](function(_0x11064d){const _0x132b79=_0x150c9d;logger[_0x132b79('0x15')](JSON[_0x132b79('0x1e')](_0x11064d));});});},Migration[_0x104708('0x16')][_0x104708('0x12')]=function(_0x3fd882,_0x3173aa,_0x560ead){const _0x56719d=_0x104708,_0x1905ba=this;this[_0x56719d('0x1f')][_0x56719d('0x1')](function(){const _0x32c6e9=_0x56719d;return _0x1905ba[_0x32c6e9('0x1a')]['addColumn'](_0x3fd882,_0x3173aa,_0x560ead)[_0x32c6e9('0x9')](function(){const _0x287069=_0x32c6e9;logger[_0x287069('0x15')](_0x287069('0x6'),_0x3173aa,_0x3fd882);})['catch'](function(_0x36c0e4){const _0x29676b=_0x32c6e9;logger['info'](JSON[_0x29676b('0x1e')](_0x36c0e4));});});},Migration[_0x104708('0x16')][_0x104708('0x19')]=function(_0x5b7eaf){const _0x5036c9=_0x104708,_0x29ba8f=this;this[_0x5036c9('0x1f')][_0x5036c9('0x1')](function(){const _0x3403a5=_0x5036c9;return _0x29ba8f[_0x3403a5('0x1a')][_0x3403a5('0x19')](_0x5b7eaf,{'force':!![]})['then'](function(){const _0x41a8ed=_0x3403a5;logger[_0x41a8ed('0x15')](_0x41a8ed('0x14'),_0x5b7eaf);})['catch'](function(_0x17ebb1){const _0x20ded6=_0x3403a5;logger[_0x20ded6('0x15')](JSON['stringify'](_0x17ebb1));});});},Migration['prototype'][_0x104708('0x0')]=function(_0x2da97c,_0x14400e,_0x3bf831){const _0x20929b=_0x104708,_0x29a1cb=this;this[_0x20929b('0x1f')]['enqueue'](function(){const _0x1d3965=_0x20929b;return _0x29a1cb['queryInterface'][_0x1d3965('0x0')](_0x2da97c,_0x14400e,{'indexName':_0x3bf831})['then'](function(){const _0x5e237c=_0x1d3965;logger['info'](_0x5e237c('0x18'),_0x2da97c,_0x14400e[_0x5e237c('0xc')](','),_0x3bf831);})[_0x1d3965('0x17')](function(_0xa6d1f4){const _0x1f360c=_0x1d3965;logger[_0x1f360c('0x15')](JSON[_0x1f360c('0x1e')](_0xa6d1f4));});});},Migration['prototype'][_0x104708('0xe')]=function(_0x1e831a,_0x58e790){const _0x512c4a=_0x104708,_0x325ad8=this;this[_0x512c4a('0x1f')][_0x512c4a('0x1')](function(){const _0x202b69=_0x512c4a;return _0x325ad8[_0x202b69('0x1a')][_0x202b69('0xe')](_0x1e831a,_0x58e790)[_0x202b69('0x9')](function(){const _0x2a35ea=_0x202b69;logger['info'](_0x2a35ea('0x5'),_0x1e831a,_0x58e790);})['catch'](function(_0x28b812){const _0x4b59ac=_0x202b69;logger[_0x4b59ac('0x15')](JSON[_0x4b59ac('0x1e')](_0x28b812));});});},Migration[_0x104708('0x16')][_0x104708('0x20')]=function(_0x25ebb7){const _0x11c89d=_0x104708,_0x5879d3=this;this[_0x11c89d('0x1f')][_0x11c89d('0x1')](function(){const _0x2c94cc=_0x11c89d;return _0x5879d3[_0x2c94cc('0x1a')][_0x2c94cc('0x11')][_0x2c94cc('0x20')](_0x25ebb7)[_0x2c94cc('0x9')](function(){const _0x3d5781=_0x2c94cc;logger[_0x3d5781('0x15')](_0x3d5781('0x8'),_0x25ebb7);})[_0x2c94cc('0x17')](function(_0x120746){const _0x112762=_0x2c94cc;logger[_0x112762('0x15')](JSON['stringify'](_0x120746));});});},Migration[_0x104708('0x16')][_0x104708('0x2')]=function(_0x4ddae8,_0x4cd254){const _0xbabec6=_0x104708,_0x23f2ad=this;this[_0xbabec6('0x1f')][_0xbabec6('0x1')](function(){const _0x55dace=_0xbabec6;return _0x23f2ad[_0x55dace('0x1a')][_0x55dace('0x2')](_0x4ddae8,_0x4cd254)['then'](function(){const _0x1343f=_0x55dace;logger[_0x1343f('0x15')](_0x1343f('0xd'),_0x4cd254,_0x4ddae8);})[_0x55dace('0x17')](function(_0x2e46c7){const _0x21edba=_0x55dace;logger[_0x21edba('0x15')](util[_0x21edba('0x1b')](_0x2e46c7,{'showHidden':![],'depth':null}));});});},Migration[_0x104708('0x16')][_0x104708('0x3')]=function(_0x33da07,_0x11e566,_0x57a3e9){const _0x337f9a=_0x104708,_0xcaea08=this;this[_0x337f9a('0x1f')]['enqueue'](function(){const _0x3cd513=_0x337f9a;return _0xcaea08['queryInterface']['renameColumn'](_0x33da07,_0x11e566,_0x57a3e9)[_0x3cd513('0x9')](function(){const _0x7f0be2=_0x3cd513;logger[_0x7f0be2('0x15')](_0x7f0be2('0x10'),_0x11e566,_0x57a3e9,_0x33da07);})[_0x3cd513('0x17')](function(_0x2ff9b7){logger['info'](util['inspect'](_0x2ff9b7,{'showHidden':![],'depth':null}));});});},Migration[_0x104708('0x16')][_0x104708('0xa')]=function(_0x119024){const _0x3ae645=_0x104708;this[_0x3ae645('0x1f')][_0x3ae645('0x1')](function(){return _0x119024();});},module[_0x104708('0x4')]={'up':function(_0x36e017,_0x4b4f6){return new Promise(function(_0x861086){const _0x3f1cc4=a975_0x4b5c,_0xee8f77=new Migration(_0x36e017);_0xee8f77[_0x3f1cc4('0x20')]('ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;'),_0xee8f77[_0x3f1cc4('0x20')](_0x3f1cc4('0x1c')),_0xee8f77[_0x3f1cc4('0x12')](_0x3f1cc4('0xb'),_0x3f1cc4('0x21'),{'type':_0x4b4f6['BOOLEAN'],'defaultValue':![]}),_0xee8f77[_0x3f1cc4('0xa')](_0x861086);});},'down':function(){}}; \ No newline at end of file +const a975_0x2f7e=['sequence','ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;','query','BOOLEAN','../config/logger','settings','query\x20%s','queryInterface','catch','enqueue','renameColumn','inspect','table\x20dropped\x20%s','util','addIndex\x20%s\x20%s\x20%s','prototype','info','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','addColumn','removeIndex\x20%s\x20%s','removeColumn','then','addIndex','removeIndex','dropTable','Added\x20column\x20%s\x20to\x20%s','tail','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','final','changeColumn','stringify'];(function(_0x2b54f0,_0x2f7e60){const _0xacfd77=function(_0x3092de){while(--_0x3092de){_0x2b54f0['push'](_0x2b54f0['shift']());}};_0xacfd77(++_0x2f7e60);}(a975_0x2f7e,0x1d4));const a975_0xacfd=function(_0x2b54f0,_0x2f7e60){_0x2b54f0=_0x2b54f0-0x0;let _0xacfd77=a975_0x2f7e[_0x2b54f0];return _0xacfd77;};const _0x5893f2=a975_0xacfd;'use strict';const util=require(_0x5893f2('0x7')),logger=require(_0x5893f2('0x1f'))('migration'),Sequence=function(){};Sequence[_0x5893f2('0x9')]['enqueue']=function(_0x3092de){const _0x2f05b9=_0x5893f2;this[_0x2f05b9('0x16')]=this['tail']?this[_0x2f05b9('0x16')][_0x2f05b9('0xb')](_0x3092de):_0x3092de();};const Migration=function(_0x76eae5){const _0x3675b6=_0x5893f2;this[_0x3675b6('0x1')]=_0x76eae5,this[_0x3675b6('0x1b')]=new Sequence();};Migration[_0x5893f2('0x9')][_0x5893f2('0x19')]=function(_0x32ddbe,_0x2b1c24,_0x1eb4bb){const _0x168d01=_0x5893f2,_0x2feeca=this;this['sequence'][_0x168d01('0x3')](function(){const _0x371f0c=_0x168d01;return _0x2feeca['queryInterface'][_0x371f0c('0x19')](_0x32ddbe,_0x2b1c24,_0x1eb4bb)[_0x371f0c('0x11')](function(){const _0x2600d1=_0x371f0c;logger[_0x2600d1('0xa')](_0x2600d1('0xc'),_0x2b1c24,_0x32ddbe);})[_0x371f0c('0x2')](function(_0xec454d){const _0x35a2d8=_0x371f0c;logger[_0x35a2d8('0xa')](JSON[_0x35a2d8('0x1a')](_0xec454d));});});},Migration['prototype'][_0x5893f2('0xe')]=function(_0x2978b9,_0x433b4f,_0x8b820){const _0x1726da=_0x5893f2,_0x56fb36=this;this['sequence'][_0x1726da('0x3')](function(){const _0x26428d=_0x1726da;return _0x56fb36[_0x26428d('0x1')][_0x26428d('0xe')](_0x2978b9,_0x433b4f,_0x8b820)[_0x26428d('0x11')](function(){const _0x3c8d44=_0x26428d;logger[_0x3c8d44('0xa')](_0x3c8d44('0x15'),_0x433b4f,_0x2978b9);})[_0x26428d('0x2')](function(_0x45d93c){const _0xfd090f=_0x26428d;logger[_0xfd090f('0xa')](JSON[_0xfd090f('0x1a')](_0x45d93c));});});},Migration[_0x5893f2('0x9')]['dropTable']=function(_0x2fc12d){const _0x4c9700=_0x5893f2,_0x46d489=this;this[_0x4c9700('0x1b')][_0x4c9700('0x3')](function(){const _0x270afe=_0x4c9700;return _0x46d489[_0x270afe('0x1')][_0x270afe('0x14')](_0x2fc12d,{'force':!![]})[_0x270afe('0x11')](function(){const _0x4e052f=_0x270afe;logger[_0x4e052f('0xa')](_0x4e052f('0x6'),_0x2fc12d);})[_0x270afe('0x2')](function(_0x1a1ed0){const _0x5f0d56=_0x270afe;logger[_0x5f0d56('0xa')](JSON['stringify'](_0x1a1ed0));});});},Migration['prototype'][_0x5893f2('0x12')]=function(_0x542bbc,_0x20de80,_0x3fdc0b){const _0x429343=_0x5893f2,_0x105a67=this;this[_0x429343('0x1b')][_0x429343('0x3')](function(){const _0x379bea=_0x429343;return _0x105a67['queryInterface'][_0x379bea('0x12')](_0x542bbc,_0x20de80,{'indexName':_0x3fdc0b})[_0x379bea('0x11')](function(){const _0x3e6718=_0x379bea;logger[_0x3e6718('0xa')](_0x3e6718('0x8'),_0x542bbc,_0x20de80['join'](','),_0x3fdc0b);})['catch'](function(_0x386408){const _0x2f42c1=_0x379bea;logger[_0x2f42c1('0xa')](JSON[_0x2f42c1('0x1a')](_0x386408));});});},Migration[_0x5893f2('0x9')][_0x5893f2('0x13')]=function(_0x5b0ca4,_0x347585){const _0xa6cdbc=_0x5893f2,_0x5f1949=this;this[_0xa6cdbc('0x1b')][_0xa6cdbc('0x3')](function(){const _0x5c7eec=_0xa6cdbc;return _0x5f1949['queryInterface'][_0x5c7eec('0x13')](_0x5b0ca4,_0x347585)[_0x5c7eec('0x11')](function(){const _0x1fde08=_0x5c7eec;logger[_0x1fde08('0xa')](_0x1fde08('0xf'),_0x5b0ca4,_0x347585);})[_0x5c7eec('0x2')](function(_0x421868){const _0x381d98=_0x5c7eec;logger[_0x381d98('0xa')](JSON[_0x381d98('0x1a')](_0x421868));});});},Migration[_0x5893f2('0x9')][_0x5893f2('0x1d')]=function(_0x12d342){const _0x81277=_0x5893f2,_0x17c955=this;this[_0x81277('0x1b')][_0x81277('0x3')](function(){const _0x387506=_0x81277;return _0x17c955['queryInterface'][_0x387506('0xd')]['query'](_0x12d342)[_0x387506('0x11')](function(){const _0x4d6846=_0x387506;logger[_0x4d6846('0xa')](_0x4d6846('0x0'),_0x12d342);})['catch'](function(_0x180c53){const _0x36d489=_0x387506;logger[_0x36d489('0xa')](JSON['stringify'](_0x180c53));});});},Migration[_0x5893f2('0x9')][_0x5893f2('0x10')]=function(_0x187d30,_0x189c64){const _0x1efd18=_0x5893f2,_0x1147a9=this;this[_0x1efd18('0x1b')][_0x1efd18('0x3')](function(){const _0x5bb80e=_0x1efd18;return _0x1147a9['queryInterface'][_0x5bb80e('0x10')](_0x187d30,_0x189c64)[_0x5bb80e('0x11')](function(){const _0x191050=_0x5bb80e;logger[_0x191050('0xa')]('Removed\x20column\x20%s\x20from\x20%s',_0x189c64,_0x187d30);})[_0x5bb80e('0x2')](function(_0x57c5c5){logger['info'](util['inspect'](_0x57c5c5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5893f2('0x4')]=function(_0x29f5b2,_0xbd5845,_0x238c42){const _0x2527c0=_0x5893f2,_0x370ebc=this;this[_0x2527c0('0x1b')]['enqueue'](function(){const _0x51a61=_0x2527c0;return _0x370ebc['queryInterface'][_0x51a61('0x4')](_0x29f5b2,_0xbd5845,_0x238c42)[_0x51a61('0x11')](function(){const _0x9a9d10=_0x51a61;logger[_0x9a9d10('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xbd5845,_0x238c42,_0x29f5b2);})[_0x51a61('0x2')](function(_0x2f73c3){const _0x5d8d97=_0x51a61;logger[_0x5d8d97('0xa')](util[_0x5d8d97('0x5')](_0x2f73c3,{'showHidden':![],'depth':null}));});});},Migration[_0x5893f2('0x9')][_0x5893f2('0x18')]=function(_0x3ac65a){const _0x41a242=_0x5893f2;this[_0x41a242('0x1b')]['enqueue'](function(){return _0x3ac65a();});},module['exports']={'up':function(_0x422528,_0x5f0ac0){return new Promise(function(_0x5433c7){const _0x3001cf=a975_0xacfd,_0x4b4145=new Migration(_0x422528);_0x4b4145[_0x3001cf('0x1d')](_0x3001cf('0x1c')),_0x4b4145['query'](_0x3001cf('0x17')),_0x4b4145[_0x3001cf('0xe')](_0x3001cf('0x20'),'rtlSupport',{'type':_0x5f0ac0[_0x3001cf('0x1e')],'defaultValue':![]}),_0x4b4145[_0x3001cf('0x18')](_0x5433c7);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.3.js b/server/migrations/2.3.3.js index febb49b..70cc646 100644 --- a/server/migrations/2.3.3.js +++ b/server/migrations/2.3.3.js @@ -1 +1 @@ -const a976_0x585b=['tail','addColumn','fax_applications','TEXT','info','catch','stringify','chat_applications','openchannel_applications','Added\x20column\x20%s\x20to\x20%s','enqueue','sequelize','appdata','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','Removed\x20column\x20%s\x20from\x20%s','removeColumn','sequence','addIndex\x20%s\x20%s\x20%s','queryInterface','../config/logger','removeIndex','then','sms_applications','changeColumn','query\x20%s','join','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','final','renameColumn','query','finally'];(function(_0x396563,_0x585bc2){const _0x38e921=function(_0x1543cd){while(--_0x1543cd){_0x396563['push'](_0x396563['shift']());}};_0x38e921(++_0x585bc2);}(a976_0x585b,0xdf));const a976_0x38e9=function(_0x396563,_0x585bc2){_0x396563=_0x396563-0x0;let _0x38e921=a976_0x585b[_0x396563];return _0x38e921;};const _0x2ed982=a976_0x38e9;'use strict';const util=require('util'),logger=require(_0x2ed982('0x9'))('migration'),Sequence=function(){};Sequence[_0x2ed982('0x3')]['enqueue']=function(_0x1543cd){const _0x1a7fc1=_0x2ed982;this[_0x1a7fc1('0x16')]=this[_0x1a7fc1('0x16')]?this[_0x1a7fc1('0x16')][_0x1a7fc1('0x15')](_0x1543cd):_0x1543cd();};const Migration=function(_0x17e8d3){const _0xb68d6b=_0x2ed982;this['queryInterface']=_0x17e8d3,this[_0xb68d6b('0x6')]=new Sequence();};Migration[_0x2ed982('0x3')][_0x2ed982('0xd')]=function(_0x12ae2a,_0x2e3ac6,_0x259c4a){const _0x157640=_0x2ed982,_0x1341d5=this;this['sequence'][_0x157640('0x20')](function(){const _0x5d763c=_0x157640;return _0x1341d5['queryInterface'][_0x5d763c('0xd')](_0x12ae2a,_0x2e3ac6,_0x259c4a)[_0x5d763c('0xb')](function(){const _0xc3012b=_0x5d763c;logger[_0xc3012b('0x1a')](_0xc3012b('0x11'),_0x2e3ac6,_0x12ae2a);})[_0x5d763c('0x1b')](function(_0x5c28f1){const _0x45d981=_0x5d763c;logger['info'](JSON[_0x45d981('0x1c')](_0x5c28f1));});});},Migration[_0x2ed982('0x3')][_0x2ed982('0x17')]=function(_0x569296,_0x2e96f7,_0x5d908c){const _0x2c7f49=_0x2ed982,_0x1c55d6=this;this['sequence'][_0x2c7f49('0x20')](function(){const _0x23b2d3=_0x2c7f49;return _0x1c55d6['queryInterface'][_0x23b2d3('0x17')](_0x569296,_0x2e96f7,_0x5d908c)[_0x23b2d3('0xb')](function(){const _0x508b18=_0x23b2d3;logger[_0x508b18('0x1a')](_0x508b18('0x1f'),_0x2e96f7,_0x569296);})['catch'](function(_0x5f2745){const _0xd5bfe2=_0x23b2d3;logger['info'](JSON[_0xd5bfe2('0x1c')](_0x5f2745));});});},Migration['prototype'][_0x2ed982('0x10')]=function(_0x29d268){const _0xac3541=_0x2ed982,_0x201d4a=this;this[_0xac3541('0x6')][_0xac3541('0x20')](function(){const _0x13dd66=_0xac3541;return _0x201d4a[_0x13dd66('0x8')][_0x13dd66('0x10')](_0x29d268,{'force':!![]})['then'](function(){const _0x1b0b7b=_0x13dd66;logger[_0x1b0b7b('0x1a')]('table\x20dropped\x20%s',_0x29d268);})['catch'](function(_0x13fd40){const _0xef16c=_0x13dd66;logger[_0xef16c('0x1a')](JSON[_0xef16c('0x1c')](_0x13fd40));});});},Migration[_0x2ed982('0x3')][_0x2ed982('0x1')]=function(_0x2a8b87,_0x486144,_0x488f13){const _0x3621fd=this;this['sequence']['enqueue'](function(){const _0xe3d516=a976_0x38e9;return _0x3621fd['queryInterface'][_0xe3d516('0x1')](_0x2a8b87,_0x486144,{'indexName':_0x488f13})[_0xe3d516('0xb')](function(){const _0x4f5a2a=_0xe3d516;logger['info'](_0x4f5a2a('0x7'),_0x2a8b87,_0x486144[_0x4f5a2a('0xf')](','),_0x488f13);})['catch'](function(_0x49b4f8){const _0x214f5f=_0xe3d516;logger['info'](JSON[_0x214f5f('0x1c')](_0x49b4f8));});});},Migration[_0x2ed982('0x3')][_0x2ed982('0xa')]=function(_0x20817e,_0x4bc063){const _0x2d4aec=_0x2ed982,_0x49e511=this;this[_0x2d4aec('0x6')][_0x2d4aec('0x20')](function(){const _0x5e8e53=_0x2d4aec;return _0x49e511[_0x5e8e53('0x8')][_0x5e8e53('0xa')](_0x20817e,_0x4bc063)[_0x5e8e53('0xb')](function(){const _0x4ac314=_0x5e8e53;logger[_0x4ac314('0x1a')]('removeIndex\x20%s\x20%s',_0x20817e,_0x4bc063);})[_0x5e8e53('0x1b')](function(_0x37dc2f){const _0x7a1e07=_0x5e8e53;logger[_0x7a1e07('0x1a')](JSON[_0x7a1e07('0x1c')](_0x37dc2f));});});},Migration['prototype'][_0x2ed982('0x14')]=function(_0x24d044){const _0x5f696d=_0x2ed982,_0x4ab019=this;this[_0x5f696d('0x6')][_0x5f696d('0x20')](function(){const _0x4f3ed5=_0x5f696d;return _0x4ab019[_0x4f3ed5('0x8')][_0x4f3ed5('0x21')][_0x4f3ed5('0x14')](_0x24d044)[_0x4f3ed5('0xb')](function(){const _0x3de490=_0x4f3ed5;logger['info'](_0x3de490('0xe'),_0x24d044);})[_0x4f3ed5('0x1b')](function(_0xd15762){const _0x2bed99=_0x4f3ed5;logger[_0x2bed99('0x1a')](JSON[_0x2bed99('0x1c')](_0xd15762));});});},Migration[_0x2ed982('0x3')][_0x2ed982('0x5')]=function(_0x391a79,_0x57bcc8){const _0x1d7caa=_0x2ed982,_0x4c4182=this;this[_0x1d7caa('0x6')][_0x1d7caa('0x20')](function(){const _0x50926b=_0x1d7caa;return _0x4c4182[_0x50926b('0x8')][_0x50926b('0x5')](_0x391a79,_0x57bcc8)[_0x50926b('0xb')](function(){const _0x1aa596=_0x50926b;logger['info'](_0x1aa596('0x4'),_0x57bcc8,_0x391a79);})[_0x50926b('0x1b')](function(_0x50b2b7){const _0x3bc609=_0x50926b;logger[_0x3bc609('0x1a')](util['inspect'](_0x50b2b7,{'showHidden':![],'depth':null}));});});},Migration[_0x2ed982('0x3')][_0x2ed982('0x13')]=function(_0x314dc2,_0x4df082,_0x271d65){const _0x39b56b=_0x2ed982,_0xb90e93=this;this[_0x39b56b('0x6')]['enqueue'](function(){const _0x2613cf=_0x39b56b;return _0xb90e93['queryInterface'][_0x2613cf('0x13')](_0x314dc2,_0x4df082,_0x271d65)[_0x2613cf('0xb')](function(){const _0x2885bc=_0x2613cf;logger['info'](_0x2885bc('0x2'),_0x4df082,_0x271d65,_0x314dc2);})['catch'](function(_0x31e9d1){logger['info'](util['inspect'](_0x31e9d1,{'showHidden':![],'depth':null}));});});},Migration[_0x2ed982('0x3')][_0x2ed982('0x12')]=function(_0x4c11a9){const _0x38efa8=_0x2ed982;this['sequence'][_0x38efa8('0x20')](function(){return _0x4c11a9();});},module['exports']={'up':function(_0x436bd2,_0x462df6){return new Promise(function(_0x1e25c6){const _0x192fa8=a976_0x38e9,_0x3c1f71=new Migration(_0x436bd2);_0x3c1f71[_0x192fa8('0x14')](_0x192fa8('0x0')),_0x3c1f71[_0x192fa8('0xd')](_0x192fa8('0x1d'),_0x192fa8('0x22'),{'type':_0x462df6[_0x192fa8('0x19')]()}),_0x3c1f71[_0x192fa8('0xd')](_0x192fa8('0x18'),_0x192fa8('0x22'),{'type':_0x462df6[_0x192fa8('0x19')]()}),_0x3c1f71[_0x192fa8('0xd')]('mail_applications',_0x192fa8('0x22'),{'type':_0x462df6['TEXT']()}),_0x3c1f71[_0x192fa8('0xd')](_0x192fa8('0x1e'),_0x192fa8('0x22'),{'type':_0x462df6[_0x192fa8('0x19')]()}),_0x3c1f71[_0x192fa8('0xd')](_0x192fa8('0xc'),_0x192fa8('0x22'),{'type':_0x462df6['TEXT']()}),_0x3c1f71['final'](_0x1e25c6);});},'down':function(){}}; \ No newline at end of file +const a976_0x29ea=['renameColumn','mail_applications','TEXT','enqueue','then','addIndex','finally','addColumn','exports','join','sequelize','addIndex\x20%s\x20%s\x20%s','fax_applications','migration','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','query\x20%s','final','info','../config/logger','chat_applications','removeIndex\x20%s\x20%s','dropTable','tail','appdata','sequence','catch','query','sms_applications','stringify','inspect','table\x20dropped\x20%s','prototype','Removed\x20column\x20%s\x20from\x20%s','changeColumn','queryInterface','removeColumn','Added\x20column\x20%s\x20to\x20%s'];(function(_0x4afa5c,_0x29ea49){const _0x3fbf55=function(_0x286c6c){while(--_0x286c6c){_0x4afa5c['push'](_0x4afa5c['shift']());}};_0x3fbf55(++_0x29ea49);}(a976_0x29ea,0x155));const a976_0x3fbf=function(_0x4afa5c,_0x29ea49){_0x4afa5c=_0x4afa5c-0x0;let _0x3fbf55=a976_0x29ea[_0x4afa5c];return _0x3fbf55;};const _0x4c5303=a976_0x3fbf;'use strict';const util=require('util'),logger=require(_0x4c5303('0xa'))(_0x4c5303('0x5')),Sequence=function(){};Sequence[_0x4c5303('0x17')][_0x4c5303('0x20')]=function(_0x286c6c){const _0x351bc7=_0x4c5303;this[_0x351bc7('0xe')]=this[_0x351bc7('0xe')]?this[_0x351bc7('0xe')][_0x351bc7('0x23')](_0x286c6c):_0x286c6c();};const Migration=function(_0x68c474){const _0x4b9b82=_0x4c5303;this[_0x4b9b82('0x1a')]=_0x68c474,this[_0x4b9b82('0x10')]=new Sequence();};Migration['prototype'][_0x4c5303('0x19')]=function(_0x439d96,_0x564d32,_0x56421f){const _0x42ee26=_0x4c5303,_0x3c508b=this;this[_0x42ee26('0x10')][_0x42ee26('0x20')](function(){const _0x55ddc9=_0x42ee26;return _0x3c508b['queryInterface'][_0x55ddc9('0x19')](_0x439d96,_0x564d32,_0x56421f)[_0x55ddc9('0x21')](function(){const _0x38a3d4=_0x55ddc9;logger[_0x38a3d4('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x564d32,_0x439d96);})[_0x55ddc9('0x11')](function(_0x2424ca){logger['info'](JSON['stringify'](_0x2424ca));});});},Migration[_0x4c5303('0x17')][_0x4c5303('0x24')]=function(_0x1204a5,_0x47d0ca,_0x4cef93){const _0x1274d5=_0x4c5303,_0xbfce43=this;this[_0x1274d5('0x10')]['enqueue'](function(){const _0x3c1152=_0x1274d5;return _0xbfce43[_0x3c1152('0x1a')]['addColumn'](_0x1204a5,_0x47d0ca,_0x4cef93)[_0x3c1152('0x21')](function(){const _0x32b2fe=_0x3c1152;logger[_0x32b2fe('0x9')](_0x32b2fe('0x1c'),_0x47d0ca,_0x1204a5);})[_0x3c1152('0x11')](function(_0x52547f){const _0x18dbce=_0x3c1152;logger['info'](JSON[_0x18dbce('0x14')](_0x52547f));});});},Migration[_0x4c5303('0x17')][_0x4c5303('0xd')]=function(_0x273089){const _0x51d1c7=_0x4c5303,_0x544e0b=this;this[_0x51d1c7('0x10')][_0x51d1c7('0x20')](function(){const _0x613945=_0x51d1c7;return _0x544e0b[_0x613945('0x1a')][_0x613945('0xd')](_0x273089,{'force':!![]})[_0x613945('0x21')](function(){const _0x4ac71f=_0x613945;logger[_0x4ac71f('0x9')](_0x4ac71f('0x16'),_0x273089);})[_0x613945('0x11')](function(_0x18ed3d){const _0x35729b=_0x613945;logger[_0x35729b('0x9')](JSON[_0x35729b('0x14')](_0x18ed3d));});});},Migration[_0x4c5303('0x17')][_0x4c5303('0x22')]=function(_0x3d8191,_0x972f39,_0x2350e3){const _0x8469fd=_0x4c5303,_0x29af41=this;this['sequence'][_0x8469fd('0x20')](function(){const _0x2ca00e=_0x8469fd;return _0x29af41['queryInterface'][_0x2ca00e('0x22')](_0x3d8191,_0x972f39,{'indexName':_0x2350e3})[_0x2ca00e('0x21')](function(){const _0x40d0f0=_0x2ca00e;logger[_0x40d0f0('0x9')](_0x40d0f0('0x3'),_0x3d8191,_0x972f39[_0x40d0f0('0x1')](','),_0x2350e3);})[_0x2ca00e('0x11')](function(_0x5b7311){const _0x194ee2=_0x2ca00e;logger[_0x194ee2('0x9')](JSON[_0x194ee2('0x14')](_0x5b7311));});});},Migration[_0x4c5303('0x17')]['removeIndex']=function(_0x2e07ed,_0x91ed94){const _0x52a0c8=_0x4c5303,_0x49cb9b=this;this[_0x52a0c8('0x10')][_0x52a0c8('0x20')](function(){const _0x2700f1=_0x52a0c8;return _0x49cb9b[_0x2700f1('0x1a')]['removeIndex'](_0x2e07ed,_0x91ed94)[_0x2700f1('0x21')](function(){const _0x25b90e=_0x2700f1;logger['info'](_0x25b90e('0xc'),_0x2e07ed,_0x91ed94);})['catch'](function(_0x4fb529){const _0x198372=_0x2700f1;logger[_0x198372('0x9')](JSON[_0x198372('0x14')](_0x4fb529));});});},Migration[_0x4c5303('0x17')]['query']=function(_0x250c45){const _0x3b1917=_0x4c5303,_0x412ab5=this;this[_0x3b1917('0x10')]['enqueue'](function(){const _0x5bfaf3=_0x3b1917;return _0x412ab5[_0x5bfaf3('0x1a')][_0x5bfaf3('0x2')][_0x5bfaf3('0x12')](_0x250c45)[_0x5bfaf3('0x21')](function(){const _0x49c428=_0x5bfaf3;logger['info'](_0x49c428('0x7'),_0x250c45);})[_0x5bfaf3('0x11')](function(_0x17d3c5){const _0x980baf=_0x5bfaf3;logger[_0x980baf('0x9')](JSON[_0x980baf('0x14')](_0x17d3c5));});});},Migration[_0x4c5303('0x17')][_0x4c5303('0x1b')]=function(_0x940173,_0x22dc84){const _0x33982d=_0x4c5303,_0x4ee371=this;this[_0x33982d('0x10')][_0x33982d('0x20')](function(){const _0x578b71=_0x33982d;return _0x4ee371[_0x578b71('0x1a')][_0x578b71('0x1b')](_0x940173,_0x22dc84)[_0x578b71('0x21')](function(){const _0x58b7cb=_0x578b71;logger[_0x58b7cb('0x9')](_0x58b7cb('0x18'),_0x22dc84,_0x940173);})[_0x578b71('0x11')](function(_0x7300a5){const _0x909208=_0x578b71;logger[_0x909208('0x9')](util[_0x909208('0x15')](_0x7300a5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4c5303('0x1d')]=function(_0x2c9994,_0x2e25e4,_0x7ec45f){const _0x1e75fc=_0x4c5303,_0x4ff874=this;this[_0x1e75fc('0x10')][_0x1e75fc('0x20')](function(){const _0x4b1cd9=_0x1e75fc;return _0x4ff874[_0x4b1cd9('0x1a')][_0x4b1cd9('0x1d')](_0x2c9994,_0x2e25e4,_0x7ec45f)['then'](function(){const _0x151379=_0x4b1cd9;logger[_0x151379('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2e25e4,_0x7ec45f,_0x2c9994);})[_0x4b1cd9('0x11')](function(_0x47326e){const _0xf73379=_0x4b1cd9;logger['info'](util[_0xf73379('0x15')](_0x47326e,{'showHidden':![],'depth':null}));});});},Migration[_0x4c5303('0x17')][_0x4c5303('0x8')]=function(_0x11d9a5){const _0x26839f=_0x4c5303;this[_0x26839f('0x10')][_0x26839f('0x20')](function(){return _0x11d9a5();});},module[_0x4c5303('0x0')]={'up':function(_0x1a6c11,_0x2285f0){return new Promise(function(_0x1c94e9){const _0x1e2185=a976_0x3fbf,_0x3feb04=new Migration(_0x1a6c11);_0x3feb04[_0x1e2185('0x12')](_0x1e2185('0x6')),_0x3feb04[_0x1e2185('0x19')](_0x1e2185('0xb'),_0x1e2185('0xf'),{'type':_0x2285f0['TEXT']()}),_0x3feb04[_0x1e2185('0x19')](_0x1e2185('0x4'),'appdata',{'type':_0x2285f0[_0x1e2185('0x1f')]()}),_0x3feb04[_0x1e2185('0x19')](_0x1e2185('0x1e'),_0x1e2185('0xf'),{'type':_0x2285f0[_0x1e2185('0x1f')]()}),_0x3feb04[_0x1e2185('0x19')]('openchannel_applications',_0x1e2185('0xf'),{'type':_0x2285f0['TEXT']()}),_0x3feb04[_0x1e2185('0x19')](_0x1e2185('0x13'),_0x1e2185('0xf'),{'type':_0x2285f0[_0x1e2185('0x1f')]()}),_0x3feb04[_0x1e2185('0x8')](_0x1c94e9);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.4.js b/server/migrations/2.3.4.js index 4762513..b842661 100644 --- a/server/migrations/2.3.4.js +++ b/server/migrations/2.3.4.js @@ -1 +1 @@ -const a977_0x6d38=['join','catch','query','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','then','../config/logger','sequence','info','renameColumn','Added\x20column\x20%s\x20to\x20%s','sequelize','tail','addIndex','exports','stringify','inspect','queryInterface','enqueue','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','addColumn','removeColumn','addIndex\x20%s\x20%s\x20%s','util','prototype','changeColumn','finally','query\x20%s','final','removeIndex'];(function(_0x27823e,_0x6d38bc){const _0x58a383=function(_0x2c0876){while(--_0x2c0876){_0x27823e['push'](_0x27823e['shift']());}};_0x58a383(++_0x6d38bc);}(a977_0x6d38,0x153));const a977_0x58a3=function(_0x27823e,_0x6d38bc){_0x27823e=_0x27823e-0x0;let _0x58a383=a977_0x6d38[_0x27823e];return _0x58a383;};const _0x35919e=a977_0x58a3;'use strict';const util=require(_0x35919e('0x6')),logger=require(_0x35919e('0x14'))(_0x35919e('0x12')),Sequence=function(){};Sequence[_0x35919e('0x7')]['enqueue']=function(_0x2c0876){const _0x43fe21=_0x35919e;this['tail']=this[_0x43fe21('0x1a')]?this[_0x43fe21('0x1a')][_0x43fe21('0x9')](_0x2c0876):_0x2c0876();};const Migration=function(_0x5c3854){const _0x14bd6f=_0x35919e;this[_0x14bd6f('0x1f')]=_0x5c3854,this[_0x14bd6f('0x15')]=new Sequence();};Migration[_0x35919e('0x7')][_0x35919e('0x8')]=function(_0x3bcdb5,_0x2cc76e,_0x23f835){const _0x3d0187=this;this['sequence']['enqueue'](function(){const _0x1bbb62=a977_0x58a3;return _0x3d0187['queryInterface']['changeColumn'](_0x3bcdb5,_0x2cc76e,_0x23f835)[_0x1bbb62('0x13')](function(){const _0x3ff5e1=_0x1bbb62;logger[_0x3ff5e1('0x16')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2cc76e,_0x3bcdb5);})[_0x1bbb62('0xe')](function(_0x3d93ee){const _0x1fa24d=_0x1bbb62;logger[_0x1fa24d('0x16')](JSON[_0x1fa24d('0x1d')](_0x3d93ee));});});},Migration[_0x35919e('0x7')]['addColumn']=function(_0x5c8fe1,_0x14d413,_0x450fcf){const _0x18d6af=_0x35919e,_0x2aa4a9=this;this[_0x18d6af('0x15')]['enqueue'](function(){const _0x519816=_0x18d6af;return _0x2aa4a9[_0x519816('0x1f')][_0x519816('0x3')](_0x5c8fe1,_0x14d413,_0x450fcf)[_0x519816('0x13')](function(){const _0x5be98e=_0x519816;logger[_0x5be98e('0x16')](_0x5be98e('0x18'),_0x14d413,_0x5c8fe1);})[_0x519816('0xe')](function(_0x5c3bdf){const _0x85e163=_0x519816;logger[_0x85e163('0x16')](JSON[_0x85e163('0x1d')](_0x5c3bdf));});});},Migration[_0x35919e('0x7')][_0x35919e('0x10')]=function(_0x212938){const _0x512d2d=_0x35919e,_0x5f7ed1=this;this[_0x512d2d('0x15')][_0x512d2d('0x0')](function(){const _0x2f08e8=_0x512d2d;return _0x5f7ed1[_0x2f08e8('0x1f')]['dropTable'](_0x212938,{'force':!![]})[_0x2f08e8('0x13')](function(){const _0x25f0bf=_0x2f08e8;logger[_0x25f0bf('0x16')](_0x25f0bf('0x1'),_0x212938);})[_0x2f08e8('0xe')](function(_0x2b2931){const _0x5c07dc=_0x2f08e8;logger[_0x5c07dc('0x16')](JSON['stringify'](_0x2b2931));});});},Migration[_0x35919e('0x7')][_0x35919e('0x1b')]=function(_0x6ad177,_0x5a4477,_0x5e7a57){const _0x4f481b=this;this['sequence']['enqueue'](function(){const _0x3a3c8b=a977_0x58a3;return _0x4f481b[_0x3a3c8b('0x1f')][_0x3a3c8b('0x1b')](_0x6ad177,_0x5a4477,{'indexName':_0x5e7a57})[_0x3a3c8b('0x13')](function(){const _0x556e72=_0x3a3c8b;logger[_0x556e72('0x16')](_0x556e72('0x5'),_0x6ad177,_0x5a4477[_0x556e72('0xd')](','),_0x5e7a57);})[_0x3a3c8b('0xe')](function(_0x5401da){const _0x24cefb=_0x3a3c8b;logger[_0x24cefb('0x16')](JSON[_0x24cefb('0x1d')](_0x5401da));});});},Migration['prototype'][_0x35919e('0xc')]=function(_0x2d6985,_0x3069c0){const _0x118e3a=_0x35919e,_0x559ce7=this;this[_0x118e3a('0x15')][_0x118e3a('0x0')](function(){const _0x128a51=_0x118e3a;return _0x559ce7[_0x128a51('0x1f')][_0x128a51('0xc')](_0x2d6985,_0x3069c0)[_0x128a51('0x13')](function(){const _0x205747=_0x128a51;logger[_0x205747('0x16')](_0x205747('0x2'),_0x2d6985,_0x3069c0);})[_0x128a51('0xe')](function(_0x428aa3){const _0x15913b=_0x128a51;logger[_0x15913b('0x16')](JSON[_0x15913b('0x1d')](_0x428aa3));});});},Migration['prototype'][_0x35919e('0xf')]=function(_0x3f74af){const _0x280da9=_0x35919e,_0x5d4739=this;this['sequence'][_0x280da9('0x0')](function(){const _0x556742=_0x280da9;return _0x5d4739['queryInterface'][_0x556742('0x19')]['query'](_0x3f74af)[_0x556742('0x13')](function(){const _0x30e362=_0x556742;logger['info'](_0x30e362('0xa'),_0x3f74af);})[_0x556742('0xe')](function(_0x451fcf){const _0x46debd=_0x556742;logger[_0x46debd('0x16')](JSON[_0x46debd('0x1d')](_0x451fcf));});});},Migration['prototype']['removeColumn']=function(_0x24292b,_0x5db9f8){const _0x105886=_0x35919e,_0x18d5ae=this;this[_0x105886('0x15')]['enqueue'](function(){const _0x59e101=_0x105886;return _0x18d5ae[_0x59e101('0x1f')][_0x59e101('0x4')](_0x24292b,_0x5db9f8)[_0x59e101('0x13')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x5db9f8,_0x24292b);})[_0x59e101('0xe')](function(_0x5edb0a){const _0xd93fe9=_0x59e101;logger['info'](util[_0xd93fe9('0x1e')](_0x5edb0a,{'showHidden':![],'depth':null}));});});},Migration[_0x35919e('0x7')][_0x35919e('0x17')]=function(_0x376839,_0x270179,_0x41b4d8){const _0x4471cd=_0x35919e,_0x3570f7=this;this[_0x4471cd('0x15')]['enqueue'](function(){const _0x2b8e0e=_0x4471cd;return _0x3570f7['queryInterface'][_0x2b8e0e('0x17')](_0x376839,_0x270179,_0x41b4d8)['then'](function(){const _0x1881b5=_0x2b8e0e;logger[_0x1881b5('0x16')](_0x1881b5('0x11'),_0x270179,_0x41b4d8,_0x376839);})[_0x2b8e0e('0xe')](function(_0x558daf){const _0x7012f=_0x2b8e0e;logger['info'](util[_0x7012f('0x1e')](_0x558daf,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x35919e('0xb')]=function(_0x30417c){const _0x112e30=_0x35919e;this[_0x112e30('0x15')][_0x112e30('0x0')](function(){return _0x30417c();});},module[_0x35919e('0x1c')]={'up':function(_0x438ae9){return new Promise(function(_0x383cc1){const _0x24ef32=a977_0x58a3,_0x160d8c=new Migration(_0x438ae9);_0x160d8c[_0x24ef32('0xb')](_0x383cc1);});},'down':function(){}}; \ No newline at end of file +const a977_0x3ac7=['sequence','Removed\x20column\x20%s\x20from\x20%s','inspect','removeIndex','tail','addColumn','sequelize','exports','join','../config/logger','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','enqueue','then','finally','changeColumn','stringify','migration','info','addIndex','final','dropTable','query','renameColumn','query\x20%s','prototype','removeColumn','queryInterface'];(function(_0x57ff3f,_0x3ac705){const _0x2f8365=function(_0x12b3c0){while(--_0x12b3c0){_0x57ff3f['push'](_0x57ff3f['shift']());}};_0x2f8365(++_0x3ac705);}(a977_0x3ac7,0x8b));const a977_0x2f83=function(_0x57ff3f,_0x3ac705){_0x57ff3f=_0x57ff3f-0x0;let _0x2f8365=a977_0x3ac7[_0x57ff3f];return _0x2f8365;};const _0x19d7a7=a977_0x2f83;'use strict';const util=require('util'),logger=require(_0x19d7a7('0x19'))(_0x19d7a7('0x5')),Sequence=function(){};Sequence[_0x19d7a7('0xd')]['enqueue']=function(_0x12b3c0){const _0x434d84=_0x19d7a7;this[_0x434d84('0x14')]=this[_0x434d84('0x14')]?this[_0x434d84('0x14')][_0x434d84('0x2')](_0x12b3c0):_0x12b3c0();};const Migration=function(_0x284811){const _0x5b5ce2=_0x19d7a7;this[_0x5b5ce2('0xf')]=_0x284811,this[_0x5b5ce2('0x10')]=new Sequence();};Migration[_0x19d7a7('0xd')][_0x19d7a7('0x3')]=function(_0x3216f3,_0x1ce21f,_0x1ffad7){const _0x2bf7ee=_0x19d7a7,_0x5551c2=this;this[_0x2bf7ee('0x10')]['enqueue'](function(){const _0x5c2368=_0x2bf7ee;return _0x5551c2[_0x5c2368('0xf')][_0x5c2368('0x3')](_0x3216f3,_0x1ce21f,_0x1ffad7)[_0x5c2368('0x1')](function(){const _0x76b21e=_0x5c2368;logger[_0x76b21e('0x6')](_0x76b21e('0x1b'),_0x1ce21f,_0x3216f3);})['catch'](function(_0x42edab){const _0x3424e3=_0x5c2368;logger[_0x3424e3('0x6')](JSON[_0x3424e3('0x4')](_0x42edab));});});},Migration[_0x19d7a7('0xd')][_0x19d7a7('0x15')]=function(_0x11a3e5,_0x3ed3f6,_0x11fe23){const _0x5aff86=_0x19d7a7,_0x1d841c=this;this[_0x5aff86('0x10')][_0x5aff86('0x0')](function(){const _0x42e35a=_0x5aff86;return _0x1d841c[_0x42e35a('0xf')][_0x42e35a('0x15')](_0x11a3e5,_0x3ed3f6,_0x11fe23)[_0x42e35a('0x1')](function(){const _0x9a16e5=_0x42e35a;logger[_0x9a16e5('0x6')]('Added\x20column\x20%s\x20to\x20%s',_0x3ed3f6,_0x11a3e5);})['catch'](function(_0x49bd8b){const _0x5e77c9=_0x42e35a;logger[_0x5e77c9('0x6')](JSON['stringify'](_0x49bd8b));});});},Migration[_0x19d7a7('0xd')][_0x19d7a7('0x9')]=function(_0xb78f78){const _0x39cc4b=_0x19d7a7,_0x26c52d=this;this[_0x39cc4b('0x10')]['enqueue'](function(){const _0x89a09d=_0x39cc4b;return _0x26c52d[_0x89a09d('0xf')][_0x89a09d('0x9')](_0xb78f78,{'force':!![]})['then'](function(){const _0x4a427d=_0x89a09d;logger['info'](_0x4a427d('0x1d'),_0xb78f78);})['catch'](function(_0x148591){const _0x448c14=_0x89a09d;logger[_0x448c14('0x6')](JSON[_0x448c14('0x4')](_0x148591));});});},Migration[_0x19d7a7('0xd')][_0x19d7a7('0x7')]=function(_0x5738bf,_0x4e1a00,_0x233e37){const _0x617095=_0x19d7a7,_0x1b660b=this;this[_0x617095('0x10')][_0x617095('0x0')](function(){const _0x42697f=_0x617095;return _0x1b660b[_0x42697f('0xf')][_0x42697f('0x7')](_0x5738bf,_0x4e1a00,{'indexName':_0x233e37})[_0x42697f('0x1')](function(){const _0x32f81d=_0x42697f;logger[_0x32f81d('0x6')]('addIndex\x20%s\x20%s\x20%s',_0x5738bf,_0x4e1a00[_0x32f81d('0x18')](','),_0x233e37);})[_0x42697f('0x1a')](function(_0x267c8f){const _0x5a37de=_0x42697f;logger[_0x5a37de('0x6')](JSON[_0x5a37de('0x4')](_0x267c8f));});});},Migration[_0x19d7a7('0xd')][_0x19d7a7('0x13')]=function(_0x5a8e6a,_0x168d21){const _0x20e362=_0x19d7a7,_0xa20f7=this;this[_0x20e362('0x10')][_0x20e362('0x0')](function(){const _0x378f76=_0x20e362;return _0xa20f7[_0x378f76('0xf')][_0x378f76('0x13')](_0x5a8e6a,_0x168d21)[_0x378f76('0x1')](function(){const _0xf6c6a7=_0x378f76;logger[_0xf6c6a7('0x6')](_0xf6c6a7('0x1e'),_0x5a8e6a,_0x168d21);})[_0x378f76('0x1a')](function(_0x4a6c4f){const _0x5bfb35=_0x378f76;logger[_0x5bfb35('0x6')](JSON[_0x5bfb35('0x4')](_0x4a6c4f));});});},Migration[_0x19d7a7('0xd')][_0x19d7a7('0xa')]=function(_0x59d107){const _0x49b2e3=_0x19d7a7,_0x33e8a5=this;this['sequence'][_0x49b2e3('0x0')](function(){const _0x2619fc=_0x49b2e3;return _0x33e8a5[_0x2619fc('0xf')][_0x2619fc('0x16')][_0x2619fc('0xa')](_0x59d107)[_0x2619fc('0x1')](function(){const _0x4fb5c4=_0x2619fc;logger[_0x4fb5c4('0x6')](_0x4fb5c4('0xc'),_0x59d107);})[_0x2619fc('0x1a')](function(_0x1ed4da){const _0xb616d5=_0x2619fc;logger['info'](JSON[_0xb616d5('0x4')](_0x1ed4da));});});},Migration[_0x19d7a7('0xd')][_0x19d7a7('0xe')]=function(_0x51b073,_0xfa34ec){const _0x46c992=_0x19d7a7,_0xdaa3f7=this;this[_0x46c992('0x10')]['enqueue'](function(){const _0x4e04c6=_0x46c992;return _0xdaa3f7[_0x4e04c6('0xf')]['removeColumn'](_0x51b073,_0xfa34ec)['then'](function(){const _0x372160=_0x4e04c6;logger[_0x372160('0x6')](_0x372160('0x11'),_0xfa34ec,_0x51b073);})['catch'](function(_0x379114){const _0x2640ee=_0x4e04c6;logger[_0x2640ee('0x6')](util['inspect'](_0x379114,{'showHidden':![],'depth':null}));});});},Migration[_0x19d7a7('0xd')][_0x19d7a7('0xb')]=function(_0x458dea,_0xb8425e,_0x4959d5){const _0x35bf5c=_0x19d7a7,_0x5f41b3=this;this[_0x35bf5c('0x10')][_0x35bf5c('0x0')](function(){const _0x393efd=_0x35bf5c;return _0x5f41b3[_0x393efd('0xf')]['renameColumn'](_0x458dea,_0xb8425e,_0x4959d5)[_0x393efd('0x1')](function(){const _0x38c39e=_0x393efd;logger[_0x38c39e('0x6')](_0x38c39e('0x1c'),_0xb8425e,_0x4959d5,_0x458dea);})['catch'](function(_0x951964){const _0x5eb178=_0x393efd;logger[_0x5eb178('0x6')](util[_0x5eb178('0x12')](_0x951964,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x19d7a7('0x8')]=function(_0x4f7d29){const _0x544e0c=_0x19d7a7;this['sequence'][_0x544e0c('0x0')](function(){return _0x4f7d29();});},module[_0x19d7a7('0x17')]={'up':function(_0x5d20da){return new Promise(function(_0x22a825){const _0x57d6d2=a977_0x2f83,_0x58b047=new Migration(_0x5d20da);_0x58b047[_0x57d6d2('0x8')](_0x22a825);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.5.js b/server/migrations/2.3.5.js index 685fbda..e537500 100644 --- a/server/migrations/2.3.5.js +++ b/server/migrations/2.3.5.js @@ -1 +1 @@ -const a978_0x7d59=['sequelize','Removed\x20column\x20%s\x20from\x20%s','indexName','stringify','removeColumn','info','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','indicesType','catch','removeIndex\x20%s\x20%s','renameColumn','removeIndex','finally','join','query\x20%s','query','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','sequence','table\x20dropped\x20%s','tail','exports','final','addColumn','addIndex','util','changeColumn','../config/logger','prototype'];(function(_0x35aa6e,_0x7d59b2){const _0x14c944=function(_0x5c2792){while(--_0x5c2792){_0x35aa6e['push'](_0x35aa6e['shift']());}};_0x14c944(++_0x7d59b2);}(a978_0x7d59,0x15e));const a978_0x14c9=function(_0x35aa6e,_0x7d59b2){_0x35aa6e=_0x35aa6e-0x0;let _0x14c944=a978_0x7d59[_0x35aa6e];return _0x14c944;};const _0x4729d7=a978_0x14c9;'use strict';const util=require(_0x4729d7('0x14')),logger=require(_0x4729d7('0x16'))('migration'),Sequence=function(){};Sequence[_0x4729d7('0x17')][_0x4729d7('0xa')]=function(_0x5c2792){const _0x749e72=_0x4729d7;this[_0x749e72('0xf')]=this[_0x749e72('0xf')]?this['tail'][_0x749e72('0x3')](_0x5c2792):_0x5c2792();};const Migration=function(_0x4883a7){this['queryInterface']=_0x4883a7,this['sequence']=new Sequence();};Migration[_0x4729d7('0x17')]['changeColumn']=function(_0x4f9bfc,_0xd2110b,_0x4cf267){const _0x2a2b0c=_0x4729d7,_0x45aa66=this;this[_0x2a2b0c('0xd')]['enqueue'](function(){const _0x50c93d=_0x2a2b0c;return _0x45aa66['queryInterface'][_0x50c93d('0x15')](_0x4f9bfc,_0xd2110b,_0x4cf267)[_0x50c93d('0x7')](function(){const _0x30a3f1=_0x50c93d;logger[_0x30a3f1('0x1d')](_0x30a3f1('0x1e'),_0xd2110b,_0x4f9bfc);})[_0x50c93d('0x21')](function(_0x2b23d7){const _0x4994dd=_0x50c93d;logger[_0x4994dd('0x1d')](JSON['stringify'](_0x2b23d7));});});},Migration['prototype'][_0x4729d7('0x12')]=function(_0x5575df,_0xc6537a,_0x4c6ba9){const _0x19e06a=_0x4729d7,_0x35b9bf=this;this[_0x19e06a('0xd')][_0x19e06a('0xa')](function(){const _0x109e3b=_0x19e06a;return _0x35b9bf[_0x109e3b('0x1f')][_0x109e3b('0x12')](_0x5575df,_0xc6537a,_0x4c6ba9)[_0x109e3b('0x7')](function(){const _0x5a0d7c=_0x109e3b;logger[_0x5a0d7c('0x1d')]('Added\x20column\x20%s\x20to\x20%s',_0xc6537a,_0x5575df);})['catch'](function(_0x43dc39){const _0x3ff034=_0x109e3b;logger['info'](JSON[_0x3ff034('0x1b')](_0x43dc39));});});},Migration[_0x4729d7('0x17')][_0x4729d7('0x9')]=function(_0x24113b){const _0x214b72=_0x4729d7,_0x5383c2=this;this[_0x214b72('0xd')]['enqueue'](function(){const _0x1e1bac=_0x214b72;return _0x5383c2[_0x1e1bac('0x1f')][_0x1e1bac('0x9')](_0x24113b,{'force':!![]})[_0x1e1bac('0x7')](function(){const _0x5c7742=_0x1e1bac;logger[_0x5c7742('0x1d')](_0x5c7742('0xe'),_0x24113b);})[_0x1e1bac('0x21')](function(_0x3a3130){const _0x184c40=_0x1e1bac;logger[_0x184c40('0x1d')](JSON[_0x184c40('0x1b')](_0x3a3130));});});},Migration[_0x4729d7('0x17')][_0x4729d7('0x13')]=function(_0xb82679,_0x2dc0ff,_0x1f6fbf){const _0x2ad914=_0x4729d7,_0x472253=this;this[_0x2ad914('0xd')][_0x2ad914('0xa')](function(){const _0x50d881=_0x2ad914;return _0x472253[_0x50d881('0x1f')]['addIndex'](_0xb82679,_0x2dc0ff,{'indexName':_0x1f6fbf[_0x50d881('0x1a')],'indicesType':_0x1f6fbf[_0x50d881('0x20')]})[_0x50d881('0x7')](function(){const _0x4f19ff=_0x50d881;logger[_0x4f19ff('0x1d')](_0x4f19ff('0xb'),_0xb82679,_0x2dc0ff[_0x4f19ff('0x4')](','),_0x1f6fbf[_0x4f19ff('0x1a')],_0x1f6fbf[_0x4f19ff('0x20')]);})[_0x50d881('0x21')](function(_0x392597){const _0x47b040=_0x50d881;logger['info'](JSON[_0x47b040('0x1b')](_0x392597));});});},Migration['prototype'][_0x4729d7('0x2')]=function(_0x1624da,_0x1058bb){const _0x50b556=_0x4729d7,_0x2ac863=this;this['sequence'][_0x50b556('0xa')](function(){const _0x3274d1=_0x50b556;return _0x2ac863[_0x3274d1('0x1f')][_0x3274d1('0x2')](_0x1624da,_0x1058bb)['then'](function(){const _0x2eb526=_0x3274d1;logger[_0x2eb526('0x1d')](_0x2eb526('0x0'),_0x1624da,_0x1058bb);})['catch'](function(_0x5134e0){const _0x45ea6b=_0x3274d1;logger[_0x45ea6b('0x1d')](JSON[_0x45ea6b('0x1b')](_0x5134e0));});});},Migration[_0x4729d7('0x17')]['query']=function(_0x18a42f){const _0x2b1aa4=_0x4729d7,_0x2d0ad9=this;this[_0x2b1aa4('0xd')]['enqueue'](function(){const _0x15ae33=_0x2b1aa4;return _0x2d0ad9[_0x15ae33('0x1f')][_0x15ae33('0x18')][_0x15ae33('0x6')](_0x18a42f)[_0x15ae33('0x7')](function(){const _0x18d9fa=_0x15ae33;logger[_0x18d9fa('0x1d')](_0x18d9fa('0x5'),_0x18a42f);})[_0x15ae33('0x21')](function(_0x44ffe5){const _0x24a94a=_0x15ae33;logger[_0x24a94a('0x1d')](JSON[_0x24a94a('0x1b')](_0x44ffe5));});});},Migration[_0x4729d7('0x17')][_0x4729d7('0x1c')]=function(_0x23873b,_0x3fe676){const _0x3cf3c7=_0x4729d7,_0xf22cd=this;this[_0x3cf3c7('0xd')][_0x3cf3c7('0xa')](function(){const _0x416845=_0x3cf3c7;return _0xf22cd[_0x416845('0x1f')][_0x416845('0x1c')](_0x23873b,_0x3fe676)[_0x416845('0x7')](function(){const _0x5b83a2=_0x416845;logger[_0x5b83a2('0x1d')](_0x5b83a2('0x19'),_0x3fe676,_0x23873b);})[_0x416845('0x21')](function(_0x215066){const _0x42ffc6=_0x416845;logger[_0x42ffc6('0x1d')](util[_0x42ffc6('0xc')](_0x215066,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4729d7('0x1')]=function(_0x37f2ff,_0x3dfc4a,_0x5125d4){const _0x3cc5c9=_0x4729d7,_0x15e22b=this;this[_0x3cc5c9('0xd')][_0x3cc5c9('0xa')](function(){const _0x3cef94=_0x3cc5c9;return _0x15e22b[_0x3cef94('0x1f')][_0x3cef94('0x1')](_0x37f2ff,_0x3dfc4a,_0x5125d4)[_0x3cef94('0x7')](function(){const _0x5053e6=_0x3cef94;logger[_0x5053e6('0x1d')](_0x5053e6('0x8'),_0x3dfc4a,_0x5125d4,_0x37f2ff);})[_0x3cef94('0x21')](function(_0x5dc85f){const _0x4aa938=_0x3cef94;logger[_0x4aa938('0x1d')](util[_0x4aa938('0xc')](_0x5dc85f,{'showHidden':![],'depth':null}));});});},Migration[_0x4729d7('0x17')]['final']=function(_0x50d5be){const _0x2fdc5a=_0x4729d7;this[_0x2fdc5a('0xd')]['enqueue'](function(){return _0x50d5be();});},module[_0x4729d7('0x10')]={'up':function(_0x2468f9){return new Promise(function(_0x36a616){const _0x1f2526=a978_0x14c9,_0x4acd54=new Migration(_0x2468f9);_0x4acd54[_0x1f2526('0x11')](_0x36a616);});},'down':function(){}}; \ No newline at end of file +const a978_0x2d89=['queryInterface','final','query','stringify','migration','then','renameColumn','Removed\x20column\x20%s\x20from\x20%s','tail','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','prototype','addColumn','enqueue','util','removeIndex','exports','table\x20dropped\x20%s','query\x20%s','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','join','indicesType','removeColumn','changeColumn','indexName','removeIndex\x20%s\x20%s','info','addIndex','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]','finally','inspect'];(function(_0x2bddcc,_0x2d89fb){const _0x850b20=function(_0x5dbd28){while(--_0x5dbd28){_0x2bddcc['push'](_0x2bddcc['shift']());}};_0x850b20(++_0x2d89fb);}(a978_0x2d89,0x152));const a978_0x850b=function(_0x2bddcc,_0x2d89fb){_0x2bddcc=_0x2bddcc-0x0;let _0x850b20=a978_0x2d89[_0x2bddcc];return _0x850b20;};const _0x2ac565=a978_0x850b;'use strict';const util=require(_0x2ac565('0x11')),logger=require(_0x2ac565('0xb'))(_0x2ac565('0x6')),Sequence=function(){};Sequence[_0x2ac565('0xe')][_0x2ac565('0x10')]=function(_0x5dbd28){const _0x41faec=_0x2ac565;this[_0x41faec('0xa')]=this[_0x41faec('0xa')]?this[_0x41faec('0xa')][_0x41faec('0x0')](_0x5dbd28):_0x5dbd28();};const Migration=function(_0x46465d){const _0x34abd7=_0x2ac565;this[_0x34abd7('0x2')]=_0x46465d,this[_0x34abd7('0x16')]=new Sequence();};Migration[_0x2ac565('0xe')][_0x2ac565('0x1b')]=function(_0x5557b9,_0x1523b5,_0x100162){const _0x2aad28=_0x2ac565,_0x31b8c3=this;this[_0x2aad28('0x16')][_0x2aad28('0x10')](function(){const _0x133363=_0x2aad28;return _0x31b8c3[_0x133363('0x2')][_0x133363('0x1b')](_0x5557b9,_0x1523b5,_0x100162)[_0x133363('0x7')](function(){const _0x77b7c7=_0x133363;logger[_0x77b7c7('0x1e')](_0x77b7c7('0x17'),_0x1523b5,_0x5557b9);})['catch'](function(_0x390393){const _0x158240=_0x133363;logger['info'](JSON[_0x158240('0x5')](_0x390393));});});},Migration[_0x2ac565('0xe')][_0x2ac565('0xf')]=function(_0xd139b3,_0x4d3cb0,_0x47a37a){const _0x4cbc0b=_0x2ac565,_0x55fc20=this;this[_0x4cbc0b('0x16')][_0x4cbc0b('0x10')](function(){const _0x9bb3e9=_0x4cbc0b;return _0x55fc20[_0x9bb3e9('0x2')][_0x9bb3e9('0xf')](_0xd139b3,_0x4d3cb0,_0x47a37a)[_0x9bb3e9('0x7')](function(){const _0x3f6a41=_0x9bb3e9;logger[_0x3f6a41('0x1e')]('Added\x20column\x20%s\x20to\x20%s',_0x4d3cb0,_0xd139b3);})[_0x9bb3e9('0xd')](function(_0x48aa9b){const _0x622f8a=_0x9bb3e9;logger[_0x622f8a('0x1e')](JSON['stringify'](_0x48aa9b));});});},Migration[_0x2ac565('0xe')][_0x2ac565('0x20')]=function(_0x464f3d){const _0xab0b55=_0x2ac565,_0x57dc09=this;this[_0xab0b55('0x16')]['enqueue'](function(){const _0x1e13f8=_0xab0b55;return _0x57dc09[_0x1e13f8('0x2')][_0x1e13f8('0x20')](_0x464f3d,{'force':!![]})[_0x1e13f8('0x7')](function(){const _0x210096=_0x1e13f8;logger[_0x210096('0x1e')](_0x210096('0x14'),_0x464f3d);})['catch'](function(_0x3317f2){const _0x676f01=_0x1e13f8;logger[_0x676f01('0x1e')](JSON['stringify'](_0x3317f2));});});},Migration[_0x2ac565('0xe')][_0x2ac565('0x1f')]=function(_0x4fa51a,_0x280322,_0x526e69){const _0x1096d3=_0x2ac565,_0x58ffbd=this;this[_0x1096d3('0x16')]['enqueue'](function(){const _0x1c7953=_0x1096d3;return _0x58ffbd[_0x1c7953('0x2')][_0x1c7953('0x1f')](_0x4fa51a,_0x280322,{'indexName':_0x526e69[_0x1c7953('0x1c')],'indicesType':_0x526e69[_0x1c7953('0x19')]})[_0x1c7953('0x7')](function(){const _0xac580d=_0x1c7953;logger[_0xac580d('0x1e')](_0xac580d('0x21'),_0x4fa51a,_0x280322[_0xac580d('0x18')](','),_0x526e69[_0xac580d('0x1c')],_0x526e69[_0xac580d('0x19')]);})[_0x1c7953('0xd')](function(_0x385271){const _0x154eca=_0x1c7953;logger[_0x154eca('0x1e')](JSON[_0x154eca('0x5')](_0x385271));});});},Migration['prototype'][_0x2ac565('0x12')]=function(_0x2d897e,_0x43f745){const _0x503b1a=_0x2ac565,_0x279943=this;this[_0x503b1a('0x16')][_0x503b1a('0x10')](function(){const _0xf5129f=_0x503b1a;return _0x279943[_0xf5129f('0x2')][_0xf5129f('0x12')](_0x2d897e,_0x43f745)['then'](function(){const _0x1f70cb=_0xf5129f;logger[_0x1f70cb('0x1e')](_0x1f70cb('0x1d'),_0x2d897e,_0x43f745);})[_0xf5129f('0xd')](function(_0x532fb9){const _0x3d53ac=_0xf5129f;logger[_0x3d53ac('0x1e')](JSON[_0x3d53ac('0x5')](_0x532fb9));});});},Migration['prototype'][_0x2ac565('0x4')]=function(_0x53c832){const _0x517dc4=this;this['sequence']['enqueue'](function(){const _0x4484ae=a978_0x850b;return _0x517dc4['queryInterface']['sequelize'][_0x4484ae('0x4')](_0x53c832)['then'](function(){const _0x3fee80=_0x4484ae;logger[_0x3fee80('0x1e')](_0x3fee80('0x15'),_0x53c832);})[_0x4484ae('0xd')](function(_0x4adba1){const _0x3e146e=_0x4484ae;logger[_0x3e146e('0x1e')](JSON[_0x3e146e('0x5')](_0x4adba1));});});},Migration[_0x2ac565('0xe')][_0x2ac565('0x1a')]=function(_0x4bd5c0,_0x4d97aa){const _0x336e9c=this;this['sequence']['enqueue'](function(){const _0x38bf57=a978_0x850b;return _0x336e9c['queryInterface'][_0x38bf57('0x1a')](_0x4bd5c0,_0x4d97aa)[_0x38bf57('0x7')](function(){const _0x3eb259=_0x38bf57;logger[_0x3eb259('0x1e')](_0x3eb259('0x9'),_0x4d97aa,_0x4bd5c0);})[_0x38bf57('0xd')](function(_0x41a198){logger['info'](util['inspect'](_0x41a198,{'showHidden':![],'depth':null}));});});},Migration[_0x2ac565('0xe')][_0x2ac565('0x8')]=function(_0x59500a,_0xb7c7b7,_0x43def8){const _0x3f6935=_0x2ac565,_0x2743b6=this;this['sequence'][_0x3f6935('0x10')](function(){const _0x558da5=_0x3f6935;return _0x2743b6[_0x558da5('0x2')][_0x558da5('0x8')](_0x59500a,_0xb7c7b7,_0x43def8)[_0x558da5('0x7')](function(){const _0x5da979=_0x558da5;logger[_0x5da979('0x1e')](_0x5da979('0xc'),_0xb7c7b7,_0x43def8,_0x59500a);})[_0x558da5('0xd')](function(_0x46cf6d){const _0x413de9=_0x558da5;logger[_0x413de9('0x1e')](util[_0x413de9('0x1')](_0x46cf6d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2ac565('0x3')]=function(_0x35a79c){const _0xafe5c4=_0x2ac565;this[_0xafe5c4('0x16')][_0xafe5c4('0x10')](function(){return _0x35a79c();});},module[_0x2ac565('0x13')]={'up':function(_0x4ff445){return new Promise(function(_0x5de258){const _0x356f8b=a978_0x850b,_0x9e9424=new Migration(_0x4ff445);_0x9e9424[_0x356f8b('0x3')](_0x5de258);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.6.js b/server/migrations/2.3.6.js index b95082a..f9acdb1 100644 --- a/server/migrations/2.3.6.js +++ b/server/migrations/2.3.6.js @@ -1 +1 @@ -const a979_0x3070=['util','then','migration','sequelize','addIndex','finally','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','query','tail','renameColumn','Added\x20column\x20%s\x20to\x20%s','dropTable','indexName','info','../config/logger','Removed\x20column\x20%s\x20from\x20%s','sequence','stringify','removeIndex','enqueue','removeIndex\x20%s\x20%s','query\x20%s','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','inspect','removeColumn','prototype','addColumn','final','queryInterface'];(function(_0x1872dc,_0x307073){const _0x1c0a8b=function(_0x5c9b41){while(--_0x5c9b41){_0x1872dc['push'](_0x1872dc['shift']());}};_0x1c0a8b(++_0x307073);}(a979_0x3070,0x15e));const a979_0x1c0a=function(_0x1872dc,_0x307073){_0x1872dc=_0x1872dc-0x0;let _0x1c0a8b=a979_0x3070[_0x1872dc];return _0x1c0a8b;};const _0x81e3ca=a979_0x1c0a;'use strict';const util=require(_0x81e3ca('0x18')),logger=require(_0x81e3ca('0x5'))(_0x81e3ca('0x1a')),Sequence=function(){};Sequence['prototype'][_0x81e3ca('0xa')]=function(_0x5c9b41){const _0x32ca8f=_0x81e3ca;this[_0x32ca8f('0x21')]=this['tail']?this[_0x32ca8f('0x21')][_0x32ca8f('0x1d')](_0x5c9b41):_0x5c9b41();};const Migration=function(_0x44e52d){const _0x11a63f=_0x81e3ca;this[_0x11a63f('0x17')]=_0x44e52d,this['sequence']=new Sequence();};Migration[_0x81e3ca('0x14')][_0x81e3ca('0x1e')]=function(_0x4aad1e,_0x26dbde,_0x1bd1fe){const _0x4f4d73=_0x81e3ca,_0xed128=this;this[_0x4f4d73('0x7')][_0x4f4d73('0xa')](function(){return _0xed128['queryInterface']['changeColumn'](_0x4aad1e,_0x26dbde,_0x1bd1fe)['then'](function(){const _0x44a3b3=a979_0x1c0a;logger[_0x44a3b3('0x4')](_0x44a3b3('0xe'),_0x26dbde,_0x4aad1e);})['catch'](function(_0x3cff67){const _0x150651=a979_0x1c0a;logger['info'](JSON[_0x150651('0x8')](_0x3cff67));});});},Migration['prototype'][_0x81e3ca('0x15')]=function(_0x30fbc3,_0x2d9cb1,_0x50c91c){const _0x42745e=_0x81e3ca,_0x36cd77=this;this[_0x42745e('0x7')][_0x42745e('0xa')](function(){const _0x1a79ff=_0x42745e;return _0x36cd77['queryInterface'][_0x1a79ff('0x15')](_0x30fbc3,_0x2d9cb1,_0x50c91c)[_0x1a79ff('0x19')](function(){const _0x185d4f=_0x1a79ff;logger[_0x185d4f('0x4')](_0x185d4f('0x1'),_0x2d9cb1,_0x30fbc3);})['catch'](function(_0x17cd58){const _0x640d9f=_0x1a79ff;logger[_0x640d9f('0x4')](JSON[_0x640d9f('0x8')](_0x17cd58));});});},Migration[_0x81e3ca('0x14')][_0x81e3ca('0x2')]=function(_0x529d10){const _0x2e9fd9=_0x81e3ca,_0x2d51dc=this;this[_0x2e9fd9('0x7')][_0x2e9fd9('0xa')](function(){const _0x2bfea2=_0x2e9fd9;return _0x2d51dc['queryInterface'][_0x2bfea2('0x2')](_0x529d10,{'force':!![]})[_0x2bfea2('0x19')](function(){const _0x568ee6=_0x2bfea2;logger[_0x568ee6('0x4')](_0x568ee6('0xf'),_0x529d10);})[_0x2bfea2('0x11')](function(_0x5939ff){logger['info'](JSON['stringify'](_0x5939ff));});});},Migration[_0x81e3ca('0x14')][_0x81e3ca('0x1c')]=function(_0xa2b68d,_0x109979,_0x4b6398){const _0x420acd=_0x81e3ca,_0xe5b2da=this;this[_0x420acd('0x7')][_0x420acd('0xa')](function(){const _0x2b6caf=_0x420acd;return _0xe5b2da[_0x2b6caf('0x17')][_0x2b6caf('0x1c')](_0xa2b68d,_0x109979,{'indexName':_0x4b6398['indexName'],'indicesType':_0x4b6398[_0x2b6caf('0xd')]})[_0x2b6caf('0x19')](function(){const _0x375b2b=_0x2b6caf;logger[_0x375b2b('0x4')](_0x375b2b('0x1f'),_0xa2b68d,_0x109979['join'](','),_0x4b6398[_0x375b2b('0x3')],_0x4b6398[_0x375b2b('0xd')]);})[_0x2b6caf('0x11')](function(_0x3d7cf3){const _0x588f53=_0x2b6caf;logger[_0x588f53('0x4')](JSON['stringify'](_0x3d7cf3));});});},Migration['prototype'][_0x81e3ca('0x9')]=function(_0x12dd44,_0x16bd9b){const _0x482c77=_0x81e3ca,_0x49a595=this;this['sequence'][_0x482c77('0xa')](function(){const _0x1b7bc8=_0x482c77;return _0x49a595[_0x1b7bc8('0x17')][_0x1b7bc8('0x9')](_0x12dd44,_0x16bd9b)[_0x1b7bc8('0x19')](function(){const _0x54e4d6=_0x1b7bc8;logger[_0x54e4d6('0x4')](_0x54e4d6('0xb'),_0x12dd44,_0x16bd9b);})[_0x1b7bc8('0x11')](function(_0x929a31){const _0x2b02aa=_0x1b7bc8;logger[_0x2b02aa('0x4')](JSON[_0x2b02aa('0x8')](_0x929a31));});});},Migration[_0x81e3ca('0x14')][_0x81e3ca('0x20')]=function(_0x15a018){const _0x2d1fdf=_0x81e3ca,_0x3f7310=this;this[_0x2d1fdf('0x7')]['enqueue'](function(){const _0x9fe78=_0x2d1fdf;return _0x3f7310['queryInterface'][_0x9fe78('0x1b')][_0x9fe78('0x20')](_0x15a018)['then'](function(){const _0x3e9cc8=_0x9fe78;logger[_0x3e9cc8('0x4')](_0x3e9cc8('0xc'),_0x15a018);})[_0x9fe78('0x11')](function(_0x586c42){logger['info'](JSON['stringify'](_0x586c42));});});},Migration[_0x81e3ca('0x14')][_0x81e3ca('0x13')]=function(_0xc2f83f,_0x41a49c){const _0x4e6ea1=this;this['sequence']['enqueue'](function(){const _0x49d58c=a979_0x1c0a;return _0x4e6ea1['queryInterface'][_0x49d58c('0x13')](_0xc2f83f,_0x41a49c)[_0x49d58c('0x19')](function(){const _0xc95f7d=_0x49d58c;logger[_0xc95f7d('0x4')](_0xc95f7d('0x6'),_0x41a49c,_0xc2f83f);})['catch'](function(_0x1523bd){const _0x142cc1=_0x49d58c;logger[_0x142cc1('0x4')](util['inspect'](_0x1523bd,{'showHidden':![],'depth':null}));});});},Migration[_0x81e3ca('0x14')][_0x81e3ca('0x0')]=function(_0x57db42,_0x147c32,_0x5b2ea8){const _0x4ae731=_0x81e3ca,_0x4382d5=this;this['sequence'][_0x4ae731('0xa')](function(){const _0x4da3fe=_0x4ae731;return _0x4382d5[_0x4da3fe('0x17')][_0x4da3fe('0x0')](_0x57db42,_0x147c32,_0x5b2ea8)[_0x4da3fe('0x19')](function(){const _0x123ea2=_0x4da3fe;logger[_0x123ea2('0x4')](_0x123ea2('0x10'),_0x147c32,_0x5b2ea8,_0x57db42);})['catch'](function(_0x46997b){const _0x3d1f77=_0x4da3fe;logger[_0x3d1f77('0x4')](util[_0x3d1f77('0x12')](_0x46997b,{'showHidden':![],'depth':null}));});});},Migration[_0x81e3ca('0x14')][_0x81e3ca('0x16')]=function(_0x43a08a){const _0x43ea69=_0x81e3ca;this[_0x43ea69('0x7')][_0x43ea69('0xa')](function(){return _0x43a08a();});},module['exports']={'up':function(_0xf67fe2){return new Promise(function(_0x7bea53){const _0x2a66c3=new Migration(_0xf67fe2);_0x2a66c3['final'](_0x7bea53);});},'down':function(){}}; \ No newline at end of file +const a979_0x59cb=['removeIndex','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','sequence','Added\x20column\x20%s\x20to\x20%s','dropTable','query','addColumn','util','finally','prototype','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','queryInterface','tail','indicesType','migration','join','then','indexName','info','changeColumn','removeColumn','query\x20%s','enqueue','renameColumn','addIndex','removeIndex\x20%s\x20%s','../config/logger'];(function(_0x184ed3,_0x59cb81){const _0x54a007=function(_0x342751){while(--_0x342751){_0x184ed3['push'](_0x184ed3['shift']());}};_0x54a007(++_0x59cb81);}(a979_0x59cb,0x8f));const a979_0x54a0=function(_0x184ed3,_0x59cb81){_0x184ed3=_0x184ed3-0x0;let _0x54a007=a979_0x59cb[_0x184ed3];return _0x54a007;};const _0x349ba4=a979_0x54a0;'use strict';const util=require(_0x349ba4('0x15')),logger=require(_0x349ba4('0xb'))(_0x349ba4('0x1e')),Sequence=function(){};Sequence[_0x349ba4('0x17')]['enqueue']=function(_0x342751){const _0x5ad52d=_0x349ba4;this[_0x5ad52d('0x1c')]=this[_0x5ad52d('0x1c')]?this[_0x5ad52d('0x1c')][_0x5ad52d('0x16')](_0x342751):_0x342751();};const Migration=function(_0x5ef8a1){const _0x4f86f5=_0x349ba4;this['queryInterface']=_0x5ef8a1,this[_0x4f86f5('0x10')]=new Sequence();};Migration['prototype'][_0x349ba4('0x4')]=function(_0x134001,_0x1f4444,_0x368f92){const _0x2623a0=_0x349ba4,_0x5ef4ef=this;this[_0x2623a0('0x10')][_0x2623a0('0x7')](function(){const _0x19e5e7=_0x2623a0;return _0x5ef4ef[_0x19e5e7('0x1b')][_0x19e5e7('0x4')](_0x134001,_0x1f4444,_0x368f92)['then'](function(){const _0xfc5922=_0x19e5e7;logger[_0xfc5922('0x3')](_0xfc5922('0xe'),_0x1f4444,_0x134001);})['catch'](function(_0x35a1ee){const _0x2b6bfc=_0x19e5e7;logger[_0x2b6bfc('0x3')](JSON[_0x2b6bfc('0x1a')](_0x35a1ee));});});},Migration[_0x349ba4('0x17')][_0x349ba4('0x14')]=function(_0x8feb72,_0x2c1478,_0x52c1fd){const _0x191335=_0x349ba4,_0x431d17=this;this[_0x191335('0x10')][_0x191335('0x7')](function(){const _0x1f13f3=_0x191335;return _0x431d17[_0x1f13f3('0x1b')][_0x1f13f3('0x14')](_0x8feb72,_0x2c1478,_0x52c1fd)['then'](function(){const _0x17e5e6=_0x1f13f3;logger[_0x17e5e6('0x3')](_0x17e5e6('0x11'),_0x2c1478,_0x8feb72);})[_0x1f13f3('0x18')](function(_0x50a35a){const _0x5eb35e=_0x1f13f3;logger[_0x5eb35e('0x3')](JSON['stringify'](_0x50a35a));});});},Migration[_0x349ba4('0x17')]['dropTable']=function(_0x373200){const _0x18b4bc=_0x349ba4,_0x1c1b2e=this;this[_0x18b4bc('0x10')][_0x18b4bc('0x7')](function(){const _0x599cbb=_0x18b4bc;return _0x1c1b2e[_0x599cbb('0x1b')][_0x599cbb('0x12')](_0x373200,{'force':!![]})[_0x599cbb('0x1')](function(){const _0x5c6633=_0x599cbb;logger[_0x5c6633('0x3')]('table\x20dropped\x20%s',_0x373200);})[_0x599cbb('0x18')](function(_0x5ae8f4){const _0x5e52a0=_0x599cbb;logger[_0x5e52a0('0x3')](JSON[_0x5e52a0('0x1a')](_0x5ae8f4));});});},Migration['prototype'][_0x349ba4('0x9')]=function(_0x59a7c2,_0x502595,_0x23be81){const _0x4b1312=_0x349ba4,_0x2639da=this;this[_0x4b1312('0x10')][_0x4b1312('0x7')](function(){const _0x12c0bd=_0x4b1312;return _0x2639da['queryInterface'][_0x12c0bd('0x9')](_0x59a7c2,_0x502595,{'indexName':_0x23be81[_0x12c0bd('0x2')],'indicesType':_0x23be81[_0x12c0bd('0x1d')]})[_0x12c0bd('0x1')](function(){const _0x4c0747=_0x12c0bd;logger[_0x4c0747('0x3')](_0x4c0747('0x19'),_0x59a7c2,_0x502595[_0x4c0747('0x0')](','),_0x23be81[_0x4c0747('0x2')],_0x23be81[_0x4c0747('0x1d')]);})[_0x12c0bd('0x18')](function(_0x58978a){const _0x490590=_0x12c0bd;logger[_0x490590('0x3')](JSON[_0x490590('0x1a')](_0x58978a));});});},Migration[_0x349ba4('0x17')][_0x349ba4('0xc')]=function(_0x5bb37e,_0x553e6){const _0xf6b16e=_0x349ba4,_0x56ca51=this;this[_0xf6b16e('0x10')][_0xf6b16e('0x7')](function(){const _0x44a752=_0xf6b16e;return _0x56ca51[_0x44a752('0x1b')][_0x44a752('0xc')](_0x5bb37e,_0x553e6)[_0x44a752('0x1')](function(){const _0x45ac70=_0x44a752;logger[_0x45ac70('0x3')](_0x45ac70('0xa'),_0x5bb37e,_0x553e6);})[_0x44a752('0x18')](function(_0x2e2a8c){const _0x7b14d0=_0x44a752;logger[_0x7b14d0('0x3')](JSON[_0x7b14d0('0x1a')](_0x2e2a8c));});});},Migration[_0x349ba4('0x17')]['query']=function(_0x187cdc){const _0x2f261a=_0x349ba4,_0x2bb414=this;this['sequence'][_0x2f261a('0x7')](function(){const _0x540237=_0x2f261a;return _0x2bb414[_0x540237('0x1b')][_0x540237('0xf')][_0x540237('0x13')](_0x187cdc)[_0x540237('0x1')](function(){const _0x3458ff=_0x540237;logger[_0x3458ff('0x3')](_0x3458ff('0x6'),_0x187cdc);})[_0x540237('0x18')](function(_0xbc20a7){const _0x1681fe=_0x540237;logger[_0x1681fe('0x3')](JSON['stringify'](_0xbc20a7));});});},Migration[_0x349ba4('0x17')][_0x349ba4('0x5')]=function(_0x132f4d,_0x29bcec){const _0xfe0721=_0x349ba4,_0xd2b4f0=this;this[_0xfe0721('0x10')]['enqueue'](function(){const _0xfae8cd=_0xfe0721;return _0xd2b4f0[_0xfae8cd('0x1b')][_0xfae8cd('0x5')](_0x132f4d,_0x29bcec)['then'](function(){const _0x5689c8=_0xfae8cd;logger[_0x5689c8('0x3')]('Removed\x20column\x20%s\x20from\x20%s',_0x29bcec,_0x132f4d);})[_0xfae8cd('0x18')](function(_0x235345){const _0x46dc52=_0xfae8cd;logger['info'](util[_0x46dc52('0xd')](_0x235345,{'showHidden':![],'depth':null}));});});},Migration[_0x349ba4('0x17')][_0x349ba4('0x8')]=function(_0x102f3f,_0x10e644,_0x1ac7f5){const _0x1b716f=_0x349ba4,_0x16a12a=this;this[_0x1b716f('0x10')][_0x1b716f('0x7')](function(){const _0xf72f90=_0x1b716f;return _0x16a12a[_0xf72f90('0x1b')]['renameColumn'](_0x102f3f,_0x10e644,_0x1ac7f5)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x10e644,_0x1ac7f5,_0x102f3f);})[_0xf72f90('0x18')](function(_0x36567e){const _0x523782=_0xf72f90;logger[_0x523782('0x3')](util['inspect'](_0x36567e,{'showHidden':![],'depth':null}));});});},Migration[_0x349ba4('0x17')]['final']=function(_0x43b25b){const _0x54719f=_0x349ba4;this[_0x54719f('0x10')][_0x54719f('0x7')](function(){return _0x43b25b();});},module['exports']={'up':function(_0x4ada2e){return new Promise(function(_0x1f0c3b){const _0x31d1de=new Migration(_0x4ada2e);_0x31d1de['final'](_0x1f0c3b);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.7.js b/server/migrations/2.3.7.js index f862989..56eb674 100644 --- a/server/migrations/2.3.7.js +++ b/server/migrations/2.3.7.js @@ -1 +1 @@ -const a980_0xf368=['INTEGER','queryInterface','table\x20dropped\x20%s','FORWARD,\x20BLIND,\x20ATTENDED','../config/logger','info','transfertype','Task','prototype','inspect','STRING','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','then','Case','exports','agententerreason','addIndex\x20%s\x20%s\x20%s','ENUM','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','sequelize','tail','removeIndex','transferexten','finally','stringify','addColumn','dropTable','report_agent','enqueue','report_call','transfer','catch','migration','sequence','Added\x20column\x20%s\x20to\x20%s','final','join','ticketType','addIndex','changeColumn','Removed\x20column\x20%s\x20from\x20%s','transferuniqueid'];(function(_0x14f5c6,_0xf3682e){const _0x5b6887=function(_0xd8b6c7){while(--_0xd8b6c7){_0x14f5c6['push'](_0x14f5c6['shift']());}};_0x5b6887(++_0xf3682e);}(a980_0xf368,0xcf));const a980_0x5b68=function(_0x14f5c6,_0xf3682e){_0x14f5c6=_0x14f5c6-0x0;let _0x5b6887=a980_0xf368[_0x14f5c6];return _0x5b6887;};const _0x4ff490=a980_0x5b68;'use strict';const util=require('util'),logger=require(_0x4ff490('0x1b'))(_0x4ff490('0xd')),Sequence=function(){};Sequence['prototype'][_0x4ff490('0x9')]=function(_0xd8b6c7){const _0x210d10=_0x4ff490;this[_0x210d10('0x1')]=this[_0x210d10('0x1')]?this[_0x210d10('0x1')][_0x210d10('0x4')](_0xd8b6c7):_0xd8b6c7();};const Migration=function(_0x257a13){const _0x3c59c2=_0x4ff490;this[_0x3c59c2('0x18')]=_0x257a13,this[_0x3c59c2('0xe')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x35468a,_0x5d3e40,_0x3ba98d){const _0x2b30a2=_0x4ff490,_0x52bc45=this;this[_0x2b30a2('0xe')][_0x2b30a2('0x9')](function(){const _0x1b2d0c=_0x2b30a2;return _0x52bc45[_0x1b2d0c('0x18')][_0x1b2d0c('0x14')](_0x35468a,_0x5d3e40,_0x3ba98d)[_0x1b2d0c('0x25')](function(){const _0x33683e=_0x1b2d0c;logger[_0x33683e('0x1c')](_0x33683e('0x2c'),_0x5d3e40,_0x35468a);})[_0x1b2d0c('0xc')](function(_0x31e1f0){const _0x22b2a9=_0x1b2d0c;logger[_0x22b2a9('0x1c')](JSON['stringify'](_0x31e1f0));});});},Migration['prototype'][_0x4ff490('0x6')]=function(_0x3dd836,_0x403ede,_0x25961a){const _0x43f437=this;this['sequence']['enqueue'](function(){const _0x14a1e8=a980_0x5b68;return _0x43f437[_0x14a1e8('0x18')][_0x14a1e8('0x6')](_0x3dd836,_0x403ede,_0x25961a)[_0x14a1e8('0x25')](function(){const _0x90e8c5=_0x14a1e8;logger[_0x90e8c5('0x1c')](_0x90e8c5('0xf'),_0x403ede,_0x3dd836);})[_0x14a1e8('0xc')](function(_0x8919dc){const _0x4a4a07=_0x14a1e8;logger[_0x4a4a07('0x1c')](JSON['stringify'](_0x8919dc));});});},Migration['prototype'][_0x4ff490('0x7')]=function(_0x3522f3){const _0x35b199=this;this['sequence']['enqueue'](function(){const _0x245515=a980_0x5b68;return _0x35b199['queryInterface'][_0x245515('0x7')](_0x3522f3,{'force':!![]})[_0x245515('0x25')](function(){const _0x17e84b=_0x245515;logger[_0x17e84b('0x1c')](_0x17e84b('0x19'),_0x3522f3);})['catch'](function(_0x5900b9){const _0x570294=_0x245515;logger[_0x570294('0x1c')](JSON[_0x570294('0x5')](_0x5900b9));});});},Migration['prototype'][_0x4ff490('0x13')]=function(_0x303bff,_0xb35ed3,_0x46a08f){const _0x1cbfbb=_0x4ff490,_0x548567=this;this['sequence'][_0x1cbfbb('0x9')](function(){const _0x51111b=_0x1cbfbb;return _0x548567[_0x51111b('0x18')][_0x51111b('0x13')](_0x303bff,_0xb35ed3,{'indexName':_0x46a08f})[_0x51111b('0x25')](function(){const _0x4070f5=_0x51111b;logger[_0x4070f5('0x1c')](_0x4070f5('0x29'),_0x303bff,_0xb35ed3[_0x4070f5('0x11')](','),_0x46a08f);})['catch'](function(_0x2a57d0){const _0x1c7b2a=_0x51111b;logger['info'](JSON[_0x1c7b2a('0x5')](_0x2a57d0));});});},Migration[_0x4ff490('0x1f')]['removeIndex']=function(_0x41e6ca,_0x5a5e5a){const _0x508f92=_0x4ff490,_0x57e496=this;this[_0x508f92('0xe')]['enqueue'](function(){const _0x2220d5=_0x508f92;return _0x57e496[_0x2220d5('0x18')][_0x2220d5('0x2')](_0x41e6ca,_0x5a5e5a)[_0x2220d5('0x25')](function(){const _0x3229f7=_0x2220d5;logger[_0x3229f7('0x1c')]('removeIndex\x20%s\x20%s',_0x41e6ca,_0x5a5e5a);})[_0x2220d5('0xc')](function(_0x5eaee9){const _0x33f711=_0x2220d5;logger['info'](JSON[_0x33f711('0x5')](_0x5eaee9));});});},Migration[_0x4ff490('0x1f')][_0x4ff490('0x24')]=function(_0x5639f1){const _0x47f897=_0x4ff490,_0x1cfb6c=this;this[_0x47f897('0xe')]['enqueue'](function(){const _0x4ccadf=_0x47f897;return _0x1cfb6c['queryInterface'][_0x4ccadf('0x0')][_0x4ccadf('0x24')](_0x5639f1)[_0x4ccadf('0x25')](function(){const _0x5917e3=_0x4ccadf;logger[_0x5917e3('0x1c')]('query\x20%s',_0x5639f1);})[_0x4ccadf('0xc')](function(_0x369d55){const _0x750526=_0x4ccadf;logger[_0x750526('0x1c')](JSON[_0x750526('0x5')](_0x369d55));});});},Migration['prototype'][_0x4ff490('0x22')]=function(_0x8ff774,_0xfe4c1a){const _0x380178=_0x4ff490,_0x3d47ad=this;this['sequence'][_0x380178('0x9')](function(){const _0x2c9333=_0x380178;return _0x3d47ad[_0x2c9333('0x18')][_0x2c9333('0x22')](_0x8ff774,_0xfe4c1a)[_0x2c9333('0x25')](function(){const _0x259b28=_0x2c9333;logger[_0x259b28('0x1c')](_0x259b28('0x15'),_0xfe4c1a,_0x8ff774);})[_0x2c9333('0xc')](function(_0x5357fa){const _0xf98096=_0x2c9333;logger[_0xf98096('0x1c')](util['inspect'](_0x5357fa,{'showHidden':![],'depth':null}));});});},Migration[_0x4ff490('0x1f')][_0x4ff490('0x2b')]=function(_0x53f627,_0x150c5a,_0x472a4f){const _0x2f1c41=_0x4ff490,_0x375ef0=this;this[_0x2f1c41('0xe')][_0x2f1c41('0x9')](function(){const _0x3b5f4e=_0x2f1c41;return _0x375ef0[_0x3b5f4e('0x18')][_0x3b5f4e('0x2b')](_0x53f627,_0x150c5a,_0x472a4f)[_0x3b5f4e('0x25')](function(){const _0x7e9d5f=_0x3b5f4e;logger['info'](_0x7e9d5f('0x23'),_0x150c5a,_0x472a4f,_0x53f627);})[_0x3b5f4e('0xc')](function(_0x56d441){const _0x4babb0=_0x3b5f4e;logger[_0x4babb0('0x1c')](util[_0x4babb0('0x20')](_0x56d441,{'showHidden':![],'depth':null}));});});},Migration[_0x4ff490('0x1f')][_0x4ff490('0x10')]=function(_0x43d359){this['sequence']['enqueue'](function(){return _0x43d359();});},module[_0x4ff490('0x27')]={'up':function(_0x2f3d01,_0x1ef7a8){return new Promise(function(_0x559b47){const _0x2a4b3e=a980_0x5b68,_0x41a3d3=new Migration(_0x2f3d01);_0x41a3d3['addColumn']('report_agent',_0x2a4b3e('0xb'),{'type':_0x1ef7a8[_0x2a4b3e('0x2d')],'defaultValue':![]}),_0x41a3d3[_0x2a4b3e('0x6')](_0x2a4b3e('0x8'),_0x2a4b3e('0x1d'),{'type':_0x1ef7a8['STRING'],'comment':_0x2a4b3e('0x1a')}),_0x41a3d3['addColumn'](_0x2a4b3e('0x8'),_0x2a4b3e('0x3'),{'type':_0x1ef7a8[_0x2a4b3e('0x21')]}),_0x41a3d3['addColumn'](_0x2a4b3e('0x8'),_0x2a4b3e('0x16'),{'type':_0x1ef7a8[_0x2a4b3e('0x21')]}),_0x41a3d3[_0x2a4b3e('0x6')](_0x2a4b3e('0x8'),_0x2a4b3e('0x28'),{'type':_0x1ef7a8[_0x2a4b3e('0x17')],'defaultValue':0x0}),_0x41a3d3[_0x2a4b3e('0x6')](_0x2a4b3e('0xa'),'systemanswertime',{'type':_0x1ef7a8['DATE']}),_0x41a3d3[_0x2a4b3e('0x6')]('int_salesforce_configurations',_0x2a4b3e('0x12'),{'type':_0x1ef7a8[_0x2a4b3e('0x2a')](_0x2a4b3e('0x1e'),_0x2a4b3e('0x26')),'defaultValue':_0x2a4b3e('0x1e')}),_0x41a3d3[_0x2a4b3e('0x10')](_0x559b47);});},'down':function(){}}; \ No newline at end of file +const a980_0x3aa4=['inspect','transfertype','enqueue','report_call','removeIndex','STRING','systemanswertime','transfer','then','Added\x20column\x20%s\x20to\x20%s','sequelize','dropTable','sequence','queryInterface','FORWARD,\x20BLIND,\x20ATTENDED','Case','query','info','addIndex\x20%s\x20%s\x20%s','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','report_agent','catch','stringify','tail','transferexten','INTEGER','agententerreason','removeIndex\x20%s\x20%s','../config/logger','Task','table\x20dropped\x20%s','renameColumn','addIndex','finally','prototype','addColumn','join','query\x20%s','changeColumn','final','transferuniqueid','exports','Removed\x20column\x20%s\x20from\x20%s','migration'];(function(_0x40112c,_0x3aa4c6){const _0x18f5bb=function(_0x571666){while(--_0x571666){_0x40112c['push'](_0x40112c['shift']());}};_0x18f5bb(++_0x3aa4c6);}(a980_0x3aa4,0x1db));const a980_0x18f5=function(_0x40112c,_0x3aa4c6){_0x40112c=_0x40112c-0x0;let _0x18f5bb=a980_0x3aa4[_0x40112c];return _0x18f5bb;};const _0x1bcf0c=a980_0x18f5;'use strict';const util=require('util'),logger=require(_0x1bcf0c('0x4'))(_0x1bcf0c('0x13')),Sequence=function(){};Sequence['prototype'][_0x1bcf0c('0x16')]=function(_0x571666){const _0x1ed5a4=_0x1bcf0c;this[_0x1ed5a4('0x2c')]=this[_0x1ed5a4('0x2c')]?this[_0x1ed5a4('0x2c')][_0x1ed5a4('0x9')](_0x571666):_0x571666();};const Migration=function(_0x2acd89){const _0x3d3783=_0x1bcf0c;this[_0x3d3783('0x21')]=_0x2acd89,this['sequence']=new Sequence();};Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0xe')]=function(_0x288627,_0x122a16,_0x363b05){const _0x1b64a2=_0x1bcf0c,_0x582231=this;this['sequence'][_0x1b64a2('0x16')](function(){const _0x263f05=_0x1b64a2;return _0x582231['queryInterface']['changeColumn'](_0x288627,_0x122a16,_0x363b05)['then'](function(){const _0x6f7ba4=a980_0x18f5;logger[_0x6f7ba4('0x25')](_0x6f7ba4('0x28'),_0x122a16,_0x288627);})[_0x263f05('0x2a')](function(_0x31c905){const _0x1236c7=_0x263f05;logger[_0x1236c7('0x25')](JSON[_0x1236c7('0x2b')](_0x31c905));});});},Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0xb')]=function(_0x4f0a88,_0x5ae224,_0x433109){const _0x21cd02=_0x1bcf0c,_0x39af01=this;this[_0x21cd02('0x20')]['enqueue'](function(){const _0x40ff3e=_0x21cd02;return _0x39af01[_0x40ff3e('0x21')][_0x40ff3e('0xb')](_0x4f0a88,_0x5ae224,_0x433109)['then'](function(){const _0x6261c9=_0x40ff3e;logger[_0x6261c9('0x25')](_0x6261c9('0x1d'),_0x5ae224,_0x4f0a88);})[_0x40ff3e('0x2a')](function(_0x4a6547){const _0x1816b0=_0x40ff3e;logger['info'](JSON[_0x1816b0('0x2b')](_0x4a6547));});});},Migration['prototype'][_0x1bcf0c('0x1f')]=function(_0x3bae14){const _0x3c318a=_0x1bcf0c,_0x5be362=this;this[_0x3c318a('0x20')][_0x3c318a('0x16')](function(){const _0x244399=_0x3c318a;return _0x5be362[_0x244399('0x21')][_0x244399('0x1f')](_0x3bae14,{'force':!![]})[_0x244399('0x1c')](function(){const _0x290dd6=_0x244399;logger[_0x290dd6('0x25')](_0x290dd6('0x6'),_0x3bae14);})['catch'](function(_0x479e3f){const _0x4262a6=_0x244399;logger[_0x4262a6('0x25')](JSON[_0x4262a6('0x2b')](_0x479e3f));});});},Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0x8')]=function(_0xce7dd8,_0x65dbd1,_0x462746){const _0x3b74a3=_0x1bcf0c,_0x1e260f=this;this[_0x3b74a3('0x20')]['enqueue'](function(){const _0x17749b=_0x3b74a3;return _0x1e260f[_0x17749b('0x21')]['addIndex'](_0xce7dd8,_0x65dbd1,{'indexName':_0x462746})[_0x17749b('0x1c')](function(){const _0x2382be=_0x17749b;logger['info'](_0x2382be('0x26'),_0xce7dd8,_0x65dbd1[_0x2382be('0xc')](','),_0x462746);})[_0x17749b('0x2a')](function(_0x382e2f){const _0x42b05a=_0x17749b;logger['info'](JSON[_0x42b05a('0x2b')](_0x382e2f));});});},Migration[_0x1bcf0c('0xa')]['removeIndex']=function(_0x200f8e,_0x42c1d5){const _0x2b914f=_0x1bcf0c,_0x4b8c59=this;this[_0x2b914f('0x20')][_0x2b914f('0x16')](function(){const _0x3dffd4=_0x2b914f;return _0x4b8c59['queryInterface'][_0x3dffd4('0x18')](_0x200f8e,_0x42c1d5)['then'](function(){const _0x3a390b=_0x3dffd4;logger[_0x3a390b('0x25')](_0x3a390b('0x3'),_0x200f8e,_0x42c1d5);})[_0x3dffd4('0x2a')](function(_0x609b78){const _0x53dbd0=_0x3dffd4;logger['info'](JSON[_0x53dbd0('0x2b')](_0x609b78));});});},Migration[_0x1bcf0c('0xa')]['query']=function(_0x418b9c){const _0x5d8b91=_0x1bcf0c,_0x14d4f9=this;this[_0x5d8b91('0x20')][_0x5d8b91('0x16')](function(){const _0x16aebb=_0x5d8b91;return _0x14d4f9[_0x16aebb('0x21')][_0x16aebb('0x1e')][_0x16aebb('0x24')](_0x418b9c)[_0x16aebb('0x1c')](function(){const _0x4c199a=_0x16aebb;logger[_0x4c199a('0x25')](_0x4c199a('0xd'),_0x418b9c);})[_0x16aebb('0x2a')](function(_0x3af15b){const _0x5a0530=_0x16aebb;logger['info'](JSON[_0x5a0530('0x2b')](_0x3af15b));});});},Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0x27')]=function(_0x475e32,_0x1c287b){const _0x33c793=_0x1bcf0c,_0x1e6100=this;this[_0x33c793('0x20')][_0x33c793('0x16')](function(){const _0x4a4ee4=_0x33c793;return _0x1e6100['queryInterface'][_0x4a4ee4('0x27')](_0x475e32,_0x1c287b)[_0x4a4ee4('0x1c')](function(){const _0x4c6ed2=_0x4a4ee4;logger[_0x4c6ed2('0x25')](_0x4c6ed2('0x12'),_0x1c287b,_0x475e32);})[_0x4a4ee4('0x2a')](function(_0x15e046){const _0x5bb63a=_0x4a4ee4;logger[_0x5bb63a('0x25')](util[_0x5bb63a('0x14')](_0x15e046,{'showHidden':![],'depth':null}));});});},Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0x7')]=function(_0x1e7f2b,_0x287092,_0x212481){const _0xe0db10=_0x1bcf0c,_0x3f59d7=this;this[_0xe0db10('0x20')][_0xe0db10('0x16')](function(){const _0x458b9b=_0xe0db10;return _0x3f59d7[_0x458b9b('0x21')]['renameColumn'](_0x1e7f2b,_0x287092,_0x212481)[_0x458b9b('0x1c')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x287092,_0x212481,_0x1e7f2b);})['catch'](function(_0x2f6648){const _0x42f2c4=_0x458b9b;logger[_0x42f2c4('0x25')](util[_0x42f2c4('0x14')](_0x2f6648,{'showHidden':![],'depth':null}));});});},Migration[_0x1bcf0c('0xa')]['final']=function(_0x4a2158){const _0x24b8dd=_0x1bcf0c;this['sequence'][_0x24b8dd('0x16')](function(){return _0x4a2158();});},module[_0x1bcf0c('0x11')]={'up':function(_0x143428,_0x1374aa){return new Promise(function(_0x39f77){const _0x8711be=a980_0x18f5,_0x5bded1=new Migration(_0x143428);_0x5bded1[_0x8711be('0xb')]('report_agent',_0x8711be('0x1b'),{'type':_0x1374aa['BOOLEAN'],'defaultValue':![]}),_0x5bded1['addColumn']('report_agent',_0x8711be('0x15'),{'type':_0x1374aa['STRING'],'comment':_0x8711be('0x22')}),_0x5bded1[_0x8711be('0xb')](_0x8711be('0x29'),_0x8711be('0x0'),{'type':_0x1374aa[_0x8711be('0x19')]}),_0x5bded1[_0x8711be('0xb')]('report_agent',_0x8711be('0x10'),{'type':_0x1374aa[_0x8711be('0x19')]}),_0x5bded1['addColumn']('report_agent',_0x8711be('0x2'),{'type':_0x1374aa[_0x8711be('0x1')],'defaultValue':0x0}),_0x5bded1[_0x8711be('0xb')](_0x8711be('0x17'),_0x8711be('0x1a'),{'type':_0x1374aa['DATE']}),_0x5bded1[_0x8711be('0xb')]('int_salesforce_configurations','ticketType',{'type':_0x1374aa['ENUM'](_0x8711be('0x5'),_0x8711be('0x23')),'defaultValue':_0x8711be('0x5')}),_0x5bded1[_0x8711be('0xf')](_0x39f77);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.8.js b/server/migrations/2.3.8.js index 36cf292..4e04ff8 100644 --- a/server/migrations/2.3.8.js +++ b/server/migrations/2.3.8.js @@ -1 +1 @@ -const a981_0x88a2=['exports','Added\x20column\x20%s\x20to\x20%s','addColumn','removeColumn','catch','prototype','finally','enqueue','queryInterface','query\x20%s','removeIndex','util','changeColumn','tail','inspect','sequence','then','final','info','removeIndex\x20%s\x20%s','query','../config/logger','stringify','renameColumn','addIndex','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','sequelize','join','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x184f02,_0x88a2d3){const _0x4f14de=function(_0x3e289b){while(--_0x3e289b){_0x184f02['push'](_0x184f02['shift']());}};_0x4f14de(++_0x88a2d3);}(a981_0x88a2,0x113));const a981_0x4f14=function(_0x184f02,_0x88a2d3){_0x184f02=_0x184f02-0x0;let _0x4f14de=a981_0x88a2[_0x184f02];return _0x4f14de;};const _0x1a914e=a981_0x4f14;'use strict';const util=require(_0x1a914e('0xf')),logger=require(_0x1a914e('0x19'))(_0x1a914e('0x0')),Sequence=function(){};Sequence['prototype'][_0x1a914e('0xb')]=function(_0x3e289b){const _0x269431=_0x1a914e;this['tail']=this[_0x269431('0x11')]?this['tail'][_0x269431('0xa')](_0x3e289b):_0x3e289b();};const Migration=function(_0x2856ca){const _0x180fd7=_0x1a914e;this[_0x180fd7('0xc')]=_0x2856ca,this[_0x180fd7('0x13')]=new Sequence();};Migration[_0x1a914e('0x9')][_0x1a914e('0x10')]=function(_0x15ee30,_0x2ff67a,_0x2fa993){const _0x1690d6=_0x1a914e,_0x318eb4=this;this['sequence'][_0x1690d6('0xb')](function(){const _0x3cdcc1=_0x1690d6;return _0x318eb4['queryInterface'][_0x3cdcc1('0x10')](_0x15ee30,_0x2ff67a,_0x2fa993)['then'](function(){const _0x2860e8=_0x3cdcc1;logger[_0x2860e8('0x16')](_0x2860e8('0x3'),_0x2ff67a,_0x15ee30);})['catch'](function(_0x133896){const _0x1b8b80=_0x3cdcc1;logger[_0x1b8b80('0x16')](JSON['stringify'](_0x133896));});});},Migration[_0x1a914e('0x9')][_0x1a914e('0x6')]=function(_0x5c7eed,_0x2593a9,_0x4193c0){const _0x2aaa40=_0x1a914e,_0x456199=this;this[_0x2aaa40('0x13')][_0x2aaa40('0xb')](function(){const _0x15dd3b=_0x2aaa40;return _0x456199[_0x15dd3b('0xc')][_0x15dd3b('0x6')](_0x5c7eed,_0x2593a9,_0x4193c0)[_0x15dd3b('0x14')](function(){const _0x1b8bdb=_0x15dd3b;logger[_0x1b8bdb('0x16')](_0x1b8bdb('0x5'),_0x2593a9,_0x5c7eed);})[_0x15dd3b('0x8')](function(_0x390964){const _0x5497fa=_0x15dd3b;logger[_0x5497fa('0x16')](JSON['stringify'](_0x390964));});});},Migration[_0x1a914e('0x9')]['dropTable']=function(_0x28eb19){const _0xfb7222=_0x1a914e,_0x496da8=this;this[_0xfb7222('0x13')][_0xfb7222('0xb')](function(){const _0x3cf166=_0xfb7222;return _0x496da8[_0x3cf166('0xc')]['dropTable'](_0x28eb19,{'force':!![]})[_0x3cf166('0x14')](function(){const _0x118e8f=_0x3cf166;logger[_0x118e8f('0x16')]('table\x20dropped\x20%s',_0x28eb19);})[_0x3cf166('0x8')](function(_0x304ccd){const _0x180220=_0x3cf166;logger[_0x180220('0x16')](JSON['stringify'](_0x304ccd));});});},Migration[_0x1a914e('0x9')][_0x1a914e('0x1c')]=function(_0x2dd2af,_0x473dd0,_0x2fb6b4){const _0x4237a8=_0x1a914e,_0x2684ed=this;this[_0x4237a8('0x13')][_0x4237a8('0xb')](function(){const _0x5e8aed=_0x4237a8;return _0x2684ed[_0x5e8aed('0xc')][_0x5e8aed('0x1c')](_0x2dd2af,_0x473dd0,{'indexName':_0x2fb6b4})['then'](function(){const _0x53cc13=_0x5e8aed;logger[_0x53cc13('0x16')](_0x53cc13('0x1d'),_0x2dd2af,_0x473dd0[_0x53cc13('0x2')](','),_0x2fb6b4);})[_0x5e8aed('0x8')](function(_0x22488d){const _0x5cb042=_0x5e8aed;logger[_0x5cb042('0x16')](JSON[_0x5cb042('0x1a')](_0x22488d));});});},Migration[_0x1a914e('0x9')]['removeIndex']=function(_0x23c56e,_0x430144){const _0x5547d7=_0x1a914e,_0x2720b8=this;this[_0x5547d7('0x13')]['enqueue'](function(){const _0x3bcda5=_0x5547d7;return _0x2720b8[_0x3bcda5('0xc')][_0x3bcda5('0xe')](_0x23c56e,_0x430144)['then'](function(){const _0x34a8d5=_0x3bcda5;logger[_0x34a8d5('0x16')](_0x34a8d5('0x17'),_0x23c56e,_0x430144);})['catch'](function(_0x36183b){const _0x2e0ea2=_0x3bcda5;logger[_0x2e0ea2('0x16')](JSON[_0x2e0ea2('0x1a')](_0x36183b));});});},Migration[_0x1a914e('0x9')]['query']=function(_0x52b6bb){const _0x1435b6=_0x1a914e,_0x14b4e2=this;this[_0x1435b6('0x13')][_0x1435b6('0xb')](function(){const _0x247d7f=_0x1435b6;return _0x14b4e2[_0x247d7f('0xc')][_0x247d7f('0x1')][_0x247d7f('0x18')](_0x52b6bb)[_0x247d7f('0x14')](function(){const _0x342fd7=_0x247d7f;logger[_0x342fd7('0x16')](_0x342fd7('0xd'),_0x52b6bb);})['catch'](function(_0x4e52dd){const _0x4c79d1=_0x247d7f;logger[_0x4c79d1('0x16')](JSON[_0x4c79d1('0x1a')](_0x4e52dd));});});},Migration['prototype']['removeColumn']=function(_0x2d222f,_0x2b11be){const _0x2fdafa=_0x1a914e,_0x416f79=this;this[_0x2fdafa('0x13')]['enqueue'](function(){const _0x16672c=_0x2fdafa;return _0x416f79[_0x16672c('0xc')][_0x16672c('0x7')](_0x2d222f,_0x2b11be)[_0x16672c('0x14')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2b11be,_0x2d222f);})[_0x16672c('0x8')](function(_0x33e05f){const _0x33471f=_0x16672c;logger[_0x33471f('0x16')](util[_0x33471f('0x12')](_0x33e05f,{'showHidden':![],'depth':null}));});});},Migration[_0x1a914e('0x9')]['renameColumn']=function(_0x2e7154,_0x382fae,_0x161405){const _0x2fda67=_0x1a914e,_0x4dd347=this;this[_0x2fda67('0x13')]['enqueue'](function(){const _0x1a006c=_0x2fda67;return _0x4dd347[_0x1a006c('0xc')][_0x1a006c('0x1b')](_0x2e7154,_0x382fae,_0x161405)[_0x1a006c('0x14')](function(){const _0x500f87=_0x1a006c;logger['info'](_0x500f87('0x1e'),_0x382fae,_0x161405,_0x2e7154);})[_0x1a006c('0x8')](function(_0x5871f4){const _0x1f466a=_0x1a006c;logger[_0x1f466a('0x16')](util[_0x1f466a('0x12')](_0x5871f4,{'showHidden':![],'depth':null}));});});},Migration[_0x1a914e('0x9')][_0x1a914e('0x15')]=function(_0x5249c8){const _0x508084=_0x1a914e;this[_0x508084('0x13')]['enqueue'](function(){return _0x5249c8();});},module[_0x1a914e('0x4')]={'up':function(_0x5dacdf){return new Promise(function(_0x2c0284){const _0xdfa15b=a981_0x4f14,_0x382238=new Migration(_0x5dacdf);_0x382238[_0xdfa15b('0x15')](_0x2c0284);});},'down':function(){}}; \ No newline at end of file +const a981_0x1ffc=['queryInterface','inspect','info','final','util','table\x20dropped\x20%s','prototype','finally','Removed\x20column\x20%s\x20from\x20%s','changeColumn','query','dropTable','removeColumn','join','then','renameColumn','../config/logger','sequence','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','enqueue','catch','addIndex','query\x20%s','removeIndex\x20%s\x20%s','stringify','addColumn','Added\x20column\x20%s\x20to\x20%s','sequelize'];(function(_0x3e516a,_0x1ffc85){const _0x529cac=function(_0x366a89){while(--_0x366a89){_0x3e516a['push'](_0x3e516a['shift']());}};_0x529cac(++_0x1ffc85);}(a981_0x1ffc,0x72));const a981_0x529c=function(_0x3e516a,_0x1ffc85){_0x3e516a=_0x3e516a-0x0;let _0x529cac=a981_0x1ffc[_0x3e516a];return _0x529cac;};const _0x2a52f1=a981_0x529c;'use strict';const util=require(_0x2a52f1('0x12')),logger=require(_0x2a52f1('0x1e'))('migration'),Sequence=function(){};Sequence[_0x2a52f1('0x14')][_0x2a52f1('0x5')]=function(_0x366a89){const _0x344b8d=_0x2a52f1;this[_0x344b8d('0x4')]=this['tail']?this[_0x344b8d('0x4')][_0x344b8d('0x15')](_0x366a89):_0x366a89();};const Migration=function(_0x2be7e1){const _0x1094d2=_0x2a52f1;this[_0x1094d2('0xe')]=_0x2be7e1,this[_0x1094d2('0x1f')]=new Sequence();};Migration['prototype'][_0x2a52f1('0x17')]=function(_0x52510e,_0x1794e7,_0x2ae41a){const _0x2a0241=_0x2a52f1,_0x2fe4e2=this;this[_0x2a0241('0x1f')][_0x2a0241('0x5')](function(){const _0x17c99a=_0x2a0241;return _0x2fe4e2[_0x17c99a('0xe')]['changeColumn'](_0x52510e,_0x1794e7,_0x2ae41a)['then'](function(){const _0x1ddfb0=_0x17c99a;logger['info'](_0x1ddfb0('0x1'),_0x1794e7,_0x52510e);})['catch'](function(_0x5f2c5){const _0x3c1d8b=_0x17c99a;logger[_0x3c1d8b('0x10')](JSON[_0x3c1d8b('0xa')](_0x5f2c5));});});},Migration[_0x2a52f1('0x14')]['addColumn']=function(_0x2f63b0,_0xc2187f,_0x4a3f23){const _0x1a8988=_0x2a52f1,_0x246943=this;this[_0x1a8988('0x1f')][_0x1a8988('0x5')](function(){const _0x3513ad=_0x1a8988;return _0x246943[_0x3513ad('0xe')][_0x3513ad('0xb')](_0x2f63b0,_0xc2187f,_0x4a3f23)['then'](function(){const _0x3f0c1c=_0x3513ad;logger[_0x3f0c1c('0x10')](_0x3f0c1c('0xc'),_0xc2187f,_0x2f63b0);})[_0x3513ad('0x6')](function(_0x347a13){const _0x53a4bc=_0x3513ad;logger['info'](JSON[_0x53a4bc('0xa')](_0x347a13));});});},Migration['prototype'][_0x2a52f1('0x19')]=function(_0x57b97f){const _0x5344f6=_0x2a52f1,_0x11944e=this;this[_0x5344f6('0x1f')]['enqueue'](function(){const _0x2d92ff=_0x5344f6;return _0x11944e[_0x2d92ff('0xe')][_0x2d92ff('0x19')](_0x57b97f,{'force':!![]})[_0x2d92ff('0x1c')](function(){const _0x3ae543=_0x2d92ff;logger['info'](_0x3ae543('0x13'),_0x57b97f);})[_0x2d92ff('0x6')](function(_0xd2a76e){const _0xf7ae10=_0x2d92ff;logger[_0xf7ae10('0x10')](JSON[_0xf7ae10('0xa')](_0xd2a76e));});});},Migration['prototype'][_0x2a52f1('0x7')]=function(_0x3bfe4f,_0x47ea0c,_0x1d490b){const _0x5deeb7=_0x2a52f1,_0x54ac10=this;this['sequence'][_0x5deeb7('0x5')](function(){const _0x5b66c2=_0x5deeb7;return _0x54ac10['queryInterface'][_0x5b66c2('0x7')](_0x3bfe4f,_0x47ea0c,{'indexName':_0x1d490b})[_0x5b66c2('0x1c')](function(){const _0x4467ed=_0x5b66c2;logger[_0x4467ed('0x10')]('addIndex\x20%s\x20%s\x20%s',_0x3bfe4f,_0x47ea0c[_0x4467ed('0x1b')](','),_0x1d490b);})[_0x5b66c2('0x6')](function(_0x7895de){const _0x580121=_0x5b66c2;logger[_0x580121('0x10')](JSON['stringify'](_0x7895de));});});},Migration[_0x2a52f1('0x14')][_0x2a52f1('0x2')]=function(_0x10b650,_0x204eb7){const _0x4f4664=_0x2a52f1,_0x4790a7=this;this['sequence'][_0x4f4664('0x5')](function(){const _0x277cab=_0x4f4664;return _0x4790a7[_0x277cab('0xe')][_0x277cab('0x2')](_0x10b650,_0x204eb7)[_0x277cab('0x1c')](function(){const _0x1a406b=_0x277cab;logger['info'](_0x1a406b('0x9'),_0x10b650,_0x204eb7);})[_0x277cab('0x6')](function(_0x4138bd){const _0x2d0790=_0x277cab;logger[_0x2d0790('0x10')](JSON['stringify'](_0x4138bd));});});},Migration['prototype'][_0x2a52f1('0x18')]=function(_0x353eab){const _0x5b8967=_0x2a52f1,_0x5c4ff0=this;this[_0x5b8967('0x1f')]['enqueue'](function(){const _0x4dd999=_0x5b8967;return _0x5c4ff0[_0x4dd999('0xe')][_0x4dd999('0xd')][_0x4dd999('0x18')](_0x353eab)['then'](function(){const _0x288170=_0x4dd999;logger[_0x288170('0x10')](_0x288170('0x8'),_0x353eab);})[_0x4dd999('0x6')](function(_0x5dded8){const _0x24be86=_0x4dd999;logger[_0x24be86('0x10')](JSON[_0x24be86('0xa')](_0x5dded8));});});},Migration[_0x2a52f1('0x14')][_0x2a52f1('0x1a')]=function(_0x213fe5,_0x296ad5){const _0x225ae5=_0x2a52f1,_0x33be42=this;this[_0x225ae5('0x1f')][_0x225ae5('0x5')](function(){const _0x7298=_0x225ae5;return _0x33be42['queryInterface'][_0x7298('0x1a')](_0x213fe5,_0x296ad5)[_0x7298('0x1c')](function(){const _0x17ca86=_0x7298;logger[_0x17ca86('0x10')](_0x17ca86('0x16'),_0x296ad5,_0x213fe5);})[_0x7298('0x6')](function(_0x489302){const _0x3577a1=_0x7298;logger[_0x3577a1('0x10')](util[_0x3577a1('0xf')](_0x489302,{'showHidden':![],'depth':null}));});});},Migration[_0x2a52f1('0x14')][_0x2a52f1('0x1d')]=function(_0x20dfc0,_0x37e8b8,_0x1cce02){const _0x475754=_0x2a52f1,_0x528f53=this;this[_0x475754('0x1f')][_0x475754('0x5')](function(){const _0x52d684=_0x475754;return _0x528f53[_0x52d684('0xe')][_0x52d684('0x1d')](_0x20dfc0,_0x37e8b8,_0x1cce02)[_0x52d684('0x1c')](function(){const _0x5bcae5=_0x52d684;logger[_0x5bcae5('0x10')](_0x5bcae5('0x3'),_0x37e8b8,_0x1cce02,_0x20dfc0);})[_0x52d684('0x6')](function(_0x18cc60){const _0x43a579=_0x52d684;logger['info'](util[_0x43a579('0xf')](_0x18cc60,{'showHidden':![],'depth':null}));});});},Migration[_0x2a52f1('0x14')][_0x2a52f1('0x11')]=function(_0xe457de){const _0x2e893e=_0x2a52f1;this[_0x2e893e('0x1f')][_0x2e893e('0x5')](function(){return _0xe457de();});},module[_0x2a52f1('0x0')]={'up':function(_0x5b7aca){return new Promise(function(_0x3a4fac){const _0x4a2ef6=a981_0x529c,_0x14ddba=new Migration(_0x5b7aca);_0x14ddba[_0x4a2ef6('0x11')](_0x3a4fac);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.9.js b/server/migrations/2.3.9.js index cf6932a..cce98ff 100644 --- a/server/migrations/2.3.9.js +++ b/server/migrations/2.3.9.js @@ -1 +1 @@ -const a982_0x21b0=['sequence','query\x20%s','then','table\x20dropped\x20%s','info','removeColumn','inspect','join','addIndex','util','queryInterface','renameColumn','removeIndex\x20%s\x20%s','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','addColumn','exports','../config/logger','stringify','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','finally','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','final','catch','enqueue','dropTable','prototype','tail','Added\x20column\x20%s\x20to\x20%s','indexName'];(function(_0x503447,_0x21b06e){const _0x44ca59=function(_0x2a9808){while(--_0x2a9808){_0x503447['push'](_0x503447['shift']());}};_0x44ca59(++_0x21b06e);}(a982_0x21b0,0xaf));const a982_0x44ca=function(_0x503447,_0x21b06e){_0x503447=_0x503447-0x0;let _0x44ca59=a982_0x21b0[_0x503447];return _0x44ca59;};const _0x4fd856=a982_0x44ca;'use strict';const util=require(_0x4fd856('0x9')),logger=require(_0x4fd856('0x12'))(_0x4fd856('0x18')),Sequence=function(){};Sequence[_0x4fd856('0x1f')][_0x4fd856('0x1d')]=function(_0x2a9808){const _0x2760e3=_0x4fd856;this[_0x2760e3('0x20')]=this[_0x2760e3('0x20')]?this[_0x2760e3('0x20')][_0x2760e3('0x17')](_0x2a9808):_0x2a9808();};const Migration=function(_0x431d96){const _0x5d4ec5=_0x4fd856;this[_0x5d4ec5('0xa')]=_0x431d96,this[_0x5d4ec5('0x0')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x410a4f,_0x39a405,_0x358af2){const _0x153257=_0x4fd856,_0x3f3b28=this;this[_0x153257('0x0')]['enqueue'](function(){const _0x5ddce9=_0x153257;return _0x3f3b28[_0x5ddce9('0xa')][_0x5ddce9('0x1a')](_0x410a4f,_0x39a405,_0x358af2)[_0x5ddce9('0x2')](function(){const _0x58eda3=_0x5ddce9;logger[_0x58eda3('0x4')](_0x58eda3('0xe'),_0x39a405,_0x410a4f);})[_0x5ddce9('0x1c')](function(_0x1a37bd){const _0x42d597=_0x5ddce9;logger['info'](JSON[_0x42d597('0x13')](_0x1a37bd));});});},Migration['prototype']['addColumn']=function(_0xe41834,_0x459997,_0x222ed5){const _0x32f467=_0x4fd856,_0xf86aed=this;this[_0x32f467('0x0')]['enqueue'](function(){const _0x11c5b8=_0x32f467;return _0xf86aed[_0x11c5b8('0xa')][_0x11c5b8('0x10')](_0xe41834,_0x459997,_0x222ed5)[_0x11c5b8('0x2')](function(){const _0x253264=_0x11c5b8;logger[_0x253264('0x4')](_0x253264('0x21'),_0x459997,_0xe41834);})[_0x11c5b8('0x1c')](function(_0x19bf4f){const _0x9f2abc=_0x11c5b8;logger[_0x9f2abc('0x4')](JSON[_0x9f2abc('0x13')](_0x19bf4f));});});},Migration[_0x4fd856('0x1f')]['dropTable']=function(_0x415654){const _0x402ccb=_0x4fd856,_0x5186b1=this;this['sequence'][_0x402ccb('0x1d')](function(){const _0x8cd724=_0x402ccb;return _0x5186b1[_0x8cd724('0xa')][_0x8cd724('0x1e')](_0x415654,{'force':!![]})['then'](function(){const _0x5dfc1d=_0x8cd724;logger['info'](_0x5dfc1d('0x3'),_0x415654);})[_0x8cd724('0x1c')](function(_0x355e4f){const _0x5085aa=_0x8cd724;logger[_0x5085aa('0x4')](JSON[_0x5085aa('0x13')](_0x355e4f));});});},Migration[_0x4fd856('0x1f')]['addIndex']=function(_0x225fc8,_0x415f06,_0x36885e){const _0x242a3a=_0x4fd856,_0x42d003=this;this[_0x242a3a('0x0')][_0x242a3a('0x1d')](function(){const _0x2ac88b=_0x242a3a;return _0x42d003[_0x2ac88b('0xa')][_0x2ac88b('0x8')](_0x225fc8,_0x415f06,{'indexName':_0x36885e['indexName'],'indicesType':_0x36885e[_0x2ac88b('0x14')]})[_0x2ac88b('0x2')](function(){const _0x212147=_0x2ac88b;logger['info'](_0x212147('0x19'),_0x225fc8,_0x415f06[_0x212147('0x7')](','),_0x36885e[_0x212147('0x22')],_0x36885e[_0x212147('0x14')]);})['catch'](function(_0x51b9b0){const _0x3933dd=_0x2ac88b;logger[_0x3933dd('0x4')](JSON['stringify'](_0x51b9b0));});});},Migration[_0x4fd856('0x1f')]['removeIndex']=function(_0xfbfdd7,_0x5b69dc){const _0x1d17f6=this;this['sequence']['enqueue'](function(){const _0x38025c=a982_0x44ca;return _0x1d17f6[_0x38025c('0xa')]['removeIndex'](_0xfbfdd7,_0x5b69dc)[_0x38025c('0x2')](function(){const _0x405f20=_0x38025c;logger[_0x405f20('0x4')](_0x405f20('0xc'),_0xfbfdd7,_0x5b69dc);})['catch'](function(_0x7e696){const _0x2a9427=_0x38025c;logger[_0x2a9427('0x4')](JSON[_0x2a9427('0x13')](_0x7e696));});});},Migration['prototype'][_0x4fd856('0x16')]=function(_0x20a982){const _0x41c7e3=_0x4fd856,_0x7a4c57=this;this['sequence'][_0x41c7e3('0x1d')](function(){const _0x66e8ce=_0x41c7e3;return _0x7a4c57['queryInterface'][_0x66e8ce('0xd')][_0x66e8ce('0x16')](_0x20a982)[_0x66e8ce('0x2')](function(){const _0x360e78=_0x66e8ce;logger[_0x360e78('0x4')](_0x360e78('0x1'),_0x20a982);})[_0x66e8ce('0x1c')](function(_0x311f7b){const _0x2eb207=_0x66e8ce;logger[_0x2eb207('0x4')](JSON['stringify'](_0x311f7b));});});},Migration[_0x4fd856('0x1f')][_0x4fd856('0x5')]=function(_0x2d99fe,_0x241753){const _0x51e8b5=_0x4fd856,_0x2a83b0=this;this[_0x51e8b5('0x0')][_0x51e8b5('0x1d')](function(){const _0x58ffdd=_0x51e8b5;return _0x2a83b0[_0x58ffdd('0xa')]['removeColumn'](_0x2d99fe,_0x241753)[_0x58ffdd('0x2')](function(){const _0x51af9a=_0x58ffdd;logger[_0x51af9a('0x4')](_0x51af9a('0xf'),_0x241753,_0x2d99fe);})[_0x58ffdd('0x1c')](function(_0x4a0a63){const _0x14f8db=_0x58ffdd;logger[_0x14f8db('0x4')](util[_0x14f8db('0x6')](_0x4a0a63,{'showHidden':![],'depth':null}));});});},Migration[_0x4fd856('0x1f')][_0x4fd856('0xb')]=function(_0x44e9b4,_0x3f69bb,_0x2b97db){const _0x81a4ea=_0x4fd856,_0x2e2a96=this;this[_0x81a4ea('0x0')][_0x81a4ea('0x1d')](function(){const _0x29afd3=_0x81a4ea;return _0x2e2a96[_0x29afd3('0xa')][_0x29afd3('0xb')](_0x44e9b4,_0x3f69bb,_0x2b97db)[_0x29afd3('0x2')](function(){const _0x489fbc=_0x29afd3;logger[_0x489fbc('0x4')](_0x489fbc('0x15'),_0x3f69bb,_0x2b97db,_0x44e9b4);})['catch'](function(_0x434543){const _0x6de258=_0x29afd3;logger[_0x6de258('0x4')](util[_0x6de258('0x6')](_0x434543,{'showHidden':![],'depth':null}));});});},Migration[_0x4fd856('0x1f')][_0x4fd856('0x1b')]=function(_0x40590f){const _0x2f4e8c=_0x4fd856;this['sequence'][_0x2f4e8c('0x1d')](function(){return _0x40590f();});},module[_0x4fd856('0x11')]={'up':function(_0x3cc8e2){return new Promise(function(_0x56a1df){const _0x1b7636=a982_0x44ca,_0x16790d=new Migration(_0x3cc8e2);_0x16790d[_0x1b7636('0x1b')](_0x56a1df);});},'down':function(){}}; \ No newline at end of file +const a982_0x1cba=['queryInterface','removeIndex','final','addIndex','addColumn','stringify','prototype','removeColumn','then','Changed\x20column\x20%s\x20in\x20table\x20%s','query','enqueue','info','changeColumn','indexName','sequence','Added\x20column\x20%s\x20to\x20%s','tail','catch','inspect','dropTable','util','indicesType','removeIndex\x20%s\x20%s','exports','query\x20%s','sequelize','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x50b962,_0x1cba86){const _0x13c956=function(_0x1b1aab){while(--_0x1b1aab){_0x50b962['push'](_0x50b962['shift']());}};_0x13c956(++_0x1cba86);}(a982_0x1cba,0xe0));const a982_0x13c9=function(_0x50b962,_0x1cba86){_0x50b962=_0x50b962-0x0;let _0x13c956=a982_0x1cba[_0x50b962];return _0x13c956;};const _0x29d44a=a982_0x13c9;'use strict';const util=require(_0x29d44a('0x7')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x29d44a('0x16')]['enqueue']=function(_0x1b1aab){const _0x519538=_0x29d44a;this[_0x519538('0x3')]=this[_0x519538('0x3')]?this[_0x519538('0x3')]['finally'](_0x1b1aab):_0x1b1aab();};const Migration=function(_0x53c040){const _0x5efdd0=_0x29d44a;this[_0x5efdd0('0x10')]=_0x53c040,this[_0x5efdd0('0x1')]=new Sequence();};Migration[_0x29d44a('0x16')]['changeColumn']=function(_0x42114d,_0x324139,_0x1a722a){const _0x43811c=_0x29d44a,_0x338666=this;this['sequence'][_0x43811c('0x1b')](function(){const _0x285e82=_0x43811c;return _0x338666[_0x285e82('0x10')][_0x285e82('0x1d')](_0x42114d,_0x324139,_0x1a722a)[_0x285e82('0x18')](function(){const _0xc272e4=_0x285e82;logger[_0xc272e4('0x1c')](_0xc272e4('0x19'),_0x324139,_0x42114d);})[_0x285e82('0x4')](function(_0x54cebd){const _0x1edcf2=_0x285e82;logger[_0x1edcf2('0x1c')](JSON['stringify'](_0x54cebd));});});},Migration['prototype'][_0x29d44a('0x14')]=function(_0x280a09,_0x3c2947,_0x476706){const _0x1a131d=_0x29d44a,_0x4633eb=this;this[_0x1a131d('0x1')]['enqueue'](function(){const _0x4944e1=_0x1a131d;return _0x4633eb[_0x4944e1('0x10')][_0x4944e1('0x14')](_0x280a09,_0x3c2947,_0x476706)[_0x4944e1('0x18')](function(){const _0x480ecb=_0x4944e1;logger[_0x480ecb('0x1c')](_0x480ecb('0x2'),_0x3c2947,_0x280a09);})['catch'](function(_0x5c2081){const _0x26a631=_0x4944e1;logger[_0x26a631('0x1c')](JSON[_0x26a631('0x15')](_0x5c2081));});});},Migration[_0x29d44a('0x16')][_0x29d44a('0x6')]=function(_0x4aeaa2){const _0x135131=_0x29d44a,_0x23ce9e=this;this[_0x135131('0x1')][_0x135131('0x1b')](function(){const _0x1884d6=_0x135131;return _0x23ce9e[_0x1884d6('0x10')][_0x1884d6('0x6')](_0x4aeaa2,{'force':!![]})[_0x1884d6('0x18')](function(){const _0x34a963=_0x1884d6;logger[_0x34a963('0x1c')](_0x34a963('0xd'),_0x4aeaa2);})[_0x1884d6('0x4')](function(_0x3a00b4){const _0x15b513=_0x1884d6;logger[_0x15b513('0x1c')](JSON[_0x15b513('0x15')](_0x3a00b4));});});},Migration[_0x29d44a('0x16')]['addIndex']=function(_0x2228f9,_0x3ad885,_0x49fd4d){const _0xb7df68=_0x29d44a,_0x28dcb1=this;this[_0xb7df68('0x1')][_0xb7df68('0x1b')](function(){const _0x3f776c=_0xb7df68;return _0x28dcb1[_0x3f776c('0x10')][_0x3f776c('0x13')](_0x2228f9,_0x3ad885,{'indexName':_0x49fd4d[_0x3f776c('0x0')],'indicesType':_0x49fd4d['indicesType']})[_0x3f776c('0x18')](function(){const _0x2fd3cb=_0x3f776c;logger[_0x2fd3cb('0x1c')](_0x2fd3cb('0xe'),_0x2228f9,_0x3ad885['join'](','),_0x49fd4d['indexName'],_0x49fd4d[_0x2fd3cb('0x8')]);})[_0x3f776c('0x4')](function(_0x38b430){const _0x457002=_0x3f776c;logger[_0x457002('0x1c')](JSON[_0x457002('0x15')](_0x38b430));});});},Migration[_0x29d44a('0x16')][_0x29d44a('0x11')]=function(_0x335a07,_0x2249d9){const _0x1baa02=_0x29d44a,_0x2451e8=this;this[_0x1baa02('0x1')][_0x1baa02('0x1b')](function(){const _0x3351fc=_0x1baa02;return _0x2451e8[_0x3351fc('0x10')][_0x3351fc('0x11')](_0x335a07,_0x2249d9)['then'](function(){const _0x22f2c2=_0x3351fc;logger[_0x22f2c2('0x1c')](_0x22f2c2('0x9'),_0x335a07,_0x2249d9);})['catch'](function(_0x2bc039){const _0x54caad=_0x3351fc;logger[_0x54caad('0x1c')](JSON[_0x54caad('0x15')](_0x2bc039));});});},Migration[_0x29d44a('0x16')][_0x29d44a('0x1a')]=function(_0x4bb98b){const _0x4c7ec6=_0x29d44a,_0x3bf9a9=this;this[_0x4c7ec6('0x1')]['enqueue'](function(){const _0x502900=_0x4c7ec6;return _0x3bf9a9[_0x502900('0x10')][_0x502900('0xc')][_0x502900('0x1a')](_0x4bb98b)[_0x502900('0x18')](function(){const _0xa75037=_0x502900;logger[_0xa75037('0x1c')](_0xa75037('0xb'),_0x4bb98b);})[_0x502900('0x4')](function(_0x1cc878){const _0x45893c=_0x502900;logger['info'](JSON[_0x45893c('0x15')](_0x1cc878));});});},Migration[_0x29d44a('0x16')]['removeColumn']=function(_0x11b036,_0x386d89){const _0x15acc3=_0x29d44a,_0xac36b5=this;this[_0x15acc3('0x1')]['enqueue'](function(){const _0x26f0d9=_0x15acc3;return _0xac36b5[_0x26f0d9('0x10')][_0x26f0d9('0x17')](_0x11b036,_0x386d89)[_0x26f0d9('0x18')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x386d89,_0x11b036);})[_0x26f0d9('0x4')](function(_0x32a3c8){const _0x35f458=_0x26f0d9;logger[_0x35f458('0x1c')](util['inspect'](_0x32a3c8,{'showHidden':![],'depth':null}));});});},Migration[_0x29d44a('0x16')]['renameColumn']=function(_0x359ed8,_0x5a50ad,_0x124c67){const _0x471a1c=_0x29d44a,_0x34699e=this;this[_0x471a1c('0x1')][_0x471a1c('0x1b')](function(){const _0x14c810=_0x471a1c;return _0x34699e['queryInterface']['renameColumn'](_0x359ed8,_0x5a50ad,_0x124c67)[_0x14c810('0x18')](function(){const _0x18d882=_0x14c810;logger['info'](_0x18d882('0xf'),_0x5a50ad,_0x124c67,_0x359ed8);})['catch'](function(_0x5bf7b1){const _0x3dda7d=_0x14c810;logger[_0x3dda7d('0x1c')](util[_0x3dda7d('0x5')](_0x5bf7b1,{'showHidden':![],'depth':null}));});});},Migration[_0x29d44a('0x16')][_0x29d44a('0x12')]=function(_0x3f70d0){const _0x1d4001=_0x29d44a;this[_0x1d4001('0x1')]['enqueue'](function(){return _0x3f70d0();});},module[_0x29d44a('0xa')]={'up':function(_0x3f3328){return new Promise(function(_0x2947f4){const _0x276fda=a982_0x13c9,_0x164508=new Migration(_0x3f3328);_0x164508[_0x276fda('0x12')](_0x2947f4);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.91.js b/server/migrations/2.3.91.js index 2b0a14a..1d3e908 100644 --- a/server/migrations/2.3.91.js +++ b/server/migrations/2.3.91.js @@ -1 +1 @@ -const a983_0x2b4c=['then','changeColumn','info','removeColumn','prototype','dropTable','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','tail','final','stringify','removeIndex\x20%s\x20%s','renameColumn','enqueue','finally','addIndex\x20%s\x20%s\x20%s','removeIndex','queryInterface','table\x20dropped\x20%s','catch','sequelize','addColumn','exports','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','Removed\x20column\x20%s\x20from\x20%s','sequence','sipcallid','query','inspect','join'];(function(_0x48cf0a,_0x2b4c57){const _0x674946=function(_0xcf32cc){while(--_0xcf32cc){_0x48cf0a['push'](_0x48cf0a['shift']());}};_0x674946(++_0x2b4c57);}(a983_0x2b4c,0xda));const a983_0x6749=function(_0x48cf0a,_0x2b4c57){_0x48cf0a=_0x48cf0a-0x0;let _0x674946=a983_0x2b4c[_0x48cf0a];return _0x674946;};const _0x1c76af=a983_0x6749;'use strict';const util=require('util'),logger=require(_0x1c76af('0x6'))('migration'),Sequence=function(){};Sequence[_0x1c76af('0x11')][_0x1c76af('0x1b')]=function(_0xcf32cc){const _0xba2eb=_0x1c76af;this[_0xba2eb('0x16')]=this[_0xba2eb('0x16')]?this[_0xba2eb('0x16')][_0xba2eb('0x1c')](_0xcf32cc):_0xcf32cc();};const Migration=function(_0x2d103c){const _0x2fe055=_0x1c76af;this['queryInterface']=_0x2d103c,this[_0x2fe055('0x8')]=new Sequence();};Migration[_0x1c76af('0x11')][_0x1c76af('0xe')]=function(_0x4071cf,_0x47e8af,_0x583a9b){const _0x22636c=_0x1c76af,_0x589675=this;this['sequence'][_0x22636c('0x1b')](function(){const _0x1f1bc8=_0x22636c;return _0x589675['queryInterface'][_0x1f1bc8('0xe')](_0x4071cf,_0x47e8af,_0x583a9b)['then'](function(){const _0x8cfb55=_0x1f1bc8;logger[_0x8cfb55('0xf')](_0x8cfb55('0x14'),_0x47e8af,_0x4071cf);})[_0x1f1bc8('0x0')](function(_0x44b370){const _0x43d741=_0x1f1bc8;logger[_0x43d741('0xf')](JSON[_0x43d741('0x18')](_0x44b370));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x2')]=function(_0x1a43aa,_0x1e7439,_0x28d0d1){const _0x4365ef=_0x1c76af,_0x2fb261=this;this['sequence'][_0x4365ef('0x1b')](function(){const _0x3d8523=_0x4365ef;return _0x2fb261[_0x3d8523('0x1f')][_0x3d8523('0x2')](_0x1a43aa,_0x1e7439,_0x28d0d1)[_0x3d8523('0xd')](function(){const _0x52ce30=_0x3d8523;logger[_0x52ce30('0xf')](_0x52ce30('0x4'),_0x1e7439,_0x1a43aa);})[_0x3d8523('0x0')](function(_0x5354de){const _0x3eff8b=_0x3d8523;logger[_0x3eff8b('0xf')](JSON[_0x3eff8b('0x18')](_0x5354de));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x12')]=function(_0x20b029){const _0x4a7226=_0x1c76af,_0x495a74=this;this[_0x4a7226('0x8')]['enqueue'](function(){const _0x367b68=_0x4a7226;return _0x495a74[_0x367b68('0x1f')][_0x367b68('0x12')](_0x20b029,{'force':!![]})[_0x367b68('0xd')](function(){const _0x18b916=_0x367b68;logger['info'](_0x18b916('0x20'),_0x20b029);})[_0x367b68('0x0')](function(_0x3203b3){const _0x2ae9b6=_0x367b68;logger['info'](JSON[_0x2ae9b6('0x18')](_0x3203b3));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x13')]=function(_0x380695,_0x5693c1,_0x13ae2a){const _0xe7445b=_0x1c76af,_0x48fe52=this;this[_0xe7445b('0x8')][_0xe7445b('0x1b')](function(){const _0x2bd19a=_0xe7445b;return _0x48fe52[_0x2bd19a('0x1f')][_0x2bd19a('0x13')](_0x380695,_0x5693c1,{'indexName':_0x13ae2a})['then'](function(){const _0x2961eb=_0x2bd19a;logger[_0x2961eb('0xf')](_0x2961eb('0x1d'),_0x380695,_0x5693c1[_0x2961eb('0xc')](','),_0x13ae2a);})[_0x2bd19a('0x0')](function(_0x1e2848){const _0x2d8a6a=_0x2bd19a;logger[_0x2d8a6a('0xf')](JSON['stringify'](_0x1e2848));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x1e')]=function(_0x1fdbe4,_0x170774){const _0x3743ae=this;this['sequence']['enqueue'](function(){const _0x93bc5f=a983_0x6749;return _0x3743ae['queryInterface']['removeIndex'](_0x1fdbe4,_0x170774)[_0x93bc5f('0xd')](function(){const _0x2c27fd=_0x93bc5f;logger['info'](_0x2c27fd('0x19'),_0x1fdbe4,_0x170774);})['catch'](function(_0x3f0542){const _0x56b2ef=_0x93bc5f;logger['info'](JSON[_0x56b2ef('0x18')](_0x3f0542));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0xa')]=function(_0x37b022){const _0xa01899=_0x1c76af,_0x2d6948=this;this[_0xa01899('0x8')][_0xa01899('0x1b')](function(){const _0x46d854=_0xa01899;return _0x2d6948['queryInterface'][_0x46d854('0x1')][_0x46d854('0xa')](_0x37b022)[_0x46d854('0xd')](function(){const _0x98df8e=_0x46d854;logger['info'](_0x98df8e('0x15'),_0x37b022);})[_0x46d854('0x0')](function(_0x51d4f3){const _0x5b56c2=_0x46d854;logger['info'](JSON[_0x5b56c2('0x18')](_0x51d4f3));});});},Migration[_0x1c76af('0x11')]['removeColumn']=function(_0x33eab5,_0x593b95){const _0x3e7fa6=_0x1c76af,_0x1d708f=this;this[_0x3e7fa6('0x8')]['enqueue'](function(){const _0x4b5b26=_0x3e7fa6;return _0x1d708f[_0x4b5b26('0x1f')][_0x4b5b26('0x10')](_0x33eab5,_0x593b95)[_0x4b5b26('0xd')](function(){const _0x18919f=_0x4b5b26;logger['info'](_0x18919f('0x7'),_0x593b95,_0x33eab5);})[_0x4b5b26('0x0')](function(_0x17505f){const _0x1446fd=_0x4b5b26;logger[_0x1446fd('0xf')](util[_0x1446fd('0xb')](_0x17505f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1c76af('0x1a')]=function(_0x2ce704,_0xdc0130,_0x3ecec4){const _0x37a6fb=_0x1c76af,_0x983f41=this;this[_0x37a6fb('0x8')][_0x37a6fb('0x1b')](function(){const _0x49179f=_0x37a6fb;return _0x983f41['queryInterface'][_0x49179f('0x1a')](_0x2ce704,_0xdc0130,_0x3ecec4)[_0x49179f('0xd')](function(){const _0x246822=_0x49179f;logger[_0x246822('0xf')](_0x246822('0x5'),_0xdc0130,_0x3ecec4,_0x2ce704);})[_0x49179f('0x0')](function(_0x56c772){const _0x4ed0f3=_0x49179f;logger[_0x4ed0f3('0xf')](util['inspect'](_0x56c772,{'showHidden':![],'depth':null}));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x17')]=function(_0x278534){const _0x4a901d=_0x1c76af;this[_0x4a901d('0x8')]['enqueue'](function(){return _0x278534();});},module[_0x1c76af('0x3')]={'up':function(_0x4149ce,_0x29aca6){return new Promise(function(_0x543758){const _0x1e170d=a983_0x6749,_0x33a6ec=new Migration(_0x4149ce);_0x33a6ec[_0x1e170d('0x2')]('report_call',_0x1e170d('0x9'),{'type':_0x29aca6['STRING']}),_0x33a6ec['final'](_0x543758);});},'down':function(){}}; \ No newline at end of file +const a983_0x4685=['../config/logger','dropTable','join','migration','prototype','queryInterface','STRING','util','catch','final','addColumn','report_call','inspect','addIndex','tail','Removed\x20column\x20%s\x20from\x20%s','removeColumn','exports','renameColumn','query','sequence','changeColumn','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','removeIndex','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','then','sipcallid','enqueue','finally','query\x20%s','info','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x3a9dea,_0x468504){const _0x2f6285=function(_0x3b20d6){while(--_0x3b20d6){_0x3a9dea['push'](_0x3a9dea['shift']());}};_0x2f6285(++_0x468504);}(a983_0x4685,0x1b3));const a983_0x2f62=function(_0x3a9dea,_0x468504){_0x3a9dea=_0x3a9dea-0x0;let _0x2f6285=a983_0x4685[_0x3a9dea];return _0x2f6285;};const _0x5e9a31=a983_0x2f62;'use strict';const util=require(_0x5e9a31('0x4')),logger=require(_0x5e9a31('0x21'))(_0x5e9a31('0x0')),Sequence=function(){};Sequence[_0x5e9a31('0x1')][_0x5e9a31('0x1b')]=function(_0x3b20d6){const _0x49d834=_0x5e9a31;this[_0x49d834('0xb')]=this['tail']?this['tail'][_0x49d834('0x1c')](_0x3b20d6):_0x3b20d6();};const Migration=function(_0x35f0e6){const _0x18acf4=_0x5e9a31;this[_0x18acf4('0x2')]=_0x35f0e6,this[_0x18acf4('0x11')]=new Sequence();};Migration[_0x5e9a31('0x1')][_0x5e9a31('0x12')]=function(_0x2ec9ad,_0x3ee9e8,_0x488d7a){const _0x462364=_0x5e9a31,_0x339845=this;this['sequence'][_0x462364('0x1b')](function(){const _0x462839=_0x462364;return _0x339845['queryInterface'][_0x462839('0x12')](_0x2ec9ad,_0x3ee9e8,_0x488d7a)[_0x462839('0x19')](function(){const _0x1c0c01=_0x462839;logger[_0x1c0c01('0x1e')](_0x1c0c01('0x20'),_0x3ee9e8,_0x2ec9ad);})[_0x462839('0x5')](function(_0x3c33de){const _0x424887=_0x462839;logger[_0x424887('0x1e')](JSON[_0x424887('0x15')](_0x3c33de));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0x7')]=function(_0x3ee741,_0x329577,_0x476b5a){const _0x7e7f71=_0x5e9a31,_0x1829ca=this;this[_0x7e7f71('0x11')][_0x7e7f71('0x1b')](function(){const _0x581e17=_0x7e7f71;return _0x1829ca[_0x581e17('0x2')][_0x581e17('0x7')](_0x3ee741,_0x329577,_0x476b5a)[_0x581e17('0x19')](function(){const _0x51042b=_0x581e17;logger[_0x51042b('0x1e')](_0x51042b('0x18'),_0x329577,_0x3ee741);})[_0x581e17('0x5')](function(_0x2c9283){const _0x4d7ac6=_0x581e17;logger['info'](JSON[_0x4d7ac6('0x15')](_0x2c9283));});});},Migration[_0x5e9a31('0x1')]['dropTable']=function(_0xf642dd){const _0x72e460=_0x5e9a31,_0x59f135=this;this['sequence'][_0x72e460('0x1b')](function(){const _0x3b375c=_0x72e460;return _0x59f135['queryInterface'][_0x3b375c('0x22')](_0xf642dd,{'force':!![]})[_0x3b375c('0x19')](function(){const _0x462ecf=_0x3b375c;logger[_0x462ecf('0x1e')]('table\x20dropped\x20%s',_0xf642dd);})[_0x3b375c('0x5')](function(_0x56dcdd){const _0x509614=_0x3b375c;logger[_0x509614('0x1e')](JSON[_0x509614('0x15')](_0x56dcdd));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0xa')]=function(_0x45c106,_0x5c25d5,_0x2203a6){const _0x2cb829=this;this['sequence']['enqueue'](function(){const _0x332088=a983_0x2f62;return _0x2cb829[_0x332088('0x2')][_0x332088('0xa')](_0x45c106,_0x5c25d5,{'indexName':_0x2203a6})['then'](function(){const _0x14ea0d=_0x332088;logger[_0x14ea0d('0x1e')](_0x14ea0d('0x17'),_0x45c106,_0x5c25d5[_0x14ea0d('0x23')](','),_0x2203a6);})['catch'](function(_0x4e9cfb){const _0x5adf35=_0x332088;logger[_0x5adf35('0x1e')](JSON[_0x5adf35('0x15')](_0x4e9cfb));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0x16')]=function(_0x38663b,_0x701195){const _0x19ba36=_0x5e9a31,_0x46e067=this;this[_0x19ba36('0x11')]['enqueue'](function(){const _0x353c3f=_0x19ba36;return _0x46e067[_0x353c3f('0x2')][_0x353c3f('0x16')](_0x38663b,_0x701195)[_0x353c3f('0x19')](function(){const _0x312772=_0x353c3f;logger[_0x312772('0x1e')](_0x312772('0x13'),_0x38663b,_0x701195);})[_0x353c3f('0x5')](function(_0x44ff53){const _0x2ed093=_0x353c3f;logger[_0x2ed093('0x1e')](JSON[_0x2ed093('0x15')](_0x44ff53));});});},Migration['prototype'][_0x5e9a31('0x10')]=function(_0x2bba97){const _0x21f440=_0x5e9a31,_0xb31051=this;this[_0x21f440('0x11')][_0x21f440('0x1b')](function(){const _0x4dbd95=_0x21f440;return _0xb31051[_0x4dbd95('0x2')][_0x4dbd95('0x1f')][_0x4dbd95('0x10')](_0x2bba97)[_0x4dbd95('0x19')](function(){const _0x3b0103=_0x4dbd95;logger['info'](_0x3b0103('0x1d'),_0x2bba97);})['catch'](function(_0x591004){const _0x4a9ccb=_0x4dbd95;logger[_0x4a9ccb('0x1e')](JSON[_0x4a9ccb('0x15')](_0x591004));});});},Migration['prototype'][_0x5e9a31('0xd')]=function(_0xc0690d,_0x9efb23){const _0x3c70e0=_0x5e9a31,_0x441a17=this;this['sequence'][_0x3c70e0('0x1b')](function(){const _0x7595ff=_0x3c70e0;return _0x441a17['queryInterface'][_0x7595ff('0xd')](_0xc0690d,_0x9efb23)['then'](function(){const _0x43adb2=_0x7595ff;logger[_0x43adb2('0x1e')](_0x43adb2('0xc'),_0x9efb23,_0xc0690d);})[_0x7595ff('0x5')](function(_0x202099){const _0xcfb8e7=_0x7595ff;logger['info'](util[_0xcfb8e7('0x9')](_0x202099,{'showHidden':![],'depth':null}));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0xf')]=function(_0x21baff,_0x39a09e,_0x5c0c31){const _0x35711f=_0x5e9a31,_0x2b6b45=this;this[_0x35711f('0x11')]['enqueue'](function(){const _0x108311=_0x35711f;return _0x2b6b45['queryInterface']['renameColumn'](_0x21baff,_0x39a09e,_0x5c0c31)['then'](function(){const _0x31fb8d=a983_0x2f62;logger[_0x31fb8d('0x1e')](_0x31fb8d('0x14'),_0x39a09e,_0x5c0c31,_0x21baff);})[_0x108311('0x5')](function(_0x5d55f5){const _0x563665=_0x108311;logger[_0x563665('0x1e')](util[_0x563665('0x9')](_0x5d55f5,{'showHidden':![],'depth':null}));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0x6')]=function(_0x586310){this['sequence']['enqueue'](function(){return _0x586310();});},module[_0x5e9a31('0xe')]={'up':function(_0x893dc2,_0x9adb5){return new Promise(function(_0x3edca3){const _0x3b3741=a983_0x2f62,_0x3ee5eb=new Migration(_0x893dc2);_0x3ee5eb['addColumn'](_0x3b3741('0x8'),_0x3b3741('0x1a'),{'type':_0x9adb5[_0x3b3741('0x3')]}),_0x3ee5eb[_0x3b3741('0x6')](_0x3edca3);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.92.js b/server/migrations/2.3.92.js index ce2d4ed..2a599e0 100644 --- a/server/migrations/2.3.92.js +++ b/server/migrations/2.3.92.js @@ -1 +1 @@ -const a984_0x2afc=['removeColumn','../config/logger','then','util','removeIndex\x20%s\x20%s','join','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','info','changeColumn','dropTable','sequence','addColumn','inspect','table\x20dropped\x20%s','migration','tail','enqueue','Added\x20column\x20%s\x20to\x20%s','prototype','addIndex','queryInterface','exports','query','final','stringify','Removed\x20column\x20%s\x20from\x20%s','removeIndex','catch'];(function(_0x492253,_0x2afcbd){const _0x3c19d5=function(_0x4a285b){while(--_0x4a285b){_0x492253['push'](_0x492253['shift']());}};_0x3c19d5(++_0x2afcbd);}(a984_0x2afc,0x10b));const a984_0x3c19=function(_0x492253,_0x2afcbd){_0x492253=_0x492253-0x0;let _0x3c19d5=a984_0x2afc[_0x492253];return _0x3c19d5;};const _0x352fab=a984_0x3c19;'use strict';const util=require(_0x352fab('0x1a')),logger=require(_0x352fab('0x18'))(_0x352fab('0x9')),Sequence=function(){};Sequence['prototype'][_0x352fab('0xb')]=function(_0x4a285b){const _0x4b4c39=_0x352fab;this[_0x4b4c39('0xa')]=this['tail']?this[_0x4b4c39('0xa')]['finally'](_0x4a285b):_0x4a285b();};const Migration=function(_0x5cb29c){const _0x8957b1=_0x352fab;this[_0x8957b1('0xf')]=_0x5cb29c,this[_0x8957b1('0x5')]=new Sequence();};Migration[_0x352fab('0xd')]['changeColumn']=function(_0x157503,_0x5801ae,_0x51be3a){const _0x4e4a79=_0x352fab,_0x4b251f=this;this[_0x4e4a79('0x5')][_0x4e4a79('0xb')](function(){const _0x408bc5=_0x4e4a79;return _0x4b251f[_0x408bc5('0xf')][_0x408bc5('0x3')](_0x157503,_0x5801ae,_0x51be3a)[_0x408bc5('0x19')](function(){const _0x5b9d59=_0x408bc5;logger['info'](_0x5b9d59('0x1'),_0x5801ae,_0x157503);})[_0x408bc5('0x16')](function(_0xc2aff1){const _0x35f6b7=_0x408bc5;logger[_0x35f6b7('0x2')](JSON[_0x35f6b7('0x13')](_0xc2aff1));});});},Migration[_0x352fab('0xd')][_0x352fab('0x6')]=function(_0x2d1079,_0x47006d,_0xae2f3a){const _0x48fa6c=_0x352fab,_0x3beea4=this;this['sequence'][_0x48fa6c('0xb')](function(){const _0x5341d3=_0x48fa6c;return _0x3beea4[_0x5341d3('0xf')][_0x5341d3('0x6')](_0x2d1079,_0x47006d,_0xae2f3a)[_0x5341d3('0x19')](function(){const _0x572bbf=_0x5341d3;logger['info'](_0x572bbf('0xc'),_0x47006d,_0x2d1079);})[_0x5341d3('0x16')](function(_0x38c3a8){const _0x4ee245=_0x5341d3;logger[_0x4ee245('0x2')](JSON[_0x4ee245('0x13')](_0x38c3a8));});});},Migration[_0x352fab('0xd')][_0x352fab('0x4')]=function(_0x3c789f){const _0x25ad4a=_0x352fab,_0x4119d7=this;this[_0x25ad4a('0x5')][_0x25ad4a('0xb')](function(){const _0x5eb217=_0x25ad4a;return _0x4119d7[_0x5eb217('0xf')][_0x5eb217('0x4')](_0x3c789f,{'force':!![]})[_0x5eb217('0x19')](function(){const _0x536118=_0x5eb217;logger['info'](_0x536118('0x8'),_0x3c789f);})[_0x5eb217('0x16')](function(_0x5665b8){logger['info'](JSON['stringify'](_0x5665b8));});});},Migration[_0x352fab('0xd')][_0x352fab('0xe')]=function(_0x4670c0,_0x2bb6ed,_0x36a146){const _0x286300=_0x352fab,_0x2f0b22=this;this[_0x286300('0x5')][_0x286300('0xb')](function(){const _0x204d99=_0x286300;return _0x2f0b22[_0x204d99('0xf')]['addIndex'](_0x4670c0,_0x2bb6ed,{'indexName':_0x36a146})['then'](function(){const _0x339b9a=_0x204d99;logger[_0x339b9a('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x4670c0,_0x2bb6ed[_0x339b9a('0x1c')](','),_0x36a146);})[_0x204d99('0x16')](function(_0x36285f){const _0x3aed66=_0x204d99;logger[_0x3aed66('0x2')](JSON[_0x3aed66('0x13')](_0x36285f));});});},Migration[_0x352fab('0xd')][_0x352fab('0x15')]=function(_0x283715,_0x27e44d){const _0x242a10=_0x352fab,_0x1813a4=this;this[_0x242a10('0x5')]['enqueue'](function(){const _0x460288=_0x242a10;return _0x1813a4[_0x460288('0xf')][_0x460288('0x15')](_0x283715,_0x27e44d)[_0x460288('0x19')](function(){const _0x193c2a=_0x460288;logger[_0x193c2a('0x2')](_0x193c2a('0x1b'),_0x283715,_0x27e44d);})['catch'](function(_0x32d830){const _0x3d56d1=_0x460288;logger[_0x3d56d1('0x2')](JSON[_0x3d56d1('0x13')](_0x32d830));});});},Migration['prototype'][_0x352fab('0x11')]=function(_0x34b4a6){const _0x1bd90d=_0x352fab,_0x17f7d8=this;this[_0x1bd90d('0x5')][_0x1bd90d('0xb')](function(){const _0x528298=_0x1bd90d;return _0x17f7d8['queryInterface']['sequelize'][_0x528298('0x11')](_0x34b4a6)[_0x528298('0x19')](function(){logger['info']('query\x20%s',_0x34b4a6);})[_0x528298('0x16')](function(_0x4a1612){const _0x576132=_0x528298;logger[_0x576132('0x2')](JSON['stringify'](_0x4a1612));});});},Migration[_0x352fab('0xd')][_0x352fab('0x17')]=function(_0x4e61c2,_0x138c96){const _0x198b68=_0x352fab,_0xc5fa5b=this;this[_0x198b68('0x5')][_0x198b68('0xb')](function(){const _0x227c39=_0x198b68;return _0xc5fa5b[_0x227c39('0xf')][_0x227c39('0x17')](_0x4e61c2,_0x138c96)[_0x227c39('0x19')](function(){const _0x11c324=_0x227c39;logger[_0x11c324('0x2')](_0x11c324('0x14'),_0x138c96,_0x4e61c2);})['catch'](function(_0x5b57bb){const _0x49e189=_0x227c39;logger['info'](util[_0x49e189('0x7')](_0x5b57bb,{'showHidden':![],'depth':null}));});});},Migration[_0x352fab('0xd')]['renameColumn']=function(_0x14e24c,_0x248004,_0x382a34){const _0x3147e1=_0x352fab,_0x56af94=this;this[_0x3147e1('0x5')][_0x3147e1('0xb')](function(){const _0x49f20e=_0x3147e1;return _0x56af94[_0x49f20e('0xf')][_0x49f20e('0x0')](_0x14e24c,_0x248004,_0x382a34)[_0x49f20e('0x19')](function(){const _0x4d423c=_0x49f20e;logger[_0x4d423c('0x2')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x248004,_0x382a34,_0x14e24c);})[_0x49f20e('0x16')](function(_0x3a4f1d){const _0x5bd630=_0x49f20e;logger[_0x5bd630('0x2')](util[_0x5bd630('0x7')](_0x3a4f1d,{'showHidden':![],'depth':null}));});});},Migration[_0x352fab('0xd')][_0x352fab('0x12')]=function(_0x5d091a){const _0x39a581=_0x352fab;this[_0x39a581('0x5')][_0x39a581('0xb')](function(){return _0x5d091a();});},module[_0x352fab('0x10')]={'up':function(_0x21226e){return new Promise(function(_0x27eec0){const _0x3774ef=new Migration(_0x21226e);_0x3774ef['final'](_0x27eec0);});},'down':function(){}}; \ No newline at end of file +const a984_0x292f=['changeColumn','../config/logger','stringify','Removed\x20column\x20%s\x20from\x20%s','renameColumn','query','finally','join','addColumn','addIndex','info','query\x20%s','table\x20dropped\x20%s','exports','addIndex\x20%s\x20%s\x20%s','removeColumn','queryInterface','catch','then','dropTable','sequelize','prototype','final','Added\x20column\x20%s\x20to\x20%s','removeIndex','util','removeIndex\x20%s\x20%s','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','enqueue','migration'];(function(_0x40c729,_0x292f6d){const _0x20b4d6=function(_0x591fd0){while(--_0x591fd0){_0x40c729['push'](_0x40c729['shift']());}};_0x20b4d6(++_0x292f6d);}(a984_0x292f,0xe5));const a984_0x20b4=function(_0x40c729,_0x292f6d){_0x40c729=_0x40c729-0x0;let _0x20b4d6=a984_0x292f[_0x40c729];return _0x20b4d6;};const _0x467145=a984_0x20b4;'use strict';const util=require(_0x467145('0x14')),logger=require(_0x467145('0x1c'))(_0x467145('0x1a')),Sequence=function(){};Sequence['prototype'][_0x467145('0x19')]=function(_0x591fd0){const _0x1741d3=_0x467145;this['tail']=this['tail']?this['tail'][_0x1741d3('0x1')](_0x591fd0):_0x591fd0();};const Migration=function(_0x4586a4){const _0x37e542=_0x467145;this['queryInterface']=_0x4586a4,this[_0x37e542('0x16')]=new Sequence();};Migration[_0x467145('0x10')]['changeColumn']=function(_0x2c5912,_0xe8b118,_0x1b0ff1){const _0x5cc738=_0x467145,_0xc66507=this;this[_0x5cc738('0x16')]['enqueue'](function(){const _0x1fa8d8=_0x5cc738;return _0xc66507[_0x1fa8d8('0xb')][_0x1fa8d8('0x1b')](_0x2c5912,_0xe8b118,_0x1b0ff1)[_0x1fa8d8('0xd')](function(){const _0x1ec034=_0x1fa8d8;logger[_0x1ec034('0x5')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xe8b118,_0x2c5912);})['catch'](function(_0x283fa0){const _0x3695af=_0x1fa8d8;logger[_0x3695af('0x5')](JSON[_0x3695af('0x1d')](_0x283fa0));});});},Migration[_0x467145('0x10')][_0x467145('0x3')]=function(_0x551d8a,_0x499f4a,_0xcafec2){const _0x49cccf=_0x467145,_0x417897=this;this[_0x49cccf('0x16')][_0x49cccf('0x19')](function(){const _0x121dc6=_0x49cccf;return _0x417897[_0x121dc6('0xb')][_0x121dc6('0x3')](_0x551d8a,_0x499f4a,_0xcafec2)[_0x121dc6('0xd')](function(){const _0x524cf4=_0x121dc6;logger['info'](_0x524cf4('0x12'),_0x499f4a,_0x551d8a);})[_0x121dc6('0xc')](function(_0x5ed5d4){const _0x4e590b=_0x121dc6;logger[_0x4e590b('0x5')](JSON['stringify'](_0x5ed5d4));});});},Migration[_0x467145('0x10')]['dropTable']=function(_0x48a2af){const _0x56db25=_0x467145,_0x2df55d=this;this[_0x56db25('0x16')][_0x56db25('0x19')](function(){const _0x26678a=_0x56db25;return _0x2df55d[_0x26678a('0xb')][_0x26678a('0xe')](_0x48a2af,{'force':!![]})['then'](function(){const _0x432f0e=_0x26678a;logger['info'](_0x432f0e('0x7'),_0x48a2af);})[_0x26678a('0xc')](function(_0x295e48){const _0x4c3b87=_0x26678a;logger[_0x4c3b87('0x5')](JSON[_0x4c3b87('0x1d')](_0x295e48));});});},Migration[_0x467145('0x10')]['addIndex']=function(_0xdfca98,_0x566677,_0xc63deb){const _0x3f72d7=_0x467145,_0x1f3c22=this;this[_0x3f72d7('0x16')][_0x3f72d7('0x19')](function(){const _0x15b140=_0x3f72d7;return _0x1f3c22['queryInterface'][_0x15b140('0x4')](_0xdfca98,_0x566677,{'indexName':_0xc63deb})[_0x15b140('0xd')](function(){const _0x5b7e23=_0x15b140;logger[_0x5b7e23('0x5')](_0x5b7e23('0x9'),_0xdfca98,_0x566677[_0x5b7e23('0x2')](','),_0xc63deb);})[_0x15b140('0xc')](function(_0x3b0566){const _0x39791e=_0x15b140;logger[_0x39791e('0x5')](JSON[_0x39791e('0x1d')](_0x3b0566));});});},Migration[_0x467145('0x10')]['removeIndex']=function(_0xebb04b,_0x279df7){const _0x3d1aa5=_0x467145,_0x449a89=this;this[_0x3d1aa5('0x16')][_0x3d1aa5('0x19')](function(){const _0x570e9c=_0x3d1aa5;return _0x449a89['queryInterface'][_0x570e9c('0x13')](_0xebb04b,_0x279df7)[_0x570e9c('0xd')](function(){const _0x28cb01=_0x570e9c;logger['info'](_0x28cb01('0x15'),_0xebb04b,_0x279df7);})['catch'](function(_0x36adce){const _0x457562=_0x570e9c;logger[_0x457562('0x5')](JSON['stringify'](_0x36adce));});});},Migration[_0x467145('0x10')]['query']=function(_0x5d8df0){const _0x260f58=this;this['sequence']['enqueue'](function(){const _0x50231e=a984_0x20b4;return _0x260f58['queryInterface'][_0x50231e('0xf')][_0x50231e('0x0')](_0x5d8df0)[_0x50231e('0xd')](function(){const _0x558368=_0x50231e;logger[_0x558368('0x5')](_0x558368('0x6'),_0x5d8df0);})[_0x50231e('0xc')](function(_0x27e198){const _0x1eb99e=_0x50231e;logger[_0x1eb99e('0x5')](JSON[_0x1eb99e('0x1d')](_0x27e198));});});},Migration[_0x467145('0x10')][_0x467145('0xa')]=function(_0x424ddb,_0x15440d){const _0x505452=_0x467145,_0x2c88b0=this;this[_0x505452('0x16')][_0x505452('0x19')](function(){const _0x361e9a=_0x505452;return _0x2c88b0[_0x361e9a('0xb')][_0x361e9a('0xa')](_0x424ddb,_0x15440d)['then'](function(){const _0x5a7cd8=_0x361e9a;logger[_0x5a7cd8('0x5')](_0x5a7cd8('0x1e'),_0x15440d,_0x424ddb);})[_0x361e9a('0xc')](function(_0x44e777){const _0x52b3a4=_0x361e9a;logger[_0x52b3a4('0x5')](util[_0x52b3a4('0x18')](_0x44e777,{'showHidden':![],'depth':null}));});});},Migration[_0x467145('0x10')][_0x467145('0x1f')]=function(_0x12c346,_0x45404d,_0x310c24){const _0x2e8e6a=_0x467145,_0x39b0ed=this;this[_0x2e8e6a('0x16')][_0x2e8e6a('0x19')](function(){const _0x2ebc14=_0x2e8e6a;return _0x39b0ed[_0x2ebc14('0xb')]['renameColumn'](_0x12c346,_0x45404d,_0x310c24)[_0x2ebc14('0xd')](function(){const _0x5c4bd6=_0x2ebc14;logger[_0x5c4bd6('0x5')](_0x5c4bd6('0x17'),_0x45404d,_0x310c24,_0x12c346);})[_0x2ebc14('0xc')](function(_0x1649d3){const _0x1f2f7a=_0x2ebc14;logger[_0x1f2f7a('0x5')](util[_0x1f2f7a('0x18')](_0x1649d3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x467145('0x11')]=function(_0x37c26c){const _0x528fd6=_0x467145;this[_0x528fd6('0x16')]['enqueue'](function(){return _0x37c26c();});},module[_0x467145('0x8')]={'up':function(_0x3dd2e4){return new Promise(function(_0x4440d1){const _0x25b4ab=a984_0x20b4,_0x471774=new Migration(_0x3dd2e4);_0x471774[_0x25b4ab('0x11')](_0x4440d1);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.93.js b/server/migrations/2.3.93.js index b977485..e4f0974 100644 --- a/server/migrations/2.3.93.js +++ b/server/migrations/2.3.93.js @@ -1 +1 @@ -const a985_0x5f5a=['info','renameColumn','tail','stringify','then','migration','dropTable','addIndex\x20%s\x20%s\x20%s','catch','changeColumn','enqueue','sequence','removeColumn','Added\x20column\x20%s\x20to\x20%s','join','prototype','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','util','finally','addColumn','addIndex','removeIndex'];(function(_0x2f7e7b,_0x5f5a4a){const _0xc4abc4=function(_0x122ec6){while(--_0x122ec6){_0x2f7e7b['push'](_0x2f7e7b['shift']());}};_0xc4abc4(++_0x5f5a4a);}(a985_0x5f5a,0x1be));const a985_0xc4ab=function(_0x2f7e7b,_0x5f5a4a){_0x2f7e7b=_0x2f7e7b-0x0;let _0xc4abc4=a985_0x5f5a[_0x2f7e7b];return _0xc4abc4;};const _0x9717f6=a985_0xc4ab;'use strict';const util=require(_0x9717f6('0x11')),logger=require('../config/logger')(_0x9717f6('0x1')),Sequence=function(){};Sequence[_0x9717f6('0xb')][_0x9717f6('0x6')]=function(_0x122ec6){const _0x31860a=_0x9717f6;this[_0x31860a('0x18')]=this[_0x31860a('0x18')]?this[_0x31860a('0x18')][_0x31860a('0x12')](_0x122ec6):_0x122ec6();};const Migration=function(_0x4626ba){const _0xf09184=_0x9717f6;this[_0xf09184('0xc')]=_0x4626ba,this[_0xf09184('0x7')]=new Sequence();};Migration[_0x9717f6('0xb')]['changeColumn']=function(_0x3ff533,_0x2c7986,_0x1dcfbc){const _0x7c03df=_0x9717f6,_0x34ea9f=this;this[_0x7c03df('0x7')][_0x7c03df('0x6')](function(){const _0x4970c7=_0x7c03df;return _0x34ea9f['queryInterface'][_0x4970c7('0x5')](_0x3ff533,_0x2c7986,_0x1dcfbc)['then'](function(){const _0x1a4697=_0x4970c7;logger[_0x1a4697('0x16')](_0x1a4697('0x10'),_0x2c7986,_0x3ff533);})['catch'](function(_0x370c97){const _0x3b9f52=_0x4970c7;logger['info'](JSON[_0x3b9f52('0x19')](_0x370c97));});});},Migration[_0x9717f6('0xb')][_0x9717f6('0x13')]=function(_0x59bf26,_0x6a34b8,_0x31e1fa){const _0x4a3018=_0x9717f6,_0x246be6=this;this['sequence'][_0x4a3018('0x6')](function(){const _0x1de51e=_0x4a3018;return _0x246be6['queryInterface'][_0x1de51e('0x13')](_0x59bf26,_0x6a34b8,_0x31e1fa)[_0x1de51e('0x0')](function(){const _0x5ecedb=_0x1de51e;logger[_0x5ecedb('0x16')](_0x5ecedb('0x9'),_0x6a34b8,_0x59bf26);})[_0x1de51e('0x4')](function(_0x1c1595){logger['info'](JSON['stringify'](_0x1c1595));});});},Migration[_0x9717f6('0xb')][_0x9717f6('0x2')]=function(_0x45d1bf){const _0x3dad06=_0x9717f6,_0x78dbe2=this;this['sequence'][_0x3dad06('0x6')](function(){const _0x4ee0ae=_0x3dad06;return _0x78dbe2[_0x4ee0ae('0xc')][_0x4ee0ae('0x2')](_0x45d1bf,{'force':!![]})[_0x4ee0ae('0x0')](function(){logger['info']('table\x20dropped\x20%s',_0x45d1bf);})[_0x4ee0ae('0x4')](function(_0x5c03c8){const _0xe2c8d2=_0x4ee0ae;logger[_0xe2c8d2('0x16')](JSON[_0xe2c8d2('0x19')](_0x5c03c8));});});},Migration[_0x9717f6('0xb')][_0x9717f6('0x14')]=function(_0x9400cb,_0x3cf7e8,_0x28dcb0){const _0x323f12=_0x9717f6,_0x534d01=this;this[_0x323f12('0x7')][_0x323f12('0x6')](function(){const _0x6f83de=_0x323f12;return _0x534d01[_0x6f83de('0xc')][_0x6f83de('0x14')](_0x9400cb,_0x3cf7e8,{'indexName':_0x28dcb0})[_0x6f83de('0x0')](function(){const _0x5a6a93=_0x6f83de;logger['info'](_0x5a6a93('0x3'),_0x9400cb,_0x3cf7e8[_0x5a6a93('0xa')](','),_0x28dcb0);})['catch'](function(_0x250df1){const _0x3887fb=_0x6f83de;logger['info'](JSON[_0x3887fb('0x19')](_0x250df1));});});},Migration[_0x9717f6('0xb')]['removeIndex']=function(_0x26c923,_0x1f480d){const _0x46beb3=_0x9717f6,_0x31f9a2=this;this[_0x46beb3('0x7')][_0x46beb3('0x6')](function(){const _0x4ecc9b=_0x46beb3;return _0x31f9a2[_0x4ecc9b('0xc')][_0x4ecc9b('0x15')](_0x26c923,_0x1f480d)['then'](function(){const _0x20708b=_0x4ecc9b;logger[_0x20708b('0x16')]('removeIndex\x20%s\x20%s',_0x26c923,_0x1f480d);})[_0x4ecc9b('0x4')](function(_0x196318){const _0x516db1=_0x4ecc9b;logger[_0x516db1('0x16')](JSON[_0x516db1('0x19')](_0x196318));});});},Migration[_0x9717f6('0xb')]['query']=function(_0x1c738a){const _0x3e1377=_0x9717f6,_0x30b1e7=this;this[_0x3e1377('0x7')][_0x3e1377('0x6')](function(){const _0x5e7cc8=_0x3e1377;return _0x30b1e7[_0x5e7cc8('0xc')]['sequelize']['query'](_0x1c738a)[_0x5e7cc8('0x0')](function(){const _0x25ffd9=_0x5e7cc8;logger[_0x25ffd9('0x16')](_0x25ffd9('0xf'),_0x1c738a);})[_0x5e7cc8('0x4')](function(_0xd12080){const _0x4abc92=_0x5e7cc8;logger['info'](JSON[_0x4abc92('0x19')](_0xd12080));});});},Migration[_0x9717f6('0xb')][_0x9717f6('0x8')]=function(_0x4b20bc,_0x3878b3){const _0x50f53f=_0x9717f6,_0x1a18fb=this;this['sequence'][_0x50f53f('0x6')](function(){const _0x483d9d=_0x50f53f;return _0x1a18fb[_0x483d9d('0xc')][_0x483d9d('0x8')](_0x4b20bc,_0x3878b3)[_0x483d9d('0x0')](function(){const _0x34264e=_0x483d9d;logger[_0x34264e('0x16')]('Removed\x20column\x20%s\x20from\x20%s',_0x3878b3,_0x4b20bc);})[_0x483d9d('0x4')](function(_0x49f157){const _0x20def7=_0x483d9d;logger[_0x20def7('0x16')](util['inspect'](_0x49f157,{'showHidden':![],'depth':null}));});});},Migration[_0x9717f6('0xb')][_0x9717f6('0x17')]=function(_0xfb3435,_0x20dd70,_0xf9c4c4){const _0x101d87=_0x9717f6,_0x23d023=this;this[_0x101d87('0x7')][_0x101d87('0x6')](function(){const _0x4796ab=_0x101d87;return _0x23d023[_0x4796ab('0xc')][_0x4796ab('0x17')](_0xfb3435,_0x20dd70,_0xf9c4c4)[_0x4796ab('0x0')](function(){const _0x3ffade=_0x4796ab;logger[_0x3ffade('0x16')](_0x3ffade('0xd'),_0x20dd70,_0xf9c4c4,_0xfb3435);})[_0x4796ab('0x4')](function(_0x3fc427){const _0x487bf0=_0x4796ab;logger[_0x487bf0('0x16')](util['inspect'](_0x3fc427,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x9717f6('0xe')]=function(_0x5e59bd){const _0x3dc72f=_0x9717f6;this[_0x3dc72f('0x7')]['enqueue'](function(){return _0x5e59bd();});},module['exports']={'up':function(_0x26744e){return new Promise(function(_0x185520){const _0x2fd97e=a985_0xc4ab,_0x5b768b=new Migration(_0x26744e);_0x5b768b[_0x2fd97e('0xe')](_0x185520);});},'down':function(){}}; \ No newline at end of file +const a985_0x5b0f=['Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','Removed\x20column\x20%s\x20from\x20%s','dropTable','sequelize','../config/logger','enqueue','query\x20%s','addIndex','table\x20dropped\x20%s','sequence','util','exports','queryInterface','removeIndex','catch','changeColumn','renameColumn','prototype','tail','inspect','then','query','info','addColumn','final','stringify','addIndex\x20%s\x20%s\x20%s'];(function(_0x135e4f,_0x5b0f70){const _0x126f36=function(_0x50b0ad){while(--_0x50b0ad){_0x135e4f['push'](_0x135e4f['shift']());}};_0x126f36(++_0x5b0f70);}(a985_0x5b0f,0x108));const a985_0x126f=function(_0x135e4f,_0x5b0f70){_0x135e4f=_0x135e4f-0x0;let _0x126f36=a985_0x5b0f[_0x135e4f];return _0x126f36;};const _0x5d3c71=a985_0x126f;'use strict';const util=require(_0x5d3c71('0x9')),logger=require(_0x5d3c71('0x3'))('migration'),Sequence=function(){};Sequence['prototype'][_0x5d3c71('0x4')]=function(_0x50b0ad){const _0x3cdef3=_0x5d3c71;this[_0x3cdef3('0x11')]=this['tail']?this[_0x3cdef3('0x11')]['finally'](_0x50b0ad):_0x50b0ad();};const Migration=function(_0x303124){const _0x1a7099=_0x5d3c71;this[_0x1a7099('0xb')]=_0x303124,this[_0x1a7099('0x8')]=new Sequence();};Migration[_0x5d3c71('0x10')][_0x5d3c71('0xe')]=function(_0x45eb63,_0x2af210,_0x454953){const _0x35d38c=this;this['sequence']['enqueue'](function(){const _0x300aec=a985_0x126f;return _0x35d38c[_0x300aec('0xb')][_0x300aec('0xe')](_0x45eb63,_0x2af210,_0x454953)['then'](function(){const _0x36a820=_0x300aec;logger[_0x36a820('0x15')](_0x36a820('0x1b'),_0x2af210,_0x45eb63);})[_0x300aec('0xd')](function(_0x3ea27f){const _0x1cdb97=_0x300aec;logger['info'](JSON[_0x1cdb97('0x18')](_0x3ea27f));});});},Migration[_0x5d3c71('0x10')][_0x5d3c71('0x16')]=function(_0x5bd2e5,_0x1fdac1,_0x15d8c5){const _0x50fe88=_0x5d3c71,_0x5b877d=this;this[_0x50fe88('0x8')][_0x50fe88('0x4')](function(){const _0x4a5503=_0x50fe88;return _0x5b877d[_0x4a5503('0xb')][_0x4a5503('0x16')](_0x5bd2e5,_0x1fdac1,_0x15d8c5)[_0x4a5503('0x13')](function(){const _0x4bba6e=_0x4a5503;logger['info'](_0x4bba6e('0x1a'),_0x1fdac1,_0x5bd2e5);})[_0x4a5503('0xd')](function(_0x568f30){const _0x474cd0=_0x4a5503;logger[_0x474cd0('0x15')](JSON[_0x474cd0('0x18')](_0x568f30));});});},Migration['prototype'][_0x5d3c71('0x1')]=function(_0x1b1b14){const _0x5a9192=_0x5d3c71,_0x2d4fc5=this;this[_0x5a9192('0x8')][_0x5a9192('0x4')](function(){const _0x2ea086=_0x5a9192;return _0x2d4fc5[_0x2ea086('0xb')][_0x2ea086('0x1')](_0x1b1b14,{'force':!![]})['then'](function(){const _0x1e9754=_0x2ea086;logger['info'](_0x1e9754('0x7'),_0x1b1b14);})[_0x2ea086('0xd')](function(_0x4102d3){logger['info'](JSON['stringify'](_0x4102d3));});});},Migration[_0x5d3c71('0x10')][_0x5d3c71('0x6')]=function(_0xd3c6da,_0x38d9a1,_0x5ae3df){const _0x24865f=_0x5d3c71,_0x2467b5=this;this[_0x24865f('0x8')]['enqueue'](function(){const _0x1d0de9=_0x24865f;return _0x2467b5[_0x1d0de9('0xb')][_0x1d0de9('0x6')](_0xd3c6da,_0x38d9a1,{'indexName':_0x5ae3df})['then'](function(){const _0x5d2619=_0x1d0de9;logger['info'](_0x5d2619('0x19'),_0xd3c6da,_0x38d9a1['join'](','),_0x5ae3df);})[_0x1d0de9('0xd')](function(_0x3eb53d){const _0x30ce84=_0x1d0de9;logger[_0x30ce84('0x15')](JSON[_0x30ce84('0x18')](_0x3eb53d));});});},Migration[_0x5d3c71('0x10')][_0x5d3c71('0xc')]=function(_0x49ed70,_0xd59178){const _0xb1fd4a=_0x5d3c71,_0x37203f=this;this[_0xb1fd4a('0x8')]['enqueue'](function(){const _0x5f5cbc=_0xb1fd4a;return _0x37203f['queryInterface'][_0x5f5cbc('0xc')](_0x49ed70,_0xd59178)[_0x5f5cbc('0x13')](function(){const _0x1fa4db=_0x5f5cbc;logger[_0x1fa4db('0x15')]('removeIndex\x20%s\x20%s',_0x49ed70,_0xd59178);})[_0x5f5cbc('0xd')](function(_0xb9532e){const _0x30fad7=_0x5f5cbc;logger[_0x30fad7('0x15')](JSON[_0x30fad7('0x18')](_0xb9532e));});});},Migration[_0x5d3c71('0x10')]['query']=function(_0x4b5987){const _0x3267be=_0x5d3c71,_0x54649f=this;this[_0x3267be('0x8')][_0x3267be('0x4')](function(){const _0x2772b6=_0x3267be;return _0x54649f[_0x2772b6('0xb')][_0x2772b6('0x2')][_0x2772b6('0x14')](_0x4b5987)['then'](function(){const _0x497b65=_0x2772b6;logger[_0x497b65('0x15')](_0x497b65('0x5'),_0x4b5987);})[_0x2772b6('0xd')](function(_0x25ad48){const _0x1979e8=_0x2772b6;logger[_0x1979e8('0x15')](JSON[_0x1979e8('0x18')](_0x25ad48));});});},Migration[_0x5d3c71('0x10')][_0x5d3c71('0x1c')]=function(_0x4f3d0e,_0x523dea){const _0x488855=_0x5d3c71,_0x300a8d=this;this[_0x488855('0x8')][_0x488855('0x4')](function(){const _0x2b9487=_0x488855;return _0x300a8d[_0x2b9487('0xb')][_0x2b9487('0x1c')](_0x4f3d0e,_0x523dea)[_0x2b9487('0x13')](function(){const _0x27ac79=_0x2b9487;logger[_0x27ac79('0x15')](_0x27ac79('0x0'),_0x523dea,_0x4f3d0e);})['catch'](function(_0x3130b4){const _0x214816=_0x2b9487;logger['info'](util[_0x214816('0x12')](_0x3130b4,{'showHidden':![],'depth':null}));});});},Migration[_0x5d3c71('0x10')][_0x5d3c71('0xf')]=function(_0x2d7b5c,_0xb114da,_0x105822){const _0x25cee4=_0x5d3c71,_0x57cc03=this;this[_0x25cee4('0x8')][_0x25cee4('0x4')](function(){const _0x35245a=_0x25cee4;return _0x57cc03[_0x35245a('0xb')][_0x35245a('0xf')](_0x2d7b5c,_0xb114da,_0x105822)[_0x35245a('0x13')](function(){const _0x152803=_0x35245a;logger[_0x152803('0x15')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xb114da,_0x105822,_0x2d7b5c);})[_0x35245a('0xd')](function(_0x311397){const _0x1d9c79=_0x35245a;logger[_0x1d9c79('0x15')](util[_0x1d9c79('0x12')](_0x311397,{'showHidden':![],'depth':null}));});});},Migration[_0x5d3c71('0x10')][_0x5d3c71('0x17')]=function(_0x49eb1f){const _0x48f8c1=_0x5d3c71;this[_0x48f8c1('0x8')][_0x48f8c1('0x4')](function(){return _0x49eb1f();});},module[_0x5d3c71('0xa')]={'up':function(_0x16a5f4){return new Promise(function(_0xbdcb51){const _0x560673=a985_0x126f,_0x54515d=new Migration(_0x16a5f4);_0x54515d[_0x560673('0x17')](_0xbdcb51);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.94.js b/server/migrations/2.3.94.js index e115a1e..422a5a5 100644 --- a/server/migrations/2.3.94.js +++ b/server/migrations/2.3.94.js @@ -1 +1 @@ -const a986_0x43c5=['removeIndex','final','sequence','removeColumn','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','enqueue','then','query','migration','stringify','removeIndex\x20%s\x20%s','catch','renameColumn','addColumn','Removed\x20column\x20%s\x20from\x20%s','changeColumn','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','inspect','sequelize','dropTable','table\x20dropped\x20%s','tail','info','exports','prototype','addIndex\x20%s\x20%s\x20%s'];(function(_0x3f1d25,_0x43c5a9){const _0x3c168f=function(_0x3bdeca){while(--_0x3bdeca){_0x3f1d25['push'](_0x3f1d25['shift']());}};_0x3c168f(++_0x43c5a9);}(a986_0x43c5,0x11b));const a986_0x3c16=function(_0x3f1d25,_0x43c5a9){_0x3f1d25=_0x3f1d25-0x0;let _0x3c168f=a986_0x43c5[_0x3f1d25];return _0x3c168f;};const _0x1a8a60=a986_0x3c16;'use strict';const util=require(_0x1a8a60('0x15')),logger=require('../config/logger')(_0x1a8a60('0x1b')),Sequence=function(){};Sequence[_0x1a8a60('0xf')][_0x1a8a60('0x18')]=function(_0x3bdeca){const _0x366f89=_0x1a8a60;this[_0x366f89('0xc')]=this[_0x366f89('0xc')]?this[_0x366f89('0xc')][_0x366f89('0x7')](_0x3bdeca):_0x3bdeca();};const Migration=function(_0x4a34c0){const _0x58333e=_0x1a8a60;this[_0x58333e('0x5')]=_0x4a34c0,this['sequence']=new Sequence();};Migration[_0x1a8a60('0xf')][_0x1a8a60('0x4')]=function(_0x38a924,_0x575ade,_0x53b37e){const _0x34b9f9=_0x1a8a60,_0x446972=this;this[_0x34b9f9('0x13')][_0x34b9f9('0x18')](function(){const _0x27f878=_0x34b9f9;return _0x446972[_0x27f878('0x5')][_0x27f878('0x4')](_0x38a924,_0x575ade,_0x53b37e)[_0x27f878('0x19')](function(){const _0x4e1a8c=_0x27f878;logger[_0x4e1a8c('0xd')](_0x4e1a8c('0x6'),_0x575ade,_0x38a924);})[_0x27f878('0x0')](function(_0x30dfed){const _0x18f625=_0x27f878;logger[_0x18f625('0xd')](JSON[_0x18f625('0x1c')](_0x30dfed));});});},Migration[_0x1a8a60('0xf')][_0x1a8a60('0x2')]=function(_0x383b45,_0xaebb9e,_0x431c8d){const _0x1dda75=_0x1a8a60,_0x3288a4=this;this[_0x1dda75('0x13')][_0x1dda75('0x18')](function(){const _0x430d69=_0x1dda75;return _0x3288a4[_0x430d69('0x5')][_0x430d69('0x2')](_0x383b45,_0xaebb9e,_0x431c8d)[_0x430d69('0x19')](function(){const _0x567497=_0x430d69;logger[_0x567497('0xd')](_0x567497('0x17'),_0xaebb9e,_0x383b45);})[_0x430d69('0x0')](function(_0x5a250c){const _0x4840df=_0x430d69;logger[_0x4840df('0xd')](JSON[_0x4840df('0x1c')](_0x5a250c));});});},Migration['prototype'][_0x1a8a60('0xa')]=function(_0x405480){const _0x2f88d6=_0x1a8a60,_0x1db62c=this;this[_0x2f88d6('0x13')][_0x2f88d6('0x18')](function(){const _0x28b8cd=_0x2f88d6;return _0x1db62c['queryInterface'][_0x28b8cd('0xa')](_0x405480,{'force':!![]})['then'](function(){const _0x3324ea=_0x28b8cd;logger[_0x3324ea('0xd')](_0x3324ea('0xb'),_0x405480);})[_0x28b8cd('0x0')](function(_0xcce02e){logger['info'](JSON['stringify'](_0xcce02e));});});},Migration[_0x1a8a60('0xf')]['addIndex']=function(_0x298610,_0x4eaf64,_0x2d877e){const _0x42f8c4=_0x1a8a60,_0x3d73e1=this;this['sequence'][_0x42f8c4('0x18')](function(){const _0x4a193f=_0x42f8c4;return _0x3d73e1[_0x4a193f('0x5')]['addIndex'](_0x298610,_0x4eaf64,{'indexName':_0x2d877e})[_0x4a193f('0x19')](function(){const _0x3f4745=_0x4a193f;logger[_0x3f4745('0xd')](_0x3f4745('0x10'),_0x298610,_0x4eaf64['join'](','),_0x2d877e);})[_0x4a193f('0x0')](function(_0x5024a6){const _0x46a72d=_0x4a193f;logger[_0x46a72d('0xd')](JSON[_0x46a72d('0x1c')](_0x5024a6));});});},Migration[_0x1a8a60('0xf')][_0x1a8a60('0x11')]=function(_0x568408,_0x3451d4){const _0x41a257=this;this['sequence']['enqueue'](function(){const _0x514c0b=a986_0x3c16;return _0x41a257[_0x514c0b('0x5')][_0x514c0b('0x11')](_0x568408,_0x3451d4)['then'](function(){const _0x4d7d4c=_0x514c0b;logger[_0x4d7d4c('0xd')](_0x4d7d4c('0x1d'),_0x568408,_0x3451d4);})[_0x514c0b('0x0')](function(_0xbb6be6){const _0x4c025d=_0x514c0b;logger[_0x4c025d('0xd')](JSON['stringify'](_0xbb6be6));});});},Migration[_0x1a8a60('0xf')][_0x1a8a60('0x1a')]=function(_0x52a705){const _0xd465ca=_0x1a8a60,_0x16fc10=this;this['sequence'][_0xd465ca('0x18')](function(){const _0x54d84a=_0xd465ca;return _0x16fc10[_0x54d84a('0x5')][_0x54d84a('0x9')][_0x54d84a('0x1a')](_0x52a705)['then'](function(){logger['info']('query\x20%s',_0x52a705);})['catch'](function(_0xa16941){const _0xff5c7b=_0x54d84a;logger[_0xff5c7b('0xd')](JSON[_0xff5c7b('0x1c')](_0xa16941));});});},Migration[_0x1a8a60('0xf')][_0x1a8a60('0x14')]=function(_0x2f82f1,_0x309f93){const _0x2276cf=_0x1a8a60,_0xe62faa=this;this[_0x2276cf('0x13')][_0x2276cf('0x18')](function(){const _0x5c4b64=_0x2276cf;return _0xe62faa[_0x5c4b64('0x5')]['removeColumn'](_0x2f82f1,_0x309f93)['then'](function(){const _0x14c7e8=_0x5c4b64;logger[_0x14c7e8('0xd')](_0x14c7e8('0x3'),_0x309f93,_0x2f82f1);})[_0x5c4b64('0x0')](function(_0x891f34){const _0x38d706=_0x5c4b64;logger['info'](util[_0x38d706('0x8')](_0x891f34,{'showHidden':![],'depth':null}));});});},Migration[_0x1a8a60('0xf')][_0x1a8a60('0x1')]=function(_0x4f710f,_0x5b7b79,_0x4dc1c7){const _0x4f43cb=_0x1a8a60,_0x4c01da=this;this[_0x4f43cb('0x13')][_0x4f43cb('0x18')](function(){const _0x2d1529=_0x4f43cb;return _0x4c01da[_0x2d1529('0x5')]['renameColumn'](_0x4f710f,_0x5b7b79,_0x4dc1c7)['then'](function(){const _0x12c286=_0x2d1529;logger[_0x12c286('0xd')](_0x12c286('0x16'),_0x5b7b79,_0x4dc1c7,_0x4f710f);})[_0x2d1529('0x0')](function(_0x1d8a9d){const _0x27e9a7=_0x2d1529;logger['info'](util[_0x27e9a7('0x8')](_0x1d8a9d,{'showHidden':![],'depth':null}));});});},Migration[_0x1a8a60('0xf')][_0x1a8a60('0x12')]=function(_0x4a38fd){const _0x4e9460=_0x1a8a60;this[_0x4e9460('0x13')][_0x4e9460('0x18')](function(){return _0x4a38fd();});},module[_0x1a8a60('0xe')]={'up':function(_0x47fd66){return new Promise(function(_0x3f0dc2){const _0x3a31dd=a986_0x3c16,_0x1eb364=new Migration(_0x47fd66);_0x1eb364[_0x3a31dd('0x12')](_0x3f0dc2);});},'down':function(){}}; \ No newline at end of file +const a986_0x5497=['changeColumn','addIndex','final','sequence','addColumn','query\x20%s','../config/logger','dropTable','inspect','removeColumn','migration','stringify','queryInterface','removeIndex','util','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','renameColumn','enqueue','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','then','table\x20dropped\x20%s','join','catch','finally','query','prototype','tail'];(function(_0x1e1843,_0x549709){const _0x286a9c=function(_0x4c6800){while(--_0x4c6800){_0x1e1843['push'](_0x1e1843['shift']());}};_0x286a9c(++_0x549709);}(a986_0x5497,0x11e));const a986_0x286a=function(_0x1e1843,_0x549709){_0x1e1843=_0x1e1843-0x0;let _0x286a9c=a986_0x5497[_0x1e1843];return _0x286a9c;};const _0x521be7=a986_0x286a;'use strict';const util=require(_0x521be7('0x1c')),logger=require(_0x521be7('0x14'))(_0x521be7('0x18')),Sequence=function(){};Sequence['prototype'][_0x521be7('0x2')]=function(_0x4c6800){const _0x436c5a=_0x521be7;this['tail']=this[_0x436c5a('0xd')]?this[_0x436c5a('0xd')][_0x436c5a('0xa')](_0x4c6800):_0x4c6800();};const Migration=function(_0x783c2d){const _0x1eb39d=_0x521be7;this[_0x1eb39d('0x1a')]=_0x783c2d,this[_0x1eb39d('0x11')]=new Sequence();};Migration[_0x521be7('0xc')][_0x521be7('0xe')]=function(_0x485c1b,_0x50cdb2,_0x1c5ac7){const _0x286068=_0x521be7,_0x239853=this;this['sequence'][_0x286068('0x2')](function(){const _0x1266af=_0x286068;return _0x239853[_0x1266af('0x1a')][_0x1266af('0xe')](_0x485c1b,_0x50cdb2,_0x1c5ac7)[_0x1266af('0x6')](function(){const _0x1b3cf5=_0x1266af;logger[_0x1b3cf5('0x3')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x50cdb2,_0x485c1b);})[_0x1266af('0x9')](function(_0x21f5da){const _0x27e8c4=_0x1266af;logger[_0x27e8c4('0x3')](JSON['stringify'](_0x21f5da));});});},Migration[_0x521be7('0xc')][_0x521be7('0x12')]=function(_0x506ba1,_0x4f9631,_0x1c7c26){const _0x25d218=_0x521be7,_0x5115a3=this;this[_0x25d218('0x11')][_0x25d218('0x2')](function(){const _0x159b66=_0x25d218;return _0x5115a3[_0x159b66('0x1a')]['addColumn'](_0x506ba1,_0x4f9631,_0x1c7c26)['then'](function(){const _0x3195be=_0x159b66;logger[_0x3195be('0x3')]('Added\x20column\x20%s\x20to\x20%s',_0x4f9631,_0x506ba1);})[_0x159b66('0x9')](function(_0x3cbcbc){const _0xefb0f3=_0x159b66;logger[_0xefb0f3('0x3')](JSON[_0xefb0f3('0x19')](_0x3cbcbc));});});},Migration[_0x521be7('0xc')][_0x521be7('0x15')]=function(_0xa5f64b){const _0x14fe20=this;this['sequence']['enqueue'](function(){const _0x5155d1=a986_0x286a;return _0x14fe20['queryInterface'][_0x5155d1('0x15')](_0xa5f64b,{'force':!![]})[_0x5155d1('0x6')](function(){const _0x37a1f4=_0x5155d1;logger[_0x37a1f4('0x3')](_0x37a1f4('0x7'),_0xa5f64b);})[_0x5155d1('0x9')](function(_0x31fa71){const _0x2922a1=_0x5155d1;logger[_0x2922a1('0x3')](JSON[_0x2922a1('0x19')](_0x31fa71));});});},Migration[_0x521be7('0xc')][_0x521be7('0xf')]=function(_0x2c7369,_0xc26b0a,_0x455305){const _0x407592=_0x521be7,_0x3cceeb=this;this[_0x407592('0x11')]['enqueue'](function(){const _0x56e8d7=_0x407592;return _0x3cceeb['queryInterface']['addIndex'](_0x2c7369,_0xc26b0a,{'indexName':_0x455305})['then'](function(){const _0x123983=a986_0x286a;logger[_0x123983('0x3')](_0x123983('0x5'),_0x2c7369,_0xc26b0a[_0x123983('0x8')](','),_0x455305);})[_0x56e8d7('0x9')](function(_0x4e4371){const _0x183320=_0x56e8d7;logger[_0x183320('0x3')](JSON[_0x183320('0x19')](_0x4e4371));});});},Migration[_0x521be7('0xc')][_0x521be7('0x1b')]=function(_0x1ff5dd,_0x1fa465){const _0x4b3e6b=_0x521be7,_0x377341=this;this['sequence'][_0x4b3e6b('0x2')](function(){const _0x16d51a=_0x4b3e6b;return _0x377341[_0x16d51a('0x1a')][_0x16d51a('0x1b')](_0x1ff5dd,_0x1fa465)[_0x16d51a('0x6')](function(){const _0x42c4ea=_0x16d51a;logger['info'](_0x42c4ea('0x1d'),_0x1ff5dd,_0x1fa465);})[_0x16d51a('0x9')](function(_0x48b163){const _0xf6cde=_0x16d51a;logger['info'](JSON[_0xf6cde('0x19')](_0x48b163));});});},Migration[_0x521be7('0xc')][_0x521be7('0xb')]=function(_0x73508a){const _0x42ef40=_0x521be7,_0xad9ff2=this;this[_0x42ef40('0x11')][_0x42ef40('0x2')](function(){const _0x4bcfce=_0x42ef40;return _0xad9ff2[_0x4bcfce('0x1a')]['sequelize'][_0x4bcfce('0xb')](_0x73508a)[_0x4bcfce('0x6')](function(){const _0xe7d277=_0x4bcfce;logger['info'](_0xe7d277('0x13'),_0x73508a);})[_0x4bcfce('0x9')](function(_0x2bf49b){const _0x6a5918=_0x4bcfce;logger[_0x6a5918('0x3')](JSON[_0x6a5918('0x19')](_0x2bf49b));});});},Migration['prototype'][_0x521be7('0x17')]=function(_0x1c51e7,_0x5410a3){const _0x39d325=_0x521be7,_0x244532=this;this[_0x39d325('0x11')][_0x39d325('0x2')](function(){const _0x2b2cea=_0x39d325;return _0x244532['queryInterface'][_0x2b2cea('0x17')](_0x1c51e7,_0x5410a3)['then'](function(){const _0x167605=_0x2b2cea;logger[_0x167605('0x3')](_0x167605('0x0'),_0x5410a3,_0x1c51e7);})['catch'](function(_0x4d1612){const _0x2c7298=_0x2b2cea;logger[_0x2c7298('0x3')](util['inspect'](_0x4d1612,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x521be7('0x1')]=function(_0x3afe38,_0x4fbf88,_0x4c4a48){const _0xaca105=_0x521be7,_0x3d47fe=this;this[_0xaca105('0x11')][_0xaca105('0x2')](function(){const _0x2d7b55=_0xaca105;return _0x3d47fe[_0x2d7b55('0x1a')][_0x2d7b55('0x1')](_0x3afe38,_0x4fbf88,_0x4c4a48)[_0x2d7b55('0x6')](function(){const _0x52cc04=_0x2d7b55;logger[_0x52cc04('0x3')](_0x52cc04('0x4'),_0x4fbf88,_0x4c4a48,_0x3afe38);})[_0x2d7b55('0x9')](function(_0x3722ff){const _0x147a3b=_0x2d7b55;logger['info'](util[_0x147a3b('0x16')](_0x3722ff,{'showHidden':![],'depth':null}));});});},Migration[_0x521be7('0xc')][_0x521be7('0x10')]=function(_0x1d94e1){const _0x5cd761=_0x521be7;this[_0x5cd761('0x11')][_0x5cd761('0x2')](function(){return _0x1d94e1();});},module['exports']={'up':function(_0x35dfa1){return new Promise(function(_0x443ca8){const _0x59a684=new Migration(_0x35dfa1);_0x59a684['final'](_0x443ca8);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.95.js b/server/migrations/2.3.95.js index 75cdfdd..673823b 100644 --- a/server/migrations/2.3.95.js +++ b/server/migrations/2.3.95.js @@ -1 +1 @@ -const a987_0x621c=['catch','tail','addIndex\x20%s\x20%s\x20%s','../config/logger','sequence','sequelize','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','join','enqueue','migration','then','inspect','renameColumn','finally','addColumn','stringify','final','prototype','removeIndex\x20%s\x20%s','addIndex','table\x20dropped\x20%s','removeColumn','changeColumn','dropTable','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','info','query','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x3b966e,_0x621c0b){const _0x57b897=function(_0x380773){while(--_0x380773){_0x3b966e['push'](_0x3b966e['shift']());}};_0x57b897(++_0x621c0b);}(a987_0x621c,0xd9));const a987_0x57b8=function(_0x3b966e,_0x621c0b){_0x3b966e=_0x3b966e-0x0;let _0x57b897=a987_0x621c[_0x3b966e];return _0x57b897;};const _0x469252=a987_0x57b8;'use strict';const util=require('util'),logger=require(_0x469252('0x3'))(_0x469252('0xa')),Sequence=function(){};Sequence[_0x469252('0x12')][_0x469252('0x9')]=function(_0x380773){const _0x2f8e48=_0x469252;this[_0x2f8e48('0x1')]=this[_0x2f8e48('0x1')]?this[_0x2f8e48('0x1')][_0x2f8e48('0xe')](_0x380773):_0x380773();};const Migration=function(_0x315a46){const _0x26c432=_0x469252;this['queryInterface']=_0x315a46,this[_0x26c432('0x4')]=new Sequence();};Migration['prototype'][_0x469252('0x17')]=function(_0x1b00b7,_0x552ef6,_0x2890fc){const _0x3b709e=_0x469252,_0x2ce934=this;this[_0x3b709e('0x4')][_0x3b709e('0x9')](function(){const _0x3c11fb=_0x3b709e;return _0x2ce934[_0x3c11fb('0x1b')][_0x3c11fb('0x17')](_0x1b00b7,_0x552ef6,_0x2890fc)[_0x3c11fb('0xb')](function(){const _0x3b17b6=_0x3c11fb;logger[_0x3b17b6('0x1c')](_0x3b17b6('0x1e'),_0x552ef6,_0x1b00b7);})['catch'](function(_0x209831){const _0x421d76=_0x3c11fb;logger[_0x421d76('0x1c')](JSON['stringify'](_0x209831));});});},Migration[_0x469252('0x12')][_0x469252('0xf')]=function(_0x1fe982,_0x47a738,_0x57365c){const _0x1754c3=_0x469252,_0x3cbb64=this;this[_0x1754c3('0x4')][_0x1754c3('0x9')](function(){const _0x47623b=_0x1754c3;return _0x3cbb64['queryInterface']['addColumn'](_0x1fe982,_0x47a738,_0x57365c)[_0x47623b('0xb')](function(){const _0x1606fd=_0x47623b;logger['info'](_0x1606fd('0x7'),_0x47a738,_0x1fe982);})[_0x47623b('0x0')](function(_0x23add2){const _0x53b62d=_0x47623b;logger[_0x53b62d('0x1c')](JSON[_0x53b62d('0x10')](_0x23add2));});});},Migration[_0x469252('0x12')][_0x469252('0x18')]=function(_0x48c3d5){const _0x5ec422=_0x469252,_0x1432b7=this;this[_0x5ec422('0x4')][_0x5ec422('0x9')](function(){const _0x47ae6d=_0x5ec422;return _0x1432b7['queryInterface']['dropTable'](_0x48c3d5,{'force':!![]})[_0x47ae6d('0xb')](function(){const _0x2e9337=_0x47ae6d;logger[_0x2e9337('0x1c')](_0x2e9337('0x15'),_0x48c3d5);})['catch'](function(_0x55cd93){const _0x3931df=_0x47ae6d;logger[_0x3931df('0x1c')](JSON[_0x3931df('0x10')](_0x55cd93));});});},Migration[_0x469252('0x12')][_0x469252('0x14')]=function(_0x1be307,_0x4d205a,_0x4b95a8){const _0x268f3d=_0x469252,_0x41b4a8=this;this['sequence'][_0x268f3d('0x9')](function(){const _0x1026da=_0x268f3d;return _0x41b4a8[_0x1026da('0x1b')]['addIndex'](_0x1be307,_0x4d205a,{'indexName':_0x4b95a8})[_0x1026da('0xb')](function(){const _0x4ad223=_0x1026da;logger[_0x4ad223('0x1c')](_0x4ad223('0x2'),_0x1be307,_0x4d205a[_0x4ad223('0x8')](','),_0x4b95a8);})[_0x1026da('0x0')](function(_0x157fd7){const _0x55c2bf=_0x1026da;logger[_0x55c2bf('0x1c')](JSON[_0x55c2bf('0x10')](_0x157fd7));});});},Migration['prototype'][_0x469252('0x19')]=function(_0x5af033,_0xc5bca6){const _0x2624ed=_0x469252,_0x2f1c6e=this;this[_0x2624ed('0x4')]['enqueue'](function(){const _0x32ab36=_0x2624ed;return _0x2f1c6e[_0x32ab36('0x1b')]['removeIndex'](_0x5af033,_0xc5bca6)['then'](function(){const _0x330827=_0x32ab36;logger['info'](_0x330827('0x13'),_0x5af033,_0xc5bca6);})[_0x32ab36('0x0')](function(_0x1c2a1b){const _0x566e1c=_0x32ab36;logger[_0x566e1c('0x1c')](JSON['stringify'](_0x1c2a1b));});});},Migration[_0x469252('0x12')][_0x469252('0x1d')]=function(_0x2d9bb6){const _0xbcb85f=_0x469252,_0x5d66df=this;this[_0xbcb85f('0x4')]['enqueue'](function(){const _0x3db404=_0xbcb85f;return _0x5d66df['queryInterface'][_0x3db404('0x5')]['query'](_0x2d9bb6)['then'](function(){const _0x122e71=_0x3db404;logger[_0x122e71('0x1c')]('query\x20%s',_0x2d9bb6);})['catch'](function(_0x438bc5){const _0x2d5393=_0x3db404;logger[_0x2d5393('0x1c')](JSON[_0x2d5393('0x10')](_0x438bc5));});});},Migration[_0x469252('0x12')][_0x469252('0x16')]=function(_0x5e2b13,_0x50edf7){const _0x66895f=_0x469252,_0x109563=this;this[_0x66895f('0x4')]['enqueue'](function(){const _0x20c8df=_0x66895f;return _0x109563[_0x20c8df('0x1b')][_0x20c8df('0x16')](_0x5e2b13,_0x50edf7)[_0x20c8df('0xb')](function(){const _0x2cb690=_0x20c8df;logger[_0x2cb690('0x1c')](_0x2cb690('0x6'),_0x50edf7,_0x5e2b13);})[_0x20c8df('0x0')](function(_0x5c720f){const _0x1b9551=_0x20c8df;logger['info'](util[_0x1b9551('0xc')](_0x5c720f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x469252('0xd')]=function(_0x515c3a,_0x36d32d,_0xa0bb9f){const _0x113bdc=_0x469252,_0x3b0686=this;this[_0x113bdc('0x4')][_0x113bdc('0x9')](function(){const _0x5a0b2a=_0x113bdc;return _0x3b0686['queryInterface']['renameColumn'](_0x515c3a,_0x36d32d,_0xa0bb9f)['then'](function(){const _0x5550c0=a987_0x57b8;logger['info'](_0x5550c0('0x1a'),_0x36d32d,_0xa0bb9f,_0x515c3a);})[_0x5a0b2a('0x0')](function(_0x4a3906){const _0x42ad8f=_0x5a0b2a;logger[_0x42ad8f('0x1c')](util[_0x42ad8f('0xc')](_0x4a3906,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x469252('0x11')]=function(_0x44e42e){const _0x376e05=_0x469252;this[_0x376e05('0x4')][_0x376e05('0x9')](function(){return _0x44e42e();});},module['exports']={'up':function(_0x348861){return new Promise(function(_0x4faa0f){const _0x197a56=a987_0x57b8,_0x2d6e93=new Migration(_0x348861);_0x2d6e93[_0x197a56('0x11')](_0x4faa0f);});},'down':function(){}}; \ No newline at end of file +const a987_0xa7cc=['removeIndex\x20%s\x20%s','migration','exports','info','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','removeIndex','removeColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','then','inspect','query','catch','changeColumn','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','util','sequence','dropTable','enqueue','stringify','sequelize','prototype','final','addColumn','tail','queryInterface'];(function(_0x391515,_0xa7cc49){const _0x3490c5=function(_0x2bfbe7){while(--_0x2bfbe7){_0x391515['push'](_0x391515['shift']());}};_0x3490c5(++_0xa7cc49);}(a987_0xa7cc,0xe9));const a987_0x3490=function(_0x391515,_0xa7cc49){_0x391515=_0x391515-0x0;let _0x3490c5=a987_0xa7cc[_0x391515];return _0x3490c5;};const _0x4f466b=a987_0x3490;'use strict';const util=require(_0x4f466b('0x8')),logger=require('../config/logger')(_0x4f466b('0x14')),Sequence=function(){};Sequence['prototype'][_0x4f466b('0xb')]=function(_0x2bfbe7){const _0x1f853c=_0x4f466b;this[_0x1f853c('0x11')]=this[_0x1f853c('0x11')]?this[_0x1f853c('0x11')]['finally'](_0x2bfbe7):_0x2bfbe7();};const Migration=function(_0x5a5285){const _0x1d9355=_0x4f466b;this['queryInterface']=_0x5a5285,this[_0x1d9355('0x9')]=new Sequence();};Migration['prototype'][_0x4f466b('0x5')]=function(_0x25e870,_0x44d2e5,_0x2ef349){const _0x347f41=_0x4f466b,_0x57c2aa=this;this['sequence'][_0x347f41('0xb')](function(){const _0x1f8aca=_0x347f41;return _0x57c2aa[_0x1f8aca('0x12')][_0x1f8aca('0x5')](_0x25e870,_0x44d2e5,_0x2ef349)[_0x1f8aca('0x1')](function(){const _0x47b346=_0x1f8aca;logger[_0x47b346('0x16')](_0x47b346('0x17'),_0x44d2e5,_0x25e870);})[_0x1f8aca('0x4')](function(_0x5b5c5f){const _0x28c3cc=_0x1f8aca;logger['info'](JSON[_0x28c3cc('0xc')](_0x5b5c5f));});});},Migration[_0x4f466b('0xe')][_0x4f466b('0x10')]=function(_0x288285,_0xa80db8,_0x289a34){const _0x46732f=_0x4f466b,_0x3d1028=this;this['sequence'][_0x46732f('0xb')](function(){const _0x5e6040=_0x46732f;return _0x3d1028[_0x5e6040('0x12')][_0x5e6040('0x10')](_0x288285,_0xa80db8,_0x289a34)[_0x5e6040('0x1')](function(){const _0x13bdbe=_0x5e6040;logger[_0x13bdbe('0x16')](_0x13bdbe('0x0'),_0xa80db8,_0x288285);})[_0x5e6040('0x4')](function(_0xe655d4){logger['info'](JSON['stringify'](_0xe655d4));});});},Migration[_0x4f466b('0xe')][_0x4f466b('0xa')]=function(_0x79b1f5){const _0x1a0e94=_0x4f466b,_0x12630b=this;this[_0x1a0e94('0x9')]['enqueue'](function(){const _0x4e43a9=_0x1a0e94;return _0x12630b[_0x4e43a9('0x12')][_0x4e43a9('0xa')](_0x79b1f5,{'force':!![]})[_0x4e43a9('0x1')](function(){const _0x576f3f=_0x4e43a9;logger[_0x576f3f('0x16')]('table\x20dropped\x20%s',_0x79b1f5);})[_0x4e43a9('0x4')](function(_0x536615){const _0x1cdf48=_0x4e43a9;logger['info'](JSON[_0x1cdf48('0xc')](_0x536615));});});},Migration[_0x4f466b('0xe')]['addIndex']=function(_0x16ce44,_0x531bdc,_0x1bf8c1){const _0x152b0d=_0x4f466b,_0x3085d2=this;this[_0x152b0d('0x9')][_0x152b0d('0xb')](function(){const _0x38397a=_0x152b0d;return _0x3085d2[_0x38397a('0x12')][_0x38397a('0x1b')](_0x16ce44,_0x531bdc,{'indexName':_0x1bf8c1})['then'](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x16ce44,_0x531bdc['join'](','),_0x1bf8c1);})[_0x38397a('0x4')](function(_0x340026){const _0x98ab8=_0x38397a;logger[_0x98ab8('0x16')](JSON[_0x98ab8('0xc')](_0x340026));});});},Migration[_0x4f466b('0xe')][_0x4f466b('0x19')]=function(_0x167984,_0x571c73){const _0x5e389d=_0x4f466b,_0x147a99=this;this[_0x5e389d('0x9')][_0x5e389d('0xb')](function(){const _0x49a14e=_0x5e389d;return _0x147a99[_0x49a14e('0x12')][_0x49a14e('0x19')](_0x167984,_0x571c73)[_0x49a14e('0x1')](function(){const _0x4e467b=_0x49a14e;logger[_0x4e467b('0x16')](_0x4e467b('0x13'),_0x167984,_0x571c73);})[_0x49a14e('0x4')](function(_0x3b9dba){const _0x2cf0ef=_0x49a14e;logger['info'](JSON[_0x2cf0ef('0xc')](_0x3b9dba));});});},Migration['prototype'][_0x4f466b('0x3')]=function(_0x24ec89){const _0x6ebe63=_0x4f466b,_0x3f3bac=this;this[_0x6ebe63('0x9')]['enqueue'](function(){const _0x3d310b=_0x6ebe63;return _0x3f3bac[_0x3d310b('0x12')][_0x3d310b('0xd')]['query'](_0x24ec89)['then'](function(){const _0x326aa5=_0x3d310b;logger[_0x326aa5('0x16')](_0x326aa5('0x6'),_0x24ec89);})[_0x3d310b('0x4')](function(_0x6d0ff6){const _0x3ba144=_0x3d310b;logger['info'](JSON[_0x3ba144('0xc')](_0x6d0ff6));});});},Migration[_0x4f466b('0xe')]['removeColumn']=function(_0x5477f1,_0x44e823){const _0x212f9c=_0x4f466b,_0xf8a980=this;this[_0x212f9c('0x9')][_0x212f9c('0xb')](function(){const _0x2b35e0=_0x212f9c;return _0xf8a980[_0x2b35e0('0x12')][_0x2b35e0('0x1a')](_0x5477f1,_0x44e823)['then'](function(){const _0x119a30=_0x2b35e0;logger[_0x119a30('0x16')](_0x119a30('0x7'),_0x44e823,_0x5477f1);})[_0x2b35e0('0x4')](function(_0x339ba4){const _0x179b1b=_0x2b35e0;logger[_0x179b1b('0x16')](util[_0x179b1b('0x2')](_0x339ba4,{'showHidden':![],'depth':null}));});});},Migration[_0x4f466b('0xe')]['renameColumn']=function(_0x7cdc81,_0x7711a2,_0x591128){const _0x21bd04=_0x4f466b,_0x441cda=this;this['sequence'][_0x21bd04('0xb')](function(){const _0x38973b=_0x21bd04;return _0x441cda[_0x38973b('0x12')][_0x38973b('0x18')](_0x7cdc81,_0x7711a2,_0x591128)['then'](function(){const _0x4d3c24=_0x38973b;logger[_0x4d3c24('0x16')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x7711a2,_0x591128,_0x7cdc81);})['catch'](function(_0x563727){logger['info'](util['inspect'](_0x563727,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x119f63){const _0x45b0e3=_0x4f466b;this[_0x45b0e3('0x9')][_0x45b0e3('0xb')](function(){return _0x119f63();});},module[_0x4f466b('0x15')]={'up':function(_0x8f5599){return new Promise(function(_0x5736f){const _0x301ef2=a987_0x3490,_0x205639=new Migration(_0x8f5599);_0x205639[_0x301ef2('0xf')](_0x5736f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.96.js b/server/migrations/2.3.96.js index cec8dc0..d9df6aa 100644 --- a/server/migrations/2.3.96.js +++ b/server/migrations/2.3.96.js @@ -1 +1 @@ -const a988_0x5126=['addColumn','addIndex\x20%s\x20%s\x20%s','STRING','final','sequelize','removeIndex','then','dropTable','changeColumn','util','query','addIndex','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','../config/logger','tail','finally','stringify','query\x20%s','exports','table\x20dropped\x20%s','prototype','renameColumn','queryInterface','enqueue','removeColumn','inspect','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x52ad5b,_0x5126b4){const _0x53e92f=function(_0x404e01){while(--_0x404e01){_0x52ad5b['push'](_0x52ad5b['shift']());}};_0x53e92f(++_0x5126b4);}(a988_0x5126,0x190));const a988_0x53e9=function(_0x52ad5b,_0x5126b4){_0x52ad5b=_0x52ad5b-0x0;let _0x53e92f=a988_0x5126[_0x52ad5b];return _0x53e92f;};const _0x9fb6df=a988_0x53e9;'use strict';const util=require(_0x9fb6df('0x1d')),logger=require(_0x9fb6df('0x5'))('migration'),Sequence=function(){};Sequence[_0x9fb6df('0xc')][_0x9fb6df('0xf')]=function(_0x404e01){const _0x24c5e1=_0x9fb6df;this['tail']=this[_0x24c5e1('0x6')]?this[_0x24c5e1('0x6')][_0x24c5e1('0x7')](_0x404e01):_0x404e01();};const Migration=function(_0x59e9c5){const _0x185305=_0x9fb6df;this[_0x185305('0xe')]=_0x59e9c5,this[_0x185305('0x4')]=new Sequence();};Migration[_0x9fb6df('0xc')][_0x9fb6df('0x1c')]=function(_0x67ac27,_0x34b4de,_0x6dad7e){const _0x1951a0=_0x9fb6df,_0x49078b=this;this[_0x1951a0('0x4')][_0x1951a0('0xf')](function(){const _0x4c0a85=_0x1951a0;return _0x49078b[_0x4c0a85('0xe')][_0x4c0a85('0x1c')](_0x67ac27,_0x34b4de,_0x6dad7e)[_0x4c0a85('0x1a')](function(){const _0x31bf7d=_0x4c0a85;logger[_0x31bf7d('0x12')](_0x31bf7d('0x3'),_0x34b4de,_0x67ac27);})[_0x4c0a85('0x2')](function(_0x14369b){const _0x19ee7a=_0x4c0a85;logger[_0x19ee7a('0x12')](JSON[_0x19ee7a('0x8')](_0x14369b));});});},Migration[_0x9fb6df('0xc')][_0x9fb6df('0x14')]=function(_0x3cb299,_0x32378a,_0x39d632){const _0x221f5e=_0x9fb6df,_0x2ade45=this;this[_0x221f5e('0x4')][_0x221f5e('0xf')](function(){const _0x4e28bc=_0x221f5e;return _0x2ade45[_0x4e28bc('0xe')][_0x4e28bc('0x14')](_0x3cb299,_0x32378a,_0x39d632)['then'](function(){const _0x42fb49=_0x4e28bc;logger[_0x42fb49('0x12')]('Added\x20column\x20%s\x20to\x20%s',_0x32378a,_0x3cb299);})[_0x4e28bc('0x2')](function(_0x1c87f2){const _0x34dc24=_0x4e28bc;logger[_0x34dc24('0x12')](JSON[_0x34dc24('0x8')](_0x1c87f2));});});},Migration[_0x9fb6df('0xc')][_0x9fb6df('0x1b')]=function(_0x32c1b7){const _0x20aeb2=_0x9fb6df,_0x1b1bc9=this;this['sequence'][_0x20aeb2('0xf')](function(){const _0x31be41=_0x20aeb2;return _0x1b1bc9['queryInterface']['dropTable'](_0x32c1b7,{'force':!![]})[_0x31be41('0x1a')](function(){const _0x146561=_0x31be41;logger['info'](_0x146561('0xb'),_0x32c1b7);})[_0x31be41('0x2')](function(_0x155a86){const _0x4cd26e=_0x31be41;logger[_0x4cd26e('0x12')](JSON[_0x4cd26e('0x8')](_0x155a86));});});},Migration[_0x9fb6df('0xc')][_0x9fb6df('0x1')]=function(_0x1bcc6b,_0x42f29d,_0x2521aa){const _0x54f66c=_0x9fb6df,_0x56a6c3=this;this[_0x54f66c('0x4')][_0x54f66c('0xf')](function(){const _0x596048=_0x54f66c;return _0x56a6c3['queryInterface'][_0x596048('0x1')](_0x1bcc6b,_0x42f29d,{'indexName':_0x2521aa})[_0x596048('0x1a')](function(){const _0x39363b=_0x596048;logger['info'](_0x39363b('0x15'),_0x1bcc6b,_0x42f29d['join'](','),_0x2521aa);})[_0x596048('0x2')](function(_0x2fb2ab){const _0xd8271e=_0x596048;logger[_0xd8271e('0x12')](JSON['stringify'](_0x2fb2ab));});});},Migration[_0x9fb6df('0xc')][_0x9fb6df('0x19')]=function(_0x1d313a,_0x4f0dc7){const _0x1db82d=_0x9fb6df,_0x222492=this;this[_0x1db82d('0x4')][_0x1db82d('0xf')](function(){const _0x38d080=_0x1db82d;return _0x222492[_0x38d080('0xe')][_0x38d080('0x19')](_0x1d313a,_0x4f0dc7)[_0x38d080('0x1a')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x1d313a,_0x4f0dc7);})[_0x38d080('0x2')](function(_0xdef24e){const _0x2b1605=_0x38d080;logger[_0x2b1605('0x12')](JSON[_0x2b1605('0x8')](_0xdef24e));});});},Migration[_0x9fb6df('0xc')][_0x9fb6df('0x0')]=function(_0x324762){const _0x2ee153=_0x9fb6df,_0x20bd23=this;this[_0x2ee153('0x4')][_0x2ee153('0xf')](function(){const _0x5cc0dc=_0x2ee153;return _0x20bd23[_0x5cc0dc('0xe')][_0x5cc0dc('0x18')]['query'](_0x324762)[_0x5cc0dc('0x1a')](function(){const _0xd9f06e=_0x5cc0dc;logger['info'](_0xd9f06e('0x9'),_0x324762);})['catch'](function(_0x37434d){logger['info'](JSON['stringify'](_0x37434d));});});},Migration[_0x9fb6df('0xc')][_0x9fb6df('0x10')]=function(_0x481070,_0x1efe47){const _0x376095=_0x9fb6df,_0x155f72=this;this['sequence'][_0x376095('0xf')](function(){const _0x1cb4b4=_0x376095;return _0x155f72['queryInterface']['removeColumn'](_0x481070,_0x1efe47)[_0x1cb4b4('0x1a')](function(){const _0x4c0c45=_0x1cb4b4;logger[_0x4c0c45('0x12')]('Removed\x20column\x20%s\x20from\x20%s',_0x1efe47,_0x481070);})['catch'](function(_0xd8fce2){logger['info'](util['inspect'](_0xd8fce2,{'showHidden':![],'depth':null}));});});},Migration[_0x9fb6df('0xc')][_0x9fb6df('0xd')]=function(_0x44f497,_0x335244,_0x3b0eef){const _0x51edbb=_0x9fb6df,_0x4108f1=this;this[_0x51edbb('0x4')][_0x51edbb('0xf')](function(){const _0x107ca6=_0x51edbb;return _0x4108f1['queryInterface'][_0x107ca6('0xd')](_0x44f497,_0x335244,_0x3b0eef)[_0x107ca6('0x1a')](function(){const _0x58e06f=_0x107ca6;logger['info'](_0x58e06f('0x13'),_0x335244,_0x3b0eef,_0x44f497);})[_0x107ca6('0x2')](function(_0x52542a){const _0x240a02=_0x107ca6;logger[_0x240a02('0x12')](util[_0x240a02('0x11')](_0x52542a,{'showHidden':![],'depth':null}));});});},Migration[_0x9fb6df('0xc')][_0x9fb6df('0x17')]=function(_0x2a1837){const _0x358b6d=_0x9fb6df;this[_0x358b6d('0x4')][_0x358b6d('0xf')](function(){return _0x2a1837();});},module[_0x9fb6df('0xa')]={'up':function(_0x367b08,_0x3a50ac){return new Promise(function(_0x4ed5b5){const _0x20a10e=a988_0x53e9,_0x589bc3=new Migration(_0x367b08);_0x589bc3[_0x20a10e('0x14')]('settings','defaultScreenRecordingPath',{'type':_0x3a50ac[_0x20a10e('0x16')]}),_0x589bc3[_0x20a10e('0x17')](_0x4ed5b5);});},'down':function(){}}; \ No newline at end of file +const a988_0x182c=['inspect','settings','removeIndex\x20%s\x20%s','prototype','stringify','changeColumn','catch','finally','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','STRING','sequence','addIndex','tail','Removed\x20column\x20%s\x20from\x20%s','renameColumn','join','util','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','info','../config/logger','enqueue','final','dropTable','defaultScreenRecordingPath','exports','query','removeColumn','Added\x20column\x20%s\x20to\x20%s','removeIndex','migration','then','sequelize'];(function(_0x388f4d,_0x182c8a){const _0x492053=function(_0x8beed1){while(--_0x8beed1){_0x388f4d['push'](_0x388f4d['shift']());}};_0x492053(++_0x182c8a);}(a988_0x182c,0x19e));const a988_0x4920=function(_0x388f4d,_0x182c8a){_0x388f4d=_0x388f4d-0x0;let _0x492053=a988_0x182c[_0x388f4d];return _0x492053;};const _0x515195=a988_0x4920;'use strict';const util=require(_0x515195('0x0')),logger=require(_0x515195('0x5'))(_0x515195('0xf')),Sequence=function(){};Sequence['prototype'][_0x515195('0x6')]=function(_0x8beed1){const _0x176aa6=_0x515195;this[_0x176aa6('0x20')]=this[_0x176aa6('0x20')]?this[_0x176aa6('0x20')][_0x176aa6('0x19')](_0x8beed1):_0x8beed1();};const Migration=function(_0x2413a7){const _0x3ce54b=_0x515195;this[_0x3ce54b('0x1a')]=_0x2413a7,this['sequence']=new Sequence();};Migration[_0x515195('0x15')][_0x515195('0x17')]=function(_0x1f6269,_0x194926,_0x4467d0){const _0xb43b27=_0x515195,_0x8bd50b=this;this[_0xb43b27('0x1e')]['enqueue'](function(){const _0x2daf46=_0xb43b27;return _0x8bd50b['queryInterface'][_0x2daf46('0x17')](_0x1f6269,_0x194926,_0x4467d0)[_0x2daf46('0x10')](function(){const _0x42d1eb=_0x2daf46;logger['info'](_0x42d1eb('0x2'),_0x194926,_0x1f6269);})[_0x2daf46('0x18')](function(_0x24f52a){const _0x4a8db8=_0x2daf46;logger[_0x4a8db8('0x4')](JSON[_0x4a8db8('0x16')](_0x24f52a));});});},Migration[_0x515195('0x15')]['addColumn']=function(_0x5d9dc7,_0x1dc044,_0x6b2a03){const _0x7d910b=_0x515195,_0x252523=this;this[_0x7d910b('0x1e')][_0x7d910b('0x6')](function(){const _0x4e3549=_0x7d910b;return _0x252523[_0x4e3549('0x1a')][_0x4e3549('0x1c')](_0x5d9dc7,_0x1dc044,_0x6b2a03)[_0x4e3549('0x10')](function(){const _0x5ee211=_0x4e3549;logger['info'](_0x5ee211('0xd'),_0x1dc044,_0x5d9dc7);})[_0x4e3549('0x18')](function(_0x4b7f9b){const _0x58895a=_0x4e3549;logger['info'](JSON[_0x58895a('0x16')](_0x4b7f9b));});});},Migration[_0x515195('0x15')]['dropTable']=function(_0x25ccc9){const _0x1a7315=_0x515195,_0x554bd0=this;this[_0x1a7315('0x1e')]['enqueue'](function(){const _0x563d20=_0x1a7315;return _0x554bd0[_0x563d20('0x1a')][_0x563d20('0x8')](_0x25ccc9,{'force':!![]})[_0x563d20('0x10')](function(){const _0x4b245a=_0x563d20;logger[_0x4b245a('0x4')](_0x4b245a('0x1'),_0x25ccc9);})[_0x563d20('0x18')](function(_0x48b6ee){const _0x3b17f0=_0x563d20;logger['info'](JSON[_0x3b17f0('0x16')](_0x48b6ee));});});},Migration['prototype'][_0x515195('0x1f')]=function(_0x222388,_0x518106,_0x485967){const _0x32120d=_0x515195,_0x2a9881=this;this['sequence'][_0x32120d('0x6')](function(){const _0x157c86=_0x32120d;return _0x2a9881[_0x157c86('0x1a')][_0x157c86('0x1f')](_0x222388,_0x518106,{'indexName':_0x485967})[_0x157c86('0x10')](function(){const _0x484b26=_0x157c86;logger[_0x484b26('0x4')]('addIndex\x20%s\x20%s\x20%s',_0x222388,_0x518106[_0x484b26('0x23')](','),_0x485967);})[_0x157c86('0x18')](function(_0x11e71e){const _0x58a595=_0x157c86;logger[_0x58a595('0x4')](JSON[_0x58a595('0x16')](_0x11e71e));});});},Migration[_0x515195('0x15')][_0x515195('0xe')]=function(_0x2884d6,_0x4c19f7){const _0x2d0612=_0x515195,_0x50d11e=this;this[_0x2d0612('0x1e')][_0x2d0612('0x6')](function(){const _0x453d00=_0x2d0612;return _0x50d11e['queryInterface'][_0x453d00('0xe')](_0x2884d6,_0x4c19f7)[_0x453d00('0x10')](function(){const _0x3501b7=_0x453d00;logger[_0x3501b7('0x4')](_0x3501b7('0x14'),_0x2884d6,_0x4c19f7);})[_0x453d00('0x18')](function(_0x4ffae0){const _0x2db081=_0x453d00;logger[_0x2db081('0x4')](JSON[_0x2db081('0x16')](_0x4ffae0));});});},Migration[_0x515195('0x15')]['query']=function(_0x23485b){const _0x1ebbec=_0x515195,_0x477954=this;this[_0x1ebbec('0x1e')][_0x1ebbec('0x6')](function(){const _0x513a87=_0x1ebbec;return _0x477954[_0x513a87('0x1a')][_0x513a87('0x11')][_0x513a87('0xb')](_0x23485b)[_0x513a87('0x10')](function(){const _0x219d24=_0x513a87;logger[_0x219d24('0x4')](_0x219d24('0x3'),_0x23485b);})['catch'](function(_0x1f5e61){const _0x3e66ea=_0x513a87;logger[_0x3e66ea('0x4')](JSON[_0x3e66ea('0x16')](_0x1f5e61));});});},Migration[_0x515195('0x15')][_0x515195('0xc')]=function(_0x76edc7,_0x49a248){const _0x1c395f=_0x515195,_0x21bb91=this;this['sequence'][_0x1c395f('0x6')](function(){const _0x1cb606=_0x1c395f;return _0x21bb91[_0x1cb606('0x1a')][_0x1cb606('0xc')](_0x76edc7,_0x49a248)[_0x1cb606('0x10')](function(){const _0x4af68a=_0x1cb606;logger[_0x4af68a('0x4')](_0x4af68a('0x21'),_0x49a248,_0x76edc7);})[_0x1cb606('0x18')](function(_0x551c75){const _0x2aff5f=_0x1cb606;logger[_0x2aff5f('0x4')](util[_0x2aff5f('0x12')](_0x551c75,{'showHidden':![],'depth':null}));});});},Migration[_0x515195('0x15')][_0x515195('0x22')]=function(_0x4345ec,_0x72c5a0,_0x47c622){const _0x1756f3=_0x515195,_0x8f0b7b=this;this[_0x1756f3('0x1e')][_0x1756f3('0x6')](function(){const _0x25c67e=_0x1756f3;return _0x8f0b7b[_0x25c67e('0x1a')]['renameColumn'](_0x4345ec,_0x72c5a0,_0x47c622)[_0x25c67e('0x10')](function(){const _0x1a131d=_0x25c67e;logger[_0x1a131d('0x4')](_0x1a131d('0x1b'),_0x72c5a0,_0x47c622,_0x4345ec);})[_0x25c67e('0x18')](function(_0x44179e){const _0x3da09e=_0x25c67e;logger[_0x3da09e('0x4')](util['inspect'](_0x44179e,{'showHidden':![],'depth':null}));});});},Migration[_0x515195('0x15')][_0x515195('0x7')]=function(_0x5e63a5){const _0x7dafaf=_0x515195;this[_0x7dafaf('0x1e')]['enqueue'](function(){return _0x5e63a5();});},module[_0x515195('0xa')]={'up':function(_0x3fb1f6,_0x3ee012){return new Promise(function(_0x455057){const _0x1c85ed=a988_0x4920,_0x31b307=new Migration(_0x3fb1f6);_0x31b307[_0x1c85ed('0x1c')](_0x1c85ed('0x13'),_0x1c85ed('0x9'),{'type':_0x3ee012[_0x1c85ed('0x1d')]}),_0x31b307['final'](_0x455057);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.97.js b/server/migrations/2.3.97.js index 62bd66e..d168629 100644 --- a/server/migrations/2.3.97.js +++ b/server/migrations/2.3.97.js @@ -1 +1 @@ -const a989_0x1a56=['ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','renameColumn','enqueue','../config/logger','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','Removed\x20column\x20%s\x20from\x20%s','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','join','sequelize','changeColumn','dialPredictiveIntervalMinThreshold','info','queryInterface','prototype','query\x20%s','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','stringify','UNSIGNED','removeIndex','catch','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','INTEGER','util','exports','voice_queues','query','inspect','then','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','dropTable','addIndex','addColumn','addIndex\x20%s\x20%s\x20%s'];(function(_0xcd8303,_0x1a560e){const _0x13f4a6=function(_0x8df416){while(--_0x8df416){_0xcd8303['push'](_0xcd8303['shift']());}};_0x13f4a6(++_0x1a560e);}(a989_0x1a56,0xbe));const a989_0x13f4=function(_0xcd8303,_0x1a560e){_0xcd8303=_0xcd8303-0x0;let _0x13f4a6=a989_0x1a56[_0xcd8303];return _0x13f4a6;};const _0xcf1aa5=a989_0x13f4;'use strict';const util=require(_0xcf1aa5('0xf')),logger=require(_0xcf1aa5('0x1d'))('migration'),Sequence=function(){};Sequence[_0xcf1aa5('0x5')][_0xcf1aa5('0x1c')]=function(_0x8df416){const _0x38a3bf=_0xcf1aa5;this[_0x38a3bf('0x22')]=this['tail']?this[_0x38a3bf('0x22')]['finally'](_0x8df416):_0x8df416();};const Migration=function(_0x37eed3){const _0x52065a=_0xcf1aa5;this[_0x52065a('0x4')]=_0x37eed3,this[_0x52065a('0x20')]=new Sequence();};Migration[_0xcf1aa5('0x5')][_0xcf1aa5('0x1')]=function(_0x5e2b1f,_0x13fab4,_0x410f94){const _0x131866=_0xcf1aa5,_0x56dd58=this;this[_0x131866('0x20')][_0x131866('0x1c')](function(){const _0xcbf383=_0x131866;return _0x56dd58[_0xcbf383('0x4')][_0xcbf383('0x1')](_0x5e2b1f,_0x13fab4,_0x410f94)[_0xcbf383('0x14')](function(){const _0xe32027=_0xcbf383;logger[_0xe32027('0x3')](_0xe32027('0x21'),_0x13fab4,_0x5e2b1f);})[_0xcbf383('0xb')](function(_0x135aa2){const _0x34453a=_0xcbf383;logger['info'](JSON[_0x34453a('0x8')](_0x135aa2));});});},Migration[_0xcf1aa5('0x5')][_0xcf1aa5('0x18')]=function(_0x41ebad,_0xa9ddbd,_0x5c1473){const _0x453e8d=_0xcf1aa5,_0x389ea1=this;this[_0x453e8d('0x20')][_0x453e8d('0x1c')](function(){const _0x14267d=_0x453e8d;return _0x389ea1[_0x14267d('0x4')][_0x14267d('0x18')](_0x41ebad,_0xa9ddbd,_0x5c1473)[_0x14267d('0x14')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0xa9ddbd,_0x41ebad);})[_0x14267d('0xb')](function(_0x5436e4){const _0x2a71c1=_0x14267d;logger['info'](JSON[_0x2a71c1('0x8')](_0x5436e4));});});},Migration[_0xcf1aa5('0x5')][_0xcf1aa5('0x16')]=function(_0x13fdbf){const _0x92e63c=_0xcf1aa5,_0x54aa92=this;this[_0x92e63c('0x20')][_0x92e63c('0x1c')](function(){const _0x5b5e85=_0x92e63c;return _0x54aa92['queryInterface'][_0x5b5e85('0x16')](_0x13fdbf,{'force':!![]})[_0x5b5e85('0x14')](function(){const _0x51b374=_0x5b5e85;logger[_0x51b374('0x3')]('table\x20dropped\x20%s',_0x13fdbf);})['catch'](function(_0x28cfe9){const _0xa48df=_0x5b5e85;logger[_0xa48df('0x3')](JSON[_0xa48df('0x8')](_0x28cfe9));});});},Migration[_0xcf1aa5('0x5')][_0xcf1aa5('0x17')]=function(_0x3cba08,_0xb1921c,_0x3ba049){const _0x200581=_0xcf1aa5,_0x20b18d=this;this[_0x200581('0x20')][_0x200581('0x1c')](function(){const _0x250e6c=_0x200581;return _0x20b18d[_0x250e6c('0x4')][_0x250e6c('0x17')](_0x3cba08,_0xb1921c,{'indexName':_0x3ba049})[_0x250e6c('0x14')](function(){const _0x2e72b9=_0x250e6c;logger['info'](_0x2e72b9('0x19'),_0x3cba08,_0xb1921c[_0x2e72b9('0x23')](','),_0x3ba049);})['catch'](function(_0x1f2d14){const _0x3372a6=_0x250e6c;logger[_0x3372a6('0x3')](JSON[_0x3372a6('0x8')](_0x1f2d14));});});},Migration['prototype'][_0xcf1aa5('0xa')]=function(_0x16d4f5,_0x5913f5){const _0x462c7e=_0xcf1aa5,_0x587e18=this;this['sequence'][_0x462c7e('0x1c')](function(){const _0x1369f6=_0x462c7e;return _0x587e18['queryInterface'][_0x1369f6('0xa')](_0x16d4f5,_0x5913f5)[_0x1369f6('0x14')](function(){const _0x44f8c7=_0x1369f6;logger[_0x44f8c7('0x3')]('removeIndex\x20%s\x20%s',_0x16d4f5,_0x5913f5);})['catch'](function(_0x2872e7){const _0x32f4a7=_0x1369f6;logger['info'](JSON[_0x32f4a7('0x8')](_0x2872e7));});});},Migration[_0xcf1aa5('0x5')][_0xcf1aa5('0x12')]=function(_0x30b167){const _0x59221a=_0xcf1aa5,_0x34c1c6=this;this[_0x59221a('0x20')]['enqueue'](function(){const _0x5c96e6=_0x59221a;return _0x34c1c6[_0x5c96e6('0x4')][_0x5c96e6('0x0')]['query'](_0x30b167)['then'](function(){const _0xde7298=_0x5c96e6;logger[_0xde7298('0x3')](_0xde7298('0x6'),_0x30b167);})[_0x5c96e6('0xb')](function(_0x4314eb){const _0x1f5684=_0x5c96e6;logger['info'](JSON[_0x1f5684('0x8')](_0x4314eb));});});},Migration[_0xcf1aa5('0x5')]['removeColumn']=function(_0x3ecd32,_0x207e34){const _0x35e844=_0xcf1aa5,_0x3a9fb4=this;this['sequence'][_0x35e844('0x1c')](function(){const _0x2ff8aa=_0x35e844;return _0x3a9fb4[_0x2ff8aa('0x4')]['removeColumn'](_0x3ecd32,_0x207e34)[_0x2ff8aa('0x14')](function(){const _0x3bf8d5=_0x2ff8aa;logger[_0x3bf8d5('0x3')](_0x3bf8d5('0x1f'),_0x207e34,_0x3ecd32);})[_0x2ff8aa('0xb')](function(_0x2e85e7){const _0x68852b=_0x2ff8aa;logger[_0x68852b('0x3')](util[_0x68852b('0x13')](_0x2e85e7,{'showHidden':![],'depth':null}));});});},Migration[_0xcf1aa5('0x5')][_0xcf1aa5('0x1b')]=function(_0xbf2aae,_0x16da2d,_0x330671){const _0x54f1d0=_0xcf1aa5,_0x2c0008=this;this[_0x54f1d0('0x20')][_0x54f1d0('0x1c')](function(){const _0x17e0a1=_0x54f1d0;return _0x2c0008[_0x17e0a1('0x4')][_0x17e0a1('0x1b')](_0xbf2aae,_0x16da2d,_0x330671)[_0x17e0a1('0x14')](function(){const _0x400595=_0x17e0a1;logger[_0x400595('0x3')](_0x400595('0xd'),_0x16da2d,_0x330671,_0xbf2aae);})['catch'](function(_0x4638cb){const _0x2ff091=_0x17e0a1;logger[_0x2ff091('0x3')](util[_0x2ff091('0x13')](_0x4638cb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xcf1aa5('0xc')]=function(_0x36d950){const _0x4ce8a1=_0xcf1aa5;this['sequence'][_0x4ce8a1('0x1c')](function(){return _0x36d950();});},module[_0xcf1aa5('0x10')]={'up':function(_0x4775e7,_0x117784){return new Promise(function(_0x3a71ea){const _0x1f0cb4=a989_0x13f4,_0xf3d1b7=new Migration(_0x4775e7);_0xf3d1b7[_0x1f0cb4('0x18')](_0x1f0cb4('0x11'),'dialPredictiveIntervalMaxThreshold',{'type':_0x117784[_0x1f0cb4('0xe')](0x3)[_0x1f0cb4('0x9')],'defaultValue':0x14}),_0xf3d1b7[_0x1f0cb4('0x18')](_0x1f0cb4('0x11'),_0x1f0cb4('0x2'),{'type':_0x117784[_0x1f0cb4('0xe')](0x3)['UNSIGNED'],'defaultValue':0xa}),_0xf3d1b7[_0x1f0cb4('0x12')](_0x1f0cb4('0x15')),_0xf3d1b7[_0x1f0cb4('0x12')](_0x1f0cb4('0x1e')),_0xf3d1b7[_0x1f0cb4('0x12')](_0x1f0cb4('0x1a')),_0xf3d1b7[_0x1f0cb4('0x12')]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version'),_0xf3d1b7[_0x1f0cb4('0x12')](_0x1f0cb4('0x7')),_0xf3d1b7['final'](_0x3a71ea);});},'down':function(){}}; \ No newline at end of file +const a989_0x4e66=['dialPredictiveIntervalMaxThreshold','UNSIGNED','stringify','INTEGER','table\x20dropped\x20%s','exports','inspect','final','enqueue','addColumn','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','catch','then','removeColumn','query','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','dialPredictiveIntervalMinThreshold','tail','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','dropTable','info','voice_queues','removeIndex','removeIndex\x20%s\x20%s','prototype','Removed\x20column\x20%s\x20from\x20%s','sequence','migration','query\x20%s','queryInterface','join','renameColumn','sequelize','util','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','changeColumn'];(function(_0x21c7e1,_0x4e66b1){const _0x3c4425=function(_0x989514){while(--_0x989514){_0x21c7e1['push'](_0x21c7e1['shift']());}};_0x3c4425(++_0x4e66b1);}(a989_0x4e66,0x17e));const a989_0x3c44=function(_0x21c7e1,_0x4e66b1){_0x21c7e1=_0x21c7e1-0x0;let _0x3c4425=a989_0x4e66[_0x21c7e1];return _0x3c4425;};const _0x20369a=a989_0x3c44;'use strict';const util=require(_0x20369a('0x21')),logger=require('../config/logger')(_0x20369a('0x1b')),Sequence=function(){};Sequence['prototype'][_0x20369a('0x6')]=function(_0x989514){const _0x1591f1=_0x20369a;this[_0x1591f1('0x10')]=this[_0x1591f1('0x10')]?this[_0x1591f1('0x10')]['finally'](_0x989514):_0x989514();};const Migration=function(_0x3616e1){this['queryInterface']=_0x3616e1,this['sequence']=new Sequence();};Migration[_0x20369a('0x18')][_0x20369a('0x23')]=function(_0x25a09d,_0xbe139d,_0x5469ed){const _0x231728=_0x20369a,_0x4f3da0=this;this[_0x231728('0x1a')]['enqueue'](function(){const _0x315ab9=_0x231728;return _0x4f3da0[_0x315ab9('0x1d')]['changeColumn'](_0x25a09d,_0xbe139d,_0x5469ed)['then'](function(){const _0x89562f=_0x315ab9;logger['info'](_0x89562f('0xe'),_0xbe139d,_0x25a09d);})['catch'](function(_0x1e533d){const _0x47bba5=_0x315ab9;logger['info'](JSON[_0x47bba5('0x0')](_0x1e533d));});});},Migration[_0x20369a('0x18')][_0x20369a('0x7')]=function(_0x40dbbd,_0x203c2f,_0x2243c3){const _0x15519a=_0x20369a,_0x1a6eb5=this;this[_0x15519a('0x1a')][_0x15519a('0x6')](function(){const _0x4b005a=_0x15519a;return _0x1a6eb5[_0x4b005a('0x1d')][_0x4b005a('0x7')](_0x40dbbd,_0x203c2f,_0x2243c3)[_0x4b005a('0xa')](function(){const _0x29981e=_0x4b005a;logger[_0x29981e('0x14')]('Added\x20column\x20%s\x20to\x20%s',_0x203c2f,_0x40dbbd);})[_0x4b005a('0x9')](function(_0x2067cc){const _0x521d7e=_0x4b005a;logger[_0x521d7e('0x14')](JSON[_0x521d7e('0x0')](_0x2067cc));});});},Migration[_0x20369a('0x18')][_0x20369a('0x13')]=function(_0x28164d){const _0x5c1a57=_0x20369a,_0x5c745f=this;this[_0x5c1a57('0x1a')][_0x5c1a57('0x6')](function(){const _0x4fa431=_0x5c1a57;return _0x5c745f[_0x4fa431('0x1d')][_0x4fa431('0x13')](_0x28164d,{'force':!![]})[_0x4fa431('0xa')](function(){const _0x1c2435=_0x4fa431;logger[_0x1c2435('0x14')](_0x1c2435('0x2'),_0x28164d);})['catch'](function(_0x3e5bad){logger['info'](JSON['stringify'](_0x3e5bad));});});},Migration[_0x20369a('0x18')][_0x20369a('0xd')]=function(_0x31dd35,_0x16c913,_0x39d80a){const _0x291575=_0x20369a,_0x16f4a0=this;this['sequence'][_0x291575('0x6')](function(){const _0x2487b6=_0x291575;return _0x16f4a0[_0x2487b6('0x1d')]['addIndex'](_0x31dd35,_0x16c913,{'indexName':_0x39d80a})[_0x2487b6('0xa')](function(){const _0x3d6399=_0x2487b6;logger[_0x3d6399('0x14')]('addIndex\x20%s\x20%s\x20%s',_0x31dd35,_0x16c913[_0x3d6399('0x1e')](','),_0x39d80a);})[_0x2487b6('0x9')](function(_0x39275b){logger['info'](JSON['stringify'](_0x39275b));});});},Migration[_0x20369a('0x18')][_0x20369a('0x16')]=function(_0x4f60a4,_0x4dfee4){const _0x2eea7a=_0x20369a,_0x379f94=this;this[_0x2eea7a('0x1a')]['enqueue'](function(){const _0x56559b=_0x2eea7a;return _0x379f94['queryInterface'][_0x56559b('0x16')](_0x4f60a4,_0x4dfee4)['then'](function(){const _0x2179eb=_0x56559b;logger[_0x2179eb('0x14')](_0x2179eb('0x17'),_0x4f60a4,_0x4dfee4);})[_0x56559b('0x9')](function(_0x1c31fa){const _0x3171be=_0x56559b;logger[_0x3171be('0x14')](JSON[_0x3171be('0x0')](_0x1c31fa));});});},Migration[_0x20369a('0x18')]['query']=function(_0x5e5444){const _0x46a71a=_0x20369a,_0x3770ba=this;this['sequence'][_0x46a71a('0x6')](function(){const _0x587c62=_0x46a71a;return _0x3770ba[_0x587c62('0x1d')][_0x587c62('0x20')]['query'](_0x5e5444)[_0x587c62('0xa')](function(){const _0x416f80=_0x587c62;logger['info'](_0x416f80('0x1c'),_0x5e5444);})[_0x587c62('0x9')](function(_0x582be1){const _0xf2093d=_0x587c62;logger[_0xf2093d('0x14')](JSON['stringify'](_0x582be1));});});},Migration['prototype'][_0x20369a('0xb')]=function(_0x1c2119,_0x57d196){const _0x10ded1=_0x20369a,_0x5a5ca0=this;this['sequence'][_0x10ded1('0x6')](function(){const _0x31b344=_0x10ded1;return _0x5a5ca0[_0x31b344('0x1d')][_0x31b344('0xb')](_0x1c2119,_0x57d196)[_0x31b344('0xa')](function(){const _0x3511ac=_0x31b344;logger[_0x3511ac('0x14')](_0x3511ac('0x19'),_0x57d196,_0x1c2119);})['catch'](function(_0x230147){const _0x267cd9=_0x31b344;logger[_0x267cd9('0x14')](util[_0x267cd9('0x4')](_0x230147,{'showHidden':![],'depth':null}));});});},Migration[_0x20369a('0x18')][_0x20369a('0x1f')]=function(_0x349f35,_0x164d5c,_0xbc754a){const _0x832907=_0x20369a,_0x35f2fb=this;this[_0x832907('0x1a')]['enqueue'](function(){const _0xf2555a=_0x832907;return _0x35f2fb['queryInterface'][_0xf2555a('0x1f')](_0x349f35,_0x164d5c,_0xbc754a)[_0xf2555a('0xa')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x164d5c,_0xbc754a,_0x349f35);})[_0xf2555a('0x9')](function(_0x9c322d){const _0x51ca5a=_0xf2555a;logger[_0x51ca5a('0x14')](util[_0x51ca5a('0x4')](_0x9c322d,{'showHidden':![],'depth':null}));});});},Migration[_0x20369a('0x18')]['final']=function(_0x3bfbe0){const _0x3a31cc=_0x20369a;this['sequence'][_0x3a31cc('0x6')](function(){return _0x3bfbe0();});},module[_0x20369a('0x3')]={'up':function(_0x4fbbe6,_0x22d350){return new Promise(function(_0x3b001f){const _0x323b8d=a989_0x3c44,_0x3b4f24=new Migration(_0x4fbbe6);_0x3b4f24[_0x323b8d('0x7')](_0x323b8d('0x15'),_0x323b8d('0x24'),{'type':_0x22d350[_0x323b8d('0x1')](0x3)[_0x323b8d('0x25')],'defaultValue':0x14}),_0x3b4f24[_0x323b8d('0x7')](_0x323b8d('0x15'),_0x323b8d('0xf'),{'type':_0x22d350[_0x323b8d('0x1')](0x3)['UNSIGNED'],'defaultValue':0xa}),_0x3b4f24[_0x323b8d('0xc')](_0x323b8d('0x12')),_0x3b4f24[_0x323b8d('0xc')](_0x323b8d('0x8')),_0x3b4f24[_0x323b8d('0xc')](_0x323b8d('0x11')),_0x3b4f24[_0x323b8d('0xc')]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version'),_0x3b4f24[_0x323b8d('0xc')](_0x323b8d('0x22')),_0x3b4f24[_0x323b8d('0x5')](_0x3b001f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.3.98.js b/server/migrations/2.3.98.js index 0568a24..c26409f 100644 --- a/server/migrations/2.3.98.js +++ b/server/migrations/2.3.98.js @@ -1 +1 @@ -const a990_0x4c56=['Removed\x20column\x20%s\x20from\x20%s','query\x20%s','sequelize','tail','addColumn','query','changeColumn','addIndex','stringify','inspect','final','exports','enqueue','removeIndex\x20%s\x20%s','prototype','info','addIndex\x20%s\x20%s\x20%s','finally','Added\x20column\x20%s\x20to\x20%s','renameColumn','removeIndex','catch','dropTable','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','../config/logger','sequence','removeColumn','queryInterface','then'];(function(_0x256bbc,_0x4c5659){const _0x49d373=function(_0x37675a){while(--_0x37675a){_0x256bbc['push'](_0x256bbc['shift']());}};_0x49d373(++_0x4c5659);}(a990_0x4c56,0xa1));const a990_0x49d3=function(_0x256bbc,_0x4c5659){_0x256bbc=_0x256bbc-0x0;let _0x49d373=a990_0x4c56[_0x256bbc];return _0x49d373;};const _0x4949e4=a990_0x49d3;'use strict';const util=require(_0x4949e4('0x13')),logger=require(_0x4949e4('0x14'))(_0x4949e4('0x11')),Sequence=function(){};Sequence[_0x4949e4('0x8')][_0x4949e4('0x6')]=function(_0x37675a){const _0x4ea334=_0x4949e4;this[_0x4ea334('0x1c')]=this[_0x4ea334('0x1c')]?this[_0x4ea334('0x1c')][_0x4ea334('0xb')](_0x37675a):_0x37675a();};const Migration=function(_0x166364){const _0x49e816=_0x4949e4;this[_0x49e816('0x17')]=_0x166364,this[_0x49e816('0x15')]=new Sequence();};Migration[_0x4949e4('0x8')][_0x4949e4('0x0')]=function(_0x5e927b,_0x47cd4f,_0xdc232){const _0x28714c=_0x4949e4,_0x1cf1f0=this;this[_0x28714c('0x15')][_0x28714c('0x6')](function(){const _0x4e193d=_0x28714c;return _0x1cf1f0[_0x4e193d('0x17')]['changeColumn'](_0x5e927b,_0x47cd4f,_0xdc232)[_0x4e193d('0x18')](function(){const _0xe1a8b3=_0x4e193d;logger[_0xe1a8b3('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x47cd4f,_0x5e927b);})[_0x4e193d('0xf')](function(_0x49a4dc){const _0x2e6c9d=_0x4e193d;logger[_0x2e6c9d('0x9')](JSON[_0x2e6c9d('0x2')](_0x49a4dc));});});},Migration[_0x4949e4('0x8')]['addColumn']=function(_0x588b38,_0x332e8e,_0x316b0c){const _0x39fb1b=_0x4949e4,_0x2b67aa=this;this[_0x39fb1b('0x15')]['enqueue'](function(){const _0x4eb16b=_0x39fb1b;return _0x2b67aa['queryInterface'][_0x4eb16b('0x1d')](_0x588b38,_0x332e8e,_0x316b0c)[_0x4eb16b('0x18')](function(){const _0x1605ed=_0x4eb16b;logger[_0x1605ed('0x9')](_0x1605ed('0xc'),_0x332e8e,_0x588b38);})[_0x4eb16b('0xf')](function(_0x541747){const _0x2f3a61=_0x4eb16b;logger[_0x2f3a61('0x9')](JSON[_0x2f3a61('0x2')](_0x541747));});});},Migration[_0x4949e4('0x8')][_0x4949e4('0x10')]=function(_0x1110ed){const _0x491b36=_0x4949e4,_0x3bec23=this;this[_0x491b36('0x15')][_0x491b36('0x6')](function(){const _0x51ada7=_0x491b36;return _0x3bec23['queryInterface'][_0x51ada7('0x10')](_0x1110ed,{'force':!![]})[_0x51ada7('0x18')](function(){const _0x269de8=_0x51ada7;logger[_0x269de8('0x9')]('table\x20dropped\x20%s',_0x1110ed);})[_0x51ada7('0xf')](function(_0x49d22a){const _0x2792f7=_0x51ada7;logger[_0x2792f7('0x9')](JSON[_0x2792f7('0x2')](_0x49d22a));});});},Migration[_0x4949e4('0x8')][_0x4949e4('0x1')]=function(_0xddb945,_0x13b720,_0x5e7ff9){const _0x1fd6e1=_0x4949e4,_0x581f41=this;this[_0x1fd6e1('0x15')][_0x1fd6e1('0x6')](function(){const _0x148b2a=_0x1fd6e1;return _0x581f41['queryInterface'][_0x148b2a('0x1')](_0xddb945,_0x13b720,{'indexName':_0x5e7ff9})['then'](function(){const _0x41f4ed=_0x148b2a;logger['info'](_0x41f4ed('0xa'),_0xddb945,_0x13b720['join'](','),_0x5e7ff9);})[_0x148b2a('0xf')](function(_0x3f14b7){const _0x68a23b=_0x148b2a;logger[_0x68a23b('0x9')](JSON['stringify'](_0x3f14b7));});});},Migration[_0x4949e4('0x8')][_0x4949e4('0xe')]=function(_0x37b5fb,_0x3ddd40){const _0x3f986b=_0x4949e4,_0x1e15ef=this;this[_0x3f986b('0x15')][_0x3f986b('0x6')](function(){const _0x1b0fd8=_0x3f986b;return _0x1e15ef['queryInterface'][_0x1b0fd8('0xe')](_0x37b5fb,_0x3ddd40)['then'](function(){const _0x295f85=_0x1b0fd8;logger['info'](_0x295f85('0x7'),_0x37b5fb,_0x3ddd40);})['catch'](function(_0x8131e4){const _0x487169=_0x1b0fd8;logger['info'](JSON[_0x487169('0x2')](_0x8131e4));});});},Migration[_0x4949e4('0x8')][_0x4949e4('0x1e')]=function(_0x46ac98){const _0x5ce126=_0x4949e4,_0x1c7c89=this;this[_0x5ce126('0x15')]['enqueue'](function(){const _0x2846f0=_0x5ce126;return _0x1c7c89['queryInterface'][_0x2846f0('0x1b')][_0x2846f0('0x1e')](_0x46ac98)[_0x2846f0('0x18')](function(){const _0x137b0c=_0x2846f0;logger[_0x137b0c('0x9')](_0x137b0c('0x1a'),_0x46ac98);})['catch'](function(_0x27a969){const _0x5cf96d=_0x2846f0;logger[_0x5cf96d('0x9')](JSON[_0x5cf96d('0x2')](_0x27a969));});});},Migration[_0x4949e4('0x8')][_0x4949e4('0x16')]=function(_0x7f7ed3,_0x453f14){const _0x1bd502=_0x4949e4,_0xd0ac7c=this;this['sequence'][_0x1bd502('0x6')](function(){const _0x2b2497=_0x1bd502;return _0xd0ac7c[_0x2b2497('0x17')]['removeColumn'](_0x7f7ed3,_0x453f14)[_0x2b2497('0x18')](function(){const _0x2065f6=_0x2b2497;logger[_0x2065f6('0x9')](_0x2065f6('0x19'),_0x453f14,_0x7f7ed3);})[_0x2b2497('0xf')](function(_0x153b3a){const _0x278dcc=_0x2b2497;logger[_0x278dcc('0x9')](util['inspect'](_0x153b3a,{'showHidden':![],'depth':null}));});});},Migration[_0x4949e4('0x8')][_0x4949e4('0xd')]=function(_0x55f7b2,_0x437647,_0x395f0c){const _0x573f13=_0x4949e4,_0xf03147=this;this[_0x573f13('0x15')][_0x573f13('0x6')](function(){const _0x2988b6=_0x573f13;return _0xf03147['queryInterface'][_0x2988b6('0xd')](_0x55f7b2,_0x437647,_0x395f0c)[_0x2988b6('0x18')](function(){const _0x1713bb=_0x2988b6;logger[_0x1713bb('0x9')](_0x1713bb('0x12'),_0x437647,_0x395f0c,_0x55f7b2);})['catch'](function(_0x4e909a){const _0x55faa5=_0x2988b6;logger[_0x55faa5('0x9')](util[_0x55faa5('0x3')](_0x4e909a,{'showHidden':![],'depth':null}));});});},Migration[_0x4949e4('0x8')][_0x4949e4('0x4')]=function(_0x58c106){const _0x22d6e7=_0x4949e4;this[_0x22d6e7('0x15')]['enqueue'](function(){return _0x58c106();});},module[_0x4949e4('0x5')]={'up':function(_0x4f2140){return new Promise(function(_0x406266){const _0x2277a8=a990_0x49d3,_0x522ae6=new Migration(_0x4f2140);_0x522ae6[_0x2277a8('0x4')](_0x406266);});},'down':function(){}}; \ No newline at end of file +const a990_0x4da0=['info','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','Added\x20column\x20%s\x20to\x20%s','query','removeColumn','removeIndex','enqueue','changeColumn','../config/logger','join','removeIndex\x20%s\x20%s','query\x20%s','sequence','final','addColumn','finally','catch','tail','Removed\x20column\x20%s\x20from\x20%s','migration','then','stringify','queryInterface','addIndex','dropTable','addIndex\x20%s\x20%s\x20%s','sequelize','table\x20dropped\x20%s','prototype'];(function(_0x3b2876,_0x4da058){const _0x21e3f9=function(_0xd68f3b){while(--_0xd68f3b){_0x3b2876['push'](_0x3b2876['shift']());}};_0x21e3f9(++_0x4da058);}(a990_0x4da0,0x1b7));const a990_0x21e3=function(_0x3b2876,_0x4da058){_0x3b2876=_0x3b2876-0x0;let _0x21e3f9=a990_0x4da0[_0x3b2876];return _0x21e3f9;};const _0x5724c9=a990_0x21e3;'use strict';const util=require('util'),logger=require(_0x5724c9('0x5'))(_0x5724c9('0x10')),Sequence=function(){};Sequence[_0x5724c9('0x19')][_0x5724c9('0x3')]=function(_0xd68f3b){const _0x451c4e=_0x5724c9;this[_0x451c4e('0xe')]=this['tail']?this[_0x451c4e('0xe')][_0x451c4e('0xc')](_0xd68f3b):_0xd68f3b();};const Migration=function(_0x35e065){const _0x4f6695=_0x5724c9;this['queryInterface']=_0x35e065,this[_0x4f6695('0x9')]=new Sequence();};Migration[_0x5724c9('0x19')][_0x5724c9('0x4')]=function(_0x226fbf,_0x1ed71b,_0x392856){const _0x42b57b=_0x5724c9,_0x3b9f4a=this;this[_0x42b57b('0x9')][_0x42b57b('0x3')](function(){const _0x5a80a5=_0x42b57b;return _0x3b9f4a[_0x5a80a5('0x13')]['changeColumn'](_0x226fbf,_0x1ed71b,_0x392856)[_0x5a80a5('0x11')](function(){const _0x3df440=_0x5a80a5;logger[_0x3df440('0x1a')](_0x3df440('0x1b'),_0x1ed71b,_0x226fbf);})[_0x5a80a5('0xd')](function(_0x1b944a){const _0x20dc2c=_0x5a80a5;logger[_0x20dc2c('0x1a')](JSON['stringify'](_0x1b944a));});});},Migration[_0x5724c9('0x19')][_0x5724c9('0xb')]=function(_0x320d9b,_0x10b539,_0x1ab2c6){const _0x36be46=_0x5724c9,_0x51d8b3=this;this[_0x36be46('0x9')][_0x36be46('0x3')](function(){const _0x8352e7=_0x36be46;return _0x51d8b3['queryInterface'][_0x8352e7('0xb')](_0x320d9b,_0x10b539,_0x1ab2c6)[_0x8352e7('0x11')](function(){const _0x2acfff=_0x8352e7;logger[_0x2acfff('0x1a')](_0x2acfff('0x1e'),_0x10b539,_0x320d9b);})[_0x8352e7('0xd')](function(_0x2fb6fc){const _0x2a579a=_0x8352e7;logger['info'](JSON[_0x2a579a('0x12')](_0x2fb6fc));});});},Migration[_0x5724c9('0x19')][_0x5724c9('0x15')]=function(_0x55d1b8){const _0x1d65e2=_0x5724c9,_0x35330b=this;this[_0x1d65e2('0x9')][_0x1d65e2('0x3')](function(){const _0x69cbde=_0x1d65e2;return _0x35330b[_0x69cbde('0x13')]['dropTable'](_0x55d1b8,{'force':!![]})[_0x69cbde('0x11')](function(){const _0x87c804=_0x69cbde;logger['info'](_0x87c804('0x18'),_0x55d1b8);})[_0x69cbde('0xd')](function(_0x45ad80){const _0x3346d7=_0x69cbde;logger[_0x3346d7('0x1a')](JSON[_0x3346d7('0x12')](_0x45ad80));});});},Migration[_0x5724c9('0x19')]['addIndex']=function(_0xb0fd72,_0x18383d,_0x5727ff){const _0x5bd7b3=_0x5724c9,_0x2cec41=this;this[_0x5bd7b3('0x9')][_0x5bd7b3('0x3')](function(){const _0xb99a99=_0x5bd7b3;return _0x2cec41[_0xb99a99('0x13')][_0xb99a99('0x14')](_0xb0fd72,_0x18383d,{'indexName':_0x5727ff})[_0xb99a99('0x11')](function(){const _0x2d4890=_0xb99a99;logger['info'](_0x2d4890('0x16'),_0xb0fd72,_0x18383d[_0x2d4890('0x6')](','),_0x5727ff);})[_0xb99a99('0xd')](function(_0x108a75){const _0x5431d4=_0xb99a99;logger[_0x5431d4('0x1a')](JSON['stringify'](_0x108a75));});});},Migration['prototype']['removeIndex']=function(_0x13bca8,_0x478a01){const _0x3de667=_0x5724c9,_0x21271a=this;this[_0x3de667('0x9')][_0x3de667('0x3')](function(){const _0x970ed9=_0x3de667;return _0x21271a['queryInterface'][_0x970ed9('0x2')](_0x13bca8,_0x478a01)[_0x970ed9('0x11')](function(){const _0x2e70db=_0x970ed9;logger[_0x2e70db('0x1a')](_0x2e70db('0x7'),_0x13bca8,_0x478a01);})[_0x970ed9('0xd')](function(_0x407f57){const _0x38079a=_0x970ed9;logger[_0x38079a('0x1a')](JSON[_0x38079a('0x12')](_0x407f57));});});},Migration['prototype']['query']=function(_0x350fa4){const _0xe0405d=_0x5724c9,_0x46ac15=this;this[_0xe0405d('0x9')]['enqueue'](function(){const _0x36ac7e=_0xe0405d;return _0x46ac15[_0x36ac7e('0x13')][_0x36ac7e('0x17')][_0x36ac7e('0x0')](_0x350fa4)[_0x36ac7e('0x11')](function(){const _0x3c98e5=_0x36ac7e;logger['info'](_0x3c98e5('0x8'),_0x350fa4);})[_0x36ac7e('0xd')](function(_0x5ef5aa){const _0x2e1467=_0x36ac7e;logger[_0x2e1467('0x1a')](JSON['stringify'](_0x5ef5aa));});});},Migration[_0x5724c9('0x19')][_0x5724c9('0x1')]=function(_0xd84476,_0x474522){const _0x9e8394=_0x5724c9,_0x31eae5=this;this['sequence'][_0x9e8394('0x3')](function(){const _0x4d70b8=_0x9e8394;return _0x31eae5[_0x4d70b8('0x13')]['removeColumn'](_0xd84476,_0x474522)[_0x4d70b8('0x11')](function(){const _0x2fdd2d=_0x4d70b8;logger[_0x2fdd2d('0x1a')](_0x2fdd2d('0xf'),_0x474522,_0xd84476);})[_0x4d70b8('0xd')](function(_0x197877){const _0x4fecda=_0x4d70b8;logger[_0x4fecda('0x1a')](util['inspect'](_0x197877,{'showHidden':![],'depth':null}));});});},Migration[_0x5724c9('0x19')]['renameColumn']=function(_0x16a19e,_0x5a9e78,_0x16fb8f){const _0x59fd98=_0x5724c9,_0x4883ab=this;this[_0x59fd98('0x9')][_0x59fd98('0x3')](function(){const _0x3485b6=_0x59fd98;return _0x4883ab['queryInterface'][_0x3485b6('0x1d')](_0x16a19e,_0x5a9e78,_0x16fb8f)[_0x3485b6('0x11')](function(){const _0xffbd4e=_0x3485b6;logger[_0xffbd4e('0x1a')](_0xffbd4e('0x1c'),_0x5a9e78,_0x16fb8f,_0x16a19e);})[_0x3485b6('0xd')](function(_0x2f6820){logger['info'](util['inspect'](_0x2f6820,{'showHidden':![],'depth':null}));});});},Migration[_0x5724c9('0x19')]['final']=function(_0x326d45){const _0x39b7d1=_0x5724c9;this[_0x39b7d1('0x9')][_0x39b7d1('0x3')](function(){return _0x326d45();});},module['exports']={'up':function(_0xf33d59){return new Promise(function(_0x3c593b){const _0x1b8edd=a990_0x21e3,_0x2b3132=new Migration(_0xf33d59);_0x2b3132[_0x1b8edd('0xa')](_0x3c593b);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.0.js b/server/migrations/2.4.0.js index bf6a179..5cb4893 100644 --- a/server/migrations/2.4.0.js +++ b/server/migrations/2.4.0.js @@ -1 +1 @@ -const a991_0x58a0=['openchannel_messages','changeColumn','dropTable','FULLTEXT','query\x20%s','inspect','subject','fti_openchannel_messages','addIndex\x20%s\x20%s\x20%s\x20[%s]','fti_mail_interactions','final','enqueue','phoneBarEnableAutomaticScreenRecording','fti_sms_messages','renameColumn','phoneBarEnableScreenRecordingByAgent','query','ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','mail_messages','sequence','ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','lastMsgBody','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','info','mail_interactions','users','tiny','fti_chat_messages','screenrecording','chat_messages','sms_messages','ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','migration','join','prototype','plainBody','sequelize','removeIndex\x20%s\x20%s','catch','ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','queryInterface','exports','../config/logger','removeIndex','BOOLEAN','fti_mail_messages','tail','addColumn','addIndex','body','stringify'];(function(_0x3a413f,_0x58a0e3){const _0x4b6abc=function(_0x13c5ec){while(--_0x13c5ec){_0x3a413f['push'](_0x3a413f['shift']());}};_0x4b6abc(++_0x58a0e3);}(a991_0x58a0,0x187));const a991_0x4b6a=function(_0x3a413f,_0x58a0e3){_0x3a413f=_0x3a413f-0x0;let _0x4b6abc=a991_0x58a0[_0x3a413f];return _0x4b6abc;};const _0x189285=a991_0x4b6a;'use strict';const util=require('util'),logger=require(_0x189285('0x18'))(_0x189285('0xe')),Sequence=function(){};Sequence[_0x189285('0x10')]['enqueue']=function(_0x13c5ec){const _0x172b6c=_0x189285;this[_0x172b6c('0x1c')]=this[_0x172b6c('0x1c')]?this[_0x172b6c('0x1c')]['finally'](_0x13c5ec):_0x13c5ec();};const Migration=function(_0x221bc2){const _0x411dea=_0x189285;this['queryInterface']=_0x221bc2,this[_0x411dea('0x34')]=new Sequence();};Migration['prototype'][_0x189285('0x22')]=function(_0x3bb715,_0xe2c600,_0x1cf40b){const _0x4fa4fd=_0x189285,_0x46b8a=this;this['sequence'][_0x4fa4fd('0x2c')](function(){const _0x391b6c=_0x4fa4fd;return _0x46b8a[_0x391b6c('0x16')][_0x391b6c('0x22')](_0x3bb715,_0xe2c600,_0x1cf40b)[_0x391b6c('0x4')](function(){const _0x17ec96=_0x391b6c;logger[_0x17ec96('0x5')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xe2c600,_0x3bb715);})['catch'](function(_0xa747fa){const _0x85d82a=_0x391b6c;logger['info'](JSON[_0x85d82a('0x20')](_0xa747fa));});});},Migration[_0x189285('0x10')]['addColumn']=function(_0x3b5ac1,_0x263e27,_0x16a9e6){const _0x944ee7=_0x189285,_0x21dc0c=this;this[_0x944ee7('0x34')]['enqueue'](function(){const _0x29f956=_0x944ee7;return _0x21dc0c['queryInterface'][_0x29f956('0x1d')](_0x3b5ac1,_0x263e27,_0x16a9e6)[_0x29f956('0x4')](function(){const _0x177e76=_0x29f956;logger[_0x177e76('0x5')]('Added\x20column\x20%s\x20to\x20%s',_0x263e27,_0x3b5ac1);})[_0x29f956('0x14')](function(_0x3ba4ee){const _0x161061=_0x29f956;logger['info'](JSON[_0x161061('0x20')](_0x3ba4ee));});});},Migration[_0x189285('0x10')][_0x189285('0x23')]=function(_0x1de126){const _0x1ef742=_0x189285,_0x545c91=this;this[_0x1ef742('0x34')]['enqueue'](function(){const _0x1d4138=_0x1ef742;return _0x545c91[_0x1d4138('0x16')][_0x1d4138('0x23')](_0x1de126,{'force':!![]})[_0x1d4138('0x4')](function(){logger['info']('table\x20dropped\x20%s',_0x1de126);})['catch'](function(_0x5e5ba7){const _0x37eb43=_0x1d4138;logger[_0x37eb43('0x5')](JSON[_0x37eb43('0x20')](_0x5e5ba7));});});},Migration[_0x189285('0x10')][_0x189285('0x1e')]=function(_0x38b27a,_0x2c4cab,_0xd1b4b1){const _0x92a9b3=_0x189285,_0xcb0450=this;this['sequence'][_0x92a9b3('0x2c')](function(){const _0x22394e=_0x92a9b3;return _0xcb0450[_0x22394e('0x16')][_0x22394e('0x1e')](_0x38b27a,_0x2c4cab,{'indexName':_0xd1b4b1['indexName'],'indicesType':_0xd1b4b1['indicesType']})['then'](function(){const _0x18d5bb=_0x22394e;logger[_0x18d5bb('0x5')](_0x18d5bb('0x29'),_0x38b27a,_0x2c4cab[_0x18d5bb('0xf')](','),_0xd1b4b1['indexName'],_0xd1b4b1['indicesType']);})['catch'](function(_0x14ec56){const _0x10f3e2=_0x22394e;logger[_0x10f3e2('0x5')](JSON['stringify'](_0x14ec56));});});},Migration[_0x189285('0x10')][_0x189285('0x19')]=function(_0x5dc431,_0x4aaba5){const _0x4f53f1=this;this['sequence']['enqueue'](function(){const _0x4a943f=a991_0x4b6a;return _0x4f53f1[_0x4a943f('0x16')][_0x4a943f('0x19')](_0x5dc431,_0x4aaba5)[_0x4a943f('0x4')](function(){const _0x1ad84f=_0x4a943f;logger[_0x1ad84f('0x5')](_0x1ad84f('0x13'),_0x5dc431,_0x4aaba5);})[_0x4a943f('0x14')](function(_0x4ed6ea){const _0x47a4cd=_0x4a943f;logger[_0x47a4cd('0x5')](JSON[_0x47a4cd('0x20')](_0x4ed6ea));});});},Migration[_0x189285('0x10')][_0x189285('0x31')]=function(_0x345d0c){const _0x58fd54=_0x189285,_0x29861f=this;this[_0x58fd54('0x34')][_0x58fd54('0x2c')](function(){const _0x4e95d1=_0x58fd54;return _0x29861f[_0x4e95d1('0x16')][_0x4e95d1('0x12')][_0x4e95d1('0x31')](_0x345d0c)['then'](function(){const _0x5c1ff6=_0x4e95d1;logger[_0x5c1ff6('0x5')](_0x5c1ff6('0x25'),_0x345d0c);})['catch'](function(_0x3b8230){const _0x21dec6=_0x4e95d1;logger[_0x21dec6('0x5')](JSON[_0x21dec6('0x20')](_0x3b8230));});});},Migration[_0x189285('0x10')]['removeColumn']=function(_0x1fdada,_0x4b931f){const _0x5c63ab=_0x189285,_0x49f76e=this;this[_0x5c63ab('0x34')][_0x5c63ab('0x2c')](function(){const _0x2f14ac=_0x5c63ab;return _0x49f76e[_0x2f14ac('0x16')]['removeColumn'](_0x1fdada,_0x4b931f)[_0x2f14ac('0x4')](function(){const _0x2b547c=_0x2f14ac;logger[_0x2b547c('0x5')]('Removed\x20column\x20%s\x20from\x20%s',_0x4b931f,_0x1fdada);})[_0x2f14ac('0x14')](function(_0x2ac826){const _0xe0b189=_0x2f14ac;logger[_0xe0b189('0x5')](util[_0xe0b189('0x26')](_0x2ac826,{'showHidden':![],'depth':null}));});});},Migration[_0x189285('0x10')][_0x189285('0x2f')]=function(_0x3dd849,_0x315def,_0x3d2b74){const _0x94cf69=_0x189285,_0x4e018d=this;this[_0x94cf69('0x34')][_0x94cf69('0x2c')](function(){const _0x24c029=_0x94cf69;return _0x4e018d[_0x24c029('0x16')][_0x24c029('0x2f')](_0x3dd849,_0x315def,_0x3d2b74)['then'](function(){const _0x482d18=_0x24c029;logger[_0x482d18('0x5')](_0x482d18('0x3'),_0x315def,_0x3d2b74,_0x3dd849);})['catch'](function(_0x5c8d93){const _0x210306=_0x24c029;logger[_0x210306('0x5')](util[_0x210306('0x26')](_0x5c8d93,{'showHidden':![],'depth':null}));});});},Migration[_0x189285('0x10')][_0x189285('0x2b')]=function(_0x4d54bf){const _0x25f6f6=_0x189285;this['sequence'][_0x25f6f6('0x2c')](function(){return _0x4d54bf();});},module[_0x189285('0x17')]={'up':function(_0x50b0e6,_0x294770){return new Promise(function(_0x412abb){const _0x389fc7=a991_0x4b6a,_0x3c4c66=new Migration(_0x50b0e6);_0x3c4c66['renameColumn'](_0x389fc7('0x7'),'phoneBarEnableVideoRecording',_0x389fc7('0x30')),_0x3c4c66[_0x389fc7('0x1d')]('users',_0x389fc7('0x2d'),{'type':_0x294770[_0x389fc7('0x1a')],'defaultValue':![]}),_0x3c4c66['addColumn']('users',_0x389fc7('0xa'),{'type':_0x294770['BOOLEAN'],'defaultValue':![]}),_0x3c4c66[_0x389fc7('0x1e')](_0x389fc7('0xb'),[_0x389fc7('0x1f')],{'indexName':_0x389fc7('0x9'),'indicesType':'FULLTEXT'}),_0x3c4c66['addIndex'](_0x389fc7('0x6'),['subject','to'],{'indexName':_0x389fc7('0x2a'),'indicesType':_0x389fc7('0x24')}),_0x3c4c66[_0x389fc7('0x1d')]('mail_interactions','lastMsgText',{'type':_0x294770['TEXT'](_0x389fc7('0x8')),'after':_0x389fc7('0x1')}),_0x3c4c66[_0x389fc7('0x1d')](_0x389fc7('0x33'),_0x389fc7('0x11'),{'type':_0x294770['TEXT']('medium'),'after':'body'}),_0x3c4c66[_0x389fc7('0x1e')](_0x389fc7('0x33'),['plainBody',_0x389fc7('0x27')],{'indexName':_0x389fc7('0x1b'),'indicesType':_0x389fc7('0x24')}),_0x3c4c66['addIndex'](_0x389fc7('0x21'),['body'],{'indexName':_0x389fc7('0x28'),'indicesType':'FULLTEXT'}),_0x3c4c66[_0x389fc7('0x1e')](_0x389fc7('0xc'),[_0x389fc7('0x1f')],{'indexName':_0x389fc7('0x2e'),'indicesType':_0x389fc7('0x24')}),_0x3c4c66[_0x389fc7('0x31')](_0x389fc7('0x2')),_0x3c4c66[_0x389fc7('0x31')](_0x389fc7('0xd')),_0x3c4c66[_0x389fc7('0x31')](_0x389fc7('0x32')),_0x3c4c66[_0x389fc7('0x31')](_0x389fc7('0x15')),_0x3c4c66['query'](_0x389fc7('0x0')),_0x3c4c66['final'](_0x412abb);});},'down':function(){}}; \ No newline at end of file +const a991_0x2fb4=['FULLTEXT','medium','addIndex\x20%s\x20%s\x20%s\x20[%s]','plainBody','removeIndex','removeColumn','fti_openchannel_messages','queryInterface','ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','info','users','tiny','then','TEXT','lastMsgText','BOOLEAN','fti_chat_messages','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','chat_messages','Removed\x20column\x20%s\x20from\x20%s','mail_messages','changeColumn','final','body','renameColumn','query','mail_interactions','../config/logger','prototype','fti_mail_interactions','addColumn','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','phoneBarEnableVideoRecording','util','enqueue','phoneBarEnableScreenRecordingByAgent','sequelize','addIndex','indicesType','ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','stringify','subject','catch','screenrecording','sequence','join','indexName'];(function(_0x434891,_0x2fb40f){const _0x45cb13=function(_0x4140e1){while(--_0x4140e1){_0x434891['push'](_0x434891['shift']());}};_0x45cb13(++_0x2fb40f);}(a991_0x2fb4,0xb9));const a991_0x45cb=function(_0x434891,_0x2fb40f){_0x434891=_0x434891-0x0;let _0x45cb13=a991_0x2fb4[_0x434891];return _0x45cb13;};const _0x54cbff=a991_0x45cb;'use strict';const util=require(_0x54cbff('0xd')),logger=require(_0x54cbff('0x2'))('migration'),Sequence=function(){};Sequence['prototype'][_0x54cbff('0xe')]=function(_0x4140e1){const _0xef71aa=_0x54cbff;this[_0xef71aa('0x2c')]=this[_0xef71aa('0x2c')]?this['tail']['finally'](_0x4140e1):_0x4140e1();};const Migration=function(_0x5a5c5e){const _0x1feff0=_0x54cbff;this[_0x1feff0('0x22')]=_0x5a5c5e,this[_0x1feff0('0x18')]=new Sequence();};Migration['prototype'][_0x54cbff('0x31')]=function(_0x49dd2e,_0x5ee71d,_0x191f27){const _0x598884=_0x54cbff,_0x2caec8=this;this[_0x598884('0x18')][_0x598884('0xe')](function(){const _0x1426ca=_0x598884;return _0x2caec8[_0x1426ca('0x22')][_0x1426ca('0x31')](_0x49dd2e,_0x5ee71d,_0x191f27)['then'](function(){const _0x7758b5=_0x1426ca;logger[_0x7758b5('0x24')](_0x7758b5('0x8'),_0x5ee71d,_0x49dd2e);})[_0x1426ca('0x16')](function(_0x3c0980){logger['info'](JSON['stringify'](_0x3c0980));});});},Migration[_0x54cbff('0x3')][_0x54cbff('0x5')]=function(_0x45f5d6,_0x3b50e1,_0x1ca547){const _0x88239d=_0x54cbff,_0x485eff=this;this[_0x88239d('0x18')][_0x88239d('0xe')](function(){const _0x3a98ee=_0x88239d;return _0x485eff[_0x3a98ee('0x22')][_0x3a98ee('0x5')](_0x45f5d6,_0x3b50e1,_0x1ca547)['then'](function(){const _0xb77ae9=_0x3a98ee;logger['info'](_0xb77ae9('0x7'),_0x3b50e1,_0x45f5d6);})[_0x3a98ee('0x16')](function(_0x4dbda4){const _0x5f5332=_0x3a98ee;logger[_0x5f5332('0x24')](JSON['stringify'](_0x4dbda4));});});},Migration[_0x54cbff('0x3')][_0x54cbff('0x9')]=function(_0x3dd054){const _0x5d78cf=_0x54cbff,_0x28c460=this;this[_0x5d78cf('0x18')][_0x5d78cf('0xe')](function(){const _0x3eb557=_0x5d78cf;return _0x28c460[_0x3eb557('0x22')][_0x3eb557('0x9')](_0x3dd054,{'force':!![]})[_0x3eb557('0x27')](function(){const _0x3f9d14=_0x3eb557;logger[_0x3f9d14('0x24')](_0x3f9d14('0xa'),_0x3dd054);})[_0x3eb557('0x16')](function(_0x5a59b6){const _0x1aeec8=_0x3eb557;logger[_0x1aeec8('0x24')](JSON[_0x1aeec8('0x14')](_0x5a59b6));});});},Migration[_0x54cbff('0x3')][_0x54cbff('0x11')]=function(_0x299c5f,_0x4879e5,_0x34fb00){const _0x192e34=_0x54cbff,_0x431e3f=this;this[_0x192e34('0x18')][_0x192e34('0xe')](function(){const _0x5eee2d=_0x192e34;return _0x431e3f[_0x5eee2d('0x22')][_0x5eee2d('0x11')](_0x299c5f,_0x4879e5,{'indexName':_0x34fb00[_0x5eee2d('0x1a')],'indicesType':_0x34fb00[_0x5eee2d('0x12')]})[_0x5eee2d('0x27')](function(){const _0x2bdd1b=_0x5eee2d;logger[_0x2bdd1b('0x24')](_0x2bdd1b('0x1d'),_0x299c5f,_0x4879e5[_0x2bdd1b('0x19')](','),_0x34fb00[_0x2bdd1b('0x1a')],_0x34fb00[_0x2bdd1b('0x12')]);})[_0x5eee2d('0x16')](function(_0x53427d){const _0x3c0314=_0x5eee2d;logger[_0x3c0314('0x24')](JSON[_0x3c0314('0x14')](_0x53427d));});});},Migration[_0x54cbff('0x3')][_0x54cbff('0x1f')]=function(_0x29e1bd,_0xe0dca3){const _0x24f1d3=_0x54cbff,_0x2ddea2=this;this['sequence'][_0x24f1d3('0xe')](function(){const _0x152862=_0x24f1d3;return _0x2ddea2[_0x152862('0x22')]['removeIndex'](_0x29e1bd,_0xe0dca3)[_0x152862('0x27')](function(){const _0x220788=_0x152862;logger['info'](_0x220788('0xb'),_0x29e1bd,_0xe0dca3);})[_0x152862('0x16')](function(_0x23e763){const _0x2ed8b8=_0x152862;logger[_0x2ed8b8('0x24')](JSON[_0x2ed8b8('0x14')](_0x23e763));});});},Migration['prototype'][_0x54cbff('0x0')]=function(_0x7e51c9){const _0x182dcc=_0x54cbff,_0x29c3eb=this;this[_0x182dcc('0x18')][_0x182dcc('0xe')](function(){const _0x237130=_0x182dcc;return _0x29c3eb[_0x237130('0x22')][_0x237130('0x10')][_0x237130('0x0')](_0x7e51c9)['then'](function(){const _0x265b6e=_0x237130;logger[_0x265b6e('0x24')]('query\x20%s',_0x7e51c9);})[_0x237130('0x16')](function(_0x2c41a4){const _0x574ace=_0x237130;logger[_0x574ace('0x24')](JSON['stringify'](_0x2c41a4));});});},Migration['prototype'][_0x54cbff('0x20')]=function(_0x122420,_0x2eca21){const _0x5f8c71=this;this['sequence']['enqueue'](function(){const _0x1cdc54=a991_0x45cb;return _0x5f8c71[_0x1cdc54('0x22')][_0x1cdc54('0x20')](_0x122420,_0x2eca21)[_0x1cdc54('0x27')](function(){const _0x130325=_0x1cdc54;logger[_0x130325('0x24')](_0x130325('0x2f'),_0x2eca21,_0x122420);})[_0x1cdc54('0x16')](function(_0x2e6efb){logger['info'](util['inspect'](_0x2e6efb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x54cbff('0x34')]=function(_0xf2468f,_0x5abaa3,_0x30ccd6){const _0x4abd2b=_0x54cbff,_0x4373cd=this;this[_0x4abd2b('0x18')]['enqueue'](function(){const _0x17b30e=_0x4abd2b;return _0x4373cd[_0x17b30e('0x22')][_0x17b30e('0x34')](_0xf2468f,_0x5abaa3,_0x30ccd6)[_0x17b30e('0x27')](function(){const _0x5da083=_0x17b30e;logger[_0x5da083('0x24')](_0x5da083('0x2d'),_0x5abaa3,_0x30ccd6,_0xf2468f);})['catch'](function(_0x22b50d){const _0x21000b=_0x17b30e;logger[_0x21000b('0x24')](util['inspect'](_0x22b50d,{'showHidden':![],'depth':null}));});});},Migration[_0x54cbff('0x3')][_0x54cbff('0x32')]=function(_0x1afe25){const _0x39564e=_0x54cbff;this[_0x39564e('0x18')][_0x39564e('0xe')](function(){return _0x1afe25();});},module['exports']={'up':function(_0x134f2e,_0x1f8665){return new Promise(function(_0x18f289){const _0x44ae75=a991_0x45cb,_0xc66d8e=new Migration(_0x134f2e);_0xc66d8e[_0x44ae75('0x34')](_0x44ae75('0x25'),_0x44ae75('0xc'),_0x44ae75('0xf')),_0xc66d8e[_0x44ae75('0x5')](_0x44ae75('0x25'),'phoneBarEnableAutomaticScreenRecording',{'type':_0x1f8665[_0x44ae75('0x2a')],'defaultValue':![]}),_0xc66d8e[_0x44ae75('0x5')](_0x44ae75('0x25'),_0x44ae75('0x17'),{'type':_0x1f8665['BOOLEAN'],'defaultValue':![]}),_0xc66d8e[_0x44ae75('0x11')](_0x44ae75('0x2e'),[_0x44ae75('0x33')],{'indexName':_0x44ae75('0x2b'),'indicesType':_0x44ae75('0x1b')}),_0xc66d8e['addIndex'](_0x44ae75('0x1'),[_0x44ae75('0x15'),'to'],{'indexName':_0x44ae75('0x4'),'indicesType':_0x44ae75('0x1b')}),_0xc66d8e[_0x44ae75('0x5')]('mail_interactions',_0x44ae75('0x29'),{'type':_0x1f8665[_0x44ae75('0x28')](_0x44ae75('0x26')),'after':'lastMsgBody'}),_0xc66d8e['addColumn']('mail_messages',_0x44ae75('0x1e'),{'type':_0x1f8665[_0x44ae75('0x28')](_0x44ae75('0x1c')),'after':_0x44ae75('0x33')}),_0xc66d8e[_0x44ae75('0x11')](_0x44ae75('0x30'),[_0x44ae75('0x1e'),_0x44ae75('0x15')],{'indexName':'fti_mail_messages','indicesType':_0x44ae75('0x1b')}),_0xc66d8e[_0x44ae75('0x11')]('openchannel_messages',[_0x44ae75('0x33')],{'indexName':_0x44ae75('0x21'),'indicesType':_0x44ae75('0x1b')}),_0xc66d8e['addIndex']('sms_messages',['body'],{'indexName':'fti_sms_messages','indicesType':_0x44ae75('0x1b')}),_0xc66d8e[_0x44ae75('0x0')](_0x44ae75('0x6')),_0xc66d8e[_0x44ae75('0x0')]('ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0xc66d8e[_0x44ae75('0x0')]('ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0xc66d8e[_0x44ae75('0x0')](_0x44ae75('0x13')),_0xc66d8e['query'](_0x44ae75('0x23')),_0xc66d8e[_0x44ae75('0x32')](_0x18f289);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.1.js b/server/migrations/2.4.1.js index aeec765..5e359f5 100644 --- a/server/migrations/2.4.1.js +++ b/server/migrations/2.4.1.js @@ -1 +1 @@ -const a992_0x2af7=['sequence','prototype','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','addIndex','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','queryInterface','tail','stringify','removeIndex','addColumn','finally','util','enqueue','../config/logger','then','query\x20%s','query','sequelize','catch','changeColumn','final','indicesType','inspect','Added\x20column\x20%s\x20to\x20%s','indexName','removeColumn','renameColumn','info'];(function(_0x493712,_0x2af733){const _0x348653=function(_0x145b25){while(--_0x145b25){_0x493712['push'](_0x493712['shift']());}};_0x348653(++_0x2af733);}(a992_0x2af7,0x1bc));const a992_0x3486=function(_0x493712,_0x2af733){_0x493712=_0x493712-0x0;let _0x348653=a992_0x2af7[_0x493712];return _0x348653;};const _0xdf0b6d=a992_0x3486;'use strict';const util=require(_0xdf0b6d('0x4')),logger=require(_0xdf0b6d('0x6'))(_0xdf0b6d('0x1a')),Sequence=function(){};Sequence[_0xdf0b6d('0x16')]['enqueue']=function(_0x145b25){const _0x4731d6=_0xdf0b6d;this[_0x4731d6('0x1e')]=this[_0x4731d6('0x1e')]?this['tail'][_0x4731d6('0x3')](_0x145b25):_0x145b25();};const Migration=function(_0x8120b8){const _0x42ae44=_0xdf0b6d;this[_0x42ae44('0x1d')]=_0x8120b8,this[_0x42ae44('0x15')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x14f87b,_0x5ee0f2,_0x17bf2e){const _0x4b1231=_0xdf0b6d,_0xa19f1c=this;this['sequence'][_0x4b1231('0x5')](function(){const _0x1c6f83=_0x4b1231;return _0xa19f1c[_0x1c6f83('0x1d')][_0x1c6f83('0xc')](_0x14f87b,_0x5ee0f2,_0x17bf2e)[_0x1c6f83('0x7')](function(){const _0x22f8ef=_0x1c6f83;logger[_0x22f8ef('0x14')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5ee0f2,_0x14f87b);})[_0x1c6f83('0xb')](function(_0x3c7522){const _0x11a5d3=_0x1c6f83;logger['info'](JSON[_0x11a5d3('0x0')](_0x3c7522));});});},Migration[_0xdf0b6d('0x16')][_0xdf0b6d('0x2')]=function(_0x5b3300,_0x50008b,_0xcd4fbc){const _0x263100=_0xdf0b6d,_0x5d88c2=this;this[_0x263100('0x15')][_0x263100('0x5')](function(){const _0x12bbe5=_0x263100;return _0x5d88c2[_0x12bbe5('0x1d')][_0x12bbe5('0x2')](_0x5b3300,_0x50008b,_0xcd4fbc)[_0x12bbe5('0x7')](function(){const _0x560322=_0x12bbe5;logger[_0x560322('0x14')](_0x560322('0x10'),_0x50008b,_0x5b3300);})[_0x12bbe5('0xb')](function(_0x445264){const _0x40e752=_0x12bbe5;logger['info'](JSON[_0x40e752('0x0')](_0x445264));});});},Migration[_0xdf0b6d('0x16')]['dropTable']=function(_0x166df5){const _0x1af476=_0xdf0b6d,_0xd278fd=this;this[_0x1af476('0x15')][_0x1af476('0x5')](function(){const _0xfcbe72=_0x1af476;return _0xd278fd[_0xfcbe72('0x1d')]['dropTable'](_0x166df5,{'force':!![]})['then'](function(){const _0x149f22=_0xfcbe72;logger['info'](_0x149f22('0x18'),_0x166df5);})['catch'](function(_0x242828){const _0x479d08=_0xfcbe72;logger[_0x479d08('0x14')](JSON[_0x479d08('0x0')](_0x242828));});});},Migration[_0xdf0b6d('0x16')][_0xdf0b6d('0x19')]=function(_0x1853fc,_0x1a0ee5,_0x5e0a3a){const _0x38e35e=_0xdf0b6d,_0x8b338=this;this[_0x38e35e('0x15')]['enqueue'](function(){const _0x233400=_0x38e35e;return _0x8b338[_0x233400('0x1d')][_0x233400('0x19')](_0x1853fc,_0x1a0ee5,{'indexName':_0x5e0a3a[_0x233400('0x11')],'indicesType':_0x5e0a3a[_0x233400('0xe')]})[_0x233400('0x7')](function(){const _0x47e76f=_0x233400;logger[_0x47e76f('0x14')](_0x47e76f('0x1b'),_0x1853fc,_0x1a0ee5['join'](','),_0x5e0a3a[_0x47e76f('0x11')],_0x5e0a3a[_0x47e76f('0xe')]);})[_0x233400('0xb')](function(_0x57619e){const _0x1ce4d1=_0x233400;logger[_0x1ce4d1('0x14')](JSON['stringify'](_0x57619e));});});},Migration[_0xdf0b6d('0x16')][_0xdf0b6d('0x1')]=function(_0x407f30,_0x2a7268){const _0x36cee3=_0xdf0b6d,_0x3bad23=this;this[_0x36cee3('0x15')][_0x36cee3('0x5')](function(){const _0x317c97=_0x36cee3;return _0x3bad23[_0x317c97('0x1d')][_0x317c97('0x1')](_0x407f30,_0x2a7268)['then'](function(){const _0x5289d7=_0x317c97;logger[_0x5289d7('0x14')]('removeIndex\x20%s\x20%s',_0x407f30,_0x2a7268);})[_0x317c97('0xb')](function(_0x566cdd){const _0x269b61=_0x317c97;logger['info'](JSON[_0x269b61('0x0')](_0x566cdd));});});},Migration[_0xdf0b6d('0x16')]['query']=function(_0xefa38a){const _0x2c2dc0=_0xdf0b6d,_0x3e33d2=this;this[_0x2c2dc0('0x15')][_0x2c2dc0('0x5')](function(){const _0x19d2f2=_0x2c2dc0;return _0x3e33d2[_0x19d2f2('0x1d')][_0x19d2f2('0xa')][_0x19d2f2('0x9')](_0xefa38a)[_0x19d2f2('0x7')](function(){const _0x2a5926=_0x19d2f2;logger[_0x2a5926('0x14')](_0x2a5926('0x8'),_0xefa38a);})[_0x19d2f2('0xb')](function(_0x3a4fd5){logger['info'](JSON['stringify'](_0x3a4fd5));});});},Migration[_0xdf0b6d('0x16')][_0xdf0b6d('0x12')]=function(_0x51d276,_0x13c6fd){const _0x3e539c=_0xdf0b6d,_0x979594=this;this[_0x3e539c('0x15')][_0x3e539c('0x5')](function(){const _0x41dbf1=_0x3e539c;return _0x979594[_0x41dbf1('0x1d')][_0x41dbf1('0x12')](_0x51d276,_0x13c6fd)['then'](function(){const _0x20166b=_0x41dbf1;logger['info'](_0x20166b('0x17'),_0x13c6fd,_0x51d276);})[_0x41dbf1('0xb')](function(_0x21d08e){const _0x32a599=_0x41dbf1;logger[_0x32a599('0x14')](util[_0x32a599('0xf')](_0x21d08e,{'showHidden':![],'depth':null}));});});},Migration[_0xdf0b6d('0x16')]['renameColumn']=function(_0x2d1447,_0x13ac68,_0x59a9d2){const _0x5210fe=_0xdf0b6d,_0x173539=this;this[_0x5210fe('0x15')]['enqueue'](function(){const _0x1f2124=_0x5210fe;return _0x173539[_0x1f2124('0x1d')][_0x1f2124('0x13')](_0x2d1447,_0x13ac68,_0x59a9d2)[_0x1f2124('0x7')](function(){const _0x5b8ff5=_0x1f2124;logger[_0x5b8ff5('0x14')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x13ac68,_0x59a9d2,_0x2d1447);})['catch'](function(_0x205870){const _0x1bec26=_0x1f2124;logger[_0x1bec26('0x14')](util[_0x1bec26('0xf')](_0x205870,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xdf0b6d('0xd')]=function(_0x43832f){const _0x13d90a=_0xdf0b6d;this[_0x13d90a('0x15')][_0x13d90a('0x5')](function(){return _0x43832f();});},module[_0xdf0b6d('0x1c')]={'up':function(_0x2c1dfe){return new Promise(function(_0x585405){const _0xc9f84c=a992_0x3486,_0x327107=new Migration(_0x2c1dfe);_0x327107[_0xc9f84c('0xd')](_0x585405);});},'down':function(){}}; \ No newline at end of file +const a992_0x69e4=['catch','prototype','indicesType','sequelize','../config/logger','join','queryInterface','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','dropTable','stringify','addIndex','renameColumn','final','finally','inspect','then','query','tail','removeColumn','indexName','enqueue','info','query\x20%s','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','exports','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x36c6fd,_0x69e4e1){const _0x4c6dcb=function(_0x387366){while(--_0x387366){_0x36c6fd['push'](_0x36c6fd['shift']());}};_0x4c6dcb(++_0x69e4e1);}(a992_0x69e4,0x1ab));const a992_0x4c6d=function(_0x36c6fd,_0x69e4e1){_0x36c6fd=_0x36c6fd-0x0;let _0x4c6dcb=a992_0x69e4[_0x36c6fd];return _0x4c6dcb;};const _0x61e07c=a992_0x4c6d;'use strict';const util=require('util'),logger=require(_0x61e07c('0x1b'))('migration'),Sequence=function(){};Sequence[_0x61e07c('0x18')][_0x61e07c('0xf')]=function(_0x387366){const _0x38465b=_0x61e07c;this['tail']=this[_0x38465b('0xc')]?this[_0x38465b('0xc')][_0x38465b('0x8')](_0x387366):_0x387366();};const Migration=function(_0x5c6b06){const _0x20503f=_0x61e07c;this[_0x20503f('0x1d')]=_0x5c6b06,this[_0x20503f('0x14')]=new Sequence();};Migration['prototype'][_0x61e07c('0x2')]=function(_0x32c00e,_0x32eb40,_0x478d5e){const _0x55f9e4=_0x61e07c,_0x534d1c=this;this[_0x55f9e4('0x14')][_0x55f9e4('0xf')](function(){const _0x50cf91=_0x55f9e4;return _0x534d1c[_0x50cf91('0x1d')]['changeColumn'](_0x32c00e,_0x32eb40,_0x478d5e)[_0x50cf91('0xa')](function(){const _0x49fc2f=_0x50cf91;logger[_0x49fc2f('0x10')](_0x49fc2f('0x13'),_0x32eb40,_0x32c00e);})[_0x50cf91('0x17')](function(_0x3c35c3){const _0x2ec818=_0x50cf91;logger['info'](JSON[_0x2ec818('0x4')](_0x3c35c3));});});},Migration[_0x61e07c('0x18')][_0x61e07c('0x0')]=function(_0x35cb22,_0x4199b6,_0x26fb1f){const _0x368770=_0x61e07c,_0x18d650=this;this['sequence'][_0x368770('0xf')](function(){const _0x48bff1=_0x368770;return _0x18d650['queryInterface'][_0x48bff1('0x0')](_0x35cb22,_0x4199b6,_0x26fb1f)[_0x48bff1('0xa')](function(){const _0x1e9bb4=_0x48bff1;logger[_0x1e9bb4('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x4199b6,_0x35cb22);})['catch'](function(_0x4a121a){const _0x10360d=_0x48bff1;logger[_0x10360d('0x10')](JSON[_0x10360d('0x4')](_0x4a121a));});});},Migration[_0x61e07c('0x18')][_0x61e07c('0x3')]=function(_0x35a03c){const _0x6b3a1=_0x61e07c,_0x1c2eb5=this;this[_0x6b3a1('0x14')][_0x6b3a1('0xf')](function(){const _0x3879fb=_0x6b3a1;return _0x1c2eb5[_0x3879fb('0x1d')][_0x3879fb('0x3')](_0x35a03c,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x35a03c);})[_0x3879fb('0x17')](function(_0x3b9c1b){const _0x3aae85=_0x3879fb;logger[_0x3aae85('0x10')](JSON['stringify'](_0x3b9c1b));});});},Migration[_0x61e07c('0x18')][_0x61e07c('0x5')]=function(_0x2735c5,_0x56fa76,_0x73012e){const _0xf39c53=_0x61e07c,_0x2b11a2=this;this[_0xf39c53('0x14')][_0xf39c53('0xf')](function(){const _0x41af10=_0xf39c53;return _0x2b11a2[_0x41af10('0x1d')][_0x41af10('0x5')](_0x2735c5,_0x56fa76,{'indexName':_0x73012e[_0x41af10('0xe')],'indicesType':_0x73012e[_0x41af10('0x19')]})[_0x41af10('0xa')](function(){const _0x38b481=_0x41af10;logger[_0x38b481('0x10')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x2735c5,_0x56fa76[_0x38b481('0x1c')](','),_0x73012e[_0x38b481('0xe')],_0x73012e['indicesType']);})[_0x41af10('0x17')](function(_0x19f55b){const _0x580cb7=_0x41af10;logger[_0x580cb7('0x10')](JSON[_0x580cb7('0x4')](_0x19f55b));});});},Migration['prototype']['removeIndex']=function(_0x584bbc,_0x49b33e){const _0x3f0097=_0x61e07c,_0x1d1c39=this;this['sequence'][_0x3f0097('0xf')](function(){const _0x590553=_0x3f0097;return _0x1d1c39[_0x590553('0x1d')]['removeIndex'](_0x584bbc,_0x49b33e)['then'](function(){const _0x3b2d53=_0x590553;logger[_0x3b2d53('0x10')](_0x3b2d53('0x12'),_0x584bbc,_0x49b33e);})[_0x590553('0x17')](function(_0x5a8681){const _0x3e3ad1=_0x590553;logger['info'](JSON[_0x3e3ad1('0x4')](_0x5a8681));});});},Migration[_0x61e07c('0x18')][_0x61e07c('0xb')]=function(_0x4888fe){const _0x357fb7=_0x61e07c,_0x1211c5=this;this['sequence'][_0x357fb7('0xf')](function(){const _0xa0041f=_0x357fb7;return _0x1211c5[_0xa0041f('0x1d')][_0xa0041f('0x1a')][_0xa0041f('0xb')](_0x4888fe)[_0xa0041f('0xa')](function(){const _0x57de32=_0xa0041f;logger[_0x57de32('0x10')](_0x57de32('0x11'),_0x4888fe);})[_0xa0041f('0x17')](function(_0x383ed2){const _0xb7101d=_0xa0041f;logger[_0xb7101d('0x10')](JSON[_0xb7101d('0x4')](_0x383ed2));});});},Migration['prototype'][_0x61e07c('0xd')]=function(_0x1ddd70,_0x124ac2){const _0x2441ea=this;this['sequence']['enqueue'](function(){const _0x222f5f=a992_0x4c6d;return _0x2441ea[_0x222f5f('0x1d')][_0x222f5f('0xd')](_0x1ddd70,_0x124ac2)[_0x222f5f('0xa')](function(){const _0x5947c4=_0x222f5f;logger[_0x5947c4('0x10')](_0x5947c4('0x16'),_0x124ac2,_0x1ddd70);})[_0x222f5f('0x17')](function(_0x1109d7){const _0x2386d6=_0x222f5f;logger[_0x2386d6('0x10')](util['inspect'](_0x1109d7,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0xb1e7e0,_0x203a05,_0x32c07f){const _0x507ab7=_0x61e07c,_0x4c20ed=this;this['sequence'][_0x507ab7('0xf')](function(){const _0x10baa8=_0x507ab7;return _0x4c20ed[_0x10baa8('0x1d')][_0x10baa8('0x6')](_0xb1e7e0,_0x203a05,_0x32c07f)[_0x10baa8('0xa')](function(){const _0x517c0e=_0x10baa8;logger[_0x517c0e('0x10')](_0x517c0e('0x1'),_0x203a05,_0x32c07f,_0xb1e7e0);})['catch'](function(_0x1bc3c3){const _0x52c517=_0x10baa8;logger['info'](util[_0x52c517('0x9')](_0x1bc3c3,{'showHidden':![],'depth':null}));});});},Migration[_0x61e07c('0x18')][_0x61e07c('0x7')]=function(_0x13383d){const _0x18ec29=_0x61e07c;this['sequence'][_0x18ec29('0xf')](function(){return _0x13383d();});},module[_0x61e07c('0x15')]={'up':function(_0x1df959){return new Promise(function(_0x5bc818){const _0x2273c8=new Migration(_0x1df959);_0x2273c8['final'](_0x5bc818);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.10.js b/server/migrations/2.4.10.js index 54b96f5..45a55f8 100644 --- a/server/migrations/2.4.10.js +++ b/server/migrations/2.4.10.js @@ -1 +1 @@ -const a993_0x4681=['info','join','util','final','Added\x20column\x20%s\x20to\x20%s','removeIndex','sequelize','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','then','settings','removeIndex\x20%s\x20%s','stringify','BOOLEAN','chat_interactions','indexName','query\x20%s','indicesType','renameColumn','sequence','addColumn','migration','queryInterface','tail','changeColumn','prototype','enqueue','dropTable','query','TEXT','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','favicon','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','Removed\x20column\x20%s\x20from\x20%s','exports','table\x20dropped\x20%s','addIndex','catch'];(function(_0x37a91a,_0x46818d){const _0x41984f=function(_0x29beb0){while(--_0x29beb0){_0x37a91a['push'](_0x37a91a['shift']());}};_0x41984f(++_0x46818d);}(a993_0x4681,0x92));const a993_0x4198=function(_0x37a91a,_0x46818d){_0x37a91a=_0x37a91a-0x0;let _0x41984f=a993_0x4681[_0x37a91a];return _0x41984f;};const _0x25a184=a993_0x4198;'use strict';const util=require(_0x25a184('0x14')),logger=require(_0x25a184('0xa'))(_0x25a184('0x27')),Sequence=function(){};Sequence[_0x25a184('0x2')]['enqueue']=function(_0x29beb0){const _0x29fc29=_0x25a184;this[_0x29fc29('0x0')]=this['tail']?this[_0x29fc29('0x0')][_0x29fc29('0x7')](_0x29beb0):_0x29beb0();};const Migration=function(_0x19670f){const _0x314768=_0x25a184;this[_0x314768('0x28')]=_0x19670f,this['sequence']=new Sequence();};Migration['prototype'][_0x25a184('0x1')]=function(_0x680d8c,_0x2fc7e3,_0x3cc38f){const _0x36345d=_0x25a184,_0xc2c0bf=this;this[_0x36345d('0x25')][_0x36345d('0x3')](function(){const _0x4c5815=_0x36345d;return _0xc2c0bf[_0x4c5815('0x28')][_0x4c5815('0x1')](_0x680d8c,_0x2fc7e3,_0x3cc38f)[_0x4c5815('0x1b')](function(){const _0x4e32fb=_0x4c5815;logger['info'](_0x4e32fb('0x8'),_0x2fc7e3,_0x680d8c);})['catch'](function(_0x8443cf){const _0x67db40=_0x4c5815;logger[_0x67db40('0x12')](JSON['stringify'](_0x8443cf));});});},Migration[_0x25a184('0x2')][_0x25a184('0x26')]=function(_0x27396f,_0x1a4509,_0x1a5c83){const _0x402952=_0x25a184,_0xd81395=this;this[_0x402952('0x25')][_0x402952('0x3')](function(){const _0x38b26f=_0x402952;return _0xd81395[_0x38b26f('0x28')]['addColumn'](_0x27396f,_0x1a4509,_0x1a5c83)[_0x38b26f('0x1b')](function(){const _0x15b2fa=_0x38b26f;logger[_0x15b2fa('0x12')](_0x15b2fa('0x16'),_0x1a4509,_0x27396f);})['catch'](function(_0x1660f7){const _0x1bdac0=_0x38b26f;logger[_0x1bdac0('0x12')](JSON[_0x1bdac0('0x1e')](_0x1660f7));});});},Migration[_0x25a184('0x2')]['dropTable']=function(_0x4f189f){const _0x1f1c72=_0x25a184,_0x10a09c=this;this[_0x1f1c72('0x25')][_0x1f1c72('0x3')](function(){const _0x4bcbde=_0x1f1c72;return _0x10a09c[_0x4bcbde('0x28')][_0x4bcbde('0x4')](_0x4f189f,{'force':!![]})['then'](function(){const _0x1e1e2e=_0x4bcbde;logger[_0x1e1e2e('0x12')](_0x1e1e2e('0xf'),_0x4f189f);})[_0x4bcbde('0x11')](function(_0x245f3d){const _0x313a95=_0x4bcbde;logger[_0x313a95('0x12')](JSON[_0x313a95('0x1e')](_0x245f3d));});});},Migration[_0x25a184('0x2')][_0x25a184('0x10')]=function(_0x2b381d,_0x5b49f2,_0x1d0747){const _0x4142b4=_0x25a184,_0x1ec682=this;this[_0x4142b4('0x25')][_0x4142b4('0x3')](function(){const _0x3db0a7=_0x4142b4;return _0x1ec682[_0x3db0a7('0x28')][_0x3db0a7('0x10')](_0x2b381d,_0x5b49f2,{'indexName':_0x1d0747[_0x3db0a7('0x21')],'indicesType':_0x1d0747[_0x3db0a7('0x23')]})['then'](function(){const _0x2299ef=_0x3db0a7;logger['info'](_0x2299ef('0x1a'),_0x2b381d,_0x5b49f2[_0x2299ef('0x13')](','),_0x1d0747[_0x2299ef('0x21')],_0x1d0747[_0x2299ef('0x23')]);})[_0x3db0a7('0x11')](function(_0x17b0fc){const _0x2df2f3=_0x3db0a7;logger[_0x2df2f3('0x12')](JSON[_0x2df2f3('0x1e')](_0x17b0fc));});});},Migration[_0x25a184('0x2')][_0x25a184('0x17')]=function(_0x12c3f1,_0x541ebb){const _0x4e100b=_0x25a184,_0x56423f=this;this[_0x4e100b('0x25')][_0x4e100b('0x3')](function(){const _0x12462d=_0x4e100b;return _0x56423f[_0x12462d('0x28')]['removeIndex'](_0x12c3f1,_0x541ebb)[_0x12462d('0x1b')](function(){const _0x403aa4=_0x12462d;logger[_0x403aa4('0x12')](_0x403aa4('0x1d'),_0x12c3f1,_0x541ebb);})['catch'](function(_0x158874){const _0x44707c=_0x12462d;logger[_0x44707c('0x12')](JSON[_0x44707c('0x1e')](_0x158874));});});},Migration[_0x25a184('0x2')]['query']=function(_0x298c9e){const _0x4cc430=_0x25a184,_0x5385be=this;this[_0x4cc430('0x25')][_0x4cc430('0x3')](function(){const _0x103ffa=_0x4cc430;return _0x5385be[_0x103ffa('0x28')][_0x103ffa('0x18')][_0x103ffa('0x5')](_0x298c9e)[_0x103ffa('0x1b')](function(){const _0x1db0df=_0x103ffa;logger[_0x1db0df('0x12')](_0x1db0df('0x22'),_0x298c9e);})[_0x103ffa('0x11')](function(_0x299af6){const _0x5ea3c6=_0x103ffa;logger[_0x5ea3c6('0x12')](JSON[_0x5ea3c6('0x1e')](_0x299af6));});});},Migration[_0x25a184('0x2')][_0x25a184('0xc')]=function(_0xa29905,_0x44148f){const _0xd3483=_0x25a184,_0x4ecf4c=this;this['sequence'][_0xd3483('0x3')](function(){const _0x1697a8=_0xd3483;return _0x4ecf4c['queryInterface']['removeColumn'](_0xa29905,_0x44148f)['then'](function(){const _0x4096d4=a993_0x4198;logger[_0x4096d4('0x12')](_0x4096d4('0xd'),_0x44148f,_0xa29905);})[_0x1697a8('0x11')](function(_0x19fd57){const _0x1ab95a=_0x1697a8;logger[_0x1ab95a('0x12')](util[_0x1ab95a('0x19')](_0x19fd57,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x25a184('0x24')]=function(_0x2578f5,_0x546f13,_0x425d8b){const _0x7bd14b=_0x25a184,_0x4d5035=this;this[_0x7bd14b('0x25')][_0x7bd14b('0x3')](function(){const _0x44c894=_0x7bd14b;return _0x4d5035[_0x44c894('0x28')][_0x44c894('0x24')](_0x2578f5,_0x546f13,_0x425d8b)[_0x44c894('0x1b')](function(){const _0x3f2475=_0x44c894;logger['info'](_0x3f2475('0xb'),_0x546f13,_0x425d8b,_0x2578f5);})[_0x44c894('0x11')](function(_0x36353c){const _0x2a8653=_0x44c894;logger[_0x2a8653('0x12')](util['inspect'](_0x36353c,{'showHidden':![],'depth':null}));});});},Migration[_0x25a184('0x2')][_0x25a184('0x15')]=function(_0x5d0d11){const _0x4a0c54=_0x25a184;this[_0x4a0c54('0x25')]['enqueue'](function(){return _0x5d0d11();});},module[_0x25a184('0xe')]={'up':function(_0x4ecca3,_0x29ac03){return new Promise(function(_0x11c926){const _0x3be291=a993_0x4198,_0x57fecf=new Migration(_0x4ecca3);_0x57fecf[_0x3be291('0x1')](_0x3be291('0x20'),'referer',{'type':_0x29ac03[_0x3be291('0x6')]}),_0x57fecf[_0x3be291('0x26')]('settings',_0x3be291('0x9'),{'type':_0x29ac03['STRING']}),_0x57fecf[_0x3be291('0x26')](_0x3be291('0x1c'),'defaultFavicon',{'type':_0x29ac03[_0x3be291('0x1f')],'defaultValue':!![]}),_0x57fecf[_0x3be291('0x15')](_0x11c926);});},'down':function(){}}; \ No newline at end of file +const a993_0x329c=['referer','indexName','addColumn','prototype','stringify','renameColumn','sequence','removeColumn','query\x20%s','catch','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING','defaultFavicon','queryInterface','Added\x20column\x20%s\x20to\x20%s','indicesType','BOOLEAN','exports','query','migration','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','dropTable','table\x20dropped\x20%s','favicon','settings','final','tail','info','finally','util','removeIndex','sequelize','addIndex','../config/logger','chat_interactions','enqueue','TEXT','addIndex\x20%s\x20%s\x20%s\x20[%s]'];(function(_0x1ef63f,_0x329cd1){const _0x24164c=function(_0x266d25){while(--_0x266d25){_0x1ef63f['push'](_0x1ef63f['shift']());}};_0x24164c(++_0x329cd1);}(a993_0x329c,0xf4));const a993_0x2416=function(_0x1ef63f,_0x329cd1){_0x1ef63f=_0x1ef63f-0x0;let _0x24164c=a993_0x329c[_0x1ef63f];return _0x24164c;};const _0x4783a2=a993_0x2416;'use strict';const util=require(_0x4783a2('0x22')),logger=require(_0x4783a2('0x26'))(_0x4783a2('0x16')),Sequence=function(){};Sequence[_0x4783a2('0x5')][_0x4783a2('0x28')]=function(_0x266d25){const _0x241259=_0x4783a2;this[_0x241259('0x1f')]=this[_0x241259('0x1f')]?this['tail'][_0x241259('0x21')](_0x266d25):_0x266d25();};const Migration=function(_0x80c3f4){const _0x35a82a=_0x4783a2;this[_0x35a82a('0x10')]=_0x80c3f4,this[_0x35a82a('0x8')]=new Sequence();};Migration[_0x4783a2('0x5')]['changeColumn']=function(_0x4ec94d,_0x4063bd,_0x5a177e){const _0x3f549b=_0x4783a2,_0x54b611=this;this[_0x3f549b('0x8')][_0x3f549b('0x28')](function(){const _0x25ed69=_0x3f549b;return _0x54b611[_0x25ed69('0x10')][_0x25ed69('0x19')](_0x4ec94d,_0x4063bd,_0x5a177e)[_0x25ed69('0xc')](function(){const _0x4a3d77=_0x25ed69;logger[_0x4a3d77('0x20')](_0x4a3d77('0x18'),_0x4063bd,_0x4ec94d);})['catch'](function(_0x57e848){const _0x26e912=_0x25ed69;logger[_0x26e912('0x20')](JSON[_0x26e912('0x6')](_0x57e848));});});},Migration[_0x4783a2('0x5')][_0x4783a2('0x4')]=function(_0x406d10,_0x49f129,_0xdeda69){const _0x356b33=_0x4783a2,_0x41f84c=this;this[_0x356b33('0x8')][_0x356b33('0x28')](function(){const _0x1bcf43=_0x356b33;return _0x41f84c['queryInterface']['addColumn'](_0x406d10,_0x49f129,_0xdeda69)[_0x1bcf43('0xc')](function(){const _0xa2e809=_0x1bcf43;logger['info'](_0xa2e809('0x11'),_0x49f129,_0x406d10);})['catch'](function(_0xc32631){const _0x1e6e4e=_0x1bcf43;logger['info'](JSON[_0x1e6e4e('0x6')](_0xc32631));});});},Migration[_0x4783a2('0x5')][_0x4783a2('0x1a')]=function(_0x374f67){const _0x5ec63a=_0x4783a2,_0x54712f=this;this['sequence'][_0x5ec63a('0x28')](function(){const _0x2de2ed=_0x5ec63a;return _0x54712f[_0x2de2ed('0x10')]['dropTable'](_0x374f67,{'force':!![]})[_0x2de2ed('0xc')](function(){const _0x54d7b0=_0x2de2ed;logger[_0x54d7b0('0x20')](_0x54d7b0('0x1b'),_0x374f67);})[_0x2de2ed('0xb')](function(_0x3d8530){const _0xa6ce21=_0x2de2ed;logger[_0xa6ce21('0x20')](JSON[_0xa6ce21('0x6')](_0x3d8530));});});},Migration['prototype'][_0x4783a2('0x25')]=function(_0x14f7e5,_0x225201,_0x3e8695){const _0x2a6388=_0x4783a2,_0x985b5e=this;this[_0x2a6388('0x8')][_0x2a6388('0x28')](function(){const _0x4078ae=_0x2a6388;return _0x985b5e[_0x4078ae('0x10')]['addIndex'](_0x14f7e5,_0x225201,{'indexName':_0x3e8695[_0x4078ae('0x3')],'indicesType':_0x3e8695['indicesType']})[_0x4078ae('0xc')](function(){const _0x5daf7a=_0x4078ae;logger['info'](_0x5daf7a('0x1'),_0x14f7e5,_0x225201['join'](','),_0x3e8695[_0x5daf7a('0x3')],_0x3e8695[_0x5daf7a('0x12')]);})['catch'](function(_0x53a6db){const _0x58e72c=_0x4078ae;logger[_0x58e72c('0x20')](JSON['stringify'](_0x53a6db));});});},Migration[_0x4783a2('0x5')][_0x4783a2('0x23')]=function(_0x3adffd,_0x51ba66){const _0x3a5956=_0x4783a2,_0x41ab71=this;this[_0x3a5956('0x8')]['enqueue'](function(){const _0x4e6fda=_0x3a5956;return _0x41ab71[_0x4e6fda('0x10')][_0x4e6fda('0x23')](_0x3adffd,_0x51ba66)[_0x4e6fda('0xc')](function(){const _0x2e190a=_0x4e6fda;logger[_0x2e190a('0x20')]('removeIndex\x20%s\x20%s',_0x3adffd,_0x51ba66);})[_0x4e6fda('0xb')](function(_0x40d1b3){const _0x344d51=_0x4e6fda;logger[_0x344d51('0x20')](JSON[_0x344d51('0x6')](_0x40d1b3));});});},Migration[_0x4783a2('0x5')][_0x4783a2('0x15')]=function(_0x41237f){const _0x2dbff7=_0x4783a2,_0x35873e=this;this[_0x2dbff7('0x8')]['enqueue'](function(){const _0x6bb805=_0x2dbff7;return _0x35873e[_0x6bb805('0x10')][_0x6bb805('0x24')]['query'](_0x41237f)['then'](function(){const _0x1a88de=_0x6bb805;logger[_0x1a88de('0x20')](_0x1a88de('0xa'),_0x41237f);})[_0x6bb805('0xb')](function(_0x3014fd){const _0x17d1aa=_0x6bb805;logger['info'](JSON[_0x17d1aa('0x6')](_0x3014fd));});});},Migration[_0x4783a2('0x5')][_0x4783a2('0x9')]=function(_0x117a5c,_0xde6b28){const _0x549db8=_0x4783a2,_0x1ac81e=this;this[_0x549db8('0x8')]['enqueue'](function(){const _0x4c7759=_0x549db8;return _0x1ac81e[_0x4c7759('0x10')][_0x4c7759('0x9')](_0x117a5c,_0xde6b28)[_0x4c7759('0xc')](function(){const _0x459cc6=_0x4c7759;logger[_0x459cc6('0x20')]('Removed\x20column\x20%s\x20from\x20%s',_0xde6b28,_0x117a5c);})['catch'](function(_0x419f56){const _0x282fd6=_0x4c7759;logger[_0x282fd6('0x20')](util[_0x282fd6('0x17')](_0x419f56,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4783a2('0x7')]=function(_0x1ffeec,_0x168373,_0x2cb2c4){const _0x4a6666=_0x4783a2,_0x2cafd8=this;this[_0x4a6666('0x8')][_0x4a6666('0x28')](function(){const _0xc48a2b=_0x4a6666;return _0x2cafd8[_0xc48a2b('0x10')][_0xc48a2b('0x7')](_0x1ffeec,_0x168373,_0x2cb2c4)[_0xc48a2b('0xc')](function(){const _0x389899=_0xc48a2b;logger[_0x389899('0x20')](_0x389899('0xd'),_0x168373,_0x2cb2c4,_0x1ffeec);})[_0xc48a2b('0xb')](function(_0x30eb4e){const _0x15786e=_0xc48a2b;logger[_0x15786e('0x20')](util[_0x15786e('0x17')](_0x30eb4e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4783a2('0x1e')]=function(_0x133a1f){const _0x54b065=_0x4783a2;this[_0x54b065('0x8')]['enqueue'](function(){return _0x133a1f();});},module[_0x4783a2('0x14')]={'up':function(_0x23fd72,_0x21e9dd){return new Promise(function(_0x52e97f){const _0x5878e6=a993_0x2416,_0x14014a=new Migration(_0x23fd72);_0x14014a['changeColumn'](_0x5878e6('0x27'),_0x5878e6('0x2'),{'type':_0x21e9dd[_0x5878e6('0x0')]}),_0x14014a[_0x5878e6('0x4')](_0x5878e6('0x1d'),_0x5878e6('0x1c'),{'type':_0x21e9dd[_0x5878e6('0xe')]}),_0x14014a[_0x5878e6('0x4')](_0x5878e6('0x1d'),_0x5878e6('0xf'),{'type':_0x21e9dd[_0x5878e6('0x13')],'defaultValue':!![]}),_0x14014a[_0x5878e6('0x1e')](_0x52e97f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.11.js b/server/migrations/2.4.11.js index d88b4aa..59d117c 100644 --- a/server/migrations/2.4.11.js +++ b/server/migrations/2.4.11.js @@ -1 +1 @@ -const a994_0x2853=['Changed\x20column\x20%s\x20in\x20table\x20%s','join','info','final','prototype','renameColumn','table\x20dropped\x20%s','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','enqueue','catch','queryInterface','inspect','../config/logger','sequelize','removeIndex\x20%s\x20%s','addColumn','stringify','Added\x20column\x20%s\x20to\x20%s','removeColumn','indicesType','query','tail','addIndex','Removed\x20column\x20%s\x20from\x20%s','exports','query\x20%s','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex','dropTable','indexName','sequence'];(function(_0xc2c007,_0x285356){const _0x466159=function(_0x5a4c6b){while(--_0x5a4c6b){_0xc2c007['push'](_0xc2c007['shift']());}};_0x466159(++_0x285356);}(a994_0x2853,0x9c));const a994_0x4661=function(_0xc2c007,_0x285356){_0xc2c007=_0xc2c007-0x0;let _0x466159=a994_0x2853[_0xc2c007];return _0x466159;};const _0x541dac=a994_0x4661;'use strict';const util=require(_0x541dac('0x17')),logger=require(_0x541dac('0x1c'))(_0x541dac('0x8')),Sequence=function(){};Sequence[_0x541dac('0x12')][_0x541dac('0x18')]=function(_0x5a4c6b){const _0x3c1894=_0x541dac;this['tail']=this[_0x3c1894('0x3')]?this[_0x3c1894('0x3')]['finally'](_0x5a4c6b):_0x5a4c6b();};const Migration=function(_0x5b9291){const _0x5eaadd=_0x541dac;this[_0x5eaadd('0x1a')]=_0x5b9291,this[_0x5eaadd('0xd')]=new Sequence();};Migration[_0x541dac('0x12')]['changeColumn']=function(_0x5c6c3d,_0x196518,_0x3febf1){const _0x48c412=_0x541dac,_0x5d1fe9=this;this['sequence'][_0x48c412('0x18')](function(){const _0x4159af=_0x48c412;return _0x5d1fe9[_0x4159af('0x1a')]['changeColumn'](_0x5c6c3d,_0x196518,_0x3febf1)[_0x4159af('0x15')](function(){const _0x55569a=_0x4159af;logger[_0x55569a('0x10')](_0x55569a('0xe'),_0x196518,_0x5c6c3d);})[_0x4159af('0x19')](function(_0x243327){const _0x54e06b=_0x4159af;logger[_0x54e06b('0x10')](JSON['stringify'](_0x243327));});});},Migration['prototype']['addColumn']=function(_0x25deb9,_0x56bf59,_0x4b2692){const _0x6481db=_0x541dac,_0x13f7d2=this;this['sequence'][_0x6481db('0x18')](function(){const _0x92c670=_0x6481db;return _0x13f7d2[_0x92c670('0x1a')][_0x92c670('0x1f')](_0x25deb9,_0x56bf59,_0x4b2692)['then'](function(){const _0x24c448=_0x92c670;logger[_0x24c448('0x10')](_0x24c448('0x21'),_0x56bf59,_0x25deb9);})[_0x92c670('0x19')](function(_0x16c63f){const _0x383810=_0x92c670;logger[_0x383810('0x10')](JSON[_0x383810('0x20')](_0x16c63f));});});},Migration['prototype'][_0x541dac('0xb')]=function(_0x181373){const _0x20dd23=_0x541dac,_0x101263=this;this[_0x20dd23('0xd')]['enqueue'](function(){const _0x4868de=_0x20dd23;return _0x101263[_0x4868de('0x1a')][_0x4868de('0xb')](_0x181373,{'force':!![]})[_0x4868de('0x15')](function(){const _0x172b81=_0x4868de;logger[_0x172b81('0x10')](_0x172b81('0x14'),_0x181373);})['catch'](function(_0x5d65ae){const _0x2780e7=_0x4868de;logger[_0x2780e7('0x10')](JSON['stringify'](_0x5d65ae));});});},Migration[_0x541dac('0x12')]['addIndex']=function(_0x2519cb,_0x1db68d,_0xb1aadb){const _0x1b8ca9=_0x541dac,_0x45ab7a=this;this[_0x1b8ca9('0xd')][_0x1b8ca9('0x18')](function(){const _0x47ec84=_0x1b8ca9;return _0x45ab7a[_0x47ec84('0x1a')][_0x47ec84('0x4')](_0x2519cb,_0x1db68d,{'indexName':_0xb1aadb[_0x47ec84('0xc')],'indicesType':_0xb1aadb[_0x47ec84('0x1')]})['then'](function(){const _0xdfc25b=_0x47ec84;logger[_0xdfc25b('0x10')](_0xdfc25b('0x9'),_0x2519cb,_0x1db68d[_0xdfc25b('0xf')](','),_0xb1aadb[_0xdfc25b('0xc')],_0xb1aadb['indicesType']);})[_0x47ec84('0x19')](function(_0x340ec6){const _0x563f5c=_0x47ec84;logger[_0x563f5c('0x10')](JSON[_0x563f5c('0x20')](_0x340ec6));});});},Migration[_0x541dac('0x12')]['removeIndex']=function(_0x4a7fbe,_0x43a7d3){const _0x52ea14=_0x541dac,_0x52f6cb=this;this[_0x52ea14('0xd')][_0x52ea14('0x18')](function(){const _0x415acf=_0x52ea14;return _0x52f6cb[_0x415acf('0x1a')][_0x415acf('0xa')](_0x4a7fbe,_0x43a7d3)['then'](function(){const _0x3c705b=_0x415acf;logger['info'](_0x3c705b('0x1e'),_0x4a7fbe,_0x43a7d3);})['catch'](function(_0x31ef15){const _0x4d519a=_0x415acf;logger[_0x4d519a('0x10')](JSON['stringify'](_0x31ef15));});});},Migration[_0x541dac('0x12')][_0x541dac('0x2')]=function(_0x5d5eb8){const _0x2e179b=_0x541dac,_0x2db959=this;this[_0x2e179b('0xd')]['enqueue'](function(){const _0x19d983=_0x2e179b;return _0x2db959[_0x19d983('0x1a')][_0x19d983('0x1d')]['query'](_0x5d5eb8)['then'](function(){const _0x58823a=_0x19d983;logger[_0x58823a('0x10')](_0x58823a('0x7'),_0x5d5eb8);})[_0x19d983('0x19')](function(_0x2fd59a){const _0xef8857=_0x19d983;logger[_0xef8857('0x10')](JSON[_0xef8857('0x20')](_0x2fd59a));});});},Migration['prototype'][_0x541dac('0x0')]=function(_0x1ae79f,_0x1f8d90){const _0x13c91f=_0x541dac,_0x4061e0=this;this[_0x13c91f('0xd')][_0x13c91f('0x18')](function(){const _0x567b38=_0x13c91f;return _0x4061e0[_0x567b38('0x1a')]['removeColumn'](_0x1ae79f,_0x1f8d90)[_0x567b38('0x15')](function(){const _0x4735b9=_0x567b38;logger[_0x4735b9('0x10')](_0x4735b9('0x5'),_0x1f8d90,_0x1ae79f);})['catch'](function(_0x9d19c6){const _0x6318db=_0x567b38;logger[_0x6318db('0x10')](util[_0x6318db('0x1b')](_0x9d19c6,{'showHidden':![],'depth':null}));});});},Migration[_0x541dac('0x12')]['renameColumn']=function(_0xa6c08,_0x1caba5,_0x356d9c){const _0x5c81a1=_0x541dac,_0x4ef6a2=this;this[_0x5c81a1('0xd')][_0x5c81a1('0x18')](function(){const _0x2a9cf4=_0x5c81a1;return _0x4ef6a2[_0x2a9cf4('0x1a')][_0x2a9cf4('0x13')](_0xa6c08,_0x1caba5,_0x356d9c)[_0x2a9cf4('0x15')](function(){const _0x22340b=_0x2a9cf4;logger[_0x22340b('0x10')](_0x22340b('0x16'),_0x1caba5,_0x356d9c,_0xa6c08);})[_0x2a9cf4('0x19')](function(_0x3369cb){const _0x34712a=_0x2a9cf4;logger[_0x34712a('0x10')](util['inspect'](_0x3369cb,{'showHidden':![],'depth':null}));});});},Migration[_0x541dac('0x12')][_0x541dac('0x11')]=function(_0x2072ad){const _0x19957=_0x541dac;this[_0x19957('0xd')][_0x19957('0x18')](function(){return _0x2072ad();});},module[_0x541dac('0x6')]={'up':function(_0x45f2b4){return new Promise(function(_0x13f9cf){const _0x554fda=a994_0x4661,_0x1c2e0b=new Migration(_0x45f2b4);_0x1c2e0b[_0x554fda('0x11')](_0x13f9cf);});},'down':function(){}}; \ No newline at end of file +const a994_0xbd24=['prototype','catch','then','removeColumn','Added\x20column\x20%s\x20to\x20%s','stringify','addColumn','queryInterface','renameColumn','final','inspect','indexName','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','table\x20dropped\x20%s','query','info','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','finally','../config/logger','util','addIndex','enqueue','query\x20%s','removeIndex\x20%s\x20%s','join','removeIndex','dropTable'];(function(_0x265a57,_0xbd24b3){const _0x51d959=function(_0x3955a7){while(--_0x3955a7){_0x265a57['push'](_0x265a57['shift']());}};_0x51d959(++_0xbd24b3);}(a994_0xbd24,0x111));const a994_0x51d9=function(_0x265a57,_0xbd24b3){_0x265a57=_0x265a57-0x0;let _0x51d959=a994_0xbd24[_0x265a57];return _0x51d959;};const _0x489e68=a994_0x51d9;'use strict';const util=require(_0x489e68('0x1d')),logger=require(_0x489e68('0x1c'))('migration'),Sequence=function(){};Sequence[_0x489e68('0x6')][_0x489e68('0x0')]=function(_0x3955a7){const _0x9929cb=_0x489e68;this[_0x9929cb('0x18')]=this['tail']?this[_0x9929cb('0x18')][_0x9929cb('0x1b')](_0x3955a7):_0x3955a7();};const Migration=function(_0x4e6716){const _0x5b064c=_0x489e68;this[_0x5b064c('0xd')]=_0x4e6716,this[_0x5b064c('0x12')]=new Sequence();};Migration[_0x489e68('0x6')][_0x489e68('0x14')]=function(_0x20a7f7,_0xa36c45,_0x3598fe){const _0x870ec8=_0x489e68,_0x5a33b0=this;this[_0x870ec8('0x12')][_0x870ec8('0x0')](function(){const _0x32681c=_0x870ec8;return _0x5a33b0[_0x32681c('0xd')][_0x32681c('0x14')](_0x20a7f7,_0xa36c45,_0x3598fe)[_0x32681c('0x8')](function(){const _0x539580=_0x32681c;logger[_0x539580('0x17')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xa36c45,_0x20a7f7);})['catch'](function(_0x5c3a8c){const _0x31f240=_0x32681c;logger['info'](JSON[_0x31f240('0xb')](_0x5c3a8c));});});},Migration[_0x489e68('0x6')][_0x489e68('0xc')]=function(_0x151249,_0x4c0916,_0x3f283b){const _0x3ea950=_0x489e68,_0x16551c=this;this['sequence'][_0x3ea950('0x0')](function(){const _0x3c3bdd=_0x3ea950;return _0x16551c[_0x3c3bdd('0xd')][_0x3c3bdd('0xc')](_0x151249,_0x4c0916,_0x3f283b)[_0x3c3bdd('0x8')](function(){const _0x4478e9=_0x3c3bdd;logger[_0x4478e9('0x17')](_0x4478e9('0xa'),_0x4c0916,_0x151249);})[_0x3c3bdd('0x7')](function(_0x3bf734){const _0x36fbc4=_0x3c3bdd;logger[_0x36fbc4('0x17')](JSON[_0x36fbc4('0xb')](_0x3bf734));});});},Migration[_0x489e68('0x6')]['dropTable']=function(_0x405702){const _0x4c41d0=_0x489e68,_0x5f2b03=this;this[_0x4c41d0('0x12')]['enqueue'](function(){const _0x1e6bd2=_0x4c41d0;return _0x5f2b03[_0x1e6bd2('0xd')][_0x1e6bd2('0x5')](_0x405702,{'force':!![]})[_0x1e6bd2('0x8')](function(){const _0x4355c3=_0x1e6bd2;logger[_0x4355c3('0x17')](_0x4355c3('0x15'),_0x405702);})[_0x1e6bd2('0x7')](function(_0x51abd8){const _0x12fa00=_0x1e6bd2;logger[_0x12fa00('0x17')](JSON[_0x12fa00('0xb')](_0x51abd8));});});},Migration[_0x489e68('0x6')][_0x489e68('0x1e')]=function(_0x21c76a,_0x1756b5,_0x4d284a){const _0x96ec18=_0x489e68,_0x48a3f8=this;this[_0x96ec18('0x12')][_0x96ec18('0x0')](function(){const _0x45add3=_0x96ec18;return _0x48a3f8['queryInterface'][_0x45add3('0x1e')](_0x21c76a,_0x1756b5,{'indexName':_0x4d284a[_0x45add3('0x11')],'indicesType':_0x4d284a['indicesType']})[_0x45add3('0x8')](function(){const _0x3a39a5=_0x45add3;logger[_0x3a39a5('0x17')](_0x3a39a5('0x19'),_0x21c76a,_0x1756b5[_0x3a39a5('0x3')](','),_0x4d284a[_0x3a39a5('0x11')],_0x4d284a[_0x3a39a5('0x1a')]);})[_0x45add3('0x7')](function(_0x36e9f2){const _0x38b236=_0x45add3;logger[_0x38b236('0x17')](JSON[_0x38b236('0xb')](_0x36e9f2));});});},Migration[_0x489e68('0x6')][_0x489e68('0x4')]=function(_0x4c4095,_0x3a1e8c){const _0xc8f4a3=_0x489e68,_0x507551=this;this['sequence'][_0xc8f4a3('0x0')](function(){const _0x314779=_0xc8f4a3;return _0x507551['queryInterface'][_0x314779('0x4')](_0x4c4095,_0x3a1e8c)['then'](function(){const _0x3a874e=_0x314779;logger['info'](_0x3a874e('0x2'),_0x4c4095,_0x3a1e8c);})[_0x314779('0x7')](function(_0x15bc27){const _0x681e85=_0x314779;logger[_0x681e85('0x17')](JSON[_0x681e85('0xb')](_0x15bc27));});});},Migration['prototype'][_0x489e68('0x16')]=function(_0x2cd203){const _0x1972db=_0x489e68,_0x2d49be=this;this['sequence'][_0x1972db('0x0')](function(){const _0x155165=_0x1972db;return _0x2d49be[_0x155165('0xd')]['sequelize'][_0x155165('0x16')](_0x2cd203)[_0x155165('0x8')](function(){const _0x2c8785=_0x155165;logger[_0x2c8785('0x17')](_0x2c8785('0x1'),_0x2cd203);})[_0x155165('0x7')](function(_0x56b6e2){const _0x3fcb1f=_0x155165;logger[_0x3fcb1f('0x17')](JSON[_0x3fcb1f('0xb')](_0x56b6e2));});});},Migration[_0x489e68('0x6')][_0x489e68('0x9')]=function(_0x533428,_0x497576){const _0x383a02=_0x489e68,_0x37f154=this;this[_0x383a02('0x12')][_0x383a02('0x0')](function(){const _0x1af74b=_0x383a02;return _0x37f154[_0x1af74b('0xd')][_0x1af74b('0x9')](_0x533428,_0x497576)[_0x1af74b('0x8')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x497576,_0x533428);})[_0x1af74b('0x7')](function(_0xfdf1d5){const _0x2f1ad5=_0x1af74b;logger[_0x2f1ad5('0x17')](util[_0x2f1ad5('0x10')](_0xfdf1d5,{'showHidden':![],'depth':null}));});});},Migration[_0x489e68('0x6')]['renameColumn']=function(_0x3cbb7f,_0x141255,_0x998a80){const _0x49dc98=_0x489e68,_0x52388f=this;this[_0x49dc98('0x12')][_0x49dc98('0x0')](function(){const _0x1b35c1=_0x49dc98;return _0x52388f['queryInterface'][_0x1b35c1('0xe')](_0x3cbb7f,_0x141255,_0x998a80)[_0x1b35c1('0x8')](function(){const _0x341e45=_0x1b35c1;logger[_0x341e45('0x17')](_0x341e45('0x13'),_0x141255,_0x998a80,_0x3cbb7f);})['catch'](function(_0x4002f3){const _0x14a17b=_0x1b35c1;logger[_0x14a17b('0x17')](util[_0x14a17b('0x10')](_0x4002f3,{'showHidden':![],'depth':null}));});});},Migration[_0x489e68('0x6')][_0x489e68('0xf')]=function(_0x1464c4){const _0x4fd01e=_0x489e68;this[_0x4fd01e('0x12')][_0x4fd01e('0x0')](function(){return _0x1464c4();});},module['exports']={'up':function(_0x680d98){return new Promise(function(_0x48eb49){const _0x3f7072=a994_0x51d9,_0xc75f7b=new Migration(_0x680d98);_0xc75f7b[_0x3f7072('0xf')](_0x48eb49);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.12.js b/server/migrations/2.4.12.js index 923cbf0..e5916ff 100644 --- a/server/migrations/2.4.12.js +++ b/server/migrations/2.4.12.js @@ -1 +1 @@ -const a995_0x235a=['sequence','tail','renameColumn','then','enqueue','dropTable','removeColumn','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','Added\x20column\x20%s\x20to\x20%s','migration','indicesType','inspect','join','queryInterface','info','table\x20dropped\x20%s','addColumn','loginMailFrequency','settings','catch','Removed\x20column\x20%s\x20from\x20%s','query','query\x20%s','sequelize','stringify','../config/logger','changeColumn','prototype'];(function(_0x132fb3,_0x235a22){const _0x297ef4=function(_0x525c23){while(--_0x525c23){_0x132fb3['push'](_0x132fb3['shift']());}};_0x297ef4(++_0x235a22);}(a995_0x235a,0x1a7));const a995_0x297e=function(_0x132fb3,_0x235a22){_0x132fb3=_0x132fb3-0x0;let _0x297ef4=a995_0x235a[_0x132fb3];return _0x297ef4;};const _0x43d491=a995_0x297e;'use strict';const util=require('util'),logger=require(_0x43d491('0x18'))(_0x43d491('0x8')),Sequence=function(){};Sequence['prototype'][_0x43d491('0x1')]=function(_0x525c23){const _0x17b0b0=_0x43d491;this[_0x17b0b0('0x1c')]=this[_0x17b0b0('0x1c')]?this[_0x17b0b0('0x1c')]['finally'](_0x525c23):_0x525c23();};const Migration=function(_0xc0fd95){const _0x488f5c=_0x43d491;this[_0x488f5c('0xc')]=_0xc0fd95,this[_0x488f5c('0x1b')]=new Sequence();};Migration[_0x43d491('0x1a')][_0x43d491('0x19')]=function(_0x2d0ba0,_0x4fb364,_0x2ab370){const _0x2d845d=_0x43d491,_0x33e017=this;this[_0x2d845d('0x1b')][_0x2d845d('0x1')](function(){const _0xe33942=_0x2d845d;return _0x33e017[_0xe33942('0xc')][_0xe33942('0x19')](_0x2d0ba0,_0x4fb364,_0x2ab370)['then'](function(){const _0x151c51=_0xe33942;logger['info'](_0x151c51('0x5'),_0x4fb364,_0x2d0ba0);})['catch'](function(_0x123c35){const _0xa1eedd=_0xe33942;logger[_0xa1eedd('0xd')](JSON['stringify'](_0x123c35));});});},Migration['prototype'][_0x43d491('0xf')]=function(_0x370434,_0x2b457e,_0x55f026){const _0x24d5d9=_0x43d491,_0x377a1e=this;this['sequence'][_0x24d5d9('0x1')](function(){const _0x3649fb=_0x24d5d9;return _0x377a1e[_0x3649fb('0xc')][_0x3649fb('0xf')](_0x370434,_0x2b457e,_0x55f026)[_0x3649fb('0x0')](function(){const _0x12dd25=_0x3649fb;logger['info'](_0x12dd25('0x7'),_0x2b457e,_0x370434);})[_0x3649fb('0x12')](function(_0x361c9e){const _0x3f5d41=_0x3649fb;logger[_0x3f5d41('0xd')](JSON[_0x3f5d41('0x17')](_0x361c9e));});});},Migration[_0x43d491('0x1a')]['dropTable']=function(_0xf62665){const _0x5a9486=_0x43d491,_0x8fea46=this;this['sequence'][_0x5a9486('0x1')](function(){const _0x128ce7=_0x5a9486;return _0x8fea46[_0x128ce7('0xc')][_0x128ce7('0x2')](_0xf62665,{'force':!![]})[_0x128ce7('0x0')](function(){const _0x135a80=_0x128ce7;logger['info'](_0x135a80('0xe'),_0xf62665);})[_0x128ce7('0x12')](function(_0x3981e7){const _0x583f40=_0x128ce7;logger[_0x583f40('0xd')](JSON[_0x583f40('0x17')](_0x3981e7));});});},Migration[_0x43d491('0x1a')]['addIndex']=function(_0x66931,_0x51329b,_0x263bad){const _0x232c97=_0x43d491,_0xefe6a2=this;this['sequence'][_0x232c97('0x1')](function(){const _0xf3ab24=_0x232c97;return _0xefe6a2[_0xf3ab24('0xc')]['addIndex'](_0x66931,_0x51329b,{'indexName':_0x263bad[_0xf3ab24('0x6')],'indicesType':_0x263bad['indicesType']})[_0xf3ab24('0x0')](function(){const _0x8fd45f=_0xf3ab24;logger[_0x8fd45f('0xd')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x66931,_0x51329b[_0x8fd45f('0xb')](','),_0x263bad[_0x8fd45f('0x6')],_0x263bad[_0x8fd45f('0x9')]);})['catch'](function(_0x44bffb){logger['info'](JSON['stringify'](_0x44bffb));});});},Migration[_0x43d491('0x1a')][_0x43d491('0x4')]=function(_0x469282,_0x1e7564){const _0x5562f8=_0x43d491,_0x4ee0d3=this;this[_0x5562f8('0x1b')]['enqueue'](function(){const _0x2aeccf=_0x5562f8;return _0x4ee0d3[_0x2aeccf('0xc')][_0x2aeccf('0x4')](_0x469282,_0x1e7564)[_0x2aeccf('0x0')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x469282,_0x1e7564);})[_0x2aeccf('0x12')](function(_0x20acf2){const _0x44734f=_0x2aeccf;logger[_0x44734f('0xd')](JSON[_0x44734f('0x17')](_0x20acf2));});});},Migration[_0x43d491('0x1a')][_0x43d491('0x14')]=function(_0x2daac7){const _0x57d953=_0x43d491,_0x1d6310=this;this[_0x57d953('0x1b')][_0x57d953('0x1')](function(){const _0x4d1a32=_0x57d953;return _0x1d6310[_0x4d1a32('0xc')][_0x4d1a32('0x16')]['query'](_0x2daac7)[_0x4d1a32('0x0')](function(){const _0x36b594=_0x4d1a32;logger[_0x36b594('0xd')](_0x36b594('0x15'),_0x2daac7);})['catch'](function(_0x37d199){const _0x417e4a=_0x4d1a32;logger[_0x417e4a('0xd')](JSON[_0x417e4a('0x17')](_0x37d199));});});},Migration[_0x43d491('0x1a')][_0x43d491('0x3')]=function(_0x304c59,_0x9ce1c7){const _0x1f9b56=_0x43d491,_0x5b7c98=this;this['sequence'][_0x1f9b56('0x1')](function(){const _0x3539d0=_0x1f9b56;return _0x5b7c98[_0x3539d0('0xc')][_0x3539d0('0x3')](_0x304c59,_0x9ce1c7)[_0x3539d0('0x0')](function(){const _0x1b7cd8=_0x3539d0;logger[_0x1b7cd8('0xd')](_0x1b7cd8('0x13'),_0x9ce1c7,_0x304c59);})[_0x3539d0('0x12')](function(_0x44e38e){const _0x2613e8=_0x3539d0;logger[_0x2613e8('0xd')](util[_0x2613e8('0xa')](_0x44e38e,{'showHidden':![],'depth':null}));});});},Migration[_0x43d491('0x1a')]['renameColumn']=function(_0x256b90,_0x2ec47a,_0x72eb90){const _0x13fc7d=_0x43d491,_0x3b1926=this;this[_0x13fc7d('0x1b')][_0x13fc7d('0x1')](function(){const _0x487a73=_0x13fc7d;return _0x3b1926[_0x487a73('0xc')][_0x487a73('0x1d')](_0x256b90,_0x2ec47a,_0x72eb90)[_0x487a73('0x0')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2ec47a,_0x72eb90,_0x256b90);})[_0x487a73('0x12')](function(_0x29bb6a){const _0x135987=_0x487a73;logger[_0x135987('0xd')](util['inspect'](_0x29bb6a,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x17a745){const _0x3b341c=_0x43d491;this['sequence'][_0x3b341c('0x1')](function(){return _0x17a745();});},module['exports']={'up':function(_0x5e2716,_0x15d4c8){return new Promise(function(_0x2e4d1a){const _0x2bdf96=a995_0x297e,_0x5a9a50=new Migration(_0x5e2716);_0x5a9a50['addColumn'](_0x2bdf96('0x11'),_0x2bdf96('0x10'),{'type':_0x15d4c8['INTEGER'],'defaultValue':0xa}),_0x5a9a50[_0x2bdf96('0x14')]('UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22'),_0x5a9a50['final'](_0x2e4d1a);});},'down':function(){}}; \ No newline at end of file +const a995_0xa327=['changeColumn','removeColumn','dropTable','addIndex','sequelize','removeIndex\x20%s\x20%s','enqueue','queryInterface','tail','loginMailFrequency','then','finally','removeIndex','prototype','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','catch','util','UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','../config/logger','renameColumn','inspect','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','query','table\x20dropped\x20%s','query\x20%s','sequence','info'];(function(_0x12c0ed,_0xa327d8){const _0x4dd156=function(_0x4beaff){while(--_0x4beaff){_0x12c0ed['push'](_0x12c0ed['shift']());}};_0x4dd156(++_0xa327d8);}(a995_0xa327,0xb6));const a995_0x4dd1=function(_0x12c0ed,_0xa327d8){_0x12c0ed=_0x12c0ed-0x0;let _0x4dd156=a995_0xa327[_0x12c0ed];return _0x4dd156;};const _0x4d8783=a995_0x4dd1;'use strict';const util=require(_0x4d8783('0x1')),logger=require(_0x4d8783('0x3'))('migration'),Sequence=function(){};Sequence[_0x4d8783('0x1d')][_0x4d8783('0x16')]=function(_0x4beaff){const _0x383848=_0x4d8783;this[_0x383848('0x18')]=this[_0x383848('0x18')]?this[_0x383848('0x18')][_0x383848('0x1b')](_0x4beaff):_0x4beaff();};const Migration=function(_0x56fc99){const _0x52b756=_0x4d8783;this[_0x52b756('0x17')]=_0x56fc99,this['sequence']=new Sequence();};Migration[_0x4d8783('0x1d')][_0x4d8783('0x10')]=function(_0x38ed5d,_0x5ec595,_0x187c06){const _0x55853b=_0x4d8783,_0x2488ee=this;this[_0x55853b('0xe')][_0x55853b('0x16')](function(){const _0x5e6d62=_0x55853b;return _0x2488ee[_0x5e6d62('0x17')][_0x5e6d62('0x10')](_0x38ed5d,_0x5ec595,_0x187c06)['then'](function(){const _0x451cae=_0x5e6d62;logger[_0x451cae('0xf')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5ec595,_0x38ed5d);})[_0x5e6d62('0x0')](function(_0x457fe7){const _0x58bb20=_0x5e6d62;logger[_0x58bb20('0xf')](JSON['stringify'](_0x457fe7));});});},Migration['prototype'][_0x4d8783('0x1e')]=function(_0x4243e5,_0x378ffe,_0x1eb1cf){const _0x1dea36=_0x4d8783,_0x1e415a=this;this[_0x1dea36('0xe')][_0x1dea36('0x16')](function(){const _0x56cc44=_0x1dea36;return _0x1e415a[_0x56cc44('0x17')][_0x56cc44('0x1e')](_0x4243e5,_0x378ffe,_0x1eb1cf)[_0x56cc44('0x1a')](function(){const _0x3f376b=_0x56cc44;logger['info'](_0x3f376b('0x9'),_0x378ffe,_0x4243e5);})[_0x56cc44('0x0')](function(_0x37b93a){const _0x113ff6=_0x56cc44;logger[_0x113ff6('0xf')](JSON['stringify'](_0x37b93a));});});},Migration['prototype'][_0x4d8783('0x12')]=function(_0x342dfa){const _0x4201e1=_0x4d8783,_0x533ccb=this;this[_0x4201e1('0xe')]['enqueue'](function(){const _0x51f4c7=_0x4201e1;return _0x533ccb[_0x51f4c7('0x17')][_0x51f4c7('0x12')](_0x342dfa,{'force':!![]})[_0x51f4c7('0x1a')](function(){const _0x433c42=_0x51f4c7;logger['info'](_0x433c42('0xc'),_0x342dfa);})['catch'](function(_0x25bfed){const _0x36b180=_0x51f4c7;logger[_0x36b180('0xf')](JSON[_0x36b180('0x20')](_0x25bfed));});});},Migration[_0x4d8783('0x1d')][_0x4d8783('0x13')]=function(_0x127b7a,_0x4c32a6,_0x47656a){const _0x37620d=_0x4d8783,_0x35a823=this;this['sequence'][_0x37620d('0x16')](function(){const _0x3a2480=_0x37620d;return _0x35a823[_0x3a2480('0x17')][_0x3a2480('0x13')](_0x127b7a,_0x4c32a6,{'indexName':_0x47656a['indexName'],'indicesType':_0x47656a['indicesType']})[_0x3a2480('0x1a')](function(){const _0x56f259=_0x3a2480;logger[_0x56f259('0xf')](_0x56f259('0x1f'),_0x127b7a,_0x4c32a6['join'](','),_0x47656a[_0x56f259('0x8')],_0x47656a['indicesType']);})[_0x3a2480('0x0')](function(_0x52ef03){const _0x1fec3c=_0x3a2480;logger[_0x1fec3c('0xf')](JSON[_0x1fec3c('0x20')](_0x52ef03));});});},Migration[_0x4d8783('0x1d')][_0x4d8783('0x1c')]=function(_0x19d2a3,_0x3632aa){const _0x4c4f5a=_0x4d8783,_0x289809=this;this[_0x4c4f5a('0xe')]['enqueue'](function(){const _0x200c86=_0x4c4f5a;return _0x289809[_0x200c86('0x17')][_0x200c86('0x1c')](_0x19d2a3,_0x3632aa)[_0x200c86('0x1a')](function(){const _0x49344c=_0x200c86;logger[_0x49344c('0xf')](_0x49344c('0x15'),_0x19d2a3,_0x3632aa);})[_0x200c86('0x0')](function(_0x5f0d5c){const _0x550bdd=_0x200c86;logger[_0x550bdd('0xf')](JSON[_0x550bdd('0x20')](_0x5f0d5c));});});},Migration[_0x4d8783('0x1d')]['query']=function(_0x3e3d49){const _0x2bd614=_0x4d8783,_0x4f636c=this;this['sequence'][_0x2bd614('0x16')](function(){const _0x1d110b=_0x2bd614;return _0x4f636c['queryInterface'][_0x1d110b('0x14')][_0x1d110b('0xb')](_0x3e3d49)['then'](function(){const _0x57e0b5=_0x1d110b;logger['info'](_0x57e0b5('0xd'),_0x3e3d49);})[_0x1d110b('0x0')](function(_0x1c746f){const _0x327bc1=_0x1d110b;logger[_0x327bc1('0xf')](JSON[_0x327bc1('0x20')](_0x1c746f));});});},Migration[_0x4d8783('0x1d')]['removeColumn']=function(_0x4c2677,_0x297ae6){const _0x5093d8=_0x4d8783,_0x2ab307=this;this[_0x5093d8('0xe')][_0x5093d8('0x16')](function(){const _0x435519=_0x5093d8;return _0x2ab307[_0x435519('0x17')][_0x435519('0x11')](_0x4c2677,_0x297ae6)[_0x435519('0x1a')](function(){const _0x20c495=_0x435519;logger[_0x20c495('0xf')](_0x20c495('0xa'),_0x297ae6,_0x4c2677);})[_0x435519('0x0')](function(_0x292f4b){const _0x5aed31=_0x435519;logger[_0x5aed31('0xf')](util[_0x5aed31('0x5')](_0x292f4b,{'showHidden':![],'depth':null}));});});},Migration[_0x4d8783('0x1d')]['renameColumn']=function(_0xf1ca86,_0x52332f,_0xb88e2c){const _0x1038ee=_0x4d8783,_0x2f66bc=this;this[_0x1038ee('0xe')][_0x1038ee('0x16')](function(){const _0x263b9d=_0x1038ee;return _0x2f66bc[_0x263b9d('0x17')][_0x263b9d('0x4')](_0xf1ca86,_0x52332f,_0xb88e2c)[_0x263b9d('0x1a')](function(){const _0x3c1680=_0x263b9d;logger[_0x3c1680('0xf')](_0x3c1680('0x7'),_0x52332f,_0xb88e2c,_0xf1ca86);})[_0x263b9d('0x0')](function(_0x1cc21b){const _0x46942b=_0x263b9d;logger[_0x46942b('0xf')](util[_0x46942b('0x5')](_0x1cc21b,{'showHidden':![],'depth':null}));});});},Migration[_0x4d8783('0x1d')][_0x4d8783('0x6')]=function(_0x11634c){const _0x683347=_0x4d8783;this['sequence'][_0x683347('0x16')](function(){return _0x11634c();});},module['exports']={'up':function(_0xa3168e,_0x1cdc25){return new Promise(function(_0x1cab6f){const _0x13d921=a995_0x4dd1,_0x24e705=new Migration(_0xa3168e);_0x24e705[_0x13d921('0x1e')]('settings',_0x13d921('0x19'),{'type':_0x1cdc25['INTEGER'],'defaultValue':0xa}),_0x24e705[_0x13d921('0xb')](_0x13d921('0x2')),_0x24e705[_0x13d921('0x6')](_0x1cab6f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.13.js b/server/migrations/2.4.13.js index a2d2a3d..accdb3d 100644 --- a/server/migrations/2.4.13.js +++ b/server/migrations/2.4.13.js @@ -1 +1 @@ -const a996_0x3e99=['info','removeIndex\x20%s\x20%s','indicesType','sequence','util','addIndex','prototype','indexName','inspect','sendUnpauseOnSubmit','final','query','enqueue','finally','addColumn','stringify','jscripty_projects','changeColumn','../config/logger','renameColumn','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','then','removeColumn','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','BOOLEAN','queryInterface','tail','removeIndex','query\x20%s','Added\x20column\x20%s\x20to\x20%s','exports'];(function(_0x45541f,_0x3e99c2){const _0x4e12d0=function(_0x54784e){while(--_0x54784e){_0x45541f['push'](_0x45541f['shift']());}};_0x4e12d0(++_0x3e99c2);}(a996_0x3e99,0xe9));const a996_0x4e12=function(_0x45541f,_0x3e99c2){_0x45541f=_0x45541f-0x0;let _0x4e12d0=a996_0x3e99[_0x45541f];return _0x4e12d0;};const _0x14e850=a996_0x4e12;'use strict';const util=require(_0x14e850('0x10')),logger=require(_0x14e850('0x1e'))('migration'),Sequence=function(){};Sequence[_0x14e850('0x12')][_0x14e850('0x18')]=function(_0x54784e){const _0x7b9601=_0x14e850;this[_0x7b9601('0x7')]=this['tail']?this['tail'][_0x7b9601('0x19')](_0x54784e):_0x54784e();};const Migration=function(_0x8705f4){const _0x32fa28=_0x14e850;this['queryInterface']=_0x8705f4,this[_0x32fa28('0xf')]=new Sequence();};Migration[_0x14e850('0x12')][_0x14e850('0x1d')]=function(_0x11f105,_0x4329e4,_0x1560e1){const _0x337a88=_0x14e850,_0x55ccfd=this;this[_0x337a88('0xf')][_0x337a88('0x18')](function(){const _0x365bd4=_0x337a88;return _0x55ccfd[_0x365bd4('0x6')]['changeColumn'](_0x11f105,_0x4329e4,_0x1560e1)[_0x365bd4('0x0')](function(){const _0x6ceefd=_0x365bd4;logger[_0x6ceefd('0xc')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4329e4,_0x11f105);})[_0x365bd4('0x20')](function(_0x31fc82){const _0x463c0e=_0x365bd4;logger[_0x463c0e('0xc')](JSON[_0x463c0e('0x1b')](_0x31fc82));});});},Migration[_0x14e850('0x12')][_0x14e850('0x1a')]=function(_0x135dbc,_0x314a51,_0x4c7df9){const _0x466d63=_0x14e850,_0x4a2ab3=this;this['sequence'][_0x466d63('0x18')](function(){const _0x2c656e=_0x466d63;return _0x4a2ab3[_0x2c656e('0x6')][_0x2c656e('0x1a')](_0x135dbc,_0x314a51,_0x4c7df9)[_0x2c656e('0x0')](function(){const _0x2a84d5=_0x2c656e;logger[_0x2a84d5('0xc')](_0x2a84d5('0xa'),_0x314a51,_0x135dbc);})[_0x2c656e('0x20')](function(_0x3e10e2){const _0x3e5a80=_0x2c656e;logger[_0x3e5a80('0xc')](JSON[_0x3e5a80('0x1b')](_0x3e10e2));});});},Migration[_0x14e850('0x12')]['dropTable']=function(_0x123c4b){const _0x3a11cb=_0x14e850,_0x51eabe=this;this[_0x3a11cb('0xf')][_0x3a11cb('0x18')](function(){const _0x2c01c7=_0x3a11cb;return _0x51eabe[_0x2c01c7('0x6')]['dropTable'](_0x123c4b,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x123c4b);})[_0x2c01c7('0x20')](function(_0x62493a){const _0x403581=_0x2c01c7;logger['info'](JSON[_0x403581('0x1b')](_0x62493a));});});},Migration[_0x14e850('0x12')][_0x14e850('0x11')]=function(_0x166345,_0xd65854,_0x4dbf9f){const _0x48c4c6=_0x14e850,_0x3981c0=this;this['sequence'][_0x48c4c6('0x18')](function(){const _0x15bb92=_0x48c4c6;return _0x3981c0['queryInterface'][_0x15bb92('0x11')](_0x166345,_0xd65854,{'indexName':_0x4dbf9f[_0x15bb92('0x13')],'indicesType':_0x4dbf9f[_0x15bb92('0xe')]})['then'](function(){const _0x42ea7d=_0x15bb92;logger[_0x42ea7d('0xc')](_0x42ea7d('0x21'),_0x166345,_0xd65854[_0x42ea7d('0x4')](','),_0x4dbf9f['indexName'],_0x4dbf9f[_0x42ea7d('0xe')]);})[_0x15bb92('0x20')](function(_0x1838dc){const _0x51b94e=_0x15bb92;logger[_0x51b94e('0xc')](JSON[_0x51b94e('0x1b')](_0x1838dc));});});},Migration['prototype'][_0x14e850('0x8')]=function(_0x34f509,_0x1c5798){const _0x20d20b=this;this['sequence']['enqueue'](function(){const _0x4ab9ff=a996_0x4e12;return _0x20d20b[_0x4ab9ff('0x6')][_0x4ab9ff('0x8')](_0x34f509,_0x1c5798)[_0x4ab9ff('0x0')](function(){const _0x411e3b=_0x4ab9ff;logger[_0x411e3b('0xc')](_0x411e3b('0xd'),_0x34f509,_0x1c5798);})['catch'](function(_0x44f0c2){const _0xea7b44=_0x4ab9ff;logger['info'](JSON[_0xea7b44('0x1b')](_0x44f0c2));});});},Migration[_0x14e850('0x12')][_0x14e850('0x17')]=function(_0x544e56){const _0x282aac=_0x14e850,_0x48f0c1=this;this[_0x282aac('0xf')]['enqueue'](function(){const _0x136129=_0x282aac;return _0x48f0c1[_0x136129('0x6')][_0x136129('0x2')][_0x136129('0x17')](_0x544e56)[_0x136129('0x0')](function(){const _0x4017c0=_0x136129;logger[_0x4017c0('0xc')](_0x4017c0('0x9'),_0x544e56);})['catch'](function(_0x5b9f83){const _0x55e262=_0x136129;logger['info'](JSON[_0x55e262('0x1b')](_0x5b9f83));});});},Migration[_0x14e850('0x12')][_0x14e850('0x1')]=function(_0x1ec4df,_0x36e3be){const _0x1a1d2c=_0x14e850,_0x5cf675=this;this['sequence'][_0x1a1d2c('0x18')](function(){const _0x4ade87=_0x1a1d2c;return _0x5cf675[_0x4ade87('0x6')][_0x4ade87('0x1')](_0x1ec4df,_0x36e3be)['then'](function(){const _0x11d249=_0x4ade87;logger[_0x11d249('0xc')](_0x11d249('0x22'),_0x36e3be,_0x1ec4df);})[_0x4ade87('0x20')](function(_0x721b14){const _0x329cfe=_0x4ade87;logger[_0x329cfe('0xc')](util[_0x329cfe('0x14')](_0x721b14,{'showHidden':![],'depth':null}));});});},Migration[_0x14e850('0x12')][_0x14e850('0x1f')]=function(_0x137d87,_0x38aabe,_0x138878){const _0x5d1358=_0x14e850,_0xefd193=this;this[_0x5d1358('0xf')][_0x5d1358('0x18')](function(){const _0x2c2bd1=_0x5d1358;return _0xefd193[_0x2c2bd1('0x6')][_0x2c2bd1('0x1f')](_0x137d87,_0x38aabe,_0x138878)[_0x2c2bd1('0x0')](function(){const _0x5539cf=_0x2c2bd1;logger[_0x5539cf('0xc')](_0x5539cf('0x3'),_0x38aabe,_0x138878,_0x137d87);})[_0x2c2bd1('0x20')](function(_0x866d16){const _0x1c29ca=_0x2c2bd1;logger[_0x1c29ca('0xc')](util[_0x1c29ca('0x14')](_0x866d16,{'showHidden':![],'depth':null}));});});},Migration[_0x14e850('0x12')][_0x14e850('0x16')]=function(_0x474280){const _0x527522=_0x14e850;this[_0x527522('0xf')][_0x527522('0x18')](function(){return _0x474280();});},module[_0x14e850('0xb')]={'up':function(_0xf445ee,_0x25014d){return new Promise(function(_0x376ce1){const _0xf65cc0=a996_0x4e12,_0xa7dbf1=new Migration(_0xf445ee);_0xa7dbf1[_0xf65cc0('0x1a')](_0xf65cc0('0x1c'),_0xf65cc0('0x15'),{'type':_0x25014d[_0xf65cc0('0x5')],'defaultValue':![]}),_0xa7dbf1[_0xf65cc0('0x16')](_0x376ce1);});},'down':function(){}}; \ No newline at end of file +const a996_0x3354=['then','sendUnpauseOnSubmit','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','../config/logger','finally','removeColumn','indexName','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','sequelize','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','info','tail','addIndex','prototype','sequence','dropTable','catch','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','jscripty_projects','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','enqueue','removeIndex','exports','stringify','changeColumn','migration','query\x20%s','indicesType','query','renameColumn'];(function(_0x43d52d,_0x335452){const _0x470e71=function(_0x55d65e){while(--_0x55d65e){_0x43d52d['push'](_0x43d52d['shift']());}};_0x470e71(++_0x335452);}(a996_0x3354,0x1f3));const a996_0x470e=function(_0x43d52d,_0x335452){_0x43d52d=_0x43d52d-0x0;let _0x470e71=a996_0x3354[_0x43d52d];return _0x470e71;};const _0x285450=a996_0x470e;'use strict';const util=require('util'),logger=require(_0x285450('0x17'))(_0x285450('0xe')),Sequence=function(){};Sequence[_0x285450('0x0')][_0x285450('0x9')]=function(_0x55d65e){const _0x2c950c=_0x285450;this[_0x2c950c('0x23')]=this[_0x2c950c('0x23')]?this[_0x2c950c('0x23')][_0x2c950c('0x18')](_0x55d65e):_0x55d65e();};const Migration=function(_0x1c7256){const _0xf882f6=_0x285450;this[_0xf882f6('0x21')]=_0x1c7256,this[_0xf882f6('0x1')]=new Sequence();};Migration[_0x285450('0x0')][_0x285450('0xd')]=function(_0x259db1,_0x5b144e,_0x5af795){const _0x5f1cb9=_0x285450,_0x17b346=this;this['sequence'][_0x5f1cb9('0x9')](function(){const _0x267eb5=_0x5f1cb9;return _0x17b346[_0x267eb5('0x21')][_0x267eb5('0xd')](_0x259db1,_0x5b144e,_0x5af795)[_0x267eb5('0x13')](function(){const _0x529455=_0x267eb5;logger[_0x529455('0x22')](_0x529455('0x20'),_0x5b144e,_0x259db1);})[_0x267eb5('0x3')](function(_0x46f2f7){const _0x4db745=_0x267eb5;logger[_0x4db745('0x22')](JSON['stringify'](_0x46f2f7));});});},Migration['prototype'][_0x285450('0x1f')]=function(_0xa25356,_0x3e3ac0,_0x512e6e){const _0x5c15fa=_0x285450,_0x3996f8=this;this[_0x5c15fa('0x1')]['enqueue'](function(){const _0x2cf03c=_0x5c15fa;return _0x3996f8[_0x2cf03c('0x21')][_0x2cf03c('0x1f')](_0xa25356,_0x3e3ac0,_0x512e6e)[_0x2cf03c('0x13')](function(){const _0x5bf46f=_0x2cf03c;logger[_0x5bf46f('0x22')](_0x5bf46f('0x4'),_0x3e3ac0,_0xa25356);})[_0x2cf03c('0x3')](function(_0x5a9277){const _0x2bf858=_0x2cf03c;logger[_0x2bf858('0x22')](JSON['stringify'](_0x5a9277));});});},Migration['prototype'][_0x285450('0x2')]=function(_0x596681){const _0x563cce=_0x285450,_0x5a4313=this;this['sequence'][_0x563cce('0x9')](function(){const _0x42006a=_0x563cce;return _0x5a4313[_0x42006a('0x21')][_0x42006a('0x2')](_0x596681,{'force':!![]})[_0x42006a('0x13')](function(){logger['info']('table\x20dropped\x20%s',_0x596681);})[_0x42006a('0x3')](function(_0xe74524){const _0x32b3e4=_0x42006a;logger['info'](JSON[_0x32b3e4('0xc')](_0xe74524));});});},Migration['prototype'][_0x285450('0x24')]=function(_0x40a1a4,_0x17de97,_0x8e281d){const _0x57c202=_0x285450,_0xde508f=this;this['sequence'][_0x57c202('0x9')](function(){const _0x29af12=_0x57c202;return _0xde508f[_0x29af12('0x21')]['addIndex'](_0x40a1a4,_0x17de97,{'indexName':_0x8e281d['indexName'],'indicesType':_0x8e281d[_0x29af12('0x10')]})['then'](function(){const _0x287b3f=_0x29af12;logger[_0x287b3f('0x22')](_0x287b3f('0x1c'),_0x40a1a4,_0x17de97[_0x287b3f('0x8')](','),_0x8e281d[_0x287b3f('0x1a')],_0x8e281d[_0x287b3f('0x10')]);})[_0x29af12('0x3')](function(_0x44cb42){const _0x7681b0=_0x29af12;logger['info'](JSON[_0x7681b0('0xc')](_0x44cb42));});});},Migration[_0x285450('0x0')][_0x285450('0xa')]=function(_0x389778,_0x6e95d5){const _0x5b83ff=_0x285450,_0x47d315=this;this[_0x5b83ff('0x1')]['enqueue'](function(){const _0x3f2bb7=_0x5b83ff;return _0x47d315[_0x3f2bb7('0x21')][_0x3f2bb7('0xa')](_0x389778,_0x6e95d5)[_0x3f2bb7('0x13')](function(){const _0x3e4f1b=_0x3f2bb7;logger[_0x3e4f1b('0x22')](_0x3e4f1b('0x16'),_0x389778,_0x6e95d5);})[_0x3f2bb7('0x3')](function(_0x3ce83e){const _0x10800a=_0x3f2bb7;logger[_0x10800a('0x22')](JSON[_0x10800a('0xc')](_0x3ce83e));});});},Migration['prototype'][_0x285450('0x11')]=function(_0x495bff){const _0x268d21=_0x285450,_0x21e7da=this;this[_0x268d21('0x1')]['enqueue'](function(){const _0x5a97f9=_0x268d21;return _0x21e7da['queryInterface'][_0x5a97f9('0x1e')][_0x5a97f9('0x11')](_0x495bff)[_0x5a97f9('0x13')](function(){const _0x2ac6ad=_0x5a97f9;logger[_0x2ac6ad('0x22')](_0x2ac6ad('0xf'),_0x495bff);})[_0x5a97f9('0x3')](function(_0x2c4490){logger['info'](JSON['stringify'](_0x2c4490));});});},Migration[_0x285450('0x0')][_0x285450('0x19')]=function(_0x2a6289,_0x235230){const _0x3ed6c4=_0x285450,_0x4a1269=this;this[_0x3ed6c4('0x1')][_0x3ed6c4('0x9')](function(){const _0x5ab0dc=_0x3ed6c4;return _0x4a1269[_0x5ab0dc('0x21')][_0x5ab0dc('0x19')](_0x2a6289,_0x235230)['then'](function(){const _0x31f79c=_0x5ab0dc;logger[_0x31f79c('0x22')](_0x31f79c('0x15'),_0x235230,_0x2a6289);})[_0x5ab0dc('0x3')](function(_0x3099ee){const _0x34534a=_0x5ab0dc;logger[_0x34534a('0x22')](util[_0x34534a('0x1d')](_0x3099ee,{'showHidden':![],'depth':null}));});});},Migration[_0x285450('0x0')]['renameColumn']=function(_0x5995fb,_0x47b654,_0x10e8db){const _0x295490=_0x285450,_0x402688=this;this[_0x295490('0x1')][_0x295490('0x9')](function(){const _0x1a3052=_0x295490;return _0x402688[_0x1a3052('0x21')][_0x1a3052('0x12')](_0x5995fb,_0x47b654,_0x10e8db)['then'](function(){const _0x4040f6=_0x1a3052;logger[_0x4040f6('0x22')](_0x4040f6('0x7'),_0x47b654,_0x10e8db,_0x5995fb);})[_0x1a3052('0x3')](function(_0x4a473c){const _0x24987d=_0x1a3052;logger[_0x24987d('0x22')](util[_0x24987d('0x1d')](_0x4a473c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x285450('0x1b')]=function(_0x58c912){const _0x3a45d0=_0x285450;this[_0x3a45d0('0x1')][_0x3a45d0('0x9')](function(){return _0x58c912();});},module[_0x285450('0xb')]={'up':function(_0x59a704,_0x1a03ef){return new Promise(function(_0x1e932e){const _0x1a1cf1=a996_0x470e,_0x5f14c2=new Migration(_0x59a704);_0x5f14c2[_0x1a1cf1('0x1f')](_0x1a1cf1('0x6'),_0x1a1cf1('0x14'),{'type':_0x1a03ef[_0x1a1cf1('0x5')],'defaultValue':![]}),_0x5f14c2['final'](_0x1e932e);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.14.js b/server/migrations/2.4.14.js index 95ebc4f..78563b0 100644 --- a/server/migrations/2.4.14.js +++ b/server/migrations/2.4.14.js @@ -1 +1 @@ -const a997_0x4572=['renameColumn','stringify','catch','query','then','dropTable','queryInterface','migration','indicesType','Added\x20column\x20%s\x20to\x20%s','sequence','enqueue','join','changeColumn','removeColumn','addIndex','Removed\x20column\x20%s\x20from\x20%s','inspect','prototype','removeIndex','info','indexName','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','removeIndex\x20%s\x20%s','util','finally','sequelize','final'];(function(_0x52074c,_0x457215){const _0x598c9e=function(_0x5581b6){while(--_0x5581b6){_0x52074c['push'](_0x52074c['shift']());}};_0x598c9e(++_0x457215);}(a997_0x4572,0x1a3));const a997_0x598c=function(_0x52074c,_0x457215){_0x52074c=_0x52074c-0x0;let _0x598c9e=a997_0x4572[_0x52074c];return _0x598c9e;};const _0x187631=a997_0x598c;'use strict';const util=require(_0x187631('0x1b')),logger=require('../config/logger')(_0x187631('0x8')),Sequence=function(){};Sequence['prototype'][_0x187631('0xc')]=function(_0x5581b6){const _0x27b27d=_0x187631;this[_0x27b27d('0x17')]=this['tail']?this[_0x27b27d('0x17')][_0x27b27d('0x1c')](_0x5581b6):_0x5581b6();};const Migration=function(_0x52a041){const _0xb90483=_0x187631;this['queryInterface']=_0x52a041,this[_0xb90483('0xb')]=new Sequence();};Migration[_0x187631('0x13')][_0x187631('0xe')]=function(_0x564686,_0x7c2b58,_0x1abdc){const _0x285c5a=_0x187631,_0xffb4cd=this;this[_0x285c5a('0xb')][_0x285c5a('0xc')](function(){const _0x5645a2=_0x285c5a;return _0xffb4cd[_0x5645a2('0x7')][_0x5645a2('0xe')](_0x564686,_0x7c2b58,_0x1abdc)['then'](function(){const _0x20f9a3=_0x5645a2;logger[_0x20f9a3('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x7c2b58,_0x564686);})[_0x5645a2('0x3')](function(_0x4dbce6){const _0x533286=_0x5645a2;logger[_0x533286('0x15')](JSON[_0x533286('0x2')](_0x4dbce6));});});},Migration[_0x187631('0x13')][_0x187631('0x19')]=function(_0x11f5f5,_0x5c6e9f,_0x5c7581){const _0x5ce3a3=_0x187631,_0x587e4f=this;this[_0x5ce3a3('0xb')][_0x5ce3a3('0xc')](function(){const _0x256531=_0x5ce3a3;return _0x587e4f[_0x256531('0x7')][_0x256531('0x19')](_0x11f5f5,_0x5c6e9f,_0x5c7581)[_0x256531('0x5')](function(){const _0x4ce4f8=_0x256531;logger['info'](_0x4ce4f8('0xa'),_0x5c6e9f,_0x11f5f5);})[_0x256531('0x3')](function(_0xb0c7aa){logger['info'](JSON['stringify'](_0xb0c7aa));});});},Migration[_0x187631('0x13')]['dropTable']=function(_0x5c9d80){const _0x8c2e5c=_0x187631,_0x329641=this;this['sequence'][_0x8c2e5c('0xc')](function(){const _0xcd9f9a=_0x8c2e5c;return _0x329641[_0xcd9f9a('0x7')][_0xcd9f9a('0x6')](_0x5c9d80,{'force':!![]})[_0xcd9f9a('0x5')](function(){logger['info']('table\x20dropped\x20%s',_0x5c9d80);})[_0xcd9f9a('0x3')](function(_0x47a211){const _0x9544e9=_0xcd9f9a;logger[_0x9544e9('0x15')](JSON[_0x9544e9('0x2')](_0x47a211));});});},Migration['prototype'][_0x187631('0x10')]=function(_0x3e0864,_0x5d7c24,_0x550f92){const _0x5105b4=_0x187631,_0x476c80=this;this[_0x5105b4('0xb')]['enqueue'](function(){const _0x2df67d=_0x5105b4;return _0x476c80['queryInterface'][_0x2df67d('0x10')](_0x3e0864,_0x5d7c24,{'indexName':_0x550f92['indexName'],'indicesType':_0x550f92[_0x2df67d('0x9')]})[_0x2df67d('0x5')](function(){const _0x173024=_0x2df67d;logger['info'](_0x173024('0x18'),_0x3e0864,_0x5d7c24[_0x173024('0xd')](','),_0x550f92[_0x173024('0x16')],_0x550f92['indicesType']);})[_0x2df67d('0x3')](function(_0x24eae1){const _0x44d881=_0x2df67d;logger['info'](JSON[_0x44d881('0x2')](_0x24eae1));});});},Migration[_0x187631('0x13')][_0x187631('0x14')]=function(_0x182c65,_0x147f31){const _0x899af6=_0x187631,_0x41d4b0=this;this[_0x899af6('0xb')][_0x899af6('0xc')](function(){const _0x338fdf=_0x899af6;return _0x41d4b0['queryInterface'][_0x338fdf('0x14')](_0x182c65,_0x147f31)[_0x338fdf('0x5')](function(){const _0xc027d6=_0x338fdf;logger[_0xc027d6('0x15')](_0xc027d6('0x1a'),_0x182c65,_0x147f31);})[_0x338fdf('0x3')](function(_0x1b9026){const _0x1cedef=_0x338fdf;logger[_0x1cedef('0x15')](JSON[_0x1cedef('0x2')](_0x1b9026));});});},Migration[_0x187631('0x13')][_0x187631('0x4')]=function(_0x37f289){const _0x4e3ada=_0x187631,_0x1440ac=this;this[_0x4e3ada('0xb')][_0x4e3ada('0xc')](function(){const _0xca28ce=_0x4e3ada;return _0x1440ac[_0xca28ce('0x7')][_0xca28ce('0x1d')]['query'](_0x37f289)[_0xca28ce('0x5')](function(){const _0x5aaf9d=_0xca28ce;logger[_0x5aaf9d('0x15')]('query\x20%s',_0x37f289);})[_0xca28ce('0x3')](function(_0x105dcf){const _0x4d267f=_0xca28ce;logger[_0x4d267f('0x15')](JSON['stringify'](_0x105dcf));});});},Migration[_0x187631('0x13')][_0x187631('0xf')]=function(_0x3f17f8,_0x1f7678){const _0x11a3d1=_0x187631,_0xbe5c4a=this;this[_0x11a3d1('0xb')][_0x11a3d1('0xc')](function(){const _0x5bc33b=_0x11a3d1;return _0xbe5c4a[_0x5bc33b('0x7')][_0x5bc33b('0xf')](_0x3f17f8,_0x1f7678)['then'](function(){const _0x346f64=_0x5bc33b;logger[_0x346f64('0x15')](_0x346f64('0x11'),_0x1f7678,_0x3f17f8);})[_0x5bc33b('0x3')](function(_0x56d80a){const _0x586ba4=_0x5bc33b;logger[_0x586ba4('0x15')](util['inspect'](_0x56d80a,{'showHidden':![],'depth':null}));});});},Migration[_0x187631('0x13')][_0x187631('0x1')]=function(_0x5ba91b,_0x260bdc,_0x1e9cfe){const _0x30edfa=_0x187631,_0x3e77a6=this;this['sequence'][_0x30edfa('0xc')](function(){const _0x53e5d3=_0x30edfa;return _0x3e77a6[_0x53e5d3('0x7')][_0x53e5d3('0x1')](_0x5ba91b,_0x260bdc,_0x1e9cfe)[_0x53e5d3('0x5')](function(){const _0x78fc74=_0x53e5d3;logger[_0x78fc74('0x15')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x260bdc,_0x1e9cfe,_0x5ba91b);})[_0x53e5d3('0x3')](function(_0x3a968a){const _0x1691c1=_0x53e5d3;logger[_0x1691c1('0x15')](util[_0x1691c1('0x12')](_0x3a968a,{'showHidden':![],'depth':null}));});});},Migration[_0x187631('0x13')][_0x187631('0x0')]=function(_0x54ff2f){const _0x29aa13=_0x187631;this[_0x29aa13('0xb')][_0x29aa13('0xc')](function(){return _0x54ff2f();});},module['exports']={'up':function(_0x43e836){return new Promise(function(_0x29d764){const _0x3bd21b=a997_0x598c,_0x3c2def=new Migration(_0x43e836);_0x3c2def[_0x3bd21b('0x0')](_0x29d764);});},'down':function(){}}; \ No newline at end of file +const a997_0x4ce8=['exports','prototype','migration','addColumn','then','info','inspect','finally','../config/logger','changeColumn','Removed\x20column\x20%s\x20from\x20%s','stringify','removeIndex\x20%s\x20%s','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','join','indicesType','removeColumn','util','renameColumn','queryInterface','query\x20%s','indexName','final','table\x20dropped\x20%s','removeIndex','sequence','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','enqueue','sequelize','dropTable','Added\x20column\x20%s\x20to\x20%s'];(function(_0x4610c3,_0x4ce82b){const _0x5521bc=function(_0x4b3968){while(--_0x4b3968){_0x4610c3['push'](_0x4610c3['shift']());}};_0x5521bc(++_0x4ce82b);}(a997_0x4ce8,0x15c));const a997_0x5521=function(_0x4610c3,_0x4ce82b){_0x4610c3=_0x4610c3-0x0;let _0x5521bc=a997_0x4ce8[_0x4610c3];return _0x5521bc;};const _0x20bb2f=a997_0x5521;'use strict';const util=require(_0x20bb2f('0x1f')),logger=require(_0x20bb2f('0x14'))(_0x20bb2f('0xe')),Sequence=function(){};Sequence[_0x20bb2f('0xd')]['enqueue']=function(_0x4b3968){const _0x327168=_0x20bb2f;this[_0x327168('0x1b')]=this[_0x327168('0x1b')]?this[_0x327168('0x1b')][_0x327168('0x13')](_0x4b3968):_0x4b3968();};const Migration=function(_0x57cb3b){const _0x152c09=_0x20bb2f;this[_0x152c09('0x21')]=_0x57cb3b,this[_0x152c09('0x3')]=new Sequence();};Migration['prototype'][_0x20bb2f('0x15')]=function(_0x32c83d,_0x49d8b5,_0x1512f4){const _0x195bd=_0x20bb2f,_0x44dea0=this;this[_0x195bd('0x3')][_0x195bd('0x8')](function(){const _0x2e19e4=_0x195bd;return _0x44dea0[_0x2e19e4('0x21')][_0x2e19e4('0x15')](_0x32c83d,_0x49d8b5,_0x1512f4)[_0x2e19e4('0x10')](function(){const _0x46742c=_0x2e19e4;logger[_0x46742c('0x11')](_0x46742c('0x5'),_0x49d8b5,_0x32c83d);})[_0x2e19e4('0x19')](function(_0x19dfcb){const _0x565b4c=_0x2e19e4;logger[_0x565b4c('0x11')](JSON[_0x565b4c('0x17')](_0x19dfcb));});});},Migration['prototype'][_0x20bb2f('0xf')]=function(_0x42e7c5,_0x102c30,_0x1002a8){const _0x26e226=_0x20bb2f,_0x417c10=this;this[_0x26e226('0x3')]['enqueue'](function(){const _0x2b5854=_0x26e226;return _0x417c10[_0x2b5854('0x21')][_0x2b5854('0xf')](_0x42e7c5,_0x102c30,_0x1002a8)[_0x2b5854('0x10')](function(){const _0x2ca0dd=_0x2b5854;logger[_0x2ca0dd('0x11')](_0x2ca0dd('0xb'),_0x102c30,_0x42e7c5);})[_0x2b5854('0x19')](function(_0x2388c5){const _0x539b0f=_0x2b5854;logger[_0x539b0f('0x11')](JSON['stringify'](_0x2388c5));});});},Migration['prototype'][_0x20bb2f('0xa')]=function(_0x4be481){const _0x1b89e0=_0x20bb2f,_0x1de18c=this;this[_0x1b89e0('0x3')][_0x1b89e0('0x8')](function(){const _0x403ae1=_0x1b89e0;return _0x1de18c[_0x403ae1('0x21')]['dropTable'](_0x4be481,{'force':!![]})['then'](function(){const _0x571a37=_0x403ae1;logger[_0x571a37('0x11')](_0x571a37('0x1'),_0x4be481);})[_0x403ae1('0x19')](function(_0x26abb1){const _0x29efc8=_0x403ae1;logger['info'](JSON[_0x29efc8('0x17')](_0x26abb1));});});},Migration[_0x20bb2f('0xd')][_0x20bb2f('0x4')]=function(_0x71320f,_0x328597,_0x2295a8){const _0x5537af=_0x20bb2f,_0x4074b3=this;this[_0x5537af('0x3')][_0x5537af('0x8')](function(){const _0x300c6e=_0x5537af;return _0x4074b3[_0x300c6e('0x21')][_0x300c6e('0x4')](_0x71320f,_0x328597,{'indexName':_0x2295a8[_0x300c6e('0x23')],'indicesType':_0x2295a8['indicesType']})[_0x300c6e('0x10')](function(){const _0x2fa898=_0x300c6e;logger[_0x2fa898('0x11')](_0x2fa898('0x1a'),_0x71320f,_0x328597[_0x2fa898('0x1c')](','),_0x2295a8[_0x2fa898('0x23')],_0x2295a8[_0x2fa898('0x1d')]);})[_0x300c6e('0x19')](function(_0x13e5d6){const _0x4fb676=_0x300c6e;logger[_0x4fb676('0x11')](JSON[_0x4fb676('0x17')](_0x13e5d6));});});},Migration['prototype'][_0x20bb2f('0x2')]=function(_0x29b87b,_0x1a4e79){const _0x23abe5=_0x20bb2f,_0x326449=this;this[_0x23abe5('0x3')][_0x23abe5('0x8')](function(){const _0x3cac26=_0x23abe5;return _0x326449[_0x3cac26('0x21')][_0x3cac26('0x2')](_0x29b87b,_0x1a4e79)[_0x3cac26('0x10')](function(){const _0x2dc8e6=_0x3cac26;logger['info'](_0x2dc8e6('0x18'),_0x29b87b,_0x1a4e79);})['catch'](function(_0x2ceafa){const _0x587c91=_0x3cac26;logger[_0x587c91('0x11')](JSON[_0x587c91('0x17')](_0x2ceafa));});});},Migration[_0x20bb2f('0xd')][_0x20bb2f('0x7')]=function(_0xe63242){const _0x2aa7a4=this;this['sequence']['enqueue'](function(){const _0x2c8380=a997_0x5521;return _0x2aa7a4['queryInterface'][_0x2c8380('0x9')][_0x2c8380('0x7')](_0xe63242)[_0x2c8380('0x10')](function(){const _0x5c5e55=_0x2c8380;logger['info'](_0x5c5e55('0x22'),_0xe63242);})['catch'](function(_0x16f97f){const _0x56521f=_0x2c8380;logger[_0x56521f('0x11')](JSON['stringify'](_0x16f97f));});});},Migration['prototype'][_0x20bb2f('0x1e')]=function(_0x20f590,_0x586edc){const _0x27bad4=_0x20bb2f,_0x5f423f=this;this['sequence'][_0x27bad4('0x8')](function(){const _0xeeb2f7=_0x27bad4;return _0x5f423f[_0xeeb2f7('0x21')][_0xeeb2f7('0x1e')](_0x20f590,_0x586edc)[_0xeeb2f7('0x10')](function(){const _0x4ddfae=_0xeeb2f7;logger[_0x4ddfae('0x11')](_0x4ddfae('0x16'),_0x586edc,_0x20f590);})[_0xeeb2f7('0x19')](function(_0xd8dd96){const _0x568848=_0xeeb2f7;logger[_0x568848('0x11')](util[_0x568848('0x12')](_0xd8dd96,{'showHidden':![],'depth':null}));});});},Migration[_0x20bb2f('0xd')][_0x20bb2f('0x20')]=function(_0xcdb36d,_0x3f77f7,_0x5c45d9){const _0x261bbb=this;this['sequence']['enqueue'](function(){const _0x3b4786=a997_0x5521;return _0x261bbb[_0x3b4786('0x21')][_0x3b4786('0x20')](_0xcdb36d,_0x3f77f7,_0x5c45d9)['then'](function(){const _0x4ec68f=_0x3b4786;logger['info'](_0x4ec68f('0x6'),_0x3f77f7,_0x5c45d9,_0xcdb36d);})[_0x3b4786('0x19')](function(_0x26dbf7){const _0x129c40=_0x3b4786;logger['info'](util[_0x129c40('0x12')](_0x26dbf7,{'showHidden':![],'depth':null}));});});},Migration[_0x20bb2f('0xd')][_0x20bb2f('0x0')]=function(_0xe6e860){const _0x33c7af=_0x20bb2f;this[_0x33c7af('0x3')][_0x33c7af('0x8')](function(){return _0xe6e860();});},module[_0x20bb2f('0xc')]={'up':function(_0x30d36b){return new Promise(function(_0x2ca85d){const _0x4a9f93=a997_0x5521,_0x68e3c8=new Migration(_0x30d36b);_0x68e3c8[_0x4a9f93('0x0')](_0x2ca85d);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.15.js b/server/migrations/2.4.15.js index edcad41..a6f594b 100644 --- a/server/migrations/2.4.15.js +++ b/server/migrations/2.4.15.js @@ -1 +1 @@ -const a998_0x2958=['Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','sequence','indicesType','dropTable','removeColumn','then','query\x20%s','info','addColumn','join','final','changeColumn','exports','finally','tail','Removed\x20column\x20%s\x20from\x20%s','prototype','queryInterface','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','migration','sequelize','renameColumn','enqueue','addIndex','inspect','stringify','indexName'];(function(_0x4c87b8,_0x29585e){const _0x30f4ed=function(_0x5d0c64){while(--_0x5d0c64){_0x4c87b8['push'](_0x4c87b8['shift']());}};_0x30f4ed(++_0x29585e);}(a998_0x2958,0x13c));const a998_0x30f4=function(_0x4c87b8,_0x29585e){_0x4c87b8=_0x4c87b8-0x0;let _0x30f4ed=a998_0x2958[_0x4c87b8];return _0x30f4ed;};const _0x1d74b2=a998_0x30f4;'use strict';const util=require('util'),logger=require('../config/logger')(_0x1d74b2('0x6')),Sequence=function(){};Sequence[_0x1d74b2('0x1')][_0x1d74b2('0x9')]=function(_0x5d0c64){const _0x1b711e=_0x1d74b2;this[_0x1b711e('0x1d')]=this[_0x1b711e('0x1d')]?this[_0x1b711e('0x1d')][_0x1b711e('0x1c')](_0x5d0c64):_0x5d0c64();};const Migration=function(_0x3b5561){const _0x182e11=_0x1d74b2;this[_0x182e11('0x2')]=_0x3b5561,this[_0x182e11('0x10')]=new Sequence();};Migration['prototype'][_0x1d74b2('0x1a')]=function(_0x4c4a58,_0x50021,_0x992f3){const _0x1b427b=_0x1d74b2,_0x17b3f4=this;this[_0x1b427b('0x10')][_0x1b427b('0x9')](function(){const _0x5dc947=_0x1b427b;return _0x17b3f4['queryInterface']['changeColumn'](_0x4c4a58,_0x50021,_0x992f3)[_0x5dc947('0x14')](function(){const _0x1ff273=_0x5dc947;logger[_0x1ff273('0x16')](_0x1ff273('0xe'),_0x50021,_0x4c4a58);})[_0x5dc947('0x3')](function(_0x35a44e){const _0x31831d=_0x5dc947;logger[_0x31831d('0x16')](JSON[_0x31831d('0xc')](_0x35a44e));});});},Migration['prototype'][_0x1d74b2('0x17')]=function(_0x4e2815,_0x514228,_0xea95fb){const _0x307ae5=_0x1d74b2,_0x44d5b4=this;this[_0x307ae5('0x10')][_0x307ae5('0x9')](function(){const _0x242c68=_0x307ae5;return _0x44d5b4[_0x242c68('0x2')][_0x242c68('0x17')](_0x4e2815,_0x514228,_0xea95fb)[_0x242c68('0x14')](function(){const _0x24b4e0=_0x242c68;logger['info'](_0x24b4e0('0xf'),_0x514228,_0x4e2815);})['catch'](function(_0x5c41f3){const _0x3bfdd5=_0x242c68;logger[_0x3bfdd5('0x16')](JSON[_0x3bfdd5('0xc')](_0x5c41f3));});});},Migration[_0x1d74b2('0x1')][_0x1d74b2('0x12')]=function(_0x291b4a){const _0x4c1be1=_0x1d74b2,_0x2dd245=this;this[_0x4c1be1('0x10')][_0x4c1be1('0x9')](function(){const _0xdda4a2=_0x4c1be1;return _0x2dd245[_0xdda4a2('0x2')][_0xdda4a2('0x12')](_0x291b4a,{'force':!![]})[_0xdda4a2('0x14')](function(){const _0x10b2a2=_0xdda4a2;logger[_0x10b2a2('0x16')](_0x10b2a2('0x5'),_0x291b4a);})[_0xdda4a2('0x3')](function(_0x4e6664){const _0x466cba=_0xdda4a2;logger['info'](JSON[_0x466cba('0xc')](_0x4e6664));});});},Migration[_0x1d74b2('0x1')][_0x1d74b2('0xa')]=function(_0x543d93,_0x4581f4,_0x32dce0){const _0x3776de=_0x1d74b2,_0x3f8d67=this;this[_0x3776de('0x10')][_0x3776de('0x9')](function(){const _0x272b8e=_0x3776de;return _0x3f8d67['queryInterface'][_0x272b8e('0xa')](_0x543d93,_0x4581f4,{'indexName':_0x32dce0[_0x272b8e('0xd')],'indicesType':_0x32dce0[_0x272b8e('0x11')]})[_0x272b8e('0x14')](function(){const _0x3c5094=_0x272b8e;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x543d93,_0x4581f4[_0x3c5094('0x18')](','),_0x32dce0[_0x3c5094('0xd')],_0x32dce0[_0x3c5094('0x11')]);})[_0x272b8e('0x3')](function(_0x46bbba){const _0x26ccf2=_0x272b8e;logger[_0x26ccf2('0x16')](JSON[_0x26ccf2('0xc')](_0x46bbba));});});},Migration[_0x1d74b2('0x1')]['removeIndex']=function(_0x564741,_0x1fbd6b){const _0x48590c=_0x1d74b2,_0x131a4d=this;this[_0x48590c('0x10')]['enqueue'](function(){const _0x3a67d0=_0x48590c;return _0x131a4d[_0x3a67d0('0x2')]['removeIndex'](_0x564741,_0x1fbd6b)[_0x3a67d0('0x14')](function(){const _0x3c820c=_0x3a67d0;logger[_0x3c820c('0x16')]('removeIndex\x20%s\x20%s',_0x564741,_0x1fbd6b);})['catch'](function(_0x2e21ed){const _0x593efa=_0x3a67d0;logger[_0x593efa('0x16')](JSON[_0x593efa('0xc')](_0x2e21ed));});});},Migration[_0x1d74b2('0x1')]['query']=function(_0xbd684){const _0x1982a3=_0x1d74b2,_0x5e4891=this;this[_0x1982a3('0x10')][_0x1982a3('0x9')](function(){const _0x44052c=_0x1982a3;return _0x5e4891['queryInterface'][_0x44052c('0x7')]['query'](_0xbd684)[_0x44052c('0x14')](function(){const _0x821b5a=_0x44052c;logger[_0x821b5a('0x16')](_0x821b5a('0x15'),_0xbd684);})[_0x44052c('0x3')](function(_0x538e7f){const _0x55cde7=_0x44052c;logger[_0x55cde7('0x16')](JSON[_0x55cde7('0xc')](_0x538e7f));});});},Migration[_0x1d74b2('0x1')][_0x1d74b2('0x13')]=function(_0x11fc15,_0x2398e4){const _0x42e6db=_0x1d74b2,_0x2b00a0=this;this[_0x42e6db('0x10')][_0x42e6db('0x9')](function(){const _0x2d8fe3=_0x42e6db;return _0x2b00a0[_0x2d8fe3('0x2')]['removeColumn'](_0x11fc15,_0x2398e4)['then'](function(){const _0x1ae942=_0x2d8fe3;logger[_0x1ae942('0x16')](_0x1ae942('0x0'),_0x2398e4,_0x11fc15);})['catch'](function(_0x2e01bf){const _0x46d2e0=_0x2d8fe3;logger['info'](util[_0x46d2e0('0xb')](_0x2e01bf,{'showHidden':![],'depth':null}));});});},Migration[_0x1d74b2('0x1')][_0x1d74b2('0x8')]=function(_0x1bce94,_0x88c6e5,_0x59cb66){const _0x835b57=_0x1d74b2,_0x3c529d=this;this['sequence'][_0x835b57('0x9')](function(){const _0x2f01e2=_0x835b57;return _0x3c529d['queryInterface'][_0x2f01e2('0x8')](_0x1bce94,_0x88c6e5,_0x59cb66)[_0x2f01e2('0x14')](function(){const _0x312a3a=_0x2f01e2;logger[_0x312a3a('0x16')](_0x312a3a('0x4'),_0x88c6e5,_0x59cb66,_0x1bce94);})[_0x2f01e2('0x3')](function(_0x416b32){const _0x79c06d=_0x2f01e2;logger[_0x79c06d('0x16')](util[_0x79c06d('0xb')](_0x416b32,{'showHidden':![],'depth':null}));});});},Migration[_0x1d74b2('0x1')][_0x1d74b2('0x19')]=function(_0x95dce3){this['sequence']['enqueue'](function(){return _0x95dce3();});},module[_0x1d74b2('0x1b')]={'up':function(_0x51739a){return new Promise(function(_0x43408f){const _0x7e9f77=a998_0x30f4,_0x244437=new Migration(_0x51739a);_0x244437['query']('UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22'),_0x244437[_0x7e9f77('0x19')](_0x43408f);});},'down':function(){}}; \ No newline at end of file +const a998_0x1d86=['then','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','catch','tail','renameColumn','removeColumn','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','migration','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','info','table\x20dropped\x20%s','indicesType','Removed\x20column\x20%s\x20from\x20%s','queryInterface','enqueue','query','util','stringify','dropTable','prototype','Added\x20column\x20%s\x20to\x20%s','removeIndex','final','changeColumn','../config/logger','indexName','inspect','sequelize'];(function(_0x3c56c4,_0x1d8657){const _0x2217f1=function(_0x122d3e){while(--_0x122d3e){_0x3c56c4['push'](_0x3c56c4['shift']());}};_0x2217f1(++_0x1d8657);}(a998_0x1d86,0xc2));const a998_0x2217=function(_0x3c56c4,_0x1d8657){_0x3c56c4=_0x3c56c4-0x0;let _0x2217f1=a998_0x1d86[_0x3c56c4];return _0x2217f1;};const _0x25738e=a998_0x2217;'use strict';const util=require(_0x25738e('0x19')),logger=require(_0x25738e('0x0'))(_0x25738e('0xc')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x122d3e){const _0x4a2487=_0x25738e;this[_0x4a2487('0x8')]=this['tail']?this['tail'][_0x4a2487('0x10')](_0x122d3e):_0x122d3e();};const Migration=function(_0x3a7972){const _0x2e7690=_0x25738e;this[_0x2e7690('0x16')]=_0x3a7972,this[_0x2e7690('0x6')]=new Sequence();};Migration[_0x25738e('0x1c')][_0x25738e('0x20')]=function(_0x4dc50b,_0x4692ea,_0x563522){const _0x4bf3d5=_0x25738e,_0x2127b6=this;this[_0x4bf3d5('0x6')][_0x4bf3d5('0x17')](function(){const _0x563b34=_0x4bf3d5;return _0x2127b6[_0x563b34('0x16')][_0x563b34('0x20')](_0x4dc50b,_0x4692ea,_0x563522)['then'](function(){const _0x4052f0=_0x563b34;logger[_0x4052f0('0x12')](_0x4052f0('0x11'),_0x4692ea,_0x4dc50b);})[_0x563b34('0x7')](function(_0x552601){const _0x4b7cef=_0x563b34;logger[_0x4b7cef('0x12')](JSON[_0x4b7cef('0x1a')](_0x552601));});});},Migration[_0x25738e('0x1c')]['addColumn']=function(_0x185120,_0x11ec70,_0x2175a2){const _0x443352=_0x25738e,_0x36224f=this;this['sequence'][_0x443352('0x17')](function(){const _0x52fb2e=_0x443352;return _0x36224f[_0x52fb2e('0x16')]['addColumn'](_0x185120,_0x11ec70,_0x2175a2)[_0x52fb2e('0x4')](function(){const _0x374922=_0x52fb2e;logger[_0x374922('0x12')](_0x374922('0x1d'),_0x11ec70,_0x185120);})['catch'](function(_0xd2a27d){const _0x58cac8=_0x52fb2e;logger['info'](JSON[_0x58cac8('0x1a')](_0xd2a27d));});});},Migration['prototype'][_0x25738e('0x1b')]=function(_0x34ad96){const _0x1cf8e2=_0x25738e,_0x1b6e31=this;this['sequence'][_0x1cf8e2('0x17')](function(){const _0x7b2443=_0x1cf8e2;return _0x1b6e31[_0x7b2443('0x16')][_0x7b2443('0x1b')](_0x34ad96,{'force':!![]})[_0x7b2443('0x4')](function(){const _0x151380=_0x7b2443;logger[_0x151380('0x12')](_0x151380('0x13'),_0x34ad96);})[_0x7b2443('0x7')](function(_0x586d29){const _0x20ad73=_0x7b2443;logger['info'](JSON[_0x20ad73('0x1a')](_0x586d29));});});},Migration[_0x25738e('0x1c')][_0x25738e('0xd')]=function(_0x406239,_0x39ac16,_0x3a3a67){const _0x2dda93=_0x25738e,_0x2ed462=this;this[_0x2dda93('0x6')]['enqueue'](function(){const _0x107673=_0x2dda93;return _0x2ed462[_0x107673('0x16')]['addIndex'](_0x406239,_0x39ac16,{'indexName':_0x3a3a67[_0x107673('0x1')],'indicesType':_0x3a3a67[_0x107673('0x14')]})[_0x107673('0x4')](function(){const _0x5ebd2a=_0x107673;logger[_0x5ebd2a('0x12')](_0x5ebd2a('0x5'),_0x406239,_0x39ac16['join'](','),_0x3a3a67[_0x5ebd2a('0x1')],_0x3a3a67[_0x5ebd2a('0x14')]);})['catch'](function(_0x16ffc9){const _0x3bbae2=_0x107673;logger[_0x3bbae2('0x12')](JSON[_0x3bbae2('0x1a')](_0x16ffc9));});});},Migration['prototype']['removeIndex']=function(_0x37a0fb,_0xb4085f){const _0x31d914=_0x25738e,_0x1d5828=this;this[_0x31d914('0x6')][_0x31d914('0x17')](function(){const _0x476955=_0x31d914;return _0x1d5828[_0x476955('0x16')][_0x476955('0x1e')](_0x37a0fb,_0xb4085f)[_0x476955('0x4')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x37a0fb,_0xb4085f);})[_0x476955('0x7')](function(_0x4a4d32){const _0x4bea7c=_0x476955;logger[_0x4bea7c('0x12')](JSON[_0x4bea7c('0x1a')](_0x4a4d32));});});},Migration[_0x25738e('0x1c')][_0x25738e('0x18')]=function(_0x5d39bd){const _0x585cf2=_0x25738e,_0x213333=this;this[_0x585cf2('0x6')][_0x585cf2('0x17')](function(){const _0x2ea8b0=_0x585cf2;return _0x213333['queryInterface'][_0x2ea8b0('0x3')][_0x2ea8b0('0x18')](_0x5d39bd)[_0x2ea8b0('0x4')](function(){const _0x30379b=_0x2ea8b0;logger[_0x30379b('0x12')](_0x30379b('0xf'),_0x5d39bd);})[_0x2ea8b0('0x7')](function(_0x538939){const _0x3cd776=_0x2ea8b0;logger['info'](JSON[_0x3cd776('0x1a')](_0x538939));});});},Migration['prototype'][_0x25738e('0xa')]=function(_0x8ec764,_0x4b1242){const _0x9785c3=_0x25738e,_0x1cab5b=this;this[_0x9785c3('0x6')][_0x9785c3('0x17')](function(){const _0x10b6f6=_0x9785c3;return _0x1cab5b[_0x10b6f6('0x16')]['removeColumn'](_0x8ec764,_0x4b1242)[_0x10b6f6('0x4')](function(){const _0xafea90=_0x10b6f6;logger[_0xafea90('0x12')](_0xafea90('0x15'),_0x4b1242,_0x8ec764);})['catch'](function(_0x4c44af){const _0xf7cd7e=_0x10b6f6;logger[_0xf7cd7e('0x12')](util[_0xf7cd7e('0x2')](_0x4c44af,{'showHidden':![],'depth':null}));});});},Migration[_0x25738e('0x1c')][_0x25738e('0x9')]=function(_0x2c313a,_0x354994,_0x43d0fd){const _0x47d8ff=this;this['sequence']['enqueue'](function(){const _0x3bb278=a998_0x2217;return _0x47d8ff['queryInterface'][_0x3bb278('0x9')](_0x2c313a,_0x354994,_0x43d0fd)['then'](function(){const _0x2dd293=_0x3bb278;logger[_0x2dd293('0x12')](_0x2dd293('0xe'),_0x354994,_0x43d0fd,_0x2c313a);})[_0x3bb278('0x7')](function(_0x2dfdcf){const _0x2ac941=_0x3bb278;logger[_0x2ac941('0x12')](util[_0x2ac941('0x2')](_0x2dfdcf,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x25738e('0x1f')]=function(_0xec70db){const _0x16c899=_0x25738e;this[_0x16c899('0x6')][_0x16c899('0x17')](function(){return _0xec70db();});},module['exports']={'up':function(_0x4ec3ab){return new Promise(function(_0x4d7998){const _0x2ea666=a998_0x2217,_0x742693=new Migration(_0x4ec3ab);_0x742693[_0x2ea666('0x18')](_0x2ea666('0xb')),_0x742693[_0x2ea666('0x1f')](_0x4d7998);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.16.js b/server/migrations/2.4.16.js index 02e0f82..b23aabb 100644 --- a/server/migrations/2.4.16.js +++ b/server/migrations/2.4.16.js @@ -1 +1 @@ -const a999_0x4a47=['exports','Added\x20column\x20%s\x20to\x20%s','then','info','finally','enqueue','inspect','firstName','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','fax','tail','queryInterface','indicesType','changeColumn','table\x20dropped\x20%s','sequence','util','FULLTEXT','final','fti_cm_contacts','catch','lastName','email','join','indexName','addIndex','../config/logger','removeIndex','query\x20%s','migration','addColumn','phone','query','sequelize','cm_contacts'];(function(_0x4111da,_0x4a4773){const _0x233f10=function(_0x53e293){while(--_0x53e293){_0x4111da['push'](_0x4111da['shift']());}};_0x233f10(++_0x4a4773);}(a999_0x4a47,0x1aa));const a999_0x233f=function(_0x4111da,_0x4a4773){_0x4111da=_0x4111da-0x0;let _0x233f10=a999_0x4a47[_0x4111da];return _0x233f10;};const _0x1c1c65=a999_0x233f;'use strict';const util=require(_0x1c1c65('0x6')),logger=require(_0x1c1c65('0x10'))(_0x1c1c65('0x13')),Sequence=function(){};Sequence[_0x1c1c65('0x25')][_0x1c1c65('0x1e')]=function(_0x53e293){const _0x2764a9=_0x1c1c65;this[_0x2764a9('0x0')]=this[_0x2764a9('0x0')]?this[_0x2764a9('0x0')][_0x2764a9('0x1d')](_0x53e293):_0x53e293();};const Migration=function(_0x2e9d2f){const _0x23b2ea=_0x1c1c65;this[_0x23b2ea('0x1')]=_0x2e9d2f,this['sequence']=new Sequence();};Migration[_0x1c1c65('0x25')][_0x1c1c65('0x3')]=function(_0x432d2d,_0x5cc910,_0x4df448){const _0x7a2908=_0x1c1c65,_0x31ff5b=this;this[_0x7a2908('0x5')][_0x7a2908('0x1e')](function(){const _0x4a41ee=_0x7a2908;return _0x31ff5b['queryInterface'][_0x4a41ee('0x3')](_0x432d2d,_0x5cc910,_0x4df448)[_0x4a41ee('0x1b')](function(){const _0x597aa6=_0x4a41ee;logger[_0x597aa6('0x1c')](_0x597aa6('0x21'),_0x5cc910,_0x432d2d);})[_0x4a41ee('0xa')](function(_0x515b11){const _0x4dce80=_0x4a41ee;logger[_0x4dce80('0x1c')](JSON['stringify'](_0x515b11));});});},Migration[_0x1c1c65('0x25')]['addColumn']=function(_0x4c1f08,_0x387152,_0x1d533d){const _0x16dc86=this;this['sequence']['enqueue'](function(){const _0x20e76c=a999_0x233f;return _0x16dc86[_0x20e76c('0x1')][_0x20e76c('0x14')](_0x4c1f08,_0x387152,_0x1d533d)[_0x20e76c('0x1b')](function(){const _0x508e44=_0x20e76c;logger['info'](_0x508e44('0x1a'),_0x387152,_0x4c1f08);})[_0x20e76c('0xa')](function(_0x32c570){const _0x297d81=_0x20e76c;logger[_0x297d81('0x1c')](JSON[_0x297d81('0x22')](_0x32c570));});});},Migration[_0x1c1c65('0x25')][_0x1c1c65('0x27')]=function(_0x18195c){const _0x4dc9dc=_0x1c1c65,_0x2b10f0=this;this['sequence'][_0x4dc9dc('0x1e')](function(){const _0x1a2fb5=_0x4dc9dc;return _0x2b10f0['queryInterface'][_0x1a2fb5('0x27')](_0x18195c,{'force':!![]})[_0x1a2fb5('0x1b')](function(){const _0x467b97=_0x1a2fb5;logger[_0x467b97('0x1c')](_0x467b97('0x4'),_0x18195c);})[_0x1a2fb5('0xa')](function(_0x424f44){const _0x23f789=_0x1a2fb5;logger[_0x23f789('0x1c')](JSON[_0x23f789('0x22')](_0x424f44));});});},Migration[_0x1c1c65('0x25')][_0x1c1c65('0xf')]=function(_0x34e0bb,_0x3f1073,_0x202586){const _0x44095e=_0x1c1c65,_0x56d752=this;this['sequence'][_0x44095e('0x1e')](function(){const _0x48dc80=_0x44095e;return _0x56d752['queryInterface'][_0x48dc80('0xf')](_0x34e0bb,_0x3f1073,{'indexName':_0x202586['indexName'],'indicesType':_0x202586['indicesType']})[_0x48dc80('0x1b')](function(){const _0xda613e=_0x48dc80;logger[_0xda613e('0x1c')](_0xda613e('0x26'),_0x34e0bb,_0x3f1073[_0xda613e('0xd')](','),_0x202586[_0xda613e('0xe')],_0x202586[_0xda613e('0x2')]);})['catch'](function(_0x2e535a){logger['info'](JSON['stringify'](_0x2e535a));});});},Migration[_0x1c1c65('0x25')][_0x1c1c65('0x11')]=function(_0x264cb7,_0x436313){const _0x42c398=_0x1c1c65,_0x2040d0=this;this[_0x42c398('0x5')]['enqueue'](function(){const _0x41e050=_0x42c398;return _0x2040d0[_0x41e050('0x1')]['removeIndex'](_0x264cb7,_0x436313)[_0x41e050('0x1b')](function(){const _0x5720dd=_0x41e050;logger[_0x5720dd('0x1c')]('removeIndex\x20%s\x20%s',_0x264cb7,_0x436313);})[_0x41e050('0xa')](function(_0xa25299){const _0x551340=_0x41e050;logger[_0x551340('0x1c')](JSON[_0x551340('0x22')](_0xa25299));});});},Migration[_0x1c1c65('0x25')]['query']=function(_0x31c30c){const _0x1afb71=_0x1c1c65,_0x151569=this;this[_0x1afb71('0x5')][_0x1afb71('0x1e')](function(){const _0x1b8647=_0x1afb71;return _0x151569[_0x1b8647('0x1')][_0x1b8647('0x17')][_0x1b8647('0x16')](_0x31c30c)[_0x1b8647('0x1b')](function(){const _0x4afc27=_0x1b8647;logger['info'](_0x4afc27('0x12'),_0x31c30c);})[_0x1b8647('0xa')](function(_0x429114){const _0x160a6c=_0x1b8647;logger[_0x160a6c('0x1c')](JSON[_0x160a6c('0x22')](_0x429114));});});},Migration['prototype']['removeColumn']=function(_0x51edcf,_0x40b730){const _0x1e6c38=_0x1c1c65,_0x5bac2c=this;this[_0x1e6c38('0x5')][_0x1e6c38('0x1e')](function(){const _0x57eca3=_0x1e6c38;return _0x5bac2c[_0x57eca3('0x1')]['removeColumn'](_0x51edcf,_0x40b730)[_0x57eca3('0x1b')](function(){const _0x51c7ee=_0x57eca3;logger[_0x51c7ee('0x1c')]('Removed\x20column\x20%s\x20from\x20%s',_0x40b730,_0x51edcf);})[_0x57eca3('0xa')](function(_0x52e678){const _0x403edc=_0x57eca3;logger['info'](util[_0x403edc('0x1f')](_0x52e678,{'showHidden':![],'depth':null}));});});},Migration[_0x1c1c65('0x25')]['renameColumn']=function(_0x3fbc1e,_0x137bd3,_0x5b0073){const _0x3b60d4=_0x1c1c65,_0x534b22=this;this[_0x3b60d4('0x5')][_0x3b60d4('0x1e')](function(){const _0xe84e69=_0x3b60d4;return _0x534b22[_0xe84e69('0x1')][_0xe84e69('0x23')](_0x3fbc1e,_0x137bd3,_0x5b0073)[_0xe84e69('0x1b')](function(){const _0x1e25f2=_0xe84e69;logger['info'](_0x1e25f2('0x24'),_0x137bd3,_0x5b0073,_0x3fbc1e);})[_0xe84e69('0xa')](function(_0x2f566e){const _0x16766e=_0xe84e69;logger['info'](util[_0x16766e('0x1f')](_0x2f566e,{'showHidden':![],'depth':null}));});});},Migration[_0x1c1c65('0x25')][_0x1c1c65('0x8')]=function(_0x5d1405){const _0x5000b4=_0x1c1c65;this[_0x5000b4('0x5')][_0x5000b4('0x1e')](function(){return _0x5d1405();});},module[_0x1c1c65('0x19')]={'up':function(_0xa69f0d){return new Promise(function(_0x333c9d){const _0x7aa530=a999_0x233f,_0x14c69f=new Migration(_0xa69f0d);_0x14c69f[_0x7aa530('0xf')](_0x7aa530('0x18'),[_0x7aa530('0x20'),_0x7aa530('0xb'),_0x7aa530('0x15'),'mobile',_0x7aa530('0x28'),_0x7aa530('0xc')],{'indexName':_0x7aa530('0x9'),'indicesType':_0x7aa530('0x7')}),_0x14c69f['final'](_0x333c9d);});},'down':function(){}}; \ No newline at end of file +const a999_0x9c7f=['dropTable','removeIndex','enqueue','query\x20%s','cm_contacts','then','Added\x20column\x20%s\x20to\x20%s','info','queryInterface','removeIndex\x20%s\x20%s','prototype','final','inspect','changeColumn','sequence','addIndex','indexName','query','../config/logger','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','catch','fax','mobile','email','util','fti_cm_contacts','indicesType','renameColumn','exports','Removed\x20column\x20%s\x20from\x20%s','FULLTEXT','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','stringify'];(function(_0x159a4e,_0x9c7f45){const _0x25ceaa=function(_0x4bafcb){while(--_0x4bafcb){_0x159a4e['push'](_0x159a4e['shift']());}};_0x25ceaa(++_0x9c7f45);}(a999_0x9c7f,0x160));const a999_0x25ce=function(_0x159a4e,_0x9c7f45){_0x159a4e=_0x159a4e-0x0;let _0x25ceaa=a999_0x9c7f[_0x159a4e];return _0x25ceaa;};const _0x4a9e52=a999_0x25ce;'use strict';const util=require(_0x4a9e52('0x22')),logger=require(_0x4a9e52('0x1a'))('migration'),Sequence=function(){};Sequence['prototype'][_0x4a9e52('0xa')]=function(_0x4bafcb){const _0x550fb9=_0x4a9e52;this[_0x550fb9('0x1b')]=this[_0x550fb9('0x1b')]?this[_0x550fb9('0x1b')]['finally'](_0x4bafcb):_0x4bafcb();};const Migration=function(_0x5b0191){const _0x335ebd=_0x4a9e52;this[_0x335ebd('0x10')]=_0x5b0191,this[_0x335ebd('0x16')]=new Sequence();};Migration[_0x4a9e52('0x12')][_0x4a9e52('0x15')]=function(_0x5d7f6f,_0x36de2f,_0x5f5490){const _0x49c858=_0x4a9e52,_0x19c11e=this;this['sequence'][_0x49c858('0xa')](function(){const _0x2c3950=_0x49c858;return _0x19c11e[_0x2c3950('0x10')][_0x2c3950('0x15')](_0x5d7f6f,_0x36de2f,_0x5f5490)[_0x2c3950('0xd')](function(){const _0x1bd6ac=_0x2c3950;logger['info'](_0x1bd6ac('0x1c'),_0x36de2f,_0x5d7f6f);})['catch'](function(_0x46736f){const _0x569293=_0x2c3950;logger[_0x569293('0xf')](JSON[_0x569293('0x7')](_0x46736f));});});},Migration['prototype'][_0x4a9e52('0x6')]=function(_0x3df587,_0x59022d,_0x15b763){const _0x3cb1bf=_0x4a9e52,_0xbf0ab0=this;this[_0x3cb1bf('0x16')][_0x3cb1bf('0xa')](function(){const _0x3ba623=_0x3cb1bf;return _0xbf0ab0['queryInterface'][_0x3ba623('0x6')](_0x3df587,_0x59022d,_0x15b763)[_0x3ba623('0xd')](function(){const _0x5116ff=_0x3ba623;logger[_0x5116ff('0xf')](_0x5116ff('0xe'),_0x59022d,_0x3df587);})[_0x3ba623('0x1e')](function(_0x2c19cc){const _0x3a5423=_0x3ba623;logger['info'](JSON[_0x3a5423('0x7')](_0x2c19cc));});});},Migration[_0x4a9e52('0x12')]['dropTable']=function(_0x4cfd22){const _0x51a487=_0x4a9e52,_0x1559f7=this;this[_0x51a487('0x16')][_0x51a487('0xa')](function(){const _0x39ddd2=_0x51a487;return _0x1559f7['queryInterface'][_0x39ddd2('0x8')](_0x4cfd22,{'force':!![]})[_0x39ddd2('0xd')](function(){const _0x3e08c0=_0x39ddd2;logger[_0x3e08c0('0xf')]('table\x20dropped\x20%s',_0x4cfd22);})[_0x39ddd2('0x1e')](function(_0x4dc4cb){const _0x48fc13=_0x39ddd2;logger[_0x48fc13('0xf')](JSON[_0x48fc13('0x7')](_0x4dc4cb));});});},Migration[_0x4a9e52('0x12')]['addIndex']=function(_0x4b8f47,_0xe084d5,_0x65e997){const _0x4624ae=this;this['sequence']['enqueue'](function(){const _0x58b8ca=a999_0x25ce;return _0x4624ae[_0x58b8ca('0x10')][_0x58b8ca('0x17')](_0x4b8f47,_0xe084d5,{'indexName':_0x65e997[_0x58b8ca('0x18')],'indicesType':_0x65e997[_0x58b8ca('0x0')]})['then'](function(){const _0x3a3320=_0x58b8ca;logger[_0x3a3320('0xf')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4b8f47,_0xe084d5['join'](','),_0x65e997['indexName'],_0x65e997[_0x3a3320('0x0')]);})['catch'](function(_0x368ccc){const _0x425be6=_0x58b8ca;logger[_0x425be6('0xf')](JSON[_0x425be6('0x7')](_0x368ccc));});});},Migration['prototype'][_0x4a9e52('0x9')]=function(_0x83f4bf,_0x268e95){const _0x39da13=this;this['sequence']['enqueue'](function(){const _0x2cb164=a999_0x25ce;return _0x39da13['queryInterface'][_0x2cb164('0x9')](_0x83f4bf,_0x268e95)['then'](function(){const _0xebf665=_0x2cb164;logger[_0xebf665('0xf')](_0xebf665('0x11'),_0x83f4bf,_0x268e95);})['catch'](function(_0x1be3f5){const _0x15fbf0=_0x2cb164;logger['info'](JSON[_0x15fbf0('0x7')](_0x1be3f5));});});},Migration[_0x4a9e52('0x12')][_0x4a9e52('0x19')]=function(_0x2dcf67){const _0x22975e=_0x4a9e52,_0x38eed5=this;this[_0x22975e('0x16')][_0x22975e('0xa')](function(){const _0x4e800a=_0x22975e;return _0x38eed5[_0x4e800a('0x10')]['sequelize'][_0x4e800a('0x19')](_0x2dcf67)[_0x4e800a('0xd')](function(){const _0x24ed08=_0x4e800a;logger[_0x24ed08('0xf')](_0x24ed08('0xb'),_0x2dcf67);})[_0x4e800a('0x1e')](function(_0x21488c){const _0x61e78=_0x4e800a;logger[_0x61e78('0xf')](JSON[_0x61e78('0x7')](_0x21488c));});});},Migration['prototype'][_0x4a9e52('0x1d')]=function(_0x34c16d,_0x58cd4b){const _0x5c92fb=_0x4a9e52,_0x5e7a01=this;this[_0x5c92fb('0x16')][_0x5c92fb('0xa')](function(){const _0x467701=_0x5c92fb;return _0x5e7a01[_0x467701('0x10')][_0x467701('0x1d')](_0x34c16d,_0x58cd4b)[_0x467701('0xd')](function(){const _0x579ef6=_0x467701;logger[_0x579ef6('0xf')](_0x579ef6('0x3'),_0x58cd4b,_0x34c16d);})[_0x467701('0x1e')](function(_0x5a400e){logger['info'](util['inspect'](_0x5a400e,{'showHidden':![],'depth':null}));});});},Migration[_0x4a9e52('0x12')][_0x4a9e52('0x1')]=function(_0x267e9a,_0x31d7ec,_0x2160e1){const _0x5c077f=_0x4a9e52,_0x1972ba=this;this['sequence'][_0x5c077f('0xa')](function(){const _0x56d116=_0x5c077f;return _0x1972ba['queryInterface'][_0x56d116('0x1')](_0x267e9a,_0x31d7ec,_0x2160e1)[_0x56d116('0xd')](function(){const _0x666f84=_0x56d116;logger[_0x666f84('0xf')](_0x666f84('0x5'),_0x31d7ec,_0x2160e1,_0x267e9a);})['catch'](function(_0x4d2ac9){const _0x28976b=_0x56d116;logger[_0x28976b('0xf')](util[_0x28976b('0x14')](_0x4d2ac9,{'showHidden':![],'depth':null}));});});},Migration[_0x4a9e52('0x12')][_0x4a9e52('0x13')]=function(_0x45da41){const _0x30305b=_0x4a9e52;this[_0x30305b('0x16')][_0x30305b('0xa')](function(){return _0x45da41();});},module[_0x4a9e52('0x2')]={'up':function(_0x556b24){return new Promise(function(_0x239628){const _0x147d21=a999_0x25ce,_0xae9eb6=new Migration(_0x556b24);_0xae9eb6[_0x147d21('0x17')](_0x147d21('0xc'),['firstName','lastName','phone',_0x147d21('0x20'),_0x147d21('0x1f'),_0x147d21('0x21')],{'indexName':_0x147d21('0x23'),'indicesType':_0x147d21('0x4')}),_0xae9eb6[_0x147d21('0x13')](_0x239628);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.17.js b/server/migrations/2.4.17.js index bc30d6c..3c74d3e 100644 --- a/server/migrations/2.4.17.js +++ b/server/migrations/2.4.17.js @@ -1 +1 @@ -const a1000_0x2258=['removeIndex','final','removeIndex\x20%s\x20%s','removeColumn','indicesType','finally','stringify','sequence','enqueue','Removed\x20column\x20%s\x20from\x20%s','renameColumn','queryInterface','addIndex','Added\x20column\x20%s\x20to\x20%s','exports','catch','addColumn','join','dropTable','query','table\x20dropped\x20%s','info','inspect','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','tail','../config/logger','indexName','query\x20%s','prototype'];(function(_0x3f2cbe,_0x2258ea){const _0x5e656c=function(_0x52c815){while(--_0x52c815){_0x3f2cbe['push'](_0x3f2cbe['shift']());}};_0x5e656c(++_0x2258ea);}(a1000_0x2258,0xc5));const a1000_0x5e65=function(_0x3f2cbe,_0x2258ea){_0x3f2cbe=_0x3f2cbe-0x0;let _0x5e656c=a1000_0x2258[_0x3f2cbe];return _0x5e656c;};const _0x14f5f0=a1000_0x5e65;'use strict';const util=require('util'),logger=require(_0x14f5f0('0x10'))(_0x14f5f0('0xc')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x52c815){const _0x104853=_0x14f5f0;this[_0x104853('0xf')]=this['tail']?this[_0x104853('0xf')][_0x104853('0x19')](_0x52c815):_0x52c815();};const Migration=function(_0x3a7685){const _0x552404=_0x14f5f0;this[_0x552404('0x0')]=_0x3a7685,this[_0x552404('0x1b')]=new Sequence();};Migration[_0x14f5f0('0x13')]['changeColumn']=function(_0x304cbe,_0x4a770d,_0x22f2f7){const _0x19ee8b=_0x14f5f0,_0x42d43c=this;this[_0x19ee8b('0x1b')][_0x19ee8b('0x1c')](function(){const _0x4ba77b=_0x19ee8b;return _0x42d43c['queryInterface']['changeColumn'](_0x304cbe,_0x4a770d,_0x22f2f7)[_0x4ba77b('0xe')](function(){const _0x16e303=_0x4ba77b;logger[_0x16e303('0xa')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4a770d,_0x304cbe);})[_0x4ba77b('0x4')](function(_0x344b22){const _0x29f7de=_0x4ba77b;logger[_0x29f7de('0xa')](JSON[_0x29f7de('0x1a')](_0x344b22));});});},Migration[_0x14f5f0('0x13')]['addColumn']=function(_0x14ed4c,_0x50b300,_0x1fcf92){const _0x1e96ca=_0x14f5f0,_0x52602f=this;this[_0x1e96ca('0x1b')][_0x1e96ca('0x1c')](function(){const _0x4555a9=_0x1e96ca;return _0x52602f[_0x4555a9('0x0')][_0x4555a9('0x5')](_0x14ed4c,_0x50b300,_0x1fcf92)[_0x4555a9('0xe')](function(){const _0x21f9c3=_0x4555a9;logger[_0x21f9c3('0xa')](_0x21f9c3('0x2'),_0x50b300,_0x14ed4c);})['catch'](function(_0x565b16){logger['info'](JSON['stringify'](_0x565b16));});});},Migration['prototype']['dropTable']=function(_0x39ce16){const _0x5eb760=_0x14f5f0,_0x481f14=this;this[_0x5eb760('0x1b')]['enqueue'](function(){const _0x3986cc=_0x5eb760;return _0x481f14[_0x3986cc('0x0')][_0x3986cc('0x7')](_0x39ce16,{'force':!![]})[_0x3986cc('0xe')](function(){const _0x17d923=_0x3986cc;logger[_0x17d923('0xa')](_0x17d923('0x9'),_0x39ce16);})['catch'](function(_0x11fbbb){const _0x2065e7=_0x3986cc;logger[_0x2065e7('0xa')](JSON['stringify'](_0x11fbbb));});});},Migration[_0x14f5f0('0x13')][_0x14f5f0('0x1')]=function(_0x2b11d4,_0x51936c,_0x37f929){const _0x2d98a8=_0x14f5f0,_0x2c1283=this;this[_0x2d98a8('0x1b')]['enqueue'](function(){const _0xbfac9e=_0x2d98a8;return _0x2c1283['queryInterface'][_0xbfac9e('0x1')](_0x2b11d4,_0x51936c,{'indexName':_0x37f929['indexName'],'indicesType':_0x37f929['indicesType']})[_0xbfac9e('0xe')](function(){const _0x192cc4=_0xbfac9e;logger[_0x192cc4('0xa')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x2b11d4,_0x51936c[_0x192cc4('0x6')](','),_0x37f929[_0x192cc4('0x11')],_0x37f929[_0x192cc4('0x18')]);})[_0xbfac9e('0x4')](function(_0x84c343){const _0x5155ce=_0xbfac9e;logger['info'](JSON[_0x5155ce('0x1a')](_0x84c343));});});},Migration[_0x14f5f0('0x13')]['removeIndex']=function(_0x20d8c2,_0x479b15){const _0x334748=_0x14f5f0,_0x75d220=this;this[_0x334748('0x1b')][_0x334748('0x1c')](function(){const _0x5c6c08=_0x334748;return _0x75d220[_0x5c6c08('0x0')][_0x5c6c08('0x14')](_0x20d8c2,_0x479b15)[_0x5c6c08('0xe')](function(){const _0x4f0875=_0x5c6c08;logger['info'](_0x4f0875('0x16'),_0x20d8c2,_0x479b15);})[_0x5c6c08('0x4')](function(_0x5ad2ae){const _0x255974=_0x5c6c08;logger['info'](JSON[_0x255974('0x1a')](_0x5ad2ae));});});},Migration[_0x14f5f0('0x13')][_0x14f5f0('0x8')]=function(_0x3f1df3){const _0x4dafb4=_0x14f5f0,_0x19fdc3=this;this[_0x4dafb4('0x1b')]['enqueue'](function(){const _0x2bbb46=_0x4dafb4;return _0x19fdc3[_0x2bbb46('0x0')]['sequelize'][_0x2bbb46('0x8')](_0x3f1df3)['then'](function(){const _0x29c0a7=_0x2bbb46;logger[_0x29c0a7('0xa')](_0x29c0a7('0x12'),_0x3f1df3);})[_0x2bbb46('0x4')](function(_0x3ffc30){const _0x5ad77d=_0x2bbb46;logger[_0x5ad77d('0xa')](JSON[_0x5ad77d('0x1a')](_0x3ffc30));});});},Migration[_0x14f5f0('0x13')][_0x14f5f0('0x17')]=function(_0x157276,_0x2c5e42){const _0x4f4192=this;this['sequence']['enqueue'](function(){const _0x42dfa6=a1000_0x5e65;return _0x4f4192[_0x42dfa6('0x0')][_0x42dfa6('0x17')](_0x157276,_0x2c5e42)[_0x42dfa6('0xe')](function(){const _0xa4f62=_0x42dfa6;logger['info'](_0xa4f62('0x1d'),_0x2c5e42,_0x157276);})['catch'](function(_0x178ef){const _0x59d11e=_0x42dfa6;logger[_0x59d11e('0xa')](util[_0x59d11e('0xb')](_0x178ef,{'showHidden':![],'depth':null}));});});},Migration[_0x14f5f0('0x13')][_0x14f5f0('0x1e')]=function(_0x2a2eac,_0x4a67f5,_0x390935){const _0x18f999=_0x14f5f0,_0x8ff636=this;this[_0x18f999('0x1b')]['enqueue'](function(){const _0x533a86=_0x18f999;return _0x8ff636['queryInterface'][_0x533a86('0x1e')](_0x2a2eac,_0x4a67f5,_0x390935)[_0x533a86('0xe')](function(){const _0x4606bb=_0x533a86;logger[_0x4606bb('0xa')](_0x4606bb('0xd'),_0x4a67f5,_0x390935,_0x2a2eac);})['catch'](function(_0xf181e2){const _0x4fdad5=_0x533a86;logger[_0x4fdad5('0xa')](util[_0x4fdad5('0xb')](_0xf181e2,{'showHidden':![],'depth':null}));});});},Migration[_0x14f5f0('0x13')]['final']=function(_0x360592){const _0x18e1d3=_0x14f5f0;this['sequence'][_0x18e1d3('0x1c')](function(){return _0x360592();});},module[_0x14f5f0('0x3')]={'up':function(_0x25c564){return new Promise(function(_0x296adf){const _0x4129fa=a1000_0x5e65,_0x467bd9=new Migration(_0x25c564);_0x467bd9[_0x4129fa('0x15')](_0x296adf);});},'down':function(){}}; \ No newline at end of file +const a1000_0xb877=['addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','final','catch','addColumn','removeIndex','query','removeColumn','indicesType','enqueue','finally','inspect','queryInterface','util','addIndex','tail','sequence','renameColumn','indexName','then','stringify','table\x20dropped\x20%s','prototype','dropTable','info','sequelize','Added\x20column\x20%s\x20to\x20%s','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn'];(function(_0x199f82,_0xb8776f){const _0x116b07=function(_0x4d0683){while(--_0x4d0683){_0x199f82['push'](_0x199f82['shift']());}};_0x116b07(++_0xb8776f);}(a1000_0xb877,0x1a8));const a1000_0x116b=function(_0x199f82,_0xb8776f){_0x199f82=_0x199f82-0x0;let _0x116b07=a1000_0xb877[_0x199f82];return _0x116b07;};const _0x5c6a2a=a1000_0x116b;'use strict';const util=require(_0x5c6a2a('0x9')),logger=require('../config/logger')(_0x5c6a2a('0x17')),Sequence=function(){};Sequence[_0x5c6a2a('0x12')][_0x5c6a2a('0x5')]=function(_0x4d0683){const _0xc5fbde=_0x5c6a2a;this['tail']=this[_0xc5fbde('0xb')]?this['tail'][_0xc5fbde('0x6')](_0x4d0683):_0x4d0683();};const Migration=function(_0x179b23){const _0x2463ef=_0x5c6a2a;this[_0x2463ef('0x8')]=_0x179b23,this['sequence']=new Sequence();};Migration[_0x5c6a2a('0x12')][_0x5c6a2a('0x19')]=function(_0x1cc55e,_0x198594,_0x18c25e){const _0x22c11a=_0x5c6a2a,_0x50fab6=this;this[_0x22c11a('0xc')][_0x22c11a('0x5')](function(){const _0x2673a6=_0x22c11a;return _0x50fab6['queryInterface']['changeColumn'](_0x1cc55e,_0x198594,_0x18c25e)[_0x2673a6('0xf')](function(){const _0x11b7eb=_0x2673a6;logger['info'](_0x11b7eb('0x18'),_0x198594,_0x1cc55e);})[_0x2673a6('0x1d')](function(_0x46a982){const _0x7bbe56=_0x2673a6;logger[_0x7bbe56('0x14')](JSON[_0x7bbe56('0x10')](_0x46a982));});});},Migration['prototype'][_0x5c6a2a('0x0')]=function(_0x193375,_0x4f8961,_0xa6c316){const _0x18f2f0=_0x5c6a2a,_0x4833a4=this;this[_0x18f2f0('0xc')][_0x18f2f0('0x5')](function(){const _0x521e6a=_0x18f2f0;return _0x4833a4[_0x521e6a('0x8')][_0x521e6a('0x0')](_0x193375,_0x4f8961,_0xa6c316)[_0x521e6a('0xf')](function(){const _0x309e11=_0x521e6a;logger[_0x309e11('0x14')](_0x309e11('0x16'),_0x4f8961,_0x193375);})[_0x521e6a('0x1d')](function(_0x5b90b0){const _0x4b9495=_0x521e6a;logger[_0x4b9495('0x14')](JSON[_0x4b9495('0x10')](_0x5b90b0));});});},Migration[_0x5c6a2a('0x12')]['dropTable']=function(_0x21bda5){const _0xe69837=_0x5c6a2a,_0x281743=this;this[_0xe69837('0xc')][_0xe69837('0x5')](function(){const _0x4a2551=_0xe69837;return _0x281743[_0x4a2551('0x8')][_0x4a2551('0x13')](_0x21bda5,{'force':!![]})['then'](function(){const _0x563693=_0x4a2551;logger[_0x563693('0x14')](_0x563693('0x11'),_0x21bda5);})[_0x4a2551('0x1d')](function(_0x101074){const _0x3d1f2d=_0x4a2551;logger[_0x3d1f2d('0x14')](JSON['stringify'](_0x101074));});});},Migration[_0x5c6a2a('0x12')][_0x5c6a2a('0xa')]=function(_0x523ca8,_0x561408,_0x5e8b64){const _0x1f485e=_0x5c6a2a,_0x706955=this;this[_0x1f485e('0xc')][_0x1f485e('0x5')](function(){const _0x30ad25=_0x1f485e;return _0x706955['queryInterface']['addIndex'](_0x523ca8,_0x561408,{'indexName':_0x5e8b64[_0x30ad25('0xe')],'indicesType':_0x5e8b64[_0x30ad25('0x4')]})['then'](function(){const _0x2e8a76=_0x30ad25;logger[_0x2e8a76('0x14')](_0x2e8a76('0x1a'),_0x523ca8,_0x561408['join'](','),_0x5e8b64['indexName'],_0x5e8b64[_0x2e8a76('0x4')]);})[_0x30ad25('0x1d')](function(_0x50bce4){const _0x4f905a=_0x30ad25;logger[_0x4f905a('0x14')](JSON['stringify'](_0x50bce4));});});},Migration[_0x5c6a2a('0x12')][_0x5c6a2a('0x1')]=function(_0x2dbee0,_0x1cb558){const _0x3dc114=_0x5c6a2a,_0x1e23f5=this;this[_0x3dc114('0xc')]['enqueue'](function(){const _0x5059d6=_0x3dc114;return _0x1e23f5[_0x5059d6('0x8')][_0x5059d6('0x1')](_0x2dbee0,_0x1cb558)['then'](function(){const _0x2178dd=_0x5059d6;logger[_0x2178dd('0x14')]('removeIndex\x20%s\x20%s',_0x2dbee0,_0x1cb558);})[_0x5059d6('0x1d')](function(_0x2f3032){const _0x53841a=_0x5059d6;logger[_0x53841a('0x14')](JSON[_0x53841a('0x10')](_0x2f3032));});});},Migration['prototype']['query']=function(_0x2a744d){const _0x49ccdc=_0x5c6a2a,_0x2742ac=this;this[_0x49ccdc('0xc')][_0x49ccdc('0x5')](function(){const _0xa23161=_0x49ccdc;return _0x2742ac[_0xa23161('0x8')][_0xa23161('0x15')][_0xa23161('0x2')](_0x2a744d)['then'](function(){const _0x47cba2=_0xa23161;logger['info'](_0x47cba2('0x1b'),_0x2a744d);})[_0xa23161('0x1d')](function(_0x29de7e){const _0x190186=_0xa23161;logger[_0x190186('0x14')](JSON[_0x190186('0x10')](_0x29de7e));});});},Migration[_0x5c6a2a('0x12')]['removeColumn']=function(_0x12b6cb,_0x154b77){const _0x338cff=_0x5c6a2a,_0x422449=this;this[_0x338cff('0xc')][_0x338cff('0x5')](function(){const _0x1647c0=_0x338cff;return _0x422449[_0x1647c0('0x8')][_0x1647c0('0x3')](_0x12b6cb,_0x154b77)[_0x1647c0('0xf')](function(){const _0x10cd0b=_0x1647c0;logger[_0x10cd0b('0x14')]('Removed\x20column\x20%s\x20from\x20%s',_0x154b77,_0x12b6cb);})[_0x1647c0('0x1d')](function(_0x40e886){logger['info'](util['inspect'](_0x40e886,{'showHidden':![],'depth':null}));});});},Migration[_0x5c6a2a('0x12')][_0x5c6a2a('0xd')]=function(_0x2c4e73,_0x3f9591,_0x209c25){const _0x1bef2b=_0x5c6a2a,_0xeab8d1=this;this['sequence'][_0x1bef2b('0x5')](function(){const _0x3d649e=_0x1bef2b;return _0xeab8d1[_0x3d649e('0x8')][_0x3d649e('0xd')](_0x2c4e73,_0x3f9591,_0x209c25)['then'](function(){const _0x4a6ef9=_0x3d649e;logger[_0x4a6ef9('0x14')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3f9591,_0x209c25,_0x2c4e73);})['catch'](function(_0x1aa4bc){const _0x4a19a4=_0x3d649e;logger['info'](util[_0x4a19a4('0x7')](_0x1aa4bc,{'showHidden':![],'depth':null}));});});},Migration[_0x5c6a2a('0x12')][_0x5c6a2a('0x1c')]=function(_0x291577){const _0x42328f=_0x5c6a2a;this[_0x42328f('0xc')][_0x42328f('0x5')](function(){return _0x291577();});},module['exports']={'up':function(_0xbc49f7){return new Promise(function(_0x52b58e){const _0x432533=a1000_0x116b,_0x45df38=new Migration(_0xbc49f7);_0x45df38[_0x432533('0x1c')](_0x52b58e);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.18.js b/server/migrations/2.4.18.js index 936c3f4..52e6d91 100644 --- a/server/migrations/2.4.18.js +++ b/server/migrations/2.4.18.js @@ -1 +1 @@ -const a1001_0xb683=['renameColumn','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','util','Added\x20column\x20%s\x20to\x20%s','inspect','final','indexName','addColumn','removeIndex\x20%s\x20%s','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','Removed\x20column\x20%s\x20from\x20%s','migration','then','sequelize','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','enqueue','query','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','tail','finally','join','addIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','info','sequence','dropTable','exports','removeIndex','prototype','stringify','catch'];(function(_0x2b27e0,_0xb683d1){const _0x550fae=function(_0x59ae1c){while(--_0x59ae1c){_0x2b27e0['push'](_0x2b27e0['shift']());}};_0x550fae(++_0xb683d1);}(a1001_0xb683,0xb4));const a1001_0x550f=function(_0x2b27e0,_0xb683d1){_0x2b27e0=_0x2b27e0-0x0;let _0x550fae=a1001_0xb683[_0x2b27e0];return _0x550fae;};const _0x450523=a1001_0x550f;'use strict';const util=require(_0x450523('0x20')),logger=require(_0x450523('0x9'))(_0x450523('0x6')),Sequence=function(){};Sequence[_0x450523('0x1b')]['enqueue']=function(_0x59ae1c){const _0xe5bd26=_0x450523;this['tail']=this[_0xe5bd26('0x11')]?this[_0xe5bd26('0x11')][_0xe5bd26('0x12')](_0x59ae1c):_0x59ae1c();};const Migration=function(_0x26b111){const _0xc6ecab=_0x450523;this[_0xc6ecab('0xb')]=_0x26b111,this[_0xc6ecab('0x17')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x474e5a,_0x3e8e43,_0x4e414e){const _0x1d9bc1=_0x450523,_0x2845a1=this;this['sequence'][_0x1d9bc1('0xc')](function(){const _0x7d8f1=_0x1d9bc1;return _0x2845a1[_0x7d8f1('0xb')][_0x7d8f1('0x10')](_0x474e5a,_0x3e8e43,_0x4e414e)[_0x7d8f1('0x7')](function(){const _0x1b4e5c=_0x7d8f1;logger[_0x1b4e5c('0x16')](_0x1b4e5c('0xa'),_0x3e8e43,_0x474e5a);})['catch'](function(_0x2d7833){const _0x2c8ec4=_0x7d8f1;logger[_0x2c8ec4('0x16')](JSON[_0x2c8ec4('0x1c')](_0x2d7833));});});},Migration[_0x450523('0x1b')][_0x450523('0x2')]=function(_0x532231,_0x2cc8e4,_0x3b79dc){const _0x2ec7a4=_0x450523,_0x3ac6a6=this;this[_0x2ec7a4('0x17')][_0x2ec7a4('0xc')](function(){const _0x3d2d85=_0x2ec7a4;return _0x3ac6a6[_0x3d2d85('0xb')]['addColumn'](_0x532231,_0x2cc8e4,_0x3b79dc)[_0x3d2d85('0x7')](function(){const _0x570a86=_0x3d2d85;logger['info'](_0x570a86('0x21'),_0x2cc8e4,_0x532231);})[_0x3d2d85('0x1d')](function(_0x18ae07){const _0x544e84=_0x3d2d85;logger[_0x544e84('0x16')](JSON['stringify'](_0x18ae07));});});},Migration[_0x450523('0x1b')][_0x450523('0x18')]=function(_0x309b79){const _0x1c32d8=_0x450523,_0x5883c6=this;this['sequence'][_0x1c32d8('0xc')](function(){const _0x285d21=_0x1c32d8;return _0x5883c6['queryInterface'][_0x285d21('0x18')](_0x309b79,{'force':!![]})[_0x285d21('0x7')](function(){const _0xb73204=_0x285d21;logger[_0xb73204('0x16')]('table\x20dropped\x20%s',_0x309b79);})[_0x285d21('0x1d')](function(_0x925377){const _0x3cdf87=_0x285d21;logger[_0x3cdf87('0x16')](JSON['stringify'](_0x925377));});});},Migration[_0x450523('0x1b')][_0x450523('0x14')]=function(_0x5044ca,_0x132766,_0x1bb43d){const _0x49de58=_0x450523,_0x5bd085=this;this[_0x49de58('0x17')]['enqueue'](function(){const _0x1eb685=_0x49de58;return _0x5bd085[_0x1eb685('0xb')][_0x1eb685('0x14')](_0x5044ca,_0x132766,{'indexName':_0x1bb43d[_0x1eb685('0x1')],'indicesType':_0x1bb43d['indicesType']})['then'](function(){const _0x8d8855=_0x1eb685;logger[_0x8d8855('0x16')](_0x8d8855('0x15'),_0x5044ca,_0x132766[_0x8d8855('0x13')](','),_0x1bb43d[_0x8d8855('0x1')],_0x1bb43d['indicesType']);})['catch'](function(_0x414b14){const _0x27151a=_0x1eb685;logger[_0x27151a('0x16')](JSON['stringify'](_0x414b14));});});},Migration['prototype'][_0x450523('0x1a')]=function(_0x1c24a2,_0x140b23){const _0x1448ec=_0x450523,_0xfa4c3a=this;this['sequence'][_0x1448ec('0xc')](function(){const _0x420f77=_0x1448ec;return _0xfa4c3a[_0x420f77('0xb')]['removeIndex'](_0x1c24a2,_0x140b23)[_0x420f77('0x7')](function(){const _0x287d73=_0x420f77;logger[_0x287d73('0x16')](_0x287d73('0x3'),_0x1c24a2,_0x140b23);})[_0x420f77('0x1d')](function(_0x5cba2d){logger['info'](JSON['stringify'](_0x5cba2d));});});},Migration[_0x450523('0x1b')]['query']=function(_0x3f27f7){const _0x339806=_0x450523,_0x2aaeae=this;this[_0x339806('0x17')][_0x339806('0xc')](function(){const _0x37d204=_0x339806;return _0x2aaeae[_0x37d204('0xb')][_0x37d204('0x8')][_0x37d204('0xd')](_0x3f27f7)[_0x37d204('0x7')](function(){const _0x70ff34=_0x37d204;logger[_0x70ff34('0x16')]('query\x20%s',_0x3f27f7);})[_0x37d204('0x1d')](function(_0x4434d5){const _0x18f3c9=_0x37d204;logger[_0x18f3c9('0x16')](JSON[_0x18f3c9('0x1c')](_0x4434d5));});});},Migration[_0x450523('0x1b')]['removeColumn']=function(_0x26dd9c,_0xa13a2f){const _0x1a892d=_0x450523,_0x3b7d83=this;this[_0x1a892d('0x17')][_0x1a892d('0xc')](function(){const _0x1f1584=_0x1a892d;return _0x3b7d83[_0x1f1584('0xb')][_0x1f1584('0xe')](_0x26dd9c,_0xa13a2f)[_0x1f1584('0x7')](function(){const _0x5612d5=_0x1f1584;logger[_0x5612d5('0x16')](_0x5612d5('0x5'),_0xa13a2f,_0x26dd9c);})[_0x1f1584('0x1d')](function(_0x782046){const _0x305dea=_0x1f1584;logger[_0x305dea('0x16')](util[_0x305dea('0x22')](_0x782046,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x450523('0x1e')]=function(_0x54187e,_0x332628,_0x55e0f2){const _0x1c5eb9=_0x450523,_0x296a37=this;this[_0x1c5eb9('0x17')]['enqueue'](function(){const _0x3e062c=_0x1c5eb9;return _0x296a37[_0x3e062c('0xb')][_0x3e062c('0x1e')](_0x54187e,_0x332628,_0x55e0f2)['then'](function(){const _0x3f818f=_0x3e062c;logger[_0x3f818f('0x16')](_0x3f818f('0xf'),_0x332628,_0x55e0f2,_0x54187e);})[_0x3e062c('0x1d')](function(_0x4bd725){const _0x108cc7=_0x3e062c;logger[_0x108cc7('0x16')](util[_0x108cc7('0x22')](_0x4bd725,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x450523('0x0')]=function(_0x4dc087){const _0x41c43b=_0x450523;this[_0x41c43b('0x17')]['enqueue'](function(){return _0x4dc087();});},module[_0x450523('0x19')]={'up':function(_0x485637){return new Promise(function(_0x4a1951){const _0x2aa5a1=a1001_0x550f,_0x528fd5=new Migration(_0x485637);_0x528fd5[_0x2aa5a1('0xd')](_0x2aa5a1('0x1f')),_0x528fd5[_0x2aa5a1('0xd')](_0x2aa5a1('0x4')),_0x528fd5['final'](_0x4a1951);});},'down':function(){}}; \ No newline at end of file +const a1001_0x53a5=['changeColumn','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','then','dropTable','inspect','util','final','queryInterface','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','addColumn','query','catch','removeIndex\x20%s\x20%s','prototype','sequence','enqueue','tail','removeIndex','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','migration','indexName','stringify','info','../config/logger','Added\x20column\x20%s\x20to\x20%s','addIndex','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','sequelize','table\x20dropped\x20%s'];(function(_0x171043,_0x53a5a3){const _0x5d5b46=function(_0xbe7b38){while(--_0xbe7b38){_0x171043['push'](_0x171043['shift']());}};_0x5d5b46(++_0x53a5a3);}(a1001_0x53a5,0xa3));const a1001_0x5d5b=function(_0x171043,_0x53a5a3){_0x171043=_0x171043-0x0;let _0x5d5b46=a1001_0x53a5[_0x171043];return _0x5d5b46;};const _0x3883c3=a1001_0x5d5b;'use strict';const util=require(_0x3883c3('0xd')),logger=require(_0x3883c3('0x1'))(_0x3883c3('0x1f')),Sequence=function(){};Sequence[_0x3883c3('0x17')][_0x3883c3('0x19')]=function(_0xbe7b38){const _0x5c504f=_0x3883c3;this['tail']=this[_0x5c504f('0x1a')]?this[_0x5c504f('0x1a')]['finally'](_0xbe7b38):_0xbe7b38();};const Migration=function(_0x219a40){const _0x2ebef4=_0x3883c3;this['queryInterface']=_0x219a40,this[_0x2ebef4('0x18')]=new Sequence();};Migration[_0x3883c3('0x17')][_0x3883c3('0x7')]=function(_0x523d58,_0x567203,_0x22930c){const _0xfa868=_0x3883c3,_0xfc3fa0=this;this[_0xfa868('0x18')][_0xfa868('0x19')](function(){const _0x4f4860=_0xfa868;return _0xfc3fa0[_0x4f4860('0xf')][_0x4f4860('0x7')](_0x523d58,_0x567203,_0x22930c)[_0x4f4860('0xa')](function(){const _0x10a8d3=_0x4f4860;logger['info'](_0x10a8d3('0x9'),_0x567203,_0x523d58);})[_0x4f4860('0x15')](function(_0x1099e2){logger['info'](JSON['stringify'](_0x1099e2));});});},Migration[_0x3883c3('0x17')][_0x3883c3('0x13')]=function(_0x1e3ea1,_0x4a206f,_0x51e4ba){const _0x248db4=_0x3883c3,_0x4a6d48=this;this[_0x248db4('0x18')][_0x248db4('0x19')](function(){const _0x1528ef=_0x248db4;return _0x4a6d48[_0x1528ef('0xf')][_0x1528ef('0x13')](_0x1e3ea1,_0x4a206f,_0x51e4ba)[_0x1528ef('0xa')](function(){const _0x274ff9=_0x1528ef;logger[_0x274ff9('0x0')](_0x274ff9('0x2'),_0x4a206f,_0x1e3ea1);})[_0x1528ef('0x15')](function(_0x41f513){const _0x268d01=_0x1528ef;logger[_0x268d01('0x0')](JSON['stringify'](_0x41f513));});});},Migration['prototype'][_0x3883c3('0xb')]=function(_0x5944a2){const _0x5ba240=_0x3883c3,_0x11fc02=this;this[_0x5ba240('0x18')][_0x5ba240('0x19')](function(){const _0x3aff68=_0x5ba240;return _0x11fc02['queryInterface'][_0x3aff68('0xb')](_0x5944a2,{'force':!![]})[_0x3aff68('0xa')](function(){const _0x5c5311=_0x3aff68;logger[_0x5c5311('0x0')](_0x5c5311('0x6'),_0x5944a2);})[_0x3aff68('0x15')](function(_0x55f087){const _0x33ae22=_0x3aff68;logger['info'](JSON[_0x33ae22('0x21')](_0x55f087));});});},Migration[_0x3883c3('0x17')][_0x3883c3('0x3')]=function(_0x5b92c4,_0x1abd64,_0x32901c){const _0x309454=_0x3883c3,_0x27c645=this;this[_0x309454('0x18')][_0x309454('0x19')](function(){const _0x5134af=_0x309454;return _0x27c645[_0x5134af('0xf')]['addIndex'](_0x5b92c4,_0x1abd64,{'indexName':_0x32901c[_0x5134af('0x20')],'indicesType':_0x32901c[_0x5134af('0x8')]})['then'](function(){const _0x51c19d=_0x5134af;logger[_0x51c19d('0x0')](_0x51c19d('0x11'),_0x5b92c4,_0x1abd64['join'](','),_0x32901c[_0x51c19d('0x20')],_0x32901c[_0x51c19d('0x8')]);})['catch'](function(_0x4509d5){const _0x54c09a=_0x5134af;logger[_0x54c09a('0x0')](JSON[_0x54c09a('0x21')](_0x4509d5));});});},Migration[_0x3883c3('0x17')][_0x3883c3('0x1b')]=function(_0x3a4f60,_0x103a17){const _0x78531b=_0x3883c3,_0x232ea7=this;this[_0x78531b('0x18')][_0x78531b('0x19')](function(){const _0x22b66a=_0x78531b;return _0x232ea7['queryInterface'][_0x22b66a('0x1b')](_0x3a4f60,_0x103a17)['then'](function(){const _0x2ec424=_0x22b66a;logger[_0x2ec424('0x0')](_0x2ec424('0x16'),_0x3a4f60,_0x103a17);})['catch'](function(_0xbe7e12){const _0x2e988d=_0x22b66a;logger[_0x2e988d('0x0')](JSON[_0x2e988d('0x21')](_0xbe7e12));});});},Migration[_0x3883c3('0x17')][_0x3883c3('0x14')]=function(_0x21ba27){const _0x54dd30=_0x3883c3,_0x17c436=this;this['sequence'][_0x54dd30('0x19')](function(){const _0x397e97=_0x54dd30;return _0x17c436[_0x397e97('0xf')][_0x397e97('0x5')][_0x397e97('0x14')](_0x21ba27)['then'](function(){const _0x594f9a=_0x397e97;logger['info'](_0x594f9a('0x10'),_0x21ba27);})[_0x397e97('0x15')](function(_0x5a3340){const _0x475fda=_0x397e97;logger[_0x475fda('0x0')](JSON[_0x475fda('0x21')](_0x5a3340));});});},Migration['prototype'][_0x3883c3('0x1c')]=function(_0x831636,_0x1b64d2){const _0x333f2d=_0x3883c3,_0x188794=this;this[_0x333f2d('0x18')][_0x333f2d('0x19')](function(){const _0x2c59fd=_0x333f2d;return _0x188794[_0x2c59fd('0xf')][_0x2c59fd('0x1c')](_0x831636,_0x1b64d2)[_0x2c59fd('0xa')](function(){const _0x2904c4=_0x2c59fd;logger[_0x2904c4('0x0')]('Removed\x20column\x20%s\x20from\x20%s',_0x1b64d2,_0x831636);})[_0x2c59fd('0x15')](function(_0x461599){const _0x44fede=_0x2c59fd;logger[_0x44fede('0x0')](util['inspect'](_0x461599,{'showHidden':![],'depth':null}));});});},Migration[_0x3883c3('0x17')][_0x3883c3('0x12')]=function(_0x7f01d8,_0x443c3d,_0x5459e8){const _0x345f36=_0x3883c3,_0x5d271a=this;this[_0x345f36('0x18')][_0x345f36('0x19')](function(){const _0x4efae4=_0x345f36;return _0x5d271a['queryInterface'][_0x4efae4('0x12')](_0x7f01d8,_0x443c3d,_0x5459e8)[_0x4efae4('0xa')](function(){const _0x135276=_0x4efae4;logger['info'](_0x135276('0x1d'),_0x443c3d,_0x5459e8,_0x7f01d8);})[_0x4efae4('0x15')](function(_0x6d4b31){const _0x1d2f22=_0x4efae4;logger[_0x1d2f22('0x0')](util[_0x1d2f22('0xc')](_0x6d4b31,{'showHidden':![],'depth':null}));});});},Migration[_0x3883c3('0x17')][_0x3883c3('0xe')]=function(_0x4c9e8d){const _0x779404=_0x3883c3;this[_0x779404('0x18')]['enqueue'](function(){return _0x4c9e8d();});},module[_0x3883c3('0x1e')]={'up':function(_0x57224b){return new Promise(function(_0x5ea4b5){const _0xb50bee=a1001_0x5d5b,_0x1cc476=new Migration(_0x57224b);_0x1cc476[_0xb50bee('0x14')](_0xb50bee('0x4')),_0x1cc476[_0xb50bee('0x14')]('UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL'),_0x1cc476['final'](_0x5ea4b5);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.19.js b/server/migrations/2.4.19.js index 5d8f26f..a64de4b 100644 --- a/server/migrations/2.4.19.js +++ b/server/migrations/2.4.19.js @@ -1 +1 @@ -const a1002_0x4180=['prototype','indexName','contact_lead','INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27','stun','Removed\x20column\x20%s\x20from\x20%s','lead','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','contact','table\x20dropped\x20%s','password','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','int_zoho_configurations','addIndex\x20%s\x20%s\x20%s\x20[%s]','externip','ENUM','stringify','util','sequelize','addIndex','Contacts','queryInterface','moduleCreate','nothing','turn','sequence','tail','then','removeColumn','renameColumn','indicesType','type','enqueue','query','INSERT\x20INTO\x20network\x20(type,value,username,password,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27turn\x27,\x20turnaddr,\x20turnusername,\x20turnpassword,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20turnaddr<>\x27\x27','removeIndex\x20%s\x20%s','changeColumn','dropTable','info','username','addColumn','STRING','inspect','catch','final','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','query\x20%s','network','localnet'];(function(_0x37c645,_0x4180ac){const _0x30adc1=function(_0x1ba0cc){while(--_0x1ba0cc){_0x37c645['push'](_0x37c645['shift']());}};_0x30adc1(++_0x4180ac);}(a1002_0x4180,0xba));const a1002_0x30ad=function(_0x37c645,_0x4180ac){_0x37c645=_0x37c645-0x0;let _0x30adc1=a1002_0x4180[_0x37c645];return _0x30adc1;};const _0x5c4dcd=a1002_0x30ad;'use strict';const util=require(_0x5c4dcd('0x25')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x5c4dcd('0x12')]['enqueue']=function(_0x1ba0cc){const _0x3d4fb0=_0x5c4dcd;this[_0x3d4fb0('0x2e')]=this[_0x3d4fb0('0x2e')]?this[_0x3d4fb0('0x2e')][_0x3d4fb0('0x19')](_0x1ba0cc):_0x1ba0cc();};const Migration=function(_0x9ac658){const _0x4b3218=_0x5c4dcd;this[_0x4b3218('0x29')]=_0x9ac658,this[_0x4b3218('0x2d')]=new Sequence();};Migration['prototype'][_0x5c4dcd('0x5')]=function(_0xa99ecb,_0x318546,_0x43fbd7){const _0x2fee01=_0x5c4dcd,_0x499a7a=this;this[_0x2fee01('0x2d')][_0x2fee01('0x1')](function(){const _0x3504b3=_0x2fee01;return _0x499a7a['queryInterface'][_0x3504b3('0x5')](_0xa99ecb,_0x318546,_0x43fbd7)[_0x3504b3('0x2f')](function(){const _0x544a52=_0x3504b3;logger['info'](_0x544a52('0x1a'),_0x318546,_0xa99ecb);})[_0x3504b3('0xc')](function(_0x80dee6){const _0x50db25=_0x3504b3;logger[_0x50db25('0x7')](JSON[_0x50db25('0x24')](_0x80dee6));});});},Migration['prototype'][_0x5c4dcd('0x9')]=function(_0x418f37,_0xbadcfd,_0x52c12d){const _0x563b91=_0x5c4dcd,_0x42c7da=this;this['sequence'][_0x563b91('0x1')](function(){const _0x4c61ed=_0x563b91;return _0x42c7da[_0x4c61ed('0x29')][_0x4c61ed('0x9')](_0x418f37,_0xbadcfd,_0x52c12d)['then'](function(){const _0x367892=_0x4c61ed;logger[_0x367892('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0xbadcfd,_0x418f37);})[_0x4c61ed('0xc')](function(_0x533627){const _0x452955=_0x4c61ed;logger[_0x452955('0x7')](JSON[_0x452955('0x24')](_0x533627));});});},Migration[_0x5c4dcd('0x12')][_0x5c4dcd('0x6')]=function(_0x20fe2b){const _0x224e5f=_0x5c4dcd,_0x3326e9=this;this[_0x224e5f('0x2d')][_0x224e5f('0x1')](function(){const _0x2a621a=_0x224e5f;return _0x3326e9[_0x2a621a('0x29')][_0x2a621a('0x6')](_0x20fe2b,{'force':!![]})[_0x2a621a('0x2f')](function(){const _0x555cf7=_0x2a621a;logger[_0x555cf7('0x7')](_0x555cf7('0x1c'),_0x20fe2b);})[_0x2a621a('0xc')](function(_0x3564c5){const _0xc82ad1=_0x2a621a;logger[_0xc82ad1('0x7')](JSON[_0xc82ad1('0x24')](_0x3564c5));});});},Migration['prototype'][_0x5c4dcd('0x27')]=function(_0x12b708,_0x3de7db,_0x58fab0){const _0x3df060=_0x5c4dcd,_0x376fd1=this;this[_0x3df060('0x2d')][_0x3df060('0x1')](function(){const _0x1d4797=_0x3df060;return _0x376fd1[_0x1d4797('0x29')]['addIndex'](_0x12b708,_0x3de7db,{'indexName':_0x58fab0[_0x1d4797('0x13')],'indicesType':_0x58fab0[_0x1d4797('0x32')]})[_0x1d4797('0x2f')](function(){const _0x35f190=_0x1d4797;logger[_0x35f190('0x7')](_0x35f190('0x21'),_0x12b708,_0x3de7db['join'](','),_0x58fab0[_0x35f190('0x13')],_0x58fab0['indicesType']);})[_0x1d4797('0xc')](function(_0x4887cf){const _0x34d8ad=_0x1d4797;logger[_0x34d8ad('0x7')](JSON['stringify'](_0x4887cf));});});},Migration[_0x5c4dcd('0x12')]['removeIndex']=function(_0xe9cc56,_0x264bf6){const _0x56d481=_0x5c4dcd,_0x504c04=this;this[_0x56d481('0x2d')][_0x56d481('0x1')](function(){const _0x31f867=_0x56d481;return _0x504c04[_0x31f867('0x29')]['removeIndex'](_0xe9cc56,_0x264bf6)[_0x31f867('0x2f')](function(){const _0x1e0b71=_0x31f867;logger[_0x1e0b71('0x7')](_0x1e0b71('0x4'),_0xe9cc56,_0x264bf6);})[_0x31f867('0xc')](function(_0xa3f297){logger['info'](JSON['stringify'](_0xa3f297));});});},Migration[_0x5c4dcd('0x12')][_0x5c4dcd('0x2')]=function(_0x597dc2){const _0x1fd360=_0x5c4dcd,_0x300075=this;this['sequence'][_0x1fd360('0x1')](function(){const _0x3beb27=_0x1fd360;return _0x300075['queryInterface'][_0x3beb27('0x26')][_0x3beb27('0x2')](_0x597dc2)[_0x3beb27('0x2f')](function(){const _0x5f3428=_0x3beb27;logger[_0x5f3428('0x7')](_0x5f3428('0xf'),_0x597dc2);})[_0x3beb27('0xc')](function(_0x374ad1){const _0x3021f5=_0x3beb27;logger['info'](JSON[_0x3021f5('0x24')](_0x374ad1));});});},Migration[_0x5c4dcd('0x12')][_0x5c4dcd('0x30')]=function(_0x102f8d,_0x6c0c74){const _0x72a967=_0x5c4dcd,_0x17a227=this;this[_0x72a967('0x2d')]['enqueue'](function(){const _0x52a31c=_0x72a967;return _0x17a227[_0x52a31c('0x29')][_0x52a31c('0x30')](_0x102f8d,_0x6c0c74)[_0x52a31c('0x2f')](function(){const _0x1e9170=_0x52a31c;logger[_0x1e9170('0x7')](_0x1e9170('0x17'),_0x6c0c74,_0x102f8d);})[_0x52a31c('0xc')](function(_0x1e7aaf){const _0x1ce0a3=_0x52a31c;logger[_0x1ce0a3('0x7')](util[_0x1ce0a3('0xb')](_0x1e7aaf,{'showHidden':![],'depth':null}));});});},Migration[_0x5c4dcd('0x12')][_0x5c4dcd('0x31')]=function(_0x14425d,_0x49f470,_0x1b760b){const _0x10abfa=_0x5c4dcd,_0x36baa2=this;this[_0x10abfa('0x2d')][_0x10abfa('0x1')](function(){const _0x44a211=_0x10abfa;return _0x36baa2['queryInterface'][_0x44a211('0x31')](_0x14425d,_0x49f470,_0x1b760b)[_0x44a211('0x2f')](function(){const _0x230db1=_0x44a211;logger[_0x230db1('0x7')](_0x230db1('0x1e'),_0x49f470,_0x1b760b,_0x14425d);})['catch'](function(_0x3b00a4){const _0x38225a=_0x44a211;logger[_0x38225a('0x7')](util['inspect'](_0x3b00a4,{'showHidden':![],'depth':null}));});});},Migration[_0x5c4dcd('0x12')]['final']=function(_0x4495cb){const _0x58586e=_0x5c4dcd;this[_0x58586e('0x2d')]['enqueue'](function(){return _0x4495cb();});},module['exports']={'up':function(_0x416173,_0x24b747){return new Promise(function(_0x19b5c1){const _0x1a8009=a1002_0x30ad,_0x19e38f=new Migration(_0x416173);_0x19e38f[_0x1a8009('0x9')]('int_zoho_configurations','moduleSearch',{'type':_0x24b747[_0x1a8009('0x23')](_0x1a8009('0x14'),_0x1a8009('0x1b'),_0x1a8009('0x18')),'defaultValue':'contact_lead'}),_0x19e38f['changeColumn'](_0x1a8009('0x20'),_0x1a8009('0x2a'),{'type':_0x24b747['ENUM']('Leads',_0x1a8009('0x28'),_0x1a8009('0x2b'),_0x1a8009('0x1b'),_0x1a8009('0x18'))}),_0x19e38f[_0x1a8009('0x2')](_0x1a8009('0xe')),_0x19e38f[_0x1a8009('0x2')](_0x1a8009('0x1f')),_0x19e38f[_0x1a8009('0x5')](_0x1a8009('0x20'),_0x1a8009('0x2a'),{'type':_0x24b747[_0x1a8009('0x23')](_0x1a8009('0x2b'),_0x1a8009('0x1b'),_0x1a8009('0x18')),'defaultValue':_0x1a8009('0x18')}),_0x19e38f[_0x1a8009('0x9')](_0x1a8009('0x10'),_0x1a8009('0x8'),{'type':_0x24b747[_0x1a8009('0xa')]}),_0x19e38f[_0x1a8009('0x9')](_0x1a8009('0x10'),_0x1a8009('0x1d'),{'type':_0x24b747['STRING']}),_0x19e38f[_0x1a8009('0x5')](_0x1a8009('0x10'),_0x1a8009('0x0'),{'type':_0x24b747[_0x1a8009('0x23')](_0x1a8009('0x11'),_0x1a8009('0x22'),_0x1a8009('0x16'),_0x1a8009('0x2c'))}),_0x19e38f[_0x1a8009('0x2')](_0x1a8009('0x15')),_0x19e38f['query'](_0x1a8009('0x3')),_0x19e38f[_0x1a8009('0xd')](_0x19b5c1);});},'down':function(){}}; \ No newline at end of file +const a1002_0x5376=['../config/logger','queryInterface','localnet','then','sequelize','sequence','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','moduleCreate','nothing','lead','changeColumn','username','query','stringify','util','moduleSearch','contact_lead','removeIndex\x20%s\x20%s','ENUM','Contacts','INSERT\x20INTO\x20network\x20(type,value,username,password,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27turn\x27,\x20turnaddr,\x20turnusername,\x20turnpassword,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20turnaddr<>\x27\x27','externip','addColumn','table\x20dropped\x20%s','catch','INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','addIndex\x20%s\x20%s\x20%s\x20[%s]','addIndex','query\x20%s','migration','network','removeIndex','indicesType','STRING','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','enqueue','exports','join','tail','int_zoho_configurations','inspect','info','indexName','contact','renameColumn','Leads','Added\x20column\x20%s\x20to\x20%s'];(function(_0x255e55,_0x5376d5){const _0x318079=function(_0x35481d){while(--_0x35481d){_0x255e55['push'](_0x255e55['shift']());}};_0x318079(++_0x5376d5);}(a1002_0x5376,0x1ba));const a1002_0x3180=function(_0x255e55,_0x5376d5){_0x255e55=_0x255e55-0x0;let _0x318079=a1002_0x5376[_0x255e55];return _0x318079;};const _0x6d3cad=a1002_0x3180;'use strict';const util=require(_0x6d3cad('0x20')),logger=require(_0x6d3cad('0x11'))(_0x6d3cad('0x30')),Sequence=function(){};Sequence[_0x6d3cad('0x4')]['enqueue']=function(_0x35481d){const _0x560a3b=_0x6d3cad;this[_0x560a3b('0x8')]=this[_0x560a3b('0x8')]?this[_0x560a3b('0x8')]['finally'](_0x35481d):_0x35481d();};const Migration=function(_0x273f0b){const _0x52d886=_0x6d3cad;this[_0x52d886('0x12')]=_0x273f0b,this['sequence']=new Sequence();};Migration[_0x6d3cad('0x4')][_0x6d3cad('0x1c')]=function(_0x15d916,_0x14bff4,_0x1f13e4){const _0xe45da9=_0x6d3cad,_0x2c5a7d=this;this[_0xe45da9('0x16')]['enqueue'](function(){const _0x5406c7=_0xe45da9;return _0x2c5a7d[_0x5406c7('0x12')]['changeColumn'](_0x15d916,_0x14bff4,_0x1f13e4)[_0x5406c7('0x14')](function(){const _0x255a37=_0x5406c7;logger[_0x255a37('0xb')](_0x255a37('0x3'),_0x14bff4,_0x15d916);})[_0x5406c7('0x2a')](function(_0xdc2ca8){const _0x1b7722=_0x5406c7;logger['info'](JSON[_0x1b7722('0x1f')](_0xdc2ca8));});});},Migration[_0x6d3cad('0x4')][_0x6d3cad('0x28')]=function(_0x298f9f,_0x22425f,_0x40a05b){const _0x2abf6e=_0x6d3cad,_0x15c9f0=this;this[_0x2abf6e('0x16')][_0x2abf6e('0x5')](function(){const _0x3963c9=_0x2abf6e;return _0x15c9f0[_0x3963c9('0x12')][_0x3963c9('0x28')](_0x298f9f,_0x22425f,_0x40a05b)[_0x3963c9('0x14')](function(){const _0x19f27e=_0x3963c9;logger['info'](_0x19f27e('0x10'),_0x22425f,_0x298f9f);})['catch'](function(_0x17fdf0){const _0x318df4=_0x3963c9;logger[_0x318df4('0xb')](JSON[_0x318df4('0x1f')](_0x17fdf0));});});},Migration[_0x6d3cad('0x4')]['dropTable']=function(_0x4ef1df){const _0xd7a43c=_0x6d3cad,_0x314cc6=this;this['sequence'][_0xd7a43c('0x5')](function(){const _0x48b415=_0xd7a43c;return _0x314cc6[_0x48b415('0x12')]['dropTable'](_0x4ef1df,{'force':!![]})[_0x48b415('0x14')](function(){const _0x591513=_0x48b415;logger['info'](_0x591513('0x29'),_0x4ef1df);})['catch'](function(_0x10e3a0){const _0x4535f4=_0x48b415;logger['info'](JSON[_0x4535f4('0x1f')](_0x10e3a0));});});},Migration[_0x6d3cad('0x4')][_0x6d3cad('0x2e')]=function(_0x2fdab0,_0x1f394d,_0x29e8ec){const _0x235347=_0x6d3cad,_0x31aa3a=this;this[_0x235347('0x16')][_0x235347('0x5')](function(){const _0x2bae77=_0x235347;return _0x31aa3a[_0x2bae77('0x12')][_0x2bae77('0x2e')](_0x2fdab0,_0x1f394d,{'indexName':_0x29e8ec[_0x2bae77('0xc')],'indicesType':_0x29e8ec[_0x2bae77('0x0')]})[_0x2bae77('0x14')](function(){const _0x3bc9d7=_0x2bae77;logger[_0x3bc9d7('0xb')](_0x3bc9d7('0x2d'),_0x2fdab0,_0x1f394d[_0x3bc9d7('0x7')](','),_0x29e8ec[_0x3bc9d7('0xc')],_0x29e8ec['indicesType']);})['catch'](function(_0x53b945){const _0x3cd9cc=_0x2bae77;logger['info'](JSON[_0x3cd9cc('0x1f')](_0x53b945));});});},Migration[_0x6d3cad('0x4')][_0x6d3cad('0x32')]=function(_0x30f990,_0x43af69){const _0x41bdde=_0x6d3cad,_0x2433e6=this;this[_0x41bdde('0x16')]['enqueue'](function(){const _0x2b9376=_0x41bdde;return _0x2433e6['queryInterface']['removeIndex'](_0x30f990,_0x43af69)[_0x2b9376('0x14')](function(){const _0x39af0a=_0x2b9376;logger['info'](_0x39af0a('0x23'),_0x30f990,_0x43af69);})[_0x2b9376('0x2a')](function(_0x2020e2){const _0x4caa1d=_0x2b9376;logger[_0x4caa1d('0xb')](JSON[_0x4caa1d('0x1f')](_0x2020e2));});});},Migration[_0x6d3cad('0x4')][_0x6d3cad('0x1e')]=function(_0x47ae9c){const _0x3b31b8=_0x6d3cad,_0x7b7917=this;this['sequence'][_0x3b31b8('0x5')](function(){const _0x2c961f=_0x3b31b8;return _0x7b7917[_0x2c961f('0x12')][_0x2c961f('0x15')][_0x2c961f('0x1e')](_0x47ae9c)['then'](function(){const _0x2adf7a=_0x2c961f;logger['info'](_0x2adf7a('0x2f'),_0x47ae9c);})[_0x2c961f('0x2a')](function(_0xe11f7b){const _0x13f020=_0x2c961f;logger['info'](JSON[_0x13f020('0x1f')](_0xe11f7b));});});},Migration[_0x6d3cad('0x4')][_0x6d3cad('0x2')]=function(_0x58cf31,_0x52be3c){const _0x202756=_0x6d3cad,_0x2dd9dc=this;this['sequence'][_0x202756('0x5')](function(){const _0x3df881=_0x202756;return _0x2dd9dc[_0x3df881('0x12')]['removeColumn'](_0x58cf31,_0x52be3c)[_0x3df881('0x14')](function(){const _0x25fa92=_0x3df881;logger[_0x25fa92('0xb')]('Removed\x20column\x20%s\x20from\x20%s',_0x52be3c,_0x58cf31);})[_0x3df881('0x2a')](function(_0x362c7c){const _0x250724=_0x3df881;logger[_0x250724('0xb')](util[_0x250724('0xa')](_0x362c7c,{'showHidden':![],'depth':null}));});});},Migration[_0x6d3cad('0x4')]['renameColumn']=function(_0x1da1ff,_0x4def4b,_0x21b7b2){const _0x52a096=_0x6d3cad,_0xd38122=this;this[_0x52a096('0x16')]['enqueue'](function(){const _0x222f26=_0x52a096;return _0xd38122[_0x222f26('0x12')][_0x222f26('0xe')](_0x1da1ff,_0x4def4b,_0x21b7b2)[_0x222f26('0x14')](function(){const _0x1a65a6=_0x222f26;logger['info'](_0x1a65a6('0x18'),_0x4def4b,_0x21b7b2,_0x1da1ff);})[_0x222f26('0x2a')](function(_0x57dbee){const _0x45c6d8=_0x222f26;logger[_0x45c6d8('0xb')](util['inspect'](_0x57dbee,{'showHidden':![],'depth':null}));});});},Migration[_0x6d3cad('0x4')][_0x6d3cad('0x17')]=function(_0x1b35f5){const _0x20a935=_0x6d3cad;this[_0x20a935('0x16')][_0x20a935('0x5')](function(){return _0x1b35f5();});},module[_0x6d3cad('0x6')]={'up':function(_0x258120,_0x137b5f){return new Promise(function(_0x184f9b){const _0x9b4874=a1002_0x3180,_0x35e7f2=new Migration(_0x258120);_0x35e7f2[_0x9b4874('0x28')](_0x9b4874('0x9'),_0x9b4874('0x21'),{'type':_0x137b5f['ENUM']('contact_lead',_0x9b4874('0xd'),_0x9b4874('0x1b')),'defaultValue':_0x9b4874('0x22')}),_0x35e7f2[_0x9b4874('0x1c')](_0x9b4874('0x9'),_0x9b4874('0x19'),{'type':_0x137b5f[_0x9b4874('0x24')](_0x9b4874('0xf'),_0x9b4874('0x25'),_0x9b4874('0x1a'),_0x9b4874('0xd'),_0x9b4874('0x1b'))}),_0x35e7f2[_0x9b4874('0x1e')](_0x9b4874('0x2c')),_0x35e7f2[_0x9b4874('0x1e')]('UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27'),_0x35e7f2[_0x9b4874('0x1c')](_0x9b4874('0x9'),_0x9b4874('0x19'),{'type':_0x137b5f[_0x9b4874('0x24')](_0x9b4874('0x1a'),_0x9b4874('0xd'),'lead'),'defaultValue':_0x9b4874('0x1b')}),_0x35e7f2[_0x9b4874('0x28')](_0x9b4874('0x31'),_0x9b4874('0x1d'),{'type':_0x137b5f[_0x9b4874('0x1')]}),_0x35e7f2[_0x9b4874('0x28')](_0x9b4874('0x31'),'password',{'type':_0x137b5f['STRING']}),_0x35e7f2[_0x9b4874('0x1c')](_0x9b4874('0x31'),'type',{'type':_0x137b5f[_0x9b4874('0x24')](_0x9b4874('0x13'),_0x9b4874('0x27'),'stun','turn')}),_0x35e7f2['query'](_0x9b4874('0x2b')),_0x35e7f2[_0x9b4874('0x1e')](_0x9b4874('0x26')),_0x35e7f2['final'](_0x184f9b);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.2.js b/server/migrations/2.4.2.js index b8d7ee6..f7a0487 100644 --- a/server/migrations/2.4.2.js +++ b/server/migrations/2.4.2.js @@ -1 +1 @@ -const a1003_0x3ea2=['addIndex','removeIndex\x20%s\x20%s','queryInterface','indicesType','migration','exports','removeIndex','settings','final','then','query\x20%s','blocked','loginAttempts','sequelize','changeColumn','prototype','catch','indexName','INTEGER','sequence','util','enqueue','query','blockDuration','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','join','info','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','finally','addColumn','Added\x20column\x20%s\x20to\x20%s','inspect','users','allowedLoginAttempts','stringify','dropTable','DATE','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','removeColumn','table\x20dropped\x20%s','disabled','renameColumn','BOOLEAN'];(function(_0x1066e8,_0x3ea273){const _0x111197=function(_0x5e0d7a){while(--_0x5e0d7a){_0x1066e8['push'](_0x1066e8['shift']());}};_0x111197(++_0x3ea273);}(a1003_0x3ea2,0xf1));const a1003_0x1111=function(_0x1066e8,_0x3ea273){_0x1066e8=_0x1066e8-0x0;let _0x111197=a1003_0x3ea2[_0x1066e8];return _0x111197;};const _0x5d4b90=a1003_0x1111;'use strict';const util=require(_0x5d4b90('0x4')),logger=require(_0x5d4b90('0x17'))(_0x5d4b90('0x21')),Sequence=function(){};Sequence['prototype'][_0x5d4b90('0x5')]=function(_0x5e0d7a){const _0x13be6e=_0x5d4b90;this[_0x13be6e('0xc')]=this[_0x13be6e('0xc')]?this[_0x13be6e('0xc')][_0x13be6e('0xd')](_0x5e0d7a):_0x5e0d7a();};const Migration=function(_0x225708){const _0x3851fd=_0x5d4b90;this['queryInterface']=_0x225708,this[_0x3851fd('0x3')]=new Sequence();};Migration['prototype'][_0x5d4b90('0x2b')]=function(_0x1b40ec,_0x1f8e85,_0x446a52){const _0x49386f=_0x5d4b90,_0x37bbf9=this;this[_0x49386f('0x3')]['enqueue'](function(){const _0x3edf21=_0x49386f;return _0x37bbf9[_0x3edf21('0x1f')]['changeColumn'](_0x1b40ec,_0x1f8e85,_0x446a52)[_0x3edf21('0x26')](function(){const _0x68c639=_0x3edf21;logger['info'](_0x68c639('0xb'),_0x1f8e85,_0x1b40ec);})[_0x3edf21('0x0')](function(_0x3000f0){const _0x4e1f2b=_0x3edf21;logger['info'](JSON[_0x4e1f2b('0x13')](_0x3000f0));});});},Migration[_0x5d4b90('0x2c')]['addColumn']=function(_0x1c775b,_0x1f6c73,_0x5bb13e){const _0x4a6fad=_0x5d4b90,_0x5767db=this;this[_0x4a6fad('0x3')][_0x4a6fad('0x5')](function(){const _0x2c4dba=_0x4a6fad;return _0x5767db['queryInterface'][_0x2c4dba('0xe')](_0x1c775b,_0x1f6c73,_0x5bb13e)[_0x2c4dba('0x26')](function(){const _0xebca92=_0x2c4dba;logger['info'](_0xebca92('0xf'),_0x1f6c73,_0x1c775b);})[_0x2c4dba('0x0')](function(_0x2493e9){const _0x50482d=_0x2c4dba;logger['info'](JSON[_0x50482d('0x13')](_0x2493e9));});});},Migration['prototype'][_0x5d4b90('0x14')]=function(_0xb1afd4){const _0x1db42a=_0x5d4b90,_0x46045a=this;this[_0x1db42a('0x3')][_0x1db42a('0x5')](function(){const _0x516894=_0x1db42a;return _0x46045a[_0x516894('0x1f')]['dropTable'](_0xb1afd4,{'force':!![]})[_0x516894('0x26')](function(){const _0x35e111=_0x516894;logger[_0x35e111('0xa')](_0x35e111('0x19'),_0xb1afd4);})['catch'](function(_0x191b01){const _0x2c0c99=_0x516894;logger[_0x2c0c99('0xa')](JSON['stringify'](_0x191b01));});});},Migration[_0x5d4b90('0x2c')][_0x5d4b90('0x1d')]=function(_0x205769,_0x5b1873,_0x14fc8b){const _0x3d248f=_0x5d4b90,_0x4589c9=this;this[_0x3d248f('0x3')][_0x3d248f('0x5')](function(){const _0x2ba16c=_0x3d248f;return _0x4589c9[_0x2ba16c('0x1f')][_0x2ba16c('0x1d')](_0x205769,_0x5b1873,{'indexName':_0x14fc8b[_0x2ba16c('0x1')],'indicesType':_0x14fc8b[_0x2ba16c('0x20')]})[_0x2ba16c('0x26')](function(){const _0x3b2b9b=_0x2ba16c;logger[_0x3b2b9b('0xa')](_0x3b2b9b('0x16'),_0x205769,_0x5b1873[_0x3b2b9b('0x9')](','),_0x14fc8b[_0x3b2b9b('0x1')],_0x14fc8b[_0x3b2b9b('0x20')]);})[_0x2ba16c('0x0')](function(_0x8e755c){const _0x991a06=_0x2ba16c;logger[_0x991a06('0xa')](JSON[_0x991a06('0x13')](_0x8e755c));});});},Migration[_0x5d4b90('0x2c')][_0x5d4b90('0x23')]=function(_0x55f8ad,_0x2bb145){const _0x12234b=_0x5d4b90,_0x113842=this;this[_0x12234b('0x3')]['enqueue'](function(){const _0x11eaad=_0x12234b;return _0x113842['queryInterface'][_0x11eaad('0x23')](_0x55f8ad,_0x2bb145)['then'](function(){const _0x3a2fd6=_0x11eaad;logger[_0x3a2fd6('0xa')](_0x3a2fd6('0x1e'),_0x55f8ad,_0x2bb145);})[_0x11eaad('0x0')](function(_0x1bd677){const _0x1e5c0d=_0x11eaad;logger[_0x1e5c0d('0xa')](JSON[_0x1e5c0d('0x13')](_0x1bd677));});});},Migration[_0x5d4b90('0x2c')][_0x5d4b90('0x6')]=function(_0x1dfce4){const _0x588e5a=_0x5d4b90,_0x113731=this;this[_0x588e5a('0x3')][_0x588e5a('0x5')](function(){const _0x30a8ad=_0x588e5a;return _0x113731[_0x30a8ad('0x1f')][_0x30a8ad('0x2a')][_0x30a8ad('0x6')](_0x1dfce4)[_0x30a8ad('0x26')](function(){const _0x3f47b1=_0x30a8ad;logger[_0x3f47b1('0xa')](_0x3f47b1('0x27'),_0x1dfce4);})['catch'](function(_0x3f4583){const _0x3ecb63=_0x30a8ad;logger[_0x3ecb63('0xa')](JSON[_0x3ecb63('0x13')](_0x3f4583));});});},Migration[_0x5d4b90('0x2c')]['removeColumn']=function(_0x2f709d,_0x591b19){const _0x3d655c=_0x5d4b90,_0x528b50=this;this[_0x3d655c('0x3')]['enqueue'](function(){const _0x257db7=_0x3d655c;return _0x528b50['queryInterface'][_0x257db7('0x18')](_0x2f709d,_0x591b19)[_0x257db7('0x26')](function(){const _0x148b04=_0x257db7;logger[_0x148b04('0xa')]('Removed\x20column\x20%s\x20from\x20%s',_0x591b19,_0x2f709d);})[_0x257db7('0x0')](function(_0x1fa6a6){logger['info'](util['inspect'](_0x1fa6a6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5d4b90('0x1b')]=function(_0x2dfa95,_0x281094,_0x525027){const _0x4a6245=_0x5d4b90,_0x52f183=this;this[_0x4a6245('0x3')][_0x4a6245('0x5')](function(){const _0x5389b4=_0x4a6245;return _0x52f183['queryInterface'][_0x5389b4('0x1b')](_0x2dfa95,_0x281094,_0x525027)[_0x5389b4('0x26')](function(){const _0x353ce2=_0x5389b4;logger[_0x353ce2('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x281094,_0x525027,_0x2dfa95);})['catch'](function(_0x5a1660){const _0x2d145e=_0x5389b4;logger[_0x2d145e('0xa')](util[_0x2d145e('0x10')](_0x5a1660,{'showHidden':![],'depth':null}));});});},Migration[_0x5d4b90('0x2c')][_0x5d4b90('0x25')]=function(_0x5c509d){const _0xd29631=_0x5d4b90;this['sequence'][_0xd29631('0x5')](function(){return _0x5c509d();});},module[_0x5d4b90('0x22')]={'up':function(_0x6ecd88,_0x725631){return new Promise(function(_0x161223){const _0x4d64b2=a1003_0x1111,_0x50e930=new Migration(_0x6ecd88);_0x50e930[_0x4d64b2('0xe')]('settings',_0x4d64b2('0x12'),{'type':_0x725631[_0x4d64b2('0x2')],'defaultValue':0x5}),_0x50e930[_0x4d64b2('0xe')](_0x4d64b2('0x24'),_0x4d64b2('0x7'),{'type':_0x725631['INTEGER'],'defaultValue':0xa}),_0x50e930[_0x4d64b2('0x6')]('UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;'),_0x50e930[_0x4d64b2('0xe')]('users',_0x4d64b2('0x28'),{'type':_0x725631[_0x4d64b2('0x1c')],'defaultValue':![]}),_0x50e930[_0x4d64b2('0xe')]('users',_0x4d64b2('0x29'),{'type':_0x725631['INTEGER'],'defaultValue':0x0}),_0x50e930[_0x4d64b2('0xe')](_0x4d64b2('0x11'),'blockedAt',{'type':_0x725631[_0x4d64b2('0x15')],'defaultValue':null}),_0x50e930[_0x4d64b2('0xe')](_0x4d64b2('0x11'),_0x4d64b2('0x1a'),{'type':_0x725631[_0x4d64b2('0x1c')],'defaultValue':![]}),_0x50e930[_0x4d64b2('0x6')](_0x4d64b2('0x8')),_0x50e930[_0x4d64b2('0x25')](_0x161223);});},'down':function(){}}; \ No newline at end of file +const a1003_0x3689=['ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','catch','then','addColumn','dropTable','sequence','finally','migration','BOOLEAN','indicesType','removeIndex','enqueue','query','addIndex','query\x20%s','renameColumn','util','indexName','blockedAt','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','INTEGER','DATE','removeColumn','blocked','settings','Removed\x20column\x20%s\x20from\x20%s','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','tail','changeColumn','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','allowedLoginAttempts','../config/logger','final','prototype','queryInterface','users','inspect','Added\x20column\x20%s\x20to\x20%s','info','addIndex\x20%s\x20%s\x20%s\x20[%s]'];(function(_0x2a013f,_0x3689c3){const _0x4f39c9=function(_0x4dba80){while(--_0x4dba80){_0x2a013f['push'](_0x2a013f['shift']());}};_0x4f39c9(++_0x3689c3);}(a1003_0x3689,0xd0));const a1003_0x4f39=function(_0x2a013f,_0x3689c3){_0x2a013f=_0x2a013f-0x0;let _0x4f39c9=a1003_0x3689[_0x2a013f];return _0x4f39c9;};const _0x2a35c2=a1003_0x4f39;'use strict';const util=require(_0x2a35c2('0x12')),logger=require(_0x2a35c2('0x23'))(_0x2a35c2('0x9')),Sequence=function(){};Sequence[_0x2a35c2('0x25')][_0x2a35c2('0xd')]=function(_0x4dba80){const _0x570460=_0x2a35c2;this['tail']=this[_0x570460('0x1e')]?this['tail'][_0x570460('0x8')](_0x4dba80):_0x4dba80();};const Migration=function(_0x23600a){const _0x22dadc=_0x2a35c2;this[_0x22dadc('0x26')]=_0x23600a,this[_0x22dadc('0x7')]=new Sequence();};Migration[_0x2a35c2('0x25')][_0x2a35c2('0x1f')]=function(_0x32da10,_0x326cf3,_0x1b4f5a){const _0x34498f=_0x2a35c2,_0x53de8d=this;this['sequence'][_0x34498f('0xd')](function(){const _0x3eeea6=_0x34498f;return _0x53de8d['queryInterface'][_0x3eeea6('0x1f')](_0x32da10,_0x326cf3,_0x1b4f5a)[_0x3eeea6('0x4')](function(){const _0x17c9e4=_0x3eeea6;logger[_0x17c9e4('0x0')](_0x17c9e4('0x15'),_0x326cf3,_0x32da10);})[_0x3eeea6('0x3')](function(_0x583f2b){const _0x5d4736=_0x3eeea6;logger['info'](JSON[_0x5d4736('0x16')](_0x583f2b));});});},Migration['prototype'][_0x2a35c2('0x5')]=function(_0x3d7acc,_0x1e68ba,_0x49fab9){const _0x308f10=_0x2a35c2,_0x43513e=this;this[_0x308f10('0x7')][_0x308f10('0xd')](function(){const _0xe16ec3=_0x308f10;return _0x43513e[_0xe16ec3('0x26')][_0xe16ec3('0x5')](_0x3d7acc,_0x1e68ba,_0x49fab9)[_0xe16ec3('0x4')](function(){const _0x3b0cc2=_0xe16ec3;logger[_0x3b0cc2('0x0')](_0x3b0cc2('0x29'),_0x1e68ba,_0x3d7acc);})[_0xe16ec3('0x3')](function(_0x5b0a4c){logger['info'](JSON['stringify'](_0x5b0a4c));});});},Migration[_0x2a35c2('0x25')][_0x2a35c2('0x6')]=function(_0x3d2f60){const _0x87ae2=_0x2a35c2,_0x59e579=this;this[_0x87ae2('0x7')][_0x87ae2('0xd')](function(){const _0x36cd50=_0x87ae2;return _0x59e579[_0x36cd50('0x26')]['dropTable'](_0x3d2f60,{'force':!![]})[_0x36cd50('0x4')](function(){const _0x4ada8d=_0x36cd50;logger['info'](_0x4ada8d('0x20'),_0x3d2f60);})[_0x36cd50('0x3')](function(_0x580d16){const _0x47cb09=_0x36cd50;logger[_0x47cb09('0x0')](JSON[_0x47cb09('0x16')](_0x580d16));});});},Migration['prototype'][_0x2a35c2('0xf')]=function(_0x310926,_0x30bfc2,_0x56c1a7){const _0x3f4d32=_0x2a35c2,_0x5d58da=this;this[_0x3f4d32('0x7')][_0x3f4d32('0xd')](function(){const _0x1a1231=_0x3f4d32;return _0x5d58da[_0x1a1231('0x26')][_0x1a1231('0xf')](_0x310926,_0x30bfc2,{'indexName':_0x56c1a7['indexName'],'indicesType':_0x56c1a7[_0x1a1231('0xb')]})[_0x1a1231('0x4')](function(){const _0x37f11b=_0x1a1231;logger[_0x37f11b('0x0')](_0x37f11b('0x1'),_0x310926,_0x30bfc2['join'](','),_0x56c1a7[_0x37f11b('0x13')],_0x56c1a7[_0x37f11b('0xb')]);})[_0x1a1231('0x3')](function(_0x52ccfd){const _0x532a1e=_0x1a1231;logger[_0x532a1e('0x0')](JSON[_0x532a1e('0x16')](_0x52ccfd));});});},Migration[_0x2a35c2('0x25')][_0x2a35c2('0xc')]=function(_0x512eb6,_0xae2c4){const _0x3e3964=this;this['sequence']['enqueue'](function(){const _0x41db45=a1003_0x4f39;return _0x3e3964[_0x41db45('0x26')]['removeIndex'](_0x512eb6,_0xae2c4)['then'](function(){const _0x168c85=_0x41db45;logger[_0x168c85('0x0')](_0x168c85('0x21'),_0x512eb6,_0xae2c4);})['catch'](function(_0x4aaa0e){const _0x119541=_0x41db45;logger[_0x119541('0x0')](JSON[_0x119541('0x16')](_0x4aaa0e));});});},Migration[_0x2a35c2('0x25')]['query']=function(_0x3c4b75){const _0xcfc2a=this;this['sequence']['enqueue'](function(){const _0x182f7f=a1003_0x4f39;return _0xcfc2a['queryInterface']['sequelize']['query'](_0x3c4b75)[_0x182f7f('0x4')](function(){const _0x9f06a5=_0x182f7f;logger[_0x9f06a5('0x0')](_0x9f06a5('0x10'),_0x3c4b75);})[_0x182f7f('0x3')](function(_0xa0920e){const _0x9f92b4=_0x182f7f;logger[_0x9f92b4('0x0')](JSON[_0x9f92b4('0x16')](_0xa0920e));});});},Migration[_0x2a35c2('0x25')][_0x2a35c2('0x19')]=function(_0x9cf5a8,_0x6a47c4){const _0x7de5bb=_0x2a35c2,_0x5d3ea8=this;this[_0x7de5bb('0x7')][_0x7de5bb('0xd')](function(){const _0x105efb=_0x7de5bb;return _0x5d3ea8[_0x105efb('0x26')][_0x105efb('0x19')](_0x9cf5a8,_0x6a47c4)[_0x105efb('0x4')](function(){const _0x39a464=_0x105efb;logger[_0x39a464('0x0')](_0x39a464('0x1c'),_0x6a47c4,_0x9cf5a8);})['catch'](function(_0x29dd2c){const _0xba8d9f=_0x105efb;logger[_0xba8d9f('0x0')](util[_0xba8d9f('0x28')](_0x29dd2c,{'showHidden':![],'depth':null}));});});},Migration[_0x2a35c2('0x25')][_0x2a35c2('0x11')]=function(_0x34b3ec,_0x157c5a,_0x2ae206){const _0xdf8603=_0x2a35c2,_0x29d655=this;this[_0xdf8603('0x7')][_0xdf8603('0xd')](function(){const _0x582fc5=_0xdf8603;return _0x29d655['queryInterface'][_0x582fc5('0x11')](_0x34b3ec,_0x157c5a,_0x2ae206)[_0x582fc5('0x4')](function(){const _0xad1ea7=_0x582fc5;logger[_0xad1ea7('0x0')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x157c5a,_0x2ae206,_0x34b3ec);})['catch'](function(_0x1e1521){const _0x26807e=_0x582fc5;logger[_0x26807e('0x0')](util[_0x26807e('0x28')](_0x1e1521,{'showHidden':![],'depth':null}));});});},Migration[_0x2a35c2('0x25')][_0x2a35c2('0x24')]=function(_0x5aed57){const _0x415a92=_0x2a35c2;this['sequence'][_0x415a92('0xd')](function(){return _0x5aed57();});},module['exports']={'up':function(_0x1a52a9,_0x26ab16){return new Promise(function(_0x242405){const _0x1e5cc2=a1003_0x4f39,_0x3f470d=new Migration(_0x1a52a9);_0x3f470d[_0x1e5cc2('0x5')](_0x1e5cc2('0x1b'),_0x1e5cc2('0x22'),{'type':_0x26ab16[_0x1e5cc2('0x17')],'defaultValue':0x5}),_0x3f470d[_0x1e5cc2('0x5')](_0x1e5cc2('0x1b'),'blockDuration',{'type':_0x26ab16[_0x1e5cc2('0x17')],'defaultValue':0xa}),_0x3f470d[_0x1e5cc2('0xe')](_0x1e5cc2('0x1d')),_0x3f470d[_0x1e5cc2('0x5')](_0x1e5cc2('0x27'),_0x1e5cc2('0x1a'),{'type':_0x26ab16[_0x1e5cc2('0xa')],'defaultValue':![]}),_0x3f470d[_0x1e5cc2('0x5')](_0x1e5cc2('0x27'),'loginAttempts',{'type':_0x26ab16[_0x1e5cc2('0x17')],'defaultValue':0x0}),_0x3f470d['addColumn'](_0x1e5cc2('0x27'),_0x1e5cc2('0x14'),{'type':_0x26ab16[_0x1e5cc2('0x18')],'defaultValue':null}),_0x3f470d[_0x1e5cc2('0x5')](_0x1e5cc2('0x27'),'disabled',{'type':_0x26ab16[_0x1e5cc2('0xa')],'defaultValue':![]}),_0x3f470d[_0x1e5cc2('0xe')](_0x1e5cc2('0x2')),_0x3f470d['final'](_0x242405);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.20.js b/server/migrations/2.4.20.js index ba4feb8..967f04a 100644 --- a/server/migrations/2.4.20.js +++ b/server/migrations/2.4.20.js @@ -1 +1 @@ -const a1004_0x3638=['sequelize','then','catch','dropTable','migration','final','query\x20%s','inspect','googleSsoEnabled','addIndex','Removed\x20column\x20%s\x20from\x20%s','removeIndex','indexName','join','finally','UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201','removeColumn','addColumn','prototype','settings','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','tail','queryInterface','exports','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','indicesType','BOOLEAN','util','query','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','sequence','enqueue'];(function(_0x3c4f27,_0x3638c2){const _0x33141f=function(_0x4358d6){while(--_0x4358d6){_0x3c4f27['push'](_0x3c4f27['shift']());}};_0x33141f(++_0x3638c2);}(a1004_0x3638,0xfc));const a1004_0x3314=function(_0x3c4f27,_0x3638c2){_0x3c4f27=_0x3c4f27-0x0;let _0x33141f=a1004_0x3638[_0x3c4f27];return _0x33141f;};const _0x513d24=a1004_0x3314;'use strict';const util=require(_0x513d24('0x0')),logger=require('../config/logger')(_0x513d24('0xb')),Sequence=function(){};Sequence[_0x513d24('0x19')][_0x513d24('0x6')]=function(_0x4358d6){const _0x36e36a=_0x513d24;this[_0x36e36a('0x1e')]=this[_0x36e36a('0x1e')]?this[_0x36e36a('0x1e')][_0x36e36a('0x15')](_0x4358d6):_0x4358d6();};const Migration=function(_0x6827b){const _0x4ff48a=_0x513d24;this[_0x4ff48a('0x1f')]=_0x6827b,this[_0x4ff48a('0x5')]=new Sequence();};Migration[_0x513d24('0x19')][_0x513d24('0x1b')]=function(_0x3b7ae3,_0x31caa1,_0x449679){const _0x471dfd=_0x513d24,_0x2414aa=this;this[_0x471dfd('0x5')]['enqueue'](function(){const _0x399bcc=_0x471dfd;return _0x2414aa['queryInterface'][_0x399bcc('0x1b')](_0x3b7ae3,_0x31caa1,_0x449679)['then'](function(){const _0x1b2e5a=_0x399bcc;logger[_0x1b2e5a('0x2')](_0x1b2e5a('0x22'),_0x31caa1,_0x3b7ae3);})['catch'](function(_0x5c59fc){const _0xd4d107=_0x399bcc;logger[_0xd4d107('0x2')](JSON[_0xd4d107('0x1d')](_0x5c59fc));});});},Migration['prototype']['addColumn']=function(_0x58c96c,_0x2cd10f,_0x35738c){const _0x24abad=_0x513d24,_0x2e0d3c=this;this[_0x24abad('0x5')][_0x24abad('0x6')](function(){const _0x58a552=_0x24abad;return _0x2e0d3c[_0x58a552('0x1f')][_0x58a552('0x18')](_0x58c96c,_0x2cd10f,_0x35738c)[_0x58a552('0x8')](function(){const _0xc67a58=_0x58a552;logger[_0xc67a58('0x2')]('Added\x20column\x20%s\x20to\x20%s',_0x2cd10f,_0x58c96c);})[_0x58a552('0x9')](function(_0x36cbf7){const _0x2805e2=_0x58a552;logger['info'](JSON[_0x2805e2('0x1d')](_0x36cbf7));});});},Migration[_0x513d24('0x19')][_0x513d24('0xa')]=function(_0x29fe75){const _0x42b45d=_0x513d24,_0xeb01a5=this;this[_0x42b45d('0x5')]['enqueue'](function(){const _0x12556f=_0x42b45d;return _0xeb01a5['queryInterface'][_0x12556f('0xa')](_0x29fe75,{'force':!![]})[_0x12556f('0x8')](function(){const _0x3bb41=_0x12556f;logger[_0x3bb41('0x2')]('table\x20dropped\x20%s',_0x29fe75);})[_0x12556f('0x9')](function(_0x393c8a){const _0x41cd2c=_0x12556f;logger[_0x41cd2c('0x2')](JSON[_0x41cd2c('0x1d')](_0x393c8a));});});},Migration[_0x513d24('0x19')][_0x513d24('0x10')]=function(_0x3c65df,_0x203b32,_0x35ce7){const _0x10a3d6=_0x513d24,_0x433074=this;this[_0x10a3d6('0x5')][_0x10a3d6('0x6')](function(){const _0x474e01=_0x10a3d6;return _0x433074[_0x474e01('0x1f')][_0x474e01('0x10')](_0x3c65df,_0x203b32,{'indexName':_0x35ce7[_0x474e01('0x13')],'indicesType':_0x35ce7[_0x474e01('0x23')]})[_0x474e01('0x8')](function(){const _0x55c378=_0x474e01;logger[_0x55c378('0x2')](_0x55c378('0x1c'),_0x3c65df,_0x203b32[_0x55c378('0x14')](','),_0x35ce7[_0x55c378('0x13')],_0x35ce7['indicesType']);})[_0x474e01('0x9')](function(_0x5f99bb){const _0x12dc31=_0x474e01;logger[_0x12dc31('0x2')](JSON['stringify'](_0x5f99bb));});});},Migration[_0x513d24('0x19')]['removeIndex']=function(_0x1fc474,_0x3a22ca){const _0x1fb73a=this;this['sequence']['enqueue'](function(){const _0x4fbba0=a1004_0x3314;return _0x1fb73a[_0x4fbba0('0x1f')][_0x4fbba0('0x12')](_0x1fc474,_0x3a22ca)[_0x4fbba0('0x8')](function(){const _0x8b1bba=_0x4fbba0;logger[_0x8b1bba('0x2')](_0x8b1bba('0x4'),_0x1fc474,_0x3a22ca);})[_0x4fbba0('0x9')](function(_0xed07df){const _0x53e795=_0x4fbba0;logger[_0x53e795('0x2')](JSON[_0x53e795('0x1d')](_0xed07df));});});},Migration[_0x513d24('0x19')]['query']=function(_0x385a1b){const _0x443dcf=_0x513d24,_0x3cbad0=this;this[_0x443dcf('0x5')]['enqueue'](function(){const _0x3233f4=_0x443dcf;return _0x3cbad0[_0x3233f4('0x1f')][_0x3233f4('0x7')][_0x3233f4('0x1')](_0x385a1b)['then'](function(){const _0x5a149c=_0x3233f4;logger[_0x5a149c('0x2')](_0x5a149c('0xd'),_0x385a1b);})[_0x3233f4('0x9')](function(_0x49a80a){const _0x59ccc=_0x3233f4;logger[_0x59ccc('0x2')](JSON[_0x59ccc('0x1d')](_0x49a80a));});});},Migration[_0x513d24('0x19')][_0x513d24('0x17')]=function(_0x143efc,_0x4046bb){const _0x15e68d=_0x513d24,_0x5d6b5f=this;this['sequence'][_0x15e68d('0x6')](function(){const _0x165a65=_0x15e68d;return _0x5d6b5f[_0x165a65('0x1f')][_0x165a65('0x17')](_0x143efc,_0x4046bb)['then'](function(){const _0x343e77=_0x165a65;logger[_0x343e77('0x2')](_0x343e77('0x11'),_0x4046bb,_0x143efc);})[_0x165a65('0x9')](function(_0x1fdf1f){const _0x48448a=_0x165a65;logger[_0x48448a('0x2')](util[_0x48448a('0xe')](_0x1fdf1f,{'showHidden':![],'depth':null}));});});},Migration[_0x513d24('0x19')][_0x513d24('0x21')]=function(_0x4ac219,_0xbc4fa1,_0x59c5a7){const _0x56abda=_0x513d24,_0x2693dc=this;this[_0x56abda('0x5')][_0x56abda('0x6')](function(){const _0xd68a86=_0x56abda;return _0x2693dc[_0xd68a86('0x1f')][_0xd68a86('0x21')](_0x4ac219,_0xbc4fa1,_0x59c5a7)[_0xd68a86('0x8')](function(){const _0x100800=_0xd68a86;logger[_0x100800('0x2')](_0x100800('0x3'),_0xbc4fa1,_0x59c5a7,_0x4ac219);})[_0xd68a86('0x9')](function(_0x462c89){const _0x540678=_0xd68a86;logger['info'](util[_0x540678('0xe')](_0x462c89,{'showHidden':![],'depth':null}));});});},Migration[_0x513d24('0x19')][_0x513d24('0xc')]=function(_0x9b0915){this['sequence']['enqueue'](function(){return _0x9b0915();});},module[_0x513d24('0x20')]={'up':function(_0x4d457f,_0x22b5fb){return new Promise(function(_0x4981d0){const _0x1ba7d4=a1004_0x3314,_0x1b40e0=new Migration(_0x4d457f);_0x1b40e0[_0x1ba7d4('0x18')](_0x1ba7d4('0x1a'),_0x1ba7d4('0xf'),{'type':_0x22b5fb[_0x1ba7d4('0x24')],'defaultValue':![]}),_0x1b40e0[_0x1ba7d4('0x1')](_0x1ba7d4('0x16')),_0x1b40e0[_0x1ba7d4('0xc')](_0x4981d0);});},'down':function(){}}; \ No newline at end of file +const a1004_0x18e5=['query','finally','sequelize','BOOLEAN','indicesType','catch','Added\x20column\x20%s\x20to\x20%s','join','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','removeColumn','Removed\x20column\x20%s\x20from\x20%s','stringify','googleSsoEnabled','then','final','changeColumn','removeIndex','addIndex','removeIndex\x20%s\x20%s','info','table\x20dropped\x20%s','exports','query\x20%s','sequence','indexName','tail','renameColumn','queryInterface','enqueue','prototype','util','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x4f7b17,_0x18e53f){const _0x4f85e3=function(_0x3c6327){while(--_0x3c6327){_0x4f7b17['push'](_0x4f7b17['shift']());}};_0x4f85e3(++_0x18e53f);}(a1004_0x18e5,0xb1));const a1004_0x4f85=function(_0x4f7b17,_0x18e53f){_0x4f7b17=_0x4f7b17-0x0;let _0x4f85e3=a1004_0x18e5[_0x4f7b17];return _0x4f85e3;};const _0x10aa3f=a1004_0x4f85;'use strict';const util=require(_0x10aa3f('0x1e')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x10aa3f('0x1d')][_0x10aa3f('0x1c')]=function(_0x3c6327){const _0x9bdc15=_0x10aa3f;this['tail']=this[_0x9bdc15('0x19')]?this[_0x9bdc15('0x19')][_0x9bdc15('0x22')](_0x3c6327):_0x3c6327();};const Migration=function(_0x5815de){const _0x308afe=_0x10aa3f;this[_0x308afe('0x1b')]=_0x5815de,this['sequence']=new Sequence();};Migration[_0x10aa3f('0x1d')]['changeColumn']=function(_0x6c3dcc,_0x395952,_0x58fc13){const _0x388b9f=_0x10aa3f,_0x5df704=this;this[_0x388b9f('0x17')][_0x388b9f('0x1c')](function(){const _0x7ebf1d=_0x388b9f;return _0x5df704[_0x7ebf1d('0x1b')][_0x7ebf1d('0xf')](_0x6c3dcc,_0x395952,_0x58fc13)['then'](function(){const _0x1c5c09=_0x7ebf1d;logger[_0x1c5c09('0x13')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x395952,_0x6c3dcc);})[_0x7ebf1d('0x3')](function(_0x337907){const _0x1f4d49=_0x7ebf1d;logger['info'](JSON[_0x1f4d49('0xb')](_0x337907));});});},Migration['prototype'][_0x10aa3f('0x1f')]=function(_0x3c2619,_0x3b8c2a,_0x2d6088){const _0x2aecfd=_0x10aa3f,_0x3f14da=this;this[_0x2aecfd('0x17')][_0x2aecfd('0x1c')](function(){const _0x1cab18=_0x2aecfd;return _0x3f14da[_0x1cab18('0x1b')][_0x1cab18('0x1f')](_0x3c2619,_0x3b8c2a,_0x2d6088)[_0x1cab18('0xd')](function(){const _0x494166=_0x1cab18;logger['info'](_0x494166('0x4'),_0x3b8c2a,_0x3c2619);})[_0x1cab18('0x3')](function(_0x5bdf4e){const _0x6e00c=_0x1cab18;logger[_0x6e00c('0x13')](JSON[_0x6e00c('0xb')](_0x5bdf4e));});});},Migration['prototype'][_0x10aa3f('0x8')]=function(_0x7dc8db){const _0x5cadcc=_0x10aa3f,_0x8ee8bd=this;this[_0x5cadcc('0x17')][_0x5cadcc('0x1c')](function(){const _0x1faafb=_0x5cadcc;return _0x8ee8bd[_0x1faafb('0x1b')][_0x1faafb('0x8')](_0x7dc8db,{'force':!![]})[_0x1faafb('0xd')](function(){const _0x553a10=_0x1faafb;logger['info'](_0x553a10('0x14'),_0x7dc8db);})[_0x1faafb('0x3')](function(_0x1e937f){const _0x7ce50d=_0x1faafb;logger[_0x7ce50d('0x13')](JSON[_0x7ce50d('0xb')](_0x1e937f));});});},Migration['prototype'][_0x10aa3f('0x11')]=function(_0x55e886,_0x53f5d3,_0x2057bb){const _0x530cbc=_0x10aa3f,_0x5be48e=this;this[_0x530cbc('0x17')][_0x530cbc('0x1c')](function(){const _0x4bb2f0=_0x530cbc;return _0x5be48e['queryInterface'][_0x4bb2f0('0x11')](_0x55e886,_0x53f5d3,{'indexName':_0x2057bb[_0x4bb2f0('0x18')],'indicesType':_0x2057bb[_0x4bb2f0('0x2')]})['then'](function(){const _0x16b197=_0x4bb2f0;logger['info'](_0x16b197('0x7'),_0x55e886,_0x53f5d3[_0x16b197('0x5')](','),_0x2057bb['indexName'],_0x2057bb[_0x16b197('0x2')]);})[_0x4bb2f0('0x3')](function(_0x2a8959){const _0x2edeff=_0x4bb2f0;logger[_0x2edeff('0x13')](JSON[_0x2edeff('0xb')](_0x2a8959));});});},Migration[_0x10aa3f('0x1d')][_0x10aa3f('0x10')]=function(_0x7a5060,_0x3294fa){const _0x278dd6=_0x10aa3f,_0x40d77a=this;this[_0x278dd6('0x17')][_0x278dd6('0x1c')](function(){const _0x1a76e2=_0x278dd6;return _0x40d77a['queryInterface'][_0x1a76e2('0x10')](_0x7a5060,_0x3294fa)[_0x1a76e2('0xd')](function(){const _0x4bdde=_0x1a76e2;logger['info'](_0x4bdde('0x12'),_0x7a5060,_0x3294fa);})['catch'](function(_0x36a505){logger['info'](JSON['stringify'](_0x36a505));});});},Migration[_0x10aa3f('0x1d')][_0x10aa3f('0x21')]=function(_0x58d70c){const _0x1320dd=_0x10aa3f,_0x2dadb6=this;this[_0x1320dd('0x17')][_0x1320dd('0x1c')](function(){const _0x31f50e=_0x1320dd;return _0x2dadb6[_0x31f50e('0x1b')][_0x31f50e('0x0')]['query'](_0x58d70c)[_0x31f50e('0xd')](function(){const _0xc1040a=_0x31f50e;logger[_0xc1040a('0x13')](_0xc1040a('0x16'),_0x58d70c);})['catch'](function(_0x56f8a5){const _0xaaba6e=_0x31f50e;logger['info'](JSON[_0xaaba6e('0xb')](_0x56f8a5));});});},Migration['prototype'][_0x10aa3f('0x9')]=function(_0x2ed5dc,_0x56eefb){const _0x484cf5=_0x10aa3f,_0x856b18=this;this['sequence'][_0x484cf5('0x1c')](function(){const _0x55fe72=_0x484cf5;return _0x856b18['queryInterface'][_0x55fe72('0x9')](_0x2ed5dc,_0x56eefb)[_0x55fe72('0xd')](function(){const _0x398925=_0x55fe72;logger[_0x398925('0x13')](_0x398925('0xa'),_0x56eefb,_0x2ed5dc);})[_0x55fe72('0x3')](function(_0x765f1f){const _0x15c780=_0x55fe72;logger[_0x15c780('0x13')](util['inspect'](_0x765f1f,{'showHidden':![],'depth':null}));});});},Migration[_0x10aa3f('0x1d')][_0x10aa3f('0x1a')]=function(_0x30e45e,_0x2c1a80,_0x22b719){const _0x8f7bbd=_0x10aa3f,_0x15705b=this;this[_0x8f7bbd('0x17')][_0x8f7bbd('0x1c')](function(){const _0x39a99c=_0x8f7bbd;return _0x15705b[_0x39a99c('0x1b')][_0x39a99c('0x1a')](_0x30e45e,_0x2c1a80,_0x22b719)['then'](function(){const _0x373db7=_0x39a99c;logger['info'](_0x373db7('0x20'),_0x2c1a80,_0x22b719,_0x30e45e);})['catch'](function(_0x566db2){const _0x345acc=_0x39a99c;logger[_0x345acc('0x13')](util[_0x345acc('0x6')](_0x566db2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x10aa3f('0xe')]=function(_0x14faa2){const _0x1b76a8=_0x10aa3f;this[_0x1b76a8('0x17')][_0x1b76a8('0x1c')](function(){return _0x14faa2();});},module[_0x10aa3f('0x15')]={'up':function(_0x10a602,_0x2b2191){return new Promise(function(_0x562314){const _0x102831=a1004_0x4f85,_0x35a69e=new Migration(_0x10a602);_0x35a69e[_0x102831('0x1f')]('settings',_0x102831('0xc'),{'type':_0x2b2191[_0x102831('0x1')],'defaultValue':![]}),_0x35a69e['query']('UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201'),_0x35a69e['final'](_0x562314);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.21.js b/server/migrations/2.4.21.js index a306bdd..9bf5eff 100644 --- a/server/migrations/2.4.21.js +++ b/server/migrations/2.4.21.js @@ -1 +1 @@ -const a1005_0x85cf=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','final','addColumn','catch','inspect','removeIndex','sequence','sequelize','indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','addIndex','query\x20%s','dropTable','queryInterface','indexName','enqueue','query','renameColumn','util','then','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','stringify','changeColumn','tail','info'];(function(_0x5c4cb2,_0x85cfaf){const _0x1ef3b1=function(_0x275ffc){while(--_0x275ffc){_0x5c4cb2['push'](_0x5c4cb2['shift']());}};_0x1ef3b1(++_0x85cfaf);}(a1005_0x85cf,0x161));const a1005_0x1ef3=function(_0x5c4cb2,_0x85cfaf){_0x5c4cb2=_0x5c4cb2-0x0;let _0x1ef3b1=a1005_0x85cf[_0x5c4cb2];return _0x1ef3b1;};const _0x3f53f3=a1005_0x1ef3;'use strict';const util=require(_0x3f53f3('0x11')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x3f53f3('0x14')]['enqueue']=function(_0x275ffc){const _0x42671b=_0x3f53f3;this['tail']=this[_0x42671b('0x17')]?this['tail']['finally'](_0x275ffc):_0x275ffc();};const Migration=function(_0x47b6dd){const _0x3cb086=_0x3f53f3;this[_0x3cb086('0xc')]=_0x47b6dd,this[_0x3cb086('0x5')]=new Sequence();};Migration[_0x3f53f3('0x14')][_0x3f53f3('0x16')]=function(_0x1f7b82,_0x33c948,_0x1aa9a8){const _0x4e3978=this;this['sequence']['enqueue'](function(){const _0x301dbf=a1005_0x1ef3;return _0x4e3978['queryInterface'][_0x301dbf('0x16')](_0x1f7b82,_0x33c948,_0x1aa9a8)[_0x301dbf('0x12')](function(){const _0x21fa66=_0x301dbf;logger[_0x21fa66('0x18')](_0x21fa66('0x13'),_0x33c948,_0x1f7b82);})[_0x301dbf('0x2')](function(_0x56bb90){const _0x2a09fd=_0x301dbf;logger[_0x2a09fd('0x18')](JSON[_0x2a09fd('0x15')](_0x56bb90));});});},Migration[_0x3f53f3('0x14')][_0x3f53f3('0x1')]=function(_0x45fbd3,_0x3cd2f8,_0x59ea60){const _0x10a341=_0x3f53f3,_0x38343d=this;this['sequence'][_0x10a341('0xe')](function(){const _0x2959e0=_0x10a341;return _0x38343d[_0x2959e0('0xc')]['addColumn'](_0x45fbd3,_0x3cd2f8,_0x59ea60)[_0x2959e0('0x12')](function(){const _0x50e475=_0x2959e0;logger[_0x50e475('0x18')]('Added\x20column\x20%s\x20to\x20%s',_0x3cd2f8,_0x45fbd3);})[_0x2959e0('0x2')](function(_0x5480e9){const _0x38eaff=_0x2959e0;logger[_0x38eaff('0x18')](JSON[_0x38eaff('0x15')](_0x5480e9));});});},Migration[_0x3f53f3('0x14')][_0x3f53f3('0xb')]=function(_0x1b7b90){const _0x313977=_0x3f53f3,_0x531202=this;this[_0x313977('0x5')][_0x313977('0xe')](function(){const _0x2e23ae=_0x313977;return _0x531202[_0x2e23ae('0xc')][_0x2e23ae('0xb')](_0x1b7b90,{'force':!![]})['then'](function(){const _0x439ebb=_0x2e23ae;logger[_0x439ebb('0x18')]('table\x20dropped\x20%s',_0x1b7b90);})[_0x2e23ae('0x2')](function(_0x1bb9d1){const _0x3549d7=_0x2e23ae;logger['info'](JSON[_0x3549d7('0x15')](_0x1bb9d1));});});},Migration[_0x3f53f3('0x14')][_0x3f53f3('0x9')]=function(_0x526ae9,_0xd85b7a,_0x4733f8){const _0x5e111f=_0x3f53f3,_0x247cab=this;this[_0x5e111f('0x5')][_0x5e111f('0xe')](function(){const _0x5c1782=_0x5e111f;return _0x247cab['queryInterface'][_0x5c1782('0x9')](_0x526ae9,_0xd85b7a,{'indexName':_0x4733f8[_0x5c1782('0xd')],'indicesType':_0x4733f8[_0x5c1782('0x7')]})['then'](function(){const _0x3963a3=_0x5c1782;logger[_0x3963a3('0x18')](_0x3963a3('0x8'),_0x526ae9,_0xd85b7a['join'](','),_0x4733f8[_0x3963a3('0xd')],_0x4733f8[_0x3963a3('0x7')]);})[_0x5c1782('0x2')](function(_0x5d5cdb){const _0x256068=_0x5c1782;logger[_0x256068('0x18')](JSON[_0x256068('0x15')](_0x5d5cdb));});});},Migration[_0x3f53f3('0x14')][_0x3f53f3('0x4')]=function(_0x8f377d,_0x274e68){const _0x5cfa8b=_0x3f53f3,_0x55e0e0=this;this[_0x5cfa8b('0x5')]['enqueue'](function(){const _0x5501a0=_0x5cfa8b;return _0x55e0e0['queryInterface'][_0x5501a0('0x4')](_0x8f377d,_0x274e68)[_0x5501a0('0x12')](function(){const _0xc26343=_0x5501a0;logger[_0xc26343('0x18')]('removeIndex\x20%s\x20%s',_0x8f377d,_0x274e68);})[_0x5501a0('0x2')](function(_0x148011){const _0x3190ad=_0x5501a0;logger[_0x3190ad('0x18')](JSON[_0x3190ad('0x15')](_0x148011));});});},Migration[_0x3f53f3('0x14')][_0x3f53f3('0xf')]=function(_0x2650ae){const _0x359f7a=_0x3f53f3,_0x422259=this;this['sequence'][_0x359f7a('0xe')](function(){const _0x3ec56a=_0x359f7a;return _0x422259[_0x3ec56a('0xc')][_0x3ec56a('0x6')][_0x3ec56a('0xf')](_0x2650ae)[_0x3ec56a('0x12')](function(){const _0x50debe=_0x3ec56a;logger[_0x50debe('0x18')](_0x50debe('0xa'),_0x2650ae);})[_0x3ec56a('0x2')](function(_0x35ab4a){const _0x478aa7=_0x3ec56a;logger[_0x478aa7('0x18')](JSON[_0x478aa7('0x15')](_0x35ab4a));});});},Migration[_0x3f53f3('0x14')][_0x3f53f3('0x1a')]=function(_0x4b24fa,_0x449797){const _0x55de0b=_0x3f53f3,_0x249018=this;this[_0x55de0b('0x5')][_0x55de0b('0xe')](function(){const _0x4f6a71=_0x55de0b;return _0x249018[_0x4f6a71('0xc')]['removeColumn'](_0x4b24fa,_0x449797)[_0x4f6a71('0x12')](function(){const _0x1c0bfe=_0x4f6a71;logger[_0x1c0bfe('0x18')]('Removed\x20column\x20%s\x20from\x20%s',_0x449797,_0x4b24fa);})[_0x4f6a71('0x2')](function(_0x530b1a){const _0x3ea36c=_0x4f6a71;logger[_0x3ea36c('0x18')](util[_0x3ea36c('0x3')](_0x530b1a,{'showHidden':![],'depth':null}));});});},Migration[_0x3f53f3('0x14')][_0x3f53f3('0x10')]=function(_0x428fa7,_0x6030e,_0x305705){const _0x8d89bf=_0x3f53f3,_0x4a2ae2=this;this[_0x8d89bf('0x5')][_0x8d89bf('0xe')](function(){const _0x1694b0=_0x8d89bf;return _0x4a2ae2[_0x1694b0('0xc')][_0x1694b0('0x10')](_0x428fa7,_0x6030e,_0x305705)[_0x1694b0('0x12')](function(){const _0x3a4aa0=_0x1694b0;logger[_0x3a4aa0('0x18')](_0x3a4aa0('0x19'),_0x6030e,_0x305705,_0x428fa7);})[_0x1694b0('0x2')](function(_0x1eff85){const _0x432b6a=_0x1694b0;logger[_0x432b6a('0x18')](util[_0x432b6a('0x3')](_0x1eff85,{'showHidden':![],'depth':null}));});});},Migration[_0x3f53f3('0x14')][_0x3f53f3('0x0')]=function(_0x52b565){const _0x10fa4e=_0x3f53f3;this[_0x10fa4e('0x5')]['enqueue'](function(){return _0x52b565();});},module['exports']={'up':function(_0x445753){return new Promise(function(_0x3ed6fe){const _0x1b27e2=a1005_0x1ef3,_0x1c4698=new Migration(_0x445753);_0x1c4698[_0x1b27e2('0x0')](_0x3ed6fe);});},'down':function(){}}; \ No newline at end of file +const a1005_0x2408=['addIndex','enqueue','changeColumn','addColumn','info','../config/logger','removeIndex\x20%s\x20%s','query','queryInterface','join','exports','tail','indexName','final','inspect','sequelize','catch','query\x20%s','prototype','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','then','finally','dropTable','Added\x20column\x20%s\x20to\x20%s','removeColumn','removeIndex','stringify','indicesType'];(function(_0x4da50b,_0x240869){const _0x1cb70e=function(_0xbd3839){while(--_0xbd3839){_0x4da50b['push'](_0x4da50b['shift']());}};_0x1cb70e(++_0x240869);}(a1005_0x2408,0xdb));const a1005_0x1cb7=function(_0x4da50b,_0x240869){_0x4da50b=_0x4da50b-0x0;let _0x1cb70e=a1005_0x2408[_0x4da50b];return _0x1cb70e;};const _0x3ef9ea=a1005_0x1cb7;'use strict';const util=require('util'),logger=require(_0x3ef9ea('0x1a'))('migration'),Sequence=function(){};Sequence[_0x3ef9ea('0x9')][_0x3ef9ea('0x16')]=function(_0xbd3839){const _0x478d70=_0x3ef9ea;this[_0x478d70('0x2')]=this[_0x478d70('0x2')]?this[_0x478d70('0x2')][_0x478d70('0xe')](_0xbd3839):_0xbd3839();};const Migration=function(_0x2a6c70){const _0x3265eb=_0x3ef9ea;this[_0x3265eb('0x1d')]=_0x2a6c70,this[_0x3265eb('0xa')]=new Sequence();};Migration[_0x3ef9ea('0x9')][_0x3ef9ea('0x17')]=function(_0x37d11a,_0x1a1025,_0x55d8a3){const _0x12029b=_0x3ef9ea,_0x34584d=this;this[_0x12029b('0xa')]['enqueue'](function(){const _0x1c12dc=_0x12029b;return _0x34584d['queryInterface']['changeColumn'](_0x37d11a,_0x1a1025,_0x55d8a3)[_0x1c12dc('0xd')](function(){const _0x434e29=_0x1c12dc;logger[_0x434e29('0x19')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1a1025,_0x37d11a);})[_0x1c12dc('0x7')](function(_0x3e9a4e){const _0x411a84=_0x1c12dc;logger[_0x411a84('0x19')](JSON[_0x411a84('0x13')](_0x3e9a4e));});});},Migration['prototype'][_0x3ef9ea('0x18')]=function(_0x36b2e4,_0x4731dd,_0x2d5134){const _0x32ae5b=_0x3ef9ea,_0x19c0c0=this;this['sequence'][_0x32ae5b('0x16')](function(){const _0x594fe4=_0x32ae5b;return _0x19c0c0[_0x594fe4('0x1d')]['addColumn'](_0x36b2e4,_0x4731dd,_0x2d5134)[_0x594fe4('0xd')](function(){const _0x22f127=_0x594fe4;logger['info'](_0x22f127('0x10'),_0x4731dd,_0x36b2e4);})[_0x594fe4('0x7')](function(_0x5177d6){const _0x421c35=_0x594fe4;logger[_0x421c35('0x19')](JSON[_0x421c35('0x13')](_0x5177d6));});});},Migration['prototype'][_0x3ef9ea('0xf')]=function(_0x31f4f3){const _0x908b6a=_0x3ef9ea,_0x5bd2f6=this;this[_0x908b6a('0xa')]['enqueue'](function(){const _0x1a1c47=_0x908b6a;return _0x5bd2f6[_0x1a1c47('0x1d')][_0x1a1c47('0xf')](_0x31f4f3,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x31f4f3);})[_0x1a1c47('0x7')](function(_0xd7ea7f){const _0x13372f=_0x1a1c47;logger[_0x13372f('0x19')](JSON[_0x13372f('0x13')](_0xd7ea7f));});});},Migration[_0x3ef9ea('0x9')][_0x3ef9ea('0x15')]=function(_0x50810c,_0x28103c,_0x2b213b){const _0x4f9b7e=_0x3ef9ea,_0x5d634d=this;this[_0x4f9b7e('0xa')]['enqueue'](function(){const _0x4bb33d=_0x4f9b7e;return _0x5d634d['queryInterface'][_0x4bb33d('0x15')](_0x50810c,_0x28103c,{'indexName':_0x2b213b[_0x4bb33d('0x3')],'indicesType':_0x2b213b['indicesType']})['then'](function(){const _0x586356=_0x4bb33d;logger[_0x586356('0x19')](_0x586356('0xb'),_0x50810c,_0x28103c[_0x586356('0x0')](','),_0x2b213b[_0x586356('0x3')],_0x2b213b[_0x586356('0x14')]);})['catch'](function(_0x5f5918){const _0x4a9170=_0x4bb33d;logger[_0x4a9170('0x19')](JSON[_0x4a9170('0x13')](_0x5f5918));});});},Migration['prototype'][_0x3ef9ea('0x12')]=function(_0x226870,_0xc3932){const _0x4d3912=_0x3ef9ea,_0x3e5acb=this;this[_0x4d3912('0xa')][_0x4d3912('0x16')](function(){const _0x374aa2=_0x4d3912;return _0x3e5acb['queryInterface']['removeIndex'](_0x226870,_0xc3932)[_0x374aa2('0xd')](function(){const _0x117310=_0x374aa2;logger[_0x117310('0x19')](_0x117310('0x1b'),_0x226870,_0xc3932);})[_0x374aa2('0x7')](function(_0xec4d8b){const _0x8872bf=_0x374aa2;logger[_0x8872bf('0x19')](JSON[_0x8872bf('0x13')](_0xec4d8b));});});},Migration['prototype'][_0x3ef9ea('0x1c')]=function(_0xc69d4b){const _0x2a1c27=_0x3ef9ea,_0xa4413d=this;this[_0x2a1c27('0xa')][_0x2a1c27('0x16')](function(){const _0x330911=_0x2a1c27;return _0xa4413d[_0x330911('0x1d')][_0x330911('0x6')][_0x330911('0x1c')](_0xc69d4b)[_0x330911('0xd')](function(){const _0x3cf626=_0x330911;logger['info'](_0x3cf626('0x8'),_0xc69d4b);})[_0x330911('0x7')](function(_0x3ba82c){const _0x216ed5=_0x330911;logger[_0x216ed5('0x19')](JSON['stringify'](_0x3ba82c));});});},Migration[_0x3ef9ea('0x9')][_0x3ef9ea('0x11')]=function(_0x2e2a0e,_0x8fede1){const _0x562847=_0x3ef9ea,_0x26d616=this;this[_0x562847('0xa')]['enqueue'](function(){const _0x195099=_0x562847;return _0x26d616[_0x195099('0x1d')][_0x195099('0x11')](_0x2e2a0e,_0x8fede1)[_0x195099('0xd')](function(){const _0x3fcb73=_0x195099;logger[_0x3fcb73('0x19')](_0x3fcb73('0xc'),_0x8fede1,_0x2e2a0e);})['catch'](function(_0x21f584){const _0x2721f7=_0x195099;logger[_0x2721f7('0x19')](util['inspect'](_0x21f584,{'showHidden':![],'depth':null}));});});},Migration[_0x3ef9ea('0x9')]['renameColumn']=function(_0x44309e,_0x1cdc5d,_0x2c646d){const _0x58bd7c=_0x3ef9ea,_0x2d5f39=this;this[_0x58bd7c('0xa')]['enqueue'](function(){const _0x4c397c=_0x58bd7c;return _0x2d5f39['queryInterface']['renameColumn'](_0x44309e,_0x1cdc5d,_0x2c646d)['then'](function(){const _0x170915=a1005_0x1cb7;logger[_0x170915('0x19')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1cdc5d,_0x2c646d,_0x44309e);})[_0x4c397c('0x7')](function(_0x50071e){const _0x2a5e7f=_0x4c397c;logger[_0x2a5e7f('0x19')](util[_0x2a5e7f('0x5')](_0x50071e,{'showHidden':![],'depth':null}));});});},Migration[_0x3ef9ea('0x9')][_0x3ef9ea('0x4')]=function(_0x12de6f){const _0x182e9b=_0x3ef9ea;this[_0x182e9b('0xa')][_0x182e9b('0x16')](function(){return _0x12de6f();});},module[_0x3ef9ea('0x1')]={'up':function(_0x1b2556){return new Promise(function(_0x5e1e5b){const _0x151e56=a1005_0x1cb7,_0xcd1502=new Migration(_0x1b2556);_0xcd1502[_0x151e56('0x4')](_0x5e1e5b);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.3.js b/server/migrations/2.4.3.js index e1d59e2..583a6ce 100644 --- a/server/migrations/2.4.3.js +++ b/server/migrations/2.4.3.js @@ -1 +1 @@ -const a1006_0x31b3=['join','inspect','queryInterface','then','sequelize','dropTable','tail','Removed\x20column\x20%s\x20from\x20%s','indexName','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','info','sequence','prototype','query','migration','enqueue','changeColumn','Added\x20column\x20%s\x20to\x20%s','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','stringify','removeIndex','final','renameColumn','exports','catch','indicesType','removeColumn','finally'];(function(_0x89953d,_0x31b319){const _0x551a23=function(_0x549587){while(--_0x549587){_0x89953d['push'](_0x89953d['shift']());}};_0x551a23(++_0x31b319);}(a1006_0x31b3,0x1bc));const a1006_0x551a=function(_0x89953d,_0x31b319){_0x89953d=_0x89953d-0x0;let _0x551a23=a1006_0x31b3[_0x89953d];return _0x551a23;};const _0x3cf355=a1006_0x551a;'use strict';const util=require(_0x3cf355('0x1a')),logger=require('../config/logger')(_0x3cf355('0x14')),Sequence=function(){};Sequence[_0x3cf355('0x12')][_0x3cf355('0x15')]=function(_0x549587){const _0x474a10=_0x3cf355;this[_0x474a10('0xa')]=this['tail']?this[_0x474a10('0xa')][_0x474a10('0x3')](_0x549587):_0x549587();};const Migration=function(_0x72df24){this['queryInterface']=_0x72df24,this['sequence']=new Sequence();};Migration[_0x3cf355('0x12')][_0x3cf355('0x16')]=function(_0x48b554,_0x20fd80,_0x4459dd){const _0x578fbe=_0x3cf355,_0x3ee68c=this;this[_0x578fbe('0x11')][_0x578fbe('0x15')](function(){const _0x59b605=_0x578fbe;return _0x3ee68c[_0x59b605('0x6')][_0x59b605('0x16')](_0x48b554,_0x20fd80,_0x4459dd)[_0x59b605('0x7')](function(){const _0x2f39b6=_0x59b605;logger[_0x2f39b6('0x10')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x20fd80,_0x48b554);})[_0x59b605('0x0')](function(_0xdfd26a){const _0x137303=_0x59b605;logger[_0x137303('0x10')](JSON[_0x137303('0x1b')](_0xdfd26a));});});},Migration[_0x3cf355('0x12')][_0x3cf355('0xf')]=function(_0x31f438,_0x23df2a,_0x206b37){const _0x3e2686=_0x3cf355,_0x3d0d90=this;this[_0x3e2686('0x11')][_0x3e2686('0x15')](function(){const _0x116996=_0x3e2686;return _0x3d0d90[_0x116996('0x6')]['addColumn'](_0x31f438,_0x23df2a,_0x206b37)[_0x116996('0x7')](function(){const _0x553e00=_0x116996;logger[_0x553e00('0x10')](_0x553e00('0x17'),_0x23df2a,_0x31f438);})[_0x116996('0x0')](function(_0x24a32b){const _0x47e7c5=_0x116996;logger[_0x47e7c5('0x10')](JSON[_0x47e7c5('0x1b')](_0x24a32b));});});},Migration[_0x3cf355('0x12')]['dropTable']=function(_0x17a5b2){const _0x1b9120=_0x3cf355,_0x53131d=this;this[_0x1b9120('0x11')][_0x1b9120('0x15')](function(){const _0x5600ea=_0x1b9120;return _0x53131d['queryInterface'][_0x5600ea('0x9')](_0x17a5b2,{'force':!![]})[_0x5600ea('0x7')](function(){const _0x134c50=_0x5600ea;logger[_0x134c50('0x10')]('table\x20dropped\x20%s',_0x17a5b2);})[_0x5600ea('0x0')](function(_0x49a550){const _0x384b82=_0x5600ea;logger['info'](JSON[_0x384b82('0x1b')](_0x49a550));});});},Migration['prototype'][_0x3cf355('0x18')]=function(_0x4dd1a3,_0x1df155,_0x539b67){const _0x486e2a=_0x3cf355,_0x57d873=this;this[_0x486e2a('0x11')]['enqueue'](function(){const _0x2ac0a3=_0x486e2a;return _0x57d873[_0x2ac0a3('0x6')][_0x2ac0a3('0x18')](_0x4dd1a3,_0x1df155,{'indexName':_0x539b67[_0x2ac0a3('0xc')],'indicesType':_0x539b67[_0x2ac0a3('0x1')]})['then'](function(){const _0x39952a=_0x2ac0a3;logger[_0x39952a('0x10')](_0x39952a('0xe'),_0x4dd1a3,_0x1df155[_0x39952a('0x4')](','),_0x539b67[_0x39952a('0xc')],_0x539b67[_0x39952a('0x1')]);})['catch'](function(_0x8df8c0){const _0x372fad=_0x2ac0a3;logger[_0x372fad('0x10')](JSON[_0x372fad('0x1b')](_0x8df8c0));});});},Migration[_0x3cf355('0x12')][_0x3cf355('0x1c')]=function(_0x30d974,_0x331bf3){const _0x4bd2f1=_0x3cf355,_0x1c4630=this;this['sequence'][_0x4bd2f1('0x15')](function(){const _0x9396a6=_0x4bd2f1;return _0x1c4630[_0x9396a6('0x6')][_0x9396a6('0x1c')](_0x30d974,_0x331bf3)[_0x9396a6('0x7')](function(){const _0x5763bd=_0x9396a6;logger[_0x5763bd('0x10')]('removeIndex\x20%s\x20%s',_0x30d974,_0x331bf3);})[_0x9396a6('0x0')](function(_0x5a3630){const _0x7105ba=_0x9396a6;logger[_0x7105ba('0x10')](JSON[_0x7105ba('0x1b')](_0x5a3630));});});},Migration[_0x3cf355('0x12')]['query']=function(_0x16f843){const _0x1553ee=_0x3cf355,_0x32a2b5=this;this[_0x1553ee('0x11')]['enqueue'](function(){const _0x3e3cca=_0x1553ee;return _0x32a2b5[_0x3e3cca('0x6')][_0x3e3cca('0x8')][_0x3e3cca('0x13')](_0x16f843)[_0x3e3cca('0x7')](function(){const _0x40a357=_0x3e3cca;logger['info'](_0x40a357('0xd'),_0x16f843);})[_0x3e3cca('0x0')](function(_0x5f5af9){const _0x433ebd=_0x3e3cca;logger[_0x433ebd('0x10')](JSON['stringify'](_0x5f5af9));});});},Migration[_0x3cf355('0x12')]['removeColumn']=function(_0x494668,_0x1e2f4b){const _0x43613b=_0x3cf355,_0x2be2dd=this;this[_0x43613b('0x11')][_0x43613b('0x15')](function(){const _0x9994bf=_0x43613b;return _0x2be2dd[_0x9994bf('0x6')][_0x9994bf('0x2')](_0x494668,_0x1e2f4b)[_0x9994bf('0x7')](function(){const _0x3827b8=_0x9994bf;logger[_0x3827b8('0x10')](_0x3827b8('0xb'),_0x1e2f4b,_0x494668);})['catch'](function(_0x17c4d7){const _0x9b519a=_0x9994bf;logger[_0x9b519a('0x10')](util[_0x9b519a('0x5')](_0x17c4d7,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3cf355('0x1e')]=function(_0x592f33,_0x267470,_0x476fe4){const _0x1bd4b9=_0x3cf355,_0x1c4e2c=this;this[_0x1bd4b9('0x11')][_0x1bd4b9('0x15')](function(){const _0x167cce=_0x1bd4b9;return _0x1c4e2c[_0x167cce('0x6')][_0x167cce('0x1e')](_0x592f33,_0x267470,_0x476fe4)[_0x167cce('0x7')](function(){const _0x4a5090=_0x167cce;logger[_0x4a5090('0x10')](_0x4a5090('0x19'),_0x267470,_0x476fe4,_0x592f33);})[_0x167cce('0x0')](function(_0x3b1201){const _0x39f45b=_0x167cce;logger['info'](util[_0x39f45b('0x5')](_0x3b1201,{'showHidden':![],'depth':null}));});});},Migration[_0x3cf355('0x12')][_0x3cf355('0x1d')]=function(_0x209e58){const _0x7f736e=_0x3cf355;this['sequence'][_0x7f736e('0x15')](function(){return _0x209e58();});},module[_0x3cf355('0x1f')]={'up':function(_0x1f5ce4){return new Promise(function(_0x40b5bb){const _0x52e22d=new Migration(_0x1f5ce4);_0x52e22d['final'](_0x40b5bb);});},'down':function(){}}; \ No newline at end of file +const a1006_0x3b99=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','query','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','then','addColumn','exports','removeIndex\x20%s\x20%s','enqueue','join','removeIndex','addIndex','removeColumn','table\x20dropped\x20%s','tail','sequelize','final','catch','util','dropTable','info','changeColumn','Removed\x20column\x20%s\x20from\x20%s','renameColumn','indexName','queryInterface','prototype','migration','Added\x20column\x20%s\x20to\x20%s','stringify'];(function(_0xe2e214,_0x3b99e1){const _0x493962=function(_0x5e0ab0){while(--_0x5e0ab0){_0xe2e214['push'](_0xe2e214['shift']());}};_0x493962(++_0x3b99e1);}(a1006_0x3b99,0x13a));const a1006_0x4939=function(_0xe2e214,_0x3b99e1){_0xe2e214=_0xe2e214-0x0;let _0x493962=a1006_0x3b99[_0xe2e214];return _0x493962;};const _0x3ce796=a1006_0x4939;'use strict';const util=require(_0x3ce796('0xf')),logger=require('../config/logger')(_0x3ce796('0x18')),Sequence=function(){};Sequence[_0x3ce796('0x17')][_0x3ce796('0x5')]=function(_0x5e0ab0){const _0x1c704b=_0x3ce796;this[_0x1c704b('0xb')]=this[_0x1c704b('0xb')]?this[_0x1c704b('0xb')]['finally'](_0x5e0ab0):_0x5e0ab0();};const Migration=function(_0xba04ad){const _0x24b050=_0x3ce796;this[_0x24b050('0x16')]=_0xba04ad,this['sequence']=new Sequence();};Migration[_0x3ce796('0x17')]['changeColumn']=function(_0x42a61a,_0x57d4f8,_0x2ca59a){const _0x1f21ba=this;this['sequence']['enqueue'](function(){const _0x185369=a1006_0x4939;return _0x1f21ba[_0x185369('0x16')][_0x185369('0x12')](_0x42a61a,_0x57d4f8,_0x2ca59a)[_0x185369('0x1')](function(){const _0x484916=_0x185369;logger[_0x484916('0x11')](_0x484916('0x1e'),_0x57d4f8,_0x42a61a);})[_0x185369('0xe')](function(_0x383359){const _0x59d4e3=_0x185369;logger[_0x59d4e3('0x11')](JSON[_0x59d4e3('0x1a')](_0x383359));});});},Migration['prototype'][_0x3ce796('0x2')]=function(_0x104115,_0x11e175,_0x913737){const _0x5d773f=_0x3ce796,_0x5ab463=this;this[_0x5d773f('0x1c')][_0x5d773f('0x5')](function(){const _0x41a8c6=_0x5d773f;return _0x5ab463[_0x41a8c6('0x16')][_0x41a8c6('0x2')](_0x104115,_0x11e175,_0x913737)[_0x41a8c6('0x1')](function(){const _0x3ee8dc=_0x41a8c6;logger[_0x3ee8dc('0x11')](_0x3ee8dc('0x19'),_0x11e175,_0x104115);})['catch'](function(_0x1addca){logger['info'](JSON['stringify'](_0x1addca));});});},Migration['prototype'][_0x3ce796('0x10')]=function(_0x57d4b4){const _0x4b4463=_0x3ce796,_0x398d73=this;this[_0x4b4463('0x1c')][_0x4b4463('0x5')](function(){const _0xdbe9a5=_0x4b4463;return _0x398d73[_0xdbe9a5('0x16')][_0xdbe9a5('0x10')](_0x57d4b4,{'force':!![]})[_0xdbe9a5('0x1')](function(){const _0x4fee33=_0xdbe9a5;logger[_0x4fee33('0x11')](_0x4fee33('0xa'),_0x57d4b4);})[_0xdbe9a5('0xe')](function(_0x2f782f){const _0x493edb=_0xdbe9a5;logger[_0x493edb('0x11')](JSON[_0x493edb('0x1a')](_0x2f782f));});});},Migration[_0x3ce796('0x17')]['addIndex']=function(_0x73d2f,_0x25729b,_0x423b8b){const _0xf61cf=_0x3ce796,_0xf4f736=this;this[_0xf61cf('0x1c')]['enqueue'](function(){const _0x12c131=_0xf61cf;return _0xf4f736[_0x12c131('0x16')][_0x12c131('0x8')](_0x73d2f,_0x25729b,{'indexName':_0x423b8b[_0x12c131('0x15')],'indicesType':_0x423b8b['indicesType']})['then'](function(){const _0x2522a0=_0x12c131;logger[_0x2522a0('0x11')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x73d2f,_0x25729b[_0x2522a0('0x6')](','),_0x423b8b['indexName'],_0x423b8b['indicesType']);})['catch'](function(_0x5c4a74){const _0xc5d53a=_0x12c131;logger[_0xc5d53a('0x11')](JSON[_0xc5d53a('0x1a')](_0x5c4a74));});});},Migration[_0x3ce796('0x17')][_0x3ce796('0x7')]=function(_0x179f40,_0x31aaff){const _0x4c3b14=_0x3ce796,_0x1d4ed9=this;this[_0x4c3b14('0x1c')]['enqueue'](function(){const _0x50b26c=_0x4c3b14;return _0x1d4ed9[_0x50b26c('0x16')][_0x50b26c('0x7')](_0x179f40,_0x31aaff)[_0x50b26c('0x1')](function(){const _0x21e891=_0x50b26c;logger['info'](_0x21e891('0x4'),_0x179f40,_0x31aaff);})[_0x50b26c('0xe')](function(_0x18568f){logger['info'](JSON['stringify'](_0x18568f));});});},Migration[_0x3ce796('0x17')]['query']=function(_0x2f7665){const _0x297766=_0x3ce796,_0x2a779e=this;this[_0x297766('0x1c')]['enqueue'](function(){const _0x15d8ed=_0x297766;return _0x2a779e[_0x15d8ed('0x16')][_0x15d8ed('0xc')][_0x15d8ed('0x1d')](_0x2f7665)[_0x15d8ed('0x1')](function(){const _0xdb9181=_0x15d8ed;logger[_0xdb9181('0x11')]('query\x20%s',_0x2f7665);})[_0x15d8ed('0xe')](function(_0x3cc212){const _0x285e53=_0x15d8ed;logger['info'](JSON[_0x285e53('0x1a')](_0x3cc212));});});},Migration[_0x3ce796('0x17')][_0x3ce796('0x9')]=function(_0x11fcf4,_0x3f6e7f){const _0x5b66a6=_0x3ce796,_0x3d057b=this;this[_0x5b66a6('0x1c')][_0x5b66a6('0x5')](function(){const _0x4d65f0=_0x5b66a6;return _0x3d057b[_0x4d65f0('0x16')][_0x4d65f0('0x9')](_0x11fcf4,_0x3f6e7f)[_0x4d65f0('0x1')](function(){const _0x683fd8=_0x4d65f0;logger[_0x683fd8('0x11')](_0x683fd8('0x13'),_0x3f6e7f,_0x11fcf4);})[_0x4d65f0('0xe')](function(_0x1e4915){const _0x3fa002=_0x4d65f0;logger[_0x3fa002('0x11')](util['inspect'](_0x1e4915,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3ce796('0x14')]=function(_0x412be4,_0x49e9e9,_0x575929){const _0x46c261=_0x3ce796,_0x34c0d0=this;this[_0x46c261('0x1c')][_0x46c261('0x5')](function(){const _0x12528e=_0x46c261;return _0x34c0d0['queryInterface'][_0x12528e('0x14')](_0x412be4,_0x49e9e9,_0x575929)['then'](function(){const _0x2f4bcf=_0x12528e;logger[_0x2f4bcf('0x11')](_0x2f4bcf('0x1b'),_0x49e9e9,_0x575929,_0x412be4);})[_0x12528e('0xe')](function(_0x448286){const _0x39bb7e=_0x12528e;logger['info'](util[_0x39bb7e('0x0')](_0x448286,{'showHidden':![],'depth':null}));});});},Migration[_0x3ce796('0x17')][_0x3ce796('0xd')]=function(_0x4db5a4){this['sequence']['enqueue'](function(){return _0x4db5a4();});},module[_0x3ce796('0x3')]={'up':function(_0x4bb7cc){return new Promise(function(_0x14bb79){const _0x3e8941=a1006_0x4939,_0x1afaf2=new Migration(_0x4bb7cc);_0x1afaf2[_0x3e8941('0xd')](_0x14bb79);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.4.js b/server/migrations/2.4.4.js index 9e96d61..c9af6eb 100644 --- a/server/migrations/2.4.4.js +++ b/server/migrations/2.4.4.js @@ -1 +1 @@ -const a1007_0x3894=['join','removeIndex\x20%s\x20%s','info','changeColumn','util','addColumn','prototype','Removed\x20column\x20%s\x20from\x20%s','zone','STRING','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','catch','finally','removeIndex','table\x20dropped\x20%s','tail','clientSecret','../config/logger','query','renameColumn','migration','indexName','removeColumn','inspect','query\x20%s','clientId','sequelize','then','stringify','addIndex','enqueue','queryInterface','Added\x20column\x20%s\x20to\x20%s','code','final','exports','int_zoho_accounts'];(function(_0x327dd8,_0x38945c){const _0x5ce211=function(_0x529b30){while(--_0x529b30){_0x327dd8['push'](_0x327dd8['shift']());}};_0x5ce211(++_0x38945c);}(a1007_0x3894,0x1d7));const a1007_0x5ce2=function(_0x327dd8,_0x38945c){_0x327dd8=_0x327dd8-0x0;let _0x5ce211=a1007_0x3894[_0x327dd8];return _0x5ce211;};const _0x3cf442=a1007_0x5ce2;'use strict';const util=require(_0x3cf442('0x1b')),logger=require(_0x3cf442('0x3'))(_0x3cf442('0x6')),Sequence=function(){};Sequence[_0x3cf442('0x1d')][_0x3cf442('0x10')]=function(_0x529b30){const _0x5dbb68=_0x3cf442;this['tail']=this['tail']?this[_0x5dbb68('0x1')][_0x5dbb68('0x24')](_0x529b30):_0x529b30();};const Migration=function(_0x56a422){const _0x5a421b=_0x3cf442;this[_0x5a421b('0x11')]=_0x56a422,this[_0x5a421b('0x22')]=new Sequence();};Migration[_0x3cf442('0x1d')][_0x3cf442('0x1a')]=function(_0x1879d5,_0x59a9bd,_0x37977e){const _0x79fc3f=_0x3cf442,_0x2e3fc0=this;this[_0x79fc3f('0x22')][_0x79fc3f('0x10')](function(){const _0x55c3c8=_0x79fc3f;return _0x2e3fc0[_0x55c3c8('0x11')][_0x55c3c8('0x1a')](_0x1879d5,_0x59a9bd,_0x37977e)[_0x55c3c8('0xd')](function(){const _0x168afc=_0x55c3c8;logger[_0x168afc('0x19')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x59a9bd,_0x1879d5);})[_0x55c3c8('0x23')](function(_0x542eb1){const _0x1225eb=_0x55c3c8;logger['info'](JSON[_0x1225eb('0xe')](_0x542eb1));});});},Migration['prototype']['addColumn']=function(_0x5592ec,_0x5c7d8a,_0x33911d){const _0x112ce8=_0x3cf442,_0x286150=this;this[_0x112ce8('0x22')][_0x112ce8('0x10')](function(){const _0x2bd16f=_0x112ce8;return _0x286150[_0x2bd16f('0x11')][_0x2bd16f('0x1c')](_0x5592ec,_0x5c7d8a,_0x33911d)[_0x2bd16f('0xd')](function(){const _0x3c9960=_0x2bd16f;logger[_0x3c9960('0x19')](_0x3c9960('0x12'),_0x5c7d8a,_0x5592ec);})[_0x2bd16f('0x23')](function(_0x385562){const _0x1dad1e=_0x2bd16f;logger[_0x1dad1e('0x19')](JSON[_0x1dad1e('0xe')](_0x385562));});});},Migration[_0x3cf442('0x1d')]['dropTable']=function(_0x269bc4){const _0x7d9bf9=_0x3cf442,_0x1a1fe1=this;this[_0x7d9bf9('0x22')]['enqueue'](function(){const _0x52bb46=_0x7d9bf9;return _0x1a1fe1[_0x52bb46('0x11')]['dropTable'](_0x269bc4,{'force':!![]})[_0x52bb46('0xd')](function(){const _0xbed4a6=_0x52bb46;logger[_0xbed4a6('0x19')](_0xbed4a6('0x0'),_0x269bc4);})[_0x52bb46('0x23')](function(_0x814e17){const _0x4ffb22=_0x52bb46;logger[_0x4ffb22('0x19')](JSON[_0x4ffb22('0xe')](_0x814e17));});});},Migration['prototype'][_0x3cf442('0xf')]=function(_0x4ff59c,_0x481fe3,_0x11357f){const _0x392b60=_0x3cf442,_0x468926=this;this[_0x392b60('0x22')][_0x392b60('0x10')](function(){const _0x395010=_0x392b60;return _0x468926[_0x395010('0x11')][_0x395010('0xf')](_0x4ff59c,_0x481fe3,{'indexName':_0x11357f[_0x395010('0x7')],'indicesType':_0x11357f['indicesType']})[_0x395010('0xd')](function(){const _0x4d2247=_0x395010;logger[_0x4d2247('0x19')](_0x4d2247('0x21'),_0x4ff59c,_0x481fe3[_0x4d2247('0x17')](','),_0x11357f[_0x4d2247('0x7')],_0x11357f['indicesType']);})[_0x395010('0x23')](function(_0x30f758){const _0x313cf4=_0x395010;logger[_0x313cf4('0x19')](JSON['stringify'](_0x30f758));});});},Migration[_0x3cf442('0x1d')][_0x3cf442('0x25')]=function(_0x4878a9,_0x2f4d2d){const _0x4de539=_0x3cf442,_0x23555b=this;this[_0x4de539('0x22')][_0x4de539('0x10')](function(){const _0x1274c1=_0x4de539;return _0x23555b[_0x1274c1('0x11')]['removeIndex'](_0x4878a9,_0x2f4d2d)[_0x1274c1('0xd')](function(){const _0x30205b=_0x1274c1;logger[_0x30205b('0x19')](_0x30205b('0x18'),_0x4878a9,_0x2f4d2d);})[_0x1274c1('0x23')](function(_0x35fd22){const _0x90c39e=_0x1274c1;logger[_0x90c39e('0x19')](JSON[_0x90c39e('0xe')](_0x35fd22));});});},Migration[_0x3cf442('0x1d')][_0x3cf442('0x4')]=function(_0x5ddd86){const _0x181d9c=_0x3cf442,_0x12f39f=this;this[_0x181d9c('0x22')]['enqueue'](function(){const _0x5d2367=_0x181d9c;return _0x12f39f[_0x5d2367('0x11')][_0x5d2367('0xc')][_0x5d2367('0x4')](_0x5ddd86)[_0x5d2367('0xd')](function(){const _0x54e9cd=_0x5d2367;logger['info'](_0x54e9cd('0xa'),_0x5ddd86);})[_0x5d2367('0x23')](function(_0x13eaa1){const _0x73a81e=_0x5d2367;logger[_0x73a81e('0x19')](JSON[_0x73a81e('0xe')](_0x13eaa1));});});},Migration[_0x3cf442('0x1d')][_0x3cf442('0x8')]=function(_0x573671,_0x5625a7){const _0x234a1a=_0x3cf442,_0x189113=this;this[_0x234a1a('0x22')][_0x234a1a('0x10')](function(){const _0x33744b=_0x234a1a;return _0x189113['queryInterface']['removeColumn'](_0x573671,_0x5625a7)['then'](function(){const _0x2f080a=a1007_0x5ce2;logger[_0x2f080a('0x19')](_0x2f080a('0x1e'),_0x5625a7,_0x573671);})[_0x33744b('0x23')](function(_0x6dcdd1){const _0x43403a=_0x33744b;logger[_0x43403a('0x19')](util[_0x43403a('0x9')](_0x6dcdd1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3cf442('0x5')]=function(_0x367cfa,_0x2884db,_0x2c7d0a){const _0x1f7834=_0x3cf442,_0x4076de=this;this[_0x1f7834('0x22')][_0x1f7834('0x10')](function(){const _0x4346fc=_0x1f7834;return _0x4076de[_0x4346fc('0x11')][_0x4346fc('0x5')](_0x367cfa,_0x2884db,_0x2c7d0a)[_0x4346fc('0xd')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2884db,_0x2c7d0a,_0x367cfa);})['catch'](function(_0x45f00a){const _0x243fab=_0x4346fc;logger[_0x243fab('0x19')](util['inspect'](_0x45f00a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3cf442('0x14')]=function(_0x91c664){const _0x5ea0b9=_0x3cf442;this[_0x5ea0b9('0x22')][_0x5ea0b9('0x10')](function(){return _0x91c664();});},module[_0x3cf442('0x15')]={'up':function(_0x4ef215,_0x3d8aa3){return new Promise(function(_0x4d576d){const _0x2f1619=a1007_0x5ce2,_0x91b58a=new Migration(_0x4ef215);_0x91b58a['removeColumn'](_0x2f1619('0x16'),'authToken'),_0x91b58a[_0x2f1619('0x1c')](_0x2f1619('0x16'),_0x2f1619('0x1f'),{'type':_0x3d8aa3[_0x2f1619('0x20')],'defaultValue':'EU'}),_0x91b58a['addColumn'](_0x2f1619('0x16'),_0x2f1619('0xb'),{'type':_0x3d8aa3[_0x2f1619('0x20')]}),_0x91b58a[_0x2f1619('0x1c')](_0x2f1619('0x16'),_0x2f1619('0x2'),{'type':_0x3d8aa3[_0x2f1619('0x20')]}),_0x91b58a[_0x2f1619('0x1c')](_0x2f1619('0x16'),_0x2f1619('0x13'),{'type':_0x3d8aa3[_0x2f1619('0x20')]}),_0x91b58a[_0x2f1619('0x1c')](_0x2f1619('0x16'),'refreshToken',{'type':_0x3d8aa3['STRING']}),_0x91b58a['final'](_0x4d576d);});},'down':function(){}}; \ No newline at end of file +const a1007_0x3be5=['indicesType','table\x20dropped\x20%s','addIndex','Removed\x20column\x20%s\x20from\x20%s','prototype','then','zone','final','refreshToken','changeColumn','catch','addColumn','removeColumn','code','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','int_zoho_accounts','util','sequence','enqueue','sequelize','indexName','Changed\x20column\x20%s\x20in\x20table\x20%s','clientId','query','renameColumn','finally','exports','authToken','removeIndex','STRING','migration','stringify','tail','removeIndex\x20%s\x20%s','dropTable','query\x20%s','../config/logger','inspect','join'];(function(_0x44aef9,_0x3be5e1){const _0x4c3185=function(_0x4b11b7){while(--_0x4b11b7){_0x44aef9['push'](_0x44aef9['shift']());}};_0x4c3185(++_0x3be5e1);}(a1007_0x3be5,0x1cc));const a1007_0x4c31=function(_0x44aef9,_0x3be5e1){_0x44aef9=_0x44aef9-0x0;let _0x4c3185=a1007_0x3be5[_0x44aef9];return _0x4c3185;};const _0x13cbd5=a1007_0x4c31;'use strict';const util=require(_0x13cbd5('0x9')),logger=require(_0x13cbd5('0x1d'))(_0x13cbd5('0x17')),Sequence=function(){};Sequence[_0x13cbd5('0x24')][_0x13cbd5('0xb')]=function(_0x4b11b7){const _0xdd901f=_0x13cbd5;this[_0xdd901f('0x19')]=this['tail']?this[_0xdd901f('0x19')][_0xdd901f('0x12')](_0x4b11b7):_0x4b11b7();};const Migration=function(_0x58e011){const _0x1ad0e8=_0x13cbd5;this[_0x1ad0e8('0x7')]=_0x58e011,this[_0x1ad0e8('0xa')]=new Sequence();};Migration[_0x13cbd5('0x24')][_0x13cbd5('0x0')]=function(_0x1b4e0a,_0x1baa87,_0x3afe6d){const _0xe55c2b=_0x13cbd5,_0x3491f6=this;this[_0xe55c2b('0xa')]['enqueue'](function(){const _0x32a6c9=_0xe55c2b;return _0x3491f6[_0x32a6c9('0x7')][_0x32a6c9('0x0')](_0x1b4e0a,_0x1baa87,_0x3afe6d)[_0x32a6c9('0x25')](function(){const _0x413f76=_0x32a6c9;logger[_0x413f76('0x5')](_0x413f76('0xe'),_0x1baa87,_0x1b4e0a);})[_0x32a6c9('0x1')](function(_0xa1862){const _0x49977d=_0x32a6c9;logger[_0x49977d('0x5')](JSON[_0x49977d('0x18')](_0xa1862));});});},Migration[_0x13cbd5('0x24')]['addColumn']=function(_0x54be1c,_0x7e9a86,_0x19954f){const _0x14536c=_0x13cbd5,_0x49dedc=this;this[_0x14536c('0xa')][_0x14536c('0xb')](function(){const _0x2430dd=_0x14536c;return _0x49dedc['queryInterface']['addColumn'](_0x54be1c,_0x7e9a86,_0x19954f)['then'](function(){const _0x3ecf2c=a1007_0x4c31;logger[_0x3ecf2c('0x5')]('Added\x20column\x20%s\x20to\x20%s',_0x7e9a86,_0x54be1c);})[_0x2430dd('0x1')](function(_0x57605f){const _0xdbdaee=_0x2430dd;logger[_0xdbdaee('0x5')](JSON[_0xdbdaee('0x18')](_0x57605f));});});},Migration[_0x13cbd5('0x24')][_0x13cbd5('0x1b')]=function(_0x5e8610){const _0x3ac185=_0x13cbd5,_0x1ec3af=this;this[_0x3ac185('0xa')]['enqueue'](function(){const _0x4da25d=_0x3ac185;return _0x1ec3af['queryInterface'][_0x4da25d('0x1b')](_0x5e8610,{'force':!![]})['then'](function(){const _0x93af89=_0x4da25d;logger[_0x93af89('0x5')](_0x93af89('0x21'),_0x5e8610);})[_0x4da25d('0x1')](function(_0x3535a4){const _0x76aa84=_0x4da25d;logger[_0x76aa84('0x5')](JSON[_0x76aa84('0x18')](_0x3535a4));});});},Migration[_0x13cbd5('0x24')]['addIndex']=function(_0x4634f0,_0x304fe1,_0x402965){const _0x1389a3=_0x13cbd5,_0x441cca=this;this[_0x1389a3('0xa')][_0x1389a3('0xb')](function(){const _0x3b2ab2=_0x1389a3;return _0x441cca[_0x3b2ab2('0x7')][_0x3b2ab2('0x22')](_0x4634f0,_0x304fe1,{'indexName':_0x402965[_0x3b2ab2('0xd')],'indicesType':_0x402965['indicesType']})[_0x3b2ab2('0x25')](function(){const _0x1b8143=_0x3b2ab2;logger[_0x1b8143('0x5')](_0x1b8143('0x6'),_0x4634f0,_0x304fe1[_0x1b8143('0x1f')](','),_0x402965[_0x1b8143('0xd')],_0x402965[_0x1b8143('0x20')]);})[_0x3b2ab2('0x1')](function(_0x4cb5fe){const _0x22c509=_0x3b2ab2;logger[_0x22c509('0x5')](JSON[_0x22c509('0x18')](_0x4cb5fe));});});},Migration['prototype'][_0x13cbd5('0x15')]=function(_0x298a6f,_0x7b7ae){const _0xa41f6a=_0x13cbd5,_0xd07334=this;this[_0xa41f6a('0xa')][_0xa41f6a('0xb')](function(){const _0x4a2695=_0xa41f6a;return _0xd07334[_0x4a2695('0x7')]['removeIndex'](_0x298a6f,_0x7b7ae)[_0x4a2695('0x25')](function(){const _0x422d90=_0x4a2695;logger[_0x422d90('0x5')](_0x422d90('0x1a'),_0x298a6f,_0x7b7ae);})['catch'](function(_0x41c5bd){const _0x5f0f30=_0x4a2695;logger['info'](JSON[_0x5f0f30('0x18')](_0x41c5bd));});});},Migration[_0x13cbd5('0x24')][_0x13cbd5('0x10')]=function(_0x1b1754){const _0x1f1ff3=_0x13cbd5,_0xa8ec7d=this;this[_0x1f1ff3('0xa')][_0x1f1ff3('0xb')](function(){const _0x3af813=_0x1f1ff3;return _0xa8ec7d[_0x3af813('0x7')][_0x3af813('0xc')][_0x3af813('0x10')](_0x1b1754)[_0x3af813('0x25')](function(){const _0x5d1ad0=_0x3af813;logger[_0x5d1ad0('0x5')](_0x5d1ad0('0x1c'),_0x1b1754);})[_0x3af813('0x1')](function(_0x1f33e3){const _0x4b291a=_0x3af813;logger[_0x4b291a('0x5')](JSON[_0x4b291a('0x18')](_0x1f33e3));});});},Migration['prototype']['removeColumn']=function(_0x416437,_0x5db6e1){const _0x4fed39=_0x13cbd5,_0x2fe3bd=this;this[_0x4fed39('0xa')][_0x4fed39('0xb')](function(){const _0xbbbd4b=_0x4fed39;return _0x2fe3bd['queryInterface'][_0xbbbd4b('0x3')](_0x416437,_0x5db6e1)[_0xbbbd4b('0x25')](function(){const _0x4dbf3f=_0xbbbd4b;logger['info'](_0x4dbf3f('0x23'),_0x5db6e1,_0x416437);})[_0xbbbd4b('0x1')](function(_0xf8ac8a){const _0x135fef=_0xbbbd4b;logger[_0x135fef('0x5')](util[_0x135fef('0x1e')](_0xf8ac8a,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x2e931f,_0x481a4b,_0x5f35ad){const _0x3a4eb2=_0x13cbd5,_0x425a0e=this;this[_0x3a4eb2('0xa')]['enqueue'](function(){const _0x1c5d99=_0x3a4eb2;return _0x425a0e[_0x1c5d99('0x7')][_0x1c5d99('0x11')](_0x2e931f,_0x481a4b,_0x5f35ad)['then'](function(){const _0x4b7982=_0x1c5d99;logger[_0x4b7982('0x5')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x481a4b,_0x5f35ad,_0x2e931f);})[_0x1c5d99('0x1')](function(_0x2baa14){logger['info'](util['inspect'](_0x2baa14,{'showHidden':![],'depth':null}));});});},Migration[_0x13cbd5('0x24')][_0x13cbd5('0x27')]=function(_0x52a01a){const _0x5ec00d=_0x13cbd5;this[_0x5ec00d('0xa')][_0x5ec00d('0xb')](function(){return _0x52a01a();});},module[_0x13cbd5('0x13')]={'up':function(_0x1ff88b,_0x2b7b2d){return new Promise(function(_0x4c5660){const _0x16c9bb=a1007_0x4c31,_0x1b4997=new Migration(_0x1ff88b);_0x1b4997[_0x16c9bb('0x3')](_0x16c9bb('0x8'),_0x16c9bb('0x14')),_0x1b4997['addColumn']('int_zoho_accounts',_0x16c9bb('0x26'),{'type':_0x2b7b2d[_0x16c9bb('0x16')],'defaultValue':'EU'}),_0x1b4997[_0x16c9bb('0x2')](_0x16c9bb('0x8'),_0x16c9bb('0xf'),{'type':_0x2b7b2d['STRING']}),_0x1b4997[_0x16c9bb('0x2')](_0x16c9bb('0x8'),'clientSecret',{'type':_0x2b7b2d['STRING']}),_0x1b4997[_0x16c9bb('0x2')](_0x16c9bb('0x8'),_0x16c9bb('0x4'),{'type':_0x2b7b2d['STRING']}),_0x1b4997[_0x16c9bb('0x2')](_0x16c9bb('0x8'),_0x16c9bb('0x28'),{'type':_0x2b7b2d[_0x16c9bb('0x16')]}),_0x1b4997[_0x16c9bb('0x27')](_0x4c5660);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.5.js b/server/migrations/2.4.5.js index 8a64a27..7d1be80 100644 --- a/server/migrations/2.4.5.js +++ b/server/migrations/2.4.5.js @@ -1 +1 @@ -const a1008_0x2604=['query','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','then','exports','enqueue','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','queryInterface','dropTable','stringify','changeColumn','info','indicesType','sequelize','../config/logger','addIndex\x20%s\x20%s\x20%s\x20[%s]','indexName','inspect','table\x20dropped\x20%s','prototype','sequence','catch','tail','migration','final','finally'];(function(_0x3f3f37,_0x26040a){const _0x5d88c0=function(_0x166111){while(--_0x166111){_0x3f3f37['push'](_0x3f3f37['shift']());}};_0x5d88c0(++_0x26040a);}(a1008_0x2604,0x11c));const a1008_0x5d88=function(_0x3f3f37,_0x26040a){_0x3f3f37=_0x3f3f37-0x0;let _0x5d88c0=a1008_0x2604[_0x3f3f37];return _0x5d88c0;};const _0x5469e7=a1008_0x5d88;'use strict';const util=require('util'),logger=require(_0x5469e7('0xe'))(_0x5469e7('0x17')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x166111){const _0x186ec0=_0x5469e7;this['tail']=this[_0x186ec0('0x16')]?this[_0x186ec0('0x16')][_0x186ec0('0x19')](_0x166111):_0x166111();};const Migration=function(_0x55af37){const _0x52f7cd=_0x5469e7;this[_0x52f7cd('0x7')]=_0x55af37,this[_0x52f7cd('0x14')]=new Sequence();};Migration[_0x5469e7('0x13')][_0x5469e7('0xa')]=function(_0x3d8040,_0x4ea582,_0x5f46aa){const _0x28f339=_0x5469e7,_0x3f0e20=this;this[_0x28f339('0x14')][_0x28f339('0x3')](function(){const _0x2bceb8=_0x28f339;return _0x3f0e20['queryInterface'][_0x2bceb8('0xa')](_0x3d8040,_0x4ea582,_0x5f46aa)[_0x2bceb8('0x1')](function(){const _0x155675=_0x2bceb8;logger[_0x155675('0xb')](_0x155675('0x5'),_0x4ea582,_0x3d8040);})['catch'](function(_0x298d6c){const _0x23a8ad=_0x2bceb8;logger['info'](JSON[_0x23a8ad('0x9')](_0x298d6c));});});},Migration['prototype']['addColumn']=function(_0x997a9,_0x1e667b,_0x51ece6){const _0x45b53d=_0x5469e7,_0x21902e=this;this['sequence'][_0x45b53d('0x3')](function(){const _0x70bc39=_0x45b53d;return _0x21902e[_0x70bc39('0x7')]['addColumn'](_0x997a9,_0x1e667b,_0x51ece6)[_0x70bc39('0x1')](function(){const _0x5b4b29=_0x70bc39;logger[_0x5b4b29('0xb')](_0x5b4b29('0x6'),_0x1e667b,_0x997a9);})[_0x70bc39('0x15')](function(_0x1dbfb3){const _0x96c744=_0x70bc39;logger[_0x96c744('0xb')](JSON[_0x96c744('0x9')](_0x1dbfb3));});});},Migration[_0x5469e7('0x13')][_0x5469e7('0x8')]=function(_0x16f3ba){const _0x4c9a2d=_0x5469e7,_0x486439=this;this[_0x4c9a2d('0x14')]['enqueue'](function(){const _0x576334=_0x4c9a2d;return _0x486439['queryInterface'][_0x576334('0x8')](_0x16f3ba,{'force':!![]})[_0x576334('0x1')](function(){const _0x23d1e0=_0x576334;logger[_0x23d1e0('0xb')](_0x23d1e0('0x12'),_0x16f3ba);})['catch'](function(_0x5857be){const _0x5deb16=_0x576334;logger[_0x5deb16('0xb')](JSON[_0x5deb16('0x9')](_0x5857be));});});},Migration[_0x5469e7('0x13')][_0x5469e7('0x1b')]=function(_0x16ae52,_0x523786,_0x597e17){const _0x3c0904=_0x5469e7,_0x16c762=this;this['sequence'][_0x3c0904('0x3')](function(){const _0xf7062e=_0x3c0904;return _0x16c762['queryInterface']['addIndex'](_0x16ae52,_0x523786,{'indexName':_0x597e17[_0xf7062e('0x10')],'indicesType':_0x597e17[_0xf7062e('0xc')]})[_0xf7062e('0x1')](function(){const _0x2c7e35=_0xf7062e;logger[_0x2c7e35('0xb')](_0x2c7e35('0xf'),_0x16ae52,_0x523786['join'](','),_0x597e17[_0x2c7e35('0x10')],_0x597e17[_0x2c7e35('0xc')]);})[_0xf7062e('0x15')](function(_0xd3e71){const _0x1e2a90=_0xf7062e;logger[_0x1e2a90('0xb')](JSON[_0x1e2a90('0x9')](_0xd3e71));});});},Migration['prototype']['removeIndex']=function(_0x5f2754,_0x576a8a){const _0x44a642=_0x5469e7,_0x451db6=this;this[_0x44a642('0x14')][_0x44a642('0x3')](function(){const _0x1d6a8c=_0x44a642;return _0x451db6[_0x1d6a8c('0x7')]['removeIndex'](_0x5f2754,_0x576a8a)[_0x1d6a8c('0x1')](function(){const _0x35c24e=_0x1d6a8c;logger[_0x35c24e('0xb')](_0x35c24e('0x1d'),_0x5f2754,_0x576a8a);})[_0x1d6a8c('0x15')](function(_0x396549){const _0x515550=_0x1d6a8c;logger[_0x515550('0xb')](JSON[_0x515550('0x9')](_0x396549));});});},Migration[_0x5469e7('0x13')][_0x5469e7('0x1a')]=function(_0x3cd648){const _0x1a7980=_0x5469e7,_0x105c44=this;this[_0x1a7980('0x14')][_0x1a7980('0x3')](function(){const _0x4d7e2a=_0x1a7980;return _0x105c44['queryInterface'][_0x4d7e2a('0xd')][_0x4d7e2a('0x1a')](_0x3cd648)[_0x4d7e2a('0x1')](function(){const _0xf18787=_0x4d7e2a;logger[_0xf18787('0xb')](_0xf18787('0x1e'),_0x3cd648);})[_0x4d7e2a('0x15')](function(_0x4ef444){const _0x2d7a11=_0x4d7e2a;logger['info'](JSON[_0x2d7a11('0x9')](_0x4ef444));});});},Migration[_0x5469e7('0x13')]['removeColumn']=function(_0x42154d,_0x519da6){const _0x54ca8e=_0x5469e7,_0x32dc6f=this;this[_0x54ca8e('0x14')][_0x54ca8e('0x3')](function(){const _0x381c77=_0x54ca8e;return _0x32dc6f[_0x381c77('0x7')]['removeColumn'](_0x42154d,_0x519da6)[_0x381c77('0x1')](function(){const _0x55bbae=_0x381c77;logger[_0x55bbae('0xb')](_0x55bbae('0x0'),_0x519da6,_0x42154d);})['catch'](function(_0xc94387){const _0xbaf62e=_0x381c77;logger[_0xbaf62e('0xb')](util[_0xbaf62e('0x11')](_0xc94387,{'showHidden':![],'depth':null}));});});},Migration[_0x5469e7('0x13')][_0x5469e7('0x4')]=function(_0x1a41c3,_0x4a2687,_0x41e4ef){const _0x23426f=_0x5469e7,_0x2795e0=this;this[_0x23426f('0x14')][_0x23426f('0x3')](function(){const _0x482cdd=_0x23426f;return _0x2795e0[_0x482cdd('0x7')][_0x482cdd('0x4')](_0x1a41c3,_0x4a2687,_0x41e4ef)[_0x482cdd('0x1')](function(){const _0x5f284a=_0x482cdd;logger[_0x5f284a('0xb')](_0x5f284a('0x1c'),_0x4a2687,_0x41e4ef,_0x1a41c3);})[_0x482cdd('0x15')](function(_0x3f6f06){const _0x1b7418=_0x482cdd;logger[_0x1b7418('0xb')](util[_0x1b7418('0x11')](_0x3f6f06,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x1f5975){const _0xc681fc=_0x5469e7;this[_0xc681fc('0x14')]['enqueue'](function(){return _0x1f5975();});},module[_0x5469e7('0x2')]={'up':function(_0x2fd5ec){return new Promise(function(_0x42bc50){const _0x16fd60=a1008_0x5d88,_0x1b779a=new Migration(_0x2fd5ec);_0x1b779a[_0x16fd60('0x18')](_0x42bc50);});},'down':function(){}}; \ No newline at end of file +const a1008_0x46f1=['removeIndex\x20%s\x20%s','then','catch','query','sequence','inspect','final','Removed\x20column\x20%s\x20from\x20%s','indexName','addIndex','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','addColumn','dropTable','removeColumn','migration','changeColumn','queryInterface','prototype','util','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','table\x20dropped\x20%s','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','removeIndex','sequelize','info','renameColumn','../config/logger'];(function(_0x4f81db,_0x46f1d6){const _0x5f2337=function(_0x25b80a){while(--_0x25b80a){_0x4f81db['push'](_0x4f81db['shift']());}};_0x5f2337(++_0x46f1d6);}(a1008_0x46f1,0x67));const a1008_0x5f23=function(_0x4f81db,_0x46f1d6){_0x4f81db=_0x4f81db-0x0;let _0x5f2337=a1008_0x46f1[_0x4f81db];return _0x5f2337;};const _0x2ada1a=a1008_0x5f23;'use strict';const util=require(_0x2ada1a('0xd')),logger=require(_0x2ada1a('0x18'))(_0x2ada1a('0x9')),Sequence=function(){};Sequence[_0x2ada1a('0xc')][_0x2ada1a('0x3')]=function(_0x25b80a){const _0x2c0c50=_0x2ada1a;this[_0x2c0c50('0x13')]=this['tail']?this['tail']['finally'](_0x25b80a):_0x25b80a();};const Migration=function(_0x10996a){const _0xa04123=_0x2ada1a;this[_0xa04123('0xb')]=_0x10996a,this[_0xa04123('0x1d')]=new Sequence();};Migration['prototype'][_0x2ada1a('0xa')]=function(_0x2ebc8e,_0x37b831,_0xfe7ff1){const _0x2217eb=_0x2ada1a,_0x56a283=this;this[_0x2217eb('0x1d')][_0x2217eb('0x3')](function(){const _0x56de80=_0x2217eb;return _0x56a283[_0x56de80('0xb')][_0x56de80('0xa')](_0x2ebc8e,_0x37b831,_0xfe7ff1)[_0x56de80('0x1a')](function(){const _0x31fb63=_0x56de80;logger[_0x31fb63('0x16')](_0x31fb63('0x12'),_0x37b831,_0x2ebc8e);})[_0x56de80('0x1b')](function(_0x3edb7f){const _0x43ff36=_0x56de80;logger[_0x43ff36('0x16')](JSON['stringify'](_0x3edb7f));});});},Migration['prototype'][_0x2ada1a('0x6')]=function(_0x1f64e6,_0x27e427,_0x15f1aa){const _0x138cc6=_0x2ada1a,_0x33831f=this;this['sequence'][_0x138cc6('0x3')](function(){const _0xe62e5b=_0x138cc6;return _0x33831f[_0xe62e5b('0xb')]['addColumn'](_0x1f64e6,_0x27e427,_0x15f1aa)[_0xe62e5b('0x1a')](function(){const _0x56994f=_0xe62e5b;logger[_0x56994f('0x16')]('Added\x20column\x20%s\x20to\x20%s',_0x27e427,_0x1f64e6);})['catch'](function(_0x403d6c){const _0x28b70e=_0xe62e5b;logger[_0x28b70e('0x16')](JSON[_0x28b70e('0x5')](_0x403d6c));});});},Migration[_0x2ada1a('0xc')][_0x2ada1a('0x7')]=function(_0x1fbd01){const _0x35e996=_0x2ada1a,_0x3d3ef8=this;this[_0x35e996('0x1d')][_0x35e996('0x3')](function(){const _0x3575e6=_0x35e996;return _0x3d3ef8[_0x3575e6('0xb')][_0x3575e6('0x7')](_0x1fbd01,{'force':!![]})[_0x3575e6('0x1a')](function(){const _0xf3f28c=_0x3575e6;logger[_0xf3f28c('0x16')](_0xf3f28c('0x10'),_0x1fbd01);})[_0x3575e6('0x1b')](function(_0x544daa){const _0x454cfd=_0x3575e6;logger[_0x454cfd('0x16')](JSON['stringify'](_0x544daa));});});},Migration['prototype'][_0x2ada1a('0x2')]=function(_0x5670ba,_0x211478,_0x8f063f){const _0x31289f=_0x2ada1a,_0x36c404=this;this['sequence'][_0x31289f('0x3')](function(){const _0x3f50f0=_0x31289f;return _0x36c404[_0x3f50f0('0xb')]['addIndex'](_0x5670ba,_0x211478,{'indexName':_0x8f063f[_0x3f50f0('0x1')],'indicesType':_0x8f063f[_0x3f50f0('0x11')]})[_0x3f50f0('0x1a')](function(){const _0x2e16bf=_0x3f50f0;logger[_0x2e16bf('0x16')](_0x2e16bf('0xf'),_0x5670ba,_0x211478['join'](','),_0x8f063f[_0x2e16bf('0x1')],_0x8f063f[_0x2e16bf('0x11')]);})['catch'](function(_0x59f993){logger['info'](JSON['stringify'](_0x59f993));});});},Migration[_0x2ada1a('0xc')][_0x2ada1a('0x14')]=function(_0xe36381,_0x169134){const _0x4e535a=_0x2ada1a,_0x41d87d=this;this[_0x4e535a('0x1d')]['enqueue'](function(){const _0x485757=_0x4e535a;return _0x41d87d[_0x485757('0xb')][_0x485757('0x14')](_0xe36381,_0x169134)['then'](function(){const _0x552cd9=_0x485757;logger[_0x552cd9('0x16')](_0x552cd9('0x19'),_0xe36381,_0x169134);})[_0x485757('0x1b')](function(_0x2dabc2){const _0x3e16ca=_0x485757;logger[_0x3e16ca('0x16')](JSON['stringify'](_0x2dabc2));});});},Migration['prototype'][_0x2ada1a('0x1c')]=function(_0x3c6362){const _0x2b6153=_0x2ada1a,_0x5ba490=this;this[_0x2b6153('0x1d')][_0x2b6153('0x3')](function(){const _0x45e86c=_0x2b6153;return _0x5ba490['queryInterface'][_0x45e86c('0x15')][_0x45e86c('0x1c')](_0x3c6362)[_0x45e86c('0x1a')](function(){const _0x23675d=_0x45e86c;logger[_0x23675d('0x16')](_0x23675d('0xe'),_0x3c6362);})[_0x45e86c('0x1b')](function(_0x23fd11){const _0x4124bc=_0x45e86c;logger[_0x4124bc('0x16')](JSON[_0x4124bc('0x5')](_0x23fd11));});});},Migration[_0x2ada1a('0xc')][_0x2ada1a('0x8')]=function(_0x5ed04f,_0x2c5b57){const _0xb6d18b=_0x2ada1a,_0xdc7dd0=this;this['sequence'][_0xb6d18b('0x3')](function(){const _0x52d096=_0xb6d18b;return _0xdc7dd0[_0x52d096('0xb')][_0x52d096('0x8')](_0x5ed04f,_0x2c5b57)['then'](function(){const _0x55ba38=_0x52d096;logger[_0x55ba38('0x16')](_0x55ba38('0x0'),_0x2c5b57,_0x5ed04f);})[_0x52d096('0x1b')](function(_0x3b101b){const _0x5118f9=_0x52d096;logger['info'](util[_0x5118f9('0x1e')](_0x3b101b,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x21d451,_0x43e351,_0x963098){const _0x5dd98f=_0x2ada1a,_0x57c1fd=this;this[_0x5dd98f('0x1d')]['enqueue'](function(){const _0x2c6a46=_0x5dd98f;return _0x57c1fd[_0x2c6a46('0xb')][_0x2c6a46('0x17')](_0x21d451,_0x43e351,_0x963098)['then'](function(){const _0x1a7b1c=_0x2c6a46;logger[_0x1a7b1c('0x16')](_0x1a7b1c('0x4'),_0x43e351,_0x963098,_0x21d451);})['catch'](function(_0x2bef9c){const _0x20966b=_0x2c6a46;logger[_0x20966b('0x16')](util[_0x20966b('0x1e')](_0x2bef9c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2ada1a('0x1f')]=function(_0x133687){const _0x2b99a6=_0x2ada1a;this[_0x2b99a6('0x1d')][_0x2b99a6('0x3')](function(){return _0x133687();});},module['exports']={'up':function(_0x52df38){return new Promise(function(_0xb321e){const _0x37cbe5=a1008_0x5f23,_0x30089f=new Migration(_0x52df38);_0x30089f[_0x37cbe5('0x1f')](_0xb321e);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.6.js b/server/migrations/2.4.6.js index f53af17..780f8b5 100644 --- a/server/migrations/2.4.6.js +++ b/server/migrations/2.4.6.js @@ -1 +1 @@ -const a1009_0x17be=['query','removeIndex\x20%s\x20%s','tail','then','removeColumn','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','stringify','dropTable','enqueue','info','query\x20%s','sequelize','inspect','addColumn','addIndex','migration','changeColumn','renameColumn','indicesType','Removed\x20column\x20%s\x20from\x20%s','removeIndex','final','sequence','finally','table\x20dropped\x20%s','catch','prototype'];(function(_0x458630,_0x17bee1){const _0x37cf7b=function(_0x47d107){while(--_0x47d107){_0x458630['push'](_0x458630['shift']());}};_0x37cf7b(++_0x17bee1);}(a1009_0x17be,0x144));const a1009_0x37cf=function(_0x458630,_0x17bee1){_0x458630=_0x458630-0x0;let _0x37cf7b=a1009_0x17be[_0x458630];return _0x37cf7b;};const _0x1995e3=a1009_0x37cf;'use strict';const util=require('util'),logger=require(_0x1995e3('0x18'))(_0x1995e3('0x5')),Sequence=function(){};Sequence[_0x1995e3('0x10')][_0x1995e3('0x1d')]=function(_0x47d107){const _0xc39cf=_0x1995e3;this['tail']=this[_0xc39cf('0x13')]?this[_0xc39cf('0x13')][_0xc39cf('0xd')](_0x47d107):_0x47d107();};const Migration=function(_0x3e2e37){const _0x2c1238=_0x1995e3;this[_0x2c1238('0x16')]=_0x3e2e37,this[_0x2c1238('0xc')]=new Sequence();};Migration['prototype'][_0x1995e3('0x6')]=function(_0x5a79a4,_0xca8b5,_0x56e88c){const _0x3ad3a3=_0x1995e3,_0x5cda9d=this;this[_0x3ad3a3('0xc')]['enqueue'](function(){const _0x4c5fb0=_0x3ad3a3;return _0x5cda9d[_0x4c5fb0('0x16')]['changeColumn'](_0x5a79a4,_0xca8b5,_0x56e88c)[_0x4c5fb0('0x14')](function(){const _0x4157ca=_0x4c5fb0;logger[_0x4157ca('0x1e')](_0x4157ca('0x19'),_0xca8b5,_0x5a79a4);})[_0x4c5fb0('0xf')](function(_0x532632){const _0x5600d9=_0x4c5fb0;logger[_0x5600d9('0x1e')](JSON['stringify'](_0x532632));});});},Migration[_0x1995e3('0x10')][_0x1995e3('0x3')]=function(_0x3acb1c,_0x305574,_0x3e262e){const _0x2ddd9d=_0x1995e3,_0x20af0a=this;this['sequence'][_0x2ddd9d('0x1d')](function(){const _0x350a69=_0x2ddd9d;return _0x20af0a[_0x350a69('0x16')]['addColumn'](_0x3acb1c,_0x305574,_0x3e262e)['then'](function(){const _0x529d25=_0x350a69;logger[_0x529d25('0x1e')]('Added\x20column\x20%s\x20to\x20%s',_0x305574,_0x3acb1c);})[_0x350a69('0xf')](function(_0x6d957c){const _0x4a991a=_0x350a69;logger[_0x4a991a('0x1e')](JSON[_0x4a991a('0x1b')](_0x6d957c));});});},Migration['prototype'][_0x1995e3('0x1c')]=function(_0x4d405d){const _0xd4dc5a=_0x1995e3,_0x4ac8b4=this;this[_0xd4dc5a('0xc')][_0xd4dc5a('0x1d')](function(){const _0x6db9a5=_0xd4dc5a;return _0x4ac8b4[_0x6db9a5('0x16')][_0x6db9a5('0x1c')](_0x4d405d,{'force':!![]})[_0x6db9a5('0x14')](function(){const _0x138b2e=_0x6db9a5;logger[_0x138b2e('0x1e')](_0x138b2e('0xe'),_0x4d405d);})[_0x6db9a5('0xf')](function(_0x6c952a){const _0xa477d4=_0x6db9a5;logger[_0xa477d4('0x1e')](JSON[_0xa477d4('0x1b')](_0x6c952a));});});},Migration['prototype']['addIndex']=function(_0x1bc59b,_0x1aff9c,_0x595d09){const _0x3dff36=_0x1995e3,_0x18f727=this;this[_0x3dff36('0xc')][_0x3dff36('0x1d')](function(){const _0xf2bc9e=_0x3dff36;return _0x18f727[_0xf2bc9e('0x16')][_0xf2bc9e('0x4')](_0x1bc59b,_0x1aff9c,{'indexName':_0x595d09[_0xf2bc9e('0x1a')],'indicesType':_0x595d09['indicesType']})[_0xf2bc9e('0x14')](function(){const _0x83b30e=_0xf2bc9e;logger['info'](_0x83b30e('0x17'),_0x1bc59b,_0x1aff9c['join'](','),_0x595d09[_0x83b30e('0x1a')],_0x595d09[_0x83b30e('0x8')]);})[_0xf2bc9e('0xf')](function(_0x447f7b){const _0x3f90c3=_0xf2bc9e;logger[_0x3f90c3('0x1e')](JSON['stringify'](_0x447f7b));});});},Migration[_0x1995e3('0x10')][_0x1995e3('0xa')]=function(_0x33d97a,_0x5bc131){const _0x31559a=_0x1995e3,_0x4e850d=this;this[_0x31559a('0xc')]['enqueue'](function(){const _0xcc9111=_0x31559a;return _0x4e850d[_0xcc9111('0x16')]['removeIndex'](_0x33d97a,_0x5bc131)['then'](function(){const _0x4cb600=_0xcc9111;logger['info'](_0x4cb600('0x12'),_0x33d97a,_0x5bc131);})[_0xcc9111('0xf')](function(_0x1394f6){const _0x2f58a6=_0xcc9111;logger[_0x2f58a6('0x1e')](JSON[_0x2f58a6('0x1b')](_0x1394f6));});});},Migration[_0x1995e3('0x10')][_0x1995e3('0x11')]=function(_0x429fb7){const _0x30164b=_0x1995e3,_0x31a4ea=this;this[_0x30164b('0xc')]['enqueue'](function(){const _0x4e3764=_0x30164b;return _0x31a4ea[_0x4e3764('0x16')][_0x4e3764('0x1')][_0x4e3764('0x11')](_0x429fb7)['then'](function(){const _0x16c811=_0x4e3764;logger[_0x16c811('0x1e')](_0x16c811('0x0'),_0x429fb7);})['catch'](function(_0x2c8ab2){const _0x3f3835=_0x4e3764;logger['info'](JSON[_0x3f3835('0x1b')](_0x2c8ab2));});});},Migration[_0x1995e3('0x10')][_0x1995e3('0x15')]=function(_0x3219f3,_0x530ec7){const _0x3bb373=_0x1995e3,_0xae56a8=this;this[_0x3bb373('0xc')][_0x3bb373('0x1d')](function(){const _0x1fed41=_0x3bb373;return _0xae56a8[_0x1fed41('0x16')][_0x1fed41('0x15')](_0x3219f3,_0x530ec7)['then'](function(){const _0xe08017=_0x1fed41;logger[_0xe08017('0x1e')](_0xe08017('0x9'),_0x530ec7,_0x3219f3);})[_0x1fed41('0xf')](function(_0x2f38de){const _0x44f117=_0x1fed41;logger[_0x44f117('0x1e')](util[_0x44f117('0x2')](_0x2f38de,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1995e3('0x7')]=function(_0x479cbe,_0x181dc5,_0x41834e){const _0x9a6b4d=_0x1995e3,_0x4246e6=this;this['sequence'][_0x9a6b4d('0x1d')](function(){const _0x58994d=_0x9a6b4d;return _0x4246e6[_0x58994d('0x16')][_0x58994d('0x7')](_0x479cbe,_0x181dc5,_0x41834e)[_0x58994d('0x14')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x181dc5,_0x41834e,_0x479cbe);})['catch'](function(_0x587979){const _0x5cc8c4=_0x58994d;logger[_0x5cc8c4('0x1e')](util[_0x5cc8c4('0x2')](_0x587979,{'showHidden':![],'depth':null}));});});},Migration[_0x1995e3('0x10')][_0x1995e3('0xb')]=function(_0x5dff73){const _0x5ee79c=_0x1995e3;this[_0x5ee79c('0xc')][_0x5ee79c('0x1d')](function(){return _0x5dff73();});},module['exports']={'up':function(_0x4c92e3){return new Promise(function(_0x34bdd7){const _0x2ed236=new Migration(_0x4c92e3);_0x2ed236['final'](_0x34bdd7);});},'down':function(){}}; \ No newline at end of file +const a1009_0x1f80=['indicesType','removeIndex','tail','dropTable','queryInterface','removeIndex\x20%s\x20%s','then','renameColumn','inspect','info','join','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','indexName','table\x20dropped\x20%s','util','removeColumn','addIndex','migration','final','../config/logger','addColumn','changeColumn','sequelize','sequence','query\x20%s','catch','query','enqueue','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x29e9ef,_0x1f80cb){const _0x45cac8=function(_0x1369ad){while(--_0x1369ad){_0x29e9ef['push'](_0x29e9ef['shift']());}};_0x45cac8(++_0x1f80cb);}(a1009_0x1f80,0x127));const a1009_0x45ca=function(_0x29e9ef,_0x1f80cb){_0x29e9ef=_0x29e9ef-0x0;let _0x45cac8=a1009_0x1f80[_0x29e9ef];return _0x45cac8;};const _0x3c813b=a1009_0x45ca;'use strict';const util=require(_0x3c813b('0x12')),logger=require(_0x3c813b('0x17'))(_0x3c813b('0x15')),Sequence=function(){};Sequence[_0x3c813b('0x20')][_0x3c813b('0x1f')]=function(_0x1369ad){const _0x16be10=_0x3c813b;this[_0x16be10('0x4')]=this[_0x16be10('0x4')]?this[_0x16be10('0x4')]['finally'](_0x1369ad):_0x1369ad();};const Migration=function(_0x4146f5){const _0x51d856=_0x3c813b;this[_0x51d856('0x6')]=_0x4146f5,this['sequence']=new Sequence();};Migration[_0x3c813b('0x20')][_0x3c813b('0x19')]=function(_0xff48a7,_0x4cec87,_0x221d23){const _0x51c93b=_0x3c813b,_0x4c4465=this;this[_0x51c93b('0x1b')][_0x51c93b('0x1f')](function(){const _0x51e00b=_0x51c93b;return _0x4c4465[_0x51e00b('0x6')]['changeColumn'](_0xff48a7,_0x4cec87,_0x221d23)[_0x51e00b('0x8')](function(){const _0x5a5f3=_0x51e00b;logger['info'](_0x5a5f3('0xe'),_0x4cec87,_0xff48a7);})[_0x51e00b('0x1d')](function(_0x553a18){const _0x3294d9=_0x51e00b;logger[_0x3294d9('0xb')](JSON[_0x3294d9('0xd')](_0x553a18));});});},Migration['prototype'][_0x3c813b('0x18')]=function(_0x5a8cd9,_0x57c989,_0x509e12){const _0x1f3725=_0x3c813b,_0x318929=this;this['sequence'][_0x1f3725('0x1f')](function(){const _0x5f5bfd=_0x1f3725;return _0x318929[_0x5f5bfd('0x6')][_0x5f5bfd('0x18')](_0x5a8cd9,_0x57c989,_0x509e12)[_0x5f5bfd('0x8')](function(){const _0x287485=_0x5f5bfd;logger[_0x287485('0xb')]('Added\x20column\x20%s\x20to\x20%s',_0x57c989,_0x5a8cd9);})['catch'](function(_0x171ea3){const _0x5ab046=_0x5f5bfd;logger[_0x5ab046('0xb')](JSON['stringify'](_0x171ea3));});});},Migration[_0x3c813b('0x20')][_0x3c813b('0x5')]=function(_0x56dcdd){const _0x37c230=_0x3c813b,_0x353305=this;this[_0x37c230('0x1b')]['enqueue'](function(){const _0x222f8b=_0x37c230;return _0x353305[_0x222f8b('0x6')][_0x222f8b('0x5')](_0x56dcdd,{'force':!![]})[_0x222f8b('0x8')](function(){const _0x240174=_0x222f8b;logger[_0x240174('0xb')](_0x240174('0x11'),_0x56dcdd);})[_0x222f8b('0x1d')](function(_0x4b4a50){const _0x35a211=_0x222f8b;logger[_0x35a211('0xb')](JSON[_0x35a211('0xd')](_0x4b4a50));});});},Migration[_0x3c813b('0x20')][_0x3c813b('0x14')]=function(_0x1b2c88,_0x336094,_0x33a4c5){const _0x301877=_0x3c813b,_0x53b235=this;this[_0x301877('0x1b')][_0x301877('0x1f')](function(){const _0x443eef=_0x301877;return _0x53b235['queryInterface'][_0x443eef('0x14')](_0x1b2c88,_0x336094,{'indexName':_0x33a4c5[_0x443eef('0x10')],'indicesType':_0x33a4c5[_0x443eef('0x2')]})['then'](function(){const _0x3f8749=_0x443eef;logger[_0x3f8749('0xb')](_0x3f8749('0x0'),_0x1b2c88,_0x336094[_0x3f8749('0xc')](','),_0x33a4c5[_0x3f8749('0x10')],_0x33a4c5[_0x3f8749('0x2')]);})[_0x443eef('0x1d')](function(_0x15f8d4){const _0x397653=_0x443eef;logger[_0x397653('0xb')](JSON[_0x397653('0xd')](_0x15f8d4));});});},Migration['prototype'][_0x3c813b('0x3')]=function(_0x423c53,_0x55b82f){const _0x42f655=_0x3c813b,_0x3c3092=this;this[_0x42f655('0x1b')][_0x42f655('0x1f')](function(){const _0x24eba3=_0x42f655;return _0x3c3092[_0x24eba3('0x6')][_0x24eba3('0x3')](_0x423c53,_0x55b82f)[_0x24eba3('0x8')](function(){const _0x4ca432=_0x24eba3;logger[_0x4ca432('0xb')](_0x4ca432('0x7'),_0x423c53,_0x55b82f);})[_0x24eba3('0x1d')](function(_0x577b80){const _0x13aab1=_0x24eba3;logger[_0x13aab1('0xb')](JSON[_0x13aab1('0xd')](_0x577b80));});});},Migration[_0x3c813b('0x20')][_0x3c813b('0x1e')]=function(_0x56a88b){const _0x571e94=_0x3c813b,_0x97ddef=this;this[_0x571e94('0x1b')][_0x571e94('0x1f')](function(){const _0x143d97=_0x571e94;return _0x97ddef[_0x143d97('0x6')][_0x143d97('0x1a')]['query'](_0x56a88b)[_0x143d97('0x8')](function(){const _0x17b19c=_0x143d97;logger['info'](_0x17b19c('0x1c'),_0x56a88b);})[_0x143d97('0x1d')](function(_0xfaabc5){const _0x51d806=_0x143d97;logger[_0x51d806('0xb')](JSON[_0x51d806('0xd')](_0xfaabc5));});});},Migration[_0x3c813b('0x20')][_0x3c813b('0x13')]=function(_0x34aaa5,_0x34e889){const _0x2afc6c=_0x3c813b,_0x3546bd=this;this[_0x2afc6c('0x1b')]['enqueue'](function(){const _0x4fafda=_0x2afc6c;return _0x3546bd[_0x4fafda('0x6')]['removeColumn'](_0x34aaa5,_0x34e889)[_0x4fafda('0x8')](function(){const _0x1c812a=_0x4fafda;logger[_0x1c812a('0xb')]('Removed\x20column\x20%s\x20from\x20%s',_0x34e889,_0x34aaa5);})['catch'](function(_0x8a6508){const _0x21c90b=_0x4fafda;logger[_0x21c90b('0xb')](util[_0x21c90b('0xa')](_0x8a6508,{'showHidden':![],'depth':null}));});});},Migration[_0x3c813b('0x20')][_0x3c813b('0x9')]=function(_0x501816,_0x42f726,_0x1a3198){const _0x56a121=_0x3c813b,_0x5e891c=this;this[_0x56a121('0x1b')][_0x56a121('0x1f')](function(){const _0x50cde9=_0x56a121;return _0x5e891c[_0x50cde9('0x6')][_0x50cde9('0x9')](_0x501816,_0x42f726,_0x1a3198)[_0x50cde9('0x8')](function(){const _0x2c0487=_0x50cde9;logger[_0x2c0487('0xb')](_0x2c0487('0x1'),_0x42f726,_0x1a3198,_0x501816);})[_0x50cde9('0x1d')](function(_0x374b58){const _0x38bf0f=_0x50cde9;logger['info'](util[_0x38bf0f('0xa')](_0x374b58,{'showHidden':![],'depth':null}));});});},Migration[_0x3c813b('0x20')][_0x3c813b('0x16')]=function(_0x528e0f){const _0x4686f8=_0x3c813b;this['sequence'][_0x4686f8('0x1f')](function(){return _0x528e0f();});},module[_0x3c813b('0xf')]={'up':function(_0x46966e){return new Promise(function(_0x2c2a91){const _0x25bb01=new Migration(_0x46966e);_0x25bb01['final'](_0x2c2a91);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.7.js b/server/migrations/2.4.7.js index 2e00a8b..3c1b9c8 100644 --- a/server/migrations/2.4.7.js +++ b/server/migrations/2.4.7.js @@ -1 +1 @@ -const a1010_0x4cf0=['dropTable','finally','removeColumn','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','enableSendButton','exports','feedbackTitle','final','BOOLEAN','removeIndex\x20%s\x20%s','then','moduleCreate','indicesType','../config/logger','info','query','queryInterface','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','table\x20dropped\x20%s','migration','Feedback','enqueue','inspect','indexName','sequence','catch','STRING','Leads','addColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','query\x20%s','stringify','removeIndex','customerPort'];(function(_0x489e72,_0x4cf0d3){const _0x15220e=function(_0x4ffe42){while(--_0x4ffe42){_0x489e72['push'](_0x489e72['shift']());}};_0x15220e(++_0x4cf0d3);}(a1010_0x4cf0,0xc3));const a1010_0x1522=function(_0x489e72,_0x4cf0d3){_0x489e72=_0x489e72-0x0;let _0x15220e=a1010_0x4cf0[_0x489e72];return _0x15220e;};const _0x2527f9=a1010_0x1522;'use strict';const util=require('util'),logger=require(_0x2527f9('0x16'))(_0x2527f9('0x1d')),Sequence=function(){};Sequence[_0x2527f9('0x8')][_0x2527f9('0x1f')]=function(_0x4ffe42){const _0x234710=_0x2527f9;this[_0x234710('0xa')]=this[_0x234710('0xa')]?this[_0x234710('0xa')][_0x234710('0x6')](_0x4ffe42):_0x4ffe42();};const Migration=function(_0x4830fb){const _0x48a685=_0x2527f9;this[_0x48a685('0x19')]=_0x4830fb,this[_0x48a685('0x22')]=new Sequence();};Migration[_0x2527f9('0x8')][_0x2527f9('0xc')]=function(_0x57088b,_0xd759d,_0x193c82){const _0x3d1f0b=_0x2527f9,_0x19a0af=this;this[_0x3d1f0b('0x22')][_0x3d1f0b('0x1f')](function(){const _0x167d13=_0x3d1f0b;return _0x19a0af['queryInterface'][_0x167d13('0xc')](_0x57088b,_0xd759d,_0x193c82)[_0x167d13('0x13')](function(){const _0x33dc18=_0x167d13;logger[_0x33dc18('0x17')](_0x33dc18('0xb'),_0xd759d,_0x57088b);})[_0x167d13('0x23')](function(_0x349715){const _0x2409de=_0x167d13;logger[_0x2409de('0x17')](JSON[_0x2409de('0x2')](_0x349715));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x26')]=function(_0x38bc03,_0x1bfc16,_0x28c3a6){const _0xfda386=_0x2527f9,_0x9ac7b1=this;this['sequence'][_0xfda386('0x1f')](function(){const _0x36b9c4=_0xfda386;return _0x9ac7b1[_0x36b9c4('0x19')]['addColumn'](_0x38bc03,_0x1bfc16,_0x28c3a6)[_0x36b9c4('0x13')](function(){const _0x3a537f=_0x36b9c4;logger[_0x3a537f('0x17')](_0x3a537f('0x0'),_0x1bfc16,_0x38bc03);})['catch'](function(_0xd42dfb){const _0x544f73=_0x36b9c4;logger[_0x544f73('0x17')](JSON[_0x544f73('0x2')](_0xd42dfb));});});},Migration[_0x2527f9('0x8')]['dropTable']=function(_0x560cbe){const _0x36599c=_0x2527f9,_0x3a44b4=this;this[_0x36599c('0x22')]['enqueue'](function(){const _0x35ccee=_0x36599c;return _0x3a44b4['queryInterface'][_0x35ccee('0x5')](_0x560cbe,{'force':!![]})['then'](function(){const _0x2535cd=_0x35ccee;logger[_0x2535cd('0x17')](_0x2535cd('0x1c'),_0x560cbe);})[_0x35ccee('0x23')](function(_0x336f8a){const _0x17e40f=_0x35ccee;logger[_0x17e40f('0x17')](JSON['stringify'](_0x336f8a));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x27')]=function(_0x524a6d,_0x1f6eb6,_0x2efe15){const _0xbd421d=_0x2527f9,_0x5a4b78=this;this[_0xbd421d('0x22')][_0xbd421d('0x1f')](function(){const _0x631a86=_0xbd421d;return _0x5a4b78[_0x631a86('0x19')]['addIndex'](_0x524a6d,_0x1f6eb6,{'indexName':_0x2efe15[_0x631a86('0x21')],'indicesType':_0x2efe15[_0x631a86('0x15')]})[_0x631a86('0x13')](function(){const _0x37588b=_0x631a86;logger[_0x37588b('0x17')](_0x37588b('0x1b'),_0x524a6d,_0x1f6eb6['join'](','),_0x2efe15[_0x37588b('0x21')],_0x2efe15[_0x37588b('0x15')]);})[_0x631a86('0x23')](function(_0x4a7853){const _0x2c9c90=_0x631a86;logger[_0x2c9c90('0x17')](JSON[_0x2c9c90('0x2')](_0x4a7853));});});},Migration['prototype'][_0x2527f9('0x3')]=function(_0x5f4bb0,_0x224ec6){const _0x266df2=_0x2527f9,_0x5e3c88=this;this['sequence'][_0x266df2('0x1f')](function(){const _0x215628=_0x266df2;return _0x5e3c88['queryInterface'][_0x215628('0x3')](_0x5f4bb0,_0x224ec6)[_0x215628('0x13')](function(){const _0xbb5c04=_0x215628;logger[_0xbb5c04('0x17')](_0xbb5c04('0x12'),_0x5f4bb0,_0x224ec6);})[_0x215628('0x23')](function(_0x2d07fb){const _0x3e9676=_0x215628;logger[_0x3e9676('0x17')](JSON[_0x3e9676('0x2')](_0x2d07fb));});});},Migration[_0x2527f9('0x8')]['query']=function(_0x22d065){const _0xa7a9be=_0x2527f9,_0x34d3dd=this;this[_0xa7a9be('0x22')][_0xa7a9be('0x1f')](function(){const _0x451945=_0xa7a9be;return _0x34d3dd[_0x451945('0x19')]['sequelize'][_0x451945('0x18')](_0x22d065)[_0x451945('0x13')](function(){const _0x12c03c=_0x451945;logger[_0x12c03c('0x17')](_0x12c03c('0x1'),_0x22d065);})[_0x451945('0x23')](function(_0xecc99f){const _0x4b5764=_0x451945;logger[_0x4b5764('0x17')](JSON['stringify'](_0xecc99f));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x7')]=function(_0x7c5fd4,_0x530cd8){const _0x36a7fc=_0x2527f9,_0x418462=this;this['sequence'][_0x36a7fc('0x1f')](function(){const _0x482063=_0x36a7fc;return _0x418462['queryInterface'][_0x482063('0x7')](_0x7c5fd4,_0x530cd8)[_0x482063('0x13')](function(){const _0x500ed8=_0x482063;logger[_0x500ed8('0x17')]('Removed\x20column\x20%s\x20from\x20%s',_0x530cd8,_0x7c5fd4);})[_0x482063('0x23')](function(_0x4a1290){const _0x2d0877=_0x482063;logger[_0x2d0877('0x17')](util[_0x2d0877('0x20')](_0x4a1290,{'showHidden':![],'depth':null}));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x1a')]=function(_0x3ad169,_0x35784c,_0x448b46){const _0x5e1070=_0x2527f9,_0x353532=this;this[_0x5e1070('0x22')][_0x5e1070('0x1f')](function(){const _0x3de0a9=_0x5e1070;return _0x353532[_0x3de0a9('0x19')][_0x3de0a9('0x1a')](_0x3ad169,_0x35784c,_0x448b46)[_0x3de0a9('0x13')](function(){const _0x41505a=_0x3de0a9;logger[_0x41505a('0x17')](_0x41505a('0x9'),_0x35784c,_0x448b46,_0x3ad169);})['catch'](function(_0x943cc5){const _0x5e75a3=_0x3de0a9;logger[_0x5e75a3('0x17')](util[_0x5e75a3('0x20')](_0x943cc5,{'showHidden':![],'depth':null}));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x10')]=function(_0xdcbc9e){const _0x30fe5d=_0x2527f9;this[_0x30fe5d('0x22')]['enqueue'](function(){return _0xdcbc9e();});},module[_0x2527f9('0xe')]={'up':function(_0x4f698e,_0x386b01){return new Promise(function(_0x441ccb){const _0x578635=a1010_0x1522,_0x5c5903=new Migration(_0x4f698e);_0x5c5903[_0x578635('0x26')]('int_zoho_configurations',_0x578635('0x14'),{'type':_0x386b01['ENUM'](_0x578635('0x25'),'Contacts'),'defaultValue':_0x578635('0x25')}),_0x5c5903[_0x578635('0x26')]('chat_interactions',_0x578635('0x4'),{'type':_0x386b01[_0x578635('0x24')]}),_0x5c5903[_0x578635('0x26')]('chat_websites',_0x578635('0xd'),{'type':_0x386b01[_0x578635('0x11')],'defaultValue':![]}),_0x5c5903[_0x578635('0x26')]('chat_websites',_0x578635('0xf'),{'type':_0x386b01[_0x578635('0x24')],'defaultValue':_0x578635('0x1e')}),_0x5c5903[_0x578635('0x10')](_0x441ccb);});},'down':function(){}}; \ No newline at end of file +const a1010_0x1d81=['catch','Leads','addColumn','enableSendButton','chat_websites','table\x20dropped\x20%s','STRING','indexName','customerPort','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','util','feedbackTitle','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','renameColumn','removeIndex\x20%s\x20%s','indicesType','BOOLEAN','info','int_zoho_configurations','addIndex','ENUM','Contacts','final','removeColumn','queryInterface','enqueue','exports','finally','../config/logger','then','inspect','query','prototype','tail','sequelize','removeIndex','sequence','query\x20%s'];(function(_0x49d5d1,_0x1d8121){const _0x11d291=function(_0x48aa8d){while(--_0x48aa8d){_0x49d5d1['push'](_0x49d5d1['shift']());}};_0x11d291(++_0x1d8121);}(a1010_0x1d81,0x18a));const a1010_0x11d2=function(_0x49d5d1,_0x1d8121){_0x49d5d1=_0x49d5d1-0x0;let _0x11d291=a1010_0x1d81[_0x49d5d1];return _0x11d291;};const _0x3ae2a6=a1010_0x11d2;'use strict';const util=require(_0x3ae2a6('0x11')),logger=require(_0x3ae2a6('0x24'))('migration'),Sequence=function(){};Sequence[_0x3ae2a6('0x0')]['enqueue']=function(_0x48aa8d){const _0x28360c=_0x3ae2a6;this['tail']=this[_0x28360c('0x1')]?this[_0x28360c('0x1')][_0x28360c('0x23')](_0x48aa8d):_0x48aa8d();};const Migration=function(_0x43f1bd){const _0xd57dc7=_0x3ae2a6;this[_0xd57dc7('0x20')]=_0x43f1bd,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x311daa,_0x4a7bd2,_0x3bbd0e){const _0x3ab3fe=_0x3ae2a6,_0xd733fb=this;this[_0x3ab3fe('0x4')][_0x3ab3fe('0x21')](function(){const _0x26baae=_0x3ab3fe;return _0xd733fb['queryInterface']['changeColumn'](_0x311daa,_0x4a7bd2,_0x3bbd0e)[_0x26baae('0x25')](function(){const _0xa7cd09=_0x26baae;logger[_0xa7cd09('0x19')](_0xa7cd09('0xf'),_0x4a7bd2,_0x311daa);})['catch'](function(_0x526e03){const _0x4bb6bc=_0x26baae;logger[_0x4bb6bc('0x19')](JSON[_0x4bb6bc('0x10')](_0x526e03));});});},Migration[_0x3ae2a6('0x0')][_0x3ae2a6('0x8')]=function(_0x36e20f,_0x4a6b85,_0x3d7a44){const _0x1bf559=_0x3ae2a6,_0x522a96=this;this[_0x1bf559('0x4')][_0x1bf559('0x21')](function(){const _0x3eb3c4=_0x1bf559;return _0x522a96[_0x3eb3c4('0x20')][_0x3eb3c4('0x8')](_0x36e20f,_0x4a6b85,_0x3d7a44)[_0x3eb3c4('0x25')](function(){const _0x4a7450=_0x3eb3c4;logger[_0x4a7450('0x19')]('Added\x20column\x20%s\x20to\x20%s',_0x4a6b85,_0x36e20f);})[_0x3eb3c4('0x6')](function(_0x4d0372){const _0x211692=_0x3eb3c4;logger[_0x211692('0x19')](JSON[_0x211692('0x10')](_0x4d0372));});});},Migration['prototype'][_0x3ae2a6('0x14')]=function(_0x18cb56){const _0x121916=_0x3ae2a6,_0x43b56a=this;this[_0x121916('0x4')][_0x121916('0x21')](function(){const _0x44f25e=_0x121916;return _0x43b56a[_0x44f25e('0x20')][_0x44f25e('0x14')](_0x18cb56,{'force':!![]})['then'](function(){const _0x18f5a7=_0x44f25e;logger[_0x18f5a7('0x19')](_0x18f5a7('0xb'),_0x18cb56);})[_0x44f25e('0x6')](function(_0x4a1e24){const _0x29318d=_0x44f25e;logger[_0x29318d('0x19')](JSON[_0x29318d('0x10')](_0x4a1e24));});});},Migration[_0x3ae2a6('0x0')]['addIndex']=function(_0x135d7d,_0x2962a6,_0x2b6192){const _0x1b809d=_0x3ae2a6,_0x4cba87=this;this['sequence'][_0x1b809d('0x21')](function(){const _0x474d17=_0x1b809d;return _0x4cba87[_0x474d17('0x20')][_0x474d17('0x1b')](_0x135d7d,_0x2962a6,{'indexName':_0x2b6192[_0x474d17('0xd')],'indicesType':_0x2b6192[_0x474d17('0x17')]})[_0x474d17('0x25')](function(){const _0x3491d5=_0x474d17;logger[_0x3491d5('0x19')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x135d7d,_0x2962a6['join'](','),_0x2b6192['indexName'],_0x2b6192[_0x3491d5('0x17')]);})[_0x474d17('0x6')](function(_0x283fe5){const _0x54cfbf=_0x474d17;logger[_0x54cfbf('0x19')](JSON[_0x54cfbf('0x10')](_0x283fe5));});});},Migration['prototype'][_0x3ae2a6('0x3')]=function(_0x139492,_0x5bc8d8){const _0x5a2bdb=this;this['sequence']['enqueue'](function(){const _0x30b1d0=a1010_0x11d2;return _0x5a2bdb[_0x30b1d0('0x20')][_0x30b1d0('0x3')](_0x139492,_0x5bc8d8)['then'](function(){const _0x48233b=_0x30b1d0;logger[_0x48233b('0x19')](_0x48233b('0x16'),_0x139492,_0x5bc8d8);})[_0x30b1d0('0x6')](function(_0x5b76e6){const _0x36b476=_0x30b1d0;logger[_0x36b476('0x19')](JSON[_0x36b476('0x10')](_0x5b76e6));});});},Migration[_0x3ae2a6('0x0')][_0x3ae2a6('0x27')]=function(_0x1fdbbd){const _0x34da62=this;this['sequence']['enqueue'](function(){const _0x3dea57=a1010_0x11d2;return _0x34da62[_0x3dea57('0x20')][_0x3dea57('0x2')][_0x3dea57('0x27')](_0x1fdbbd)[_0x3dea57('0x25')](function(){const _0x2bdab0=_0x3dea57;logger[_0x2bdab0('0x19')](_0x2bdab0('0x5'),_0x1fdbbd);})[_0x3dea57('0x6')](function(_0x33d54d){const _0x3803aa=_0x3dea57;logger[_0x3803aa('0x19')](JSON['stringify'](_0x33d54d));});});},Migration[_0x3ae2a6('0x0')][_0x3ae2a6('0x1f')]=function(_0x1b0e26,_0x2d04e4){const _0x43be6c=_0x3ae2a6,_0x4b00b4=this;this[_0x43be6c('0x4')]['enqueue'](function(){const _0x2e2a45=_0x43be6c;return _0x4b00b4['queryInterface'][_0x2e2a45('0x1f')](_0x1b0e26,_0x2d04e4)[_0x2e2a45('0x25')](function(){const _0x4a0463=_0x2e2a45;logger[_0x4a0463('0x19')]('Removed\x20column\x20%s\x20from\x20%s',_0x2d04e4,_0x1b0e26);})['catch'](function(_0x383307){const _0x2f79ee=_0x2e2a45;logger[_0x2f79ee('0x19')](util['inspect'](_0x383307,{'showHidden':![],'depth':null}));});});},Migration[_0x3ae2a6('0x0')][_0x3ae2a6('0x15')]=function(_0x396af6,_0x39f246,_0x5d5207){const _0xbab1d6=_0x3ae2a6,_0x3a0854=this;this[_0xbab1d6('0x4')][_0xbab1d6('0x21')](function(){const _0x59c660=_0xbab1d6;return _0x3a0854[_0x59c660('0x20')]['renameColumn'](_0x396af6,_0x39f246,_0x5d5207)[_0x59c660('0x25')](function(){const _0x5eaafc=_0x59c660;logger[_0x5eaafc('0x19')](_0x5eaafc('0x13'),_0x39f246,_0x5d5207,_0x396af6);})[_0x59c660('0x6')](function(_0x3e8d49){const _0x537f68=_0x59c660;logger[_0x537f68('0x19')](util[_0x537f68('0x26')](_0x3e8d49,{'showHidden':![],'depth':null}));});});},Migration[_0x3ae2a6('0x0')][_0x3ae2a6('0x1e')]=function(_0x106330){const _0x408e57=_0x3ae2a6;this[_0x408e57('0x4')]['enqueue'](function(){return _0x106330();});},module[_0x3ae2a6('0x22')]={'up':function(_0x437f6f,_0x2743a1){return new Promise(function(_0x477d42){const _0x957e46=a1010_0x11d2,_0x1fd507=new Migration(_0x437f6f);_0x1fd507[_0x957e46('0x8')](_0x957e46('0x1a'),'moduleCreate',{'type':_0x2743a1[_0x957e46('0x1c')](_0x957e46('0x7'),_0x957e46('0x1d')),'defaultValue':'Leads'}),_0x1fd507[_0x957e46('0x8')]('chat_interactions',_0x957e46('0xe'),{'type':_0x2743a1[_0x957e46('0xc')]}),_0x1fd507[_0x957e46('0x8')](_0x957e46('0xa'),_0x957e46('0x9'),{'type':_0x2743a1[_0x957e46('0x18')],'defaultValue':![]}),_0x1fd507[_0x957e46('0x8')](_0x957e46('0xa'),_0x957e46('0x12'),{'type':_0x2743a1['STRING'],'defaultValue':'Feedback'}),_0x1fd507[_0x957e46('0x1e')](_0x477d42);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.8.js b/server/migrations/2.4.8.js index 7d26553..cbc8a1e 100644 --- a/server/migrations/2.4.8.js +++ b/server/migrations/2.4.8.js @@ -1 +1 @@ -const a1011_0x502a=['indexName','query','join','enqueue','queryInterface','util','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','addIndex','Removed\x20column\x20%s\x20from\x20%s','removeColumn','addColumn','finally','../config/logger','tail','dropTable','catch','prototype','final','query\x20%s','removeIndex','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','sequelize','then','sequence','table\x20dropped\x20%s','info','stringify','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s'];(function(_0x551ffc,_0x502ae5){const _0xe9e942=function(_0x2755b2){while(--_0x2755b2){_0x551ffc['push'](_0x551ffc['shift']());}};_0xe9e942(++_0x502ae5);}(a1011_0x502a,0x109));const a1011_0xe9e9=function(_0x551ffc,_0x502ae5){_0x551ffc=_0x551ffc-0x0;let _0xe9e942=a1011_0x502a[_0x551ffc];return _0xe9e942;};const _0x2ee2d6=a1011_0xe9e9;'use strict';const util=require(_0x2ee2d6('0x4')),logger=require(_0x2ee2d6('0xc'))('migration'),Sequence=function(){};Sequence['prototype'][_0x2ee2d6('0x2')]=function(_0x2755b2){const _0x4973f1=_0x2ee2d6;this[_0x4973f1('0xd')]=this['tail']?this[_0x4973f1('0xd')][_0x4973f1('0xb')](_0x2755b2):_0x2755b2();};const Migration=function(_0x563bcf){const _0x25fcad=_0x2ee2d6;this['queryInterface']=_0x563bcf,this[_0x25fcad('0x19')]=new Sequence();};Migration[_0x2ee2d6('0x10')]['changeColumn']=function(_0x42829f,_0x391f19,_0x53124a){const _0x22f3c9=this;this['sequence']['enqueue'](function(){const _0x5d781e=a1011_0xe9e9;return _0x22f3c9[_0x5d781e('0x3')]['changeColumn'](_0x42829f,_0x391f19,_0x53124a)[_0x5d781e('0x18')](function(){const _0x5d0e6a=_0x5d781e;logger[_0x5d0e6a('0x1b')](_0x5d0e6a('0x15'),_0x391f19,_0x42829f);})[_0x5d781e('0xf')](function(_0x1849fa){const _0x216346=_0x5d781e;logger[_0x216346('0x1b')](JSON[_0x216346('0x1c')](_0x1849fa));});});},Migration[_0x2ee2d6('0x10')][_0x2ee2d6('0xa')]=function(_0x1b7647,_0x2ae155,_0x38ba42){const _0x4d184b=_0x2ee2d6,_0x3d20b5=this;this[_0x4d184b('0x19')][_0x4d184b('0x2')](function(){const _0x57adab=_0x4d184b;return _0x3d20b5[_0x57adab('0x3')][_0x57adab('0xa')](_0x1b7647,_0x2ae155,_0x38ba42)[_0x57adab('0x18')](function(){const _0xff0d4b=_0x57adab;logger[_0xff0d4b('0x1b')](_0xff0d4b('0x1f'),_0x2ae155,_0x1b7647);})[_0x57adab('0xf')](function(_0x3c9a2f){const _0x2a6dad=_0x57adab;logger['info'](JSON[_0x2a6dad('0x1c')](_0x3c9a2f));});});},Migration[_0x2ee2d6('0x10')]['dropTable']=function(_0x58becd){const _0x19fc08=_0x2ee2d6,_0x126bb4=this;this[_0x19fc08('0x19')][_0x19fc08('0x2')](function(){const _0x14da06=_0x19fc08;return _0x126bb4[_0x14da06('0x3')][_0x14da06('0xe')](_0x58becd,{'force':!![]})[_0x14da06('0x18')](function(){const _0x5650de=_0x14da06;logger[_0x5650de('0x1b')](_0x5650de('0x1a'),_0x58becd);})[_0x14da06('0xf')](function(_0x1586b9){const _0x40ee63=_0x14da06;logger[_0x40ee63('0x1b')](JSON[_0x40ee63('0x1c')](_0x1586b9));});});},Migration[_0x2ee2d6('0x10')]['addIndex']=function(_0x42ea5c,_0x21c900,_0x2dd8d8){const _0x2f777e=_0x2ee2d6,_0x2c788b=this;this[_0x2f777e('0x19')][_0x2f777e('0x2')](function(){const _0x28985b=_0x2f777e;return _0x2c788b['queryInterface'][_0x28985b('0x7')](_0x42ea5c,_0x21c900,{'indexName':_0x2dd8d8['indexName'],'indicesType':_0x2dd8d8[_0x28985b('0x14')]})[_0x28985b('0x18')](function(){const _0xe97153=_0x28985b;logger[_0xe97153('0x1b')](_0xe97153('0x5'),_0x42ea5c,_0x21c900[_0xe97153('0x1')](','),_0x2dd8d8[_0xe97153('0x20')],_0x2dd8d8['indicesType']);})[_0x28985b('0xf')](function(_0x3be462){const _0x25edf1=_0x28985b;logger[_0x25edf1('0x1b')](JSON[_0x25edf1('0x1c')](_0x3be462));});});},Migration['prototype'][_0x2ee2d6('0x13')]=function(_0x153ae5,_0x2f2598){const _0x2e43dd=_0x2ee2d6,_0x42aa65=this;this[_0x2e43dd('0x19')]['enqueue'](function(){const _0x5d57bd=_0x2e43dd;return _0x42aa65[_0x5d57bd('0x3')][_0x5d57bd('0x13')](_0x153ae5,_0x2f2598)[_0x5d57bd('0x18')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x153ae5,_0x2f2598);})['catch'](function(_0x2d6e10){const _0x20342d=_0x5d57bd;logger['info'](JSON[_0x20342d('0x1c')](_0x2d6e10));});});},Migration['prototype'][_0x2ee2d6('0x0')]=function(_0x53423d){const _0x5239e9=_0x2ee2d6,_0x57aba6=this;this[_0x5239e9('0x19')][_0x5239e9('0x2')](function(){const _0x38a758=_0x5239e9;return _0x57aba6['queryInterface'][_0x38a758('0x17')][_0x38a758('0x0')](_0x53423d)[_0x38a758('0x18')](function(){const _0x2e2743=_0x38a758;logger[_0x2e2743('0x1b')](_0x2e2743('0x12'),_0x53423d);})[_0x38a758('0xf')](function(_0x247cba){const _0x2476cf=_0x38a758;logger[_0x2476cf('0x1b')](JSON[_0x2476cf('0x1c')](_0x247cba));});});},Migration[_0x2ee2d6('0x10')][_0x2ee2d6('0x9')]=function(_0x4b33ab,_0x5e8de1){const _0x505af2=this;this['sequence']['enqueue'](function(){const _0x354ab4=a1011_0xe9e9;return _0x505af2['queryInterface'][_0x354ab4('0x9')](_0x4b33ab,_0x5e8de1)[_0x354ab4('0x18')](function(){const _0x21beb9=_0x354ab4;logger['info'](_0x21beb9('0x8'),_0x5e8de1,_0x4b33ab);})[_0x354ab4('0xf')](function(_0x37ea49){logger['info'](util['inspect'](_0x37ea49,{'showHidden':![],'depth':null}));});});},Migration[_0x2ee2d6('0x10')]['renameColumn']=function(_0x61b510,_0x4facbb,_0xa90efa){const _0xe2cc4c=_0x2ee2d6,_0x1f5bbf=this;this[_0xe2cc4c('0x19')]['enqueue'](function(){const _0x1b82da=_0xe2cc4c;return _0x1f5bbf['queryInterface'][_0x1b82da('0x16')](_0x61b510,_0x4facbb,_0xa90efa)[_0x1b82da('0x18')](function(){const _0x498e8e=_0x1b82da;logger['info'](_0x498e8e('0x1e'),_0x4facbb,_0xa90efa,_0x61b510);})[_0x1b82da('0xf')](function(_0x395eb2){const _0x81de9a=_0x1b82da;logger[_0x81de9a('0x1b')](util[_0x81de9a('0x6')](_0x395eb2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2ee2d6('0x11')]=function(_0x5699df){const _0x2a9dc9=_0x2ee2d6;this[_0x2a9dc9('0x19')][_0x2a9dc9('0x2')](function(){return _0x5699df();});},module[_0x2ee2d6('0x1d')]={'up':function(_0x4c94f4){return new Promise(function(_0x1af12e){const _0x4e1f8d=a1011_0xe9e9,_0x2211dc=new Migration(_0x4c94f4);_0x2211dc[_0x4e1f8d('0x11')](_0x1af12e);});},'down':function(){}}; \ No newline at end of file +const a1011_0x5077=['sequence','query','dropTable','final','enqueue','finally','catch','removeIndex\x20%s\x20%s','changeColumn','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','then','removeColumn','table\x20dropped\x20%s','tail','renameColumn','sequelize','removeIndex','addIndex','migration','util','Changed\x20column\x20%s\x20in\x20table\x20%s','info','indicesType','prototype','inspect','indexName','exports','query\x20%s','stringify'];(function(_0x2f73bc,_0x50774d){const _0x581067=function(_0x3d32be){while(--_0x3d32be){_0x2f73bc['push'](_0x2f73bc['shift']());}};_0x581067(++_0x50774d);}(a1011_0x5077,0x162));const a1011_0x5810=function(_0x2f73bc,_0x50774d){_0x2f73bc=_0x2f73bc-0x0;let _0x581067=a1011_0x5077[_0x2f73bc];return _0x581067;};const _0x26638b=a1011_0x5810;'use strict';const util=require(_0x26638b('0x8')),logger=require('../config/logger')(_0x26638b('0x7')),Sequence=function(){};Sequence[_0x26638b('0xc')]['enqueue']=function(_0x3d32be){const _0x46703a=_0x26638b;this['tail']=this[_0x46703a('0x2')]?this['tail'][_0x46703a('0x17')](_0x3d32be):_0x3d32be();};const Migration=function(_0x60b5c){const _0x55c8e1=_0x26638b;this[_0x55c8e1('0x1d')]=_0x60b5c,this[_0x55c8e1('0x12')]=new Sequence();};Migration['prototype'][_0x26638b('0x1a')]=function(_0x7fe8f4,_0x3c5d6e,_0x964eba){const _0x2bad64=_0x26638b,_0x30702e=this;this[_0x2bad64('0x12')]['enqueue'](function(){const _0x3bffc9=_0x2bad64;return _0x30702e[_0x3bffc9('0x1d')][_0x3bffc9('0x1a')](_0x7fe8f4,_0x3c5d6e,_0x964eba)[_0x3bffc9('0x1e')](function(){const _0x308a00=_0x3bffc9;logger['info'](_0x308a00('0x9'),_0x3c5d6e,_0x7fe8f4);})[_0x3bffc9('0x18')](function(_0x178bc3){const _0xe64f9a=_0x3bffc9;logger[_0xe64f9a('0xa')](JSON[_0xe64f9a('0x11')](_0x178bc3));});});},Migration[_0x26638b('0xc')][_0x26638b('0x1b')]=function(_0x174a4b,_0x448871,_0x31c6a0){const _0x1a3c0c=_0x26638b,_0x34fca9=this;this[_0x1a3c0c('0x12')]['enqueue'](function(){const _0x5e968d=_0x1a3c0c;return _0x34fca9[_0x5e968d('0x1d')][_0x5e968d('0x1b')](_0x174a4b,_0x448871,_0x31c6a0)[_0x5e968d('0x1e')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x448871,_0x174a4b);})[_0x5e968d('0x18')](function(_0x5477d0){const _0x235d79=_0x5e968d;logger[_0x235d79('0xa')](JSON[_0x235d79('0x11')](_0x5477d0));});});},Migration[_0x26638b('0xc')][_0x26638b('0x14')]=function(_0x595b4d){const _0x28a0d4=_0x26638b,_0x133a91=this;this[_0x28a0d4('0x12')]['enqueue'](function(){const _0x2edc92=_0x28a0d4;return _0x133a91['queryInterface'][_0x2edc92('0x14')](_0x595b4d,{'force':!![]})[_0x2edc92('0x1e')](function(){const _0x10fe8b=_0x2edc92;logger[_0x10fe8b('0xa')](_0x10fe8b('0x1'),_0x595b4d);})[_0x2edc92('0x18')](function(_0x202a34){const _0x29811a=_0x2edc92;logger[_0x29811a('0xa')](JSON[_0x29811a('0x11')](_0x202a34));});});},Migration[_0x26638b('0xc')][_0x26638b('0x6')]=function(_0x162271,_0x5a5f4a,_0x4fbbf1){const _0x422855=_0x26638b,_0x5d466b=this;this['sequence'][_0x422855('0x16')](function(){const _0x5ad86d=_0x422855;return _0x5d466b[_0x5ad86d('0x1d')][_0x5ad86d('0x6')](_0x162271,_0x5a5f4a,{'indexName':_0x4fbbf1[_0x5ad86d('0xe')],'indicesType':_0x4fbbf1[_0x5ad86d('0xb')]})[_0x5ad86d('0x1e')](function(){const _0x13ba77=_0x5ad86d;logger['info'](_0x13ba77('0x1c'),_0x162271,_0x5a5f4a['join'](','),_0x4fbbf1[_0x13ba77('0xe')],_0x4fbbf1[_0x13ba77('0xb')]);})['catch'](function(_0x24b91f){const _0x37dd9b=_0x5ad86d;logger[_0x37dd9b('0xa')](JSON[_0x37dd9b('0x11')](_0x24b91f));});});},Migration['prototype'][_0x26638b('0x5')]=function(_0x277336,_0x5bfb3e){const _0x373751=_0x26638b,_0x2569f2=this;this[_0x373751('0x12')][_0x373751('0x16')](function(){const _0x287fa5=_0x373751;return _0x2569f2['queryInterface']['removeIndex'](_0x277336,_0x5bfb3e)[_0x287fa5('0x1e')](function(){const _0x4e49db=_0x287fa5;logger[_0x4e49db('0xa')](_0x4e49db('0x19'),_0x277336,_0x5bfb3e);})[_0x287fa5('0x18')](function(_0x144e2d){logger['info'](JSON['stringify'](_0x144e2d));});});},Migration[_0x26638b('0xc')][_0x26638b('0x13')]=function(_0x32aedd){const _0x3033c5=_0x26638b,_0x5e7e40=this;this['sequence'][_0x3033c5('0x16')](function(){const _0x3b38f7=_0x3033c5;return _0x5e7e40['queryInterface'][_0x3b38f7('0x4')]['query'](_0x32aedd)[_0x3b38f7('0x1e')](function(){const _0x2a4796=_0x3b38f7;logger['info'](_0x2a4796('0x10'),_0x32aedd);})['catch'](function(_0xa6670a){const _0x2385fe=_0x3b38f7;logger[_0x2385fe('0xa')](JSON[_0x2385fe('0x11')](_0xa6670a));});});},Migration[_0x26638b('0xc')][_0x26638b('0x0')]=function(_0x3e0814,_0x1b4426){const _0x281af3=_0x26638b,_0x60746b=this;this['sequence'][_0x281af3('0x16')](function(){const _0x57b756=_0x281af3;return _0x60746b[_0x57b756('0x1d')]['removeColumn'](_0x3e0814,_0x1b4426)[_0x57b756('0x1e')](function(){const _0x2f440c=_0x57b756;logger[_0x2f440c('0xa')]('Removed\x20column\x20%s\x20from\x20%s',_0x1b4426,_0x3e0814);})[_0x57b756('0x18')](function(_0x5a183f){const _0x203fad=_0x57b756;logger[_0x203fad('0xa')](util[_0x203fad('0xd')](_0x5a183f,{'showHidden':![],'depth':null}));});});},Migration[_0x26638b('0xc')]['renameColumn']=function(_0x51db52,_0x32d6e9,_0x30c59e){const _0x5cacec=this;this['sequence']['enqueue'](function(){const _0x42f046=a1011_0x5810;return _0x5cacec['queryInterface'][_0x42f046('0x3')](_0x51db52,_0x32d6e9,_0x30c59e)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x32d6e9,_0x30c59e,_0x51db52);})[_0x42f046('0x18')](function(_0x14f002){const _0x2cdacf=_0x42f046;logger['info'](util[_0x2cdacf('0xd')](_0x14f002,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x330d21){const _0x446895=_0x26638b;this[_0x446895('0x12')]['enqueue'](function(){return _0x330d21();});},module[_0x26638b('0xf')]={'up':function(_0x57dbd6){return new Promise(function(_0x382667){const _0xb16a5b=a1011_0x5810,_0x7c9f27=new Migration(_0x57dbd6);_0x7c9f27[_0xb16a5b('0x15')](_0x382667);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.4.9.js b/server/migrations/2.4.9.js index 2fe343d..82b9d60 100644 --- a/server/migrations/2.4.9.js +++ b/server/migrations/2.4.9.js @@ -1 +1 @@ -const a1012_0x5641=['inspect','dropTable','indicesType','renameColumn','stringify','indexName','Added\x20column\x20%s\x20to\x20%s','enqueue','addIndex','../config/logger','query\x20%s','join','exports','prototype','sequence','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','table\x20dropped\x20%s','final','addColumn','tail','sequelize','util','query','then','finally','removeIndex','removeColumn','migration','queryInterface'];(function(_0x442f09,_0x5641da){const _0x469711=function(_0x635368){while(--_0x635368){_0x442f09['push'](_0x442f09['shift']());}};_0x469711(++_0x5641da);}(a1012_0x5641,0x16c));const a1012_0x4697=function(_0x442f09,_0x5641da){_0x442f09=_0x442f09-0x0;let _0x469711=a1012_0x5641[_0x442f09];return _0x469711;};const _0x3b1da8=a1012_0x4697;'use strict';const util=require(_0x3b1da8('0x0')),logger=require(_0x3b1da8('0x11'))(_0x3b1da8('0x6')),Sequence=function(){};Sequence['prototype'][_0x3b1da8('0xf')]=function(_0x635368){const _0x50091b=_0x3b1da8;this[_0x50091b('0x1d')]=this[_0x50091b('0x1d')]?this[_0x50091b('0x1d')][_0x50091b('0x3')](_0x635368):_0x635368();};const Migration=function(_0xb0775c){const _0x472e69=_0x3b1da8;this[_0x472e69('0x7')]=_0xb0775c,this[_0x472e69('0x16')]=new Sequence();};Migration[_0x3b1da8('0x15')]['changeColumn']=function(_0x4fc494,_0xa16fcc,_0x4a0303){const _0x5c716c=_0x3b1da8,_0x5309d3=this;this[_0x5c716c('0x16')][_0x5c716c('0xf')](function(){const _0x5af6db=_0x5c716c;return _0x5309d3[_0x5af6db('0x7')]['changeColumn'](_0x4fc494,_0xa16fcc,_0x4a0303)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xa16fcc,_0x4fc494);})[_0x5af6db('0x19')](function(_0x38a71b){const _0x18b5af=_0x5af6db;logger[_0x18b5af('0x17')](JSON[_0x18b5af('0xc')](_0x38a71b));});});},Migration['prototype']['addColumn']=function(_0xd885d2,_0x7bd35f,_0x473b1b){const _0x4451fb=_0x3b1da8,_0x24a20b=this;this['sequence'][_0x4451fb('0xf')](function(){const _0x4af9c1=_0x4451fb;return _0x24a20b[_0x4af9c1('0x7')][_0x4af9c1('0x1c')](_0xd885d2,_0x7bd35f,_0x473b1b)['then'](function(){const _0x4581f6=_0x4af9c1;logger[_0x4581f6('0x17')](_0x4581f6('0xe'),_0x7bd35f,_0xd885d2);})['catch'](function(_0x535f6b){const _0x3d1ea9=_0x4af9c1;logger[_0x3d1ea9('0x17')](JSON[_0x3d1ea9('0xc')](_0x535f6b));});});},Migration[_0x3b1da8('0x15')][_0x3b1da8('0x9')]=function(_0x52a754){const _0x155d07=_0x3b1da8,_0x13d4c4=this;this['sequence'][_0x155d07('0xf')](function(){const _0x5d4c0e=_0x155d07;return _0x13d4c4[_0x5d4c0e('0x7')]['dropTable'](_0x52a754,{'force':!![]})['then'](function(){const _0x1b2d69=_0x5d4c0e;logger[_0x1b2d69('0x17')](_0x1b2d69('0x1a'),_0x52a754);})['catch'](function(_0x323199){const _0x45f4f8=_0x5d4c0e;logger['info'](JSON[_0x45f4f8('0xc')](_0x323199));});});},Migration[_0x3b1da8('0x15')][_0x3b1da8('0x10')]=function(_0x44244a,_0x1694c0,_0x454b8f){const _0x3f2a42=_0x3b1da8,_0x1fb1c2=this;this['sequence'][_0x3f2a42('0xf')](function(){const _0x4522e2=_0x3f2a42;return _0x1fb1c2[_0x4522e2('0x7')][_0x4522e2('0x10')](_0x44244a,_0x1694c0,{'indexName':_0x454b8f[_0x4522e2('0xd')],'indicesType':_0x454b8f[_0x4522e2('0xa')]})['then'](function(){const _0x4ae58f=_0x4522e2;logger['info'](_0x4ae58f('0x18'),_0x44244a,_0x1694c0[_0x4ae58f('0x13')](','),_0x454b8f[_0x4ae58f('0xd')],_0x454b8f[_0x4ae58f('0xa')]);})[_0x4522e2('0x19')](function(_0x1c15a3){const _0x1b4e67=_0x4522e2;logger['info'](JSON[_0x1b4e67('0xc')](_0x1c15a3));});});},Migration[_0x3b1da8('0x15')][_0x3b1da8('0x4')]=function(_0xaae6d6,_0x4bc9ff){const _0x378217=_0x3b1da8,_0x222135=this;this[_0x378217('0x16')]['enqueue'](function(){const _0x1f5f60=_0x378217;return _0x222135[_0x1f5f60('0x7')][_0x1f5f60('0x4')](_0xaae6d6,_0x4bc9ff)['then'](function(){const _0x55ab8a=_0x1f5f60;logger[_0x55ab8a('0x17')]('removeIndex\x20%s\x20%s',_0xaae6d6,_0x4bc9ff);})['catch'](function(_0x8c56){const _0x16805b=_0x1f5f60;logger[_0x16805b('0x17')](JSON[_0x16805b('0xc')](_0x8c56));});});},Migration['prototype'][_0x3b1da8('0x1')]=function(_0x99a596){const _0x4156b9=_0x3b1da8,_0x4e58d3=this;this[_0x4156b9('0x16')][_0x4156b9('0xf')](function(){const _0x3165f4=_0x4156b9;return _0x4e58d3[_0x3165f4('0x7')][_0x3165f4('0x1e')]['query'](_0x99a596)[_0x3165f4('0x2')](function(){const _0x396fd5=_0x3165f4;logger['info'](_0x396fd5('0x12'),_0x99a596);})[_0x3165f4('0x19')](function(_0x2ad39b){const _0xebc6b=_0x3165f4;logger[_0xebc6b('0x17')](JSON['stringify'](_0x2ad39b));});});},Migration['prototype'][_0x3b1da8('0x5')]=function(_0x5edfbb,_0x2eb625){const _0x4a3ec3=_0x3b1da8,_0x20e07f=this;this[_0x4a3ec3('0x16')][_0x4a3ec3('0xf')](function(){const _0x5d86a2=_0x4a3ec3;return _0x20e07f[_0x5d86a2('0x7')][_0x5d86a2('0x5')](_0x5edfbb,_0x2eb625)['then'](function(){const _0x6dc115=_0x5d86a2;logger[_0x6dc115('0x17')]('Removed\x20column\x20%s\x20from\x20%s',_0x2eb625,_0x5edfbb);})[_0x5d86a2('0x19')](function(_0xa86622){const _0x11762b=_0x5d86a2;logger['info'](util[_0x11762b('0x8')](_0xa86622,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3b1da8('0xb')]=function(_0x3bc243,_0x5057af,_0x301045){const _0x4f4098=_0x3b1da8,_0x2c5d60=this;this[_0x4f4098('0x16')]['enqueue'](function(){const _0x333a0d=_0x4f4098;return _0x2c5d60[_0x333a0d('0x7')][_0x333a0d('0xb')](_0x3bc243,_0x5057af,_0x301045)[_0x333a0d('0x2')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5057af,_0x301045,_0x3bc243);})['catch'](function(_0xe03c96){const _0xaed847=_0x333a0d;logger[_0xaed847('0x17')](util[_0xaed847('0x8')](_0xe03c96,{'showHidden':![],'depth':null}));});});},Migration[_0x3b1da8('0x15')]['final']=function(_0x3809a6){const _0x535eab=_0x3b1da8;this[_0x535eab('0x16')][_0x535eab('0xf')](function(){return _0x3809a6();});},module[_0x3b1da8('0x14')]={'up':function(_0x349f48){return new Promise(function(_0x6522b7){const _0x3b1df6=a1012_0x4697,_0x27f5cd=new Migration(_0x349f48);_0x27f5cd[_0x3b1df6('0x1b')](_0x6522b7);});},'down':function(){}}; \ No newline at end of file +const a1012_0x487b=['queryInterface','tail','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','then','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','exports','indicesType','inspect','prototype','sequence','info','stringify','removeColumn','dropTable','util','query\x20%s','join','final','addColumn','removeIndex','table\x20dropped\x20%s','renameColumn','migration','enqueue','changeColumn','query','sequelize'];(function(_0x16cbea,_0x487b85){const _0xb871e=function(_0x228b52){while(--_0x228b52){_0x16cbea['push'](_0x16cbea['shift']());}};_0xb871e(++_0x487b85);}(a1012_0x487b,0x1cd));const a1012_0xb871=function(_0x16cbea,_0x487b85){_0x16cbea=_0x16cbea-0x0;let _0xb871e=a1012_0x487b[_0x16cbea];return _0xb871e;};const _0x7cf8e8=a1012_0xb871;'use strict';const util=require(_0x7cf8e8('0x2')),logger=require('../config/logger')(_0x7cf8e8('0xa')),Sequence=function(){};Sequence[_0x7cf8e8('0x1e')][_0x7cf8e8('0xb')]=function(_0x228b52){const _0x2541f4=_0x7cf8e8;this[_0x2541f4('0x10')]=this[_0x2541f4('0x10')]?this[_0x2541f4('0x10')][_0x2541f4('0x11')](_0x228b52):_0x228b52();};const Migration=function(_0x5d5bac){const _0x14ddb6=_0x7cf8e8;this['queryInterface']=_0x5d5bac,this[_0x14ddb6('0x1f')]=new Sequence();};Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0xc')]=function(_0x350d22,_0x1533dc,_0xe8678d){const _0x3acd6a=this;this['sequence']['enqueue'](function(){const _0x2183ca=a1012_0xb871;return _0x3acd6a[_0x2183ca('0xf')][_0x2183ca('0xc')](_0x350d22,_0x1533dc,_0xe8678d)[_0x2183ca('0x18')](function(){const _0x21177c=_0x2183ca;logger[_0x21177c('0x20')](_0x21177c('0x19'),_0x1533dc,_0x350d22);})[_0x2183ca('0x17')](function(_0x2de04b){const _0x3a0b9b=_0x2183ca;logger[_0x3a0b9b('0x20')](JSON[_0x3a0b9b('0x21')](_0x2de04b));});});},Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0x6')]=function(_0x11a517,_0x4146c7,_0x33df20){const _0x194977=_0x7cf8e8,_0x578a9b=this;this[_0x194977('0x1f')][_0x194977('0xb')](function(){const _0x366fe2=_0x194977;return _0x578a9b[_0x366fe2('0xf')][_0x366fe2('0x6')](_0x11a517,_0x4146c7,_0x33df20)[_0x366fe2('0x18')](function(){const _0x21e576=_0x366fe2;logger['info'](_0x21e576('0x15'),_0x4146c7,_0x11a517);})[_0x366fe2('0x17')](function(_0x2b3a9d){const _0x3a1131=_0x366fe2;logger[_0x3a1131('0x20')](JSON[_0x3a1131('0x21')](_0x2b3a9d));});});},Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0x1')]=function(_0xa7ea41){const _0x1d6acf=_0x7cf8e8,_0xd0ca3b=this;this[_0x1d6acf('0x1f')][_0x1d6acf('0xb')](function(){const _0x146923=_0x1d6acf;return _0xd0ca3b[_0x146923('0xf')][_0x146923('0x1')](_0xa7ea41,{'force':!![]})['then'](function(){const _0x2bad3=_0x146923;logger['info'](_0x2bad3('0x8'),_0xa7ea41);})[_0x146923('0x17')](function(_0x1b8277){const _0x3bcf06=_0x146923;logger[_0x3bcf06('0x20')](JSON['stringify'](_0x1b8277));});});},Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0x1a')]=function(_0x5ab1c2,_0x40d66d,_0x361a29){const _0x252e84=_0x7cf8e8,_0x322e76=this;this[_0x252e84('0x1f')][_0x252e84('0xb')](function(){const _0x25a04b=_0x252e84;return _0x322e76[_0x25a04b('0xf')][_0x25a04b('0x1a')](_0x5ab1c2,_0x40d66d,{'indexName':_0x361a29[_0x25a04b('0x13')],'indicesType':_0x361a29[_0x25a04b('0x1c')]})[_0x25a04b('0x18')](function(){const _0x566e68=_0x25a04b;logger[_0x566e68('0x20')](_0x566e68('0x16'),_0x5ab1c2,_0x40d66d[_0x566e68('0x4')](','),_0x361a29[_0x566e68('0x13')],_0x361a29[_0x566e68('0x1c')]);})['catch'](function(_0x5bfe52){const _0x1dc5dc=_0x25a04b;logger[_0x1dc5dc('0x20')](JSON[_0x1dc5dc('0x21')](_0x5bfe52));});});},Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0x7')]=function(_0x35e738,_0x1c57a5){const _0x2fe72e=_0x7cf8e8,_0x48d1f4=this;this[_0x2fe72e('0x1f')]['enqueue'](function(){const _0x1c0c40=_0x2fe72e;return _0x48d1f4['queryInterface']['removeIndex'](_0x35e738,_0x1c57a5)['then'](function(){const _0x33252b=a1012_0xb871;logger[_0x33252b('0x20')]('removeIndex\x20%s\x20%s',_0x35e738,_0x1c57a5);})[_0x1c0c40('0x17')](function(_0x2e99f7){const _0x5b592f=_0x1c0c40;logger['info'](JSON[_0x5b592f('0x21')](_0x2e99f7));});});},Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0xd')]=function(_0x1100e6){const _0x5c79eb=_0x7cf8e8,_0x624c66=this;this[_0x5c79eb('0x1f')][_0x5c79eb('0xb')](function(){const _0x25966b=_0x5c79eb;return _0x624c66[_0x25966b('0xf')][_0x25966b('0xe')]['query'](_0x1100e6)[_0x25966b('0x18')](function(){const _0x48ec29=_0x25966b;logger[_0x48ec29('0x20')](_0x48ec29('0x3'),_0x1100e6);})[_0x25966b('0x17')](function(_0x4bf699){const _0xc827fd=_0x25966b;logger[_0xc827fd('0x20')](JSON[_0xc827fd('0x21')](_0x4bf699));});});},Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0x0')]=function(_0x44c693,_0x275fa3){const _0x4a8b83=_0x7cf8e8,_0x49f75a=this;this[_0x4a8b83('0x1f')][_0x4a8b83('0xb')](function(){const _0x4cc735=_0x4a8b83;return _0x49f75a[_0x4cc735('0xf')][_0x4cc735('0x0')](_0x44c693,_0x275fa3)[_0x4cc735('0x18')](function(){const _0x5e1932=_0x4cc735;logger['info'](_0x5e1932('0x14'),_0x275fa3,_0x44c693);})[_0x4cc735('0x17')](function(_0x5e62c2){const _0xf4d3d5=_0x4cc735;logger[_0xf4d3d5('0x20')](util[_0xf4d3d5('0x1d')](_0x5e62c2,{'showHidden':![],'depth':null}));});});},Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0x9')]=function(_0x1ba73b,_0x4cfc0b,_0x4bf862){const _0x4b4eb0=_0x7cf8e8,_0x3a7285=this;this[_0x4b4eb0('0x1f')][_0x4b4eb0('0xb')](function(){const _0x2bd1fe=_0x4b4eb0;return _0x3a7285['queryInterface'][_0x2bd1fe('0x9')](_0x1ba73b,_0x4cfc0b,_0x4bf862)[_0x2bd1fe('0x18')](function(){const _0xb4a35f=_0x2bd1fe;logger[_0xb4a35f('0x20')](_0xb4a35f('0x12'),_0x4cfc0b,_0x4bf862,_0x1ba73b);})['catch'](function(_0x22cd2e){const _0x498d9d=_0x2bd1fe;logger[_0x498d9d('0x20')](util[_0x498d9d('0x1d')](_0x22cd2e,{'showHidden':![],'depth':null}));});});},Migration[_0x7cf8e8('0x1e')][_0x7cf8e8('0x5')]=function(_0x54d1d6){const _0x27a221=_0x7cf8e8;this[_0x27a221('0x1f')][_0x27a221('0xb')](function(){return _0x54d1d6();});},module[_0x7cf8e8('0x1b')]={'up':function(_0x5e1157){return new Promise(function(_0x4fc800){const _0x394ca3=new Migration(_0x5e1157);_0x394ca3['final'](_0x4fc800);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.0.js b/server/migrations/2.5.0.js index 74a6e44..0365f40 100644 --- a/server/migrations/2.5.0.js +++ b/server/migrations/2.5.0.js @@ -1 +1 @@ -const a1013_0x2a7c=['Changed\x20column\x20%s\x20in\x20table\x20%s','sNegative','queryInterface','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','join','BOOLEAN','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','stringify','addIndex','indicesType','WhatsappAccountId','\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','fileText','sequence','transcribeRegion','transcribeAccountId','location','settings','changeColumn','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','\x20KEY\x20`ListId`\x20(`ListId`),','enqueue','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','tempSentiment','addColumn','sentiment','final','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','util','STRING','tools_dispositions','query','vidaooSessionId','chat_websites','prototype','query\x20%s','table\x20dropped\x20%s','automaticTranscribe','whatsappPause','Added\x20column\x20%s\x20to\x20%s','\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','sentimentRegion','INTEGER','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_7`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','Removed\x20column\x20%s\x20from\x20%s','ALTER\x20TABLE\x20tools_canned_answers\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_6`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','\x20`notificationTemplate`\x20text,','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,113,110,104,105,106,107,108,109,100,111,114\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100,111\x27','failureReason','chat_interactions','transcribeName','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','tail','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','indexName','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','removeColumn','dropTable','removeIndex','info','voice_recordings','language','inspect','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','sPositive','TEXT','../config/logger','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','users','then','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','FLOAT','exports',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','renameColumn','catch','\x20PRIMARY\x20KEY\x20(`id`),'];(function(_0xe05878,_0x2a7cee){const _0x7d9249=function(_0x193dc6){while(--_0x193dc6){_0xe05878['push'](_0xe05878['shift']());}};_0x7d9249(++_0x2a7cee);}(a1013_0x2a7c,0x121));const a1013_0x7d92=function(_0xe05878,_0x2a7cee){_0xe05878=_0xe05878-0x0;let _0x7d9249=a1013_0x2a7c[_0xe05878];return _0x7d9249;};const _0x5588f9=a1013_0x7d92;'use strict';const util=require(_0x5588f9('0x5')),logger=require(_0x5588f9('0x33'))('migration'),Sequence=function(){};Sequence[_0x5588f9('0xb')]['enqueue']=function(_0x193dc6){const _0x46b4a2=_0x5588f9;this[_0x46b4a2('0x22')]=this['tail']?this[_0x46b4a2('0x22')][_0x46b4a2('0x18')](_0x193dc6):_0x193dc6();};const Migration=function(_0x428fc7){const _0x1793cd=_0x5588f9;this[_0x1793cd('0x41')]=_0x428fc7,this[_0x1793cd('0x4c')]=new Sequence();};Migration[_0x5588f9('0xb')][_0x5588f9('0x51')]=function(_0xc594cd,_0x3c46d9,_0x55a30b){const _0xbc9853=_0x5588f9,_0x3eb99e=this;this[_0xbc9853('0x4c')]['enqueue'](function(){const _0x56b669=_0xbc9853;return _0x3eb99e[_0x56b669('0x41')][_0x56b669('0x51')](_0xc594cd,_0x3c46d9,_0x55a30b)[_0x56b669('0x36')](function(){const _0x30e482=_0x56b669;logger[_0x30e482('0x2a')](_0x30e482('0x3f'),_0x3c46d9,_0xc594cd);})['catch'](function(_0x34b117){const _0x194b23=_0x56b669;logger[_0x194b23('0x2a')](JSON[_0x194b23('0x46')](_0x34b117));});});},Migration['prototype']['addColumn']=function(_0x2398d4,_0x514787,_0x1264e4){const _0x45264c=_0x5588f9,_0x5091ad=this;this[_0x45264c('0x4c')][_0x45264c('0x56')](function(){const _0xd734a0=_0x45264c;return _0x5091ad[_0xd734a0('0x41')][_0xd734a0('0x1')](_0x2398d4,_0x514787,_0x1264e4)[_0xd734a0('0x36')](function(){const _0x3cb33b=_0xd734a0;logger[_0x3cb33b('0x2a')](_0x3cb33b('0x10'),_0x514787,_0x2398d4);})[_0xd734a0('0x3d')](function(_0x3051f7){const _0x30786f=_0xd734a0;logger[_0x30786f('0x2a')](JSON[_0x30786f('0x46')](_0x3051f7));});});},Migration[_0x5588f9('0xb')][_0x5588f9('0x28')]=function(_0x4f8736){const _0x26c087=_0x5588f9,_0x198dcb=this;this['sequence'][_0x26c087('0x56')](function(){const _0x42dafc=_0x26c087;return _0x198dcb[_0x42dafc('0x41')][_0x42dafc('0x28')](_0x4f8736,{'force':!![]})[_0x42dafc('0x36')](function(){const _0x3c6e6f=_0x42dafc;logger[_0x3c6e6f('0x2a')](_0x3c6e6f('0xd'),_0x4f8736);})[_0x42dafc('0x3d')](function(_0xa5a218){const _0x4703c5=_0x42dafc;logger[_0x4703c5('0x2a')](JSON[_0x4703c5('0x46')](_0xa5a218));});});},Migration[_0x5588f9('0xb')][_0x5588f9('0x47')]=function(_0x4b3dc1,_0x2e5075,_0x189341){const _0xf64fdf=this;this['sequence']['enqueue'](function(){const _0x333f2d=a1013_0x7d92;return _0xf64fdf[_0x333f2d('0x41')][_0x333f2d('0x47')](_0x4b3dc1,_0x2e5075,{'indexName':_0x189341['indexName'],'indicesType':_0x189341[_0x333f2d('0x48')]})[_0x333f2d('0x36')](function(){const _0xb8b32d=_0x333f2d;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4b3dc1,_0x2e5075[_0xb8b32d('0x43')](','),_0x189341[_0xb8b32d('0x24')],_0x189341[_0xb8b32d('0x48')]);})[_0x333f2d('0x3d')](function(_0x28ad7b){const _0x37f115=_0x333f2d;logger['info'](JSON[_0x37f115('0x46')](_0x28ad7b));});});},Migration['prototype'][_0x5588f9('0x29')]=function(_0x501dc8,_0x47622f){const _0x1b0ee1=_0x5588f9,_0x4c5341=this;this[_0x1b0ee1('0x4c')][_0x1b0ee1('0x56')](function(){const _0xeb6646=_0x1b0ee1;return _0x4c5341[_0xeb6646('0x41')][_0xeb6646('0x29')](_0x501dc8,_0x47622f)[_0xeb6646('0x36')](function(){const _0x59ae47=_0xeb6646;logger[_0x59ae47('0x2a')]('removeIndex\x20%s\x20%s',_0x501dc8,_0x47622f);})[_0xeb6646('0x3d')](function(_0x3ba220){const _0x5a0a2d=_0xeb6646;logger[_0x5a0a2d('0x2a')](JSON[_0x5a0a2d('0x46')](_0x3ba220));});});},Migration[_0x5588f9('0xb')][_0x5588f9('0x8')]=function(_0x1dd37a){const _0x4b0085=_0x5588f9,_0x403dbb=this;this[_0x4b0085('0x4c')][_0x4b0085('0x56')](function(){const _0x13df7c=_0x4b0085;return _0x403dbb[_0x13df7c('0x41')]['sequelize'][_0x13df7c('0x8')](_0x1dd37a)['then'](function(){const _0x4fbb7e=_0x13df7c;logger[_0x4fbb7e('0x2a')](_0x4fbb7e('0xc'),_0x1dd37a);})[_0x13df7c('0x3d')](function(_0x183e23){const _0x2b8716=_0x13df7c;logger[_0x2b8716('0x2a')](JSON[_0x2b8716('0x46')](_0x183e23));});});},Migration[_0x5588f9('0xb')][_0x5588f9('0x27')]=function(_0x5d18b0,_0x41e1fc){const _0x318a66=_0x5588f9,_0x150e19=this;this['sequence'][_0x318a66('0x56')](function(){const _0x4e9416=_0x318a66;return _0x150e19['queryInterface'][_0x4e9416('0x27')](_0x5d18b0,_0x41e1fc)['then'](function(){const _0x12656d=_0x4e9416;logger[_0x12656d('0x2a')](_0x12656d('0x16'),_0x41e1fc,_0x5d18b0);})['catch'](function(_0x45dac3){const _0x5efadb=_0x4e9416;logger[_0x5efadb('0x2a')](util[_0x5efadb('0x2d')](_0x45dac3,{'showHidden':![],'depth':null}));});});},Migration[_0x5588f9('0xb')][_0x5588f9('0x3c')]=function(_0x444a97,_0x39ba5b,_0x531dd4){const _0x4cd5d8=_0x5588f9,_0x592fc4=this;this[_0x4cd5d8('0x4c')][_0x4cd5d8('0x56')](function(){const _0x1e4f8c=_0x4cd5d8;return _0x592fc4['queryInterface'][_0x1e4f8c('0x3c')](_0x444a97,_0x39ba5b,_0x531dd4)[_0x1e4f8c('0x36')](function(){const _0x517064=_0x1e4f8c;logger['info'](_0x517064('0x19'),_0x39ba5b,_0x531dd4,_0x444a97);})[_0x1e4f8c('0x3d')](function(_0x365c2d){const _0xb1b2a0=_0x1e4f8c;logger[_0xb1b2a0('0x2a')](util['inspect'](_0x365c2d,{'showHidden':![],'depth':null}));});});},Migration[_0x5588f9('0xb')][_0x5588f9('0x3')]=function(_0x320066){const _0x752dd3=_0x5588f9;this[_0x752dd3('0x4c')][_0x752dd3('0x56')](function(){return _0x320066();});},module[_0x5588f9('0x39')]={'up':function(_0x2b11f4,_0x4445ac){return new Promise(function(_0x2eda73){const _0x48bd13=a1013_0x7d92,_0x57d0b5=new Migration(_0x2b11f4);_0x57d0b5[_0x48bd13('0x8')](_0x48bd13('0x21')+_0x48bd13('0x4a')+_0x48bd13('0x42')+_0x48bd13('0x54')+_0x48bd13('0x20')+_0x48bd13('0x30')+'\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,'+'\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,'+_0x48bd13('0x2f')+'\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x48bd13('0x1a')+_0x48bd13('0x14')+_0x48bd13('0x34')+'\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,'+_0x48bd13('0x53')+_0x48bd13('0x11')+'\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0x48bd13('0x37')+_0x48bd13('0x25')+_0x48bd13('0x1b')+_0x48bd13('0x23')+_0x48bd13('0x4')+_0x48bd13('0x3b')+_0x48bd13('0x57')+_0x48bd13('0x3e')+_0x48bd13('0x45')+'\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),'+_0x48bd13('0x55')+_0x48bd13('0x26')+_0x48bd13('0x52')+_0x48bd13('0x3a')),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x7'),_0x48bd13('0x49'),{'type':_0x4445ac[_0x48bd13('0x13')]}),_0x57d0b5[_0x48bd13('0x1')]('tools_canned_answers',_0x48bd13('0x49'),{'type':_0x4445ac[_0x48bd13('0x13')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x35'),_0x48bd13('0xf'),{'type':_0x4445ac[_0x48bd13('0x44')],'defaultValue':![]}),_0x57d0b5['addColumn'](_0x48bd13('0x35'),'whatsappCapacity',{'type':_0x4445ac[_0x48bd13('0x44')],'defaultValue':![]}),_0x57d0b5['query'](_0x48bd13('0x15')),_0x57d0b5['query'](_0x48bd13('0x2e')),_0x57d0b5[_0x48bd13('0x8')](_0x48bd13('0x17')),_0x57d0b5['query'](_0x48bd13('0x1c')),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x1e'),_0x48bd13('0x9'),{'type':_0x4445ac[_0x48bd13('0x32')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0xa'),'vidaooEscalation',{'type':_0x4445ac[_0x48bd13('0x44')],'defaultValue':![]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0xa'),'vidaooApiKey',{'type':_0x4445ac[_0x48bd13('0x6')]}),_0x57d0b5[_0x48bd13('0x1')]('voice_recordings',_0x48bd13('0x4f'),{'type':_0x4445ac[_0x48bd13('0x32')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x2b'),_0x48bd13('0x1f'),{'type':_0x4445ac['STRING']}),_0x57d0b5['addColumn'](_0x48bd13('0x2b'),'transcribeStatus',{'type':_0x4445ac['STRING'],'defaultValue':'NEW'}),_0x57d0b5['addColumn'](_0x48bd13('0x2b'),'fileUri',{'type':_0x4445ac[_0x48bd13('0x32')]}),_0x57d0b5['addColumn']('voice_recordings',_0x48bd13('0x4b'),{'type':_0x4445ac[_0x48bd13('0x32')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x2b'),_0x48bd13('0x1d'),{'type':_0x4445ac['TEXT']}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x2b'),_0x48bd13('0x2'),{'type':_0x4445ac['STRING']}),_0x57d0b5['addColumn'](_0x48bd13('0x2b'),_0x48bd13('0x31'),{'type':_0x4445ac[_0x48bd13('0x38')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x2b'),_0x48bd13('0x40'),{'type':_0x4445ac[_0x48bd13('0x38')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x2b'),'sNeutral',{'type':_0x4445ac[_0x48bd13('0x38')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x2b'),'sMixed',{'type':_0x4445ac[_0x48bd13('0x38')]}),_0x57d0b5['addColumn']('voice_recordings',_0x48bd13('0x0'),{'type':_0x4445ac[_0x48bd13('0x44')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x50'),'transcribe',{'type':_0x4445ac[_0x48bd13('0x44')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x50'),_0x48bd13('0xe'),{'type':_0x4445ac['BOOLEAN']}),_0x57d0b5['addColumn'](_0x48bd13('0x50'),_0x48bd13('0x4e'),{'type':_0x4445ac[_0x48bd13('0x13')]}),_0x57d0b5['addColumn'](_0x48bd13('0x50'),_0x48bd13('0x4d'),{'type':_0x4445ac['STRING']}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x50'),'sentiment',{'type':_0x4445ac['BOOLEAN']}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x50'),'automaticSentiment',{'type':_0x4445ac['BOOLEAN']}),_0x57d0b5[_0x48bd13('0x1')]('settings','sentimentAccountId',{'type':_0x4445ac[_0x48bd13('0x13')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x50'),_0x48bd13('0x12'),{'type':_0x4445ac[_0x48bd13('0x6')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x50'),_0x48bd13('0x2c'),{'type':_0x4445ac[_0x48bd13('0x6')]}),_0x57d0b5[_0x48bd13('0x1')](_0x48bd13('0x50'),'bucket',{'type':_0x4445ac['STRING']}),_0x57d0b5['final'](_0x2eda73);});},'down':function(){}}; \ No newline at end of file +const a1013_0xbab6=['catch','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','ALTER\x20TABLE\x20tools_canned_answers\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_6`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','transcribeStatus','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','final','whatsappPause','enqueue','chat_websites','fileUri','vidaooEscalation','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','BOOLEAN','\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','dropTable','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','language','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','tools_canned_answers','prototype','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','Added\x20column\x20%s\x20to\x20%s','changeColumn','\x20PRIMARY\x20KEY\x20(`id`),','voice_recordings','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','transcribe','addIndex\x20%s\x20%s\x20%s\x20[%s]','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','whatsappCapacity','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','sNeutral','removeIndex\x20%s\x20%s','vidaooApiKey','TEXT','removeColumn','query\x20%s','then','renameColumn','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','settings','addColumn','sPositive','vidaooSessionId','sentiment','query','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','indicesType','FLOAT','finally','NEW','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20KEY\x20`ListId`\x20(`ListId`),','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_7`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','info','indexName','queryInterface','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','users','\x20`notificationTemplate`\x20text,','failureReason','util','tail','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','exports','stringify',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,','sNegative','addIndex','transcribeRegion','sequence','WhatsappAccountId','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','automaticSentiment','tools_dispositions','transcribeAccountId','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','fileText','INTEGER','removeIndex','inspect','tempSentiment','\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,','sequelize','migration','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,'];(function(_0x3fe1a5,_0xbab64f){const _0x3a8e77=function(_0x55394f){while(--_0x55394f){_0x3fe1a5['push'](_0x3fe1a5['shift']());}};_0x3a8e77(++_0xbab64f);}(a1013_0xbab6,0xfa));const a1013_0x3a8e=function(_0x3fe1a5,_0xbab64f){_0x3fe1a5=_0x3fe1a5-0x0;let _0x3a8e77=a1013_0xbab6[_0x3fe1a5];return _0x3a8e77;};const _0x2dcb9a=a1013_0x3a8e;'use strict';const util=require(_0x2dcb9a('0x6')),logger=require(_0x2dcb9a('0x41'))(_0x2dcb9a('0x21')),Sequence=function(){};Sequence[_0x2dcb9a('0x36')][_0x2dcb9a('0x2a')]=function(_0x55394f){const _0xc4e2dd=_0x2dcb9a;this[_0xc4e2dd('0x7')]=this[_0xc4e2dd('0x7')]?this[_0xc4e2dd('0x7')][_0xc4e2dd('0x58')](_0x55394f):_0x55394f();};const Migration=function(_0x4e995b){const _0x2ac482=_0x2dcb9a;this['queryInterface']=_0x4e995b,this[_0x2ac482('0x12')]=new Sequence();};Migration[_0x2dcb9a('0x36')]['changeColumn']=function(_0x3ab497,_0x57331f,_0x5cd0c9){const _0x24d139=_0x2dcb9a,_0x4417e9=this;this[_0x24d139('0x12')][_0x24d139('0x2a')](function(){const _0x315cbd=_0x24d139;return _0x4417e9['queryInterface'][_0x315cbd('0x39')](_0x3ab497,_0x57331f,_0x5cd0c9)[_0x315cbd('0x4a')](function(){const _0x367985=_0x315cbd;logger[_0x367985('0x5e')](_0x367985('0x42'),_0x57331f,_0x3ab497);})[_0x315cbd('0x23')](function(_0x479806){const _0x47e571=_0x315cbd;logger['info'](JSON[_0x47e571('0xc')](_0x479806));});});},Migration[_0x2dcb9a('0x36')][_0x2dcb9a('0x4f')]=function(_0x39391e,_0x2170b1,_0x4d5ade){const _0x21caef=_0x2dcb9a,_0x35a4a7=this;this[_0x21caef('0x12')]['enqueue'](function(){const _0x17a8b8=_0x21caef;return _0x35a4a7[_0x17a8b8('0x1')]['addColumn'](_0x39391e,_0x2170b1,_0x4d5ade)['then'](function(){const _0x4398bd=_0x17a8b8;logger['info'](_0x4398bd('0x38'),_0x2170b1,_0x39391e);})[_0x17a8b8('0x23')](function(_0x20b9db){const _0x58e73e=_0x17a8b8;logger['info'](JSON[_0x58e73e('0xc')](_0x20b9db));});});},Migration[_0x2dcb9a('0x36')][_0x2dcb9a('0x31')]=function(_0x542ba9){const _0x278928=_0x2dcb9a,_0x4342c9=this;this['sequence'][_0x278928('0x2a')](function(){const _0x10aaea=_0x278928;return _0x4342c9['queryInterface']['dropTable'](_0x542ba9,{'force':!![]})[_0x10aaea('0x4a')](function(){const _0x4debbf=_0x10aaea;logger[_0x4debbf('0x5e')](_0x4debbf('0x4d'),_0x542ba9);})[_0x10aaea('0x23')](function(_0x400602){const _0x523bb7=_0x10aaea;logger[_0x523bb7('0x5e')](JSON[_0x523bb7('0xc')](_0x400602));});});},Migration[_0x2dcb9a('0x36')]['addIndex']=function(_0x5d215c,_0x504e55,_0x1346bc){const _0xa9a80f=_0x2dcb9a,_0x2f3e45=this;this[_0xa9a80f('0x12')][_0xa9a80f('0x2a')](function(){const _0x47732f=_0xa9a80f;return _0x2f3e45[_0x47732f('0x1')][_0x47732f('0x10')](_0x5d215c,_0x504e55,{'indexName':_0x1346bc[_0x47732f('0x0')],'indicesType':_0x1346bc[_0x47732f('0x56')]})[_0x47732f('0x4a')](function(){const _0x21b80c=_0x47732f;logger[_0x21b80c('0x5e')](_0x21b80c('0x3e'),_0x5d215c,_0x504e55['join'](','),_0x1346bc['indexName'],_0x1346bc[_0x21b80c('0x56')]);})[_0x47732f('0x23')](function(_0x44b92c){const _0x19c966=_0x47732f;logger[_0x19c966('0x5e')](JSON[_0x19c966('0xc')](_0x44b92c));});});},Migration[_0x2dcb9a('0x36')][_0x2dcb9a('0x1c')]=function(_0x47be7d,_0x37ecfb){const _0x2a8c8f=_0x2dcb9a,_0x1d15f7=this;this['sequence'][_0x2a8c8f('0x2a')](function(){const _0xafd3bf=_0x2a8c8f;return _0x1d15f7['queryInterface'][_0xafd3bf('0x1c')](_0x47be7d,_0x37ecfb)[_0xafd3bf('0x4a')](function(){const _0x167e18=_0xafd3bf;logger[_0x167e18('0x5e')](_0x167e18('0x45'),_0x47be7d,_0x37ecfb);})[_0xafd3bf('0x23')](function(_0xc01b45){const _0x1f8e07=_0xafd3bf;logger[_0x1f8e07('0x5e')](JSON[_0x1f8e07('0xc')](_0xc01b45));});});},Migration[_0x2dcb9a('0x36')][_0x2dcb9a('0x53')]=function(_0x2acaef){const _0x4e234c=_0x2dcb9a,_0xfab085=this;this[_0x4e234c('0x12')][_0x4e234c('0x2a')](function(){const _0x2add94=_0x4e234c;return _0xfab085[_0x2add94('0x1')][_0x2add94('0x20')]['query'](_0x2acaef)[_0x2add94('0x4a')](function(){const _0x2e7d80=_0x2add94;logger[_0x2e7d80('0x5e')](_0x2e7d80('0x49'),_0x2acaef);})[_0x2add94('0x23')](function(_0x5a5288){const _0x4f3bf8=_0x2add94;logger[_0x4f3bf8('0x5e')](JSON[_0x4f3bf8('0xc')](_0x5a5288));});});},Migration[_0x2dcb9a('0x36')][_0x2dcb9a('0x48')]=function(_0x44f58f,_0x39fbe4){const _0x207651=_0x2dcb9a,_0x7bdbb4=this;this[_0x207651('0x12')][_0x207651('0x2a')](function(){const _0x4da859=_0x207651;return _0x7bdbb4[_0x4da859('0x1')][_0x4da859('0x48')](_0x44f58f,_0x39fbe4)[_0x4da859('0x4a')](function(){const _0x136087=_0x4da859;logger[_0x136087('0x5e')](_0x136087('0x4c'),_0x39fbe4,_0x44f58f);})[_0x4da859('0x23')](function(_0x296be6){const _0x575fe5=_0x4da859;logger[_0x575fe5('0x5e')](util[_0x575fe5('0x1d')](_0x296be6,{'showHidden':![],'depth':null}));});});},Migration[_0x2dcb9a('0x36')][_0x2dcb9a('0x4b')]=function(_0x5a4ff5,_0x18ffd2,_0xd1237e){const _0x375ca7=_0x2dcb9a,_0x2d27ca=this;this[_0x375ca7('0x12')][_0x375ca7('0x2a')](function(){const _0xee3ee3=_0x375ca7;return _0x2d27ca[_0xee3ee3('0x1')][_0xee3ee3('0x4b')](_0x5a4ff5,_0x18ffd2,_0xd1237e)[_0xee3ee3('0x4a')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x18ffd2,_0xd1237e,_0x5a4ff5);})[_0xee3ee3('0x23')](function(_0x5d5b7e){const _0x49326f=_0xee3ee3;logger[_0x49326f('0x5e')](util['inspect'](_0x5d5b7e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2dcb9a('0x28')]=function(_0x1e1e22){const _0x5f2bae=_0x2dcb9a;this[_0x5f2bae('0x12')][_0x5f2bae('0x2a')](function(){return _0x1e1e22();});},module[_0x2dcb9a('0xb')]={'up':function(_0x1f635a,_0x28ad1d){return new Promise(function(_0x1a7f8c){const _0x57e0a3=a1013_0x3a8e,_0xdee942=new Migration(_0x1f635a);_0xdee942['query'](_0x57e0a3('0x24')+_0x57e0a3('0x30')+_0x57e0a3('0x37')+'\x20`key`\x20varchar(255)\x20NOT\x20NULL,'+_0x57e0a3('0x3c')+_0x57e0a3('0x34')+_0x57e0a3('0x8')+_0x57e0a3('0xe')+_0x57e0a3('0x5a')+_0x57e0a3('0x22')+_0x57e0a3('0x4')+_0x57e0a3('0x3f')+_0x57e0a3('0x5d')+_0x57e0a3('0x1f')+'\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+'\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,'+_0x57e0a3('0x19')+_0x57e0a3('0x32')+_0x57e0a3('0x14')+_0x57e0a3('0xa')+_0x57e0a3('0x54')+_0x57e0a3('0x2e')+_0x57e0a3('0x9')+'\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x57e0a3('0x3a')+_0x57e0a3('0x2')+_0x57e0a3('0x55')+_0x57e0a3('0x5b')+_0x57e0a3('0x27')+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE'+_0x57e0a3('0xd')),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x16'),_0x57e0a3('0x13'),{'type':_0x28ad1d[_0x57e0a3('0x1b')]}),_0xdee942['addColumn'](_0x57e0a3('0x35'),_0x57e0a3('0x13'),{'type':_0x28ad1d[_0x57e0a3('0x1b')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3'),_0x57e0a3('0x29'),{'type':_0x28ad1d[_0x57e0a3('0x2f')],'defaultValue':![]}),_0xdee942[_0x57e0a3('0x4f')]('users',_0x57e0a3('0x40'),{'type':_0x28ad1d[_0x57e0a3('0x2f')],'defaultValue':![]}),_0xdee942[_0x57e0a3('0x53')](_0x57e0a3('0x5c')),_0xdee942['query'](_0x57e0a3('0x18')),_0xdee942[_0x57e0a3('0x53')](_0x57e0a3('0x25')),_0xdee942[_0x57e0a3('0x53')]('UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,113,110,104,105,106,107,108,109,100,111,114\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100,111\x27'),_0xdee942[_0x57e0a3('0x4f')]('chat_interactions',_0x57e0a3('0x51'),{'type':_0x28ad1d[_0x57e0a3('0x47')]}),_0xdee942[_0x57e0a3('0x4f')]('chat_websites',_0x57e0a3('0x2d'),{'type':_0x28ad1d[_0x57e0a3('0x2f')],'defaultValue':![]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x2b'),_0x57e0a3('0x46'),{'type':_0x28ad1d[_0x57e0a3('0x43')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3b'),'location',{'type':_0x28ad1d[_0x57e0a3('0x47')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3b'),'transcribeName',{'type':_0x28ad1d[_0x57e0a3('0x43')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3b'),_0x57e0a3('0x26'),{'type':_0x28ad1d['STRING'],'defaultValue':_0x57e0a3('0x59')}),_0xdee942['addColumn'](_0x57e0a3('0x3b'),_0x57e0a3('0x2c'),{'type':_0x28ad1d[_0x57e0a3('0x47')]}),_0xdee942['addColumn'](_0x57e0a3('0x3b'),_0x57e0a3('0x1a'),{'type':_0x28ad1d[_0x57e0a3('0x47')]}),_0xdee942[_0x57e0a3('0x4f')]('voice_recordings',_0x57e0a3('0x5'),{'type':_0x28ad1d['TEXT']}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3b'),_0x57e0a3('0x52'),{'type':_0x28ad1d[_0x57e0a3('0x43')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3b'),_0x57e0a3('0x50'),{'type':_0x28ad1d['FLOAT']}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3b'),_0x57e0a3('0xf'),{'type':_0x28ad1d[_0x57e0a3('0x57')]}),_0xdee942[_0x57e0a3('0x4f')]('voice_recordings',_0x57e0a3('0x44'),{'type':_0x28ad1d[_0x57e0a3('0x57')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3b'),'sMixed',{'type':_0x28ad1d[_0x57e0a3('0x57')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x3b'),_0x57e0a3('0x1e'),{'type':_0x28ad1d[_0x57e0a3('0x2f')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x4e'),_0x57e0a3('0x3d'),{'type':_0x28ad1d[_0x57e0a3('0x2f')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x4e'),'automaticTranscribe',{'type':_0x28ad1d[_0x57e0a3('0x2f')]}),_0xdee942['addColumn'](_0x57e0a3('0x4e'),_0x57e0a3('0x17'),{'type':_0x28ad1d[_0x57e0a3('0x1b')]}),_0xdee942['addColumn']('settings',_0x57e0a3('0x11'),{'type':_0x28ad1d[_0x57e0a3('0x43')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x4e'),_0x57e0a3('0x52'),{'type':_0x28ad1d[_0x57e0a3('0x2f')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x4e'),_0x57e0a3('0x15'),{'type':_0x28ad1d[_0x57e0a3('0x2f')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x4e'),'sentimentAccountId',{'type':_0x28ad1d['INTEGER']}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x4e'),'sentimentRegion',{'type':_0x28ad1d[_0x57e0a3('0x43')]}),_0xdee942['addColumn'](_0x57e0a3('0x4e'),_0x57e0a3('0x33'),{'type':_0x28ad1d[_0x57e0a3('0x43')]}),_0xdee942[_0x57e0a3('0x4f')](_0x57e0a3('0x4e'),'bucket',{'type':_0x28ad1d['STRING']}),_0xdee942[_0x57e0a3('0x28')](_0x1a7f8c);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.1.js b/server/migrations/2.5.1.js index e5253f8..9035238 100644 --- a/server/migrations/2.5.1.js +++ b/server/migrations/2.5.1.js @@ -1 +1 @@ -const a1014_0x1611=['join','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','sequence','renameColumn','stringify','tail','prototype','addColumn','query\x20%s','exports','util','final','enqueue','removeColumn','dropTable','catch','queryInterface','removeIndex','then','changeColumn','finally','inspect','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indicesType','info','query','removeIndex\x20%s\x20%s'];(function(_0x3ecd58,_0x16111f){const _0x51e5af=function(_0x524943){while(--_0x524943){_0x3ecd58['push'](_0x3ecd58['shift']());}};_0x51e5af(++_0x16111f);}(a1014_0x1611,0x185));const a1014_0x51e5=function(_0x3ecd58,_0x16111f){_0x3ecd58=_0x3ecd58-0x0;let _0x51e5af=a1014_0x1611[_0x3ecd58];return _0x51e5af;};const _0x5bf0a5=a1014_0x51e5;'use strict';const util=require(_0x5bf0a5('0x1c')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x5bf0a5('0x18')]['enqueue']=function(_0x524943){const _0xb96b1d=_0x5bf0a5;this[_0xb96b1d('0x17')]=this[_0xb96b1d('0x17')]?this[_0xb96b1d('0x17')][_0xb96b1d('0x9')](_0x524943):_0x524943();};const Migration=function(_0xeafd65){const _0x33c85a=_0x5bf0a5;this[_0x33c85a('0x5')]=_0xeafd65,this[_0x33c85a('0x14')]=new Sequence();};Migration[_0x5bf0a5('0x18')][_0x5bf0a5('0x8')]=function(_0x111473,_0x596af3,_0x17bce){const _0x1b4fe2=_0x5bf0a5,_0x2c682f=this;this[_0x1b4fe2('0x14')]['enqueue'](function(){const _0x983dc6=_0x1b4fe2;return _0x2c682f['queryInterface'][_0x983dc6('0x8')](_0x111473,_0x596af3,_0x17bce)['then'](function(){const _0x4fc3f4=_0x983dc6;logger[_0x4fc3f4('0xe')](_0x4fc3f4('0x12'),_0x596af3,_0x111473);})[_0x983dc6('0x4')](function(_0x3e7d3a){const _0x158b32=_0x983dc6;logger[_0x158b32('0xe')](JSON[_0x158b32('0x16')](_0x3e7d3a));});});},Migration[_0x5bf0a5('0x18')][_0x5bf0a5('0x19')]=function(_0xf56809,_0xb0c714,_0x130c8f){const _0x1e10e2=_0x5bf0a5,_0x2c1a0e=this;this['sequence'][_0x1e10e2('0x1')](function(){const _0x4400af=_0x1e10e2;return _0x2c1a0e[_0x4400af('0x5')][_0x4400af('0x19')](_0xf56809,_0xb0c714,_0x130c8f)['then'](function(){const _0x8c9286=_0x4400af;logger[_0x8c9286('0xe')]('Added\x20column\x20%s\x20to\x20%s',_0xb0c714,_0xf56809);})['catch'](function(_0x153de1){const _0x3c62a4=_0x4400af;logger[_0x3c62a4('0xe')](JSON['stringify'](_0x153de1));});});},Migration[_0x5bf0a5('0x18')][_0x5bf0a5('0x3')]=function(_0x48254f){const _0x5cde7a=_0x5bf0a5,_0x43ef6d=this;this[_0x5cde7a('0x14')][_0x5cde7a('0x1')](function(){const _0x2e7999=_0x5cde7a;return _0x43ef6d[_0x2e7999('0x5')][_0x2e7999('0x3')](_0x48254f,{'force':!![]})['then'](function(){const _0x29267e=_0x2e7999;logger[_0x29267e('0xe')](_0x29267e('0x13'),_0x48254f);})['catch'](function(_0x2857ba){const _0x3e3137=_0x2e7999;logger[_0x3e3137('0xe')](JSON[_0x3e3137('0x16')](_0x2857ba));});});},Migration[_0x5bf0a5('0x18')]['addIndex']=function(_0x36c7db,_0x4de1c8,_0x4dd22a){const _0x406b19=_0x5bf0a5,_0x13817a=this;this['sequence'][_0x406b19('0x1')](function(){const _0x323cdd=_0x406b19;return _0x13817a['queryInterface']['addIndex'](_0x36c7db,_0x4de1c8,{'indexName':_0x4dd22a[_0x323cdd('0xb')],'indicesType':_0x4dd22a[_0x323cdd('0xd')]})['then'](function(){const _0x24f26d=_0x323cdd;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x36c7db,_0x4de1c8[_0x24f26d('0x11')](','),_0x4dd22a[_0x24f26d('0xb')],_0x4dd22a[_0x24f26d('0xd')]);})[_0x323cdd('0x4')](function(_0x50dd84){const _0x688d4d=_0x323cdd;logger[_0x688d4d('0xe')](JSON[_0x688d4d('0x16')](_0x50dd84));});});},Migration[_0x5bf0a5('0x18')][_0x5bf0a5('0x6')]=function(_0x52dbdc,_0x5aef17){const _0x1fafad=_0x5bf0a5,_0x46612a=this;this[_0x1fafad('0x14')][_0x1fafad('0x1')](function(){const _0x28f334=_0x1fafad;return _0x46612a[_0x28f334('0x5')][_0x28f334('0x6')](_0x52dbdc,_0x5aef17)['then'](function(){const _0x297c87=_0x28f334;logger[_0x297c87('0xe')](_0x297c87('0x10'),_0x52dbdc,_0x5aef17);})[_0x28f334('0x4')](function(_0x4c0143){const _0x2644df=_0x28f334;logger[_0x2644df('0xe')](JSON[_0x2644df('0x16')](_0x4c0143));});});},Migration[_0x5bf0a5('0x18')][_0x5bf0a5('0xf')]=function(_0x347ed7){const _0x2d020d=_0x5bf0a5,_0x3c3f59=this;this[_0x2d020d('0x14')][_0x2d020d('0x1')](function(){const _0x296046=_0x2d020d;return _0x3c3f59[_0x296046('0x5')]['sequelize'][_0x296046('0xf')](_0x347ed7)[_0x296046('0x7')](function(){const _0xb46497=_0x296046;logger[_0xb46497('0xe')](_0xb46497('0x1a'),_0x347ed7);})['catch'](function(_0x27ed1c){logger['info'](JSON['stringify'](_0x27ed1c));});});},Migration[_0x5bf0a5('0x18')][_0x5bf0a5('0x2')]=function(_0x5c27ee,_0x57a3f3){const _0x399447=_0x5bf0a5,_0x4069ca=this;this[_0x399447('0x14')]['enqueue'](function(){const _0x18d482=_0x399447;return _0x4069ca[_0x18d482('0x5')]['removeColumn'](_0x5c27ee,_0x57a3f3)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x57a3f3,_0x5c27ee);})[_0x18d482('0x4')](function(_0x59fcc9){const _0x4ad3df=_0x18d482;logger[_0x4ad3df('0xe')](util[_0x4ad3df('0xa')](_0x59fcc9,{'showHidden':![],'depth':null}));});});},Migration[_0x5bf0a5('0x18')][_0x5bf0a5('0x15')]=function(_0x57cd82,_0x4ab978,_0x37520c){const _0x14b3e7=_0x5bf0a5,_0x1134a5=this;this[_0x14b3e7('0x14')][_0x14b3e7('0x1')](function(){const _0x36b4ae=_0x14b3e7;return _0x1134a5[_0x36b4ae('0x5')][_0x36b4ae('0x15')](_0x57cd82,_0x4ab978,_0x37520c)['then'](function(){const _0x2c857a=_0x36b4ae;logger[_0x2c857a('0xe')](_0x2c857a('0xc'),_0x4ab978,_0x37520c,_0x57cd82);})[_0x36b4ae('0x4')](function(_0x38ae4e){const _0x5dfcb7=_0x36b4ae;logger[_0x5dfcb7('0xe')](util['inspect'](_0x38ae4e,{'showHidden':![],'depth':null}));});});},Migration[_0x5bf0a5('0x18')][_0x5bf0a5('0x0')]=function(_0x536d26){const _0x47530d=_0x5bf0a5;this[_0x47530d('0x14')][_0x47530d('0x1')](function(){return _0x536d26();});},module[_0x5bf0a5('0x1b')]={'up':function(_0x2921ff){return new Promise(function(_0x50f696){const _0x1fd4f9=a1014_0x51e5,_0x4ca47d=new Migration(_0x2921ff);_0x4ca47d[_0x1fd4f9('0x0')](_0x50f696);});},'down':function(){}}; \ No newline at end of file +const a1014_0x62ef=['prototype','Added\x20column\x20%s\x20to\x20%s','queryInterface','removeIndex\x20%s\x20%s','info','indexName','addIndex','stringify','changeColumn','catch','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','then','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','sequelize','tail','migration','../config/logger','finally','inspect','sequence','renameColumn','table\x20dropped\x20%s','removeIndex','final','removeColumn','Removed\x20column\x20%s\x20from\x20%s','join','query'];(function(_0x1fb7ff,_0x62ef48){const _0x54ddc4=function(_0x358562){while(--_0x358562){_0x1fb7ff['push'](_0x1fb7ff['shift']());}};_0x54ddc4(++_0x62ef48);}(a1014_0x62ef,0xaf));const a1014_0x54dd=function(_0x1fb7ff,_0x62ef48){_0x1fb7ff=_0x1fb7ff-0x0;let _0x54ddc4=a1014_0x62ef[_0x1fb7ff];return _0x54ddc4;};const _0x591f17=a1014_0x54dd;'use strict';const util=require('util'),logger=require(_0x591f17('0x17'))(_0x591f17('0x16')),Sequence=function(){};Sequence[_0x591f17('0x5')][_0x591f17('0xf')]=function(_0x358562){const _0x498e40=_0x591f17;this[_0x498e40('0x15')]=this[_0x498e40('0x15')]?this[_0x498e40('0x15')][_0x498e40('0x18')](_0x358562):_0x358562();};const Migration=function(_0xddebb0){const _0x100618=_0x591f17;this[_0x100618('0x7')]=_0xddebb0,this[_0x100618('0x1a')]=new Sequence();};Migration[_0x591f17('0x5')][_0x591f17('0xd')]=function(_0x32f088,_0x5446ff,_0x29620f){const _0x45c5c4=_0x591f17,_0x4f41d7=this;this[_0x45c5c4('0x1a')][_0x45c5c4('0xf')](function(){const _0x5ce9bc=_0x45c5c4;return _0x4f41d7[_0x5ce9bc('0x7')][_0x5ce9bc('0xd')](_0x32f088,_0x5446ff,_0x29620f)[_0x5ce9bc('0x11')](function(){const _0xe7b070=_0x5ce9bc;logger[_0xe7b070('0x9')](_0xe7b070('0x12'),_0x5446ff,_0x32f088);})[_0x5ce9bc('0xe')](function(_0x179bff){const _0x445358=_0x5ce9bc;logger['info'](JSON[_0x445358('0xc')](_0x179bff));});});},Migration['prototype'][_0x591f17('0x13')]=function(_0x2bdc29,_0x5bf551,_0x26e523){const _0x5e7ce8=_0x591f17,_0x56960c=this;this[_0x5e7ce8('0x1a')][_0x5e7ce8('0xf')](function(){const _0x5be804=_0x5e7ce8;return _0x56960c['queryInterface'][_0x5be804('0x13')](_0x2bdc29,_0x5bf551,_0x26e523)[_0x5be804('0x11')](function(){const _0x3d59cf=_0x5be804;logger[_0x3d59cf('0x9')](_0x3d59cf('0x6'),_0x5bf551,_0x2bdc29);})[_0x5be804('0xe')](function(_0x1321a7){const _0x126dca=_0x5be804;logger[_0x126dca('0x9')](JSON[_0x126dca('0xc')](_0x1321a7));});});},Migration['prototype']['dropTable']=function(_0x383256){const _0x4c120d=_0x591f17,_0x25d533=this;this[_0x4c120d('0x1a')][_0x4c120d('0xf')](function(){const _0x462c06=_0x4c120d;return _0x25d533[_0x462c06('0x7')]['dropTable'](_0x383256,{'force':!![]})[_0x462c06('0x11')](function(){const _0x2e036a=_0x462c06;logger[_0x2e036a('0x9')](_0x2e036a('0x1c'),_0x383256);})[_0x462c06('0xe')](function(_0x1a80a7){const _0x5c404d=_0x462c06;logger[_0x5c404d('0x9')](JSON[_0x5c404d('0xc')](_0x1a80a7));});});},Migration[_0x591f17('0x5')][_0x591f17('0xb')]=function(_0xdb9826,_0x4a5dcd,_0x53a337){const _0x3d21ac=_0x591f17,_0x372089=this;this[_0x3d21ac('0x1a')][_0x3d21ac('0xf')](function(){const _0x126c2c=_0x3d21ac;return _0x372089[_0x126c2c('0x7')][_0x126c2c('0xb')](_0xdb9826,_0x4a5dcd,{'indexName':_0x53a337[_0x126c2c('0xa')],'indicesType':_0x53a337['indicesType']})['then'](function(){const _0x362c73=_0x126c2c;logger[_0x362c73('0x9')](_0x362c73('0x10'),_0xdb9826,_0x4a5dcd[_0x362c73('0x3')](','),_0x53a337[_0x362c73('0xa')],_0x53a337['indicesType']);})[_0x126c2c('0xe')](function(_0x324030){const _0x4ac055=_0x126c2c;logger[_0x4ac055('0x9')](JSON['stringify'](_0x324030));});});},Migration[_0x591f17('0x5')][_0x591f17('0x1d')]=function(_0x1fecc8,_0x38cb0f){const _0x21b387=_0x591f17,_0x13f800=this;this['sequence'][_0x21b387('0xf')](function(){const _0x2804f8=_0x21b387;return _0x13f800['queryInterface'][_0x2804f8('0x1d')](_0x1fecc8,_0x38cb0f)[_0x2804f8('0x11')](function(){const _0x46e385=_0x2804f8;logger[_0x46e385('0x9')](_0x46e385('0x8'),_0x1fecc8,_0x38cb0f);})[_0x2804f8('0xe')](function(_0x5c9529){const _0x56c335=_0x2804f8;logger[_0x56c335('0x9')](JSON[_0x56c335('0xc')](_0x5c9529));});});},Migration[_0x591f17('0x5')][_0x591f17('0x4')]=function(_0x9c59ad){const _0x4d37d8=_0x591f17,_0xb1f3b7=this;this['sequence'][_0x4d37d8('0xf')](function(){const _0x48783c=_0x4d37d8;return _0xb1f3b7[_0x48783c('0x7')][_0x48783c('0x14')][_0x48783c('0x4')](_0x9c59ad)[_0x48783c('0x11')](function(){logger['info']('query\x20%s',_0x9c59ad);})[_0x48783c('0xe')](function(_0x11c0c1){const _0x363b87=_0x48783c;logger[_0x363b87('0x9')](JSON[_0x363b87('0xc')](_0x11c0c1));});});},Migration[_0x591f17('0x5')][_0x591f17('0x1')]=function(_0x50adec,_0x5f2309){const _0x369f7d=_0x591f17,_0x2b0b58=this;this[_0x369f7d('0x1a')][_0x369f7d('0xf')](function(){const _0x16dacd=_0x369f7d;return _0x2b0b58[_0x16dacd('0x7')]['removeColumn'](_0x50adec,_0x5f2309)['then'](function(){const _0x28ad0e=_0x16dacd;logger[_0x28ad0e('0x9')](_0x28ad0e('0x2'),_0x5f2309,_0x50adec);})[_0x16dacd('0xe')](function(_0x22d037){const _0x2d88aa=_0x16dacd;logger[_0x2d88aa('0x9')](util[_0x2d88aa('0x19')](_0x22d037,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x591f17('0x1b')]=function(_0x56b01e,_0x291f10,_0x56fb54){const _0x28c1c2=_0x591f17,_0x492ec3=this;this[_0x28c1c2('0x1a')][_0x28c1c2('0xf')](function(){const _0x387df1=_0x28c1c2;return _0x492ec3[_0x387df1('0x7')][_0x387df1('0x1b')](_0x56b01e,_0x291f10,_0x56fb54)[_0x387df1('0x11')](function(){const _0x20724d=_0x387df1;logger[_0x20724d('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x291f10,_0x56fb54,_0x56b01e);})[_0x387df1('0xe')](function(_0x5a251e){const _0x37755f=_0x387df1;logger[_0x37755f('0x9')](util['inspect'](_0x5a251e,{'showHidden':![],'depth':null}));});});},Migration[_0x591f17('0x5')][_0x591f17('0x0')]=function(_0x294c99){const _0x40e47e=_0x591f17;this[_0x40e47e('0x1a')]['enqueue'](function(){return _0x294c99();});},module['exports']={'up':function(_0x3c85cd){return new Promise(function(_0xafc813){const _0x114213=a1014_0x54dd,_0x1c4a6b=new Migration(_0x3c85cd);_0x1c4a6b[_0x114213('0x0')](_0xafc813);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.2.js b/server/migrations/2.5.2.js index c565d24..26a4e10 100644 --- a/server/migrations/2.5.2.js +++ b/server/migrations/2.5.2.js @@ -1 +1 @@ -const a1015_0x3efa=['enqueue','util','query','then','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7','Removed\x20column\x20%s\x20from\x20%s','dialAbandonedMaxRetry','prototype','voice_queues','INTEGER','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;','sequelize','dialAgentRejectRetryFrequency','final','indexName','../config/logger','cm_hopper_history','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;','changeColumn','addColumn','info','campaigns','ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7','migration','dialAgentRejectMaxRetry','sequence','inspect','cm_hopper','dialDropMaxRetry','dialNoSuchNumberMaxRetry','tail','removeColumn','dialAbandonedRetryFrequency','finally','countdropretry','countmachineretry','dropTable','dialDropRetryFrequency','indicesType','renameColumn','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','dialMachineMaxRetry','query\x20%s','countnosuchnumberretry','countabandonedretry','catch','exports','countagentrejectretry','dialNoSuchNumberRetryFrequency','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20voice_extensions\x20ADD\x20CONSTRAINT\x20voice_extensions_ibfk_7\x20FOREIGN\x20KEY\x20(VoicePrefixId)\x20REFERENCES\x20voice_prefixes(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20CASCADE','cm_hopper_final','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;','removeIndex'];(function(_0x40d461,_0x3efa8e){const _0xe76a6=function(_0x439fab){while(--_0x439fab){_0x40d461['push'](_0x40d461['shift']());}};_0xe76a6(++_0x3efa8e);}(a1015_0x3efa,0x139));const a1015_0xe76a=function(_0x40d461,_0x3efa8e){_0x40d461=_0x40d461-0x0;let _0xe76a6=a1015_0x3efa[_0x40d461];return _0xe76a6;};const _0x541b39=a1015_0xe76a;'use strict';const util=require(_0x541b39('0x2a')),logger=require(_0x541b39('0x38'))(_0x541b39('0x8')),Sequence=function(){};Sequence[_0x541b39('0x30')][_0x541b39('0x29')]=function(_0x439fab){const _0x281dd6=_0x541b39;this[_0x281dd6('0xf')]=this[_0x281dd6('0xf')]?this[_0x281dd6('0xf')][_0x281dd6('0x12')](_0x439fab):_0x439fab();};const Migration=function(_0x4c3b74){const _0x3985ed=_0x541b39;this[_0x3985ed('0x0')]=_0x4c3b74,this[_0x3985ed('0xa')]=new Sequence();};Migration['prototype'][_0x541b39('0x2')]=function(_0x41365e,_0xf4338,_0x6e3fca){const _0x1227f7=_0x541b39,_0x1e0ff3=this;this[_0x1227f7('0xa')][_0x1227f7('0x29')](function(){const _0x454756=_0x1227f7;return _0x1e0ff3[_0x454756('0x0')][_0x454756('0x2')](_0x41365e,_0xf4338,_0x6e3fca)[_0x454756('0x2c')](function(){const _0x55ea95=_0x454756;logger[_0x55ea95('0x4')](_0x55ea95('0x3a'),_0xf4338,_0x41365e);})[_0x454756('0x20')](function(_0x3aed85){const _0x36cd91=_0x454756;logger[_0x36cd91('0x4')](JSON[_0x36cd91('0x19')](_0x3aed85));});});},Migration[_0x541b39('0x30')][_0x541b39('0x3')]=function(_0x271634,_0xf7c110,_0xe4c4b){const _0x5965d6=_0x541b39,_0x2e78f5=this;this[_0x5965d6('0xa')][_0x5965d6('0x29')](function(){const _0x2b8a3b=_0x5965d6;return _0x2e78f5[_0x2b8a3b('0x0')][_0x2b8a3b('0x3')](_0x271634,_0xf7c110,_0xe4c4b)[_0x2b8a3b('0x2c')](function(){const _0x27aa09=_0x2b8a3b;logger[_0x27aa09('0x4')]('Added\x20column\x20%s\x20to\x20%s',_0xf7c110,_0x271634);})[_0x2b8a3b('0x20')](function(_0x5b20d7){const _0x2e432e=_0x2b8a3b;logger[_0x2e432e('0x4')](JSON['stringify'](_0x5b20d7));});});},Migration['prototype'][_0x541b39('0x15')]=function(_0x249357){const _0x4e42b6=_0x541b39,_0x1511aa=this;this[_0x4e42b6('0xa')][_0x4e42b6('0x29')](function(){const _0x586ce1=_0x4e42b6;return _0x1511aa[_0x586ce1('0x0')]['dropTable'](_0x249357,{'force':!![]})[_0x586ce1('0x2c')](function(){logger['info']('table\x20dropped\x20%s',_0x249357);})[_0x586ce1('0x20')](function(_0x2df16a){const _0x45f552=_0x586ce1;logger[_0x45f552('0x4')](JSON[_0x45f552('0x19')](_0x2df16a));});});},Migration[_0x541b39('0x30')]['addIndex']=function(_0x52b414,_0x112d39,_0x3051a5){const _0x18e276=_0x541b39,_0xa119df=this;this['sequence'][_0x18e276('0x29')](function(){const _0x5bd497=_0x18e276;return _0xa119df[_0x5bd497('0x0')]['addIndex'](_0x52b414,_0x112d39,{'indexName':_0x3051a5[_0x5bd497('0x37')],'indicesType':_0x3051a5[_0x5bd497('0x17')]})['then'](function(){const _0x352bea=_0x5bd497;logger[_0x352bea('0x4')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x52b414,_0x112d39['join'](','),_0x3051a5[_0x352bea('0x37')],_0x3051a5[_0x352bea('0x17')]);})['catch'](function(_0x379afd){const _0x33efdc=_0x5bd497;logger[_0x33efdc('0x4')](JSON[_0x33efdc('0x19')](_0x379afd));});});},Migration[_0x541b39('0x30')]['removeIndex']=function(_0x1e718e,_0x2a4eac){const _0x3ff97f=this;this['sequence']['enqueue'](function(){const _0x327ec9=a1015_0xe76a;return _0x3ff97f[_0x327ec9('0x0')][_0x327ec9('0x28')](_0x1e718e,_0x2a4eac)[_0x327ec9('0x2c')](function(){const _0x315302=_0x327ec9;logger[_0x315302('0x4')](_0x315302('0x24'),_0x1e718e,_0x2a4eac);})['catch'](function(_0x3df573){const _0x5c5cc9=_0x327ec9;logger[_0x5c5cc9('0x4')](JSON[_0x5c5cc9('0x19')](_0x3df573));});});},Migration['prototype'][_0x541b39('0x2b')]=function(_0x21b9d4){const _0x212235=_0x541b39,_0x1f323c=this;this[_0x212235('0xa')]['enqueue'](function(){const _0x3ede0f=_0x212235;return _0x1f323c[_0x3ede0f('0x0')][_0x3ede0f('0x34')][_0x3ede0f('0x2b')](_0x21b9d4)[_0x3ede0f('0x2c')](function(){const _0x4dd071=_0x3ede0f;logger[_0x4dd071('0x4')](_0x4dd071('0x1d'),_0x21b9d4);})[_0x3ede0f('0x20')](function(_0x343d6c){logger['info'](JSON['stringify'](_0x343d6c));});});},Migration[_0x541b39('0x30')][_0x541b39('0x10')]=function(_0x51b69c,_0x12ebd7){const _0x487b3d=_0x541b39,_0x5a0938=this;this[_0x487b3d('0xa')][_0x487b3d('0x29')](function(){const _0x54e21a=_0x487b3d;return _0x5a0938[_0x54e21a('0x0')][_0x54e21a('0x10')](_0x51b69c,_0x12ebd7)['then'](function(){const _0x15a5d8=_0x54e21a;logger['info'](_0x15a5d8('0x2e'),_0x12ebd7,_0x51b69c);})[_0x54e21a('0x20')](function(_0x5a201e){const _0x273e64=_0x54e21a;logger[_0x273e64('0x4')](util[_0x273e64('0xb')](_0x5a201e,{'showHidden':![],'depth':null}));});});},Migration[_0x541b39('0x30')][_0x541b39('0x18')]=function(_0x3f7cd6,_0x11914a,_0x49b405){const _0xeda736=_0x541b39,_0x32768d=this;this[_0xeda736('0xa')][_0xeda736('0x29')](function(){const _0x3f08b4=_0xeda736;return _0x32768d[_0x3f08b4('0x0')][_0x3f08b4('0x18')](_0x3f7cd6,_0x11914a,_0x49b405)[_0x3f08b4('0x2c')](function(){const _0x2f02d8=_0x3f08b4;logger[_0x2f02d8('0x4')](_0x2f02d8('0x1a'),_0x11914a,_0x49b405,_0x3f7cd6);})[_0x3f08b4('0x20')](function(_0x55af22){const _0x5b0b07=_0x3f08b4;logger[_0x5b0b07('0x4')](util['inspect'](_0x55af22,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x541b39('0x36')]=function(_0x202733){const _0x53bbab=_0x541b39;this[_0x53bbab('0xa')][_0x53bbab('0x29')](function(){return _0x202733();});},module[_0x541b39('0x21')]={'up':function(_0x31730d,_0x2bfc59){return new Promise(function(_0x4ebda2){const _0x263ae7=a1015_0xe76a,_0x46e684=new Migration(_0x31730d);_0x46e684[_0x263ae7('0x2b')](_0x263ae7('0x27')),_0x46e684[_0x263ae7('0x2b')](_0x263ae7('0x1b')),_0x46e684[_0x263ae7('0x2b')](_0x263ae7('0x6')),_0x46e684[_0x263ae7('0x2b')](_0x263ae7('0x1')),_0x46e684[_0x263ae7('0x2b')](_0x263ae7('0x33')),_0x46e684['query'](_0x263ae7('0x2d')),_0x46e684[_0x263ae7('0x2b')](_0x263ae7('0x7')),_0x46e684[_0x263ae7('0x2b')](_0x263ae7('0x25')),_0x46e684['addColumn']('voice_queues',_0x263ae7('0xe'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x31'),_0x263ae7('0x23'),{'type':_0x2bfc59['INTEGER'],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')]('voice_queues',_0x263ae7('0xd'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x31'),'dialDropRetryFrequency',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')]('voice_queues',_0x263ae7('0x2f'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x31'),'dialAbandonedRetryFrequency',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x31'),_0x263ae7('0x1c'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x31'),'dialMachineRetryFrequency',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x31'),'dialAgentRejectMaxRetry',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x31'),_0x263ae7('0x35'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x5'),_0x263ae7('0xe'),{'type':_0x2bfc59['INTEGER'],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x5'),_0x263ae7('0x23'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x96}),_0x46e684['addColumn'](_0x263ae7('0x5'),_0x263ae7('0xd'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684['addColumn']('campaigns',_0x263ae7('0x16'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x5'),_0x263ae7('0x2f'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x5'),_0x263ae7('0x11'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x5'),_0x263ae7('0x1c'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x5'),'dialMachineRetryFrequency',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x5'),_0x263ae7('0x9'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x3}),_0x46e684[_0x263ae7('0x3')]('campaigns',_0x263ae7('0x35'),{'type':_0x2bfc59['INTEGER'],'defaultValue':0x96}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0xc'),_0x263ae7('0x1e'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684['addColumn']('cm_hopper','countdropretry',{'type':_0x2bfc59['INTEGER'],'defaultValue':0x0}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0xc'),_0x263ae7('0x1f'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684[_0x263ae7('0x3')]('cm_hopper',_0x263ae7('0x14'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684['addColumn'](_0x263ae7('0xc'),_0x263ae7('0x22'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x26'),'countnosuchnumberretry',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684['addColumn']('cm_hopper_final',_0x263ae7('0x13'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x26'),_0x263ae7('0x1f'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x26'),'countmachineretry',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684['addColumn'](_0x263ae7('0x26'),'countagentrejectretry',{'type':_0x2bfc59['INTEGER'],'defaultValue':0x0}),_0x46e684['addColumn']('cm_hopper_history','countnosuchnumberretry',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684['addColumn']('cm_hopper_history',_0x263ae7('0x13'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684['addColumn'](_0x263ae7('0x39'),'countabandonedretry',{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x39'),_0x263ae7('0x14'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684[_0x263ae7('0x3')](_0x263ae7('0x39'),_0x263ae7('0x22'),{'type':_0x2bfc59[_0x263ae7('0x32')],'defaultValue':0x0}),_0x46e684[_0x263ae7('0x36')](_0x4ebda2);});},'down':function(){}}; \ No newline at end of file +const a1015_0x38d4=['dialAbandonedRetryFrequency','dialNoSuchNumberMaxRetry','inspect','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','ALTER\x20TABLE\x20voice_extensions\x20ADD\x20CONSTRAINT\x20voice_extensions_ibfk_7\x20FOREIGN\x20KEY\x20(VoicePrefixId)\x20REFERENCES\x20voice_prefixes(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20CASCADE','dialAbandonedMaxRetry','dropTable','cm_hopper','removeIndex\x20%s\x20%s','enqueue','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','voice_queues','indexName','../config/logger','ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;','dialMachineRetryFrequency','dialAgentRejectRetryFrequency','dialMachineMaxRetry','sequelize','countnosuchnumberretry','finally','prototype','then','dialDropRetryFrequency','dialAgentRejectMaxRetry','addColumn','addIndex','countabandonedretry','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7','catch','INTEGER','ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;','dialDropMaxRetry','exports','table\x20dropped\x20%s','query','queryInterface','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','cm_hopper_final','countdropretry','campaigns','util','removeColumn','join','final','tail','indicesType','removeIndex','stringify','sequence','countmachineretry','cm_hopper_history','changeColumn','renameColumn','countagentrejectretry'];(function(_0x3e3233,_0x38d424){const _0x402a3a=function(_0x472774){while(--_0x472774){_0x3e3233['push'](_0x3e3233['shift']());}};_0x402a3a(++_0x38d424);}(a1015_0x38d4,0x14c));const a1015_0x402a=function(_0x3e3233,_0x38d424){_0x3e3233=_0x3e3233-0x0;let _0x402a3a=a1015_0x38d4[_0x3e3233];return _0x402a3a;};const _0x1db8a4=a1015_0x402a;'use strict';const util=require(_0x1db8a4('0xe')),logger=require(_0x1db8a4('0x2c'))(_0x1db8a4('0x1f')),Sequence=function(){};Sequence[_0x1db8a4('0x35')][_0x1db8a4('0x26')]=function(_0x472774){const _0x246fc4=_0x1db8a4;this[_0x246fc4('0x12')]=this[_0x246fc4('0x12')]?this[_0x246fc4('0x12')][_0x246fc4('0x34')](_0x472774):_0x472774();};const Migration=function(_0x1bfffb){const _0x2905e9=_0x1db8a4;this['queryInterface']=_0x1bfffb,this[_0x2905e9('0x16')]=new Sequence();};Migration[_0x1db8a4('0x35')][_0x1db8a4('0x19')]=function(_0x49bc26,_0x54dc53,_0x45a327){const _0x4f1f42=this;this['sequence']['enqueue'](function(){const _0x3ec2e9=a1015_0x402a;return _0x4f1f42['queryInterface'][_0x3ec2e9('0x19')](_0x49bc26,_0x54dc53,_0x45a327)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x54dc53,_0x49bc26);})[_0x3ec2e9('0x2')](function(_0x34cd87){const _0x45aaec=_0x3ec2e9;logger[_0x45aaec('0x29')](JSON['stringify'](_0x34cd87));});});},Migration[_0x1db8a4('0x35')][_0x1db8a4('0x39')]=function(_0x1b422c,_0xc56ab4,_0x5df303){const _0x4184ab=_0x1db8a4,_0x1dabde=this;this[_0x4184ab('0x16')][_0x4184ab('0x26')](function(){const _0x4d1135=_0x4184ab;return _0x1dabde[_0x4d1135('0x9')][_0x4d1135('0x39')](_0x1b422c,_0xc56ab4,_0x5df303)[_0x4d1135('0x36')](function(){const _0x273670=_0x4d1135;logger[_0x273670('0x29')](_0x273670('0x27'),_0xc56ab4,_0x1b422c);})[_0x4d1135('0x2')](function(_0x5c9f5b){const _0x6c07df=_0x4d1135;logger[_0x6c07df('0x29')](JSON[_0x6c07df('0x15')](_0x5c9f5b));});});},Migration[_0x1db8a4('0x35')][_0x1db8a4('0x23')]=function(_0x4ed16d){const _0x1e46be=_0x1db8a4,_0x484948=this;this[_0x1e46be('0x16')]['enqueue'](function(){const _0x161873=_0x1e46be;return _0x484948[_0x161873('0x9')][_0x161873('0x23')](_0x4ed16d,{'force':!![]})[_0x161873('0x36')](function(){const _0x39adf4=_0x161873;logger[_0x39adf4('0x29')](_0x39adf4('0x7'),_0x4ed16d);})['catch'](function(_0x2c69ca){const _0x46ae3f=_0x161873;logger[_0x46ae3f('0x29')](JSON[_0x46ae3f('0x15')](_0x2c69ca));});});},Migration[_0x1db8a4('0x35')][_0x1db8a4('0x3a')]=function(_0x5574a5,_0x107810,_0x370eb3){const _0x3bde45=_0x1db8a4,_0x2c3569=this;this[_0x3bde45('0x16')][_0x3bde45('0x26')](function(){const _0x479bac=_0x3bde45;return _0x2c3569['queryInterface'][_0x479bac('0x3a')](_0x5574a5,_0x107810,{'indexName':_0x370eb3[_0x479bac('0x2b')],'indicesType':_0x370eb3[_0x479bac('0x13')]})[_0x479bac('0x36')](function(){const _0x595dc4=_0x479bac;logger['info'](_0x595dc4('0x20'),_0x5574a5,_0x107810[_0x595dc4('0x10')](','),_0x370eb3[_0x595dc4('0x2b')],_0x370eb3['indicesType']);})[_0x479bac('0x2')](function(_0x457901){const _0x318542=_0x479bac;logger['info'](JSON[_0x318542('0x15')](_0x457901));});});},Migration['prototype'][_0x1db8a4('0x14')]=function(_0x197d66,_0x15a713){const _0x967e64=_0x1db8a4,_0x40cd5d=this;this[_0x967e64('0x16')]['enqueue'](function(){const _0x8a7c93=_0x967e64;return _0x40cd5d[_0x8a7c93('0x9')][_0x8a7c93('0x14')](_0x197d66,_0x15a713)['then'](function(){const _0x2d3878=_0x8a7c93;logger[_0x2d3878('0x29')](_0x2d3878('0x25'),_0x197d66,_0x15a713);})[_0x8a7c93('0x2')](function(_0x4fa94c){const _0x4413f1=_0x8a7c93;logger[_0x4413f1('0x29')](JSON[_0x4413f1('0x15')](_0x4fa94c));});});},Migration[_0x1db8a4('0x35')]['query']=function(_0x3e8e38){const _0x4dcee3=_0x1db8a4,_0x199d84=this;this[_0x4dcee3('0x16')][_0x4dcee3('0x26')](function(){const _0x229ab9=_0x4dcee3;return _0x199d84[_0x229ab9('0x9')][_0x229ab9('0x32')][_0x229ab9('0x8')](_0x3e8e38)[_0x229ab9('0x36')](function(){const _0x434dd8=_0x229ab9;logger[_0x434dd8('0x29')]('query\x20%s',_0x3e8e38);})[_0x229ab9('0x2')](function(_0x57e876){logger['info'](JSON['stringify'](_0x57e876));});});},Migration[_0x1db8a4('0x35')][_0x1db8a4('0xf')]=function(_0x1939c3,_0x4081c8){const _0x196a3f=_0x1db8a4,_0x23299d=this;this[_0x196a3f('0x16')][_0x196a3f('0x26')](function(){const _0x3f27dd=_0x196a3f;return _0x23299d['queryInterface'][_0x3f27dd('0xf')](_0x1939c3,_0x4081c8)[_0x3f27dd('0x36')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4081c8,_0x1939c3);})['catch'](function(_0x20231c){const _0x560ad7=_0x3f27dd;logger['info'](util[_0x560ad7('0x1e')](_0x20231c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1db8a4('0x1a')]=function(_0x2b083e,_0x2a6234,_0x4402fa){const _0x563682=_0x1db8a4,_0x11418f=this;this[_0x563682('0x16')]['enqueue'](function(){const _0x45578c=_0x563682;return _0x11418f[_0x45578c('0x9')][_0x45578c('0x1a')](_0x2b083e,_0x2a6234,_0x4402fa)[_0x45578c('0x36')](function(){const _0x12db13=_0x45578c;logger[_0x12db13('0x29')](_0x12db13('0x28'),_0x2a6234,_0x4402fa,_0x2b083e);})[_0x45578c('0x2')](function(_0x5693cf){const _0x25a1dc=_0x45578c;logger[_0x25a1dc('0x29')](util[_0x25a1dc('0x1e')](_0x5693cf,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x3c520d){const _0x5b455c=_0x1db8a4;this[_0x5b455c('0x16')]['enqueue'](function(){return _0x3c520d();});},module[_0x1db8a4('0x6')]={'up':function(_0xb934a1,_0x3f7ff0){return new Promise(function(_0x42b192){const _0x1033db=a1015_0x402a,_0x192526=new Migration(_0xb934a1);_0x192526[_0x1033db('0x8')](_0x1033db('0x2e')),_0x192526['query'](_0x1033db('0xa')),_0x192526[_0x1033db('0x8')](_0x1033db('0x2d')),_0x192526['query'](_0x1033db('0x4')),_0x192526['query'](_0x1033db('0x0')),_0x192526[_0x1033db('0x8')](_0x1033db('0x1')),_0x192526['query']('ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7'),_0x192526['query'](_0x1033db('0x21')),_0x192526[_0x1033db('0x39')](_0x1033db('0x2a'),_0x1033db('0x1d'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x3}),_0x192526['addColumn'](_0x1033db('0x2a'),'dialNoSuchNumberRetryFrequency',{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x96}),_0x192526[_0x1033db('0x39')](_0x1033db('0x2a'),'dialDropMaxRetry',{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x3}),_0x192526[_0x1033db('0x39')](_0x1033db('0x2a'),_0x1033db('0x37'),{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x96}),_0x192526['addColumn']('voice_queues',_0x1033db('0x22'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x3}),_0x192526['addColumn'](_0x1033db('0x2a'),_0x1033db('0x1c'),{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x96}),_0x192526[_0x1033db('0x39')]('voice_queues',_0x1033db('0x31'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x3}),_0x192526[_0x1033db('0x39')](_0x1033db('0x2a'),_0x1033db('0x2f'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x96}),_0x192526[_0x1033db('0x39')](_0x1033db('0x2a'),_0x1033db('0x38'),{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x3}),_0x192526[_0x1033db('0x39')]('voice_queues',_0x1033db('0x30'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x96}),_0x192526['addColumn']('campaigns',_0x1033db('0x1d'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x3}),_0x192526['addColumn']('campaigns','dialNoSuchNumberRetryFrequency',{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x96}),_0x192526['addColumn']('campaigns',_0x1033db('0x5'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x3}),_0x192526[_0x1033db('0x39')](_0x1033db('0xd'),'dialDropRetryFrequency',{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x96}),_0x192526[_0x1033db('0x39')](_0x1033db('0xd'),'dialAbandonedMaxRetry',{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x3}),_0x192526[_0x1033db('0x39')](_0x1033db('0xd'),_0x1033db('0x1c'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x96}),_0x192526[_0x1033db('0x39')](_0x1033db('0xd'),_0x1033db('0x31'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x3}),_0x192526['addColumn'](_0x1033db('0xd'),_0x1033db('0x2f'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x96}),_0x192526[_0x1033db('0x39')](_0x1033db('0xd'),_0x1033db('0x38'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x3}),_0x192526[_0x1033db('0x39')](_0x1033db('0xd'),_0x1033db('0x30'),{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x96}),_0x192526[_0x1033db('0x39')]('cm_hopper',_0x1033db('0x33'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0x24'),_0x1033db('0xc'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526['addColumn'](_0x1033db('0x24'),_0x1033db('0x3b'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0x24'),_0x1033db('0x17'),{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x0}),_0x192526['addColumn'](_0x1033db('0x24'),_0x1033db('0x1b'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')]('cm_hopper_final',_0x1033db('0x33'),{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0xb'),'countdropretry',{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0xb'),_0x1033db('0x3b'),{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x0}),_0x192526['addColumn'](_0x1033db('0xb'),_0x1033db('0x17'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0xb'),_0x1033db('0x1b'),{'type':_0x3f7ff0['INTEGER'],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0x18'),_0x1033db('0x33'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0x18'),_0x1033db('0xc'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0x18'),'countabandonedretry',{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0x18'),_0x1033db('0x17'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x39')](_0x1033db('0x18'),_0x1033db('0x1b'),{'type':_0x3f7ff0[_0x1033db('0x3')],'defaultValue':0x0}),_0x192526[_0x1033db('0x11')](_0x42b192);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.3.js b/server/migrations/2.5.3.js index d20684a..6878e45 100644 --- a/server/migrations/2.5.3.js +++ b/server/migrations/2.5.3.js @@ -1 +1 @@ -const a1016_0x4622=['addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex\x20%s\x20%s','removeColumn','finally','changeColumn','prototype','info','stringify','enqueue','indicesType','#011F6A','query','../config/logger','color','catch','table\x20dropped\x20%s','sequence','addIndex','queryInterface','inspect','chat_websites','addColumn','then','join','indexName','final','renameColumn','dropTable','removeIndex','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','STRING','migration','tail','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x1bd8ca,_0x462272){const _0x18a8cc=function(_0x2ad290){while(--_0x2ad290){_0x1bd8ca['push'](_0x1bd8ca['shift']());}};_0x18a8cc(++_0x462272);}(a1016_0x4622,0x159));const a1016_0x18a8=function(_0x1bd8ca,_0x462272){_0x1bd8ca=_0x1bd8ca-0x0;let _0x18a8cc=a1016_0x4622[_0x1bd8ca];return _0x18a8cc;};const _0x18fd73=a1016_0x18a8;'use strict';const util=require('util'),logger=require(_0x18fd73('0x1b'))(_0x18fd73('0xc')),Sequence=function(){};Sequence[_0x18fd73('0x14')][_0x18fd73('0x17')]=function(_0x2ad290){const _0x3e215d=_0x18fd73;this[_0x3e215d('0xd')]=this[_0x3e215d('0xd')]?this[_0x3e215d('0xd')][_0x3e215d('0x12')](_0x2ad290):_0x2ad290();};const Migration=function(_0x52a2fb){const _0x1487d1=_0x18fd73;this[_0x1487d1('0x21')]=_0x52a2fb,this[_0x1487d1('0x1f')]=new Sequence();};Migration['prototype'][_0x18fd73('0x13')]=function(_0x3b8f72,_0x37522c,_0x300e64){const _0xcf652d=_0x18fd73,_0xd48a66=this;this[_0xcf652d('0x1f')]['enqueue'](function(){const _0x518705=_0xcf652d;return _0xd48a66[_0x518705('0x21')][_0x518705('0x13')](_0x3b8f72,_0x37522c,_0x300e64)[_0x518705('0x1')](function(){const _0x597dc4=_0x518705;logger[_0x597dc4('0x15')](_0x597dc4('0xe'),_0x37522c,_0x3b8f72);})[_0x518705('0x1d')](function(_0x106dc2){const _0x4a474d=_0x518705;logger[_0x4a474d('0x15')](JSON['stringify'](_0x106dc2));});});},Migration[_0x18fd73('0x14')][_0x18fd73('0x0')]=function(_0x5ad303,_0x29c08e,_0xdf5378){const _0x348cf6=_0x18fd73,_0x351c56=this;this[_0x348cf6('0x1f')][_0x348cf6('0x17')](function(){const _0x7625da=_0x348cf6;return _0x351c56[_0x7625da('0x21')][_0x7625da('0x0')](_0x5ad303,_0x29c08e,_0xdf5378)[_0x7625da('0x1')](function(){const _0x590ebe=_0x7625da;logger[_0x590ebe('0x15')](_0x590ebe('0x8'),_0x29c08e,_0x5ad303);})['catch'](function(_0x1c7111){const _0x9f4d09=_0x7625da;logger[_0x9f4d09('0x15')](JSON[_0x9f4d09('0x16')](_0x1c7111));});});},Migration['prototype'][_0x18fd73('0x6')]=function(_0x468954){const _0xfaf437=_0x18fd73,_0x294fa3=this;this[_0xfaf437('0x1f')]['enqueue'](function(){const _0xa1314f=_0xfaf437;return _0x294fa3['queryInterface'][_0xa1314f('0x6')](_0x468954,{'force':!![]})[_0xa1314f('0x1')](function(){const _0x32254d=_0xa1314f;logger[_0x32254d('0x15')](_0x32254d('0x1e'),_0x468954);})['catch'](function(_0x39b2f4){const _0x278f2e=_0xa1314f;logger[_0x278f2e('0x15')](JSON[_0x278f2e('0x16')](_0x39b2f4));});});},Migration[_0x18fd73('0x14')][_0x18fd73('0x20')]=function(_0x5631bf,_0x30f018,_0x4b15cc){const _0x3a5441=_0x18fd73,_0x20ec30=this;this[_0x3a5441('0x1f')][_0x3a5441('0x17')](function(){const _0x29f69a=_0x3a5441;return _0x20ec30[_0x29f69a('0x21')][_0x29f69a('0x20')](_0x5631bf,_0x30f018,{'indexName':_0x4b15cc[_0x29f69a('0x3')],'indicesType':_0x4b15cc[_0x29f69a('0x18')]})[_0x29f69a('0x1')](function(){const _0x2a81ca=_0x29f69a;logger[_0x2a81ca('0x15')](_0x2a81ca('0xf'),_0x5631bf,_0x30f018[_0x2a81ca('0x2')](','),_0x4b15cc['indexName'],_0x4b15cc[_0x2a81ca('0x18')]);})['catch'](function(_0x491b9c){const _0x270b57=_0x29f69a;logger[_0x270b57('0x15')](JSON[_0x270b57('0x16')](_0x491b9c));});});},Migration[_0x18fd73('0x14')]['removeIndex']=function(_0x4212d5,_0x521e34){const _0x3ad888=_0x18fd73,_0x3c836b=this;this[_0x3ad888('0x1f')][_0x3ad888('0x17')](function(){const _0x4c6631=_0x3ad888;return _0x3c836b['queryInterface'][_0x4c6631('0x7')](_0x4212d5,_0x521e34)[_0x4c6631('0x1')](function(){const _0x1b89fb=_0x4c6631;logger[_0x1b89fb('0x15')](_0x1b89fb('0x10'),_0x4212d5,_0x521e34);})[_0x4c6631('0x1d')](function(_0x5d3ed9){const _0x68b30d=_0x4c6631;logger[_0x68b30d('0x15')](JSON['stringify'](_0x5d3ed9));});});},Migration[_0x18fd73('0x14')][_0x18fd73('0x1a')]=function(_0x46a0d0){const _0x55944b=_0x18fd73,_0x9a8fde=this;this['sequence'][_0x55944b('0x17')](function(){const _0x284565=_0x55944b;return _0x9a8fde[_0x284565('0x21')]['sequelize'][_0x284565('0x1a')](_0x46a0d0)['then'](function(){const _0x1a104d=_0x284565;logger[_0x1a104d('0x15')](_0x1a104d('0xa'),_0x46a0d0);})[_0x284565('0x1d')](function(_0x4b6f9f){const _0x59a3c9=_0x284565;logger[_0x59a3c9('0x15')](JSON['stringify'](_0x4b6f9f));});});},Migration[_0x18fd73('0x14')][_0x18fd73('0x11')]=function(_0x4d8ecb,_0xc98d5a){const _0x292add=_0x18fd73,_0x10c378=this;this[_0x292add('0x1f')][_0x292add('0x17')](function(){const _0x1e9bd5=_0x292add;return _0x10c378['queryInterface'][_0x1e9bd5('0x11')](_0x4d8ecb,_0xc98d5a)[_0x1e9bd5('0x1')](function(){const _0x12a3e6=_0x1e9bd5;logger['info'](_0x12a3e6('0x9'),_0xc98d5a,_0x4d8ecb);})['catch'](function(_0x5a457f){const _0x3eedcb=_0x1e9bd5;logger['info'](util[_0x3eedcb('0x22')](_0x5a457f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x18fd73('0x5')]=function(_0x11f4f9,_0xf78ce6,_0xdca44e){const _0x4a244f=this;this['sequence']['enqueue'](function(){const _0x5e7532=a1016_0x18a8;return _0x4a244f['queryInterface'][_0x5e7532('0x5')](_0x11f4f9,_0xf78ce6,_0xdca44e)[_0x5e7532('0x1')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xf78ce6,_0xdca44e,_0x11f4f9);})[_0x5e7532('0x1d')](function(_0x41e91d){const _0x3597a6=_0x5e7532;logger[_0x3597a6('0x15')](util[_0x3597a6('0x22')](_0x41e91d,{'showHidden':![],'depth':null}));});});},Migration[_0x18fd73('0x14')][_0x18fd73('0x4')]=function(_0x280fdf){const _0x4485e6=_0x18fd73;this[_0x4485e6('0x1f')][_0x4485e6('0x17')](function(){return _0x280fdf();});},module['exports']={'up':function(_0x338294,_0x49ade2){return new Promise(function(_0x149d3f){const _0x316862=a1016_0x18a8,_0x311d96=new Migration(_0x338294);_0x311d96[_0x316862('0x13')](_0x316862('0x23'),_0x316862('0x1c'),{'type':_0x49ade2['STRING'],'allowNull':![],'defaultValue':_0x316862('0x19'),'validate':{'notEmpty':!![]}}),_0x311d96['changeColumn'](_0x316862('0x23'),'color_button',{'type':_0x49ade2[_0x316862('0xb')],'allowNull':![],'defaultValue':_0x316862('0x19'),'validate':{'notEmpty':!![]}}),_0x311d96[_0x316862('0x4')](_0x149d3f);});},'down':function(){}}; \ No newline at end of file +const a1016_0x36d3=['final','STRING','removeColumn','catch','join','../config/logger','prototype','chat_websites','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','stringify','removeIndex\x20%s\x20%s','info','exports','finally','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','color_button','changeColumn','renameColumn','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','dropTable','queryInterface','enqueue','migration','query','query\x20%s','sequence','#011F6A','then'];(function(_0x4c6548,_0x36d373){const _0x2b0aff=function(_0x38cc9a){while(--_0x38cc9a){_0x4c6548['push'](_0x4c6548['shift']());}};_0x2b0aff(++_0x36d373);}(a1016_0x36d3,0x1da));const a1016_0x2b0a=function(_0x4c6548,_0x36d373){_0x4c6548=_0x4c6548-0x0;let _0x2b0aff=a1016_0x36d3[_0x4c6548];return _0x2b0aff;};const _0x216b71=a1016_0x2b0a;'use strict';const util=require('util'),logger=require(_0x216b71('0x1a'))(_0x216b71('0xf')),Sequence=function(){};Sequence[_0x216b71('0x1b')][_0x216b71('0xe')]=function(_0x38cc9a){const _0x4338d9=_0x216b71;this[_0x4338d9('0x1d')]=this['tail']?this['tail'][_0x4338d9('0x3')](_0x38cc9a):_0x38cc9a();};const Migration=function(_0x1bf2a8){const _0x537c24=_0x216b71;this[_0x537c24('0xd')]=_0x1bf2a8,this[_0x537c24('0x12')]=new Sequence();};Migration[_0x216b71('0x1b')][_0x216b71('0x7')]=function(_0x708180,_0x57e2ce,_0xf8b6f3){const _0x387944=_0x216b71,_0x3691a9=this;this['sequence'][_0x387944('0xe')](function(){const _0x593227=_0x387944;return _0x3691a9[_0x593227('0xd')]['changeColumn'](_0x708180,_0x57e2ce,_0xf8b6f3)[_0x593227('0x14')](function(){const _0x2f8242=_0x593227;logger[_0x2f8242('0x1')](_0x2f8242('0x1e'),_0x57e2ce,_0x708180);})[_0x593227('0x18')](function(_0x1b8a43){const _0x682a75=_0x593227;logger['info'](JSON[_0x682a75('0x20')](_0x1b8a43));});});},Migration[_0x216b71('0x1b')][_0x216b71('0x1f')]=function(_0xc47b33,_0x669cdd,_0x17bec6){const _0x17904f=_0x216b71,_0x2c723d=this;this[_0x17904f('0x12')][_0x17904f('0xe')](function(){const _0x3348b3=_0x17904f;return _0x2c723d[_0x3348b3('0xd')][_0x3348b3('0x1f')](_0xc47b33,_0x669cdd,_0x17bec6)[_0x3348b3('0x14')](function(){const _0x4cd16b=_0x3348b3;logger[_0x4cd16b('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0x669cdd,_0xc47b33);})[_0x3348b3('0x18')](function(_0x2f3cc9){const _0x2ec343=_0x3348b3;logger[_0x2ec343('0x1')](JSON[_0x2ec343('0x20')](_0x2f3cc9));});});},Migration['prototype'][_0x216b71('0xc')]=function(_0x475b60){const _0x376490=_0x216b71,_0x41ea23=this;this[_0x376490('0x12')][_0x376490('0xe')](function(){const _0x457984=_0x376490;return _0x41ea23[_0x457984('0xd')][_0x457984('0xc')](_0x475b60,{'force':!![]})[_0x457984('0x14')](function(){const _0x58723b=_0x457984;logger[_0x58723b('0x1')]('table\x20dropped\x20%s',_0x475b60);})['catch'](function(_0x3bc2e9){const _0x5645cd=_0x457984;logger[_0x5645cd('0x1')](JSON[_0x5645cd('0x20')](_0x3bc2e9));});});},Migration[_0x216b71('0x1b')]['addIndex']=function(_0x174adf,_0x40897a,_0x27c213){const _0x3011dd=_0x216b71,_0x20c001=this;this[_0x3011dd('0x12')][_0x3011dd('0xe')](function(){const _0x1f38d1=_0x3011dd;return _0x20c001[_0x1f38d1('0xd')]['addIndex'](_0x174adf,_0x40897a,{'indexName':_0x27c213[_0x1f38d1('0x4')],'indicesType':_0x27c213['indicesType']})[_0x1f38d1('0x14')](function(){const _0x59680c=_0x1f38d1;logger[_0x59680c('0x1')](_0x59680c('0x5'),_0x174adf,_0x40897a[_0x59680c('0x19')](','),_0x27c213[_0x59680c('0x4')],_0x27c213['indicesType']);})[_0x1f38d1('0x18')](function(_0x3a42a6){const _0x4e5dfd=_0x1f38d1;logger[_0x4e5dfd('0x1')](JSON['stringify'](_0x3a42a6));});});},Migration[_0x216b71('0x1b')]['removeIndex']=function(_0x374705,_0x522d96){const _0x215096=_0x216b71,_0x1d5e3e=this;this[_0x215096('0x12')][_0x215096('0xe')](function(){const _0x342c0a=_0x215096;return _0x1d5e3e[_0x342c0a('0xd')]['removeIndex'](_0x374705,_0x522d96)['then'](function(){const _0x5c67bc=_0x342c0a;logger[_0x5c67bc('0x1')](_0x5c67bc('0x0'),_0x374705,_0x522d96);})[_0x342c0a('0x18')](function(_0x4fdc62){const _0x51d797=_0x342c0a;logger[_0x51d797('0x1')](JSON[_0x51d797('0x20')](_0x4fdc62));});});},Migration[_0x216b71('0x1b')][_0x216b71('0x10')]=function(_0xc9fef8){const _0x30de8a=_0x216b71,_0x485f1b=this;this[_0x30de8a('0x12')][_0x30de8a('0xe')](function(){const _0x571e62=_0x30de8a;return _0x485f1b[_0x571e62('0xd')]['sequelize']['query'](_0xc9fef8)[_0x571e62('0x14')](function(){const _0x29528d=_0x571e62;logger['info'](_0x29528d('0x11'),_0xc9fef8);})[_0x571e62('0x18')](function(_0x42f806){const _0x2ef690=_0x571e62;logger[_0x2ef690('0x1')](JSON[_0x2ef690('0x20')](_0x42f806));});});},Migration[_0x216b71('0x1b')][_0x216b71('0x17')]=function(_0x391d2d,_0x4d2f05){const _0xd98afb=_0x216b71,_0x4f1ba5=this;this[_0xd98afb('0x12')][_0xd98afb('0xe')](function(){const _0x5079a9=_0xd98afb;return _0x4f1ba5[_0x5079a9('0xd')][_0x5079a9('0x17')](_0x391d2d,_0x4d2f05)['then'](function(){const _0xca01e5=_0x5079a9;logger[_0xca01e5('0x1')](_0xca01e5('0x9'),_0x4d2f05,_0x391d2d);})[_0x5079a9('0x18')](function(_0x218b3c){const _0x57a0f2=_0x5079a9;logger[_0x57a0f2('0x1')](util[_0x57a0f2('0xb')](_0x218b3c,{'showHidden':![],'depth':null}));});});},Migration[_0x216b71('0x1b')][_0x216b71('0x8')]=function(_0x111466,_0x5a8c0c,_0x3bab47){const _0xafc6df=_0x216b71,_0x58b84f=this;this[_0xafc6df('0x12')][_0xafc6df('0xe')](function(){const _0xacc252=_0xafc6df;return _0x58b84f[_0xacc252('0xd')][_0xacc252('0x8')](_0x111466,_0x5a8c0c,_0x3bab47)[_0xacc252('0x14')](function(){const _0x1e5a07=_0xacc252;logger['info'](_0x1e5a07('0xa'),_0x5a8c0c,_0x3bab47,_0x111466);})['catch'](function(_0x3c79b7){const _0x4311b7=_0xacc252;logger[_0x4311b7('0x1')](util[_0x4311b7('0xb')](_0x3c79b7,{'showHidden':![],'depth':null}));});});},Migration[_0x216b71('0x1b')][_0x216b71('0x15')]=function(_0x5e5ccc){const _0x255506=_0x216b71;this['sequence'][_0x255506('0xe')](function(){return _0x5e5ccc();});},module[_0x216b71('0x2')]={'up':function(_0x51bf95,_0x4a6790){return new Promise(function(_0x214c75){const _0x39c7b6=a1016_0x2b0a,_0x4dfaab=new Migration(_0x51bf95);_0x4dfaab[_0x39c7b6('0x7')]('chat_websites','color',{'type':_0x4a6790['STRING'],'allowNull':![],'defaultValue':_0x39c7b6('0x13'),'validate':{'notEmpty':!![]}}),_0x4dfaab[_0x39c7b6('0x7')](_0x39c7b6('0x1c'),_0x39c7b6('0x6'),{'type':_0x4a6790[_0x39c7b6('0x16')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x4dfaab[_0x39c7b6('0x15')](_0x214c75);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.4.js b/server/migrations/2.5.4.js index edbb3b0..a6fd9f6 100644 --- a/server/migrations/2.5.4.js +++ b/server/migrations/2.5.4.js @@ -1 +1 @@ -const a1017_0x4f0f=['final','Added\x20column\x20%s\x20to\x20%s','prototype','queryInterface','addColumn','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','tail','finally','util','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','removeIndex','then','sequence','table\x20dropped\x20%s','info','indexName','stringify','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','indicesType','addIndex','removeColumn','enqueue','sequelize'];(function(_0x47af79,_0x4f0f9c){const _0x585e42=function(_0x168567){while(--_0x168567){_0x47af79['push'](_0x47af79['shift']());}};_0x585e42(++_0x4f0f9c);}(a1017_0x4f0f,0x1ce));const a1017_0x585e=function(_0x47af79,_0x4f0f9c){_0x47af79=_0x47af79-0x0;let _0x585e42=a1017_0x4f0f[_0x47af79];return _0x585e42;};const _0x354dcc=a1017_0x585e;'use strict';const util=require(_0x354dcc('0xc')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x354dcc('0x1')]=function(_0x168567){const _0x30c2f7=_0x354dcc;this['tail']=this[_0x30c2f7('0xa')]?this[_0x30c2f7('0xa')][_0x30c2f7('0xb')](_0x168567):_0x168567();};const Migration=function(_0x29929f){const _0x20911f=_0x354dcc;this[_0x20911f('0x6')]=_0x29929f,this['sequence']=new Sequence();};Migration['prototype'][_0x354dcc('0x1a')]=function(_0x4dc5cc,_0x772781,_0x5308a5){const _0x320711=_0x354dcc,_0x7357b0=this;this[_0x320711('0x12')]['enqueue'](function(){const _0x302f66=_0x320711;return _0x7357b0[_0x302f66('0x6')][_0x302f66('0x1a')](_0x4dc5cc,_0x772781,_0x5308a5)['then'](function(){const _0x3ec38d=_0x302f66;logger[_0x3ec38d('0x14')](_0x3ec38d('0x1b'),_0x772781,_0x4dc5cc);})[_0x302f66('0x19')](function(_0x7cb7ae){logger['info'](JSON['stringify'](_0x7cb7ae));});});},Migration[_0x354dcc('0x5')][_0x354dcc('0x7')]=function(_0x397510,_0x21a8ca,_0x4c00e8){const _0x1ee101=_0x354dcc,_0x59f1c4=this;this[_0x1ee101('0x12')][_0x1ee101('0x1')](function(){const _0x57e9cb=_0x1ee101;return _0x59f1c4[_0x57e9cb('0x6')][_0x57e9cb('0x7')](_0x397510,_0x21a8ca,_0x4c00e8)[_0x57e9cb('0x11')](function(){const _0x155a5f=_0x57e9cb;logger[_0x155a5f('0x14')](_0x155a5f('0x4'),_0x21a8ca,_0x397510);})[_0x57e9cb('0x19')](function(_0x582d37){const _0x40c843=_0x57e9cb;logger[_0x40c843('0x14')](JSON['stringify'](_0x582d37));});});},Migration[_0x354dcc('0x5')][_0x354dcc('0xd')]=function(_0x9c05d6){const _0x34b486=_0x354dcc,_0x3661e6=this;this[_0x34b486('0x12')][_0x34b486('0x1')](function(){const _0x11af86=_0x34b486;return _0x3661e6[_0x11af86('0x6')]['dropTable'](_0x9c05d6,{'force':!![]})[_0x11af86('0x11')](function(){const _0x109890=_0x11af86;logger[_0x109890('0x14')](_0x109890('0x13'),_0x9c05d6);})['catch'](function(_0x179c49){const _0x4326ce=_0x11af86;logger[_0x4326ce('0x14')](JSON[_0x4326ce('0x16')](_0x179c49));});});},Migration[_0x354dcc('0x5')][_0x354dcc('0x1e')]=function(_0xe1ef7,_0xfd8628,_0x225431){const _0x4c2d41=_0x354dcc,_0x1cffe9=this;this[_0x4c2d41('0x12')]['enqueue'](function(){const _0xccb4bd=_0x4c2d41;return _0x1cffe9[_0xccb4bd('0x6')][_0xccb4bd('0x1e')](_0xe1ef7,_0xfd8628,{'indexName':_0x225431['indexName'],'indicesType':_0x225431[_0xccb4bd('0x1d')]})[_0xccb4bd('0x11')](function(){const _0x52deea=_0xccb4bd;logger['info'](_0x52deea('0xe'),_0xe1ef7,_0xfd8628['join'](','),_0x225431[_0x52deea('0x15')],_0x225431[_0x52deea('0x1d')]);})['catch'](function(_0x467fbc){const _0x4708df=_0xccb4bd;logger[_0x4708df('0x14')](JSON[_0x4708df('0x16')](_0x467fbc));});});},Migration[_0x354dcc('0x5')][_0x354dcc('0x10')]=function(_0x1cfcaf,_0x1e9ab1){const _0x49954d=_0x354dcc,_0x39b15f=this;this[_0x49954d('0x12')]['enqueue'](function(){const _0x5fe3bf=_0x49954d;return _0x39b15f[_0x5fe3bf('0x6')][_0x5fe3bf('0x10')](_0x1cfcaf,_0x1e9ab1)[_0x5fe3bf('0x11')](function(){const _0x4903ad=_0x5fe3bf;logger[_0x4903ad('0x14')](_0x4903ad('0x8'),_0x1cfcaf,_0x1e9ab1);})['catch'](function(_0x4b5192){const _0x593a9e=_0x5fe3bf;logger[_0x593a9e('0x14')](JSON[_0x593a9e('0x16')](_0x4b5192));});});},Migration['prototype']['query']=function(_0x4c6b86){const _0x26eb13=_0x354dcc,_0x5eeb01=this;this[_0x26eb13('0x12')][_0x26eb13('0x1')](function(){const _0x2baaa1=_0x26eb13;return _0x5eeb01[_0x2baaa1('0x6')][_0x2baaa1('0x2')]['query'](_0x4c6b86)[_0x2baaa1('0x11')](function(){const _0x11afbb=_0x2baaa1;logger[_0x11afbb('0x14')](_0x11afbb('0xf'),_0x4c6b86);})[_0x2baaa1('0x19')](function(_0x4ad878){const _0x711076=_0x2baaa1;logger[_0x711076('0x14')](JSON['stringify'](_0x4ad878));});});},Migration[_0x354dcc('0x5')][_0x354dcc('0x0')]=function(_0x34848b,_0x2e7d3c){const _0x54ecb6=_0x354dcc,_0x18dde5=this;this[_0x54ecb6('0x12')]['enqueue'](function(){const _0x1cb13=_0x54ecb6;return _0x18dde5['queryInterface'][_0x1cb13('0x0')](_0x34848b,_0x2e7d3c)[_0x1cb13('0x11')](function(){const _0x1c2905=_0x1cb13;logger[_0x1c2905('0x14')](_0x1c2905('0x9'),_0x2e7d3c,_0x34848b);})[_0x1cb13('0x19')](function(_0x5bc47d){const _0x1f084e=_0x1cb13;logger[_0x1f084e('0x14')](util[_0x1f084e('0x17')](_0x5bc47d,{'showHidden':![],'depth':null}));});});},Migration[_0x354dcc('0x5')]['renameColumn']=function(_0x2b0bf0,_0x4ffe7a,_0x278e47){const _0x15879c=_0x354dcc,_0x3dd9fc=this;this['sequence'][_0x15879c('0x1')](function(){const _0x559dff=_0x15879c;return _0x3dd9fc[_0x559dff('0x6')]['renameColumn'](_0x2b0bf0,_0x4ffe7a,_0x278e47)[_0x559dff('0x11')](function(){const _0x56bf8c=_0x559dff;logger[_0x56bf8c('0x14')](_0x56bf8c('0x18'),_0x4ffe7a,_0x278e47,_0x2b0bf0);})[_0x559dff('0x19')](function(_0x4de92e){const _0x37d143=_0x559dff;logger[_0x37d143('0x14')](util[_0x37d143('0x17')](_0x4de92e,{'showHidden':![],'depth':null}));});});},Migration[_0x354dcc('0x5')][_0x354dcc('0x3')]=function(_0x3bf615){const _0x3f4dd4=_0x354dcc;this['sequence'][_0x3f4dd4('0x1')](function(){return _0x3bf615();});},module[_0x354dcc('0x1c')]={'up':function(_0x223784){return new Promise(function(_0x492d56){const _0x3a21d2=a1017_0x585e,_0x269187=new Migration(_0x223784);_0x269187[_0x3a21d2('0x3')](_0x492d56);});},'down':function(){}}; \ No newline at end of file +const a1017_0x2d82=['finally','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','addColumn','table\x20dropped\x20%s','changeColumn','queryInterface','info','join','../config/logger','migration','query\x20%s','final','stringify','prototype','Removed\x20column\x20%s\x20from\x20%s','removeColumn','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','indicesType','inspect','tail','sequelize','sequence','catch','renameColumn','enqueue','query','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x3cc79c,_0x2d8213){const _0x5a4080=function(_0x33685a){while(--_0x33685a){_0x3cc79c['push'](_0x3cc79c['shift']());}};_0x5a4080(++_0x2d8213);}(a1017_0x2d82,0x15e));const a1017_0x5a40=function(_0x3cc79c,_0x2d8213){_0x3cc79c=_0x3cc79c-0x0;let _0x5a4080=a1017_0x2d82[_0x3cc79c];return _0x5a4080;};const _0x2ca866=a1017_0x5a40;'use strict';const util=require('util'),logger=require(_0x2ca866('0xc'))(_0x2ca866('0xd')),Sequence=function(){};Sequence[_0x2ca866('0x11')][_0x2ca866('0x1e')]=function(_0x33685a){const _0xdc71cb=_0x2ca866;this[_0xdc71cb('0x19')]=this['tail']?this[_0xdc71cb('0x19')][_0xdc71cb('0x2')](_0x33685a):_0x33685a();};const Migration=function(_0x1933d9){const _0x106cf3=_0x2ca866;this['queryInterface']=_0x1933d9,this[_0x106cf3('0x1b')]=new Sequence();};Migration[_0x2ca866('0x11')][_0x2ca866('0x8')]=function(_0x2a1cf7,_0x22f0c4,_0x212f39){const _0x4ec55c=_0x2ca866,_0x7fa41c=this;this[_0x4ec55c('0x1b')]['enqueue'](function(){const _0x4d6a29=_0x4ec55c;return _0x7fa41c[_0x4d6a29('0x9')]['changeColumn'](_0x2a1cf7,_0x22f0c4,_0x212f39)['then'](function(){const _0x59aacc=_0x4d6a29;logger[_0x59aacc('0xa')](_0x59aacc('0x1'),_0x22f0c4,_0x2a1cf7);})[_0x4d6a29('0x1c')](function(_0x3b8c19){const _0xbd4c3e=_0x4d6a29;logger[_0xbd4c3e('0xa')](JSON['stringify'](_0x3b8c19));});});},Migration[_0x2ca866('0x11')][_0x2ca866('0x6')]=function(_0x40bd61,_0x11be3d,_0x4fb2f2){const _0x4d6a02=_0x2ca866,_0x2ddffe=this;this[_0x4d6a02('0x1b')][_0x4d6a02('0x1e')](function(){const _0x3d4bb6=_0x4d6a02;return _0x2ddffe[_0x3d4bb6('0x9')][_0x3d4bb6('0x6')](_0x40bd61,_0x11be3d,_0x4fb2f2)[_0x3d4bb6('0x14')](function(){const _0x26e274=_0x3d4bb6;logger[_0x26e274('0xa')](_0x26e274('0x0'),_0x11be3d,_0x40bd61);})['catch'](function(_0x437b35){const _0x37ff32=_0x3d4bb6;logger[_0x37ff32('0xa')](JSON[_0x37ff32('0x10')](_0x437b35));});});},Migration[_0x2ca866('0x11')]['dropTable']=function(_0x49f68d){const _0x1579b8=_0x2ca866,_0x20c74c=this;this[_0x1579b8('0x1b')][_0x1579b8('0x1e')](function(){const _0x14ad37=_0x1579b8;return _0x20c74c[_0x14ad37('0x9')]['dropTable'](_0x49f68d,{'force':!![]})['then'](function(){const _0x1f7525=_0x14ad37;logger['info'](_0x1f7525('0x7'),_0x49f68d);})['catch'](function(_0x25fb90){const _0x4868a9=_0x14ad37;logger[_0x4868a9('0xa')](JSON[_0x4868a9('0x10')](_0x25fb90));});});},Migration[_0x2ca866('0x11')][_0x2ca866('0x5')]=function(_0xfa7243,_0x476812,_0xb1cf33){const _0x326dc0=_0x2ca866,_0x3a07d2=this;this['sequence'][_0x326dc0('0x1e')](function(){const _0x5f3043=_0x326dc0;return _0x3a07d2[_0x5f3043('0x9')]['addIndex'](_0xfa7243,_0x476812,{'indexName':_0xb1cf33['indexName'],'indicesType':_0xb1cf33['indicesType']})[_0x5f3043('0x14')](function(){const _0x144aa8=_0x5f3043;logger[_0x144aa8('0xa')](_0x144aa8('0x15'),_0xfa7243,_0x476812[_0x144aa8('0xb')](','),_0xb1cf33[_0x144aa8('0x3')],_0xb1cf33[_0x144aa8('0x17')]);})['catch'](function(_0x88f3e2){const _0x4b37cd=_0x5f3043;logger['info'](JSON[_0x4b37cd('0x10')](_0x88f3e2));});});},Migration['prototype']['removeIndex']=function(_0x19abea,_0x31aedb){const _0x58b969=_0x2ca866,_0x41181b=this;this[_0x58b969('0x1b')][_0x58b969('0x1e')](function(){const _0x4738a4=_0x58b969;return _0x41181b[_0x4738a4('0x9')]['removeIndex'](_0x19abea,_0x31aedb)[_0x4738a4('0x14')](function(){const _0x3609f2=_0x4738a4;logger[_0x3609f2('0xa')]('removeIndex\x20%s\x20%s',_0x19abea,_0x31aedb);})['catch'](function(_0x1ac3e7){const _0x5506c1=_0x4738a4;logger[_0x5506c1('0xa')](JSON[_0x5506c1('0x10')](_0x1ac3e7));});});},Migration[_0x2ca866('0x11')][_0x2ca866('0x1f')]=function(_0x2fa1f3){const _0xc6bb2=_0x2ca866,_0x56ca01=this;this[_0xc6bb2('0x1b')]['enqueue'](function(){const _0x5a746b=_0xc6bb2;return _0x56ca01[_0x5a746b('0x9')][_0x5a746b('0x1a')][_0x5a746b('0x1f')](_0x2fa1f3)[_0x5a746b('0x14')](function(){const _0x21cb02=_0x5a746b;logger[_0x21cb02('0xa')](_0x21cb02('0xe'),_0x2fa1f3);})[_0x5a746b('0x1c')](function(_0x6f2e90){const _0x579bc8=_0x5a746b;logger[_0x579bc8('0xa')](JSON[_0x579bc8('0x10')](_0x6f2e90));});});},Migration[_0x2ca866('0x11')]['removeColumn']=function(_0x56d9a5,_0xdec66e){const _0x7d508e=_0x2ca866,_0x35bfad=this;this['sequence'][_0x7d508e('0x1e')](function(){const _0x459f2c=_0x7d508e;return _0x35bfad[_0x459f2c('0x9')][_0x459f2c('0x13')](_0x56d9a5,_0xdec66e)[_0x459f2c('0x14')](function(){const _0x130341=_0x459f2c;logger[_0x130341('0xa')](_0x130341('0x12'),_0xdec66e,_0x56d9a5);})[_0x459f2c('0x1c')](function(_0x42e31a){const _0x4e0674=_0x459f2c;logger[_0x4e0674('0xa')](util[_0x4e0674('0x18')](_0x42e31a,{'showHidden':![],'depth':null}));});});},Migration[_0x2ca866('0x11')][_0x2ca866('0x1d')]=function(_0xd65ae9,_0x16749e,_0x1359ca){const _0x23e6b9=_0x2ca866,_0x4c8a35=this;this[_0x23e6b9('0x1b')][_0x23e6b9('0x1e')](function(){const _0x1bcd79=_0x23e6b9;return _0x4c8a35[_0x1bcd79('0x9')][_0x1bcd79('0x1d')](_0xd65ae9,_0x16749e,_0x1359ca)[_0x1bcd79('0x14')](function(){const _0x474fb4=_0x1bcd79;logger['info'](_0x474fb4('0x4'),_0x16749e,_0x1359ca,_0xd65ae9);})[_0x1bcd79('0x1c')](function(_0x19cc93){const _0x57cd47=_0x1bcd79;logger[_0x57cd47('0xa')](util[_0x57cd47('0x18')](_0x19cc93,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x320b4f){const _0x236a54=_0x2ca866;this[_0x236a54('0x1b')][_0x236a54('0x1e')](function(){return _0x320b4f();});},module[_0x2ca866('0x16')]={'up':function(_0x5c8c15){return new Promise(function(_0x236e67){const _0x1fc118=a1017_0x5a40,_0x4b5f91=new Migration(_0x5c8c15);_0x4b5f91[_0x1fc118('0xf')](_0x236e67);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.5.js b/server/migrations/2.5.5.js index 4ddb566..5926898 100644 --- a/server/migrations/2.5.5.js +++ b/server/migrations/2.5.5.js @@ -1 +1 @@ -const a1018_0x4498=['final','addIndex','voice','third','query\x20%s','users','openchannel_interactions','ParentId','stringify','addColumn','finally','enqueue','ENUM','fax_interactions','dropTable','inspect','secondDisposition','tail','userDisposition','updatedAt','renameColumn','chat_interactions','cm_hopper_final','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_8`\x20FOREIGN\x20KEY\x20(`ParentId`)\x20REFERENCES\x20`tools_dispositions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27','level','join','INTEGER','sequence','STRING','mail_interactions','changeColumn','description','UNSIGNED','removeColumn','whatsapp_interactions','indexName','userThirdDisposition','userSecondDisposition','info','disposition','name','settings','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','queryInterface','enforcePasswordHistory','table\x20dropped\x20%s','BOOLEAN','Added\x20column\x20%s\x20to\x20%s','prototype','report_queue','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20NULL\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data2\x20=\x20\x270\x27\x20AND\x20data4\x20=\x20\x270\x27','thirdDisposition','then','sequelize','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','first','voice_recordings','clickToAction','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','second','actionType','indicesType','query','migration','catch','tools_dispositions','passwordHistoryLimit','sms_interactions','previousPasswords','removeIndex','exports'];(function(_0x3e5143,_0x44986c){const _0x50ccc4=function(_0x143625){while(--_0x143625){_0x3e5143['push'](_0x3e5143['shift']());}};_0x50ccc4(++_0x44986c);}(a1018_0x4498,0x136));const a1018_0x50cc=function(_0x3e5143,_0x44986c){_0x3e5143=_0x3e5143-0x0;let _0x50ccc4=a1018_0x4498[_0x3e5143];return _0x50ccc4;};const _0xce0896=a1018_0x50cc;'use strict';const util=require(_0xce0896('0x1e')),logger=require('../config/logger')(_0xce0896('0x34')),Sequence=function(){};Sequence[_0xce0896('0x24')][_0xce0896('0x47')]=function(_0x143625){const _0x4fb17c=_0xce0896;this[_0x4fb17c('0x3')]=this[_0x4fb17c('0x3')]?this[_0x4fb17c('0x3')][_0x4fb17c('0x46')](_0x143625):_0x143625();};const Migration=function(_0x635314){const _0x1489ba=_0xce0896;this[_0x1489ba('0x1f')]=_0x635314,this[_0x1489ba('0xe')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x3f1f13,_0x21200a,_0x20e0fa){const _0x46c4a9=_0xce0896,_0x21c45f=this;this[_0x46c4a9('0xe')][_0x46c4a9('0x47')](function(){const _0x522b03=_0x46c4a9;return _0x21c45f[_0x522b03('0x1f')][_0x522b03('0x11')](_0x3f1f13,_0x21200a,_0x20e0fa)[_0x522b03('0x28')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x21200a,_0x3f1f13);})['catch'](function(_0x3fc2b3){const _0x178bd1=_0x522b03;logger[_0x178bd1('0x19')](JSON[_0x178bd1('0x44')](_0x3fc2b3));});});},Migration[_0xce0896('0x24')]['addColumn']=function(_0x534e97,_0x45b6fe,_0x227670){const _0x41d266=_0xce0896,_0x3bd697=this;this[_0x41d266('0xe')][_0x41d266('0x47')](function(){const _0x48edc1=_0x41d266;return _0x3bd697[_0x48edc1('0x1f')]['addColumn'](_0x534e97,_0x45b6fe,_0x227670)[_0x48edc1('0x28')](function(){const _0x38085b=_0x48edc1;logger[_0x38085b('0x19')](_0x38085b('0x23'),_0x45b6fe,_0x534e97);})['catch'](function(_0x2f3c4b){const _0x1de318=_0x48edc1;logger[_0x1de318('0x19')](JSON[_0x1de318('0x44')](_0x2f3c4b));});});},Migration[_0xce0896('0x24')][_0xce0896('0x0')]=function(_0x2936b0){const _0xd72f03=_0xce0896,_0x266106=this;this[_0xd72f03('0xe')][_0xd72f03('0x47')](function(){const _0x11f2de=_0xd72f03;return _0x266106[_0x11f2de('0x1f')]['dropTable'](_0x2936b0,{'force':!![]})[_0x11f2de('0x28')](function(){const _0x1332a4=_0x11f2de;logger[_0x1332a4('0x19')](_0x1332a4('0x21'),_0x2936b0);})[_0x11f2de('0x35')](function(_0x1e26f5){const _0x57e737=_0x11f2de;logger[_0x57e737('0x19')](JSON['stringify'](_0x1e26f5));});});},Migration[_0xce0896('0x24')]['addIndex']=function(_0x4b8629,_0x20579b,_0x28b709){const _0x2d0aa0=_0xce0896,_0x2eecba=this;this[_0x2d0aa0('0xe')][_0x2d0aa0('0x47')](function(){const _0x12ea93=_0x2d0aa0;return _0x2eecba[_0x12ea93('0x1f')][_0x12ea93('0x3d')](_0x4b8629,_0x20579b,{'indexName':_0x28b709[_0x12ea93('0x16')],'indicesType':_0x28b709[_0x12ea93('0x32')]})[_0x12ea93('0x28')](function(){const _0xadf6d9=_0x12ea93;logger[_0xadf6d9('0x19')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4b8629,_0x20579b[_0xadf6d9('0xc')](','),_0x28b709[_0xadf6d9('0x16')],_0x28b709[_0xadf6d9('0x32')]);})['catch'](function(_0x2525c7){logger['info'](JSON['stringify'](_0x2525c7));});});},Migration[_0xce0896('0x24')][_0xce0896('0x3a')]=function(_0x16c07e,_0x792269){const _0x4f1ff8=_0xce0896,_0x31705a=this;this[_0x4f1ff8('0xe')]['enqueue'](function(){const _0xba5e1c=_0x4f1ff8;return _0x31705a[_0xba5e1c('0x1f')][_0xba5e1c('0x3a')](_0x16c07e,_0x792269)['then'](function(){const _0x29e238=_0xba5e1c;logger[_0x29e238('0x19')](_0x29e238('0x2f'),_0x16c07e,_0x792269);})[_0xba5e1c('0x35')](function(_0x252eac){const _0x148625=_0xba5e1c;logger[_0x148625('0x19')](JSON['stringify'](_0x252eac));});});},Migration[_0xce0896('0x24')][_0xce0896('0x33')]=function(_0x265f01){const _0xd879fd=_0xce0896,_0x47d712=this;this[_0xd879fd('0xe')][_0xd879fd('0x47')](function(){const _0x3b179b=_0xd879fd;return _0x47d712['queryInterface'][_0x3b179b('0x29')]['query'](_0x265f01)['then'](function(){const _0x350495=_0x3b179b;logger[_0x350495('0x19')](_0x350495('0x40'),_0x265f01);})[_0x3b179b('0x35')](function(_0x3411e5){const _0x1c6dea=_0x3b179b;logger[_0x1c6dea('0x19')](JSON[_0x1c6dea('0x44')](_0x3411e5));});});},Migration[_0xce0896('0x24')][_0xce0896('0x14')]=function(_0x428496,_0x13985a){const _0x3f0ca3=_0xce0896,_0x137052=this;this[_0x3f0ca3('0xe')][_0x3f0ca3('0x47')](function(){const _0x53ea3a=_0x3f0ca3;return _0x137052[_0x53ea3a('0x1f')]['removeColumn'](_0x428496,_0x13985a)['then'](function(){const _0x2704c1=_0x53ea3a;logger[_0x2704c1('0x19')](_0x2704c1('0x2e'),_0x13985a,_0x428496);})[_0x53ea3a('0x35')](function(_0x120b59){const _0x45159e=_0x53ea3a;logger[_0x45159e('0x19')](util[_0x45159e('0x1')](_0x120b59,{'showHidden':![],'depth':null}));});});},Migration[_0xce0896('0x24')][_0xce0896('0x6')]=function(_0x2dc921,_0x1929e5,_0x285cda){const _0x2604a0=_0xce0896,_0xcdcc3e=this;this[_0x2604a0('0xe')][_0x2604a0('0x47')](function(){const _0x16317e=_0x2604a0;return _0xcdcc3e[_0x16317e('0x1f')]['renameColumn'](_0x2dc921,_0x1929e5,_0x285cda)[_0x16317e('0x28')](function(){const _0x4c4528=_0x16317e;logger['info'](_0x4c4528('0x1d'),_0x1929e5,_0x285cda,_0x2dc921);})[_0x16317e('0x35')](function(_0x1cdadf){const _0x34ad0e=_0x16317e;logger[_0x34ad0e('0x19')](util[_0x34ad0e('0x1')](_0x1cdadf,{'showHidden':![],'depth':null}));});});},Migration[_0xce0896('0x24')][_0xce0896('0x3c')]=function(_0xc1f210){const _0x440cbe=_0xce0896;this[_0x440cbe('0xe')][_0x440cbe('0x47')](function(){return _0xc1f210();});},module[_0xce0896('0x3b')]={'up':function(_0x36a70a,_0x210f6f){return new Promise(function(_0x35647c){const _0x7e076d=a1018_0x50cc,_0x211acd=new Migration(_0x36a70a);_0x211acd[_0x7e076d('0x33')](_0x7e076d('0xa')),_0x211acd[_0x7e076d('0x33')](_0x7e076d('0x26')),_0x211acd['query'](_0x7e076d('0x2a')),_0x211acd[_0x7e076d('0x45')]('settings',_0x7e076d('0x20'),{'type':_0x210f6f['BOOLEAN'],'defaultValue':!![]}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x1c'),_0x7e076d('0x37'),{'type':_0x210f6f[_0x7e076d('0xd')](0x2)[_0x7e076d('0x13')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x41'),_0x7e076d('0x39'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':'passwordResetAt'}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x41'),'settingsEnabled',{'type':_0x210f6f[_0x7e076d('0x22')],'defaultValue':!![]}),_0x211acd['addColumn']('cm_custom_fields',_0x7e076d('0x2d'),{'type':_0x210f6f['BOOLEAN'],'defaultValue':![]}),_0x211acd[_0x7e076d('0x45')]('cm_custom_fields',_0x7e076d('0x31'),{'type':_0x210f6f[_0x7e076d('0x48')](_0x7e076d('0x3e')),'allowNull':![],'defaultValue':_0x7e076d('0x3e')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x36'),_0x7e076d('0xb'),{'type':_0x210f6f['ENUM'](_0x7e076d('0x2b'),_0x7e076d('0x30'),_0x7e076d('0x3f')),'allowNull':![],'defaultValue':_0x7e076d('0x2b'),'after':_0x7e076d('0x1b')}),_0x211acd['addColumn']('tools_dispositions',_0x7e076d('0x12'),{'type':_0x210f6f['STRING'],'after':'level'}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x36'),_0x7e076d('0x43'),{'type':_0x210f6f[_0x7e076d('0xd')],'after':_0x7e076d('0x5')}),_0x211acd['query'](_0x7e076d('0x9')),_0x211acd[_0x7e076d('0x45')]('report_call','userSecondDisposition',{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x4')}),_0x211acd[_0x7e076d('0x45')]('report_call',_0x7e076d('0x17'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x18')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x25'),_0x7e076d('0x2'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':'disposition'}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x25'),'thirdDisposition',{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x2')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x2c'),'userSecondDisposition',{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x4')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x2c'),'userThirdDisposition',{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x18')}),_0x211acd['addColumn']('chat_interactions',_0x7e076d('0x2'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x1a')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x7'),'thirdDisposition',{'type':_0x210f6f['STRING'],'after':_0x7e076d('0x2')}),_0x211acd['addColumn'](_0x7e076d('0x49'),_0x7e076d('0x2'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':'disposition'}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x49'),_0x7e076d('0x27'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x2')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x10'),_0x7e076d('0x2'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x1a')}),_0x211acd['addColumn'](_0x7e076d('0x10'),'thirdDisposition',{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x2')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x42'),'secondDisposition',{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x1a')}),_0x211acd['addColumn']('openchannel_interactions',_0x7e076d('0x27'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x2')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x38'),_0x7e076d('0x2'),{'type':_0x210f6f['STRING'],'after':_0x7e076d('0x1a')}),_0x211acd['addColumn'](_0x7e076d('0x38'),'thirdDisposition',{'type':_0x210f6f['STRING'],'after':'secondDisposition'}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x15'),_0x7e076d('0x2'),{'type':_0x210f6f['STRING'],'after':'disposition'}),_0x211acd[_0x7e076d('0x45')]('whatsapp_interactions',_0x7e076d('0x27'),{'type':_0x210f6f['STRING'],'after':'secondDisposition'}),_0x211acd[_0x7e076d('0x45')]('cm_hopper_final',_0x7e076d('0x2'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':_0x7e076d('0x1a')}),_0x211acd[_0x7e076d('0x45')](_0x7e076d('0x8'),_0x7e076d('0x27'),{'type':_0x210f6f[_0x7e076d('0xf')],'after':'secondDisposition'}),_0x211acd[_0x7e076d('0x3c')](_0x35647c);});},'down':function(){}}; \ No newline at end of file +const a1018_0x498b=['tail','sequelize','previousPasswords','removeIndex','INTEGER','thirdDisposition','second','passwordResetAt','cm_hopper_final','passwordHistoryLimit','migration','stringify','settings','cm_custom_fields','secondDisposition','dropTable','updatedAt','then','clickToAction','queryInterface','first','STRING','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','renameColumn','users','disposition','userDisposition','report_queue','removeIndex\x20%s\x20%s','userSecondDisposition','table\x20dropped\x20%s','prototype','userThirdDisposition','chat_interactions','inspect','../config/logger','query','third','settingsEnabled','tools_dispositions','level','ENUM','voice','report_call','final','openchannel_interactions','description','Removed\x20column\x20%s\x20from\x20%s','voice_recordings','whatsapp_interactions','util','removeColumn','addColumn','ParentId','changeColumn','Added\x20column\x20%s\x20to\x20%s','catch','UNSIGNED','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','join','indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','mail_interactions','enforcePasswordHistory','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','sms_interactions','enqueue','fax_interactions','addIndex','finally'];(function(_0x30a500,_0x498b1f){const _0x232cfb=function(_0x25239d){while(--_0x25239d){_0x30a500['push'](_0x30a500['shift']());}};_0x232cfb(++_0x498b1f);}(a1018_0x498b,0x121));const a1018_0x232c=function(_0x30a500,_0x498b1f){_0x30a500=_0x30a500-0x0;let _0x232cfb=a1018_0x498b[_0x30a500];return _0x232cfb;};const _0x54481d=a1018_0x232c;'use strict';const util=require(_0x54481d('0x3b')),logger=require(_0x54481d('0x2c'))(_0x54481d('0x11')),Sequence=function(){};Sequence[_0x54481d('0x28')][_0x54481d('0x3')]=function(_0x25239d){const _0x332b15=_0x54481d;this[_0x332b15('0x7')]=this['tail']?this[_0x332b15('0x7')][_0x332b15('0x6')](_0x25239d):_0x25239d();};const Migration=function(_0x2e1edf){const _0x532e23=_0x54481d;this[_0x532e23('0x1a')]=_0x2e1edf,this[_0x532e23('0x1f')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x200242,_0x23a213,_0x561025){const _0xcb47c2=_0x54481d,_0x30d7b7=this;this['sequence'][_0xcb47c2('0x3')](function(){const _0x21c7d8=_0xcb47c2;return _0x30d7b7['queryInterface'][_0x21c7d8('0x3f')](_0x200242,_0x23a213,_0x561025)[_0x21c7d8('0x18')](function(){const _0x1994b3=_0x21c7d8;logger[_0x1994b3('0x45')](_0x1994b3('0x1e'),_0x23a213,_0x200242);})[_0x21c7d8('0x41')](function(_0x3578c2){const _0x3fa0d9=_0x21c7d8;logger[_0x3fa0d9('0x45')](JSON[_0x3fa0d9('0x12')](_0x3578c2));});});},Migration['prototype'][_0x54481d('0x3d')]=function(_0x12159a,_0x5237b2,_0x257ccc){const _0x49a5c8=_0x54481d,_0x5f1e87=this;this[_0x49a5c8('0x1f')][_0x49a5c8('0x3')](function(){const _0x308fe1=_0x49a5c8;return _0x5f1e87[_0x308fe1('0x1a')]['addColumn'](_0x12159a,_0x5237b2,_0x257ccc)[_0x308fe1('0x18')](function(){const _0x1243b8=_0x308fe1;logger[_0x1243b8('0x45')](_0x1243b8('0x40'),_0x5237b2,_0x12159a);})[_0x308fe1('0x41')](function(_0x4f6d10){const _0x5e5980=_0x308fe1;logger[_0x5e5980('0x45')](JSON[_0x5e5980('0x12')](_0x4f6d10));});});},Migration[_0x54481d('0x28')][_0x54481d('0x16')]=function(_0x46b42b){const _0x3eeb8e=_0x54481d,_0x29261f=this;this[_0x3eeb8e('0x1f')]['enqueue'](function(){const _0x141171=_0x3eeb8e;return _0x29261f[_0x141171('0x1a')][_0x141171('0x16')](_0x46b42b,{'force':!![]})[_0x141171('0x18')](function(){const _0x3b0ce4=_0x141171;logger['info'](_0x3b0ce4('0x27'),_0x46b42b);})[_0x141171('0x41')](function(_0x180e6b){const _0x398a35=_0x141171;logger[_0x398a35('0x45')](JSON[_0x398a35('0x12')](_0x180e6b));});});},Migration[_0x54481d('0x28')]['addIndex']=function(_0x45739b,_0x2ee925,_0x1c390c){const _0x14eade=_0x54481d,_0x416923=this;this[_0x14eade('0x1f')][_0x14eade('0x3')](function(){const _0x398625=_0x14eade;return _0x416923[_0x398625('0x1a')][_0x398625('0x5')](_0x45739b,_0x2ee925,{'indexName':_0x1c390c['indexName'],'indicesType':_0x1c390c['indicesType']})[_0x398625('0x18')](function(){const _0x2715ac=_0x398625;logger[_0x2715ac('0x45')](_0x2715ac('0x48'),_0x45739b,_0x2ee925[_0x2715ac('0x46')](','),_0x1c390c['indexName'],_0x1c390c[_0x2715ac('0x47')]);})[_0x398625('0x41')](function(_0x3b5dba){logger['info'](JSON['stringify'](_0x3b5dba));});});},Migration[_0x54481d('0x28')][_0x54481d('0xa')]=function(_0x3bd540,_0x2693bc){const _0x4b222b=_0x54481d,_0x37c5b6=this;this['sequence'][_0x4b222b('0x3')](function(){const _0x5dd0cf=_0x4b222b;return _0x37c5b6[_0x5dd0cf('0x1a')][_0x5dd0cf('0xa')](_0x3bd540,_0x2693bc)['then'](function(){const _0x3282cf=_0x5dd0cf;logger[_0x3282cf('0x45')](_0x3282cf('0x25'),_0x3bd540,_0x2693bc);})[_0x5dd0cf('0x41')](function(_0x2c2a51){const _0xf28c43=_0x5dd0cf;logger[_0xf28c43('0x45')](JSON['stringify'](_0x2c2a51));});});},Migration['prototype'][_0x54481d('0x2d')]=function(_0x3ba067){const _0x204c28=_0x54481d,_0x1ccebe=this;this[_0x204c28('0x1f')]['enqueue'](function(){const _0x8c666a=_0x204c28;return _0x1ccebe['queryInterface'][_0x8c666a('0x8')][_0x8c666a('0x2d')](_0x3ba067)[_0x8c666a('0x18')](function(){logger['info']('query\x20%s',_0x3ba067);})[_0x8c666a('0x41')](function(_0x2ef730){const _0x8d2c95=_0x8c666a;logger['info'](JSON[_0x8d2c95('0x12')](_0x2ef730));});});},Migration['prototype'][_0x54481d('0x3c')]=function(_0x267a81,_0x58ec59){const _0x462c4a=_0x54481d,_0x10b1de=this;this[_0x462c4a('0x1f')][_0x462c4a('0x3')](function(){const _0x50640b=_0x462c4a;return _0x10b1de['queryInterface'][_0x50640b('0x3c')](_0x267a81,_0x58ec59)[_0x50640b('0x18')](function(){const _0x541ff7=_0x50640b;logger[_0x541ff7('0x45')](_0x541ff7('0x38'),_0x58ec59,_0x267a81);})['catch'](function(_0x29b788){const _0x2d2248=_0x50640b;logger[_0x2d2248('0x45')](util[_0x2d2248('0x2b')](_0x29b788,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x54481d('0x20')]=function(_0x12feb3,_0x5a59ca,_0x5a6199){const _0x59e7a3=_0x54481d,_0x551cb1=this;this[_0x59e7a3('0x1f')][_0x59e7a3('0x3')](function(){const _0x2edda7=_0x59e7a3;return _0x551cb1['queryInterface'][_0x2edda7('0x20')](_0x12feb3,_0x5a59ca,_0x5a6199)[_0x2edda7('0x18')](function(){const _0x48bf32=_0x2edda7;logger[_0x48bf32('0x45')](_0x48bf32('0x44'),_0x5a59ca,_0x5a6199,_0x12feb3);})[_0x2edda7('0x41')](function(_0x1d90d4){const _0x5ffb92=_0x2edda7;logger[_0x5ffb92('0x45')](util['inspect'](_0x1d90d4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x54481d('0x35')]=function(_0xd8e9b3){const _0x4f8252=_0x54481d;this[_0x4f8252('0x1f')][_0x4f8252('0x3')](function(){return _0xd8e9b3();});},module[_0x54481d('0x43')]={'up':function(_0x2c1532,_0x247e7c){return new Promise(function(_0xc48ca9){const _0x5bfd37=a1018_0x232c,_0x3387e4=new Migration(_0x2c1532);_0x3387e4[_0x5bfd37('0x2d')]('UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27'),_0x3387e4[_0x5bfd37('0x2d')]('UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20NULL\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data2\x20=\x20\x270\x27\x20AND\x20data4\x20=\x20\x270\x27'),_0x3387e4[_0x5bfd37('0x2d')](_0x5bfd37('0x1')),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x13'),_0x5bfd37('0x0'),{'type':_0x247e7c[_0x5bfd37('0x1d')],'defaultValue':!![]}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x13'),_0x5bfd37('0x10'),{'type':_0x247e7c['INTEGER'](0x2)[_0x5bfd37('0x42')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x21'),_0x5bfd37('0x9'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0xe')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x21'),_0x5bfd37('0x2f'),{'type':_0x247e7c[_0x5bfd37('0x1d')],'defaultValue':!![]}),_0x3387e4['addColumn'](_0x5bfd37('0x14'),_0x5bfd37('0x19'),{'type':_0x247e7c[_0x5bfd37('0x1d')],'defaultValue':![]}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x14'),'actionType',{'type':_0x247e7c['ENUM']('voice'),'allowNull':![],'defaultValue':_0x5bfd37('0x33')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x30'),_0x5bfd37('0x31'),{'type':_0x247e7c[_0x5bfd37('0x32')](_0x5bfd37('0x1b'),_0x5bfd37('0xd'),_0x5bfd37('0x2e')),'allowNull':![],'defaultValue':_0x5bfd37('0x1b'),'after':'name'}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x30'),_0x5bfd37('0x37'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x31')}),_0x3387e4[_0x5bfd37('0x3d')]('tools_dispositions',_0x5bfd37('0x3e'),{'type':_0x247e7c[_0x5bfd37('0xb')],'after':_0x5bfd37('0x17')}),_0x3387e4[_0x5bfd37('0x2d')]('ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_8`\x20FOREIGN\x20KEY\x20(`ParentId`)\x20REFERENCES\x20`tools_dispositions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE'),_0x3387e4['addColumn'](_0x5bfd37('0x34'),_0x5bfd37('0x26'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x23')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x34'),_0x5bfd37('0x29'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x26')}),_0x3387e4['addColumn'](_0x5bfd37('0x24'),_0x5bfd37('0x15'),{'type':_0x247e7c['STRING'],'after':_0x5bfd37('0x22')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x24'),'thirdDisposition',{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':'secondDisposition'}),_0x3387e4[_0x5bfd37('0x3d')]('voice_recordings',_0x5bfd37('0x26'),{'type':_0x247e7c['STRING'],'after':_0x5bfd37('0x23')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x39'),'userThirdDisposition',{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x26')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x2a'),_0x5bfd37('0x15'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x22')}),_0x3387e4['addColumn'](_0x5bfd37('0x2a'),_0x5bfd37('0xc'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x15')}),_0x3387e4['addColumn'](_0x5bfd37('0x4'),'secondDisposition',{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x22')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x4'),_0x5bfd37('0xc'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x15')}),_0x3387e4['addColumn'](_0x5bfd37('0x49'),_0x5bfd37('0x15'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':'disposition'}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x49'),'thirdDisposition',{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':'secondDisposition'}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x36'),'secondDisposition',{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x22')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x36'),_0x5bfd37('0xc'),{'type':_0x247e7c['STRING'],'after':_0x5bfd37('0x15')}),_0x3387e4['addColumn'](_0x5bfd37('0x2'),'secondDisposition',{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x22')}),_0x3387e4['addColumn'](_0x5bfd37('0x2'),_0x5bfd37('0xc'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x15')}),_0x3387e4['addColumn'](_0x5bfd37('0x3a'),_0x5bfd37('0x15'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x22')}),_0x3387e4[_0x5bfd37('0x3d')](_0x5bfd37('0x3a'),'thirdDisposition',{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x15')}),_0x3387e4['addColumn'](_0x5bfd37('0xf'),_0x5bfd37('0x15'),{'type':_0x247e7c[_0x5bfd37('0x1c')],'after':_0x5bfd37('0x22')}),_0x3387e4[_0x5bfd37('0x3d')]('cm_hopper_final','thirdDisposition',{'type':_0x247e7c['STRING'],'after':'secondDisposition'}),_0x3387e4[_0x5bfd37('0x35')](_0xc48ca9);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.6.js b/server/migrations/2.5.6.js index 761cc32..b118b7e 100644 --- a/server/migrations/2.5.6.js +++ b/server/migrations/2.5.6.js @@ -1 +1 @@ -const a1019_0x24e0=['cm_contacts','migration','phone','finally','lastName','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','util','renameColumn','query','then','addIndex','fax','sequence','../config/logger','firstName','email','dropTable','info','removeIndex\x20%s\x20%s','removeIndex','catch','inspect','stringify','exports','query\x20%s','table\x20dropped\x20%s','prototype','tail','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','FULLTEXT','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','queryInterface','Added\x20column\x20%s\x20to\x20%s','addColumn','Removed\x20column\x20%s\x20from\x20%s','changeColumn'];(function(_0x4c66cd,_0x24e09d){const _0x2f13dc=function(_0x3ac9a4){while(--_0x3ac9a4){_0x4c66cd['push'](_0x4c66cd['shift']());}};_0x2f13dc(++_0x24e09d);}(a1019_0x24e0,0x126));const a1019_0x2f13=function(_0x4c66cd,_0x24e09d){_0x4c66cd=_0x4c66cd-0x0;let _0x2f13dc=a1019_0x24e0[_0x4c66cd];return _0x2f13dc;};const _0x3c4b9d=a1019_0x2f13;'use strict';const util=require(_0x3c4b9d('0x21')),logger=require(_0x3c4b9d('0x0'))(_0x3c4b9d('0x1b')),Sequence=function(){};Sequence[_0x3c4b9d('0xd')]['enqueue']=function(_0x3ac9a4){const _0x171275=_0x3c4b9d;this[_0x171275('0xe')]=this['tail']?this[_0x171275('0xe')][_0x171275('0x1d')](_0x3ac9a4):_0x3ac9a4();};const Migration=function(_0x548737){const _0x5f1359=_0x3c4b9d;this[_0x5f1359('0x15')]=_0x548737,this[_0x5f1359('0x27')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x502989,_0x56c105,_0x7a0ac1){const _0x91d8de=_0x3c4b9d,_0x8a97f3=this;this[_0x91d8de('0x27')][_0x91d8de('0x14')](function(){const _0x2cbb4c=_0x91d8de;return _0x8a97f3[_0x2cbb4c('0x15')][_0x2cbb4c('0x19')](_0x502989,_0x56c105,_0x7a0ac1)[_0x2cbb4c('0x24')](function(){const _0xf79b0a=_0x2cbb4c;logger[_0xf79b0a('0x4')](_0xf79b0a('0x10'),_0x56c105,_0x502989);})['catch'](function(_0x417d1c){const _0x26779a=_0x2cbb4c;logger['info'](JSON[_0x26779a('0x9')](_0x417d1c));});});},Migration[_0x3c4b9d('0xd')][_0x3c4b9d('0x17')]=function(_0xe502d2,_0x3ef581,_0x5e8580){const _0x4ebad5=_0x3c4b9d,_0x3bb6c7=this;this['sequence'][_0x4ebad5('0x14')](function(){const _0x5232b8=_0x4ebad5;return _0x3bb6c7['queryInterface'][_0x5232b8('0x17')](_0xe502d2,_0x3ef581,_0x5e8580)['then'](function(){const _0xeff3f6=_0x5232b8;logger[_0xeff3f6('0x4')](_0xeff3f6('0x16'),_0x3ef581,_0xe502d2);})[_0x5232b8('0x7')](function(_0x3e6adf){const _0x348fd1=_0x5232b8;logger['info'](JSON[_0x348fd1('0x9')](_0x3e6adf));});});},Migration[_0x3c4b9d('0xd')][_0x3c4b9d('0x3')]=function(_0x4bf8c0){const _0x171dc5=this;this['sequence']['enqueue'](function(){const _0x40589e=a1019_0x2f13;return _0x171dc5[_0x40589e('0x15')][_0x40589e('0x3')](_0x4bf8c0,{'force':!![]})[_0x40589e('0x24')](function(){const _0x295e31=_0x40589e;logger[_0x295e31('0x4')](_0x295e31('0xc'),_0x4bf8c0);})['catch'](function(_0x246b4c){const _0x4d96e0=_0x40589e;logger[_0x4d96e0('0x4')](JSON[_0x4d96e0('0x9')](_0x246b4c));});});},Migration[_0x3c4b9d('0xd')][_0x3c4b9d('0x25')]=function(_0x319913,_0x30aec6,_0x1ad4bd){const _0xd4ce45=_0x3c4b9d,_0x25826d=this;this[_0xd4ce45('0x27')][_0xd4ce45('0x14')](function(){const _0x2c43b2=_0xd4ce45;return _0x25826d[_0x2c43b2('0x15')][_0x2c43b2('0x25')](_0x319913,_0x30aec6,{'indexName':_0x1ad4bd['indexName'],'indicesType':_0x1ad4bd[_0x2c43b2('0xf')]})[_0x2c43b2('0x24')](function(){const _0x2c8235=_0x2c43b2;logger[_0x2c8235('0x4')](_0x2c8235('0x20'),_0x319913,_0x30aec6[_0x2c8235('0x12')](','),_0x1ad4bd['indexName'],_0x1ad4bd[_0x2c8235('0xf')]);})['catch'](function(_0x570f51){const _0x6ca346=_0x2c43b2;logger[_0x6ca346('0x4')](JSON[_0x6ca346('0x9')](_0x570f51));});});},Migration[_0x3c4b9d('0xd')][_0x3c4b9d('0x6')]=function(_0x3fcef5,_0x4bf965){const _0x7aa7cb=_0x3c4b9d,_0x2ed7a1=this;this[_0x7aa7cb('0x27')][_0x7aa7cb('0x14')](function(){const _0xa2fc5c=_0x7aa7cb;return _0x2ed7a1[_0xa2fc5c('0x15')][_0xa2fc5c('0x6')](_0x3fcef5,_0x4bf965)[_0xa2fc5c('0x24')](function(){const _0x3ac0d7=_0xa2fc5c;logger[_0x3ac0d7('0x4')](_0x3ac0d7('0x5'),_0x3fcef5,_0x4bf965);})[_0xa2fc5c('0x7')](function(_0x473cf5){const _0x3d9d42=_0xa2fc5c;logger[_0x3d9d42('0x4')](JSON[_0x3d9d42('0x9')](_0x473cf5));});});},Migration[_0x3c4b9d('0xd')]['query']=function(_0x3095e6){const _0x4f5d5a=_0x3c4b9d,_0x150867=this;this['sequence'][_0x4f5d5a('0x14')](function(){const _0x5bed23=_0x4f5d5a;return _0x150867[_0x5bed23('0x15')]['sequelize'][_0x5bed23('0x23')](_0x3095e6)['then'](function(){const _0x375a03=_0x5bed23;logger['info'](_0x375a03('0xb'),_0x3095e6);})[_0x5bed23('0x7')](function(_0x1cf33b){const _0x607132=_0x5bed23;logger[_0x607132('0x4')](JSON[_0x607132('0x9')](_0x1cf33b));});});},Migration[_0x3c4b9d('0xd')]['removeColumn']=function(_0x5f09e3,_0x595c5f){const _0x3aedb0=_0x3c4b9d,_0x92772a=this;this[_0x3aedb0('0x27')][_0x3aedb0('0x14')](function(){const _0x39b66d=_0x3aedb0;return _0x92772a[_0x39b66d('0x15')]['removeColumn'](_0x5f09e3,_0x595c5f)['then'](function(){const _0x55bff9=_0x39b66d;logger[_0x55bff9('0x4')](_0x55bff9('0x18'),_0x595c5f,_0x5f09e3);})['catch'](function(_0x5f26d2){const _0x49977c=_0x39b66d;logger[_0x49977c('0x4')](util[_0x49977c('0x8')](_0x5f26d2,{'showHidden':![],'depth':null}));});});},Migration[_0x3c4b9d('0xd')][_0x3c4b9d('0x22')]=function(_0x1b8a7e,_0x14101f,_0x8c53c4){const _0x38c430=_0x3c4b9d,_0x35ca57=this;this['sequence'][_0x38c430('0x14')](function(){const _0x2bdb92=_0x38c430;return _0x35ca57[_0x2bdb92('0x15')]['renameColumn'](_0x1b8a7e,_0x14101f,_0x8c53c4)[_0x2bdb92('0x24')](function(){const _0x26135c=_0x2bdb92;logger[_0x26135c('0x4')](_0x26135c('0x13'),_0x14101f,_0x8c53c4,_0x1b8a7e);})[_0x2bdb92('0x7')](function(_0x33fcc6){const _0x5c4b6c=_0x2bdb92;logger[_0x5c4b6c('0x4')](util[_0x5c4b6c('0x8')](_0x33fcc6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3c4b9d('0x1f')]=function(_0x58fccc){const _0x5ac981=_0x3c4b9d;this[_0x5ac981('0x27')][_0x5ac981('0x14')](function(){return _0x58fccc();});},module[_0x3c4b9d('0xa')]={'up':function(_0x571589){return new Promise(function(_0x3ea47b){const _0x1eca76=a1019_0x2f13,_0x3aaf4a=new Migration(_0x571589);_0x3aaf4a[_0x1eca76('0x25')](_0x1eca76('0x1a'),[_0x1eca76('0x1'),_0x1eca76('0x1e'),_0x1eca76('0x1c'),'mobile',_0x1eca76('0x26'),_0x1eca76('0x2')],{'indexName':'fti_cm_contacts','indicesType':_0x1eca76('0x11')}),_0x3aaf4a[_0x1eca76('0x1f')](_0x3ea47b);});},'down':function(){}}; \ No newline at end of file +const a1019_0x1a39=['util','exports','join','query','dropTable','catch','changeColumn','sequence','Added\x20column\x20%s\x20to\x20%s','queryInterface','table\x20dropped\x20%s','finally','cm_contacts','stringify','migration','tail','removeIndex\x20%s\x20%s','renameColumn','prototype','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','mobile','fax','inspect','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','firstName','indicesType','phone','removeIndex','then','addColumn','Removed\x20column\x20%s\x20from\x20%s','enqueue','info','addIndex','indexName'];(function(_0x34fd4c,_0x1a3966){const _0x135230=function(_0x53b236){while(--_0x53b236){_0x34fd4c['push'](_0x34fd4c['shift']());}};_0x135230(++_0x1a3966);}(a1019_0x1a39,0xc9));const a1019_0x1352=function(_0x34fd4c,_0x1a3966){_0x34fd4c=_0x34fd4c-0x0;let _0x135230=a1019_0x1a39[_0x34fd4c];return _0x135230;};const _0x517a11=a1019_0x1352;'use strict';const util=require(_0x517a11('0x27')),logger=require(_0x517a11('0x1b'))(_0x517a11('0xd')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x53b236){const _0x4d61f1=_0x517a11;this[_0x4d61f1('0xe')]=this[_0x4d61f1('0xe')]?this[_0x4d61f1('0xe')][_0x4d61f1('0xa')](_0x53b236):_0x53b236();};const Migration=function(_0x44eb4b){const _0x180e01=_0x517a11;this[_0x180e01('0x8')]=_0x44eb4b,this['sequence']=new Sequence();};Migration['prototype'][_0x517a11('0x5')]=function(_0x55e633,_0x1f4b2d,_0x38a0f6){const _0x3f3ec1=_0x517a11,_0x5d5720=this;this[_0x3f3ec1('0x6')][_0x3f3ec1('0x23')](function(){const _0x59413e=_0x3f3ec1;return _0x5d5720[_0x59413e('0x8')][_0x59413e('0x5')](_0x55e633,_0x1f4b2d,_0x38a0f6)[_0x59413e('0x20')](function(){const _0x160996=_0x59413e;logger[_0x160996('0x24')](_0x160996('0x13'),_0x1f4b2d,_0x55e633);})[_0x59413e('0x4')](function(_0x560862){const _0x402d85=_0x59413e;logger[_0x402d85('0x24')](JSON['stringify'](_0x560862));});});},Migration[_0x517a11('0x11')]['addColumn']=function(_0x25fc03,_0x920a12,_0x5b8a4d){const _0x386ab6=_0x517a11,_0x3c3973=this;this[_0x386ab6('0x6')][_0x386ab6('0x23')](function(){const _0x86dd26=_0x386ab6;return _0x3c3973[_0x86dd26('0x8')][_0x86dd26('0x21')](_0x25fc03,_0x920a12,_0x5b8a4d)[_0x86dd26('0x20')](function(){const _0x5dd5bf=_0x86dd26;logger[_0x5dd5bf('0x24')](_0x5dd5bf('0x7'),_0x920a12,_0x25fc03);})['catch'](function(_0x22cb67){const _0x16bf6b=_0x86dd26;logger[_0x16bf6b('0x24')](JSON['stringify'](_0x22cb67));});});},Migration[_0x517a11('0x11')][_0x517a11('0x3')]=function(_0x4d2603){const _0x47d43b=this;this['sequence']['enqueue'](function(){const _0x1285d8=a1019_0x1352;return _0x47d43b[_0x1285d8('0x8')]['dropTable'](_0x4d2603,{'force':!![]})[_0x1285d8('0x20')](function(){const _0x2205ff=_0x1285d8;logger[_0x2205ff('0x24')](_0x2205ff('0x9'),_0x4d2603);})['catch'](function(_0x3d7d05){const _0x2ff6bb=_0x1285d8;logger[_0x2ff6bb('0x24')](JSON[_0x2ff6bb('0xc')](_0x3d7d05));});});},Migration[_0x517a11('0x11')][_0x517a11('0x25')]=function(_0x3abcbd,_0x396e16,_0x52c9db){const _0x2adaee=_0x517a11,_0x489a77=this;this[_0x2adaee('0x6')][_0x2adaee('0x23')](function(){const _0xea2435=_0x2adaee;return _0x489a77[_0xea2435('0x8')]['addIndex'](_0x3abcbd,_0x396e16,{'indexName':_0x52c9db[_0xea2435('0x26')],'indicesType':_0x52c9db[_0xea2435('0x1d')]})[_0xea2435('0x20')](function(){const _0x1d0539=_0xea2435;logger[_0x1d0539('0x24')](_0x1d0539('0x1a'),_0x3abcbd,_0x396e16[_0x1d0539('0x1')](','),_0x52c9db[_0x1d0539('0x26')],_0x52c9db['indicesType']);})[_0xea2435('0x4')](function(_0x2b103e){const _0x682027=_0xea2435;logger['info'](JSON[_0x682027('0xc')](_0x2b103e));});});},Migration[_0x517a11('0x11')][_0x517a11('0x1f')]=function(_0x255cf9,_0x410d6e){const _0x31be36=_0x517a11,_0x1d839b=this;this[_0x31be36('0x6')][_0x31be36('0x23')](function(){const _0x217f92=_0x31be36;return _0x1d839b[_0x217f92('0x8')]['removeIndex'](_0x255cf9,_0x410d6e)[_0x217f92('0x20')](function(){const _0x269c6b=_0x217f92;logger[_0x269c6b('0x24')](_0x269c6b('0xf'),_0x255cf9,_0x410d6e);})[_0x217f92('0x4')](function(_0x3df2dc){const _0x320992=_0x217f92;logger[_0x320992('0x24')](JSON[_0x320992('0xc')](_0x3df2dc));});});},Migration[_0x517a11('0x11')][_0x517a11('0x2')]=function(_0x2041aa){const _0x44d3b5=_0x517a11,_0x1c099a=this;this[_0x44d3b5('0x6')][_0x44d3b5('0x23')](function(){const _0x461386=_0x44d3b5;return _0x1c099a[_0x461386('0x8')][_0x461386('0x12')][_0x461386('0x2')](_0x2041aa)[_0x461386('0x20')](function(){const _0x547794=_0x461386;logger[_0x547794('0x24')](_0x547794('0x15'),_0x2041aa);})['catch'](function(_0x26bc53){const _0x353b10=_0x461386;logger[_0x353b10('0x24')](JSON[_0x353b10('0xc')](_0x26bc53));});});},Migration[_0x517a11('0x11')]['removeColumn']=function(_0x29f365,_0x52afeb){const _0x1e87eb=_0x517a11,_0x437087=this;this['sequence'][_0x1e87eb('0x23')](function(){const _0x321a84=_0x1e87eb;return _0x437087[_0x321a84('0x8')]['removeColumn'](_0x29f365,_0x52afeb)[_0x321a84('0x20')](function(){const _0x303a64=_0x321a84;logger['info'](_0x303a64('0x22'),_0x52afeb,_0x29f365);})[_0x321a84('0x4')](function(_0xdd1264){const _0x1ab476=_0x321a84;logger[_0x1ab476('0x24')](util[_0x1ab476('0x18')](_0xdd1264,{'showHidden':![],'depth':null}));});});},Migration[_0x517a11('0x11')][_0x517a11('0x10')]=function(_0x4db285,_0x920f5,_0x305110){const _0xecc0b5=_0x517a11,_0x2624b7=this;this[_0xecc0b5('0x6')][_0xecc0b5('0x23')](function(){const _0x209797=_0xecc0b5;return _0x2624b7[_0x209797('0x8')][_0x209797('0x10')](_0x4db285,_0x920f5,_0x305110)['then'](function(){const _0x3bfbc9=_0x209797;logger[_0x3bfbc9('0x24')](_0x3bfbc9('0x14'),_0x920f5,_0x305110,_0x4db285);})[_0x209797('0x4')](function(_0x1aa1b9){const _0x35fcad=_0x209797;logger[_0x35fcad('0x24')](util['inspect'](_0x1aa1b9,{'showHidden':![],'depth':null}));});});},Migration[_0x517a11('0x11')][_0x517a11('0x19')]=function(_0x41b77c){const _0x9148c9=_0x517a11;this[_0x9148c9('0x6')]['enqueue'](function(){return _0x41b77c();});},module[_0x517a11('0x0')]={'up':function(_0x58afde){return new Promise(function(_0x90644){const _0x5ede91=a1019_0x1352,_0xda8051=new Migration(_0x58afde);_0xda8051[_0x5ede91('0x25')](_0x5ede91('0xb'),[_0x5ede91('0x1c'),'lastName',_0x5ede91('0x1e'),_0x5ede91('0x16'),_0x5ede91('0x17'),'email'],{'indexName':'fti_cm_contacts','indicesType':'FULLTEXT'}),_0xda8051[_0x5ede91('0x19')](_0x90644);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/3.0.0.js b/server/migrations/3.0.0.js index 3560687..6346c3a 100644 --- a/server/migrations/3.0.0.js +++ b/server/migrations/3.0.0.js @@ -1 +1 @@ -const a1020_0x342c=['stringify','tail','join','info','migration','../config/logger','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','addColumn','table\x20dropped\x20%s','dropTable','prototype','inspect','sequence','ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`','indicesType','renameColumn','queryInterface','util','finally','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','addIndex','sequelize','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','catch','exports','query','removeColumn','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT','indexName'];(function(_0x1d1d96,_0x342c5f){const _0x88c419=function(_0x5514ff){while(--_0x5514ff){_0x1d1d96['push'](_0x1d1d96['shift']());}};_0x88c419(++_0x342c5f);}(a1020_0x342c,0x93));const a1020_0x88c4=function(_0x1d1d96,_0x342c5f){_0x1d1d96=_0x1d1d96-0x0;let _0x88c419=a1020_0x342c[_0x1d1d96];return _0x88c419;};const _0x5533b1=a1020_0x88c4;'use strict';const util=require(_0x5533b1('0xa')),logger=require(_0x5533b1('0x1c'))(_0x5533b1('0x1b')),Sequence=function(){};Sequence[_0x5533b1('0x3')][_0x5533b1('0x21')]=function(_0x5514ff){const _0x80cd5=_0x5533b1;this[_0x80cd5('0x18')]=this['tail']?this[_0x80cd5('0x18')][_0x80cd5('0xb')](_0x5514ff):_0x5514ff();};const Migration=function(_0x4d2dcb){const _0x32c6b9=_0x5533b1;this[_0x32c6b9('0x9')]=_0x4d2dcb,this[_0x32c6b9('0x5')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x403c88,_0x4c659b,_0x26446a){const _0x283196=_0x5533b1,_0x37ff9a=this;this[_0x283196('0x5')][_0x283196('0x21')](function(){const _0x1226ac=_0x283196;return _0x37ff9a[_0x1226ac('0x9')]['changeColumn'](_0x403c88,_0x4c659b,_0x26446a)[_0x1226ac('0x1f')](function(){const _0x36504c=_0x1226ac;logger[_0x36504c('0x1a')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4c659b,_0x403c88);})[_0x1226ac('0x11')](function(_0x381370){logger['info'](JSON['stringify'](_0x381370));});});},Migration[_0x5533b1('0x3')][_0x5533b1('0x0')]=function(_0x5951f9,_0x9d50d1,_0x33e0a7){const _0x229681=_0x5533b1,_0xa4e3e7=this;this[_0x229681('0x5')][_0x229681('0x21')](function(){const _0x57aeb9=_0x229681;return _0xa4e3e7['queryInterface'][_0x57aeb9('0x0')](_0x5951f9,_0x9d50d1,_0x33e0a7)[_0x57aeb9('0x1f')](function(){const _0x442f23=_0x57aeb9;logger[_0x442f23('0x1a')](_0x442f23('0x10'),_0x9d50d1,_0x5951f9);})['catch'](function(_0x5a59b2){const _0xf44ce6=_0x57aeb9;logger[_0xf44ce6('0x1a')](JSON[_0xf44ce6('0x17')](_0x5a59b2));});});},Migration[_0x5533b1('0x3')][_0x5533b1('0x2')]=function(_0x169025){const _0x36f40d=_0x5533b1,_0x19aa1f=this;this[_0x36f40d('0x5')][_0x36f40d('0x21')](function(){const _0x10f8a5=_0x36f40d;return _0x19aa1f['queryInterface']['dropTable'](_0x169025,{'force':!![]})[_0x10f8a5('0x1f')](function(){const _0x450362=_0x10f8a5;logger[_0x450362('0x1a')](_0x450362('0x1'),_0x169025);})[_0x10f8a5('0x11')](function(_0x2f8dbf){const _0x315ce2=_0x10f8a5;logger[_0x315ce2('0x1a')](JSON[_0x315ce2('0x17')](_0x2f8dbf));});});},Migration[_0x5533b1('0x3')][_0x5533b1('0xd')]=function(_0x5bf303,_0x2d4d46,_0x4bb882){const _0x2aeb5e=_0x5533b1,_0x496157=this;this[_0x2aeb5e('0x5')][_0x2aeb5e('0x21')](function(){const _0x1104f8=_0x2aeb5e;return _0x496157[_0x1104f8('0x9')][_0x1104f8('0xd')](_0x5bf303,_0x2d4d46,{'indexName':_0x4bb882[_0x1104f8('0x16')],'indicesType':_0x4bb882[_0x1104f8('0x7')]})[_0x1104f8('0x1f')](function(){const _0x5c74c5=_0x1104f8;logger[_0x5c74c5('0x1a')](_0x5c74c5('0x1e'),_0x5bf303,_0x2d4d46[_0x5c74c5('0x19')](','),_0x4bb882[_0x5c74c5('0x16')],_0x4bb882[_0x5c74c5('0x7')]);})[_0x1104f8('0x11')](function(_0x1266af){const _0x4d634f=_0x1104f8;logger[_0x4d634f('0x1a')](JSON[_0x4d634f('0x17')](_0x1266af));});});},Migration[_0x5533b1('0x3')]['removeIndex']=function(_0x247c3a,_0x279628){const _0x12f6e9=_0x5533b1,_0x247c6e=this;this[_0x12f6e9('0x5')]['enqueue'](function(){const _0x1921f5=_0x12f6e9;return _0x247c6e[_0x1921f5('0x9')]['removeIndex'](_0x247c3a,_0x279628)[_0x1921f5('0x1f')](function(){const _0x1faa07=_0x1921f5;logger['info'](_0x1faa07('0xf'),_0x247c3a,_0x279628);})[_0x1921f5('0x11')](function(_0x54f8a9){const _0x40c1d7=_0x1921f5;logger[_0x40c1d7('0x1a')](JSON[_0x40c1d7('0x17')](_0x54f8a9));});});},Migration[_0x5533b1('0x3')]['query']=function(_0x5eda1b){const _0x3e418f=_0x5533b1,_0xf14d57=this;this[_0x3e418f('0x5')][_0x3e418f('0x21')](function(){const _0x2932bb=_0x3e418f;return _0xf14d57['queryInterface'][_0x2932bb('0xe')][_0x2932bb('0x13')](_0x5eda1b)['then'](function(){const _0x20d2c4=_0x2932bb;logger[_0x20d2c4('0x1a')]('query\x20%s',_0x5eda1b);})[_0x2932bb('0x11')](function(_0xc9dd9b){const _0x44791=_0x2932bb;logger[_0x44791('0x1a')](JSON[_0x44791('0x17')](_0xc9dd9b));});});},Migration[_0x5533b1('0x3')][_0x5533b1('0x14')]=function(_0x115bff,_0x11a625){const _0x203e45=_0x5533b1,_0x2f3c87=this;this[_0x203e45('0x5')][_0x203e45('0x21')](function(){const _0x12cec9=_0x203e45;return _0x2f3c87[_0x12cec9('0x9')]['removeColumn'](_0x115bff,_0x11a625)[_0x12cec9('0x1f')](function(){const _0x382f74=_0x12cec9;logger[_0x382f74('0x1a')]('Removed\x20column\x20%s\x20from\x20%s',_0x11a625,_0x115bff);})[_0x12cec9('0x11')](function(_0x1d5aa6){const _0x18466b=_0x12cec9;logger['info'](util[_0x18466b('0x4')](_0x1d5aa6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5533b1('0x8')]=function(_0x47c608,_0x53ed16,_0x384644){const _0x1e2408=this;this['sequence']['enqueue'](function(){const _0x403306=a1020_0x88c4;return _0x1e2408[_0x403306('0x9')][_0x403306('0x8')](_0x47c608,_0x53ed16,_0x384644)[_0x403306('0x1f')](function(){const _0x27b5d4=_0x403306;logger[_0x27b5d4('0x1a')](_0x27b5d4('0x20'),_0x53ed16,_0x384644,_0x47c608);})['catch'](function(_0x39bc49){const _0x70be8e=_0x403306;logger['info'](util[_0x70be8e('0x4')](_0x39bc49,{'showHidden':![],'depth':null}));});});},Migration[_0x5533b1('0x3')][_0x5533b1('0x1d')]=function(_0x43ab2b){const _0x57102b=_0x5533b1;this[_0x57102b('0x5')][_0x57102b('0x21')](function(){return _0x43ab2b();});},module[_0x5533b1('0x12')]={'up':function(_0x1beb2e){return new Promise(function(_0x5e6e04){const _0x388b9d=a1020_0x88c4,_0xb07955=new Migration(_0x1beb2e);_0xb07955[_0x388b9d('0x13')](_0x388b9d('0x6')),_0xb07955[_0x388b9d('0x13')](_0x388b9d('0xc')),_0xb07955[_0x388b9d('0x13')](_0x388b9d('0x15')),_0xb07955[_0x388b9d('0x1d')](_0x5e6e04);});},'down':function(){}}; \ No newline at end of file +const a1020_0x61ed=['finally','query\x20%s','dropTable','final','query','util','then','catch','migration','indexName','../config/logger','renameColumn','sequelize','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex','removeColumn','addColumn','ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`','removeIndex\x20%s\x20%s','stringify','Removed\x20column\x20%s\x20from\x20%s','tail','addIndex','inspect','info','table\x20dropped\x20%s','indicesType','join','sequence','queryInterface','enqueue','prototype','exports','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT'];(function(_0x5492d4,_0x61ed5c){const _0x2af609=function(_0x55e7a0){while(--_0x55e7a0){_0x5492d4['push'](_0x5492d4['shift']());}};_0x2af609(++_0x61ed5c);}(a1020_0x61ed,0xb0));const a1020_0x2af6=function(_0x5492d4,_0x61ed5c){_0x5492d4=_0x5492d4-0x0;let _0x2af609=a1020_0x61ed[_0x5492d4];return _0x2af609;};const _0x2d1b85=a1020_0x2af6;'use strict';const util=require(_0x2d1b85('0x21')),logger=require(_0x2d1b85('0x4'))(_0x2d1b85('0x2')),Sequence=function(){};Sequence['prototype'][_0x2d1b85('0x18')]=function(_0x55e7a0){const _0x1d29bd=_0x2d1b85;this[_0x1d29bd('0xf')]=this['tail']?this[_0x1d29bd('0xf')][_0x1d29bd('0x1c')](_0x55e7a0):_0x55e7a0();};const Migration=function(_0x39452a){const _0xc87093=_0x2d1b85;this[_0xc87093('0x17')]=_0x39452a,this['sequence']=new Sequence();};Migration[_0x2d1b85('0x19')]['changeColumn']=function(_0x3cd5df,_0x4fb0ff,_0x9ab0fe){const _0x11e24b=_0x2d1b85,_0x352341=this;this[_0x11e24b('0x16')]['enqueue'](function(){return _0x352341['queryInterface']['changeColumn'](_0x3cd5df,_0x4fb0ff,_0x9ab0fe)['then'](function(){const _0x29bbeb=a1020_0x2af6;logger[_0x29bbeb('0x12')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4fb0ff,_0x3cd5df);})['catch'](function(_0x3e533c){const _0xfb0cb0=a1020_0x2af6;logger[_0xfb0cb0('0x12')](JSON[_0xfb0cb0('0xd')](_0x3e533c));});});},Migration['prototype'][_0x2d1b85('0xa')]=function(_0xf7352a,_0x4eeace,_0x3b5c64){const _0x54d647=_0x2d1b85,_0x409e2b=this;this[_0x54d647('0x16')][_0x54d647('0x18')](function(){const _0x8ff67c=_0x54d647;return _0x409e2b[_0x8ff67c('0x17')][_0x8ff67c('0xa')](_0xf7352a,_0x4eeace,_0x3b5c64)['then'](function(){const _0x4f550f=_0x8ff67c;logger[_0x4f550f('0x12')]('Added\x20column\x20%s\x20to\x20%s',_0x4eeace,_0xf7352a);})[_0x8ff67c('0x1')](function(_0x45afa0){const _0x1997de=_0x8ff67c;logger['info'](JSON[_0x1997de('0xd')](_0x45afa0));});});},Migration['prototype'][_0x2d1b85('0x1e')]=function(_0x2239e9){const _0x464e40=_0x2d1b85,_0xdff860=this;this['sequence'][_0x464e40('0x18')](function(){const _0x3ed42c=_0x464e40;return _0xdff860[_0x3ed42c('0x17')][_0x3ed42c('0x1e')](_0x2239e9,{'force':!![]})[_0x3ed42c('0x0')](function(){const _0x269cc0=_0x3ed42c;logger[_0x269cc0('0x12')](_0x269cc0('0x13'),_0x2239e9);})['catch'](function(_0x36578f){const _0x47a8da=_0x3ed42c;logger[_0x47a8da('0x12')](JSON[_0x47a8da('0xd')](_0x36578f));});});},Migration['prototype'][_0x2d1b85('0x10')]=function(_0x46fe96,_0x5e3edf,_0x1597e4){const _0x3bc68b=_0x2d1b85,_0x3d5a9a=this;this['sequence'][_0x3bc68b('0x18')](function(){const _0xf4f421=_0x3bc68b;return _0x3d5a9a[_0xf4f421('0x17')][_0xf4f421('0x10')](_0x46fe96,_0x5e3edf,{'indexName':_0x1597e4[_0xf4f421('0x3')],'indicesType':_0x1597e4[_0xf4f421('0x14')]})['then'](function(){const _0x2d58f6=_0xf4f421;logger[_0x2d58f6('0x12')](_0x2d58f6('0x7'),_0x46fe96,_0x5e3edf[_0x2d58f6('0x15')](','),_0x1597e4[_0x2d58f6('0x3')],_0x1597e4[_0x2d58f6('0x14')]);})[_0xf4f421('0x1')](function(_0x5548e1){const _0xb156f9=_0xf4f421;logger[_0xb156f9('0x12')](JSON[_0xb156f9('0xd')](_0x5548e1));});});},Migration['prototype'][_0x2d1b85('0x8')]=function(_0x394e8e,_0x1d3b74){const _0x384715=_0x2d1b85,_0x364bec=this;this[_0x384715('0x16')][_0x384715('0x18')](function(){const _0x376bda=_0x384715;return _0x364bec['queryInterface'][_0x376bda('0x8')](_0x394e8e,_0x1d3b74)[_0x376bda('0x0')](function(){const _0x1d68d8=_0x376bda;logger[_0x1d68d8('0x12')](_0x1d68d8('0xc'),_0x394e8e,_0x1d3b74);})[_0x376bda('0x1')](function(_0x123de1){const _0x62f364=_0x376bda;logger[_0x62f364('0x12')](JSON['stringify'](_0x123de1));});});},Migration[_0x2d1b85('0x19')][_0x2d1b85('0x20')]=function(_0x6d2b4c){const _0x5d173d=_0x2d1b85,_0x4097fe=this;this['sequence'][_0x5d173d('0x18')](function(){const _0x503ba9=_0x5d173d;return _0x4097fe[_0x503ba9('0x17')][_0x503ba9('0x6')]['query'](_0x6d2b4c)[_0x503ba9('0x0')](function(){const _0x3ec07e=_0x503ba9;logger[_0x3ec07e('0x12')](_0x3ec07e('0x1d'),_0x6d2b4c);})[_0x503ba9('0x1')](function(_0x19a09a){const _0x2b985a=_0x503ba9;logger[_0x2b985a('0x12')](JSON['stringify'](_0x19a09a));});});},Migration[_0x2d1b85('0x19')][_0x2d1b85('0x9')]=function(_0x595f4c,_0x420f49){const _0x2389b9=_0x2d1b85,_0x55d515=this;this['sequence'][_0x2389b9('0x18')](function(){const _0x374583=_0x2389b9;return _0x55d515[_0x374583('0x17')]['removeColumn'](_0x595f4c,_0x420f49)[_0x374583('0x0')](function(){const _0x70c687=_0x374583;logger[_0x70c687('0x12')](_0x70c687('0xe'),_0x420f49,_0x595f4c);})[_0x374583('0x1')](function(_0x2731ba){const _0x5c16e8=_0x374583;logger[_0x5c16e8('0x12')](util[_0x5c16e8('0x11')](_0x2731ba,{'showHidden':![],'depth':null}));});});},Migration[_0x2d1b85('0x19')][_0x2d1b85('0x5')]=function(_0x5e15b5,_0xd594e,_0x171375){const _0xef2852=_0x2d1b85,_0x307562=this;this[_0xef2852('0x16')][_0xef2852('0x18')](function(){const _0x1b1046=_0xef2852;return _0x307562[_0x1b1046('0x17')]['renameColumn'](_0x5e15b5,_0xd594e,_0x171375)[_0x1b1046('0x0')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xd594e,_0x171375,_0x5e15b5);})[_0x1b1046('0x1')](function(_0x4101a0){const _0x4dd64a=_0x1b1046;logger['info'](util[_0x4dd64a('0x11')](_0x4101a0,{'showHidden':![],'depth':null}));});});},Migration[_0x2d1b85('0x19')][_0x2d1b85('0x1f')]=function(_0xa9a94f){const _0x3764c8=_0x2d1b85;this['sequence'][_0x3764c8('0x18')](function(){return _0xa9a94f();});},module[_0x2d1b85('0x1a')]={'up':function(_0x1fcd76){return new Promise(function(_0x34adcf){const _0x96ab22=a1020_0x2af6,_0x492e12=new Migration(_0x1fcd76);_0x492e12[_0x96ab22('0x20')](_0x96ab22('0xb')),_0x492e12[_0x96ab22('0x20')]('DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users'),_0x492e12['query'](_0x96ab22('0x1b')),_0x492e12[_0x96ab22('0x1f')](_0x34adcf);});},'down':function(){}}; \ No newline at end of file diff --git a/server/mysqldb/index.js b/server/mysqldb/index.js index 71a8dc1..eb26aaf 100644 --- a/server/mysqldb/index.js +++ b/server/mysqldb/index.js @@ -1 +1 @@ -const a1021_0x14df=['Dynamics365Field','campaigns_has_cm_lists','Disposition','Plugin','UserWhatsappQueue','ZendeskAccount','ChatGroupId','ZendeskField','FreshsalesAccount','ChatQueues','Answers','ToFaxAccountId','../api/userWhatsappQueue/userWhatsappQueue.model','FreshdeskAccount','../api/voiceQueuesLog/voiceQueuesLog.model','../api/userMailQueue/userMailQueue.model','WhatsappInteractionId','../api/intDynamics365Account/intDynamics365Account.model','SmsInteractionId','Groups','FromFaxAccountId','SenderId','../api/condition/condition.model','AnalyticMetric','JscriptyProject','ToId','team_has_fax_queues','../api/whatsappApplication/whatsappApplication.model','CmContact','Attachments','FromOpenchannelAccountId','MetricId','CompanyId','TrunkBackup','Messages','SpiedAgents','Contact','Actions','OpenchannelTransferReport','../api/chatWebsite/chatWebsite.model','FaxQueueReport','../api/jscriptySessionReport/jscriptySessionReport.model','TriggerAllId','TrunkId','mail_interaction_has_tags','MailAccountId','Tag','VariableId','int_freshdesk_configuration_has_tags','CmCustomField','../api/voiceCallReport/voiceCallReport.model','../api/chatQueueReport/chatQueueReport.model','CannedAnswer','MailQueue','OpenchannelQueues','MailApplication','defaultsDeep','team_has_whatsapp_queues','name','FromAgent','../api/squareReport/squareReport.model','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','CustomReportId','Contacts','SmsQueueId','username','ToQueue','../api/whatsappQueue/whatsappQueue.model','SessionId','../api/userProfileResource/userProfileResource.model','../api/sound/sound.model','team_has_mail_queues','../api/voiceQueueReport/voiceQueueReport.model','../api/chatOfflineMessage/chatOfflineMessage.model','../api/analyticMetric/analyticMetric.model','../api/intSugarcrmField/intSugarcrmField.model','../api/trunk/trunk.model','CloudProvider','../api/reportAgentPreview/reportAgentPreview.model','ChatApplications','Dispositions','Trunk','../api/voiceTransferReport/voiceTransferReport.model','../api/faxTransferReport/faxTransferReport.model','JscriptyAnswerReport','../api/faxInteraction/faxInteraction.model','VoiceChanSpy','../api/voiceQueue/voiceQueue.model','FaxAccountId','belongsToMany','CmHopper','Dynamics365Configuration','Interaction','FaxQueue','Description','hasMany','../api/tag/tag.model','user_has_fax_interactions','user_has_voice_prefixes','../api/smsMessage/smsMessage.model','../api/voiceRecording/voiceRecording.model','FaxApplication','team_has_voice_queues','../api/openchannelQueue/openchannelQueue.model','../api/squareReportDetail/squareReportDetail.model','../api/mailQueueReport/mailQueueReport.model','../api/cmHopperHistory/cmHopperHistory.model','../api/userChatQueue/userChatQueue.model','user_has_chat_interactions','WhatsappTransferReport','../api/mailTransferReport/mailTransferReport.model','JscriptyQuestionReport','ChatQueueReport','FaxTransferReport','SmsTransferReport','../api/faxQueueReport/faxQueueReport.model','MailAccounts','campaigns_has_cm_blacklists','ServicenowConfiguration','../api/jscriptyProject/jscriptyProject.model','Condition','SquareReport','ChatWebsiteId','cm_user_has_contacts','FaxInteractionId','ToAccount','jstz','../api/integrationReport/integrationReport.model','user_has_sms_interactions','UserSmsInteractions','MemberReport','JscriptySessionReport','VoiceMusicOnHold','AnalyticExtractedReport','../api/mailMessage/mailMessage.model','Fields','FromUserId','../api/dashboard/dashboard.model','../api/cmContact/cmContact.model','SmsQueueReport','int_zendesk_configuration_has_tags','ChatInteraction','../api/intServicenowAccount/intServicenowAccount.model','sms_interaction_has_tags','../api/intZohoAccount/intZohoAccount.model','SmsQueue','../api/chatTransferReport/chatTransferReport.model','ReportAgentPreview','Notification','CmList','DefaultReportId','../api/integration/integration.model','UserChatInteractions','Interval','FaxApplications','dbHost','FaxMessage','SquareProject','../api/smsQueue/smsQueue.model','user_has_mail_interactions','UserChatQueue','HopperHistories','Queue','SalesforceAccount','determine','whatsapp_interaction_has_tags','Configurations','SmsAccounts','user_has_whatsapp_accounts','../api/intDeskAccount/intDeskAccount.model','SmsInteraction','Users','../api/cmHopperBlack/cmHopperBlack.model','DeskAccount','../api/license/license.model','ChatMessage','FreshdeskConfiguration','../api/faxAccount/faxAccount.model','VoiceQueue','Interactions','SquareDetailsReport','SmsApplications','voice_queues_has_cm_blacklists','ScreenRecording','VoicePrefixes','../api/userFaxQueue/userFaxQueue.model','AccountId','belongsTo','FromChatWebsiteId','ChatTransferReport','WhatsappInteractions','DescriptionId','MailInteraction','UserWhatsappInteractions','ParentId','openchannel_interaction_has_tags','DeskField','cascade','Lists','HopperBlacks','VoiceAgentReport','ServicenowField','OpenchannelInteractionId','../api/intZendeskConfiguration/intZendeskConfiguration.model','../api/intFreshsalesField/intFreshsalesField.model','ToSmsQueueId','../api/userSmsQueue/userSmsQueue.model','Extensions','Attachment','FreshdeskField','Subject','Dynamics365Account','MailMessage','SalesforceConfiguration','Descriptions','ChatInteractionId','SugarcrmAccount','ChatProactiveAction','SmsAccount','MailInteractions','TriggerAnyId','ChatGroup','chat_interaction_has_tags','uniqueid','dbPort','ToAgent','../api/cmHopperFinal/cmHopperFinal.model','../api/user/user.model','../api/cmCustomField/cmCustomField.model','MailAccount','SmsInteractions','CmHopperHistory','../api/openchannelQueueReport/openchannelQueueReport.model','Migration','JscriptySessions','FreshsalesField','password','CmCompany','VoiceQueues','sequelize','VoiceExtension','database','userProfileId','FromWhatsappAccountId','WhatsappAccount','FaxQueues','OpenchannelAccount','../api/pause/pause.model','../api/intZendeskField/intZendeskField.model','UserFaxQueue','UserProfileSection','Recordings','ChatQueue','HopperFinals','ChatInteractions','../api/cmList/cmList.model','VoiceQueuesLog','../api/userOpenchannelQueue/userOpenchannelQueue.model','OwnerId','sequelizeHistory','License','mysqlDatabase','../api/mailQueue/mailQueue.model','Queues','restrict','MailServerOut','OpenchannelAccountId','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','OpenchannelInteractions','VoiceMail','../api/cloudProvider/cloudProvider.model','Cdr','ProactiveActions','../api/voiceDialReport/voiceDialReport.model','UserSmsQueue','user_has_teams','MailServerIn','../api/chatProactiveAction/chatProactiveAction.model','CmHopperFinal','mysql','OpenchannelQueueReport','mailbox','TagId','../api/openchannelMessage/openchannelMessage.model','../api/cmCompany/cmCompany.model','UserVoiceQueue','../api/intSalesforceField/intSalesforceField.model','user_has_openchannel_accounts','ToChatQueueId','FromAccount','TriggerId','../api/analyticCustomReport/analyticCustomReport.model','Members','ZohoAccount','AnalyticFieldReport','Subjects','MailInteractionId','VoiceMailMessage','../api/intFreshdeskAccount/intFreshdeskAccount.model','VoiceRecording','../api/voiceContext/voiceContext.model','chat_group_has_users','IntegrationReport','Agents','Applications','WhatsappQueueReport','ChatOfflineMessage','SubjectId','mandatoryDispositionPauseId','../api/schedule/schedule.model','VoiceQueueId','QueueCalls','../api/voiceMail/voiceMail.model','UserId','SalesforceField','SugarcrmField','user_has_chat_websites','WhatsappAccountId','WhatsappApplication','Intervals','Schedule','ContactId','../api/voicePrefix/voicePrefix.model','cm_user_has_lists','ChatWebsites','../api/cmHopper/cmHopper.model','../api/dashboardItem/dashboardItem.model','Mohs','Pause','../api/notification/notification.model','../api/intDynamics365Field/intDynamics365Field.model','Agent','UserProfile','OpenchannelAccounts','WhatsappQueues','Imap','utf8_general_ci','../api/setting/setting.model','../api/mailApplication/mailApplication.model','user_has_sms_accounts','Notifications','Tags','DashboardItem','UserProfileResource','ThroughTags','../api/intDeskField/intDeskField.model','MailApplications','Owner','WhatsappQueueId','sectionId','ZohoField','../api/attachment/attachment.model','SquareProjects','VoiceCallReport','ListId','FromSmsAccountId','../api/analyticTreeReport/analyticTreeReport.model','ZohoConfiguration','Team','moh_has_sounds','team_has_openchannel_queues','Dashboard','exports','DeskConfiguration','mandatoryDispositionPause','ProjectId','../api/userVoiceQueueRt/userVoiceQueueRt.model','VoiceQueueReport','FreshsalesConfiguration','../api/voiceChanSpy/voiceChanSpy.model','OpenchannelApplication','OpenchannelQueueId','Smtp','../api/intFreshdeskField/intFreshdeskField.model','Website','VtigerField','user_has_fax_accounts','MailQueueReport','ToUserId','../api/squareOdbc/squareOdbc.model','../api/chatApplication/chatApplication.model','Variable','../api/chatInteraction/chatInteraction.model','ZendeskConfiguration','../api/intServicenowField/intServicenowField.model','../api/openchannelApplication/openchannelApplication.model','MailQueues','WhatsappQueue','CustomFields','fax_interaction_has_tags','../api/intSugarcrmAccount/intSugarcrmAccount.model','WhatsappInteraction','../api/jscriptyAnswerReport/jscriptyAnswerReport.model','team_has_sms_queues','DataTypes','../api/whatsappAccount/whatsappAccount.model','mysqlUser','ChatWebsite','../api/voiceAgentReport/voiceAgentReport.model','IntervalId','UserOpenchannelQueue','SugarcrmConfiguration','VoiceTransferReport','UserProfileSections','MailTransferReport','voice_queues_has_cm_lists','team_has_chat_queues','Campaign','WhatsappMessage','Hoppers','../api/trigger/trigger.model','BlackLists','Teams','Action','../api/whatsappTransferReport/whatsappTransferReport.model','../api/userVoiceQueue/userVoiceQueue.model','SmsApplication','Network','../api/disposition/disposition.model','AttachmentId','VtigerConfiguration','../api/cdr/cdr.model','../api/memberReport/memberReport.model','UserVoiceQueueRt','../api/squareMessage/squareMessage.model','User','SmsMessage','../api/smsApplication/smsApplication.model','FaxAccount','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','FaxInteractions','AnalyticDefaultReport','ToOpenchannelQueueId','../api/template/template.model','AutomationAllId','user_has_openchannel_interactions','../api/chatMessage/chatMessage.model','int_desk_configuration_has_tags','../api/analyticFieldReport/analyticFieldReport.model','VtigerAccount','cm_contact_has_tags','Account','All','UserFaxInteractions','VoicePrefix','../api/mailServerOut/mailServerOut.model','user_has_whatsapp_interactions','../api/automation/automation.model','Resources','ChatApplication','OpenchannelMessage','options','../api/faxApplication/faxApplication.model','OpenchannelQueue','../api/mailInteraction/mailInteraction.model','../api/userProfile/userProfile.model','../api/squareRecording/squareRecording.model','Sound','ChanSpyId','ToChatWebsiteId','utf8','Setting','CampaignId','user_has_mail_accounts','../api/voiceMusicOnHold/voiceMusicOnHold.model','VoiceDialReport','List','TrunkBackupId','ToSmsAccountId','Trigger','MailSubstatus','CmHopperBlack','OpenchannelInteraction','UserMailQueue','Field','FaxInteraction','SmsAccountId','Exntensions','ServicenowAccount','Automation','WhatsappAccounts','../api/openchannelInteraction/openchannelInteraction.model','../api/intSalesforceAccount/intSalesforceAccount.model','AnalyticCustomReport','mailboxuser','FaxAccounts','getConfigService','FieldId'];(function(_0x59ca81,_0x14dfa9){const _0x1b9bf1=function(_0x5eb85b){while(--_0x5eb85b){_0x59ca81['push'](_0x59ca81['shift']());}};_0x1b9bf1(++_0x14dfa9);}(a1021_0x14df,0x189));const a1021_0x1b9b=function(_0x59ca81,_0x14dfa9){_0x59ca81=_0x59ca81-0x0;let _0x1b9bf1=a1021_0x14df[_0x59ca81];return _0x1b9bf1;};const _0x3a5be5=a1021_0x1b9b;'use strict';const config=require('../config/environment'),cs=require('../config/config.service')[_0x3a5be5('0x5d')](),Sequelize=require(_0x3a5be5('0x14e')),_=require('lodash'),jstz=require(_0x3a5be5('0xdd')),timezone=jstz[_0x3a5be5('0x103')](),DEFAULTS={'database':cs[_0x3a5be5('0x164')],'username':cs[_0x3a5be5('0x3')],'password':cs['mysqlPassword'],'options':{'host':cs[_0x3a5be5('0xfa')],'port':cs[_0x3a5be5('0x13f')],'dialect':_0x3a5be5('0x176'),'dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezone[_0x3a5be5('0x99')](),'define':{'charset':_0x3a5be5('0x43'),'collate':_0x3a5be5('0x1af')}}};config[_0x3a5be5('0x14e')]=_[_0x3a5be5('0x97')](config['sequelize'],DEFAULTS),config[_0x3a5be5('0x162')]=_[_0x3a5be5('0x97')](config['sequelizeHistory'],DEFAULTS);const db={'Sequelize':Sequelize,'sequelize':new Sequelize(config['sequelize'][_0x3a5be5('0x150')],config[_0x3a5be5('0x14e')][_0x3a5be5('0xa0')],config['sequelize'][_0x3a5be5('0x14b')],config[_0x3a5be5('0x14e')][_0x3a5be5('0x3a')])},dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0x3a5be5('0x162')][_0x3a5be5('0x150')],config['sequelizeHistory'][_0x3a5be5('0xa0')],config[_0x3a5be5('0x162')]['password'],config['sequelizeHistory'][_0x3a5be5('0x3a')])};db[_0x3a5be5('0x20')]=require(_0x3a5be5('0x142'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xb5')]=require(_0x3a5be5('0x1d0'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['VoiceContext']=require(_0x3a5be5('0x18b'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x14f')]=require('../api/voiceExtension/voiceExtension.model')(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xe3')]=require(_0x3a5be5('0x47'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x111')]=require(_0x3a5be5('0xb6'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['VoiceRecording']=require(_0x3a5be5('0xc3'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x116')]=require('../api/screenRecording/screenRecording.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x16c')]=require(_0x3a5be5('0x197'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x188')]=require('../api/voiceMailMessage/voiceMailMessage.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1c0')]=require(_0x3a5be5('0x91'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x48')]=require(_0x3a5be5('0x170'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x127')]=require(_0x3a5be5('0x5'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['VoiceQueueReport']=require(_0x3a5be5('0xa7'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xe1')]=require(_0x3a5be5('0x1d'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Trunk']=require(_0x3a5be5('0xab'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x9')]=require(_0x3a5be5('0xb1'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1e')]=require(_0x3a5be5('0x1cd'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['UserVoiceQueue']=require(_0x3a5be5('0x16'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xff')]=require(_0x3a5be5('0xca'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x50')]=require(_0x3a5be5('0x6e'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x158')]=require(_0x3a5be5('0x118'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x171')]=require(_0x3a5be5('0x12d'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x7')]=require(_0x3a5be5('0x160'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['UserWhatsappQueue']=require(_0x3a5be5('0x6b'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['MailServerIn']=require('../api/mailServerIn/mailServerIn.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x168')]=require(_0x3a5be5('0x34'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x144')]=require('../api/mailAccount/mailAccount.model')(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x94')]=require(_0x3a5be5('0x165'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x4d')]=require('../api/mailSubstatus/mailSubstatus.model')(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x11f')]=require(_0x3a5be5('0x3d'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['MailMessage']=require(_0x3a5be5('0xe5'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x96')]=require(_0x3a5be5('0x1b1'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1d8')]=require(_0x3a5be5('0xc8'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1c8')]=require(_0x3a5be5('0xe8'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1b5')]=require(_0x3a5be5('0x1a5'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db['FaxAccount']=require(_0x3a5be5('0x110'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db['FaxApplication']=require(_0x3a5be5('0x3b'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x52')]=require(_0x3a5be5('0xb4'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['FaxMessage']=require('../api/faxMessage/faxMessage.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0xbc')]=require('../api/faxQueue/faxQueue.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x87')]=require(_0x3a5be5('0xd2'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x139')]=require('../api/smsAccount/smsAccount.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x17')]=require(_0x3a5be5('0x22'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x109')]=require('../api/smsInteraction/smsInteraction.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['SmsMessage']=require(_0x3a5be5('0xc2'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xf0')]=require(_0x3a5be5('0xfd'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x155')]=require('../api/openchannelAccount/openchannelAccount.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1d1')]=require(_0x3a5be5('0x1e0'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x4f')]=require(_0x3a5be5('0x58'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x39')]=require(_0x3a5be5('0x17a'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0x3c')]=require(_0x3a5be5('0xc6'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x4')]=require(_0x3a5be5('0x86'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db['OpenchannelQueueReport']=require(_0x3a5be5('0x147'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db['ChatApplication']=require(_0x3a5be5('0x1db'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xec')]=require(_0x3a5be5('0x1dd'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x10e')]=require(_0x3a5be5('0x2b'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x191')]=require(_0x3a5be5('0xa8'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x15b')]=require('../api/chatQueue/chatQueue.model')(db['sequelize'],Sequelize['DataTypes']),db['ChatGroup']=require('../api/chatGroup/chatGroup.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x138')]=require(_0x3a5be5('0x174'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x14c')]=require(_0x3a5be5('0x17b'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x7b')]=require(_0x3a5be5('0xe9'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xb9')]=require(_0x3a5be5('0x1a4'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0x4e')]=require(_0x3a5be5('0x10b'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x175')]=require(_0x3a5be5('0x141'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x146')]=require(_0x3a5be5('0xc9'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xf2')]=require(_0x3a5be5('0xad'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x90')]=require(_0x3a5be5('0x143'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x14')]=require('../api/action/action.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Automation']=require(_0x3a5be5('0x36'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x93')]=require('../api/cannedAnswer/cannedAnswer.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Disposition']=require(_0x3a5be5('0x19'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Condition']=require(_0x3a5be5('0x75'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Interval']=require('../api/interval/interval.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1a7')]=require(_0x3a5be5('0x156'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x16e')]=require(_0x3a5be5('0x1c'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x15f')]=require(_0x3a5be5('0x6d'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x19f')]=require(_0x3a5be5('0x194'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x40')]=require(_0x3a5be5('0xa5'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x8d')]=require(_0x3a5be5('0xbf'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db['Template']=require(_0x3a5be5('0x28'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x4c')]=require(_0x3a5be5('0x11'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Variable']=require('../api/variable/variable.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Integration']=require(_0x3a5be5('0xf6'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x18d')]=require(_0x3a5be5('0xde'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['AnalyticCustomReport']=require(_0x3a5be5('0x182'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x26')]=require('../api/analyticDefaultReport/analyticDefaultReport.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xe4')]=require('../api/analyticExtractedReport/analyticExtractedReport.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x76')]=require(_0x3a5be5('0xa9'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x185')]=require(_0x3a5be5('0x2d'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['AnalyticTreeReport']=require(_0x3a5be5('0x1c3'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x102')]=require(_0x3a5be5('0x59'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x134')]=require(_0x3a5be5('0x9c'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x199')]=require(_0x3a5be5('0x17d'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x137')]=require(_0x3a5be5('0x1e5'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x8')]=require('../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model')(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x19a')]=require(_0x3a5be5('0xaa'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x10c')]=require(_0x3a5be5('0x108'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db['DeskConfiguration']=require('../api/intDeskConfiguration/intDeskConfiguration.model')(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x123')]=require(_0x3a5be5('0x1b8'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x184')]=require(_0x3a5be5('0xef'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1c4')]=require('../api/intZohoConfiguration/intZohoConfiguration.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0x1bd')]=require('../api/intZohoField/intZohoField.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x64')]=require('../api/intZendeskAccount/intZendeskAccount.model')(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1de')]=require(_0x3a5be5('0x12a'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['ZendeskField']=require(_0x3a5be5('0x157'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['FreshdeskAccount']=require(_0x3a5be5('0x189'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x10f')]=require(_0x3a5be5('0x24'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x130')]=require(_0x3a5be5('0x1d4'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x2e')]=require('../api/intVtigerAccount/intVtigerAccount.model')(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1b')]=require('../api/intVtigerConfiguration/intVtigerConfiguration.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1d6')]=require('../api/intVtigerField/intVtigerField.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x55')]=require(_0x3a5be5('0xed'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db['ServicenowConfiguration']=require('../api/intServicenowConfiguration/intServicenowConfiguration.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x128')]=require(_0x3a5be5('0x1df'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x132')]=require(_0x3a5be5('0x70'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xba')]=require('../api/intDynamics365Configuration/intDynamics365Configuration.model')(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x5f')]=require(_0x3a5be5('0x1a9'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x67')]=require('../api/intFreshsalesAccount/intFreshsalesAccount.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['FreshsalesConfiguration']=require('../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x14a')]=require(_0x3a5be5('0x12b'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Integration']=require('../api/integration/integration.model')(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x18')]=require('../api/network/network.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0xcf')]=require(_0x3a5be5('0x92'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db['ChatInternalMessage']=require('../api/chatInternalMessage/chatInternalMessage.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xb3')]=require(_0x3a5be5('0x1e7'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xce')]=require(_0x3a5be5('0x16a'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xe2')]=require(_0x3a5be5('0x88'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0xea')]=require('../api/smsQueueReport/smsQueueReport.model')(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0xd8')]=require(_0x3a5be5('0x9b'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x113')]=require(_0x3a5be5('0xc7'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x77')]=require(_0x3a5be5('0xd6'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x44')]=require(_0x3a5be5('0x1b0'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['SquareOdbc']=require(_0x3a5be5('0x1da'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0xfc')]=require('../api/squareProject/squareProject.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['SquareRecording']=require(_0x3a5be5('0x3f'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['SquareMessage']=require(_0x3a5be5('0x1f'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Team']=require('../api/team/team.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x163')]=require(_0x3a5be5('0x10d'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db['Campaign']=require('../api/campaign/campaign.model')(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x148')]=require('../api/migration/migration.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db['Attachment']=require(_0x3a5be5('0x1be'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x62')]=require('../api/plugin/plugin.model')(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0xb')]=require(_0x3a5be5('0xcd'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x11c')]=require(_0x3a5be5('0xf1'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xd0')]=require(_0x3a5be5('0xb2'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x85')]=require('../api/openchannelTransferReport/openchannelTransferReport.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xd1')]=require('../api/smsTransferReport/smsTransferReport.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xf4')]=require(_0x3a5be5('0x15e'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0x33')]=require(_0x3a5be5('0x1a1'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0x1ab')]=require(_0x3a5be5('0x3e'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x159')]=require('../api/userProfileSection/userProfileSection.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x3a5be5('0x1b6')]=require(_0x3a5be5('0xa4'))(db['sequelize'],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xf3')]=require(_0x3a5be5('0x1a8'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x153')]=require(_0x3a5be5('0x2'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x19d')]=require(_0x3a5be5('0x7a'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x1e6')]=require('../api/whatsappInteraction/whatsappInteraction.model')(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0xf')]=require('../api/whatsappMessage/whatsappMessage.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0x190')]=require('../api/whatsappQueueReport/whatsappQueueReport.model')(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xcc')]=require(_0x3a5be5('0x15'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db[_0x3a5be5('0x1e2')]=require(_0x3a5be5('0xa2'))(db[_0x3a5be5('0x14e')],Sequelize[_0x3a5be5('0x1')]),db[_0x3a5be5('0xac')]=require(_0x3a5be5('0x16d'))(db[_0x3a5be5('0x14e')],Sequelize['DataTypes']),db['User']['hasOne'](db[_0x3a5be5('0x16c')],{'as':_0x3a5be5('0x16c'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x198')}),db[_0x3a5be5('0x20')]['hasMany'](db[_0x3a5be5('0x18a')],{'as':_0x3a5be5('0x15a'),'foreignKey':_0x3a5be5('0x198')}),db['User'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1e')],{'as':'VoiceQueuesRt','foreignKey':'UserId'}),db[_0x3a5be5('0x20')]['hasMany'](db['VoiceExtension'],{'as':'Extensions','onDelete':_0x3a5be5('0x124'),'hooks':!![]}),db[_0x3a5be5('0x20')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x175')],{'as':_0x3a5be5('0x15c'),'foreignKey':_0x3a5be5('0x198')}),db['User']['hasMany'](db['CmHopperHistory'],{'as':'HopperHistory','foreignKey':_0x3a5be5('0x198')}),db[_0x3a5be5('0x20')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xf2')],{'as':_0x3a5be5('0xf2'),'foreignKey':_0x3a5be5('0x198')}),db['User'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x4f')],{'as':_0x3a5be5('0x16b'),'foreignKey':_0x3a5be5('0x198')}),db[_0x3a5be5('0x20')]['hasMany'](db['ChatInteraction'],{'as':_0x3a5be5('0x15d'),'foreignKey':_0x3a5be5('0x198')}),db[_0x3a5be5('0x20')]['hasMany'](db['SmsInteraction'],{'as':'SmsInteractions','foreignKey':_0x3a5be5('0x198')}),db['User'][_0x3a5be5('0xbe')](db['FaxInteraction'],{'as':_0x3a5be5('0x25'),'foreignKey':_0x3a5be5('0x198')}),db['User'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x11f')],{'as':_0x3a5be5('0x13a'),'foreignKey':_0x3a5be5('0x198')}),db['User'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1e6')],{'as':_0x3a5be5('0x11d'),'foreignKey':'UserId'}),db[_0x3a5be5('0x20')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xf3')],{'as':_0x3a5be5('0x1b3'),'foreignKey':_0x3a5be5('0x74')}),db[_0x3a5be5('0x20')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1ab')],{'as':_0x3a5be5('0x1ab'),'foreignKey':_0x3a5be5('0x151'),'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x13c')],{'as':_0x3a5be5('0x72'),'through':_0x3a5be5('0x18c')}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db['CmContact'],{'as':_0x3a5be5('0x9e'),'through':'cm_user_has_contacts'}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db['CmList'],{'as':_0x3a5be5('0x125'),'through':'cm_user_has_lists'}),db['User'][_0x3a5be5('0xb8')](db['Team'],{'through':_0x3a5be5('0x172')}),db[_0x3a5be5('0x20')]['belongsToMany'](db['MailInteraction'],{'as':'UserMailInteractions','through':_0x3a5be5('0xfe')}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0xec')],{'as':_0x3a5be5('0xf7'),'through':'user_has_chat_interactions'}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x52')],{'as':_0x3a5be5('0x32'),'through':'user_has_fax_interactions'}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x109')],{'as':_0x3a5be5('0xe0'),'through':_0x3a5be5('0xdf')}),db['User'][_0x3a5be5('0xb8')](db[_0x3a5be5('0x4f')],{'as':'UserOpenchannelInteractions','through':_0x3a5be5('0x2a')}),db[_0x3a5be5('0x20')]['belongsToMany'](db[_0x3a5be5('0x1e6')],{'as':_0x3a5be5('0x120'),'through':_0x3a5be5('0x35')}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x111')],{'as':'VoiceQueues','through':_0x3a5be5('0x17c'),'required':![]}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x94')],{'as':_0x3a5be5('0x1e1'),'through':'UserMailQueue','required':![]}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db['ChatQueue'],{'as':_0x3a5be5('0x68'),'through':_0x3a5be5('0xff'),'required':![],'hooks':!![]}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0xbc')],{'as':_0x3a5be5('0x154'),'through':'UserFaxQueue','required':![]}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0xf0')],{'as':'SmsQueues','through':_0x3a5be5('0x171'),'required':![]}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db['OpenchannelQueue'],{'as':_0x3a5be5('0x95'),'through':_0x3a5be5('0x7'),'required':![]}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x1e2')],{'as':'WhatsappQueues','through':_0x3a5be5('0x63'),'required':![]}),db['User'][_0x3a5be5('0xb8')](db[_0x3a5be5('0xf4')],{'through':_0x3a5be5('0x1a2')}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db['VoicePrefix'],{'as':_0x3a5be5('0x117'),'through':_0x3a5be5('0xc1'),'required':![]}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x4')],{'as':_0x3a5be5('0x1a3'),'through':'user_has_chat_websites'}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x23')],{'as':_0x3a5be5('0x5c'),'through':'user_has_fax_accounts'}),db['User'][_0x3a5be5('0xb8')](db['MailAccount'],{'as':_0x3a5be5('0xd3'),'through':_0x3a5be5('0x46')}),db[_0x3a5be5('0x20')][_0x3a5be5('0xb8')](db['OpenchannelAccount'],{'as':_0x3a5be5('0x1ac'),'through':_0x3a5be5('0x17e')}),db['User']['belongsToMany'](db['SmsAccount'],{'as':_0x3a5be5('0x106'),'through':_0x3a5be5('0x1b2')}),db['User']['belongsToMany'](db[_0x3a5be5('0x153')],{'as':_0x3a5be5('0x57'),'through':_0x3a5be5('0x107')}),db['User'][_0x3a5be5('0xb8')](db['SquareProject'],{'as':_0x3a5be5('0x1bf'),'through':'user_has_square_projects'}),db['VoiceChanSpy']['hasMany'](db[_0x3a5be5('0x14f')],{'as':_0x3a5be5('0x82'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x41')}),db['VoiceContext']['hasMany'](db[_0x3a5be5('0x14f')],{'onDelete':_0x3a5be5('0x124')}),db['VoiceExtension']['hasMany'](db[_0x3a5be5('0x14f')],{'as':_0x3a5be5('0x18f'),'onDelete':'cascade'}),db['VoiceMusicOnHold'][_0x3a5be5('0xb8')](db['Sound'],{'as':'Sounds','through':_0x3a5be5('0x1c6')}),db[_0x3a5be5('0x111')][_0x3a5be5('0xbe')](db['UserVoiceQueueRt'],{'as':_0x3a5be5('0x183'),'foreignKey':'VoiceQueueId'}),db[_0x3a5be5('0x111')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xb9')],{'as':_0x3a5be5('0x10'),'foreignKey':_0x3a5be5('0x195')}),db['VoiceQueue'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x175')],{'as':_0x3a5be5('0x15c'),'foreignKey':_0x3a5be5('0x195')}),db[_0x3a5be5('0x111')]['hasMany'](db[_0x3a5be5('0x146')],{'as':'HopperHistories','foreignKey':_0x3a5be5('0x195')}),db['VoiceQueue'][_0x3a5be5('0xbe')](db[_0x3a5be5('0xf2')],{'as':_0x3a5be5('0xf2'),'foreignKey':_0x3a5be5('0x195')}),db[_0x3a5be5('0x111')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x4e')],{'as':_0x3a5be5('0x126'),'foreignKey':'VoiceQueueId'}),db[_0x3a5be5('0x111')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xe2')],{'as':_0x3a5be5('0x149'),'foreignKey':_0x3a5be5('0x195')}),db[_0x3a5be5('0x111')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xb0')],{'as':_0x3a5be5('0xb0'),'foreignKey':_0x3a5be5('0x8a')}),db[_0x3a5be5('0x111')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xb0')],{'as':_0x3a5be5('0x80'),'foreignKey':_0x3a5be5('0x4a')}),db[_0x3a5be5('0x111')]['belongsTo'](db[_0x3a5be5('0xf8')],{'as':'Interval','foreignKey':_0x3a5be5('0x6')}),db['VoiceQueue'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1a7')],{'as':'mandatoryDispositionPause','foreignKey':_0x3a5be5('0x193')}),db[_0x3a5be5('0x111')]['belongsToMany'](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x125'),'through':'voice_queues_has_cm_lists'}),db['VoiceQueue'][_0x3a5be5('0xb8')](db['User'],{'as':'Agents','through':'UserVoiceQueue'}),db[_0x3a5be5('0x111')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x1c5')],{'as':_0x3a5be5('0x13'),'through':'team_has_voice_queues'}),db[_0x3a5be5('0x111')]['belongsToMany'](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x12'),'through':_0x3a5be5('0x115')}),db[_0x3a5be5('0x18a')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'as':'User','foreignKey':_0x3a5be5('0x198')}),db['ScreenRecording']['belongsTo'](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x20'),'foreignKey':_0x3a5be5('0x198')}),db['VoiceMail'][_0x3a5be5('0xbe')](db['VoiceMailMessage'],{'as':'Messages','onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x5b'),'sourceKey':_0x3a5be5('0x178')}),db['VoiceMailMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x16c')],{'foreignKey':_0x3a5be5('0x5b'),'targetKey':'mailbox'}),db[_0x3a5be5('0x1c0')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1ce')],{'as':_0x3a5be5('0x196'),'foreignKey':_0x3a5be5('0x13e'),'constraints':![]}),db[_0x3a5be5('0x1c0')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x127')],{'as':'AgentReports','foreignKey':_0x3a5be5('0x13e'),'constraints':![]}),db[_0x3a5be5('0x1c0')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'as':'User','foreignKey':_0x3a5be5('0x198')}),db['VoiceCallReport'][_0x3a5be5('0x11a')](db['CmContact'],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x144')]['hasOne'](db[_0x3a5be5('0x173')],{'as':_0x3a5be5('0x1ae'),'foreignKey':_0x3a5be5('0x8c'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x144')]['hasOne'](db[_0x3a5be5('0x168')],{'as':_0x3a5be5('0x1d3'),'foreignKey':_0x3a5be5('0x8c'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x144')]['hasMany'](db[_0x3a5be5('0x61')],{'as':_0x3a5be5('0xaf'),'foreignKey':'MailAccountId'}),db[_0x3a5be5('0x144')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x93')],{'as':'Answers','foreignKey':_0x3a5be5('0x8c')}),db[_0x3a5be5('0x144')]['hasMany'](db[_0x3a5be5('0x133')],{'as':_0x3a5be5('0x81'),'foreignKey':_0x3a5be5('0x8c')}),db['MailAccount'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x11f')],{'as':_0x3a5be5('0x112')}),db['MailAccount']['hasMany'](db[_0x3a5be5('0x96')],{'as':'Applications'}),db[_0x3a5be5('0x144')][_0x3a5be5('0x11a')](db['CmList'],{'as':_0x3a5be5('0x49'),'foreignKey':_0x3a5be5('0x1c1')}),db[_0x3a5be5('0x144')][_0x3a5be5('0x11a')](db['Template'],{'as':'Template','foreignKey':'TemplateId'}),db[_0x3a5be5('0x144')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1a7')],{'as':_0x3a5be5('0x1cb'),'foreignKey':_0x3a5be5('0x193')}),db['MailAccount'][_0x3a5be5('0xb8')](db['User'],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x46')}),db[_0x3a5be5('0x94')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x50')}),db[_0x3a5be5('0x94')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x1c5')],{'through':_0x3a5be5('0xa6'),'as':_0x3a5be5('0x13')}),db[_0x3a5be5('0x11f')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x133')],{'as':'Messages','onDelete':'cascade','foreignKey':_0x3a5be5('0x187')}),db['MailInteraction'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x144')],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0x8c')}),db[_0x3a5be5('0x11f')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'as':'Contact','foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x11f')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x1ba'),'foreignKey':_0x3a5be5('0x198')}),db[_0x3a5be5('0x11f')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x8b'),'as':_0x3a5be5('0x1b4')}),db[_0x3a5be5('0x11f')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x8b'),'as':_0x3a5be5('0x1b7')}),db[_0x3a5be5('0x11f')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x10a'),'through':_0x3a5be5('0xfe'),'foreignKey':_0x3a5be5('0x187')}),db[_0x3a5be5('0x133')][_0x3a5be5('0xbe')](db['Attachment'],{'as':_0x3a5be5('0x7c'),'onDelete':_0x3a5be5('0x124')}),db['MailMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x20')}),db['MailMessage']['belongsTo'](db[_0x3a5be5('0x7b')],{'onDelete':_0x3a5be5('0x124'),'as':_0x3a5be5('0x83')}),db[_0x3a5be5('0x133')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x11f')],{'as':'Interaction','foreignKey':_0x3a5be5('0x187')}),db['MailMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x144')],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0x8c')}),db[_0x3a5be5('0x96')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'onDelete':'restrict'}),db[_0x3a5be5('0x96')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x94')],{'onDelete':_0x3a5be5('0x167')}),db['MailApplication']['belongsTo'](db['MailAccount'],{'onDelete':'restrict'}),db['MailApplication'][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf8')],{'onDelete':_0x3a5be5('0x167'),'foreignKey':_0x3a5be5('0x6')}),db[_0x3a5be5('0x96')][_0x3a5be5('0x11a')](db['Tag'],{'onDelete':_0x3a5be5('0x167'),'foreignKey':_0x3a5be5('0x179')}),db[_0x3a5be5('0x1d8')][_0x3a5be5('0x11a')](db['MailAccount'],{}),db[_0x3a5be5('0x1d8')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf4')],{'as':'List','foreignKey':_0x3a5be5('0x1c1')}),db[_0x3a5be5('0x1d8')]['belongsTo'](db['CmContact'],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db['MailQueueReport'][_0x3a5be5('0x11a')](db['MailInteraction'],{}),db[_0x3a5be5('0x1d8')][_0x3a5be5('0x11a')](db['MailMessage'],{}),db[_0x3a5be5('0x1d8')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{}),db['MailQueueReport']['belongsTo'](db[_0x3a5be5('0x94')],{}),db['Dashboard'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1b5')],{'as':'Items','onDelete':'cascade'}),db[_0x3a5be5('0x23')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x61')],{'as':'Dispositions','foreignKey':'FaxAccountId'}),db['FaxAccount']['hasMany'](db['CannedAnswer'],{'as':'Answers','foreignKey':'FaxAccountId'}),db[_0x3a5be5('0x23')][_0x3a5be5('0xbe')](db['FaxInteraction'],{'as':'Interactions'}),db[_0x3a5be5('0x23')]['hasMany'](db['FaxApplication'],{'as':_0x3a5be5('0x18f')}),db[_0x3a5be5('0x23')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x14f')],{'as':_0x3a5be5('0x54'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x23')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xfb')],{'as':'Messages'}),db[_0x3a5be5('0x23')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xb0')],{'as':_0x3a5be5('0xb0')}),db[_0x3a5be5('0x23')]['belongsTo'](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x49'),'foreignKey':'ListId'}),db[_0x3a5be5('0x23')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1a7')],{'as':'mandatoryDispositionPause','foreignKey':_0x3a5be5('0x193')}),db[_0x3a5be5('0x23')]['belongsToMany'](db['User'],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x1d7')}),db['FaxApplication'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0xc4')][_0x3a5be5('0x11a')](db['FaxQueue'],{'onDelete':'restrict'}),db[_0x3a5be5('0xc4')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x23')],{'onDelete':'restrict'}),db[_0x3a5be5('0xc4')][_0x3a5be5('0x11a')](db['Tag'],{'onDelete':_0x3a5be5('0x167'),'foreignKey':_0x3a5be5('0x179')}),db['FaxInteraction'][_0x3a5be5('0xbe')](db[_0x3a5be5('0xfb')],{'as':'Messages','onDelete':'cascade','foreignKey':'FaxInteractionId'}),db[_0x3a5be5('0x52')]['belongsTo'](db['FaxAccount'],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0xb7')}),db['FaxInteraction'][_0x3a5be5('0x11a')](db['CmContact'],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x52')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'as':'Owner','foreignKey':'UserId'}),db['FaxInteraction']['belongsToMany'](db[_0x3a5be5('0x8d')],{'through':'fax_interaction_has_tags','as':'Tags'}),db[_0x3a5be5('0x52')]['belongsToMany'](db['Tag'],{'through':_0x3a5be5('0x1e4'),'as':_0x3a5be5('0x1b7')}),db[_0x3a5be5('0x52')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':'Users','through':_0x3a5be5('0xc0'),'foreignKey':_0x3a5be5('0xdb')}),db['FaxMessage'][_0x3a5be5('0x11a')](db['User'],{'onDelete':_0x3a5be5('0x124'),'as':'User'}),db[_0x3a5be5('0xfb')][_0x3a5be5('0x11a')](db['FaxInteraction'],{'as':_0x3a5be5('0xbb'),'foreignKey':_0x3a5be5('0xdb')}),db[_0x3a5be5('0xfb')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'onDelete':_0x3a5be5('0x124'),'as':'Contact'}),db[_0x3a5be5('0xfb')]['belongsTo'](db['Attachment'],{'as':_0x3a5be5('0x12f'),'foreignKey':_0x3a5be5('0x1a')}),db[_0x3a5be5('0xfb')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x23')],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0xb7')}),db[_0x3a5be5('0xbc')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x18e'),'through':'UserFaxQueue'}),db[_0x3a5be5('0xbc')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x1c5')],{'through':'team_has_fax_queues','as':_0x3a5be5('0x13')}),db[_0x3a5be5('0x87')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x23')],{}),db[_0x3a5be5('0x87')]['belongsTo'](db['CmList'],{'as':_0x3a5be5('0x49'),'foreignKey':'ListId'}),db['FaxQueueReport']['belongsTo'](db['CmContact'],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x87')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x52')],{}),db['FaxQueueReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0xfb')],{}),db[_0x3a5be5('0x87')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{}),db[_0x3a5be5('0x87')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xbc')],{}),db[_0x3a5be5('0x139')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x61')],{'as':'Dispositions','foreignKey':_0x3a5be5('0x53')}),db['SmsAccount'][_0x3a5be5('0xbe')](db['CannedAnswer'],{'as':_0x3a5be5('0x69'),'foreignKey':_0x3a5be5('0x53')}),db[_0x3a5be5('0x139')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x21')],{'as':_0x3a5be5('0x81'),'foreignKey':'SmsAccountId'}),db[_0x3a5be5('0x139')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x109')],{'as':'Interactions'}),db[_0x3a5be5('0x139')]['hasMany'](db[_0x3a5be5('0x17')],{'as':_0x3a5be5('0x18f')}),db['SmsAccount'][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf4')],{'as':'List','foreignKey':_0x3a5be5('0x1c1')}),db['SmsAccount']['belongsTo'](db['Pause'],{'as':_0x3a5be5('0x1cb'),'foreignKey':_0x3a5be5('0x193')}),db[_0x3a5be5('0x139')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':'Agents','through':'user_has_sms_accounts'}),db['SmsApplication'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'onDelete':_0x3a5be5('0x167')}),db['SmsApplication']['belongsTo'](db[_0x3a5be5('0xf0')],{'onDelete':'restrict'}),db['SmsApplication'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x139')],{'onDelete':'restrict'}),db[_0x3a5be5('0x17')][_0x3a5be5('0x11a')](db['Interval'],{'onDelete':_0x3a5be5('0x167'),'foreignKey':_0x3a5be5('0x6')}),db[_0x3a5be5('0x17')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x8d')],{'onDelete':_0x3a5be5('0x167'),'foreignKey':_0x3a5be5('0x179')}),db['SmsInteraction']['hasMany'](db[_0x3a5be5('0x21')],{'as':_0x3a5be5('0x81'),'onDelete':_0x3a5be5('0x124'),'foreignKey':'SmsInteractionId'}),db['SmsInteraction'][_0x3a5be5('0x11a')](db['SmsAccount'],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0x53')}),db[_0x3a5be5('0x109')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x109')][_0x3a5be5('0x11a')](db['User'],{'as':_0x3a5be5('0x1ba'),'foreignKey':_0x3a5be5('0x198')}),db[_0x3a5be5('0x109')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':'sms_interaction_has_tags','as':_0x3a5be5('0x1b4')}),db[_0x3a5be5('0x109')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0xee'),'as':_0x3a5be5('0x1b7')}),db[_0x3a5be5('0x109')][_0x3a5be5('0xb8')](db['User'],{'as':'Users','through':_0x3a5be5('0xdf'),'foreignKey':_0x3a5be5('0x71')}),db['SmsMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'as':'User'}),db['SmsMessage'][_0x3a5be5('0x11a')](db['CmContact'],{'onDelete':'cascade','as':_0x3a5be5('0x83')}),db[_0x3a5be5('0x21')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x109')],{'onDelete':_0x3a5be5('0x124'),'as':'Interaction','foreignKey':_0x3a5be5('0x71')}),db[_0x3a5be5('0x21')][_0x3a5be5('0x11a')](db['SmsAccount'],{'as':_0x3a5be5('0x30'),'foreignKey':'SmsAccountId'}),db[_0x3a5be5('0xf0')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':'Agents','through':_0x3a5be5('0x171'),'foreignKey':_0x3a5be5('0x9f')}),db['SmsQueue'][_0x3a5be5('0xb8')](db[_0x3a5be5('0x1c5')],{'through':'team_has_sms_queues','as':'Teams'}),db[_0x3a5be5('0x155')][_0x3a5be5('0xbe')](db['Disposition'],{'as':_0x3a5be5('0xaf'),'foreignKey':_0x3a5be5('0x169')}),db[_0x3a5be5('0x155')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x93')],{'as':'Answers','foreignKey':_0x3a5be5('0x169')}),db[_0x3a5be5('0x155')][_0x3a5be5('0xbe')](db['OpenchannelInteraction'],{'as':_0x3a5be5('0x112'),'foreignKey':'OpenchannelAccountId'}),db[_0x3a5be5('0x155')][_0x3a5be5('0xbe')](db['OpenchannelMessage'],{'as':_0x3a5be5('0x81'),'foreignKey':_0x3a5be5('0x169')}),db[_0x3a5be5('0x155')][_0x3a5be5('0xbe')](db['OpenchannelApplication'],{'as':_0x3a5be5('0x18f'),'foreignKey':_0x3a5be5('0x169')}),db[_0x3a5be5('0x155')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x49'),'foreignKey':'ListId'}),db[_0x3a5be5('0x155')]['belongsTo'](db['Pause'],{'as':_0x3a5be5('0x1cb'),'foreignKey':_0x3a5be5('0x193')}),db[_0x3a5be5('0x155')]['belongsToMany'](db['User'],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x17e')}),db[_0x3a5be5('0x1d1')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x1d1')]['belongsTo'](db[_0x3a5be5('0x3c')],{'onDelete':_0x3a5be5('0x167'),'foreignKey':'OpenchannelQueueId'}),db[_0x3a5be5('0x1d1')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x155')],{'onDelete':_0x3a5be5('0x167'),'foreignKey':_0x3a5be5('0x169')}),db[_0x3a5be5('0x1d1')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf8')],{'onDelete':_0x3a5be5('0x167'),'foreignKey':_0x3a5be5('0x6')}),db[_0x3a5be5('0x1d1')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x8d')],{'onDelete':_0x3a5be5('0x167'),'foreignKey':'TagId'}),db['OpenchannelInteraction'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x39')],{'as':'Messages','onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x129')}),db[_0x3a5be5('0x4f')]['belongsTo'](db[_0x3a5be5('0x155')],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0x169')}),db['OpenchannelInteraction'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db['OpenchannelInteraction']['belongsTo'](db[_0x3a5be5('0x20')],{'as':'Owner','foreignKey':_0x3a5be5('0x198')}),db[_0x3a5be5('0x4f')][_0x3a5be5('0xb8')](db['Tag'],{'through':_0x3a5be5('0x122'),'as':_0x3a5be5('0x1b4')}),db['OpenchannelInteraction']['belongsToMany'](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x122'),'as':_0x3a5be5('0x1b7')}),db['OpenchannelInteraction']['belongsToMany'](db[_0x3a5be5('0x20')],{'as':'Users','through':_0x3a5be5('0x2a'),'foreignKey':_0x3a5be5('0x129')}),db[_0x3a5be5('0x39')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'onDelete':'cascade','as':'User'}),db[_0x3a5be5('0x39')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'onDelete':_0x3a5be5('0x124'),'as':_0x3a5be5('0x83')}),db[_0x3a5be5('0x39')][_0x3a5be5('0x11a')](db['OpenchannelInteraction'],{'onDelete':_0x3a5be5('0x124'),'as':_0x3a5be5('0xbb'),'foreignKey':_0x3a5be5('0x129')}),db['OpenchannelMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x12f')],{'as':_0x3a5be5('0x12f'),'foreignKey':_0x3a5be5('0x1a')}),db[_0x3a5be5('0x39')][_0x3a5be5('0x11a')](db['OpenchannelAccount'],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0x169')}),db[_0x3a5be5('0x3c')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':'Agents','through':'UserOpenchannelQueue','foreignKey':_0x3a5be5('0x1d2')}),db[_0x3a5be5('0x3c')]['belongsToMany'](db[_0x3a5be5('0x1c5')],{'through':_0x3a5be5('0x1c7'),'as':_0x3a5be5('0x13')}),db['ChatWebsite']['hasMany'](db['Disposition'],{'as':'Dispositions','foreignKey':_0x3a5be5('0xd9')}),db[_0x3a5be5('0x4')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x93')],{'as':_0x3a5be5('0x69'),'foreignKey':_0x3a5be5('0xd9')}),db[_0x3a5be5('0x4')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x138')],{'as':_0x3a5be5('0x16f')}),db[_0x3a5be5('0x4')]['hasMany'](db[_0x3a5be5('0xec')],{'as':_0x3a5be5('0x112')}),db['ChatWebsite'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x38')],{'as':_0x3a5be5('0x18f')}),db[_0x3a5be5('0x4')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x10e')],{'as':_0x3a5be5('0x81')}),db['ChatWebsite'][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf4')],{'as':'List','foreignKey':'ListId'}),db['ChatWebsite'][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf8')],{'as':'Interval','foreignKey':_0x3a5be5('0x6')}),db[_0x3a5be5('0x4')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1a7')],{'as':_0x3a5be5('0x1cb'),'foreignKey':_0x3a5be5('0x193')}),db[_0x3a5be5('0x4')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x19b')}),db[_0x3a5be5('0x177')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x155')],{}),db[_0x3a5be5('0x177')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x49'),'foreignKey':_0x3a5be5('0x1c1')}),db['OpenchannelQueueReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x83'),'foreignKey':'ContactId'}),db[_0x3a5be5('0x177')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x4f')],{}),db[_0x3a5be5('0x177')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x39')],{}),db['OpenchannelQueueReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{}),db[_0x3a5be5('0x177')][_0x3a5be5('0x11a')](db['OpenchannelQueue'],{}),db[_0x3a5be5('0x38')]['belongsTo'](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x1aa'),'foreignKey':_0x3a5be5('0x198'),'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x38')][_0x3a5be5('0x11a')](db['ChatQueue'],{'as':'Queue','foreignKey':'ChatQueueId','onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x38')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x4')],{'as':'Website','foreignKey':'ChatWebsiteId','onDelete':'restrict'}),db[_0x3a5be5('0x38')][_0x3a5be5('0x11a')](db['Tag'],{'onDelete':'restrict','foreignKey':_0x3a5be5('0x179')}),db[_0x3a5be5('0xec')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x10e')],{'as':'Messages','onDelete':_0x3a5be5('0x124'),'foreignKey':'ChatInteractionId'}),db[_0x3a5be5('0xec')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x4')],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0xd9')}),db['ChatInteraction'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'as':'Contact','foreignKey':'ContactId'}),db[_0x3a5be5('0xec')]['belongsTo'](db['User'],{'as':_0x3a5be5('0x1ba'),'foreignKey':_0x3a5be5('0x198')}),db['ChatInteraction'][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':'chat_interaction_has_tags','as':_0x3a5be5('0x1b4')}),db[_0x3a5be5('0xec')]['belongsToMany'](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x13d'),'as':_0x3a5be5('0x1b7')}),db[_0x3a5be5('0xec')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':'Users','through':_0x3a5be5('0xcb'),'foreignKey':_0x3a5be5('0x136')}),db['ChatMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'onDelete':'cascade','as':'User'}),db['ChatMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'onDelete':'cascade','as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db['ChatMessage']['belongsTo'](db[_0x3a5be5('0xec')],{'onDelete':_0x3a5be5('0x124'),'as':'Interaction','foreignKey':_0x3a5be5('0x136')}),db[_0x3a5be5('0x10e')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x12f')],{'as':_0x3a5be5('0x12f'),'foreignKey':_0x3a5be5('0x1a')}),db['ChatMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x4')],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0xd9')}),db[_0x3a5be5('0x191')]['belongsTo'](db[_0x3a5be5('0x7b')],{'onDelete':_0x3a5be5('0x124'),'as':'Contact','foreignKey':'ContactId'}),db[_0x3a5be5('0x191')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x4')],{'as':'Account','foreignKey':_0x3a5be5('0xd9')}),db[_0x3a5be5('0x15b')]['belongsToMany'](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0xff'),'hooks':!![]}),db[_0x3a5be5('0x15b')][_0x3a5be5('0xb8')](db['Team'],{'through':'team_has_chat_queues','as':_0x3a5be5('0x13')}),db[_0x3a5be5('0x13c')][_0x3a5be5('0xbe')](db['ChatInternalMessage'],{'as':'Messages','foreignKey':_0x3a5be5('0x65'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x13c')][_0x3a5be5('0xb8')](db['User'],{'as':_0x3a5be5('0x183'),'through':'chat_group_has_users'}),db[_0x3a5be5('0x138')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x4')],{'as':_0x3a5be5('0x1d5'),'foreignKey':_0x3a5be5('0xd9')}),db['CmCompany'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x9e'),'foreignKey':_0x3a5be5('0x7f')}),db[_0x3a5be5('0x7b')]['hasMany'](db[_0x3a5be5('0xb9')],{'as':_0x3a5be5('0x10'),'foreignKey':_0x3a5be5('0x1a0')}),db['CmContact']['hasMany'](db[_0x3a5be5('0x175')],{'as':'HopperFinals','foreignKey':_0x3a5be5('0x1a0')}),db['CmContact'][_0x3a5be5('0xbe')](db['CmHopperHistory'],{'as':_0x3a5be5('0x100'),'foreignKey':'ContactId'}),db['CmContact']['hasMany'](db['ReportAgentPreview'],{'as':_0x3a5be5('0xf2'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x7b')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xe2')],{'as':_0x3a5be5('0x149'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x7b')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x4f')],{'as':_0x3a5be5('0x16b'),'foreignKey':'ContactId','onDelete':_0x3a5be5('0x167')}),db['CmContact'][_0x3a5be5('0xbe')](db[_0x3a5be5('0xec')],{'as':_0x3a5be5('0x15d'),'foreignKey':_0x3a5be5('0x1a0'),'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x7b')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x109')],{'as':_0x3a5be5('0x145'),'foreignKey':_0x3a5be5('0x1a0'),'onDelete':'restrict'}),db['CmContact'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x52')],{'as':_0x3a5be5('0x25'),'foreignKey':_0x3a5be5('0x1a0'),'onDelete':'restrict'}),db[_0x3a5be5('0x7b')]['hasMany'](db[_0x3a5be5('0x11f')],{'as':_0x3a5be5('0x13a'),'foreignKey':_0x3a5be5('0x1a0'),'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x7b')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x14c')],{'as':'Company','foreignKey':_0x3a5be5('0x7f')}),db[_0x3a5be5('0x7b')]['belongsTo'](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x49'),'foreignKey':_0x3a5be5('0x1c1'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x7b')][_0x3a5be5('0xb8')](db['User'],{'as':_0x3a5be5('0x10a'),'through':_0x3a5be5('0xda')}),db['CmContact'][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'as':_0x3a5be5('0x1b4'),'through':_0x3a5be5('0x2f')}),db[_0x3a5be5('0x7b')]['belongsToMany'](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x2f'),'as':_0x3a5be5('0x1b7')}),db[_0x3a5be5('0xb9')][_0x3a5be5('0x11a')](db['CmContact'],{'as':_0x3a5be5('0x83'),'foreignKey':'ContactId','onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0xb9')]['belongsTo'](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x49'),'foreignKey':_0x3a5be5('0x1c1'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0xb9')][_0x3a5be5('0x11a')](db['User'],{'as':_0x3a5be5('0x1aa'),'foreignKey':_0x3a5be5('0x198')}),db[_0x3a5be5('0xb9')]['belongsTo'](db[_0x3a5be5('0x111')],{'as':_0x3a5be5('0x101'),'foreignKey':_0x3a5be5('0x195'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0xb9')]['belongsTo'](db[_0x3a5be5('0xe')],{'as':_0x3a5be5('0xe'),'foreignKey':_0x3a5be5('0x45'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0xb9')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x1ba'),'foreignKey':_0x3a5be5('0x161')}),db[_0x3a5be5('0x4e')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0'),'onDelete':'cascade'}),db[_0x3a5be5('0x4e')][_0x3a5be5('0x11a')](db['CmList'],{'as':_0x3a5be5('0x49'),'foreignKey':_0x3a5be5('0x1c1'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x4e')][_0x3a5be5('0x11a')](db['VoiceQueue'],{'as':_0x3a5be5('0x101'),'foreignKey':'VoiceQueueId','onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x4e')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xe')],{'as':_0x3a5be5('0xe'),'foreignKey':_0x3a5be5('0x45'),'onDelete':_0x3a5be5('0x124')}),db['Automation'][_0x3a5be5('0xbe')](db[_0x3a5be5('0xd7')],{'as':{'plural':_0x3a5be5('0x31'),'singular':'OneAll'},'foreignKey':_0x3a5be5('0x29'),'onDelete':_0x3a5be5('0x124'),'hooks':!![]}),db[_0x3a5be5('0x56')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xd7')],{'as':{'plural':'Any','singular':'OneAny'},'foreignKey':'AutomationAnyId','onDelete':_0x3a5be5('0x124'),'hooks':!![]}),db[_0x3a5be5('0x56')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x14')],{'as':'Actions','foreignKey':'AutomationId','onDelete':_0x3a5be5('0x124'),'hooks':!![]}),db[_0x3a5be5('0x61')][_0x3a5be5('0xbe')](db['Disposition'],{'as':_0x3a5be5('0xaf'),'foreignKey':_0x3a5be5('0x121'),'onDelete':'cascade'}),db['Interval'][_0x3a5be5('0xbe')](db[_0x3a5be5('0xf8')],{'as':_0x3a5be5('0x19e'),'foreignKey':_0x3a5be5('0x6'),'onDelete':_0x3a5be5('0x124'),'hooks':!![],'required':![]}),db[_0x3a5be5('0xf8')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x14f')],{'as':_0x3a5be5('0x12e'),'foreignKey':_0x3a5be5('0x6'),'onDelete':_0x3a5be5('0x167')}),db['Interval']['hasMany'](db[_0x3a5be5('0x96')],{'as':_0x3a5be5('0x1b9'),'foreignKey':_0x3a5be5('0x6')}),db['Interval']['hasMany'](db[_0x3a5be5('0x38')],{'as':_0x3a5be5('0xae'),'foreignKey':'IntervalId'}),db['Interval'][_0x3a5be5('0xbe')](db[_0x3a5be5('0xc4')],{'as':_0x3a5be5('0xf9'),'foreignKey':_0x3a5be5('0x6')}),db[_0x3a5be5('0xf8')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x17')],{'as':_0x3a5be5('0x114'),'foreignKey':_0x3a5be5('0x6')}),db['Schedule'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x144')],{}),db['Schedule'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x26')],{'foreignKey':'DefaultReportId'}),db[_0x3a5be5('0x19f')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x5a')],{'foreignKey':'CustomReportId'}),db[_0x3a5be5('0x40')][_0x3a5be5('0xb8')](db[_0x3a5be5('0xe3')],{'as':_0x3a5be5('0x1a6'),'through':_0x3a5be5('0x1c6'),'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x8d')]['belongsToMany'](db['CmContact'],{'through':_0x3a5be5('0x2f')}),db[_0x3a5be5('0x8d')][_0x3a5be5('0xb8')](db['ChatInteraction'],{'through':_0x3a5be5('0x13d')}),db[_0x3a5be5('0x8d')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x11f')],{'through':_0x3a5be5('0x8b')}),db[_0x3a5be5('0x8d')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x109')],{'through':_0x3a5be5('0xee')}),db['Tag']['belongsToMany'](db[_0x3a5be5('0x52')],{'through':_0x3a5be5('0x1e4')}),db[_0x3a5be5('0x8d')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x4f')],{'through':_0x3a5be5('0x122')}),db[_0x3a5be5('0x8d')]['belongsToMany'](db[_0x3a5be5('0x1e6')],{'through':'whatsapp_interaction_has_tags'}),db[_0x3a5be5('0x4c')][_0x3a5be5('0xbe')](db['Condition'],{'as':{'plural':'AllConditions','singular':'AllCondition'},'foreignKey':_0x3a5be5('0x89'),'onDelete':_0x3a5be5('0x124'),'hooks':!![]}),db[_0x3a5be5('0x4c')][_0x3a5be5('0xbe')](db['Condition'],{'as':{'plural':'AnyConditions','singular':'AnyCondition'},'foreignKey':_0x3a5be5('0x13b'),'onDelete':_0x3a5be5('0x124'),'hooks':!![]}),db[_0x3a5be5('0x4c')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x14')],{'as':_0x3a5be5('0x84'),'foreignKey':_0x3a5be5('0x181'),'onDelete':_0x3a5be5('0x124'),'hooks':!![]}),db['AnalyticCustomReport'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x185')],{'as':_0x3a5be5('0xe6'),'onDelete':'cascade','foreignKey':_0x3a5be5('0x9d'),'hooks':!![]}),db[_0x3a5be5('0x26')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x185')],{'as':_0x3a5be5('0xe6'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0xf5')}),db[_0x3a5be5('0x76')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x185')],{'as':'Fields','onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x7e')}),db[_0x3a5be5('0x185')][_0x3a5be5('0x11a')](db['AnalyticMetric'],{'foreignKey':_0x3a5be5('0x7e')}),db[_0x3a5be5('0x102')][_0x3a5be5('0xbe')](db['SalesforceConfiguration'],{'as':_0x3a5be5('0x105'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x134')]['hasMany'](db[_0x3a5be5('0x199')],{'as':_0x3a5be5('0x186'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x134')][_0x3a5be5('0xbe')](db['SalesforceField'],{'as':_0x3a5be5('0x135'),'onDelete':_0x3a5be5('0x124'),'foreignKey':'DescriptionId'}),db[_0x3a5be5('0x134')]['hasMany'](db[_0x3a5be5('0x199')],{'as':'Fields','onDelete':'cascade','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x134')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x102')],{'as':'Account','foreignKey':_0x3a5be5('0x119')}),db['SalesforceField']['hasMany'](db[_0x3a5be5('0x199')],{'as':_0x3a5be5('0x131'),'foreignKey':_0x3a5be5('0x192')}),db['SalesforceField'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x199')],{'as':'Description','foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x199')]['hasMany'](db['SalesforceField'],{'as':_0x3a5be5('0x51'),'foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x199')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1dc')],{'as':_0x3a5be5('0x1dc'),'foreignKey':_0x3a5be5('0x8e')}),db[_0x3a5be5('0x137')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x8')],{'as':'Configurations','onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x8')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x19a')],{'as':_0x3a5be5('0x186'),'onDelete':'cascade','foreignKey':'SubjectId'}),db[_0x3a5be5('0x8')][_0x3a5be5('0xbe')](db['SugarcrmField'],{'as':'Descriptions','onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x11e')}),db['SugarcrmConfiguration'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x19a')],{'as':_0x3a5be5('0xe6'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x8')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x137')],{'as':_0x3a5be5('0x30'),'foreignKey':'AccountId'}),db[_0x3a5be5('0x19a')]['hasMany'](db[_0x3a5be5('0x19a')],{'as':'Subject','foreignKey':_0x3a5be5('0x192')}),db['SugarcrmField'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x19a')],{'as':_0x3a5be5('0xbd'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x19a')]['hasMany'](db[_0x3a5be5('0x19a')],{'as':_0x3a5be5('0x51'),'foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x19a')]['belongsTo'](db[_0x3a5be5('0x1dc')],{'as':_0x3a5be5('0x1dc'),'foreignKey':_0x3a5be5('0x8e')}),db['DeskAccount']['hasMany'](db[_0x3a5be5('0x1ca')],{'as':_0x3a5be5('0x105'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x1ca')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x123')],{'as':_0x3a5be5('0x186'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x1ca')][_0x3a5be5('0xbe')](db['DeskField'],{'as':_0x3a5be5('0x135'),'onDelete':_0x3a5be5('0x124'),'foreignKey':'DescriptionId'}),db[_0x3a5be5('0x1ca')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x123')],{'as':_0x3a5be5('0xe6'),'onDelete':'cascade','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x1ca')][_0x3a5be5('0x11a')](db['DeskAccount'],{'as':'Account','foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x1ca')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x2c')}),db[_0x3a5be5('0x123')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x123')],{'as':'Subject','foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x123')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x123')],{'as':_0x3a5be5('0xbd'),'foreignKey':_0x3a5be5('0x11e')}),db['DeskField'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x123')],{'as':'Field','foreignKey':'FieldId'}),db['DeskField'][_0x3a5be5('0x11a')](db['Variable'],{'as':'Variable','foreignKey':_0x3a5be5('0x8e')}),db[_0x3a5be5('0x184')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1c4')],{'as':_0x3a5be5('0x105'),'onDelete':'cascade','foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x1c4')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1bd')],{'as':_0x3a5be5('0x186'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x1c4')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1bd')],{'as':_0x3a5be5('0x135'),'onDelete':'cascade','foreignKey':_0x3a5be5('0x11e')}),db['ZohoConfiguration'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1bd')],{'as':_0x3a5be5('0xe6'),'onDelete':'cascade','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x1c4')]['belongsTo'](db[_0x3a5be5('0x184')],{'as':'Account','foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x1bd')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1bd')],{'as':_0x3a5be5('0x131'),'foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x1bd')][_0x3a5be5('0xbe')](db['ZohoField'],{'as':_0x3a5be5('0xbd'),'foreignKey':'DescriptionId'}),db[_0x3a5be5('0x1bd')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1bd')],{'as':_0x3a5be5('0x51'),'foreignKey':'FieldId'}),db[_0x3a5be5('0x1bd')]['belongsTo'](db[_0x3a5be5('0x1dc')],{'as':_0x3a5be5('0x1dc'),'foreignKey':_0x3a5be5('0x8e')}),db[_0x3a5be5('0x64')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1de')],{'as':_0x3a5be5('0x105'),'onDelete':'cascade','foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x1de')]['hasMany'](db[_0x3a5be5('0x66')],{'as':_0x3a5be5('0x186'),'foreignKey':'SubjectId'}),db[_0x3a5be5('0x1de')]['hasMany'](db[_0x3a5be5('0x66')],{'as':_0x3a5be5('0x135'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x1de')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x66')],{'as':'Fields','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x1de')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x64')],{'as':'Account','foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x1de')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0xeb')}),db['ZendeskField']['hasMany'](db['ZendeskField'],{'as':_0x3a5be5('0x131'),'foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x66')][_0x3a5be5('0xbe')](db['ZendeskField'],{'as':_0x3a5be5('0xbd'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x66')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x66')],{'as':'Field','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x66')]['belongsTo'](db['Variable'],{'as':_0x3a5be5('0x1dc'),'foreignKey':_0x3a5be5('0x8e')}),db[_0x3a5be5('0x6c')]['hasMany'](db[_0x3a5be5('0x10f')],{'as':'Configurations','onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x119')}),db['FreshdeskConfiguration']['hasMany'](db[_0x3a5be5('0x130')],{'as':_0x3a5be5('0x186'),'onDelete':_0x3a5be5('0x124'),'foreignKey':'SubjectId'}),db[_0x3a5be5('0x10f')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x130')],{'as':_0x3a5be5('0x135'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x10f')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x130')],{'as':_0x3a5be5('0xe6'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x10f')]['belongsTo'](db[_0x3a5be5('0x6c')],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0x119')}),db['FreshdeskConfiguration'][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x8f')}),db[_0x3a5be5('0x130')]['hasMany'](db['FreshdeskField'],{'as':_0x3a5be5('0x131'),'foreignKey':'SubjectId'}),db[_0x3a5be5('0x130')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x130')],{'as':_0x3a5be5('0xbd'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x130')][_0x3a5be5('0xbe')](db['FreshdeskField'],{'as':'Field','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x130')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1dc')],{'as':_0x3a5be5('0x1dc'),'foreignKey':_0x3a5be5('0x8e')}),db['VtigerAccount'][_0x3a5be5('0xbe')](db['VtigerConfiguration'],{'as':_0x3a5be5('0x105'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x1b')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1d6')],{'as':_0x3a5be5('0x186'),'foreignKey':'SubjectId'}),db['VtigerConfiguration'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1d6')],{'as':_0x3a5be5('0x135'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x1b')]['hasMany'](db[_0x3a5be5('0x1d6')],{'as':_0x3a5be5('0xe6'),'foreignKey':_0x3a5be5('0x5e')}),db['VtigerConfiguration'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x2e')],{'as':'Account','foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x1d6')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1d6')],{'as':_0x3a5be5('0x131'),'foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x1d6')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1d6')],{'as':_0x3a5be5('0xbd'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x1d6')]['hasMany'](db[_0x3a5be5('0x1d6')],{'as':_0x3a5be5('0x51'),'foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x1d6')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1dc')],{'as':_0x3a5be5('0x1dc'),'foreignKey':'VariableId'}),db[_0x3a5be5('0x55')]['hasMany'](db['ServicenowConfiguration'],{'as':_0x3a5be5('0x105'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0xd5')]['hasMany'](db[_0x3a5be5('0x128')],{'as':'Subjects','foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0xd5')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x128')],{'as':'Descriptions','foreignKey':_0x3a5be5('0x11e')}),db['ServicenowConfiguration'][_0x3a5be5('0xbe')](db['ServicenowField'],{'as':'Fields','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0xd5')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x55')],{'as':'Account','foreignKey':'AccountId'}),db[_0x3a5be5('0x128')][_0x3a5be5('0xbe')](db['ServicenowField'],{'as':_0x3a5be5('0x131'),'foreignKey':_0x3a5be5('0x192')}),db['ServicenowField'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x128')],{'as':_0x3a5be5('0xbd'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x128')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x128')],{'as':'Field','foreignKey':'FieldId'}),db[_0x3a5be5('0x128')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1dc')],{'as':_0x3a5be5('0x1dc'),'foreignKey':_0x3a5be5('0x8e')}),db[_0x3a5be5('0x132')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xba')],{'as':'Configurations','onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x119')}),db['Dynamics365Configuration'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x5f')],{'as':_0x3a5be5('0x186'),'onDelete':'cascade','foreignKey':'SubjectId'}),db[_0x3a5be5('0xba')]['hasMany'](db[_0x3a5be5('0x5f')],{'as':'Descriptions','onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0xba')][_0x3a5be5('0xbe')](db['Dynamics365Field'],{'as':_0x3a5be5('0xe6'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0xba')]['belongsTo'](db['Dynamics365Account'],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0x119')}),db['Dynamics365Field']['hasMany'](db[_0x3a5be5('0x5f')],{'as':_0x3a5be5('0x131'),'foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x5f')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x5f')],{'as':_0x3a5be5('0xbd'),'foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x5f')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x5f')],{'as':_0x3a5be5('0x51'),'foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x5f')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1dc')],{'as':'Variable','foreignKey':_0x3a5be5('0x8e')}),db[_0x3a5be5('0x67')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1cf')],{'as':'Configurations','onDelete':'cascade','foreignKey':_0x3a5be5('0x119')}),db['FreshsalesConfiguration'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x14a')],{'as':_0x3a5be5('0x186'),'foreignKey':_0x3a5be5('0x192')}),db['FreshsalesConfiguration'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x14a')],{'as':'Descriptions','foreignKey':_0x3a5be5('0x11e')}),db[_0x3a5be5('0x1cf')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x14a')],{'as':'Fields','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x1cf')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x67')],{'as':_0x3a5be5('0x30'),'foreignKey':_0x3a5be5('0x119')}),db[_0x3a5be5('0x14a')]['hasMany'](db[_0x3a5be5('0x14a')],{'as':_0x3a5be5('0x131'),'foreignKey':_0x3a5be5('0x192')}),db[_0x3a5be5('0x14a')]['hasMany'](db[_0x3a5be5('0x14a')],{'as':_0x3a5be5('0xbd'),'foreignKey':_0x3a5be5('0x11e')}),db['FreshsalesField']['hasMany'](db[_0x3a5be5('0x14a')],{'as':'Field','foreignKey':_0x3a5be5('0x5e')}),db[_0x3a5be5('0x14a')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x1dc')],{'as':_0x3a5be5('0x1dc'),'foreignKey':'VariableId'}),db['ChatQueueReport'][_0x3a5be5('0x11a')](db['ChatWebsite'],{}),db[_0x3a5be5('0xcf')]['belongsTo'](db['CmList'],{'as':_0x3a5be5('0x49'),'foreignKey':'ListId'}),db[_0x3a5be5('0xcf')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0xcf')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xec')],{}),db[_0x3a5be5('0xcf')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x10e')],{}),db['ChatQueueReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{}),db[_0x3a5be5('0xcf')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x15b')],{}),db['ChatInternalMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'onDelete':_0x3a5be5('0x124'),'foreignKey':'FromId'}),db['ChatInternalMessage']['belongsTo'](db[_0x3a5be5('0x20')],{'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x78')}),db['JscriptySessionReport'][_0x3a5be5('0xbe')](db['JscriptyQuestionReport'],{'foreignKey':_0x3a5be5('0xa3'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0xe2')]['hasMany'](db[_0x3a5be5('0xb3')],{'foreignKey':_0x3a5be5('0xa3'),'onDelete':'cascade'}),db['SmsQueueReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x139')],{}),db[_0x3a5be5('0xea')]['belongsTo'](db['CmList'],{'as':_0x3a5be5('0x49'),'foreignKey':'ListId'}),db['SmsQueueReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0xea')]['belongsTo'](db[_0x3a5be5('0x109')],{}),db[_0x3a5be5('0xea')][_0x3a5be5('0x11a')](db['SmsMessage'],{}),db[_0x3a5be5('0xea')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{}),db[_0x3a5be5('0xea')]['belongsTo'](db[_0x3a5be5('0xf0')],{}),db[_0x3a5be5('0x77')]['hasMany'](db[_0x3a5be5('0xe2')],{'foreignKey':'ProjectId'}),db[_0x3a5be5('0x77')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xce')],{'foreignKey':'ProjectId'}),db[_0x3a5be5('0x77')][_0x3a5be5('0xbe')](db[_0x3a5be5('0xb3')],{'foreignKey':_0x3a5be5('0x1cc')}),db[_0x3a5be5('0xfc')]['belongsToMany'](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x10a'),'through':'user_has_square_projects'}),db['Team'][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x172')}),db[_0x3a5be5('0x1c5')][_0x3a5be5('0xb8')](db['VoiceQueue'],{'through':_0x3a5be5('0xc5'),'as':_0x3a5be5('0x14d')}),db[_0x3a5be5('0x1c5')][_0x3a5be5('0xb8')](db['MailQueue'],{'through':_0x3a5be5('0xa6'),'as':_0x3a5be5('0x1e1')}),db[_0x3a5be5('0x1c5')]['belongsToMany'](db[_0x3a5be5('0x15b')],{'through':_0x3a5be5('0xd'),'as':_0x3a5be5('0x68')}),db[_0x3a5be5('0x1c5')][_0x3a5be5('0xb8')](db['FaxQueue'],{'through':_0x3a5be5('0x79'),'as':_0x3a5be5('0x154')}),db[_0x3a5be5('0x1c5')][_0x3a5be5('0xb8')](db[_0x3a5be5('0xf0')],{'through':_0x3a5be5('0x0'),'as':'SmsQueues'}),db['Team'][_0x3a5be5('0xb8')](db[_0x3a5be5('0x3c')],{'through':_0x3a5be5('0x1c7'),'as':_0x3a5be5('0x95')}),db['Team']['belongsToMany'](db[_0x3a5be5('0x1e2')],{'through':_0x3a5be5('0x98'),'as':_0x3a5be5('0x1ad')}),db['Campaign'][_0x3a5be5('0xbe')](db['CmHopper'],{'as':'Hoppers','foreignKey':_0x3a5be5('0x45')}),db[_0x3a5be5('0xe')][_0x3a5be5('0xbe')](db['CmHopperFinal'],{'as':'HopperFinals','foreignKey':_0x3a5be5('0x45')}),db['Campaign'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x146')],{'as':_0x3a5be5('0x100'),'foreignKey':'CampaignId'}),db['Campaign'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x4e')],{'as':'HopperBlacks','foreignKey':'CampaignId'}),db[_0x3a5be5('0xe')]['belongsTo'](db[_0x3a5be5('0xb0')],{'as':_0x3a5be5('0xb0'),'foreignKey':_0x3a5be5('0x8a')}),db[_0x3a5be5('0xe')][_0x3a5be5('0x11a')](db['Trunk'],{'as':_0x3a5be5('0x80'),'foreignKey':_0x3a5be5('0x4a')}),db[_0x3a5be5('0xe')]['belongsTo'](db['Interval'],{'as':_0x3a5be5('0xf8'),'foreignKey':_0x3a5be5('0x6')}),db[_0x3a5be5('0xe')][_0x3a5be5('0x11a')](db['SquareProject'],{'as':_0x3a5be5('0xfc'),'foreignKey':'SquareProjectId'}),db['Campaign'][_0x3a5be5('0xb8')](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x125'),'through':_0x3a5be5('0x60')}),db['Campaign'][_0x3a5be5('0xb8')](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x12'),'through':_0x3a5be5('0xd4')}),db[_0x3a5be5('0xb')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x133')],{}),db[_0x3a5be5('0xb')]['belongsTo'](db[_0x3a5be5('0x11f')],{}),db['MailTransferReport']['belongsTo'](db[_0x3a5be5('0x144')],{'foreignKey':'FromMailAccountId','as':_0x3a5be5('0x180')}),db[_0x3a5be5('0xb')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'foreignKey':_0x3a5be5('0xe7'),'as':'FromAgent'}),db[_0x3a5be5('0xb')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'foreignKey':_0x3a5be5('0x1d9'),'as':_0x3a5be5('0x140')}),db['MailTransferReport'][_0x3a5be5('0x11a')](db['MailQueue'],{'foreignKey':'ToMailQueueId','as':_0x3a5be5('0xa1')}),db[_0x3a5be5('0xb')]['belongsTo'](db[_0x3a5be5('0x144')],{'foreignKey':'ToMailAccountId','as':_0x3a5be5('0xdc')}),db['ChatTransferReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x10e')],{}),db[_0x3a5be5('0x11c')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xec')],{}),db['ChatTransferReport'][_0x3a5be5('0x11a')](db['ChatWebsite'],{'foreignKey':_0x3a5be5('0x11b'),'as':_0x3a5be5('0x180')}),db[_0x3a5be5('0x11c')][_0x3a5be5('0x11a')](db['User'],{'foreignKey':_0x3a5be5('0xe7'),'as':_0x3a5be5('0x9a')}),db[_0x3a5be5('0x11c')][_0x3a5be5('0x11a')](db['User'],{'foreignKey':_0x3a5be5('0x1d9'),'as':'ToAgent'}),db[_0x3a5be5('0x11c')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x15b')],{'foreignKey':_0x3a5be5('0x17f'),'as':_0x3a5be5('0xa1')}),db[_0x3a5be5('0x11c')]['belongsTo'](db['ChatWebsite'],{'foreignKey':_0x3a5be5('0x42'),'as':_0x3a5be5('0xdc')}),db[_0x3a5be5('0xd0')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xfb')],{}),db[_0x3a5be5('0xd0')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x52')],{}),db[_0x3a5be5('0xd0')]['belongsTo'](db[_0x3a5be5('0x23')],{'foreignKey':_0x3a5be5('0x73'),'as':_0x3a5be5('0x180')}),db[_0x3a5be5('0xd0')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'foreignKey':_0x3a5be5('0xe7'),'as':_0x3a5be5('0x9a')}),db[_0x3a5be5('0xd0')]['belongsTo'](db['User'],{'foreignKey':_0x3a5be5('0x1d9'),'as':_0x3a5be5('0x140')}),db[_0x3a5be5('0xd0')]['belongsTo'](db[_0x3a5be5('0xbc')],{'foreignKey':'ToFaxQueueId','as':'ToQueue'}),db[_0x3a5be5('0xd0')]['belongsTo'](db[_0x3a5be5('0x23')],{'foreignKey':_0x3a5be5('0x6a'),'as':_0x3a5be5('0xdc')}),db[_0x3a5be5('0x85')]['belongsTo'](db[_0x3a5be5('0x39')],{}),db['OpenchannelTransferReport']['belongsTo'](db[_0x3a5be5('0x4f')],{}),db['OpenchannelTransferReport']['belongsTo'](db[_0x3a5be5('0x155')],{'foreignKey':_0x3a5be5('0x7d'),'as':_0x3a5be5('0x180')}),db[_0x3a5be5('0x85')]['belongsTo'](db[_0x3a5be5('0x20')],{'foreignKey':_0x3a5be5('0xe7'),'as':'FromAgent'}),db['OpenchannelTransferReport'][_0x3a5be5('0x11a')](db['User'],{'foreignKey':'ToUserId','as':_0x3a5be5('0x140')}),db[_0x3a5be5('0x85')]['belongsTo'](db[_0x3a5be5('0x3c')],{'foreignKey':_0x3a5be5('0x27'),'as':_0x3a5be5('0xa1')}),db[_0x3a5be5('0x85')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x155')],{'foreignKey':'ToOpenchannelAccountId','as':_0x3a5be5('0xdc')}),db[_0x3a5be5('0xd1')]['belongsTo'](db[_0x3a5be5('0x21')],{}),db[_0x3a5be5('0xd1')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x109')],{}),db[_0x3a5be5('0xd1')][_0x3a5be5('0x11a')](db['SmsAccount'],{'foreignKey':_0x3a5be5('0x1c2'),'as':_0x3a5be5('0x180')}),db[_0x3a5be5('0xd1')]['belongsTo'](db[_0x3a5be5('0x20')],{'foreignKey':'FromUserId','as':_0x3a5be5('0x9a')}),db['SmsTransferReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'foreignKey':_0x3a5be5('0x1d9'),'as':'ToAgent'}),db[_0x3a5be5('0xd1')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf0')],{'foreignKey':_0x3a5be5('0x12c'),'as':'ToQueue'}),db[_0x3a5be5('0xd1')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x139')],{'foreignKey':_0x3a5be5('0x4b'),'as':_0x3a5be5('0xdc')}),db[_0x3a5be5('0xf4')][_0x3a5be5('0xbe')](db['Disposition'],{'as':_0x3a5be5('0xaf'),'foreignKey':_0x3a5be5('0x1c1')}),db[_0x3a5be5('0xf4')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x90')],{'as':_0x3a5be5('0x1e3'),'foreignKey':_0x3a5be5('0x1c1')}),db['CmList'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x9e'),'onDelete':'cascade','foreignKey':_0x3a5be5('0x1c1')}),db[_0x3a5be5('0xf4')]['hasMany'](db['CmHopperFinal'],{'as':_0x3a5be5('0x15c'),'foreignKey':_0x3a5be5('0x1c1')}),db[_0x3a5be5('0xf4')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x146')],{'as':'HopperHistory','foreignKey':_0x3a5be5('0x1c1')}),db[_0x3a5be5('0xf4')]['hasMany'](db[_0x3a5be5('0xf2')],{'as':_0x3a5be5('0xf2'),'foreignKey':'ListId'}),db['CmList'][_0x3a5be5('0xb8')](db[_0x3a5be5('0x111')],{'as':_0x3a5be5('0x166'),'through':_0x3a5be5('0xc')}),db[_0x3a5be5('0xf4')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x1a2')}),db[_0x3a5be5('0x33')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x14f')],{'as':_0x3a5be5('0x12e'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x33')][_0x3a5be5('0xb8')](db['User'],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0xc1')}),db[_0x3a5be5('0x1ab')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x10a'),'foreignKey':_0x3a5be5('0x151')}),db['UserProfile'][_0x3a5be5('0xbe')](db[_0x3a5be5('0x159')],{'as':_0x3a5be5('0xa'),'foreignKey':'userProfileId','onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x159')][_0x3a5be5('0xbe')](db[_0x3a5be5('0x1b6')],{'as':_0x3a5be5('0x37'),'foreignKey':_0x3a5be5('0x1bc'),'onDelete':_0x3a5be5('0x124')}),db[_0x3a5be5('0x153')]['hasMany'](db[_0x3a5be5('0x61')],{'as':_0x3a5be5('0xaf'),'foreignKey':_0x3a5be5('0x19c')}),db[_0x3a5be5('0x153')]['hasMany'](db[_0x3a5be5('0x93')],{'as':_0x3a5be5('0x69'),'foreignKey':_0x3a5be5('0x19c')}),db[_0x3a5be5('0x153')][_0x3a5be5('0xbe')](db['WhatsappMessage'],{'as':'Messages','foreignKey':_0x3a5be5('0x19c')}),db[_0x3a5be5('0x153')]['hasMany'](db['WhatsappInteraction'],{'as':_0x3a5be5('0x112')}),db[_0x3a5be5('0x153')]['hasMany'](db['WhatsappApplication'],{'as':_0x3a5be5('0x18f')}),db[_0x3a5be5('0x153')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf4')],{'as':'List','foreignKey':_0x3a5be5('0x1c1')}),db[_0x3a5be5('0x153')]['belongsTo'](db[_0x3a5be5('0x1a7')],{'as':_0x3a5be5('0x1cb'),'foreignKey':_0x3a5be5('0x193')}),db[_0x3a5be5('0x153')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x107')}),db[_0x3a5be5('0x19d')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x19d')]['belongsTo'](db[_0x3a5be5('0x1e2')],{'onDelete':_0x3a5be5('0x167')}),db[_0x3a5be5('0x19d')][_0x3a5be5('0x11a')](db['WhatsappAccount'],{'onDelete':'restrict'}),db[_0x3a5be5('0x19d')]['belongsTo'](db[_0x3a5be5('0xf8')],{'onDelete':_0x3a5be5('0x167'),'foreignKey':'IntervalId'}),db[_0x3a5be5('0x19d')][_0x3a5be5('0x11a')](db['Tag'],{'onDelete':_0x3a5be5('0x167'),'foreignKey':_0x3a5be5('0x179')}),db['WhatsappInteraction'][_0x3a5be5('0xbe')](db[_0x3a5be5('0xf')],{'as':_0x3a5be5('0x81'),'onDelete':_0x3a5be5('0x124'),'foreignKey':_0x3a5be5('0x6f')}),db[_0x3a5be5('0x1e6')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x153')],{'as':_0x3a5be5('0x30'),'foreignKey':'WhatsappAccountId'}),db['WhatsappInteraction']['belongsTo'](db[_0x3a5be5('0x7b')],{'as':_0x3a5be5('0x83'),'foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x1e6')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x1ba'),'foreignKey':'UserId'}),db[_0x3a5be5('0x1e6')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x104'),'as':'Tags'}),db[_0x3a5be5('0x1e6')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x8d')],{'through':_0x3a5be5('0x104'),'as':'ThroughTags'}),db[_0x3a5be5('0x1e6')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x20')],{'as':'Users','through':_0x3a5be5('0x35'),'foreignKey':_0x3a5be5('0x6f')}),db[_0x3a5be5('0xf')][_0x3a5be5('0x11a')](db['User'],{'as':_0x3a5be5('0x20')}),db['WhatsappMessage']['belongsTo'](db['CmContact'],{'onDelete':_0x3a5be5('0x124'),'as':_0x3a5be5('0x83')}),db[_0x3a5be5('0xf')]['belongsTo'](db[_0x3a5be5('0x1e6')],{'onDelete':_0x3a5be5('0x124'),'as':_0x3a5be5('0xbb'),'foreignKey':_0x3a5be5('0x6f')}),db['WhatsappMessage'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x153')],{'as':_0x3a5be5('0x30'),'foreignKey':'WhatsappAccountId'}),db['WhatsappQueueReport'][_0x3a5be5('0x11a')](db[_0x3a5be5('0x153')],{}),db[_0x3a5be5('0x190')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf4')],{'as':_0x3a5be5('0x49'),'foreignKey':_0x3a5be5('0x1c1')}),db['WhatsappQueueReport']['belongsTo'](db[_0x3a5be5('0x7b')],{'as':'Contact','foreignKey':_0x3a5be5('0x1a0')}),db[_0x3a5be5('0x190')][_0x3a5be5('0x11a')](db['WhatsappInteraction'],{}),db[_0x3a5be5('0x190')]['belongsTo'](db[_0x3a5be5('0x1e2')],{}),db['WhatsappQueueReport']['belongsTo'](db[_0x3a5be5('0xf')],{}),db[_0x3a5be5('0x190')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{}),db[_0x3a5be5('0xcc')][_0x3a5be5('0x11a')](db[_0x3a5be5('0xf')],{}),db[_0x3a5be5('0xcc')][_0x3a5be5('0x11a')](db['WhatsappInteraction'],{}),db[_0x3a5be5('0xcc')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x153')],{'foreignKey':_0x3a5be5('0x152'),'as':_0x3a5be5('0x180')}),db[_0x3a5be5('0xcc')]['belongsTo'](db[_0x3a5be5('0x153')],{'foreignKey':'ToWhatsappAccountId','as':'ToAccount'}),db[_0x3a5be5('0xcc')]['belongsTo'](db[_0x3a5be5('0x1e2')],{'foreignKey':'ToQueueId','as':_0x3a5be5('0xa1')}),db[_0x3a5be5('0xcc')][_0x3a5be5('0x11a')](db[_0x3a5be5('0x20')],{'foreignKey':_0x3a5be5('0xe7'),'as':'FromAgent'}),db[_0x3a5be5('0xcc')][_0x3a5be5('0x11a')](db['User'],{'foreignKey':'ToUserId','as':_0x3a5be5('0x140')}),db[_0x3a5be5('0x1e2')]['belongsToMany'](db[_0x3a5be5('0x20')],{'as':_0x3a5be5('0x18e'),'through':_0x3a5be5('0x63'),'foreignKey':_0x3a5be5('0x1bb')}),db[_0x3a5be5('0x1e2')][_0x3a5be5('0xb8')](db[_0x3a5be5('0x1c5')],{'through':'team_has_whatsapp_queues','as':_0x3a5be5('0x13')}),module[_0x3a5be5('0x1c9')]={'db':db,'dbH':dbH}; \ No newline at end of file +const a1021_0x3a84=['ToId','../api/userOpenchannelQueue/userOpenchannelQueue.model','../api/chatInteraction/chatInteraction.model','SmsQueues','UserMailInteractions','TrunkBackupId','FreshsalesAccount','ChatInternalMessage','WhatsappInteraction','../api/network/network.model','cm_user_has_lists','MailQueueReport','WhatsappInteractionId','WhatsappQueue','ZendeskField','../api/mailQueue/mailQueue.model','../api/intFreshdeskAccount/intFreshdeskAccount.model','ChatWebsites','mail_interaction_has_tags','AllCondition','SmsMessage','../api/userVoiceQueueRt/userVoiceQueueRt.model','FaxMessage','TriggerAllId','JscriptySessions','FaxQueue','HopperFinals','MailServerOut','Action','team_has_sms_queues','Queue','../api/openchannelInteraction/openchannelInteraction.model','AgentReports','Dispositions','FaxQueueReport','../api/intFreshdeskField/intFreshdeskField.model','UserWhatsappInteractions','../api/faxTransferReport/faxTransferReport.model','../api/whatsappAccount/whatsappAccount.model','MailApplication','ParentId','ChatInteractions','FreshsalesField','int_freshdesk_configuration_has_tags','JscriptyAnswerReport','CmCompany','../api/intZendeskAccount/intZendeskAccount.model','../api/intDynamics365Configuration/intDynamics365Configuration.model','../api/whatsappQueueReport/whatsappQueueReport.model','CustomReportId','../api/voiceAgentReport/voiceAgentReport.model','WhatsappAccountId','Subject','VoiceCallReport','../api/openchannelQueue/openchannelQueue.model','FreshdeskField','ToWhatsappAccountId','../api/smsMessage/smsMessage.model','AutomationAllId','Notifications','../api/squareReport/squareReport.model','UserProfileResource','HopperBlacks','../api/schedule/schedule.model','ServicenowConfiguration','ChatWebsite','../api/screenRecording/screenRecording.model','OpenchannelQueueId','FromFaxAccountId','FromAgent','Dashboard','AnyConditions','OpenchannelQueueReport','ToQueueId','../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model','sms_interaction_has_tags','ContactId','FaxInteractions','DeskConfiguration','TriggerAnyId','../api/openchannelMessage/openchannelMessage.model','CmContact','../api/voiceQueuesLog/voiceQueuesLog.model','ToOpenchannelAccountId','OpenchannelTransferReport','FreshdeskConfiguration','VoiceQueueId','ChatQueueReport','../api/intDeskConfiguration/intDeskConfiguration.model','SmsAccounts','WhatsappAccount','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','Agents','FromAccount','../api/analyticFieldReport/analyticFieldReport.model','SmsQueueId','ToSmsQueueId','AutomationId','SenderId','../api/chatQueueReport/chatQueueReport.model','Team','UserProfileSections','UserId','../api/faxInteraction/faxInteraction.model','Teams','../api/analyticCustomReport/analyticCustomReport.model','ThroughTags','MailQueues','ServicenowAccount','SmsApplications','../api/userMailQueue/userMailQueue.model','AnyCondition','chat_interaction_has_tags','dbHost','DefaultReportId','int_desk_configuration_has_tags','SugarcrmAccount','MailApplications','ToAccount','mandatoryDispositionPause','ChatTransferReport','ToQueue','team_has_voice_queues','voice_queues_has_cm_blacklists','AnalyticTreeReport','user_has_whatsapp_accounts','exports','VoiceQueues','Queues','ZendeskAccount','openchannel_interaction_has_tags','SugarcrmConfiguration','BlackLists','ToOpenchannelQueueId','cm_contact_has_tags','MailAccount','../api/mailQueueReport/mailQueueReport.model','Notification','team_has_chat_queues','FaxInteractionId','int_zendesk_configuration_has_tags','Dynamics365Field','ToFaxAccountId','../api/chatQueue/chatQueue.model','name','utf8_general_ci','../api/intServicenowConfiguration/intServicenowConfiguration.model','ChatProactiveAction','campaigns_has_cm_blacklists','User','CompanyId','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','ChatInteractionId','VoiceMail','FaxApplication','../api/setting/setting.model','../api/interval/interval.model','SquareProject','SmsTransferReport','ChatWebsiteId','OpenchannelQueue','ToMailAccountId','../api/template/template.model','MailInteraction','AccountId','ZohoAccount','VoiceContext','ChatQueues','AnalyticCustomReport','HopperHistory','SpiedAgents','WhatsappMessage','user_has_whatsapp_interactions','SmsAccountId','../api/voiceDialReport/voiceDialReport.model','VtigerField','Imap','user_has_sms_accounts','Contacts','Tags','FromUserId','../api/userFaxQueue/userFaxQueue.model','Interval','team_has_fax_queues','chat_group_has_users','lodash','../api/faxMessage/faxMessage.model','../api/analyticExtractedReport/analyticExtractedReport.model','VoicePrefix','ChatGroup','../api/openchannelTransferReport/openchannelTransferReport.model','SalesforceField','../api/intZohoField/intZohoField.model','../api/cmCustomField/cmCustomField.model','SugarcrmField','OwnerId','../api/cmContact/cmContact.model','ZohoField','CmHopperFinal','../api/trigger/trigger.model','ProjectId','ScreenRecording','SalesforceConfiguration','Resources','FromSmsAccountId','ZohoConfiguration','belongsTo','../api/jscriptySessionReport/jscriptySessionReport.model','ChatOfflineMessage','utf8mb4','VoiceQueue','../api/integration/integration.model','VoiceQueuesLog','Campaign','Recordings','Intervals','DescriptionId','ToChatWebsiteId','SessionId','FaxQueues','../api/smsAccount/smsAccount.model','Descriptions','Actions','Contact','../api/dashboardItem/dashboardItem.model','SmsQueue','user_has_chat_websites','CmCustomField','../api/squareRecording/squareRecording.model','SmsInteractions','../config/environment','../api/mailMessage/mailMessage.model','ChatMessage','CloudProvider','user_has_voice_prefixes','UserWhatsappQueue','Field','TriggerId','Integration','MailAccountId','List','../api/mailAccount/mailAccount.model','../api/voiceTransferReport/voiceTransferReport.model','restrict','../api/memberReport/memberReport.model','ChatGroupId','AutomationAnyId','../api/squareReportDetail/squareReportDetail.model','moh_has_sounds','../api/chatGroup/chatGroup.model','ZendeskConfiguration','../api/faxQueue/faxQueue.model','Account','../api/dashboard/dashboard.model','FreshsalesConfiguration','../api/chatOfflineMessage/chatOfflineMessage.model','Messages','uniqueid','CmHopperBlack','Dynamics365Configuration','../api/mailSubstatus/mailSubstatus.model','Agent','../api/intZohoConfiguration/intZohoConfiguration.model','../api/sound/sound.model','ChatInteraction','OpenchannelApplication','MailSubstatus','SmsApplication','All','FaxTransferReport','FromId','OneAll','MailInteractions','ServicenowField','WhatsappTransferReport','VoiceExtension','cm_user_has_contacts','Pause','AnalyticFieldReport','../api/intDeskField/intDeskField.model','../api/whatsappInteraction/whatsappInteraction.model','VariableId','Users','../api/userWhatsappQueue/userWhatsappQueue.model','CampaignId','../api/notification/notification.model','VtigerConfiguration','Answers','UserMailQueue','Description','user_has_teams','CustomFields','../api/voiceContext/voiceContext.model','Tag','SmsQueueReport','user_has_fax_interactions','AnalyticMetric','../api/whatsappApplication/whatsappApplication.model','../api/faxQueueReport/faxQueueReport.model','../api/mailTransferReport/mailTransferReport.model','Members','FreshdeskAccount','ToChatQueueId','IntegrationReport','OpenchannelAccounts','whatsapp_interaction_has_tags','DeskField','UserOpenchannelInteractions','../api/analyticDefaultReport/analyticDefaultReport.model','SmsInteraction','mailbox','Any','../api/smsApplication/smsApplication.model','Condition','password','DashboardItem','Trigger','../api/chatInternalMessage/chatInternalMessage.model','Trunk','../api/openchannelQueueReport/openchannelQueueReport.model','../api/userChatQueue/userChatQueue.model','user_has_sms_interactions','Sounds','CmHopper','../api/chatWebsite/chatWebsite.model','Configurations','../api/squareProject/squareProject.model','../api/voiceExtension/voiceExtension.model','../api/userVoiceQueue/userVoiceQueue.model','../api/intSalesforceAccount/intSalesforceAccount.model','Disposition','DataTypes','Template','JscriptySessionReport','AnalyticExtractedReport','user_has_openchannel_interactions','options','OpenchannelInteractionId','../api/cdr/cdr.model','Hoppers','MetricId','CmHopperHistory','ToUserId','WhatsappApplication','ListId','FromWhatsappAccountId','../api/intFreshsalesField/intFreshsalesField.model','mandatoryDispositionPauseId','user_has_fax_accounts','../api/faxAccount/faxAccount.model','team_has_mail_queues','mysqlPassword','JscriptyQuestionReport','../api/action/action.model','MailTransferReport','../config/config.service','../api/voiceMail/voiceMail.model','Items','../api/intZohoAccount/intZohoAccount.model','OpenchannelMessage','../api/voiceMusicOnHold/voiceMusicOnHold.model','../api/smsQueue/smsQueue.model','UserChatQueue','Interactions','ChanSpyId','fax_interaction_has_tags','../api/analyticMetric/analyticMetric.model','UserVoiceQueueRt','user_has_square_projects','WhatsappQueueReport','UserFaxQueue','../api/license/license.model','MemberReport','Plugin','../api/cmHopper/cmHopper.model','determine','ChatQueue','../api/intFreshsalesAccount/intFreshsalesAccount.model','../api/cloudProvider/cloudProvider.model','../api/user/user.model','FaxAccountId','TrunkBackup','VoicePrefixes','Owner','../api/intVtigerField/intVtigerField.model','FaxInteraction','Extensions','TemplateId','../api/smsInteraction/smsInteraction.model','Attachment','IntervalId','MailAccounts','Fields','TrunkId','Interaction','Website','hasMany','VoiceMailMessage','WhatsappInteractions','Lists','../api/mailInteraction/mailInteraction.model','ToFaxQueueId','ToMailQueueId','AttachmentId','sequelize','getConfigService','OpenchannelAccountId','belongsToMany','Sound','Automation','FieldId','Dynamics365Account','username','UserProfileSection','team_has_openchannel_queues','FromOpenchannelAccountId','../api/cmHopperFinal/cmHopperFinal.model','../api/tag/tag.model','VoiceAgentReport','MailServerIn','defaultsDeep','campaigns_has_cm_lists','AnalyticDefaultReport','Applications','Exntensions','SalesforceAccount','UserVoiceQueue','SquareReport','UserOpenchannelQueue','VtigerAccount','ChatQueueId','../api/jscriptyProject/jscriptyProject.model','cascade','Migration','../api/integrationReport/integrationReport.model','SquareDetailsReport','../api/reportAgentPreview/reportAgentPreview.model','../api/intServicenowField/intServicenowField.model','../api/userProfileSection/userProfileSection.model','DeskAccount','../api/cmHopperBlack/cmHopperBlack.model','../api/openchannelApplication/openchannelApplication.model','UserSmsQueue','mysql','team_has_whatsapp_queues','../api/intDeskAccount/intDeskAccount.model','OpenchannelInteraction','SquareRecording','../api/squareOdbc/squareOdbc.model','user_has_mail_accounts','CmList','JscriptyProject','../api/chatApplication/chatApplication.model','../api/intSugarcrmAccount/intSugarcrmAccount.model','user_has_openchannel_accounts','../api/intZendeskConfiguration/intZendeskConfiguration.model','TagId','VoiceMusicOnHold','../api/cannedAnswer/cannedAnswer.model','VoiceChanSpy','user_has_mail_interactions','UserProfile','MailInteractionId','VoiceQueuesRt','../api/voiceQueue/voiceQueue.model','ToAgent','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','../api/variable/variable.model','../api/mailServerOut/mailServerOut.model','../api/migration/migration.model','../api/userSmsQueue/userSmsQueue.model','jstz','ChatApplication','SmsInteractionId','OpenchannelInteractions','SubjectId','CannedAnswer','Variable','FaxAccount','../api/disposition/disposition.model','MailMessage','UserChatInteractions','SmsAccount','ReportAgentPreview','Schedule','WhatsappQueues','sequelizeHistory','../api/userProfile/userProfile.model','SquareMessage','OpenchannelAccount','../api/campaign/campaign.model','database','VoiceTransferReport','Subjects','../api/pause/pause.model','hasOne','../api/cmHopperHistory/cmHopperHistory.model','../api/voiceMailMessage/voiceMailMessage.model','mailboxuser','../api/whatsappQueue/whatsappQueue.model','SquareProjects','../api/userProfileResource/userProfileResource.model','HopperHistories','Attachments','MailQueue','../api/analyticTreeReport/analyticTreeReport.model','user_has_chat_interactions','userProfileId','../api/chatProactiveAction/chatProactiveAction.model'];(function(_0x174de1,_0x3a8457){const _0x20feb7=function(_0x44abf1){while(--_0x44abf1){_0x174de1['push'](_0x174de1['shift']());}};_0x20feb7(++_0x3a8457);}(a1021_0x3a84,0x1d8));const a1021_0x20fe=function(_0x174de1,_0x3a8457){_0x174de1=_0x174de1-0x0;let _0x20feb7=a1021_0x3a84[_0x174de1];return _0x20feb7;};const _0xa45690=a1021_0x20fe;'use strict';const config=require(_0xa45690('0x10b')),cs=require(_0xa45690('0x188'))[_0xa45690('0x1ba')](),Sequelize=require(_0xa45690('0x1b9')),_=require(_0xa45690('0xde')),jstz=require(_0xa45690('0x1fc')),timezone=jstz[_0xa45690('0x19c')](),DEFAULTS={'database':cs['mysqlDatabase'],'username':cs['mysqlUser'],'password':cs[_0xa45690('0x184')],'options':{'host':cs[_0xa45690('0x96')],'port':cs['dbPort'],'dialect':_0xa45690('0x1e0'),'dialectOptions':{'charset':_0xa45690('0xf6')},'logging':![],'timezone':timezone[_0xa45690('0xb5')](),'define':{'charset':'utf8','collate':_0xa45690('0xb6')}}};config[_0xa45690('0x1b9')]=_[_0xa45690('0x1c9')](config['sequelize'],DEFAULTS),config[_0xa45690('0xe')]=_[_0xa45690('0x1c9')](config[_0xa45690('0xe')],DEFAULTS);const db={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0xa45690('0x1b9')][_0xa45690('0x13')],config[_0xa45690('0x1b9')][_0xa45690('0x1c1')],config['sequelize'][_0xa45690('0x15f')],config['sequelize'][_0xa45690('0x175')])},dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0xa45690('0xe')][_0xa45690('0x13')],config['sequelizeHistory'][_0xa45690('0x1c1')],config['sequelizeHistory']['password'],config['sequelizeHistory'][_0xa45690('0x175')])};db[_0xa45690('0xba')]=require(_0xa45690('0x1a0'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1f0')]=require('../api/voiceChanSpy/voiceChanSpy.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0xcb')]=require(_0xa45690('0x149'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x138')]=require(_0xa45690('0x16c'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1ee')]=require(_0xa45690('0x18d'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xf7')]=require(_0xa45690('0x1f5'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db['VoiceRecording']=require('../api/voiceRecording/voiceRecording.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xee')]=require(_0xa45690('0x67'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xbe')]=require(_0xa45690('0x189'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['VoiceMailMessage']=require(_0xa45690('0x19'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['VoiceCallReport']=require('../api/voiceCallReport/voiceCallReport.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['VoiceDialReport']=require(_0xa45690('0xd3'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x1c7')]=require(_0xa45690('0x57'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db['VoiceQueueReport']=require('../api/voiceQueueReport/voiceQueueReport.model')(db['sequelize'],Sequelize['DataTypes']),db[_0xa45690('0x199')]=require(_0xa45690('0x119'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['Trunk']=require('../api/trunk/trunk.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x14')]=require(_0xa45690('0x117'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x194')]=require(_0xa45690('0x3a'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1cf')]=require(_0xa45690('0x16d'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['UserChatQueue']=require(_0xa45690('0x165'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x145')]=require(_0xa45690('0x93'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa45690('0x197')]=require(_0xa45690('0xda'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1df')]=require(_0xa45690('0x1fb'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x1d1')]=require(_0xa45690('0x26'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x110')]=require(_0xa45690('0x140'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x1c8')]=require('../api/mailServerIn/mailServerIn.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x40')]=require(_0xa45690('0x1f9'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa45690('0xac')]=require(_0xa45690('0x116'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x20')]=require(_0xa45690('0x34'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x12f')]=require(_0xa45690('0x129'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xc8')]=require(_0xa45690('0x1b5'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db['MailMessage']=require(_0xa45690('0x10c'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x4c')]=require('../api/mailApplication/mailApplication.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x30')]=require(_0xa45690('0xad'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['Dashboard']=require(_0xa45690('0x122'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x160')]=require(_0xa45690('0x105'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x6')]=require(_0xa45690('0x182'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0xbf')]=require('../api/faxApplication/faxApplication.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1a6')]=require(_0xa45690('0x8c'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x3b')]=require(_0xa45690('0xdf'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x3e')]=require(_0xa45690('0x120'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['FaxQueueReport']=require(_0xa45690('0x14f'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['SmsAccount']=require(_0xa45690('0x101'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x130')]=require(_0xa45690('0x15d'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x15a')]=require(_0xa45690('0x1a9'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['SmsMessage']=require(_0xa45690('0x5e'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa45690('0x106')]=require(_0xa45690('0x18e'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x11')]=require('../api/openchannelAccount/openchannelAccount.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x12e')]=require(_0xa45690('0x1de'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1e3')]=require(_0xa45690('0x44'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x18c')]=require(_0xa45690('0x75'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xc5')]=require(_0xa45690('0x5b'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x66')]=require(_0xa45690('0x169'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x6d')]=require(_0xa45690('0x164'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x0')]=require(_0xa45690('0x1e9'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x12d')]=require(_0xa45690('0x27'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x10d')]=require('../api/chatMessage/chatMessage.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0xf5')]=require(_0xa45690('0x124'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['ChatQueue']=require(_0xa45690('0xb4'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xe2')]=require(_0xa45690('0x11e'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['ChatProactiveAction']=require(_0xa45690('0x24'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x52')]=require('../api/cmCompany/cmCompany.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x76')]=require(_0xa45690('0xe9'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x168')]=require(_0xa45690('0x19b'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x127')]=require(_0xa45690('0x1dd'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xeb')]=require(_0xa45690('0x1c5'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa45690('0x17a')]=require(_0xa45690('0x18'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['ReportAgentPreview']=require(_0xa45690('0x1d9'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x108')]=require(_0xa45690('0xe6'))(db['sequelize'],Sequelize['DataTypes']),db['Action']=require(_0xa45690('0x186'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1be')]=require('../api/automation/automation.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x4')]=require(_0xa45690('0x1ef'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x16f')]=require(_0xa45690('0x7'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x15e')]=require('../api/condition/condition.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['Interval']=require(_0xa45690('0xc1'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x13a')]=require(_0xa45690('0x16'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['Cdr']=require(_0xa45690('0x177'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xf9')]=require(_0xa45690('0x77'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xc')]=require(_0xa45690('0x64'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1bd')]=require(_0xa45690('0x12c'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['Tag']=require(_0xa45690('0x1c6'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x171')]=require(_0xa45690('0xc7'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db['Trigger']=require(_0xa45690('0xec'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x5')]=require(_0xa45690('0x1f8'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x113')]=require('../api/integration/integration.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x154')]=require(_0xa45690('0x1d7'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0xcd')]=require(_0xa45690('0x8e'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1cb')]=require(_0xa45690('0x159'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x173')]=require(_0xa45690('0xe0'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['AnalyticMetric']=require(_0xa45690('0x193'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x13b')]=require(_0xa45690('0x83'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0xa1')]=require(_0xa45690('0x21'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db['SalesforceAccount']=require(_0xa45690('0x16e'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0xef')]=require(_0xa45690('0xbc'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xe4')]=require('../api/intSalesforceField/intSalesforceField.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['SugarcrmAccount']=require(_0xa45690('0x1ea'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['SugarcrmConfiguration']=require(_0xa45690('0x80'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['SugarcrmField']=require('../api/intSugarcrmField/intSugarcrmField.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x1dc')]=require(_0xa45690('0x1e2'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa45690('0x73')]=require(_0xa45690('0x7d'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['DeskField']=require(_0xa45690('0x13c'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xca')]=require(_0xa45690('0x18b'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xf2')]=require(_0xa45690('0x12b'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xea')]=require(_0xa45690('0xe5'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['ZendeskAccount']=require(_0xa45690('0x53'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['ZendeskConfiguration']=require(_0xa45690('0x1ec'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa45690('0x33')]=require('../api/intZendeskField/intZendeskField.model')(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x152')]=require(_0xa45690('0x35'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x7a')]=require(_0xa45690('0x1f7'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x5c')]=require(_0xa45690('0x48'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1d2')]=require('../api/intVtigerAccount/intVtigerAccount.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x143')]=require('../api/intVtigerConfiguration/intVtigerConfiguration.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xd4')]=require(_0xa45690('0x1a5'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x91')]=require('../api/intServicenowAccount/intServicenowAccount.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x65')]=require(_0xa45690('0xb7'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x136')]=require(_0xa45690('0x1da'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x1c0')]=require('../api/intDynamics365Account/intDynamics365Account.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x128')]=require(_0xa45690('0x54'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xb2')]=require('../api/intDynamics365Field/intDynamics365Field.model')(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x2b')]=require(_0xa45690('0x19e'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x123')]=require(_0xa45690('0x6f'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x4f')]=require(_0xa45690('0x17f'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x113')]=require(_0xa45690('0xf8'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['Network']=require(_0xa45690('0x2e'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x7c')]=require(_0xa45690('0x88'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['ChatInternalMessage']=require(_0xa45690('0x162'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x51')]=require('../api/jscriptyAnswerReport/jscriptyAnswerReport.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x185')]=require('../api/jscriptyQuestionReport/jscriptyQuestionReport.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['JscriptySessionReport']=require(_0xa45690('0xf4'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x14b')]=require('../api/smsQueueReport/smsQueueReport.model')(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1d0')]=require(_0xa45690('0x61'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1d8')]=require(_0xa45690('0x11c'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['JscriptyProject']=require(_0xa45690('0x1d4'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['Setting']=require(_0xa45690('0xc0'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['SquareOdbc']=require(_0xa45690('0x1e5'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['SquareProject']=require(_0xa45690('0x16b'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1e4')]=require(_0xa45690('0x109'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x10')]=require('../api/squareMessage/squareMessage.model')(db['sequelize'],Sequelize[_0xa45690('0x170')]),db['Team']=require('../api/team/team.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['License']=require(_0xa45690('0x198'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['Campaign']=require(_0xa45690('0x12'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1d6')]=require(_0xa45690('0x1fa'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1aa')]=require('../api/attachment/attachment.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x19a')]=require('../api/plugin/plugin.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x187')]=require(_0xa45690('0x150'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x9d')]=require('../api/chatTransferReport/chatTransferReport.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x132')]=require(_0xa45690('0x4a'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db['OpenchannelTransferReport']=require(_0xa45690('0xe3'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xc3')]=require('../api/smsTransferReport/smsTransferReport.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1e7')]=require('../api/cmList/cmList.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0xe1')]=require('../api/voicePrefix/voicePrefix.model')(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1f2')]=require(_0xa45690('0xf'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x1c2')]=require(_0xa45690('0x1db'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa45690('0x62')]=require(_0xa45690('0x1d'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0xae')]=require(_0xa45690('0x142'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x7f')]=require(_0xa45690('0x4b'))(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db[_0xa45690('0x17c')]=require(_0xa45690('0x14e'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x2d')]=require(_0xa45690('0x13d'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xd0')]=require('../api/whatsappMessage/whatsappMessage.model')(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x196')]=require(_0xa45690('0x55'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x137')]=require('../api/whatsappTransferReport/whatsappTransferReport.model')(db[_0xa45690('0x1b9')],Sequelize['DataTypes']),db['WhatsappQueue']=require(_0xa45690('0x1b'))(db[_0xa45690('0x1b9')],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0x10e')]=require(_0xa45690('0x19f'))(db['sequelize'],Sequelize[_0xa45690('0x170')]),db[_0xa45690('0xba')][_0xa45690('0x17')](db[_0xa45690('0xbe')],{'as':'VoiceMail','onDelete':'cascade','foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')][_0xa45690('0x1b1')](db['VoiceRecording'],{'as':_0xa45690('0xfb'),'foreignKey':_0xa45690('0x8b')}),db['User'][_0xa45690('0x1b1')](db['UserVoiceQueueRt'],{'as':_0xa45690('0x1f4'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')][_0xa45690('0x1b1')](db['VoiceExtension'],{'as':_0xa45690('0x1a7'),'onDelete':_0xa45690('0x1d5'),'hooks':!![]}),db[_0xa45690('0xba')][_0xa45690('0x1b1')](db['CmHopperFinal'],{'as':'HopperFinals','foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')][_0xa45690('0x1b1')](db[_0xa45690('0x17a')],{'as':_0xa45690('0xce'),'foreignKey':'UserId'}),db['User'][_0xa45690('0x1b1')](db['ReportAgentPreview'],{'as':_0xa45690('0xb'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')][_0xa45690('0x1b1')](db['OpenchannelInteraction'],{'as':'OpenchannelInteractions','foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')]['hasMany'](db[_0xa45690('0x12d')],{'as':_0xa45690('0x4e'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')]['hasMany'](db[_0xa45690('0x15a')],{'as':_0xa45690('0x10a'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')]['hasMany'](db[_0xa45690('0x1a6')],{'as':_0xa45690('0x72'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')][_0xa45690('0x1b1')](db[_0xa45690('0xc8')],{'as':_0xa45690('0x135'),'foreignKey':_0xa45690('0x8b')}),db['User'][_0xa45690('0x1b1')](db['WhatsappInteraction'],{'as':_0xa45690('0x1b3'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xba')][_0xa45690('0x1b1')](db[_0xa45690('0xae')],{'as':_0xa45690('0x60'),'foreignKey':_0xa45690('0x87')}),db[_0xa45690('0xba')][_0xa45690('0xf3')](db['UserProfile'],{'as':_0xa45690('0x1f2'),'foreignKey':_0xa45690('0x23'),'onDelete':'restrict'}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0xe2')],{'as':'Groups','through':_0xa45690('0xdd')}),db['User'][_0xa45690('0x1bc')](db[_0xa45690('0x76')],{'as':_0xa45690('0xd7'),'through':_0xa45690('0x139')}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db['CmList'],{'as':_0xa45690('0x1b4'),'through':_0xa45690('0x2f')}),db['User'][_0xa45690('0x1bc')](db[_0xa45690('0x89')],{'through':_0xa45690('0x147')}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0xc8')],{'as':_0xa45690('0x29'),'through':_0xa45690('0x1f1')}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0x12d')],{'as':_0xa45690('0x9'),'through':'user_has_chat_interactions'}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0x1a6')],{'as':'UserFaxInteractions','through':_0xa45690('0x14c')}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0x15a')],{'as':'UserSmsInteractions','through':_0xa45690('0x166')}),db['User'][_0xa45690('0x1bc')](db[_0xa45690('0x1e3')],{'as':_0xa45690('0x158'),'through':'user_has_openchannel_interactions'}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db['WhatsappInteraction'],{'as':_0xa45690('0x49'),'through':_0xa45690('0xd1')}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0xf7')],{'as':'VoiceQueues','through':'UserVoiceQueue','required':![]}),db['User'][_0xa45690('0x1bc')](db[_0xa45690('0x20')],{'as':_0xa45690('0x90'),'through':_0xa45690('0x145'),'required':![]}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db['ChatQueue'],{'as':_0xa45690('0xcc'),'through':_0xa45690('0x18f'),'required':![],'hooks':!![]}),db['User'][_0xa45690('0x1bc')](db[_0xa45690('0x3e')],{'as':_0xa45690('0x100'),'through':_0xa45690('0x197'),'required':![]}),db[_0xa45690('0xba')]['belongsToMany'](db['SmsQueue'],{'as':_0xa45690('0x28'),'through':_0xa45690('0x1df'),'required':![]}),db[_0xa45690('0xba')]['belongsToMany'](db[_0xa45690('0xc5')],{'as':'OpenchannelQueues','through':_0xa45690('0x1d1'),'required':![]}),db['User'][_0xa45690('0x1bc')](db[_0xa45690('0x32')],{'as':_0xa45690('0xd'),'through':_0xa45690('0x110'),'required':![]}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0x1e7')],{'through':_0xa45690('0x2f')}),db['User'][_0xa45690('0x1bc')](db[_0xa45690('0xe1')],{'as':_0xa45690('0x1a3'),'through':_0xa45690('0x10f'),'required':![]}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0x66')],{'as':_0xa45690('0x36'),'through':'user_has_chat_websites'}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0x6')],{'as':'FaxAccounts','through':'user_has_fax_accounts'}),db['User']['belongsToMany'](db[_0xa45690('0xac')],{'as':_0xa45690('0x1ac'),'through':'user_has_mail_accounts'}),db['User'][_0xa45690('0x1bc')](db[_0xa45690('0x11')],{'as':_0xa45690('0x155'),'through':'user_has_openchannel_accounts'}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0xa')],{'as':_0xa45690('0x7e'),'through':'user_has_sms_accounts'}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0x7f')],{'as':'WhatsappAccounts','through':_0xa45690('0xa2')}),db[_0xa45690('0xba')][_0xa45690('0x1bc')](db[_0xa45690('0xc2')],{'as':_0xa45690('0x1c'),'through':_0xa45690('0x195')}),db['VoiceChanSpy'][_0xa45690('0x1b1')](db['VoiceExtension'],{'as':_0xa45690('0xcf'),'onDelete':'cascade','foreignKey':_0xa45690('0x191')}),db[_0xa45690('0xcb')][_0xa45690('0x1b1')](db['VoiceExtension'],{'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x138')]['hasMany'](db[_0xa45690('0x138')],{'as':_0xa45690('0x1cc'),'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x1ee')][_0xa45690('0x1bc')](db[_0xa45690('0x1bd')],{'as':_0xa45690('0x167'),'through':_0xa45690('0x11d')}),db[_0xa45690('0xf7')][_0xa45690('0x1b1')](db[_0xa45690('0x194')],{'as':_0xa45690('0x151'),'foreignKey':'VoiceQueueId'}),db[_0xa45690('0xf7')][_0xa45690('0x1b1')](db[_0xa45690('0x168')],{'as':_0xa45690('0x178'),'foreignKey':'VoiceQueueId'}),db['VoiceQueue']['hasMany'](db[_0xa45690('0xeb')],{'as':_0xa45690('0x3f'),'foreignKey':'VoiceQueueId'}),db[_0xa45690('0xf7')][_0xa45690('0x1b1')](db[_0xa45690('0x17a')],{'as':'HopperHistories','foreignKey':_0xa45690('0x7b')}),db[_0xa45690('0xf7')][_0xa45690('0x1b1')](db['ReportAgentPreview'],{'as':_0xa45690('0xb'),'foreignKey':'VoiceQueueId'}),db[_0xa45690('0xf7')]['hasMany'](db['CmHopperBlack'],{'as':_0xa45690('0x63'),'foreignKey':_0xa45690('0x7b')}),db[_0xa45690('0xf7')][_0xa45690('0x1b1')](db['JscriptySessionReport'],{'as':_0xa45690('0x3d'),'foreignKey':_0xa45690('0x7b')}),db[_0xa45690('0xf7')][_0xa45690('0xf3')](db['Trunk'],{'as':'Trunk','foreignKey':_0xa45690('0x1ae')}),db['VoiceQueue'][_0xa45690('0xf3')](db[_0xa45690('0x163')],{'as':_0xa45690('0x1a2'),'foreignKey':'TrunkBackupId'}),db[_0xa45690('0xf7')]['belongsTo'](db[_0xa45690('0xdb')],{'as':_0xa45690('0xdb'),'foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0xf7')][_0xa45690('0xf3')](db[_0xa45690('0x13a')],{'as':_0xa45690('0x9c'),'foreignKey':_0xa45690('0x180')}),db[_0xa45690('0xf7')][_0xa45690('0x1bc')](db[_0xa45690('0x1e7')],{'as':'Lists','through':'voice_queues_has_cm_lists'}),db[_0xa45690('0xf7')]['belongsToMany'](db[_0xa45690('0xba')],{'as':'Agents','through':_0xa45690('0x1cf')}),db[_0xa45690('0xf7')][_0xa45690('0x1bc')](db[_0xa45690('0x89')],{'as':'Teams','through':_0xa45690('0x9f')}),db['VoiceQueue'][_0xa45690('0x1bc')](db['CmList'],{'as':_0xa45690('0xa9'),'through':_0xa45690('0xa0')}),db['VoiceRecording']['belongsTo'](db[_0xa45690('0xba')],{'as':_0xa45690('0xba'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xee')][_0xa45690('0xf3')](db['User'],{'as':_0xa45690('0xba'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0xbe')][_0xa45690('0x1b1')](db[_0xa45690('0x1b2')],{'as':_0xa45690('0x125'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x1a'),'sourceKey':_0xa45690('0x15b')}),db[_0xa45690('0x1b2')][_0xa45690('0xf3')](db[_0xa45690('0xbe')],{'foreignKey':'mailboxuser','targetKey':_0xa45690('0x15b')}),db[_0xa45690('0x5a')][_0xa45690('0x1b1')](db['VoiceQueueReport'],{'as':'QueueCalls','foreignKey':_0xa45690('0x126'),'constraints':![]}),db['VoiceCallReport'][_0xa45690('0x1b1')](db['VoiceAgentReport'],{'as':_0xa45690('0x45'),'foreignKey':_0xa45690('0x126'),'constraints':![]}),db[_0xa45690('0x5a')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'as':_0xa45690('0xba'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0x5a')]['belongsTo'](db[_0xa45690('0x76')],{'as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71')}),db['MailAccount'][_0xa45690('0x17')](db[_0xa45690('0x1c8')],{'as':_0xa45690('0xd5'),'foreignKey':_0xa45690('0x114'),'onDelete':_0xa45690('0x1d5')}),db['MailAccount'][_0xa45690('0x17')](db[_0xa45690('0x40')],{'as':'Smtp','foreignKey':_0xa45690('0x114'),'onDelete':'cascade'}),db[_0xa45690('0xac')][_0xa45690('0x1b1')](db[_0xa45690('0x16f')],{'as':'Dispositions','foreignKey':'MailAccountId'}),db[_0xa45690('0xac')][_0xa45690('0x1b1')](db['CannedAnswer'],{'as':_0xa45690('0x144'),'foreignKey':_0xa45690('0x114')}),db[_0xa45690('0xac')]['hasMany'](db[_0xa45690('0x8')],{'as':_0xa45690('0x125'),'foreignKey':'MailAccountId'}),db[_0xa45690('0xac')]['hasMany'](db[_0xa45690('0xc8')],{'as':_0xa45690('0x190')}),db['MailAccount'][_0xa45690('0x1b1')](db[_0xa45690('0x4c')],{'as':_0xa45690('0x1cc')}),db[_0xa45690('0xac')]['belongsTo'](db[_0xa45690('0x1e7')],{'as':'List','foreignKey':_0xa45690('0x17d')}),db['MailAccount'][_0xa45690('0xf3')](db[_0xa45690('0x171')],{'as':'Template','foreignKey':_0xa45690('0x1a8')}),db[_0xa45690('0xac')]['belongsTo'](db[_0xa45690('0x13a')],{'as':_0xa45690('0x9c'),'foreignKey':_0xa45690('0x180')}),db['MailAccount']['belongsToMany'](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0x1e6')}),db[_0xa45690('0x20')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0x145')}),db[_0xa45690('0x20')]['belongsToMany'](db[_0xa45690('0x89')],{'through':'team_has_mail_queues','as':_0xa45690('0x8d')}),db[_0xa45690('0xc8')][_0xa45690('0x1b1')](db[_0xa45690('0x8')],{'as':_0xa45690('0x125'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x1f3')}),db[_0xa45690('0xc8')][_0xa45690('0xf3')](db[_0xa45690('0xac')],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0x114')}),db['MailInteraction'][_0xa45690('0xf3')](db[_0xa45690('0x76')],{'as':_0xa45690('0x104'),'foreignKey':'ContactId'}),db[_0xa45690('0xc8')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'as':_0xa45690('0x1a4'),'foreignKey':'UserId'}),db['MailInteraction']['belongsToMany'](db[_0xa45690('0x14a')],{'through':_0xa45690('0x37'),'as':_0xa45690('0xd8')}),db[_0xa45690('0xc8')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':'mail_interaction_has_tags','as':_0xa45690('0x8f')}),db[_0xa45690('0xc8')][_0xa45690('0x1bc')](db['User'],{'as':_0xa45690('0x13f'),'through':_0xa45690('0x1f1'),'foreignKey':_0xa45690('0x1f3')}),db['MailMessage'][_0xa45690('0x1b1')](db[_0xa45690('0x1aa')],{'as':_0xa45690('0x1f'),'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x8')][_0xa45690('0xf3')](db['User'],{'as':_0xa45690('0xba')}),db['MailMessage'][_0xa45690('0xf3')](db['CmContact'],{'onDelete':_0xa45690('0x1d5'),'as':_0xa45690('0x104')}),db[_0xa45690('0x8')][_0xa45690('0xf3')](db[_0xa45690('0xc8')],{'as':_0xa45690('0x1af'),'foreignKey':_0xa45690('0x1f3')}),db['MailMessage'][_0xa45690('0xf3')](db['MailAccount'],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0x114')}),db[_0xa45690('0x4c')][_0xa45690('0xf3')](db['User'],{'onDelete':'restrict'}),db['MailApplication'][_0xa45690('0xf3')](db[_0xa45690('0x20')],{'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x4c')][_0xa45690('0xf3')](db[_0xa45690('0xac')],{'onDelete':_0xa45690('0x118')}),db['MailApplication']['belongsTo'](db[_0xa45690('0xdb')],{'onDelete':_0xa45690('0x118'),'foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0x4c')][_0xa45690('0xf3')](db['Tag'],{'onDelete':_0xa45690('0x118'),'foreignKey':_0xa45690('0x1ed')}),db[_0xa45690('0x30')]['belongsTo'](db[_0xa45690('0xac')],{}),db[_0xa45690('0x30')]['belongsTo'](db[_0xa45690('0x1e7')],{'as':_0xa45690('0x115'),'foreignKey':_0xa45690('0x17d')}),db[_0xa45690('0x30')][_0xa45690('0xf3')](db['CmContact'],{'as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71')}),db['MailQueueReport'][_0xa45690('0xf3')](db[_0xa45690('0xc8')],{}),db[_0xa45690('0x30')][_0xa45690('0xf3')](db[_0xa45690('0x8')],{}),db[_0xa45690('0x30')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{}),db[_0xa45690('0x30')]['belongsTo'](db['MailQueue'],{}),db[_0xa45690('0x6b')][_0xa45690('0x1b1')](db[_0xa45690('0x160')],{'as':_0xa45690('0x18a'),'onDelete':'cascade'}),db[_0xa45690('0x6')][_0xa45690('0x1b1')](db[_0xa45690('0x16f')],{'as':_0xa45690('0x46'),'foreignKey':_0xa45690('0x1a1')}),db[_0xa45690('0x6')][_0xa45690('0x1b1')](db['CannedAnswer'],{'as':_0xa45690('0x144'),'foreignKey':_0xa45690('0x1a1')}),db[_0xa45690('0x6')]['hasMany'](db[_0xa45690('0x1a6')],{'as':_0xa45690('0x190')}),db[_0xa45690('0x6')][_0xa45690('0x1b1')](db[_0xa45690('0xbf')],{'as':_0xa45690('0x1cc')}),db[_0xa45690('0x6')][_0xa45690('0x1b1')](db[_0xa45690('0x138')],{'as':_0xa45690('0x1cd'),'onDelete':_0xa45690('0x1d5')}),db['FaxAccount'][_0xa45690('0x1b1')](db[_0xa45690('0x3b')],{'as':_0xa45690('0x125')}),db[_0xa45690('0x6')][_0xa45690('0xf3')](db['Trunk'],{'as':_0xa45690('0x163')}),db[_0xa45690('0x6')][_0xa45690('0xf3')](db[_0xa45690('0x1e7')],{'as':_0xa45690('0x115'),'foreignKey':_0xa45690('0x17d')}),db['FaxAccount'][_0xa45690('0xf3')](db[_0xa45690('0x13a')],{'as':_0xa45690('0x9c'),'foreignKey':'mandatoryDispositionPauseId'}),db[_0xa45690('0x6')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0x181')}),db['FaxApplication'][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'onDelete':_0xa45690('0x118')}),db['FaxApplication'][_0xa45690('0xf3')](db[_0xa45690('0x3e')],{'onDelete':'restrict'}),db['FaxApplication'][_0xa45690('0xf3')](db['FaxAccount'],{'onDelete':_0xa45690('0x118')}),db['FaxApplication'][_0xa45690('0xf3')](db['Tag'],{'onDelete':_0xa45690('0x118'),'foreignKey':_0xa45690('0x1ed')}),db[_0xa45690('0x1a6')][_0xa45690('0x1b1')](db[_0xa45690('0x3b')],{'as':'Messages','onDelete':_0xa45690('0x1d5'),'foreignKey':'FaxInteractionId'}),db[_0xa45690('0x1a6')]['belongsTo'](db[_0xa45690('0x6')],{'as':_0xa45690('0x121'),'foreignKey':'FaxAccountId'}),db[_0xa45690('0x1a6')]['belongsTo'](db[_0xa45690('0x76')],{'as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x1a6')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'as':'Owner','foreignKey':'UserId'}),db[_0xa45690('0x1a6')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0x192'),'as':_0xa45690('0xd8')}),db[_0xa45690('0x1a6')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0x192'),'as':_0xa45690('0x8f')}),db[_0xa45690('0x1a6')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':'Users','through':'user_has_fax_interactions','foreignKey':_0xa45690('0xb0')}),db[_0xa45690('0x3b')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'onDelete':'cascade','as':_0xa45690('0xba')}),db['FaxMessage'][_0xa45690('0xf3')](db['FaxInteraction'],{'as':_0xa45690('0x1af'),'foreignKey':_0xa45690('0xb0')}),db['FaxMessage']['belongsTo'](db['CmContact'],{'onDelete':_0xa45690('0x1d5'),'as':'Contact'}),db[_0xa45690('0x3b')][_0xa45690('0xf3')](db[_0xa45690('0x1aa')],{'as':'Attachment','foreignKey':_0xa45690('0x1b8')}),db[_0xa45690('0x3b')]['belongsTo'](db[_0xa45690('0x6')],{'as':_0xa45690('0x121'),'foreignKey':'FaxAccountId'}),db[_0xa45690('0x3e')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':'Agents','through':'UserFaxQueue'}),db[_0xa45690('0x3e')][_0xa45690('0x1bc')](db[_0xa45690('0x89')],{'through':'team_has_fax_queues','as':'Teams'}),db[_0xa45690('0x47')][_0xa45690('0xf3')](db['FaxAccount'],{}),db[_0xa45690('0x47')][_0xa45690('0xf3')](db['CmList'],{'as':'List','foreignKey':'ListId'}),db[_0xa45690('0x47')][_0xa45690('0xf3')](db['CmContact'],{'as':'Contact','foreignKey':_0xa45690('0x71')}),db['FaxQueueReport'][_0xa45690('0xf3')](db['FaxInteraction'],{}),db[_0xa45690('0x47')][_0xa45690('0xf3')](db[_0xa45690('0x3b')],{}),db[_0xa45690('0x47')][_0xa45690('0xf3')](db['User'],{}),db[_0xa45690('0x47')][_0xa45690('0xf3')](db['FaxQueue'],{}),db['SmsAccount']['hasMany'](db[_0xa45690('0x16f')],{'as':_0xa45690('0x46'),'foreignKey':_0xa45690('0xd2')}),db[_0xa45690('0xa')]['hasMany'](db[_0xa45690('0x4')],{'as':_0xa45690('0x144'),'foreignKey':_0xa45690('0xd2')}),db[_0xa45690('0xa')][_0xa45690('0x1b1')](db[_0xa45690('0x39')],{'as':_0xa45690('0x125'),'foreignKey':_0xa45690('0xd2')}),db['SmsAccount']['hasMany'](db['SmsInteraction'],{'as':_0xa45690('0x190')}),db[_0xa45690('0xa')]['hasMany'](db[_0xa45690('0x130')],{'as':'Applications'}),db[_0xa45690('0xa')][_0xa45690('0xf3')](db[_0xa45690('0x1e7')],{'as':_0xa45690('0x115'),'foreignKey':_0xa45690('0x17d')}),db[_0xa45690('0xa')][_0xa45690('0xf3')](db['Pause'],{'as':_0xa45690('0x9c'),'foreignKey':'mandatoryDispositionPauseId'}),db[_0xa45690('0xa')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0xd6')}),db['SmsApplication'][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'onDelete':_0xa45690('0x118')}),db['SmsApplication'][_0xa45690('0xf3')](db[_0xa45690('0x106')],{'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x130')][_0xa45690('0xf3')](db[_0xa45690('0xa')],{'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x130')][_0xa45690('0xf3')](db['Interval'],{'onDelete':'restrict','foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0x130')]['belongsTo'](db[_0xa45690('0x14a')],{'onDelete':'restrict','foreignKey':'TagId'}),db['SmsInteraction']['hasMany'](db['SmsMessage'],{'as':_0xa45690('0x125'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x1')}),db[_0xa45690('0x15a')][_0xa45690('0xf3')](db[_0xa45690('0xa')],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0xd2')}),db[_0xa45690('0x15a')][_0xa45690('0xf3')](db['CmContact'],{'as':'Contact','foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x15a')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'as':'Owner','foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0x15a')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0x70'),'as':_0xa45690('0xd8')}),db['SmsInteraction'][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0x70'),'as':_0xa45690('0x8f')}),db['SmsInteraction']['belongsToMany'](db['User'],{'as':'Users','through':_0xa45690('0x166'),'foreignKey':'SmsInteractionId'}),db[_0xa45690('0x39')]['belongsTo'](db['User'],{'as':_0xa45690('0xba')}),db[_0xa45690('0x39')][_0xa45690('0xf3')](db[_0xa45690('0x76')],{'onDelete':_0xa45690('0x1d5'),'as':_0xa45690('0x104')}),db[_0xa45690('0x39')][_0xa45690('0xf3')](db[_0xa45690('0x15a')],{'onDelete':_0xa45690('0x1d5'),'as':'Interaction','foreignKey':'SmsInteractionId'}),db['SmsMessage'][_0xa45690('0xf3')](db[_0xa45690('0xa')],{'as':'Account','foreignKey':_0xa45690('0xd2')}),db[_0xa45690('0x106')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0x1df'),'foreignKey':_0xa45690('0x84')}),db[_0xa45690('0x106')][_0xa45690('0x1bc')](db['Team'],{'through':_0xa45690('0x42'),'as':_0xa45690('0x8d')}),db[_0xa45690('0x11')][_0xa45690('0x1b1')](db[_0xa45690('0x16f')],{'as':_0xa45690('0x46'),'foreignKey':_0xa45690('0x1bb')}),db[_0xa45690('0x11')]['hasMany'](db[_0xa45690('0x4')],{'as':_0xa45690('0x144'),'foreignKey':_0xa45690('0x1bb')}),db[_0xa45690('0x11')]['hasMany'](db[_0xa45690('0x1e3')],{'as':'Interactions','foreignKey':_0xa45690('0x1bb')}),db[_0xa45690('0x11')]['hasMany'](db[_0xa45690('0x18c')],{'as':_0xa45690('0x125'),'foreignKey':'OpenchannelAccountId'}),db['OpenchannelAccount'][_0xa45690('0x1b1')](db[_0xa45690('0x12e')],{'as':_0xa45690('0x1cc'),'foreignKey':_0xa45690('0x1bb')}),db[_0xa45690('0x11')]['belongsTo'](db[_0xa45690('0x1e7')],{'as':_0xa45690('0x115'),'foreignKey':'ListId'}),db[_0xa45690('0x11')][_0xa45690('0xf3')](db[_0xa45690('0x13a')],{'as':_0xa45690('0x9c'),'foreignKey':'mandatoryDispositionPauseId'}),db['OpenchannelAccount'][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0x1eb')}),db[_0xa45690('0x12e')]['belongsTo'](db[_0xa45690('0xba')],{'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x12e')][_0xa45690('0xf3')](db['OpenchannelQueue'],{'onDelete':_0xa45690('0x118'),'foreignKey':_0xa45690('0x68')}),db[_0xa45690('0x12e')]['belongsTo'](db['OpenchannelAccount'],{'onDelete':_0xa45690('0x118'),'foreignKey':'OpenchannelAccountId'}),db['OpenchannelApplication']['belongsTo'](db[_0xa45690('0xdb')],{'onDelete':_0xa45690('0x118'),'foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0x12e')][_0xa45690('0xf3')](db[_0xa45690('0x14a')],{'onDelete':_0xa45690('0x118'),'foreignKey':_0xa45690('0x1ed')}),db[_0xa45690('0x1e3')]['hasMany'](db[_0xa45690('0x18c')],{'as':_0xa45690('0x125'),'onDelete':_0xa45690('0x1d5'),'foreignKey':'OpenchannelInteractionId'}),db[_0xa45690('0x1e3')][_0xa45690('0xf3')](db[_0xa45690('0x11')],{'as':'Account','foreignKey':_0xa45690('0x1bb')}),db['OpenchannelInteraction'][_0xa45690('0xf3')](db['CmContact'],{'as':_0xa45690('0x104'),'foreignKey':'ContactId'}),db['OpenchannelInteraction'][_0xa45690('0xf3')](db['User'],{'as':_0xa45690('0x1a4'),'foreignKey':_0xa45690('0x8b')}),db[_0xa45690('0x1e3')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0xa7'),'as':_0xa45690('0xd8')}),db['OpenchannelInteraction'][_0xa45690('0x1bc')](db['Tag'],{'through':_0xa45690('0xa7'),'as':_0xa45690('0x8f')}),db[_0xa45690('0x1e3')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x13f'),'through':_0xa45690('0x174'),'foreignKey':_0xa45690('0x176')}),db['OpenchannelMessage']['belongsTo'](db[_0xa45690('0xba')],{'onDelete':_0xa45690('0x1d5'),'as':_0xa45690('0xba')}),db[_0xa45690('0x18c')][_0xa45690('0xf3')](db['CmContact'],{'onDelete':'cascade','as':_0xa45690('0x104')}),db[_0xa45690('0x18c')]['belongsTo'](db['OpenchannelInteraction'],{'onDelete':_0xa45690('0x1d5'),'as':_0xa45690('0x1af'),'foreignKey':_0xa45690('0x176')}),db[_0xa45690('0x18c')][_0xa45690('0xf3')](db[_0xa45690('0x1aa')],{'as':_0xa45690('0x1aa'),'foreignKey':_0xa45690('0x1b8')}),db['OpenchannelMessage']['belongsTo'](db[_0xa45690('0x11')],{'as':'Account','foreignKey':_0xa45690('0x1bb')}),db[_0xa45690('0xc5')]['belongsToMany'](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':'UserOpenchannelQueue','foreignKey':_0xa45690('0x68')}),db[_0xa45690('0xc5')][_0xa45690('0x1bc')](db['Team'],{'through':_0xa45690('0x1c3'),'as':_0xa45690('0x8d')}),db[_0xa45690('0x66')][_0xa45690('0x1b1')](db[_0xa45690('0x16f')],{'as':'Dispositions','foreignKey':'ChatWebsiteId'}),db['ChatWebsite']['hasMany'](db[_0xa45690('0x4')],{'as':_0xa45690('0x144'),'foreignKey':_0xa45690('0xc4')}),db[_0xa45690('0x66')][_0xa45690('0x1b1')](db[_0xa45690('0xb8')],{'as':'ProactiveActions'}),db[_0xa45690('0x66')][_0xa45690('0x1b1')](db[_0xa45690('0x12d')],{'as':_0xa45690('0x190')}),db['ChatWebsite'][_0xa45690('0x1b1')](db[_0xa45690('0x0')],{'as':'Applications'}),db[_0xa45690('0x66')][_0xa45690('0x1b1')](db[_0xa45690('0x10d')],{'as':'Messages'}),db[_0xa45690('0x66')][_0xa45690('0xf3')](db[_0xa45690('0x1e7')],{'as':'List','foreignKey':_0xa45690('0x17d')}),db['ChatWebsite'][_0xa45690('0xf3')](db['Interval'],{'as':_0xa45690('0xdb'),'foreignKey':'IntervalId'}),db[_0xa45690('0x66')][_0xa45690('0xf3')](db[_0xa45690('0x13a')],{'as':'mandatoryDispositionPause','foreignKey':_0xa45690('0x180')}),db[_0xa45690('0x66')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0x107')}),db[_0xa45690('0x6d')]['belongsTo'](db[_0xa45690('0x11')],{}),db[_0xa45690('0x6d')]['belongsTo'](db[_0xa45690('0x1e7')],{'as':'List','foreignKey':_0xa45690('0x17d')}),db[_0xa45690('0x6d')][_0xa45690('0xf3')](db['CmContact'],{'as':_0xa45690('0x104'),'foreignKey':'ContactId'}),db[_0xa45690('0x6d')]['belongsTo'](db[_0xa45690('0x1e3')],{}),db[_0xa45690('0x6d')][_0xa45690('0xf3')](db['OpenchannelMessage'],{}),db[_0xa45690('0x6d')]['belongsTo'](db['User'],{}),db[_0xa45690('0x6d')]['belongsTo'](db[_0xa45690('0xc5')],{}),db[_0xa45690('0x0')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'as':_0xa45690('0x12a'),'foreignKey':_0xa45690('0x8b'),'onDelete':_0xa45690('0x118')}),db['ChatApplication'][_0xa45690('0xf3')](db[_0xa45690('0x19d')],{'as':_0xa45690('0x43'),'foreignKey':_0xa45690('0x1d3'),'onDelete':_0xa45690('0x118')}),db['ChatApplication'][_0xa45690('0xf3')](db[_0xa45690('0x66')],{'as':_0xa45690('0x1b0'),'foreignKey':'ChatWebsiteId','onDelete':_0xa45690('0x118')}),db[_0xa45690('0x0')][_0xa45690('0xf3')](db[_0xa45690('0x14a')],{'onDelete':_0xa45690('0x118'),'foreignKey':_0xa45690('0x1ed')}),db[_0xa45690('0x12d')][_0xa45690('0x1b1')](db[_0xa45690('0x10d')],{'as':'Messages','onDelete':'cascade','foreignKey':'ChatInteractionId'}),db[_0xa45690('0x12d')]['belongsTo'](db[_0xa45690('0x66')],{'as':_0xa45690('0x121'),'foreignKey':'ChatWebsiteId'}),db['ChatInteraction']['belongsTo'](db[_0xa45690('0x76')],{'as':_0xa45690('0x104'),'foreignKey':'ContactId'}),db['ChatInteraction'][_0xa45690('0xf3')](db['User'],{'as':_0xa45690('0x1a4'),'foreignKey':_0xa45690('0x8b')}),db['ChatInteraction'][_0xa45690('0x1bc')](db['Tag'],{'through':_0xa45690('0x95'),'as':'Tags'}),db[_0xa45690('0x12d')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0x95'),'as':_0xa45690('0x8f')}),db[_0xa45690('0x12d')][_0xa45690('0x1bc')](db['User'],{'as':'Users','through':_0xa45690('0x22'),'foreignKey':_0xa45690('0xbd')}),db[_0xa45690('0x10d')][_0xa45690('0xf3')](db['User'],{'onDelete':_0xa45690('0x1d5'),'as':_0xa45690('0xba')}),db[_0xa45690('0x10d')]['belongsTo'](db['CmContact'],{'onDelete':'cascade','as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x10d')][_0xa45690('0xf3')](db[_0xa45690('0x12d')],{'onDelete':'cascade','as':_0xa45690('0x1af'),'foreignKey':_0xa45690('0xbd')}),db['ChatMessage'][_0xa45690('0xf3')](db[_0xa45690('0x1aa')],{'as':_0xa45690('0x1aa'),'foreignKey':_0xa45690('0x1b8')}),db[_0xa45690('0x10d')][_0xa45690('0xf3')](db['ChatWebsite'],{'as':'Account','foreignKey':_0xa45690('0xc4')}),db[_0xa45690('0xf5')][_0xa45690('0xf3')](db[_0xa45690('0x76')],{'onDelete':'cascade','as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0xf5')]['belongsTo'](db['ChatWebsite'],{'as':'Account','foreignKey':'ChatWebsiteId'}),db['ChatQueue'][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':'UserChatQueue','hooks':!![]}),db[_0xa45690('0x19d')][_0xa45690('0x1bc')](db[_0xa45690('0x89')],{'through':_0xa45690('0xaf'),'as':_0xa45690('0x8d')}),db[_0xa45690('0xe2')][_0xa45690('0x1b1')](db['ChatInternalMessage'],{'as':_0xa45690('0x125'),'foreignKey':_0xa45690('0x11a'),'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0xe2')]['belongsToMany'](db[_0xa45690('0xba')],{'as':'Members','through':_0xa45690('0xdd')}),db[_0xa45690('0xb8')][_0xa45690('0xf3')](db[_0xa45690('0x66')],{'as':_0xa45690('0x1b0'),'foreignKey':_0xa45690('0xc4')}),db['CmCompany']['hasMany'](db['CmContact'],{'as':_0xa45690('0xd7'),'foreignKey':_0xa45690('0xbb')}),db[_0xa45690('0x76')]['hasMany'](db[_0xa45690('0x168')],{'as':'Hoppers','foreignKey':'ContactId'}),db[_0xa45690('0x76')][_0xa45690('0x1b1')](db[_0xa45690('0xeb')],{'as':'HopperFinals','foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x76')][_0xa45690('0x1b1')](db[_0xa45690('0x17a')],{'as':_0xa45690('0x1e'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x76')][_0xa45690('0x1b1')](db[_0xa45690('0xb')],{'as':_0xa45690('0xb'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x76')][_0xa45690('0x1b1')](db[_0xa45690('0x172')],{'as':_0xa45690('0x3d'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x76')][_0xa45690('0x1b1')](db[_0xa45690('0x1e3')],{'as':_0xa45690('0x2'),'foreignKey':_0xa45690('0x71'),'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x76')][_0xa45690('0x1b1')](db[_0xa45690('0x12d')],{'as':_0xa45690('0x4e'),'foreignKey':_0xa45690('0x71'),'onDelete':'restrict'}),db[_0xa45690('0x76')]['hasMany'](db[_0xa45690('0x15a')],{'as':_0xa45690('0x10a'),'foreignKey':_0xa45690('0x71'),'onDelete':_0xa45690('0x118')}),db['CmContact'][_0xa45690('0x1b1')](db[_0xa45690('0x1a6')],{'as':'FaxInteractions','foreignKey':_0xa45690('0x71'),'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x76')][_0xa45690('0x1b1')](db[_0xa45690('0xc8')],{'as':_0xa45690('0x135'),'foreignKey':_0xa45690('0x71'),'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x76')]['belongsTo'](db['CmCompany'],{'as':'Company','foreignKey':_0xa45690('0xbb')}),db[_0xa45690('0x76')][_0xa45690('0xf3')](db[_0xa45690('0x1e7')],{'as':_0xa45690('0x115'),'foreignKey':_0xa45690('0x17d'),'onDelete':'cascade'}),db[_0xa45690('0x76')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':'Users','through':_0xa45690('0x139')}),db[_0xa45690('0x76')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'as':'Tags','through':_0xa45690('0xab')}),db[_0xa45690('0x76')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0xab'),'as':_0xa45690('0x8f')}),db[_0xa45690('0x168')]['belongsTo'](db[_0xa45690('0x76')],{'as':'Contact','foreignKey':'ContactId','onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x168')][_0xa45690('0xf3')](db[_0xa45690('0x1e7')],{'as':_0xa45690('0x115'),'foreignKey':'ListId','onDelete':_0xa45690('0x1d5')}),db['CmHopper'][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'as':_0xa45690('0x12a'),'foreignKey':_0xa45690('0x8b')}),db['CmHopper'][_0xa45690('0xf3')](db[_0xa45690('0xf7')],{'as':_0xa45690('0x43'),'foreignKey':_0xa45690('0x7b'),'onDelete':'cascade'}),db[_0xa45690('0x168')]['belongsTo'](db[_0xa45690('0xfa')],{'as':'Campaign','foreignKey':_0xa45690('0x141'),'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x168')]['belongsTo'](db['User'],{'as':_0xa45690('0x1a4'),'foreignKey':_0xa45690('0xe8')}),db[_0xa45690('0x127')]['belongsTo'](db[_0xa45690('0x76')],{'as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71'),'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x127')][_0xa45690('0xf3')](db[_0xa45690('0x1e7')],{'as':'List','foreignKey':_0xa45690('0x17d'),'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x127')][_0xa45690('0xf3')](db['VoiceQueue'],{'as':_0xa45690('0x43'),'foreignKey':_0xa45690('0x7b'),'onDelete':'cascade'}),db[_0xa45690('0x127')][_0xa45690('0xf3')](db[_0xa45690('0xfa')],{'as':_0xa45690('0xfa'),'foreignKey':'CampaignId','onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x1be')][_0xa45690('0x1b1')](db[_0xa45690('0x15e')],{'as':{'plural':_0xa45690('0x131'),'singular':_0xa45690('0x134')},'foreignKey':_0xa45690('0x5f'),'onDelete':_0xa45690('0x1d5'),'hooks':!![]}),db[_0xa45690('0x1be')]['hasMany'](db[_0xa45690('0x15e')],{'as':{'plural':_0xa45690('0x15c'),'singular':'OneAny'},'foreignKey':_0xa45690('0x11b'),'onDelete':_0xa45690('0x1d5'),'hooks':!![]}),db[_0xa45690('0x1be')][_0xa45690('0x1b1')](db[_0xa45690('0x41')],{'as':_0xa45690('0x103'),'foreignKey':_0xa45690('0x86'),'onDelete':_0xa45690('0x1d5'),'hooks':!![]}),db[_0xa45690('0x16f')]['hasMany'](db[_0xa45690('0x16f')],{'as':_0xa45690('0x46'),'foreignKey':_0xa45690('0x4d'),'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0xdb')][_0xa45690('0x1b1')](db[_0xa45690('0xdb')],{'as':_0xa45690('0xfc'),'foreignKey':_0xa45690('0x1ab'),'onDelete':_0xa45690('0x1d5'),'hooks':!![],'required':![]}),db[_0xa45690('0xdb')][_0xa45690('0x1b1')](db[_0xa45690('0x138')],{'as':'Extensions','foreignKey':'IntervalId','onDelete':_0xa45690('0x118')}),db[_0xa45690('0xdb')][_0xa45690('0x1b1')](db[_0xa45690('0x4c')],{'as':_0xa45690('0x9a'),'foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0xdb')][_0xa45690('0x1b1')](db[_0xa45690('0x0')],{'as':'ChatApplications','foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0xdb')][_0xa45690('0x1b1')](db['FaxApplication'],{'as':'FaxApplications','foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0xdb')]['hasMany'](db[_0xa45690('0x130')],{'as':_0xa45690('0x92'),'foreignKey':'IntervalId'}),db[_0xa45690('0xc')][_0xa45690('0xf3')](db[_0xa45690('0xac')],{}),db[_0xa45690('0xc')][_0xa45690('0xf3')](db[_0xa45690('0x1cb')],{'foreignKey':'DefaultReportId'}),db[_0xa45690('0xc')]['belongsTo'](db[_0xa45690('0xcd')],{'foreignKey':_0xa45690('0x56')}),db[_0xa45690('0x1bd')][_0xa45690('0x1bc')](db[_0xa45690('0x1ee')],{'as':'Mohs','through':_0xa45690('0x11d'),'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x14a')][_0xa45690('0x1bc')](db[_0xa45690('0x76')],{'through':_0xa45690('0xab')}),db[_0xa45690('0x14a')]['belongsToMany'](db[_0xa45690('0x12d')],{'through':_0xa45690('0x95')}),db[_0xa45690('0x14a')]['belongsToMany'](db[_0xa45690('0xc8')],{'through':'mail_interaction_has_tags'}),db[_0xa45690('0x14a')][_0xa45690('0x1bc')](db[_0xa45690('0x15a')],{'through':_0xa45690('0x70')}),db[_0xa45690('0x14a')][_0xa45690('0x1bc')](db[_0xa45690('0x1a6')],{'through':_0xa45690('0x192')}),db[_0xa45690('0x14a')][_0xa45690('0x1bc')](db[_0xa45690('0x1e3')],{'through':_0xa45690('0xa7')}),db[_0xa45690('0x14a')][_0xa45690('0x1bc')](db['WhatsappInteraction'],{'through':_0xa45690('0x156')}),db['Trigger']['hasMany'](db[_0xa45690('0x15e')],{'as':{'plural':'AllConditions','singular':_0xa45690('0x38')},'foreignKey':_0xa45690('0x3c'),'onDelete':_0xa45690('0x1d5'),'hooks':!![]}),db[_0xa45690('0x161')][_0xa45690('0x1b1')](db[_0xa45690('0x15e')],{'as':{'plural':_0xa45690('0x6c'),'singular':_0xa45690('0x94')},'foreignKey':_0xa45690('0x74'),'onDelete':_0xa45690('0x1d5'),'hooks':!![]}),db[_0xa45690('0x161')][_0xa45690('0x1b1')](db[_0xa45690('0x41')],{'as':_0xa45690('0x103'),'foreignKey':_0xa45690('0x112'),'onDelete':_0xa45690('0x1d5'),'hooks':!![]}),db[_0xa45690('0xcd')][_0xa45690('0x1b1')](db[_0xa45690('0x13b')],{'as':_0xa45690('0x1ad'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x56'),'hooks':!![]}),db['AnalyticDefaultReport'][_0xa45690('0x1b1')](db[_0xa45690('0x13b')],{'as':'Fields','onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x97')}),db[_0xa45690('0x14d')][_0xa45690('0x1b1')](db[_0xa45690('0x13b')],{'as':_0xa45690('0x1ad'),'onDelete':'cascade','foreignKey':_0xa45690('0x179')}),db[_0xa45690('0x13b')][_0xa45690('0xf3')](db[_0xa45690('0x14d')],{'foreignKey':_0xa45690('0x179')}),db['SalesforceAccount'][_0xa45690('0x1b1')](db['SalesforceConfiguration'],{'as':_0xa45690('0x16a'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xc9')}),db['SalesforceConfiguration'][_0xa45690('0x1b1')](db[_0xa45690('0xe4')],{'as':'Subjects','onDelete':'cascade','foreignKey':_0xa45690('0x3')}),db['SalesforceConfiguration'][_0xa45690('0x1b1')](db[_0xa45690('0xe4')],{'as':_0xa45690('0x102'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0xef')][_0xa45690('0x1b1')](db[_0xa45690('0xe4')],{'as':_0xa45690('0x1ad'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0xef')][_0xa45690('0xf3')](db[_0xa45690('0x1ce')],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0xc9')}),db['SalesforceField'][_0xa45690('0x1b1')](db['SalesforceField'],{'as':_0xa45690('0x59'),'foreignKey':'SubjectId'}),db[_0xa45690('0xe4')][_0xa45690('0x1b1')](db[_0xa45690('0xe4')],{'as':_0xa45690('0x146'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0xe4')][_0xa45690('0x1b1')](db[_0xa45690('0xe4')],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0xe4')][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':_0xa45690('0x13e')}),db[_0xa45690('0x99')]['hasMany'](db[_0xa45690('0xa8')],{'as':_0xa45690('0x16a'),'onDelete':_0xa45690('0x1d5'),'foreignKey':'AccountId'}),db[_0xa45690('0xa8')][_0xa45690('0x1b1')](db[_0xa45690('0xe7')],{'as':_0xa45690('0x15'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x3')}),db[_0xa45690('0xa8')][_0xa45690('0x1b1')](db[_0xa45690('0xe7')],{'as':_0xa45690('0x102'),'onDelete':'cascade','foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0xa8')][_0xa45690('0x1b1')](db['SugarcrmField'],{'as':_0xa45690('0x1ad'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0xa8')][_0xa45690('0xf3')](db[_0xa45690('0x99')],{'as':'Account','foreignKey':_0xa45690('0xc9')}),db['SugarcrmField'][_0xa45690('0x1b1')](db[_0xa45690('0xe7')],{'as':'Subject','foreignKey':_0xa45690('0x3')}),db['SugarcrmField'][_0xa45690('0x1b1')](db['SugarcrmField'],{'as':_0xa45690('0x146'),'foreignKey':'DescriptionId'}),db['SugarcrmField'][_0xa45690('0x1b1')](db[_0xa45690('0xe7')],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0xe7')][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':'Variable','foreignKey':_0xa45690('0x13e')}),db[_0xa45690('0x1dc')][_0xa45690('0x1b1')](db['DeskConfiguration'],{'as':_0xa45690('0x16a'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0x73')]['hasMany'](db[_0xa45690('0x157')],{'as':'Subjects','onDelete':_0xa45690('0x1d5'),'foreignKey':'SubjectId'}),db[_0xa45690('0x73')][_0xa45690('0x1b1')](db[_0xa45690('0x157')],{'as':_0xa45690('0x102'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x73')]['hasMany'](db[_0xa45690('0x157')],{'as':_0xa45690('0x1ad'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x73')][_0xa45690('0xf3')](db[_0xa45690('0x1dc')],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0x73')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0x98')}),db[_0xa45690('0x157')][_0xa45690('0x1b1')](db[_0xa45690('0x157')],{'as':'Subject','foreignKey':_0xa45690('0x3')}),db['DeskField'][_0xa45690('0x1b1')](db['DeskField'],{'as':_0xa45690('0x146'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x157')]['hasMany'](db[_0xa45690('0x157')],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x157')][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':_0xa45690('0x13e')}),db[_0xa45690('0xca')][_0xa45690('0x1b1')](db[_0xa45690('0xf2')],{'as':_0xa45690('0x16a'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xc9')}),db['ZohoConfiguration'][_0xa45690('0x1b1')](db[_0xa45690('0xea')],{'as':_0xa45690('0x15'),'onDelete':'cascade','foreignKey':_0xa45690('0x3')}),db['ZohoConfiguration'][_0xa45690('0x1b1')](db['ZohoField'],{'as':_0xa45690('0x102'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0xf2')][_0xa45690('0x1b1')](db[_0xa45690('0xea')],{'as':'Fields','onDelete':_0xa45690('0x1d5'),'foreignKey':'FieldId'}),db[_0xa45690('0xf2')][_0xa45690('0xf3')](db[_0xa45690('0xca')],{'as':'Account','foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0xea')][_0xa45690('0x1b1')](db['ZohoField'],{'as':_0xa45690('0x59'),'foreignKey':_0xa45690('0x3')}),db[_0xa45690('0xea')]['hasMany'](db[_0xa45690('0xea')],{'as':'Description','foreignKey':'DescriptionId'}),db[_0xa45690('0xea')][_0xa45690('0x1b1')](db[_0xa45690('0xea')],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db['ZohoField'][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':_0xa45690('0x13e')}),db[_0xa45690('0xa6')][_0xa45690('0x1b1')](db['ZendeskConfiguration'],{'as':'Configurations','onDelete':'cascade','foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0x11f')][_0xa45690('0x1b1')](db[_0xa45690('0x33')],{'as':_0xa45690('0x15'),'foreignKey':'SubjectId'}),db[_0xa45690('0x11f')]['hasMany'](db['ZendeskField'],{'as':_0xa45690('0x102'),'foreignKey':'DescriptionId'}),db['ZendeskConfiguration']['hasMany'](db[_0xa45690('0x33')],{'as':_0xa45690('0x1ad'),'foreignKey':_0xa45690('0x1bf')}),db['ZendeskConfiguration'][_0xa45690('0xf3')](db[_0xa45690('0xa6')],{'as':'Account','foreignKey':_0xa45690('0xc9')}),db['ZendeskConfiguration'][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0xb1')}),db['ZendeskField']['hasMany'](db[_0xa45690('0x33')],{'as':_0xa45690('0x59'),'foreignKey':_0xa45690('0x3')}),db[_0xa45690('0x33')][_0xa45690('0x1b1')](db[_0xa45690('0x33')],{'as':_0xa45690('0x146'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x33')][_0xa45690('0x1b1')](db[_0xa45690('0x33')],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x33')][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':_0xa45690('0x13e')}),db['FreshdeskAccount'][_0xa45690('0x1b1')](db[_0xa45690('0x7a')],{'as':_0xa45690('0x16a'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0x7a')][_0xa45690('0x1b1')](db[_0xa45690('0x5c')],{'as':_0xa45690('0x15'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x3')}),db[_0xa45690('0x7a')][_0xa45690('0x1b1')](db[_0xa45690('0x5c')],{'as':_0xa45690('0x102'),'onDelete':'cascade','foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x7a')][_0xa45690('0x1b1')](db[_0xa45690('0x5c')],{'as':'Fields','onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x7a')][_0xa45690('0xf3')](db['FreshdeskAccount'],{'as':'Account','foreignKey':'AccountId'}),db['FreshdeskConfiguration']['belongsToMany'](db[_0xa45690('0x14a')],{'through':_0xa45690('0x50')}),db[_0xa45690('0x5c')][_0xa45690('0x1b1')](db['FreshdeskField'],{'as':_0xa45690('0x59'),'foreignKey':'SubjectId'}),db['FreshdeskField'][_0xa45690('0x1b1')](db[_0xa45690('0x5c')],{'as':_0xa45690('0x146'),'foreignKey':_0xa45690('0xfd')}),db['FreshdeskField'][_0xa45690('0x1b1')](db['FreshdeskField'],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db['FreshdeskField'][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':'VariableId'}),db[_0xa45690('0x1d2')][_0xa45690('0x1b1')](db[_0xa45690('0x143')],{'as':'Configurations','onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xc9')}),db['VtigerConfiguration'][_0xa45690('0x1b1')](db[_0xa45690('0xd4')],{'as':_0xa45690('0x15'),'foreignKey':'SubjectId'}),db[_0xa45690('0x143')][_0xa45690('0x1b1')](db[_0xa45690('0xd4')],{'as':_0xa45690('0x102'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x143')]['hasMany'](db[_0xa45690('0xd4')],{'as':'Fields','foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x143')]['belongsTo'](db['VtigerAccount'],{'as':'Account','foreignKey':_0xa45690('0xc9')}),db['VtigerField'][_0xa45690('0x1b1')](db[_0xa45690('0xd4')],{'as':_0xa45690('0x59'),'foreignKey':_0xa45690('0x3')}),db[_0xa45690('0xd4')]['hasMany'](db[_0xa45690('0xd4')],{'as':_0xa45690('0x146'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0xd4')][_0xa45690('0x1b1')](db['VtigerField'],{'as':'Field','foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0xd4')][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':'VariableId'}),db[_0xa45690('0x91')]['hasMany'](db[_0xa45690('0x65')],{'as':_0xa45690('0x16a'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0x65')][_0xa45690('0x1b1')](db[_0xa45690('0x136')],{'as':_0xa45690('0x15'),'foreignKey':_0xa45690('0x3')}),db[_0xa45690('0x65')][_0xa45690('0x1b1')](db[_0xa45690('0x136')],{'as':'Descriptions','foreignKey':'DescriptionId'}),db[_0xa45690('0x65')][_0xa45690('0x1b1')](db['ServicenowField'],{'as':_0xa45690('0x1ad'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x65')][_0xa45690('0xf3')](db[_0xa45690('0x91')],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0x136')][_0xa45690('0x1b1')](db[_0xa45690('0x136')],{'as':_0xa45690('0x59'),'foreignKey':'SubjectId'}),db[_0xa45690('0x136')]['hasMany'](db[_0xa45690('0x136')],{'as':'Description','foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x136')]['hasMany'](db[_0xa45690('0x136')],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x136')][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':_0xa45690('0x13e')}),db[_0xa45690('0x1c0')]['hasMany'](db[_0xa45690('0x128')],{'as':_0xa45690('0x16a'),'onDelete':'cascade','foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0x128')][_0xa45690('0x1b1')](db['Dynamics365Field'],{'as':'Subjects','onDelete':'cascade','foreignKey':_0xa45690('0x3')}),db[_0xa45690('0x128')][_0xa45690('0x1b1')](db[_0xa45690('0xb2')],{'as':_0xa45690('0x102'),'onDelete':'cascade','foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x128')]['hasMany'](db[_0xa45690('0xb2')],{'as':'Fields','onDelete':_0xa45690('0x1d5'),'foreignKey':'FieldId'}),db['Dynamics365Configuration'][_0xa45690('0xf3')](db[_0xa45690('0x1c0')],{'as':'Account','foreignKey':_0xa45690('0xc9')}),db['Dynamics365Field']['hasMany'](db[_0xa45690('0xb2')],{'as':'Subject','foreignKey':_0xa45690('0x3')}),db[_0xa45690('0xb2')]['hasMany'](db[_0xa45690('0xb2')],{'as':'Description','foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0xb2')]['hasMany'](db[_0xa45690('0xb2')],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0xb2')][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':_0xa45690('0x13e')}),db[_0xa45690('0x2b')][_0xa45690('0x1b1')](db[_0xa45690('0x123')],{'as':_0xa45690('0x16a'),'onDelete':_0xa45690('0x1d5'),'foreignKey':'AccountId'}),db[_0xa45690('0x123')][_0xa45690('0x1b1')](db[_0xa45690('0x4f')],{'as':_0xa45690('0x15'),'foreignKey':_0xa45690('0x3')}),db[_0xa45690('0x123')][_0xa45690('0x1b1')](db[_0xa45690('0x4f')],{'as':_0xa45690('0x102'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x123')][_0xa45690('0x1b1')](db[_0xa45690('0x4f')],{'as':_0xa45690('0x1ad'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x123')]['belongsTo'](db[_0xa45690('0x2b')],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0xc9')}),db[_0xa45690('0x4f')][_0xa45690('0x1b1')](db[_0xa45690('0x4f')],{'as':_0xa45690('0x59'),'foreignKey':_0xa45690('0x3')}),db[_0xa45690('0x4f')][_0xa45690('0x1b1')](db['FreshsalesField'],{'as':_0xa45690('0x146'),'foreignKey':_0xa45690('0xfd')}),db[_0xa45690('0x4f')][_0xa45690('0x1b1')](db[_0xa45690('0x4f')],{'as':_0xa45690('0x111'),'foreignKey':_0xa45690('0x1bf')}),db[_0xa45690('0x4f')][_0xa45690('0xf3')](db[_0xa45690('0x5')],{'as':_0xa45690('0x5'),'foreignKey':'VariableId'}),db[_0xa45690('0x7c')]['belongsTo'](db[_0xa45690('0x66')],{}),db[_0xa45690('0x7c')][_0xa45690('0xf3')](db[_0xa45690('0x1e7')],{'as':_0xa45690('0x115'),'foreignKey':_0xa45690('0x17d')}),db[_0xa45690('0x7c')][_0xa45690('0xf3')](db['CmContact'],{'as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x7c')][_0xa45690('0xf3')](db['ChatInteraction'],{}),db[_0xa45690('0x7c')][_0xa45690('0xf3')](db[_0xa45690('0x10d')],{}),db[_0xa45690('0x7c')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{}),db[_0xa45690('0x7c')][_0xa45690('0xf3')](db[_0xa45690('0x19d')],{}),db[_0xa45690('0x2c')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x133')}),db[_0xa45690('0x2c')][_0xa45690('0xf3')](db['User'],{'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x25')}),db[_0xa45690('0x172')][_0xa45690('0x1b1')](db[_0xa45690('0x185')],{'foreignKey':_0xa45690('0xff'),'onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x172')][_0xa45690('0x1b1')](db[_0xa45690('0x51')],{'foreignKey':'SessionId','onDelete':'cascade'}),db[_0xa45690('0x14b')][_0xa45690('0xf3')](db['SmsAccount'],{}),db['SmsQueueReport']['belongsTo'](db['CmList'],{'as':'List','foreignKey':_0xa45690('0x17d')}),db['SmsQueueReport'][_0xa45690('0xf3')](db[_0xa45690('0x76')],{'as':'Contact','foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x14b')][_0xa45690('0xf3')](db[_0xa45690('0x15a')],{}),db['SmsQueueReport']['belongsTo'](db[_0xa45690('0x39')],{}),db[_0xa45690('0x14b')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{}),db[_0xa45690('0x14b')][_0xa45690('0xf3')](db[_0xa45690('0x106')],{}),db[_0xa45690('0x1e8')][_0xa45690('0x1b1')](db[_0xa45690('0x172')],{'foreignKey':_0xa45690('0xed')}),db[_0xa45690('0x1e8')]['hasMany'](db[_0xa45690('0x185')],{'foreignKey':_0xa45690('0xed')}),db['JscriptyProject'][_0xa45690('0x1b1')](db[_0xa45690('0x51')],{'foreignKey':_0xa45690('0xed')}),db[_0xa45690('0xc2')]['belongsToMany'](db[_0xa45690('0xba')],{'as':_0xa45690('0x13f'),'through':_0xa45690('0x195')}),db[_0xa45690('0x89')][_0xa45690('0x1bc')](db['User'],{'as':_0xa45690('0x81'),'through':'user_has_teams'}),db[_0xa45690('0x89')][_0xa45690('0x1bc')](db['VoiceQueue'],{'through':'team_has_voice_queues','as':_0xa45690('0xa4')}),db['Team']['belongsToMany'](db[_0xa45690('0x20')],{'through':_0xa45690('0x183'),'as':_0xa45690('0x90')}),db['Team'][_0xa45690('0x1bc')](db[_0xa45690('0x19d')],{'through':'team_has_chat_queues','as':_0xa45690('0xcc')}),db['Team'][_0xa45690('0x1bc')](db[_0xa45690('0x3e')],{'through':_0xa45690('0xdc'),'as':_0xa45690('0x100')}),db[_0xa45690('0x89')][_0xa45690('0x1bc')](db[_0xa45690('0x106')],{'through':_0xa45690('0x42'),'as':_0xa45690('0x28')}),db['Team'][_0xa45690('0x1bc')](db[_0xa45690('0xc5')],{'through':_0xa45690('0x1c3'),'as':'OpenchannelQueues'}),db[_0xa45690('0x89')][_0xa45690('0x1bc')](db[_0xa45690('0x32')],{'through':_0xa45690('0x1e1'),'as':_0xa45690('0xd')}),db[_0xa45690('0xfa')]['hasMany'](db[_0xa45690('0x168')],{'as':_0xa45690('0x178'),'foreignKey':_0xa45690('0x141')}),db[_0xa45690('0xfa')][_0xa45690('0x1b1')](db[_0xa45690('0xeb')],{'as':'HopperFinals','foreignKey':'CampaignId'}),db['Campaign'][_0xa45690('0x1b1')](db['CmHopperHistory'],{'as':'HopperHistories','foreignKey':'CampaignId'}),db['Campaign'][_0xa45690('0x1b1')](db[_0xa45690('0x127')],{'as':_0xa45690('0x63'),'foreignKey':_0xa45690('0x141')}),db[_0xa45690('0xfa')][_0xa45690('0xf3')](db[_0xa45690('0x163')],{'as':'Trunk','foreignKey':_0xa45690('0x1ae')}),db[_0xa45690('0xfa')]['belongsTo'](db['Trunk'],{'as':_0xa45690('0x1a2'),'foreignKey':_0xa45690('0x2a')}),db['Campaign'][_0xa45690('0xf3')](db['Interval'],{'as':'Interval','foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0xfa')][_0xa45690('0xf3')](db['SquareProject'],{'as':_0xa45690('0xc2'),'foreignKey':'SquareProjectId'}),db[_0xa45690('0xfa')]['belongsToMany'](db[_0xa45690('0x1e7')],{'as':_0xa45690('0x1b4'),'through':_0xa45690('0x1ca')}),db[_0xa45690('0xfa')][_0xa45690('0x1bc')](db['CmList'],{'as':_0xa45690('0xa9'),'through':_0xa45690('0xb9')}),db['MailTransferReport']['belongsTo'](db[_0xa45690('0x8')],{}),db[_0xa45690('0x187')][_0xa45690('0xf3')](db['MailInteraction'],{}),db[_0xa45690('0x187')][_0xa45690('0xf3')](db[_0xa45690('0xac')],{'foreignKey':'FromMailAccountId','as':_0xa45690('0x82')}),db[_0xa45690('0x187')]['belongsTo'](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0xd9'),'as':_0xa45690('0x6a')}),db[_0xa45690('0x187')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0x17b'),'as':_0xa45690('0x1f6')}),db[_0xa45690('0x187')][_0xa45690('0xf3')](db[_0xa45690('0x20')],{'foreignKey':_0xa45690('0x1b7'),'as':_0xa45690('0x9e')}),db['MailTransferReport']['belongsTo'](db['MailAccount'],{'foreignKey':_0xa45690('0xc6'),'as':'ToAccount'}),db[_0xa45690('0x9d')][_0xa45690('0xf3')](db[_0xa45690('0x10d')],{}),db['ChatTransferReport'][_0xa45690('0xf3')](db[_0xa45690('0x12d')],{}),db[_0xa45690('0x9d')]['belongsTo'](db[_0xa45690('0x66')],{'foreignKey':'FromChatWebsiteId','as':_0xa45690('0x82')}),db[_0xa45690('0x9d')]['belongsTo'](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0xd9'),'as':_0xa45690('0x6a')}),db['ChatTransferReport'][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'foreignKey':'ToUserId','as':_0xa45690('0x1f6')}),db['ChatTransferReport'][_0xa45690('0xf3')](db['ChatQueue'],{'foreignKey':_0xa45690('0x153'),'as':_0xa45690('0x9e')}),db[_0xa45690('0x9d')]['belongsTo'](db[_0xa45690('0x66')],{'foreignKey':_0xa45690('0xfe'),'as':'ToAccount'}),db[_0xa45690('0x132')][_0xa45690('0xf3')](db[_0xa45690('0x3b')],{}),db[_0xa45690('0x132')]['belongsTo'](db[_0xa45690('0x1a6')],{}),db[_0xa45690('0x132')]['belongsTo'](db[_0xa45690('0x6')],{'foreignKey':_0xa45690('0x69'),'as':_0xa45690('0x82')}),db['FaxTransferReport'][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0xd9'),'as':_0xa45690('0x6a')}),db[_0xa45690('0x132')]['belongsTo'](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0x17b'),'as':_0xa45690('0x1f6')}),db[_0xa45690('0x132')]['belongsTo'](db['FaxQueue'],{'foreignKey':_0xa45690('0x1b6'),'as':_0xa45690('0x9e')}),db[_0xa45690('0x132')][_0xa45690('0xf3')](db['FaxAccount'],{'foreignKey':_0xa45690('0xb3'),'as':_0xa45690('0x9b')}),db['OpenchannelTransferReport'][_0xa45690('0xf3')](db['OpenchannelMessage'],{}),db[_0xa45690('0x79')][_0xa45690('0xf3')](db[_0xa45690('0x1e3')],{}),db[_0xa45690('0x79')][_0xa45690('0xf3')](db[_0xa45690('0x11')],{'foreignKey':_0xa45690('0x1c4'),'as':_0xa45690('0x82')}),db[_0xa45690('0x79')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0xd9'),'as':_0xa45690('0x6a')}),db[_0xa45690('0x79')][_0xa45690('0xf3')](db['User'],{'foreignKey':_0xa45690('0x17b'),'as':'ToAgent'}),db[_0xa45690('0x79')][_0xa45690('0xf3')](db[_0xa45690('0xc5')],{'foreignKey':_0xa45690('0xaa'),'as':'ToQueue'}),db['OpenchannelTransferReport']['belongsTo'](db[_0xa45690('0x11')],{'foreignKey':_0xa45690('0x78'),'as':'ToAccount'}),db[_0xa45690('0xc3')][_0xa45690('0xf3')](db[_0xa45690('0x39')],{}),db['SmsTransferReport'][_0xa45690('0xf3')](db[_0xa45690('0x15a')],{}),db[_0xa45690('0xc3')][_0xa45690('0xf3')](db[_0xa45690('0xa')],{'foreignKey':_0xa45690('0xf1'),'as':'FromAccount'}),db[_0xa45690('0xc3')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0xd9'),'as':_0xa45690('0x6a')}),db[_0xa45690('0xc3')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0x17b'),'as':_0xa45690('0x1f6')}),db[_0xa45690('0xc3')]['belongsTo'](db[_0xa45690('0x106')],{'foreignKey':_0xa45690('0x85'),'as':_0xa45690('0x9e')}),db['SmsTransferReport']['belongsTo'](db[_0xa45690('0xa')],{'foreignKey':'ToSmsAccountId','as':_0xa45690('0x9b')}),db[_0xa45690('0x1e7')][_0xa45690('0x1b1')](db['Disposition'],{'as':_0xa45690('0x46'),'foreignKey':_0xa45690('0x17d')}),db['CmList'][_0xa45690('0x1b1')](db['CmCustomField'],{'as':_0xa45690('0x148'),'foreignKey':_0xa45690('0x17d')}),db[_0xa45690('0x1e7')][_0xa45690('0x1b1')](db['CmContact'],{'as':_0xa45690('0xd7'),'onDelete':_0xa45690('0x1d5'),'foreignKey':_0xa45690('0x17d')}),db['CmList'][_0xa45690('0x1b1')](db[_0xa45690('0xeb')],{'as':'HopperFinals','foreignKey':_0xa45690('0x17d')}),db[_0xa45690('0x1e7')]['hasMany'](db['CmHopperHistory'],{'as':_0xa45690('0xce'),'foreignKey':_0xa45690('0x17d')}),db[_0xa45690('0x1e7')][_0xa45690('0x1b1')](db[_0xa45690('0xb')],{'as':_0xa45690('0xb'),'foreignKey':'ListId'}),db['CmList'][_0xa45690('0x1bc')](db['VoiceQueue'],{'as':_0xa45690('0xa5'),'through':'voice_queues_has_cm_lists'}),db[_0xa45690('0x1e7')]['belongsToMany'](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0x2f')}),db[_0xa45690('0xe1')][_0xa45690('0x1b1')](db['VoiceExtension'],{'as':_0xa45690('0x1a7'),'onDelete':'cascade'}),db['VoicePrefix'][_0xa45690('0x1bc')](db['User'],{'as':_0xa45690('0x81'),'through':_0xa45690('0x10f')}),db[_0xa45690('0x1f2')][_0xa45690('0x1b1')](db['User'],{'as':_0xa45690('0x13f'),'foreignKey':_0xa45690('0x23')}),db[_0xa45690('0x1f2')]['hasMany'](db[_0xa45690('0x1c2')],{'as':_0xa45690('0x8a'),'foreignKey':_0xa45690('0x23'),'onDelete':_0xa45690('0x1d5')}),db['UserProfileSection']['hasMany'](db['UserProfileResource'],{'as':_0xa45690('0xf0'),'foreignKey':'sectionId','onDelete':_0xa45690('0x1d5')}),db[_0xa45690('0x7f')][_0xa45690('0x1b1')](db[_0xa45690('0x16f')],{'as':_0xa45690('0x46'),'foreignKey':_0xa45690('0x58')}),db[_0xa45690('0x7f')]['hasMany'](db[_0xa45690('0x4')],{'as':_0xa45690('0x144'),'foreignKey':'WhatsappAccountId'}),db[_0xa45690('0x7f')][_0xa45690('0x1b1')](db[_0xa45690('0xd0')],{'as':'Messages','foreignKey':'WhatsappAccountId'}),db[_0xa45690('0x7f')][_0xa45690('0x1b1')](db[_0xa45690('0x2d')],{'as':_0xa45690('0x190')}),db[_0xa45690('0x7f')][_0xa45690('0x1b1')](db[_0xa45690('0x17c')],{'as':'Applications'}),db[_0xa45690('0x7f')][_0xa45690('0xf3')](db['CmList'],{'as':_0xa45690('0x115'),'foreignKey':_0xa45690('0x17d')}),db[_0xa45690('0x7f')][_0xa45690('0xf3')](db[_0xa45690('0x13a')],{'as':_0xa45690('0x9c'),'foreignKey':_0xa45690('0x180')}),db[_0xa45690('0x7f')]['belongsToMany'](db['User'],{'as':'Agents','through':_0xa45690('0xa2')}),db[_0xa45690('0x17c')]['belongsTo'](db['User'],{'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x17c')][_0xa45690('0xf3')](db[_0xa45690('0x32')],{'onDelete':_0xa45690('0x118')}),db['WhatsappApplication'][_0xa45690('0xf3')](db[_0xa45690('0x7f')],{'onDelete':_0xa45690('0x118')}),db[_0xa45690('0x17c')][_0xa45690('0xf3')](db[_0xa45690('0xdb')],{'onDelete':'restrict','foreignKey':_0xa45690('0x1ab')}),db[_0xa45690('0x17c')][_0xa45690('0xf3')](db[_0xa45690('0x14a')],{'onDelete':_0xa45690('0x118'),'foreignKey':'TagId'}),db[_0xa45690('0x2d')][_0xa45690('0x1b1')](db['WhatsappMessage'],{'as':_0xa45690('0x125'),'onDelete':'cascade','foreignKey':_0xa45690('0x31')}),db['WhatsappInteraction']['belongsTo'](db[_0xa45690('0x7f')],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0x58')}),db[_0xa45690('0x2d')]['belongsTo'](db['CmContact'],{'as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x2d')][_0xa45690('0xf3')](db[_0xa45690('0xba')],{'as':_0xa45690('0x1a4'),'foreignKey':_0xa45690('0x8b')}),db['WhatsappInteraction'][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0x156'),'as':_0xa45690('0xd8')}),db[_0xa45690('0x2d')][_0xa45690('0x1bc')](db[_0xa45690('0x14a')],{'through':_0xa45690('0x156'),'as':_0xa45690('0x8f')}),db['WhatsappInteraction']['belongsToMany'](db['User'],{'as':_0xa45690('0x13f'),'through':_0xa45690('0xd1'),'foreignKey':_0xa45690('0x31')}),db[_0xa45690('0xd0')]['belongsTo'](db[_0xa45690('0xba')],{'as':_0xa45690('0xba')}),db['WhatsappMessage'][_0xa45690('0xf3')](db['CmContact'],{'onDelete':_0xa45690('0x1d5'),'as':_0xa45690('0x104')}),db[_0xa45690('0xd0')][_0xa45690('0xf3')](db[_0xa45690('0x2d')],{'onDelete':_0xa45690('0x1d5'),'as':'Interaction','foreignKey':_0xa45690('0x31')}),db[_0xa45690('0xd0')][_0xa45690('0xf3')](db[_0xa45690('0x7f')],{'as':_0xa45690('0x121'),'foreignKey':_0xa45690('0x58')}),db[_0xa45690('0x196')][_0xa45690('0xf3')](db[_0xa45690('0x7f')],{}),db['WhatsappQueueReport'][_0xa45690('0xf3')](db[_0xa45690('0x1e7')],{'as':'List','foreignKey':'ListId'}),db[_0xa45690('0x196')]['belongsTo'](db[_0xa45690('0x76')],{'as':_0xa45690('0x104'),'foreignKey':_0xa45690('0x71')}),db[_0xa45690('0x196')][_0xa45690('0xf3')](db[_0xa45690('0x2d')],{}),db[_0xa45690('0x196')][_0xa45690('0xf3')](db[_0xa45690('0x32')],{}),db['WhatsappQueueReport'][_0xa45690('0xf3')](db['WhatsappMessage'],{}),db[_0xa45690('0x196')]['belongsTo'](db[_0xa45690('0xba')],{}),db['WhatsappTransferReport']['belongsTo'](db['WhatsappMessage'],{}),db[_0xa45690('0x137')][_0xa45690('0xf3')](db[_0xa45690('0x2d')],{}),db['WhatsappTransferReport'][_0xa45690('0xf3')](db[_0xa45690('0x7f')],{'foreignKey':_0xa45690('0x17e'),'as':_0xa45690('0x82')}),db[_0xa45690('0x137')][_0xa45690('0xf3')](db[_0xa45690('0x7f')],{'foreignKey':_0xa45690('0x5d'),'as':'ToAccount'}),db[_0xa45690('0x137')][_0xa45690('0xf3')](db[_0xa45690('0x32')],{'foreignKey':_0xa45690('0x6e'),'as':_0xa45690('0x9e')}),db[_0xa45690('0x137')]['belongsTo'](db[_0xa45690('0xba')],{'foreignKey':'FromUserId','as':'FromAgent'}),db[_0xa45690('0x137')]['belongsTo'](db[_0xa45690('0xba')],{'foreignKey':_0xa45690('0x17b'),'as':_0xa45690('0x1f6')}),db[_0xa45690('0x32')][_0xa45690('0x1bc')](db[_0xa45690('0xba')],{'as':_0xa45690('0x81'),'through':_0xa45690('0x110'),'foreignKey':'WhatsappQueueId'}),db['WhatsappQueue'][_0xa45690('0x1bc')](db[_0xa45690('0x89')],{'through':'team_has_whatsapp_queues','as':_0xa45690('0x8d')}),module[_0xa45690('0xa3')]={'db':db,'dbH':dbH}; \ No newline at end of file diff --git a/server/rediscache/index.js b/server/rediscache/index.js index 472b543..c2c5cff 100644 --- a/server/rediscache/index.js +++ b/server/rediscache/index.js @@ -1 +1 @@ -const a1022_0x5e89=['ioredis','redisPort','redisHost','exports','getConfigService','../config/config.service','../config/environment'];(function(_0xec7a5e,_0x5e89b6){const _0x3873e0=function(_0x1fd07e){while(--_0x1fd07e){_0xec7a5e['push'](_0xec7a5e['shift']());}};_0x3873e0(++_0x5e89b6);}(a1022_0x5e89,0x1a0));const a1022_0x3873=function(_0xec7a5e,_0x5e89b6){_0xec7a5e=_0xec7a5e-0x0;let _0x3873e0=a1022_0x5e89[_0xec7a5e];return _0x3873e0;};const _0x39aef9=a1022_0x3873,Redis=require(_0x39aef9('0x4')),socketEmitter=require('socket.io-emitter'),config=require(_0x39aef9('0x3')),cs=require(_0x39aef9('0x2'))[_0x39aef9('0x1')](),MAX_RETRIES=0xa,REDIS_CONFIG={'host':cs[_0x39aef9('0x6')],'port':cs[_0x39aef9('0x5')],'retryStrategy':function(_0x1fd07e){if(_0x1fd07e{const _0x25901a=a1024_0x10f9;this[_0x25901a('0x2d')]['listen'](_0x458cda,_0x531b0a,function(){const _0xb08e39=_0x25901a;console[_0xb08e39('0x25')](_0xb08e39('0xa'),_0x531b0a,_0x458cda),require(_0xb08e39('0x3d'))['default'](),_0x2e65a6(_0xb08e39('0xe')+_0x531b0a+':'+_0x458cda);});});}[_0x9daf09('0x43')](){return new Promise(_0x3c32a3=>{const _0x63041a=a1024_0x10f9;this[_0x63041a('0x2d')][_0x63041a('0x43')](()=>{const _0x5c2bb0=_0x63041a;console['log'](_0x5c2bb0('0x42')),_0x3c32a3();});});}}module['exports']={'RPC':RPC}; \ No newline at end of file +const a1024_0x45b0=['../api/user/user.rpc','../api/faxApplication/faxApplication.rpc','http','../api/smsInteraction/smsInteraction.rpc','../api/squareOdbc/squareOdbc.rpc','../api/campaign/campaign.rpc','../api/squareRecording/squareRecording.rpc','default','rpc','../api/chatQueue/chatQueue.rpc','../api/mailAccount/mailAccount.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/faxInteraction/faxInteraction.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/squareReport/squareReport.rpc','server','../api/sound/sound.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../api/openchannelApplication/openchannelApplication.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/faxMessage/faxMessage.rpc','../api/voiceRecording/voiceRecording.rpc','../api/whatsappQueue/whatsappQueue.rpc','../api/chatInteraction/chatInteraction.rpc','../api/trunk/trunk.rpc','../api/mailServerIn/mailServerIn.rpc','Express\x20RPC\x20server\x20closed','../config/environment','close','../api/whatsappMessage/whatsappMessage.rpc','../api/squareMessage/squareMessage.rpc','../api/smsQueue/smsQueue.rpc','../api/trigger/trigger.rpc','function','listen','../api/voiceExtension/voiceExtension.rpc','../api/openchannelMessage/openchannelMessage.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','log','../api/smsAccount/smsAccount.rpc','merge','../api/intDeskAccount/intDeskAccount.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','host','exports','../api/voiceQueueReport/voiceQueueReport.rpc','localhost','../api/cmHopper/cmHopper.rpc','lodash','../api/voiceAgentReport/voiceAgentReport.rpc','../api/memberReport/memberReport.rpc','../api/intZohoAccount/intZohoAccount.rpc','../api/faxAccount/faxAccount.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/smsMessage/smsMessage.rpc','port','../api/cmHopperFinal/cmHopperFinal.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/pause/pause.rpc','RPC\x20listening\x20on\x20','../api/voiceQueue/voiceQueue.rpc','../api/whatsappInteraction/whatsappInteraction.rpc','../api/voiceCallReport/voiceCallReport.rpc','../api/template/template.rpc','../api/plugin/plugin.rpc','../config/triggers','../api/mailQueue/mailQueue.rpc','../api/mailMessage/mailMessage.rpc','../api/intSalesforceAccount/intSalesforceAccount.rpc','jayson/promise','../api/mailApplication/mailApplication.rpc'];(function(_0x2f5344,_0x45b081){const _0x32900c=function(_0x1d87db){while(--_0x1d87db){_0x2f5344['push'](_0x2f5344['shift']());}};_0x32900c(++_0x45b081);}(a1024_0x45b0,0x125));const a1024_0x3290=function(_0x2f5344,_0x45b081){_0x2f5344=_0x2f5344-0x0;let _0x32900c=a1024_0x45b0[_0x2f5344];return _0x32900c;};const _0x1f33a7=a1024_0x3290;'use strict';const jayson=require(_0x1f33a7('0x46')),_=require(_0x1f33a7('0x31')),config=require(_0x1f33a7('0x1c'));function init(){const _0x3eef14=_0x1f33a7;let _0x1d87db={};return _0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x48'))),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x24'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x3d'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x16'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x3f'))),_0x1d87db=_['merge'](_0x1d87db,require('../api/voiceDialReport/voiceDialReport.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x32'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x2e'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x33'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x19'))),_0x1d87db=_['merge'](_0x1d87db,require('../api/voiceTransferReport/voiceTransferReport.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x2b'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x1a'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x9'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x43'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/mailInteraction/mailInteraction.rpc')),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x44'))),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x47'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/mailQueueReport/mailQueueReport.rpc')),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x35'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x0'))),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0xc'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x15'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/faxQueue/faxQueue.rpc')),_0x1d87db=_['merge'](_0x1d87db,require('../api/faxQueueReport/faxQueueReport.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x28'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x2'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x37'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x20'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x12'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x14'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x25'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0xb'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x26'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x18'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/chatMessage/chatMessage.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x8'))),_0x1d87db=_['merge'](_0x1d87db,require('../api/cmContact/cmContact.rpc')),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x30'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/cmHopperBlack/cmHopperBlack.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x39'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/cmHopperHistory/cmHopperHistory.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x11'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/interval/interval.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x3b'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x10'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x40'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x21'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/variable/variable.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x45'))),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0xa'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x2a'))),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x34'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x13'))),_0x1d87db=_['merge'](_0x1d87db,require('../api/intFreshdeskAccount/intFreshdeskAccount.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/intVtigerAccount/intVtigerAccount.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0xd'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/intDynamics365Account/intDynamics365Account.rpc')),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x3a'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/chatQueueReport/chatQueueReport.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x36'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0xe'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/squareReportDetail/squareReportDetail.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x3'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/squareProject/squareProject.rpc')),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x5'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x1f'))),_0x1d87db=_['merge'](_0x1d87db,require(_0x3eef14('0x4'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/attachment/attachment.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x41'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/whatsappAccount/whatsappAccount.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x3e'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x1e'))),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require('../api/whatsappQueueReport/whatsappQueueReport.rpc')),_0x1d87db=_[_0x3eef14('0x29')](_0x1d87db,require(_0x3eef14('0x17'))),_0x1d87db;}class RPC{constructor(_0x3f9e4a){const _0x3b5fee=_0x1f33a7;this[_0x3b5fee('0x38')]=config[_0x3b5fee('0x7')][_0x3b5fee('0x38')]||config[_0x3b5fee('0x38')]+0x1,this[_0x3b5fee('0x2c')]=config['rpc']['ip']||_0x3b5fee('0x2f');const _0x1131ad=init();this[_0x3b5fee('0xf')]=jayson[_0x3b5fee('0xf')](_0x1131ad)[_0x3b5fee('0x1')](),typeof _0x3f9e4a===_0x3b5fee('0x22')&&this[_0x3b5fee('0xf')]['on']('error',_0x3f9e4a);}['listen'](){const {port:_0x338ece,host:_0x6f89e}=this;return new Promise(_0x31f272=>{const _0x4871de=a1024_0x3290;this['server'][_0x4871de('0x23')](_0x338ece,_0x6f89e,function(){const _0x32ad8a=_0x4871de;console[_0x32ad8a('0x27')]('Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!',_0x6f89e,_0x338ece),require(_0x32ad8a('0x42'))[_0x32ad8a('0x6')](),_0x31f272(_0x32ad8a('0x3c')+_0x6f89e+':'+_0x338ece);});});}[_0x1f33a7('0x1d')](){return new Promise(_0x6069d7=>{const _0x15a0b1=a1024_0x3290;this[_0x15a0b1('0xf')][_0x15a0b1('0x1d')](()=>{const _0xcd4b61=_0x15a0b1;console[_0xcd4b61('0x27')](_0xcd4b61('0x1b')),_0x6069d7();});});}}module[_0x1f33a7('0x2d')]={'RPC':RPC}; \ No newline at end of file diff --git a/server/services/agi/channel.js b/server/services/agi/channel.js index 29f11b1..f1735da 100644 --- a/server/services/agi/channel.js +++ b/server/services/agi/channel.js @@ -1 +1 @@ -const a1025_0x13c3=['match','noop','write','GOTO\x20%s\x20%s\x20%s','ANSWER','answer','indexOf','EXEC\x20%s\x20%s','line','SAY\x20DIGITS\x20%s\x20%s','recordFile','sync','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','exec','substring','GET\x20VARIABLE\x20\x22%s\x22','agi','format','E_AGI_SOCKET_TIMEOUT','sayDigits','timeout','error','length','AGI','520\x20End\x20of\x20proper','setPriority','search','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','prototype','setEncoding','extension','function','EventEmitter','wait','hangup','E_AGI_SOCKET_CLOSE','command','headers','utf8','E_AGI_SOCKET_ERROR','SET\x20CONTEXT\x20%s','exports','getVariable','substr','join','destroy','WAIT','startsWith','ready','setContext','./reply','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','pipe','no\x20code','SET\x20VARIABLE\x20%s\x20\x22%s\x22','./error','sendRequest','VERBOSE\x20\x22%s\x22','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','lodash','label','replace','emit','streamFile','isNumber','close','520-Invalid','toLowerCase','util','sayPhonetic','SET\x20PRIORITY\x20%s','sayNumber','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s'];(function(_0x36a659,_0x13c36f){const _0x47fc43=function(_0x5977d8){while(--_0x5977d8){_0x36a659['push'](_0x36a659['shift']());}};_0x47fc43(++_0x13c36f);}(a1025_0x13c3,0xf6));const a1025_0x47fc=function(_0x36a659,_0x13c36f){_0x36a659=_0x36a659-0x0;let _0x47fc43=a1025_0x13c3[_0x36a659];return _0x47fc43;};const _0x2f3797=a1025_0x47fc;'use strict';const util=require(_0x2f3797('0x29')),_=require(_0x2f3797('0x20')),EventEmitter=require('events')[_0x2f3797('0x5')],AGIReply=require(_0x2f3797('0x17')),AGIError=require(_0x2f3797('0x1c'));function AGIChannel(_0x5977d8){const _0x1ccd6f=_0x2f3797,_0x39f411=this,_0x552240=new AGIReply();let _0x4c6af9=![],_0x10431f={};EventEmitter['call'](_0x39f411),_0x5977d8[_0x1ccd6f('0x2')](_0x1ccd6f('0xb')),_0x5977d8['setTimeout'](0x8*0x3c*0x3c*0x3e8),_0x552240[_0x1ccd6f('0x2')](_0x1ccd6f('0xb')),_0x552240['on'](_0x1ccd6f('0xa'),function(_0xc9c848){const _0x4e7005=_0x1ccd6f;for(const _0x550c18 in _0xc9c848){_0x39f411[_0x550c18]=_0xc9c848[_0x550c18];}_0x39f411['emit'](_0x4e7005('0x15'));}),_0x552240['on'](_0x1ccd6f('0x36'),function(_0x1afbbb){const _0x19d740=_0x1ccd6f;if(_0x1afbbb[_0x19d740('0x28')]()==_0x19d740('0x7')){_0x39f411[_0x19d740('0x23')](_0x19d740('0x7'));return;}_0x1afbbb[_0x19d740('0x3c')](0x0,0xb)==_0x19d740('0x27')&&(_0x4c6af9=!![]);_0x4c6af9?(_0x10431f['rx']+=_0x1afbbb+'\x0a',_0x1afbbb[_0x19d740('0x48')](_0x19d740('0x46'))!=-0x1&&(_0x4c6af9=![])):_0x10431f['rx']=_0x1afbbb;if(_0x4c6af9)return;if(typeof _0x10431f['cb']==_0x19d740('0x4')){let _0x3bc155=_0x10431f['rx']['substring'](0x0,0x3),_0x40d5d5=null,_0x5bf9af=null;_0x3bc155=parseInt(_0x3bc155);if(isNaN(_0x3bc155)){_0x10431f['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x19d740('0x1a')});return;}if(_0x3bc155!=0xc8){_0x10431f['cb'](null,{'code':_0x3bc155,'result':-0x1,'extra':'KO'});return;}_0x40d5d5=_0x10431f['rx'][_0x19d740('0x3c')](0x4)['replace']('result=','');_0x40d5d5[_0x19d740('0x34')]('\x20')!=-0x1&&(_0x40d5d5=_0x40d5d5[_0x19d740('0x10')](0x0,_0x40d5d5[_0x19d740('0x34')]('\x20')));_[_0x19d740('0x14')](_0x40d5d5,'-1')&&(_0x40d5d5=parseInt(_0x40d5d5));_0x5bf9af=_0x10431f['rx']['split']('\x20');if(_0x5bf9af['length']==0x3)_0x5bf9af=_0x5bf9af[0x2]['substring'](0x1,_0x5bf9af[0x2][_0x19d740('0x44')]-0x1);else{if(_0x5bf9af[_0x19d740('0x44')]>0x3){const _0x404844=/\((.+)\)/,_0x55256b=_0x10431f['rx'][_0x19d740('0x2e')](_0x404844);_0x55256b?_0x5bf9af=_0x55256b[0x1]:_0x5bf9af=null;}else _0x5bf9af=null;}_0x10431f['cb'](null,{'code':_0x3bc155,'result':_0x40d5d5,'extra':_0x5bf9af});}}),_0x5977d8['on'](_0x1ccd6f('0x43'),function(_0x4a3528){const _0x1223df=_0x1ccd6f;_0x39f411[_0x1223df('0x23')]('error',new AGIError(_0x1223df('0xc'),_0x4a3528['code']));}),_0x5977d8['on']('close',function(){const _0x9bc833=_0x1ccd6f;_0x39f411[_0x9bc833('0x23')](_0x9bc833('0x26'),new AGIError(_0x9bc833('0x8')));}),_0x5977d8['on'](_0x1ccd6f('0x42'),function(){const _0x59d73d=_0x1ccd6f;_0x39f411[_0x59d73d('0x23')](_0x59d73d('0x42'),new AGIError(_0x59d73d('0x40'))),_0x5977d8[_0x59d73d('0x12')]();}),_0x5977d8[_0x1ccd6f('0x19')](_0x552240),(this[_0x1ccd6f('0x9')]=function(_0x5b72d7,_0x2f88ce){const _0x521272=_0x1ccd6f;_0x5b72d7=_0x5b72d7||'',_0x2f88ce=typeof _0x2f88ce==_0x521272('0x4')?_0x2f88ce:new Function(),_0x10431f={'tx':_0x5b72d7,'rx':'','cb':_0x2f88ce},_0x5977d8[_0x521272('0x30')](_0x5b72d7+'\x0a');},this[_0x1ccd6f('0x26')]=function(){const _0x3c4c56=_0x1ccd6f;_0x5977d8[_0x3c4c56('0x12')]();});}util['inherits'](AGIChannel,EventEmitter),AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x1d')]=function(_0x2cd1a3){const _0x2db6e4=_0x2f3797;return this['command'][_0x2db6e4('0x39')](this,_0x2cd1a3);},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x33')]=function(){const _0x5143c9=_0x2f3797;return this[_0x5143c9('0x1d')](_0x5143c9('0x32'));},AGIChannel[_0x2f3797('0x1')]['getData']=function(_0x1066e4,_0x5dfd37,_0x2079ed){const _0x1b24b8=_0x2f3797;return _0x1066e4=_0x1066e4===undefined?'beep':_0x1066e4,_0x5dfd37=_0x5dfd37===undefined?'5':_0x5dfd37,_0x2079ed=_0x2079ed===undefined?'1':_0x2079ed,this[_0x1b24b8('0x1d')](util['format'](_0x1b24b8('0x2d'),_0x1066e4,_0x5dfd37*0x3e8,_0x2079ed));},AGIChannel['prototype'][_0x2f3797('0x2f')]=function(_0x2d13d1){const _0xc11d57=_0x2f3797;return _0x2d13d1=_0x2d13d1||'NO\x20MESSAGE',this[_0xc11d57('0x1d')](util[_0xc11d57('0x3f')](_0xc11d57('0x1e'),_0x2d13d1));},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x3b')]=function(_0x4d3ce9,_0x17c9f9){const _0x184a3f=_0x2f3797;if(_['isArray'](_0x17c9f9))return this[_0x184a3f('0x1d')](util[_0x184a3f('0x3f')](_0x184a3f('0x35'),_0x4d3ce9,_0x17c9f9[_0x184a3f('0x11')](',')));return this['sendRequest'](util[_0x184a3f('0x3f')](_0x184a3f('0x35'),_0x4d3ce9,_0x17c9f9));},AGIChannel[_0x2f3797('0x1')]['setContext']=function(_0x57e5da){const _0x4898ab=_0x2f3797;return this[_0x4898ab('0x1d')](util[_0x4898ab('0x3f')](_0x4898ab('0xd'),_0x57e5da));},AGIChannel[_0x2f3797('0x1')]['setExtension']=function(_0x52d723){const _0x13b073=_0x2f3797;return this[_0x13b073('0x1d')](util[_0x13b073('0x3f')]('SET\x20EXTENSION\x20%s',_0x52d723));},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x47')]=function(_0x478487){const _0x55cc41=_0x2f3797;return this[_0x55cc41('0x1d')](util[_0x55cc41('0x3f')](_0x55cc41('0x2b'),_0x478487));},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x7')]=function(){return this['sendRequest']('HANGUP');},AGIChannel[_0x2f3797('0x1')]['setVariable']=function(_0xe6c260,_0xe6c5db){const _0x4d1395=_0x2f3797,_0xf49aab=_['isBoolean'](_0xe6c5db)||_[_0x4d1395('0x25')](_0xe6c5db)?_0xe6c5db['toString']():_0xe6c5db;return this[_0x4d1395('0x1d')](util[_0x4d1395('0x3f')](_0x4d1395('0x1b'),_0xe6c260,_0xf49aab?_0xf49aab['toString']()[_0x4d1395('0x22')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x2c')]=function(_0x53dc78,_0x1306fe){const _0x398f0c=_0x2f3797;return this[_0x398f0c('0x1d')](util[_0x398f0c('0x3f')]('SAY\x20NUMBER\x20%s\x20%s',_0x53dc78,_0x1306fe));},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x41')]=function(_0x3cb57a,_0x2f2eb0){const _0x4ccfb1=_0x2f3797;return this['sendRequest'](util['format'](_0x4ccfb1('0x37'),_0x3cb57a,_0x2f2eb0));},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x2a')]=function(_0x1a9ee6,_0x3fce2f){const _0xef2213=_0x2f3797;return this[_0xef2213('0x1d')](util['format'](_0xef2213('0x3a'),_0x1a9ee6,_0x3fce2f));},AGIChannel[_0x2f3797('0x1')]['continueAt']=function(_0x1ca2e4,_0x1021fe,_0x44f173){const _0x31cb3b=_0x2f3797;return _0x1021fe=_0x1021fe||this[_0x31cb3b('0x3')],_0x44f173=_0x44f173||0x1,this[_0x31cb3b('0x16')](_0x1ca2e4),this['setExtension'](_0x1021fe),this['setPriority'](_0x44f173),this[_0x31cb3b('0x2f')](util[_0x31cb3b('0x3f')](_0x31cb3b('0x31'),_0x1ca2e4,_0x1021fe,_0x44f173));},AGIChannel['prototype'][_0x2f3797('0xf')]=function(_0x26f72a){const _0x21dc6d=_0x2f3797;return this[_0x21dc6d('0x1d')](util[_0x21dc6d('0x3f')](_0x21dc6d('0x3d'),_0x26f72a));},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x38')]=function(_0x67e05e,_0x551304,_0x389925,_0x1590c0,_0x3311c8,_0x3bcff2){const _0x8972e1=_0x2f3797;return _0x551304=_0x551304||'wav',_0x389925=_0x389925||'',_0x1590c0=_0x1590c0===undefined?-0x1:_0x1590c0==='-1'?-0x1:_0x1590c0*0x3e8,_0x3311c8=_0x3311c8===undefined?'':'s='+_0x3311c8,_0x3bcff2=_0x3bcff2?'BEEP':'',this[_0x8972e1('0x1d')](util[_0x8972e1('0x3f')](_0x8972e1('0x1f'),_0x67e05e,_0x551304,_0x389925,_0x1590c0,_0x3bcff2,_0x3311c8));},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x24')]=function(_0x409e5d,_0x2a0cf0){const _0x30741e=_0x2f3797;return _0x2a0cf0=_0x2a0cf0||'',this[_0x30741e('0x1d')](util[_0x30741e('0x3f')](_0x30741e('0x18'),_0x409e5d,_0x2a0cf0));},AGIChannel['prototype'][_0x2f3797('0x3e')]=function(_0x3a0018){const _0x12f27a=_0x2f3797;return this['exec'](_0x12f27a('0x45'),_0x3a0018);},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x6')]=function(_0x589517){const _0x11b667=_0x2f3797;return this[_0x11b667('0x3b')](_0x11b667('0x13'),_0x589517);},AGIChannel[_0x2f3797('0x1')][_0x2f3797('0x43')]=function(_0x1ed1b6,_0x5d92f0){const _0xed7c39=_0x2f3797;return this['noop'](util[_0xed7c39('0x3f')](_0xed7c39('0x0'),_0x1ed1b6['id'],_0x1ed1b6[_0xed7c39('0x21')],_0x5d92f0)),{'code':0x1f4,'result':'-1','extra':''};},module[_0x2f3797('0xe')]=AGIChannel; \ No newline at end of file +const a1025_0x3448=['substr','code','replace','search','E_AGI_SOCKET_ERROR','SET\x20PRIORITY\x20%s','./error','indexOf','520\x20End\x20of\x20proper','BEEP','recordFile','wait','destroy','inherits','match','NO\x20MESSAGE','isNumber','continueAt','SAY\x20NUMBER\x20%s\x20%s','sayPhonetic','toString','ANSWER','pipe','sayDigits','startsWith','GOTO\x20%s\x20%s\x20%s','hangup','error','noop','setExtension','setPriority','length','events','sendRequest','GET\x20VARIABLE\x20\x22%s\x22','write','SET\x20VARIABLE\x20%s\x20\x22%s\x22','setEncoding','headers','line','setTimeout','520-Invalid','function','getData','setVariable','VERBOSE\x20\x22%s\x22','beep','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','substring','close','prototype','AGI','emit','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','streamFile','no\x20code','exec','utf8','./reply','setContext','E_AGI_SOCKET_TIMEOUT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','isBoolean','ready','format','result=','call','isArray','label','EXEC\x20%s\x20%s','command','timeout'];(function(_0x4ed1eb,_0x344836){const _0x22ecc2=function(_0x3ea5ad){while(--_0x3ea5ad){_0x4ed1eb['push'](_0x4ed1eb['shift']());}};_0x22ecc2(++_0x344836);}(a1025_0x3448,0x1c6));const a1025_0x22ec=function(_0x4ed1eb,_0x344836){_0x4ed1eb=_0x4ed1eb-0x0;let _0x22ecc2=a1025_0x3448[_0x4ed1eb];return _0x22ecc2;};const _0x588fb8=a1025_0x22ec;'use strict';const util=require('util'),_=require('lodash'),EventEmitter=require(_0x588fb8('0xa'))['EventEmitter'],AGIReply=require(_0x588fb8('0x24')),AGIError=require(_0x588fb8('0x38'));function AGIChannel(_0x3ea5ad){const _0x271056=_0x588fb8,_0x12961e=this,_0x3d71a0=new AGIReply();let _0x4038a8=![],_0x136ef7={};EventEmitter[_0x271056('0x2c')](_0x12961e),_0x3ea5ad['setEncoding'](_0x271056('0x23')),_0x3ea5ad[_0x271056('0x12')](0x8*0x3c*0x3c*0x3e8),_0x3d71a0[_0x271056('0xf')](_0x271056('0x23')),_0x3d71a0['on'](_0x271056('0x10'),function(_0x2a8aaa){const _0x2238bb=_0x271056;for(const _0x295f2f in _0x2a8aaa){_0x12961e[_0x295f2f]=_0x2a8aaa[_0x295f2f];}_0x12961e[_0x2238bb('0x1e')](_0x2238bb('0x29'));}),_0x3d71a0['on'](_0x271056('0x11'),function(_0xac188e){const _0x4fc99d=_0x271056;if(_0xac188e['toLowerCase']()=='hangup'){_0x12961e[_0x4fc99d('0x1e')](_0x4fc99d('0x4'));return;}_0xac188e[_0x4fc99d('0x1a')](0x0,0xb)==_0x4fc99d('0x13')&&(_0x4038a8=!![]);_0x4038a8?(_0x136ef7['rx']+=_0xac188e+'\x0a',_0xac188e[_0x4fc99d('0x35')](_0x4fc99d('0x3a'))!=-0x1&&(_0x4038a8=![])):_0x136ef7['rx']=_0xac188e;if(_0x4038a8)return;if(typeof _0x136ef7['cb']=='function'){let _0x3550ca=_0x136ef7['rx'][_0x4fc99d('0x1a')](0x0,0x3),_0xfba1ea=null,_0x1f9ed3=null;_0x3550ca=parseInt(_0x3550ca);if(isNaN(_0x3550ca)){_0x136ef7['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x4fc99d('0x21')});return;}if(_0x3550ca!=0xc8){_0x136ef7['cb'](null,{'code':_0x3550ca,'result':-0x1,'extra':'KO'});return;}_0xfba1ea=_0x136ef7['rx']['substring'](0x4)['replace'](_0x4fc99d('0x2b'),'');_0xfba1ea[_0x4fc99d('0x39')]('\x20')!=-0x1&&(_0xfba1ea=_0xfba1ea[_0x4fc99d('0x32')](0x0,_0xfba1ea[_0x4fc99d('0x39')]('\x20')));_[_0x4fc99d('0x2')](_0xfba1ea,'-1')&&(_0xfba1ea=parseInt(_0xfba1ea));_0x1f9ed3=_0x136ef7['rx']['split']('\x20');if(_0x1f9ed3['length']==0x3)_0x1f9ed3=_0x1f9ed3[0x2][_0x4fc99d('0x1a')](0x1,_0x1f9ed3[0x2][_0x4fc99d('0x9')]-0x1);else{if(_0x1f9ed3[_0x4fc99d('0x9')]>0x3){const _0x2f4988=/\((.+)\)/,_0x14a545=_0x136ef7['rx'][_0x4fc99d('0x40')](_0x2f4988);_0x14a545?_0x1f9ed3=_0x14a545[0x1]:_0x1f9ed3=null;}else _0x1f9ed3=null;}_0x136ef7['cb'](null,{'code':_0x3550ca,'result':_0xfba1ea,'extra':_0x1f9ed3});}}),_0x3ea5ad['on'](_0x271056('0x5'),function(_0xf44820){const _0x35646a=_0x271056;_0x12961e[_0x35646a('0x1e')]('error',new AGIError(_0x35646a('0x36'),_0xf44820[_0x35646a('0x33')]));}),_0x3ea5ad['on'](_0x271056('0x1b'),function(){const _0x46b91c=_0x271056;_0x12961e[_0x46b91c('0x1e')](_0x46b91c('0x1b'),new AGIError('E_AGI_SOCKET_CLOSE'));}),_0x3ea5ad['on'](_0x271056('0x31'),function(){const _0x2ec4da=_0x271056;_0x12961e['emit'](_0x2ec4da('0x31'),new AGIError(_0x2ec4da('0x26'))),_0x3ea5ad[_0x2ec4da('0x3e')]();}),_0x3ea5ad[_0x271056('0x0')](_0x3d71a0),(this[_0x271056('0x30')]=function(_0x4d2915,_0x3ebe33){const _0x4687a3=_0x271056;_0x4d2915=_0x4d2915||'',_0x3ebe33=typeof _0x3ebe33==_0x4687a3('0x14')?_0x3ebe33:new Function(),_0x136ef7={'tx':_0x4d2915,'rx':'','cb':_0x3ebe33},_0x3ea5ad[_0x4687a3('0xd')](_0x4d2915+'\x0a');},this[_0x271056('0x1b')]=function(){const _0x1382fd=_0x271056;_0x3ea5ad[_0x1382fd('0x3e')]();});}util[_0x588fb8('0x3f')](AGIChannel,EventEmitter),AGIChannel['prototype'][_0x588fb8('0xb')]=function(_0x39950c){const _0x472fd2=_0x588fb8;return this[_0x472fd2('0x30')]['sync'](this,_0x39950c);},AGIChannel[_0x588fb8('0x1c')]['answer']=function(){const _0x46cbe5=_0x588fb8;return this[_0x46cbe5('0xb')](_0x46cbe5('0x47'));},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x15')]=function(_0x16645f,_0x11bbf8,_0x5c7083){const _0x40e2f9=_0x588fb8;return _0x16645f=_0x16645f===undefined?_0x40e2f9('0x18'):_0x16645f,_0x11bbf8=_0x11bbf8===undefined?'5':_0x11bbf8,_0x5c7083=_0x5c7083===undefined?'1':_0x5c7083,this['sendRequest'](util[_0x40e2f9('0x2a')]('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0x16645f,_0x11bbf8*0x3e8,_0x5c7083));},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x6')]=function(_0x608a46){const _0xf65397=_0x588fb8;return _0x608a46=_0x608a46||_0xf65397('0x41'),this[_0xf65397('0xb')](util[_0xf65397('0x2a')](_0xf65397('0x17'),_0x608a46));},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x22')]=function(_0x356ec9,_0x2aa637){const _0x27fa14=_0x588fb8;if(_[_0x27fa14('0x2d')](_0x2aa637))return this[_0x27fa14('0xb')](util['format'](_0x27fa14('0x2f'),_0x356ec9,_0x2aa637['join'](',')));return this[_0x27fa14('0xb')](util['format'](_0x27fa14('0x2f'),_0x356ec9,_0x2aa637));},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x25')]=function(_0x7f86ae){const _0x50ca7c=_0x588fb8;return this['sendRequest'](util[_0x50ca7c('0x2a')]('SET\x20CONTEXT\x20%s',_0x7f86ae));},AGIChannel['prototype'][_0x588fb8('0x7')]=function(_0x548727){const _0x28226b=_0x588fb8;return this[_0x28226b('0xb')](util[_0x28226b('0x2a')]('SET\x20EXTENSION\x20%s',_0x548727));},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x8')]=function(_0x135fd5){const _0x194d35=_0x588fb8;return this[_0x194d35('0xb')](util[_0x194d35('0x2a')](_0x194d35('0x37'),_0x135fd5));},AGIChannel[_0x588fb8('0x1c')]['hangup']=function(){const _0x4fc55e=_0x588fb8;return this[_0x4fc55e('0xb')]('HANGUP');},AGIChannel['prototype'][_0x588fb8('0x16')]=function(_0x1f8418,_0x1b7d3e){const _0x54a832=_0x588fb8,_0x50b5e1=_[_0x54a832('0x28')](_0x1b7d3e)||_[_0x54a832('0x42')](_0x1b7d3e)?_0x1b7d3e[_0x54a832('0x46')]():_0x1b7d3e;return this[_0x54a832('0xb')](util['format'](_0x54a832('0xe'),_0x1f8418,_0x50b5e1?_0x50b5e1['toString']()[_0x54a832('0x34')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[_0x588fb8('0x1c')]['sayNumber']=function(_0x2c09f7,_0x26ff43){const _0x47b3df=_0x588fb8;return this[_0x47b3df('0xb')](util[_0x47b3df('0x2a')](_0x47b3df('0x44'),_0x2c09f7,_0x26ff43));},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x1')]=function(_0x4e8aa0,_0x4c1b2f){const _0x259b1f=_0x588fb8;return this['sendRequest'](util[_0x259b1f('0x2a')]('SAY\x20DIGITS\x20%s\x20%s',_0x4e8aa0,_0x4c1b2f));},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x45')]=function(_0x23b7d9,_0x2b2896){const _0xa7fcd7=_0x588fb8;return this['sendRequest'](util['format'](_0xa7fcd7('0x19'),_0x23b7d9,_0x2b2896));},AGIChannel['prototype'][_0x588fb8('0x43')]=function(_0x31968a,_0x43bc4b,_0x5f0c00){const _0x3bcbdb=_0x588fb8;return _0x43bc4b=_0x43bc4b||this['extension'],_0x5f0c00=_0x5f0c00||0x1,this[_0x3bcbdb('0x25')](_0x31968a),this[_0x3bcbdb('0x7')](_0x43bc4b),this[_0x3bcbdb('0x8')](_0x5f0c00),this['noop'](util['format'](_0x3bcbdb('0x3'),_0x31968a,_0x43bc4b,_0x5f0c00));},AGIChannel['prototype']['getVariable']=function(_0x1e8294){const _0x1c5cf1=_0x588fb8;return this[_0x1c5cf1('0xb')](util[_0x1c5cf1('0x2a')](_0x1c5cf1('0xc'),_0x1e8294));},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x3c')]=function(_0x5a7bf6,_0x8a2508,_0x4f79a2,_0x30a3bc,_0xa01221,_0x1d4655){const _0x2dcaee=_0x588fb8;return _0x8a2508=_0x8a2508||'wav',_0x4f79a2=_0x4f79a2||'',_0x30a3bc=_0x30a3bc===undefined?-0x1:_0x30a3bc==='-1'?-0x1:_0x30a3bc*0x3e8,_0xa01221=_0xa01221===undefined?'':'s='+_0xa01221,_0x1d4655=_0x1d4655?_0x2dcaee('0x3b'):'',this[_0x2dcaee('0xb')](util[_0x2dcaee('0x2a')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x5a7bf6,_0x8a2508,_0x4f79a2,_0x30a3bc,_0x1d4655,_0xa01221));},AGIChannel['prototype'][_0x588fb8('0x20')]=function(_0xe2a3a7,_0x1da181){const _0x3bd552=_0x588fb8;return _0x1da181=_0x1da181||'',this[_0x3bd552('0xb')](util['format'](_0x3bd552('0x1f'),_0xe2a3a7,_0x1da181));},AGIChannel[_0x588fb8('0x1c')]['agi']=function(_0x143c49){const _0x10ed77=_0x588fb8;return this[_0x10ed77('0x22')](_0x10ed77('0x1d'),_0x143c49);},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x3d')]=function(_0x28e203){const _0x54b541=_0x588fb8;return this[_0x54b541('0x22')]('WAIT',_0x28e203);},AGIChannel[_0x588fb8('0x1c')][_0x588fb8('0x5')]=function(_0x150707,_0xc7eff2){const _0x434958=_0x588fb8;return this[_0x434958('0x6')](util[_0x434958('0x2a')](_0x434958('0x27'),_0x150707['id'],_0x150707[_0x434958('0x2e')],_0xc7eff2)),{'code':0x1f4,'result':'-1','extra':''};},module['exports']=AGIChannel; \ No newline at end of file diff --git a/server/services/agi/error.js b/server/services/agi/error.js index ce5c707..a19c43d 100644 --- a/server/services/agi/error.js +++ b/server/services/agi/error.js @@ -1 +1 @@ -const a1026_0x4156=['Missing\x20\x27ivr.agi_network_script\x27.','util','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','format','Socket\x20closed.','E_AGI_UNDEFINED','message','exports','name','apply','Server\x20error.\x20Code:\x20%s.','push','Socket\x20timeout.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','Empty\x20command.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','Server\x20closed.','Socket\x20error.\x20Code:\x20%s.','Missing\x20\x27ivr.entry\x27\x20menu.'];(function(_0x33b6bf,_0x415605){const _0xa5a1ed=function(_0x9354f5){while(--_0x9354f5){_0x33b6bf['push'](_0x33b6bf['shift']());}};_0xa5a1ed(++_0x415605);}(a1026_0x4156,0x7f));const a1026_0xa5a1=function(_0x33b6bf,_0x415605){_0x33b6bf=_0x33b6bf-0x0;let _0xa5a1ed=a1026_0x4156[_0x33b6bf];return _0xa5a1ed;};const _0x5954a0=a1026_0xa5a1;'use strict';const util=require(_0x5954a0('0x7')),error={'E_AGI_UNDEFINED':'Undefined\x20error.','E_AGI_ARGUMENT_PORT':_0x5954a0('0x8'),'E_AGI_SERVER_ERROR':_0x5954a0('0x10'),'E_AGI_SERVER_CLOSE':_0x5954a0('0x3'),'E_AGI_SERVER_MAXCONNECTION':_0x5954a0('0x0'),'E_AGI_SERVER_VOICE_DISABLED':_0x5954a0('0x2'),'E_AGI_SOCKET_ERROR':_0x5954a0('0x4'),'E_AGI_SOCKET_CLOSE':_0x5954a0('0xa'),'E_AGI_SOCKET_TIMEOUT':_0x5954a0('0x12'),'E_AGI_COMMAND_EMPTY':_0x5954a0('0x1'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':_0x5954a0('0x6'),'E_AGI_IVR_ENTRY':_0x5954a0('0x5')};function AGIError(_0x9354f5){const _0x24af44=_0x5954a0;_0x9354f5=_0x9354f5||null;const _0xde51a=_0xde51a||[];let _0x1e0cc4=0x1,_0x2262c5='';!error[_0x9354f5]&&(_0x9354f5=_0x24af44('0xb'));_0xde51a[_0x24af44('0x11')](error[_0x9354f5]);while(arguments[_0x1e0cc4]){_0xde51a[_0x24af44('0x11')](arguments[_0x1e0cc4]),_0x1e0cc4++;}_0x2262c5=util[_0x24af44('0x9')][_0x24af44('0xf')](util,_0xde51a),this[_0x24af44('0xc')]=_0x2262c5,this[_0x24af44('0xe')]=_0x9354f5;}module[_0x5954a0('0xd')]=AGIError; \ No newline at end of file +const a1026_0x1a19=['Undefined\x20error.','Empty\x20command.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','message','E_AGI_UNDEFINED','Server\x20error.\x20Code:\x20%s.','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','name','apply','Missing\x20\x27ivr.entry\x27\x20menu.','Socket\x20timeout.','Server\x20closed.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','push','exports'];(function(_0x516dbb,_0x1a19aa){const _0x31ccee=function(_0x50f259){while(--_0x50f259){_0x516dbb['push'](_0x516dbb['shift']());}};_0x31ccee(++_0x1a19aa);}(a1026_0x1a19,0xe6));const a1026_0x31cc=function(_0x516dbb,_0x1a19aa){_0x516dbb=_0x516dbb-0x0;let _0x31ccee=a1026_0x1a19[_0x516dbb];return _0x31ccee;};const _0x1e83ca=a1026_0x31cc;'use strict';const util=require('util'),error={'E_AGI_UNDEFINED':_0x1e83ca('0xa'),'E_AGI_ARGUMENT_PORT':_0x1e83ca('0x1'),'E_AGI_SERVER_ERROR':_0x1e83ca('0x0'),'E_AGI_SERVER_CLOSE':_0x1e83ca('0x6'),'E_AGI_SERVER_MAXCONNECTION':_0x1e83ca('0x7'),'E_AGI_SERVER_VOICE_DISABLED':_0x1e83ca('0xc'),'E_AGI_SOCKET_ERROR':'Socket\x20error.\x20Code:\x20%s.','E_AGI_SOCKET_CLOSE':'Socket\x20closed.','E_AGI_SOCKET_TIMEOUT':_0x1e83ca('0x5'),'E_AGI_COMMAND_EMPTY':_0x1e83ca('0xb'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':'Missing\x20\x27ivr.agi_network_script\x27.','E_AGI_IVR_ENTRY':_0x1e83ca('0x4')};function AGIError(_0x50f259){const _0x3b1d6f=_0x1e83ca;_0x50f259=_0x50f259||null;const _0x3ecc87=_0x3ecc87||[];let _0x589a9b=0x1,_0x3e15b4='';!error[_0x50f259]&&(_0x50f259=_0x3b1d6f('0xe'));_0x3ecc87[_0x3b1d6f('0x8')](error[_0x50f259]);while(arguments[_0x589a9b]){_0x3ecc87[_0x3b1d6f('0x8')](arguments[_0x589a9b]),_0x589a9b++;}_0x3e15b4=util['format'][_0x3b1d6f('0x3')](util,_0x3ecc87),this[_0x3b1d6f('0xd')]=_0x3e15b4,this[_0x3b1d6f('0x2')]=_0x50f259;}module[_0x1e83ca('0x9')]=AGIError; \ No newline at end of file diff --git a/server/services/agi/graph/index.js b/server/services/agi/graph/index.js index 6a98202..4af3829 100644 --- a/server/services/agi/graph/index.js +++ b/server/services/agi/graph/index.js @@ -1 +1 @@ -const a1027_0x2b4d=['menu','condition','relations','default\x20on\x20switch\x20not\x20found','no\x20vertex\x20found','vswitch','edges','getdigits','default','getVertex','condition\x20not\x20found','split','addVertex','size','length','vertices','traverseBFS','../../../config/logger','info','prototype','agicommand','invalid','exports','target','lodash','numberOfEdges','getsecretdigits','agi','no\x20edge/s\x20available'];(function(_0x76474c,_0x2b4d1e){const _0x51178d=function(_0x12baec){while(--_0x12baec){_0x76474c['push'](_0x76474c['shift']());}};_0x51178d(++_0x2b4d1e);}(a1027_0x2b4d,0x11f));const a1027_0x5117=function(_0x76474c,_0x2b4d1e){_0x76474c=_0x76474c-0x0;let _0x51178d=a1027_0x2b4d[_0x76474c];return _0x51178d;};const _0x5e50cb=a1027_0x5117;'use strict';const _=require(_0x5e50cb('0x1b')),logger=require(_0x5e50cb('0x14'))(_0x5e50cb('0x1')),verticesWithRetry=['menu',_0x5e50cb('0xa'),_0x5e50cb('0x0')],Graph=function(){const _0x523817=_0x5e50cb;this[_0x523817('0x12')]={},this[_0x523817('0x9')]={},this[_0x523817('0x1c')]=0x0;};Graph[_0x5e50cb('0x16')][_0x5e50cb('0xf')]=function(_0x12baec){const _0x508684=_0x5e50cb;this[_0x508684('0x12')][_0x12baec['id']]=_0x12baec,this[_0x508684('0x9')][_0x12baec['id']]=[];},Graph['prototype']['addEdge']=function(_0xdd2f31,_0x5308ec,_0x40184b){const _0x2c4183=_0x5e50cb;this[_0x2c4183('0x9')][_0xdd2f31]['push']({'target':_0x5308ec,'condition':_0x40184b}),this['numberOfEdges']+=0x1;},Graph[_0x5e50cb('0x16')][_0x5e50cb('0x10')]=function(){const _0x5ef8be=_0x5e50cb;return _[_0x5ef8be('0x10')](this['vertices']);},Graph[_0x5e50cb('0x16')][_0x5e50cb('0x5')]=function(){const _0x1fc0e5=_0x5e50cb;return this[_0x1fc0e5('0x1c')];},Graph[_0x5e50cb('0x16')][_0x5e50cb('0xc')]=function(_0x3dc4aa){return this['vertices'][_0x3dc4aa];},Graph[_0x5e50cb('0x16')][_0x5e50cb('0x13')]=function(_0x1dc42e,_0x1bf64f){const _0x972f9e=_0x5e50cb;if(!this[_0x972f9e('0x12')][_0x1dc42e])return logger[_0x972f9e('0x15')](_0x972f9e('0x7'));const _0x4bc8ec=_0x1bf64f(this[_0x972f9e('0x12')][_0x1dc42e]);if(!_0x4bc8ec)return logger['info']('stop\x20traverse');if(this[_0x972f9e('0x9')][_0x1dc42e]['length']===0x0)return logger['info'](_0x972f9e('0x2'));const _0x16fabc=![],_0x4eb105=[];for(let _0x235dfa=0x0,_0x2923d6=[],_0x4bb082=![];_0x235dfa\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','isUndefined','./vertices','arg_1','error','stringify','omit','continueAt','YYYY-MM-DD\x20HH:mm:ss','context','[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','inspect','gotoc','../../config/license/util','Project\x20%s\x20not\x20published','moment','response','toJson','addEdge','vertex','uniqueid','retry','isArray','../../config/environment','./rpc','agi_','undefined','[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s','source','defaults','xml2json','message','then','name','dnid','callerid','mxCell','[LICENSE]\x20CHANNELS:\x20UNLIMITED','extension','callysquare','getSquareProject','[LICENSE]\x20VOICE\x20IS\x20DISABLED','[LICENSE]','hangup','lodash','info','length','gotoc\x20block\x20stop\x20traverse\x20BFS','start','voice','./server','[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','catch','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','evtHangup','calleridname','Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!','format','code','production','traverseBFS','toString','[START\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','close','agicommand','127.0.0.1','createSquareReport','stack','addVertex','sync','target','result'];(function(_0x3fb6fe,_0x5d9001){const _0x2839ab=function(_0x535d5b){while(--_0x535d5b){_0x3fb6fe['push'](_0x3fb6fe['shift']());}};_0x2839ab(++_0x5d9001);}(a1028_0x5d90,0x1e6));const a1028_0x2839=function(_0x3fb6fe,_0x5d9001){_0x3fb6fe=_0x3fb6fe-0x0;let _0x2839ab=a1028_0x5d90[_0x3fb6fe];return _0x2839ab;};const _0x4cba32=a1028_0x2839;'use strict';require('../../globals');const parser=require(_0x4cba32('0xc')),_=require(_0x4cba32('0x1a')),util=require(_0x4cba32('0x38')),moment=require(_0x4cba32('0x57')),config=require(_0x4cba32('0x5')),logger=require(_0x4cba32('0x39'))(_0x4cba32('0x37')),utilLicense=require(_0x4cba32('0x55')),rpc=require(_0x4cba32('0x6')),mailRpc=require('./mailRpc'),Graph=require(_0x4cba32('0x45')),Vertices=require(_0x4cba32('0x4a')),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config['agi']=_[_0x4cba32('0xb')](config[_0x4cba32('0x37')],{'ip':_0x4cba32('0x2f'),'port':0x11dd});async function connectionHandler(_0x535d5b){const _0x32c9d3=_0x4cba32;try{await setChannelVariables(_0x535d5b),await agiHandler(_0x535d5b);}catch(_0x249338){logger['error'](_0x249338[_0x32c9d3('0x31')]);}}function listeningHandler(){const _0x374747=_0x4cba32;console[_0x374747('0x3d')](_0x374747('0x26'),config[_0x374747('0x37')][_0x374747('0x43')]),logger[_0x374747('0x1b')](util['format']('[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d',config[_0x374747('0x37')]['ip'],config[_0x374747('0x37')]['port']));}function errorHandler(_0x41d596){const _0x33722e=_0x4cba32;_0x41d596&&_0x41d596[_0x33722e('0xf')]&&_0x41d596[_0x33722e('0xd')]?logger['error'](util[_0x33722e('0x27')]('[%s]\x20%s',_0x41d596[_0x33722e('0xf')],_0x41d596[_0x33722e('0xd')])):logger['error'](util['format'](_0x33722e('0x47'),_0x41d596[_0x33722e('0x31')]));}function closeHandler(){const _0xd6257e=_0x4cba32;logger[_0xd6257e('0x1b')](util[_0xd6257e('0x27')](_0xd6257e('0x21'),this[_0xd6257e('0x4b')],this['calleridname'],this[_0xd6257e('0x11')],this[_0xd6257e('0x10')],this[_0xd6257e('0x2')]));try{createSquareReport(this);}catch(_0x3b780c){logger['error'](_0x3b780c[_0xd6257e('0x31')]);}}function timeoutHandler(){const _0x4903ee=_0x4cba32;logger[_0x4903ee('0x1b')](util[_0x4903ee('0x27')]('[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',this['arg_1'],this[_0x4903ee('0x25')],this[_0x4903ee('0x11')],this[_0x4903ee('0x10')],this[_0x4903ee('0x2')]));}function hangupHandler(){const _0x2fed87=_0x4cba32;logger[_0x2fed87('0x1b')](util[_0x2fed87('0x27')](_0x2fed87('0x23'),this[_0x2fed87('0x4b')],this['calleridname'],this[_0x2fed87('0x11')],this[_0x2fed87('0x10')],this[_0x2fed87('0x2')])),this[_0x2fed87('0x24')]=!![];}function getRoot(_0x4dc95f){const _0x1f8514=_0x4cba32;return parser[_0x1f8514('0x59')](_0x4dc95f,{'object':!![]})['mxGraphModel']['root'];}function addVertex(_0x1e6aeb,_0xdf275d,_0x44328e){const _0x3488f3=_0x4cba32;_0xdf275d[_0x3488f3('0x2e')]=_0x44328e,typeof _0xdf275d[_0x3488f3('0x3')]!==_0x3488f3('0x8')&&(_0xdf275d[_0x3488f3('0x41')]=parseInt(_0xdf275d[_0x3488f3('0x3')],0xa)),_0x1e6aeb[_0x3488f3('0x32')](_[_0x3488f3('0x4e')](_0xdf275d,'mxCell'));}function initGraph(_0x11497d,_0x4f45ca){const _0x1944fe=_0x4cba32,_0x42b4b6=new Graph();for(const _0x10d21c in _0x11497d){if(typeof _0x11497d[_0x10d21c]!==_0x1944fe('0x8')){if(_[_0x1944fe('0x4')](_0x11497d[_0x10d21c]))for(let _0x435655=0x0;_0x435655<_0x11497d[_0x10d21c][_0x1944fe('0x1c')];_0x435655+=0x1){addVertex(_0x42b4b6,_0x11497d[_0x10d21c][_0x435655],_0x10d21c);}else addVertex(_0x42b4b6,_0x11497d[_0x10d21c],_0x10d21c);}}for(let _0x35aedf=0x0;_0x35aedf<_0x4f45ca[_0x1944fe('0x1c')];_0x35aedf+=0x1){_0x4f45ca[_0x35aedf][_0x1944fe('0xa')]&&_0x4f45ca[_0x35aedf][_0x1944fe('0x34')]&&_0x42b4b6[_0x1944fe('0x0')](_0x4f45ca[_0x35aedf]['source'],_0x4f45ca[_0x35aedf]['target'],_0x4f45ca[_0x35aedf][_0x1944fe('0x3b')]);}return _0x42b4b6;}function getSquareProject(_0x3945f3,_0x744e32){const _0x321bfa=_0x4cba32;rpc[_0x321bfa('0x16')](_0x3945f3)[_0x321bfa('0xe')](function(_0x4b5ec8){_0x744e32(null,_0x4b5ec8);})[_0x321bfa('0x22')](function(_0x3fb60a){_0x744e32(null,_0x3fb60a);});}function createSquareReport(_0x10e5cc,_0x26689b){const _0xd4e833=_0x4cba32;rpc[_0xd4e833('0x30')](_0x10e5cc)[_0xd4e833('0xe')](function(_0x32f252){_0x26689b&&_0x26689b(null,_0x32f252);})[_0xd4e833('0x22')](function(_0x469a91){_0x26689b&&_0x26689b(null,_0x469a91);});}async function setChannelVariables(_0xbe660a){const _0x767772=_0x4cba32;for(const _0x5a9dee in _0xbe660a){typeof _0xbe660a[_0x5a9dee]!==_0x767772('0x8')&&(_0x5a9dee[_0x767772('0x3f')](_0x767772('0x7'))===0x0&&(_0xbe660a[_0x5a9dee['substring'](0x4)]=_0xbe660a[_0x5a9dee],delete _0xbe660a[_0x5a9dee]));}return Promise['resolve'](_0xbe660a);}function getLogFromObject(_0x4c39ef){const _0x1fa68f=_0x4cba32;return util[_0x1fa68f('0x53')](_0x4c39ef,{'showHidden':![],'depth':null});}async function agiHandler(_0x82249){const _0x2b854d=_0x4cba32;let _0x3ed6dc,_0x3ff249,_0x99bc6d,_0x2c8210;logger[_0x2b854d('0x3e')](_0x2b854d('0x44'),JSON['stringify'](_0x82249,null,0x2)),logger[_0x2b854d('0x1b')](util[_0x2b854d('0x27')](_0x2b854d('0x48'),_0x82249['arg_1'],_0x82249['calleridname'],_0x82249['callerid'],_0x82249[_0x2b854d('0x10')],_0x82249['uniqueid'])),_0x82249['on'](_0x2b854d('0x4c'),errorHandler),_0x82249['on'](_0x2b854d('0x2d'),closeHandler),_0x82249['on']('timeout',timeoutHandler),_0x82249[_0x2b854d('0x24')]=![],_0x82249['on'](_0x2b854d('0x19'),hangupHandler);const _0x499287=getSquareProject[_0x2b854d('0x33')](null,_0x82249['arg_1']);return _0x499287?_0x499287[_0x2b854d('0x29')]?(_0x3ed6dc=getRoot(_0x499287[_0x2b854d('0x29')]),_0x3ed6dc&&_0x3ed6dc[_0x2b854d('0x1e')]&&(logger[_0x2b854d('0x3e')]('root',JSON[_0x2b854d('0x4d')](_0x3ed6dc,null,0x2)),_0x82249['joinAt']=moment()[_0x2b854d('0x27')](_0x2b854d('0x50')),_0x3ff249=initGraph(_[_0x2b854d('0x4e')](_0x3ed6dc,_0x2b854d('0x12')),_0x3ed6dc[_0x2b854d('0x12')]),_0x99bc6d=new Vertices(_0x82249,rpc,mailRpc),logger[_0x2b854d('0x1b')](util['format'](_0x2b854d('0x2c'),_0x82249['arg_1'],_0x82249[_0x2b854d('0x25')],_0x82249[_0x2b854d('0x11')],_0x82249[_0x2b854d('0x10')],_0x82249['uniqueid'])),_0x3ff249[_0x2b854d('0x2a')](_0x3ed6dc['start']['id'],function(_0x2dc5ed){const _0x3380e=_0x2b854d;try{_0x2dc5ed=_0x99bc6d[_0x3380e('0x42')](_0x2dc5ed),logger[_0x3380e('0x3e')](_0x3380e('0x1'),JSON[_0x3380e('0x4d')](_0x2dc5ed,null,0x2));if(_0x2dc5ed[_0x3380e('0x2e')]===_0x3380e('0x54'))return logger[_0x3380e('0x1b')](_0x3380e('0x1d')),_0x82249[_0x3380e('0x51')]=_0x2dc5ed[_0x3380e('0x51')]||_0x82249['context'],_0x82249[_0x3380e('0x14')]=_0x2dc5ed[_0x3380e('0x14')],_0x82249['priority']=_0x2dc5ed[_0x3380e('0x3a')]?_0x2dc5ed[_0x3380e('0x3a')]-0x1:0x1,null;else return _0x2dc5ed&&_0x99bc6d[_0x2dc5ed[_0x3380e('0x2e')]]?(_0x2c8210=_0x99bc6d[_0x2dc5ed[_0x3380e('0x2e')]](_0x2dc5ed),logger[_0x3380e('0x1b')](_0x3380e('0x58'),JSON[_0x3380e('0x4d')](_0x2c8210,null,0x2)),_0x2c8210&&_0x2c8210[_0x3380e('0x28')]===AGI_CODE_SUCCESS&&_0x2c8210[_0x3380e('0x35')]!==AGI_RESULT_ERROR&&!_0x82249['evtHangup']?(logger[_0x3380e('0x3e')](_0x3380e('0x58'),getLogFromObject(_0x2c8210)),_[_0x3380e('0x49')](_0x2c8210['result'])?null:_0x2c8210[_0x3380e('0x35')][_0x3380e('0x2b')]()):(logger[_0x3380e('0x4c')](_0x3380e('0x58'),getLogFromObject(_0x2c8210)),null)):(logger['error'](_0x3380e('0x3c')),null);}catch(_0x3f6e9b){return logger[_0x3380e('0x4c')](_0x3f6e9b[_0x3380e('0x31')]),null;}}),_0x3ed6dc[_0x2b854d('0x40')]&&(logger['info'](util[_0x2b854d('0x27')](_0x2b854d('0x52'),_0x82249[_0x2b854d('0x4b')],_0x82249[_0x2b854d('0x25')],_0x82249[_0x2b854d('0x11')],_0x82249[_0x2b854d('0x10')],_0x82249[_0x2b854d('0x2')])),_0x3ff249['traverseBFS'](_0x3ed6dc[_0x2b854d('0x40')]['id'],function(_0xe3832c){const _0x3baded=_0x2b854d;try{return _0xe3832c=_0x99bc6d[_0x3baded('0x42')](_0xe3832c),logger['debug'](_0x3baded('0x1'),JSON[_0x3baded('0x4d')](_0xe3832c,null,0x2)),_0xe3832c&&_0x99bc6d[_0xe3832c[_0x3baded('0x2e')]]?(_0x2c8210=_0x99bc6d[_0xe3832c[_0x3baded('0x2e')]](_0xe3832c),_0x2c8210?(logger['debug']('response',getLogFromObject(_0x2c8210)),_['isUndefined'](_0x2c8210[_0x3baded('0x35')])?null:_0x2c8210['result'][_0x3baded('0x2b')]()):(logger[_0x3baded('0x4c')](_0x3baded('0x58'),getLogFromObject(_0x2c8210)),null)):(logger[_0x3baded('0x4c')]('agicommand\x20not\x20found'),null);}catch(_0xe178ad){return logger[_0x3baded('0x4c')](_0xe178ad[_0x3baded('0x31')]),null;}})),logger['info'](util[_0x2b854d('0x27')]('[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x82249[_0x2b854d('0x4b')],_0x82249[_0x2b854d('0x25')],_0x82249[_0x2b854d('0x11')],_0x82249['dnid'],_0x82249[_0x2b854d('0x2')])),logger[_0x2b854d('0x1b')](util[_0x2b854d('0x27')](_0x2b854d('0x9'),_0x82249[_0x2b854d('0x51')],_0x82249[_0x2b854d('0x14')],parseInt(_0x82249[_0x2b854d('0x3a')],0xa)+0x1)),_0x82249[_0x2b854d('0x4f')](_0x82249[_0x2b854d('0x51')],_0x82249[_0x2b854d('0x14')],parseInt(_0x82249[_0x2b854d('0x3a')],0xa)+0x1),_0x82249[_0x2b854d('0x2d')]())):(logger['error'](util[_0x2b854d('0x27')](_0x2b854d('0x56'),_0x82249[_0x2b854d('0x4b')])),_0x82249[_0x2b854d('0x4f')](_0x82249[_0x2b854d('0x51')],_0x82249[_0x2b854d('0x14')],parseInt(_0x82249[_0x2b854d('0x3a')],0xa)+0x1),_0x82249[_0x2b854d('0x2d')]()):(logger[_0x2b854d('0x4c')](util[_0x2b854d('0x27')]('Project\x20%s\x20not\x20found',_0x82249[_0x2b854d('0x4b')])),_0x82249[_0x2b854d('0x4f')](_0x82249[_0x2b854d('0x51')],_0x82249['extension'],parseInt(_0x82249[_0x2b854d('0x3a')],0xa)+0x1),_0x82249[_0x2b854d('0x2d')]()),Promise[_0x2b854d('0x36')]();}function main(){const _0x3aeec2=_0x4cba32;let _0x4780c1;return utilLicense['getLicense']()[_0x3aeec2('0xe')](function(_0x40052e){const _0x1bf5fc=_0x3aeec2;_0x40052e&&(_0x40052e[_0x1bf5fc('0x1f')]?_0x40052e[_0x1bf5fc('0x15')]&&_0x40052e['callysquare']>0x0?(logger['info'](util[_0x1bf5fc('0x27')]('[LICENSE]\x20CHANNELS:\x20%s',_0x40052e['callysquare'])),_0x4780c1=_0x40052e[_0x1bf5fc('0x15')]):logger[_0x1bf5fc('0x1b')](_0x1bf5fc('0x13')):(logger['info'](_0x1bf5fc('0x17')),_0x4780c1=-0x1));})[_0x3aeec2('0x22')](function(_0x3f848b){const _0xd198ec=_0x3aeec2;logger[_0xd198ec('0x4c')](_0xd198ec('0x18'),_0x3f848b[_0xd198ec('0x31')]);})[_0x3aeec2('0x40')](function(){const _0x43b4c7=_0x3aeec2,_0x3e9cea=require(_0x43b4c7('0x20'))(config[_0x43b4c7('0x37')]['port'],config[_0x43b4c7('0x37')]['ip'],_0x4780c1);_0x3e9cea['on'](_0x43b4c7('0x4c'),errorHandler),_0x3e9cea['on'](_0x43b4c7('0x46'),listeningHandler),_0x3e9cea['on']('connection',connectionHandler),_0x3e9cea['on'](_0x43b4c7('0x2d'),closeHandler);});}main(); \ No newline at end of file +const a1028_0x2389=['agi_','sync','addEdge','indexOf','agi','Project\x20%s\x20not\x20published','mxCell','extension','agicommand','format','result','toJson','stack','mxGraphModel','log','../../globals','./rpc','moment','getSquareProject','isUndefined','xml2json','context','dnid','code','./graph','[LICENSE]\x20CHANNELS:\x20UNLIMITED','continueAt','YYYY-MM-DD\x20HH:mm:ss','error','omit','./server','[LICENSE]\x20CHANNELS:\x20%s','port','gotoc','[LICENSE]\x20VOICE\x20IS\x20DISABLED','then','../../config/logger','hangup','inspect','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','value','clear','start','catch','./mailRpc','lodash','root','name','callerid','priority','[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','[%s]\x20%s','variables','finally','listening','calleridname','evtHangup','addVertex','vertex','stringify','../../config/license/util','[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','response','traverseBFS','info','close','source','callysquare','[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d','maxRetry','undefined','[START\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','debug','agicommand\x20not\x20found','isArray','[ERROR]\x20%s','resolve','substring','arg_1','util','joinAt','retry','127.0.0.1','uniqueid','length','toString','message'];(function(_0x47867e,_0x2389c9){const _0x5e421b=function(_0x5adad6){while(--_0x5adad6){_0x47867e['push'](_0x47867e['shift']());}};_0x5e421b(++_0x2389c9);}(a1028_0x2389,0x153));const a1028_0x5e42=function(_0x47867e,_0x2389c9){_0x47867e=_0x47867e-0x0;let _0x5e421b=a1028_0x2389[_0x47867e];return _0x5e421b;};const _0x536318=a1028_0x5e42;'use strict';require(_0x536318('0x18'));const parser=require(_0x536318('0x1d')),_=require(_0x536318('0x36')),util=require(_0x536318('0x1')),moment=require(_0x536318('0x1a')),config=require('../../config/environment'),logger=require(_0x536318('0x2d'))('agi'),utilLicense=require(_0x536318('0x45')),rpc=require(_0x536318('0x19')),mailRpc=require(_0x536318('0x35')),Graph=require(_0x536318('0x21')),Vertices=require('./vertices'),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config['agi']=_['defaults'](config[_0x536318('0xd')],{'ip':_0x536318('0x4'),'port':0x11dd});async function connectionHandler(_0x5adad6){const _0xae5220=_0x536318;try{await setChannelVariables(_0x5adad6),await agiHandler(_0x5adad6);}catch(_0x4c69e3){logger[_0xae5220('0x25')](_0x4c69e3[_0xae5220('0x15')]);}}function listeningHandler(){const _0x474c37=_0x536318;console[_0x474c37('0x17')]('Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!',config[_0x474c37('0xd')]['port']),logger[_0x474c37('0x49')](util[_0x474c37('0x12')](_0x474c37('0x4d'),config[_0x474c37('0xd')]['ip'],config[_0x474c37('0xd')][_0x474c37('0x29')]));}function errorHandler(_0x94fc2b){const _0x10353d=_0x536318;_0x94fc2b&&_0x94fc2b['name']&&_0x94fc2b['message']?logger[_0x10353d('0x25')](util[_0x10353d('0x12')](_0x10353d('0x3c'),_0x94fc2b[_0x10353d('0x38')],_0x94fc2b[_0x10353d('0x8')])):logger[_0x10353d('0x25')](util[_0x10353d('0x12')](_0x10353d('0x54'),_0x94fc2b[_0x10353d('0x15')]));}function closeHandler(){const _0x26e0a8=_0x536318;logger['info'](util[_0x26e0a8('0x12')]('[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',this['arg_1'],this[_0x26e0a8('0x40')],this[_0x26e0a8('0x39')],this[_0x26e0a8('0x1f')],this['uniqueid']));try{createSquareReport(this);}catch(_0xde34d6){logger['error'](_0xde34d6[_0x26e0a8('0x15')]);}}function timeoutHandler(){const _0x3e086d=_0x536318;logger[_0x3e086d('0x49')](util[_0x3e086d('0x12')]('[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',this[_0x3e086d('0x0')],this[_0x3e086d('0x40')],this['callerid'],this['dnid'],this[_0x3e086d('0x5')]));}function hangupHandler(){const _0x3c1d86=_0x536318;logger['info'](util['format'](_0x3c1d86('0x30'),this['arg_1'],this[_0x3c1d86('0x40')],this[_0x3c1d86('0x39')],this[_0x3c1d86('0x1f')],this[_0x3c1d86('0x5')])),this[_0x3c1d86('0x41')]=!![];}function getRoot(_0x4d5212){const _0x376d8d=_0x536318;return parser[_0x376d8d('0x14')](_0x4d5212,{'object':!![]})[_0x376d8d('0x16')][_0x376d8d('0x37')];}function addVertex(_0x1fb063,_0xbb0132,_0x9a3510){const _0x2ec6c8=_0x536318;_0xbb0132['agicommand']=_0x9a3510,typeof _0xbb0132[_0x2ec6c8('0x3')]!=='undefined'&&(_0xbb0132[_0x2ec6c8('0x4e')]=parseInt(_0xbb0132['retry'],0xa)),_0x1fb063[_0x2ec6c8('0x42')](_['omit'](_0xbb0132,'mxCell'));}function initGraph(_0x4d1e10,_0x1e28ce){const _0x136c3b=_0x536318,_0x43c442=new Graph();for(const _0x558302 in _0x4d1e10){if(typeof _0x4d1e10[_0x558302]!==_0x136c3b('0x4f')){if(_[_0x136c3b('0x53')](_0x4d1e10[_0x558302]))for(let _0x25484f=0x0;_0x25484f<_0x4d1e10[_0x558302][_0x136c3b('0x6')];_0x25484f+=0x1){addVertex(_0x43c442,_0x4d1e10[_0x558302][_0x25484f],_0x558302);}else addVertex(_0x43c442,_0x4d1e10[_0x558302],_0x558302);}}for(let _0x189692=0x0;_0x189692<_0x1e28ce[_0x136c3b('0x6')];_0x189692+=0x1){_0x1e28ce[_0x189692][_0x136c3b('0x4b')]&&_0x1e28ce[_0x189692]['target']&&_0x43c442[_0x136c3b('0xb')](_0x1e28ce[_0x189692][_0x136c3b('0x4b')],_0x1e28ce[_0x189692]['target'],_0x1e28ce[_0x189692][_0x136c3b('0x31')]);}return _0x43c442;}function getSquareProject(_0x3ad660,_0x2a7212){const _0x3a532a=_0x536318;rpc[_0x3a532a('0x1b')](_0x3ad660)[_0x3a532a('0x2c')](function(_0x3aa8bb){_0x2a7212(null,_0x3aa8bb);})[_0x3a532a('0x34')](function(_0x5dcaef){_0x2a7212(null,_0x5dcaef);});}function createSquareReport(_0x53b69e,_0x353d65){const _0x26b134=_0x536318;rpc['createSquareReport'](_0x53b69e)[_0x26b134('0x2c')](function(_0x27f456){_0x353d65&&_0x353d65(null,_0x27f456);})[_0x26b134('0x34')](function(_0x33830b){_0x353d65&&_0x353d65(null,_0x33830b);});}async function setChannelVariables(_0x42253a){const _0x4fce77=_0x536318;for(const _0x591cd3 in _0x42253a){typeof _0x42253a[_0x591cd3]!==_0x4fce77('0x4f')&&(_0x591cd3[_0x4fce77('0xc')](_0x4fce77('0x9'))===0x0&&(_0x42253a[_0x591cd3[_0x4fce77('0x56')](0x4)]=_0x42253a[_0x591cd3],delete _0x42253a[_0x591cd3]));}return Promise[_0x4fce77('0x55')](_0x42253a);}function getLogFromObject(_0x1dafab){const _0x44cd42=_0x536318;return util[_0x44cd42('0x2f')](_0x1dafab,{'showHidden':![],'depth':null});}async function agiHandler(_0x2deb89){const _0x4cfe8b=_0x536318;let _0x5d4418,_0x11542a,_0x16bb4c,_0x2a5951;logger[_0x4cfe8b('0x51')](_0x4cfe8b('0x3d'),JSON[_0x4cfe8b('0x44')](_0x2deb89,null,0x2)),logger['info'](util[_0x4cfe8b('0x12')]('[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x2deb89[_0x4cfe8b('0x0')],_0x2deb89[_0x4cfe8b('0x40')],_0x2deb89[_0x4cfe8b('0x39')],_0x2deb89[_0x4cfe8b('0x1f')],_0x2deb89[_0x4cfe8b('0x5')])),_0x2deb89['on'](_0x4cfe8b('0x25'),errorHandler),_0x2deb89['on'](_0x4cfe8b('0x4a'),closeHandler),_0x2deb89['on']('timeout',timeoutHandler),_0x2deb89['evtHangup']=![],_0x2deb89['on'](_0x4cfe8b('0x2e'),hangupHandler);const _0x3bafcd=getSquareProject[_0x4cfe8b('0xa')](null,_0x2deb89[_0x4cfe8b('0x0')]);return _0x3bafcd?_0x3bafcd['production']?(_0x5d4418=getRoot(_0x3bafcd['production']),_0x5d4418&&_0x5d4418[_0x4cfe8b('0x33')]&&(logger[_0x4cfe8b('0x51')]('root',JSON[_0x4cfe8b('0x44')](_0x5d4418,null,0x2)),_0x2deb89[_0x4cfe8b('0x2')]=moment()[_0x4cfe8b('0x12')](_0x4cfe8b('0x24')),_0x11542a=initGraph(_[_0x4cfe8b('0x26')](_0x5d4418,_0x4cfe8b('0xf')),_0x5d4418[_0x4cfe8b('0xf')]),_0x16bb4c=new Vertices(_0x2deb89,rpc,mailRpc),logger['info'](util['format'](_0x4cfe8b('0x50'),_0x2deb89[_0x4cfe8b('0x0')],_0x2deb89[_0x4cfe8b('0x40')],_0x2deb89['callerid'],_0x2deb89[_0x4cfe8b('0x1f')],_0x2deb89[_0x4cfe8b('0x5')])),_0x11542a[_0x4cfe8b('0x48')](_0x5d4418[_0x4cfe8b('0x33')]['id'],function(_0x3c58f7){const _0x5c9e32=_0x4cfe8b;try{_0x3c58f7=_0x16bb4c[_0x5c9e32('0x32')](_0x3c58f7),logger[_0x5c9e32('0x51')](_0x5c9e32('0x43'),JSON[_0x5c9e32('0x44')](_0x3c58f7,null,0x2));if(_0x3c58f7['agicommand']===_0x5c9e32('0x2a'))return logger[_0x5c9e32('0x49')]('gotoc\x20block\x20stop\x20traverse\x20BFS'),_0x2deb89[_0x5c9e32('0x1e')]=_0x3c58f7[_0x5c9e32('0x1e')]||_0x2deb89[_0x5c9e32('0x1e')],_0x2deb89[_0x5c9e32('0x10')]=_0x3c58f7[_0x5c9e32('0x10')],_0x2deb89[_0x5c9e32('0x3a')]=_0x3c58f7['priority']?_0x3c58f7['priority']-0x1:0x1,null;else return _0x3c58f7&&_0x16bb4c[_0x3c58f7[_0x5c9e32('0x11')]]?(_0x2a5951=_0x16bb4c[_0x3c58f7[_0x5c9e32('0x11')]](_0x3c58f7),logger[_0x5c9e32('0x49')](_0x5c9e32('0x47'),JSON[_0x5c9e32('0x44')](_0x2a5951,null,0x2)),_0x2a5951&&_0x2a5951[_0x5c9e32('0x20')]===AGI_CODE_SUCCESS&&_0x2a5951['result']!==AGI_RESULT_ERROR&&!_0x2deb89[_0x5c9e32('0x41')]?(logger[_0x5c9e32('0x51')]('response',getLogFromObject(_0x2a5951)),_[_0x5c9e32('0x1c')](_0x2a5951[_0x5c9e32('0x13')])?null:_0x2a5951['result'][_0x5c9e32('0x7')]()):(logger['error']('response',getLogFromObject(_0x2a5951)),null)):(logger['error'](_0x5c9e32('0x52')),null);}catch(_0x58500b){return logger[_0x5c9e32('0x25')](_0x58500b[_0x5c9e32('0x15')]),null;}}),_0x5d4418['finally']&&(logger[_0x4cfe8b('0x49')](util['format'](_0x4cfe8b('0x3b'),_0x2deb89[_0x4cfe8b('0x0')],_0x2deb89[_0x4cfe8b('0x40')],_0x2deb89[_0x4cfe8b('0x39')],_0x2deb89[_0x4cfe8b('0x1f')],_0x2deb89[_0x4cfe8b('0x5')])),_0x11542a[_0x4cfe8b('0x48')](_0x5d4418[_0x4cfe8b('0x3e')]['id'],function(_0x425700){const _0xc34a6=_0x4cfe8b;try{return _0x425700=_0x16bb4c[_0xc34a6('0x32')](_0x425700),logger['debug'](_0xc34a6('0x43'),JSON['stringify'](_0x425700,null,0x2)),_0x425700&&_0x16bb4c[_0x425700[_0xc34a6('0x11')]]?(_0x2a5951=_0x16bb4c[_0x425700['agicommand']](_0x425700),_0x2a5951?(logger['debug'](_0xc34a6('0x47'),getLogFromObject(_0x2a5951)),_[_0xc34a6('0x1c')](_0x2a5951['result'])?null:_0x2a5951['result'][_0xc34a6('0x7')]()):(logger[_0xc34a6('0x25')](_0xc34a6('0x47'),getLogFromObject(_0x2a5951)),null)):(logger[_0xc34a6('0x25')]('agicommand\x20not\x20found'),null);}catch(_0x17f5e1){return logger[_0xc34a6('0x25')](_0x17f5e1['stack']),null;}})),logger[_0x4cfe8b('0x49')](util[_0x4cfe8b('0x12')](_0x4cfe8b('0x46'),_0x2deb89[_0x4cfe8b('0x0')],_0x2deb89['calleridname'],_0x2deb89['callerid'],_0x2deb89[_0x4cfe8b('0x1f')],_0x2deb89['uniqueid'])),logger[_0x4cfe8b('0x49')](util[_0x4cfe8b('0x12')]('[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s',_0x2deb89[_0x4cfe8b('0x1e')],_0x2deb89[_0x4cfe8b('0x10')],parseInt(_0x2deb89[_0x4cfe8b('0x3a')],0xa)+0x1)),_0x2deb89[_0x4cfe8b('0x23')](_0x2deb89['context'],_0x2deb89[_0x4cfe8b('0x10')],parseInt(_0x2deb89['priority'],0xa)+0x1),_0x2deb89[_0x4cfe8b('0x4a')]())):(logger[_0x4cfe8b('0x25')](util[_0x4cfe8b('0x12')](_0x4cfe8b('0xe'),_0x2deb89[_0x4cfe8b('0x0')])),_0x2deb89[_0x4cfe8b('0x23')](_0x2deb89['context'],_0x2deb89[_0x4cfe8b('0x10')],parseInt(_0x2deb89[_0x4cfe8b('0x3a')],0xa)+0x1),_0x2deb89[_0x4cfe8b('0x4a')]()):(logger['error'](util[_0x4cfe8b('0x12')]('Project\x20%s\x20not\x20found',_0x2deb89[_0x4cfe8b('0x0')])),_0x2deb89['continueAt'](_0x2deb89[_0x4cfe8b('0x1e')],_0x2deb89[_0x4cfe8b('0x10')],parseInt(_0x2deb89[_0x4cfe8b('0x3a')],0xa)+0x1),_0x2deb89[_0x4cfe8b('0x4a')]()),Promise[_0x4cfe8b('0x55')]();}function main(){const _0x57baa9=_0x536318;let _0x2749c3;return utilLicense['getLicense']()['then'](function(_0x1fd37e){const _0x32aa36=a1028_0x5e42;_0x1fd37e&&(_0x1fd37e['voice']?_0x1fd37e[_0x32aa36('0x4c')]&&_0x1fd37e[_0x32aa36('0x4c')]>0x0?(logger[_0x32aa36('0x49')](util[_0x32aa36('0x12')](_0x32aa36('0x28'),_0x1fd37e['callysquare'])),_0x2749c3=_0x1fd37e[_0x32aa36('0x4c')]):logger[_0x32aa36('0x49')](_0x32aa36('0x22')):(logger[_0x32aa36('0x49')](_0x32aa36('0x2b')),_0x2749c3=-0x1));})['catch'](function(_0xd1bf8b){const _0xecff68=a1028_0x5e42;logger[_0xecff68('0x25')]('[LICENSE]',_0xd1bf8b[_0xecff68('0x15')]);})[_0x57baa9('0x3e')](function(){const _0x34094=_0x57baa9,_0x750cd9=require(_0x34094('0x27'))(config[_0x34094('0xd')][_0x34094('0x29')],config[_0x34094('0xd')]['ip'],_0x2749c3);_0x750cd9['on'](_0x34094('0x25'),errorHandler),_0x750cd9['on'](_0x34094('0x3f'),listeningHandler),_0x750cd9['on']('connection',connectionHandler),_0x750cd9['on']('close',closeHandler);});}main(); \ No newline at end of file diff --git a/server/services/agi/mailRpc/index.js b/server/services/agi/mailRpc/index.js index c0bd2d6..a81f2b2 100644 --- a/server/services/agi/mailRpc/index.js +++ b/server/services/agi/mailRpc/index.js @@ -1 +1 @@ -const a1029_0x45f7=['SendMail','http','request','sendMailMessage','message','error','catch','result'];(function(_0x6dba28,_0x45f779){const _0x9f91f5=function(_0x7f7468){while(--_0x7f7468){_0x6dba28['push'](_0x6dba28['shift']());}};_0x9f91f5(++_0x45f779);}(a1029_0x45f7,0x121));const a1029_0x9f91=function(_0x6dba28,_0x45f779){_0x6dba28=_0x6dba28-0x0;let _0x9f91f5=a1029_0x45f7[_0x6dba28];return _0x9f91f5;};const _0x18ac48=a1029_0x9f91;'use strict';const jayson=require('jayson/promise'),client=jayson['client'][_0x18ac48('0x0')]({'port':0x232b});function request(_0x7f7468,_0x3575c6){return new Promise(function(_0x8ea756,_0x350552){const _0xe71101=a1029_0x9f91;return client[_0xe71101('0x1')](_0x7f7468,_0x3575c6)['then'](function(_0x2f96f4){const _0x5cf347=_0xe71101;return _0x2f96f4[_0x5cf347('0x4')]?_0x350552(_0x2f96f4[_0x5cf347('0x4')][_0x5cf347('0x3')]):_0x8ea756(_0x2f96f4[_0x5cf347('0x6')]);})[_0xe71101('0x5')](function(_0x15702e){return _0x350552(_0x15702e);});});}exports[_0x18ac48('0x2')]=function(_0x4177a0,_0x5175b8){const _0x9a1500=_0x18ac48;return request(_0x9a1500('0x7'),{'account':_0x4177a0,'message':_0x5175b8});}; \ No newline at end of file +const a1029_0x1922=['catch','sendMailMessage','http','SendMail','client','error','jayson/promise','message','request','then'];(function(_0x25db65,_0x1922fb){const _0x659824=function(_0x49c967){while(--_0x49c967){_0x25db65['push'](_0x25db65['shift']());}};_0x659824(++_0x1922fb);}(a1029_0x1922,0x140));const a1029_0x6598=function(_0x25db65,_0x1922fb){_0x25db65=_0x25db65-0x0;let _0x659824=a1029_0x1922[_0x25db65];return _0x659824;};const _0x5db01f=a1029_0x6598;'use strict';const jayson=require(_0x5db01f('0x6')),client=jayson[_0x5db01f('0x4')][_0x5db01f('0x2')]({'port':0x232b});function request(_0x49c967,_0x1e346f){return new Promise(function(_0x53df38,_0x1faefb){const _0x438c20=a1029_0x6598;return client[_0x438c20('0x8')](_0x49c967,_0x1e346f)[_0x438c20('0x9')](function(_0x142926){const _0x2ff782=_0x438c20;return _0x142926[_0x2ff782('0x5')]?_0x1faefb(_0x142926[_0x2ff782('0x5')][_0x2ff782('0x7')]):_0x53df38(_0x142926['result']);})[_0x438c20('0x0')](function(_0xfd0ed4){return _0x1faefb(_0xfd0ed4);});});}exports[_0x5db01f('0x1')]=function(_0x45f6d4,_0x529a14){const _0x5e50e4=_0x5db01f;return request(_0x5e50e4('0x3'),{'account':_0x45f6d4,'message':_0x529a14});}; \ No newline at end of file diff --git a/server/services/agi/reply.js b/server/services/agi/reply.js index 15403b0..d65e819 100644 --- a/server/services/agi/reply.js +++ b/server/services/agi/reply.js @@ -1 +1 @@ -const a1030_0x596b=['_inBody','prototype','indexOf','length','exports','util','_localBuffer','emit','split','trim','inherits','Transform','line','\x0d\x0a\x0d\x0a','stream','call','substring'];(function(_0x157d78,_0x596b1d){const _0x35edf3=function(_0x3375cd){while(--_0x3375cd){_0x157d78['push'](_0x157d78['shift']());}};_0x35edf3(++_0x596b1d);}(a1030_0x596b,0x117));const a1030_0x35ed=function(_0x157d78,_0x596b1d){_0x157d78=_0x157d78-0x0;let _0x35edf3=a1030_0x596b[_0x157d78];return _0x35edf3;};const _0x4736cf=a1030_0x35ed;'use strict';const util=require(_0x4736cf('0xf')),Transform=require(_0x4736cf('0x7'))[_0x4736cf('0x4')];function AGIReply(_0x3375cd){const _0x30261d=_0x4736cf;Transform[_0x30261d('0x8')](this,_0x3375cd),this[_0x30261d('0x10')]='',this[_0x30261d('0xa')]=![];}util[_0x4736cf('0x3')](AGIReply,Transform),AGIReply[_0x4736cf('0xb')]['_transform']=function(_0x12913d,_0x59f610,_0x58824a){const _0x3aa255=_0x4736cf,_0x2b4dfb='\x0a',_0x26e453=['\x0a\x0a',_0x3aa255('0x6')];let _0x1b47b7=-0x1,_0xa7803a=-0x1,_0x169127='',_0x4c146a=0x0,_0x2bf42e='',_0x1887eb='';this['_localBuffer']+=_0x12913d['toString'](),_0x2bf42e=this[_0x3aa255('0x10')];if(!this[_0x3aa255('0xa')]){_0x4c146a=0x0;while(_0x26e453[_0x4c146a]){while((_0xa7803a=_0x2bf42e[_0x3aa255('0xc')](_0x26e453[_0x4c146a]))!=-0x1){_0x169127=_0x26e453[_0x4c146a],_0x1887eb=_0x2bf42e[_0x3aa255('0x9')](0x0,_0xa7803a),_0x2bf42e=_0x2bf42e[_0x3aa255('0x9')](_0xa7803a+_0x169127[_0x3aa255('0xd')]);const _0x22fd08=_0x1887eb[_0x3aa255('0x1')](_0x2b4dfb);let _0x5bc217=0x0;const _0x3653b0={};let _0x3d3d18='',_0x3e4803='',_0x387ff0=-0x1;while(_0x22fd08[_0x5bc217]){_0x387ff0=_0x22fd08[_0x5bc217][_0x3aa255('0xc')](':');if(_0x387ff0!=-0x1)_0x3d3d18=_0x22fd08[_0x5bc217]['slice'](0x0,_0x387ff0)[_0x3aa255('0x2')](),_0x3e4803=_0x22fd08[_0x5bc217]['slice'](_0x387ff0+0x1)[_0x3aa255('0x2')](),_0x3d3d18[_0x3aa255('0xd')]>0x0&&(_0x3653b0[_0x3d3d18]=_0x3e4803);else{}_0x5bc217++;}this['emit']('headers',_0x3653b0),this[_0x3aa255('0xa')]=!![];}_0x4c146a++;}this[_0x3aa255('0x10')]=_0x2bf42e;}else{while((_0x1b47b7=_0x2bf42e['indexOf'](_0x2b4dfb))!=-0x1){_0x1887eb=_0x2bf42e['substring'](0x0,_0x1b47b7),this[_0x3aa255('0x0')](_0x3aa255('0x5'),_0x1887eb),_0x2bf42e=_0x2bf42e[_0x3aa255('0x9')](_0x1b47b7+_0x2b4dfb[_0x3aa255('0xd')]);}this[_0x3aa255('0x10')]=_0x2bf42e;}_0x58824a();},module[_0x4736cf('0xe')]=AGIReply; \ No newline at end of file +const a1030_0x52bb=['headers','split','call','substring','inherits','exports','indexOf','prototype','length','Transform','stream','trim','slice','_localBuffer','_inBody','util'];(function(_0x2ff355,_0x52bb6e){const _0x200275=function(_0x1f4a79){while(--_0x1f4a79){_0x2ff355['push'](_0x2ff355['shift']());}};_0x200275(++_0x52bb6e);}(a1030_0x52bb,0x69));const a1030_0x2002=function(_0x2ff355,_0x52bb6e){_0x2ff355=_0x2ff355-0x0;let _0x200275=a1030_0x52bb[_0x2ff355];return _0x200275;};const _0x1c7141=a1030_0x2002;'use strict';const util=require(_0x1c7141('0x6')),Transform=require(_0x1c7141('0x1'))[_0x1c7141('0x0')];function AGIReply(_0x1f4a79){const _0x3fd0be=_0x1c7141;Transform[_0x3fd0be('0x9')](this,_0x1f4a79),this['_localBuffer']='',this['_inBody']=![];}util[_0x1c7141('0xb')](AGIReply,Transform),AGIReply[_0x1c7141('0xe')]['_transform']=function(_0x52cf42,_0x17cf1b,_0x220773){const _0x431f3b=_0x1c7141,_0x3ab57b='\x0a',_0x3d6df5=['\x0a\x0a','\x0d\x0a\x0d\x0a'];let _0x33f957=-0x1,_0x5af7bd=-0x1,_0x223c76='',_0x51b229=0x0,_0x5471a8='',_0x1629d7='';this[_0x431f3b('0x4')]+=_0x52cf42['toString'](),_0x5471a8=this[_0x431f3b('0x4')];if(!this[_0x431f3b('0x5')]){_0x51b229=0x0;while(_0x3d6df5[_0x51b229]){while((_0x5af7bd=_0x5471a8[_0x431f3b('0xd')](_0x3d6df5[_0x51b229]))!=-0x1){_0x223c76=_0x3d6df5[_0x51b229],_0x1629d7=_0x5471a8['substring'](0x0,_0x5af7bd),_0x5471a8=_0x5471a8[_0x431f3b('0xa')](_0x5af7bd+_0x223c76[_0x431f3b('0xf')]);const _0x195e97=_0x1629d7[_0x431f3b('0x8')](_0x3ab57b);let _0x20c1ae=0x0;const _0x59474e={};let _0x279ed4='',_0x43cdde='',_0x556aae=-0x1;while(_0x195e97[_0x20c1ae]){_0x556aae=_0x195e97[_0x20c1ae]['indexOf'](':');if(_0x556aae!=-0x1)_0x279ed4=_0x195e97[_0x20c1ae][_0x431f3b('0x3')](0x0,_0x556aae)[_0x431f3b('0x2')](),_0x43cdde=_0x195e97[_0x20c1ae][_0x431f3b('0x3')](_0x556aae+0x1)[_0x431f3b('0x2')](),_0x279ed4[_0x431f3b('0xf')]>0x0&&(_0x59474e[_0x279ed4]=_0x43cdde);else{}_0x20c1ae++;}this['emit'](_0x431f3b('0x7'),_0x59474e),this['_inBody']=!![];}_0x51b229++;}this[_0x431f3b('0x4')]=_0x5471a8;}else{while((_0x33f957=_0x5471a8['indexOf'](_0x3ab57b))!=-0x1){_0x1629d7=_0x5471a8['substring'](0x0,_0x33f957),this['emit']('line',_0x1629d7),_0x5471a8=_0x5471a8[_0x431f3b('0xa')](_0x33f957+_0x3ab57b[_0x431f3b('0xf')]);}this[_0x431f3b('0x4')]=_0x5471a8;}_0x220773();},module[_0x1c7141('0xc')]=AGIReply; \ No newline at end of file diff --git a/server/services/agi/rpc/index.js b/server/services/agi/rpc/index.js index fef1c95..9dc7711 100644 --- a/server/services/agi/rpc/index.js +++ b/server/services/agi/rpc/index.js @@ -1 +1 @@ -const a1031_0x560c=['catch','ShowSmsAccount','UnpauseUser','getSquareOdbcById','getIntervalById','ShowPause','arg_2','createSquareDetailsReport','lodash','getUserById','agentUnpause','Interval','createSquareReport','CreateSquareDetailsReport','result','ShowSquareProject','createSquareMessage','format','error','createSmsMessage','getPauseById','ShowSquareOdbc','email','getTrunkById','getSmsAccountById','moment','LoginUser','then','phone','ShowUser','message','agentPause','ShowVariable','ListId','YYYY-MM-DD\x20HH:mm:ss','ShowSound','LogoutUser','CreateCmContact','save_name','agentLogout','merge','getMailAccountById','getSquareProjectById','Intervals','agentLogin','CreateSquareMessage','ShowTrunk','getVariableById','ShowMailAccount','ShowCmHopper','http','ShowVoiceQueue','production','ShowInterval','getVoiceQueueById','name'];(function(_0x3a0c66,_0x560c24){const _0x770f94=function(_0x30f351){while(--_0x30f351){_0x3a0c66['push'](_0x3a0c66['shift']());}};_0x770f94(++_0x560c24);}(a1031_0x560c,0x8f));const a1031_0x770f=function(_0x3a0c66,_0x560c24){_0x3a0c66=_0x3a0c66-0x0;let _0x770f94=a1031_0x560c[_0x3a0c66];return _0x770f94;};const _0x57c9b6=a1031_0x770f;'use strict';const moment=require(_0x57c9b6('0x32')),_=require(_0x57c9b6('0x21')),jayson=require('jayson/promise'),client=jayson['client'][_0x57c9b6('0x13')]({'port':0x2329});function request(_0x30f351,_0x3ecc1f){return new Promise(function(_0x264506,_0x2e1e2b){const _0x173241=a1031_0x770f;return client['request'](_0x30f351,_0x3ecc1f)[_0x173241('0x34')](function(_0x1051c5){const _0x3a27d8=_0x173241;return _0x1051c5[_0x3a27d8('0x2b')]?_0x2e1e2b(_0x1051c5['error'][_0x3a27d8('0x37')]):_0x264506(_0x1051c5[_0x3a27d8('0x27')]);})[_0x173241('0x19')](function(_0x28bcca){return _0x2e1e2b(_0x28bcca);});});}exports['getSquareProject']=function(_0x40474e){const _0x19f200=_0x57c9b6;return request('ShowSquareProject',{'options':{'raw':![],'where':{'name':_0x40474e},'attributes':[_0x19f200('0x15')]}});},exports[_0x57c9b6('0xa')]=function(_0x5dd6f1){const _0x47bff8=_0x57c9b6;return request(_0x47bff8('0x11'),{'options':{'raw':![],'where':{'id':_0x5dd6f1},'include':[{'model':'MailServerOut','as':'Smtp'}],'attributes':['id','name',_0x47bff8('0x2f')]}});},exports[_0x57c9b6('0xb')]=function(_0x2a59ea){const _0x56f317=_0x57c9b6;return request(_0x56f317('0x28'),{'options':{'where':{'id':_0x2a59ea},'attributes':['name']}});},exports[_0x57c9b6('0x17')]=function(_0xd9e5c1){const _0x2c8a95=_0x57c9b6;return request(_0x2c8a95('0x14'),{'options':{'where':{'id':_0xd9e5c1},'attributes':[_0x2c8a95('0x18')]}});},exports[_0x57c9b6('0x10')]=function(_0x332920){const _0x70ffe2=_0x57c9b6;return request(_0x70ffe2('0x1'),{'options':{'where':{'id':_0x332920},'attributes':[_0x70ffe2('0x18')]}});},exports[_0x57c9b6('0x1c')]=function(_0x6c9dad){const _0x292031=_0x57c9b6;return request(_0x292031('0x2e'),{'options':{'where':{'id':_0x6c9dad},'attributes':['dsn']}});},exports[_0x57c9b6('0x22')]=function(_0x1e4fd9){const _0x150c78=_0x57c9b6;return request(_0x150c78('0x36'),{'options':{'where':{'id':_0x1e4fd9},'attributes':[_0x150c78('0x18')]}});},exports[_0x57c9b6('0x30')]=function(_0x316bfe){const _0x24220b=_0x57c9b6;return request(_0x24220b('0xf'),{'options':{'where':{'id':_0x316bfe},'attributes':[_0x24220b('0x18')]}});},exports['getSoundById']=function(_0x4ca240){const _0x52f32e=_0x57c9b6;return request(_0x52f32e('0x4'),{'options':{'where':{'id':_0x4ca240},'attributes':[_0x52f32e('0x7')]}});},exports[_0x57c9b6('0x1d')]=function(_0x1a99ce){const _0x4a6e0a=_0x57c9b6;return request(_0x4a6e0a('0x16'),{'options':{'raw':![],'where':{'id':_0x1a99ce},'include':[{'model':_0x4a6e0a('0x24'),'as':_0x4a6e0a('0xc')}]}});},exports[_0x57c9b6('0x31')]=function(_0x36140a){const _0x1e1113=_0x57c9b6;return request(_0x1e1113('0x1a'),{'options':{'where':{'id':_0x36140a},'attributes':['id','name']}});},exports[_0x57c9b6('0x2c')]=function(_0x274b49){return request('CreateSmsMessage',{'body':_0x274b49});},exports[_0x57c9b6('0x20')]=function(_0x20e022){const _0x3d0d48=_0x57c9b6;return request(_0x3d0d48('0x26'),{'body':_0x20e022});},exports[_0x57c9b6('0x25')]=function(_0x4f5e82){const _0x5ce184=_0x57c9b6;return request('CreateSquareReport',{'body':_[_0x5ce184('0x9')](_0x4f5e82,{'project_name':_0x4f5e82['arg_1'],'prev_project_name':_0x4f5e82[_0x5ce184('0x1f')]||'','is_subproject':_0x4f5e82[_0x5ce184('0x1f')]?!![]:![],'leaveAt':moment()[_0x5ce184('0x2a')](_0x5ce184('0x3'))})});},exports['createSquareRecording']=function(_0x1ca599){return request('CreateSquareRecording',{'body':_0x1ca599});},exports[_0x57c9b6('0x29')]=function(_0x10cd6e){const _0x2a8713=_0x57c9b6;return request(_0x2a8713('0xe'),{'body':_0x10cd6e});},exports['createCmContact']=function(_0x385ff1){const _0x548dda=_0x57c9b6;return request(_0x548dda('0x12'),{'options':{'raw':![],'where':{'phone':_0x385ff1[_0x548dda('0x35')],'ListId':_0x385ff1[_0x548dda('0x2')]}}})['then'](function(_0x39bf8a){const _0x4c4b98=_0x548dda;if(_0x39bf8a)return _0x39bf8a;return request(_0x4c4b98('0x6'),{'body':_0x385ff1});});},exports[_0x57c9b6('0x2d')]=function(_0x2b508c){const _0x36e56e=_0x57c9b6;return request(_0x36e56e('0x1e'),{'options':{'where':{'id':_0x2b508c},'attributes':[_0x36e56e('0x18')]}});},exports[_0x57c9b6('0xd')]=function(_0x579a08,_0x450db0){const _0x4dc8db=_0x57c9b6;return request(_0x4dc8db('0x33'),{'body':{'interface':_0x450db0},'options':{'where':_0x579a08}});},exports[_0x57c9b6('0x0')]=function(_0x1a175f,_0x3fe5bd,_0x3b8f8c){return request('PauseUser',{'body':{'type':_0x3fe5bd,'uniqueid':_0x3b8f8c},'options':{'where':_0x1a175f}});},exports[_0x57c9b6('0x23')]=function(_0x3e17dd){const _0x58b871=_0x57c9b6;return request(_0x58b871('0x1b'),{'body':{},'options':{'where':_0x3e17dd}});},exports[_0x57c9b6('0x8')]=function(_0x18380c){const _0x5b2971=_0x57c9b6;return request(_0x5b2971('0x5'),{'body':{},'options':{'where':_0x18380c}});}; \ No newline at end of file +const a1031_0x2745=['getVariableById','agentLogout','createSquareMessage','CreateCmContact','ShowSmsAccount','LogoutUser','error','ListId','createSquareReport','createSmsMessage','name','Smtp','ShowTrunk','LoginUser','Intervals','createSquareDetailsReport','merge','CreateSquareReport','catch','client','arg_1','message','getSquareOdbcById','http','getSquareProject','request','CreateSquareDetailsReport','result','getPauseById','jayson/promise','save_name','arg_2','getMailAccountById','moment','then','ShowSquareOdbc','getIntervalById','format','ShowPause','agentLogin','Interval','PauseUser','getSoundById','getSquareProjectById','ShowUser','agentUnpause','production','ShowVariable','getUserById','phone','CreateSquareRecording','ShowSound','getSmsAccountById','ShowSquareProject','UnpauseUser','CreateSquareMessage'];(function(_0x105ef4,_0x27454f){const _0xf04514=function(_0x434ab4){while(--_0x434ab4){_0x105ef4['push'](_0x105ef4['shift']());}};_0xf04514(++_0x27454f);}(a1031_0x2745,0x163));const a1031_0xf045=function(_0x105ef4,_0x27454f){_0x105ef4=_0x105ef4-0x0;let _0xf04514=a1031_0x2745[_0x105ef4];return _0xf04514;};const _0x4cf5bc=a1031_0xf045;'use strict';const moment=require(_0x4cf5bc('0xe')),_=require('lodash'),jayson=require(_0x4cf5bc('0xa')),client=jayson[_0x4cf5bc('0x0')][_0x4cf5bc('0x4')]({'port':0x2329});function request(_0x434ab4,_0x4df28d){return new Promise(function(_0x105132,_0x7fd5ec){const _0xdaaca1=a1031_0xf045;return client[_0xdaaca1('0x6')](_0x434ab4,_0x4df28d)[_0xdaaca1('0xf')](function(_0x1dab1f){const _0x3e0c7f=_0xdaaca1;return _0x1dab1f['error']?_0x7fd5ec(_0x1dab1f[_0x3e0c7f('0x2b')][_0x3e0c7f('0x2')]):_0x105132(_0x1dab1f[_0x3e0c7f('0x8')]);})[_0xdaaca1('0x37')](function(_0x20e37d){return _0x7fd5ec(_0x20e37d);});});}exports[_0x4cf5bc('0x5')]=function(_0x573780){const _0xa97169=_0x4cf5bc;return request(_0xa97169('0x22'),{'options':{'raw':![],'where':{'name':_0x573780},'attributes':[_0xa97169('0x1b')]}});},exports[_0x4cf5bc('0xd')]=function(_0x4b9fb9){const _0x28345f=_0x4cf5bc;return request('ShowMailAccount',{'options':{'raw':![],'where':{'id':_0x4b9fb9},'include':[{'model':'MailServerOut','as':_0x28345f('0x30')}],'attributes':['id',_0x28345f('0x2f'),'email']}});},exports[_0x4cf5bc('0x18')]=function(_0x3a828b){const _0x485f7a=_0x4cf5bc;return request(_0x485f7a('0x22'),{'options':{'where':{'id':_0x3a828b},'attributes':[_0x485f7a('0x2f')]}});},exports['getVoiceQueueById']=function(_0x3ffc5a){return request('ShowVoiceQueue',{'options':{'where':{'id':_0x3ffc5a},'attributes':['name']}});},exports[_0x4cf5bc('0x25')]=function(_0x1cc495){const _0xc578c9=_0x4cf5bc;return request(_0xc578c9('0x1c'),{'options':{'where':{'id':_0x1cc495},'attributes':[_0xc578c9('0x2f')]}});},exports[_0x4cf5bc('0x3')]=function(_0x558631){const _0x2d70a3=_0x4cf5bc;return request(_0x2d70a3('0x10'),{'options':{'where':{'id':_0x558631},'attributes':['dsn']}});},exports[_0x4cf5bc('0x1d')]=function(_0x76b9b6){const _0x56bd88=_0x4cf5bc;return request(_0x56bd88('0x19'),{'options':{'where':{'id':_0x76b9b6},'attributes':[_0x56bd88('0x2f')]}});},exports['getTrunkById']=function(_0x31cbfc){const _0x2ef14d=_0x4cf5bc;return request(_0x2ef14d('0x31'),{'options':{'where':{'id':_0x31cbfc},'attributes':[_0x2ef14d('0x2f')]}});},exports[_0x4cf5bc('0x17')]=function(_0x3fafaf){const _0x2afd1e=_0x4cf5bc;return request(_0x2afd1e('0x20'),{'options':{'where':{'id':_0x3fafaf},'attributes':[_0x2afd1e('0xb')]}});},exports[_0x4cf5bc('0x11')]=function(_0x3a7ded){const _0x39ebc6=_0x4cf5bc;return request('ShowInterval',{'options':{'raw':![],'where':{'id':_0x3a7ded},'include':[{'model':_0x39ebc6('0x15'),'as':_0x39ebc6('0x33')}]}});},exports[_0x4cf5bc('0x21')]=function(_0x36540d){const _0x3a4de8=_0x4cf5bc;return request(_0x3a4de8('0x29'),{'options':{'where':{'id':_0x36540d},'attributes':['id',_0x3a4de8('0x2f')]}});},exports[_0x4cf5bc('0x2e')]=function(_0x3dc779){return request('CreateSmsMessage',{'body':_0x3dc779});},exports[_0x4cf5bc('0x34')]=function(_0x19fd54){const _0x23824c=_0x4cf5bc;return request(_0x23824c('0x7'),{'body':_0x19fd54});},exports[_0x4cf5bc('0x2d')]=function(_0x4b3d45){const _0x3bd640=_0x4cf5bc;return request(_0x3bd640('0x36'),{'body':_[_0x3bd640('0x35')](_0x4b3d45,{'project_name':_0x4b3d45[_0x3bd640('0x1')],'prev_project_name':_0x4b3d45['arg_2']||'','is_subproject':_0x4b3d45[_0x3bd640('0xc')]?!![]:![],'leaveAt':moment()[_0x3bd640('0x12')]('YYYY-MM-DD\x20HH:mm:ss')})});},exports['createSquareRecording']=function(_0x5da2be){const _0x3443b7=_0x4cf5bc;return request(_0x3443b7('0x1f'),{'body':_0x5da2be});},exports[_0x4cf5bc('0x27')]=function(_0x1f1c67){const _0x1222ea=_0x4cf5bc;return request(_0x1222ea('0x24'),{'body':_0x1f1c67});},exports['createCmContact']=function(_0x3c27d4){const _0x481b4e=_0x4cf5bc;return request('ShowCmHopper',{'options':{'raw':![],'where':{'phone':_0x3c27d4[_0x481b4e('0x1e')],'ListId':_0x3c27d4[_0x481b4e('0x2c')]}}})['then'](function(_0x2db7bd){const _0xf87c6c=_0x481b4e;if(_0x2db7bd)return _0x2db7bd;return request(_0xf87c6c('0x28'),{'body':_0x3c27d4});});},exports[_0x4cf5bc('0x9')]=function(_0x1dd8c0){const _0x4d2fca=_0x4cf5bc;return request(_0x4d2fca('0x13'),{'options':{'where':{'id':_0x1dd8c0},'attributes':[_0x4d2fca('0x2f')]}});},exports[_0x4cf5bc('0x14')]=function(_0x45f98f,_0x36505c){const _0x36ddd5=_0x4cf5bc;return request(_0x36ddd5('0x32'),{'body':{'interface':_0x36505c},'options':{'where':_0x45f98f}});},exports['agentPause']=function(_0x5397a7,_0x2650b1,_0x5452ab){const _0x1651ff=_0x4cf5bc;return request(_0x1651ff('0x16'),{'body':{'type':_0x2650b1,'uniqueid':_0x5452ab},'options':{'where':_0x5397a7}});},exports[_0x4cf5bc('0x1a')]=function(_0x27b95e){const _0x8c1f11=_0x4cf5bc;return request(_0x8c1f11('0x23'),{'body':{},'options':{'where':_0x27b95e}});},exports[_0x4cf5bc('0x26')]=function(_0x3ab44f){const _0xb0cdc0=_0x4cf5bc;return request(_0xb0cdc0('0x2a'),{'body':{},'options':{'where':_0x3ab44f}});}; \ No newline at end of file diff --git a/server/services/agi/scripts/aws/index.js b/server/services/agi/scripts/aws/index.js index 1adf3af..f344991 100644 --- a/server/services/agi/scripts/aws/index.js +++ b/server/services/agi/scripts/aws/index.js @@ -1 +1 @@ -const a1032_0x4436=['./polly','./lex'];(function(_0x4c3c4a,_0x44364d){const _0x13889d=function(_0x33c8c8){while(--_0x33c8c8){_0x4c3c4a['push'](_0x4c3c4a['shift']());}};_0x13889d(++_0x44364d);}(a1032_0x4436,0x152));const a1032_0x1388=function(_0x4c3c4a,_0x44364d){_0x4c3c4a=_0x4c3c4a-0x0;let _0x13889d=a1032_0x4436[_0x4c3c4a];return _0x13889d;};const _0x2fd4f5=a1032_0x1388,polly=require(_0x2fd4f5('0x0')),lex=require(_0x2fd4f5('0x1'));module['exports']={'polly':polly,'lex':lex}; \ No newline at end of file +const a1032_0x42dd=['./lex','exports'];(function(_0x28317c,_0x42dd23){const _0x12ff33=function(_0x4b7385){while(--_0x4b7385){_0x28317c['push'](_0x28317c['shift']());}};_0x12ff33(++_0x42dd23);}(a1032_0x42dd,0x197));const a1032_0x12ff=function(_0x28317c,_0x42dd23){_0x28317c=_0x28317c-0x0;let _0x12ff33=a1032_0x42dd[_0x28317c];return _0x12ff33;};const _0xccc147=a1032_0x12ff,polly=require('./polly'),lex=require(_0xccc147('0x1'));module[_0xccc147('0x0')]={'polly':polly,'lex':lex}; \ No newline at end of file diff --git a/server/services/agi/scripts/aws/lex/index.js b/server/services/agi/scripts/aws/lex/index.js index 4ad7b08..4b0d3fa 100644 --- a/server/services/agi/scripts/aws/lex/index.js +++ b/server/services/agi/scripts/aws/lex/index.js @@ -1 +1 @@ -const a1033_0x3962=['exports'];(function(_0x1aebe5,_0x396205){const _0x46d086=function(_0x36b639){while(--_0x36b639){_0x1aebe5['push'](_0x1aebe5['shift']());}};_0x46d086(++_0x396205);}(a1033_0x3962,0x160));const a1033_0x46d0=function(_0x1aebe5,_0x396205){_0x1aebe5=_0x1aebe5-0x0;let _0x46d086=a1033_0x3962[_0x1aebe5];return _0x46d086;};const _0x2545eb=a1033_0x46d0;'use strict';const lex=require('./lib/api');module[_0x2545eb('0x0')]=function(_0x36b639,_0x293f1c,_0x1c0624,_0x362d3b,_0xef35fa,_0x525b1c){return lex(_0x36b639,_0x293f1c,_0x1c0624,_0x362d3b,_0xef35fa,_0x525b1c);}; \ No newline at end of file +const a1033_0x2700=['exports','./lib/api'];(function(_0x190e3d,_0x270061){const _0x357ae2=function(_0xc322d9){while(--_0xc322d9){_0x190e3d['push'](_0x190e3d['shift']());}};_0x357ae2(++_0x270061);}(a1033_0x2700,0x14a));const a1033_0x357a=function(_0x190e3d,_0x270061){_0x190e3d=_0x190e3d-0x0;let _0x357ae2=a1033_0x2700[_0x190e3d];return _0x357ae2;};const _0x58faf5=a1033_0x357a;'use strict';const lex=require(_0x58faf5('0x1'));module[_0x58faf5('0x0')]=function(_0xc322d9,_0x2c353e,_0x5b6052,_0xd3c966,_0x11e945,_0x1542dd){return lex(_0xc322d9,_0x2c353e,_0x5b6052,_0xd3c966,_0x11e945,_0x1542dd);}; \ No newline at end of file diff --git a/server/services/agi/scripts/aws/lex/lib/api.js b/server/services/agi/scripts/aws/lex/lib/api.js index 07a0efc..7ec90f8 100644 --- a/server/services/agi/scripts/aws/lex/lib/api.js +++ b/server/services/agi/scripts/aws/lex/lib/api.js @@ -1 +1 @@ -const a1034_0x1d62=['undefined','$LATEST','aws-sdk','LexRuntime','slots'];(function(_0x38d05b,_0x1d6295){const _0x42660f=function(_0x1b3621){while(--_0x1b3621){_0x38d05b['push'](_0x38d05b['shift']());}};_0x42660f(++_0x1d6295);}(a1034_0x1d62,0x114));const a1034_0x4266=function(_0x38d05b,_0x1d6295){_0x38d05b=_0x38d05b-0x0;let _0x42660f=a1034_0x1d62[_0x38d05b];return _0x42660f;};const _0x3e68e0=a1034_0x4266;'use strict';const AWS=require(_0x3e68e0('0x1'));function lexResult(_0x1b3621,_0x39fcf0){return new Promise(function(_0x3bbddd,_0x38e017){_0x1b3621['postText'](_0x39fcf0,function(_0x35fd4f,_0x454ebc){const _0x1f1f04=a1034_0x4266;_0x35fd4f&&_0x38e017(_0x35fd4f);if(_0x454ebc['slots'])for(const _0x269a7f in _0x454ebc['slots']){if(typeof _0x454ebc[_0x1f1f04('0x3')][_0x269a7f]!==_0x1f1f04('0x4')){const _0x4cf832=_0x454ebc[_0x1f1f04('0x3')][_0x269a7f];_0x454ebc['slot_'+_0x269a7f]=_0x4cf832;}}_0x3bbddd(_0x454ebc);});});}module['exports']=function(_0x4a3721,_0x242031,_0x429c50,_0x59b0a1,_0x9f8273,_0x35cf03){const _0x58fe82=_0x3e68e0,_0x2a3c7e=new AWS[(_0x58fe82('0x2'))]({'accessKeyId':_0x242031,'secretAccessKey':_0x429c50,'region':_0x59b0a1}),_0x51288d={'botAlias':_0x58fe82('0x0'),'botName':_0x35cf03,'inputText':_0x9f8273,'userId':_0x4a3721};return lexResult(_0x2a3c7e,_0x51288d);}; \ No newline at end of file +const a1034_0x3bf8=['aws-sdk','exports','LexRuntime','slot_','undefined','slots','postText'];(function(_0x29a04a,_0x3bf8b1){const _0x10d7e7=function(_0x53bb1b){while(--_0x53bb1b){_0x29a04a['push'](_0x29a04a['shift']());}};_0x10d7e7(++_0x3bf8b1);}(a1034_0x3bf8,0x122));const a1034_0x10d7=function(_0x29a04a,_0x3bf8b1){_0x29a04a=_0x29a04a-0x0;let _0x10d7e7=a1034_0x3bf8[_0x29a04a];return _0x10d7e7;};const _0x4d905c=a1034_0x10d7;'use strict';const AWS=require(_0x4d905c('0x4'));function lexResult(_0x53bb1b,_0x58fab0){return new Promise(function(_0x48e4e6,_0x54377f){const _0x111d31=a1034_0x10d7;_0x53bb1b[_0x111d31('0x3')](_0x58fab0,function(_0x55ff94,_0x37fa3c){const _0x8007d6=_0x111d31;_0x55ff94&&_0x54377f(_0x55ff94);if(_0x37fa3c[_0x8007d6('0x2')])for(const _0x59bfb4 in _0x37fa3c['slots']){if(typeof _0x37fa3c[_0x8007d6('0x2')][_0x59bfb4]!==_0x8007d6('0x1')){const _0x160b2e=_0x37fa3c[_0x8007d6('0x2')][_0x59bfb4];_0x37fa3c[_0x8007d6('0x0')+_0x59bfb4]=_0x160b2e;}}_0x48e4e6(_0x37fa3c);});});}module[_0x4d905c('0x5')]=function(_0x49046d,_0x3d43d1,_0x1c4922,_0x4f02b6,_0x5018f4,_0xdc5f5e){const _0x2ae5e9=_0x4d905c,_0x4f8335=new AWS[(_0x2ae5e9('0x6'))]({'accessKeyId':_0x3d43d1,'secretAccessKey':_0x1c4922,'region':_0x4f02b6}),_0x2e9851={'botAlias':'$LATEST','botName':_0xdc5f5e,'inputText':_0x5018f4,'userId':_0x49046d};return lexResult(_0x4f8335,_0x2e9851);}; \ No newline at end of file diff --git a/server/services/agi/scripts/aws/polly/index.js b/server/services/agi/scripts/aws/polly/index.js index e43dad9..58c965a 100644 --- a/server/services/agi/scripts/aws/polly/index.js +++ b/server/services/agi/scripts/aws/polly/index.js @@ -1 +1 @@ -const a1035_0x3999=['exports','./lib/api'];(function(_0x1c002c,_0x399919){const _0x383a63=function(_0x189b69){while(--_0x189b69){_0x1c002c['push'](_0x1c002c['shift']());}};_0x383a63(++_0x399919);}(a1035_0x3999,0x13d));const a1035_0x383a=function(_0x1c002c,_0x399919){_0x1c002c=_0x1c002c-0x0;let _0x383a63=a1035_0x3999[_0x1c002c];return _0x383a63;};const _0x2b3ed7=a1035_0x383a;'use strict';const polly=require(_0x2b3ed7('0x0'));module[_0x2b3ed7('0x1')]=function(_0x189b69,_0x582593,_0x515281,_0x25ffa8,_0x3d8a39,_0x3899f8,_0x295d7d){return polly(_0x189b69,_0x582593,_0x515281,_0x25ffa8,_0x3d8a39,_0x3899f8,_0x295d7d);}; \ No newline at end of file +const a1035_0x17c4=['exports','./lib/api'];(function(_0xe0303e,_0x17c4c8){const _0x39c1d6=function(_0x3a2a04){while(--_0x3a2a04){_0xe0303e['push'](_0xe0303e['shift']());}};_0x39c1d6(++_0x17c4c8);}(a1035_0x17c4,0x1c1));const a1035_0x39c1=function(_0xe0303e,_0x17c4c8){_0xe0303e=_0xe0303e-0x0;let _0x39c1d6=a1035_0x17c4[_0xe0303e];return _0x39c1d6;};const _0x2f80e6=a1035_0x39c1;'use strict';const polly=require(_0x2f80e6('0x0'));module[_0x2f80e6('0x1')]=function(_0x3a2a04,_0x494b98,_0xe5bc13,_0x371c00,_0x518ed7,_0x3ec9d6,_0x5e7089){return polly(_0x3a2a04,_0x494b98,_0xe5bc13,_0x371c00,_0x518ed7,_0x3ec9d6,_0x5e7089);}; \ No newline at end of file diff --git a/server/services/agi/scripts/aws/polly/lib/api.js b/server/services/agi/scripts/aws/polly/lib/api.js index af80bc3..b6144c9 100644 --- a/server/services/agi/scripts/aws/polly/lib/api.js +++ b/server/services/agi/scripts/aws/polly/lib/api.js @@ -1 +1 @@ -const a1036_0x335a=['AudioStream','writeFile','exports','text','Invalid\x20data\x20response\x20from\x20aws\x20Polly!','synthesizeSpeech','aws-sdk','No\x20data\x20response\x20from\x20aws\x20Polly!'];(function(_0x5c3daf,_0x335aa9){const _0x40d891=function(_0x57fb09){while(--_0x57fb09){_0x5c3daf['push'](_0x5c3daf['shift']());}};_0x40d891(++_0x335aa9);}(a1036_0x335a,0xb0));const a1036_0x40d8=function(_0x5c3daf,_0x335aa9){_0x5c3daf=_0x5c3daf-0x0;let _0x40d891=a1036_0x335a[_0x5c3daf];return _0x40d891;};const _0xe01fe0=a1036_0x40d8;'use strict';const fs=require('fs'),AWS=require(_0xe01fe0('0x6'));function pollyResult(_0x57fb09,_0x5882a5,_0xf5a2fe){return new Promise(function(_0x46e68a,_0x1e956a){const _0x46eb70=a1036_0x40d8;_0x57fb09[_0x46eb70('0x5')](_0x5882a5,function(_0x4e7711,_0x2c12c2){const _0x2b7f30=_0x46eb70;if(_0x4e7711)_0x1e956a(_0x4e7711);else _0x2c12c2?_0x2c12c2[_0x2b7f30('0x0')]instanceof Buffer?fs[_0x2b7f30('0x1')](_0xf5a2fe,_0x2c12c2[_0x2b7f30('0x0')],function(_0x56f576){_0x56f576?_0x1e956a(_0x56f576):_0x46e68a();}):_0x1e956a(new Error(_0x2b7f30('0x4'))):_0x1e956a(new Error(_0x2b7f30('0x7')));});});}module[_0xe01fe0('0x2')]=function(_0x40f5cd,_0x80188c,_0x4f0960,_0x1db9ba,_0x1bab64,_0x4ebdc7,_0x21898e){const _0x16c022=_0xe01fe0,_0x22c99c=new AWS['Polly']({'accessKeyId':_0x40f5cd,'secretAccessKey':_0x80188c,'region':_0x4f0960}),_0x33c414={'Text':_0x1bab64,'TextType':_0x4ebdc7||_0x16c022('0x3'),'OutputFormat':'mp3','VoiceId':_0x1db9ba};return pollyResult(_0x22c99c,_0x33c414,_0x21898e);}; \ No newline at end of file +const a1036_0x1deb=['aws-sdk','Invalid\x20data\x20response\x20from\x20aws\x20Polly!','text','exports','AudioStream','mp3','No\x20data\x20response\x20from\x20aws\x20Polly!','synthesizeSpeech','Polly'];(function(_0x378c9f,_0x1deb89){const _0x4d2f34=function(_0xe2dc2e){while(--_0xe2dc2e){_0x378c9f['push'](_0x378c9f['shift']());}};_0x4d2f34(++_0x1deb89);}(a1036_0x1deb,0x1d5));const a1036_0x4d2f=function(_0x378c9f,_0x1deb89){_0x378c9f=_0x378c9f-0x0;let _0x4d2f34=a1036_0x1deb[_0x378c9f];return _0x4d2f34;};const _0x5f4af4=a1036_0x4d2f;'use strict';const fs=require('fs'),AWS=require(_0x5f4af4('0x8'));function pollyResult(_0xe2dc2e,_0x57428f,_0x52d384){return new Promise(function(_0xe56f90,_0x1815c8){const _0x15d6b1=a1036_0x4d2f;_0xe2dc2e[_0x15d6b1('0x6')](_0x57428f,function(_0x2a151c,_0x40b8e8){const _0x1cd3ab=_0x15d6b1;if(_0x2a151c)_0x1815c8(_0x2a151c);else _0x40b8e8?_0x40b8e8['AudioStream']instanceof Buffer?fs['writeFile'](_0x52d384,_0x40b8e8[_0x1cd3ab('0x3')],function(_0x484e09){_0x484e09?_0x1815c8(_0x484e09):_0xe56f90();}):_0x1815c8(new Error(_0x1cd3ab('0x0'))):_0x1815c8(new Error(_0x1cd3ab('0x5')));});});}module[_0x5f4af4('0x2')]=function(_0x1c891b,_0x38f6d7,_0x4b0ea0,_0x3f4874,_0x21c850,_0x508e8d,_0x2c1117){const _0x2e85d9=_0x5f4af4,_0x561ef5=new AWS[(_0x2e85d9('0x7'))]({'accessKeyId':_0x1c891b,'secretAccessKey':_0x38f6d7,'region':_0x4b0ea0}),_0x16c26d={'Text':_0x21c850,'TextType':_0x508e8d||_0x2e85d9('0x1'),'OutputFormat':_0x2e85d9('0x4'),'VoiceId':_0x3f4874};return pollyResult(_0x561ef5,_0x16c26d,_0x2c1117);}; \ No newline at end of file diff --git a/server/services/agi/scripts/google/asr/index.js b/server/services/agi/scripts/google/asr/index.js index 5a82749..4974742 100644 --- a/server/services/agi/scripts/google/asr/index.js +++ b/server/services/agi/scripts/google/asr/index.js @@ -1 +1 @@ -const a1037_0x5190=['exports','./lib/api'];(function(_0x1bc438,_0x519085){const _0x929ce0=function(_0x445a4d){while(--_0x445a4d){_0x1bc438['push'](_0x1bc438['shift']());}};_0x929ce0(++_0x519085);}(a1037_0x5190,0xa0));const a1037_0x929c=function(_0x1bc438,_0x519085){_0x1bc438=_0x1bc438-0x0;let _0x929ce0=a1037_0x5190[_0x1bc438];return _0x929ce0;};const _0x4801dd=a1037_0x929c;'use strict';const asr=require(_0x4801dd('0x1'));module[_0x4801dd('0x0')]=function(_0x445a4d,_0x3cbaeb,_0xf858f2){return asr(_0x445a4d,_0x3cbaeb,_0xf858f2);}; \ No newline at end of file +const a1037_0x3097=['exports','./lib/api'];(function(_0x3c500f,_0x30976b){const _0x4599f5=function(_0x5f119d){while(--_0x5f119d){_0x3c500f['push'](_0x3c500f['shift']());}};_0x4599f5(++_0x30976b);}(a1037_0x3097,0x7f));const a1037_0x4599=function(_0x3c500f,_0x30976b){_0x3c500f=_0x3c500f-0x0;let _0x4599f5=a1037_0x3097[_0x3c500f];return _0x4599f5;};const _0x5da930=a1037_0x4599;'use strict';const asr=require(_0x5da930('0x0'));module[_0x5da930('0x1')]=function(_0x5f119d,_0x242d84,_0x1b21b1){return asr(_0x5f119d,_0x242d84,_0x1b21b1);}; \ No newline at end of file diff --git a/server/services/agi/scripts/google/asr/lib/api.js b/server/services/agi/scripts/google/asr/lib/api.js index 8239573..b1a5f66 100644 --- a/server/services/agi/scripts/google/asr/lib/api.js +++ b/server/services/agi/scripts/google/asr/lib/api.js @@ -1 +1 @@ -const a1038_0x4b6f=['readFileSync','length','toString','filepath\x20should\x20be\x20a\x20string','/v1/speech:recognize?key=','exports','lang\x20should\x20be\x20a\x20string','8000','string','key\x20should\x20be\x20a\x20string','base64','undefined'];(function(_0x53cc17,_0x4b6ff2){const _0xe4d0c=function(_0x360304){while(--_0x360304){_0x53cc17['push'](_0x53cc17['shift']());}};_0xe4d0c(++_0x4b6ff2);}(a1038_0x4b6f,0xa0));const a1038_0xe4d0=function(_0x53cc17,_0x4b6ff2){_0x53cc17=_0x53cc17-0x0;let _0xe4d0c=a1038_0x4b6f[_0x53cc17];return _0xe4d0c;};const _0x314fd2=a1038_0xe4d0;'use strict';const fs=require('fs'),host='https://speech.googleapis.com';module[_0x314fd2('0x1')]=function(_0x360304,_0x388c92,_0x180fa8){return new Promise(function(_0x536a91,_0x19da52){const _0x4dff22=a1038_0xe4d0;let _0x3d7994;if(typeof _0x360304!=='string'||_0x360304[_0x4dff22('0x9')]===0x0)return _0x19da52(_0x4dff22('0xb'));if(typeof _0x388c92!==_0x4dff22('0x4')||_0x388c92['length']===0x0)return _0x19da52(_0x4dff22('0x5'));if(typeof _0x180fa8!==_0x4dff22('0x7')&&(typeof _0x180fa8!==_0x4dff22('0x4')||_0x180fa8[_0x4dff22('0x9')]===0x0))return _0x19da52(_0x4dff22('0x2'));try{_0x3d7994=fs[_0x4dff22('0x8')](_0x360304)[_0x4dff22('0xa')](_0x4dff22('0x6'));}catch(_0x11b1cf){return _0x19da52(_0x11b1cf);}return _0x536a91({'method':'POST','uri':host+_0x4dff22('0x0')+_0x388c92,'body':{'config':{'encoding':'LINEAR16','sampleRateHertz':_0x4dff22('0x3'),'languageCode':_0x180fa8},'audio':{'content':_0x3d7994}},'json':!![]});});}; \ No newline at end of file +const a1038_0x2992=['key\x20should\x20be\x20a\x20string','readFileSync','undefined','exports','lang\x20should\x20be\x20a\x20string','string','POST','/v1/speech:recognize?key=','base64','length','filepath\x20should\x20be\x20a\x20string','LINEAR16'];(function(_0x3a0921,_0x2992ed){const _0x1ee2d2=function(_0xd515b0){while(--_0xd515b0){_0x3a0921['push'](_0x3a0921['shift']());}};_0x1ee2d2(++_0x2992ed);}(a1038_0x2992,0xce));const a1038_0x1ee2=function(_0x3a0921,_0x2992ed){_0x3a0921=_0x3a0921-0x0;let _0x1ee2d2=a1038_0x2992[_0x3a0921];return _0x1ee2d2;};const _0xd355a0=a1038_0x1ee2;'use strict';const fs=require('fs'),host='https://speech.googleapis.com';module[_0xd355a0('0x1')]=function(_0xd515b0,_0x7b14be,_0x378bca){return new Promise(function(_0x3d3000,_0x49e4b9){const _0xc46fe8=a1038_0x1ee2;let _0x5d259a;if(typeof _0xd515b0!==_0xc46fe8('0x3')||_0xd515b0[_0xc46fe8('0x7')]===0x0)return _0x49e4b9(_0xc46fe8('0x8'));if(typeof _0x7b14be!==_0xc46fe8('0x3')||_0x7b14be['length']===0x0)return _0x49e4b9(_0xc46fe8('0xa'));if(typeof _0x378bca!==_0xc46fe8('0x0')&&(typeof _0x378bca!==_0xc46fe8('0x3')||_0x378bca[_0xc46fe8('0x7')]===0x0))return _0x49e4b9(_0xc46fe8('0x2'));try{_0x5d259a=fs[_0xc46fe8('0xb')](_0xd515b0)['toString'](_0xc46fe8('0x6'));}catch(_0x462a29){return _0x49e4b9(_0x462a29);}return _0x3d3000({'method':_0xc46fe8('0x4'),'uri':host+_0xc46fe8('0x5')+_0x7b14be,'body':{'config':{'encoding':_0xc46fe8('0x9'),'sampleRateHertz':'8000','languageCode':_0x378bca},'audio':{'content':_0x5d259a}},'json':!![]});});}; \ No newline at end of file diff --git a/server/services/agi/scripts/google/index.js b/server/services/agi/scripts/google/index.js index 0704e84..a51f926 100644 --- a/server/services/agi/scripts/google/index.js +++ b/server/services/agi/scripts/google/index.js @@ -1 +1 @@ -const a1039_0x19b3=['./asr','exports'];(function(_0x289474,_0x19b3fd){const _0x390f49=function(_0x4124b3){while(--_0x4124b3){_0x289474['push'](_0x289474['shift']());}};_0x390f49(++_0x19b3fd);}(a1039_0x19b3,0x7f));const a1039_0x390f=function(_0x289474,_0x19b3fd){_0x289474=_0x289474-0x0;let _0x390f49=a1039_0x19b3[_0x289474];return _0x390f49;};const _0x409e01=a1039_0x390f,asr=require(_0x409e01('0x1'));module[_0x409e01('0x0')]={'asr':asr}; \ No newline at end of file +const a1039_0x4998=['./asr','exports'];(function(_0x1ccef2,_0x499890){const _0x4703b9=function(_0x3c0238){while(--_0x3c0238){_0x1ccef2['push'](_0x1ccef2['shift']());}};_0x4703b9(++_0x499890);}(a1039_0x4998,0x1a6));const a1039_0x4703=function(_0x1ccef2,_0x499890){_0x1ccef2=_0x1ccef2-0x0;let _0x4703b9=a1039_0x4998[_0x1ccef2];return _0x4703b9;};const _0x42a49b=a1039_0x4703,asr=require(_0x42a49b('0x0'));module[_0x42a49b('0x1')]={'asr':asr}; \ No newline at end of file diff --git a/server/services/agi/scripts/index.js b/server/services/agi/scripts/index.js index 2cabc19..6a58dc4 100644 --- a/server/services/agi/scripts/index.js +++ b/server/services/agi/scripts/index.js @@ -1 +1 @@ -const a1040_0x3d00=['ssml','transcript','text','nda','error\x20convert','finish\x20download\x20file','createWriteStream','status','MP3','textRequest','data','pipe','\x20failed,\x20status\x20code\x20=\x20','https:','sestekNDA','then','md5','from','split','action','777','googleDialogflow','unlink','[%s]\x20%s:%s','audiofile','audioConfig','https://api.ispeech.org/api/rest','chmodSync','randomstring','tmp','model=%s','confidence','actionIncomplete','error','writeFileSync','protocol','name','googleCloudTTS','http','polly','tildeASR','goggleTTS\x20path','endConversation','finish\x20to\x20convert','querystring','googleTTS','host','WHAT_EVER','CustomAction','.mp3','googleASR\x20transcription','./google','base64','Tilde\x20ASR\x20confidence','awsLex','googleCloudTTS\x20path','.wav','audioContent','util','pathname','transcode','wav','info','https://texttospeech.googleapis.com/v1/','download\x20error','AudioFromTts','CustomActionData','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','../../../config/logger','request\x20to\x20','get','stringify','input','statusMessage','googleASR','end','alternatives','fulfillment','toString','metadata','agi','speech','start','POST','join','./sestek','path','statusCode','asr','results','format','result','source','%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s','awsPolly','resolvedQuery','freeform=3','text:synthesize','finish','readFileSync','score','Tilde\x20ASR\x20transcription','map','catch','ispeechASR','https','?key=','./aws','generate','channelData','resolve','dirName'];(function(_0x9cf343,_0x3d00f1){const _0x1c7baa=function(_0xb16a2e){while(--_0xb16a2e){_0x9cf343['push'](_0x9cf343['shift']());}};_0x1c7baa(++_0x3d00f1);}(a1040_0x3d00,0x152));const a1040_0x1c7b=function(_0x9cf343,_0x3d00f1){_0x9cf343=_0x9cf343-0x0;let _0x1c7baa=a1040_0x3d00[_0x9cf343];return _0x1c7baa;};const _0x26d2cb=a1040_0x1c7b;'use strict';const fs=require('fs'),path=require(_0x26d2cb('0x54')),http=require(_0x26d2cb('0x24')),https=require(_0x26d2cb('0x67')),{URL}=require('url'),rs=require(_0x26d2cb('0x1a')),sox=require('sox'),rp=require('request-promise-native'),util=require(_0x26d2cb('0x38')),querystring=require(_0x26d2cb('0x2a')),tts=require('google-tts-api'),apiai=require('apiai-promise'),md5=require(_0x26d2cb('0xe')),google=require(_0x26d2cb('0x31')),aws=require(_0x26d2cb('0x69')),tilde=require('./tilde'),sestek=require(_0x26d2cb('0x53')),logger=require(_0x26d2cb('0x42'))(_0x26d2cb('0x4e')),ISPEECH_API=_0x26d2cb('0x18');function downloadFile(_0xb16a2e,_0x343840){return new Promise(function(_0x507eca,_0x12b841){const _0x1bf395=a1040_0x1c7b,_0x4be104=new URL(_0xb16a2e),_0xa0c594=_0x4be104[_0x1bf395('0x21')]===_0x1bf395('0xb')?https:http,_0x4f2457={'host':_0x4be104[_0x1bf395('0x2c')],'path':_0x4be104[_0x1bf395('0x39')],'headers':{'user-agent':_0x1bf395('0x2d')}};_0xa0c594[_0x1bf395('0x44')](_0x4f2457,function(_0x152aa0){const _0x1071c1=_0x1bf395;if(_0x152aa0[_0x1071c1('0x55')]!==0xc8){logger[_0x1071c1('0x1f')](_0x1071c1('0x43')+_0xb16a2e+_0x1071c1('0xa')+_0x152aa0[_0x1071c1('0x55')]+'\x20('+_0x152aa0[_0x1071c1('0x47')]+')'),_0x12b841(new Error(_0x1071c1('0x43')+_0xb16a2e+_0x1071c1('0xa')+_0x152aa0[_0x1071c1('0x55')]+'\x20('+_0x152aa0[_0x1071c1('0x47')]+')'));return;}const _0x238aa2=fs[_0x1071c1('0x4')](_0x343840);_0x238aa2['on'](_0x1071c1('0x60'),function(){const _0x1ba1a1=_0x1071c1;logger[_0x1ba1a1('0x3c')](_0x1ba1a1('0x3')),_0x238aa2['close'](_0x507eca);}),_0x238aa2['on']('error',function(_0x4855a0){const _0x50c0df=_0x1071c1;fs[_0x50c0df('0x14')](_0x343840),logger[_0x50c0df('0x1f')](_0x50c0df('0x3e'),_0x4855a0),_0x12b841(_0x4855a0);}),_0x152aa0[_0x1071c1('0x9')](_0x238aa2);})['on'](_0x1bf395('0x1f'),function(_0x531300){const _0x514195=_0x1bf395;logger[_0x514195('0x1f')](_0x531300),_0x12b841(_0x531300);})['end']();});}function uploadFile(_0x5da0a9){return new Promise(function(_0x1d0429,_0x13f824){const _0x21f31d=a1040_0x1c7b,_0x3ab9f7=new URL(_0x5da0a9),_0x17b262=_0x3ab9f7[_0x21f31d('0x21')]==='https:'?https:http,_0x609722={'host':_0x3ab9f7[_0x21f31d('0x2c')],'path':_0x3ab9f7[_0x21f31d('0x39')],'headers':{'user-agent':_0x21f31d('0x2d')}};_0x17b262[_0x21f31d('0x44')](_0x609722,function(_0x171913){const _0x231851=_0x21f31d;if(_0x171913[_0x231851('0x55')]!==0xc8){_0x13f824(new Error(_0x231851('0x43')+_0x5da0a9+_0x231851('0xa')+_0x171913[_0x231851('0x55')]+'\x20('+_0x171913['statusMessage']+')'));return;}let _0x16dfb7='';_0x171913['on'](_0x231851('0x8'),function(_0x277eb7){_0x16dfb7+=_0x277eb7;}),_0x171913['on']('end',function(){_0x1d0429(_0x16dfb7);});})['on'](_0x21f31d('0x1f'),function(_0x55a8d6){_0x13f824(_0x55a8d6);})[_0x21f31d('0x49')]();});}function convertFile(_0x8127e8,_0x5cb756){return new Promise(function(_0x154185,_0x28c854){const _0x1d8da8=a1040_0x1c7b,_0x27591b=sox[_0x1d8da8('0x3a')](_0x8127e8,_0x5cb756,{'sampleRate':0x1f40,'format':_0x1d8da8('0x3b'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x27591b['on'](_0x1d8da8('0x1f'),function(_0x37c045){const _0x30bc98=_0x1d8da8;logger[_0x30bc98('0x1f')](_0x30bc98('0x2'),_0x37c045),_0x28c854(_0x37c045);}),_0x27591b['on']('end',function(){const _0x2e9a85=_0x1d8da8;logger[_0x2e9a85('0x3c')](_0x2e9a85('0x29')),_0x154185();}),_0x27591b[_0x1d8da8('0x50')]();});}function base64Decode(_0x11c605,_0x48e0db){const _0x4a4354=_0x26d2cb,_0x39e8f4=path[_0x4a4354('0x6c')](__dirname,_0x4a4354('0x1b'),rs['generate'](0x4)+_0x4a4354('0x36'));return fs[_0x4a4354('0x20')](_0x39e8f4,_0x11c605,'base64'),convertFile(_0x39e8f4,_0x48e0db)[_0x4a4354('0xd')](function(){const _0x280815=_0x4a4354;try{fs[_0x280815('0x14')](_0x39e8f4),fs[_0x280815('0x19')](_0x48e0db,_0x280815('0x12'));}catch(_0x3e71b9){logger[_0x280815('0x1f')](_0x3e71b9);}return _0x48e0db['split']('.')[0x0];});}function base64Encode(_0x2b71ff){const _0x2e8ab7=_0x26d2cb,_0x21d1ba=fs[_0x2e8ab7('0x61')](_0x2b71ff);return Buffer[_0x2e8ab7('0xf')](_0x21d1ba)[_0x2e8ab7('0x4c')](_0x2e8ab7('0x32'));}exports[_0x26d2cb('0x23')]=function(_0x2a2fa8,_0x5ed2bc,_0x4f0189,_0xb61835,_0x5f4899){const _0x30d391=_0x26d2cb;let _0x7bd895,_0x42ebdd;const _0x2a1cb6=_0x30d391('0x3d'),_0x4b843e=_0x30d391('0x68')+_0x2a2fa8,_0x19a2c9={};_0x5ed2bc===_0x30d391('0x6e')?_0x19a2c9[_0x30d391('0x46')]={'ssml':_0x4f0189}:_0x19a2c9['input']={'text':_0x4f0189};_0x19a2c9['voice']={'languageCode':_0xb61835,'ssmlGender':_0x5f4899},_0x19a2c9[_0x30d391('0x17')]={'audioEncoding':_0x30d391('0x6'),'sampleRateHertz':0x1f40};const _0x39dc2f={'url':_0x2a1cb6+_0x30d391('0x5f')+_0x4b843e,'method':_0x30d391('0x51'),'json':!![],'body':_0x19a2c9};return rp(_0x39dc2f)[_0x30d391('0xd')](function(_0x2e9aae){return new Promise(function(_0x5357a7,_0x3cfe97){const _0x2247b5=a1040_0x1c7b;_0x7bd895=path[_0x2247b5('0x6c')](__dirname,_0x2247b5('0x1b'),rs[_0x2247b5('0x6a')](0x4)+_0x2247b5('0x2f'));const _0x30af6e=Buffer[_0x2247b5('0xf')](_0x2e9aae[_0x2247b5('0x37')],_0x2247b5('0x32'));return fs['writeFile'](_0x7bd895,_0x30af6e,function(_0x91e0cc){_0x3cfe97(_0x91e0cc);},function(_0x858cb5){fs['chmodSync'](_0x7bd895,'777'),_0x5357a7(_0x858cb5);});});})[_0x30d391('0xd')](function(){const _0x189231=_0x30d391;return _0x42ebdd=path[_0x189231('0x6c')](__dirname,'tmp',rs[_0x189231('0x6a')](0x4)+_0x189231('0x36')),convertFile(_0x7bd895,_0x42ebdd);})[_0x30d391('0xd')](function(){const _0xa0a788=_0x30d391;try{fs[_0xa0a788('0x14')](_0x7bd895),fs['chmodSync'](_0x42ebdd,'777');}catch(_0x49b88e){logger[_0xa0a788('0x1f')](_0x49b88e);}return logger[_0xa0a788('0x3c')](_0xa0a788('0x35'),_0x42ebdd[_0xa0a788('0x10')]('.')[0x0]),_0x42ebdd[_0xa0a788('0x10')]('.')[0x0];});},exports[_0x26d2cb('0x2b')]=function(_0x21d302,_0x5a943d){const _0x3a8cf3=_0x26d2cb;let _0x28b60b,_0x539e9f;return tts(_0x21d302,_0x5a943d||'en',0x1)[_0x3a8cf3('0xd')](function(_0x1d83f0){const _0x24cb73=_0x3a8cf3;return logger[_0x24cb73('0x3c')](_0x1d83f0),_0x28b60b=path[_0x24cb73('0x6c')](__dirname,_0x24cb73('0x1b'),rs[_0x24cb73('0x6a')](0x4)+_0x24cb73('0x2f')),downloadFile(_0x1d83f0,_0x28b60b);})['then'](function(){const _0x1b928d=_0x3a8cf3;return _0x539e9f=path[_0x1b928d('0x6c')](__dirname,_0x1b928d('0x1b'),rs[_0x1b928d('0x6a')](0x4)+_0x1b928d('0x36')),convertFile(_0x28b60b,_0x539e9f);})[_0x3a8cf3('0xd')](function(){const _0x2c698b=_0x3a8cf3;try{fs[_0x2c698b('0x14')](_0x28b60b),fs['chmodSync'](_0x539e9f,_0x2c698b('0x12'));}catch(_0x4d6069){logger[_0x2c698b('0x1f')](_0x4d6069);}return logger['info'](_0x2c698b('0x27'),_0x539e9f[_0x2c698b('0x10')]('.')[0x0]),_0x539e9f[_0x2c698b('0x10')]('.')[0x0];});},exports[_0x26d2cb('0x48')]=function(_0x1f938f,_0x5b49ec,_0x2a662c){const _0x259da1=_0x26d2cb;return google[_0x259da1('0x56')](_0x1f938f,_0x5b49ec,_0x2a662c)[_0x259da1('0xd')](function(_0x1041fe){const _0x39f09a=_0x259da1;return logger[_0x39f09a('0x3c')](_0x1041fe['uri']),rp(_0x1041fe);})[_0x259da1('0xd')](function(_0x3cf935){const _0x4c5187=_0x259da1;let _0x9c73b2='',_0x5f5751=0x0;try{fs['unlink'](_0x1f938f);}catch(_0x338bc5){logger[_0x4c5187('0x1f')](_0x338bc5);}return _0x3cf935&&_0x3cf935['results']&&(_0x9c73b2=_0x3cf935[_0x4c5187('0x57')]['map'](function(_0x5f2c6b){const _0x226e8a=_0x4c5187;return _0x5f2c6b&&_0x5f2c6b['alternatives'][0x0]&&_0x5f2c6b[_0x226e8a('0x4a')][0x0]['transcript']?_0x5f2c6b['alternatives'][0x0][_0x226e8a('0x6f')]:'';})[_0x4c5187('0x52')]('\x0a'),_0x5f5751=_0x3cf935['results'][_0x4c5187('0x64')](function(_0x1061a8){const _0x2e2878=_0x4c5187;return _0x1061a8&&_0x1061a8['alternatives'][0x0]&&_0x1061a8[_0x2e2878('0x4a')][0x0]['confidence']?_0x1061a8[_0x2e2878('0x4a')][0x0][_0x2e2878('0x1d')]:0x0;})[_0x4c5187('0x52')]('\x0a')),logger['info'](_0x4c5187('0x30'),_0x9c73b2),logger['info']('googleASR\x20confidence',_0x5f5751),{'transcript':_0x9c73b2,'confidence':_0x5f5751};})[_0x259da1('0x65')](function(_0x301230){const _0x4dbdaf=_0x259da1;logger[_0x4dbdaf('0x1f')](_0x4dbdaf('0x15'),_0x301230['statusCode'],_0x301230[_0x4dbdaf('0x22')],_0x301230['message']);});},exports[_0x26d2cb('0x13')]=function(_0x2e8b91,_0x588099,_0x5c0c8d,_0x383531){const _0x4644a7=_0x26d2cb,_0x918262=apiai(_0x588099,{'language':_0x383531||'en'});return _0x918262[_0x4644a7('0x7')](_0x5c0c8d,{'sessionId':md5(_0x2e8b91)})[_0x4644a7('0xd')](function(_0x51b65a){const _0x5ab68b=_0x4644a7;return logger[_0x5ab68b('0x3c')](JSON['stringify'](_0x51b65a)),{'source':_0x51b65a['result'][_0x5ab68b('0x5a')],'resolvedQuery':_0x51b65a[_0x5ab68b('0x59')][_0x5ab68b('0x5d')],'action':_0x51b65a[_0x5ab68b('0x59')][_0x5ab68b('0x11')],'actionIncomplete':_0x51b65a[_0x5ab68b('0x59')][_0x5ab68b('0x1e')],'speech':_0x51b65a[_0x5ab68b('0x59')][_0x5ab68b('0x4b')][_0x5ab68b('0x4f')],'score':_0x51b65a['result'][_0x5ab68b('0x62')],'statusCode':_0x51b65a[_0x5ab68b('0x5')]['code'],'endConversation':_0x51b65a['result'][_0x5ab68b('0x4d')][_0x5ab68b('0x28')]||![],'isFallbackIntent':_0x51b65a['result'][_0x5ab68b('0x4d')]['isFallbackIntent']};});},exports[_0x26d2cb('0x26')]=function(_0x20fb89,_0x5b3201,_0x5455f1,_0x13f01a){const _0x4fba03=_0x26d2cb;return tilde[_0x4fba03('0x56')](_0x20fb89,_0x5b3201,_0x5455f1,_0x13f01a)[_0x4fba03('0xd')](function(_0x52880d){const _0x4737e6=_0x4fba03;try{fs[_0x4737e6('0x14')](_0x20fb89);}catch(_0x35a42e){logger[_0x4737e6('0x1f')](_0x35a42e);}return logger[_0x4737e6('0x3c')](_0x4737e6('0x63'),_0x52880d[_0x4737e6('0x6f')]),logger[_0x4737e6('0x3c')](_0x4737e6('0x33'),_0x52880d[_0x4737e6('0x1d')]),_0x52880d;});},exports[_0x26d2cb('0x5c')]=function(_0x3318c6,_0x32efe8,_0x20943d,_0x449d55,_0x28ffa4,_0x1274d8){const _0xefadca=_0x26d2cb,_0x10ee35=path[_0xefadca('0x6c')](__dirname,_0xefadca('0x1b'),rs[_0xefadca('0x6a')](0x4)+_0xefadca('0x2f'));let _0x5cf278;return aws[_0xefadca('0x25')](_0x3318c6,_0x32efe8,_0x20943d,_0x449d55,_0x28ffa4,_0x1274d8,_0x10ee35)['then'](function(){const _0x33905b=_0xefadca;return _0x5cf278=path['resolve'](__dirname,_0x33905b('0x1b'),rs[_0x33905b('0x6a')](0x4)+_0x33905b('0x36')),convertFile(_0x10ee35,_0x5cf278);})[_0xefadca('0xd')](function(){const _0x870b73=_0xefadca;try{fs[_0x870b73('0x14')](_0x10ee35),fs[_0x870b73('0x19')](_0x5cf278,'777');}catch(_0x11c9cd){logger['error'](_0x11c9cd);}return _0x5cf278[_0x870b73('0x10')]('.')[0x0];});},exports[_0x26d2cb('0x34')]=function(_0x1358b9,_0x2f8432,_0x241387,_0x807c8c,_0xbe4ca7,_0x52345a){const _0x1076a6=_0x26d2cb;return aws['lex'](_0x1358b9,_0x2f8432,_0x241387,_0x807c8c,_0xbe4ca7,_0x52345a)[_0x1076a6('0xd')](function(_0x4885f4){const _0x377aec=_0x1076a6;return logger['info'](JSON[_0x377aec('0x45')](_0x4885f4)),_0x4885f4;});},exports['ispeechTTS']=function(_0x4cf7bc,_0x15df43,_0x31a550,_0x20b9c5){const _0x1918e6=_0x26d2cb,_0x3f53fc=util[_0x1918e6('0x58')](_0x1918e6('0x41'),ISPEECH_API,_0x4cf7bc,encodeURIComponent(_0x15df43),_0x31a550,_0x20b9c5),_0x2adeac=path['resolve'](__dirname,'tmp',rs[_0x1918e6('0x6a')](0x4)+_0x1918e6('0x2f'));let _0x428e11;return downloadFile(_0x3f53fc,_0x2adeac)[_0x1918e6('0xd')](function(){const _0x2eaf5c=_0x1918e6;return _0x428e11=path[_0x2eaf5c('0x6c')](__dirname,'tmp',rs[_0x2eaf5c('0x6a')](0x4)+_0x2eaf5c('0x36')),convertFile(_0x2adeac,_0x428e11);})[_0x1918e6('0xd')](function(){const _0x384c38=_0x1918e6;try{fs[_0x384c38('0x14')](_0x2adeac),fs[_0x384c38('0x19')](_0x428e11,_0x384c38('0x12'));}catch(_0x965834){logger[_0x384c38('0x1f')](_0x965834);}return _0x428e11[_0x384c38('0x10')]('.')[0x0];});},exports[_0x26d2cb('0x66')]=function(_0x3b3f8f,_0x358b03,_0x36cfbe,_0x4747b8){const _0x24566c=_0x26d2cb,_0x1be65d=util[_0x24566c('0x58')](_0x24566c('0x5b'),ISPEECH_API,_0x358b03,_0x36cfbe,base64Encode(_0x3b3f8f),_0x4747b8?util[_0x24566c('0x58')](_0x24566c('0x1c'),encodeURIComponent(_0x4747b8)):_0x24566c('0x5e'));return uploadFile(_0x1be65d)[_0x24566c('0xd')](function(_0x4a52c9){return querystring['parse'](_0x4a52c9);});},exports[_0x26d2cb('0xc')]=function(_0xd182f6,_0x167264){const _0x549cfa=_0x26d2cb;return sestek[_0x549cfa('0x1')](_0xd182f6,_0x167264)[_0x549cfa('0xd')](function(_0x2e79b4){const _0xa5338=_0x549cfa;logger[_0xa5338('0x3c')](JSON[_0xa5338('0x45')](_0x2e79b4));const _0x5b33cc={'speech':_0x2e79b4[_0xa5338('0x0')],'action':_0x2e79b4['channelData']?_0x2e79b4['channelData'][_0xa5338('0x2e')]:undefined,'actiondata':_0x2e79b4[_0xa5338('0x6b')]?_0x2e79b4[_0xa5338('0x6b')][_0xa5338('0x40')]:undefined};if(_0x2e79b4[_0xa5338('0x6b')]&&_0x2e79b4[_0xa5338('0x6b')][_0xa5338('0x3f')])return base64Decode(_0x2e79b4['channelData'][_0xa5338('0x3f')]['Data'],path[_0xa5338('0x6c')](__dirname,_0xa5338('0x1b'),rs[_0xa5338('0x6a')](0x4)+_0xa5338('0x36')))[_0xa5338('0xd')](function(_0xd8c741){const _0x5d71a0=_0xa5338;return _0x5b33cc[_0x5d71a0('0x16')]=_0xd8c741,_0x5b33cc;});return _0x5b33cc;});},exports[_0x26d2cb('0x6d')]=function(){return __dirname;}; \ No newline at end of file +const a1040_0x2178=['stringify','statusMessage','audioContent','url','base64','error\x20convert','unlink','error','metadata','data','name','googleASR\x20confidence','Data','googleCloudTTS','../../../config/logger','toString','catch','resolve','statusCode','pathname','isFallbackIntent','%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s','from','action','uri','request-promise-native','AudioFromTts','awsPolly','writeFile','ssml','sox','asr','host','./aws','POST','request\x20to\x20','readFileSync','message','freeform=3','path','nda','https://texttospeech.googleapis.com/v1/','createWriteStream','finish','end','download\x20error','./tilde','tmp','https://api.ispeech.org/api/rest','alternatives','result','sestekNDA','md5','\x20failed,\x20status\x20code\x20=\x20','score','fulfillment','.mp3','join','channelData','MP3','audiofile','transcode','wav','googleASR\x20transcription','.wav','googleTTS','format','randomstring','text','results','pipe','[%s]\x20%s:%s','generate','parse','./sestek','polly','chmodSync','CustomActionData','start','?key=','agi','777','textRequest','tildeASR','confidence','google-tts-api','split','Tilde\x20ASR\x20transcription','querystring','finish\x20download\x20file','code','text:synthesize','resolvedQuery','googleDialogflow','map','protocol','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','then','CustomAction','transcript','WHAT_EVER','writeFileSync','info','./google','http','input','https','https:'];(function(_0xc1cdb8,_0x217890){const _0xa3bfb0=function(_0x4780b8){while(--_0x4780b8){_0xc1cdb8['push'](_0xc1cdb8['shift']());}};_0xa3bfb0(++_0x217890);}(a1040_0x2178,0x190));const a1040_0xa3bf=function(_0xc1cdb8,_0x217890){_0xc1cdb8=_0xc1cdb8-0x0;let _0xa3bfb0=a1040_0x2178[_0xc1cdb8];return _0xa3bfb0;};const _0xd040f5=a1040_0xa3bf;'use strict';const fs=require('fs'),path=require(_0xd040f5('0x47')),http=require(_0xd040f5('0x1c')),https=require(_0xd040f5('0x1e')),{URL}=require(_0xd040f5('0x23')),rs=require(_0xd040f5('0x63')),sox=require(_0xd040f5('0x3e')),rp=require(_0xd040f5('0x39')),util=require('util'),querystring=require(_0xd040f5('0xc')),tts=require(_0xd040f5('0x9')),apiai=require('apiai-promise'),md5=require(_0xd040f5('0x54')),google=require(_0xd040f5('0x1b')),aws=require(_0xd040f5('0x41')),tilde=require(_0xd040f5('0x4e')),sestek=require(_0xd040f5('0x6a')),logger=require(_0xd040f5('0x2e'))(_0xd040f5('0x4')),ISPEECH_API=_0xd040f5('0x50');function downloadFile(_0x4780b8,_0x534464){return new Promise(function(_0xe34a46,_0x747ba4){const _0x1a6dad=a1040_0xa3bf,_0x21e5a9=new URL(_0x4780b8),_0x47f61d=_0x21e5a9[_0x1a6dad('0x13')]==='https:'?https:http,_0x43e120={'host':_0x21e5a9['host'],'path':_0x21e5a9[_0x1a6dad('0x33')],'headers':{'user-agent':_0x1a6dad('0x18')}};_0x47f61d['get'](_0x43e120,function(_0x4cac2d){const _0x2267da=_0x1a6dad;if(_0x4cac2d['statusCode']!==0xc8){logger[_0x2267da('0x27')](_0x2267da('0x43')+_0x4780b8+_0x2267da('0x55')+_0x4cac2d[_0x2267da('0x32')]+'\x20('+_0x4cac2d[_0x2267da('0x21')]+')'),_0x747ba4(new Error(_0x2267da('0x43')+_0x4780b8+_0x2267da('0x55')+_0x4cac2d[_0x2267da('0x32')]+'\x20('+_0x4cac2d['statusMessage']+')'));return;}const _0x520fdf=fs[_0x2267da('0x4a')](_0x534464);_0x520fdf['on'](_0x2267da('0x4b'),function(){const _0x8944a1=_0x2267da;logger[_0x8944a1('0x1a')](_0x8944a1('0xd')),_0x520fdf['close'](_0xe34a46);}),_0x520fdf['on'](_0x2267da('0x27'),function(_0x198c29){const _0x1e1f4c=_0x2267da;fs[_0x1e1f4c('0x26')](_0x534464),logger[_0x1e1f4c('0x27')](_0x1e1f4c('0x4d'),_0x198c29),_0x747ba4(_0x198c29);}),_0x4cac2d[_0x2267da('0x66')](_0x520fdf);})['on'](_0x1a6dad('0x27'),function(_0x1c7093){const _0x29a49b=_0x1a6dad;logger[_0x29a49b('0x27')](_0x1c7093),_0x747ba4(_0x1c7093);})['end']();});}function uploadFile(_0xee86e3){return new Promise(function(_0x17adbb,_0xc025aa){const _0x231a00=a1040_0xa3bf,_0xfd2fe9=new URL(_0xee86e3),_0x250356=_0xfd2fe9[_0x231a00('0x13')]===_0x231a00('0x1f')?https:http,_0x52f9c0={'host':_0xfd2fe9[_0x231a00('0x40')],'path':_0xfd2fe9[_0x231a00('0x33')],'headers':{'user-agent':_0x231a00('0x18')}};_0x250356['get'](_0x52f9c0,function(_0x29c2a9){const _0x457993=_0x231a00;if(_0x29c2a9['statusCode']!==0xc8){_0xc025aa(new Error(_0x457993('0x43')+_0xee86e3+'\x20failed,\x20status\x20code\x20=\x20'+_0x29c2a9[_0x457993('0x32')]+'\x20('+_0x29c2a9[_0x457993('0x21')]+')'));return;}let _0x21b220='';_0x29c2a9['on'](_0x457993('0x29'),function(_0x335262){_0x21b220+=_0x335262;}),_0x29c2a9['on']('end',function(){_0x17adbb(_0x21b220);});})['on'](_0x231a00('0x27'),function(_0x5e0c8f){_0xc025aa(_0x5e0c8f);})[_0x231a00('0x4c')]();});}function convertFile(_0x191fa5,_0x4a613a){return new Promise(function(_0x62f2bd,_0x4b3ffd){const _0x3770bc=a1040_0xa3bf,_0xbee24c=sox[_0x3770bc('0x5d')](_0x191fa5,_0x4a613a,{'sampleRate':0x1f40,'format':_0x3770bc('0x5e'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0xbee24c['on'](_0x3770bc('0x27'),function(_0x3e40ca){const _0x127b08=_0x3770bc;logger[_0x127b08('0x27')](_0x127b08('0x25'),_0x3e40ca),_0x4b3ffd(_0x3e40ca);}),_0xbee24c['on'](_0x3770bc('0x4c'),function(){const _0x212f50=_0x3770bc;logger[_0x212f50('0x1a')]('finish\x20to\x20convert'),_0x62f2bd();}),_0xbee24c[_0x3770bc('0x2')]();});}function base64Decode(_0x1b0306,_0x4757dd){const _0x58b598=_0xd040f5,_0x4926be=path['resolve'](__dirname,_0x58b598('0x4f'),rs['generate'](0x4)+'.wav');return fs[_0x58b598('0x19')](_0x4926be,_0x1b0306,'base64'),convertFile(_0x4926be,_0x4757dd)[_0x58b598('0x15')](function(){const _0x48ce61=_0x58b598;try{fs[_0x48ce61('0x26')](_0x4926be),fs[_0x48ce61('0x0')](_0x4757dd,'777');}catch(_0x12bcee){logger[_0x48ce61('0x27')](_0x12bcee);}return _0x4757dd[_0x48ce61('0xa')]('.')[0x0];});}function base64Encode(_0x5650a1){const _0x2bb6bc=_0xd040f5,_0x3acd25=fs[_0x2bb6bc('0x44')](_0x5650a1);return Buffer['from'](_0x3acd25)[_0x2bb6bc('0x2f')](_0x2bb6bc('0x24'));}exports[_0xd040f5('0x2d')]=function(_0x320705,_0x554228,_0x3b9109,_0x5bd810,_0x50d13a){const _0x39cd80=_0xd040f5;let _0x3cdf73,_0x5b77d4;const _0x212bec=_0x39cd80('0x49'),_0x1c0139=_0x39cd80('0x3')+_0x320705,_0x2342db={};_0x554228===_0x39cd80('0x3d')?_0x2342db[_0x39cd80('0x1d')]={'ssml':_0x3b9109}:_0x2342db[_0x39cd80('0x1d')]={'text':_0x3b9109};_0x2342db['voice']={'languageCode':_0x5bd810,'ssmlGender':_0x50d13a},_0x2342db['audioConfig']={'audioEncoding':_0x39cd80('0x5b'),'sampleRateHertz':0x1f40};const _0x43c967={'url':_0x212bec+_0x39cd80('0xf')+_0x1c0139,'method':_0x39cd80('0x42'),'json':!![],'body':_0x2342db};return rp(_0x43c967)[_0x39cd80('0x15')](function(_0x48cda1){return new Promise(function(_0x29f16b,_0xfd02cb){const _0x32ec52=a1040_0xa3bf;_0x3cdf73=path['resolve'](__dirname,_0x32ec52('0x4f'),rs[_0x32ec52('0x68')](0x4)+_0x32ec52('0x58'));const _0x17c672=Buffer[_0x32ec52('0x36')](_0x48cda1[_0x32ec52('0x22')],_0x32ec52('0x24'));return fs[_0x32ec52('0x3c')](_0x3cdf73,_0x17c672,function(_0x4b5fb0){_0xfd02cb(_0x4b5fb0);},function(_0x35e2bf){const _0x5b8b4e=_0x32ec52;fs[_0x5b8b4e('0x0')](_0x3cdf73,'777'),_0x29f16b(_0x35e2bf);});});})[_0x39cd80('0x15')](function(){const _0x5abb02=_0x39cd80;return _0x5b77d4=path[_0x5abb02('0x31')](__dirname,_0x5abb02('0x4f'),rs[_0x5abb02('0x68')](0x4)+_0x5abb02('0x60')),convertFile(_0x3cdf73,_0x5b77d4);})[_0x39cd80('0x15')](function(){const _0x1e7986=_0x39cd80;try{fs['unlink'](_0x3cdf73),fs[_0x1e7986('0x0')](_0x5b77d4,_0x1e7986('0x5'));}catch(_0x58d6a7){logger['error'](_0x58d6a7);}return logger[_0x1e7986('0x1a')]('googleCloudTTS\x20path',_0x5b77d4[_0x1e7986('0xa')]('.')[0x0]),_0x5b77d4[_0x1e7986('0xa')]('.')[0x0];});},exports[_0xd040f5('0x61')]=function(_0x103fca,_0x29769b){const _0x4cd9c2=_0xd040f5;let _0x44cf5a,_0x462396;return tts(_0x103fca,_0x29769b||'en',0x1)[_0x4cd9c2('0x15')](function(_0x19a456){const _0x22b39f=_0x4cd9c2;return logger[_0x22b39f('0x1a')](_0x19a456),_0x44cf5a=path[_0x22b39f('0x31')](__dirname,_0x22b39f('0x4f'),rs['generate'](0x4)+_0x22b39f('0x58')),downloadFile(_0x19a456,_0x44cf5a);})[_0x4cd9c2('0x15')](function(){const _0x274e12=_0x4cd9c2;return _0x462396=path['resolve'](__dirname,'tmp',rs[_0x274e12('0x68')](0x4)+_0x274e12('0x60')),convertFile(_0x44cf5a,_0x462396);})[_0x4cd9c2('0x15')](function(){const _0x177191=_0x4cd9c2;try{fs[_0x177191('0x26')](_0x44cf5a),fs[_0x177191('0x0')](_0x462396,_0x177191('0x5'));}catch(_0x3f3c71){logger[_0x177191('0x27')](_0x3f3c71);}return logger[_0x177191('0x1a')]('goggleTTS\x20path',_0x462396[_0x177191('0xa')]('.')[0x0]),_0x462396[_0x177191('0xa')]('.')[0x0];});},exports['googleASR']=function(_0x10177a,_0x5b6168,_0x4437e0){const _0x57eda3=_0xd040f5;return google[_0x57eda3('0x3f')](_0x10177a,_0x5b6168,_0x4437e0)[_0x57eda3('0x15')](function(_0x1d23a9){const _0x5cf02b=_0x57eda3;return logger[_0x5cf02b('0x1a')](_0x1d23a9[_0x5cf02b('0x38')]),rp(_0x1d23a9);})['then'](function(_0x413804){const _0x23ffb2=_0x57eda3;let _0x1a0fff='',_0x33ff27=0x0;try{fs[_0x23ffb2('0x26')](_0x10177a);}catch(_0x51d3cc){logger[_0x23ffb2('0x27')](_0x51d3cc);}return _0x413804&&_0x413804['results']&&(_0x1a0fff=_0x413804[_0x23ffb2('0x65')][_0x23ffb2('0x12')](function(_0x3f9d51){const _0x2ca919=_0x23ffb2;return _0x3f9d51&&_0x3f9d51['alternatives'][0x0]&&_0x3f9d51[_0x2ca919('0x51')][0x0][_0x2ca919('0x17')]?_0x3f9d51[_0x2ca919('0x51')][0x0]['transcript']:'';})[_0x23ffb2('0x59')]('\x0a'),_0x33ff27=_0x413804['results'][_0x23ffb2('0x12')](function(_0x1dca1f){const _0x507253=_0x23ffb2;return _0x1dca1f&&_0x1dca1f['alternatives'][0x0]&&_0x1dca1f['alternatives'][0x0][_0x507253('0x8')]?_0x1dca1f[_0x507253('0x51')][0x0]['confidence']:0x0;})[_0x23ffb2('0x59')]('\x0a')),logger[_0x23ffb2('0x1a')](_0x23ffb2('0x5f'),_0x1a0fff),logger[_0x23ffb2('0x1a')](_0x23ffb2('0x2b'),_0x33ff27),{'transcript':_0x1a0fff,'confidence':_0x33ff27};})[_0x57eda3('0x30')](function(_0x28ce1b){const _0x2f273b=_0x57eda3;logger[_0x2f273b('0x27')](_0x2f273b('0x67'),_0x28ce1b[_0x2f273b('0x32')],_0x28ce1b[_0x2f273b('0x2a')],_0x28ce1b[_0x2f273b('0x45')]);});},exports[_0xd040f5('0x11')]=function(_0x2b0f52,_0x40152f,_0x164864,_0x186805){const _0x3b7427=_0xd040f5,_0x502fc3=apiai(_0x40152f,{'language':_0x186805||'en'});return _0x502fc3[_0x3b7427('0x6')](_0x164864,{'sessionId':md5(_0x2b0f52)})[_0x3b7427('0x15')](function(_0x4dfaff){const _0xaed9ec=_0x3b7427;return logger[_0xaed9ec('0x1a')](JSON['stringify'](_0x4dfaff)),{'source':_0x4dfaff['result']['source'],'resolvedQuery':_0x4dfaff[_0xaed9ec('0x52')][_0xaed9ec('0x10')],'action':_0x4dfaff[_0xaed9ec('0x52')][_0xaed9ec('0x37')],'actionIncomplete':_0x4dfaff[_0xaed9ec('0x52')]['actionIncomplete'],'speech':_0x4dfaff[_0xaed9ec('0x52')][_0xaed9ec('0x57')]['speech'],'score':_0x4dfaff[_0xaed9ec('0x52')][_0xaed9ec('0x56')],'statusCode':_0x4dfaff['status'][_0xaed9ec('0xe')],'endConversation':_0x4dfaff[_0xaed9ec('0x52')][_0xaed9ec('0x28')]['endConversation']||![],'isFallbackIntent':_0x4dfaff[_0xaed9ec('0x52')][_0xaed9ec('0x28')][_0xaed9ec('0x34')]};});},exports[_0xd040f5('0x7')]=function(_0x29c072,_0x48225d,_0x5860ce,_0x1b048e){const _0x19e64f=_0xd040f5;return tilde[_0x19e64f('0x3f')](_0x29c072,_0x48225d,_0x5860ce,_0x1b048e)[_0x19e64f('0x15')](function(_0x454c3c){const _0x10ebb3=_0x19e64f;try{fs['unlink'](_0x29c072);}catch(_0x29c03c){logger['error'](_0x29c03c);}return logger[_0x10ebb3('0x1a')](_0x10ebb3('0xb'),_0x454c3c[_0x10ebb3('0x17')]),logger[_0x10ebb3('0x1a')]('Tilde\x20ASR\x20confidence',_0x454c3c[_0x10ebb3('0x8')]),_0x454c3c;});},exports[_0xd040f5('0x3b')]=function(_0x395162,_0xf9b81a,_0x37fa42,_0x10a9e2,_0x30aec8,_0x5eae03){const _0x3998b9=_0xd040f5,_0x1492c1=path[_0x3998b9('0x31')](__dirname,_0x3998b9('0x4f'),rs[_0x3998b9('0x68')](0x4)+'.mp3');let _0x3852a2;return aws[_0x3998b9('0x6b')](_0x395162,_0xf9b81a,_0x37fa42,_0x10a9e2,_0x30aec8,_0x5eae03,_0x1492c1)['then'](function(){const _0x71ce4e=_0x3998b9;return _0x3852a2=path['resolve'](__dirname,_0x71ce4e('0x4f'),rs[_0x71ce4e('0x68')](0x4)+'.wav'),convertFile(_0x1492c1,_0x3852a2);})[_0x3998b9('0x15')](function(){const _0x20a96e=_0x3998b9;try{fs['unlink'](_0x1492c1),fs[_0x20a96e('0x0')](_0x3852a2,_0x20a96e('0x5'));}catch(_0x3b39c0){logger['error'](_0x3b39c0);}return _0x3852a2[_0x20a96e('0xa')]('.')[0x0];});},exports['awsLex']=function(_0x275f75,_0x453cdc,_0x69b1d,_0x5bb22c,_0x1bd5d4,_0x4bf512){const _0x1603c4=_0xd040f5;return aws['lex'](_0x275f75,_0x453cdc,_0x69b1d,_0x5bb22c,_0x1bd5d4,_0x4bf512)[_0x1603c4('0x15')](function(_0x3b9457){const _0x3bc91d=_0x1603c4;return logger[_0x3bc91d('0x1a')](JSON['stringify'](_0x3b9457)),_0x3b9457;});},exports['ispeechTTS']=function(_0x1de50d,_0x2aea4f,_0x5bdfd7,_0x4a53c4){const _0x28cfee=_0xd040f5,_0xe57784=util[_0x28cfee('0x62')](_0x28cfee('0x14'),ISPEECH_API,_0x1de50d,encodeURIComponent(_0x2aea4f),_0x5bdfd7,_0x4a53c4),_0x47bbf5=path['resolve'](__dirname,_0x28cfee('0x4f'),rs[_0x28cfee('0x68')](0x4)+_0x28cfee('0x58'));let _0x53e2fe;return downloadFile(_0xe57784,_0x47bbf5)[_0x28cfee('0x15')](function(){const _0x7e9eed=_0x28cfee;return _0x53e2fe=path['resolve'](__dirname,_0x7e9eed('0x4f'),rs[_0x7e9eed('0x68')](0x4)+_0x7e9eed('0x60')),convertFile(_0x47bbf5,_0x53e2fe);})[_0x28cfee('0x15')](function(){const _0x45def1=_0x28cfee;try{fs[_0x45def1('0x26')](_0x47bbf5),fs[_0x45def1('0x0')](_0x53e2fe,_0x45def1('0x5'));}catch(_0x2ea72c){logger[_0x45def1('0x27')](_0x2ea72c);}return _0x53e2fe['split']('.')[0x0];});},exports['ispeechASR']=function(_0x1398c7,_0x39f446,_0x20c836,_0x15dda8){const _0x579abf=_0xd040f5,_0xed58db=util[_0x579abf('0x62')](_0x579abf('0x35'),ISPEECH_API,_0x39f446,_0x20c836,base64Encode(_0x1398c7),_0x15dda8?util['format']('model=%s',encodeURIComponent(_0x15dda8)):_0x579abf('0x46'));return uploadFile(_0xed58db)['then'](function(_0x4dabe9){const _0x1d9297=_0x579abf;return querystring[_0x1d9297('0x69')](_0x4dabe9);});},exports[_0xd040f5('0x53')]=function(_0x2498d4,_0x50c7f4){const _0x107a0a=_0xd040f5;return sestek[_0x107a0a('0x48')](_0x2498d4,_0x50c7f4)['then'](function(_0x55da91){const _0x21cc57=_0x107a0a;logger[_0x21cc57('0x1a')](JSON[_0x21cc57('0x20')](_0x55da91));const _0x1295bc={'speech':_0x55da91[_0x21cc57('0x64')],'action':_0x55da91[_0x21cc57('0x5a')]?_0x55da91['channelData'][_0x21cc57('0x16')]:undefined,'actiondata':_0x55da91[_0x21cc57('0x5a')]?_0x55da91['channelData'][_0x21cc57('0x1')]:undefined};if(_0x55da91[_0x21cc57('0x5a')]&&_0x55da91[_0x21cc57('0x5a')][_0x21cc57('0x3a')])return base64Decode(_0x55da91[_0x21cc57('0x5a')][_0x21cc57('0x3a')][_0x21cc57('0x2c')],path[_0x21cc57('0x31')](__dirname,_0x21cc57('0x4f'),rs[_0x21cc57('0x68')](0x4)+_0x21cc57('0x60')))['then'](function(_0x994eb6){const _0xfe362b=_0x21cc57;return _0x1295bc[_0xfe362b('0x5c')]=_0x994eb6,_0x1295bc;});return _0x1295bc;});},exports['dirName']=function(){return __dirname;}; \ No newline at end of file diff --git a/server/services/agi/scripts/sestek/index.js b/server/services/agi/scripts/sestek/index.js index 8108051..08e3398 100644 --- a/server/services/agi/scripts/sestek/index.js +++ b/server/services/agi/scripts/sestek/index.js @@ -1 +1 @@ -const a1041_0x3452=['exports','./nda'];(function(_0x9d2b34,_0x345211){const _0x2598f1=function(_0x1de6d9){while(--_0x1de6d9){_0x9d2b34['push'](_0x9d2b34['shift']());}};_0x2598f1(++_0x345211);}(a1041_0x3452,0x1d1));const a1041_0x2598=function(_0x9d2b34,_0x345211){_0x9d2b34=_0x9d2b34-0x0;let _0x2598f1=a1041_0x3452[_0x9d2b34];return _0x2598f1;};const _0x50d955=a1041_0x2598,nda=require(_0x50d955('0x0'));module[_0x50d955('0x1')]={'nda':nda}; \ No newline at end of file +const a1041_0x407a=['./nda'];(function(_0x3b160f,_0x407a81){const _0x5a7f11=function(_0xdeb528){while(--_0xdeb528){_0x3b160f['push'](_0x3b160f['shift']());}};_0x5a7f11(++_0x407a81);}(a1041_0x407a,0x136));const a1041_0x5a7f=function(_0x3b160f,_0x407a81){_0x3b160f=_0x3b160f-0x0;let _0x5a7f11=a1041_0x407a[_0x3b160f];return _0x5a7f11;};const _0x383858=a1041_0x5a7f,nda=require(_0x383858('0x0'));module['exports']={'nda':nda}; \ No newline at end of file diff --git a/server/services/agi/scripts/sestek/nda/index.js b/server/services/agi/scripts/sestek/nda/index.js index 6a1e135..f27f078 100644 --- a/server/services/agi/scripts/sestek/nda/index.js +++ b/server/services/agi/scripts/sestek/nda/index.js @@ -1 +1 @@ -const a1042_0x2eb8=['dnid','custom_action','extension','/api/NaturalDialogAssistant/v1/Run','custom_action_data','ndassistant_url','ProjectName','request-promise-native','message','access_token','info','CustomAction','POST','calleridname','username','password','/token','then','Nda','url','text','CustomActionData','ndaactivity_type','ndagenerate_audio','audio/wav','callerid','body','../../../../../config/logger','project','agi','URL','toString','exports','channelData'];(function(_0x159c0b,_0x2eb8a4){const _0x50b61f=function(_0x300615){while(--_0x300615){_0x159c0b['push'](_0x159c0b['shift']());}};_0x50b61f(++_0x2eb8a4);}(a1042_0x2eb8,0x14c));const a1042_0x50b6=function(_0x159c0b,_0x2eb8a4){_0x159c0b=_0x159c0b-0x0;let _0x50b61f=a1042_0x2eb8[_0x159c0b];return _0x50b61f;};const _0x37abc7=a1042_0x50b6;'use strict';const rp=require(_0x37abc7('0xf')),url=require(_0x37abc7('0x1b')),logger=require(_0x37abc7('0x1'))(_0x37abc7('0x3'));module[_0x37abc7('0x6')]=function(_0x300615,_0x170dad){const _0x316143=_0x37abc7,_0x59efb5=new url[(_0x316143('0x4'))](_0x316143('0x18'),_0x170dad['ndauth_url'])[_0x316143('0x5')](),_0xc33f6={'method':_0x316143('0x14'),'uri':_0x59efb5,'form':{'grant_type':_0x316143('0x17'),'username':_0x170dad[_0x316143('0x16')],'password':_0x170dad[_0x316143('0x17')]},'json':!![]};return rp(_0xc33f6)[_0x316143('0x19')](function(_0x15a789){const _0x23f50a=_0x316143,_0x5a1f9d=new url[(_0x23f50a('0x4'))](_0x23f50a('0xb'),_0x170dad[_0x23f50a('0xd')])[_0x23f50a('0x5')](),_0x5012cd={'method':_0x23f50a('0x14'),'uri':_0x5a1f9d,'body':{'type':_0x170dad[_0x23f50a('0x1e')]||_0x23f50a('0x10'),'channelId':_0x23f50a('0x1a'),'conversation':{'id':_0x300615['uniqueid']},'from':{'id':_0x300615[_0x23f50a('0x21')],'name':_0x300615[_0x23f50a('0x15')]},'recipient':{'id':_0x300615[_0x23f50a('0x8')],'name':_0x300615[_0x23f50a('0xa')]},'text':_0x170dad[_0x23f50a('0x1c')],'channelData':{}},'headers':{'Authorization':'Bearer\x20'+_0x15a789[_0x23f50a('0x11')]},'json':!![]};return _0x170dad[_0x23f50a('0x2')]&&(_0x5012cd[_0x23f50a('0x0')][_0x23f50a('0x7')][_0x23f50a('0xe')]=_0x170dad['project']),_0x170dad[_0x23f50a('0x1f')]=='1'&&(_0x5012cd['body'][_0x23f50a('0x7')]['AudioOutputSettings']={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':_0x23f50a('0x20')}),_0x170dad[_0x23f50a('0x9')]&&(_0x5012cd['body'][_0x23f50a('0x7')][_0x23f50a('0x13')]=_0x170dad['custom_action'],_0x170dad[_0x23f50a('0xc')]&&(_0x5012cd[_0x23f50a('0x0')][_0x23f50a('0x7')][_0x23f50a('0x1d')]=_0x170dad[_0x23f50a('0xc')])),logger[_0x23f50a('0x12')](JSON['stringify'](_0x5012cd)),rp(_0x5012cd);});}; \ No newline at end of file +const a1042_0x5f52=['access_token','username','custom_action_data','custom_action','ndaactivity_type','ndassistant_url','project','dnid','url','ndauth_url','audio/wav','uniqueid','Bearer\x20','info','request-promise-native','stringify','URL','toString','Nda','../../../../../config/logger','POST','body','channelData','AudioOutputSettings','calleridname','password','ProjectName','then','message','extension','text','/token','exports','agi'];(function(_0xe87b20,_0x5f5281){const _0x5d1d8c=function(_0x1f111e){while(--_0x1f111e){_0xe87b20['push'](_0xe87b20['shift']());}};_0x5d1d8c(++_0x5f5281);}(a1042_0x5f52,0x1b2));const a1042_0x5d1d=function(_0xe87b20,_0x5f5281){_0xe87b20=_0xe87b20-0x0;let _0x5d1d8c=a1042_0x5f52[_0xe87b20];return _0x5d1d8c;};const _0x582ea7=a1042_0x5d1d;'use strict';const rp=require(_0x582ea7('0x16')),url=require(_0x582ea7('0x10')),logger=require(_0x582ea7('0x1b'))(_0x582ea7('0x7'));module[_0x582ea7('0x6')]=function(_0x1f111e,_0x30f869){const _0xff54ec=_0x582ea7,_0x325aab=new url[(_0xff54ec('0x18'))](_0xff54ec('0x5'),_0x30f869[_0xff54ec('0x11')])[_0xff54ec('0x19')](),_0x3e5b78={'method':_0xff54ec('0x1c'),'uri':_0x325aab,'form':{'grant_type':_0xff54ec('0x21'),'username':_0x30f869[_0xff54ec('0x9')],'password':_0x30f869['password']},'json':!![]};return rp(_0x3e5b78)[_0xff54ec('0x1')](function(_0x4826b1){const _0x230621=_0xff54ec,_0xda1473=new url[(_0x230621('0x18'))]('/api/NaturalDialogAssistant/v1/Run',_0x30f869[_0x230621('0xd')])[_0x230621('0x19')](),_0x1505b0={'method':_0x230621('0x1c'),'uri':_0xda1473,'body':{'type':_0x30f869[_0x230621('0xc')]||_0x230621('0x2'),'channelId':_0x230621('0x1a'),'conversation':{'id':_0x1f111e[_0x230621('0x13')]},'from':{'id':_0x1f111e['callerid'],'name':_0x1f111e[_0x230621('0x20')]},'recipient':{'id':_0x1f111e[_0x230621('0xf')],'name':_0x1f111e[_0x230621('0x3')]},'text':_0x30f869[_0x230621('0x4')],'channelData':{}},'headers':{'Authorization':_0x230621('0x14')+_0x4826b1[_0x230621('0x8')]},'json':!![]};return _0x30f869[_0x230621('0xe')]&&(_0x1505b0['body'][_0x230621('0x1e')][_0x230621('0x0')]=_0x30f869[_0x230621('0xe')]),_0x30f869['ndagenerate_audio']=='1'&&(_0x1505b0[_0x230621('0x1d')][_0x230621('0x1e')][_0x230621('0x1f')]={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':_0x230621('0x12')}),_0x30f869[_0x230621('0xb')]&&(_0x1505b0['body'][_0x230621('0x1e')]['CustomAction']=_0x30f869['custom_action'],_0x30f869[_0x230621('0xa')]&&(_0x1505b0['body'][_0x230621('0x1e')]['CustomActionData']=_0x30f869[_0x230621('0xa')])),logger[_0x230621('0x15')](JSON[_0x230621('0x17')](_0x1505b0)),rp(_0x1505b0);});}; \ No newline at end of file diff --git a/server/services/agi/scripts/tilde/asr/index.js b/server/services/agi/scripts/tilde/asr/index.js index f7a57fb..df7b32c 100644 --- a/server/services/agi/scripts/tilde/asr/index.js +++ b/server/services/agi/scripts/tilde/asr/index.js @@ -1 +1 @@ -const a1043_0x49ed=['exports','./lib/api'];(function(_0x57021a,_0x49ed4e){const _0x27110b=function(_0x57fbaa){while(--_0x57fbaa){_0x57021a['push'](_0x57021a['shift']());}};_0x27110b(++_0x49ed4e);}(a1043_0x49ed,0x6a));const a1043_0x2711=function(_0x57021a,_0x49ed4e){_0x57021a=_0x57021a-0x0;let _0x27110b=a1043_0x49ed[_0x57021a];return _0x27110b;};const _0x1a9173=a1043_0x2711;'use strict';const asr=require(_0x1a9173('0x1'));module[_0x1a9173('0x0')]=function(_0x57fbaa,_0x270014,_0x3c8d21,_0x304d3c){return asr(_0x57fbaa,_0x270014,_0x3c8d21,_0x304d3c);}; \ No newline at end of file +const a1043_0x37e5=['exports'];(function(_0x397f13,_0x37e563){const _0x228654=function(_0x7744b1){while(--_0x7744b1){_0x397f13['push'](_0x397f13['shift']());}};_0x228654(++_0x37e563);}(a1043_0x37e5,0xd5));const a1043_0x2286=function(_0x397f13,_0x37e563){_0x397f13=_0x397f13-0x0;let _0x228654=a1043_0x37e5[_0x397f13];return _0x228654;};const _0xd7f528=a1043_0x2286;'use strict';const asr=require('./lib/api');module[_0xd7f528('0x0')]=function(_0x7744b1,_0x40f586,_0x9341ca,_0x3633e5){return asr(_0x7744b1,_0x40f586,_0x9341ca,_0x3633e5);}; \ No newline at end of file diff --git a/server/services/agi/scripts/tilde/asr/lib/api.js b/server/services/agi/scripts/tilde/asr/lib/api.js index fdb7264..974197e 100644 --- a/server/services/agi/scripts/tilde/asr/lib/api.js +++ b/server/services/agi/scripts/tilde/asr/lib/api.js @@ -1 +1 @@ -const a1044_0x517c=['terminate','isObject','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','EOS','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','moment','likelihood','unix','Tilde\x20ASR\x20send\x20error','error','status','Open\x20Tilde\x20ASR\x20socket','digest','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','Success.','result','Tilde\x20ASR\x20parse\x20error','agi','hypotheses','Authentication\x20failed.','update','transcript','createReadStream','open','send','lodash','info','data','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','createHash','crypto','sha1','Close\x20Tilde\x20ASR\x20socket','isNil','stringify','hex','final','exports'];(function(_0x5c6f0d,_0x517cbf){const _0x3bc8d8=function(_0x50db5b){while(--_0x50db5b){_0x5c6f0d['push'](_0x5c6f0d['shift']());}};_0x3bc8d8(++_0x517cbf);}(a1044_0x517c,0x163));const a1044_0x3bc8=function(_0x5c6f0d,_0x517cbf){_0x5c6f0d=_0x5c6f0d-0x0;let _0x3bc8d8=a1044_0x517c[_0x5c6f0d];return _0x3bc8d8;};const _0x13814d=a1044_0x3bc8;'use strict';const _=require(_0x13814d('0xc')),fs=require('fs'),WebSocket=require('ws'),moment=require(_0x13814d('0x1e')),crypto=require(_0x13814d('0x11')),logger=require('../../../../../../config/logger')(_0x13814d('0x4'));module[_0x13814d('0x18')]=function(_0x50db5b,_0x1f562f,_0xc7c955,_0x23f441){return new Promise(function(_0x1b638c){const _0x5dd909=a1044_0x3bc8;logger[_0x5dd909('0xd')]('Tilde\x20URI',_0x23f441||_0x5dd909('0xf'));const _0x1597b9=new WebSocket(_0x23f441||'wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE',{'perMessageDeflate':![]});let _0x2708df='',_0x5c6963='0',_0x5e464c='1',_0x58c2a9=_0x5dd909('0x0');function _0x3ca124(_0x1b9c6d){const _0x244280=_0x5dd909,_0x1bd94b=crypto[_0x244280('0x10')](_0x244280('0x12'));return _0x1bd94b[_0x244280('0x7')](_0x1b9c6d),_0x1bd94b[_0x244280('0x25')](_0x244280('0x16'));}function _0x3b4c01(){const _0x34d327=_0x5dd909;try{logger[_0x34d327('0xd')](_0x34d327('0x24'));const _0xf38007=moment()[_0x34d327('0x20')](),_0x297abc=_0x3ca124(_0xf38007+_0x1f562f+_0xc7c955);_0x1597b9['send'](JSON[_0x34d327('0x15')]({'appID':_0x1f562f,'timestamp':_0xf38007,'appKey':_0x297abc}));const _0x2ffb18=fs[_0x34d327('0x9')](_0x50db5b);_0x2ffb18['on'](_0x34d327('0xe'),function(_0x33efca){const _0x46f02e=_0x34d327;_0x1597b9[_0x46f02e('0xb')](_0x33efca);}),_0x2ffb18['on']('close',function(){const _0x111e87=_0x34d327;_0x1597b9[_0x111e87('0xb')](_0x111e87('0x1c'));});}catch(_0x1f4a58){logger[_0x34d327('0x22')](_0x34d327('0x21'),JSON['stringify'](_0x1f4a58)),_0x1597b9[_0x34d327('0x19')]();}}function _0x3fcb03(_0x11d150){const _0x15689b=_0x5dd909;try{if(_0x11d150){const _0x3f57f2=JSON['parse'](_0x11d150);switch(_0x3f57f2[_0x15689b('0x23')]){case 0x0:_0x3f57f2['result']&&(_0x3f57f2[_0x15689b('0x2')][_0x15689b('0x17')]&&(logger[_0x15689b('0xd')]('Tilde\x20ASR\x20hypoteses',JSON[_0x15689b('0x15')](_0x3f57f2[_0x15689b('0x2')][_0x15689b('0x5')])),_0x2708df=_0x3f57f2[_0x15689b('0x2')][_0x15689b('0x5')][0x0][_0x15689b('0x8')],_0x5c6963=_0x3f57f2[_0x15689b('0x2')][_0x15689b('0x5')][0x0][_0x15689b('0x1f')],_0x5e464c='0',_0x58c2a9=_0x15689b('0x1'),_0x1597b9['terminate']()));break;case 0x1:logger['info'](_0x15689b('0x0')),_0x5e464c='1',_0x58c2a9=_0x15689b('0x0');break;case 0x2:logger[_0x15689b('0xd')]('Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.'),_0x5e464c='2',_0x58c2a9=_0x15689b('0x1b');break;case 0x9:logger[_0x15689b('0xd')]('Not\x20available.\x20Max\x20load\x20limit\x20reached.'),_0x5e464c='9',_0x58c2a9='Not\x20available.\x20Max\x20load\x20limit\x20reached.';break;case 0xa:logger[_0x15689b('0xd')]('Authentication\x20failed.'),_0x5e464c='10',_0x58c2a9=_0x15689b('0x6');break;case 0xb:logger[_0x15689b('0xd')](_0x15689b('0x1d')),_0x5e464c='11',_0x58c2a9=_0x15689b('0x1d');}}}catch(_0x2b8d6c){logger[_0x15689b('0x22')](_0x15689b('0x3'),JSON[_0x15689b('0x15')](_0x2b8d6c)),_0x1597b9['terminate']();}}function _0x57454a(){const _0x40f5f2=_0x5dd909;logger[_0x40f5f2('0xd')](_0x40f5f2('0x13')),_0x1b638c({'transcript':_0x2708df,'confidence':_0x5c6963,'status':_0x5e464c,'status_message':_0x58c2a9});}function _0x1f1750(_0xae7d78){const _0xb7d606=_0x5dd909;logger[_0xb7d606('0x22')]('Error\x20Tilde\x20ASR\x20socket'),!_[_0xb7d606('0x14')](_0xae7d78)&&logger[_0xb7d606('0x22')](_[_0xb7d606('0x1a')](_0xae7d78)?JSON[_0xb7d606('0x15')](_0xae7d78):_0xae7d78);}_0x1597b9['on'](_0x5dd909('0xa'),_0x3b4c01),_0x1597b9['on']('message',_0x3fcb03),_0x1597b9['on']('close',_0x57454a),_0x1597b9['on']('error',_0x1f1750);});}; \ No newline at end of file +const a1044_0x128b=['open','Tilde\x20ASR\x20parse\x20error','result','Close\x20Tilde\x20ASR\x20socket','stringify','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','isObject','exports','send','final','isNil','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','update','close','Open\x20Tilde\x20ASR\x20socket','transcript','terminate','status','Success.','Authentication\x20failed.','agi','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','message','createHash','moment','digest','Not\x20available.\x20Max\x20load\x20limit\x20reached.','error','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','hex','data','hypotheses','createReadStream','info'];(function(_0x1f19f2,_0x128beb){const _0x1cb658=function(_0x3c84ad){while(--_0x3c84ad){_0x1f19f2['push'](_0x1f19f2['shift']());}};_0x1cb658(++_0x128beb);}(a1044_0x128b,0x1f0));const a1044_0x1cb6=function(_0x1f19f2,_0x128beb){_0x1f19f2=_0x1f19f2-0x0;let _0x1cb658=a1044_0x128b[_0x1f19f2];return _0x1cb658;};const _0x94d87c=a1044_0x1cb6;'use strict';const _=require('lodash'),fs=require('fs'),WebSocket=require('ws'),moment=require(_0x94d87c('0x4')),crypto=require('crypto'),logger=require('../../../../../../config/logger')(_0x94d87c('0x0'));module[_0x94d87c('0x15')]=function(_0x3c84ad,_0x48a14e,_0x2a8493,_0x20e117){return new Promise(function(_0xecd316){const _0x384e2e=a1044_0x1cb6;logger[_0x384e2e('0xd')]('Tilde\x20URI',_0x20e117||_0x384e2e('0x19'));const _0x60cb3d=new WebSocket(_0x20e117||'wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE',{'perMessageDeflate':![]});let _0x5eae7d='',_0x5c239b='0',_0x3b7a41='1',_0x82da12=_0x384e2e('0x13');function _0x230d1b(_0x4c945c){const _0x222d3d=_0x384e2e,_0xc40fd0=crypto[_0x222d3d('0x3')]('sha1');return _0xc40fd0[_0x222d3d('0x1a')](_0x4c945c),_0xc40fd0[_0x222d3d('0x5')](_0x222d3d('0x9'));}function _0x2b893d(){const _0x4ea01c=_0x384e2e;try{logger[_0x4ea01c('0xd')](_0x4ea01c('0x1c'));const _0x4d753b=moment()['unix'](),_0x3ab920=_0x230d1b(_0x4d753b+_0x48a14e+_0x2a8493);_0x60cb3d[_0x4ea01c('0x16')](JSON['stringify']({'appID':_0x48a14e,'timestamp':_0x4d753b,'appKey':_0x3ab920}));const _0x39f9f3=fs[_0x4ea01c('0xc')](_0x3c84ad);_0x39f9f3['on'](_0x4ea01c('0xa'),function(_0x25d648){const _0x532cc8=_0x4ea01c;_0x60cb3d[_0x532cc8('0x16')](_0x25d648);}),_0x39f9f3['on'](_0x4ea01c('0x1b'),function(){const _0x423966=_0x4ea01c;_0x60cb3d[_0x423966('0x16')]('EOS');});}catch(_0x29c3d5){logger[_0x4ea01c('0x7')]('Tilde\x20ASR\x20send\x20error',JSON[_0x4ea01c('0x12')](_0x29c3d5)),_0x60cb3d['terminate']();}}function _0x162336(_0x51c5cf){const _0x187172=_0x384e2e;try{if(_0x51c5cf){const _0x9b309e=JSON['parse'](_0x51c5cf);switch(_0x9b309e[_0x187172('0x1f')]){case 0x0:_0x9b309e[_0x187172('0x10')]&&(_0x9b309e[_0x187172('0x10')][_0x187172('0x17')]&&(logger[_0x187172('0xd')]('Tilde\x20ASR\x20hypoteses',JSON[_0x187172('0x12')](_0x9b309e['result'][_0x187172('0xb')])),_0x5eae7d=_0x9b309e[_0x187172('0x10')][_0x187172('0xb')][0x0][_0x187172('0x1d')],_0x5c239b=_0x9b309e[_0x187172('0x10')]['hypotheses'][0x0]['likelihood'],_0x3b7a41='0',_0x82da12=_0x187172('0x20'),_0x60cb3d[_0x187172('0x1e')]()));break;case 0x1:logger['info']('No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech'),_0x3b7a41='1',_0x82da12=_0x187172('0x13');break;case 0x2:logger[_0x187172('0xd')](_0x187172('0x1')),_0x3b7a41='2',_0x82da12='Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.';break;case 0x9:logger[_0x187172('0xd')]('Not\x20available.\x20Max\x20load\x20limit\x20reached.'),_0x3b7a41='9',_0x82da12=_0x187172('0x6');break;case 0xa:logger[_0x187172('0xd')](_0x187172('0x21')),_0x3b7a41='10',_0x82da12=_0x187172('0x21');break;case 0xb:logger[_0x187172('0xd')](_0x187172('0x8')),_0x3b7a41='11',_0x82da12=_0x187172('0x8');}}}catch(_0x3fce99){logger[_0x187172('0x7')](_0x187172('0xf'),JSON[_0x187172('0x12')](_0x3fce99)),_0x60cb3d[_0x187172('0x1e')]();}}function _0x1cc506(){const _0x3be77d=_0x384e2e;logger['info'](_0x3be77d('0x11')),_0xecd316({'transcript':_0x5eae7d,'confidence':_0x5c239b,'status':_0x3b7a41,'status_message':_0x82da12});}function _0x1f1c62(_0x285aba){const _0x6936b2=_0x384e2e;logger['error']('Error\x20Tilde\x20ASR\x20socket'),!_[_0x6936b2('0x18')](_0x285aba)&&logger[_0x6936b2('0x7')](_[_0x6936b2('0x14')](_0x285aba)?JSON[_0x6936b2('0x12')](_0x285aba):_0x285aba);}_0x60cb3d['on'](_0x384e2e('0xe'),_0x2b893d),_0x60cb3d['on'](_0x384e2e('0x2'),_0x162336),_0x60cb3d['on'](_0x384e2e('0x1b'),_0x1cc506),_0x60cb3d['on'](_0x384e2e('0x7'),_0x1f1c62);});}; \ No newline at end of file diff --git a/server/services/agi/scripts/tilde/index.js b/server/services/agi/scripts/tilde/index.js index d015212..590be3b 100644 --- a/server/services/agi/scripts/tilde/index.js +++ b/server/services/agi/scripts/tilde/index.js @@ -1 +1 @@ -const a1045_0x2fe8=['exports'];(function(_0x88d8b5,_0x2fe806){const _0x3ccb0c=function(_0x5b8740){while(--_0x5b8740){_0x88d8b5['push'](_0x88d8b5['shift']());}};_0x3ccb0c(++_0x2fe806);}(a1045_0x2fe8,0x15d));const a1045_0x3ccb=function(_0x88d8b5,_0x2fe806){_0x88d8b5=_0x88d8b5-0x0;let _0x3ccb0c=a1045_0x2fe8[_0x88d8b5];return _0x3ccb0c;};const _0x3098bf=a1045_0x3ccb,asr=require('./asr');module[_0x3098bf('0x0')]={'asr':asr}; \ No newline at end of file +const a1045_0xd079=['exports','./asr'];(function(_0x3ab003,_0xd07912){const _0x1a8c13=function(_0x4205dd){while(--_0x4205dd){_0x3ab003['push'](_0x3ab003['shift']());}};_0x1a8c13(++_0xd07912);}(a1045_0xd079,0x118));const a1045_0x1a8c=function(_0x3ab003,_0xd07912){_0x3ab003=_0x3ab003-0x0;let _0x1a8c13=a1045_0xd079[_0x3ab003];return _0x1a8c13;};const _0x22e24b=a1045_0x1a8c,asr=require(_0x22e24b('0x1'));module[_0x22e24b('0x0')]={'asr':asr}; \ No newline at end of file diff --git a/server/services/agi/server.js b/server/services/agi/server.js index 0fc00ea..8fe85c1 100644 --- a/server/services/agi/server.js +++ b/server/services/agi/server.js @@ -1 +1 @@ -const a1046_0xd428=['connection','util','./channel','getConnections','E_AGI_SERVER_VOICE_DISABLED','ready','close','listen','127.0.0.1','E_AGI_SERVER_CLOSE','destroy','listening','exports','error','createServer','emit','E_AGI_SERVER_ERROR','inherits','./error','EventEmitter','net'];(function(_0x49e428,_0xd428d1){const _0x36d234=function(_0x357a56){while(--_0x357a56){_0x49e428['push'](_0x49e428['shift']());}};_0x36d234(++_0xd428d1);}(a1046_0xd428,0x81));const a1046_0x36d2=function(_0x49e428,_0xd428d1){_0x49e428=_0x49e428-0x0;let _0x36d234=a1046_0xd428[_0x49e428];return _0x36d234;};const _0x583343=a1046_0x36d2;'use strict';const util=require(_0x583343('0x13')),net=require(_0x583343('0x11')),EventEmitter=require('events')[_0x583343('0x10')],AGIError=require(_0x583343('0xf')),AGIChannel=require(_0x583343('0x14')),AGIServer=function(_0x357a56,_0x8923a1,_0x4439b0){const _0x60ac25=_0x583343,_0x1a2667=this;_0x357a56=_0x357a56||0x11dd,_0x8923a1=_0x8923a1||_0x60ac25('0x5');let _0x264165=null,_0x26010f=0x0;EventEmitter['call'](_0x1a2667);function _0x334e8a(){const _0x4a1500=_0x60ac25;if(!_0x357a56)return _0x1a2667[_0x4a1500('0xc')]('error',new AGIError('E_AGI_ARGUMENT_PORT')),![];_0x264165=net[_0x4a1500('0xb')](),_0x264165[_0x4a1500('0x4')](_0x357a56,_0x8923a1),_0x264165['on'](_0x4a1500('0x8'),function(){const _0x461e23=_0x4a1500;_0x1a2667[_0x461e23('0xc')](_0x461e23('0x8'));}),_0x264165['on']('connection',function(_0x37abbd){const _0x2c7377=_0x4a1500;_0x264165[_0x2c7377('0x0')](function(_0x2a1f03,_0x5d6801){const _0x11d4c6=_0x2c7377;if(_0x2a1f03)_0x1a2667[_0x11d4c6('0xc')](_0x11d4c6('0xa'),new AGIError(_0x11d4c6('0xd'),_0x2a1f03));else{if(_0x4439b0&&_0x4439b0<0x0)_0x1a2667[_0x11d4c6('0xc')](_0x11d4c6('0xa'),new AGIError(_0x11d4c6('0x1'))),_0x37abbd[_0x11d4c6('0x7')]();else{if(_0x4439b0&&_0x4439b0>0x0&&_0x4439b0<_0x5d6801)_0x26010f+=0x1,_0x1a2667['emit'](_0x11d4c6('0xa'),new AGIError('E_AGI_SERVER_MAXCONNECTION',_0x26010f)),_0x37abbd[_0x11d4c6('0x7')]();else{const _0xf5788=new AGIChannel(_0x37abbd);_0xf5788['on'](_0x11d4c6('0x2'),function(){const _0x1e1265=_0x11d4c6;_0x1a2667['emit'](_0x1e1265('0x12'),_0xf5788);});}}}});}),_0x264165['on'](_0x4a1500('0xa'),function(_0x5f4814){const _0x326e75=_0x4a1500;_0x1a2667[_0x326e75('0xc')](_0x326e75('0xa'),new AGIError(_0x326e75('0xd'),_0x5f4814['code']));}),_0x264165['on'](_0x4a1500('0x3'),function(){const _0x53fd7a=_0x4a1500;_0x1a2667[_0x53fd7a('0xc')]('close',new AGIError(_0x53fd7a('0x6')));});}process['nextTick'](function(){_0x334e8a();});};util[_0x583343('0xe')](AGIServer,EventEmitter),module[_0x583343('0x9')]=function(_0x4be512,_0x20008b,_0x45b90b){return new AGIServer(_0x4be512,_0x20008b,_0x45b90b);}; \ No newline at end of file +const a1046_0x4ae4=['E_AGI_ARGUMENT_PORT','error','E_AGI_SERVER_MAXCONNECTION','destroy','nextTick','E_AGI_SERVER_ERROR','inherits','getConnections','util','E_AGI_SERVER_CLOSE','./error','createServer','emit','ready','exports','127.0.0.1','EventEmitter','listening','close','net','connection','call','listen','E_AGI_SERVER_VOICE_DISABLED'];(function(_0x3731ac,_0x4ae42c){const _0x2f17b5=function(_0xa7314f){while(--_0xa7314f){_0x3731ac['push'](_0x3731ac['shift']());}};_0x2f17b5(++_0x4ae42c);}(a1046_0x4ae4,0xc1));const a1046_0x2f17=function(_0x3731ac,_0x4ae42c){_0x3731ac=_0x3731ac-0x0;let _0x2f17b5=a1046_0x4ae4[_0x3731ac];return _0x2f17b5;};const _0x1a2fea=a1046_0x2f17;'use strict';const util=require(_0x1a2fea('0x7')),net=require(_0x1a2fea('0x12')),EventEmitter=require('events')[_0x1a2fea('0xf')],AGIError=require(_0x1a2fea('0x9')),AGIChannel=require('./channel'),AGIServer=function(_0xa7314f,_0x4a2fd9,_0x2ee968){const _0x294c71=_0x1a2fea,_0x384dbb=this;_0xa7314f=_0xa7314f||0x11dd,_0x4a2fd9=_0x4a2fd9||_0x294c71('0xe');let _0xc506ac=null,_0x352d44=0x0;EventEmitter[_0x294c71('0x14')](_0x384dbb);function _0x555898(){const _0x26ef2a=_0x294c71;if(!_0xa7314f)return _0x384dbb[_0x26ef2a('0xb')]('error',new AGIError(_0x26ef2a('0x17'))),![];_0xc506ac=net[_0x26ef2a('0xa')](),_0xc506ac[_0x26ef2a('0x15')](_0xa7314f,_0x4a2fd9),_0xc506ac['on'](_0x26ef2a('0x10'),function(){const _0xb192ab=_0x26ef2a;_0x384dbb[_0xb192ab('0xb')]('listening');}),_0xc506ac['on']('connection',function(_0x1e1c5f){const _0x51ecab=_0x26ef2a;_0xc506ac[_0x51ecab('0x6')](function(_0x183d48,_0x500383){const _0xd24a61=_0x51ecab;if(_0x183d48)_0x384dbb[_0xd24a61('0xb')]('error',new AGIError(_0xd24a61('0x4'),_0x183d48));else{if(_0x2ee968&&_0x2ee968<0x0)_0x384dbb[_0xd24a61('0xb')](_0xd24a61('0x0'),new AGIError(_0xd24a61('0x16'))),_0x1e1c5f['destroy']();else{if(_0x2ee968&&_0x2ee968>0x0&&_0x2ee968<_0x500383)_0x352d44+=0x1,_0x384dbb[_0xd24a61('0xb')](_0xd24a61('0x0'),new AGIError(_0xd24a61('0x1'),_0x352d44)),_0x1e1c5f[_0xd24a61('0x2')]();else{const _0x475541=new AGIChannel(_0x1e1c5f);_0x475541['on'](_0xd24a61('0xc'),function(){const _0x229be8=_0xd24a61;_0x384dbb['emit'](_0x229be8('0x13'),_0x475541);});}}}});}),_0xc506ac['on']('error',function(_0x33157c){const _0x4af142=_0x26ef2a;_0x384dbb[_0x4af142('0xb')](_0x4af142('0x0'),new AGIError(_0x4af142('0x4'),_0x33157c['code']));}),_0xc506ac['on'](_0x26ef2a('0x11'),function(){const _0x3e0842=_0x26ef2a;_0x384dbb['emit']('close',new AGIError(_0x3e0842('0x8')));});}process[_0x294c71('0x3')](function(){_0x555898();});};util[_0x1a2fea('0x5')](AGIServer,EventEmitter),module[_0x1a2fea('0xd')]=function(_0x5c461f,_0x5785ca,_0x2e803d){return new AGIServer(_0x5c461f,_0x5785ca,_0x2e803d);}; \ No newline at end of file diff --git a/server/services/agi/vertices.js b/server/services/agi/vertices.js index 7a85260..dcae86a 100644 --- a/server/services/agi/vertices.js +++ b/server/services/agi/vertices.js @@ -1 +1 @@ -const a1047_0x2621=['Amazon\x20Lex\x20ready\x20for\x20fulfillment','sendMail\x20message','Amy','aws_polly_voice','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','Trying\x20aws\x20Polly\x20%s','ispeech\x20TTS\x20is\x20unreachable','query','%s/%s@from-sip/n','no\x20trunk\x20selected','no\x20username\x20configured','shellCommand','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','500\x20-\x20Internal\x20Server\x20Error','Enter\x20in\x20SYSTEM\x20(%s)\x20block','AGENT\x20%s\x20NOT\x20FOUND\x20BY','url','saydigits','lumenvoxtts','file_id','finally','Answer','Enter\x20in\x20SET\x20(%s)\x20block','pass','no\x20variable\x20found','no\x20variable\x20selected\x20for\x20the\x20result','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','RECOG_INPUT()','Executed\x20command\x20%s','playback','isString','template_id','lastName','sesteknda','beep','no\x20intervals\x20found','application','createSquareDetailsReport','host','logout','indexOf','IntervalId','port','LOCAL','getSmsAccount','result','Recording\x20%s\x20%s\x20%s\x20%s','query:\x20%s','sms_text','menu','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','./scripts','apiKey','arg_1','callback_priority','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','dnid','no\x20user\x20found','Response:','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','toLowerCase','custom_app','setVariable','format','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','failure','rawBody','sh\x20command:\x20%s\x20result\x20no\x20stored','variable\x20%s[key]\x20set','getSmsAccountById','Dialogflow\x20Result\x20%s','sendMailMessage','mailRpc','Callback\x20scheduled\x20at\x20','no\x20find\x20by\x20configured','sayphonetic','opts','getSoundPath','DIAL','clone','awsLex','queue_id','Enter\x20in\x20RECORD\x20(%s)\x20block','ssmlGender','aws_lex_region','LUMENVOX_ASR_CONFIDENCE','.wav','body','no\x20valid\x20credentials\x20configured','../../config/logger','options','then','math\x20%s','google\x20%s\x20file\x20created','Enter\x20in\x20TILDEASR\x20(%s)\x20block','Enter\x20in\x20START\x20(%s)\x20block','aws\x20Polly\x20%s\x20file\x20created','dialogflow_language','includes','replaceAll','extra','key','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','getIntervalById','info','database','getAndSetVariable','Enter\x20in\x20QUEUE\x20(%s)\x20block','getSound','SIP/%s/%s','out','getVariableById','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','VOICEMAIL','interval_id','context','dialogflow','RECORDING_SAVENAME','PLAYBACK','Google\x20Cloud\x20TTS\x20is\x20unreachable','text','aws_text_type','127.0.0.1','Smtp','Executed\x20command\x20MRCPSynth\x20%s','no\x20sms\x20account\x20configured','no\x20appid\x20configured','getUser','getSoundById','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','wav','TildeASR\x20Result\x20%s','\x22%s\x22\x20<%s>','exec','ispeech\x20%s\x20file\x20created','scheduledAt','speech','timeout','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','awspolly','POST','true','aws_bot_name','sendSMS\x20message','hiddendigitsnum','test','Enter\x20in\x20SENDFAX\x20(%s)\x20block','yes','Amazon\x20Lex\x20is\x20unreachable','dsn','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','Enter\x20in\x20SWITCH\x20(%s)\x20block','ISPEECH_ASR_%s','agentPause','aws\x20Polly\x20is\x20unreachable','replace','operation','shelljs','%s[%s]','inspect','AGI','agentLogout','gotoc','googleasr','Enter\x20in\x20LOGOUT\x20(%s)\x20block','IFTIME\x20%s\x20%s','sestekasr','no\x20queue\x20selected','voicemail','rpc','toString','ispeechASR','args','generate','googleCloudTTS','mindigit','channel','Error\x20getting\x20ODBC\x20connection\x20%s','getTrunk','error','Google\x20TTS\x20is\x20unreachable','auth','replaceObjectAllVariables','SestekNDA\x20Result\x20%s','lodash','length','escape_digits','%s_STATUS_CODE','audiofile','moment','Trying\x20SestekNDA:\x20%s','GoogleASR\x20Result\x20%s','saynumber','Wait\x20%s\x20seconds\x20before\x20answer','sync','login','stringify','agi://%s/square,\x22%s\x22,\x22%s\x22','list_id','Enter\x20in\x20GOTOIF\x20(%s)\x20block','QUEUE','number','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','createSquareRecording','isEmpty','ndauth_url','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','no\x20file\x20audio\x20found','agicommand','Enter\x20in\x20SENDSMS\x20(%s)\x20block','accountcode','name','undefined','user','sendSMS','queue','Enter\x20in\x20FINALLY\x20(%s)\x20block','createSmsMessage','forEach','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','ndassistant_url','findBy','LUMENVOX_ASR_INSTANCE','no\x20subproject\x20selected','unpause','split','ext_dial','set','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','../../config/environment','%s.%s','callback_','no\x20variable\x20selected','agent','phone','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','no\x20query\x20configured','bcc','Enter\x20in\x20RESTAPI\x20(%s)\x20block','Trying\x20Google\x20Cloud\x20TTS\x20%s','googleASR','recordingFormat','render','awsPolly','message','/var/opt/motion2/server/files','recordFile','add','first','RECOG_CONFIDENCE()','toUpperCase','no\x20file\x20audio\x20selected','wait','no\x20mail\x20account\x20found','aws_secret_access_key','Query\x20executed\x20correctly\x20%s','mrcpsynth','gotoiftime','Intervals','pause','FIND\x20AGENT\x20%s\x20BY\x20%s','computedVariables','Skipped\x20Answer','retry','isNil','digit','sestektts','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','IspeechASR\x20Result\x20%s','ispeechTTS','randomstring','callerid','calleridname','sendMail','Enter\x20in\x20LOGIN\x20(%s)\x20block','username','map','uri','Executed\x20command\x20%s\x20%s','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','no\x20odbc\x20database\x20found','restAPI','noop','digits','project_id','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','streamFile','subject','replaceAllVariables','MP3','Enter\x20in\x20HANGUP\x20(%s)\x20block','getPauseById','SIP/%s','catch','MRCPRecog','Enter\x20in\x20MATH\x20(%s)\x20block','variable_value','util','no\x20trunk\x20found','Enter\x20in\x20AGI\x20(%s)\x20block','PUT','getSquareOdbcById','goalname','getVariable','recursiveNodeIndex','MRCP_RECOG_CONFIDENCE','saveRestApiResult','getIntervals','Enter\x20in\x20DATABASE\x20(%s)\x20block','200','getdigits','Trying\x20Google\x20TTS\x20%s','delay','SESTEK_NDA_%s','Trying\x20ispeech\x20TTS\x20%s','createCmContact','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','SESTEK_ASR_INSTANCE','sip_id','getQueryOdbc','statusMessage','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','no\x20operation\x20configured','%s/recordings/%s','uniqueid','googleDialogflow','authentication','Mail\x20message\x20added\x20to\x20outgoing\x20process','start','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','aws_polly_region','SENDFAX\x20block\x20not\x20implemented','appid','record','%s_%s','secure','interval','Sms\x20message\x20added\x20to\x20outgoing\x20process','vswitch','agi','Enter\x20in\x20END\x20(%s)\x20block','no\x20queue\x20found','sendFax','google_cloud_tts','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','no\x20apiKey\x20configured','parse','googleTTS','restapi','unlink','trunk_id','success','sestekNDA','appsecret','agentLogin','en-US','label','getSquareOdbc','variable\x20%s\x20set','AGENT\x20%s\x20FOUND\x20BY','system','condition','lumenvoxasr','method','ispeechtts','bot','no\x20mail\x20account\x20configured','hangup','createSquareMessage','headers','no\x20grammar\x20configured','random','sms_account_id','getsecretdigits','extension','%s/recordings/%s.%s','hiddendigitspos','isArray','NOBEEP','getVoiceQueueById','tildeasr','getMailAccount','Dialogflow\x20is\x20unreachable','getSquareProject','sayPhonetic','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','isPlainObject','getTrunkById','%s/sounds/converted/%s','gosub','RECOG_INSTANCE()','aws_access_key_id','prototype','rawHeaders','getPause','position','response','agentUnpause','callback','getVoiceQueue','debug','TILDE_ASR_%s','intKey','command','XMCS-QUEUE','maxdigit','Trying\x20Amazon\x20Lex:\x20%s','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20ndauth\x20url\x20configured','tildeASR','maxRetry','account_id','isConfigured','ispeech_tts_language','tilde\x20%s\x20file\x20created','statusCode','answer','macro','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','no\x20key\x20configured','START\x20CALLY\x20SQUARE','grammar','odbc_id','service','password','clear','no\x20url\x20configured','false','ispeechasr','sayDigits','variable_id','no\x20text\x20configured','priority','trunk_name','Enter\x20in\x20NOOP\x20(%s)\x20block','tts','join','exports','Enter\x20in\x20CALLBACK\x20(%s)\x20block','mailbox','Trying\x20SendSMS\x20with\x20account\x20%s','awslex','MRCPSynth'];(function(_0x293f71,_0x262114){const _0x1170e4=function(_0x34e265){while(--_0x34e265){_0x293f71['push'](_0x293f71['shift']());}};_0x1170e4(++_0x262114);}(a1047_0x2621,0x14b));const a1047_0x1170=function(_0x293f71,_0x262114){_0x293f71=_0x293f71-0x0;let _0x1170e4=a1047_0x2621[_0x293f71];return _0x1170e4;};const _0x590ead=a1047_0x1170;'use strict';const fs=require('fs'),util=require(_0x590ead('0x1a2')),_=require(_0x590ead('0x12e')),sh=require(_0x590ead('0x113')),odbc=require('odbc'),rs=require(_0x590ead('0x187')),moment=require(_0x590ead('0x133')),Mustache=require('mustache'),rp=require('request-promise-native'),logger=require(_0x590ead('0xce'))(_0x590ead('0xc')),config=require(_0x590ead('0x15e')),scripts=require(_0x590ead('0xa8')),FILES_PATH=_0x590ead('0x16e'),recursiveMapAttributes=[_0x590ead('0x43'),_0x590ead('0xb7')],verticesWithRetry=['menu',_0x590ead('0x1af'),_0x590ead('0x2e')],AGIVertices=function(_0x34e265,_0x150d94,_0x1def30){const _0x597d57=_0x590ead;this[_0x597d57('0x126')]=_0x34e265,this[_0x597d57('0x11f')]=_0x150d94,this[_0x597d57('0xbd')]=_0x1def30;};AGIVertices[_0x590ead('0x42')][_0x590ead('0x1a8')]=function(_0x353abb,_0x4a8d09){const _0x54c858=_0x590ead;this['rpc'][_0x54c858('0xe5')](_0x353abb)['then'](function(_0x1ec4df){const _0x390d05=_0x54c858;_0x4a8d09(null,_0x1ec4df?_0x1ec4df[_0x390d05('0x14b')]:![]);})[_0x54c858('0x19e')](function(_0x263c70){_0x4a8d09(_0x263c70);});},AGIVertices[_0x590ead('0x42')]['getVoiceQueue']=function(_0x45836c,_0x5e22ce){const _0x144d39=_0x590ead;this[_0x144d39('0x11f')][_0x144d39('0x34')](_0x45836c)[_0x144d39('0xd0')](function(_0x2c450d){const _0x2e5c08=_0x144d39;_0x5e22ce(null,_0x2c450d?_0x2c450d[_0x2e5c08('0x14b')]:![]);})[_0x144d39('0x19e')](function(_0x142994){_0x5e22ce(_0x142994);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x38')]=function(_0x150482,_0x5ded36){const _0xf03e45=_0x590ead;this[_0xf03e45('0x11f')]['getSquareProjectById'](_0x150482)['then'](function(_0x59e53){const _0xf085e0=_0xf03e45;_0x5ded36(null,_0x59e53?_0x59e53[_0xf085e0('0x14b')]:![]);})[_0xf03e45('0x19e')](function(_0x5b7ba1){_0x5ded36(_0x5b7ba1);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x1e')]=function(_0x2331cf,_0x3872f5){const _0x42feb5=_0x590ead;this[_0x42feb5('0x11f')][_0x42feb5('0x1a6')](_0x2331cf)[_0x42feb5('0xd0')](function(_0x48d93a){const _0x3b04c0=_0x42feb5;_0x3872f5(null,_0x48d93a?_0x48d93a[_0x3b04c0('0x10b')]:![]);})[_0x42feb5('0x19e')](function(_0x1a21df){_0x3872f5(_0x1a21df);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0xf5')]=function(_0x7f088,_0x4608df){const _0x4377f3=_0x590ead;this['rpc']['getUserById'](_0x7f088)[_0x4377f3('0xd0')](function(_0x49d514){const _0x13aff3=_0x4377f3;_0x4608df(null,_0x49d514?_0x49d514[_0x13aff3('0x14b')]:![]);})['catch'](function(_0x4c7f3c){_0x4608df(_0x4c7f3c);});},AGIVertices[_0x590ead('0x42')]['getTrunk']=function(_0x38061a,_0x2b4d14){const _0x33bf94=_0x590ead;this[_0x33bf94('0x11f')][_0x33bf94('0x3d')](_0x38061a)[_0x33bf94('0xd0')](function(_0x3d60a6){const _0x57d55b=_0x33bf94;_0x2b4d14(null,_0x3d60a6?_0x3d60a6[_0x57d55b('0x14b')]:![]);})[_0x33bf94('0x19e')](function(_0x310968){_0x2b4d14(_0x310968);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0xe2')]=function(_0x54c6d2,_0x9513ce){const _0x129f82=_0x590ead,_0x5685bc=this;this[_0x129f82('0x11f')][_0x129f82('0xf6')](_0x54c6d2)['then'](function(_0x5e8a1f){const _0x3a44e3=_0x129f82;_0x9513ce(null,_0x5e8a1f?_0x5685bc[_0x3a44e3('0xc2')](_0x5e8a1f['save_name']):![]);})[_0x129f82('0x19e')](function(_0x11e35d){_0x9513ce(_0x11e35d);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x36')]=function(_0x2715fc,_0x170cb5){const _0x302855=_0x590ead;this[_0x302855('0x11f')]['getMailAccountById'](_0x2715fc)['then'](function(_0x4ebd78){_0x170cb5(null,_0x4ebd78?_0x4ebd78:![]);})['catch'](function(_0x55b03e){_0x170cb5(_0x55b03e);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0xbc')]=function(_0x540674,_0x31957f,_0x13cb01){const _0x332ab3=_0x590ead;this[_0x332ab3('0xbd')][_0x332ab3('0xbc')](_0x540674,_0x31957f)[_0x332ab3('0xd0')](function(){_0x13cb01(null);})[_0x332ab3('0x19e')](function(_0x5a3fa8){_0x13cb01(_0x5a3fa8);});},AGIVertices[_0x590ead('0x42')]['getIntervals']=function(_0x502817,_0x50f803){const _0x11ab9f=_0x590ead;this[_0x11ab9f('0x11f')][_0x11ab9f('0xdd')](_0x502817)['then'](function(_0x4d3f50){const _0x46eb8b=_0x11ab9f;_0x4d3f50?_0x4d3f50[_0x46eb8b('0x9e')]?_0x50f803(null,[_0x4d3f50[_0x46eb8b('0x9')]]):_0x50f803(null,_[_0x46eb8b('0x18d')](_0x4d3f50[_0x46eb8b('0x17b')],'interval')):_0x50f803(null,![]);})[_0x11ab9f('0x19e')](function(_0x54fe2f){_0x50f803(_0x54fe2f);});},AGIVertices['prototype'][_0x590ead('0xc2')]=function(_0x5332b5){const _0x15b56c=_0x590ead;return util[_0x15b56c('0xb4')](_0x15b56c('0x3e'),FILES_PATH,_0x5332b5);},AGIVertices[_0x590ead('0x42')][_0x590ead('0x1b8')]=function(_0x2976f1,_0x5c9836,_0xac9aca){odbc['open'](_0x2976f1,function(_0x4c7254){const _0x512fa7=a1047_0x1170;_0x4c7254?(logger['error'](_0x512fa7('0x127'),_0x4c7254),_0xac9aca(_0x4c7254)):(logger['info']('ODBC\x20connection\x20successfully'),odbc[_0x512fa7('0x7c')](_0x5c9836,function(_0x94e74,_0x3fde97){const _0x3facdb=_0x512fa7;_0x94e74?(logger['info']('Error\x20executing\x20query\x20%s',_0x5c9836),_0xac9aca(_0x94e74)):(logger['info'](_0x3facdb('0x178'),_0x5c9836),odbc['close'](function(_0x4a6bfc){const _0x171e97=_0x3facdb;_0x4a6bfc&&logger[_0x171e97('0x129')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x4a6bfc),_0xac9aca(null,_0x3fde97);}));}));});},AGIVertices['prototype']['getSmsAccount']=function(_0x2b69ee,_0x1e2752){const _0x4ffcff=_0x590ead;this[_0x4ffcff('0x11f')][_0x4ffcff('0xba')](_0x2b69ee)[_0x4ffcff('0xd0')](function(_0x551ce4){_0x1e2752(null,_0x551ce4?_0x551ce4:![]);})[_0x4ffcff('0x19e')](function(_0x25553b){_0x1e2752(_0x25553b);});},AGIVertices[_0x590ead('0x42')]['createSmsMessage']=function(_0x16b193,_0xa8db63){const _0x2f583a=_0x590ead;this[_0x2f583a('0x11f')][_0x2f583a('0x151')](_0x16b193)[_0x2f583a('0xd0')](function(_0x3286fb){_0xa8db63(null,_0x3286fb);})['catch'](function(_0x49bb30){_0xa8db63(_0x49bb30);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x9a')]=function(_0x6f4694,_0x35a7c4,_0x2913da){const _0x5ea70a=_0x590ead;this['rpc']['createSquareDetailsReport']({'uniqueid':this[_0x5ea70a('0x126')]['uniqueid'],'node':_0x6f4694[_0x5ea70a('0x1d')],'application':_0x6f4694[_0x5ea70a('0x148')],'data':_0x35a7c4||null,'project_name':this[_0x5ea70a('0x126')][_0x5ea70a('0xaa')],'callerid':this[_0x5ea70a('0x126')][_0x5ea70a('0x188')]})[_0x5ea70a('0xd0')](function(_0x54810e){_0x2913da&&_0x2913da(null,_0x54810e);})[_0x5ea70a('0x19e')](function(_0x3c3f6b){_0x2913da&&_0x2913da(_0x3c3f6b);});},AGIVertices['prototype']['createSquareRecording']=function(_0x109654,_0x185a93,_0x2bf71e,_0x1fa50a){const _0x212877=_0x590ead;this[_0x212877('0x11f')][_0x212877('0x141')]({'uniqueid':this[_0x212877('0x126')][_0x212877('0x1bd')],'callerid':this['channel'][_0x212877('0x188')],'calleridname':this[_0x212877('0x126')][_0x212877('0x189')],'context':this[_0x212877('0x126')][_0x212877('0xe9')],'extension':this[_0x212877('0x126')][_0x212877('0x2f')],'priority':this[_0x212877('0x126')][_0x212877('0x6a')],'accountcode':this[_0x212877('0x126')][_0x212877('0x14a')],'dnid':this[_0x212877('0x126')][_0x212877('0xad')],'projectName':this[_0x212877('0x126')][_0x212877('0xaa')],'saveName':_0x185a93,'filename':_0x109654[_0x212877('0x145')]||_0x185a93,'savePath':_0x2bf71e})[_0x212877('0xd0')](function(_0x2fbeb4){_0x1fa50a(null,_0x2fbeb4);})['catch'](function(_0x5acdc9){_0x1fa50a(_0x5acdc9);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x29')]=function(_0x3f2522,_0x21d7dd,_0x4f136a){const _0x5290e6=_0x590ead;this['rpc'][_0x5290e6('0x29')]({'uniqueid':this[_0x5290e6('0x126')]['uniqueid'],'body':_0x3f2522,'direction':_0x21d7dd})[_0x5290e6('0xd0')](function(_0x54bd0b){_0x4f136a&&_0x4f136a(null,_0x54bd0b);})[_0x5290e6('0x19e')](function(_0x35702a){_0x4f136a&&_0x4f136a(_0x35702a);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x1b4')]=function(_0x59288c,_0x3f0afa){const _0x25d7bc=_0x590ead;this[_0x25d7bc('0x11f')]['createCmContact']({'firstName':_['isEmpty'](_0x59288c['name'])||_[_0x25d7bc('0x181')](_0x59288c[_0x25d7bc('0x14b')])?_0x25d7bc('0x160')+Math[_0x25d7bc('0x2c')]():_0x59288c[_0x25d7bc('0x14b')],'lastName':_['isEmpty'](_0x59288c[_0x25d7bc('0x95')])||_['isNil'](_0x59288c[_0x25d7bc('0x95')])?null:_0x59288c[_0x25d7bc('0x95')],'phone':_0x59288c[_0x25d7bc('0x163')],'ListId':_0x59288c['list_id'],'scheduledat':_0x59288c[_0x25d7bc('0xfd')],'callbackUniqueid':this[_0x25d7bc('0x126')][_0x25d7bc('0x1bd')],'tags':_0x25d7bc('0x48'),'description':_0x25d7bc('0xbe')+_0x59288c[_0x25d7bc('0xfd')]['toString'](),'priority':_0x59288c[_0x25d7bc('0xab')]})['then'](function(_0x46660d){_0x3f0afa(null,_0x46660d);})[_0x25d7bc('0x19e')](function(_0x20a345){_0x3f0afa(_0x20a345);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x44')]=function(_0x432316,_0x47cdcb){const _0x313d20=_0x590ead;this['rpc'][_0x313d20('0x19c')](_0x432316)['then'](function(_0xee6852){_0x47cdcb(null,_0xee6852?_0xee6852['name']:![]);})['catch'](function(_0x2cca8e){_0x47cdcb(_0x2cca8e);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x10f')]=function(_0x5ccd6d,_0xfe4750,_0x495ea2){const _0x5c3d29=_0x590ead,_0x5088bf={'role':'agent'};_0x5088bf[_0x5ccd6d]=this[_0x5c3d29('0x126')][_0x5c3d29('0x188')],this[_0x5c3d29('0x11f')]['agentPause'](_0x5088bf,_0xfe4750,this['channel'][_0x5c3d29('0x1bd')])[_0x5c3d29('0xd0')](function(_0x184cd4){const _0x2eaa9e=_0x5c3d29;_0x495ea2(null,_[_0x2eaa9e('0x181')](_0x184cd4)?![]:!![]);})['catch'](function(_0x313988){logger['error'](_0x313988),_0x495ea2(null,![]);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x47')]=function(_0x39688b,_0x2a26f9){const _0x1fd57e=_0x590ead,_0x407e03={'role':_0x1fd57e('0x162')};_0x407e03[_0x39688b]=this['channel'][_0x1fd57e('0x188')],this[_0x1fd57e('0x11f')]['agentUnpause'](_0x407e03)[_0x1fd57e('0xd0')](function(_0xeabd66){const _0x37fca6=_0x1fd57e;_0x2a26f9(null,_[_0x37fca6('0x181')](_0xeabd66)?![]:!![]);})[_0x1fd57e('0x19e')](function(_0x5d7477){const _0x19fabd=_0x1fd57e;logger[_0x19fabd('0x129')](_0x5d7477),_0x2a26f9(null,![]);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x117')]=function(_0xa8dde3,_0x2831e9){const _0x486cc3=_0x590ead,_0x2bd9aa={'role':_0x486cc3('0x162')};_0x2bd9aa[_0xa8dde3]=this[_0x486cc3('0x126')][_0x486cc3('0x188')],this['rpc'][_0x486cc3('0x117')](_0x2bd9aa)[_0x486cc3('0xd0')](function(_0x21c70d){_0x2831e9(null,_['isNil'](_0x21c70d)?![]:!![]);})[_0x486cc3('0x19e')](function(_0x4d3286){const _0x1d518d=_0x486cc3;logger[_0x1d518d('0x129')](_0x4d3286),_0x2831e9(null,![]);});},AGIVertices['prototype'][_0x590ead('0x1b')]=function(_0x160c41,_0x202d86){const _0x21be35=_0x590ead,_0x2f2806={'role':'agent'};_0x2f2806[_0x160c41]=this[_0x21be35('0x126')][_0x21be35('0x188')];const _0x47b077=_0x160c41!='internal'?util[_0x21be35('0xb4')](_0x21be35('0x7d'),_0x21be35('0xa0'),this[_0x21be35('0x126')]['callerid']):undefined;this[_0x21be35('0x11f')][_0x21be35('0x1b')](_0x2f2806,_0x47b077)[_0x21be35('0xd0')](function(_0x3a4622){const _0x485969=_0x21be35;_0x202d86(null,_[_0x485969('0x181')](_0x3a4622)?![]:!![]);})['catch'](function(_0x216995){const _0x46b12f=_0x21be35;logger[_0x46b12f('0x129')](_0x216995),_0x202d86(null,![]);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x80')]=function(_0x14a402,_0x539c66){sh['exec'](_['trim'](_0x14a402),function(_0x5a77a3,_0x1f1b2b){const _0x313625=a1047_0x1170,_0xc62807=_0x1f1b2b[_0x313625('0x111')](/(\r\n|\n|\r)/gm,'');_0x539c66(null,_0xc62807);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x124')]=function(_0x5416cd,_0xdc295d){const _0x4388fe=_0x590ead;scripts[_0x4388fe('0x124')](_0x5416cd[_0x4388fe('0xa9')],_0x5416cd['google_cloud_tts_text_type']||_0x4388fe('0xee'),_0x5416cd[_0x4388fe('0xee')],_0x5416cd['languageCode']||_0x4388fe('0x1c'),_0x5416cd[_0x4388fe('0xc8')]||'MALE',_0x5416cd['audioEncoding']||_0x4388fe('0x19a'))[_0x4388fe('0xd0')](function(_0x255e79){_0xdc295d(null,_0x255e79);})[_0x4388fe('0x19e')](function(_0x58f847){_0xdc295d(_0x58f847);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x14')]=function(_0x21286f,_0x3681eb){const _0x53af2c=_0x590ead;scripts[_0x53af2c('0x14')](_0x21286f[_0x53af2c('0xee')],_0x21286f['google_tts_language']||'en',0x1)[_0x53af2c('0xd0')](function(_0x6f7bf4){_0x3681eb(null,_0x6f7bf4);})['catch'](function(_0x32304f){_0x3681eb(_0x32304f);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x192')]=function(_0x2db3e8,_0x2e0e48){const _0x1c5947=_0x590ead,_0x3089e6={'uri':_0x2db3e8[_0x1c5947('0x85')],'method':_0x2db3e8['method'],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x2db3e8[_0x1c5947('0xff')])===_0x1c5947('0x13f')&&parseInt(_0x2db3e8['timeout'])>=0x1?parseInt(_0x2db3e8[_0x1c5947('0xff')])*0x3e8:0x5*0x3e8};if(_[_0x1c5947('0xd7')]([_0x1c5947('0x102'),_0x1c5947('0x1a5')],_0x3089e6[_0x1c5947('0x24')][_0x1c5947('0x173')]()))try{_0x3089e6[_0x1c5947('0xcc')]=_0x2db3e8[_0x1c5947('0xb7')]?JSON[_0x1c5947('0x13')](_0x2db3e8['rawBody']):{};}catch(_0x3824cf){logger[_0x1c5947('0x129')](_0x1c5947('0x164'),_0x3824cf);}try{_0x3089e6[_0x1c5947('0x2a')]=_0x2db3e8['rawHeaders']?JSON[_0x1c5947('0x13')](_0x2db3e8[_0x1c5947('0x43')]):{};}catch(_0x40a291){logger['error'](_0x1c5947('0xa7'),_0x40a291);}if(_0x2db3e8[_0x1c5947('0x17e')])try{const _0x36e903=require(_0x2db3e8[_0x1c5947('0x17e')])[_0x1c5947('0x138')](this,_0x3089e6);_0x3089e6[_0x1c5947('0x18e')]=Mustache[_0x1c5947('0x16b')](_0x2db3e8['url'],_0x36e903,{},['$$','$$']),_0x3089e6['headers']&&(_0x3089e6[_0x1c5947('0x2a')]=JSON[_0x1c5947('0x13')](Mustache[_0x1c5947('0x16b')](JSON[_0x1c5947('0x13a')](_0x3089e6[_0x1c5947('0x2a')]),_0x36e903,{},['$$','$$']))),_0x3089e6[_0x1c5947('0xcc')]&&(_0x3089e6[_0x1c5947('0xcc')]=JSON[_0x1c5947('0x13')](Mustache[_0x1c5947('0x16b')](JSON[_0x1c5947('0x13a')](_0x3089e6['body']),_0x36e903,{},['$$','$$'])));}catch(_0x396d6a){logger['error'](_0x1c5947('0x11'),_0x396d6a);}rp(_0x3089e6)['then'](function(_0x309cfa){const _0x13468f=_0x1c5947,_0x4084ca={'statusCode':_0x309cfa[_0x13468f('0x59')]||0xc8,'statusMessage':_0x309cfa[_0x13468f('0x1b9')]||'OK','headers':_0x309cfa['headers']||{},'body':_0x309cfa['body']||{}};_0x2e0e48(null,_0x4084ca);})[_0x1c5947('0x19e')](function(_0x4be077){const _0x56cc66=_0x1c5947,_0x46e1e9={'statusCode':_0x4be077[_0x56cc66('0x59')]||0x1f4,'statusMessage':_0x4be077['message']||_0x56cc66('0x82'),'headers':_0x4be077['options'][_0x56cc66('0x2a')]||{},'body':_0x4be077[_0x56cc66('0xcf')]['body']||{}};_0x2e0e48(null,_0x46e1e9);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x1be')]=function(_0x2d0095,_0x3aef6d){const _0x483f16=_0x590ead;scripts[_0x483f16('0x1be')](this[_0x483f16('0x126')][_0x483f16('0x1bd')],_0x2d0095[_0x483f16('0xda')],_0x2d0095[_0x483f16('0xee')],_0x2d0095[_0x483f16('0xd6')]||'en')[_0x483f16('0xd0')](function(_0x2087cf){_0x3aef6d(null,_0x2087cf);})[_0x483f16('0x19e')](function(_0x3ada34){_0x3aef6d(_0x3ada34);});},AGIVertices[_0x590ead('0x42')]['sestekNDA']=function(_0x3a9d0b,_0x2146f5){const _0x46d68f=_0x590ead;scripts['sestekNDA'](this[_0x46d68f('0x126')],_0x3a9d0b)[_0x46d68f('0xd0')](function(_0x11868a){_0x2146f5(null,_0x11868a);})[_0x46d68f('0x19e')](function(_0x2dfcdb){_0x2146f5(_0x2dfcdb);});},AGIVertices['prototype'][_0x590ead('0x186')]=function(_0x4a41e1,_0x93afac){const _0x2717bf=_0x590ead;scripts[_0x2717bf('0x186')](_0x4a41e1[_0x2717bf('0xda')],_0x4a41e1['text'],_0x4a41e1[_0x2717bf('0x57')]||_0x2717bf('0x1c'),_0x4a41e1['speed'])[_0x2717bf('0xd0')](function(_0x564a4d){_0x93afac(null,_0x564a4d);})[_0x2717bf('0x19e')](function(_0x97a2ab){_0x93afac(_0x97a2ab);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x121')]=function(_0x1484f6,_0x5423eb,_0x29ef54){const _0x530afd=_0x590ead;scripts[_0x530afd('0x121')](_0x5423eb,_0x1484f6[_0x530afd('0xda')],_0x1484f6['ispeech_asr_language']||'en-US',this[_0x530afd('0x56')](_0x1484f6['model'])?_0x1484f6['model']:undefined)[_0x530afd('0xd0')](function(_0x806977){_0x29ef54(null,_0x806977);})[_0x530afd('0x19e')](function(_0x188c9c){_0x29ef54(_0x188c9c);});},AGIVertices['prototype']['awsPolly']=function(_0x3739c1,_0x6691e8){const _0x4fb783=_0x590ead;scripts[_0x4fb783('0x16c')](_0x3739c1['aws_access_key_id'],_0x3739c1[_0x4fb783('0x177')],_0x3739c1[_0x4fb783('0x3')],_0x3739c1[_0x4fb783('0x78')]||_0x4fb783('0x77'),_0x3739c1['text'],_0x3739c1[_0x4fb783('0xef')]||_0x4fb783('0xee'))['then'](function(_0x3172be){_0x6691e8(null,_0x3172be);})[_0x4fb783('0x19e')](function(_0x166923){_0x6691e8(_0x166923);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0xc5')]=function(_0x377dee,_0x12e05a){const _0x3cac50=_0x590ead;scripts[_0x3cac50('0xc5')](this[_0x3cac50('0x126')][_0x3cac50('0x1bd')],_0x377dee[_0x3cac50('0x41')],_0x377dee[_0x3cac50('0x177')],_0x377dee[_0x3cac50('0xc9')],_0x377dee['text'],_0x377dee[_0x3cac50('0x104')])[_0x3cac50('0xd0')](function(_0x507ecd){_0x12e05a(null,_0x507ecd);})[_0x3cac50('0x19e')](function(_0x45775f){_0x12e05a(_0x45775f);});},AGIVertices['prototype'][_0x590ead('0x169')]=function(_0x42862b,_0x14d28e,_0x2b0361){const _0x56198b=_0x590ead;scripts[_0x56198b('0x169')](_0x14d28e,_0x42862b[_0x56198b('0xda')],_0x42862b['google_asr_language']||_0x56198b('0x1c'))['then'](function(_0x18aec7){_0x2b0361(null,_0x18aec7);})[_0x56198b('0x19e')](function(_0x1f4fc5){_0x2b0361(_0x1f4fc5);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x53')]=function(_0x4469b9,_0x202a8b,_0x539af3){const _0x217792=_0x590ead;scripts['tildeASR'](_0x202a8b,_0x4469b9[_0x217792('0x5')],_0x4469b9[_0x217792('0x1a')],_0x4469b9[_0x217792('0x18e')])[_0x217792('0xd0')](function(_0x294e49){_0x539af3(null,_0x294e49);})[_0x217792('0x19e')](function(_0x1cf685){_0x539af3(_0x1cf685);});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x63')]=function(_0x4babaa){const _0x517c40=_0x590ead,_0x294395=_['includes'](verticesWithRetry,_0x4babaa[_0x517c40('0x148')])?_0x4babaa:_[_0x517c40('0xc4')](_0x4babaa);for(const _0x2368b9 in _0x294395){typeof _0x294395[_0x2368b9]!==_0x517c40('0x14c')&&(_0x294395[_0x2368b9]&&_[_0x517c40('0x93')](_0x294395[_0x2368b9])&&(_[_0x517c40('0xd7')](recursiveMapAttributes,_0x2368b9)?_0x294395[_0x2368b9]=this['replaceObjectAllVariables'](_0x294395[_0x2368b9]):_0x294395[_0x2368b9]=this[_0x517c40('0x199')](_0x294395[_0x2368b9])));}return _0x294395;},AGIVertices[_0x590ead('0x42')][_0x590ead('0x1a9')]=function(_0x5014a0){const _0xf8789a=_0x590ead;for(const _0x193ee9 in _0x5014a0){if(typeof _0x5014a0[_0x193ee9]!=='undefined'){if(_[_0xf8789a('0x3c')](_0x5014a0[_0x193ee9]))this['recursiveNodeIndex'](_0x5014a0[_0x193ee9]);else{if(_[_0xf8789a('0x32')](_0x5014a0[_0x193ee9]))for(let _0x2cd6b0=0x0;_0x2cd6b0<_0x5014a0[_0x193ee9][_0xf8789a('0x12f')];_0x2cd6b0++){this[_0xf8789a('0x1a9')](_0x5014a0[_0x193ee9][_0x2cd6b0]);}else _[_0xf8789a('0x93')](_0x5014a0[_0x193ee9])&&(_0x5014a0[_0x193ee9]=this[_0xf8789a('0x199')](_0x5014a0[_0x193ee9]));}}}},AGIVertices['prototype']['saveRestApiResult']=function(_0x335807,_0x4106af){const _0x5b01ed=_0x590ead;for(const _0x22da89 in _0x335807){if(typeof _0x335807[_0x22da89]!=='undefined'){if(_['isPlainObject'](_0x335807[_0x22da89]))!_[_0x5b01ed('0x142')](_0x335807[_0x22da89])&&this[_0x5b01ed('0x1ab')](_0x335807[_0x22da89],util[_0x5b01ed('0xb4')](_0x5b01ed('0x15f'),_0x4106af,_0x22da89));else{if(_['isArray'](_0x335807[_0x22da89]))for(let _0x245529=0x0;_0x245529<_0x335807[_0x22da89]['length'];_0x245529++){this['saveRestApiResult'](_0x335807[_0x22da89][_0x245529],util['format']('%s.%s',_0x4106af,_0x22da89+'['+_0x245529+']'));}else!_[_0x5b01ed('0x181')](_0x335807[_0x22da89])&&this[_0x5b01ed('0x126')][_0x5b01ed('0xb3')](util[_0x5b01ed('0xb4')]('%s.%s',_0x4106af,_0x22da89),_0x335807[_0x22da89]);}}}},AGIVertices['prototype'][_0x590ead('0x12c')]=function(_0x351526){const _0x178905=_0x590ead;try{const _0x1d4012=JSON[_0x178905('0x13')](_0x351526);return this['recursiveNodeIndex'](_0x1d4012),JSON[_0x178905('0x13a')](_0x1d4012);}catch(_0x2fdaa3){return this['replaceAllVariables'](_0x351526);}},AGIVertices[_0x590ead('0x42')]['replaceAllVariables']=function(_0x1e2024){const _0x10fd0b=_0x590ead,_0x56d360=_0x1e2024['split']('{');for(let _0x1137a3=0x1;_0x1137a3<_0x56d360[_0x10fd0b('0x12f')];_0x1137a3+=0x1){const _0x3897ef=_0x56d360[_0x1137a3][_0x10fd0b('0x159')]('}');_0x3897ef[_0x10fd0b('0x12f')]>0x1&&(_0x1e2024=_0x1e2024[_0x10fd0b('0xd8')]('{'+_0x3897ef[0x0]+'}',this['channel'][_0x10fd0b('0x1a8')](_0x3897ef[0x0])[_0x10fd0b('0xd9')]||_0x3897ef[0x0]));}if(_0x56d360[_0x10fd0b('0x12f')]===0x1)return _0x1e2024[_0x10fd0b('0x120')]();return this[_0x10fd0b('0x199')](_0x1e2024);},AGIVertices[_0x590ead('0x42')]['getAndSetVariable']=function(_0x22ee9c,_0x111625){const _0x376934=_0x590ead,_0x3a824c=this[_0x376934('0x126')]['getVariable'](_0x22ee9c);if(_0x3a824c[_0x376934('0xa2')]===-0x1)return _0x3a824c;return logger[_0x376934('0xde')](util[_0x376934('0xb4')](_0x376934('0x3b'),_0x111625,_0x3a824c[_0x376934('0xd9')])),this[_0x376934('0x126')][_0x376934('0xb3')](_0x111625,_0x3a824c[_0x376934('0xd9')]);},AGIVertices[_0x590ead('0x42')][_0x590ead('0x56')]=function(_0x144872){return _0x144872&&_0x144872!=='0'&&_0x144872!=='-1'&&_0x144872!=='';},AGIVertices[_0x590ead('0x42')][_0x590ead('0x54')]=function(_0x1f2d3e){const _0x2f1dd0=_0x590ead;return this[_0x2f1dd0('0x9a')]['sync'](this,_0x1f2d3e,'-'),_0x1f2d3e['retry']=_0x1f2d3e[_0x2f1dd0('0x54')],{'code':0xc8,'result':'-'};},AGIVertices[_0x590ead('0x42')][_0x590ead('0x179')]=function(_0x58d355){const _0x30a640=_0x590ead;logger[_0x30a640('0xde')](util[_0x30a640('0xb4')](_0x30a640('0x100'),_0x58d355['label']));if(!this[_0x30a640('0x56')](_0x58d355[_0x30a640('0xee')]))return this[_0x30a640('0x126')][_0x30a640('0x193')](_0x30a640('0x69'));let _0x3f40ff='\x22'+_0x58d355[_0x30a640('0xee')]+'\x22';this[_0x30a640('0x56')](_0x58d355['options'])&&(_0x3f40ff+=','+_0x58d355[_0x30a640('0xcf')]);const _0x3afe48=this[_0x30a640('0x126')][_0x30a640('0xfb')]('MRCPSynth',_0x3f40ff);if(_0x3afe48[_0x30a640('0xa2')]===-0x1)return _0x3afe48;return this['channel'][_0x30a640('0x193')](util[_0x30a640('0xb4')]('Executed\x20command\x20MRCPSynth\x20%s',_0x3f40ff));},AGIVertices[_0x590ead('0x42')]['mrcprecog']=function(_0x31b6eb){const _0x5ecc99=_0x590ead;logger[_0x5ecc99('0xde')](util[_0x5ecc99('0xb4')](_0x5ecc99('0x1ba'),_0x31b6eb[_0x5ecc99('0x1d')]));if(!this[_0x5ecc99('0x56')](_0x31b6eb['grammar']))return this[_0x5ecc99('0x126')]['noop'](_0x5ecc99('0x2b'));let _0x5e22af=_0x31b6eb['grammar'];this['isConfigured'](_0x31b6eb[_0x5ecc99('0xcf')])&&(_0x5e22af+=','+_0x31b6eb[_0x5ecc99('0xcf')]);const _0x42ec85=this[_0x5ecc99('0x126')][_0x5ecc99('0xfb')](_0x5ecc99('0x19f'),_0x5e22af);if(_0x42ec85[_0x5ecc99('0xa2')]===-0x1)return _0x42ec85;const _0x32e281=this['getAndSetVariable'](_0x5ecc99('0x172'),_0x5ecc99('0x1aa'));if(_0x32e281[_0x5ecc99('0xa2')]===-0x1)return _0x32e281;const _0x603290=this[_0x5ecc99('0xe0')](_0x5ecc99('0x90'),'MRCP_RECOG_TRANSCRIPT');if(_0x603290['result']===-0x1)return _0x603290;const _0xba03fe=this[_0x5ecc99('0xe0')]('RECOG_INSTANCE()','MRCP_RECOG_INSTANCE');if(_0xba03fe['result']===-0x1)return _0xba03fe;return this[_0x5ecc99('0x126')][_0x5ecc99('0x193')](util[_0x5ecc99('0xb4')]('Executed\x20command\x20MRCPRecog\x20%s',_0x5e22af));},AGIVertices[_0x590ead('0x42')]['agi']=function(_0x4c66f0){const _0x15d85b=_0x590ead;return logger['info'](util['format'](_0x15d85b('0x1a4'),_0x4c66f0[_0x15d85b('0x1d')])),this['channel'][_0x15d85b('0xc')]([_0x4c66f0[_0x15d85b('0x4d')],_0x4c66f0[_0x15d85b('0x122')]]);},AGIVertices[_0x590ead('0x42')][_0x590ead('0x5a')]=function(_0x46d470){const _0x142413=_0x590ead;logger['info'](util[_0x142413('0xb4')]('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x46d470[_0x142413('0x1d')]));if(this[_0x142413('0x56')](_0x46d470[_0x142413('0xff')])){logger[_0x142413('0xde')](util[_0x142413('0xb4')](_0x142413('0x137'),_0x46d470['timeout']));const _0x4f2dbd=this[_0x142413('0x126')][_0x142413('0x175')](_0x46d470[_0x142413('0xff')]);if(_0x4f2dbd['result']===-0x1)return _0x4f2dbd;}return this['channel'][_0x142413('0x5a')]();},AGIVertices['prototype'][_0x590ead('0x48')]=function(_0x2256df){const _0xb74006=_0x590ead;logger[_0xb74006('0xde')](util[_0xb74006('0xb4')](_0xb74006('0x70'),_0x2256df[_0xb74006('0x1d')]));if(!this['isConfigured'](_0x2256df[_0xb74006('0x13c')]))return this[_0xb74006('0x126')][_0xb74006('0x129')](_0x2256df,'no\x20list\x20selected');return _0x2256df['scheduledAt']=moment(),this[_0xb74006('0x56')](_0x2256df['delay'])&&(_0x2256df[_0xb74006('0xfd')]=moment()[_0xb74006('0x170')](_0x2256df[_0xb74006('0x1b1')],'minutes')),!this[_0xb74006('0x56')](_0x2256df[_0xb74006('0xab')])&&(_0x2256df[_0xb74006('0xab')]=0x2),this[_0xb74006('0x1b4')]['sync'](this,_0x2256df),this[_0xb74006('0x126')]['noop'](util[_0xb74006('0xb4')](_0xb74006('0x190'),_0x2256df[_0xb74006('0x163')],_0x2256df[_0xb74006('0x13c')],_0x2256df[_0xb74006('0xfd')]));},AGIVertices[_0x590ead('0x42')][_0x590ead('0xb2')]=function(_0x44a59f){const _0x107077=_0x590ead;logger[_0x107077('0xde')](util[_0x107077('0xb4')](_0x107077('0xf7'),_0x44a59f[_0x107077('0x1d')]));const _0x36e333=this['channel'][_0x107077('0xfb')](_0x44a59f[_0x107077('0x99')],_0x44a59f[_0x107077('0xcf')]);if(_0x36e333['result']===-0x1)return _0x36e333;return this['channel'][_0x107077('0x193')](util[_0x107077('0xb4')](_0x107077('0x18f'),_0x44a59f['application'],_0x44a59f[_0x107077('0xcf')]));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x87')]=function(_0x7f59da){const _0xcc7e0c=_0x590ead;logger[_0xcc7e0c('0xde')](util[_0xcc7e0c('0xb4')](_0xcc7e0c('0x10c'),_0x7f59da[_0xcc7e0c('0x1d')]));if(!this['isConfigured'](_0x7f59da[_0xcc7e0c('0xee')]))return this['channel'][_0xcc7e0c('0x193')](_0xcc7e0c('0x69'));let _0xfb017c='\x22'+_0x7f59da[_0xcc7e0c('0xee')]+'\x22';this[_0xcc7e0c('0x56')](_0x7f59da[_0xcc7e0c('0xcf')])&&(_0xfb017c+=','+_0x7f59da[_0xcc7e0c('0xcf')]);const _0x13aaba=this['channel'][_0xcc7e0c('0xfb')](_0xcc7e0c('0x74'),_0xfb017c);if(_0x13aaba['result']===-0x1)return _0x13aaba;return this[_0xcc7e0c('0x126')][_0xcc7e0c('0x193')](util[_0xcc7e0c('0xb4')](_0xcc7e0c('0xf2'),_0xfb017c));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x183')]=function(_0x31af30){const _0x435932=_0x590ead;logger[_0x435932('0xde')](util[_0x435932('0xb4')](_0x435932('0xdc'),_0x31af30[_0x435932('0x1d')]));if(!this[_0x435932('0x56')](_0x31af30['text']))return this[_0x435932('0x126')][_0x435932('0x193')](_0x435932('0x69'));let _0xd81ab1='\x22'+_0x31af30[_0x435932('0xee')]+'\x22';this[_0x435932('0x56')](_0x31af30['options'])&&(_0xd81ab1+=','+_0x31af30['options']);const _0x420b0b=this['channel'][_0x435932('0xfb')](_0x435932('0x74'),_0xd81ab1);if(_0x420b0b[_0x435932('0xa2')]===-0x1)return _0x420b0b;return this['channel'][_0x435932('0x193')](util[_0x435932('0xb4')](_0x435932('0xf2'),_0xd81ab1));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x23')]=function(_0x511c7d){const _0x19e69b=_0x590ead;logger[_0x19e69b('0xde')](util[_0x19e69b('0xb4')](_0x19e69b('0xac'),_0x511c7d[_0x19e69b('0x1d')]));if(!this['isConfigured'](_0x511c7d['grammar']))return this[_0x19e69b('0x126')][_0x19e69b('0x193')](_0x19e69b('0x2b'));let _0x54d9d9=_0x511c7d[_0x19e69b('0x5f')];this[_0x19e69b('0x56')](_0x511c7d[_0x19e69b('0xcf')])&&(_0x54d9d9+=','+_0x511c7d[_0x19e69b('0xcf')]);const _0x10b186=this[_0x19e69b('0x126')]['exec'](_0x19e69b('0x19f'),_0x54d9d9);if(_0x10b186['result']===-0x1)return _0x10b186;const _0x5848ee=this['getAndSetVariable'](_0x19e69b('0x172'),_0x19e69b('0xca'));if(_0x5848ee[_0x19e69b('0xa2')]===-0x1)return _0x5848ee;const _0x5d2a3c=this[_0x19e69b('0xe0')]('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x5d2a3c[_0x19e69b('0xa2')]===-0x1)return _0x5d2a3c;const _0x1ba9cb=this[_0x19e69b('0xe0')](_0x19e69b('0x40'),_0x19e69b('0x156'));if(_0x1ba9cb[_0x19e69b('0xa2')]===-0x1)return _0x1ba9cb;return this['channel'][_0x19e69b('0x193')](util[_0x19e69b('0xb4')]('Executed\x20command\x20MRCPRecog\x20%s',_0x54d9d9));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x11c')]=function(_0x491a20){const _0x1b9707=_0x590ead;logger['info'](util[_0x1b9707('0xb4')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x491a20['label']));if(!this[_0x1b9707('0x56')](_0x491a20[_0x1b9707('0x5f')]))return this[_0x1b9707('0x126')]['noop']('no\x20grammar\x20configured');let _0x159a79=_0x491a20[_0x1b9707('0x5f')];this[_0x1b9707('0x56')](_0x491a20[_0x1b9707('0xcf')])&&(_0x159a79+=','+_0x491a20[_0x1b9707('0xcf')]);const _0x2d881c=this[_0x1b9707('0x126')][_0x1b9707('0xfb')](_0x1b9707('0x19f'),_0x159a79);if(_0x2d881c['result']===-0x1)return _0x2d881c;const _0xe15605=this[_0x1b9707('0xe0')](_0x1b9707('0x172'),'SESTEK_ASR_CONFIDENCE');if(_0xe15605[_0x1b9707('0xa2')]===-0x1)return _0xe15605;const _0x245fa2=this[_0x1b9707('0xe0')](_0x1b9707('0x90'),'SESTEK_ASR_TRANSCRIPT');if(_0x245fa2[_0x1b9707('0xa2')]===-0x1)return _0x245fa2;const _0x54a692=this[_0x1b9707('0xe0')](_0x1b9707('0x40'),_0x1b9707('0x1b6'));if(_0x54a692[_0x1b9707('0xa2')]===-0x1)return _0x54a692;return this[_0x1b9707('0x126')][_0x1b9707('0x193')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x159a79));},AGIVertices[_0x590ead('0x42')][_0x590ead('0xdf')]=function(_0x1e9cb4){const _0x13b2cb=_0x590ead;logger[_0x13b2cb('0xde')](util[_0x13b2cb('0xb4')](_0x13b2cb('0x1ad'),_0x1e9cb4[_0x13b2cb('0x1d')]));if(!this[_0x13b2cb('0x56')](_0x1e9cb4[_0x13b2cb('0x60')]))return this[_0x13b2cb('0x126')][_0x13b2cb('0x129')](_0x1e9cb4,'no\x20database\x20selected');const _0x396ec5=this[_0x13b2cb('0x1e')][_0x13b2cb('0x138')](this,_0x1e9cb4[_0x13b2cb('0x60')]);if(!_0x396ec5)return this[_0x13b2cb('0x126')][_0x13b2cb('0x129')](_0x1e9cb4,_0x13b2cb('0x191'));if(!this[_0x13b2cb('0x56')](_0x1e9cb4[_0x13b2cb('0x7c')]))return this[_0x13b2cb('0x126')][_0x13b2cb('0x129')](_0x1e9cb4,_0x13b2cb('0x165'));const _0x4d2de5=_0x1e9cb4[_0x13b2cb('0x7c')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0x13b2cb('0x126')][_0x13b2cb('0x193')](util['format'](_0x13b2cb('0xa4'),_0x4d2de5));const _0x3b9244=this[_0x13b2cb('0x1b8')][_0x13b2cb('0x138')](this,_0x396ec5,_0x4d2de5);this[_0x13b2cb('0x9a')][_0x13b2cb('0x138')](this,_0x1e9cb4,_0x4d2de5);if(!this[_0x13b2cb('0x56')](_0x1e9cb4[_0x13b2cb('0x68')]))return this[_0x13b2cb('0x126')][_0x13b2cb('0x193')]('no\x20variable\x20selected\x20for\x20the\x20result');const _0x19cbc3=this[_0x13b2cb('0x1a8')]['sync'](this,_0x1e9cb4[_0x13b2cb('0x68')]);if(!_0x19cbc3)return this[_0x13b2cb('0x126')][_0x13b2cb('0x129')](_0x1e9cb4,_0x13b2cb('0x8d'));const _0x4ca5a1=this;return _0x3b9244[_0x13b2cb('0x152')](function(_0x22125a,_0xd940e1){const _0x4be6cf=_0x13b2cb;Object['keys'](_0x22125a)[_0x4be6cf('0x152')](function(_0x582638){const _0x43d0ba=_0x4be6cf;_0x4ca5a1['channel']['setVariable'](util[_0x43d0ba('0xb4')]('%s[%s][%s]',_0x19cbc3,_0xd940e1,_0x582638),_0x22125a[_0x582638]);});}),this[_0x13b2cb('0x126')][_0x13b2cb('0xb3')](util[_0x13b2cb('0xb4')]('%s_ROWS_COUNT',_0x19cbc3),_0x3b9244['length']),this['channel'][_0x13b2cb('0x193')](util[_0x13b2cb('0xb4')](_0x13b2cb('0x1f'),_0x19cbc3));},AGIVertices[_0x590ead('0x42')]['dial']=function(_0xb65c54){const _0x36d4a4=_0x590ead;logger[_0x36d4a4('0x4a')](util[_0x36d4a4('0xb4')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0xb65c54[_0x36d4a4('0x1d')]));if(!this[_0x36d4a4('0x56')](_0xb65c54[_0x36d4a4('0x1b7')]))return this[_0x36d4a4('0x126')][_0x36d4a4('0x129')](_0xb65c54,'no\x20user\x20selected');const _0x12f5af=this['getUser'][_0x36d4a4('0x138')](this,_0xb65c54[_0x36d4a4('0x1b7')]);if(!_0x12f5af)return this[_0x36d4a4('0x126')][_0x36d4a4('0x129')](_0xb65c54,_0x36d4a4('0xae'));const _0x1665e3=this[_0x36d4a4('0x126')][_0x36d4a4('0xfb')](_0x36d4a4('0xc3'),[util['format'](_0x36d4a4('0x19d'),_0x12f5af),_0xb65c54[_0x36d4a4('0xff')],_0xb65c54[_0x36d4a4('0xc1')],_0xb65c54['url']]);if(_0x1665e3[_0x36d4a4('0xa2')]===-0x1)return _0x1665e3;return this[_0x36d4a4('0x126')][_0x36d4a4('0x193')](util[_0x36d4a4('0xb4')](_0x36d4a4('0x91'),_0x36d4a4('0xc3')));},AGIVertices['prototype'][_0x590ead('0xea')]=function(_0x135caf){const _0x982fb3=_0x590ead;logger['info'](util[_0x982fb3('0xb4')](_0x982fb3('0x1b5'),_0x135caf[_0x982fb3('0x1d')]));if(!this[_0x982fb3('0x56')](_0x135caf[_0x982fb3('0xda')]))return this[_0x982fb3('0x126')][_0x982fb3('0x193')]('no\x20key\x20configured');if(!this['isConfigured'](_0x135caf[_0x982fb3('0xee')]))return this[_0x982fb3('0x126')]['noop']('no\x20text\x20configured');this[_0x982fb3('0x126')][_0x982fb3('0x26')]=!![],this[_0x982fb3('0x9a')](_0x135caf),this['createSquareMessage'](_0x135caf[_0x982fb3('0xee')],'in'),this[_0x982fb3('0x126')][_0x982fb3('0x193')](util[_0x982fb3('0xb4')]('Trying\x20Dialogflow:\x20%s',_0x135caf[_0x982fb3('0xee')]));const _0xa047d4=this['googleDialogflow'][_0x982fb3('0x138')](this,_0x135caf);if(_0xa047d4){for(const _0x3bc1ff in _0xa047d4){typeof _0xa047d4[_0x3bc1ff]!==_0x982fb3('0x14c')&&this[_0x982fb3('0x126')][_0x982fb3('0xb3')](util[_0x982fb3('0xb4')]('DIALOGFLOW_%s',_0x3bc1ff[_0x982fb3('0x173')]()),_0xa047d4[_0x3bc1ff]);}return this[_0x982fb3('0x29')](_0xa047d4['speech'],'out'),this[_0x982fb3('0x126')][_0x982fb3('0x193')](util[_0x982fb3('0xb4')](_0x982fb3('0xbb'),_0xa047d4[_0x982fb3('0xfe')]));}return this['channel']['error'](_0x135caf,_0x982fb3('0x37'));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x96')]=function(_0x1ca620){const _0x29adbf=_0x590ead;logger[_0x29adbf('0xde')](util[_0x29adbf('0xb4')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x1ca620[_0x29adbf('0x1d')]));if(!this[_0x29adbf('0x56')](_0x1ca620[_0x29adbf('0x143')]))return this[_0x29adbf('0x126')][_0x29adbf('0x193')](_0x29adbf('0x52'));if(!this['isConfigured'](_0x1ca620[_0x29adbf('0x18c')]))return this['channel']['noop'](_0x29adbf('0x7f'));if(!this[_0x29adbf('0x56')](_0x1ca620[_0x29adbf('0x62')]))return this[_0x29adbf('0x126')][_0x29adbf('0x193')]('no\x20password\x20configured');if(!this[_0x29adbf('0x56')](_0x1ca620[_0x29adbf('0x154')]))return this[_0x29adbf('0x126')][_0x29adbf('0x193')](_0x29adbf('0x69'));this['channel'][_0x29adbf('0x26')]=!![],this[_0x29adbf('0x9a')](_0x1ca620),this[_0x29adbf('0x29')](_0x1ca620[_0x29adbf('0xee')],'in'),this[_0x29adbf('0x126')][_0x29adbf('0x193')](util['format'](_0x29adbf('0x134'),_0x1ca620[_0x29adbf('0xee')]));const _0x19db11=this[_0x29adbf('0x19')][_0x29adbf('0x138')](this,_0x1ca620);if(_0x19db11){for(const _0x3ff2e3 in _0x19db11){typeof _0x19db11[_0x3ff2e3]!==_0x29adbf('0x14c')&&this[_0x29adbf('0x126')]['setVariable'](util[_0x29adbf('0xb4')](_0x29adbf('0x1b2'),_0x3ff2e3[_0x29adbf('0x173')]()),_0x19db11[_0x3ff2e3]);}this[_0x29adbf('0x29')](_0x19db11['speech'],_0x29adbf('0xe4'));if(_0x19db11[_0x29adbf('0x132')]){this['channel']['noop'](util[_0x29adbf('0xb4')]('Sestek\x20NDA\x20%s\x20file\x20created',_0x19db11[_0x29adbf('0x132')]));const _0x54a340=this['channel'][_0x29adbf('0x197')](_0x19db11[_0x29adbf('0x132')]);try{fs[_0x29adbf('0x16')](_0x19db11[_0x29adbf('0x132')]+_0x29adbf('0xcb'));}catch(_0x51ebfa){logger['error'](_0x51ebfa);}return _0x54a340;}else return this[_0x29adbf('0x126')][_0x29adbf('0x193')](util[_0x29adbf('0xb4')](_0x29adbf('0x12d'),_0x19db11[_0x29adbf('0xfe')]));}return this[_0x29adbf('0x126')][_0x29adbf('0x129')](_0x1ca620,'SestekNDA\x20is\x20unreachable');},AGIVertices['prototype']['end']=function(_0x13a2ab){const _0x16f009=_0x590ead;return logger[_0x16f009('0xde')](util[_0x16f009('0xb4')](_0x16f009('0xd'),_0x13a2ab[_0x16f009('0x1d')])),this[_0x16f009('0x126')][_0x16f009('0x193')]('end');},AGIVertices[_0x590ead('0x42')][_0x590ead('0x15a')]=function(_0x1ea344){const _0x10400f=_0x590ead;logger[_0x10400f('0xde')](util[_0x10400f('0xb4')](_0x10400f('0x15c'),_0x1ea344['label']));let _0x4c3280='';if(_0x1ea344['trunk_id']){if(!this[_0x10400f('0x56')](_0x1ea344[_0x10400f('0x17')]))return this[_0x10400f('0x126')][_0x10400f('0x129')](_0x1ea344,_0x10400f('0x7e'));else{const _0x227f1f=parseInt(_0x1ea344[_0x10400f('0x17')],0xa);if(isNaN(_0x227f1f))_0x4c3280=_0x1ea344['trunk_id'];else{_0x4c3280=this[_0x10400f('0x128')][_0x10400f('0x138')](this,_0x1ea344[_0x10400f('0x17')]);if(!_0x4c3280)return this[_0x10400f('0x126')][_0x10400f('0x129')](_0x1ea344,_0x10400f('0x1a3'));}}}else{if(_0x1ea344[_0x10400f('0x6b')])_0x4c3280=_0x1ea344[_0x10400f('0x6b')];else return this[_0x10400f('0x126')]['error'](_0x1ea344,'no\x20trunk\x20selected');}const _0x3a0314=this['channel']['exec'](_0x10400f('0xc3'),[util[_0x10400f('0xb4')](_0x10400f('0xe3'),_0x4c3280,_0x1ea344[_0x10400f('0x163')]),_0x1ea344[_0x10400f('0xff')],_0x1ea344[_0x10400f('0xc1')],_0x1ea344['url']]);if(_0x3a0314['result']===-0x1)return _0x3a0314;return this[_0x10400f('0x126')][_0x10400f('0x193')](util[_0x10400f('0xb4')](_0x10400f('0x91'),'DIAL'));},AGIVertices[_0x590ead('0x42')]['finally']=function(_0x1701a0){const _0x1be35e=_0x590ead;return logger[_0x1be35e('0xde')](util[_0x1be35e('0xb4')](_0x1be35e('0x150'),_0x1701a0[_0x1be35e('0x1d')])),this[_0x1be35e('0x126')][_0x1be35e('0x193')](_0x1be35e('0x89'));},AGIVertices['prototype'][_0x590ead('0x1af')]=function(_0x27d696){const _0x5d8ec=_0x590ead;logger[_0x5d8ec('0xde')](util[_0x5d8ec('0xb4')](_0x5d8ec('0x144'),_0x27d696[_0x5d8ec('0x1d')]));if(_0x27d696[_0x5d8ec('0x180')]===0x0)return this[_0x5d8ec('0x54')](_0x27d696);_0x27d696['retry']-=0x1;if(!this[_0x5d8ec('0x56')](_0x27d696['file_id']))return this[_0x5d8ec('0x126')][_0x5d8ec('0x129')](_0x27d696,_0x5d8ec('0x174'));const _0x5b7c3f=this[_0x5d8ec('0xe2')][_0x5d8ec('0x138')](this,_0x27d696[_0x5d8ec('0x88')]);if(!_0x5b7c3f)return this['channel'][_0x5d8ec('0x129')](_0x27d696,_0x5d8ec('0x147'));if(!this[_0x5d8ec('0x56')](_0x27d696[_0x5d8ec('0x68')]))return this[_0x5d8ec('0x126')]['error']('no\x20variable\x20selected\x20for\x20the\x20result');const _0x1cd8b0=this[_0x5d8ec('0x126')]['getData'](_0x5b7c3f,_0x27d696[_0x5d8ec('0x46')],_0x27d696[_0x5d8ec('0x4f')]),_0x17007e=_0x1cd8b0[_0x5d8ec('0xa2')]?_0x1cd8b0[_0x5d8ec('0xa2')][_0x5d8ec('0x120')]():'';logger[_0x5d8ec('0xde')](_0x5d8ec('0x107'),JSON[_0x5d8ec('0x13a')](_0x1cd8b0));if(_0x1cd8b0[_0x5d8ec('0xa2')]===-0x1)return this['createSquareDetailsReport']['sync'](this,_0x27d696,_0x17007e),_0x1cd8b0;else _0x1cd8b0[_0x5d8ec('0xd9')]==='timeout'?_0x1cd8b0['result']=_0x17007e[_0x5d8ec('0x12f')]>=parseInt(_0x27d696[_0x5d8ec('0x125')])?'x':'i':_0x1cd8b0['result']=_0x17007e[_0x5d8ec('0x12f')]>=parseInt(_0x27d696['mindigit'])&&_0x17007e[_0x5d8ec('0x12f')]<=parseInt(_0x27d696[_0x5d8ec('0x4f')])?'x':'i';const _0x2e1e44=this[_0x5d8ec('0x1a8')][_0x5d8ec('0x138')](this,_0x27d696[_0x5d8ec('0x68')]);if(!_0x2e1e44)return this[_0x5d8ec('0x126')][_0x5d8ec('0x129')](_0x27d696,_0x5d8ec('0x8d'));this['channel'][_0x5d8ec('0xb3')](_0x2e1e44,_0x17007e);if(this[_0x5d8ec('0x56')](_0x27d696[_0x5d8ec('0x106')])){const _0x871689=parseInt(_0x27d696[_0x5d8ec('0x106')],0xa),_0x102125=rs['generate']({'charset':'*','length':_0x871689}),_0x3e46ac=_0x17007e[_0x5d8ec('0x12f')];_0x3e46ac>0x0?_0x3e46ac>_0x871689?this[_0x5d8ec('0x9a')][_0x5d8ec('0x138')](this,_0x27d696,_0x27d696[_0x5d8ec('0x31')]===_0x5d8ec('0x171')?_0x102125+_0x17007e['substr'](_0x871689):_0x17007e['substr'](0x0,_0x3e46ac-_0x871689)+_0x102125):this[_0x5d8ec('0x9a')][_0x5d8ec('0x138')](this,_0x27d696,rs['generate']({'charset':'*','length':_0x3e46ac})):this[_0x5d8ec('0x9a')][_0x5d8ec('0x138')](this,_0x27d696,'');}else this['createSquareDetailsReport'][_0x5d8ec('0x138')](this,_0x27d696,_0x17007e);return _0x1cd8b0;},AGIVertices[_0x590ead('0x42')][_0x590ead('0x2e')]=function(_0x3e0ff4){const _0x1c282f=_0x590ead;return logger[_0x1c282f('0xde')](util[_0x1c282f('0xb4')](_0x1c282f('0x79'),_0x3e0ff4[_0x1c282f('0x1d')])),this[_0x1c282f('0x1af')](_0x3e0ff4);},AGIVertices[_0x590ead('0x42')]['goal']=function(_0x22d441){const _0xb1d501=_0x590ead;return logger['info'](util[_0xb1d501('0xb4')]('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x22d441[_0xb1d501('0x1d')])),this['createSquareDetailsReport'][_0xb1d501('0x138')](this,_0x22d441,_0x22d441[_0xb1d501('0x1a7')]),this[_0xb1d501('0x126')]['noop'](util[_0xb1d501('0xb4')]('GOAL\x20%s',_0x22d441[_0xb1d501('0x1a7')]));},AGIVertices['prototype'][_0x590ead('0x101')]=function(_0x4b5963){const _0x26004a=_0x590ead;logger[_0x26004a('0xde')](util['format'](_0x26004a('0x51'),_0x4b5963[_0x26004a('0x1d')]));if(!this[_0x26004a('0x56')](_0x4b5963[_0x26004a('0x41')])||!this[_0x26004a('0x56')](_0x4b5963[_0x26004a('0x177')]))return this[_0x26004a('0x126')][_0x26004a('0x193')](_0x26004a('0xcd'));if(!this[_0x26004a('0x56')](_0x4b5963[_0x26004a('0xee')]))return this[_0x26004a('0x126')][_0x26004a('0x193')]('no\x20text\x20configured');this['channel'][_0x26004a('0x193')](util[_0x26004a('0xb4')](_0x26004a('0x7a'),_0x4b5963['text']));const _0x323eaf=this[_0x26004a('0x16c')][_0x26004a('0x138')](this,_0x4b5963);if(_0x323eaf){this['channel']['noop'](util[_0x26004a('0xb4')](_0x26004a('0xd5'),_0x323eaf));const _0x375b57=this[_0x26004a('0x126')][_0x26004a('0x197')](_0x323eaf);try{fs['unlink'](_0x323eaf+_0x26004a('0xcb'));}catch(_0x363e91){logger[_0x26004a('0x129')](_0x363e91);}return _0x375b57;}return this[_0x26004a('0x126')][_0x26004a('0x129')](_0x4b5963,_0x26004a('0x110'));},AGIVertices['prototype'][_0x590ead('0x73')]=function(_0x56ad63){const _0x7a1698=_0x590ead;logger['info'](util['format'](_0x7a1698('0x2'),_0x56ad63[_0x7a1698('0x1d')]));if(!this['isConfigured'](_0x56ad63[_0x7a1698('0x41')])||!this['isConfigured'](_0x56ad63[_0x7a1698('0x177')]))return this[_0x7a1698('0x126')][_0x7a1698('0x193')](_0x7a1698('0xcd'));if(!this[_0x7a1698('0x56')](_0x56ad63[_0x7a1698('0x104')]))return this[_0x7a1698('0x126')][_0x7a1698('0x193')]('no\x20bot\x20name\x20configured');if(!this[_0x7a1698('0x56')](_0x56ad63[_0x7a1698('0xee')]))return this['channel'][_0x7a1698('0x193')]('no\x20text\x20configured');this['channel'][_0x7a1698('0x26')]=!![],this[_0x7a1698('0x9a')](_0x56ad63),this[_0x7a1698('0x29')](_0x56ad63['text'],'in'),this['channel']['noop'](util[_0x7a1698('0xb4')](_0x7a1698('0x50'),_0x56ad63['text']));const _0x3b3c12=this[_0x7a1698('0xc5')][_0x7a1698('0x138')](this,_0x56ad63);if(_0x3b3c12){for(const _0x4bd6af in _0x3b3c12){typeof _0x3b3c12[_0x4bd6af]!==_0x7a1698('0x14c')&&_['isString'](_0x3b3c12[_0x4bd6af])&&this[_0x7a1698('0x126')][_0x7a1698('0xb3')](util['format']('AWS_LEX_%s',_0x4bd6af[_0x7a1698('0x173')]()),_0x3b3c12[_0x4bd6af]);}return _[_0x7a1698('0x181')](_0x3b3c12['message'])?this['channel'][_0x7a1698('0x193')](_0x7a1698('0x75')):(this['createSquareMessage'](_0x3b3c12[_0x7a1698('0x16d')],_0x7a1698('0xe4')),this[_0x7a1698('0x126')][_0x7a1698('0x193')](util[_0x7a1698('0xb4')]('Amazon\x20Lex\x20Result\x20%s',_0x3b3c12['message'])));}return this[_0x7a1698('0x126')][_0x7a1698('0x129')](_0x56ad63,_0x7a1698('0x10a'));},AGIVertices['prototype'][_0x590ead('0x119')]=function(_0x535ebd){const _0x4c6ad7=_0x590ead;logger['info'](util['format'](_0x4c6ad7('0x146'),_0x535ebd['label'],_0x535ebd[_0x4c6ad7('0xff')]));if(!this[_0x4c6ad7('0x56')](_0x535ebd['key']))return this['channel'][_0x4c6ad7('0x193')](_0x4c6ad7('0x5d'));const _0x53cf76='wav',_0x25be47=util[_0x4c6ad7('0xb4')](_0x4c6ad7('0x1bc'),FILES_PATH,rs['generate'](0x4)),_0x1a3262=util[_0x4c6ad7('0xb4')]('%s.%s',_0x25be47,_0x53cf76);let _0x6d9229=!![];_0x535ebd[_0x4c6ad7('0x97')]===_0x4c6ad7('0x33')&&(_0x6d9229=![]);const _0x5e26bb=this[_0x4c6ad7('0x126')][_0x4c6ad7('0x16f')](_0x25be47,_0x53cf76,_0x535ebd[_0x4c6ad7('0x4c')],_0x535ebd['timeout'],undefined,_0x6d9229);if(_0x5e26bb['result']!==-0x1){this['channel'][_0x4c6ad7('0x193')](util[_0x4c6ad7('0xb4')](_0x4c6ad7('0xd2'),_0x1a3262));const _0x2dd77e=this[_0x4c6ad7('0x169')][_0x4c6ad7('0x138')](this,_0x535ebd,_0x1a3262);if(_0x2dd77e){for(const _0x5b2f67 in _0x2dd77e){typeof _0x2dd77e[_0x5b2f67]!==_0x4c6ad7('0x14c')&&this['channel'][_0x4c6ad7('0xb3')](util['format']('GOOGLE_ASR_%s',_0x5b2f67[_0x4c6ad7('0x173')]()),_0x2dd77e[_0x5b2f67]);}return this[_0x4c6ad7('0x126')][_0x4c6ad7('0x193')](util[_0x4c6ad7('0xb4')](_0x4c6ad7('0x135'),JSON['stringify'](_0x2dd77e)));}}return _0x5e26bb;},AGIVertices[_0x590ead('0x42')][_0x590ead('0x35')]=function(_0x3f2254){const _0xb3d3=_0x590ead;logger[_0xb3d3('0xde')](util[_0xb3d3('0xb4')](_0xb3d3('0xd3'),_0x3f2254[_0xb3d3('0x1d')]));if(!this[_0xb3d3('0x56')](_0x3f2254[_0xb3d3('0x5')]))return this[_0xb3d3('0x126')][_0xb3d3('0x193')](_0xb3d3('0xf4'));if(!this[_0xb3d3('0x56')](_0x3f2254[_0xb3d3('0x1a')]))return this[_0xb3d3('0x126')][_0xb3d3('0x193')]('no\x20appsecret\x20configured');const _0x30a26a='wav',_0x103921=util[_0xb3d3('0xb4')](_0xb3d3('0x1bc'),FILES_PATH,rs['generate'](0x4)),_0x546ec5=util[_0xb3d3('0xb4')]('%s.%s',_0x103921,_0x30a26a);let _0x5aa19c=!![];_0x3f2254[_0xb3d3('0x97')]===_0xb3d3('0x33')&&(_0x5aa19c=![]);const _0x14042a=this['channel'][_0xb3d3('0x16f')](_0x103921,_0x30a26a,_0x3f2254[_0xb3d3('0x4c')],_0x3f2254[_0xb3d3('0xff')],undefined,_0x5aa19c);if(_0x14042a['result']!==-0x1){this[_0xb3d3('0x126')]['noop'](util[_0xb3d3('0xb4')](_0xb3d3('0x58'),_0x546ec5));const _0x37aeb6=this['tildeASR'][_0xb3d3('0x138')](this,_0x3f2254,_0x546ec5);if(_0x37aeb6){for(const _0x5f5da5 in _0x37aeb6){typeof _0x37aeb6[_0x5f5da5]!==_0xb3d3('0x14c')&&this['channel'][_0xb3d3('0xb3')](util['format'](_0xb3d3('0x4b'),_0x5f5da5[_0xb3d3('0x173')]()),_0x37aeb6[_0x5f5da5]);}return this[_0xb3d3('0x126')][_0xb3d3('0x193')](util[_0xb3d3('0xb4')](_0xb3d3('0xf9'),JSON[_0xb3d3('0x13a')](_0x37aeb6)));}}return _0x14042a;},AGIVertices['prototype'][_0x590ead('0x118')]=function(_0x11917f){const _0x3f1951=_0x590ead;return logger['info'](util[_0x3f1951('0xb4')]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x11917f[_0x3f1951('0x1d')])),this[_0x3f1951('0x126')]['continueAt'](_0x11917f['context'],_0x11917f[_0x3f1951('0x2f')],_0x11917f[_0x3f1951('0x6a')]);},AGIVertices['prototype']['gotoif']=function(_0x146389){const _0x5aac2f=_0x590ead;logger[_0x5aac2f('0xde')](util['format'](_0x5aac2f('0x13d'),_0x146389[_0x5aac2f('0x1d')]));if(!this['isConfigured'](_0x146389['condition']))return this[_0x5aac2f('0x126')]['error'](_0x146389,'no\x20condition\x20configured');try{const _0x9ee93f=eval(_0x146389[_0x5aac2f('0x22')])?_0x5aac2f('0x103'):_0x5aac2f('0x65');return this['channel'][_0x5aac2f('0x193')](util[_0x5aac2f('0xb4')]('EVAL\x20CONDITION\x20%s\x20%s',_0x146389[_0x5aac2f('0x22')],_0x9ee93f)),{'code':0xc8,'result':_0x9ee93f};}catch(_0x95ed9d){return{'code':0xc8,'result':'false'};}},AGIVertices[_0x590ead('0x42')][_0x590ead('0x17a')]=function(_0x5eaa5f){const _0x358f50=_0x590ead;logger[_0x358f50('0xde')](util['format'](_0x358f50('0x15d'),_0x5eaa5f[_0x358f50('0x1d')]));if(!this[_0x358f50('0x56')](_0x5eaa5f[_0x358f50('0xe8')]))return this[_0x358f50('0x126')][_0x358f50('0x129')](_0x5eaa5f,'no\x20interval\x20configured');const _0xb95b89=this[_0x358f50('0x1ac')]['sync'](this,_0x5eaa5f[_0x358f50('0xe8')]);if(!_0xb95b89)return this[_0x358f50('0x126')][_0x358f50('0x129')](_0x5eaa5f,_0x358f50('0x98'));for(let _0x3a6668=0x0;_0x3a6668<_0xb95b89[_0x358f50('0x12f')];_0x3a6668+=0x1){const _0x21d3b1=this[_0x358f50('0x126')][_0x358f50('0x1a8')](util['format']('IFTIME(%s?true:false)',_0xb95b89[_0x3a6668]));if(_0x21d3b1['result']===-0x1)return _0x21d3b1;logger[_0x358f50('0xde')](util[_0x358f50('0xb4')](_0x358f50('0x11b'),_0xb95b89[_0x3a6668],_0x21d3b1[_0x358f50('0xd9')]));if(_0x21d3b1['extra']===_0x358f50('0x103'))return logger['info'](util['format'](_0x358f50('0x11b'),_0xb95b89[_0x3a6668],'true')),this[_0x358f50('0x126')][_0x358f50('0x193')](util['format']('IFTIME\x20%s\x20%s',_0xb95b89[_0x3a6668],'true')),{'code':0xc8,'result':'true'};else logger[_0x358f50('0xde')](util[_0x358f50('0xb4')](_0x358f50('0x11b'),_0xb95b89[_0x3a6668],_0x358f50('0x65'))),this['channel'][_0x358f50('0x193')](util[_0x358f50('0xb4')](_0x358f50('0x11b'),_0xb95b89[_0x3a6668],_0x358f50('0x65')));}return{'code':0xc8,'result':_0x358f50('0x65')};},AGIVertices['prototype'][_0x590ead('0x28')]=function(_0x52f6d0){const _0x2beb42=_0x590ead;return logger['info'](util['format'](_0x2beb42('0x19b'),_0x52f6d0[_0x2beb42('0x1d')])),this[_0x2beb42('0x126')][_0x2beb42('0x28')]();},AGIVertices[_0x590ead('0x42')][_0x590ead('0x66')]=function(_0x204a5f){const _0x4d5ecf=_0x590ead;logger['info'](util[_0x4d5ecf('0xb4')](_0x4d5ecf('0x8f'),_0x204a5f[_0x4d5ecf('0x1d')]));if(!this['isConfigured'](_0x204a5f[_0x4d5ecf('0xda')]))return this[_0x4d5ecf('0x126')]['noop'](_0x4d5ecf('0x5d'));const _0x159d3c=_0x4d5ecf('0xf8'),_0x2f182f=util[_0x4d5ecf('0xb4')](_0x4d5ecf('0x1bc'),FILES_PATH,rs[_0x4d5ecf('0x123')](0x4)),_0x450692=util['format'](_0x4d5ecf('0x15f'),_0x2f182f,_0x159d3c);let _0x40a47b=!![];_0x204a5f['beep']===_0x4d5ecf('0x33')&&(_0x40a47b=![]);const _0x5b9e65=this['channel'][_0x4d5ecf('0x16f')](_0x2f182f,_0x159d3c,_0x204a5f[_0x4d5ecf('0x4c')],_0x204a5f[_0x4d5ecf('0xff')],undefined,_0x40a47b);if(_0x5b9e65[_0x4d5ecf('0xa2')]!==-0x1){this[_0x4d5ecf('0x126')][_0x4d5ecf('0x193')](util[_0x4d5ecf('0xb4')](_0x4d5ecf('0xfc'),_0x450692));const _0x51221a=this['ispeechASR'][_0x4d5ecf('0x138')](this,_0x204a5f,_0x450692);if(_0x51221a){for(const _0x5ab878 in _0x51221a){typeof _0x51221a[_0x5ab878]!==_0x4d5ecf('0x14c')&&this[_0x4d5ecf('0x126')][_0x4d5ecf('0xb3')](util[_0x4d5ecf('0xb4')](_0x4d5ecf('0x10e'),_0x5ab878['toUpperCase']()),_0x51221a[_0x5ab878]);}return this[_0x4d5ecf('0x126')][_0x4d5ecf('0x193')](util[_0x4d5ecf('0xb4')](_0x4d5ecf('0x185'),JSON[_0x4d5ecf('0x13a')](_0x51221a)));}}return _0x5b9e65;},AGIVertices[_0x590ead('0x42')][_0x590ead('0x25')]=function(_0x1c2ba8){const _0x2abb44=_0x590ead;logger['info'](util['format'](_0x2abb44('0x140'),_0x1c2ba8[_0x2abb44('0x1d')]));if(!this[_0x2abb44('0x56')](_0x1c2ba8[_0x2abb44('0xda')]))return this[_0x2abb44('0x126')]['noop'](_0x2abb44('0x5d'));if(!this[_0x2abb44('0x56')](_0x1c2ba8['text']))return this['channel'][_0x2abb44('0x193')]('no\x20text\x20configured');this['channel'][_0x2abb44('0x193')](util[_0x2abb44('0xb4')](_0x2abb44('0x1b3'),_0x1c2ba8[_0x2abb44('0xee')]));const _0x2e3358=this[_0x2abb44('0x186')]['sync'](this,_0x1c2ba8);if(_0x2e3358){this['channel']['noop'](util[_0x2abb44('0xb4')]('ispeech\x20%s\x20file\x20created',_0x2e3358));const _0x52cf05=this['channel'][_0x2abb44('0x197')](_0x2e3358,_0x1c2ba8[_0x2abb44('0x4c')]);try{fs[_0x2abb44('0x16')](_0x2e3358+_0x2abb44('0xcb'));}catch(_0x2fca25){logger[_0x2abb44('0x129')](_0x2fca25);}return _0x52cf05;}return this['channel'][_0x2abb44('0x129')](_0x1c2ba8,_0x2abb44('0x7b'));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x139')]=function(_0x3961a3){const _0x1ccf7e=_0x590ead;logger[_0x1ccf7e('0xde')](util[_0x1ccf7e('0xb4')](_0x1ccf7e('0x18b'),_0x3961a3[_0x1ccf7e('0x1d')]));if(!this[_0x1ccf7e('0x56')](_0x3961a3['findBy']))return this['channel'][_0x1ccf7e('0x129')](_0x3961a3,'no\x20find\x20by\x20configured');logger[_0x1ccf7e('0xde')](util[_0x1ccf7e('0xb4')](_0x1ccf7e('0x17d'),this[_0x1ccf7e('0x126')][_0x1ccf7e('0x188')],_0x3961a3['findBy']));const _0x22ba67=this['agentLogin'][_0x1ccf7e('0x138')](this,_0x3961a3[_0x1ccf7e('0x155')]);return _0x22ba67?(logger[_0x1ccf7e('0xde')](util[_0x1ccf7e('0xb4')](_0x1ccf7e('0x20'),this[_0x1ccf7e('0x126')][_0x1ccf7e('0x188')],_0x3961a3[_0x1ccf7e('0x155')])),this[_0x1ccf7e('0x126')]['noop'](util['format'](_0x1ccf7e('0x20'),this[_0x1ccf7e('0x126')][_0x1ccf7e('0x188')],_0x3961a3['findBy'])),{'code':0xc8,'result':_0x1ccf7e('0x18')}):(logger[_0x1ccf7e('0xde')](util[_0x1ccf7e('0xb4')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x1ccf7e('0x126')][_0x1ccf7e('0x188')],_0x3961a3[_0x1ccf7e('0x155')])),this[_0x1ccf7e('0x126')][_0x1ccf7e('0x193')](util[_0x1ccf7e('0xb4')](_0x1ccf7e('0x84'),this['channel']['callerid'],_0x3961a3['findBy'])),{'code':0xc8,'result':_0x1ccf7e('0xb6')});},AGIVertices['prototype'][_0x590ead('0x9c')]=function(_0x591051){const _0x55b10c=_0x590ead;logger[_0x55b10c('0xde')](util['format'](_0x55b10c('0x11a'),_0x591051[_0x55b10c('0x1d')]));if(!this[_0x55b10c('0x56')](_0x591051[_0x55b10c('0x155')]))return this['channel']['error'](_0x591051,_0x55b10c('0xbf'));logger['info'](util['format'](_0x55b10c('0x17d'),this[_0x55b10c('0x126')][_0x55b10c('0x188')],_0x591051[_0x55b10c('0x155')]));const _0x3e9374=this[_0x55b10c('0x117')][_0x55b10c('0x138')](this,_0x591051[_0x55b10c('0x155')]);return _0x3e9374?(logger[_0x55b10c('0xde')](util['format'](_0x55b10c('0x20'),this[_0x55b10c('0x126')]['callerid'],_0x591051[_0x55b10c('0x155')])),this[_0x55b10c('0x126')][_0x55b10c('0x193')](util[_0x55b10c('0xb4')](_0x55b10c('0x20'),this[_0x55b10c('0x126')]['callerid'],_0x591051[_0x55b10c('0x155')])),{'code':0xc8,'result':_0x55b10c('0x18')}):(logger[_0x55b10c('0xde')](util['format'](_0x55b10c('0x84'),this['channel'][_0x55b10c('0x188')],_0x591051[_0x55b10c('0x155')])),this[_0x55b10c('0x126')][_0x55b10c('0x193')](util[_0x55b10c('0xb4')](_0x55b10c('0x84'),this[_0x55b10c('0x126')][_0x55b10c('0x188')],_0x591051[_0x55b10c('0x155')])),{'code':0xc8,'result':_0x55b10c('0xb6')});},AGIVertices[_0x590ead('0x42')]['math']=function(_0x2ae4ab){const _0x3c044b=_0x590ead;logger[_0x3c044b('0xde')](util[_0x3c044b('0xb4')](_0x3c044b('0x1a0'),_0x2ae4ab[_0x3c044b('0x1d')]));if(!this[_0x3c044b('0x56')](_0x2ae4ab[_0x3c044b('0x112')]))return this[_0x3c044b('0x126')]['error'](_0x2ae4ab,_0x3c044b('0x1bb'));this[_0x3c044b('0x126')][_0x3c044b('0x193')](util[_0x3c044b('0xb4')](_0x3c044b('0xd1'),_0x2ae4ab[_0x3c044b('0x112')]));const _0x5e5546=eval(_0x2ae4ab['operation']);if(!this[_0x3c044b('0x56')](_0x2ae4ab['variable_id']))return this[_0x3c044b('0x126')]['noop'](_0x3c044b('0x8e'));const _0x51ad3e=this[_0x3c044b('0x1a8')][_0x3c044b('0x138')](this,_0x2ae4ab['variable_id']);if(!_0x51ad3e)return this[_0x3c044b('0x126')][_0x3c044b('0x129')](_0x2ae4ab,_0x3c044b('0x8d'));if(_[_0x3c044b('0x32')](_0x5e5546)){const _0x7379d7=this;return _0x5e5546[_0x3c044b('0x152')](function(_0x3f1325,_0x166e1b){const _0x3a06bf=_0x3c044b;_0x7379d7[_0x3a06bf('0x126')][_0x3a06bf('0xb3')](util['format'](_0x3a06bf('0x114'),_0x51ad3e,_0x166e1b),_0x3f1325);}),this[_0x3c044b('0x126')][_0x3c044b('0x193')](util[_0x3c044b('0xb4')](_0x3c044b('0xb9'),_0x51ad3e));}else return this[_0x3c044b('0x126')][_0x3c044b('0xb3')](_0x51ad3e,_0x5e5546);},AGIVertices['prototype'][_0x590ead('0xa6')]=function(_0x28363a){const _0x2287a8=_0x590ead;logger[_0x2287a8('0xde')](util[_0x2287a8('0xb4')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x28363a['label']));if(_0x28363a[_0x2287a8('0x180')]===0x0)return this[_0x2287a8('0x54')](_0x28363a);_0x28363a[_0x2287a8('0x180')]-=0x1;if(!this['isConfigured'](_0x28363a['file_id']))return this['channel']['error'](_0x28363a,_0x2287a8('0x174'));const _0x30bc0b=this[_0x2287a8('0xe2')][_0x2287a8('0x138')](this,_0x28363a[_0x2287a8('0x88')]);if(!_0x30bc0b)return this[_0x2287a8('0x126')]['error'](_0x28363a,_0x2287a8('0x147'));const _0x17535e=this[_0x2287a8('0x126')]['getData'](_0x30bc0b,_0x28363a[_0x2287a8('0x46')],_0x28363a[_0x2287a8('0x182')]);let _0x5b8152=_0x17535e[_0x2287a8('0xa2')];if(_0x17535e[_0x2287a8('0xa2')]===-0x1)return this['createSquareDetailsReport'][_0x2287a8('0x138')](this,_0x28363a,'-1'),_0x17535e;else{if(_0x17535e[_0x2287a8('0xd9')]===_0x2287a8('0xff'))_0x17535e[_0x2287a8('0xa2')]=_0x17535e[_0x2287a8('0xa2')][_0x2287a8('0x12f')]>0x0?_0x17535e[_0x2287a8('0xa2')]:'t';else _[_0x2287a8('0x142')](_0x17535e[_0x2287a8('0xa2')])&&(_0x17535e[_0x2287a8('0xa2')]='#',_0x5b8152='#');}if(!this[_0x2287a8('0x56')](_0x28363a[_0x2287a8('0x68')]))this['channel'][_0x2287a8('0x193')](_0x2287a8('0x8e'));else{const _0x441726=this['getVariable']['sync'](this,_0x28363a[_0x2287a8('0x68')]);if(!_0x441726)return this[_0x2287a8('0x126')][_0x2287a8('0x129')](_0x28363a,_0x2287a8('0x8d'));this[_0x2287a8('0x126')][_0x2287a8('0xb3')](_0x441726,_0x5b8152);}return this[_0x2287a8('0x9a')][_0x2287a8('0x138')](this,_0x28363a,_0x5b8152),_0x17535e;},AGIVertices['prototype']['noop']=function(_0x3f8a42){const _0x3ac936=_0x590ead;return logger['info'](util['format'](_0x3ac936('0x6c'),_0x3f8a42[_0x3ac936('0x1d')])),this['channel']['noop'](_0x3f8a42['output']||_0x3f8a42[_0x3ac936('0x1d')]);},AGIVertices[_0x590ead('0x42')][_0x590ead('0x17c')]=function(_0x5ac904){const _0x5d3631=_0x590ead;logger['info'](util['format']('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x5ac904[_0x5d3631('0x1d')]));if(!this[_0x5d3631('0x56')](_0x5ac904[_0x5d3631('0x155')]))return this[_0x5d3631('0x126')][_0x5d3631('0x129')](_0x5ac904,_0x5d3631('0xbf'));logger[_0x5d3631('0xde')](util[_0x5d3631('0xb4')](_0x5d3631('0x17d'),this[_0x5d3631('0x126')]['callerid'],_0x5ac904[_0x5d3631('0x155')]));const _0x389382=this[_0x5d3631('0x44')]['sync'](this,_0x5ac904['pause_id']),_0x4b624f=this[_0x5d3631('0x10f')][_0x5d3631('0x138')](this,_0x5ac904['findBy'],_0x389382);return _0x4b624f?(logger[_0x5d3631('0xde')](util[_0x5d3631('0xb4')](_0x5d3631('0x20'),this['channel']['callerid'],_0x5ac904['findBy'])),this[_0x5d3631('0x126')]['noop'](util[_0x5d3631('0xb4')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x5d3631('0x126')]['callerid'],_0x5ac904['findBy'])),{'code':0xc8,'result':_0x5d3631('0x18')}):(logger['info'](util['format'](_0x5d3631('0x84'),this[_0x5d3631('0x126')][_0x5d3631('0x188')],_0x5ac904['findBy'])),this[_0x5d3631('0x126')][_0x5d3631('0x193')](util[_0x5d3631('0xb4')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x5d3631('0x126')][_0x5d3631('0x188')],_0x5ac904[_0x5d3631('0x155')])),{'code':0xc8,'result':_0x5d3631('0xb6')});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x92')]=function(_0x18b834){const _0x15c9b8=_0x590ead;logger['info'](util[_0x15c9b8('0xb4')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x18b834[_0x15c9b8('0x1d')]));if(!this[_0x15c9b8('0x56')](_0x18b834[_0x15c9b8('0x88')]))return this[_0x15c9b8('0x126')]['error'](_0x18b834,_0x15c9b8('0x174'));const _0x390848=this[_0x15c9b8('0xe2')]['sync'](this,_0x18b834[_0x15c9b8('0x88')]);if(!_0x390848)return this['channel'][_0x15c9b8('0x129')](_0x18b834,_0x15c9b8('0x147'));const _0x2a6d7e=this['channel'][_0x15c9b8('0xfb')](_0x15c9b8('0xec'),[_0x390848,_0x18b834[_0x15c9b8('0xc1')]]);if(_0x2a6d7e[_0x15c9b8('0xa2')]===-0x1)return _0x2a6d7e;return this[_0x15c9b8('0x126')]['noop'](util['format'](_0x15c9b8('0x18f'),_0x15c9b8('0xec'),_0x390848));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x14f')]=function(_0x4414b1){const _0x283dc7=_0x590ead;logger[_0x283dc7('0xde')](util[_0x283dc7('0xb4')](_0x283dc7('0xe1'),_0x4414b1['label']));if(!this[_0x283dc7('0x56')](_0x4414b1[_0x283dc7('0xc6')]))return this['channel']['error'](_0x4414b1,_0x283dc7('0x11d'));let _0x37612d='';const _0x17faa5=parseInt(_0x4414b1[_0x283dc7('0xc6')],0xa);if(isNaN(_0x17faa5))_0x37612d=_0x4414b1[_0x283dc7('0xc6')];else{_0x37612d=this[_0x283dc7('0x49')][_0x283dc7('0x138')](this,_0x4414b1[_0x283dc7('0xc6')]);if(!_0x37612d)return this[_0x283dc7('0x126')]['error'](_0x4414b1,_0x283dc7('0xe'));}let _0x2008b3='';if(this[_0x283dc7('0x56')](_0x4414b1[_0x283dc7('0x88')])){const _0x186d40=this[_0x283dc7('0xe2')][_0x283dc7('0x138')](this,_0x4414b1[_0x283dc7('0x88')]);_0x186d40&&(_0x2008b3=_0x186d40);}this[_0x283dc7('0x9a')][_0x283dc7('0x138')](this,_0x4414b1,_0x37612d);_0x4414b1[_0x283dc7('0xc1')][_0x283dc7('0x9d')]('x')<0x0&&(_0x4414b1[_0x283dc7('0xc1')]+='x');_0x4414b1[_0x283dc7('0xc1')]['indexOf']('X')<0x0&&(_0x4414b1[_0x283dc7('0xc1')]+='X');this['channel'][_0x283dc7('0xb3')](_0x283dc7('0x4e'),_0x37612d?_0x37612d[_0x283dc7('0xb1')]():'');const _0x462383=this[_0x283dc7('0x126')]['exec'](_0x283dc7('0x13e'),[_0x37612d,_0x4414b1[_0x283dc7('0xc1')],_0x4414b1[_0x283dc7('0x85')],_0x2008b3,_0x4414b1[_0x283dc7('0xff')],_0x4414b1[_0x283dc7('0xc')],_0x4414b1[_0x283dc7('0x5b')],_0x4414b1[_0x283dc7('0x3f')],'',_0x4414b1[_0x283dc7('0x45')]]);if(_0x462383['result']===-0x1)return _0x462383;return this[_0x283dc7('0x126')]['noop'](util['format'](_0x283dc7('0x18f'),_0x283dc7('0x13e'),_0x37612d));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x6')]=function(_0xc2f4a6){const _0x499f8b=_0x590ead;logger[_0x499f8b('0xde')](util[_0x499f8b('0xb4')](_0x499f8b('0xc7'),_0xc2f4a6[_0x499f8b('0x1d')]));const _0x581f8e=_0xc2f4a6[_0x499f8b('0x16a')]||_0x499f8b('0xf8'),_0x33004a=util[_0x499f8b('0xb4')](_0x499f8b('0x7'),this[_0x499f8b('0x126')][_0x499f8b('0x1bd')],rs[_0x499f8b('0x123')](0x5)),_0x145d55=util[_0x499f8b('0xb4')](_0x499f8b('0x30'),FILES_PATH,_0x33004a,_0x581f8e),_0x1d5d9e=util[_0x499f8b('0xb4')](_0x499f8b('0x1bc'),FILES_PATH,_0x33004a);return this[_0x499f8b('0x141')][_0x499f8b('0x138')](this,_0xc2f4a6,_0x33004a,_0x145d55),this[_0x499f8b('0x126')]['setVariable'](_0x499f8b('0xeb'),_0x33004a),logger[_0x499f8b('0xde')](_0x499f8b('0xa3'),_0x1d5d9e,_0x581f8e,_0xc2f4a6['escape_digits'],_0xc2f4a6['timeout']),this['channel'][_0x499f8b('0x16f')](_0x1d5d9e,_0x581f8e,_0xc2f4a6[_0x499f8b('0x130')],_0xc2f4a6[_0x499f8b('0xff')],undefined,!![]);},AGIVertices[_0x590ead('0x42')][_0x590ead('0x15')]=function(_0x1d72df){const _0xd10c42=_0x590ead;logger[_0xd10c42('0xde')](util[_0xd10c42('0xb4')](_0xd10c42('0x167'),_0x1d72df[_0xd10c42('0x1d')]));if(!this[_0xd10c42('0x56')](_0x1d72df[_0xd10c42('0x85')]))return this['channel'][_0xd10c42('0x193')](_0xd10c42('0x64'));const _0x4b6c7b=this['restAPI'][_0xd10c42('0x138')](this,_0x1d72df);logger[_0xd10c42('0xde')](util['format'](_0xd10c42('0xaf'),util[_0xd10c42('0x115')](_0x4b6c7b,{'showHidden':![],'depth':null})));if(!this[_0xd10c42('0x56')](_0x1d72df[_0xd10c42('0x68')]))return this[_0xd10c42('0x126')][_0xd10c42('0x193')]('no\x20variable\x20selected\x20for\x20the\x20response');const _0x1db99b=this[_0xd10c42('0x1a8')][_0xd10c42('0x138')](this,_0x1d72df['variable_id']);if(!_0x1db99b)return this[_0xd10c42('0x126')][_0xd10c42('0x129')](_0x1d72df,_0xd10c42('0x8d'));this[_0xd10c42('0x126')][_0xd10c42('0xb3')](util[_0xd10c42('0xb4')](_0xd10c42('0x131'),_0x1db99b),_0x4b6c7b['statusCode']?_0x4b6c7b[_0xd10c42('0x59')]:_0xd10c42('0x1ae')),this[_0xd10c42('0x126')][_0xd10c42('0xb3')](util['format']('%s_STATUS_MESSAGE',_0x1db99b),_0x4b6c7b[_0xd10c42('0x1b9')]?_0x4b6c7b[_0xd10c42('0x1b9')]:'OK');if(_0x4b6c7b[_0xd10c42('0xcc')])try{this[_0xd10c42('0x1ab')](_0x4b6c7b[_0xd10c42('0xcc')],_0x1db99b);}catch(_0x486e8b){logger[_0xd10c42('0x129')](util[_0xd10c42('0xb4')]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x1db99b));}return this[_0xd10c42('0x126')][_0xd10c42('0x193')](util[_0xd10c42('0xb4')]('variable\x20%s\x20set',_0x1db99b));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x86')]=function(_0x55a592){const _0x141d96=_0x590ead;return logger[_0x141d96('0xde')](util[_0x141d96('0xb4')](_0x141d96('0x81'),_0x55a592[_0x141d96('0x1d')])),this[_0x141d96('0x126')][_0x141d96('0x67')](_0x55a592[_0x141d96('0x194')][_0x141d96('0x111')](/\s+/g,''),_0x55a592[_0x141d96('0x130')]);},AGIVertices[_0x590ead('0x42')][_0x590ead('0x136')]=function(_0x31adb0){const _0x180afc=_0x590ead;return logger['info'](util[_0x180afc('0xb4')](_0x180afc('0x3a'),_0x31adb0[_0x180afc('0x1d')])),this[_0x180afc('0x126')]['sayNumber'](_0x31adb0[_0x180afc('0x13f')][_0x180afc('0x111')](/\s+/g,''),_0x31adb0[_0x180afc('0x130')]);},AGIVertices[_0x590ead('0x42')][_0x590ead('0xc0')]=function(_0x2b2f3c){const _0x547c3b=_0x590ead;return logger[_0x547c3b('0xde')](util[_0x547c3b('0xb4')](_0x547c3b('0x5c'),_0x2b2f3c[_0x547c3b('0x1d')])),this[_0x547c3b('0x126')][_0x547c3b('0x39')](_0x2b2f3c[_0x547c3b('0xee')],_0x2b2f3c['escape_digits']);},AGIVertices[_0x590ead('0x42')][_0x590ead('0x18a')]=function(_0x21d9b5){const _0x3872ba=_0x590ead;logger['info'](util[_0x3872ba('0xb4')](_0x3872ba('0xb0'),_0x21d9b5[_0x3872ba('0x1d')]));if(!this[_0x3872ba('0x56')](_0x21d9b5[_0x3872ba('0x55')]))return this['channel'][_0x3872ba('0x193')](_0x3872ba('0x27'));const _0x41f246=this['getMailAccount'][_0x3872ba('0x138')](this,_0x21d9b5[_0x3872ba('0x55')]);if(!_0x41f246||!_0x41f246[_0x3872ba('0xf1')])return this[_0x3872ba('0x126')]['error'](_0x21d9b5,_0x3872ba('0x176'));const _0x71de58={'from':util[_0x3872ba('0xb4')](_0x3872ba('0xfa'),_0x41f246[_0x3872ba('0x14b')],_0x41f246['email']||_0x41f246['Smtp'][_0x3872ba('0x14d')]),'to':_0x21d9b5['to']||'','cc':_0x21d9b5['cc']||'','bcc':_0x21d9b5[_0x3872ba('0x166')]||'','subject':_0x21d9b5[_0x3872ba('0x198')],'html':_0x21d9b5[_0x3872ba('0xee')],'text':_0x21d9b5[_0x3872ba('0xee')]},_0x483779={'tls':{'rejectUnauthorized':![]}};_0x41f246[_0x3872ba('0xf1')]['service']?_0x483779['service']=_0x41f246[_0x3872ba('0xf1')][_0x3872ba('0x61')]:(_0x483779[_0x3872ba('0x9b')]=_0x41f246['Smtp'][_0x3872ba('0x9b')],_0x483779[_0x3872ba('0x9f')]=_0x41f246[_0x3872ba('0xf1')][_0x3872ba('0x9f')],_0x483779[_0x3872ba('0x8')]=_0x41f246[_0x3872ba('0xf1')][_0x3872ba('0x8')]);_0x41f246[_0x3872ba('0xf1')][_0x3872ba('0x1bf')]&&(_0x483779[_0x3872ba('0x12b')]={'user':_0x41f246[_0x3872ba('0xf1')][_0x3872ba('0x14d')],'pass':_0x41f246[_0x3872ba('0xf1')][_0x3872ba('0x8c')]});if(this[_0x3872ba('0x56')](_0x21d9b5[_0x3872ba('0x94')])){}return logger[_0x3872ba('0x4a')](_0x3872ba('0x76'),JSON['stringify'](_0x71de58)),this[_0x3872ba('0x9a')][_0x3872ba('0x138')](this,_0x21d9b5,_0x21d9b5[_0x3872ba('0x55')]),this[_0x3872ba('0x126')][_0x3872ba('0x193')](util['format']('Trying\x20SendMail\x20with\x20account\x20%s',_0x41f246[_0x3872ba('0x14b')])),this[_0x3872ba('0xbc')]['sync'](this,_0x483779,_0x71de58),this[_0x3872ba('0x126')][_0x3872ba('0x193')](_0x3872ba('0x0'));},AGIVertices[_0x590ead('0x42')][_0x590ead('0xf')]=function(_0x4f63cd){const _0x337fa3=_0x590ead;return logger['info'](util['format'](_0x337fa3('0x108'),_0x4f63cd[_0x337fa3('0x1d')])),this[_0x337fa3('0x126')][_0x337fa3('0x193')](_0x337fa3('0x4'));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x14e')]=function(_0x5e488f){const _0xf0ce0d=_0x590ead;logger['info'](util[_0xf0ce0d('0xb4')](_0xf0ce0d('0x149'),_0x5e488f[_0xf0ce0d('0x1d')]));if(!this[_0xf0ce0d('0x56')](_0x5e488f[_0xf0ce0d('0x2d')]))return this[_0xf0ce0d('0x126')]['noop'](_0xf0ce0d('0xf3'));const _0x43f07d=this[_0xf0ce0d('0xa1')]['sync'](this,_0x5e488f[_0xf0ce0d('0x2d')]);if(!_0x43f07d)return this[_0xf0ce0d('0x126')]['error'](_0x5e488f,'no\x20sms\x20account\x20found');const _0x3e1eee={'body':_0x5e488f[_0xf0ce0d('0xa5')],'phone':_0x5e488f['to']||'','SmsAccountId':_0x43f07d['id']};return logger[_0xf0ce0d('0x4a')](_0xf0ce0d('0x105'),JSON[_0xf0ce0d('0x13a')](_0x3e1eee)),this[_0xf0ce0d('0x9a')][_0xf0ce0d('0x138')](this,_0x5e488f,_0x5e488f[_0xf0ce0d('0x2d')]),this[_0xf0ce0d('0x126')][_0xf0ce0d('0x193')](util[_0xf0ce0d('0xb4')](_0xf0ce0d('0x72'),_0x43f07d[_0xf0ce0d('0x14b')])),this['createSmsMessage']['sync'](this,_0x3e1eee),this['channel']['noop'](_0xf0ce0d('0xa'));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x15b')]=function(_0x15b3c6){const _0x259652=_0x590ead;logger[_0x259652('0xde')](util[_0x259652('0xb4')](_0x259652('0x8b'),_0x15b3c6[_0x259652('0x1d')]));if(!this['isConfigured'](_0x15b3c6['variable_id']))return this[_0x259652('0x126')][_0x259652('0x129')](_0x15b3c6,_0x259652('0x161'));const _0x18c181=this['getVariable'][_0x259652('0x138')](this,_0x15b3c6[_0x259652('0x68')]);if(!_0x18c181)return this['channel']['error'](_0x15b3c6,'no\x20variable\x20found');return this[_0x259652('0x126')][_0x259652('0xb3')](_0x18c181,_0x15b3c6[_0x259652('0x1a1')]);},AGIVertices['prototype'][_0x590ead('0x1')]=function(_0x3017ad){const _0x169a9d=_0x590ead;logger['info'](util['format'](_0x169a9d('0xd4'),_0x3017ad[_0x169a9d('0x1d')])),this[_0x169a9d('0x126')][_0x169a9d('0x193')](_0x169a9d('0x5e'));if(_0x3017ad['answer']===_0x169a9d('0x109'))return this[_0x169a9d('0x126')][_0x169a9d('0x193')](_0x169a9d('0x8a')),this[_0x169a9d('0x126')][_0x169a9d('0x5a')]();return this[_0x169a9d('0x126')][_0x169a9d('0x193')](_0x169a9d('0x17f'));},AGIVertices[_0x590ead('0x42')]['subproject']=function(_0x1819cd){const _0x587943=_0x590ead;logger['info'](util[_0x587943('0xb4')](_0x587943('0x153'),_0x1819cd['label']));if(!this[_0x587943('0x56')](_0x1819cd[_0x587943('0x195')]))return this['channel'][_0x587943('0x129')](_0x1819cd,_0x587943('0x157'));const _0x309779=this[_0x587943('0x38')]['sync'](this,_0x1819cd[_0x587943('0x195')]);if(!this['isConfigured'](_0x309779))return this[_0x587943('0x126')]['error'](_0x1819cd,util[_0x587943('0xb4')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0x1819cd[_0x587943('0x195')]));if(_0x309779===this['channel'][_0x587943('0xaa')])return this[_0x587943('0x126')]['error'](_0x1819cd,_0x587943('0xe6'));this[_0x587943('0x9a')]['sync'](this,_0x1819cd,_0x309779);const _0x121fd7=this['channel']['exec'](_0x587943('0x116'),util['format'](_0x587943('0x13b'),config[_0x587943('0xc')][_0x587943('0x9b')]||_0x587943('0xf0'),_0x309779,this[_0x587943('0x126')][_0x587943('0xaa')]));if(_0x121fd7[_0x587943('0xa2')]===-0x1)return _0x121fd7;return this[_0x587943('0x126')][_0x587943('0x193')](util[_0x587943('0xb4')](_0x587943('0x18f'),_0x587943('0x116'),_0x309779));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x21')]=function(_0x2e401c){const _0x5291bb=_0x590ead;logger[_0x5291bb('0xde')](util[_0x5291bb('0xb4')](_0x5291bb('0x83'),_0x2e401c[_0x5291bb('0x1d')]));const _0x431a39=this[_0x5291bb('0x80')][_0x5291bb('0x138')](this,_0x2e401c[_0x5291bb('0x4d')]);this[_0x5291bb('0x9a')][_0x5291bb('0x138')](this,_0x2e401c,_0x2e401c[_0x5291bb('0x4d')]);if(this['isConfigured'](_0x2e401c[_0x5291bb('0x68')])){const _0x3433e8=this[_0x5291bb('0x1a8')][_0x5291bb('0x138')](this,_0x2e401c[_0x5291bb('0x68')]);if(_0x3433e8)return this[_0x5291bb('0x126')]['setVariable'](_0x3433e8,_0x431a39),this['channel']['noop'](util['format']('sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s',_0x2e401c[_0x5291bb('0x4d')],_0x3433e8));}return this[_0x5291bb('0x126')][_0x5291bb('0x193')](util['format'](_0x5291bb('0xb8'),_0x2e401c[_0x5291bb('0x4d')]));},AGIVertices['prototype'][_0x590ead('0x10')]=function(_0xdd1e85){const _0x5d7edc=_0x590ead;logger[_0x5d7edc('0xde')](util['format'](_0x5d7edc('0xdb'),_0xdd1e85[_0x5d7edc('0x1d')])),_0xdd1e85[_0x5d7edc('0xee')]=_0xdd1e85[_0x5d7edc('0xee')][_0x5d7edc('0x111')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x5d7edc('0x56')](_0xdd1e85[_0x5d7edc('0xa9')]))return this[_0x5d7edc('0x126')][_0x5d7edc('0x193')](_0x5d7edc('0x12'));if(!this[_0x5d7edc('0x56')](_0xdd1e85['text']))return this[_0x5d7edc('0x126')]['noop']('no\x20text\x20configured');this['channel'][_0x5d7edc('0x193')](util['format'](_0x5d7edc('0x168'),_0xdd1e85[_0x5d7edc('0xee')]));const _0x1f9082=this[_0x5d7edc('0x124')][_0x5d7edc('0x138')](this,_0xdd1e85);if(_0x1f9082){this[_0x5d7edc('0x126')][_0x5d7edc('0x193')](util[_0x5d7edc('0xb4')](_0x5d7edc('0x196'),_0x1f9082));const _0x25ad94=this['channel'][_0x5d7edc('0x197')](_0x1f9082);try{fs[_0x5d7edc('0x16')](_0x1f9082+'.wav');}catch(_0x18e091){logger[_0x5d7edc('0x129')](_0x18e091);}return _0x25ad94;}return this[_0x5d7edc('0x126')][_0x5d7edc('0x129')](_0xdd1e85,_0x5d7edc('0xed'));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x6d')]=function(_0x11eff4){const _0x29389=_0x590ead;logger[_0x29389('0xde')](util[_0x29389('0xb4')](_0x29389('0xb5'),_0x11eff4[_0x29389('0x1d')])),_0x11eff4[_0x29389('0xee')]=_0x11eff4[_0x29389('0xee')][_0x29389('0x111')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x29389('0x56')](_0x11eff4[_0x29389('0xee')]))return this[_0x29389('0x126')][_0x29389('0x193')](_0x29389('0x69'));this[_0x29389('0x126')][_0x29389('0x193')](util[_0x29389('0xb4')](_0x29389('0x1b0'),_0x11eff4[_0x29389('0xee')]));const _0x15259a=this[_0x29389('0x14')][_0x29389('0x138')](this,_0x11eff4);if(_0x15259a){this['channel'][_0x29389('0x193')](util[_0x29389('0xb4')]('Google\x20TTS\x20%s\x20file\x20created',_0x15259a));const _0x94ddb7=this[_0x29389('0x126')][_0x29389('0x197')](_0x15259a);try{fs[_0x29389('0x16')](_0x15259a+'.wav');}catch(_0x158e26){logger[_0x29389('0x129')](_0x158e26);}return _0x94ddb7;}return this[_0x29389('0x126')][_0x29389('0x129')](_0x11eff4,_0x29389('0x12a'));},AGIVertices[_0x590ead('0x42')][_0x590ead('0x158')]=function(_0x4468a4){const _0x20e6ea=_0x590ead;logger[_0x20e6ea('0xde')](util[_0x20e6ea('0xb4')](_0x20e6ea('0x184'),_0x4468a4[_0x20e6ea('0x1d')]));if(!this[_0x20e6ea('0x56')](_0x4468a4[_0x20e6ea('0x155')]))return this[_0x20e6ea('0x126')]['error'](_0x4468a4,_0x20e6ea('0xbf'));logger['info'](util['format'](_0x20e6ea('0x17d'),this[_0x20e6ea('0x126')][_0x20e6ea('0x188')],_0x4468a4[_0x20e6ea('0x155')]));const _0x31b005=this[_0x20e6ea('0x47')][_0x20e6ea('0x138')](this,_0x4468a4['findBy']);return _0x31b005?(logger['info'](util[_0x20e6ea('0xb4')](_0x20e6ea('0x20'),this['channel'][_0x20e6ea('0x188')],_0x4468a4[_0x20e6ea('0x155')])),this[_0x20e6ea('0x126')][_0x20e6ea('0x193')](util[_0x20e6ea('0xb4')](_0x20e6ea('0x20'),this[_0x20e6ea('0x126')]['callerid'],_0x4468a4['findBy'])),{'code':0xc8,'result':'success'}):(logger['info'](util[_0x20e6ea('0xb4')](_0x20e6ea('0x84'),this[_0x20e6ea('0x126')]['callerid'],_0x4468a4[_0x20e6ea('0x155')])),this[_0x20e6ea('0x126')][_0x20e6ea('0x193')](util[_0x20e6ea('0xb4')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x20e6ea('0x126')][_0x20e6ea('0x188')],_0x4468a4['findBy'])),{'code':0xc8,'result':_0x20e6ea('0xb6')});},AGIVertices[_0x590ead('0x42')][_0x590ead('0x11e')]=function(_0x5ba5b7){const _0x33302f=_0x590ead;logger[_0x33302f('0xde')](util['format']('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x5ba5b7[_0x33302f('0x1d')]));const _0x242499=this[_0x33302f('0x126')][_0x33302f('0xfb')](_0x33302f('0xe7'),[_0x5ba5b7[_0x33302f('0x71')],_0x5ba5b7[_0x33302f('0xcf')]]);if(_0x242499[_0x33302f('0xa2')]===-0x1)return _0x242499;return this[_0x33302f('0x126')][_0x33302f('0x193')](util['format'](_0x33302f('0x18f'),_0x33302f('0xe7'),_0x5ba5b7['mailbox']));},AGIVertices[_0x590ead('0x42')][_0x590ead('0xb')]=function(_0x290293){const _0x492a75=_0x590ead;logger['info'](util['format'](_0x492a75('0x10d'),_0x290293[_0x492a75('0x1d')]));if(!this[_0x492a75('0x56')](_0x290293[_0x492a75('0x68')]))return this[_0x492a75('0x126')][_0x492a75('0x129')](_0x290293,'no\x20variable\x20selected');const _0x375408=this[_0x492a75('0x1a8')][_0x492a75('0x138')](this,_0x290293[_0x492a75('0x68')]);if(!_0x375408)return this[_0x492a75('0x126')][_0x492a75('0x129')](_0x290293,_0x492a75('0x8d'));const _0x318f83=this['channel'][_0x492a75('0x1a8')](_0x375408);return{'code':0xc8,'result':_0x318f83['extra']?_0x318f83['extra']:'-'};},String[_0x590ead('0x42')][_0x590ead('0xd8')]=function(_0x4afbb8,_0x28cacd){const _0x27191f=_0x590ead;return this[_0x27191f('0x159')](_0x4afbb8)[_0x27191f('0x6e')](_0x28cacd);},module[_0x590ead('0x6f')]=AGIVertices; \ No newline at end of file +const a1047_0x4d23=['maxdigit','Enter\x20in\x20SENDFAX\x20(%s)\x20block','getQueryOdbc','createSquareDetailsReport','getsecretdigits','random','google_asr_language','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','parse','callback','project_id','includes','channel','catch','toString','aws_text_type','aws_lex_region','out','saydigits','saveRestApiResult','SESTEK_NDA_%s','sesteknda','agicommand','NOBEEP','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','Error\x20executing\x20query\x20%s','google\x20%s\x20file\x20created','condition','util','lumenvoxasr','Enter\x20in\x20DATABASE\x20(%s)\x20block','format','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','list_id','gotoiftime','position','tts','callerid','Trying\x20SendSMS\x20with\x20account\x20%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','RECORDING_SAVENAME','statusMessage','no\x20variable\x20selected\x20for\x20the\x20response','interval_id','AGENT\x20%s\x20FOUND\x20BY','gotoc','restAPI','interval','MRCP_RECOG_TRANSCRIPT','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','extra','intKey','MRCPRecog','aws\x20Polly\x20is\x20unreachable','recursiveNodeIndex','Google\x20TTS\x20%s\x20file\x20created','VOICEMAIL','tildeasr','Enter\x20in\x20RECORD\x20(%s)\x20block','IspeechASR\x20Result\x20%s','sendMailMessage','Enter\x20in\x20SYSTEM\x20(%s)\x20block','rawBody','no\x20subproject\x20found\x20with\x20id\x20%d','noop','aws_secret_access_key','response','recordFile','agentLogin','ispeech\x20TTS\x20is\x20unreachable','goalname','command','prototype','%s/recordings/%s','LUMENVOX_ASR_INSTANCE','awslex','Enter\x20in\x20LOGOUT\x20(%s)\x20block','AGENT\x20%s\x20NOT\x20FOUND\x20BY','no\x20text\x20configured','IFTIME\x20%s\x20%s','host','opts','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','getMailAccount','test','googleASR','agentPause','result','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ispeechtts','moment','google_tts_language','SIP/%s/%s','XMCS-QUEUE','accountcode','no\x20user\x20selected','maxRetry','mustache','en-US','continueAt','getPauseById','Enter\x20in\x20START\x20(%s)\x20block','agentLogout','getVariableById','debug','query:\x20%s','ndauth_url','IFTIME(%s?true:false)','audioEncoding','pause','bot','isNil','Enter\x20in\x20END\x20(%s)\x20block','no\x20condition\x20configured','Recording\x20%s\x20%s\x20%s\x20%s','body','getSquareProject','add','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','LUMENVOX_ASR_TRANSCRIPT','mailbox','no\x20file\x20audio\x20selected','GOOGLE_ASR_%s','ispeechasr','sayPhonetic','minutes','Enter\x20in\x20SENDSMS\x20(%s)\x20block','no\x20list\x20selected','Google\x20Cloud\x20TTS\x20is\x20unreachable','Enter\x20in\x20MENU\x20(%s)\x20block','method','sayDigits','no\x20grammar\x20configured','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','%s.%s','computedVariables','MRCP_RECOG_CONFIDENCE','Trying\x20Dialogflow:\x20%s','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','save_name','audiofile','wav','close','Executed\x20command\x20MRCPRecog\x20%s','record','ispeech\x20%s\x20file\x20created','pause_id','agent','timeout','no\x20subproject\x20selected','Trying\x20Google\x20TTS\x20%s','saynumber','Enter\x20in\x20PAUSE\x20(%s)\x20block','shelljs','odbc_id','trunk_name','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','number','apiKey','render','no\x20find\x20by\x20configured','model','agi://%s/square,\x22%s\x22,\x22%s\x22','Executed\x20command\x20MRCPSynth\x20%s','toUpperCase','getTrunkById','getSound','RECOG_INPUT()','priority','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sestekNDA','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','message','delay','account_id','createSquareMessage','google_cloud_tts_text_type','replace','%s/sounds/converted/%s','user','getPause','no\x20operation\x20configured','no\x20file\x20audio\x20found','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','true','gosub','replaceObjectAllVariables','Error\x20getting\x20ODBC\x20connection\x20%s','Trying\x20SendMail\x20with\x20account\x20%s','gotoif','Enter\x20in\x20GOAL\x20(%s)\x20block','then','escape_digits','error','getdigits','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','dnid','ssmlGender','Intervals','exec','hiddendigitsnum','AWS_LEX_%s','template_id','200','Enter\x20in\x20SET\x20(%s)\x20block','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','streamFile','trim','name','sestektts','grammar','queue','awspolly','exports','sms_account_id','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','no\x20ndauth\x20url\x20configured','authentication','query','%s/%s@from-sip/n','variable_value','no\x20user\x20found','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','MRCPSynth','yes','uri','aws_bot_name','127.0.0.1','getSquareProjectById','unlink','PUT','sendFax','QUEUE','ndassistant_url','isString','SESTEK_ASR_TRANSCRIPT','menu','options','getSmsAccount','file','getSquareOdbcById','Trying\x20aws\x20Polly\x20%s','../../config/environment','database','Executed\x20command\x20%s\x20%s','label','no\x20apiKey\x20configured','info','agi','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','sendMail\x20message','sip_id','ispeechASR','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','mrcprecog','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','uniqueid','ISPEECH_ASR_%s','macro','statusCode','goal','phone','Enter\x20in\x20ANSWER\x20(%s)\x20block','%s_STATUS_MESSAGE','arg_1','languageCode','end','rpc','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','first','dial','Trying\x20Amazon\x20Lex:\x20%s','mindigit','Enter\x20in\x20DIAL\x20(%s)\x20block','no\x20key\x20configured','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','getTrunk','file_id','Enter\x20in\x20MATH\x20(%s)\x20block','indexOf','set','Trying\x20ispeech\x20TTS\x20%s','ODBC\x20connection\x20successfully','args','trunk_id','MP3','MRCP_RECOG_INSTANCE','RECOG_INSTANCE()','no\x20variable\x20selected\x20for\x20the\x20result','%s/recordings/%s.%s','FIND\x20AGENT\x20%s\x20BY\x20%s','forEach','scheduledAt','subproject','no\x20variable\x20selected','undefined','Enter\x20in\x20AGI\x20(%s)\x20block','isEmpty','AGI','sms_text','./scripts','mrcpsynth','getVoiceQueue','createSmsMessage','Google\x20TTS\x20is\x20unreachable','sestekasr','unpause','stringify','context','variable_id','variable\x20%s[key]\x20set','no\x20trunk\x20selected','Callback\x20scheduled\x20at\x20','Enter\x20in\x20TILDEASR\x20(%s)\x20block','TILDE_ASR_%s','/var/opt/motion2/server/files','email','agentUnpause','rawHeaders','getSoundById','headers','no\x20sms\x20account\x20configured','odbc','isConfigured','ispeechTTS','sendSMS','no\x20intervals\x20found','TildeASR\x20Result\x20%s','createCmContact','appid','getIntervalById','Trying\x20Google\x20Cloud\x20TTS\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','callback_priority','service','pass','no\x20mail\x20account\x20configured','Smtp','substr','operation','tildeASR','awsPolly','replaceAll','Answer','answer','%s[%s][%s]','dialogflow_language','Trying\x20SestekNDA:\x20%s','beep','SESTEK_ASR_CONFIDENCE','false','clone','split','awsLex','../../config/logger','queue_id','username','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','replaceAllVariables','%s_ROWS_COUNT','getSoundPath','Amazon\x20Lex\x20Result\x20%s','secure','Enter\x20in\x20NOOP\x20(%s)\x20block','aws\x20Polly\x20%s\x20file\x20created','mailRpc','login','IntervalId','googleCloudTTS','Enter\x20in\x20LOGIN\x20(%s)\x20block','hangup','setVariable','Enter\x20in\x20SWITCH\x20(%s)\x20block','success','toLowerCase','auth','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','port','key','getVoiceQueueById','application','wait','text','clear','variable\x20%s\x20set','START\x20CALLY\x20SQUARE','no\x20interval\x20configured','no\x20queue\x20found','retry','findBy','Dialogflow\x20Result\x20%s','sayNumber','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','no\x20odbc\x20database\x20found','subject','Enter\x20in\x20GOTOIF\x20(%s)\x20block','sync','500\x20-\x20Internal\x20Server\x20Error','request-promise-native','getIntervals','RECOG_CONFIDENCE()','failure','lumenvoxtts','getAndSetVariable','appsecret','speed','dialogflow','url','googleDialogflow','isArray','no\x20valid\x20credentials\x20configured','\x22%s\x22\x20<%s>','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','digits','SestekNDA\x20is\x20unreachable','password','getSquareOdbc','getUser','getVariable','extension','DIAL','sh\x20command:\x20%s\x20result\x20no\x20stored','ext_dial','inspect','%s_STATUS_CODE','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','finally','lastName','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','PLAYBACK','shellCommand','Executed\x20command\x20%s','Skipped\x20Answer','tilde\x20%s\x20file\x20created','no\x20url\x20configured','Response:','no\x20variable\x20found','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','custom_app','no\x20queue\x20selected','aws_access_key_id','length','generate','no\x20username\x20configured','isPlainObject','googleTTS','.wav','no\x20database\x20selected','SENDFAX\x20block\x20not\x20implemented','DIALOGFLOW_%s'];(function(_0x253dab,_0x4d2386){const _0x4f10ba=function(_0x177688){while(--_0x177688){_0x253dab['push'](_0x253dab['shift']());}};_0x4f10ba(++_0x4d2386);}(a1047_0x4d23,0x92));const a1047_0x4f10=function(_0x253dab,_0x4d2386){_0x253dab=_0x253dab-0x0;let _0x4f10ba=a1047_0x4d23[_0x253dab];return _0x4f10ba;};const _0x1aa377=a1047_0x4f10;'use strict';const fs=require('fs'),util=require(_0x1aa377('0x14d')),_=require('lodash'),sh=require(_0x1aa377('0x8')),odbc=require(_0x1aa377('0xb1')),rs=require('randomstring'),moment=require(_0x1aa377('0x18c')),Mustache=require(_0x1aa377('0x193')),rp=require(_0x1aa377('0xfd')),logger=require(_0x1aa377('0xd1'))('agi'),config=require(_0x1aa377('0x61')),scripts=require(_0x1aa377('0x9b')),FILES_PATH=_0x1aa377('0xaa'),recursiveMapAttributes=['rawHeaders',_0x1aa377('0x16f')],verticesWithRetry=['menu','getdigits',_0x1aa377('0x135')],AGIVertices=function(_0x177688,_0x2c814d,_0xe1a25d){const _0x4fe0f3=_0x1aa377;this[_0x4fe0f3('0x13d')]=_0x177688,this['rpc']=_0x2c814d,this[_0x4fe0f3('0xdc')]=_0xe1a25d;};AGIVertices['prototype']['getVariable']=function(_0x2889c6,_0x171c11){const _0x4650bb=_0x1aa377;this['rpc'][_0x4650bb('0x199')](_0x2889c6)['then'](function(_0x15d8ea){const _0xe4a980=_0x4650bb;_0x171c11(null,_0x15d8ea?_0x15d8ea[_0xe4a980('0x3f')]:![]);})[_0x4650bb('0x13e')](function(_0x2a21ac){_0x171c11(_0x2a21ac);});},AGIVertices[_0x1aa377('0x179')]['getVoiceQueue']=function(_0x496b23,_0x290211){const _0x25e012=_0x1aa377;this[_0x25e012('0x7a')][_0x25e012('0xea')](_0x496b23)[_0x25e012('0x2e')](function(_0x34f1df){const _0x4a18c3=_0x25e012;_0x290211(null,_0x34f1df?_0x34f1df[_0x4a18c3('0x3f')]:![]);})['catch'](function(_0x5e1bec){_0x290211(_0x5e1bec);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x1a6')]=function(_0x4c5f92,_0x230f6b){const _0x5ba3cc=_0x1aa377;this['rpc'][_0x5ba3cc('0x53')](_0x4c5f92)[_0x5ba3cc('0x2e')](function(_0x1642ee){const _0x58da11=_0x5ba3cc;_0x230f6b(null,_0x1642ee?_0x1642ee[_0x58da11('0x3f')]:![]);})['catch'](function(_0xaa5487){_0x230f6b(_0xaa5487);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x10f')]=function(_0x3c9b35,_0x117bc8){const _0x77a33f=_0x1aa377;this['rpc'][_0x77a33f('0x5f')](_0x3c9b35)['then'](function(_0x3842ff){_0x117bc8(null,_0x3842ff?_0x3842ff['dsn']:![]);})[_0x77a33f('0x13e')](function(_0x11015e){_0x117bc8(_0x11015e);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x110')]=function(_0x421282,_0x3141d5){const _0x222c1c=_0x1aa377;this[_0x222c1c('0x7a')]['getUserById'](_0x421282)['then'](function(_0x282fd4){const _0x20afdc=_0x222c1c;_0x3141d5(null,_0x282fd4?_0x282fd4[_0x20afdc('0x3f')]:![]);})[_0x222c1c('0x13e')](function(_0x2ac614){_0x3141d5(_0x2ac614);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x83')]=function(_0x762b45,_0x526b6b){const _0x593b44=_0x1aa377;this['rpc'][_0x593b44('0x14')](_0x762b45)[_0x593b44('0x2e')](function(_0x26e8b){const _0x118627=_0x593b44;_0x526b6b(null,_0x26e8b?_0x26e8b[_0x118627('0x3f')]:![]);})[_0x593b44('0x13e')](function(_0xc63f4d){_0x526b6b(_0xc63f4d);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x15')]=function(_0x2f812e,_0x103256){const _0x5f3c43=_0x1aa377,_0x20c86d=this;this[_0x5f3c43('0x7a')][_0x5f3c43('0xae')](_0x2f812e)[_0x5f3c43('0x2e')](function(_0x730b0){const _0x4cb284=_0x5f3c43;_0x103256(null,_0x730b0?_0x20c86d[_0x4cb284('0xd7')](_0x730b0[_0x4cb284('0x1bd')]):![]);})[_0x5f3c43('0x13e')](function(_0x345f2f){_0x103256(_0x345f2f);});},AGIVertices['prototype'][_0x1aa377('0x184')]=function(_0x537e21,_0x21c566){const _0x104198=_0x1aa377;this['rpc']['getMailAccountById'](_0x537e21)['then'](function(_0x50723f){_0x21c566(null,_0x50723f?_0x50723f:![]);})[_0x104198('0x13e')](function(_0x9b4119){_0x21c566(_0x9b4119);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x16d')]=function(_0x43da92,_0x4c0f6e,_0x501013){const _0x3c399b=_0x1aa377;this[_0x3c399b('0xdc')][_0x3c399b('0x16d')](_0x43da92,_0x4c0f6e)[_0x3c399b('0x2e')](function(){_0x501013(null);})[_0x3c399b('0x13e')](function(_0x2a3286){_0x501013(_0x2a3286);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xfe')]=function(_0x328f3e,_0x74da82){const _0x506ece=_0x1aa377;this[_0x506ece('0x7a')][_0x506ece('0xb9')](_0x328f3e)[_0x506ece('0x2e')](function(_0x3ee07b){const _0x57be8f=_0x506ece;_0x3ee07b?_0x3ee07b[_0x57be8f('0xde')]?_0x74da82(null,[_0x3ee07b[_0x57be8f('0x160')]]):_0x74da82(null,_['map'](_0x3ee07b[_0x57be8f('0x35')],_0x57be8f('0x160'))):_0x74da82(null,![]);})[_0x506ece('0x13e')](function(_0x2b8990){_0x74da82(_0x2b8990);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xd7')]=function(_0x440804){const _0x394a9b=_0x1aa377;return util['format'](_0x394a9b('0x21'),FILES_PATH,_0x440804);},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x133')]=function(_0x4769fe,_0x3fe0b9,_0x4cb31d){odbc['open'](_0x4769fe,function(_0x410b54){const _0x387dbd=a1047_0x4f10;_0x410b54?(logger['error'](_0x387dbd('0x2a'),_0x410b54),_0x4cb31d(_0x410b54)):(logger[_0x387dbd('0x66')](_0x387dbd('0x89')),odbc[_0x387dbd('0x49')](_0x3fe0b9,function(_0x3e47ab,_0x363c67){const _0x5a2790=_0x387dbd;_0x3e47ab?(logger[_0x5a2790('0x66')](_0x5a2790('0x14a'),_0x3fe0b9),_0x4cb31d(_0x3e47ab)):(logger[_0x5a2790('0x66')]('Query\x20executed\x20correctly\x20%s',_0x3fe0b9),odbc[_0x5a2790('0x1c0')](function(_0x5cdb23){const _0x66e667=_0x5a2790;_0x5cdb23&&logger[_0x66e667('0x30')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x5cdb23),_0x4cb31d(null,_0x363c67);}));}));});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x5d')]=function(_0x218802,_0x2aff4a){const _0x2f0ba4=_0x1aa377;this[_0x2f0ba4('0x7a')]['getSmsAccountById'](_0x218802)[_0x2f0ba4('0x2e')](function(_0x4ed674){_0x2aff4a(null,_0x4ed674?_0x4ed674:![]);})[_0x2f0ba4('0x13e')](function(_0x4cc460){_0x2aff4a(_0x4cc460);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x9e')]=function(_0x529c2b,_0x4a2563){const _0x2cf8c8=_0x1aa377;this['rpc'][_0x2cf8c8('0x9e')](_0x529c2b)[_0x2cf8c8('0x2e')](function(_0x460b80){_0x4a2563(null,_0x460b80);})[_0x2cf8c8('0x13e')](function(_0x48a761){_0x4a2563(_0x48a761);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x134')]=function(_0x9b6cf2,_0x283531,_0x5eaccf){const _0x1a63c8=_0x1aa377;this['rpc'][_0x1a63c8('0x134')]({'uniqueid':this['channel']['uniqueid'],'node':_0x9b6cf2['label'],'application':_0x9b6cf2[_0x1a63c8('0x147')],'data':_0x283531||null,'project_name':this['channel'][_0x1a63c8('0x77')],'callerid':this[_0x1a63c8('0x13d')]['callerid']})[_0x1a63c8('0x2e')](function(_0x5ec9a6){_0x5eaccf&&_0x5eaccf(null,_0x5ec9a6);})['catch'](function(_0x193eb2){_0x5eaccf&&_0x5eaccf(_0x193eb2);});},AGIVertices[_0x1aa377('0x179')]['createSquareRecording']=function(_0x3d1e79,_0x17b11e,_0x3ebef0,_0x5d4fe8){const _0x1e649c=_0x1aa377;this[_0x1e649c('0x7a')]['createSquareRecording']({'uniqueid':this[_0x1e649c('0x13d')][_0x1e649c('0x6f')],'callerid':this[_0x1e649c('0x13d')]['callerid'],'calleridname':this[_0x1e649c('0x13d')]['calleridname'],'context':this[_0x1e649c('0x13d')][_0x1e649c('0xa3')],'extension':this[_0x1e649c('0x13d')][_0x1e649c('0x112')],'priority':this[_0x1e649c('0x13d')][_0x1e649c('0x17')],'accountcode':this[_0x1e649c('0x13d')][_0x1e649c('0x190')],'dnid':this[_0x1e649c('0x13d')][_0x1e649c('0x33')],'projectName':this['channel'][_0x1e649c('0x77')],'saveName':_0x17b11e,'filename':_0x3d1e79[_0x1e649c('0x5e')]||_0x17b11e,'savePath':_0x3ebef0})[_0x1e649c('0x2e')](function(_0x29c763){_0x5d4fe8(null,_0x29c763);})[_0x1e649c('0x13e')](function(_0x1116aa){_0x5d4fe8(_0x1116aa);});},AGIVertices[_0x1aa377('0x179')]['createSquareMessage']=function(_0x420e32,_0x3c3214,_0x418120){const _0x339fb0=_0x1aa377;this['rpc'][_0x339fb0('0x1e')]({'uniqueid':this[_0x339fb0('0x13d')][_0x339fb0('0x6f')],'body':_0x420e32,'direction':_0x3c3214})[_0x339fb0('0x2e')](function(_0x58a2bc){_0x418120&&_0x418120(null,_0x58a2bc);})[_0x339fb0('0x13e')](function(_0x4b2b88){_0x418120&&_0x418120(_0x4b2b88);});},AGIVertices[_0x1aa377('0x179')]['createCmContact']=function(_0x569e86,_0x1a4508){const _0x1ea045=_0x1aa377;this[_0x1ea045('0x7a')][_0x1ea045('0xb7')]({'firstName':_['isEmpty'](_0x569e86['name'])||_[_0x1ea045('0x1a1')](_0x569e86[_0x1ea045('0x3f')])?'callback_'+Math[_0x1ea045('0x136')]():_0x569e86[_0x1ea045('0x3f')],'lastName':_[_0x1ea045('0x98')](_0x569e86['lastName'])||_[_0x1ea045('0x1a1')](_0x569e86[_0x1ea045('0x11a')])?null:_0x569e86['lastName'],'phone':_0x569e86[_0x1ea045('0x74')],'ListId':_0x569e86[_0x1ea045('0x152')],'scheduledat':_0x569e86[_0x1ea045('0x93')],'callbackUniqueid':this['channel'][_0x1ea045('0x6f')],'tags':_0x1ea045('0x13a'),'description':_0x1ea045('0xa7')+_0x569e86[_0x1ea045('0x93')][_0x1ea045('0x13f')](),'priority':_0x569e86[_0x1ea045('0xbc')]})[_0x1ea045('0x2e')](function(_0x2213e6){_0x1a4508(null,_0x2213e6);})['catch'](function(_0x1d74d1){_0x1a4508(_0x1d74d1);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x23')]=function(_0x2ff888,_0xa5ba41){const _0x99b7ab=_0x1aa377;this[_0x99b7ab('0x7a')][_0x99b7ab('0x196')](_0x2ff888)[_0x99b7ab('0x2e')](function(_0x38071a){const _0x5e7c25=_0x99b7ab;_0xa5ba41(null,_0x38071a?_0x38071a[_0x5e7c25('0x3f')]:![]);})[_0x99b7ab('0x13e')](function(_0x2f9483){_0xa5ba41(_0x2f9483);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x187')]=function(_0x13a14a,_0x14751f,_0x305449){const _0x4f35ab=_0x1aa377,_0x192cc3={'role':_0x4f35ab('0x2')};_0x192cc3[_0x13a14a]=this['channel'][_0x4f35ab('0x156')],this[_0x4f35ab('0x7a')][_0x4f35ab('0x187')](_0x192cc3,_0x14751f,this[_0x4f35ab('0x13d')][_0x4f35ab('0x6f')])[_0x4f35ab('0x2e')](function(_0x245f4e){const _0x7eaa8=_0x4f35ab;_0x305449(null,_[_0x7eaa8('0x1a1')](_0x245f4e)?![]:!![]);})[_0x4f35ab('0x13e')](function(_0x3eb9b2){const _0x29cf44=_0x4f35ab;logger[_0x29cf44('0x30')](_0x3eb9b2),_0x305449(null,![]);});},AGIVertices['prototype'][_0x1aa377('0xac')]=function(_0x4feb90,_0x1b8c61){const _0x48a548=_0x1aa377,_0x9a09f={'role':_0x48a548('0x2')};_0x9a09f[_0x4feb90]=this[_0x48a548('0x13d')][_0x48a548('0x156')],this[_0x48a548('0x7a')][_0x48a548('0xac')](_0x9a09f)['then'](function(_0x2d2a7a){const _0x1f0579=_0x48a548;_0x1b8c61(null,_[_0x1f0579('0x1a1')](_0x2d2a7a)?![]:!![]);})[_0x48a548('0x13e')](function(_0xc874af){const _0x189fbd=_0x48a548;logger[_0x189fbd('0x30')](_0xc874af),_0x1b8c61(null,![]);});},AGIVertices['prototype']['agentLogout']=function(_0x1e3749,_0x3a55e0){const _0x4dd8e4=_0x1aa377,_0x159bee={'role':'agent'};_0x159bee[_0x1e3749]=this[_0x4dd8e4('0x13d')][_0x4dd8e4('0x156')],this[_0x4dd8e4('0x7a')][_0x4dd8e4('0x198')](_0x159bee)[_0x4dd8e4('0x2e')](function(_0xff664){_0x3a55e0(null,_['isNil'](_0xff664)?![]:!![]);})[_0x4dd8e4('0x13e')](function(_0x139704){const _0x389fcf=_0x4dd8e4;logger[_0x389fcf('0x30')](_0x139704),_0x3a55e0(null,![]);});},AGIVertices['prototype'][_0x1aa377('0x175')]=function(_0x2c3bc5,_0x52a139){const _0x4be06d=_0x1aa377,_0x31ca35={'role':_0x4be06d('0x2')};_0x31ca35[_0x2c3bc5]=this['channel'][_0x4be06d('0x156')];const _0x27c032=_0x2c3bc5!='internal'?util[_0x4be06d('0x150')](_0x4be06d('0x4a'),'LOCAL',this[_0x4be06d('0x13d')][_0x4be06d('0x156')]):undefined;this[_0x4be06d('0x7a')][_0x4be06d('0x175')](_0x31ca35,_0x27c032)['then'](function(_0x39fdff){const _0x1369cc=_0x4be06d;_0x52a139(null,_[_0x1369cc('0x1a1')](_0x39fdff)?![]:!![]);})[_0x4be06d('0x13e')](function(_0x54a6e7){logger['error'](_0x54a6e7),_0x52a139(null,![]);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x11d')]=function(_0x26a85c,_0x5da91){const _0x551315=_0x1aa377;sh['exec'](_[_0x551315('0x3e')](_0x26a85c),function(_0x40dde2,_0x58f07f){const _0x7bb575=_0x551315,_0x3b4c50=_0x58f07f[_0x7bb575('0x20')](/(\r\n|\n|\r)/gm,'');_0x5da91(null,_0x3b4c50);});},AGIVertices['prototype']['googleCloudTTS']=function(_0xb4def5,_0x30bc1c){const _0xfacc51=_0x1aa377;scripts[_0xfacc51('0xdf')](_0xb4def5[_0xfacc51('0xd')],_0xb4def5[_0xfacc51('0x1f')]||_0xfacc51('0xed'),_0xb4def5[_0xfacc51('0xed')],_0xb4def5[_0xfacc51('0x78')]||_0xfacc51('0x194'),_0xb4def5[_0xfacc51('0x34')]||'MALE',_0xb4def5[_0xfacc51('0x19e')]||_0xfacc51('0x8c'))[_0xfacc51('0x2e')](function(_0x4eb02a){_0x30bc1c(null,_0x4eb02a);})[_0xfacc51('0x13e')](function(_0x51ca4c){_0x30bc1c(_0x51ca4c);});},AGIVertices['prototype'][_0x1aa377('0x12c')]=function(_0x69ffbc,_0x3789f5){const _0x8c235d=_0x1aa377;scripts[_0x8c235d('0x12c')](_0x69ffbc[_0x8c235d('0xed')],_0x69ffbc[_0x8c235d('0x18d')]||'en',0x1)['then'](function(_0xdb12a0){_0x3789f5(null,_0xdb12a0);})[_0x8c235d('0x13e')](function(_0xf55936){_0x3789f5(_0xf55936);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x15f')]=function(_0x2e9858,_0x28e6b3){const _0x7371cc=_0x1aa377,_0x3e86df={'uri':_0x2e9858['url'],'method':_0x2e9858[_0x7371cc('0x1b4')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x2e9858[_0x7371cc('0x3')])===_0x7371cc('0xc')&&parseInt(_0x2e9858[_0x7371cc('0x3')])>=0x1?parseInt(_0x2e9858['timeout'])*0x3e8:0x5*0x3e8};if(_[_0x7371cc('0x13c')](['POST',_0x7371cc('0x55')],_0x3e86df[_0x7371cc('0x1b4')][_0x7371cc('0x13')]()))try{_0x3e86df[_0x7371cc('0x1a5')]=_0x2e9858[_0x7371cc('0x16f')]?JSON['parse'](_0x2e9858[_0x7371cc('0x16f')]):{};}catch(_0x26ca8a){logger[_0x7371cc('0x30')](_0x7371cc('0x10b'),_0x26ca8a);}try{_0x3e86df[_0x7371cc('0xaf')]=_0x2e9858[_0x7371cc('0xad')]?JSON[_0x7371cc('0x139')](_0x2e9858['rawHeaders']):{};}catch(_0x2fa546){logger['error']('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x2fa546);}if(_0x2e9858[_0x7371cc('0x1b9')])try{const _0xb852c3=require(_0x2e9858[_0x7371cc('0x1b9')])[_0x7371cc('0xfb')](this,_0x3e86df);_0x3e86df[_0x7371cc('0x50')]=Mustache[_0x7371cc('0xe')](_0x2e9858[_0x7371cc('0x106')],_0xb852c3,{},['$$','$$']),_0x3e86df[_0x7371cc('0xaf')]&&(_0x3e86df[_0x7371cc('0xaf')]=JSON['parse'](Mustache[_0x7371cc('0xe')](JSON['stringify'](_0x3e86df[_0x7371cc('0xaf')]),_0xb852c3,{},['$$','$$']))),_0x3e86df[_0x7371cc('0x1a5')]&&(_0x3e86df[_0x7371cc('0x1a5')]=JSON[_0x7371cc('0x139')](Mustache[_0x7371cc('0xe')](JSON['stringify'](_0x3e86df[_0x7371cc('0x1a5')]),_0xb852c3,{},['$$','$$'])));}catch(_0x10fcbd){logger['error'](_0x7371cc('0xd4'),_0x10fcbd);}rp(_0x3e86df)[_0x7371cc('0x2e')](function(_0x413fb9){const _0x3213f4=_0x7371cc,_0x50f1c3={'statusCode':_0x413fb9['statusCode']||0xc8,'statusMessage':_0x413fb9[_0x3213f4('0x15a')]||'OK','headers':_0x413fb9[_0x3213f4('0xaf')]||{},'body':_0x413fb9['body']||{}};_0x28e6b3(null,_0x50f1c3);})['catch'](function(_0x29e9e3){const _0x12e445=_0x7371cc,_0x46d6c6={'statusCode':_0x29e9e3['statusCode']||0x1f4,'statusMessage':_0x29e9e3[_0x12e445('0x1b')]||_0x12e445('0xfc'),'headers':_0x29e9e3['options'][_0x12e445('0xaf')]||{},'body':_0x29e9e3['options'][_0x12e445('0x1a5')]||{}};_0x28e6b3(null,_0x46d6c6);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x107')]=function(_0x51af96,_0x351c8a){const _0x70e78a=_0x1aa377;scripts[_0x70e78a('0x107')](this[_0x70e78a('0x13d')][_0x70e78a('0x6f')],_0x51af96[_0x70e78a('0xe9')],_0x51af96[_0x70e78a('0xed')],_0x51af96[_0x70e78a('0xc9')]||'en')[_0x70e78a('0x2e')](function(_0x38c738){_0x351c8a(null,_0x38c738);})[_0x70e78a('0x13e')](function(_0x1f42e6){_0x351c8a(_0x1f42e6);});},AGIVertices['prototype'][_0x1aa377('0x19')]=function(_0x5eb8d8,_0xa14b17){const _0xd076e8=_0x1aa377;scripts[_0xd076e8('0x19')](this[_0xd076e8('0x13d')],_0x5eb8d8)[_0xd076e8('0x2e')](function(_0x213b1a){_0xa14b17(null,_0x213b1a);})[_0xd076e8('0x13e')](function(_0x5ce1f7){_0xa14b17(_0x5ce1f7);});},AGIVertices['prototype'][_0x1aa377('0xb3')]=function(_0x2e8f66,_0x21e8a9){const _0x3f85ce=_0x1aa377;scripts[_0x3f85ce('0xb3')](_0x2e8f66[_0x3f85ce('0xe9')],_0x2e8f66[_0x3f85ce('0xed')],_0x2e8f66['ispeech_tts_language']||_0x3f85ce('0x194'),_0x2e8f66[_0x3f85ce('0x104')])['then'](function(_0x272607){_0x21e8a9(null,_0x272607);})[_0x3f85ce('0x13e')](function(_0x2987d1){_0x21e8a9(_0x2987d1);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x6b')]=function(_0x4bf331,_0x2e88a8,_0x1feb75){const _0x43d02d=_0x1aa377;scripts['ispeechASR'](_0x2e88a8,_0x4bf331[_0x43d02d('0xe9')],_0x4bf331['ispeech_asr_language']||_0x43d02d('0x194'),this[_0x43d02d('0xb2')](_0x4bf331[_0x43d02d('0x10')])?_0x4bf331[_0x43d02d('0x10')]:undefined)[_0x43d02d('0x2e')](function(_0xb2d7b3){_0x1feb75(null,_0xb2d7b3);})[_0x43d02d('0x13e')](function(_0x45a773){_0x1feb75(_0x45a773);});},AGIVertices[_0x1aa377('0x179')]['awsPolly']=function(_0x3babe5,_0x24ccb3){const _0x472389=_0x1aa377;scripts[_0x472389('0xc4')](_0x3babe5[_0x472389('0x127')],_0x3babe5[_0x472389('0x172')],_0x3babe5['aws_polly_region'],_0x3babe5['aws_polly_voice']||'Amy',_0x3babe5[_0x472389('0xed')],_0x3babe5[_0x472389('0x140')]||'text')[_0x472389('0x2e')](function(_0x3a5586){_0x24ccb3(null,_0x3a5586);})[_0x472389('0x13e')](function(_0x2ce9e0){_0x24ccb3(_0x2ce9e0);});},AGIVertices[_0x1aa377('0x179')]['awsLex']=function(_0x4612ac,_0x5cea43){const _0x42aa28=_0x1aa377;scripts[_0x42aa28('0xd0')](this[_0x42aa28('0x13d')][_0x42aa28('0x6f')],_0x4612ac[_0x42aa28('0x127')],_0x4612ac[_0x42aa28('0x172')],_0x4612ac[_0x42aa28('0x141')],_0x4612ac[_0x42aa28('0xed')],_0x4612ac[_0x42aa28('0x51')])['then'](function(_0x47cb02){_0x5cea43(null,_0x47cb02);})[_0x42aa28('0x13e')](function(_0x1e2a76){_0x5cea43(_0x1e2a76);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x186')]=function(_0x2d62cc,_0x3a4338,_0x1392fb){const _0x46b57d=_0x1aa377;scripts['googleASR'](_0x3a4338,_0x2d62cc[_0x46b57d('0xe9')],_0x2d62cc[_0x46b57d('0x137')]||'en-US')[_0x46b57d('0x2e')](function(_0x97bfec){_0x1392fb(null,_0x97bfec);})[_0x46b57d('0x13e')](function(_0x29fda6){_0x1392fb(_0x29fda6);});},AGIVertices['prototype'][_0x1aa377('0xc3')]=function(_0x8dac25,_0x1a59ec,_0xb743b8){const _0x40a107=_0x1aa377;scripts[_0x40a107('0xc3')](_0x1a59ec,_0x8dac25[_0x40a107('0xb8')],_0x8dac25[_0x40a107('0x103')],_0x8dac25[_0x40a107('0x50')])[_0x40a107('0x2e')](function(_0x7fc2db){_0xb743b8(null,_0x7fc2db);})[_0x40a107('0x13e')](function(_0x27b816){_0xb743b8(_0x27b816);});},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xee')]=function(_0x3f2a13){const _0x56bfc3=_0x1aa377,_0x2dc62a=_[_0x56bfc3('0x13c')](verticesWithRetry,_0x3f2a13[_0x56bfc3('0x147')])?_0x3f2a13:_[_0x56bfc3('0xce')](_0x3f2a13);for(const _0x566706 in _0x2dc62a){typeof _0x2dc62a[_0x566706]!==_0x56bfc3('0x96')&&(_0x2dc62a[_0x566706]&&_[_0x56bfc3('0x59')](_0x2dc62a[_0x566706])&&(_[_0x56bfc3('0x13c')](recursiveMapAttributes,_0x566706)?_0x2dc62a[_0x566706]=this['replaceObjectAllVariables'](_0x2dc62a[_0x566706]):_0x2dc62a[_0x566706]=this[_0x56bfc3('0xd5')](_0x2dc62a[_0x566706])));}return _0x2dc62a;},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x167')]=function(_0x233f4e){const _0x1284d3=_0x1aa377;for(const _0x5392b8 in _0x233f4e){if(typeof _0x233f4e[_0x5392b8]!==_0x1284d3('0x96')){if(_[_0x1284d3('0x12b')](_0x233f4e[_0x5392b8]))this['recursiveNodeIndex'](_0x233f4e[_0x5392b8]);else{if(_[_0x1284d3('0x108')](_0x233f4e[_0x5392b8]))for(let _0x4c56d7=0x0;_0x4c56d7<_0x233f4e[_0x5392b8][_0x1284d3('0x128')];_0x4c56d7++){this[_0x1284d3('0x167')](_0x233f4e[_0x5392b8][_0x4c56d7]);}else _[_0x1284d3('0x59')](_0x233f4e[_0x5392b8])&&(_0x233f4e[_0x5392b8]=this['replaceAllVariables'](_0x233f4e[_0x5392b8]));}}}},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x144')]=function(_0x2b90e1,_0x456591){const _0x3c87ec=_0x1aa377;for(const _0xbd3c5b in _0x2b90e1){if(typeof _0x2b90e1[_0xbd3c5b]!==_0x3c87ec('0x96')){if(_[_0x3c87ec('0x12b')](_0x2b90e1[_0xbd3c5b]))!_[_0x3c87ec('0x98')](_0x2b90e1[_0xbd3c5b])&&this[_0x3c87ec('0x144')](_0x2b90e1[_0xbd3c5b],util[_0x3c87ec('0x150')](_0x3c87ec('0x1b8'),_0x456591,_0xbd3c5b));else{if(_[_0x3c87ec('0x108')](_0x2b90e1[_0xbd3c5b]))for(let _0x4dd71b=0x0;_0x4dd71b<_0x2b90e1[_0xbd3c5b]['length'];_0x4dd71b++){this['saveRestApiResult'](_0x2b90e1[_0xbd3c5b][_0x4dd71b],util[_0x3c87ec('0x150')]('%s.%s',_0x456591,_0xbd3c5b+'['+_0x4dd71b+']'));}else!_[_0x3c87ec('0x1a1')](_0x2b90e1[_0xbd3c5b])&&this[_0x3c87ec('0x13d')][_0x3c87ec('0xe2')](util[_0x3c87ec('0x150')](_0x3c87ec('0x1b8'),_0x456591,_0xbd3c5b),_0x2b90e1[_0xbd3c5b]);}}}},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x29')]=function(_0x5bf56f){const _0x83ce49=_0x1aa377;try{const _0x22eb4f=JSON[_0x83ce49('0x139')](_0x5bf56f);return this['recursiveNodeIndex'](_0x22eb4f),JSON['stringify'](_0x22eb4f);}catch(_0x591ec6){return this['replaceAllVariables'](_0x5bf56f);}},AGIVertices[_0x1aa377('0x179')]['replaceAllVariables']=function(_0x4bb1bd){const _0x5c6c69=_0x1aa377,_0x16396a=_0x4bb1bd['split']('{');for(let _0x5129cb=0x1;_0x5129cb<_0x16396a['length'];_0x5129cb+=0x1){const _0x353953=_0x16396a[_0x5129cb]['split']('}');_0x353953['length']>0x1&&(_0x4bb1bd=_0x4bb1bd[_0x5c6c69('0xc5')]('{'+_0x353953[0x0]+'}',this['channel'][_0x5c6c69('0x111')](_0x353953[0x0])[_0x5c6c69('0x163')]||_0x353953[0x0]));}if(_0x16396a[_0x5c6c69('0x128')]===0x1)return _0x4bb1bd['toString']();return this[_0x5c6c69('0xd5')](_0x4bb1bd);},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x102')]=function(_0x59d45d,_0x3c45c4){const _0x5f4baf=_0x1aa377,_0x3dc174=this[_0x5f4baf('0x13d')][_0x5f4baf('0x111')](_0x59d45d);if(_0x3dc174['result']===-0x1)return _0x3dc174;return logger[_0x5f4baf('0x66')](util[_0x5f4baf('0x150')](_0x5f4baf('0x149'),_0x3c45c4,_0x3dc174[_0x5f4baf('0x163')])),this[_0x5f4baf('0x13d')][_0x5f4baf('0xe2')](_0x3c45c4,_0x3dc174['extra']);},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xb2')]=function(_0x57f7f1){return _0x57f7f1&&_0x57f7f1!=='0'&&_0x57f7f1!=='-1'&&_0x57f7f1!=='';},AGIVertices['prototype']['maxRetry']=function(_0x33b909){const _0xc48fa2=_0x1aa377;return this[_0xc48fa2('0x134')][_0xc48fa2('0xfb')](this,_0x33b909,'-'),_0x33b909['retry']=_0x33b909[_0xc48fa2('0x192')],{'code':0xc8,'result':'-'};},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x9c')]=function(_0x435568){const _0x141215=_0x1aa377;logger['info'](util[_0x141215('0x150')](_0x141215('0x68'),_0x435568[_0x141215('0x64')]));if(!this['isConfigured'](_0x435568[_0x141215('0xed')]))return this[_0x141215('0x13d')][_0x141215('0x171')](_0x141215('0x17f'));let _0x2ba32b='\x22'+_0x435568[_0x141215('0xed')]+'\x22';this[_0x141215('0xb2')](_0x435568['options'])&&(_0x2ba32b+=','+_0x435568[_0x141215('0x5c')]);const _0x1bb124=this[_0x141215('0x13d')]['exec'](_0x141215('0x4e'),_0x2ba32b);if(_0x1bb124['result']===-0x1)return _0x1bb124;return this[_0x141215('0x13d')][_0x141215('0x171')](util[_0x141215('0x150')](_0x141215('0x12'),_0x2ba32b));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x6d')]=function(_0x39fc98){const _0x3bc000=_0x1aa377;logger['info'](util[_0x3bc000('0x150')](_0x3bc000('0x3c'),_0x39fc98[_0x3bc000('0x64')]));if(!this['isConfigured'](_0x39fc98[_0x3bc000('0x41')]))return this[_0x3bc000('0x13d')][_0x3bc000('0x171')](_0x3bc000('0x1b6'));let _0x76e6b0=_0x39fc98[_0x3bc000('0x41')];this[_0x3bc000('0xb2')](_0x39fc98[_0x3bc000('0x5c')])&&(_0x76e6b0+=','+_0x39fc98[_0x3bc000('0x5c')]);const _0x3d6f03=this[_0x3bc000('0x13d')][_0x3bc000('0x36')](_0x3bc000('0x165'),_0x76e6b0);if(_0x3d6f03[_0x3bc000('0x188')]===-0x1)return _0x3d6f03;const _0x20b8b5=this[_0x3bc000('0x102')](_0x3bc000('0xff'),_0x3bc000('0x1ba'));if(_0x20b8b5['result']===-0x1)return _0x20b8b5;const _0x1183c3=this[_0x3bc000('0x102')]('RECOG_INPUT()',_0x3bc000('0x161'));if(_0x1183c3['result']===-0x1)return _0x1183c3;const _0x163f9f=this['getAndSetVariable'](_0x3bc000('0x8e'),_0x3bc000('0x8d'));if(_0x163f9f[_0x3bc000('0x188')]===-0x1)return _0x163f9f;return this[_0x3bc000('0x13d')]['noop'](util[_0x3bc000('0x150')](_0x3bc000('0x1c1'),_0x76e6b0));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x67')]=function(_0x370855){const _0x10a85a=_0x1aa377;return logger[_0x10a85a('0x66')](util['format'](_0x10a85a('0x97'),_0x370855[_0x10a85a('0x64')])),this[_0x10a85a('0x13d')][_0x10a85a('0x67')]([_0x370855[_0x10a85a('0x178')],_0x370855[_0x10a85a('0x8a')]]);},AGIVertices['prototype']['answer']=function(_0x269f00){const _0x135e8d=_0x1aa377;logger['info'](util[_0x135e8d('0x150')](_0x135e8d('0x75'),_0x269f00[_0x135e8d('0x64')]));if(this[_0x135e8d('0xb2')](_0x269f00[_0x135e8d('0x3')])){logger['info'](util[_0x135e8d('0x150')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x269f00[_0x135e8d('0x3')]));const _0x158da5=this['channel'][_0x135e8d('0xec')](_0x269f00[_0x135e8d('0x3')]);if(_0x158da5[_0x135e8d('0x188')]===-0x1)return _0x158da5;}return this[_0x135e8d('0x13d')][_0x135e8d('0xc7')]();},AGIVertices[_0x1aa377('0x179')]['callback']=function(_0x3ca912){const _0x9bbfe5=_0x1aa377;logger[_0x9bbfe5('0x66')](util['format']('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x3ca912['label']));if(!this[_0x9bbfe5('0xb2')](_0x3ca912[_0x9bbfe5('0x152')]))return this[_0x9bbfe5('0x13d')]['error'](_0x3ca912,_0x9bbfe5('0x1b1'));return _0x3ca912[_0x9bbfe5('0x93')]=moment(),this[_0x9bbfe5('0xb2')](_0x3ca912[_0x9bbfe5('0x1c')])&&(_0x3ca912[_0x9bbfe5('0x93')]=moment()[_0x9bbfe5('0x1a7')](_0x3ca912[_0x9bbfe5('0x1c')],_0x9bbfe5('0x1af'))),!this[_0x9bbfe5('0xb2')](_0x3ca912[_0x9bbfe5('0xbc')])&&(_0x3ca912[_0x9bbfe5('0xbc')]=0x2),this[_0x9bbfe5('0xb7')][_0x9bbfe5('0xfb')](this,_0x3ca912),this[_0x9bbfe5('0x13d')][_0x9bbfe5('0x171')](util[_0x9bbfe5('0x150')](_0x9bbfe5('0xe7'),_0x3ca912[_0x9bbfe5('0x74')],_0x3ca912[_0x9bbfe5('0x152')],_0x3ca912['scheduledAt']));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x125')]=function(_0x520526){const _0x5571b8=_0x1aa377;logger[_0x5571b8('0x66')](util[_0x5571b8('0x150')](_0x5571b8('0x138'),_0x520526[_0x5571b8('0x64')]));const _0x22833e=this[_0x5571b8('0x13d')][_0x5571b8('0x36')](_0x520526[_0x5571b8('0xeb')],_0x520526[_0x5571b8('0x5c')]);if(_0x22833e['result']===-0x1)return _0x22833e;return this['channel'][_0x5571b8('0x171')](util[_0x5571b8('0x150')](_0x5571b8('0x63'),_0x520526['application'],_0x520526[_0x5571b8('0x5c')]));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x101')]=function(_0xd0bd1f){const _0x58dca6=_0x1aa377;logger[_0x58dca6('0x66')](util[_0x58dca6('0x150')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0xd0bd1f[_0x58dca6('0x64')]));if(!this[_0x58dca6('0xb2')](_0xd0bd1f[_0x58dca6('0xed')]))return this['channel'][_0x58dca6('0x171')](_0x58dca6('0x17f'));let _0x57e81b='\x22'+_0xd0bd1f[_0x58dca6('0xed')]+'\x22';this[_0x58dca6('0xb2')](_0xd0bd1f[_0x58dca6('0x5c')])&&(_0x57e81b+=','+_0xd0bd1f[_0x58dca6('0x5c')]);const _0x11f09d=this[_0x58dca6('0x13d')]['exec'](_0x58dca6('0x4e'),_0x57e81b);if(_0x11f09d[_0x58dca6('0x188')]===-0x1)return _0x11f09d;return this['channel']['noop'](util[_0x58dca6('0x150')]('Executed\x20command\x20MRCPSynth\x20%s',_0x57e81b));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x40')]=function(_0x1f0ac9){const _0x475b75=_0x1aa377;logger[_0x475b75('0x66')](util[_0x475b75('0x150')](_0x475b75('0x1a8'),_0x1f0ac9[_0x475b75('0x64')]));if(!this['isConfigured'](_0x1f0ac9[_0x475b75('0xed')]))return this[_0x475b75('0x13d')][_0x475b75('0x171')]('no\x20text\x20configured');let _0x22f0bc='\x22'+_0x1f0ac9[_0x475b75('0xed')]+'\x22';this[_0x475b75('0xb2')](_0x1f0ac9[_0x475b75('0x5c')])&&(_0x22f0bc+=','+_0x1f0ac9[_0x475b75('0x5c')]);const _0x218373=this[_0x475b75('0x13d')][_0x475b75('0x36')](_0x475b75('0x4e'),_0x22f0bc);if(_0x218373[_0x475b75('0x188')]===-0x1)return _0x218373;return this['channel'][_0x475b75('0x171')](util[_0x475b75('0x150')](_0x475b75('0x12'),_0x22f0bc));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x14e')]=function(_0x2aad19){const _0x38762a=_0x1aa377;logger[_0x38762a('0x66')](util[_0x38762a('0x150')](_0x38762a('0x151'),_0x2aad19[_0x38762a('0x64')]));if(!this['isConfigured'](_0x2aad19[_0x38762a('0x41')]))return this[_0x38762a('0x13d')]['noop']('no\x20grammar\x20configured');let _0xe4d809=_0x2aad19[_0x38762a('0x41')];this[_0x38762a('0xb2')](_0x2aad19[_0x38762a('0x5c')])&&(_0xe4d809+=','+_0x2aad19[_0x38762a('0x5c')]);const _0x41adf3=this[_0x38762a('0x13d')][_0x38762a('0x36')]('MRCPRecog',_0xe4d809);if(_0x41adf3[_0x38762a('0x188')]===-0x1)return _0x41adf3;const _0x1863bf=this['getAndSetVariable']('RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE');if(_0x1863bf['result']===-0x1)return _0x1863bf;const _0x429180=this[_0x38762a('0x102')](_0x38762a('0x16'),_0x38762a('0x1a9'));if(_0x429180[_0x38762a('0x188')]===-0x1)return _0x429180;const _0x3e3cb0=this[_0x38762a('0x102')](_0x38762a('0x8e'),_0x38762a('0x17b'));if(_0x3e3cb0[_0x38762a('0x188')]===-0x1)return _0x3e3cb0;return this[_0x38762a('0x13d')][_0x38762a('0x171')](util[_0x38762a('0x150')](_0x38762a('0x1c1'),_0xe4d809));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xa0')]=function(_0x2683e4){const _0x58643b=_0x1aa377;logger[_0x58643b('0x66')](util[_0x58643b('0x150')](_0x58643b('0x32'),_0x2683e4[_0x58643b('0x64')]));if(!this['isConfigured'](_0x2683e4[_0x58643b('0x41')]))return this[_0x58643b('0x13d')][_0x58643b('0x171')](_0x58643b('0x1b6'));let _0x506de8=_0x2683e4[_0x58643b('0x41')];this[_0x58643b('0xb2')](_0x2683e4[_0x58643b('0x5c')])&&(_0x506de8+=','+_0x2683e4[_0x58643b('0x5c')]);const _0x550d54=this[_0x58643b('0x13d')][_0x58643b('0x36')](_0x58643b('0x165'),_0x506de8);if(_0x550d54[_0x58643b('0x188')]===-0x1)return _0x550d54;const _0x24d146=this[_0x58643b('0x102')]('RECOG_CONFIDENCE()',_0x58643b('0xcc'));if(_0x24d146[_0x58643b('0x188')]===-0x1)return _0x24d146;const _0x55c2ee=this['getAndSetVariable'](_0x58643b('0x16'),_0x58643b('0x5a'));if(_0x55c2ee[_0x58643b('0x188')]===-0x1)return _0x55c2ee;const _0x2b6f4f=this[_0x58643b('0x102')](_0x58643b('0x8e'),'SESTEK_ASR_INSTANCE');if(_0x2b6f4f[_0x58643b('0x188')]===-0x1)return _0x2b6f4f;return this[_0x58643b('0x13d')][_0x58643b('0x171')](util[_0x58643b('0x150')](_0x58643b('0x1c1'),_0x506de8));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x62')]=function(_0x41fecc){const _0x867e9c=_0x1aa377;logger[_0x867e9c('0x66')](util[_0x867e9c('0x150')](_0x867e9c('0x14f'),_0x41fecc[_0x867e9c('0x64')]));if(!this[_0x867e9c('0xb2')](_0x41fecc[_0x867e9c('0x9')]))return this[_0x867e9c('0x13d')]['error'](_0x41fecc,_0x867e9c('0x12e'));const _0x2211ce=this[_0x867e9c('0x10f')][_0x867e9c('0xfb')](this,_0x41fecc['odbc_id']);if(!_0x2211ce)return this[_0x867e9c('0x13d')][_0x867e9c('0x30')](_0x41fecc,_0x867e9c('0xf8'));if(!this['isConfigured'](_0x41fecc[_0x867e9c('0x49')]))return this['channel'][_0x867e9c('0x30')](_0x41fecc,'no\x20query\x20configured');const _0x43fdf2=_0x41fecc[_0x867e9c('0x49')][_0x867e9c('0x20')](/(\r\n|\n|\r)/gm,'\x20');this[_0x867e9c('0x13d')][_0x867e9c('0x171')](util['format'](_0x867e9c('0x19b'),_0x43fdf2));const _0x353363=this['getQueryOdbc'][_0x867e9c('0xfb')](this,_0x2211ce,_0x43fdf2);this[_0x867e9c('0x134')][_0x867e9c('0xfb')](this,_0x41fecc,_0x43fdf2);if(!this[_0x867e9c('0xb2')](_0x41fecc[_0x867e9c('0xa4')]))return this[_0x867e9c('0x13d')][_0x867e9c('0x171')]('no\x20variable\x20selected\x20for\x20the\x20result');const _0x57ac15=this['getVariable'][_0x867e9c('0xfb')](this,_0x41fecc['variable_id']);if(!_0x57ac15)return this['channel'][_0x867e9c('0x30')](_0x41fecc,_0x867e9c('0x123'));const _0x4a26c7=this;return _0x353363['forEach'](function(_0x4e1d49,_0x8d98db){const _0x4dd496=_0x867e9c;Object['keys'](_0x4e1d49)[_0x4dd496('0x92')](function(_0x49d15a){const _0x1728b3=_0x4dd496;_0x4a26c7[_0x1728b3('0x13d')]['setVariable'](util[_0x1728b3('0x150')](_0x1728b3('0xc8'),_0x57ac15,_0x8d98db,_0x49d15a),_0x4e1d49[_0x49d15a]);});}),this[_0x867e9c('0x13d')][_0x867e9c('0xe2')](util[_0x867e9c('0x150')](_0x867e9c('0xd6'),_0x57ac15),_0x353363[_0x867e9c('0x128')]),this[_0x867e9c('0x13d')][_0x867e9c('0x171')](util[_0x867e9c('0x150')](_0x867e9c('0xef'),_0x57ac15));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x7d')]=function(_0x23af82){const _0x39747d=_0x1aa377;logger['debug'](util['format'](_0x39747d('0x80'),_0x23af82[_0x39747d('0x64')]));if(!this['isConfigured'](_0x23af82['sip_id']))return this[_0x39747d('0x13d')][_0x39747d('0x30')](_0x23af82,_0x39747d('0x191'));const _0x2f022a=this[_0x39747d('0x110')]['sync'](this,_0x23af82[_0x39747d('0x6a')]);if(!_0x2f022a)return this[_0x39747d('0x13d')][_0x39747d('0x30')](_0x23af82,_0x39747d('0x4c'));const _0x3e69aa=this[_0x39747d('0x13d')][_0x39747d('0x36')](_0x39747d('0x113'),[util['format']('SIP/%s',_0x2f022a),_0x23af82['timeout'],_0x23af82['opts'],_0x23af82[_0x39747d('0x106')]]);if(_0x3e69aa[_0x39747d('0x188')]===-0x1)return _0x3e69aa;return this['channel'][_0x39747d('0x171')](util[_0x39747d('0x150')]('Executed\x20command\x20%s',_0x39747d('0x113')));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x105')]=function(_0x308776){const _0x46a91e=_0x1aa377;logger[_0x46a91e('0x66')](util['format'](_0x46a91e('0xb'),_0x308776[_0x46a91e('0x64')]));if(!this[_0x46a91e('0xb2')](_0x308776[_0x46a91e('0xe9')]))return this[_0x46a91e('0x13d')][_0x46a91e('0x171')](_0x46a91e('0x81'));if(!this[_0x46a91e('0xb2')](_0x308776[_0x46a91e('0xed')]))return this['channel'][_0x46a91e('0x171')]('no\x20text\x20configured');this['channel'][_0x46a91e('0x1a0')]=!![],this[_0x46a91e('0x134')](_0x308776),this['createSquareMessage'](_0x308776[_0x46a91e('0xed')],'in'),this[_0x46a91e('0x13d')][_0x46a91e('0x171')](util[_0x46a91e('0x150')](_0x46a91e('0x1bb'),_0x308776[_0x46a91e('0xed')]));const _0xe6322c=this[_0x46a91e('0x107')][_0x46a91e('0xfb')](this,_0x308776);if(_0xe6322c){for(const _0x1a84eb in _0xe6322c){typeof _0xe6322c[_0x1a84eb]!=='undefined'&&this[_0x46a91e('0x13d')][_0x46a91e('0xe2')](util[_0x46a91e('0x150')](_0x46a91e('0x130'),_0x1a84eb[_0x46a91e('0x13')]()),_0xe6322c[_0x1a84eb]);}return this[_0x46a91e('0x1e')](_0xe6322c['speech'],_0x46a91e('0x142')),this[_0x46a91e('0x13d')][_0x46a91e('0x171')](util['format'](_0x46a91e('0xf5'),_0xe6322c['speech']));}return this[_0x46a91e('0x13d')][_0x46a91e('0x30')](_0x308776,'Dialogflow\x20is\x20unreachable');},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x146')]=function(_0x2c5da5){const _0x276f34=_0x1aa377;logger['info'](util[_0x276f34('0x150')](_0x276f34('0x18a'),_0x2c5da5[_0x276f34('0x64')]));if(!this['isConfigured'](_0x2c5da5[_0x276f34('0x19c')]))return this[_0x276f34('0x13d')][_0x276f34('0x171')](_0x276f34('0x47'));if(!this[_0x276f34('0xb2')](_0x2c5da5[_0x276f34('0xd3')]))return this[_0x276f34('0x13d')][_0x276f34('0x171')](_0x276f34('0x12a'));if(!this[_0x276f34('0xb2')](_0x2c5da5[_0x276f34('0x10e')]))return this['channel']['noop']('no\x20password\x20configured');if(!this['isConfigured'](_0x2c5da5[_0x276f34('0x58')]))return this[_0x276f34('0x13d')][_0x276f34('0x171')](_0x276f34('0x17f'));this['channel'][_0x276f34('0x1a0')]=!![],this[_0x276f34('0x134')](_0x2c5da5),this[_0x276f34('0x1e')](_0x2c5da5[_0x276f34('0xed')],'in'),this['channel'][_0x276f34('0x171')](util[_0x276f34('0x150')](_0x276f34('0xca'),_0x2c5da5['text']));const _0x45b5ca=this[_0x276f34('0x19')][_0x276f34('0xfb')](this,_0x2c5da5);if(_0x45b5ca){for(const _0x3ce167 in _0x45b5ca){typeof _0x45b5ca[_0x3ce167]!==_0x276f34('0x96')&&this[_0x276f34('0x13d')]['setVariable'](util[_0x276f34('0x150')](_0x276f34('0x145'),_0x3ce167[_0x276f34('0x13')]()),_0x45b5ca[_0x3ce167]);}this[_0x276f34('0x1e')](_0x45b5ca['speech'],_0x276f34('0x142'));if(_0x45b5ca[_0x276f34('0x1be')]){this[_0x276f34('0x13d')][_0x276f34('0x171')](util[_0x276f34('0x150')]('Sestek\x20NDA\x20%s\x20file\x20created',_0x45b5ca[_0x276f34('0x1be')]));const _0x95db93=this[_0x276f34('0x13d')]['streamFile'](_0x45b5ca[_0x276f34('0x1be')]);try{fs[_0x276f34('0x54')](_0x45b5ca['audiofile']+_0x276f34('0x12d'));}catch(_0x35fab9){logger[_0x276f34('0x30')](_0x35fab9);}return _0x95db93;}else return this[_0x276f34('0x13d')]['noop'](util['format']('SestekNDA\x20Result\x20%s',_0x45b5ca['speech']));}return this[_0x276f34('0x13d')][_0x276f34('0x30')](_0x2c5da5,_0x276f34('0x10d'));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x79')]=function(_0xe5d561){const _0x1f8150=_0x1aa377;return logger[_0x1f8150('0x66')](util[_0x1f8150('0x150')](_0x1f8150('0x1a2'),_0xe5d561['label'])),this[_0x1f8150('0x13d')][_0x1f8150('0x171')](_0x1f8150('0x79'));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x115')]=function(_0x3c28a2){const _0x5f0b68=_0x1aa377;logger[_0x5f0b68('0x66')](util[_0x5f0b68('0x150')](_0x5f0b68('0x46'),_0x3c28a2[_0x5f0b68('0x64')]));let _0x13cb86='';if(_0x3c28a2[_0x5f0b68('0x8b')]){if(!this[_0x5f0b68('0xb2')](_0x3c28a2[_0x5f0b68('0x8b')]))return this[_0x5f0b68('0x13d')][_0x5f0b68('0x30')](_0x3c28a2,_0x5f0b68('0xa6'));else{const _0x34bf10=parseInt(_0x3c28a2[_0x5f0b68('0x8b')],0xa);if(isNaN(_0x34bf10))_0x13cb86=_0x3c28a2[_0x5f0b68('0x8b')];else{_0x13cb86=this['getTrunk'][_0x5f0b68('0xfb')](this,_0x3c28a2[_0x5f0b68('0x8b')]);if(!_0x13cb86)return this[_0x5f0b68('0x13d')][_0x5f0b68('0x30')](_0x3c28a2,'no\x20trunk\x20found');}}}else{if(_0x3c28a2['trunk_name'])_0x13cb86=_0x3c28a2[_0x5f0b68('0xa')];else return this[_0x5f0b68('0x13d')][_0x5f0b68('0x30')](_0x3c28a2,_0x5f0b68('0xa6'));}const _0x225089=this[_0x5f0b68('0x13d')][_0x5f0b68('0x36')](_0x5f0b68('0x113'),[util[_0x5f0b68('0x150')](_0x5f0b68('0x18e'),_0x13cb86,_0x3c28a2[_0x5f0b68('0x74')]),_0x3c28a2[_0x5f0b68('0x3')],_0x3c28a2[_0x5f0b68('0x182')],_0x3c28a2['url']]);if(_0x225089['result']===-0x1)return _0x225089;return this[_0x5f0b68('0x13d')][_0x5f0b68('0x171')](util['format'](_0x5f0b68('0x11e'),_0x5f0b68('0x113')));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x119')]=function(_0x5491d7){const _0x29fc99=_0x1aa377;return logger['info'](util[_0x29fc99('0x150')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x5491d7['label'])),this[_0x29fc99('0x13d')][_0x29fc99('0x171')](_0x29fc99('0x119'));},AGIVertices['prototype'][_0x1aa377('0x31')]=function(_0x56ad78){const _0x254896=_0x1aa377;logger[_0x254896('0x66')](util[_0x254896('0x150')](_0x254896('0x189'),_0x56ad78[_0x254896('0x64')]));if(_0x56ad78['retry']===0x0)return this[_0x254896('0x192')](_0x56ad78);_0x56ad78[_0x254896('0xf3')]-=0x1;if(!this[_0x254896('0xb2')](_0x56ad78[_0x254896('0x84')]))return this['channel'][_0x254896('0x30')](_0x56ad78,_0x254896('0x1ab'));const _0x3b5933=this[_0x254896('0x15')][_0x254896('0xfb')](this,_0x56ad78[_0x254896('0x84')]);if(!_0x3b5933)return this[_0x254896('0x13d')][_0x254896('0x30')](_0x56ad78,'no\x20file\x20audio\x20found');if(!this[_0x254896('0xb2')](_0x56ad78['variable_id']))return this[_0x254896('0x13d')]['error'](_0x254896('0x8f'));const _0x2d0c45=this[_0x254896('0x13d')]['getData'](_0x3b5933,_0x56ad78[_0x254896('0x173')],_0x56ad78[_0x254896('0x131')]),_0x4ba7c2=_0x2d0c45[_0x254896('0x188')]?_0x2d0c45['result'][_0x254896('0x13f')]():'';logger[_0x254896('0x66')](_0x254896('0x185'),JSON[_0x254896('0xa2')](_0x2d0c45));if(_0x2d0c45[_0x254896('0x188')]===-0x1)return this['createSquareDetailsReport'][_0x254896('0xfb')](this,_0x56ad78,_0x4ba7c2),_0x2d0c45;else _0x2d0c45['extra']===_0x254896('0x3')?_0x2d0c45['result']=_0x4ba7c2[_0x254896('0x128')]>=parseInt(_0x56ad78[_0x254896('0x7f')])?'x':'i':_0x2d0c45['result']=_0x4ba7c2['length']>=parseInt(_0x56ad78[_0x254896('0x7f')])&&_0x4ba7c2[_0x254896('0x128')]<=parseInt(_0x56ad78[_0x254896('0x131')])?'x':'i';const _0x494fef=this[_0x254896('0x111')][_0x254896('0xfb')](this,_0x56ad78['variable_id']);if(!_0x494fef)return this[_0x254896('0x13d')][_0x254896('0x30')](_0x56ad78,_0x254896('0x123'));this['channel'][_0x254896('0xe2')](_0x494fef,_0x4ba7c2);if(this[_0x254896('0xb2')](_0x56ad78[_0x254896('0x37')])){const _0x18621d=parseInt(_0x56ad78[_0x254896('0x37')],0xa),_0x3a37e4=rs[_0x254896('0x129')]({'charset':'*','length':_0x18621d}),_0x2aabaa=_0x4ba7c2[_0x254896('0x128')];_0x2aabaa>0x0?_0x2aabaa>_0x18621d?this[_0x254896('0x134')][_0x254896('0xfb')](this,_0x56ad78,_0x56ad78['hiddendigitspos']===_0x254896('0x7c')?_0x3a37e4+_0x4ba7c2[_0x254896('0xc1')](_0x18621d):_0x4ba7c2[_0x254896('0xc1')](0x0,_0x2aabaa-_0x18621d)+_0x3a37e4):this[_0x254896('0x134')]['sync'](this,_0x56ad78,rs[_0x254896('0x129')]({'charset':'*','length':_0x2aabaa})):this[_0x254896('0x134')]['sync'](this,_0x56ad78,'');}else this['createSquareDetailsReport']['sync'](this,_0x56ad78,_0x4ba7c2);return _0x2d0c45;},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x135')]=function(_0x177b9e){const _0x5262c9=_0x1aa377;return logger[_0x5262c9('0x66')](util[_0x5262c9('0x150')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x177b9e[_0x5262c9('0x64')])),this[_0x5262c9('0x31')](_0x177b9e);},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x73')]=function(_0x4a2be9){const _0x5f4883=_0x1aa377;return logger[_0x5f4883('0x66')](util[_0x5f4883('0x150')](_0x5f4883('0x2d'),_0x4a2be9[_0x5f4883('0x64')])),this[_0x5f4883('0x134')]['sync'](this,_0x4a2be9,_0x4a2be9[_0x5f4883('0x177')]),this[_0x5f4883('0x13d')][_0x5f4883('0x171')](util['format']('GOAL\x20%s',_0x4a2be9[_0x5f4883('0x177')]));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x43')]=function(_0x41104d){const _0x524779=_0x1aa377;logger[_0x524779('0x66')](util[_0x524779('0x150')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x41104d[_0x524779('0x64')]));if(!this[_0x524779('0xb2')](_0x41104d[_0x524779('0x127')])||!this[_0x524779('0xb2')](_0x41104d[_0x524779('0x172')]))return this[_0x524779('0x13d')][_0x524779('0x171')](_0x524779('0x109'));if(!this[_0x524779('0xb2')](_0x41104d[_0x524779('0xed')]))return this[_0x524779('0x13d')][_0x524779('0x171')](_0x524779('0x17f'));this[_0x524779('0x13d')][_0x524779('0x171')](util['format'](_0x524779('0x60'),_0x41104d['text']));const _0x4e247a=this[_0x524779('0xc4')]['sync'](this,_0x41104d);if(_0x4e247a){this[_0x524779('0x13d')][_0x524779('0x171')](util['format'](_0x524779('0xdb'),_0x4e247a));const _0x28015c=this[_0x524779('0x13d')][_0x524779('0x3d')](_0x4e247a);try{fs['unlink'](_0x4e247a+_0x524779('0x12d'));}catch(_0x270158){logger[_0x524779('0x30')](_0x270158);}return _0x28015c;}return this[_0x524779('0x13d')][_0x524779('0x30')](_0x41104d,_0x524779('0x166'));},AGIVertices['prototype'][_0x1aa377('0x17c')]=function(_0x5606ab){const _0x4bfef9=_0x1aa377;logger[_0x4bfef9('0x66')](util[_0x4bfef9('0x150')](_0x4bfef9('0x183'),_0x5606ab[_0x4bfef9('0x64')]));if(!this[_0x4bfef9('0xb2')](_0x5606ab[_0x4bfef9('0x127')])||!this[_0x4bfef9('0xb2')](_0x5606ab[_0x4bfef9('0x172')]))return this[_0x4bfef9('0x13d')][_0x4bfef9('0x171')](_0x4bfef9('0x109'));if(!this['isConfigured'](_0x5606ab[_0x4bfef9('0x51')]))return this[_0x4bfef9('0x13d')][_0x4bfef9('0x171')]('no\x20bot\x20name\x20configured');if(!this[_0x4bfef9('0xb2')](_0x5606ab[_0x4bfef9('0xed')]))return this[_0x4bfef9('0x13d')][_0x4bfef9('0x171')](_0x4bfef9('0x17f'));this['channel'][_0x4bfef9('0x1a0')]=!![],this[_0x4bfef9('0x134')](_0x5606ab),this[_0x4bfef9('0x1e')](_0x5606ab['text'],'in'),this[_0x4bfef9('0x13d')]['noop'](util[_0x4bfef9('0x150')](_0x4bfef9('0x7e'),_0x5606ab['text']));const _0x58607d=this[_0x4bfef9('0xd0')][_0x4bfef9('0xfb')](this,_0x5606ab);if(_0x58607d){for(const _0x3c1791 in _0x58607d){typeof _0x58607d[_0x3c1791]!==_0x4bfef9('0x96')&&_[_0x4bfef9('0x59')](_0x58607d[_0x3c1791])&&this[_0x4bfef9('0x13d')][_0x4bfef9('0xe2')](util[_0x4bfef9('0x150')](_0x4bfef9('0x38'),_0x3c1791[_0x4bfef9('0x13')]()),_0x58607d[_0x3c1791]);}return _[_0x4bfef9('0x1a1')](_0x58607d[_0x4bfef9('0x1b')])?this['channel'][_0x4bfef9('0x171')](_0x4bfef9('0x158')):(this['createSquareMessage'](_0x58607d[_0x4bfef9('0x1b')],_0x4bfef9('0x142')),this['channel'][_0x4bfef9('0x171')](util[_0x4bfef9('0x150')](_0x4bfef9('0xd8'),_0x58607d[_0x4bfef9('0x1b')])));}return this[_0x4bfef9('0x13d')][_0x4bfef9('0x30')](_0x5606ab,'Amazon\x20Lex\x20is\x20unreachable');},AGIVertices[_0x1aa377('0x179')]['googleasr']=function(_0x58737d){const _0x579066=_0x1aa377;logger[_0x579066('0x66')](util[_0x579066('0x150')](_0x579066('0x1bc'),_0x58737d['label'],_0x58737d[_0x579066('0x3')]));if(!this[_0x579066('0xb2')](_0x58737d['key']))return this[_0x579066('0x13d')][_0x579066('0x171')](_0x579066('0x81'));const _0x111467=_0x579066('0x1bf'),_0x2a0141=util[_0x579066('0x150')](_0x579066('0x17a'),FILES_PATH,rs[_0x579066('0x129')](0x4)),_0x26f628=util[_0x579066('0x150')](_0x579066('0x1b8'),_0x2a0141,_0x111467);let _0x49d5d7=!![];_0x58737d['beep']===_0x579066('0x148')&&(_0x49d5d7=![]);const _0x2f4fc0=this['channel']['recordFile'](_0x2a0141,_0x111467,_0x58737d[_0x579066('0x164')],_0x58737d['timeout'],undefined,_0x49d5d7);if(_0x2f4fc0[_0x579066('0x188')]!==-0x1){this['channel'][_0x579066('0x171')](util[_0x579066('0x150')](_0x579066('0x14b'),_0x26f628));const _0xc07c3e=this[_0x579066('0x186')]['sync'](this,_0x58737d,_0x26f628);if(_0xc07c3e){for(const _0x568fb3 in _0xc07c3e){typeof _0xc07c3e[_0x568fb3]!==_0x579066('0x96')&&this[_0x579066('0x13d')][_0x579066('0xe2')](util[_0x579066('0x150')](_0x579066('0x1ac'),_0x568fb3[_0x579066('0x13')]()),_0xc07c3e[_0x568fb3]);}return this['channel'][_0x579066('0x171')](util[_0x579066('0x150')]('GoogleASR\x20Result\x20%s',JSON[_0x579066('0xa2')](_0xc07c3e)));}}return _0x2f4fc0;},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x16a')]=function(_0x653a67){const _0x1caa13=_0x1aa377;logger[_0x1caa13('0x66')](util[_0x1caa13('0x150')](_0x1caa13('0xa8'),_0x653a67[_0x1caa13('0x64')]));if(!this[_0x1caa13('0xb2')](_0x653a67[_0x1caa13('0xb8')]))return this[_0x1caa13('0x13d')]['noop']('no\x20appid\x20configured');if(!this[_0x1caa13('0xb2')](_0x653a67['appsecret']))return this[_0x1caa13('0x13d')][_0x1caa13('0x171')]('no\x20appsecret\x20configured');const _0x294240=_0x1caa13('0x1bf'),_0x27d239=util[_0x1caa13('0x150')](_0x1caa13('0x17a'),FILES_PATH,rs['generate'](0x4)),_0xa6454c=util['format'](_0x1caa13('0x1b8'),_0x27d239,_0x294240);let _0xeb6768=!![];_0x653a67[_0x1caa13('0xcb')]==='NOBEEP'&&(_0xeb6768=![]);const _0x3952ac=this[_0x1caa13('0x13d')][_0x1caa13('0x174')](_0x27d239,_0x294240,_0x653a67[_0x1caa13('0x164')],_0x653a67[_0x1caa13('0x3')],undefined,_0xeb6768);if(_0x3952ac[_0x1caa13('0x188')]!==-0x1){this['channel'][_0x1caa13('0x171')](util[_0x1caa13('0x150')](_0x1caa13('0x120'),_0xa6454c));const _0x4cf167=this['tildeASR'][_0x1caa13('0xfb')](this,_0x653a67,_0xa6454c);if(_0x4cf167){for(const _0x4a22e4 in _0x4cf167){typeof _0x4cf167[_0x4a22e4]!==_0x1caa13('0x96')&&this[_0x1caa13('0x13d')][_0x1caa13('0xe2')](util[_0x1caa13('0x150')](_0x1caa13('0xa9'),_0x4a22e4[_0x1caa13('0x13')]()),_0x4cf167[_0x4a22e4]);}return this[_0x1caa13('0x13d')][_0x1caa13('0x171')](util[_0x1caa13('0x150')](_0x1caa13('0xb6'),JSON['stringify'](_0x4cf167)));}}return _0x3952ac;},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x15e')]=function(_0x35e75e){const _0x5cf19f=_0x1aa377;return logger[_0x5cf19f('0x66')](util['format']('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x35e75e['label'])),this[_0x5cf19f('0x13d')][_0x5cf19f('0x195')](_0x35e75e[_0x5cf19f('0xa3')],_0x35e75e[_0x5cf19f('0x112')],_0x35e75e['priority']);},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x2c')]=function(_0x413cf4){const _0x3149ac=_0x1aa377;logger[_0x3149ac('0x66')](util[_0x3149ac('0x150')](_0x3149ac('0xfa'),_0x413cf4[_0x3149ac('0x64')]));if(!this[_0x3149ac('0xb2')](_0x413cf4[_0x3149ac('0x14c')]))return this[_0x3149ac('0x13d')]['error'](_0x413cf4,_0x3149ac('0x1a3'));try{const _0x5b16eb=eval(_0x413cf4[_0x3149ac('0x14c')])?_0x3149ac('0x27'):_0x3149ac('0xcd');return this[_0x3149ac('0x13d')][_0x3149ac('0x171')](util[_0x3149ac('0x150')]('EVAL\x20CONDITION\x20%s\x20%s',_0x413cf4[_0x3149ac('0x14c')],_0x5b16eb)),{'code':0xc8,'result':_0x5b16eb};}catch(_0x571f79){return{'code':0xc8,'result':_0x3149ac('0xcd')};}},AGIVertices['prototype'][_0x1aa377('0x153')]=function(_0x531b6f){const _0x38904b=_0x1aa377;logger['info'](util['format'](_0x38904b('0x6e'),_0x531b6f[_0x38904b('0x64')]));if(!this['isConfigured'](_0x531b6f[_0x38904b('0x15c')]))return this['channel'][_0x38904b('0x30')](_0x531b6f,_0x38904b('0xf1'));const _0xd24231=this['getIntervals']['sync'](this,_0x531b6f[_0x38904b('0x15c')]);if(!_0xd24231)return this['channel']['error'](_0x531b6f,_0x38904b('0xb5'));for(let _0x35c705=0x0;_0x35c705<_0xd24231[_0x38904b('0x128')];_0x35c705+=0x1){const _0x13ae3b=this[_0x38904b('0x13d')][_0x38904b('0x111')](util[_0x38904b('0x150')](_0x38904b('0x19d'),_0xd24231[_0x35c705]));if(_0x13ae3b[_0x38904b('0x188')]===-0x1)return _0x13ae3b;logger['info'](util[_0x38904b('0x150')]('IFTIME\x20%s\x20%s',_0xd24231[_0x35c705],_0x13ae3b[_0x38904b('0x163')]));if(_0x13ae3b['extra']===_0x38904b('0x27'))return logger[_0x38904b('0x66')](util[_0x38904b('0x150')](_0x38904b('0x180'),_0xd24231[_0x35c705],'true')),this[_0x38904b('0x13d')]['noop'](util[_0x38904b('0x150')]('IFTIME\x20%s\x20%s',_0xd24231[_0x35c705],_0x38904b('0x27'))),{'code':0xc8,'result':'true'};else logger[_0x38904b('0x66')](util[_0x38904b('0x150')](_0x38904b('0x180'),_0xd24231[_0x35c705],_0x38904b('0xcd'))),this[_0x38904b('0x13d')]['noop'](util[_0x38904b('0x150')](_0x38904b('0x180'),_0xd24231[_0x35c705],_0x38904b('0xcd')));}return{'code':0xc8,'result':_0x38904b('0xcd')};},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xe1')]=function(_0x2caa30){const _0x51cfe5=_0x1aa377;return logger[_0x51cfe5('0x66')](util[_0x51cfe5('0x150')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x2caa30[_0x51cfe5('0x64')])),this[_0x51cfe5('0x13d')][_0x51cfe5('0xe1')]();},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x1ad')]=function(_0x32d1b0){const _0x2d85fa=_0x1aa377;logger['info'](util[_0x2d85fa('0x150')](_0x2d85fa('0x11b'),_0x32d1b0[_0x2d85fa('0x64')]));if(!this['isConfigured'](_0x32d1b0[_0x2d85fa('0xe9')]))return this[_0x2d85fa('0x13d')][_0x2d85fa('0x171')](_0x2d85fa('0x81'));const _0x3e2cd2=_0x2d85fa('0x1bf'),_0x3328b6=util[_0x2d85fa('0x150')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4)),_0xb33d7e=util[_0x2d85fa('0x150')](_0x2d85fa('0x1b8'),_0x3328b6,_0x3e2cd2);let _0x4b5b8b=!![];_0x32d1b0[_0x2d85fa('0xcb')]==='NOBEEP'&&(_0x4b5b8b=![]);const _0x4bff36=this[_0x2d85fa('0x13d')]['recordFile'](_0x3328b6,_0x3e2cd2,_0x32d1b0[_0x2d85fa('0x164')],_0x32d1b0[_0x2d85fa('0x3')],undefined,_0x4b5b8b);if(_0x4bff36[_0x2d85fa('0x188')]!==-0x1){this['channel'][_0x2d85fa('0x171')](util['format'](_0x2d85fa('0x0'),_0xb33d7e));const _0x4a1eba=this[_0x2d85fa('0x6b')][_0x2d85fa('0xfb')](this,_0x32d1b0,_0xb33d7e);if(_0x4a1eba){for(const _0x23cd12 in _0x4a1eba){typeof _0x4a1eba[_0x23cd12]!=='undefined'&&this[_0x2d85fa('0x13d')][_0x2d85fa('0xe2')](util[_0x2d85fa('0x150')](_0x2d85fa('0x70'),_0x23cd12['toUpperCase']()),_0x4a1eba[_0x23cd12]);}return this[_0x2d85fa('0x13d')][_0x2d85fa('0x171')](util['format'](_0x2d85fa('0x16c'),JSON[_0x2d85fa('0xa2')](_0x4a1eba)));}}return _0x4bff36;},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x18b')]=function(_0x26410f){const _0x3987fc=_0x1aa377;logger['info'](util[_0x3987fc('0x150')](_0x3987fc('0x4d'),_0x26410f[_0x3987fc('0x64')]));if(!this['isConfigured'](_0x26410f[_0x3987fc('0xe9')]))return this[_0x3987fc('0x13d')][_0x3987fc('0x171')](_0x3987fc('0x81'));if(!this[_0x3987fc('0xb2')](_0x26410f[_0x3987fc('0xed')]))return this[_0x3987fc('0x13d')]['noop'](_0x3987fc('0x17f'));this[_0x3987fc('0x13d')][_0x3987fc('0x171')](util[_0x3987fc('0x150')](_0x3987fc('0x88'),_0x26410f[_0x3987fc('0xed')]));const _0x1666a8=this[_0x3987fc('0xb3')][_0x3987fc('0xfb')](this,_0x26410f);if(_0x1666a8){this[_0x3987fc('0x13d')][_0x3987fc('0x171')](util[_0x3987fc('0x150')]('ispeech\x20%s\x20file\x20created',_0x1666a8));const _0xd866ad=this['channel'][_0x3987fc('0x3d')](_0x1666a8,_0x26410f[_0x3987fc('0x164')]);try{fs[_0x3987fc('0x54')](_0x1666a8+_0x3987fc('0x12d'));}catch(_0x49c5ec){logger[_0x3987fc('0x30')](_0x49c5ec);}return _0xd866ad;}return this[_0x3987fc('0x13d')][_0x3987fc('0x30')](_0x26410f,_0x3987fc('0x176'));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xdd')]=function(_0x25391a){const _0x3ffc0c=_0x1aa377;logger[_0x3ffc0c('0x66')](util[_0x3ffc0c('0x150')](_0x3ffc0c('0xe0'),_0x25391a['label']));if(!this['isConfigured'](_0x25391a[_0x3ffc0c('0xf4')]))return this[_0x3ffc0c('0x13d')][_0x3ffc0c('0x30')](_0x25391a,_0x3ffc0c('0xf'));logger[_0x3ffc0c('0x66')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x3ffc0c('0x13d')][_0x3ffc0c('0x156')],_0x25391a['findBy']));const _0xbb5990=this[_0x3ffc0c('0x175')]['sync'](this,_0x25391a[_0x3ffc0c('0xf4')]);return _0xbb5990?(logger['info'](util[_0x3ffc0c('0x150')](_0x3ffc0c('0x15d'),this[_0x3ffc0c('0x13d')][_0x3ffc0c('0x156')],_0x25391a[_0x3ffc0c('0xf4')])),this[_0x3ffc0c('0x13d')][_0x3ffc0c('0x171')](util[_0x3ffc0c('0x150')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x3ffc0c('0x156')],_0x25391a[_0x3ffc0c('0xf4')])),{'code':0xc8,'result':_0x3ffc0c('0xe4')}):(logger['info'](util[_0x3ffc0c('0x150')](_0x3ffc0c('0x17e'),this['channel'][_0x3ffc0c('0x156')],_0x25391a[_0x3ffc0c('0xf4')])),this['channel'][_0x3ffc0c('0x171')](util[_0x3ffc0c('0x150')](_0x3ffc0c('0x17e'),this[_0x3ffc0c('0x13d')][_0x3ffc0c('0x156')],_0x25391a[_0x3ffc0c('0xf4')])),{'code':0xc8,'result':'failure'});},AGIVertices[_0x1aa377('0x179')]['logout']=function(_0x506020){const _0x27c8bb=_0x1aa377;logger[_0x27c8bb('0x66')](util[_0x27c8bb('0x150')](_0x27c8bb('0x17d'),_0x506020[_0x27c8bb('0x64')]));if(!this[_0x27c8bb('0xb2')](_0x506020[_0x27c8bb('0xf4')]))return this['channel']['error'](_0x506020,_0x27c8bb('0xf'));logger['info'](util[_0x27c8bb('0x150')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0x27c8bb('0x156')],_0x506020[_0x27c8bb('0xf4')]));const _0x3cb970=this['agentLogout'][_0x27c8bb('0xfb')](this,_0x506020[_0x27c8bb('0xf4')]);return _0x3cb970?(logger[_0x27c8bb('0x66')](util[_0x27c8bb('0x150')](_0x27c8bb('0x15d'),this[_0x27c8bb('0x13d')][_0x27c8bb('0x156')],_0x506020[_0x27c8bb('0xf4')])),this['channel'][_0x27c8bb('0x171')](util[_0x27c8bb('0x150')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x27c8bb('0x13d')][_0x27c8bb('0x156')],_0x506020[_0x27c8bb('0xf4')])),{'code':0xc8,'result':_0x27c8bb('0xe4')}):(logger[_0x27c8bb('0x66')](util[_0x27c8bb('0x150')](_0x27c8bb('0x17e'),this[_0x27c8bb('0x13d')][_0x27c8bb('0x156')],_0x506020[_0x27c8bb('0xf4')])),this[_0x27c8bb('0x13d')][_0x27c8bb('0x171')](util[_0x27c8bb('0x150')](_0x27c8bb('0x17e'),this[_0x27c8bb('0x13d')][_0x27c8bb('0x156')],_0x506020['findBy'])),{'code':0xc8,'result':'failure'});},AGIVertices['prototype']['math']=function(_0x43d7ac){const _0x2ff46a=_0x1aa377;logger[_0x2ff46a('0x66')](util[_0x2ff46a('0x150')](_0x2ff46a('0x85'),_0x43d7ac[_0x2ff46a('0x64')]));if(!this[_0x2ff46a('0xb2')](_0x43d7ac[_0x2ff46a('0xc2')]))return this[_0x2ff46a('0x13d')]['error'](_0x43d7ac,_0x2ff46a('0x24'));this['channel']['noop'](util[_0x2ff46a('0x150')]('math\x20%s',_0x43d7ac[_0x2ff46a('0xc2')]));const _0x36b8ef=eval(_0x43d7ac[_0x2ff46a('0xc2')]);if(!this['isConfigured'](_0x43d7ac['variable_id']))return this[_0x2ff46a('0x13d')][_0x2ff46a('0x171')](_0x2ff46a('0x8f'));const _0x57e3d7=this[_0x2ff46a('0x111')][_0x2ff46a('0xfb')](this,_0x43d7ac[_0x2ff46a('0xa4')]);if(!_0x57e3d7)return this[_0x2ff46a('0x13d')]['error'](_0x43d7ac,'no\x20variable\x20found');if(_['isArray'](_0x36b8ef)){const _0xe269b6=this;return _0x36b8ef['forEach'](function(_0x766641,_0x25e98c){const _0x3d32a8=_0x2ff46a;_0xe269b6[_0x3d32a8('0x13d')][_0x3d32a8('0xe2')](util['format']('%s[%s]',_0x57e3d7,_0x25e98c),_0x766641);}),this[_0x2ff46a('0x13d')][_0x2ff46a('0x171')](util[_0x2ff46a('0x150')](_0x2ff46a('0xa5'),_0x57e3d7));}else return this[_0x2ff46a('0x13d')]['setVariable'](_0x57e3d7,_0x36b8ef);},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x5b')]=function(_0xcdf0e){const _0x33e8cd=_0x1aa377;logger[_0x33e8cd('0x66')](util[_0x33e8cd('0x150')](_0x33e8cd('0x1b3'),_0xcdf0e[_0x33e8cd('0x64')]));if(_0xcdf0e[_0x33e8cd('0xf3')]===0x0)return this['maxRetry'](_0xcdf0e);_0xcdf0e['retry']-=0x1;if(!this[_0x33e8cd('0xb2')](_0xcdf0e[_0x33e8cd('0x84')]))return this[_0x33e8cd('0x13d')]['error'](_0xcdf0e,'no\x20file\x20audio\x20selected');const _0x3ceaca=this['getSound'][_0x33e8cd('0xfb')](this,_0xcdf0e['file_id']);if(!_0x3ceaca)return this[_0x33e8cd('0x13d')]['error'](_0xcdf0e,_0x33e8cd('0x25'));const _0x3d48f9=this[_0x33e8cd('0x13d')]['getData'](_0x3ceaca,_0xcdf0e[_0x33e8cd('0x173')],_0xcdf0e['digit']);let _0x596e35=_0x3d48f9[_0x33e8cd('0x188')];if(_0x3d48f9[_0x33e8cd('0x188')]===-0x1)return this[_0x33e8cd('0x134')]['sync'](this,_0xcdf0e,'-1'),_0x3d48f9;else{if(_0x3d48f9['extra']===_0x33e8cd('0x3'))_0x3d48f9[_0x33e8cd('0x188')]=_0x3d48f9[_0x33e8cd('0x188')][_0x33e8cd('0x128')]>0x0?_0x3d48f9['result']:'t';else _[_0x33e8cd('0x98')](_0x3d48f9[_0x33e8cd('0x188')])&&(_0x3d48f9[_0x33e8cd('0x188')]='#',_0x596e35='#');}if(!this[_0x33e8cd('0xb2')](_0xcdf0e[_0x33e8cd('0xa4')]))this[_0x33e8cd('0x13d')][_0x33e8cd('0x171')]('no\x20variable\x20selected\x20for\x20the\x20result');else{const _0x278820=this[_0x33e8cd('0x111')][_0x33e8cd('0xfb')](this,_0xcdf0e[_0x33e8cd('0xa4')]);if(!_0x278820)return this[_0x33e8cd('0x13d')][_0x33e8cd('0x30')](_0xcdf0e,'no\x20variable\x20found');this[_0x33e8cd('0x13d')][_0x33e8cd('0xe2')](_0x278820,_0x596e35);}return this['createSquareDetailsReport'][_0x33e8cd('0xfb')](this,_0xcdf0e,_0x596e35),_0x3d48f9;},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x171')]=function(_0x217377){const _0x33296a=_0x1aa377;return logger[_0x33296a('0x66')](util[_0x33296a('0x150')](_0x33296a('0xda'),_0x217377[_0x33296a('0x64')])),this[_0x33296a('0x13d')][_0x33296a('0x171')](_0x217377['output']||_0x217377[_0x33296a('0x64')]);},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x19f')]=function(_0x1c13ad){const _0x2ceafe=_0x1aa377;logger[_0x2ceafe('0x66')](util['format'](_0x2ceafe('0x7'),_0x1c13ad[_0x2ceafe('0x64')]));if(!this[_0x2ceafe('0xb2')](_0x1c13ad[_0x2ceafe('0xf4')]))return this[_0x2ceafe('0x13d')][_0x2ceafe('0x30')](_0x1c13ad,_0x2ceafe('0xf'));logger['info'](util[_0x2ceafe('0x150')](_0x2ceafe('0x91'),this['channel'][_0x2ceafe('0x156')],_0x1c13ad['findBy']));const _0xd1f5bb=this[_0x2ceafe('0x23')][_0x2ceafe('0xfb')](this,_0x1c13ad[_0x2ceafe('0x1')]),_0x3034b9=this['agentPause'][_0x2ceafe('0xfb')](this,_0x1c13ad['findBy'],_0xd1f5bb);return _0x3034b9?(logger[_0x2ceafe('0x66')](util[_0x2ceafe('0x150')](_0x2ceafe('0x15d'),this[_0x2ceafe('0x13d')][_0x2ceafe('0x156')],_0x1c13ad[_0x2ceafe('0xf4')])),this[_0x2ceafe('0x13d')]['noop'](util['format'](_0x2ceafe('0x15d'),this[_0x2ceafe('0x13d')][_0x2ceafe('0x156')],_0x1c13ad[_0x2ceafe('0xf4')])),{'code':0xc8,'result':_0x2ceafe('0xe4')}):(logger[_0x2ceafe('0x66')](util[_0x2ceafe('0x150')](_0x2ceafe('0x17e'),this[_0x2ceafe('0x13d')]['callerid'],_0x1c13ad[_0x2ceafe('0xf4')])),this['channel'][_0x2ceafe('0x171')](util[_0x2ceafe('0x150')](_0x2ceafe('0x15d'),this[_0x2ceafe('0x13d')][_0x2ceafe('0x156')],_0x1c13ad[_0x2ceafe('0xf4')])),{'code':0xc8,'result':_0x2ceafe('0x100')});},AGIVertices[_0x1aa377('0x179')]['playback']=function(_0x56d89f){const _0x2885dd=_0x1aa377;logger[_0x2885dd('0x66')](util['format'](_0x2885dd('0x82'),_0x56d89f['label']));if(!this[_0x2885dd('0xb2')](_0x56d89f['file_id']))return this['channel'][_0x2885dd('0x30')](_0x56d89f,_0x2885dd('0x1ab'));const _0x4574bb=this[_0x2885dd('0x15')][_0x2885dd('0xfb')](this,_0x56d89f[_0x2885dd('0x84')]);if(!_0x4574bb)return this[_0x2885dd('0x13d')][_0x2885dd('0x30')](_0x56d89f,_0x2885dd('0x25'));const _0x45990f=this[_0x2885dd('0x13d')][_0x2885dd('0x36')](_0x2885dd('0x11c'),[_0x4574bb,_0x56d89f[_0x2885dd('0x182')]]);if(_0x45990f[_0x2885dd('0x188')]===-0x1)return _0x45990f;return this[_0x2885dd('0x13d')][_0x2885dd('0x171')](util[_0x2885dd('0x150')]('Executed\x20command\x20%s\x20%s',_0x2885dd('0x11c'),_0x4574bb));},AGIVertices['prototype'][_0x1aa377('0x42')]=function(_0x2f7e27){const _0x31a19e=_0x1aa377;logger['info'](util['format']('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x2f7e27[_0x31a19e('0x64')]));if(!this[_0x31a19e('0xb2')](_0x2f7e27[_0x31a19e('0xd2')]))return this[_0x31a19e('0x13d')]['error'](_0x2f7e27,_0x31a19e('0x126'));let _0x10ea89='';const _0x4c3e1c=parseInt(_0x2f7e27[_0x31a19e('0xd2')],0xa);if(isNaN(_0x4c3e1c))_0x10ea89=_0x2f7e27[_0x31a19e('0xd2')];else{_0x10ea89=this[_0x31a19e('0x9d')]['sync'](this,_0x2f7e27[_0x31a19e('0xd2')]);if(!_0x10ea89)return this[_0x31a19e('0x13d')][_0x31a19e('0x30')](_0x2f7e27,_0x31a19e('0xf2'));}let _0x249928='';if(this['isConfigured'](_0x2f7e27[_0x31a19e('0x84')])){const _0x69392b=this[_0x31a19e('0x15')][_0x31a19e('0xfb')](this,_0x2f7e27[_0x31a19e('0x84')]);_0x69392b&&(_0x249928=_0x69392b);}this[_0x31a19e('0x134')][_0x31a19e('0xfb')](this,_0x2f7e27,_0x10ea89);_0x2f7e27[_0x31a19e('0x182')][_0x31a19e('0x86')]('x')<0x0&&(_0x2f7e27[_0x31a19e('0x182')]+='x');_0x2f7e27[_0x31a19e('0x182')][_0x31a19e('0x86')]('X')<0x0&&(_0x2f7e27['opts']+='X');this[_0x31a19e('0x13d')][_0x31a19e('0xe2')](_0x31a19e('0x18f'),_0x10ea89?_0x10ea89[_0x31a19e('0xe5')]():'');const _0x248e7d=this[_0x31a19e('0x13d')][_0x31a19e('0x36')](_0x31a19e('0x57'),[_0x10ea89,_0x2f7e27[_0x31a19e('0x182')],_0x2f7e27[_0x31a19e('0x106')],_0x249928,_0x2f7e27[_0x31a19e('0x3')],_0x2f7e27[_0x31a19e('0x67')],_0x2f7e27[_0x31a19e('0x71')],_0x2f7e27[_0x31a19e('0x28')],'',_0x2f7e27[_0x31a19e('0x154')]]);if(_0x248e7d[_0x31a19e('0x188')]===-0x1)return _0x248e7d;return this[_0x31a19e('0x13d')][_0x31a19e('0x171')](util[_0x31a19e('0x150')](_0x31a19e('0x63'),'QUEUE',_0x10ea89));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x1c2')]=function(_0x3a01ae){const _0xb89c04=_0x1aa377;logger[_0xb89c04('0x66')](util[_0xb89c04('0x150')](_0xb89c04('0x16b'),_0x3a01ae[_0xb89c04('0x64')]));const _0x52a5c5=_0x3a01ae['recordingFormat']||'wav',_0x55c6d4=util[_0xb89c04('0x150')]('%s_%s',this[_0xb89c04('0x13d')]['uniqueid'],rs[_0xb89c04('0x129')](0x5)),_0x27c009=util['format'](_0xb89c04('0x90'),FILES_PATH,_0x55c6d4,_0x52a5c5),_0x50470c=util[_0xb89c04('0x150')](_0xb89c04('0x17a'),FILES_PATH,_0x55c6d4);return this['createSquareRecording'][_0xb89c04('0xfb')](this,_0x3a01ae,_0x55c6d4,_0x27c009),this[_0xb89c04('0x13d')][_0xb89c04('0xe2')](_0xb89c04('0x159'),_0x55c6d4),logger['info'](_0xb89c04('0x1a4'),_0x50470c,_0x52a5c5,_0x3a01ae['escape_digits'],_0x3a01ae[_0xb89c04('0x3')]),this[_0xb89c04('0x13d')]['recordFile'](_0x50470c,_0x52a5c5,_0x3a01ae['escape_digits'],_0x3a01ae[_0xb89c04('0x3')],undefined,!![]);},AGIVertices[_0x1aa377('0x179')]['restapi']=function(_0x423355){const _0x183d9d=_0x1aa377;logger[_0x183d9d('0x66')](util[_0x183d9d('0x150')]('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x423355[_0x183d9d('0x64')]));if(!this[_0x183d9d('0xb2')](_0x423355[_0x183d9d('0x106')]))return this[_0x183d9d('0x13d')][_0x183d9d('0x171')](_0x183d9d('0x121'));const _0x1c6208=this['restAPI'][_0x183d9d('0xfb')](this,_0x423355);logger[_0x183d9d('0x66')](util[_0x183d9d('0x150')](_0x183d9d('0x122'),util[_0x183d9d('0x116')](_0x1c6208,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x423355[_0x183d9d('0xa4')]))return this['channel'][_0x183d9d('0x171')](_0x183d9d('0x15b'));const _0x2ab8ea=this['getVariable'][_0x183d9d('0xfb')](this,_0x423355[_0x183d9d('0xa4')]);if(!_0x2ab8ea)return this[_0x183d9d('0x13d')]['error'](_0x423355,_0x183d9d('0x123'));this[_0x183d9d('0x13d')][_0x183d9d('0xe2')](util[_0x183d9d('0x150')](_0x183d9d('0x117'),_0x2ab8ea),_0x1c6208[_0x183d9d('0x72')]?_0x1c6208['statusCode']:_0x183d9d('0x3a')),this[_0x183d9d('0x13d')][_0x183d9d('0xe2')](util['format'](_0x183d9d('0x76'),_0x2ab8ea),_0x1c6208[_0x183d9d('0x15a')]?_0x1c6208[_0x183d9d('0x15a')]:'OK');if(_0x1c6208[_0x183d9d('0x1a5')])try{this[_0x183d9d('0x144')](_0x1c6208[_0x183d9d('0x1a5')],_0x2ab8ea);}catch(_0x1fc2ca){logger['error'](util[_0x183d9d('0x150')](_0x183d9d('0x1b7'),_0x2ab8ea));}return this[_0x183d9d('0x13d')]['noop'](util[_0x183d9d('0x150')]('variable\x20%s\x20set',_0x2ab8ea));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x143')]=function(_0x3d89df){const _0x59c927=_0x1aa377;return logger[_0x59c927('0x66')](util[_0x59c927('0x150')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x3d89df['label'])),this[_0x59c927('0x13d')][_0x59c927('0x1b5')](_0x3d89df[_0x59c927('0x10c')][_0x59c927('0x20')](/\s+/g,''),_0x3d89df[_0x59c927('0x2f')]);},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x6')]=function(_0x1f5329){const _0x3809b7=_0x1aa377;return logger['info'](util[_0x3809b7('0x150')](_0x3809b7('0x118'),_0x1f5329[_0x3809b7('0x64')])),this[_0x3809b7('0x13d')][_0x3809b7('0xf6')](_0x1f5329[_0x3809b7('0xc')]['replace'](/\s+/g,''),_0x1f5329['escape_digits']);},AGIVertices['prototype']['sayphonetic']=function(_0x1f6667){const _0x108c55=_0x1aa377;return logger[_0x108c55('0x66')](util[_0x108c55('0x150')](_0x108c55('0x18'),_0x1f6667[_0x108c55('0x64')])),this[_0x108c55('0x13d')][_0x108c55('0x1ae')](_0x1f6667['text'],_0x1f6667[_0x108c55('0x2f')]);},AGIVertices[_0x1aa377('0x179')]['sendMail']=function(_0x5a3513){const _0x4f931b=_0x1aa377;logger[_0x4f931b('0x66')](util[_0x4f931b('0x150')](_0x4f931b('0x26'),_0x5a3513['label']));if(!this[_0x4f931b('0xb2')](_0x5a3513[_0x4f931b('0x1d')]))return this[_0x4f931b('0x13d')][_0x4f931b('0x171')](_0x4f931b('0xbf'));const _0xdaf0df=this[_0x4f931b('0x184')][_0x4f931b('0xfb')](this,_0x5a3513[_0x4f931b('0x1d')]);if(!_0xdaf0df||!_0xdaf0df['Smtp'])return this['channel'][_0x4f931b('0x30')](_0x5a3513,'no\x20mail\x20account\x20found');const _0x2d3caa={'from':util[_0x4f931b('0x150')](_0x4f931b('0x10a'),_0xdaf0df['name'],_0xdaf0df[_0x4f931b('0xab')]||_0xdaf0df['Smtp'][_0x4f931b('0x22')]),'to':_0x5a3513['to']||'','cc':_0x5a3513['cc']||'','bcc':_0x5a3513['bcc']||'','subject':_0x5a3513[_0x4f931b('0xf9')],'html':_0x5a3513[_0x4f931b('0xed')],'text':_0x5a3513[_0x4f931b('0xed')]},_0x316d7c={'tls':{'rejectUnauthorized':![]}};_0xdaf0df[_0x4f931b('0xc0')][_0x4f931b('0xbd')]?_0x316d7c['service']=_0xdaf0df[_0x4f931b('0xc0')][_0x4f931b('0xbd')]:(_0x316d7c[_0x4f931b('0x181')]=_0xdaf0df[_0x4f931b('0xc0')][_0x4f931b('0x181')],_0x316d7c[_0x4f931b('0xe8')]=_0xdaf0df[_0x4f931b('0xc0')][_0x4f931b('0xe8')],_0x316d7c[_0x4f931b('0xd9')]=_0xdaf0df[_0x4f931b('0xc0')]['secure']);_0xdaf0df[_0x4f931b('0xc0')][_0x4f931b('0x48')]&&(_0x316d7c[_0x4f931b('0xe6')]={'user':_0xdaf0df[_0x4f931b('0xc0')][_0x4f931b('0x22')],'pass':_0xdaf0df[_0x4f931b('0xc0')][_0x4f931b('0xbe')]});if(this[_0x4f931b('0xb2')](_0x5a3513[_0x4f931b('0x39')])){}return logger[_0x4f931b('0x19a')](_0x4f931b('0x69'),JSON[_0x4f931b('0xa2')](_0x2d3caa)),this[_0x4f931b('0x134')][_0x4f931b('0xfb')](this,_0x5a3513,_0x5a3513['account_id']),this[_0x4f931b('0x13d')][_0x4f931b('0x171')](util['format'](_0x4f931b('0x2b'),_0xdaf0df[_0x4f931b('0x3f')])),this[_0x4f931b('0x16d')]['sync'](this,_0x316d7c,_0x2d3caa),this[_0x4f931b('0x13d')][_0x4f931b('0x171')](_0x4f931b('0xbb'));},AGIVertices['prototype'][_0x1aa377('0x56')]=function(_0x5540cc){const _0x45b530=_0x1aa377;return logger[_0x45b530('0x66')](util[_0x45b530('0x150')](_0x45b530('0x132'),_0x5540cc['label'])),this[_0x45b530('0x13d')][_0x45b530('0x171')](_0x45b530('0x12f'));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xb4')]=function(_0x2717f8){const _0x3bd62e=_0x1aa377;logger[_0x3bd62e('0x66')](util[_0x3bd62e('0x150')](_0x3bd62e('0x1b0'),_0x2717f8[_0x3bd62e('0x64')]));if(!this[_0x3bd62e('0xb2')](_0x2717f8[_0x3bd62e('0x45')]))return this['channel']['noop'](_0x3bd62e('0xb0'));const _0x3f83a3=this[_0x3bd62e('0x5d')][_0x3bd62e('0xfb')](this,_0x2717f8[_0x3bd62e('0x45')]);if(!_0x3f83a3)return this[_0x3bd62e('0x13d')][_0x3bd62e('0x30')](_0x2717f8,'no\x20sms\x20account\x20found');const _0x28ccb9={'body':_0x2717f8[_0x3bd62e('0x9a')],'phone':_0x2717f8['to']||'','SmsAccountId':_0x3f83a3['id']};return logger[_0x3bd62e('0x19a')]('sendSMS\x20message',JSON[_0x3bd62e('0xa2')](_0x28ccb9)),this['createSquareDetailsReport']['sync'](this,_0x2717f8,_0x2717f8[_0x3bd62e('0x45')]),this[_0x3bd62e('0x13d')]['noop'](util[_0x3bd62e('0x150')](_0x3bd62e('0x157'),_0x3f83a3[_0x3bd62e('0x3f')])),this[_0x3bd62e('0x9e')][_0x3bd62e('0xfb')](this,_0x28ccb9),this['channel']['noop']('Sms\x20message\x20added\x20to\x20outgoing\x20process');},AGIVertices['prototype'][_0x1aa377('0x87')]=function(_0x502c9a){const _0x10ff32=_0x1aa377;logger[_0x10ff32('0x66')](util[_0x10ff32('0x150')](_0x10ff32('0x3b'),_0x502c9a[_0x10ff32('0x64')]));if(!this['isConfigured'](_0x502c9a[_0x10ff32('0xa4')]))return this['channel']['error'](_0x502c9a,_0x10ff32('0x95'));const _0x22f379=this['getVariable']['sync'](this,_0x502c9a['variable_id']);if(!_0x22f379)return this['channel'][_0x10ff32('0x30')](_0x502c9a,'no\x20variable\x20found');return this[_0x10ff32('0x13d')][_0x10ff32('0xe2')](_0x22f379,_0x502c9a[_0x10ff32('0x4b')]);},AGIVertices['prototype']['start']=function(_0x42207b){const _0x4bb173=_0x1aa377;logger[_0x4bb173('0x66')](util['format'](_0x4bb173('0x197'),_0x42207b[_0x4bb173('0x64')])),this[_0x4bb173('0x13d')][_0x4bb173('0x171')](_0x4bb173('0xf0'));if(_0x42207b[_0x4bb173('0xc7')]===_0x4bb173('0x4f'))return this[_0x4bb173('0x13d')][_0x4bb173('0x171')](_0x4bb173('0xc6')),this[_0x4bb173('0x13d')][_0x4bb173('0xc7')]();return this[_0x4bb173('0x13d')][_0x4bb173('0x171')](_0x4bb173('0x11f'));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0x94')]=function(_0x2cc56f){const _0x355e99=_0x1aa377;logger[_0x355e99('0x66')](util[_0x355e99('0x150')](_0x355e99('0xf7'),_0x2cc56f[_0x355e99('0x64')]));if(!this[_0x355e99('0xb2')](_0x2cc56f[_0x355e99('0x13b')]))return this[_0x355e99('0x13d')][_0x355e99('0x30')](_0x2cc56f,_0x355e99('0x4'));const _0x208df7=this[_0x355e99('0x1a6')][_0x355e99('0xfb')](this,_0x2cc56f[_0x355e99('0x13b')]);if(!this[_0x355e99('0xb2')](_0x208df7))return this['channel'][_0x355e99('0x30')](_0x2cc56f,util[_0x355e99('0x150')](_0x355e99('0x170'),_0x2cc56f[_0x355e99('0x13b')]));if(_0x208df7===this[_0x355e99('0x13d')][_0x355e99('0x77')])return this[_0x355e99('0x13d')][_0x355e99('0x30')](_0x2cc56f,_0x355e99('0x7b'));this['createSquareDetailsReport']['sync'](this,_0x2cc56f,_0x208df7);const _0x355307=this['channel'][_0x355e99('0x36')](_0x355e99('0x99'),util['format'](_0x355e99('0x11'),config[_0x355e99('0x67')][_0x355e99('0x181')]||_0x355e99('0x52'),_0x208df7,this[_0x355e99('0x13d')][_0x355e99('0x77')]));if(_0x355307[_0x355e99('0x188')]===-0x1)return _0x355307;return this[_0x355e99('0x13d')][_0x355e99('0x171')](util['format']('Executed\x20command\x20%s\x20%s',_0x355e99('0x99'),_0x208df7));},AGIVertices[_0x1aa377('0x179')]['system']=function(_0x1a120c){const _0x2b83ed=_0x1aa377;logger[_0x2b83ed('0x66')](util[_0x2b83ed('0x150')](_0x2b83ed('0x16e'),_0x1a120c['label']));const _0x4bca63=this['shellCommand'][_0x2b83ed('0xfb')](this,_0x1a120c[_0x2b83ed('0x178')]);this['createSquareDetailsReport'][_0x2b83ed('0xfb')](this,_0x1a120c,_0x1a120c['command']);if(this[_0x2b83ed('0xb2')](_0x1a120c[_0x2b83ed('0xa4')])){const _0x11c975=this[_0x2b83ed('0x111')][_0x2b83ed('0xfb')](this,_0x1a120c[_0x2b83ed('0xa4')]);if(_0x11c975)return this[_0x2b83ed('0x13d')]['setVariable'](_0x11c975,_0x4bca63),this['channel']['noop'](util[_0x2b83ed('0x150')](_0x2b83ed('0x124'),_0x1a120c[_0x2b83ed('0x178')],_0x11c975));}return this['channel'][_0x2b83ed('0x171')](util[_0x2b83ed('0x150')](_0x2b83ed('0x114'),_0x1a120c[_0x2b83ed('0x178')]));},AGIVertices['prototype']['google_cloud_tts']=function(_0x3ef96f){const _0x46e727=_0x1aa377;logger['info'](util[_0x46e727('0x150')](_0x46e727('0x1a'),_0x3ef96f[_0x46e727('0x64')])),_0x3ef96f[_0x46e727('0xed')]=_0x3ef96f[_0x46e727('0xed')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x3ef96f['apiKey']))return this[_0x46e727('0x13d')][_0x46e727('0x171')](_0x46e727('0x65'));if(!this[_0x46e727('0xb2')](_0x3ef96f[_0x46e727('0xed')]))return this[_0x46e727('0x13d')][_0x46e727('0x171')](_0x46e727('0x17f'));this['channel'][_0x46e727('0x171')](util[_0x46e727('0x150')](_0x46e727('0xba'),_0x3ef96f[_0x46e727('0xed')]));const _0x4c3e90=this[_0x46e727('0xdf')][_0x46e727('0xfb')](this,_0x3ef96f);if(_0x4c3e90){this[_0x46e727('0x13d')][_0x46e727('0x171')](util[_0x46e727('0x150')](_0x46e727('0x162'),_0x4c3e90));const _0x24ab90=this[_0x46e727('0x13d')][_0x46e727('0x3d')](_0x4c3e90);try{fs[_0x46e727('0x54')](_0x4c3e90+_0x46e727('0x12d'));}catch(_0xa424da){logger['error'](_0xa424da);}return _0x24ab90;}return this[_0x46e727('0x13d')]['error'](_0x3ef96f,_0x46e727('0x1b2'));},AGIVertices['prototype'][_0x1aa377('0x155')]=function(_0x233216){const _0x4c1a87=_0x1aa377;logger['info'](util[_0x4c1a87('0x150')](_0x4c1a87('0x6c'),_0x233216[_0x4c1a87('0x64')])),_0x233216[_0x4c1a87('0xed')]=_0x233216[_0x4c1a87('0xed')][_0x4c1a87('0x20')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x4c1a87('0xb2')](_0x233216[_0x4c1a87('0xed')]))return this[_0x4c1a87('0x13d')]['noop'](_0x4c1a87('0x17f'));this[_0x4c1a87('0x13d')]['noop'](util['format'](_0x4c1a87('0x5'),_0x233216[_0x4c1a87('0xed')]));const _0x5d7ebe=this['googleTTS'][_0x4c1a87('0xfb')](this,_0x233216);if(_0x5d7ebe){this['channel'][_0x4c1a87('0x171')](util['format'](_0x4c1a87('0x168'),_0x5d7ebe));const _0x1697c3=this[_0x4c1a87('0x13d')][_0x4c1a87('0x3d')](_0x5d7ebe);try{fs[_0x4c1a87('0x54')](_0x5d7ebe+'.wav');}catch(_0x5e019d){logger[_0x4c1a87('0x30')](_0x5e019d);}return _0x1697c3;}return this[_0x4c1a87('0x13d')][_0x4c1a87('0x30')](_0x233216,_0x4c1a87('0x9f'));},AGIVertices[_0x1aa377('0x179')][_0x1aa377('0xa1')]=function(_0x542602){const _0x4c4054=_0x1aa377;logger['info'](util[_0x4c4054('0x150')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x542602[_0x4c4054('0x64')]));if(!this[_0x4c4054('0xb2')](_0x542602[_0x4c4054('0xf4')]))return this[_0x4c4054('0x13d')][_0x4c4054('0x30')](_0x542602,_0x4c4054('0xf'));logger[_0x4c4054('0x66')](util[_0x4c4054('0x150')](_0x4c4054('0x91'),this[_0x4c4054('0x13d')][_0x4c4054('0x156')],_0x542602['findBy']));const _0x2264bc=this[_0x4c4054('0xac')]['sync'](this,_0x542602[_0x4c4054('0xf4')]);return _0x2264bc?(logger['info'](util[_0x4c4054('0x150')](_0x4c4054('0x15d'),this['channel'][_0x4c4054('0x156')],_0x542602['findBy'])),this[_0x4c4054('0x13d')]['noop'](util[_0x4c4054('0x150')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x4c4054('0x13d')][_0x4c4054('0x156')],_0x542602['findBy'])),{'code':0xc8,'result':'success'}):(logger[_0x4c4054('0x66')](util[_0x4c4054('0x150')](_0x4c4054('0x17e'),this[_0x4c4054('0x13d')][_0x4c4054('0x156')],_0x542602[_0x4c4054('0xf4')])),this[_0x4c4054('0x13d')][_0x4c4054('0x171')](util[_0x4c4054('0x150')](_0x4c4054('0x17e'),this[_0x4c4054('0x13d')][_0x4c4054('0x156')],_0x542602[_0x4c4054('0xf4')])),{'code':0xc8,'result':'failure'});},AGIVertices[_0x1aa377('0x179')]['voicemail']=function(_0x2e7dea){const _0x286860=_0x1aa377;logger['info'](util[_0x286860('0x150')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x2e7dea[_0x286860('0x64')]));const _0x331b79=this['channel'][_0x286860('0x36')](_0x286860('0x169'),[_0x2e7dea[_0x286860('0x1aa')],_0x2e7dea[_0x286860('0x5c')]]);if(_0x331b79[_0x286860('0x188')]===-0x1)return _0x331b79;return this[_0x286860('0x13d')][_0x286860('0x171')](util[_0x286860('0x150')]('Executed\x20command\x20%s\x20%s',_0x286860('0x169'),_0x2e7dea[_0x286860('0x1aa')]));},AGIVertices[_0x1aa377('0x179')]['vswitch']=function(_0x350509){const _0x28fb68=_0x1aa377;logger['info'](util['format'](_0x28fb68('0xe3'),_0x350509['label']));if(!this[_0x28fb68('0xb2')](_0x350509['variable_id']))return this[_0x28fb68('0x13d')][_0x28fb68('0x30')](_0x350509,_0x28fb68('0x95'));const _0x581ecd=this[_0x28fb68('0x111')][_0x28fb68('0xfb')](this,_0x350509['variable_id']);if(!_0x581ecd)return this['channel'][_0x28fb68('0x30')](_0x350509,'no\x20variable\x20found');const _0x2e2d35=this['channel'][_0x28fb68('0x111')](_0x581ecd);return{'code':0xc8,'result':_0x2e2d35[_0x28fb68('0x163')]?_0x2e2d35[_0x28fb68('0x163')]:'-'};},String[_0x1aa377('0x179')]['replaceAll']=function(_0x49d40b,_0x508047){const _0x585b7c=_0x1aa377;return this[_0x585b7c('0xcf')](_0x49d40b)['join'](_0x508047);},module[_0x1aa377('0x44')]=AGIVertices; \ No newline at end of file diff --git a/server/services/ami/acw/index.js b/server/services/ami/acw/index.js index 9aa099f..0e8e842 100644 --- a/server/services/ami/acw/index.js +++ b/server/services/ami/acw/index.js @@ -1 +1 @@ -const a1048_0x2ea5=['acw','mandatoryDispositionPause','agents','attended','lodash','isUndefined','acwTimeout','syncAgentConnect','startAcw','info','exports','transfereruniqueid','isNil','[%s][HANGUPATTENDEDTRANSFER:LINKEDID]','moment','interface','diff','seconds','linkedid','saveUnpause','destlinkedid','transfererlinkedid','syncAgentConnectPreview','../ami','name','[TIMER][STOP][AGENT:%s]','Action','[%s][UPDATE][ACWTIME:%s]','syncHangupRequest','update','[%s][UPDATE][ERRORS:%s]','[ACW][syncHangupRequest]\x20%s','ACW','[ACW][syncAgentConnectPreview]\x20%s','updateAcw','syncAgentRingNoAnswer','[%s][BLINDTRANSFER:LINKEDID]','syncAttendedTransfer','savePause','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer','syncBlindTransfer','getAgent','agentringnoanswer','timer','voiceQueues','all','prototype','mandatoryDisposition','format','custom:agentConnectPreview','channels','then','milliseconds','secondtransfereruniqueid','[%s][HANGUP:UNIQUEID]','message','stringify','uniqueid','attendedtransfer','hangup','finally','lastPauseAt','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','catch','syncHangup','hanguprequest','transfertargetuniqueid','agentconnect','bind','../rpc/user','autopause','timers','Auto-Pause','[%s][START][AGENT:%s][QUEUE:%s]','queue','[ACW][syncBlindTransfer]\x20%s','error','origtransfereruniqueid','transfereeuniqueid'];(function(_0x4700e0,_0x2ea5d6){const _0x665ba7=function(_0x2d5abf){while(--_0x2d5abf){_0x4700e0['push'](_0x4700e0['shift']());}};_0x665ba7(++_0x2ea5d6);}(a1048_0x2ea5,0x1ca));const a1048_0x665b=function(_0x4700e0,_0x2ea5d6){_0x4700e0=_0x4700e0-0x0;let _0x665ba7=a1048_0x2ea5[_0x4700e0];return _0x665ba7;};const _0x11d354=a1048_0x665b;'use strict';const _=require(_0x11d354('0x14')),moment=require(_0x11d354('0x1e')),ami=require(_0x11d354('0x27')),logger=require('../../../config/logger')('acw'),RpcUser=require(_0x11d354('0x6')),RpcVoiceAgentReport=require('../rpc/voiceAgentReport');function Acw(_0x2d5abf){const _0x276c16=_0x11d354;this[_0x276c16('0x3c')]=_0x2d5abf[_0x276c16('0x3c')],this[_0x276c16('0x12')]=_0x2d5abf['agents'],this[_0x276c16('0x8')]=_0x2d5abf[_0x276c16('0x8')],this[_0x276c16('0x42')]={},ami['on'](_0x276c16('0x4'),this[_0x276c16('0x17')][_0x276c16('0x5')](this)),ami['on'](_0x276c16('0x2'),this[_0x276c16('0x2c')]['bind'](this)),ami['on'](_0x276c16('0x4b'),this[_0x276c16('0x1')][_0x276c16('0x5')](this)),ami['on'](_0x276c16('0x3a'),this[_0x276c16('0x33')]['bind'](this)),ami['on'](_0x276c16('0x4a'),this['syncAttendedTransfer'][_0x276c16('0x5')](this)),ami['on']('blindtransfer',this[_0x276c16('0x38')][_0x276c16('0x5')](this)),ami['on'](_0x276c16('0x41'),this[_0x276c16('0x26')]['bind'](this));}function getDiff(_0x4d3539){const _0xf82150=_0x11d354,_0x2b6e3e=moment()[_0xf82150('0x44')](0x0),_0x5d4dbb=moment(_0x4d3539)[_0xf82150('0x44')](0x0);return _0x2b6e3e[_0xf82150('0x20')](_0x5d4dbb,_0xf82150('0x21'));}Acw['prototype'][_0x11d354('0x18')]=function(_0x18f524){const _0x5ebb83=_0x11d354;try{const _0x7b2390=this,_0x350c4c=this[_0x5ebb83('0x42')][_0x18f524]['interface'],_0x21b63b=this[_0x5ebb83('0x42')][_0x18f524][_0x5ebb83('0xb')],_0x20b428=this[_0x5ebb83('0x3c')][_0x21b63b];let _0x993f22=![],_0x2e16aa=_0x5ebb83('0x30');_0x20b428['mandatoryDisposition']&&(_0x20b428[_0x5ebb83('0x11')][_0x5ebb83('0x28')]&&(_0x993f22=!![],_0x2e16aa=_0x20b428['mandatoryDispositionPause'][_0x5ebb83('0x28')])),ami[_0x5ebb83('0x2a')]({'action':'QueuePause','interface':_0x350c4c,'paused':!![],'reason':_0x2e16aa})[_0x5ebb83('0x43')](function(){const _0x5b376d=_0x5ebb83;if(_0x7b2390[_0x5b376d('0x12')][_0x350c4c])return RpcUser[_0x5b376d('0x39')](_0x7b2390['agents'][_0x350c4c]['id'])[_0x5b376d('0x43')](function(_0x42b6bd){const _0x293eac=_0x5b376d;if(_0x42b6bd&&!_0x42b6bd['voicePause']){logger['info'](_0x293eac('0xa'),_0x18f524,_0x350c4c,_0x21b63b);const _0x50764f=_0x7b2390['channels'][_0x18f524]['attended']&&_0x7b2390['channels'][_0x18f524][_0x293eac('0x24')]?_0x7b2390[_0x293eac('0x42')][_0x18f524][_0x293eac('0x24')]:_0x18f524;return RpcUser[_0x293eac('0x36')](_0x7b2390[_0x293eac('0x12')][_0x350c4c],_0x2e16aa,_0x50764f)[_0x293eac('0x43')](function(){const _0x63efb0=_0x293eac;!_0x993f22&&(_0x7b2390['timers'][_0x350c4c]={},logger[_0x63efb0('0x19')](_0x63efb0('0x4e'),_0x18f524,_0x7b2390[_0x63efb0('0x3c')][_0x21b63b][_0x63efb0('0x16')],_0x350c4c,_0x21b63b),_0x7b2390[_0x63efb0('0x8')][_0x350c4c][_0x63efb0('0x3b')]=setTimeout(_0x7b2390['stopAcw'][_0x63efb0('0x5')](_0x7b2390,_0x350c4c),_0x7b2390['voiceQueues'][_0x21b63b][_0x63efb0('0x16')]*0x3e8),_0x7b2390[_0x63efb0('0x8')][_0x350c4c][_0x63efb0('0x4d')]=moment()[_0x63efb0('0x40')]('YYYY-MM-DD\x20HH:mm:ss'),_0x7b2390[_0x63efb0('0x8')][_0x350c4c]['uniqueid']=_0x18f524,_0x7b2390['timers'][_0x350c4c][_0x63efb0('0xb')]=_0x21b63b,_0x7b2390[_0x63efb0('0x8')][_0x350c4c][_0x63efb0('0x32')]=function(){const _0x21cab4=_0x63efb0,_0x5e363f=getDiff(_0x7b2390[_0x21cab4('0x8')][_0x350c4c][_0x21cab4('0x4d')]);clearTimeout(_0x7b2390[_0x21cab4('0x8')][_0x350c4c][_0x21cab4('0x3b')]),_0x7b2390[_0x21cab4('0x8')][_0x350c4c][_0x21cab4('0x3b')]=![],RpcVoiceAgentReport[_0x21cab4('0x2d')]({'acwtime':_0x5e363f},_0x7b2390[_0x21cab4('0x8')][_0x350c4c][_0x21cab4('0x49')],_0x350c4c)[_0x21cab4('0x43')](function(_0x3b417b){const _0xc5c76c=_0x21cab4;logger[_0xc5c76c('0x19')](_0xc5c76c('0x2b'),_0x18f524,_0x5e363f,_0x3b417b);})[_0x21cab4('0x0')](function(_0x24d440){const _0xc20dcc=_0x21cab4;logger[_0xc20dcc('0xd')](_0xc20dcc('0x2e'),_0x18f524,_0x24d440);}),delete _0x7b2390[_0x21cab4('0x8')][_0x350c4c];});});}else logger['info']('[%s][INPAUSE][AGENT:%s][QUEUE:%s]',_0x18f524,_0x350c4c,_0x21b63b);});})['catch'](function(){const _0x4842ce=_0x5ebb83;logger['error']('[%s][TIMER:%s][AGENT:%s][QUEUE:%s]',_0x18f524,_0x7b2390['voiceQueues'][_0x21b63b][_0x4842ce('0x16')],_0x350c4c,_0x21b63b);})[_0x5ebb83('0x4c')](function(){delete _0x7b2390['channels'][_0x18f524];});}catch(_0x20007b){logger[_0x5ebb83('0xd')]('[ACW][START]\x20%s',_0x20007b[_0x5ebb83('0x47')]);}},Acw['prototype']['stopAcw']=function(_0x167092){const _0x41b650=_0x11d354;try{const _0x2db3de=this;if(_0x2db3de[_0x41b650('0x8')][_0x167092]){_0x2db3de[_0x41b650('0x8')][_0x167092][_0x41b650('0x3b')]=![];const _0x3fe271=_0x2db3de[_0x41b650('0x8')][_0x167092][_0x41b650('0x49')],_0x24d353=_0x2db3de['timers'][_0x167092]['queue'],_0x492b56=_0x2db3de[_0x41b650('0x3c')][_0x24d353][_0x41b650('0x16')];logger[_0x41b650('0x19')](_0x41b650('0x29'),_0x167092),RpcUser[_0x41b650('0x23')](this['agents'][_0x167092]),RpcVoiceAgentReport[_0x41b650('0x2d')]({'acwtime':_0x492b56,'agentacw':!![]},_0x3fe271,_0x167092)[_0x41b650('0x43')](function(_0x332591){const _0x855ecb=_0x41b650;logger[_0x855ecb('0x19')]('[%s][UPDATE][ACWTIME:%s]',_0x3fe271,_0x492b56,_0x332591);})[_0x41b650('0x0')](function(_0x27f208){const _0x8dcfd=_0x41b650;logger['error'](_0x8dcfd('0x2e'),_0x3fe271,_0x27f208);});}else logger[_0x41b650('0xd')](_0x41b650('0x37'),_0x167092),_0x2db3de[_0x41b650('0x8')]&&logger['info']('[ACW][TIMERS]',JSON[_0x41b650('0x48')](_0x2db3de[_0x41b650('0x8')]));}catch(_0x48bad9){logger[_0x41b650('0xd')]('[ACW][STOP]\x20%s',_0x48bad9[_0x41b650('0x47')]);}},Acw[_0x11d354('0x3e')][_0x11d354('0x17')]=function(_0x3766a4){const _0x215394=_0x11d354;try{this[_0x215394('0x3c')][_0x3766a4['queue']]&&(this[_0x215394('0x3c')][_0x3766a4['queue']][_0x215394('0x10')]||this[_0x215394('0x3c')][_0x3766a4[_0x215394('0xb')]][_0x215394('0x3f')])&&(this[_0x215394('0x12')][_0x3766a4[_0x215394('0x1f')]]&&(this[_0x215394('0x42')][_0x3766a4['uniqueid']]={'queue':_0x3766a4[_0x215394('0xb')],'interface':_0x3766a4[_0x215394('0x1f')],'destlinkedid':_0x3766a4[_0x215394('0x24')]}));}catch(_0x1b9c69){logger[_0x215394('0xd')]('[ACW][syncAgentConnect]\x20%s',_0x1b9c69[_0x215394('0x47')]);}},Acw[_0x11d354('0x3e')][_0x11d354('0x26')]=function(_0x1b81dc){const _0x49b886=_0x11d354;try{this[_0x49b886('0x3c')][_0x1b81dc['queue']]&&(this[_0x49b886('0x3c')][_0x1b81dc[_0x49b886('0xb')]][_0x49b886('0x10')]||this['voiceQueues'][_0x1b81dc[_0x49b886('0xb')]]['mandatoryDisposition'])&&(this[_0x49b886('0x12')][_0x1b81dc['interface']]&&(this[_0x49b886('0x42')][_0x1b81dc['uniqueid']]={'queue':_0x1b81dc['queue'],'interface':_0x1b81dc[_0x49b886('0x1f')]}));}catch(_0x4ab3e7){logger['error'](_0x49b886('0x31'),_0x4ab3e7['message']);}},Acw[_0x11d354('0x3e')][_0x11d354('0x2c')]=function(_0x381cc2){const _0x3fd3a9=_0x11d354;try{if(this[_0x3fd3a9('0x42')][_0x381cc2[_0x3fd3a9('0x49')]]&&_['isUndefined'](this[_0x3fd3a9('0x42')][_0x381cc2[_0x3fd3a9('0x49')]][_0x3fd3a9('0x13')]))logger[_0x3fd3a9('0x19')](_0x3fd3a9('0x46'),_0x381cc2['uniqueid']),this[_0x3fd3a9('0x18')](_0x381cc2[_0x3fd3a9('0x49')]);else this[_0x3fd3a9('0x42')][_0x381cc2[_0x3fd3a9('0x22')]]&&_[_0x3fd3a9('0x15')](this['channels'][_0x381cc2[_0x3fd3a9('0x22')]][_0x3fd3a9('0x13')])&&(logger[_0x3fd3a9('0x19')]('[%s][HANGUP:LINKEDID]',_0x381cc2[_0x3fd3a9('0x22')]),this[_0x3fd3a9('0x18')](_0x381cc2[_0x3fd3a9('0x22')]));}catch(_0x4b58fc){logger[_0x3fd3a9('0xd')](_0x3fd3a9('0x2f'),_0x4b58fc[_0x3fd3a9('0x47')]);}},Acw[_0x11d354('0x3e')][_0x11d354('0x1')]=function(_0x188ef8){const _0x451925=_0x11d354;try{if(this['channels'][_0x188ef8[_0x451925('0x49')]]&&this['channels'][_0x188ef8[_0x451925('0x49')]][_0x451925('0x13')])logger[_0x451925('0x19')]('[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]',_0x188ef8[_0x451925('0x49')]),this[_0x451925('0x18')](_0x188ef8[_0x451925('0x49')]);else this['channels'][_0x188ef8[_0x451925('0x22')]]&&this[_0x451925('0x42')][_0x188ef8[_0x451925('0x22')]][_0x451925('0x13')]&&(logger[_0x451925('0x19')](_0x451925('0x1d'),_0x188ef8[_0x451925('0x22')]),this['startAcw'](_0x188ef8['linkedid']));}catch(_0x45c1cd){logger[_0x451925('0xd')]('[ACW][syncHangup]\x20%s',_0x45c1cd[_0x451925('0x47')]);}},Acw[_0x11d354('0x3e')][_0x11d354('0x35')]=function(_0x2a58a8){const _0x210e94=_0x11d354;try{if(!_[_0x210e94('0x1c')](this[_0x210e94('0x42')][_0x2a58a8['transfereeuniqueid']]))this['startAcw'](_0x2a58a8[_0x210e94('0xf')]),this[_0x210e94('0x42')][_0x2a58a8[_0x210e94('0x45')]]&&(this['channels'][_0x2a58a8[_0x210e94('0x45')]][_0x210e94('0x13')]=!![],this['channels'][_0x2a58a8['transfertargetuniqueid']]=this[_0x210e94('0x42')][_0x2a58a8['secondtransfereruniqueid']],delete this[_0x210e94('0x42')][_0x2a58a8[_0x210e94('0x45')]]);else!_[_0x210e94('0x1c')](this[_0x210e94('0x42')][_0x2a58a8[_0x210e94('0x3')]])&&(this[_0x210e94('0x18')](_0x2a58a8[_0x210e94('0x3')]),this['channels'][_0x2a58a8[_0x210e94('0xe')]]&&(this[_0x210e94('0x42')][_0x2a58a8[_0x210e94('0xe')]][_0x210e94('0x13')]=!![],this[_0x210e94('0x42')][_0x2a58a8[_0x210e94('0xf')]]=this['channels'][_0x2a58a8[_0x210e94('0xe')]],delete this[_0x210e94('0x42')][_0x2a58a8[_0x210e94('0xe')]]));}catch(_0x36bca8){logger['error']('[ACW][syncAttendedTransfer]\x20%s',_0x36bca8[_0x210e94('0x47')]);}},Acw['prototype'][_0x11d354('0x38')]=function(_0x17c21f){const _0x12c3d3=_0x11d354;try{if(this['channels'][_0x17c21f[_0x12c3d3('0x1b')]])logger[_0x12c3d3('0x19')]('[%s][BLINDTRANSFER:UNIQUEID]',JSON[_0x12c3d3('0x48')](_0x17c21f[_0x12c3d3('0x1b')])),this[_0x12c3d3('0x18')](_0x17c21f['transfereruniqueid']);else this[_0x12c3d3('0x42')][_0x17c21f['transfererlinkedid']]&&(logger[_0x12c3d3('0x19')](_0x12c3d3('0x34'),JSON[_0x12c3d3('0x48')](_0x17c21f[_0x12c3d3('0x25')])),this[_0x12c3d3('0x18')](_0x17c21f[_0x12c3d3('0x25')]));}catch(_0x54f245){logger[_0x12c3d3('0xd')](_0x12c3d3('0xc'),_0x54f245[_0x12c3d3('0x47')]);}},Acw[_0x11d354('0x3e')][_0x11d354('0x33')]=function(_0x37ed7c){const _0x31aeb1=_0x11d354;try{if(this[_0x31aeb1('0x3c')][_0x37ed7c[_0x31aeb1('0xb')]]&&this['voiceQueues'][_0x37ed7c[_0x31aeb1('0xb')]][_0x31aeb1('0x7')]===_0x31aeb1('0x3d')){if(this['agents'][_0x37ed7c[_0x31aeb1('0x1f')]])return logger[_0x31aeb1('0x19')]('[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]',_0x37ed7c['uniqueid'],_0x37ed7c[_0x31aeb1('0x1f')],_0x37ed7c['queue']),RpcUser['savePause'](this[_0x31aeb1('0x12')][_0x37ed7c['interface']],_0x31aeb1('0x9'),_0x37ed7c[_0x31aeb1('0x49')]);}}catch(_0x542fbc){logger[_0x31aeb1('0xd')]('[ACW][syncAgentRingNoAnswer]\x20%s',_0x542fbc[_0x31aeb1('0x47')]);}},module[_0x11d354('0x1a')]=Acw; \ No newline at end of file +const a1048_0x2a3b=['voicePause','origtransfereruniqueid','custom:agentConnectPreview','agents','mandatoryDisposition','timers','syncAgentConnectPreview','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer','info','updateAcw','agentringnoanswer','isUndefined','linkedid','[%s][START][AGENT:%s][QUEUE:%s]','[%s][UPDATE][ACWTIME:%s]','ACW','format','transfertargetuniqueid','lastPauseAt','hangup','[ACW][syncAgentConnect]\x20%s','catch','savePause','transfereeuniqueid','lodash','isNil','QueuePause','update','[ACW][syncHangupRequest]\x20%s','syncHangupRequest','Auto-Pause','syncAttendedTransfer','hanguprequest','[%s][INPAUSE][AGENT:%s][QUEUE:%s]','milliseconds','[ACW][syncAttendedTransfer]\x20%s','syncHangup','[ACW][syncAgentConnectPreview]\x20%s','mandatoryDispositionPause','then','interface','[%s][UPDATE][ERRORS:%s]','destlinkedid','secondtransfereruniqueid','agentconnect','attended','Action','bind','transfereruniqueid','[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]','error','diff','startAcw','stopAcw','[TIMER][STOP][AGENT:%s]','[%s][BLINDTRANSFER:LINKEDID]','channels','stringify','../rpc/user','syncAgentConnect','[ACW][STOP]\x20%s','all','[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]','saveUnpause','queue','uniqueid','../ami','syncAgentRingNoAnswer','blindtransfer','autopause','acwTimeout','voiceQueues','timer','message','[ACW][TIMERS]','[%s][HANGUP:LINKEDID]','[ACW][syncAgentRingNoAnswer]\x20%s','YYYY-MM-DD\x20HH:mm:ss','transfererlinkedid','[ACW][syncBlindTransfer]\x20%s','moment','[%s][HANGUP:UNIQUEID]','prototype'];(function(_0x66212d,_0x2a3b66){const _0x50f615=function(_0x4d66f0){while(--_0x4d66f0){_0x66212d['push'](_0x66212d['shift']());}};_0x50f615(++_0x2a3b66);}(a1048_0x2a3b,0x9e));const a1048_0x50f6=function(_0x66212d,_0x2a3b66){_0x66212d=_0x66212d-0x0;let _0x50f615=a1048_0x2a3b[_0x66212d];return _0x50f615;};const _0x97380c=a1048_0x50f6;'use strict';const _=require(_0x97380c('0x20')),moment=require(_0x97380c('0x5')),ami=require(_0x97380c('0x4a')),logger=require('../../../config/logger')('acw'),RpcUser=require(_0x97380c('0x42')),RpcVoiceAgentReport=require('../rpc/voiceAgentReport');function Acw(_0x4d66f0){const _0xccaf16=_0x97380c;this[_0xccaf16('0x4f')]=_0x4d66f0[_0xccaf16('0x4f')],this[_0xccaf16('0xb')]=_0x4d66f0[_0xccaf16('0xb')],this[_0xccaf16('0xd')]=_0x4d66f0[_0xccaf16('0xd')],this['channels']={},ami['on'](_0xccaf16('0x34'),this[_0xccaf16('0x43')][_0xccaf16('0x37')](this)),ami['on'](_0xccaf16('0x28'),this[_0xccaf16('0x25')][_0xccaf16('0x37')](this)),ami['on'](_0xccaf16('0x1b'),this[_0xccaf16('0x2c')][_0xccaf16('0x37')](this)),ami['on'](_0xccaf16('0x12'),this[_0xccaf16('0x4b')]['bind'](this)),ami['on']('attendedtransfer',this[_0xccaf16('0x27')][_0xccaf16('0x37')](this)),ami['on'](_0xccaf16('0x4c'),this['syncBlindTransfer'][_0xccaf16('0x37')](this)),ami['on'](_0xccaf16('0xa'),this['syncAgentConnectPreview'][_0xccaf16('0x37')](this));}function getDiff(_0x10192d){const _0x416125=_0x97380c,_0x5ca3db=moment()[_0x416125('0x2a')](0x0),_0xe1f156=moment(_0x10192d)[_0x416125('0x2a')](0x0);return _0x5ca3db[_0x416125('0x3b')](_0xe1f156,'seconds');}Acw[_0x97380c('0x7')][_0x97380c('0x3c')]=function(_0x31b4e7){const _0x18bb14=_0x97380c;try{const _0x57f28e=this,_0x5a4c1b=this[_0x18bb14('0x40')][_0x31b4e7][_0x18bb14('0x30')],_0xd35129=this[_0x18bb14('0x40')][_0x31b4e7]['queue'],_0x28f935=this[_0x18bb14('0x4f')][_0xd35129];let _0x390a86=![],_0x168190=_0x18bb14('0x17');_0x28f935[_0x18bb14('0xc')]&&(_0x28f935['mandatoryDispositionPause']['name']&&(_0x390a86=!![],_0x168190=_0x28f935[_0x18bb14('0x2e')]['name'])),ami[_0x18bb14('0x36')]({'action':_0x18bb14('0x22'),'interface':_0x5a4c1b,'paused':!![],'reason':_0x168190})[_0x18bb14('0x2f')](function(){const _0x1111c7=_0x18bb14;if(_0x57f28e[_0x1111c7('0xb')][_0x5a4c1b])return RpcUser['getAgent'](_0x57f28e['agents'][_0x5a4c1b]['id'])[_0x1111c7('0x2f')](function(_0xc71d32){const _0x20a0f4=_0x1111c7;if(_0xc71d32&&!_0xc71d32[_0x20a0f4('0x8')]){logger[_0x20a0f4('0x10')](_0x20a0f4('0x15'),_0x31b4e7,_0x5a4c1b,_0xd35129);const _0x5c314f=_0x57f28e[_0x20a0f4('0x40')][_0x31b4e7][_0x20a0f4('0x35')]&&_0x57f28e[_0x20a0f4('0x40')][_0x31b4e7]['destlinkedid']?_0x57f28e['channels'][_0x31b4e7][_0x20a0f4('0x32')]:_0x31b4e7;return RpcUser[_0x20a0f4('0x1e')](_0x57f28e[_0x20a0f4('0xb')][_0x5a4c1b],_0x168190,_0x5c314f)[_0x20a0f4('0x2f')](function(){const _0x16bac4=_0x20a0f4;!_0x390a86&&(_0x57f28e[_0x16bac4('0xd')][_0x5a4c1b]={},logger[_0x16bac4('0x10')]('[%s][TIMER:%s][AGENT:%s][QUEUE:%s]',_0x31b4e7,_0x57f28e[_0x16bac4('0x4f')][_0xd35129][_0x16bac4('0x4e')],_0x5a4c1b,_0xd35129),_0x57f28e[_0x16bac4('0xd')][_0x5a4c1b]['timer']=setTimeout(_0x57f28e[_0x16bac4('0x3d')][_0x16bac4('0x37')](_0x57f28e,_0x5a4c1b),_0x57f28e[_0x16bac4('0x4f')][_0xd35129][_0x16bac4('0x4e')]*0x3e8),_0x57f28e[_0x16bac4('0xd')][_0x5a4c1b][_0x16bac4('0x1a')]=moment()[_0x16bac4('0x18')](_0x16bac4('0x2')),_0x57f28e[_0x16bac4('0xd')][_0x5a4c1b][_0x16bac4('0x49')]=_0x31b4e7,_0x57f28e[_0x16bac4('0xd')][_0x5a4c1b][_0x16bac4('0x48')]=_0xd35129,_0x57f28e['timers'][_0x5a4c1b][_0x16bac4('0x11')]=function(){const _0x2aed3f=_0x16bac4,_0x52cdeb=getDiff(_0x57f28e[_0x2aed3f('0xd')][_0x5a4c1b][_0x2aed3f('0x1a')]);clearTimeout(_0x57f28e[_0x2aed3f('0xd')][_0x5a4c1b][_0x2aed3f('0x50')]),_0x57f28e[_0x2aed3f('0xd')][_0x5a4c1b][_0x2aed3f('0x50')]=![],RpcVoiceAgentReport[_0x2aed3f('0x23')]({'acwtime':_0x52cdeb},_0x57f28e[_0x2aed3f('0xd')][_0x5a4c1b][_0x2aed3f('0x49')],_0x5a4c1b)[_0x2aed3f('0x2f')](function(_0xded7e){const _0x40c9fe=_0x2aed3f;logger[_0x40c9fe('0x10')](_0x40c9fe('0x16'),_0x31b4e7,_0x52cdeb,_0xded7e);})['catch'](function(_0x56aafa){const _0x326f25=_0x2aed3f;logger[_0x326f25('0x3a')](_0x326f25('0x31'),_0x31b4e7,_0x56aafa);}),delete _0x57f28e['timers'][_0x5a4c1b];});});}else logger[_0x20a0f4('0x10')](_0x20a0f4('0x29'),_0x31b4e7,_0x5a4c1b,_0xd35129);});})['catch'](function(){const _0x5da9df=_0x18bb14;logger[_0x5da9df('0x3a')]('[%s][TIMER:%s][AGENT:%s][QUEUE:%s]',_0x31b4e7,_0x57f28e[_0x5da9df('0x4f')][_0xd35129][_0x5da9df('0x4e')],_0x5a4c1b,_0xd35129);})['finally'](function(){const _0x300160=_0x18bb14;delete _0x57f28e[_0x300160('0x40')][_0x31b4e7];});}catch(_0x2215cc){logger[_0x18bb14('0x3a')]('[ACW][START]\x20%s',_0x2215cc[_0x18bb14('0x51')]);}},Acw[_0x97380c('0x7')][_0x97380c('0x3d')]=function(_0x1c9db3){const _0x24b41b=_0x97380c;try{const _0x1c0670=this;if(_0x1c0670[_0x24b41b('0xd')][_0x1c9db3]){_0x1c0670['timers'][_0x1c9db3][_0x24b41b('0x50')]=![];const _0x4873bf=_0x1c0670[_0x24b41b('0xd')][_0x1c9db3]['uniqueid'],_0x155975=_0x1c0670['timers'][_0x1c9db3][_0x24b41b('0x48')],_0x1142d5=_0x1c0670['voiceQueues'][_0x155975][_0x24b41b('0x4e')];logger[_0x24b41b('0x10')](_0x24b41b('0x3e'),_0x1c9db3),RpcUser[_0x24b41b('0x47')](this[_0x24b41b('0xb')][_0x1c9db3]),RpcVoiceAgentReport[_0x24b41b('0x23')]({'acwtime':_0x1142d5,'agentacw':!![]},_0x4873bf,_0x1c9db3)[_0x24b41b('0x2f')](function(_0x34bc0e){const _0x491540=_0x24b41b;logger[_0x491540('0x10')](_0x491540('0x16'),_0x4873bf,_0x1142d5,_0x34bc0e);})[_0x24b41b('0x1d')](function(_0x142369){const _0x50b693=_0x24b41b;logger[_0x50b693('0x3a')]('[%s][UPDATE][ERRORS:%s]',_0x4873bf,_0x142369);});}else logger[_0x24b41b('0x3a')](_0x24b41b('0xf'),_0x1c9db3),_0x1c0670[_0x24b41b('0xd')]&&logger[_0x24b41b('0x10')](_0x24b41b('0x52'),JSON[_0x24b41b('0x41')](_0x1c0670[_0x24b41b('0xd')]));}catch(_0x11eeda){logger[_0x24b41b('0x3a')](_0x24b41b('0x44'),_0x11eeda[_0x24b41b('0x51')]);}},Acw['prototype'][_0x97380c('0x43')]=function(_0x5dd4b4){const _0x572779=_0x97380c;try{this['voiceQueues'][_0x5dd4b4[_0x572779('0x48')]]&&(this[_0x572779('0x4f')][_0x5dd4b4[_0x572779('0x48')]]['acw']||this[_0x572779('0x4f')][_0x5dd4b4['queue']][_0x572779('0xc')])&&(this[_0x572779('0xb')][_0x5dd4b4[_0x572779('0x30')]]&&(this[_0x572779('0x40')][_0x5dd4b4[_0x572779('0x49')]]={'queue':_0x5dd4b4[_0x572779('0x48')],'interface':_0x5dd4b4[_0x572779('0x30')],'destlinkedid':_0x5dd4b4['destlinkedid']}));}catch(_0x19a12d){logger[_0x572779('0x3a')](_0x572779('0x1c'),_0x19a12d['message']);}},Acw[_0x97380c('0x7')][_0x97380c('0xe')]=function(_0x2b58f5){const _0x15ad9e=_0x97380c;try{this[_0x15ad9e('0x4f')][_0x2b58f5[_0x15ad9e('0x48')]]&&(this['voiceQueues'][_0x2b58f5[_0x15ad9e('0x48')]]['acw']||this['voiceQueues'][_0x2b58f5[_0x15ad9e('0x48')]][_0x15ad9e('0xc')])&&(this[_0x15ad9e('0xb')][_0x2b58f5['interface']]&&(this[_0x15ad9e('0x40')][_0x2b58f5[_0x15ad9e('0x49')]]={'queue':_0x2b58f5[_0x15ad9e('0x48')],'interface':_0x2b58f5[_0x15ad9e('0x30')]}));}catch(_0x10c300){logger[_0x15ad9e('0x3a')](_0x15ad9e('0x2d'),_0x10c300[_0x15ad9e('0x51')]);}},Acw['prototype']['syncHangupRequest']=function(_0x436c92){const _0x4970ec=_0x97380c;try{if(this[_0x4970ec('0x40')][_0x436c92[_0x4970ec('0x49')]]&&_[_0x4970ec('0x13')](this[_0x4970ec('0x40')][_0x436c92[_0x4970ec('0x49')]][_0x4970ec('0x35')]))logger[_0x4970ec('0x10')](_0x4970ec('0x6'),_0x436c92['uniqueid']),this[_0x4970ec('0x3c')](_0x436c92[_0x4970ec('0x49')]);else this['channels'][_0x436c92[_0x4970ec('0x14')]]&&_[_0x4970ec('0x13')](this['channels'][_0x436c92[_0x4970ec('0x14')]]['attended'])&&(logger[_0x4970ec('0x10')](_0x4970ec('0x0'),_0x436c92[_0x4970ec('0x14')]),this[_0x4970ec('0x3c')](_0x436c92[_0x4970ec('0x14')]));}catch(_0x2020e6){logger['error'](_0x4970ec('0x24'),_0x2020e6['message']);}},Acw[_0x97380c('0x7')][_0x97380c('0x2c')]=function(_0x196bec){const _0x326c6c=_0x97380c;try{if(this[_0x326c6c('0x40')][_0x196bec[_0x326c6c('0x49')]]&&this[_0x326c6c('0x40')][_0x196bec[_0x326c6c('0x49')]]['attended'])logger[_0x326c6c('0x10')](_0x326c6c('0x46'),_0x196bec[_0x326c6c('0x49')]),this[_0x326c6c('0x3c')](_0x196bec[_0x326c6c('0x49')]);else this[_0x326c6c('0x40')][_0x196bec[_0x326c6c('0x14')]]&&this[_0x326c6c('0x40')][_0x196bec[_0x326c6c('0x14')]][_0x326c6c('0x35')]&&(logger['info']('[%s][HANGUPATTENDEDTRANSFER:LINKEDID]',_0x196bec[_0x326c6c('0x14')]),this['startAcw'](_0x196bec['linkedid']));}catch(_0x274170){logger['error']('[ACW][syncHangup]\x20%s',_0x274170[_0x326c6c('0x51')]);}},Acw[_0x97380c('0x7')][_0x97380c('0x27')]=function(_0x5771c0){const _0x163ea3=_0x97380c;try{if(!_['isNil'](this[_0x163ea3('0x40')][_0x5771c0[_0x163ea3('0x1f')]]))this[_0x163ea3('0x3c')](_0x5771c0['transfereeuniqueid']),this[_0x163ea3('0x40')][_0x5771c0[_0x163ea3('0x33')]]&&(this[_0x163ea3('0x40')][_0x5771c0[_0x163ea3('0x33')]]['attended']=!![],this[_0x163ea3('0x40')][_0x5771c0[_0x163ea3('0x19')]]=this[_0x163ea3('0x40')][_0x5771c0[_0x163ea3('0x33')]],delete this['channels'][_0x5771c0[_0x163ea3('0x33')]]);else!_[_0x163ea3('0x21')](this[_0x163ea3('0x40')][_0x5771c0[_0x163ea3('0x19')]])&&(this[_0x163ea3('0x3c')](_0x5771c0[_0x163ea3('0x19')]),this['channels'][_0x5771c0[_0x163ea3('0x9')]]&&(this[_0x163ea3('0x40')][_0x5771c0['origtransfereruniqueid']][_0x163ea3('0x35')]=!![],this[_0x163ea3('0x40')][_0x5771c0[_0x163ea3('0x1f')]]=this[_0x163ea3('0x40')][_0x5771c0['origtransfereruniqueid']],delete this['channels'][_0x5771c0['origtransfereruniqueid']]));}catch(_0xd52c20){logger[_0x163ea3('0x3a')](_0x163ea3('0x2b'),_0xd52c20[_0x163ea3('0x51')]);}},Acw[_0x97380c('0x7')]['syncBlindTransfer']=function(_0x17ba1b){const _0x541753=_0x97380c;try{if(this['channels'][_0x17ba1b[_0x541753('0x38')]])logger[_0x541753('0x10')]('[%s][BLINDTRANSFER:UNIQUEID]',JSON[_0x541753('0x41')](_0x17ba1b['transfereruniqueid'])),this[_0x541753('0x3c')](_0x17ba1b[_0x541753('0x38')]);else this['channels'][_0x17ba1b['transfererlinkedid']]&&(logger['info'](_0x541753('0x3f'),JSON['stringify'](_0x17ba1b[_0x541753('0x3')])),this[_0x541753('0x3c')](_0x17ba1b[_0x541753('0x3')]));}catch(_0x5dc9e1){logger['error'](_0x541753('0x4'),_0x5dc9e1['message']);}},Acw[_0x97380c('0x7')][_0x97380c('0x4b')]=function(_0x40e375){const _0x44e9ce=_0x97380c;try{if(this[_0x44e9ce('0x4f')][_0x40e375[_0x44e9ce('0x48')]]&&this[_0x44e9ce('0x4f')][_0x40e375[_0x44e9ce('0x48')]][_0x44e9ce('0x4d')]===_0x44e9ce('0x45')){if(this[_0x44e9ce('0xb')][_0x40e375['interface']])return logger[_0x44e9ce('0x10')](_0x44e9ce('0x39'),_0x40e375[_0x44e9ce('0x49')],_0x40e375[_0x44e9ce('0x30')],_0x40e375[_0x44e9ce('0x48')]),RpcUser['savePause'](this[_0x44e9ce('0xb')][_0x40e375['interface']],_0x44e9ce('0x26'),_0x40e375[_0x44e9ce('0x49')]);}}catch(_0x2342ff){logger[_0x44e9ce('0x3a')](_0x44e9ce('0x1'),_0x2342ff['message']);}},module['exports']=Acw; \ No newline at end of file diff --git a/server/services/ami/ami.js b/server/services/ami/ami.js index cfd2a12..c3d1b39 100644 --- a/server/services/ami/ami.js +++ b/server/services/ami/ami.js @@ -1 +1 @@ -const a1049_0x43f6=['actionQueueSummary','shutdown','inspect','username','Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s','../../config/logger','asterisk-manager','actionSipShowRegistry','promisify','actionSipPeerStatus','then','exports','sipshowregistry','coreshowchannels','Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s','sippeerstatus','error','catch','Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s','format','queuesummary','close','Action','info','action','keepConnected','actionCoreShowChannels','port','ami','actionDeviceStateList','fullybooted','once','asterisk'];(function(_0x3718f5,_0x43f6c4){const _0x55a0a9=function(_0x3bb4d4){while(--_0x3bb4d4){_0x3718f5['push'](_0x3718f5['shift']());}};_0x55a0a9(++_0x43f6c4);}(a1049_0x43f6,0xea));const a1049_0x55a0=function(_0x3718f5,_0x43f6c4){_0x3718f5=_0x3718f5-0x0;let _0x55a0a9=a1049_0x43f6[_0x3718f5];return _0x55a0a9;};const _0x1980e2=a1049_0x55a0;'use strict';const Manager=require(_0x1980e2('0x3')),util=require('util'),logger=require(_0x1980e2('0x2'))(_0x1980e2('0x19')),config=require('../../config/environment'),ami=new Manager(config[_0x1980e2('0x1d')]['port'],config[_0x1980e2('0x1d')]['ip'],config[_0x1980e2('0x1d')][_0x1980e2('0x0')],config[_0x1980e2('0x1d')]['password'],!![]);ami[_0x1980e2('0x16')](),ami[_0x1980e2('0x13')]=util[_0x1980e2('0x5')](ami[_0x1980e2('0x15')]);function error(_0x3bb4d4){const _0x369fee=_0x1980e2;logger[_0x369fee('0xd')](util['format']('Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s',config[_0x369fee('0x1d')][_0x369fee('0x0')],config[_0x369fee('0x1d')]['ip'],config[_0x369fee('0x1d')]['port'],util[_0x369fee('0x20')](_0x3bb4d4,![],null)));}function close(){const _0x575690=_0x1980e2;logger[_0x575690('0xd')](util[_0x575690('0x10')](_0x575690('0x1'),config[_0x575690('0x1d')][_0x575690('0x0')],config[_0x575690('0x1d')]['ip'],config[_0x575690('0x1d')][_0x575690('0x18')]));}ami['actionSipShowRegistry']=function(){return function(){const _0x4b6b3d=a1049_0x55a0;return ami[_0x4b6b3d('0x13')]({'action':_0x4b6b3d('0x9')});};},ami[_0x1980e2('0x1a')]=function(){return function(){const _0x40ba4d=a1049_0x55a0;return ami[_0x40ba4d('0x13')]({'action':'devicestatelist'});};},ami[_0x1980e2('0x6')]=function(){return function(){const _0x6c6294=a1049_0x55a0;return ami[_0x6c6294('0x13')]({'action':_0x6c6294('0xc')});};},ami[_0x1980e2('0x1e')]=function(){return function(){const _0x24a1e3=a1049_0x55a0;return ami[_0x24a1e3('0x13')]({'action':_0x24a1e3('0x11')});};},ami['actionCoreShowChannels']=function(){return function(){const _0x876024=a1049_0x55a0;return ami[_0x876024('0x13')]({'action':_0x876024('0xa')});};};function connect(){const _0xb067f0=_0x1980e2;logger[_0xb067f0('0x14')](util[_0xb067f0('0x10')](_0xb067f0('0xb'),config['asterisk'][_0xb067f0('0x0')],config['asterisk']['ip'],config[_0xb067f0('0x1d')][_0xb067f0('0x18')])),ami['once'](_0xb067f0('0xd'),error),ami[_0xb067f0('0x1c')](_0xb067f0('0x12'),close);}ami['on']('connect',connect),ami['on'](_0x1980e2('0x1f'),function(_0x29119f){const _0x1d0164=_0x1980e2;logger[_0x1d0164('0x14')](util['format'](_0x1d0164('0xf'),config['asterisk'][_0x1d0164('0x0')],config[_0x1d0164('0x1d')]['ip'],config['asterisk'][_0x1d0164('0x18')],util[_0x1d0164('0x20')](_0x29119f,![],null)));}),ami['on'](_0x1980e2('0x1b'),function(){const _0x5d8d4b=_0x1980e2;return logger['info'](util['format']('Fullybooted\x20\x22%s\x22\x20to\x20%s:%s',config[_0x5d8d4b('0x1d')][_0x5d8d4b('0x0')],config[_0x5d8d4b('0x1d')]['ip'],config[_0x5d8d4b('0x1d')][_0x5d8d4b('0x18')])),Promise['resolve']()[_0x5d8d4b('0x7')](ami[_0x5d8d4b('0x4')]())['then'](ami[_0x5d8d4b('0x1a')]())[_0x5d8d4b('0x7')](ami[_0x5d8d4b('0x6')]())['then'](ami[_0x5d8d4b('0x1e')]())['then'](ami[_0x5d8d4b('0x17')]())[_0x5d8d4b('0xe')](function(_0x250ee6){console['log'](_0x250ee6);});}),ami[_0x1980e2('0x1c')](_0x1980e2('0xd'),error),ami[_0x1980e2('0x1c')](_0x1980e2('0x12'),close),module[_0x1980e2('0x8')]=ami; \ No newline at end of file +const a1049_0x5f46=['Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s','action','fullybooted','util','close','Fullybooted\x20\x22%s\x22\x20to\x20%s:%s','asterisk','Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s','error','username','queuesummary','inspect','Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s','promisify','coreshowchannels','actionSipShowRegistry','once','devicestatelist','then','format','actionQueueSummary','exports','../../config/logger','../../config/environment','sipshowregistry','actionSipPeerStatus','password','ami','Action','actionCoreShowChannels','port','info','log'];(function(_0x2d66c1,_0x5f4670){const _0x45d9ad=function(_0x1c83b8){while(--_0x1c83b8){_0x2d66c1['push'](_0x2d66c1['shift']());}};_0x45d9ad(++_0x5f4670);}(a1049_0x5f46,0x1d6));const a1049_0x45d9=function(_0x2d66c1,_0x5f4670){_0x2d66c1=_0x2d66c1-0x0;let _0x45d9ad=a1049_0x5f46[_0x2d66c1];return _0x45d9ad;};const _0x2b0f64=a1049_0x45d9;'use strict';const Manager=require('asterisk-manager'),util=require(_0x2b0f64('0x1c')),logger=require(_0x2b0f64('0xe'))(_0x2b0f64('0x13')),config=require(_0x2b0f64('0xf')),ami=new Manager(config[_0x2b0f64('0x1f')][_0x2b0f64('0x16')],config[_0x2b0f64('0x1f')]['ip'],config[_0x2b0f64('0x1f')][_0x2b0f64('0x1')],config[_0x2b0f64('0x1f')][_0x2b0f64('0x12')],!![]);ami['keepConnected'](),ami[_0x2b0f64('0x14')]=util[_0x2b0f64('0x5')](ami[_0x2b0f64('0x1a')]);function error(_0x1c83b8){const _0x5558f7=_0x2b0f64;logger[_0x5558f7('0x0')](util['format'](_0x5558f7('0x20'),config[_0x5558f7('0x1f')][_0x5558f7('0x1')],config[_0x5558f7('0x1f')]['ip'],config['asterisk'][_0x5558f7('0x16')],util[_0x5558f7('0x3')](_0x1c83b8,![],null)));}function close(){const _0x4e9db3=_0x2b0f64;logger[_0x4e9db3('0x0')](util[_0x4e9db3('0xb')](_0x4e9db3('0x4'),config[_0x4e9db3('0x1f')][_0x4e9db3('0x1')],config[_0x4e9db3('0x1f')]['ip'],config[_0x4e9db3('0x1f')][_0x4e9db3('0x16')]));}ami[_0x2b0f64('0x7')]=function(){return function(){const _0xec9054=a1049_0x45d9;return ami[_0xec9054('0x14')]({'action':_0xec9054('0x10')});};},ami['actionDeviceStateList']=function(){return function(){const _0x18c49f=a1049_0x45d9;return ami[_0x18c49f('0x14')]({'action':_0x18c49f('0x9')});};},ami[_0x2b0f64('0x11')]=function(){return function(){const _0x31655c=a1049_0x45d9;return ami[_0x31655c('0x14')]({'action':'sippeerstatus'});};},ami['actionQueueSummary']=function(){return function(){const _0x140e48=a1049_0x45d9;return ami['Action']({'action':_0x140e48('0x2')});};},ami[_0x2b0f64('0x15')]=function(){return function(){const _0x11e97f=a1049_0x45d9;return ami[_0x11e97f('0x14')]({'action':_0x11e97f('0x6')});};};function connect(){const _0x187d8c=_0x2b0f64;logger[_0x187d8c('0x17')](util[_0x187d8c('0xb')]('Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s',config[_0x187d8c('0x1f')][_0x187d8c('0x1')],config[_0x187d8c('0x1f')]['ip'],config[_0x187d8c('0x1f')][_0x187d8c('0x16')])),ami[_0x187d8c('0x8')](_0x187d8c('0x0'),error),ami[_0x187d8c('0x8')](_0x187d8c('0x1d'),close);}ami['on']('connect',connect),ami['on']('shutdown',function(_0x146322){const _0x29f1bc=_0x2b0f64;logger[_0x29f1bc('0x17')](util['format'](_0x29f1bc('0x19'),config[_0x29f1bc('0x1f')][_0x29f1bc('0x1')],config[_0x29f1bc('0x1f')]['ip'],config[_0x29f1bc('0x1f')][_0x29f1bc('0x16')],util['inspect'](_0x146322,![],null)));}),ami['on'](_0x2b0f64('0x1b'),function(){const _0x5c5ec5=_0x2b0f64;return logger[_0x5c5ec5('0x17')](util[_0x5c5ec5('0xb')](_0x5c5ec5('0x1e'),config['asterisk'][_0x5c5ec5('0x1')],config[_0x5c5ec5('0x1f')]['ip'],config['asterisk'][_0x5c5ec5('0x16')])),Promise['resolve']()[_0x5c5ec5('0xa')](ami[_0x5c5ec5('0x7')]())[_0x5c5ec5('0xa')](ami['actionDeviceStateList']())[_0x5c5ec5('0xa')](ami[_0x5c5ec5('0x11')]())[_0x5c5ec5('0xa')](ami[_0x5c5ec5('0xc')]())[_0x5c5ec5('0xa')](ami[_0x5c5ec5('0x15')]())['catch'](function(_0x2d1252){const _0x1df904=_0x5c5ec5;console[_0x1df904('0x18')](_0x2d1252);});}),ami['once']('error',error),ami[_0x2b0f64('0x8')](_0x2b0f64('0x1d'),close),module[_0x2b0f64('0xd')]=ami; \ No newline at end of file diff --git a/server/services/ami/client.js b/server/services/ami/client.js index e878f9f..7ee2398 100644 --- a/server/services/ami/client.js +++ b/server/services/ami/client.js @@ -1 +1 @@ -const a1050_0x1189=['exports','../../config/logger','jayson/promise','rpc','memberReport','message','debug','client','error','Request'];(function(_0x5c2e85,_0x1189f6){const _0x5b5b69=function(_0x2e5797){while(--_0x2e5797){_0x5c2e85['push'](_0x5c2e85['shift']());}};_0x5b5b69(++_0x1189f6);}(a1050_0x1189,0x182));const a1050_0x5b5b=function(_0x5c2e85,_0x1189f6){_0x5c2e85=_0x5c2e85-0x0;let _0x5b5b69=a1050_0x1189[_0x5c2e85];return _0x5b5b69;};const _0x4f26b8=a1050_0x5b5b;'use strict';const jayson=require(_0x4f26b8('0x6')),logger=require(_0x4f26b8('0x5'))('ami'),client=jayson[_0x4f26b8('0x1')]['http']({'port':0x2329});client[_0x4f26b8('0x3')]=function(_0x2e5797,_0x42fb54){return new Promise(function(_0x738e92,_0x3098ca){return client['request'](_0x2e5797,_0x42fb54)['then'](function(_0x3f2730){const _0x471357=a1050_0x5b5b;return logger[_0x471357('0x0')]('rpc',_0x471357('0x8'),_0x2e5797,_0x42fb54,_0x3f2730),_0x3f2730['error']?(logger[_0x471357('0x2')]('rpc',_0x471357('0x8'),_0x2e5797,_0x3f2730[_0x471357('0x2')][_0x471357('0x9')],_0x42fb54),_0x3098ca(_0x3f2730[_0x471357('0x2')][_0x471357('0x9')])):_0x738e92(_0x3f2730['result']);})['catch'](function(_0x2d53e0){const _0x43f12f=a1050_0x5b5b;return logger[_0x43f12f('0x2')](_0x43f12f('0x7'),_0x43f12f('0x8'),_0x2e5797,_0x2d53e0,_0x42fb54),_0x3098ca(_0x2d53e0);});});},module[_0x4f26b8('0x4')]=client; \ No newline at end of file +const a1050_0x1998=['catch','client','memberReport','../../config/logger','message','error','then','debug','rpc','result','http','exports','Request','ami'];(function(_0x5577a4,_0x1998c5){const _0x49a1c5=function(_0x515de7){while(--_0x515de7){_0x5577a4['push'](_0x5577a4['shift']());}};_0x49a1c5(++_0x1998c5);}(a1050_0x1998,0x177));const a1050_0x49a1=function(_0x5577a4,_0x1998c5){_0x5577a4=_0x5577a4-0x0;let _0x49a1c5=a1050_0x1998[_0x5577a4];return _0x49a1c5;};const _0x38dc0d=a1050_0x49a1;'use strict';const jayson=require('jayson/promise'),logger=require(_0x38dc0d('0x6'))(_0x38dc0d('0x2')),client=jayson[_0x38dc0d('0x4')][_0x38dc0d('0xd')]({'port':0x2329});client[_0x38dc0d('0x1')]=function(_0x515de7,_0x33e241){return new Promise(function(_0xfe54d3,_0x34cae6){const _0x4431a1=a1050_0x49a1;return client['request'](_0x515de7,_0x33e241)[_0x4431a1('0x9')](function(_0x36c1c9){const _0x2a6c7c=_0x4431a1;return logger[_0x2a6c7c('0xa')](_0x2a6c7c('0xb'),_0x2a6c7c('0x5'),_0x515de7,_0x33e241,_0x36c1c9),_0x36c1c9[_0x2a6c7c('0x8')]?(logger[_0x2a6c7c('0x8')](_0x2a6c7c('0xb'),_0x2a6c7c('0x5'),_0x515de7,_0x36c1c9[_0x2a6c7c('0x8')]['message'],_0x33e241),_0x34cae6(_0x36c1c9['error'][_0x2a6c7c('0x7')])):_0xfe54d3(_0x36c1c9[_0x2a6c7c('0xc')]);})[_0x4431a1('0x3')](function(_0x1f90c7){const _0x35dd16=_0x4431a1;return logger[_0x35dd16('0x8')](_0x35dd16('0xb'),'memberReport',_0x515de7,_0x1f90c7,_0x33e241),_0x34cae6(_0x1f90c7);});});},module[_0x38dc0d('0x0')]=client; \ No newline at end of file diff --git a/server/services/ami/dialer/action.js b/server/services/ami/dialer/action.js index 6b92adf..86b006e 100644 --- a/server/services/ami/dialer/action.js +++ b/server/services/ami/dialer/action.js @@ -1 +1 @@ -const a1051_0x42da=['type','prototype','countmachineretry','callbackat','countcongestionretry','exports','\x22%s\x22\x20<%s>','dialCutDigit','scheduledat','string','name','CampaignId','dialQueueTimeout','queue','starttime','callback','format','idHopper','substring','recallme','uniqueid','isNil','ListId','callbackuniqueid','number','util','getCaller','firstName','countbusyretry','phone','countabandonedretry','active','countagentrejectretry','ContactFirstName','countnoanswerretry','countdropretry','Contact','originatecalleridname','voiceQueue','ContactId','VoiceQueueId','countnosuchnumberretry'];(function(_0x570c6b,_0x42dad6){const _0xb3d593=function(_0x1eb77a){while(--_0x1eb77a){_0x570c6b['push'](_0x570c6b['shift']());}};_0xb3d593(++_0x42dad6);}(a1051_0x42da,0x128));const a1051_0xb3d5=function(_0x570c6b,_0x42dad6){_0x570c6b=_0x570c6b-0x0;let _0xb3d593=a1051_0x42da[_0x570c6b];return _0xb3d593;};const _0x4a35aa=a1051_0xb3d5;'use strict';const util=require(_0x4a35aa('0x17')),_=require('lodash'),moment=require('moment');function checkNameSurname(_0x1eb77a,_0x10a329,_0x4b0bfa){const _0x3253f4=_0x4a35aa;let _0x82fc39='';!_['isNil'](_0x10a329)&&_0x3253f4('0x7')===typeof _0x10a329&&(_0x82fc39+=_0x10a329);!_[_0x3253f4('0x13')](_0x4b0bfa)&&_0x3253f4('0x7')===typeof _0x4b0bfa&&(_0x82fc39+='\x20'+_0x4b0bfa);if(_0x82fc39!=='')return _0x82fc39;return _0x1eb77a;}function Action(_0xe9a91c,_0x43c296,_0x444714){const _0x3702b7=_0x4a35aa;this[_0x3702b7('0x24')]=_0xe9a91c,this[_0x3702b7('0x12')]=_0x444714||undefined,this[_0x3702b7('0x8')]=checkNameSurname(_0x43c296[_0x3702b7('0x22')][_0x3702b7('0x1b')],_0x43c296['Contact'][_0x3702b7('0x19')],_0x43c296['Contact']['lastName']),this[_0x3702b7('0x16')]=_0x43c296[_0x3702b7('0x22')]['phone'],this[_0x3702b7('0xb')]=_0xe9a91c[_0x3702b7('0x8')],this[_0x3702b7('0x1d')]=_0x43c296[_0x3702b7('0x1d')]||![],this[_0x3702b7('0x28')]=_0xe9a91c['type'],this[_0x3702b7('0xa')]=_0xe9a91c[_0x3702b7('0xa')]||0x3,this[_0x3702b7('0x6')]=_0x43c296['scheduledat'],this[_0x3702b7('0x1a')]=_0x43c296[_0x3702b7('0x1a')],this[_0x3702b7('0x2')]=_0x43c296[_0x3702b7('0x2')],this['countnoanswerretry']=_0x43c296[_0x3702b7('0x20')],this[_0x3702b7('0x27')]=_0x43c296[_0x3702b7('0x27')],this['countdropretry']=_0x43c296[_0x3702b7('0x21')],this[_0x3702b7('0x1c')]=_0x43c296[_0x3702b7('0x1c')],this['countmachineretry']=_0x43c296[_0x3702b7('0x0')],this[_0x3702b7('0x1e')]=_0x43c296[_0x3702b7('0x1e')],this['ContactId']=_0x43c296[_0x3702b7('0x25')],this[_0x3702b7('0x14')]=_0x43c296[_0x3702b7('0x14')],this['UserId']=_0x43c296['UserId'],this[_0x3702b7('0x26')]=_0x43c296['VoiceQueueId'],this[_0x3702b7('0x9')]=_0x43c296['CampaignId'],this[_0x3702b7('0xf')]=_0x43c296['id'],this[_0x3702b7('0x1f')]=_0x43c296['Contact'][_0x3702b7('0x19')]||'',this[_0x3702b7('0xc')]=moment()[_0x3702b7('0xe')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x3702b7('0xd')]=_0x43c296[_0x3702b7('0xd')],this[_0x3702b7('0x15')]=_0x43c296[_0x3702b7('0x15')],this[_0x3702b7('0x1')]=_0x43c296['callbackat'],this['recallme']=_0x43c296[_0x3702b7('0x11')],this['originatecalleridnum']='',this[_0x3702b7('0x23')]='';}Action[_0x4a35aa('0x29')][_0x4a35aa('0x18')]=function(){const _0x5a38e6=_0x4a35aa;return util[_0x5a38e6('0xe')](_0x5a38e6('0x4'),this[_0x5a38e6('0x8')],this[_0x5a38e6('0x24')][_0x5a38e6('0x5')]>0x0?this[_0x5a38e6('0x16')][_0x5a38e6('0x10')](this['voiceQueue'][_0x5a38e6('0x5')]):this['number']);},Action[_0x4a35aa('0x29')]['getQueue']=function(){const _0x2f2828=_0x4a35aa;return this[_0x2f2828('0xb')];},module[_0x4a35aa('0x3')]=Action; \ No newline at end of file +const a1051_0x4840=['CampaignId','getQueue','countagentrejectretry','callbackat','moment','queue','countdropretry','Contact','lastName','ListId','countnoanswerretry','util','callback','uniqueid','VoiceQueueId','countcongestionretry','callbackuniqueid','getCaller','countnosuchnumberretry','YYYY-MM-DD\x20HH:mm:ss','string','firstName','number','voiceQueue','phone','starttime','active','format','recallme','countmachineretry','ContactFirstName','substring','exports','UserId','prototype','dialQueueTimeout','idHopper','ContactId','scheduledat','originatecalleridname','isNil','name','dialCutDigit','type','lodash','countabandonedretry','countbusyretry'];(function(_0x3bf894,_0x4840a0){const _0x4e9592=function(_0x184301){while(--_0x184301){_0x3bf894['push'](_0x3bf894['shift']());}};_0x4e9592(++_0x4840a0);}(a1051_0x4840,0x1e8));const a1051_0x4e95=function(_0x3bf894,_0x4840a0){_0x3bf894=_0x3bf894-0x0;let _0x4e9592=a1051_0x4840[_0x3bf894];return _0x4e9592;};const _0x14b1d6=a1051_0x4e95;'use strict';const util=require(_0x14b1d6('0x28')),_=require(_0x14b1d6('0x1a')),moment=require(_0x14b1d6('0x21'));function checkNameSurname(_0x184301,_0xa3f5db,_0x1b9054){const _0x5683bd=_0x14b1d6;let _0x2c200f='';!_[_0x5683bd('0x16')](_0xa3f5db)&&_0x5683bd('0x2')===typeof _0xa3f5db&&(_0x2c200f+=_0xa3f5db);!_['isNil'](_0x1b9054)&&'string'===typeof _0x1b9054&&(_0x2c200f+='\x20'+_0x1b9054);if(_0x2c200f!=='')return _0x2c200f;return _0x184301;}function Action(_0x303e04,_0x96d04f,_0x46c2fd){const _0x326eaf=_0x14b1d6;this[_0x326eaf('0x5')]=_0x303e04,this[_0x326eaf('0x2a')]=_0x46c2fd||undefined,this[_0x326eaf('0x17')]=checkNameSurname(_0x96d04f[_0x326eaf('0x24')][_0x326eaf('0x6')],_0x96d04f['Contact']['firstName'],_0x96d04f[_0x326eaf('0x24')][_0x326eaf('0x25')]),this[_0x326eaf('0x4')]=_0x96d04f['Contact'][_0x326eaf('0x6')],this[_0x326eaf('0x22')]=_0x303e04[_0x326eaf('0x17')],this['active']=_0x96d04f[_0x326eaf('0x8')]||![],this['type']=_0x303e04[_0x326eaf('0x19')],this[_0x326eaf('0x11')]=_0x303e04['dialQueueTimeout']||0x3,this['scheduledat']=_0x96d04f[_0x326eaf('0x14')],this[_0x326eaf('0x1c')]=_0x96d04f[_0x326eaf('0x1c')],this['countcongestionretry']=_0x96d04f[_0x326eaf('0x2c')],this[_0x326eaf('0x27')]=_0x96d04f[_0x326eaf('0x27')],this[_0x326eaf('0x0')]=_0x96d04f['countnosuchnumberretry'],this[_0x326eaf('0x23')]=_0x96d04f[_0x326eaf('0x23')],this['countabandonedretry']=_0x96d04f[_0x326eaf('0x1b')],this['countmachineretry']=_0x96d04f[_0x326eaf('0xb')],this[_0x326eaf('0x1f')]=_0x96d04f[_0x326eaf('0x1f')],this['ContactId']=_0x96d04f[_0x326eaf('0x13')],this[_0x326eaf('0x26')]=_0x96d04f[_0x326eaf('0x26')],this[_0x326eaf('0xf')]=_0x96d04f['UserId'],this[_0x326eaf('0x2b')]=_0x96d04f[_0x326eaf('0x2b')],this[_0x326eaf('0x1d')]=_0x96d04f[_0x326eaf('0x1d')],this[_0x326eaf('0x12')]=_0x96d04f['id'],this[_0x326eaf('0xc')]=_0x96d04f[_0x326eaf('0x24')][_0x326eaf('0x3')]||'',this[_0x326eaf('0x7')]=moment()[_0x326eaf('0x9')](_0x326eaf('0x1')),this['callback']=_0x96d04f[_0x326eaf('0x29')],this[_0x326eaf('0x2d')]=_0x96d04f[_0x326eaf('0x2d')],this[_0x326eaf('0x20')]=_0x96d04f[_0x326eaf('0x20')],this[_0x326eaf('0xa')]=_0x96d04f[_0x326eaf('0xa')],this['originatecalleridnum']='',this[_0x326eaf('0x15')]='';}Action[_0x14b1d6('0x10')][_0x14b1d6('0x2e')]=function(){const _0x12f66e=_0x14b1d6;return util['format']('\x22%s\x22\x20<%s>',this[_0x12f66e('0x17')],this[_0x12f66e('0x5')][_0x12f66e('0x18')]>0x0?this['number'][_0x12f66e('0xd')](this[_0x12f66e('0x5')][_0x12f66e('0x18')]):this['number']);},Action[_0x14b1d6('0x10')][_0x14b1d6('0x1e')]=function(){const _0xf00d03=_0x14b1d6;return this[_0xf00d03('0x22')];},module[_0x14b1d6('0xe')]=Action; \ No newline at end of file diff --git a/server/services/ami/dialer/agentComplete.js b/server/services/ami/dialer/agentComplete.js index 5145cb9..8f11c9a 100644 --- a/server/services/ami/dialer/agentComplete.js +++ b/server/services/ami/dialer/agentComplete.js @@ -1 +1 @@ -const a1052_0x4f27=['countagentrejectretry','seconds','countabandonedretry','originatecalleridname','talktime','ContactId','holdtime','starttime','queue','milliseconds','ringtime','reason','countbusyretry','statedesc','recallme','callbackat','Answer','ListId','UserId','callback','diff','calleridnum','moment','outbound','CampaignId','countmachineretry','callbackuniqueid','scheduledat','endtime','countcongestionretry','state','countdropretry','responsetime','answertime','membername','calleridname','originatecalleridnum','campaigntype','number','type','uniqueid','format','countnosuchnumberretry','countnoanswerretry'];(function(_0x2803e4,_0x4f274d){const _0xcc1b91=function(_0xbe37ee){while(--_0xbe37ee){_0x2803e4['push'](_0x2803e4['shift']());}};_0xcc1b91(++_0x4f274d);}(a1052_0x4f27,0x1c3));const a1052_0xcc1b=function(_0x2803e4,_0x4f274d){_0x2803e4=_0x2803e4-0x0;let _0xcc1b91=a1052_0x4f27[_0x2803e4];return _0xcc1b91;};const _0x2cc6fb=a1052_0xcc1b;'use strict';const moment=require(_0x2cc6fb('0xb'));function getSeconds(_0xbe37ee,_0x456223){const _0x35c21a=_0x2cc6fb,_0x430599=moment(_0xbe37ee)[_0x35c21a('0x2a')](0x0),_0x1cc71c=moment(_0x456223)[_0x35c21a('0x2a')](0x0);return _0x430599[_0x35c21a('0x9')](_0x1cc71c,_0x35c21a('0x22'));}function AgentComplete(_0x135a37,_0x26a29b){const _0x53d58f=_0x2cc6fb;this[_0x53d58f('0x13')]=0x4,this[_0x53d58f('0x2')]=_0x53d58f('0x5'),this['scheduledat']=_0x135a37[_0x53d58f('0x10')],this[_0x53d58f('0x1c')]=_0x135a37['type'],this[_0x53d58f('0x1a')]=_0x135a37[_0x53d58f('0x1c')]===_0x53d58f('0xc')?_0x53d58f('0x29'):_0x135a37[_0x53d58f('0x1c')],this[_0x53d58f('0x1')]=_0x135a37[_0x53d58f('0x1')],this[_0x53d58f('0x12')]=_0x135a37[_0x53d58f('0x12')],this['countnoanswerretry']=_0x135a37[_0x53d58f('0x20')],this['countglobal']=_0x135a37[_0x53d58f('0x1')]+_0x135a37['countcongestionretry']+_0x135a37[_0x53d58f('0x20')]+_0x135a37['countnosuchnumberretry']+_0x135a37[_0x53d58f('0x14')]+_0x135a37[_0x53d58f('0x23')]+_0x135a37[_0x53d58f('0xe')]+_0x135a37['countagentrejectretry'],this[_0x53d58f('0x1f')]=_0x135a37[_0x53d58f('0x1f')],this['countdropretry']=_0x135a37['countdropretry'],this['countabandonedretry']=_0x135a37[_0x53d58f('0x23')],this[_0x53d58f('0xe')]=_0x135a37[_0x53d58f('0xe')],this[_0x53d58f('0x21')]=_0x135a37[_0x53d58f('0x21')],this[_0x53d58f('0x1d')]=_0x26a29b[_0x53d58f('0x1d')],this[_0x53d58f('0x18')]=_0x135a37['name'],this[_0x53d58f('0xa')]=_0x135a37[_0x53d58f('0x1b')],this[_0x53d58f('0x28')]=_0x135a37[_0x53d58f('0x28')],this[_0x53d58f('0x15')]=_0x135a37[_0x53d58f('0x15')],this[_0x53d58f('0x16')]=_0x135a37[_0x53d58f('0x16')],this[_0x53d58f('0x11')]=moment()[_0x53d58f('0x1e')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x53d58f('0x2b')]=getSeconds(_0x135a37['responsetime'],_0x135a37[_0x53d58f('0x28')]),this[_0x53d58f('0x27')]=getSeconds(_0x135a37[_0x53d58f('0x16')],_0x135a37['responsetime']),this[_0x53d58f('0x25')]=getSeconds(this['endtime'],_0x135a37['answertime']),this[_0x53d58f('0x29')]=_0x26a29b[_0x53d58f('0x29')],this[_0x53d58f('0x17')]=_0x26a29b['membername'],this[_0x53d58f('0x0')]=_0x26a29b[_0x53d58f('0x0')],this[_0x53d58f('0x8')]=_0x135a37[_0x53d58f('0x8')],this['callbackuniqueid']=_0x135a37[_0x53d58f('0xf')],this['callbackat']=_0x135a37[_0x53d58f('0x4')],this[_0x53d58f('0x3')]=_0x135a37['recallme'],this['ContactId']=_0x135a37[_0x53d58f('0x26')],this[_0x53d58f('0x6')]=_0x135a37['ListId'],this[_0x53d58f('0x7')]=_0x135a37[_0x53d58f('0x7')],this['VoiceQueueId']=_0x135a37['VoiceQueueId'],this['CampaignId']=_0x135a37[_0x53d58f('0xd')],this[_0x53d58f('0x19')]=_0x135a37[_0x53d58f('0x19')]||'',this['originatecalleridname']=_0x135a37[_0x53d58f('0x24')]||'';}module['exports']=AgentComplete; \ No newline at end of file +const a1052_0x3b4f=['state','originatecalleridnum','queue','diff','countabandonedretry','milliseconds','VoiceQueueId','statedesc','callbackuniqueid','callback','calleridnum','reason','talktime','calleridname','countcongestionretry','ringtime','number','countglobal','countdropretry','countagentrejectretry','ListId','membername','originatecalleridname','moment','responsetime','Answer','answertime','exports','YYYY-MM-DD\x20HH:mm:ss','ContactId','endtime','countnosuchnumberretry','recallme','seconds','holdtime','type','scheduledat','callbackat','starttime','CampaignId','countnoanswerretry','countmachineretry','countbusyretry','name','UserId'];(function(_0x3f055a,_0x3b4fe6){const _0x5998ba=function(_0x2cf30a){while(--_0x2cf30a){_0x3f055a['push'](_0x3f055a['shift']());}};_0x5998ba(++_0x3b4fe6);}(a1052_0x3b4f,0x1f0));const a1052_0x5998=function(_0x3f055a,_0x3b4fe6){_0x3f055a=_0x3f055a-0x0;let _0x5998ba=a1052_0x3b4f[_0x3f055a];return _0x5998ba;};const _0x156f2d=a1052_0x5998;'use strict';const moment=require(_0x156f2d('0x16'));function getSeconds(_0x2cf30a,_0x1ef3c5){const _0x425359=_0x156f2d,_0x15fde8=moment(_0x2cf30a)['milliseconds'](0x0),_0x1ce345=moment(_0x1ef3c5)[_0x425359('0x4')](0x0);return _0x15fde8[_0x425359('0x2')](_0x1ce345,_0x425359('0x20'));}function AgentComplete(_0x1317d0,_0x3c357b){const _0x3f4496=_0x156f2d;this[_0x3f4496('0x2c')]=0x4,this[_0x3f4496('0x6')]=_0x3f4496('0x18'),this[_0x3f4496('0x23')]=_0x1317d0['scheduledat'],this[_0x3f4496('0x22')]=_0x1317d0[_0x3f4496('0x22')],this['campaigntype']=_0x1317d0['type']==='outbound'?'queue':_0x1317d0[_0x3f4496('0x22')],this[_0x3f4496('0x29')]=_0x1317d0['countbusyretry'],this[_0x3f4496('0xd')]=_0x1317d0['countcongestionretry'],this[_0x3f4496('0x27')]=_0x1317d0['countnoanswerretry'],this[_0x3f4496('0x10')]=_0x1317d0[_0x3f4496('0x29')]+_0x1317d0[_0x3f4496('0xd')]+_0x1317d0[_0x3f4496('0x27')]+_0x1317d0[_0x3f4496('0x1e')]+_0x1317d0[_0x3f4496('0x11')]+_0x1317d0[_0x3f4496('0x3')]+_0x1317d0[_0x3f4496('0x28')]+_0x1317d0[_0x3f4496('0x12')],this[_0x3f4496('0x1e')]=_0x1317d0[_0x3f4496('0x1e')],this[_0x3f4496('0x11')]=_0x1317d0[_0x3f4496('0x11')],this['countabandonedretry']=_0x1317d0[_0x3f4496('0x3')],this['countmachineretry']=_0x1317d0['countmachineretry'],this[_0x3f4496('0x12')]=_0x1317d0[_0x3f4496('0x12')],this['uniqueid']=_0x3c357b['uniqueid'],this[_0x3f4496('0xc')]=_0x1317d0[_0x3f4496('0x2a')],this[_0x3f4496('0x9')]=_0x1317d0[_0x3f4496('0xf')],this[_0x3f4496('0x25')]=_0x1317d0[_0x3f4496('0x25')],this[_0x3f4496('0x17')]=_0x1317d0[_0x3f4496('0x17')],this[_0x3f4496('0x19')]=_0x1317d0[_0x3f4496('0x19')],this[_0x3f4496('0x1d')]=moment()['format'](_0x3f4496('0x1b')),this[_0x3f4496('0xe')]=getSeconds(_0x1317d0[_0x3f4496('0x17')],_0x1317d0[_0x3f4496('0x25')]),this[_0x3f4496('0x21')]=getSeconds(_0x1317d0[_0x3f4496('0x19')],_0x1317d0['responsetime']),this[_0x3f4496('0xb')]=getSeconds(this[_0x3f4496('0x1d')],_0x1317d0[_0x3f4496('0x19')]),this[_0x3f4496('0x1')]=_0x3c357b[_0x3f4496('0x1')],this[_0x3f4496('0x14')]=_0x3c357b[_0x3f4496('0x14')],this['reason']=_0x3c357b[_0x3f4496('0xa')],this[_0x3f4496('0x8')]=_0x1317d0[_0x3f4496('0x8')],this['callbackuniqueid']=_0x1317d0[_0x3f4496('0x7')],this[_0x3f4496('0x24')]=_0x1317d0['callbackat'],this[_0x3f4496('0x1f')]=_0x1317d0[_0x3f4496('0x1f')],this['ContactId']=_0x1317d0[_0x3f4496('0x1c')],this[_0x3f4496('0x13')]=_0x1317d0['ListId'],this[_0x3f4496('0x2b')]=_0x1317d0['UserId'],this[_0x3f4496('0x5')]=_0x1317d0[_0x3f4496('0x5')],this[_0x3f4496('0x26')]=_0x1317d0[_0x3f4496('0x26')],this[_0x3f4496('0x0')]=_0x1317d0[_0x3f4496('0x0')]||'',this['originatecalleridname']=_0x1317d0[_0x3f4496('0x15')]||'';}module[_0x156f2d('0x1a')]=AgentComplete; \ No newline at end of file diff --git a/server/services/ami/dialer/final.js b/server/services/ami/dialer/final.js index e988712..1da6761 100644 --- a/server/services/ami/dialer/final.js +++ b/server/services/ami/dialer/final.js @@ -1 +1 @@ -var a1053_0x2d09=['campaigntype','countagentrejectretry','ListId','ringtime','exports','outbound','originatecalleridname','originatecalleridnum','responsetime','countdropretry','scheduledat','recallme','countcongestionretry','VoiceQueueId','calleridnum','UserId','queue','holdtime','callbackat','uniqueid','starttime','countmachineretry','type','countbusyretry','callback','ContactId','talktime','countnosuchnumberretry','CampaignId','countnoanswerretry','endtime','countabandonedretry','countglobal','calleridname'];(function(_0x3da834,_0x2d09da){var _0x49a44a=function(_0x19f4a8){while(--_0x19f4a8){_0x3da834['push'](_0x3da834['shift']());}};_0x49a44a(++_0x2d09da);}(a1053_0x2d09,0xee));var a1053_0x49a4=function(_0x3da834,_0x2d09da){_0x3da834=_0x3da834-0x0;var _0x49a44a=a1053_0x2d09[_0x3da834];return _0x49a44a;};var _0x4727bf=a1053_0x49a4;'use strict';function Final(_0x19f4a8){var _0xf37ec5=a1053_0x49a4;this[_0xf37ec5('0x13')]=_0x19f4a8['uniqueid'],this[_0xf37ec5('0xa')]=_0x19f4a8[_0xf37ec5('0xa')],this[_0xf37ec5('0x16')]=_0x19f4a8[_0xf37ec5('0x16')],this[_0xf37ec5('0x0')]=_0x19f4a8[_0xf37ec5('0x16')]===_0xf37ec5('0x5')?_0xf37ec5('0x10'):_0x19f4a8[_0xf37ec5('0x16')],this[_0xf37ec5('0x17')]=_0x19f4a8['countbusyretry'],this[_0xf37ec5('0xc')]=_0x19f4a8[_0xf37ec5('0xc')],this[_0xf37ec5('0x1d')]=_0x19f4a8['countnoanswerretry'],this[_0xf37ec5('0x20')]=_0x19f4a8[_0xf37ec5('0x17')]+_0x19f4a8[_0xf37ec5('0xc')]+_0x19f4a8[_0xf37ec5('0x1d')]+_0x19f4a8['countnosuchnumberretry']+_0x19f4a8[_0xf37ec5('0x9')]+_0x19f4a8[_0xf37ec5('0x1f')]+_0x19f4a8[_0xf37ec5('0x15')]+_0x19f4a8[_0xf37ec5('0x1')],this[_0xf37ec5('0x1b')]=_0x19f4a8[_0xf37ec5('0x1b')],this[_0xf37ec5('0x9')]=_0x19f4a8['countdropretry'],this[_0xf37ec5('0x1f')]=_0x19f4a8[_0xf37ec5('0x1f')],this[_0xf37ec5('0x15')]=_0x19f4a8[_0xf37ec5('0x15')],this[_0xf37ec5('0x1')]=_0x19f4a8[_0xf37ec5('0x1')],this[_0xf37ec5('0x10')]=_0x19f4a8[_0xf37ec5('0x10')],this[_0xf37ec5('0x21')]=_0x19f4a8['calleridname'],this[_0xf37ec5('0xe')]=_0x19f4a8['calleridnum'],this[_0xf37ec5('0x14')]=_0x19f4a8[_0xf37ec5('0x14')],this['responsetime']=_0x19f4a8[_0xf37ec5('0x8')],this[_0xf37ec5('0x1e')]=_0x19f4a8['responsetime'],this[_0xf37ec5('0x3')]=_0x19f4a8[_0xf37ec5('0x3')]||0x0,this[_0xf37ec5('0x11')]=_0x19f4a8['holdtime']||0x0,this[_0xf37ec5('0x1a')]=_0x19f4a8[_0xf37ec5('0x1a')]||0x0,this[_0xf37ec5('0x18')]=_0x19f4a8[_0xf37ec5('0x18')],this['callbackuniqueid']=_0x19f4a8['callbackuniqueid'],this['callbackat']=_0x19f4a8[_0xf37ec5('0x12')],this[_0xf37ec5('0xb')]=_0x19f4a8[_0xf37ec5('0xb')],this[_0xf37ec5('0x19')]=_0x19f4a8[_0xf37ec5('0x19')],this[_0xf37ec5('0x2')]=_0x19f4a8['ListId'],this[_0xf37ec5('0xf')]=_0x19f4a8[_0xf37ec5('0xf')],this['VoiceQueueId']=_0x19f4a8[_0xf37ec5('0xd')],this[_0xf37ec5('0x1c')]=_0x19f4a8[_0xf37ec5('0x1c')],this[_0xf37ec5('0x7')]=_0x19f4a8['originatecalleridnum']||'',this[_0xf37ec5('0x6')]=_0x19f4a8[_0xf37ec5('0x6')]||'';}module[_0x4727bf('0x4')]=Final; \ No newline at end of file +var a1053_0x59f2=['holdtime','countabandonedretry','responsetime','endtime','callbackat','countdropretry','ListId','VoiceQueueId','campaigntype','originatecalleridnum','countmachineretry','countagentrejectretry','calleridname','queue','callbackuniqueid','ringtime','calleridnum','callback','originatecalleridname','countbusyretry','countglobal','uniqueid','type','scheduledat','countnoanswerretry','CampaignId','countcongestionretry','exports','recallme','starttime','talktime','UserId','countnosuchnumberretry'];(function(_0x6f49f3,_0x59f2ed){var _0xe03561=function(_0x183c14){while(--_0x183c14){_0x6f49f3['push'](_0x6f49f3['shift']());}};_0xe03561(++_0x59f2ed);}(a1053_0x59f2,0x121));var a1053_0xe035=function(_0x6f49f3,_0x59f2ed){_0x6f49f3=_0x6f49f3-0x0;var _0xe03561=a1053_0x59f2[_0x6f49f3];return _0xe03561;};var _0x344672=a1053_0xe035;'use strict';function Final(_0x183c14){var _0x1efaa9=a1053_0xe035;this[_0x1efaa9('0x1d')]=_0x183c14[_0x1efaa9('0x1d')],this['scheduledat']=_0x183c14[_0x1efaa9('0x1f')],this['type']=_0x183c14['type'],this[_0x1efaa9('0x10')]=_0x183c14[_0x1efaa9('0x1e')]==='outbound'?_0x1efaa9('0x15'):_0x183c14[_0x1efaa9('0x1e')],this[_0x1efaa9('0x1b')]=_0x183c14[_0x1efaa9('0x1b')],this['countcongestionretry']=_0x183c14[_0x1efaa9('0x1')],this[_0x1efaa9('0x20')]=_0x183c14[_0x1efaa9('0x20')],this[_0x1efaa9('0x1c')]=_0x183c14[_0x1efaa9('0x1b')]+_0x183c14[_0x1efaa9('0x1')]+_0x183c14[_0x1efaa9('0x20')]+_0x183c14[_0x1efaa9('0x7')]+_0x183c14[_0x1efaa9('0xd')]+_0x183c14['countabandonedretry']+_0x183c14[_0x1efaa9('0x12')]+_0x183c14[_0x1efaa9('0x13')],this[_0x1efaa9('0x7')]=_0x183c14['countnosuchnumberretry'],this[_0x1efaa9('0xd')]=_0x183c14[_0x1efaa9('0xd')],this[_0x1efaa9('0x9')]=_0x183c14[_0x1efaa9('0x9')],this[_0x1efaa9('0x12')]=_0x183c14[_0x1efaa9('0x12')],this[_0x1efaa9('0x13')]=_0x183c14[_0x1efaa9('0x13')],this[_0x1efaa9('0x15')]=_0x183c14['queue'],this[_0x1efaa9('0x14')]=_0x183c14[_0x1efaa9('0x14')],this['calleridnum']=_0x183c14[_0x1efaa9('0x18')],this['starttime']=_0x183c14[_0x1efaa9('0x4')],this[_0x1efaa9('0xa')]=_0x183c14[_0x1efaa9('0xa')],this[_0x1efaa9('0xb')]=_0x183c14[_0x1efaa9('0xa')],this[_0x1efaa9('0x17')]=_0x183c14['ringtime']||0x0,this[_0x1efaa9('0x8')]=_0x183c14[_0x1efaa9('0x8')]||0x0,this[_0x1efaa9('0x5')]=_0x183c14[_0x1efaa9('0x5')]||0x0,this['callback']=_0x183c14[_0x1efaa9('0x19')],this[_0x1efaa9('0x16')]=_0x183c14[_0x1efaa9('0x16')],this[_0x1efaa9('0xc')]=_0x183c14[_0x1efaa9('0xc')],this[_0x1efaa9('0x3')]=_0x183c14[_0x1efaa9('0x3')],this['ContactId']=_0x183c14['ContactId'],this['ListId']=_0x183c14[_0x1efaa9('0xe')],this[_0x1efaa9('0x6')]=_0x183c14[_0x1efaa9('0x6')],this[_0x1efaa9('0xf')]=_0x183c14[_0x1efaa9('0xf')],this[_0x1efaa9('0x0')]=_0x183c14[_0x1efaa9('0x0')],this[_0x1efaa9('0x11')]=_0x183c14[_0x1efaa9('0x11')]||'',this[_0x1efaa9('0x1a')]=_0x183c14['originatecalleridname']||'';}module[_0x344672('0x2')]=Final; \ No newline at end of file diff --git a/server/services/ami/dialer/hangup.js b/server/services/ami/dialer/hangup.js index 927565e..c51c3fe 100644 --- a/server/services/ami/dialer/hangup.js +++ b/server/services/ami/dialer/hangup.js @@ -1 +1 @@ -const a1054_0xbb97=['CampaignId','queue','countdropretry','reason','ContactId','starttime','scheduledat','ringtime','milliseconds','recallme','number','exports','diff','countmachineretry','responsetime','uniqueid','countcongestionretry','type','talktime','UserId','ListId','membername','countnoanswerretry','VoiceQueueId','holdtime','Answer','state','callbackuniqueid','outbound','YYYY-MM-DD\x20HH:mm:ss','countbusyretry','format','callbackat','moment','campaigntype','name','countagentrejectretry','countnosuchnumberretry','endtime','cause-txt','countabandonedretry','calleridname','callback'];(function(_0x3e22de,_0xbb978d){const _0x241f6f=function(_0x90acd3){while(--_0x90acd3){_0x3e22de['push'](_0x3e22de['shift']());}};_0x241f6f(++_0xbb978d);}(a1054_0xbb97,0x147));const a1054_0x241f=function(_0x3e22de,_0xbb978d){_0x3e22de=_0x3e22de-0x0;let _0x241f6f=a1054_0xbb97[_0x3e22de];return _0x241f6f;};const _0x426f29=a1054_0x241f;'use strict';const moment=require(_0x426f29('0x7'));function getSeconds(_0x90acd3,_0x5a5936){const _0x9461b3=_0x426f29,_0x11f14e=moment(_0x90acd3)[_0x9461b3('0x19')](0x0),_0x14f44f=moment(_0x5a5936)[_0x9461b3('0x19')](0x0);return _0x11f14e[_0x9461b3('0x1d')](_0x14f44f,'seconds');}function Hangup(_0x304c51,_0x993842){const _0xa88b20=_0x426f29;this[_0xa88b20('0x0')]=0x4,this['statedesc']=_0xa88b20('0x2a'),this[_0xa88b20('0x17')]=_0x304c51[_0xa88b20('0x17')],this[_0xa88b20('0x22')]=_0x304c51[_0xa88b20('0x22')],this[_0xa88b20('0x8')]=_0x304c51[_0xa88b20('0x22')]===_0xa88b20('0x2')?_0xa88b20('0x12'):_0x304c51['type'],this[_0xa88b20('0x4')]=_0x304c51[_0xa88b20('0x4')],this[_0xa88b20('0x21')]=_0x304c51[_0xa88b20('0x21')],this['countnoanswerretry']=_0x304c51[_0xa88b20('0x27')],this['countglobal']=_0x304c51[_0xa88b20('0x4')]+_0x304c51[_0xa88b20('0x21')]+_0x304c51[_0xa88b20('0x27')]+_0x304c51[_0xa88b20('0xb')]+_0x304c51[_0xa88b20('0x13')]+_0x304c51[_0xa88b20('0xe')]+_0x304c51['countmachineretry']+_0x304c51['countagentrejectretry'],this[_0xa88b20('0xb')]=_0x304c51['countnosuchnumberretry'],this[_0xa88b20('0x13')]=_0x304c51[_0xa88b20('0x13')],this[_0xa88b20('0xe')]=_0x304c51[_0xa88b20('0xe')],this['countmachineretry']=_0x304c51[_0xa88b20('0x1e')],this['countagentrejectretry']=_0x304c51[_0xa88b20('0xa')],this[_0xa88b20('0x20')]=_0x993842[_0xa88b20('0x20')],this[_0xa88b20('0xf')]=_0x304c51[_0xa88b20('0x9')],this['calleridnum']=_0x304c51[_0xa88b20('0x1b')],this[_0xa88b20('0x16')]=_0x304c51[_0xa88b20('0x16')],this[_0xa88b20('0x1f')]=_0x304c51[_0xa88b20('0x1f')],this[_0xa88b20('0xc')]=moment()[_0xa88b20('0x5')](_0xa88b20('0x3')),this[_0xa88b20('0x18')]=getSeconds(_0x304c51[_0xa88b20('0x1f')],_0x304c51[_0xa88b20('0x16')]),this[_0xa88b20('0x29')]=0x0,this[_0xa88b20('0x23')]=getSeconds(this['endtime'],_0x304c51[_0xa88b20('0x1f')]),this['queue']=_0x304c51[_0xa88b20('0x12')],this[_0xa88b20('0x26')]='IVR',this[_0xa88b20('0x14')]=_0x993842[_0xa88b20('0xd')],this[_0xa88b20('0x10')]=_0x304c51['callback'],this[_0xa88b20('0x1')]=_0x304c51[_0xa88b20('0x1')],this[_0xa88b20('0x6')]=_0x304c51[_0xa88b20('0x6')],this[_0xa88b20('0x1a')]=_0x304c51[_0xa88b20('0x1a')],this['ContactId']=_0x304c51[_0xa88b20('0x15')],this[_0xa88b20('0x25')]=_0x304c51[_0xa88b20('0x25')],this[_0xa88b20('0x24')]=_0x304c51[_0xa88b20('0x24')],this[_0xa88b20('0x28')]=_0x304c51['VoiceQueueId'],this[_0xa88b20('0x11')]=_0x304c51[_0xa88b20('0x11')];}module[_0x426f29('0x1c')]=Hangup; \ No newline at end of file +const a1054_0x499c=['Answer','ListId','callbackat','format','holdtime','countnosuchnumberretry','countglobal','countdropretry','CampaignId','countcongestionretry','countmachineretry','starttime','countagentrejectretry','seconds','callbackuniqueid','scheduledat','endtime','outbound','VoiceQueueId','moment','IVR','queue','state','ringtime','campaigntype','countbusyretry','milliseconds','UserId','name','countnoanswerretry','ContactId','calleridnum','callback','uniqueid','membername','reason','YYYY-MM-DD\x20HH:mm:ss','diff','recallme','countabandonedretry','responsetime','statedesc','type'];(function(_0x44b9dc,_0x499c45){const _0x56f657=function(_0x185539){while(--_0x185539){_0x44b9dc['push'](_0x44b9dc['shift']());}};_0x56f657(++_0x499c45);}(a1054_0x499c,0x184));const a1054_0x56f6=function(_0x44b9dc,_0x499c45){_0x44b9dc=_0x44b9dc-0x0;let _0x56f657=a1054_0x499c[_0x44b9dc];return _0x56f657;};const _0xc2c26a=a1054_0x56f6;'use strict';const moment=require(_0xc2c26a('0x12'));function getSeconds(_0x185539,_0x4379e){const _0x2ff10c=_0xc2c26a,_0x1a21ea=moment(_0x185539)[_0x2ff10c('0x19')](0x0),_0x59f105=moment(_0x4379e)[_0x2ff10c('0x19')](0x0);return _0x1a21ea[_0x2ff10c('0x24')](_0x59f105,_0x2ff10c('0xc'));}function Hangup(_0x268e90,_0x456f13){const _0x3217d5=_0xc2c26a;this[_0x3217d5('0x15')]=0x4,this[_0x3217d5('0x28')]=_0x3217d5('0x2a'),this[_0x3217d5('0xe')]=_0x268e90[_0x3217d5('0xe')],this[_0x3217d5('0x29')]=_0x268e90[_0x3217d5('0x29')],this[_0x3217d5('0x17')]=_0x268e90[_0x3217d5('0x29')]===_0x3217d5('0x10')?_0x3217d5('0x14'):_0x268e90[_0x3217d5('0x29')],this[_0x3217d5('0x18')]=_0x268e90[_0x3217d5('0x18')],this[_0x3217d5('0x8')]=_0x268e90[_0x3217d5('0x8')],this['countnoanswerretry']=_0x268e90[_0x3217d5('0x1c')],this[_0x3217d5('0x5')]=_0x268e90['countbusyretry']+_0x268e90[_0x3217d5('0x8')]+_0x268e90[_0x3217d5('0x1c')]+_0x268e90[_0x3217d5('0x4')]+_0x268e90['countdropretry']+_0x268e90['countabandonedretry']+_0x268e90[_0x3217d5('0x9')]+_0x268e90[_0x3217d5('0xb')],this[_0x3217d5('0x4')]=_0x268e90[_0x3217d5('0x4')],this['countdropretry']=_0x268e90[_0x3217d5('0x6')],this[_0x3217d5('0x26')]=_0x268e90[_0x3217d5('0x26')],this['countmachineretry']=_0x268e90[_0x3217d5('0x9')],this['countagentrejectretry']=_0x268e90[_0x3217d5('0xb')],this[_0x3217d5('0x20')]=_0x456f13['uniqueid'],this['calleridname']=_0x268e90[_0x3217d5('0x1b')],this[_0x3217d5('0x1e')]=_0x268e90['number'],this[_0x3217d5('0xa')]=_0x268e90[_0x3217d5('0xa')],this[_0x3217d5('0x27')]=_0x268e90['responsetime'],this['endtime']=moment()[_0x3217d5('0x2')](_0x3217d5('0x23')),this[_0x3217d5('0x16')]=getSeconds(_0x268e90['responsetime'],_0x268e90[_0x3217d5('0xa')]),this[_0x3217d5('0x3')]=0x0,this['talktime']=getSeconds(this[_0x3217d5('0xf')],_0x268e90['responsetime']),this[_0x3217d5('0x14')]=_0x268e90['queue'],this[_0x3217d5('0x21')]=_0x3217d5('0x13'),this[_0x3217d5('0x22')]=_0x456f13['cause-txt'],this['callback']=_0x268e90[_0x3217d5('0x1f')],this[_0x3217d5('0xd')]=_0x268e90[_0x3217d5('0xd')],this[_0x3217d5('0x1')]=_0x268e90[_0x3217d5('0x1')],this[_0x3217d5('0x25')]=_0x268e90['recallme'],this[_0x3217d5('0x1d')]=_0x268e90['ContactId'],this[_0x3217d5('0x0')]=_0x268e90[_0x3217d5('0x0')],this[_0x3217d5('0x1a')]=_0x268e90[_0x3217d5('0x1a')],this[_0x3217d5('0x11')]=_0x268e90['VoiceQueueId'],this[_0x3217d5('0x7')]=_0x268e90[_0x3217d5('0x7')];}module['exports']=Hangup; \ No newline at end of file diff --git a/server/services/ami/dialer/history.js b/server/services/ami/dialer/history.js index 96fa57d..7856d52 100644 --- a/server/services/ami/dialer/history.js +++ b/server/services/ami/dialer/history.js @@ -1 +1 @@ -const a1055_0x387b=['countnosuchnumberretry','scheduledat','diff','countmachineretry','callbackat','responsetime','countagentrejectretry','countnoanswerretry','outbound','ContactId','callbackuniqueid','countdropretry','countbusyretry','starttime','uniqueid','calleridnum','endtime','countabandonedretry','ringtime','name','callback','milliseconds','originatecalleridnum','seconds','UserId','recallme','CampaignId','VoiceQueueId','countcongestionretry','queue','exports','holdtime','type','talktime','ListId','moment','campaigntype','number'];(function(_0x1da941,_0x387ba5){const _0x375bb8=function(_0x2ed897){while(--_0x2ed897){_0x1da941['push'](_0x1da941['shift']());}};_0x375bb8(++_0x387ba5);}(a1055_0x387b,0x171));const a1055_0x375b=function(_0x1da941,_0x387ba5){_0x1da941=_0x1da941-0x0;let _0x375bb8=a1055_0x387b[_0x1da941];return _0x375bb8;};const _0xf225bf=a1055_0x375b;'use strict';const moment=require(_0xf225bf('0x8'));function getSeconds(_0x2ed897,_0xb5e3b9){const _0x2a2aa5=_0xf225bf,_0x4ef096=moment(_0x2ed897)['milliseconds'](0x0),_0x88f414=moment(_0xb5e3b9)[_0x2a2aa5('0x20')](0x0);return _0x4ef096[_0x2a2aa5('0xd')](_0x88f414,_0x2a2aa5('0x22'));}function History(_0x3c8e7d){const _0xac8b1b=_0xf225bf;this['uniqueid']=_0x3c8e7d[_0xac8b1b('0x19')],this[_0xac8b1b('0xc')]=_0x3c8e7d[_0xac8b1b('0xc')]||undefined,this['type']=_0x3c8e7d['type'],this[_0xac8b1b('0x9')]=_0x3c8e7d[_0xac8b1b('0x5')]===_0xac8b1b('0x13')?_0xac8b1b('0x2'):_0x3c8e7d[_0xac8b1b('0x5')],this[_0xac8b1b('0x17')]=_0x3c8e7d[_0xac8b1b('0x17')],this[_0xac8b1b('0x1')]=_0x3c8e7d[_0xac8b1b('0x1')],this[_0xac8b1b('0x12')]=_0x3c8e7d['countnoanswerretry'],this['countglobal']=_0x3c8e7d[_0xac8b1b('0x17')]+_0x3c8e7d[_0xac8b1b('0x1')]+_0x3c8e7d[_0xac8b1b('0x12')]+_0x3c8e7d[_0xac8b1b('0xb')]+_0x3c8e7d[_0xac8b1b('0x16')]+_0x3c8e7d[_0xac8b1b('0x1c')]+_0x3c8e7d['countmachineretry']+_0x3c8e7d[_0xac8b1b('0x11')],this[_0xac8b1b('0xb')]=_0x3c8e7d[_0xac8b1b('0xb')],this[_0xac8b1b('0x16')]=_0x3c8e7d['countdropretry'],this[_0xac8b1b('0x1c')]=_0x3c8e7d[_0xac8b1b('0x1c')],this[_0xac8b1b('0xe')]=_0x3c8e7d[_0xac8b1b('0xe')],this[_0xac8b1b('0x11')]=_0x3c8e7d['countagentrejectretry'],this[_0xac8b1b('0x2')]=_0x3c8e7d['queue'],this['calleridname']=_0x3c8e7d[_0xac8b1b('0x1e')],this[_0xac8b1b('0x1a')]=_0x3c8e7d[_0xac8b1b('0xa')],this[_0xac8b1b('0x18')]=_0x3c8e7d[_0xac8b1b('0x18')],this['responsetime']=_0x3c8e7d[_0xac8b1b('0x10')],this[_0xac8b1b('0x1b')]=_0x3c8e7d[_0xac8b1b('0x10')],this[_0xac8b1b('0x1d')]=getSeconds(_0x3c8e7d[_0xac8b1b('0x10')],_0x3c8e7d['starttime']),this[_0xac8b1b('0x4')]=0x0,this[_0xac8b1b('0x6')]=0x0,this[_0xac8b1b('0x1f')]=_0x3c8e7d[_0xac8b1b('0x1f')],this[_0xac8b1b('0x15')]=_0x3c8e7d['callbackuniqueid'],this[_0xac8b1b('0xf')]=_0x3c8e7d[_0xac8b1b('0xf')],this[_0xac8b1b('0x24')]=_0x3c8e7d[_0xac8b1b('0x24')],this[_0xac8b1b('0x14')]=_0x3c8e7d[_0xac8b1b('0x14')],this['ListId']=_0x3c8e7d[_0xac8b1b('0x7')],this[_0xac8b1b('0x23')]=_0x3c8e7d[_0xac8b1b('0x23')],this[_0xac8b1b('0x0')]=_0x3c8e7d['VoiceQueueId'],this['CampaignId']=_0x3c8e7d[_0xac8b1b('0x25')],this[_0xac8b1b('0x21')]=_0x3c8e7d[_0xac8b1b('0x21')]||'',this['originatecalleridname']=_0x3c8e7d['originatecalleridname']||'';}module[_0xf225bf('0x3')]=History; \ No newline at end of file +const a1055_0x34b0=['VoiceQueueId','milliseconds','starttime','countnoanswerretry','exports','callback','UserId','responsetime','recallme','moment','ListId','ringtime','talktime','campaigntype','CampaignId','type','originatecalleridnum','originatecalleridname','countmachineretry','callbackuniqueid','countdropretry','countcongestionretry','countabandonedretry','callbackat','countnosuchnumberretry','queue','uniqueid','calleridnum','scheduledat','ContactId','countagentrejectretry','seconds','countglobal','name','diff','countbusyretry','outbound','holdtime','calleridname'];(function(_0x3526a1,_0x34b00b){const _0x196dd1=function(_0x590ab9){while(--_0x590ab9){_0x3526a1['push'](_0x3526a1['shift']());}};_0x196dd1(++_0x34b00b);}(a1055_0x34b0,0x1b8));const a1055_0x196d=function(_0x3526a1,_0x34b00b){_0x3526a1=_0x3526a1-0x0;let _0x196dd1=a1055_0x34b0[_0x3526a1];return _0x196dd1;};const _0x14dfb7=a1055_0x196d;'use strict';const moment=require(_0x14dfb7('0x25'));function getSeconds(_0x590ab9,_0x29160c){const _0xb15f3c=_0x14dfb7,_0x242f8f=moment(_0x590ab9)[_0xb15f3c('0x1d')](0x0),_0xa468e8=moment(_0x29160c)[_0xb15f3c('0x1d')](0x0);return _0x242f8f[_0xb15f3c('0x17')](_0xa468e8,_0xb15f3c('0x14'));}function History(_0x1e4e1e){const _0x4d20a1=_0x14dfb7;this[_0x4d20a1('0xf')]=_0x1e4e1e[_0x4d20a1('0xf')],this['scheduledat']=_0x1e4e1e[_0x4d20a1('0x11')]||undefined,this[_0x4d20a1('0x4')]=_0x1e4e1e[_0x4d20a1('0x4')],this[_0x4d20a1('0x2')]=_0x1e4e1e[_0x4d20a1('0x4')]===_0x4d20a1('0x19')?_0x4d20a1('0xe'):_0x1e4e1e[_0x4d20a1('0x4')],this['countbusyretry']=_0x1e4e1e[_0x4d20a1('0x18')],this[_0x4d20a1('0xa')]=_0x1e4e1e[_0x4d20a1('0xa')],this[_0x4d20a1('0x1f')]=_0x1e4e1e[_0x4d20a1('0x1f')],this[_0x4d20a1('0x15')]=_0x1e4e1e[_0x4d20a1('0x18')]+_0x1e4e1e[_0x4d20a1('0xa')]+_0x1e4e1e[_0x4d20a1('0x1f')]+_0x1e4e1e[_0x4d20a1('0xd')]+_0x1e4e1e[_0x4d20a1('0x9')]+_0x1e4e1e[_0x4d20a1('0xb')]+_0x1e4e1e[_0x4d20a1('0x7')]+_0x1e4e1e[_0x4d20a1('0x13')],this['countnosuchnumberretry']=_0x1e4e1e[_0x4d20a1('0xd')],this[_0x4d20a1('0x9')]=_0x1e4e1e['countdropretry'],this[_0x4d20a1('0xb')]=_0x1e4e1e[_0x4d20a1('0xb')],this[_0x4d20a1('0x7')]=_0x1e4e1e[_0x4d20a1('0x7')],this[_0x4d20a1('0x13')]=_0x1e4e1e[_0x4d20a1('0x13')],this[_0x4d20a1('0xe')]=_0x1e4e1e['queue'],this[_0x4d20a1('0x1b')]=_0x1e4e1e[_0x4d20a1('0x16')],this[_0x4d20a1('0x10')]=_0x1e4e1e['number'],this[_0x4d20a1('0x1e')]=_0x1e4e1e[_0x4d20a1('0x1e')],this['responsetime']=_0x1e4e1e[_0x4d20a1('0x23')],this['endtime']=_0x1e4e1e[_0x4d20a1('0x23')],this[_0x4d20a1('0x0')]=getSeconds(_0x1e4e1e[_0x4d20a1('0x23')],_0x1e4e1e[_0x4d20a1('0x1e')]),this[_0x4d20a1('0x1a')]=0x0,this[_0x4d20a1('0x1')]=0x0,this[_0x4d20a1('0x21')]=_0x1e4e1e['callback'],this['callbackuniqueid']=_0x1e4e1e[_0x4d20a1('0x8')],this[_0x4d20a1('0xc')]=_0x1e4e1e[_0x4d20a1('0xc')],this[_0x4d20a1('0x24')]=_0x1e4e1e[_0x4d20a1('0x24')],this['ContactId']=_0x1e4e1e[_0x4d20a1('0x12')],this[_0x4d20a1('0x26')]=_0x1e4e1e['ListId'],this[_0x4d20a1('0x22')]=_0x1e4e1e['UserId'],this[_0x4d20a1('0x1c')]=_0x1e4e1e[_0x4d20a1('0x1c')],this['CampaignId']=_0x1e4e1e[_0x4d20a1('0x3')],this[_0x4d20a1('0x5')]=_0x1e4e1e[_0x4d20a1('0x5')]||'',this['originatecalleridname']=_0x1e4e1e[_0x4d20a1('0x6')]||'';}module[_0x14dfb7('0x20')]=History; \ No newline at end of file diff --git a/server/services/ami/dialer/index.js b/server/services/ami/dialer/index.js index bdcc60a..911540f 100644 --- a/server/services/ami/dialer/index.js +++ b/server/services/ami/dialer/index.js @@ -1 +1 @@ -const a1056_0x34e8=['predictiveIntervalTotalCalls','\x22%s,%s%s,,,%s\x22','[moveContactManagedDialer]\x20','VoiceQueueId','[decremetOriginate]\x20is\x20null\x20or\x20undefined','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','emit','XMD-AMDINITIALSILENCE','outboundAbandonedCallsDay','RecallInQueue','XMD-CAMPAIGNID','tryOriginatePredictive','inBlackList','clearZombieChannels','phone','[ifTime][promiseAll]','agentBusyFactor','Contact\x20updated',')\x20are\x20less\x20than\x20threshold\x20(','moment','Predictive\x20for\x20every\x20interval','syncNewExten','busyFactor','[Originate][HistoryRecallClose][historyCatch]','../rpc/voiceQueueRt','%s%s','[callProgressDetecting]\x20','custom:agentnoanswer','Interval','AnswerAGI','RECALLFAILEDTIMEOUT','getQueue','answered','voicePause','abandonmentRate','XMD-AMDBETWEENWORDSSILENCE','predictiveIntervalAvgHoldtime','loggedIn','[Dialer][checkChannel][ivr]','[syncAgentComplete][createHistory][5]','util','Unknown\x20Predictive','[rescheduleContact][Abandoned]','XMD-AMDSILENCETHRESHOLD','started\x20in\x20predictive\x20at','../rpc/cmHopperBlack','channels','queueStatusComplete:\x20','XMD-AMDAFTERGREETINGSILENCE','not_inuse','Global','info','[unlockQueueStatus][undefined]','bind','[syncAgentComplete][createHistory][0]','Failure','isTrunkReachable','XMD-AMDMAXIMUMWORDLENGTH','loggerHandler','[unlock2][syncQueueStatusComplete]','type','outboundDropCallsDayCallersExit','run','locked','Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive','dialNoAnswerRetryFrequency','[booked][unlockQueueStatus]','unlockRR','checkContactBlack','countcongestionretry','[syncQueueCallerAbandon]\x20[Drop]','[Originate][HistoryRecallClose]','../rpc/cmHopperHistory','NoAnswer','[booked][RR]','reason\x205\x20busy','droptime','campaigns','dialPowerLevel','startPredictive','dialNoAnswerMaxRetry','originateresponse','[syncAgentComplete][createHistory][3]','[moveContactManagedDialer][0]','predictiveIntervalAnsweredCalls','string','entity\x20is\x20undefine','booked','reason\x2020\x20agentreject','milliseconds','../rpc/cmHopper','[originateError]:\x20%s','UserId','dialQueueProject','dialGlobalInterval','queueBookedRR','[ifTime][Action]','originate','outbound','dialNoSuchNumberMaxRetry','./action','dialBusyMaxRetry','Error','[syncAgentComplete][createHistory][8]','dropreason','XMD-AMDTOTALANALYSISTIME','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','---------------------------','outboundNoSuchCallsDay','[syncHangupInAMDIvr]','Queue:\x20','NoSuchNumber','outboundQueuePauses','merge','sumHoldTime','round','ivrOriginated','[rescheduleContact][NoAnswer]','dialOriginateCallerIdName','[originate][error]','[Catch][Preview][syncQueueStatusComplete]','Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','recalculate\x20predictive\x20at','outboundCongestionCallsDay','from-sip','preview','syncCampaigns','getVoiceQueueRtPauses','Busy','minutes','countmachineretry','message','contact\x20not\x20moved','countReScheduled','AgentReject','optionPredictive','dialMethod','finally','syncHangup','Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','strategy','contactAgent-idHopper:\x20','indexOf','hangup','queuemember','dialAMDAfterGreetingSilence','checkIsBlackList','maxNumberOriginate','clearing\x20variable\x20handle\x20predictive','isEmpty','queueCallerAbandonCreateState','AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[syncAgentComplete][createHistory][?]','-----\x20Stats\x20Predictive\x20---','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','MACHINE','---------\x20ErlangB\x20---------','agiafterat','voiceQueue\x20is\x20undefine','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','waiting','[rescheduleContact][dialRecallInQueue]','M:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Success','predictiveIntervalDroppedCallsCallersExit','HANGUP','RESCHEDULED_CONTACTS','\x5cw{0,','predictiveIntervalMaxThreshold','stringify','IS_DISACTIVED','ivrTotalCallsDays','dialAMDMaximumWordLength','resolve','agiIp','SIP/%s','predictiveIntervalAvailable','collection\x20data\x20in\x20progressive\x20at','[getDataPredictive]','outboundNoAnswerCallsDay','dialPrefix','syncQueueSummary','queuecallerabandon','[syncAgentComplete][createHistory][11]','match','Ts:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','calleridnum','../ami','saveInDb','[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','dialAMDInitialSilence','seconds','is\x20disactive','YYYY-MM-DD\x20HH:mm:ss','countagentrejectretry','exten','loggedInDb','AVAILABLE_CONTACTS_FINISHED','unlockContact','isUndefined','interval','GLOBAL_INTERVAL_IS_OVERTIME','predictiveIntervalDroppedCallsTimeout','[getContactDialer2]','calleridname','../../../config/logger','originated','INTERVAL_IS_EMPTY','TRUNK_IS_NOT_REACHABLE','contacts','voice:queue:%s','[updateOriginated]\x20is\x20null\x20or\x20undefined','[handlePredictive][limitChannel]','reason\x203\x20ringing\x20no\x20answer','toUpper','Intervals','[syncHangupIvr][createHistory]','[unlock][syncQueueStatusComplete]','XMD-VOICEQUEUEID','erlangBusyFactor','actions','dialLimitQueue','[syncHangupIvr]','callerid','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','\x20Timezone\x20unknow\x20','createdAt','TIMEZONE_UNKNOW',')\x20are\x20more\x20than\x20threshold\x20(','[uniqueid]','TrunkBackup','Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ifTime','dialDropMaxRetry','roundrobin','replace','tail','originatecalleridnum','outboundAnswerAgiCallsDay','dialAMDGreeting','campaign:ivr:%s','undefined','stack','Agent','available','contactsId','outboundBusyCallsDay','\x20Interval\x20is\x20overtime:\x20','dialMachineRetryFrequency','Contact.phone','TIMEOUT','[actions]','Abandoned','dialQueueTimeout','dialer','[getContactDialer2][ReScheduled]','OriginateError','dialAMDMinWordLength','custom:queuesummary','syncAgentComplete','name','then','Trunk','congestion','erlangCallToSecond','XMD-ORIGINATECALLERIDNUM','agentreject','countnoanswerretry','outboundOriginateFailureCallsDay','\x20NOT\x20Active','dialAMDSilenceThreshold','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pTalking','reason\x2019\x20machine....','../../../config/config.service','check\x20handlePredictive\x20is\x20not\x20undefine','predictiveIntervalMinThreshold','[rescheduleContact]\x20','syncVarSet','dialPredictiveInterval','checkIsBlackListIvr','endtime','outboundDropCallsDayACS','[syncQueueSummary]\x20Campaign\x20Queue:\x20','trunks','launchHandleIvr','Predictive\x20after\x20first\x20interval','[booked][unlock]','dialRandomLastDigitCallerIdNumber','clearing\x20variable\x20start\x20progressive','[syncQueueSummary]','ContactId','push','[rescheduleContact][NoSuchNumber]','Queue','\x22agi://%s/square,%s\x22','[getContactDialer2][Empty]','[rescheduleContact][Machine]','getDataPredictive','countdropretry','erlangAbandonmentRate','queueStatusComplete','[rescheduleContact][Drop]','rescheduleContact','dialAgentRejectRetryFrequency','md5','NOT_ACTIVE','isSuccess','RUNNING','AGI','sequence','checkIsTrunkReachable','actionid','dialOrderByScheduledAt','[unlockOriginate][syncQueueStatusComplete]','m\x20=\x20','object','dialRecallInQueue','newexten','error','Dropped\x20calls\x20day','dialOriginateTimeout','dialTimezone','reason19\x20machine....','Ts\x20=\x20','[countReScheduled]\x20','NONE','averageHandleTime','emptyContact','[createHistory]\x20','starttime','dialPredictiveOptimization','uniqueid','getContactDialer','custom:agentbusy','HangupInAMD','dialOriginateCallerIdNumber','createStateFinal','dialDropRetryFrequency','reason\x200\x20no\x20such\x20number....','content','add','p\x20=\x20','[abandonmentRate]','dialMachineMaxRetry','catch','[booked][unlock3]','amd','\x20INTERVAL_IS_NULL','Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','CampaignId','./queueCallerAbandon','isArray','syncQueueStatusComplete','predictive','[callProgressDetecting]','[rescheduleContact]\x20[Busy]','exports','INTERVAL_IS_NULL','membername','idHopper','Machine','reason\x2011\x20abandoned','createHistory','./hangup','predictiveIntervalErlangCallsDroppedCalls','_rr','\x22%s\x22\x20<%s>','clearing\x20variable\x20start\x20predictive','xcally-motion-dialer','./final','dialQueueProject2','../preview/util/util','Drop\x20in\x20this\x20interval','custom:agentnosuchnumber','predictiveIntervalHitRate','variable','updatedAt','predictiveIntervalMultiplicativeFactor','check\x20failure','stateGlobal','loopCampaigns','XMD-','Timezone:\x20','sendMessageOneNotActive','agentcomplete','limitCalls','./history','History\x20information\x20are\x20empty','checkRetriveMax','predictiveIntervalAvgTalktime','ListId','SIP/%s/%s%s','[actionOriginate]\x20','countnosuchnumberretry','rrmemory','busy','answertime','../../../rediscache','[syncHangupInAMDIvr][createHistory]','statedesc','[emptyContact]','[getContactDialer]\x20','timezones','substring','\x20AGENTS\x20NOT\x20LOGGED','XMD-ORIGINATECALLERIDNAME','diff','[getContactCampaign2][Empty]','[checkIsBlackListIvr]\x20','value','Action','ivrAnswerCallsDay','moveContactManagedDialer','reachable','[Originate][historyBlacklist]','iftime\x20%s,%s','originatecalleridname','countglobal','dialGlobalMaxRetry','unmanaged','power','prototype','Contact','predictiveIntervalErlangCalls','\x20Intervals\x20is\x20null\x20','channel','[unlockContact]\x20','queuestatus','outboundBlacklistCallsDay','talking','../../../config/environment/','trim','evt\x20is\x20undefine','noanswer','inspect','tags','ACTIVE','[booked][checkContactBlack][else]','[checkIsBlackList]\x20','Global:\x20','pick','getContactDialerIvr','[rescheduleContact]\x20[Congestion]','[rescheduleContact][AgentReject]','interval\x20=\x20','[booked][checkContactBlack]','[Dialer][checkChannel]','AGENTS_NOT_LOGGED','loopClearZombieChannels','pow','is\x20not\x20active','queuestatuscomplete','responsetime','active','floor','command','CALLEREXIT','[busyFactor]','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dialAMDActive','agent','countabandonedretry','updateOriginated','startMethodPredictive','predictiveIntervalPauses','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','reason','BLACKLIST','abandoned','unmonitored','outboundDropCallsDayTimeout','--------\x20Drop\x20Rate\x20--------','No\x20such\x20channel','[getContactDialerPredictive]','[syncAgentComplete]','fail\x20to\x20scheduled\x20calls','P:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ivr','paused','outboundAnswerCallsDay','length','buildObj','some','amdstatus','RECALLINQUEUE','isNil','true','queueBooked','dialQueueOptions','format','custom:agentreject','AMD','dialAMDMaximumNumberOfWords','syncAgentConnect','[syncCampaigns]','Blacklist','syncQueueCallerAbandon','avgHandleTime','outboundRejectCallsDay','Umin\x20=\x20','Agent:\x20','[actionOriginatePredictive]\x20','stateinterface','dialCutDigit','[getContactCampaign2]','state','dialCongestionMaxRetry','[getVoiceQueueRtPauses]\x20','[decremetOriginate]\x20object\x20originated\x20is\x20negative','outboundReCallsDay','startProgressive','Drop','XMD-AMDMINWORDLENGTH','dialAbandonedMaxRetry','dialPredictiveOptimizationPercentage','cause-txt','[syncHangupInAMD][createHistory]','erlangCalls','checkDialMethod','checkIfTimeIntervals','contact\x20is\x20undefine','handlePower','dialAbandonedRetryFrequency','dialBusyRetryFrequency','method\x20not\x20recognized','uniqueId','[averageHandleTime]\x20','voiceQueues','enqueue','countbusyretry','dialAMDTotalAnalysisTime','outboundUnknownCallsDay','dialActive','XMD-AMDMAXIMUMNUMBEROFWORDS','Amax\x20=\x20','syncQueueMember','[handlePredictive]','callProgressDetecting','handlePredictive','agents','handleIvr','status','voice_queue:save','dropRate','Congestion','temp','queue'];(function(_0x34a95f,_0x34e8e0){const _0x5ba1e8=function(_0x59d0f1){while(--_0x59d0f1){_0x34a95f['push'](_0x34a95f['shift']());}};_0x5ba1e8(++_0x34e8e0);}(a1056_0x34e8,0x169));const a1056_0x5ba1=function(_0x34a95f,_0x34e8e0){_0x34a95f=_0x34a95f-0x0;let _0x5ba1e8=a1056_0x34e8[_0x34a95f];return _0x5ba1e8;};const _0xab0e6e=a1056_0x5ba1;'use strict';const util=require(_0xab0e6e('0xe3')),_=require('lodash'),uuid=require('uuid'),moment=require(_0xab0e6e('0xce')),rr=require('rr'),md5=require(_0xab0e6e('0x1ec')),ut=require(_0xab0e6e('0xb')),config=require(_0xab0e6e('0x46')),logger=require('../../../config/logger')(_0xab0e6e('0x1b9')),loggerBooked=require('../../../config/logger')(_0xab0e6e('0x112')),loggerPredictive=require(_0xab0e6e('0x188'))(_0xab0e6e('0x21d')),loggerPredictiveCalls=require(_0xab0e6e('0x188'))('predictiveCalls'),loggerSyncQueueSummary=require(_0xab0e6e('0x188'))(_0xab0e6e('0x170')),ami=require(_0xab0e6e('0x176')),{getSocket}=require(_0xab0e6e('0x25')),io=getSocket(),cmHopper=require(_0xab0e6e('0x115')),cmHopperHistory=require(_0xab0e6e('0x103')),cmHopperBlack=require(_0xab0e6e('0xe8')),voiceQueueRt=require(_0xab0e6e('0xd3')),Action=require(_0xab0e6e('0x11f')),History=require(_0xab0e6e('0x1a')),Final=require(_0xab0e6e('0x9')),AgentComplete=require('./agentComplete'),QueueCallerAbandon=require(_0xab0e6e('0x21a')),Hangup=require(_0xab0e6e('0x3')),{getConfigService}=require(_0xab0e6e('0x1cd')),strategy={'rrmemory':_0xab0e6e('0x22'),'roundrobin':_0xab0e6e('0x1a5')},Sequence=function(){};Sequence['prototype'][_0xab0e6e('0xa8')]=function(_0x59d0f1){const _0x3d0383=_0xab0e6e;this[_0x3d0383('0x1a7')]=this[_0x3d0383('0x1a7')]?this[_0x3d0383('0x1a7')][_0x3d0383('0x144')](_0x59d0f1):_0x59d0f1();};function Dialer(_0x2e5422,_0x2b9b5f){const _0x53832e=_0xab0e6e;this[_0x53832e('0x1f1')]=new Sequence(),this[_0x53832e('0x138')]=_0x2b9b5f,this[_0x53832e('0xa7')]=_0x2e5422[_0x53832e('0xa7')],this[_0x53832e('0x108')]=_0x2e5422[_0x53832e('0x108')],this[_0x53832e('0xb3')]=_0x2e5422[_0x53832e('0xb3')],this['trunks']=_0x2e5422[_0x53832e('0x1d7')],this[_0x53832e('0x14e')]=config[_0x53832e('0x14e')]||0x2,this[_0x53832e('0xe9')]={},this[_0x53832e('0x197')]={},this[_0x53832e('0x1b0')]={},this[_0x53832e('0xa5')]={},this[_0x53832e('0x142')]={},this[_0x53832e('0x10a')]={},this['startProgressive']={},this[_0x53832e('0x12f')]={},this[_0x53832e('0x7f')]={},this['queueBookedRR']={},ami['on']('agentconnect',this[_0x53832e('0x85')][_0x53832e('0xf0')](this)),ami['on'](_0x53832e('0x171'),this[_0x53832e('0x88')][_0x53832e('0xf0')](this)),ami['on'](_0x53832e('0x10c'),this['syncOriginateResponse'][_0x53832e('0xf0')](this)),ami['on'](_0x53832e('0x18'),this[_0x53832e('0x1be')][_0x53832e('0xf0')](this)),ami['on'](_0x53832e('0x1bd'),this[_0x53832e('0x170')][_0x53832e('0xf0')](this)),ami['on'](_0x53832e('0x14a'),this[_0x53832e('0x145')][_0x53832e('0xf0')](this)),ami['on'](_0x53832e('0x1f9'),this[_0x53832e('0xd0')][_0x53832e('0xf0')](this)),ami['on']('varset',this[_0x53832e('0x1d1')][_0x53832e('0xf0')](this)),ami['on'](_0x53832e('0x14b'),this[_0x53832e('0xaf')]['bind'](this)),ami['on'](_0x53832e('0x5b'),this[_0x53832e('0x21c')][_0x53832e('0xf0')](this)),this[_0x53832e('0x14')](),this[_0x53832e('0x58')]();}function isNotNull(_0x22ca1e){return _0x22ca1e!==null&&!_['isUndefined'](_0x22ca1e);}function checkIsLoggedIn(_0x415742,_0x5a8421){return function(){const _0x11580d=a1056_0x5ba1;if(_0x5a8421<=0x0){_0x415742[_0x11580d('0x13e')]=_0x11580d('0x57');throw _0x415742[_0x11580d('0x1bf')]+_0x11580d('0x2c');}};}function isActive(_0x59e6bb){return _0x59e6bb;}function checkIsActive(_0xe393b0,_0x706076){return function(){const _0x5dd6ce=a1056_0x5ba1;if(!isActive(_0x706076)){_0xe393b0[_0x5dd6ce('0x13e')]=_0x5dd6ce('0x1ed');throw _0xe393b0[_0x5dd6ce('0x1bf')]+_0x5dd6ce('0x1c8');}};}function checkInterval(_0x3ed34a){return function(){const _0xa33261=a1056_0x5ba1;if(!isNotNull(_0x3ed34a[_0xa33261('0xd7')])){_0x3ed34a[_0xa33261('0x13e')]='INTERVAL_IS_NULL';throw _0x3ed34a[_0xa33261('0x1bf')]+_0xa33261('0x217');}if(!isNotNull(_0x3ed34a['Interval'][_0xa33261('0x192')])){_0x3ed34a[_0xa33261('0x13e')]=_0xa33261('0x221');throw _0x3ed34a[_0xa33261('0x1bf')]+_0xa33261('0x217');}if(!isNotNull(_[_0xa33261('0x150')](_0x3ed34a[_0xa33261('0xd7')][_0xa33261('0x192')]))){_0x3ed34a[_0xa33261('0x13e')]=_0xa33261('0x221');throw _0x3ed34a[_0xa33261('0x1bf')]+_0xa33261('0x217');}};}function msgResponse(_0x550102,_0x3b3f2f,_0x5dfc3f){return{'action':_0x550102,'response':_0x3b3f2f,'message':_0x5dfc3f,'stack':_0x5dfc3f};}function myreject(_0x3a8b2e){return function(_0x42a72d){const _0x4a50e6=a1056_0x5ba1;return _0x3a8b2e(msgResponse(_0x4a50e6('0x11b'),_0x4a50e6('0x121'),JSON[_0x4a50e6('0x164')](_0x42a72d)));};}function getSeconds(_0x3960e2,_0x3abdec){const _0x594843=_0xab0e6e,_0x4ce355=moment(_0x3960e2)[_0x594843('0x114')](0x0),_0x35ea4c=moment(_0x3abdec)[_0x594843('0x114')](0x0);return _0x4ce355[_0x594843('0x2e')](_0x35ea4c,_0x594843('0x17a'));}function emit(_0x14aa89,_0x4f1a49,_0x4dc3d1){io['to'](_0x14aa89)['emit'](_0x4f1a49,_0x4dc3d1);}function emitVoiceQueueSummary(_0x32664a){const _0x1b2ae1=_0xab0e6e;if(_0x32664a[_0x1b2ae1('0xf7')]===_0x1b2ae1('0x11d')){const _0x514265={'id':_0x32664a['id'],'name':_0x32664a[_0x1b2ae1('0x1bf')],'strategy':_0x32664a[_0x1b2ae1('0x147')],'answered':_0x32664a[_0x1b2ae1('0xdb')],'available':_0x32664a[_0x1b2ae1('0x1af')],'loggedIn':_0x32664a[_0x1b2ae1('0xe0')],'pTalking':_0x32664a[_0x1b2ae1('0x1cb')],'sumBillable':_0x32664a['sumBillable'],'sumDuration':_0x32664a['sumDuration'],'sumHoldTime':_0x32664a[_0x1b2ae1('0x12d')]||0x0,'talking':_0x32664a[_0x1b2ae1('0x45')],'total':_0x32664a['total'],'type':_0x32664a[_0x1b2ae1('0xf7')],'unmanaged':_0x32664a[_0x1b2ae1('0x3b')],'abandoned':_0x32664a[_0x1b2ae1('0x6c')],'waiting':_0x32664a[_0x1b2ae1('0x15b')],'loggedInDb':_0x32664a[_0x1b2ae1('0x17f')],'dialActive':_0x32664a['dialActive'],'dialMethod':_0x32664a['dialMethod'],'dialOriginateCallerIdName':_0x32664a[_0x1b2ae1('0x131')],'dialOriginateCallerIdNumber':_0x32664a['dialOriginateCallerIdNumber'],'dialOriginateTimeout':_0x32664a[_0x1b2ae1('0x1fc')],'dialPrefix':_0x32664a[_0x1b2ae1('0x16f')],'outboundAnswerAgiCallsDay':_0x32664a[_0x1b2ae1('0x1a9')],'outboundAnswerCallsDay':_0x32664a[_0x1b2ae1('0x77')],'outboundBlacklistCallsDay':_0x32664a[_0x1b2ae1('0x44')],'outboundBusyCallsDay':_0x32664a['outboundBusyCallsDay'],'outboundCongestionCallsDay':_0x32664a['outboundCongestionCallsDay'],'outboundDropCallsDayACS':_0x32664a[_0x1b2ae1('0x1d5')],'outboundDropCallsDayCallersExit':_0x32664a['outboundDropCallsDayCallersExit'],'outboundDropCallsDayTimeout':_0x32664a[_0x1b2ae1('0x6e')],'outboundNoAnswerCallsDay':_0x32664a[_0x1b2ae1('0x16e')],'outboundNoSuchCallsDay':_0x32664a[_0x1b2ae1('0x127')],'outboundOriginateFailureCallsDay':_0x32664a[_0x1b2ae1('0x1c7')],'outboundReCallsDay':_0x32664a[_0x1b2ae1('0x95')],'outboundRejectCallsDay':_0x32664a[_0x1b2ae1('0x8a')],'outboundUnknownCallsDay':_0x32664a[_0x1b2ae1('0xab')],'predictiveIntervalAnsweredCalls':_0x32664a[_0x1b2ae1('0x10f')],'predictiveIntervalAvgHoldtime':_0x32664a['predictiveIntervalAvgHoldtime'],'predictiveIntervalAvgTalktime':_0x32664a[_0x1b2ae1('0x1d')],'predictiveIntervalDroppedCallsCallersExit':_0x32664a['predictiveIntervalDroppedCallsCallersExit'],'predictiveIntervalDroppedCallsTimeout':_0x32664a[_0x1b2ae1('0x185')],'predictiveIntervalErlangCalls':_0x32664a[_0x1b2ae1('0x3f')],'predictiveIntervalErlangCallsDroppedCalls':_0x32664a[_0x1b2ae1('0x4')],'predictiveIntervalHitRate':_0x32664a[_0x1b2ae1('0xe')],'predictiveIntervalMultiplicativeFactor':_0x32664a[_0x1b2ae1('0x11')],'predictiveIntervalPauses':_0x32664a[_0x1b2ae1('0x68')],'predictiveIntervalAvailable':_0x32664a['predictiveIntervalAvailable'],'predictiveIntervalTotalCalls':_0x32664a['predictiveIntervalTotalCalls'],'message':_0x32664a[_0x1b2ae1('0x13e')],'originated':_0x32664a[_0x1b2ae1('0x189')],'erlangCalls':_0x32664a[_0x1b2ae1('0x9d')],'erlangCallToSecond':_0x32664a[_0x1b2ae1('0x1c3')],'erlangAbandonmentRate':_0x32664a[_0x1b2ae1('0x1e7')],'erlangBusyFactor':_0x32664a[_0x1b2ae1('0x196')],'startPredictive':_0x32664a[_0x1b2ae1('0x10a')],'startProgressive':_0x32664a[_0x1b2ae1('0x96')]};_0x32664a['Trunk']&&(_0x514265[_0x1b2ae1('0x1c1')]={'id':_0x32664a[_0x1b2ae1('0x1c1')]['id'],'name':_0x32664a['Trunk']['name'],'active':_0x32664a[_0x1b2ae1('0x1c1')][_0x1b2ae1('0x5d')],'callerid':_0x32664a[_0x1b2ae1('0x1c1')][_0x1b2ae1('0x19a')]});_0x32664a['Interval']&&(_0x514265[_0x1b2ae1('0xd7')]={'id':_0x32664a['Interval']['id'],'name':_0x32664a[_0x1b2ae1('0xd7')][_0x1b2ae1('0x1bf')]});const _0x3631cc=md5(JSON['stringify'](_0x514265));_0x32664a[_0x1b2ae1('0x1ec')]!==_0x3631cc&&(_0x32664a['md5']=_0x3631cc,emit(util[_0x1b2ae1('0x81')](_0x1b2ae1('0x18d'),_0x514265[_0x1b2ae1('0x1bf')]),_0x1b2ae1('0xb6'),_0x514265));}}function emitCampaignSummary(_0x27ca04){const _0x3fb43b=_0xab0e6e;_0x27ca04[_0x3fb43b('0xf7')]==='ivr'&&emit(util[_0x3fb43b('0x81')](_0x3fb43b('0x1ab'),_0x27ca04['name']),'campaign:save',_0x27ca04);}function checkGetDataPredictive(_0x33518d){const _0x370e74=_0xab0e6e;if(isNotNull(_0x33518d)){if(!_['isEmpty'](_0x33518d)){loggerPredictive[_0x370e74('0xee')](_0x370e74('0x154')),loggerPredictive[_0x370e74('0xee')](_0x370e74('0x218'),_0x33518d[_0x370e74('0xbb')]),loggerPredictive[_0x370e74('0xee')](_0x370e74('0x134'),_0x33518d[_0x370e74('0x10f')]),loggerPredictive['info'](_0x370e74('0x62'),_0x33518d[_0x370e74('0x185')]),loggerPredictive[_0x370e74('0xee')](_0x370e74('0x1ca'),_0x33518d[_0x370e74('0x15f')]),loggerPredictive[_0x370e74('0xee')](_0x370e74('0x152'),_0x33518d['predictiveIntervalAvgHoldtime']),loggerPredictive[_0x370e74('0xee')]('AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x33518d['predictiveIntervalAvgTalktime']),loggerPredictive[_0x370e74('0xee')](_0x370e74('0x126'));if(_0x33518d[_0x370e74('0xbb')]>0x0){if(!_[_0x370e74('0x182')](_0x33518d[_0x370e74('0x1d')])&&_0x33518d[_0x370e74('0x1d')]>0x0)return!![];else loggerPredictive[_0x370e74('0xee')](_0x370e74('0xfb'));if(!_['isUndefined'](_0x33518d[_0x370e74('0xdf')])&&_0x33518d[_0x370e74('0xdf')]>0x0)return!![];else loggerPredictive['info'](_0x370e74('0x69'));}else loggerPredictive['info'](_0x370e74('0x15a'));}else loggerPredictive[_0x370e74('0xee')](_0x370e74('0x1b'));}else loggerPredictive[_0x370e74('0xee')](_0x370e74('0x1b'));return![];}function mergeDataErlangB(_0x2594c2){return function(_0x71a0df){const _0x3a513b=a1056_0x5ba1;loggerPredictive['info'](_0x3a513b('0x157')),loggerPredictive[_0x3a513b('0xee')](_0x3a513b('0x146'),_0x71a0df[_0x3a513b('0x9d')]),loggerPredictive['info']('One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x71a0df[_0x3a513b('0x1c3')]),loggerPredictive[_0x3a513b('0xee')](_0x3a513b('0xc0'),_0x71a0df[_0x3a513b('0x1e7')]),loggerPredictive[_0x3a513b('0xee')]('Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x71a0df[_0x3a513b('0x196')]),loggerPredictive[_0x3a513b('0xee')](_0x3a513b('0xc0'),_0x71a0df[_0x3a513b('0x1e7')]),loggerPredictive[_0x3a513b('0xee')](_0x3a513b('0x126')),_[_0x3a513b('0x12c')](_0x2594c2,_0x71a0df);};}function getDiff(_0x473b61){const _0x55d7f6=_0xab0e6e,_0x18dd5c=moment()[_0x55d7f6('0x114')](0x0),_0x201580=moment(_0x473b61)[_0x55d7f6('0x114')](0x0);return _0x18dd5c[_0x55d7f6('0x2e')](_0x201580,'seconds');}function ifInterval(_0xc32445,_0x2384b0){const _0x5c90b3=_0xab0e6e;if(_[_0x5c90b3('0x182')](_0x2384b0))return![];return getDiff(_0x2384b0)<_0xc32445*0x3c?!![]:![];}function freeVariablesPredictive(_0x4da00e){const _0x2d548f=_0xab0e6e;isNotNull(_0x4da00e)&&(!_[_0x2d548f('0x182')](_0x4da00e[_0x2d548f('0x96')])&&(_0x4da00e[_0x2d548f('0x96')]=undefined,loggerPredictive[_0x2d548f('0xee')](_0x4da00e[_0x2d548f('0x1bf')],_0x2d548f('0x1dc'))),!_[_0x2d548f('0x182')](_0x4da00e[_0x2d548f('0x10a')])&&(_0x4da00e['startPredictive']=undefined,loggerPredictive[_0x2d548f('0xee')](_0x4da00e[_0x2d548f('0x1bf')],_0x2d548f('0x7'))),!_[_0x2d548f('0x182')](_0x4da00e[_0x2d548f('0xb2')])&&(clearInterval(_0x4da00e[_0x2d548f('0xb2')]),_0x4da00e['handlePredictive']=undefined,loggerPredictive[_0x2d548f('0xee')](_0x4da00e[_0x2d548f('0x1bf')],_0x2d548f('0x14f'))));}function erlangb(_0x26c7fd,_0x3ef222){if(_0x3ef222===0x0)return 0x0;let _0x5d06ed=0x1;for(let _0x20b07f=0x1;_0x20b07f<=_0x3ef222;_0x20b07f+=0x1){_0x5d06ed=0x1+_0x5d06ed*_0x20b07f/_0x26c7fd;}return 0x1/_0x5d06ed;}function isVoiceQueueOutbound(_0x47e75){const _0x2e5c82=_0xab0e6e;return _0x47e75===_0x2e5c82('0x11d');}function isNotPreview(_0xc636a4){const _0xf3d742=_0xab0e6e;return _0xc636a4!==_0xf3d742('0x138');}function isCampaignIvr(_0xa87427){const _0x233581=_0xab0e6e;return _0xa87427===_0x233581('0x75');}function getCallerId(_0x336bc5,_0x22ebf4,_0x51a57b){const _0x2d7746=_0xab0e6e;if(!_[_0x2d7746('0x182')](_0x51a57b)&&_0x2d7746('0x110')===typeof _0x51a57b&&!_['isEmpty'](_0x51a57b)){if(!_[_0x2d7746('0x182')](_0x22ebf4)&&'string'===typeof _0x22ebf4&&!_[_0x2d7746('0x150')](_0x22ebf4))return util['format'](_0x2d7746('0x6'),_0x22ebf4,_0x51a57b);return util[_0x2d7746('0x81')](_0x2d7746('0x6'),_0x51a57b,_0x51a57b);}if(!_[_0x2d7746('0x182')](_0x336bc5)&&'string'===typeof _0x336bc5&&!_[_0x2d7746('0x150')](_0x336bc5))return _0x336bc5;return'\x22\x22\x20<>';}function loggerCatchQueueSummary(_0x1d3cde,_0x56a5ec){return function(_0x51d962){const _0x1cf0f0=a1056_0x5ba1;freeVariablesPredictive(_0x56a5ec),emitVoiceQueueSummary(_0x56a5ec),emitCampaignSummary(_0x56a5ec),loggerSyncQueueSummary[_0x1cf0f0('0x1fa')](_0x1d3cde,util[_0x1cf0f0('0x4a')](_0x51d962,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x1f7228,_0x3558ca){return function(_0x5bd21c){const _0x40c379=a1056_0x5ba1;loggerPredictive[_0x40c379('0x1fa')](_0x3558ca[_0x40c379('0x1bf')],_0x1f7228),loggerPredictive[_0x40c379('0x1fa')](_0x5bd21c[_0x40c379('0x1ad')]),freeVariablesPredictive(_0x3558ca);};}function loggerCatch(_0x24a70f){return function(_0xc913bd){const _0x5c3179=a1056_0x5ba1;logger[_0x5c3179('0x1fa')](_0x24a70f,util['inspect'](_0xc913bd,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0x5ab79f){const _0x5eca3c=_0xab0e6e;return _0x5ab79f&&!_['isUndefined'](_0x5ab79f)&&_0x5ab79f[_0x5eca3c('0x78')]>0x0;}function decremetOriginate(_0x5e3a2d){const _0x5dcca6=_0xab0e6e;!_[_0x5dcca6('0x182')](_0x5e3a2d)&&_0x5e3a2d!==null?typeof _0x5e3a2d[_0x5dcca6('0x189')]!==_0x5dcca6('0x1ac')&&(_0x5e3a2d[_0x5dcca6('0x189')]>0x0?_0x5e3a2d[_0x5dcca6('0x189')]-=0x1:logger['error'](_0x5dcca6('0x94'))):logger[_0x5dcca6('0x1fa')](_0x5dcca6('0xbf'));}function checkContactLowerLimitOriginate(_0x5a6ef6,_0x36215b,_0x5dc554){if(_0x36215b>_0x5dc554)for(let _0x3ad163=0x0;_0x3ad163<_0x36215b-_0x5dc554;_0x3ad163+=0x1){decremetOriginate(_0x5a6ef6);}}function loggerGetContactDialer(_0x35b57e,_0x4c98c3,_0x373654){return function(_0x22a493){const _0x5d8a51=a1056_0x5ba1;checkContactLowerLimitOriginate(_0x4c98c3,_0x373654,0x0),logger[_0x5d8a51('0x1fa')](_0x35b57e,util[_0x5d8a51('0x4a')](_0x22a493,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0xee21cb){return function(_0x1ccf71){const _0x52db7b=a1056_0x5ba1;isNotNull(_0x1ccf71)&&isNotNull(_0x1ccf71[0x0])&&(_0x1ccf71[0x0]['contactsRescheduled']>0x0?(_0xee21cb[_0x52db7b('0x13e')]=_0x52db7b('0x161'),logger[_0x52db7b('0xee')](_0x52db7b('0x1ba')+_0xee21cb[_0x52db7b('0x1bf')],_0x1ccf71[0x0]['contactsRescheduled'],_0x52db7b('0x18c'))):(_0xee21cb['message']=_0x52db7b('0x180'),logger[_0x52db7b('0xee')](_0x52db7b('0x1e3')+_0xee21cb[_0x52db7b('0x1bf')])));};}function notSendMessagesQueue(_0x523c59){const _0x6225cb=_0xab0e6e;_0x523c59[_0x6225cb('0x17')]&&(freeVariablesPredictive(_0x523c59),_0x523c59[_0x6225cb('0x189')]===0x0&&_0x523c59[_0x6225cb('0x45')]===0x0&&_0x523c59[_0x6225cb('0x15b')]===0x0&&(_0x523c59['pTalking']||0x0)===0x0?(_0x523c59[_0x6225cb('0x17')]=![],_0x523c59[_0x6225cb('0x1af')]=0x0,_0x523c59[_0x6225cb('0x13e')]=_0x6225cb('0x1ed'),loggerSyncQueueSummary[_0x6225cb('0x1fa')](_0x6225cb('0x1d6'),_0x523c59[_0x6225cb('0x1bf')],_0x6225cb('0x5a'))):(_0x523c59[_0x6225cb('0x13e')]=_0x6225cb('0x165'),loggerSyncQueueSummary[_0x6225cb('0x1fa')](_0x6225cb('0x1d6'),_0x523c59[_0x6225cb('0x1bf')],_0x6225cb('0x17b'))),emitVoiceQueueSummary(_0x523c59));}function notSendMessagesCampaign(_0x197b06){const _0x58533e=_0xab0e6e;_0x197b06[_0x58533e('0x17')]&&(_0x197b06[_0x58533e('0x189')]===0x0?(_0x197b06[_0x58533e('0x17')]=![],_0x197b06[_0x58533e('0x13e')]=_0x58533e('0x1ed'),loggerSyncQueueSummary['error']('[syncQueueSummary]\x20Campaign\x20Ivr:\x20',_0x197b06[_0x58533e('0x1bf')],_0x58533e('0x5a'))):(_0x197b06[_0x58533e('0x13e')]=_0x58533e('0x165'),loggerSyncQueueSummary[_0x58533e('0x1fa')]('[syncQueueSummary]\x20Campaign\x20Ivr:\x20',_0x197b06['name'],_0x58533e('0x17b'))),emitCampaignSummary(_0x197b06));}function createObjHistory(_0x5d64cd,_0x2af007,_0x3b9f51,_0x53cce9,_0x53fcb2){const _0x22e665=_0xab0e6e;_0x5d64cd['message']=_0x3b9f51;const _0x16b78f=new Action(_0x5d64cd,_0x2af007),_0x22c410=new History(_0x16b78f);return _0x22c410[_0x22e665('0x91')]=_0x53cce9,_0x22c410['statedesc']=_0x53fcb2,_0x22c410[_0x22e665('0x1d4')]=_0x16b78f[_0x22e665('0x205')],_0x22c410;}Dialer['prototype'][_0xab0e6e('0x58')]=function(){const _0x49a53c=this;setInterval(function(){const _0x2e99a9=a1056_0x5ba1;_0x49a53c[_0x2e99a9('0xc8')](_0x49a53c[_0x2e99a9('0xa5')],_0x2e99a9('0x1a0')),_0x49a53c['clearZombieChannels'](_0x49a53c['actions'],_0x2e99a9('0x1b6'));},0x32c8);},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0xc8')]=function(_0x2ba67d,_0x23dff9){const _0x2be554=_0xab0e6e,_0x197c75=this;for(const _0x2ac190 in _0x2ba67d){typeof _0x2ba67d[_0x2ac190]!==_0x2be554('0x1ac')&&this[_0x2be554('0x1f1')][_0x2be554('0xa8')](function(){const _0x269fc7=_0x2be554;if(!_[_0x269fc7('0x7d')](_0x2ba67d[_0x2ac190]))return ami[_0x269fc7('0x32')]({'action':_0x269fc7('0xb5'),'channel':_0x2ba67d[_0x2ac190]['channel']})[_0x269fc7('0x214')](function(_0x2a5ccd){const _0x41bf13=_0x269fc7;_0x2a5ccd[_0x41bf13('0x13e')]===_0x41bf13('0x70')&&setTimeout(function(){const _0xb2a6f1=_0x41bf13;_0x2ba67d[_0x2ac190]&&_0x2ba67d[_0x2ac190][_0xb2a6f1('0xf7')]!==_0xb2a6f1('0x75')&&(_0x197c75[_0xb2a6f1('0x66')](_0x197c75[_0xb2a6f1('0xa7')][_0x2ba67d[_0x2ac190][_0xb2a6f1('0xba')]]),logger['error'](_0xb2a6f1('0x56'),_0x23dff9,_0x2ac190,_0x2ba67d[_0x2ac190][_0xb2a6f1('0xba')]),delete _0x2ba67d[_0x2ac190]),_0x2ba67d[_0x2ac190]&&_0x2ba67d[_0x2ac190][_0xb2a6f1('0xf7')]===_0xb2a6f1('0x75')&&(_0x197c75[_0xb2a6f1('0x66')](_0x197c75[_0xb2a6f1('0x108')][_0x2ba67d[_0x2ac190][_0xb2a6f1('0xba')]]),logger[_0xb2a6f1('0x1fa')](_0xb2a6f1('0xe1'),_0x23dff9,_0x2ac190,_0x2ba67d[_0x2ac190][_0xb2a6f1('0xba')]),delete _0x2ba67d[_0x2ac190]);},0x2328);});});}},Dialer['prototype']['countReScheduled']=function(_0x176e3d){const _0x14741a=_0xab0e6e;return Promise['resolve']()[_0x14741a('0x1c0')](cmHopper[_0x14741a('0x140')](_0x176e3d))[_0x14741a('0x214')](loggerCatch('[countReScheduled]\x20'));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x14d')]=function(_0x4e30e7){const _0x2cf3c8=_0xab0e6e;return Promise[_0x2cf3c8('0x168')]()[_0x2cf3c8('0x1c0')](cmHopperBlack[_0x2cf3c8('0x14d')](_0x4e30e7))[_0x2cf3c8('0x214')](loggerCatch(_0x2cf3c8('0x4e')));},Dialer['prototype']['checkIsBlackListIvr']=function(_0x3a641a){const _0x3c45c1=_0xab0e6e;return Promise[_0x3c45c1('0x168')]()['then'](cmHopperBlack['checkIsBlackListIvr'](_0x3a641a))[_0x3c45c1('0x214')](loggerCatch(_0x3c45c1('0x30')));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x202')]=function(_0x2ecb82){const _0x131e05=_0xab0e6e;return Promise[_0x131e05('0x168')]()['then'](cmHopperHistory[_0x131e05('0x89')](_0x2ecb82))['catch'](loggerCatch(_0x131e05('0xa6')));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x1ea')]=function(_0x38a538){const _0x36bc9e=_0xab0e6e;return Promise[_0x36bc9e('0x168')]()['then'](cmHopper[_0x36bc9e('0x1ea')](_0x38a538))[_0x36bc9e('0x214')](loggerCatch(_0x36bc9e('0x1d0')));},Dialer['prototype'][_0xab0e6e('0x181')]=function(_0x29d5af,_0x323f06,_0x2b70bf){const _0x236f23=_0xab0e6e;return Promise['resolve']()[_0x236f23('0x1c0')](cmHopper[_0x236f23('0x181')](_0x29d5af,_0x323f06,_0x2b70bf))[_0x236f23('0x214')](loggerCatch(_0x236f23('0x42')));},Dialer[_0xab0e6e('0x3d')]['getContactDialer']=function(_0x2f5a06,_0x4c5075,_0x5ba887,_0x59155f){const _0x436582=_0xab0e6e;return Promise[_0x436582('0x168')]()[_0x436582('0x1c0')](cmHopper['getContactDialer'](_0x2f5a06,_0x4c5075,_0x5ba887,_0x59155f))[_0x436582('0x214')](loggerCatch('[getContactDialer]\x20'));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x51')]=function(_0x146db5,_0x10bc33,_0x4a9c4c){const _0x48f4fa=_0xab0e6e;return Promise[_0x48f4fa('0x168')]()[_0x48f4fa('0x1c0')](cmHopper[_0x48f4fa('0x51')](_0x146db5,_0x10bc33,_0x4a9c4c))[_0x48f4fa('0x214')](loggerCatch(_0x48f4fa('0x29')));},Dialer['prototype'][_0xab0e6e('0x13a')]=function(_0x50cf60){const _0x1a5b21=_0xab0e6e;return Promise[_0x1a5b21('0x168')]()['then'](voiceQueueRt[_0x1a5b21('0x13a')](_0x50cf60))['catch'](loggerCatch(_0x1a5b21('0x93')));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x34')]=function(_0x2a48f7){const _0x47f7ba=_0xab0e6e;return Promise[_0x47f7ba('0x168')]()[_0x47f7ba('0x1c0')](cmHopper[_0x47f7ba('0x34')](_0x2a48f7))[_0x47f7ba('0x214')](loggerCatch(_0x47f7ba('0xbd')));},Dialer[_0xab0e6e('0x3d')]['createHistory']=function(_0x58de96){const _0x132def=_0xab0e6e;return Promise['resolve']()[_0x132def('0x1c0')](cmHopperHistory[_0x132def('0x2')](_0x58de96))[_0x132def('0x214')](loggerCatch(_0x132def('0x204')));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x66')]=function(_0x546a77){const _0x51c2f3=_0xab0e6e;!_[_0x51c2f3('0x182')](_0x546a77)&&_0x546a77!==null?typeof _0x546a77[_0x51c2f3('0x189')]!==_0x51c2f3('0x1ac')&&(_0x546a77['originated']>0x0?_0x546a77[_0x51c2f3('0x189')]-=0x1:logger[_0x51c2f3('0x1fa')]('[updateOriginated]\x20object\x20originated\x20is\x20negative')):logger[_0x51c2f3('0x1fa')](_0x51c2f3('0x18e'));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0xf5')]=function(_0x1b374d,_0x3dd05f){const _0x4546cf=this;return function(_0xaca774){const _0x57475e=a1056_0x5ba1;_0x4546cf[_0x57475e('0x66')](_0x3dd05f),logger[_0x57475e('0x1fa')](_0x1b374d,util['inspect'](_0xaca774,{'showHidden':![],'depth':null}));};},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x203')]=function(_0x36a245,_0x1cbb96,_0x2dbe09){const _0x1974ea=_0xab0e6e,_0x5b6b81={'state':0x19,'statedesc':'notFound'};this['updateOriginated'](_0x1cbb96),this[_0x1974ea('0x177')](_[_0x1974ea('0x12c')](_0x5b6b81,_[_0x1974ea('0x50')](_0x2dbe09,['ContactId',_0x1974ea('0x1e'),_0x1974ea('0x117'),_0x1974ea('0xbe'),'CampaignId'])),'[emptyContact][createHistory]',_0x1974ea('0x28')),logger[_0x1974ea('0x1fa')](_0x36a245);},Dialer['prototype'][_0xab0e6e('0x1ee')]=function(_0x3aef84){return _0x3aef84==='Success';},Dialer['prototype'][_0xab0e6e('0xf3')]=function(_0x4fc88f){const _0x197fff=_0xab0e6e;return!_[_0x197fff('0x182')](_0x4fc88f)&&_0x4fc88f&&!_[_0x197fff('0x182')](_0x4fc88f[_0x197fff('0x1bf')])&&!_[_0x197fff('0x182')](_0x4fc88f[_0x197fff('0x5d')])&&_0x4fc88f[_0x197fff('0x5d')]&&(this[_0x197fff('0x1d7')][util[_0x197fff('0x81')]('SIP/%s',_0x4fc88f[_0x197fff('0x1bf')])]['status']===_0x197fff('0x35')||this[_0x197fff('0x1d7')][util[_0x197fff('0x81')](_0x197fff('0x16a'),_0x4fc88f[_0x197fff('0x1bf')])][_0x197fff('0xb5')]===_0x197fff('0x6d'));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x177')]=function(_0x48b380,_0x44d557,_0x130162){const _0x31d274=_0xab0e6e;this[_0x31d274('0x2')](_0x48b380)['catch'](loggerCatch(_0x44d557)),this[_0x31d274('0x34')](_0x48b380)[_0x31d274('0x214')](loggerCatch(_0x130162));},Dialer['prototype'][_0xab0e6e('0x1d1')]=function(_0xb9a31f){const _0x20f388=_0xab0e6e,_0x5366e6=this[_0x20f388('0xa5')][_0xb9a31f['uniqueid']];let _0x10645b;if(!_[_0x20f388('0x7d')](_0xb9a31f)&&!_['isNil'](_0xb9a31f['variable'])&&!_['isNil'](_0xb9a31f[_0x20f388('0xf')][_0x20f388('0x7b')])&&_0xb9a31f[_0x20f388('0x17e')]==='xcally-motion-dialer'&&_0x5366e6){_0x5366e6[_0x20f388('0xf7')]!=='ivr'&&this['voiceQueues'][_0x5366e6['queue']][_0x20f388('0x63')]&&_0xb9a31f[_0x20f388('0x31')]===_0x20f388('0x160')&&(delete this[_0x20f388('0xa5')][_0xb9a31f['uniqueid']],this[_0x20f388('0x66')](this[_0x20f388('0xa7')][_0x5366e6[_0x20f388('0xba')]]),this[_0x20f388('0xa7')][_0x5366e6[_0x20f388('0xba')]][_0x20f388('0x77')]+=0x1,this[_0x20f388('0xa7')][_0x5366e6['queue']][_0x20f388('0x1a9')]+=0x1,_0x10645b=new Hangup(_0x5366e6,_0xb9a31f),_0x10645b['state']=0x12,_0x10645b[_0x20f388('0x27')]=_0x20f388('0x20a'),_0x10645b['membername']=_0x20f388('0x83'),this[_0x20f388('0x177')](_0x10645b,_0x20f388('0x9c'),'[syncHangupInAMD]'));if(_0x5366e6[_0x20f388('0xf7')]!==_0x20f388('0x75')&&this[_0x20f388('0xa7')][_0x5366e6['queue']]['dialAMDActive']&&_0xb9a31f['value']===_0x20f388('0x156')){const _0x32b7fb=this;return new Promise(function(_0x2649be,_0x274dcc){const _0x2ca652=_0x20f388;delete _0x32b7fb[_0x2ca652('0xa5')][_0xb9a31f[_0x2ca652('0x207')]],_0x32b7fb[_0x2ca652('0x66')](_0x32b7fb['voiceQueues'][_0x5366e6[_0x2ca652('0xba')]]),_0x32b7fb['voiceQueues'][_0x5366e6['queue']][_0x2ca652('0x77')]+=0x1,_0x32b7fb['voiceQueues'][_0x5366e6[_0x2ca652('0xba')]]['outboundAnswerAgiCallsDay']+=0x1;const _0x19501b=_0x32b7fb[_0x2ca652('0xa7')][_0x5366e6[_0x2ca652('0xba')]],_0x1627bd=new Hangup(_0x5366e6,_0xb9a31f);_0x1627bd[_0x2ca652('0x91')]=0x13,_0x1627bd[_0x2ca652('0x27')]=_0x2ca652('0x0'),_0x1627bd[_0x2ca652('0x222')]=_0x2ca652('0x83'),_0x1627bd[_0x2ca652('0x13d')]+=0x1,_0x1627bd['countglobal']+=0x1,_0x1627bd[_0x2ca652('0x216')]=!![],_0x32b7fb['createHistory'](_0x1627bd)[_0x2ca652('0x214')](loggerCatch(_0x2ca652('0xf1'))),_0x1627bd[_0x2ca652('0xa9')]+_0x1627bd['countcongestionretry']+_0x1627bd[_0x2ca652('0x1c6')]+_0x1627bd[_0x2ca652('0x21')]+_0x1627bd[_0x2ca652('0x1e6')]+_0x1627bd[_0x2ca652('0x65')]+_0x1627bd['countmachineretry']+_0x1627bd[_0x2ca652('0x17d')]>=_0x19501b[_0x2ca652('0x3a')]?_0x32b7fb['stateGlobal'](_0x1627bd,_0x2649be,_0x274dcc,_0x2ca652('0x1fe')):_0x1627bd[_0x2ca652('0x13d')]>=_0x19501b['dialMachineMaxRetry']?_0x32b7fb[_0x2ca652('0x20c')](_0x1627bd,_0x2649be,_0x274dcc,_0x2ca652('0x1cc')):(_0x32b7fb[_0x2ca652('0x1ea')]({'active':![],'countmachineretry':_0x1627bd['countmachineretry'],'scheduledat':moment()[_0x2ca652('0x210')](_0x19501b[_0x2ca652('0x1b3')],_0x2ca652('0x13c'))['format'](_0x2ca652('0x17c')),'ContactId':_0x1627bd[_0x2ca652('0x1de')],'ListId':_0x1627bd[_0x2ca652('0x1e')],'VoiceQueueId':_0x1627bd[_0x2ca652('0xbe')]||undefined,'CampaignId':_0x1627bd[_0x2ca652('0x219')]||undefined})[_0x2ca652('0x214')](loggerCatch(_0x2ca652('0x1e4'))),_0x2649be({'reschedule':0x1}));});}_0x5366e6[_0x20f388('0xf7')]===_0x20f388('0x75')&&this[_0x20f388('0x108')][_0x5366e6[_0x20f388('0xba')]][_0x20f388('0x63')]&&_0xb9a31f[_0x20f388('0x31')]===_0x20f388('0x160')&&(delete this[_0x20f388('0xa5')][_0xb9a31f[_0x20f388('0x207')]],this[_0x20f388('0x66')](this[_0x20f388('0x108')][_0x5366e6[_0x20f388('0xba')]]),_0x10645b=new Hangup(_0x5366e6,_0xb9a31f),_0x10645b['state']=0x12,_0x10645b[_0x20f388('0x27')]='HangupInAMD',_0x10645b[_0x20f388('0x222')]='AMD',this['saveInDb'](_0x10645b,_0x20f388('0x26'),_0x20f388('0x128')));if(_0x5366e6[_0x20f388('0xf7')]===_0x20f388('0x75')&&this[_0x20f388('0x108')][_0x5366e6[_0x20f388('0xba')]][_0x20f388('0x63')]&&_0xb9a31f[_0x20f388('0x31')]===_0x20f388('0x156')){const _0x128784=this;return new Promise(function(_0x3154f1,_0x114193){const _0x1c9677=_0x20f388;delete _0x128784[_0x1c9677('0xa5')][_0xb9a31f[_0x1c9677('0x207')]],_0x128784[_0x1c9677('0x66')](_0x128784[_0x1c9677('0x108')][_0x5366e6[_0x1c9677('0xba')]]),_0x128784[_0x1c9677('0x108')][_0x5366e6[_0x1c9677('0xba')]][_0x1c9677('0x77')]+=0x1,_0x128784[_0x1c9677('0x108')][_0x5366e6['queue']][_0x1c9677('0x1a9')]+=0x1;const _0x544dba=_0x128784[_0x1c9677('0x108')][_0x5366e6['queue']],_0x5c2af0=new Hangup(_0x5366e6,_0xb9a31f);_0x5c2af0[_0x1c9677('0x91')]=0x13,_0x5c2af0[_0x1c9677('0x27')]=_0x1c9677('0x0'),_0x5c2af0[_0x1c9677('0x222')]=_0x1c9677('0x83'),_0x5c2af0[_0x1c9677('0x13d')]+=0x1,_0x5c2af0[_0x1c9677('0x39')]+=0x1,_0x5c2af0[_0x1c9677('0x216')]=!![],_0x128784[_0x1c9677('0x2')](_0x5c2af0)[_0x1c9677('0x214')](loggerCatch(_0x1c9677('0xf1'))),_0x5c2af0['countbusyretry']+_0x5c2af0[_0x1c9677('0x100')]+_0x5c2af0['countnoanswerretry']+_0x5c2af0[_0x1c9677('0x21')]+_0x5c2af0[_0x1c9677('0x1e6')]+_0x5c2af0['countabandonedretry']+_0x5c2af0[_0x1c9677('0x13d')]+_0x5c2af0[_0x1c9677('0x17d')]>=_0x544dba['dialGlobalMaxRetry']?_0x128784[_0x1c9677('0x13')](_0x5c2af0,_0x3154f1,_0x114193,_0x1c9677('0x1fe')):_0x5c2af0[_0x1c9677('0x13d')]>=_0x544dba[_0x1c9677('0x213')]?_0x128784['createStateFinal'](_0x5c2af0,_0x3154f1,_0x114193,_0x1c9677('0x1cc')):(_0x128784[_0x1c9677('0x1ea')]({'active':![],'countmachineretry':_0x5c2af0[_0x1c9677('0x13d')],'scheduledat':moment()[_0x1c9677('0x210')](_0x544dba[_0x1c9677('0x1b3')],_0x1c9677('0x13c'))[_0x1c9677('0x81')](_0x1c9677('0x17c')),'ContactId':_0x5c2af0[_0x1c9677('0x1de')],'ListId':_0x5c2af0[_0x1c9677('0x1e')],'VoiceQueueId':_0x5c2af0['VoiceQueueId']||undefined,'CampaignId':_0x5c2af0[_0x1c9677('0x219')]||undefined})[_0x1c9677('0x214')](loggerCatch(_0x1c9677('0x1e4'))),_0x3154f1({'reschedule':0x1}));});}}},Dialer[_0xab0e6e('0x3d')]['syncHangup']=function(_0x6a930a){const _0x43517e=_0xab0e6e,_0x1746ad=this[_0x43517e('0xa5')][_0x6a930a[_0x43517e('0x207')]];let _0x927988;_0x1746ad&&_0x1746ad[_0x43517e('0xf7')]===_0x43517e('0x75')&&(delete this[_0x43517e('0xa5')][_0x6a930a['uniqueid']],this[_0x43517e('0x66')](this[_0x43517e('0x108')][_0x1746ad[_0x43517e('0xba')]]),this[_0x43517e('0x108')][_0x1746ad[_0x43517e('0xba')]][_0x43517e('0x33')]+=0x1,_0x927988=new Hangup(_0x1746ad,_0x6a930a),this[_0x43517e('0x2')](_0x927988)[_0x43517e('0x214')](loggerCatch(_0x43517e('0x193'))),this[_0x43517e('0x34')](_0x927988)['catch'](loggerCatch('[syncHangupIvr]'))),_0x1746ad&&_0x1746ad['type']!=='ivr'&&isNotNull(this['voiceQueues'][_0x1746ad['queue']][_0x43517e('0x118')])&&(delete this[_0x43517e('0xa5')][_0x6a930a[_0x43517e('0x207')]],this[_0x43517e('0x66')](this[_0x43517e('0xa7')][_0x1746ad[_0x43517e('0xba')]]),this[_0x43517e('0xa7')][_0x1746ad[_0x43517e('0xba')]][_0x43517e('0x77')]+=0x1,this[_0x43517e('0xa7')][_0x1746ad[_0x43517e('0xba')]][_0x43517e('0x1a9')]+=0x1,_0x927988=new Hangup(_0x1746ad,_0x6a930a),_0x927988['state']=0x10,_0x927988[_0x43517e('0x27')]=_0x43517e('0xd8'),_0x927988[_0x43517e('0x222')]=_0x43517e('0x1f0'),this[_0x43517e('0x2')](_0x927988)[_0x43517e('0x214')](loggerCatch(_0x43517e('0x193'))),this[_0x43517e('0x34')](_0x927988)[_0x43517e('0x214')](loggerCatch(_0x43517e('0x199')))),_0x1746ad&&_0x1746ad[_0x43517e('0xf7')]!=='ivr'&&!isNotNull(this[_0x43517e('0xa7')][_0x1746ad[_0x43517e('0xba')]][_0x43517e('0x118')])&&(delete this[_0x43517e('0xa5')][_0x6a930a['uniqueid']],this[_0x43517e('0x66')](this['voiceQueues'][_0x1746ad[_0x43517e('0xba')]]),this[_0x43517e('0xa7')][_0x1746ad[_0x43517e('0xba')]]['outboundUnknownCallsDay']+=0x1,_0x927988=new Hangup(_0x1746ad,_0x6a930a),_0x927988['state']=0xc,_0x927988[_0x43517e('0x27')]=_0x6a930a[_0x43517e('0x9b')],_0x927988[_0x43517e('0x222')]='Unknow',this[_0x43517e('0x2')](_0x927988)['catch'](loggerCatch(_0x43517e('0x193'))),this['moveContactManagedDialer'](_0x927988)[_0x43517e('0x214')](loggerCatch('[syncHangupIvr]')));},Dialer['prototype']['syncAgentComplete']=function(_0x3de4d7){const _0x1e2712=_0xab0e6e,_0x4c90c2=this[_0x1e2712('0xa5')][_0x3de4d7[_0x1e2712('0x207')]];if(this[_0x1e2712('0xa7')][_0x3de4d7[_0x1e2712('0xba')]]){if(_0x4c90c2&&_0x4c90c2['type']!==_0x1e2712('0x75')){delete this[_0x1e2712('0xa5')][_0x3de4d7[_0x1e2712('0x207')]],this[_0x1e2712('0xa7')][_0x3de4d7[_0x1e2712('0xba')]][_0x1e2712('0x77')]+=0x1;const _0x3bc386=new AgentComplete(_0x4c90c2,_0x3de4d7);_0x3de4d7[_0x1e2712('0x6a')]===_0x1e2712('0x64')&&(_0x3bc386[_0x1e2712('0x158')]=this[_0x1e2712('0xa7')][_0x3de4d7['queue']][_0x1e2712('0xa')]&&this['voiceQueues'][_0x3de4d7[_0x1e2712('0xba')]]['dialAgiAfterHangupAgent']?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined),this[_0x1e2712('0x2')](_0x3bc386)[_0x1e2712('0x214')](loggerCatch('[syncAgentComplete][createHistory]')),this['moveContactManagedDialer'](_0x3bc386)[_0x1e2712('0x214')](loggerCatch(_0x1e2712('0x72')));}}},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x85')]=function(_0x44e999){const _0x26263d=_0xab0e6e;this[_0x26263d('0xa7')][_0x44e999['queue']]&&(this[_0x26263d('0xa5')][_0x44e999[_0x26263d('0x207')]]&&this[_0x26263d('0xa5')][_0x44e999['uniqueid']][_0x26263d('0xf7')]!==_0x26263d('0x75')&&(this[_0x26263d('0x66')](this[_0x26263d('0xa7')][_0x44e999[_0x26263d('0xba')]]),this['uniqueId'][_0x44e999[_0x26263d('0x207')]][_0x26263d('0x24')]=moment()[_0x26263d('0x81')](_0x26263d('0x17c'))));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x151')]=function(_0x1662ed){const _0x505a88=_0xab0e6e;this[_0x505a88('0x2')](_0x1662ed)[_0x505a88('0x214')](loggerCatch('[syncAgentComplete][createHistory]')),this[_0x505a88('0x34')](_0x1662ed)[_0x505a88('0x214')](loggerCatch(_0x505a88('0x101')));},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x88')]=function(_0x514824){const _0x2e13f5=_0xab0e6e,_0x38cb67=this[_0x2e13f5('0xa5')][_0x514824[_0x2e13f5('0x207')]];if(this['voiceQueues'][_0x514824['queue']]){if(_0x38cb67&&_0x38cb67[_0x2e13f5('0xf7')]!==_0x2e13f5('0x75')){delete this[_0x2e13f5('0xa5')][_0x514824[_0x2e13f5('0x207')]],this['updateOriginated'](this[_0x2e13f5('0xa7')][_0x514824['queue']]),_0x38cb67['droptime']=moment()[_0x2e13f5('0x81')](_0x2e13f5('0x17c'));const _0x2aea03=new QueueCallerAbandon(_0x38cb67,_0x514824);if(getSeconds(_0x38cb67[_0x2e13f5('0x107')],_0x38cb67[_0x2e13f5('0x5c')])>=_0x38cb67[_0x2e13f5('0x1b8')]){this[_0x2e13f5('0xa7')][_0x514824[_0x2e13f5('0xba')]]['predictiveIntervalDroppedCallsTimeout']+=0x1,this[_0x2e13f5('0xa7')][_0x514824[_0x2e13f5('0xba')]][_0x2e13f5('0x6e')]+=0x1,this[_0x2e13f5('0xa7')][_0x514824[_0x2e13f5('0xba')]][_0x2e13f5('0x4')]+=0x1,_0x2aea03[_0x2e13f5('0x91')]=0xa,_0x2aea03[_0x2e13f5('0x27')]=_0x2e13f5('0x97'),_0x2aea03[_0x2e13f5('0x123')]=_0x2e13f5('0x1b5'),_0x2aea03[_0x2e13f5('0x158')]=this[_0x2e13f5('0xa7')][_0x514824[_0x2e13f5('0xba')]][_0x2e13f5('0xa')]?moment()[_0x2e13f5('0x81')](_0x2e13f5('0x17c')):undefined,_0x2aea03[_0x2e13f5('0x1e6')]+=0x1,_0x2aea03[_0x2e13f5('0x39')]+=0x1;if(_0x2aea03[_0x2e13f5('0x1e6')]>=this[_0x2e13f5('0xa7')][_0x514824[_0x2e13f5('0xba')]][_0x2e13f5('0x1a4')])this['queueCallerAbandonCreateState'](_0x2aea03);else{this['rescheduleContact']({'active':![],'countdropretry':_0x2aea03[_0x2e13f5('0x1e6')],'scheduledat':moment()[_0x2e13f5('0x210')](this[_0x2e13f5('0xa7')][_0x514824[_0x2e13f5('0xba')]][_0x2e13f5('0x20d')],_0x2e13f5('0x13c'))[_0x2e13f5('0x81')](_0x2e13f5('0x17c')),'ContactId':_0x38cb67[_0x2e13f5('0x1de')],'ListId':_0x38cb67[_0x2e13f5('0x1e')],'VoiceQueueId':_0x38cb67[_0x2e13f5('0xbe')]||undefined,'CampaignId':_0x38cb67['CampaignId']||undefined})[_0x2e13f5('0x214')](loggerCatch(_0x2e13f5('0x1e9')));const _0x202ffc=new History(_0x2aea03);_0x202ffc[_0x2e13f5('0x91')]=0xa,_0x202ffc[_0x2e13f5('0x27')]=_0x2e13f5('0x97'),_0x202ffc[_0x2e13f5('0x205')]=moment()[_0x2e13f5('0x81')](_0x2e13f5('0x17c')),_0x202ffc[_0x2e13f5('0x1d4')]=_0x202ffc[_0x2e13f5('0x205')],_0x202ffc[_0x2e13f5('0x187')]=_0x2aea03[_0x2e13f5('0x187')],_0x202ffc[_0x2e13f5('0x175')]=_0x2aea03[_0x2e13f5('0x175')],this[_0x2e13f5('0x2')](_0x202ffc)[_0x2e13f5('0x214')](loggerCatch('[syncAgentComplete][createHistory][10]'));}}else{this[_0x2e13f5('0xa7')][_0x514824['queue']][_0x2e13f5('0x15f')]+=0x1,this[_0x2e13f5('0xa7')][_0x514824['queue']][_0x2e13f5('0xf8')]+=0x1,_0x2aea03[_0x2e13f5('0x91')]=0xb,_0x2aea03[_0x2e13f5('0x27')]='Abandoned',_0x2aea03[_0x2e13f5('0x123')]=_0x2e13f5('0x60'),_0x2aea03['countabandonedretry']+=0x1,_0x2aea03[_0x2e13f5('0x39')]+=0x1;if(_0x2aea03['countabandonedretry']>=this[_0x2e13f5('0xa7')][_0x514824[_0x2e13f5('0xba')]]['dialAbandonedMaxRetry'])this[_0x2e13f5('0x151')](_0x2aea03);else{this[_0x2e13f5('0x1ea')]({'active':![],'countabandonedretry':_0x2aea03['countabandonedretry'],'scheduledat':moment()[_0x2e13f5('0x210')](this['voiceQueues'][_0x514824[_0x2e13f5('0xba')]]['dialAbandonedRetryFrequency'],'minutes')['format'](_0x2e13f5('0x17c')),'ContactId':_0x38cb67[_0x2e13f5('0x1de')],'ListId':_0x38cb67['ListId'],'VoiceQueueId':_0x38cb67[_0x2e13f5('0xbe')]||undefined,'CampaignId':_0x38cb67[_0x2e13f5('0x219')]||undefined})[_0x2e13f5('0x214')](loggerCatch(_0x2e13f5('0xe5')));const _0x1b047c=new History(_0x2aea03);_0x1b047c[_0x2e13f5('0x91')]=0xb,_0x1b047c[_0x2e13f5('0x27')]=_0x2e13f5('0x1b7'),_0x1b047c['starttime']=moment()[_0x2e13f5('0x81')](_0x2e13f5('0x17c')),_0x1b047c[_0x2e13f5('0x1d4')]=_0x1b047c[_0x2e13f5('0x205')],_0x1b047c['calleridname']=_0x2aea03['calleridname'],_0x1b047c[_0x2e13f5('0x175')]=_0x2aea03[_0x2e13f5('0x175')],this[_0x2e13f5('0x2')](_0x1b047c)['catch'](loggerCatch('[syncAgentComplete][createHistory][11]'));}}}}},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0xd0')]=function(_0x4fc2b6){const _0x22dbef=_0xab0e6e;this[_0x22dbef('0x197')][_0x4fc2b6[_0x22dbef('0x207')]]&&(this[_0x22dbef('0x197')][_0x4fc2b6[_0x22dbef('0x207')]][_0x22dbef('0x41')]=_0x4fc2b6['channel']),this[_0x22dbef('0xa5')][_0x4fc2b6['uniqueid']]&&(this[_0x22dbef('0xa5')][_0x4fc2b6[_0x22dbef('0x207')]][_0x22dbef('0x41')]=_0x4fc2b6[_0x22dbef('0x41')]);},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0xaf')]=function(_0x308990){const _0x316474=_0xab0e6e;if(strategy[this[_0x316474('0xa7')][this[_0x316474('0x197')][_0x308990[_0x316474('0x1f3')]][_0x316474('0xba')]][_0x316474('0x147')]]===_0x316474('0x1a5'))this[_0x316474('0x197')][_0x308990[_0x316474('0x1f3')]]&&_[_0x316474('0x7d')](this['actions'][_0x308990[_0x316474('0x1f3')]][_0x316474('0xfa')])&&_0x308990['status']==='1'&&_0x308990[_0x316474('0x76')]==='0'&&(this[_0x316474('0xb3')][_0x308990[_0x316474('0x8e')]]&&(!this[_0x316474('0xb3')][_0x308990['stateinterface']]['locked']&&(this[_0x316474('0xb3')][_0x308990[_0x316474('0x8e')]][_0x316474('0xfa')]=!![],this[_0x316474('0x197')][_0x308990[_0x316474('0x1f3')]]['locked']=!![],this[_0x316474('0x197')][_0x308990[_0x316474('0x1f3')]][_0x316474('0x8e')]=_0x308990[_0x316474('0x8e')])));else(strategy[this[_0x316474('0xa7')][this['actions'][_0x308990[_0x316474('0x1f3')]][_0x316474('0xba')]][_0x316474('0x147')]]||_0x316474('0x22'))===_0x316474('0x22')&&(this['actions'][_0x308990[_0x316474('0x1f3')]]&&(this[_0x316474('0xb3')][_0x308990['stateinterface']]&&(this['actions'][_0x308990[_0x316474('0x1f3')]]['stateinterface']=_0x308990['stateinterface'],_[_0x316474('0x7d')](this[_0x316474('0x7f')][this['actions'][_0x308990[_0x316474('0x1f3')]][_0x316474('0xba')]])&&(this[_0x316474('0x7f')][this[_0x316474('0x197')][_0x308990[_0x316474('0x1f3')]][_0x316474('0xba')]]=[]),this[_0x316474('0x7f')][this[_0x316474('0x197')][_0x308990[_0x316474('0x1f3')]]['queue']][_0x316474('0x1df')](_[_0x316474('0x12c')](_['pick'](this[_0x316474('0x197')][_0x308990[_0x316474('0x1f3')]],[_0x316474('0x223'),'stateinterface']),{'status':_0x308990['status'],'paused':_0x308990[_0x316474('0x76')]})))));};function unlockQueueStatus(_0x13b0e6,_0x5e4853){setTimeout(function(){const _0x1f5866=a1056_0x5ba1;_['isUndefined'](_0x13b0e6[_0x1f5866('0x1e8')])&&loggerBooked[_0x1f5866('0x1fa')](_0x1f5866('0xef'),_0x5e4853),_0x13b0e6[_0x1f5866('0x1e8')]=!![],loggerBooked[_0x1f5866('0xee')](_0x1f5866('0xfd'),_0x5e4853,JSON['stringify'](_[_0x1f5866('0x50')](_0x13b0e6,[_0x1f5866('0x1bf'),_0x1f5866('0x1e8')])));},0x1f3);}Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x21c')]=function(_0x4f94da){const _0x82a9e9=_0xab0e6e,_0x27a2bd=this,_0x39299b=_0x27a2bd['voiceQueues'][_0x27a2bd['actions'][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]];if(strategy[this[_0x82a9e9('0xa7')][this[_0x82a9e9('0x197')][_0x4f94da['actionid']]['queue']]['strategy']]===_0x82a9e9('0x1a5'))this[_0x82a9e9('0x197')][_0x4f94da['actionid']]&&this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0x8e')]?this[_0x82a9e9('0x138')]['run'](this['actions'][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0x223')],this[_0x82a9e9('0x197')][_0x4f94da['actionid']][_0x82a9e9('0x8e')])[_0x82a9e9('0x214')](function(_0xe4366e){const _0x4dc7d4=_0x82a9e9;logger[_0x4dc7d4('0x1fa')](_0x4dc7d4('0x133'),util['inspect'](_0xe4366e,{'showHidden':![],'depth':null}));})[_0x82a9e9('0x144')](function(){const _0x13b8e9=_0x82a9e9;_0x27a2bd[_0x13b8e9('0x66')](_0x27a2bd['voiceQueues'][_0x27a2bd[_0x13b8e9('0x197')][_0x4f94da[_0x13b8e9('0x1f3')]][_0x13b8e9('0xba')]]),_0x27a2bd[_0x13b8e9('0xb3')][_0x27a2bd['actions'][_0x4f94da[_0x13b8e9('0x1f3')]]['stateinterface']][_0x13b8e9('0xfa')]=![],delete _0x27a2bd[_0x13b8e9('0x197')][_0x4f94da[_0x13b8e9('0x1f3')]],unlockQueueStatus(_0x39299b);}):(this[_0x82a9e9('0x66')](this['voiceQueues'][this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]]),this[_0x82a9e9('0x1ea')]({'active':![],'ContactId':this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0x1de')],'ListId':this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0x1e')],'VoiceQueueId':this['actions'][_0x4f94da['actionid']]['VoiceQueueId']||undefined,'CampaignId':this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0x219')]||undefined})[_0x82a9e9('0x214')](loggerCatch(_0x82a9e9('0x194'))),delete this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]],unlockQueueStatus(_0x39299b));else{if((strategy[this[_0x82a9e9('0xa7')][this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]][_0x82a9e9('0x147')]]||_0x82a9e9('0x22'))===_0x82a9e9('0x22')){let _0x32cc35;if(this['actions'][_0x4f94da[_0x82a9e9('0x1f3')]]&&!_[_0x82a9e9('0x150')](this[_0x82a9e9('0x7f')][this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]])){this['queueBookedRR'][_0x27a2bd[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]]&&(this[_0x82a9e9('0x11a')][_0x27a2bd['actions'][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]]=this[_0x82a9e9('0x11a')][this[_0x82a9e9('0x197')][_0x4f94da['actionid']][_0x82a9e9('0xba')]]?this[_0x82a9e9('0x11a')][this[_0x82a9e9('0x197')][_0x4f94da['actionid']][_0x82a9e9('0xba')]]:this[_0x82a9e9('0x7f')][this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]]?this[_0x82a9e9('0x7f')][this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]]['queue']][_0x82a9e9('0x5')]||0x0:0x0);this[_0x82a9e9('0x7f')][this[_0x82a9e9('0x197')][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]][_0x82a9e9('0x5')]=this['queueBookedRR'][this['actions'][_0x4f94da[_0x82a9e9('0x1f3')]][_0x82a9e9('0xba')]];for(let _0x3b3a78=0x0;_0x3b3a78=0x0?!![]:![];})['catch'](myreject(_0x334027)));}else _0x422d86['push'](ami[_0x1ef2c1('0x32')]({'action':_0x1ef2c1('0x5f'),'command':util[_0x1ef2c1('0x81')](_0x1ef2c1('0x37'),_0x52fc09,!_[_0x1ef2c1('0x182')](config[_0x1ef2c1('0x2a')][_0x50365f])?_0x50365f:'')})[_0x1ef2c1('0x1c0')](function(_0x498fec){const _0xeb910d=_0x1ef2c1;return _0x498fec[_0xeb910d('0x20f')][_0xeb910d('0x149')](_0xeb910d('0x7e'))>=0x0?!![]:![];})[_0x1ef2c1('0x214')](myreject(_0x334027)));Promise['all'](_0x422d86)['then'](function(_0x227dc){const _0x43c0f0=_0x1ef2c1,_0x5b11df=_[_0x43c0f0('0x7a')](_0x227dc);return _0x5b11df?_0x313f14(_0x5b11df):(_0x3eb6d1[_0x43c0f0('0x13e')]=_0x885bd2?_0x43c0f0('0x184'):'INTERVAL_IS_OVERTIME',_0x334027(msgResponse(_0x43c0f0('0xca'),'Failure',_0x43c0f0('0x4f')+_0x885bd2+'\x20'+_0x3d9645+_0x43c0f0('0x1b2')+util['inspect'](_0x52fc09,{'showHidden':![],'depth':null})+_0x43c0f0('0x16')+_0x50365f)));})['catch'](function(_0x194cf9){const _0x4782f8=_0x1ef2c1;return _0x334027(msgResponse(_0x4782f8('0x1a3'),'Failure',JSON[_0x4782f8('0x164')](_0x194cf9)));});});},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x9e')]=function(_0x1c1515){const _0x1970f8=this;return function(){const _0xbd933b=a1056_0x5ba1;switch(_0x1c1515[_0xbd933b('0x143')]){case'progressive':freeVariablesPredictive(_0x1c1515),_0x1970f8['handlePower'](_0x1c1515,0x1);break;case _0xbd933b('0x3c'):freeVariablesPredictive(_0x1c1515),_0x1970f8[_0xbd933b('0xa1')](_0x1c1515,_0x1c1515[_0xbd933b('0x109')]);break;case _0xbd933b('0x21d'):_0x1970f8[_0xbd933b('0x21d')](_0x1c1515);break;case _0xbd933b('0x112'):freeVariablesPredictive(_0x1c1515),_0x1970f8[_0xbd933b('0xa1')](_0x1c1515,0x1);break;default:freeVariablesPredictive(_0x1c1515),logger[_0xbd933b('0x1fa')](_0xbd933b('0x1e1'),_0x1c1515['name'],_0xbd933b('0xa4'));}};},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x1d8')]=function(_0x307927){const _0xcbc142=this;return function(){const _0x14bd97=a1056_0x5ba1;_0xcbc142[_0x14bd97('0xb4')](_0x307927);};},Dialer['prototype']['syncQueueSummary']=function(_0x133311){const _0x544a8b=_0xab0e6e,_0x120fdf=this;isNotPreview(_0x133311['dialMethod'])?isVoiceQueueOutbound(_0x133311['type'])&&isActive(_0x133311[_0x544a8b('0xac')])?(_0x133311[_0x544a8b('0x17')]=!![],Promise[_0x544a8b('0x168')]()[_0x544a8b('0x1c0')](checkIsLoggedIn(_0x133311,_0x133311[_0x544a8b('0xe0')]))[_0x544a8b('0x1c0')](checkIsActive(_0x133311,_0x133311[_0x544a8b('0xac')]))[_0x544a8b('0x1c0')](checkInterval(_0x133311))['then'](_0x120fdf['checkIsTrunkReachable'](_0x133311))[_0x544a8b('0x1c0')](_0x120fdf['checkIfTime'](_0x133311[_0x544a8b('0x119')],_0x133311[_0x544a8b('0x1fd')],_0x133311['name'],_0x133311))['then'](_0x120fdf[_0x544a8b('0x9f')](_0x133311[_0x544a8b('0xd7')],_0x133311['dialTimezone'],_0x133311[_0x544a8b('0x1bf')],_0x133311))[_0x544a8b('0x1c0')](_0x120fdf[_0x544a8b('0x9e')](_0x133311))[_0x544a8b('0x214')](loggerCatchQueueSummary(_0x544a8b('0x1dd'),_0x133311))):notSendMessagesQueue(_0x133311):freeVariablesPredictive(_0x133311);},Dialer[_0xab0e6e('0x3d')]['syncCampaigns']=function(){const _0x4e46e7=_0xab0e6e,_0x206ec7=this;let _0x69bbc8;for(const _0x4174b6 in this[_0x4e46e7('0x108')]){typeof this[_0x4e46e7('0x108')][_0x4174b6]!==_0x4e46e7('0x1ac')&&(_0x69bbc8=this[_0x4e46e7('0x108')][_0x4174b6],isCampaignIvr(_0x69bbc8[_0x4e46e7('0xf7')])&&isActive(_0x69bbc8['active'])?(_0x69bbc8[_0x4e46e7('0x17')]=!![],Promise[_0x4e46e7('0x168')]()[_0x4e46e7('0x1c0')](checkIsActive(_0x69bbc8,_0x69bbc8[_0x4e46e7('0x5d')]))[_0x4e46e7('0x1c0')](checkInterval(_0x69bbc8))[_0x4e46e7('0x1c0')](_0x206ec7['checkIsTrunkReachable'](_0x69bbc8))[_0x4e46e7('0x1c0')](_0x206ec7['checkIfTime'](_0x69bbc8[_0x4e46e7('0x119')],_0x69bbc8[_0x4e46e7('0x1fd')],_0x69bbc8[_0x4e46e7('0x1bf')],_0x69bbc8))['then'](_0x206ec7[_0x4e46e7('0x9f')](_0x69bbc8[_0x4e46e7('0xd7')],_0x69bbc8[_0x4e46e7('0x1fd')],_0x69bbc8[_0x4e46e7('0x1bf')],_0x69bbc8))['then'](_0x206ec7[_0x4e46e7('0x1d8')](_0x69bbc8))[_0x4e46e7('0x214')](loggerCatchQueueSummary(_0x4e46e7('0x86'),_0x69bbc8))):notSendMessagesCampaign(_0x69bbc8));}};function getCallerIdRandom(_0x2a52c7,_0x4e123d){const _0x26ebf1=_0xab0e6e;_0x4e123d<=0x0&&(_0x4e123d=0x1);const _0x5f2b1e=new RegExp(_0x26ebf1('0x162')+_0x4e123d+'}$'),_0x3bbef7=Math['pow'](0xa,_0x4e123d-0x1),_0x560e80=Math[_0x26ebf1('0x59')](0xa,_0x4e123d)-0x1;return util[_0x26ebf1('0x81')]('%s',_[_0x26ebf1('0x1a6')](_0x2a52c7,_0x5f2b1e,_['random'](_0x3bbef7,_0x560e80)));}function extractCalleridName(_0x1b470b){const _0x5ad0ea=_0x1b470b['match'](/"(.*?)"/);return _0x5ad0ea?_0x5ad0ea[0x1]:_0x1b470b;}function extractCalleridNumber(_0x1dfe9a){const _0x217a64=_0xab0e6e,_0x1c3a4f=_0x1dfe9a[_0x217a64('0x173')](/<(.*?)>/);return _0x1c3a4f?_0x1c3a4f[0x1]:_0x1dfe9a;}Dialer[_0xab0e6e('0x3d')]['actionOriginate']=function(_0xeca436,_0x370e3c){const _0x461086=_0xab0e6e,_0x3aec4b=getConfigService(),_0x3c7c9e=this,_0x17f6b4=uuid['v4']();return this[_0x461086('0x197')][_0x17f6b4]=new Action(_0xeca436,_0x370e3c,_0x17f6b4),new Promise(function(_0x21cfbc,_0x4a62d0){const _0x539e07=_0x461086;if(_[_0x539e07('0x182')](_0xeca436)&&_0x539e07('0x1f7')!==typeof _0xeca436)return _0x4a62d0(msgResponse(_0x539e07('0x11c'),_0x539e07('0xf2'),_0x539e07('0x159')));if(_[_0x539e07('0x182')](_0x370e3c[_0x539e07('0x3e')][_0x539e07('0xc9')])||_0x370e3c[_0x539e07('0x3e')][_0x539e07('0xc9')]===null)return _0x4a62d0(msgResponse(_0x539e07('0x11c'),_0x539e07('0xf2'),_0x539e07('0xa0')));const _0x298fd1={'XMD-CALLERID':_0x3c7c9e[_0x539e07('0x197')][_0x17f6b4]['getCaller'](),'XMD-AGI':_0xeca436[_0x539e07('0x118')]?util[_0x539e07('0x81')](_0x539e07('0x1e2'),_0x3aec4b['agiIp'],_0xeca436['dialQueueProject']):_0x539e07('0x201'),'XMD-AGIAFTER':_0xeca436[_0x539e07('0xa')]?util[_0x539e07('0x81')](_0x539e07('0x1e2'),_0x3aec4b[_0x539e07('0x169')],_0xeca436['dialQueueProject2']):_0x539e07('0x201'),'XMD-QUEUE':_0xeca436[_0x539e07('0xf7')]==='outbound'?util[_0x539e07('0x81')](_0x539e07('0xbc'),_0xeca436[_0x539e07('0x1bf')],_0xeca436[_0x539e07('0x80')]||'',_0xeca436['dialAgiAfterHangupAgent']?'c':'',_0xeca436['dialQueueTimeout']||0x3):_0x539e07('0x201'),'XMD-CONTACTID':_0x370e3c[_0x539e07('0x1de')],'XMD-CDRTYPE':_0x539e07('0x1b9'),'CALLERID(all)':_0x3c7c9e['actions'][_0x17f6b4]['getCaller'](),'XMD-AMD':_0xeca436['dialAMDActive']?'ACTIVE':_0x539e07('0x201'),'XMD-DESTINATION':'xcally-motion-dialer'};_0xeca436[_0x539e07('0x63')]&&(_0x298fd1[_0x539e07('0xc2')]=_0xeca436[_0x539e07('0x179')]||0x9c4,_0x298fd1['XMD-AMDGREETING']=_0xeca436[_0x539e07('0x1aa')]||0x5dc,_0x298fd1[_0x539e07('0xeb')]=_0xeca436[_0x539e07('0x14c')]||0x320,_0x298fd1[_0x539e07('0x124')]=_0xeca436[_0x539e07('0xaa')]||0x1388,_0x298fd1[_0x539e07('0x98')]=_0xeca436[_0x539e07('0x1bc')]||0x64,_0x298fd1[_0x539e07('0xde')]=_0xeca436['dialAMDBetweenWordsSilence']||0x32,_0x298fd1[_0x539e07('0xad')]=_0xeca436[_0x539e07('0x84')]||0x3,_0x298fd1[_0x539e07('0xe6')]=_0xeca436[_0x539e07('0x1c9')]||0x100,_0x298fd1[_0x539e07('0xf4')]=_0xeca436[_0x539e07('0x167')]||0x1388);_0xeca436[_0x539e07('0xf7')]===_0x539e07('0x11d')?_0x298fd1[_0x539e07('0x195')]=_0x370e3c[_0x539e07('0xbe')]:_0x298fd1[_0x539e07('0xc5')]=_0x370e3c[_0x539e07('0x219')];for(const _0x296f4f in _0x370e3c[_0x539e07('0x3e')]){typeof _0x370e3c[_0x539e07('0x3e')][_0x296f4f]!=='undefined'&&(isNotNull(_0x370e3c['Contact'][_0x296f4f])&&_0x296f4f!=='id'&&_0x296f4f!==_0x539e07('0x4b')&&_0x296f4f!==_0x539e07('0x19d')&&_0x296f4f!==_0x539e07('0x10')&&(_0x298fd1[util[_0x539e07('0x81')](_0x539e07('0xd4'),_0x539e07('0x15'),_[_0x539e07('0x191')](_0x296f4f))]=_0x370e3c[_0x539e07('0x3e')][_0x296f4f]));}const _0x155235=_0x3c7c9e[_0x539e07('0xf3')](_0xeca436['Trunk'])?getCallerId(_0xeca436[_0x539e07('0x1c1')][_0x539e07('0x19a')],_0xeca436[_0x539e07('0x131')],_0xeca436[_0x539e07('0x1db')]>0x0?getCallerIdRandom(_0xeca436[_0x539e07('0x20b')],_0xeca436[_0x539e07('0x1db')]):_0xeca436[_0x539e07('0x20b')]):getCallerId(_[_0x539e07('0x7d')](_0xeca436[_0x539e07('0x1a1')])?_0xeca436[_0x539e07('0x1c1')][_0x539e07('0x19a')]:_0xeca436[_0x539e07('0x1a1')][_0x539e07('0x19a')],_0xeca436['dialOriginateCallerIdName'],_0xeca436[_0x539e07('0x1db')]>0x0?getCallerIdRandom(_0xeca436[_0x539e07('0x20b')],_0xeca436[_0x539e07('0x1db')]):_0xeca436['dialOriginateCallerIdNumber']);if(_0x155235){const _0x2e7b2d=extractCalleridName(_0x155235);_0x298fd1[_0x539e07('0x2d')]=_0x2e7b2d,_0x3c7c9e['actions'][_0x17f6b4][_0x539e07('0x38')]=_0x2e7b2d;const _0xa5c554=extractCalleridNumber(_0x155235);_0x298fd1[_0x539e07('0x1c4')]==_0xa5c554,_0x3c7c9e['actions'][_0x17f6b4][_0x539e07('0x1a8')]=_0xa5c554;}return ami['Action']({'actionid':_0x17f6b4,'action':_0x539e07('0x11c'),'channel':_0x3c7c9e[_0x539e07('0xf3')](_0xeca436[_0x539e07('0x1c1')])?util[_0x539e07('0x81')](_0x539e07('0x1f'),_0xeca436[_0x539e07('0x1c1')]['name'],isNotNull(_0xeca436['dialPrefix'])?_0xeca436[_0x539e07('0x16f')][_0x539e07('0x47')]()||'':'',_0xeca436[_0x539e07('0x8f')]>0x0?_0x370e3c[_0x539e07('0x3e')][_0x539e07('0xc9')][_0x539e07('0x2b')](_0xeca436[_0x539e07('0x8f')]):_0x370e3c['Contact'][_0x539e07('0xc9')]):util[_0x539e07('0x81')]('SIP/%s/%s%s',_['isNil'](_0xeca436[_0x539e07('0x1a1')])?_0xeca436['Trunk'][_0x539e07('0x1bf')]:_0xeca436[_0x539e07('0x1a1')][_0x539e07('0x1bf')],isNotNull(_0xeca436[_0x539e07('0x16f')])?_0xeca436[_0x539e07('0x16f')][_0x539e07('0x47')]()||'':'',_0xeca436[_0x539e07('0x8f')]>0x0?_0x370e3c[_0x539e07('0x3e')][_0x539e07('0xc9')][_0x539e07('0x2b')](_0xeca436[_0x539e07('0x8f')]):_0x370e3c['Contact']['phone']),'callerid':_0x155235,'Exten':_0x539e07('0x8'),'Context':_0x539e07('0x137'),'Priority':'1','variable':_0x298fd1,'timeout':(_0xeca436[_0x539e07('0x1fc')]||0x1e)*0x3e8,'async':!![],'channelid':_0x17f6b4})[_0x539e07('0x1c0')](function(_0x357295){return _0x21cfbc(_0x357295);})['catch'](function(_0x58e927){const _0x47eecd=_0x539e07;_0xeca436['outboundOriginateFailureCallsDay']+=0x1;const _0x136ab=new History(_0x3c7c9e[_0x47eecd('0x197')][_0x17f6b4]);logger['error'](util['format'](_0x47eecd('0x116'),JSON[_0x47eecd('0x164')](_0x58e927))),_0x136ab['state']=0xe,_0x136ab[_0x47eecd('0x27')]=_0x47eecd('0x1bb'),_0x136ab[_0x47eecd('0x205')]=moment()[_0x47eecd('0x81')]('YYYY-MM-DD\x20HH:mm:ss'),_0x136ab[_0x47eecd('0x1d4')]=_0x136ab['starttime'],_0x3c7c9e[_0x47eecd('0x2')](_0x136ab)[_0x47eecd('0x214')](loggerCatch(_0x47eecd('0x132'))),_0x3c7c9e[_0x47eecd('0x34')](_0x136ab)[_0x47eecd('0x214')](loggerCatch('[originate][error]'))[_0x47eecd('0x144')](function(){const _0xf50f6a=_0x47eecd;return delete _0x3c7c9e[_0xf50f6a('0x197')][_0x17f6b4],_0x4a62d0(msgResponse(_0xf50f6a('0x11c'),_0xf50f6a('0x121'),'originate\x20action\x20Error'));});});});},Dialer[_0xab0e6e('0x3d')]['syncOriginateResponse']=function(_0x22cafa){const _0x40adce=_0xab0e6e,_0xe83fe7=this[_0x40adce('0x197')][_0x22cafa[_0x40adce('0x1f3')]];if(_0xe83fe7){delete this['actions'][_0x22cafa[_0x40adce('0x1f3')]],_0xe83fe7[_0x40adce('0x5c')]=moment()[_0x40adce('0x81')](_0x40adce('0x17c'));const _0xf20e2c=_0xe83fe7['type']==='ivr'?this[_0x40adce('0x108')][_0xe83fe7[_0x40adce('0xba')]]:this[_0x40adce('0xa7')][_0xe83fe7[_0x40adce('0xda')]()];if(!this[_0x40adce('0x1ee')](_0x22cafa['response']))return this[_0x40adce('0x66')](_0xf20e2c),this[_0x40adce('0xb1')](_0xe83fe7,_0xf20e2c,_0x22cafa)[_0x40adce('0x1c0')](function(){})[_0x40adce('0x214')](loggerCatch(_0x40adce('0xd5')));else this['uniqueId'][_0x22cafa['uniqueid']]=_0xe83fe7;}},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x1c')]=function(_0x2544c2,_0x134ef7,_0x6a560){const _0x296ee6=_0xab0e6e,_0x5617c2=new History(_0x134ef7);if(_0x5617c2[_0x296ee6('0xa9')]+_0x5617c2['countcongestionretry']+_0x5617c2[_0x296ee6('0x1c6')]+_0x5617c2[_0x296ee6('0x21')]+_0x5617c2[_0x296ee6('0x1e6')]+_0x5617c2['countabandonedretry']+_0x5617c2['countmachineretry']+_0x5617c2['countagentrejectretry']>=_0x6a560[_0x296ee6('0x3a')]-0x1)return!![];switch(_0x2544c2){case 0x3:if(_0x5617c2[_0x296ee6('0x1c6')]>=_0x6a560[_0x296ee6('0x10b')]-0x1)return!![];else this[_0x296ee6('0x1ea')]({'active':![],'countnoanswerretry':_0x5617c2[_0x296ee6('0x1c6')]+=0x1,'scheduledat':moment()[_0x296ee6('0x210')](_0x6a560[_0x296ee6('0xfc')],_0x296ee6('0x13c'))[_0x296ee6('0x81')](_0x296ee6('0x17c')),'ContactId':_0x5617c2['ContactId'],'ListId':_0x5617c2['ListId'],'VoiceQueueId':_0x5617c2[_0x296ee6('0xbe')]||undefined,'CampaignId':_0x5617c2[_0x296ee6('0x219')]||undefined})['catch'](loggerCatch(_0x296ee6('0x130')));break;case 0x5:if(_0x5617c2[_0x296ee6('0xa9')]>=_0x6a560[_0x296ee6('0x120')]-0x1)return!![];else this[_0x296ee6('0x1ea')]({'active':![],'countbusyretry':_0x5617c2[_0x296ee6('0xa9')]+=0x1,'scheduledat':moment()[_0x296ee6('0x210')](_0x6a560[_0x296ee6('0xa3')],'minutes')[_0x296ee6('0x81')](_0x296ee6('0x17c')),'ContactId':_0x5617c2[_0x296ee6('0x1de')],'ListId':_0x5617c2[_0x296ee6('0x1e')],'VoiceQueueId':_0x5617c2['VoiceQueueId']||undefined,'CampaignId':_0x5617c2[_0x296ee6('0x219')]||undefined})['catch'](loggerCatch(_0x296ee6('0x21f')));break;case 0x8:if(_0x5617c2[_0x296ee6('0x100')]>=_0x6a560['dialCongestionMaxRetry']-0x1)return!![];else this[_0x296ee6('0x1ea')]({'active':![],'countcongestionretry':_0x5617c2['countcongestionretry']+=0x1,'scheduledat':moment()[_0x296ee6('0x210')](_0x6a560['dialCongestionRetryFrequency'],_0x296ee6('0x13c'))['format'](_0x296ee6('0x17c')),'ContactId':_0x5617c2[_0x296ee6('0x1de')],'ListId':_0x5617c2[_0x296ee6('0x1e')],'VoiceQueueId':_0x5617c2['VoiceQueueId']||undefined,'CampaignId':_0x5617c2['CampaignId']||undefined})[_0x296ee6('0x214')](loggerCatch(_0x296ee6('0x52')));break;case 0x0:if(_0x5617c2[_0x296ee6('0x21')]>=_0x6a560[_0x296ee6('0x11e')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countnosuchnumberretry':_0x5617c2[_0x296ee6('0x21')]+=0x1,'scheduledat':moment()['add'](_0x6a560['dialNoSuchNumberRetryFrequency'],_0x296ee6('0x13c'))[_0x296ee6('0x81')](_0x296ee6('0x17c')),'ContactId':_0x5617c2[_0x296ee6('0x1de')],'ListId':_0x5617c2['ListId'],'VoiceQueueId':_0x5617c2[_0x296ee6('0xbe')]||undefined,'CampaignId':_0x5617c2[_0x296ee6('0x219')]||undefined})['catch'](loggerCatch(_0x296ee6('0x1e0')));break;case 0xa:if(_0x5617c2[_0x296ee6('0x1e6')]>=_0x6a560['dialDropMaxRetry']-0x1)return!![];else this[_0x296ee6('0x1ea')]({'active':![],'countdropretry':_0x5617c2[_0x296ee6('0x1e6')]+=0x1,'scheduledat':moment()[_0x296ee6('0x210')](_0x6a560[_0x296ee6('0x20d')],_0x296ee6('0x13c'))['format'](_0x296ee6('0x17c')),'ContactId':_0x5617c2[_0x296ee6('0x1de')],'ListId':_0x5617c2[_0x296ee6('0x1e')],'VoiceQueueId':_0x5617c2[_0x296ee6('0xbe')]||undefined,'CampaignId':_0x5617c2['CampaignId']||undefined})[_0x296ee6('0x214')](loggerCatch('[rescheduleContact][Drop]'));break;case 0xb:if(_0x5617c2[_0x296ee6('0x65')]>=_0x6a560['dialAbandonedMaxRetry']-0x1)return!![];else this[_0x296ee6('0x1ea')]({'active':![],'countabandonedretry':_0x5617c2['countabandonedretry']+=0x1,'scheduledat':moment()['add'](_0x6a560[_0x296ee6('0xa2')],_0x296ee6('0x13c'))[_0x296ee6('0x81')](_0x296ee6('0x17c')),'ContactId':_0x5617c2['ContactId'],'ListId':_0x5617c2[_0x296ee6('0x1e')],'VoiceQueueId':_0x5617c2[_0x296ee6('0xbe')]||undefined,'CampaignId':_0x5617c2['CampaignId']||undefined})['catch'](loggerCatch(_0x296ee6('0xe5')));break;case 0x13:if(_0x5617c2[_0x296ee6('0x13d')]>=_0x6a560[_0x296ee6('0x213')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countmachineretry':_0x5617c2['countmachineretry']+=0x1,'scheduledat':moment()['add'](_0x6a560[_0x296ee6('0x1b3')],_0x296ee6('0x13c'))[_0x296ee6('0x81')](_0x296ee6('0x17c')),'ContactId':_0x5617c2[_0x296ee6('0x1de')],'ListId':_0x5617c2[_0x296ee6('0x1e')],'VoiceQueueId':_0x5617c2['VoiceQueueId']||undefined,'CampaignId':_0x5617c2['CampaignId']||undefined})[_0x296ee6('0x214')](loggerCatch(_0x296ee6('0x1e4')));break;case 0x14:if(_0x5617c2[_0x296ee6('0x17d')]>=_0x6a560['dialAgentRejectMaxRetry']-0x1)return!![];else this[_0x296ee6('0x1ea')]({'active':![],'countagentrejectretry':_0x5617c2[_0x296ee6('0x17d')]+=0x1,'scheduledat':moment()[_0x296ee6('0x210')](_0x6a560[_0x296ee6('0x1eb')],_0x296ee6('0x13c'))[_0x296ee6('0x81')](_0x296ee6('0x17c')),'ContactId':_0x5617c2[_0x296ee6('0x1de')],'ListId':_0x5617c2['ListId'],'VoiceQueueId':_0x5617c2[_0x296ee6('0xbe')]||undefined,'CampaignId':_0x5617c2[_0x296ee6('0x219')]||undefined})[_0x296ee6('0x214')](loggerCatch(_0x296ee6('0x53')));break;default:return!![];}},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0xb1')]=function(_0x54703e,_0x1bb0a0,_0x2c8bd1){const _0x30358f=this,_0x4581a9=new History(_0x54703e);return new Promise(function(_0x4c9c25,_0x324ecc){const _0x19833a=a1056_0x5ba1;if(_[_0x19833a('0x182')](_0x1bb0a0)&&'object'!==typeof _0x1bb0a0)return _0x324ecc(msgResponse(_0x19833a('0x21e'),_0x19833a('0xf2'),_0x19833a('0x111')));if(_[_0x19833a('0x182')](_0x2c8bd1)&&_0x19833a('0x1f7')!==typeof _0x2c8bd1)return _0x324ecc(msgResponse('[callProgressDetecting]',_0x19833a('0xf2'),_0x19833a('0x48')));switch(_0x2c8bd1[_0x19833a('0x6a')]){case'0':_0x1bb0a0['outboundNoSuchCallsDay']+=0x1,_0x4581a9[_0x19833a('0x91')]=0x0,_0x4581a9['statedesc']=_0x19833a('0x12a'),_0x4581a9[_0x19833a('0x21')]+=0x1,_0x4581a9[_0x19833a('0x39')]+=0x1,ami[_0x19833a('0xc1')](_0x19833a('0xd'),ut[_0x19833a('0x79')](_0x54703e,'nosuchnumber')),_0x30358f[_0x19833a('0x2')](_0x4581a9)['catch'](loggerCatch(_0x19833a('0xf1')));_0x30358f['checkRetriveMax'](0x0,_0x54703e,_0x1bb0a0)&&(_0x4581a9[_0x19833a('0x21')]>=_0x1bb0a0[_0x19833a('0x11e')]?_0x30358f[_0x19833a('0x20c')](_0x4581a9,_0x4c9c25,_0x324ecc,'reason\x200\x20no\x20such\x20number....'):_0x30358f['stateGlobal'](_0x4581a9,_0x4c9c25,_0x324ecc,_0x19833a('0x20e')));break;case'3':_0x1bb0a0[_0x19833a('0x16e')]+=0x1,_0x4581a9[_0x19833a('0x91')]=0x3,_0x4581a9[_0x19833a('0x27')]=_0x19833a('0x104'),_0x4581a9[_0x19833a('0x1c6')]+=0x1,_0x4581a9[_0x19833a('0x39')]+=0x1,ami[_0x19833a('0xc1')](_0x19833a('0xd6'),ut[_0x19833a('0x79')](_0x54703e,_0x19833a('0x49'))),_0x30358f[_0x19833a('0x2')](_0x4581a9)[_0x19833a('0x214')](loggerCatch(_0x19833a('0x10d')));_0x30358f[_0x19833a('0x1c')](0x3,_0x54703e,_0x1bb0a0)&&(_0x4581a9[_0x19833a('0x1c6')]>=_0x1bb0a0[_0x19833a('0x10b')]?_0x30358f['createStateFinal'](_0x4581a9,_0x4c9c25,_0x324ecc,_0x19833a('0x190')):_0x30358f[_0x19833a('0x13')](_0x4581a9,_0x4c9c25,_0x324ecc,_0x19833a('0x190')));break;case'5':_0x1bb0a0[_0x19833a('0x1b1')]+=0x1,_0x4581a9['state']=0x5,_0x4581a9[_0x19833a('0x27')]=_0x19833a('0x13b'),_0x4581a9[_0x19833a('0xa9')]+=0x1,_0x4581a9[_0x19833a('0x39')]+=0x1,ami[_0x19833a('0xc1')](_0x19833a('0x209'),ut[_0x19833a('0x79')](_0x54703e,_0x19833a('0x23'))),_0x30358f[_0x19833a('0x2')](_0x4581a9)[_0x19833a('0x214')](loggerCatch(_0x19833a('0xe2')));_0x30358f[_0x19833a('0x1c')](0x5,_0x54703e,_0x1bb0a0)&&(_0x4581a9[_0x19833a('0xa9')]>=_0x1bb0a0[_0x19833a('0x120')]?_0x30358f[_0x19833a('0x20c')](_0x4581a9,_0x4c9c25,_0x324ecc,_0x19833a('0x106')):_0x30358f[_0x19833a('0x13')](_0x4581a9,_0x4c9c25,_0x324ecc,'reason\x205\x20busy'));break;case'8':_0x1bb0a0[_0x19833a('0x136')]+=0x1,_0x4581a9[_0x19833a('0x91')]=0x8,_0x4581a9[_0x19833a('0x27')]=_0x19833a('0xb8'),_0x4581a9[_0x19833a('0x100')]+=0x1,_0x4581a9[_0x19833a('0x39')]+=0x1,ami[_0x19833a('0xc1')]('custom:agentcongestion',ut[_0x19833a('0x79')](_0x54703e,_0x19833a('0x1c2'))),_0x30358f[_0x19833a('0x2')](_0x4581a9)['catch'](loggerCatch(_0x19833a('0x122')));_0x30358f[_0x19833a('0x1c')](0x8,_0x54703e,_0x1bb0a0)&&(_0x4581a9[_0x19833a('0x100')]>=_0x1bb0a0[_0x19833a('0x92')]?_0x30358f[_0x19833a('0x20c')](_0x4581a9,_0x4c9c25,_0x324ecc,'reason\x208\x20congestion'):_0x30358f[_0x19833a('0x13')](_0x4581a9,_0x4c9c25,_0x324ecc,'reason\x208\x20congestion'));break;case'11':_0x1bb0a0[_0x19833a('0xc3')]+=0x1,_0x4581a9['state']=0xb,_0x4581a9[_0x19833a('0x27')]=_0x19833a('0x1b7'),_0x4581a9[_0x19833a('0x65')]+=0x1,_0x4581a9[_0x19833a('0x39')]+=0x1,_0x30358f['createHistory'](_0x4581a9)['catch'](loggerCatch(_0x19833a('0x172')));_0x30358f[_0x19833a('0x1c')](0xb,_0x54703e,_0x1bb0a0)&&(_0x4581a9['countabandonedretry']>=_0x1bb0a0[_0x19833a('0x99')]?_0x30358f['createStateFinal'](_0x4581a9,_0x4c9c25,_0x324ecc,'reason\x2011\x20abandoned'):_0x30358f[_0x19833a('0x13')](_0x4581a9,_0x4c9c25,_0x324ecc,_0x19833a('0x1')));break;case'20':_0x1bb0a0[_0x19833a('0x8a')]+=0x1,_0x4581a9['state']=0x14,_0x4581a9[_0x19833a('0x27')]=_0x19833a('0x141'),_0x4581a9[_0x19833a('0x17d')]+=0x1,_0x4581a9[_0x19833a('0x39')]+=0x1,ami[_0x19833a('0xc1')](_0x19833a('0x82'),ut[_0x19833a('0x79')](_0x54703e,_0x19833a('0x1c5'))),_0x30358f[_0x19833a('0x2')](_0x4581a9)[_0x19833a('0x214')](loggerCatch('[syncAgentComplete][createHistory][20]'));_0x30358f[_0x19833a('0x1c')](0x14,_0x54703e,_0x1bb0a0)&&(_0x4581a9[_0x19833a('0x17d')]>=_0x1bb0a0['dialAgentRejectMaxRetry']?_0x30358f[_0x19833a('0x20c')](_0x4581a9,_0x4c9c25,_0x324ecc,_0x19833a('0x113')):_0x30358f[_0x19833a('0x13')](_0x4581a9,_0x4c9c25,_0x324ecc,_0x19833a('0x113')));break;default:_0x1bb0a0[_0x19833a('0xab')]+=0x1,_0x4581a9[_0x19833a('0x91')]=0xc,_0x4581a9[_0x19833a('0x27')]=_0x2c8bd1['reason'],_0x30358f['createHistory'](_0x4581a9)[_0x19833a('0x214')](loggerCatch(_0x19833a('0x153')));_0x30358f['checkRetriveMax'](_0x2c8bd1['reason'],_0x54703e,_0x1bb0a0)&&(_0x4581a9[_0x19833a('0xa9')]+_0x4581a9[_0x19833a('0x100')]+_0x4581a9[_0x19833a('0x1c6')]+_0x4581a9[_0x19833a('0x21')]+_0x4581a9[_0x19833a('0x1e6')]+_0x4581a9[_0x19833a('0x65')]+_0x4581a9[_0x19833a('0x13d')]+_0x4581a9['countagentrejectretry']>=_0x1bb0a0[_0x19833a('0x3a')]?_0x30358f[_0x19833a('0x13')](_0x4581a9,_0x4c9c25,_0x324ecc,_0x2c8bd1[_0x19833a('0x6a')]):_0x30358f[_0x19833a('0x20c')](_0x4581a9,_0x4c9c25,_0x324ecc,_0x2c8bd1[_0x19833a('0x6a')]));}});},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x13')]=function(_0xabe638,_0x5244fe,_0x4e5e6a,_0x44df7a){const _0x11b8a0=_0xab0e6e,_0x120931=new Final(_0xabe638);_0x120931[_0x11b8a0('0x91')]=0xf,_0x120931[_0x11b8a0('0x27')]=_0x11b8a0('0xed'),this[_0x11b8a0('0x20c')](_0x120931,_0x5244fe,_0x4e5e6a,_0x44df7a);},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0x20c')]=function(_0x53fb96,_0x3eb8f0,_0x3b0946,_0x290143){const _0x29b282=_0xab0e6e;this[_0x29b282('0x34')](_0x53fb96)[_0x29b282('0x1c0')](function(){const _0x47c3ea=_0x29b282;return _0x3eb8f0(msgResponse(_0x47c3ea('0x21e'),_0x47c3ea('0x15e'),_0x290143));})[_0x29b282('0x214')](function(){const _0x49f821=_0x29b282;return _0x3b0946(msgResponse(_0x49f821('0x10e'),_0x49f821('0xf2'),_0x49f821('0x13f')));});},Dialer[_0xab0e6e('0x3d')]['predictive']=function(_0x5c3ea4){const _0x535d02=_0xab0e6e,_0x15e78a=_0x5c3ea4[_0x535d02('0x9a')]/0x64,_0x47c059=_0x5c3ea4[_0x535d02('0x6e')]/(_0x5c3ea4['outboundDropCallsDayTimeout']+_0x5c3ea4[_0x535d02('0x77')]),_0x425d54=Math[_0x535d02('0x12e')](_0x5c3ea4[_0x535d02('0x16b')]*(_0x5c3ea4[_0x535d02('0x163')]/0x64)),_0x5b7bfe=Math['round'](_0x5c3ea4['predictiveIntervalAvailable']*(_0x5c3ea4[_0x535d02('0x1cf')]/0x64)),_0x178e52=_0x5c3ea4[_0x535d02('0x1af')]+_0x5c3ea4[_0x535d02('0x45')],_0x23854e=Math[_0x535d02('0x5e')](_0x5c3ea4[_0x535d02('0x9d')]*_0x5c3ea4['erlangAbandonmentRate']*_0x5c3ea4[_0x535d02('0xe')]*_0x5c3ea4['predictiveIntervalMultiplicativeFactor']);if(_[_0x535d02('0x182')](_0x5c3ea4['startProgressive']))!_[_0x535d02('0x182')](_0x5c3ea4[_0x535d02('0x10a')])&&(_0x5c3ea4[_0x535d02('0x10a')]=undefined,loggerPredictive[_0x535d02('0x1fa')]('[startMethodPredictive][StartProgressive]','check\x20predictive\x20is\x20not\x20undefine')),!_[_0x535d02('0x182')](_0x5c3ea4[_0x535d02('0xb2')])&&(loggerPredictive['error']('[startMethodPredictive][StartProgressive]',_0x535d02('0x1ce')),clearInterval(_0x5c3ea4[_0x535d02('0xb2')]),_0x5c3ea4['handlePredictive']=undefined),_0x5c3ea4['startProgressive']=moment()[_0x535d02('0x81')](_0x535d02('0x17c')),loggerPredictive[_0x535d02('0xee')](_0x5c3ea4[_0x535d02('0x1bf')],_0x535d02('0x16c'),_0x5c3ea4[_0x535d02('0x96')]),this[_0x535d02('0xa1')](_0x5c3ea4,0x1);else{if(ifInterval(_0x5c3ea4[_0x535d02('0x1d2')],_0x5c3ea4['startProgressive']))this['handlePower'](_0x5c3ea4,0x1),loggerPredictiveCalls['info']('[startMethodPredictive][StartProgressive][Loop]',_0x5c3ea4['startProgressive'],_0x5c3ea4[_0x535d02('0x1bf')]),_0x5c3ea4[_0x535d02('0x9d')]=0x0,_0x5c3ea4[_0x535d02('0x4')]=0x0;else{if(_0x15e78a<_0x47c059&&_0x5c3ea4[_0x535d02('0x206')]===_0x535d02('0xb7'))freeVariablesPredictive(_0x5c3ea4),loggerPredictive[_0x535d02('0xee')](_0x535d02('0x19b'),_0x535d02('0x1fb'),_0x47c059,_0x535d02('0x96'),_0x5c3ea4[_0x535d02('0x1bf')]);else{if(_0x23854e<_0x5c3ea4[_0x535d02('0x4')]&&_0x5c3ea4[_0x535d02('0x206')]===_0x535d02('0xb7'))freeVariablesPredictive(_0x5c3ea4),loggerPredictive[_0x535d02('0xee')](_0x535d02('0x178'),'Max\x20Drop\x20',_0x23854e,_0x535d02('0xc'),_0x5c3ea4[_0x535d02('0x4')],_0x535d02('0x96'),_0x5c3ea4[_0x535d02('0x1bf')]);else{if(!ifInterval(_0x5c3ea4[_0x535d02('0x1d2')],_0x5c3ea4[_0x535d02('0x96')])&&_[_0x535d02('0x182')](_0x5c3ea4[_0x535d02('0x10a')])&&!_[_0x535d02('0x182')](_0x5c3ea4[_0x535d02('0x96')]))_0x5c3ea4[_0x535d02('0x10a')]=moment()[_0x535d02('0x81')](_0x535d02('0x17c')),loggerPredictive[_0x535d02('0xee')](_0x5c3ea4[_0x535d02('0x1bf')],_0x535d02('0xe7'),_0x5c3ea4[_0x535d02('0x10a')]),this[_0x535d02('0x202')](_0x5c3ea4[_0x535d02('0x1d2')])[_0x535d02('0x1c0')](this[_0x535d02('0x1e5')](_0x5c3ea4))[_0x535d02('0x1c0')](mergeDataErlangB(_0x5c3ea4))['then'](this[_0x535d02('0x67')](_0x5c3ea4))['catch'](loggerCatchPredictive(_0x535d02('0x1d9'),_0x5c3ea4));else{if(!ifInterval(_0x5c3ea4[_0x535d02('0x1d2')],_0x5c3ea4[_0x535d02('0x10a')]))_0x5c3ea4[_0x535d02('0x4')]=0x0,_0x5c3ea4[_0x535d02('0x10a')]=moment()[_0x535d02('0x81')](_0x535d02('0x17c')),loggerPredictive['info'](_0x5c3ea4[_0x535d02('0x1bf')],_0x535d02('0x135'),_0x5c3ea4['startPredictive']),clearInterval(_0x5c3ea4[_0x535d02('0xb2')]),_0x5c3ea4[_0x535d02('0xb2')]=undefined,this['averageHandleTime'](_0x5c3ea4[_0x535d02('0x1d2')])[_0x535d02('0x1c0')](this[_0x535d02('0x1e5')](_0x5c3ea4))[_0x535d02('0x1c0')](mergeDataErlangB(_0x5c3ea4))['then'](this[_0x535d02('0x67')](_0x5c3ea4))['catch'](loggerCatchPredictive(_0x535d02('0xcf'),_0x5c3ea4));else{if(_0x5c3ea4[_0x535d02('0x16b')]&&_0x178e52<_0x5c3ea4['predictiveIntervalAvailable']-_0x5b7bfe)freeVariablesPredictive(_0x5c3ea4),loggerPredictive[_0x535d02('0xee')](_0x5c3ea4[_0x535d02('0x1bf')],_0x535d02('0x155'),_0x178e52,_0x535d02('0xcd'),_0x5c3ea4[_0x535d02('0x16b')],'-',_0x5b7bfe,'=',_0x5c3ea4[_0x535d02('0x16b')]-_0x5b7bfe,')');else _0x5c3ea4['predictiveIntervalAvailable']&&_0x178e52>_0x5c3ea4[_0x535d02('0x16b')]+_0x425d54&&(freeVariablesPredictive(_0x5c3ea4),loggerPredictive['info'](_0x5c3ea4['name'],_0x535d02('0x155'),_0x178e52,_0x535d02('0x19f'),_0x5c3ea4['predictiveIntervalAvailable'],'+',_0x425d54,'=',_0x5c3ea4[_0x535d02('0x16b')]+_0x425d54,')'));}}}}}}},Dialer['prototype'][_0xab0e6e('0x1e5')]=function(_0x2482f8){const _0x552a95=this;return function(_0x44173c){return new Promise(function(_0x2c5e1b,_0x10327c){const _0x3cf347=a1056_0x5ba1;_[_0x3cf347('0x12c')](_0x2482f8,_0x44173c[0x0]);if(checkGetDataPredictive(_0x44173c[0x0])){const _0x55694b=_0x2482f8[_0x3cf347('0x45')]+_0x2482f8['available'];_0x2482f8['predictiveIntervalAvailable']=_0x55694b;const _0x2824dd=_0x55694b,_0x258ecc=_0x2482f8[_0x3cf347('0x1d2')]*0x3c,_0x3d1f07=_0x44173c[0x0][_0x3cf347('0x1d')]+_0x44173c[0x0][_0x3cf347('0xdf')],_0x16a17e=(_0x44173c[0x0]['predictiveIntervalAnsweredCalls']+_0x44173c[0x0][_0x3cf347('0x185')]+_0x44173c[0x0][_0x3cf347('0x15f')])/_0x44173c[0x0][_0x3cf347('0xbb')];_0x2482f8['predictiveIntervalHitRate']=_0x16a17e>0x0?_0x16a17e:0x1;switch(_0x2482f8[_0x3cf347('0x206')]){case'dropRate':{const _0x1afd57=_0x2482f8[_0x3cf347('0x9a')]/0x64;return _0x552a95[_0x3cf347('0xdd')](_0x2824dd,_0x258ecc,_0x3d1f07,_0x16a17e,_0x1afd57)[_0x3cf347('0x1c0')](function(_0x238bb8){return _0x2c5e1b(_0x238bb8);});}case _0x3cf347('0xcb'):{const _0x553b47=_0x2482f8['dialPredictiveOptimizationPercentage']/0x64;return _0x552a95[_0x3cf347('0xd1')](_0x2824dd,_0x258ecc,_0x3d1f07,_0x16a17e,_0x553b47)[_0x3cf347('0x1c0')](function(_0x46732b){return _0x2c5e1b(_0x46732b);});}default:return _0x10327c(msgResponse(_0x3cf347('0x16d'),_0x3cf347('0xf2'),_0x3cf347('0xe4')));}}else return _0x10327c(msgResponse(_0x3cf347('0x16d'),'Failure',_0x3cf347('0x12')));});};},Dialer[_0xab0e6e('0x3d')]['getDataPredictiveOld']=function(_0x53dcda){const _0x18e90c=this;return function(_0x1ead28){return new Promise(function(_0x1bd69e,_0x5e48e6){const _0x1e280c=a1056_0x5ba1;_[_0x1e280c('0x12c')](_0x53dcda,_0x1ead28[0x0]);if(checkGetDataPredictive(_0x1ead28[0x0])){loggerPredictive['info'](JSON[_0x1e280c('0x164')](_0x1ead28[0x0]));if(_0x53dcda['dialPredictiveOptimization']===_0x1e280c('0xb7'))return _0x18e90c[_0x1e280c('0x13a')](_0x53dcda['id'])[_0x1e280c('0x1c0')](function(_0x4a8c71){const _0x318bbf=_0x1e280c,_0x10ab0d=_0x53dcda[_0x318bbf('0xe0')]-_0x4a8c71[0x0][_0x318bbf('0x12b')],_0x72b643=_0x53dcda[_0x318bbf('0x1d2')]*0x3c,_0x5770fb=_0x1ead28[0x0][_0x318bbf('0x1d')]+_0x1ead28[0x0]['predictiveIntervalAvgHoldtime'],_0x462c5e=(_0x1ead28[0x0][_0x318bbf('0x10f')]+_0x1ead28[0x0][_0x318bbf('0x185')]+_0x1ead28[0x0][_0x318bbf('0x15f')])/_0x1ead28[0x0][_0x318bbf('0xbb')],_0x5da052=_0x53dcda['dialPredictiveOptimizationPercentage']/0x64;return _0x53dcda['predictiveIntervalPauses']=_0x4a8c71[0x0][_0x318bbf('0x12b')]||0x0,_0x53dcda[_0x318bbf('0xe')]=_0x462c5e>0x0?_0x462c5e:0x1,_0x18e90c[_0x318bbf('0xdd')](_0x10ab0d,_0x72b643,_0x5770fb,_0x462c5e,_0x5da052);})['then'](function(_0x30a6fe){return _0x1bd69e(_0x30a6fe);})[_0x1e280c('0x214')](function(_0xf48792){const _0x5245f3=_0x1e280c;return _0x5e48e6(msgResponse('[CatchErlangB]','Failure',JSON[_0x5245f3('0x164')](_0xf48792)));});if(_0x53dcda['dialPredictiveOptimization']===_0x1e280c('0xcb'))return _0x18e90c['getVoiceQueueRtPauses'](_0x53dcda['id'])[_0x1e280c('0x1c0')](function(_0x2ee66e){const _0x2b39af=_0x1e280c,_0x21bd91=_0x53dcda[_0x2b39af('0xe0')]-_0x2ee66e[0x0][_0x2b39af('0x12b')],_0x3e66c=_0x53dcda[_0x2b39af('0x1d2')]*0x3c,_0xbdc65a=_0x1ead28[0x0]['predictiveIntervalAvgTalktime']+_0x1ead28[0x0][_0x2b39af('0xdf')],_0x22cfe5=(_0x1ead28[0x0][_0x2b39af('0x10f')]+_0x1ead28[0x0][_0x2b39af('0x185')]+_0x1ead28[0x0]['predictiveIntervalDroppedCallsCallersExit'])/_0x1ead28[0x0][_0x2b39af('0xbb')],_0x326084=_0x53dcda['dialPredictiveOptimizationPercentage']/0x64;return _0x53dcda[_0x2b39af('0x68')]=_0x2ee66e[0x0][_0x2b39af('0x12b')]||0x0,_0x53dcda[_0x2b39af('0xe')]=_0x22cfe5>0x0?_0x22cfe5:0x1,_0x18e90c[_0x2b39af('0xd1')](_0x21bd91,_0x3e66c,_0xbdc65a,_0x22cfe5,_0x326084);})['then'](function(_0x154b6c){return _0x1bd69e(_0x154b6c);})[_0x1e280c('0x214')](function(_0x5e2d65){const _0x36b90a=_0x1e280c;return _0x5e48e6(msgResponse('[CatchErlangB]',_0x36b90a('0xf2'),JSON[_0x36b90a('0x164')](_0x5e2d65)));});}else return _0x5e48e6(msgResponse(_0x1e280c('0x16d'),'Failure',_0x1e280c('0x12')));});};},Dialer[_0xab0e6e('0x3d')]['startMethodPredictive']=function(_0x5a8146){const _0x4e54d9=this;return function(){const _0x42a59e=a1056_0x5ba1;let _0x512e8b=0x0,_0x521e28=Math[_0x42a59e('0x5e')](_0x5a8146[_0x42a59e('0x1c3')]*0x3e8);_0x521e28>0x0?(_0x521e28=_0x521e28<0x64?0x64:_0x521e28,loggerPredictive[_0x42a59e('0xee')](_0x5a8146[_0x42a59e('0x1bf')],'one\x20call\x20every:',_0x521e28,_0x42a59e('0x114')),_0x5a8146[_0x42a59e('0xb2')]=setInterval(function(){const _0x466e75=_0x42a59e;_0x4e54d9[_0x466e75('0xb2')](_0x5a8146),loggerPredictiveCalls[_0x466e75('0xee')](_0x466e75('0xb0'),_0x512e8b+=0x1);},_0x521e28)):loggerPredictive['info'](_0x5a8146[_0x42a59e('0x1bf')],_0x42a59e('0x73'));};},Dialer[_0xab0e6e('0x3d')]['checkContactBlack']=function(_0x1b62f9,_0x468c26){const _0x295a1f=this;return function(_0x3fb3f5){const _0x435530=a1056_0x5ba1;if(_['isEmpty'](_0x3fb3f5)){if(_[_0x435530('0x7d')](_0x468c26['UserId'])||!_0x468c26['recallme']){if(_0x1b62f9[_0x435530('0x143')]===_0x435530('0x112')){_0x1b62f9['queueStatusComplete']=_[_0x435530('0x182')](_0x1b62f9[_0x435530('0x1e8')])?!![]:_0x1b62f9[_0x435530('0x1e8')];const _0x5446a5=uuid['v4']();_0x295a1f[_0x435530('0x197')][_0x5446a5]=new Action(_0x1b62f9,_0x468c26,_0x5446a5),loggerBooked['info'](_0x435530('0x55'),_0x5446a5,_0x435530('0xea'),JSON[_0x435530('0x164')](_0x1b62f9['queueStatusComplete']),_0x435530('0x129'),_0x1b62f9[_0x435530('0x1bf')]),_0x1b62f9['queueStatusComplete']?(_0x1b62f9[_0x435530('0x1e8')]=![],_0x295a1f[_0x435530('0x7f')][_0x295a1f[_0x435530('0x197')][_0x5446a5][_0x435530('0xba')]]=[],ami[_0x435530('0x32')]({'actionid':_0x5446a5,'action':_0x435530('0x43'),'queue':_0x1b62f9['name']})['catch'](function(){const _0xe69fb9=_0x435530;_0x295a1f[_0xe69fb9('0x66')](_0x1b62f9),_0x295a1f[_0xe69fb9('0x1ea')]({'active':![],'ContactId':_0x295a1f[_0xe69fb9('0x197')][_0x5446a5][_0xe69fb9('0x1de')],'ListId':_0x295a1f[_0xe69fb9('0x197')][_0x5446a5]['ListId'],'VoiceQueueId':_0x295a1f[_0xe69fb9('0x197')][_0x5446a5]['VoiceQueueId']||undefined,'CampaignId':_0x295a1f[_0xe69fb9('0x197')][_0x5446a5][_0xe69fb9('0x219')]||undefined})['catch'](loggerCatch(_0xe69fb9('0x1f5'))),delete _0x295a1f['actions'][_0x5446a5];})):(loggerBooked[_0x435530('0xee')](_0x435530('0x4d'),JSON['stringify'](_0x1b62f9[_0x435530('0x1e8')]),_0x435530('0x129'),_0x1b62f9[_0x435530('0x1bf')]),_0x295a1f[_0x435530('0x66')](_0x1b62f9),_0x295a1f[_0x435530('0x1ea')]({'active':![],'ContactId':_0x295a1f[_0x435530('0x197')][_0x5446a5][_0x435530('0x1de')],'ListId':_0x295a1f[_0x435530('0x197')][_0x5446a5]['ListId'],'VoiceQueueId':_0x295a1f[_0x435530('0x197')][_0x5446a5][_0x435530('0xbe')]||undefined,'CampaignId':_0x295a1f['actions'][_0x5446a5][_0x435530('0x219')]||undefined})[_0x435530('0x214')](loggerCatch('[unlockOriginate][syncQueueStatusComplete]')),delete _0x295a1f[_0x435530('0x197')][_0x5446a5]);}else return _0x295a1f['actionOriginate'](_0x1b62f9,_0x468c26);}else getDiff(_0x468c26['scheduledat'])<_0x1b62f9['dialRecallMeTimeout']*0x3c?_0x468c26[_0x435530('0x1ae')]&&!_0x468c26[_0x435530('0x1ae')][_0x435530('0xdc')]?_0x295a1f[_0x435530('0x138')][_0x435530('0xf9')](_0x468c26['id'])[_0x435530('0x144')](function(){_0x295a1f['updateOriginated'](_0x1b62f9);}):_0x295a1f[_0x435530('0x181')]({'active':![]},_0x468c26['id'],0x1)[_0x435530('0x144')](function(){const _0x2a3931=_0x435530;console['log'](_0x2a3931('0xcc')),_0x295a1f['updateOriginated'](_0x1b62f9);}):(_0x1b62f9[_0x435530('0x95')]+=0x1,_0x295a1f[_0x435530('0x66')](_0x1b62f9),_0x1b62f9[_0x435530('0x1f8')]?(_0x295a1f[_0x435530('0x1ea')]({'active':![],'recallme':![],'UserId':null,'ContactId':_0x468c26[_0x435530('0x1de')],'ListId':_0x468c26['ListId'],'VoiceQueueId':_0x468c26[_0x435530('0xbe')]||undefined,'CampaignId':_0x468c26['CampaignId']||undefined})['catch'](loggerCatch(_0x435530('0x15c'))),_0x295a1f[_0x435530('0x2')](createObjHistory(_0x1b62f9,_0x468c26,_0x435530('0x7c'),0x17,_0x435530('0xc4')))[_0x435530('0x214')](loggerCatch('[Originate][HistoryDialRecallInQueue][historyCatch]'))):_0x295a1f[_0x435530('0x177')](createObjHistory(_0x1b62f9,_0x468c26,_0x435530('0xd9'),0x16,'RecallFailedTimeout'),_0x435530('0xd2'),_0x435530('0x102')));}else{_0x1b62f9['outboundBlacklistCallsDay']+=0x1,_0x295a1f[_0x435530('0x177')](createObjHistory(_0x1b62f9,_0x468c26,_0x435530('0x6b'),0xd,_0x435530('0x87')),_0x435530('0x36'),'[Originate][MoveBlacklist]');throw _0x435530('0xc7');}};},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0xb4')]=function(_0x1ad1e2){const _0x4fc56c=_0xab0e6e,_0x2c7465=this;let _0x56acb7=_0x1ad1e2[_0x4fc56c('0x19')]-_0x1ad1e2[_0x4fc56c('0x189')]-_0x1ad1e2[_0x4fc56c('0xb9')];emitCampaignSummary(_0x1ad1e2),_0x56acb7>0x0&&(_0x56acb7>this[_0x4fc56c('0x14e')]&&(_0x56acb7=this[_0x4fc56c('0x14e')]),_0x1ad1e2['temp']+=_0x56acb7,this[_0x4fc56c('0x51')](_0x1ad1e2['id'],_0x56acb7,_0x1ad1e2[_0x4fc56c('0x1f4')])[_0x4fc56c('0x1c0')](function(_0x49b14f){const _0x5871e7=_0x4fc56c;_0x1ad1e2[_0x5871e7('0xb9')]-=_0x56acb7,_0x1ad1e2[_0x5871e7('0xb9')]=_0x1ad1e2[_0x5871e7('0xb9')]>0x0?_0x1ad1e2[_0x5871e7('0xb9')]:0x0;if(!checkContactEmpty(_0x49b14f))_0x1ad1e2[_0x5871e7('0x13e')]='AVAILABLE_CONTACTS_FINISHED',logger[_0x5871e7('0xee')](_0x5871e7('0x2f')+_0x1ad1e2[_0x5871e7('0x1bf')]);else{_0x1ad1e2[_0x5871e7('0x189')]+=_0x49b14f[_0x5871e7('0x78')],_0x1ad1e2[_0x5871e7('0x13e')]=_0x5871e7('0x1ef');for(let _0x2373f5=0x0;_0x2373f5<_0x49b14f['length'];_0x2373f5+=0x1){_0x1ad1e2[_0x5871e7('0x166')]+=0x1,_[_0x5871e7('0x7d')](_0x49b14f[_0x2373f5])||_[_0x5871e7('0x7d')](_0x49b14f[_0x2373f5][_0x5871e7('0x3e')])||_[_0x5871e7('0x7d')](_0x49b14f[_0x2373f5]['Contact'][_0x5871e7('0xc9')])?_0x2c7465['emptyContact'](_0x5871e7('0x20'),_0x1ad1e2,_0x49b14f[_0x2373f5]):_0x2c7465[_0x5871e7('0x1d3')](_['pick'](_0x49b14f[_0x2373f5],[_0x5871e7('0x219'),_0x5871e7('0x1b4')]))[_0x5871e7('0x1c0')](_0x2c7465[_0x5871e7('0xff')](_0x1ad1e2,_0x49b14f[_0x2373f5]))[_0x5871e7('0x214')](_0x2c7465[_0x5871e7('0xf5')]('[actionOriginateIvr]\x20',_0x1ad1e2));}}})[_0x4fc56c('0x214')](loggerGetContactDialer(_0x4fc56c('0x90'),_0x1ad1e2,_0x56acb7)));},Dialer[_0xab0e6e('0x3d')]['handlePower']=function(_0x199c98,_0x300f52){const _0x7c33f0=_0xab0e6e,_0x39d9d8=this,_0xd0fc33=[];let _0x399f2c=_0x300f52>=0x1?_0x300f52:0x1;_0x199c98[_0x7c33f0('0x143')]===_0x7c33f0('0x112')&&(_0x399f2c=0x1);let _0xa80c4b=Math[_0x7c33f0('0x5e')](_0x199c98[_0x7c33f0('0x1af')]*_0x399f2c)-_0x199c98[_0x7c33f0('0x189')]-_0x199c98[_0x7c33f0('0xb9')];emitVoiceQueueSummary(_0x199c98);if(_0x199c98[_0x7c33f0('0x198')]>0x0){const _0xf09545=_0x199c98[_0x7c33f0('0x198')]-_0x199c98[_0x7c33f0('0x189')]-_0x199c98[_0x7c33f0('0x45')]-_0x199c98['temp']-_0x199c98[_0x7c33f0('0x1cb')];_0xa80c4b>_0xf09545&&(_0xa80c4b=_0xf09545);}if(_0xa80c4b>0x0){_0x199c98['dialMethod']===_0x7c33f0('0x112')&&(_0xa80c4b=0x1);_0xa80c4b>this['maxNumberOriginate']&&(_0xa80c4b=this['maxNumberOriginate']);_0x199c98[_0x7c33f0('0xb9')]+=_0xa80c4b;for(const _0x339559 in this[_0x7c33f0('0xb3')]){typeof this[_0x7c33f0('0xb3')][_0x339559]!==_0x7c33f0('0x1ac')&&(this[_0x7c33f0('0xb3')][_0x339559][_0x7c33f0('0x91')]===_0x7c33f0('0xec')&&this[_0x7c33f0('0xb3')][_0x339559][_0x7c33f0('0xb5')]===_0x7c33f0('0x35')&&_0xd0fc33[_0x7c33f0('0x1df')](this['agents'][_0x339559]['id']));}this[_0x7c33f0('0x208')](_0x199c98['id'],_0xd0fc33,_0xa80c4b,_0x199c98[_0x7c33f0('0x1f4')])[_0x7c33f0('0x1c0')](function(_0x1aa743){const _0x43b775=_0x7c33f0;_0x199c98[_0x43b775('0xb9')]-=_0xa80c4b,_0x199c98[_0x43b775('0xb9')]=_0x199c98[_0x43b775('0xb9')]>0x0?_0x199c98[_0x43b775('0xb9')]:0x0;if(!checkContactEmpty(_0x1aa743))_0x39d9d8[_0x43b775('0x140')](_0x199c98)[_0x43b775('0x1c0')](sendMessageReschedule(_0x199c98))[_0x43b775('0x214')](loggerCatch('[countReScheduled]\x20'));else{_0x199c98['originated']+=_0x1aa743[_0x43b775('0x78')],_0x199c98['message']=_0x199c98['dialMethod']==='booked'?_0x43b775('0x4c'):'RUNNING';for(let _0x40926f=0x0;_0x40926f<_0x1aa743[_0x43b775('0x78')];_0x40926f+=0x1){_[_0x43b775('0x7d')](_0x1aa743[_0x40926f])||_[_0x43b775('0x7d')](_0x1aa743[_0x40926f]['Contact'])||_[_0x43b775('0x7d')](_0x1aa743[_0x40926f][_0x43b775('0x3e')][_0x43b775('0xc9')])?_0x39d9d8[_0x43b775('0x203')]('[actionOriginate]\x20',_0x199c98,_0x1aa743[_0x40926f]):_0x39d9d8['checkIsBlackList'](_['pick'](_0x1aa743[_0x40926f],[_0x43b775('0xbe'),_0x43b775('0x1b4')]))[_0x43b775('0x1c0')](_0x39d9d8[_0x43b775('0xff')](_0x199c98,_0x1aa743[_0x40926f]))['catch'](_0x39d9d8[_0x43b775('0xf5')](_0x43b775('0x20'),_0x199c98));}}})[_0x7c33f0('0x214')](loggerGetContactDialer(_0x7c33f0('0x186'),_0x199c98,_0xa80c4b));}},Dialer['prototype'][_0xab0e6e('0xb2')]=function(_0x2c3521){const _0x45725d=_0xab0e6e;if(_0x2c3521[_0x45725d('0x198')]>0x0){const _0x49a505=_0x2c3521['dialLimitQueue']-_0x2c3521['originated']-_0x2c3521['talking'];_0x49a505>0x0?this['tryOriginatePredictive'](_0x2c3521):loggerPredictiveCalls[_0x45725d('0xee')](_0x45725d('0x18f'));}else this[_0x45725d('0xc6')](_0x2c3521);},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0xc6')]=function(_0x531dcd){const _0x1bb3ae=_0xab0e6e,_0x3675f8=this,_0x3f7f6c=[];_0x531dcd['originated']+=0x1;for(const _0x579e2d in this[_0x1bb3ae('0xb3')]){typeof this['agents'][_0x579e2d]!==_0x1bb3ae('0x1ac')&&(this[_0x1bb3ae('0xb3')][_0x579e2d][_0x1bb3ae('0x91')]===_0x1bb3ae('0xec')&&this[_0x1bb3ae('0xb3')][_0x579e2d][_0x1bb3ae('0xb5')]==='reachable'&&_0x3f7f6c[_0x1bb3ae('0x1df')](this[_0x1bb3ae('0xb3')][_0x579e2d]['id']));}this[_0x1bb3ae('0x208')](_0x531dcd['id'],_0x3f7f6c,0x1,_0x531dcd[_0x1bb3ae('0x1f4')])[_0x1bb3ae('0x1c0')](function(_0x24407d){const _0x511d60=_0x1bb3ae;!checkContactEmpty(_0x24407d)?(checkContactLowerLimitOriginate(_0x531dcd,0x1,0x0),_0x3675f8[_0x511d60('0x140')](_0x531dcd)[_0x511d60('0x1c0')](sendMessageReschedule(_0x531dcd))[_0x511d60('0x214')](loggerCatch(_0x511d60('0x200')))):(_0x531dcd[_0x511d60('0x13e')]=_0x511d60('0x1ef'),_['isNil'](_0x24407d[0x0])||_[_0x511d60('0x7d')](_0x24407d[0x0][_0x511d60('0x3e')])||_[_0x511d60('0x7d')](_0x24407d[0x0][_0x511d60('0x3e')][_0x511d60('0xc9')])?_0x3675f8[_0x511d60('0x203')](_0x511d60('0x20'),_0x531dcd,_0x24407d[0x0]):_0x3675f8['checkIsBlackList'](_[_0x511d60('0x50')](_0x24407d[0x0],[_0x511d60('0xbe'),_0x511d60('0x1b4')]))[_0x511d60('0x1c0')](_0x3675f8[_0x511d60('0xff')](_0x531dcd,_0x24407d[0x0]))['catch'](_0x3675f8[_0x511d60('0xf5')](_0x511d60('0x8d'),_0x531dcd)));})[_0x1bb3ae('0x214')](loggerGetContactDialer(_0x1bb3ae('0x71'),_0x531dcd,0x1)),emitVoiceQueueSummary(_0x531dcd);},Dialer['prototype'][_0xab0e6e('0xdd')]=function(_0x5b742a,_0x4cca96,_0xea7ecc,_0x58de9b,_0x129151,_0x46331c){const _0x34ea0d=_0xab0e6e;return loggerPredictive[_0x34ea0d('0xee')](_0x34ea0d('0x6f')),loggerPredictive[_0x34ea0d('0xee')](_0x34ea0d('0x15d'),_0x5b742a),loggerPredictive['info'](_0x34ea0d('0x125'),_0x4cca96),loggerPredictive[_0x34ea0d('0xee')](_0x34ea0d('0x174'),_0xea7ecc),loggerPredictive[_0x34ea0d('0xee')]('P:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x58de9b),loggerPredictive[_0x34ea0d('0xee')]('Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x129151),loggerPredictive[_0x34ea0d('0xee')](_0x34ea0d('0x126')),new Promise(function(_0x56f112,_0x10da75){const _0x635874=_0x34ea0d;if(_0x5b742a<=0x0||isNaN(_0x5b742a))return _0x10da75(msgResponse(_0x635874('0x212'),'Error',_0x635874('0x1f6')+_0x5b742a));if(_0xea7ecc<=0x0||isNaN(_0xea7ecc))return _0x10da75(msgResponse(_0x635874('0x212'),_0x635874('0x121'),_0x635874('0x1ff')+_0xea7ecc));if(_0x58de9b<=0x0||isNaN(_0x58de9b))return _0x10da75(msgResponse('[abandonmentRate]',_0x635874('0x121'),_0x635874('0x211')+_0x58de9b));if(_0x4cca96<=0x0||isNaN(_0x4cca96))return _0x10da75(msgResponse('[abandonmentRate]','Error',_0x635874('0x54')+_0x4cca96));if(_0x129151<=0x0||isNaN(_0x129151))return _0x10da75(msgResponse(_0x635874('0x212'),_0x635874('0x121'),_0x635874('0xae')+_0x129151));_0x46331c=_0x46331c||0x0;const _0x1b0468=0x1/_0xea7ecc;let _0x2bb2de=0x0,_0x444243=0x0,_0x32f042=0x0,_0x48d7f5=0x0,_0xde0061=0x0;for(_0xde0061=0x0;_0x32f042<_0x129151;_0xde0061+=0x1){_0x444243=_0xde0061/_0x4cca96,_0x2bb2de=(_0x58de9b*_0x444243+_0x46331c)/_0x1b0468,_0x32f042=erlangb(_0x2bb2de,_0x5b742a),_0x48d7f5=_0x2bb2de/_0x5b742a*(0x1-erlangb(_0x2bb2de,_0x5b742a));}return _0x56f112({'erlangCalls':_0xde0061,'erlangCallToSecond':_0x4cca96/_0xde0061,'erlangAbandonmentRate':_0x32f042,'erlangBusyFactor':_0x48d7f5});});},Dialer[_0xab0e6e('0x3d')][_0xab0e6e('0xd1')]=function(_0x4410b6,_0x3bcdbe,_0x4a8a57,_0x5d478a,_0x4ea802,_0x223ecc){const _0x43b8d4=_0xab0e6e;return loggerPredictive[_0x43b8d4('0xee')]('----\x20Agent\x20Busy\x20Factor\x20----'),loggerPredictive['info'](_0x43b8d4('0x15d'),_0x4410b6),loggerPredictive[_0x43b8d4('0xee')]('Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x3bcdbe),loggerPredictive['info']('Ts:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4a8a57),loggerPredictive[_0x43b8d4('0xee')](_0x43b8d4('0x74'),_0x5d478a),loggerPredictive[_0x43b8d4('0xee')](_0x43b8d4('0x1a2'),_0x4ea802),loggerPredictive[_0x43b8d4('0xee')]('---------------------------'),new Promise(function(_0xa563b2,_0xff20ff){const _0x18f042=_0x43b8d4;if(_0x4410b6<=0x0||isNaN(_0x4410b6))return _0xff20ff(msgResponse(_0x18f042('0x61'),_0x18f042('0x121'),_0x18f042('0x1f6')+_0x4410b6));if(_0x4a8a57<=0x0||isNaN(_0x4a8a57))return _0xff20ff(msgResponse(_0x18f042('0x61'),_0x18f042('0x121'),_0x18f042('0x1ff')+_0x4a8a57));if(_0x5d478a<=0x0||isNaN(_0x5d478a))return _0xff20ff(msgResponse(_0x18f042('0x61'),_0x18f042('0x121'),_0x18f042('0x211')+_0x5d478a));if(_0x3bcdbe<=0x0||isNaN(_0x3bcdbe))return _0xff20ff(msgResponse('[busyFactor]',_0x18f042('0x121'),_0x18f042('0x54')+_0x3bcdbe));if(_0x4ea802<=0x0||isNaN(_0x4ea802))return _0xff20ff(msgResponse(_0x18f042('0x61'),_0x18f042('0x121'),_0x18f042('0x8b')+_0x4ea802));_0x223ecc=_0x223ecc||0x0;const _0x57d8c=0x1/_0x4a8a57;let _0x273285=0x0,_0x1b3e73=0x0,_0x30f66f=0x0,_0x4d3476=0x0,_0x5ac331=0x0;for(_0x5ac331=0x0;_0x4d3476<_0x4ea802;_0x5ac331+=0x1){_0x1b3e73=_0x5ac331/_0x3bcdbe,_0x273285=(_0x5d478a*_0x1b3e73+_0x223ecc)/_0x57d8c,_0x30f66f=erlangb(_0x273285,_0x4410b6),_0x4d3476=_0x273285/_0x4410b6*(0x1-erlangb(_0x273285,_0x4410b6));}return _0xa563b2({'erlangCalls':_0x5ac331,'erlangCallToSecond':_0x3bcdbe/_0x5ac331,'erlangAbandonmentRate':_0x30f66f,'erlangBusyFactor':_0x4d3476});});},module[_0xab0e6e('0x220')]=Dialer; \ No newline at end of file +const a1056_0xbe4d=['agent','Unknow','SIP/%s','newexten','queueBooked','[syncAgentComplete]','dialGlobalInterval','GLOBAL_INTERVAL_IS_OVERTIME','contact\x20not\x20moved','Dropped\x20calls\x20day','checkIfTimeIntervals','agiafterat','Machine','voice:queue:%s','predictiveIntervalAvgHoldtime','from-sip','[booked][RR][finaly]','emit','undefined','pow','dialAMDBetweenWordsSilence','AMD','[checkIsBlackList]\x20','all','talking','predictiveIntervalAnsweredCalls','[syncAgentComplete][createHistory]','countReScheduled','[rescheduleContact][Abandoned]','available','loopCampaigns','dialPredictiveInterval','checkDialMethod','dialNoAnswerRetryFrequency','is\x20disactive','[syncAgentComplete][createHistory][0]','not_inuse','agiIp','[decremetOriginate]\x20object\x20originated\x20is\x20negative','RecallFailedTimeout','dialAgiAfterHangupAgent','\x22%s,%s%s,,,%s\x22','loggedInDb','dialer','P:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','voicePause','XMD-VOICEQUEUEID','amd','checkIsBlackList','../../../config/environment/','reason','outboundAbandonedCallsDay','dialQueueProject','run','check\x20handlePredictive\x20is\x20not\x20undefine','\x5cw{0,','dialPrefix','Congestion','outbound','ListId','reachable','Contact.phone','[syncAgentComplete][createHistory][3]','dialAMDSilenceThreshold','countcongestionretry','originatecalleridname','[rescheduleContact]\x20[Congestion]','\x20Intervals\x20is\x20null\x20','[CatchErlangB]','RUNNING','loggedIn','enqueue','exports','../preview/util/util','XMD-CAMPAIGNID','toUpper','[syncAgentComplete][createHistory][11]','fail\x20to\x20scheduled\x20calls','Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20NOT\x20Active','congestion','dialNoAnswerMaxRetry','temp','message','[Originate][HistoryRecallClose]','contactsId','custom:agentcongestion','uuid','[startMethodPredictive][StartProgressive]','[unlockQueueStatus][undefined]','../../../config/config.service','then','contact\x20is\x20undefine','channel','UserId','merge','length','VoiceQueueId','\x22\x22\x20<>','queuecallerabandon','evt\x20is\x20undefine','busyFactor','loggerHandler','predictiveIntervalAvailable','../rpc/cmHopperHistory','Queue','predictiveIntervalDroppedCallsTimeout','outboundReCallsDay','campaign:ivr:%s','contactAgent-idHopper:\x20','RecallInQueue','endtime','\x20Intervals\x20is\x20empty\x20','substring','Predictive\x20for\x20every\x20interval','predictive','[uniqueid]','power','responsetime','ivrAnswerCallsDay','[booked][unlock2]','campaigns','answertime','error','actionid','clearZombieChannels','dialGlobalMaxRetry','Queue:\x20','calleridnum','createStateFinal','[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','checkContactBlack','outboundDropCallsDayTimeout','isSuccess','callerid','ivr','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sumDuration','membername','queueBookedRR','active','stateGlobal','phone','response','entity\x20is\x20undefine','getQueue','sumHoldTime','[booked][unlock3]','\x20AGENTS\x20NOT\x20LOGGED','dialActive','[unlockOriginate][syncQueueStatusComplete]','../../../config/logger','dialMachineMaxRetry','[actionOriginatePredictive]\x20','erlangCalls','[handlePredictive]','[countReScheduled]\x20','reason19\x20machine....','[syncQueueSummary]','droptime','stack','[syncAgentComplete][createHistory][20]','[actionOriginate]\x20','handlePower','[getVoiceQueueRtPauses]\x20','[rescheduleContact][Machine]','outboundUnknownCallsDay','command','predictiveIntervalPauses','progressive','Ts\x20=\x20','Blacklist','string','[getContactDialer]\x20','voiceQueue\x20is\x20undefine','syncCampaigns','MACHINE','[busyFactor]','statedesc','state','\x22agi://%s/square,%s\x22','status','Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','minutes','HANGUP','outboundBusyCallsDay','Agent:\x20','p\x20=\x20','----\x20Agent\x20Busy\x20Factor\x20----','varset','NOT_ACTIVE','IS_DISACTIVED','[startMethodPredictive][StartProgressive][Loop]','[createHistory]\x20','getVoiceQueueRtPauses','iftime\x20%s,%s','calleridname','stateinterface','[getContactDialer2]','ACTIVE','erlangAbandonmentRate','History\x20information\x20are\x20empty','[syncHangupIvr]','NoAnswer','clearing\x20variable\x20start\x20predictive','./action','Failure','seconds','checkRetriveMax','outboundCongestionCallsDay','ivrOriginated','[syncQueueSummary]\x20Campaign\x20Queue:\x20','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','[rescheduleContact][Drop]','INTERVAL_IS_NULL','channels','[getDataPredictive]','maxNumberOriginate','Trunk','[syncCampaigns]','collection\x20data\x20in\x20progressive\x20at','[getContactDialer2][Empty]','--------\x20Drop\x20Rate\x20--------','\x20Timezone\x20unknow\x20','noanswer','buildObj','XMD-AMDSILENCETHRESHOLD','[updateOriginated]\x20is\x20null\x20or\x20undefined','CampaignId','Action','reason\x203\x20ringing\x20no\x20answer','outboundAnswerAgiCallsDay','syncAgentConnect','../ami','[Originate][historyBlacklist]','dialOriginateTimeout','Contact\x20updated','hangup','value','XMD-AMDGREETING','reason\x200\x20no\x20such\x20number....','TrunkBackup','recallme','dialNoSuchNumberMaxRetry','predictiveIntervalTotalCalls','countmachineretry','isArray','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','isUndefined','dialAMDAfterGreetingSilence','total','dialOriginateCallerIdName','Abandoned','trim','campaign:save','Umin\x20=\x20','createHistory','bind','catch','answered','name','is\x20not\x20active','queuemember','TRUNK_IS_NOT_REACHABLE','countagentrejectretry','Global:\x20','dialAMDGreeting','nosuchnumber','pick','originate','[ifTime][Action]','XMD-AMDMAXIMUMNUMBEROFWORDS','launchHandleIvr','moveContactManagedDialer','dialRandomLastDigitCallerIdNumber','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locked','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','agents','syncQueueStatusComplete','dialDropRetryFrequency','push','[rescheduleContact]\x20','preview','[Dialer][checkChannel]','../rpc/voiceQueueRt','moment','Interval','queueStatusComplete','loopClearZombieChannels','[syncHangupInAMD][createHistory]','type','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22%s\x22\x20<%s>','[booked][checkContactBlack][else]','dialRecallInQueue','dialLimitQueue','AnswerAGI','SIP/%s/%s%s','tail','[rescheduleContact]\x20[Busy]','object','predictiveIntervalErlangCallsDroppedCalls','reason\x205\x20busy','predictiveIntervalErlangCalls','prototype','XMD-','isTrunkReachable','add','clearing\x20variable\x20handle\x20predictive','dialDropMaxRetry','Amax\x20=\x20','Ts:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','recalculate\x20predictive\x20at','dialOrderByScheduledAt','countabandonedretry','../rpc/cmHopper','Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','outboundDropCallsDayCallersExit','Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','diff','[getContactDialerPredictive]','format','variable','idHopper','reason\x2019\x20machine....','---------\x20ErlangB\x20---------','NONE','dialPredictiveOptimizationPercentage','originated','[emptyContact]','[syncHangupIvr][createHistory]','outboundNoAnswerCallsDay','method\x20not\x20recognized','check\x20failure','XMD-ORIGINATECALLERIDNUM','Success','started\x20in\x20predictive\x20at','XMD-ORIGINATECALLERIDNAME','[originate][error]','createdAt','round','erlangBusyFactor','[actionOriginateIvr]\x20','floor','[actions]','dropRate','dialRecallMeTimeout','strategy','CALLEREXIT','Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20','replace','[handlePredictive][limitChannel]','outboundRejectCallsDay','Contact','actions','milliseconds','finally','Timezone:\x20','Drop','agentcomplete','[Originate][MoveBlacklist]','countbusyretry','queueCallerAbandonCreateState','countnosuchnumberretry','predictiveCalls','outboundNoSuchCallsDay','ContactId','m\x20=\x20','startProgressive','getDataPredictive','[syncHangupInAMDIvr]','[syncHangupInAMDIvr][createHistory]','scheduledat','avgHandleTime','\x20Interval\x20is\x20overtime:\x20','sendMessageOneNotActive','./agentComplete','Error','outboundBlacklistCallsDay','dialMethod','originate\x20action\x20Error','XMD-AMDBETWEENWORDSSILENCE','[checkIsBlackListIvr]\x20','countnoanswerretry','dialAMDInitialSilence','erlangCallToSecond','reason\x2020\x20agentreject','XMD-AMDMAXIMUMWORDLENGTH','HangupInAMD','md5','callProgressDetecting','match','getContactDialer','actionOriginate',')\x20are\x20less\x20than\x20threshold\x20(','stringify','voiceQueues','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sequence','timezones','[averageHandleTime]\x20','M:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[Originate][HistoryDialRecallInQueue][historyCatch]','waiting','true','queuestatuscomplete','inspect','starttime','countdropretry','trunks','XMD-AMDTOTALANALYSISTIME','emptyContact','---------------------------','tags','checkIfTime','./final','outboundAnswerCallsDay','../../../rediscache','reason\x208\x20congestion','notFound','contactsRescheduled','AgentReject','resolve','amdstatus','updateOriginated','check\x20predictive\x20is\x20not\x20undefine','AGI','abandonmentRate','ivrTotalCallsDays','TIMEZONE_UNKNOW','getDataPredictiveOld','./queueCallerAbandon','predictiveIntervalHitRate','originateresponse','rrmemory','exten','Busy','paused','unlockRR','[booked][unlock]','handlePredictive','predictiveIntervalAvgTalktime','startPredictive','OriginateError','roundrobin','Drop\x20in\x20this\x20interval','dialMachineRetryFrequency','[rescheduleContact][dialRecallInQueue]','predictiveIntervalMultiplicativeFactor','queuestatus','tryOriginatePredictive','./hangup','indexOf','[abandonmentRate]','dialBusyRetryFrequency','outboundOriginateFailureCallsDay','syncOriginateResponse','\x20trunk\x20is\x20not\x20reachable','saveInDb','uniqueid','dialOriginateCallerIdNumber','[syncQueueCallerAbandon]\x20[Drop]','../rpc/cmHopperBlack','[syncAgentComplete][createHistory][10]','predictiveIntervalDroppedCallsCallersExit','[syncAgentComplete][createHistory][?]','BLACKLIST','[getContactDialer2][ReScheduled]','handleIvr','reason\x2011\x20abandoned','checkIsTrunkReachable','xcally-motion-dialer','getContactDialerIvr','dropreason','content','dialAMDMinWordLength','uniqueId','_rr','isEmpty','syncVarSet','updatedAt','INTERVAL_IS_EMPTY','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','AVAILABLE_CONTACTS_FINISHED','isNil','info','ifTime','[rescheduleContact][AgentReject]','dialQueueTimeout','dialAMDActive','[unlock][syncQueueStatusComplete]','NoSuchNumber','queue','checkIsBlackListIvr','[originateError]:\x20%s','booked','XMD-AMDAFTERGREETINGSILENCE','dialTimezone','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','No\x20such\x20channel','dialQueueProject2','custom:agentnosuchnumber','syncQueueCallerAbandon','dialBusyMaxRetry','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','countglobal','syncQueueSummary','some','syncAgentComplete','dialPredictiveOptimization','averageHandleTime','[callProgressDetecting]','dialAMDMaximumWordLength','dialAbandonedRetryFrequency','RECALLFAILEDTIMEOUT','cause-txt','pTalking','interval\x20=\x20','YYYY-MM-DD\x20HH:mm:ss','getCaller','syncNewExten','originatecalleridnum','dialCongestionMaxRetry','dialCutDigit','outboundQueuePauses','startMethodPredictive','\x20INTERVAL_IS_NULL','rescheduleContact','[syncAgentComplete][createHistory][8]','dialAbandonedMaxRetry','Agent','log','[Dialer][checkChannel][ivr]','sumBillable','clearing\x20variable\x20start\x20progressive','Intervals'];(function(_0x5f40ca,_0xbe4d51){const _0x47fb75=function(_0xa53de8){while(--_0xa53de8){_0x5f40ca['push'](_0x5f40ca['shift']());}};_0x47fb75(++_0xbe4d51);}(a1056_0xbe4d,0x19f));const a1056_0x47fb=function(_0x5f40ca,_0xbe4d51){_0x5f40ca=_0x5f40ca-0x0;let _0x47fb75=a1056_0xbe4d[_0x5f40ca];return _0x47fb75;};const _0x1fd82e=a1056_0x47fb;'use strict';const util=require('util'),_=require('lodash'),uuid=require(_0x1fd82e('0xd1')),moment=require(_0x1fd82e('0x198')),rr=require('rr'),md5=require(_0x1fd82e('0x200')),ut=require(_0x1fd82e('0xc3')),config=require(_0x1fd82e('0xab')),logger=require(_0x1fd82e('0x111'))(_0x1fd82e('0xa5')),loggerBooked=require('../../../config/logger')(_0x1fd82e('0x51')),loggerPredictive=require(_0x1fd82e('0x111'))(_0x1fd82e('0xed')),loggerPredictiveCalls=require('../../../config/logger')(_0x1fd82e('0x1e7')),loggerSyncQueueSummary=require(_0x1fd82e('0x111'))('syncQueueSummary'),ami=require(_0x1fd82e('0x163')),{getSocket}=require(_0x1fd82e('0x3')),io=getSocket(),cmHopper=require(_0x1fd82e('0x1b6')),cmHopperHistory=require(_0x1fd82e('0xe2')),cmHopperBlack=require(_0x1fd82e('0x30')),voiceQueueRt=require(_0x1fd82e('0x197')),Action=require(_0x1fd82e('0x147')),History=require('./history'),Final=require(_0x1fd82e('0x1')),AgentComplete=require(_0x1fd82e('0x1f3')),QueueCallerAbandon=require(_0x1fd82e('0x11')),Hangup=require(_0x1fd82e('0x25')),{getConfigService}=require(_0x1fd82e('0xd4')),strategy={'rrmemory':_0x1fd82e('0x14'),'roundrobin':_0x1fd82e('0x1e')},Sequence=function(){};Sequence[_0x1fd82e('0x1ab')][_0x1fd82e('0xc1')]=function(_0xa53de8){const _0x134f2d=_0x1fd82e;this[_0x134f2d('0x1a5')]=this[_0x134f2d('0x1a5')]?this['tail'][_0x134f2d('0x1df')](_0xa53de8):_0xa53de8();};function Dialer(_0x1be24a,_0x4f12c7){const _0x58901c=_0x1fd82e;this['sequence']=new Sequence(),this[_0x58901c('0x195')]=_0x4f12c7,this['voiceQueues']=_0x1be24a['voiceQueues'],this[_0x58901c('0xf3')]=_0x1be24a[_0x58901c('0xf3')],this[_0x58901c('0x190')]=_0x1be24a[_0x58901c('0x190')],this['trunks']=_0x1be24a[_0x58901c('0x214')],this['maxNumberOriginate']=config['maxNumberOriginate']||0x2,this[_0x58901c('0x151')]={},this[_0x58901c('0x1dd')]={},this[_0x58901c('0xcf')]={},this[_0x58901c('0x3e')]={},this['optionPredictive']={},this[_0x58901c('0x1c')]={},this['startProgressive']={},this[_0x58901c('0x14c')]={},this[_0x58901c('0x7e')]={},this[_0x58901c('0x105')]={},ami['on']('agentconnect',this[_0x58901c('0x162')][_0x58901c('0x17b')](this)),ami['on'](_0x58901c('0xdd'),this[_0x58901c('0x58')][_0x58901c('0x17b')](this)),ami['on'](_0x58901c('0x13'),this[_0x58901c('0x2a')][_0x58901c('0x17b')](this)),ami['on'](_0x58901c('0x1e2'),this[_0x58901c('0x5e')][_0x58901c('0x17b')](this)),ami['on']('custom:queuesummary',this[_0x58901c('0x5c')]['bind'](this)),ami['on'](_0x58901c('0x167'),this['syncHangup'][_0x58901c('0x17b')](this)),ami['on'](_0x58901c('0x7d'),this[_0x58901c('0x6a')][_0x58901c('0x17b')](this)),ami['on'](_0x58901c('0x137'),this[_0x58901c('0x41')][_0x58901c('0x17b')](this)),ami['on'](_0x58901c('0x180'),this['syncQueueMember']['bind'](this)),ami['on'](_0x58901c('0x210'),this[_0x58901c('0x191')][_0x58901c('0x17b')](this)),this[_0x58901c('0x98')](),this[_0x58901c('0x19b')]();}function isNotNull(_0x4e5aff){return _0x4e5aff!==null&&!_['isUndefined'](_0x4e5aff);}function checkIsLoggedIn(_0x49eab1,_0x2c2bd1){return function(){const _0x1df978=a1056_0x47fb;if(_0x2c2bd1<=0x0){_0x49eab1[_0x1df978('0xcd')]='AGENTS_NOT_LOGGED';throw _0x49eab1[_0x1df978('0x17e')]+_0x1df978('0x10e');}};}function isActive(_0x477f5b){return _0x477f5b;}function checkIsActive(_0x4fa52f,_0x28d4b3){return function(){const _0x502fb0=a1056_0x47fb;if(!isActive(_0x28d4b3)){_0x4fa52f['message']='NOT_ACTIVE';throw _0x4fa52f[_0x502fb0('0x17e')]+_0x502fb0('0xc9');}};}function checkInterval(_0xdefd84){return function(){const _0x4e5a74=a1056_0x47fb;if(!isNotNull(_0xdefd84['Interval'])){_0xdefd84[_0x4e5a74('0xcd')]=_0x4e5a74('0x150');throw _0xdefd84[_0x4e5a74('0x17e')]+_0x4e5a74('0x70');}if(!isNotNull(_0xdefd84[_0x4e5a74('0x199')][_0x4e5a74('0x79')])){_0xdefd84['message']=_0x4e5a74('0x150');throw _0xdefd84[_0x4e5a74('0x17e')]+'\x20INTERVAL_IS_NULL';}if(!isNotNull(_['isEmpty'](_0xdefd84[_0x4e5a74('0x199')][_0x4e5a74('0x79')]))){_0xdefd84['message']='INTERVAL_IS_NULL';throw _0xdefd84[_0x4e5a74('0x17e')]+_0x4e5a74('0x70');}};}function msgResponse(_0x4f5b5f,_0x11802a,_0x3f371e){return{'action':_0x4f5b5f,'response':_0x11802a,'message':_0x3f371e,'stack':_0x3f371e};}function myreject(_0x56d162){return function(_0xde2d2f){const _0x130386=a1056_0x47fb;return _0x56d162(msgResponse(_0x130386('0x188'),'Error',JSON['stringify'](_0xde2d2f)));};}function getSeconds(_0x576977,_0x3f6356){const _0x3cff60=_0x1fd82e,_0x2a0be3=moment(_0x576977)[_0x3cff60('0x1de')](0x0),_0x3f6eec=moment(_0x3f6356)['milliseconds'](0x0);return _0x2a0be3[_0x3cff60('0x1ba')](_0x3f6eec,_0x3cff60('0x149'));}function emit(_0x4bc557,_0x53bcdd,_0x1e9000){const _0x40173c=_0x1fd82e;io['to'](_0x4bc557)[_0x40173c('0x8b')](_0x53bcdd,_0x1e9000);}function emitVoiceQueueSummary(_0x3f9184){const _0x39841e=_0x1fd82e;if(_0x3f9184[_0x39841e('0x19d')]===_0x39841e('0xb4')){const _0x3dad5a={'id':_0x3f9184['id'],'name':_0x3f9184[_0x39841e('0x17e')],'strategy':_0x3f9184[_0x39841e('0x1d6')],'answered':_0x3f9184[_0x39841e('0x17d')],'available':_0x3f9184[_0x39841e('0x97')],'loggedIn':_0x3f9184['loggedIn'],'pTalking':_0x3f9184['pTalking'],'sumBillable':_0x3f9184[_0x39841e('0x77')],'sumDuration':_0x3f9184[_0x39841e('0x103')],'sumHoldTime':_0x3f9184[_0x39841e('0x10c')]||0x0,'talking':_0x3f9184[_0x39841e('0x92')],'total':_0x3f9184[_0x39841e('0x174')],'type':_0x3f9184[_0x39841e('0x19d')],'unmanaged':_0x3f9184['unmanaged'],'abandoned':_0x3f9184['abandoned'],'waiting':_0x3f9184[_0x39841e('0x20e')],'loggedInDb':_0x3f9184[_0x39841e('0xa4')],'dialActive':_0x3f9184[_0x39841e('0x10f')],'dialMethod':_0x3f9184[_0x39841e('0x1f6')],'dialOriginateCallerIdName':_0x3f9184[_0x39841e('0x175')],'dialOriginateCallerIdNumber':_0x3f9184[_0x39841e('0x2e')],'dialOriginateTimeout':_0x3f9184[_0x39841e('0x165')],'dialPrefix':_0x3f9184[_0x39841e('0xb2')],'outboundAnswerAgiCallsDay':_0x3f9184[_0x39841e('0x161')],'outboundAnswerCallsDay':_0x3f9184['outboundAnswerCallsDay'],'outboundBlacklistCallsDay':_0x3f9184[_0x39841e('0x1f5')],'outboundBusyCallsDay':_0x3f9184[_0x39841e('0x133')],'outboundCongestionCallsDay':_0x3f9184[_0x39841e('0x14b')],'outboundDropCallsDayACS':_0x3f9184['outboundDropCallsDayACS'],'outboundDropCallsDayCallersExit':_0x3f9184[_0x39841e('0x1b8')],'outboundDropCallsDayTimeout':_0x3f9184['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x3f9184[_0x39841e('0x1c6')],'outboundNoSuchCallsDay':_0x3f9184[_0x39841e('0x1e8')],'outboundOriginateFailureCallsDay':_0x3f9184[_0x39841e('0x29')],'outboundReCallsDay':_0x3f9184[_0x39841e('0xe5')],'outboundRejectCallsDay':_0x3f9184[_0x39841e('0x1db')],'outboundUnknownCallsDay':_0x3f9184[_0x39841e('0x120')],'predictiveIntervalAnsweredCalls':_0x3f9184[_0x39841e('0x93')],'predictiveIntervalAvgHoldtime':_0x3f9184[_0x39841e('0x88')],'predictiveIntervalAvgTalktime':_0x3f9184[_0x39841e('0x1b')],'predictiveIntervalDroppedCallsCallersExit':_0x3f9184[_0x39841e('0x32')],'predictiveIntervalDroppedCallsTimeout':_0x3f9184[_0x39841e('0xe4')],'predictiveIntervalErlangCalls':_0x3f9184[_0x39841e('0x1aa')],'predictiveIntervalErlangCallsDroppedCalls':_0x3f9184[_0x39841e('0x1a8')],'predictiveIntervalHitRate':_0x3f9184[_0x39841e('0x12')],'predictiveIntervalMultiplicativeFactor':_0x3f9184[_0x39841e('0x22')],'predictiveIntervalPauses':_0x3f9184[_0x39841e('0x122')],'predictiveIntervalAvailable':_0x3f9184[_0x39841e('0xe1')],'predictiveIntervalTotalCalls':_0x3f9184[_0x39841e('0x16e')],'message':_0x3f9184[_0x39841e('0xcd')],'originated':_0x3f9184[_0x39841e('0x1c3')],'erlangCalls':_0x3f9184[_0x39841e('0x114')],'erlangCallToSecond':_0x3f9184[_0x39841e('0x1fc')],'erlangAbandonmentRate':_0x3f9184[_0x39841e('0x142')],'erlangBusyFactor':_0x3f9184[_0x39841e('0x1d0')],'startPredictive':_0x3f9184[_0x39841e('0x1c')],'startProgressive':_0x3f9184[_0x39841e('0x1eb')]};_0x3f9184[_0x39841e('0x154')]&&(_0x3dad5a['Trunk']={'id':_0x3f9184[_0x39841e('0x154')]['id'],'name':_0x3f9184['Trunk']['name'],'active':_0x3f9184[_0x39841e('0x154')][_0x39841e('0x106')],'callerid':_0x3f9184[_0x39841e('0x154')][_0x39841e('0x100')]});_0x3f9184[_0x39841e('0x199')]&&(_0x3dad5a[_0x39841e('0x199')]={'id':_0x3f9184[_0x39841e('0x199')]['id'],'name':_0x3f9184[_0x39841e('0x199')][_0x39841e('0x17e')]});const _0x21d52d=md5(JSON['stringify'](_0x3dad5a));_0x3f9184[_0x39841e('0x200')]!==_0x21d52d&&(_0x3f9184[_0x39841e('0x200')]=_0x21d52d,emit(util[_0x39841e('0x1bc')](_0x39841e('0x87'),_0x3dad5a[_0x39841e('0x17e')]),'voice_queue:save',_0x3dad5a));}}function emitCampaignSummary(_0xb7cae4){const _0x5c3aaa=_0x1fd82e;_0xb7cae4[_0x5c3aaa('0x19d')]===_0x5c3aaa('0x101')&&emit(util[_0x5c3aaa('0x1bc')](_0x5c3aaa('0xe6'),_0xb7cae4[_0x5c3aaa('0x17e')]),_0x5c3aaa('0x178'),_0xb7cae4);}function checkGetDataPredictive(_0xe2d91a){const _0xd1f372=_0x1fd82e;if(isNotNull(_0xe2d91a)){if(!_[_0xd1f372('0x40')](_0xe2d91a)){loggerPredictive[_0xd1f372('0x47')]('-----\x20Stats\x20Predictive\x20---'),loggerPredictive['info'](_0xd1f372('0x130'),_0xe2d91a['predictiveIntervalTotalCalls']),loggerPredictive[_0xd1f372('0x47')](_0xd1f372('0x1b9'),_0xe2d91a['predictiveIntervalAnsweredCalls']),loggerPredictive['info']('Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0xe2d91a[_0xd1f372('0xe4')]),loggerPredictive[_0xd1f372('0x47')](_0xd1f372('0x208'),_0xe2d91a['predictiveIntervalDroppedCallsCallersExit']),loggerPredictive['info']('AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0xe2d91a[_0xd1f372('0x88')]),loggerPredictive[_0xd1f372('0x47')](_0xd1f372('0x54'),_0xe2d91a[_0xd1f372('0x1b')]),loggerPredictive[_0xd1f372('0x47')](_0xd1f372('0x217'));if(_0xe2d91a[_0xd1f372('0x16e')]>0x0){if(!_['isUndefined'](_0xe2d91a['predictiveIntervalAvgTalktime'])&&_0xe2d91a[_0xd1f372('0x1b')]>0x0)return!![];else loggerPredictive[_0xd1f372('0x47')]('Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive');if(!_[_0xd1f372('0x172')](_0xe2d91a[_0xd1f372('0x88')])&&_0xe2d91a[_0xd1f372('0x88')]>0x0)return!![];else loggerPredictive[_0xd1f372('0x47')](_0xd1f372('0x5a'));}else loggerPredictive['info'](_0xd1f372('0x44'));}else loggerPredictive[_0xd1f372('0x47')](_0xd1f372('0x143'));}else loggerPredictive[_0xd1f372('0x47')](_0xd1f372('0x143'));return![];}function mergeDataErlangB(_0x353cbe){return function(_0x5c31fb){const _0xbdabe=a1056_0x47fb;loggerPredictive[_0xbdabe('0x47')](_0xbdabe('0x1c0')),loggerPredictive[_0xbdabe('0x47')]('Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x5c31fb[_0xbdabe('0x114')]),loggerPredictive['info'](_0xbdabe('0x102'),_0x5c31fb[_0xbdabe('0x1fc')]),loggerPredictive[_0xbdabe('0x47')](_0xbdabe('0x18d'),_0x5c31fb[_0xbdabe('0x142')]),loggerPredictive[_0xbdabe('0x47')](_0xbdabe('0x1d8'),_0x5c31fb[_0xbdabe('0x1d0')]),loggerPredictive['info'](_0xbdabe('0x18d'),_0x5c31fb[_0xbdabe('0x142')]),loggerPredictive[_0xbdabe('0x47')]('---------------------------'),_[_0xbdabe('0xd9')](_0x353cbe,_0x5c31fb);};}function getDiff(_0x32ea82){const _0x388ddc=_0x1fd82e,_0x327c31=moment()[_0x388ddc('0x1de')](0x0),_0x577a6b=moment(_0x32ea82)[_0x388ddc('0x1de')](0x0);return _0x327c31[_0x388ddc('0x1ba')](_0x577a6b,_0x388ddc('0x149'));}function ifInterval(_0x22440d,_0x189ec8){const _0x208cae=_0x1fd82e;if(_[_0x208cae('0x172')](_0x189ec8))return![];return getDiff(_0x189ec8)<_0x22440d*0x3c?!![]:![];}function freeVariablesPredictive(_0x69081){const _0x5c25f4=_0x1fd82e;isNotNull(_0x69081)&&(!_[_0x5c25f4('0x172')](_0x69081[_0x5c25f4('0x1eb')])&&(_0x69081[_0x5c25f4('0x1eb')]=undefined,loggerPredictive['info'](_0x69081[_0x5c25f4('0x17e')],_0x5c25f4('0x78'))),!_[_0x5c25f4('0x172')](_0x69081[_0x5c25f4('0x1c')])&&(_0x69081[_0x5c25f4('0x1c')]=undefined,loggerPredictive[_0x5c25f4('0x47')](_0x69081[_0x5c25f4('0x17e')],_0x5c25f4('0x146'))),!_[_0x5c25f4('0x172')](_0x69081['handlePredictive'])&&(clearInterval(_0x69081['handlePredictive']),_0x69081[_0x5c25f4('0x1a')]=undefined,loggerPredictive[_0x5c25f4('0x47')](_0x69081[_0x5c25f4('0x17e')],_0x5c25f4('0x1af'))));}function erlangb(_0x2a329f,_0x161a73){if(_0x161a73===0x0)return 0x0;let _0x2b4207=0x1;for(let _0x490161=0x1;_0x490161<=_0x161a73;_0x490161+=0x1){_0x2b4207=0x1+_0x2b4207*_0x490161/_0x2a329f;}return 0x1/_0x2b4207;}function isVoiceQueueOutbound(_0xd6be69){const _0x102715=_0x1fd82e;return _0xd6be69===_0x102715('0xb4');}function isNotPreview(_0x3d9f9f){const _0x35a10f=_0x1fd82e;return _0x3d9f9f!==_0x35a10f('0x195');}function isCampaignIvr(_0x263df4){const _0x487857=_0x1fd82e;return _0x263df4===_0x487857('0x101');}function getCallerId(_0x4e3565,_0x2df2ee,_0x3252dc){const _0x3980ca=_0x1fd82e;if(!_[_0x3980ca('0x172')](_0x3252dc)&&_0x3980ca('0x126')===typeof _0x3252dc&&!_[_0x3980ca('0x40')](_0x3252dc)){if(!_[_0x3980ca('0x172')](_0x2df2ee)&&_0x3980ca('0x126')===typeof _0x2df2ee&&!_[_0x3980ca('0x40')](_0x2df2ee))return util[_0x3980ca('0x1bc')](_0x3980ca('0x19f'),_0x2df2ee,_0x3252dc);return util[_0x3980ca('0x1bc')]('\x22%s\x22\x20<%s>',_0x3252dc,_0x3252dc);}if(!_[_0x3980ca('0x172')](_0x4e3565)&&'string'===typeof _0x4e3565&&!_[_0x3980ca('0x40')](_0x4e3565))return _0x4e3565;return _0x3980ca('0xdc');}function loggerCatchQueueSummary(_0x24af88,_0x59f03c){return function(_0x1071ce){const _0x12570b=a1056_0x47fb;freeVariablesPredictive(_0x59f03c),emitVoiceQueueSummary(_0x59f03c),emitCampaignSummary(_0x59f03c),loggerSyncQueueSummary['error'](_0x24af88,util[_0x12570b('0x211')](_0x1071ce,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x1f9456,_0xd98dac){return function(_0x3906df){const _0x176295=a1056_0x47fb;loggerPredictive[_0x176295('0xf5')](_0xd98dac[_0x176295('0x17e')],_0x1f9456),loggerPredictive[_0x176295('0xf5')](_0x3906df[_0x176295('0x11a')]),freeVariablesPredictive(_0xd98dac);};}function loggerCatch(_0x1ee941){return function(_0x4d667b){const _0x45053d=a1056_0x47fb;logger[_0x45053d('0xf5')](_0x1ee941,util[_0x45053d('0x211')](_0x4d667b,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0xe9a1a7){const _0x3b008e=_0x1fd82e;return _0xe9a1a7&&!_[_0x3b008e('0x172')](_0xe9a1a7)&&_0xe9a1a7[_0x3b008e('0xda')]>0x0;}function decremetOriginate(_0xf6f9e7){const _0x571906=_0x1fd82e;!_[_0x571906('0x172')](_0xf6f9e7)&&_0xf6f9e7!==null?typeof _0xf6f9e7[_0x571906('0x1c3')]!=='undefined'&&(_0xf6f9e7['originated']>0x0?_0xf6f9e7[_0x571906('0x1c3')]-=0x1:logger['error'](_0x571906('0xa0'))):logger[_0x571906('0xf5')]('[decremetOriginate]\x20is\x20null\x20or\x20undefined');}function checkContactLowerLimitOriginate(_0x2f838f,_0x33d677,_0x32d6a1){if(_0x33d677>_0x32d6a1)for(let _0x3f4fd3=0x0;_0x3f4fd3<_0x33d677-_0x32d6a1;_0x3f4fd3+=0x1){decremetOriginate(_0x2f838f);}}function loggerGetContactDialer(_0x3f0307,_0x37857b,_0x2ea00d){return function(_0x45198f){const _0x3307f3=a1056_0x47fb;checkContactLowerLimitOriginate(_0x37857b,_0x2ea00d,0x0),logger[_0x3307f3('0xf5')](_0x3f0307,util[_0x3307f3('0x211')](_0x45198f,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x1cbaf2){return function(_0x59d0ab){const _0x5a2945=a1056_0x47fb;isNotNull(_0x59d0ab)&&isNotNull(_0x59d0ab[0x0])&&(_0x59d0ab[0x0][_0x5a2945('0x6')]>0x0?(_0x1cbaf2['message']='RESCHEDULED_CONTACTS',logger[_0x5a2945('0x47')](_0x5a2945('0x35')+_0x1cbaf2[_0x5a2945('0x17e')],_0x59d0ab[0x0]['contactsRescheduled'],'contacts')):(_0x1cbaf2[_0x5a2945('0xcd')]=_0x5a2945('0x45'),logger[_0x5a2945('0x47')](_0x5a2945('0x157')+_0x1cbaf2[_0x5a2945('0x17e')])));};}function notSendMessagesQueue(_0x5da5ec){const _0x1d6475=_0x1fd82e;_0x5da5ec[_0x1d6475('0x1f2')]&&(freeVariablesPredictive(_0x5da5ec),_0x5da5ec[_0x1d6475('0x1c3')]===0x0&&_0x5da5ec[_0x1d6475('0x92')]===0x0&&_0x5da5ec[_0x1d6475('0x20e')]===0x0&&(_0x5da5ec[_0x1d6475('0x66')]||0x0)===0x0?(_0x5da5ec[_0x1d6475('0x1f2')]=![],_0x5da5ec[_0x1d6475('0x97')]=0x0,_0x5da5ec[_0x1d6475('0xcd')]=_0x1d6475('0x138'),loggerSyncQueueSummary['error'](_0x1d6475('0x14d'),_0x5da5ec['name'],_0x1d6475('0x17f'))):(_0x5da5ec[_0x1d6475('0xcd')]=_0x1d6475('0x139'),loggerSyncQueueSummary[_0x1d6475('0xf5')](_0x1d6475('0x14d'),_0x5da5ec['name'],_0x1d6475('0x9c'))),emitVoiceQueueSummary(_0x5da5ec));}function notSendMessagesCampaign(_0x37d6b6){const _0x1dfde4=_0x1fd82e;_0x37d6b6['sendMessageOneNotActive']&&(_0x37d6b6[_0x1dfde4('0x1c3')]===0x0?(_0x37d6b6[_0x1dfde4('0x1f2')]=![],_0x37d6b6['message']=_0x1dfde4('0x138'),loggerSyncQueueSummary[_0x1dfde4('0xf5')](_0x1dfde4('0x171'),_0x37d6b6[_0x1dfde4('0x17e')],_0x1dfde4('0x17f'))):(_0x37d6b6['message']=_0x1dfde4('0x139'),loggerSyncQueueSummary['error'](_0x1dfde4('0x171'),_0x37d6b6[_0x1dfde4('0x17e')],'is\x20disactive')),emitCampaignSummary(_0x37d6b6));}function createObjHistory(_0x30af06,_0x2241db,_0x330716,_0x32b5bc,_0x57916f){const _0x3358e7=_0x1fd82e;_0x30af06[_0x3358e7('0xcd')]=_0x330716;const _0x68540a=new Action(_0x30af06,_0x2241db),_0x2c28ff=new History(_0x68540a);return _0x2c28ff[_0x3358e7('0x12d')]=_0x32b5bc,_0x2c28ff[_0x3358e7('0x12c')]=_0x57916f,_0x2c28ff[_0x3358e7('0xe9')]=_0x68540a[_0x3358e7('0x212')],_0x2c28ff;}Dialer['prototype'][_0x1fd82e('0x19b')]=function(){const _0x16c109=this;setInterval(function(){const _0x56f08e=a1056_0x47fb;_0x16c109[_0x56f08e('0xf7')](_0x16c109[_0x56f08e('0x3e')],_0x56f08e('0xee')),_0x16c109[_0x56f08e('0xf7')](_0x16c109[_0x56f08e('0x1dd')],_0x56f08e('0x1d3'));},0x32c8);},Dialer['prototype'][_0x1fd82e('0xf7')]=function(_0x28e2f6,_0x571b23){const _0x146a6a=_0x1fd82e,_0x5cbd58=this;for(const _0x36aff0 in _0x28e2f6){typeof _0x28e2f6[_0x36aff0]!==_0x146a6a('0x8c')&&this[_0x146a6a('0x209')][_0x146a6a('0xc1')](function(){const _0x3a37d0=_0x146a6a;if(!_[_0x3a37d0('0x46')](_0x28e2f6[_0x36aff0]))return ami['Action']({'action':_0x3a37d0('0x12f'),'channel':_0x28e2f6[_0x36aff0][_0x3a37d0('0xd7')]})['catch'](function(_0x149d10){const _0x496afc=_0x3a37d0;_0x149d10[_0x496afc('0xcd')]===_0x496afc('0x55')&&setTimeout(function(){const _0x3d6839=_0x496afc;_0x28e2f6[_0x36aff0]&&_0x28e2f6[_0x36aff0][_0x3d6839('0x19d')]!=='ivr'&&(_0x5cbd58[_0x3d6839('0xa')](_0x5cbd58['voiceQueues'][_0x28e2f6[_0x36aff0][_0x3d6839('0x4e')]]),logger['error'](_0x3d6839('0x196'),_0x571b23,_0x36aff0,_0x28e2f6[_0x36aff0][_0x3d6839('0x4e')]),delete _0x28e2f6[_0x36aff0]),_0x28e2f6[_0x36aff0]&&_0x28e2f6[_0x36aff0]['type']==='ivr'&&(_0x5cbd58[_0x3d6839('0xa')](_0x5cbd58[_0x3d6839('0xf3')][_0x28e2f6[_0x36aff0]['queue']]),logger[_0x3d6839('0xf5')](_0x3d6839('0x76'),_0x571b23,_0x36aff0,_0x28e2f6[_0x36aff0][_0x3d6839('0x4e')]),delete _0x28e2f6[_0x36aff0]);},0x2328);});});}},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x95')]=function(_0x54b93d){const _0x35954c=_0x1fd82e;return Promise[_0x35954c('0x8')]()['then'](cmHopper[_0x35954c('0x95')](_0x54b93d))[_0x35954c('0x17c')](loggerCatch(_0x35954c('0x116')));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0xaa')]=function(_0x47eeaa){const _0x3d7d5c=_0x1fd82e;return Promise['resolve']()[_0x3d7d5c('0xd5')](cmHopperBlack['checkIsBlackList'](_0x47eeaa))[_0x3d7d5c('0x17c')](loggerCatch(_0x3d7d5c('0x90')));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x4f')]=function(_0x55e553){const _0x4b1d49=_0x1fd82e;return Promise[_0x4b1d49('0x8')]()[_0x4b1d49('0xd5')](cmHopperBlack[_0x4b1d49('0x4f')](_0x55e553))[_0x4b1d49('0x17c')](loggerCatch(_0x4b1d49('0x1f9')));},Dialer['prototype'][_0x1fd82e('0x60')]=function(_0x433182){const _0x16caa5=_0x1fd82e;return Promise[_0x16caa5('0x8')]()[_0x16caa5('0xd5')](cmHopperHistory[_0x16caa5('0x1f0')](_0x433182))['catch'](loggerCatch(_0x16caa5('0x20b')));},Dialer[_0x1fd82e('0x1ab')]['rescheduleContact']=function(_0x27c11d){const _0x3e495f=_0x1fd82e;return Promise['resolve']()['then'](cmHopper[_0x3e495f('0x71')](_0x27c11d))[_0x3e495f('0x17c')](loggerCatch(_0x3e495f('0x194')));},Dialer[_0x1fd82e('0x1ab')]['unlockContact']=function(_0x237855,_0x38e1be,_0x1d8c5a){const _0x67fda5=_0x1fd82e;return Promise[_0x67fda5('0x8')]()['then'](cmHopper['unlockContact'](_0x237855,_0x38e1be,_0x1d8c5a))[_0x67fda5('0x17c')](loggerCatch('[unlockContact]\x20'));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x203')]=function(_0x5721ba,_0x5cbe13,_0x44bdac,_0x4a84ed){const _0x5b2dae=_0x1fd82e;return Promise['resolve']()[_0x5b2dae('0xd5')](cmHopper[_0x5b2dae('0x203')](_0x5721ba,_0x5cbe13,_0x44bdac,_0x4a84ed))[_0x5b2dae('0x17c')](loggerCatch('[getContactDialer]\x20'));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x3a')]=function(_0x13b569,_0x26eeae,_0x515098){const _0x4ef17a=_0x1fd82e;return Promise[_0x4ef17a('0x8')]()[_0x4ef17a('0xd5')](cmHopper[_0x4ef17a('0x3a')](_0x13b569,_0x26eeae,_0x515098))['catch'](loggerCatch(_0x4ef17a('0x127')));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x13c')]=function(_0x5b5f87){const _0x1e034b=_0x1fd82e;return Promise[_0x1e034b('0x8')]()['then'](voiceQueueRt[_0x1e034b('0x13c')](_0x5b5f87))['catch'](loggerCatch(_0x1e034b('0x11e')));},Dialer['prototype'][_0x1fd82e('0x18b')]=function(_0x4c1865){const _0x445b5e=_0x1fd82e;return Promise[_0x445b5e('0x8')]()['then'](cmHopper[_0x445b5e('0x18b')](_0x4c1865))[_0x445b5e('0x17c')](loggerCatch('[moveContactManagedDialer]\x20'));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x17a')]=function(_0x92b2eb){const _0x527f1d=_0x1fd82e;return Promise['resolve']()[_0x527f1d('0xd5')](cmHopperHistory['createHistory'](_0x92b2eb))[_0x527f1d('0x17c')](loggerCatch(_0x527f1d('0x13b')));},Dialer[_0x1fd82e('0x1ab')]['updateOriginated']=function(_0x928f7d){const _0x34c3a6=_0x1fd82e;!_['isUndefined'](_0x928f7d)&&_0x928f7d!==null?typeof _0x928f7d['originated']!==_0x34c3a6('0x8c')&&(_0x928f7d[_0x34c3a6('0x1c3')]>0x0?_0x928f7d[_0x34c3a6('0x1c3')]-=0x1:logger[_0x34c3a6('0xf5')]('[updateOriginated]\x20object\x20originated\x20is\x20negative')):logger[_0x34c3a6('0xf5')](_0x34c3a6('0x15d'));},Dialer[_0x1fd82e('0x1ab')]['loggerHandler']=function(_0x27fe66,_0x55e8aa){const _0x529974=this;return function(_0x4b8a95){const _0x4c25e2=a1056_0x47fb;_0x529974['updateOriginated'](_0x55e8aa),logger['error'](_0x27fe66,util[_0x4c25e2('0x211')](_0x4b8a95,{'showHidden':![],'depth':null}));};},Dialer['prototype'][_0x1fd82e('0x216')]=function(_0x572f8d,_0x5425c2,_0x56e9ad){const _0x1816f4=_0x1fd82e,_0x22fea6={'state':0x19,'statedesc':_0x1816f4('0x5')};this[_0x1816f4('0xa')](_0x5425c2),this['saveInDb'](_['merge'](_0x22fea6,_[_0x1816f4('0x186')](_0x56e9ad,[_0x1816f4('0x1e9'),_0x1816f4('0xb5'),_0x1816f4('0xd8'),_0x1816f4('0xdb'),'CampaignId'])),'[emptyContact][createHistory]',_0x1816f4('0x1c4')),logger[_0x1816f4('0xf5')](_0x572f8d);},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0xff')]=function(_0x23b968){const _0x5a0620=_0x1fd82e;return _0x23b968===_0x5a0620('0x1ca');},Dialer[_0x1fd82e('0x1ab')]['isTrunkReachable']=function(_0x2bafb6){const _0x2f5d4c=_0x1fd82e;return!_[_0x2f5d4c('0x172')](_0x2bafb6)&&_0x2bafb6&&!_[_0x2f5d4c('0x172')](_0x2bafb6[_0x2f5d4c('0x17e')])&&!_[_0x2f5d4c('0x172')](_0x2bafb6[_0x2f5d4c('0x106')])&&_0x2bafb6['active']&&(this[_0x2f5d4c('0x214')][util[_0x2f5d4c('0x1bc')](_0x2f5d4c('0x7c'),_0x2bafb6[_0x2f5d4c('0x17e')])][_0x2f5d4c('0x12f')]===_0x2f5d4c('0xb6')||this[_0x2f5d4c('0x214')][util['format'](_0x2f5d4c('0x7c'),_0x2bafb6['name'])][_0x2f5d4c('0x12f')]==='unmonitored');},Dialer['prototype'][_0x1fd82e('0x2c')]=function(_0x7adac1,_0x1b21f9,_0x2d8c68){const _0x554931=_0x1fd82e;this[_0x554931('0x17a')](_0x7adac1)[_0x554931('0x17c')](loggerCatch(_0x1b21f9)),this[_0x554931('0x18b')](_0x7adac1)[_0x554931('0x17c')](loggerCatch(_0x2d8c68));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x41')]=function(_0x4ee518){const _0x4c536f=_0x1fd82e,_0x118f84=this['uniqueId'][_0x4ee518[_0x4c536f('0x2d')]];let _0x720cbe;if(!_['isNil'](_0x4ee518)&&!_[_0x4c536f('0x46')](_0x4ee518[_0x4c536f('0x1bd')])&&!_[_0x4c536f('0x46')](_0x4ee518[_0x4c536f('0x1bd')][_0x4c536f('0x9')])&&_0x4ee518[_0x4c536f('0x15')]===_0x4c536f('0x39')&&_0x118f84){_0x118f84['type']!==_0x4c536f('0x101')&&this['voiceQueues'][_0x118f84[_0x4c536f('0x4e')]][_0x4c536f('0x4b')]&&_0x4ee518['value']===_0x4c536f('0x132')&&(delete this['uniqueId'][_0x4ee518[_0x4c536f('0x2d')]],this[_0x4c536f('0xa')](this['voiceQueues'][_0x118f84[_0x4c536f('0x4e')]]),this[_0x4c536f('0x207')][_0x118f84['queue']]['outboundAnswerCallsDay']+=0x1,this[_0x4c536f('0x207')][_0x118f84[_0x4c536f('0x4e')]][_0x4c536f('0x161')]+=0x1,_0x720cbe=new Hangup(_0x118f84,_0x4ee518),_0x720cbe['state']=0x12,_0x720cbe[_0x4c536f('0x12c')]='HangupInAMD',_0x720cbe[_0x4c536f('0x104')]='AMD',this[_0x4c536f('0x2c')](_0x720cbe,_0x4c536f('0x19c'),'[syncHangupInAMD]'));if(_0x118f84['type']!==_0x4c536f('0x101')&&this[_0x4c536f('0x207')][_0x118f84[_0x4c536f('0x4e')]][_0x4c536f('0x4b')]&&_0x4ee518['value']===_0x4c536f('0x12a')){const _0x61a35e=this;return new Promise(function(_0xf91759,_0x1f0133){const _0x593c7b=_0x4c536f;delete _0x61a35e[_0x593c7b('0x3e')][_0x4ee518['uniqueid']],_0x61a35e['updateOriginated'](_0x61a35e[_0x593c7b('0x207')][_0x118f84[_0x593c7b('0x4e')]]),_0x61a35e[_0x593c7b('0x207')][_0x118f84[_0x593c7b('0x4e')]]['outboundAnswerCallsDay']+=0x1,_0x61a35e[_0x593c7b('0x207')][_0x118f84[_0x593c7b('0x4e')]][_0x593c7b('0x161')]+=0x1;const _0x1f71c1=_0x61a35e[_0x593c7b('0x207')][_0x118f84[_0x593c7b('0x4e')]],_0x52c6af=new Hangup(_0x118f84,_0x4ee518);_0x52c6af[_0x593c7b('0x12d')]=0x13,_0x52c6af['statedesc']=_0x593c7b('0x86'),_0x52c6af[_0x593c7b('0x104')]=_0x593c7b('0x8f'),_0x52c6af[_0x593c7b('0x16f')]+=0x1,_0x52c6af['countglobal']+=0x1,_0x52c6af[_0x593c7b('0xa9')]=!![],_0x61a35e[_0x593c7b('0x17a')](_0x52c6af)[_0x593c7b('0x17c')](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x52c6af[_0x593c7b('0x1e4')]+_0x52c6af[_0x593c7b('0xba')]+_0x52c6af['countnoanswerretry']+_0x52c6af[_0x593c7b('0x1e6')]+_0x52c6af[_0x593c7b('0x213')]+_0x52c6af[_0x593c7b('0x1b5')]+_0x52c6af[_0x593c7b('0x16f')]+_0x52c6af[_0x593c7b('0x182')]>=_0x1f71c1[_0x593c7b('0xf8')]?_0x61a35e[_0x593c7b('0x107')](_0x52c6af,_0xf91759,_0x1f0133,_0x593c7b('0x117')):_0x52c6af[_0x593c7b('0x16f')]>=_0x1f71c1['dialMachineMaxRetry']?_0x61a35e[_0x593c7b('0xfb')](_0x52c6af,_0xf91759,_0x1f0133,_0x593c7b('0x1bf')):(_0x61a35e[_0x593c7b('0x71')]({'active':![],'countmachineretry':_0x52c6af[_0x593c7b('0x16f')],'scheduledat':moment()[_0x593c7b('0x1ae')](_0x1f71c1['dialMachineRetryFrequency'],_0x593c7b('0x131'))[_0x593c7b('0x1bc')](_0x593c7b('0x68')),'ContactId':_0x52c6af[_0x593c7b('0x1e9')],'ListId':_0x52c6af[_0x593c7b('0xb5')],'VoiceQueueId':_0x52c6af[_0x593c7b('0xdb')]||undefined,'CampaignId':_0x52c6af[_0x593c7b('0x15e')]||undefined})[_0x593c7b('0x17c')](loggerCatch('[rescheduleContact][Machine]')),_0xf91759({'reschedule':0x1}));});}_0x118f84['type']===_0x4c536f('0x101')&&this[_0x4c536f('0xf3')][_0x118f84[_0x4c536f('0x4e')]]['dialAMDActive']&&_0x4ee518[_0x4c536f('0x168')]===_0x4c536f('0x132')&&(delete this[_0x4c536f('0x3e')][_0x4ee518[_0x4c536f('0x2d')]],this[_0x4c536f('0xa')](this[_0x4c536f('0xf3')][_0x118f84['queue']]),_0x720cbe=new Hangup(_0x118f84,_0x4ee518),_0x720cbe['state']=0x12,_0x720cbe[_0x4c536f('0x12c')]=_0x4c536f('0x1ff'),_0x720cbe['membername']=_0x4c536f('0x8f'),this[_0x4c536f('0x2c')](_0x720cbe,_0x4c536f('0x1ee'),_0x4c536f('0x1ed')));if(_0x118f84['type']===_0x4c536f('0x101')&&this[_0x4c536f('0xf3')][_0x118f84[_0x4c536f('0x4e')]][_0x4c536f('0x4b')]&&_0x4ee518['value']===_0x4c536f('0x12a')){const _0x4d6d6a=this;return new Promise(function(_0x54d158,_0x5a0051){const _0x20deaa=_0x4c536f;delete _0x4d6d6a[_0x20deaa('0x3e')][_0x4ee518[_0x20deaa('0x2d')]],_0x4d6d6a[_0x20deaa('0xa')](_0x4d6d6a[_0x20deaa('0xf3')][_0x118f84[_0x20deaa('0x4e')]]),_0x4d6d6a['campaigns'][_0x118f84[_0x20deaa('0x4e')]][_0x20deaa('0x2')]+=0x1,_0x4d6d6a['campaigns'][_0x118f84[_0x20deaa('0x4e')]][_0x20deaa('0x161')]+=0x1;const _0x1997c5=_0x4d6d6a['campaigns'][_0x118f84[_0x20deaa('0x4e')]],_0x56cf2c=new Hangup(_0x118f84,_0x4ee518);_0x56cf2c[_0x20deaa('0x12d')]=0x13,_0x56cf2c[_0x20deaa('0x12c')]=_0x20deaa('0x86'),_0x56cf2c[_0x20deaa('0x104')]='AMD',_0x56cf2c[_0x20deaa('0x16f')]+=0x1,_0x56cf2c[_0x20deaa('0x5b')]+=0x1,_0x56cf2c[_0x20deaa('0xa9')]=!![],_0x4d6d6a[_0x20deaa('0x17a')](_0x56cf2c)[_0x20deaa('0x17c')](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x56cf2c[_0x20deaa('0x1e4')]+_0x56cf2c[_0x20deaa('0xba')]+_0x56cf2c['countnoanswerretry']+_0x56cf2c[_0x20deaa('0x1e6')]+_0x56cf2c[_0x20deaa('0x213')]+_0x56cf2c[_0x20deaa('0x1b5')]+_0x56cf2c[_0x20deaa('0x16f')]+_0x56cf2c[_0x20deaa('0x182')]>=_0x1997c5['dialGlobalMaxRetry']?_0x4d6d6a[_0x20deaa('0x107')](_0x56cf2c,_0x54d158,_0x5a0051,'reason19\x20machine....'):_0x56cf2c[_0x20deaa('0x16f')]>=_0x1997c5[_0x20deaa('0x112')]?_0x4d6d6a[_0x20deaa('0xfb')](_0x56cf2c,_0x54d158,_0x5a0051,_0x20deaa('0x1bf')):(_0x4d6d6a[_0x20deaa('0x71')]({'active':![],'countmachineretry':_0x56cf2c[_0x20deaa('0x16f')],'scheduledat':moment()[_0x20deaa('0x1ae')](_0x1997c5[_0x20deaa('0x20')],'minutes')['format'](_0x20deaa('0x68')),'ContactId':_0x56cf2c[_0x20deaa('0x1e9')],'ListId':_0x56cf2c[_0x20deaa('0xb5')],'VoiceQueueId':_0x56cf2c[_0x20deaa('0xdb')]||undefined,'CampaignId':_0x56cf2c[_0x20deaa('0x15e')]||undefined})[_0x20deaa('0x17c')](loggerCatch(_0x20deaa('0x11f'))),_0x54d158({'reschedule':0x1}));});}}},Dialer['prototype']['syncHangup']=function(_0xdefa14){const _0x477b29=_0x1fd82e,_0x2b97b3=this['uniqueId'][_0xdefa14[_0x477b29('0x2d')]];let _0x240f29;_0x2b97b3&&_0x2b97b3['type']==='ivr'&&(delete this[_0x477b29('0x3e')][_0xdefa14[_0x477b29('0x2d')]],this['updateOriginated'](this[_0x477b29('0xf3')][_0x2b97b3[_0x477b29('0x4e')]]),this[_0x477b29('0xf3')][_0x2b97b3['queue']][_0x477b29('0xf1')]+=0x1,_0x240f29=new Hangup(_0x2b97b3,_0xdefa14),this['createHistory'](_0x240f29)[_0x477b29('0x17c')](loggerCatch(_0x477b29('0x1c5'))),this[_0x477b29('0x18b')](_0x240f29)[_0x477b29('0x17c')](loggerCatch(_0x477b29('0x144')))),_0x2b97b3&&_0x2b97b3['type']!==_0x477b29('0x101')&&isNotNull(this[_0x477b29('0x207')][_0x2b97b3['queue']][_0x477b29('0xae')])&&(delete this[_0x477b29('0x3e')][_0xdefa14[_0x477b29('0x2d')]],this[_0x477b29('0xa')](this[_0x477b29('0x207')][_0x2b97b3['queue']]),this['voiceQueues'][_0x2b97b3[_0x477b29('0x4e')]][_0x477b29('0x2')]+=0x1,this[_0x477b29('0x207')][_0x2b97b3[_0x477b29('0x4e')]]['outboundAnswerAgiCallsDay']+=0x1,_0x240f29=new Hangup(_0x2b97b3,_0xdefa14),_0x240f29[_0x477b29('0x12d')]=0x10,_0x240f29[_0x477b29('0x12c')]=_0x477b29('0x1a3'),_0x240f29['membername']=_0x477b29('0xc'),this[_0x477b29('0x17a')](_0x240f29)[_0x477b29('0x17c')](loggerCatch(_0x477b29('0x1c5'))),this['moveContactManagedDialer'](_0x240f29)[_0x477b29('0x17c')](loggerCatch(_0x477b29('0x144')))),_0x2b97b3&&_0x2b97b3[_0x477b29('0x19d')]!==_0x477b29('0x101')&&!isNotNull(this['voiceQueues'][_0x2b97b3[_0x477b29('0x4e')]]['dialQueueProject'])&&(delete this[_0x477b29('0x3e')][_0xdefa14[_0x477b29('0x2d')]],this[_0x477b29('0xa')](this[_0x477b29('0x207')][_0x2b97b3[_0x477b29('0x4e')]]),this[_0x477b29('0x207')][_0x2b97b3['queue']][_0x477b29('0x120')]+=0x1,_0x240f29=new Hangup(_0x2b97b3,_0xdefa14),_0x240f29[_0x477b29('0x12d')]=0xc,_0x240f29[_0x477b29('0x12c')]=_0xdefa14[_0x477b29('0x65')],_0x240f29[_0x477b29('0x104')]=_0x477b29('0x7b'),this[_0x477b29('0x17a')](_0x240f29)[_0x477b29('0x17c')](loggerCatch('[syncHangupIvr][createHistory]')),this[_0x477b29('0x18b')](_0x240f29)['catch'](loggerCatch(_0x477b29('0x144'))));},Dialer[_0x1fd82e('0x1ab')]['syncAgentComplete']=function(_0x473073){const _0x2c5128=_0x1fd82e,_0x12aacb=this[_0x2c5128('0x3e')][_0x473073[_0x2c5128('0x2d')]];if(this[_0x2c5128('0x207')][_0x473073[_0x2c5128('0x4e')]]){if(_0x12aacb&&_0x12aacb[_0x2c5128('0x19d')]!==_0x2c5128('0x101')){delete this[_0x2c5128('0x3e')][_0x473073[_0x2c5128('0x2d')]],this['voiceQueues'][_0x473073[_0x2c5128('0x4e')]][_0x2c5128('0x2')]+=0x1;const _0x5eca2c=new AgentComplete(_0x12aacb,_0x473073);_0x473073[_0x2c5128('0xac')]===_0x2c5128('0x7a')&&(_0x5eca2c[_0x2c5128('0x85')]=this['voiceQueues'][_0x473073['queue']][_0x2c5128('0x56')]&&this[_0x2c5128('0x207')][_0x473073[_0x2c5128('0x4e')]][_0x2c5128('0xa2')]?moment()[_0x2c5128('0x1bc')]('YYYY-MM-DD\x20HH:mm:ss'):undefined),this['createHistory'](_0x5eca2c)[_0x2c5128('0x17c')](loggerCatch(_0x2c5128('0x94'))),this[_0x2c5128('0x18b')](_0x5eca2c)[_0x2c5128('0x17c')](loggerCatch(_0x2c5128('0x7f')));}}},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x162')]=function(_0x57564a){const _0x2f5a30=_0x1fd82e;this['voiceQueues'][_0x57564a[_0x2f5a30('0x4e')]]&&(this['uniqueId'][_0x57564a['uniqueid']]&&this[_0x2f5a30('0x3e')][_0x57564a[_0x2f5a30('0x2d')]]['type']!=='ivr'&&(this[_0x2f5a30('0xa')](this[_0x2f5a30('0x207')][_0x57564a[_0x2f5a30('0x4e')]]),this[_0x2f5a30('0x3e')][_0x57564a['uniqueid']][_0x2f5a30('0xf4')]=moment()[_0x2f5a30('0x1bc')](_0x2f5a30('0x68'))));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x1e5')]=function(_0x7556b0){const _0x14a565=_0x1fd82e;this[_0x14a565('0x17a')](_0x7556b0)[_0x14a565('0x17c')](loggerCatch(_0x14a565('0x94'))),this['moveContactManagedDialer'](_0x7556b0)[_0x14a565('0x17c')](loggerCatch(_0x14a565('0x2f')));},Dialer['prototype'][_0x1fd82e('0x58')]=function(_0x1f62f2){const _0x3a602f=_0x1fd82e,_0x357dec=this[_0x3a602f('0x3e')][_0x1f62f2['uniqueid']];if(this['voiceQueues'][_0x1f62f2[_0x3a602f('0x4e')]]){if(_0x357dec&&_0x357dec[_0x3a602f('0x19d')]!=='ivr'){delete this[_0x3a602f('0x3e')][_0x1f62f2[_0x3a602f('0x2d')]],this[_0x3a602f('0xa')](this['voiceQueues'][_0x1f62f2[_0x3a602f('0x4e')]]),_0x357dec[_0x3a602f('0x119')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');const _0xe333cc=new QueueCallerAbandon(_0x357dec,_0x1f62f2);if(getSeconds(_0x357dec['droptime'],_0x357dec['responsetime'])>=_0x357dec[_0x3a602f('0x4a')]){this[_0x3a602f('0x207')][_0x1f62f2['queue']][_0x3a602f('0xe4')]+=0x1,this[_0x3a602f('0x207')][_0x1f62f2[_0x3a602f('0x4e')]][_0x3a602f('0xfe')]+=0x1,this[_0x3a602f('0x207')][_0x1f62f2['queue']][_0x3a602f('0x1a8')]+=0x1,_0xe333cc[_0x3a602f('0x12d')]=0xa,_0xe333cc[_0x3a602f('0x12c')]=_0x3a602f('0x1e1'),_0xe333cc[_0x3a602f('0x3b')]='TIMEOUT',_0xe333cc[_0x3a602f('0x85')]=this[_0x3a602f('0x207')][_0x1f62f2[_0x3a602f('0x4e')]]['dialQueueProject2']?moment()[_0x3a602f('0x1bc')](_0x3a602f('0x68')):undefined,_0xe333cc[_0x3a602f('0x213')]+=0x1,_0xe333cc[_0x3a602f('0x5b')]+=0x1;if(_0xe333cc[_0x3a602f('0x213')]>=this[_0x3a602f('0x207')][_0x1f62f2[_0x3a602f('0x4e')]][_0x3a602f('0x1b0')])this[_0x3a602f('0x1e5')](_0xe333cc);else{this[_0x3a602f('0x71')]({'active':![],'countdropretry':_0xe333cc[_0x3a602f('0x213')],'scheduledat':moment()[_0x3a602f('0x1ae')](this[_0x3a602f('0x207')][_0x1f62f2[_0x3a602f('0x4e')]][_0x3a602f('0x192')],'minutes')['format'](_0x3a602f('0x68')),'ContactId':_0x357dec['ContactId'],'ListId':_0x357dec[_0x3a602f('0xb5')],'VoiceQueueId':_0x357dec[_0x3a602f('0xdb')]||undefined,'CampaignId':_0x357dec['CampaignId']||undefined})[_0x3a602f('0x17c')](loggerCatch('[rescheduleContact][Drop]'));const _0x3212ec=new History(_0xe333cc);_0x3212ec[_0x3a602f('0x12d')]=0xa,_0x3212ec['statedesc']='Drop',_0x3212ec[_0x3a602f('0x212')]=moment()['format'](_0x3a602f('0x68')),_0x3212ec[_0x3a602f('0xe9')]=_0x3212ec[_0x3a602f('0x212')],_0x3212ec[_0x3a602f('0x13e')]=_0xe333cc[_0x3a602f('0x13e')],_0x3212ec[_0x3a602f('0xfa')]=_0xe333cc['calleridnum'],this['createHistory'](_0x3212ec)[_0x3a602f('0x17c')](loggerCatch(_0x3a602f('0x31')));}}else{this[_0x3a602f('0x207')][_0x1f62f2[_0x3a602f('0x4e')]][_0x3a602f('0x32')]+=0x1,this[_0x3a602f('0x207')][_0x1f62f2[_0x3a602f('0x4e')]][_0x3a602f('0x1b8')]+=0x1,_0xe333cc[_0x3a602f('0x12d')]=0xb,_0xe333cc[_0x3a602f('0x12c')]='Abandoned',_0xe333cc[_0x3a602f('0x3b')]=_0x3a602f('0x1d7'),_0xe333cc[_0x3a602f('0x1b5')]+=0x1,_0xe333cc[_0x3a602f('0x5b')]+=0x1;if(_0xe333cc[_0x3a602f('0x1b5')]>=this[_0x3a602f('0x207')][_0x1f62f2[_0x3a602f('0x4e')]][_0x3a602f('0x73')])this[_0x3a602f('0x1e5')](_0xe333cc);else{this[_0x3a602f('0x71')]({'active':![],'countabandonedretry':_0xe333cc[_0x3a602f('0x1b5')],'scheduledat':moment()['add'](this[_0x3a602f('0x207')][_0x1f62f2[_0x3a602f('0x4e')]][_0x3a602f('0x63')],_0x3a602f('0x131'))[_0x3a602f('0x1bc')](_0x3a602f('0x68')),'ContactId':_0x357dec[_0x3a602f('0x1e9')],'ListId':_0x357dec[_0x3a602f('0xb5')],'VoiceQueueId':_0x357dec[_0x3a602f('0xdb')]||undefined,'CampaignId':_0x357dec[_0x3a602f('0x15e')]||undefined})['catch'](loggerCatch(_0x3a602f('0x96')));const _0x39b4e5=new History(_0xe333cc);_0x39b4e5[_0x3a602f('0x12d')]=0xb,_0x39b4e5[_0x3a602f('0x12c')]=_0x3a602f('0x176'),_0x39b4e5[_0x3a602f('0x212')]=moment()['format'](_0x3a602f('0x68')),_0x39b4e5[_0x3a602f('0xe9')]=_0x39b4e5[_0x3a602f('0x212')],_0x39b4e5[_0x3a602f('0x13e')]=_0xe333cc[_0x3a602f('0x13e')],_0x39b4e5[_0x3a602f('0xfa')]=_0xe333cc[_0x3a602f('0xfa')],this[_0x3a602f('0x17a')](_0x39b4e5)[_0x3a602f('0x17c')](loggerCatch(_0x3a602f('0xc6')));}}}}},Dialer['prototype'][_0x1fd82e('0x6a')]=function(_0x15cf43){const _0x318807=_0x1fd82e;this['actions'][_0x15cf43[_0x318807('0x2d')]]&&(this[_0x318807('0x1dd')][_0x15cf43['uniqueid']][_0x318807('0xd7')]=_0x15cf43[_0x318807('0xd7')]),this[_0x318807('0x3e')][_0x15cf43[_0x318807('0x2d')]]&&(this[_0x318807('0x3e')][_0x15cf43[_0x318807('0x2d')]][_0x318807('0xd7')]=_0x15cf43[_0x318807('0xd7')]);},Dialer['prototype']['syncQueueMember']=function(_0x356afa){const _0x1c8faf=_0x1fd82e;if(strategy[this[_0x1c8faf('0x207')][this[_0x1c8faf('0x1dd')][_0x356afa[_0x1c8faf('0xf6')]][_0x1c8faf('0x4e')]][_0x1c8faf('0x1d6')]]===_0x1c8faf('0x1e'))this[_0x1c8faf('0x1dd')][_0x356afa[_0x1c8faf('0xf6')]]&&_[_0x1c8faf('0x46')](this[_0x1c8faf('0x1dd')][_0x356afa[_0x1c8faf('0xf6')]][_0x1c8faf('0x18e')])&&_0x356afa[_0x1c8faf('0x12f')]==='1'&&_0x356afa[_0x1c8faf('0x17')]==='0'&&(this[_0x1c8faf('0x190')][_0x356afa['stateinterface']]&&(!this[_0x1c8faf('0x190')][_0x356afa[_0x1c8faf('0x13f')]]['locked']&&(this[_0x1c8faf('0x190')][_0x356afa[_0x1c8faf('0x13f')]][_0x1c8faf('0x18e')]=!![],this[_0x1c8faf('0x1dd')][_0x356afa[_0x1c8faf('0xf6')]][_0x1c8faf('0x18e')]=!![],this['actions'][_0x356afa[_0x1c8faf('0xf6')]][_0x1c8faf('0x13f')]=_0x356afa[_0x1c8faf('0x13f')])));else(strategy[this[_0x1c8faf('0x207')][this['actions'][_0x356afa[_0x1c8faf('0xf6')]]['queue']]['strategy']]||_0x1c8faf('0x14'))===_0x1c8faf('0x14')&&(this[_0x1c8faf('0x1dd')][_0x356afa[_0x1c8faf('0xf6')]]&&(this['agents'][_0x356afa['stateinterface']]&&(this['actions'][_0x356afa['actionid']]['stateinterface']=_0x356afa[_0x1c8faf('0x13f')],_[_0x1c8faf('0x46')](this['queueBooked'][this[_0x1c8faf('0x1dd')][_0x356afa['actionid']][_0x1c8faf('0x4e')]])&&(this[_0x1c8faf('0x7e')][this[_0x1c8faf('0x1dd')][_0x356afa['actionid']]['queue']]=[]),this[_0x1c8faf('0x7e')][this[_0x1c8faf('0x1dd')][_0x356afa[_0x1c8faf('0xf6')]][_0x1c8faf('0x4e')]][_0x1c8faf('0x193')](_[_0x1c8faf('0xd9')](_[_0x1c8faf('0x186')](this[_0x1c8faf('0x1dd')][_0x356afa[_0x1c8faf('0xf6')]],[_0x1c8faf('0x1be'),'stateinterface']),{'status':_0x356afa['status'],'paused':_0x356afa[_0x1c8faf('0x17')]})))));};function unlockQueueStatus(_0x578a25,_0x2d348c){setTimeout(function(){const _0x4d649e=a1056_0x47fb;_[_0x4d649e('0x172')](_0x578a25[_0x4d649e('0x19a')])&&loggerBooked[_0x4d649e('0xf5')](_0x4d649e('0xd3'),_0x2d348c),_0x578a25[_0x4d649e('0x19a')]=!![],loggerBooked['info']('[booked][unlockQueueStatus]',_0x2d348c,JSON[_0x4d649e('0x206')](_[_0x4d649e('0x186')](_0x578a25,[_0x4d649e('0x17e'),'queueStatusComplete'])));},0x1f3);}Dialer[_0x1fd82e('0x1ab')]['syncQueueStatusComplete']=function(_0x48b073){const _0x808131=_0x1fd82e,_0x28c850=this,_0x219ee2=_0x28c850[_0x808131('0x207')][_0x28c850[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]][_0x808131('0x4e')]];if(strategy[this[_0x808131('0x207')][this[_0x808131('0x1dd')][_0x48b073['actionid']][_0x808131('0x4e')]][_0x808131('0x1d6')]]===_0x808131('0x1e'))this[_0x808131('0x1dd')][_0x48b073['actionid']]&&this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]]['stateinterface']?this[_0x808131('0x195')][_0x808131('0xaf')](this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]][_0x808131('0x1be')],this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]][_0x808131('0x13f')])['catch'](function(_0x43f37c){const _0x5ac847=_0x808131;logger[_0x5ac847('0xf5')]('[Catch][Preview][syncQueueStatusComplete]',util[_0x5ac847('0x211')](_0x43f37c,{'showHidden':![],'depth':null}));})[_0x808131('0x1df')](function(){const _0x2f0765=_0x808131;_0x28c850['updateOriginated'](_0x28c850[_0x2f0765('0x207')][_0x28c850['actions'][_0x48b073[_0x2f0765('0xf6')]][_0x2f0765('0x4e')]]),_0x28c850[_0x2f0765('0x190')][_0x28c850[_0x2f0765('0x1dd')][_0x48b073[_0x2f0765('0xf6')]]['stateinterface']]['locked']=![],delete _0x28c850[_0x2f0765('0x1dd')][_0x48b073[_0x2f0765('0xf6')]],unlockQueueStatus(_0x219ee2);}):(this[_0x808131('0xa')](this['voiceQueues'][this[_0x808131('0x1dd')][_0x48b073['actionid']][_0x808131('0x4e')]]),this[_0x808131('0x71')]({'active':![],'ContactId':this['actions'][_0x48b073['actionid']][_0x808131('0x1e9')],'ListId':this[_0x808131('0x1dd')][_0x48b073['actionid']][_0x808131('0xb5')],'VoiceQueueId':this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]][_0x808131('0xdb')]||undefined,'CampaignId':this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]][_0x808131('0x15e')]||undefined})[_0x808131('0x17c')](loggerCatch(_0x808131('0x4c'))),delete this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]],unlockQueueStatus(_0x219ee2));else{if((strategy[this[_0x808131('0x207')][this[_0x808131('0x1dd')][_0x48b073['actionid']][_0x808131('0x4e')]]['strategy']]||_0x808131('0x14'))===_0x808131('0x14')){let _0x27d84c;if(this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]]&&!_[_0x808131('0x40')](this[_0x808131('0x7e')][this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]]['queue']])){this['queueBookedRR'][_0x28c850['actions'][_0x48b073[_0x808131('0xf6')]]['queue']]&&(this['queueBookedRR'][_0x28c850[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]]['queue']]=this['queueBookedRR'][this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]][_0x808131('0x4e')]]?this[_0x808131('0x105')][this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]][_0x808131('0x4e')]]:this[_0x808131('0x7e')][this[_0x808131('0x1dd')][_0x48b073['actionid']][_0x808131('0x4e')]]?this['queueBooked'][this[_0x808131('0x1dd')][_0x48b073[_0x808131('0xf6')]][_0x808131('0x4e')]][_0x808131('0x3f')]||0x0:0x0);this['queueBooked'][this['actions'][_0x48b073[_0x808131('0xf6')]]['queue']][_0x808131('0x3f')]=this[_0x808131('0x105')][this['actions'][_0x48b073[_0x808131('0xf6')]][_0x808131('0x4e')]];for(let _0x110acc=0x0;_0x110acc=0x0?!![]:![];})[_0x268e1d('0x17c')](myreject(_0xcb84a5)));}else _0x48ad98[_0x268e1d('0x193')](ami[_0x268e1d('0x15f')]({'action':_0x268e1d('0x121'),'command':util[_0x268e1d('0x1bc')]('iftime\x20%s,%s',_0x3c8894,!_['isUndefined'](config[_0x268e1d('0x20a')][_0x4c97b9])?_0x4c97b9:'')})[_0x268e1d('0xd5')](function(_0x2e7ef0){const _0x5f566c=_0x268e1d;return _0x2e7ef0[_0x5f566c('0x3c')][_0x5f566c('0x26')]('true')>=0x0?!![]:![];})['catch'](myreject(_0xcb84a5)));Promise[_0x268e1d('0x91')](_0x48ad98)[_0x268e1d('0xd5')](function(_0x4a354a){const _0x53c5ab=_0x268e1d,_0x2356c2=_[_0x53c5ab('0x5d')](_0x4a354a);return _0x2356c2?_0x282f7b(_0x2356c2):(_0x509355['message']=_0x3eacce?_0x53c5ab('0x81'):'INTERVAL_IS_OVERTIME',_0xcb84a5(msgResponse('[ifTime][promiseAll]','Failure',_0x53c5ab('0x183')+_0x3eacce+'\x20'+_0x2659f4+_0x53c5ab('0x1f1')+util[_0x53c5ab('0x211')](_0x3c8894,{'showHidden':![],'depth':null})+_0x53c5ab('0x1e0')+_0x4c97b9)));})[_0x268e1d('0x17c')](function(_0x340a39){const _0x34974d=_0x268e1d;return _0xcb84a5(msgResponse(_0x34974d('0x48'),_0x34974d('0x148'),JSON[_0x34974d('0x206')](_0x340a39)));});});},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x9a')]=function(_0x352200){const _0xfac54d=this;return function(){const _0x56cd51=a1056_0x47fb;switch(_0x352200[_0x56cd51('0x1f6')]){case _0x56cd51('0x123'):freeVariablesPredictive(_0x352200),_0xfac54d[_0x56cd51('0x11d')](_0x352200,0x1);break;case _0x56cd51('0xef'):freeVariablesPredictive(_0x352200),_0xfac54d[_0x56cd51('0x11d')](_0x352200,_0x352200['dialPowerLevel']);break;case'predictive':_0xfac54d[_0x56cd51('0xed')](_0x352200);break;case _0x56cd51('0x51'):freeVariablesPredictive(_0x352200),_0xfac54d[_0x56cd51('0x11d')](_0x352200,0x1);break;default:freeVariablesPredictive(_0x352200),logger[_0x56cd51('0xf5')](_0x56cd51('0xe3'),_0x352200[_0x56cd51('0x17e')],_0x56cd51('0x1c7'));}};},Dialer[_0x1fd82e('0x1ab')]['launchHandleIvr']=function(_0x43a458){const _0x3a5458=this;return function(){const _0x13cd9a=a1056_0x47fb;_0x3a5458[_0x13cd9a('0x36')](_0x43a458);};},Dialer[_0x1fd82e('0x1ab')]['syncQueueSummary']=function(_0x2a0431){const _0x1be330=_0x1fd82e,_0x1a7a23=this;isNotPreview(_0x2a0431[_0x1be330('0x1f6')])?isVoiceQueueOutbound(_0x2a0431[_0x1be330('0x19d')])&&isActive(_0x2a0431[_0x1be330('0x10f')])?(_0x2a0431['sendMessageOneNotActive']=!![],Promise[_0x1be330('0x8')]()[_0x1be330('0xd5')](checkIsLoggedIn(_0x2a0431,_0x2a0431[_0x1be330('0xc0')]))[_0x1be330('0xd5')](checkIsActive(_0x2a0431,_0x2a0431['dialActive']))['then'](checkInterval(_0x2a0431))[_0x1be330('0xd5')](_0x1a7a23[_0x1be330('0x38')](_0x2a0431))[_0x1be330('0xd5')](_0x1a7a23[_0x1be330('0x0')](_0x2a0431[_0x1be330('0x80')],_0x2a0431[_0x1be330('0x53')],_0x2a0431[_0x1be330('0x17e')],_0x2a0431))[_0x1be330('0xd5')](_0x1a7a23[_0x1be330('0x84')](_0x2a0431[_0x1be330('0x199')],_0x2a0431['dialTimezone'],_0x2a0431[_0x1be330('0x17e')],_0x2a0431))[_0x1be330('0xd5')](_0x1a7a23['checkDialMethod'](_0x2a0431))[_0x1be330('0x17c')](loggerCatchQueueSummary(_0x1be330('0x118'),_0x2a0431))):notSendMessagesQueue(_0x2a0431):freeVariablesPredictive(_0x2a0431);},Dialer['prototype'][_0x1fd82e('0x129')]=function(){const _0x95f9c3=_0x1fd82e,_0x2c978f=this;let _0x5334d3;for(const _0x30e5ff in this[_0x95f9c3('0xf3')]){typeof this[_0x95f9c3('0xf3')][_0x30e5ff]!==_0x95f9c3('0x8c')&&(_0x5334d3=this['campaigns'][_0x30e5ff],isCampaignIvr(_0x5334d3[_0x95f9c3('0x19d')])&&isActive(_0x5334d3[_0x95f9c3('0x106')])?(_0x5334d3[_0x95f9c3('0x1f2')]=!![],Promise[_0x95f9c3('0x8')]()['then'](checkIsActive(_0x5334d3,_0x5334d3['active']))[_0x95f9c3('0xd5')](checkInterval(_0x5334d3))['then'](_0x2c978f['checkIsTrunkReachable'](_0x5334d3))[_0x95f9c3('0xd5')](_0x2c978f[_0x95f9c3('0x0')](_0x5334d3['dialGlobalInterval'],_0x5334d3['dialTimezone'],_0x5334d3[_0x95f9c3('0x17e')],_0x5334d3))['then'](_0x2c978f['checkIfTimeIntervals'](_0x5334d3[_0x95f9c3('0x199')],_0x5334d3[_0x95f9c3('0x53')],_0x5334d3[_0x95f9c3('0x17e')],_0x5334d3))[_0x95f9c3('0xd5')](_0x2c978f[_0x95f9c3('0x18a')](_0x5334d3))[_0x95f9c3('0x17c')](loggerCatchQueueSummary(_0x95f9c3('0x155'),_0x5334d3))):notSendMessagesCampaign(_0x5334d3));}};function getCallerIdRandom(_0x4bc7d8,_0x5995bf){const _0x545275=_0x1fd82e;_0x5995bf<=0x0&&(_0x5995bf=0x1);const _0x2c465d=new RegExp(_0x545275('0xb1')+_0x5995bf+'}$'),_0x16fc26=Math[_0x545275('0x8d')](0xa,_0x5995bf-0x1),_0x144705=Math['pow'](0xa,_0x5995bf)-0x1;return util['format']('%s',_[_0x545275('0x1d9')](_0x4bc7d8,_0x2c465d,_['random'](_0x16fc26,_0x144705)));}function extractCalleridName(_0x3db06e){const _0x2326f5=_0x1fd82e,_0x34167a=_0x3db06e[_0x2326f5('0x202')](/"(.*?)"/);return _0x34167a?_0x34167a[0x1]:_0x3db06e;}function extractCalleridNumber(_0x12493f){const _0xd24b4c=_0x12493f['match'](/<(.*?)>/);return _0xd24b4c?_0xd24b4c[0x1]:_0x12493f;}Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x204')]=function(_0x43bb47,_0x4a5704){const _0x40f76e=_0x1fd82e,_0x46ec99=getConfigService(),_0x82f725=this,_0xa8b6bb=uuid['v4']();return this[_0x40f76e('0x1dd')][_0xa8b6bb]=new Action(_0x43bb47,_0x4a5704,_0xa8b6bb),new Promise(function(_0x3e34d0,_0xfe8221){const _0x4178fa=_0x40f76e;if(_[_0x4178fa('0x172')](_0x43bb47)&&_0x4178fa('0x1a7')!==typeof _0x43bb47)return _0xfe8221(msgResponse(_0x4178fa('0x187'),_0x4178fa('0x148'),_0x4178fa('0x128')));if(_[_0x4178fa('0x172')](_0x4a5704[_0x4178fa('0x1dc')][_0x4178fa('0x108')])||_0x4a5704[_0x4178fa('0x1dc')][_0x4178fa('0x108')]===null)return _0xfe8221(msgResponse(_0x4178fa('0x187'),_0x4178fa('0x148'),_0x4178fa('0xd6')));const _0x22594e={'XMD-CALLERID':_0x82f725[_0x4178fa('0x1dd')][_0xa8b6bb][_0x4178fa('0x69')](),'XMD-AGI':_0x43bb47[_0x4178fa('0xae')]?util[_0x4178fa('0x1bc')]('\x22agi://%s/square,%s\x22',_0x46ec99['agiIp'],_0x43bb47[_0x4178fa('0xae')]):_0x4178fa('0x1c1'),'XMD-AGIAFTER':_0x43bb47['dialQueueProject2']?util['format'](_0x4178fa('0x12e'),_0x46ec99[_0x4178fa('0x9f')],_0x43bb47[_0x4178fa('0x56')]):_0x4178fa('0x1c1'),'XMD-QUEUE':_0x43bb47[_0x4178fa('0x19d')]===_0x4178fa('0xb4')?util[_0x4178fa('0x1bc')](_0x4178fa('0xa3'),_0x43bb47[_0x4178fa('0x17e')],_0x43bb47['dialQueueOptions']||'',_0x43bb47[_0x4178fa('0xa2')]?'c':'',_0x43bb47[_0x4178fa('0x4a')]||0x3):_0x4178fa('0x1c1'),'XMD-CONTACTID':_0x4a5704[_0x4178fa('0x1e9')],'XMD-CDRTYPE':_0x4178fa('0xa5'),'CALLERID(all)':_0x82f725[_0x4178fa('0x1dd')][_0xa8b6bb][_0x4178fa('0x69')](),'XMD-AMD':_0x43bb47['dialAMDActive']?_0x4178fa('0x141'):'NONE','XMD-DESTINATION':_0x4178fa('0x39')};_0x43bb47[_0x4178fa('0x4b')]&&(_0x22594e['XMD-AMDINITIALSILENCE']=_0x43bb47[_0x4178fa('0x1fb')]||0x9c4,_0x22594e[_0x4178fa('0x169')]=_0x43bb47[_0x4178fa('0x184')]||0x5dc,_0x22594e[_0x4178fa('0x52')]=_0x43bb47[_0x4178fa('0x173')]||0x320,_0x22594e[_0x4178fa('0x215')]=_0x43bb47['dialAMDTotalAnalysisTime']||0x1388,_0x22594e['XMD-AMDMINWORDLENGTH']=_0x43bb47[_0x4178fa('0x3d')]||0x64,_0x22594e[_0x4178fa('0x1f8')]=_0x43bb47[_0x4178fa('0x8e')]||0x32,_0x22594e[_0x4178fa('0x189')]=_0x43bb47['dialAMDMaximumNumberOfWords']||0x3,_0x22594e[_0x4178fa('0x15c')]=_0x43bb47[_0x4178fa('0xb9')]||0x100,_0x22594e[_0x4178fa('0x1fe')]=_0x43bb47[_0x4178fa('0x62')]||0x1388);_0x43bb47['type']===_0x4178fa('0xb4')?_0x22594e[_0x4178fa('0xa8')]=_0x4a5704[_0x4178fa('0xdb')]:_0x22594e[_0x4178fa('0xc4')]=_0x4a5704[_0x4178fa('0x15e')];for(const _0x36e3a9 in _0x4a5704['Contact']){typeof _0x4a5704[_0x4178fa('0x1dc')][_0x36e3a9]!==_0x4178fa('0x8c')&&(isNotNull(_0x4a5704[_0x4178fa('0x1dc')][_0x36e3a9])&&_0x36e3a9!=='id'&&_0x36e3a9!==_0x4178fa('0x218')&&_0x36e3a9!==_0x4178fa('0x1ce')&&_0x36e3a9!==_0x4178fa('0x42')&&(_0x22594e[util[_0x4178fa('0x1bc')]('%s%s',_0x4178fa('0x1ac'),_[_0x4178fa('0xc5')](_0x36e3a9))]=_0x4a5704[_0x4178fa('0x1dc')][_0x36e3a9]));}const _0x1c0dd5=_0x82f725[_0x4178fa('0x1ad')](_0x43bb47[_0x4178fa('0x154')])?getCallerId(_0x43bb47[_0x4178fa('0x154')][_0x4178fa('0x100')],_0x43bb47['dialOriginateCallerIdName'],_0x43bb47[_0x4178fa('0x18c')]>0x0?getCallerIdRandom(_0x43bb47['dialOriginateCallerIdNumber'],_0x43bb47[_0x4178fa('0x18c')]):_0x43bb47[_0x4178fa('0x2e')]):getCallerId(_[_0x4178fa('0x46')](_0x43bb47[_0x4178fa('0x16b')])?_0x43bb47[_0x4178fa('0x154')][_0x4178fa('0x100')]:_0x43bb47[_0x4178fa('0x16b')]['callerid'],_0x43bb47[_0x4178fa('0x175')],_0x43bb47[_0x4178fa('0x18c')]>0x0?getCallerIdRandom(_0x43bb47[_0x4178fa('0x2e')],_0x43bb47[_0x4178fa('0x18c')]):_0x43bb47[_0x4178fa('0x2e')]);if(_0x1c0dd5){const _0x5e7fa5=extractCalleridName(_0x1c0dd5);_0x22594e[_0x4178fa('0x1cc')]=_0x5e7fa5,_0x82f725['actions'][_0xa8b6bb][_0x4178fa('0xbb')]=_0x5e7fa5;const _0xdd600d=extractCalleridNumber(_0x1c0dd5);_0x22594e[_0x4178fa('0x1c9')]==_0xdd600d,_0x82f725[_0x4178fa('0x1dd')][_0xa8b6bb][_0x4178fa('0x6b')]=_0xdd600d;}return ami[_0x4178fa('0x15f')]({'actionid':_0xa8b6bb,'action':_0x4178fa('0x187'),'channel':_0x82f725[_0x4178fa('0x1ad')](_0x43bb47['Trunk'])?util[_0x4178fa('0x1bc')](_0x4178fa('0x1a4'),_0x43bb47[_0x4178fa('0x154')]['name'],isNotNull(_0x43bb47[_0x4178fa('0xb2')])?_0x43bb47[_0x4178fa('0xb2')][_0x4178fa('0x177')]()||'':'',_0x43bb47[_0x4178fa('0x6d')]>0x0?_0x4a5704[_0x4178fa('0x1dc')][_0x4178fa('0x108')][_0x4178fa('0xeb')](_0x43bb47[_0x4178fa('0x6d')]):_0x4a5704[_0x4178fa('0x1dc')][_0x4178fa('0x108')]):util[_0x4178fa('0x1bc')](_0x4178fa('0x1a4'),_['isNil'](_0x43bb47[_0x4178fa('0x16b')])?_0x43bb47[_0x4178fa('0x154')]['name']:_0x43bb47[_0x4178fa('0x16b')][_0x4178fa('0x17e')],isNotNull(_0x43bb47[_0x4178fa('0xb2')])?_0x43bb47['dialPrefix'][_0x4178fa('0x177')]()||'':'',_0x43bb47[_0x4178fa('0x6d')]>0x0?_0x4a5704[_0x4178fa('0x1dc')][_0x4178fa('0x108')][_0x4178fa('0xeb')](_0x43bb47[_0x4178fa('0x6d')]):_0x4a5704[_0x4178fa('0x1dc')]['phone']),'callerid':_0x1c0dd5,'Exten':_0x4178fa('0x39'),'Context':_0x4178fa('0x89'),'Priority':'1','variable':_0x22594e,'timeout':(_0x43bb47[_0x4178fa('0x165')]||0x1e)*0x3e8,'async':!![],'channelid':_0xa8b6bb})[_0x4178fa('0xd5')](function(_0x23e285){return _0x3e34d0(_0x23e285);})['catch'](function(_0x3582dd){const _0xcc30f5=_0x4178fa;_0x43bb47[_0xcc30f5('0x29')]+=0x1;const _0x72511a=new History(_0x82f725[_0xcc30f5('0x1dd')][_0xa8b6bb]);logger[_0xcc30f5('0xf5')](util['format'](_0xcc30f5('0x50'),JSON['stringify'](_0x3582dd))),_0x72511a[_0xcc30f5('0x12d')]=0xe,_0x72511a[_0xcc30f5('0x12c')]=_0xcc30f5('0x1d'),_0x72511a[_0xcc30f5('0x212')]=moment()[_0xcc30f5('0x1bc')](_0xcc30f5('0x68')),_0x72511a[_0xcc30f5('0xe9')]=_0x72511a['starttime'],_0x82f725[_0xcc30f5('0x17a')](_0x72511a)[_0xcc30f5('0x17c')](loggerCatch(_0xcc30f5('0x1cd'))),_0x82f725[_0xcc30f5('0x18b')](_0x72511a)[_0xcc30f5('0x17c')](loggerCatch(_0xcc30f5('0x1cd')))['finally'](function(){const _0x4143c3=_0xcc30f5;return delete _0x82f725[_0x4143c3('0x1dd')][_0xa8b6bb],_0xfe8221(msgResponse('originate',_0x4143c3('0x1f4'),_0x4143c3('0x1f7')));});});});},Dialer['prototype']['syncOriginateResponse']=function(_0x45b31a){const _0x2dfb4b=_0x1fd82e,_0x1c7aba=this[_0x2dfb4b('0x1dd')][_0x45b31a[_0x2dfb4b('0xf6')]];if(_0x1c7aba){delete this['actions'][_0x45b31a['actionid']],_0x1c7aba[_0x2dfb4b('0xf0')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');const _0x191b14=_0x1c7aba[_0x2dfb4b('0x19d')]===_0x2dfb4b('0x101')?this[_0x2dfb4b('0xf3')][_0x1c7aba[_0x2dfb4b('0x4e')]]:this[_0x2dfb4b('0x207')][_0x1c7aba[_0x2dfb4b('0x10b')]()];if(!this['isSuccess'](_0x45b31a[_0x2dfb4b('0x109')]))return this['updateOriginated'](_0x191b14),this[_0x2dfb4b('0x201')](_0x1c7aba,_0x191b14,_0x45b31a)['then'](function(){})[_0x2dfb4b('0x17c')](loggerCatch('[callProgressDetecting]\x20'));else this[_0x2dfb4b('0x3e')][_0x45b31a[_0x2dfb4b('0x2d')]]=_0x1c7aba;}},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x14a')]=function(_0xe2ca78,_0x40c909,_0x12cd3a){const _0x141895=_0x1fd82e,_0x3a3fc7=new History(_0x40c909);if(_0x3a3fc7['countbusyretry']+_0x3a3fc7['countcongestionretry']+_0x3a3fc7[_0x141895('0x1fa')]+_0x3a3fc7[_0x141895('0x1e6')]+_0x3a3fc7[_0x141895('0x213')]+_0x3a3fc7[_0x141895('0x1b5')]+_0x3a3fc7['countmachineretry']+_0x3a3fc7[_0x141895('0x182')]>=_0x12cd3a[_0x141895('0xf8')]-0x1)return!![];switch(_0xe2ca78){case 0x3:if(_0x3a3fc7[_0x141895('0x1fa')]>=_0x12cd3a['dialNoAnswerMaxRetry']-0x1)return!![];else this['rescheduleContact']({'active':![],'countnoanswerretry':_0x3a3fc7[_0x141895('0x1fa')]+=0x1,'scheduledat':moment()[_0x141895('0x1ae')](_0x12cd3a[_0x141895('0x9b')],_0x141895('0x131'))[_0x141895('0x1bc')](_0x141895('0x68')),'ContactId':_0x3a3fc7[_0x141895('0x1e9')],'ListId':_0x3a3fc7[_0x141895('0xb5')],'VoiceQueueId':_0x3a3fc7[_0x141895('0xdb')]||undefined,'CampaignId':_0x3a3fc7[_0x141895('0x15e')]||undefined})[_0x141895('0x17c')](loggerCatch('[rescheduleContact][NoAnswer]'));break;case 0x5:if(_0x3a3fc7['countbusyretry']>=_0x12cd3a[_0x141895('0x59')]-0x1)return!![];else this[_0x141895('0x71')]({'active':![],'countbusyretry':_0x3a3fc7['countbusyretry']+=0x1,'scheduledat':moment()['add'](_0x12cd3a[_0x141895('0x28')],'minutes')[_0x141895('0x1bc')](_0x141895('0x68')),'ContactId':_0x3a3fc7[_0x141895('0x1e9')],'ListId':_0x3a3fc7[_0x141895('0xb5')],'VoiceQueueId':_0x3a3fc7[_0x141895('0xdb')]||undefined,'CampaignId':_0x3a3fc7[_0x141895('0x15e')]||undefined})[_0x141895('0x17c')](loggerCatch(_0x141895('0x1a6')));break;case 0x8:if(_0x3a3fc7['countcongestionretry']>=_0x12cd3a[_0x141895('0x6c')]-0x1)return!![];else this[_0x141895('0x71')]({'active':![],'countcongestionretry':_0x3a3fc7['countcongestionretry']+=0x1,'scheduledat':moment()[_0x141895('0x1ae')](_0x12cd3a['dialCongestionRetryFrequency'],'minutes')['format'](_0x141895('0x68')),'ContactId':_0x3a3fc7[_0x141895('0x1e9')],'ListId':_0x3a3fc7[_0x141895('0xb5')],'VoiceQueueId':_0x3a3fc7[_0x141895('0xdb')]||undefined,'CampaignId':_0x3a3fc7[_0x141895('0x15e')]||undefined})[_0x141895('0x17c')](loggerCatch(_0x141895('0xbc')));break;case 0x0:if(_0x3a3fc7[_0x141895('0x1e6')]>=_0x12cd3a[_0x141895('0x16d')]-0x1)return!![];else this[_0x141895('0x71')]({'active':![],'countnosuchnumberretry':_0x3a3fc7[_0x141895('0x1e6')]+=0x1,'scheduledat':moment()[_0x141895('0x1ae')](_0x12cd3a['dialNoSuchNumberRetryFrequency'],_0x141895('0x131'))[_0x141895('0x1bc')](_0x141895('0x68')),'ContactId':_0x3a3fc7[_0x141895('0x1e9')],'ListId':_0x3a3fc7[_0x141895('0xb5')],'VoiceQueueId':_0x3a3fc7['VoiceQueueId']||undefined,'CampaignId':_0x3a3fc7[_0x141895('0x15e')]||undefined})['catch'](loggerCatch('[rescheduleContact][NoSuchNumber]'));break;case 0xa:if(_0x3a3fc7[_0x141895('0x213')]>=_0x12cd3a[_0x141895('0x1b0')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countdropretry':_0x3a3fc7[_0x141895('0x213')]+=0x1,'scheduledat':moment()[_0x141895('0x1ae')](_0x12cd3a[_0x141895('0x192')],_0x141895('0x131'))[_0x141895('0x1bc')](_0x141895('0x68')),'ContactId':_0x3a3fc7[_0x141895('0x1e9')],'ListId':_0x3a3fc7[_0x141895('0xb5')],'VoiceQueueId':_0x3a3fc7[_0x141895('0xdb')]||undefined,'CampaignId':_0x3a3fc7['CampaignId']||undefined})[_0x141895('0x17c')](loggerCatch(_0x141895('0x14f')));break;case 0xb:if(_0x3a3fc7[_0x141895('0x1b5')]>=_0x12cd3a[_0x141895('0x73')]-0x1)return!![];else this[_0x141895('0x71')]({'active':![],'countabandonedretry':_0x3a3fc7['countabandonedretry']+=0x1,'scheduledat':moment()[_0x141895('0x1ae')](_0x12cd3a[_0x141895('0x63')],'minutes')[_0x141895('0x1bc')](_0x141895('0x68')),'ContactId':_0x3a3fc7['ContactId'],'ListId':_0x3a3fc7[_0x141895('0xb5')],'VoiceQueueId':_0x3a3fc7[_0x141895('0xdb')]||undefined,'CampaignId':_0x3a3fc7['CampaignId']||undefined})[_0x141895('0x17c')](loggerCatch('[rescheduleContact][Abandoned]'));break;case 0x13:if(_0x3a3fc7['countmachineretry']>=_0x12cd3a['dialMachineMaxRetry']-0x1)return!![];else this[_0x141895('0x71')]({'active':![],'countmachineretry':_0x3a3fc7[_0x141895('0x16f')]+=0x1,'scheduledat':moment()['add'](_0x12cd3a[_0x141895('0x20')],_0x141895('0x131'))[_0x141895('0x1bc')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x3a3fc7[_0x141895('0x1e9')],'ListId':_0x3a3fc7[_0x141895('0xb5')],'VoiceQueueId':_0x3a3fc7['VoiceQueueId']||undefined,'CampaignId':_0x3a3fc7[_0x141895('0x15e')]||undefined})['catch'](loggerCatch(_0x141895('0x11f')));break;case 0x14:if(_0x3a3fc7[_0x141895('0x182')]>=_0x12cd3a['dialAgentRejectMaxRetry']-0x1)return!![];else this[_0x141895('0x71')]({'active':![],'countagentrejectretry':_0x3a3fc7[_0x141895('0x182')]+=0x1,'scheduledat':moment()[_0x141895('0x1ae')](_0x12cd3a['dialAgentRejectRetryFrequency'],_0x141895('0x131'))[_0x141895('0x1bc')](_0x141895('0x68')),'ContactId':_0x3a3fc7['ContactId'],'ListId':_0x3a3fc7[_0x141895('0xb5')],'VoiceQueueId':_0x3a3fc7[_0x141895('0xdb')]||undefined,'CampaignId':_0x3a3fc7[_0x141895('0x15e')]||undefined})[_0x141895('0x17c')](loggerCatch(_0x141895('0x49')));break;default:return!![];}},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x201')]=function(_0x37e2b5,_0x4ee59d,_0x2e9ae0){const _0x42e4ad=this,_0x7d07aa=new History(_0x37e2b5);return new Promise(function(_0x1195e8,_0x5f42bd){const _0x307369=a1056_0x47fb;if(_['isUndefined'](_0x4ee59d)&&_0x307369('0x1a7')!==typeof _0x4ee59d)return _0x5f42bd(msgResponse(_0x307369('0x61'),_0x307369('0x148'),_0x307369('0x10a')));if(_[_0x307369('0x172')](_0x2e9ae0)&&_0x307369('0x1a7')!==typeof _0x2e9ae0)return _0x5f42bd(msgResponse(_0x307369('0x61'),'Failure',_0x307369('0xde')));switch(_0x2e9ae0[_0x307369('0xac')]){case'0':_0x4ee59d[_0x307369('0x1e8')]+=0x1,_0x7d07aa['state']=0x0,_0x7d07aa['statedesc']=_0x307369('0x4d'),_0x7d07aa[_0x307369('0x1e6')]+=0x1,_0x7d07aa[_0x307369('0x5b')]+=0x1,ami[_0x307369('0x8b')](_0x307369('0x57'),ut[_0x307369('0x15b')](_0x37e2b5,_0x307369('0x185'))),_0x42e4ad[_0x307369('0x17a')](_0x7d07aa)['catch'](loggerCatch(_0x307369('0x9d')));_0x42e4ad['checkRetriveMax'](0x0,_0x37e2b5,_0x4ee59d)&&(_0x7d07aa[_0x307369('0x1e6')]>=_0x4ee59d['dialNoSuchNumberMaxRetry']?_0x42e4ad['createStateFinal'](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x16a')):_0x42e4ad[_0x307369('0x107')](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x16a')));break;case'3':_0x4ee59d[_0x307369('0x1c6')]+=0x1,_0x7d07aa[_0x307369('0x12d')]=0x3,_0x7d07aa[_0x307369('0x12c')]=_0x307369('0x145'),_0x7d07aa[_0x307369('0x1fa')]+=0x1,_0x7d07aa[_0x307369('0x5b')]+=0x1,ami[_0x307369('0x8b')]('custom:agentnoanswer',ut[_0x307369('0x15b')](_0x37e2b5,_0x307369('0x15a'))),_0x42e4ad[_0x307369('0x17a')](_0x7d07aa)['catch'](loggerCatch(_0x307369('0xb8')));_0x42e4ad[_0x307369('0x14a')](0x3,_0x37e2b5,_0x4ee59d)&&(_0x7d07aa[_0x307369('0x1fa')]>=_0x4ee59d[_0x307369('0xcb')]?_0x42e4ad[_0x307369('0xfb')](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x160')):_0x42e4ad[_0x307369('0x107')](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x160')));break;case'5':_0x4ee59d['outboundBusyCallsDay']+=0x1,_0x7d07aa[_0x307369('0x12d')]=0x5,_0x7d07aa[_0x307369('0x12c')]=_0x307369('0x16'),_0x7d07aa[_0x307369('0x1e4')]+=0x1,_0x7d07aa[_0x307369('0x5b')]+=0x1,ami['emit']('custom:agentbusy',ut[_0x307369('0x15b')](_0x37e2b5,'busy')),_0x42e4ad[_0x307369('0x17a')](_0x7d07aa)[_0x307369('0x17c')](loggerCatch('[syncAgentComplete][createHistory][5]'));_0x42e4ad[_0x307369('0x14a')](0x5,_0x37e2b5,_0x4ee59d)&&(_0x7d07aa[_0x307369('0x1e4')]>=_0x4ee59d[_0x307369('0x59')]?_0x42e4ad[_0x307369('0xfb')](_0x7d07aa,_0x1195e8,_0x5f42bd,'reason\x205\x20busy'):_0x42e4ad[_0x307369('0x107')](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x1a9')));break;case'8':_0x4ee59d[_0x307369('0x14b')]+=0x1,_0x7d07aa['state']=0x8,_0x7d07aa[_0x307369('0x12c')]=_0x307369('0xb3'),_0x7d07aa['countcongestionretry']+=0x1,_0x7d07aa[_0x307369('0x5b')]+=0x1,ami[_0x307369('0x8b')](_0x307369('0xd0'),ut[_0x307369('0x15b')](_0x37e2b5,_0x307369('0xca'))),_0x42e4ad[_0x307369('0x17a')](_0x7d07aa)['catch'](loggerCatch(_0x307369('0x72')));_0x42e4ad[_0x307369('0x14a')](0x8,_0x37e2b5,_0x4ee59d)&&(_0x7d07aa['countcongestionretry']>=_0x4ee59d[_0x307369('0x6c')]?_0x42e4ad[_0x307369('0xfb')](_0x7d07aa,_0x1195e8,_0x5f42bd,'reason\x208\x20congestion'):_0x42e4ad[_0x307369('0x107')](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x4')));break;case'11':_0x4ee59d[_0x307369('0xad')]+=0x1,_0x7d07aa['state']=0xb,_0x7d07aa[_0x307369('0x12c')]=_0x307369('0x176'),_0x7d07aa[_0x307369('0x1b5')]+=0x1,_0x7d07aa[_0x307369('0x5b')]+=0x1,_0x42e4ad[_0x307369('0x17a')](_0x7d07aa)[_0x307369('0x17c')](loggerCatch(_0x307369('0xc6')));_0x42e4ad[_0x307369('0x14a')](0xb,_0x37e2b5,_0x4ee59d)&&(_0x7d07aa[_0x307369('0x1b5')]>=_0x4ee59d[_0x307369('0x73')]?_0x42e4ad[_0x307369('0xfb')](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x37')):_0x42e4ad['stateGlobal'](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x37')));break;case'20':_0x4ee59d[_0x307369('0x1db')]+=0x1,_0x7d07aa[_0x307369('0x12d')]=0x14,_0x7d07aa[_0x307369('0x12c')]=_0x307369('0x7'),_0x7d07aa[_0x307369('0x182')]+=0x1,_0x7d07aa[_0x307369('0x5b')]+=0x1,ami[_0x307369('0x8b')]('custom:agentreject',ut['buildObj'](_0x37e2b5,'agentreject')),_0x42e4ad['createHistory'](_0x7d07aa)[_0x307369('0x17c')](loggerCatch(_0x307369('0x11b')));_0x42e4ad['checkRetriveMax'](0x14,_0x37e2b5,_0x4ee59d)&&(_0x7d07aa[_0x307369('0x182')]>=_0x4ee59d['dialAgentRejectMaxRetry']?_0x42e4ad['createStateFinal'](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x1fd')):_0x42e4ad['stateGlobal'](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x307369('0x1fd')));break;default:_0x4ee59d[_0x307369('0x120')]+=0x1,_0x7d07aa[_0x307369('0x12d')]=0xc,_0x7d07aa[_0x307369('0x12c')]=_0x2e9ae0['reason'],_0x42e4ad[_0x307369('0x17a')](_0x7d07aa)[_0x307369('0x17c')](loggerCatch(_0x307369('0x33')));_0x42e4ad[_0x307369('0x14a')](_0x2e9ae0[_0x307369('0xac')],_0x37e2b5,_0x4ee59d)&&(_0x7d07aa['countbusyretry']+_0x7d07aa['countcongestionretry']+_0x7d07aa[_0x307369('0x1fa')]+_0x7d07aa['countnosuchnumberretry']+_0x7d07aa['countdropretry']+_0x7d07aa['countabandonedretry']+_0x7d07aa['countmachineretry']+_0x7d07aa['countagentrejectretry']>=_0x4ee59d[_0x307369('0xf8')]?_0x42e4ad[_0x307369('0x107')](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x2e9ae0['reason']):_0x42e4ad[_0x307369('0xfb')](_0x7d07aa,_0x1195e8,_0x5f42bd,_0x2e9ae0[_0x307369('0xac')]));}});},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x107')]=function(_0x402f74,_0x19f192,_0x7abda9,_0x505073){const _0x5b838e=_0x1fd82e,_0xd48a62=new Final(_0x402f74);_0xd48a62[_0x5b838e('0x12d')]=0xf,_0xd48a62[_0x5b838e('0x12c')]='Global',this['createStateFinal'](_0xd48a62,_0x19f192,_0x7abda9,_0x505073);},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0xfb')]=function(_0x1a92ce,_0x3fff33,_0x1b3c51,_0x3fcdcb){const _0x5d9686=_0x1fd82e;this[_0x5d9686('0x18b')](_0x1a92ce)[_0x5d9686('0xd5')](function(){const _0x2ed777=_0x5d9686;return _0x3fff33(msgResponse('[callProgressDetecting]',_0x2ed777('0x1ca'),_0x3fcdcb));})[_0x5d9686('0x17c')](function(){const _0x4835ef=_0x5d9686;return _0x1b3c51(msgResponse('[moveContactManagedDialer][0]',_0x4835ef('0x148'),_0x4835ef('0x82')));});},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0xed')]=function(_0x249580){const _0x331fb9=_0x1fd82e,_0x3d9110=_0x249580[_0x331fb9('0x1c2')]/0x64,_0x2826e6=_0x249580[_0x331fb9('0xfe')]/(_0x249580[_0x331fb9('0xfe')]+_0x249580[_0x331fb9('0x2')]),_0x4439cb=Math[_0x331fb9('0x1cf')](_0x249580['predictiveIntervalAvailable']*(_0x249580['predictiveIntervalMaxThreshold']/0x64)),_0x4c27da=Math[_0x331fb9('0x1cf')](_0x249580[_0x331fb9('0xe1')]*(_0x249580['predictiveIntervalMinThreshold']/0x64)),_0x211b3e=_0x249580[_0x331fb9('0x97')]+_0x249580[_0x331fb9('0x92')],_0xd6567d=Math['floor'](_0x249580['erlangCalls']*_0x249580[_0x331fb9('0x142')]*_0x249580[_0x331fb9('0x12')]*_0x249580[_0x331fb9('0x22')]);if(_['isUndefined'](_0x249580['startProgressive']))!_[_0x331fb9('0x172')](_0x249580['startPredictive'])&&(_0x249580[_0x331fb9('0x1c')]=undefined,loggerPredictive[_0x331fb9('0xf5')](_0x331fb9('0xd2'),_0x331fb9('0xb'))),!_[_0x331fb9('0x172')](_0x249580[_0x331fb9('0x1a')])&&(loggerPredictive[_0x331fb9('0xf5')](_0x331fb9('0xd2'),_0x331fb9('0xb0')),clearInterval(_0x249580[_0x331fb9('0x1a')]),_0x249580[_0x331fb9('0x1a')]=undefined),_0x249580[_0x331fb9('0x1eb')]=moment()[_0x331fb9('0x1bc')](_0x331fb9('0x68')),loggerPredictive['info'](_0x249580[_0x331fb9('0x17e')],_0x331fb9('0x156'),_0x249580[_0x331fb9('0x1eb')]),this[_0x331fb9('0x11d')](_0x249580,0x1);else{if(ifInterval(_0x249580['dialPredictiveInterval'],_0x249580[_0x331fb9('0x1eb')]))this[_0x331fb9('0x11d')](_0x249580,0x1),loggerPredictiveCalls[_0x331fb9('0x47')](_0x331fb9('0x13a'),_0x249580[_0x331fb9('0x1eb')],_0x249580[_0x331fb9('0x17e')]),_0x249580[_0x331fb9('0x114')]=0x0,_0x249580[_0x331fb9('0x1a8')]=0x0;else{if(_0x3d9110<_0x2826e6&&_0x249580[_0x331fb9('0x5f')]===_0x331fb9('0x1d4'))freeVariablesPredictive(_0x249580),loggerPredictive['info'](_0x331fb9('0x18f'),_0x331fb9('0x83'),_0x2826e6,'startProgressive',_0x249580['name']);else{if(_0xd6567d<_0x249580['predictiveIntervalErlangCallsDroppedCalls']&&_0x249580[_0x331fb9('0x5f')]===_0x331fb9('0x1d4'))freeVariablesPredictive(_0x249580),loggerPredictive[_0x331fb9('0x47')](_0x331fb9('0xfc'),'Max\x20Drop\x20',_0xd6567d,_0x331fb9('0x1f'),_0x249580[_0x331fb9('0x1a8')],_0x331fb9('0x1eb'),_0x249580[_0x331fb9('0x17e')]);else{if(!ifInterval(_0x249580[_0x331fb9('0x99')],_0x249580[_0x331fb9('0x1eb')])&&_[_0x331fb9('0x172')](_0x249580[_0x331fb9('0x1c')])&&!_['isUndefined'](_0x249580[_0x331fb9('0x1eb')]))_0x249580[_0x331fb9('0x1c')]=moment()[_0x331fb9('0x1bc')]('YYYY-MM-DD\x20HH:mm:ss'),loggerPredictive[_0x331fb9('0x47')](_0x249580[_0x331fb9('0x17e')],_0x331fb9('0x1cb'),_0x249580[_0x331fb9('0x1c')]),this[_0x331fb9('0x60')](_0x249580[_0x331fb9('0x99')])['then'](this[_0x331fb9('0x1ec')](_0x249580))['then'](mergeDataErlangB(_0x249580))[_0x331fb9('0xd5')](this[_0x331fb9('0x6f')](_0x249580))[_0x331fb9('0x17c')](loggerCatchPredictive('Predictive\x20after\x20first\x20interval',_0x249580));else{if(!ifInterval(_0x249580[_0x331fb9('0x99')],_0x249580[_0x331fb9('0x1c')]))_0x249580[_0x331fb9('0x1a8')]=0x0,_0x249580[_0x331fb9('0x1c')]=moment()[_0x331fb9('0x1bc')](_0x331fb9('0x68')),loggerPredictive[_0x331fb9('0x47')](_0x249580[_0x331fb9('0x17e')],_0x331fb9('0x1b3'),_0x249580['startPredictive']),clearInterval(_0x249580['handlePredictive']),_0x249580['handlePredictive']=undefined,this[_0x331fb9('0x60')](_0x249580[_0x331fb9('0x99')])[_0x331fb9('0xd5')](this['getDataPredictive'](_0x249580))[_0x331fb9('0xd5')](mergeDataErlangB(_0x249580))['then'](this[_0x331fb9('0x6f')](_0x249580))['catch'](loggerCatchPredictive(_0x331fb9('0xec'),_0x249580));else{if(_0x249580[_0x331fb9('0xe1')]&&_0x211b3e<_0x249580[_0x331fb9('0xe1')]-_0x4c27da)freeVariablesPredictive(_0x249580),loggerPredictive['info'](_0x249580['name'],'switch\x20in\x20progressive\x20because\x20available\x20agents\x20(',_0x211b3e,_0x331fb9('0x205'),_0x249580[_0x331fb9('0xe1')],'-',_0x4c27da,'=',_0x249580[_0x331fb9('0xe1')]-_0x4c27da,')');else _0x249580[_0x331fb9('0xe1')]&&_0x211b3e>_0x249580[_0x331fb9('0xe1')]+_0x4439cb&&(freeVariablesPredictive(_0x249580),loggerPredictive[_0x331fb9('0x47')](_0x249580['name'],_0x331fb9('0x14e'),_0x211b3e,')\x20are\x20more\x20than\x20threshold\x20(',_0x249580[_0x331fb9('0xe1')],'+',_0x4439cb,'=',_0x249580[_0x331fb9('0xe1')]+_0x4439cb,')'));}}}}}}},Dialer['prototype']['getDataPredictive']=function(_0x28f6f7){const _0x5a42b4=this;return function(_0x6966d9){return new Promise(function(_0x1fe200,_0x34511d){const _0x59d9ec=a1056_0x47fb;_[_0x59d9ec('0xd9')](_0x28f6f7,_0x6966d9[0x0]);if(checkGetDataPredictive(_0x6966d9[0x0])){const _0x327474=_0x28f6f7[_0x59d9ec('0x92')]+_0x28f6f7[_0x59d9ec('0x97')];_0x28f6f7[_0x59d9ec('0xe1')]=_0x327474;const _0x1ef515=_0x327474,_0xb10fd2=_0x28f6f7[_0x59d9ec('0x99')]*0x3c,_0xcd3faa=_0x6966d9[0x0][_0x59d9ec('0x1b')]+_0x6966d9[0x0]['predictiveIntervalAvgHoldtime'],_0x360914=(_0x6966d9[0x0]['predictiveIntervalAnsweredCalls']+_0x6966d9[0x0][_0x59d9ec('0xe4')]+_0x6966d9[0x0]['predictiveIntervalDroppedCallsCallersExit'])/_0x6966d9[0x0][_0x59d9ec('0x16e')];_0x28f6f7[_0x59d9ec('0x12')]=_0x360914>0x0?_0x360914:0x1;switch(_0x28f6f7[_0x59d9ec('0x5f')]){case'dropRate':{const _0x14a249=_0x28f6f7['dialPredictiveOptimizationPercentage']/0x64;return _0x5a42b4[_0x59d9ec('0xd')](_0x1ef515,_0xb10fd2,_0xcd3faa,_0x360914,_0x14a249)[_0x59d9ec('0xd5')](function(_0x16975b){return _0x1fe200(_0x16975b);});}case'agentBusyFactor':{const _0x388286=_0x28f6f7[_0x59d9ec('0x1c2')]/0x64;return _0x5a42b4[_0x59d9ec('0xdf')](_0x1ef515,_0xb10fd2,_0xcd3faa,_0x360914,_0x388286)[_0x59d9ec('0xd5')](function(_0x3a6af7){return _0x1fe200(_0x3a6af7);});}default:return _0x34511d(msgResponse(_0x59d9ec('0x152'),'Failure','Unknown\x20Predictive'));}}else return _0x34511d(msgResponse(_0x59d9ec('0x152'),'Failure',_0x59d9ec('0x1c8')));});};},Dialer['prototype'][_0x1fd82e('0x10')]=function(_0x5ddc27){const _0x19a0e1=this;return function(_0x3288b9){return new Promise(function(_0xfb7bc7,_0x37834b){const _0x319a15=a1056_0x47fb;_[_0x319a15('0xd9')](_0x5ddc27,_0x3288b9[0x0]);if(checkGetDataPredictive(_0x3288b9[0x0])){loggerPredictive[_0x319a15('0x47')](JSON['stringify'](_0x3288b9[0x0]));if(_0x5ddc27[_0x319a15('0x5f')]===_0x319a15('0x1d4'))return _0x19a0e1['getVoiceQueueRtPauses'](_0x5ddc27['id'])[_0x319a15('0xd5')](function(_0x3b31b1){const _0x30b7cb=_0x319a15,_0x35892b=_0x5ddc27[_0x30b7cb('0xc0')]-_0x3b31b1[0x0][_0x30b7cb('0x6e')],_0x554e40=_0x5ddc27[_0x30b7cb('0x99')]*0x3c,_0x807265=_0x3288b9[0x0]['predictiveIntervalAvgTalktime']+_0x3288b9[0x0][_0x30b7cb('0x88')],_0x3c795b=(_0x3288b9[0x0][_0x30b7cb('0x93')]+_0x3288b9[0x0][_0x30b7cb('0xe4')]+_0x3288b9[0x0][_0x30b7cb('0x32')])/_0x3288b9[0x0][_0x30b7cb('0x16e')],_0x5b05f2=_0x5ddc27[_0x30b7cb('0x1c2')]/0x64;return _0x5ddc27['predictiveIntervalPauses']=_0x3b31b1[0x0]['outboundQueuePauses']||0x0,_0x5ddc27[_0x30b7cb('0x12')]=_0x3c795b>0x0?_0x3c795b:0x1,_0x19a0e1[_0x30b7cb('0xd')](_0x35892b,_0x554e40,_0x807265,_0x3c795b,_0x5b05f2);})[_0x319a15('0xd5')](function(_0x15ec18){return _0xfb7bc7(_0x15ec18);})[_0x319a15('0x17c')](function(_0x1fb4d2){const _0x538b9e=_0x319a15;return _0x37834b(msgResponse(_0x538b9e('0xbe'),_0x538b9e('0x148'),JSON['stringify'](_0x1fb4d2)));});if(_0x5ddc27['dialPredictiveOptimization']==='agentBusyFactor')return _0x19a0e1[_0x319a15('0x13c')](_0x5ddc27['id'])['then'](function(_0x520a53){const _0x44ac04=_0x319a15,_0x48c764=_0x5ddc27[_0x44ac04('0xc0')]-_0x520a53[0x0][_0x44ac04('0x6e')],_0x557ea0=_0x5ddc27[_0x44ac04('0x99')]*0x3c,_0x36fa94=_0x3288b9[0x0]['predictiveIntervalAvgTalktime']+_0x3288b9[0x0]['predictiveIntervalAvgHoldtime'],_0x60c647=(_0x3288b9[0x0]['predictiveIntervalAnsweredCalls']+_0x3288b9[0x0][_0x44ac04('0xe4')]+_0x3288b9[0x0][_0x44ac04('0x32')])/_0x3288b9[0x0]['predictiveIntervalTotalCalls'],_0x259242=_0x5ddc27['dialPredictiveOptimizationPercentage']/0x64;return _0x5ddc27[_0x44ac04('0x122')]=_0x520a53[0x0]['outboundQueuePauses']||0x0,_0x5ddc27['predictiveIntervalHitRate']=_0x60c647>0x0?_0x60c647:0x1,_0x19a0e1[_0x44ac04('0xdf')](_0x48c764,_0x557ea0,_0x36fa94,_0x60c647,_0x259242);})[_0x319a15('0xd5')](function(_0x501a29){return _0xfb7bc7(_0x501a29);})[_0x319a15('0x17c')](function(_0x455ad4){const _0x2ec868=_0x319a15;return _0x37834b(msgResponse(_0x2ec868('0xbe'),_0x2ec868('0x148'),JSON[_0x2ec868('0x206')](_0x455ad4)));});}else return _0x37834b(msgResponse(_0x319a15('0x152'),'Failure','check\x20failure'));});};},Dialer['prototype'][_0x1fd82e('0x6f')]=function(_0x2c64e1){const _0x287457=this;return function(){const _0xf3d4a3=a1056_0x47fb;let _0x5ed4f6=0x0,_0x1ba85e=Math['floor'](_0x2c64e1[_0xf3d4a3('0x1fc')]*0x3e8);_0x1ba85e>0x0?(_0x1ba85e=_0x1ba85e<0x64?0x64:_0x1ba85e,loggerPredictive[_0xf3d4a3('0x47')](_0x2c64e1['name'],'one\x20call\x20every:',_0x1ba85e,_0xf3d4a3('0x1de')),_0x2c64e1[_0xf3d4a3('0x1a')]=setInterval(function(){const _0x5d371f=_0xf3d4a3;_0x287457[_0x5d371f('0x1a')](_0x2c64e1),loggerPredictiveCalls[_0x5d371f('0x47')](_0x5d371f('0x115'),_0x5ed4f6+=0x1);},_0x1ba85e)):loggerPredictive[_0xf3d4a3('0x47')](_0x2c64e1['name'],_0xf3d4a3('0xc7'));};},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0xfd')]=function(_0x5e9121,_0x31a12a){const _0x5cb99d=this;return function(_0x47f4ce){const _0x32d324=a1056_0x47fb;if(_[_0x32d324('0x40')](_0x47f4ce)){if(_['isNil'](_0x31a12a[_0x32d324('0xd8')])||!_0x31a12a[_0x32d324('0x16c')]){if(_0x5e9121[_0x32d324('0x1f6')]===_0x32d324('0x51')){_0x5e9121[_0x32d324('0x19a')]=_[_0x32d324('0x172')](_0x5e9121[_0x32d324('0x19a')])?!![]:_0x5e9121[_0x32d324('0x19a')];const _0x19a02a=uuid['v4']();_0x5cb99d[_0x32d324('0x1dd')][_0x19a02a]=new Action(_0x5e9121,_0x31a12a,_0x19a02a),loggerBooked[_0x32d324('0x47')]('[booked][checkContactBlack]',_0x19a02a,'queueStatusComplete:\x20',JSON['stringify'](_0x5e9121[_0x32d324('0x19a')]),'Queue:\x20',_0x5e9121[_0x32d324('0x17e')]),_0x5e9121[_0x32d324('0x19a')]?(_0x5e9121['queueStatusComplete']=![],_0x5cb99d[_0x32d324('0x7e')][_0x5cb99d[_0x32d324('0x1dd')][_0x19a02a][_0x32d324('0x4e')]]=[],ami[_0x32d324('0x15f')]({'actionid':_0x19a02a,'action':_0x32d324('0x23'),'queue':_0x5e9121[_0x32d324('0x17e')]})['catch'](function(){const _0x415322=_0x32d324;_0x5cb99d[_0x415322('0xa')](_0x5e9121),_0x5cb99d[_0x415322('0x71')]({'active':![],'ContactId':_0x5cb99d[_0x415322('0x1dd')][_0x19a02a][_0x415322('0x1e9')],'ListId':_0x5cb99d[_0x415322('0x1dd')][_0x19a02a][_0x415322('0xb5')],'VoiceQueueId':_0x5cb99d[_0x415322('0x1dd')][_0x19a02a][_0x415322('0xdb')]||undefined,'CampaignId':_0x5cb99d[_0x415322('0x1dd')][_0x19a02a][_0x415322('0x15e')]||undefined})[_0x415322('0x17c')](loggerCatch('[unlockOriginate][syncQueueStatusComplete]')),delete _0x5cb99d[_0x415322('0x1dd')][_0x19a02a];})):(loggerBooked[_0x32d324('0x47')](_0x32d324('0x1a0'),JSON[_0x32d324('0x206')](_0x5e9121[_0x32d324('0x19a')]),_0x32d324('0xf9'),_0x5e9121['name']),_0x5cb99d[_0x32d324('0xa')](_0x5e9121),_0x5cb99d[_0x32d324('0x71')]({'active':![],'ContactId':_0x5cb99d[_0x32d324('0x1dd')][_0x19a02a][_0x32d324('0x1e9')],'ListId':_0x5cb99d[_0x32d324('0x1dd')][_0x19a02a]['ListId'],'VoiceQueueId':_0x5cb99d[_0x32d324('0x1dd')][_0x19a02a][_0x32d324('0xdb')]||undefined,'CampaignId':_0x5cb99d[_0x32d324('0x1dd')][_0x19a02a]['CampaignId']||undefined})[_0x32d324('0x17c')](loggerCatch(_0x32d324('0x110'))),delete _0x5cb99d[_0x32d324('0x1dd')][_0x19a02a]);}else return _0x5cb99d['actionOriginate'](_0x5e9121,_0x31a12a);}else getDiff(_0x31a12a[_0x32d324('0x1ef')])<_0x5e9121[_0x32d324('0x1d5')]*0x3c?_0x31a12a['Agent']&&!_0x31a12a[_0x32d324('0x74')][_0x32d324('0xa7')]?_0x5cb99d['preview'][_0x32d324('0xaf')](_0x31a12a['id'])[_0x32d324('0x1df')](function(){const _0xdcb9b6=_0x32d324;_0x5cb99d[_0xdcb9b6('0xa')](_0x5e9121);}):_0x5cb99d['unlockContact']({'active':![]},_0x31a12a['id'],0x1)[_0x32d324('0x1df')](function(){const _0x288027=_0x32d324;console[_0x288027('0x75')](_0x288027('0x166')),_0x5cb99d[_0x288027('0xa')](_0x5e9121);}):(_0x5e9121['outboundReCallsDay']+=0x1,_0x5cb99d[_0x32d324('0xa')](_0x5e9121),_0x5e9121[_0x32d324('0x1a1')]?(_0x5cb99d['rescheduleContact']({'active':![],'recallme':![],'UserId':null,'ContactId':_0x31a12a[_0x32d324('0x1e9')],'ListId':_0x31a12a[_0x32d324('0xb5')],'VoiceQueueId':_0x31a12a[_0x32d324('0xdb')]||undefined,'CampaignId':_0x31a12a[_0x32d324('0x15e')]||undefined})[_0x32d324('0x17c')](loggerCatch(_0x32d324('0x21'))),_0x5cb99d[_0x32d324('0x17a')](createObjHistory(_0x5e9121,_0x31a12a,'RECALLINQUEUE',0x17,_0x32d324('0xe8')))['catch'](loggerCatch(_0x32d324('0x20d')))):_0x5cb99d[_0x32d324('0x2c')](createObjHistory(_0x5e9121,_0x31a12a,_0x32d324('0x64'),0x16,_0x32d324('0xa1')),'[Originate][HistoryRecallClose][historyCatch]',_0x32d324('0xce')));}else{_0x5e9121[_0x32d324('0x1f5')]+=0x1,_0x5cb99d[_0x32d324('0x2c')](createObjHistory(_0x5e9121,_0x31a12a,_0x32d324('0x34'),0xd,_0x32d324('0x125')),_0x32d324('0x164'),_0x32d324('0x1e3'));throw'inBlackList';}};},Dialer[_0x1fd82e('0x1ab')]['handleIvr']=function(_0x52ecbd){const _0xd077ab=_0x1fd82e,_0x36072f=this;let _0xcf64a8=_0x52ecbd['limitCalls']-_0x52ecbd['originated']-_0x52ecbd[_0xd077ab('0xcc')];emitCampaignSummary(_0x52ecbd),_0xcf64a8>0x0&&(_0xcf64a8>this['maxNumberOriginate']&&(_0xcf64a8=this[_0xd077ab('0x153')]),_0x52ecbd[_0xd077ab('0xcc')]+=_0xcf64a8,this[_0xd077ab('0x3a')](_0x52ecbd['id'],_0xcf64a8,_0x52ecbd['dialOrderByScheduledAt'])[_0xd077ab('0xd5')](function(_0x24f7da){const _0x9dd68c=_0xd077ab;_0x52ecbd[_0x9dd68c('0xcc')]-=_0xcf64a8,_0x52ecbd[_0x9dd68c('0xcc')]=_0x52ecbd[_0x9dd68c('0xcc')]>0x0?_0x52ecbd[_0x9dd68c('0xcc')]:0x0;if(!checkContactEmpty(_0x24f7da))_0x52ecbd[_0x9dd68c('0xcd')]=_0x9dd68c('0x45'),logger[_0x9dd68c('0x47')]('[getContactCampaign2][Empty]'+_0x52ecbd[_0x9dd68c('0x17e')]);else{_0x52ecbd['originated']+=_0x24f7da['length'],_0x52ecbd[_0x9dd68c('0xcd')]='RUNNING';for(let _0x83ac26=0x0;_0x83ac26<_0x24f7da[_0x9dd68c('0xda')];_0x83ac26+=0x1){_0x52ecbd[_0x9dd68c('0xe')]+=0x1,_[_0x9dd68c('0x46')](_0x24f7da[_0x83ac26])||_[_0x9dd68c('0x46')](_0x24f7da[_0x83ac26]['Contact'])||_[_0x9dd68c('0x46')](_0x24f7da[_0x83ac26]['Contact'][_0x9dd68c('0x108')])?_0x36072f['emptyContact'](_0x9dd68c('0x11c'),_0x52ecbd,_0x24f7da[_0x83ac26]):_0x36072f[_0x9dd68c('0x4f')](_[_0x9dd68c('0x186')](_0x24f7da[_0x83ac26],[_0x9dd68c('0x15e'),_0x9dd68c('0xb7')]))[_0x9dd68c('0xd5')](_0x36072f[_0x9dd68c('0xfd')](_0x52ecbd,_0x24f7da[_0x83ac26]))[_0x9dd68c('0x17c')](_0x36072f[_0x9dd68c('0xe0')](_0x9dd68c('0x1d1'),_0x52ecbd));}}})[_0xd077ab('0x17c')](loggerGetContactDialer('[getContactCampaign2]',_0x52ecbd,_0xcf64a8)));},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0x11d')]=function(_0x26a21d,_0x149402){const _0x9c1c2=_0x1fd82e,_0x47a54a=this,_0x4ec57c=[];let _0x153f8c=_0x149402>=0x1?_0x149402:0x1;_0x26a21d['dialMethod']===_0x9c1c2('0x51')&&(_0x153f8c=0x1);let _0x177138=Math[_0x9c1c2('0x1d2')](_0x26a21d['available']*_0x153f8c)-_0x26a21d[_0x9c1c2('0x1c3')]-_0x26a21d[_0x9c1c2('0xcc')];emitVoiceQueueSummary(_0x26a21d);if(_0x26a21d['dialLimitQueue']>0x0){const _0x2f50c7=_0x26a21d['dialLimitQueue']-_0x26a21d[_0x9c1c2('0x1c3')]-_0x26a21d[_0x9c1c2('0x92')]-_0x26a21d['temp']-_0x26a21d[_0x9c1c2('0x66')];_0x177138>_0x2f50c7&&(_0x177138=_0x2f50c7);}if(_0x177138>0x0){_0x26a21d[_0x9c1c2('0x1f6')]===_0x9c1c2('0x51')&&(_0x177138=0x1);_0x177138>this[_0x9c1c2('0x153')]&&(_0x177138=this[_0x9c1c2('0x153')]);_0x26a21d['temp']+=_0x177138;for(const _0x2c83b3 in this[_0x9c1c2('0x190')]){typeof this[_0x9c1c2('0x190')][_0x2c83b3]!=='undefined'&&(this[_0x9c1c2('0x190')][_0x2c83b3][_0x9c1c2('0x12d')]===_0x9c1c2('0x9e')&&this['agents'][_0x2c83b3][_0x9c1c2('0x12f')]==='reachable'&&_0x4ec57c[_0x9c1c2('0x193')](this[_0x9c1c2('0x190')][_0x2c83b3]['id']));}this[_0x9c1c2('0x203')](_0x26a21d['id'],_0x4ec57c,_0x177138,_0x26a21d[_0x9c1c2('0x1b4')])[_0x9c1c2('0xd5')](function(_0x115780){const _0x4d9546=_0x9c1c2;_0x26a21d[_0x4d9546('0xcc')]-=_0x177138,_0x26a21d[_0x4d9546('0xcc')]=_0x26a21d[_0x4d9546('0xcc')]>0x0?_0x26a21d['temp']:0x0;if(!checkContactEmpty(_0x115780))_0x47a54a[_0x4d9546('0x95')](_0x26a21d)[_0x4d9546('0xd5')](sendMessageReschedule(_0x26a21d))[_0x4d9546('0x17c')](loggerCatch('[countReScheduled]\x20'));else{_0x26a21d[_0x4d9546('0x1c3')]+=_0x115780[_0x4d9546('0xda')],_0x26a21d[_0x4d9546('0xcd')]=_0x26a21d[_0x4d9546('0x1f6')]===_0x4d9546('0x51')?'ACTIVE':_0x4d9546('0xbf');for(let _0x542a24=0x0;_0x542a24<_0x115780[_0x4d9546('0xda')];_0x542a24+=0x1){_[_0x4d9546('0x46')](_0x115780[_0x542a24])||_[_0x4d9546('0x46')](_0x115780[_0x542a24][_0x4d9546('0x1dc')])||_[_0x4d9546('0x46')](_0x115780[_0x542a24][_0x4d9546('0x1dc')][_0x4d9546('0x108')])?_0x47a54a[_0x4d9546('0x216')](_0x4d9546('0x11c'),_0x26a21d,_0x115780[_0x542a24]):_0x47a54a['checkIsBlackList'](_[_0x4d9546('0x186')](_0x115780[_0x542a24],[_0x4d9546('0xdb'),'Contact.phone']))[_0x4d9546('0xd5')](_0x47a54a['checkContactBlack'](_0x26a21d,_0x115780[_0x542a24]))[_0x4d9546('0x17c')](_0x47a54a[_0x4d9546('0xe0')](_0x4d9546('0x11c'),_0x26a21d));}}})['catch'](loggerGetContactDialer(_0x9c1c2('0x140'),_0x26a21d,_0x177138));}},Dialer[_0x1fd82e('0x1ab')]['handlePredictive']=function(_0x383edf){const _0x14538d=_0x1fd82e;if(_0x383edf['dialLimitQueue']>0x0){const _0x503514=_0x383edf[_0x14538d('0x1a2')]-_0x383edf[_0x14538d('0x1c3')]-_0x383edf[_0x14538d('0x92')];_0x503514>0x0?this[_0x14538d('0x24')](_0x383edf):loggerPredictiveCalls[_0x14538d('0x47')](_0x14538d('0x1da'));}else this['tryOriginatePredictive'](_0x383edf);},Dialer['prototype'][_0x1fd82e('0x24')]=function(_0x2f9f66){const _0x5913bb=_0x1fd82e,_0x1a4407=this,_0x48ef11=[];_0x2f9f66[_0x5913bb('0x1c3')]+=0x1;for(const _0x5c33a5 in this[_0x5913bb('0x190')]){typeof this[_0x5913bb('0x190')][_0x5c33a5]!==_0x5913bb('0x8c')&&(this[_0x5913bb('0x190')][_0x5c33a5][_0x5913bb('0x12d')]===_0x5913bb('0x9e')&&this['agents'][_0x5c33a5][_0x5913bb('0x12f')]==='reachable'&&_0x48ef11['push'](this[_0x5913bb('0x190')][_0x5c33a5]['id']));}this['getContactDialer'](_0x2f9f66['id'],_0x48ef11,0x1,_0x2f9f66['dialOrderByScheduledAt'])[_0x5913bb('0xd5')](function(_0x44c0f2){const _0x45d318=_0x5913bb;!checkContactEmpty(_0x44c0f2)?(checkContactLowerLimitOriginate(_0x2f9f66,0x1,0x0),_0x1a4407['countReScheduled'](_0x2f9f66)['then'](sendMessageReschedule(_0x2f9f66))['catch'](loggerCatch(_0x45d318('0x116')))):(_0x2f9f66['message']=_0x45d318('0xbf'),_[_0x45d318('0x46')](_0x44c0f2[0x0])||_['isNil'](_0x44c0f2[0x0]['Contact'])||_[_0x45d318('0x46')](_0x44c0f2[0x0]['Contact'][_0x45d318('0x108')])?_0x1a4407[_0x45d318('0x216')]('[actionOriginate]\x20',_0x2f9f66,_0x44c0f2[0x0]):_0x1a4407[_0x45d318('0xaa')](_[_0x45d318('0x186')](_0x44c0f2[0x0],['VoiceQueueId','Contact.phone']))[_0x45d318('0xd5')](_0x1a4407[_0x45d318('0xfd')](_0x2f9f66,_0x44c0f2[0x0]))[_0x45d318('0x17c')](_0x1a4407[_0x45d318('0xe0')](_0x45d318('0x113'),_0x2f9f66)));})['catch'](loggerGetContactDialer(_0x5913bb('0x1bb'),_0x2f9f66,0x1)),emitVoiceQueueSummary(_0x2f9f66);},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0xd')]=function(_0x390e34,_0x554179,_0x238421,_0x76a92a,_0x30c695,_0x2d2d2e){const _0x3567b5=_0x1fd82e;return loggerPredictive[_0x3567b5('0x47')](_0x3567b5('0x158')),loggerPredictive[_0x3567b5('0x47')](_0x3567b5('0x20c'),_0x390e34),loggerPredictive[_0x3567b5('0x47')](_0x3567b5('0x19e'),_0x554179),loggerPredictive['info'](_0x3567b5('0x1b2'),_0x238421),loggerPredictive[_0x3567b5('0x47')](_0x3567b5('0xa6'),_0x76a92a),loggerPredictive[_0x3567b5('0x47')](_0x3567b5('0x1b7'),_0x30c695),loggerPredictive['info'](_0x3567b5('0x217')),new Promise(function(_0x440cba,_0x20e40a){const _0x13be29=_0x3567b5;if(_0x390e34<=0x0||isNaN(_0x390e34))return _0x20e40a(msgResponse('[abandonmentRate]',_0x13be29('0x1f4'),_0x13be29('0x1ea')+_0x390e34));if(_0x238421<=0x0||isNaN(_0x238421))return _0x20e40a(msgResponse(_0x13be29('0x27'),_0x13be29('0x1f4'),_0x13be29('0x124')+_0x238421));if(_0x76a92a<=0x0||isNaN(_0x76a92a))return _0x20e40a(msgResponse(_0x13be29('0x27'),_0x13be29('0x1f4'),'p\x20=\x20'+_0x76a92a));if(_0x554179<=0x0||isNaN(_0x554179))return _0x20e40a(msgResponse(_0x13be29('0x27'),'Error',_0x13be29('0x67')+_0x554179));if(_0x30c695<=0x0||isNaN(_0x30c695))return _0x20e40a(msgResponse(_0x13be29('0x27'),_0x13be29('0x1f4'),_0x13be29('0x1b1')+_0x30c695));_0x2d2d2e=_0x2d2d2e||0x0;const _0x4dd4fd=0x1/_0x238421;let _0x39055f=0x0,_0x28f965=0x0,_0x1d9948=0x0,_0x5ad046=0x0,_0x55bf54=0x0;for(_0x55bf54=0x0;_0x1d9948<_0x30c695;_0x55bf54+=0x1){_0x28f965=_0x55bf54/_0x554179,_0x39055f=(_0x76a92a*_0x28f965+_0x2d2d2e)/_0x4dd4fd,_0x1d9948=erlangb(_0x39055f,_0x390e34),_0x5ad046=_0x39055f/_0x390e34*(0x1-erlangb(_0x39055f,_0x390e34));}return _0x440cba({'erlangCalls':_0x55bf54,'erlangCallToSecond':_0x554179/_0x55bf54,'erlangAbandonmentRate':_0x1d9948,'erlangBusyFactor':_0x5ad046});});},Dialer[_0x1fd82e('0x1ab')][_0x1fd82e('0xdf')]=function(_0x524e2d,_0x37f4a1,_0x57186a,_0x5e5302,_0x46cd03,_0x1dae40){const _0x2eb243=_0x1fd82e;return loggerPredictive[_0x2eb243('0x47')](_0x2eb243('0x136')),loggerPredictive[_0x2eb243('0x47')](_0x2eb243('0x20c'),_0x524e2d),loggerPredictive['info'](_0x2eb243('0x19e'),_0x37f4a1),loggerPredictive['info'](_0x2eb243('0x1b2'),_0x57186a),loggerPredictive[_0x2eb243('0x47')]('P:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x5e5302),loggerPredictive['info'](_0x2eb243('0xc8'),_0x46cd03),loggerPredictive[_0x2eb243('0x47')](_0x2eb243('0x217')),new Promise(function(_0x5d93a3,_0xb9ee29){const _0x29bacc=_0x2eb243;if(_0x524e2d<=0x0||isNaN(_0x524e2d))return _0xb9ee29(msgResponse(_0x29bacc('0x12b'),_0x29bacc('0x1f4'),_0x29bacc('0x1ea')+_0x524e2d));if(_0x57186a<=0x0||isNaN(_0x57186a))return _0xb9ee29(msgResponse('[busyFactor]','Error',_0x29bacc('0x124')+_0x57186a));if(_0x5e5302<=0x0||isNaN(_0x5e5302))return _0xb9ee29(msgResponse(_0x29bacc('0x12b'),_0x29bacc('0x1f4'),_0x29bacc('0x135')+_0x5e5302));if(_0x37f4a1<=0x0||isNaN(_0x37f4a1))return _0xb9ee29(msgResponse(_0x29bacc('0x12b'),'Error','interval\x20=\x20'+_0x37f4a1));if(_0x46cd03<=0x0||isNaN(_0x46cd03))return _0xb9ee29(msgResponse(_0x29bacc('0x12b'),_0x29bacc('0x1f4'),_0x29bacc('0x179')+_0x46cd03));_0x1dae40=_0x1dae40||0x0;const _0x3c8f2c=0x1/_0x57186a;let _0x46610c=0x0,_0x149660=0x0,_0x1f44f6=0x0,_0x681cab=0x0,_0x322926=0x0;for(_0x322926=0x0;_0x681cab<_0x46cd03;_0x322926+=0x1){_0x149660=_0x322926/_0x37f4a1,_0x46610c=(_0x5e5302*_0x149660+_0x1dae40)/_0x3c8f2c,_0x1f44f6=erlangb(_0x46610c,_0x524e2d),_0x681cab=_0x46610c/_0x524e2d*(0x1-erlangb(_0x46610c,_0x524e2d));}return _0x5d93a3({'erlangCalls':_0x322926,'erlangCallToSecond':_0x37f4a1/_0x322926,'erlangAbandonmentRate':_0x1f44f6,'erlangBusyFactor':_0x681cab});});},module[_0x1fd82e('0xc2')]=Dialer; \ No newline at end of file diff --git a/server/services/ami/dialer/queueCallerAbandon.js b/server/services/ami/dialer/queueCallerAbandon.js index e03ee94..662557d 100644 --- a/server/services/ami/dialer/queueCallerAbandon.js +++ b/server/services/ami/dialer/queueCallerAbandon.js @@ -1 +1 @@ -const a1057_0x5816=['outbound','countcongestionretry','callbackuniqueid','UserId','ringtime','countnoanswerretry','ContactId','CampaignId','diff','exports','countmachineretry','seconds','holdtime','callback','countnosuchnumberretry','countdropretry','countabandonedretry','droptime','number','countbusyretry','type','connectedlinename','countagentrejectretry','milliseconds','callbackat','calleridnum','originatecalleridnum','recallme','starttime','name','queue','talktime','ListId','campaigntype','responsetime','originatecalleridname','reason','membername','moment','uniqueid'];(function(_0x3e6b3c,_0x58166d){const _0x20f3af=function(_0x5ee526){while(--_0x5ee526){_0x3e6b3c['push'](_0x3e6b3c['shift']());}};_0x20f3af(++_0x58166d);}(a1057_0x5816,0x169));const a1057_0x20f3=function(_0x3e6b3c,_0x58166d){_0x3e6b3c=_0x3e6b3c-0x0;let _0x20f3af=a1057_0x5816[_0x3e6b3c];return _0x20f3af;};const _0x457c98=a1057_0x20f3;'use strict';const moment=require(_0x457c98('0x25'));function getSeconds(_0x5ee526,_0x2026fb){const _0x269b4b=_0x457c98,_0xe556d8=moment(_0x5ee526)[_0x269b4b('0x16')](0x0),_0x4d7d74=moment(_0x2026fb)['milliseconds'](0x0);return _0xe556d8[_0x269b4b('0x7')](_0x4d7d74,_0x269b4b('0xa'));}function QueueCallerAbandon(_0x3fd91b,_0x1d2506){const _0x5997c9=_0x457c98;this['scheduledat']=_0x3fd91b['scheduledat'],this[_0x5997c9('0x13')]=_0x3fd91b[_0x5997c9('0x13')],this[_0x5997c9('0x20')]=_0x3fd91b[_0x5997c9('0x13')]===_0x5997c9('0x27')?_0x5997c9('0x1d'):_0x3fd91b[_0x5997c9('0x13')],this[_0x5997c9('0x12')]=_0x3fd91b[_0x5997c9('0x12')],this['countcongestionretry']=_0x3fd91b[_0x5997c9('0x0')],this[_0x5997c9('0x4')]=_0x3fd91b[_0x5997c9('0x4')],this['countglobal']=_0x3fd91b[_0x5997c9('0x12')]+_0x3fd91b[_0x5997c9('0x0')]+_0x3fd91b[_0x5997c9('0x4')]+_0x3fd91b['countnosuchnumberretry']+_0x3fd91b[_0x5997c9('0xe')]+_0x3fd91b[_0x5997c9('0xf')]+_0x3fd91b[_0x5997c9('0x9')]+_0x3fd91b[_0x5997c9('0x15')],this[_0x5997c9('0xd')]=_0x3fd91b[_0x5997c9('0xd')],this[_0x5997c9('0xe')]=_0x3fd91b['countdropretry'],this[_0x5997c9('0xf')]=_0x3fd91b[_0x5997c9('0xf')],this[_0x5997c9('0x9')]=_0x3fd91b[_0x5997c9('0x9')],this[_0x5997c9('0x15')]=_0x3fd91b[_0x5997c9('0x15')],this[_0x5997c9('0x26')]=_0x1d2506[_0x5997c9('0x26')],this['calleridname']=_0x3fd91b[_0x5997c9('0x1c')],this[_0x5997c9('0x18')]=_0x3fd91b[_0x5997c9('0x11')],this[_0x5997c9('0x1b')]=_0x3fd91b[_0x5997c9('0x1b')],this[_0x5997c9('0x21')]=_0x3fd91b[_0x5997c9('0x21')],this[_0x5997c9('0x10')]=_0x3fd91b['droptime'],this['endtime']=this['droptime'],this[_0x5997c9('0x3')]=getSeconds(_0x3fd91b['responsetime'],_0x3fd91b['starttime']),this[_0x5997c9('0xb')]=getSeconds(this['droptime'],_0x3fd91b[_0x5997c9('0x21')]),this[_0x5997c9('0x1e')]=0x0,this[_0x5997c9('0x1d')]=_0x1d2506[_0x5997c9('0x1d')],this[_0x5997c9('0x24')]=_0x1d2506[_0x5997c9('0x14')],this[_0x5997c9('0x23')]=_0x1d2506[_0x5997c9('0x23')],this[_0x5997c9('0xc')]=_0x3fd91b[_0x5997c9('0xc')],this[_0x5997c9('0x1')]=_0x3fd91b[_0x5997c9('0x1')],this[_0x5997c9('0x17')]=_0x3fd91b['callbackat'],this[_0x5997c9('0x1a')]=_0x3fd91b[_0x5997c9('0x1a')],this[_0x5997c9('0x5')]=_0x3fd91b[_0x5997c9('0x5')],this[_0x5997c9('0x1f')]=_0x3fd91b[_0x5997c9('0x1f')],this[_0x5997c9('0x2')]=_0x3fd91b[_0x5997c9('0x2')],this['VoiceQueueId']=_0x3fd91b['VoiceQueueId'],this[_0x5997c9('0x6')]=_0x3fd91b[_0x5997c9('0x6')],this[_0x5997c9('0x19')]=_0x3fd91b[_0x5997c9('0x19')]||'',this[_0x5997c9('0x22')]=_0x3fd91b[_0x5997c9('0x22')]||'';}module[_0x457c98('0x8')]=QueueCallerAbandon; \ No newline at end of file +const a1057_0x3297=['milliseconds','countnosuchnumberretry','endtime','countagentrejectretry','UserId','type','responsetime','queue','moment','countnoanswerretry','ringtime','countabandonedretry','starttime','campaigntype','CampaignId','ListId','name','countbusyretry','talktime','scheduledat','reason','connectedlinename','calleridnum','uniqueid','countdropretry','originatecalleridnum','exports','VoiceQueueId','countcongestionretry','outbound','seconds','callbackat','calleridname','holdtime','recallme','originatecalleridname','callback','ContactId','number','countmachineretry','callbackuniqueid','droptime','membername'];(function(_0x1d6654,_0x329712){const _0x473f50=function(_0x493186){while(--_0x493186){_0x1d6654['push'](_0x1d6654['shift']());}};_0x473f50(++_0x329712);}(a1057_0x3297,0x170));const a1057_0x473f=function(_0x1d6654,_0x329712){_0x1d6654=_0x1d6654-0x0;let _0x473f50=a1057_0x3297[_0x1d6654];return _0x473f50;};const _0x4d3b65=a1057_0x473f;'use strict';const moment=require(_0x4d3b65('0x1b'));function getSeconds(_0x493186,_0x38ad83){const _0x3f0c95=_0x4d3b65,_0x1ea1ad=moment(_0x493186)[_0x3f0c95('0x13')](0x0),_0x2a425c=moment(_0x38ad83)[_0x3f0c95('0x13')](0x0);return _0x1ea1ad['diff'](_0x2a425c,_0x3f0c95('0x6'));}function QueueCallerAbandon(_0x227a7d,_0x1bb395){const _0x474735=_0x4d3b65;this[_0x474735('0x26')]=_0x227a7d[_0x474735('0x26')],this[_0x474735('0x18')]=_0x227a7d[_0x474735('0x18')],this[_0x474735('0x20')]=_0x227a7d[_0x474735('0x18')]===_0x474735('0x5')?_0x474735('0x1a'):_0x227a7d[_0x474735('0x18')],this[_0x474735('0x24')]=_0x227a7d[_0x474735('0x24')],this[_0x474735('0x4')]=_0x227a7d['countcongestionretry'],this[_0x474735('0x1c')]=_0x227a7d['countnoanswerretry'],this['countglobal']=_0x227a7d[_0x474735('0x24')]+_0x227a7d[_0x474735('0x4')]+_0x227a7d[_0x474735('0x1c')]+_0x227a7d[_0x474735('0x14')]+_0x227a7d['countdropretry']+_0x227a7d[_0x474735('0x1e')]+_0x227a7d[_0x474735('0xf')]+_0x227a7d[_0x474735('0x16')],this[_0x474735('0x14')]=_0x227a7d[_0x474735('0x14')],this[_0x474735('0x0')]=_0x227a7d[_0x474735('0x0')],this[_0x474735('0x1e')]=_0x227a7d['countabandonedretry'],this['countmachineretry']=_0x227a7d['countmachineretry'],this[_0x474735('0x16')]=_0x227a7d[_0x474735('0x16')],this[_0x474735('0x2a')]=_0x1bb395[_0x474735('0x2a')],this[_0x474735('0x8')]=_0x227a7d[_0x474735('0x23')],this[_0x474735('0x29')]=_0x227a7d[_0x474735('0xe')],this[_0x474735('0x1f')]=_0x227a7d[_0x474735('0x1f')],this['responsetime']=_0x227a7d[_0x474735('0x19')],this['droptime']=_0x227a7d['droptime'],this[_0x474735('0x15')]=this[_0x474735('0x11')],this[_0x474735('0x1d')]=getSeconds(_0x227a7d[_0x474735('0x19')],_0x227a7d[_0x474735('0x1f')]),this[_0x474735('0x9')]=getSeconds(this['droptime'],_0x227a7d['responsetime']),this[_0x474735('0x25')]=0x0,this['queue']=_0x1bb395[_0x474735('0x1a')],this[_0x474735('0x12')]=_0x1bb395[_0x474735('0x28')],this[_0x474735('0x27')]=_0x1bb395[_0x474735('0x27')],this[_0x474735('0xc')]=_0x227a7d[_0x474735('0xc')],this[_0x474735('0x10')]=_0x227a7d[_0x474735('0x10')],this[_0x474735('0x7')]=_0x227a7d[_0x474735('0x7')],this[_0x474735('0xa')]=_0x227a7d[_0x474735('0xa')],this[_0x474735('0xd')]=_0x227a7d[_0x474735('0xd')],this[_0x474735('0x22')]=_0x227a7d[_0x474735('0x22')],this['UserId']=_0x227a7d[_0x474735('0x17')],this[_0x474735('0x3')]=_0x227a7d[_0x474735('0x3')],this[_0x474735('0x21')]=_0x227a7d['CampaignId'],this[_0x474735('0x1')]=_0x227a7d[_0x474735('0x1')]||'',this[_0x474735('0xb')]=_0x227a7d[_0x474735('0xb')]||'';}module[_0x4d3b65('0x2')]=QueueCallerAbandon; \ No newline at end of file diff --git a/server/services/ami/fax/action.js b/server/services/ami/fax/action.js index 7cb75ac..61703d5 100644 --- a/server/services/ami/fax/action.js +++ b/server/services/ami/fax/action.js @@ -1 +1 @@ -const a1058_0x4eb0=['uniqueid','exports','path','util','localstationid','%s/%s/%s','AttachmentId','channel','Trunk','format'];(function(_0x77fc29,_0x4eb04c){const _0x50ac2d=function(_0xc2d1e8){while(--_0xc2d1e8){_0x77fc29['push'](_0x77fc29['shift']());}};_0x50ac2d(++_0x4eb04c);}(a1058_0x4eb0,0x1f1));const a1058_0x50ac=function(_0x77fc29,_0x4eb04c){_0x77fc29=_0x77fc29-0x0;let _0x50ac2d=a1058_0x4eb0[_0x77fc29];return _0x50ac2d;};const _0x453dc0=a1058_0x50ac;'use strict';const util=require(_0x453dc0('0x6'));function Action(_0xc2d1e8,_0x396f11,_0x136a50){const _0x5a0108=_0x453dc0;this[_0x5a0108('0x3')]=_0xc2d1e8||undefined,this[_0x5a0108('0x0')]=util[_0x5a0108('0x2')](_0x5a0108('0x8'),_0x396f11['tech'],_0x396f11[_0x5a0108('0x1')]['name'],_0x136a50['fax']),this['localstationid']=_0x396f11[_0x5a0108('0x7')],this['headerinfo']=_0x396f11['headerinfo'],this[_0x5a0108('0x5')]=_0x136a50[_0x5a0108('0x5')],this[_0x5a0108('0x9')]=_0x136a50[_0x5a0108('0x9')];}module[_0x453dc0('0x4')]=Action; \ No newline at end of file +const a1058_0x27a9=['uniqueid','fax','util','%s/%s/%s','exports','headerinfo','path','channel','Trunk','localstationid','name','AttachmentId'];(function(_0x46c0d9,_0x27a9cf){const _0x2f03a8=function(_0x5dbdf3){while(--_0x5dbdf3){_0x46c0d9['push'](_0x46c0d9['shift']());}};_0x2f03a8(++_0x27a9cf);}(a1058_0x27a9,0x134));const a1058_0x2f03=function(_0x46c0d9,_0x27a9cf){_0x46c0d9=_0x46c0d9-0x0;let _0x2f03a8=a1058_0x27a9[_0x46c0d9];return _0x2f03a8;};const _0x215c27=a1058_0x2f03;'use strict';const util=require(_0x215c27('0x6'));function Action(_0x5dbdf3,_0x13b9e2,_0x26befb){const _0x2ce84b=_0x215c27;this[_0x2ce84b('0x4')]=_0x5dbdf3||undefined,this[_0x2ce84b('0xb')]=util['format'](_0x2ce84b('0x7'),_0x13b9e2['tech'],_0x13b9e2[_0x2ce84b('0x0')][_0x2ce84b('0x2')],_0x26befb[_0x2ce84b('0x5')]),this[_0x2ce84b('0x1')]=_0x13b9e2[_0x2ce84b('0x1')],this[_0x2ce84b('0x9')]=_0x13b9e2['headerinfo'],this['path']=_0x26befb[_0x2ce84b('0xa')],this[_0x2ce84b('0x3')]=_0x26befb[_0x2ce84b('0x3')];}module[_0x215c27('0x8')]=Action; \ No newline at end of file diff --git a/server/services/ami/fax/index.js b/server/services/ami/fax/index.js index 3c1c0d5..830d956 100644 --- a/server/services/ami/fax/index.js +++ b/server/services/ami/fax/index.js @@ -1 +1 @@ -const a1060_0x11fe=['[Fax][Message][Updated]','[Fax][checkTrunk][Trunk\x20not\x20work]','.pdf','SIP/%s','status','calleridnum','create','faxpages','newexten','bind','%s/%s.tif','Action','channels','variablesAction','isValid','syncHangup','catch','remotestationid','reachable','util','./action','notify','[Fax][Message][NoUpdate1]','response','transferrate','lodash','newstate','active','syncReceiveFax','actions','Is\x20Valid','tiff2pdf','prototype','ext','SENDING\x20FAILED\x20','addVariables','faxAccounts','./util/gs','exten','\x20result\x20conversion\x20file\x20','from-voip-provider','finally','channelstate','/var/opt/motion2/server/files/attachments/','syncVarSet','pick','\x20syncNewchannel\x20','logger','syncFaxStatus','[Fax][checkTrunk][Empty\x20Fax]','merge','Convert\x20pdf\x20to\x20tif','../ami','pagestransferred','\x20hangup\x20faxRiceive\x20','SENDING\x20FAILED','[Fax][Message][NoUpdate2]','hangup','update','Empty\x20Fax','isNil','variable','receivefax','message','path','channel','localstationid','syncNewchannel','AttachmentId','isTrunkReachable','syncOriginateResponse','parse','error','Fax\x20failed','faxstatusstring','syncNewExten','operation','[Fax][execOriginate][success]','\x20Trunk\x20is\x20not\x20active','fax','SENDING\x20FAILED:\x20','undefined','./util/util','stringify','../../../config/logger','Trunk\x20Reachable','filename','channelstatedesc','\x20hangup\x20sendFile\x20','format','\x20receiveFax\x20','name','checkTrunk','resolution','unmonitored','[Fax][checkTrunk][Empty\x20path]','FaxAccountId','value','originateresponse','trunks','[Fax][Message][Error][NoUpdate1]','uniqueid','../rpc/attachment','Empty\x20path','then','context','syncNewState','faxstatus','SUCCESS','updateStatus','../rpc/faxAccount','info','../rpc/faxMessage'];(function(_0x5be22a,_0x11fef8){const _0x35b377=function(_0x275ba0){while(--_0x275ba0){_0x5be22a['push'](_0x5be22a['shift']());}};_0x35b377(++_0x11fef8);}(a1060_0x11fe,0x12a));const a1060_0x35b3=function(_0x5be22a,_0x11fef8){_0x5be22a=_0x5be22a-0x0;let _0x35b377=a1060_0x11fe[_0x5be22a];return _0x35b377;};const _0x10e661=a1060_0x35b3;'use strict';const util=require(_0x10e661('0x3c')),_=require(_0x10e661('0x42')),uuid=require('uuid'),path=require(_0x10e661('0x69')),tiff2pdf=require(_0x10e661('0x48')),gs=require(_0x10e661('0x4e')),logger=require(_0x10e661('0xc'))(_0x10e661('0x7')),ami=require(_0x10e661('0x5d')),ut=require(_0x10e661('0xa')),Action=require(_0x10e661('0x3d')),faxAccount=require(_0x10e661('0x26')),attachment=require(_0x10e661('0x1e')),faxMessage=require(_0x10e661('0x28'));function Fax(_0x275ba0){const _0x253528=_0x10e661;this['channels']={},this[_0x253528('0x4d')]=_0x275ba0[_0x253528('0x4d')],this[_0x253528('0x1b')]=_0x275ba0[_0x253528('0x1b')],this['actions']={},ami['on']('newchannel',this[_0x253528('0x6c')][_0x253528('0x32')](this)),ami['on']('varset',this[_0x253528('0x55')][_0x253528('0x32')](this)),ami['on'](_0x253528('0x43'),this[_0x253528('0x22')][_0x253528('0x32')](this)),ami['on'](_0x253528('0x31'),this['syncNewExten'][_0x253528('0x32')](this)),ami['on'](_0x253528('0x23'),this[_0x253528('0x59')][_0x253528('0x32')](this)),ami['on'](_0x253528('0x67'),this[_0x253528('0x45')]['bind'](this)),ami['on'](_0x253528('0x62'),this[_0x253528('0x38')][_0x253528('0x32')](this)),ami['on'](_0x253528('0x1a'),this[_0x253528('0x6f')][_0x253528('0x32')](this));}Fax[_0x10e661('0x49')]['syncNewchannel']=function(_0x2b9e88){const _0xcd7ca1=_0x10e661;if(_0x2b9e88[_0xcd7ca1('0x21')]===_0xcd7ca1('0x51'))for(const _0x740c0d in this[_0xcd7ca1('0x4d')]){typeof this['faxAccounts'][_0x740c0d]!==_0xcd7ca1('0x9')&&(_0x2b9e88[_0xcd7ca1('0x4f')]===this[_0xcd7ca1('0x4d')][_0x740c0d][_0xcd7ca1('0x6b')]&&(this[_0xcd7ca1('0x35')][_0x2b9e88[_0xcd7ca1('0x1d')]]={},this['channels'][_0x2b9e88['uniqueid']][_0xcd7ca1('0x6a')]=_0x2b9e88[_0xcd7ca1('0x6a')],this[_0xcd7ca1('0x35')][_0x2b9e88['uniqueid']]['id']=this[_0xcd7ca1('0x4d')][_0x740c0d]['id'],this[_0xcd7ca1('0x35')][_0x2b9e88['uniqueid']][_0xcd7ca1('0x13')]=this[_0xcd7ca1('0x4d')][_0x740c0d][_0xcd7ca1('0x13')],logger['info'](_0x2b9e88[_0xcd7ca1('0x1d')],_0xcd7ca1('0x57'))));}this[_0xcd7ca1('0x46')][_0x2b9e88[_0xcd7ca1('0x1d')]]&&(this[_0xcd7ca1('0x35')][_0x2b9e88[_0xcd7ca1('0x1d')]]={},this[_0xcd7ca1('0x35')][_0x2b9e88[_0xcd7ca1('0x1d')]][_0xcd7ca1('0x6a')]=_0x2b9e88[_0xcd7ca1('0x6a')],logger[_0xcd7ca1('0x27')](_0x2b9e88[_0xcd7ca1('0x1d')],'\x20syncNewchannel\x20'));},Fax[_0x10e661('0x49')]['syncVarSet']=function(_0x2f6de6){const _0x44521c=_0x10e661;if(this[_0x44521c('0x35')][_0x2f6de6[_0x44521c('0x1d')]])for(const _0x1bde9b in _0x2f6de6['variable']){typeof _0x2f6de6['variable'][_0x1bde9b]!=='undefined'&&(this[_0x44521c('0x35')][_0x2f6de6[_0x44521c('0x1d')]][_0x1bde9b]=_0x2f6de6['value']);}},Fax['prototype']['syncNewState']=function(_0x48c13d){const _0xf8087a=_0x10e661;this['channels'][_0x48c13d['uniqueid']]&&(this[_0xf8087a('0x35')][_0x48c13d[_0xf8087a('0x1d')]][_0xf8087a('0x53')]=_0x48c13d['channelstate'],this[_0xf8087a('0x35')][_0x48c13d['uniqueid']][_0xf8087a('0xf')]=_0x48c13d[_0xf8087a('0xf')]);},Fax[_0x10e661('0x49')][_0x10e661('0x3')]=function(_0x2462df){const _0x283949=_0x10e661;if(this[_0x283949('0x35')][_0x2462df['uniqueid']])for(const _0x5bc087 in _0x2462df[_0x283949('0x66')]){typeof _0x2462df[_0x283949('0x66')][_0x5bc087]!=='undefined'&&(this['channels'][_0x2462df['uniqueid']][_0x5bc087]=_0x2462df[_0x283949('0x19')]);}},Fax[_0x10e661('0x49')][_0x10e661('0x59')]=function(_0x38539e){const _0x3e9229=_0x10e661;this['channels'][_0x38539e['uniqueid']]&&(this[_0x3e9229('0x35')][_0x38539e['uniqueid']][_0x3e9229('0x4')]=_0x38539e['operation'],this[_0x3e9229('0x35')][_0x38539e[_0x3e9229('0x1d')]][_0x3e9229('0x2d')]=_0x38539e[_0x3e9229('0x2d')],this[_0x3e9229('0x35')][_0x38539e[_0x3e9229('0x1d')]][_0x3e9229('0x6b')]=_0x38539e[_0x3e9229('0x6b')],this[_0x3e9229('0x35')][_0x38539e[_0x3e9229('0x1d')]][_0x3e9229('0xe')]=_0x38539e[_0x3e9229('0xe')],logger[_0x3e9229('0x27')](_0x38539e[_0x3e9229('0x1d')],'\x20syncFaxStatus\x20'));},Fax[_0x10e661('0x49')][_0x10e661('0x45')]=function(_0x5be39d){const _0x4ab0a8=_0x10e661;if(this[_0x4ab0a8('0x35')][_0x5be39d['uniqueid']]){const _0x11381d=this[_0x4ab0a8('0x35')][_0x5be39d[_0x4ab0a8('0x1d')]]['id'];this[_0x4ab0a8('0x35')][_0x5be39d[_0x4ab0a8('0x1d')]][_0x4ab0a8('0x3a')]=_0x5be39d['remotestationid'],this['channels'][_0x5be39d[_0x4ab0a8('0x1d')]][_0x4ab0a8('0x5e')]=_0x5be39d[_0x4ab0a8('0x5e')],this['channels'][_0x5be39d['uniqueid']][_0x4ab0a8('0x6b')]=_0x5be39d[_0x4ab0a8('0x6b')],this[_0x4ab0a8('0x35')][_0x5be39d[_0x4ab0a8('0x1d')]][_0x4ab0a8('0x15')]=_0x5be39d[_0x4ab0a8('0x15')],this[_0x4ab0a8('0x35')][_0x5be39d[_0x4ab0a8('0x1d')]][_0x4ab0a8('0x41')]=_0x5be39d[_0x4ab0a8('0x41')],this[_0x4ab0a8('0x35')][_0x5be39d[_0x4ab0a8('0x1d')]][_0x4ab0a8('0xe')]=_0x5be39d[_0x4ab0a8('0xe')],this[_0x4ab0a8('0x35')][_0x5be39d['uniqueid']][_0x4ab0a8('0x2e')]=_0x5be39d[_0x4ab0a8('0x2e')],this[_0x4ab0a8('0x35')][_0x5be39d[_0x4ab0a8('0x1d')]]['pagestransferred']>0x0&&tiff2pdf(_0x5be39d['filename'],_0x4ab0a8('0x54'),function(_0x59af4f){const _0x28e636=_0x4ab0a8;logger[_0x28e636('0x27')](_0x5be39d[_0x28e636('0x1d')],_0x28e636('0x50'),_0x59af4f[_0x28e636('0x68')]),attachment[_0x28e636('0x2f')]({'name':path[_0x28e636('0x70')](_0x5be39d[_0x28e636('0xe')])[_0x28e636('0x13')],'basename':path[_0x28e636('0x70')](_0x5be39d[_0x28e636('0xe')])[_0x28e636('0x13')]+'.pdf','type':'application/pdf'})[_0x28e636('0x20')](function(_0x3b1d49){const _0x26341d=_0x28e636;faxAccount[_0x26341d('0x3e')](_0x11381d,{'from':_0x5be39d[_0x26341d('0x2e')],'mapKey':'fax','body':path[_0x26341d('0x70')](_0x5be39d['filename'])['name']+_0x26341d('0x2b'),'AttachmentId':_0x3b1d49['id']})['catch'](function(_0x55fe06){const _0x542667=_0x26341d;logger[_0x542667('0x0')](_0x5be39d[_0x542667('0x1d')],'\x20notify\x20',JSON[_0x542667('0xb')](_0x55fe06));});})[_0x28e636('0x39')](function(_0x587999){const _0x5e5edf=_0x28e636;logger[_0x5e5edf('0x0')](_0x5be39d[_0x5e5edf('0x1d')],_0x5e5edf('0x12'),JSON['stringify'](_0x587999));});}),logger[_0x4ab0a8('0x27')](_0x5be39d[_0x4ab0a8('0x1d')],_0x4ab0a8('0x12'));}},Fax[_0x10e661('0x49')][_0x10e661('0x6f')]=function(_0x350ad6){const _0x38df55=_0x10e661;this['actions'][_0x350ad6['uniqueid']]&&_[_0x38df55('0x5b')](this[_0x38df55('0x35')][_0x350ad6[_0x38df55('0x1d')]],_[_0x38df55('0x56')](_0x350ad6,[_0x38df55('0x40'),'reason']));};function updateStatus(_0x1de65f){const _0x2b53dc=_0x10e661;_0x1de65f[_0x2b53dc('0x6d')]?faxMessage[_0x2b53dc('0x63')](_0x1de65f['AttachmentId'],{'failMessage':_0x2b53dc('0x4b')})['then'](function(_0x1f5c62){const _0x303c7f=_0x2b53dc;ut[_0x303c7f('0x58')]('[Fax][Message][Error][Updated]',_0x1f5c62);})[_0x2b53dc('0x39')](function(_0x3e276d){const _0x325fb8=_0x2b53dc;ut[_0x325fb8('0x58')](_0x325fb8('0x1c'),_0x3e276d);}):ut[_0x2b53dc('0x58')]('[Fax][Message][Error][NoUpdate2]');}Fax[_0x10e661('0x49')][_0x10e661('0x25')]=function(_0x274c10,_0x177535,_0x53a314){const _0x4ada10=_0x10e661,_0x2c2946=this;let _0xa8c4db={};_0x177535?_0xa8c4db={'read':_0x177535}:_0xa8c4db={'failMessage':_0x53a314},this['actions'][_0x274c10]['AttachmentId']?faxMessage['update'](this[_0x4ada10('0x46')][_0x274c10][_0x4ada10('0x6d')],_0xa8c4db)[_0x4ada10('0x20')](function(_0x4900c7){const _0x2a04b4=_0x4ada10;ut[_0x2a04b4('0x58')](_0x2a04b4('0x29'),_0x4900c7);})[_0x4ada10('0x39')](function(_0x99d261){const _0x5f20ac=_0x4ada10;ut[_0x5f20ac('0x58')](_0x5f20ac('0x3f'),_0x99d261);})[_0x4ada10('0x52')](function(){const _0x23e772=_0x4ada10;delete _0x2c2946[_0x23e772('0x35')][_0x274c10],delete _0x2c2946[_0x23e772('0x46')][_0x274c10];}):(ut['logger'](_0x4ada10('0x61')),delete this['channels'][_0x274c10],delete this['actions'][_0x274c10]);},Fax[_0x10e661('0x49')]['syncHangup']=function(_0x4d0426){const _0x101108=_0x10e661;this[_0x101108('0x35')][_0x4d0426[_0x101108('0x1d')]]&&(this[_0x101108('0x46')][_0x4d0426[_0x101108('0x1d')]]&&(this[_0x101108('0x35')][_0x4d0426[_0x101108('0x1d')]]['id']=this['actions'][_0x4d0426['uniqueid']]['id'],this[_0x101108('0x35')][_0x4d0426[_0x101108('0x1d')]][_0x101108('0x13')]=this[_0x101108('0x46')][_0x4d0426['uniqueid']][_0x101108('0x13')]),logger[_0x101108('0x27')](_0x4d0426[_0x101108('0x1d')],this['actions'][_0x4d0426['uniqueid']]?_0x101108('0x10'):_0x101108('0x5f'),JSON[_0x101108('0xb')](this[_0x101108('0x35')][_0x4d0426['uniqueid']])),this[_0x101108('0x46')][_0x4d0426[_0x101108('0x1d')]]&&(this[_0x101108('0x35')][_0x4d0426[_0x101108('0x1d')]][_0x101108('0x30')]>0x0&&this[_0x101108('0x35')][_0x4d0426[_0x101108('0x1d')]]['faxstatus']===_0x101108('0x24')?this[_0x101108('0x25')](_0x4d0426['uniqueid'],!![]):this[_0x101108('0x25')](_0x4d0426[_0x101108('0x1d')],![],this[_0x101108('0x35')][_0x4d0426[_0x101108('0x1d')]][_0x101108('0x2')]?_0x101108('0x8')+this[_0x101108('0x35')][_0x4d0426[_0x101108('0x1d')]]['faxstatusstring']:_0x101108('0x60'))));},Fax[_0x10e661('0x49')]['send']=function(_0x4fa98c){const _0x4fc2da=this;return new Promise(function(_0x312460,_0x19cce5){const _0x3764c4=a1060_0x35b3;_0x4fc2da['execOriginate'](_0x4fa98c,_0x4fc2da[_0x3764c4('0x4d')][_0x4fa98c[_0x3764c4('0x18')]])['then'](function(_0x879bff){const _0x24a868=_0x3764c4;ut[_0x24a868('0x58')](_0x24a868('0x5'),_0x879bff),_0x312460(ut[_0x24a868('0x68')]('Fax\x20received'));})[_0x3764c4('0x39')](function(_0x2f22c4){const _0x1cd198=_0x3764c4;ut['logger']('[Fax][execOriginate][failure]',_0x2f22c4),updateStatus(_0x4fa98c),_0x19cce5(ut[_0x1cd198('0x68')](_0x1cd198('0x1')));});});},Fax['prototype']['checkAfterSend']=function(_0x292bf9){const _0x2360c8=this;return new Promise(function(_0xab3ff6,_0x1a04fe){const _0x5aa431=a1060_0x35b3,_0x44bc5b=_0x2360c8[_0x5aa431('0x14')](_0x2360c8[_0x5aa431('0x4d')][_0x292bf9[_0x5aa431('0x18')]]['Trunk'],_0x292bf9);_0x44bc5b[_0x5aa431('0x37')]?_0xab3ff6(ut[_0x5aa431('0x68')](_0x5aa431('0xd'))):_0x1a04fe(ut[_0x5aa431('0x68')](_0x44bc5b['message']));});};function originate(_0x373048,_0x86904c,_0x6c51d0){return new Promise(function(_0x33a19a,_0x48ae32){const _0x4a31b5=a1060_0x35b3;if(_0x6c51d0){const _0x2a2c4c=util[_0x4a31b5('0x11')]('gs\x20-q\x20-dNOPAUSE\x20-dBATCH\x20-sDEVICE=tiffg4\x20-sPAPERSIZE=letter\x20-sOutputFile=/var/opt/motion2/server/files/attachments/%s.tif\x20\x20%s\x20-c\x20quit',path['parse'](_0x373048[_0x4a31b5('0x69')])[_0x4a31b5('0x13')],_0x373048[_0x4a31b5('0x69')]);gs['execute'](_0x2a2c4c)['then'](function(){const _0x338ae5=_0x4a31b5;_0x373048[_0x338ae5('0x69')]=util[_0x338ae5('0x11')](_0x338ae5('0x33'),path['parse'](_0x373048[_0x338ae5('0x69')])['dir'],path[_0x338ae5('0x70')](_0x373048[_0x338ae5('0x69')])[_0x338ae5('0x13')]),_0x86904c['XMF-PATH']=_0x373048[_0x338ae5('0x69')],ut[_0x338ae5('0x58')](_0x338ae5('0x5c'),''),ami[_0x338ae5('0x34')](ut[_0x338ae5('0x36')](_0x373048,_0x86904c))[_0x338ae5('0x20')](function(_0x2bf617){_0x33a19a(_0x2bf617);})[_0x338ae5('0x39')](function(_0x4d61c9){_0x48ae32(_0x4d61c9);});})[_0x4a31b5('0x39')](function(_0x121950){_0x48ae32(_0x121950);});}else ami[_0x4a31b5('0x34')](ut['variablesAction'](_0x373048,_0x86904c))[_0x4a31b5('0x20')](function(_0x586cb6){_0x33a19a(_0x586cb6);})[_0x4a31b5('0x39')](function(_0xd00e9a){_0x48ae32(_0xd00e9a);});});}Fax['prototype']['execOriginate']=function(_0x49875e,_0x38001e){const _0x39492b=this;return new Promise(function(_0x4cddef,_0x533a8d){const _0x2229a1=a1060_0x35b3,_0x25153d=uuid['v4'](),_0x5b9c26=ut[_0x2229a1('0x4c')](_0x49875e,_0x38001e);_0x39492b[_0x2229a1('0x46')][_0x25153d]=new Action(_0x25153d,_0x38001e,_0x49875e);const _0x1295ef=_0x39492b[_0x2229a1('0x46')][_0x25153d];path[_0x2229a1('0x70')](_0x49875e['path'])[_0x2229a1('0x4a')]===_0x2229a1('0x2b')?originate(_0x1295ef,_0x5b9c26,!![])[_0x2229a1('0x20')](function(_0x2fa50a){_0x4cddef(_0x2fa50a);})[_0x2229a1('0x39')](function(_0x5ba8c2){_0x533a8d(_0x5ba8c2);}):originate(_0x1295ef,_0x5b9c26,![])[_0x2229a1('0x20')](function(_0x237fbf){_0x4cddef(_0x237fbf);})[_0x2229a1('0x39')](function(_0x57a683){_0x533a8d(_0x57a683);});});},Fax[_0x10e661('0x49')][_0x10e661('0x6e')]=function(_0x3dc9a6){const _0x20eafa=_0x10e661;return!_[_0x20eafa('0x65')](_0x3dc9a6)&&!_['isNil'](_0x3dc9a6[_0x20eafa('0x13')])&&!_['isNil'](_0x3dc9a6[_0x20eafa('0x44')])&&_0x3dc9a6[_0x20eafa('0x44')]&&!_[_0x20eafa('0x65')](this[_0x20eafa('0x1b')][util[_0x20eafa('0x11')](_0x20eafa('0x2c'),_0x3dc9a6[_0x20eafa('0x13')])])&&!_[_0x20eafa('0x65')](this[_0x20eafa('0x1b')][util[_0x20eafa('0x11')]('SIP/%s',_0x3dc9a6['name'])]['status'])&&(this['trunks'][util[_0x20eafa('0x11')](_0x20eafa('0x2c'),_0x3dc9a6[_0x20eafa('0x13')])][_0x20eafa('0x2d')]===_0x20eafa('0x3b')||this[_0x20eafa('0x1b')][util[_0x20eafa('0x11')]('SIP/%s',_0x3dc9a6[_0x20eafa('0x13')])][_0x20eafa('0x2d')]===_0x20eafa('0x16'));},Fax['prototype'][_0x10e661('0x14')]=function(_0x54bf6c,_0x1f777b){const _0x5ef410=_0x10e661;if(!this[_0x5ef410('0x6e')](_0x54bf6c))return ut[_0x5ef410('0x58')](_0x5ef410('0x2a'),_[_0x5ef410('0x65')](_0x54bf6c)?'':_0x54bf6c[_0x5ef410('0x13')]+_0x5ef410('0x6')),{'isValid':![],'message':'Trunk\x20not\x20working'};if(_[_0x5ef410('0x65')](_0x1f777b[_0x5ef410('0x7')]))return ut[_0x5ef410('0x58')](_0x5ef410('0x5a'),JSON[_0x5ef410('0xb')](_0x1f777b)),{'isValid':![],'message':_0x5ef410('0x64')};if(_[_0x5ef410('0x65')](_0x1f777b[_0x5ef410('0x69')]))return ut['logger'](_0x5ef410('0x17'),JSON[_0x5ef410('0xb')](_0x1f777b)),{'isValid':![],'message':_0x5ef410('0x1f')};return{'isValid':!![],'message':_0x5ef410('0x47')};},module['exports']=Fax; \ No newline at end of file +const a1060_0x36f3=['pagestransferred','execOriginate','receivefax','transferrate','%s/%s.tif','message','notify','\x20result\x20conversion\x20file\x20','channelstate','dir','FaxAccountId','format','[Fax][execOriginate][failure]','reachable','Action','undefined','channel','execute','\x20hangup\x20faxRiceive\x20','XMF-PATH','../rpc/faxMessage','resolution','variablesAction','filename','channels','SENDING\x20FAILED:\x20','../rpc/faxAccount','\x20Trunk\x20is\x20not\x20active','active','\x20syncNewchannel\x20','faxAccounts','\x20receiveFax\x20','status','Fax\x20received','addVariables','fax','create','application/pdf','[Fax][Message][NoUpdate1]','[Fax][execOriginate][success]','logger','then','tiff2pdf','operation','AttachmentId','faxstatus','originateresponse','uniqueid','isNil','stringify','syncVarSet','uuid','variable','syncNewchannel','syncFaxStatus','faxstatusstring','unmonitored','syncHangup','channelstatedesc','Trunk\x20Reachable','Empty\x20path','Is\x20Valid','.pdf','SIP/%s','bind','Empty\x20Fax','faxpages','remotestationid','value','catch','util','[Fax][Message][Error][NoUpdate2]','[Fax][Message][NoUpdate2]','response','[Fax][checkTrunk][Empty\x20Fax]','send','varset','lodash','[Fax][checkTrunk][Empty\x20path]','Convert\x20pdf\x20to\x20tif','trunks','./util/util','name','checkTrunk','localstationid','parse','from-voip-provider','prototype','../rpc/attachment','exports','../ami','SUCCESS','syncReceiveFax','updateStatus','context','hangup','[Fax][checkTrunk][Trunk\x20not\x20work]','Trunk\x20not\x20working','SENDING\x20FAILED','gs\x20-q\x20-dNOPAUSE\x20-dBATCH\x20-sDEVICE=tiffg4\x20-sPAPERSIZE=letter\x20-sOutputFile=/var/opt/motion2/server/files/attachments/%s.tif\x20\x20%s\x20-c\x20quit','[Fax][Message][Updated]','isTrunkReachable','info','error','/var/opt/motion2/server/files/attachments/','\x20hangup\x20sendFile\x20','./action','update','exten','path','./util/gs','newstate','Trunk','actions','pick','SENDING\x20FAILED\x20','syncNewState','calleridnum'];(function(_0x4efedb,_0x36f3f6){const _0x4d4835=function(_0x5d929f){while(--_0x5d929f){_0x4efedb['push'](_0x4efedb['shift']());}};_0x4d4835(++_0x36f3f6);}(a1060_0x36f3,0x84));const a1060_0x4d48=function(_0x4efedb,_0x36f3f6){_0x4efedb=_0x4efedb-0x0;let _0x4d4835=a1060_0x36f3[_0x4efedb];return _0x4d4835;};const _0x3ef0b0=a1060_0x4d48;'use strict';const util=require(_0x3ef0b0('0x38')),_=require(_0x3ef0b0('0x3f')),uuid=require(_0x3ef0b0('0x25')),path=require(_0x3ef0b0('0x5f')),tiff2pdf=require(_0x3ef0b0('0x1c')),gs=require(_0x3ef0b0('0x60')),logger=require('../../../config/logger')('fax'),ami=require(_0x3ef0b0('0x4c')),ut=require(_0x3ef0b0('0x43')),Action=require(_0x3ef0b0('0x5c')),faxAccount=require(_0x3ef0b0('0xc')),attachment=require(_0x3ef0b0('0x4a')),faxMessage=require(_0x3ef0b0('0x6'));function Fax(_0x5d929f){const _0x1f59db=_0x3ef0b0;this['channels']={},this[_0x1f59db('0x10')]=_0x5d929f[_0x1f59db('0x10')],this['trunks']=_0x5d929f['trunks'],this[_0x1f59db('0x63')]={},ami['on']('newchannel',this[_0x1f59db('0x27')][_0x1f59db('0x32')](this)),ami['on'](_0x1f59db('0x3e'),this[_0x1f59db('0x24')][_0x1f59db('0x32')](this)),ami['on'](_0x1f59db('0x61'),this[_0x1f59db('0x66')]['bind'](this)),ami['on']('newexten',this['syncNewExten'][_0x1f59db('0x32')](this)),ami['on'](_0x1f59db('0x1f'),this[_0x1f59db('0x28')][_0x1f59db('0x32')](this)),ami['on'](_0x1f59db('0x6a'),this[_0x1f59db('0x4e')]['bind'](this)),ami['on'](_0x1f59db('0x51'),this[_0x1f59db('0x2b')][_0x1f59db('0x32')](this)),ami['on'](_0x1f59db('0x20'),this['syncOriginateResponse'][_0x1f59db('0x32')](this));}Fax[_0x3ef0b0('0x49')]['syncNewchannel']=function(_0x38c26b){const _0x34ad7c=_0x3ef0b0;if(_0x38c26b[_0x34ad7c('0x50')]===_0x34ad7c('0x48'))for(const _0x1bf6dc in this['faxAccounts']){typeof this[_0x34ad7c('0x10')][_0x1bf6dc]!==_0x34ad7c('0x1')&&(_0x38c26b[_0x34ad7c('0x5e')]===this[_0x34ad7c('0x10')][_0x1bf6dc]['localstationid']&&(this[_0x34ad7c('0xa')][_0x38c26b['uniqueid']]={},this[_0x34ad7c('0xa')][_0x38c26b[_0x34ad7c('0x21')]][_0x34ad7c('0x2')]=_0x38c26b[_0x34ad7c('0x2')],this[_0x34ad7c('0xa')][_0x38c26b['uniqueid']]['id']=this[_0x34ad7c('0x10')][_0x1bf6dc]['id'],this[_0x34ad7c('0xa')][_0x38c26b[_0x34ad7c('0x21')]][_0x34ad7c('0x44')]=this[_0x34ad7c('0x10')][_0x1bf6dc][_0x34ad7c('0x44')],logger['info'](_0x38c26b[_0x34ad7c('0x21')],_0x34ad7c('0xf'))));}this['actions'][_0x38c26b[_0x34ad7c('0x21')]]&&(this['channels'][_0x38c26b[_0x34ad7c('0x21')]]={},this[_0x34ad7c('0xa')][_0x38c26b['uniqueid']]['channel']=_0x38c26b[_0x34ad7c('0x2')],logger['info'](_0x38c26b[_0x34ad7c('0x21')],_0x34ad7c('0xf')));},Fax['prototype']['syncVarSet']=function(_0x16abd6){const _0x3843aa=_0x3ef0b0;if(this['channels'][_0x16abd6[_0x3843aa('0x21')]])for(const _0xc763ff in _0x16abd6['variable']){typeof _0x16abd6[_0x3843aa('0x26')][_0xc763ff]!=='undefined'&&(this[_0x3843aa('0xa')][_0x16abd6[_0x3843aa('0x21')]][_0xc763ff]=_0x16abd6[_0x3843aa('0x36')]);}},Fax[_0x3ef0b0('0x49')][_0x3ef0b0('0x66')]=function(_0x3f4587){const _0x4f4ba9=_0x3ef0b0;this[_0x4f4ba9('0xa')][_0x3f4587[_0x4f4ba9('0x21')]]&&(this[_0x4f4ba9('0xa')][_0x3f4587[_0x4f4ba9('0x21')]][_0x4f4ba9('0x70')]=_0x3f4587['channelstate'],this[_0x4f4ba9('0xa')][_0x3f4587[_0x4f4ba9('0x21')]][_0x4f4ba9('0x2c')]=_0x3f4587[_0x4f4ba9('0x2c')]);},Fax[_0x3ef0b0('0x49')]['syncNewExten']=function(_0x4fcc5c){const _0x1ee62f=_0x3ef0b0;if(this[_0x1ee62f('0xa')][_0x4fcc5c['uniqueid']])for(const _0x21f320 in _0x4fcc5c[_0x1ee62f('0x26')]){typeof _0x4fcc5c[_0x1ee62f('0x26')][_0x21f320]!==_0x1ee62f('0x1')&&(this[_0x1ee62f('0xa')][_0x4fcc5c['uniqueid']][_0x21f320]=_0x4fcc5c['value']);}},Fax['prototype'][_0x3ef0b0('0x28')]=function(_0x449264){const _0x45073d=_0x3ef0b0;this[_0x45073d('0xa')][_0x449264['uniqueid']]&&(this['channels'][_0x449264[_0x45073d('0x21')]][_0x45073d('0x1d')]=_0x449264['operation'],this[_0x45073d('0xa')][_0x449264['uniqueid']][_0x45073d('0x12')]=_0x449264[_0x45073d('0x12')],this['channels'][_0x449264['uniqueid']][_0x45073d('0x46')]=_0x449264[_0x45073d('0x46')],this[_0x45073d('0xa')][_0x449264[_0x45073d('0x21')]]['filename']=_0x449264[_0x45073d('0x9')],logger[_0x45073d('0x58')](_0x449264[_0x45073d('0x21')],'\x20syncFaxStatus\x20'));},Fax[_0x3ef0b0('0x49')][_0x3ef0b0('0x4e')]=function(_0x408707){const _0x387a2b=_0x3ef0b0;if(this[_0x387a2b('0xa')][_0x408707['uniqueid']]){const _0x14e7c9=this[_0x387a2b('0xa')][_0x408707['uniqueid']]['id'];this['channels'][_0x408707['uniqueid']][_0x387a2b('0x35')]=_0x408707[_0x387a2b('0x35')],this[_0x387a2b('0xa')][_0x408707[_0x387a2b('0x21')]]['pagestransferred']=_0x408707[_0x387a2b('0x68')],this[_0x387a2b('0xa')][_0x408707[_0x387a2b('0x21')]][_0x387a2b('0x46')]=_0x408707['localstationid'],this[_0x387a2b('0xa')][_0x408707[_0x387a2b('0x21')]][_0x387a2b('0x7')]=_0x408707[_0x387a2b('0x7')],this[_0x387a2b('0xa')][_0x408707[_0x387a2b('0x21')]]['transferrate']=_0x408707[_0x387a2b('0x6b')],this['channels'][_0x408707[_0x387a2b('0x21')]][_0x387a2b('0x9')]=_0x408707[_0x387a2b('0x9')],this[_0x387a2b('0xa')][_0x408707[_0x387a2b('0x21')]][_0x387a2b('0x67')]=_0x408707[_0x387a2b('0x67')],this['channels'][_0x408707[_0x387a2b('0x21')]][_0x387a2b('0x68')]>0x0&&tiff2pdf(_0x408707[_0x387a2b('0x9')],_0x387a2b('0x5a'),function(_0xd7e7a2){const _0x2a0bb2=_0x387a2b;logger['info'](_0x408707[_0x2a0bb2('0x21')],_0x2a0bb2('0x6f'),_0xd7e7a2[_0x2a0bb2('0x6d')]),attachment[_0x2a0bb2('0x16')]({'name':path[_0x2a0bb2('0x47')](_0x408707[_0x2a0bb2('0x9')])['name'],'basename':path['parse'](_0x408707['filename'])[_0x2a0bb2('0x44')]+_0x2a0bb2('0x30'),'type':_0x2a0bb2('0x17')})['then'](function(_0x48567b){const _0x499054=_0x2a0bb2;faxAccount[_0x499054('0x6e')](_0x14e7c9,{'from':_0x408707[_0x499054('0x67')],'mapKey':_0x499054('0x15'),'body':path[_0x499054('0x47')](_0x408707[_0x499054('0x9')])[_0x499054('0x44')]+_0x499054('0x30'),'AttachmentId':_0x48567b['id']})[_0x499054('0x37')](function(_0x4afc3f){const _0x398866=_0x499054;logger[_0x398866('0x59')](_0x408707['uniqueid'],'\x20notify\x20',JSON[_0x398866('0x23')](_0x4afc3f));});})[_0x2a0bb2('0x37')](function(_0x28c4){const _0x341bb3=_0x2a0bb2;logger[_0x341bb3('0x59')](_0x408707[_0x341bb3('0x21')],_0x341bb3('0x11'),JSON[_0x341bb3('0x23')](_0x28c4));});}),logger[_0x387a2b('0x58')](_0x408707['uniqueid'],_0x387a2b('0x11'));}},Fax['prototype']['syncOriginateResponse']=function(_0x202092){const _0x4e565c=_0x3ef0b0;this[_0x4e565c('0x63')][_0x202092[_0x4e565c('0x21')]]&&_['merge'](this[_0x4e565c('0xa')][_0x202092[_0x4e565c('0x21')]],_[_0x4e565c('0x64')](_0x202092,[_0x4e565c('0x3b'),'reason']));};function updateStatus(_0x4c8730){const _0x3e14b8=_0x3ef0b0;_0x4c8730['AttachmentId']?faxMessage[_0x3e14b8('0x5d')](_0x4c8730['AttachmentId'],{'failMessage':_0x3e14b8('0x65')})[_0x3e14b8('0x1b')](function(_0x182e82){const _0xb0ecd5=_0x3e14b8;ut[_0xb0ecd5('0x1a')]('[Fax][Message][Error][Updated]',_0x182e82);})[_0x3e14b8('0x37')](function(_0x5bdaaf){ut['logger']('[Fax][Message][Error][NoUpdate1]',_0x5bdaaf);}):ut[_0x3e14b8('0x1a')](_0x3e14b8('0x39'));}Fax['prototype'][_0x3ef0b0('0x4f')]=function(_0x14a75b,_0x56b507,_0x1a3c1f){const _0x25b651=_0x3ef0b0,_0x2999f9=this;let _0x139e88={};_0x56b507?_0x139e88={'read':_0x56b507}:_0x139e88={'failMessage':_0x1a3c1f},this[_0x25b651('0x63')][_0x14a75b][_0x25b651('0x1e')]?faxMessage[_0x25b651('0x5d')](this['actions'][_0x14a75b][_0x25b651('0x1e')],_0x139e88)[_0x25b651('0x1b')](function(_0x57377f){const _0x15c58d=_0x25b651;ut[_0x15c58d('0x1a')](_0x15c58d('0x56'),_0x57377f);})['catch'](function(_0x83745c){const _0x1598d7=_0x25b651;ut[_0x1598d7('0x1a')](_0x1598d7('0x18'),_0x83745c);})['finally'](function(){const _0x2f54ed=_0x25b651;delete _0x2999f9[_0x2f54ed('0xa')][_0x14a75b],delete _0x2999f9[_0x2f54ed('0x63')][_0x14a75b];}):(ut[_0x25b651('0x1a')](_0x25b651('0x3a')),delete this[_0x25b651('0xa')][_0x14a75b],delete this[_0x25b651('0x63')][_0x14a75b]);},Fax[_0x3ef0b0('0x49')][_0x3ef0b0('0x2b')]=function(_0x347084){const _0x2ba05f=_0x3ef0b0;this[_0x2ba05f('0xa')][_0x347084[_0x2ba05f('0x21')]]&&(this[_0x2ba05f('0x63')][_0x347084['uniqueid']]&&(this['channels'][_0x347084[_0x2ba05f('0x21')]]['id']=this[_0x2ba05f('0x63')][_0x347084['uniqueid']]['id'],this[_0x2ba05f('0xa')][_0x347084[_0x2ba05f('0x21')]][_0x2ba05f('0x44')]=this[_0x2ba05f('0x63')][_0x347084[_0x2ba05f('0x21')]][_0x2ba05f('0x44')]),logger['info'](_0x347084['uniqueid'],this[_0x2ba05f('0x63')][_0x347084['uniqueid']]?_0x2ba05f('0x5b'):_0x2ba05f('0x4'),JSON[_0x2ba05f('0x23')](this[_0x2ba05f('0xa')][_0x347084[_0x2ba05f('0x21')]])),this[_0x2ba05f('0x63')][_0x347084['uniqueid']]&&(this[_0x2ba05f('0xa')][_0x347084[_0x2ba05f('0x21')]][_0x2ba05f('0x34')]>0x0&&this[_0x2ba05f('0xa')][_0x347084[_0x2ba05f('0x21')]][_0x2ba05f('0x1f')]===_0x2ba05f('0x4d')?this[_0x2ba05f('0x4f')](_0x347084[_0x2ba05f('0x21')],!![]):this[_0x2ba05f('0x4f')](_0x347084[_0x2ba05f('0x21')],![],this[_0x2ba05f('0xa')][_0x347084[_0x2ba05f('0x21')]]['faxstatusstring']?_0x2ba05f('0xb')+this[_0x2ba05f('0xa')][_0x347084['uniqueid']][_0x2ba05f('0x29')]:_0x2ba05f('0x54'))));},Fax[_0x3ef0b0('0x49')][_0x3ef0b0('0x3d')]=function(_0x33136c){const _0x17e21c=this;return new Promise(function(_0x4b2301,_0x391e80){const _0x50aca8=a1060_0x4d48;_0x17e21c[_0x50aca8('0x69')](_0x33136c,_0x17e21c[_0x50aca8('0x10')][_0x33136c[_0x50aca8('0x72')]])[_0x50aca8('0x1b')](function(_0x4c4965){const _0x1d29ae=_0x50aca8;ut[_0x1d29ae('0x1a')](_0x1d29ae('0x19'),_0x4c4965),_0x4b2301(ut['message'](_0x1d29ae('0x13')));})[_0x50aca8('0x37')](function(_0x55bb35){const _0xd07253=_0x50aca8;ut[_0xd07253('0x1a')](_0xd07253('0x74'),_0x55bb35),updateStatus(_0x33136c),_0x391e80(ut[_0xd07253('0x6d')]('Fax\x20failed'));});});},Fax[_0x3ef0b0('0x49')]['checkAfterSend']=function(_0x5f126f){const _0x13193e=this;return new Promise(function(_0x2f0faa,_0x938412){const _0x362ab3=a1060_0x4d48,_0x31c98a=_0x13193e[_0x362ab3('0x45')](_0x13193e[_0x362ab3('0x10')][_0x5f126f['FaxAccountId']][_0x362ab3('0x62')],_0x5f126f);_0x31c98a['isValid']?_0x2f0faa(ut[_0x362ab3('0x6d')](_0x362ab3('0x2d'))):_0x938412(ut['message'](_0x31c98a[_0x362ab3('0x6d')]));});};function originate(_0x5b62c5,_0x5d0311,_0x495b44){return new Promise(function(_0x25db17,_0x9504dd){const _0xc705ce=a1060_0x4d48;if(_0x495b44){const _0x2c1d36=util[_0xc705ce('0x73')](_0xc705ce('0x55'),path[_0xc705ce('0x47')](_0x5b62c5[_0xc705ce('0x5f')])[_0xc705ce('0x44')],_0x5b62c5[_0xc705ce('0x5f')]);gs[_0xc705ce('0x3')](_0x2c1d36)[_0xc705ce('0x1b')](function(){const _0x4cc2e3=_0xc705ce;_0x5b62c5[_0x4cc2e3('0x5f')]=util[_0x4cc2e3('0x73')](_0x4cc2e3('0x6c'),path[_0x4cc2e3('0x47')](_0x5b62c5[_0x4cc2e3('0x5f')])[_0x4cc2e3('0x71')],path[_0x4cc2e3('0x47')](_0x5b62c5[_0x4cc2e3('0x5f')])[_0x4cc2e3('0x44')]),_0x5d0311[_0x4cc2e3('0x5')]=_0x5b62c5[_0x4cc2e3('0x5f')],ut[_0x4cc2e3('0x1a')](_0x4cc2e3('0x41'),''),ami[_0x4cc2e3('0x0')](ut[_0x4cc2e3('0x8')](_0x5b62c5,_0x5d0311))['then'](function(_0x55ddf8){_0x25db17(_0x55ddf8);})[_0x4cc2e3('0x37')](function(_0xb15dfd){_0x9504dd(_0xb15dfd);});})[_0xc705ce('0x37')](function(_0xc75b5){_0x9504dd(_0xc75b5);});}else ami[_0xc705ce('0x0')](ut[_0xc705ce('0x8')](_0x5b62c5,_0x5d0311))['then'](function(_0x5ea5c6){_0x25db17(_0x5ea5c6);})['catch'](function(_0x47f6d3){_0x9504dd(_0x47f6d3);});});}Fax[_0x3ef0b0('0x49')][_0x3ef0b0('0x69')]=function(_0x2783e9,_0x1e0897){const _0x50f3c9=this;return new Promise(function(_0x5f2a19,_0x2de7f6){const _0xb9f59=a1060_0x4d48,_0x20421e=uuid['v4'](),_0x51b79d=ut[_0xb9f59('0x14')](_0x2783e9,_0x1e0897);_0x50f3c9[_0xb9f59('0x63')][_0x20421e]=new Action(_0x20421e,_0x1e0897,_0x2783e9);const _0x5de1d6=_0x50f3c9[_0xb9f59('0x63')][_0x20421e];path[_0xb9f59('0x47')](_0x2783e9[_0xb9f59('0x5f')])['ext']===_0xb9f59('0x30')?originate(_0x5de1d6,_0x51b79d,!![])['then'](function(_0x4433dc){_0x5f2a19(_0x4433dc);})[_0xb9f59('0x37')](function(_0x5b8a90){_0x2de7f6(_0x5b8a90);}):originate(_0x5de1d6,_0x51b79d,![])[_0xb9f59('0x1b')](function(_0x5d0ae5){_0x5f2a19(_0x5d0ae5);})['catch'](function(_0x3f0064){_0x2de7f6(_0x3f0064);});});},Fax[_0x3ef0b0('0x49')]['isTrunkReachable']=function(_0x3e687b){const _0x1768ad=_0x3ef0b0;return!_['isNil'](_0x3e687b)&&!_[_0x1768ad('0x22')](_0x3e687b[_0x1768ad('0x44')])&&!_[_0x1768ad('0x22')](_0x3e687b[_0x1768ad('0xe')])&&_0x3e687b[_0x1768ad('0xe')]&&!_['isNil'](this['trunks'][util['format'](_0x1768ad('0x31'),_0x3e687b[_0x1768ad('0x44')])])&&!_[_0x1768ad('0x22')](this['trunks'][util['format'](_0x1768ad('0x31'),_0x3e687b[_0x1768ad('0x44')])]['status'])&&(this[_0x1768ad('0x42')][util[_0x1768ad('0x73')](_0x1768ad('0x31'),_0x3e687b[_0x1768ad('0x44')])]['status']===_0x1768ad('0x75')||this[_0x1768ad('0x42')][util[_0x1768ad('0x73')](_0x1768ad('0x31'),_0x3e687b['name'])][_0x1768ad('0x12')]===_0x1768ad('0x2a'));},Fax['prototype'][_0x3ef0b0('0x45')]=function(_0x27bd4d,_0x16cda4){const _0x1d0d9d=_0x3ef0b0;if(!this[_0x1d0d9d('0x57')](_0x27bd4d))return ut['logger'](_0x1d0d9d('0x52'),_[_0x1d0d9d('0x22')](_0x27bd4d)?'':_0x27bd4d[_0x1d0d9d('0x44')]+_0x1d0d9d('0xd')),{'isValid':![],'message':_0x1d0d9d('0x53')};if(_[_0x1d0d9d('0x22')](_0x16cda4[_0x1d0d9d('0x15')]))return ut[_0x1d0d9d('0x1a')](_0x1d0d9d('0x3c'),JSON['stringify'](_0x16cda4)),{'isValid':![],'message':_0x1d0d9d('0x33')};if(_[_0x1d0d9d('0x22')](_0x16cda4[_0x1d0d9d('0x5f')]))return ut['logger'](_0x1d0d9d('0x40'),JSON[_0x1d0d9d('0x23')](_0x16cda4)),{'isValid':![],'message':_0x1d0d9d('0x2e')};return{'isValid':!![],'message':_0x1d0d9d('0x2f')};},module[_0x3ef0b0('0x4b')]=Fax; \ No newline at end of file diff --git a/server/services/ami/fax/rpcDb.js b/server/services/ami/fax/rpcDb.js index 7c4e1e7..5e1e30b 100644 --- a/server/services/ami/fax/rpcDb.js +++ b/server/services/ami/fax/rpcDb.js @@ -1 +1 @@ -const a1061_0x20af=['[Notify]\x20','then','../../../config/logger','inspect','resolve','catch','preview','notify','util'];(function(_0x534689,_0x20af95){const _0x104246=function(_0x197db9){while(--_0x197db9){_0x534689['push'](_0x534689['shift']());}};_0x104246(++_0x20af95);}(a1061_0x20af,0x11f));const a1061_0x1042=function(_0x534689,_0x20af95){_0x534689=_0x534689-0x0;let _0x104246=a1061_0x20af[_0x534689];return _0x104246;};const _0x47437f=a1061_0x1042;'use strict';const util=require(_0x47437f('0x0')),logger=require(_0x47437f('0x3'))(_0x47437f('0x7')),faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x197db9){return function(_0x412cb3){const _0x32a9c2=a1061_0x1042;logger['error'](_0x197db9,util[_0x32a9c2('0x4')](_0x412cb3,{'showHidden':![],'depth':null}));};}exports['notify']=function(_0x33342d,_0x127a28){const _0x8ff56a=_0x47437f;return Promise[_0x8ff56a('0x5')]()[_0x8ff56a('0x2')](faxAccount[_0x8ff56a('0x8')](_0x33342d,_0x127a28))[_0x8ff56a('0x6')](loggerCatch(_0x8ff56a('0x1')));}; \ No newline at end of file +const a1061_0x403a=['preview','[Notify]\x20','catch','inspect','notify','resolve','../rpc/faxAccount','then','error'];(function(_0x5a9f3e,_0x403a17){const _0x2a25c6=function(_0x97f49){while(--_0x97f49){_0x5a9f3e['push'](_0x5a9f3e['shift']());}};_0x2a25c6(++_0x403a17);}(a1061_0x403a,0x14e));const a1061_0x2a25=function(_0x5a9f3e,_0x403a17){_0x5a9f3e=_0x5a9f3e-0x0;let _0x2a25c6=a1061_0x403a[_0x5a9f3e];return _0x2a25c6;};const _0x28c29e=a1061_0x2a25;'use strict';const util=require('util'),logger=require('../../../config/logger')(_0x28c29e('0x8')),faxAccount=require(_0x28c29e('0x5'));function loggerCatch(_0x97f49){return function(_0x1ae23a){const _0x4caad9=a1061_0x2a25;logger[_0x4caad9('0x7')](_0x97f49,util[_0x4caad9('0x2')](_0x1ae23a,{'showHidden':![],'depth':null}));};}exports[_0x28c29e('0x3')]=function(_0x1689ff,_0x13efb5){const _0x416ca2=_0x28c29e;return Promise[_0x416ca2('0x4')]()[_0x416ca2('0x6')](faxAccount['notify'](_0x1689ff,_0x13efb5))[_0x416ca2('0x1')](loggerCatch(_0x416ca2('0x0')));}; \ No newline at end of file diff --git a/server/services/ami/fax/util/gs.js b/server/services/ami/fax/util/gs.js index 7dd0810..3d95407 100644 --- a/server/services/ami/fax/util/gs.js +++ b/server/services/ami/fax/util/gs.js @@ -1 +1 @@ -const a1062_0x2939=['child_process','info','exec','execute','util','\x20Error\x20:','inspect','../../../../config/logger'];(function(_0x25572d,_0x2939b7){const _0x4a6b4b=function(_0x139160){while(--_0x139160){_0x25572d['push'](_0x25572d['shift']());}};_0x4a6b4b(++_0x2939b7);}(a1062_0x2939,0xd3));const a1062_0x4a6b=function(_0x25572d,_0x2939b7){_0x25572d=_0x25572d-0x0;let _0x4a6b4b=a1062_0x2939[_0x25572d];return _0x4a6b4b;};const _0x41eb1f=a1062_0x4a6b;'use strict';const util=require(_0x41eb1f('0x1')),logger=require(_0x41eb1f('0x4'))('fax'),exec=require(_0x41eb1f('0x5'))[_0x41eb1f('0x7')];exports[_0x41eb1f('0x0')]=function(_0x139160){return new Promise(function(_0x2d8f7a,_0x5a7be1){exec(_0x139160,function(_0x2dcd17,_0x5017fa,_0x19011e){const _0x196ab1=a1062_0x4a6b;logger[_0x196ab1('0x6')]('Exec\x20gs',_0x5017fa),_0x2dcd17&&(logger['info']('Exec\x20gs',_0x196ab1('0x2'),util[_0x196ab1('0x3')](_0x2dcd17,{'showHidden':![],'depth':null}),_0x5017fa,_0x19011e),_0x5a7be1(_0x2dcd17)),_0x2d8f7a(_0x5017fa);});});}; \ No newline at end of file +const a1062_0x596f=['\x20Error\x20:','exec','inspect','fax','../../../../config/logger','util','info'];(function(_0x4de127,_0x596fee){const _0x10dbaa=function(_0x45851e){while(--_0x45851e){_0x4de127['push'](_0x4de127['shift']());}};_0x10dbaa(++_0x596fee);}(a1062_0x596f,0x76));const a1062_0x10db=function(_0x4de127,_0x596fee){_0x4de127=_0x4de127-0x0;let _0x10dbaa=a1062_0x596f[_0x4de127];return _0x10dbaa;};const _0x19e41a=a1062_0x10db;'use strict';const util=require(_0x19e41a('0x6')),logger=require(_0x19e41a('0x5'))(_0x19e41a('0x4')),exec=require('child_process')[_0x19e41a('0x2')];exports['execute']=function(_0x45851e){return new Promise(function(_0x463015,_0x308f18){exec(_0x45851e,function(_0x58f419,_0x484771,_0x27e533){const _0xe8414b=a1062_0x10db;logger[_0xe8414b('0x0')]('Exec\x20gs',_0x484771),_0x58f419&&(logger[_0xe8414b('0x0')]('Exec\x20gs',_0xe8414b('0x1'),util[_0xe8414b('0x3')](_0x58f419,{'showHidden':![],'depth':null}),_0x484771,_0x27e533),_0x308f18(_0x58f419)),_0x463015(_0x484771);});});}; \ No newline at end of file diff --git a/server/services/ami/fax/util/util.js b/server/services/ami/fax/util/util.js index 5c1b6e8..7c7b120 100644 --- a/server/services/ami/fax/util/util.js +++ b/server/services/ami/fax/util/util.js @@ -1 +1 @@ -const a1063_0x2db1=['logger','modem','path','gateway','minrate','../../../../config/logger','localstationid','originate','info','t38timeout','headerinfo','xcally-motion-fax','util','addVariables','\x22%s\x22','inspect','\x22%s\x22\x20<%s>','format','fax','channel','faxdetect','ecm','uniqueid'];(function(_0xe073e0,_0x2db1a1){const _0x45b834=function(_0x469ef6){while(--_0x469ef6){_0xe073e0['push'](_0xe073e0['shift']());}};_0x45b834(++_0x2db1a1);}(a1063_0x2db1,0x81));const a1063_0x45b8=function(_0xe073e0,_0x2db1a1){_0xe073e0=_0xe073e0-0x0;let _0x45b834=a1063_0x2db1[_0xe073e0];return _0x45b834;};const _0x5986ea=a1063_0x45b8;'use strict';const util=require(_0x5986ea('0x15')),logger=require(_0x5986ea('0xe'))(_0x5986ea('0x4'));exports['message']=function(_0x469ef6){return{'message':_0x469ef6};},exports[_0x5986ea('0x9')]=function(_0x51ead1,_0x4c14b3){const _0x5cd742=_0x5986ea;logger[_0x5cd742('0x11')](_0x51ead1,util[_0x5cd742('0x1')](_0x4c14b3,{'showHidden':![],'depth':null}));},exports[_0x5986ea('0x16')]=function(_0xd56227,_0x201ced){const _0x45a121=_0x5986ea,_0x14ee1e={'XMF-ECM':_0x201ced[_0x45a121('0x7')],'XMF-HEADERINFO':_0x201ced[_0x45a121('0x13')],'XMF-MINRATE':_0x201ced[_0x45a121('0xd')],'XMF-MAXRATE':_0x201ced['maxrate'],'XMF-MODEM':util[_0x45a121('0x3')](_0x45a121('0x0'),_0x201ced[_0x45a121('0xa')]),'XMF-GATEWAY':_0x201ced[_0x45a121('0xc')],'XMF-FAXDETECT':_0x201ced[_0x45a121('0x6')],'XMF-T38TIMEOUT':_0x201ced[_0x45a121('0x12')],'XMF-LOCALSTATIONID':_0x201ced[_0x45a121('0xf')],'XMF-PATH':_0xd56227[_0x45a121('0xb')]};return _0x14ee1e;},exports['variablesAction']=function(_0x341abc,_0x139d3a){const _0x22488c=_0x5986ea;return{'actionid':_0x341abc[_0x22488c('0x8')],'action':_0x22488c('0x10'),'channel':_0x341abc[_0x22488c('0x5')],'Exten':_0x22488c('0x14'),'Context':'from-sip','Priority':'1','callerid':util['format'](_0x22488c('0x2'),_0x341abc['headerinfo']?_0x341abc[_0x22488c('0x13')]:'',_0x341abc[_0x22488c('0xf')]),'variable':_0x139d3a,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x341abc[_0x22488c('0x8')]};}; \ No newline at end of file +const a1063_0x4478=['ecm','maxrate','info','../../../../config/logger','format','addVariables','localstationid','faxdetect','t38timeout','\x22%s\x22','channel','modem','headerinfo','uniqueid','message','minrate','\x22%s\x22\x20<%s>','path','from-sip','variablesAction','xcally-motion-fax'];(function(_0x504064,_0x44781e){const _0x51db5c=function(_0x2cbdd8){while(--_0x2cbdd8){_0x504064['push'](_0x504064['shift']());}};_0x51db5c(++_0x44781e);}(a1063_0x4478,0xcc));const a1063_0x51db=function(_0x504064,_0x44781e){_0x504064=_0x504064-0x0;let _0x51db5c=a1063_0x4478[_0x504064];return _0x51db5c;};const _0x30090f=a1063_0x51db;'use strict';const util=require('util'),logger=require(_0x30090f('0x9'))('fax');exports[_0x30090f('0x14')]=function(_0x2cbdd8){return{'message':_0x2cbdd8};},exports['logger']=function(_0x44cfd7,_0x2f34d9){const _0x3dd383=_0x30090f;logger[_0x3dd383('0x8')](_0x44cfd7,util['inspect'](_0x2f34d9,{'showHidden':![],'depth':null}));},exports[_0x30090f('0xb')]=function(_0x5f4f33,_0x53a8fe){const _0x23f7ff=_0x30090f,_0x5069fb={'XMF-ECM':_0x53a8fe[_0x23f7ff('0x6')],'XMF-HEADERINFO':_0x53a8fe[_0x23f7ff('0x12')],'XMF-MINRATE':_0x53a8fe[_0x23f7ff('0x0')],'XMF-MAXRATE':_0x53a8fe[_0x23f7ff('0x7')],'XMF-MODEM':util[_0x23f7ff('0xa')](_0x23f7ff('0xf'),_0x53a8fe[_0x23f7ff('0x11')]),'XMF-GATEWAY':_0x53a8fe['gateway'],'XMF-FAXDETECT':_0x53a8fe[_0x23f7ff('0xd')],'XMF-T38TIMEOUT':_0x53a8fe[_0x23f7ff('0xe')],'XMF-LOCALSTATIONID':_0x53a8fe[_0x23f7ff('0xc')],'XMF-PATH':_0x5f4f33[_0x23f7ff('0x2')]};return _0x5069fb;},exports[_0x30090f('0x4')]=function(_0x4c0066,_0x5ed09e){const _0x31747c=_0x30090f;return{'actionid':_0x4c0066[_0x31747c('0x13')],'action':'originate','channel':_0x4c0066[_0x31747c('0x10')],'Exten':_0x31747c('0x5'),'Context':_0x31747c('0x3'),'Priority':'1','callerid':util[_0x31747c('0xa')](_0x31747c('0x1'),_0x4c0066[_0x31747c('0x12')]?_0x4c0066[_0x31747c('0x12')]:'',_0x4c0066[_0x31747c('0xc')]),'variable':_0x5ed09e,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x4c0066['uniqueid']};}; \ No newline at end of file diff --git a/server/services/ami/index.js b/server/services/ami/index.js index d866513..8be60d2 100644 --- a/server/services/ami/index.js +++ b/server/services/ami/index.js @@ -1 +1 @@ -const a1064_0x4032=['moment','getTelephones','getFaxAccounts','initCampaigns','sync','./rpc/integrations/dynamics365','initDeskAccounts','initVoiceQueueHopperHistory','initTrunks','getAgents','initVoiceQueues','./rpc/integrations/desk','./rpc/voiceQueue','./report','initZendeskAccounts','initServicenowAccounts','getVoiceCallReports','initFaxAccounts','./realtime','getZendeskAccounts','initVoiceExtensions','getSalesforceAccounts','getDeskAccounts','getFreshsalesAccounts','./rpc/campaign','./rpc/integrations/vtiger','initZohoAccounts','initTriggers','./rpc/trunk','./rpc/integrations/zoho','getFreshdeskAccounts','getVoiceQueueReports','getVoiceQueueHopperHistory','initTemplates','./rpc/integrations/salesforce','./fax','getServicenowAccounts','./rpc/template','./rpc/faxAccount','getCampaignHopperHistory','./rpc/cmHopperHistory','./rpc/integrations/sugarcrm','initVoiceQueueReports','getTemplates','initCampaignHopperHistory','log','./rpc/integrations/servicenow','./rpc/user','catch','resolve','getCampaigns','getZohoAccounts','initDynamics365Accounts','getDynamics365Accounts','getVtigerAccounts','getSugarcrmAccounts','./rpc/voiceQueueReport','hour','listen','get','then','initVtigerAccounts','initFreshdeskAccounts'];(function(_0xd5e9e4,_0x403221){const _0x59397c=function(_0x2b834e){while(--_0x2b834e){_0xd5e9e4['push'](_0xd5e9e4['shift']());}};_0x59397c(++_0x403221);}(a1064_0x4032,0xe8));const a1064_0x5939=function(_0xd5e9e4,_0x403221){_0xd5e9e4=_0xd5e9e4-0x0;let _0x59397c=a1064_0x4032[_0xd5e9e4];return _0x59397c;};const _0x3c7e7d=a1064_0x5939;'use strict';require('../../globals');const moment=require(_0x3c7e7d('0x14')),server=require('./server'),Realtime=require(_0x3c7e7d('0x26')),Report=require(_0x3c7e7d('0x21')),Preview=require('./preview'),Fax=require(_0x3c7e7d('0x37')),user=require(_0x3c7e7d('0x4')),voiceQueue=require(_0x3c7e7d('0x20')),voiceQueueReport=require(_0x3c7e7d('0xd')),voiceCallReport=require('./rpc/voiceCallReport'),trunk=require(_0x3c7e7d('0x30')),trigger=require('./rpc/trigger'),template=require(_0x3c7e7d('0x39')),cmHopperHistory=require(_0x3c7e7d('0x3c')),campaign=require(_0x3c7e7d('0x2c')),voiceExtension=require('./rpc/voiceExtension'),faxAccount=require(_0x3c7e7d('0x3a')),zendesk=require('./rpc/integrations/zendesk'),salesforce=require(_0x3c7e7d('0x36')),sugarcrm=require(_0x3c7e7d('0x3d')),freshdesk=require('./rpc/integrations/freshdesk'),desk=require(_0x3c7e7d('0x1f')),zoho=require(_0x3c7e7d('0x31')),vtiger=require(_0x3c7e7d('0x2d')),freshsales=require('./rpc/integrations/freshsales'),servicenow=require(_0x3c7e7d('0x3')),dynamics365=require(_0x3c7e7d('0x19')),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x41dc15=_0x3c7e7d;moment()[_0x41dc15('0x10')](_0x41dc15('0xe'))===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()[_0x41dc15('0x10')](_0x41dc15('0xe'))===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x168713=_0x3c7e7d;return ifMidnight(),Promise['resolve']()[_0x168713('0x11')](user[_0x168713('0x1d')]())[_0x168713('0x11')](realtime['initAgents']())[_0x168713('0x11')](user[_0x168713('0x15')]())[_0x168713('0x11')](realtime['initTelephones']())[_0x168713('0x11')](trunk['getTrunks']())['then'](realtime[_0x168713('0x1c')]())[_0x168713('0x11')](voiceQueue['getVoiceQueues']())[_0x168713('0x11')](realtime[_0x168713('0x1e')]())['then'](trigger['getTriggers']())[_0x168713('0x11')](realtime[_0x168713('0x2f')]())[_0x168713('0x11')](template[_0x168713('0x0')]())['then'](realtime[_0x168713('0x35')]())[_0x168713('0x11')](zendesk[_0x168713('0x27')]())[_0x168713('0x11')](realtime[_0x168713('0x22')]())['then'](salesforce[_0x168713('0x29')]())[_0x168713('0x11')](realtime['initSalesforceAccounts']())[_0x168713('0x11')](sugarcrm[_0x168713('0xc')]())[_0x168713('0x11')](realtime['initSugarcrmAccounts']())[_0x168713('0x11')](freshdesk[_0x168713('0x32')]())[_0x168713('0x11')](realtime[_0x168713('0x13')]())['then'](desk[_0x168713('0x2a')]())[_0x168713('0x11')](realtime[_0x168713('0x1a')]())[_0x168713('0x11')](zoho[_0x168713('0x8')]())[_0x168713('0x11')](realtime[_0x168713('0x2e')]())[_0x168713('0x11')](vtiger[_0x168713('0xb')]())[_0x168713('0x11')](realtime[_0x168713('0x12')]())[_0x168713('0x11')](freshsales[_0x168713('0x2b')]())[_0x168713('0x11')](realtime['initFreshsalesAccounts']())[_0x168713('0x11')](servicenow[_0x168713('0x38')]())['then'](realtime[_0x168713('0x23')]())[_0x168713('0x11')](dynamics365[_0x168713('0xa')]())[_0x168713('0x11')](realtime[_0x168713('0x9')]())['then'](campaign[_0x168713('0x7')]())[_0x168713('0x11')](realtime[_0x168713('0x17')]())[_0x168713('0x11')](voiceExtension['getVoiceExtensions']())[_0x168713('0x11')](realtime[_0x168713('0x28')]())['then'](faxAccount[_0x168713('0x16')]())[_0x168713('0x11')](realtime[_0x168713('0x25')]())[_0x168713('0x11')](function(){return realtime;});}function initParams(){const _0x5e5216=_0x3c7e7d;return Promise[_0x5e5216('0x6')]()['then'](voiceQueueReport[_0x5e5216('0x33')]())[_0x5e5216('0x11')](realtime[_0x5e5216('0x3e')]())[_0x5e5216('0x11')](cmHopperHistory[_0x5e5216('0x34')]())[_0x5e5216('0x11')](realtime[_0x5e5216('0x1b')]())[_0x5e5216('0x11')](cmHopperHistory[_0x5e5216('0x3b')]())[_0x5e5216('0x11')](realtime[_0x5e5216('0x1')]())[_0x5e5216('0x11')](voiceCallReport[_0x5e5216('0x24')]())[_0x5e5216('0x11')](realtime['initVoiceCallReports']())['then'](function(){})[_0x5e5216('0x5')](function(_0x2b834e){console['log'](_0x2b834e);});}function main(){const _0x286fe0=_0x3c7e7d;return server[_0x286fe0('0xf')](realtime,preview,fax)[_0x286fe0('0x11')](function(){return initRealtime();})[_0x286fe0('0x11')](function(){return initParams();})[_0x286fe0('0x11')](function(){const _0x47f8aa=_0x286fe0;report[_0x47f8aa('0x18')](),setInterval(initRealtime,0x1388);})[_0x286fe0('0x5')](function(_0x29bfad){const _0x2393f6=_0x286fe0;console[_0x2393f6('0x2')](_0x29bfad);});}main(); \ No newline at end of file +const a1064_0x3157=['initDynamics365Accounts','getDeskAccounts','initZohoAccounts','resolve','getServicenowAccounts','./report','./rpc/voiceQueue','getVoiceQueueReports','initCampaignHopperHistory','initTelephones','./rpc/cmHopperHistory','getTelephones','./rpc/campaign','catch','./rpc/voiceCallReport','./rpc/integrations/dynamics365','./fax','sync','hour','initZendeskAccounts','getTemplates','./rpc/user','listen','getSugarcrmAccounts','getFreshdeskAccounts','initVoiceQueueReports','./rpc/trigger','getFaxAccounts','getDynamics365Accounts','./rpc/template','./rpc/voiceExtension','initFreshdeskAccounts','getCampaigns','initTrunks','./rpc/integrations/freshsales','initVoiceQueues','initVoiceQueueHopperHistory','getTriggers','initCampaigns','initServicenowAccounts','./server','get','./rpc/integrations/freshdesk','./preview','initTemplates','then','getZohoAccounts','moment','getCampaignHopperHistory','initSalesforceAccounts','./rpc/integrations/desk','log','initTriggers','./rpc/faxAccount','./rpc/integrations/sugarcrm','getVtigerAccounts','./rpc/integrations/zendesk','./rpc/integrations/zoho','./realtime','initFreshsalesAccounts','./rpc/integrations/servicenow','initSugarcrmAccounts','initFaxAccounts','initVoiceExtensions','getFreshsalesAccounts','getVoiceQueues'];(function(_0x22192d,_0x3157b3){const _0x3d00cf=function(_0x4d7902){while(--_0x4d7902){_0x22192d['push'](_0x22192d['shift']());}};_0x3d00cf(++_0x3157b3);}(a1064_0x3157,0x16f));const a1064_0x3d00=function(_0x22192d,_0x3157b3){_0x22192d=_0x22192d-0x0;let _0x3d00cf=a1064_0x3157[_0x22192d];return _0x3d00cf;};const _0x215185=a1064_0x3d00;'use strict';require('../../globals');const moment=require(_0x215185('0xa')),server=require(_0x215185('0x3')),Realtime=require(_0x215185('0x15')),Report=require(_0x215185('0x22')),Preview=require(_0x215185('0x6')),Fax=require(_0x215185('0x2d')),user=require(_0x215185('0x32')),voiceQueue=require(_0x215185('0x23')),voiceQueueReport=require('./rpc/voiceQueueReport'),voiceCallReport=require(_0x215185('0x2b')),trunk=require('./rpc/trunk'),trigger=require(_0x215185('0x37')),template=require(_0x215185('0x3a')),cmHopperHistory=require(_0x215185('0x27')),campaign=require(_0x215185('0x29')),voiceExtension=require(_0x215185('0x3b')),faxAccount=require(_0x215185('0x10')),zendesk=require(_0x215185('0x13')),salesforce=require('./rpc/integrations/salesforce'),sugarcrm=require(_0x215185('0x11')),freshdesk=require(_0x215185('0x5')),desk=require(_0x215185('0xd')),zoho=require(_0x215185('0x14')),vtiger=require('./rpc/integrations/vtiger'),freshsales=require(_0x215185('0x3f')),servicenow=require(_0x215185('0x17')),dynamics365=require(_0x215185('0x2c')),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x2b8a30=_0x215185;moment()['get']('hour')===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()[_0x2b8a30('0x4')](_0x2b8a30('0x2f'))===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x40c970=_0x215185;return ifMidnight(),Promise[_0x40c970('0x20')]()['then'](user['getAgents']())[_0x40c970('0x8')](realtime['initAgents']())['then'](user[_0x40c970('0x28')]())['then'](realtime[_0x40c970('0x26')]())[_0x40c970('0x8')](trunk['getTrunks']())[_0x40c970('0x8')](realtime[_0x40c970('0x3e')]())['then'](voiceQueue[_0x40c970('0x1c')]())['then'](realtime[_0x40c970('0x40')]())[_0x40c970('0x8')](trigger[_0x40c970('0x0')]())[_0x40c970('0x8')](realtime[_0x40c970('0xf')]())[_0x40c970('0x8')](template[_0x40c970('0x31')]())['then'](realtime[_0x40c970('0x7')]())['then'](zendesk['getZendeskAccounts']())['then'](realtime[_0x40c970('0x30')]())[_0x40c970('0x8')](salesforce['getSalesforceAccounts']())[_0x40c970('0x8')](realtime[_0x40c970('0xc')]())['then'](sugarcrm[_0x40c970('0x34')]())[_0x40c970('0x8')](realtime[_0x40c970('0x18')]())['then'](freshdesk[_0x40c970('0x35')]())[_0x40c970('0x8')](realtime[_0x40c970('0x3c')]())[_0x40c970('0x8')](desk[_0x40c970('0x1e')]())['then'](realtime['initDeskAccounts']())[_0x40c970('0x8')](zoho[_0x40c970('0x9')]())[_0x40c970('0x8')](realtime[_0x40c970('0x1f')]())['then'](vtiger[_0x40c970('0x12')]())[_0x40c970('0x8')](realtime['initVtigerAccounts']())[_0x40c970('0x8')](freshsales[_0x40c970('0x1b')]())['then'](realtime[_0x40c970('0x16')]())[_0x40c970('0x8')](servicenow[_0x40c970('0x21')]())[_0x40c970('0x8')](realtime[_0x40c970('0x2')]())[_0x40c970('0x8')](dynamics365[_0x40c970('0x39')]())[_0x40c970('0x8')](realtime[_0x40c970('0x1d')]())[_0x40c970('0x8')](campaign[_0x40c970('0x3d')]())['then'](realtime[_0x40c970('0x1')]())[_0x40c970('0x8')](voiceExtension['getVoiceExtensions']())[_0x40c970('0x8')](realtime[_0x40c970('0x1a')]())['then'](faxAccount[_0x40c970('0x38')]())[_0x40c970('0x8')](realtime[_0x40c970('0x19')]())[_0x40c970('0x8')](function(){return realtime;});}function initParams(){const _0x2962c3=_0x215185;return Promise[_0x2962c3('0x20')]()[_0x2962c3('0x8')](voiceQueueReport[_0x2962c3('0x24')]())['then'](realtime[_0x2962c3('0x36')]())[_0x2962c3('0x8')](cmHopperHistory['getVoiceQueueHopperHistory']())[_0x2962c3('0x8')](realtime[_0x2962c3('0x41')]())['then'](cmHopperHistory[_0x2962c3('0xb')]())[_0x2962c3('0x8')](realtime[_0x2962c3('0x25')]())['then'](voiceCallReport['getVoiceCallReports']())['then'](realtime['initVoiceCallReports']())['then'](function(){})['catch'](function(_0x4d7902){const _0x12b396=_0x2962c3;console[_0x12b396('0xe')](_0x4d7902);});}function main(){const _0x3da977=_0x215185;return server[_0x3da977('0x33')](realtime,preview,fax)[_0x3da977('0x8')](function(){return initRealtime();})[_0x3da977('0x8')](function(){return initParams();})[_0x3da977('0x8')](function(){const _0x272dff=_0x3da977;report[_0x272dff('0x2e')](),setInterval(initRealtime,0x1388);})[_0x3da977('0x2a')](function(_0x25bc00){const _0x4ca501=_0x3da977;console[_0x4ca501('0xe')](_0x25bc00);});}main(); \ No newline at end of file diff --git a/server/services/ami/model/agent.js b/server/services/ami/model/agent.js index a5de5fd..a4f2b34 100644 --- a/server/services/ami/model/agent.js +++ b/server/services/ami/model/agent.js @@ -1 +1 @@ -const a1065_0x306d=['fullname','email','talking','exports','toNumber','accountcode','user:%s','state','unknown','statePause','name','inuse','voiceStatusCallerIdNumber','idle','toLowerCase','onhold','user:save','format','voiceStatus','stringify','address','voiceStatusTime','status','interface','stateTime','local','online','md5','prototype','lodash','voiceStatusQueue','emit','util','updateStatusRealtime'];(function(_0x36bcfa,_0x306def){const _0x259b00=function(_0x5389b7){while(--_0x5389b7){_0x36bcfa['push'](_0x36bcfa['shift']());}};_0x259b00(++_0x306def);}(a1065_0x306d,0x10e));const a1065_0x259b=function(_0x36bcfa,_0x306def){_0x36bcfa=_0x36bcfa-0x0;let _0x259b00=a1065_0x306d[_0x36bcfa];return _0x259b00;};const _0x42dd07=a1065_0x259b;'use strict';const _=require(_0x42dd07('0x1f')),util=require(_0x42dd07('0x0')),moment=require('moment'),md5=require(_0x42dd07('0x1d')),{getSocket}=require('../../../rediscache'),io=getSocket();function Agent(_0x5389b7){const _0x2403d0=_0x42dd07;this['id']=_0x5389b7['id']||0x0,this[_0x2403d0('0xc')]=_0x5389b7[_0x2403d0('0xc')]||'',this['email']=_0x5389b7[_0x2403d0('0x3')]||'',this['accountcode']=_0x5389b7[_0x2403d0('0x7')]||'',this['fullname']=_0x5389b7[_0x2403d0('0x2')]||'',this[_0x2403d0('0x9')]=_0x2403d0('0xa'),this[_0x2403d0('0x1a')]=0x0,this[_0x2403d0('0x18')]=_0x2403d0('0xa'),this[_0x2403d0('0x16')]='',this['phone']='',this['mobile']='',this['interface']='',this[_0x2403d0('0x1c')]=_0x5389b7['online']||![],this[_0x2403d0('0x14')]=_0x2403d0('0xa'),this['voiceStatusTime']=0x0,this[_0x2403d0('0xe')]='',this[_0x2403d0('0x20')]='',this[_0x2403d0('0x11')]=![],this[_0x2403d0('0x1b')]=![],this[_0x2403d0('0x1d')]='';}Agent[_0x42dd07('0x1e')][_0x42dd07('0x1')]=function(_0x239d21){const _0x9d5ed6=_0x42dd07;let _0x312b97;if(_0x239d21&&_0x239d21['state']){_0x312b97=_0x239d21[_0x9d5ed6('0x9')][_0x9d5ed6('0x10')]();switch(_0x312b97){case'not_inuse':_0x312b97=_0x9d5ed6('0xf');break;case _0x9d5ed6('0xd'):_0x312b97=_0x9d5ed6('0x4');break;}}(_0x312b97&&this[_0x9d5ed6('0x14')]!==_0x312b97||_0x239d21[_0x9d5ed6('0xb')])&&(this[_0x9d5ed6('0x17')]=_[_0x9d5ed6('0x6')](moment()[_0x9d5ed6('0x13')]('x')));_0x312b97&&(this['voiceStatus']=_0x312b97);const _0x17618d={'id':this['id'],'name':this[_0x9d5ed6('0xc')],'email':this[_0x9d5ed6('0x3')],'accountcode':this[_0x9d5ed6('0x7')],'fullname':this[_0x9d5ed6('0x2')],'state':this[_0x9d5ed6('0x9')],'stateTime':this[_0x9d5ed6('0x1a')],'status':this[_0x9d5ed6('0x18')],'address':this[_0x9d5ed6('0x16')],'online':this['online'],'voiceStatus':this[_0x9d5ed6('0x14')],'voiceStatusTime':this[_0x9d5ed6('0x17')],'voiceStatusCallerIdNumber':this['voiceStatusCallerIdNumber'],'voiceStatusQueue':this[_0x9d5ed6('0x20')],'interface':this[_0x9d5ed6('0x19')],'onhold':this[_0x9d5ed6('0x11')]},_0x6cbe94=md5(JSON[_0x9d5ed6('0x15')](_0x17618d));this[_0x9d5ed6('0x1d')]!==_0x6cbe94&&(this[_0x9d5ed6('0x1d')]=_0x6cbe94,io['to'](util[_0x9d5ed6('0x13')](_0x9d5ed6('0x8'),_0x17618d[_0x9d5ed6('0xc')]))[_0x9d5ed6('0x21')](_0x9d5ed6('0x12'),_0x17618d));},module[_0x42dd07('0x5')]=Agent; \ No newline at end of file +const a1065_0x57dd=['prototype','talking','md5','unknown','accountcode','moment','updateStatusRealtime','email','status','format','voiceStatus','voiceStatusCallerIdNumber','stateTime','stringify','voiceStatusQueue','user:%s','statePause','toNumber','voiceStatusTime','fullname','interface','state','not_inuse','address','online','exports','toLowerCase','util','mobile','user:save','onhold','name'];(function(_0x2dedcc,_0x57dd21){const _0x43497b=function(_0x3f4537){while(--_0x3f4537){_0x2dedcc['push'](_0x2dedcc['shift']());}};_0x43497b(++_0x57dd21);}(a1065_0x57dd,0x1ea));const a1065_0x4349=function(_0x2dedcc,_0x57dd21){_0x2dedcc=_0x2dedcc-0x0;let _0x43497b=a1065_0x57dd[_0x2dedcc];return _0x43497b;};const _0x5d2662=a1065_0x4349;'use strict';const _=require('lodash'),util=require(_0x5d2662('0x11')),moment=require(_0x5d2662('0x1b')),md5=require(_0x5d2662('0x18')),{getSocket}=require('../../../rediscache'),io=getSocket();function Agent(_0x3f4537){const _0x2d6d5b=_0x5d2662;this['id']=_0x3f4537['id']||0x0,this['name']=_0x3f4537[_0x2d6d5b('0x15')]||'',this['email']=_0x3f4537[_0x2d6d5b('0x1d')]||'',this[_0x2d6d5b('0x1a')]=_0x3f4537['accountcode']||'',this[_0x2d6d5b('0x9')]=_0x3f4537[_0x2d6d5b('0x9')]||'',this[_0x2d6d5b('0xb')]=_0x2d6d5b('0x19'),this[_0x2d6d5b('0x2')]=0x0,this[_0x2d6d5b('0x1e')]='unknown',this[_0x2d6d5b('0xd')]='',this['phone']='',this[_0x2d6d5b('0x12')]='',this[_0x2d6d5b('0xa')]='',this[_0x2d6d5b('0xe')]=_0x3f4537[_0x2d6d5b('0xe')]||![],this[_0x2d6d5b('0x0')]=_0x2d6d5b('0x19'),this['voiceStatusTime']=0x0,this[_0x2d6d5b('0x1')]='',this[_0x2d6d5b('0x4')]='',this[_0x2d6d5b('0x14')]=![],this['local']=![],this[_0x2d6d5b('0x18')]='';}Agent[_0x5d2662('0x16')][_0x5d2662('0x1c')]=function(_0x3fea24){const _0x11308b=_0x5d2662;let _0x4cfe70;if(_0x3fea24&&_0x3fea24['state']){_0x4cfe70=_0x3fea24[_0x11308b('0xb')][_0x11308b('0x10')]();switch(_0x4cfe70){case _0x11308b('0xc'):_0x4cfe70='idle';break;case'inuse':_0x4cfe70=_0x11308b('0x17');break;}}(_0x4cfe70&&this[_0x11308b('0x0')]!==_0x4cfe70||_0x3fea24[_0x11308b('0x6')])&&(this[_0x11308b('0x8')]=_[_0x11308b('0x7')](moment()[_0x11308b('0x1f')]('x')));_0x4cfe70&&(this[_0x11308b('0x0')]=_0x4cfe70);const _0x202a39={'id':this['id'],'name':this['name'],'email':this['email'],'accountcode':this[_0x11308b('0x1a')],'fullname':this[_0x11308b('0x9')],'state':this[_0x11308b('0xb')],'stateTime':this[_0x11308b('0x2')],'status':this['status'],'address':this[_0x11308b('0xd')],'online':this[_0x11308b('0xe')],'voiceStatus':this[_0x11308b('0x0')],'voiceStatusTime':this[_0x11308b('0x8')],'voiceStatusCallerIdNumber':this['voiceStatusCallerIdNumber'],'voiceStatusQueue':this['voiceStatusQueue'],'interface':this[_0x11308b('0xa')],'onhold':this['onhold']},_0x41d19b=md5(JSON[_0x11308b('0x3')](_0x202a39));this[_0x11308b('0x18')]!==_0x41d19b&&(this[_0x11308b('0x18')]=_0x41d19b,io['to'](util['format'](_0x11308b('0x5'),_0x202a39['name']))['emit'](_0x11308b('0x13'),_0x202a39));},module[_0x5d2662('0xf')]=Agent; \ No newline at end of file diff --git a/server/services/ami/model/campaign.js b/server/services/ami/model/campaign.js index a502b83..3e3b68c 100644 --- a/server/services/ami/model/campaign.js +++ b/server/services/ami/model/campaign.js @@ -1 +1 @@ -var a1066_0x1b25=['dialGlobalInterval','dialAMDMinWordLength','dialAMDSilenceThreshold','dialNoAnswerRetryFrequency','dialCongestionRetryFrequency','limitCalls','dialAMDBetweenWordsSilence','dialAMDMaximumWordLength','dialGlobalMaxRetry','message','dialDropMaxRetry','dialAbandonedRetryFrequency','dialNoSuchNumberMaxRetry','dialOriginateTimeout','dialTimezone','dialNoSuchNumberRetryFrequency','ivrAnswerCallsDay','dialBusyMaxRetry','dialAMDGreeting','sendMessageOneNotActive','dialMachineMaxRetry','dialAMDAfterGreetingSilence','dialNoAnswerMaxRetry','Interval','dialAgentRejectMaxRetry','dialAMDTotalAnalysisTime','Trunk','originated','dialAMDActive','dialAbandonedMaxRetry','dialBusyRetryFrequency','exports','SquareProject','dialCongestionMaxRetry','dialRandomLastDigitCallerIdNumber','temp','dialAMDMaximumNumberOfWords','dialCutDigit','name','type','campaign','TrunkBackup','active','dialDropRetryFrequency','dialOriginateCallerIdName','DESC','dialOrderByScheduledAt','dialOriginateCallerIdNumber','dialMachineRetryFrequency','dialAgentRejectRetryFrequency'];(function(_0x362764,_0x1b25b0){var _0x32d14b=function(_0x98f62a){while(--_0x98f62a){_0x362764['push'](_0x362764['shift']());}};_0x32d14b(++_0x1b25b0);}(a1066_0x1b25,0x153));var a1066_0x32d1=function(_0x362764,_0x1b25b0){_0x362764=_0x362764-0x0;var _0x32d14b=a1066_0x1b25[_0x362764];return _0x32d14b;};var _0x4fc0c8=a1066_0x32d1;'use strict';function Campaign(_0x98f62a){var _0x2a5678=a1066_0x32d1;this['id']=_0x98f62a['id']||0x0,this[_0x2a5678('0x31')]=_0x98f62a[_0x2a5678('0x31')]||'',this[_0x2a5678('0x0')]=_0x98f62a['type']||_0x2a5678('0x1'),this[_0x2a5678('0x26')]=0x0,this[_0x2a5678('0x2e')]=0x0,this[_0x2a5678('0x1b')]=0x0,this['ivrTotalCallsDays']=0x0,this[_0x2a5678('0x14')]='',this[_0x2a5678('0x1e')]=!![],this[_0x2a5678('0x3')]=_0x98f62a['active'],this[_0x2a5678('0x10')]=_0x98f62a[_0x2a5678('0x10')],this[_0x2a5678('0x19')]=_0x98f62a[_0x2a5678('0x19')]||null,this['dialGlobalInterval']=_0x98f62a[_0x2a5678('0xb')]?_0x98f62a[_0x2a5678('0xb')]:null,this[_0x2a5678('0x5')]=_0x98f62a[_0x2a5678('0x5')],this[_0x2a5678('0x8')]=_0x98f62a[_0x2a5678('0x8')],this[_0x2a5678('0x18')]=_0x98f62a[_0x2a5678('0x18')]||0x1e,this[_0x2a5678('0x2c')]=_0x98f62a[_0x2a5678('0x2c')],this[_0x2a5678('0xf')]=_0x98f62a['dialCongestionRetryFrequency'],this[_0x2a5678('0x1c')]=_0x98f62a[_0x2a5678('0x1c')],this[_0x2a5678('0x29')]=_0x98f62a['dialBusyRetryFrequency'],this[_0x2a5678('0x21')]=_0x98f62a[_0x2a5678('0x21')],this[_0x2a5678('0xe')]=_0x98f62a[_0x2a5678('0xe')],this[_0x2a5678('0x13')]=_0x98f62a[_0x2a5678('0x13')],this[_0x2a5678('0x17')]=_0x98f62a[_0x2a5678('0x17')]||0x3,this[_0x2a5678('0x1a')]=_0x98f62a[_0x2a5678('0x1a')]||0x96,this['dialDropMaxRetry']=_0x98f62a[_0x2a5678('0x15')]||0x3,this[_0x2a5678('0x4')]=_0x98f62a['dialDropRetryFrequency']||0x96,this['dialAbandonedMaxRetry']=_0x98f62a[_0x2a5678('0x28')]||0x3,this[_0x2a5678('0x16')]=_0x98f62a['dialAbandonedRetryFrequency']||0x96,this[_0x2a5678('0x1f')]=_0x98f62a[_0x2a5678('0x1f')]||0x3,this['dialMachineRetryFrequency']=_0x98f62a[_0x2a5678('0x9')]||0x96,this[_0x2a5678('0x23')]=_0x98f62a[_0x2a5678('0x23')]||0x3,this['dialAgentRejectRetryFrequency']=_0x98f62a[_0x2a5678('0xa')]||0x96,this[_0x2a5678('0x7')]=_0x98f62a[_0x2a5678('0x7')]||_0x2a5678('0x6'),this['dialPrefix']=_0x98f62a['dialPrefix']||undefined,this['dialRandomLastDigitCallerIdNumber']=_0x98f62a[_0x2a5678('0x2d')]||undefined,this[_0x2a5678('0x30')]=_0x98f62a['dialCutDigit']||undefined,this[_0x2a5678('0x2')]=_0x98f62a['TrunkBackup']?_0x98f62a['TrunkBackup']:undefined,this[_0x2a5678('0x25')]=_0x98f62a[_0x2a5678('0x25')]?_0x98f62a[_0x2a5678('0x25')]:undefined,this[_0x2a5678('0x22')]=_0x98f62a[_0x2a5678('0x22')]?_0x98f62a[_0x2a5678('0x22')]:undefined,this[_0x2a5678('0x2b')]=_0x98f62a[_0x2a5678('0x2b')]?_0x98f62a[_0x2a5678('0x2b')]:undefined,this['dialQueueProject']=_0x98f62a['SquareProject']?_0x98f62a[_0x2a5678('0x2b')][_0x2a5678('0x31')]:undefined,this[_0x2a5678('0x27')]=_0x98f62a['dialAMDActive']||![],this['dialAMDInitialSilence']=_0x98f62a['dialAMDInitialSilence'],this[_0x2a5678('0x1d')]=_0x98f62a[_0x2a5678('0x1d')],this[_0x2a5678('0x20')]=_0x98f62a[_0x2a5678('0x20')],this[_0x2a5678('0x24')]=_0x98f62a[_0x2a5678('0x24')],this[_0x2a5678('0xc')]=_0x98f62a[_0x2a5678('0xc')],this[_0x2a5678('0x11')]=_0x98f62a[_0x2a5678('0x11')],this[_0x2a5678('0x2f')]=_0x98f62a[_0x2a5678('0x2f')],this[_0x2a5678('0xd')]=_0x98f62a[_0x2a5678('0xd')],this[_0x2a5678('0x12')]=_0x98f62a[_0x2a5678('0x12')];}module[_0x4fc0c8('0x2a')]=Campaign; \ No newline at end of file +var a1066_0x2005=['dialMachineMaxRetry','Interval','dialOrderByScheduledAt','Trunk','sendMessageOneNotActive','dialQueueProject','dialCongestionRetryFrequency','dialAMDAfterGreetingSilence','dialGlobalMaxRetry','dialDropRetryFrequency','dialNoSuchNumberRetryFrequency','dialAMDGreeting','dialRandomLastDigitCallerIdNumber','dialCutDigit','exports','ivrAnswerCallsDay','dialAgentRejectMaxRetry','dialGlobalInterval','ivrTotalCallsDays','dialCongestionMaxRetry','message','dialAMDSilenceThreshold','temp','dialAMDMaximumNumberOfWords','dialAgentRejectRetryFrequency','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','dialBusyRetryFrequency','name','type','dialMachineRetryFrequency','SquareProject','dialAMDActive','dialAMDMaximumWordLength','dialOriginateCallerIdNumber','dialAbandonedMaxRetry','TrunkBackup','dialDropMaxRetry','dialTimezone','limitCalls','dialPrefix','dialAMDMinWordLength','DESC','dialOriginateTimeout','dialAbandonedRetryFrequency','dialAMDInitialSilence','dialBusyMaxRetry'];(function(_0x38a161,_0x2005b4){var _0x58b043=function(_0x4df365){while(--_0x4df365){_0x38a161['push'](_0x38a161['shift']());}};_0x58b043(++_0x2005b4);}(a1066_0x2005,0x10c));var a1066_0x58b0=function(_0x38a161,_0x2005b4){_0x38a161=_0x38a161-0x0;var _0x58b043=a1066_0x2005[_0x38a161];return _0x58b043;};var _0xbc71d9=a1066_0x58b0;'use strict';function Campaign(_0x4df365){var _0x2fcbbe=a1066_0x58b0;this['id']=_0x4df365['id']||0x0,this['name']=_0x4df365['name']||'',this[_0x2fcbbe('0x2b')]=_0x4df365[_0x2fcbbe('0x2b')]||'campaign',this['originated']=0x0,this[_0x2fcbbe('0x24')]=0x0,this[_0x2fcbbe('0x1d')]=0x0,this[_0x2fcbbe('0x20')]=0x0,this[_0x2fcbbe('0x22')]='',this[_0x2fcbbe('0x12')]=!![],this['active']=_0x4df365['active'],this[_0x2fcbbe('0x6')]=_0x4df365[_0x2fcbbe('0x6')],this[_0x2fcbbe('0x5')]=_0x4df365[_0x2fcbbe('0x5')]||null,this[_0x2fcbbe('0x1f')]=_0x4df365[_0x2fcbbe('0x1f')]?_0x4df365['dialGlobalInterval']:null,this['dialOriginateCallerIdName']=_0x4df365['dialOriginateCallerIdName'],this['dialOriginateCallerIdNumber']=_0x4df365[_0x2fcbbe('0x1')],this[_0x2fcbbe('0xa')]=_0x4df365[_0x2fcbbe('0xa')]||0x1e,this['dialCongestionMaxRetry']=_0x4df365[_0x2fcbbe('0x21')],this[_0x2fcbbe('0x14')]=_0x4df365[_0x2fcbbe('0x14')],this[_0x2fcbbe('0xd')]=_0x4df365[_0x2fcbbe('0xd')],this[_0x2fcbbe('0x29')]=_0x4df365['dialBusyRetryFrequency'],this[_0x2fcbbe('0x27')]=_0x4df365[_0x2fcbbe('0x27')],this[_0x2fcbbe('0x28')]=_0x4df365[_0x2fcbbe('0x28')],this[_0x2fcbbe('0x16')]=_0x4df365[_0x2fcbbe('0x16')],this['dialNoSuchNumberMaxRetry']=_0x4df365['dialNoSuchNumberMaxRetry']||0x3,this['dialNoSuchNumberRetryFrequency']=_0x4df365[_0x2fcbbe('0x18')]||0x96,this[_0x2fcbbe('0x4')]=_0x4df365[_0x2fcbbe('0x4')]||0x3,this[_0x2fcbbe('0x17')]=_0x4df365['dialDropRetryFrequency']||0x96,this[_0x2fcbbe('0x2')]=_0x4df365[_0x2fcbbe('0x2')]||0x3,this[_0x2fcbbe('0xb')]=_0x4df365['dialAbandonedRetryFrequency']||0x96,this[_0x2fcbbe('0xe')]=_0x4df365[_0x2fcbbe('0xe')]||0x3,this[_0x2fcbbe('0x2c')]=_0x4df365[_0x2fcbbe('0x2c')]||0x96,this[_0x2fcbbe('0x1e')]=_0x4df365[_0x2fcbbe('0x1e')]||0x3,this[_0x2fcbbe('0x26')]=_0x4df365[_0x2fcbbe('0x26')]||0x96,this[_0x2fcbbe('0x10')]=_0x4df365[_0x2fcbbe('0x10')]||_0x2fcbbe('0x9'),this[_0x2fcbbe('0x7')]=_0x4df365[_0x2fcbbe('0x7')]||undefined,this[_0x2fcbbe('0x1a')]=_0x4df365['dialRandomLastDigitCallerIdNumber']||undefined,this[_0x2fcbbe('0x1b')]=_0x4df365[_0x2fcbbe('0x1b')]||undefined,this[_0x2fcbbe('0x3')]=_0x4df365['TrunkBackup']?_0x4df365[_0x2fcbbe('0x3')]:undefined,this[_0x2fcbbe('0x11')]=_0x4df365[_0x2fcbbe('0x11')]?_0x4df365[_0x2fcbbe('0x11')]:undefined,this[_0x2fcbbe('0xf')]=_0x4df365[_0x2fcbbe('0xf')]?_0x4df365[_0x2fcbbe('0xf')]:undefined,this[_0x2fcbbe('0x2d')]=_0x4df365[_0x2fcbbe('0x2d')]?_0x4df365[_0x2fcbbe('0x2d')]:undefined,this[_0x2fcbbe('0x13')]=_0x4df365['SquareProject']?_0x4df365[_0x2fcbbe('0x2d')][_0x2fcbbe('0x2a')]:undefined,this[_0x2fcbbe('0x2e')]=_0x4df365['dialAMDActive']||![],this[_0x2fcbbe('0xc')]=_0x4df365[_0x2fcbbe('0xc')],this[_0x2fcbbe('0x19')]=_0x4df365[_0x2fcbbe('0x19')],this[_0x2fcbbe('0x15')]=_0x4df365[_0x2fcbbe('0x15')],this['dialAMDTotalAnalysisTime']=_0x4df365['dialAMDTotalAnalysisTime'],this[_0x2fcbbe('0x8')]=_0x4df365[_0x2fcbbe('0x8')],this['dialAMDBetweenWordsSilence']=_0x4df365['dialAMDBetweenWordsSilence'],this[_0x2fcbbe('0x25')]=_0x4df365[_0x2fcbbe('0x25')],this[_0x2fcbbe('0x23')]=_0x4df365[_0x2fcbbe('0x23')],this[_0x2fcbbe('0x0')]=_0x4df365['dialAMDMaximumWordLength'];}module[_0xbc71d9('0x1c')]=Campaign; \ No newline at end of file diff --git a/server/services/ami/model/channel.js b/server/services/ami/model/channel.js index 2b575e7..63a2c83 100644 --- a/server/services/ami/model/channel.js +++ b/server/services/ami/model/channel.js @@ -1 +1 @@ -var a1067_0x3c05=['mohtime','endtime','unmanaged','calleridnum','answered','billableseconds','accountcode','disposition','starttime','calleridname','monitors','type','monitorFilename','lastdata','answertime','holdtime','duration','transfercalleridnum','transferconnectedlinenum','channel','exten','monitor'];(function(_0x15a2df,_0x3c05ce){var _0x5342de=function(_0x186212){while(--_0x186212){_0x15a2df['push'](_0x15a2df['shift']());}};_0x5342de(++_0x3c05ce);}(a1067_0x3c05,0x78));var a1067_0x5342=function(_0x15a2df,_0x3c05ce){_0x15a2df=_0x15a2df-0x0;var _0x5342de=a1067_0x3c05[_0x15a2df];return _0x5342de;};'use strict';function Channel(){var _0xdd967e=a1067_0x5342;this[_0xdd967e('0x14')]=null,this[_0xdd967e('0x9')]='',this['destinationchannel']='',this[_0xdd967e('0xf')]=0x0,this[_0xdd967e('0x15')]='',this['connectedlinenum']=undefined,this['connectedlinename']=undefined,this[_0xdd967e('0x12')]=0x0,this['context']='',this['uniqueid']=0x0,this['linkedid']=0x0,this[_0xdd967e('0xa')]=0x0,this[_0xdd967e('0x10')]=![],this[_0xdd967e('0x4')]=null,this[_0xdd967e('0xd')]=null,this[_0xdd967e('0xe')]=![],this['abandoned']=![],this['lastapplication']='',this[_0xdd967e('0x3')]='',this[_0xdd967e('0x6')]=0x0,this[_0xdd967e('0x11')]=0x0,this[_0xdd967e('0x5')]=0x0,this[_0xdd967e('0x1')]=null,this['tag']=null,this[_0xdd967e('0x13')]=null,this[_0xdd967e('0xb')]=![],this[_0xdd967e('0x2')]=null,this['queue']=null,this[_0xdd967e('0x0')]=[],this[_0xdd967e('0x7')]=undefined,this[_0xdd967e('0x8')]=undefined,this[_0xdd967e('0xc')]=0x0;}module['exports']=Channel; \ No newline at end of file +var a1067_0x4792=['calleridnum','accountcode','monitorFilename','connectedlinename','exports','exten','transferconnectedlinenum','linkedid','duration','transfercalleridnum','unmanaged','connectedlinenum','uniqueid','lastdata','answertime','tag','lastapplication','disposition','mohtime','abandoned','answered','calleridname','monitors'];(function(_0x12d2e3,_0x479238){var _0x5035f8=function(_0x53f1c0){while(--_0x53f1c0){_0x12d2e3['push'](_0x12d2e3['shift']());}};_0x5035f8(++_0x479238);}(a1067_0x4792,0x12e));var a1067_0x5035=function(_0x12d2e3,_0x479238){_0x12d2e3=_0x12d2e3-0x0;var _0x5035f8=a1067_0x4792[_0x12d2e3];return _0x5035f8;};var _0x4b08a1=a1067_0x5035;'use strict';function Channel(){var _0x5d4a9c=a1067_0x5035;this['starttime']=null,this['channel']='',this['destinationchannel']='',this[_0x5d4a9c('0x14')]=0x0,this[_0x5d4a9c('0x12')]='',this[_0x5d4a9c('0x8')]=undefined,this[_0x5d4a9c('0x0')]=undefined,this[_0x5d4a9c('0x15')]=0x0,this['context']='',this[_0x5d4a9c('0x9')]=0x0,this[_0x5d4a9c('0x4')]=0x0,this[_0x5d4a9c('0x2')]=0x0,this[_0x5d4a9c('0x11')]=![],this[_0x5d4a9c('0xb')]=null,this['endtime']=null,this[_0x5d4a9c('0x7')]=![],this[_0x5d4a9c('0x10')]=![],this[_0x5d4a9c('0xd')]='',this[_0x5d4a9c('0xa')]='',this[_0x5d4a9c('0x5')]=0x0,this['billableseconds']=0x0,this['holdtime']=0x0,this['type']=null,this[_0x5d4a9c('0xc')]=null,this[_0x5d4a9c('0xe')]=null,this['monitor']=![],this[_0x5d4a9c('0x16')]=null,this['queue']=null,this[_0x5d4a9c('0x13')]=[],this[_0x5d4a9c('0x6')]=undefined,this[_0x5d4a9c('0x3')]=undefined,this[_0x5d4a9c('0xf')]=0x0;}module[_0x4b08a1('0x1')]=Channel; \ No newline at end of file diff --git a/server/services/ami/model/deskAccount.js b/server/services/ami/model/deskAccount.js index 8b94a8b..6260eca 100644 --- a/server/services/ami/model/deskAccount.js +++ b/server/services/ami/model/deskAccount.js @@ -1 +1 @@ -var a1068_0x2bf0=['username','exports','password','consumerSecret','serverUrl','name','remoteUri','tokenSecret','token','consumerKey','type','authType','Configurations'];(function(_0x62d7a4,_0x2bf0e2){var _0x2b979c=function(_0x38e573){while(--_0x38e573){_0x62d7a4['push'](_0x62d7a4['shift']());}};_0x2b979c(++_0x2bf0e2);}(a1068_0x2bf0,0x160));var a1068_0x2b97=function(_0x62d7a4,_0x2bf0e2){_0x62d7a4=_0x62d7a4-0x0;var _0x2b979c=a1068_0x2bf0[_0x62d7a4];return _0x2b979c;};var _0x4c0952=a1068_0x2b97;'use strict';function DeskAccount(_0x38e573){var _0x2508a9=a1068_0x2b97;this['id']=_0x38e573['id']||0x0,this[_0x2508a9('0x4')]=_0x38e573[_0x2508a9('0x4')]||'',this[_0x2508a9('0xc')]=_0x38e573[_0x2508a9('0xc')]||'',this[_0x2508a9('0x5')]=_0x38e573[_0x2508a9('0x5')]||'',this[_0x2508a9('0xa')]=_0x38e573['authType']||'',this[_0x2508a9('0x1')]=_0x38e573[_0x2508a9('0x1')]||'',this[_0x2508a9('0x8')]=_0x38e573['consumerKey']||'',this['consumerSecret']=_0x38e573[_0x2508a9('0x2')]||'',this['token']=_0x38e573[_0x2508a9('0x7')]||'',this[_0x2508a9('0x6')]=_0x38e573[_0x2508a9('0x6')]||'',this[_0x2508a9('0x9')]=_0x38e573[_0x2508a9('0x9')]||'',this[_0x2508a9('0x3')]=_0x38e573['serverUrl']||'',this[_0x2508a9('0xb')]=_0x38e573[_0x2508a9('0xb')]||{};}module[_0x4c0952('0x0')]=DeskAccount; \ No newline at end of file +var a1068_0x3e69=['type','name','consumerKey','exports','remoteUri','username','tokenSecret','Configurations','consumerSecret','authType','password','token','serverUrl'];(function(_0x7befc5,_0x3e6974){var _0x5dba85=function(_0x38a79a){while(--_0x38a79a){_0x7befc5['push'](_0x7befc5['shift']());}};_0x5dba85(++_0x3e6974);}(a1068_0x3e69,0xff));var a1068_0x5dba=function(_0x7befc5,_0x3e6974){_0x7befc5=_0x7befc5-0x0;var _0x5dba85=a1068_0x3e69[_0x7befc5];return _0x5dba85;};var _0x2fc8a5=a1068_0x5dba;'use strict';function DeskAccount(_0x38a79a){var _0x1d3bcc=a1068_0x5dba;this['id']=_0x38a79a['id']||0x0,this[_0x1d3bcc('0x6')]=_0x38a79a[_0x1d3bcc('0x6')]||'',this[_0x1d3bcc('0xa')]=_0x38a79a[_0x1d3bcc('0xa')]||'',this[_0x1d3bcc('0x9')]=_0x38a79a[_0x1d3bcc('0x9')]||'',this[_0x1d3bcc('0x1')]=_0x38a79a['authType']||'',this[_0x1d3bcc('0x2')]=_0x38a79a[_0x1d3bcc('0x2')]||'',this[_0x1d3bcc('0x7')]=_0x38a79a[_0x1d3bcc('0x7')]||'',this[_0x1d3bcc('0x0')]=_0x38a79a[_0x1d3bcc('0x0')]||'',this[_0x1d3bcc('0x3')]=_0x38a79a[_0x1d3bcc('0x3')]||'',this[_0x1d3bcc('0xb')]=_0x38a79a[_0x1d3bcc('0xb')]||'',this[_0x1d3bcc('0x5')]=_0x38a79a[_0x1d3bcc('0x5')]||'',this[_0x1d3bcc('0x4')]=_0x38a79a[_0x1d3bcc('0x4')]||'',this[_0x1d3bcc('0xc')]=_0x38a79a[_0x1d3bcc('0xc')]||{};}module[_0x2fc8a5('0x8')]=DeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/dynamics365Account.js b/server/services/ami/model/dynamics365Account.js index 45fe635..cb3d412 100644 --- a/server/services/ami/model/dynamics365Account.js +++ b/server/services/ami/model/dynamics365Account.js @@ -1 +1 @@ -var a1069_0x59ab=['Configurations','remoteUri','exports','tenantId','username','password','clientId','clientSecret','name'];(function(_0x36ea76,_0x59aba6){var _0x42d686=function(_0x2c67d6){while(--_0x2c67d6){_0x36ea76['push'](_0x36ea76['shift']());}};_0x42d686(++_0x59aba6);}(a1069_0x59ab,0x15f));var a1069_0x42d6=function(_0x36ea76,_0x59aba6){_0x36ea76=_0x36ea76-0x0;var _0x42d686=a1069_0x59ab[_0x36ea76];return _0x42d686;};var _0x4a84b8=a1069_0x42d6;'use strict';function Dynamics365Account(_0x2c67d6){var _0x373296=a1069_0x42d6;this['id']=_0x2c67d6['id']||0x0,this[_0x373296('0x8')]=_0x2c67d6[_0x373296('0x8')]||'',this['username']=_0x2c67d6[_0x373296('0x4')]||'',this[_0x373296('0x5')]=_0x2c67d6[_0x373296('0x5')]||'',this[_0x373296('0x1')]=_0x2c67d6['remoteUri']||'',this[_0x373296('0x3')]=_0x2c67d6[_0x373296('0x3')]||'',this[_0x373296('0x6')]=_0x2c67d6[_0x373296('0x6')]||'',this[_0x373296('0x7')]=_0x2c67d6['clientSecret']||{},this['serverUrl']=_0x2c67d6['serverUrl']||'',this['Configurations']=_0x2c67d6[_0x373296('0x0')]||{};}module[_0x4a84b8('0x2')]=Dynamics365Account; \ No newline at end of file +var a1069_0x5757=['Configurations','remoteUri','exports','password','tenantId','name','username','serverUrl','clientSecret','clientId'];(function(_0xad5092,_0x575750){var _0x490204=function(_0x4e7632){while(--_0x4e7632){_0xad5092['push'](_0xad5092['shift']());}};_0x490204(++_0x575750);}(a1069_0x5757,0x184));var a1069_0x4902=function(_0xad5092,_0x575750){_0xad5092=_0xad5092-0x0;var _0x490204=a1069_0x5757[_0xad5092];return _0x490204;};var _0x994179=a1069_0x4902;'use strict';function Dynamics365Account(_0x4e7632){var _0x297b5b=a1069_0x4902;this['id']=_0x4e7632['id']||0x0,this[_0x297b5b('0x7')]=_0x4e7632['name']||'',this[_0x297b5b('0x8')]=_0x4e7632[_0x297b5b('0x8')]||'',this[_0x297b5b('0x5')]=_0x4e7632[_0x297b5b('0x5')]||'',this['remoteUri']=_0x4e7632[_0x297b5b('0x3')]||'',this[_0x297b5b('0x6')]=_0x4e7632[_0x297b5b('0x6')]||'',this['clientId']=_0x4e7632[_0x297b5b('0x1')]||'',this[_0x297b5b('0x0')]=_0x4e7632['clientSecret']||{},this[_0x297b5b('0x9')]=_0x4e7632['serverUrl']||'',this['Configurations']=_0x4e7632[_0x297b5b('0x2')]||{};}module[_0x994179('0x4')]=Dynamics365Account; \ No newline at end of file diff --git a/server/services/ami/model/faxAccount.js b/server/services/ami/model/faxAccount.js index 2de4e79..8e9d5bd 100644 --- a/server/services/ami/model/faxAccount.js +++ b/server/services/ami/model/faxAccount.js @@ -1 +1 @@ -var a1070_0x4de9=['modem','ecm','faxdetect','Trunk','localstationid','t38timeout','key','description','gateway','minrate','name','headerinfo','maxrate'];(function(_0x3640e5,_0x4de9bd){var _0x11ae75=function(_0x57d43b){while(--_0x57d43b){_0x3640e5['push'](_0x3640e5['shift']());}};_0x11ae75(++_0x4de9bd);}(a1070_0x4de9,0x1f3));var a1070_0x11ae=function(_0x3640e5,_0x4de9bd){_0x3640e5=_0x3640e5-0x0;var _0x11ae75=a1070_0x4de9[_0x3640e5];return _0x11ae75;};'use strict';function FaxAccount(_0x57d43b){var _0x12d76c=a1070_0x11ae;this['id']=_0x57d43b['id']||0x0,this[_0x12d76c('0x5')]=_0x57d43b[_0x12d76c('0x5')]||'',this[_0x12d76c('0x2')]=_0x57d43b[_0x12d76c('0x2')],this['ecm']=_0x57d43b[_0x12d76c('0x9')],this[_0x12d76c('0x6')]=_0x57d43b[_0x12d76c('0x6')],this[_0x12d76c('0xc')]=_0x57d43b['localstationid'],this[_0x12d76c('0x4')]=_0x57d43b[_0x12d76c('0x4')]||0x960,this[_0x12d76c('0x7')]=_0x57d43b[_0x12d76c('0x7')]||0x3840,this[_0x12d76c('0x8')]=_0x57d43b['modem']||'v17,v27,v29',this[_0x12d76c('0x3')]=_0x57d43b[_0x12d76c('0x3')]||'no',this['faxdetect']=_0x57d43b[_0x12d76c('0xa')]||'no',this[_0x12d76c('0x0')]=_0x57d43b['t38timeout']||0x1388,this['tech']=_0x57d43b['tech']||'SIP',this[_0x12d76c('0xb')]=_0x57d43b[_0x12d76c('0xb')]?_0x57d43b[_0x12d76c('0xb')]:undefined,this['ListId']=_0x57d43b['ListId'],this[_0x12d76c('0x1')]=_0x57d43b[_0x12d76c('0x1')];}module['exports']=FaxAccount; \ No newline at end of file +var a1070_0xacaf=['v17,v27,v29','tech','name','ecm','t38timeout','description','localstationid','key','ListId','exports','minrate','faxdetect','SIP','headerinfo','modem','Trunk','maxrate'];(function(_0x10ecc3,_0xacaf95){var _0x28ab4c=function(_0x3fc86b){while(--_0x3fc86b){_0x10ecc3['push'](_0x10ecc3['shift']());}};_0x28ab4c(++_0xacaf95);}(a1070_0xacaf,0x100));var a1070_0x28ab=function(_0x10ecc3,_0xacaf95){_0x10ecc3=_0x10ecc3-0x0;var _0x28ab4c=a1070_0xacaf[_0x10ecc3];return _0x28ab4c;};var _0x40194d=a1070_0x28ab;'use strict';function FaxAccount(_0x3fc86b){var _0x1f675a=a1070_0x28ab;this['id']=_0x3fc86b['id']||0x0,this[_0x1f675a('0x1')]=_0x3fc86b[_0x1f675a('0x1')]||'',this[_0x1f675a('0x4')]=_0x3fc86b[_0x1f675a('0x4')],this[_0x1f675a('0x2')]=_0x3fc86b[_0x1f675a('0x2')],this[_0x1f675a('0xc')]=_0x3fc86b[_0x1f675a('0xc')],this[_0x1f675a('0x5')]=_0x3fc86b[_0x1f675a('0x5')],this['minrate']=_0x3fc86b[_0x1f675a('0x9')]||0x960,this[_0x1f675a('0xf')]=_0x3fc86b['maxrate']||0x3840,this[_0x1f675a('0xd')]=_0x3fc86b[_0x1f675a('0xd')]||_0x1f675a('0x10'),this['gateway']=_0x3fc86b['gateway']||'no',this[_0x1f675a('0xa')]=_0x3fc86b[_0x1f675a('0xa')]||'no',this[_0x1f675a('0x3')]=_0x3fc86b[_0x1f675a('0x3')]||0x1388,this[_0x1f675a('0x0')]=_0x3fc86b[_0x1f675a('0x0')]||_0x1f675a('0xb'),this[_0x1f675a('0xe')]=_0x3fc86b[_0x1f675a('0xe')]?_0x3fc86b['Trunk']:undefined,this[_0x1f675a('0x7')]=_0x3fc86b[_0x1f675a('0x7')],this[_0x1f675a('0x6')]=_0x3fc86b[_0x1f675a('0x6')];}module[_0x40194d('0x8')]=FaxAccount; \ No newline at end of file diff --git a/server/services/ami/model/freshdeskAccount.js b/server/services/ami/model/freshdeskAccount.js index 21050cf..4e5f5f3 100644 --- a/server/services/ami/model/freshdeskAccount.js +++ b/server/services/ami/model/freshdeskAccount.js @@ -1 +1 @@ -var a1071_0x4d20=['Configurations','exports','apiKey','serverUrl','name','remoteUri','username'];(function(_0x5b301c,_0x4d2058){var _0x542a02=function(_0x1b4221){while(--_0x1b4221){_0x5b301c['push'](_0x5b301c['shift']());}};_0x542a02(++_0x4d2058);}(a1071_0x4d20,0x1a0));var a1071_0x542a=function(_0x5b301c,_0x4d2058){_0x5b301c=_0x5b301c-0x0;var _0x542a02=a1071_0x4d20[_0x5b301c];return _0x542a02;};var _0x1bb16a=a1071_0x542a;'use strict';function FreshdeskAccount(_0x1b4221){var _0x45b67a=a1071_0x542a;this['id']=_0x1b4221['id']||0x0,this[_0x45b67a('0x1')]=_0x1b4221[_0x45b67a('0x1')]||'',this[_0x45b67a('0x3')]=_0x1b4221[_0x45b67a('0x3')]||'',this[_0x45b67a('0x6')]=_0x1b4221['token']||'',this[_0x45b67a('0x2')]=_0x1b4221[_0x45b67a('0x2')]||'',this['serverUrl']=_0x1b4221[_0x45b67a('0x0')]||'',this[_0x45b67a('0x4')]=_0x1b4221[_0x45b67a('0x4')]||{};}module[_0x1bb16a('0x5')]=FreshdeskAccount; \ No newline at end of file +var a1071_0x56e1=['remoteUri','serverUrl','apiKey','token','Configurations','name','username'];(function(_0x3aae4d,_0x56e18b){var _0x3d0e9b=function(_0x18bceb){while(--_0x18bceb){_0x3aae4d['push'](_0x3aae4d['shift']());}};_0x3d0e9b(++_0x56e18b);}(a1071_0x56e1,0x1f4));var a1071_0x3d0e=function(_0x3aae4d,_0x56e18b){_0x3aae4d=_0x3aae4d-0x0;var _0x3d0e9b=a1071_0x56e1[_0x3aae4d];return _0x3d0e9b;};'use strict';function FreshdeskAccount(_0x18bceb){var _0x32d780=a1071_0x3d0e;this['id']=_0x18bceb['id']||0x0,this[_0x32d780('0x2')]=_0x18bceb[_0x32d780('0x2')]||'',this[_0x32d780('0x3')]=_0x18bceb[_0x32d780('0x3')]||'',this[_0x32d780('0x6')]=_0x18bceb[_0x32d780('0x0')]||'',this[_0x32d780('0x4')]=_0x18bceb[_0x32d780('0x4')]||'',this[_0x32d780('0x5')]=_0x18bceb[_0x32d780('0x5')]||'',this[_0x32d780('0x1')]=_0x18bceb['Configurations']||{};}module['exports']=FreshdeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/freshsalesAccount.js b/server/services/ami/model/freshsalesAccount.js index bd32531..ea34d9f 100644 --- a/server/services/ami/model/freshsalesAccount.js +++ b/server/services/ami/model/freshsalesAccount.js @@ -1 +1 @@ -var a1072_0x18b6=['Configurations','token','exports','serverUrl','username','remoteUri'];(function(_0x449a82,_0x18b6ba){var _0x47c5a5=function(_0x5e49cd){while(--_0x5e49cd){_0x449a82['push'](_0x449a82['shift']());}};_0x47c5a5(++_0x18b6ba);}(a1072_0x18b6,0x14f));var a1072_0x47c5=function(_0x449a82,_0x18b6ba){_0x449a82=_0x449a82-0x0;var _0x47c5a5=a1072_0x18b6[_0x449a82];return _0x47c5a5;};var _0x2c5053=a1072_0x47c5;'use strict';function FreshsalesAccount(_0x5e49cd){var _0x33ae14=a1072_0x47c5;this['id']=_0x5e49cd['id']||0x0,this['name']=_0x5e49cd['name']||'',this[_0x33ae14('0x5')]=_0x5e49cd['username']||'',this['apiKey']=_0x5e49cd[_0x33ae14('0x2')]||'',this['remoteUri']=_0x5e49cd[_0x33ae14('0x0')]||'',this['serverUrl']=_0x5e49cd[_0x33ae14('0x4')]||'',this['Configurations']=_0x5e49cd[_0x33ae14('0x1')]||{};}module[_0x2c5053('0x3')]=FreshsalesAccount; \ No newline at end of file +var a1072_0x138c=['apiKey','remoteUri','serverUrl','username','token','name','Configurations'];(function(_0x155194,_0x138c23){var _0x268073=function(_0x15cd82){while(--_0x15cd82){_0x155194['push'](_0x155194['shift']());}};_0x268073(++_0x138c23);}(a1072_0x138c,0xa0));var a1072_0x2680=function(_0x155194,_0x138c23){_0x155194=_0x155194-0x0;var _0x268073=a1072_0x138c[_0x155194];return _0x268073;};'use strict';function FreshsalesAccount(_0x15cd82){var _0x151cad=a1072_0x2680;this['id']=_0x15cd82['id']||0x0,this[_0x151cad('0x6')]=_0x15cd82['name']||'',this[_0x151cad('0x4')]=_0x15cd82[_0x151cad('0x4')]||'',this[_0x151cad('0x1')]=_0x15cd82[_0x151cad('0x5')]||'',this[_0x151cad('0x2')]=_0x15cd82[_0x151cad('0x2')]||'',this[_0x151cad('0x3')]=_0x15cd82[_0x151cad('0x3')]||'',this[_0x151cad('0x0')]=_0x15cd82[_0x151cad('0x0')]||{};}module['exports']=FreshsalesAccount; \ No newline at end of file diff --git a/server/services/ami/model/queueReport.js b/server/services/ami/model/queueReport.js index 29edf83..0d18377 100644 --- a/server/services/ami/model/queueReport.js +++ b/server/services/ami/model/queueReport.js @@ -1 +1 @@ -var a1073_0x308f=['priority','queuecallerabandon','originalposition','queuecallercomplete','queuecallercompleteAt','position','connectedlinename','accountcode','uniqueid','exten','mohtime','queue','lastAssignedTo','holdtime','calleridnum','context','exports','queuecallerabandonAt','inbound'];(function(_0x5c0827,_0x308f2e){var _0x30cbfd=function(_0x4d0b7b){while(--_0x4d0b7b){_0x5c0827['push'](_0x5c0827['shift']());}};_0x30cbfd(++_0x308f2e);}(a1073_0x308f,0xf2));var a1073_0x30cb=function(_0x5c0827,_0x308f2e){_0x5c0827=_0x5c0827-0x0;var _0x30cbfd=a1073_0x308f[_0x5c0827];return _0x30cbfd;};var _0x3c37c9=a1073_0x30cb;'use strict';function QueueReport(){var _0xebe43c=a1073_0x30cb;this['type']=_0xebe43c('0x4'),this[_0xebe43c('0xd')]='',this[_0xebe43c('0x0')]='',this['calleridname']='',this[_0xebe43c('0x10')]='',this['queuecallerjoinAt']=null,this['queuecallerleaveAt']=null,this[_0xebe43c('0xa')]=0x1,this['count']=0x1,this[_0xebe43c('0x6')]=![],this[_0xebe43c('0x3')]=null,this[_0xebe43c('0x8')]=![],this[_0xebe43c('0x9')]=null,this['queuecallerexit']=![],this['queuecallerexitAt']=null,this[_0xebe43c('0x7')]=0x1,this['channel']='',this['connectedlinenum']='',this[_0xebe43c('0xb')]='',this[_0xebe43c('0xc')]='',this[_0xebe43c('0x1')]='',this[_0xebe43c('0xe')]='',this[_0xebe43c('0x5')]='',this[_0xebe43c('0x12')]=0x0,this['assigned']=![],this[_0xebe43c('0x11')]='',this[_0xebe43c('0xf')]=0x0,this['variables']={};}module[_0x3c37c9('0x2')]=QueueReport; \ No newline at end of file +var a1073_0x4b25=['queuecallerjoinAt','queuecallercomplete','originalposition','variables','queuecallerexitAt','queuecallerexit','holdtime','queuecallerabandon','queue','queuecallerleaveAt','channel','lastAssignedTo','connectedlinename','position','exports','accountcode','uniqueid','type','count','queuecallerabandonAt','calleridname','context'];(function(_0x5f353d,_0x4b2509){var _0xf26776=function(_0x2bad36){while(--_0x2bad36){_0x5f353d['push'](_0x5f353d['shift']());}};_0xf26776(++_0x4b2509);}(a1073_0x4b25,0x126));var a1073_0xf267=function(_0x5f353d,_0x4b2509){_0x5f353d=_0x5f353d-0x0;var _0xf26776=a1073_0x4b25[_0x5f353d];return _0xf26776;};var _0x25301a=a1073_0xf267;'use strict';function QueueReport(){var _0x1df32e=a1073_0xf267;this[_0x1df32e('0x9')]='inbound',this[_0x1df32e('0x8')]='',this['calleridnum']='',this[_0x1df32e('0xc')]='',this[_0x1df32e('0x0')]='',this[_0x1df32e('0xe')]=null,this[_0x1df32e('0x1')]=null,this[_0x1df32e('0x5')]=0x1,this[_0x1df32e('0xa')]=0x1,this[_0x1df32e('0x15')]=![],this[_0x1df32e('0xb')]=null,this[_0x1df32e('0xf')]=![],this['queuecallercompleteAt']=null,this[_0x1df32e('0x13')]=![],this[_0x1df32e('0x12')]=null,this[_0x1df32e('0x10')]=0x1,this[_0x1df32e('0x2')]='',this['connectedlinenum']='',this[_0x1df32e('0x4')]='',this[_0x1df32e('0x7')]='',this[_0x1df32e('0xd')]='',this['exten']='',this['priority']='',this[_0x1df32e('0x14')]=0x0,this['assigned']=![],this[_0x1df32e('0x3')]='',this['mohtime']=0x0,this[_0x1df32e('0x11')]={};}module[_0x25301a('0x6')]=QueueReport; \ No newline at end of file diff --git a/server/services/ami/model/salesforceAccount.js b/server/services/ami/model/salesforceAccount.js index 2a3b848..5519ed9 100644 --- a/server/services/ami/model/salesforceAccount.js +++ b/server/services/ami/model/salesforceAccount.js @@ -1 +1 @@ -var a1074_0x5ed6=['type','securityToken','clientId','username','serverUrl','integrationTab','name','exports','clientSecret','Configurations','remoteUri','password'];(function(_0x4cb3b4,_0x5ed676){var _0x2fc9d3=function(_0x39d496){while(--_0x39d496){_0x4cb3b4['push'](_0x4cb3b4['shift']());}};_0x2fc9d3(++_0x5ed676);}(a1074_0x5ed6,0x169));var a1074_0x2fc9=function(_0x4cb3b4,_0x5ed676){_0x4cb3b4=_0x4cb3b4-0x0;var _0x2fc9d3=a1074_0x5ed6[_0x4cb3b4];return _0x2fc9d3;};var _0x3c9e41=a1074_0x2fc9;'use strict';function SalesforceAccount(_0x39d496){var _0x2902b0=a1074_0x2fc9;this['id']=_0x39d496['id']||0x0,this['name']=_0x39d496[_0x2902b0('0x5')]||'',this['username']=_0x39d496[_0x2902b0('0x2')]||'',this['remoteUri']=_0x39d496[_0x2902b0('0x9')]||'',this[_0x2902b0('0xa')]=_0x39d496[_0x2902b0('0xa')]||'',this['clientId']=_0x39d496[_0x2902b0('0x1')]||'',this[_0x2902b0('0x7')]=_0x39d496['clientSecret']||'',this[_0x2902b0('0x0')]=_0x39d496['securityToken']||'',this[_0x2902b0('0xb')]=_0x39d496['type']||_0x2902b0('0x4'),this[_0x2902b0('0x3')]=_0x39d496[_0x2902b0('0x3')]||'',this[_0x2902b0('0x8')]=_0x39d496[_0x2902b0('0x8')]||{};}module[_0x3c9e41('0x6')]=SalesforceAccount; \ No newline at end of file +var a1074_0x5d55=['Configurations','integrationTab','name','clientSecret','securityToken','username','exports','remoteUri','password','serverUrl','type','clientId'];(function(_0x5dbdf9,_0x5d551a){var _0x4a7894=function(_0x3d1ec4){while(--_0x3d1ec4){_0x5dbdf9['push'](_0x5dbdf9['shift']());}};_0x4a7894(++_0x5d551a);}(a1074_0x5d55,0x81));var a1074_0x4a78=function(_0x5dbdf9,_0x5d551a){_0x5dbdf9=_0x5dbdf9-0x0;var _0x4a7894=a1074_0x5d55[_0x5dbdf9];return _0x4a7894;};var _0x2cc7de=a1074_0x4a78;'use strict';function SalesforceAccount(_0x3d1ec4){var _0x17c58a=a1074_0x4a78;this['id']=_0x3d1ec4['id']||0x0,this[_0x17c58a('0x5')]=_0x3d1ec4[_0x17c58a('0x5')]||'',this['username']=_0x3d1ec4[_0x17c58a('0x8')]||'',this[_0x17c58a('0xa')]=_0x3d1ec4[_0x17c58a('0xa')]||'',this[_0x17c58a('0xb')]=_0x3d1ec4['password']||'',this[_0x17c58a('0x2')]=_0x3d1ec4[_0x17c58a('0x2')]||'',this[_0x17c58a('0x6')]=_0x3d1ec4['clientSecret']||'',this['securityToken']=_0x3d1ec4[_0x17c58a('0x7')]||'',this[_0x17c58a('0x1')]=_0x3d1ec4[_0x17c58a('0x1')]||_0x17c58a('0x4'),this[_0x17c58a('0x0')]=_0x3d1ec4[_0x17c58a('0x0')]||'',this[_0x17c58a('0x3')]=_0x3d1ec4[_0x17c58a('0x3')]||{};}module[_0x2cc7de('0x9')]=SalesforceAccount; \ No newline at end of file diff --git a/server/services/ami/model/servicenowAccount.js b/server/services/ami/model/servicenowAccount.js index f839a46..54c03ae 100644 --- a/server/services/ami/model/servicenowAccount.js +++ b/server/services/ami/model/servicenowAccount.js @@ -1 +1 @@ -var a1075_0x3101=['name','username','serverUrl','password','remoteUri'];(function(_0x49be28,_0x310118){var _0x40ddb4=function(_0x11c713){while(--_0x11c713){_0x49be28['push'](_0x49be28['shift']());}};_0x40ddb4(++_0x310118);}(a1075_0x3101,0x106));var a1075_0x40dd=function(_0x49be28,_0x310118){_0x49be28=_0x49be28-0x0;var _0x40ddb4=a1075_0x3101[_0x49be28];return _0x40ddb4;};'use strict';function ServicenowAccount(_0x11c713){var _0x5c43ce=a1075_0x40dd;this['id']=_0x11c713['id']||0x0,this['name']=_0x11c713[_0x5c43ce('0x3')]||'',this[_0x5c43ce('0x4')]=_0x11c713[_0x5c43ce('0x4')]||'',this[_0x5c43ce('0x1')]=_0x11c713[_0x5c43ce('0x1')]||'',this[_0x5c43ce('0x2')]=_0x11c713[_0x5c43ce('0x2')]||'',this[_0x5c43ce('0x0')]=_0x11c713[_0x5c43ce('0x0')]||'',this['Configurations']=_0x11c713['Configurations']||{};}module['exports']=ServicenowAccount; \ No newline at end of file +var a1075_0x5ae3=['remoteUri','serverUrl','exports','username','name','password'];(function(_0xb22d,_0x5ae3bd){var _0x4fd9ec=function(_0x5aa304){while(--_0x5aa304){_0xb22d['push'](_0xb22d['shift']());}};_0x4fd9ec(++_0x5ae3bd);}(a1075_0x5ae3,0x101));var a1075_0x4fd9=function(_0xb22d,_0x5ae3bd){_0xb22d=_0xb22d-0x0;var _0x4fd9ec=a1075_0x5ae3[_0xb22d];return _0x4fd9ec;};var _0x501017=a1075_0x4fd9;'use strict';function ServicenowAccount(_0x5aa304){var _0x5dacbd=a1075_0x4fd9;this['id']=_0x5aa304['id']||0x0,this[_0x5dacbd('0x5')]=_0x5aa304['name']||'',this[_0x5dacbd('0x4')]=_0x5aa304[_0x5dacbd('0x4')]||'',this[_0x5dacbd('0x0')]=_0x5aa304[_0x5dacbd('0x0')]||'',this[_0x5dacbd('0x1')]=_0x5aa304[_0x5dacbd('0x1')]||'',this[_0x5dacbd('0x2')]=_0x5aa304[_0x5dacbd('0x2')]||'',this['Configurations']=_0x5aa304['Configurations']||{};}module[_0x501017('0x3')]=ServicenowAccount; \ No newline at end of file diff --git a/server/services/ami/model/sugarcrmAccount.js b/server/services/ami/model/sugarcrmAccount.js index a1294dc..2ff6a85 100644 --- a/server/services/ami/model/sugarcrmAccount.js +++ b/server/services/ami/model/sugarcrmAccount.js @@ -1 +1 @@ -var a1076_0x1bb2=['Configurations','password','exports','remoteUri','username','serverUrl','name'];(function(_0x40fa6e,_0x1bb2da){var _0x539c08=function(_0x4a9fc4){while(--_0x4a9fc4){_0x40fa6e['push'](_0x40fa6e['shift']());}};_0x539c08(++_0x1bb2da);}(a1076_0x1bb2,0x10e));var a1076_0x539c=function(_0x40fa6e,_0x1bb2da){_0x40fa6e=_0x40fa6e-0x0;var _0x539c08=a1076_0x1bb2[_0x40fa6e];return _0x539c08;};var _0x4e8f14=a1076_0x539c;'use strict';function SugarcrmAccount(_0x4a9fc4){var _0x18747a=a1076_0x539c;this['id']=_0x4a9fc4['id']||0x0,this[_0x18747a('0x2')]=_0x4a9fc4['name']||'',this[_0x18747a('0x0')]=_0x4a9fc4[_0x18747a('0x0')]||'',this[_0x18747a('0x4')]=_0x4a9fc4[_0x18747a('0x4')]||'',this[_0x18747a('0x6')]=_0x4a9fc4[_0x18747a('0x6')]||'',this['serverUrl']=_0x4a9fc4[_0x18747a('0x1')]||'',this[_0x18747a('0x3')]=_0x4a9fc4[_0x18747a('0x3')]||{};}module[_0x4e8f14('0x5')]=SugarcrmAccount; \ No newline at end of file +var a1076_0x46a1=['name','remoteUri','username','password','Configurations'];(function(_0x57306f,_0x46a11a){var _0x1360b5=function(_0x32422b){while(--_0x32422b){_0x57306f['push'](_0x57306f['shift']());}};_0x1360b5(++_0x46a11a);}(a1076_0x46a1,0x199));var a1076_0x1360=function(_0x57306f,_0x46a11a){_0x57306f=_0x57306f-0x0;var _0x1360b5=a1076_0x46a1[_0x57306f];return _0x1360b5;};'use strict';function SugarcrmAccount(_0x32422b){var _0xc47b4d=a1076_0x1360;this['id']=_0x32422b['id']||0x0,this[_0xc47b4d('0x1')]=_0x32422b['name']||'',this['username']=_0x32422b[_0xc47b4d('0x3')]||'',this[_0xc47b4d('0x4')]=_0x32422b['password']||'',this[_0xc47b4d('0x2')]=_0x32422b[_0xc47b4d('0x2')]||'',this['serverUrl']=_0x32422b['serverUrl']||'',this['Configurations']=_0x32422b[_0xc47b4d('0x0')]||{};}module['exports']=SugarcrmAccount; \ No newline at end of file diff --git a/server/services/ami/model/telephone.js b/server/services/ami/model/telephone.js index 20f23bf..47afa33 100644 --- a/server/services/ami/model/telephone.js +++ b/server/services/ami/model/telephone.js @@ -1 +1 @@ -var a1077_0x2f43=['address','stateTime','name','state'];(function(_0x5f0914,_0x2f43ba){var _0x4bce08=function(_0xb9a03b){while(--_0xb9a03b){_0x5f0914['push'](_0x5f0914['shift']());}};_0x4bce08(++_0x2f43ba);}(a1077_0x2f43,0x1dd));var a1077_0x4bce=function(_0x5f0914,_0x2f43ba){_0x5f0914=_0x5f0914-0x0;var _0x4bce08=a1077_0x2f43[_0x5f0914];return _0x4bce08;};'use strict';function Telephone(_0xb9a03b){var _0x5379ba=a1077_0x4bce;this['id']=_0xb9a03b['id']||0x0,this[_0x5379ba('0x1')]=_0xb9a03b['name']||'',this['accountcode']=_0xb9a03b['accountcode']||'',this[_0x5379ba('0x2')]='unknown',this[_0x5379ba('0x0')]=0x0,this['status']='unknown',this[_0x5379ba('0x3')]='';}module['exports']=Telephone; \ No newline at end of file +var a1077_0x257b=['name','stateTime','unknown','state','exports','accountcode'];(function(_0x2e2a85,_0x257b71){var _0x14e6ba=function(_0x3a1100){while(--_0x3a1100){_0x2e2a85['push'](_0x2e2a85['shift']());}};_0x14e6ba(++_0x257b71);}(a1077_0x257b,0x164));var a1077_0x14e6=function(_0x2e2a85,_0x257b71){_0x2e2a85=_0x2e2a85-0x0;var _0x14e6ba=a1077_0x257b[_0x2e2a85];return _0x14e6ba;};var _0x484fa2=a1077_0x14e6;'use strict';function Telephone(_0x3a1100){var _0x3b6902=a1077_0x14e6;this['id']=_0x3a1100['id']||0x0,this[_0x3b6902('0x4')]=_0x3a1100[_0x3b6902('0x4')]||'',this[_0x3b6902('0x3')]=_0x3a1100[_0x3b6902('0x3')]||'',this[_0x3b6902('0x1')]=_0x3b6902('0x0'),this[_0x3b6902('0x5')]=0x0,this['status']='unknown',this['address']='';}module[_0x484fa2('0x2')]=Telephone; \ No newline at end of file diff --git a/server/services/ami/model/template.js b/server/services/ami/model/template.js index 510d539..c799084 100644 --- a/server/services/ami/model/template.js +++ b/server/services/ami/model/template.js @@ -1 +1 @@ -var a1078_0x4b1a=['name','html','exports'];(function(_0x519baf,_0x4b1a10){var _0x4a4f3b=function(_0x1ba82f){while(--_0x1ba82f){_0x519baf['push'](_0x519baf['shift']());}};_0x4a4f3b(++_0x4b1a10);}(a1078_0x4b1a,0x193));var a1078_0x4a4f=function(_0x519baf,_0x4b1a10){_0x519baf=_0x519baf-0x0;var _0x4a4f3b=a1078_0x4b1a[_0x519baf];return _0x4a4f3b;};var _0x400c28=a1078_0x4a4f;'use strict';function template(_0x1ba82f){var _0x1f09cc=a1078_0x4a4f;this['id']=_0x1ba82f['id']||0x0,this[_0x1f09cc('0x2')]=_0x1ba82f[_0x1f09cc('0x2')]||'',this[_0x1f09cc('0x0')]=_0x1ba82f[_0x1f09cc('0x0')]||'';}module[_0x400c28('0x1')]=template; \ No newline at end of file +var a1078_0x2bb3=['exports','name','html'];(function(_0x1cdf23,_0x2bb38f){var _0xfd95e8=function(_0x319ed6){while(--_0x319ed6){_0x1cdf23['push'](_0x1cdf23['shift']());}};_0xfd95e8(++_0x2bb38f);}(a1078_0x2bb3,0x1c4));var a1078_0xfd95=function(_0x1cdf23,_0x2bb38f){_0x1cdf23=_0x1cdf23-0x0;var _0xfd95e8=a1078_0x2bb3[_0x1cdf23];return _0xfd95e8;};var _0x27daf1=a1078_0xfd95;'use strict';function template(_0x319ed6){var _0x588afe=a1078_0xfd95;this['id']=_0x319ed6['id']||0x0,this[_0x588afe('0x2')]=_0x319ed6['name']||'',this[_0x588afe('0x0')]=_0x319ed6[_0x588afe('0x0')]||'';}module[_0x27daf1('0x1')]=template; \ No newline at end of file diff --git a/server/services/ami/model/trigger.js b/server/services/ami/model/trigger.js index 94e791e..34b375b 100644 --- a/server/services/ami/model/trigger.js +++ b/server/services/ami/model/trigger.js @@ -1 +1 @@ -var a1079_0x4bb3=['exports','channel','name','voice','status','Actions','AllConditions'];(function(_0x93baed,_0x4bb3be){var _0x2142ff=function(_0x477ebf){while(--_0x477ebf){_0x93baed['push'](_0x93baed['shift']());}};_0x2142ff(++_0x4bb3be);}(a1079_0x4bb3,0x124));var a1079_0x2142=function(_0x93baed,_0x4bb3be){_0x93baed=_0x93baed-0x0;var _0x2142ff=a1079_0x4bb3[_0x93baed];return _0x2142ff;};var _0xefce8=a1079_0x2142;'use strict';function Trigger(_0x477ebf){var _0x2d5d02=a1079_0x2142;this['id']=_0x477ebf['id']||0x0,this[_0x2d5d02('0x4')]=_0x477ebf['name']||'',this[_0x2d5d02('0x3')]=_0x477ebf[_0x2d5d02('0x3')]||_0x2d5d02('0x5'),this[_0x2d5d02('0x6')]=_0x477ebf['status']||![],this[_0x2d5d02('0x1')]=_0x477ebf[_0x2d5d02('0x1')]||[],this['AnyConditions']=_0x477ebf['AnyConditions']||[],this[_0x2d5d02('0x0')]=_0x477ebf[_0x2d5d02('0x0')]||[];}module[_0xefce8('0x2')]=Trigger; \ No newline at end of file +var a1079_0x36f0=['channel','AnyConditions','exports','AllConditions','status','name'];(function(_0x2208ba,_0x36f031){var _0x4376cf=function(_0x45b9ed){while(--_0x45b9ed){_0x2208ba['push'](_0x2208ba['shift']());}};_0x4376cf(++_0x36f031);}(a1079_0x36f0,0x18e));var a1079_0x4376=function(_0x2208ba,_0x36f031){_0x2208ba=_0x2208ba-0x0;var _0x4376cf=a1079_0x36f0[_0x2208ba];return _0x4376cf;};var _0x3f9ff1=a1079_0x4376;'use strict';function Trigger(_0x45b9ed){var _0x1c6a1e=a1079_0x4376;this['id']=_0x45b9ed['id']||0x0,this[_0x1c6a1e('0x3')]=_0x45b9ed[_0x1c6a1e('0x3')]||'',this[_0x1c6a1e('0x4')]=_0x45b9ed[_0x1c6a1e('0x4')]||'voice',this[_0x1c6a1e('0x2')]=_0x45b9ed[_0x1c6a1e('0x2')]||![],this[_0x1c6a1e('0x1')]=_0x45b9ed[_0x1c6a1e('0x1')]||[],this['AnyConditions']=_0x45b9ed[_0x1c6a1e('0x5')]||[],this['Actions']=_0x45b9ed['Actions']||[];}module[_0x3f9ff1('0x0')]=Trigger; \ No newline at end of file diff --git a/server/services/ami/model/trunk.js b/server/services/ami/model/trunk.js index 786ed2c..d261998 100644 --- a/server/services/ami/model/trunk.js +++ b/server/services/ami/model/trunk.js @@ -1 +1 @@ -var a1080_0xbafe=['stateTime','refresh','active','unknown','exports','indexOf','name','port','host','registry','registrationtime','stateRegistry','state','split'];(function(_0x3c9ecc,_0xbafe88){var _0x431283=function(_0x1bd6f6){while(--_0x1bd6f6){_0x3c9ecc['push'](_0x3c9ecc['shift']());}};_0x431283(++_0xbafe88);}(a1080_0xbafe,0x1ab));var a1080_0x4312=function(_0x3c9ecc,_0xbafe88){_0x3c9ecc=_0x3c9ecc-0x0;var _0x431283=a1080_0xbafe[_0x3c9ecc];return _0x431283;};var _0xab344=a1080_0x4312;'use strict';function Trunk(_0x1bd6f6){var _0x4f0ce4=a1080_0x4312;this['id']=_0x1bd6f6['id']||0x0,this[_0x4f0ce4('0x9')]=_0x1bd6f6[_0x4f0ce4('0x9')]||![],this['name']=_0x1bd6f6[_0x4f0ce4('0xd')]||'',this[_0x4f0ce4('0x5')]=_0x4f0ce4('0xa'),this[_0x4f0ce4('0x7')]=0x0,this['status']=_0x4f0ce4('0xa'),this['registry']=_0x1bd6f6[_0x4f0ce4('0x2')]&&_0x1bd6f6['registry'][_0x4f0ce4('0xc')](':')?_0x1bd6f6['registry'][_0x4f0ce4('0x6')](':')[0x0]:'',this[_0x4f0ce4('0x1')]='',this[_0x4f0ce4('0x0')]='',this['domain']='',this['domainport']='',this[_0x4f0ce4('0x8')]='',this[_0x4f0ce4('0x4')]='unknown',this[_0x4f0ce4('0x3')]='',this['address']='';}module[_0xab344('0xb')]=Trunk; \ No newline at end of file +var a1080_0x22d5=['host','unknown','status','stateRegistry','registry','refresh','indexOf','domainport','name','port','domain','registrationtime','split','active','address'];(function(_0x31bcb6,_0x22d55d){var _0x4da0b2=function(_0x73c275){while(--_0x73c275){_0x31bcb6['push'](_0x31bcb6['shift']());}};_0x4da0b2(++_0x22d55d);}(a1080_0x22d5,0x1bf));var a1080_0x4da0=function(_0x31bcb6,_0x22d55d){_0x31bcb6=_0x31bcb6-0x0;var _0x4da0b2=a1080_0x22d5[_0x31bcb6];return _0x4da0b2;};'use strict';function Trunk(_0x73c275){var _0x36a559=a1080_0x4da0;this['id']=_0x73c275['id']||0x0,this[_0x36a559('0x1')]=_0x73c275[_0x36a559('0x1')]||![],this['name']=_0x73c275[_0x36a559('0xb')]||'',this['state']=_0x36a559('0x4'),this['stateTime']=0x0,this[_0x36a559('0x5')]=_0x36a559('0x4'),this[_0x36a559('0x7')]=_0x73c275[_0x36a559('0x7')]&&_0x73c275['registry'][_0x36a559('0x9')](':')?_0x73c275[_0x36a559('0x7')][_0x36a559('0x0')](':')[0x0]:'',this[_0x36a559('0x3')]='',this[_0x36a559('0xc')]='',this[_0x36a559('0xd')]='',this[_0x36a559('0xa')]='',this[_0x36a559('0x8')]='',this[_0x36a559('0x6')]=_0x36a559('0x4'),this[_0x36a559('0xe')]='',this[_0x36a559('0x2')]='';}module['exports']=Trunk; \ No newline at end of file diff --git a/server/services/ami/model/voiceExtension.js b/server/services/ami/model/voiceExtension.js index 7fd1bfb..ddf1381 100644 --- a/server/services/ami/model/voiceExtension.js +++ b/server/services/ami/model/voiceExtension.js @@ -1 +1 @@ -var a1081_0x54bb=['mandatoryDisposition','exports','recordingFormat'];(function(_0x511727,_0x54bb77){var _0x43a0c4=function(_0x4f307d){while(--_0x4f307d){_0x511727['push'](_0x511727['shift']());}};_0x43a0c4(++_0x54bb77);}(a1081_0x54bb,0x130));var a1081_0x43a0=function(_0x511727,_0x54bb77){_0x511727=_0x511727-0x0;var _0x43a0c4=a1081_0x54bb[_0x511727];return _0x43a0c4;};var _0xa2956=a1081_0x43a0;'use strict';function voiceExtension(_0x4f307d){var _0x1e3c07=a1081_0x43a0;this['id']=_0x4f307d['id']||0x0,this['exten']=_0x4f307d['exten']||'',this[_0x1e3c07('0x1')]=_0x4f307d['recordingFormat']||'none',this[_0x1e3c07('0x2')]=_0x4f307d[_0x1e3c07('0x2')]||![];}module[_0xa2956('0x0')]=voiceExtension; \ No newline at end of file +var a1081_0x47cf=['recordingFormat','exports','mandatoryDisposition','exten'];(function(_0x2198b7,_0x47cf80){var _0x296214=function(_0x1ce4c7){while(--_0x1ce4c7){_0x2198b7['push'](_0x2198b7['shift']());}};_0x296214(++_0x47cf80);}(a1081_0x47cf,0x15f));var a1081_0x2962=function(_0x2198b7,_0x47cf80){_0x2198b7=_0x2198b7-0x0;var _0x296214=a1081_0x47cf[_0x2198b7];return _0x296214;};var _0x5bb076=a1081_0x2962;'use strict';function voiceExtension(_0x1ce4c7){var _0x4302bd=a1081_0x2962;this['id']=_0x1ce4c7['id']||0x0,this[_0x4302bd('0x0')]=_0x1ce4c7[_0x4302bd('0x0')]||'',this[_0x4302bd('0x1')]=_0x1ce4c7[_0x4302bd('0x1')]||'none',this[_0x4302bd('0x3')]=_0x1ce4c7[_0x4302bd('0x3')]||![];}module[_0x5bb076('0x2')]=voiceExtension; \ No newline at end of file diff --git a/server/services/ami/model/voiceQueue.js b/server/services/ami/model/voiceQueue.js index 4a0bc14..5a66e61 100644 --- a/server/services/ami/model/voiceQueue.js +++ b/server/services/ami/model/voiceQueue.js @@ -1 +1 @@ -const a1082_0x44c7=['dialRandomLastDigitCallerIdNumber','outboundOriginateFailureCallsDay','dialPredictiveIntervalMaxThreshold','dialMethod','dialOriginateCallerIdName','queueStatusComplete','sumHoldTime','predictiveIntervalTotalCalls','dialOriginateCallerIdNumber','dialNoAnswerRetryFrequency','Interval','dialPredictiveInterval','predictiveIntervalErlangCallsDroppedCalls','outboundNoAnswerCallsDay','dialQueueProject2','dialQueueProject','monitor_format','dialPredictiveOptimization','acw','dialNoSuchNumberMaxRetry','dialAgiAfterHangupAgent','dialAgiAfterHangupClient','sumBillable','dialAgentRejectMaxRetry','timeout','predictiveIntervalDroppedCallsTimeout','dialAgentRejectRetryFrequency','startPredictive','mandatoryDispositionPause','autopause','type','outboundAnswerAgiCallsDay','outboundBusyCallsDay','outboundDropCallsDayTimeout','dialDropMaxRetry','answered','dialAMDGreeting','dialActive','waiting','dialNoAnswerMaxRetry','dialCutDigit','outboundAbandonedDay','progressive','wav','outboundAnswerCallsDay','dialDropRetryFrequency','dialMachineMaxRetry','acwTimeout','anonymous','inbound','dialNoSuchNumberRetryFrequency','dialPrefix','dialMachineRetryFrequency','outboundReCallsDay','dialQueueOptions','dialAMDInitialSilence','predictiveIntervalHitRate','erlangAbandonmentRate','total','outboundCongestionCallsDay','Trunk','mandatoryDisposition','dialRecallMeTimeout','dialOrderByScheduledAt','dialAMDActive','dialBusyMaxRetry','predictiveIntervalMinThreshold','rrmemory','dialPredictiveOptimizationPercentage','name','abandoned','TrunkBackup','dialOriginateTimeout','dialAMDBetweenWordsSilence','predictiveIntervalErlangCalls','message','dialPowerLevel','predictiveIntervalAvgTalktime','DESC','dialAMDMinWordLength','dialAMDMaximumNumberOfWords','sumDuration','dialLimitChannel','predictiveIntervalPauses','dialAMDAfterGreetingSilence','roundrobin','dialAMDTotalAnalysisTime','dialTimezone','outboundRejectCallsDay','dialAMDSilenceThreshold','predictiveIntervalMultiplicativeFactor','dialGlobalInterval','wav49','gsm','loggedIn','predictiveIntervalAnsweredCalls','originated','dialCongestionMaxRetry','predictiveIntervalAvgHoldtime','predictiveIntervalDroppedCallsCallersExit','dialGlobalMaxRetry','outboundDropCallsDayCallersExit','dialQueueTimeout','dialAbandonedRetryFrequency','erlangCalls','dialLimitQueue'];(function(_0x1fa5a9,_0x44c776){const _0x1a8f2e=function(_0x386c11){while(--_0x386c11){_0x1fa5a9['push'](_0x1fa5a9['shift']());}};_0x1a8f2e(++_0x44c776);}(a1082_0x44c7,0x1da));const a1082_0x1a8f=function(_0x1fa5a9,_0x44c776){_0x1fa5a9=_0x1fa5a9-0x0;let _0x1a8f2e=a1082_0x44c7[_0x1fa5a9];return _0x1a8f2e;};const _0x3e793d=a1082_0x1a8f;'use strict';const monitorFormat={'wav':_0x3e793d('0x63'),'wav49':_0x3e793d('0x2a'),'gsm':_0x3e793d('0x2b')},strategy={'rrmemory':'rrmemory','roundrobin':_0x3e793d('0x23')};function VoiceQueue(_0x386c11){const _0x3bc9f8=_0x3e793d;this['id']=_0x386c11['id']||0x0,this[_0x3bc9f8('0x13')]=_0x386c11[_0x3bc9f8('0x13')]||'',this['monitor_format']=_0x386c11['monitor_format']||'',this[_0x3bc9f8('0x56')]=_0x386c11['type']||_0x3bc9f8('0x69'),this[_0x3bc9f8('0x5e')]=0x0,this['talking']=0x0,this[_0x3bc9f8('0x8')]=0x0,this[_0x3bc9f8('0x5b')]=0x0,this[_0x3bc9f8('0x1f')]=0x0,this[_0x3bc9f8('0x3e')]=0x0,this[_0x3bc9f8('0x4e')]=0x0,this['unmanaged']=0x0,this[_0x3bc9f8('0x14')]=0x0,this[_0x3bc9f8('0x2c')]=0x0,this['available']=0x0,this[_0x3bc9f8('0x4a')]=_0x386c11['acw']||![],this[_0x3bc9f8('0x67')]=_0x386c11[_0x3bc9f8('0x67')]||0xa,this[_0x3bc9f8('0x55')]=_0x386c11[_0x3bc9f8('0x55')]||'no',this['sendMessageOneNotActive']=!![],this[_0x3bc9f8('0x19')]='',this[_0x3bc9f8('0x2e')]=0x0,this['temp']=0x0,this['dialTimezone']=_0x386c11[_0x3bc9f8('0x25')]||null,this['dialGlobalInterval']=_0x386c11[_0x3bc9f8('0x29')]?_0x386c11['dialGlobalInterval']:null,this['dialActive']=_0x386c11[_0x3bc9f8('0x5d')],this[_0x3bc9f8('0x3b')]=_0x386c11[_0x3bc9f8('0x3b')]||_0x3bc9f8('0x62'),this[_0x3bc9f8('0x20')]=_0x386c11['dialLimitChannel']||0x0,this[_0x3bc9f8('0x37')]=_0x386c11['dialLimitQueue']||0x0,this[_0x3bc9f8('0x1a')]=_0x386c11[_0x3bc9f8('0x1a')]||0x1,this['dialPredictiveOptimization']=_0x386c11[_0x3bc9f8('0x49')]||'dropRate',this[_0x3bc9f8('0x12')]=_0x386c11[_0x3bc9f8('0x12')]||0.03,this['dialPredictiveInterval']=_0x386c11[_0x3bc9f8('0x43')]||0x258,this['dialOriginateCallerIdName']=_0x386c11[_0x3bc9f8('0x3c')]||_0x3bc9f8('0x68'),this[_0x3bc9f8('0x40')]=_0x386c11[_0x3bc9f8('0x40')]||_0x3bc9f8('0x68'),this[_0x3bc9f8('0x16')]=_0x386c11[_0x3bc9f8('0x16')]||0x1e,this[_0x3bc9f8('0x4')]=_0x386c11['dialQueueOptions']||'tTxX',this['dialQueueTimeout']=_0x386c11[_0x3bc9f8('0x34')]||0x3,this[_0x3bc9f8('0x47')]=_0x386c11['dialQueueProject']||undefined,this[_0x3bc9f8('0x2f')]=_0x386c11[_0x3bc9f8('0x2f')]||0x3,this['dialCongestionRetryFrequency']=_0x386c11['dialCongestionRetryFrequency']||0x96,this[_0x3bc9f8('0xf')]=_0x386c11['dialBusyMaxRetry']||0x3,this['dialBusyRetryFrequency']=_0x386c11['dialBusyRetryFrequency']||0x96,this[_0x3bc9f8('0x5f')]=_0x386c11['dialNoAnswerMaxRetry']||0x3,this[_0x3bc9f8('0x41')]=_0x386c11[_0x3bc9f8('0x41')]||0x96,this[_0x3bc9f8('0x4b')]=_0x386c11['dialNoSuchNumberMaxRetry']||0x3,this[_0x3bc9f8('0x0')]=_0x386c11[_0x3bc9f8('0x0')]||0x96,this[_0x3bc9f8('0x5a')]=_0x386c11[_0x3bc9f8('0x5a')]||0x3,this['dialDropRetryFrequency']=_0x386c11[_0x3bc9f8('0x65')]||0x96,this['dialAbandonedMaxRetry']=_0x386c11['dialAbandonedMaxRetry']||0x3,this[_0x3bc9f8('0x35')]=_0x386c11[_0x3bc9f8('0x35')]||0x96,this[_0x3bc9f8('0x66')]=_0x386c11['dialMachineMaxRetry']||0x3,this[_0x3bc9f8('0x2')]=_0x386c11['dialMachineRetryFrequency']||0x96,this[_0x3bc9f8('0x4f')]=_0x386c11['dialAgentRejectMaxRetry']||0x3,this[_0x3bc9f8('0x52')]=_0x386c11[_0x3bc9f8('0x52')]||0x96,this[_0x3bc9f8('0x32')]=_0x386c11[_0x3bc9f8('0x32')]||0x4,this[_0x3bc9f8('0xa')]=_0x386c11[_0x3bc9f8('0xa')]?_0x386c11[_0x3bc9f8('0xa')]:undefined,this[_0x3bc9f8('0x15')]=_0x386c11[_0x3bc9f8('0x15')]?_0x386c11[_0x3bc9f8('0x15')]:undefined,this[_0x3bc9f8('0x1')]=_0x386c11['dialPrefix']||undefined,this[_0x3bc9f8('0x42')]=_0x386c11['Interval']?_0x386c11[_0x3bc9f8('0x42')]:undefined,this['dialOrderByScheduledAt']=_0x386c11[_0x3bc9f8('0xd')]||_0x3bc9f8('0x1c'),this[_0x3bc9f8('0x38')]=_0x386c11[_0x3bc9f8('0x38')]||undefined,this[_0x3bc9f8('0x60')]=_0x386c11['dialCutDigit']||undefined,this['strategy']=strategy[_0x386c11['strategy']]||_0x3bc9f8('0x11'),this[_0x3bc9f8('0x3d')]=!![],this[_0x3bc9f8('0xe')]=_0x386c11['dialAMDActive']||![],this['dialAMDInitialSilence']=_0x386c11[_0x3bc9f8('0x5')],this[_0x3bc9f8('0x5c')]=_0x386c11['dialAMDGreeting'],this[_0x3bc9f8('0x22')]=_0x386c11[_0x3bc9f8('0x22')],this[_0x3bc9f8('0x24')]=_0x386c11[_0x3bc9f8('0x24')],this[_0x3bc9f8('0x1d')]=_0x386c11['dialAMDMinWordLength'],this[_0x3bc9f8('0x17')]=_0x386c11['dialAMDBetweenWordsSilence'],this[_0x3bc9f8('0x1e')]=_0x386c11[_0x3bc9f8('0x1e')],this['dialAMDSilenceThreshold']=_0x386c11[_0x3bc9f8('0x27')],this['dialAMDMaximumWordLength']=_0x386c11['dialAMDMaximumWordLength'],this[_0x3bc9f8('0x26')]=0x0,this['pTalking']=0x0,this[_0x3bc9f8('0x50')]=_0x386c11[_0x3bc9f8('0x50')],this[_0x3bc9f8('0x64')]=0x0,this[_0x3bc9f8('0x57')]=0x0,this[_0x3bc9f8('0x45')]=0x0,this[_0x3bc9f8('0x58')]=0x0,this[_0x3bc9f8('0x9')]=0x0,this['outboundNoSuchCallsDay']=0x0,this['outboundUnknownCallsDay']=0x0,this['outboundBlacklistCallsDay']=0x0,this[_0x3bc9f8('0x39')]=0x0,this[_0x3bc9f8('0x33')]=0x0,this[_0x3bc9f8('0x59')]=0x0,this['outboundDropCallsDayACS']=0x0,this[_0x3bc9f8('0x3')]=0x0,this[_0x3bc9f8('0x61')]=0x0,this['startProgressive']=undefined,this[_0x3bc9f8('0x53')]=undefined,this['handlePredictive']=undefined,this[_0x3bc9f8('0x28')]=1.05,this[_0x3bc9f8('0x3f')]=0x0,this[_0x3bc9f8('0x2d')]=0x0,this[_0x3bc9f8('0x31')]=0x0,this[_0x3bc9f8('0x51')]=0x0,this[_0x3bc9f8('0x30')]=0x0,this[_0x3bc9f8('0x1b')]=0x0,this[_0x3bc9f8('0x21')]=0x0,this['predictiveIntervalAvailable']=0x0,this['predictiveIntervalMaxThreshold']=_0x386c11[_0x3bc9f8('0x3a')]||0x14,this[_0x3bc9f8('0x10')]=_0x386c11[_0x3bc9f8('0x3a')]||0xa,this[_0x3bc9f8('0x18')]=0x0,this[_0x3bc9f8('0x44')]=0x0,this[_0x3bc9f8('0x6')]=0x1,this[_0x3bc9f8('0x36')]=0x0,this['erlangCallToSecond']=0x0,this[_0x3bc9f8('0x7')]=0x0,this['erlangBusyFactor']=0x0,this[_0x3bc9f8('0xc')]=_0x386c11[_0x3bc9f8('0xc')]||0x1e,this['dialRecallInQueue']=_0x386c11['dialRecallInQueue']||![],this[_0x3bc9f8('0x46')]=_0x386c11[_0x3bc9f8('0x46')]||undefined,this[_0x3bc9f8('0x4d')]=_0x386c11[_0x3bc9f8('0x4d')]||![],this[_0x3bc9f8('0x4c')]=_0x386c11['dialAgiAfterHangupAgent']||![],this[_0x3bc9f8('0x48')]=monitorFormat[_0x386c11['monitor_format']]?monitorFormat[_0x386c11[_0x3bc9f8('0x48')]]:undefined,this['mandatoryDisposition']=_0x386c11[_0x3bc9f8('0xb')]||![],this['mandatoryDispositionPause']=_0x386c11[_0x3bc9f8('0x54')]?_0x386c11['mandatoryDispositionPause']:undefined;}module['exports']=VoiceQueue; \ No newline at end of file +const a1082_0x3c7a=['dialAMDTotalAnalysisTime','dialRandomLastDigitCallerIdNumber','dialNoSuchNumberMaxRetry','dialOriginateCallerIdName','dialNoAnswerMaxRetry','available','dialMachineRetryFrequency','dialBusyRetryFrequency','dialQueueOptions','queueStatusComplete','dialAgiAfterHangupAgent','dialActive','dialGlobalInterval','dialAMDGreeting','startProgressive','outboundUnknownCallsDay','dialPredictiveOptimization','dialQueueProject2','outboundDropCallsDayACS','dialNoSuchNumberRetryFrequency','dialAgiAfterHangupClient','handlePredictive','dialAbandonedRetryFrequency','dialNoAnswerRetryFrequency','dialAMDMinWordLength','mandatoryDispositionPause','predictiveIntervalAvailable','outboundReCallsDay','dialAMDSilenceThreshold','dialLimitChannel','outboundAnswerAgiCallsDay','wav','startPredictive','mandatoryDisposition','dialCongestionRetryFrequency','dialPrefix','sumBillable','erlangBusyFactor','dialAMDMaximumWordLength','dialTimezone','dialOriginateTimeout','exports','dialAgentRejectMaxRetry','predictiveIntervalDroppedCallsCallersExit','outboundRejectCallsDay','sendMessageOneNotActive','pTalking','predictiveIntervalMaxThreshold','talking','acwTimeout','TrunkBackup','dialPowerLevel','predictiveIntervalAvgTalktime','abandoned','erlangCallToSecond','outboundAnswerCallsDay','dialAMDActive','dialAMDMaximumNumberOfWords','predictiveIntervalHitRate','predictiveIntervalTotalCalls','message','originated','dialDropMaxRetry','dialPredictiveIntervalMaxThreshold','dialDropRetryFrequency','predictiveIntervalMinThreshold','tTxX','dialLimitQueue','outboundNoAnswerCallsDay','predictiveIntervalPauses','dialAMDAfterGreetingSilence','dialAgentRejectRetryFrequency','dialCutDigit','dialCongestionMaxRetry','name','Interval','Trunk','dialOriginateCallerIdNumber','autopause','dialMachineMaxRetry','monitor_format','outboundAbandonedDay','predictiveIntervalErlangCallsDroppedCalls','progressive','outboundBlacklistCallsDay','dialRecallMeTimeout','dialRecallInQueue','total','anonymous','dialAMDInitialSilence','timeout','acw','rrmemory','dialMethod','dialGlobalMaxRetry','answered','dialQueueProject','dialOrderByScheduledAt','outboundNoSuchCallsDay','outboundCongestionCallsDay','predictiveIntervalErlangCalls','outboundBusyCallsDay','strategy','loggedIn','dialBusyMaxRetry','dialPredictiveOptimizationPercentage','unmanaged','gsm','dropRate','predictiveIntervalMultiplicativeFactor','dialQueueTimeout','dialPredictiveInterval','dialAbandonedMaxRetry','roundrobin','type'];(function(_0x2a1e9b,_0x3c7a1e){const _0x4d9cc0=function(_0x14def8){while(--_0x14def8){_0x2a1e9b['push'](_0x2a1e9b['shift']());}};_0x4d9cc0(++_0x3c7a1e);}(a1082_0x3c7a,0x11c));const a1082_0x4d9c=function(_0x2a1e9b,_0x3c7a1e){_0x2a1e9b=_0x2a1e9b-0x0;let _0x4d9cc0=a1082_0x3c7a[_0x2a1e9b];return _0x4d9cc0;};const _0x7e0d72=a1082_0x4d9c;'use strict';const monitorFormat={'wav':_0x7e0d72('0x5c'),'wav49':'wav49','gsm':_0x7e0d72('0x35')},strategy={'rrmemory':_0x7e0d72('0x26'),'roundrobin':_0x7e0d72('0x3b')};function VoiceQueue(_0x14def8){const _0x3c37db=_0x7e0d72;this['id']=_0x14def8['id']||0x0,this[_0x3c37db('0x14')]=_0x14def8['name']||'',this[_0x3c37db('0x1a')]=_0x14def8[_0x3c37db('0x1a')]||'',this[_0x3c37db('0x3c')]=_0x14def8['type']||'inbound',this['waiting']=0x0,this[_0x3c37db('0x6d')]=0x0,this[_0x3c37db('0x21')]=0x0,this[_0x3c37db('0x29')]=0x0,this['sumDuration']=0x0,this['sumHoldTime']=0x0,this[_0x3c37db('0x61')]=0x0,this[_0x3c37db('0x34')]=0x0,this[_0x3c37db('0x72')]=0x0,this[_0x3c37db('0x31')]=0x0,this[_0x3c37db('0x42')]=0x0,this[_0x3c37db('0x25')]=_0x14def8[_0x3c37db('0x25')]||![],this[_0x3c37db('0x6e')]=_0x14def8['acwTimeout']||0xa,this[_0x3c37db('0x18')]=_0x14def8['autopause']||'no',this[_0x3c37db('0x6a')]=!![],this[_0x3c37db('0x6')]='',this[_0x3c37db('0x7')]=0x0,this['temp']=0x0,this[_0x3c37db('0x64')]=_0x14def8[_0x3c37db('0x64')]||null,this[_0x3c37db('0x49')]=_0x14def8[_0x3c37db('0x49')]?_0x14def8[_0x3c37db('0x49')]:null,this[_0x3c37db('0x48')]=_0x14def8[_0x3c37db('0x48')],this[_0x3c37db('0x27')]=_0x14def8[_0x3c37db('0x27')]||_0x3c37db('0x1d'),this[_0x3c37db('0x5a')]=_0x14def8[_0x3c37db('0x5a')]||0x0,this['dialLimitQueue']=_0x14def8[_0x3c37db('0xd')]||0x0,this[_0x3c37db('0x70')]=_0x14def8[_0x3c37db('0x70')]||0x1,this[_0x3c37db('0x4d')]=_0x14def8['dialPredictiveOptimization']||_0x3c37db('0x36'),this['dialPredictiveOptimizationPercentage']=_0x14def8[_0x3c37db('0x33')]||0.03,this[_0x3c37db('0x39')]=_0x14def8[_0x3c37db('0x39')]||0x258,this[_0x3c37db('0x40')]=_0x14def8[_0x3c37db('0x40')]||_0x3c37db('0x22'),this['dialOriginateCallerIdNumber']=_0x14def8[_0x3c37db('0x17')]||_0x3c37db('0x22'),this['dialOriginateTimeout']=_0x14def8[_0x3c37db('0x65')]||0x1e,this[_0x3c37db('0x45')]=_0x14def8[_0x3c37db('0x45')]||_0x3c37db('0xc'),this[_0x3c37db('0x38')]=_0x14def8[_0x3c37db('0x38')]||0x3,this[_0x3c37db('0x2a')]=_0x14def8['dialQueueProject']||undefined,this[_0x3c37db('0x13')]=_0x14def8['dialCongestionMaxRetry']||0x3,this[_0x3c37db('0x5f')]=_0x14def8[_0x3c37db('0x5f')]||0x96,this[_0x3c37db('0x32')]=_0x14def8[_0x3c37db('0x32')]||0x3,this[_0x3c37db('0x44')]=_0x14def8['dialBusyRetryFrequency']||0x96,this[_0x3c37db('0x41')]=_0x14def8[_0x3c37db('0x41')]||0x3,this[_0x3c37db('0x54')]=_0x14def8[_0x3c37db('0x54')]||0x96,this[_0x3c37db('0x3f')]=_0x14def8[_0x3c37db('0x3f')]||0x3,this[_0x3c37db('0x50')]=_0x14def8['dialNoSuchNumberRetryFrequency']||0x96,this[_0x3c37db('0x8')]=_0x14def8['dialDropMaxRetry']||0x3,this[_0x3c37db('0xa')]=_0x14def8['dialDropRetryFrequency']||0x96,this[_0x3c37db('0x3a')]=_0x14def8[_0x3c37db('0x3a')]||0x3,this[_0x3c37db('0x53')]=_0x14def8[_0x3c37db('0x53')]||0x96,this['dialMachineMaxRetry']=_0x14def8[_0x3c37db('0x19')]||0x3,this[_0x3c37db('0x43')]=_0x14def8[_0x3c37db('0x43')]||0x96,this[_0x3c37db('0x67')]=_0x14def8[_0x3c37db('0x67')]||0x3,this[_0x3c37db('0x11')]=_0x14def8['dialAgentRejectRetryFrequency']||0x96,this['dialGlobalMaxRetry']=_0x14def8[_0x3c37db('0x28')]||0x4,this[_0x3c37db('0x16')]=_0x14def8[_0x3c37db('0x16')]?_0x14def8[_0x3c37db('0x16')]:undefined,this[_0x3c37db('0x6f')]=_0x14def8['TrunkBackup']?_0x14def8['TrunkBackup']:undefined,this[_0x3c37db('0x60')]=_0x14def8[_0x3c37db('0x60')]||undefined,this[_0x3c37db('0x15')]=_0x14def8[_0x3c37db('0x15')]?_0x14def8[_0x3c37db('0x15')]:undefined,this['dialOrderByScheduledAt']=_0x14def8[_0x3c37db('0x2b')]||'DESC',this[_0x3c37db('0x3e')]=_0x14def8[_0x3c37db('0x3e')]||undefined,this[_0x3c37db('0x12')]=_0x14def8[_0x3c37db('0x12')]||undefined,this[_0x3c37db('0x30')]=strategy[_0x14def8[_0x3c37db('0x30')]]||'rrmemory',this[_0x3c37db('0x46')]=!![],this[_0x3c37db('0x2')]=_0x14def8[_0x3c37db('0x2')]||![],this[_0x3c37db('0x23')]=_0x14def8[_0x3c37db('0x23')],this[_0x3c37db('0x4a')]=_0x14def8[_0x3c37db('0x4a')],this[_0x3c37db('0x10')]=_0x14def8[_0x3c37db('0x10')],this[_0x3c37db('0x3d')]=_0x14def8['dialAMDTotalAnalysisTime'],this[_0x3c37db('0x55')]=_0x14def8[_0x3c37db('0x55')],this['dialAMDBetweenWordsSilence']=_0x14def8['dialAMDBetweenWordsSilence'],this[_0x3c37db('0x3')]=_0x14def8[_0x3c37db('0x3')],this['dialAMDSilenceThreshold']=_0x14def8[_0x3c37db('0x59')],this[_0x3c37db('0x63')]=_0x14def8['dialAMDMaximumWordLength'],this[_0x3c37db('0x69')]=0x0,this[_0x3c37db('0x6b')]=0x0,this[_0x3c37db('0x24')]=_0x14def8[_0x3c37db('0x24')],this[_0x3c37db('0x1')]=0x0,this[_0x3c37db('0x5b')]=0x0,this[_0x3c37db('0xe')]=0x0,this[_0x3c37db('0x2f')]=0x0,this[_0x3c37db('0x2d')]=0x0,this[_0x3c37db('0x2c')]=0x0,this[_0x3c37db('0x4c')]=0x0,this[_0x3c37db('0x1e')]=0x0,this['outboundOriginateFailureCallsDay']=0x0,this['outboundDropCallsDayCallersExit']=0x0,this['outboundDropCallsDayTimeout']=0x0,this[_0x3c37db('0x4f')]=0x0,this[_0x3c37db('0x58')]=0x0,this[_0x3c37db('0x1b')]=0x0,this[_0x3c37db('0x4b')]=undefined,this[_0x3c37db('0x5d')]=undefined,this[_0x3c37db('0x52')]=undefined,this[_0x3c37db('0x37')]=1.05,this[_0x3c37db('0x5')]=0x0,this['predictiveIntervalAnsweredCalls']=0x0,this[_0x3c37db('0x68')]=0x0,this['predictiveIntervalDroppedCallsTimeout']=0x0,this['predictiveIntervalAvgHoldtime']=0x0,this[_0x3c37db('0x71')]=0x0,this[_0x3c37db('0xf')]=0x0,this[_0x3c37db('0x57')]=0x0,this[_0x3c37db('0x6c')]=_0x14def8[_0x3c37db('0x9')]||0x14,this[_0x3c37db('0xb')]=_0x14def8[_0x3c37db('0x9')]||0xa,this[_0x3c37db('0x2e')]=0x0,this[_0x3c37db('0x1c')]=0x0,this[_0x3c37db('0x4')]=0x1,this['erlangCalls']=0x0,this[_0x3c37db('0x0')]=0x0,this['erlangAbandonmentRate']=0x0,this[_0x3c37db('0x62')]=0x0,this[_0x3c37db('0x1f')]=_0x14def8[_0x3c37db('0x1f')]||0x1e,this[_0x3c37db('0x20')]=_0x14def8['dialRecallInQueue']||![],this[_0x3c37db('0x4e')]=_0x14def8[_0x3c37db('0x4e')]||undefined,this[_0x3c37db('0x51')]=_0x14def8[_0x3c37db('0x51')]||![],this[_0x3c37db('0x47')]=_0x14def8['dialAgiAfterHangupAgent']||![],this['monitor_format']=monitorFormat[_0x14def8[_0x3c37db('0x1a')]]?monitorFormat[_0x14def8[_0x3c37db('0x1a')]]:undefined,this['mandatoryDisposition']=_0x14def8[_0x3c37db('0x5e')]||![],this[_0x3c37db('0x56')]=_0x14def8[_0x3c37db('0x56')]?_0x14def8['mandatoryDispositionPause']:undefined;}module[_0x7e0d72('0x66')]=VoiceQueue; \ No newline at end of file diff --git a/server/services/ami/model/vtigerAccount.js b/server/services/ami/model/vtigerAccount.js index 6a823fb..c9123c7 100644 --- a/server/services/ami/model/vtigerAccount.js +++ b/server/services/ami/model/vtigerAccount.js @@ -1 +1 @@ -var a1083_0x1f36=['Configurations','accessKey','username','serverUrl','remoteUri','name'];(function(_0xffc4a8,_0x1f361d){var _0x49781a=function(_0x46132d){while(--_0x46132d){_0xffc4a8['push'](_0xffc4a8['shift']());}};_0x49781a(++_0x1f361d);}(a1083_0x1f36,0x17d));var a1083_0x4978=function(_0xffc4a8,_0x1f361d){_0xffc4a8=_0xffc4a8-0x0;var _0x49781a=a1083_0x1f36[_0xffc4a8];return _0x49781a;};'use strict';function VtigerAccount(_0x46132d){var _0x48fdbb=a1083_0x4978;this['id']=_0x46132d['id']||0x0,this['name']=_0x46132d[_0x48fdbb('0x2')]||'',this[_0x48fdbb('0x5')]=_0x46132d[_0x48fdbb('0x5')]||'',this[_0x48fdbb('0x4')]=_0x46132d[_0x48fdbb('0x4')]||'',this[_0x48fdbb('0x1')]=_0x46132d[_0x48fdbb('0x1')]||'',this[_0x48fdbb('0x0')]=_0x46132d[_0x48fdbb('0x0')]||'',this[_0x48fdbb('0x3')]=_0x46132d[_0x48fdbb('0x3')]||{};}module['exports']=VtigerAccount; \ No newline at end of file +var a1083_0x4a9a=['accessKey','remoteUri','name','serverUrl','Configurations','username'];(function(_0x561924,_0x4a9a64){var _0x37990f=function(_0xf4618d){while(--_0xf4618d){_0x561924['push'](_0x561924['shift']());}};_0x37990f(++_0x4a9a64);}(a1083_0x4a9a,0x90));var a1083_0x3799=function(_0x561924,_0x4a9a64){_0x561924=_0x561924-0x0;var _0x37990f=a1083_0x4a9a[_0x561924];return _0x37990f;};'use strict';function VtigerAccount(_0xf4618d){var _0x1226c6=a1083_0x3799;this['id']=_0xf4618d['id']||0x0,this[_0x1226c6('0x2')]=_0xf4618d['name']||'',this['username']=_0xf4618d[_0x1226c6('0x5')]||'',this[_0x1226c6('0x0')]=_0xf4618d['accessKey']||'',this[_0x1226c6('0x1')]=_0xf4618d[_0x1226c6('0x1')]||'',this[_0x1226c6('0x3')]=_0xf4618d[_0x1226c6('0x3')]||'',this[_0x1226c6('0x4')]=_0xf4618d[_0x1226c6('0x4')]||{};}module['exports']=VtigerAccount; \ No newline at end of file diff --git a/server/services/ami/model/zendeskAccount.js b/server/services/ami/model/zendeskAccount.js index a882948..d4267b4 100644 --- a/server/services/ami/model/zendeskAccount.js +++ b/server/services/ami/model/zendeskAccount.js @@ -1 +1 @@ -var a1084_0xd570=['authType','Configurations','integrationTab','remoteUri','token','password','exports','username','serverUrl','type','name'];(function(_0x219056,_0xd57045){var _0x2bbd8d=function(_0x722362){while(--_0x722362){_0x219056['push'](_0x219056['shift']());}};_0x2bbd8d(++_0xd57045);}(a1084_0xd570,0xa6));var a1084_0x2bbd=function(_0x219056,_0xd57045){_0x219056=_0x219056-0x0;var _0x2bbd8d=a1084_0xd570[_0x219056];return _0x2bbd8d;};var _0x1f5f5e=a1084_0x2bbd;'use strict';function ZendeskAccount(_0x722362){var _0x39ab89=a1084_0x2bbd;this['id']=_0x722362['id']||0x0,this[_0x39ab89('0x9')]=_0x722362[_0x39ab89('0x9')]||'',this[_0x39ab89('0x6')]=_0x722362[_0x39ab89('0x6')]||'',this[_0x39ab89('0x4')]=_0x722362[_0x39ab89('0x4')]||'',this['token']=_0x722362[_0x39ab89('0x3')]||'',this[_0x39ab89('0x2')]=_0x722362['remoteUri']||'',this['authType']=_0x722362[_0x39ab89('0xa')]||'',this[_0x39ab89('0x8')]=_0x722362[_0x39ab89('0x8')]||_0x39ab89('0x1'),this[_0x39ab89('0x7')]=_0x722362['serverUrl']||'',this[_0x39ab89('0x0')]=_0x722362[_0x39ab89('0x0')]||{};}module[_0x1f5f5e('0x5')]=ZendeskAccount; \ No newline at end of file +var a1084_0x5c46=['name','token','username','authType','remoteUri','integrationTab','type','password','Configurations'];(function(_0x37d94c,_0x5c468d){var _0x24e7cc=function(_0x4fe267){while(--_0x4fe267){_0x37d94c['push'](_0x37d94c['shift']());}};_0x24e7cc(++_0x5c468d);}(a1084_0x5c46,0xaf));var a1084_0x24e7=function(_0x37d94c,_0x5c468d){_0x37d94c=_0x37d94c-0x0;var _0x24e7cc=a1084_0x5c46[_0x37d94c];return _0x24e7cc;};'use strict';function ZendeskAccount(_0x4fe267){var _0x3510cd=a1084_0x24e7;this['id']=_0x4fe267['id']||0x0,this[_0x3510cd('0x5')]=_0x4fe267[_0x3510cd('0x5')]||'',this[_0x3510cd('0x7')]=_0x4fe267[_0x3510cd('0x7')]||'',this[_0x3510cd('0x3')]=_0x4fe267[_0x3510cd('0x3')]||'',this['token']=_0x4fe267[_0x3510cd('0x6')]||'',this['remoteUri']=_0x4fe267[_0x3510cd('0x0')]||'',this['authType']=_0x4fe267[_0x3510cd('0x8')]||'',this[_0x3510cd('0x2')]=_0x4fe267[_0x3510cd('0x2')]||_0x3510cd('0x1'),this['serverUrl']=_0x4fe267['serverUrl']||'',this[_0x3510cd('0x4')]=_0x4fe267[_0x3510cd('0x4')]||{};}module['exports']=ZendeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/zohoAccount.js b/server/services/ami/model/zohoAccount.js index 1c14f1a..6b6297a 100644 --- a/server/services/ami/model/zohoAccount.js +++ b/server/services/ami/model/zohoAccount.js @@ -1 +1 @@ -var a1085_0x128a=['clientId','code','Configurations','clientSecret','description','host','serverUrl','name','refreshToken','zone'];(function(_0xc82cdd,_0x128a07){var _0x12c67c=function(_0x146e97){while(--_0x146e97){_0xc82cdd['push'](_0xc82cdd['shift']());}};_0x12c67c(++_0x128a07);}(a1085_0x128a,0x1bb));var a1085_0x12c6=function(_0xc82cdd,_0x128a07){_0xc82cdd=_0xc82cdd-0x0;var _0x12c67c=a1085_0x128a[_0xc82cdd];return _0x12c67c;};'use strict';function ZohoAccount(_0x146e97){var _0x101460=a1085_0x12c6;this['id']=_0x146e97['id']||0x0,this[_0x101460('0x4')]=_0x146e97['name']||'',this[_0x101460('0x1')]=_0x146e97[_0x101460('0x1')]||'',this[_0x101460('0x2')]=_0x146e97['host']||'',this[_0x101460('0x6')]=_0x146e97[_0x101460('0x6')]||'',this['clientId']=_0x146e97[_0x101460('0x7')]||'',this['clientSecret']=_0x146e97[_0x101460('0x0')]||'',this['serverUrl']=_0x146e97[_0x101460('0x3')]||'',this[_0x101460('0x8')]=_0x146e97[_0x101460('0x8')]||'',this['refreshToken']=_0x146e97[_0x101460('0x5')]||'',this[_0x101460('0x9')]=_0x146e97[_0x101460('0x9')]||{};}module['exports']=ZohoAccount; \ No newline at end of file +var a1085_0x1161=['code','refreshToken','host','clientId','name','serverUrl','zone','description','clientSecret','exports','Configurations'];(function(_0x5f2f4c,_0x1161ad){var _0x341a74=function(_0x4297ef){while(--_0x4297ef){_0x5f2f4c['push'](_0x5f2f4c['shift']());}};_0x341a74(++_0x1161ad);}(a1085_0x1161,0x90));var a1085_0x341a=function(_0x5f2f4c,_0x1161ad){_0x5f2f4c=_0x5f2f4c-0x0;var _0x341a74=a1085_0x1161[_0x5f2f4c];return _0x341a74;};var _0xc16f1d=a1085_0x341a;'use strict';function ZohoAccount(_0x4297ef){var _0x531fe0=a1085_0x341a;this['id']=_0x4297ef['id']||0x0,this['name']=_0x4297ef[_0x531fe0('0x3')]||'',this[_0x531fe0('0x6')]=_0x4297ef['description']||'',this[_0x531fe0('0x1')]=_0x4297ef[_0x531fe0('0x1')]||'',this[_0x531fe0('0x5')]=_0x4297ef[_0x531fe0('0x5')]||'',this[_0x531fe0('0x2')]=_0x4297ef[_0x531fe0('0x2')]||'',this[_0x531fe0('0x7')]=_0x4297ef[_0x531fe0('0x7')]||'',this[_0x531fe0('0x4')]=_0x4297ef[_0x531fe0('0x4')]||'',this[_0x531fe0('0xa')]=_0x4297ef[_0x531fe0('0xa')]||'',this[_0x531fe0('0x0')]=_0x4297ef['refreshToken']||'',this[_0x531fe0('0x9')]=_0x4297ef['Configurations']||{};}module[_0xc16f1d('0x8')]=ZohoAccount; \ No newline at end of file diff --git a/server/services/ami/preview/action.js b/server/services/ami/preview/action.js index 34d74df..44bf4d9 100644 --- a/server/services/ami/preview/action.js +++ b/server/services/ami/preview/action.js @@ -1 +1 @@ -const a1086_0x1fb5=['type','callbackat','format','string','membername','SIP/%s','dialAnswer','countagentrejectretry','ContactId','active','countdropretry','queue','ListId','util','campaigntype','countnosuchnumberretry','countabandonedretry','originatecalleridnum','Contact','countglobal','countnoanswerretry','prototype','countcongestionretry','originatecalleridname','Agent','isNil','lodash','name','countmachineretry','phone','VoiceQueueId','channelAgent','scheduledat','lastName','calleridnum','idContact','calleridname','countbusyretry','exports','UserId','callback','recallme'];(function(_0x4357cd,_0x1fb550){const _0xc2237b=function(_0x334aaf){while(--_0x334aaf){_0x4357cd['push'](_0x4357cd['shift']());}};_0xc2237b(++_0x1fb550);}(a1086_0x1fb5,0x1e2));const a1086_0xc223=function(_0x4357cd,_0x1fb550){_0x4357cd=_0x4357cd-0x0;let _0xc2237b=a1086_0x1fb5[_0x4357cd];return _0xc2237b;};const _0x42f029=a1086_0xc223;'use strict';const util=require(_0x42f029('0x23')),_=require(_0x42f029('0x6'));function checkNameSurname(_0x334aaf,_0x5bd754,_0x3bbda6){const _0x1c99a2=_0x42f029;let _0x3d0280='';!_[_0x1c99a2('0x5')](_0x5bd754)&&_0x1c99a2('0x19')===typeof _0x5bd754&&(_0x3d0280+=_0x5bd754);!_[_0x1c99a2('0x5')](_0x3bbda6)&&_0x1c99a2('0x19')===typeof _0x3bbda6&&(_0x3d0280+='\x20'+_0x3bbda6);if(_0x3d0280!=='')return _0x3d0280;return _0x334aaf;}function Action(_0x7a7a2d,_0x493028,_0x1382e4,_0x25f538){const _0x4838b3=_0x42f029;this['uniqueid']=_0x1382e4||undefined,this[_0x4838b3('0xf')]=_0x7a7a2d['id'],this[_0x4838b3('0x21')]=_0x493028[_0x4838b3('0x7')],this[_0x4838b3('0x16')]=_0x493028['type'],this[_0x4838b3('0x24')]='queue',this[_0x4838b3('0x1c')]=![],this[_0x4838b3('0x1a')]=_[_0x4838b3('0x5')](_0x7a7a2d[_0x4838b3('0x4')])?undefined:_0x7a7a2d[_0x4838b3('0x4')][_0x4838b3('0x7')],this[_0x4838b3('0xb')]=this['membername']?util['format'](_0x4838b3('0x1b'),this[_0x4838b3('0x1a')]):_0x25f538||undefined,this[_0x4838b3('0x10')]=checkNameSurname(_0x7a7a2d['Contact'][_0x4838b3('0x9')],_0x7a7a2d[_0x4838b3('0x28')]['firstName'],_0x7a7a2d[_0x4838b3('0x28')][_0x4838b3('0xd')]),this[_0x4838b3('0x1f')]=_0x7a7a2d[_0x4838b3('0x1f')]||![],this[_0x4838b3('0xe')]=_0x7a7a2d[_0x4838b3('0x28')][_0x4838b3('0x9')],this['scheduledat']=_0x7a7a2d[_0x4838b3('0xc')],this[_0x4838b3('0x11')]=_0x7a7a2d[_0x4838b3('0x11')]||0x0,this[_0x4838b3('0x2')]=_0x7a7a2d[_0x4838b3('0x2')]||0x0,this[_0x4838b3('0x0')]=_0x7a7a2d[_0x4838b3('0x0')]||0x0,this[_0x4838b3('0x29')]=(_0x7a7a2d[_0x4838b3('0x11')]||0x0)+(_0x7a7a2d[_0x4838b3('0x2')]||0x0)+(_0x7a7a2d[_0x4838b3('0x0')]||0x0)+(_0x7a7a2d[_0x4838b3('0x25')]||0x0)+(_0x7a7a2d[_0x4838b3('0x20')]||0x0)+(_0x7a7a2d[_0x4838b3('0x26')]||0x0)+(_0x7a7a2d['countmachineretry']||0x0)+(_0x7a7a2d['countagentrejectretry']||0x0),this[_0x4838b3('0x25')]=_0x7a7a2d[_0x4838b3('0x25')]||0x0,this[_0x4838b3('0x20')]=_0x7a7a2d['countdropretry']||0x0,this[_0x4838b3('0x26')]=_0x7a7a2d['countabandonedretry']||0x0,this['countmachineretry']=_0x7a7a2d[_0x4838b3('0x8')]||0x0,this[_0x4838b3('0x1d')]=_0x7a7a2d[_0x4838b3('0x1d')]||0x0,this['callback']=_0x7a7a2d[_0x4838b3('0x14')],this['callbackuniqueid']=_0x7a7a2d['callbackuniqueid'],this[_0x4838b3('0x17')]=_0x7a7a2d[_0x4838b3('0x17')],this[_0x4838b3('0x15')]=_0x7a7a2d[_0x4838b3('0x15')],this[_0x4838b3('0x1e')]=_0x7a7a2d[_0x4838b3('0x1e')],this[_0x4838b3('0x22')]=_0x7a7a2d['ListId'],this[_0x4838b3('0x13')]=_[_0x4838b3('0x5')](_0x7a7a2d[_0x4838b3('0x4')])?_0x7a7a2d[_0x4838b3('0x13')]:_0x7a7a2d['Agent']['id'],this[_0x4838b3('0xa')]=_0x7a7a2d['VoiceQueueId'],this[_0x4838b3('0x27')]='',this[_0x4838b3('0x3')]='';}Action[_0x42f029('0x1')]['getCaller']=function(){const _0x579a29=_0x42f029;return util[_0x579a29('0x18')]('\x22%s\x22\x20<%s>',this[_0x579a29('0x10')],this['number']);},module[_0x42f029('0x12')]=Action; \ No newline at end of file +const a1086_0x111d=['queue','ContactId','string','callbackat','callback','countmachineretry','prototype','countbusyretry','UserId','getCaller','countnosuchnumberretry','countabandonedretry','util','name','lodash','phone','calleridnum','isNil','countcongestionretry','campaigntype','Agent','scheduledat','VoiceQueueId','idContact','countagentrejectretry','type','exports','format','countnoanswerretry','countdropretry','calleridname','membername','active','recallme','callbackuniqueid','Contact'];(function(_0x1969cf,_0x111df3){const _0x36aa9d=function(_0x208759){while(--_0x208759){_0x1969cf['push'](_0x1969cf['shift']());}};_0x36aa9d(++_0x111df3);}(a1086_0x111d,0x186));const a1086_0x36aa=function(_0x1969cf,_0x111df3){_0x1969cf=_0x1969cf-0x0;let _0x36aa9d=a1086_0x111d[_0x1969cf];return _0x36aa9d;};const _0x410bfc=a1086_0x36aa;'use strict';const util=require(_0x410bfc('0x12')),_=require(_0x410bfc('0x14'));function checkNameSurname(_0x208759,_0x7e1d31,_0x2b5f66){const _0x545d35=_0x410bfc;let _0x2b7667='';!_['isNil'](_0x7e1d31)&&_0x545d35('0x8')===typeof _0x7e1d31&&(_0x2b7667+=_0x7e1d31);!_[_0x545d35('0x17')](_0x2b5f66)&&_0x545d35('0x8')===typeof _0x2b5f66&&(_0x2b7667+='\x20'+_0x2b5f66);if(_0x2b7667!=='')return _0x2b7667;return _0x208759;}function Action(_0x549a38,_0x25ba81,_0x144678,_0x1529f6){const _0xeb8442=_0x410bfc;this['uniqueid']=_0x144678||undefined,this[_0xeb8442('0x1d')]=_0x549a38['id'],this[_0xeb8442('0x6')]=_0x25ba81[_0xeb8442('0x13')],this[_0xeb8442('0x1f')]=_0x25ba81['type'],this[_0xeb8442('0x19')]='queue',this['dialAnswer']=![],this['membername']=_[_0xeb8442('0x17')](_0x549a38['Agent'])?undefined:_0x549a38[_0xeb8442('0x1a')][_0xeb8442('0x13')],this['channelAgent']=this[_0xeb8442('0x1')]?util['format']('SIP/%s',this[_0xeb8442('0x1')]):_0x1529f6||undefined,this[_0xeb8442('0x0')]=checkNameSurname(_0x549a38[_0xeb8442('0x5')]['phone'],_0x549a38['Contact']['firstName'],_0x549a38['Contact']['lastName']),this[_0xeb8442('0x2')]=_0x549a38[_0xeb8442('0x2')]||![],this[_0xeb8442('0x16')]=_0x549a38[_0xeb8442('0x5')][_0xeb8442('0x15')],this['scheduledat']=_0x549a38[_0xeb8442('0x1b')],this[_0xeb8442('0xd')]=_0x549a38[_0xeb8442('0xd')]||0x0,this[_0xeb8442('0x18')]=_0x549a38[_0xeb8442('0x18')]||0x0,this['countnoanswerretry']=_0x549a38[_0xeb8442('0x22')]||0x0,this['countglobal']=(_0x549a38[_0xeb8442('0xd')]||0x0)+(_0x549a38[_0xeb8442('0x18')]||0x0)+(_0x549a38[_0xeb8442('0x22')]||0x0)+(_0x549a38[_0xeb8442('0x10')]||0x0)+(_0x549a38[_0xeb8442('0x23')]||0x0)+(_0x549a38[_0xeb8442('0x11')]||0x0)+(_0x549a38[_0xeb8442('0xb')]||0x0)+(_0x549a38[_0xeb8442('0x1e')]||0x0),this[_0xeb8442('0x10')]=_0x549a38[_0xeb8442('0x10')]||0x0,this[_0xeb8442('0x23')]=_0x549a38['countdropretry']||0x0,this[_0xeb8442('0x11')]=_0x549a38[_0xeb8442('0x11')]||0x0,this[_0xeb8442('0xb')]=_0x549a38[_0xeb8442('0xb')]||0x0,this[_0xeb8442('0x1e')]=_0x549a38['countagentrejectretry']||0x0,this[_0xeb8442('0xa')]=_0x549a38[_0xeb8442('0xa')],this[_0xeb8442('0x4')]=_0x549a38[_0xeb8442('0x4')],this[_0xeb8442('0x9')]=_0x549a38['callbackat'],this[_0xeb8442('0x3')]=_0x549a38['recallme'],this[_0xeb8442('0x7')]=_0x549a38['ContactId'],this['ListId']=_0x549a38['ListId'],this[_0xeb8442('0xe')]=_['isNil'](_0x549a38['Agent'])?_0x549a38[_0xeb8442('0xe')]:_0x549a38[_0xeb8442('0x1a')]['id'],this[_0xeb8442('0x1c')]=_0x549a38['VoiceQueueId'],this['originatecalleridnum']='',this['originatecalleridname']='';}Action[_0x410bfc('0xc')][_0x410bfc('0xf')]=function(){const _0x22ec5d=_0x410bfc;return util[_0x22ec5d('0x21')]('\x22%s\x22\x20<%s>',this[_0x22ec5d('0x0')],this['number']);},module[_0x410bfc('0x20')]=Action; \ No newline at end of file diff --git a/server/services/ami/preview/index.js b/server/services/ami/preview/index.js index 7b8aba8..eb060ae 100644 --- a/server/services/ami/preview/index.js +++ b/server/services/ami/preview/index.js @@ -1 +1 @@ -const a1087_0x2e93=['callerid','complete','predictiveIntervalDroppedCallsTimeout','../ami','isValid','sumHoldTime','IS_DISACTIVED','dialCutDigit','countnosuchnumberretry','varset','ABANDONED','custom:agentnosuchnumber','YYYY-MM-DD\x20HH:mm:ss','isNil','VoiceQueueId','voice:queue:%s','dialCongestionMaxRetry','getCallerId','getCallerIdRandom','countglobal','erlangBusyFactor','[callProgressDetectingCustomer][logUnknown]','[syncHangupRequest][logAgentReject]','[action]','newexten','dialActive','extractCalleridNumber','Queue','outbound','actionid','value','destlinkedid','AnswerAGI','moment','variables','AgentReject','agentreject','NOANSWER','trunks','\x20Trunk\x20is\x20not\x20active','Empty\x20Contact','pTalking:\x20','outboundCongestionCallsDay','[callProgressDetectingCustomer][logBusy]','./rpcDb','undefined','predictiveIntervalAnsweredCalls','[HistoryDialRecallInQueue][historyCatch]','syncVarSet','dialNoAnswerRetryFrequency','statedesc','custom:agentcongestion','Contact','isActive','predictiveIntervalMultiplicativeFactor','Trunk','[syncHangup][talking][increment]','queue','decrementTalkink','catch','[Preview][validateContact][Empty\x20Contact]','responsetime','phone','setMessage','pick','isTrunkReachable','emit','acw','[syncHangup][talking][cause]','isEmpty','bind','dialBusyMaxRetry','talking','loggedInDb','unlockAgent','dialAgentRejectRetryFrequency','clockClearZombieChannels','then','outboundRejectCallsDay','transfertargetlinkedid','dialAnswer','blindtransfer','nosuchnumber','channel','syncNewExten','object','available','merge','isUndefined','linkedid','dialQueueProject','countbusyretry','\x20Queue','predictiveIntervalErlangCalls','OriginateError','preview','outboundDropCallsDayCallersExit','dialOriginateCallerIdNumber','md5','[Blacklist][error]','total','UserId','Call\x20unsuccessful','inspect','originated:\x20','[syncHangup][talking][transfer]','[originated][decrement][callProgressDetectingAgent]','predictiveIntervalAvgTalktime','cause','createCustomerHistory','outboundBusyCallsDay','contactId','updateOriginated','loggerError','erlangCalls','checkInBlack','\x20Not\x20Active','campaignsPreview','countnoanswerretry','Queue:\x20','lodash','clearZombieChannel','unmanaged','predictiveIntervalHitRate','Agent','Contact\x20is\x20undefined','variablesAction','uniqueid','predictiveIntervalDroppedCallsCallersExit','Trunk\x20not\x20work','[callProgressDetectingAgent][logCongestion]','custom:agentcomplete','NoSuchNumber','SIP/%s/%s%s','./action','rescheduleContact','syncBlindTransfer','../../../rediscache','idContact','sequence','transfererlinkedid','predictiveIntervalErlangCallsDroppedCalls','callProgressDetectingAgent','originateresponse','buildObj','countagentrejectretry','clone','run','activeContact','[RecallMe]','answertime','dialPrefix','length','syncDialEnd','originatecalleridname','talktime','Interval','booked','dialOriginateCallerIdName','No\x20such\x20channel','sumDuration','sumBillable','[callProgressDetectingCustomer]','outboundAnswerCallsDay','[CampaignPreview]\x20Campaign\x20Queue:\x20','ACTIVE','dialOriginateTimeout','custom:agentreject','logAgent','syncOriginateResponse','TrunkBackup','originatecalleridnum','[callProgressDetectingAgent][logNoSuch]','filterKey','unlockContact','agents','custom:agentnoanswer','dialMethod','startPredictive','strategy','[callProgressDetectingCustomer][logUnknownGlobal]','createCustomerFinal','enqueue','AGENTS_NOT_LOGGED','Congestion','name','cause-txt','predictiveIntervalPauses','[syncHangup][talking][decrement]','toLowerVariables','outboundNoAnswerCallsDay','[Preview][execCall][success]','extractCalleridName','countabandonedretry','logger','starttime','recallme','reason','[Dialer][decrementTalkink][no\x20Hangup][Preview]','[callProgressDetectingCustomer][logAgentReject]','Empty\x20Campaign','rescheduleContactInQueue','totalGlobal','scheduledat','Action','CONGESTION','[clearZombieChannels][talking]','answered','../../../config/logger','[callProgressDetectingCustomer][logCongestionGlobal]','outboundNoSuchCallsDay','dialAbandonedMaxRety','\x20is\x20disactive','[clearZombieChannel]','type','originated','substring','outboundUnknownCallsDay','dialBusyRetryFrequency','transfer','ListId','predictiveIntervalAvgHoldtime','abandoned','\x20IdHopper:\x20','logCustomer','loopCampaigns','outboundAnswerAgiCallsDay','SIP/%s','outboundDropCallsDayTimeout','dialGlobalMaxRetry','execCall','execRun','Busy','Global','[callProgressDetectingCustomer][logAbandoned]','outboundReCallsDay','outboundAbandonedCallsDay','[callProgressDetectingAgent][logBusy]','attendedtransfer','variable','[Preview][validateContact][Trunk\x20not\x20work]','[callProgressDetectingAgent]','status','noanswer','[callProgressDetectingCustomer][logCongestion]','pTalking','clearZombieChannels','message','validateContact','finally','Contact.phone','dialAbandonedRetryFrequency','keys','[callProgressDetectingCustomer][logBusyGlobal]','getDiff','connect','loggedIn','NoAnswer','dialRandomLastDigitCallerIdNumber','[Dialer][checkChannel][Preview]','buildAcw','[Preview][validateContact][Empty\x20Campaign]','dialRecallMeTimeout','Call\x20failed','countabandonedetry','[callProgressDetectingAgent][logAnswerAGI]','tail','prototype','sendMessageOneNotActive','response','ANSWER','stringify','active','called','waiting','scheduledAt','dialRecallInQueue','custom:agentConnectPreview','[originateFailure][logOriginateFailure]','info','campaign\x20Name:\x20','unlock','[callProgressDetectingCustomer][logNoAnswer]','voice_queue:save','util','cloneAction','custom:agentringnoanswer','hangup','IsNotLoggedIn','predictiveIntervalAvailable','countcongestionretry','RecallInQueue','\x20is\x20not\x20active','voiceQueues','recallMe','[callProgressDetectingCustomer][logAnswer]','syncCampaigns','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','disableContact','NOT_ACTIVE','erlangAbandonmentRate','size','createAgentHistory','outboundOriginateFailureCallsDay','Answer','[Preview][execCall][failure]','actionPreview','[callProgressDetectingCustomer][logNoAnswerGlobal]','[callProgressDetectingCustomer][logNoSuchGlobal]','syncHangup','Is\x20Valid','syncAttendedTransfer','dialstatus','format','addVariable','rejected','actions','logger2','lookAgent','callProgressDetectingCustomer'];(function(_0x3eef79,_0x2e93cf){const _0x2dba70=function(_0x3e4120){while(--_0x3e4120){_0x3eef79['push'](_0x3eef79['shift']());}};_0x2dba70(++_0x2e93cf);}(a1087_0x2e93,0x1be));const a1087_0x2dba=function(_0x3eef79,_0x2e93cf){_0x3eef79=_0x3eef79-0x0;let _0x2dba70=a1087_0x2e93[_0x3eef79];return _0x2dba70;};const _0x5a53ce=a1087_0x2dba;'use strict';const util=require(_0x5a53ce('0x9e')),_=require(_0x5a53ce('0x13a')),uuid=require('uuid'),moment=require(_0x5a53ce('0xe3')),md5=require('md5'),logger=require(_0x5a53ce('0x52'))(_0x5a53ce('0x121')),loggerAction=require(_0x5a53ce('0x52'))(_0x5a53ce('0xb4')),ami=require(_0x5a53ce('0xc5')),rpcDb=require(_0x5a53ce('0xee')),Action=require(_0x5a53ce('0x8')),ut=require('./util/util'),{getSocket}=require(_0x5a53ce('0xb')),io=getSocket(),Sequence=function(){};Sequence[_0x5a53ce('0x8d')][_0x5a53ce('0x38')]=function(_0x3e4120){const _0x33e9b6=_0x5a53ce;this[_0x33e9b6('0x8c')]=this['tail']?this[_0x33e9b6('0x8c')][_0x33e9b6('0x7b')](_0x3e4120):_0x3e4120();};function Preview(_0x45883a){const _0x36b5ea=_0x5a53ce;this['sequence']=new Sequence(),this[_0x36b5ea('0x137')]=_0x45883a[_0x36b5ea('0xa7')],this[_0x36b5ea('0xe8')]=_0x45883a[_0x36b5ea('0xe8')],this[_0x36b5ea('0xbe')]={},this[_0x36b5ea('0x31')]=_0x45883a[_0x36b5ea('0x31')],this['clockClearZombieChannels']=0x0,ami['on'](_0x36b5ea('0x11'),this[_0x36b5ea('0x2b')][_0x36b5ea('0x108')](this)),ami['on'](_0x36b5ea('0xa1'),this[_0x36b5ea('0xb7')][_0x36b5ea('0x108')](this)),ami['on']('hanguprequest',this['syncHangupRequest'][_0x36b5ea('0x108')](this)),ami['on']('dialend',this[_0x36b5ea('0x1b')][_0x36b5ea('0x108')](this)),ami['on'](_0x36b5ea('0xda'),this[_0x36b5ea('0x116')][_0x36b5ea('0x108')](this)),ami['on'](_0x36b5ea('0xcb'),this[_0x36b5ea('0xf2')][_0x36b5ea('0x108')](this)),ami['on'](_0x36b5ea('0x70'),this[_0x36b5ea('0xb9')][_0x36b5ea('0x108')](this)),ami['on'](_0x36b5ea('0x113'),this[_0x36b5ea('0xa')][_0x36b5ea('0x108')](this)),this[_0x36b5ea('0x63')](this[_0x36b5ea('0x137')]);}function emit(_0x13d771,_0x4de9eb,_0x1449ce){const _0x215df2=_0x5a53ce;io['to'](_0x13d771)[_0x215df2('0x104')](_0x4de9eb,_0x1449ce);}function emitCampaignPreview(_0x67b6be){const _0x2d2219=_0x5a53ce;if(_0x67b6be[_0x2d2219('0x58')]===_0x2d2219('0xde')){const _0x4c539e={'id':_0x67b6be['id'],'name':_0x67b6be[_0x2d2219('0x3b')],'strategy':_0x67b6be[_0x2d2219('0x35')],'answered':_0x67b6be['answered'],'available':_0x67b6be[_0x2d2219('0x118')],'loggedIn':_0x67b6be[_0x2d2219('0x82')],'pTalking':_0x67b6be[_0x2d2219('0x77')],'sumBillable':_0x67b6be[_0x2d2219('0x23')],'sumDuration':_0x67b6be[_0x2d2219('0x22')],'sumHoldTime':_0x67b6be[_0x2d2219('0xc7')]||0x0,'talking':_0x67b6be[_0x2d2219('0x10a')],'total':_0x67b6be[_0x2d2219('0x126')],'type':_0x67b6be['type'],'unmanaged':_0x67b6be[_0x2d2219('0x13c')],'abandoned':_0x67b6be[_0x2d2219('0x60')],'waiting':_0x67b6be[_0x2d2219('0x94')],'loggedInDb':_0x67b6be[_0x2d2219('0x10b')],'dialActive':_0x67b6be[_0x2d2219('0xdb')],'dialMethod':_0x67b6be['dialMethod'],'dialOriginateCallerIdName':_0x67b6be[_0x2d2219('0x20')],'dialOriginateCallerIdNumber':_0x67b6be[_0x2d2219('0x123')],'dialOriginateTimeout':_0x67b6be[_0x2d2219('0x28')],'dialPrefix':_0x67b6be[_0x2d2219('0x19')],'outboundAnswerAgiCallsDay':_0x67b6be[_0x2d2219('0x64')],'outboundAnswerCallsDay':_0x67b6be['outboundAnswerCallsDay'],'outboundBlacklistCallsDay':_0x67b6be['outboundBlacklistCallsDay'],'outboundBusyCallsDay':_0x67b6be[_0x2d2219('0x130')],'outboundCongestionCallsDay':_0x67b6be[_0x2d2219('0xec')],'outboundDropCallsDayACS':_0x67b6be['outboundDropCallsDayACS'],'outboundDropCallsDayCallersExit':_0x67b6be[_0x2d2219('0x122')],'outboundDropCallsDayTimeout':_0x67b6be[_0x2d2219('0x66')],'outboundNoAnswerCallsDay':_0x67b6be[_0x2d2219('0x40')],'outboundNoSuchCallsDay':_0x67b6be[_0x2d2219('0x54')],'outboundOriginateFailureCallsDay':_0x67b6be[_0x2d2219('0xb1')],'outboundReCallsDay':_0x67b6be['outboundReCallsDay'],'outboundRejectCallsDay':_0x67b6be[_0x2d2219('0x110')],'outboundUnknownCallsDay':_0x67b6be['outboundUnknownCallsDay'],'outboundAbandonedCallsDay':_0x67b6be['outboundAbandonedCallsDay'],'predictiveIntervalAnsweredCalls':_0x67b6be[_0x2d2219('0xf0')],'predictiveIntervalAvgHoldtime':_0x67b6be[_0x2d2219('0x5f')],'predictiveIntervalAvgTalktime':_0x67b6be[_0x2d2219('0x12d')],'predictiveIntervalDroppedCallsCallersExit':_0x67b6be[_0x2d2219('0x2')],'predictiveIntervalDroppedCallsTimeout':_0x67b6be[_0x2d2219('0xc4')],'predictiveIntervalErlangCalls':_0x67b6be[_0x2d2219('0x11f')],'predictiveIntervalErlangCallsDroppedCalls':_0x67b6be[_0x2d2219('0xf')],'predictiveIntervalHitRate':_0x67b6be[_0x2d2219('0x13d')],'predictiveIntervalMultiplicativeFactor':_0x67b6be[_0x2d2219('0xf8')],'predictiveIntervalPauses':_0x67b6be[_0x2d2219('0x3d')],'predictiveIntervalAvailable':_0x67b6be[_0x2d2219('0xa3')],'predictiveIntervalTotalCalls':_0x67b6be['predictiveIntervalTotalCalls'],'message':_0x67b6be[_0x2d2219('0x79')],'originated':_0x67b6be[_0x2d2219('0x59')],'erlangCalls':_0x67b6be[_0x2d2219('0x134')],'erlangCallToSecond':_0x67b6be['erlangCallToSecond'],'erlangAbandonmentRate':_0x67b6be[_0x2d2219('0xae')],'erlangBusyFactor':_0x67b6be[_0x2d2219('0xd6')],'startPredictive':_0x67b6be[_0x2d2219('0x34')],'startProgressive':_0x67b6be['startProgressive']};_0x67b6be[_0x2d2219('0xf9')]&&(_0x4c539e['Trunk']={'id':_0x67b6be[_0x2d2219('0xf9')]['id'],'name':_0x67b6be[_0x2d2219('0xf9')][_0x2d2219('0x3b')],'active':_0x67b6be[_0x2d2219('0xf9')]['active'],'callerid':_0x67b6be[_0x2d2219('0xf9')][_0x2d2219('0xc2')]});_0x67b6be[_0x2d2219('0x1e')]&&(_0x4c539e[_0x2d2219('0x1e')]={'id':_0x67b6be[_0x2d2219('0x1e')]['id'],'name':_0x67b6be[_0x2d2219('0x1e')][_0x2d2219('0x3b')]});const _0x42cf09=md5(JSON['stringify'](_0x4c539e));_0x67b6be[_0x2d2219('0x124')]!==_0x42cf09&&(_0x67b6be[_0x2d2219('0x124')]=_0x42cf09,emit(util[_0x2d2219('0xbb')](_0x2d2219('0xd1'),_0x4c539e[_0x2d2219('0x3b')]),_0x2d2219('0x9d'),_0x4c539e));}}function emitVoiceQueueChannelRemove(_0x29eab9){const _0x1a1050=_0x5a53ce;logger[_0x1a1050('0x99')](_0x1a1050('0xab'),JSON[_0x1a1050('0x91')](_0x29eab9)),emit(util[_0x1a1050('0xbb')](_0x1a1050('0xd1'),_0x29eab9[_0x1a1050('0x3b')]),'voice_queue_channel:remove',_0x29eab9);}function notSendMessagesQueue(_0x7754b5){const _0x1792cc=_0x5a53ce;_0x7754b5[_0x1792cc('0x8e')]&&(_0x7754b5[_0x1792cc('0x59')]===0x0&&_0x7754b5[_0x1792cc('0x77')]===0x0?(_0x7754b5[_0x1792cc('0x8e')]=![],_0x7754b5[_0x1792cc('0x118')]=0x0,_0x7754b5['paused']=0x0,_0x7754b5['message']=_0x1792cc('0xad'),ut['logger'](_0x1792cc('0x26'),_0x7754b5[_0x1792cc('0x3b')]+_0x1792cc('0xa6'))):(_0x7754b5[_0x1792cc('0x79')]=_0x1792cc('0xc8'),ut[_0x1792cc('0x44')](_0x1792cc('0x26'),_0x7754b5[_0x1792cc('0x3b')]+_0x1792cc('0x56'))),emitCampaignPreview(_0x7754b5));}Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x63')]=function(){const _0x4c3163=this;setInterval(function(){const _0x240937=a1087_0x2dba;_0x4c3163[_0x240937('0xaa')]();},0x7cf);},Preview['prototype'][_0x5a53ce('0xaa')]=function(){const _0x5e5189=_0x5a53ce,_0x3e3065=this[_0x5e5189('0x137')];this[_0x5e5189('0x10e')]+=0x1;for(const _0x456d6a in _0x3e3065){typeof _0x3e3065[_0x456d6a]!==_0x5e5189('0xef')&&(_0x3e3065[_0x456d6a][_0x5e5189('0x33')]===_0x5e5189('0x121')||_0x3e3065[_0x456d6a][_0x5e5189('0x33')]===_0x5e5189('0x1f'))&&_0x3e3065[_0x456d6a][_0x5e5189('0x58')]===_0x5e5189('0xde')&&(this['clockClearZombieChannels']>0x7&&(this['clockClearZombieChannels']=0x0,this['clearZombieChannels']())),typeof _0x3e3065[_0x456d6a]!=='undefined'&&_0x3e3065[_0x456d6a]['dialMethod']===_0x5e5189('0x121')&&_0x3e3065[_0x456d6a][_0x5e5189('0x58')]==='outbound'&&(_0x3e3065[_0x456d6a][_0x5e5189('0xdb')]?(this[_0x5e5189('0x101')](_0x3e3065[_0x456d6a]),this['recallMe'](_0x3e3065[_0x456d6a])):notSendMessagesQueue(_0x3e3065[_0x456d6a]));}},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x13b')]=function(_0x71622d){const _0x5ec2d5=_0x5a53ce,_0x589ccc=this;this[_0x5ec2d5('0xd')][_0x5ec2d5('0x38')](function(){const _0x196162=_0x5ec2d5;if(!_[_0x196162('0xcf')](_0x589ccc['actions'][_0x71622d]))return loggerAction[_0x196162('0x99')](_0x196162('0x50'),_0x71622d,_0x196162('0xdd'),_0x589ccc[_0x196162('0xbe')][_0x71622d]['queue'],_0x196162('0x12a'),JSON[_0x196162('0x91')](_0x589ccc[_0x196162('0x137')][_0x589ccc[_0x196162('0xbe')][_0x71622d][_0x196162('0xfb')]][_0x196162('0x59')]),'pTalking:\x20',JSON[_0x196162('0x91')](_0x589ccc[_0x196162('0x137')][_0x589ccc[_0x196162('0xbe')][_0x71622d]['queue']][_0x196162('0x77')]),JSON['stringify'](_0x589ccc[_0x196162('0xbe')][_0x71622d][_0x196162('0x112')]),JSON['stringify'](_[_0x196162('0x102')](_0x589ccc[_0x196162('0xbe')][_0x71622d],[_0x196162('0x131'),_0x196162('0x127'),_0x196162('0xd0'),_0x196162('0x5e')]))),ami[_0x196162('0x4e')]({'action':_0x196162('0x74'),'channel':_0x589ccc[_0x196162('0xbe')][_0x71622d][_0x196162('0x115')]})[_0x196162('0xfd')](function(_0x5f1c70){const _0x123869=_0x196162;_0x5f1c70[_0x123869('0x79')]===_0x123869('0x21')&&setTimeout(function(){const _0x4a0ebb=_0x123869;_0x589ccc['actions'][_0x71622d]&&(ut[_0x4a0ebb('0x132')](_0x589ccc[_0x4a0ebb('0x137')][_0x589ccc[_0x4a0ebb('0xbe')][_0x71622d][_0x4a0ebb('0xfb')]],_0x4a0ebb('0x57')),_0x589ccc[_0x4a0ebb('0xbe')][_0x71622d]['dialAnswer']===!![]&&(ut[_0x4a0ebb('0xfc')](_0x589ccc[_0x4a0ebb('0x137')][_0x589ccc[_0x4a0ebb('0xbe')][_0x71622d][_0x4a0ebb('0xfb')]],_0x4a0ebb('0x57')),ut['loggerError']('[Dialer][checkChannel][pTalking][Preview]'+_0x71622d,_0x589ccc[_0x4a0ebb('0xbe')][_0x71622d][_0x4a0ebb('0xfb')])),ut[_0x4a0ebb('0x133')](_0x4a0ebb('0x85')+_0x71622d,_0x589ccc[_0x4a0ebb('0xbe')][_0x71622d][_0x4a0ebb('0xfb')]),delete _0x589ccc[_0x4a0ebb('0xbe')][_0x71622d]);},0x2328);});});},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x78')]=function(){const _0xb46aee=_0x5a53ce,_0x7e1360=this;loggerAction['info'](_0xb46aee('0xd9'),_[_0xb46aee('0xaf')](this[_0xb46aee('0xbe')]));for(const _0x378d97 in this[_0xb46aee('0xbe')]){typeof _0x7e1360[_0xb46aee('0xbe')][_0x378d97]!==_0xb46aee('0xef')&&_0x7e1360['clearZombieChannel'](_0x378d97);}},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0xa8')]=function(_0x1c9e41){const _0x29cd4e=_0x5a53ce,_0x351052=this;rpcDb['getContactRecallMe'](_0x1c9e41['id'],ut['agentReadyId'](this[_0x29cd4e('0x31')]))[_0x29cd4e('0x10f')](function(_0x2d8e27){const _0x25d8c0=_0x29cd4e;if(!_[_0x25d8c0('0xcf')](_0x2d8e27))for(let _0x433b21=0x0;_0x433b21<_0x2d8e27[_0x25d8c0('0x1a')];_0x433b21+=0x1){if(ut[_0x25d8c0('0x80')](_0x2d8e27[_0x433b21][_0x25d8c0('0x4d')])<_0x1c9e41[_0x25d8c0('0x88')]*0x3c)_0x2d8e27[_0x433b21][_0x25d8c0('0x13e')]&&!_0x2d8e27[_0x433b21][_0x25d8c0('0x13e')]['voicePause']?_0x351052[_0x25d8c0('0x15')](_0x2d8e27[_0x433b21]['id'])['then'](ut[_0x25d8c0('0xbf')](_0x25d8c0('0x17')))[_0x25d8c0('0xfd')](ut['logger2']('[RecallMe]')):rpcDb[_0x25d8c0('0xac')](_0x2d8e27[_0x433b21]['id']);else{const _0x3f40c8=new Action(_0x2d8e27[_0x433b21],_0x1c9e41);_0x3f40c8[_0x25d8c0('0x45')]=moment()[_0x25d8c0('0xbb')]('YYYY-MM-DD\x20HH:mm:ss'),_0x1c9e41[_0x25d8c0('0x6d')]+=0x1,ut[_0x25d8c0('0x62')](_0x3f40c8,0x17,_0x25d8c0('0xa5')),_0x1c9e41[_0x25d8c0('0x96')]?(rpcDb[_0x25d8c0('0x4b')](ut['createBody'](_0x2d8e27[_0x433b21])),rpcDb[_0x25d8c0('0x12f')](_0x3f40c8,_0x25d8c0('0xf1'))):(ut[_0x25d8c0('0x62')](_0x3f40c8,0x16,'RecallFailedTimeout'),rpcDb['createCustomerHistory'](_0x3f40c8,'[HistoryRecallClose]'),rpcDb[_0x25d8c0('0x37')](_0x3f40c8,'[HistoryRecallClose]'));}}})[_0x29cd4e('0xfd')](ut[_0x29cd4e('0xbf')]('[getContactRecallMe]'));},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x101')]=function(_0xc6278f){const _0x5bcdbe=_0x5a53ce;_0xc6278f[_0x5bcdbe('0x8e')]=!![];if(ut[_0x5bcdbe('0xa2')](_0xc6278f[_0x5bcdbe('0x82')]))_0xc6278f[_0x5bcdbe('0x79')]=_0x5bcdbe('0x39');else{if(!ut[_0x5bcdbe('0xf7')](_0xc6278f[_0x5bcdbe('0xdb')]))_0xc6278f[_0x5bcdbe('0x79')]=_0x5bcdbe('0xad');else!this[_0x5bcdbe('0x103')](_0xc6278f[_0x5bcdbe('0xf9')])?!this['isTrunkReachable'](_0xc6278f['TrunkBackup'])?_0xc6278f[_0x5bcdbe('0x79')]='TRUNK_IS_NOT_REACHABLE':_0xc6278f[_0x5bcdbe('0x79')]='ACTIVE':_0xc6278f['message']=_0x5bcdbe('0x27');}emitCampaignPreview(_0xc6278f);},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0xc1')]=function(_0x420f7a,_0x106d8b,_0x193b8e){const _0x40dd6b=_0x5a53ce,_0x3e30dd=this[_0x40dd6b('0xbe')][_0x106d8b],_0x4fd837=this[_0x40dd6b('0x137')][_0x3e30dd[_0x40dd6b('0xfb')]];let _0x3a1e53;if(_0x4fd837){switch(_0x193b8e){case'1':_0x4fd837[_0x40dd6b('0x54')]+=0x1,_0x3e30dd[_0x40dd6b('0xca')]+=0x1,_0x3e30dd[_0x40dd6b('0xd5')]=ut[_0x40dd6b('0x4c')](_0x3e30dd),ut['logCustomer'](_0x3e30dd,0x0,_0x40dd6b('0x6')),ami[_0x40dd6b('0x104')](_0x40dd6b('0xcd'),ut['buildObj'](_0x3e30dd,_0x40dd6b('0x114'))),rpcDb['createCustomerHistory'](_0x3e30dd,'[callProgressDetectingCustomer][logNoSuch]');ut[_0x40dd6b('0x4c')](_0x3e30dd)>=_0x4fd837[_0x40dd6b('0x67')]?(_0x3a1e53=ut[_0x40dd6b('0x9f')](_0x3e30dd,0xf,_0x40dd6b('0x6b')),rpcDb[_0x40dd6b('0x37')](_0x3a1e53,'[callProgressDetectingCustomer][logNoSuchGlobal]')):_0x3e30dd['countnosuchnumberretry']>=_0x4fd837['dialNoSuchNumberMaxRetry']?rpcDb[_0x40dd6b('0x37')](_0x3e30dd,_0x40dd6b('0xb6')):rpcDb['rescheduleContact'](ut[_0x40dd6b('0x95')](_0x3e30dd,_0x40dd6b('0xca'),_0x4fd837['dialNoSuchNumberRetryFrequency']),_0x3e30dd[_0x40dd6b('0x10c')],_0x3e30dd[_0x40dd6b('0x16')]);delete this['actions'][_0x420f7a[_0x40dd6b('0x11b')]];break;case _0x40dd6b('0x90'):{const _0x1c2377=moment()[_0x40dd6b('0xbb')](_0x40dd6b('0xce'));_0x3e30dd[_0x40dd6b('0xff')]=_0x1c2377,_0x3e30dd[_0x40dd6b('0x18')]=_0x1c2377,_0x3e30dd[_0x40dd6b('0x112')]=!![],_0x4fd837['pTalking']+=0x1,logger[_0x40dd6b('0x99')](_0x40dd6b('0xfa'),_0x3e30dd[_0x40dd6b('0x1')],_0x40dd6b('0x11e'),_0x4fd837[_0x40dd6b('0x3b')],'pTalking:\x20',_0x4fd837['pTalking']),ami['emit']('custom:agentconnect',ut[_0x40dd6b('0x12')](_0x3e30dd,_0x40dd6b('0x81'))),_0x4fd837[_0x40dd6b('0x105')]&&ami[_0x40dd6b('0x104')](_0x40dd6b('0x97'),ut[_0x40dd6b('0x86')](_0x3e30dd));}break;case'16':ami[_0x40dd6b('0x104')](_0x40dd6b('0x5'),ut['buildObj'](_0x3e30dd,_0x40dd6b('0xc3'))),emitVoiceQueueChannelRemove(ut[_0x40dd6b('0x12')](_0x3e30dd,_0x40dd6b('0xc3'))),_0x4fd837[_0x40dd6b('0x25')]+=0x1,_0x4fd837['total']+=0x1,_0x4fd837[_0x40dd6b('0x51')]+=0x1,ut[_0x40dd6b('0xfc')](_0x4fd837,'[16]'),_0x3e30dd[_0x40dd6b('0xd5')]=ut['totalGlobal'](_0x3e30dd),ut[_0x40dd6b('0x62')](_0x3e30dd,0x4,_0x40dd6b('0xb2')),rpcDb['createCustomerHistory'](_0x3e30dd,_0x40dd6b('0xa9')),rpcDb[_0x40dd6b('0x37')](_0x3e30dd,'[callProgressDetectingCustomer][logAnswerGlobal]'),rpcDb['crateCustomerReportQueue'](_0x3e30dd),_0x4fd837['sumDuration']+=_0x3e30dd['talktime'],_0x4fd837[_0x40dd6b('0x23')]+=_0x3e30dd[_0x40dd6b('0x1d')],logger[_0x40dd6b('0x99')](_0x40dd6b('0x3e'),_0x3e30dd[_0x40dd6b('0x1')],_0x40dd6b('0x11e'),_0x4fd837['name'],_0x40dd6b('0xeb'),_0x4fd837[_0x40dd6b('0x77')]),delete this['actions'][_0x420f7a[_0x40dd6b('0x11b')]];break;case'BUSY':_0x4fd837[_0x40dd6b('0x130')]+=0x1,_0x3e30dd[_0x40dd6b('0x11d')]+=0x1,_0x3e30dd['countglobal']=ut[_0x40dd6b('0x4c')](_0x3e30dd),ut[_0x40dd6b('0x62')](_0x3e30dd,0x5,_0x40dd6b('0x6a')),ami[_0x40dd6b('0x104')]('custom:agentbusy',ut[_0x40dd6b('0x12')](_0x3e30dd,'busy')),rpcDb['createCustomerHistory'](_0x3e30dd,_0x40dd6b('0xed'));ut[_0x40dd6b('0x4c')](_0x3e30dd)>=_0x4fd837[_0x40dd6b('0x67')]?(_0x3a1e53=ut[_0x40dd6b('0x9f')](_0x3e30dd,0xf,_0x40dd6b('0x6b')),rpcDb[_0x40dd6b('0x37')](_0x3a1e53,_0x40dd6b('0x7f'))):_0x3e30dd[_0x40dd6b('0x11d')]>=_0x4fd837[_0x40dd6b('0x109')]?rpcDb['createCustomerFinal'](_0x3e30dd,'[callProgressDetectingCustomer][logBusy]'):rpcDb[_0x40dd6b('0x9')](ut[_0x40dd6b('0x95')](_0x3e30dd,_0x40dd6b('0x11d'),_0x4fd837['dialBusyRetryFrequency']),_0x3e30dd[_0x40dd6b('0x10c')],_0x3e30dd[_0x40dd6b('0x16')]);break;case _0x40dd6b('0xe7'):_0x4fd837[_0x40dd6b('0x40')]+=0x1,_0x3e30dd['countnoanswerretry']+=0x1,_0x3e30dd[_0x40dd6b('0xd5')]=ut[_0x40dd6b('0x4c')](_0x3e30dd),ut[_0x40dd6b('0x62')](_0x3e30dd,0x3,_0x40dd6b('0x83')),ami[_0x40dd6b('0x104')](_0x40dd6b('0x32'),ut[_0x40dd6b('0x12')](_0x3e30dd,_0x40dd6b('0x75'))),rpcDb[_0x40dd6b('0x12f')](_0x3e30dd,_0x40dd6b('0x9c'));ut['totalGlobal'](_0x3e30dd)>=_0x4fd837[_0x40dd6b('0x67')]?(_0x3a1e53=ut[_0x40dd6b('0x9f')](_0x3e30dd,0xf,'Global'),rpcDb[_0x40dd6b('0x37')](_0x3a1e53,_0x40dd6b('0xb5'))):_0x3e30dd[_0x40dd6b('0x138')]>=_0x4fd837['dialNoAnswerMaxRetry']?rpcDb['createCustomerFinal'](_0x3e30dd,'[callProgressDetectingCustomer][logNoAnswer]'):rpcDb[_0x40dd6b('0x9')](ut['scheduledAt'](_0x3e30dd,_0x40dd6b('0x138'),_0x4fd837[_0x40dd6b('0xf3')]),_0x3e30dd[_0x40dd6b('0x10c')],_0x3e30dd['activeContact']);break;case _0x40dd6b('0x4f'):_0x4fd837['outboundCongestionCallsDay']+=0x1,_0x3e30dd[_0x40dd6b('0xa4')]+=0x1,_0x3e30dd[_0x40dd6b('0xd5')]=ut[_0x40dd6b('0x4c')](_0x3e30dd),ut[_0x40dd6b('0x62')](_0x3e30dd,0x8,_0x40dd6b('0x3a')),ami[_0x40dd6b('0x104')](_0x40dd6b('0xf5'),ut[_0x40dd6b('0x12')](_0x3e30dd,'congestion')),rpcDb[_0x40dd6b('0x12f')](_0x3e30dd,'[callProgressDetectingCustomer][logCongestion]');ut['totalGlobal'](_0x3e30dd)>=_0x4fd837[_0x40dd6b('0x67')]?(_0x3a1e53=ut[_0x40dd6b('0x9f')](_0x3e30dd,0xf,_0x40dd6b('0x6b')),rpcDb[_0x40dd6b('0x37')](_0x3a1e53,_0x40dd6b('0x53'))):_0x3e30dd[_0x40dd6b('0xa4')]>=_0x4fd837[_0x40dd6b('0xd2')]?rpcDb[_0x40dd6b('0x37')](_0x3e30dd,_0x40dd6b('0x76')):rpcDb[_0x40dd6b('0x9')](ut[_0x40dd6b('0x95')](_0x3e30dd,'countcongestionretry',_0x4fd837[_0x40dd6b('0x5c')]),_0x3e30dd['unlockAgent'],_0x3e30dd[_0x40dd6b('0x16')]);break;case'CANCEL':_0x4fd837[_0x40dd6b('0x110')]+=0x1,_0x3e30dd['countagentrejectretry']+=0x1,_0x3e30dd[_0x40dd6b('0xd5')]=ut[_0x40dd6b('0x4c')](_0x3e30dd),ut[_0x40dd6b('0x62')](_0x3e30dd,0x14,_0x40dd6b('0xe5')),ami['emit'](_0x40dd6b('0x29'),ut[_0x40dd6b('0x12')](_0x3e30dd,_0x40dd6b('0xe6'))),rpcDb[_0x40dd6b('0x12f')](_0x3e30dd,_0x40dd6b('0xd8'));ut[_0x40dd6b('0x4c')](_0x3e30dd)>=_0x4fd837[_0x40dd6b('0x67')]?(_0x3a1e53=ut[_0x40dd6b('0x9f')](_0x3e30dd,0x14,'AgentReject'),rpcDb[_0x40dd6b('0x37')](_0x3a1e53,_0x40dd6b('0x49'))):_0x3e30dd[_0x40dd6b('0x13')]>=_0x4fd837['dialAgentRejectMaxRetry']?rpcDb[_0x40dd6b('0x37')](_0x3e30dd,'[callProgressDetectingCustomer][logAgentReject]'):rpcDb[_0x40dd6b('0x9')](ut[_0x40dd6b('0x95')](_0x3e30dd,_0x40dd6b('0x13'),_0x4fd837[_0x40dd6b('0x10d')]),_0x3e30dd['unlockAgent'],_0x3e30dd[_0x40dd6b('0x16')]);break;case _0x40dd6b('0xcc'):_0x4fd837[_0x40dd6b('0x6e')]+=0x1,_0x3e30dd[_0x40dd6b('0x43')]+=0x1,_0x3e30dd['countglobal']=ut[_0x40dd6b('0x4c')](_0x3e30dd),ut[_0x40dd6b('0x62')](_0x3e30dd,0xb,'Abandoned'),rpcDb[_0x40dd6b('0x12f')](_0x3e30dd,_0x40dd6b('0x6c'));ut[_0x40dd6b('0x4c')](_0x3e30dd)>=_0x4fd837[_0x40dd6b('0x67')]?(_0x3a1e53=ut[_0x40dd6b('0x9f')](_0x3e30dd,0xf,_0x40dd6b('0x6b')),rpcDb[_0x40dd6b('0x37')](_0x3a1e53,_0x40dd6b('0x6c'))):_0x3e30dd[_0x40dd6b('0x8a')]>=_0x4fd837[_0x40dd6b('0x55')]?rpcDb[_0x40dd6b('0x37')](_0x3e30dd,_0x40dd6b('0x6c')):rpcDb[_0x40dd6b('0x9')](ut['scheduledAt'](_0x3e30dd,_0x40dd6b('0x43'),_0x4fd837[_0x40dd6b('0x7d')]),_0x3e30dd[_0x40dd6b('0x10c')],_0x3e30dd[_0x40dd6b('0x16')]);break;default:_0x3e30dd['dialAnswer']&&(ut[_0x40dd6b('0xfc')](_0x4fd837,'[default]'),ut[_0x40dd6b('0x133')](_0x40dd6b('0x48')+_0x4fd837[_0x40dd6b('0x3b')],_0x420f7a));_0x4fd837[_0x40dd6b('0x5b')]+=0x1,_0x3e30dd[_0x40dd6b('0xd5')]=ut[_0x40dd6b('0x4c')](_0x3e30dd),ut[_0x40dd6b('0x62')](_0x3e30dd,0xc,_0x420f7a[_0x40dd6b('0x3c')]||_0x420f7a[_0x40dd6b('0xba')]),rpcDb[_0x40dd6b('0x12f')](_0x3e30dd,_0x40dd6b('0xd7'));ut[_0x40dd6b('0x4c')](_0x3e30dd)>=_0x4fd837[_0x40dd6b('0x67')]?(_0x3a1e53=ut[_0x40dd6b('0x9f')](_0x3e30dd,0xf,_0x40dd6b('0x6b')),rpcDb[_0x40dd6b('0x37')](_0x3a1e53,_0x40dd6b('0x36'))):rpcDb[_0x40dd6b('0x37')](_0x3e30dd,_0x40dd6b('0x36'));delete this[_0x40dd6b('0xbe')][_0x420f7a[_0x40dd6b('0x11b')]];}!(_0x3e30dd[_0x40dd6b('0x112')]&&_0x193b8e==='16')&&(ut['updateOriginated'](_0x4fd837,_0x40dd6b('0x24')),logger[_0x40dd6b('0x99')]('[originated][decrement][callProgressDetectingCustomer]',_0x3e30dd[_0x40dd6b('0x1')],_0x40dd6b('0x11e'),_0x4fd837[_0x40dd6b('0x3b')],_0x40dd6b('0x12a'),_0x4fd837[_0x40dd6b('0x59')])),_0x193b8e!==_0x40dd6b('0x90')&&(delete this[_0x40dd6b('0xbe')][_0x420f7a['linkedid']],delete this[_0x40dd6b('0xbe')][_0x420f7a[_0x40dd6b('0xe1')]]);}},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x10')]=function(_0x2e93fe,_0x29bf43,_0x4add85){const _0x4ff760=_0x5a53ce;if(_[_0x4ff760('0x11a')](_0x29bf43)&&_0x4ff760('0x117')!==typeof _0x29bf43)return;if(_[_0x4ff760('0x11a')](_0x4add85)&&_0x4ff760('0x117')!==typeof _0x4add85)return;switch(_0x4add85[_0x4ff760('0x47')]){case'0':ut[_0x4ff760('0x2a')](_0x2e93fe,0x0,_0x4ff760('0x6')),rpcDb[_0x4ff760('0xb0')](_0x2e93fe,_0x4ff760('0x2e'));break;case'3':ut[_0x4ff760('0x2a')](_0x2e93fe,0x3,_0x4ff760('0x83')),rpcDb[_0x4ff760('0xb0')](_0x2e93fe,'[callProgressDetectingAgent][logNoAnswer]');break;case'5':ut['logAgent'](_0x2e93fe,0x5,_0x4ff760('0x6a')),rpcDb[_0x4ff760('0xb0')](_0x2e93fe,_0x4ff760('0x6f'));break;case'8':ut['logAgent'](_0x2e93fe,0x8,'Congestion'),rpcDb[_0x4ff760('0xb0')](_0x2e93fe,'[callProgressDetectingAgent][logCongestion]');break;case'22':ut['logAgent'](_0x2e93fe,0x16,_0x4ff760('0xe2')),rpcDb[_0x4ff760('0xb0')](_0x2e93fe,_0x4ff760('0x8b'));break;default:ut[_0x4ff760('0x2a')](_0x2e93fe,0xc,_0x4add85[_0x4ff760('0x47')]),rpcDb[_0x4ff760('0xb0')](_0x2e93fe,_0x4ff760('0x4'));}ut[_0x4ff760('0x132')](_0x29bf43,_0x4ff760('0x73')),logger['info'](_0x4ff760('0x12c'),_0x2e93fe[_0x4ff760('0x1')],_0x4ff760('0x11e'),_0x29bf43[_0x4ff760('0x3b')],'originated:\x20',_0x29bf43[_0x4ff760('0x59')]),delete this['actions'][_0x2e93fe[_0x4ff760('0x1')]];},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x135')]=function(_0x27b6c3,_0x58165d,_0x32f3db,_0x528045,_0x390858){const _0xe84a1c=this;return new Promise(function(_0xcb18b2,_0x3957b9){const _0xb47465=a1087_0x2dba;if(_['isNil'](_0x58165d)||_[_0xb47465('0xcf')](_0x58165d['Contact'])||_['isNil'](_0x58165d[_0xb47465('0xf6')]['phone'])||_[_0xb47465('0xcf')](_0x58165d[_0xb47465('0xd0')])){_0x3957b9(ut[_0xb47465('0x79')](_0xb47465('0x13f'),_0x528045,_0x390858));return;}const _0x15b8b9=uuid['v4'](),_0x4180de=_0xe84a1c[_0xb47465('0x137')][_0x58165d['Queue'][_0xb47465('0x3b')]],_0x4b9ee=_0x32f3db?_0xe84a1c[_0xb47465('0x31')][_0x32f3db]['id']:undefined;_0xe84a1c[_0xb47465('0xbe')][_0x15b8b9]=new Action(_0x58165d,_0x4180de,_0x15b8b9,_0x32f3db,_0x4b9ee);const _0x192bd1=_0xe84a1c[_0xb47465('0xbe')][_0x15b8b9];_0x192bd1[_0xb47465('0x10c')]=_0x528045,_0x192bd1[_0xb47465('0x16')]=_0x390858,_0x192bd1[_0xb47465('0xc0')]=_0x32f3db,_[_0xb47465('0x107')](_0x27b6c3)?_0xe84a1c[_0xb47465('0x68')](_0x192bd1,_0x4180de,_0x58165d,_0x32f3db)[_0xb47465('0x10f')](function(_0x5ab993){const _0x12e3d2=_0xb47465;logger[_0x12e3d2('0x99')](_0x12e3d2('0x41'),_0x12e3d2('0x139')+_0x192bd1['queue']+_0x12e3d2('0x61')+_0x192bd1[_0x12e3d2('0xc')],JSON[_0x12e3d2('0x91')](_0x5ab993)),ami[_0x12e3d2('0x104')]('custom:agentcalled',ut[_0x12e3d2('0x12')](_0x192bd1,_0x12e3d2('0x93'))),_0xcb18b2(ut['message']('Calling'));})[_0xb47465('0xfd')](function(_0x5723db){const _0x33dbfa=_0xb47465;ut['logger'](_0x33dbfa('0xb3'),_0x5723db),_0x3957b9(ut['message'](_0x33dbfa('0x89'),_0x528045,_0x390858));}):(_0x4180de['outboundBlacklistCallsDay']+=0x1,ut['logBlacklist'](_0x192bd1),rpcDb['createHistory'](_0x192bd1,_0xb47465('0x125')),delete _0xe84a1c[_0xb47465('0xbe')][_0x15b8b9],_0x3957b9(ut['message']('Contact\x20in\x20black\x20List',_0x528045,_0x390858)));});},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x103')]=function(_0x2aa2ad){const _0x431cef=_0x5a53ce;return!_[_0x431cef('0xcf')](_0x2aa2ad)&&!_[_0x431cef('0xcf')](_0x2aa2ad[_0x431cef('0x3b')])&&!_[_0x431cef('0xcf')](_0x2aa2ad['active'])&&_0x2aa2ad[_0x431cef('0x92')]&&!_['isNil'](this[_0x431cef('0xe8')][util[_0x431cef('0xbb')](_0x431cef('0x65'),_0x2aa2ad['name'])])&&!_[_0x431cef('0xcf')](this[_0x431cef('0xe8')][util[_0x431cef('0xbb')](_0x431cef('0x65'),_0x2aa2ad[_0x431cef('0x3b')])][_0x431cef('0x74')])&&(this[_0x431cef('0xe8')][util[_0x431cef('0xbb')](_0x431cef('0x65'),_0x2aa2ad[_0x431cef('0x3b')])][_0x431cef('0x74')]==='reachable'||this[_0x431cef('0xe8')][util[_0x431cef('0xbb')](_0x431cef('0x65'),_0x2aa2ad[_0x431cef('0x3b')])][_0x431cef('0x74')]==='unmonitored');},Preview[_0x5a53ce('0x8d')]['run']=function(_0x2e0603,_0xe45265){const _0x45ccd4=this;return new Promise(function(_0xb316a8,_0x1ee839){_0x45ccd4['execRun'](_0x2e0603,_0xe45265)['then'](function(_0x33833f){const _0x5d1d1e=a1087_0x2dba;_0xb316a8(_[_0x5d1d1e('0x102')](_0x33833f,[_0x5d1d1e('0x79')]));})['catch'](function(_0x4b0160){const _0x1a94d5=a1087_0x2dba;_0x4b0160[_0x1a94d5('0x9b')]&&rpcDb[_0x1a94d5('0x30')](_0x2e0603),_0x4b0160[_0x1a94d5('0x92')]&&rpcDb[_0x1a94d5('0xac')](_0x2e0603),_0x1ee839(_[_0x1a94d5('0x102')](_0x4b0160,[_0x1a94d5('0x79')]));});});},Preview['prototype'][_0x5a53ce('0x69')]=function(_0x59a5ec,_0x38a2de){const _0x1ea3ea=this;return new Promise(function(_0x3ec1f4,_0x357f3c){const _0x1d2f56=a1087_0x2dba;let _0x372bae,_0x350c35;rpcDb['getContactPreview'](_0x59a5ec)['then'](function(_0x372159){const _0x1c9426=a1087_0x2dba;!_[_0x1c9426('0xcf')](_0x372159[0x0])&&(_0x350c35=_0x372159[0x0][_0x1c9426('0x46')]?![]:!![],_0x372bae=_0x372159[0x0][_0x1c9426('0x46')]?!![]:![],_0x372bae=_0x38a2de?!![]:_0x372bae);const _0x7afcd5=_0x1ea3ea[_0x1c9426('0x7a')](_0x372159);_0x7afcd5[_0x1c9426('0xc6')]?rpcDb['checkIsBlackList'](_[_0x1c9426('0x102')](_0x372159[0x0],[_0x1c9426('0xd0'),_0x1c9426('0x7c')]))[_0x1c9426('0x10f')](function(_0x3072cc){const _0xb54ad7=_0x1c9426;_0x1ea3ea[_0xb54ad7('0x135')](_0x3072cc,_0x372159[0x0],_0x38a2de,_0x350c35,_0x372bae)['then'](function(_0x5df4b6){_0x3ec1f4(_0x5df4b6);})['catch'](function(_0x4fddac){_0x357f3c(_0x4fddac);});})[_0x1c9426('0xfd')](function(_0x2ae234){const _0x591354=_0x1c9426;ut[_0x591354('0x44')]('[Preview][checkIsBlackList]',_0x2ae234),_0x357f3c(ut[_0x591354('0x79')](_0x591354('0x128'),_0x350c35,_0x372bae));}):_0x357f3c(ut[_0x1c9426('0x79')](_0x7afcd5[_0x1c9426('0x79')],_0x350c35,_0x372bae));})[_0x1d2f56('0xfd')](function(_0x2dcc65){const _0x160ec9=_0x1d2f56;ut[_0x160ec9('0x44')]('[Preview][getContactPreview]',_0x2dcc65),_0x357f3c(ut[_0x160ec9('0x79')](_0x160ec9('0x128'),![],!![]));});});},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x7a')]=function(_0x56175e){const _0x9f4b0d=_0x5a53ce;if(_[_0x9f4b0d('0xcf')](_0x56175e)||_['isEmpty'](_0x56175e)||!_['isNil'](_0x56175e[0x0]['Agent'])&&_[_0x9f4b0d('0xcf')](_0x56175e[0x0][_0x9f4b0d('0x13e')][_0x9f4b0d('0x3b')]))return ut['logger'](_0x9f4b0d('0xfe'),_0x56175e),{'isValid':![],'message':_0x9f4b0d('0xea')};const _0x2b9b83=this[_0x9f4b0d('0x137')][_0x56175e[0x0]['Queue'][_0x9f4b0d('0x3b')]];_0x2b9b83[_0x9f4b0d('0x79')]=_0x9f4b0d('0x27');if(_[_0x9f4b0d('0xcf')](_0x2b9b83))return ut[_0x9f4b0d('0x44')](_0x9f4b0d('0x87'),_0x2b9b83),{'isValid':![],'message':_0x9f4b0d('0x4a')};if(!this[_0x9f4b0d('0x103')](_0x2b9b83[_0x9f4b0d('0xf9')])){ut[_0x9f4b0d('0x44')](_0x9f4b0d('0x72'),_0x9f4b0d('0x9a')+_0x2b9b83[_0x9f4b0d('0x3b')]+_0x9f4b0d('0xe9'));if(!this[_0x9f4b0d('0x103')](_0x2b9b83['TrunkBackup']))return ut[_0x9f4b0d('0x44')]('[Preview][validateContact][Trunk\x20not\x20work]',_0x2b9b83[_0x9f4b0d('0x3b')]+'\x20Trunk\x20Backup\x20is\x20not\x20active'),{'isValid':![],'message':_0x9f4b0d('0x3')};}if(!ut[_0x9f4b0d('0xf7')](_0x2b9b83[_0x9f4b0d('0xdb')]))return ut['logger']('[Preview][validateContact][Campaign\x20Active]',_0x2b9b83[_0x9f4b0d('0x3b')]+_0x9f4b0d('0x136')),{'isValid':![],'message':'campaign\x20Name:\x20'+_0x2b9b83[_0x9f4b0d('0x3b')]+_0x9f4b0d('0x136')};return{'isValid':!![],'message':_0x9f4b0d('0xb8')};},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x68')]=function(_0x496e4,_0x150a59,_0x3333f3,_0x5945e3){const _0x2f7fb5=this;return new Promise(function(_0x3539dd,_0x3c4135){const _0x2361eb=a1087_0x2dba,_0x22bc42=_0x496e4['uniqueid'],_0x26058d=_0x2f7fb5[_0x2361eb('0x103')](_0x150a59[_0x2361eb('0xf9')])?util[_0x2361eb('0xbb')](_0x2361eb('0x7'),_0x150a59['Trunk']['name'],_[_0x2361eb('0xcf')](_0x150a59['dialPrefix'])?'':_0x150a59[_0x2361eb('0x19')]['trim']()||'',_0x150a59[_0x2361eb('0xc9')]>0x0?_0x3333f3[_0x2361eb('0xf6')]['phone'][_0x2361eb('0x5a')](_0x150a59[_0x2361eb('0xc9')]):_0x3333f3[_0x2361eb('0xf6')][_0x2361eb('0x100')]):util[_0x2361eb('0xbb')](_0x2361eb('0x7'),_[_0x2361eb('0xcf')](_0x150a59[_0x2361eb('0x2c')])?_0x150a59[_0x2361eb('0xf9')]['name']:_0x150a59['TrunkBackup'][_0x2361eb('0x3b')],_[_0x2361eb('0xcf')](_0x150a59[_0x2361eb('0x19')])?'':_0x150a59[_0x2361eb('0x19')]['trim']()||'',_0x150a59['dialCutDigit']>0x0?_0x3333f3[_0x2361eb('0xf6')][_0x2361eb('0x100')][_0x2361eb('0x5a')](_0x150a59[_0x2361eb('0xc9')]):_0x3333f3[_0x2361eb('0xf6')][_0x2361eb('0x100')]),_0x32c7ed=_0x2f7fb5[_0x2361eb('0x103')](_0x150a59[_0x2361eb('0xf9')])?ut[_0x2361eb('0xd3')](_0x150a59[_0x2361eb('0xf9')][_0x2361eb('0xc2')],_0x150a59['dialOriginateCallerIdName'],_0x150a59['dialRandomLastDigitCallerIdNumber']>0x0?ut[_0x2361eb('0xd4')](_0x150a59[_0x2361eb('0x123')],_0x150a59[_0x2361eb('0x84')]):_0x150a59[_0x2361eb('0x123')]):ut[_0x2361eb('0xd3')](_[_0x2361eb('0xcf')](_0x150a59[_0x2361eb('0x2c')])?_0x150a59['Trunk'][_0x2361eb('0xc2')]:_0x150a59[_0x2361eb('0x2c')][_0x2361eb('0xc2')],_0x150a59['dialOriginateCallerIdName'],_0x150a59[_0x2361eb('0x84')]>0x0?ut[_0x2361eb('0xd4')](_0x150a59[_0x2361eb('0x123')],_0x150a59['dialRandomLastDigitCallerIdNumber']):_0x150a59[_0x2361eb('0x123')]);_0x32c7ed&&(_0x496e4[_0x2361eb('0x1c')]=ut[_0x2361eb('0x42')](_0x32c7ed),_0x496e4[_0x2361eb('0x2d')]=ut[_0x2361eb('0xdc')](_0x32c7ed));const _0x1331b8=ut['addVariables'](_0x150a59,_0x3333f3,_0x26058d,_0x32c7ed,_0x22bc42,_0x496e4);_[_0x2361eb('0x119')](_0x496e4,ut[_0x2361eb('0x3f')](_0x1331b8)),_0x496e4[_0x2361eb('0x45')]=moment()[_0x2361eb('0xbb')]('YYYY-MM-DD\x20HH:mm:ss'),ami['Action'](ut[_0x2361eb('0x0')](_0x496e4,_0x150a59,_0x1331b8,_0x496e4[_0x2361eb('0x16')],_0x5945e3))[_0x2361eb('0x10f')](function(_0x3488fe){const _0x3cf1e3=_0x2361eb;_0x150a59[_0x3cf1e3('0x59')]+=0x1,logger[_0x3cf1e3('0x99')]('[originated][increment]',_0x22bc42,_0x3cf1e3('0x11e'),_0x150a59[_0x3cf1e3('0x3b')],'originated:\x20',_0x150a59[_0x3cf1e3('0x59')]),_0x3539dd(_0x3488fe);})['catch'](function(_0x51d60a){const _0x20f4ca=_0x2361eb;ut['logAgent'](_0x496e4,0xe,_0x20f4ca('0x120')),rpcDb[_0x20f4ca('0xb0')](_0x496e4,_0x20f4ca('0x98')),_0x3c4135(_0x51d60a);});});},Preview[_0x5a53ce('0x8d')]['syncNewExten']=function(_0x3f40b4){const _0x4c8ce8=_0x5a53ce;this['actions'][_0x3f40b4['linkedid']]&&(this[_0x4c8ce8('0xbe')][_0x3f40b4[_0x4c8ce8('0x11b')]][_0x4c8ce8('0x115')]=_0x3f40b4[_0x4c8ce8('0x115')]);},Preview[_0x5a53ce('0x8d')]['syncOriginateResponse']=function(_0x484609){const _0x3c698a=_0x5a53ce,_0xa12dd7=this,_0x43fd1b=this['actions'][_0x484609[_0x3c698a('0xdf')]];if(_0x43fd1b){_0x43fd1b[_0x3c698a('0xc0')]&&this['agents'][_0x43fd1b[_0x3c698a('0xc0')]]&&ut['logLookAgent'](_0x43fd1b,this[_0x3c698a('0x31')][_0x43fd1b[_0x3c698a('0xc0')]]['name'],this['agents'][_0x43fd1b[_0x3c698a('0xc0')]]['id']);const _0x3ad8da=_[_0x3c698a('0x14')](_0x43fd1b);_0x3ad8da[_0x3c698a('0xff')]=moment()[_0x3c698a('0xbb')](_0x3c698a('0xce'));const _0x48f309=_0xa12dd7[_0x3c698a('0x137')][_0x43fd1b['queue']];ut['isFailure'](_0x484609[_0x3c698a('0x8f')])?(_0x43fd1b[_0x3c698a('0x10c')]&&rpcDb[_0x3c698a('0x30')](_0x43fd1b['idContact']),_0x43fd1b[_0x3c698a('0x16')]&&rpcDb['disableContact'](_0x43fd1b[_0x3c698a('0xc')]),ami[_0x3c698a('0x104')](_0x3c698a('0xa0'),ut[_0x3c698a('0x12')](_0x43fd1b,_0x3c698a('0xbd'))),this['callProgressDetectingAgent'](_0x3ad8da,_0x48f309,_0x484609)):(_0x43fd1b[_0x3c698a('0x45')]=moment()[_0x3c698a('0xbb')](_0x3c698a('0xce')),ut['logAgent'](_0x3ad8da,0x4,_0x3c698a('0xb2')),rpcDb[_0x3c698a('0xb0')](_0x3ad8da,'[callProgressDetectingAgent][logAnswer]'));}},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0xb7')]=function(_0x40a2f7){const _0x75efa=_0x5a53ce,_0x121d48=this[_0x75efa('0xbe')][_0x40a2f7[_0x75efa('0x11b')]];let _0x2ebe30;_0x121d48&&(_0x2ebe30=this['campaignsPreview'][_0x121d48[_0x75efa('0xfb')]],logger['info']('[syncHangup][talking]',_0x40a2f7['linkedid'],_0x75efa('0x11e'),_0x2ebe30[_0x75efa('0x3b')],_0x75efa('0xeb'),_0x2ebe30['pTalking']));if(this[_0x75efa('0xbe')][_0x40a2f7[_0x75efa('0x11b')]]&&_0x40a2f7[_0x75efa('0x11b')]!==_0x40a2f7[_0x75efa('0x1')]){if(_0x40a2f7['cause']==='16'&&this[_0x75efa('0xbe')][_0x40a2f7[_0x75efa('0x11b')]][_0x75efa('0x112')])this[_0x75efa('0xc1')](_0x40a2f7,_0x40a2f7[_0x75efa('0x11b')],_0x40a2f7[_0x75efa('0x12e')]);else this['actions'][_0x40a2f7[_0x75efa('0x11b')]][_0x75efa('0x112')]&&(logger[_0x75efa('0x99')](_0x75efa('0x106'),_0x40a2f7[_0x75efa('0x11b')],_0x40a2f7[_0x75efa('0x12e')],'\x20Queue',_0x2ebe30[_0x75efa('0x3b')],_0x75efa('0xeb'),_0x2ebe30[_0x75efa('0x77')]),this[_0x75efa('0xc1')](_0x40a2f7,_0x40a2f7[_0x75efa('0x11b')],_0x40a2f7[_0x75efa('0x12e')]));}else{if(_0x121d48&&_['isNil'](_0x121d48[_0x75efa('0xf4')])&&_0x2ebe30[_0x75efa('0x11c')]&&_0x40a2f7[_0x75efa('0x11b')]===_0x40a2f7['uniqueid']&&_['isNil'](_0x40a2f7[_0x75efa('0x47')])&&_0x40a2f7[_0x75efa('0x12e')]==='16'&&_0x40a2f7['channelstate']==='6'&&_[_0x75efa('0x11a')](_0x121d48[_0x75efa('0x5d')]))_0x121d48[_0x75efa('0x10c')]&&rpcDb[_0x75efa('0x30')](_0x121d48[_0x75efa('0xc')]),_0x121d48[_0x75efa('0x16')]&&rpcDb['disableContact'](_0x121d48[_0x75efa('0xc')]),_0x40a2f7[_0x75efa('0x47')]='22',this[_0x75efa('0x10')](_0x121d48,_0x2ebe30,_0x40a2f7);else{if(_0x121d48&&_0x121d48['transfer']){if(_0x40a2f7[_0x75efa('0x12e')]==='16'&&this[_0x75efa('0xbe')][_0x40a2f7[_0x75efa('0x11b')]][_0x75efa('0x112')])logger['info'](_0x75efa('0x12b'),_0x40a2f7[_0x75efa('0x11b')],_0x40a2f7[_0x75efa('0x12e')],_0x75efa('0x11e'),_0x2ebe30[_0x75efa('0x3b')],_0x75efa('0xeb'),_0x2ebe30[_0x75efa('0x77')]),this[_0x75efa('0xc1')](_0x40a2f7,_0x40a2f7[_0x75efa('0x11b')],_0x40a2f7['cause']);else this[_0x75efa('0xbe')][_0x40a2f7['linkedid']][_0x75efa('0x112')]&&(logger[_0x75efa('0x99')]('[syncHangup][talking][cause]',_0x40a2f7[_0x75efa('0x11b')],_0x40a2f7[_0x75efa('0x12e')],'\x20Queue',_0x2ebe30[_0x75efa('0x3b')],_0x75efa('0xeb'),_0x2ebe30['pTalking']),this[_0x75efa('0xc1')](_0x40a2f7,_0x40a2f7[_0x75efa('0x11b')],_0x40a2f7[_0x75efa('0x12e')]));}}}},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0x1b')]=function(_0x17bd78){const _0x16be84=_0x5a53ce;this[_0x16be84('0xbe')][_0x17bd78[_0x16be84('0xe1')]]&&_0x17bd78['destlinkedid']!==_0x17bd78['destuniqueid']&&this[_0x16be84('0xc1')](_0x17bd78,_0x17bd78[_0x16be84('0xe1')],_0x17bd78[_0x16be84('0xba')]);},Preview[_0x5a53ce('0x8d')]['syncHangupRequest']=function(_0x1568cf){const _0x4597df=_0x5a53ce;this[_0x4597df('0xbe')][_0x1568cf[_0x4597df('0x11b')]]&&_0x1568cf[_0x4597df('0x11b')]!==_0x1568cf[_0x4597df('0x1')]&&!this['actions'][_0x1568cf[_0x4597df('0x11b')]][_0x4597df('0x112')]&&(_0x1568cf[_0x4597df('0x12e')]==='1'&&this[_0x4597df('0xc1')](_0x1568cf,_0x1568cf['linkedid'],_0x1568cf[_0x4597df('0x12e')]));},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0xbc')]=function(_0x55f5ea,_0x3b8758,_0x4b9545){const _0x2c7283=_0x5a53ce;this[_0x2c7283('0xbe')][_0x55f5ea]&&(_[_0x2c7283('0xcf')](this[_0x2c7283('0xbe')][_0x55f5ea]['variables'])&&(this['actions'][_0x55f5ea][_0x2c7283('0xe4')]={}),this[_0x2c7283('0xbe')][_0x55f5ea][_0x2c7283('0xe4')][_0x3b8758]=_0x4b9545);},Preview[_0x5a53ce('0x8d')]['syncVarSet']=function(_0x393f71){const _0xcd03ab=_0x5a53ce;try{!_[_0xcd03ab('0xcf')](_0x393f71)&&(ut[_0xcd03ab('0x2f')](_[_0xcd03ab('0x7e')](_0x393f71[_0xcd03ab('0x71')])[0x0])&&this[_0xcd03ab('0xbc')](_0x393f71[_0xcd03ab('0x1')],_['keys'](_0x393f71[_0xcd03ab('0x71')])[0x0],_0x393f71[_0xcd03ab('0xe0')]));}catch(_0x32b88b){logger['error']('[syncVarSet][Preview]',util[_0xcd03ab('0x129')](_0x32b88b,{'showHidden':![],'depth':null}));}},Preview[_0x5a53ce('0x8d')][_0x5a53ce('0xb9')]=function(_0x515dab){const _0xab8dd5=_0x5a53ce;_0x515dab&&(this[_0xab8dd5('0xbe')][_0x515dab[_0xab8dd5('0x111')]]&&(this[_0xab8dd5('0xbe')][_0x515dab['transfertargetlinkedid']]['transfer']=!![]));},Preview['prototype'][_0x5a53ce('0xa')]=function(_0x24be4f){const _0x82231=_0x5a53ce;_0x24be4f&&(this['actions'][_0x24be4f['transfererlinkedid']]&&(this[_0x82231('0xbe')][_0x24be4f[_0x82231('0xe')]][_0x82231('0x5d')]=!![]));},module['exports']=Preview; \ No newline at end of file +const a1087_0x50fc=['statedesc','type','countnoanswerretry','transfer','dialAnswer','\x20is\x20disactive','createCustomerFinal','complete','[callProgressDetectingAgent][logBusy]','\x20is\x20not\x20active','UserId','logBlacklist','syncBlindTransfer','predictiveIntervalDroppedCallsCallersExit','[HistoryRecallClose]','agents','[action]','erlangCallToSecond','[RecallMe]','clearZombieChannels','dialCongestionMaxRetry','attendedtransfer','Empty\x20Campaign','rejected','Calling','queue','cloneAction','unlockAgent','recallMe','SIP/%s','noanswer','phone','disableContact','dialNoAnswerMaxRetry','Answer','decrementTalkink','dialRecallInQueue','TrunkBackup','RecallFailedTimeout','error','callProgressDetectingAgent','[originated][decrement][callProgressDetectingCustomer]','custom:agentnosuchnumber','Contact','startProgressive','[Dialer][decrementTalkink][no\x20Hangup][Preview]','addVariables','Action','crateCustomerReportQueue','dialCutDigit','addVariable','\x20Trunk\x20Backup\x20is\x20not\x20active','stringify','responsetime','totalGlobal','syncHangup','createAgentHistory','reason','actionid','execCall','lodash','destlinkedid','execRun','trunks','outboundDropCallsDayACS','starttime','originated','active','NOT_ACTIVE','sendMessageOneNotActive','format','preview','pTalking:\x20','[syncHangup][talking][cause]','variable','[CampaignPreview]\x20Campaign\x20Queue:\x20','activeContact','loopCampaigns','destuniqueid','syncDialEnd','outboundNoAnswerCallsDay','length','sequence','size','isTrunkReachable','filterKey','Agent','dialOriginateCallerIdNumber','substring','dialBusyRetryFrequency','../ami','setMessage','Busy','bind','varset','outbound','undefined','pTalking','getCallerIdRandom','clearZombieChannel','OriginateError','recallme','cause','trim','[callProgressDetectingCustomer][logNoAnswer]','cause-txt','scheduledat','isValid','checkInBlack','Contact\x20is\x20undefined','Abandoned','custom:agentConnectPreview','isUndefined','AgentReject','lookAgent','startPredictive','contactId','[Preview][getContactPreview]','callerid','actions','originateresponse','transfertargetlinkedid','custom:agentcalled','[callProgressDetectingCustomer][logNoAnswerGlobal]','Global','createCustomerHistory','keys','[callProgressDetectingCustomer][logAnswer]','countbusyretry','logger','variables','originated:\x20','isNil','[callProgressDetectingAgent][logNoSuch]','dialMethod','syncNewExten','[Preview][execCall][failure]','campaign\x20Name:\x20','dialNoSuchNumberRetryFrequency','No\x20such\x20channel','predictiveIntervalPauses','dialBusyMaxRetry','[callProgressDetectingCustomer][logCongestion]','channelstate','logger2','voicePause','ANSWER','value','Queue','transfererlinkedid','Call\x20unsuccessful','run','outboundCongestionCallsDay','available','[Preview][validateContact][Empty\x20Campaign]','outboundNoSuchCallsDay','talktime','predictiveIntervalAvgTalktime','dialstatus','outboundBusyCallsDay','getCallerId','[originated][decrement][callProgressDetectingAgent]','voice:queue:%s','dialAbandonedRetryFrequency','[callProgressDetectingCustomer][logAbandoned]','clone','updateOriginated','ACTIVE','prototype','hanguprequest','dialAgentRejectMaxRetry','Call\x20failed','[Preview][execCall][success]','./util/util','[Preview][checkIsBlackList]','getDiff','md5','[callProgressDetectingCustomer][logAgentReject]','answertime','../../../config/logger','pick','originatecalleridname','Is\x20Valid','abandoned','\x20Queue','[16]','agentReadyId','Congestion','dialGlobalMaxRetry','voiceQueues','createBody','countagentrejectretry','total','status','[syncHangup][talking]','syncAttendedTransfer','buildAcw','hangup','blindtransfer','dialRecallMeTimeout','response','./rpcDb','[clearZombieChannel]','booked','IS_DISACTIVED','VoiceQueueId','buildObj','erlangAbandonmentRate','voice_queue_channel:remove','Empty\x20Contact','syncHangupRequest','rescheduleContactInQueue','uuid','strategy','variablesAction','nosuchnumber','custom:agentringnoanswer','validateContact','campaignsPreview','talking','unlockContact','loggerError','IsNotLoggedIn','congestion','predictiveIntervalMultiplicativeFactor','ListId','extractCalleridName','dialOriginateCallerIdName','\x20Trunk\x20is\x20not\x20active','CONGESTION','outboundAnswerCallsDay','name','unmanaged','called','rescheduleContact','syncVarSet','[callProgressDetectingAgent][logCongestion]','Interval','catch','paused','[callProgressDetectingCustomer][logNoSuch]','clockClearZombieChannels','outboundUnknownCallsDay','[callProgressDetectingCustomer][logAnswerGlobal]','predictiveIntervalErlangCalls','enqueue','createHistory','dialAbandonedMaxRety','message','Queue:\x20','[callProgressDetectingAgent][logAnswer]','then','isActive','[callProgressDetectingCustomer][logNoSuchGlobal]','unlock','countglobal','reachable','outboundBlacklistCallsDay','linkedid','outboundReCallsDay','answered','[Preview][validateContact][Trunk\x20not\x20work]','custom:agentcongestion','[callProgressDetectingCustomer][logCongestionGlobal]','[Preview][validateContact][Empty\x20Contact]','TRUNK_IS_NOT_REACHABLE','scheduledAt','countnosuchnumberretry','[syncHangup][talking][decrement]','dialend','YYYY-MM-DD\x20HH:mm:ss','dialOriginateTimeout','\x20Not\x20Active','outboundOriginateFailureCallsDay','Trunk','outboundRejectCallsDay','syncCampaigns','idContact','logAgent','loggedIn','callProgressDetectingCustomer','outboundAbandonedCallsDay','syncOriginateResponse','[callProgressDetectingAgent]','uniqueid','getContactPreview','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','NoAnswer','dialPrefix','isEmpty','util','custom:agentbusy','dialRandomLastDigitCallerIdNumber','[callProgressDetectingAgent][logAnswerAGI]','[callProgressDetectingCustomer][logBusy]','predictiveIntervalTotalCalls','dialNoSuchNumberMaxRetry','./action','dialActive','channel','sumBillable','countabandonedetry','sumHoldTime','unmonitored','originatecalleridnum','NoSuchNumber','custom:agentconnect','inspect','sumDuration','tail','../../../rediscache','logCustomer','info','emit'];(function(_0x557513,_0x50fc6f){const _0x13e22f=function(_0x16907b){while(--_0x16907b){_0x557513['push'](_0x557513['shift']());}};_0x13e22f(++_0x50fc6f);}(a1087_0x50fc,0x73));const a1087_0x13e2=function(_0x557513,_0x50fc6f){_0x557513=_0x557513-0x0;let _0x13e22f=a1087_0x50fc[_0x557513];return _0x13e22f;};const _0x5da885=a1087_0x13e2;'use strict';const util=require(_0x5da885('0xaf')),_=require(_0x5da885('0x103')),uuid=require(_0x5da885('0x61')),moment=require('moment'),md5=require('md5'),logger=require(_0x5da885('0x40'))(_0x5da885('0x10e')),loggerAction=require(_0x5da885('0x40'))('actionPreview'),ami=require(_0x5da885('0x121')),rpcDb=require(_0x5da885('0x56')),Action=require(_0x5da885('0xb6')),ut=require(_0x5da885('0x3a')),{getSocket}=require(_0x5da885('0xc3')),io=getSocket(),Sequence=function(){};Sequence[_0x5da885('0x35')][_0x5da885('0x82')]=function(_0x16907b){const _0x3477af=_0x5da885;this[_0x3477af('0xc2')]=this[_0x3477af('0xc2')]?this[_0x3477af('0xc2')]['finally'](_0x16907b):_0x16907b();};function Preview(_0x5a8f5e){const _0x57bed4=_0x5da885;this['sequence']=new Sequence(),this[_0x57bed4('0x67')]=_0x5a8f5e[_0x57bed4('0x4a')],this[_0x57bed4('0x106')]=_0x5a8f5e[_0x57bed4('0x106')],this[_0x57bed4('0x4')]={},this['agents']=_0x5a8f5e[_0x57bed4('0xd6')],this[_0x57bed4('0x7e')]=0x0,ami['on'](_0x57bed4('0x5'),this[_0x57bed4('0xa7')][_0x57bed4('0x124')](this)),ami['on'](_0x57bed4('0x52'),this[_0x57bed4('0xfe')]['bind'](this)),ami['on'](_0x57bed4('0x36'),this[_0x57bed4('0x5f')][_0x57bed4('0x124')](this)),ami['on'](_0x57bed4('0x9a'),this[_0x57bed4('0x116')][_0x57bed4('0x124')](this)),ami['on']('newexten',this[_0x57bed4('0x14')]['bind'](this)),ami['on'](_0x57bed4('0x125'),this[_0x57bed4('0x78')][_0x57bed4('0x124')](this)),ami['on'](_0x57bed4('0xdc'),this[_0x57bed4('0x50')]['bind'](this)),ami['on'](_0x57bed4('0x53'),this[_0x57bed4('0xd3')]['bind'](this)),this[_0x57bed4('0x114')](this[_0x57bed4('0x67')]);}function emit(_0x1973ad,_0x227de3,_0x5f8b64){io['to'](_0x1973ad)['emit'](_0x227de3,_0x5f8b64);}function emitCampaignPreview(_0x193ae2){const _0x3bd397=_0x5da885;if(_0x193ae2[_0x3bd397('0xc8')]===_0x3bd397('0x126')){const _0x5596d6={'id':_0x193ae2['id'],'name':_0x193ae2[_0x3bd397('0x74')],'strategy':_0x193ae2[_0x3bd397('0x62')],'answered':_0x193ae2[_0x3bd397('0x91')],'available':_0x193ae2[_0x3bd397('0x26')],'loggedIn':_0x193ae2['loggedIn'],'pTalking':_0x193ae2[_0x3bd397('0x128')],'sumBillable':_0x193ae2[_0x3bd397('0xb9')],'sumDuration':_0x193ae2[_0x3bd397('0xc1')],'sumHoldTime':_0x193ae2[_0x3bd397('0xbb')]||0x0,'talking':_0x193ae2[_0x3bd397('0x68')],'total':_0x193ae2[_0x3bd397('0x4d')],'type':_0x193ae2[_0x3bd397('0xc8')],'unmanaged':_0x193ae2[_0x3bd397('0x75')],'abandoned':_0x193ae2[_0x3bd397('0x44')],'waiting':_0x193ae2['waiting'],'loggedInDb':_0x193ae2['loggedInDb'],'dialActive':_0x193ae2[_0x3bd397('0xb7')],'dialMethod':_0x193ae2['dialMethod'],'dialOriginateCallerIdName':_0x193ae2['dialOriginateCallerIdName'],'dialOriginateCallerIdNumber':_0x193ae2[_0x3bd397('0x11e')],'dialOriginateTimeout':_0x193ae2[_0x3bd397('0x9c')],'dialPrefix':_0x193ae2[_0x3bd397('0xad')],'outboundAnswerAgiCallsDay':_0x193ae2['outboundAnswerAgiCallsDay'],'outboundAnswerCallsDay':_0x193ae2[_0x3bd397('0x73')],'outboundBlacklistCallsDay':_0x193ae2[_0x3bd397('0x8e')],'outboundBusyCallsDay':_0x193ae2['outboundBusyCallsDay'],'outboundCongestionCallsDay':_0x193ae2[_0x3bd397('0x25')],'outboundDropCallsDayACS':_0x193ae2[_0x3bd397('0x107')],'outboundDropCallsDayCallersExit':_0x193ae2['outboundDropCallsDayCallersExit'],'outboundDropCallsDayTimeout':_0x193ae2['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x193ae2[_0x3bd397('0x117')],'outboundNoSuchCallsDay':_0x193ae2['outboundNoSuchCallsDay'],'outboundOriginateFailureCallsDay':_0x193ae2[_0x3bd397('0x9e')],'outboundReCallsDay':_0x193ae2[_0x3bd397('0x90')],'outboundRejectCallsDay':_0x193ae2[_0x3bd397('0xa0')],'outboundUnknownCallsDay':_0x193ae2[_0x3bd397('0x7f')],'outboundAbandonedCallsDay':_0x193ae2[_0x3bd397('0xa6')],'predictiveIntervalAnsweredCalls':_0x193ae2['predictiveIntervalAnsweredCalls'],'predictiveIntervalAvgHoldtime':_0x193ae2['predictiveIntervalAvgHoldtime'],'predictiveIntervalAvgTalktime':_0x193ae2[_0x3bd397('0x2a')],'predictiveIntervalDroppedCallsCallersExit':_0x193ae2[_0x3bd397('0xd4')],'predictiveIntervalDroppedCallsTimeout':_0x193ae2['predictiveIntervalDroppedCallsTimeout'],'predictiveIntervalErlangCalls':_0x193ae2[_0x3bd397('0x81')],'predictiveIntervalErlangCallsDroppedCalls':_0x193ae2['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x193ae2['predictiveIntervalHitRate'],'predictiveIntervalMultiplicativeFactor':_0x193ae2[_0x3bd397('0x6d')],'predictiveIntervalPauses':_0x193ae2[_0x3bd397('0x19')],'predictiveIntervalAvailable':_0x193ae2['predictiveIntervalAvailable'],'predictiveIntervalTotalCalls':_0x193ae2[_0x3bd397('0xb4')],'message':_0x193ae2[_0x3bd397('0x85')],'originated':_0x193ae2[_0x3bd397('0x109')],'erlangCalls':_0x193ae2['erlangCalls'],'erlangCallToSecond':_0x193ae2[_0x3bd397('0xd8')],'erlangAbandonmentRate':_0x193ae2[_0x3bd397('0x5c')],'erlangBusyFactor':_0x193ae2['erlangBusyFactor'],'startPredictive':_0x193ae2[_0x3bd397('0x0')],'startProgressive':_0x193ae2[_0x3bd397('0xf3')]};_0x193ae2[_0x3bd397('0x9f')]&&(_0x5596d6[_0x3bd397('0x9f')]={'id':_0x193ae2[_0x3bd397('0x9f')]['id'],'name':_0x193ae2[_0x3bd397('0x9f')][_0x3bd397('0x74')],'active':_0x193ae2[_0x3bd397('0x9f')][_0x3bd397('0x10a')],'callerid':_0x193ae2[_0x3bd397('0x9f')]['callerid']});_0x193ae2['Interval']&&(_0x5596d6[_0x3bd397('0x7a')]={'id':_0x193ae2[_0x3bd397('0x7a')]['id'],'name':_0x193ae2[_0x3bd397('0x7a')][_0x3bd397('0x74')]});const _0x2cc4da=md5(JSON['stringify'](_0x5596d6));_0x193ae2['md5']!==_0x2cc4da&&(_0x193ae2[_0x3bd397('0x3d')]=_0x2cc4da,emit(util[_0x3bd397('0x10d')](_0x3bd397('0x2f'),_0x5596d6[_0x3bd397('0x74')]),'voice_queue:save',_0x5596d6));}}function emitVoiceQueueChannelRemove(_0x28bddd){const _0x6b9ee0=_0x5da885;logger['info'](_0x6b9ee0('0xab'),JSON[_0x6b9ee0('0xfb')](_0x28bddd)),emit(util['format'](_0x6b9ee0('0x2f'),_0x28bddd[_0x6b9ee0('0x74')]),_0x6b9ee0('0x5d'),_0x28bddd);}function notSendMessagesQueue(_0x2145fd){const _0x3cea9d=_0x5da885;_0x2145fd['sendMessageOneNotActive']&&(_0x2145fd['originated']===0x0&&_0x2145fd[_0x3cea9d('0x128')]===0x0?(_0x2145fd[_0x3cea9d('0x10c')]=![],_0x2145fd['available']=0x0,_0x2145fd[_0x3cea9d('0x7c')]=0x0,_0x2145fd[_0x3cea9d('0x85')]=_0x3cea9d('0x10b'),ut['logger'](_0x3cea9d('0x112'),_0x2145fd[_0x3cea9d('0x74')]+_0x3cea9d('0xd0'))):(_0x2145fd[_0x3cea9d('0x85')]=_0x3cea9d('0x59'),ut['logger'](_0x3cea9d('0x112'),_0x2145fd[_0x3cea9d('0x74')]+_0x3cea9d('0xcc'))),emitCampaignPreview(_0x2145fd));}Preview[_0x5da885('0x35')][_0x5da885('0x114')]=function(){const _0x1be5f1=this;setInterval(function(){const _0x3f893e=a1087_0x13e2;_0x1be5f1[_0x3f893e('0xa1')]();},0x7cf);},Preview[_0x5da885('0x35')][_0x5da885('0xa1')]=function(){const _0x31b329=_0x5da885,_0x53c829=this[_0x31b329('0x67')];this['clockClearZombieChannels']+=0x1;for(const _0x302d32 in _0x53c829){typeof _0x53c829[_0x302d32]!==_0x31b329('0x127')&&(_0x53c829[_0x302d32][_0x31b329('0x13')]==='preview'||_0x53c829[_0x302d32]['dialMethod']===_0x31b329('0x58'))&&_0x53c829[_0x302d32]['type']===_0x31b329('0x126')&&(this[_0x31b329('0x7e')]>0x7&&(this[_0x31b329('0x7e')]=0x0,this[_0x31b329('0xda')]())),typeof _0x53c829[_0x302d32]!==_0x31b329('0x127')&&_0x53c829[_0x302d32][_0x31b329('0x13')]===_0x31b329('0x10e')&&_0x53c829[_0x302d32][_0x31b329('0xc8')]===_0x31b329('0x126')&&(_0x53c829[_0x302d32]['dialActive']?(this[_0x31b329('0x122')](_0x53c829[_0x302d32]),this[_0x31b329('0xe3')](_0x53c829[_0x302d32])):notSendMessagesQueue(_0x53c829[_0x302d32]));}},Preview[_0x5da885('0x35')][_0x5da885('0x12a')]=function(_0x328e10){const _0xe9cb58=_0x5da885,_0x20be24=this;this[_0xe9cb58('0x119')][_0xe9cb58('0x82')](function(){const _0x29a1cf=_0xe9cb58;if(!_[_0x29a1cf('0x11')](_0x20be24[_0x29a1cf('0x4')][_0x328e10]))return loggerAction[_0x29a1cf('0xc5')]('[clearZombieChannels][talking]',_0x328e10,'Queue',_0x20be24[_0x29a1cf('0x4')][_0x328e10][_0x29a1cf('0xe0')],_0x29a1cf('0x10'),JSON[_0x29a1cf('0xfb')](_0x20be24[_0x29a1cf('0x67')][_0x20be24['actions'][_0x328e10][_0x29a1cf('0xe0')]]['originated']),'pTalking:\x20',JSON[_0x29a1cf('0xfb')](_0x20be24['campaignsPreview'][_0x20be24[_0x29a1cf('0x4')][_0x328e10][_0x29a1cf('0xe0')]]['pTalking']),JSON['stringify'](_0x20be24[_0x29a1cf('0x4')][_0x328e10][_0x29a1cf('0xcb')]),JSON[_0x29a1cf('0xfb')](_[_0x29a1cf('0x41')](_0x20be24[_0x29a1cf('0x4')][_0x328e10],[_0x29a1cf('0x1'),_0x29a1cf('0xd1'),_0x29a1cf('0x5a'),_0x29a1cf('0x6e')]))),ami[_0x29a1cf('0xf6')]({'action':_0x29a1cf('0x4e'),'channel':_0x20be24[_0x29a1cf('0x4')][_0x328e10][_0x29a1cf('0xb8')]})[_0x29a1cf('0x7b')](function(_0x538877){const _0x2da045=_0x29a1cf;_0x538877['message']===_0x2da045('0x18')&&setTimeout(function(){const _0xf6b323=_0x2da045;_0x20be24[_0xf6b323('0x4')][_0x328e10]&&(ut['updateOriginated'](_0x20be24[_0xf6b323('0x67')][_0x20be24[_0xf6b323('0x4')][_0x328e10][_0xf6b323('0xe0')]],_0xf6b323('0x57')),_0x20be24[_0xf6b323('0x4')][_0x328e10][_0xf6b323('0xcb')]===!![]&&(ut[_0xf6b323('0xea')](_0x20be24[_0xf6b323('0x67')][_0x20be24[_0xf6b323('0x4')][_0x328e10][_0xf6b323('0xe0')]],_0xf6b323('0x57')),ut[_0xf6b323('0x6a')]('[Dialer][checkChannel][pTalking][Preview]'+_0x328e10,_0x20be24[_0xf6b323('0x4')][_0x328e10][_0xf6b323('0xe0')])),ut[_0xf6b323('0x6a')]('[Dialer][checkChannel][Preview]'+_0x328e10,_0x20be24[_0xf6b323('0x4')][_0x328e10][_0xf6b323('0xe0')]),delete _0x20be24['actions'][_0x328e10]);},0x2328);});});},Preview['prototype']['clearZombieChannels']=function(){const _0x164632=_0x5da885,_0x5b2dc9=this;loggerAction['info'](_0x164632('0xd7'),_[_0x164632('0x11a')](this[_0x164632('0x4')]));for(const _0x59860 in this[_0x164632('0x4')]){typeof _0x5b2dc9[_0x164632('0x4')][_0x59860]!=='undefined'&&_0x5b2dc9[_0x164632('0x12a')](_0x59860);}},Preview[_0x5da885('0x35')][_0x5da885('0xe3')]=function(_0x2ce182){const _0x339545=_0x5da885,_0x43777f=this;rpcDb['getContactRecallMe'](_0x2ce182['id'],ut[_0x339545('0x47')](this['agents']))['then'](function(_0x2ccd9f){const _0x409f35=_0x339545;if(!_['isNil'](_0x2ccd9f))for(let _0x3e9f47=0x0;_0x3e9f47<_0x2ccd9f[_0x409f35('0x118')];_0x3e9f47+=0x1){if(ut[_0x409f35('0x3c')](_0x2ccd9f[_0x3e9f47][_0x409f35('0x131')])<_0x2ce182[_0x409f35('0x54')]*0x3c)_0x2ccd9f[_0x3e9f47][_0x409f35('0x11d')]&&!_0x2ccd9f[_0x3e9f47][_0x409f35('0x11d')][_0x409f35('0x1e')]?_0x43777f[_0x409f35('0x24')](_0x2ccd9f[_0x3e9f47]['id'])[_0x409f35('0x88')](ut[_0x409f35('0x1d')](_0x409f35('0xd9')))[_0x409f35('0x7b')](ut[_0x409f35('0x1d')](_0x409f35('0xd9'))):rpcDb[_0x409f35('0xe7')](_0x2ccd9f[_0x3e9f47]['id']);else{const _0xfb9ea0=new Action(_0x2ccd9f[_0x3e9f47],_0x2ce182);_0xfb9ea0[_0x409f35('0x108')]=moment()[_0x409f35('0x10d')](_0x409f35('0x9b')),_0x2ce182[_0x409f35('0x90')]+=0x1,ut[_0x409f35('0xc4')](_0xfb9ea0,0x17,'RecallInQueue'),_0x2ce182[_0x409f35('0xeb')]?(rpcDb[_0x409f35('0x60')](ut[_0x409f35('0x4b')](_0x2ccd9f[_0x3e9f47])),rpcDb[_0x409f35('0xa')](_0xfb9ea0,'[HistoryDialRecallInQueue][historyCatch]')):(ut[_0x409f35('0xc4')](_0xfb9ea0,0x16,_0x409f35('0xed')),rpcDb[_0x409f35('0xa')](_0xfb9ea0,_0x409f35('0xd5')),rpcDb['createCustomerFinal'](_0xfb9ea0,_0x409f35('0xd5')));}}})[_0x339545('0x7b')](ut[_0x339545('0x1d')]('[getContactRecallMe]'));},Preview[_0x5da885('0x35')][_0x5da885('0x122')]=function(_0x17ae90){const _0x32bb1c=_0x5da885;_0x17ae90['sendMessageOneNotActive']=!![];if(ut[_0x32bb1c('0x6b')](_0x17ae90[_0x32bb1c('0xa4')]))_0x17ae90[_0x32bb1c('0x85')]='AGENTS_NOT_LOGGED';else{if(!ut['isActive'](_0x17ae90[_0x32bb1c('0xb7')]))_0x17ae90[_0x32bb1c('0x85')]=_0x32bb1c('0x10b');else!this[_0x32bb1c('0x11b')](_0x17ae90[_0x32bb1c('0x9f')])?!this[_0x32bb1c('0x11b')](_0x17ae90[_0x32bb1c('0xec')])?_0x17ae90[_0x32bb1c('0x85')]=_0x32bb1c('0x96'):_0x17ae90[_0x32bb1c('0x85')]=_0x32bb1c('0x34'):_0x17ae90[_0x32bb1c('0x85')]=_0x32bb1c('0x34');}emitCampaignPreview(_0x17ae90);},Preview[_0x5da885('0x35')][_0x5da885('0xa5')]=function(_0x3f0832,_0x29fdc2,_0x43d79a){const _0x30cbc9=_0x5da885,_0x6c949=this[_0x30cbc9('0x4')][_0x29fdc2],_0x5216d8=this[_0x30cbc9('0x67')][_0x6c949[_0x30cbc9('0xe0')]];let _0x258b7d;if(_0x5216d8){switch(_0x43d79a){case'1':_0x5216d8[_0x30cbc9('0x28')]+=0x1,_0x6c949['countnosuchnumberretry']+=0x1,_0x6c949[_0x30cbc9('0x8c')]=ut[_0x30cbc9('0xfd')](_0x6c949),ut[_0x30cbc9('0xc4')](_0x6c949,0x0,_0x30cbc9('0xbe')),ami['emit'](_0x30cbc9('0xf1'),ut[_0x30cbc9('0x5b')](_0x6c949,_0x30cbc9('0x64'))),rpcDb[_0x30cbc9('0xa')](_0x6c949,_0x30cbc9('0x7d'));ut[_0x30cbc9('0xfd')](_0x6c949)>=_0x5216d8['dialGlobalMaxRetry']?(_0x258b7d=ut['cloneAction'](_0x6c949,0xf,_0x30cbc9('0x9')),rpcDb[_0x30cbc9('0xcd')](_0x258b7d,_0x30cbc9('0x8a'))):_0x6c949[_0x30cbc9('0x98')]>=_0x5216d8[_0x30cbc9('0xb5')]?rpcDb[_0x30cbc9('0xcd')](_0x6c949,_0x30cbc9('0x8a')):rpcDb['rescheduleContact'](ut['scheduledAt'](_0x6c949,_0x30cbc9('0x98'),_0x5216d8[_0x30cbc9('0x17')]),_0x6c949[_0x30cbc9('0xe2')],_0x6c949[_0x30cbc9('0x113')]);delete this['actions'][_0x3f0832[_0x30cbc9('0x8f')]];break;case _0x30cbc9('0x1f'):{const _0x23652a=moment()['format'](_0x30cbc9('0x9b'));_0x6c949[_0x30cbc9('0xfc')]=_0x23652a,_0x6c949[_0x30cbc9('0x3f')]=_0x23652a,_0x6c949['dialAnswer']=!![],_0x5216d8[_0x30cbc9('0x128')]+=0x1,logger[_0x30cbc9('0xc5')]('[syncHangup][talking][increment]',_0x6c949[_0x30cbc9('0xa9')],_0x30cbc9('0x45'),_0x5216d8['name'],_0x30cbc9('0x10f'),_0x5216d8[_0x30cbc9('0x128')]),ami['emit'](_0x30cbc9('0xbf'),ut[_0x30cbc9('0x5b')](_0x6c949,'connect')),_0x5216d8['acw']&&ami[_0x30cbc9('0xc6')](_0x30cbc9('0x136'),ut[_0x30cbc9('0x51')](_0x6c949));}break;case'16':ami[_0x30cbc9('0xc6')]('custom:agentcomplete',ut[_0x30cbc9('0x5b')](_0x6c949,'complete')),emitVoiceQueueChannelRemove(ut[_0x30cbc9('0x5b')](_0x6c949,_0x30cbc9('0xce'))),_0x5216d8[_0x30cbc9('0x73')]+=0x1,_0x5216d8[_0x30cbc9('0x4d')]+=0x1,_0x5216d8[_0x30cbc9('0x91')]+=0x1,ut[_0x30cbc9('0xea')](_0x5216d8,_0x30cbc9('0x46')),_0x6c949[_0x30cbc9('0x8c')]=ut[_0x30cbc9('0xfd')](_0x6c949),ut[_0x30cbc9('0xc4')](_0x6c949,0x4,'Answer'),rpcDb[_0x30cbc9('0xa')](_0x6c949,_0x30cbc9('0xc')),rpcDb[_0x30cbc9('0xcd')](_0x6c949,_0x30cbc9('0x80')),rpcDb[_0x30cbc9('0xf7')](_0x6c949),_0x5216d8['sumDuration']+=_0x6c949[_0x30cbc9('0x29')],_0x5216d8['sumBillable']+=_0x6c949[_0x30cbc9('0x29')],logger[_0x30cbc9('0xc5')](_0x30cbc9('0x99'),_0x6c949[_0x30cbc9('0xa9')],_0x30cbc9('0x45'),_0x5216d8[_0x30cbc9('0x74')],_0x30cbc9('0x10f'),_0x5216d8['pTalking']),delete this[_0x30cbc9('0x4')][_0x3f0832[_0x30cbc9('0x8f')]];break;case'BUSY':_0x5216d8[_0x30cbc9('0x2c')]+=0x1,_0x6c949[_0x30cbc9('0xd')]+=0x1,_0x6c949[_0x30cbc9('0x8c')]=ut['totalGlobal'](_0x6c949),ut['logCustomer'](_0x6c949,0x5,_0x30cbc9('0x123')),ami[_0x30cbc9('0xc6')](_0x30cbc9('0xb0'),ut[_0x30cbc9('0x5b')](_0x6c949,'busy')),rpcDb[_0x30cbc9('0xa')](_0x6c949,_0x30cbc9('0xb3'));ut[_0x30cbc9('0xfd')](_0x6c949)>=_0x5216d8['dialGlobalMaxRetry']?(_0x258b7d=ut[_0x30cbc9('0xe1')](_0x6c949,0xf,_0x30cbc9('0x9')),rpcDb['createCustomerFinal'](_0x258b7d,'[callProgressDetectingCustomer][logBusyGlobal]')):_0x6c949[_0x30cbc9('0xd')]>=_0x5216d8[_0x30cbc9('0x1a')]?rpcDb[_0x30cbc9('0xcd')](_0x6c949,_0x30cbc9('0xb3')):rpcDb[_0x30cbc9('0x77')](ut[_0x30cbc9('0x97')](_0x6c949,_0x30cbc9('0xd'),_0x5216d8[_0x30cbc9('0x120')]),_0x6c949[_0x30cbc9('0xe2')],_0x6c949[_0x30cbc9('0x113')]);break;case'NOANSWER':_0x5216d8[_0x30cbc9('0x117')]+=0x1,_0x6c949[_0x30cbc9('0xc9')]+=0x1,_0x6c949[_0x30cbc9('0x8c')]=ut[_0x30cbc9('0xfd')](_0x6c949),ut[_0x30cbc9('0xc4')](_0x6c949,0x3,_0x30cbc9('0xac')),ami[_0x30cbc9('0xc6')]('custom:agentnoanswer',ut[_0x30cbc9('0x5b')](_0x6c949,_0x30cbc9('0xe5'))),rpcDb[_0x30cbc9('0xa')](_0x6c949,'[callProgressDetectingCustomer][logNoAnswer]');ut['totalGlobal'](_0x6c949)>=_0x5216d8[_0x30cbc9('0x49')]?(_0x258b7d=ut[_0x30cbc9('0xe1')](_0x6c949,0xf,'Global'),rpcDb[_0x30cbc9('0xcd')](_0x258b7d,_0x30cbc9('0x8'))):_0x6c949[_0x30cbc9('0xc9')]>=_0x5216d8[_0x30cbc9('0xe8')]?rpcDb[_0x30cbc9('0xcd')](_0x6c949,_0x30cbc9('0x12f')):rpcDb[_0x30cbc9('0x77')](ut[_0x30cbc9('0x97')](_0x6c949,_0x30cbc9('0xc9'),_0x5216d8['dialNoAnswerRetryFrequency']),_0x6c949[_0x30cbc9('0xe2')],_0x6c949[_0x30cbc9('0x113')]);break;case _0x30cbc9('0x72'):_0x5216d8[_0x30cbc9('0x25')]+=0x1,_0x6c949['countcongestionretry']+=0x1,_0x6c949[_0x30cbc9('0x8c')]=ut[_0x30cbc9('0xfd')](_0x6c949),ut['logCustomer'](_0x6c949,0x8,'Congestion'),ami[_0x30cbc9('0xc6')](_0x30cbc9('0x93'),ut['buildObj'](_0x6c949,_0x30cbc9('0x6c'))),rpcDb[_0x30cbc9('0xa')](_0x6c949,'[callProgressDetectingCustomer][logCongestion]');ut[_0x30cbc9('0xfd')](_0x6c949)>=_0x5216d8[_0x30cbc9('0x49')]?(_0x258b7d=ut[_0x30cbc9('0xe1')](_0x6c949,0xf,_0x30cbc9('0x9')),rpcDb[_0x30cbc9('0xcd')](_0x258b7d,_0x30cbc9('0x94'))):_0x6c949['countcongestionretry']>=_0x5216d8[_0x30cbc9('0xdb')]?rpcDb[_0x30cbc9('0xcd')](_0x6c949,_0x30cbc9('0x1b')):rpcDb[_0x30cbc9('0x77')](ut[_0x30cbc9('0x97')](_0x6c949,'countcongestionretry',_0x5216d8[_0x30cbc9('0x120')]),_0x6c949[_0x30cbc9('0xe2')],_0x6c949[_0x30cbc9('0x113')]);break;case'CANCEL':_0x5216d8[_0x30cbc9('0xa0')]+=0x1,_0x6c949[_0x30cbc9('0x4c')]+=0x1,_0x6c949[_0x30cbc9('0x8c')]=ut[_0x30cbc9('0xfd')](_0x6c949),ut['logCustomer'](_0x6c949,0x14,'AgentReject'),ami[_0x30cbc9('0xc6')]('custom:agentreject',ut[_0x30cbc9('0x5b')](_0x6c949,'agentreject')),rpcDb[_0x30cbc9('0xa')](_0x6c949,'[syncHangupRequest][logAgentReject]');ut[_0x30cbc9('0xfd')](_0x6c949)>=_0x5216d8['dialGlobalMaxRetry']?(_0x258b7d=ut['cloneAction'](_0x6c949,0x14,_0x30cbc9('0x138')),rpcDb[_0x30cbc9('0xcd')](_0x258b7d,_0x30cbc9('0x3e'))):_0x6c949[_0x30cbc9('0x4c')]>=_0x5216d8[_0x30cbc9('0x37')]?rpcDb[_0x30cbc9('0xcd')](_0x6c949,_0x30cbc9('0x3e')):rpcDb[_0x30cbc9('0x77')](ut[_0x30cbc9('0x97')](_0x6c949,_0x30cbc9('0x4c'),_0x5216d8['dialAgentRejectRetryFrequency']),_0x6c949[_0x30cbc9('0xe2')],_0x6c949[_0x30cbc9('0x113')]);break;case'ABANDONED':_0x5216d8['outboundAbandonedCallsDay']+=0x1,_0x6c949['countabandonedretry']+=0x1,_0x6c949[_0x30cbc9('0x8c')]=ut[_0x30cbc9('0xfd')](_0x6c949),ut[_0x30cbc9('0xc4')](_0x6c949,0xb,_0x30cbc9('0x135')),rpcDb['createCustomerHistory'](_0x6c949,_0x30cbc9('0x31'));ut['totalGlobal'](_0x6c949)>=_0x5216d8[_0x30cbc9('0x49')]?(_0x258b7d=ut['cloneAction'](_0x6c949,0xf,'Global'),rpcDb[_0x30cbc9('0xcd')](_0x258b7d,_0x30cbc9('0x31'))):_0x6c949[_0x30cbc9('0xba')]>=_0x5216d8[_0x30cbc9('0x84')]?rpcDb[_0x30cbc9('0xcd')](_0x6c949,_0x30cbc9('0x31')):rpcDb['rescheduleContact'](ut[_0x30cbc9('0x97')](_0x6c949,'countabandonedretry',_0x5216d8[_0x30cbc9('0x30')]),_0x6c949['unlockAgent'],_0x6c949[_0x30cbc9('0x113')]);break;default:_0x6c949['dialAnswer']&&(ut[_0x30cbc9('0xea')](_0x5216d8,'[default]'),ut[_0x30cbc9('0x6a')](_0x30cbc9('0xf4')+_0x5216d8[_0x30cbc9('0x74')],_0x3f0832));_0x5216d8[_0x30cbc9('0x7f')]+=0x1,_0x6c949[_0x30cbc9('0x8c')]=ut[_0x30cbc9('0xfd')](_0x6c949),ut[_0x30cbc9('0xc4')](_0x6c949,0xc,_0x3f0832[_0x30cbc9('0x130')]||_0x3f0832[_0x30cbc9('0x2b')]),rpcDb[_0x30cbc9('0xa')](_0x6c949,'[callProgressDetectingCustomer][logUnknown]');ut[_0x30cbc9('0xfd')](_0x6c949)>=_0x5216d8[_0x30cbc9('0x49')]?(_0x258b7d=ut[_0x30cbc9('0xe1')](_0x6c949,0xf,_0x30cbc9('0x9')),rpcDb['createCustomerFinal'](_0x258b7d,'[callProgressDetectingCustomer][logUnknownGlobal]')):rpcDb[_0x30cbc9('0xcd')](_0x6c949,'[callProgressDetectingCustomer][logUnknownGlobal]');delete this[_0x30cbc9('0x4')][_0x3f0832[_0x30cbc9('0x8f')]];}!(_0x6c949[_0x30cbc9('0xcb')]&&_0x43d79a==='16')&&(ut[_0x30cbc9('0x33')](_0x5216d8,'[callProgressDetectingCustomer]'),logger['info'](_0x30cbc9('0xf0'),_0x6c949[_0x30cbc9('0xa9')],'\x20Queue',_0x5216d8[_0x30cbc9('0x74')],'originated:\x20',_0x5216d8[_0x30cbc9('0x109')])),_0x43d79a!==_0x30cbc9('0x1f')&&(delete this[_0x30cbc9('0x4')][_0x3f0832[_0x30cbc9('0x8f')]],delete this[_0x30cbc9('0x4')][_0x3f0832[_0x30cbc9('0x104')]]);}},Preview['prototype'][_0x5da885('0xef')]=function(_0x415dc0,_0x3e9342,_0x2e6d79){const _0x376d66=_0x5da885;if(_[_0x376d66('0x137')](_0x3e9342)&&'object'!==typeof _0x3e9342)return;if(_['isUndefined'](_0x2e6d79)&&'object'!==typeof _0x2e6d79)return;switch(_0x2e6d79[_0x376d66('0x100')]){case'0':ut[_0x376d66('0xa3')](_0x415dc0,0x0,_0x376d66('0xbe')),rpcDb[_0x376d66('0xff')](_0x415dc0,_0x376d66('0x12'));break;case'3':ut[_0x376d66('0xa3')](_0x415dc0,0x3,'NoAnswer'),rpcDb[_0x376d66('0xff')](_0x415dc0,'[callProgressDetectingAgent][logNoAnswer]');break;case'5':ut['logAgent'](_0x415dc0,0x5,'Busy'),rpcDb[_0x376d66('0xff')](_0x415dc0,_0x376d66('0xcf'));break;case'8':ut[_0x376d66('0xa3')](_0x415dc0,0x8,_0x376d66('0x48')),rpcDb[_0x376d66('0xff')](_0x415dc0,_0x376d66('0x79'));break;case'22':ut[_0x376d66('0xa3')](_0x415dc0,0x16,'AnswerAGI'),rpcDb[_0x376d66('0xff')](_0x415dc0,_0x376d66('0xb2'));break;default:ut[_0x376d66('0xa3')](_0x415dc0,0xc,_0x2e6d79[_0x376d66('0x100')]),rpcDb[_0x376d66('0xff')](_0x415dc0,_0x376d66('0x79'));}ut[_0x376d66('0x33')](_0x3e9342,_0x376d66('0xa8')),logger['info'](_0x376d66('0x2e'),_0x415dc0['uniqueid'],_0x376d66('0x45'),_0x3e9342[_0x376d66('0x74')],_0x376d66('0x10'),_0x3e9342[_0x376d66('0x109')]),delete this[_0x376d66('0x4')][_0x415dc0[_0x376d66('0xa9')]];},Preview[_0x5da885('0x35')]['checkInBlack']=function(_0x51d23b,_0x4582ff,_0x332d0f,_0x696b90,_0x50c726){const _0x4bf734=this;return new Promise(function(_0x31a037,_0x42995f){const _0x4f96c9=a1087_0x13e2;if(_[_0x4f96c9('0x11')](_0x4582ff)||_[_0x4f96c9('0x11')](_0x4582ff[_0x4f96c9('0xf2')])||_['isNil'](_0x4582ff[_0x4f96c9('0xf2')][_0x4f96c9('0xe6')])||_['isNil'](_0x4582ff[_0x4f96c9('0x5a')])){_0x42995f(ut['message'](_0x4f96c9('0x134'),_0x696b90,_0x50c726));return;}const _0xb8dbe5=uuid['v4'](),_0x1a3e36=_0x4bf734[_0x4f96c9('0x67')][_0x4582ff[_0x4f96c9('0x21')][_0x4f96c9('0x74')]],_0x613dd5=_0x332d0f?_0x4bf734[_0x4f96c9('0xd6')][_0x332d0f]['id']:undefined;_0x4bf734[_0x4f96c9('0x4')][_0xb8dbe5]=new Action(_0x4582ff,_0x1a3e36,_0xb8dbe5,_0x332d0f,_0x613dd5);const _0x4b8b11=_0x4bf734[_0x4f96c9('0x4')][_0xb8dbe5];_0x4b8b11['unlockAgent']=_0x696b90,_0x4b8b11[_0x4f96c9('0x113')]=_0x50c726,_0x4b8b11[_0x4f96c9('0x139')]=_0x332d0f,_[_0x4f96c9('0xae')](_0x51d23b)?_0x4bf734[_0x4f96c9('0x102')](_0x4b8b11,_0x1a3e36,_0x4582ff,_0x332d0f)[_0x4f96c9('0x88')](function(_0x24962d){const _0x2560b0=_0x4f96c9;logger['info'](_0x2560b0('0x39'),_0x2560b0('0x86')+_0x4b8b11[_0x2560b0('0xe0')]+'\x20IdHopper:\x20'+_0x4b8b11[_0x2560b0('0xa2')],JSON[_0x2560b0('0xfb')](_0x24962d)),ami[_0x2560b0('0xc6')](_0x2560b0('0x7'),ut[_0x2560b0('0x5b')](_0x4b8b11,_0x2560b0('0x76'))),_0x31a037(ut[_0x2560b0('0x85')](_0x2560b0('0xdf')));})[_0x4f96c9('0x7b')](function(_0xbeb45f){const _0x5dc45a=_0x4f96c9;ut[_0x5dc45a('0xe')](_0x5dc45a('0x15'),_0xbeb45f),_0x42995f(ut[_0x5dc45a('0x85')](_0x5dc45a('0x38'),_0x696b90,_0x50c726));}):(_0x1a3e36['outboundBlacklistCallsDay']+=0x1,ut[_0x4f96c9('0xd2')](_0x4b8b11),rpcDb[_0x4f96c9('0x83')](_0x4b8b11,'[Blacklist][error]'),delete _0x4bf734[_0x4f96c9('0x4')][_0xb8dbe5],_0x42995f(ut[_0x4f96c9('0x85')]('Contact\x20in\x20black\x20List',_0x696b90,_0x50c726)));});},Preview[_0x5da885('0x35')]['isTrunkReachable']=function(_0x20a4c2){const _0x431d8e=_0x5da885;return!_[_0x431d8e('0x11')](_0x20a4c2)&&!_['isNil'](_0x20a4c2['name'])&&!_[_0x431d8e('0x11')](_0x20a4c2['active'])&&_0x20a4c2['active']&&!_[_0x431d8e('0x11')](this[_0x431d8e('0x106')][util['format'](_0x431d8e('0xe4'),_0x20a4c2[_0x431d8e('0x74')])])&&!_[_0x431d8e('0x11')](this[_0x431d8e('0x106')][util[_0x431d8e('0x10d')]('SIP/%s',_0x20a4c2[_0x431d8e('0x74')])][_0x431d8e('0x4e')])&&(this[_0x431d8e('0x106')][util[_0x431d8e('0x10d')]('SIP/%s',_0x20a4c2['name'])][_0x431d8e('0x4e')]===_0x431d8e('0x8d')||this[_0x431d8e('0x106')][util[_0x431d8e('0x10d')]('SIP/%s',_0x20a4c2[_0x431d8e('0x74')])]['status']===_0x431d8e('0xbc'));},Preview[_0x5da885('0x35')][_0x5da885('0x24')]=function(_0x2db508,_0x39d2d3){const _0xc6642f=this;return new Promise(function(_0x7c7bdd,_0x5b487){const _0x3434b9=a1087_0x13e2;_0xc6642f[_0x3434b9('0x105')](_0x2db508,_0x39d2d3)['then'](function(_0x3809bc){const _0x3fd92f=_0x3434b9;_0x7c7bdd(_[_0x3fd92f('0x41')](_0x3809bc,[_0x3fd92f('0x85')]));})[_0x3434b9('0x7b')](function(_0x769dcc){const _0x3d06e2=_0x3434b9;_0x769dcc[_0x3d06e2('0x8b')]&&rpcDb[_0x3d06e2('0x69')](_0x2db508),_0x769dcc[_0x3d06e2('0x10a')]&&rpcDb[_0x3d06e2('0xe7')](_0x2db508),_0x5b487(_[_0x3d06e2('0x41')](_0x769dcc,[_0x3d06e2('0x85')]));});});},Preview[_0x5da885('0x35')]['execRun']=function(_0x21bcdf,_0x10aa41){const _0x59b6ae=this;return new Promise(function(_0x24db45,_0x100c92){const _0x3a3ccd=a1087_0x13e2;let _0x34fb3f,_0x51d6c8;rpcDb[_0x3a3ccd('0xaa')](_0x21bcdf)[_0x3a3ccd('0x88')](function(_0xb0106e){const _0x33dc1b=_0x3a3ccd;!_[_0x33dc1b('0x11')](_0xb0106e[0x0])&&(_0x51d6c8=_0xb0106e[0x0][_0x33dc1b('0x12c')]?![]:!![],_0x34fb3f=_0xb0106e[0x0][_0x33dc1b('0x12c')]?!![]:![],_0x34fb3f=_0x10aa41?!![]:_0x34fb3f);const _0x5d77ea=_0x59b6ae['validateContact'](_0xb0106e);_0x5d77ea[_0x33dc1b('0x132')]?rpcDb['checkIsBlackList'](_[_0x33dc1b('0x41')](_0xb0106e[0x0],[_0x33dc1b('0x5a'),'Contact.phone']))[_0x33dc1b('0x88')](function(_0x4b55d4){const _0x3d98c2=_0x33dc1b;_0x59b6ae[_0x3d98c2('0x133')](_0x4b55d4,_0xb0106e[0x0],_0x10aa41,_0x51d6c8,_0x34fb3f)[_0x3d98c2('0x88')](function(_0x1b4e80){_0x24db45(_0x1b4e80);})[_0x3d98c2('0x7b')](function(_0x3bd9bd){_0x100c92(_0x3bd9bd);});})['catch'](function(_0x3839d9){const _0xe90d1f=_0x33dc1b;ut[_0xe90d1f('0xe')](_0xe90d1f('0x3b'),_0x3839d9),_0x100c92(ut[_0xe90d1f('0x85')](_0xe90d1f('0x23'),_0x51d6c8,_0x34fb3f));}):_0x100c92(ut[_0x33dc1b('0x85')](_0x5d77ea[_0x33dc1b('0x85')],_0x51d6c8,_0x34fb3f));})[_0x3a3ccd('0x7b')](function(_0x335370){const _0x346777=_0x3a3ccd;ut[_0x346777('0xe')](_0x346777('0x2'),_0x335370),_0x100c92(ut[_0x346777('0x85')](_0x346777('0x23'),![],!![]));});});},Preview[_0x5da885('0x35')][_0x5da885('0x66')]=function(_0x2d07f0){const _0x409289=_0x5da885;if(_[_0x409289('0x11')](_0x2d07f0)||_[_0x409289('0xae')](_0x2d07f0)||!_['isNil'](_0x2d07f0[0x0]['Agent'])&&_[_0x409289('0x11')](_0x2d07f0[0x0]['Agent']['name']))return ut['logger'](_0x409289('0x95'),_0x2d07f0),{'isValid':![],'message':_0x409289('0x5e')};const _0x464f44=this[_0x409289('0x67')][_0x2d07f0[0x0][_0x409289('0x21')][_0x409289('0x74')]];_0x464f44['message']='ACTIVE';if(_[_0x409289('0x11')](_0x464f44))return ut['logger'](_0x409289('0x27'),_0x464f44),{'isValid':![],'message':_0x409289('0xdd')};if(!this[_0x409289('0x11b')](_0x464f44[_0x409289('0x9f')])){ut[_0x409289('0xe')](_0x409289('0x92'),_0x409289('0x16')+_0x464f44[_0x409289('0x74')]+_0x409289('0x71'));if(!this[_0x409289('0x11b')](_0x464f44[_0x409289('0xec')]))return ut[_0x409289('0xe')](_0x409289('0x92'),_0x464f44[_0x409289('0x74')]+_0x409289('0xfa')),{'isValid':![],'message':'Trunk\x20not\x20work'};}if(!ut[_0x409289('0x89')](_0x464f44[_0x409289('0xb7')]))return ut[_0x409289('0xe')]('[Preview][validateContact][Campaign\x20Active]',_0x464f44[_0x409289('0x74')]+_0x409289('0x9d')),{'isValid':![],'message':_0x409289('0x16')+_0x464f44['name']+'\x20Not\x20Active'};return{'isValid':!![],'message':_0x409289('0x43')};},Preview[_0x5da885('0x35')][_0x5da885('0x102')]=function(_0x554ea8,_0x1d03d5,_0x3c74d8,_0x5c53b8){const _0x1b930b=this;return new Promise(function(_0xe7542,_0xb96d6){const _0x57eeae=a1087_0x13e2,_0x5465f6=_0x554ea8['uniqueid'],_0x34e01d=_0x1b930b['isTrunkReachable'](_0x1d03d5[_0x57eeae('0x9f')])?util[_0x57eeae('0x10d')]('SIP/%s/%s%s',_0x1d03d5[_0x57eeae('0x9f')]['name'],_[_0x57eeae('0x11')](_0x1d03d5[_0x57eeae('0xad')])?'':_0x1d03d5[_0x57eeae('0xad')][_0x57eeae('0x12e')]()||'',_0x1d03d5[_0x57eeae('0xf8')]>0x0?_0x3c74d8[_0x57eeae('0xf2')][_0x57eeae('0xe6')][_0x57eeae('0x11f')](_0x1d03d5['dialCutDigit']):_0x3c74d8[_0x57eeae('0xf2')][_0x57eeae('0xe6')]):util[_0x57eeae('0x10d')]('SIP/%s/%s%s',_[_0x57eeae('0x11')](_0x1d03d5['TrunkBackup'])?_0x1d03d5['Trunk'][_0x57eeae('0x74')]:_0x1d03d5[_0x57eeae('0xec')][_0x57eeae('0x74')],_[_0x57eeae('0x11')](_0x1d03d5['dialPrefix'])?'':_0x1d03d5[_0x57eeae('0xad')][_0x57eeae('0x12e')]()||'',_0x1d03d5[_0x57eeae('0xf8')]>0x0?_0x3c74d8['Contact'][_0x57eeae('0xe6')]['substring'](_0x1d03d5[_0x57eeae('0xf8')]):_0x3c74d8[_0x57eeae('0xf2')]['phone']),_0x36b9eb=_0x1b930b[_0x57eeae('0x11b')](_0x1d03d5[_0x57eeae('0x9f')])?ut[_0x57eeae('0x2d')](_0x1d03d5['Trunk'][_0x57eeae('0x3')],_0x1d03d5[_0x57eeae('0x70')],_0x1d03d5[_0x57eeae('0xb1')]>0x0?ut[_0x57eeae('0x129')](_0x1d03d5['dialOriginateCallerIdNumber'],_0x1d03d5[_0x57eeae('0xb1')]):_0x1d03d5[_0x57eeae('0x11e')]):ut[_0x57eeae('0x2d')](_[_0x57eeae('0x11')](_0x1d03d5[_0x57eeae('0xec')])?_0x1d03d5[_0x57eeae('0x9f')][_0x57eeae('0x3')]:_0x1d03d5[_0x57eeae('0xec')][_0x57eeae('0x3')],_0x1d03d5[_0x57eeae('0x70')],_0x1d03d5[_0x57eeae('0xb1')]>0x0?ut['getCallerIdRandom'](_0x1d03d5['dialOriginateCallerIdNumber'],_0x1d03d5[_0x57eeae('0xb1')]):_0x1d03d5[_0x57eeae('0x11e')]);_0x36b9eb&&(_0x554ea8[_0x57eeae('0x42')]=ut[_0x57eeae('0x6f')](_0x36b9eb),_0x554ea8[_0x57eeae('0xbd')]=ut['extractCalleridNumber'](_0x36b9eb));const _0xac2875=ut[_0x57eeae('0xf5')](_0x1d03d5,_0x3c74d8,_0x34e01d,_0x36b9eb,_0x5465f6,_0x554ea8);_['merge'](_0x554ea8,ut['toLowerVariables'](_0xac2875)),_0x554ea8[_0x57eeae('0x108')]=moment()[_0x57eeae('0x10d')](_0x57eeae('0x9b')),ami[_0x57eeae('0xf6')](ut[_0x57eeae('0x63')](_0x554ea8,_0x1d03d5,_0xac2875,_0x554ea8[_0x57eeae('0x113')],_0x5c53b8))[_0x57eeae('0x88')](function(_0x397aca){const _0x5b71ac=_0x57eeae;_0x1d03d5['originated']+=0x1,logger[_0x5b71ac('0xc5')]('[originated][increment]',_0x5465f6,_0x5b71ac('0x45'),_0x1d03d5[_0x5b71ac('0x74')],_0x5b71ac('0x10'),_0x1d03d5[_0x5b71ac('0x109')]),_0xe7542(_0x397aca);})[_0x57eeae('0x7b')](function(_0x17a646){const _0x94a0a=_0x57eeae;ut['logAgent'](_0x554ea8,0xe,_0x94a0a('0x12b')),rpcDb[_0x94a0a('0xff')](_0x554ea8,'[originateFailure][logOriginateFailure]'),_0xb96d6(_0x17a646);});});},Preview[_0x5da885('0x35')][_0x5da885('0x14')]=function(_0x5606da){const _0x3a57dc=_0x5da885;this['actions'][_0x5606da[_0x3a57dc('0x8f')]]&&(this[_0x3a57dc('0x4')][_0x5606da[_0x3a57dc('0x8f')]][_0x3a57dc('0xb8')]=_0x5606da[_0x3a57dc('0xb8')]);},Preview['prototype'][_0x5da885('0xa7')]=function(_0x52f712){const _0x2dbf9a=_0x5da885,_0x128f4c=this,_0xa44380=this['actions'][_0x52f712[_0x2dbf9a('0x101')]];if(_0xa44380){_0xa44380[_0x2dbf9a('0x139')]&&this[_0x2dbf9a('0xd6')][_0xa44380[_0x2dbf9a('0x139')]]&&ut['logLookAgent'](_0xa44380,this[_0x2dbf9a('0xd6')][_0xa44380[_0x2dbf9a('0x139')]][_0x2dbf9a('0x74')],this[_0x2dbf9a('0xd6')][_0xa44380[_0x2dbf9a('0x139')]]['id']);const _0x4cd6fd=_[_0x2dbf9a('0x32')](_0xa44380);_0x4cd6fd[_0x2dbf9a('0xfc')]=moment()[_0x2dbf9a('0x10d')](_0x2dbf9a('0x9b'));const _0x4f61e0=_0x128f4c[_0x2dbf9a('0x67')][_0xa44380[_0x2dbf9a('0xe0')]];ut['isFailure'](_0x52f712[_0x2dbf9a('0x55')])?(_0xa44380['unlockAgent']&&rpcDb[_0x2dbf9a('0x69')](_0xa44380[_0x2dbf9a('0xa2')]),_0xa44380[_0x2dbf9a('0x113')]&&rpcDb[_0x2dbf9a('0xe7')](_0xa44380['idContact']),ami['emit'](_0x2dbf9a('0x65'),ut[_0x2dbf9a('0x5b')](_0xa44380,_0x2dbf9a('0xde'))),this[_0x2dbf9a('0xef')](_0x4cd6fd,_0x4f61e0,_0x52f712)):(_0xa44380[_0x2dbf9a('0x108')]=moment()[_0x2dbf9a('0x10d')](_0x2dbf9a('0x9b')),ut[_0x2dbf9a('0xa3')](_0x4cd6fd,0x4,_0x2dbf9a('0xe9')),rpcDb['createAgentHistory'](_0x4cd6fd,_0x2dbf9a('0x87')));}},Preview[_0x5da885('0x35')][_0x5da885('0xfe')]=function(_0x472f00){const _0x34a613=_0x5da885,_0x16aa10=this['actions'][_0x472f00[_0x34a613('0x8f')]];let _0x3dd25e;_0x16aa10&&(_0x3dd25e=this[_0x34a613('0x67')][_0x16aa10[_0x34a613('0xe0')]],logger[_0x34a613('0xc5')](_0x34a613('0x4f'),_0x472f00[_0x34a613('0x8f')],_0x34a613('0x45'),_0x3dd25e[_0x34a613('0x74')],_0x34a613('0x10f'),_0x3dd25e[_0x34a613('0x128')]));if(this['actions'][_0x472f00[_0x34a613('0x8f')]]&&_0x472f00[_0x34a613('0x8f')]!==_0x472f00[_0x34a613('0xa9')]){if(_0x472f00[_0x34a613('0x12d')]==='16'&&this[_0x34a613('0x4')][_0x472f00[_0x34a613('0x8f')]][_0x34a613('0xcb')])this['callProgressDetectingCustomer'](_0x472f00,_0x472f00[_0x34a613('0x8f')],_0x472f00['cause']);else this[_0x34a613('0x4')][_0x472f00[_0x34a613('0x8f')]][_0x34a613('0xcb')]&&(logger[_0x34a613('0xc5')](_0x34a613('0x110'),_0x472f00['linkedid'],_0x472f00[_0x34a613('0x12d')],_0x34a613('0x45'),_0x3dd25e['name'],'pTalking:\x20',_0x3dd25e[_0x34a613('0x128')]),this[_0x34a613('0xa5')](_0x472f00,_0x472f00[_0x34a613('0x8f')],_0x472f00[_0x34a613('0x12d')]));}else{if(_0x16aa10&&_['isNil'](_0x16aa10[_0x34a613('0xc7')])&&_0x3dd25e['dialQueueProject']&&_0x472f00[_0x34a613('0x8f')]===_0x472f00[_0x34a613('0xa9')]&&_[_0x34a613('0x11')](_0x472f00[_0x34a613('0x100')])&&_0x472f00['cause']==='16'&&_0x472f00[_0x34a613('0x1c')]==='6'&&_[_0x34a613('0x137')](_0x16aa10[_0x34a613('0xca')]))_0x16aa10[_0x34a613('0xe2')]&&rpcDb[_0x34a613('0x69')](_0x16aa10[_0x34a613('0xa2')]),_0x16aa10[_0x34a613('0x113')]&&rpcDb[_0x34a613('0xe7')](_0x16aa10['idContact']),_0x472f00['reason']='22',this[_0x34a613('0xef')](_0x16aa10,_0x3dd25e,_0x472f00);else{if(_0x16aa10&&_0x16aa10[_0x34a613('0xca')]){if(_0x472f00[_0x34a613('0x12d')]==='16'&&this[_0x34a613('0x4')][_0x472f00[_0x34a613('0x8f')]][_0x34a613('0xcb')])logger[_0x34a613('0xc5')]('[syncHangup][talking][transfer]',_0x472f00[_0x34a613('0x8f')],_0x472f00[_0x34a613('0x12d')],_0x34a613('0x45'),_0x3dd25e['name'],_0x34a613('0x10f'),_0x3dd25e['pTalking']),this[_0x34a613('0xa5')](_0x472f00,_0x472f00[_0x34a613('0x8f')],_0x472f00['cause']);else this[_0x34a613('0x4')][_0x472f00[_0x34a613('0x8f')]][_0x34a613('0xcb')]&&(logger[_0x34a613('0xc5')]('[syncHangup][talking][cause]',_0x472f00[_0x34a613('0x8f')],_0x472f00[_0x34a613('0x12d')],_0x34a613('0x45'),_0x3dd25e[_0x34a613('0x74')],_0x34a613('0x10f'),_0x3dd25e[_0x34a613('0x128')]),this[_0x34a613('0xa5')](_0x472f00,_0x472f00['linkedid'],_0x472f00[_0x34a613('0x12d')]));}}}},Preview[_0x5da885('0x35')][_0x5da885('0x116')]=function(_0x5f034e){const _0x526b8a=_0x5da885;this[_0x526b8a('0x4')][_0x5f034e[_0x526b8a('0x104')]]&&_0x5f034e[_0x526b8a('0x104')]!==_0x5f034e[_0x526b8a('0x115')]&&this[_0x526b8a('0xa5')](_0x5f034e,_0x5f034e['destlinkedid'],_0x5f034e[_0x526b8a('0x2b')]);},Preview[_0x5da885('0x35')][_0x5da885('0x5f')]=function(_0x36699a){const _0x4ba94a=_0x5da885;this[_0x4ba94a('0x4')][_0x36699a['linkedid']]&&_0x36699a['linkedid']!==_0x36699a['uniqueid']&&!this[_0x4ba94a('0x4')][_0x36699a['linkedid']][_0x4ba94a('0xcb')]&&(_0x36699a['cause']==='1'&&this['callProgressDetectingCustomer'](_0x36699a,_0x36699a[_0x4ba94a('0x8f')],_0x36699a[_0x4ba94a('0x12d')]));},Preview[_0x5da885('0x35')][_0x5da885('0xf9')]=function(_0x374c6c,_0x401d51,_0x3b363b){const _0x1bd829=_0x5da885;this[_0x1bd829('0x4')][_0x374c6c]&&(_[_0x1bd829('0x11')](this[_0x1bd829('0x4')][_0x374c6c][_0x1bd829('0xf')])&&(this[_0x1bd829('0x4')][_0x374c6c]['variables']={}),this[_0x1bd829('0x4')][_0x374c6c][_0x1bd829('0xf')][_0x401d51]=_0x3b363b);},Preview[_0x5da885('0x35')][_0x5da885('0x78')]=function(_0x536b81){const _0x3714f7=_0x5da885;try{!_[_0x3714f7('0x11')](_0x536b81)&&(ut[_0x3714f7('0x11c')](_[_0x3714f7('0xb')](_0x536b81[_0x3714f7('0x111')])[0x0])&&this[_0x3714f7('0xf9')](_0x536b81[_0x3714f7('0xa9')],_[_0x3714f7('0xb')](_0x536b81['variable'])[0x0],_0x536b81[_0x3714f7('0x20')]));}catch(_0x2c6cc3){logger[_0x3714f7('0xee')]('[syncVarSet][Preview]',util[_0x3714f7('0xc0')](_0x2c6cc3,{'showHidden':![],'depth':null}));}},Preview[_0x5da885('0x35')]['syncAttendedTransfer']=function(_0x2d4e1f){const _0x3d2c28=_0x5da885;_0x2d4e1f&&(this[_0x3d2c28('0x4')][_0x2d4e1f[_0x3d2c28('0x6')]]&&(this[_0x3d2c28('0x4')][_0x2d4e1f[_0x3d2c28('0x6')]]['transfer']=!![]));},Preview[_0x5da885('0x35')][_0x5da885('0xd3')]=function(_0x5ead70){const _0x5c473c=_0x5da885;_0x5ead70&&(this[_0x5c473c('0x4')][_0x5ead70[_0x5c473c('0x22')]]&&(this[_0x5c473c('0x4')][_0x5ead70[_0x5c473c('0x22')]][_0x5c473c('0xca')]=!![]));},module['exports']=Preview; \ No newline at end of file diff --git a/server/services/ami/preview/rpcDb.js b/server/services/ami/preview/rpcDb.js index 87330cc..f7a8047 100644 --- a/server/services/ami/preview/rpcDb.js +++ b/server/services/ami/preview/rpcDb.js @@ -1 +1 @@ -const a1088_0x4523=['[rescheduleContact]\x20','createHistory','[activeContact]\x20','endtime','checkIsBlackList','membername','createAgentHistory','createCustomerFinal','queuecallerexitreason','../rpc/cmHopperBlack','getContactPreview','error','answertime','createCustomerHistory','resolve','[GetContactRecallMe]\x20','moveContactManagedDialer','../../../config/logger','create','uniqueid','preview','catch','queuecallercomplete','[checkIsBlackList]\x20','../rpc/voiceQueueReport','from-sip','context','rescheduleContact','xcally-motion-preview','../rpc/cmHopper','../rpc/cmHopperHistory','connectedlinename','then','calleridnum','COMPLETED','crateCustomerReportQueue','disableContact','[rescheduleContactInQueue]\x20','util','getContactRecallMe','[voiceQueueReport]\x20','type','[moveContactManagedDialer]\x20','[unlockContact]\x20','[createHistory]\x20','../rpc/agentReportPreview','unlockContact','queue','queuecallerleaveAt','[countReScheduled]\x20','holdtime','calleridname'];(function(_0x9e20e8,_0x452392){const _0x106239=function(_0x32f20b){while(--_0x32f20b){_0x9e20e8['push'](_0x9e20e8['shift']());}};_0x106239(++_0x452392);}(a1088_0x4523,0xf3));const a1088_0x1062=function(_0x9e20e8,_0x452392){_0x9e20e8=_0x9e20e8-0x0;let _0x106239=a1088_0x4523[_0x9e20e8];return _0x106239;};const _0x2916a8=a1088_0x1062;'use strict';const util=require(_0x2916a8('0x3')),logger=require(_0x2916a8('0x22'))(_0x2916a8('0x25')),cmHopper=require(_0x2916a8('0x2e')),cmHopperHistory=require(_0x2916a8('0x2f')),cmHopperBlack=require(_0x2916a8('0x1a')),agentReportPreview=require(_0x2916a8('0xa')),voiceQueueReport=require(_0x2916a8('0x29'));function loggerCatch(_0x32f20b){return function(_0x533390){const _0x487efe=a1088_0x1062;logger[_0x487efe('0x1c')](_0x32f20b,util['inspect'](_0x533390,{'showHidden':![],'depth':null}));};}function create(_0x3061b2){const _0xd02b67=_0x2916a8;return Promise['resolve']()[_0xd02b67('0x31')](cmHopperHistory[_0xd02b67('0x12')](_0x3061b2))[_0xd02b67('0x26')](loggerCatch('[createHistory]\x20'));}function createAgent(_0x58a8cb){const _0x2e87ba=_0x2916a8;return Promise[_0x2e87ba('0x1f')]()[_0x2e87ba('0x31')](agentReportPreview[_0x2e87ba('0x12')](_0x58a8cb))[_0x2e87ba('0x26')](loggerCatch(_0x2e87ba('0x9')));}function moveContact(_0x5161ae){const _0x416be6=_0x2916a8;return Promise[_0x416be6('0x1f')]()[_0x416be6('0x31')](cmHopper[_0x416be6('0x21')](_0x5161ae,!![]))[_0x416be6('0x26')](loggerCatch(_0x416be6('0x7')));}exports[_0x2916a8('0x15')]=function(_0x50d791){const _0x165077=_0x2916a8;return Promise[_0x165077('0x1f')]()['then'](cmHopperBlack[_0x165077('0x15')](_0x50d791))[_0x165077('0x26')](loggerCatch(_0x165077('0x28')));},exports['getContactPreview']=function(_0x445ab2){const _0x3f93f2=_0x2916a8;return Promise['resolve']()[_0x3f93f2('0x31')](cmHopper[_0x3f93f2('0x1b')](_0x445ab2))[_0x3f93f2('0x26')](loggerCatch('[getContactPreview]\x20'));},exports[_0x2916a8('0x12')]=function(_0x344a34,_0x44f5de){const _0x22c78d=_0x2916a8;create(_0x344a34)[_0x22c78d('0x26')](loggerCatch(_0x44f5de)),moveContact(_0x344a34)[_0x22c78d('0x26')](loggerCatch(_0x44f5de));},exports[_0x2916a8('0x17')]=function(_0x1fd566,_0xa322cb){createAgent(_0x1fd566)['catch'](loggerCatch(_0xa322cb));},exports[_0x2916a8('0x1e')]=function(_0x28b9c5,_0x3a5ffb){const _0x23c222=_0x2916a8;create(_0x28b9c5)[_0x23c222('0x26')](loggerCatch(_0x3a5ffb));},exports[_0x2916a8('0x18')]=function(_0x4d51b8,_0x4b6ed4){const _0x2b85f2=_0x2916a8;moveContact(_0x4d51b8)[_0x2b85f2('0x26')](loggerCatch(_0x4b6ed4));},exports['rescheduleContact']=function(_0x3fe93e,_0x1ed2a3,_0x296749){const _0x135c8d=_0x2916a8;return _0x1ed2a3&&(_0x3fe93e['UserId']=null),_0x296749&&(_0x3fe93e['active']=![]),Promise['resolve']()['then'](cmHopper[_0x135c8d('0x2c')](_0x3fe93e))[_0x135c8d('0x26')](loggerCatch(_0x135c8d('0x11')));},exports['countReScheduled']=function(_0x3575e){const _0x22675d=_0x2916a8;return Promise['resolve']()[_0x22675d('0x31')](cmHopper['countReScheduled'](_0x3575e))['catch'](loggerCatch(_0x22675d('0xe')));},exports[_0x2916a8('0xb')]=function(_0x194024){const _0xc210bc=_0x2916a8;return Promise[_0xc210bc('0x1f')]()[_0xc210bc('0x31')](cmHopper['unlockContact']({'UserId':null},_0x194024,0x1))[_0xc210bc('0x26')](loggerCatch(_0xc210bc('0x8')));},exports[_0x2916a8('0x1')]=function(_0x871f4b){const _0x6e4e3b=_0x2916a8;return Promise[_0x6e4e3b('0x1f')]()['then'](cmHopper[_0x6e4e3b('0xb')]({'active':![]},_0x871f4b,0x1))['catch'](loggerCatch(_0x6e4e3b('0x13')));},exports[_0x2916a8('0x0')]=function(_0x3745b5){const _0x19df04=_0x2916a8,_0x5aa123={};return _0x5aa123[_0x19df04('0x6')]=_0x3745b5[_0x19df04('0x6')],_0x5aa123[_0x19df04('0x24')]=_0x3745b5[_0x19df04('0x24')],_0x5aa123[_0x19df04('0x32')]=_0x3745b5[_0x19df04('0x32')],_0x5aa123[_0x19df04('0x10')]=_0x3745b5[_0x19df04('0x10')],_0x5aa123[_0x19df04('0xc')]=_0x3745b5[_0x19df04('0xc')],_0x5aa123['queuecallerjoinAt']=_0x3745b5[_0x19df04('0x1d')],_0x5aa123[_0x19df04('0xd')]=_0x3745b5['answertime'],_0x5aa123[_0x19df04('0x27')]=0x1,_0x5aa123['queuecallercompleteAt']=_0x3745b5[_0x19df04('0x14')],_0x5aa123[_0x19df04('0x30')]=_0x3745b5[_0x19df04('0x16')],_0x5aa123[_0x19df04('0x2b')]=_0x19df04('0x2a'),_0x5aa123['exten']=_0x19df04('0x2d'),_0x5aa123[_0x19df04('0xf')]=0x0,_0x5aa123['assigned']=0x1,_0x5aa123['lastAssignedTo']=_0x3745b5['membername'],_0x5aa123[_0x19df04('0x19')]=_0x19df04('0x33'),Promise[_0x19df04('0x1f')]()[_0x19df04('0x31')](voiceQueueReport[_0x19df04('0x23')](_0x5aa123))['catch'](loggerCatch(_0x19df04('0x5')));},exports[_0x2916a8('0x4')]=function(_0x416a57,_0x453b38){const _0x557b5f=_0x2916a8;return Promise[_0x557b5f('0x1f')]()[_0x557b5f('0x31')](cmHopper[_0x557b5f('0x4')](_0x416a57,_0x453b38))['catch'](loggerCatch(_0x557b5f('0x20')));},exports['rescheduleContactInQueue']=function(_0x5feb4d){const _0x7eeae1=_0x2916a8;return Promise[_0x7eeae1('0x1f')]()['then'](cmHopper[_0x7eeae1('0x2c')](_0x5feb4d,!![],!![]))['catch'](loggerCatch(_0x7eeae1('0x2')));}; \ No newline at end of file +const a1088_0x172c=['queuecallerjoinAt','countReScheduled','createCustomerFinal','createCustomerHistory','from-sip','[checkIsBlackList]\x20','[rescheduleContactInQueue]\x20','membername','[unlockContact]\x20','[moveContactManagedDialer]\x20','resolve','checkIsBlackList','assigned','util','[voiceQueueReport]\x20','../rpc/agentReportPreview','crateCustomerReportQueue','UserId','../rpc/cmHopper','queue','queuecallercomplete','answertime','[countReScheduled]\x20','[activeContact]\x20','rescheduleContactInQueue','disableContact','active','[createHistory]\x20','type','inspect','createHistory','COMPLETED','error','rescheduleContact','queuecallerexitreason','catch','createAgentHistory','xcally-motion-preview','queuecallercompleteAt','[getContactPreview]\x20','../../../config/logger','../rpc/cmHopperHistory','getContactRecallMe','../rpc/voiceQueueReport','then','preview','endtime','[GetContactRecallMe]\x20','calleridnum','context','unlockContact'];(function(_0x5b9c2f,_0x172c8f){const _0xfe282c=function(_0x3f2363){while(--_0x3f2363){_0x5b9c2f['push'](_0x5b9c2f['shift']());}};_0xfe282c(++_0x172c8f);}(a1088_0x172c,0x132));const a1088_0xfe28=function(_0x5b9c2f,_0x172c8f){_0x5b9c2f=_0x5b9c2f-0x0;let _0xfe282c=a1088_0x172c[_0x5b9c2f];return _0xfe282c;};const _0x2cdb59=a1088_0xfe28;'use strict';const util=require(_0x2cdb59('0xd')),logger=require(_0x2cdb59('0x28'))(_0x2cdb59('0x2d')),cmHopper=require(_0x2cdb59('0x12')),cmHopperHistory=require(_0x2cdb59('0x29')),cmHopperBlack=require('../rpc/cmHopperBlack'),agentReportPreview=require(_0x2cdb59('0xf')),voiceQueueReport=require(_0x2cdb59('0x2b'));function loggerCatch(_0x3f2363){return function(_0x53de36){const _0x2163c7=a1088_0xfe28;logger[_0x2163c7('0x20')](_0x3f2363,util[_0x2163c7('0x1d')](_0x53de36,{'showHidden':![],'depth':null}));};}function create(_0x1483a6){const _0x310d39=_0x2cdb59;return Promise['resolve']()['then'](cmHopperHistory[_0x310d39('0x1e')](_0x1483a6))[_0x310d39('0x23')](loggerCatch(_0x310d39('0x1b')));}function createAgent(_0x55717a){const _0xee473=_0x2cdb59;return Promise[_0xee473('0xa')]()[_0xee473('0x2c')](agentReportPreview[_0xee473('0x1e')](_0x55717a))[_0xee473('0x23')](loggerCatch(_0xee473('0x1b')));}function moveContact(_0x592156){const _0x461a43=_0x2cdb59;return Promise[_0x461a43('0xa')]()[_0x461a43('0x2c')](cmHopper['moveContactManagedDialer'](_0x592156,!![]))[_0x461a43('0x23')](loggerCatch(_0x461a43('0x9')));}exports[_0x2cdb59('0xb')]=function(_0x2b089a){const _0x5a64e7=_0x2cdb59;return Promise[_0x5a64e7('0xa')]()[_0x5a64e7('0x2c')](cmHopperBlack[_0x5a64e7('0xb')](_0x2b089a))[_0x5a64e7('0x23')](loggerCatch(_0x5a64e7('0x5')));},exports['getContactPreview']=function(_0x11c309){const _0x51fe5e=_0x2cdb59;return Promise[_0x51fe5e('0xa')]()[_0x51fe5e('0x2c')](cmHopper['getContactPreview'](_0x11c309))[_0x51fe5e('0x23')](loggerCatch(_0x51fe5e('0x27')));},exports['createHistory']=function(_0x216398,_0x47a211){const _0x4cadb1=_0x2cdb59;create(_0x216398)[_0x4cadb1('0x23')](loggerCatch(_0x47a211)),moveContact(_0x216398)['catch'](loggerCatch(_0x47a211));},exports[_0x2cdb59('0x24')]=function(_0x15fbf1,_0x193aa4){createAgent(_0x15fbf1)['catch'](loggerCatch(_0x193aa4));},exports[_0x2cdb59('0x3')]=function(_0x3800bf,_0x2ff6f3){const _0xd702c8=_0x2cdb59;create(_0x3800bf)[_0xd702c8('0x23')](loggerCatch(_0x2ff6f3));},exports[_0x2cdb59('0x2')]=function(_0x317688,_0x1af584){const _0x5c7c3c=_0x2cdb59;moveContact(_0x317688)[_0x5c7c3c('0x23')](loggerCatch(_0x1af584));},exports[_0x2cdb59('0x21')]=function(_0x15fe94,_0x3bbf4f,_0x271d97){const _0x1272c1=_0x2cdb59;return _0x3bbf4f&&(_0x15fe94[_0x1272c1('0x11')]=null),_0x271d97&&(_0x15fe94[_0x1272c1('0x1a')]=![]),Promise[_0x1272c1('0xa')]()[_0x1272c1('0x2c')](cmHopper[_0x1272c1('0x21')](_0x15fe94))[_0x1272c1('0x23')](loggerCatch('[rescheduleContact]\x20'));},exports[_0x2cdb59('0x1')]=function(_0x581a3c){const _0x38e666=_0x2cdb59;return Promise['resolve']()[_0x38e666('0x2c')](cmHopper[_0x38e666('0x1')](_0x581a3c))[_0x38e666('0x23')](loggerCatch(_0x38e666('0x16')));},exports[_0x2cdb59('0x32')]=function(_0x19fe65){const _0x27cbbe=_0x2cdb59;return Promise[_0x27cbbe('0xa')]()[_0x27cbbe('0x2c')](cmHopper[_0x27cbbe('0x32')]({'UserId':null},_0x19fe65,0x1))[_0x27cbbe('0x23')](loggerCatch(_0x27cbbe('0x8')));},exports[_0x2cdb59('0x19')]=function(_0x284e91){const _0x13e9e2=_0x2cdb59;return Promise[_0x13e9e2('0xa')]()[_0x13e9e2('0x2c')](cmHopper['unlockContact']({'active':![]},_0x284e91,0x1))[_0x13e9e2('0x23')](loggerCatch(_0x13e9e2('0x17')));},exports[_0x2cdb59('0x10')]=function(_0x3de599){const _0x490823=_0x2cdb59,_0x28096e={};return _0x28096e[_0x490823('0x1c')]=_0x3de599[_0x490823('0x1c')],_0x28096e['uniqueid']=_0x3de599['uniqueid'],_0x28096e[_0x490823('0x30')]=_0x3de599[_0x490823('0x30')],_0x28096e['calleridname']=_0x3de599['calleridname'],_0x28096e[_0x490823('0x13')]=_0x3de599[_0x490823('0x13')],_0x28096e[_0x490823('0x0')]=_0x3de599[_0x490823('0x15')],_0x28096e['queuecallerleaveAt']=_0x3de599[_0x490823('0x15')],_0x28096e[_0x490823('0x14')]=0x1,_0x28096e[_0x490823('0x26')]=_0x3de599[_0x490823('0x2e')],_0x28096e['connectedlinename']=_0x3de599[_0x490823('0x7')],_0x28096e[_0x490823('0x31')]=_0x490823('0x4'),_0x28096e['exten']=_0x490823('0x25'),_0x28096e['holdtime']=0x0,_0x28096e[_0x490823('0xc')]=0x1,_0x28096e['lastAssignedTo']=_0x3de599[_0x490823('0x7')],_0x28096e[_0x490823('0x22')]=_0x490823('0x1f'),Promise[_0x490823('0xa')]()[_0x490823('0x2c')](voiceQueueReport['create'](_0x28096e))['catch'](loggerCatch(_0x490823('0xe')));},exports[_0x2cdb59('0x2a')]=function(_0x330d2e,_0x501abc){const _0x4a78b5=_0x2cdb59;return Promise[_0x4a78b5('0xa')]()[_0x4a78b5('0x2c')](cmHopper[_0x4a78b5('0x2a')](_0x330d2e,_0x501abc))['catch'](loggerCatch(_0x4a78b5('0x2f')));},exports[_0x2cdb59('0x18')]=function(_0x235e43){const _0x4ea0f7=_0x2cdb59;return Promise[_0x4ea0f7('0xa')]()[_0x4ea0f7('0x2c')](cmHopper[_0x4ea0f7('0x21')](_0x235e43,!![],!![]))[_0x4ea0f7('0x23')](loggerCatch(_0x4ea0f7('0x6')));}; \ No newline at end of file diff --git a/server/services/ami/preview/util/util.js b/server/services/ami/preview/util/util.js index efe52a8..03f9493 100644 --- a/server/services/ami/preview/util/util.js +++ b/server/services/ami/preview/util/util.js @@ -1 +1 @@ -const a1089_0x2438=['CampaignId','queue','originate','getDiff','buildAcw','YYYY-MM-DD\x20HH:mm:ss','bridgepeer','isUndefined','undefined','rtpaudioqosjitter','[decrementTalkink]\x20object\x20talking\x20is\x20negative','add','createBody','pTalking','NONE','U(xcally-mixmonitor-context)','loggerCatch','monitor_format','statedesc','calleridname','\x5cw{0,','updatedAt','rtpaudioqosjitterbridged','ListId','totalGlobal','xmd-queue','talktime','IsNotLoggedIn','clone','idContact','agiIp','rtpaudioqosbridged','xmd-phone','dialPreviewUrl','random','Contact','not_inuse','isNil','xmd-dialoptions','seconds','VoiceQueueId','scheduledAt','reachable','xmd-voicequeueid','error','rtpaudioqos','../../../../config/logger','callbackat','dialQueueProject2','xcally-motion-preview','dialQueueProject','xmd-agi','xmd-dialurl','dialOriginateTimeout','isFailure','countglobal','inspect','type','channelAgent','Global','uniqueid','starttime','match','\x22agi://%s/square,%s\x22','callbackuniqueid','lodash','lastevent','xmd-cdrtype','diff','Failure','push','Queue','countnoanswerretry','ContactId','cloneAction','string','util','extractCalleridName','ringtime','callback','[updateOriginated]\x20is\x20null\x20or\x20undefined','isEmpty','[decrementTalkink]\x20is\x20null\x20or\x20undefined','rtpaudioqoslossbridged','timeout','rtpaudioqosloss','updateOriginated','loggerError','logger2','rtpaudioqosrtt','info','milliseconds','UserId','originated','countagentrejectretry','xmd-dialtimeout','state','Blacklist','toLower','scheduledat','membername','calleridnum','createdAt','addVariables','responsetime','\x22%s\x22\x20<%s>','xmd-agiafter','buildObj','../../../../config/config.service','interface','countcongestionretry','originatecalleridname','status','BOOKED','logCustomer','preview','\x22rtTxX%s%s\x22','countbusyretry','active','endtime','format','recallme','answertime','name','originatecalleridnum','logger','pow','_XCALLY_MIXMONITOR_UNIQUEID','logAgent','dialAnswer','_XCALLY_MIXMONITOR_FORMAT'];(function(_0x2db586,_0x243882){const _0x387e6a=function(_0x3aa0fd){while(--_0x3aa0fd){_0x2db586['push'](_0x2db586['shift']());}};_0x387e6a(++_0x243882);}(a1089_0x2438,0x126));const a1089_0x387e=function(_0x2db586,_0x243882){_0x2db586=_0x2db586-0x0;let _0x387e6a=a1089_0x2438[_0x2db586];return _0x387e6a;};const _0x4597dc=a1089_0x387e;'use strict';const util=require(_0x4597dc('0x2c')),_=require(_0x4597dc('0x21')),moment=require('moment'),logger=require(_0x4597dc('0xe'))(_0x4597dc('0x53')),{getConfigService}=require(_0x4597dc('0x4c'));function getSeconds(_0x3aa0fd,_0x19edd8){const _0xd7b6f5=_0x4597dc,_0xc90d22=moment(_0x3aa0fd)[_0xd7b6f5('0x3b')](0x0),_0xd616cb=moment(_0x19edd8)[_0xd7b6f5('0x3b')](0x0);return _0xc90d22[_0xd7b6f5('0x24')](_0xd616cb,_0xd7b6f5('0x7'));}exports[_0x4597dc('0x73')]=function(_0x5e6c72){return function(_0x13b532){const _0x5dd536=a1089_0x387e;logger[_0x5dd536('0xc')](_0x5e6c72,util[_0x5dd536('0x18')](_0x13b532,{'showHidden':![],'depth':null}));};},exports[_0x4597dc('0x5d')]=function(_0x15d5ff,_0x315983){const _0x28f084=_0x4597dc;logger[_0x28f084('0x3a')](_0x15d5ff,util[_0x28f084('0x18')](_0x315983,{'showHidden':![],'depth':null}));},exports[_0x4597dc('0x37')]=function(_0xfc32f8,_0x7ca5e5){const _0x306e1a=_0x4597dc;logger['error'](_0xfc32f8,util[_0x306e1a('0x18')](_0x7ca5e5,{'showHidden':![],'depth':null}));},exports[_0x4597dc('0x38')]=function(_0x38896a){return function(_0x575e52){const _0x495be6=a1089_0x387e;logger['info'](_0x38896a,util[_0x495be6('0x18')](_0x575e52,{'showHidden':![],'depth':null}));};},exports['message']=function(_0x18eb8b,_0x258bbb,_0x352aff){return{'message':_0x18eb8b,'unlock':_0x258bbb,'active':_0x352aff};},exports['getCallerId']=function(_0x2c15b0,_0x2af9dd,_0x40b971){const _0xeb55ce=_0x4597dc;if(!_[_0xeb55ce('0x6a')](_0x40b971)&&_0xeb55ce('0x2b')===typeof _0x40b971&&!_[_0xeb55ce('0x31')](_0x40b971)){if(!_['isUndefined'](_0x2af9dd)&&_0xeb55ce('0x2b')===typeof _0x2af9dd&&!_['isEmpty'](_0x2af9dd))return util[_0xeb55ce('0x58')](_0xeb55ce('0x49'),_0x2af9dd,_0x40b971);return util[_0xeb55ce('0x58')](_0xeb55ce('0x49'),_0x40b971,_0x40b971);}if(!_[_0xeb55ce('0x6a')](_0x2c15b0)&&_0xeb55ce('0x2b')===typeof _0x2c15b0&&!_[_0xeb55ce('0x31')](_0x2c15b0))return _0x2c15b0;return'\x22\x22\x20<>';},exports['isActive']=function(_0x10e99f){const _0x303016=_0x4597dc;if(_[_0x303016('0x5')](_0x10e99f))return![];return _0x10e99f;},exports[_0x4597dc('0x47')]=function(_0x3511b4,_0xdccb1e,_0x1c8dea,_0x599a0c,_0x23db71,_0x423828){const _0x6cb658=_0x4597dc,_0x34f5b0=getConfigService(),_0x4627ee={'XMD-QUEUE':_0xdccb1e[_0x6cb658('0x27')]?_0xdccb1e[_0x6cb658('0x27')][_0x6cb658('0x5b')]:'','XMD-CALLERID':_0x599a0c,'XMD-CALLERID-PREVIEW':_0x423828?util[_0x6cb658('0x58')](_0x6cb658('0x49'),_0x423828[_0x6cb658('0x76')],_0x423828[_0x6cb658('0x45')]):_0x599a0c,'XMD-DIALID':_0x23db71,'XMD-CONTACTID':_0xdccb1e[_0x6cb658('0x29')],'XMD-CDRTYPE':'dialer','CALLERID(all)':_0x599a0c,'XMD-VOICEQUEUEID':_0xdccb1e[_0x6cb658('0x8')],'XMD-DIALCHANNEL':_0x1c8dea,'XMD-DIALTIMEOUT':_0x3511b4[_0x6cb658('0x15')]||0x1e,'XMD-DIALOPTIONS':util['format'](_0x6cb658('0x54'),_0x3511b4[_0x6cb658('0x10')]?'g':'',_[_0x6cb658('0x31')](_0x3511b4['monitor_format'])?'':_0x6cb658('0x72')),'XMD-DIALURL':_0x3511b4[_0x6cb658('0x1')]||'','XMD-AGI':_0x3511b4[_0x6cb658('0x12')]?util[_0x6cb658('0x58')](_0x6cb658('0x1f'),_0x34f5b0['agiIp'],_0x3511b4['dialQueueProject']):_0x6cb658('0x71'),'XMD-AGIAFTER':_0x3511b4[_0x6cb658('0x10')]?util['format'](_0x6cb658('0x1f'),_0x34f5b0[_0x6cb658('0x81')],_0x3511b4[_0x6cb658('0x10')]):'NONE','XMD-ORIGINATECALLERIDNUM':_0x423828?_0x423828[_0x6cb658('0x5c')]:'','XMD-ORIGINATECALLERIDNAME':_0x423828?_0x423828[_0x6cb658('0x4f')]:'','XMD-DESTINATION':'xcally-motion-preview'};!_[_0x6cb658('0x31')](_0x3511b4['monitor_format'])&&(_0x4627ee[util[_0x6cb658('0x58')]('%s',_0x6cb658('0x62'))]=_0x3511b4[_0x6cb658('0x74')],_0x4627ee[util[_0x6cb658('0x58')]('%s',_0x6cb658('0x5f'))]=_0x23db71);if(_0xdccb1e&&_0xdccb1e[_0x6cb658('0x3')])for(const _0x495667 in _0xdccb1e[_0x6cb658('0x3')]){typeof _0xdccb1e['Contact'][_0x495667]!==_0x6cb658('0x6b')&&(!_['isNil'](_0xdccb1e[_0x6cb658('0x3')][_0x495667])&&_0x495667!=='id'&&_0x495667!=='tags'&&_0x495667!==_0x6cb658('0x46')&&_0x495667!==_0x6cb658('0x78')&&(_0x4627ee[util[_0x6cb658('0x58')]('%s%s','XMD-',_['toUpper'](_0x495667))]=_0xdccb1e[_0x6cb658('0x3')][_0x495667]));}return _0x4627ee;},exports['toLowerVariables']=function(_0x48afb4){const _0x30e1f6=_0x4597dc,_0x304a7d={};for(const _0x2cdf6f in _0x48afb4){typeof _0x48afb4[_0x2cdf6f]!==_0x30e1f6('0x6b')&&(_0x304a7d[util[_0x30e1f6('0x58')]('%s',_[_0x30e1f6('0x42')](_0x2cdf6f))]=_0x48afb4[_0x2cdf6f]);}return{'variables':_0x304a7d};},exports[_0x4597dc('0x36')]=function(_0x10882a,_0x1872ee){const _0x13c493=_0x4597dc;!_[_0x13c493('0x5')](_0x10882a)?typeof _0x10882a[_0x13c493('0x3d')]!=='undefined'&&(_0x10882a[_0x13c493('0x3d')]>0x0?_0x10882a[_0x13c493('0x3d')]-=0x1:logger[_0x13c493('0xc')]('[updateOriginated]\x20object\x20originated\x20is\x20negative',_0x1872ee)):logger['error'](_0x13c493('0x30'),_0x1872ee);},exports['logBlacklist']=function(_0x188de5){const _0x5de798=_0x4597dc,_0x49ad56=moment()[_0x5de798('0x58')](_0x5de798('0x68'));_0x188de5[_0x5de798('0x40')]=0xd,_0x188de5[_0x5de798('0x75')]=_0x5de798('0x41'),_0x188de5[_0x5de798('0x1d')]=_0x49ad56,_0x188de5['responsetime']=_0x49ad56,_0x188de5[_0x5de798('0x57')]=_0x49ad56;},exports[_0x4597dc('0x60')]=function(_0x3fcc75,_0x395e05,_0x9cc9c5){const _0x599d44=_0x4597dc,_0x1ea4c0=moment()[_0x599d44('0x58')]('YYYY-MM-DD\x20HH:mm:ss');_0x3fcc75['state']=_0x395e05,_0x3fcc75[_0x599d44('0x75')]=_0x9cc9c5,_0x3fcc75[_0x599d44('0x48')]=_0x1ea4c0,_0x3fcc75['ringtime']=getSeconds(_0x3fcc75[_0x599d44('0x48')],_0x3fcc75[_0x599d44('0x1d')]);},exports['logLookAgent']=function(_0x14afba,_0x3d9e4f,_0x4d43cf){const _0x384e7e=_0x4597dc;_0x14afba[_0x384e7e('0x44')]=_0x3d9e4f,_0x14afba[_0x384e7e('0x3c')]=_0x4d43cf;},exports[_0x4597dc('0x52')]=function(_0x4f2e3f,_0x3d520e,_0x1a0bab){const _0x4d2a2d=_0x4597dc,_0xf43162=moment()[_0x4d2a2d('0x58')](_0x4d2a2d('0x68'));_0x4f2e3f[_0x4d2a2d('0x40')]=_0x3d520e,_0x4f2e3f[_0x4d2a2d('0x75')]=_0x1a0bab,_0x4f2e3f[_0x4d2a2d('0x48')]=_0x4f2e3f['responsetime']?_0x4f2e3f['responsetime']:_0xf43162,_0x4f2e3f[_0x4d2a2d('0x57')]=_0x4f2e3f[_0x4d2a2d('0x57')]?_0x4f2e3f[_0x4d2a2d('0x57')]:_0xf43162,_0x4f2e3f[_0x4d2a2d('0x2e')]=getSeconds(_0x4f2e3f[_0x4d2a2d('0x48')]||0x0,_0x4f2e3f[_0x4d2a2d('0x1d')]||0x0),_0x4f2e3f[_0x4d2a2d('0x7d')]=_0x4f2e3f[_0x4d2a2d('0x5a')]?getSeconds(_0x4f2e3f[_0x4d2a2d('0x57')],_0x4f2e3f['answertime']):0x0;},exports[_0x4597dc('0x16')]=function(_0x4aa443){const _0x32d19b=_0x4597dc;return _0x4aa443===_0x32d19b('0x25');},exports['variablesAction']=function(_0x2e1be1,_0x1f4336,_0x369990,_0x520d30,_0x41c58c){const _0x44bfbc=_0x4597dc;let _0x34981c=_0x520d30?'RECALL':_0x2e1be1[_0x44bfbc('0x76')];return _0x34981c=_0x41c58c?_0x44bfbc('0x51'):_0x34981c,{'actionid':_0x2e1be1[_0x44bfbc('0x1c')],'action':_0x44bfbc('0x65'),'channel':_0x2e1be1[_0x44bfbc('0x1a')],'callerid':util[_0x44bfbc('0x58')]('\x22%s\x22\x20<%s>',_0x34981c,_0x2e1be1['calleridnum']),'Exten':_0x44bfbc('0x11'),'Context':'from-sip','Priority':'1','variable':_0x369990,'timeout':(_0x1f4336[_0x44bfbc('0x34')]||0x1e)*0x3e8,'async':!![],'channelid':_0x2e1be1['uniqueid']};},exports[_0x4597dc('0x7b')]=function(_0x3fe2d3){const _0x2f10b8=_0x4597dc;return _0x3fe2d3[_0x2f10b8('0x55')]+_0x3fe2d3[_0x2f10b8('0x4e')]+_0x3fe2d3[_0x2f10b8('0x28')]+_0x3fe2d3[_0x2f10b8('0x3e')]+_0x3fe2d3['countnosuchnumberretry'];},exports[_0x4597dc('0x2a')]=function(_0x2fbb0d){const _0x55bebe=_0x4597dc,_0x232ade=_[_0x55bebe('0x7f')](_0x2fbb0d);return _0x232ade[_0x55bebe('0x40')]=0xf,_0x232ade[_0x55bebe('0x75')]=_0x55bebe('0x1b'),_0x232ade;},exports[_0x4597dc('0x9')]=function(_0x5adb2e,_0x55ecef,_0x307d97){const _0x2aa1fc=_0x4597dc,_0x27946c={};return _0x27946c[_0x55ecef]=_0x5adb2e[_0x55ecef],_0x27946c[_0x2aa1fc('0x56')]=![],_0x27946c[_0x2aa1fc('0x43')]=moment()[_0x2aa1fc('0x6e')](_0x307d97,'minutes')[_0x2aa1fc('0x58')](_0x2aa1fc('0x68')),_0x27946c[_0x2aa1fc('0x29')]=_0x5adb2e[_0x2aa1fc('0x29')],_0x27946c[_0x2aa1fc('0x7a')]=_0x5adb2e[_0x2aa1fc('0x7a')],_0x27946c[_0x2aa1fc('0x8')]=_0x5adb2e['VoiceQueueId']||undefined,_0x27946c;},exports['decrementTalkink']=function(_0x1de9d8,_0x3c92ac){const _0x56c151=_0x4597dc;!_[_0x56c151('0x5')](_0x1de9d8)?_0x1de9d8[_0x56c151('0x70')]>0x0?_0x1de9d8[_0x56c151('0x70')]-=0x1:logger[_0x56c151('0xc')](_0x3c92ac,_0x56c151('0x6d')):logger[_0x56c151('0xc')](_0x3c92ac,_0x56c151('0x32'));},exports[_0x4597dc('0x7e')]=function(_0x4de382){if(_0x4de382<=0x0)return!![];return![];},exports[_0x4597dc('0x4b')]=function(_0x10472f,_0x1e8cfd){const _0x11e089=_0x4597dc;return _0x10472f[_0x11e089('0x22')]=_0x1e8cfd,_0x10472f[_0x11e089('0x5b')]=_0x10472f[_0x11e089('0x64')],_0x10472f[_0x11e089('0x4d')]=_0x10472f[_0x11e089('0x1a')],_0x10472f;},exports[_0x4597dc('0x67')]=function(_0x37107e){const _0xbfeb87=_0x4597dc,_0x14b7b5={};return _0x14b7b5[_0xbfeb87('0x64')]=_0x37107e[_0xbfeb87('0x64')],_0x14b7b5['interface']=_0x37107e[_0xbfeb87('0x1a')],_0x14b7b5[_0xbfeb87('0x1c')]=_0x37107e[_0xbfeb87('0x1c')],_0x14b7b5;},exports['agentReadyId']=function(_0x4ba576){const _0x50831e=_0x4597dc,_0x6f1562=[];for(const _0x3b1d24 in _0x4ba576){typeof _0x4ba576[_0x3b1d24]!==_0x50831e('0x6b')&&(!_['isNil'](_0x4ba576[_0x3b1d24])&&_0x4ba576[_0x3b1d24][_0x50831e('0x40')]===_0x50831e('0x4')&&_0x4ba576[_0x3b1d24][_0x50831e('0x50')]===_0x50831e('0xa')&&_0x6f1562[_0x50831e('0x26')](_0x4ba576[_0x3b1d24]['id']));}return _0x6f1562;},exports[_0x4597dc('0x66')]=function(_0x51fa30){const _0x2b607c=_0x4597dc,_0x412bf0=moment()[_0x2b607c('0x3b')](0x0),_0x3d12b2=moment(_0x51fa30)[_0x2b607c('0x3b')](0x0);return _0x412bf0['diff'](_0x3d12b2,_0x2b607c('0x7'));},exports[_0x4597dc('0x6f')]=function(_0x585699){const _0x5317ad=_0x4597dc;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x585699[_0x5317ad('0x29')],'ListId':_0x585699[_0x5317ad('0x7a')],'VoiceQueueId':_0x585699[_0x5317ad('0x8')]||undefined,'CampaignId':_0x585699[_0x5317ad('0x63')]||undefined};},exports['filterKey']=function(_0xfe02e2){const _0x1fa5c3=_0x4597dc;if(_0xfe02e2===_0x1fa5c3('0x1c')||_0xfe02e2===_0x1fa5c3('0x80')||_0xfe02e2===_0x1fa5c3('0x64')||_0xfe02e2===_0x1fa5c3('0x19')||_0xfe02e2==='campaigntype'||_0xfe02e2===_0x1fa5c3('0x61')||_0xfe02e2===_0x1fa5c3('0x44')||_0xfe02e2===_0x1fa5c3('0x1a')||_0xfe02e2===_0x1fa5c3('0x76')||_0xfe02e2===_0x1fa5c3('0x56')||_0xfe02e2===_0x1fa5c3('0x45')||_0xfe02e2===_0x1fa5c3('0x43')||_0xfe02e2==='countbusyretry'||_0xfe02e2==='countcongestionretry'||_0xfe02e2==='countnoanswerretry'||_0xfe02e2===_0x1fa5c3('0x17')||_0xfe02e2===_0x1fa5c3('0x2f')||_0xfe02e2===_0x1fa5c3('0x20')||_0xfe02e2===_0x1fa5c3('0xf')||_0xfe02e2===_0x1fa5c3('0x59')||_0xfe02e2===_0x1fa5c3('0x29')||_0xfe02e2===_0x1fa5c3('0x7a')||_0xfe02e2===_0x1fa5c3('0x3c')||_0xfe02e2===_0x1fa5c3('0x8')||_0xfe02e2==='sipcallid'||_0xfe02e2===_0x1fa5c3('0xb')||_0xfe02e2===_0x1fa5c3('0x7c')||_0xfe02e2===_0x1fa5c3('0x0')||_0xfe02e2==='xmd-listid'||_0xfe02e2===_0x1fa5c3('0x14')||_0xfe02e2===_0x1fa5c3('0x3f')||_0xfe02e2===_0x1fa5c3('0x6')||_0xfe02e2==='xmd-dialid'||_0xfe02e2==='xmd-dialchannel'||_0xfe02e2==='xmd-contactid'||_0xfe02e2===_0x1fa5c3('0x23')||_0xfe02e2==='xmd-callerid'||_0xfe02e2===_0x1fa5c3('0x4a')||_0xfe02e2===_0x1fa5c3('0x13')||_0xfe02e2===_0x1fa5c3('0xd')||_0xfe02e2===_0x1fa5c3('0x82')||_0xfe02e2===_0x1fa5c3('0x6c')||_0xfe02e2===_0x1fa5c3('0x79')||_0xfe02e2===_0x1fa5c3('0x35')||_0xfe02e2==='rtpaudioqoslossbridged'||_0xfe02e2===_0x1fa5c3('0x39')||_0xfe02e2==='rtpaudioqosrttbridged'||_0xfe02e2===_0x1fa5c3('0xd')||_0xfe02e2===_0x1fa5c3('0x82')||_0xfe02e2===_0x1fa5c3('0x6c')||_0xfe02e2===_0x1fa5c3('0x79')||_0xfe02e2===_0x1fa5c3('0x35')||_0xfe02e2===_0x1fa5c3('0x33')||_0xfe02e2==='rtpaudioqosrtt'||_0xfe02e2==='rtpaudioqosrttbridged'||_0xfe02e2===_0x1fa5c3('0x69')||_0xfe02e2==='bridgepvtcallid'||_0xfe02e2===_0x1fa5c3('0x40')||_0xfe02e2===_0x1fa5c3('0x75'))return![];return!![];},exports['getCallerIdRandom']=function(_0x349ea9,_0x315444){const _0x35e725=_0x4597dc;_0x315444<=0x0&&(_0x315444=0x1);const _0x74f726=new RegExp(_0x35e725('0x77')+_0x315444+'}$'),_0x1d2fcc=Math[_0x35e725('0x5e')](0xa,_0x315444-0x1),_0x3a5645=Math['pow'](0xa,_0x315444)-0x1;return util[_0x35e725('0x58')]('%s',_['replace'](_0x349ea9,_0x74f726,_[_0x35e725('0x2')](_0x1d2fcc,_0x3a5645)));},exports[_0x4597dc('0x2d')]=function(_0x5a630a){const _0x5b057a=_0x5a630a['match'](/"(.*?)"/);return _0x5b057a?_0x5b057a[0x1]:_0x5a630a;},exports['extractCalleridNumber']=function(_0x190216){const _0x3a7dc9=_0x4597dc,_0x254c04=_0x190216[_0x3a7dc9('0x1e')](/<(.*?)>/);return _0x254c04?_0x254c04[0x1]:_0x190216;}; \ No newline at end of file +const a1089_0x2a14=['loggerError','UserId','tags','calleridnum','[decrementTalkink]\x20object\x20talking\x20is\x20negative','cloneAction','RECALL','\x22%s\x22\x20<%s>','[decrementTalkink]\x20is\x20null\x20or\x20undefined','undefined','match','preview','active','Global','moment','xmd-cdrtype','xmd-phone','xmd-dialchannel','YYYY-MM-DD\x20HH:mm:ss','VoiceQueueId','not_inuse','loggerCatch','statedesc','originatecalleridname','name','callbackat','addVariables','xmd-callerid','logger2','responsetime','rtpaudioqosjitterbridged','format','string','interface','%s%s','originate','monitor_format','countbusyretry','dialQueueProject','rtpaudioqosbridged','rtpaudioqosrtt','toLower','uniqueid','NONE','timeout','Queue','\x22\x22\x20<>','queue','membername','agiIp','_XCALLY_MIXMONITOR_FORMAT','calleridname','inspect','rtpaudioqos','talktime','bridgepvtcallid','isUndefined','rtpaudioqosjitter','ContactId','reachable','updatedAt','Contact','buildAcw','ListId','rtpaudioqosloss','xmd-dialtimeout','pTalking','answertime','createdAt','filterKey','\x22rtTxX%s%s\x22','logBlacklist','\x22agi://%s/square,%s\x22','xmd-contactid','push','util','IsNotLoggedIn','error','callbackuniqueid','totalGlobal','logCustomer','isEmpty','state','agentReadyId','sipcallid','milliseconds','xmd-agi','seconds','originated','type','channelAgent','toUpper','xmd-dialurl','endtime','isNil','diff','scheduledAt','recallme','countagentrejectretry','xcally-motion-preview','U(xcally-mixmonitor-context)','idContact','countcongestionretry','xmd-listid','Blacklist','lastevent','pow','_XCALLY_MIXMONITOR_UNIQUEID','minutes','countglobal','ringtime','countnosuchnumberretry','starttime','extractCalleridName','dialAnswer','scheduledat','logger','clone','logAgent','isActive','getCallerIdRandom','callback','Failure','dialQueueProject2','rtpaudioqosrttbridged','rtpaudioqoslossbridged','replace','add','isFailure','info','logLookAgent','createBody','xmd-queue','variablesAction','dialOriginateTimeout','countnoanswerretry'];(function(_0x58391b,_0x2a148b){const _0x3bd476=function(_0x138555){while(--_0x138555){_0x58391b['push'](_0x58391b['shift']());}};_0x3bd476(++_0x2a148b);}(a1089_0x2a14,0x194));const a1089_0x3bd4=function(_0x58391b,_0x2a148b){_0x58391b=_0x58391b-0x0;let _0x3bd476=a1089_0x2a14[_0x58391b];return _0x3bd476;};const _0x5ca17e=a1089_0x3bd4;'use strict';const util=require(_0x5ca17e('0x4f')),_=require('lodash'),moment=require(_0x5ca17e('0x12')),logger=require('../../../../config/logger')(_0x5ca17e('0xf')),{getConfigService}=require('../../../../config/config.service');function getSeconds(_0x138555,_0x3f00a1){const _0x2ab98d=_0x5ca17e,_0x133c62=moment(_0x138555)[_0x2ab98d('0x59')](0x0),_0x42cee6=moment(_0x3f00a1)[_0x2ab98d('0x59')](0x0);return _0x133c62['diff'](_0x42cee6,_0x2ab98d('0x5b'));}exports[_0x5ca17e('0x19')]=function(_0x8da992){return function(_0x3f2367){const _0x410564=a1089_0x3bd4;logger[_0x410564('0x51')](_0x8da992,util[_0x410564('0x38')](_0x3f2367,{'showHidden':![],'depth':null}));};},exports[_0x5ca17e('0x78')]=function(_0x4cd9a8,_0x2d8a20){const _0x4800ba=_0x5ca17e;logger[_0x4800ba('0x85')](_0x4cd9a8,util['inspect'](_0x2d8a20,{'showHidden':![],'depth':null}));},exports[_0x5ca17e('0x4')]=function(_0x253490,_0x4f894c){logger['error'](_0x253490,util['inspect'](_0x4f894c,{'showHidden':![],'depth':null}));},exports[_0x5ca17e('0x20')]=function(_0x3d9e70){return function(_0x34f5c9){const _0x24b987=a1089_0x3bd4;logger[_0x24b987('0x85')](_0x3d9e70,util[_0x24b987('0x38')](_0x34f5c9,{'showHidden':![],'depth':null}));};},exports['message']=function(_0x320498,_0x321975,_0x3b287d){return{'message':_0x320498,'unlock':_0x321975,'active':_0x3b287d};},exports['getCallerId']=function(_0x2874d2,_0x36c455,_0x4ce3a1){const _0xf1dbde=_0x5ca17e;if(!_['isUndefined'](_0x4ce3a1)&&_0xf1dbde('0x24')===typeof _0x4ce3a1&&!_['isEmpty'](_0x4ce3a1)){if(!_[_0xf1dbde('0x3c')](_0x36c455)&&'string'===typeof _0x36c455&&!_[_0xf1dbde('0x55')](_0x36c455))return util[_0xf1dbde('0x23')](_0xf1dbde('0xb'),_0x36c455,_0x4ce3a1);return util['format'](_0xf1dbde('0xb'),_0x4ce3a1,_0x4ce3a1);}if(!_[_0xf1dbde('0x3c')](_0x2874d2)&&_0xf1dbde('0x24')===typeof _0x2874d2&&!_[_0xf1dbde('0x55')](_0x2874d2))return _0x2874d2;return _0xf1dbde('0x32');},exports[_0x5ca17e('0x7b')]=function(_0x50b407){const _0x36261d=_0x5ca17e;if(_[_0x36261d('0x62')](_0x50b407))return![];return _0x50b407;},exports[_0x5ca17e('0x1e')]=function(_0x160531,_0x2c8a81,_0x4c27f1,_0x2ba0c4,_0x1c4bd6,_0xaef292){const _0x60dc25=_0x5ca17e,_0x53bd8d=getConfigService(),_0x29d899={'XMD-QUEUE':_0x2c8a81[_0x60dc25('0x31')]?_0x2c8a81[_0x60dc25('0x31')][_0x60dc25('0x1c')]:'','XMD-CALLERID':_0x2ba0c4,'XMD-CALLERID-PREVIEW':_0xaef292?util[_0x60dc25('0x23')]('\x22%s\x22\x20<%s>',_0xaef292[_0x60dc25('0x37')],_0xaef292[_0x60dc25('0x7')]):_0x2ba0c4,'XMD-DIALID':_0x1c4bd6,'XMD-CONTACTID':_0x2c8a81[_0x60dc25('0x3e')],'XMD-CDRTYPE':'dialer','CALLERID(all)':_0x2ba0c4,'XMD-VOICEQUEUEID':_0x2c8a81[_0x60dc25('0x17')],'XMD-DIALCHANNEL':_0x4c27f1,'XMD-DIALTIMEOUT':_0x160531[_0x60dc25('0x2')]||0x1e,'XMD-DIALOPTIONS':util[_0x60dc25('0x23')](_0x60dc25('0x4a'),_0x160531[_0x60dc25('0x7f')]?'g':'',_[_0x60dc25('0x55')](_0x160531[_0x60dc25('0x28')])?'':_0x60dc25('0x68')),'XMD-DIALURL':_0x160531['dialPreviewUrl']||'','XMD-AGI':_0x160531['dialQueueProject']?util[_0x60dc25('0x23')](_0x60dc25('0x4c'),_0x53bd8d['agiIp'],_0x160531[_0x60dc25('0x2a')]):'NONE','XMD-AGIAFTER':_0x160531[_0x60dc25('0x7f')]?util['format']('\x22agi://%s/square,%s\x22',_0x53bd8d[_0x60dc25('0x35')],_0x160531['dialQueueProject2']):_0x60dc25('0x2f'),'XMD-ORIGINATECALLERIDNUM':_0xaef292?_0xaef292['originatecalleridnum']:'','XMD-ORIGINATECALLERIDNAME':_0xaef292?_0xaef292[_0x60dc25('0x1b')]:'','XMD-DESTINATION':_0x60dc25('0x67')};!_[_0x60dc25('0x55')](_0x160531[_0x60dc25('0x28')])&&(_0x29d899[util[_0x60dc25('0x23')]('%s',_0x60dc25('0x36'))]=_0x160531['monitor_format'],_0x29d899[util['format']('%s',_0x60dc25('0x6f'))]=_0x1c4bd6);if(_0x2c8a81&&_0x2c8a81[_0x60dc25('0x41')])for(const _0x54be0d in _0x2c8a81[_0x60dc25('0x41')]){typeof _0x2c8a81[_0x60dc25('0x41')][_0x54be0d]!==_0x60dc25('0xd')&&(!_['isNil'](_0x2c8a81[_0x60dc25('0x41')][_0x54be0d])&&_0x54be0d!=='id'&&_0x54be0d!==_0x60dc25('0x6')&&_0x54be0d!==_0x60dc25('0x48')&&_0x54be0d!==_0x60dc25('0x40')&&(_0x29d899[util['format'](_0x60dc25('0x26'),'XMD-',_[_0x60dc25('0x5f')](_0x54be0d))]=_0x2c8a81[_0x60dc25('0x41')][_0x54be0d]));}return _0x29d899;},exports['toLowerVariables']=function(_0x2d9f59){const _0x27eb78=_0x5ca17e,_0x462c55={};for(const _0x22acca in _0x2d9f59){typeof _0x2d9f59[_0x22acca]!==_0x27eb78('0xd')&&(_0x462c55[util['format']('%s',_[_0x27eb78('0x2d')](_0x22acca))]=_0x2d9f59[_0x22acca]);}return{'variables':_0x462c55};},exports['updateOriginated']=function(_0x432ee5,_0x2f77b3){const _0x3d817b=_0x5ca17e;!_[_0x3d817b('0x62')](_0x432ee5)?typeof _0x432ee5['originated']!==_0x3d817b('0xd')&&(_0x432ee5[_0x3d817b('0x5c')]>0x0?_0x432ee5[_0x3d817b('0x5c')]-=0x1:logger[_0x3d817b('0x51')]('[updateOriginated]\x20object\x20originated\x20is\x20negative',_0x2f77b3)):logger[_0x3d817b('0x51')]('[updateOriginated]\x20is\x20null\x20or\x20undefined',_0x2f77b3);},exports[_0x5ca17e('0x4b')]=function(_0xef3649){const _0x303c4b=_0x5ca17e,_0x41aab7=moment()[_0x303c4b('0x23')](_0x303c4b('0x16'));_0xef3649[_0x303c4b('0x56')]=0xd,_0xef3649['statedesc']=_0x303c4b('0x6c'),_0xef3649['starttime']=_0x41aab7,_0xef3649[_0x303c4b('0x21')]=_0x41aab7,_0xef3649[_0x303c4b('0x61')]=_0x41aab7;},exports[_0x5ca17e('0x7a')]=function(_0x188e0e,_0xf7add4,_0x53e09c){const _0x24d75c=_0x5ca17e,_0x5720e7=moment()[_0x24d75c('0x23')](_0x24d75c('0x16'));_0x188e0e[_0x24d75c('0x56')]=_0xf7add4,_0x188e0e[_0x24d75c('0x1a')]=_0x53e09c,_0x188e0e['responsetime']=_0x5720e7,_0x188e0e[_0x24d75c('0x72')]=getSeconds(_0x188e0e[_0x24d75c('0x21')],_0x188e0e['starttime']);},exports[_0x5ca17e('0x86')]=function(_0x10f3de,_0x464f5a,_0xf3f13e){const _0x403a4a=_0x5ca17e;_0x10f3de[_0x403a4a('0x34')]=_0x464f5a,_0x10f3de['UserId']=_0xf3f13e;},exports[_0x5ca17e('0x54')]=function(_0x39dd16,_0x1101d7,_0x31535e){const _0x1501ec=_0x5ca17e,_0x5bfd3b=moment()['format'](_0x1501ec('0x16'));_0x39dd16[_0x1501ec('0x56')]=_0x1101d7,_0x39dd16[_0x1501ec('0x1a')]=_0x31535e,_0x39dd16['responsetime']=_0x39dd16[_0x1501ec('0x21')]?_0x39dd16[_0x1501ec('0x21')]:_0x5bfd3b,_0x39dd16['endtime']=_0x39dd16[_0x1501ec('0x61')]?_0x39dd16[_0x1501ec('0x61')]:_0x5bfd3b,_0x39dd16['ringtime']=getSeconds(_0x39dd16['responsetime']||0x0,_0x39dd16[_0x1501ec('0x74')]||0x0),_0x39dd16[_0x1501ec('0x3a')]=_0x39dd16[_0x1501ec('0x47')]?getSeconds(_0x39dd16[_0x1501ec('0x61')],_0x39dd16[_0x1501ec('0x47')]):0x0;},exports[_0x5ca17e('0x84')]=function(_0x3e2668){const _0x32ffec=_0x5ca17e;return _0x3e2668===_0x32ffec('0x7e');},exports[_0x5ca17e('0x1')]=function(_0x524a57,_0xb28760,_0x135706,_0x4cc3ca,_0x14d483){const _0x4af3f3=_0x5ca17e;let _0x324653=_0x4cc3ca?_0x4af3f3('0xa'):_0x524a57[_0x4af3f3('0x37')];return _0x324653=_0x14d483?'BOOKED':_0x324653,{'actionid':_0x524a57[_0x4af3f3('0x2e')],'action':_0x4af3f3('0x27'),'channel':_0x524a57[_0x4af3f3('0x5e')],'callerid':util[_0x4af3f3('0x23')]('\x22%s\x22\x20<%s>',_0x324653,_0x524a57[_0x4af3f3('0x7')]),'Exten':'xcally-motion-preview','Context':'from-sip','Priority':'1','variable':_0x135706,'timeout':(_0xb28760[_0x4af3f3('0x30')]||0x1e)*0x3e8,'async':!![],'channelid':_0x524a57[_0x4af3f3('0x2e')]};},exports[_0x5ca17e('0x53')]=function(_0xd6c166){const _0x3daddf=_0x5ca17e;return _0xd6c166[_0x3daddf('0x29')]+_0xd6c166[_0x3daddf('0x6a')]+_0xd6c166[_0x3daddf('0x3')]+_0xd6c166[_0x3daddf('0x66')]+_0xd6c166[_0x3daddf('0x73')];},exports[_0x5ca17e('0x9')]=function(_0x39c8c6){const _0x55f59c=_0x5ca17e,_0x2455b4=_[_0x55f59c('0x79')](_0x39c8c6);return _0x2455b4[_0x55f59c('0x56')]=0xf,_0x2455b4[_0x55f59c('0x1a')]=_0x55f59c('0x11'),_0x2455b4;},exports[_0x5ca17e('0x64')]=function(_0x375add,_0x4a393f,_0x241dd4){const _0x973a51=_0x5ca17e,_0x21512f={};return _0x21512f[_0x4a393f]=_0x375add[_0x4a393f],_0x21512f[_0x973a51('0x10')]=![],_0x21512f[_0x973a51('0x77')]=moment()[_0x973a51('0x83')](_0x241dd4,_0x973a51('0x70'))[_0x973a51('0x23')]('YYYY-MM-DD\x20HH:mm:ss'),_0x21512f[_0x973a51('0x3e')]=_0x375add[_0x973a51('0x3e')],_0x21512f[_0x973a51('0x43')]=_0x375add['ListId'],_0x21512f[_0x973a51('0x17')]=_0x375add['VoiceQueueId']||undefined,_0x21512f;},exports['decrementTalkink']=function(_0x3f8002,_0x6a024d){const _0x172d8b=_0x5ca17e;!_[_0x172d8b('0x62')](_0x3f8002)?_0x3f8002[_0x172d8b('0x46')]>0x0?_0x3f8002[_0x172d8b('0x46')]-=0x1:logger[_0x172d8b('0x51')](_0x6a024d,_0x172d8b('0x8')):logger[_0x172d8b('0x51')](_0x6a024d,_0x172d8b('0xc'));},exports[_0x5ca17e('0x50')]=function(_0x510ffe){if(_0x510ffe<=0x0)return!![];return![];},exports['buildObj']=function(_0x2feab0,_0xccbceb){const _0x271559=_0x5ca17e;return _0x2feab0[_0x271559('0x6d')]=_0xccbceb,_0x2feab0[_0x271559('0x1c')]=_0x2feab0[_0x271559('0x33')],_0x2feab0[_0x271559('0x25')]=_0x2feab0['channelAgent'],_0x2feab0;},exports[_0x5ca17e('0x42')]=function(_0x1f8913){const _0x18981e=_0x5ca17e,_0x2676ea={};return _0x2676ea[_0x18981e('0x33')]=_0x1f8913['queue'],_0x2676ea['interface']=_0x1f8913[_0x18981e('0x5e')],_0x2676ea[_0x18981e('0x2e')]=_0x1f8913['uniqueid'],_0x2676ea;},exports[_0x5ca17e('0x57')]=function(_0x5e3a3d){const _0x1554a4=_0x5ca17e,_0x41460f=[];for(const _0x3c3ada in _0x5e3a3d){typeof _0x5e3a3d[_0x3c3ada]!==_0x1554a4('0xd')&&(!_[_0x1554a4('0x62')](_0x5e3a3d[_0x3c3ada])&&_0x5e3a3d[_0x3c3ada][_0x1554a4('0x56')]===_0x1554a4('0x18')&&_0x5e3a3d[_0x3c3ada]['status']===_0x1554a4('0x3f')&&_0x41460f[_0x1554a4('0x4e')](_0x5e3a3d[_0x3c3ada]['id']));}return _0x41460f;},exports['getDiff']=function(_0x52c5f4){const _0x2b28e1=_0x5ca17e,_0x33ae84=moment()['milliseconds'](0x0),_0x3460a5=moment(_0x52c5f4)[_0x2b28e1('0x59')](0x0);return _0x33ae84[_0x2b28e1('0x63')](_0x3460a5,_0x2b28e1('0x5b'));},exports[_0x5ca17e('0x87')]=function(_0x47ba76){const _0x555819=_0x5ca17e;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x47ba76[_0x555819('0x3e')],'ListId':_0x47ba76[_0x555819('0x43')],'VoiceQueueId':_0x47ba76[_0x555819('0x17')]||undefined,'CampaignId':_0x47ba76['CampaignId']||undefined};},exports[_0x5ca17e('0x49')]=function(_0x52fbfb){const _0x5dcf96=_0x5ca17e;if(_0x52fbfb==='uniqueid'||_0x52fbfb===_0x5dcf96('0x69')||_0x52fbfb===_0x5dcf96('0x33')||_0x52fbfb===_0x5dcf96('0x5d')||_0x52fbfb==='campaigntype'||_0x52fbfb===_0x5dcf96('0x76')||_0x52fbfb===_0x5dcf96('0x34')||_0x52fbfb===_0x5dcf96('0x5e')||_0x52fbfb===_0x5dcf96('0x37')||_0x52fbfb===_0x5dcf96('0x10')||_0x52fbfb===_0x5dcf96('0x7')||_0x52fbfb===_0x5dcf96('0x77')||_0x52fbfb===_0x5dcf96('0x29')||_0x52fbfb===_0x5dcf96('0x6a')||_0x52fbfb===_0x5dcf96('0x3')||_0x52fbfb===_0x5dcf96('0x71')||_0x52fbfb===_0x5dcf96('0x7d')||_0x52fbfb===_0x5dcf96('0x52')||_0x52fbfb===_0x5dcf96('0x1d')||_0x52fbfb===_0x5dcf96('0x65')||_0x52fbfb===_0x5dcf96('0x3e')||_0x52fbfb===_0x5dcf96('0x43')||_0x52fbfb===_0x5dcf96('0x5')||_0x52fbfb===_0x5dcf96('0x17')||_0x52fbfb===_0x5dcf96('0x58')||_0x52fbfb==='xmd-voicequeueid'||_0x52fbfb===_0x5dcf96('0x0')||_0x52fbfb===_0x5dcf96('0x14')||_0x52fbfb===_0x5dcf96('0x6b')||_0x52fbfb===_0x5dcf96('0x60')||_0x52fbfb===_0x5dcf96('0x45')||_0x52fbfb==='xmd-dialoptions'||_0x52fbfb==='xmd-dialid'||_0x52fbfb===_0x5dcf96('0x15')||_0x52fbfb===_0x5dcf96('0x4d')||_0x52fbfb===_0x5dcf96('0x13')||_0x52fbfb===_0x5dcf96('0x1f')||_0x52fbfb==='xmd-agiafter'||_0x52fbfb===_0x5dcf96('0x5a')||_0x52fbfb===_0x5dcf96('0x39')||_0x52fbfb===_0x5dcf96('0x2b')||_0x52fbfb===_0x5dcf96('0x3d')||_0x52fbfb===_0x5dcf96('0x22')||_0x52fbfb===_0x5dcf96('0x44')||_0x52fbfb===_0x5dcf96('0x81')||_0x52fbfb===_0x5dcf96('0x2c')||_0x52fbfb==='rtpaudioqosrttbridged'||_0x52fbfb===_0x5dcf96('0x39')||_0x52fbfb==='rtpaudioqosbridged'||_0x52fbfb===_0x5dcf96('0x3d')||_0x52fbfb===_0x5dcf96('0x22')||_0x52fbfb===_0x5dcf96('0x44')||_0x52fbfb===_0x5dcf96('0x81')||_0x52fbfb===_0x5dcf96('0x2c')||_0x52fbfb===_0x5dcf96('0x80')||_0x52fbfb==='bridgepeer'||_0x52fbfb===_0x5dcf96('0x3b')||_0x52fbfb===_0x5dcf96('0x56')||_0x52fbfb==='statedesc')return![];return!![];},exports[_0x5ca17e('0x7c')]=function(_0x2a9f89,_0x56158a){const _0x55d2a0=_0x5ca17e;_0x56158a<=0x0&&(_0x56158a=0x1);const _0x4d49ff=new RegExp('\x5cw{0,'+_0x56158a+'}$'),_0x2d9073=Math[_0x55d2a0('0x6e')](0xa,_0x56158a-0x1),_0x27e509=Math[_0x55d2a0('0x6e')](0xa,_0x56158a)-0x1;return util[_0x55d2a0('0x23')]('%s',_[_0x55d2a0('0x82')](_0x2a9f89,_0x4d49ff,_['random'](_0x2d9073,_0x27e509)));},exports[_0x5ca17e('0x75')]=function(_0x541ce4){const _0x343e79=_0x5ca17e,_0x46a02c=_0x541ce4[_0x343e79('0xe')](/"(.*?)"/);return _0x46a02c?_0x46a02c[0x1]:_0x541ce4;},exports['extractCalleridNumber']=function(_0x5fa14a){const _0x21a7a9=_0x5ca17e,_0x42b3ff=_0x5fa14a[_0x21a7a9('0xe')](/<(.*?)>/);return _0x42b3ff?_0x42b3ff[0x1]:_0x5fa14a;}; \ No newline at end of file diff --git a/server/services/ami/properties.js b/server/services/ami/properties.js index fabe27a..0ef45d6 100644 --- a/server/services/ami/properties.js +++ b/server/services/ami/properties.js @@ -1 +1 @@ -var a1090_0xb60e=['queueadd','queuepause','voicequeuechannelhangup','voicequeuechannel','string','boolean','queueremove','voicequeuechannelredirect','reload','number','voicechannel'];(function(_0x50630d,_0xb60e22){var _0x14cb60=function(_0x1ddbda){while(--_0x1ddbda){_0x50630d['push'](_0x50630d['shift']());}};_0x14cb60(++_0xb60e22);}(a1090_0xb60e,0x65));var a1090_0x14cb=function(_0x50630d,_0xb60e22){_0x50630d=_0x50630d-0x0;var _0x14cb60=a1090_0xb60e[_0x50630d];return _0x14cb60;};var _0x24582e=a1090_0x14cb;'use strict';exports[_0x24582e('0x9')]={'queue':{'type':_0x24582e('0x2'),'required':!![]},'interface':{'type':'string','required':!![]},'membername':{'type':_0x24582e('0x2'),'required':!![]},'penalty':{'type':_0x24582e('0x7'),'required':![]},'paused':{'type':_0x24582e('0x3'),'required':![]}},exports[_0x24582e('0x4')]={'queue':{'type':_0x24582e('0x2'),'required':!![]},'interface':{'type':_0x24582e('0x2'),'required':!![]}},exports[_0x24582e('0xa')]={'interface':{'type':'string','required':!![]},'paused':{'type':'boolean'},'reason':{'type':'string','required':![]}},exports[_0x24582e('0x6')]={'module':{'type':_0x24582e('0x2'),'required':![]}},exports[_0x24582e('0x1')]={'uniqueid':{'type':'string','required':!![]}},exports[_0x24582e('0x8')]={'uniqueid':{'type':_0x24582e('0x2'),'required':!![]},'filename':{'type':_0x24582e('0x2')},'format':{'type':_0x24582e('0x2')},'mixmonitorid':{'type':_0x24582e('0x2')}},exports[_0x24582e('0x0')]={'uniqueid':{'type':_0x24582e('0x2'),'required':!![]}},exports[_0x24582e('0x5')]={'uniqueid':{'type':_0x24582e('0x2'),'required':!![]},'exten':{'type':'string','required':!![]},'context':{'type':'string'}}; \ No newline at end of file +var a1090_0x3194=['reload','voicequeuechannelhangup','voicequeuechannelredirect','queuepause','queueremove','voicechannel','voicequeuechannel','boolean','string','number','queueadd'];(function(_0x5a5faf,_0x319436){var _0x4108d0=function(_0x229ff0){while(--_0x229ff0){_0x5a5faf['push'](_0x5a5faf['shift']());}};_0x4108d0(++_0x319436);}(a1090_0x3194,0xcc));var a1090_0x4108=function(_0x5a5faf,_0x319436){_0x5a5faf=_0x5a5faf-0x0;var _0x4108d0=a1090_0x3194[_0x5a5faf];return _0x4108d0;};var _0x3c0134=a1090_0x4108;'use strict';exports[_0x3c0134('0x4')]={'queue':{'type':_0x3c0134('0x2'),'required':!![]},'interface':{'type':'string','required':!![]},'membername':{'type':_0x3c0134('0x2'),'required':!![]},'penalty':{'type':_0x3c0134('0x3'),'required':![]},'paused':{'type':_0x3c0134('0x1'),'required':![]}},exports[_0x3c0134('0x9')]={'queue':{'type':_0x3c0134('0x2'),'required':!![]},'interface':{'type':_0x3c0134('0x2'),'required':!![]}},exports[_0x3c0134('0x8')]={'interface':{'type':_0x3c0134('0x2'),'required':!![]},'paused':{'type':'boolean'},'reason':{'type':_0x3c0134('0x2'),'required':![]}},exports[_0x3c0134('0x5')]={'module':{'type':_0x3c0134('0x2'),'required':![]}},exports[_0x3c0134('0x0')]={'uniqueid':{'type':_0x3c0134('0x2'),'required':!![]}},exports[_0x3c0134('0xa')]={'uniqueid':{'type':_0x3c0134('0x2'),'required':!![]},'filename':{'type':'string'},'format':{'type':_0x3c0134('0x2')},'mixmonitorid':{'type':'string'}},exports[_0x3c0134('0x6')]={'uniqueid':{'type':_0x3c0134('0x2'),'required':!![]}},exports[_0x3c0134('0x7')]={'uniqueid':{'type':_0x3c0134('0x2'),'required':!![]},'exten':{'type':'string','required':!![]},'context':{'type':_0x3c0134('0x2')}}; \ No newline at end of file diff --git a/server/services/ami/realtime/index.js b/server/services/ami/realtime/index.js index fd41875..a0c9a08 100644 --- a/server/services/ami/realtime/index.js +++ b/server/services/ami/realtime/index.js @@ -1 +1 @@ -const a1091_0x3149=['initCampaigns','exports','initTriggers','length','outbound','diff','billableseconds','initSalesforceAccounts','initFaxAccounts','initSugarcrmAccounts','sumBillable','outboundNoSuchCallsDay','prototype','sumDuration','undefined','../model/agent','initFreshdeskAccounts','queuecallerabandon','outboundUnknownCallsDay','initAgents','abandoned','triggers','channels','telephones','deskAccounts','outboundDropCallsDayTimeout','dialQueueProject','dynamics365Accounts','voiceQueues','../model/sugarcrmAccount','initTrunks','isNil','answered','interface','../model/dynamics365Account','outboundReCallsDay','initServicenowAccounts','../model/salesforceAccount','groupBy','vtigerAccounts','isUndefined','campaigns','sugarcrmAccounts','lodash','../model/trigger','zohoAccounts','trunks','servicenowAccounts','util','mergeFromDatabase','queuecallerleaveAt','outboundBusyCallsDay','initZohoAccounts','../model/deskAccount','initVoiceQueueHopperHistory','outboundAnswerCallsDay','outboundBlacklistCallsDay','initVoiceQueues','total','uniqueid','../model/voiceExtension','initVoiceQueueReports','name','format','zendeskAccounts','merge','initCampaignHopperHistory','ivrTotalCallsDays','salesforceAccounts','queuecallerexit','initZendeskAccounts','outboundDropCallsDayCallersExit','unmanaged','initDeskAccounts','templates','../model/faxAccount','initDynamics365Accounts','freshsalesAccounts','initTemplates','outboundNoAnswerCallsDay','freshdeskAccounts','queueChannels','SIP/%s','initFreshsalesAccounts','agents','../model/vtigerAccount','seconds','voiceExtensions','queuecallerjoinAt','SquareProject','outboundOriginateFailureCallsDay','sumHoldTime','faxAccounts','initVtigerAccounts','../model/telephone','mapKeys'];(function(_0xd7a41d,_0x314916){const _0x3b66ed=function(_0xc4c2c){while(--_0xc4c2c){_0xd7a41d['push'](_0xd7a41d['shift']());}};_0x3b66ed(++_0x314916);}(a1091_0x3149,0x87));const a1091_0x3b66=function(_0xd7a41d,_0x314916){_0xd7a41d=_0xd7a41d-0x0;let _0x3b66ed=a1091_0x3149[_0xd7a41d];return _0x3b66ed;};const _0xba6e5b=a1091_0x3b66;'use strict';const util=require(_0xba6e5b('0x9')),_=require(_0xba6e5b('0x4')),moment=require('moment'),Agent=require(_0xba6e5b('0x48')),Telephone=require(_0xba6e5b('0x37')),Trunk=require('../model/trunk'),VoiceQueue=require('../model/voiceQueue'),Trigger=require(_0xba6e5b('0x5')),Template=require('../model/template'),Campaign=require('../model/campaign'),VoiceExtension=require(_0xba6e5b('0x15')),ZendeskAccount=require('../model/zendeskAccount'),SalesforceAccount=require(_0xba6e5b('0x5e')),FreshdeskAccount=require('../model/freshdeskAccount'),SugarcrmAccount=require(_0xba6e5b('0x56')),ZohoAccount=require('../model/zohoAccount'),DeskAccount=require(_0xba6e5b('0xe')),VtigerAccount=require(_0xba6e5b('0x2e')),ServicenowAccount=require('../model/servicenowAccount'),Dynamics365Account=require(_0xba6e5b('0x5b')),FreshsalesAccount=require('../model/freshsalesAccount'),FaxAccount=require(_0xba6e5b('0x24')),Realtime=function(){const _0x51e676=_0xba6e5b;this[_0x51e676('0x2d')]={},this[_0x51e676('0x50')]={},this[_0x51e676('0x7')]={},this['voiceQueues']={},this['triggers']={},this[_0x51e676('0x2')]={},this['templates']={},this[_0x51e676('0x3d')]={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this[_0x51e676('0x30')]={},this[_0x51e676('0x4f')]={},this[_0x51e676('0x2a')]={},this['outboundChannels']={},this['timers']={},this[_0x51e676('0x19')]={},this['salesforceAccounts']={},this['sugarcrmAccounts']={},this[_0x51e676('0x29')]={},this[_0x51e676('0x6')]={},this[_0x51e676('0x51')]={},this[_0x51e676('0x0')]={},this[_0x51e676('0x8')]={},this['dynamics365Accounts']={},this[_0x51e676('0x26')]={},this[_0x51e676('0x35')]={};};function freeIsNotKey(_0xc4c2c,_0x58afd8,_0x236adc){const _0x4ef8ce=_['mapKeys'](_0xc4c2c,function(_0x1cde56){return _0x1cde56[_0x236adc];});for(const _0x4fdd35 in _0x58afd8){typeof _0x58afd8[_0x4fdd35]!=='undefined'&&(!_0x4ef8ce[_0x4fdd35]&&delete _0x58afd8[_0x4fdd35]);}}function freeIsNotKeySip(_0x4e3b2c,_0x23c155){const _0x269871=_0xba6e5b,_0x32753d=_['mapKeys'](_0x4e3b2c,function(_0x2f8932){const _0x56e83e=a1091_0x3b66;return util[_0x56e83e('0x18')](_0x56e83e('0x2b'),_0x2f8932['name']);});for(const _0x138ef2 in _0x23c155){typeof _0x23c155[_0x138ef2]!==_0x269871('0x47')&&(!_0x32753d[_0x138ef2]&&delete _0x23c155[_0x138ef2]);}}function freeIsNotKeyAgent(_0x5cd1ca,_0xb7483f){const _0x5bd74c=_0xba6e5b,_0x5aa671=_[_0x5bd74c('0x38')](_0x5cd1ca,function(_0x10855c){const _0x2f7c8e=_0x5bd74c,_0x46f28e=_['isNil'](_0x10855c[_0x2f7c8e('0x5a')])?util['format'](_0x2f7c8e('0x2b'),_0x10855c[_0x2f7c8e('0x17')]):_0x10855c[_0x2f7c8e('0x5a')];return _0x46f28e;});for(const _0x28afeb in _0xb7483f){typeof _0xb7483f[_0x28afeb]!=='undefined'&&(!_0x5aa671[_0x28afeb]&&delete _0xb7483f[_0x28afeb]);}}function clearVoiceCallReports(_0x435a67){const _0x57bb12=_0xba6e5b;_0x435a67[_0x57bb12('0x13')]=0x0,_0x435a67['answered']=0x0,_0x435a67[_0x57bb12('0x34')]=0x0,_0x435a67['sumDuration']=0x0,_0x435a67[_0x57bb12('0x43')]=0x0;}function clearCampaigns(_0x294f17){const _0x5504e8=_0xba6e5b;if(!_['isEmpty'](_0x294f17))for(const _0x527630 in _0x294f17){typeof _0x294f17[_0x527630]!==_0x5504e8('0x47')&&(_0x294f17[_0x527630][_0x5504e8('0x1c')]=0x0,_0x294f17[_0x527630]['ivrAnswerCallsDay']=0x0);}}function clearVoiceQueues(_0x4dc1fe){const _0x3bbb77=_0xba6e5b;if(!_['isEmpty'](_0x4dc1fe))for(const _0x2868bf in _0x4dc1fe){typeof _0x4dc1fe[_0x2868bf]!==_0x3bbb77('0x47')&&(_0x4dc1fe[_0x2868bf][_0x3bbb77('0x13')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x59')]=0x0,_0x4dc1fe[_0x2868bf]['unmanaged']=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x4d')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x34')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x46')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x43')]=0x0,_0x4dc1fe[_0x2868bf]['outboundAnswerAgiCallsDay']=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x28')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0xc')]=0x0,_0x4dc1fe[_0x2868bf]['outboundCongestionCallsDay']=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x44')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x4b')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x52')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x20')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x11')]=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x33')]=0x0,_0x4dc1fe[_0x2868bf]['outboundRejectCallsDay']=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x5c')]=0x0,_0x4dc1fe[_0x2868bf]['outboundAnswerAgiCallsDay']=0x0,_0x4dc1fe[_0x2868bf][_0x3bbb77('0x10')]=0x0,_0x4dc1fe[_0x2868bf]['queueStatusComplete']=!![]);}}Realtime[_0xba6e5b('0x45')][_0xba6e5b('0xa')]=function(_0x4199d1,_0x3dc601){for(const _0x5aeb66 in _0x3dc601){typeof _0x4199d1[_0x5aeb66]!=='undefined'&&(_0x4199d1[_0x5aeb66]=_0x3dc601[_0x5aeb66]);}},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x4c')]=function(){const _0x2cd15b=this;return function(_0x2f887a){const _0x1a11a1=a1091_0x3b66;if(_0x2f887a){freeIsNotKeyAgent(_0x2f887a,_0x2cd15b[_0x1a11a1('0x2d')]);for(let _0x257f56=0x0,_0x1947bb={};_0x257f56<_0x2f887a[_0x1a11a1('0x3c')];_0x257f56+=0x1){_0x1947bb=_0x2f887a[_0x257f56];const _0x321771=_[_0x1a11a1('0x58')](_0x1947bb[_0x1a11a1('0x5a')])?util[_0x1a11a1('0x18')](_0x1a11a1('0x2b'),_0x1947bb[_0x1a11a1('0x17')]):_0x1947bb[_0x1a11a1('0x5a')];_[_0x1a11a1('0x1')](_0x2cd15b['agents'][_0x321771])?_0x2cd15b['agents'][_0x321771]=new Agent(_0x1947bb):_0x2cd15b['mergeFromDatabase'](_0x2cd15b[_0x1a11a1('0x2d')][_0x321771],_0x1947bb);}}return _0x2cd15b[_0x1a11a1('0x2d')];};},Realtime[_0xba6e5b('0x45')]['initTelephones']=function(){const _0x4c93d1=this;return function(_0x5e2d94){const _0x1d30a2=a1091_0x3b66;if(_0x5e2d94){freeIsNotKeySip(_0x5e2d94,_0x4c93d1[_0x1d30a2('0x50')]);for(let _0x1f51a6=0x0,_0x2b240c={};_0x1f51a6<_0x5e2d94[_0x1d30a2('0x3c')];_0x1f51a6+=0x1){_0x2b240c=_0x5e2d94[_0x1f51a6],_[_0x1d30a2('0x1')](_0x4c93d1[_0x1d30a2('0x50')][util[_0x1d30a2('0x18')](_0x1d30a2('0x2b'),_0x2b240c['name'])])?_0x4c93d1[_0x1d30a2('0x50')][util['format'](_0x1d30a2('0x2b'),_0x2b240c[_0x1d30a2('0x17')])]=new Telephone(_0x2b240c):_0x4c93d1[_0x1d30a2('0xa')](_0x4c93d1['telephones'][util[_0x1d30a2('0x18')](_0x1d30a2('0x2b'),_0x2b240c[_0x1d30a2('0x17')])],_0x2b240c);}}return _0x4c93d1['telephones'];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x57')]=function(){const _0x40c949=this;return function(_0x38bbf6){const _0x53c815=a1091_0x3b66;if(_0x38bbf6){freeIsNotKeySip(_0x38bbf6,_0x40c949[_0x53c815('0x7')]);for(let _0x5ad816=0x0,_0x38d608={};_0x5ad816<_0x38bbf6[_0x53c815('0x3c')];_0x5ad816+=0x1){_0x38d608=_0x38bbf6[_0x5ad816],_[_0x53c815('0x1')](_0x40c949[_0x53c815('0x7')][util[_0x53c815('0x18')]('SIP/%s',_0x38d608[_0x53c815('0x17')])])?_0x40c949[_0x53c815('0x7')][util['format']('SIP/%s',_0x38d608[_0x53c815('0x17')])]=new Trunk(_0x38d608):_0x40c949[_0x53c815('0xa')](_0x40c949[_0x53c815('0x7')][util[_0x53c815('0x18')](_0x53c815('0x2b'),_0x38d608['name'])],_0x38d608);}}return _0x40c949['trunks'];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x12')]=function(){const _0x166cf6=this;return function(_0x2aceea){const _0x28768a=a1091_0x3b66;if(_0x2aceea){freeIsNotKey(_0x2aceea,_0x166cf6[_0x28768a('0x55')],_0x28768a('0x17'));for(let _0x6741ec=0x0,_0x25f410={};_0x6741ec<_0x2aceea[_0x28768a('0x3c')];_0x6741ec+=0x1){_0x25f410=_0x2aceea[_0x6741ec],_[_0x28768a('0x1')](_0x166cf6['voiceQueues'][_0x25f410[_0x28768a('0x17')]])?_0x166cf6[_0x28768a('0x55')][_0x25f410['name']]=new VoiceQueue(_0x25f410):_0x166cf6[_0x28768a('0xa')](_0x166cf6['voiceQueues'][_0x25f410[_0x28768a('0x17')]],_0x25f410);}}return _0x166cf6[_0x28768a('0x55')];};},Realtime['prototype'][_0xba6e5b('0x3b')]=function(){const _0x3ebd74=this;return function(_0x2b8aea){const _0x47b695=a1091_0x3b66;if(_0x2b8aea){freeIsNotKey(_0x2b8aea,_0x3ebd74[_0x47b695('0x4e')],'id');for(let _0x218c85=0x0,_0x1d8883={};_0x218c85<_0x2b8aea['length'];_0x218c85+=0x1){_0x1d8883=_0x2b8aea[_0x218c85],_['isUndefined'](_0x3ebd74[_0x47b695('0x4e')][_0x1d8883['id']])?_0x3ebd74[_0x47b695('0x4e')][_0x1d8883['id']]=new Trigger(_0x1d8883):_0x3ebd74[_0x47b695('0xa')](_0x3ebd74[_0x47b695('0x4e')][_0x1d8883['id']],_0x1d8883);}}return _0x3ebd74[_0x47b695('0x4e')];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x27')]=function(){const _0x1f118f=this;return function(_0x37f69b){const _0x1f1d41=a1091_0x3b66;if(_0x37f69b){freeIsNotKey(_0x37f69b,_0x1f118f[_0x1f1d41('0x23')],'id');for(let _0x44a439=0x0,_0x2a3e17={};_0x44a439<_0x37f69b['length'];_0x44a439+=0x1){_0x2a3e17=_0x37f69b[_0x44a439],_[_0x1f1d41('0x1')](_0x1f118f[_0x1f1d41('0x23')][_0x2a3e17['id']])?_0x1f118f[_0x1f1d41('0x23')][_0x2a3e17['id']]=new Template(_0x2a3e17):_0x1f118f['mergeFromDatabase'](_0x1f118f[_0x1f1d41('0x23')][_0x2a3e17['id']],_0x2a3e17);}}return _0x1f118f[_0x1f1d41('0x23')];};},Realtime['prototype'][_0xba6e5b('0x1f')]=function(){const _0x2e5856=this;return function(_0x46320d){const _0x264a6d=a1091_0x3b66;if(_0x46320d){freeIsNotKey(_0x46320d,_0x2e5856[_0x264a6d('0x19')],'id');for(let _0x5f33be=0x0,_0x49dce5={};_0x5f33be<_0x46320d[_0x264a6d('0x3c')];_0x5f33be+=0x1){_0x49dce5=_0x46320d[_0x5f33be],_[_0x264a6d('0x1')](_0x2e5856[_0x264a6d('0x19')][_0x49dce5['id']])?_0x2e5856[_0x264a6d('0x19')][_0x49dce5['id']]=new ZendeskAccount(_0x49dce5):_0x2e5856['mergeFromDatabase'](_0x2e5856[_0x264a6d('0x19')][_0x49dce5['id']],_0x49dce5);}}return _0x2e5856['zendeskAccounts'];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x40')]=function(){const _0x854ab8=this;return function(_0x45e3a3){const _0xc51af2=a1091_0x3b66;if(_0x45e3a3){freeIsNotKey(_0x45e3a3,_0x854ab8['salesforceAccounts'],'id');for(let _0x3385ce=0x0,_0x36d9d6={};_0x3385ce<_0x45e3a3[_0xc51af2('0x3c')];_0x3385ce+=0x1){_0x36d9d6=_0x45e3a3[_0x3385ce],_['isUndefined'](_0x854ab8[_0xc51af2('0x1d')][_0x36d9d6['id']])?_0x854ab8[_0xc51af2('0x1d')][_0x36d9d6['id']]=new SalesforceAccount(_0x36d9d6):_0x854ab8[_0xc51af2('0xa')](_0x854ab8[_0xc51af2('0x1d')][_0x36d9d6['id']],_0x36d9d6);}}return _0x854ab8[_0xc51af2('0x1d')];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x49')]=function(){const _0x490713=this;return function(_0x4c960f){const _0x10494c=a1091_0x3b66;if(_0x4c960f){freeIsNotKey(_0x4c960f,_0x490713[_0x10494c('0x29')],'id');for(let _0x12b642=0x0,_0x42efa4={};_0x12b642<_0x4c960f[_0x10494c('0x3c')];_0x12b642+=0x1){_0x42efa4=_0x4c960f[_0x12b642],_[_0x10494c('0x1')](_0x490713['freshdeskAccounts'][_0x42efa4['id']])?_0x490713[_0x10494c('0x29')][_0x42efa4['id']]=new FreshdeskAccount(_0x42efa4):_0x490713[_0x10494c('0xa')](_0x490713[_0x10494c('0x29')][_0x42efa4['id']],_0x42efa4);}}return _0x490713['freshdeskAccounts'];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0xd')]=function(){const _0x4c7e50=this;return function(_0x2b4126){const _0xcf2c7b=a1091_0x3b66;if(_0x2b4126){freeIsNotKey(_0x2b4126,_0x4c7e50['zohoAccounts'],'id');for(let _0x309419=0x0,_0x566c9a={};_0x309419<_0x2b4126[_0xcf2c7b('0x3c')];_0x309419+=0x1){_0x566c9a=_0x2b4126[_0x309419],_[_0xcf2c7b('0x1')](_0x4c7e50[_0xcf2c7b('0x6')][_0x566c9a['id']])?_0x4c7e50['zohoAccounts'][_0x566c9a['id']]=new ZohoAccount(_0x566c9a):_0x4c7e50[_0xcf2c7b('0xa')](_0x4c7e50[_0xcf2c7b('0x6')][_0x566c9a['id']],_0x566c9a);}}return _0x4c7e50[_0xcf2c7b('0x6')];};},Realtime['prototype'][_0xba6e5b('0x22')]=function(){const _0x5e55a6=this;return function(_0x4b090f){const _0x3ffc09=a1091_0x3b66;if(_0x4b090f){freeIsNotKey(_0x4b090f,_0x5e55a6['deskAccounts'],'id');for(let _0x4058ac=0x0,_0x2a17e0={};_0x4058ac<_0x4b090f[_0x3ffc09('0x3c')];_0x4058ac+=0x1){_0x2a17e0=_0x4b090f[_0x4058ac],_[_0x3ffc09('0x1')](_0x5e55a6[_0x3ffc09('0x51')][_0x2a17e0['id']])?_0x5e55a6[_0x3ffc09('0x51')][_0x2a17e0['id']]=new DeskAccount(_0x2a17e0):_0x5e55a6[_0x3ffc09('0xa')](_0x5e55a6[_0x3ffc09('0x51')][_0x2a17e0['id']],_0x2a17e0);}}return _0x5e55a6['deskAccounts'];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x42')]=function(){const _0x29c63c=this;return function(_0x30efa6){const _0x13200a=a1091_0x3b66;if(_0x30efa6){freeIsNotKey(_0x30efa6,_0x29c63c[_0x13200a('0x3')],'id');for(let _0x33880e=0x0,_0x1c1878={};_0x33880e<_0x30efa6[_0x13200a('0x3c')];_0x33880e+=0x1){_0x1c1878=_0x30efa6[_0x33880e],_[_0x13200a('0x1')](_0x29c63c[_0x13200a('0x3')][_0x1c1878['id']])?_0x29c63c['sugarcrmAccounts'][_0x1c1878['id']]=new SugarcrmAccount(_0x1c1878):_0x29c63c[_0x13200a('0xa')](_0x29c63c['sugarcrmAccounts'][_0x1c1878['id']],_0x1c1878);}}return _0x29c63c[_0x13200a('0x3')];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x36')]=function(){const _0x52a609=this;return function(_0x2d2e73){const _0x1145b0=a1091_0x3b66;if(_0x2d2e73){freeIsNotKey(_0x2d2e73,_0x52a609['vtigerAccounts'],'id');for(let _0x103006=0x0,_0x223d18={};_0x103006<_0x2d2e73[_0x1145b0('0x3c')];_0x103006+=0x1){_0x223d18=_0x2d2e73[_0x103006],_[_0x1145b0('0x1')](_0x52a609[_0x1145b0('0x0')][_0x223d18['id']])?_0x52a609[_0x1145b0('0x0')][_0x223d18['id']]=new VtigerAccount(_0x223d18):_0x52a609[_0x1145b0('0xa')](_0x52a609['vtigerAccounts'][_0x223d18['id']],_0x223d18);}}return _0x52a609[_0x1145b0('0x0')];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x5d')]=function(){const _0x385d2b=this;return function(_0x3fa1a3){const _0x3bc293=a1091_0x3b66;if(_0x3fa1a3){freeIsNotKey(_0x3fa1a3,_0x385d2b['servicenowAccounts'],'id');for(let _0x267bde=0x0,_0x364893={};_0x267bde<_0x3fa1a3['length'];_0x267bde+=0x1){_0x364893=_0x3fa1a3[_0x267bde],_['isUndefined'](_0x385d2b['servicenowAccounts'][_0x364893['id']])?_0x385d2b[_0x3bc293('0x8')][_0x364893['id']]=new ServicenowAccount(_0x364893):_0x385d2b['mergeFromDatabase'](_0x385d2b[_0x3bc293('0x8')][_0x364893['id']],_0x364893);}}return _0x385d2b[_0x3bc293('0x8')];};},Realtime['prototype'][_0xba6e5b('0x25')]=function(){const _0x369000=this;return function(_0x39f061){const _0x5f4019=a1091_0x3b66;if(_0x39f061){freeIsNotKey(_0x39f061,_0x369000[_0x5f4019('0x54')],'id');for(let _0x57053e=0x0,_0x4c6adb={};_0x57053e<_0x39f061['length'];_0x57053e+=0x1){_0x4c6adb=_0x39f061[_0x57053e],_[_0x5f4019('0x1')](_0x369000[_0x5f4019('0x54')][_0x4c6adb['id']])?_0x369000[_0x5f4019('0x54')][_0x4c6adb['id']]=new Dynamics365Account(_0x4c6adb):_0x369000['mergeFromDatabase'](_0x369000[_0x5f4019('0x54')][_0x4c6adb['id']],_0x4c6adb);}}return _0x369000[_0x5f4019('0x54')];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x2c')]=function(){const _0x17283f=this;return function(_0x57d3b7){const _0x517368=a1091_0x3b66;if(_0x57d3b7){freeIsNotKey(_0x57d3b7,_0x17283f[_0x517368('0x26')],'id');for(let _0x374bc9=0x0,_0x2a0547={};_0x374bc9<_0x57d3b7[_0x517368('0x3c')];_0x374bc9+=0x1){_0x2a0547=_0x57d3b7[_0x374bc9],_['isUndefined'](_0x17283f[_0x517368('0x26')][_0x2a0547['id']])?_0x17283f[_0x517368('0x26')][_0x2a0547['id']]=new FreshsalesAccount(_0x2a0547):_0x17283f[_0x517368('0xa')](_0x17283f['freshsalesAccounts'][_0x2a0547['id']],_0x2a0547);}}return _0x17283f[_0x517368('0x26')];};},Realtime['prototype'][_0xba6e5b('0xf')]=function(){const _0x33932f=this;return function(_0x3ca920){const _0x47c84d=a1091_0x3b66;for(let _0x500c9e=0x0;_0x500c9e<_0x3ca920[_0x47c84d('0x3c')];_0x500c9e+=0x1){_['merge'](_0x33932f[_0x47c84d('0x55')][_0x3ca920[_0x500c9e][_0x47c84d('0x17')]],_0x3ca920[_0x500c9e]);}return _0x33932f[_0x47c84d('0x55')];};},Realtime['prototype'][_0xba6e5b('0x16')]=function(){const _0x53f091=this;return function(_0x59f022){const _0x23a22e=a1091_0x3b66;clearVoiceQueues(_0x53f091['voiceQueues']);if(_0x59f022){_0x59f022=_[_0x23a22e('0x5f')](_0x59f022,_0x23a22e('0x14'));for(const _0x365ccd in _0x59f022){if(typeof _0x59f022[_0x365ccd]!==_0x23a22e('0x47'))for(let _0x500902=0x0;_0x500902<_0x59f022[_0x365ccd][_0x23a22e('0x3c')];_0x500902+=0x1){const _0x1b2676=_0x59f022[_0x365ccd][_0x500902]['queue'];_0x53f091[_0x23a22e('0x55')][_0x1b2676]&&(_0x59f022[_0x365ccd][_0x500902][_0x23a22e('0x1e')]&&(_0x53f091[_0x23a22e('0x55')][_0x1b2676][_0x23a22e('0x21')]+=0x1),_0x59f022[_0x365ccd][_0x500902][_0x23a22e('0x4a')]&&(_0x53f091[_0x23a22e('0x55')][_0x1b2676][_0x23a22e('0x4d')]+=0x1),_0x53f091[_0x23a22e('0x55')][_0x1b2676][_0x23a22e('0x34')]+=moment(_0x59f022[_0x365ccd][_0x500902][_0x23a22e('0xb')])[_0x23a22e('0x3e')](moment(_0x59f022[_0x365ccd][_0x500902][_0x23a22e('0x31')]),'seconds')||0x0,_0x500902===_0x59f022[_0x365ccd][_0x23a22e('0x3c')]-0x1?(_0x53f091['voiceQueues'][_0x1b2676]['sumDuration']+=moment(_0x59f022[_0x365ccd][_0x500902]['queuecallercompleteAt']||_0x59f022[_0x365ccd][_0x500902]['queuecallerabandonAt']||_0x59f022[_0x365ccd][_0x500902]['queuecallerexitAt'])[_0x23a22e('0x3e')](moment(_0x59f022[_0x365ccd][_0x500902][_0x23a22e('0x31')]),'seconds')||0x0,_0x53f091[_0x23a22e('0x55')][_0x1b2676]['total']+=0x1,_0x59f022[_0x365ccd][_0x500902]['queuecallercomplete']&&(_0x53f091[_0x23a22e('0x55')][_0x1b2676][_0x23a22e('0x59')]+=0x1,_0x53f091[_0x23a22e('0x55')][_0x1b2676]['sumBillable']+=moment(_0x59f022[_0x365ccd][_0x500902]['queuecallercompleteAt'])[_0x23a22e('0x3e')](moment(_0x59f022[_0x365ccd][_0x500902][_0x23a22e('0xb')]),_0x23a22e('0x2f'))||0x0)):_0x53f091[_0x23a22e('0x55')][_0x1b2676][_0x23a22e('0x46')]+=_0x53f091[_0x23a22e('0x55')][_0x1b2676][_0x23a22e('0x34')]||0x0);}}}return _0x53f091[_0x23a22e('0x55')];};},Realtime[_0xba6e5b('0x45')]['initVoiceCallReports']=function(){const _0x1e2b67=this;return function(_0x5885ac){const _0x3a7fba=a1091_0x3b66;clearVoiceCallReports(_0x1e2b67[_0x3a7fba('0x3d')]);if(_0x5885ac)for(let _0x199bde=0x0;_0x199bde<_0x5885ac[_0x3a7fba('0x3c')];_0x199bde+=0x1){_0x1e2b67[_0x3a7fba('0x3d')][_0x3a7fba('0x13')]+=0x1,_0x1e2b67['outbound']['sumDuration']+=_0x5885ac[_0x199bde]['duration'],_0x5885ac[_0x199bde]['disposition']==='ANSWERED'&&(_0x1e2b67[_0x3a7fba('0x3d')][_0x3a7fba('0x59')]+=0x1,_0x1e2b67['outbound']['sumHoldTime']+=_0x5885ac[_0x199bde]['duration']-_0x5885ac[_0x199bde][_0x3a7fba('0x3f')]||0x0,_0x1e2b67[_0x3a7fba('0x3d')][_0x3a7fba('0x43')]+=_0x5885ac[_0x199bde][_0x3a7fba('0x3f')]);}return _0x1e2b67[_0x3a7fba('0x3d')];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x39')]=function(){const _0x241e33=this;return function(_0x2c14f2){const _0xcc1a2=a1091_0x3b66;if(_0x2c14f2){freeIsNotKey(_0x2c14f2,_0x241e33[_0xcc1a2('0x2')],_0xcc1a2('0x17'));for(let _0x1e6b08=0x0,_0x485d9a={};_0x1e6b08<_0x2c14f2[_0xcc1a2('0x3c')];_0x1e6b08+=0x1){_0x485d9a=_0x2c14f2[_0x1e6b08],_['isUndefined'](_0x241e33[_0xcc1a2('0x2')][_0x485d9a[_0xcc1a2('0x17')]])?_0x241e33['campaigns'][_0x485d9a[_0xcc1a2('0x17')]]=new Campaign(_0x485d9a):(_0x241e33[_0xcc1a2('0xa')](_0x241e33[_0xcc1a2('0x2')][_0x485d9a['name']],_0x485d9a),_0x241e33[_0xcc1a2('0x2')][_0x485d9a[_0xcc1a2('0x17')]][_0xcc1a2('0x53')]=_0x485d9a[_0xcc1a2('0x32')]?_0x485d9a[_0xcc1a2('0x32')]['name']:undefined);}}return _0x241e33[_0xcc1a2('0x2')];};},Realtime[_0xba6e5b('0x45')]['initVoiceExtensions']=function(){const _0x5b23ca=this;return function(_0x370c1f){const _0x39b74b=a1091_0x3b66;if(_0x370c1f){freeIsNotKey(_0x370c1f,_0x5b23ca['voiceExtensions'],'id');for(let _0x271b21=0x0,_0x1e7822={};_0x271b21<_0x370c1f[_0x39b74b('0x3c')];_0x271b21+=0x1){_0x1e7822=_0x370c1f[_0x271b21],_[_0x39b74b('0x1')](_0x5b23ca['voiceExtensions'][_0x1e7822['id']])?_0x5b23ca['voiceExtensions'][_0x1e7822['id']]=new VoiceExtension(_0x1e7822):_0x5b23ca['mergeFromDatabase'](_0x5b23ca[_0x39b74b('0x30')][_0x1e7822['id']],_0x1e7822);}}return _0x5b23ca[_0x39b74b('0x30')];};},Realtime['prototype'][_0xba6e5b('0x1b')]=function(){const _0x57b985=this;return function(_0x3d0d8c){const _0x47779d=a1091_0x3b66;clearCampaigns(_0x57b985[_0x47779d('0x2')]);for(let _0x327d62=0x0;_0x327d62<_0x3d0d8c[_0x47779d('0x3c')];_0x327d62+=0x1){_[_0x47779d('0x1a')](_0x57b985['campaigns'][_0x3d0d8c[_0x327d62][_0x47779d('0x17')]],_0x3d0d8c[_0x327d62]);}return _0x57b985[_0x47779d('0x2')];};},Realtime[_0xba6e5b('0x45')][_0xba6e5b('0x41')]=function(){const _0x5d1fe7=this;return function(_0xcbc08f){const _0x278889=a1091_0x3b66;if(_0xcbc08f){freeIsNotKey(_0xcbc08f,_0x5d1fe7['faxAccounts'],'id');for(let _0x2c48bb=0x0,_0x531dfb={};_0x2c48bb<_0xcbc08f[_0x278889('0x3c')];_0x2c48bb+=0x1){_0x531dfb=_0xcbc08f[_0x2c48bb],_[_0x278889('0x1')](_0x5d1fe7[_0x278889('0x35')][_0x531dfb['id']])?_0x5d1fe7[_0x278889('0x35')][_0x531dfb['id']]=new FaxAccount(_0x531dfb):_0x5d1fe7[_0x278889('0xa')](_0x5d1fe7[_0x278889('0x35')][_0x531dfb['id']],_0x531dfb);}}return _0x5d1fe7[_0x278889('0x35')];};},module[_0xba6e5b('0x3a')]=Realtime; \ No newline at end of file +const a1091_0x342d=['ANSWERED','outboundAnswerAgiCallsDay','length','initFreshdeskAccounts','freshdeskAccounts','outboundAnswerCallsDay','../model/template','queuecallerleaveAt','channels','total','../model/trigger','outboundBusyCallsDay','initTelephones','initTriggers','outboundNoAnswerCallsDay','sumDuration','../model/faxAccount','answered','../model/servicenowAccount','dialQueueProject','sumBillable','faxAccounts','diff','zendeskAccounts','queuecallercompleteAt','seconds','ivrAnswerCallsDay','../model/dynamics365Account','telephones','merge','../model/campaign','outboundBlacklistCallsDay','freshsalesAccounts','queuecallerabandon','servicenowAccounts','queuecallerexitAt','outboundOriginateFailureCallsDay','zohoAccounts','billableseconds','isNil','voiceExtensions','outboundRejectCallsDay','util','groupBy','exports','initVoiceQueueReports','lodash','outboundCongestionCallsDay','unmanaged','isUndefined','uniqueid','prototype','../model/zohoAccount','triggers','vtigerAccounts','deskAccounts','trunks','dynamics365Accounts','name','initSugarcrmAccounts','initServicenowAccounts','../model/agent','initSalesforceAccounts','sugarcrmAccounts','SquareProject','disposition','format','initAgents','queueStatusComplete','outbound','initVoiceCallReports','queuecallercomplete','queueChannels','sumHoldTime','mapKeys','queue','../model/voiceExtension','initDynamics365Accounts','templates','outboundDropCallsDayCallersExit','salesforceAccounts','campaigns','agents','initVoiceQueueHopperHistory','abandoned','queuecallerjoinAt','interface','SIP/%s','mergeFromDatabase','outboundUnknownCallsDay','../model/trunk','../model/sugarcrmAccount','ivrTotalCallsDays','initVoiceExtensions','undefined','duration','isEmpty','voiceQueues','initZohoAccounts','queuecallerabandonAt'];(function(_0x5dfd82,_0x342df3){const _0x3ca429=function(_0x1453a3){while(--_0x1453a3){_0x5dfd82['push'](_0x5dfd82['shift']());}};_0x3ca429(++_0x342df3);}(a1091_0x342d,0x86));const a1091_0x3ca4=function(_0x5dfd82,_0x342df3){_0x5dfd82=_0x5dfd82-0x0;let _0x3ca429=a1091_0x342d[_0x5dfd82];return _0x3ca429;};const _0x28b907=a1091_0x3ca4;'use strict';const util=require(_0x28b907('0x8')),_=require(_0x28b907('0xc')),moment=require('moment'),Agent=require(_0x28b907('0x1b')),Telephone=require('../model/telephone'),Trunk=require(_0x28b907('0x38')),VoiceQueue=require('../model/voiceQueue'),Trigger=require(_0x28b907('0x4c')),Template=require(_0x28b907('0x48')),Campaign=require(_0x28b907('0x60')),VoiceExtension=require(_0x28b907('0x2a')),ZendeskAccount=require('../model/zendeskAccount'),SalesforceAccount=require('../model/salesforceAccount'),FreshdeskAccount=require('../model/freshdeskAccount'),SugarcrmAccount=require(_0x28b907('0x39')),ZohoAccount=require(_0x28b907('0x12')),DeskAccount=require('../model/deskAccount'),VtigerAccount=require('../model/vtigerAccount'),ServicenowAccount=require(_0x28b907('0x54')),Dynamics365Account=require(_0x28b907('0x5d')),FreshsalesAccount=require('../model/freshsalesAccount'),FaxAccount=require(_0x28b907('0x52')),Realtime=function(){const _0x5450ee=_0x28b907;this[_0x5450ee('0x30')]={},this['telephones']={},this['trunks']={},this[_0x5450ee('0x3f')]={},this['triggers']={},this[_0x5450ee('0x2f')]={},this[_0x5450ee('0x2c')]={},this[_0x5450ee('0x23')]={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this[_0x5450ee('0x6')]={},this[_0x5450ee('0x4a')]={},this[_0x5450ee('0x26')]={},this['outboundChannels']={},this['timers']={},this[_0x5450ee('0x59')]={},this[_0x5450ee('0x2e')]={},this['sugarcrmAccounts']={},this[_0x5450ee('0x46')]={},this[_0x5450ee('0x3')]={},this['deskAccounts']={},this[_0x5450ee('0x14')]={},this[_0x5450ee('0x0')]={},this[_0x5450ee('0x17')]={},this[_0x5450ee('0x62')]={},this[_0x5450ee('0x57')]={};};function freeIsNotKey(_0x1453a3,_0x1bd206,_0xda3e11){const _0x27f286=_0x28b907,_0x92df79=_[_0x27f286('0x28')](_0x1453a3,function(_0x46a335){return _0x46a335[_0xda3e11];});for(const _0x15651f in _0x1bd206){typeof _0x1bd206[_0x15651f]!==_0x27f286('0x3c')&&(!_0x92df79[_0x15651f]&&delete _0x1bd206[_0x15651f]);}}function freeIsNotKeySip(_0x41d930,_0x517907){const _0x13221a=_0x28b907,_0xc821c7=_[_0x13221a('0x28')](_0x41d930,function(_0x35d774){const _0x461aa7=_0x13221a;return util[_0x461aa7('0x20')](_0x461aa7('0x35'),_0x35d774[_0x461aa7('0x18')]);});for(const _0x2788ce in _0x517907){typeof _0x517907[_0x2788ce]!=='undefined'&&(!_0xc821c7[_0x2788ce]&&delete _0x517907[_0x2788ce]);}}function freeIsNotKeyAgent(_0x375fa3,_0xe1211f){const _0x455658=_0x28b907,_0x330c0b=_[_0x455658('0x28')](_0x375fa3,function(_0x513ba6){const _0x202f2a=_0x455658,_0x3d0db0=_[_0x202f2a('0x5')](_0x513ba6[_0x202f2a('0x34')])?util[_0x202f2a('0x20')]('SIP/%s',_0x513ba6[_0x202f2a('0x18')]):_0x513ba6['interface'];return _0x3d0db0;});for(const _0x266898 in _0xe1211f){typeof _0xe1211f[_0x266898]!=='undefined'&&(!_0x330c0b[_0x266898]&&delete _0xe1211f[_0x266898]);}}function clearVoiceCallReports(_0x44c93b){const _0x140bdc=_0x28b907;_0x44c93b[_0x140bdc('0x4b')]=0x0,_0x44c93b[_0x140bdc('0x53')]=0x0,_0x44c93b[_0x140bdc('0x27')]=0x0,_0x44c93b[_0x140bdc('0x51')]=0x0,_0x44c93b[_0x140bdc('0x56')]=0x0;}function clearCampaigns(_0x1e0f3d){const _0x60dc6b=_0x28b907;if(!_[_0x60dc6b('0x3e')](_0x1e0f3d))for(const _0x3b673e in _0x1e0f3d){typeof _0x1e0f3d[_0x3b673e]!==_0x60dc6b('0x3c')&&(_0x1e0f3d[_0x3b673e][_0x60dc6b('0x3a')]=0x0,_0x1e0f3d[_0x3b673e][_0x60dc6b('0x5c')]=0x0);}}function clearVoiceQueues(_0x15afe6){const _0x441ad4=_0x28b907;if(!_['isEmpty'](_0x15afe6))for(const _0x3d615c in _0x15afe6){typeof _0x15afe6[_0x3d615c]!==_0x441ad4('0x3c')&&(_0x15afe6[_0x3d615c][_0x441ad4('0x4b')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x53')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0xe')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x32')]=0x0,_0x15afe6[_0x3d615c]['sumHoldTime']=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x51')]=0x0,_0x15afe6[_0x3d615c]['sumBillable']=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x43')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x50')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x4d')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0xd')]=0x0,_0x15afe6[_0x3d615c]['outboundNoSuchCallsDay']=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x37')]=0x0,_0x15afe6[_0x3d615c]['outboundDropCallsDayTimeout']=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x2d')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x61')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x2')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x7')]=0x0,_0x15afe6[_0x3d615c]['outboundReCallsDay']=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x43')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x47')]=0x0,_0x15afe6[_0x3d615c][_0x441ad4('0x22')]=!![]);}}Realtime[_0x28b907('0x11')]['mergeFromDatabase']=function(_0x2dd79b,_0x3641bf){const _0x5d5568=_0x28b907;for(const _0x563418 in _0x3641bf){typeof _0x2dd79b[_0x563418]!==_0x5d5568('0x3c')&&(_0x2dd79b[_0x563418]=_0x3641bf[_0x563418]);}},Realtime[_0x28b907('0x11')][_0x28b907('0x21')]=function(){const _0x4ffdeb=this;return function(_0x5b646e){const _0x5b78dd=a1091_0x3ca4;if(_0x5b646e){freeIsNotKeyAgent(_0x5b646e,_0x4ffdeb[_0x5b78dd('0x30')]);for(let _0x18570b=0x0,_0x2f61e7={};_0x18570b<_0x5b646e[_0x5b78dd('0x44')];_0x18570b+=0x1){_0x2f61e7=_0x5b646e[_0x18570b];const _0x12a082=_[_0x5b78dd('0x5')](_0x2f61e7[_0x5b78dd('0x34')])?util['format'](_0x5b78dd('0x35'),_0x2f61e7[_0x5b78dd('0x18')]):_0x2f61e7['interface'];_['isUndefined'](_0x4ffdeb['agents'][_0x12a082])?_0x4ffdeb[_0x5b78dd('0x30')][_0x12a082]=new Agent(_0x2f61e7):_0x4ffdeb[_0x5b78dd('0x36')](_0x4ffdeb[_0x5b78dd('0x30')][_0x12a082],_0x2f61e7);}}return _0x4ffdeb[_0x5b78dd('0x30')];};},Realtime[_0x28b907('0x11')][_0x28b907('0x4e')]=function(){const _0x279197=this;return function(_0x51903e){const _0x4a2c33=a1091_0x3ca4;if(_0x51903e){freeIsNotKeySip(_0x51903e,_0x279197[_0x4a2c33('0x5e')]);for(let _0x44b025=0x0,_0x57d840={};_0x44b025<_0x51903e[_0x4a2c33('0x44')];_0x44b025+=0x1){_0x57d840=_0x51903e[_0x44b025],_[_0x4a2c33('0xf')](_0x279197[_0x4a2c33('0x5e')][util[_0x4a2c33('0x20')](_0x4a2c33('0x35'),_0x57d840[_0x4a2c33('0x18')])])?_0x279197['telephones'][util[_0x4a2c33('0x20')](_0x4a2c33('0x35'),_0x57d840[_0x4a2c33('0x18')])]=new Telephone(_0x57d840):_0x279197[_0x4a2c33('0x36')](_0x279197[_0x4a2c33('0x5e')][util[_0x4a2c33('0x20')](_0x4a2c33('0x35'),_0x57d840[_0x4a2c33('0x18')])],_0x57d840);}}return _0x279197['telephones'];};},Realtime[_0x28b907('0x11')]['initTrunks']=function(){const _0x36109f=this;return function(_0x132257){const _0x8ce12f=a1091_0x3ca4;if(_0x132257){freeIsNotKeySip(_0x132257,_0x36109f[_0x8ce12f('0x16')]);for(let _0x2c2fc6=0x0,_0x11e2bc={};_0x2c2fc6<_0x132257['length'];_0x2c2fc6+=0x1){_0x11e2bc=_0x132257[_0x2c2fc6],_[_0x8ce12f('0xf')](_0x36109f['trunks'][util[_0x8ce12f('0x20')](_0x8ce12f('0x35'),_0x11e2bc['name'])])?_0x36109f[_0x8ce12f('0x16')][util[_0x8ce12f('0x20')](_0x8ce12f('0x35'),_0x11e2bc[_0x8ce12f('0x18')])]=new Trunk(_0x11e2bc):_0x36109f[_0x8ce12f('0x36')](_0x36109f['trunks'][util[_0x8ce12f('0x20')](_0x8ce12f('0x35'),_0x11e2bc[_0x8ce12f('0x18')])],_0x11e2bc);}}return _0x36109f['trunks'];};},Realtime[_0x28b907('0x11')]['initVoiceQueues']=function(){const _0x4803cb=this;return function(_0x3e654c){const _0x48f6f5=a1091_0x3ca4;if(_0x3e654c){freeIsNotKey(_0x3e654c,_0x4803cb[_0x48f6f5('0x3f')],'name');for(let _0x10d9a9=0x0,_0x234485={};_0x10d9a9<_0x3e654c[_0x48f6f5('0x44')];_0x10d9a9+=0x1){_0x234485=_0x3e654c[_0x10d9a9],_['isUndefined'](_0x4803cb[_0x48f6f5('0x3f')][_0x234485[_0x48f6f5('0x18')]])?_0x4803cb[_0x48f6f5('0x3f')][_0x234485['name']]=new VoiceQueue(_0x234485):_0x4803cb[_0x48f6f5('0x36')](_0x4803cb[_0x48f6f5('0x3f')][_0x234485[_0x48f6f5('0x18')]],_0x234485);}}return _0x4803cb[_0x48f6f5('0x3f')];};},Realtime[_0x28b907('0x11')][_0x28b907('0x4f')]=function(){const _0x3b7bd1=this;return function(_0x1a94a7){const _0x150462=a1091_0x3ca4;if(_0x1a94a7){freeIsNotKey(_0x1a94a7,_0x3b7bd1['triggers'],'id');for(let _0x2104b1=0x0,_0x4ccba5={};_0x2104b1<_0x1a94a7[_0x150462('0x44')];_0x2104b1+=0x1){_0x4ccba5=_0x1a94a7[_0x2104b1],_[_0x150462('0xf')](_0x3b7bd1[_0x150462('0x13')][_0x4ccba5['id']])?_0x3b7bd1[_0x150462('0x13')][_0x4ccba5['id']]=new Trigger(_0x4ccba5):_0x3b7bd1[_0x150462('0x36')](_0x3b7bd1[_0x150462('0x13')][_0x4ccba5['id']],_0x4ccba5);}}return _0x3b7bd1[_0x150462('0x13')];};},Realtime[_0x28b907('0x11')]['initTemplates']=function(){const _0x443ff0=this;return function(_0x4448ca){const _0x9ce745=a1091_0x3ca4;if(_0x4448ca){freeIsNotKey(_0x4448ca,_0x443ff0['templates'],'id');for(let _0x193cf5=0x0,_0x2ba3f5={};_0x193cf5<_0x4448ca['length'];_0x193cf5+=0x1){_0x2ba3f5=_0x4448ca[_0x193cf5],_[_0x9ce745('0xf')](_0x443ff0[_0x9ce745('0x2c')][_0x2ba3f5['id']])?_0x443ff0[_0x9ce745('0x2c')][_0x2ba3f5['id']]=new Template(_0x2ba3f5):_0x443ff0[_0x9ce745('0x36')](_0x443ff0[_0x9ce745('0x2c')][_0x2ba3f5['id']],_0x2ba3f5);}}return _0x443ff0[_0x9ce745('0x2c')];};},Realtime[_0x28b907('0x11')]['initZendeskAccounts']=function(){const _0x510a08=this;return function(_0x181e4d){const _0x2c45fe=a1091_0x3ca4;if(_0x181e4d){freeIsNotKey(_0x181e4d,_0x510a08[_0x2c45fe('0x59')],'id');for(let _0x3170e2=0x0,_0x3decb8={};_0x3170e2<_0x181e4d[_0x2c45fe('0x44')];_0x3170e2+=0x1){_0x3decb8=_0x181e4d[_0x3170e2],_[_0x2c45fe('0xf')](_0x510a08[_0x2c45fe('0x59')][_0x3decb8['id']])?_0x510a08[_0x2c45fe('0x59')][_0x3decb8['id']]=new ZendeskAccount(_0x3decb8):_0x510a08[_0x2c45fe('0x36')](_0x510a08[_0x2c45fe('0x59')][_0x3decb8['id']],_0x3decb8);}}return _0x510a08['zendeskAccounts'];};},Realtime[_0x28b907('0x11')][_0x28b907('0x1c')]=function(){const _0x158a6c=this;return function(_0x1bf564){const _0xd86f59=a1091_0x3ca4;if(_0x1bf564){freeIsNotKey(_0x1bf564,_0x158a6c[_0xd86f59('0x2e')],'id');for(let _0x42198d=0x0,_0x2ca1c4={};_0x42198d<_0x1bf564[_0xd86f59('0x44')];_0x42198d+=0x1){_0x2ca1c4=_0x1bf564[_0x42198d],_[_0xd86f59('0xf')](_0x158a6c[_0xd86f59('0x2e')][_0x2ca1c4['id']])?_0x158a6c[_0xd86f59('0x2e')][_0x2ca1c4['id']]=new SalesforceAccount(_0x2ca1c4):_0x158a6c[_0xd86f59('0x36')](_0x158a6c[_0xd86f59('0x2e')][_0x2ca1c4['id']],_0x2ca1c4);}}return _0x158a6c[_0xd86f59('0x2e')];};},Realtime['prototype'][_0x28b907('0x45')]=function(){const _0x3b500d=this;return function(_0x453503){const _0x2e973a=a1091_0x3ca4;if(_0x453503){freeIsNotKey(_0x453503,_0x3b500d[_0x2e973a('0x46')],'id');for(let _0x14899e=0x0,_0x38cb12={};_0x14899e<_0x453503['length'];_0x14899e+=0x1){_0x38cb12=_0x453503[_0x14899e],_[_0x2e973a('0xf')](_0x3b500d['freshdeskAccounts'][_0x38cb12['id']])?_0x3b500d[_0x2e973a('0x46')][_0x38cb12['id']]=new FreshdeskAccount(_0x38cb12):_0x3b500d[_0x2e973a('0x36')](_0x3b500d['freshdeskAccounts'][_0x38cb12['id']],_0x38cb12);}}return _0x3b500d[_0x2e973a('0x46')];};},Realtime[_0x28b907('0x11')][_0x28b907('0x40')]=function(){const _0xdc3192=this;return function(_0x5aaef7){const _0x3659c0=a1091_0x3ca4;if(_0x5aaef7){freeIsNotKey(_0x5aaef7,_0xdc3192[_0x3659c0('0x3')],'id');for(let _0x5c7bec=0x0,_0x335a56={};_0x5c7bec<_0x5aaef7['length'];_0x5c7bec+=0x1){_0x335a56=_0x5aaef7[_0x5c7bec],_['isUndefined'](_0xdc3192[_0x3659c0('0x3')][_0x335a56['id']])?_0xdc3192[_0x3659c0('0x3')][_0x335a56['id']]=new ZohoAccount(_0x335a56):_0xdc3192['mergeFromDatabase'](_0xdc3192['zohoAccounts'][_0x335a56['id']],_0x335a56);}}return _0xdc3192[_0x3659c0('0x3')];};},Realtime['prototype']['initDeskAccounts']=function(){const _0x5ba9fb=this;return function(_0x208348){const _0x28b818=a1091_0x3ca4;if(_0x208348){freeIsNotKey(_0x208348,_0x5ba9fb['deskAccounts'],'id');for(let _0x2a9698=0x0,_0x5caaf0={};_0x2a9698<_0x208348[_0x28b818('0x44')];_0x2a9698+=0x1){_0x5caaf0=_0x208348[_0x2a9698],_[_0x28b818('0xf')](_0x5ba9fb[_0x28b818('0x15')][_0x5caaf0['id']])?_0x5ba9fb['deskAccounts'][_0x5caaf0['id']]=new DeskAccount(_0x5caaf0):_0x5ba9fb['mergeFromDatabase'](_0x5ba9fb[_0x28b818('0x15')][_0x5caaf0['id']],_0x5caaf0);}}return _0x5ba9fb[_0x28b818('0x15')];};},Realtime[_0x28b907('0x11')][_0x28b907('0x19')]=function(){const _0x32198=this;return function(_0x635d98){const _0x23715d=a1091_0x3ca4;if(_0x635d98){freeIsNotKey(_0x635d98,_0x32198[_0x23715d('0x1d')],'id');for(let _0x1b93f4=0x0,_0x5d5c43={};_0x1b93f4<_0x635d98['length'];_0x1b93f4+=0x1){_0x5d5c43=_0x635d98[_0x1b93f4],_[_0x23715d('0xf')](_0x32198['sugarcrmAccounts'][_0x5d5c43['id']])?_0x32198[_0x23715d('0x1d')][_0x5d5c43['id']]=new SugarcrmAccount(_0x5d5c43):_0x32198['mergeFromDatabase'](_0x32198[_0x23715d('0x1d')][_0x5d5c43['id']],_0x5d5c43);}}return _0x32198[_0x23715d('0x1d')];};},Realtime[_0x28b907('0x11')]['initVtigerAccounts']=function(){const _0x5accc4=this;return function(_0x3e9012){const _0x4f7efa=a1091_0x3ca4;if(_0x3e9012){freeIsNotKey(_0x3e9012,_0x5accc4[_0x4f7efa('0x14')],'id');for(let _0x5e7393=0x0,_0x5ba19f={};_0x5e7393<_0x3e9012['length'];_0x5e7393+=0x1){_0x5ba19f=_0x3e9012[_0x5e7393],_['isUndefined'](_0x5accc4['vtigerAccounts'][_0x5ba19f['id']])?_0x5accc4[_0x4f7efa('0x14')][_0x5ba19f['id']]=new VtigerAccount(_0x5ba19f):_0x5accc4[_0x4f7efa('0x36')](_0x5accc4[_0x4f7efa('0x14')][_0x5ba19f['id']],_0x5ba19f);}}return _0x5accc4[_0x4f7efa('0x14')];};},Realtime[_0x28b907('0x11')][_0x28b907('0x1a')]=function(){const _0x2c216e=this;return function(_0x40342e){const _0x46bb4c=a1091_0x3ca4;if(_0x40342e){freeIsNotKey(_0x40342e,_0x2c216e['servicenowAccounts'],'id');for(let _0x5930e6=0x0,_0x4a4393={};_0x5930e6<_0x40342e[_0x46bb4c('0x44')];_0x5930e6+=0x1){_0x4a4393=_0x40342e[_0x5930e6],_[_0x46bb4c('0xf')](_0x2c216e['servicenowAccounts'][_0x4a4393['id']])?_0x2c216e[_0x46bb4c('0x0')][_0x4a4393['id']]=new ServicenowAccount(_0x4a4393):_0x2c216e[_0x46bb4c('0x36')](_0x2c216e['servicenowAccounts'][_0x4a4393['id']],_0x4a4393);}}return _0x2c216e[_0x46bb4c('0x0')];};},Realtime[_0x28b907('0x11')][_0x28b907('0x2b')]=function(){const _0x2cc6e4=this;return function(_0x598a2e){const _0x2912ef=a1091_0x3ca4;if(_0x598a2e){freeIsNotKey(_0x598a2e,_0x2cc6e4['dynamics365Accounts'],'id');for(let _0x2ca24a=0x0,_0x26f46f={};_0x2ca24a<_0x598a2e['length'];_0x2ca24a+=0x1){_0x26f46f=_0x598a2e[_0x2ca24a],_['isUndefined'](_0x2cc6e4['dynamics365Accounts'][_0x26f46f['id']])?_0x2cc6e4[_0x2912ef('0x17')][_0x26f46f['id']]=new Dynamics365Account(_0x26f46f):_0x2cc6e4['mergeFromDatabase'](_0x2cc6e4[_0x2912ef('0x17')][_0x26f46f['id']],_0x26f46f);}}return _0x2cc6e4['dynamics365Accounts'];};},Realtime[_0x28b907('0x11')]['initFreshsalesAccounts']=function(){const _0x107e71=this;return function(_0x56eb17){const _0x19b022=a1091_0x3ca4;if(_0x56eb17){freeIsNotKey(_0x56eb17,_0x107e71[_0x19b022('0x62')],'id');for(let _0x527fab=0x0,_0x40711b={};_0x527fab<_0x56eb17[_0x19b022('0x44')];_0x527fab+=0x1){_0x40711b=_0x56eb17[_0x527fab],_[_0x19b022('0xf')](_0x107e71[_0x19b022('0x62')][_0x40711b['id']])?_0x107e71[_0x19b022('0x62')][_0x40711b['id']]=new FreshsalesAccount(_0x40711b):_0x107e71[_0x19b022('0x36')](_0x107e71[_0x19b022('0x62')][_0x40711b['id']],_0x40711b);}}return _0x107e71[_0x19b022('0x62')];};},Realtime['prototype'][_0x28b907('0x31')]=function(){const _0x5bd950=this;return function(_0x2eb62d){const _0x3ae798=a1091_0x3ca4;for(let _0x353c74=0x0;_0x353c74<_0x2eb62d[_0x3ae798('0x44')];_0x353c74+=0x1){_[_0x3ae798('0x5f')](_0x5bd950['voiceQueues'][_0x2eb62d[_0x353c74][_0x3ae798('0x18')]],_0x2eb62d[_0x353c74]);}return _0x5bd950[_0x3ae798('0x3f')];};},Realtime[_0x28b907('0x11')][_0x28b907('0xb')]=function(){const _0xd0260c=this;return function(_0x5d9eca){const _0x47ebbe=a1091_0x3ca4;clearVoiceQueues(_0xd0260c['voiceQueues']);if(_0x5d9eca){_0x5d9eca=_[_0x47ebbe('0x9')](_0x5d9eca,_0x47ebbe('0x10'));for(const _0x2006e4 in _0x5d9eca){if(typeof _0x5d9eca[_0x2006e4]!==_0x47ebbe('0x3c'))for(let _0x57f5d4=0x0;_0x57f5d4<_0x5d9eca[_0x2006e4][_0x47ebbe('0x44')];_0x57f5d4+=0x1){const _0x439e9f=_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x29')];_0xd0260c[_0x47ebbe('0x3f')][_0x439e9f]&&(_0x5d9eca[_0x2006e4][_0x57f5d4]['queuecallerexit']&&(_0xd0260c['voiceQueues'][_0x439e9f][_0x47ebbe('0xe')]+=0x1),_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x63')]&&(_0xd0260c[_0x47ebbe('0x3f')][_0x439e9f][_0x47ebbe('0x32')]+=0x1),_0xd0260c[_0x47ebbe('0x3f')][_0x439e9f][_0x47ebbe('0x27')]+=moment(_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x49')])[_0x47ebbe('0x58')](moment(_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x33')]),_0x47ebbe('0x5b'))||0x0,_0x57f5d4===_0x5d9eca[_0x2006e4][_0x47ebbe('0x44')]-0x1?(_0xd0260c['voiceQueues'][_0x439e9f][_0x47ebbe('0x51')]+=moment(_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x5a')]||_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x41')]||_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x1')])[_0x47ebbe('0x58')](moment(_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x33')]),_0x47ebbe('0x5b'))||0x0,_0xd0260c[_0x47ebbe('0x3f')][_0x439e9f][_0x47ebbe('0x4b')]+=0x1,_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x25')]&&(_0xd0260c[_0x47ebbe('0x3f')][_0x439e9f]['answered']+=0x1,_0xd0260c[_0x47ebbe('0x3f')][_0x439e9f]['sumBillable']+=moment(_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x5a')])[_0x47ebbe('0x58')](moment(_0x5d9eca[_0x2006e4][_0x57f5d4][_0x47ebbe('0x49')]),_0x47ebbe('0x5b'))||0x0)):_0xd0260c[_0x47ebbe('0x3f')][_0x439e9f][_0x47ebbe('0x51')]+=_0xd0260c[_0x47ebbe('0x3f')][_0x439e9f][_0x47ebbe('0x27')]||0x0);}}}return _0xd0260c['voiceQueues'];};},Realtime[_0x28b907('0x11')][_0x28b907('0x24')]=function(){const _0x1c40e0=this;return function(_0x49cdb5){const _0x13f4db=a1091_0x3ca4;clearVoiceCallReports(_0x1c40e0['outbound']);if(_0x49cdb5)for(let _0x4709a0=0x0;_0x4709a0<_0x49cdb5[_0x13f4db('0x44')];_0x4709a0+=0x1){_0x1c40e0[_0x13f4db('0x23')][_0x13f4db('0x4b')]+=0x1,_0x1c40e0[_0x13f4db('0x23')]['sumDuration']+=_0x49cdb5[_0x4709a0]['duration'],_0x49cdb5[_0x4709a0][_0x13f4db('0x1f')]===_0x13f4db('0x42')&&(_0x1c40e0[_0x13f4db('0x23')]['answered']+=0x1,_0x1c40e0['outbound'][_0x13f4db('0x27')]+=_0x49cdb5[_0x4709a0][_0x13f4db('0x3d')]-_0x49cdb5[_0x4709a0][_0x13f4db('0x4')]||0x0,_0x1c40e0[_0x13f4db('0x23')][_0x13f4db('0x56')]+=_0x49cdb5[_0x4709a0]['billableseconds']);}return _0x1c40e0['outbound'];};},Realtime[_0x28b907('0x11')]['initCampaigns']=function(){const _0x5d371f=this;return function(_0x4fad3b){const _0x334020=a1091_0x3ca4;if(_0x4fad3b){freeIsNotKey(_0x4fad3b,_0x5d371f[_0x334020('0x2f')],_0x334020('0x18'));for(let _0x157137=0x0,_0xe52d69={};_0x157137<_0x4fad3b[_0x334020('0x44')];_0x157137+=0x1){_0xe52d69=_0x4fad3b[_0x157137],_[_0x334020('0xf')](_0x5d371f['campaigns'][_0xe52d69[_0x334020('0x18')]])?_0x5d371f[_0x334020('0x2f')][_0xe52d69[_0x334020('0x18')]]=new Campaign(_0xe52d69):(_0x5d371f['mergeFromDatabase'](_0x5d371f[_0x334020('0x2f')][_0xe52d69[_0x334020('0x18')]],_0xe52d69),_0x5d371f[_0x334020('0x2f')][_0xe52d69[_0x334020('0x18')]][_0x334020('0x55')]=_0xe52d69[_0x334020('0x1e')]?_0xe52d69[_0x334020('0x1e')][_0x334020('0x18')]:undefined);}}return _0x5d371f[_0x334020('0x2f')];};},Realtime[_0x28b907('0x11')][_0x28b907('0x3b')]=function(){const _0x9b8f8c=this;return function(_0x1d0a22){const _0x4f885d=a1091_0x3ca4;if(_0x1d0a22){freeIsNotKey(_0x1d0a22,_0x9b8f8c[_0x4f885d('0x6')],'id');for(let _0x4028de=0x0,_0x346c4a={};_0x4028de<_0x1d0a22[_0x4f885d('0x44')];_0x4028de+=0x1){_0x346c4a=_0x1d0a22[_0x4028de],_[_0x4f885d('0xf')](_0x9b8f8c[_0x4f885d('0x6')][_0x346c4a['id']])?_0x9b8f8c[_0x4f885d('0x6')][_0x346c4a['id']]=new VoiceExtension(_0x346c4a):_0x9b8f8c[_0x4f885d('0x36')](_0x9b8f8c[_0x4f885d('0x6')][_0x346c4a['id']],_0x346c4a);}}return _0x9b8f8c['voiceExtensions'];};},Realtime[_0x28b907('0x11')]['initCampaignHopperHistory']=function(){const _0x18c415=this;return function(_0x498e40){const _0x56c62e=a1091_0x3ca4;clearCampaigns(_0x18c415[_0x56c62e('0x2f')]);for(let _0x5882d5=0x0;_0x5882d5<_0x498e40[_0x56c62e('0x44')];_0x5882d5+=0x1){_[_0x56c62e('0x5f')](_0x18c415[_0x56c62e('0x2f')][_0x498e40[_0x5882d5][_0x56c62e('0x18')]],_0x498e40[_0x5882d5]);}return _0x18c415[_0x56c62e('0x2f')];};},Realtime[_0x28b907('0x11')]['initFaxAccounts']=function(){const _0x2a4ec1=this;return function(_0x471af9){const _0x401fc7=a1091_0x3ca4;if(_0x471af9){freeIsNotKey(_0x471af9,_0x2a4ec1[_0x401fc7('0x57')],'id');for(let _0x3b078e=0x0,_0x2f4304={};_0x3b078e<_0x471af9[_0x401fc7('0x44')];_0x3b078e+=0x1){_0x2f4304=_0x471af9[_0x3b078e],_['isUndefined'](_0x2a4ec1['faxAccounts'][_0x2f4304['id']])?_0x2a4ec1['faxAccounts'][_0x2f4304['id']]=new FaxAccount(_0x2f4304):_0x2a4ec1[_0x401fc7('0x36')](_0x2a4ec1[_0x401fc7('0x57')][_0x2f4304['id']],_0x2f4304);}}return _0x2a4ec1[_0x401fc7('0x57')];};},module[_0x28b907('0xa')]=Realtime; \ No newline at end of file diff --git a/server/services/ami/report/index.js b/server/services/ami/report/index.js index 4f6e3ea..358ceb4 100644 --- a/server/services/ami/report/index.js +++ b/server/services/ami/report/index.js @@ -1 +1 @@ -const a1092_0x43de=['substring','find','agents','from-sip','prototype','isNil','xcally-motion-preview','lodash','originatecalleridnum','accountcode','telephones','indexOf','calleridname','dialer','../rpc/memberReport','phone','voiceCallReport','voiceQueueReport','length','monitorFilename','isArray','createdAt','voiceDialReport','type','../rpc/voiceCallReport','context','ANSWERED','bind','mobile','destination','queuecallercompleteAt','../rpc/voiceDialReport','match','membername','monitor','startsWith','queuecallerexitAt','filename','exten','calleridnum','../rpc/voiceRecording','interface','callerid','YYYY-MM-DD\x20HH:mm:ss','../ami','format','SIP/%s','calleridpreview','create','disabled','lastIndexOf','Local','connectedlinenum','\x22%s\x22\x20<%s>','forEach','attendedTransfer','../rpc/voiceAgentReport','monitors','connectedlinename','blindTransfer','lastapplication','moment','destinationchannel','attendedtransfer','channel','xdr','queue','lastAssignedTo','name','exports','findAgent','custom:voiceAgentReport','../../../config/environment','blindtransfer','from-voip-provider','assigned','queuecallerexit'];(function(_0x379e03,_0x43de2c){const _0x110153=function(_0xbd581b){while(--_0xbd581b){_0x379e03['push'](_0x379e03['shift']());}};_0x110153(++_0x43de2c);}(a1092_0x43de,0x1da));const a1092_0x1101=function(_0x379e03,_0x43de2c){_0x379e03=_0x379e03-0x0;let _0x110153=a1092_0x43de[_0x379e03];return _0x110153;};const _0x4547ad=a1092_0x1101;'use strict';const _=require(_0x4547ad('0x48')),moment=require(_0x4547ad('0x31')),util=require('util'),config=require(_0x4547ad('0x3c')),ami=require(_0x4547ad('0x20')),RpcVoiceAgentReport=require(_0x4547ad('0x2c')),RpcVoiceCallReport=require(_0x4547ad('0xc')),RpcVoiceDialReport=require(_0x4547ad('0x13')),RpcMemberReport=require(_0x4547ad('0x2')),RpcVoiceQueueReport=require('../rpc/voiceQueueReport'),RpcVoiceRecording=require(_0x4547ad('0x1c')),RpcVoiceTransferReport=require('../rpc/voiceTransferReport');function Report(_0xbd581b){const _0x1865e1=_0x4547ad;this['realtime']=_0xbd581b,this[_0x1865e1('0x43')]=_0xbd581b['agents'],this[_0x1865e1('0x4b')]=_0xbd581b[_0x1865e1('0x4b')];}Report[_0x4547ad('0x45')]['sync']=function(){const _0x38b4df=_0x4547ad;config['xdr']&&config[_0x38b4df('0x35')][_0x38b4df('0x25')]&&(ami['on']('custom:voiceQueueReport',this[_0x38b4df('0x5')][_0x38b4df('0xf')](this)),ami['on']('custom:voiceCallReport',this[_0x38b4df('0x4')][_0x38b4df('0xf')](this)),ami['on'](_0x38b4df('0x3b'),this['voiceAgentReport'][_0x38b4df('0xf')](this)),ami['on']('custom:voiceDialReport',this[_0x38b4df('0xa')][_0x38b4df('0xf')](this)),ami['on'](_0x38b4df('0x3d'),this[_0x38b4df('0x2f')][_0x38b4df('0xf')](this)),ami['on'](_0x38b4df('0x33'),this[_0x38b4df('0x2b')][_0x38b4df('0xf')](this)));},Report[_0x4547ad('0x45')]['findAgent']=function(_0x524189){const _0x484542=_0x4547ad;let _0x29749f=undefined;_0x29749f=_['find'](this[_0x484542('0x43')],function(_0x4485fa){return _0x4485fa['accountcode']==_0x524189||_0x4485fa['name']==_0x524189;});if(_[_0x484542('0x46')](_0x29749f)){const _0x323cae=_[_0x484542('0x42')](this[_0x484542('0x4b')],function(_0x3ff8d8){const _0x423f3c=_0x484542;return _0x3ff8d8['accountcode']==_0x524189||_0x3ff8d8[_0x423f3c('0x38')]==_0x524189;});_0x323cae&&(_0x29749f=_[_0x484542('0x42')](this[_0x484542('0x43')],function(_0x12dbcd){const _0x2b22b5=_0x484542;return _0x12dbcd[_0x2b22b5('0x1d')]==util[_0x2b22b5('0x21')]('SIP/%s',_0x323cae[_0x2b22b5('0x38')]);}));}return _0x29749f;},Report[_0x4547ad('0x45')][_0x4547ad('0x5')]=function(_0x41a077){const _0x230f31=_0x4547ad;for(let _0x5cd153=0x0;_0x5cd153<_0x41a077[_0x230f31('0x6')];_0x5cd153+=0x1){const _0xbbdf76=this[_0x230f31('0x3a')](_0x41a077[_0x5cd153][_0x230f31('0x28')]);_0xbbdf76&&(_0x41a077[_0x5cd153][_0x230f31('0x4a')]=_0xbbdf76[_0x230f31('0x4a')],_0x41a077[_0x5cd153][_0x230f31('0x3f')]=!![],_0x41a077[_0x5cd153][_0x230f31('0x37')]=_0xbbdf76['name'],_0x41a077[_0x5cd153]['interface']=_[_0x230f31('0x46')](_0xbbdf76[_0x230f31('0x1d')])?util['format'](_0x230f31('0x22'),_0xbbdf76['name']):_0xbbdf76[_0x230f31('0x1d')],_0x41a077[_0x5cd153]['queuecallercomplete']&&(_0x41a077[_0x5cd153][_0x230f31('0x12')]=moment()[_0x230f31('0x21')](_0x230f31('0x1f'))),_0x41a077[_0x5cd153][_0x230f31('0x40')]&&(_0x41a077[_0x5cd153][_0x230f31('0x18')]=moment()[_0x230f31('0x21')](_0x230f31('0x1f'))),RpcMemberReport[_0x230f31('0x5')](_0x41a077[_0x5cd153])),RpcVoiceQueueReport['create'](_0x41a077[_0x5cd153]);}};function extractCalleridNumber(_0x13d52d){const _0x2d6102=_0x4547ad,_0x229cf8=_0x13d52d[_0x2d6102('0x14')](/<(.*?)>/);return _0x229cf8?_0x229cf8[0x1]:_0x13d52d;}Report[_0x4547ad('0x45')][_0x4547ad('0x4')]=function(_0xee86a){const _0x2cf9f1=_0x4547ad;_0xee86a[_0x2cf9f1('0x11')]=_0xee86a[_0x2cf9f1('0x11')]||_0xee86a[_0x2cf9f1('0x1a')];if(_0xee86a[_0x2cf9f1('0xb')]==_0x2cf9f1('0x1')){_0xee86a[_0x2cf9f1('0x30')]=_0x2cf9f1('0x36'),_0xee86a['lastdata']=_0xee86a[_0x2cf9f1('0x36')];if(_0xee86a[_0x2cf9f1('0xd')]==_0x2cf9f1('0x3e'))_0xee86a[_0x2cf9f1('0x4a')]='',_0xee86a['destination']=extractCalleridNumber(_0xee86a[_0x2cf9f1('0x1e')]);else _0xee86a[_0x2cf9f1('0xd')]==_0x2cf9f1('0x44')&&(_0xee86a[_0x2cf9f1('0x11')]==_0x2cf9f1('0x47')?(_0xee86a[_0x2cf9f1('0x11')]=extractCalleridNumber(_0xee86a['calleridpreview']),_0xee86a[_0x2cf9f1('0x1b')]=_0xee86a[_0x2cf9f1('0x49')],_0xee86a['destinationchannel']=[_0xee86a[_0x2cf9f1('0x34')],_0xee86a['channel']=_0xee86a[_0x2cf9f1('0x32')]][0x0],_0xee86a[_0x2cf9f1('0x1e')]=_0xee86a[_0x2cf9f1('0x23')]):(_0xee86a['destination']=_0xee86a[_0x2cf9f1('0x1b')],_0xee86a[_0x2cf9f1('0x1b')]=_0xee86a[_0x2cf9f1('0x49')],_0xee86a['disposition']==_0x2cf9f1('0xe')?_0xee86a[_0x2cf9f1('0x4a')]=_0xee86a[_0x2cf9f1('0x28')]:_0xee86a['accountcode']=''));}else _0xee86a[_0x2cf9f1('0x1e')]=util['format'](_0x2cf9f1('0x29'),_0xee86a[_0x2cf9f1('0x0')],_0xee86a[_0x2cf9f1('0x1b')]);RpcVoiceCallReport[_0x2cf9f1('0x24')](_0xee86a);if(_0xee86a[_0x2cf9f1('0x16')])for(let _0x31100e=0x0;_0x31100e<_0xee86a[_0x2cf9f1('0x2d')][_0x2cf9f1('0x6')];_0x31100e+=0x1){_0xee86a[_0x2cf9f1('0x7')]=_0xee86a['monitors'][_0x31100e][_0x2cf9f1('0x19')],_0xee86a[_0x2cf9f1('0x9')]=_0xee86a[_0x2cf9f1('0x2d')][_0x31100e][_0x2cf9f1('0x9')];if(_0xee86a[_0x2cf9f1('0x1a')]==_0x2cf9f1('0x47'))_0xee86a[_0x2cf9f1('0x1b')]=_0xee86a[_0x2cf9f1('0x28')],_0xee86a[_0x2cf9f1('0x0')]=_0xee86a['connectedlinename'],_0xee86a['connectedlinenum']=_0xee86a[_0x2cf9f1('0x4a')],_0xee86a[_0x2cf9f1('0x2e')]=_0xee86a[_0x2cf9f1('0x15')],_0xee86a['exten']=_0xee86a['originatecalleridnum'];else _0xee86a[_0x2cf9f1('0x1a')]=='xcally-motion-dialer'&&(_0xee86a[_0x2cf9f1('0x1b')]=_0xee86a[_0x2cf9f1('0x11')],_0xee86a[_0x2cf9f1('0x1a')]=_0xee86a[_0x2cf9f1('0x49')]);RpcVoiceRecording['create'](_0xee86a);}},Report[_0x4547ad('0x45')]['voiceAgentReport']=function(_0x3efe39){const _0x588185=_0x4547ad;_[_0x588185('0x8')](_0x3efe39)?_0x3efe39[_0x588185('0x2a')](function(_0x573a37){const _0x214953=_0x588185;RpcVoiceAgentReport[_0x214953('0x24')](_0x573a37);}):RpcVoiceAgentReport[_0x588185('0x24')](_0x3efe39);},Report[_0x4547ad('0x45')][_0x4547ad('0xa')]=function(_0x4218ff){const _0x3c855b=_0x4547ad;RpcVoiceDialReport[_0x3c855b('0x24')](_0x4218ff);let _0x21d544=undefined;const _0x48f7cf=_0x4218ff[_0x3c855b('0x34')];if(_[_0x3c855b('0x17')](_0x48f7cf,_0x3c855b('0x27'))){const _0x17b643=_0x48f7cf[_0x3c855b('0x41')](_0x48f7cf['indexOf']('/')+0x1,_0x48f7cf[_0x3c855b('0x4c')]('@'));_0x21d544=_[_0x3c855b('0x42')](this[_0x3c855b('0x43')],function(_0x2091a3){const _0x3bb648=_0x3c855b;return _0x2091a3[_0x3bb648('0x10')]==_0x17b643||_0x2091a3[_0x3bb648('0x3')]==_0x17b643||_0x2091a3[_0x3bb648('0x4a')]==_0x17b643;});}else{const _0xb74b11=_0x48f7cf[_0x3c855b('0x41')](_0x48f7cf['indexOf']('/')+0x1,_0x48f7cf[_0x3c855b('0x26')]('-'));_0x21d544=this['findAgent'](_0xb74b11);}_0x21d544&&(_0x4218ff[_0x3c855b('0x1d')]=_['isNil'](_0x21d544[_0x3c855b('0x1d')])?util[_0x3c855b('0x21')](_0x3c855b('0x22'),_0x21d544[_0x3c855b('0x38')]):_0x21d544[_0x3c855b('0x1d')],_0x4218ff['membername']=_0x21d544[_0x3c855b('0x38')],_0x4218ff[_0x3c855b('0x4a')]=_0x21d544[_0x3c855b('0x4a')],RpcMemberReport[_0x3c855b('0xa')](_0x4218ff));},Report[_0x4547ad('0x45')][_0x4547ad('0x2f')]=function(_0x1b81d0){const _0x4ad161=_0x4547ad;RpcVoiceTransferReport[_0x4ad161('0x2f')](_0x1b81d0);},Report[_0x4547ad('0x45')][_0x4547ad('0x2b')]=function(_0x44a523){const _0x598eb2=_0x4547ad;RpcVoiceTransferReport[_0x598eb2('0x2b')](_0x44a523);},module[_0x4547ad('0x39')]=Report; \ No newline at end of file +const a1092_0x9697=['lastIndexOf','findAgent','disposition','voiceAgentReport','custom:voiceAgentReport','prototype','calleridname','queue','name','from-sip','xcally-motion-preview','SIP/%s','accountcode','agents','telephones','monitor','../rpc/voiceCallReport','connectedlinename','../ami','type','dialer','connectedlinenum','xcally-motion-dialer','queuecallerexit','voiceDialReport','../rpc/voiceRecording','xdr','\x22%s\x22\x20<%s>','lodash','util','ANSWERED','channel','destinationchannel','queuecallerexitAt','voiceCallReport','calleridpreview','YYYY-MM-DD\x20HH:mm:ss','realtime','attendedTransfer','blindTransfer','isNil','interface','monitorFilename','calleridnum','format','lastdata','sync','create','destination','originatecalleridnum','exports','lastAssignedTo','createdAt','../rpc/voiceQueueReport','membername','callerid','indexOf','../rpc/voiceTransferReport','context','exten','filename','bind','../rpc/voiceAgentReport','find','forEach','mobile','substring','voiceQueueReport','Local','lastapplication','disabled','queuecallercomplete'];(function(_0x16fdfc,_0x96977){const _0x149c69=function(_0x35f330){while(--_0x35f330){_0x16fdfc['push'](_0x16fdfc['shift']());}};_0x149c69(++_0x96977);}(a1092_0x9697,0x1b4));const a1092_0x149c=function(_0x16fdfc,_0x96977){_0x16fdfc=_0x16fdfc-0x0;let _0x149c69=a1092_0x9697[_0x16fdfc];return _0x149c69;};const _0x43ade4=a1092_0x149c;'use strict';const _=require(_0x43ade4('0x18')),moment=require('moment'),util=require(_0x43ade4('0x19')),config=require('../../../config/environment'),ami=require(_0x43ade4('0xe')),RpcVoiceAgentReport=require(_0x43ade4('0x3a')),RpcVoiceCallReport=require(_0x43ade4('0xc')),RpcVoiceDialReport=require('../rpc/voiceDialReport'),RpcMemberReport=require('../rpc/memberReport'),RpcVoiceQueueReport=require(_0x43ade4('0x31')),RpcVoiceRecording=require(_0x43ade4('0x15')),RpcVoiceTransferReport=require(_0x43ade4('0x35'));function Report(_0x35f330){const _0x54649b=_0x43ade4;this[_0x54649b('0x21')]=_0x35f330,this['agents']=_0x35f330[_0x54649b('0x9')],this['telephones']=_0x35f330[_0x54649b('0xa')];}Report[_0x43ade4('0x1')][_0x43ade4('0x2a')]=function(){const _0x1ecc58=_0x43ade4;config[_0x1ecc58('0x16')]&&config['xdr'][_0x1ecc58('0x42')]&&(ami['on']('custom:voiceQueueReport',this[_0x1ecc58('0x3f')][_0x1ecc58('0x39')](this)),ami['on']('custom:voiceCallReport',this[_0x1ecc58('0x1e')]['bind'](this)),ami['on'](_0x1ecc58('0x0'),this[_0x1ecc58('0x47')][_0x1ecc58('0x39')](this)),ami['on']('custom:voiceDialReport',this['voiceDialReport'][_0x1ecc58('0x39')](this)),ami['on']('blindtransfer',this[_0x1ecc58('0x23')][_0x1ecc58('0x39')](this)),ami['on']('attendedtransfer',this[_0x1ecc58('0x22')][_0x1ecc58('0x39')](this)));},Report[_0x43ade4('0x1')]['findAgent']=function(_0x101b57){const _0x3f6d2b=_0x43ade4;let _0x3f446f=undefined;_0x3f446f=_[_0x3f6d2b('0x3b')](this[_0x3f6d2b('0x9')],function(_0x23014c){const _0x563028=_0x3f6d2b;return _0x23014c['accountcode']==_0x101b57||_0x23014c[_0x563028('0x4')]==_0x101b57;});if(_[_0x3f6d2b('0x24')](_0x3f446f)){const _0x2e1641=_[_0x3f6d2b('0x3b')](this[_0x3f6d2b('0xa')],function(_0xcff1b){const _0x32fade=_0x3f6d2b;return _0xcff1b['accountcode']==_0x101b57||_0xcff1b[_0x32fade('0x4')]==_0x101b57;});_0x2e1641&&(_0x3f446f=_[_0x3f6d2b('0x3b')](this[_0x3f6d2b('0x9')],function(_0x53c8b9){const _0x482f0a=_0x3f6d2b;return _0x53c8b9[_0x482f0a('0x25')]==util[_0x482f0a('0x28')]('SIP/%s',_0x2e1641['name']);}));}return _0x3f446f;},Report[_0x43ade4('0x1')][_0x43ade4('0x3f')]=function(_0xc2f96a){const _0x4dc633=_0x43ade4;for(let _0x441b62=0x0;_0x441b62<_0xc2f96a['length'];_0x441b62+=0x1){const _0x4758b7=this[_0x4dc633('0x45')](_0xc2f96a[_0x441b62]['connectedlinenum']);_0x4758b7&&(_0xc2f96a[_0x441b62][_0x4dc633('0x8')]=_0x4758b7[_0x4dc633('0x8')],_0xc2f96a[_0x441b62]['assigned']=!![],_0xc2f96a[_0x441b62][_0x4dc633('0x2f')]=_0x4758b7['name'],_0xc2f96a[_0x441b62][_0x4dc633('0x25')]=_[_0x4dc633('0x24')](_0x4758b7[_0x4dc633('0x25')])?util[_0x4dc633('0x28')](_0x4dc633('0x7'),_0x4758b7[_0x4dc633('0x4')]):_0x4758b7[_0x4dc633('0x25')],_0xc2f96a[_0x441b62][_0x4dc633('0x43')]&&(_0xc2f96a[_0x441b62]['queuecallercompleteAt']=moment()[_0x4dc633('0x28')](_0x4dc633('0x20'))),_0xc2f96a[_0x441b62][_0x4dc633('0x13')]&&(_0xc2f96a[_0x441b62][_0x4dc633('0x1d')]=moment()[_0x4dc633('0x28')](_0x4dc633('0x20'))),RpcMemberReport[_0x4dc633('0x3f')](_0xc2f96a[_0x441b62])),RpcVoiceQueueReport[_0x4dc633('0x2b')](_0xc2f96a[_0x441b62]);}};function extractCalleridNumber(_0x52537e){const _0x1df574=_0x52537e['match'](/<(.*?)>/);return _0x1df574?_0x1df574[0x1]:_0x52537e;}Report[_0x43ade4('0x1')][_0x43ade4('0x1e')]=function(_0x201096){const _0x5a5a2e=_0x43ade4;_0x201096['destination']=_0x201096[_0x5a5a2e('0x2c')]||_0x201096['exten'];if(_0x201096[_0x5a5a2e('0xf')]==_0x5a5a2e('0x10')){_0x201096[_0x5a5a2e('0x41')]=_0x5a5a2e('0x3'),_0x201096[_0x5a5a2e('0x29')]=_0x201096['queue'];if(_0x201096[_0x5a5a2e('0x36')]=='from-voip-provider')_0x201096[_0x5a5a2e('0x8')]='',_0x201096[_0x5a5a2e('0x2c')]=extractCalleridNumber(_0x201096['callerid']);else _0x201096[_0x5a5a2e('0x36')]==_0x5a5a2e('0x5')&&(_0x201096[_0x5a5a2e('0x2c')]==_0x5a5a2e('0x6')?(_0x201096[_0x5a5a2e('0x2c')]=extractCalleridNumber(_0x201096[_0x5a5a2e('0x1f')]),_0x201096['calleridnum']=_0x201096[_0x5a5a2e('0x2d')],_0x201096[_0x5a5a2e('0x1c')]=[_0x201096['channel'],_0x201096[_0x5a5a2e('0x1b')]=_0x201096[_0x5a5a2e('0x1c')]][0x0],_0x201096[_0x5a5a2e('0x33')]=_0x201096['calleridpreview']):(_0x201096['destination']=_0x201096[_0x5a5a2e('0x27')],_0x201096['calleridnum']=_0x201096[_0x5a5a2e('0x2d')],_0x201096[_0x5a5a2e('0x46')]==_0x5a5a2e('0x1a')?_0x201096[_0x5a5a2e('0x8')]=_0x201096['connectedlinenum']:_0x201096['accountcode']=''));}else _0x201096['callerid']=util['format'](_0x5a5a2e('0x17'),_0x201096[_0x5a5a2e('0x2')],_0x201096[_0x5a5a2e('0x27')]);RpcVoiceCallReport['create'](_0x201096);if(_0x201096[_0x5a5a2e('0xb')])for(let _0xafb427=0x0;_0xafb427<_0x201096['monitors']['length'];_0xafb427+=0x1){_0x201096[_0x5a5a2e('0x26')]=_0x201096['monitors'][_0xafb427][_0x5a5a2e('0x38')],_0x201096[_0x5a5a2e('0x30')]=_0x201096['monitors'][_0xafb427][_0x5a5a2e('0x30')];if(_0x201096[_0x5a5a2e('0x37')]==_0x5a5a2e('0x6'))_0x201096['calleridnum']=_0x201096[_0x5a5a2e('0x11')],_0x201096[_0x5a5a2e('0x2')]=_0x201096['connectedlinename'],_0x201096[_0x5a5a2e('0x11')]=_0x201096[_0x5a5a2e('0x8')],_0x201096[_0x5a5a2e('0xd')]=_0x201096['membername'],_0x201096['exten']=_0x201096['originatecalleridnum'];else _0x201096['exten']==_0x5a5a2e('0x12')&&(_0x201096[_0x5a5a2e('0x27')]=_0x201096[_0x5a5a2e('0x2c')],_0x201096[_0x5a5a2e('0x37')]=_0x201096[_0x5a5a2e('0x2d')]);RpcVoiceRecording[_0x5a5a2e('0x2b')](_0x201096);}},Report[_0x43ade4('0x1')][_0x43ade4('0x47')]=function(_0x283036){const _0x5b9f7d=_0x43ade4;_['isArray'](_0x283036)?_0x283036[_0x5b9f7d('0x3c')](function(_0x3a512f){const _0x2ad888=_0x5b9f7d;RpcVoiceAgentReport[_0x2ad888('0x2b')](_0x3a512f);}):RpcVoiceAgentReport['create'](_0x283036);},Report[_0x43ade4('0x1')][_0x43ade4('0x14')]=function(_0x4163a6){const _0x356dca=_0x43ade4;RpcVoiceDialReport[_0x356dca('0x2b')](_0x4163a6);let _0x4c0f00=undefined;const _0x1ed03a=_0x4163a6['channel'];if(_['startsWith'](_0x1ed03a,_0x356dca('0x40'))){const _0x14cf29=_0x1ed03a[_0x356dca('0x3e')](_0x1ed03a[_0x356dca('0x34')]('/')+0x1,_0x1ed03a['indexOf']('@'));_0x4c0f00=_[_0x356dca('0x3b')](this['agents'],function(_0x1c2e6d){const _0x5512ae=_0x356dca;return _0x1c2e6d[_0x5512ae('0x3d')]==_0x14cf29||_0x1c2e6d['phone']==_0x14cf29||_0x1c2e6d[_0x5512ae('0x8')]==_0x14cf29;});}else{const _0x3aeaf7=_0x1ed03a[_0x356dca('0x3e')](_0x1ed03a[_0x356dca('0x34')]('/')+0x1,_0x1ed03a[_0x356dca('0x44')]('-'));_0x4c0f00=this[_0x356dca('0x45')](_0x3aeaf7);}_0x4c0f00&&(_0x4163a6[_0x356dca('0x25')]=_[_0x356dca('0x24')](_0x4c0f00[_0x356dca('0x25')])?util[_0x356dca('0x28')](_0x356dca('0x7'),_0x4c0f00['name']):_0x4c0f00[_0x356dca('0x25')],_0x4163a6[_0x356dca('0x32')]=_0x4c0f00[_0x356dca('0x4')],_0x4163a6[_0x356dca('0x8')]=_0x4c0f00[_0x356dca('0x8')],RpcMemberReport[_0x356dca('0x14')](_0x4163a6));},Report[_0x43ade4('0x1')][_0x43ade4('0x23')]=function(_0x6756ba){RpcVoiceTransferReport['blindTransfer'](_0x6756ba);},Report[_0x43ade4('0x1')][_0x43ade4('0x22')]=function(_0x3bc4f7){const _0x58350d=_0x43ade4;RpcVoiceTransferReport[_0x58350d('0x22')](_0x3bc4f7);},module[_0x43ade4('0x2e')]=Report; \ No newline at end of file diff --git a/server/services/ami/report/userReport.js b/server/services/ami/report/userReport.js index 55c99f0..a927521 100644 --- a/server/services/ami/report/userReport.js +++ b/server/services/ami/report/userReport.js @@ -1 +1 @@ -const a1093_0x1348=['toLowerCase','accountcode','format','trunk:save','indexOf','catch','telephones','startsWith','moment','../ami','omit','status','telephone:%s','util','emit','device','resolve','exports','updateStatusRealtime','isNotNull','isUndefined','inspect','[syncPeerStatus][UserReport]','loopSyncRealTimeShow','stateTime','username','registry','merge','address','then','Queue','actionSipShowRegistry','stateRegistry','name','actionDeviceStateList','agents','syncRegistry','ami','bind','error','peerstatus','telephone:save','actionid','local','mobile','registered','substring','syncPeerStatus','[loopSyncRealTimeShow]','trunks','actionSipPeerStatus','toNumber','trunk:%s','prototype','state','peer','syncDeviceState','find'];(function(_0xc08aab,_0x134827){const _0x1088bc=function(_0x481bb7){while(--_0x481bb7){_0xc08aab['push'](_0xc08aab['shift']());}};_0x1088bc(++_0x134827);}(a1093_0x1348,0xb3));const a1093_0x1088=function(_0xc08aab,_0x134827){_0xc08aab=_0xc08aab-0x0;let _0x1088bc=a1093_0x1348[_0xc08aab];return _0x1088bc;};const _0x287459=a1093_0x1088;'use strict';const _=require('lodash'),moment=require(_0x287459('0x3')),util=require(_0x287459('0x8')),logger=require('../../../config/logger')(_0x287459('0x20')),ami=require(_0x287459('0x4')),{getSocket}=require('../../../rediscache'),io=getSocket();function UserReport(_0x481bb7){const _0x1b0c49=_0x287459;return this['trunks']=_0x481bb7['trunks'],this[_0x1b0c49('0x1e')]=_0x481bb7['agents'],this[_0x1b0c49('0x1')]=_0x481bb7[_0x1b0c49('0x1')],ami['on']('registryentry',this['syncRegistry'][_0x1b0c49('0x21')](this)),ami['on'](_0x1b0c49('0x15'),this[_0x1b0c49('0x1f')]['bind'](this)),ami['on']('devicestatechange',this['syncDeviceState'][_0x1b0c49('0x21')](this)),ami['on'](_0x1b0c49('0x23'),this[_0x1b0c49('0x2a')][_0x1b0c49('0x21')](this)),this[_0x1b0c49('0x12')](),Promise[_0x1b0c49('0xb')]()[_0x1b0c49('0x18')](ami[_0x1b0c49('0x1a')]())[_0x1b0c49('0x18')](ami[_0x1b0c49('0x1d')]())[_0x1b0c49('0x18')](ami[_0x1b0c49('0x2d')]())[_0x1b0c49('0x0')](loggerCatch(_0x1b0c49('0x2b')));}function loggerCatch(_0x1e11fd){return function(_0x1f188f){const _0x45f432=a1093_0x1088;logger['error'](_0x1e11fd,util[_0x45f432('0x10')](_0x1f188f,{'showHidden':![],'depth':null}));};}UserReport[_0x287459('0x30')]['loopSyncRealTimeShow']=function(){setInterval(function(){const _0x5a365f=a1093_0x1088;Promise[_0x5a365f('0xb')]()[_0x5a365f('0x18')](ami[_0x5a365f('0x1a')]())[_0x5a365f('0x18')](ami['actionDeviceStateList']())[_0x5a365f('0x18')](ami[_0x5a365f('0x2d')]())['catch'](loggerCatch(_0x5a365f('0x2b')));},0x32c8);},UserReport[_0x287459('0x30')][_0x287459('0xe')]=function(_0x4fcc8d){const _0x999d0=_0x287459;return _0x4fcc8d!==null&&!_[_0x999d0('0xf')](_0x4fcc8d);},UserReport[_0x287459('0x30')][_0x287459('0x9')]=function(_0x28037c,_0x59cade,_0x5a9658){const _0x50b80b=_0x287459;io['to'](_0x28037c)[_0x50b80b('0x9')](_0x59cade,_0x5a9658);},UserReport[_0x287459('0x30')][_0x287459('0x1f')]=function(_0x51e123){const _0x48c5e8=_0x287459;try{if(this[_0x48c5e8('0xe')](_0x51e123)){const _0x2bcfc4=_['find'](this[_0x48c5e8('0x2c')],{'registry':_0x51e123[_0x48c5e8('0x14')]});_0x2bcfc4&&(_0x51e123[_0x48c5e8('0x1b')]=_0x51e123[_0x48c5e8('0x31')],_[_0x48c5e8('0x16')](_0x2bcfc4,_[_0x48c5e8('0x5')](_0x51e123,['event',_0x48c5e8('0x25'),_0x48c5e8('0x14'),'state'])),this['emit'](util['format'](_0x48c5e8('0x2f'),_0x2bcfc4['name']),_0x48c5e8('0x38'),_0x2bcfc4));}}catch(_0xbb7a79){logger[_0x48c5e8('0x22')]('[syncRegistry][UserReport]',util[_0x48c5e8('0x10')](_0xbb7a79,{'showHidden':![],'depth':null}));}},UserReport[_0x287459('0x30')][_0x287459('0x33')]=function(_0x539993){const _0x480b2a=_0x287459;try{if(this[_0x480b2a('0xe')](_0x539993)){if(this[_0x480b2a('0x1e')][_0x539993[_0x480b2a('0xa')]])(!this[_0x480b2a('0x1e')][_0x539993[_0x480b2a('0xa')]][_0x480b2a('0x26')]||_0x539993[_0x480b2a('0x31')][_0x480b2a('0x35')]()=='inuse')&&(this[_0x480b2a('0x1e')][_0x539993['device']][_0x480b2a('0x26')]=![],this['agents'][_0x539993[_0x480b2a('0xa')]][_0x480b2a('0x31')]!==_0x539993[_0x480b2a('0x31')][_0x480b2a('0x35')]()&&(this[_0x480b2a('0x1e')][_0x539993[_0x480b2a('0xa')]]['stateTime']=_[_0x480b2a('0x2e')](moment()[_0x480b2a('0x37')]('x'))),this[_0x480b2a('0x1e')][_0x539993[_0x480b2a('0xa')]][_0x480b2a('0x31')]=_0x539993[_0x480b2a('0x31')][_0x480b2a('0x35')](),this[_0x480b2a('0x1e')][_0x539993[_0x480b2a('0xa')]][_0x480b2a('0xd')](_0x539993));else{if(this[_0x480b2a('0x1')][_0x539993[_0x480b2a('0xa')]])this[_0x480b2a('0x1')][_0x539993[_0x480b2a('0xa')]][_0x480b2a('0x31')]!==_0x539993[_0x480b2a('0x31')][_0x480b2a('0x35')]()&&(this['telephones'][_0x539993[_0x480b2a('0xa')]][_0x480b2a('0x13')]=_[_0x480b2a('0x2e')](moment()['format']('x'))),this[_0x480b2a('0x1')][_0x539993['device']]['state']=_0x539993['state'][_0x480b2a('0x35')](),this[_0x480b2a('0x9')](util[_0x480b2a('0x37')](_0x480b2a('0x7'),this['telephones'][_0x539993[_0x480b2a('0xa')]][_0x480b2a('0x1c')]),_0x480b2a('0x24'),this[_0x480b2a('0x1')][_0x539993[_0x480b2a('0xa')]]);else{if(this[_0x480b2a('0x2c')][_0x539993[_0x480b2a('0xa')]])this[_0x480b2a('0x2c')][_0x539993['device']][_0x480b2a('0x31')]!==_0x539993[_0x480b2a('0x31')][_0x480b2a('0x35')]()&&(this[_0x480b2a('0x2c')][_0x539993[_0x480b2a('0xa')]]['stateTime']=_[_0x480b2a('0x2e')](moment()[_0x480b2a('0x37')]('x'))),this['trunks'][_0x539993['device']][_0x480b2a('0x31')]=_0x539993[_0x480b2a('0x31')][_0x480b2a('0x35')](),this[_0x480b2a('0x9')](util[_0x480b2a('0x37')]('trunk:%s',this[_0x480b2a('0x2c')][_0x539993['device']]['name']),_0x480b2a('0x38'),this[_0x480b2a('0x2c')][_0x539993['device']]);else{if(_[_0x480b2a('0x2')](_0x539993[_0x480b2a('0xa')],_0x480b2a('0x19'))){}else{if(_[_0x480b2a('0x2')](_0x539993[_0x480b2a('0xa')],'Local')){const _0x42c4b9=_0x539993['device'],_0xd06852=_0x42c4b9[_0x480b2a('0x29')](_0x42c4b9[_0x480b2a('0x39')]('/')+0x1,_0x42c4b9[_0x480b2a('0x39')]('@')),_0x137d1f=_[_0x480b2a('0x34')](this['agents'],function(_0x30b626){const _0x374878=_0x480b2a;return _0x30b626[_0x374878('0x27')]==_0xd06852||_0x30b626['phone']==_0xd06852||_0x30b626[_0x374878('0x36')]==_0xd06852;});_0x137d1f&&(_0x137d1f['state']!==_0x539993['state'][_0x480b2a('0x35')]()&&(_0x137d1f[_0x480b2a('0x13')]=_[_0x480b2a('0x2e')](moment()[_0x480b2a('0x37')]('x'))),_0x137d1f['state']=_0x539993[_0x480b2a('0x31')]['toLowerCase'](),_0x137d1f['local']=!![],_0x137d1f[_0x480b2a('0xd')](_0x539993));}else{}}}}}}}catch(_0x93346e){logger['error']('[syncDeviceState][UserReport]',util[_0x480b2a('0x10')](_0x93346e,{'showHidden':![],'depth':null}));}},UserReport[_0x287459('0x30')][_0x287459('0x2a')]=function(_0x7d2be0){const _0x266b50=_0x287459;try{if(this[_0x266b50('0xe')](_0x7d2be0)&&this[_0x266b50('0xe')](_0x7d2be0[_0x266b50('0x23')])){if(this[_0x266b50('0x1e')][_0x7d2be0[_0x266b50('0x32')]])(!this[_0x266b50('0x1e')][_0x7d2be0[_0x266b50('0x32')]][_0x266b50('0x26')]||_0x7d2be0['peerstatus']['toLowerCase']()==_0x266b50('0x28'))&&(this[_0x266b50('0x1e')][_0x7d2be0[_0x266b50('0x32')]]['local']=![],this[_0x266b50('0x1e')][_0x7d2be0['peer']][_0x266b50('0x6')]=_0x7d2be0[_0x266b50('0x23')][_0x266b50('0x35')](),this[_0x266b50('0x1e')][_0x7d2be0[_0x266b50('0x32')]][_0x266b50('0x17')]=_0x7d2be0['address'],this[_0x266b50('0x1e')][_0x7d2be0[_0x266b50('0x32')]][_0x266b50('0xd')](_0x7d2be0));else{if(this['telephones'][_0x7d2be0[_0x266b50('0x32')]])this[_0x266b50('0x1')][_0x7d2be0[_0x266b50('0x32')]]['status']=_0x7d2be0['peerstatus'][_0x266b50('0x35')](),this[_0x266b50('0x1')][_0x7d2be0[_0x266b50('0x32')]][_0x266b50('0x17')]=_0x7d2be0[_0x266b50('0x17')],this[_0x266b50('0x9')](util['format'](_0x266b50('0x7'),this['telephones'][_0x7d2be0[_0x266b50('0x32')]][_0x266b50('0x1c')]),_0x266b50('0x24'),this[_0x266b50('0x1')][_0x7d2be0['peer']]);else{if(this[_0x266b50('0x2c')][_0x7d2be0['peer']])this[_0x266b50('0x2c')][_0x7d2be0['peer']][_0x266b50('0x6')]=_0x7d2be0[_0x266b50('0x23')][_0x266b50('0x35')](),this[_0x266b50('0x2c')][_0x7d2be0[_0x266b50('0x32')]]['address']=_0x7d2be0[_0x266b50('0x17')],this[_0x266b50('0x9')](util[_0x266b50('0x37')](_0x266b50('0x2f'),this[_0x266b50('0x2c')][_0x7d2be0['peer']]['name']),'trunk:save',this[_0x266b50('0x2c')][_0x7d2be0[_0x266b50('0x32')]]);else{}}}}}catch(_0x4247c4){logger[_0x266b50('0x22')](_0x266b50('0x11'),util[_0x266b50('0x10')](_0x4247c4,{'showHidden':![],'depth':null}));}},module[_0x287459('0xc')]=UserReport; \ No newline at end of file +const a1093_0x18d2=['../ami','[syncDeviceState][UserReport]','updateStatusRealtime','address','syncRegistry','trunks','../../../rediscache','telephone:%s','inspect','trunk:save','event','state','format','isUndefined','startsWith','find','toNumber','name','stateTime','Local','devicestatechange','indexOf','mobile','exports','Queue','peerstatus','trunk:%s','telephone:save','[loopSyncRealTimeShow]','moment','prototype','loopSyncRealTimeShow','actionSipShowRegistry','username','[syncPeerStatus][UserReport]','toLowerCase','../../../config/logger','emit','inuse','actionDeviceStateList','stateRegistry','syncPeerStatus','telephones','catch','agents','local','actionid','util','device','then','status','registered','phone','resolve','actionSipPeerStatus','bind','syncDeviceState','isNotNull','accountcode','registry','peer','error','substring'];(function(_0x452cc8,_0x18d2e1){const _0x5a398e=function(_0x9e1774){while(--_0x9e1774){_0x452cc8['push'](_0x452cc8['shift']());}};_0x5a398e(++_0x18d2e1);}(a1093_0x18d2,0x8d));const a1093_0x5a39=function(_0x452cc8,_0x18d2e1){_0x452cc8=_0x452cc8-0x0;let _0x5a398e=a1093_0x18d2[_0x452cc8];return _0x5a398e;};const _0x80d744=a1093_0x5a39;'use strict';const _=require('lodash'),moment=require(_0x80d744('0xe')),util=require(_0x80d744('0x20')),logger=require(_0x80d744('0x15'))('ami'),ami=require(_0x80d744('0x30')),{getSocket}=require(_0x80d744('0x36')),io=getSocket();function UserReport(_0x9e1774){const _0x55dd83=_0x80d744;return this[_0x55dd83('0x35')]=_0x9e1774[_0x55dd83('0x35')],this[_0x55dd83('0x1d')]=_0x9e1774[_0x55dd83('0x1d')],this['telephones']=_0x9e1774[_0x55dd83('0x1b')],ami['on']('registryentry',this[_0x55dd83('0x34')][_0x55dd83('0x28')](this)),ami['on'](_0x55dd83('0x2c'),this[_0x55dd83('0x34')]['bind'](this)),ami['on'](_0x55dd83('0x5'),this[_0x55dd83('0x29')][_0x55dd83('0x28')](this)),ami['on'](_0x55dd83('0xa'),this[_0x55dd83('0x1a')][_0x55dd83('0x28')](this)),this[_0x55dd83('0x10')](),Promise[_0x55dd83('0x26')]()[_0x55dd83('0x22')](ami[_0x55dd83('0x11')]())[_0x55dd83('0x22')](ami[_0x55dd83('0x18')]())[_0x55dd83('0x22')](ami[_0x55dd83('0x27')]())[_0x55dd83('0x1c')](loggerCatch(_0x55dd83('0xd')));}function loggerCatch(_0x4ebec3){return function(_0x2ef419){const _0xbfbd09=a1093_0x5a39;logger[_0xbfbd09('0x2e')](_0x4ebec3,util[_0xbfbd09('0x38')](_0x2ef419,{'showHidden':![],'depth':null}));};}UserReport[_0x80d744('0xf')][_0x80d744('0x10')]=function(){setInterval(function(){const _0x4a78d3=a1093_0x5a39;Promise['resolve']()[_0x4a78d3('0x22')](ami[_0x4a78d3('0x11')]())[_0x4a78d3('0x22')](ami[_0x4a78d3('0x18')]())[_0x4a78d3('0x22')](ami[_0x4a78d3('0x27')]())['catch'](loggerCatch('[loopSyncRealTimeShow]'));},0x32c8);},UserReport[_0x80d744('0xf')][_0x80d744('0x2a')]=function(_0x2592ca){const _0x1f9418=_0x80d744;return _0x2592ca!==null&&!_[_0x1f9418('0x3d')](_0x2592ca);},UserReport[_0x80d744('0xf')][_0x80d744('0x16')]=function(_0x246bde,_0x250c9c,_0x528065){const _0x2c51dc=_0x80d744;io['to'](_0x246bde)[_0x2c51dc('0x16')](_0x250c9c,_0x528065);},UserReport[_0x80d744('0xf')][_0x80d744('0x34')]=function(_0x31c753){const _0x4f3e46=_0x80d744;try{if(this[_0x4f3e46('0x2a')](_0x31c753)){const _0x539693=_[_0x4f3e46('0x0')](this['trunks'],{'registry':_0x31c753['username']});_0x539693&&(_0x31c753[_0x4f3e46('0x19')]=_0x31c753[_0x4f3e46('0x3b')],_['merge'](_0x539693,_['omit'](_0x31c753,[_0x4f3e46('0x3a'),_0x4f3e46('0x1f'),_0x4f3e46('0x12'),_0x4f3e46('0x3b')])),this['emit'](util[_0x4f3e46('0x3c')]('trunk:%s',_0x539693[_0x4f3e46('0x2')]),_0x4f3e46('0x39'),_0x539693));}}catch(_0xa021cf){logger['error']('[syncRegistry][UserReport]',util[_0x4f3e46('0x38')](_0xa021cf,{'showHidden':![],'depth':null}));}},UserReport[_0x80d744('0xf')][_0x80d744('0x29')]=function(_0x30f208){const _0x486c14=_0x80d744;try{if(this[_0x486c14('0x2a')](_0x30f208)){if(this[_0x486c14('0x1d')][_0x30f208['device']])(!this['agents'][_0x30f208[_0x486c14('0x21')]]['local']||_0x30f208[_0x486c14('0x3b')][_0x486c14('0x14')]()==_0x486c14('0x17'))&&(this[_0x486c14('0x1d')][_0x30f208[_0x486c14('0x21')]]['local']=![],this[_0x486c14('0x1d')][_0x30f208[_0x486c14('0x21')]][_0x486c14('0x3b')]!==_0x30f208['state']['toLowerCase']()&&(this[_0x486c14('0x1d')][_0x30f208[_0x486c14('0x21')]]['stateTime']=_[_0x486c14('0x1')](moment()['format']('x'))),this['agents'][_0x30f208['device']]['state']=_0x30f208[_0x486c14('0x3b')][_0x486c14('0x14')](),this[_0x486c14('0x1d')][_0x30f208['device']][_0x486c14('0x32')](_0x30f208));else{if(this['telephones'][_0x30f208[_0x486c14('0x21')]])this[_0x486c14('0x1b')][_0x30f208[_0x486c14('0x21')]][_0x486c14('0x3b')]!==_0x30f208[_0x486c14('0x3b')][_0x486c14('0x14')]()&&(this[_0x486c14('0x1b')][_0x30f208[_0x486c14('0x21')]][_0x486c14('0x3')]=_[_0x486c14('0x1')](moment()[_0x486c14('0x3c')]('x'))),this[_0x486c14('0x1b')][_0x30f208[_0x486c14('0x21')]]['state']=_0x30f208[_0x486c14('0x3b')]['toLowerCase'](),this[_0x486c14('0x16')](util['format'](_0x486c14('0x37'),this[_0x486c14('0x1b')][_0x30f208['device']][_0x486c14('0x2')]),_0x486c14('0xc'),this[_0x486c14('0x1b')][_0x30f208[_0x486c14('0x21')]]);else{if(this[_0x486c14('0x35')][_0x30f208[_0x486c14('0x21')]])this['trunks'][_0x30f208[_0x486c14('0x21')]][_0x486c14('0x3b')]!==_0x30f208[_0x486c14('0x3b')]['toLowerCase']()&&(this[_0x486c14('0x35')][_0x30f208[_0x486c14('0x21')]][_0x486c14('0x3')]=_[_0x486c14('0x1')](moment()['format']('x'))),this[_0x486c14('0x35')][_0x30f208[_0x486c14('0x21')]][_0x486c14('0x3b')]=_0x30f208['state'][_0x486c14('0x14')](),this[_0x486c14('0x16')](util[_0x486c14('0x3c')]('trunk:%s',this[_0x486c14('0x35')][_0x30f208[_0x486c14('0x21')]][_0x486c14('0x2')]),_0x486c14('0x39'),this['trunks'][_0x30f208['device']]);else{if(_[_0x486c14('0x3e')](_0x30f208['device'],_0x486c14('0x9'))){}else{if(_[_0x486c14('0x3e')](_0x30f208[_0x486c14('0x21')],_0x486c14('0x4'))){const _0x3944ab=_0x30f208[_0x486c14('0x21')],_0x3a011d=_0x3944ab[_0x486c14('0x2f')](_0x3944ab[_0x486c14('0x6')]('/')+0x1,_0x3944ab['indexOf']('@')),_0x2390ff=_['find'](this['agents'],function(_0x5f1cf1){const _0x2c322f=_0x486c14;return _0x5f1cf1[_0x2c322f('0x7')]==_0x3a011d||_0x5f1cf1[_0x2c322f('0x25')]==_0x3a011d||_0x5f1cf1[_0x2c322f('0x2b')]==_0x3a011d;});_0x2390ff&&(_0x2390ff[_0x486c14('0x3b')]!==_0x30f208['state'][_0x486c14('0x14')]()&&(_0x2390ff[_0x486c14('0x3')]=_[_0x486c14('0x1')](moment()[_0x486c14('0x3c')]('x'))),_0x2390ff[_0x486c14('0x3b')]=_0x30f208[_0x486c14('0x3b')][_0x486c14('0x14')](),_0x2390ff[_0x486c14('0x1e')]=!![],_0x2390ff[_0x486c14('0x32')](_0x30f208));}else{}}}}}}}catch(_0x2c7f6d){logger[_0x486c14('0x2e')](_0x486c14('0x31'),util['inspect'](_0x2c7f6d,{'showHidden':![],'depth':null}));}},UserReport[_0x80d744('0xf')]['syncPeerStatus']=function(_0x393f56){const _0x3fd529=_0x80d744;try{if(this[_0x3fd529('0x2a')](_0x393f56)&&this[_0x3fd529('0x2a')](_0x393f56[_0x3fd529('0xa')])){if(this[_0x3fd529('0x1d')][_0x393f56[_0x3fd529('0x2d')]])(!this[_0x3fd529('0x1d')][_0x393f56[_0x3fd529('0x2d')]][_0x3fd529('0x1e')]||_0x393f56[_0x3fd529('0xa')]['toLowerCase']()==_0x3fd529('0x24'))&&(this[_0x3fd529('0x1d')][_0x393f56[_0x3fd529('0x2d')]][_0x3fd529('0x1e')]=![],this[_0x3fd529('0x1d')][_0x393f56[_0x3fd529('0x2d')]][_0x3fd529('0x23')]=_0x393f56['peerstatus'][_0x3fd529('0x14')](),this[_0x3fd529('0x1d')][_0x393f56['peer']][_0x3fd529('0x33')]=_0x393f56[_0x3fd529('0x33')],this[_0x3fd529('0x1d')][_0x393f56[_0x3fd529('0x2d')]]['updateStatusRealtime'](_0x393f56));else{if(this[_0x3fd529('0x1b')][_0x393f56[_0x3fd529('0x2d')]])this[_0x3fd529('0x1b')][_0x393f56[_0x3fd529('0x2d')]][_0x3fd529('0x23')]=_0x393f56[_0x3fd529('0xa')][_0x3fd529('0x14')](),this['telephones'][_0x393f56[_0x3fd529('0x2d')]][_0x3fd529('0x33')]=_0x393f56['address'],this[_0x3fd529('0x16')](util[_0x3fd529('0x3c')](_0x3fd529('0x37'),this[_0x3fd529('0x1b')][_0x393f56[_0x3fd529('0x2d')]][_0x3fd529('0x2')]),_0x3fd529('0xc'),this[_0x3fd529('0x1b')][_0x393f56[_0x3fd529('0x2d')]]);else{if(this[_0x3fd529('0x35')][_0x393f56[_0x3fd529('0x2d')]])this[_0x3fd529('0x35')][_0x393f56[_0x3fd529('0x2d')]][_0x3fd529('0x23')]=_0x393f56[_0x3fd529('0xa')][_0x3fd529('0x14')](),this[_0x3fd529('0x35')][_0x393f56['peer']][_0x3fd529('0x33')]=_0x393f56[_0x3fd529('0x33')],this[_0x3fd529('0x16')](util[_0x3fd529('0x3c')](_0x3fd529('0xb'),this['trunks'][_0x393f56[_0x3fd529('0x2d')]]['name']),_0x3fd529('0x39'),this[_0x3fd529('0x35')][_0x393f56[_0x3fd529('0x2d')]]);else{}}}}}catch(_0xec08ba){logger[_0x3fd529('0x2e')](_0x3fd529('0x13'),util[_0x3fd529('0x38')](_0xec08ba,{'showHidden':![],'depth':null}));}},module[_0x80d744('0x8')]=UserReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceAgentReport.js b/server/services/ami/report/voiceAgentReport.js index 00277f5..ed6c972 100644 --- a/server/services/ami/report/voiceAgentReport.js +++ b/server/services/ami/report/voiceAgentReport.js @@ -1 +1 @@ -const a1094_0xa76c=['transfer','undefined','talktime','isNil','syncHangup','bridgepvtcallid','privilege','destconnectedlinenum','agentcalled','keys','onhold','syncBlindTransfer','custom:agentcomplete','answeredelsewheredestinationuniqueid','transfereruniqueid','syncAgentConnect','value','bind','membername','format','reason','seconds','../../../config/logger','memberlastcall','sipcallid','holdtime','memberrealtime','rtpaudioqosrttbridged','util','[syncMusicOnHoldStop][VoiceAgentReport]','membercalls','agentringnoanswerAt','queuecallerabandon','merge','rejected','lastIndexOf','syncVarSet','custom:agentringnoanswer','sipuri','answered_elsewhere','inbound','syncMusicOnHoldStart','called','destchannelstatedesc','../../../rediscache','connectedlinename','rtpaudioqosbridged','abandoned','[syncAgentCalled][VoiceAgentReport]','substring','[syncAgentComplete][VoiceAgentReport]','connectedlinenum','secondtransfereruniqueid','user:agentcomplete','rtpaudioqoslossbridged','[syncQueueCallerAbandon][VoiceAgentReport]','type','agentcomplete','lastevent','origtransfereruniqueid','destchannelstate','syncAttendedTransfer','agentacw','error','agent','interface','connect','[syncAgentConnect][VoiceAgentReport]','agentconnectAt','moment','pick','agentconnect','destuniqueid','agentcompleteAt','exports','blindtransfer','prototype','complete','syncAgentCalled','transfereeuniqueid','channel','syncMusicOnHoldStop','memberdynamic','rtpaudioqosjitterbridged','acw','[syncHangup][VoiceAgentReport]','varset','syncQueueCallerAbandon','[syncVarSet][VoiceAgentReport]','syncAgentRingNoAnswer','isNotNull','inspect','answeredelsewheremembername','[syncBlindTransfer][VoiceAgentReport]','variable','uniqueid','channels','rtpaudioqosjitter','variables','agentringnoanswer','rtpaudioqosloss','syncAgentComplete','isUndefined','acwtime','queue','addVariable','custom:agentansweredelsewhere','voiceQueues','YYYY-MM-DD\x20HH:mm:ss','[syncMusicOnHoldStart][VoiceAgentReport]','acwTimeout','user:agentconnect','agents','[syncAgentRingNoAnswer][VoiceAgentReport]','musiconholdstart','custom:voiceAgentReport','user:called','memberinterface','user:%s','diff','emit'];(function(_0x376c26,_0xa76c17){const _0xdd442f=function(_0x24519){while(--_0x24519){_0x376c26['push'](_0x376c26['shift']());}};_0xdd442f(++_0xa76c17);}(a1094_0xa76c,0x177));const a1094_0xdd44=function(_0x376c26,_0xa76c17){_0x376c26=_0x376c26-0x0;let _0xdd442f=a1094_0xa76c[_0x376c26];return _0xdd442f;};const _0x50c7c8=a1094_0xdd44;'use strict';const _=require('lodash'),moment=require(_0x50c7c8('0x39')),util=require(_0x50c7c8('0x10')),logger=require(_0x50c7c8('0xa'))('ami'),ami=require('../ami'),{getSocket}=require(_0x50c7c8('0x20')),io=getSocket();function VoiceAgentReport(_0x24519){const _0x2c3d39=_0x50c7c8;this[_0x2c3d39('0x54')]={},this[_0x2c3d39('0x5f')]=_0x24519[_0x2c3d39('0x5f')],this['agents']=_0x24519[_0x2c3d39('0x64')],this[_0x2c3d39('0x56')]={},ami['on'](_0x2c3d39('0x75'),this[_0x2c3d39('0x42')]['bind'](this)),ami['on'](_0x2c3d39('0x3b'),this[_0x2c3d39('0x3')][_0x2c3d39('0x5')](this)),ami['on'](_0x2c3d39('0x57'),this[_0x2c3d39('0x4d')][_0x2c3d39('0x5')](this)),ami['on'](_0x2c3d39('0x14'),this[_0x2c3d39('0x4b')][_0x2c3d39('0x5')](this)),ami['on'](_0x2c3d39('0x2d'),this[_0x2c3d39('0x59')]['bind'](this)),ami['on'](_0x2c3d39('0x4a'),this[_0x2c3d39('0x18')][_0x2c3d39('0x5')](this)),ami['on']('hangup',this['syncHangup']['bind'](this)),ami['on'](_0x2c3d39('0x66'),this[_0x2c3d39('0x1d')][_0x2c3d39('0x5')](this)),ami['on']('musiconholdstop',this[_0x2c3d39('0x45')][_0x2c3d39('0x5')](this)),ami['on']('attendedtransfer',this[_0x2c3d39('0x31')][_0x2c3d39('0x5')](this)),ami['on'](_0x2c3d39('0x3f'),this[_0x2c3d39('0x78')][_0x2c3d39('0x5')](this));}VoiceAgentReport['prototype']['emit']=function(_0x82b3aa,_0x5cb168,_0x537aea){const _0xcd4dfc=_0x50c7c8;io['to'](_0x82b3aa)[_0xcd4dfc('0x6c')](_0x5cb168,_0x537aea);},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x4e')]=function(_0xbe2561){const _0x1b99c2=_0x50c7c8;return _0xbe2561!==null&&!_[_0x1b99c2('0x5a')](_0xbe2561);},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x42')]=function(_0x706f4f){const _0x553935=_0x50c7c8;try{this[_0x553935('0x4e')](_0x706f4f)&&(_[_0x553935('0x5a')](this[_0x553935('0x54')][_0x706f4f['uniqueid']])&&(this['channels'][_0x706f4f[_0x553935('0x53')]]={}),_[_0x553935('0x5a')](this[_0x553935('0x54')][_0x706f4f[_0x553935('0x53')]][_0x706f4f[_0x553935('0x3c')]])&&(this['channels'][_0x706f4f[_0x553935('0x53')]][_0x706f4f[_0x553935('0x3c')]]={'agentcalledAt':moment()[_0x553935('0x7')](_0x553935('0x60')),'lastevent':_0x553935('0x1e'),'variables':this['variables'][_0x706f4f['uniqueid']],'type':this[_0x553935('0x5f')][_0x706f4f[_0x553935('0x5c')]]?this[_0x553935('0x5f')][_0x706f4f[_0x553935('0x5c')]][_0x553935('0x2c')]||_0x553935('0x1c'):_0x553935('0x1c')}),_[_0x553935('0x15')](this[_0x553935('0x54')][_0x706f4f['uniqueid']][_0x706f4f[_0x553935('0x3c')]],_['omit'](_0x706f4f,['event',_0x553935('0x73')])),ami[_0x553935('0x6c')]('custom:agentcalled',this[_0x553935('0x54')][_0x706f4f['uniqueid']][_0x706f4f[_0x553935('0x3c')]]),this[_0x553935('0x6c')](util[_0x553935('0x7')](_0x553935('0x6a'),_0x706f4f[_0x553935('0x6')]),_0x553935('0x68'),this[_0x553935('0x54')][_0x706f4f[_0x553935('0x53')]][_0x706f4f[_0x553935('0x3c')]]));}catch(_0x138b18){logger['error'](_0x553935('0x24'),util[_0x553935('0x4f')](_0x138b18,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')]['syncAgentConnect']=function(_0x3e926c){const _0x463896=_0x50c7c8;try{if(this[_0x463896('0x4e')](_0x3e926c)){if(this['channels'][_0x3e926c[_0x463896('0x53')]])for(const _0x2e98fe in this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]]){if(typeof this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe]!==_0x463896('0x6e')){if(_0x3e926c[_0x463896('0x3c')]===_0x2e98fe)this['channels'][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x38')]=moment()[_0x463896('0x7')](_0x463896('0x60')),this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x2e')]=_0x463896('0x36'),this[_0x463896('0x54')][_0x3e926c['uniqueid']][_0x2e98fe][_0x463896('0xd')]=_0x3e926c['holdtime'],this['channels'][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x27')]=_0x3e926c[_0x463896('0x27')],this['channels'][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x21')]=_0x3e926c[_0x463896('0x21')],this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x30')]=_0x3e926c[_0x463896('0x30')],this['channels'][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x1f')]=_0x3e926c[_0x463896('0x1f')],_[_0x463896('0x15')](this[_0x463896('0x64')][_0x3e926c[_0x463896('0x35')]],_[_0x463896('0x3a')](_0x3e926c,['queue',_0x463896('0x74')])),this[_0x463896('0x6c')](util[_0x463896('0x7')](_0x463896('0x6a'),_0x3e926c[_0x463896('0x6')]),_0x463896('0x63'),this[_0x463896('0x54')][_0x3e926c['uniqueid']][_0x3e926c[_0x463896('0x3c')]]),ami['emit']('custom:agentconnect',this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe]);else!this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe]['agentringnoanswer']&&!this[_0x463896('0x54')][_0x3e926c['uniqueid']][_0x2e98fe][_0x463896('0x2d')]&&(this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x57')]=!![],this['channels'][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x13')]=moment()[_0x463896('0x7')](_0x463896('0x60')),this['channels'][_0x3e926c[_0x463896('0x53')]][_0x2e98fe]['reason']=_0x463896('0x1b'),this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x2e')]=_0x463896('0x1b'),this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x1')]=_0x3e926c[_0x463896('0x3c')],this[_0x463896('0x54')][_0x3e926c[_0x463896('0x53')]][_0x2e98fe][_0x463896('0x50')]=_0x3e926c[_0x463896('0x6')],ami[_0x463896('0x6c')](_0x463896('0x5e'),this[_0x463896('0x54')][_0x3e926c['uniqueid']][_0x2e98fe]));}}}}catch(_0x58a9d2){logger[_0x463896('0x33')](_0x463896('0x37'),util[_0x463896('0x4f')](_0x58a9d2,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x4d')]=function(_0x3b3919){const _0x329440=_0x50c7c8;try{this[_0x329440('0x4e')](_0x3b3919)&&(this[_0x329440('0x54')][_0x3b3919[_0x329440('0x53')]]&&this['channels'][_0x3b3919['uniqueid']][_0x3b3919[_0x329440('0x3c')]]&&(this[_0x329440('0x54')][_0x3b3919[_0x329440('0x53')]][_0x3b3919['destuniqueid']][_0x329440('0x57')]=!![],this[_0x329440('0x54')][_0x3b3919['uniqueid']][_0x3b3919['destuniqueid']][_0x329440('0x13')]=moment()[_0x329440('0x7')](_0x329440('0x60')),this[_0x329440('0x54')][_0x3b3919[_0x329440('0x53')]][_0x3b3919['destuniqueid']][_0x329440('0x8')]=_0x329440('0x16'),this[_0x329440('0x54')][_0x3b3919[_0x329440('0x53')]][_0x3b3919['destuniqueid']][_0x329440('0x2e')]=_0x329440('0x16'),ami[_0x329440('0x6c')](_0x329440('0x19'),this[_0x329440('0x54')][_0x3b3919[_0x329440('0x53')]][_0x3b3919['destuniqueid']])));}catch(_0x43a4e4){logger[_0x329440('0x33')](_0x329440('0x65'),util[_0x329440('0x4f')](_0x43a4e4,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x50c7c8('0x4b')]=function(_0x1b3c37){const _0x5ba2df=_0x50c7c8;try{if(this[_0x5ba2df('0x4e')](_0x1b3c37)){if(this[_0x5ba2df('0x54')][_0x1b3c37[_0x5ba2df('0x53')]])for(const _0x3bd56f in this['channels'][_0x1b3c37[_0x5ba2df('0x53')]]){typeof this[_0x5ba2df('0x54')][_0x1b3c37['uniqueid']][_0x3bd56f]!=='undefined'&&!this['channels'][_0x1b3c37[_0x5ba2df('0x53')]][_0x3bd56f]['agentringnoanswer']&&!this[_0x5ba2df('0x54')][_0x1b3c37[_0x5ba2df('0x53')]][_0x3bd56f][_0x5ba2df('0x2d')]&&(this[_0x5ba2df('0x54')][_0x1b3c37['uniqueid']][_0x3bd56f][_0x5ba2df('0x57')]=!![],this[_0x5ba2df('0x54')][_0x1b3c37['uniqueid']][_0x3bd56f]['agentringnoanswerAt']=moment()[_0x5ba2df('0x7')](_0x5ba2df('0x60')),this[_0x5ba2df('0x54')][_0x1b3c37['uniqueid']][_0x3bd56f][_0x5ba2df('0x8')]=_0x5ba2df('0x23'),this[_0x5ba2df('0x54')][_0x1b3c37[_0x5ba2df('0x53')]][_0x3bd56f][_0x5ba2df('0x2e')]='abandoned',ami['emit']('custom:agentqueuecallerabandon',this['channels'][_0x1b3c37[_0x5ba2df('0x53')]][_0x3bd56f]));}}}catch(_0x3346ee){logger['error'](_0x5ba2df('0x2b'),util[_0x5ba2df('0x4f')](_0x3346ee,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')]['syncAgentComplete']=function(_0x4efb91){const _0x1a7ce4=_0x50c7c8;try{if(this[_0x1a7ce4('0x4e')](_0x4efb91)){if(this['channels'][_0x4efb91[_0x1a7ce4('0x53')]])for(const _0x1f2075 in this[_0x1a7ce4('0x54')][_0x4efb91[_0x1a7ce4('0x53')]]){typeof this['channels'][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075]!==_0x1a7ce4('0x6e')&&(this[_0x1a7ce4('0x54')][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075]['agentconnectAt']&&!this[_0x1a7ce4('0x54')][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075][_0x1a7ce4('0x2d')]&&(this['channels'][_0x4efb91['uniqueid']][_0x1f2075]['agentcomplete']=!![],this['channels'][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075][_0x1a7ce4('0x3d')]=moment()[_0x1a7ce4('0x7')](_0x1a7ce4('0x60')),this['channels'][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075][_0x1a7ce4('0x2e')]=_0x1a7ce4('0x41'),this[_0x1a7ce4('0x54')][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075][_0x1a7ce4('0x6f')]=_0x4efb91[_0x1a7ce4('0x6f')],this[_0x1a7ce4('0x54')][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075][_0x1a7ce4('0x8')]=_0x4efb91[_0x1a7ce4('0x8')]=='transfer'?_0x1a7ce4('0x34'):_0x4efb91[_0x1a7ce4('0x8')],this['voiceQueues'][_0x4efb91[_0x1a7ce4('0x5c')]]&&this[_0x1a7ce4('0x5f')][_0x4efb91[_0x1a7ce4('0x5c')]][_0x1a7ce4('0x48')]&&(this['channels'][_0x4efb91['uniqueid']][_0x1f2075][_0x1a7ce4('0x32')]=!![],this[_0x1a7ce4('0x54')][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075][_0x1a7ce4('0x5b')]=this[_0x1a7ce4('0x5f')][_0x4efb91['queue']][_0x1a7ce4('0x62')]),this[_0x1a7ce4('0x64')][_0x4efb91[_0x1a7ce4('0x35')]]=_['omit'](this[_0x1a7ce4('0x64')][_0x4efb91['interface']],[_0x1a7ce4('0x5c'),_0x1a7ce4('0x74')]),this['emit'](util['format'](_0x1a7ce4('0x6a'),_0x4efb91[_0x1a7ce4('0x6')]),_0x1a7ce4('0x29'),this[_0x1a7ce4('0x54')][_0x4efb91[_0x1a7ce4('0x53')]][_0x1f2075]),ami[_0x1a7ce4('0x6c')](_0x1a7ce4('0x0'),this[_0x1a7ce4('0x54')][_0x4efb91['uniqueid']][_0x1f2075])));}}}catch(_0x12e193){logger[_0x1a7ce4('0x33')](_0x1a7ce4('0x26'),util[_0x1a7ce4('0x4f')](_0x12e193,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x18')]=function(_0x9a6dc1){const _0x1299b5=_0x50c7c8;try{if(this['isNotNull'](_0x9a6dc1)){this[_0x1299b5('0x5d')](_0x9a6dc1['uniqueid'],_[_0x1299b5('0x76')](_0x9a6dc1[_0x1299b5('0x52')])[0x0],_0x9a6dc1[_0x1299b5('0x4')]);if(this[_0x1299b5('0x54')][_0x9a6dc1[_0x1299b5('0x53')]])for(const _0x4950ea in this[_0x1299b5('0x54')][_0x9a6dc1[_0x1299b5('0x53')]]){typeof this['channels'][_0x9a6dc1['uniqueid']][_0x4950ea]!==_0x1299b5('0x6e')&&(_[_0x1299b5('0x5a')](this[_0x1299b5('0x54')][_0x9a6dc1[_0x1299b5('0x53')]][_0x4950ea][_0x1299b5('0x56')])&&(this[_0x1299b5('0x54')][_0x9a6dc1[_0x1299b5('0x53')]][_0x4950ea][_0x1299b5('0x56')]={}),this['channels'][_0x9a6dc1[_0x1299b5('0x53')]][_0x4950ea]['variables']=this[_0x1299b5('0x56')][_0x9a6dc1[_0x1299b5('0x53')]]);}}}catch(_0x22e2cc){logger[_0x1299b5('0x33')](_0x1299b5('0x4c'),util[_0x1299b5('0x4f')](_0x22e2cc,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x5d')]=function(_0x3c0aa1,_0x513dac,_0x3c4792){const _0x4718fa=_0x50c7c8,_0x3bc16f=['rtpaudioqos',_0x4718fa('0x22'),_0x4718fa('0x55'),_0x4718fa('0x47'),_0x4718fa('0x58'),_0x4718fa('0x2a'),'rtpaudioqosrtt',_0x4718fa('0xf'),_0x4718fa('0xc'),_0x4718fa('0x1a'),'bridgepeer',_0x4718fa('0x72'),_0x4718fa('0x12'),_0x4718fa('0x46'),_0x4718fa('0x69'),_0x4718fa('0xb'),_0x4718fa('0x6'),'memberpenalty',_0x4718fa('0xe')];!_[_0x4718fa('0x70')](_0x513dac)&&!_['includes'](_0x3bc16f,_0x513dac)&&(_['isUndefined'](this[_0x4718fa('0x56')][_0x3c0aa1])&&(this['variables'][_0x3c0aa1]={}),this[_0x4718fa('0x56')][_0x3c0aa1][_0x513dac]=_0x3c4792);},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x71')]=function(_0x29f615){const _0x52c697=_0x50c7c8;try{if(this[_0x52c697('0x4e')](_0x29f615)){if(this['channels'][_0x29f615[_0x52c697('0x53')]]){for(const _0x1bd41d in this[_0x52c697('0x54')][_0x29f615['uniqueid']]){typeof this[_0x52c697('0x54')][_0x29f615[_0x52c697('0x53')]][_0x1bd41d]!=='undefined'&&(this[_0x52c697('0x54')][_0x29f615[_0x52c697('0x53')]][_0x1bd41d][_0x52c697('0x8')]==_0x52c697('0x6d')&&this[_0x52c697('0x54')][_0x29f615['uniqueid']][_0x1bd41d][_0x52c697('0x2d')]&&(this[_0x52c697('0x54')][_0x29f615[_0x52c697('0x53')]][_0x1bd41d][_0x52c697('0x3d')]=moment()[_0x52c697('0x7')](_0x52c697('0x60'))));}ami[_0x52c697('0x6c')](_0x52c697('0x67'),_['values'](this['channels'][_0x29f615[_0x52c697('0x53')]])),delete this[_0x52c697('0x54')][_0x29f615[_0x52c697('0x53')]];}this[_0x52c697('0x56')][_0x29f615['uniqueid']]&&delete this['variables'][_0x29f615[_0x52c697('0x53')]];}}catch(_0x244013){logger[_0x52c697('0x33')](_0x52c697('0x49'),util[_0x52c697('0x4f')](_0x244013,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')]['syncAttendedTransfer']=function(_0x524c9a){const _0x5c22d1=_0x50c7c8;try{if(this[_0x5c22d1('0x4e')](_0x524c9a)){if(this[_0x5c22d1('0x54')][_0x524c9a['transfereeuniqueid']])for(const _0x2f9d96 in this[_0x5c22d1('0x54')][_0x524c9a[_0x5c22d1('0x43')]]){if(typeof this[_0x5c22d1('0x54')][_0x524c9a[_0x5c22d1('0x43')]][_0x2f9d96]!=='undefined'){if(_0x524c9a[_0x5c22d1('0x2f')]===_0x2f9d96){const _0x3d19ee=moment();this[_0x5c22d1('0x54')][_0x524c9a[_0x5c22d1('0x43')]][_0x2f9d96][_0x5c22d1('0x2d')]=!![],this['channels'][_0x524c9a['transfereeuniqueid']][_0x2f9d96][_0x5c22d1('0x3d')]=moment()['format'](_0x5c22d1('0x60')),this[_0x5c22d1('0x54')][_0x524c9a[_0x5c22d1('0x43')]][_0x2f9d96][_0x5c22d1('0x8')]=_0x5c22d1('0x6d'),this[_0x5c22d1('0x54')][_0x524c9a['transfereeuniqueid']][_0x2f9d96][_0x5c22d1('0x2e')]=_0x5c22d1('0x41'),this['channels'][_0x524c9a[_0x5c22d1('0x43')]][_0x2f9d96][_0x5c22d1('0x6f')]=_0x3d19ee['diff'](this[_0x5c22d1('0x54')][_0x524c9a[_0x5c22d1('0x43')]][_0x2f9d96][_0x5c22d1('0x38')],_0x5c22d1('0x9'));}}}if(this['channels'][_0x524c9a['secondtransfereruniqueid']]){const _0x3fb098=this[_0x5c22d1('0x54')][_0x524c9a[_0x5c22d1('0x28')]];this['channels'][_0x524c9a[_0x5c22d1('0x28')]]=this['channels'][_0x524c9a['transfereeuniqueid']],this[_0x5c22d1('0x54')][_0x524c9a[_0x5c22d1('0x43')]]=_0x3fb098;}}}catch(_0x2e16e2){logger['error']('[syncAttendedTransfer][VoiceAgentReport]',util['inspect'](_0x2e16e2,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x78')]=function(_0x3c3e31){const _0x4750b1=_0x50c7c8;try{if(this[_0x4750b1('0x4e')](_0x3c3e31)){if(this['channels'][_0x3c3e31[_0x4750b1('0x43')]])for(const _0x52456d in this[_0x4750b1('0x54')][_0x3c3e31['transfereeuniqueid']]){if(typeof this[_0x4750b1('0x54')][_0x3c3e31[_0x4750b1('0x43')]][_0x52456d]!=='undefined'){if(_0x3c3e31[_0x4750b1('0x2')]===_0x52456d){const _0x5145b8=moment();this[_0x4750b1('0x54')][_0x3c3e31[_0x4750b1('0x43')]][_0x52456d][_0x4750b1('0x2d')]=!![],this[_0x4750b1('0x54')][_0x3c3e31[_0x4750b1('0x43')]][_0x52456d][_0x4750b1('0x3d')]=_0x5145b8,this[_0x4750b1('0x54')][_0x3c3e31['transfereeuniqueid']][_0x52456d][_0x4750b1('0x8')]='transfer',this[_0x4750b1('0x54')][_0x3c3e31['transfereeuniqueid']][_0x52456d][_0x4750b1('0x2e')]='complete',this['channels'][_0x3c3e31[_0x4750b1('0x43')]][_0x52456d][_0x4750b1('0x6f')]=_0x5145b8[_0x4750b1('0x6b')](this[_0x4750b1('0x54')][_0x3c3e31[_0x4750b1('0x43')]][_0x52456d]['agentconnectAt'],_0x4750b1('0x9'));}}}}}catch(_0x2e1b75){logger['error'](_0x4750b1('0x51'),util[_0x4750b1('0x4f')](_0x2e1b75,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x1d')]=function(_0x1bc16c){const _0xf43f98=_0x50c7c8;let _0x42a20e='';try{this[_0xf43f98('0x4e')](_0x1bc16c)&&(_0x1bc16c[_0xf43f98('0x44')]&&(_0x42a20e=_0x1bc16c['channel'][_0xf43f98('0x25')](0x0,_0x1bc16c[_0xf43f98('0x44')][_0xf43f98('0x17')]('-')),this[_0xf43f98('0x64')][_0x42a20e]&&(this[_0xf43f98('0x64')][_0x42a20e][_0xf43f98('0x77')]=!![])));}catch(_0x16d52b){logger['error'](_0xf43f98('0x61'),util[_0xf43f98('0x4f')](_0x16d52b,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x50c7c8('0x40')][_0x50c7c8('0x45')]=function(_0x3884fc){const _0x2fc064=_0x50c7c8;let _0xaa31fd='';try{this[_0x2fc064('0x4e')](_0x3884fc)&&(_0x3884fc[_0x2fc064('0x44')]&&(_0xaa31fd=_0x3884fc[_0x2fc064('0x44')][_0x2fc064('0x25')](0x0,_0x3884fc[_0x2fc064('0x44')][_0x2fc064('0x17')]('-')),this[_0x2fc064('0x64')][_0xaa31fd]&&(this['agents'][_0xaa31fd][_0x2fc064('0x77')]=![])));}catch(_0x4f72b0){logger[_0x2fc064('0x33')](_0x2fc064('0x11'),util[_0x2fc064('0x4f')](_0x4f72b0,{'showHidden':![],'depth':null}));}},module[_0x50c7c8('0x3e')]=VoiceAgentReport; \ No newline at end of file +const a1094_0x4c87=['connect','[syncAgentConnect][VoiceAgentReport]','undefined','agentcompleteAt','sipcallid','exports','emit','memberdynamic','addVariable','syncAgentConnect','[syncAttendedTransfer][VoiceAgentReport]','values','acwTimeout','voiceQueues','[syncMusicOnHoldStart][VoiceAgentReport]','sipuri','syncAgentCalled','syncMusicOnHoldStop','rtpaudioqosrttbridged','destconnectedlinenum','answeredelsewheremembername','connectedlinenum','../../../config/logger','lastIndexOf','rtpaudioqosrtt','channels','custom:agentcalled','memberrealtime','transfereruniqueid','agents','agentacw','agentconnectAt','rtpaudioqosjitterbridged','musiconholdstop','acwtime','reason','talktime','format','syncMusicOnHoldStart','syncQueueCallerAbandon','prototype','[syncHangup][VoiceAgentReport]','destchannelstatedesc','membercalls','varset','isUndefined','error','variables','agentringnoanswerAt','keys','rtpaudioqosbridged','isNotNull','inspect','[syncQueueCallerAbandon][VoiceAgentReport]','rtpaudioqoslossbridged','agentcalled','custom:voiceAgentReport','syncHangup','bridgepeer','memberlastcall','isNil','[syncAgentCalled][VoiceAgentReport]','agentconnect','syncAgentComplete','agentringnoanswer','seconds','rejected','transfer','complete','onhold','custom:agentcomplete','moment','YYYY-MM-DD\x20HH:mm:ss','called','connectedlinename','event','syncAgentRingNoAnswer','type','diff','../../../rediscache','uniqueid','membername','rtpaudioqosloss','answered_elsewhere','user:%s','syncVarSet','includes','custom:agentansweredelsewhere','channel','bind','[syncAgentRingNoAnswer][VoiceAgentReport]','agentcomplete','secondtransfereruniqueid','musiconholdstart','[syncBlindTransfer][VoiceAgentReport]','rtpaudioqos','[syncAgentComplete][VoiceAgentReport]','queue','custom:agentconnect','queuecallerabandon','destuniqueid','destchannelstate','transfereeuniqueid','abandoned','pick','interface','variable','syncAttendedTransfer','substring','omit','holdtime','user:agentconnect','[syncMusicOnHoldStop][VoiceAgentReport]','attendedtransfer','bridgepvtcallid','lastevent','../ami'];(function(_0x46dafd,_0x4c879e){const _0x1a00d2=function(_0x58c610){while(--_0x58c610){_0x46dafd['push'](_0x46dafd['shift']());}};_0x1a00d2(++_0x4c879e);}(a1094_0x4c87,0x81));const a1094_0x1a00=function(_0x46dafd,_0x4c879e){_0x46dafd=_0x46dafd-0x0;let _0x1a00d2=a1094_0x4c87[_0x46dafd];return _0x1a00d2;};const _0x4d963e=a1094_0x1a00;'use strict';const _=require('lodash'),moment=require(_0x4d963e('0x3b')),util=require('util'),logger=require(_0x4d963e('0xa'))('ami'),ami=require(_0x4d963e('0x68')),{getSocket}=require(_0x4d963e('0x43')),io=getSocket();function VoiceAgentReport(_0x58c610){const _0x2e08cd=_0x4d963e;this[_0x2e08cd('0xd')]={},this['voiceQueues']=_0x58c610[_0x2e08cd('0x1')],this[_0x2e08cd('0x11')]=_0x58c610['agents'],this[_0x2e08cd('0x23')]={},ami['on'](_0x2e08cd('0x2b'),this[_0x2e08cd('0x4')][_0x2e08cd('0x4d')](this)),ami['on'](_0x2e08cd('0x32'),this[_0x2e08cd('0x72')][_0x2e08cd('0x4d')](this)),ami['on'](_0x2e08cd('0x34'),this[_0x2e08cd('0x40')][_0x2e08cd('0x4d')](this)),ami['on'](_0x2e08cd('0x57'),this[_0x2e08cd('0x1b')][_0x2e08cd('0x4d')](this)),ami['on'](_0x2e08cd('0x4f'),this[_0x2e08cd('0x33')][_0x2e08cd('0x4d')](this)),ami['on'](_0x2e08cd('0x20'),this[_0x2e08cd('0x49')]['bind'](this)),ami['on']('hangup',this[_0x2e08cd('0x2d')][_0x2e08cd('0x4d')](this)),ami['on'](_0x2e08cd('0x51'),this[_0x2e08cd('0x1a')][_0x2e08cd('0x4d')](this)),ami['on'](_0x2e08cd('0x15'),this[_0x2e08cd('0x5')]['bind'](this)),ami['on'](_0x2e08cd('0x65'),this[_0x2e08cd('0x5f')][_0x2e08cd('0x4d')](this)),ami['on']('blindtransfer',this['syncBlindTransfer'][_0x2e08cd('0x4d')](this));}VoiceAgentReport[_0x4d963e('0x1c')][_0x4d963e('0x6f')]=function(_0x4448bc,_0x42bfd8,_0x4e300f){const _0x3f795b=_0x4d963e;io['to'](_0x4448bc)[_0x3f795b('0x6f')](_0x42bfd8,_0x4e300f);},VoiceAgentReport['prototype'][_0x4d963e('0x27')]=function(_0x7f03cf){const _0x2c3896=_0x4d963e;return _0x7f03cf!==null&&!_[_0x2c3896('0x21')](_0x7f03cf);},VoiceAgentReport[_0x4d963e('0x1c')]['syncAgentCalled']=function(_0x2ddfca){const _0x56cc2b=_0x4d963e;try{this['isNotNull'](_0x2ddfca)&&(_['isUndefined'](this[_0x56cc2b('0xd')][_0x2ddfca[_0x56cc2b('0x44')]])&&(this[_0x56cc2b('0xd')][_0x2ddfca[_0x56cc2b('0x44')]]={}),_[_0x56cc2b('0x21')](this[_0x56cc2b('0xd')][_0x2ddfca['uniqueid']][_0x2ddfca[_0x56cc2b('0x58')]])&&(this[_0x56cc2b('0xd')][_0x2ddfca['uniqueid']][_0x2ddfca[_0x56cc2b('0x58')]]={'agentcalledAt':moment()['format'](_0x56cc2b('0x3c')),'lastevent':_0x56cc2b('0x3d'),'variables':this[_0x56cc2b('0x23')][_0x2ddfca[_0x56cc2b('0x44')]],'type':this[_0x56cc2b('0x1')][_0x2ddfca['queue']]?this['voiceQueues'][_0x2ddfca[_0x56cc2b('0x55')]][_0x56cc2b('0x41')]||'inbound':'inbound'}),_['merge'](this[_0x56cc2b('0xd')][_0x2ddfca[_0x56cc2b('0x44')]][_0x2ddfca[_0x56cc2b('0x58')]],_[_0x56cc2b('0x61')](_0x2ddfca,[_0x56cc2b('0x3f'),'privilege'])),ami[_0x56cc2b('0x6f')](_0x56cc2b('0xe'),this[_0x56cc2b('0xd')][_0x2ddfca['uniqueid']][_0x2ddfca['destuniqueid']]),this['emit'](util[_0x56cc2b('0x19')](_0x56cc2b('0x48'),_0x2ddfca['membername']),'user:called',this['channels'][_0x2ddfca[_0x56cc2b('0x44')]][_0x2ddfca[_0x56cc2b('0x58')]]));}catch(_0x146f40){logger[_0x56cc2b('0x22')](_0x56cc2b('0x31'),util[_0x56cc2b('0x28')](_0x146f40,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')][_0x4d963e('0x72')]=function(_0x472f00){const _0x2049d4=_0x4d963e;try{if(this['isNotNull'](_0x472f00)){if(this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]])for(const _0x332baa in this[_0x2049d4('0xd')][_0x472f00['uniqueid']]){if(typeof this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa]!=='undefined'){if(_0x472f00[_0x2049d4('0x58')]===_0x332baa)this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa][_0x2049d4('0x13')]=moment()[_0x2049d4('0x19')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa]['lastevent']=_0x2049d4('0x69'),this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa][_0x2049d4('0x62')]=_0x472f00[_0x2049d4('0x62')],this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa][_0x2049d4('0x9')]=_0x472f00[_0x2049d4('0x9')],this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa]['connectedlinename']=_0x472f00[_0x2049d4('0x3e')],this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa]['destchannelstate']=_0x472f00[_0x2049d4('0x59')],this[_0x2049d4('0xd')][_0x472f00['uniqueid']][_0x332baa][_0x2049d4('0x1e')]=_0x472f00['destchannelstatedesc'],_['merge'](this[_0x2049d4('0x11')][_0x472f00[_0x2049d4('0x5d')]],_[_0x2049d4('0x5c')](_0x472f00,[_0x2049d4('0x55'),_0x2049d4('0x7')])),this[_0x2049d4('0x6f')](util[_0x2049d4('0x19')]('user:%s',_0x472f00[_0x2049d4('0x45')]),_0x2049d4('0x63'),this['channels'][_0x472f00[_0x2049d4('0x44')]][_0x472f00['destuniqueid']]),ami[_0x2049d4('0x6f')](_0x2049d4('0x56'),this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa]);else!this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa]['agentringnoanswer']&&!this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa][_0x2049d4('0x4f')]&&(this['channels'][_0x472f00[_0x2049d4('0x44')]][_0x332baa][_0x2049d4('0x34')]=!![],this['channels'][_0x472f00[_0x2049d4('0x44')]][_0x332baa]['agentringnoanswerAt']=moment()[_0x2049d4('0x19')](_0x2049d4('0x3c')),this[_0x2049d4('0xd')][_0x472f00['uniqueid']][_0x332baa][_0x2049d4('0x17')]=_0x2049d4('0x47'),this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa][_0x2049d4('0x67')]=_0x2049d4('0x47'),this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa]['answeredelsewheredestinationuniqueid']=_0x472f00[_0x2049d4('0x58')],this[_0x2049d4('0xd')][_0x472f00['uniqueid']][_0x332baa][_0x2049d4('0x8')]=_0x472f00['membername'],ami[_0x2049d4('0x6f')](_0x2049d4('0x4b'),this[_0x2049d4('0xd')][_0x472f00[_0x2049d4('0x44')]][_0x332baa]));}}}}catch(_0x2b518d){logger[_0x2049d4('0x22')](_0x2049d4('0x6a'),util[_0x2049d4('0x28')](_0x2b518d,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x4d963e('0x40')]=function(_0x3336fb){const _0x4f58cf=_0x4d963e;try{this[_0x4f58cf('0x27')](_0x3336fb)&&(this[_0x4f58cf('0xd')][_0x3336fb[_0x4f58cf('0x44')]]&&this[_0x4f58cf('0xd')][_0x3336fb['uniqueid']][_0x3336fb[_0x4f58cf('0x58')]]&&(this[_0x4f58cf('0xd')][_0x3336fb[_0x4f58cf('0x44')]][_0x3336fb[_0x4f58cf('0x58')]][_0x4f58cf('0x34')]=!![],this['channels'][_0x3336fb['uniqueid']][_0x3336fb['destuniqueid']][_0x4f58cf('0x24')]=moment()[_0x4f58cf('0x19')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x4f58cf('0xd')][_0x3336fb[_0x4f58cf('0x44')]][_0x3336fb[_0x4f58cf('0x58')]][_0x4f58cf('0x17')]='rejected',this['channels'][_0x3336fb[_0x4f58cf('0x44')]][_0x3336fb[_0x4f58cf('0x58')]][_0x4f58cf('0x67')]=_0x4f58cf('0x36'),ami[_0x4f58cf('0x6f')]('custom:agentringnoanswer',this[_0x4f58cf('0xd')][_0x3336fb['uniqueid']][_0x3336fb[_0x4f58cf('0x58')]])));}catch(_0x3e475e){logger[_0x4f58cf('0x22')](_0x4f58cf('0x4e'),util[_0x4f58cf('0x28')](_0x3e475e,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')][_0x4d963e('0x1b')]=function(_0x210bda){const _0x1ff563=_0x4d963e;try{if(this['isNotNull'](_0x210bda)){if(this['channels'][_0x210bda['uniqueid']])for(const _0x218dd2 in this[_0x1ff563('0xd')][_0x210bda[_0x1ff563('0x44')]]){typeof this['channels'][_0x210bda[_0x1ff563('0x44')]][_0x218dd2]!==_0x1ff563('0x6b')&&!this[_0x1ff563('0xd')][_0x210bda[_0x1ff563('0x44')]][_0x218dd2][_0x1ff563('0x34')]&&!this[_0x1ff563('0xd')][_0x210bda['uniqueid']][_0x218dd2][_0x1ff563('0x4f')]&&(this['channels'][_0x210bda[_0x1ff563('0x44')]][_0x218dd2][_0x1ff563('0x34')]=!![],this['channels'][_0x210bda[_0x1ff563('0x44')]][_0x218dd2]['agentringnoanswerAt']=moment()[_0x1ff563('0x19')](_0x1ff563('0x3c')),this[_0x1ff563('0xd')][_0x210bda['uniqueid']][_0x218dd2]['reason']='abandoned',this[_0x1ff563('0xd')][_0x210bda[_0x1ff563('0x44')]][_0x218dd2][_0x1ff563('0x67')]=_0x1ff563('0x5b'),ami[_0x1ff563('0x6f')]('custom:agentqueuecallerabandon',this['channels'][_0x210bda[_0x1ff563('0x44')]][_0x218dd2]));}}}catch(_0x65119b){logger[_0x1ff563('0x22')](_0x1ff563('0x29'),util['inspect'](_0x65119b,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')][_0x4d963e('0x33')]=function(_0x5c6c80){const _0x3ea2b0=_0x4d963e;try{if(this[_0x3ea2b0('0x27')](_0x5c6c80)){if(this['channels'][_0x5c6c80[_0x3ea2b0('0x44')]])for(const _0x139680 in this[_0x3ea2b0('0xd')][_0x5c6c80[_0x3ea2b0('0x44')]]){typeof this['channels'][_0x5c6c80[_0x3ea2b0('0x44')]][_0x139680]!==_0x3ea2b0('0x6b')&&(this[_0x3ea2b0('0xd')][_0x5c6c80['uniqueid']][_0x139680][_0x3ea2b0('0x13')]&&!this[_0x3ea2b0('0xd')][_0x5c6c80['uniqueid']][_0x139680][_0x3ea2b0('0x4f')]&&(this[_0x3ea2b0('0xd')][_0x5c6c80[_0x3ea2b0('0x44')]][_0x139680][_0x3ea2b0('0x4f')]=!![],this[_0x3ea2b0('0xd')][_0x5c6c80[_0x3ea2b0('0x44')]][_0x139680][_0x3ea2b0('0x6c')]=moment()[_0x3ea2b0('0x19')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x3ea2b0('0xd')][_0x5c6c80['uniqueid']][_0x139680][_0x3ea2b0('0x67')]=_0x3ea2b0('0x38'),this[_0x3ea2b0('0xd')][_0x5c6c80[_0x3ea2b0('0x44')]][_0x139680][_0x3ea2b0('0x18')]=_0x5c6c80[_0x3ea2b0('0x18')],this[_0x3ea2b0('0xd')][_0x5c6c80[_0x3ea2b0('0x44')]][_0x139680][_0x3ea2b0('0x17')]=_0x5c6c80[_0x3ea2b0('0x17')]==_0x3ea2b0('0x37')?'agent':_0x5c6c80['reason'],this['voiceQueues'][_0x5c6c80[_0x3ea2b0('0x55')]]&&this['voiceQueues'][_0x5c6c80['queue']]['acw']&&(this[_0x3ea2b0('0xd')][_0x5c6c80[_0x3ea2b0('0x44')]][_0x139680][_0x3ea2b0('0x12')]=!![],this['channels'][_0x5c6c80['uniqueid']][_0x139680][_0x3ea2b0('0x16')]=this[_0x3ea2b0('0x1')][_0x5c6c80[_0x3ea2b0('0x55')]][_0x3ea2b0('0x0')]),this[_0x3ea2b0('0x11')][_0x5c6c80[_0x3ea2b0('0x5d')]]=_[_0x3ea2b0('0x61')](this['agents'][_0x5c6c80[_0x3ea2b0('0x5d')]],[_0x3ea2b0('0x55'),_0x3ea2b0('0x7')]),this[_0x3ea2b0('0x6f')](util[_0x3ea2b0('0x19')]('user:%s',_0x5c6c80[_0x3ea2b0('0x45')]),'user:agentcomplete',this['channels'][_0x5c6c80['uniqueid']][_0x139680]),ami[_0x3ea2b0('0x6f')](_0x3ea2b0('0x3a'),this[_0x3ea2b0('0xd')][_0x5c6c80[_0x3ea2b0('0x44')]][_0x139680])));}}}catch(_0x31b2ca){logger[_0x3ea2b0('0x22')](_0x3ea2b0('0x54'),util[_0x3ea2b0('0x28')](_0x31b2ca,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')][_0x4d963e('0x49')]=function(_0x144340){const _0x5901aa=_0x4d963e;try{if(this[_0x5901aa('0x27')](_0x144340)){this['addVariable'](_0x144340[_0x5901aa('0x44')],_[_0x5901aa('0x25')](_0x144340[_0x5901aa('0x5e')])[0x0],_0x144340['value']);if(this[_0x5901aa('0xd')][_0x144340[_0x5901aa('0x44')]])for(const _0x1c491b in this[_0x5901aa('0xd')][_0x144340[_0x5901aa('0x44')]]){typeof this[_0x5901aa('0xd')][_0x144340['uniqueid']][_0x1c491b]!==_0x5901aa('0x6b')&&(_[_0x5901aa('0x21')](this[_0x5901aa('0xd')][_0x144340[_0x5901aa('0x44')]][_0x1c491b][_0x5901aa('0x23')])&&(this[_0x5901aa('0xd')][_0x144340[_0x5901aa('0x44')]][_0x1c491b]['variables']={}),this[_0x5901aa('0xd')][_0x144340[_0x5901aa('0x44')]][_0x1c491b][_0x5901aa('0x23')]=this[_0x5901aa('0x23')][_0x144340[_0x5901aa('0x44')]]);}}}catch(_0x47778f){logger[_0x5901aa('0x22')]('[syncVarSet][VoiceAgentReport]',util[_0x5901aa('0x28')](_0x47778f,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')][_0x4d963e('0x71')]=function(_0x16c266,_0x25c18d,_0x1a425b){const _0x2c38ec=_0x4d963e,_0x10c84a=[_0x2c38ec('0x53'),_0x2c38ec('0x26'),'rtpaudioqosjitter',_0x2c38ec('0x14'),_0x2c38ec('0x46'),_0x2c38ec('0x2a'),_0x2c38ec('0xc'),_0x2c38ec('0x6'),_0x2c38ec('0x6d'),_0x2c38ec('0x3'),_0x2c38ec('0x2e'),_0x2c38ec('0x66'),_0x2c38ec('0x1f'),_0x2c38ec('0x70'),'memberinterface',_0x2c38ec('0x2f'),_0x2c38ec('0x45'),'memberpenalty',_0x2c38ec('0xf')];!_[_0x2c38ec('0x30')](_0x25c18d)&&!_[_0x2c38ec('0x4a')](_0x10c84a,_0x25c18d)&&(_['isUndefined'](this[_0x2c38ec('0x23')][_0x16c266])&&(this[_0x2c38ec('0x23')][_0x16c266]={}),this[_0x2c38ec('0x23')][_0x16c266][_0x25c18d]=_0x1a425b);},VoiceAgentReport['prototype'][_0x4d963e('0x2d')]=function(_0x2a2963){const _0x31c8b9=_0x4d963e;try{if(this['isNotNull'](_0x2a2963)){if(this[_0x31c8b9('0xd')][_0x2a2963[_0x31c8b9('0x44')]]){for(const _0x2e045c in this[_0x31c8b9('0xd')][_0x2a2963[_0x31c8b9('0x44')]]){typeof this[_0x31c8b9('0xd')][_0x2a2963[_0x31c8b9('0x44')]][_0x2e045c]!==_0x31c8b9('0x6b')&&(this[_0x31c8b9('0xd')][_0x2a2963[_0x31c8b9('0x44')]][_0x2e045c]['reason']==_0x31c8b9('0x37')&&this[_0x31c8b9('0xd')][_0x2a2963['uniqueid']][_0x2e045c][_0x31c8b9('0x4f')]&&(this[_0x31c8b9('0xd')][_0x2a2963[_0x31c8b9('0x44')]][_0x2e045c]['agentcompleteAt']=moment()[_0x31c8b9('0x19')]('YYYY-MM-DD\x20HH:mm:ss')));}ami[_0x31c8b9('0x6f')](_0x31c8b9('0x2c'),_[_0x31c8b9('0x74')](this['channels'][_0x2a2963[_0x31c8b9('0x44')]])),delete this[_0x31c8b9('0xd')][_0x2a2963[_0x31c8b9('0x44')]];}this[_0x31c8b9('0x23')][_0x2a2963[_0x31c8b9('0x44')]]&&delete this[_0x31c8b9('0x23')][_0x2a2963[_0x31c8b9('0x44')]];}}catch(_0x1faa43){logger[_0x31c8b9('0x22')](_0x31c8b9('0x1d'),util[_0x31c8b9('0x28')](_0x1faa43,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')][_0x4d963e('0x5f')]=function(_0x5129d1){const _0x202f5d=_0x4d963e;try{if(this[_0x202f5d('0x27')](_0x5129d1)){if(this['channels'][_0x5129d1[_0x202f5d('0x5a')]])for(const _0x156c4b in this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x5a')]]){if(typeof this['channels'][_0x5129d1[_0x202f5d('0x5a')]][_0x156c4b]!==_0x202f5d('0x6b')){if(_0x5129d1['origtransfereruniqueid']===_0x156c4b){const _0x16e9cd=moment();this[_0x202f5d('0xd')][_0x5129d1['transfereeuniqueid']][_0x156c4b]['agentcomplete']=!![],this['channels'][_0x5129d1[_0x202f5d('0x5a')]][_0x156c4b][_0x202f5d('0x6c')]=moment()['format'](_0x202f5d('0x3c')),this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x5a')]][_0x156c4b][_0x202f5d('0x17')]=_0x202f5d('0x37'),this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x5a')]][_0x156c4b]['lastevent']=_0x202f5d('0x38'),this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x5a')]][_0x156c4b]['talktime']=_0x16e9cd[_0x202f5d('0x42')](this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x5a')]][_0x156c4b][_0x202f5d('0x13')],'seconds');}}}if(this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x50')]]){const _0x106f94=this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x50')]];this['channels'][_0x5129d1[_0x202f5d('0x50')]]=this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x5a')]],this[_0x202f5d('0xd')][_0x5129d1[_0x202f5d('0x5a')]]=_0x106f94;}}}catch(_0x18d052){logger[_0x202f5d('0x22')](_0x202f5d('0x73'),util[_0x202f5d('0x28')](_0x18d052,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')]['syncBlindTransfer']=function(_0x437854){const _0xc29955=_0x4d963e;try{if(this[_0xc29955('0x27')](_0x437854)){if(this[_0xc29955('0xd')][_0x437854[_0xc29955('0x5a')]])for(const _0x4cbdae in this['channels'][_0x437854[_0xc29955('0x5a')]]){if(typeof this[_0xc29955('0xd')][_0x437854['transfereeuniqueid']][_0x4cbdae]!==_0xc29955('0x6b')){if(_0x437854[_0xc29955('0x10')]===_0x4cbdae){const _0xcecf17=moment();this[_0xc29955('0xd')][_0x437854[_0xc29955('0x5a')]][_0x4cbdae]['agentcomplete']=!![],this['channels'][_0x437854['transfereeuniqueid']][_0x4cbdae][_0xc29955('0x6c')]=_0xcecf17,this[_0xc29955('0xd')][_0x437854[_0xc29955('0x5a')]][_0x4cbdae][_0xc29955('0x17')]=_0xc29955('0x37'),this[_0xc29955('0xd')][_0x437854[_0xc29955('0x5a')]][_0x4cbdae][_0xc29955('0x67')]=_0xc29955('0x38'),this[_0xc29955('0xd')][_0x437854[_0xc29955('0x5a')]][_0x4cbdae]['talktime']=_0xcecf17['diff'](this['channels'][_0x437854['transfereeuniqueid']][_0x4cbdae][_0xc29955('0x13')],_0xc29955('0x35'));}}}}}catch(_0x1a74ee){logger['error'](_0xc29955('0x52'),util[_0xc29955('0x28')](_0x1a74ee,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')]['syncMusicOnHoldStart']=function(_0x1c9333){const _0x568920=_0x4d963e;let _0x1b2aec='';try{this[_0x568920('0x27')](_0x1c9333)&&(_0x1c9333[_0x568920('0x4c')]&&(_0x1b2aec=_0x1c9333[_0x568920('0x4c')][_0x568920('0x60')](0x0,_0x1c9333['channel'][_0x568920('0xb')]('-')),this[_0x568920('0x11')][_0x1b2aec]&&(this['agents'][_0x1b2aec][_0x568920('0x39')]=!![])));}catch(_0x380519){logger['error'](_0x568920('0x2'),util['inspect'](_0x380519,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x4d963e('0x1c')][_0x4d963e('0x5')]=function(_0x403d46){const _0x398b24=_0x4d963e;let _0x25b152='';try{this[_0x398b24('0x27')](_0x403d46)&&(_0x403d46[_0x398b24('0x4c')]&&(_0x25b152=_0x403d46['channel']['substring'](0x0,_0x403d46[_0x398b24('0x4c')][_0x398b24('0xb')]('-')),this[_0x398b24('0x11')][_0x25b152]&&(this[_0x398b24('0x11')][_0x25b152][_0x398b24('0x39')]=![])));}catch(_0x182c12){logger['error'](_0x398b24('0x64'),util['inspect'](_0x182c12,{'showHidden':![],'depth':null}));}},module[_0x4d963e('0x6e')]=VoiceAgentReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceCallReport.js b/server/services/ami/report/voiceCallReport.js index 6ea6153..f1de87a 100644 --- a/server/services/ami/report/voiceCallReport.js +++ b/server/services/ami/report/voiceCallReport.js @@ -1 +1 @@ -const a1095_0x21f7=['answertime','../ami','channels','queue','resolve','transfertargetuniqueid','sipcalluniqueid','uniqueid','mohstarttime','[syncNewState][VoiceCallReport]','endsWith','xmd-destination','custom:voiceCallReport','dial','find','sipcalllinkedid','application','BUSY','value','secondtransfereruniqueid','calleridpreview','xmd-queue','isNotNull','util','path','monitor','FAILED','transfereeuniqueid','user:agentconnect','syncMusicOnHoldStop','newexten','starttime','lodash','user:%s','[syncNewChannel][VoiceCallReport]','startsWith','calleridnum','billableseconds','playback','catch','syncNewExten','extension','connectedlinenum','pick','isUndefined','xmcs-queue','disposition','musiconholdstop','destination','mixmonitor_filename','xmd-callerid-preview','syncAttendedTransfer','[syncNewExten][VoiceCallReport]','[syncVarSet][VoiceCallReport]','from-sip','monitors','transfereecalleridnum','log','toNumber','callerid','type','syncBlindTransfer','destinationchannel','[syncBlindTransfer][VoiceCallReport]','prototype','[syncNewCallerId][VoiceCallReport]','exports','rec','inspect','.WAV','origtransferercalleridnum','cdr(','exten','varset','syncHangup','channelstate','omit','keys','calleridname','transfertargetcalleridnum','applicationdata','diff','agi','bind','match','[syncMusicOnHoldStart][VoiceCallReport]','ami','agents','user:agentcomplete','voicemail','originatecalleridnum','mohtime','accountcode','channel','[syncMusicOnHoldStop][VoiceCallReport]','destconnectedlinenum','sipcallid','xmd-callerid','syncNewState','seconds','origtransfereruniqueid','error','lastapplication','actionCoreShowChannels','ANSWERED','emit','newstate','holdtime','../../../config/logger','connectedlinename','monitorFilename','transfererchannel','lastdata','merge','syncMixMonitorFilename','moment','isNil','syncNewChannel','../../../rediscache','xcally-motion-preview','coreshowchannel','UserId','membername','appdata','duration','NO\x20ANSWER','syncVarSet','transfercalleridnum','parse','BlindTransfer','YYYY-MM-DD\x20HH:mm:ss','context','syncMusicOnHoldStart','format','OutgoingSpoolFailed','hangup','split','answered','name','endtime','[syncAttendedTransfer][VoiceCallReport]','../model/channel','linkedid','[syncHangup][VoiceCallReport]','variable','transferconnectedlinenum'];(function(_0x573388,_0x21f73e){const _0x33e2fc=function(_0x2974f4){while(--_0x2974f4){_0x573388['push'](_0x573388['shift']());}};_0x33e2fc(++_0x21f73e);}(a1095_0x21f7,0x105));const a1095_0x33e2=function(_0x573388,_0x21f73e){_0x573388=_0x573388-0x0;let _0x33e2fc=a1095_0x21f7[_0x573388];return _0x33e2fc;};const _0x574c22=a1095_0x33e2;'use strict';const _=require(_0x574c22('0x3f')),moment=require(_0x574c22('0x0')),util=require(_0x574c22('0x36')),path=require(_0x574c22('0x37')),logger=require(_0x574c22('0x8b'))(_0x574c22('0x75')),ami=require(_0x574c22('0x20')),Channel=require(_0x574c22('0x1a')),applications=['set',_0x574c22('0x22'),_0x574c22('0x71'),_0x574c22('0x2c'),_0x574c22('0x45'),_0x574c22('0x78')],dispositions=[_0x574c22('0xa'),'FAILED',_0x574c22('0x39'),_0x574c22('0xa'),_0x574c22('0xa'),_0x574c22('0xa'),_0x574c22('0x87'),_0x574c22('0x30'),_0x574c22('0x39'),_0x574c22('0x39'),_0x574c22('0x39')],{getSocket}=require(_0x574c22('0x3')),io=getSocket();function VoiceCallReport(_0x2974f4){const _0x33ae95=_0x574c22;return this[_0x33ae95('0x21')]=_0x2974f4[_0x33ae95('0x21')],this['agents']=_0x2974f4[_0x33ae95('0x76')],ami['on'](_0x33ae95('0x5'),this[_0x33ae95('0x47')][_0x33ae95('0x72')](this)),ami['on'](_0x33ae95('0x3d'),this[_0x33ae95('0x47')][_0x33ae95('0x72')](this)),ami['on']('newchannel',this[_0x33ae95('0x2')][_0x33ae95('0x72')](this)),ami['on'](_0x33ae95('0x89'),this[_0x33ae95('0x81')]['bind'](this)),ami['on'](_0x33ae95('0x68'),this[_0x33ae95('0xb')]['bind'](this)),ami['on'](_0x33ae95('0x14'),this[_0x33ae95('0x69')][_0x33ae95('0x72')](this)),ami['on']('newcallerid',this['syncNewCallerId']['bind'](this)),ami['on']('attendedtransfer',this[_0x33ae95('0x52')]['bind'](this)),ami['on']('blindtransfer',this['syncBlindTransfer'][_0x33ae95('0x72')](this)),ami['on']('musiconholdstart',this[_0x33ae95('0x11')][_0x33ae95('0x72')](this)),ami['on'](_0x33ae95('0x4e'),this[_0x33ae95('0x3c')][_0x33ae95('0x72')](this)),Promise[_0x33ae95('0x23')]()['then'](ami[_0x33ae95('0x86')]())[_0x33ae95('0x46')](function(_0xf79b07){const _0x5879ab=_0x33ae95;console[_0x5879ab('0x58')](_0xf79b07);});}VoiceCallReport[_0x574c22('0x5f')][_0x574c22('0x35')]=function(_0x477d42){const _0x185381=_0x574c22;return _0x477d42!==null&&!_[_0x185381('0x4b')](_0x477d42);},VoiceCallReport['prototype'][_0x574c22('0x88')]=function(_0x1d826f,_0x28ec19,_0x5e8fa1){io['to'](_0x1d826f)['emit'](_0x28ec19,_0x5e8fa1);},VoiceCallReport[_0x574c22('0x5f')]['syncNewCallerId']=function(_0x7b83d7){const _0x286845=_0x574c22;try{this['isNotNull'](_0x7b83d7)&&(_0x7b83d7[_0x286845('0x26')]===_0x7b83d7[_0x286845('0x1b')]&&(!_[_0x286845('0x4b')](this[_0x286845('0x21')][_0x7b83d7[_0x286845('0x26')]])&&_[_0x286845('0x90')](this[_0x286845('0x21')][_0x7b83d7[_0x286845('0x26')]],_[_0x286845('0x4a')](_0x7b83d7,_['keys'](this[_0x286845('0x21')][_0x7b83d7[_0x286845('0x26')]])))));}catch(_0x2b8fb5){logger[_0x286845('0x84')](_0x286845('0x60'),util[_0x286845('0x63')](_0x2b8fb5,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x574c22('0x5f')][_0x574c22('0x2')]=function(_0x4cfdef){const _0x504436=_0x574c22;try{this[_0x504436('0x35')](_0x4cfdef)&&(_0x4cfdef[_0x504436('0x26')]===_0x4cfdef['linkedid']&&_0x4cfdef[_0x504436('0x7c')]!='OutgoingSpoolFailed'&&(_['isUndefined'](this[_0x504436('0x21')][_0x4cfdef['uniqueid']])&&(this['channels'][_0x4cfdef[_0x504436('0x26')]]=new Channel(),this[_0x504436('0x21')][_0x4cfdef[_0x504436('0x26')]][_0x504436('0x3e')]=moment()[_0x504436('0x12')](_0x504436('0xf')),this[_0x504436('0x21')][_0x4cfdef['uniqueid']][_0x504436('0x4d')]=dispositions[_[_0x504436('0x59')](_0x4cfdef[_0x504436('0x6a')])],_[_0x504436('0x90')](this[_0x504436('0x21')][_0x4cfdef['uniqueid']],_[_0x504436('0x4a')](_0x4cfdef,_[_0x504436('0x6c')](this[_0x504436('0x21')][_0x4cfdef[_0x504436('0x26')]]))),_0x4cfdef[_0x504436('0x10')]===_0x504436('0x55')&&(this[_0x504436('0x76')][_0x4cfdef[_0x504436('0x7c')]['split']('-')[0x0]]&&(this[_0x504436('0x76')][_0x4cfdef[_0x504436('0x7c')][_0x504436('0x15')]('-')[0x0]][_0x504436('0x7e')]=_0x4cfdef[_0x504436('0x67')],this[_0x504436('0x88')](util[_0x504436('0x12')](_0x504436('0x40'),this['agents'][_0x4cfdef[_0x504436('0x7c')]['split']('-')[0x0]][_0x504436('0x17')]),_0x504436('0x3b'),{'destaccountcode':this['agents'][_0x4cfdef[_0x504436('0x7c')]['split']('-')[0x0]][_0x504436('0x7b')],'destconnectedlinenum':_0x4cfdef[_0x504436('0x67')]}))))));}catch(_0x57fe42){logger[_0x504436('0x84')](_0x504436('0x41'),util['inspect'](_0x57fe42,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x574c22('0x5f')][_0x574c22('0x47')]=function(_0x568b28){const _0x3dda1c=_0x574c22;try{if(this[_0x3dda1c('0x35')](_0x568b28)){if(_0x568b28[_0x3dda1c('0x26')]===_0x568b28['linkedid']&&_0x568b28[_0x3dda1c('0x67')]!='h'&&_0x568b28['channel']!=_0x3dda1c('0x13')){_0x568b28[_0x3dda1c('0x2f')]=_0x568b28[_0x3dda1c('0x2f')]['toLowerCase'](),_0x568b28[_0x3dda1c('0x6f')]=(_0x568b28[_0x3dda1c('0x8')]||_0x568b28[_0x3dda1c('0x6f')])['toLowerCase']();_[_0x3dda1c('0x4b')](this[_0x3dda1c('0x21')][_0x568b28[_0x3dda1c('0x26')]])&&(this['channels'][_0x568b28[_0x3dda1c('0x26')]]=new Channel(),this[_0x3dda1c('0x21')][_0x568b28['uniqueid']][_0x3dda1c('0x3e')]=_0x568b28[_0x3dda1c('0x9')]?moment()['subtract'](moment[_0x3dda1c('0x9')](_0x568b28[_0x3dda1c('0x9')])[_0x3dda1c('0x82')](),_0x3dda1c('0x82'))[_0x3dda1c('0x12')](_0x3dda1c('0xf')):moment()[_0x3dda1c('0x12')](_0x3dda1c('0xf')),this[_0x3dda1c('0x21')][_0x568b28[_0x3dda1c('0x26')]]['disposition']=_0x3dda1c('0xa'));_['merge'](this['channels'][_0x568b28[_0x3dda1c('0x26')]],_[_0x3dda1c('0x4a')](_0x568b28,_[_0x3dda1c('0x6c')](this[_0x3dda1c('0x21')][_0x568b28[_0x3dda1c('0x26')]])));if(_['includes'](applications,_0x568b28[_0x3dda1c('0x2f')])){this[_0x3dda1c('0x21')][_0x568b28[_0x3dda1c('0x26')]][_0x3dda1c('0x85')]=_0x568b28['application'],this['channels'][_0x568b28['uniqueid']][_0x3dda1c('0x8f')]=_0x568b28[_0x3dda1c('0x6f')];if(_0x568b28[_0x3dda1c('0x2f')]==='set'&&_[_0x3dda1c('0x42')](_0x568b28[_0x3dda1c('0x6f')],_0x3dda1c('0x66'))){const _0x5b1847=_0x568b28['applicationdata'][_0x3dda1c('0x15')]('='),_0x4b2b9c=_0x5b1847[0x0][_0x3dda1c('0x73')](/cdr\((.*)\)/);_0x4b2b9c&&(this['channels'][_0x568b28['uniqueid']][_0x4b2b9c[0x1]]=_0x5b1847[0x1]);}else _0x568b28[_0x3dda1c('0x2f')]===_0x3dda1c('0x22')&&(this[_0x3dda1c('0x21')][_0x568b28[_0x3dda1c('0x26')]][_0x3dda1c('0x22')]=_0x568b28[_0x3dda1c('0x6f')][_0x3dda1c('0x15')](',')[0x0]);}}}}catch(_0x22eb6e){logger[_0x3dda1c('0x84')](_0x3dda1c('0x53'),util[_0x3dda1c('0x63')](_0x22eb6e,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x574c22('0x5f')][_0x574c22('0x81')]=function(_0x55ba8b){const _0x50f2b1=_0x574c22;try{if(this[_0x50f2b1('0x35')](_0x55ba8b)){if(_0x55ba8b[_0x50f2b1('0x26')]!==_0x55ba8b[_0x50f2b1('0x1b')]){if(this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x1b')]]){if(_0x55ba8b[_0x50f2b1('0x6a')]==='6'){if(!this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x1b')]][_0x50f2b1('0x16')]){const _0x3ff283=moment();this['channels'][_0x55ba8b[_0x50f2b1('0x1b')]][_0x50f2b1('0x16')]=!![],this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x1b')]][_0x50f2b1('0x1f')]=_0x3ff283[_0x50f2b1('0x12')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x1b')]]['starttime']&&(this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x1b')]]['holdtime']=_0x3ff283[_0x50f2b1('0x70')](this['channels'][_0x55ba8b[_0x50f2b1('0x1b')]][_0x50f2b1('0x3e')],'seconds'));}this['channels'][_0x55ba8b['linkedid']][_0x50f2b1('0x1b')]=_0x55ba8b['uniqueid'],_0x55ba8b[_0x50f2b1('0x43')]!==_0x50f2b1('0x4')&&(this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x1b')]][_0x50f2b1('0x49')]=_0x55ba8b[_0x50f2b1('0x43')]),this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x1b')]][_0x50f2b1('0x8c')]=_0x55ba8b[_0x50f2b1('0x6d')],this[_0x50f2b1('0x21')][_0x55ba8b['linkedid']][_0x50f2b1('0x5d')]=_0x55ba8b['channel'],this[_0x50f2b1('0x21')][_0x55ba8b['linkedid']]['disposition']=dispositions[_[_0x50f2b1('0x59')](_0x55ba8b[_0x50f2b1('0x6a')])],this['agents'][_0x55ba8b[_0x50f2b1('0x7c')][_0x50f2b1('0x15')]('-')[0x0]]&&(this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x1b')]][_0x50f2b1('0x6')]=this[_0x50f2b1('0x76')][_0x55ba8b[_0x50f2b1('0x7c')][_0x50f2b1('0x15')]('-')[0x0]]['id'],this['channels'][_0x55ba8b[_0x50f2b1('0x1b')]][_0x50f2b1('0x7')]=this['agents'][_0x55ba8b[_0x50f2b1('0x7c')]['split']('-')[0x0]]['name']);}}}else this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x26')]]&&(_0x55ba8b[_0x50f2b1('0x6a')]==='6'&&(this['agents'][_0x55ba8b['channel'][_0x50f2b1('0x15')]('-')[0x0]]&&(this['channels'][_0x55ba8b[_0x50f2b1('0x26')]]['UserId']=this[_0x50f2b1('0x76')][_0x55ba8b[_0x50f2b1('0x7c')]['split']('-')[0x0]]['id'],this[_0x50f2b1('0x21')][_0x55ba8b[_0x50f2b1('0x26')]][_0x50f2b1('0x7')]=this[_0x50f2b1('0x76')][_0x55ba8b['channel'][_0x50f2b1('0x15')]('-')[0x0]][_0x50f2b1('0x17')])));}}catch(_0x59db71){logger['error'](_0x50f2b1('0x28'),util[_0x50f2b1('0x63')](_0x59db71,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x574c22('0x91')]=function(_0x4f3907,_0x5e044b){const _0x445988=_0x574c22;if(this[_0x445988('0x21')][_0x4f3907]){this[_0x445988('0x21')][_0x4f3907][_0x445988('0x38')]=!![];_[_0x445988('0x29')](_0x5e044b,'.wav49')&&(_0x5e044b=_0x5e044b['replace']('.wav49',_0x445988('0x64')));this[_0x445988('0x21')][_0x4f3907][_0x445988('0x8d')]=_0x5e044b;const _0x44a2a4=_[_0x445988('0x2d')](this[_0x445988('0x21')][_0x4f3907][_0x445988('0x56')],{'filename':_0x5e044b});_[_0x445988('0x1')](_0x44a2a4)&&this['channels'][_0x4f3907][_0x445988('0x56')]['push']({'filename':_0x5e044b,'createdAt':moment()[_0x445988('0x12')](_0x445988('0xf')),'mixmonitorid':'','status':_0x445988('0x62')});}},VoiceCallReport[_0x574c22('0x5f')]['syncVarSet']=function(_0x5764ae){const _0x2f4d69=_0x574c22;try{if(this['isNotNull'](_0x5764ae)){if(this[_0x2f4d69('0x21')][_0x5764ae['uniqueid']]&&_0x5764ae[_0x2f4d69('0x7c')]!=_0x2f4d69('0x13')){if(this[_0x2f4d69('0x35')](_0x5764ae[_0x2f4d69('0x1d')])){if(this[_0x2f4d69('0x35')](_0x5764ae[_0x2f4d69('0x1d')][_0x2f4d69('0x50')]))this[_0x2f4d69('0x91')](_0x5764ae[_0x2f4d69('0x26')],_0x5764ae[_0x2f4d69('0x31')]);else{if(this[_0x2f4d69('0x35')](_0x5764ae['variable']['xmd-phone']))this[_0x2f4d69('0x21')][_0x5764ae[_0x2f4d69('0x26')]][_0x2f4d69('0x43')]=_0x5764ae[_0x2f4d69('0x31')];else{if(this[_0x2f4d69('0x35')](_0x5764ae['variable'][_0x2f4d69('0x80')]))this[_0x2f4d69('0x21')][_0x5764ae[_0x2f4d69('0x26')]][_0x2f4d69('0x5a')]=_0x5764ae[_0x2f4d69('0x31')];else{if(this[_0x2f4d69('0x35')](_0x5764ae[_0x2f4d69('0x1d')]['xmd-cdrtype']))this[_0x2f4d69('0x21')][_0x5764ae[_0x2f4d69('0x26')]][_0x2f4d69('0x5b')]=_0x5764ae[_0x2f4d69('0x31')];else{if(this[_0x2f4d69('0x35')](_0x5764ae['variable'][_0x2f4d69('0x34')]))this['channels'][_0x5764ae[_0x2f4d69('0x26')]][_0x2f4d69('0x22')]=_0x5764ae[_0x2f4d69('0x31')]['split'](',')[0x0];else{if(this[_0x2f4d69('0x35')](_0x5764ae[_0x2f4d69('0x1d')]['xmd-originatecalleridnum']))this[_0x2f4d69('0x21')][_0x5764ae[_0x2f4d69('0x26')]][_0x2f4d69('0x79')]=_0x5764ae[_0x2f4d69('0x31')];else{if(this[_0x2f4d69('0x35')](_0x5764ae['variable'][_0x2f4d69('0x2a')]))this[_0x2f4d69('0x21')][_0x5764ae[_0x2f4d69('0x26')]][_0x2f4d69('0x4f')]=_0x5764ae[_0x2f4d69('0x31')];else{if(this[_0x2f4d69('0x35')](_0x5764ae[_0x2f4d69('0x1d')][_0x2f4d69('0x51')]))this[_0x2f4d69('0x21')][_0x5764ae['uniqueid']][_0x2f4d69('0x33')]=_0x5764ae[_0x2f4d69('0x31')];else{if(this['isNotNull'](_0x5764ae[_0x2f4d69('0x1d')][_0x2f4d69('0x4c')]))this[_0x2f4d69('0x21')][_0x5764ae['uniqueid']]['queue']=_0x5764ae[_0x2f4d69('0x31')];else this[_0x2f4d69('0x35')](_0x5764ae['variable'][_0x2f4d69('0x7f')])&&(this['channels'][_0x5764ae['uniqueid']][_0x2f4d69('0x25')]=_0x5764ae[_0x2f4d69('0x31')]);}}}}}}}}}}else{if(this[_0x2f4d69('0x35')](_0x5764ae[_0x2f4d69('0x1d')][_0x2f4d69('0x50')])){if(_0x5764ae[_0x2f4d69('0x31')]){const _0x409944=path[_0x2f4d69('0xd')](_0x5764ae['value'])[_0x2f4d69('0x17')];this[_0x2f4d69('0x91')](_0x409944,_0x5764ae[_0x2f4d69('0x31')]);}}else this[_0x2f4d69('0x21')][_0x5764ae[_0x2f4d69('0x1b')]]&&(this[_0x2f4d69('0x35')](_0x5764ae[_0x2f4d69('0x1d')])&&(this[_0x2f4d69('0x35')](_0x5764ae[_0x2f4d69('0x1d')][_0x2f4d69('0x7f')])&&(this['channels'][_0x5764ae['linkedid']][_0x2f4d69('0x2e')]=_0x5764ae['value'])));}}}catch(_0x11b9f9){logger[_0x2f4d69('0x84')](_0x2f4d69('0x54'),util[_0x2f4d69('0x63')](_0x11b9f9,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x574c22('0x5f')]['syncHangup']=function(_0x17366f){const _0x43f726=_0x574c22;try{if(this['isNotNull'](_0x17366f)){if(this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]]){const _0x1a6ba9=moment();this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]][_0x43f726('0x18')]=_0x1a6ba9[_0x43f726('0x12')](_0x43f726('0xf')),this['channels'][_0x17366f[_0x43f726('0x26')]]['duration']=_0x1a6ba9['diff'](this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]][_0x43f726('0x3e')],'seconds'),this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]][_0x43f726('0x16')]&&(this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]][_0x43f726('0x44')]=_0x1a6ba9['diff'](this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]]['answertime'],_0x43f726('0x82')),this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]][_0x43f726('0x8a')]=this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]][_0x43f726('0x9')]-this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]][_0x43f726('0x44')]),_0x17366f['context']==='from-sip'&&(this['agents'][_0x17366f['channel'][_0x43f726('0x15')]('-')[0x0]]&&(this['agents'][_0x17366f[_0x43f726('0x7c')][_0x43f726('0x15')]('-')[0x0]]=_[_0x43f726('0x6b')](this[_0x43f726('0x76')][_0x17366f['channel'][_0x43f726('0x15')]('-')[0x0]],[_0x43f726('0x7e')]),this[_0x43f726('0x88')](util[_0x43f726('0x12')](_0x43f726('0x40'),this['agents'][_0x17366f[_0x43f726('0x7c')][_0x43f726('0x15')]('-')[0x0]]['name']),_0x43f726('0x77'),{'destaccountcode':this[_0x43f726('0x76')][_0x17366f['channel']['split']('-')[0x0]][_0x43f726('0x7b')]}))),ami[_0x43f726('0x88')](_0x43f726('0x2b'),this['channels'][_0x17366f[_0x43f726('0x26')]]),delete this[_0x43f726('0x21')][_0x17366f[_0x43f726('0x26')]];}}}catch(_0x2f3a2b){logger[_0x43f726('0x84')](_0x43f726('0x1c'),util[_0x43f726('0x63')](_0x2f3a2b,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x574c22('0x52')]=function(_0x457e14){const _0x370558=_0x574c22;try{if(this['isNotNull'](_0x457e14)){if(this[_0x370558('0x21')][_0x457e14[_0x370558('0x3a')]]){this['channels'][_0x457e14[_0x370558('0x3a')]]['transfercalleridnum']=_0x457e14[_0x370558('0x65')],this[_0x370558('0x21')][_0x457e14[_0x370558('0x3a')]][_0x370558('0x1e')]=_0x457e14[_0x370558('0x6e')];if(this[_0x370558('0x21')][_0x457e14[_0x370558('0x32')]]){const _0x4d5915=this['channels'][_0x457e14[_0x370558('0x32')]];this[_0x370558('0x21')][_0x457e14[_0x370558('0x32')]]=this['channels'][_0x457e14['transfereeuniqueid']],this[_0x370558('0x21')][_0x457e14[_0x370558('0x3a')]]=_0x4d5915;}}else{if(this['channels'][_0x457e14['transfertargetuniqueid']]){this[_0x370558('0x21')][_0x457e14[_0x370558('0x24')]][_0x370558('0xc')]=_0x457e14[_0x370558('0x65')],this[_0x370558('0x21')][_0x457e14[_0x370558('0x24')]][_0x370558('0x1e')]=_0x457e14[_0x370558('0x6e')];if(this[_0x370558('0x21')][_0x457e14[_0x370558('0x83')]]){const _0x175eac=this[_0x370558('0x21')][_0x457e14[_0x370558('0x83')]];this['channels'][_0x457e14[_0x370558('0x83')]]=this[_0x370558('0x21')][_0x457e14[_0x370558('0x24')]],this[_0x370558('0x21')][_0x457e14[_0x370558('0x24')]]=_0x175eac;}}}}}catch(_0x3e5d6c){logger[_0x370558('0x84')](_0x370558('0x19'),util['inspect'](_0x3e5d6c,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x574c22('0x5c')]=function(_0x6e7a35){const _0x3543df=_0x574c22;try{this[_0x3543df('0x35')](_0x6e7a35)&&(this[_0x3543df('0x21')][_0x6e7a35[_0x3543df('0x3a')]]&&(this['channels'][_0x6e7a35[_0x3543df('0x3a')]]['transfercalleridnum']=_0x6e7a35[_0x3543df('0x57')],this[_0x3543df('0x21')][_0x6e7a35[_0x3543df('0x3a')]][_0x3543df('0x1e')]=_0x6e7a35[_0x3543df('0x48')],this['syncHangup']({'event':_0x3543df('0xe'),'uniqueid':_0x6e7a35[_0x3543df('0x3a')],'context':_0x6e7a35[_0x3543df('0x10')],'channel':_0x6e7a35[_0x3543df('0x8e')]})));}catch(_0x429123){logger[_0x3543df('0x84')](_0x3543df('0x5e'),util[_0x3543df('0x63')](_0x429123,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x574c22('0x11')]=function(_0x2e59ff){const _0x3aa8dd=_0x574c22;try{this['isNotNull'](_0x2e59ff)&&(this[_0x3aa8dd('0x21')][_0x2e59ff['uniqueid']]&&(!_[_0x3aa8dd('0x1')](this['channels'][_0x2e59ff[_0x3aa8dd('0x26')]][_0x3aa8dd('0x1f')])&&(this['channels'][_0x2e59ff[_0x3aa8dd('0x26')]][_0x3aa8dd('0x27')]=moment()['format'](_0x3aa8dd('0xf')))));}catch(_0x471b54){logger['error'](_0x3aa8dd('0x74'),util[_0x3aa8dd('0x63')](_0x471b54,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x574c22('0x5f')]['syncMusicOnHoldStop']=function(_0x24f5c9){const _0x41a103=_0x574c22;try{this['isNotNull'](_0x24f5c9)&&(this[_0x41a103('0x21')][_0x24f5c9[_0x41a103('0x26')]]&&(!_[_0x41a103('0x1')](this[_0x41a103('0x21')][_0x24f5c9[_0x41a103('0x26')]][_0x41a103('0x27')])&&(this[_0x41a103('0x21')][_0x24f5c9[_0x41a103('0x26')]][_0x41a103('0x7a')]+=moment()['milliseconds'](0x0)[_0x41a103('0x70')](this[_0x41a103('0x21')][_0x24f5c9[_0x41a103('0x26')]][_0x41a103('0x27')],'seconds'),delete this[_0x41a103('0x21')][_0x24f5c9[_0x41a103('0x26')]][_0x41a103('0x27')])));}catch(_0x4bdba5){logger[_0x41a103('0x84')](_0x41a103('0x7d'),util[_0x41a103('0x63')](_0x4bdba5,{'showHidden':![],'depth':null}));}},module[_0x574c22('0x61')]=VoiceCallReport; \ No newline at end of file +const a1095_0x1a9f=['xmd-originatecalleridnum','set','xmd-cdrtype','[syncAttendedTransfer][VoiceCallReport]','destinationchannel','toNumber','destination','lodash','duration','callerid','ANSWERED','channelstate','push','.wav49','xmd-phone','billableseconds','transferconnectedlinenum','newexten','secondtransfereruniqueid','mohstarttime','seconds','membername','blindtransfer','sipcallid','answered','value','from-sip','syncNewExten','application','transfertargetuniqueid','diff','voicemail','varset','isNotNull','UserId','xmd-destination','YYYY-MM-DD\x20HH:mm:ss','NO\x20ANSWER','catch','startsWith','answertime','monitors','channels','context','isUndefined','transfereeuniqueid','syncBlindTransfer','originatecalleridnum','sipcalluniqueid','milliseconds','[syncMusicOnHoldStart][VoiceCallReport]','coreshowchannel','[syncBlindTransfer][VoiceCallReport]','monitorFilename','[syncNewCallerId][VoiceCallReport]','then','monitor','lastapplication','../ami','mohtime','actionCoreShowChannels','parse','newstate','agents','resolve','user:%s','syncNewCallerId','uniqueid','exten','includes','../../../config/logger','path','user:agentcomplete','linkedid','accountcode','mixmonitor_filename','[syncNewExten][VoiceCallReport]','.WAV','syncMusicOnHoldStop','replace','transfercalleridnum','user:agentconnect','[syncNewState][VoiceCallReport]','xmd-callerid-preview','channel','variable','musiconholdstart','name','merge','xmd-queue','find','util','[syncNewChannel][VoiceCallReport]','newchannel','xmcs-queue','log','transfereecalleridnum','OutgoingSpoolFailed','musiconholdstop','keys','../../../rediscache','FAILED','cdr(','[syncMusicOnHoldStop][VoiceCallReport]','[syncHangup][VoiceCallReport]','sipcalllinkedid','syncMixMonitorFilename','transfertargetcalleridnum','calleridnum','split','calleridpreview','origtransferercalleridnum','lastdata','applicationdata','rec','destconnectedlinenum','BlindTransfer','emit','syncHangup','pick','prototype','origtransfereruniqueid','disposition','toLowerCase','attendedtransfer','error','isNil','custom:voiceCallReport','connectedlinename','queue','bind','syncNewState','format','transfererchannel','inspect','extension','xcally-motion-preview','syncMusicOnHoldStart','syncVarSet','starttime'];(function(_0x4ef2ab,_0x1a9f89){const _0xbf1fe7=function(_0x108ba){while(--_0x108ba){_0x4ef2ab['push'](_0x4ef2ab['shift']());}};_0xbf1fe7(++_0x1a9f89);}(a1095_0x1a9f,0xde));const a1095_0xbf1f=function(_0x4ef2ab,_0x1a9f89){_0x4ef2ab=_0x4ef2ab-0x0;let _0xbf1fe7=a1095_0x1a9f[_0x4ef2ab];return _0xbf1fe7;};const _0x2f7735=a1095_0xbf1f;'use strict';const _=require(_0x2f7735('0x41')),moment=require('moment'),util=require(_0x2f7735('0x9')),path=require(_0x2f7735('0x81')),logger=require(_0x2f7735('0x80'))('ami'),ami=require(_0x2f7735('0x74')),Channel=require('../model/channel'),applications=[_0x2f7735('0x3b'),_0x2f7735('0x2f'),'agi','dial','playback',_0x2f7735('0x59')],dispositions=[_0x2f7735('0x5f'),_0x2f7735('0x13'),_0x2f7735('0x13'),'NO\x20ANSWER',_0x2f7735('0x5f'),'NO\x20ANSWER',_0x2f7735('0x44'),'BUSY',_0x2f7735('0x13'),'FAILED',_0x2f7735('0x13')],{getSocket}=require(_0x2f7735('0x12')),io=getSocket();function VoiceCallReport(_0x108ba){const _0x3c3122=_0x2f7735;return this[_0x3c3122('0x64')]=_0x108ba[_0x3c3122('0x64')],this[_0x3c3122('0x79')]=_0x108ba[_0x3c3122('0x79')],ami['on'](_0x3c3122('0x6d'),this[_0x3c3122('0x55')][_0x3c3122('0x30')](this)),ami['on'](_0x3c3122('0x4b'),this[_0x3c3122('0x55')][_0x3c3122('0x30')](this)),ami['on'](_0x3c3122('0xb'),this['syncNewChannel']['bind'](this)),ami['on'](_0x3c3122('0x78'),this[_0x3c3122('0x31')][_0x3c3122('0x30')](this)),ami['on'](_0x3c3122('0x5a'),this[_0x3c3122('0x38')][_0x3c3122('0x30')](this)),ami['on']('hangup',this[_0x3c3122('0x24')][_0x3c3122('0x30')](this)),ami['on']('newcallerid',this[_0x3c3122('0x7c')][_0x3c3122('0x30')](this)),ami['on'](_0x3c3122('0x2a'),this['syncAttendedTransfer'][_0x3c3122('0x30')](this)),ami['on'](_0x3c3122('0x50'),this['syncBlindTransfer'][_0x3c3122('0x30')](this)),ami['on'](_0x3c3122('0x4'),this['syncMusicOnHoldStart'][_0x3c3122('0x30')](this)),ami['on'](_0x3c3122('0x10'),this[_0x3c3122('0x88')]['bind'](this)),Promise[_0x3c3122('0x7a')]()[_0x3c3122('0x71')](ami[_0x3c3122('0x76')]())[_0x3c3122('0x60')](function(_0x456df4){const _0x3c40ff=_0x3c3122;console[_0x3c40ff('0xd')](_0x456df4);});}VoiceCallReport[_0x2f7735('0x26')][_0x2f7735('0x5b')]=function(_0x9f5548){const _0x5c5632=_0x2f7735;return _0x9f5548!==null&&!_[_0x5c5632('0x66')](_0x9f5548);},VoiceCallReport['prototype']['emit']=function(_0x5080de,_0x27cfab,_0x43ec9b){const _0x1a2e59=_0x2f7735;io['to'](_0x5080de)[_0x1a2e59('0x23')](_0x27cfab,_0x43ec9b);},VoiceCallReport[_0x2f7735('0x26')][_0x2f7735('0x7c')]=function(_0x7da56f){const _0x47673e=_0x2f7735;try{this[_0x47673e('0x5b')](_0x7da56f)&&(_0x7da56f['uniqueid']===_0x7da56f[_0x47673e('0x83')]&&(!_['isUndefined'](this[_0x47673e('0x64')][_0x7da56f[_0x47673e('0x7d')]])&&_[_0x47673e('0x6')](this[_0x47673e('0x64')][_0x7da56f[_0x47673e('0x7d')]],_[_0x47673e('0x25')](_0x7da56f,_[_0x47673e('0x11')](this[_0x47673e('0x64')][_0x7da56f['uniqueid']])))));}catch(_0xa9680f){logger[_0x47673e('0x2b')](_0x47673e('0x70'),util[_0x47673e('0x34')](_0xa9680f,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x2f7735('0x26')]['syncNewChannel']=function(_0x26df09){const _0x20790c=_0x2f7735;try{this['isNotNull'](_0x26df09)&&(_0x26df09[_0x20790c('0x7d')]===_0x26df09[_0x20790c('0x83')]&&_0x26df09[_0x20790c('0x2')]!=_0x20790c('0xf')&&(_[_0x20790c('0x66')](this['channels'][_0x26df09[_0x20790c('0x7d')]])&&(this[_0x20790c('0x64')][_0x26df09['uniqueid']]=new Channel(),this[_0x20790c('0x64')][_0x26df09[_0x20790c('0x7d')]][_0x20790c('0x39')]=moment()[_0x20790c('0x32')](_0x20790c('0x5e')),this[_0x20790c('0x64')][_0x26df09[_0x20790c('0x7d')]][_0x20790c('0x28')]=dispositions[_[_0x20790c('0x3f')](_0x26df09[_0x20790c('0x45')])],_[_0x20790c('0x6')](this[_0x20790c('0x64')][_0x26df09[_0x20790c('0x7d')]],_[_0x20790c('0x25')](_0x26df09,_['keys'](this['channels'][_0x26df09['uniqueid']]))),_0x26df09['context']==='from-sip'&&(this[_0x20790c('0x79')][_0x26df09[_0x20790c('0x2')][_0x20790c('0x1b')]('-')[0x0]]&&(this[_0x20790c('0x79')][_0x26df09[_0x20790c('0x2')][_0x20790c('0x1b')]('-')[0x0]][_0x20790c('0x21')]=_0x26df09[_0x20790c('0x7e')],this[_0x20790c('0x23')](util[_0x20790c('0x32')](_0x20790c('0x7b'),this[_0x20790c('0x79')][_0x26df09[_0x20790c('0x2')][_0x20790c('0x1b')]('-')[0x0]][_0x20790c('0x5')]),_0x20790c('0x8b'),{'destaccountcode':this[_0x20790c('0x79')][_0x26df09[_0x20790c('0x2')]['split']('-')[0x0]][_0x20790c('0x84')],'destconnectedlinenum':_0x26df09[_0x20790c('0x7e')]}))))));}catch(_0x4c47f2){logger['error'](_0x20790c('0xa'),util[_0x20790c('0x34')](_0x4c47f2,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype']['syncNewExten']=function(_0x521bd0){const _0x102d0d=_0x2f7735;try{if(this[_0x102d0d('0x5b')](_0x521bd0)){if(_0x521bd0[_0x102d0d('0x7d')]===_0x521bd0['linkedid']&&_0x521bd0[_0x102d0d('0x7e')]!='h'&&_0x521bd0[_0x102d0d('0x2')]!=_0x102d0d('0xf')){_0x521bd0[_0x102d0d('0x56')]=_0x521bd0[_0x102d0d('0x56')][_0x102d0d('0x29')](),_0x521bd0[_0x102d0d('0x1f')]=(_0x521bd0['appdata']||_0x521bd0[_0x102d0d('0x1f')])[_0x102d0d('0x29')]();_[_0x102d0d('0x66')](this['channels'][_0x521bd0[_0x102d0d('0x7d')]])&&(this['channels'][_0x521bd0[_0x102d0d('0x7d')]]=new Channel(),this[_0x102d0d('0x64')][_0x521bd0[_0x102d0d('0x7d')]][_0x102d0d('0x39')]=_0x521bd0[_0x102d0d('0x42')]?moment()['subtract'](moment[_0x102d0d('0x42')](_0x521bd0[_0x102d0d('0x42')])[_0x102d0d('0x4e')](),_0x102d0d('0x4e'))[_0x102d0d('0x32')](_0x102d0d('0x5e')):moment()['format'](_0x102d0d('0x5e')),this[_0x102d0d('0x64')][_0x521bd0['uniqueid']][_0x102d0d('0x28')]=_0x102d0d('0x5f'));_[_0x102d0d('0x6')](this[_0x102d0d('0x64')][_0x521bd0[_0x102d0d('0x7d')]],_['pick'](_0x521bd0,_[_0x102d0d('0x11')](this[_0x102d0d('0x64')][_0x521bd0[_0x102d0d('0x7d')]])));if(_[_0x102d0d('0x7f')](applications,_0x521bd0['application'])){this['channels'][_0x521bd0[_0x102d0d('0x7d')]][_0x102d0d('0x73')]=_0x521bd0[_0x102d0d('0x56')],this[_0x102d0d('0x64')][_0x521bd0['uniqueid']][_0x102d0d('0x1e')]=_0x521bd0['applicationdata'];if(_0x521bd0[_0x102d0d('0x56')]===_0x102d0d('0x3b')&&_[_0x102d0d('0x61')](_0x521bd0['applicationdata'],_0x102d0d('0x14'))){const _0x4c36f9=_0x521bd0['applicationdata'][_0x102d0d('0x1b')]('='),_0x111b11=_0x4c36f9[0x0]['match'](/cdr\((.*)\)/);_0x111b11&&(this['channels'][_0x521bd0[_0x102d0d('0x7d')]][_0x111b11[0x1]]=_0x4c36f9[0x1]);}else _0x521bd0[_0x102d0d('0x56')]==='queue'&&(this['channels'][_0x521bd0[_0x102d0d('0x7d')]][_0x102d0d('0x2f')]=_0x521bd0[_0x102d0d('0x1f')][_0x102d0d('0x1b')](',')[0x0]);}}}}catch(_0x31e48f){logger[_0x102d0d('0x2b')](_0x102d0d('0x86'),util['inspect'](_0x31e48f,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x2f7735('0x26')][_0x2f7735('0x31')]=function(_0x5f0374){const _0x4015fc=_0x2f7735;try{if(this[_0x4015fc('0x5b')](_0x5f0374)){if(_0x5f0374[_0x4015fc('0x7d')]!==_0x5f0374['linkedid']){if(this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]]){if(_0x5f0374[_0x4015fc('0x45')]==='6'){if(!this['channels'][_0x5f0374[_0x4015fc('0x83')]][_0x4015fc('0x52')]){const _0x3877da=moment();this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]][_0x4015fc('0x52')]=!![],this[_0x4015fc('0x64')][_0x5f0374['linkedid']][_0x4015fc('0x62')]=_0x3877da['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]]['starttime']&&(this[_0x4015fc('0x64')][_0x5f0374['linkedid']]['holdtime']=_0x3877da['diff'](this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]][_0x4015fc('0x39')],_0x4015fc('0x4e')));}this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]][_0x4015fc('0x83')]=_0x5f0374[_0x4015fc('0x7d')],_0x5f0374[_0x4015fc('0x1a')]!==_0x4015fc('0x36')&&(this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]]['connectedlinenum']=_0x5f0374['calleridnum']),this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]][_0x4015fc('0x2e')]=_0x5f0374['calleridname'],this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]][_0x4015fc('0x3e')]=_0x5f0374[_0x4015fc('0x2')],this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]][_0x4015fc('0x28')]=dispositions[_[_0x4015fc('0x3f')](_0x5f0374[_0x4015fc('0x45')])],this['agents'][_0x5f0374['channel'][_0x4015fc('0x1b')]('-')[0x0]]&&(this[_0x4015fc('0x64')][_0x5f0374['linkedid']][_0x4015fc('0x5c')]=this[_0x4015fc('0x79')][_0x5f0374[_0x4015fc('0x2')][_0x4015fc('0x1b')]('-')[0x0]]['id'],this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x83')]]['membername']=this[_0x4015fc('0x79')][_0x5f0374['channel'][_0x4015fc('0x1b')]('-')[0x0]][_0x4015fc('0x5')]);}}}else this[_0x4015fc('0x64')][_0x5f0374[_0x4015fc('0x7d')]]&&(_0x5f0374['channelstate']==='6'&&(this['agents'][_0x5f0374['channel'][_0x4015fc('0x1b')]('-')[0x0]]&&(this['channels'][_0x5f0374[_0x4015fc('0x7d')]][_0x4015fc('0x5c')]=this[_0x4015fc('0x79')][_0x5f0374[_0x4015fc('0x2')]['split']('-')[0x0]]['id'],this[_0x4015fc('0x64')][_0x5f0374['uniqueid']][_0x4015fc('0x4f')]=this[_0x4015fc('0x79')][_0x5f0374[_0x4015fc('0x2')][_0x4015fc('0x1b')]('-')[0x0]][_0x4015fc('0x5')])));}}catch(_0x12448b){logger[_0x4015fc('0x2b')](_0x4015fc('0x0'),util['inspect'](_0x12448b,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x2f7735('0x26')][_0x2f7735('0x18')]=function(_0x21803a,_0x1e3e5d){const _0x1a067a=_0x2f7735;if(this[_0x1a067a('0x64')][_0x21803a]){this[_0x1a067a('0x64')][_0x21803a][_0x1a067a('0x72')]=!![];_['endsWith'](_0x1e3e5d,_0x1a067a('0x47'))&&(_0x1e3e5d=_0x1e3e5d[_0x1a067a('0x89')](_0x1a067a('0x47'),_0x1a067a('0x87')));this[_0x1a067a('0x64')][_0x21803a][_0x1a067a('0x6f')]=_0x1e3e5d;const _0x4ebbb9=_[_0x1a067a('0x8')](this[_0x1a067a('0x64')][_0x21803a][_0x1a067a('0x63')],{'filename':_0x1e3e5d});_['isNil'](_0x4ebbb9)&&this[_0x1a067a('0x64')][_0x21803a][_0x1a067a('0x63')][_0x1a067a('0x46')]({'filename':_0x1e3e5d,'createdAt':moment()[_0x1a067a('0x32')](_0x1a067a('0x5e')),'mixmonitorid':'','status':_0x1a067a('0x20')});}},VoiceCallReport['prototype']['syncVarSet']=function(_0x4ddd5a){const _0x3f5d98=_0x2f7735;try{if(this['isNotNull'](_0x4ddd5a)){if(this[_0x3f5d98('0x64')][_0x4ddd5a[_0x3f5d98('0x7d')]]&&_0x4ddd5a[_0x3f5d98('0x2')]!=_0x3f5d98('0xf')){if(this[_0x3f5d98('0x5b')](_0x4ddd5a[_0x3f5d98('0x3')])){if(this[_0x3f5d98('0x5b')](_0x4ddd5a['variable']['mixmonitor_filename']))this[_0x3f5d98('0x18')](_0x4ddd5a[_0x3f5d98('0x7d')],_0x4ddd5a[_0x3f5d98('0x53')]);else{if(this['isNotNull'](_0x4ddd5a[_0x3f5d98('0x3')][_0x3f5d98('0x48')]))this['channels'][_0x4ddd5a[_0x3f5d98('0x7d')]][_0x3f5d98('0x1a')]=_0x4ddd5a[_0x3f5d98('0x53')];else{if(this[_0x3f5d98('0x5b')](_0x4ddd5a[_0x3f5d98('0x3')]['xmd-callerid']))this[_0x3f5d98('0x64')][_0x4ddd5a[_0x3f5d98('0x7d')]][_0x3f5d98('0x43')]=_0x4ddd5a[_0x3f5d98('0x53')];else{if(this[_0x3f5d98('0x5b')](_0x4ddd5a[_0x3f5d98('0x3')][_0x3f5d98('0x3c')]))this[_0x3f5d98('0x64')][_0x4ddd5a['uniqueid']]['type']=_0x4ddd5a[_0x3f5d98('0x53')];else{if(this[_0x3f5d98('0x5b')](_0x4ddd5a['variable'][_0x3f5d98('0x7')]))this[_0x3f5d98('0x64')][_0x4ddd5a[_0x3f5d98('0x7d')]][_0x3f5d98('0x2f')]=_0x4ddd5a[_0x3f5d98('0x53')][_0x3f5d98('0x1b')](',')[0x0];else{if(this[_0x3f5d98('0x5b')](_0x4ddd5a[_0x3f5d98('0x3')][_0x3f5d98('0x3a')]))this[_0x3f5d98('0x64')][_0x4ddd5a[_0x3f5d98('0x7d')]][_0x3f5d98('0x69')]=_0x4ddd5a[_0x3f5d98('0x53')];else{if(this['isNotNull'](_0x4ddd5a['variable'][_0x3f5d98('0x5d')]))this[_0x3f5d98('0x64')][_0x4ddd5a['uniqueid']][_0x3f5d98('0x40')]=_0x4ddd5a['value'];else{if(this[_0x3f5d98('0x5b')](_0x4ddd5a['variable'][_0x3f5d98('0x1')]))this[_0x3f5d98('0x64')][_0x4ddd5a[_0x3f5d98('0x7d')]][_0x3f5d98('0x1c')]=_0x4ddd5a[_0x3f5d98('0x53')];else{if(this['isNotNull'](_0x4ddd5a['variable'][_0x3f5d98('0xc')]))this['channels'][_0x4ddd5a[_0x3f5d98('0x7d')]][_0x3f5d98('0x2f')]=_0x4ddd5a[_0x3f5d98('0x53')];else this[_0x3f5d98('0x5b')](_0x4ddd5a[_0x3f5d98('0x3')]['sipcallid'])&&(this[_0x3f5d98('0x64')][_0x4ddd5a[_0x3f5d98('0x7d')]][_0x3f5d98('0x6a')]=_0x4ddd5a[_0x3f5d98('0x53')]);}}}}}}}}}}else{if(this['isNotNull'](_0x4ddd5a[_0x3f5d98('0x3')][_0x3f5d98('0x85')])){if(_0x4ddd5a['value']){const _0x160f1b=path[_0x3f5d98('0x77')](_0x4ddd5a[_0x3f5d98('0x53')])[_0x3f5d98('0x5')];this['syncMixMonitorFilename'](_0x160f1b,_0x4ddd5a[_0x3f5d98('0x53')]);}}else this['channels'][_0x4ddd5a[_0x3f5d98('0x83')]]&&(this[_0x3f5d98('0x5b')](_0x4ddd5a[_0x3f5d98('0x3')])&&(this[_0x3f5d98('0x5b')](_0x4ddd5a[_0x3f5d98('0x3')][_0x3f5d98('0x51')])&&(this[_0x3f5d98('0x64')][_0x4ddd5a['linkedid']][_0x3f5d98('0x17')]=_0x4ddd5a[_0x3f5d98('0x53')])));}}}catch(_0x185e77){logger[_0x3f5d98('0x2b')]('[syncVarSet][VoiceCallReport]',util[_0x3f5d98('0x34')](_0x185e77,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x2f7735('0x26')][_0x2f7735('0x24')]=function(_0x7d3b05){const _0x4c47ad=_0x2f7735;try{if(this[_0x4c47ad('0x5b')](_0x7d3b05)){if(this[_0x4c47ad('0x64')][_0x7d3b05[_0x4c47ad('0x7d')]]){const _0x3e9d7f=moment();this['channels'][_0x7d3b05['uniqueid']]['endtime']=_0x3e9d7f[_0x4c47ad('0x32')](_0x4c47ad('0x5e')),this[_0x4c47ad('0x64')][_0x7d3b05[_0x4c47ad('0x7d')]][_0x4c47ad('0x42')]=_0x3e9d7f['diff'](this[_0x4c47ad('0x64')][_0x7d3b05[_0x4c47ad('0x7d')]]['starttime'],_0x4c47ad('0x4e')),this['channels'][_0x7d3b05['uniqueid']][_0x4c47ad('0x52')]&&(this[_0x4c47ad('0x64')][_0x7d3b05[_0x4c47ad('0x7d')]][_0x4c47ad('0x49')]=_0x3e9d7f[_0x4c47ad('0x58')](this[_0x4c47ad('0x64')][_0x7d3b05[_0x4c47ad('0x7d')]][_0x4c47ad('0x62')],_0x4c47ad('0x4e')),this[_0x4c47ad('0x64')][_0x7d3b05['uniqueid']]['holdtime']=this[_0x4c47ad('0x64')][_0x7d3b05['uniqueid']][_0x4c47ad('0x42')]-this[_0x4c47ad('0x64')][_0x7d3b05[_0x4c47ad('0x7d')]]['billableseconds']),_0x7d3b05[_0x4c47ad('0x65')]===_0x4c47ad('0x54')&&(this[_0x4c47ad('0x79')][_0x7d3b05[_0x4c47ad('0x2')][_0x4c47ad('0x1b')]('-')[0x0]]&&(this[_0x4c47ad('0x79')][_0x7d3b05[_0x4c47ad('0x2')][_0x4c47ad('0x1b')]('-')[0x0]]=_['omit'](this[_0x4c47ad('0x79')][_0x7d3b05[_0x4c47ad('0x2')][_0x4c47ad('0x1b')]('-')[0x0]],[_0x4c47ad('0x21')]),this[_0x4c47ad('0x23')](util[_0x4c47ad('0x32')](_0x4c47ad('0x7b'),this[_0x4c47ad('0x79')][_0x7d3b05[_0x4c47ad('0x2')][_0x4c47ad('0x1b')]('-')[0x0]]['name']),_0x4c47ad('0x82'),{'destaccountcode':this['agents'][_0x7d3b05[_0x4c47ad('0x2')][_0x4c47ad('0x1b')]('-')[0x0]][_0x4c47ad('0x84')]}))),ami[_0x4c47ad('0x23')](_0x4c47ad('0x2d'),this[_0x4c47ad('0x64')][_0x7d3b05[_0x4c47ad('0x7d')]]),delete this[_0x4c47ad('0x64')][_0x7d3b05['uniqueid']];}}}catch(_0x479c46){logger[_0x4c47ad('0x2b')](_0x4c47ad('0x16'),util[_0x4c47ad('0x34')](_0x479c46,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype']['syncAttendedTransfer']=function(_0x533c33){const _0x2e1aca=_0x2f7735;try{if(this[_0x2e1aca('0x5b')](_0x533c33)){if(this[_0x2e1aca('0x64')][_0x533c33[_0x2e1aca('0x67')]]){this[_0x2e1aca('0x64')][_0x533c33['transfereeuniqueid']][_0x2e1aca('0x8a')]=_0x533c33['origtransferercalleridnum'],this[_0x2e1aca('0x64')][_0x533c33[_0x2e1aca('0x67')]][_0x2e1aca('0x4a')]=_0x533c33[_0x2e1aca('0x19')];if(this[_0x2e1aca('0x64')][_0x533c33[_0x2e1aca('0x4c')]]){const _0x503191=this[_0x2e1aca('0x64')][_0x533c33[_0x2e1aca('0x4c')]];this['channels'][_0x533c33[_0x2e1aca('0x4c')]]=this[_0x2e1aca('0x64')][_0x533c33['transfereeuniqueid']],this['channels'][_0x533c33[_0x2e1aca('0x67')]]=_0x503191;}}else{if(this['channels'][_0x533c33[_0x2e1aca('0x57')]]){this[_0x2e1aca('0x64')][_0x533c33[_0x2e1aca('0x57')]][_0x2e1aca('0x8a')]=_0x533c33[_0x2e1aca('0x1d')],this[_0x2e1aca('0x64')][_0x533c33[_0x2e1aca('0x57')]]['transferconnectedlinenum']=_0x533c33[_0x2e1aca('0x19')];if(this['channels'][_0x533c33[_0x2e1aca('0x27')]]){const _0x4f8c3b=this[_0x2e1aca('0x64')][_0x533c33['origtransfereruniqueid']];this[_0x2e1aca('0x64')][_0x533c33['origtransfereruniqueid']]=this[_0x2e1aca('0x64')][_0x533c33['transfertargetuniqueid']],this[_0x2e1aca('0x64')][_0x533c33[_0x2e1aca('0x57')]]=_0x4f8c3b;}}}}}catch(_0x26476e){logger[_0x2e1aca('0x2b')](_0x2e1aca('0x3d'),util[_0x2e1aca('0x34')](_0x26476e,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x2f7735('0x26')][_0x2f7735('0x68')]=function(_0x47c9be){const _0x490f9b=_0x2f7735;try{this[_0x490f9b('0x5b')](_0x47c9be)&&(this[_0x490f9b('0x64')][_0x47c9be['transfereeuniqueid']]&&(this[_0x490f9b('0x64')][_0x47c9be[_0x490f9b('0x67')]][_0x490f9b('0x8a')]=_0x47c9be[_0x490f9b('0xe')],this[_0x490f9b('0x64')][_0x47c9be[_0x490f9b('0x67')]][_0x490f9b('0x4a')]=_0x47c9be[_0x490f9b('0x35')],this[_0x490f9b('0x24')]({'event':_0x490f9b('0x22'),'uniqueid':_0x47c9be[_0x490f9b('0x67')],'context':_0x47c9be[_0x490f9b('0x65')],'channel':_0x47c9be[_0x490f9b('0x33')]})));}catch(_0x23f01d){logger['error'](_0x490f9b('0x6e'),util[_0x490f9b('0x34')](_0x23f01d,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x2f7735('0x26')][_0x2f7735('0x37')]=function(_0x4e4cf2){const _0x23cec5=_0x2f7735;try{this[_0x23cec5('0x5b')](_0x4e4cf2)&&(this[_0x23cec5('0x64')][_0x4e4cf2[_0x23cec5('0x7d')]]&&(!_[_0x23cec5('0x2c')](this[_0x23cec5('0x64')][_0x4e4cf2[_0x23cec5('0x7d')]]['answertime'])&&(this['channels'][_0x4e4cf2['uniqueid']][_0x23cec5('0x4d')]=moment()[_0x23cec5('0x32')](_0x23cec5('0x5e')))));}catch(_0x3e27c9){logger[_0x23cec5('0x2b')](_0x23cec5('0x6c'),util[_0x23cec5('0x34')](_0x3e27c9,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x2f7735('0x26')][_0x2f7735('0x88')]=function(_0x5da559){const _0x37d016=_0x2f7735;try{this['isNotNull'](_0x5da559)&&(this[_0x37d016('0x64')][_0x5da559[_0x37d016('0x7d')]]&&(!_[_0x37d016('0x2c')](this[_0x37d016('0x64')][_0x5da559['uniqueid']][_0x37d016('0x4d')])&&(this['channels'][_0x5da559[_0x37d016('0x7d')]][_0x37d016('0x75')]+=moment()[_0x37d016('0x6b')](0x0)['diff'](this[_0x37d016('0x64')][_0x5da559[_0x37d016('0x7d')]]['mohstarttime'],'seconds'),delete this[_0x37d016('0x64')][_0x5da559['uniqueid']][_0x37d016('0x4d')])));}catch(_0xd5cc03){logger['error'](_0x37d016('0x15'),util['inspect'](_0xd5cc03,{'showHidden':![],'depth':null}));}},module['exports']=VoiceCallReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceDialReport.js b/server/services/ami/report/voiceDialReport.js index 4af5faf..b85178f 100644 --- a/server/services/ami/report/voiceDialReport.js +++ b/server/services/ami/report/voiceDialReport.js @@ -1 +1 @@ -const a1096_0x9f8f=['dialstatus','bridgepeer','custom:dialend','rtpaudioqosrtt','isUndefined','varset','keys','event','holdtime','starttime','memberrealtime','memberdynamic','custom:dialbegin','custom:voiceDialReport','custom:dialconnect','hangup','merge','ANSWER','memberpenalty','stringify','memberlastcall','sipcallid','syncDialBegin','outbound','sumHoldTime','voice_outbound_channel:save','dialbegin','seconds','answered','util','dialend','total','outboundrouteid','billableseconds','syncHangup','error','bind','rtpaudioqos','memberinterface','syncVarSet','rtpaudioqoslossbridged','lastevent','answertime','called','sipuri','variable','omit','addVariable','variables','[syncDialEnd][VoiceDialReport]','isNotNull','../../../rediscache','rtpaudioqosloss','rtpaudioqosrttbridged','diff','prototype','privilege','sumBillable','membercalls','YYYY-MM-DD\x20HH:mm:ss','connectedlinename','duration','uniqueid','lastIndexOf','endtime','rtpaudioqosjitterbridged','[syncVarSet][VoiceDialReport]','inspect','substring','sumDuration','exports','voice_outbound_channel:remove','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','isNil','channels','voice:outbound','membername','connectedlinenum','rtpaudioqosbridged','emit','channel','voice_outbound:save'];(function(_0x527812,_0x9f8f39){const _0x2fef0c=function(_0x21632d){while(--_0x21632d){_0x527812['push'](_0x527812['shift']());}};_0x2fef0c(++_0x9f8f39);}(a1096_0x9f8f,0xdb));const a1096_0x2fef=function(_0x527812,_0x9f8f39){_0x527812=_0x527812-0x0;let _0x2fef0c=a1096_0x9f8f[_0x527812];return _0x2fef0c;};const _0x20e46c=a1096_0x2fef;'use strict';const _=require('lodash'),moment=require('moment'),util=require(_0x20e46c('0x38')),logger=require('../../../config/logger')('ami'),ami=require('../ami'),{getSocket}=require(_0x20e46c('0x4e')),io=getSocket();function VoiceDialReport(_0x21632d){const _0x2a5a4c=_0x20e46c;this[_0x2a5a4c('0x13')]=_0x21632d['outboundChannels'],this[_0x2a5a4c('0x32')]=_0x21632d[_0x2a5a4c('0x32')],this[_0x2a5a4c('0x4b')]={},ami['on'](_0x2a5a4c('0x35'),this[_0x2a5a4c('0x31')][_0x2a5a4c('0x3f')](this)),ami['on'](_0x2a5a4c('0x39'),this['syncDialEnd']['bind'](this)),ami['on'](_0x2a5a4c('0x20'),this[_0x2a5a4c('0x42')][_0x2a5a4c('0x3f')](this)),ami['on'](_0x2a5a4c('0x2a'),this[_0x2a5a4c('0x3d')][_0x2a5a4c('0x3f')](this));}VoiceDialReport[_0x20e46c('0x0')][_0x20e46c('0x4d')]=function(_0x4a40ec){const _0x339df9=_0x20e46c;return _0x4a40ec!==null&&!_[_0x339df9('0x1f')](_0x4a40ec);},VoiceDialReport['prototype'][_0x20e46c('0x18')]=function(_0x350ef9,_0x442f9f,_0x447ebf){const _0x4334aa=_0x20e46c;io['to'](_0x350ef9)[_0x4334aa('0x18')](_0x442f9f,_0x447ebf);},VoiceDialReport[_0x20e46c('0x0')][_0x20e46c('0x31')]=function(_0x3a00ec){const _0x4e9cf1=_0x20e46c;try{this['isNotNull'](_0x3a00ec)&&(this[_0x4e9cf1('0x13')][_0x3a00ec[_0x4e9cf1('0x7')]]&&(_[_0x4e9cf1('0x2b')](this[_0x4e9cf1('0x13')][_0x3a00ec[_0x4e9cf1('0x7')]],{'starttime':moment()['format'](_0x4e9cf1('0x4')),'lastevent':_0x4e9cf1('0x46'),'interface':_0x3a00ec[_0x4e9cf1('0x19')][_0x4e9cf1('0xd')](0x0,_0x3a00ec[_0x4e9cf1('0x19')][_0x4e9cf1('0x8')]('-')),'membername':_0x3a00ec[_0x4e9cf1('0x19')][_0x4e9cf1('0xd')](_0x3a00ec[_0x4e9cf1('0x19')][_0x4e9cf1('0x8')]('/')+0x1,_0x3a00ec[_0x4e9cf1('0x19')]['lastIndexOf']('-'))},_[_0x4e9cf1('0x49')](_0x3a00ec,[_0x4e9cf1('0x22'),_0x4e9cf1('0x1')])),this[_0x4e9cf1('0x18')](_0x4e9cf1('0x14'),_0x4e9cf1('0x34'),this[_0x4e9cf1('0x13')][_0x3a00ec[_0x4e9cf1('0x7')]]),ami['emit'](_0x4e9cf1('0x27'),this[_0x4e9cf1('0x13')][_0x3a00ec[_0x4e9cf1('0x7')]])));}catch(_0x9aca5c){logger['error']('[syncDialBegin][VoiceDialReport]',util['inspect'](_0x9aca5c,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x20e46c('0x0')]['syncDialEnd']=function(_0x2a4973){const _0x3e8559=_0x20e46c;try{this['isNotNull'](_0x2a4973)&&(this[_0x3e8559('0x13')][_0x2a4973[_0x3e8559('0x7')]]&&(this[_0x3e8559('0x13')][_0x2a4973[_0x3e8559('0x7')]][_0x3e8559('0x1b')]=_0x2a4973['dialstatus'],_0x2a4973[_0x3e8559('0x1b')]===_0x3e8559('0x2c')&&(this[_0x3e8559('0x13')][_0x2a4973[_0x3e8559('0x7')]][_0x3e8559('0x16')]=_0x2a4973[_0x3e8559('0x16')],this[_0x3e8559('0x13')][_0x2a4973[_0x3e8559('0x7')]][_0x3e8559('0x5')]=_0x2a4973[_0x3e8559('0x5')],this[_0x3e8559('0x13')][_0x2a4973[_0x3e8559('0x7')]][_0x3e8559('0x45')]=moment()['format'](_0x3e8559('0x4')),this[_0x3e8559('0x13')][_0x2a4973['uniqueid']][_0x3e8559('0x44')]='connect',ami[_0x3e8559('0x18')](_0x3e8559('0x29'),this[_0x3e8559('0x13')][_0x2a4973[_0x3e8559('0x7')]])),this[_0x3e8559('0x18')]('voice:outbound',_0x3e8559('0x34'),this[_0x3e8559('0x13')][_0x2a4973[_0x3e8559('0x7')]])));}catch(_0x2329b9){logger[_0x3e8559('0x3e')](_0x3e8559('0x4c'),util['inspect'](_0x2329b9,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x20e46c('0x0')][_0x20e46c('0x42')]=function(_0x557477){const _0x3ba85e=_0x20e46c;try{this[_0x3ba85e('0x4d')](_0x557477)&&(this[_0x3ba85e('0x4a')](_0x557477['uniqueid'],_[_0x3ba85e('0x21')](_0x557477[_0x3ba85e('0x48')])[0x0],_0x557477['value']),this[_0x3ba85e('0x4d')](_0x557477[_0x3ba85e('0x48')])&&this[_0x3ba85e('0x4d')](_0x557477[_0x3ba85e('0x48')][_0x3ba85e('0x3b')])&&(_[_0x3ba85e('0x1f')](this[_0x3ba85e('0x13')][_0x557477[_0x3ba85e('0x7')]])&&(this['channels'][_0x557477['uniqueid']]={'routeId':_0x557477['value'],'variables':this[_0x3ba85e('0x4b')][_0x557477[_0x3ba85e('0x7')]]},this['emit']('voice:outbound','voice_outbound_channel:save',this[_0x3ba85e('0x13')][_0x557477[_0x3ba85e('0x7')]]))));}catch(_0x2c488e){logger['error'](_0x3ba85e('0xb'),util['inspect'](_0x2c488e,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x20e46c('0x0')]['addVariable']=function(_0x43f7a7,_0x110cc9,_0x3d2565){const _0x13f412=_0x20e46c,_0x12a3f0=[_0x13f412('0x40'),_0x13f412('0x17'),'rtpaudioqosjitter',_0x13f412('0xa'),_0x13f412('0x4f'),_0x13f412('0x43'),_0x13f412('0x1e'),_0x13f412('0x50'),_0x13f412('0x30'),_0x13f412('0x47'),_0x13f412('0x1c'),'bridgepvtcallid',_0x13f412('0x3'),_0x13f412('0x26'),_0x13f412('0x41'),_0x13f412('0x2f'),_0x13f412('0x15'),_0x13f412('0x2d'),_0x13f412('0x25')];!_[_0x13f412('0x12')](_0x110cc9)&&!_['includes'](_0x12a3f0,_0x110cc9)&&(_[_0x13f412('0x1f')](this[_0x13f412('0x4b')][_0x43f7a7])&&(this[_0x13f412('0x4b')][_0x43f7a7]={}),this[_0x13f412('0x4b')][_0x43f7a7][_0x110cc9]=_0x3d2565);},VoiceDialReport[_0x20e46c('0x0')][_0x20e46c('0x3d')]=function(_0x5a5fd6){const _0x3b1417=_0x20e46c;try{this[_0x3b1417('0x4d')](_0x5a5fd6)&&(this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]&&(this[_0x3b1417('0x13')][_0x5a5fd6['uniqueid']][_0x3b1417('0x9')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]][_0x3b1417('0x6')]=moment(this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]['endtime'])['diff'](this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]['starttime'],_0x3b1417('0x36')),this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]][_0x3b1417('0x44')]='complete',this[_0x3b1417('0x32')][_0x3b1417('0x3a')]+=0x1,this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]['answertime']&&(this[_0x3b1417('0x32')][_0x3b1417('0x37')]+=0x1,this['channels'][_0x5a5fd6[_0x3b1417('0x7')]]['holdtime']=moment(this['channels'][_0x5a5fd6['uniqueid']]['answertime'])['diff'](this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]][_0x3b1417('0x24')],_0x3b1417('0x36')),this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]][_0x3b1417('0x3c')]=moment(this['channels'][_0x5a5fd6[_0x3b1417('0x7')]][_0x3b1417('0x9')])[_0x3b1417('0x51')](this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]['answertime'],'seconds'),this[_0x3b1417('0x32')][_0x3b1417('0x33')]+=this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]][_0x3b1417('0x23')]||0x0,this[_0x3b1417('0x32')][_0x3b1417('0x2')]+=this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]][_0x3b1417('0x3c')]),this['outbound'][_0x3b1417('0xe')]+=this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]['duration'],ami[_0x3b1417('0x18')](_0x3b1417('0x28'),this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]),ami['emit'](_0x3b1417('0x1d'),this[_0x3b1417('0x13')][_0x5a5fd6['uniqueid']]),this[_0x3b1417('0x18')]('voice:outbound',_0x3b1417('0x1a'),this[_0x3b1417('0x32')]),logger['info'](_0x3b1417('0x11'),JSON[_0x3b1417('0x2e')](this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]])),this[_0x3b1417('0x18')](_0x3b1417('0x14'),_0x3b1417('0x10'),this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]),delete this[_0x3b1417('0x13')][_0x5a5fd6[_0x3b1417('0x7')]]),this[_0x3b1417('0x4b')][_0x5a5fd6[_0x3b1417('0x7')]]&&delete this[_0x3b1417('0x4b')][_0x5a5fd6[_0x3b1417('0x7')]]);}catch(_0x168178){logger[_0x3b1417('0x3e')]('[syncHangup][VoiceDialReport]',util[_0x3b1417('0xc')](_0x168178,{'showHidden':![],'depth':null}));}},module[_0x20e46c('0xf')]=VoiceDialReport; \ No newline at end of file +const a1096_0x1bc9=['error','outbound','stringify','memberpenalty','voice_outbound:save','voice:outbound','lodash','info','isNil','prototype','rtpaudioqosrtt','addVariable','total','variables','channels','isNotNull','includes','outboundChannels','uniqueid','YYYY-MM-DD\x20HH:mm:ss','answered','[syncDialBegin][VoiceDialReport]','connect','custom:dialbegin','rtpaudioqosloss','syncVarSet','dialend','merge','memberdynamic','complete','substring','value','rtpaudioqosjitter','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','membername','ANSWER','channel','diff','memberlastcall','starttime','sumBillable','syncDialEnd','sumHoldTime','bridgepvtcallid','rtpaudioqosbridged','inspect','duration','dialstatus','privilege','bind','outboundrouteid','billableseconds','variable','../ami','lastevent','answertime','emit','lastIndexOf','format','keys','endtime','rtpaudioqos','sipuri','called','../../../rediscache','bridgepeer','voice_outbound_channel:save','isUndefined','custom:dialconnect','[syncHangup][VoiceDialReport]','seconds','connectedlinename','exports','ami','hangup','syncDialBegin','memberinterface','[syncVarSet][VoiceDialReport]','[syncDialEnd][VoiceDialReport]','syncHangup','connectedlinenum','memberrealtime','membercalls','moment','rtpaudioqoslossbridged'];(function(_0x18f739,_0x1bc999){const _0x2ac630=function(_0x1b46e9){while(--_0x1b46e9){_0x18f739['push'](_0x18f739['shift']());}};_0x2ac630(++_0x1bc999);}(a1096_0x1bc9,0x1dd));const a1096_0x2ac6=function(_0x18f739,_0x1bc999){_0x18f739=_0x18f739-0x0;let _0x2ac630=a1096_0x1bc9[_0x18f739];return _0x2ac630;};const _0x51d2cb=a1096_0x2ac6;'use strict';const _=require(_0x51d2cb('0x27')),moment=require(_0x51d2cb('0x1f')),util=require('util'),logger=require('../../../config/logger')(_0x51d2cb('0x15')),ami=require(_0x51d2cb('0x1')),{getSocket}=require(_0x51d2cb('0xc')),io=getSocket();function VoiceDialReport(_0x1b46e9){const _0x20e0f0=_0x51d2cb;this[_0x20e0f0('0x2f')]=_0x1b46e9[_0x20e0f0('0x32')],this['outbound']=_0x1b46e9['outbound'],this[_0x20e0f0('0x2e')]={},ami['on']('dialbegin',this[_0x20e0f0('0x17')][_0x20e0f0('0x52')](this)),ami['on'](_0x20e0f0('0x3b'),this['syncDialEnd'][_0x20e0f0('0x52')](this)),ami['on']('varset',this[_0x20e0f0('0x3a')][_0x20e0f0('0x52')](this)),ami['on'](_0x20e0f0('0x16'),this['syncHangup'][_0x20e0f0('0x52')](this));}VoiceDialReport[_0x51d2cb('0x2a')][_0x51d2cb('0x30')]=function(_0x48b822){return _0x48b822!==null&&!_['isUndefined'](_0x48b822);},VoiceDialReport[_0x51d2cb('0x2a')]['emit']=function(_0x375d74,_0x355717,_0x2f338e){const _0x5c1363=_0x51d2cb;io['to'](_0x375d74)[_0x5c1363('0x4')](_0x355717,_0x2f338e);},VoiceDialReport[_0x51d2cb('0x2a')][_0x51d2cb('0x17')]=function(_0x7f2cbd){const _0x8cbf7b=_0x51d2cb;try{this[_0x8cbf7b('0x30')](_0x7f2cbd)&&(this[_0x8cbf7b('0x2f')][_0x7f2cbd[_0x8cbf7b('0x33')]]&&(_[_0x8cbf7b('0x3c')](this['channels'][_0x7f2cbd[_0x8cbf7b('0x33')]],{'starttime':moment()[_0x8cbf7b('0x6')](_0x8cbf7b('0x34')),'lastevent':_0x8cbf7b('0xb'),'interface':_0x7f2cbd[_0x8cbf7b('0x45')][_0x8cbf7b('0x3f')](0x0,_0x7f2cbd[_0x8cbf7b('0x45')]['lastIndexOf']('-')),'membername':_0x7f2cbd[_0x8cbf7b('0x45')][_0x8cbf7b('0x3f')](_0x7f2cbd[_0x8cbf7b('0x45')][_0x8cbf7b('0x5')]('/')+0x1,_0x7f2cbd[_0x8cbf7b('0x45')][_0x8cbf7b('0x5')]('-'))},_['omit'](_0x7f2cbd,['event',_0x8cbf7b('0x51')])),this[_0x8cbf7b('0x4')](_0x8cbf7b('0x26'),_0x8cbf7b('0xe'),this[_0x8cbf7b('0x2f')][_0x7f2cbd['uniqueid']]),ami[_0x8cbf7b('0x4')](_0x8cbf7b('0x38'),this[_0x8cbf7b('0x2f')][_0x7f2cbd[_0x8cbf7b('0x33')]])));}catch(_0x3564e0){logger[_0x8cbf7b('0x21')](_0x8cbf7b('0x36'),util['inspect'](_0x3564e0,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x51d2cb('0x2a')][_0x51d2cb('0x4a')]=function(_0x1b1684){const _0x2a1522=_0x51d2cb;try{this['isNotNull'](_0x1b1684)&&(this[_0x2a1522('0x2f')][_0x1b1684[_0x2a1522('0x33')]]&&(this[_0x2a1522('0x2f')][_0x1b1684[_0x2a1522('0x33')]][_0x2a1522('0x50')]=_0x1b1684[_0x2a1522('0x50')],_0x1b1684[_0x2a1522('0x50')]===_0x2a1522('0x44')&&(this['channels'][_0x1b1684['uniqueid']]['connectedlinenum']=_0x1b1684[_0x2a1522('0x1c')],this[_0x2a1522('0x2f')][_0x1b1684['uniqueid']][_0x2a1522('0x13')]=_0x1b1684[_0x2a1522('0x13')],this[_0x2a1522('0x2f')][_0x1b1684[_0x2a1522('0x33')]][_0x2a1522('0x3')]=moment()[_0x2a1522('0x6')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x2a1522('0x2f')][_0x1b1684['uniqueid']][_0x2a1522('0x2')]=_0x2a1522('0x37'),ami[_0x2a1522('0x4')](_0x2a1522('0x10'),this[_0x2a1522('0x2f')][_0x1b1684[_0x2a1522('0x33')]])),this[_0x2a1522('0x4')](_0x2a1522('0x26'),_0x2a1522('0xe'),this[_0x2a1522('0x2f')][_0x1b1684[_0x2a1522('0x33')]])));}catch(_0x31be05){logger[_0x2a1522('0x21')](_0x2a1522('0x1a'),util[_0x2a1522('0x4e')](_0x31be05,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x51d2cb('0x2a')][_0x51d2cb('0x3a')]=function(_0x83ae91){const _0x22d322=_0x51d2cb;try{this[_0x22d322('0x30')](_0x83ae91)&&(this[_0x22d322('0x2c')](_0x83ae91[_0x22d322('0x33')],_[_0x22d322('0x7')](_0x83ae91[_0x22d322('0x0')])[0x0],_0x83ae91[_0x22d322('0x40')]),this[_0x22d322('0x30')](_0x83ae91[_0x22d322('0x0')])&&this[_0x22d322('0x30')](_0x83ae91[_0x22d322('0x0')][_0x22d322('0x53')])&&(_[_0x22d322('0xf')](this['channels'][_0x83ae91[_0x22d322('0x33')]])&&(this[_0x22d322('0x2f')][_0x83ae91[_0x22d322('0x33')]]={'routeId':_0x83ae91['value'],'variables':this[_0x22d322('0x2e')][_0x83ae91[_0x22d322('0x33')]]},this[_0x22d322('0x4')](_0x22d322('0x26'),_0x22d322('0xe'),this[_0x22d322('0x2f')][_0x83ae91['uniqueid']]))));}catch(_0x5de928){logger['error'](_0x22d322('0x19'),util[_0x22d322('0x4e')](_0x5de928,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x51d2cb('0x2a')][_0x51d2cb('0x2c')]=function(_0x22441a,_0x4d947b,_0x55b720){const _0xc61832=_0x51d2cb,_0x52e5d1=[_0xc61832('0x9'),_0xc61832('0x4d'),_0xc61832('0x41'),'rtpaudioqosjitterbridged',_0xc61832('0x39'),_0xc61832('0x20'),_0xc61832('0x2b'),'rtpaudioqosrttbridged','sipcallid',_0xc61832('0xa'),_0xc61832('0xd'),_0xc61832('0x4c'),_0xc61832('0x1e'),_0xc61832('0x3d'),_0xc61832('0x18'),_0xc61832('0x47'),_0xc61832('0x43'),_0xc61832('0x24'),_0xc61832('0x1d')];!_[_0xc61832('0x29')](_0x4d947b)&&!_[_0xc61832('0x31')](_0x52e5d1,_0x4d947b)&&(_['isUndefined'](this[_0xc61832('0x2e')][_0x22441a])&&(this[_0xc61832('0x2e')][_0x22441a]={}),this['variables'][_0x22441a][_0x4d947b]=_0x55b720);},VoiceDialReport[_0x51d2cb('0x2a')][_0x51d2cb('0x1b')]=function(_0x86515c){const _0x5f4fbf=_0x51d2cb;try{this[_0x5f4fbf('0x30')](_0x86515c)&&(this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]]&&(this['channels'][_0x86515c[_0x5f4fbf('0x33')]][_0x5f4fbf('0x8')]=moment()[_0x5f4fbf('0x6')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x5f4fbf('0x2f')][_0x86515c['uniqueid']][_0x5f4fbf('0x4f')]=moment(this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]][_0x5f4fbf('0x8')])[_0x5f4fbf('0x46')](this[_0x5f4fbf('0x2f')][_0x86515c['uniqueid']][_0x5f4fbf('0x48')],'seconds'),this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]][_0x5f4fbf('0x2')]=_0x5f4fbf('0x3e'),this[_0x5f4fbf('0x22')][_0x5f4fbf('0x2d')]+=0x1,this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]]['answertime']&&(this[_0x5f4fbf('0x22')][_0x5f4fbf('0x35')]+=0x1,this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]]['holdtime']=moment(this['channels'][_0x86515c['uniqueid']]['answertime'])[_0x5f4fbf('0x46')](this['channels'][_0x86515c['uniqueid']][_0x5f4fbf('0x48')],_0x5f4fbf('0x12')),this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]][_0x5f4fbf('0x54')]=moment(this['channels'][_0x86515c[_0x5f4fbf('0x33')]][_0x5f4fbf('0x8')])[_0x5f4fbf('0x46')](this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]][_0x5f4fbf('0x3')],_0x5f4fbf('0x12')),this[_0x5f4fbf('0x22')][_0x5f4fbf('0x4b')]+=this['channels'][_0x86515c['uniqueid']]['holdtime']||0x0,this[_0x5f4fbf('0x22')][_0x5f4fbf('0x49')]+=this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]][_0x5f4fbf('0x54')]),this['outbound']['sumDuration']+=this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]][_0x5f4fbf('0x4f')],ami['emit']('custom:voiceDialReport',this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]]),ami['emit']('custom:dialend',this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]]),this['emit'](_0x5f4fbf('0x26'),_0x5f4fbf('0x25'),this[_0x5f4fbf('0x22')]),logger[_0x5f4fbf('0x28')](_0x5f4fbf('0x42'),JSON[_0x5f4fbf('0x23')](this['channels'][_0x86515c['uniqueid']])),this['emit'](_0x5f4fbf('0x26'),'voice_outbound_channel:remove',this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]]),delete this[_0x5f4fbf('0x2f')][_0x86515c[_0x5f4fbf('0x33')]]),this[_0x5f4fbf('0x2e')][_0x86515c[_0x5f4fbf('0x33')]]&&delete this[_0x5f4fbf('0x2e')][_0x86515c[_0x5f4fbf('0x33')]]);}catch(_0x5d0c30){logger['error'](_0x5f4fbf('0x11'),util['inspect'](_0x5d0c30,{'showHidden':![],'depth':null}));}},module[_0x51d2cb('0x14')]=VoiceDialReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceQueueReport.js b/server/services/ami/report/voiceQueueReport.js index 500b64e..26e57ea 100644 --- a/server/services/ami/report/voiceQueueReport.js +++ b/server/services/ami/report/voiceQueueReport.js @@ -1 +1 @@ -const a1097_0x5f2f=['queuecallercomplete','Interval','util','queueReports','startsWith','queuecallerexit','emitVoiceQueueChannelRemove','originalposition','transfertype','loopQueueShow','type','../model/queueReport','countBy','linkedid','addVariable','syncQueueCallerLeave','undefined','variables','lastAssignedTo','isNil','syncQueueCallerJoin','TIMEOUT','queue','local/','callers','toNumber','origtransfereruniqueid','queuesummary','enqueue','reason','assigned','queuecallerleave','transfereeuniqueid','../../../config/logger','clearQueueReport','switch','waiting','queuecallerjoinAt','sequence','syncVarSet','[syncQueueCallerLeave][VoiceQueueReport]','transferuniqueid','finally','custom:voiceQueueReport','transferexten','bind','ATTENDEDTRANSFER','syncMusicOnHoldStop','timeout','YYYY-MM-DD\x20HH:mm:ss','syncMusicOnHoldStart','emitVoiceQueueSummary','syncQueueCallerAbandon','total','toLowerCase','varset','Trunk','voiceQueues','queues','connectedlinename','inspect','toUpperCase','ami','clearZombieChannels','rtpaudioqoslossbridged','rtpaudioqos','[syncAgentConnect][VoiceQueueReport]','ATTENDED','Action','strategy','queueposition','custom:queuecallerabandon','[queues]','queuesummarycomplete','transfer','length','error','../../../rediscache','[syncAgentComplete][VoiceQueueReport]','context','queuecallerexitAt','queuecallerleaveAt','agents','sipuri','[syncQueueSummary][VoiceQueueReport]','fullybooted','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','loopQueueSummary','syncQueueSummaryComplete','sumHoldTime','position','variable','catch','rtpaudioqosrttbridged','info','EXITWITHKEY','merge','last','holdtime','transfertargetuniqueid','../ami','md5','COMPLETED','rtpaudioqosrtt','transfererchannel','CONTINUE','[syncMusicOnHoldStop][VoiceQueueReport]','lastevent','flagQueueSummary','originated','memberinterface','agentcomplete','channels','syncQueueSummary','queuecallercompleteAt','channel','exports','abandoned','voice_queue:save','tail','[syncAttendedTransfer][VoiceQueueReport]','queuestatus','attendedtransfer','secondtransfereruniqueid','BLIND','queuecallerabandonAt','unmanaged','inbound','agentconnect','format','sumDuration','FORWARDTRANSFER','syncBlindTransfer','rtpaudioqosjitterbridged','answered','isEmpty','[FullyBooted]\x20clear\x20realtime','voice:queue:%s','membercalls','rtpaudioqosloss','loggedin','seconds','syncHangup','musiconholdstart','keys','loggedIn','custom:timeout','origtransfererexten','prototype','queuecallerexitreason','musiconholdstop','emitVoiceQueueChannelSave','ABANDONED','rtpaudioqosjitter','isNotNull','membername','blindtransfer','status','isUndefined','campaigns','active','syncAgentComplete','queueStatusComplete','[syncHangup][VoiceQueueReport]','sipcallid','talking','memberrealtime','secondtransfererexten','includes','mohstarttime','[syncBlindTransfer][VoiceQueueReport]','COMPLETEDBYAGENT','pTalking','connectedlinenum','name','stringify','queuecallerabandon','[syncQueueCallerAbandon][VoiceQueueReport]','count','available','hangup','uniqueid','value','milliseconds','voice_queue_channel:save','emit','diff','message','syncAttendedTransfer'];(function(_0x6eec46,_0x5f2f9b){const _0x50cd98=function(_0x1ff5cc){while(--_0x1ff5cc){_0x6eec46['push'](_0x6eec46['shift']());}};_0x50cd98(++_0x5f2f9b);}(a1097_0x5f2f,0x16a));const a1097_0x50cd=function(_0x6eec46,_0x5f2f9b){_0x6eec46=_0x6eec46-0x0;let _0x50cd98=a1097_0x5f2f[_0x6eec46];return _0x50cd98;};const _0x45b539=a1097_0x50cd;'use strict';const _=require('lodash'),moment=require('moment'),util=require(_0x45b539('0x12')),md5=require(_0x45b539('0x75')),logger=require(_0x45b539('0x31'))(_0x45b539('0x4e')),ami=require(_0x45b539('0x74')),QueueReport=require(_0x45b539('0x1b')),{getSocket}=require(_0x45b539('0x5d')),io=getSocket(),Sequence=function(){};Sequence[_0x45b539('0xa4')][_0x45b539('0x2c')]=function(_0x1ff5cc){const _0x56cc72=_0x45b539;this[_0x56cc72('0x87')]=this['tail']?this['tail'][_0x56cc72('0x3a')](_0x1ff5cc):_0x1ff5cc();};function VoiceQueueReport(_0x102e9b){const _0x527543=_0x45b539;this[_0x527543('0x36')]=new Sequence(),this[_0x527543('0x13')]={},this[_0x527543('0x62')]=_0x102e9b[_0x527543('0x62')],this[_0x527543('0x80')]=_0x102e9b['queueChannels'],this[_0x527543('0x49')]=_0x102e9b['voiceQueues'],this['flagQueueSummary']=!![],this[_0x527543('0xaf')]=_0x102e9b['campaigns'],this[_0x527543('0x21')]={},ami['on'](_0x527543('0x2b'),this['syncQueueSummary']['bind'](this)),ami['on'](_0x527543('0x59'),this[_0x527543('0x68')]['bind'](this)),ami['on']('queuecallerjoin',this[_0x527543('0x24')]['bind'](this)),ami['on']('queuecallerabandon',this[_0x527543('0x44')]['bind'](this)),ami['on'](_0x527543('0x2f'),this[_0x527543('0x1f')]['bind'](this)),ami['on'](_0x527543('0x7f'),this[_0x527543('0xb1')]['bind'](this)),ami['on'](_0x527543('0x90'),this['syncAgentConnect'][_0x527543('0x3d')](this)),ami['on'](_0x527543('0x47'),this[_0x527543('0x37')][_0x527543('0x3d')](this)),ami['on'](_0x527543('0x7'),this[_0x527543('0x9e')][_0x527543('0x3d')](this)),ami['on'](_0x527543('0x65'),this['syncFullyBooted'][_0x527543('0x3d')](this)),ami['on'](_0x527543('0x9f'),this[_0x527543('0x42')]['bind'](this)),ami['on'](_0x527543('0xa6'),this[_0x527543('0x3f')][_0x527543('0x3d')](this)),ami['on'](_0x527543('0x8a'),this[_0x527543('0xf')][_0x527543('0x3d')](this)),ami['on'](_0x527543('0xac'),this[_0x527543('0x94')][_0x527543('0x3d')](this)),this[_0x527543('0x67')](),this[_0x527543('0x19')]();}function clearChannels(_0x4348d5){const _0x667ab6=_0x45b539;if(!_['isEmpty'](_0x4348d5))for(const _0x5425c2 in _0x4348d5){typeof _0x4348d5[_0x5425c2]!==_0x667ab6('0x20')&&delete _0x4348d5[_0x5425c2];}}function clearCampaigns(_0x216c02){const _0xdb520c=_0x45b539;if(!_[_0xdb520c('0x97')](_0x216c02))for(const _0x50db63 in _0x216c02){typeof _0x216c02[_0x50db63]!==_0xdb520c('0x20')&&(_0x216c02[_0x50db63][_0xdb520c('0x7d')]=0x0);}}function clearVoiceQueues(_0x2afc8b){const _0x1687eb=_0x45b539;if(!_[_0x1687eb('0x97')](_0x2afc8b))for(const _0xb38d3 in _0x2afc8b){typeof _0x2afc8b[_0xb38d3]!=='undefined'&&(_0x2afc8b[_0xb38d3]['originated']=0x0,_0x2afc8b[_0xb38d3][_0x1687eb('0xb5')]=0x0,_0x2afc8b[_0xb38d3][_0x1687eb('0xbc')]=0x0,_0x2afc8b[_0xb38d3][_0x1687eb('0x34')]=0x0,_0x2afc8b[_0xb38d3][_0x1687eb('0xb2')]=!![]);}}function clearAgentBooked(_0x314b70){const _0x3ed983=_0x45b539;if(!_[_0x3ed983('0x97')](_0x314b70))for(const _0x393d96 in _0x314b70){typeof _0x314b70[_0x393d96]!==_0x3ed983('0x20')&&(_0x314b70[_0x393d96]['unlockRR']=!![]);}}VoiceQueueReport['prototype'][_0x45b539('0x4f')]=function(){const _0x2d7ca3=_0x45b539,_0x1ba90d=this;for(const _0x3e63ee in this[_0x2d7ca3('0x80')]){typeof this[_0x2d7ca3('0x80')][_0x3e63ee]!=='undefined'&&!this[_0x2d7ca3('0x80')][_0x3e63ee][_0x2d7ca3('0x33')]&&this[_0x2d7ca3('0x36')][_0x2d7ca3('0x2c')](function(){const _0x15072c=_0x2d7ca3;if(!_[_0x15072c('0x23')](_0x1ba90d[_0x15072c('0x80')][_0x3e63ee]))return ami['Action']({'action':_0x15072c('0xad'),'channel':_0x1ba90d[_0x15072c('0x80')][_0x3e63ee]['channel']})[_0x15072c('0x6c')](function(_0x1dd50c){const _0xc3f1a3=_0x15072c;_0x1dd50c[_0xc3f1a3('0xe')]==='No\x20such\x20channel'&&setTimeout(function(){const _0x5c6e96=_0xc3f1a3;_0x1ba90d[_0x5c6e96('0x80')][_0x3e63ee]&&(delete _0x1ba90d[_0x5c6e96('0x80')][_0x3e63ee],logger[_0x5c6e96('0x5c')]('[voiceQueueReport][checkChannel]',_0x3e63ee)),_0x1ba90d[_0x5c6e96('0x13')][_0x3e63ee]&&(delete _0x1ba90d[_0x5c6e96('0x13')][_0x3e63ee],logger['error']('[voiceQueueReport][checkQueueReport]',_0x3e63ee)),_0x1ba90d[_0x5c6e96('0x21')][_0x3e63ee]&&(delete _0x1ba90d[_0x5c6e96('0x21')][_0x3e63ee],logger[_0x5c6e96('0x5c')]('[voiceQueueReport][checkVariables]',_0x3e63ee));},0x1f40);});});}},VoiceQueueReport['prototype']['syncFullyBooted']=function(){const _0x2b1e3e=_0x45b539;logger[_0x2b1e3e('0x5c')](_0x2b1e3e('0x98')),clearChannels(this[_0x2b1e3e('0x80')]),this[_0x2b1e3e('0x32')](this['queueReports']),clearAgentBooked(this['agents']),clearVoiceQueues(this[_0x2b1e3e('0x49')]),clearCampaigns(this[_0x2b1e3e('0xaf')]);},VoiceQueueReport['prototype'][_0x45b539('0x32')]=function(_0x27ee9d){const _0x1ed83a=_0x45b539,_0x20b190=this;if(!_['isEmpty'](_0x27ee9d))for(const _0x18f6b9 in _0x27ee9d){typeof _0x27ee9d[_0x18f6b9]!==_0x1ed83a('0x20')&&(_0x20b190[_0x1ed83a('0x16')](_0x27ee9d[_0x18f6b9]),delete _0x27ee9d[_0x18f6b9]);}};function loggerCatch(_0x327202){return function(_0x5ee9aa){const _0x883b79=a1097_0x50cd;logger['error'](_0x327202,util[_0x883b79('0x4c')](_0x5ee9aa,{'showHidden':![],'depth':null}));};}VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0xc')]=function(_0x579e43,_0x1fb368,_0x8da83d){io['to'](_0x579e43)['emit'](_0x1fb368,_0x8da83d);},VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0xa7')]=function(_0x31bd1d){const _0x25e3ce=_0x45b539;this[_0x25e3ce('0xc')](util['format'](_0x25e3ce('0x99'),_0x31bd1d[_0x25e3ce('0x1')]),_0x25e3ce('0xb'),_0x31bd1d);},VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0x16')]=function(_0x431d64){const _0x2c20e4=_0x45b539;logger[_0x2c20e4('0x6e')](_0x2c20e4('0x66'),JSON[_0x2c20e4('0x2')](_0x431d64)),this[_0x2c20e4('0xc')](util[_0x2c20e4('0x91')]('voice:queue:%s',_0x431d64['name']),'voice_queue_channel:remove',_0x431d64);},VoiceQueueReport[_0x45b539('0xa4')]['emitVoiceQueueSummary']=function(_0x3a037b){const _0x2b1911=_0x45b539;if(_0x3a037b[_0x2b1911('0x1a')]===_0x2b1911('0x8f')){const _0x3c82db={'id':_0x3a037b['id'],'name':_0x3a037b[_0x2b1911('0x1')],'strategy':_0x3a037b[_0x2b1911('0x55')],'answered':_0x3a037b[_0x2b1911('0x96')],'available':_0x3a037b[_0x2b1911('0x6')],'loggedIn':_0x3a037b[_0x2b1911('0xa1')],'pTalking':_0x3a037b[_0x2b1911('0xbc')],'sumBillable':_0x3a037b['sumBillable'],'sumDuration':_0x3a037b[_0x2b1911('0x92')],'sumHoldTime':_0x3a037b[_0x2b1911('0x69')]||0x0,'talking':_0x3a037b[_0x2b1911('0xb5')],'total':_0x3a037b[_0x2b1911('0x45')],'type':_0x3a037b[_0x2b1911('0x1a')],'unmanaged':_0x3a037b['unmanaged'],'abandoned':_0x3a037b[_0x2b1911('0x85')],'waiting':_0x3a037b['waiting']};_0x3a037b[_0x2b1911('0x48')]&&(_0x3c82db[_0x2b1911('0x48')]={'id':_0x3a037b[_0x2b1911('0x48')]['id'],'name':_0x3a037b[_0x2b1911('0x48')][_0x2b1911('0x1')],'active':_0x3a037b['Trunk'][_0x2b1911('0xb0')],'callerid':_0x3a037b[_0x2b1911('0x48')]['callerid']});_0x3a037b[_0x2b1911('0x11')]&&(_0x3c82db[_0x2b1911('0x11')]={'id':_0x3a037b[_0x2b1911('0x11')]['id'],'name':_0x3a037b[_0x2b1911('0x11')]['name']});const _0x86ad4=md5(JSON[_0x2b1911('0x2')](_0x3c82db));_0x3a037b[_0x2b1911('0x75')]!==_0x86ad4&&(_0x3a037b['md5']=_0x86ad4,this[_0x2b1911('0xc')](util[_0x2b1911('0x91')]('voice:queue:%s',_0x3c82db[_0x2b1911('0x1')]),_0x2b1911('0x86'),_0x3c82db));}},VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0xaa')]=function(_0x45aa3d){return _0x45aa3d!==null&&!_['isUndefined'](_0x45aa3d);},VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0x19')]=function(){const _0x43ae3d=this;setInterval(function(){const _0x75ea20=a1097_0x50cd;_0x43ae3d[_0x75ea20('0x4f')](),ami[_0x75ea20('0x54')]({'action':_0x75ea20('0x4a')})['catch'](loggerCatch(_0x75ea20('0x58')));},0x2710);},VoiceQueueReport[_0x45b539('0xa4')]['loopQueueSummary']=function(){const _0x492d79=this;setInterval(function(){const _0x234c8f=a1097_0x50cd;if(_0x492d79[_0x234c8f('0x7c')])return ami[_0x234c8f('0x54')]({'action':_0x234c8f('0x2b')})['then'](function(){const _0x36d80b=_0x234c8f;_0x492d79[_0x36d80b('0x7c')]=![];})[_0x234c8f('0x6c')](loggerCatch('[queuesummary]'));},0x3e8);},VoiceQueueReport['prototype'][_0x45b539('0x81')]=function(_0x5d25ec){const _0x3049c0=_0x45b539;try{if(this[_0x3049c0('0xaa')](_0x5d25ec)&&this[_0x3049c0('0xaa')](_0x5d25ec['queue'])){if(this[_0x3049c0('0x49')][_0x5d25ec['queue']]){const _0x86e074=_[_0x3049c0('0x1c')](this['channels'],_0x3049c0('0x26'))[_0x5d25ec[_0x3049c0('0x26')]]||0x0,_0x2a284b=_0x86e074-_0x5d25ec[_0x3049c0('0x28')];(this[_0x3049c0('0x49')][_0x5d25ec[_0x3049c0('0x26')]][_0x3049c0('0x34')]!==_[_0x3049c0('0x29')](_0x5d25ec[_0x3049c0('0x28')])||this[_0x3049c0('0x49')][_0x5d25ec[_0x3049c0('0x26')]][_0x3049c0('0xa1')]!==_['toNumber'](_0x5d25ec[_0x3049c0('0x9c')])||this[_0x3049c0('0x49')][_0x5d25ec[_0x3049c0('0x26')]]['available']!==_[_0x3049c0('0x29')](_0x5d25ec[_0x3049c0('0x6')])||this[_0x3049c0('0x49')][_0x5d25ec[_0x3049c0('0x26')]][_0x3049c0('0xb5')]!==_0x2a284b)&&(this[_0x3049c0('0x49')][_0x5d25ec[_0x3049c0('0x26')]]['waiting']=_['toNumber'](_0x5d25ec[_0x3049c0('0x28')]),this[_0x3049c0('0x49')][_0x5d25ec[_0x3049c0('0x26')]][_0x3049c0('0xa1')]=_[_0x3049c0('0x29')](_0x5d25ec['loggedin']),this[_0x3049c0('0x49')][_0x5d25ec['queue']][_0x3049c0('0x6')]=_['toNumber'](_0x5d25ec[_0x3049c0('0x6')]),this[_0x3049c0('0x49')][_0x5d25ec['queue']][_0x3049c0('0xb5')]=_0x2a284b>0x0?_0x2a284b:0x0,this[_0x3049c0('0x49')][_0x5d25ec[_0x3049c0('0x26')]][_0x3049c0('0xb5')]=this[_0x3049c0('0x49')][_0x5d25ec['queue']][_0x3049c0('0xb5')]>_[_0x3049c0('0x29')](_0x5d25ec[_0x3049c0('0x9c')])?_['toNumber'](_0x5d25ec[_0x3049c0('0x9c')]):this[_0x3049c0('0x49')][_0x5d25ec[_0x3049c0('0x26')]]['talking'],this[_0x3049c0('0x43')](this[_0x3049c0('0x49')][_0x5d25ec['queue']])),ami['emit']('custom:queuesummary',this['voiceQueues'][_0x5d25ec[_0x3049c0('0x26')]]);}}}catch(_0x3cb4a3){logger['error'](_0x3049c0('0x64'),util['inspect'](_0x3cb4a3,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0x68')]=function(){this['flagQueueSummary']=!![];},VoiceQueueReport[_0x45b539('0xa4')]['syncNewExten']=function(){},VoiceQueueReport[_0x45b539('0xa4')]['syncQueueCallerJoin']=function(_0x37201e){const _0x13cd93=_0x45b539;try{if(this[_0x13cd93('0xaa')](_0x37201e)){_[_0x13cd93('0xae')](this[_0x13cd93('0x13')][_0x37201e[_0x13cd93('0x8')]])&&(this[_0x13cd93('0x13')][_0x37201e[_0x13cd93('0x8')]]=[],this[_0x13cd93('0x80')][_0x37201e[_0x13cd93('0x8')]]={});const _0x1b05be=new QueueReport();_0x1b05be[_0x13cd93('0x1')]=_0x37201e[_0x13cd93('0x26')],_0x1b05be[_0x13cd93('0x1a')]=this[_0x13cd93('0x49')][_0x1b05be[_0x13cd93('0x1')]]&&this[_0x13cd93('0x49')][_0x1b05be[_0x13cd93('0x1')]][_0x13cd93('0x1a')]?this[_0x13cd93('0x49')][_0x1b05be['name']][_0x13cd93('0x1a')]||_0x13cd93('0x8f'):_0x13cd93('0x8f'),_0x1b05be[_0x13cd93('0x26')]=_0x37201e['queue'],_0x1b05be[_0x13cd93('0x35')]=moment()[_0x13cd93('0x91')](_0x13cd93('0x41')),_0x1b05be[_0x13cd93('0x6a')]=_0x37201e['position'],_0x1b05be[_0x13cd93('0x5')]=_0x37201e[_0x13cd93('0x5')],_[_0x13cd93('0x70')](_0x1b05be,_['pick'](_0x37201e,_[_0x13cd93('0xa0')](_0x1b05be))),this[_0x13cd93('0x13')][_0x37201e[_0x13cd93('0x8')]]['push'](_0x1b05be),this[_0x13cd93('0x80')][_0x37201e[_0x13cd93('0x8')]]=_0x1b05be,this[_0x13cd93('0xa7')](_0x1b05be);}}catch(_0x2d8c26){logger[_0x13cd93('0x5c')]('[syncQueueCallerJoin][VoiceQueueReport]',util[_0x13cd93('0x4c')](_0x2d8c26,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0x44')]=function(_0x133be0){const _0x5ec691=_0x45b539;try{if(this[_0x5ec691('0xaa')](_0x133be0)){if(this['queueReports'][_0x133be0['uniqueid']]){const _0x24eaec=_[_0x5ec691('0x71')](this[_0x5ec691('0x13')][_0x133be0['uniqueid']]);_0x24eaec[_0x5ec691('0x10')]=![],_0x24eaec[_0x5ec691('0x82')]=null,_0x24eaec[_0x5ec691('0x72')]=_0x133be0[_0x5ec691('0x72')],_0x24eaec[_0x5ec691('0x17')]=_0x133be0[_0x5ec691('0x17')],_0x24eaec[_0x5ec691('0x3')]=!![],_0x24eaec[_0x5ec691('0x8d')]=moment()[_0x5ec691('0x91')](_0x5ec691('0x41')),_0x24eaec[_0x5ec691('0xa5')]=_0x5ec691('0xa8'),_0x24eaec[_0x5ec691('0x22')]=null,this[_0x5ec691('0x80')][_0x133be0[_0x5ec691('0x8')]]=_0x24eaec,this[_0x5ec691('0x16')](_0x24eaec);}}}catch(_0x42b1ca){logger['error'](_0x5ec691('0x4'),util['inspect'](_0x42b1ca,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x45b539('0xa4')]['syncQueueCallerLeave']=function(_0x130e57){const _0xbe8f99=_0x45b539;try{if(this[_0xbe8f99('0xaa')](_0x130e57)){if(this['queueReports'][_0x130e57[_0xbe8f99('0x8')]]){const _0x4e6a9c=_[_0xbe8f99('0x71')](this['queueReports'][_0x130e57[_0xbe8f99('0x8')]]);_0x4e6a9c[_0xbe8f99('0x61')]=moment()[_0xbe8f99('0x91')](_0xbe8f99('0x41')),_0x4e6a9c[_0xbe8f99('0x0')]=_0x130e57[_0xbe8f99('0x0')],_0x4e6a9c[_0xbe8f99('0x4b')]=_0x130e57['connectedlinename'],this[_0xbe8f99('0x80')][_0x130e57[_0xbe8f99('0x8')]]=_0x4e6a9c,this[_0xbe8f99('0xa7')](_0x4e6a9c);}}}catch(_0x475d4b){logger[_0xbe8f99('0x5c')](_0xbe8f99('0x38'),util[_0xbe8f99('0x4c')](_0x475d4b,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x45b539('0xa4')]['syncAgentConnect']=function(_0x18dfba){const _0x476a41=_0x45b539;try{if(this[_0x476a41('0xaa')](_0x18dfba)){if(this[_0x476a41('0x13')][_0x18dfba['uniqueid']]){const _0x671ad3=_[_0x476a41('0x71')](this['queueReports'][_0x18dfba[_0x476a41('0x8')]]);_0x671ad3[_0x476a41('0x10')]=!![],_0x671ad3[_0x476a41('0xa5')]=_0x476a41('0xbb');}}}catch(_0x20f2d1){logger[_0x476a41('0x5c')](_0x476a41('0x52'),util[_0x476a41('0x4c')](_0x20f2d1,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0xb1')]=function(_0x310f75){const _0x1db599=_0x45b539;try{if(this[_0x1db599('0xaa')](_0x310f75)){if(this['queueReports'][_0x310f75['uniqueid']]){const _0x41b90e=_[_0x1db599('0x71')](this[_0x1db599('0x13')][_0x310f75[_0x1db599('0x8')]]);_0x41b90e[_0x1db599('0x3')]=![],_0x41b90e[_0x1db599('0x8d')]=null,_0x41b90e[_0x1db599('0x2e')]=!![],_0x41b90e[_0x1db599('0x22')]=_0x310f75[_0x1db599('0xab')],_0x41b90e[_0x1db599('0x72')]=_0x310f75[_0x1db599('0x72')],_0x41b90e[_0x1db599('0x10')]=!![],_0x41b90e[_0x1db599('0x15')]=![],_0x41b90e[_0x1db599('0x60')]=null;if(!_0x41b90e[_0x1db599('0x5a')]){if(_0x310f75['reason']=='transfer')_0x41b90e[_0x1db599('0xa5')]=_0x1db599('0x76');else{if(_[_0x1db599('0x14')](_0x310f75[_0x1db599('0x83')][_0x1db599('0x46')](),_0x1db599('0x27'))){if(this[_0x1db599('0x13')][_0x310f75[_0x1db599('0x1d')]]){const _0x564884=_[_0x1db599('0x71')](this[_0x1db599('0x13')][_0x310f75[_0x1db599('0x1d')]]);_0x564884['queuecallercomplete']=![],_0x564884[_0x1db599('0x15')]=!![],_0x564884['queuecallerexitAt']=moment(_0x41b90e[_0x1db599('0x35')])['add'](_0x310f75[_0x1db599('0x72')],_0x1db599('0x9d'))[_0x1db599('0x91')](_0x1db599('0x41')),_0x564884[_0x1db599('0xa5')]=_0x1db599('0x93'),_0x564884[_0x1db599('0x5a')]=!![],_0x564884['transfertype']='FORWARD',_0x564884[_0x1db599('0x3c')]=_0x310f75['destexten'],_0x564884[_0x1db599('0x39')]=_0x310f75[_0x1db599('0x8')];const _0x489088=this[_0x1db599('0x13')][_0x310f75[_0x1db599('0x1d')]];this[_0x1db599('0x13')][_0x310f75[_0x1db599('0x1d')]]=this['queueReports'][_0x310f75[_0x1db599('0x8')]],this[_0x1db599('0x13')][_0x310f75[_0x1db599('0x8')]]=_0x489088;}}else _0x41b90e[_0x1db599('0xa5')]='COMPLETEDBY'+_0x310f75[_0x1db599('0x2d')][_0x1db599('0x4d')]();}}this['channels'][_0x310f75[_0x1db599('0x8')]]=_0x41b90e,this[_0x1db599('0x16')](_0x41b90e);}}}catch(_0x229c84){logger['error'](_0x1db599('0x5e'),util['inspect'](_0x229c84,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x45b539('0xa4')]['syncVarSet']=function(_0x4b82c3){const _0x35df8f=_0x45b539;try{if(this[_0x35df8f('0xaa')](_0x4b82c3)){this[_0x35df8f('0x1e')](_0x4b82c3[_0x35df8f('0x8')],_[_0x35df8f('0xa0')](_0x4b82c3[_0x35df8f('0x6b')])[0x0],_0x4b82c3['value']);if(this[_0x35df8f('0x13')][_0x4b82c3[_0x35df8f('0x8')]]){const _0x2aeccc=_[_0x35df8f('0x71')](this['queueReports'][_0x4b82c3[_0x35df8f('0x8')]]);if(_0x2aeccc){if(this[_0x35df8f('0xaa')](_0x4b82c3[_0x35df8f('0x6b')])&&this['isNotNull'](_0x4b82c3[_0x35df8f('0x6b')][_0x35df8f('0x89')])){switch(_0x4b82c3[_0x35df8f('0x9')]){case _0x35df8f('0x79'):_0x2aeccc[_0x35df8f('0x15')]=![],_0x2aeccc[_0x35df8f('0x60')]=null;break;case _0x35df8f('0x25'):_0x2aeccc[_0x35df8f('0x7b')]=_0x35df8f('0x40'),ami[_0x35df8f('0xc')](_0x35df8f('0xa2'),_0x2aeccc);break;default:_0x2aeccc[_0x35df8f('0x15')]=!![],_0x2aeccc['queuecallerexitAt']=moment()[_0x35df8f('0x91')](_0x35df8f('0x41')),_0x2aeccc[_0x35df8f('0x61')]=moment()['format'](_0x35df8f('0x41'));}_0x2aeccc[_0x35df8f('0x3')]=![],_0x2aeccc[_0x35df8f('0x8d')]=null,_0x2aeccc[_0x35df8f('0xa5')]=_0x4b82c3['value'],this[_0x35df8f('0x80')][_0x4b82c3[_0x35df8f('0x8')]]=_0x2aeccc,this['emitVoiceQueueChannelRemove'](_0x2aeccc);}else this[_0x35df8f('0xaa')](_0x4b82c3[_0x35df8f('0x6b')])&&this[_0x35df8f('0xaa')](_0x4b82c3[_0x35df8f('0x6b')][_0x35df8f('0x56')])&&(!_0x2aeccc[_0x35df8f('0x3')]&&(_0x2aeccc[_0x35df8f('0x15')]=!![],_0x2aeccc[_0x35df8f('0x60')]=moment()[_0x35df8f('0x91')](_0x35df8f('0x41')),_0x2aeccc[_0x35df8f('0xa5')]=_0x35df8f('0x6f'),_0x2aeccc[_0x35df8f('0x61')]=moment()['format'](_0x35df8f('0x41')),this[_0x35df8f('0x80')][_0x4b82c3[_0x35df8f('0x8')]]=_0x2aeccc));_0x2aeccc[_0x35df8f('0x21')]=this[_0x35df8f('0x21')][_0x4b82c3['uniqueid']];}}}}catch(_0x17d6ba){logger[_0x35df8f('0x5c')]('[syncVarSet][VoiceQueueReport]',util[_0x35df8f('0x4c')](_0x17d6ba,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x45b539('0xa4')]['addVariable']=function(_0x5dfe2a,_0x363049,_0x44c189){const _0x39f850=_0x45b539,_0x2013e5=[_0x39f850('0x51'),'rtpaudioqosbridged',_0x39f850('0xa9'),_0x39f850('0x95'),_0x39f850('0x9b'),_0x39f850('0x50'),_0x39f850('0x77'),_0x39f850('0x6d'),_0x39f850('0xb4'),_0x39f850('0x63'),'bridgepeer','bridgepvtcallid',_0x39f850('0x9a'),'memberdynamic',_0x39f850('0x7e'),'memberlastcall',_0x39f850('0xab'),'memberpenalty',_0x39f850('0xb6')];!_['isNil'](_0x363049)&&!_[_0x39f850('0xb8')](_0x2013e5,_0x363049)&&(_[_0x39f850('0xae')](this[_0x39f850('0x21')][_0x5dfe2a])&&(this['variables'][_0x5dfe2a]={}),this[_0x39f850('0x21')][_0x5dfe2a][_0x363049]=_0x44c189);},VoiceQueueReport[_0x45b539('0xa4')][_0x45b539('0x9e')]=function(_0x32b7d4){const _0x2a7a0c=_0x45b539;try{if(this[_0x2a7a0c('0xaa')](_0x32b7d4)){if(this[_0x2a7a0c('0x13')][_0x32b7d4[_0x2a7a0c('0x8')]]){for(let _0x365832=0x0,_0x35afd2={};_0x3658320x0?_0x35298e:0x0,this[_0x1ac35f('0x0')][_0x302db7[_0x1ac35f('0x20')]][_0x1ac35f('0x9a')]=this['voiceQueues'][_0x302db7[_0x1ac35f('0x20')]][_0x1ac35f('0x9a')]>_['toNumber'](_0x302db7[_0x1ac35f('0x4d')])?_[_0x1ac35f('0xbc')](_0x302db7[_0x1ac35f('0x4d')]):this[_0x1ac35f('0x0')][_0x302db7[_0x1ac35f('0x20')]][_0x1ac35f('0x9a')],this['emitVoiceQueueSummary'](this[_0x1ac35f('0x0')][_0x302db7[_0x1ac35f('0x20')]])),ami[_0x1ac35f('0x3c')](_0x1ac35f('0x65'),this[_0x1ac35f('0x0')][_0x302db7[_0x1ac35f('0x20')]]);}}}catch(_0xf5ffde){logger[_0x1ac35f('0x5f')]('[syncQueueSummary][VoiceQueueReport]',util[_0x1ac35f('0x1a')](_0xf5ffde,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f8c5b('0x27')][_0x1f8c5b('0x2b')]=function(){const _0x140207=_0x1f8c5b;this[_0x140207('0x15')]=!![];},VoiceQueueReport['prototype'][_0x1f8c5b('0x35')]=function(){},VoiceQueueReport[_0x1f8c5b('0x27')][_0x1f8c5b('0x8d')]=function(_0xfbdd0e){const _0x2bc8a3=_0x1f8c5b;try{if(this[_0x2bc8a3('0xa2')](_0xfbdd0e)){_[_0x2bc8a3('0x28')](this[_0x2bc8a3('0x62')][_0xfbdd0e[_0x2bc8a3('0x9f')]])&&(this['queueReports'][_0xfbdd0e['uniqueid']]=[],this[_0x2bc8a3('0xa7')][_0xfbdd0e[_0x2bc8a3('0x9f')]]={});const _0x2b813b=new QueueReport();_0x2b813b['name']=_0xfbdd0e[_0x2bc8a3('0x20')],_0x2b813b[_0x2bc8a3('0x2f')]=this['voiceQueues'][_0x2b813b[_0x2bc8a3('0x96')]]&&this[_0x2bc8a3('0x0')][_0x2b813b[_0x2bc8a3('0x96')]][_0x2bc8a3('0x2f')]?this['voiceQueues'][_0x2b813b['name']][_0x2bc8a3('0x2f')]||_0x2bc8a3('0x7d'):_0x2bc8a3('0x7d'),_0x2b813b[_0x2bc8a3('0x20')]=_0xfbdd0e[_0x2bc8a3('0x20')],_0x2b813b['queuecallerjoinAt']=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x2b813b[_0x2bc8a3('0x94')]=_0xfbdd0e[_0x2bc8a3('0x94')],_0x2b813b['count']=_0xfbdd0e['count'],_[_0x2bc8a3('0xaf')](_0x2b813b,_[_0x2bc8a3('0x47')](_0xfbdd0e,_[_0x2bc8a3('0x33')](_0x2b813b))),this[_0x2bc8a3('0x62')][_0xfbdd0e[_0x2bc8a3('0x9f')]][_0x2bc8a3('0x77')](_0x2b813b),this[_0x2bc8a3('0xa7')][_0xfbdd0e[_0x2bc8a3('0x9f')]]=_0x2b813b,this[_0x2bc8a3('0xc')](_0x2b813b);}}catch(_0x2be2ee){logger[_0x2bc8a3('0x5f')]('[syncQueueCallerJoin][VoiceQueueReport]',util[_0x2bc8a3('0x1a')](_0x2be2ee,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x1f8c5b('0x74')]=function(_0x276832){const _0x5a0da8=_0x1f8c5b;try{if(this[_0x5a0da8('0xa2')](_0x276832)){if(this[_0x5a0da8('0x62')][_0x276832['uniqueid']]){const _0x54e17e=_[_0x5a0da8('0x4f')](this['queueReports'][_0x276832[_0x5a0da8('0x9f')]]);_0x54e17e['queuecallercomplete']=![],_0x54e17e[_0x5a0da8('0x3f')]=null,_0x54e17e[_0x5a0da8('0x21')]=_0x276832[_0x5a0da8('0x21')],_0x54e17e['originalposition']=_0x276832['originalposition'],_0x54e17e[_0x5a0da8('0x8a')]=!![],_0x54e17e[_0x5a0da8('0x93')]=moment()[_0x5a0da8('0xd')](_0x5a0da8('0x79')),_0x54e17e[_0x5a0da8('0xb8')]=_0x5a0da8('0x2e'),_0x54e17e[_0x5a0da8('0x6c')]=null,this[_0x5a0da8('0xa7')][_0x276832[_0x5a0da8('0x9f')]]=_0x54e17e,this[_0x5a0da8('0x4a')](_0x54e17e);}}}catch(_0x3d8116){logger['error']('[syncQueueCallerAbandon][VoiceQueueReport]',util['inspect'](_0x3d8116,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f8c5b('0x27')][_0x1f8c5b('0x32')]=function(_0x40b34d){const _0x595e13=_0x1f8c5b;try{if(this['isNotNull'](_0x40b34d)){if(this[_0x595e13('0x62')][_0x40b34d[_0x595e13('0x9f')]]){const _0x5c3cad=_[_0x595e13('0x4f')](this[_0x595e13('0x62')][_0x40b34d[_0x595e13('0x9f')]]);_0x5c3cad[_0x595e13('0xa1')]=moment()['format'](_0x595e13('0x79')),_0x5c3cad['connectedlinenum']=_0x40b34d['connectedlinenum'],_0x5c3cad[_0x595e13('0x57')]=_0x40b34d[_0x595e13('0x57')],this[_0x595e13('0xa7')][_0x40b34d[_0x595e13('0x9f')]]=_0x5c3cad,this[_0x595e13('0xc')](_0x5c3cad);}}}catch(_0x4978e5){logger[_0x595e13('0x5f')](_0x595e13('0xb'),util[_0x595e13('0x1a')](_0x4978e5,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f8c5b('0x27')][_0x1f8c5b('0x54')]=function(_0x3ae20d){const _0x1baac9=_0x1f8c5b;try{if(this[_0x1baac9('0xa2')](_0x3ae20d)){if(this[_0x1baac9('0x62')][_0x3ae20d[_0x1baac9('0x9f')]]){const _0x408f85=_['last'](this['queueReports'][_0x3ae20d['uniqueid']]);_0x408f85[_0x1baac9('0x14')]=!![],_0x408f85['queuecallerexitreason']=_0x1baac9('0x55');}}}catch(_0x1ccf63){logger[_0x1baac9('0x5f')](_0x1baac9('0x1e'),util[_0x1baac9('0x1a')](_0x1ccf63,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f8c5b('0x27')][_0x1f8c5b('0xe')]=function(_0x13d0e0){const _0x28a74c=_0x1f8c5b;try{if(this['isNotNull'](_0x13d0e0)){if(this[_0x28a74c('0x62')][_0x13d0e0[_0x28a74c('0x9f')]]){const _0x5472ec=_[_0x28a74c('0x4f')](this[_0x28a74c('0x62')][_0x13d0e0[_0x28a74c('0x9f')]]);_0x5472ec[_0x28a74c('0x8a')]=![],_0x5472ec[_0x28a74c('0x93')]=null,_0x5472ec['assigned']=!![],_0x5472ec['lastAssignedTo']=_0x13d0e0[_0x28a74c('0xb2')],_0x5472ec[_0x28a74c('0x21')]=_0x13d0e0[_0x28a74c('0x21')],_0x5472ec[_0x28a74c('0x14')]=!![],_0x5472ec[_0x28a74c('0x8b')]=![],_0x5472ec[_0x28a74c('0xa9')]=null;if(!_0x5472ec[_0x28a74c('0x7e')]){if(_0x13d0e0[_0x28a74c('0x48')]==_0x28a74c('0x7e'))_0x5472ec[_0x28a74c('0xb8')]='COMPLETED';else{if(_[_0x28a74c('0x5')](_0x13d0e0[_0x28a74c('0x89')][_0x28a74c('0x9d')](),_0x28a74c('0x50'))){if(this[_0x28a74c('0x62')][_0x13d0e0['linkedid']]){const _0xcc9727=_[_0x28a74c('0x4f')](this[_0x28a74c('0x62')][_0x13d0e0[_0x28a74c('0x38')]]);_0xcc9727[_0x28a74c('0x14')]=![],_0xcc9727[_0x28a74c('0x8b')]=!![],_0xcc9727['queuecallerexitAt']=moment(_0x5472ec['queuecallerjoinAt'])[_0x28a74c('0x60')](_0x13d0e0[_0x28a74c('0x21')],_0x28a74c('0xbd'))['format'](_0x28a74c('0x79')),_0xcc9727[_0x28a74c('0xb8')]=_0x28a74c('0x95'),_0xcc9727['transfer']=!![],_0xcc9727[_0x28a74c('0x72')]='FORWARD',_0xcc9727['transferexten']=_0x13d0e0['destexten'],_0xcc9727[_0x28a74c('0x88')]=_0x13d0e0['uniqueid'];const _0x2bbb57=this[_0x28a74c('0x62')][_0x13d0e0['linkedid']];this['queueReports'][_0x13d0e0['linkedid']]=this[_0x28a74c('0x62')][_0x13d0e0[_0x28a74c('0x9f')]],this['queueReports'][_0x13d0e0[_0x28a74c('0x9f')]]=_0x2bbb57;}}else _0x5472ec[_0x28a74c('0xb8')]=_0x28a74c('0x6b')+_0x13d0e0[_0x28a74c('0x48')][_0x28a74c('0x4c')]();}}this[_0x28a74c('0xa7')][_0x13d0e0['uniqueid']]=_0x5472ec,this['emitVoiceQueueChannelRemove'](_0x5472ec);}}}catch(_0x4346da){logger[_0x28a74c('0x5f')](_0x28a74c('0x5a'),util[_0x28a74c('0x1a')](_0x4346da,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype']['syncVarSet']=function(_0x206f99){const _0xfe15b=_0x1f8c5b;try{if(this['isNotNull'](_0x206f99)){this[_0xfe15b('0x3d')](_0x206f99['uniqueid'],_['keys'](_0x206f99[_0xfe15b('0x83')])[0x0],_0x206f99[_0xfe15b('0x3b')]);if(this[_0xfe15b('0x62')][_0x206f99[_0xfe15b('0x9f')]]){const _0x47c085=_[_0xfe15b('0x4f')](this[_0xfe15b('0x62')][_0x206f99['uniqueid']]);if(_0x47c085){if(this['isNotNull'](_0x206f99[_0xfe15b('0x83')])&&this[_0xfe15b('0xa2')](_0x206f99[_0xfe15b('0x83')][_0xfe15b('0x61')])){switch(_0x206f99['value']){case _0xfe15b('0x7'):_0x47c085[_0xfe15b('0x8b')]=![],_0x47c085['queuecallerexitAt']=null;break;case _0xfe15b('0x36'):_0x47c085['lastevent']=_0xfe15b('0x6f'),ami[_0xfe15b('0x3c')](_0xfe15b('0x9e'),_0x47c085);break;default:_0x47c085[_0xfe15b('0x8b')]=!![],_0x47c085[_0xfe15b('0xa9')]=moment()[_0xfe15b('0xd')](_0xfe15b('0x79')),_0x47c085['queuecallerleaveAt']=moment()[_0xfe15b('0xd')]('YYYY-MM-DD\x20HH:mm:ss');}_0x47c085[_0xfe15b('0x8a')]=![],_0x47c085[_0xfe15b('0x93')]=null,_0x47c085[_0xfe15b('0xb8')]=_0x206f99['value'],this['channels'][_0x206f99[_0xfe15b('0x9f')]]=_0x47c085,this['emitVoiceQueueChannelRemove'](_0x47c085);}else this[_0xfe15b('0xa2')](_0x206f99[_0xfe15b('0x83')])&&this['isNotNull'](_0x206f99[_0xfe15b('0x83')]['queueposition'])&&(!_0x47c085[_0xfe15b('0x8a')]&&(_0x47c085[_0xfe15b('0x8b')]=!![],_0x47c085[_0xfe15b('0xa9')]=moment()[_0xfe15b('0xd')](_0xfe15b('0x79')),_0x47c085[_0xfe15b('0xb8')]='EXITWITHKEY',_0x47c085['queuecallerleaveAt']=moment()[_0xfe15b('0xd')](_0xfe15b('0x79')),this[_0xfe15b('0xa7')][_0x206f99[_0xfe15b('0x9f')]]=_0x47c085));_0x47c085[_0xfe15b('0x16')]=this[_0xfe15b('0x16')][_0x206f99[_0xfe15b('0x9f')]];}}}}catch(_0x1258f9){logger['error']('[syncVarSet][VoiceQueueReport]',util['inspect'](_0x1258f9,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f8c5b('0x27')][_0x1f8c5b('0x3d')]=function(_0x77875,_0x18437a,_0x16c329){const _0x34ca31=_0x1f8c5b,_0x62aa72=['rtpaudioqos','rtpaudioqosbridged',_0x34ca31('0x7c'),_0x34ca31('0x44'),_0x34ca31('0x68'),'rtpaudioqoslossbridged',_0x34ca31('0x78'),_0x34ca31('0x82'),_0x34ca31('0x8e'),_0x34ca31('0x84'),_0x34ca31('0x9c'),_0x34ca31('0x64'),_0x34ca31('0x53'),_0x34ca31('0x99'),_0x34ca31('0x67'),_0x34ca31('0xae'),_0x34ca31('0xb2'),_0x34ca31('0xac'),_0x34ca31('0x69')];!_[_0x34ca31('0x1')](_0x18437a)&&!_[_0x34ca31('0x10')](_0x62aa72,_0x18437a)&&(_[_0x34ca31('0x28')](this[_0x34ca31('0x16')][_0x77875])&&(this[_0x34ca31('0x16')][_0x77875]={}),this['variables'][_0x77875][_0x18437a]=_0x16c329);},VoiceQueueReport[_0x1f8c5b('0x27')][_0x1f8c5b('0x13')]=function(_0x3c6b4d){const _0x5316e3=_0x1f8c5b;try{if(this[_0x5316e3('0xa2')](_0x3c6b4d)){if(this[_0x5316e3('0x62')][_0x3c6b4d[_0x5316e3('0x9f')]]){for(let _0x4fe489=0x0,_0x2d1016={};_0x4fe489=0x0?moment(_0x53f6a5[_0x43c1ab('0xc')])[_0x43c1ab('0x1')](_0x53f6a5['starttime'],_0x43c1ab('0x8')):null,'data1':_0x43c1ab('0x10'),'data2':_0x53f6a5[_0x43c1ab('0x1b')],'data3':_0x53f6a5[_0x43c1ab('0xe')],'data4':_0x53f6a5['dialstring']||null,'role':_0x43c1ab('0x2'),'internal':_0x53f6a5[_0x43c1ab('0x1b')]?_[_0x43c1ab('0x9')](_0x53f6a5['accountcode']):undefined,'uniqueid':_0x53f6a5[_0x43c1ab('0x18')]},'log':'CreateMemberReport'});}; \ No newline at end of file +const a1118_0x1f12=['../client','isNil','queuecallerexitAt','TALKING','voice','starttime','dialstring','voiceQueueReport','outbound','CreateMemberReport','diff','interface','moment','endtime','queuecallercompleteAt','calleridnum','seconds','queuecallerleaveAt','queue','accountcode','lastAssignedTo','voiceDialReport','toNumber','agent','Request','lodash','exten'];(function(_0x4900aa,_0x1f123e){const _0x1f8e7b=function(_0x31cf4c){while(--_0x31cf4c){_0x4900aa['push'](_0x4900aa['shift']());}};_0x1f8e7b(++_0x1f123e);}(a1118_0x1f12,0x15f));const a1118_0x1f8e=function(_0x4900aa,_0x1f123e){_0x4900aa=_0x4900aa-0x0;let _0x1f8e7b=a1118_0x1f12[_0x4900aa];return _0x1f8e7b;};const _0x307e29=a1118_0x1f8e;'use strict';const moment=require(_0x307e29('0xc')),_=require(_0x307e29('0x19')),util=require('util'),client=require(_0x307e29('0x0'));exports[_0x307e29('0x7')]=function(_0x31cf4c){const _0x10a16d=_0x307e29,_0x2679b5=_0x31cf4c[_0x10a16d('0xe')]||_0x31cf4c[_0x10a16d('0x2')];return client[_0x10a16d('0x18')](_0x10a16d('0x9'),{'body':{'channel':_0x10a16d('0x4'),'membername':_0x31cf4c['lastAssignedTo'],'interface':_[_0x10a16d('0x1')](_0x31cf4c[_0x10a16d('0xb')])?util['format']('SIP/%s',_0x31cf4c[_0x10a16d('0x14')]):_0x31cf4c['interface'],'type':_0x10a16d('0x3'),'enterAt':_0x31cf4c[_0x10a16d('0x11')],'exitAt':_0x2679b5,'duration':moment(_0x2679b5)['diff'](_0x31cf4c['queuecallerleaveAt'],_0x10a16d('0x10')),'data1':'inbound','data2':_0x31cf4c[_0x10a16d('0xf')],'data3':_0x31cf4c[_0x10a16d('0x1a')],'data4':null,'data5':_0x31cf4c[_0x10a16d('0x12')],'role':_0x10a16d('0x17'),'internal':_0x31cf4c['accountcode']?_[_0x10a16d('0x16')](_0x31cf4c['accountcode']):undefined,'uniqueid':_0x31cf4c['uniqueid']},'log':'CreateMemberReport'});},exports[_0x307e29('0x15')]=function(_0x1dfec9){const _0x2a6627=_0x307e29;return client['Request'](_0x2a6627('0x9'),{'body':{'channel':_0x2a6627('0x4'),'membername':_0x1dfec9['membername'],'interface':_0x1dfec9[_0x2a6627('0xb')],'type':_0x2a6627('0x3'),'enterAt':_0x1dfec9[_0x2a6627('0x5')],'exitAt':_0x1dfec9[_0x2a6627('0xd')],'duration':moment(_0x1dfec9['endtime'])[_0x2a6627('0xa')](_0x1dfec9[_0x2a6627('0x5')],_0x2a6627('0x10'))>=0x0?moment(_0x1dfec9[_0x2a6627('0xd')])[_0x2a6627('0xa')](_0x1dfec9[_0x2a6627('0x5')],'seconds'):null,'data1':_0x2a6627('0x8'),'data2':_0x1dfec9[_0x2a6627('0x13')],'data3':_0x1dfec9['exten'],'data4':_0x1dfec9[_0x2a6627('0x6')]||null,'role':_0x2a6627('0x17'),'internal':_0x1dfec9[_0x2a6627('0x13')]?_[_0x2a6627('0x16')](_0x1dfec9['accountcode']):undefined,'uniqueid':_0x1dfec9['uniqueid']},'log':_0x2a6627('0x9')});}; \ No newline at end of file diff --git a/server/services/ami/rpc/template.js b/server/services/ami/rpc/template.js index cda411c..d08f44a 100644 --- a/server/services/ami/rpc/template.js +++ b/server/services/ami/rpc/template.js @@ -1 +1 @@ -const a1119_0x18ac=['html','name','GetTemplate','Request','getTemplates'];(function(_0x108872,_0x18aced){const _0x2d9c92=function(_0x5ace7c){while(--_0x5ace7c){_0x108872['push'](_0x108872['shift']());}};_0x2d9c92(++_0x18aced);}(a1119_0x18ac,0x152));const a1119_0x2d9c=function(_0x108872,_0x18aced){_0x108872=_0x108872-0x0;let _0x2d9c92=a1119_0x18ac[_0x108872];return _0x2d9c92;};const _0x5219c5=a1119_0x2d9c;'use strict';const client=require('../client');exports[_0x5219c5('0x1')]=function(){return function(){const _0x30f6a2=a1119_0x2d9c;return client[_0x30f6a2('0x0')](_0x30f6a2('0x4'),{'options':{'raw':!![],'attributes':['id',_0x30f6a2('0x3'),_0x30f6a2('0x2')]},'log':'GetTemplate'});};}; \ No newline at end of file +const a1119_0x4bfd=['Request','GetTemplate','getTemplates','name','html','../client'];(function(_0x308bba,_0x4bfda3){const _0x782e39=function(_0x216a60){while(--_0x216a60){_0x308bba['push'](_0x308bba['shift']());}};_0x782e39(++_0x4bfda3);}(a1119_0x4bfd,0xde));const a1119_0x782e=function(_0x308bba,_0x4bfda3){_0x308bba=_0x308bba-0x0;let _0x782e39=a1119_0x4bfd[_0x308bba];return _0x782e39;};const _0x568038=a1119_0x782e;'use strict';const client=require(_0x568038('0x5'));exports[_0x568038('0x2')]=function(){return function(){const _0x34532f=a1119_0x782e;return client[_0x34532f('0x0')](_0x34532f('0x1'),{'options':{'raw':!![],'attributes':['id',_0x34532f('0x3'),_0x34532f('0x4')]},'log':_0x34532f('0x1')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/trigger.js b/server/services/ami/rpc/trigger.js index 1fe3b1d..5a6eac7 100644 --- a/server/services/ami/rpc/trigger.js +++ b/server/services/ami/rpc/trigger.js @@ -1 +1 @@ -const a1120_0xbec7=['AllConditions','Actions','data6','../client','Request','status','data5','field','getTriggers','data4','data2','name','data7','Condition','GetTrigger','action','data1','operator','value'];(function(_0xbcdcb6,_0xbec76e){const _0x403329=function(_0x3fad9b){while(--_0x3fad9b){_0xbcdcb6['push'](_0xbcdcb6['shift']());}};_0x403329(++_0xbec76e);}(a1120_0xbec7,0xf9));const a1120_0x4033=function(_0xbcdcb6,_0xbec76e){_0xbcdcb6=_0xbcdcb6-0x0;let _0x403329=a1120_0xbec7[_0xbcdcb6];return _0x403329;};const _0x5bedd0=a1120_0x4033;'use strict';const client=require(_0x5bedd0('0x1'));exports[_0x5bedd0('0x6')]=function(){return function(){const _0x5713ca=a1120_0x4033;return client[_0x5713ca('0x2')](_0x5713ca('0xc'),{'options':{'raw':![],'attributes':['id',_0x5713ca('0x9'),'channel',_0x5713ca('0x3')],'include':[{'model':_0x5713ca('0xb'),'as':_0x5713ca('0x11'),'attributes':['id',_0x5713ca('0x5'),'operator',_0x5713ca('0x10')]},{'model':_0x5713ca('0xb'),'as':'AnyConditions','attributes':['id','field',_0x5713ca('0xf'),_0x5713ca('0x10')]},{'model':'Action','as':_0x5713ca('0x12'),'attributes':['id',_0x5713ca('0xd'),_0x5713ca('0xe'),_0x5713ca('0x8'),'data3',_0x5713ca('0x7'),_0x5713ca('0x4'),_0x5713ca('0x0'),_0x5713ca('0xa')]}]},'log':_0x5713ca('0xc')});};}; \ No newline at end of file +const a1120_0x2d90=['name','Actions','Action','data2','channel','data6','data1','data3','../client','Request','operator','GetTrigger','Condition','field','value','data4','getTriggers','AnyConditions','status'];(function(_0x126d64,_0x2d9020){const _0x505b64=function(_0x11f1d4){while(--_0x11f1d4){_0x126d64['push'](_0x126d64['shift']());}};_0x505b64(++_0x2d9020);}(a1120_0x2d90,0xec));const a1120_0x505b=function(_0x126d64,_0x2d9020){_0x126d64=_0x126d64-0x0;let _0x505b64=a1120_0x2d90[_0x126d64];return _0x505b64;};const _0x325abc=a1120_0x505b;'use strict';const client=require(_0x325abc('0x0'));exports[_0x325abc('0x8')]=function(){return function(){const _0x13374c=a1120_0x505b;return client[_0x13374c('0x1')](_0x13374c('0x3'),{'options':{'raw':![],'attributes':['id',_0x13374c('0xb'),_0x13374c('0xf'),_0x13374c('0xa')],'include':[{'model':_0x13374c('0x4'),'as':'AllConditions','attributes':['id','field',_0x13374c('0x2'),_0x13374c('0x6')]},{'model':_0x13374c('0x4'),'as':_0x13374c('0x9'),'attributes':['id',_0x13374c('0x5'),'operator',_0x13374c('0x6')]},{'model':_0x13374c('0xd'),'as':_0x13374c('0xc'),'attributes':['id','action',_0x13374c('0x11'),_0x13374c('0xe'),_0x13374c('0x12'),_0x13374c('0x7'),'data5',_0x13374c('0x10'),'data7']}]},'log':_0x13374c('0x3')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/trunk.js b/server/services/ami/rpc/trunk.js index 80973d9..1b4d611 100644 --- a/server/services/ami/rpc/trunk.js +++ b/server/services/ami/rpc/trunk.js @@ -1 +1 @@ -const a1121_0x44e7=['registry','getTrunks','name','GetTrunk'];(function(_0xef4422,_0x44e751){const _0x12d604=function(_0x5c3f1c){while(--_0x5c3f1c){_0xef4422['push'](_0xef4422['shift']());}};_0x12d604(++_0x44e751);}(a1121_0x44e7,0x1d5));const a1121_0x12d6=function(_0xef4422,_0x44e751){_0xef4422=_0xef4422-0x0;let _0x12d604=a1121_0x44e7[_0xef4422];return _0x12d604;};const _0x4cef11=a1121_0x12d6;'use strict';const client=require('../client');exports[_0x4cef11('0x0')]=function(){return function(){const _0x39623a=a1121_0x12d6;return client['Request'](_0x39623a('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x39623a('0x1'),_0x39623a('0x3')]},'log':_0x39623a('0x2')});};}; \ No newline at end of file +const a1121_0x5998=['../client','registry','getTrunks','name','GetTrunk'];(function(_0xb58bd0,_0x59988e){const _0x516cbe=function(_0x18e8ad){while(--_0x18e8ad){_0xb58bd0['push'](_0xb58bd0['shift']());}};_0x516cbe(++_0x59988e);}(a1121_0x5998,0x7c));const a1121_0x516c=function(_0xb58bd0,_0x59988e){_0xb58bd0=_0xb58bd0-0x0;let _0x516cbe=a1121_0x5998[_0xb58bd0];return _0x516cbe;};const _0x57ba9f=a1121_0x516c;'use strict';const client=require(_0x57ba9f('0x1'));exports[_0x57ba9f('0x3')]=function(){return function(){const _0x1d3ce1=a1121_0x516c;return client['Request'](_0x1d3ce1('0x0'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x1d3ce1('0x4'),_0x1d3ce1('0x2')]},'log':_0x1d3ce1('0x0')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/user.js b/server/services/ami/rpc/user.js index 09d5748..afd1c38 100644 --- a/server/services/ami/rpc/user.js +++ b/server/services/ami/rpc/user.js @@ -1 +1 @@ -const a1122_0xa3ca=['voicePause','telephone','savePause','name','lastPauseAt','Request','interface','UnpauseUser','pauseType','../client','GetUser','online','internal','getAgents','fullname','ShowUser','saveUnpause','agent','accountcode','email','mobile','getTelephones','lastLoginAt','getAgent'];(function(_0x507974,_0xa3cac2){const _0x2ae5c6=function(_0x4e1124){while(--_0x4e1124){_0x507974['push'](_0x507974['shift']());}};_0x2ae5c6(++_0xa3cac2);}(a1122_0xa3ca,0x1cf));const a1122_0x2ae5=function(_0x507974,_0xa3cac2){_0x507974=_0x507974-0x0;let _0x2ae5c6=a1122_0xa3ca[_0x507974];return _0x2ae5c6;};const _0x5a5a14=a1122_0x2ae5;'use strict';const client=require(_0x5a5a14('0x2'));exports[_0x5a5a14('0x6')]=function(){return function(){const _0x22f47a=a1122_0x2ae5;return client['Request'](_0x22f47a('0x3'),{'options':{'raw':![],'where':{'role':'agent'},'attributes':['id',_0x22f47a('0x14'),_0x22f47a('0xc'),_0x22f47a('0xb'),_0x22f47a('0x7'),_0x22f47a('0x4'),'lastLoginAt',_0x22f47a('0x1'),'lastPauseAt',_0x22f47a('0x11'),'phone',_0x22f47a('0xd'),'interface']},'log':_0x22f47a('0x6')});};},exports['getTelephones']=function(){return function(){const _0x5560ae=a1122_0x2ae5;return client['Request']('GetUser',{'options':{'raw':!![],'where':{'role':_0x5560ae('0x12')},'attributes':['id',_0x5560ae('0x14'),_0x5560ae('0xb'),_0x5560ae('0x5')]},'log':_0x5560ae('0xe')});};},exports[_0x5a5a14('0x13')]=function(_0x4e1124,_0x4da989,_0x3c7596){const _0xcf7c9e=_0x5a5a14;return client[_0xcf7c9e('0x16')]('PauseUser',{'body':{'type':_0x4da989,'uniqueid':_0x3c7596},'options':{'where':{'id':_0x4e1124['id']}},'log':_0xcf7c9e('0x13')});},exports[_0x5a5a14('0x9')]=function(_0x252bd2){const _0x5f048b=_0x5a5a14;return client[_0x5f048b('0x16')](_0x5f048b('0x0'),{'body':{},'options':{'where':{'id':_0x252bd2['id']}},'log':_0x5f048b('0x13')});},exports[_0x5a5a14('0x10')]=function(_0x41b1b4){const _0x1b0097=_0x5a5a14;return client[_0x1b0097('0x16')](_0x1b0097('0x8'),{'options':{'raw':![],'where':{'role':_0x1b0097('0xa'),'id':_0x41b1b4},'attributes':['id',_0x1b0097('0x14'),'email','accountcode','fullname',_0x1b0097('0x4'),_0x1b0097('0xf'),_0x1b0097('0x1'),_0x1b0097('0x15'),'voicePause',_0x1b0097('0x17')]},'log':_0x1b0097('0x10')});}; \ No newline at end of file +const a1122_0xd1f3=['savePause','PauseUser','getTelephones','Request','GetUser','mobile','lastLoginAt','../client','lastPauseAt','internal','pauseType','fullname','online','name','accountcode','voicePause','phone','UnpauseUser','agent','email','getAgents','saveUnpause','getAgent'];(function(_0x3c79d7,_0xd1f35a){const _0x2bcee2=function(_0x465069){while(--_0x465069){_0x3c79d7['push'](_0x3c79d7['shift']());}};_0x2bcee2(++_0xd1f35a);}(a1122_0xd1f3,0x105));const a1122_0x2bce=function(_0x3c79d7,_0xd1f35a){_0x3c79d7=_0x3c79d7-0x0;let _0x2bcee2=a1122_0xd1f3[_0x3c79d7];return _0x2bcee2;};const _0x4c1200=a1122_0x2bce;'use strict';const client=require(_0x4c1200('0x16'));exports[_0x4c1200('0xc')]=function(){return function(){const _0xb240ef=a1122_0x2bce;return client['Request'](_0xb240ef('0x13'),{'options':{'raw':![],'where':{'role':'agent'},'attributes':['id',_0xb240ef('0x5'),_0xb240ef('0xb'),_0xb240ef('0x6'),_0xb240ef('0x3'),_0xb240ef('0x4'),_0xb240ef('0x15'),_0xb240ef('0x2'),_0xb240ef('0x0'),_0xb240ef('0x7'),_0xb240ef('0x8'),_0xb240ef('0x14'),'interface']},'log':_0xb240ef('0xc')});};},exports[_0x4c1200('0x11')]=function(){return function(){const _0x16c518=a1122_0x2bce;return client[_0x16c518('0x12')]('GetUser',{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id',_0x16c518('0x5'),_0x16c518('0x6'),_0x16c518('0x1')]},'log':_0x16c518('0x11')});};},exports[_0x4c1200('0xf')]=function(_0x465069,_0x4e11ff,_0x10c8af){const _0x1f443b=_0x4c1200;return client[_0x1f443b('0x12')](_0x1f443b('0x10'),{'body':{'type':_0x4e11ff,'uniqueid':_0x10c8af},'options':{'where':{'id':_0x465069['id']}},'log':_0x1f443b('0xf')});},exports[_0x4c1200('0xd')]=function(_0x9d096f){const _0x3ad3fa=_0x4c1200;return client[_0x3ad3fa('0x12')](_0x3ad3fa('0x9'),{'body':{},'options':{'where':{'id':_0x9d096f['id']}},'log':_0x3ad3fa('0xf')});},exports[_0x4c1200('0xe')]=function(_0x19ce93){const _0x1bdfc4=_0x4c1200;return client['Request']('ShowUser',{'options':{'raw':![],'where':{'role':_0x1bdfc4('0xa'),'id':_0x19ce93},'attributes':['id','name',_0x1bdfc4('0xb'),_0x1bdfc4('0x6'),_0x1bdfc4('0x3'),_0x1bdfc4('0x4'),_0x1bdfc4('0x15'),_0x1bdfc4('0x2'),_0x1bdfc4('0x0'),_0x1bdfc4('0x7'),'interface']},'log':_0x1bdfc4('0xe')});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceAgentReport.js b/server/services/ami/rpc/voiceAgentReport.js index a5f6f18..2231834 100644 --- a/server/services/ami/rpc/voiceAgentReport.js +++ b/server/services/ami/rpc/voiceAgentReport.js @@ -1 +1 @@ -const a1123_0x2bb2=['update','Request','../client','UpdateVoiceAgentReport','CreateVoiceAgentReport'];(function(_0x485800,_0x2bb2cc){const _0x410655=function(_0x5bfbed){while(--_0x5bfbed){_0x485800['push'](_0x485800['shift']());}};_0x410655(++_0x2bb2cc);}(a1123_0x2bb2,0x1de));const a1123_0x4106=function(_0x485800,_0x2bb2cc){_0x485800=_0x485800-0x0;let _0x410655=a1123_0x2bb2[_0x485800];return _0x410655;};const _0x2153d4=a1123_0x4106;'use strict';const client=require(_0x2153d4('0x4'));exports['create']=function(_0x5bfbed){const _0x5a1e72=_0x2153d4;return client[_0x5a1e72('0x3')](_0x5a1e72('0x1'),{'body':_0x5bfbed,'log':_0x5a1e72('0x1')});},exports[_0x2153d4('0x2')]=function(_0x2654fe,_0x5ac9e9,_0x4fc069){const _0x555f8c=_0x2153d4;return client[_0x555f8c('0x3')](_0x555f8c('0x0'),{'body':_0x2654fe,'options':{'where':{'uniqueid':_0x5ac9e9,'interface':_0x4fc069,'agentcomplete':!![]}},'log':_0x555f8c('0x0')});}; \ No newline at end of file +const a1123_0x53be=['create','update','Request','UpdateVoiceAgentReport','../client','CreateVoiceAgentReport'];(function(_0x5e8ad8,_0x53be55){const _0x479b90=function(_0x276b4d){while(--_0x276b4d){_0x5e8ad8['push'](_0x5e8ad8['shift']());}};_0x479b90(++_0x53be55);}(a1123_0x53be,0x120));const a1123_0x479b=function(_0x5e8ad8,_0x53be55){_0x5e8ad8=_0x5e8ad8-0x0;let _0x479b90=a1123_0x53be[_0x5e8ad8];return _0x479b90;};const _0x362149=a1123_0x479b;'use strict';const client=require(_0x362149('0x4'));exports[_0x362149('0x0')]=function(_0x276b4d){const _0x1ffc0b=_0x362149;return client[_0x1ffc0b('0x2')](_0x1ffc0b('0x5'),{'body':_0x276b4d,'log':_0x1ffc0b('0x5')});},exports[_0x362149('0x1')]=function(_0x58238c,_0x4b10c3,_0x2dc203){const _0x2b3291=_0x362149;return client['Request'](_0x2b3291('0x3'),{'body':_0x58238c,'options':{'where':{'uniqueid':_0x4b10c3,'interface':_0x2dc203,'agentcomplete':!![]}},'log':_0x2b3291('0x3')});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index 011ba10..838125f 100644 --- a/server/services/ami/rpc/voiceCallReport.js +++ b/server/services/ami/rpc/voiceCallReport.js @@ -1 +1 @@ -const a1124_0x3d51=['outbound','../client','disposition','GetVoiceCallReports','callerid','day','duration','CreateVoiceCallReport','calleridnum','YYYY-MM-DD\x20HH:mm:ss','create','Request','getVoiceCallReports','lodash','startOf','merge','context','DOCUMENTATION','GetVoiceCallReport','type','format'];(function(_0x590dbc,_0x3d5192){const _0xdf95b0=function(_0x1ff2b4){while(--_0x1ff2b4){_0x590dbc['push'](_0x590dbc['shift']());}};_0xdf95b0(++_0x3d5192);}(a1124_0x3d51,0x7a));const a1124_0xdf95=function(_0x590dbc,_0x3d5192){_0x590dbc=_0x590dbc-0x0;let _0xdf95b0=a1124_0x3d51[_0x590dbc];return _0xdf95b0;};const _0x569ecd=a1124_0xdf95;'use strict';const moment=require('moment'),_=require(_0x569ecd('0x11')),client=require(_0x569ecd('0x5'));exports[_0x569ecd('0xe')]=function(_0x1ff2b4){const _0x3fffa8=_0x569ecd;return client[_0x3fffa8('0xf')](_0x3fffa8('0xb'),{'body':_[_0x3fffa8('0x13')](_0x1ff2b4,{'source':_0x1ff2b4[_0x3fffa8('0xc')],'destinationcontext':_0x1ff2b4[_0x3fffa8('0x14')],'callerid':_0x1ff2b4[_0x3fffa8('0x8')],'amaflags':_0x3fffa8('0x0')}),'log':_0x3fffa8('0xb')});},exports[_0x569ecd('0x10')]=function(){return function(){const _0x5c315d=a1124_0xdf95;return client[_0x5c315d('0xf')](_0x5c315d('0x1'),{'options':{'where':{'type':[_0x5c315d('0x4')],'createdAt':{'$between':[moment()[_0x5c315d('0x12')]('day')[_0x5c315d('0x3')]('YYYY-MM-DD\x20HH:mm:ss'),moment()['endOf'](_0x5c315d('0x9'))['format'](_0x5c315d('0xd'))]}},'attributes':[_0x5c315d('0x2'),_0x5c315d('0x6'),_0x5c315d('0xa'),'billableseconds']},'log':_0x5c315d('0x7')});};}; \ No newline at end of file +const a1124_0x1470=['Request','moment','lodash','billableseconds','../client','GetVoiceCallReport','YYYY-MM-DD\x20HH:mm:ss','day','disposition','getVoiceCallReports','calleridnum','GetVoiceCallReports','format','outbound','CreateVoiceCallReport','create','type','duration','callerid'];(function(_0x120b5b,_0x1470b0){const _0x47e260=function(_0x111d8f){while(--_0x111d8f){_0x120b5b['push'](_0x120b5b['shift']());}};_0x47e260(++_0x1470b0);}(a1124_0x1470,0x72));const a1124_0x47e2=function(_0x120b5b,_0x1470b0){_0x120b5b=_0x120b5b-0x0;let _0x47e260=a1124_0x1470[_0x120b5b];return _0x47e260;};const _0x4dd591=a1124_0x47e2;'use strict';const moment=require(_0x4dd591('0x1')),_=require(_0x4dd591('0x2')),client=require(_0x4dd591('0x4'));exports[_0x4dd591('0xf')]=function(_0x111d8f){const _0x405f3e=_0x4dd591;return client[_0x405f3e('0x0')](_0x405f3e('0xe'),{'body':_['merge'](_0x111d8f,{'source':_0x111d8f[_0x405f3e('0xa')],'destinationcontext':_0x111d8f['context'],'callerid':_0x111d8f[_0x405f3e('0x12')],'amaflags':'DOCUMENTATION'}),'log':_0x405f3e('0xe')});},exports[_0x4dd591('0x9')]=function(){return function(){const _0x17a8c2=a1124_0x47e2;return client[_0x17a8c2('0x0')](_0x17a8c2('0x5'),{'options':{'where':{'type':[_0x17a8c2('0xd')],'createdAt':{'$between':[moment()['startOf'](_0x17a8c2('0x7'))[_0x17a8c2('0xc')](_0x17a8c2('0x6')),moment()['endOf']('day')[_0x17a8c2('0xc')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x17a8c2('0x10'),_0x17a8c2('0x8'),_0x17a8c2('0x11'),_0x17a8c2('0x3')]},'log':_0x17a8c2('0xb')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceDialReport.js b/server/services/ami/rpc/voiceDialReport.js index 5df2afe..6d5de00 100644 --- a/server/services/ami/rpc/voiceDialReport.js +++ b/server/services/ami/rpc/voiceDialReport.js @@ -1 +1 @@ -const a1125_0x8433=['Request','create','../client'];(function(_0x39f2eb,_0x8433a4){const _0x54d93f=function(_0x44a065){while(--_0x44a065){_0x39f2eb['push'](_0x39f2eb['shift']());}};_0x54d93f(++_0x8433a4);}(a1125_0x8433,0x1db));const a1125_0x54d9=function(_0x39f2eb,_0x8433a4){_0x39f2eb=_0x39f2eb-0x0;let _0x54d93f=a1125_0x8433[_0x39f2eb];return _0x54d93f;};const _0x5001e0=a1125_0x54d9;'use strict';const client=require(_0x5001e0('0x1'));exports[_0x5001e0('0x0')]=function(_0x44a065){const _0x22ead0=_0x5001e0;return client[_0x22ead0('0x2')]('CreateVoiceDialReport',{'body':_0x44a065,'log':'CreateVoiceDialReport'});}; \ No newline at end of file +const a1125_0x4007=['create','CreateVoiceDialReport','../client'];(function(_0x3e0c57,_0x40075b){const _0x6c29b3=function(_0x2580bb){while(--_0x2580bb){_0x3e0c57['push'](_0x3e0c57['shift']());}};_0x6c29b3(++_0x40075b);}(a1125_0x4007,0xfd));const a1125_0x6c29=function(_0x3e0c57,_0x40075b){_0x3e0c57=_0x3e0c57-0x0;let _0x6c29b3=a1125_0x4007[_0x3e0c57];return _0x6c29b3;};const _0x5ae22c=a1125_0x6c29;'use strict';const client=require(_0x5ae22c('0x1'));exports[_0x5ae22c('0x2')]=function(_0x2580bb){const _0x39414e=_0x5ae22c;return client['Request'](_0x39414e('0x0'),{'body':_0x2580bb,'log':_0x39414e('0x0')});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceExtension.js b/server/services/ami/rpc/voiceExtension.js index de27d90..b541b02 100644 --- a/server/services/ami/rpc/voiceExtension.js +++ b/server/services/ami/rpc/voiceExtension.js @@ -1 +1 @@ -const a1126_0x52c7=['getVoiceExtensions','exten','../client','Request'];(function(_0x52afe5,_0x52c7dd){const _0x3d418c=function(_0xacf52c){while(--_0xacf52c){_0x52afe5['push'](_0x52afe5['shift']());}};_0x3d418c(++_0x52c7dd);}(a1126_0x52c7,0x147));const a1126_0x3d41=function(_0x52afe5,_0x52c7dd){_0x52afe5=_0x52afe5-0x0;let _0x3d418c=a1126_0x52c7[_0x52afe5];return _0x3d418c;};const _0x520d7b=a1126_0x3d41;'use strict';const client=require(_0x520d7b('0x3'));exports[_0x520d7b('0x1')]=function(){return function(){const _0x21b4b6=a1126_0x3d41;return client[_0x21b4b6('0x0')]('GetVoiceExtension',{'options':{'raw':!![],'attributes':['id',_0x21b4b6('0x2'),'recordingFormat'],'where':{'VoiceExtensionId':null}},'log':_0x21b4b6('0x1')});};}; \ No newline at end of file +const a1126_0x3fa2=['Request','exten','GetVoiceExtension','recordingFormat','getVoiceExtensions'];(function(_0x4cc482,_0x3fa234){const _0x145dd3=function(_0x47a9e5){while(--_0x47a9e5){_0x4cc482['push'](_0x4cc482['shift']());}};_0x145dd3(++_0x3fa234);}(a1126_0x3fa2,0x157));const a1126_0x145d=function(_0x4cc482,_0x3fa234){_0x4cc482=_0x4cc482-0x0;let _0x145dd3=a1126_0x3fa2[_0x4cc482];return _0x145dd3;};const _0x59c7cd=a1126_0x145d;'use strict';const client=require('../client');exports[_0x59c7cd('0x1')]=function(){return function(){const _0x57c0d0=a1126_0x145d;return client[_0x57c0d0('0x2')](_0x57c0d0('0x4'),{'options':{'raw':!![],'attributes':['id',_0x57c0d0('0x3'),_0x57c0d0('0x0')],'where':{'VoiceExtensionId':null}},'log':_0x57c0d0('0x1')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueue.js b/server/services/ami/rpc/voiceQueue.js index 2a2a07f..cc5ce57 100644 --- a/server/services/ami/rpc/voiceQueue.js +++ b/server/services/ami/rpc/voiceQueue.js @@ -1 +1 @@ -const a1127_0x278b=['timeout','dialRecallInQueue','dialLimitQueue','dialAgiAfterHangupClient','dialPrefix','dialNoAnswerMaxRetry','dialDropMaxRetry','name','dialQueueProject','dialMachineMaxRetry','dialQueueOptions','dialBusyRetryFrequency','dialLimitChannel','dialCutDigit','dialPowerLevel','dialNoAnswerRetryFrequency','dialRandomLastDigitCallerIdNumber','dialDropRetryFrequency','dialPredictiveIntervalMinThreshold','dialTimezone','dialOriginateCallerIdNumber','dialPredictiveInterval','dialAMDGreeting','strategy','dialPredictiveOptimization','getVoiceQueues','dialCongestionRetryFrequency','TrunkBackup','dialBusyMaxRetry','dialNoSuchNumberMaxRetry','dialAbandonedMaxRetry','dialOriginateCallerIdName','dialRecallMeTimeout','Interval','callerid','active','dialAMDInitialSilence','dialAMDTotalAnalysisTime','Intervals','dialAMDMaximumNumberOfWords','dialGlobalMaxRetry','interval','mandatoryDispositionPause','GetVoiceQueue','dialCheckDuplicateType','dialQueueTimeout','dialMethod','dialQueueProject2','dialMachineRetryFrequency','dialAMDMaximumWordLength','dialOrderByScheduledAt','dialAgiAfterHangupAgent','type','Trunk','dialAMDSilenceThreshold','Request','acwTimeout','dialAMDActive','dialNoSuchNumberRetryFrequency','dialAMDAfterGreetingSilence','dialActive','Pause'];(function(_0x549761,_0x278b24){const _0x314081=function(_0x48942a){while(--_0x48942a){_0x549761['push'](_0x549761['shift']());}};_0x314081(++_0x278b24);}(a1127_0x278b,0xab));const a1127_0x3140=function(_0x549761,_0x278b24){_0x549761=_0x549761-0x0;let _0x314081=a1127_0x278b[_0x549761];return _0x314081;};const _0x50c9fa=a1127_0x3140;'use strict';const client=require('../client');exports[_0x50c9fa('0x28')]=function(){return function(){const _0x395860=a1127_0x3140;return client[_0x395860('0x8')](_0x395860('0x3a'),{'options':{'raw':![],'attributes':['id','name','acw',_0x395860('0x9'),'autopause','monitor_format',_0x395860('0x5'),_0x395860('0xd'),_0x395860('0x3d'),_0x395860('0x1b'),_0x395860('0x11'),_0x395860('0x1d'),_0x395860('0x27'),'dialPredictiveOptimizationPercentage',_0x395860('0x24'),_0x395860('0x2e'),_0x395860('0x23'),'dialOriginateTimeout',_0x395860('0x19'),_0x395860('0x3c'),_0x395860('0x17'),'dialCongestionMaxRetry',_0x395860('0x29'),_0x395860('0x2b'),_0x395860('0x1a'),_0x395860('0x14'),_0x395860('0x1e'),_0x395860('0x37'),_0x395860('0x22'),'dialGlobalInterval',_0x395860('0x13'),_0x395860('0x3b'),_0x395860('0xa'),_0x395860('0x33'),_0x395860('0x25'),_0x395860('0xc'),_0x395860('0x34'),'dialAMDMinWordLength','dialAMDBetweenWordsSilence',_0x395860('0x36'),_0x395860('0x7'),_0x395860('0x2'),_0x395860('0xf'),_0x395860('0x2f'),_0x395860('0x10'),_0x395860('0x3'),_0x395860('0x4'),_0x395860('0x12'),_0x395860('0x0'),'monitor_format',_0x395860('0x26'),_0x395860('0x1f'),_0x395860('0x1c'),_0x395860('0x2c'),_0x395860('0xb'),_0x395860('0x15'),_0x395860('0x20'),_0x395860('0x2d'),'dialAbandonedRetryFrequency',_0x395860('0x18'),_0x395860('0x1'),'dialAgentRejectMaxRetry','dialAgentRejectRetryFrequency','mandatoryDisposition','dialPredictiveIntervalMaxThreshold',_0x395860('0x21')],'include':[{'model':_0x395860('0x6'),'as':_0x395860('0x6'),'attributes':['id','name','callerid',_0x395860('0x32')]},{'model':_0x395860('0xe'),'as':_0x395860('0x39'),'attributes':['id',_0x395860('0x16')]},{'model':_0x395860('0x6'),'as':_0x395860('0x2a'),'attributes':['id',_0x395860('0x16'),_0x395860('0x31'),_0x395860('0x32')]},{'model':_0x395860('0x30'),'as':'Interval','attributes':['id',_0x395860('0x16')],'include':[{'model':_0x395860('0x30'),'as':_0x395860('0x35'),'attributes':['id',_0x395860('0x16'),_0x395860('0x38')]}]}]},'log':'getVoiceQueues'});};}; \ No newline at end of file +const a1127_0x2aed=['interval','dialQueueTimeout','dialDropRetryFrequency','autopause','Trunk','dialQueueOptions','dialOriginateCallerIdName','dialAMDTotalAnalysisTime','dialAMDInitialSilence','Pause','dialAMDAfterGreetingSilence','dialAMDMinWordLength','dialRecallMeTimeout','dialCheckDuplicateType','dialAbandonedMaxRetry','dialQueueProject2','dialNoSuchNumberMaxRetry','strategy','dialBusyRetryFrequency','dialAMDBetweenWordsSilence','dialCutDigit','getVoiceQueues','dialMachineRetryFrequency','dialPowerLevel','../client','TrunkBackup','dialPredictiveOptimization','dialGlobalMaxRetry','dialAgiAfterHangupClient','dialRecallInQueue','acwTimeout','dialLimitChannel','dialPrefix','dialPredictiveInterval','dialNoAnswerMaxRetry','name','dialCongestionMaxRetry','dialRandomLastDigitCallerIdNumber','dialOriginateTimeout','dialBusyMaxRetry','monitor_format','dialNoAnswerRetryFrequency','Intervals','acw','dialLimitQueue','dialAMDGreeting','dialAMDMaximumNumberOfWords','dialAMDMaximumWordLength','Interval','dialQueueProject','Request','dialGlobalInterval','dialTimezone','dialOriginateCallerIdNumber','mandatoryDisposition','callerid','dialActive','dialAbandonedRetryFrequency','dialPredictiveIntervalMinThreshold','dialAgentRejectRetryFrequency','dialOrderByScheduledAt','active'];(function(_0x53274d,_0x2aed24){const _0x5bb255=function(_0xa665e){while(--_0xa665e){_0x53274d['push'](_0x53274d['shift']());}};_0x5bb255(++_0x2aed24);}(a1127_0x2aed,0x1df));const a1127_0x5bb2=function(_0x53274d,_0x2aed24){_0x53274d=_0x53274d-0x0;let _0x5bb255=a1127_0x2aed[_0x53274d];return _0x5bb255;};const _0x1f3db6=a1127_0x5bb2;'use strict';const client=require(_0x1f3db6('0x29'));exports[_0x1f3db6('0x26')]=function(){return function(){const _0x182988=a1127_0x5bb2;return client[_0x182988('0x5')]('GetVoiceQueue',{'options':{'raw':![],'attributes':['id',_0x182988('0x34'),_0x182988('0x3c'),_0x182988('0x2f'),_0x182988('0x14'),_0x182988('0x39'),'type',_0x182988('0xb'),'dialMethod',_0x182988('0x30'),_0x182988('0x3d'),_0x182988('0x28'),_0x182988('0x2b'),'dialPredictiveOptimizationPercentage',_0x182988('0x32'),_0x182988('0x17'),_0x182988('0x8'),_0x182988('0x37'),_0x182988('0x16'),_0x182988('0x12'),_0x182988('0x4'),_0x182988('0x35'),'dialCongestionRetryFrequency',_0x182988('0x38'),_0x182988('0x23'),_0x182988('0x33'),_0x182988('0x3a'),_0x182988('0x2c'),_0x182988('0x7'),_0x182988('0x6'),_0x182988('0x31'),_0x182988('0x1e'),'dialAMDActive',_0x182988('0x19'),_0x182988('0x0'),_0x182988('0x1b'),_0x182988('0x18'),_0x182988('0x1c'),_0x182988('0x24'),_0x182988('0x1'),'dialAMDSilenceThreshold',_0x182988('0x2'),'timeout',_0x182988('0x1d'),_0x182988('0x2e'),_0x182988('0xf'),'dialAgiAfterHangupAgent',_0x182988('0x2d'),_0x182988('0x20'),'monitor_format',_0x182988('0x22'),_0x182988('0x36'),_0x182988('0x25'),_0x182988('0x21'),'dialNoSuchNumberRetryFrequency','dialDropMaxRetry',_0x182988('0x13'),_0x182988('0x1f'),_0x182988('0xc'),'dialMachineMaxRetry',_0x182988('0x27'),'dialAgentRejectMaxRetry',_0x182988('0xe'),_0x182988('0x9'),'dialPredictiveIntervalMaxThreshold',_0x182988('0xd')],'include':[{'model':_0x182988('0x15'),'as':_0x182988('0x15'),'attributes':['id',_0x182988('0x34'),_0x182988('0xa'),_0x182988('0x10')]},{'model':_0x182988('0x1a'),'as':'mandatoryDispositionPause','attributes':['id',_0x182988('0x34')]},{'model':_0x182988('0x15'),'as':_0x182988('0x2a'),'attributes':['id',_0x182988('0x34'),_0x182988('0xa'),'active']},{'model':_0x182988('0x3'),'as':_0x182988('0x3'),'attributes':['id',_0x182988('0x34')],'include':[{'model':_0x182988('0x3'),'as':_0x182988('0x3b'),'attributes':['id',_0x182988('0x34'),_0x182988('0x11')]}]}]},'log':_0x182988('0x26')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueueReport.js b/server/services/ami/rpc/voiceQueueReport.js index c104709..9edd28a 100644 --- a/server/services/ami/rpc/voiceQueueReport.js +++ b/server/services/ami/rpc/voiceQueueReport.js @@ -1 +1 @@ -const a1128_0x1cf1=['queue','startOf','moment','Request','queuecallerabandonAt','queuecallercompleteAt','format','queuecallerexitAt','GetVoiceQueueReport','getVoiceQueueReports','day','endOf','YYYY-MM-DD\x20HH:mm:ss','CreateVoiceQueueReport','queuecallercomplete','queuecallerabandon','GetVoiceQueueReports','create'];(function(_0x213478,_0x1cf1f4){const _0x37b298=function(_0x23fc34){while(--_0x23fc34){_0x213478['push'](_0x213478['shift']());}};_0x37b298(++_0x1cf1f4);}(a1128_0x1cf1,0x19a));const a1128_0x37b2=function(_0x213478,_0x1cf1f4){_0x213478=_0x213478-0x0;let _0x37b298=a1128_0x1cf1[_0x213478];return _0x37b298;};const _0x23425c=a1128_0x37b2;'use strict';const moment=require(_0x23425c('0x6')),client=require('../client');exports[_0x23425c('0x3')]=function(_0x23fc34){const _0x2c82b7=_0x23425c;return client[_0x2c82b7('0x7')](_0x2c82b7('0x11'),{'body':_0x23fc34,'log':'CreateVoiceQueueReport'});},exports[_0x23425c('0xd')]=function(){return function(){const _0xb0af64=a1128_0x37b2;return client[_0xb0af64('0x7')](_0xb0af64('0xc'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xb0af64('0x5')](_0xb0af64('0xe'))[_0xb0af64('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xb0af64('0xf')](_0xb0af64('0xe'))[_0xb0af64('0xa')](_0xb0af64('0x10'))]}},'attributes':['uniqueid',_0xb0af64('0x4'),'queuecallerjoinAt','queuecallerleaveAt',_0xb0af64('0x0'),_0xb0af64('0x9'),'queuecallerexit',_0xb0af64('0xb'),_0xb0af64('0x1'),_0xb0af64('0x8')]},'log':_0xb0af64('0x2')});};}; \ No newline at end of file +const a1128_0x3d16=['queuecallerexit','YYYY-MM-DD\x20HH:mm:ss','day','queuecallerjoinAt','startOf','endOf','CreateVoiceQueueReport','GetVoiceQueueReport','../client','queuecallerabandon','queuecallerleaveAt','queuecallercompleteAt','queuecallercomplete','format','Request','GetVoiceQueueReports','getVoiceQueueReports'];(function(_0xb20076,_0x3d16d8){const _0x1e93a4=function(_0x5d910f){while(--_0x5d910f){_0xb20076['push'](_0xb20076['shift']());}};_0x1e93a4(++_0x3d16d8);}(a1128_0x3d16,0x90));const a1128_0x1e93=function(_0xb20076,_0x3d16d8){_0xb20076=_0xb20076-0x0;let _0x1e93a4=a1128_0x3d16[_0xb20076];return _0x1e93a4;};const _0x518af9=a1128_0x1e93;'use strict';const moment=require('moment'),client=require(_0x518af9('0x0'));exports['create']=function(_0x5d910f){const _0x17a3c8=_0x518af9;return client[_0x17a3c8('0x6')](_0x17a3c8('0xf'),{'body':_0x5d910f,'log':_0x17a3c8('0xf')});},exports[_0x518af9('0x8')]=function(){return function(){const _0x2b0855=a1128_0x1e93;return client[_0x2b0855('0x6')](_0x2b0855('0x10'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x2b0855('0xd')](_0x2b0855('0xb'))['format'](_0x2b0855('0xa')),moment()[_0x2b0855('0xe')](_0x2b0855('0xb'))[_0x2b0855('0x5')](_0x2b0855('0xa'))]}},'attributes':['uniqueid','queue',_0x2b0855('0xc'),_0x2b0855('0x2'),_0x2b0855('0x4'),_0x2b0855('0x3'),_0x2b0855('0x9'),'queuecallerexitAt',_0x2b0855('0x1'),'queuecallerabandonAt']},'log':_0x2b0855('0x7')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueueRt.js b/server/services/ami/rpc/voiceQueueRt.js index dfe81db..1261537 100644 --- a/server/services/ami/rpc/voiceQueueRt.js +++ b/server/services/ami/rpc/voiceQueueRt.js @@ -1 +1 @@ -const a1129_0x1b15=['../client','getVoiceQueueRtPauses','GetVoiceQueueRtPauses'];(function(_0x4022d8,_0x1b15d2){const _0x2f76d2=function(_0x446da4){while(--_0x446da4){_0x4022d8['push'](_0x4022d8['shift']());}};_0x2f76d2(++_0x1b15d2);}(a1129_0x1b15,0x71));const a1129_0x2f76=function(_0x4022d8,_0x1b15d2){_0x4022d8=_0x4022d8-0x0;let _0x2f76d2=a1129_0x1b15[_0x4022d8];return _0x2f76d2;};const _0x215c9d=a1129_0x2f76;'use strict';const client=require(_0x215c9d('0x1'));exports[_0x215c9d('0x2')]=function(_0x446da4){return function(){const _0x2ce951=a1129_0x2f76;return client['Request'](_0x2ce951('0x0'),{'options':{'where':{'VoiceQueueId':_0x446da4,'paused':!![]},'raw':!![]},'log':_0x2ce951('0x2')});};}; \ No newline at end of file +const a1129_0x24ec=['GetVoiceQueueRtPauses','getVoiceQueueRtPauses','../client'];(function(_0x136c85,_0x24ecf3){const _0x123dd8=function(_0x5ef237){while(--_0x5ef237){_0x136c85['push'](_0x136c85['shift']());}};_0x123dd8(++_0x24ecf3);}(a1129_0x24ec,0x10b));const a1129_0x123d=function(_0x136c85,_0x24ecf3){_0x136c85=_0x136c85-0x0;let _0x123dd8=a1129_0x24ec[_0x136c85];return _0x123dd8;};const _0x5c7fe5=a1129_0x123d;'use strict';const client=require(_0x5c7fe5('0x2'));exports[_0x5c7fe5('0x1')]=function(_0x5ef237){return function(){const _0x377f6c=a1129_0x123d;return client['Request'](_0x377f6c('0x0'),{'options':{'where':{'VoiceQueueId':_0x5ef237,'paused':!![]},'raw':!![]},'log':_0x377f6c('0x1')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceRecording.js b/server/services/ami/rpc/voiceRecording.js index f7093a9..01789c1 100644 --- a/server/services/ami/rpc/voiceRecording.js +++ b/server/services/ami/rpc/voiceRecording.js @@ -1 +1 @@ -const a1130_0x23ae=['lodash','monitorFilename','create','CreateVoiceRecording','Request'];(function(_0x518a32,_0x23aea4){const _0x12a8e5=function(_0x1aae27){while(--_0x1aae27){_0x518a32['push'](_0x518a32['shift']());}};_0x12a8e5(++_0x23aea4);}(a1130_0x23ae,0x1bc));const a1130_0x12a8=function(_0x518a32,_0x23aea4){_0x518a32=_0x518a32-0x0;let _0x12a8e5=a1130_0x23ae[_0x518a32];return _0x12a8e5;};const _0xd6b445=a1130_0x12a8;'use strict';const _=require(_0xd6b445('0x1')),client=require('../client');exports[_0xd6b445('0x3')]=function(_0x1aae27){const _0x180b64=_0xd6b445;return client[_0x180b64('0x0')]('CreateVoiceRecording',{'body':_['merge'](_0x1aae27,{'value':_0x1aae27[_0x180b64('0x2')]}),'log':_0x180b64('0x4')});}; \ No newline at end of file +const a1130_0x2b8c=['merge','CreateVoiceRecording','monitorFilename','../client','lodash'];(function(_0x593683,_0x2b8c98){const _0x1e42b3=function(_0x36b281){while(--_0x36b281){_0x593683['push'](_0x593683['shift']());}};_0x1e42b3(++_0x2b8c98);}(a1130_0x2b8c,0x1e0));const a1130_0x1e42=function(_0x593683,_0x2b8c98){_0x593683=_0x593683-0x0;let _0x1e42b3=a1130_0x2b8c[_0x593683];return _0x1e42b3;};const _0x552d53=a1130_0x1e42;'use strict';const _=require(_0x552d53('0x4')),client=require(_0x552d53('0x3'));exports['create']=function(_0x36b281){const _0x404c26=_0x552d53;return client['Request'](_0x404c26('0x1'),{'body':_[_0x404c26('0x0')](_0x36b281,{'value':_0x36b281[_0x404c26('0x2')]}),'log':_0x404c26('0x1')});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceTransferReport.js b/server/services/ami/rpc/voiceTransferReport.js index 6e87474..2cf81a4 100644 --- a/server/services/ami/rpc/voiceTransferReport.js +++ b/server/services/ami/rpc/voiceTransferReport.js @@ -1 +1 @@ -const a1131_0x23a1=['transfereelinkedid','transfertargetaccountcode','secondtransfererconnectedlinename','transfertargetcalleridname','CreateVoiceTransferReport','transfertargetcalleridnum','transfereechannel','origtransferercontext','transferercontext','extension','attended','transfereeexten','result','transfereecontext','origtransferercalleridnum','transfererconnectedlinename','origtransfererexten','transfereecalleridnum','transfererchannel','transferercalleridname','transfertargetcontext','transfertargetconnectedlinename','origtransfereraccountcode','origtransfererchannel','transfertargetconnectedlinenum','transferercalleridnum','transfertargetlinkedid','attendedTransfer','transfereeconnectedlinename','isexternal','origtransferercalleridname','transfereeaccountcode','blind','transfererexten'];(function(_0x2c92e5,_0x23a102){const _0xf9dbf4=function(_0x549704){while(--_0x549704){_0x2c92e5['push'](_0x2c92e5['shift']());}};_0xf9dbf4(++_0x23a102);}(a1131_0x23a1,0x15f));const a1131_0xf9db=function(_0x2c92e5,_0x23a102){_0x2c92e5=_0x2c92e5-0x0;let _0xf9dbf4=a1131_0x23a1[_0x2c92e5];return _0xf9dbf4;};const _0x197a11=a1131_0xf9db;'use strict';const client=require('../client');exports['blindTransfer']=function(_0x549704){const _0x2f1556=a1131_0xf9db;return client['Request']('CreateVoiceTransferReport',{'body':{'result':_0x549704[_0x2f1556('0x1')],'transfererchannel':_0x549704[_0x2f1556('0x7')],'transferercalleridnum':_0x549704[_0x2f1556('0xe')],'transferercalleridname':_0x549704[_0x2f1556('0x8')],'transfererconnectedlinenum':_0x549704['transfererconnectedlinenum'],'transfererconnectedlinename':_0x549704[_0x2f1556('0x4')],'transfereraccountcode':_0x549704['transfereraccountcode'],'transferercontext':_0x549704[_0x2f1556('0x1f')],'transfererexten':_0x549704[_0x2f1556('0x16')],'transfererlinkedid':_0x549704['transfererlinkedid'],'transfereechannel':_0x549704[_0x2f1556('0x1d')],'transfereecalleridnum':_0x549704[_0x2f1556('0x6')],'transfereecalleridname':_0x549704['transfereecalleridname'],'transfereeconnectedlinenum':_0x549704['transfereeconnectedlinenum'],'transfereeconnectedlinename':_0x549704[_0x2f1556('0x11')],'transfereeaccountcode':_0x549704[_0x2f1556('0x14')],'transfereecontext':_0x549704[_0x2f1556('0x2')],'transfereeexten':_0x549704[_0x2f1556('0x0')],'transfereelinkedid':_0x549704[_0x2f1556('0x17')],'isexternal':_0x549704[_0x2f1556('0x12')],'context':_0x549704['context'],'extension':_0x549704[_0x2f1556('0x20')],'type':_0x2f1556('0x15')},'log':_0x2f1556('0x1b')});},exports[_0x197a11('0x10')]=function(_0x5c98dd){const _0x1a86a4=_0x197a11;return client['Request'](_0x1a86a4('0x1b'),{'body':{'result':_0x5c98dd['result'],'transfererchannel':_0x5c98dd[_0x1a86a4('0xc')],'transferercalleridnum':_0x5c98dd[_0x1a86a4('0x3')],'transferercalleridname':_0x5c98dd[_0x1a86a4('0x13')],'transfererconnectedlinenum':_0x5c98dd['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x5c98dd[_0x1a86a4('0x19')],'transfereraccountcode':_0x5c98dd[_0x1a86a4('0xb')],'transferercontext':_0x5c98dd['secondtransferercontext'],'transfererexten':_0x5c98dd['secondtransfererexten'],'transfererlinkedid':_0x5c98dd['origtransfererlinkedid'],'transfereechannel':_0x5c98dd['transfertargetchannel'],'transfereecalleridnum':_0x5c98dd[_0x1a86a4('0x1c')],'transfereecalleridname':_0x5c98dd[_0x1a86a4('0x1a')],'transfereeconnectedlinenum':_0x5c98dd[_0x1a86a4('0xd')],'transfereeconnectedlinename':_0x5c98dd[_0x1a86a4('0xa')],'transfereeaccountcode':_0x5c98dd[_0x1a86a4('0x18')],'transfereecontext':_0x5c98dd[_0x1a86a4('0x9')],'transfereeexten':_0x5c98dd['transfertargetexten'],'transfereelinkedid':_0x5c98dd[_0x1a86a4('0xf')],'isexternal':_0x5c98dd[_0x1a86a4('0x12')],'context':_0x5c98dd[_0x1a86a4('0x1e')],'extension':_0x5c98dd[_0x1a86a4('0x5')],'type':_0x1a86a4('0x21')},'log':'CreateVoiceTransferReport'});}; \ No newline at end of file +const a1131_0x51df=['transfereraccountcode','../client','origtransferercalleridname','transferercalleridnum','origtransfererexten','origtransferercontext','secondtransfererconnectedlinenum','secondtransfererconnectedlinename','transfertargetconnectedlinenum','secondtransferercontext','Request','transfertargetlinkedid','transfereeaccountcode','origtransferercalleridnum','transfertargetexten','context','transfereeconnectedlinename','attended','transfereeexten','origtransfereraccountcode','extension','origtransfererchannel','transfererlinkedid','transfereecontext','isexternal','transfereecalleridname','secondtransfererexten','transfererconnectedlinenum','CreateVoiceTransferReport','transfererchannel','transferercontext','origtransfererlinkedid','transfertargetaccountcode','transfertargetcontext','blind','transfertargetcalleridnum','attendedTransfer','transfertargetconnectedlinename','result','transfertargetcalleridname'];(function(_0x550b37,_0x51df60){const _0x32c897=function(_0x1b276e){while(--_0x1b276e){_0x550b37['push'](_0x550b37['shift']());}};_0x32c897(++_0x51df60);}(a1131_0x51df,0xaf));const a1131_0x32c8=function(_0x550b37,_0x51df60){_0x550b37=_0x550b37-0x0;let _0x32c897=a1131_0x51df[_0x550b37];return _0x32c897;};const _0x2d1d07=a1131_0x32c8;'use strict';const client=require(_0x2d1d07('0x1a'));exports['blindTransfer']=function(_0x1b276e){const _0xa867d4=_0x2d1d07;return client[_0xa867d4('0x23')]('CreateVoiceTransferReport',{'body':{'result':_0x1b276e[_0xa867d4('0x17')],'transfererchannel':_0x1b276e[_0xa867d4('0xe')],'transferercalleridnum':_0x1b276e[_0xa867d4('0x1c')],'transferercalleridname':_0x1b276e['transferercalleridname'],'transfererconnectedlinenum':_0x1b276e[_0xa867d4('0xc')],'transfererconnectedlinename':_0x1b276e['transfererconnectedlinename'],'transfereraccountcode':_0x1b276e[_0xa867d4('0x19')],'transferercontext':_0x1b276e[_0xa867d4('0xf')],'transfererexten':_0x1b276e['transfererexten'],'transfererlinkedid':_0x1b276e[_0xa867d4('0x7')],'transfereechannel':_0x1b276e['transfereechannel'],'transfereecalleridnum':_0x1b276e['transfereecalleridnum'],'transfereecalleridname':_0x1b276e[_0xa867d4('0xa')],'transfereeconnectedlinenum':_0x1b276e['transfereeconnectedlinenum'],'transfereeconnectedlinename':_0x1b276e[_0xa867d4('0x1')],'transfereeaccountcode':_0x1b276e[_0xa867d4('0x25')],'transfereecontext':_0x1b276e[_0xa867d4('0x8')],'transfereeexten':_0x1b276e[_0xa867d4('0x3')],'transfereelinkedid':_0x1b276e['transfereelinkedid'],'isexternal':_0x1b276e[_0xa867d4('0x9')],'context':_0x1b276e[_0xa867d4('0x0')],'extension':_0x1b276e[_0xa867d4('0x5')],'type':_0xa867d4('0x13')},'log':_0xa867d4('0xd')});},exports[_0x2d1d07('0x15')]=function(_0x55a492){const _0x3bd46c=_0x2d1d07;return client[_0x3bd46c('0x23')](_0x3bd46c('0xd'),{'body':{'result':_0x55a492[_0x3bd46c('0x17')],'transfererchannel':_0x55a492[_0x3bd46c('0x6')],'transferercalleridnum':_0x55a492[_0x3bd46c('0x26')],'transferercalleridname':_0x55a492[_0x3bd46c('0x1b')],'transfererconnectedlinenum':_0x55a492[_0x3bd46c('0x1f')],'transfererconnectedlinename':_0x55a492[_0x3bd46c('0x20')],'transfereraccountcode':_0x55a492[_0x3bd46c('0x4')],'transferercontext':_0x55a492[_0x3bd46c('0x22')],'transfererexten':_0x55a492[_0x3bd46c('0xb')],'transfererlinkedid':_0x55a492[_0x3bd46c('0x10')],'transfereechannel':_0x55a492['transfertargetchannel'],'transfereecalleridnum':_0x55a492[_0x3bd46c('0x14')],'transfereecalleridname':_0x55a492[_0x3bd46c('0x18')],'transfereeconnectedlinenum':_0x55a492[_0x3bd46c('0x21')],'transfereeconnectedlinename':_0x55a492[_0x3bd46c('0x16')],'transfereeaccountcode':_0x55a492[_0x3bd46c('0x11')],'transfereecontext':_0x55a492[_0x3bd46c('0x12')],'transfereeexten':_0x55a492[_0x3bd46c('0x27')],'transfereelinkedid':_0x55a492[_0x3bd46c('0x24')],'isexternal':_0x55a492[_0x3bd46c('0x9')],'context':_0x55a492[_0x3bd46c('0x1e')],'extension':_0x55a492[_0x3bd46c('0x1d')],'type':_0x3bd46c('0x2')},'log':_0x3bd46c('0xd')});}; \ No newline at end of file diff --git a/server/services/ami/server/index.js b/server/services/ami/server/index.js index 246df02..69ff978 100644 --- a/server/services/ami/server/index.js +++ b/server/services/ami/server/index.js @@ -1 +1 @@ -const a1132_0x3596=['predictiveIntervalHitRate','active','predictiveIntervalMultiplicativeFactor','timers','outboundUnknownCallsDay','updateStatusRealtime','validate','message','outboundDropCallsDayCallersExit','Interval','/var/spool/asterisk/monitor/','monitors','Action','predictiveIntervalAnsweredCalls','exten','abandoned','erlangAbandonmentRate','values','Trunk','module','log','Channel\x20doesn\x27t\x20exist','push','isNil','type','outboundOriginateFailureCallsDay','ami\x20disconnected','isConnected','moment','StopMixMonitor','predictiveIntervalAvailable','predictiveIntervalPauses','destinationchannel','uniqueid','voicechannel','outboundNoAnswerCallsDay','command','loggedInDb','%s.%s','predictiveIntervalErlangCallsDroppedCalls','voiceQueues','status','Hangup','channels','YYYY-MM-DD\x20HH:mm:ss','catch','predictiveIntervalErlangCalls','outboundBusyCallsDay','outboundCongestionCallsDay','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','ai(mixmonitorid)','error','pTalking','custom:','pause','Redirect','outboundRejectCallsDay','channel','undefined','dialActive','then','total','available','name','join','MixMonitor\x20Success','loggedIn','dialOriginateCallerIdName','keys','voicequeuechannelhangup','listen','../properties','answered','action','outboundDropCallsDayTimeout','predictiveIntervalAvgHoldtime','erlangBusyFactor','filename','StopMixMonitor\x20Success','talking','checkAfterSend','timer','predictiveIntervalDroppedCallsTimeout','length','run','dialOriginateTimeout','erlangCallToSecond','wav','RPC\x20listening\x20on\x20port:','waiting','outboundAnswerCallsDay','sumHoldTime','dialPrefix','rec','predictiveIntervalAvgTalktime','pick','toLowerCase','outboundDropCallsDayACS','predictiveIntervalTotalCalls','sumBillable','map','../ami','lodash','stop','outboundNoSuchCallsDay','server','dialOriginateCallerIdNumber','http','queueChannels','unmanaged','callerid','outboundBlacklistCallsDay','trunks','predictiveIntervalDroppedCallsCallersExit','mixmonitorid','outbound','erlangCalls','SIP','find','asterisk','strategy','emit','agents','originated','jayson/promise','Reload','startProgressive','dialMethod','event','format','startPredictive','Event\x20name\x20mandatory','outboundReCallsDay'];(function(_0x12c273,_0x35966c){const _0x4ba25=function(_0x231d21){while(--_0x231d21){_0x12c273['push'](_0x12c273['shift']());}};_0x4ba25(++_0x35966c);}(a1132_0x3596,0x1d9));const a1132_0x4ba2=function(_0x12c273,_0x35966c){_0x12c273=_0x12c273-0x0;let _0x4ba25=a1132_0x3596[_0x12c273];return _0x4ba25;};const _0x330951=a1132_0x4ba2;'use strict';const _=require(_0x330951('0x1c')),util=require('util'),jayson=require(_0x330951('0x32')),schema=require(_0x330951('0x41')),moment=require(_0x330951('0x57')),config=require('../../../config/environment'),properties=require(_0x330951('0x82')),ami=require(_0x330951('0x1b'));exports['listen']=function(_0x231d21,_0x2df1e3,_0x2aee97){return new Promise(function(_0x1138cc,_0x11a054){const _0x2735e4=a1132_0x4ba2,_0x3578a8={'QueuePause':function(_0x226eb3){return new Promise(function(_0x3d8fb){const _0x3c4902=a1132_0x4ba2,_0x3cf842=util[_0x3c4902('0x37')]('%s/%s',_0x3c4902('0x2b'),_0x226eb3[_0x3c4902('0x7a')]);_0x231d21[_0x3c4902('0x3e')]&&_0x231d21[_0x3c4902('0x3e')][_0x3cf842]&&_0x231d21[_0x3c4902('0x3e')][_0x3cf842][_0x3c4902('0x7')]&&_0x231d21[_0x3c4902('0x3e')][_0x3cf842]['updateAcw'](),_0x231d21['agents'][_0x3cf842]&&_0x231d21['agents'][_0x3cf842][_0x3c4902('0x40')]({'statePause':_0x226eb3[_0x3c4902('0x71')]?!![]:![]}),_0x3d8fb({'code':0xc8,'message':'QueuePause'});});},'Reload':function(_0x11dc96){const _0xc94df2=this;return new Promise(function(_0x2c84d9,_0xe39a68){const _0x4e08ac=a1132_0x4ba2;if(ami[_0x4e08ac('0x56')]()==![])return _0xe39a68(_0xc94df2[_0x4e08ac('0x6e')](0x1f4,[config[_0x4e08ac('0x2d')]['ip'],config[_0x4e08ac('0x2d')]['username'],_0x4e08ac('0x55')]['join']('\x20')));return _0x11dc96=_[_0x4e08ac('0x15')](_0x11dc96,_[_0x4e08ac('0x7f')](properties[_0x4e08ac('0x4e')])),_0x11dc96[_0x4e08ac('0x84')]=_0x4e08ac('0x33'),ami['Action'](_0x11dc96)[_0x4e08ac('0x77')](function(_0x1e80f1){const _0x4e9edb=_0x4e08ac;_0x2c84d9({'code':0xc8,'message':_0x1e80f1[_0x4e9edb('0x42')]});})[_0x4e08ac('0x68')](function(_0x43035e){const _0x438391=_0x4e08ac;_0xe39a68(_0xc94df2[_0x438391('0x6e')](0x1f5,_0x43035e['message']));});});},'Command':function(_0x2d7109){const _0x4b4497=this;return new Promise(function(_0x293067,_0x4420b1){const _0x194a35=a1132_0x4ba2;if(ami[_0x194a35('0x56')]()==![])return _0x4420b1(_0x4b4497['error'](0x1f4,[config[_0x194a35('0x2d')]['ip'],config[_0x194a35('0x2d')]['username'],_0x194a35('0x55')][_0x194a35('0x7b')]('\x20')));return _0x2d7109=_['pick'](_0x2d7109,_0x194a35('0x5f')),_0x2d7109[_0x194a35('0x84')]='Command',ami[_0x194a35('0x47')](_0x2d7109)['then'](function(_0x1fc4bb){_0x293067({'code':0xc8,'message':_0x1fc4bb['content']});})[_0x194a35('0x68')](function(_0x398f43){const _0x4bac92=_0x194a35;_0x4420b1(_0x4b4497[_0x4bac92('0x6e')](0x1f5,_0x398f43[_0x4bac92('0x42')]));});});},'VoiceQueues':function(){return new Promise(function(_0x37d6a5){const _0x2a319e=a1132_0x4ba2,_0x5683aa=[];for(const _0x1c1279 in _0x231d21[_0x2a319e('0x63')]){if(typeof _0x231d21[_0x2a319e('0x63')][_0x1c1279]!==_0x2a319e('0x75')){const _0x24761e=_0x231d21[_0x2a319e('0x63')][_0x1c1279],_0x58d466={'id':_0x24761e['id'],'name':_0x24761e[_0x2a319e('0x7a')],'strategy':_0x24761e[_0x2a319e('0x2e')],'answered':_0x24761e[_0x2a319e('0x83')],'available':_0x24761e[_0x2a319e('0x79')],'loggedIn':_0x24761e[_0x2a319e('0x7d')],'pTalking':_0x24761e[_0x2a319e('0x6f')],'sumBillable':_0x24761e[_0x2a319e('0x19')],'sumDuration':_0x24761e['sumDuration'],'sumHoldTime':_0x24761e[_0x2a319e('0x11')]||0x0,'talking':_0x24761e[_0x2a319e('0x5')],'total':_0x24761e[_0x2a319e('0x78')],'type':_0x24761e['type'],'unmanaged':_0x24761e[_0x2a319e('0x23')],'abandoned':_0x24761e[_0x2a319e('0x4a')],'waiting':_0x24761e[_0x2a319e('0xf')],'loggedInDb':_0x24761e[_0x2a319e('0x60')]};_0x24761e[_0x2a319e('0x53')]==='outbound'&&(_0x58d466[_0x2a319e('0x76')]=_0x24761e[_0x2a319e('0x76')],_0x58d466[_0x2a319e('0x35')]=_0x24761e['dialMethod'],_0x58d466[_0x2a319e('0x7e')]=_0x24761e[_0x2a319e('0x7e')],_0x58d466[_0x2a319e('0x20')]=_0x24761e[_0x2a319e('0x20')],_0x58d466[_0x2a319e('0xb')]=_0x24761e[_0x2a319e('0xb')],_0x58d466[_0x2a319e('0x12')]=_0x24761e[_0x2a319e('0x12')],_0x58d466['outboundAnswerAgiCallsDay']=_0x24761e['outboundAnswerAgiCallsDay'],_0x58d466[_0x2a319e('0x10')]=_0x24761e[_0x2a319e('0x10')],_0x58d466[_0x2a319e('0x25')]=_0x24761e[_0x2a319e('0x25')],_0x58d466[_0x2a319e('0x6a')]=_0x24761e[_0x2a319e('0x6a')],_0x58d466[_0x2a319e('0x6b')]=_0x24761e['outboundCongestionCallsDay'],_0x58d466[_0x2a319e('0x17')]=_0x24761e[_0x2a319e('0x17')],_0x58d466['outboundDropCallsDayCallersExit']=_0x24761e[_0x2a319e('0x43')],_0x58d466[_0x2a319e('0x0')]=_0x24761e['outboundDropCallsDayTimeout'],_0x58d466['outboundNoAnswerCallsDay']=_0x24761e[_0x2a319e('0x5e')],_0x58d466[_0x2a319e('0x1e')]=_0x24761e[_0x2a319e('0x1e')],_0x58d466[_0x2a319e('0x54')]=_0x24761e[_0x2a319e('0x54')],_0x58d466[_0x2a319e('0x3a')]=_0x24761e['outboundReCallsDay'],_0x58d466['outboundRejectCallsDay']=_0x24761e[_0x2a319e('0x73')],_0x58d466[_0x2a319e('0x3f')]=_0x24761e[_0x2a319e('0x3f')],_0x58d466[_0x2a319e('0x48')]=_0x24761e['predictiveIntervalAnsweredCalls'],_0x58d466['predictiveIntervalAvgHoldtime']=_0x24761e[_0x2a319e('0x1')],_0x58d466[_0x2a319e('0x14')]=_0x24761e['predictiveIntervalAvgTalktime'],_0x58d466[_0x2a319e('0x27')]=_0x24761e[_0x2a319e('0x27')],_0x58d466['predictiveIntervalDroppedCallsTimeout']=_0x24761e[_0x2a319e('0x8')],_0x58d466[_0x2a319e('0x69')]=_0x24761e[_0x2a319e('0x69')],_0x58d466[_0x2a319e('0x62')]=_0x24761e['predictiveIntervalErlangCallsDroppedCalls'],_0x58d466['predictiveIntervalHitRate']=_0x24761e[_0x2a319e('0x3b')],_0x58d466[_0x2a319e('0x3d')]=_0x24761e[_0x2a319e('0x3d')],_0x58d466[_0x2a319e('0x5a')]=_0x24761e['predictiveIntervalPauses'],_0x58d466['predictiveIntervalAvailable']=_0x24761e[_0x2a319e('0x59')],_0x58d466[_0x2a319e('0x18')]=_0x24761e[_0x2a319e('0x18')],_0x58d466['message']=_0x24761e[_0x2a319e('0x42')],_0x58d466[_0x2a319e('0x31')]=_0x24761e['originated'],_0x58d466[_0x2a319e('0x2a')]=_0x24761e[_0x2a319e('0x2a')],_0x58d466[_0x2a319e('0xc')]=_0x24761e[_0x2a319e('0xc')],_0x58d466[_0x2a319e('0x4b')]=_0x24761e[_0x2a319e('0x4b')],_0x58d466[_0x2a319e('0x2')]=_0x24761e[_0x2a319e('0x2')],_0x58d466[_0x2a319e('0x38')]=_0x24761e['startPredictive'],_0x58d466[_0x2a319e('0x34')]=_0x24761e['startProgressive']),_0x24761e[_0x2a319e('0x4d')]&&(_0x58d466[_0x2a319e('0x4d')]={'id':_0x24761e[_0x2a319e('0x4d')]['id'],'name':_0x24761e[_0x2a319e('0x4d')][_0x2a319e('0x7a')],'active':_0x24761e[_0x2a319e('0x4d')][_0x2a319e('0x3c')],'callerid':_0x24761e[_0x2a319e('0x4d')][_0x2a319e('0x24')]}),_0x24761e[_0x2a319e('0x44')]&&(_0x58d466[_0x2a319e('0x44')]={'id':_0x24761e[_0x2a319e('0x44')]['id'],'name':_0x24761e['Interval']['name']}),_0x5683aa[_0x2a319e('0x51')](_0x58d466);}}_0x37d6a5({'count':_0x5683aa[_0x2a319e('0x9')],'rows':_0x5683aa});});},'VoiceChannels':function(){return new Promise(function(_0x295f3c){const _0x46d0f1=a1132_0x4ba2,_0x100f54=_[_0x46d0f1('0x4c')](_0x231d21[_0x46d0f1('0x66')]);_0x295f3c({'count':_0x100f54[_0x46d0f1('0x9')],'rows':_0x100f54});});},'VoiceChannelMixMonitor':function(_0x578740){const _0xb904d0=this;return new Promise(function(_0x2d6e6a,_0x292a68){const _0x532a29=a1132_0x4ba2;if(ami['isConnected']()==![])return _0x292a68(_0xb904d0[_0x532a29('0x6e')](0x1f4,[config['asterisk']['ip'],config[_0x532a29('0x2d')]['username'],'ami\x20disconnected'][_0x532a29('0x7b')]('\x20')));const _0x543687=schema(properties[_0x532a29('0x5d')])[_0x532a29('0x41')](_0x578740);if(_0x543687[_0x532a29('0x9')]>0x0)return _0x292a68(_0xb904d0[_0x532a29('0x6e')](0x1f4,_[_0x532a29('0x1a')](_0x543687,_0x532a29('0x42'))[_0x532a29('0x7b')](',\x20')));const _0x511ad7=_[_0x532a29('0x2c')](_0x231d21[_0x532a29('0x66')],{'uniqueid':_0x578740['uniqueid']});if(_0x511ad7&&_0x511ad7[_0x532a29('0x74')]){const _0x46110=util[_0x532a29('0x37')]('%s.%s',_0x578740[_0x532a29('0x3')]||_0x578740['uniqueid'],_0x578740['format']||_0x532a29('0xd'));return ami[_0x532a29('0x47')]({'action':'MixMonitor','channel':_0x511ad7[_0x532a29('0x74')],'file':_0x46110,'options':_0x532a29('0x6d')})[_0x532a29('0x77')](function(_0x4192fa){const _0x43ec38=_0x532a29,_0x26fd8b=_[_0x43ec38('0x2c')](_0x511ad7[_0x43ec38('0x46')],{'filename':_0x43ec38('0x45')+_0x46110['toLowerCase']()});_[_0x43ec38('0x52')](_0x26fd8b)?_0x511ad7[_0x43ec38('0x46')]['push']({'filename':'/var/spool/asterisk/monitor/'+_0x46110[_0x43ec38('0x16')](),'createdAt':moment()[_0x43ec38('0x37')](_0x43ec38('0x67')),'mixmonitorid':_0x4192fa[_0x43ec38('0x28')],'status':_0x43ec38('0x13')}):(_0x26fd8b[_0x43ec38('0x28')]=_0x4192fa[_0x43ec38('0x28')],_0x26fd8b[_0x43ec38('0x64')]=_0x43ec38('0x13')),_0x2d6e6a({'code':0xc8,'message':[_0x578740['uniqueid'],_0x43ec38('0x7c'),_0x4192fa['mixmonitorid']][_0x43ec38('0x7b')]('\x20'),'mixmonitorid':_0x4192fa[_0x43ec38('0x28')]});})[_0x532a29('0x68')](function(_0x1c34f4){const _0x5c7adb=_0x532a29;_0x292a68(_0xb904d0[_0x5c7adb('0x6e')](0x1f5,[_0x578740[_0x5c7adb('0x5c')],_0x1c34f4[_0x5c7adb('0x42')][_0x5c7adb('0x16')]()][_0x5c7adb('0x7b')]('\x20')));});}else return _0x292a68(_0xb904d0[_0x532a29('0x6e')](0x1f5,_0x532a29('0x50')));});},'VoiceChannelStopMixMonitor':function(_0x47b453){const _0x55f29f=this;return new Promise(function(_0x4e0cad,_0x2216f0){const _0x1c8eea=a1132_0x4ba2;if(ami['isConnected']()==![])return _0x2216f0(_0x55f29f[_0x1c8eea('0x6e')](0x1f4,[config['asterisk']['ip'],config[_0x1c8eea('0x2d')]['username'],_0x1c8eea('0x55')][_0x1c8eea('0x7b')]('\x20')));const _0x3f7ced=schema(properties[_0x1c8eea('0x5d')])['validate'](_0x47b453);if(_0x3f7ced[_0x1c8eea('0x9')]>0x0)return _0x2216f0(_0x55f29f['error'](0x1f4,_['map'](_0x3f7ced,'message')['join'](',\x20')));const _0xbe7a08=_[_0x1c8eea('0x2c')](_0x231d21['channels'],{'uniqueid':_0x47b453[_0x1c8eea('0x5c')]});return _0xbe7a08?Promise['resolve']()[_0x1c8eea('0x77')](function(){const _0xa2b4da=_0x1c8eea;if(_0xbe7a08[_0xa2b4da('0x74')])return ami[_0xa2b4da('0x47')]({'action':_0xa2b4da('0x58'),'channel':_0xbe7a08[_0xa2b4da('0x74')],'mixmonitorid':_0x47b453['mixmonitorid']})[_0xa2b4da('0x68')](function(){});})['then'](function(){const _0x6622e=_0x1c8eea;if(_0xbe7a08[_0x6622e('0x5b')])return ami[_0x6622e('0x47')]({'action':'StopMixMonitor','channel':_0xbe7a08[_0x6622e('0x5b')],'mixmonitorid':_0x47b453[_0x6622e('0x28')]})[_0x6622e('0x68')](function(){});})[_0x1c8eea('0x77')](function(){const _0x33fe8d=_0x1c8eea,_0xaec129=_['find'](_0xbe7a08[_0x33fe8d('0x46')],{'mixmonitorid':_0x47b453[_0x33fe8d('0x28')]});_0xaec129&&(_0xaec129['status']='stop');})[_0x1c8eea('0x77')](function(){const _0x5ca227=_0x1c8eea,_0x8ea9aa=util['format'](_0x5ca227('0x61'),_0x47b453[_0x5ca227('0x3')]||_0x47b453[_0x5ca227('0x5c')],_0x47b453[_0x5ca227('0x37')]||'wav'),_0x439729=_[_0x5ca227('0x2c')](_0xbe7a08[_0x5ca227('0x46')],{'filename':_0x5ca227('0x45')+_0x8ea9aa[_0x5ca227('0x16')]()});_0x439729&&(_0x439729[_0x5ca227('0x64')]=_0x5ca227('0x1d'));})['then'](function(){const _0x506ed5=_0x1c8eea;_0x4e0cad({'code':0xc8,'message':[_0x47b453[_0x506ed5('0x5c')],_0x506ed5('0x4')]['join']('\x20')});})[_0x1c8eea('0x68')](function(_0x11898b){const _0x5ead79=_0x1c8eea;_0x2216f0(_0x55f29f[_0x5ead79('0x6e')](0x1f5,[_0x47b453[_0x5ead79('0x5c')],_0x11898b['message']['toLowerCase']()][_0x5ead79('0x7b')]('\x20')));}):_0x2216f0(_0x55f29f[_0x1c8eea('0x6e')](0x1f5,_0x1c8eea('0x50')));});},'VoiceQueuesChannels':function(){return new Promise(function(_0x5cbbf4){const _0x3ac2c8=a1132_0x4ba2,_0x2c3dff=_[_0x3ac2c8('0x4c')](_0x231d21[_0x3ac2c8('0x22')]);_0x5cbbf4({'count':_0x2c3dff['length'],'rows':_0x2c3dff});});},'VoiceQueuesChannel':function(_0x5e7261){const _0x59beb7=this;return new Promise(function(_0x3ca7ef,_0x1818e9){const _0x479682=a1132_0x4ba2,_0x55ed94=schema(properties['voicequeuechannel'])[_0x479682('0x41')](_0x5e7261);if(_0x55ed94[_0x479682('0x9')]>0x0)return _0x1818e9(_0x59beb7[_0x479682('0x6e')](0x1f4,_[_0x479682('0x1a')](_0x55ed94,_0x479682('0x42'))[_0x479682('0x7b')](',\x20')));const _0x5c2fc8=_[_0x479682('0x2c')](_0x231d21[_0x479682('0x22')],{'uniqueid':_0x5e7261[_0x479682('0x5c')]});if(_0x5c2fc8)_0x3ca7ef(_0x5c2fc8);else return _0x1818e9(_0x59beb7[_0x479682('0x6e')](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannelHangup':function(_0x11d78a){const _0x15fd27=this;return new Promise(function(_0x168478,_0x2b897f){const _0x37ba44=a1132_0x4ba2;if(ami[_0x37ba44('0x56')]()==![])return _0x2b897f(_0x15fd27[_0x37ba44('0x6e')](0x1f4,[config[_0x37ba44('0x2d')]['ip'],config['asterisk']['username'],_0x37ba44('0x55')][_0x37ba44('0x7b')]('\x20')));const _0x21e045=schema(properties[_0x37ba44('0x80')])['validate'](_0x11d78a);if(_0x21e045[_0x37ba44('0x9')]>0x0)return _0x2b897f(_0x15fd27[_0x37ba44('0x6e')](0x1f4,_[_0x37ba44('0x1a')](_0x21e045,_0x37ba44('0x42'))[_0x37ba44('0x7b')](',\x20')));const _0x11cdb2=_[_0x37ba44('0x2c')](_0x231d21[_0x37ba44('0x22')],{'uniqueid':_0x11d78a[_0x37ba44('0x5c')]});return _0x11cdb2&&_0x11cdb2[_0x37ba44('0x74')]?ami[_0x37ba44('0x47')]({'action':_0x37ba44('0x65'),'channel':_0x11cdb2[_0x37ba44('0x74')]})[_0x37ba44('0x77')](function(_0x52e051){_0x168478({'code':0xc8,'message':[_0x11d78a['uniqueid'],_0x52e051['message']['toLowerCase']()]['join']('\x20')});})['catch'](function(_0x37ed64){const _0x2ab9c8=_0x37ba44;_0x2b897f(_0x15fd27[_0x2ab9c8('0x6e')](0x1f5,[_0x11d78a['uniqueid'],_0x37ed64[_0x2ab9c8('0x42')]['toLowerCase']()][_0x2ab9c8('0x7b')]('\x20')));}):_0x2b897f(_0x15fd27[_0x37ba44('0x6e')](0x1f5,_0x37ba44('0x50')));});},'VoiceQueuesChannelRedirect':function(_0xf43999){const _0x1876e7=this;return new Promise(function(_0x1b3993,_0x2f811a){const _0x2734d9=a1132_0x4ba2;if(ami[_0x2734d9('0x56')]()==![])return _0x2f811a(_0x1876e7[_0x2734d9('0x6e')](0x1f4,[config[_0x2734d9('0x2d')]['ip'],config[_0x2734d9('0x2d')]['username'],_0x2734d9('0x55')][_0x2734d9('0x7b')]('\x20')));const _0x22afb4=schema(properties['voicequeuechannelredirect'])[_0x2734d9('0x41')](_0xf43999);if(_0x22afb4[_0x2734d9('0x9')]>0x0)return _0x2f811a(_0x1876e7[_0x2734d9('0x6e')](0x1f4,_[_0x2734d9('0x1a')](_0x22afb4,_0x2734d9('0x42'))[_0x2734d9('0x7b')](',\x20')));const _0x4e1dcd=_[_0x2734d9('0x2c')](_0x231d21[_0x2734d9('0x22')],{'uniqueid':_0xf43999['uniqueid']});return _0x4e1dcd&&_0x4e1dcd[_0x2734d9('0x74')]?ami[_0x2734d9('0x47')]({'action':_0x2734d9('0x72'),'channel':_0x4e1dcd[_0x2734d9('0x74')],'exten':_0xf43999[_0x2734d9('0x49')],'context':_0xf43999['context']||_0x4e1dcd['context'],'priority':0x1})[_0x2734d9('0x77')](function(_0x359a79){const _0x248851=_0x2734d9;_0x1b3993({'code':0xc8,'message':[_0xf43999[_0x248851('0x5c')],_0x359a79[_0x248851('0x42')]['toLowerCase']()][_0x248851('0x7b')]('\x20')});})[_0x2734d9('0x68')](function(_0x204fc5){const _0x578f83=_0x2734d9;_0x2f811a(_0x1876e7[_0x578f83('0x6e')](0x1f5,[_0xf43999[_0x578f83('0x5c')],_0x204fc5[_0x578f83('0x42')]['toLowerCase']()]['join']('\x20')));}):_0x2f811a(_0x1876e7[_0x2734d9('0x6e')](0x1f5,_0x2734d9('0x50')));});},'Agents':function(){return new Promise(function(_0x275cc4){const _0x169c46=a1132_0x4ba2,_0x4bf7b7=_[_0x169c46('0x4c')](_0x231d21[_0x169c46('0x30')]);_0x275cc4({'count':_0x4bf7b7[_0x169c46('0x9')],'rows':_0x4bf7b7});});},'Telephones':function(){return new Promise(function(_0x56bd4e){const _0x3f9fa5=a1132_0x4ba2,_0x2ee03f=_[_0x3f9fa5('0x4c')](_0x231d21['telephones']);_0x56bd4e({'count':_0x2ee03f[_0x3f9fa5('0x9')],'rows':_0x2ee03f});});},'Trunks':function(){return new Promise(function(_0x5427b9){const _0x50ad52=a1132_0x4ba2,_0x27cdd8=_[_0x50ad52('0x4c')](_0x231d21[_0x50ad52('0x26')]);_0x5427b9({'count':_0x27cdd8[_0x50ad52('0x9')],'rows':_0x27cdd8});});},'OutboundChannels':function(){return new Promise(function(_0x2c7cb6){const _0x1d2d37=a1132_0x4ba2,_0x338174=_[_0x1d2d37('0x4c')](_0x231d21['outboundChannels']);_0x2c7cb6({'count':_0x338174[_0x1d2d37('0x9')],'rows':_0x338174});});},'Outbound':function(){return new Promise(function(_0x4b5d74){const _0x3493a1=a1132_0x4ba2;_0x4b5d74(_0x231d21[_0x3493a1('0x29')]);});},'Campaigns':function(){return new Promise(function(_0x4396e5){const _0x2186db=a1132_0x4ba2,_0x56c914=_[_0x2186db('0x4c')](_0x231d21['campaigns']);_0x4396e5({'count':_0x56c914['length'],'rows':_0x56c914});});},'VoiceQueuesPreview':function(_0x1990e2){const _0x120a9a=this;return new Promise(function(_0xf884e4,_0x8369ac){const _0x50b823=a1132_0x4ba2;_0x2df1e3[_0x50b823('0xa')](_0x1990e2['id'])[_0x50b823('0x77')](function(_0x2be46f){_0xf884e4({'code':0xc8,'message':_0x2be46f['message']});})[_0x50b823('0x68')](function(_0x343b50){const _0x321223=_0x50b823;_0x8369ac(_0x120a9a[_0x321223('0x6e')](0x1f4,_0x343b50[_0x321223('0x42')]));});});},'EventManager':function(_0x47cca5){const _0x49a498=this;return new Promise(function(_0x7d472f,_0x378fcd){const _0x111fbb=a1132_0x4ba2;if(!_0x47cca5[_0x111fbb('0x36')])return _0x378fcd(_0x49a498[_0x111fbb('0x6e')](0x1f4,_0x111fbb('0x39')));ami[_0x111fbb('0x2f')](_0x111fbb('0x70')+_0x47cca5[_0x111fbb('0x36')],_0x47cca5[_0x111fbb('0x42')]),_0x7d472f({'code':0xc8,'message':_0x47cca5});});},'FaxAccounts':function(){return new Promise(function(_0x42de3f){const _0x181d0b=a1132_0x4ba2,_0xaefcf=_[_0x181d0b('0x4c')](_0x231d21['faxAccounts']);_0x42de3f({'count':_0xaefcf['length'],'rows':_0xaefcf});});},'SendFax':function(_0x380eb3){const _0xce32ab=this;return new Promise(function(_0x463bea,_0xc5ca83){const _0x955087=a1132_0x4ba2;_0x2aee97['send'](_0x380eb3)[_0x955087('0x77')](function(_0x3f8b3f){_0x463bea({'code':0xc8,'message':_0x3f8b3f['message']});})[_0x955087('0x68')](function(_0x3a0961){const _0x17fc81=_0x955087;_0xc5ca83(_0xce32ab[_0x17fc81('0x6e')](0x1f4,_0x3a0961['message']));});});},'CheckAfterSend':function(_0x5b3b41){const _0x53bf9f=this;return new Promise(function(_0x5b3dc7,_0xa4868){const _0x368c3c=a1132_0x4ba2;_0x2aee97[_0x368c3c('0x6')](_0x5b3b41)['then'](function(_0x287aa6){const _0x31307d=_0x368c3c;_0x5b3dc7({'code':0xc8,'message':_0x287aa6[_0x31307d('0x42')]});})[_0x368c3c('0x68')](function(_0x4756d8){const _0x3d942d=_0x368c3c;_0xa4868(_0x53bf9f[_0x3d942d('0x6e')](0x1f4,_0x4756d8['message']));});});}},_0x3ae41f=jayson[_0x2735e4('0x1f')](_0x3578a8)[_0x2735e4('0x21')]();_0x3ae41f['on'](_0x2735e4('0x6e'),function(_0xfc00c4){return _0x11a054(_0xfc00c4);}),_0x3ae41f[_0x2735e4('0x81')](0x232a,'127.0.0.1',function(){const _0x95ad3e=_0x2735e4;return console[_0x95ad3e('0x4f')](_0x95ad3e('0x6c'),0x232a),_0x1138cc(_0x95ad3e('0xe')+0x232a);});});}; \ No newline at end of file +const a1132_0x4d69=['campaigns','mixmonitorid','moment','length','predictiveIntervalDroppedCallsCallersExit','Interval','channel','ai(mixmonitorid)','outboundBlacklistCallsDay','MixMonitor\x20Success','outboundReCallsDay','channels','dialOriginateCallerIdName','pause','loggedInDb','checkAfterSend','pTalking','MixMonitor','stop','type','Channel\x20doesn\x27t\x20exist','StopMixMonitor\x20Success','127.0.0.1','erlangCalls','uniqueid','undefined','module','outboundOriginateFailureCallsDay','voicequeuechannel','predictiveIntervalAvgTalktime','isConnected','outboundChannels','content','keys','then','queueChannels','rec','format','outboundBusyCallsDay','outboundNoSuchCallsDay','send','filename','Hangup','Action','predictiveIntervalErlangCallsDroppedCalls','action','name','context','Trunk','validate','destinationchannel','%s.%s','/var/spool/asterisk/monitor/','dialPrefix','catch','listen','%s/%s','outboundCongestionCallsDay','monitors','Reload','push','dialOriginateTimeout','outboundDropCallsDayCallersExit','outboundRejectCallsDay','predictiveIntervalAvgHoldtime','outbound','outboundNoAnswerCallsDay','event','toLowerCase','outboundAnswerCallsDay','Redirect','erlangAbandonmentRate','log','predictiveIntervalPauses','custom:','abandoned','error','voicechannel','outboundUnknownCallsDay','loggedIn','agents','join','message','map','predictiveIntervalErlangCalls','faxAccounts','voiceQueues','SIP','StopMixMonitor','predictiveIntervalAnsweredCalls','sumHoldTime','callerid','QueuePause','answered','run','ami\x20disconnected','predictiveIntervalTotalCalls','active','telephones','dialOriginateCallerIdNumber','wav','values','http','outboundDropCallsDayACS','status','talking','startPredictive','exten','predictiveIntervalAvailable','sumBillable','originated','updateStatusRealtime','erlangCallToSecond','outboundAnswerAgiCallsDay','timers','dialActive','find','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','username','../../../config/environment','updateAcw','RPC\x20listening\x20on\x20port:','predictiveIntervalHitRate','resolve','asterisk','Event\x20name\x20mandatory','outboundDropCallsDayTimeout','waiting','isNil','voicequeuechannelredirect','dialMethod','startProgressive'];(function(_0x591998,_0x4d69b8){const _0x1d8e79=function(_0x59bd2d){while(--_0x59bd2d){_0x591998['push'](_0x591998['shift']());}};_0x1d8e79(++_0x4d69b8);}(a1132_0x4d69,0x98));const a1132_0x1d8e=function(_0x591998,_0x4d69b8){_0x591998=_0x591998-0x0;let _0x1d8e79=a1132_0x4d69[_0x591998];return _0x1d8e79;};const _0x527a8a=a1132_0x1d8e;'use strict';const _=require('lodash'),util=require('util'),jayson=require('jayson/promise'),schema=require(_0x527a8a('0x1d')),moment=require(_0x527a8a('0x72')),config=require(_0x527a8a('0x63')),properties=require('../properties'),ami=require('../ami');exports[_0x527a8a('0x23')]=function(_0x59bd2d,_0x159c86,_0x48918b){return new Promise(function(_0x432f39,_0x2dbd36){const _0x21da5c=a1132_0x1d8e,_0x572507={'QueuePause':function(_0x1df7db){return new Promise(function(_0x4947c3){const _0x284e48=a1132_0x1d8e,_0x1b8904=util['format'](_0x284e48('0x24'),_0x284e48('0x43'),_0x1df7db[_0x284e48('0x1a')]);_0x59bd2d['timers']&&_0x59bd2d[_0x284e48('0x5e')][_0x1b8904]&&_0x59bd2d['timers'][_0x1b8904]['timer']&&_0x59bd2d[_0x284e48('0x5e')][_0x1b8904][_0x284e48('0x64')](),_0x59bd2d[_0x284e48('0x3c')][_0x1b8904]&&_0x59bd2d['agents'][_0x1b8904][_0x284e48('0x5b')]({'statePause':_0x1df7db[_0x284e48('0x7d')]?!![]:![]}),_0x4947c3({'code':0xc8,'message':_0x284e48('0x48')});});},'Reload':function(_0xd46127){const _0x1d8c1f=this;return new Promise(function(_0x59d7c8,_0x289a34){const _0xe07404=a1132_0x1d8e;if(ami['isConnected']()==![])return _0x289a34(_0x1d8c1f['error'](0x1f4,[config[_0xe07404('0x68')]['ip'],config['asterisk'][_0xe07404('0x62')],'ami\x20disconnected'][_0xe07404('0x3d')]('\x20')));return _0xd46127=_['pick'](_0xd46127,_[_0xe07404('0xd')](properties[_0xe07404('0x6')])),_0xd46127[_0xe07404('0x19')]=_0xe07404('0x27'),ami[_0xe07404('0x17')](_0xd46127)[_0xe07404('0xe')](function(_0x41823e){const _0x2850fb=_0xe07404;_0x59d7c8({'code':0xc8,'message':_0x41823e[_0x2850fb('0x3e')]});})['catch'](function(_0x5b4a70){const _0x270bb2=_0xe07404;_0x289a34(_0x1d8c1f['error'](0x1f5,_0x5b4a70[_0x270bb2('0x3e')]));});});},'Command':function(_0x2ef363){const _0x3458a5=this;return new Promise(function(_0x2100ae,_0x353d3c){const _0x3deb20=a1132_0x1d8e;if(ami[_0x3deb20('0xa')]()==![])return _0x353d3c(_0x3458a5[_0x3deb20('0x38')](0x1f4,[config[_0x3deb20('0x68')]['ip'],config[_0x3deb20('0x68')]['username'],_0x3deb20('0x4b')][_0x3deb20('0x3d')]('\x20')));return _0x2ef363=_['pick'](_0x2ef363,'command'),_0x2ef363[_0x3deb20('0x19')]='Command',ami[_0x3deb20('0x17')](_0x2ef363)['then'](function(_0x3ed4d8){const _0x182af9=_0x3deb20;_0x2100ae({'code':0xc8,'message':_0x3ed4d8[_0x182af9('0xc')]});})[_0x3deb20('0x22')](function(_0x2bd4f3){const _0x19d4e4=_0x3deb20;_0x353d3c(_0x3458a5[_0x19d4e4('0x38')](0x1f5,_0x2bd4f3[_0x19d4e4('0x3e')]));});});},'VoiceQueues':function(){return new Promise(function(_0x50a19f){const _0x1ca692=a1132_0x1d8e,_0x531178=[];for(const _0x81bc65 in _0x59bd2d['voiceQueues']){if(typeof _0x59bd2d[_0x1ca692('0x42')][_0x81bc65]!==_0x1ca692('0x5')){const _0x48afb1=_0x59bd2d[_0x1ca692('0x42')][_0x81bc65],_0x322362={'id':_0x48afb1['id'],'name':_0x48afb1['name'],'strategy':_0x48afb1['strategy'],'answered':_0x48afb1[_0x1ca692('0x49')],'available':_0x48afb1['available'],'loggedIn':_0x48afb1[_0x1ca692('0x3b')],'pTalking':_0x48afb1[_0x1ca692('0x80')],'sumBillable':_0x48afb1[_0x1ca692('0x59')],'sumDuration':_0x48afb1['sumDuration'],'sumHoldTime':_0x48afb1[_0x1ca692('0x46')]||0x0,'talking':_0x48afb1[_0x1ca692('0x55')],'total':_0x48afb1['total'],'type':_0x48afb1[_0x1ca692('0x83')],'unmanaged':_0x48afb1['unmanaged'],'abandoned':_0x48afb1[_0x1ca692('0x37')],'waiting':_0x48afb1[_0x1ca692('0x6b')],'loggedInDb':_0x48afb1[_0x1ca692('0x7e')]};_0x48afb1['type']===_0x1ca692('0x2d')&&(_0x322362[_0x1ca692('0x5f')]=_0x48afb1['dialActive'],_0x322362[_0x1ca692('0x6e')]=_0x48afb1[_0x1ca692('0x6e')],_0x322362[_0x1ca692('0x7c')]=_0x48afb1[_0x1ca692('0x7c')],_0x322362['dialOriginateCallerIdNumber']=_0x48afb1[_0x1ca692('0x4f')],_0x322362[_0x1ca692('0x29')]=_0x48afb1[_0x1ca692('0x29')],_0x322362[_0x1ca692('0x21')]=_0x48afb1['dialPrefix'],_0x322362[_0x1ca692('0x5d')]=_0x48afb1[_0x1ca692('0x5d')],_0x322362[_0x1ca692('0x31')]=_0x48afb1[_0x1ca692('0x31')],_0x322362[_0x1ca692('0x78')]=_0x48afb1['outboundBlacklistCallsDay'],_0x322362[_0x1ca692('0x12')]=_0x48afb1['outboundBusyCallsDay'],_0x322362[_0x1ca692('0x25')]=_0x48afb1['outboundCongestionCallsDay'],_0x322362[_0x1ca692('0x53')]=_0x48afb1[_0x1ca692('0x53')],_0x322362['outboundDropCallsDayCallersExit']=_0x48afb1[_0x1ca692('0x2a')],_0x322362[_0x1ca692('0x6a')]=_0x48afb1[_0x1ca692('0x6a')],_0x322362[_0x1ca692('0x2e')]=_0x48afb1[_0x1ca692('0x2e')],_0x322362[_0x1ca692('0x13')]=_0x48afb1[_0x1ca692('0x13')],_0x322362['outboundOriginateFailureCallsDay']=_0x48afb1[_0x1ca692('0x7')],_0x322362[_0x1ca692('0x7a')]=_0x48afb1[_0x1ca692('0x7a')],_0x322362[_0x1ca692('0x2b')]=_0x48afb1[_0x1ca692('0x2b')],_0x322362[_0x1ca692('0x3a')]=_0x48afb1[_0x1ca692('0x3a')],_0x322362[_0x1ca692('0x45')]=_0x48afb1['predictiveIntervalAnsweredCalls'],_0x322362['predictiveIntervalAvgHoldtime']=_0x48afb1[_0x1ca692('0x2c')],_0x322362[_0x1ca692('0x9')]=_0x48afb1[_0x1ca692('0x9')],_0x322362[_0x1ca692('0x74')]=_0x48afb1[_0x1ca692('0x74')],_0x322362['predictiveIntervalDroppedCallsTimeout']=_0x48afb1['predictiveIntervalDroppedCallsTimeout'],_0x322362[_0x1ca692('0x40')]=_0x48afb1[_0x1ca692('0x40')],_0x322362[_0x1ca692('0x18')]=_0x48afb1[_0x1ca692('0x18')],_0x322362[_0x1ca692('0x66')]=_0x48afb1[_0x1ca692('0x66')],_0x322362['predictiveIntervalMultiplicativeFactor']=_0x48afb1['predictiveIntervalMultiplicativeFactor'],_0x322362[_0x1ca692('0x35')]=_0x48afb1[_0x1ca692('0x35')],_0x322362[_0x1ca692('0x58')]=_0x48afb1['predictiveIntervalAvailable'],_0x322362[_0x1ca692('0x4c')]=_0x48afb1[_0x1ca692('0x4c')],_0x322362[_0x1ca692('0x3e')]=_0x48afb1[_0x1ca692('0x3e')],_0x322362[_0x1ca692('0x5a')]=_0x48afb1[_0x1ca692('0x5a')],_0x322362['erlangCalls']=_0x48afb1[_0x1ca692('0x3')],_0x322362[_0x1ca692('0x5c')]=_0x48afb1[_0x1ca692('0x5c')],_0x322362[_0x1ca692('0x33')]=_0x48afb1[_0x1ca692('0x33')],_0x322362['erlangBusyFactor']=_0x48afb1['erlangBusyFactor'],_0x322362[_0x1ca692('0x56')]=_0x48afb1[_0x1ca692('0x56')],_0x322362['startProgressive']=_0x48afb1[_0x1ca692('0x6f')]),_0x48afb1[_0x1ca692('0x1c')]&&(_0x322362[_0x1ca692('0x1c')]={'id':_0x48afb1[_0x1ca692('0x1c')]['id'],'name':_0x48afb1[_0x1ca692('0x1c')]['name'],'active':_0x48afb1[_0x1ca692('0x1c')][_0x1ca692('0x4d')],'callerid':_0x48afb1['Trunk'][_0x1ca692('0x47')]}),_0x48afb1[_0x1ca692('0x75')]&&(_0x322362[_0x1ca692('0x75')]={'id':_0x48afb1[_0x1ca692('0x75')]['id'],'name':_0x48afb1[_0x1ca692('0x75')][_0x1ca692('0x1a')]}),_0x531178[_0x1ca692('0x28')](_0x322362);}}_0x50a19f({'count':_0x531178[_0x1ca692('0x73')],'rows':_0x531178});});},'VoiceChannels':function(){return new Promise(function(_0x9e75a3){const _0x130bff=a1132_0x1d8e,_0x16c6e3=_[_0x130bff('0x51')](_0x59bd2d[_0x130bff('0x7b')]);_0x9e75a3({'count':_0x16c6e3[_0x130bff('0x73')],'rows':_0x16c6e3});});},'VoiceChannelMixMonitor':function(_0x2fe59b){const _0x470bfe=this;return new Promise(function(_0x286dd3,_0x39c540){const _0x194fd0=a1132_0x1d8e;if(ami[_0x194fd0('0xa')]()==![])return _0x39c540(_0x470bfe[_0x194fd0('0x38')](0x1f4,[config[_0x194fd0('0x68')]['ip'],config[_0x194fd0('0x68')][_0x194fd0('0x62')],'ami\x20disconnected'][_0x194fd0('0x3d')]('\x20')));const _0x5ddecc=schema(properties[_0x194fd0('0x39')])[_0x194fd0('0x1d')](_0x2fe59b);if(_0x5ddecc[_0x194fd0('0x73')]>0x0)return _0x39c540(_0x470bfe[_0x194fd0('0x38')](0x1f4,_[_0x194fd0('0x3f')](_0x5ddecc,_0x194fd0('0x3e'))[_0x194fd0('0x3d')](',\x20')));const _0x4726a7=_['find'](_0x59bd2d[_0x194fd0('0x7b')],{'uniqueid':_0x2fe59b['uniqueid']});if(_0x4726a7&&_0x4726a7['channel']){const _0x3915c7=util['format'](_0x194fd0('0x1f'),_0x2fe59b[_0x194fd0('0x15')]||_0x2fe59b['uniqueid'],_0x2fe59b[_0x194fd0('0x11')]||_0x194fd0('0x50'));return ami['Action']({'action':_0x194fd0('0x81'),'channel':_0x4726a7[_0x194fd0('0x76')],'file':_0x3915c7,'options':_0x194fd0('0x77')})[_0x194fd0('0xe')](function(_0x2997be){const _0x4d374d=_0x194fd0,_0x3c191b=_['find'](_0x4726a7[_0x4d374d('0x26')],{'filename':'/var/spool/asterisk/monitor/'+_0x3915c7[_0x4d374d('0x30')]()});_[_0x4d374d('0x6c')](_0x3c191b)?_0x4726a7['monitors'][_0x4d374d('0x28')]({'filename':'/var/spool/asterisk/monitor/'+_0x3915c7[_0x4d374d('0x30')](),'createdAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'mixmonitorid':_0x2997be[_0x4d374d('0x71')],'status':_0x4d374d('0x10')}):(_0x3c191b['mixmonitorid']=_0x2997be[_0x4d374d('0x71')],_0x3c191b[_0x4d374d('0x54')]=_0x4d374d('0x10')),_0x286dd3({'code':0xc8,'message':[_0x2fe59b[_0x4d374d('0x4')],_0x4d374d('0x79'),_0x2997be[_0x4d374d('0x71')]]['join']('\x20'),'mixmonitorid':_0x2997be[_0x4d374d('0x71')]});})[_0x194fd0('0x22')](function(_0xb9c3b9){const _0x1f62ac=_0x194fd0;_0x39c540(_0x470bfe[_0x1f62ac('0x38')](0x1f5,[_0x2fe59b['uniqueid'],_0xb9c3b9['message'][_0x1f62ac('0x30')]()][_0x1f62ac('0x3d')]('\x20')));});}else return _0x39c540(_0x470bfe['error'](0x1f5,_0x194fd0('0x0')));});},'VoiceChannelStopMixMonitor':function(_0x25583a){const _0x115598=this;return new Promise(function(_0x201d7e,_0x3405d7){const _0x2dbf20=a1132_0x1d8e;if(ami[_0x2dbf20('0xa')]()==![])return _0x3405d7(_0x115598['error'](0x1f4,[config[_0x2dbf20('0x68')]['ip'],config[_0x2dbf20('0x68')]['username'],_0x2dbf20('0x4b')]['join']('\x20')));const _0x1b4828=schema(properties['voicechannel'])[_0x2dbf20('0x1d')](_0x25583a);if(_0x1b4828[_0x2dbf20('0x73')]>0x0)return _0x3405d7(_0x115598['error'](0x1f4,_[_0x2dbf20('0x3f')](_0x1b4828,'message')['join'](',\x20')));const _0x24bad3=_['find'](_0x59bd2d[_0x2dbf20('0x7b')],{'uniqueid':_0x25583a['uniqueid']});return _0x24bad3?Promise[_0x2dbf20('0x67')]()[_0x2dbf20('0xe')](function(){const _0x1fa2b9=_0x2dbf20;if(_0x24bad3['channel'])return ami[_0x1fa2b9('0x17')]({'action':'StopMixMonitor','channel':_0x24bad3[_0x1fa2b9('0x76')],'mixmonitorid':_0x25583a['mixmonitorid']})['catch'](function(){});})[_0x2dbf20('0xe')](function(){const _0x5bf75d=_0x2dbf20;if(_0x24bad3['destinationchannel'])return ami[_0x5bf75d('0x17')]({'action':_0x5bf75d('0x44'),'channel':_0x24bad3[_0x5bf75d('0x1e')],'mixmonitorid':_0x25583a['mixmonitorid']})[_0x5bf75d('0x22')](function(){});})[_0x2dbf20('0xe')](function(){const _0x11d4a2=_0x2dbf20,_0x29f9bb=_[_0x11d4a2('0x60')](_0x24bad3[_0x11d4a2('0x26')],{'mixmonitorid':_0x25583a['mixmonitorid']});_0x29f9bb&&(_0x29f9bb[_0x11d4a2('0x54')]=_0x11d4a2('0x82'));})[_0x2dbf20('0xe')](function(){const _0x4c1ef0=_0x2dbf20,_0x4a7b77=util['format']('%s.%s',_0x25583a[_0x4c1ef0('0x15')]||_0x25583a[_0x4c1ef0('0x4')],_0x25583a['format']||_0x4c1ef0('0x50')),_0x12afb0=_['find'](_0x24bad3[_0x4c1ef0('0x26')],{'filename':_0x4c1ef0('0x20')+_0x4a7b77[_0x4c1ef0('0x30')]()});_0x12afb0&&(_0x12afb0[_0x4c1ef0('0x54')]='stop');})[_0x2dbf20('0xe')](function(){const _0x1b2d7c=_0x2dbf20;_0x201d7e({'code':0xc8,'message':[_0x25583a[_0x1b2d7c('0x4')],_0x1b2d7c('0x1')]['join']('\x20')});})['catch'](function(_0x316ee3){const _0x5da58f=_0x2dbf20;_0x3405d7(_0x115598[_0x5da58f('0x38')](0x1f5,[_0x25583a[_0x5da58f('0x4')],_0x316ee3[_0x5da58f('0x3e')][_0x5da58f('0x30')]()][_0x5da58f('0x3d')]('\x20')));}):_0x3405d7(_0x115598['error'](0x1f5,_0x2dbf20('0x0')));});},'VoiceQueuesChannels':function(){return new Promise(function(_0xf10916){const _0x1aed0b=a1132_0x1d8e,_0x231df5=_[_0x1aed0b('0x51')](_0x59bd2d['queueChannels']);_0xf10916({'count':_0x231df5[_0x1aed0b('0x73')],'rows':_0x231df5});});},'VoiceQueuesChannel':function(_0x11bb02){const _0x38ddad=this;return new Promise(function(_0x35655c,_0x2396b6){const _0x44863d=a1132_0x1d8e,_0x28685c=schema(properties[_0x44863d('0x8')])['validate'](_0x11bb02);if(_0x28685c[_0x44863d('0x73')]>0x0)return _0x2396b6(_0x38ddad[_0x44863d('0x38')](0x1f4,_['map'](_0x28685c,_0x44863d('0x3e'))[_0x44863d('0x3d')](',\x20')));const _0x21a22e=_['find'](_0x59bd2d[_0x44863d('0xf')],{'uniqueid':_0x11bb02[_0x44863d('0x4')]});if(_0x21a22e)_0x35655c(_0x21a22e);else return _0x2396b6(_0x38ddad[_0x44863d('0x38')](0x1f5,_0x44863d('0x0')));});},'VoiceQueuesChannelHangup':function(_0x4414b2){const _0x23326b=this;return new Promise(function(_0x54cf2d,_0xccc7e){const _0x30507b=a1132_0x1d8e;if(ami[_0x30507b('0xa')]()==![])return _0xccc7e(_0x23326b['error'](0x1f4,[config[_0x30507b('0x68')]['ip'],config['asterisk']['username'],_0x30507b('0x4b')][_0x30507b('0x3d')]('\x20')));const _0x9ea04=schema(properties['voicequeuechannelhangup'])['validate'](_0x4414b2);if(_0x9ea04[_0x30507b('0x73')]>0x0)return _0xccc7e(_0x23326b[_0x30507b('0x38')](0x1f4,_[_0x30507b('0x3f')](_0x9ea04,_0x30507b('0x3e'))['join'](',\x20')));const _0xccb8ee=_[_0x30507b('0x60')](_0x59bd2d['queueChannels'],{'uniqueid':_0x4414b2['uniqueid']});return _0xccb8ee&&_0xccb8ee[_0x30507b('0x76')]?ami['Action']({'action':_0x30507b('0x16'),'channel':_0xccb8ee['channel']})[_0x30507b('0xe')](function(_0x241d2e){const _0x5d53d9=_0x30507b;_0x54cf2d({'code':0xc8,'message':[_0x4414b2['uniqueid'],_0x241d2e[_0x5d53d9('0x3e')][_0x5d53d9('0x30')]()][_0x5d53d9('0x3d')]('\x20')});})[_0x30507b('0x22')](function(_0x36d20c){const _0x18e6e6=_0x30507b;_0xccc7e(_0x23326b[_0x18e6e6('0x38')](0x1f5,[_0x4414b2[_0x18e6e6('0x4')],_0x36d20c[_0x18e6e6('0x3e')][_0x18e6e6('0x30')]()][_0x18e6e6('0x3d')]('\x20')));}):_0xccc7e(_0x23326b['error'](0x1f5,_0x30507b('0x0')));});},'VoiceQueuesChannelRedirect':function(_0xc0aa7e){const _0x12d1c4=this;return new Promise(function(_0x269458,_0x2b3c68){const _0xb728cf=a1132_0x1d8e;if(ami['isConnected']()==![])return _0x2b3c68(_0x12d1c4['error'](0x1f4,[config[_0xb728cf('0x68')]['ip'],config[_0xb728cf('0x68')][_0xb728cf('0x62')],_0xb728cf('0x4b')]['join']('\x20')));const _0x25e1a3=schema(properties[_0xb728cf('0x6d')])[_0xb728cf('0x1d')](_0xc0aa7e);if(_0x25e1a3[_0xb728cf('0x73')]>0x0)return _0x2b3c68(_0x12d1c4[_0xb728cf('0x38')](0x1f4,_[_0xb728cf('0x3f')](_0x25e1a3,'message')['join'](',\x20')));const _0x4f49d1=_[_0xb728cf('0x60')](_0x59bd2d[_0xb728cf('0xf')],{'uniqueid':_0xc0aa7e[_0xb728cf('0x4')]});return _0x4f49d1&&_0x4f49d1['channel']?ami['Action']({'action':_0xb728cf('0x32'),'channel':_0x4f49d1[_0xb728cf('0x76')],'exten':_0xc0aa7e[_0xb728cf('0x57')],'context':_0xc0aa7e[_0xb728cf('0x1b')]||_0x4f49d1[_0xb728cf('0x1b')],'priority':0x1})[_0xb728cf('0xe')](function(_0x41a76f){const _0x32509d=_0xb728cf;_0x269458({'code':0xc8,'message':[_0xc0aa7e[_0x32509d('0x4')],_0x41a76f['message'][_0x32509d('0x30')]()][_0x32509d('0x3d')]('\x20')});})[_0xb728cf('0x22')](function(_0x512d7d){const _0x556c2c=_0xb728cf;_0x2b3c68(_0x12d1c4[_0x556c2c('0x38')](0x1f5,[_0xc0aa7e[_0x556c2c('0x4')],_0x512d7d[_0x556c2c('0x3e')][_0x556c2c('0x30')]()][_0x556c2c('0x3d')]('\x20')));}):_0x2b3c68(_0x12d1c4['error'](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'Agents':function(){return new Promise(function(_0x51d505){const _0x226311=a1132_0x1d8e,_0x21c484=_[_0x226311('0x51')](_0x59bd2d[_0x226311('0x3c')]);_0x51d505({'count':_0x21c484[_0x226311('0x73')],'rows':_0x21c484});});},'Telephones':function(){return new Promise(function(_0x3a8c50){const _0x243e95=a1132_0x1d8e,_0x254e76=_[_0x243e95('0x51')](_0x59bd2d[_0x243e95('0x4e')]);_0x3a8c50({'count':_0x254e76[_0x243e95('0x73')],'rows':_0x254e76});});},'Trunks':function(){return new Promise(function(_0x676ba0){const _0x38455c=a1132_0x1d8e,_0x537d98=_[_0x38455c('0x51')](_0x59bd2d['trunks']);_0x676ba0({'count':_0x537d98[_0x38455c('0x73')],'rows':_0x537d98});});},'OutboundChannels':function(){return new Promise(function(_0x1611a5){const _0x469be2=a1132_0x1d8e,_0x4672c5=_[_0x469be2('0x51')](_0x59bd2d[_0x469be2('0xb')]);_0x1611a5({'count':_0x4672c5[_0x469be2('0x73')],'rows':_0x4672c5});});},'Outbound':function(){return new Promise(function(_0x3f7aef){const _0xedb741=a1132_0x1d8e;_0x3f7aef(_0x59bd2d[_0xedb741('0x2d')]);});},'Campaigns':function(){return new Promise(function(_0x58e600){const _0x5f4685=a1132_0x1d8e,_0x28cb87=_[_0x5f4685('0x51')](_0x59bd2d[_0x5f4685('0x70')]);_0x58e600({'count':_0x28cb87[_0x5f4685('0x73')],'rows':_0x28cb87});});},'VoiceQueuesPreview':function(_0x10e4fa){const _0x326cd2=this;return new Promise(function(_0x2b3b58,_0x410aa2){const _0x58ffb6=a1132_0x1d8e;_0x159c86[_0x58ffb6('0x4a')](_0x10e4fa['id'])[_0x58ffb6('0xe')](function(_0x1d5046){const _0x5a4079=_0x58ffb6;_0x2b3b58({'code':0xc8,'message':_0x1d5046[_0x5a4079('0x3e')]});})[_0x58ffb6('0x22')](function(_0x3c269b){const _0x332af4=_0x58ffb6;_0x410aa2(_0x326cd2[_0x332af4('0x38')](0x1f4,_0x3c269b[_0x332af4('0x3e')]));});});},'EventManager':function(_0x26bed6){const _0x5d4252=this;return new Promise(function(_0x3ea022,_0x37ca1e){const _0x6efbb4=a1132_0x1d8e;if(!_0x26bed6[_0x6efbb4('0x2f')])return _0x37ca1e(_0x5d4252[_0x6efbb4('0x38')](0x1f4,_0x6efbb4('0x69')));ami['emit'](_0x6efbb4('0x36')+_0x26bed6[_0x6efbb4('0x2f')],_0x26bed6['message']),_0x3ea022({'code':0xc8,'message':_0x26bed6});});},'FaxAccounts':function(){return new Promise(function(_0x3f2fc3){const _0x493e9d=a1132_0x1d8e,_0x3c2b4c=_[_0x493e9d('0x51')](_0x59bd2d[_0x493e9d('0x41')]);_0x3f2fc3({'count':_0x3c2b4c[_0x493e9d('0x73')],'rows':_0x3c2b4c});});},'SendFax':function(_0x51f720){const _0x25f6c4=this;return new Promise(function(_0x4a85ca,_0x19caaf){const _0x3eb624=a1132_0x1d8e;_0x48918b[_0x3eb624('0x14')](_0x51f720)['then'](function(_0x1f2852){const _0x104d20=_0x3eb624;_0x4a85ca({'code':0xc8,'message':_0x1f2852[_0x104d20('0x3e')]});})[_0x3eb624('0x22')](function(_0x3e6ae0){const _0x162867=_0x3eb624;_0x19caaf(_0x25f6c4[_0x162867('0x38')](0x1f4,_0x3e6ae0[_0x162867('0x3e')]));});});},'CheckAfterSend':function(_0x5f3756){const _0xe24f20=this;return new Promise(function(_0x4d0f6f,_0x184db1){const _0x213547=a1132_0x1d8e;_0x48918b[_0x213547('0x7f')](_0x5f3756)[_0x213547('0xe')](function(_0x4684f2){const _0xd27aa1=_0x213547;_0x4d0f6f({'code':0xc8,'message':_0x4684f2[_0xd27aa1('0x3e')]});})[_0x213547('0x22')](function(_0x3375f4){const _0x43d4f7=_0x213547;_0x184db1(_0xe24f20['error'](0x1f4,_0x3375f4[_0x43d4f7('0x3e')]));});});}},_0xd66b0e=jayson['server'](_0x572507)[_0x21da5c('0x52')]();_0xd66b0e['on'](_0x21da5c('0x38'),function(_0xe62a2e){return _0x2dbd36(_0xe62a2e);}),_0xd66b0e[_0x21da5c('0x23')](0x232a,_0x21da5c('0x2'),function(){const _0x2c7916=_0x21da5c;return console[_0x2c7916('0x34')](_0x2c7916('0x61'),0x232a),_0x432f39(_0x2c7916('0x65')+0x232a);});});}; \ No newline at end of file diff --git a/server/services/ami/trigger/cmContact/index.js b/server/services/ami/trigger/cmContact/index.js index cda075e..a49bd94 100644 --- a/server/services/ami/trigger/cmContact/index.js +++ b/server/services/ami/trigger/cmContact/index.js @@ -1 +1 @@ -const a1133_0x50ac=['phone','lodash','createdAt','destcalleridnum','[CM][%s][%s]\x20Contact\x20found:%s','join','firstName','isNil','','[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]','getContacts','merge','format','destcalleridname','../../../../rediscache','stringify','lastName','updatedAt','info','ListId','[CM][%s][%s]\x20Autocreate\x20enabled','isEmpty','split','exec','uniqueid','routeId','map','then','util','resolve','calleridname','data1','trigger','data4','[CM][%s][%s]\x20Contact\x20created:%s','data2','fax','user:%s','Unknown','createContact','sequelize','emit','calleridnum','xmd-contactid2','data3','action','../../../../config/logger','[CM][%s][%s]'];(function(_0x363bca,_0x50ac4d){const _0x393f62=function(_0x17a057){while(--_0x17a057){_0x363bca['push'](_0x363bca['shift']());}};_0x393f62(++_0x50ac4d);}(a1133_0x50ac,0x16d));const a1133_0x393f=function(_0x363bca,_0x50ac4d){_0x363bca=_0x363bca-0x0;let _0x393f62=a1133_0x50ac[_0x363bca];return _0x393f62;};const _0x442b27=a1133_0x393f;'use strict';const util=require(_0x442b27('0x2f')),_=require(_0x442b27('0x14')),logger=require(_0x442b27('0x11'))(_0x442b27('0x3')),cmContactRpc=require('../../rpc/cmContact'),{Op}=require(_0x442b27('0xb')),{getSocket}=require(_0x442b27('0x21')),io=getSocket();function emit(_0x17a057,_0x26314f,_0x55d81e,_0x442733,_0x21fbf6){const _0x4e5ec1=_0x442b27;logger[_0x4e5ec1('0x25')](_0x4e5ec1('0x12'),_0x17a057,_0x26314f['id'],_0x55d81e,_0x442733,JSON[_0x4e5ec1('0x22')](_0x21fbf6)),io['to'](_0x55d81e)[_0x4e5ec1('0xc')](_0x442733,_0x21fbf6);}exports[_0x442b27('0x2a')]=function(_0x3e7c55,_0x19a722,_0x4e67c0,_0x11c178){const _0x2ed3d0=_0x442b27;let _0x369b4b,_0x30502f;const _0x58791a={},_0x951b3c=Number(_0x4e67c0[_0x2ed3d0('0x2')]),_0x17999f=_0x4e67c0[_0x2ed3d0('0x6')]?Boolean(Number(_0x4e67c0[_0x2ed3d0('0x6')])):![];let _0x383b6f=[];if(_0x11c178[_0x2ed3d0('0xe')]&&!_[_0x2ed3d0('0x28')](_0x11c178[_0x2ed3d0('0xe')]))_0x58791a['id']=_0x11c178['xmd-contactid2'];!_0x58791a['id']&&(_0x58791a[_0x2ed3d0('0x26')]=_0x951b3c,_0x383b6f=_0x4e67c0[_0x2ed3d0('0xf')]&&_0x4e67c0[_0x2ed3d0('0xf')]!=='0'?_0x4e67c0[_0x2ed3d0('0xf')][_0x2ed3d0('0x29')](','):[_0x2ed3d0('0x13')],_0x58791a[Op['or']]=_[_0x2ed3d0('0x2d')](_0x383b6f,function(_0x2371e9){const _0x3aacfa=_0x2ed3d0,_0x585d63={};return _0x585d63[_0x2371e9]=_0x11c178['routeId']?_0x11c178[_0x3aacfa('0x16')]:_0x11c178[_0x3aacfa('0xd')],_0x585d63;}));const _0x3a83d9=['id',_0x2ed3d0('0x19'),_0x2ed3d0('0x23'),'phone','mobile',_0x2ed3d0('0x7'),_0x2ed3d0('0x26'),_0x2ed3d0('0x15'),'scheduledAt',_0x2ed3d0('0x24')],_0x2c7b4a=_['union'](_0x3a83d9,_0x383b6f);Promise[_0x2ed3d0('0x0')]()[_0x2ed3d0('0x2e')](cmContactRpc[_0x2ed3d0('0x1d')]({'attributes':_0x2c7b4a,'where':_0x58791a}))[_0x2ed3d0('0x2e')](function(_0x36c79e){const _0x406e0f=_0x2ed3d0;_0x30502f=_0x36c79e;if(!_[_0x406e0f('0x28')](_0x30502f)){_0x30502f['length']===0x1?(_0x369b4b=_0x30502f[0x0],logger[_0x406e0f('0x25')](_0x406e0f('0x17'),_0x11c178[_0x406e0f('0x2b')],_0x19a722['id'],_0x369b4b['id'])):logger[_0x406e0f('0x25')](_0x406e0f('0x1c'),_0x11c178[_0x406e0f('0x2b')],_0x19a722['id'],_[_0x406e0f('0x2d')](_0x30502f,'id')[_0x406e0f('0x18')](','));return;}else{logger[_0x406e0f('0x25')]('[CM][%s][%s]\x20Contact\x20not\x20found',_0x11c178['uniqueid'],_0x19a722['id']);if(_0x17999f){logger[_0x406e0f('0x25')](_0x406e0f('0x27'),_0x11c178[_0x406e0f('0x2b')],_0x19a722['id']);const _0x1fa8f7=_0x4e67c0[_0x406e0f('0x4')]&&_0x4e67c0[_0x406e0f('0x4')]!=='0'?_0x4e67c0['data4']:'phone',_0x2eb84b={'ListId':_0x951b3c};return _0x2eb84b[_0x1fa8f7]=_[_0x406e0f('0x1a')](_0x11c178['routeId'])?_0x11c178['calleridnum']:_0x11c178[_0x406e0f('0x16')],_[_0x406e0f('0x1a')](_0x11c178[_0x406e0f('0x2c')])?_0x2eb84b[_0x406e0f('0x19')]=_0x11c178[_0x406e0f('0x1')]&&_0x11c178[_0x406e0f('0x1')]!==_0x406e0f('0x1b')?_0x11c178[_0x406e0f('0x1')]:_0x406e0f('0x9'):_0x2eb84b[_0x406e0f('0x19')]=_0x11c178[_0x406e0f('0x20')]&&_0x11c178[_0x406e0f('0x20')]!==_0x406e0f('0x1b')?_0x11c178[_0x406e0f('0x20')]:_0x406e0f('0x9'),Promise[_0x406e0f('0x0')]()[_0x406e0f('0x2e')](cmContactRpc[_0x406e0f('0xa')](_0x2eb84b))[_0x406e0f('0x2e')](function(_0x1f8e5f){const _0x526391=_0x406e0f;_0x369b4b=_0x1f8e5f;_0x369b4b&&logger[_0x526391('0x25')](_0x526391('0x5'),_0x11c178[_0x526391('0x2b')],_0x19a722['id'],_0x369b4b['id']);return;});}else{logger[_0x406e0f('0x25')]('[CM][%s][%s]\x20Autocreate\x20disabled',_0x11c178[_0x406e0f('0x2b')],_0x19a722['id']);return;}}})[_0x2ed3d0('0x2e')](function(){const _0x252090=_0x2ed3d0;_0x3e7c55&&emit(_0x11c178[_0x252090('0x2b')],_0x19a722,util[_0x252090('0x1f')](_0x252090('0x8'),_0x3e7c55['name']),util[_0x252090('0x1f')]('trigger:%s',_0x4e67c0[_0x252090('0x10')]['toLowerCase']()),{'evt':_[_0x252090('0x1e')](_0x11c178,{'autoCreate':_0x17999f}),'contact':_0x369b4b,'contacts':!_0x369b4b?_0x30502f:undefined});});}; \ No newline at end of file +const a1133_0x4961=['util','calleridname','fax','split','isEmpty','../../../../rediscache','[CM][%s][%s]\x20Contact\x20created:%s','data3','sequelize','createContact','map','destcalleridname','data4','firstName','phone','../../rpc/cmContact','then','getContacts','exec','Unknown','scheduledAt','length','ListId','info','xmd-contactid2','isNil','[CM][%s][%s]\x20Autocreate\x20enabled','resolve','calleridnum','createdAt','union','name','lodash','action','[CM][%s][%s]\x20Contact\x20not\x20found','[CM][%s][%s]\x20Autocreate\x20disabled','user:%s','uniqueid','data2','data1','[CM][%s][%s]','','merge','stringify','format','routeId','emit','trigger','mobile'];(function(_0x4dda5a,_0x49612a){const _0x1061a7=function(_0x21425f){while(--_0x21425f){_0x4dda5a['push'](_0x4dda5a['shift']());}};_0x1061a7(++_0x49612a);}(a1133_0x4961,0x12c));const a1133_0x1061=function(_0x4dda5a,_0x49612a){_0x4dda5a=_0x4dda5a-0x0;let _0x1061a7=a1133_0x4961[_0x4dda5a];return _0x1061a7;};const _0x53ae93=a1133_0x1061;'use strict';const util=require(_0x53ae93('0x2b')),_=require(_0x53ae93('0x1a')),logger=require('../../../../config/logger')(_0x53ae93('0x29')),cmContactRpc=require(_0x53ae93('0x9')),{Op}=require(_0x53ae93('0x2')),{getSocket}=require(_0x53ae93('0x30')),io=getSocket();function emit(_0x21425f,_0x47062d,_0x103a99,_0x334968,_0x4383ee){const _0x4fece5=_0x53ae93;logger[_0x4fece5('0x11')](_0x4fece5('0x22'),_0x21425f,_0x47062d['id'],_0x103a99,_0x334968,JSON[_0x4fece5('0x25')](_0x4383ee)),io['to'](_0x103a99)[_0x4fece5('0x28')](_0x334968,_0x4383ee);}exports[_0x53ae93('0xc')]=function(_0xf2c4a3,_0x19fb11,_0x4536e2,_0x5b1121){const _0x189f57=_0x53ae93;let _0x36961f,_0x726d35;const _0x54e2e0={},_0x1dd9fa=Number(_0x4536e2[_0x189f57('0x21')]),_0xce17cb=_0x4536e2['data2']?Boolean(Number(_0x4536e2[_0x189f57('0x20')])):![];let _0x5238e4=[];if(_0x5b1121[_0x189f57('0x12')]&&!_[_0x189f57('0x2f')](_0x5b1121[_0x189f57('0x12')]))_0x54e2e0['id']=_0x5b1121['xmd-contactid2'];!_0x54e2e0['id']&&(_0x54e2e0[_0x189f57('0x10')]=_0x1dd9fa,_0x5238e4=_0x4536e2[_0x189f57('0x1')]&&_0x4536e2[_0x189f57('0x1')]!=='0'?_0x4536e2[_0x189f57('0x1')][_0x189f57('0x2e')](','):[_0x189f57('0x8')],_0x54e2e0[Op['or']]=_['map'](_0x5238e4,function(_0x110af2){const _0x2eda1c=_0x189f57,_0x11e641={};return _0x11e641[_0x110af2]=_0x5b1121[_0x2eda1c('0x27')]?_0x5b1121['destcalleridnum']:_0x5b1121[_0x2eda1c('0x16')],_0x11e641;}));const _0x186f6b=['id',_0x189f57('0x7'),'lastName','phone',_0x189f57('0x2a'),_0x189f57('0x2d'),_0x189f57('0x10'),_0x189f57('0x17'),_0x189f57('0xe'),'updatedAt'],_0x15ef75=_[_0x189f57('0x18')](_0x186f6b,_0x5238e4);Promise[_0x189f57('0x15')]()[_0x189f57('0xa')](cmContactRpc[_0x189f57('0xb')]({'attributes':_0x15ef75,'where':_0x54e2e0}))[_0x189f57('0xa')](function(_0x2967c4){const _0x11835e=_0x189f57;_0x726d35=_0x2967c4;if(!_[_0x11835e('0x2f')](_0x726d35)){_0x726d35[_0x11835e('0xf')]===0x1?(_0x36961f=_0x726d35[0x0],logger[_0x11835e('0x11')]('[CM][%s][%s]\x20Contact\x20found:%s',_0x5b1121[_0x11835e('0x1f')],_0x19fb11['id'],_0x36961f['id'])):logger['info']('[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]',_0x5b1121[_0x11835e('0x1f')],_0x19fb11['id'],_[_0x11835e('0x4')](_0x726d35,'id')['join'](','));return;}else{logger[_0x11835e('0x11')](_0x11835e('0x1c'),_0x5b1121[_0x11835e('0x1f')],_0x19fb11['id']);if(_0xce17cb){logger['info'](_0x11835e('0x14'),_0x5b1121[_0x11835e('0x1f')],_0x19fb11['id']);const _0x1c6327=_0x4536e2['data4']&&_0x4536e2[_0x11835e('0x6')]!=='0'?_0x4536e2['data4']:_0x11835e('0x8'),_0x478f8b={'ListId':_0x1dd9fa};return _0x478f8b[_0x1c6327]=_[_0x11835e('0x13')](_0x5b1121['routeId'])?_0x5b1121[_0x11835e('0x16')]:_0x5b1121['destcalleridnum'],_[_0x11835e('0x13')](_0x5b1121[_0x11835e('0x27')])?_0x478f8b[_0x11835e('0x7')]=_0x5b1121[_0x11835e('0x2c')]&&_0x5b1121[_0x11835e('0x2c')]!==_0x11835e('0x23')?_0x5b1121['calleridname']:'Unknown':_0x478f8b['firstName']=_0x5b1121[_0x11835e('0x5')]&&_0x5b1121[_0x11835e('0x5')]!==_0x11835e('0x23')?_0x5b1121[_0x11835e('0x5')]:_0x11835e('0xd'),Promise[_0x11835e('0x15')]()[_0x11835e('0xa')](cmContactRpc[_0x11835e('0x3')](_0x478f8b))['then'](function(_0x3001eb){const _0x37b861=_0x11835e;_0x36961f=_0x3001eb;_0x36961f&&logger[_0x37b861('0x11')](_0x37b861('0x0'),_0x5b1121[_0x37b861('0x1f')],_0x19fb11['id'],_0x36961f['id']);return;});}else{logger['info'](_0x11835e('0x1d'),_0x5b1121[_0x11835e('0x1f')],_0x19fb11['id']);return;}}})[_0x189f57('0xa')](function(){const _0x7eea4f=_0x189f57;_0xf2c4a3&&emit(_0x5b1121[_0x7eea4f('0x1f')],_0x19fb11,util[_0x7eea4f('0x26')](_0x7eea4f('0x1e'),_0xf2c4a3[_0x7eea4f('0x19')]),util['format']('trigger:%s',_0x4536e2[_0x7eea4f('0x1b')]['toLowerCase']()),{'evt':_[_0x7eea4f('0x24')](_0x5b1121,{'autoCreate':_0xce17cb}),'contact':_0x36961f,'contacts':!_0x36961f?_0x726d35:undefined});});}; \ No newline at end of file diff --git a/server/services/ami/trigger/index.js b/server/services/ami/trigger/index.js index 3fbb72d..79d396d 100644 --- a/server/services/ami/trigger/index.js +++ b/server/services/ami/trigger/index.js @@ -1 +1 @@ -const a1134_0x9240=['render','data2','queue','voiceQueues','status','name','uri','format','data3','mustache','upperFirst','browser','field','freshsalesAccounts','channel','lastevent','custom:acceptmessage','voiceExtensions','merge','Actions','some','agents','triggers','servicenowAccounts','value','custom:newinteraction','trigger:%s','freshdeskAccounts','data1','custom:incomingmessage','url','buildUri','util','data5','custom:closedinteraction','checkTrigger','location','contactmanager','./script','length','../../../config/logger','user:%s','./cmContact','routeId','custom:agentnosuchnumber','trigger:%s:%s','stringify','accounts','custom:queuecallerabandon','every','custom:agentbusy','dynamics365Accounts','data6','custom:agentcalled','custom:dialend','operator','custom:agentcongestion','winapp','prototype','600','parse','emit','../ami','membername','AccountId','clone','replace','zohoAccounts','ChatWebsiteId','../../../rediscache','message','zendeskAccounts','deskAccounts','windowHeight','checkTriggers','urlforward','chat','action','undefined','html','custom:rejectmessage','AnyConditions','checkConditions','data4','custom:dialbegin','event','bind','custom:timeout','motionbar','syncAgentDial','sugarcrmAccounts','winArguments','syncCustomEvent','custom:outgoingmessage','exports','winApplication','TemplateId','interface','query','template\x20not\x20found','custom:agentcomplete','interaction','search','exec','toLowerCase','templates','salesforceAccounts','isNil','custom:dialconnect','custom:agentconnect'];(function(_0x9cb63b,_0x9240b9){const _0x2071a2=function(_0x401345){while(--_0x401345){_0x9cb63b['push'](_0x9cb63b['shift']());}};_0x2071a2(++_0x9240b9);}(a1134_0x9240,0x17f));const a1134_0x2071=function(_0x9cb63b,_0x9240b9){_0x9cb63b=_0x9cb63b-0x0;let _0x2071a2=a1134_0x9240[_0x9cb63b];return _0x2071a2;};const _0x2ca7c4=a1134_0x2071;'use strict';const util=require(_0x2ca7c4('0x59')),_=require('lodash'),url=require(_0x2ca7c4('0x57')),Mustache=require(_0x2ca7c4('0x42')),urlforward=require('./urlforward'),integration=require('./integration'),cmContact=require(_0x2ca7c4('0x63')),script=require(_0x2ca7c4('0x5f')),logger=require(_0x2ca7c4('0x61'))('trigger'),ami=require(_0x2ca7c4('0x9')),{getSocket}=require(_0x2ca7c4('0x10')),io=getSocket(),operators={'equals':function(_0x401345,_0x5ce0ec){return _0x401345==_0x5ce0ec;},'not_equals':function(_0x374466,_0x55aaee){return _0x374466!=_0x55aaee;}},barAndWebActions=['popup',_0x2ca7c4('0x57'),_0x2ca7c4('0x4')];function Trigger(_0x5e787c){const _0x5b9b53=_0x2ca7c4;this[_0x5b9b53('0x4f')]=_0x5e787c['triggers'],this[_0x5b9b53('0x4e')]=_0x5e787c[_0x5b9b53('0x4e')],this[_0x5b9b53('0x3c')]=_0x5e787c[_0x5b9b53('0x3c')],this[_0x5b9b53('0x34')]=_0x5e787c['templates'],this[_0x5b9b53('0x4a')]=_0x5e787c[_0x5b9b53('0x4a')],this[_0x5b9b53('0x12')]=_0x5e787c['zendeskAccounts'],this['freshdeskAccounts']=_0x5e787c[_0x5b9b53('0x54')],this[_0x5b9b53('0x35')]=_0x5e787c[_0x5b9b53('0x35')],this[_0x5b9b53('0x25')]=_0x5e787c[_0x5b9b53('0x25')],this[_0x5b9b53('0xe')]=_0x5e787c[_0x5b9b53('0xe')],this['deskAccounts']=_0x5e787c[_0x5b9b53('0x13')],this['vtigerAccounts']=_0x5e787c['vtigerAccounts'],this[_0x5b9b53('0x50')]=_0x5e787c['servicenowAccounts'],this['dynamics365Accounts']=_0x5e787c[_0x5b9b53('0x6c')],this['freshsalesAccounts']=_0x5e787c[_0x5b9b53('0x46')],this[_0x5b9b53('0x68')]={'zendesk':this[_0x5b9b53('0x12')],'salesforce':this['salesforceAccounts'],'freshdesk':this[_0x5b9b53('0x54')],'sugarcrm':this[_0x5b9b53('0x25')],'zoho':this[_0x5b9b53('0xe')],'desk':this[_0x5b9b53('0x13')],'vtiger':this['vtigerAccounts'],'dynamics365':this[_0x5b9b53('0x6c')],'freshsales':this[_0x5b9b53('0x46')],'servicenow':this[_0x5b9b53('0x50')]},ami['on'](_0x5b9b53('0x0'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x38'),this[_0x5b9b53('0x27')]['bind'](this)),ami['on']('custom:agentringnoanswer',this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x2f'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x65'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on']('custom:agentnoanswer',this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x6b'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x3'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on']('custom:agentreject',this['syncCustomEvent'][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x69'),this[_0x5b9b53('0x27')]['bind'](this)),ami['on'](_0x5b9b53('0x22'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x1f'),this[_0x5b9b53('0x24')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x37'),this[_0x5b9b53('0x24')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x1'),this[_0x5b9b53('0x24')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x52'),this[_0x5b9b53('0x27')]['bind'](this)),ami['on'](_0x5b9b53('0x5b'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x56'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x28'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x49'),this['syncCustomEvent'][_0x5b9b53('0x21')](this)),ami['on'](_0x5b9b53('0x1b'),this[_0x5b9b53('0x27')][_0x5b9b53('0x21')](this));}Trigger[_0x2ca7c4('0x5')][_0x2ca7c4('0x8')]=function(_0x59acd4,_0x142fe4,_0x26ad6a){const _0x541e62=_0x2ca7c4;logger['info'](_0x59acd4,_0x142fe4,JSON[_0x541e62('0x67')](_0x26ad6a)),io['to'](_0x59acd4)[_0x541e62('0x8')](_0x142fe4,_0x26ad6a);},Trigger['prototype']['syncCustomEvent']=function(_0x3221cb){const _0x38d850=_0x2ca7c4,_0x4c9112=_[_0x38d850('0xc')](_0x3221cb);this[_0x38d850('0x15')](_0x4c9112);},Trigger[_0x2ca7c4('0x5')][_0x2ca7c4('0x24')]=function(_0xd9d4b4){const _0x582588=_0x2ca7c4;this['agents'][_0xd9d4b4['interface']]&&this[_0x582588('0x27')](_0xd9d4b4);},Trigger[_0x2ca7c4('0x5')][_0x2ca7c4('0x15')]=function(_0x1c46fe){const _0x4f3fd6=_0x2ca7c4;let _0x154a0d;for(const _0x467989 in this[_0x4f3fd6('0x4f')]){if(typeof this[_0x4f3fd6('0x4f')][_0x467989]!==_0x4f3fd6('0x19')){if(this['triggers'][_0x467989][_0x4f3fd6('0x3d')]){_0x154a0d=this[_0x4f3fd6('0x5c')](this[_0x4f3fd6('0x4f')][_0x467989],_0x1c46fe);if(_0x154a0d){_[_0x4f3fd6('0x4b')](_0x1c46fe,_0x1c46fe['variables']);for(let _0x370dfd=0x0,_0x1f0307;_0x370dfd0x0&&(_0xbfaa64=_[_0x3379ce('0x21')](_0x3dfc21,_0x4fed63)),_0xbfaa64;}function getCustomFields(_0x331c3d,_0x4f48f5){const _0x55909f=_0x5d418a,_0x344cea={'custom_fields':{}};return _0x331c3d['length']>0x0&&_[_0x55909f('0x9')](_0x331c3d,function(_0xd1a22e){const _0x538930=_0x55909f;if(_0xd1a22e[_0x538930('0x32')]==='string'&&_0xd1a22e[_0x538930('0x1')]&&!_0xd1a22e[_0x538930('0x31')])_0x344cea[_0xd1a22e[_0x538930('0x1')][_0x538930('0xf')]()]=_0xd1a22e[_0x538930('0x48')][_0x538930('0x57')]();else{if(_0xd1a22e[_0x538930('0x32')]===_0x538930('0x23')&&_0xd1a22e[_0x538930('0xb')]&&_0xd1a22e[_0x538930('0x31')])_0x344cea[_0x538930('0x27')][_0xd1a22e[_0x538930('0xb')]]=_0xd1a22e[_0x538930('0x48')][_0x538930('0x57')]();else{if(_0xd1a22e[_0x538930('0x32')]===_0x538930('0x2b')&&_0xd1a22e[_0x538930('0x5')]&&_0xd1a22e[_0x538930('0xb')]&&_0xd1a22e[_0x538930('0x31')])_0x4f48f5[_0xd1a22e[_0x538930('0x5')]]&&(_0x344cea[_0x538930('0x27')][_0xd1a22e[_0x538930('0xb')]]=_0x4f48f5[_0xd1a22e[_0x538930('0x5')]]['toString']());else _0xd1a22e['type']===_0x538930('0x45')&&_0xd1a22e[_0x538930('0x61')]&&_0xd1a22e['Variable'][_0x538930('0x12')]&&_0xd1a22e[_0x538930('0xb')]&&_0xd1a22e['customField']&&(_0x4f48f5[_0xd1a22e[_0x538930('0x61')][_0x538930('0x12')][_0x538930('0xf')]()]&&(_0x344cea['custom_fields'][_0xd1a22e['idField']]=_0x4f48f5[_0xd1a22e[_0x538930('0x61')][_0x538930('0x12')]['toLowerCase']()][_0x538930('0x57')]()));}}}),_0x344cea[_0x55909f('0x59')]&&(_0x344cea[_0x55909f('0x59')]=Number(_0x344cea[_0x55909f('0x59')])),_0x344cea;}function getTicket(_0x337060,_0x3c59e8,_0x48053e,_0x1c9f13,_0x3fc7a5){const _0x103276=_0x5d418a;logger[_0x103276('0xc')](_0x103276('0x1a'));const _0x572120=_[_0x103276('0x1e')]({'subject':intUtil[_0x103276('0x20')](_0x1c9f13['Subjects'],_0x3fc7a5,'\x20'),'type':'phone','status':_0x103276('0x6'),'labels':[_0x103276('0x1d'),_0x103276('0x35'),_0x103276('0x3f')]['concat'](getTags(_0x1c9f13['Tags'],'name')),'description':intUtil['getString'](_0x1c9f13[_0x103276('0x40')],_0x3fc7a5,'\x0a'),'_links':{'assigned_user':{'href':util['format']('/api/v2/users/%d',_0x3c59e8['id']),'class':_0x103276('0x0')}},'message':{'direction':'in','body':intUtil[_0x103276('0x20')](_0x1c9f13['Descriptions'],_0x3fc7a5,'\x0a')}},getCustomFields(_0x1c9f13['Fields'],_0x3fc7a5));return request({'uri':util[_0x103276('0x2c')](_0x103276('0x30'),_0x337060['remoteUri'],_0x48053e['id']),'method':_0x103276('0x44'),'body':_0x572120});}exports['queue']=function(_0x2d3608,_0x1b2095,_0x4dea7a,_0x2356cc,_0x417c40,_0x1a61ac){const _0x2cfccf=_0x5d418a;let _0x5dc3d9,_0x3e4b32;return _0x1a61ac[_0x2cfccf('0x1c')]=intUtil['stripTrailingSlash'](_0x1a61ac[_0x2cfccf('0x1c')]),_0x1a61ac[_0x2cfccf('0x18')]=intUtil[_0x2cfccf('0x4a')](_0x1a61ac[_0x2cfccf('0x18')]),_0x417c40&&_0x417c40[_0x2cfccf('0x51')]?(logger[_0x2cfccf('0xc')](_0x2cfccf('0x60'),_0x2cfccf('0x4')),_0x1b2095[_0x2cfccf('0x14')]=util['format'](_0x2cfccf('0x5f'),_0x1a61ac['serverUrl'],_0x1b2095[_0x2cfccf('0x3d')],md5(_0x1b2095[_0x2cfccf('0x3d')]))):_0x1b2095['recordingURL']='',headers['Authorization']=getAuth(_0x1a61ac),getUser(_0x1a61ac,_0x2356cc['email'])[_0x2cfccf('0x47')](function(_0x207456){const _0x396f2c=_0x2cfccf;return _0x5dc3d9=_0x207456,logger[_0x396f2c('0xc')](_0x396f2c('0x2e'),_0x5dc3d9['id']),getEndUser(_0x1a61ac,_0x1b2095[_0x396f2c('0x7')],_0x1b2095[_0x396f2c('0xd')]);})['then'](function(_0x363e13){const _0xddb903=_0x2cfccf;return _0x3e4b32=_0x363e13,logger[_0xddb903('0xc')](_0xddb903('0x63'),_0x3e4b32['id']),getTicket(_0x1a61ac,_0x5dc3d9,_0x3e4b32,_0x4dea7a,_0x1b2095);})[_0x2cfccf('0x47')](function(_0x211cb0){const _0x2e5c3e=_0x2cfccf;if(_0x211cb0){logger[_0x2e5c3e('0xc')]('Ticket\x20created!'),logger[_0x2e5c3e('0xc')](_0x2e5c3e('0x53'),_0x211cb0['id']);switch(_0x1a61ac[_0x2e5c3e('0x32')]){case _0x2e5c3e('0x4b'):logger[_0x2e5c3e('0xc')](_0x2e5c3e('0x60'),_0x2e5c3e('0x33')),emit(util[_0x2e5c3e('0x2c')](_0x2e5c3e('0x13'),_0x2356cc[_0x2e5c3e('0x12')]),_0x2e5c3e('0x4c'),{'recordId':_0x211cb0['id']});break;case _0x2e5c3e('0x1f'):logger[_0x2e5c3e('0xc')](_0x2e5c3e('0x60'),_0x2e5c3e('0x3e')),emit(util[_0x2e5c3e('0x2c')]('user:%s',_0x2356cc[_0x2e5c3e('0x12')]),_0x2e5c3e('0x3a'),{'uri':util[_0x2e5c3e('0x2c')](_0x2e5c3e('0x5b'),_0x211cb0['id'])});break;default:logger[_0x2e5c3e('0x43')]('[QUEUE]',_0x2e5c3e('0x19'));}}})[_0x2cfccf('0x36')](function(_0x5bb49f){const _0x4f90cd=_0x2cfccf;console[_0x4f90cd('0x43')](_0x5bb49f),logger[_0x4f90cd('0x43')](_0x4f90cd('0x60'),JSON[_0x4f90cd('0x10')](_0x5bb49f));});},exports['outbound']=function(_0x58ae51,_0x1f56cf,_0x1a344f,_0x58572e,_0x41c2e5,_0x5e641b,_0x597707){const _0x5eb371=_0x5d418a;let _0x42bad4,_0x3ecc3d;return _0x5e641b[_0x5eb371('0x1c')]=intUtil[_0x5eb371('0x4a')](_0x5e641b[_0x5eb371('0x1c')]),_0x5e641b[_0x5eb371('0x18')]=intUtil['stripTrailingSlash'](_0x5e641b['serverUrl']),_0x597707&&_0x597707['recordingFormat']&&_0x597707['recordingFormat']!==_0x5eb371('0x39')&&(logger[_0x5eb371('0xc')](_0x5eb371('0x56'),'Recording\x20is\x20enabled!'),_0x1f56cf['recordingURL']=util[_0x5eb371('0x2c')](_0x5eb371('0x5f'),_0x5e641b['serverUrl'],_0x1f56cf[_0x5eb371('0x3d')],md5(_0x1f56cf[_0x5eb371('0x3d')]))),headers[_0x5eb371('0x3')]=getAuth(_0x5e641b),getUser(_0x5e641b,_0x58572e[_0x5eb371('0x28')])[_0x5eb371('0x47')](function(_0x33c89a){const _0x473064=_0x5eb371;return _0x42bad4=_0x33c89a,logger[_0x473064('0xc')](_0x473064('0x2e'),_0x42bad4['id']),getEndUser(_0x5e641b,_0x1f56cf[_0x473064('0x55')],_0x1f56cf[_0x473064('0x52')]);})[_0x5eb371('0x47')](function(_0xb89061){const _0x161f46=_0x5eb371;return _0x3ecc3d=_0xb89061,logger['info'](_0x161f46('0x63'),_0x3ecc3d['id']),getTicket(_0x5e641b,_0x42bad4,_0x3ecc3d,_0x1a344f,_0x1f56cf);})[_0x5eb371('0x47')](function(_0x3648b7){const _0x2c61c0=_0x5eb371;if(_0x3648b7){logger[_0x2c61c0('0xc')](_0x2c61c0('0x11')),logger[_0x2c61c0('0xc')](_0x2c61c0('0x53'),_0x3648b7['id']);switch(_0x5e641b[_0x2c61c0('0x32')]){case _0x2c61c0('0x4b'):logger[_0x2c61c0('0xc')](_0x2c61c0('0x60'),_0x2c61c0('0x33')),emit(util[_0x2c61c0('0x2c')](_0x2c61c0('0x13'),_0x58572e[_0x2c61c0('0x12')]),_0x2c61c0('0x4c'),{'recordId':_0x3648b7['id']});break;case'newTab':logger[_0x2c61c0('0xc')](_0x2c61c0('0x60'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x2c61c0('0x2c')]('user:%s',_0x58572e[_0x2c61c0('0x12')]),'trigger:browser:url',{'uri':util[_0x2c61c0('0x2c')](_0x2c61c0('0x16'),_0x5e641b[_0x2c61c0('0x1c')],_0x3648b7['id'])});break;default:logger[_0x2c61c0('0x43')](_0x2c61c0('0x56'),_0x2c61c0('0x19'));}}})[_0x5eb371('0x36')](function(_0x6a40b0){const _0x1527fd=_0x5eb371;logger[_0x1527fd('0x43')](_0x1527fd('0x56'),JSON[_0x1527fd('0x10')](_0x6a40b0));});},exports[_0x5d418a('0x4e')]=function(_0x161dcb,_0x3f8484,_0x4430dc,_0x231ae1,_0x593fc0,_0x28c4e5){const _0x4988f4=_0x5d418a;let _0x208a42,_0x573db0;return _0x28c4e5[_0x4988f4('0x1c')]=intUtil[_0x4988f4('0x4a')](_0x28c4e5[_0x4988f4('0x1c')]),_0x28c4e5[_0x4988f4('0x18')]=intUtil[_0x4988f4('0x4a')](_0x28c4e5[_0x4988f4('0x18')]),_0x593fc0&&_0x593fc0[_0x4988f4('0x51')]?(logger[_0x4988f4('0xc')]('['+_0x3f8484[_0x4988f4('0x46')][_0x4988f4('0x62')]()+']',_0x4988f4('0x4')),_0x3f8484[_0x4988f4('0x14')]=util[_0x4988f4('0x2c')](_0x4988f4('0x5f'),_0x28c4e5[_0x4988f4('0x18')],_0x3f8484['uniqueid'],md5(_0x3f8484[_0x4988f4('0x3d')]))):_0x3f8484['recordingURL']='',headers[_0x4988f4('0x3')]=getAuth(_0x28c4e5),getUser(_0x28c4e5)['then'](function(_0x2496f9){const _0xae1fc3=_0x4988f4;return _0x208a42=_0x2496f9,logger[_0xae1fc3('0xc')](_0xae1fc3('0x2e'),_0x208a42['id']),getEndUser(_0x28c4e5,_0x3f8484['calleridname'],_0x3f8484[_0xae1fc3('0xd')]);})['then'](function(_0x2691bd){const _0x1b75e0=_0x4988f4;return _0x573db0=_0x2691bd,logger[_0x1b75e0('0xc')](_0x1b75e0('0x63'),_0x573db0['id']),getTicket(_0x28c4e5,_0x208a42,_0x573db0,_0x4430dc,_0x3f8484);})[_0x4988f4('0x47')](function(_0x1b8dd1){const _0x1ae922=_0x4988f4;_0x1b8dd1&&(logger['info'](_0x1ae922('0x11')),logger[_0x1ae922('0xc')](_0x1ae922('0x53'),_0x1b8dd1['id']));})['catch'](function(_0x12eefd){const _0x33de32=_0x4988f4;logger[_0x33de32('0x43')]('['+_0x3f8484[_0x33de32('0x46')][_0x33de32('0x62')]()+']',JSON[_0x33de32('0x10')](_0x12eefd));});}; \ No newline at end of file +const a1135_0x88b7=['outbound','Fields','Agent\x20found!','none','map','Displaying\x20ticket\x20to\x20agent...','concat','/api/v2/users/%d','Authorization','total_entries','customField','new','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','stripTrailingSlash','md5','nameField','from','trigger:browser:url','debug','type','defaults','recordingURL','Getting\x20agent\x20with\x20email','toString','POST','work','./util','custom_fields','customVariable','destcalleridnum','info','then','string','Descriptions','uniqueid','length','Creating\x20new\x20ticket...','format','getString','user','toLowerCase','[QUEUE]','The\x20Enduser\x20ID\x20is:','The\x20Ticket\x20ID\x20is:','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','password','queue','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','Ticket\x20created!','variableName','newTab','serverUrl','%s/agent/tickets/%s','basic','Variable','priority','remoteUri','merge','entries','idField','destcalleridname','trigger:desk:display','%s:%s','Recording\x20is\x20enabled!','name','Enduser\x20found!','Basic\x20%s','integrationTab','%s/users/me','%s/customers/search','unmanaged','email','content','user:%s','desk','forEach','CTI','catch','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','Subjects','xCALLY','stringify','_embedded','Desk\x20account\x20type\x20not\x20recognized','https://xcally.desk.com/web/agent/case/%d','lastevent','variable','Searching\x20enduser\x20with\x20phone','calleridnum','username','calleridname','[HTTP]','[OUTBOUND]','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','phone','%s/customers','error','%s/token:%s','lodash','monitor_format','Motion','validateEmail','The\x20User\x20ID\x20is:','authType'];(function(_0x5c01b6,_0x88b733){const _0x4c6325=function(_0x3df356){while(--_0x3df356){_0x5c01b6['push'](_0x5c01b6['shift']());}};_0x4c6325(++_0x88b733);}(a1135_0x88b7,0x1a5));const a1135_0x4c63=function(_0x5c01b6,_0x88b733){_0x5c01b6=_0x5c01b6-0x0;let _0x4c6325=a1135_0x88b7[_0x5c01b6];return _0x4c6325;};const _0x4dc4cb=a1135_0x4c63;'use strict';const _=require(_0x4dc4cb('0x5d')),rp=require('request-promise-native'),md5=require(_0x4dc4cb('0x9')),util=require('util'),intUtil=require(_0x4dc4cb('0x15')),logger=require('../../../../config/logger')(_0x4dc4cb('0x45')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x3df356,_0xe12381,_0x45ce13){io['to'](_0x3df356)['emit'](_0xe12381,_0x45ce13);}const headers={'Content-Type':'application/json','Accept':'application/json'};function getUser(_0x26b1d3,_0x36c726){const _0x56177e=_0x4dc4cb;return intUtil[_0x56177e('0x60')](_0x36c726)===!![]?(logger[_0x56177e('0x19')](_0x56177e('0x11'),_0x36c726),request({'uri':util['format']('%s/users',_0x26b1d3[_0x56177e('0x33')])})[_0x56177e('0x1a')](function(_0x49cdc1){const _0x1c0cc0=_0x56177e;if(_0x49cdc1[_0x1c0cc0('0x4')])return _['find'](_0x49cdc1[_0x1c0cc0('0x4d')][_0x1c0cc0('0x35')],{'email':_0x36c726});})['then'](function(_0x1002db){const _0x2358a1=_0x56177e;return _0x1002db?(logger[_0x2358a1('0x19')](_0x2358a1('0x65')),_0x1002db):(logger[_0x2358a1('0x19')](_0x2358a1('0x58')),request({'uri':util[_0x2358a1('0x20')](_0x2358a1('0x3f'),_0x26b1d3['remoteUri'])}));})):(logger[_0x56177e('0x19')](_0x56177e('0x49')),request({'uri':util['format']('%s/users/me',_0x26b1d3[_0x56177e('0x33')])}));}function request(_0x22bc39){const _0x31ebda=_0x4dc4cb;return logger[_0x31ebda('0xd')](_0x31ebda('0x56'),JSON['stringify'](_0x22bc39)),rp(_[_0x31ebda('0xf')](_0x22bc39,{'method':'GET','headers':headers,'json':!![]}));}function getAuth(_0x2926d3){const _0x5154f3=_0x4dc4cb;let _0x10c24c;if(_0x2926d3['authType']===_0x5154f3('0x30'))_0x10c24c=util[_0x5154f3('0x20')](_0x5154f3('0x39'),_0x2926d3[_0x5154f3('0x54')],_0x2926d3[_0x5154f3('0x28')]);else _0x2926d3[_0x5154f3('0x62')]==='token'&&(_0x10c24c=util['format'](_0x5154f3('0x5c'),_0x2926d3[_0x5154f3('0x54')],_0x2926d3['token']));return util[_0x5154f3('0x20')](_0x5154f3('0x3d'),Buffer[_0x5154f3('0xb')](_0x10c24c)['toString']('base64'));}function getEndUser(_0x448e3c,_0x343731,_0x29b08b){const _0x4eeaaa=_0x4dc4cb;return logger[_0x4eeaaa('0x19')](_0x4eeaaa('0x52'),_0x29b08b),request({'uri':util['format'](_0x4eeaaa('0x40'),_0x448e3c[_0x4eeaaa('0x33')]),'qs':{'phone':_0x29b08b}})[_0x4eeaaa('0x1a')](function(_0x101bad){const _0x2d8d8f=_0x4eeaaa;return _0x101bad['total_entries']?(logger[_0x2d8d8f('0x19')](_0x2d8d8f('0x3c')),_0x101bad[_0x2d8d8f('0x4d')]['entries'][0x0]):(logger[_0x2d8d8f('0x19')](_0x2d8d8f('0x27')),request({'uri':util['format'](_0x2d8d8f('0x5a'),_0x448e3c[_0x2d8d8f('0x33')]),'method':_0x2d8d8f('0x13'),'body':{'first_name':_0x343731,'title':_0x343731,'phone_numbers':[{'type':_0x2d8d8f('0x14'),'value':_0x29b08b}]}}));});}function getTags(_0x1db5e0,_0xed61c6){const _0xf9961a=_0x4dc4cb;let _0x31d34a=[];return _0x1db5e0&&_0x1db5e0[_0xf9961a('0x1e')]>0x0&&(_0x31d34a=_[_0xf9961a('0x67')](_0x1db5e0,_0xed61c6)),_0x31d34a;}function getCustomFields(_0x270d1c,_0x416297){const _0x34b39f=_0x4dc4cb,_0x9bf10c={'custom_fields':{}};return _0x270d1c[_0x34b39f('0x1e')]>0x0&&_[_0x34b39f('0x46')](_0x270d1c,function(_0x34a299){const _0x84c5ae=_0x34b39f;if(_0x34a299[_0x84c5ae('0xe')]===_0x84c5ae('0x1b')&&_0x34a299[_0x84c5ae('0xa')]&&!_0x34a299['customField'])_0x9bf10c[_0x34a299[_0x84c5ae('0xa')]['toLowerCase']()]=_0x34a299[_0x84c5ae('0x43')][_0x84c5ae('0x12')]();else{if(_0x34a299[_0x84c5ae('0xe')]==='string'&&_0x34a299[_0x84c5ae('0x36')]&&_0x34a299[_0x84c5ae('0x5')])_0x9bf10c[_0x84c5ae('0x16')][_0x34a299[_0x84c5ae('0x36')]]=_0x34a299[_0x84c5ae('0x43')][_0x84c5ae('0x12')]();else{if(_0x34a299[_0x84c5ae('0xe')]===_0x84c5ae('0x51')&&_0x34a299['variableName']&&_0x34a299['idField']&&_0x34a299[_0x84c5ae('0x5')])_0x416297[_0x34a299[_0x84c5ae('0x2c')]]&&(_0x9bf10c[_0x84c5ae('0x16')][_0x34a299[_0x84c5ae('0x36')]]=_0x416297[_0x34a299['variableName']][_0x84c5ae('0x12')]());else _0x34a299['type']===_0x84c5ae('0x17')&&_0x34a299[_0x84c5ae('0x31')]&&_0x34a299[_0x84c5ae('0x31')][_0x84c5ae('0x3b')]&&_0x34a299['idField']&&_0x34a299['customField']&&(_0x416297[_0x34a299[_0x84c5ae('0x31')][_0x84c5ae('0x3b')][_0x84c5ae('0x23')]()]&&(_0x9bf10c[_0x84c5ae('0x16')][_0x34a299[_0x84c5ae('0x36')]]=_0x416297[_0x34a299[_0x84c5ae('0x31')]['name']['toLowerCase']()][_0x84c5ae('0x12')]()));}}}),_0x9bf10c[_0x34b39f('0x32')]&&(_0x9bf10c[_0x34b39f('0x32')]=Number(_0x9bf10c['priority'])),_0x9bf10c;}function getTicket(_0x986521,_0x4e4f24,_0x4e7b74,_0x1439e1,_0x49352e){const _0x55ed1e=_0x4dc4cb;logger[_0x55ed1e('0x19')](_0x55ed1e('0x1f'));const _0xb81cb2=_[_0x55ed1e('0x34')]({'subject':intUtil[_0x55ed1e('0x21')](_0x1439e1[_0x55ed1e('0x4a')],_0x49352e,'\x20'),'type':_0x55ed1e('0x59'),'status':_0x55ed1e('0x6'),'labels':[_0x55ed1e('0x4b'),_0x55ed1e('0x5f'),_0x55ed1e('0x47')][_0x55ed1e('0x1')](getTags(_0x1439e1['Tags'],_0x55ed1e('0x3b'))),'description':intUtil['getString'](_0x1439e1['Descriptions'],_0x49352e,'\x0a'),'_links':{'assigned_user':{'href':util[_0x55ed1e('0x20')](_0x55ed1e('0x2'),_0x4e4f24['id']),'class':_0x55ed1e('0x22')}},'message':{'direction':'in','body':intUtil['getString'](_0x1439e1[_0x55ed1e('0x1c')],_0x49352e,'\x0a')}},getCustomFields(_0x1439e1[_0x55ed1e('0x64')],_0x49352e));return request({'uri':util['format']('%s/customers/%d/cases',_0x986521[_0x55ed1e('0x33')],_0x4e7b74['id']),'method':_0x55ed1e('0x13'),'body':_0xb81cb2});}exports[_0x4dc4cb('0x29')]=function(_0x5a633d,_0x20215a,_0x2a44d8,_0x54c6a9,_0x4a5fa8,_0x44d6de){const _0x30cb00=_0x4dc4cb;let _0x15d290,_0x2dfada;return _0x44d6de[_0x30cb00('0x33')]=intUtil[_0x30cb00('0x8')](_0x44d6de[_0x30cb00('0x33')]),_0x44d6de[_0x30cb00('0x2e')]=intUtil[_0x30cb00('0x8')](_0x44d6de[_0x30cb00('0x2e')]),_0x4a5fa8&&_0x4a5fa8[_0x30cb00('0x5e')]?(logger['info'](_0x30cb00('0x24'),_0x30cb00('0x3a')),_0x20215a['recordingURL']=util['format'](_0x30cb00('0x7'),_0x44d6de[_0x30cb00('0x2e')],_0x20215a[_0x30cb00('0x1d')],md5(_0x20215a['uniqueid']))):_0x20215a[_0x30cb00('0x10')]='',headers[_0x30cb00('0x3')]=getAuth(_0x44d6de),getUser(_0x44d6de,_0x54c6a9[_0x30cb00('0x42')])[_0x30cb00('0x1a')](function(_0x219b58){const _0x5b8251=_0x30cb00;return _0x15d290=_0x219b58,logger[_0x5b8251('0x19')](_0x5b8251('0x61'),_0x15d290['id']),getEndUser(_0x44d6de,_0x20215a[_0x5b8251('0x55')],_0x20215a['calleridnum']);})[_0x30cb00('0x1a')](function(_0x53d51e){const _0x2036e0=_0x30cb00;return _0x2dfada=_0x53d51e,logger[_0x2036e0('0x19')](_0x2036e0('0x25'),_0x2dfada['id']),getTicket(_0x44d6de,_0x15d290,_0x2dfada,_0x2a44d8,_0x20215a);})['then'](function(_0x372272){const _0x54d1bc=_0x30cb00;if(_0x372272){logger['info'](_0x54d1bc('0x2b')),logger['info'](_0x54d1bc('0x26'),_0x372272['id']);switch(_0x44d6de[_0x54d1bc('0xe')]){case _0x54d1bc('0x3e'):logger[_0x54d1bc('0x19')](_0x54d1bc('0x24'),_0x54d1bc('0x0')),emit(util[_0x54d1bc('0x20')](_0x54d1bc('0x44'),_0x54c6a9[_0x54d1bc('0x3b')]),_0x54d1bc('0x38'),{'recordId':_0x372272['id']});break;case _0x54d1bc('0x2d'):logger[_0x54d1bc('0x19')]('[QUEUE]','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util['format'](_0x54d1bc('0x44'),_0x54c6a9[_0x54d1bc('0x3b')]),_0x54d1bc('0xc'),{'uri':util[_0x54d1bc('0x20')](_0x54d1bc('0x4f'),_0x372272['id'])});break;default:logger[_0x54d1bc('0x5b')](_0x54d1bc('0x24'),_0x54d1bc('0x4e'));}}})[_0x30cb00('0x48')](function(_0x5231bb){const _0x2b1021=_0x30cb00;console['error'](_0x5231bb),logger[_0x2b1021('0x5b')](_0x2b1021('0x24'),JSON[_0x2b1021('0x4c')](_0x5231bb));});},exports[_0x4dc4cb('0x63')]=function(_0x4ecb18,_0x26465d,_0x44553d,_0x122720,_0x46ead3,_0x1b23f3,_0x2391bb){const _0x150a0b=_0x4dc4cb;let _0x2167c1,_0x1942e0;return _0x1b23f3['remoteUri']=intUtil[_0x150a0b('0x8')](_0x1b23f3[_0x150a0b('0x33')]),_0x1b23f3[_0x150a0b('0x2e')]=intUtil['stripTrailingSlash'](_0x1b23f3[_0x150a0b('0x2e')]),_0x2391bb&&_0x2391bb['recordingFormat']&&_0x2391bb['recordingFormat']!==_0x150a0b('0x66')&&(logger[_0x150a0b('0x19')](_0x150a0b('0x57'),_0x150a0b('0x3a')),_0x26465d[_0x150a0b('0x10')]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x1b23f3[_0x150a0b('0x2e')],_0x26465d[_0x150a0b('0x1d')],md5(_0x26465d[_0x150a0b('0x1d')]))),headers[_0x150a0b('0x3')]=getAuth(_0x1b23f3),getUser(_0x1b23f3,_0x122720[_0x150a0b('0x42')])[_0x150a0b('0x1a')](function(_0x5770f4){const _0x249752=_0x150a0b;return _0x2167c1=_0x5770f4,logger[_0x249752('0x19')](_0x249752('0x61'),_0x2167c1['id']),getEndUser(_0x1b23f3,_0x26465d[_0x249752('0x37')],_0x26465d[_0x249752('0x18')]);})[_0x150a0b('0x1a')](function(_0x136e68){const _0x27a7a6=_0x150a0b;return _0x1942e0=_0x136e68,logger[_0x27a7a6('0x19')](_0x27a7a6('0x25'),_0x1942e0['id']),getTicket(_0x1b23f3,_0x2167c1,_0x1942e0,_0x44553d,_0x26465d);})[_0x150a0b('0x1a')](function(_0x3453bf){const _0x3000f6=_0x150a0b;if(_0x3453bf){logger[_0x3000f6('0x19')](_0x3000f6('0x2b')),logger[_0x3000f6('0x19')]('The\x20Ticket\x20ID\x20is:',_0x3453bf['id']);switch(_0x1b23f3[_0x3000f6('0xe')]){case'integrationTab':logger[_0x3000f6('0x19')](_0x3000f6('0x24'),_0x3000f6('0x0')),emit(util[_0x3000f6('0x20')](_0x3000f6('0x44'),_0x122720['name']),'trigger:desk:display',{'recordId':_0x3453bf['id']});break;case _0x3000f6('0x2d'):logger[_0x3000f6('0x19')](_0x3000f6('0x24'),_0x3000f6('0x2a')),emit(util[_0x3000f6('0x20')]('user:%s',_0x122720['name']),_0x3000f6('0xc'),{'uri':util[_0x3000f6('0x20')](_0x3000f6('0x2f'),_0x1b23f3[_0x3000f6('0x33')],_0x3453bf['id'])});break;default:logger[_0x3000f6('0x5b')](_0x3000f6('0x57'),_0x3000f6('0x4e'));}}})[_0x150a0b('0x48')](function(_0x6b3e30){const _0x117bee=_0x150a0b;logger[_0x117bee('0x5b')](_0x117bee('0x57'),JSON[_0x117bee('0x4c')](_0x6b3e30));});},exports[_0x4dc4cb('0x41')]=function(_0x5f3f57,_0x6a4822,_0xc468,_0x13fb78,_0xe718cf,_0x166b06){const _0x4bcd17=_0x4dc4cb;let _0x555a4f,_0x23d2b9;return _0x166b06['remoteUri']=intUtil['stripTrailingSlash'](_0x166b06[_0x4bcd17('0x33')]),_0x166b06[_0x4bcd17('0x2e')]=intUtil['stripTrailingSlash'](_0x166b06[_0x4bcd17('0x2e')]),_0xe718cf&&_0xe718cf[_0x4bcd17('0x5e')]?(logger[_0x4bcd17('0x19')]('['+_0x6a4822[_0x4bcd17('0x50')]['toUpperCase']()+']',_0x4bcd17('0x3a')),_0x6a4822['recordingURL']=util[_0x4bcd17('0x20')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x166b06[_0x4bcd17('0x2e')],_0x6a4822['uniqueid'],md5(_0x6a4822[_0x4bcd17('0x1d')]))):_0x6a4822[_0x4bcd17('0x10')]='',headers['Authorization']=getAuth(_0x166b06),getUser(_0x166b06)[_0x4bcd17('0x1a')](function(_0x353b5c){const _0x4b3405=_0x4bcd17;return _0x555a4f=_0x353b5c,logger[_0x4b3405('0x19')](_0x4b3405('0x61'),_0x555a4f['id']),getEndUser(_0x166b06,_0x6a4822[_0x4b3405('0x55')],_0x6a4822[_0x4b3405('0x53')]);})['then'](function(_0x5903d9){const _0x5b1188=_0x4bcd17;return _0x23d2b9=_0x5903d9,logger[_0x5b1188('0x19')]('The\x20Enduser\x20ID\x20is:',_0x23d2b9['id']),getTicket(_0x166b06,_0x555a4f,_0x23d2b9,_0xc468,_0x6a4822);})[_0x4bcd17('0x1a')](function(_0x3f26d6){const _0x4ff526=_0x4bcd17;_0x3f26d6&&(logger['info'](_0x4ff526('0x2b')),logger[_0x4ff526('0x19')](_0x4ff526('0x26'),_0x3f26d6['id']));})[_0x4bcd17('0x48')](function(_0x5ace15){const _0x753169=_0x4bcd17;logger['error']('['+_0x6a4822[_0x753169('0x50')]['toUpperCase']()+']',JSON[_0x753169('0x4c')](_0x5ace15));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/dynamics365.js b/server/services/ami/trigger/integration/dynamics365.js index 06dabb1..4fa3694 100644 --- a/server/services/ami/trigger/integration/dynamics365.js +++ b/server/services/ami/trigger/integration/dynamics365.js @@ -1 +1 @@ -const a1136_0x49b1=['Recording\x20is\x20enabled!','error',']\x20Error\x20running\x20Dynamics365\x20integration','customField','incident','4.0','length','GET','stripTrailingSlash','remoteUri',']\x20Enduser\x20created!','serverUrl','[QUEUE]','lodash','trigger:browser:url','validateEmail','request-promise-native','clientSecret',']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Descriptions','monitor_format','none','email','outbound','/systemusers(','ticketType','recordingFormat','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','unmanaged','type','catch','queue',']\x20Wrong\x20credentials!','callDirection','access_token','userId','indexOf','info','enduserId','Displaying\x20call\x20in\x20a\x20new\x20tab...','message',']\x20The\x20Enduser\x20phone\x20is:','user:%s','contactid','password','headers','recordingURL','destcalleridnum','/contacts(','idField',']\x20Enduser\x20Created!','Bearer\x20','Fields','odata-entityid','username',']\x20The\x20Enduser\x20ID\x20is:','userEmail','phonecall','format','nameField','POST','inspect','getString','tenantId','toUpperCase','value','%s/api/data/v9.0/','then','dynamics365','systemuserid','lastIndexOf',']\x20The\x20%s\x20ID\x20is:\x20%s','substring','uniqueid','ticketId','Subjects','internalemailaddress','https://login.microsoftonline.com/%s/oauth2/token','string','phonecalls','toLowerCase','emit','../../../../config/logger','assign','calleridnum'];(function(_0x545f95,_0x49b144){const _0x2c52a0=function(_0x35b1ab){while(--_0x35b1ab){_0x545f95['push'](_0x545f95['shift']());}};_0x2c52a0(++_0x49b144);}(a1136_0x49b1,0x7e));const a1136_0x2c52=function(_0x545f95,_0x49b144){_0x545f95=_0x545f95-0x0;let _0x2c52a0=a1136_0x49b1[_0x545f95];return _0x2c52a0;};const _0x3a7219=a1136_0x2c52;'use strict';const _=require(_0x3a7219('0x39')),rp=require(_0x3a7219('0x3c')),util=require('util'),intUtil=require('./util'),md5=require('md5'),logger=require(_0x3a7219('0x29'))(_0x3a7219('0x1b')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAuthToken(_0x35b1ab,_0x40ea5a,_0x5ed37b){const _0x4d9477=_0x3a7219,_0x1cdd54={'method':'POST','uri':_0x40ea5a,'form':{'client_id':_0x35b1ab['clientId'],'resource':_0x35b1ab[_0x4d9477('0x35')],'username':_0x35b1ab['username'],'password':_0x35b1ab['password'],'grant_type':_0x4d9477('0x3'),'client_secret':_0x35b1ab[_0x4d9477('0x3d')]},'json':!![]};return rp(_0x1cdd54)[_0x4d9477('0x1a')](function(_0x102d5a){const _0xe80755=_0x4d9477;return _0x102d5a[_0xe80755('0x4e')];})[_0x4d9477('0x4a')](function(_0x199e1b){const _0x5c4ad3=_0x4d9477;return logger[_0x5c4ad3('0x2d')]('['+[_0x5ed37b[_0x5c4ad3('0x17')]()]+_0x5c4ad3('0x4c')),_0x199e1b[_0x5c4ad3('0x54')];});}function getUser(_0x134590,_0xc5efe7,_0xbee56,_0x13e52e,_0x4e723a,_0x1fab17){return new Promise(function(_0x5945b4,_0x33686a){const _0x46bda4=a1136_0x2c52;return getAuthToken(_0xc5efe7,_0x13e52e,_0x1fab17)[_0x46bda4('0x1a')](function(_0x32f2d7){const _0x4641e6=_0x46bda4,_0x2709db={'method':_0x4641e6('0x33'),'uri':_0x4e723a+'systemusers?$select=internalemailaddress,isdisabled,systemuserid','headers':{'Authorization':_0x4641e6('0xa')+_0x32f2d7,'OData-Version':_0x4641e6('0x31')},'json':!![]};return rp(_0x2709db);})['then'](function(_0x426268){const _0x1ee000=_0x46bda4,_0x65548c=_0x426268['value'];let _0x1709b2=![],_0xe3243f=null;if(!_['isNil'](_0xbee56)){if(intUtil[_0x1ee000('0x3b')](_0xbee56[_0x1ee000('0x42')])){_0x134590[_0x1ee000('0xf')]=_0xbee56[_0x1ee000('0x42')];for(_0xe3243f=0x0;_0xe3243f<_0x65548c[_0x1ee000('0x32')];_0xe3243f++){_0x65548c[_0xe3243f][_0x1ee000('0x23')]===_0xbee56[_0x1ee000('0x42')]&&!_0x65548c[_0xe3243f]['isdisabled']&&(_0x1709b2=!![],logger['info']('['+[_0x1fab17[_0x1ee000('0x17')]()]+']\x20Agent\x20found\x20'+_0x65548c[_0xe3243f][_0x1ee000('0x1c')]+'!'),_0x134590[_0x1ee000('0x4f')]=_0x65548c[_0xe3243f][_0x1ee000('0x1c')]);}}}if(!_0x1709b2){logger[_0x1ee000('0x51')]('['+[_0x1fab17[_0x1ee000('0x17')]()]+_0x1ee000('0x3e')),_0x134590[_0x1ee000('0xf')]=_0xc5efe7[_0x1ee000('0xd')];for(_0xe3243f=0x0;_0xe3243f<_0x65548c[_0x1ee000('0x32')];_0xe3243f++){_0x65548c[_0xe3243f]['internalemailaddress']===_0xc5efe7[_0x1ee000('0xd')]&&(_0x134590[_0x1ee000('0x4f')]=_0x65548c[_0xe3243f][_0x1ee000('0x1c')]);}}_0x5945b4(_0x134590);})[_0x46bda4('0x4a')](function(_0x562b5f){const _0x5f0b07=_0x46bda4;_0x33686a(_0x562b5f[_0x5f0b07('0x54')]);});});}function createEndUser(_0x5464b1,_0x3fcb44,_0x5f34d2,_0x220cad,_0x36a10c,_0x703dc7){return new Promise(function(_0x51e524,_0x4711b7){const _0x5eafbe=a1136_0x2c52;return getAuthToken(_0x3fcb44,_0x5f34d2,_0x703dc7)[_0x5eafbe('0x1a')](function(_0x5dba97){const _0x39a74e=_0x5eafbe,_0x135c92=_0x703dc7['toLowerCase']()===_0x39a74e('0x43')?_0x36a10c[_0x39a74e('0x6')]:_0x36a10c['calleridnum'],_0x59ddf9={'method':'POST','uri':_0x220cad+'contacts','body':{'telephone1':_0x135c92,'fullname':_0x135c92,'firstname':_0x135c92,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x39a74e('0x44')+_0x5464b1[_0x39a74e('0x4f')]+')'},'headers':{'Authorization':_0x39a74e('0xa')+_0x5dba97,'OData-Version':_0x39a74e('0x31')},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x59ddf9);})[_0x5eafbe('0x1a')](function(_0x192168){const _0x13850f=_0x5eafbe,_0xa1f2a0=_0x192168[_0x13850f('0x4')]['odata-entityid'],_0x564fbf=_0xa1f2a0['substring'](_0xa1f2a0[_0x13850f('0x1d')]('(')+0x1,_0xa1f2a0[_0x13850f('0x1d')](')'));_0x5464b1['enduserId']=_0x564fbf,_0x51e524(_0x5464b1);})['catch'](function(_0x1ef7ae){const _0x375fad=_0x5eafbe;_0x4711b7(_0x1ef7ae[_0x375fad('0x54')]);});});}function getEndUser(_0x218a13,_0x17abbf,_0x15fd86,_0xef7dfa,_0x1da9b1,_0x5e7e9b){return new Promise(function(_0x42a13a){const _0x1763c4=a1136_0x2c52;return getAuthToken(_0x17abbf,_0x15fd86,_0x5e7e9b)['then'](function(_0x2e2a93){const _0x524480=a1136_0x2c52,_0x5bea05={'method':_0x524480('0x33'),'uri':_0xef7dfa+'contacts?$select=telephone1','headers':{'Authorization':_0x524480('0xa')+_0x2e2a93,'If-None-Match':null,'OData-Version':_0x524480('0x31')},'json':!![]};return rp(_0x5bea05);})[_0x1763c4('0x1a')](function(_0x174f76){const _0x1e1a88=_0x1763c4;let _0x4f3bcd=null;if(_0x174f76){const _0xbe560c=_0x174f76[_0x1e1a88('0x18')];let _0x4c8688=![];for(_0x4f3bcd=0x0;_0x4f3bcd<_0xbe560c[_0x1e1a88('0x32')];_0x4f3bcd++){const _0x48ff23=_0x5e7e9b[_0x1e1a88('0x27')]()===_0x1e1a88('0x43')?_0x1da9b1[_0x1e1a88('0x6')]:_0x1da9b1[_0x1e1a88('0x2b')];_0xbe560c[_0x4f3bcd]['telephone1']===_0x48ff23&&(_0x4c8688=!![],_0x218a13[_0x1e1a88('0x52')]=_0xbe560c[_0x4f3bcd][_0x1e1a88('0x2')]);}if(_0x4c8688)_0x42a13a(_0x218a13);else return createEndUser(_0x218a13,_0x17abbf,_0x15fd86,_0xef7dfa,_0x1da9b1,_0x5e7e9b)[_0x1e1a88('0x1a')](function(_0x17b247){const _0x248c30=_0x1e1a88;logger['info']('['+[_0x5e7e9b['toUpperCase']()]+_0x248c30('0x36'),_0x17b247[_0x248c30('0x52')]),_0x42a13a(_0x17b247);});}else return createEndUser(_0x218a13,_0x17abbf,_0x15fd86,_0xef7dfa,_0x1da9b1,_0x5e7e9b)['then'](function(_0x17ba2f){const _0x2020aa=_0x1e1a88;logger[_0x2020aa('0x51')]('['+[_0x5e7e9b[_0x2020aa('0x17')]()]+_0x2020aa('0x9'),_0x17ba2f[_0x2020aa('0x52')]),_0x42a13a(_0x17ba2f);});});});}function getCustomFields(_0x391fd5,_0x28b5a2,_0x2b4768){const _0x3789fe=_0x3a7219,_0x4639cf={};return _0x391fd5[_0x3789fe('0x32')]>0x0&&_['forEach'](_0x391fd5,function(_0x1ac392){const _0x2c13a7=_0x3789fe;if(_0x1ac392[_0x2c13a7('0x49')]===_0x2c13a7('0x25')&&_0x1ac392[_0x2c13a7('0x12')]&&!_0x1ac392[_0x2c13a7('0x2f')]){const _0x4ee289=_0x1ac392[_0x2c13a7('0x8')][_0x2c13a7('0x27')](),_0x468d49=_0x4ee289[_0x2c13a7('0x1f')](0x0,_0x4ee289[_0x2c13a7('0x50')]('_')),_0x425e3b=_0x4ee289[_0x2c13a7('0x1f')](_0x4ee289[_0x2c13a7('0x50')]('_')+0x1);_0x468d49===_0x2b4768&&(_0x4639cf[_0x425e3b]=_0x1ac392['content']);}}),_0x4639cf;}function getTicket(_0x58bf4f,_0x4bb75b,_0x7dd696,_0x1134fa,_0x431d8e,_0x153552,_0x20ef0b){return new Promise(function(_0x309e13,_0x2c3353){const _0x43ab14=a1136_0x2c52;let _0x22d2e0;return getAuthToken(_0x4bb75b,_0x7dd696,_0x20ef0b)[_0x43ab14('0x1a')](function(_0x240c4a){const _0x5e0c50=_0x43ab14;return _0x153552['ticketType']===_0x5e0c50('0x30')&&(_0x22d2e0={'method':_0x5e0c50('0x13'),'uri':_0x1134fa+'incidents','body':Object['assign']({},{'title':intUtil['getString'](_0x153552[_0x5e0c50('0x22')],_0x431d8e,'\x20'),'description':intUtil['getString'](_0x153552[_0x5e0c50('0x3f')],_0x431d8e,'\x0a'),'customerid_contact@odata.bind':'/contacts('+_0x58bf4f[_0x5e0c50('0x52')]+')','ownerid@odata.bind':_0x5e0c50('0x44')+_0x58bf4f[_0x5e0c50('0x4f')]+')','caseorigincode':'1'},getCustomFields(_0x153552['Fields'],_0x431d8e,_0x153552[_0x5e0c50('0x45')])),'headers':{'Authorization':'Bearer\x20'+_0x240c4a,'OData-Version':_0x5e0c50('0x31')},'json':!![],'resolveWithFullResponse':!![]}),_0x153552['ticketType']===_0x5e0c50('0x10')&&(_0x22d2e0={'method':_0x5e0c50('0x13'),'uri':_0x1134fa+_0x5e0c50('0x26'),'body':Object[_0x5e0c50('0x2a')]({},{'subject':intUtil[_0x5e0c50('0x15')](_0x153552[_0x5e0c50('0x22')],_0x431d8e,'\x20'),'phonenumber':String(_0x431d8e[_0x5e0c50('0x2b')]),'description':intUtil[_0x5e0c50('0x15')](_0x153552[_0x5e0c50('0x3f')],_0x431d8e,'\x0a'),'regardingobjectid_contact@odata.bind':_0x5e0c50('0x7')+_0x58bf4f[_0x5e0c50('0x52')]+')','ownerid@odata.bind':_0x5e0c50('0x44')+_0x58bf4f[_0x5e0c50('0x4f')]+')','directioncode':_0x58bf4f[_0x5e0c50('0x4d')]===_0x5e0c50('0x4b')?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':'/systemusers('+_0x58bf4f[_0x5e0c50('0x4f')]+')','participationtypemask':_0x58bf4f['callDirection']===_0x5e0c50('0x4b')?0x2:0x1},{'partyid_contact@odata.bind':'/contacts('+_0x58bf4f[_0x5e0c50('0x52')]+')','participationtypemask':_0x58bf4f[_0x5e0c50('0x4d')]===_0x5e0c50('0x4b')?0x1:0x2}]},getCustomFields(_0x153552[_0x5e0c50('0xb')],_0x431d8e,_0x153552[_0x5e0c50('0x45')])),'headers':{'Authorization':_0x5e0c50('0xa')+_0x240c4a,'OData-Version':_0x5e0c50('0x31')},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x22d2e0);})[_0x43ab14('0x1a')](function(_0x30fdf2){const _0x5df5b1=_0x43ab14,_0x51f7ae=_0x30fdf2['headers'][_0x5df5b1('0xc')],_0x113f0e=_0x51f7ae[_0x5df5b1('0x1f')](_0x51f7ae[_0x5df5b1('0x1d')]('(')+0x1,_0x51f7ae[_0x5df5b1('0x1d')](')'));_0x58bf4f[_0x5df5b1('0x21')]=_0x113f0e,_0x309e13(_0x58bf4f);})[_0x43ab14('0x4a')](function(_0x23392b){const _0x528d44=_0x43ab14;_0x2c3353(_0x23392b[_0x528d44('0x54')]);});});}function emit(_0x27d7d2,_0x1d6dc9,_0x1080f2,_0x1f6da9){const _0x543f1d=_0x3a7219,_0x20d520={'uri':util['format']('%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s',_0x27d7d2,_0x1080f2,_0x1f6da9)};io['to'](util[_0x543f1d('0x11')](_0x543f1d('0x1'),_0x1d6dc9))[_0x543f1d('0x28')](_0x543f1d('0x3a'),_0x20d520);}exports['cs']=function(_0x4b0f72,_0x198d5c,_0x2d44aa,_0x189bc3,_0x8eed15,_0x322c58,_0x30e99a,_0x2a8852){const _0x354b3b=_0x3a7219,_0x4965ea={};_0x322c58[_0x354b3b('0x35')]=intUtil[_0x354b3b('0x34')](_0x322c58[_0x354b3b('0x35')]),_0x322c58[_0x354b3b('0x37')]=intUtil[_0x354b3b('0x34')](_0x322c58['serverUrl']),_0x4965ea['callDirection']=_0x2a8852===_0x354b3b('0x4b')||_0x2a8852===_0x354b3b('0x48')?'queue':'outbound';const _0x3d240e=util[_0x354b3b('0x11')](_0x354b3b('0x19'),_0x322c58[_0x354b3b('0x35')]),_0x2b0a03=util[_0x354b3b('0x11')](_0x354b3b('0x24'),_0x322c58[_0x354b3b('0x16')]),_0x4cac4e=util['format'](_0x354b3b('0x47'),_0x322c58['serverUrl'],_0x198d5c['uniqueid'],md5(_0x198d5c[_0x354b3b('0x20')]));if(_0x8eed15&&_0x8eed15[_0x354b3b('0x40')])logger['info'](_0x354b3b('0x38'),_0x354b3b('0x2c')),_0x198d5c[_0x354b3b('0x5')]=_0x4cac4e;else _0x30e99a&&_0x30e99a[_0x354b3b('0x46')]&&_0x30e99a[_0x354b3b('0x46')]!==_0x354b3b('0x41')?(logger[_0x354b3b('0x51')]('[OUTBOUND]','Recording\x20is\x20enabled!'),_0x198d5c[_0x354b3b('0x5')]=_0x4cac4e):_0x198d5c[_0x354b3b('0x5')]='';return getUser(_0x4965ea,_0x322c58,_0x189bc3,_0x2b0a03,_0x3d240e,_0x2a8852)[_0x354b3b('0x1a')](function(_0x3236c3){const _0x32c42c=_0x354b3b;return logger[_0x32c42c('0x51')]('['+_0x2a8852[_0x32c42c('0x17')]()+']\x20The\x20User\x20ID\x20is:',_0x3236c3['userId']),logger[_0x32c42c('0x51')]('['+_0x2a8852['toUpperCase']()+']\x20The\x20User\x20email\x20is:',_0x3236c3[_0x32c42c('0xf')]),getEndUser(_0x3236c3,_0x322c58,_0x2b0a03,_0x3d240e,_0x198d5c,_0x2a8852);})[_0x354b3b('0x1a')](function(_0x29e5f8){const _0x153921=_0x354b3b;return logger[_0x153921('0x51')]('['+_0x2a8852['toUpperCase']()+_0x153921('0xe'),_0x29e5f8[_0x153921('0x52')]),logger[_0x153921('0x51')]('['+_0x2a8852['toUpperCase']()+_0x153921('0x0'),_0x198d5c[_0x153921('0x2b')]),getTicket(_0x29e5f8,_0x322c58,_0x2b0a03,_0x3d240e,_0x198d5c,_0x2d44aa,_0x2a8852);})[_0x354b3b('0x1a')](function(_0x331d10){const _0x2f81f7=_0x354b3b;logger['info'](util['format']('['+_0x2a8852['toUpperCase']()+_0x2f81f7('0x1e'),_0x2d44aa['ticketType'],_0x331d10[_0x2f81f7('0x21')])),logger['info'](util[_0x2f81f7('0x11')]('['+_0x2a8852[_0x2f81f7('0x17')]()+']\x20Call\x20direction:\x20%s',_0x2a8852)),_0x2a8852!==_0x2f81f7('0x48')&&(logger[_0x2f81f7('0x51')]('['+_0x2a8852['toUpperCase']()+']',_0x2f81f7('0x53')),emit(_0x322c58['remoteUri'],_0x189bc3['name'],_0x2d44aa[_0x2f81f7('0x45')],_0x331d10['ticketId']));})[_0x354b3b('0x4a')](function(_0x2e9bfb){const _0x4fa573=_0x354b3b;logger[_0x4fa573('0x2d')]('['+_0x2a8852[_0x4fa573('0x17')]()+_0x4fa573('0x2e'),util[_0x4fa573('0x14')](_0x2e9bfb,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1136_0x33ef=['string','%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s','isdisabled','lodash',']\x20The\x20%s\x20ID\x20is:\x20%s','destcalleridnum','email','callDirection','format',']\x20Wrong\x20credentials!',']\x20Agent\x20found\x20',']\x20The\x20Enduser\x20phone\x20is:','request-promise-native',']\x20Error\x20running\x20Dynamics365\x20integration','Bearer\x20','systemuserid','recordingFormat','Descriptions','nameField','userId','GET','serverUrl','trigger:browser:url','outbound','content','phonecall','4.0','https://login.microsoftonline.com/%s/oauth2/token','indexOf','toUpperCase','validateEmail','../../../../config/logger','contacts','remoteUri','getString','ticketId','[OUTBOUND]','then','isNil','username',']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','access_token','telephone1',']\x20The\x20Enduser\x20ID\x20is:',']\x20Call\x20direction:\x20%s','calleridnum','contactid','enduserId','systemusers?$select=internalemailaddress,isdisabled,systemuserid','queue','headers','odata-entityid','none','customField','util','substring','internalemailaddress','Fields',']\x20Enduser\x20created!','length','./util','user:%s','/contacts(','unmanaged','[QUEUE]',']\x20Enduser\x20Created!','phonecalls','toLowerCase','value','md5',']\x20The\x20User\x20email\x20is:','/systemusers(','%s/api/data/v9.0/','incidents','lastIndexOf','forEach','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','message','info','tenantId','password','../../../../rediscache','ticketType','Displaying\x20call\x20in\x20a\x20new\x20tab...',']\x20The\x20User\x20ID\x20is:','recordingURL','clientId','userEmail','catch','Recording\x20is\x20enabled!','POST','error','uniqueid','assign','inspect','type','dynamics365','stripTrailingSlash'];(function(_0x3d691f,_0x33efed){const _0x4eddbb=function(_0x7e06eb){while(--_0x7e06eb){_0x3d691f['push'](_0x3d691f['shift']());}};_0x4eddbb(++_0x33efed);}(a1136_0x33ef,0xa0));const a1136_0x4edd=function(_0x3d691f,_0x33efed){_0x3d691f=_0x3d691f-0x0;let _0x4eddbb=a1136_0x33ef[_0x3d691f];return _0x4eddbb;};const _0x38a426=a1136_0x4edd;'use strict';const _=require(_0x38a426('0x27')),rp=require(_0x38a426('0x30')),util=require(_0x38a426('0x5a')),intUtil=require(_0x38a426('0x60')),md5=require(_0x38a426('0x7')),logger=require(_0x38a426('0x43'))(_0x38a426('0x22')),{getSocket}=require(_0x38a426('0x13')),io=getSocket();function getAuthToken(_0x7e06eb,_0x1e63dc,_0x51b7b6){const _0x5b7b7a=_0x38a426,_0xe1593e={'method':_0x5b7b7a('0x1c'),'uri':_0x1e63dc,'form':{'client_id':_0x7e06eb[_0x5b7b7a('0x18')],'resource':_0x7e06eb[_0x5b7b7a('0x45')],'username':_0x7e06eb[_0x5b7b7a('0x4b')],'password':_0x7e06eb[_0x5b7b7a('0x12')],'grant_type':_0x5b7b7a('0x12'),'client_secret':_0x7e06eb['clientSecret']},'json':!![]};return rp(_0xe1593e)[_0x5b7b7a('0x49')](function(_0x3fce0b){const _0x34f492=_0x5b7b7a;return _0x3fce0b[_0x34f492('0x4d')];})[_0x5b7b7a('0x1a')](function(_0x2e56c6){const _0x1da115=_0x5b7b7a;return logger['error']('['+[_0x51b7b6['toUpperCase']()]+_0x1da115('0x2d')),_0x2e56c6[_0x1da115('0xf')];});}function getUser(_0xf6bac8,_0x16813e,_0x1fe98a,_0x13b3d,_0x2c9145,_0x2a343c){return new Promise(function(_0x39d77e,_0xa09301){const _0xd9b1e8=a1136_0x4edd;return getAuthToken(_0x16813e,_0x13b3d,_0x2a343c)[_0xd9b1e8('0x49')](function(_0x30aa7e){const _0x2ebc50=_0xd9b1e8,_0xc8c137={'method':_0x2ebc50('0x38'),'uri':_0x2c9145+_0x2ebc50('0x54'),'headers':{'Authorization':'Bearer\x20'+_0x30aa7e,'OData-Version':_0x2ebc50('0x3e')},'json':!![]};return rp(_0xc8c137);})['then'](function(_0xfefcc8){const _0x386118=_0xd9b1e8,_0x3dbb1a=_0xfefcc8[_0x386118('0x6')];let _0xe67bc0=![],_0x13b0d7=null;if(!_[_0x386118('0x4a')](_0x1fe98a)){if(intUtil[_0x386118('0x42')](_0x1fe98a[_0x386118('0x2a')])){_0xf6bac8[_0x386118('0x19')]=_0x1fe98a['email'];for(_0x13b0d7=0x0;_0x13b0d7<_0x3dbb1a[_0x386118('0x5f')];_0x13b0d7++){_0x3dbb1a[_0x13b0d7][_0x386118('0x5c')]===_0x1fe98a[_0x386118('0x2a')]&&!_0x3dbb1a[_0x13b0d7][_0x386118('0x26')]&&(_0xe67bc0=!![],logger['info']('['+[_0x2a343c[_0x386118('0x41')]()]+_0x386118('0x2e')+_0x3dbb1a[_0x13b0d7]['systemuserid']+'!'),_0xf6bac8[_0x386118('0x37')]=_0x3dbb1a[_0x13b0d7][_0x386118('0x33')]);}}}if(!_0xe67bc0){logger[_0x386118('0x10')]('['+[_0x2a343c['toUpperCase']()]+_0x386118('0x4c')),_0xf6bac8['userEmail']=_0x16813e[_0x386118('0x4b')];for(_0x13b0d7=0x0;_0x13b0d7<_0x3dbb1a[_0x386118('0x5f')];_0x13b0d7++){_0x3dbb1a[_0x13b0d7]['internalemailaddress']===_0x16813e[_0x386118('0x4b')]&&(_0xf6bac8['userId']=_0x3dbb1a[_0x13b0d7][_0x386118('0x33')]);}}_0x39d77e(_0xf6bac8);})['catch'](function(_0x50a6d7){const _0x4e8881=_0xd9b1e8;_0xa09301(_0x50a6d7[_0x4e8881('0xf')]);});});}function createEndUser(_0x1b3058,_0x56cfbf,_0x856e81,_0x308da4,_0x5b7729,_0x211edb){return new Promise(function(_0x3f0f6e,_0x52ca50){const _0x1a7678=a1136_0x4edd;return getAuthToken(_0x56cfbf,_0x856e81,_0x211edb)[_0x1a7678('0x49')](function(_0x39179e){const _0x336807=_0x1a7678,_0x33b194=_0x211edb[_0x336807('0x5')]()==='outbound'?_0x5b7729[_0x336807('0x29')]:_0x5b7729['calleridnum'],_0x264568={'method':'POST','uri':_0x308da4+_0x336807('0x44'),'body':{'telephone1':_0x33b194,'fullname':_0x33b194,'firstname':_0x33b194,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x336807('0x9')+_0x1b3058['userId']+')'},'headers':{'Authorization':_0x336807('0x32')+_0x39179e,'OData-Version':_0x336807('0x3e')},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x264568);})['then'](function(_0x48b444){const _0x581829=_0x1a7678,_0x72dd7f=_0x48b444['headers'][_0x581829('0x57')],_0x2f013e=_0x72dd7f[_0x581829('0x5b')](_0x72dd7f[_0x581829('0xc')]('(')+0x1,_0x72dd7f[_0x581829('0xc')](')'));_0x1b3058[_0x581829('0x53')]=_0x2f013e,_0x3f0f6e(_0x1b3058);})['catch'](function(_0x2b28f2){_0x52ca50(_0x2b28f2['message']);});});}function getEndUser(_0x205c0,_0xd1e853,_0x4ff821,_0x3d2375,_0xce5e8c,_0x362497){return new Promise(function(_0x19e268){const _0x4022e5=a1136_0x4edd;return getAuthToken(_0xd1e853,_0x4ff821,_0x362497)[_0x4022e5('0x49')](function(_0x4066f0){const _0x1bec77=_0x4022e5,_0xef9a42={'method':_0x1bec77('0x38'),'uri':_0x3d2375+'contacts?$select=telephone1','headers':{'Authorization':_0x1bec77('0x32')+_0x4066f0,'If-None-Match':null,'OData-Version':_0x1bec77('0x3e')},'json':!![]};return rp(_0xef9a42);})[_0x4022e5('0x49')](function(_0x5472c0){const _0x32cf82=_0x4022e5;let _0x47e484=null;if(_0x5472c0){const _0x272c3a=_0x5472c0[_0x32cf82('0x6')];let _0x2ea776=![];for(_0x47e484=0x0;_0x47e484<_0x272c3a[_0x32cf82('0x5f')];_0x47e484++){const _0x42e45d=_0x362497[_0x32cf82('0x5')]()===_0x32cf82('0x3b')?_0xce5e8c[_0x32cf82('0x29')]:_0xce5e8c[_0x32cf82('0x51')];_0x272c3a[_0x47e484][_0x32cf82('0x4e')]===_0x42e45d&&(_0x2ea776=!![],_0x205c0[_0x32cf82('0x53')]=_0x272c3a[_0x47e484][_0x32cf82('0x52')]);}if(_0x2ea776)_0x19e268(_0x205c0);else return createEndUser(_0x205c0,_0xd1e853,_0x4ff821,_0x3d2375,_0xce5e8c,_0x362497)[_0x32cf82('0x49')](function(_0x55f0c4){const _0x41eb4b=_0x32cf82;logger['info']('['+[_0x362497[_0x41eb4b('0x41')]()]+_0x41eb4b('0x5e'),_0x55f0c4['enduserId']),_0x19e268(_0x55f0c4);});}else return createEndUser(_0x205c0,_0xd1e853,_0x4ff821,_0x3d2375,_0xce5e8c,_0x362497)[_0x32cf82('0x49')](function(_0x5a2162){const _0xabf941=_0x32cf82;logger[_0xabf941('0x10')]('['+[_0x362497[_0xabf941('0x41')]()]+_0xabf941('0x3'),_0x5a2162['enduserId']),_0x19e268(_0x5a2162);});});});}function getCustomFields(_0x3a76a2,_0x511cb0,_0x234a21){const _0x52ed2b=_0x38a426,_0x568053={};return _0x3a76a2[_0x52ed2b('0x5f')]>0x0&&_[_0x52ed2b('0xd')](_0x3a76a2,function(_0x38a1c4){const _0x3b6483=_0x52ed2b;if(_0x38a1c4[_0x3b6483('0x21')]===_0x3b6483('0x24')&&_0x38a1c4[_0x3b6483('0x36')]&&!_0x38a1c4[_0x3b6483('0x59')]){const _0x22888e=_0x38a1c4['idField'][_0x3b6483('0x5')](),_0x5742d0=_0x22888e[_0x3b6483('0x5b')](0x0,_0x22888e[_0x3b6483('0x40')]('_')),_0xc80280=_0x22888e['substring'](_0x22888e[_0x3b6483('0x40')]('_')+0x1);_0x5742d0===_0x234a21&&(_0x568053[_0xc80280]=_0x38a1c4[_0x3b6483('0x3c')]);}}),_0x568053;}function getTicket(_0xc1a1d,_0x21cc37,_0x6343d9,_0x210174,_0x41a00f,_0x43f869,_0x394abf){return new Promise(function(_0x2da960,_0x2f2b56){const _0x48459e=a1136_0x4edd;let _0x563779;return getAuthToken(_0x21cc37,_0x6343d9,_0x394abf)[_0x48459e('0x49')](function(_0x6f49d3){const _0x2215bc=_0x48459e;return _0x43f869[_0x2215bc('0x14')]==='incident'&&(_0x563779={'method':'POST','uri':_0x210174+_0x2215bc('0xb'),'body':Object[_0x2215bc('0x1f')]({},{'title':intUtil[_0x2215bc('0x46')](_0x43f869['Subjects'],_0x41a00f,'\x20'),'description':intUtil['getString'](_0x43f869[_0x2215bc('0x35')],_0x41a00f,'\x0a'),'customerid_contact@odata.bind':_0x2215bc('0x0')+_0xc1a1d[_0x2215bc('0x53')]+')','ownerid@odata.bind':_0x2215bc('0x9')+_0xc1a1d[_0x2215bc('0x37')]+')','caseorigincode':'1'},getCustomFields(_0x43f869[_0x2215bc('0x5d')],_0x41a00f,_0x43f869[_0x2215bc('0x14')])),'headers':{'Authorization':_0x2215bc('0x32')+_0x6f49d3,'OData-Version':_0x2215bc('0x3e')},'json':!![],'resolveWithFullResponse':!![]}),_0x43f869['ticketType']===_0x2215bc('0x3d')&&(_0x563779={'method':_0x2215bc('0x1c'),'uri':_0x210174+_0x2215bc('0x4'),'body':Object[_0x2215bc('0x1f')]({},{'subject':intUtil[_0x2215bc('0x46')](_0x43f869['Subjects'],_0x41a00f,'\x20'),'phonenumber':String(_0x41a00f[_0x2215bc('0x51')]),'description':intUtil[_0x2215bc('0x46')](_0x43f869['Descriptions'],_0x41a00f,'\x0a'),'regardingobjectid_contact@odata.bind':'/contacts('+_0xc1a1d['enduserId']+')','ownerid@odata.bind':'/systemusers('+_0xc1a1d[_0x2215bc('0x37')]+')','directioncode':_0xc1a1d['callDirection']===_0x2215bc('0x55')?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':'/systemusers('+_0xc1a1d[_0x2215bc('0x37')]+')','participationtypemask':_0xc1a1d[_0x2215bc('0x2b')]===_0x2215bc('0x55')?0x2:0x1},{'partyid_contact@odata.bind':_0x2215bc('0x0')+_0xc1a1d[_0x2215bc('0x53')]+')','participationtypemask':_0xc1a1d[_0x2215bc('0x2b')]==='queue'?0x1:0x2}]},getCustomFields(_0x43f869[_0x2215bc('0x5d')],_0x41a00f,_0x43f869[_0x2215bc('0x14')])),'headers':{'Authorization':_0x2215bc('0x32')+_0x6f49d3,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x563779);})[_0x48459e('0x49')](function(_0x1814c8){const _0x1e3c20=_0x48459e,_0x369bf0=_0x1814c8[_0x1e3c20('0x56')][_0x1e3c20('0x57')],_0x31a93d=_0x369bf0['substring'](_0x369bf0[_0x1e3c20('0xc')]('(')+0x1,_0x369bf0[_0x1e3c20('0xc')](')'));_0xc1a1d[_0x1e3c20('0x47')]=_0x31a93d,_0x2da960(_0xc1a1d);})[_0x48459e('0x1a')](function(_0x7369db){const _0x3feb56=_0x48459e;_0x2f2b56(_0x7369db[_0x3feb56('0xf')]);});});}function emit(_0x1c22ce,_0x19a918,_0x63a08,_0x17016f){const _0x1859f9=_0x38a426,_0xd8beaa={'uri':util[_0x1859f9('0x2c')](_0x1859f9('0x25'),_0x1c22ce,_0x63a08,_0x17016f)};io['to'](util[_0x1859f9('0x2c')](_0x1859f9('0x61'),_0x19a918))['emit'](_0x1859f9('0x3a'),_0xd8beaa);}exports['cs']=function(_0x2891b7,_0x3e77f3,_0x4820fa,_0x4483fb,_0x5da5ed,_0x4a9b80,_0xa83b1f,_0x1a6958){const _0x1a831d=_0x38a426,_0xa9ee04={};_0x4a9b80[_0x1a831d('0x45')]=intUtil[_0x1a831d('0x23')](_0x4a9b80['remoteUri']),_0x4a9b80[_0x1a831d('0x39')]=intUtil[_0x1a831d('0x23')](_0x4a9b80['serverUrl']),_0xa9ee04['callDirection']=_0x1a6958===_0x1a831d('0x55')||_0x1a6958===_0x1a831d('0x1')?_0x1a831d('0x55'):'outbound';const _0x129dab=util['format'](_0x1a831d('0xa'),_0x4a9b80['remoteUri']),_0x2a71bb=util[_0x1a831d('0x2c')](_0x1a831d('0x3f'),_0x4a9b80[_0x1a831d('0x11')]),_0x41857a=util[_0x1a831d('0x2c')](_0x1a831d('0xe'),_0x4a9b80[_0x1a831d('0x39')],_0x3e77f3[_0x1a831d('0x1e')],md5(_0x3e77f3[_0x1a831d('0x1e')]));if(_0x5da5ed&&_0x5da5ed['monitor_format'])logger['info'](_0x1a831d('0x2'),_0x1a831d('0x1b')),_0x3e77f3[_0x1a831d('0x17')]=_0x41857a;else _0xa83b1f&&_0xa83b1f['recordingFormat']&&_0xa83b1f[_0x1a831d('0x34')]!==_0x1a831d('0x58')?(logger[_0x1a831d('0x10')](_0x1a831d('0x48'),_0x1a831d('0x1b')),_0x3e77f3[_0x1a831d('0x17')]=_0x41857a):_0x3e77f3[_0x1a831d('0x17')]='';return getUser(_0xa9ee04,_0x4a9b80,_0x4483fb,_0x2a71bb,_0x129dab,_0x1a6958)[_0x1a831d('0x49')](function(_0x213325){const _0x31908e=_0x1a831d;return logger[_0x31908e('0x10')]('['+_0x1a6958[_0x31908e('0x41')]()+_0x31908e('0x16'),_0x213325[_0x31908e('0x37')]),logger['info']('['+_0x1a6958['toUpperCase']()+_0x31908e('0x8'),_0x213325['userEmail']),getEndUser(_0x213325,_0x4a9b80,_0x2a71bb,_0x129dab,_0x3e77f3,_0x1a6958);})['then'](function(_0x24a57e){const _0x4b133c=_0x1a831d;return logger[_0x4b133c('0x10')]('['+_0x1a6958['toUpperCase']()+_0x4b133c('0x4f'),_0x24a57e['enduserId']),logger[_0x4b133c('0x10')]('['+_0x1a6958['toUpperCase']()+_0x4b133c('0x2f'),_0x3e77f3['calleridnum']),getTicket(_0x24a57e,_0x4a9b80,_0x2a71bb,_0x129dab,_0x3e77f3,_0x4820fa,_0x1a6958);})[_0x1a831d('0x49')](function(_0x2ad65e){const _0x3a2437=_0x1a831d;logger[_0x3a2437('0x10')](util[_0x3a2437('0x2c')]('['+_0x1a6958[_0x3a2437('0x41')]()+_0x3a2437('0x28'),_0x4820fa[_0x3a2437('0x14')],_0x2ad65e[_0x3a2437('0x47')])),logger[_0x3a2437('0x10')](util[_0x3a2437('0x2c')]('['+_0x1a6958[_0x3a2437('0x41')]()+_0x3a2437('0x50'),_0x1a6958)),_0x1a6958!==_0x3a2437('0x1')&&(logger[_0x3a2437('0x10')]('['+_0x1a6958[_0x3a2437('0x41')]()+']',_0x3a2437('0x15')),emit(_0x4a9b80[_0x3a2437('0x45')],_0x4483fb['name'],_0x4820fa[_0x3a2437('0x14')],_0x2ad65e['ticketId']));})['catch'](function(_0x17da78){const _0x202000=_0x1a831d;logger[_0x202000('0x1d')]('['+_0x1a6958[_0x202000('0x41')]()+_0x202000('0x31'),util[_0x202000('0x20')](_0x17da78,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/freshdesk.js b/server/services/ami/trigger/integration/freshdesk.js index ea362d0..946d5ff 100644 --- a/server/services/ami/trigger/integration/freshdesk.js +++ b/server/services/ami/trigger/integration/freshdesk.js @@ -1 +1 @@ -const a1137_0x1275=['Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','catch','info','recordingFormat','request-promise-native','lastevent','serverUrl','Agent\x20found!','md5','../../../../rediscache','value','email','customField','getString','Authorization','merge','idField','length','toLowerCase','./util','Recording\x20is\x20enabled!','monitor_format','freshdesk','destcalleridname','toString','outbound','from','string','toUpperCase','%s/api/v2/agents/me','map','recordingURL','
','%s/api/v2/contacts','destcalleridnum','then','queue','The\x20Ticket\x20ID\x20is:','POST','Enduser\x20found!','[HTTP]','content','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','%s/api/v2/agents','forEach','Enduser\x20created.','trigger:browser:url','uniqueid','calleridname','push','Searching\x20enduser\x20with\x20phone','stringify','The\x20User\x20ID\x20is:','nameField','%s/api/v2/tickets','name','type','contact','find','The\x20Enduser\x20ID\x20is:','GET','variableName','%s/helpdesk/tickets/%d','Tags','Ticket\x20created!','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','defaults','stripTrailingSlash','Descriptions','format','Caller\x20-\x20%s','base64','variable','apiKey','mapValues','Variable','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','debug','calleridnum','error','lodash','remoteUri','[QUEUE]','Fields','custom_fields','keyBy','user:%s','[OUTBOUND]','Basic\x20%s'];(function(_0x43f4c8,_0x1275da){const _0x499f1a=function(_0x1bd481){while(--_0x1bd481){_0x43f4c8['push'](_0x43f4c8['shift']());}};_0x499f1a(++_0x1275da);}(a1137_0x1275,0x19a));const a1137_0x499f=function(_0x43f4c8,_0x1275da){_0x43f4c8=_0x43f4c8-0x0;let _0x499f1a=a1137_0x1275[_0x43f4c8];return _0x499f1a;};const _0x1aa187=a1137_0x499f;'use strict';const _=require(_0x1aa187('0x1a')),rp=require(_0x1aa187('0x27')),md5=require(_0x1aa187('0x2b')),util=require('util'),intUtil=require(_0x1aa187('0x36')),logger=require('../../../../config/logger')(_0x1aa187('0x39')),{getSocket}=require(_0x1aa187('0x2c')),io=getSocket(),headers={'Content-Type':'application/json','Accept':'application/json'};function emit(_0x1bd481,_0x2d1919,_0x4523c9){io['to'](_0x1bd481)['emit'](_0x2d1919,_0x4523c9);}function getTicket(_0x3327d9,_0x2fbf9b,_0xada31f,_0x5a51bc,_0x517ee0){const _0x13821c=_0x1aa187;logger[_0x13821c('0x25')]('Creating\x20new\x20ticket...');const _0x1f3714=_[_0x13821c('0x32')]({'responder_id':_0x2fbf9b['id'],'requester_id':_0xada31f['id'],'name':util[_0x13821c('0xf')](_0x13821c('0x10'),_0x517ee0['calleridname']),'phone':_0x517ee0['calleridnum'],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0x13821c('0x30')](_0x5a51bc['Subjects'],_0x517ee0,'\x20'),'description':intUtil[_0x13821c('0x30')](_0x5a51bc[_0x13821c('0xe')],_0x517ee0,_0x13821c('0x43')),'tags':getTags(_0x5a51bc[_0x13821c('0x9')],'name')},getCustomFields(_0x5a51bc[_0x13821c('0x1d')],_0x517ee0));return _0x1f3714['custom_fields']=_[_0x13821c('0x14')](_[_0x13821c('0x1f')](_0x1f3714[_0x13821c('0x1e')],'id'),_0x13821c('0x2d')),request({'uri':util[_0x13821c('0xf')](_0x13821c('0x0'),_0x3327d9[_0x13821c('0x1b')]),'method':_0x13821c('0x49'),'body':_0x1f3714})[_0x13821c('0x46')](function(_0x222a42){const _0x8d68d3=_0x13821c;return logger[_0x8d68d3('0x25')]('Ticket\x20created!'),_0x222a42;});}function getUser(_0xad7964,_0x12caae){const _0x2558bb=_0x1aa187;return intUtil['validateEmail'](_0x12caae)?request({'uri':util[_0x2558bb('0xf')](_0x2558bb('0x4e'),_0xad7964[_0x2558bb('0x1b')]),'qs':{'email':_0x12caae}})[_0x2558bb('0x46')](function(_0x57c9f7){const _0x572e20=_0x2558bb;return _0x57c9f7[_0x572e20('0x34')]?(logger['info'](_0x572e20('0x2a')),_[_0x572e20('0x4')](_0x57c9f7,function(_0x1ca89d){const _0x490e12=_0x572e20;return _0x1ca89d[_0x490e12('0x3')][_0x490e12('0x2e')]===_0x12caae;})):(logger[_0x572e20('0x25')](_0x572e20('0x16')),request({'uri':util[_0x572e20('0xf')](_0x572e20('0x40'),_0xad7964['remoteUri'])})[_0x572e20('0x46')](function(_0x4290d5){const _0x43d855=_0x572e20;return logger[_0x43d855('0x25')]('Admin\x20account\x20selected.'),_0x4290d5;}));}):(logger['info'](_0x2558bb('0x23')),request({'uri':util[_0x2558bb('0xf')](_0x2558bb('0x40'),_0xad7964['remoteUri'])})[_0x2558bb('0x46')](function(_0x400532){const _0x2ce6b3=_0x2558bb;return logger[_0x2ce6b3('0x25')]('Admin\x20account\x20selected.'),_0x400532;}));}function getEndUser(_0x4d5807,_0x3d120b,_0x229204){const _0x1739a6=_0x1aa187;return logger['info'](_0x1739a6('0x55'),_0x229204),request({'uri':util['format']('%s/api/v2/contacts',_0x4d5807[_0x1739a6('0x1b')]),'qs':{'phone':_0x229204}})['then'](function(_0x5dc5dc){const _0x402fdd=_0x1739a6;return _0x5dc5dc['length']?(logger['info'](_0x402fdd('0x4a')),_[_0x402fdd('0x4')](_0x5dc5dc,{'phone':_0x229204})):(logger[_0x402fdd('0x25')]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'uri':util[_0x402fdd('0xf')](_0x402fdd('0x44'),_0x4d5807[_0x402fdd('0x1b')]),'method':_0x402fdd('0x49'),'body':{'name':_0x3d120b,'phone':_0x229204}})['then'](function(_0x50466a){const _0x8e192f=_0x402fdd;return logger[_0x8e192f('0x25')](_0x8e192f('0x50')),_0x50466a;}));});}function getAuth(_0x4c290a){const _0x448232=_0x1aa187;return util['format'](_0x448232('0x22'),Buffer[_0x448232('0x3d')](_0x4c290a[_0x448232('0x13')]+':X')[_0x448232('0x3b')](_0x448232('0x11')));}function request(_0x5ef2d3){const _0x36a00f=_0x1aa187;return logger[_0x36a00f('0x17')](_0x36a00f('0x4b'),JSON['stringify'](_0x5ef2d3)),rp(_[_0x36a00f('0xc')](_0x5ef2d3,{'method':_0x36a00f('0x6'),'headers':headers,'json':!![]}));}function getTags(_0x1604ba,_0x46471d){const _0x1daead=_0x1aa187;let _0x2e8d77=[];return _0x1604ba&&_0x1604ba[_0x1daead('0x34')]>0x0&&(_0x2e8d77=_[_0x1daead('0x41')](_0x1604ba,_0x46471d)),_0x2e8d77;}function getCustomFields(_0x2dcb81,_0x3c8efc){const _0x39066f=_0x1aa187,_0x2cc76e={'custom_fields':[]};return _0x2dcb81['length']>0x0&&_[_0x39066f('0x4f')](_0x2dcb81,function(_0x1907ea){const _0x34f40d=_0x39066f;if(_0x1907ea[_0x34f40d('0x2')]===_0x34f40d('0x3e')&&_0x1907ea[_0x34f40d('0x58')]&&!_0x1907ea['customField'])_0x2cc76e[_0x1907ea['nameField'][_0x34f40d('0x35')]()]=_0x1907ea['content']['toString']();else{if(_0x1907ea[_0x34f40d('0x2')]==='string'&&_0x1907ea[_0x34f40d('0x33')]&&_0x1907ea[_0x34f40d('0x2f')])_0x2cc76e[_0x34f40d('0x1e')][_0x34f40d('0x54')]({'id':_0x1907ea[_0x34f40d('0x33')],'value':_0x1907ea[_0x34f40d('0x4c')][_0x34f40d('0x3b')]()});else{if(_0x1907ea[_0x34f40d('0x2')]===_0x34f40d('0x12')&&_0x1907ea[_0x34f40d('0x7')]&&_0x1907ea[_0x34f40d('0x33')]&&_0x1907ea['customField'])_0x3c8efc[_0x1907ea['variableName']]&&_0x2cc76e[_0x34f40d('0x1e')][_0x34f40d('0x54')]({'id':_0x1907ea[_0x34f40d('0x33')],'value':_0x3c8efc[_0x1907ea['variableName']]['toString']()});else _0x1907ea['type']==='customVariable'&&_0x1907ea[_0x34f40d('0x15')]&&_0x1907ea[_0x34f40d('0x15')]['name']&&_0x1907ea[_0x34f40d('0x33')]&&_0x1907ea['customField']&&(_0x3c8efc[_0x1907ea[_0x34f40d('0x15')]['name'][_0x34f40d('0x35')]()]&&_0x2cc76e[_0x34f40d('0x1e')]['push']({'id':_0x1907ea[_0x34f40d('0x33')],'value':_0x3c8efc[_0x1907ea[_0x34f40d('0x15')]['name']['toLowerCase']()]['toString']()}));}}}),_0x2cc76e;}exports[_0x1aa187('0x47')]=function(_0x22e2d4,_0x10bf8f,_0x15495b,_0x14fcd4,_0x48cf53,_0x4151c6){const _0x21133f=_0x1aa187;let _0x4d1409,_0x5ee481;return _0x4151c6[_0x21133f('0x1b')]=intUtil['stripTrailingSlash'](_0x4151c6[_0x21133f('0x1b')]),_0x4151c6[_0x21133f('0x29')]=intUtil[_0x21133f('0xd')](_0x4151c6[_0x21133f('0x29')]),_0x48cf53&&_0x48cf53[_0x21133f('0x38')]?(logger[_0x21133f('0x25')](_0x21133f('0x1c'),_0x21133f('0x37')),_0x10bf8f[_0x21133f('0x42')]=util[_0x21133f('0xf')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x4151c6['serverUrl'],_0x10bf8f[_0x21133f('0x52')],md5(_0x10bf8f['uniqueid']))):_0x10bf8f[_0x21133f('0x42')]='',headers['Authorization']=getAuth(_0x4151c6),getUser(_0x4151c6,_0x14fcd4[_0x21133f('0x2e')])[_0x21133f('0x46')](function(_0x46edb9){const _0x3ec364=_0x21133f;return _0x4d1409=_0x46edb9,logger[_0x3ec364('0x25')](_0x3ec364('0x57'),_0x4d1409['id']),getEndUser(_0x4151c6,_0x10bf8f[_0x3ec364('0x53')],_0x10bf8f[_0x3ec364('0x18')]);})[_0x21133f('0x46')](function(_0x218f23){const _0x470c47=_0x21133f;return _0x5ee481=_0x218f23,logger[_0x470c47('0x25')]('The\x20Enduser\x20ID\x20is:',_0x5ee481['id']),getTicket(_0x4151c6,_0x4d1409,_0x5ee481,_0x15495b,_0x10bf8f);})[_0x21133f('0x46')](function(_0x3479f5){const _0x3bf1ce=_0x21133f;_0x3479f5&&_0x3479f5['id']&&(logger[_0x3bf1ce('0x25')](_0x3bf1ce('0xa')),logger['info'](_0x3bf1ce('0x48'),_0x3479f5['id']),logger[_0x3bf1ce('0x25')](_0x3bf1ce('0x1c'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x3bf1ce('0xf')](_0x3bf1ce('0x20'),_0x14fcd4[_0x3bf1ce('0x1')]),_0x3bf1ce('0x51'),{'uri':util[_0x3bf1ce('0xf')](_0x3bf1ce('0x8'),_0x4151c6['remoteUri'],_0x3479f5['id'])}));})[_0x21133f('0x24')](function(_0x407001){const _0x4d8c61=_0x21133f;logger[_0x4d8c61('0x19')](_0x4d8c61('0x1c'),JSON['stringify'](_0x407001));});},exports[_0x1aa187('0x3c')]=function(_0x2711e5,_0xdb9a2f,_0x4b2664,_0xc65536,_0x28aed7,_0x1b8a0a,_0x3feb72){const _0x1b4509=_0x1aa187;let _0x364989,_0xf4ade3;return _0x1b8a0a[_0x1b4509('0x1b')]=intUtil[_0x1b4509('0xd')](_0x1b8a0a[_0x1b4509('0x1b')]),_0x1b8a0a[_0x1b4509('0x29')]=intUtil[_0x1b4509('0xd')](_0x1b8a0a['serverUrl']),_0x3feb72&&_0x3feb72['recordingFormat']&&_0x3feb72[_0x1b4509('0x26')]!=='none'&&(logger['info'](_0x1b4509('0x21'),_0x1b4509('0x37')),_0xdb9a2f['recordingURL']=util[_0x1b4509('0xf')](_0x1b4509('0xb'),_0x1b8a0a[_0x1b4509('0x29')],_0xdb9a2f[_0x1b4509('0x52')],md5(_0xdb9a2f[_0x1b4509('0x52')]))),headers['Authorization']=getAuth(_0x1b8a0a),getUser(_0x1b8a0a,_0xc65536[_0x1b4509('0x2e')])[_0x1b4509('0x46')](function(_0x145ff8){const _0x13bba9=_0x1b4509;return _0x364989=_0x145ff8,logger[_0x13bba9('0x25')](_0x13bba9('0x57'),_0x364989['id']),getEndUser(_0x1b8a0a,_0xdb9a2f[_0x13bba9('0x3a')],_0xdb9a2f[_0x13bba9('0x45')]);})['then'](function(_0x480607){const _0x14d96f=_0x1b4509;return _0xf4ade3=_0x480607,logger[_0x14d96f('0x25')](_0x14d96f('0x5'),_0xf4ade3['id']),getTicket(_0x1b8a0a,_0x364989,_0xf4ade3,_0x4b2664,_0xdb9a2f);})[_0x1b4509('0x46')](function(_0x806666){const _0x4fd42f=_0x1b4509;_0x806666&&_0x806666['id']&&(logger[_0x4fd42f('0x25')](_0x4fd42f('0xa')),logger['info']('The\x20Ticket\x20ID\x20is:',_0x806666['id']),logger['info'](_0x4fd42f('0x21'),_0x4fd42f('0x4d')),emit(util[_0x4fd42f('0xf')]('user:%s',_0xc65536['name']),_0x4fd42f('0x51'),{'uri':util[_0x4fd42f('0xf')](_0x4fd42f('0x8'),_0x1b8a0a[_0x4fd42f('0x1b')],_0x806666['id'])}));})['catch'](function(_0x78d9f1){const _0x54af31=_0x1b4509;logger[_0x54af31('0x19')](_0x54af31('0x21'),JSON['stringify'](_0x78d9f1));});},exports['unmanaged']=function(_0x22d27c,_0x3d7cb3,_0x543194,_0x541e9d,_0x422417,_0x313564){const _0x69803=_0x1aa187;let _0x4f95d0,_0x7ca34c;return _0x313564[_0x69803('0x1b')]=intUtil[_0x69803('0xd')](_0x313564[_0x69803('0x1b')]),_0x313564['serverUrl']=intUtil[_0x69803('0xd')](_0x313564['serverUrl']),_0x422417&&_0x422417[_0x69803('0x38')]?(logger[_0x69803('0x25')]('['+_0x3d7cb3[_0x69803('0x28')][_0x69803('0x3f')]()+']','Recording\x20is\x20enabled!'),_0x3d7cb3[_0x69803('0x42')]=util[_0x69803('0xf')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x313564[_0x69803('0x29')],_0x3d7cb3[_0x69803('0x52')],md5(_0x3d7cb3['uniqueid']))):_0x3d7cb3['recordingURL']='',headers[_0x69803('0x31')]=getAuth(_0x313564),getUser(_0x313564,'')[_0x69803('0x46')](function(_0xde16ec){const _0x445a14=_0x69803;return _0x4f95d0=_0xde16ec,logger[_0x445a14('0x25')](_0x445a14('0x57'),_0x4f95d0['id']),getEndUser(_0x313564,_0x3d7cb3[_0x445a14('0x53')],_0x3d7cb3[_0x445a14('0x18')]);})['then'](function(_0x41032d){const _0x4dea2d=_0x69803;return _0x7ca34c=_0x41032d,logger['info'](_0x4dea2d('0x5'),_0x7ca34c['id']),getTicket(_0x313564,_0x4f95d0,_0x7ca34c,_0x543194,_0x3d7cb3);})['then'](function(_0x3c6a07){const _0x437afe=_0x69803;_0x3c6a07&&(logger[_0x437afe('0x25')](_0x437afe('0xa')),logger[_0x437afe('0x25')]('The\x20Ticket\x20ID\x20is:',_0x3c6a07['id']));})[_0x69803('0x24')](function(_0x39d16c){const _0x3413e5=_0x69803;logger[_0x3413e5('0x19')]('['+_0x3d7cb3[_0x3413e5('0x28')][_0x3413e5('0x3f')]()+']',JSON[_0x3413e5('0x56')](_0x39d16c));});}; \ No newline at end of file +const a1137_0x54d0=['base64','validateEmail','error','The\x20Enduser\x20ID\x20is:','lastevent','Fields','toLowerCase','contact','length','toUpperCase','type','format','stringify','md5','recordingURL','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','queue','outbound','[OUTBOUND]','Subjects','find','calleridnum','Creating\x20new\x20ticket...','recordingFormat','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','Admin\x20account\x20selected.','%s/api/v2/contacts','mapValues','stripTrailingSlash','lodash','Agent\x20found!','remoteUri','customField','freshdesk','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Recording\x20is\x20enabled!','then','info','The\x20User\x20ID\x20is:','uniqueid','apiKey','application/json','Authorization','idField','calleridname','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','Ticket\x20created!','Descriptions','GET','email','../../../../config/logger','variableName','none','unmanaged','[HTTP]','debug','%s/helpdesk/tickets/%d','map','defaults','emit','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Variable','string','Caller\x20-\x20%s','%s/api/v2/agents','POST','The\x20Ticket\x20ID\x20is:','content','Enduser\x20found!','Basic\x20%s','[QUEUE]','user:%s','nameField','getString','catch','keyBy','Tags','serverUrl','push','
','name','custom_fields','merge','from','toString','monitor_format','trigger:browser:url','%s/api/v2/agents/me','destcalleridnum','forEach'];(function(_0x1d0dbc,_0x54d0cd){const _0x442e11=function(_0x18b601){while(--_0x18b601){_0x1d0dbc['push'](_0x1d0dbc['shift']());}};_0x442e11(++_0x54d0cd);}(a1137_0x54d0,0x1c1));const a1137_0x442e=function(_0x1d0dbc,_0x54d0cd){_0x1d0dbc=_0x1d0dbc-0x0;let _0x442e11=a1137_0x54d0[_0x1d0dbc];return _0x442e11;};const _0x5b5263=a1137_0x442e;'use strict';const _=require(_0x5b5263('0x1e')),rp=require('request-promise-native'),md5=require(_0x5b5263('0xe')),util=require('util'),intUtil=require('./util'),logger=require(_0x5b5263('0x33'))(_0x5b5263('0x22')),{getSocket}=require('../../../../rediscache'),io=getSocket(),headers={'Content-Type':_0x5b5263('0x2a'),'Accept':_0x5b5263('0x2a')};function emit(_0x18b601,_0x579c6b,_0x14285f){const _0x1df0ff=_0x5b5263;io['to'](_0x18b601)[_0x1df0ff('0x3c')](_0x579c6b,_0x14285f);}function getTicket(_0xadf143,_0x4c38bd,_0x4b6e05,_0x3be845,_0x27ad3f){const _0x21ddce=_0x5b5263;logger[_0x21ddce('0x26')](_0x21ddce('0x17'));const _0x3900cc=_[_0x21ddce('0x53')]({'responder_id':_0x4c38bd['id'],'requester_id':_0x4b6e05['id'],'name':util[_0x21ddce('0xc')](_0x21ddce('0x40'),_0x27ad3f[_0x21ddce('0x2d')]),'phone':_0x27ad3f['calleridnum'],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0x21ddce('0x4a')](_0x3be845[_0x21ddce('0x14')],_0x27ad3f,'\x20'),'description':intUtil[_0x21ddce('0x4a')](_0x3be845[_0x21ddce('0x30')],_0x27ad3f,_0x21ddce('0x50')),'tags':getTags(_0x3be845[_0x21ddce('0x4d')],_0x21ddce('0x51'))},getCustomFields(_0x3be845[_0x21ddce('0x6')],_0x27ad3f));return _0x3900cc[_0x21ddce('0x52')]=_[_0x21ddce('0x1c')](_[_0x21ddce('0x4c')](_0x3900cc[_0x21ddce('0x52')],'id'),'value'),request({'uri':util[_0x21ddce('0xc')]('%s/api/v2/tickets',_0xadf143['remoteUri']),'method':_0x21ddce('0x42'),'body':_0x3900cc})[_0x21ddce('0x25')](function(_0x4daeb2){const _0x19f9b5=_0x21ddce;return logger[_0x19f9b5('0x26')]('Ticket\x20created!'),_0x4daeb2;});}function getUser(_0x3ed574,_0x238bc9){const _0xd3c2ae=_0x5b5263;return intUtil[_0xd3c2ae('0x2')](_0x238bc9)?request({'uri':util[_0xd3c2ae('0xc')](_0xd3c2ae('0x41'),_0x3ed574[_0xd3c2ae('0x20')]),'qs':{'email':_0x238bc9}})['then'](function(_0x3b334f){const _0x42ee35=_0xd3c2ae;return _0x3b334f['length']?(logger[_0x42ee35('0x26')](_0x42ee35('0x1f')),_[_0x42ee35('0x15')](_0x3b334f,function(_0x883f03){const _0x25b86c=_0x42ee35;return _0x883f03[_0x25b86c('0x8')][_0x25b86c('0x32')]===_0x238bc9;})):(logger['info'](_0x42ee35('0x3d')),request({'uri':util[_0x42ee35('0xc')](_0x42ee35('0x58'),_0x3ed574['remoteUri'])})['then'](function(_0x16ef73){const _0x291e37=_0x42ee35;return logger[_0x291e37('0x26')](_0x291e37('0x1a')),_0x16ef73;}));}):(logger['info'](_0xd3c2ae('0x2e')),request({'uri':util['format']('%s/api/v2/agents/me',_0x3ed574[_0xd3c2ae('0x20')])})[_0xd3c2ae('0x25')](function(_0x283c54){const _0x3f0275=_0xd3c2ae;return logger['info'](_0x3f0275('0x1a')),_0x283c54;}));}function getEndUser(_0x2a9a72,_0x58ba49,_0x28ed94){const _0x4af4d6=_0x5b5263;return logger['info']('Searching\x20enduser\x20with\x20phone',_0x28ed94),request({'uri':util['format']('%s/api/v2/contacts',_0x2a9a72[_0x4af4d6('0x20')]),'qs':{'phone':_0x28ed94}})[_0x4af4d6('0x25')](function(_0x139e62){const _0x14331f=_0x4af4d6;return _0x139e62[_0x14331f('0x9')]?(logger[_0x14331f('0x26')](_0x14331f('0x45')),_[_0x14331f('0x15')](_0x139e62,{'phone':_0x28ed94})):(logger[_0x14331f('0x26')](_0x14331f('0x10')),request({'uri':util['format'](_0x14331f('0x1b'),_0x2a9a72['remoteUri']),'method':_0x14331f('0x42'),'body':{'name':_0x58ba49,'phone':_0x28ed94}})[_0x14331f('0x25')](function(_0x4f6fdd){const _0x40fb54=_0x14331f;return logger[_0x40fb54('0x26')]('Enduser\x20created.'),_0x4f6fdd;}));});}function getAuth(_0x3daea8){const _0x2d82c9=_0x5b5263;return util['format'](_0x2d82c9('0x46'),Buffer[_0x2d82c9('0x54')](_0x3daea8[_0x2d82c9('0x29')]+':X')[_0x2d82c9('0x55')](_0x2d82c9('0x1')));}function request(_0x272b4c){const _0x4e0691=_0x5b5263;return logger[_0x4e0691('0x38')](_0x4e0691('0x37'),JSON[_0x4e0691('0xd')](_0x272b4c)),rp(_[_0x4e0691('0x3b')](_0x272b4c,{'method':_0x4e0691('0x31'),'headers':headers,'json':!![]}));}function getTags(_0x57ced7,_0xcdda10){const _0x596bed=_0x5b5263;let _0x340466=[];return _0x57ced7&&_0x57ced7[_0x596bed('0x9')]>0x0&&(_0x340466=_[_0x596bed('0x3a')](_0x57ced7,_0xcdda10)),_0x340466;}function getCustomFields(_0x2cf419,_0x4940d4){const _0x147306=_0x5b5263,_0x4855e0={'custom_fields':[]};return _0x2cf419[_0x147306('0x9')]>0x0&&_[_0x147306('0x0')](_0x2cf419,function(_0x4a791){const _0x2212f5=_0x147306;if(_0x4a791[_0x2212f5('0xb')]===_0x2212f5('0x3f')&&_0x4a791[_0x2212f5('0x49')]&&!_0x4a791['customField'])_0x4855e0[_0x4a791[_0x2212f5('0x49')][_0x2212f5('0x7')]()]=_0x4a791[_0x2212f5('0x44')][_0x2212f5('0x55')]();else{if(_0x4a791[_0x2212f5('0xb')]==='string'&&_0x4a791['idField']&&_0x4a791[_0x2212f5('0x21')])_0x4855e0[_0x2212f5('0x52')][_0x2212f5('0x4f')]({'id':_0x4a791[_0x2212f5('0x2c')],'value':_0x4a791[_0x2212f5('0x44')][_0x2212f5('0x55')]()});else{if(_0x4a791[_0x2212f5('0xb')]==='variable'&&_0x4a791[_0x2212f5('0x34')]&&_0x4a791[_0x2212f5('0x2c')]&&_0x4a791[_0x2212f5('0x21')])_0x4940d4[_0x4a791[_0x2212f5('0x34')]]&&_0x4855e0[_0x2212f5('0x52')][_0x2212f5('0x4f')]({'id':_0x4a791[_0x2212f5('0x2c')],'value':_0x4940d4[_0x4a791[_0x2212f5('0x34')]][_0x2212f5('0x55')]()});else _0x4a791['type']==='customVariable'&&_0x4a791[_0x2212f5('0x3e')]&&_0x4a791['Variable'][_0x2212f5('0x51')]&&_0x4a791[_0x2212f5('0x2c')]&&_0x4a791['customField']&&(_0x4940d4[_0x4a791[_0x2212f5('0x3e')][_0x2212f5('0x51')]['toLowerCase']()]&&_0x4855e0[_0x2212f5('0x52')][_0x2212f5('0x4f')]({'id':_0x4a791[_0x2212f5('0x2c')],'value':_0x4940d4[_0x4a791[_0x2212f5('0x3e')][_0x2212f5('0x51')]['toLowerCase']()][_0x2212f5('0x55')]()}));}}}),_0x4855e0;}exports[_0x5b5263('0x11')]=function(_0x380d43,_0x4452ae,_0x5152c1,_0x1dac99,_0x26a2d6,_0x4a82c7){const _0x23747d=_0x5b5263;let _0x19b08f,_0xb6012a;return _0x4a82c7[_0x23747d('0x20')]=intUtil[_0x23747d('0x1d')](_0x4a82c7[_0x23747d('0x20')]),_0x4a82c7[_0x23747d('0x4e')]=intUtil[_0x23747d('0x1d')](_0x4a82c7[_0x23747d('0x4e')]),_0x26a2d6&&_0x26a2d6['monitor_format']?(logger['info'](_0x23747d('0x47'),_0x23747d('0x24')),_0x4452ae[_0x23747d('0xf')]=util[_0x23747d('0xc')](_0x23747d('0x23'),_0x4a82c7[_0x23747d('0x4e')],_0x4452ae[_0x23747d('0x28')],md5(_0x4452ae['uniqueid']))):_0x4452ae['recordingURL']='',headers[_0x23747d('0x2b')]=getAuth(_0x4a82c7),getUser(_0x4a82c7,_0x1dac99[_0x23747d('0x32')])['then'](function(_0x424bfb){const _0x5a967e=_0x23747d;return _0x19b08f=_0x424bfb,logger[_0x5a967e('0x26')](_0x5a967e('0x27'),_0x19b08f['id']),getEndUser(_0x4a82c7,_0x4452ae[_0x5a967e('0x2d')],_0x4452ae['calleridnum']);})[_0x23747d('0x25')](function(_0x34aa00){const _0x1c0943=_0x23747d;return _0xb6012a=_0x34aa00,logger['info'](_0x1c0943('0x4'),_0xb6012a['id']),getTicket(_0x4a82c7,_0x19b08f,_0xb6012a,_0x5152c1,_0x4452ae);})[_0x23747d('0x25')](function(_0x433081){const _0x33129f=_0x23747d;_0x433081&&_0x433081['id']&&(logger[_0x33129f('0x26')]('Ticket\x20created!'),logger[_0x33129f('0x26')](_0x33129f('0x43'),_0x433081['id']),logger[_0x33129f('0x26')](_0x33129f('0x47'),_0x33129f('0x19')),emit(util[_0x33129f('0xc')]('user:%s',_0x1dac99[_0x33129f('0x51')]),_0x33129f('0x57'),{'uri':util[_0x33129f('0xc')](_0x33129f('0x39'),_0x4a82c7['remoteUri'],_0x433081['id'])}));})[_0x23747d('0x4b')](function(_0x55c54c){const _0x3231af=_0x23747d;logger['error'](_0x3231af('0x47'),JSON[_0x3231af('0xd')](_0x55c54c));});},exports[_0x5b5263('0x12')]=function(_0x2cbda4,_0x45e03f,_0x22cfbb,_0x2e5196,_0x38d2c8,_0x328ec4,_0x40c70b){const _0x636ab6=_0x5b5263;let _0x6ddf07,_0xd8b9e6;return _0x328ec4[_0x636ab6('0x20')]=intUtil[_0x636ab6('0x1d')](_0x328ec4[_0x636ab6('0x20')]),_0x328ec4[_0x636ab6('0x4e')]=intUtil[_0x636ab6('0x1d')](_0x328ec4['serverUrl']),_0x40c70b&&_0x40c70b[_0x636ab6('0x18')]&&_0x40c70b['recordingFormat']!==_0x636ab6('0x35')&&(logger['info']('[OUTBOUND]','Recording\x20is\x20enabled!'),_0x45e03f[_0x636ab6('0xf')]=util[_0x636ab6('0xc')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x328ec4[_0x636ab6('0x4e')],_0x45e03f['uniqueid'],md5(_0x45e03f[_0x636ab6('0x28')]))),headers[_0x636ab6('0x2b')]=getAuth(_0x328ec4),getUser(_0x328ec4,_0x2e5196['email'])[_0x636ab6('0x25')](function(_0xb0952f){const _0x2cd87e=_0x636ab6;return _0x6ddf07=_0xb0952f,logger[_0x2cd87e('0x26')]('The\x20User\x20ID\x20is:',_0x6ddf07['id']),getEndUser(_0x328ec4,_0x45e03f['destcalleridname'],_0x45e03f[_0x2cd87e('0x59')]);})['then'](function(_0x1aa550){const _0x4f66fd=_0x636ab6;return _0xd8b9e6=_0x1aa550,logger[_0x4f66fd('0x26')]('The\x20Enduser\x20ID\x20is:',_0xd8b9e6['id']),getTicket(_0x328ec4,_0x6ddf07,_0xd8b9e6,_0x22cfbb,_0x45e03f);})[_0x636ab6('0x25')](function(_0x5d0f1b){const _0x2d469f=_0x636ab6;_0x5d0f1b&&_0x5d0f1b['id']&&(logger['info'](_0x2d469f('0x2f')),logger[_0x2d469f('0x26')](_0x2d469f('0x43'),_0x5d0f1b['id']),logger[_0x2d469f('0x26')](_0x2d469f('0x13'),_0x2d469f('0x19')),emit(util[_0x2d469f('0xc')](_0x2d469f('0x48'),_0x2e5196[_0x2d469f('0x51')]),'trigger:browser:url',{'uri':util['format']('%s/helpdesk/tickets/%d',_0x328ec4[_0x2d469f('0x20')],_0x5d0f1b['id'])}));})[_0x636ab6('0x4b')](function(_0x423fa1){const _0x356cc1=_0x636ab6;logger[_0x356cc1('0x3')](_0x356cc1('0x13'),JSON[_0x356cc1('0xd')](_0x423fa1));});},exports[_0x5b5263('0x36')]=function(_0x2e6fde,_0x5c311e,_0x1f4ef2,_0x22394b,_0x6b0b02,_0x1536b2){const _0x38564e=_0x5b5263;let _0x32d132,_0x49b753;return _0x1536b2[_0x38564e('0x20')]=intUtil[_0x38564e('0x1d')](_0x1536b2[_0x38564e('0x20')]),_0x1536b2[_0x38564e('0x4e')]=intUtil[_0x38564e('0x1d')](_0x1536b2[_0x38564e('0x4e')]),_0x6b0b02&&_0x6b0b02[_0x38564e('0x56')]?(logger[_0x38564e('0x26')]('['+_0x5c311e[_0x38564e('0x5')][_0x38564e('0xa')]()+']','Recording\x20is\x20enabled!'),_0x5c311e['recordingURL']=util[_0x38564e('0xc')](_0x38564e('0x23'),_0x1536b2[_0x38564e('0x4e')],_0x5c311e[_0x38564e('0x28')],md5(_0x5c311e[_0x38564e('0x28')]))):_0x5c311e[_0x38564e('0xf')]='',headers[_0x38564e('0x2b')]=getAuth(_0x1536b2),getUser(_0x1536b2,'')['then'](function(_0x16c9bb){const _0x188742=_0x38564e;return _0x32d132=_0x16c9bb,logger[_0x188742('0x26')](_0x188742('0x27'),_0x32d132['id']),getEndUser(_0x1536b2,_0x5c311e[_0x188742('0x2d')],_0x5c311e[_0x188742('0x16')]);})[_0x38564e('0x25')](function(_0x8037c1){const _0xcea949=_0x38564e;return _0x49b753=_0x8037c1,logger[_0xcea949('0x26')](_0xcea949('0x4'),_0x49b753['id']),getTicket(_0x1536b2,_0x32d132,_0x49b753,_0x1f4ef2,_0x5c311e);})[_0x38564e('0x25')](function(_0x78c844){const _0xfa27c9=_0x38564e;_0x78c844&&(logger[_0xfa27c9('0x26')](_0xfa27c9('0x2f')),logger[_0xfa27c9('0x26')](_0xfa27c9('0x43'),_0x78c844['id']));})[_0x38564e('0x4b')](function(_0x33d0f0){const _0x417505=_0x38564e;logger['error']('['+_0x5c311e[_0x417505('0x5')][_0x417505('0xa')]()+']',JSON[_0x417505('0xd')](_0x33d0f0));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/freshsales.js b/server/services/ami/trigger/integration/freshsales.js index c393f4b..e37bcf8 100644 --- a/server/services/ami/trigger/integration/freshsales.js +++ b/server/services/ami/trigger/integration/freshsales.js @@ -1 +1 @@ -const a1138_0x4da7=['username',']\x20Error\x20running\x20Freshsales\x20integration','Contact\x20found:','endUserId','recordingFormat','Task\x20created:','lodash','unmanaged','Contact\x20created:','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','add','adminId','email','Searching\x20contact\x20with\x20phone','[OUTBOUND]','toUpperCase','/contacts/','ticketId','toLowerCase','POST','remoteUri','headers','work_number','[QUEUE]','userEmail','/api/selector/owners','format','Recording\x20is\x20enabled!','callDirection','agentEmail','users','userId','calleridnum','contact','contacts','outbound','adminEmail','Getting\x20contact\x20list','uniqueid','error','filters','then','Getting\x20user\x20list','/api/contacts/filters','GET','name','message','/api/contacts/view/','Getting\x20admin\x20information','Token\x20token=','stripTrailingSlash','catch','YYYY-MM-DDTHH:mm:ss','Getting\x20contacts\x20filter','info','queue','Contact','/api/contacts','request-promise-native','All\x20Contacts','moment','recordingURL','md5','Requested\x20Resource\x20not\x20Found','../../../../rediscache','Admin\x20found:','length','Creating\x20new\x20task','Displaying\x20task\x20in\x20a\x20new\x20tab...','contactNumber','getString','mobile_number','destcalleridnum','Subjects','apiKey','task','serverUrl','none','Descriptions','Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact','util','user:%s','emit'];(function(_0x3aec85,_0x4da7bc){const _0x3532b5=function(_0x3a3d60){while(--_0x3a3d60){_0x3aec85['push'](_0x3aec85['shift']());}};_0x3532b5(++_0x4da7bc);}(a1138_0x4da7,0xf2));const a1138_0x3532=function(_0x3aec85,_0x4da7bc){_0x3aec85=_0x3aec85-0x0;let _0x3532b5=a1138_0x4da7[_0x3aec85];return _0x3532b5;};const _0x2d319a=a1138_0x3532;'use strict';const _=require(_0x2d319a('0xd')),rp=require(_0x2d319a('0x41')),md5=require(_0x2d319a('0x45')),util=require(_0x2d319a('0x4')),moment=require(_0x2d319a('0x43')),intUtil=require('./util'),logger=require('../../../../config/logger')('freshsales'),{getSocket}=require(_0x2d319a('0x47')),io=getSocket();function getAdminId(_0x3a3d60,_0x47b797,_0x4b757f,_0x263729){return new Promise(function(_0x166799,_0x522877){const _0x2b152d=a1138_0x3532;let _0x279011=![];const _0x1fe5b3={'method':_0x2b152d('0x33'),'uri':_0x263729+_0x2b152d('0x20'),'json':!![]};return _0x1fe5b3['headers']=_0x4b757f,logger[_0x2b152d('0x3d')](_0x2b152d('0x37')),rp(_0x1fe5b3)['then'](function(_0x59eba9){const _0x2cb008=_0x2b152d;if(_0x59eba9){const _0x2359e9=_0x59eba9[_0x2cb008('0x25')];let _0x3877f1=null;for(_0x3877f1=0x0;_0x3877f1<_0x2359e9['length'];_0x3877f1++){_0x2359e9[_0x3877f1]['email']===_0x3a3d60[_0x2cb008('0x2b')]&&(_0x3a3d60[_0x2cb008('0x12')]=_0x2359e9[_0x3877f1]['id'],_0x279011=!![]);}_0x279011?(logger['info'](_0x2cb008('0x48'),_0x3a3d60[_0x2cb008('0x12')]),_0x166799(_0x3a3d60)):_0x522877({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}else _0x522877({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});})[_0x2b152d('0x3a')](function(_0x317f57){const _0x55c6dc=_0x2b152d;logger[_0x55c6dc('0x2e')]('['+[_0x47b797[_0x55c6dc('0x16')]()]+']',_0x317f57[_0x55c6dc('0x35')]),_0x522877(_0x317f57);});});}function getUser(_0x25298f,_0x9ed641,_0x5e7f53){return function(_0x246cde){return new Promise(function(_0x3fb8ff,_0x5f1b20){const _0x9f14f2=a1138_0x3532,_0x28be5e={'method':_0x9f14f2('0x33'),'uri':_0x5e7f53+_0x9f14f2('0x20'),'json':!![]};return _0x28be5e['headers']=_0x9ed641,logger[_0x9f14f2('0x3d')](_0x9f14f2('0x31')),rp(_0x28be5e)[_0x9f14f2('0x30')](function(_0x56d915){const _0x1427e7=_0x9f14f2;if(_0x56d915){const _0x2132fe=_0x56d915[_0x1427e7('0x25')];let _0x3d27f6=![],_0x2aa00e=null;if(_0x246cde[_0x1427e7('0x24')]!==null){logger[_0x1427e7('0x3d')]('Getting\x20user\x20with\x20email',_0x246cde[_0x1427e7('0x24')]),_0x246cde[_0x1427e7('0x1f')]=_0x246cde[_0x1427e7('0x24')];for(_0x2aa00e=0x0;_0x2aa00e<_0x2132fe[_0x1427e7('0x49')];_0x2aa00e++){_0x2132fe[_0x2aa00e][_0x1427e7('0x13')]===_0x246cde[_0x1427e7('0x24')]&&(_0x3d27f6=!![],_0x246cde[_0x1427e7('0x26')]=_0x2132fe[_0x2aa00e]['id'],logger[_0x1427e7('0x3d')]('User\x20found:',_0x246cde['userId']));}}!_0x3d27f6&&(logger[_0x1427e7('0x3d')]('Admin\x20selected'),_0x246cde[_0x1427e7('0x1f')]=_0x246cde[_0x1427e7('0x2b')],_0x246cde[_0x1427e7('0x26')]=_0x246cde[_0x1427e7('0x12')],_0x3d27f6=!![]),_0x3d27f6?_0x3fb8ff(_0x246cde):_0x5f1b20({'statusCode':0x194,'message':_0x1427e7('0x46')});}else _0x5f1b20({'statusCode':0x194,'message':_0x1427e7('0x46')});})['catch'](function(_0x2ae1fb){const _0x1ef6d8=_0x9f14f2;logger[_0x1ef6d8('0x2e')]('['+[_0x25298f['toUpperCase']()]+']',_0x2ae1fb['message']),_0x5f1b20(_0x2ae1fb);});});};}function getEndUser(_0x1d0028,_0x36c556,_0x1efecc){return function(_0x37d072){return new Promise(function(_0x263483){const _0x51849f=a1138_0x3532;let _0x4a56c1=0x0;const _0x4d7384={'method':_0x51849f('0x33'),'uri':_0x1efecc+_0x51849f('0x32'),'json':!![]};return _0x4d7384['headers']=_0x36c556,logger[_0x51849f('0x3d')](_0x51849f('0x3c')),rp(_0x4d7384)['then'](function(_0x50dbe4){const _0x4021f0=_0x51849f;_0x50dbe4[_0x4021f0('0x2f')]['forEach'](function(_0x48a468){const _0x508233=_0x4021f0;_0x48a468[_0x508233('0x34')]===_0x508233('0x42')&&(_0x4a56c1=_0x48a468['id']);});})[_0x51849f('0x30')](function(){const _0x2204bd=_0x51849f;logger['info'](_0x2204bd('0x2c'));const _0x539372={'method':'GET','uri':_0x1efecc+_0x2204bd('0x36')+_0x4a56c1,'json':!![]};return _0x539372[_0x2204bd('0x1c')]=_0x36c556,rp(_0x539372);})[_0x51849f('0x30')](function(_0x418480){const _0x1b879c=_0x51849f;logger[_0x1b879c('0x3d')](_0x1b879c('0x14'),_0x37d072['contactNumber']);if(_0x418480[_0x1b879c('0x29')][_0x1b879c('0x49')]>0x0){const _0x3c18b1=_['find'](_0x418480[_0x1b879c('0x29')],function(_0x2e3b1f){const _0x1cca9c=_0x1b879c;if(_0x2e3b1f[_0x1cca9c('0x1d')]===_0x37d072[_0x1cca9c('0x4c')]||_0x2e3b1f[_0x1cca9c('0x4e')]===_0x37d072[_0x1cca9c('0x4c')])return _0x2e3b1f;});if(_0x3c18b1)_0x37d072[_0x1b879c('0xa')]=_0x3c18b1['id'],logger[_0x1b879c('0x3d')](_0x1b879c('0x9'),_0x37d072[_0x1b879c('0xa')]),_0x263483(_0x37d072);else return createEndUser(_0x37d072,_0x1d0028,_0x36c556,_0x1efecc)['then'](function(_0x3d8921){const _0x5a6ebc=_0x1b879c;logger['info'](_0x5a6ebc('0xf'),_0x37d072[_0x5a6ebc('0xa')]),_0x263483(_0x3d8921);});}else return createEndUser(_0x37d072,_0x1d0028,_0x36c556,_0x1efecc)[_0x1b879c('0x30')](function(_0x2319a3){const _0x318bf1=_0x1b879c;logger[_0x318bf1('0x3d')](_0x318bf1('0xf'),_0x37d072[_0x318bf1('0xa')]),_0x263483(_0x2319a3);});})[_0x51849f('0x3a')](function(_0xf30e6f){const _0x36cc3e=_0x51849f;throw new Error(_0xf30e6f[_0x36cc3e('0x35')]);});});};}function createEndUser(_0x213d01,_0x544b64,_0x4c99f2,_0xb7b2aa){return new Promise(function(_0x4186ce,_0x51d90e){const _0x2f12b0=a1138_0x3532,_0x431db0=moment(),_0x5bcefc={'method':_0x2f12b0('0x1a'),'uri':_0xb7b2aa+_0x2f12b0('0x40'),'body':{'contact':{'last_name':_0x213d01[_0x2f12b0('0x4c')],'work_number':_0x213d01[_0x2f12b0('0x4c')],'mobile_number':_0x213d01[_0x2f12b0('0x4c')],'owner_id':_0x213d01[_0x2f12b0('0x26')],'created_at':_0x431db0[_0x2f12b0('0x21')](_0x2f12b0('0x3b'))}},'json':!![]};return _0x5bcefc[_0x2f12b0('0x1c')]=_0x4c99f2,logger['info'](_0x2f12b0('0x3')),rp(_0x5bcefc)['then'](function(_0x5ab6c6){const _0x827a0e=_0x2f12b0;_0x213d01[_0x827a0e('0xa')]=_0x5ab6c6[_0x827a0e('0x28')]['id'],_0x4186ce(_0x213d01);})[_0x2f12b0('0x3a')](function(_0x3c0e4d){const _0x2999dd=_0x2f12b0;logger[_0x2999dd('0x2e')]('['+[_0x544b64[_0x2999dd('0x16')]()]+']',_0x3c0e4d[_0x2999dd('0x35')]),_0x51d90e(_0x3c0e4d[_0x2999dd('0x35')]);});});}function getTicket(_0x3fb141,_0x207bf1,_0x5f2882,_0xa55917,_0x518ef){return function(_0x5501c7){const _0x58feaf=a1138_0x3532;return logger['info'](_0x58feaf('0x4a')),new Promise(function(_0x6308e6,_0x5bfd04){const _0x398e8f=_0x58feaf,_0x47c7f6=moment(),_0x2077fb={'method':_0x398e8f('0x1a'),'uri':_0x5f2882+'/api/tasks','body':{'title':intUtil[_0x398e8f('0x4d')](_0xa55917[_0x398e8f('0x50')],_0x518ef,'\x20'),'description':intUtil[_0x398e8f('0x4d')](_0xa55917[_0x398e8f('0x2')],_0x518ef,'\x0a'),'owner_id':_0x5501c7['userId'],'creater_id':_0x5501c7[_0x398e8f('0x12')],'targetable_id':_0x5501c7[_0x398e8f('0xa')],'targetable_type':_0x398e8f('0x3f'),'created_at':_0x47c7f6[_0x398e8f('0x21')](_0x398e8f('0x3b')),'due_date':_0x47c7f6[_0x398e8f('0x11')](0x1e,'m')['format'](_0x398e8f('0x3b'))},'json':!![]};return _0x2077fb['headers']=_0x207bf1,rp(_0x2077fb)[_0x398e8f('0x30')](function(_0x27001a){const _0x4426dc=_0x398e8f;_0x5501c7[_0x4426dc('0x18')]=_0x27001a[_0x4426dc('0x52')]['id'],logger[_0x4426dc('0x3d')](_0x4426dc('0xc'),_0x5501c7['ticketId']),_0x6308e6(_0x5501c7);})[_0x398e8f('0x3a')](function(_0x1b64fd){const _0x5f5abe=_0x398e8f;logger[_0x5f5abe('0x2e')]('['+[_0x3fb141['toUpperCase']()]+']',_0x1b64fd[_0x5f5abe('0x35')]),_0x5bfd04(_0x1b64fd[_0x5f5abe('0x35')]);});});};}function emit(_0x54aef8,_0x392749,_0x3a1e48){const _0x4c77d1=_0x2d319a,_0x5a76df={'uri':_0x54aef8+_0x4c77d1('0x17')+_0x3a1e48};io['to'](util['format'](_0x4c77d1('0x5'),_0x392749))[_0x4c77d1('0x6')]('trigger:browser:url',_0x5a76df);}exports['cs']=function(_0x5af14d,_0x263af3,_0x2b4cb8,_0x40176c,_0x3fce1f,_0x4d8571,_0x5dd5e2,_0x4046df){const _0x1bf251=_0x2d319a,_0x387307={},_0x56201d={'Authorization':_0x1bf251('0x38')+_0x4d8571[_0x1bf251('0x51')]};_0x4d8571[_0x1bf251('0x1b')]=intUtil['stripTrailingSlash'](_0x4d8571[_0x1bf251('0x1b')]),_0x4d8571[_0x1bf251('0x0')]=intUtil[_0x1bf251('0x39')](_0x4d8571[_0x1bf251('0x0')]);const _0x55b419=_0x4d8571[_0x1bf251('0x1b')];_0x387307[_0x1bf251('0x2b')]=_0x4d8571[_0x1bf251('0x7')],_0x387307[_0x1bf251('0x4c')]=_0x4046df[_0x1bf251('0x19')]()===_0x1bf251('0x2a')?_0x263af3[_0x1bf251('0x4f')]:_0x263af3[_0x1bf251('0x27')],_0x387307[_0x1bf251('0x23')]=_0x4046df==='queue'||_0x4046df===_0x1bf251('0xe')?_0x1bf251('0x3e'):_0x1bf251('0x2a');_0x40176c&&(_0x387307[_0x1bf251('0x24')]=_0x40176c[_0x1bf251('0x13')]);const _0x1cdded=util[_0x1bf251('0x21')](_0x1bf251('0x10'),_0x4d8571[_0x1bf251('0x0')],_0x263af3[_0x1bf251('0x2d')],md5(_0x263af3['uniqueid']));if(_0x3fce1f&&_0x3fce1f['monitor_format'])logger[_0x1bf251('0x3d')](_0x1bf251('0x1e'),'Recording\x20is\x20enabled!'),_0x263af3[_0x1bf251('0x44')]=_0x1cdded;else _0x5dd5e2&&_0x5dd5e2[_0x1bf251('0xb')]&&_0x5dd5e2['recordingFormat']!==_0x1bf251('0x1')?(logger[_0x1bf251('0x3d')](_0x1bf251('0x15'),_0x1bf251('0x22')),_0x263af3[_0x1bf251('0x44')]=_0x1cdded):_0x263af3[_0x1bf251('0x44')]='';return getAdminId(_0x387307,_0x4046df,_0x56201d,_0x55b419)['then'](getUser(_0x4046df,_0x56201d,_0x55b419))[_0x1bf251('0x30')](getEndUser(_0x4046df,_0x56201d,_0x55b419))['then'](getTicket(_0x4046df,_0x56201d,_0x55b419,_0x2b4cb8,_0x263af3))[_0x1bf251('0x30')](function(_0x584f83){const _0x2d014e=_0x1bf251;logger['info'](util['format']('The\x20ticket\x20ID\x20is:\x20%s',_0x584f83['ticketId'])),_0x4046df!==_0x2d014e('0xe')&&(logger[_0x2d014e('0x3d')]('['+[_0x4046df[_0x2d014e('0x16')]()]+']',_0x2d014e('0x4b')),emit(_0x55b419,_0x40176c[_0x2d014e('0x34')],_0x584f83[_0x2d014e('0xa')]));})['catch'](function(_0x13dd9f){const _0x4a0615=_0x1bf251;logger[_0x4a0615('0x2e')]('['+[_0x4046df['toUpperCase']()]+_0x4a0615('0x8'),util['inspect'](_0x13dd9f,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1138_0xcd99=['[QUEUE]','Token\x20token=','../../../../config/logger','getString','trigger:browser:url','YYYY-MM-DDTHH:mm:ss','adminEmail','toLowerCase','The\x20ticket\x20ID\x20is:\x20%s','/api/contacts/view/','info','forEach','contactNumber','userId','Creating\x20new\x20task','remoteUri','util','adminId','Getting\x20user\x20list','unmanaged','format','ticketId','toUpperCase','/contacts/','users','Descriptions','serverUrl','./util','calleridnum','lodash','All\x20Contacts','catch','recordingURL','POST','destcalleridnum','request-promise-native','/api/contacts','outbound','add','uniqueid','message','length','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','recordingFormat','agentEmail','username','work_number','find','Recording\x20is\x20enabled!','callDirection','name',']\x20Error\x20running\x20Freshsales\x20integration','filters','GET','email','Contact\x20created:','Getting\x20admin\x20information','endUserId','[OUTBOUND]','none','Task\x20created:','headers','Subjects','error','Getting\x20contacts\x20filter','mobile_number','Displaying\x20task\x20in\x20a\x20new\x20tab...','Requested\x20Resource\x20not\x20Found','freshsales','Contact','User\x20found:','then','/api/contacts/filters','stripTrailingSlash','monitor_format','userEmail','moment','/api/selector/owners'];(function(_0x90e56e,_0xcd9917){const _0x29cc3d=function(_0x48f63c){while(--_0x48f63c){_0x90e56e['push'](_0x90e56e['shift']());}};_0x29cc3d(++_0xcd9917);}(a1138_0xcd99,0x130));const a1138_0x29cc=function(_0x90e56e,_0xcd9917){_0x90e56e=_0x90e56e-0x0;let _0x29cc3d=a1138_0xcd99[_0x90e56e];return _0x29cc3d;};const _0x5ba009=a1138_0x29cc;'use strict';const _=require(_0x5ba009('0x25')),rp=require(_0x5ba009('0x2b')),md5=require('md5'),util=require(_0x5ba009('0x18')),moment=require(_0x5ba009('0x6')),intUtil=require(_0x5ba009('0x23')),logger=require(_0x5ba009('0xa'))(_0x5ba009('0x4c')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAdminId(_0x48f63c,_0x369ef8,_0x19f280,_0x44cf97){return new Promise(function(_0x8a2fa4,_0x44fc0a){const _0x245382=a1138_0x29cc;let _0x4bf9f2=![];const _0x2c4765={'method':'GET','uri':_0x44cf97+_0x245382('0x7'),'json':!![]};return _0x2c4765[_0x245382('0x45')]=_0x19f280,logger['info'](_0x245382('0x40')),rp(_0x2c4765)['then'](function(_0x2c46f9){const _0x45bc36=_0x245382;if(_0x2c46f9){const _0x274ece=_0x2c46f9[_0x45bc36('0x20')];let _0x23b6ba=null;for(_0x23b6ba=0x0;_0x23b6ba<_0x274ece[_0x45bc36('0x31')];_0x23b6ba++){_0x274ece[_0x23b6ba][_0x45bc36('0x3e')]===_0x48f63c[_0x45bc36('0xe')]&&(_0x48f63c['adminId']=_0x274ece[_0x23b6ba]['id'],_0x4bf9f2=!![]);}_0x4bf9f2?(logger[_0x45bc36('0x12')]('Admin\x20found:',_0x48f63c[_0x45bc36('0x19')]),_0x8a2fa4(_0x48f63c)):_0x44fc0a({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}else _0x44fc0a({'statusCode':0x194,'message':_0x45bc36('0x4b')});})[_0x245382('0x27')](function(_0x2526c3){const _0x345c57=_0x245382;logger[_0x345c57('0x47')]('['+[_0x369ef8[_0x345c57('0x1e')]()]+']',_0x2526c3['message']),_0x44fc0a(_0x2526c3);});});}function getUser(_0x46f36f,_0xb47d5c,_0x4639d0){return function(_0x52efe2){return new Promise(function(_0xd685b4,_0xfa5d94){const _0x35602d=a1138_0x29cc,_0x33cdca={'method':_0x35602d('0x3d'),'uri':_0x4639d0+'/api/selector/owners','json':!![]};return _0x33cdca[_0x35602d('0x45')]=_0xb47d5c,logger['info'](_0x35602d('0x1a')),rp(_0x33cdca)[_0x35602d('0x1')](function(_0x4989f6){const _0x59f255=_0x35602d;if(_0x4989f6){const _0x59be42=_0x4989f6[_0x59f255('0x20')];let _0x4eb127=![],_0x5d6356=null;if(_0x52efe2[_0x59f255('0x34')]!==null){logger['info']('Getting\x20user\x20with\x20email',_0x52efe2[_0x59f255('0x34')]),_0x52efe2[_0x59f255('0x5')]=_0x52efe2['agentEmail'];for(_0x5d6356=0x0;_0x5d6356<_0x59be42[_0x59f255('0x31')];_0x5d6356++){_0x59be42[_0x5d6356][_0x59f255('0x3e')]===_0x52efe2['agentEmail']&&(_0x4eb127=!![],_0x52efe2[_0x59f255('0x15')]=_0x59be42[_0x5d6356]['id'],logger[_0x59f255('0x12')](_0x59f255('0x0'),_0x52efe2['userId']));}}!_0x4eb127&&(logger[_0x59f255('0x12')]('Admin\x20selected'),_0x52efe2['userEmail']=_0x52efe2[_0x59f255('0xe')],_0x52efe2[_0x59f255('0x15')]=_0x52efe2[_0x59f255('0x19')],_0x4eb127=!![]),_0x4eb127?_0xd685b4(_0x52efe2):_0xfa5d94({'statusCode':0x194,'message':_0x59f255('0x4b')});}else _0xfa5d94({'statusCode':0x194,'message':_0x59f255('0x4b')});})[_0x35602d('0x27')](function(_0x19bfdd){const _0x28c84c=_0x35602d;logger[_0x28c84c('0x47')]('['+[_0x46f36f[_0x28c84c('0x1e')]()]+']',_0x19bfdd[_0x28c84c('0x30')]),_0xfa5d94(_0x19bfdd);});});};}function getEndUser(_0x46be46,_0x2f5085,_0xfb969d){return function(_0x190977){return new Promise(function(_0x3748ad){const _0x808e19=a1138_0x29cc;let _0x20a132=0x0;const _0x11a106={'method':'GET','uri':_0xfb969d+_0x808e19('0x2'),'json':!![]};return _0x11a106['headers']=_0x2f5085,logger['info'](_0x808e19('0x48')),rp(_0x11a106)[_0x808e19('0x1')](function(_0x3e6427){const _0x560369=_0x808e19;_0x3e6427[_0x560369('0x3c')][_0x560369('0x13')](function(_0x356da6){const _0x2bc278=_0x560369;_0x356da6['name']===_0x2bc278('0x26')&&(_0x20a132=_0x356da6['id']);});})[_0x808e19('0x1')](function(){const _0xa1d687=_0x808e19;logger['info']('Getting\x20contact\x20list');const _0x2d6a49={'method':'GET','uri':_0xfb969d+_0xa1d687('0x11')+_0x20a132,'json':!![]};return _0x2d6a49['headers']=_0x2f5085,rp(_0x2d6a49);})['then'](function(_0xc694dd){const _0x5e440b=_0x808e19;logger[_0x5e440b('0x12')]('Searching\x20contact\x20with\x20phone',_0x190977[_0x5e440b('0x14')]);if(_0xc694dd['contacts'][_0x5e440b('0x31')]>0x0){const _0x191575=_[_0x5e440b('0x37')](_0xc694dd['contacts'],function(_0x38d5df){const _0x4c4ea1=_0x5e440b;if(_0x38d5df[_0x4c4ea1('0x36')]===_0x190977[_0x4c4ea1('0x14')]||_0x38d5df[_0x4c4ea1('0x49')]===_0x190977['contactNumber'])return _0x38d5df;});if(_0x191575)_0x190977[_0x5e440b('0x41')]=_0x191575['id'],logger[_0x5e440b('0x12')]('Contact\x20found:',_0x190977[_0x5e440b('0x41')]),_0x3748ad(_0x190977);else return createEndUser(_0x190977,_0x46be46,_0x2f5085,_0xfb969d)[_0x5e440b('0x1')](function(_0x3fbe2c){const _0x1547ff=_0x5e440b;logger[_0x1547ff('0x12')]('Contact\x20created:',_0x190977[_0x1547ff('0x41')]),_0x3748ad(_0x3fbe2c);});}else return createEndUser(_0x190977,_0x46be46,_0x2f5085,_0xfb969d)[_0x5e440b('0x1')](function(_0x1bb5e7){const _0x4ce921=_0x5e440b;logger[_0x4ce921('0x12')](_0x4ce921('0x3f'),_0x190977[_0x4ce921('0x41')]),_0x3748ad(_0x1bb5e7);});})[_0x808e19('0x27')](function(_0x4ee752){const _0x39b6cd=_0x808e19;throw new Error(_0x4ee752[_0x39b6cd('0x30')]);});});};}function createEndUser(_0x2170e4,_0xb2ac61,_0x414974,_0x31942e){return new Promise(function(_0x2a6c75,_0x43a2dd){const _0x44ac4e=a1138_0x29cc,_0x16828d=moment(),_0x360881={'method':_0x44ac4e('0x29'),'uri':_0x31942e+_0x44ac4e('0x2c'),'body':{'contact':{'last_name':_0x2170e4[_0x44ac4e('0x14')],'work_number':_0x2170e4[_0x44ac4e('0x14')],'mobile_number':_0x2170e4['contactNumber'],'owner_id':_0x2170e4[_0x44ac4e('0x15')],'created_at':_0x16828d[_0x44ac4e('0x1c')](_0x44ac4e('0xd'))}},'json':!![]};return _0x360881[_0x44ac4e('0x45')]=_0x414974,logger['info']('Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact'),rp(_0x360881)[_0x44ac4e('0x1')](function(_0x4f3a4c){const _0x549950=_0x44ac4e;_0x2170e4[_0x549950('0x41')]=_0x4f3a4c['contact']['id'],_0x2a6c75(_0x2170e4);})[_0x44ac4e('0x27')](function(_0x45ec83){const _0x43ebbc=_0x44ac4e;logger[_0x43ebbc('0x47')]('['+[_0xb2ac61[_0x43ebbc('0x1e')]()]+']',_0x45ec83['message']),_0x43a2dd(_0x45ec83[_0x43ebbc('0x30')]);});});}function getTicket(_0x689410,_0x8a4993,_0x5a21cf,_0x578993,_0x323147){return function(_0x2a0ae7){const _0x571a8a=a1138_0x29cc;return logger[_0x571a8a('0x12')](_0x571a8a('0x16')),new Promise(function(_0xab6b87,_0x12a544){const _0x5d4ded=_0x571a8a,_0x284ffe=moment(),_0x52fca9={'method':_0x5d4ded('0x29'),'uri':_0x5a21cf+'/api/tasks','body':{'title':intUtil['getString'](_0x578993[_0x5d4ded('0x46')],_0x323147,'\x20'),'description':intUtil[_0x5d4ded('0xb')](_0x578993[_0x5d4ded('0x21')],_0x323147,'\x0a'),'owner_id':_0x2a0ae7['userId'],'creater_id':_0x2a0ae7['adminId'],'targetable_id':_0x2a0ae7[_0x5d4ded('0x41')],'targetable_type':_0x5d4ded('0x4d'),'created_at':_0x284ffe[_0x5d4ded('0x1c')](_0x5d4ded('0xd')),'due_date':_0x284ffe[_0x5d4ded('0x2e')](0x1e,'m')[_0x5d4ded('0x1c')](_0x5d4ded('0xd'))},'json':!![]};return _0x52fca9[_0x5d4ded('0x45')]=_0x8a4993,rp(_0x52fca9)['then'](function(_0x368c85){const _0xf988a2=_0x5d4ded;_0x2a0ae7[_0xf988a2('0x1d')]=_0x368c85['task']['id'],logger[_0xf988a2('0x12')](_0xf988a2('0x44'),_0x2a0ae7[_0xf988a2('0x1d')]),_0xab6b87(_0x2a0ae7);})[_0x5d4ded('0x27')](function(_0x5a2794){const _0x1dfa4f=_0x5d4ded;logger[_0x1dfa4f('0x47')]('['+[_0x689410[_0x1dfa4f('0x1e')]()]+']',_0x5a2794[_0x1dfa4f('0x30')]),_0x12a544(_0x5a2794['message']);});});};}function emit(_0x418861,_0xd1ec65,_0x1f6080){const _0x2dcd2c=_0x5ba009,_0x5e8980={'uri':_0x418861+_0x2dcd2c('0x1f')+_0x1f6080};io['to'](util['format']('user:%s',_0xd1ec65))['emit'](_0x2dcd2c('0xc'),_0x5e8980);}exports['cs']=function(_0x2d2c46,_0xe6394f,_0x5c2820,_0x5457bb,_0x3f1041,_0x11ad07,_0x41c723,_0x612b60){const _0x5d8e6b=_0x5ba009,_0x1b9df1={},_0xa372f9={'Authorization':_0x5d8e6b('0x9')+_0x11ad07['apiKey']};_0x11ad07[_0x5d8e6b('0x17')]=intUtil[_0x5d8e6b('0x3')](_0x11ad07[_0x5d8e6b('0x17')]),_0x11ad07[_0x5d8e6b('0x22')]=intUtil[_0x5d8e6b('0x3')](_0x11ad07[_0x5d8e6b('0x22')]);const _0x3fe45b=_0x11ad07[_0x5d8e6b('0x17')];_0x1b9df1[_0x5d8e6b('0xe')]=_0x11ad07[_0x5d8e6b('0x35')],_0x1b9df1[_0x5d8e6b('0x14')]=_0x612b60[_0x5d8e6b('0xf')]()==='outbound'?_0xe6394f[_0x5d8e6b('0x2a')]:_0xe6394f[_0x5d8e6b('0x24')],_0x1b9df1[_0x5d8e6b('0x39')]=_0x612b60==='queue'||_0x612b60===_0x5d8e6b('0x1b')?'queue':_0x5d8e6b('0x2d');_0x5457bb&&(_0x1b9df1[_0x5d8e6b('0x34')]=_0x5457bb[_0x5d8e6b('0x3e')]);const _0x187d13=util[_0x5d8e6b('0x1c')](_0x5d8e6b('0x32'),_0x11ad07[_0x5d8e6b('0x22')],_0xe6394f[_0x5d8e6b('0x2f')],md5(_0xe6394f[_0x5d8e6b('0x2f')]));if(_0x3f1041&&_0x3f1041[_0x5d8e6b('0x4')])logger['info'](_0x5d8e6b('0x8'),_0x5d8e6b('0x38')),_0xe6394f[_0x5d8e6b('0x28')]=_0x187d13;else _0x41c723&&_0x41c723[_0x5d8e6b('0x33')]&&_0x41c723['recordingFormat']!==_0x5d8e6b('0x43')?(logger[_0x5d8e6b('0x12')](_0x5d8e6b('0x42'),_0x5d8e6b('0x38')),_0xe6394f[_0x5d8e6b('0x28')]=_0x187d13):_0xe6394f[_0x5d8e6b('0x28')]='';return getAdminId(_0x1b9df1,_0x612b60,_0xa372f9,_0x3fe45b)['then'](getUser(_0x612b60,_0xa372f9,_0x3fe45b))[_0x5d8e6b('0x1')](getEndUser(_0x612b60,_0xa372f9,_0x3fe45b))[_0x5d8e6b('0x1')](getTicket(_0x612b60,_0xa372f9,_0x3fe45b,_0x5c2820,_0xe6394f))[_0x5d8e6b('0x1')](function(_0xf9b382){const _0x26feb2=_0x5d8e6b;logger[_0x26feb2('0x12')](util[_0x26feb2('0x1c')](_0x26feb2('0x10'),_0xf9b382[_0x26feb2('0x1d')])),_0x612b60!=='unmanaged'&&(logger[_0x26feb2('0x12')]('['+[_0x612b60[_0x26feb2('0x1e')]()]+']',_0x26feb2('0x4a')),emit(_0x3fe45b,_0x5457bb[_0x26feb2('0x3a')],_0xf9b382[_0x26feb2('0x41')]));})[_0x5d8e6b('0x27')](function(_0xe569e1){const _0x30b801=_0x5d8e6b;logger['error']('['+[_0x612b60['toUpperCase']()]+_0x30b801('0x3b'),util['inspect'](_0xe569e1,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/index.js b/server/services/ami/trigger/integration/index.js index d5661c8..56387fd 100644 --- a/server/services/ami/trigger/integration/index.js +++ b/server/services/ami/trigger/integration/index.js @@ -1 +1 @@ -const a1139_0x5cd4=['salesforce','./salesforce','vtiger','data2','data3','freshsales','outbound','./zoho','zendesk','./freshsales','util','desk','dynamics365','./freshdesk','Configurations','./servicenow','./sugarcrm','./zendesk','../../../../config/logger','format','[EXEC]','lodash','error','freshdesk','zoho','includes','toLowerCase','find','./vtiger','unmanaged','data1','servicenow','%s\x20configuration\x20#%s\x20not\x20found','sugarcrm','unknown\x20integration','log','exec','queue'];(function(_0x3fa86f,_0x5cd48b){const _0x2f5417=function(_0x42f52b){while(--_0x42f52b){_0x3fa86f['push'](_0x3fa86f['shift']());}};_0x2f5417(++_0x5cd48b);}(a1139_0x5cd4,0x1c5));const a1139_0x2f54=function(_0x3fa86f,_0x5cd48b){_0x3fa86f=_0x3fa86f-0x0;let _0x2f5417=a1139_0x5cd4[_0x3fa86f];return _0x2f5417;};const _0x80f18d=a1139_0x2f54;'use strict';const _=require(_0x80f18d('0x18')),util=require(_0x80f18d('0xd')),zendesk=require(_0x80f18d('0x14')),salesforce=require(_0x80f18d('0x4')),sugarcrm=require(_0x80f18d('0x13')),freshdesk=require(_0x80f18d('0x10')),zoho=require(_0x80f18d('0xa')),desk=require('./desk'),vtiger=require(_0x80f18d('0x1f')),servicenow=require(_0x80f18d('0x12')),dynamics365=require('./dynamics365'),freshsales=require(_0x80f18d('0xc')),integrations=[_0x80f18d('0xb'),_0x80f18d('0x3'),_0x80f18d('0x24'),_0x80f18d('0x1a'),_0x80f18d('0x1b'),_0x80f18d('0xe'),_0x80f18d('0x5'),'dynamics365',_0x80f18d('0x8'),_0x80f18d('0x22')];exports[_0x80f18d('0x1')]=function(_0x42f52b,_0x28b0b3,_0x499269,_0x1895b1,_0x5afe04,_0x5ee844){const _0x505b1d=_0x80f18d;if(_0x499269){if(_[_0x505b1d('0x1c')](integrations,_0x42f52b['data1'][_0x505b1d('0x1d')]()))try{let _0x54ecc1=null,_0x462809='';const _0x22db4b=_0x499269[_0x42f52b[_0x505b1d('0x21')][_0x505b1d('0x1d')]()];if(_0x22db4b){const _0xcf193a=_0x22db4b[_0x42f52b[_0x505b1d('0x6')]];if(_0xcf193a){const _0x8e0d89=_[_0x505b1d('0x1e')](_0xcf193a[_0x505b1d('0x11')],{'id':parseInt(_0x42f52b[_0x505b1d('0x7')],0xa)});if(_0x8e0d89){if(_0x1895b1){if(_0x5afe04&&_0x28b0b3[_0x505b1d('0x2')])_0x462809=_0x505b1d('0x2');else _0x28b0b3['routeId']?_0x462809=_0x505b1d('0x9'):console[_0x505b1d('0x0')]('EVENT\x20UNKNOWN',_0x28b0b3);}else _0x462809=_0x505b1d('0x20');switch(_0x42f52b[_0x505b1d('0x21')][_0x505b1d('0x1d')]()){case _0x505b1d('0xb'):zendesk[_0x462809](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844);break;case _0x505b1d('0x3'):salesforce[_0x462809](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844);break;case _0x505b1d('0x24'):sugarcrm[_0x462809](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844);break;case _0x505b1d('0x1a'):freshdesk[_0x462809](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844);break;case'zoho':zoho[_0x462809](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844);break;case _0x505b1d('0xe'):desk[_0x462809](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844);break;case'vtiger':vtiger[_0x462809](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844);break;case _0x505b1d('0x8'):freshsales['cs'](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844,_0x462809);break;case _0x505b1d('0x22'):servicenow['cs'](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844,_0x462809);break;case _0x505b1d('0xf'):dynamics365['cs'](_0x42f52b,_0x28b0b3,_0x8e0d89,_0x1895b1,_0x5afe04,_0xcf193a,_0x5ee844,_0x462809);break;default:console[_0x505b1d('0x0')](_0x505b1d('0x25'));}}else _0x54ecc1=require(_0x505b1d('0x15'))(_0x42f52b[_0x505b1d('0x21')]['toLowerCase']()),_0x54ecc1['error'](_0x505b1d('0x17'),util[_0x505b1d('0x16')](_0x505b1d('0x23'),_0x42f52b[_0x505b1d('0x21')][_0x505b1d('0x1d')](),_0x42f52b[_0x505b1d('0x7')]));}else _0x54ecc1=require(_0x505b1d('0x15'))(_0x42f52b[_0x505b1d('0x21')][_0x505b1d('0x1d')]()),_0x54ecc1[_0x505b1d('0x19')]('[EXEC]',util['format']('%s\x20account\x20#%s\x20not\x20found',_0x42f52b[_0x505b1d('0x21')]['toLowerCase'](),_0x42f52b[_0x505b1d('0x6')]));}else{}}catch(_0x329d9b){console[_0x505b1d('0x19')](_0x329d9b);}}}; \ No newline at end of file +const a1139_0x5ec5=['zendesk','toLowerCase','data1','./vtiger','freshsales','./zendesk','../../../../config/logger','includes','servicenow','./zoho','unknown\x20integration','./servicenow','data2','queue','EVENT\x20UNKNOWN','./freshdesk','desk','%s\x20configuration\x20#%s\x20not\x20found','find','zoho','[EXEC]','outbound','sugarcrm','./salesforce','Configurations','./freshsales','log','./sugarcrm','data3','salesforce','vtiger','%s\x20account\x20#%s\x20not\x20found','format','./dynamics365','error','dynamics365','unmanaged','lodash','freshdesk'];(function(_0x3afb9e,_0x5ec51a){const _0x5c6c4d=function(_0x3fe8c4){while(--_0x3fe8c4){_0x3afb9e['push'](_0x3afb9e['shift']());}};_0x5c6c4d(++_0x5ec51a);}(a1139_0x5ec5,0x1e7));const a1139_0x5c6c=function(_0x3afb9e,_0x5ec51a){_0x3afb9e=_0x3afb9e-0x0;let _0x5c6c4d=a1139_0x5ec5[_0x3afb9e];return _0x5c6c4d;};const _0x554e29=a1139_0x5c6c;'use strict';const _=require(_0x554e29('0x12')),util=require('util'),zendesk=require(_0x554e29('0x19')),salesforce=require(_0x554e29('0x4')),sugarcrm=require(_0x554e29('0x8')),freshdesk=require(_0x554e29('0x23')),zoho=require(_0x554e29('0x1d')),desk=require('./desk'),vtiger=require(_0x554e29('0x17')),servicenow=require(_0x554e29('0x1f')),dynamics365=require(_0x554e29('0xe')),freshsales=require(_0x554e29('0x6')),integrations=[_0x554e29('0x14'),_0x554e29('0xa'),_0x554e29('0x3'),_0x554e29('0x13'),_0x554e29('0x0'),_0x554e29('0x24'),_0x554e29('0xb'),_0x554e29('0x10'),'freshsales',_0x554e29('0x1c')];exports['exec']=function(_0x3fe8c4,_0x104e07,_0x41c9e3,_0x1fc118,_0x579bb3,_0x1c54e9){const _0x485860=_0x554e29;if(_0x41c9e3){if(_[_0x485860('0x1b')](integrations,_0x3fe8c4['data1'][_0x485860('0x15')]()))try{let _0x5cbdf2=null,_0x28f413='';const _0x4228df=_0x41c9e3[_0x3fe8c4[_0x485860('0x16')][_0x485860('0x15')]()];if(_0x4228df){const _0x3228b7=_0x4228df[_0x3fe8c4[_0x485860('0x20')]];if(_0x3228b7){const _0x55c7f6=_[_0x485860('0x26')](_0x3228b7[_0x485860('0x5')],{'id':parseInt(_0x3fe8c4[_0x485860('0x9')],0xa)});if(_0x55c7f6){if(_0x1fc118){if(_0x579bb3&&_0x104e07[_0x485860('0x21')])_0x28f413=_0x485860('0x21');else _0x104e07['routeId']?_0x28f413=_0x485860('0x2'):console[_0x485860('0x7')](_0x485860('0x22'),_0x104e07);}else _0x28f413=_0x485860('0x11');switch(_0x3fe8c4[_0x485860('0x16')][_0x485860('0x15')]()){case _0x485860('0x14'):zendesk[_0x28f413](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9);break;case _0x485860('0xa'):salesforce[_0x28f413](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9);break;case _0x485860('0x3'):sugarcrm[_0x28f413](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9);break;case'freshdesk':freshdesk[_0x28f413](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9);break;case _0x485860('0x0'):zoho[_0x28f413](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9);break;case _0x485860('0x24'):desk[_0x28f413](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9);break;case _0x485860('0xb'):vtiger[_0x28f413](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9);break;case _0x485860('0x18'):freshsales['cs'](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9,_0x28f413);break;case _0x485860('0x1c'):servicenow['cs'](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9,_0x28f413);break;case _0x485860('0x10'):dynamics365['cs'](_0x3fe8c4,_0x104e07,_0x55c7f6,_0x1fc118,_0x579bb3,_0x3228b7,_0x1c54e9,_0x28f413);break;default:console[_0x485860('0x7')](_0x485860('0x1e'));}}else _0x5cbdf2=require(_0x485860('0x1a'))(_0x3fe8c4[_0x485860('0x16')][_0x485860('0x15')]()),_0x5cbdf2[_0x485860('0xf')](_0x485860('0x1'),util[_0x485860('0xd')](_0x485860('0x25'),_0x3fe8c4[_0x485860('0x16')][_0x485860('0x15')](),_0x3fe8c4[_0x485860('0x9')]));}else _0x5cbdf2=require(_0x485860('0x1a'))(_0x3fe8c4[_0x485860('0x16')][_0x485860('0x15')]()),_0x5cbdf2[_0x485860('0xf')](_0x485860('0x1'),util[_0x485860('0xd')](_0x485860('0xc'),_0x3fe8c4[_0x485860('0x16')][_0x485860('0x15')](),_0x3fe8c4[_0x485860('0x20')]));}else{}}catch(_0x504629){console['error'](_0x504629);}}}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/salesforce.js b/server/services/ami/trigger/integration/salesforce.js index a06d7fb..b69af3e 100644 --- a/server/services/ami/trigger/integration/salesforce.js +++ b/server/services/ami/trigger/integration/salesforce.js @@ -1 +1 @@ -const a1140_0x4600=['Phone','lead','ticketType','moduleSearch','contact_lead','uniqueid','variableName','../../../../config/logger','then','%s/%s/e','string','unmanaged','stringify','calleridname','content','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Company','serverUrl','login','catch','concat','[QUEUE]','forEach','util','isNil','user_id','moment','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','display_name','password','queue','instanceUrl','Descriptions','stripTrailingSlash','trigger:salesforce:display','Enduser\x20with\x20phone\x20%s\x20found.','Connection\x20established.','lastevent','Lead','Agent\x20%s\x20found.','[QUEUE]\x20Ticket\x20%s\x20created','emit',']\x20Integration\x20account\x20type\x20%s.','No\x20Company','outbound','idField','recordingURL','assign','Name','destcalleridnum','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','User','toLowerCase','clientId','moduleCreate','recordingFormat','upperFirst','getString','validateEmail','format','toUpperCase','[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','[OUTBOUND]','Recording\x20is\x20enabled!','salesforce','Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.','https://login.salesforce.com','identity','contact','Fields','Case','type','remoteUri','destcalleridname','user:%s','monitor_format','variable','length','utc','integrationTab','newTab','resolve','Contact','info','error','username','email','./util','clientSecret','Variable','name','execute','none','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','customVariable','toString','WhoId','create','md5','Task','trigger:browser:url','sobject',']\x20Ticket\x20%s\x20created.','[OUTBOUND]\x20Ticket\x20%s\x20created.','find','calleridnum'];(function(_0x2a13cc,_0x46009b){const _0x3c7b3e=function(_0x309b7c){while(--_0x309b7c){_0x2a13cc['push'](_0x2a13cc['shift']());}};_0x3c7b3e(++_0x46009b);}(a1140_0x4600,0x16f));const a1140_0x3c7b=function(_0x2a13cc,_0x46009b){_0x2a13cc=_0x2a13cc-0x0;let _0x3c7b3e=a1140_0x4600[_0x2a13cc];return _0x3c7b3e;};const _0x16ac8f=a1140_0x3c7b;'use strict';const _=require('lodash'),moment=require(_0x16ac8f('0x53')),md5=require(_0x16ac8f('0x31')),jsforce=require('jsforce'),util=require(_0x16ac8f('0x50')),intUtil=require(_0x16ac8f('0x26')),logger=require(_0x16ac8f('0x40'))(_0x16ac8f('0xf')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x309b7c,_0x447a07,_0x533bf5){const _0x5b9d1b=_0x16ac8f;io['to'](_0x309b7c)[_0x5b9d1b('0x62')](_0x447a07,_0x533bf5);}function getTicket(_0x394ee3,_0x57d52b,_0x27c99f,_0x28835c,_0x2c90eb,_0x5c60db,_0x1208f2){const _0x10e3f5=_0x16ac8f;let _0x117a9e={};if(_0x28835c['ticketType']===_0x10e3f5('0x32'))_0x117a9e=Object[_0x10e3f5('0x68')]({},{'OwnerId':_0x57d52b['id'],'ActivityDate':moment[_0x10e3f5('0x1d')](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil[_0x10e3f5('0x8')](_0x28835c['Subjects'],_0x2c90eb,'\x20'),'Description':intUtil[_0x10e3f5('0x8')](_0x28835c[_0x10e3f5('0x59')],_0x2c90eb,'\x0a')},getCustomFields(_0x5c60db,_0x2c90eb)),_0x27c99f&&(_0x117a9e[_0x10e3f5('0x2f')]=_0x27c99f['id']);else _0x28835c[_0x10e3f5('0x3b')]==='Case'&&(_0x117a9e=Object[_0x10e3f5('0x68')]({},{'OwnerId':_0x57d52b['id'],'Subject':intUtil['getString'](_0x28835c['Subjects'],_0x2c90eb,'\x20'),'Description':intUtil[_0x10e3f5('0x8')](_0x28835c[_0x10e3f5('0x59')],_0x2c90eb,'\x0a')},getCustomFields(_0x5c60db,_0x2c90eb)),_0x27c99f&&(_0x117a9e['ContactId']=_0x27c99f['id']));return _0x1208f2[_0x10e3f5('0x34')](_0x28835c[_0x10e3f5('0x3b')])[_0x10e3f5('0x30')](_0x117a9e);}function getUser(_0x297019,_0x5a703e,_0x4f6886){const _0x44d934=_0x16ac8f;if(!_[_0x44d934('0x51')](_0x5a703e)&&intUtil[_0x44d934('0x9')](_0x5a703e)){const _0xfd0737={'Email':_0x5a703e},_0x1561ff={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x4f6886['sobject'](_0x44d934('0x2'))[_0x44d934('0x37')](_0xfd0737,_0x1561ff)[_0x44d934('0x2a')]()['then'](function(_0x2f4249){const _0x49628f=_0x44d934;if(_0x2f4249[_0x49628f('0x1c')]){const _0x13d9f0=_['find'](_0x2f4249,function(_0x3536b5){return _0x3536b5['Email']===_0x5a703e;});if(_0x13d9f0)return logger[_0x49628f('0x22')](_0x49628f('0x60'),_0x5a703e),Promise['resolve']({'id':_0x13d9f0['Id'],'name':_0x13d9f0['Name']});}else return logger[_0x49628f('0x22')]('Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.',_0x5a703e),_0x4f6886[_0x49628f('0x12')]()[_0x49628f('0x41')](function(_0x569d9c){const _0x515d80=_0x49628f;return Promise['resolve']({'id':_0x569d9c[_0x515d80('0x52')],'name':_0x569d9c[_0x515d80('0x55')]});});});}else return logger[_0x44d934('0x22')](_0x44d934('0x54'),_0x5a703e),_0x4f6886[_0x44d934('0x12')]()['then'](function(_0x40d448){const _0x274dc0=_0x44d934;return Promise[_0x274dc0('0x20')]({'id':_0x40d448[_0x274dc0('0x52')],'name':_0x40d448[_0x274dc0('0x55')]});});}function getEndUser(_0x50838e,_0x2fda32,_0x536088,_0x1761a1,_0x369c19){const _0x395378=_0x16ac8f,_0x27fcc9={'Phone':_0x1761a1},_0xee5e56={'Id':!![],'Name':!![],'Phone':!![]};return Promise['resolve']()['then'](function(){const _0x2df47f=a1140_0x3c7b;if(_0x2fda32[_0x2df47f('0x3b')]===_0x2df47f('0x32')){logger[_0x2df47f('0x22')](_0x2df47f('0x1'),_0x1761a1,_0x2fda32[_0x2df47f('0x3c')]);switch(_0x2fda32[_0x2df47f('0x3c')]){case _0x2df47f('0x3d'):return _0x369c19['sobject'](_0x2df47f('0x21'))[_0x2df47f('0x37')](_0x27fcc9,_0xee5e56)[_0x2df47f('0x2a')]()[_0x2df47f('0x41')](function(_0x2535fe){const _0x56039b=_0x2df47f;return _0x2535fe&&_0x2535fe['length']?_0x2535fe:_0x369c19[_0x56039b('0x34')](_0x56039b('0x5f'))[_0x56039b('0x37')](_0x27fcc9,_0xee5e56);});case _0x2df47f('0x13'):return _0x369c19['sobject'](_0x2df47f('0x21'))['find'](_0x27fcc9,_0xee5e56)[_0x2df47f('0x2a')]();case'lead':return _0x369c19[_0x2df47f('0x34')](_0x2df47f('0x5f'))[_0x2df47f('0x37')](_0x27fcc9,_0xee5e56);default:return null;}}else{if(_0x2fda32[_0x2df47f('0x3b')]===_0x2df47f('0x15'))return logger['info']('Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.',_0x1761a1,_0x2df47f('0x13')),_0x369c19[_0x2df47f('0x34')](_0x2df47f('0x21'))[_0x2df47f('0x37')](_0x27fcc9,_0xee5e56)[_0x2df47f('0x2a')]();}})[_0x395378('0x41')](function(_0x3196db){const _0x4d44ab=_0x395378;if(_0x3196db&&_0x3196db['length']){const _0x44b0dd=_[_0x4d44ab('0x37')](_0x3196db,function(_0x1d4023){return _0x1d4023['Phone']===_0x1761a1;});if(_0x44b0dd)return Promise[_0x4d44ab('0x20')]({'id':_0x44b0dd['Id'],'name':_0x44b0dd[_0x4d44ab('0x69')],'phone':_0x44b0dd[_0x4d44ab('0x39')]});}})[_0x395378('0x41')](function(_0xc99a13){const _0x88a987=_0x395378;if(_0xc99a13)return logger[_0x88a987('0x22')](_0x88a987('0x5c'),_0x1761a1),Promise[_0x88a987('0x20')](_0xc99a13);else{logger[_0x88a987('0x22')]('Enduser\x20with\x20phone\x20%s\x20not\x20found.',_0x1761a1);const _0x1ce7c2={'LastName':_0x536088!==''?_0x536088:util[_0x88a987('0xa')]('Caller\x20-\x20%s',_0x1761a1),'Phone':_0x1761a1};if(_0x2fda32[_0x88a987('0x5')]){if(_0x2fda32[_0x88a987('0x5')]==='contact')logger[_0x88a987('0x22')](_0x88a987('0x10'),_0x1761a1,_0x2fda32['moduleCreate']);else{if(_0x2fda32[_0x88a987('0x5')]===_0x88a987('0x3a')&&_0x2fda32[_0x88a987('0x3b')]===_0x88a987('0x32'))logger[_0x88a987('0x22')](_0x88a987('0x10'),_0x1761a1,_0x2fda32['moduleCreate']),_0x1ce7c2[_0x88a987('0x49')]=_0x88a987('0x64');else return null;}}return _0x369c19[_0x88a987('0x34')](_[_0x88a987('0x7')](_0x2fda32['moduleCreate']))[_0x88a987('0x30')](_0x1ce7c2);}});}function getCustomFields(_0x460da6,_0x3707b0){const _0x4110f1=_0x16ac8f,_0x178e99={};return _0x460da6[_0x4110f1('0x1c')]>0x0&&_[_0x4110f1('0x4f')](_0x460da6,function(_0x51cbe7){const _0x15e892=_0x4110f1;if(_0x51cbe7['type']===_0x15e892('0x43')&&_0x51cbe7[_0x15e892('0x66')])_0x178e99[_0x51cbe7[_0x15e892('0x66')]]=_0x51cbe7[_0x15e892('0x47')][_0x15e892('0x2e')]();else{if(_0x51cbe7[_0x15e892('0x16')]===_0x15e892('0x1b')&&_0x51cbe7[_0x15e892('0x3f')]&&_0x51cbe7[_0x15e892('0x66')])_0x3707b0[_0x51cbe7[_0x15e892('0x3f')]]&&(_0x178e99[_0x51cbe7[_0x15e892('0x66')]]=_0x3707b0[_0x51cbe7[_0x15e892('0x3f')]][_0x15e892('0x2e')]());else _0x51cbe7[_0x15e892('0x16')]===_0x15e892('0x2d')&&_0x51cbe7[_0x15e892('0x28')]&&_0x51cbe7[_0x15e892('0x28')][_0x15e892('0x29')]&&_0x51cbe7[_0x15e892('0x66')]&&(_0x3707b0[_0x51cbe7[_0x15e892('0x28')][_0x15e892('0x29')][_0x15e892('0x3')]()]&&(_0x178e99[_0x51cbe7[_0x15e892('0x66')]]=_0x3707b0[_0x51cbe7[_0x15e892('0x28')][_0x15e892('0x29')][_0x15e892('0x3')]()]['toString']()));}}),_0x178e99;}function getConnection(_0x3cbd7a){const _0x561446=_0x16ac8f,_0x511cf2=_0x3cbd7a[_0x561446('0x56')][_0x561446('0x4d')](_0x3cbd7a['securityToken']),_0x4b53eb=new jsforce['Connection']({'oauth2':{'loginUrl':_0x3cbd7a[_0x561446('0x17')]||_0x561446('0x11'),'clientId':_0x3cbd7a[_0x561446('0x4')],'clientSecret':_0x3cbd7a[_0x561446('0x27')]}});return _0x4b53eb[_0x561446('0x4b')](_0x3cbd7a[_0x561446('0x24')],_0x511cf2)['then'](function(){const _0x36579=_0x561446;return logger['info'](_0x36579('0x5d')),_0x4b53eb;});}exports[_0x16ac8f('0x57')]=function(_0x5ebda5,_0xccbde2,_0x16c3a0,_0x23b82b,_0x4deea1,_0x4fa3c9){const _0xb0080e=_0x16ac8f;let _0x53a127,_0x42f084,_0x287dd0,_0x220e4;return _0x4fa3c9[_0xb0080e('0x4a')]=intUtil[_0xb0080e('0x5a')](_0x4fa3c9[_0xb0080e('0x4a')]),_0x4fa3c9['remoteUri']=intUtil[_0xb0080e('0x5a')](_0x4fa3c9[_0xb0080e('0x17')]),_0x4deea1&&_0x4deea1[_0xb0080e('0x1a')]?(logger[_0xb0080e('0x22')]('[QUEUE]',_0xb0080e('0xe')),_0xccbde2[_0xb0080e('0x67')]=util['format'](_0xb0080e('0x48'),_0x4fa3c9[_0xb0080e('0x4a')],_0xccbde2['uniqueid'],md5(_0xccbde2[_0xb0080e('0x3e')]))):_0xccbde2[_0xb0080e('0x67')]='',getConnection(_0x4fa3c9)[_0xb0080e('0x41')](function(_0x1805f2){const _0x4071a4=_0xb0080e;return _0x220e4=_0x1805f2,getUser(_0x4fa3c9,_0x23b82b[_0x4071a4('0x25')],_0x220e4);})[_0xb0080e('0x41')](function(_0x341ee7){const _0x40af02=_0xb0080e;return _0x53a127=_0x341ee7,getEndUser(_0x4fa3c9,_0x16c3a0,_0xccbde2[_0x40af02('0x46')],_0xccbde2[_0x40af02('0x38')],_0x220e4);})[_0xb0080e('0x41')](function(_0x51da03){const _0x55b25e=_0xb0080e;return _0x42f084=_0x51da03,getTicket(_0x4fa3c9,_0x53a127,_0x42f084,_0x16c3a0,_0xccbde2,_0x16c3a0['Fields'],_0x220e4,_0x55b25e('0x57'));})[_0xb0080e('0x41')](function(_0x1cb83f){const _0x735750=_0xb0080e;_0x287dd0=_0x1cb83f,logger[_0x735750('0x22')](_0x735750('0x61'),_0x287dd0['id']),logger['info'](_0x735750('0xc'),_0x287dd0['id'],_0x23b82b[_0x735750('0x29')],_0x4fa3c9[_0x735750('0x16')]);switch(_0x4fa3c9['type']){case _0x735750('0x1e'):emit(util[_0x735750('0xa')](_0x735750('0x19'),_0x23b82b[_0x735750('0x29')]),_0x735750('0x5b'),{'recordId':_0x287dd0['id']});break;case _0x735750('0x1f'):emit(util[_0x735750('0xa')](_0x735750('0x19'),_0x23b82b[_0x735750('0x29')]),_0x735750('0x33'),{'uri':util['format'](_0x735750('0x42'),_0x220e4[_0x735750('0x58')],_0x287dd0['id'])});break;default:logger[_0x735750('0x23')]('[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.');}})[_0xb0080e('0x4c')](function(_0x4e80ad){const _0x2d9b52=_0xb0080e;logger[_0x2d9b52('0x23')](_0x2d9b52('0x4e'),JSON[_0x2d9b52('0x45')](_0x4e80ad));});},exports[_0x16ac8f('0x65')]=function(_0x10ea97,_0x46a4f0,_0x2b3be9,_0xc8abd6,_0x1ba9a2,_0x224d4d,_0x34a11a){const _0x7a7b27=_0x16ac8f;let _0xdcec1d,_0x5788b6,_0x8f0dd6,_0x1ed1ff;return _0x224d4d[_0x7a7b27('0x4a')]=intUtil['stripTrailingSlash'](_0x224d4d[_0x7a7b27('0x4a')]),_0x224d4d[_0x7a7b27('0x17')]=intUtil[_0x7a7b27('0x5a')](_0x224d4d['remoteUri']),_0x34a11a&&_0x34a11a[_0x7a7b27('0x6')]&&_0x34a11a[_0x7a7b27('0x6')]!==_0x7a7b27('0x2b')&&(logger['info'](_0x7a7b27('0xd'),_0x7a7b27('0xe')),_0x46a4f0[_0x7a7b27('0x67')]=util[_0x7a7b27('0xa')](_0x7a7b27('0x48'),_0x224d4d[_0x7a7b27('0x4a')],_0x46a4f0['uniqueid'],md5(_0x46a4f0['uniqueid']))),getConnection(_0x224d4d)['then'](function(_0x59294e){return _0x1ed1ff=_0x59294e,getUser(_0x224d4d,_0xc8abd6['email'],_0x1ed1ff);})[_0x7a7b27('0x41')](function(_0x2ae062){const _0x3c4d79=_0x7a7b27;return _0xdcec1d=_0x2ae062,getEndUser(_0x224d4d,_0x2b3be9,_0x46a4f0[_0x3c4d79('0x18')],_0x46a4f0[_0x3c4d79('0x0')],_0x1ed1ff);})[_0x7a7b27('0x41')](function(_0x16de90){const _0x36fe4f=_0x7a7b27;return _0x5788b6=_0x16de90,getTicket(_0x224d4d,_0xdcec1d,_0x5788b6,_0x2b3be9,_0x46a4f0,_0x2b3be9[_0x36fe4f('0x14')],_0x1ed1ff,_0x36fe4f('0x65'));})[_0x7a7b27('0x41')](function(_0x48eb19){const _0x485fd7=_0x7a7b27;_0x8f0dd6=_0x48eb19,logger['info'](_0x485fd7('0x36'),_0x8f0dd6['id']),logger['info'](_0x485fd7('0x2c'),_0x8f0dd6['id'],_0xc8abd6[_0x485fd7('0x29')],_0x224d4d['type']);switch(_0x224d4d[_0x485fd7('0x16')]){case _0x485fd7('0x1e'):emit(util['format'](_0x485fd7('0x19'),_0xc8abd6['name']),_0x485fd7('0x5b'),{'recordId':_0x8f0dd6['id']});break;case'newTab':emit(util[_0x485fd7('0xa')](_0x485fd7('0x19'),_0xc8abd6[_0x485fd7('0x29')]),_0x485fd7('0x33'),{'uri':util[_0x485fd7('0xa')](_0x485fd7('0x42'),_0x1ed1ff['instanceUrl'],_0x8f0dd6['id'])});break;default:logger['error'](_0x485fd7('0xd'),'Salesforce\x20account\x20type\x20not\x20recognized');}})['catch'](function(_0x27fc14){const _0x13b901=_0x7a7b27;logger['error'](_0x13b901('0xd'),JSON[_0x13b901('0x45')](_0x27fc14));});},exports[_0x16ac8f('0x44')]=function(_0x27e088,_0x202c36,_0x3a66b6,_0x597b11,_0x393083,_0x30f6c9){const _0x1f498f=_0x16ac8f;let _0x3e9cdd,_0x21c1cf,_0x5aa40e,_0x28f1ef;return _0x30f6c9[_0x1f498f('0x4a')]=intUtil[_0x1f498f('0x5a')](_0x30f6c9['serverUrl']),_0x30f6c9[_0x1f498f('0x17')]=intUtil[_0x1f498f('0x5a')](_0x30f6c9['remoteUri']),_0x393083&&_0x393083['monitor_format']?(logger['info']('['+_0x202c36['lastevent'][_0x1f498f('0xb')]()+']',_0x1f498f('0xe')),_0x202c36[_0x1f498f('0x67')]=util[_0x1f498f('0xa')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x30f6c9[_0x1f498f('0x4a')],_0x202c36[_0x1f498f('0x3e')],md5(_0x202c36[_0x1f498f('0x3e')]))):_0x202c36[_0x1f498f('0x67')]='',getConnection(_0x30f6c9)[_0x1f498f('0x41')](function(_0x1bd594){const _0x38ec51=_0x1f498f;return _0x28f1ef=_0x1bd594,!_[_0x38ec51('0x51')](_0x597b11)?getUser(_0x30f6c9,_0x597b11[_0x38ec51('0x29')],_0x28f1ef):getUser(_0x30f6c9,null,_0x28f1ef);})[_0x1f498f('0x41')](function(_0x534abf){const _0x27504d=_0x1f498f;return _0x3e9cdd=_0x534abf,getEndUser(_0x30f6c9,_0x3a66b6,_0x202c36[_0x27504d('0x46')],_0x202c36[_0x27504d('0x38')],_0x28f1ef);})[_0x1f498f('0x41')](function(_0x302fc4){const _0x11bbd0=_0x1f498f;return _0x21c1cf=_0x302fc4,getTicket(_0x30f6c9,_0x3e9cdd,_0x21c1cf,_0x3a66b6,_0x202c36,_0x3a66b6[_0x11bbd0('0x14')],_0x28f1ef);})[_0x1f498f('0x41')](function(_0x40ee0e){const _0x1f8298=_0x1f498f;_0x5aa40e=_0x40ee0e,logger[_0x1f8298('0x22')]('['+_0x202c36[_0x1f8298('0x5e')]['toUpperCase']()+_0x1f8298('0x35'),_0x5aa40e['id']),logger[_0x1f8298('0x22')]('['+_0x202c36[_0x1f8298('0x5e')][_0x1f8298('0xb')]()+_0x1f8298('0x63'),_0x30f6c9[_0x1f8298('0x16')]);})['catch'](function(_0x73731a){const _0x40ba61=_0x1f498f;logger[_0x40ba61('0x23')]('['+_0x202c36[_0x40ba61('0x5e')][_0x40ba61('0xb')]()+']',JSON['stringify'](_0x73731a));});}; \ No newline at end of file +const a1140_0x217e=['','[QUEUE]\x20Ticket\x20%s\x20created','format','No\x20Company','catch','toUpperCase','login','md5','queue','lastevent','execute','lead','error','validateEmail','lodash','moduleCreate','stringify','type','password','instanceUrl','Subjects','assign','trigger:browser:url','trigger:salesforce:display','Caller\x20-\x20%s','string','[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.','uniqueid','info','Connection','toString','name','./util','integrationTab','Fields','Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.','utc','%s/%s/e','unmanaged','https://login.salesforce.com','monitor_format','remoteUri','forEach','idField','toLowerCase','recordingFormat','display_name','none','securityToken','[OUTBOUND]','isNil','ContactId','Agent\x20%s\x20found.','Lead','stripTrailingSlash','variableName','getString','Descriptions','Name','customVariable','user:%s','Contact','clientId','then','Company','variable','util','find','Phone','[QUEUE]','serverUrl','username',']\x20Integration\x20account\x20type\x20%s.','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','Case','resolve','contact','recordingURL','Variable','length','identity','Connection\x20established.','outbound','create','sobject','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','Recording\x20is\x20enabled!','user_id',']\x20Ticket\x20%s\x20created.','ticketType','email','newTab','moduleSearch','Task','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','WhoId'];(function(_0x4893f7,_0x217ed4){const _0x24b76a=function(_0x557f45){while(--_0x557f45){_0x4893f7['push'](_0x4893f7['shift']());}};_0x24b76a(++_0x217ed4);}(a1140_0x217e,0x115));const a1140_0x24b7=function(_0x4893f7,_0x217ed4){_0x4893f7=_0x4893f7-0x0;let _0x24b76a=a1140_0x217e[_0x4893f7];return _0x24b76a;};const _0x5e2ba3=a1140_0x24b7;'use strict';const _=require(_0x5e2ba3('0x1c')),moment=require('moment'),md5=require(_0x5e2ba3('0x15')),jsforce=require('jsforce'),util=require(_0x5e2ba3('0x50')),intUtil=require(_0x5e2ba3('0x2e')),logger=require('../../../../config/logger')('salesforce'),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x557f45,_0x34c65c,_0x108bbe){io['to'](_0x557f45)['emit'](_0x34c65c,_0x108bbe);}function getTicket(_0xa4c77e,_0x5a5951,_0x2ee883,_0x1fdacb,_0x3f0222,_0x3629ab,_0x2caa36){const _0x5bcdbd=_0x5e2ba3;let _0x5ace76={};if(_0x1fdacb['ticketType']===_0x5bcdbd('0xb'))_0x5ace76=Object[_0x5bcdbd('0x23')]({},{'OwnerId':_0x5a5951['id'],'ActivityDate':moment[_0x5bcdbd('0x32')](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil[_0x5bcdbd('0x46')](_0x1fdacb[_0x5bcdbd('0x22')],_0x3f0222,'\x20'),'Description':intUtil['getString'](_0x1fdacb['Descriptions'],_0x3f0222,'\x0a')},getCustomFields(_0x3629ab,_0x3f0222)),_0x2ee883&&(_0x5ace76[_0x5bcdbd('0xd')]=_0x2ee883['id']);else _0x1fdacb['ticketType']===_0x5bcdbd('0x59')&&(_0x5ace76=Object[_0x5bcdbd('0x23')]({},{'OwnerId':_0x5a5951['id'],'Subject':intUtil['getString'](_0x1fdacb['Subjects'],_0x3f0222,'\x20'),'Description':intUtil[_0x5bcdbd('0x46')](_0x1fdacb[_0x5bcdbd('0x47')],_0x3f0222,'\x0a')},getCustomFields(_0x3629ab,_0x3f0222)),_0x2ee883&&(_0x5ace76[_0x5bcdbd('0x41')]=_0x2ee883['id']));return _0x2caa36[_0x5bcdbd('0x2')](_0x1fdacb['ticketType'])[_0x5bcdbd('0x1')](_0x5ace76);}function getUser(_0x473092,_0x3875e3,_0x254865){const _0x21a684=_0x5e2ba3;if(!_[_0x21a684('0x40')](_0x3875e3)&&intUtil[_0x21a684('0x1b')](_0x3875e3)){const _0x4301d0={'Email':_0x3875e3},_0x43f8cf={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x254865[_0x21a684('0x2')]('User')[_0x21a684('0x51')](_0x4301d0,_0x43f8cf)['execute']()['then'](function(_0x31ff31){const _0x144159=_0x21a684;if(_0x31ff31[_0x144159('0x5e')]){const _0x2ca56f=_[_0x144159('0x51')](_0x31ff31,function(_0x5600f0){return _0x5600f0['Email']===_0x3875e3;});if(_0x2ca56f)return logger[_0x144159('0x2a')](_0x144159('0x42'),_0x3875e3),Promise[_0x144159('0x5a')]({'id':_0x2ca56f['Id'],'name':_0x2ca56f[_0x144159('0x48')]});}else return logger[_0x144159('0x2a')](_0x144159('0xc'),_0x3875e3),_0x254865[_0x144159('0x5f')]()[_0x144159('0x4d')](function(_0x351435){const _0x367a51=_0x144159;return Promise[_0x367a51('0x5a')]({'id':_0x351435[_0x367a51('0x5')],'name':_0x351435[_0x367a51('0x3c')]});});});}else return logger['info'](_0x21a684('0xc'),_0x3875e3),_0x254865[_0x21a684('0x5f')]()[_0x21a684('0x4d')](function(_0x3aa62a){const _0x53e5b5=_0x21a684;return Promise[_0x53e5b5('0x5a')]({'id':_0x3aa62a[_0x53e5b5('0x5')],'name':_0x3aa62a[_0x53e5b5('0x3c')]});});}function getEndUser(_0x548c50,_0x54f06c,_0x4a36e1,_0x23f4df,_0xd61b5){const _0x2dc1e2=_0x5e2ba3,_0xb50d8e={'Phone':_0x23f4df},_0x5755fc={'Id':!![],'Name':!![],'Phone':!![]};return Promise[_0x2dc1e2('0x5a')]()[_0x2dc1e2('0x4d')](function(){const _0x6deed2=_0x2dc1e2;if(_0x54f06c['ticketType']===_0x6deed2('0xb')){logger[_0x6deed2('0x2a')](_0x6deed2('0x3'),_0x23f4df,_0x54f06c[_0x6deed2('0xa')]);switch(_0x54f06c['moduleSearch']){case'contact_lead':return _0xd61b5[_0x6deed2('0x2')]('Contact')['find'](_0xb50d8e,_0x5755fc)['execute']()[_0x6deed2('0x4d')](function(_0x3d79ad){const _0x3cc85b=_0x6deed2;return _0x3d79ad&&_0x3d79ad['length']?_0x3d79ad:_0xd61b5[_0x3cc85b('0x2')](_0x3cc85b('0x43'))[_0x3cc85b('0x51')](_0xb50d8e,_0x5755fc);});case _0x6deed2('0x5b'):return _0xd61b5[_0x6deed2('0x2')](_0x6deed2('0x4b'))[_0x6deed2('0x51')](_0xb50d8e,_0x5755fc)['execute']();case _0x6deed2('0x19'):return _0xd61b5[_0x6deed2('0x2')](_0x6deed2('0x43'))[_0x6deed2('0x51')](_0xb50d8e,_0x5755fc);default:return null;}}else{if(_0x54f06c['ticketType']===_0x6deed2('0x59'))return logger[_0x6deed2('0x2a')](_0x6deed2('0x3'),_0x23f4df,_0x6deed2('0x5b')),_0xd61b5['sobject'](_0x6deed2('0x4b'))[_0x6deed2('0x51')](_0xb50d8e,_0x5755fc)[_0x6deed2('0x18')]();}})['then'](function(_0x1286ea){const _0xcf1119=_0x2dc1e2;if(_0x1286ea&&_0x1286ea['length']){const _0x56b5a8=_[_0xcf1119('0x51')](_0x1286ea,function(_0x23eb2d){const _0x43d7c9=_0xcf1119;return _0x23eb2d[_0x43d7c9('0x52')]===_0x23f4df;});if(_0x56b5a8)return Promise[_0xcf1119('0x5a')]({'id':_0x56b5a8['Id'],'name':_0x56b5a8['Name'],'phone':_0x56b5a8['Phone']});}})[_0x2dc1e2('0x4d')](function(_0x330148){const _0x1945f0=_0x2dc1e2;if(_0x330148)return logger[_0x1945f0('0x2a')]('Enduser\x20with\x20phone\x20%s\x20found.',_0x23f4df),Promise[_0x1945f0('0x5a')](_0x330148);else{logger[_0x1945f0('0x2a')]('Enduser\x20with\x20phone\x20%s\x20not\x20found.',_0x23f4df);const _0x436420={'LastName':_0x4a36e1!==_0x1945f0('0xe')?_0x4a36e1:util['format'](_0x1945f0('0x26'),_0x23f4df),'Phone':_0x23f4df};if(_0x54f06c[_0x1945f0('0x1d')]){if(_0x54f06c['moduleCreate']===_0x1945f0('0x5b'))logger[_0x1945f0('0x2a')]('Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.',_0x23f4df,_0x54f06c[_0x1945f0('0x1d')]);else{if(_0x54f06c['moduleCreate']==='lead'&&_0x54f06c[_0x1945f0('0x7')]==='Task')logger['info'](_0x1945f0('0x31'),_0x23f4df,_0x54f06c[_0x1945f0('0x1d')]),_0x436420[_0x1945f0('0x4e')]=_0x1945f0('0x11');else return null;}}return _0xd61b5['sobject'](_['upperFirst'](_0x54f06c[_0x1945f0('0x1d')]))[_0x1945f0('0x1')](_0x436420);}});}function getCustomFields(_0x77d29f,_0x26f918){const _0x62a81d=_0x5e2ba3,_0x30be50={};return _0x77d29f[_0x62a81d('0x5e')]>0x0&&_[_0x62a81d('0x38')](_0x77d29f,function(_0x193d4a){const _0xf3f87d=_0x62a81d;if(_0x193d4a[_0xf3f87d('0x1f')]===_0xf3f87d('0x27')&&_0x193d4a[_0xf3f87d('0x39')])_0x30be50[_0x193d4a[_0xf3f87d('0x39')]]=_0x193d4a['content']['toString']();else{if(_0x193d4a[_0xf3f87d('0x1f')]===_0xf3f87d('0x4f')&&_0x193d4a['variableName']&&_0x193d4a[_0xf3f87d('0x39')])_0x26f918[_0x193d4a[_0xf3f87d('0x45')]]&&(_0x30be50[_0x193d4a['idField']]=_0x26f918[_0x193d4a[_0xf3f87d('0x45')]][_0xf3f87d('0x2c')]());else _0x193d4a['type']===_0xf3f87d('0x49')&&_0x193d4a[_0xf3f87d('0x5d')]&&_0x193d4a[_0xf3f87d('0x5d')]['name']&&_0x193d4a[_0xf3f87d('0x39')]&&(_0x26f918[_0x193d4a[_0xf3f87d('0x5d')][_0xf3f87d('0x2d')][_0xf3f87d('0x3a')]()]&&(_0x30be50[_0x193d4a[_0xf3f87d('0x39')]]=_0x26f918[_0x193d4a[_0xf3f87d('0x5d')][_0xf3f87d('0x2d')]['toLowerCase']()]['toString']()));}}),_0x30be50;}function getConnection(_0x9f34d5){const _0x488a0a=_0x5e2ba3,_0x290ab1=_0x9f34d5[_0x488a0a('0x20')]['concat'](_0x9f34d5[_0x488a0a('0x3e')]),_0x3abb8c=new jsforce[(_0x488a0a('0x2b'))]({'oauth2':{'loginUrl':_0x9f34d5[_0x488a0a('0x37')]||_0x488a0a('0x35'),'clientId':_0x9f34d5[_0x488a0a('0x4c')],'clientSecret':_0x9f34d5['clientSecret']}});return _0x3abb8c[_0x488a0a('0x14')](_0x9f34d5[_0x488a0a('0x55')],_0x290ab1)[_0x488a0a('0x4d')](function(){const _0x5d5d2d=_0x488a0a;return logger[_0x5d5d2d('0x2a')](_0x5d5d2d('0x60')),_0x3abb8c;});}exports[_0x5e2ba3('0x16')]=function(_0x10e00a,_0x100b3b,_0x253477,_0x5664f3,_0x749219,_0x21a527){const _0x4fd370=_0x5e2ba3;let _0x368471,_0x1c10e,_0x2ab90f,_0x60f805;return _0x21a527['serverUrl']=intUtil[_0x4fd370('0x44')](_0x21a527[_0x4fd370('0x54')]),_0x21a527['remoteUri']=intUtil['stripTrailingSlash'](_0x21a527[_0x4fd370('0x37')]),_0x749219&&_0x749219[_0x4fd370('0x36')]?(logger['info']('[QUEUE]',_0x4fd370('0x4')),_0x100b3b[_0x4fd370('0x5c')]=util[_0x4fd370('0x10')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x21a527[_0x4fd370('0x54')],_0x100b3b[_0x4fd370('0x29')],md5(_0x100b3b[_0x4fd370('0x29')]))):_0x100b3b['recordingURL']='',getConnection(_0x21a527)[_0x4fd370('0x4d')](function(_0x1431a8){return _0x60f805=_0x1431a8,getUser(_0x21a527,_0x5664f3['email'],_0x60f805);})[_0x4fd370('0x4d')](function(_0x1d57a7){return _0x368471=_0x1d57a7,getEndUser(_0x21a527,_0x253477,_0x100b3b['calleridname'],_0x100b3b['calleridnum'],_0x60f805);})[_0x4fd370('0x4d')](function(_0x43ea79){const _0x50bcf0=_0x4fd370;return _0x1c10e=_0x43ea79,getTicket(_0x21a527,_0x368471,_0x1c10e,_0x253477,_0x100b3b,_0x253477[_0x50bcf0('0x30')],_0x60f805,'queue');})[_0x4fd370('0x4d')](function(_0x415087){const _0x5df9df=_0x4fd370;_0x2ab90f=_0x415087,logger[_0x5df9df('0x2a')](_0x5df9df('0xf'),_0x2ab90f['id']),logger[_0x5df9df('0x2a')](_0x5df9df('0x58'),_0x2ab90f['id'],_0x5664f3[_0x5df9df('0x2d')],_0x21a527['type']);switch(_0x21a527[_0x5df9df('0x1f')]){case'integrationTab':emit(util[_0x5df9df('0x10')](_0x5df9df('0x4a'),_0x5664f3[_0x5df9df('0x2d')]),'trigger:salesforce:display',{'recordId':_0x2ab90f['id']});break;case _0x5df9df('0x9'):emit(util[_0x5df9df('0x10')]('user:%s',_0x5664f3['name']),_0x5df9df('0x24'),{'uri':util[_0x5df9df('0x10')](_0x5df9df('0x33'),_0x60f805[_0x5df9df('0x21')],_0x2ab90f['id'])});break;default:logger[_0x5df9df('0x1a')](_0x5df9df('0x28'));}})[_0x4fd370('0x12')](function(_0x1ed9b1){const _0x60db38=_0x4fd370;logger[_0x60db38('0x1a')](_0x60db38('0x53'),JSON[_0x60db38('0x1e')](_0x1ed9b1));});},exports[_0x5e2ba3('0x0')]=function(_0x7776c7,_0x26601b,_0x118cc7,_0x5b0523,_0x24fe9d,_0x5ddd4f,_0x54a884){const _0x390e62=_0x5e2ba3;let _0x2d39f5,_0x2dfe0d,_0x413846,_0x568396;return _0x5ddd4f['serverUrl']=intUtil[_0x390e62('0x44')](_0x5ddd4f[_0x390e62('0x54')]),_0x5ddd4f[_0x390e62('0x37')]=intUtil[_0x390e62('0x44')](_0x5ddd4f[_0x390e62('0x37')]),_0x54a884&&_0x54a884[_0x390e62('0x3b')]&&_0x54a884['recordingFormat']!==_0x390e62('0x3d')&&(logger['info']('[OUTBOUND]',_0x390e62('0x4')),_0x26601b[_0x390e62('0x5c')]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x5ddd4f['serverUrl'],_0x26601b[_0x390e62('0x29')],md5(_0x26601b[_0x390e62('0x29')]))),getConnection(_0x5ddd4f)[_0x390e62('0x4d')](function(_0x5156fe){const _0x3e1194=_0x390e62;return _0x568396=_0x5156fe,getUser(_0x5ddd4f,_0x5b0523[_0x3e1194('0x8')],_0x568396);})[_0x390e62('0x4d')](function(_0x36915b){return _0x2d39f5=_0x36915b,getEndUser(_0x5ddd4f,_0x118cc7,_0x26601b['destcalleridname'],_0x26601b['destcalleridnum'],_0x568396);})['then'](function(_0x368835){const _0x5bbcb3=_0x390e62;return _0x2dfe0d=_0x368835,getTicket(_0x5ddd4f,_0x2d39f5,_0x2dfe0d,_0x118cc7,_0x26601b,_0x118cc7[_0x5bbcb3('0x30')],_0x568396,_0x5bbcb3('0x0'));})[_0x390e62('0x4d')](function(_0xe2b3ef){const _0x2770ff=_0x390e62;_0x413846=_0xe2b3ef,logger['info']('[OUTBOUND]\x20Ticket\x20%s\x20created.',_0x413846['id']),logger[_0x2770ff('0x2a')](_0x2770ff('0x57'),_0x413846['id'],_0x5b0523[_0x2770ff('0x2d')],_0x5ddd4f[_0x2770ff('0x1f')]);switch(_0x5ddd4f['type']){case _0x2770ff('0x2f'):emit(util['format'](_0x2770ff('0x4a'),_0x5b0523['name']),_0x2770ff('0x25'),{'recordId':_0x413846['id']});break;case _0x2770ff('0x9'):emit(util[_0x2770ff('0x10')](_0x2770ff('0x4a'),_0x5b0523[_0x2770ff('0x2d')]),_0x2770ff('0x24'),{'uri':util[_0x2770ff('0x10')](_0x2770ff('0x33'),_0x568396['instanceUrl'],_0x413846['id'])});break;default:logger[_0x2770ff('0x1a')](_0x2770ff('0x3f'),'Salesforce\x20account\x20type\x20not\x20recognized');}})[_0x390e62('0x12')](function(_0x3890c1){const _0x24d588=_0x390e62;logger[_0x24d588('0x1a')](_0x24d588('0x3f'),JSON[_0x24d588('0x1e')](_0x3890c1));});},exports[_0x5e2ba3('0x34')]=function(_0x3792c6,_0x4941eb,_0x3bbc61,_0x1001c4,_0x3a04b4,_0x71c0a5){const _0x212395=_0x5e2ba3;let _0xc9fa5e,_0x52f847,_0x3d5964,_0x32f1ef;return _0x71c0a5[_0x212395('0x54')]=intUtil[_0x212395('0x44')](_0x71c0a5[_0x212395('0x54')]),_0x71c0a5['remoteUri']=intUtil[_0x212395('0x44')](_0x71c0a5[_0x212395('0x37')]),_0x3a04b4&&_0x3a04b4[_0x212395('0x36')]?(logger[_0x212395('0x2a')]('['+_0x4941eb[_0x212395('0x17')][_0x212395('0x13')]()+']',_0x212395('0x4')),_0x4941eb['recordingURL']=util[_0x212395('0x10')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x71c0a5[_0x212395('0x54')],_0x4941eb[_0x212395('0x29')],md5(_0x4941eb['uniqueid']))):_0x4941eb[_0x212395('0x5c')]='',getConnection(_0x71c0a5)[_0x212395('0x4d')](function(_0x414238){const _0x2c7f4d=_0x212395;return _0x32f1ef=_0x414238,!_['isNil'](_0x1001c4)?getUser(_0x71c0a5,_0x1001c4[_0x2c7f4d('0x2d')],_0x32f1ef):getUser(_0x71c0a5,null,_0x32f1ef);})[_0x212395('0x4d')](function(_0x4295f1){return _0xc9fa5e=_0x4295f1,getEndUser(_0x71c0a5,_0x3bbc61,_0x4941eb['calleridname'],_0x4941eb['calleridnum'],_0x32f1ef);})[_0x212395('0x4d')](function(_0x20852e){const _0x4d6889=_0x212395;return _0x52f847=_0x20852e,getTicket(_0x71c0a5,_0xc9fa5e,_0x52f847,_0x3bbc61,_0x4941eb,_0x3bbc61[_0x4d6889('0x30')],_0x32f1ef);})[_0x212395('0x4d')](function(_0x51381a){const _0x40f7c1=_0x212395;_0x3d5964=_0x51381a,logger[_0x40f7c1('0x2a')]('['+_0x4941eb['lastevent'][_0x40f7c1('0x13')]()+_0x40f7c1('0x6'),_0x3d5964['id']),logger['info']('['+_0x4941eb['lastevent'][_0x40f7c1('0x13')]()+_0x40f7c1('0x56'),_0x71c0a5['type']);})[_0x212395('0x12')](function(_0x355dfb){const _0x1e0e17=_0x212395;logger[_0x1e0e17('0x1a')]('['+_0x4941eb[_0x1e0e17('0x17')][_0x1e0e17('0x13')]()+']',JSON[_0x1e0e17('0x1e')](_0x355dfb));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/servicenow.js b/server/services/ami/trigger/integration/servicenow.js index 2a2e08b..fc924b5 100644 --- a/server/services/ami/trigger/integration/servicenow.js +++ b/server/services/ami/trigger/integration/servicenow.js @@ -1 +1 @@ -const a1141_0x26d7=['%255EORDERBYDESCnumber','],\x20getUser\x20crm','lodash','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','recordingURL','serverUrl','./util','user','variableName','POST','inspect','adminEmail','],\x20getAdminUser\x20crm','customVariable','util','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','sysparm_limit=1','assign','type','incident','remoteUri','monitor_format','userId','Descriptions','toString','uniqueid',']\x20Error\x20running\x20ServiceNow\x20integration','],\x20getUser\x20entity','stripTrailingSlash','catch','Fields','variable','Recording\x20is\x20enabled!','recordingFormat','unmanaged','../../../../rediscache','../../../../config/logger','sysparm_display_value=true','string','userEmail','getString','true','ticketId','format','number','toUpperCase','none','username','ticketNumber','trigger:browser:url','sys_user?sysparm_query=email%3D','isNil','emit','error','then','customField','name',']\x20getTicket\x20crm','outbound','length','sys_user?sysparm_query=user_name%3Dadmin','Subjects','adminId','Variable','[OUTBOUND]','System','endUserNumber','md5','%26sysparm_record_list%3Dactive%253Dtrue','result','/nav_to.do?uri=incident.do?sys_id%3D','request-promise-native','info','toLowerCase','endUserId','idField','sys_user?sysparm_query=phone%3D',']\x20POST\x20incident\x20entity\x20schema','servicenow','message','sys_id',']\x20using\x20admin\x20profile','queue','callDirection','%26sysparm_record_target%3Dincident','GET','Displaying\x20call\x20in\x20a\x20new\x20tab...'];(function(_0x4a9329,_0x26d778){const _0x1ecbcc=function(_0x340472){while(--_0x340472){_0x4a9329['push'](_0x4a9329['shift']());}};_0x1ecbcc(++_0x26d778);}(a1141_0x26d7,0x1f2));const a1141_0x1ecb=function(_0x4a9329,_0x26d778){_0x4a9329=_0x4a9329-0x0;let _0x1ecbcc=a1141_0x26d7[_0x4a9329];return _0x1ecbcc;};const _0xb79a=a1141_0x1ecb;'use strict';const _=require(_0xb79a('0x1a')),rp=require(_0xb79a('0x8')),util=require(_0xb79a('0x26')),md5=require(_0xb79a('0x4')),intUtil=require(_0xb79a('0x1e')),logger=require(_0xb79a('0x3c'))(_0xb79a('0xf')),{getSocket}=require(_0xb79a('0x3b')),io=getSocket();function getAdminUser(_0x340472,_0x48e6b4,_0x52ad0d,_0xa7a0c2,_0x22a122,_0x28989a){return new Promise(function(_0x1a6b8a,_0x1157a3){const _0x4344ed=a1141_0x1ecb,_0x3faeca={'method':_0x4344ed('0x16'),'uri':_0xa7a0c2+_0x4344ed('0x54')+'&'+_0x22a122+'&'+_0x28989a,'auth':_0x48e6b4,'json':!![]};return rp(_0x3faeca)[_0x4344ed('0x4e')](function(_0x35b05){const _0x4474e3=_0x4344ed;_0x35b05[_0x4474e3('0x6')]['length']>0x0&&(_0x52ad0d[_0x4474e3('0x56')]=_0x35b05[_0x4474e3('0x6')][0x0][_0x4474e3('0x11')]),logger['info']('['+[_0x340472[_0x4474e3('0x45')]()]+_0x4474e3('0x24'),_0x52ad0d),_0x1a6b8a(_0x52ad0d);})[_0x4344ed('0x35')](function(_0x1847f0){const _0x324e1a=_0x4344ed;logger[_0x324e1a('0x4d')]('['+[_0x340472[_0x324e1a('0x45')]()]+']',_0x1847f0[_0x324e1a('0x10')]),_0x1157a3(_0x1847f0[_0x324e1a('0x10')]);});});}function getUser(_0x87ea16,_0x4e6314,_0x4319df,_0x27cf06,_0x528ac8){return function(_0x24e3e5){const _0x5264a0=a1141_0x1ecb;return logger[_0x5264a0('0x9')]('['+[_0x87ea16[_0x5264a0('0x45')]()]+'],\x20getUser\x20input\x20crm',_0x24e3e5),new Promise(function(_0x3570e6,_0x1de932){const _0x3fec8a=_0x5264a0;if(intUtil['validateEmail'](_0x24e3e5[_0x3fec8a('0x3f')])){const _0x29ff0f={'method':'GET','uri':_0x4319df+_0x3fec8a('0x4a')+_0x24e3e5[_0x3fec8a('0x3f')]+'&'+_0x27cf06+'&'+_0x528ac8,'auth':_0x4e6314,'json':!![]};return logger[_0x3fec8a('0x9')]('['+[_0x87ea16[_0x3fec8a('0x45')]()]+'],\x20getUser\x20rp\x20obj',_0x29ff0f),rp(_0x29ff0f)['then'](function(_0x5eb6c0){const _0x412fe8=_0x3fec8a;logger[_0x412fe8('0x9')]('['+[_0x87ea16[_0x412fe8('0x45')]()]+_0x412fe8('0x33'),_0x5eb6c0),_0x5eb6c0[_0x412fe8('0x6')][_0x412fe8('0x53')]>0x0&&String(_0x5eb6c0[_0x412fe8('0x6')][0x0]['active'])===_0x412fe8('0x41')?_0x24e3e5[_0x412fe8('0x2e')]=_0x5eb6c0[_0x412fe8('0x6')][0x0][_0x412fe8('0x11')]:(_0x24e3e5[_0x412fe8('0x2e')]=_0x24e3e5[_0x412fe8('0x56')],_0x24e3e5[_0x412fe8('0x3f')]=_0x24e3e5[_0x412fe8('0x23')]),logger[_0x412fe8('0x9')]('['+[_0x87ea16[_0x412fe8('0x45')]()]+_0x412fe8('0x19'),_0x24e3e5),_0x3570e6(_0x24e3e5);})[_0x3fec8a('0x35')](function(_0x24fd7a){const _0x452450=_0x3fec8a;logger['error']('['+[_0x87ea16[_0x452450('0x45')]()]+']',_0x24fd7a[_0x452450('0x10')]),_0x1de932(_0x24fd7a[_0x452450('0x10')]);});}else logger['info']('['+[_0x87ea16['toUpperCase']()]+_0x3fec8a('0x12')),_0x24e3e5[_0x3fec8a('0x2e')]=_0x24e3e5[_0x3fec8a('0x56')],_0x24e3e5['userEmail']=_0x24e3e5['adminEmail'],_0x3570e6(_0x24e3e5);});};}function createEndUser(_0x599cc0,_0x5a2e61,_0x235d60,_0x54f580,_0x4e8884){const _0x1dd53d=_0xb79a;return logger[_0x1dd53d('0x9')]('['+[_0x599cc0['toUpperCase']()]+'],\x20createEndUser\x20input\x20crm',_0x235d60),new Promise(function(_0xc28288,_0x4e58aa){const _0x10a468=_0x1dd53d,_0x452f2={'method':_0x10a468('0x21'),'uri':_0x54f580+'sys_user?'+_0x4e8884,'body':{'user_name':_0x235d60[_0x10a468('0x3')],'roles':_0x10a468('0x1f'),'first_name':_0x235d60[_0x10a468('0x3')],'active':_0x10a468('0x41'),'date_format':_0x10a468('0x2'),'phone':_0x235d60[_0x10a468('0x3')]},'auth':_0x5a2e61,'json':!![]};return rp(_0x452f2)['then'](function(_0x104667){const _0x39a97a=_0x10a468;logger[_0x39a97a('0x9')]('['+[_0x599cc0[_0x39a97a('0x45')]()]+'],\x20EndUser\x20schema',_0x104667[_0x39a97a('0x6')]),_0x235d60[_0x39a97a('0xb')]=_0x104667[_0x39a97a('0x6')][_0x39a97a('0x11')],_0xc28288(_0x235d60);})[_0x10a468('0x35')](function(_0x3b512a){const _0x7f88dd=_0x10a468;logger[_0x7f88dd('0x4d')]('['+[_0x599cc0[_0x7f88dd('0x45')]()]+']',_0x3b512a[_0x7f88dd('0x10')]),_0x4e58aa(_0x3b512a[_0x7f88dd('0x10')]);});});}function getEndUser(_0x4d771f,_0x36c776,_0x3596b7,_0x26fc41,_0x50a792){return function(_0x3c7ba5){return logger['info']('['+[_0x4d771f['toUpperCase']()]+'],\x20getEndUser\x20input\x20crm',_0x3c7ba5),new Promise(function(_0x3d72c6,_0x58f096){const _0x2492d1=a1141_0x1ecb,_0x3f1fd0={'method':_0x2492d1('0x16'),'uri':_0x3596b7+_0x2492d1('0xd')+_0x3c7ba5[_0x2492d1('0x3')]+'&'+_0x26fc41+'&'+_0x50a792,'auth':_0x36c776,'json':!![]};return rp(_0x3f1fd0)[_0x2492d1('0x4e')](function(_0x457f08){const _0x347d8b=_0x2492d1;if(_0x457f08[_0x347d8b('0x6')]['length']>0x0)_0x3c7ba5[_0x347d8b('0xb')]=_0x457f08['result'][0x0][_0x347d8b('0x11')],logger[_0x347d8b('0x9')]('['+[_0x4d771f[_0x347d8b('0x45')]()]+'],\x20getEndUser\x20crm',_0x3c7ba5),_0x3d72c6(_0x3c7ba5);else return createEndUser(_0x4d771f,_0x36c776,_0x3c7ba5,_0x3596b7,_0x26fc41)['then'](function(_0x523cbd){const _0x15c0be=_0x347d8b;logger['info']('['+[_0x4d771f[_0x15c0be('0x45')]()]+'],\x20createEndUser\x20crm',_0x523cbd),_0x3d72c6(_0x523cbd);});})['catch'](function(_0x3614b4){const _0x250ce8=_0x2492d1;logger[_0x250ce8('0x4d')]('['+[_0x4d771f[_0x250ce8('0x45')]()]+']',_0x3614b4[_0x250ce8('0x10')]),_0x58f096(_0x3614b4[_0x250ce8('0x10')]);});});};}function getCustomFields(_0x478b9a,_0x4d8cb1){const _0x1ef232=_0xb79a,_0x3753c9={};return _0x478b9a[_0x1ef232('0x53')]>0x0&&_['forEach'](_0x478b9a,function(_0xcf6427){const _0x2e7950=_0x1ef232;if(_0xcf6427[_0x2e7950('0x2a')]==='string'&&_0xcf6427['nameField']&&!_0xcf6427[_0x2e7950('0x4f')])_0x3753c9[_0xcf6427[_0x2e7950('0xc')][_0x2e7950('0xa')]()]=_0xcf6427['content'][_0x2e7950('0x30')]();else{if(_0xcf6427[_0x2e7950('0x2a')]===_0x2e7950('0x3e')&&_0xcf6427['idField']&&_0xcf6427[_0x2e7950('0x4f')])_0x3753c9[_0xcf6427['idField']['toLowerCase']()]=_0xcf6427['content'][_0x2e7950('0x30')]();else{if(_0xcf6427[_0x2e7950('0x2a')]===_0x2e7950('0x37')&&_0xcf6427[_0x2e7950('0x20')]&&_0xcf6427[_0x2e7950('0xc')]&&_0xcf6427[_0x2e7950('0x4f')])_0x3753c9[_0xcf6427['idField']['toLowerCase']()]=_0x4d8cb1[_0xcf6427[_0x2e7950('0x20')]][_0x2e7950('0x30')]();else _0xcf6427[_0x2e7950('0x2a')]===_0x2e7950('0x25')&&_0xcf6427[_0x2e7950('0x0')]&&_0xcf6427[_0x2e7950('0x0')][_0x2e7950('0x50')]&&_0xcf6427[_0x2e7950('0xc')]&&_0xcf6427[_0x2e7950('0x4f')]&&(_0x3753c9[_0xcf6427[_0x2e7950('0xc')][_0x2e7950('0xa')]()]=_0x4d8cb1[_0xcf6427['Variable']['name'][_0x2e7950('0xa')]()][_0x2e7950('0x30')]());}}}),_0x3753c9;}function getTicket(_0x30bda4,_0x3f61a0,_0x1b07e0,_0x2533a6,_0x4f8e74,_0x390de9){return function(_0x2fa31c){const _0x7b2144=a1141_0x1ecb;return logger[_0x7b2144('0x9')]('['+[_0x30bda4['toUpperCase']()]+']\x20getTicket\x20input\x20crm',_0x2fa31c),new Promise(function(_0x18734f,_0x4f4fe4){const _0x4755c1=_0x7b2144,_0x23d084=_0x30bda4[_0x4755c1('0xa')]()===_0x4755c1('0x52')?_0x2fa31c[_0x4755c1('0x2e')]:_0x2fa31c[_0x4755c1('0xb')],_0x32873b={'method':_0x4755c1('0x21'),'uri':_0x1b07e0+_0x4755c1('0x2b')+'?'+_0x390de9,'body':Object[_0x4755c1('0x29')]({},{'active':'true','caller_id':_0x23d084,'assigned_to':_0x2fa31c[_0x4755c1('0x2e')],'short_description':intUtil[_0x4755c1('0x40')](_0x2533a6[_0x4755c1('0x55')],_0x4f8e74,'\x20'),'description':intUtil[_0x4755c1('0x40')](_0x2533a6[_0x4755c1('0x2f')],_0x4f8e74,'\x0a')},getCustomFields(_0x2533a6[_0x4755c1('0x36')],_0x4f8e74)),'auth':_0x3f61a0,'json':!![]};return rp(_0x32873b)[_0x4755c1('0x4e')](function(_0x7bf1e2){const _0x3792e3=_0x4755c1;logger['info']('['+[_0x30bda4[_0x3792e3('0x45')]()]+_0x3792e3('0xe'),_0x7bf1e2[_0x3792e3('0x6')]),_0x2fa31c[_0x3792e3('0x42')]=_0x7bf1e2['result'][_0x3792e3('0x11')],_0x2fa31c[_0x3792e3('0x48')]=_0x7bf1e2['result'][_0x3792e3('0x44')],logger['info']('['+[_0x30bda4[_0x3792e3('0x45')]()]+_0x3792e3('0x51'),_0x2fa31c),_0x18734f(_0x2fa31c);})[_0x4755c1('0x35')](function(_0x593286){const _0x29f202=_0x4755c1;logger[_0x29f202('0x4d')]('['+[_0x30bda4[_0x29f202('0x45')]()]+']',_0x593286[_0x29f202('0x10')]),_0x4f4fe4(_0x593286['message']);});});};}function emit(_0x3c34cd,_0x18c43f,_0x2a0784){const _0x3b8892=_0xb79a,_0x401732=_0x3b8892('0x15')+_0x3b8892('0x1b')+_0x3b8892('0x5')+_0x3b8892('0x18'),_0x1fda12={'uri':_0x3c34cd+_0x3b8892('0x7')+_0x2a0784+_0x401732};io['to'](util[_0x3b8892('0x43')]('user:%s',_0x18c43f))[_0x3b8892('0x4c')](_0x3b8892('0x49'),_0x1fda12);}exports['cs']=function(_0x2ed22c,_0x1f6a21,_0x4905b9,_0x386702,_0x35586e,_0x45148e,_0x23c3a6,_0x1135de){const _0x93c685=_0xb79a,_0x13f777={},_0x4e5c1c={'user':_0x45148e[_0x93c685('0x47')],'pass':_0x45148e['password']},_0xd52e5e=_0x93c685('0x28'),_0x30976d=_0x93c685('0x3d');_0x45148e[_0x93c685('0x2c')]=intUtil[_0x93c685('0x34')](_0x45148e[_0x93c685('0x2c')]),_0x45148e[_0x93c685('0x1d')]=intUtil[_0x93c685('0x34')](_0x45148e[_0x93c685('0x1d')]);const _0x3d0e5b=util[_0x93c685('0x43')]('%s/api/now/table/',_0x45148e[_0x93c685('0x2c')]);_0x13f777['userEmail']=!_[_0x93c685('0x4b')](_0x386702)?_0x386702['email']:null,_0x13f777[_0x93c685('0x23')]=_0x45148e['email'],_0x13f777[_0x93c685('0x3')]=_0x1135de[_0x93c685('0xa')]()==='outbound'?_0x1f6a21['destcalleridnum']:_0x1f6a21['calleridnum'],_0x13f777[_0x93c685('0x14')]=_0x1135de===_0x93c685('0x13')||_0x1135de===_0x93c685('0x3a')?_0x93c685('0x13'):_0x93c685('0x52');const _0x19727a=util[_0x93c685('0x43')](_0x93c685('0x27'),_0x45148e['serverUrl'],_0x1f6a21[_0x93c685('0x31')],md5(_0x1f6a21['uniqueid']));if(_0x35586e&&_0x35586e[_0x93c685('0x2d')])logger[_0x93c685('0x9')]('[QUEUE]',_0x93c685('0x38')),_0x1f6a21[_0x93c685('0x1c')]=_0x19727a;else _0x23c3a6&&_0x23c3a6[_0x93c685('0x39')]&&_0x23c3a6[_0x93c685('0x39')]!==_0x93c685('0x46')?(logger[_0x93c685('0x9')](_0x93c685('0x1'),_0x93c685('0x38')),_0x1f6a21[_0x93c685('0x1c')]=_0x19727a):_0x1f6a21[_0x93c685('0x1c')]='';return getAdminUser(_0x1135de,_0x4e5c1c,_0x13f777,_0x3d0e5b,_0x30976d,_0xd52e5e)[_0x93c685('0x4e')](getUser(_0x1135de,_0x4e5c1c,_0x3d0e5b,_0x30976d,_0xd52e5e))[_0x93c685('0x4e')](getEndUser(_0x1135de,_0x4e5c1c,_0x3d0e5b,_0x30976d,_0xd52e5e))['then'](getTicket(_0x1135de,_0x4e5c1c,_0x3d0e5b,_0x4905b9,_0x1f6a21,_0x30976d))[_0x93c685('0x4e')](function(_0x26d202){const _0x370154=_0x93c685;logger[_0x370154('0x9')](util[_0x370154('0x43')]('The\x20ticket\x20ID\x20is:\x20%s',_0x26d202[_0x370154('0x42')])),logger[_0x370154('0x9')](util[_0x370154('0x43')]('call\x20direction:\x20%s',_0x1135de)),_0x1135de!=='unmanaged'&&(logger[_0x370154('0x9')]('['+[_0x1135de[_0x370154('0x45')]()]+']',_0x370154('0x17')),emit(_0x45148e['remoteUri'],_0x386702[_0x370154('0x50')],_0x26d202[_0x370154('0x42')]));})[_0x93c685('0x35')](function(_0x180407){const _0x1aff06=_0x93c685;logger[_0x1aff06('0x4d')]('['+[_0x1135de['toUpperCase']()]+_0x1aff06('0x32'),util[_0x1aff06('0x22')](_0x180407,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1141_0x37cc=['catch','],\x20getUser\x20input\x20crm','recordingURL','servicenow','adminEmail','unmanaged','],\x20getUser\x20rp\x20obj','number','Recording\x20is\x20enabled!','info',']\x20using\x20admin\x20profile','GET','trigger:browser:url','Subjects','sys_id','user','%255EORDERBYDESCnumber','sys_user?sysparm_query=phone%3D','request-promise-native','variableName',']\x20Error\x20running\x20ServiceNow\x20integration','./util','userEmail',']\x20getTicket\x20crm','sys_user?','assign','nameField','none','sysparm_display_value=true','uniqueid','],\x20createEndUser\x20crm','customVariable','message','email','adminId','],\x20getUser\x20crm','customField','[OUTBOUND]','],\x20createEndUser\x20input\x20crm','sys_user?sysparm_query=email%3D','Displaying\x20call\x20in\x20a\x20new\x20tab...','../../../../rediscache','length','util','destcalleridnum','],\x20getEndUser\x20input\x20crm','],\x20EndUser\x20schema','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','endUserNumber','content','getString','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','md5','POST','outbound','lodash','],\x20getAdminUser\x20crm','idField','error','user:%s','queue','call\x20direction:\x20%s','type','sysparm_limit=1','/nav_to.do?uri=incident.do?sys_id%3D','incident','emit','format','Variable','result','../../../../config/logger','stripTrailingSlash','ticketId','name','callDirection','active','monitor_format','ticketNumber','recordingFormat','string','true','username','toString','remoteUri','[QUEUE]','toLowerCase','userId','endUserId','validateEmail','System','inspect','toUpperCase','],\x20getUser\x20entity','%s/api/now/table/','variable','serverUrl',']\x20POST\x20incident\x20entity\x20schema','then','%26sysparm_record_target%3Dincident'];(function(_0x3c6432,_0x37ccb2){const _0x4be8ed=function(_0x1a4d0f){while(--_0x1a4d0f){_0x3c6432['push'](_0x3c6432['shift']());}};_0x4be8ed(++_0x37ccb2);}(a1141_0x37cc,0x1e9));const a1141_0x4be8=function(_0x3c6432,_0x37ccb2){_0x3c6432=_0x3c6432-0x0;let _0x4be8ed=a1141_0x37cc[_0x3c6432];return _0x4be8ed;};const _0x222d56=a1141_0x4be8;'use strict';const _=require(_0x222d56('0x3d')),rp=require(_0x222d56('0x18')),util=require(_0x222d56('0x31')),md5=require(_0x222d56('0x3a')),intUtil=require(_0x222d56('0x1b')),logger=require(_0x222d56('0x4c'))(_0x222d56('0x9')),{getSocket}=require(_0x222d56('0x2f')),io=getSocket();function getAdminUser(_0x1a4d0f,_0x354fd6,_0x3d1b02,_0x206594,_0x1c9078,_0x5d246b){return new Promise(function(_0xa17a30,_0x4926a0){const _0x4690da=a1141_0x4be8,_0x137136={'method':'GET','uri':_0x206594+'sys_user?sysparm_query=user_name%3Dadmin'+'&'+_0x1c9078+'&'+_0x5d246b,'auth':_0x354fd6,'json':!![]};return rp(_0x137136)[_0x4690da('0x4')](function(_0x224faa){const _0x29c32b=_0x4690da;_0x224faa['result'][_0x29c32b('0x30')]>0x0&&(_0x3d1b02[_0x29c32b('0x28')]=_0x224faa[_0x29c32b('0x4b')][0x0][_0x29c32b('0x14')]),logger['info']('['+[_0x1a4d0f[_0x29c32b('0x61')]()]+_0x29c32b('0x3e'),_0x3d1b02),_0xa17a30(_0x3d1b02);})['catch'](function(_0x536d5d){const _0x5bd58a=_0x4690da;logger[_0x5bd58a('0x40')]('['+[_0x1a4d0f['toUpperCase']()]+']',_0x536d5d[_0x5bd58a('0x26')]),_0x4926a0(_0x536d5d[_0x5bd58a('0x26')]);});});}function getUser(_0x5da67c,_0x2ed61c,_0x1019b4,_0x3ef1a2,_0x2d6dc2){return function(_0x331686){const _0x31b738=a1141_0x4be8;return logger['info']('['+[_0x5da67c['toUpperCase']()]+_0x31b738('0x7'),_0x331686),new Promise(function(_0x4a10a2,_0x29bc13){const _0x372511=_0x31b738;if(intUtil[_0x372511('0x5e')](_0x331686[_0x372511('0x1c')])){const _0x280bcd={'method':_0x372511('0x11'),'uri':_0x1019b4+_0x372511('0x2d')+_0x331686[_0x372511('0x1c')]+'&'+_0x3ef1a2+'&'+_0x2d6dc2,'auth':_0x2ed61c,'json':!![]};return logger[_0x372511('0xf')]('['+[_0x5da67c['toUpperCase']()]+_0x372511('0xc'),_0x280bcd),rp(_0x280bcd)[_0x372511('0x4')](function(_0x2746a5){const _0x2b4984=_0x372511;logger[_0x2b4984('0xf')]('['+[_0x5da67c[_0x2b4984('0x61')]()]+_0x2b4984('0x62'),_0x2746a5),_0x2746a5['result'][_0x2b4984('0x30')]>0x0&&String(_0x2746a5[_0x2b4984('0x4b')][0x0][_0x2b4984('0x51')])==='true'?_0x331686[_0x2b4984('0x5c')]=_0x2746a5[_0x2b4984('0x4b')][0x0][_0x2b4984('0x14')]:(_0x331686[_0x2b4984('0x5c')]=_0x331686[_0x2b4984('0x28')],_0x331686['userEmail']=_0x331686[_0x2b4984('0xa')]),logger[_0x2b4984('0xf')]('['+[_0x5da67c[_0x2b4984('0x61')]()]+_0x2b4984('0x29'),_0x331686),_0x4a10a2(_0x331686);})[_0x372511('0x6')](function(_0x55bc39){const _0x260321=_0x372511;logger[_0x260321('0x40')]('['+[_0x5da67c[_0x260321('0x61')]()]+']',_0x55bc39[_0x260321('0x26')]),_0x29bc13(_0x55bc39[_0x260321('0x26')]);});}else logger[_0x372511('0xf')]('['+[_0x5da67c[_0x372511('0x61')]()]+_0x372511('0x10')),_0x331686['userId']=_0x331686['adminId'],_0x331686[_0x372511('0x1c')]=_0x331686[_0x372511('0xa')],_0x4a10a2(_0x331686);});};}function createEndUser(_0x5eb0e4,_0x11e8f4,_0x225f95,_0xcacb36,_0x17b4dc){const _0x53aa3e=_0x222d56;return logger[_0x53aa3e('0xf')]('['+[_0x5eb0e4['toUpperCase']()]+_0x53aa3e('0x2c'),_0x225f95),new Promise(function(_0x2b869b,_0x939789){const _0x4c658b=_0x53aa3e,_0x44be65={'method':_0x4c658b('0x3b'),'uri':_0xcacb36+_0x4c658b('0x1e')+_0x17b4dc,'body':{'user_name':_0x225f95[_0x4c658b('0x36')],'roles':_0x4c658b('0x15'),'first_name':_0x225f95['endUserNumber'],'active':_0x4c658b('0x56'),'date_format':_0x4c658b('0x5f'),'phone':_0x225f95[_0x4c658b('0x36')]},'auth':_0x11e8f4,'json':!![]};return rp(_0x44be65)[_0x4c658b('0x4')](function(_0x47eb86){const _0x57a8d9=_0x4c658b;logger[_0x57a8d9('0xf')]('['+[_0x5eb0e4[_0x57a8d9('0x61')]()]+_0x57a8d9('0x34'),_0x47eb86[_0x57a8d9('0x4b')]),_0x225f95[_0x57a8d9('0x5d')]=_0x47eb86[_0x57a8d9('0x4b')][_0x57a8d9('0x14')],_0x2b869b(_0x225f95);})[_0x4c658b('0x6')](function(_0x1d6ffa){const _0x2d48a8=_0x4c658b;logger[_0x2d48a8('0x40')]('['+[_0x5eb0e4[_0x2d48a8('0x61')]()]+']',_0x1d6ffa[_0x2d48a8('0x26')]),_0x939789(_0x1d6ffa[_0x2d48a8('0x26')]);});});}function getEndUser(_0x2f2186,_0x2a4644,_0x5a4e38,_0x22fe73,_0x59deb4){return function(_0x3edd33){const _0x5114b7=a1141_0x4be8;return logger[_0x5114b7('0xf')]('['+[_0x2f2186['toUpperCase']()]+_0x5114b7('0x33'),_0x3edd33),new Promise(function(_0xbbf54c,_0x2d6b43){const _0xf84ced=_0x5114b7,_0x5d6bc5={'method':_0xf84ced('0x11'),'uri':_0x5a4e38+_0xf84ced('0x17')+_0x3edd33[_0xf84ced('0x36')]+'&'+_0x22fe73+'&'+_0x59deb4,'auth':_0x2a4644,'json':!![]};return rp(_0x5d6bc5)['then'](function(_0x1a160d){const _0x4e1ab3=_0xf84ced;if(_0x1a160d[_0x4e1ab3('0x4b')]['length']>0x0)_0x3edd33[_0x4e1ab3('0x5d')]=_0x1a160d['result'][0x0][_0x4e1ab3('0x14')],logger[_0x4e1ab3('0xf')]('['+[_0x2f2186[_0x4e1ab3('0x61')]()]+'],\x20getEndUser\x20crm',_0x3edd33),_0xbbf54c(_0x3edd33);else return createEndUser(_0x2f2186,_0x2a4644,_0x3edd33,_0x5a4e38,_0x22fe73)['then'](function(_0x1262e0){const _0x2a32ee=_0x4e1ab3;logger[_0x2a32ee('0xf')]('['+[_0x2f2186['toUpperCase']()]+_0x2a32ee('0x24'),_0x1262e0),_0xbbf54c(_0x1262e0);});})['catch'](function(_0x3d9390){const _0x3e4114=_0xf84ced;logger[_0x3e4114('0x40')]('['+[_0x2f2186['toUpperCase']()]+']',_0x3d9390[_0x3e4114('0x26')]),_0x2d6b43(_0x3d9390[_0x3e4114('0x26')]);});});};}function getCustomFields(_0x1a35fd,_0x5c3851){const _0x413d19=_0x222d56,_0x356025={};return _0x1a35fd[_0x413d19('0x30')]>0x0&&_['forEach'](_0x1a35fd,function(_0x4234e2){const _0x79096c=_0x413d19;if(_0x4234e2[_0x79096c('0x44')]===_0x79096c('0x55')&&_0x4234e2[_0x79096c('0x20')]&&!_0x4234e2[_0x79096c('0x2a')])_0x356025[_0x4234e2[_0x79096c('0x3f')][_0x79096c('0x5b')]()]=_0x4234e2[_0x79096c('0x37')][_0x79096c('0x58')]();else{if(_0x4234e2[_0x79096c('0x44')]===_0x79096c('0x55')&&_0x4234e2['idField']&&_0x4234e2['customField'])_0x356025[_0x4234e2[_0x79096c('0x3f')][_0x79096c('0x5b')]()]=_0x4234e2[_0x79096c('0x37')]['toString']();else{if(_0x4234e2[_0x79096c('0x44')]===_0x79096c('0x1')&&_0x4234e2[_0x79096c('0x19')]&&_0x4234e2[_0x79096c('0x3f')]&&_0x4234e2[_0x79096c('0x2a')])_0x356025[_0x4234e2[_0x79096c('0x3f')][_0x79096c('0x5b')]()]=_0x5c3851[_0x4234e2['variableName']][_0x79096c('0x58')]();else _0x4234e2['type']===_0x79096c('0x25')&&_0x4234e2[_0x79096c('0x4a')]&&_0x4234e2['Variable']['name']&&_0x4234e2[_0x79096c('0x3f')]&&_0x4234e2[_0x79096c('0x2a')]&&(_0x356025[_0x4234e2[_0x79096c('0x3f')][_0x79096c('0x5b')]()]=_0x5c3851[_0x4234e2['Variable']['name']['toLowerCase']()][_0x79096c('0x58')]());}}}),_0x356025;}function getTicket(_0x59876f,_0x53deb8,_0x31d7de,_0x18e11c,_0x281d3b,_0x56d823){return function(_0xc24eab){const _0x1ce01b=a1141_0x4be8;return logger[_0x1ce01b('0xf')]('['+[_0x59876f[_0x1ce01b('0x61')]()]+']\x20getTicket\x20input\x20crm',_0xc24eab),new Promise(function(_0x435304,_0x349fb9){const _0x357ccb=_0x1ce01b,_0xbdbd8a=_0x59876f[_0x357ccb('0x5b')]()==='outbound'?_0xc24eab[_0x357ccb('0x5c')]:_0xc24eab[_0x357ccb('0x5d')],_0xfbec73={'method':'POST','uri':_0x31d7de+_0x357ccb('0x47')+'?'+_0x56d823,'body':Object[_0x357ccb('0x1f')]({},{'active':_0x357ccb('0x56'),'caller_id':_0xbdbd8a,'assigned_to':_0xc24eab[_0x357ccb('0x5c')],'short_description':intUtil[_0x357ccb('0x38')](_0x18e11c[_0x357ccb('0x13')],_0x281d3b,'\x20'),'description':intUtil[_0x357ccb('0x38')](_0x18e11c['Descriptions'],_0x281d3b,'\x0a')},getCustomFields(_0x18e11c['Fields'],_0x281d3b)),'auth':_0x53deb8,'json':!![]};return rp(_0xfbec73)[_0x357ccb('0x4')](function(_0x33501d){const _0x47a313=_0x357ccb;logger[_0x47a313('0xf')]('['+[_0x59876f['toUpperCase']()]+_0x47a313('0x3'),_0x33501d['result']),_0xc24eab[_0x47a313('0x4e')]=_0x33501d[_0x47a313('0x4b')][_0x47a313('0x14')],_0xc24eab[_0x47a313('0x53')]=_0x33501d[_0x47a313('0x4b')][_0x47a313('0xd')],logger[_0x47a313('0xf')]('['+[_0x59876f[_0x47a313('0x61')]()]+_0x47a313('0x1d'),_0xc24eab),_0x435304(_0xc24eab);})[_0x357ccb('0x6')](function(_0x2757af){const _0x241734=_0x357ccb;logger[_0x241734('0x40')]('['+[_0x59876f[_0x241734('0x61')]()]+']',_0x2757af[_0x241734('0x26')]),_0x349fb9(_0x2757af[_0x241734('0x26')]);});});};}function emit(_0x47f7d2,_0x2cbd9a,_0x5b044c){const _0x117e3c=_0x222d56,_0x33981f=_0x117e3c('0x5')+_0x117e3c('0x35')+'%26sysparm_record_list%3Dactive%253Dtrue'+_0x117e3c('0x16'),_0x181a49={'uri':_0x47f7d2+_0x117e3c('0x46')+_0x5b044c+_0x33981f};io['to'](util[_0x117e3c('0x49')](_0x117e3c('0x41'),_0x2cbd9a))[_0x117e3c('0x48')](_0x117e3c('0x12'),_0x181a49);}exports['cs']=function(_0x52ef21,_0x178a93,_0x49e71a,_0x329d8a,_0x3c45c7,_0x15957e,_0x40c506,_0x3a0c74){const _0x4bc6c2=_0x222d56,_0x25c001={},_0x3cda3e={'user':_0x15957e[_0x4bc6c2('0x57')],'pass':_0x15957e['password']},_0x1d1a00=_0x4bc6c2('0x45'),_0x88a5a4=_0x4bc6c2('0x22');_0x15957e[_0x4bc6c2('0x59')]=intUtil['stripTrailingSlash'](_0x15957e[_0x4bc6c2('0x59')]),_0x15957e['serverUrl']=intUtil[_0x4bc6c2('0x4d')](_0x15957e[_0x4bc6c2('0x2')]);const _0x3ad3eb=util[_0x4bc6c2('0x49')](_0x4bc6c2('0x0'),_0x15957e[_0x4bc6c2('0x59')]);_0x25c001[_0x4bc6c2('0x1c')]=!_['isNil'](_0x329d8a)?_0x329d8a[_0x4bc6c2('0x27')]:null,_0x25c001[_0x4bc6c2('0xa')]=_0x15957e['email'],_0x25c001[_0x4bc6c2('0x36')]=_0x3a0c74[_0x4bc6c2('0x5b')]()==='outbound'?_0x178a93[_0x4bc6c2('0x32')]:_0x178a93['calleridnum'],_0x25c001[_0x4bc6c2('0x50')]=_0x3a0c74===_0x4bc6c2('0x42')||_0x3a0c74==='unmanaged'?_0x4bc6c2('0x42'):_0x4bc6c2('0x3c');const _0x446b49=util[_0x4bc6c2('0x49')](_0x4bc6c2('0x39'),_0x15957e[_0x4bc6c2('0x2')],_0x178a93[_0x4bc6c2('0x23')],md5(_0x178a93[_0x4bc6c2('0x23')]));if(_0x3c45c7&&_0x3c45c7[_0x4bc6c2('0x52')])logger[_0x4bc6c2('0xf')](_0x4bc6c2('0x5a'),_0x4bc6c2('0xe')),_0x178a93[_0x4bc6c2('0x8')]=_0x446b49;else _0x40c506&&_0x40c506['recordingFormat']&&_0x40c506[_0x4bc6c2('0x54')]!==_0x4bc6c2('0x21')?(logger[_0x4bc6c2('0xf')](_0x4bc6c2('0x2b'),'Recording\x20is\x20enabled!'),_0x178a93['recordingURL']=_0x446b49):_0x178a93[_0x4bc6c2('0x8')]='';return getAdminUser(_0x3a0c74,_0x3cda3e,_0x25c001,_0x3ad3eb,_0x88a5a4,_0x1d1a00)[_0x4bc6c2('0x4')](getUser(_0x3a0c74,_0x3cda3e,_0x3ad3eb,_0x88a5a4,_0x1d1a00))[_0x4bc6c2('0x4')](getEndUser(_0x3a0c74,_0x3cda3e,_0x3ad3eb,_0x88a5a4,_0x1d1a00))[_0x4bc6c2('0x4')](getTicket(_0x3a0c74,_0x3cda3e,_0x3ad3eb,_0x49e71a,_0x178a93,_0x88a5a4))[_0x4bc6c2('0x4')](function(_0x4170b3){const _0x191502=_0x4bc6c2;logger['info'](util[_0x191502('0x49')]('The\x20ticket\x20ID\x20is:\x20%s',_0x4170b3['ticketId'])),logger[_0x191502('0xf')](util[_0x191502('0x49')](_0x191502('0x43'),_0x3a0c74)),_0x3a0c74!==_0x191502('0xb')&&(logger[_0x191502('0xf')]('['+[_0x3a0c74[_0x191502('0x61')]()]+']',_0x191502('0x2e')),emit(_0x15957e[_0x191502('0x59')],_0x329d8a[_0x191502('0x4f')],_0x4170b3[_0x191502('0x4e')]));})[_0x4bc6c2('0x6')](function(_0x50ae90){const _0x32e3bc=_0x4bc6c2;logger[_0x32e3bc('0x40')]('['+[_0x3a0c74[_0x32e3bc('0x61')]()]+_0x32e3bc('0x1a'),util[_0x32e3bc('0x60')](_0x50ae90,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/sugarcrm.js b/server/services/ami/trigger/integration/sugarcrm.js index e64dcae..a0f1c6a 100644 --- a/server/services/ami/trigger/integration/sugarcrm.js +++ b/server/services/ami/trigger/integration/sugarcrm.js @@ -1 +1 @@ -const a1142_0x19d3=['PLAIN','request-promise-native','Enduser\x20created.','%s/service/v4_1/rest.php','Descriptions','Searching\x20enduser\x20with\x20phone','JSON','direction','debug','Calls','[QUEUE]','none','recordingURL','version','get_entry_list','users','charAt','format','set_relationship','sugarcrm','Ticket\x20created!','catch','calleridname','uniqueid','user_name','password','info','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','outbound','recordingFormat','name_value_list','trigger:browser:url','Creating\x20new\x20ticket...','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','xCALLY\x20Motion\x20integration','description','contacts','../../../../rediscache','calleridnum','Recording\x20is\x20enabled!','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','unmanaged','Contacts','Caller\x20-\x20%s','push','assigned_user_id','../../../../config/logger','monitor_format','name','queue','[HTTP]','Fields','The\x20Enduser\x20ID\x20is:','Employees','lastevent','username','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','user:%s','stringify','first_name','contacts.phone_home\x20=\x20\x22%s\x22','Enduser\x20found!','getString','Agent\x20found!','[OUTBOUND]','forEach','slice','destcalleridnum','resolve','find','set_entry','duration_hours','md5','value','uri','phone_home','then','sessionID','error','duration_minutes','length','get_server_info','parent_id','remoteUri','Inbound','serverUrl','replace','created_by','isNil','entry_list','The\x20User\x20ID\x20is:','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','POST','variableName','user_id','The\x20Ticket\x20ID\x20is:','destcalleridname','login','util','parent_type','Subjects','','stripTrailingSlash'];(function(_0x25cbdc,_0x19d312){const _0x5282a3=function(_0xf0f1a8){while(--_0xf0f1a8){_0x25cbdc['push'](_0x25cbdc['shift']());}};_0x5282a3(++_0x19d312);}(a1142_0x19d3,0xcf));const a1142_0x5282=function(_0x25cbdc,_0x19d312){_0x25cbdc=_0x25cbdc-0x0;let _0x5282a3=a1142_0x19d3[_0x25cbdc];return _0x5282a3;};const _0x291aa1=a1142_0x5282;'use strict';const _=require('lodash'),rp=require(_0x291aa1('0x2')),md5=require(_0x291aa1('0x4a')),util=require(_0x291aa1('0x64')),intUtil=require('./util'),logger=require(_0x291aa1('0x30'))(_0x291aa1('0x14')),{getSocket}=require(_0x291aa1('0x27')),io=getSocket(),def={'method':_0x291aa1('0x5e'),'json':!![]};function emit(_0xf0f1a8,_0x56b75f,_0x878aa7){io['to'](_0xf0f1a8)['emit'](_0x56b75f,_0x878aa7);}function getTicket(_0x180ad2,_0xa38455,_0x45740e,_0x50f6dc,_0x3640ac,_0x17d372,_0xfa98e9,_0xea5b83){const _0x36e7fe=_0x291aa1;logger[_0x36e7fe('0x1b')](_0x36e7fe('0x22'));const _0xe163c=new Date(),_0xd05e59=[{'name':_0x36e7fe('0x32'),'value':intUtil[_0x36e7fe('0x40')](_0x50f6dc[_0x36e7fe('0x66')],_0x3640ac,'\x20')},{'name':_0x36e7fe('0x2f'),'value':_0xa38455['id']},{'name':_0x36e7fe('0x59'),'value':_0xa38455['id']},{'name':_0x36e7fe('0x25'),'value':intUtil['getString'](_0x50f6dc[_0x36e7fe('0x5')],_0x3640ac,'\x0a')},{'name':'date_start','value':_0xe163c['toISOString']()[_0x36e7fe('0x44')](0x0,0x13)[_0x36e7fe('0x58')]('T','\x20')},{'name':_0x36e7fe('0x49'),'value':'0'},{'name':_0x36e7fe('0x51'),'value':'15'},{'name':_0x36e7fe('0x54'),'value':_0x45740e['id']},{'name':_0x36e7fe('0x65'),'value':_0x36e7fe('0x2c')},{'name':'parent_name','value':_0x45740e[_0x36e7fe('0x32')]},{'name':_0x36e7fe('0x8'),'value':_0xea5b83}];return _0x17d372[_0x36e7fe('0x52')]&&_[_0x36e7fe('0x43')](_0x17d372,function(_0xafafd2){const _0xa93467=_0x36e7fe;_0x3640ac[_0xafafd2[_0xa93467('0x5f')]]&&_0xd05e59[_0xa93467('0x2e')]({'name':_0xafafd2['idField'],'value':_0x3640ac[_0xafafd2['variableName']]});}),request({'form':{'method':_0x36e7fe('0x48'),'input_type':'JSON','response_type':'JSON','rest_data':JSON[_0x36e7fe('0x3c')]({'session':_0xfa98e9['id'],'module_name':_0x36e7fe('0xa'),'name_value_list':_0xd05e59})}});}function getServerInfo(_0x418d6a){const _0x5b3d46=_0x291aa1;return request({'form':{'method':_0x5b3d46('0x53'),'input_type':_0x5b3d46('0x7'),'response_type':_0x5b3d46('0x7'),'rest_data':JSON[_0x5b3d46('0x3c')]({'session':_0x418d6a['id']})}});}function getUser(_0x9d94cd,_0x1d53dd,_0x58932a){const _0x51bbb1=_0x291aa1;return!_[_0x51bbb1('0x5a')](_0x1d53dd)?(logger['info']('Getting\x20agent\x20with\x20name',_0x1d53dd),request({'form':{'method':_0x51bbb1('0xf'),'input_type':'JSON','response_type':_0x51bbb1('0x7'),'rest_data':JSON[_0x51bbb1('0x3c')]({'session':_0x58932a['id'],'module_name':_0x51bbb1('0x37'),'query':util[_0x51bbb1('0x12')]('INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200',_0x1d53dd),'order_by':'','offset':'0','select_fields':['id',_0x51bbb1('0x32'),'user_name'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x51bbb1('0x4e')](function(_0x20d7e2){const _0x2bc03d=_0x51bbb1;if(_0x20d7e2[_0x2bc03d('0x5b')][_0x2bc03d('0x52')]){const _0x4ca07d=_['find'](_0x20d7e2[_0x2bc03d('0x5b')],function(_0x3e1052){const _0x423032=_0x2bc03d;return _0x3e1052['name_value_list'][_0x423032('0x19')][_0x423032('0x4b')]===_0x1d53dd;});if(_0x4ca07d)return logger[_0x2bc03d('0x1b')](_0x2bc03d('0x41')),Promise['resolve']({'id':_0x4ca07d[_0x2bc03d('0x20')]['id'][_0x2bc03d('0x4b')],'name':_0x4ca07d['name_value_list'][_0x2bc03d('0x32')]['value']});}return logger[_0x2bc03d('0x1b')](_0x2bc03d('0x5d')),Promise['resolve']({'id':_0x58932a[_0x2bc03d('0x20')][_0x2bc03d('0x60')]['value'],'name':_0x58932a[_0x2bc03d('0x20')][_0x2bc03d('0x19')][_0x2bc03d('0x4b')]});})):(logger['info']('Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!'),Promise[_0x51bbb1('0x46')]({'id':_0x58932a[_0x51bbb1('0x20')][_0x51bbb1('0x60')][_0x51bbb1('0x4b')],'name':_0x58932a[_0x51bbb1('0x20')]['user_name'][_0x51bbb1('0x4b')]}));}function getEndUser(_0x4061ba,_0x46f79f,_0x2bd945,_0x27fae6){const _0x206a6d=_0x291aa1;return logger[_0x206a6d('0x1b')](_0x206a6d('0x6'),_0x2bd945),request({'form':{'method':'get_entry_list','input_type':_0x206a6d('0x7'),'response_type':'JSON','rest_data':JSON['stringify']({'session':_0x27fae6['id'],'module_name':_0x206a6d('0x2c'),'query':util[_0x206a6d('0x12')](_0x206a6d('0x3e'),_0x2bd945),'order_by':'','offset':'0','select_fields':['id',_0x206a6d('0x32'),_0x206a6d('0x4d')],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})['then'](function(_0x20b455){const _0xb658c9=_0x206a6d;if(_0x20b455[_0xb658c9('0x5b')][_0xb658c9('0x52')]){const _0x2d3cc3=_[_0xb658c9('0x47')](_0x20b455[_0xb658c9('0x5b')],function(_0x93273e){const _0x260fd4=_0xb658c9;return _0x93273e[_0x260fd4('0x20')][_0x260fd4('0x4d')][_0x260fd4('0x4b')]===_0x2bd945;});if(_0x2d3cc3)return logger[_0xb658c9('0x1b')](_0xb658c9('0x3f')),Promise['resolve']({'id':_0x2d3cc3[_0xb658c9('0x20')]['id']['value'],'name':_0x2d3cc3[_0xb658c9('0x20')][_0xb658c9('0x32')][_0xb658c9('0x4b')],'phone':_0x2d3cc3[_0xb658c9('0x20')][_0xb658c9('0x4d')][_0xb658c9('0x4b')]});}else return logger[_0xb658c9('0x1b')](_0xb658c9('0x2a')),request({'form':{'method':_0xb658c9('0x48'),'input_type':_0xb658c9('0x7'),'response_type':_0xb658c9('0x7'),'rest_data':JSON[_0xb658c9('0x3c')]({'session':_0x27fae6['id'],'module_name':_0xb658c9('0x2c'),'name_value_list':[{'name':'first_name','value':_0x46f79f!==_0xb658c9('0x67')?_0x46f79f:util[_0xb658c9('0x12')](_0xb658c9('0x2d'),_0x2bd945)},{'name':_0xb658c9('0x4d'),'value':_0x2bd945}]})}})[_0xb658c9('0x4e')](function(_0x4ddefe){const _0x10336b=_0xb658c9;return logger['info'](_0x10336b('0x3')),Promise[_0x10336b('0x46')]({'id':_0x4ddefe['id'],'name':_0x4ddefe[_0x10336b('0x5b')][_0x10336b('0x3d')][_0x10336b('0x4b')],'phone':_0x4ddefe[_0x10336b('0x5b')][_0x10336b('0x4d')][_0x10336b('0x4b')]});});});}function request(_0x4c4d17){const _0x4b2538=_0x291aa1;return logger[_0x4b2538('0x9')](_0x4b2538('0x34'),JSON['stringify'](_0x4c4d17)),rp(_['merge'](def,_0x4c4d17));}function getConnection(_0x52e50c){const _0x375288=_0x291aa1;return request({'method':'POST','form':{'method':_0x375288('0x63'),'input_type':_0x375288('0x7'),'response_type':'JSON','rest_data':JSON['stringify']({'user_auth':{'user_name':_0x52e50c[_0x375288('0x39')],'password':_0x52e50c[_0x375288('0x1a')],'encryption':_0x375288('0x1')},'application':_0x375288('0x24')})}})[_0x375288('0x4e')](function(_0x5efc26){const _0x11a5c4=_0x375288,_0x2f8770=_0x5efc26;if(_0x2f8770['id'])return def[_0x11a5c4('0x4f')]=_0x2f8770['id'],Promise[_0x11a5c4('0x46')](_0x2f8770);else throw new Error(util[_0x11a5c4('0x12')]('Account\x20%d\x20is\x20not\x20valid',_0x52e50c['id']));});}function setRelationship(_0x362a7d,_0x40d2dd,_0x359fb8,_0x4f042e){const _0x9a9fa3=_0x291aa1;return request({'form':{'method':_0x9a9fa3('0x13'),'input_type':_0x9a9fa3('0x7'),'response_type':_0x9a9fa3('0x7'),'rest_data':JSON['stringify']({'session':_0x362a7d['id'],'module_name':'Calls','module_id':_0x359fb8['id'],'link_field_name':_0x4f042e,'related_ids':[_0x40d2dd['id']]})}});}exports[_0x291aa1('0x33')]=function(_0x43a695,_0x2f08cf,_0x3e4b20,_0x57a3fe,_0x37ad76,_0x4d0753){const _0x4552b7=_0x291aa1;let _0x523a61,_0x4915a3,_0x403f99,_0x34d726;return _0x4d0753[_0x4552b7('0x55')]=intUtil[_0x4552b7('0x0')](_0x4d0753['remoteUri']),_0x4d0753[_0x4552b7('0x57')]=intUtil['stripTrailingSlash'](_0x4d0753[_0x4552b7('0x57')]),def['uri']=util[_0x4552b7('0x12')](_0x4552b7('0x4'),_0x4d0753[_0x4552b7('0x55')]),_0x37ad76&&_0x37ad76[_0x4552b7('0x31')]?(logger['info'](_0x4552b7('0xb'),_0x4552b7('0x29')),_0x2f08cf[_0x4552b7('0xd')]=util[_0x4552b7('0x12')](_0x4552b7('0x1d'),_0x4d0753[_0x4552b7('0x57')],_0x2f08cf[_0x4552b7('0x18')],md5(_0x2f08cf[_0x4552b7('0x18')]))):_0x2f08cf[_0x4552b7('0xd')]='',getConnection(_0x4d0753)[_0x4552b7('0x4e')](function(_0x418e41){const _0x14d1ed=_0x4552b7;return _0x34d726=_0x418e41,getUser(_0x4d0753,_0x57a3fe[_0x14d1ed('0x32')],_0x34d726);})['then'](function(_0x5120ca){const _0x47c1af=_0x4552b7;return _0x523a61=_0x5120ca,logger[_0x47c1af('0x1b')](_0x47c1af('0x5c'),_0x523a61['id']),getEndUser(_0x4d0753,_0x2f08cf[_0x47c1af('0x17')],_0x2f08cf[_0x47c1af('0x28')],_0x34d726);})[_0x4552b7('0x4e')](function(_0x213aae){const _0x183775=_0x4552b7;return _0x4915a3=_0x213aae,logger[_0x183775('0x1b')](_0x183775('0x36'),_0x4915a3['id']),getTicket(_0x4d0753,_0x523a61,_0x4915a3,_0x3e4b20,_0x2f08cf,_0x3e4b20['Fields'],_0x34d726,_0x183775('0x56'));})['then'](function(_0xbe5534){const _0x4b5756=_0x4552b7;return _0x403f99=_0xbe5534,logger[_0x4b5756('0x1b')](_0x4b5756('0x15')),logger[_0x4b5756('0x1b')](_0x4b5756('0x61'),_0x403f99['id']),setRelationship(_0x34d726,_0x523a61,_0x403f99,'users');})['then'](function(){const _0x1d0089=_0x4552b7;return setRelationship(_0x34d726,_0x4915a3,_0x403f99,_0x1d0089('0x26'));})['then'](function(){return getServerInfo(_0x34d726);})[_0x4552b7('0x4e')](function(_0xfb1956){const _0x3c8845=_0x4552b7,_0x280c11=parseInt(_0xfb1956[_0x3c8845('0xe')]['charAt'](0x0));let _0x3aef30=util['format'](_0x3c8845('0x23'),_0x4d0753['remoteUri'],_0x403f99['id']);_0x280c11>0x6&&(_0x3aef30=util[_0x3c8845('0x12')](_0x3c8845('0x3a'),_0x4d0753[_0x3c8845('0x55')],_0x403f99['id'])),logger['info'](_0x3c8845('0xb'),_0x3c8845('0x1c')),emit(util[_0x3c8845('0x12')]('user:%s',_0x57a3fe[_0x3c8845('0x32')]),_0x3c8845('0x21'),{'uri':_0x3aef30});})['catch'](function(_0x335ca5){const _0x5eb01f=_0x4552b7;logger[_0x5eb01f('0x50')](_0x5eb01f('0xb'),JSON[_0x5eb01f('0x3c')](_0x335ca5));});},exports[_0x291aa1('0x1e')]=function(_0x375ab8,_0x579317,_0x3f31bf,_0x340bae,_0x28c964,_0x58977c,_0x298a9f){const _0x3e5d91=_0x291aa1;let _0x44764c,_0x3a2b36,_0x51fbfa,_0x39be3c;return _0x58977c[_0x3e5d91('0x55')]=intUtil['stripTrailingSlash'](_0x58977c[_0x3e5d91('0x55')]),_0x58977c[_0x3e5d91('0x57')]=intUtil[_0x3e5d91('0x0')](_0x58977c[_0x3e5d91('0x57')]),def[_0x3e5d91('0x4c')]=util[_0x3e5d91('0x12')](_0x3e5d91('0x4'),_0x58977c[_0x3e5d91('0x55')]),_0x298a9f&&_0x298a9f[_0x3e5d91('0x1f')]&&_0x298a9f[_0x3e5d91('0x1f')]!==_0x3e5d91('0xc')&&(logger[_0x3e5d91('0x1b')]('[OUTBOUND]',_0x3e5d91('0x29')),_0x579317[_0x3e5d91('0xd')]=util[_0x3e5d91('0x12')](_0x3e5d91('0x1d'),_0x58977c[_0x3e5d91('0x57')],_0x579317[_0x3e5d91('0x18')],md5(_0x579317['uniqueid']))),getConnection(_0x58977c)[_0x3e5d91('0x4e')](function(_0x510371){const _0x244b59=_0x3e5d91;return _0x39be3c=_0x510371,getUser(_0x58977c,_0x340bae[_0x244b59('0x32')],_0x39be3c);})[_0x3e5d91('0x4e')](function(_0x26eb42){const _0x1aa215=_0x3e5d91;return _0x44764c=_0x26eb42,logger['info'](_0x1aa215('0x5c'),_0x44764c['id']),getEndUser(_0x58977c,_0x579317[_0x1aa215('0x62')],_0x579317[_0x1aa215('0x45')],_0x39be3c);})[_0x3e5d91('0x4e')](function(_0x31f36a){const _0x121caf=_0x3e5d91;return _0x3a2b36=_0x31f36a,logger[_0x121caf('0x1b')]('The\x20Enduser\x20ID\x20is:',_0x3a2b36['id']),getTicket(_0x58977c,_0x44764c,_0x3a2b36,_0x3f31bf,_0x579317,_0x3f31bf['Fields'],_0x39be3c,'Outbound');})[_0x3e5d91('0x4e')](function(_0x207126){const _0xe98777=_0x3e5d91;return _0x51fbfa=_0x207126,logger[_0xe98777('0x1b')](_0xe98777('0x15')),logger[_0xe98777('0x1b')]('The\x20Ticket\x20ID\x20is:',_0x51fbfa['id']),setRelationship(_0x39be3c,_0x44764c,_0x51fbfa,_0xe98777('0x10'));})['then'](function(){const _0x3997f7=_0x3e5d91;return setRelationship(_0x39be3c,_0x3a2b36,_0x51fbfa,_0x3997f7('0x26'));})[_0x3e5d91('0x4e')](function(){return getServerInfo(_0x39be3c);})['then'](function(_0x158a84){const _0x6a3aab=_0x3e5d91,_0x2448fb=parseInt(_0x158a84['version'][_0x6a3aab('0x11')](0x0));let _0x350ee8=util[_0x6a3aab('0x12')](_0x6a3aab('0x23'),_0x58977c[_0x6a3aab('0x55')],_0x51fbfa['id']);_0x2448fb>0x6&&(_0x350ee8=util[_0x6a3aab('0x12')](_0x6a3aab('0x3a'),_0x58977c['remoteUri'],_0x51fbfa['id'])),logger['info'](_0x6a3aab('0x42'),_0x6a3aab('0x1c')),emit(util[_0x6a3aab('0x12')](_0x6a3aab('0x3b'),_0x340bae[_0x6a3aab('0x32')]),_0x6a3aab('0x21'),{'uri':_0x350ee8});})['catch'](function(_0x5f599e){const _0x4bfc62=_0x3e5d91;logger['error'](_0x4bfc62('0x42'),JSON['stringify'](_0x5f599e));});},exports[_0x291aa1('0x2b')]=function(_0x152b14,_0x1b60f7,_0x4eb16a,_0x20fe09,_0x41aef2,_0x2c2218){const _0x5647e0=_0x291aa1;let _0x1b0661,_0x46869a,_0x152723,_0x3a10e1;return _0x2c2218['remoteUri']=intUtil[_0x5647e0('0x0')](_0x2c2218[_0x5647e0('0x55')]),_0x2c2218[_0x5647e0('0x57')]=intUtil[_0x5647e0('0x0')](_0x2c2218[_0x5647e0('0x57')]),def[_0x5647e0('0x4c')]=util[_0x5647e0('0x12')](_0x5647e0('0x4'),_0x2c2218[_0x5647e0('0x55')]),_0x41aef2&&_0x41aef2[_0x5647e0('0x31')]?(logger[_0x5647e0('0x1b')]('['+_0x1b60f7[_0x5647e0('0x38')]['toUpperCase']()+']',_0x5647e0('0x29')),_0x1b60f7[_0x5647e0('0xd')]=util[_0x5647e0('0x12')](_0x5647e0('0x1d'),_0x2c2218[_0x5647e0('0x57')],_0x1b60f7[_0x5647e0('0x18')],md5(_0x1b60f7['uniqueid']))):_0x1b60f7[_0x5647e0('0xd')]='',getConnection(_0x2c2218)[_0x5647e0('0x4e')](function(_0x4e73b7){const _0x4862e4=_0x5647e0;return _0x3a10e1=_0x4e73b7,!_[_0x4862e4('0x5a')](_0x20fe09)?getUser(_0x2c2218,_0x20fe09[_0x4862e4('0x32')],_0x3a10e1):getUser(_0x2c2218,null,_0x3a10e1);})[_0x5647e0('0x4e')](function(_0x39de40){const _0x2f9342=_0x5647e0;return _0x1b0661=_0x39de40,logger[_0x2f9342('0x1b')](_0x2f9342('0x5c'),_0x1b0661['id']),getEndUser(_0x2c2218,_0x1b60f7['calleridname'],_0x1b60f7[_0x2f9342('0x28')],_0x3a10e1);})[_0x5647e0('0x4e')](function(_0x4a8d14){const _0xf16c66=_0x5647e0;return _0x46869a=_0x4a8d14,logger['info'](_0xf16c66('0x36'),_0x46869a['id']),getTicket(_0x2c2218,_0x1b0661,_0x46869a,_0x4eb16a,_0x1b60f7,_0x4eb16a[_0xf16c66('0x35')],_0x3a10e1,_0xf16c66('0x56'));})['then'](function(_0xc0a515){const _0x29e164=_0x5647e0;return _0x152723=_0xc0a515,logger['info'](_0x29e164('0x15')),logger['info'](_0x29e164('0x61'),_0x152723['id']),setRelationship(_0x3a10e1,_0x1b0661,_0x152723,_0x29e164('0x10'));})[_0x5647e0('0x4e')](function(){const _0x51f8be=_0x5647e0;return setRelationship(_0x3a10e1,_0x46869a,_0x152723,_0x51f8be('0x26'));})[_0x5647e0('0x4e')](function(){return getServerInfo(_0x3a10e1);})[_0x5647e0('0x16')](function(_0x559290){const _0xc58ba9=_0x5647e0;logger[_0xc58ba9('0x50')]('['+_0x1b60f7[_0xc58ba9('0x38')]['toUpperCase']()+']',JSON[_0xc58ba9('0x3c')](_0x559290));});}; \ No newline at end of file +const a1142_0x8628=['entry_list','recordingFormat','Creating\x20new\x20ticket...','The\x20Ticket\x20ID\x20is:','remoteUri','user:%s','Recording\x20is\x20enabled!','../../../../rediscache','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','The\x20User\x20ID\x20is:','created_by','merge','The\x20Enduser\x20ID\x20is:','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','outbound','serverUrl','Enduser\x20created.','Enduser\x20found!','[HTTP]','[OUTBOUND]','slice','length','catch','emit','Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!','set_entry','./util','stringify','info','monitor_format','Caller\x20-\x20%s','queue','../../../../config/logger','Ticket\x20created!','stripTrailingSlash','password','Fields','uniqueid','idField','lastevent','description','then','name_value_list','isNil','forEach','toUpperCase','Employees','[QUEUE]','sessionID','request-promise-native','%s/service/v4_1/rest.php','duration_hours','contacts','Contacts','getString','variableName','calleridname','replace','recordingURL','format','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','lodash','duration_minutes','Account\x20%d\x20is\x20not\x20valid','first_name','name','trigger:browser:url','sugarcrm','parent_type','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','get_entry_list','Agent\x20found!','users','charAt','calleridnum','value','xCALLY\x20Motion\x20integration','Calls','find','destcalleridname','uri','Subjects','username','Searching\x20enduser\x20with\x20phone','resolve','version','INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200','Descriptions','push','POST','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','unmanaged','debug','Inbound','util','user_name','Getting\x20agent\x20with\x20name','none','md5','error','phone_home','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','set_relationship','JSON'];(function(_0xb452b2,_0x8628f8){const _0x94f3c0=function(_0x14a114){while(--_0x14a114){_0xb452b2['push'](_0xb452b2['shift']());}};_0x94f3c0(++_0x8628f8);}(a1142_0x8628,0xc2));const a1142_0x94f3=function(_0xb452b2,_0x8628f8){_0xb452b2=_0xb452b2-0x0;let _0x94f3c0=a1142_0x8628[_0xb452b2];return _0x94f3c0;};const _0x451246=a1142_0x94f3;'use strict';const _=require(_0x451246('0x4b')),rp=require(_0x451246('0x3f')),md5=require(_0x451246('0x8')),util=require(_0x451246('0x4')),intUtil=require(_0x451246('0x28')),logger=require(_0x451246('0x2e'))(_0x451246('0x51')),{getSocket}=require(_0x451246('0x15')),io=getSocket(),def={'method':_0x451246('0x67'),'json':!![]};function emit(_0x14a114,_0xa9c942,_0x443907){const _0x47afb0=_0x451246;io['to'](_0x14a114)[_0x47afb0('0x25')](_0xa9c942,_0x443907);}function getTicket(_0x172768,_0x54dda3,_0x238438,_0x3315a4,_0x469af3,_0x37fdfe,_0x52e018,_0x54eb45){const _0x17d4c3=_0x451246;logger['info'](_0x17d4c3('0x10'));const _0xd97e60=new Date(),_0x422647=[{'name':_0x17d4c3('0x4f'),'value':intUtil[_0x17d4c3('0x44')](_0x3315a4[_0x17d4c3('0x5f')],_0x469af3,'\x20')},{'name':'assigned_user_id','value':_0x54dda3['id']},{'name':_0x17d4c3('0x18'),'value':_0x54dda3['id']},{'name':_0x17d4c3('0x36'),'value':intUtil[_0x17d4c3('0x44')](_0x3315a4[_0x17d4c3('0x65')],_0x469af3,'\x0a')},{'name':'date_start','value':_0xd97e60['toISOString']()[_0x17d4c3('0x22')](0x0,0x13)[_0x17d4c3('0x47')]('T','\x20')},{'name':_0x17d4c3('0x41'),'value':'0'},{'name':_0x17d4c3('0x4c'),'value':'15'},{'name':'parent_id','value':_0x238438['id']},{'name':_0x17d4c3('0x52'),'value':'Contacts'},{'name':'parent_name','value':_0x238438['name']},{'name':'direction','value':_0x54eb45}];return _0x37fdfe[_0x17d4c3('0x23')]&&_[_0x17d4c3('0x3a')](_0x37fdfe,function(_0x1b95ce){const _0x12600e=_0x17d4c3;_0x469af3[_0x1b95ce['variableName']]&&_0x422647[_0x12600e('0x66')]({'name':_0x1b95ce[_0x12600e('0x34')],'value':_0x469af3[_0x1b95ce[_0x12600e('0x45')]]});}),request({'form':{'method':_0x17d4c3('0x27'),'input_type':_0x17d4c3('0xd'),'response_type':'JSON','rest_data':JSON[_0x17d4c3('0x29')]({'session':_0x52e018['id'],'module_name':_0x17d4c3('0x5b'),'name_value_list':_0x422647})}});}function getServerInfo(_0x117473){const _0x510bec=_0x451246;return request({'form':{'method':'get_server_info','input_type':_0x510bec('0xd'),'response_type':_0x510bec('0xd'),'rest_data':JSON['stringify']({'session':_0x117473['id']})}});}function getUser(_0x59ef8f,_0x4bf951,_0x285271){const _0x23017c=_0x451246;return!_['isNil'](_0x4bf951)?(logger[_0x23017c('0x2a')](_0x23017c('0x6'),_0x4bf951),request({'form':{'method':_0x23017c('0x54'),'input_type':_0x23017c('0xd'),'response_type':_0x23017c('0xd'),'rest_data':JSON[_0x23017c('0x29')]({'session':_0x285271['id'],'module_name':_0x23017c('0x3c'),'query':util[_0x23017c('0x49')](_0x23017c('0x64'),_0x4bf951),'order_by':'','offset':'0','select_fields':['id','name',_0x23017c('0x5')],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x23017c('0x37')](function(_0x11a8d9){const _0x5290e5=_0x23017c;if(_0x11a8d9[_0x5290e5('0xe')]['length']){const _0x5a9503=_['find'](_0x11a8d9[_0x5290e5('0xe')],function(_0x194644){const _0x470910=_0x5290e5;return _0x194644['name_value_list'][_0x470910('0x5')]['value']===_0x4bf951;});if(_0x5a9503)return logger[_0x5290e5('0x2a')](_0x5290e5('0x55')),Promise[_0x5290e5('0x62')]({'id':_0x5a9503['name_value_list']['id'][_0x5290e5('0x59')],'name':_0x5a9503['name_value_list'][_0x5290e5('0x4f')][_0x5290e5('0x59')]});}return logger[_0x5290e5('0x2a')](_0x5290e5('0x4a')),Promise[_0x5290e5('0x62')]({'id':_0x285271[_0x5290e5('0x38')]['user_id'][_0x5290e5('0x59')],'name':_0x285271[_0x5290e5('0x38')][_0x5290e5('0x5')]['value']});})):(logger['info'](_0x23017c('0x26')),Promise[_0x23017c('0x62')]({'id':_0x285271[_0x23017c('0x38')]['user_id']['value'],'name':_0x285271[_0x23017c('0x38')][_0x23017c('0x5')][_0x23017c('0x59')]}));}function getEndUser(_0xb7944d,_0x16a11a,_0x29bec7,_0x3e959d){const _0x200f8b=_0x451246;return logger['info'](_0x200f8b('0x61'),_0x29bec7),request({'form':{'method':_0x200f8b('0x54'),'input_type':_0x200f8b('0xd'),'response_type':_0x200f8b('0xd'),'rest_data':JSON[_0x200f8b('0x29')]({'session':_0x3e959d['id'],'module_name':_0x200f8b('0x43'),'query':util[_0x200f8b('0x49')]('contacts.phone_home\x20=\x20\x22%s\x22',_0x29bec7),'order_by':'','offset':'0','select_fields':['id','name','phone_home'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x200f8b('0x37')](function(_0x553c6e){const _0x4cc165=_0x200f8b;if(_0x553c6e[_0x4cc165('0xe')][_0x4cc165('0x23')]){const _0x53cbd5=_[_0x4cc165('0x5c')](_0x553c6e['entry_list'],function(_0x28b70d){const _0x36d343=_0x4cc165;return _0x28b70d['name_value_list'][_0x36d343('0xa')]['value']===_0x29bec7;});if(_0x53cbd5)return logger[_0x4cc165('0x2a')](_0x4cc165('0x1f')),Promise[_0x4cc165('0x62')]({'id':_0x53cbd5[_0x4cc165('0x38')]['id'][_0x4cc165('0x59')],'name':_0x53cbd5[_0x4cc165('0x38')][_0x4cc165('0x4f')][_0x4cc165('0x59')],'phone':_0x53cbd5['name_value_list'][_0x4cc165('0xa')][_0x4cc165('0x59')]});}else return logger[_0x4cc165('0x2a')](_0x4cc165('0x16')),request({'form':{'method':_0x4cc165('0x27'),'input_type':_0x4cc165('0xd'),'response_type':_0x4cc165('0xd'),'rest_data':JSON[_0x4cc165('0x29')]({'session':_0x3e959d['id'],'module_name':'Contacts','name_value_list':[{'name':'first_name','value':_0x16a11a!==''?_0x16a11a:util[_0x4cc165('0x49')](_0x4cc165('0x2c'),_0x29bec7)},{'name':'phone_home','value':_0x29bec7}]})}})[_0x4cc165('0x37')](function(_0x76d6d8){const _0xfa25b8=_0x4cc165;return logger[_0xfa25b8('0x2a')](_0xfa25b8('0x1e')),Promise['resolve']({'id':_0x76d6d8['id'],'name':_0x76d6d8[_0xfa25b8('0xe')][_0xfa25b8('0x4e')][_0xfa25b8('0x59')],'phone':_0x76d6d8[_0xfa25b8('0xe')]['phone_home'][_0xfa25b8('0x59')]});});});}function request(_0x58a8e7){const _0x2e10e5=_0x451246;return logger[_0x2e10e5('0x2')](_0x2e10e5('0x20'),JSON['stringify'](_0x58a8e7)),rp(_[_0x2e10e5('0x19')](def,_0x58a8e7));}function getConnection(_0x591178){const _0x3d5d5f=_0x451246;return request({'method':_0x3d5d5f('0x67'),'form':{'method':'login','input_type':_0x3d5d5f('0xd'),'response_type':'JSON','rest_data':JSON['stringify']({'user_auth':{'user_name':_0x591178[_0x3d5d5f('0x60')],'password':_0x591178[_0x3d5d5f('0x31')],'encryption':'PLAIN'},'application':_0x3d5d5f('0x5a')})}})[_0x3d5d5f('0x37')](function(_0x5ccdc5){const _0x357980=_0x3d5d5f,_0x401e9d=_0x5ccdc5;if(_0x401e9d['id'])return def[_0x357980('0x3e')]=_0x401e9d['id'],Promise['resolve'](_0x401e9d);else throw new Error(util['format'](_0x357980('0x4d'),_0x591178['id']));});}function setRelationship(_0x27c24c,_0x14394b,_0x42a672,_0x54ba88){const _0x22726f=_0x451246;return request({'form':{'method':_0x22726f('0xc'),'input_type':_0x22726f('0xd'),'response_type':_0x22726f('0xd'),'rest_data':JSON[_0x22726f('0x29')]({'session':_0x27c24c['id'],'module_name':_0x22726f('0x5b'),'module_id':_0x42a672['id'],'link_field_name':_0x54ba88,'related_ids':[_0x14394b['id']]})}});}exports[_0x451246('0x2d')]=function(_0x352de0,_0x11ffe5,_0xec2463,_0x21dc25,_0x1f9175,_0x4714ef){const _0xc9809=_0x451246;let _0x45e7ad,_0x232a29,_0x581d3e,_0x51b6de;return _0x4714ef['remoteUri']=intUtil[_0xc9809('0x30')](_0x4714ef['remoteUri']),_0x4714ef[_0xc9809('0x1d')]=intUtil[_0xc9809('0x30')](_0x4714ef['serverUrl']),def[_0xc9809('0x5e')]=util[_0xc9809('0x49')](_0xc9809('0x40'),_0x4714ef[_0xc9809('0x12')]),_0x1f9175&&_0x1f9175[_0xc9809('0x2b')]?(logger[_0xc9809('0x2a')](_0xc9809('0x3d'),_0xc9809('0x14')),_0x11ffe5['recordingURL']=util['format'](_0xc9809('0xb'),_0x4714ef[_0xc9809('0x1d')],_0x11ffe5[_0xc9809('0x33')],md5(_0x11ffe5['uniqueid']))):_0x11ffe5[_0xc9809('0x48')]='',getConnection(_0x4714ef)[_0xc9809('0x37')](function(_0x429081){return _0x51b6de=_0x429081,getUser(_0x4714ef,_0x21dc25['name'],_0x51b6de);})['then'](function(_0x1aa398){const _0x2ebc8e=_0xc9809;return _0x45e7ad=_0x1aa398,logger[_0x2ebc8e('0x2a')](_0x2ebc8e('0x17'),_0x45e7ad['id']),getEndUser(_0x4714ef,_0x11ffe5[_0x2ebc8e('0x46')],_0x11ffe5[_0x2ebc8e('0x58')],_0x51b6de);})['then'](function(_0x232745){const _0x4c3fb7=_0xc9809;return _0x232a29=_0x232745,logger[_0x4c3fb7('0x2a')]('The\x20Enduser\x20ID\x20is:',_0x232a29['id']),getTicket(_0x4714ef,_0x45e7ad,_0x232a29,_0xec2463,_0x11ffe5,_0xec2463['Fields'],_0x51b6de,_0x4c3fb7('0x3'));})[_0xc9809('0x37')](function(_0x24020c){const _0x1d1b83=_0xc9809;return _0x581d3e=_0x24020c,logger[_0x1d1b83('0x2a')]('Ticket\x20created!'),logger[_0x1d1b83('0x2a')](_0x1d1b83('0x11'),_0x581d3e['id']),setRelationship(_0x51b6de,_0x45e7ad,_0x581d3e,_0x1d1b83('0x56'));})[_0xc9809('0x37')](function(){const _0x10787b=_0xc9809;return setRelationship(_0x51b6de,_0x232a29,_0x581d3e,_0x10787b('0x42'));})[_0xc9809('0x37')](function(){return getServerInfo(_0x51b6de);})[_0xc9809('0x37')](function(_0x43c424){const _0x1172c4=_0xc9809,_0x1bc2d0=parseInt(_0x43c424[_0x1172c4('0x63')][_0x1172c4('0x57')](0x0));let _0x42d91d=util[_0x1172c4('0x49')](_0x1172c4('0x0'),_0x4714ef['remoteUri'],_0x581d3e['id']);_0x1bc2d0>0x6&&(_0x42d91d=util[_0x1172c4('0x49')](_0x1172c4('0x1b'),_0x4714ef[_0x1172c4('0x12')],_0x581d3e['id'])),logger[_0x1172c4('0x2a')]('[QUEUE]',_0x1172c4('0x53')),emit(util['format'](_0x1172c4('0x13'),_0x21dc25[_0x1172c4('0x4f')]),_0x1172c4('0x50'),{'uri':_0x42d91d});})[_0xc9809('0x24')](function(_0x1764a5){const _0x37ecb5=_0xc9809;logger[_0x37ecb5('0x9')](_0x37ecb5('0x3d'),JSON['stringify'](_0x1764a5));});},exports[_0x451246('0x1c')]=function(_0x2ac2d4,_0x5a886a,_0x466699,_0x268ae8,_0x386001,_0x215694,_0x27b87f){const _0x126a10=_0x451246;let _0x410b18,_0x1efc33,_0x1d44fd,_0x1d618e;return _0x215694['remoteUri']=intUtil[_0x126a10('0x30')](_0x215694[_0x126a10('0x12')]),_0x215694['serverUrl']=intUtil[_0x126a10('0x30')](_0x215694[_0x126a10('0x1d')]),def[_0x126a10('0x5e')]=util[_0x126a10('0x49')](_0x126a10('0x40'),_0x215694[_0x126a10('0x12')]),_0x27b87f&&_0x27b87f[_0x126a10('0xf')]&&_0x27b87f['recordingFormat']!==_0x126a10('0x7')&&(logger[_0x126a10('0x2a')]('[OUTBOUND]','Recording\x20is\x20enabled!'),_0x5a886a[_0x126a10('0x48')]=util[_0x126a10('0x49')](_0x126a10('0xb'),_0x215694[_0x126a10('0x1d')],_0x5a886a[_0x126a10('0x33')],md5(_0x5a886a[_0x126a10('0x33')]))),getConnection(_0x215694)[_0x126a10('0x37')](function(_0x5a5c9c){const _0x27ee61=_0x126a10;return _0x1d618e=_0x5a5c9c,getUser(_0x215694,_0x268ae8[_0x27ee61('0x4f')],_0x1d618e);})[_0x126a10('0x37')](function(_0x3bae18){const _0x2b4e8c=_0x126a10;return _0x410b18=_0x3bae18,logger[_0x2b4e8c('0x2a')](_0x2b4e8c('0x17'),_0x410b18['id']),getEndUser(_0x215694,_0x5a886a[_0x2b4e8c('0x5d')],_0x5a886a['destcalleridnum'],_0x1d618e);})[_0x126a10('0x37')](function(_0x166a3e){const _0x52b395=_0x126a10;return _0x1efc33=_0x166a3e,logger[_0x52b395('0x2a')](_0x52b395('0x1a'),_0x1efc33['id']),getTicket(_0x215694,_0x410b18,_0x1efc33,_0x466699,_0x5a886a,_0x466699['Fields'],_0x1d618e,'Outbound');})[_0x126a10('0x37')](function(_0xb1cf84){const _0x321f71=_0x126a10;return _0x1d44fd=_0xb1cf84,logger['info'](_0x321f71('0x2f')),logger[_0x321f71('0x2a')](_0x321f71('0x11'),_0x1d44fd['id']),setRelationship(_0x1d618e,_0x410b18,_0x1d44fd,_0x321f71('0x56'));})[_0x126a10('0x37')](function(){const _0xe7786e=_0x126a10;return setRelationship(_0x1d618e,_0x1efc33,_0x1d44fd,_0xe7786e('0x42'));})['then'](function(){return getServerInfo(_0x1d618e);})[_0x126a10('0x37')](function(_0x245961){const _0x19b498=_0x126a10,_0x23cbcf=parseInt(_0x245961[_0x19b498('0x63')]['charAt'](0x0));let _0xb47150=util[_0x19b498('0x49')](_0x19b498('0x0'),_0x215694[_0x19b498('0x12')],_0x1d44fd['id']);_0x23cbcf>0x6&&(_0xb47150=util[_0x19b498('0x49')](_0x19b498('0x1b'),_0x215694['remoteUri'],_0x1d44fd['id'])),logger[_0x19b498('0x2a')](_0x19b498('0x21'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x19b498('0x49')]('user:%s',_0x268ae8[_0x19b498('0x4f')]),_0x19b498('0x50'),{'uri':_0xb47150});})[_0x126a10('0x24')](function(_0x574b1a){const _0x50fe99=_0x126a10;logger[_0x50fe99('0x9')]('[OUTBOUND]',JSON['stringify'](_0x574b1a));});},exports[_0x451246('0x1')]=function(_0xe2e230,_0x204395,_0x4bf144,_0x7d4f7c,_0x138f04,_0x3ac86f){const _0x160356=_0x451246;let _0x4d00eb,_0x4725b8,_0x5102ba,_0xe81f32;return _0x3ac86f[_0x160356('0x12')]=intUtil[_0x160356('0x30')](_0x3ac86f[_0x160356('0x12')]),_0x3ac86f['serverUrl']=intUtil[_0x160356('0x30')](_0x3ac86f[_0x160356('0x1d')]),def[_0x160356('0x5e')]=util[_0x160356('0x49')]('%s/service/v4_1/rest.php',_0x3ac86f[_0x160356('0x12')]),_0x138f04&&_0x138f04[_0x160356('0x2b')]?(logger[_0x160356('0x2a')]('['+_0x204395[_0x160356('0x35')][_0x160356('0x3b')]()+']',_0x160356('0x14')),_0x204395[_0x160356('0x48')]=util[_0x160356('0x49')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x3ac86f[_0x160356('0x1d')],_0x204395[_0x160356('0x33')],md5(_0x204395['uniqueid']))):_0x204395['recordingURL']='',getConnection(_0x3ac86f)[_0x160356('0x37')](function(_0x4c2483){const _0x202e0c=_0x160356;return _0xe81f32=_0x4c2483,!_[_0x202e0c('0x39')](_0x7d4f7c)?getUser(_0x3ac86f,_0x7d4f7c[_0x202e0c('0x4f')],_0xe81f32):getUser(_0x3ac86f,null,_0xe81f32);})[_0x160356('0x37')](function(_0x572491){const _0x3a8307=_0x160356;return _0x4d00eb=_0x572491,logger[_0x3a8307('0x2a')](_0x3a8307('0x17'),_0x4d00eb['id']),getEndUser(_0x3ac86f,_0x204395['calleridname'],_0x204395['calleridnum'],_0xe81f32);})['then'](function(_0x2ccf39){const _0x23274b=_0x160356;return _0x4725b8=_0x2ccf39,logger[_0x23274b('0x2a')](_0x23274b('0x1a'),_0x4725b8['id']),getTicket(_0x3ac86f,_0x4d00eb,_0x4725b8,_0x4bf144,_0x204395,_0x4bf144[_0x23274b('0x32')],_0xe81f32,_0x23274b('0x3'));})[_0x160356('0x37')](function(_0x51b06e){const _0x401704=_0x160356;return _0x5102ba=_0x51b06e,logger[_0x401704('0x2a')](_0x401704('0x2f')),logger[_0x401704('0x2a')](_0x401704('0x11'),_0x5102ba['id']),setRelationship(_0xe81f32,_0x4d00eb,_0x5102ba,_0x401704('0x56'));})['then'](function(){return setRelationship(_0xe81f32,_0x4725b8,_0x5102ba,'contacts');})[_0x160356('0x37')](function(){return getServerInfo(_0xe81f32);})['catch'](function(_0x1c8af4){const _0x3a7700=_0x160356;logger['error']('['+_0x204395[_0x3a7700('0x35')][_0x3a7700('0x3b')]()+']',JSON[_0x3a7700('0x29')](_0x1c8af4));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/util.js b/server/services/ami/trigger/integration/util.js index 26a01ea..40d4a92 100644 --- a/server/services/ami/trigger/integration/util.js +++ b/server/services/ami/trigger/integration/util.js @@ -1 +1 @@ -const a1143_0x80c3=['validateEmail','keyType','substring','slice','getString','toLowerCase','customVariable','format','string','variableName','key','length','type','toString','lastIndexOf','Variable','keyContent','keyValue','stripTrailingSlash','name','content','variable','util','%s:\x20%s','push','test','lodash'];(function(_0x3ce417,_0x80c347){const _0x4d433f=function(_0x2411c5){while(--_0x2411c5){_0x3ce417['push'](_0x3ce417['shift']());}};_0x4d433f(++_0x80c347);}(a1143_0x80c3,0xc0));const a1143_0x4d43=function(_0x3ce417,_0x80c347){_0x3ce417=_0x3ce417-0x0;let _0x4d433f=a1143_0x80c3[_0x3ce417];return _0x4d433f;};const _0x2ce36e=a1143_0x4d43;'use strict';const _=require(_0x2ce36e('0x17')),util=require(_0x2ce36e('0x13'));exports[_0x2ce36e('0x1')]=function(_0x2411c5,_0x556f3b,_0x497ab7){const _0x415a4d=_0x2ce36e,_0x49f3af=[];if(_0x2411c5[_0x415a4d('0x8')]>0x0){const _0xb103b2=_['sortBy'](_0x2411c5,['id']);for(let _0x2141c7=0x0;_0x2141c7<_0xb103b2[_0x415a4d('0x8')];_0x2141c7++){const _0x1af258=_0xb103b2[_0x2141c7];if(_0x1af258[_0x415a4d('0x9')]===_0x415a4d('0x5'))_0x49f3af[_0x415a4d('0x15')](_0x1af258[_0x415a4d('0x11')]);else{if(_0x1af258[_0x415a4d('0x9')]===_0x415a4d('0x12')&&_0x1af258[_0x415a4d('0x6')])_0x556f3b[_0x1af258[_0x415a4d('0x6')]]&&_0x49f3af['push'](_0x556f3b[_0x1af258[_0x415a4d('0x6')]]['toString']());else{if(_0x1af258[_0x415a4d('0x9')]===_0x415a4d('0x3')&&_0x1af258[_0x415a4d('0xc')]&&_0x1af258[_0x415a4d('0xc')][_0x415a4d('0x10')])_0x556f3b[_0x1af258[_0x415a4d('0xc')][_0x415a4d('0x10')]['toLowerCase']()]&&_0x49f3af['push'](_0x556f3b[_0x1af258[_0x415a4d('0xc')][_0x415a4d('0x10')][_0x415a4d('0x2')]()][_0x415a4d('0xa')]());else{if(_0x1af258[_0x415a4d('0x9')]===_0x415a4d('0xe')){if(_0x1af258[_0x415a4d('0x19')]==='string'&&_0x1af258[_0x415a4d('0x7')])_0x49f3af[_0x415a4d('0x15')](util[_0x415a4d('0x4')](_0x415a4d('0x14'),_0x1af258['key'],_0x1af258[_0x415a4d('0xd')]));else{if(_0x1af258[_0x415a4d('0x19')]===_0x415a4d('0x12')&&_0x1af258[_0x415a4d('0x6')]&&_0x1af258[_0x415a4d('0x7')])_0x556f3b[_0x1af258[_0x415a4d('0x6')]]&&_0x49f3af[_0x415a4d('0x15')](util[_0x415a4d('0x4')]('%s:\x20%s',_0x1af258[_0x415a4d('0x7')],_0x556f3b[_0x1af258[_0x415a4d('0x6')]]));else _0x1af258[_0x415a4d('0x19')]==='customVariable'&&_0x1af258[_0x415a4d('0xc')]&&_0x1af258['Variable'][_0x415a4d('0x10')]&&_0x1af258['key']&&(_0x556f3b[_0x1af258['Variable'][_0x415a4d('0x10')][_0x415a4d('0x2')]()]&&_0x49f3af['push'](util['format'](_0x415a4d('0x14'),_0x1af258[_0x415a4d('0x7')],_0x556f3b[_0x1af258[_0x415a4d('0xc')][_0x415a4d('0x10')]['toLowerCase']()])));}}}}}}}return _0x49f3af['join'](_0x497ab7);},exports[_0x2ce36e('0xf')]=function(_0x10f07e){const _0x1d8815=_0x2ce36e,_0x2f1700=_0x10f07e[_0x1d8815('0x0')](-0x1);return _0x2f1700==='/'&&(_0x10f07e=_0x10f07e[_0x1d8815('0x1a')](0x0,_0x10f07e[_0x1d8815('0xb')](_0x2f1700))),_0x10f07e;},exports[_0x2ce36e('0x18')]=function(_0x58d8a5){const _0x4e8d85=_0x2ce36e;if(!_['isNil'](_0x58d8a5)&&_0x58d8a5!==''){const _0x28f9b4=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return _0x28f9b4[_0x4e8d85('0x16')](String(_0x58d8a5)[_0x4e8d85('0x2')]());}else return![];}; \ No newline at end of file +const a1143_0x37e5=['length','validateEmail','name','lastIndexOf','substring','string','util','keyValue','keyType','slice','type','%s:\x20%s','toLowerCase','content','Variable','variable','push','key','toString','sortBy','variableName','join','lodash','format','customVariable'];(function(_0x2be080,_0x37e5cf){const _0x592b41=function(_0x58c158){while(--_0x58c158){_0x2be080['push'](_0x2be080['shift']());}};_0x592b41(++_0x37e5cf);}(a1143_0x37e5,0x1bf));const a1143_0x592b=function(_0x2be080,_0x37e5cf){_0x2be080=_0x2be080-0x0;let _0x592b41=a1143_0x37e5[_0x2be080];return _0x592b41;};const _0x45e166=a1143_0x592b;'use strict';const _=require(_0x45e166('0x0')),util=require(_0x45e166('0x9'));exports['getString']=function(_0x58c158,_0x5165fb,_0x55f14b){const _0x3f46b5=_0x45e166,_0x5078bb=[];if(_0x58c158[_0x3f46b5('0x3')]>0x0){const _0x17ca54=_[_0x3f46b5('0x16')](_0x58c158,['id']);for(let _0x2ea27b=0x0;_0x2ea27b<_0x17ca54[_0x3f46b5('0x3')];_0x2ea27b++){const _0x527f04=_0x17ca54[_0x2ea27b];if(_0x527f04[_0x3f46b5('0xd')]===_0x3f46b5('0x8'))_0x5078bb[_0x3f46b5('0x13')](_0x527f04[_0x3f46b5('0x10')]);else{if(_0x527f04['type']===_0x3f46b5('0x12')&&_0x527f04[_0x3f46b5('0x17')])_0x5165fb[_0x527f04[_0x3f46b5('0x17')]]&&_0x5078bb[_0x3f46b5('0x13')](_0x5165fb[_0x527f04[_0x3f46b5('0x17')]][_0x3f46b5('0x15')]());else{if(_0x527f04[_0x3f46b5('0xd')]==='customVariable'&&_0x527f04[_0x3f46b5('0x11')]&&_0x527f04['Variable'][_0x3f46b5('0x5')])_0x5165fb[_0x527f04['Variable']['name']['toLowerCase']()]&&_0x5078bb['push'](_0x5165fb[_0x527f04[_0x3f46b5('0x11')]['name']['toLowerCase']()][_0x3f46b5('0x15')]());else{if(_0x527f04[_0x3f46b5('0xd')]===_0x3f46b5('0xa')){if(_0x527f04[_0x3f46b5('0xb')]===_0x3f46b5('0x8')&&_0x527f04[_0x3f46b5('0x14')])_0x5078bb[_0x3f46b5('0x13')](util[_0x3f46b5('0x1')](_0x3f46b5('0xe'),_0x527f04['key'],_0x527f04['keyContent']));else{if(_0x527f04[_0x3f46b5('0xb')]===_0x3f46b5('0x12')&&_0x527f04[_0x3f46b5('0x17')]&&_0x527f04[_0x3f46b5('0x14')])_0x5165fb[_0x527f04[_0x3f46b5('0x17')]]&&_0x5078bb[_0x3f46b5('0x13')](util[_0x3f46b5('0x1')]('%s:\x20%s',_0x527f04[_0x3f46b5('0x14')],_0x5165fb[_0x527f04[_0x3f46b5('0x17')]]));else _0x527f04[_0x3f46b5('0xb')]===_0x3f46b5('0x2')&&_0x527f04[_0x3f46b5('0x11')]&&_0x527f04[_0x3f46b5('0x11')][_0x3f46b5('0x5')]&&_0x527f04[_0x3f46b5('0x14')]&&(_0x5165fb[_0x527f04['Variable'][_0x3f46b5('0x5')][_0x3f46b5('0xf')]()]&&_0x5078bb['push'](util[_0x3f46b5('0x1')](_0x3f46b5('0xe'),_0x527f04['key'],_0x5165fb[_0x527f04[_0x3f46b5('0x11')][_0x3f46b5('0x5')][_0x3f46b5('0xf')]()])));}}}}}}}return _0x5078bb[_0x3f46b5('0x18')](_0x55f14b);},exports['stripTrailingSlash']=function(_0xe4c2f3){const _0xef3109=_0x45e166,_0x5f2a56=_0xe4c2f3[_0xef3109('0xc')](-0x1);return _0x5f2a56==='/'&&(_0xe4c2f3=_0xe4c2f3[_0xef3109('0x7')](0x0,_0xe4c2f3[_0xef3109('0x6')](_0x5f2a56))),_0xe4c2f3;},exports[_0x45e166('0x4')]=function(_0x4d4a8e){const _0x48d227=_0x45e166;if(!_['isNil'](_0x4d4a8e)&&_0x4d4a8e!==''){const _0x29af8c=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return _0x29af8c['test'](String(_0x4d4a8e)[_0x48d227('0xf')]());}else return![];}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/vtiger.js b/server/services/ami/trigger/integration/vtiger.js index b07b213..b159090 100644 --- a/server/services/ami/trigger/integration/vtiger.js +++ b/server/services/ami/trigger/integration/vtiger.js @@ -1 +1 @@ -const a1144_0x45ff=['Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','token','SELECT\x20id,\x20firstname,\x20lastname,\x20email,\x20phone,\x20mobile,\x20homephone,\x20otherphone,\x20assistantphone\x20FROM\x20Contacts\x20WHERE\x20phone\x20=\x20\x27%s\x27\x20OR\x20mobile\x20=\x27%s\x27\x20OR\x20homephone\x20=\x27%s\x27\x20OR\x20otherphone\x20=\x27%s\x27\x20OR\x20assistantphone\x20=\x27%s\x27;','getConnection','validateEmail','remoteUri','login','GET','getString','format','type','Ticket\x20created!','query','statusCode','lastevent','resolve','calleridnum','toUpperCase','createTicket','Descriptions','length','username','stripTrailingSlash','create','Open','toString','Enduser\x20found!','user:%s','getchallenge','emit','uniqueid','unmanaged','string','Getting\x20agent\x20with\x20email','outbound','info','customVariable','admin','email','queue','Fields','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','merge','toLowerCase','POST','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','first_name','Subjects','calleridname','Recording\x20is\x20enabled!','variableName','firstname','getEndUser','lastname','accessKey','stringify','catch','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','HelpDesk','The\x20Enduser\x20ID\x20is:','[QUEUE]','success','getUser','Creating\x20new\x20ticket...','./util','name','trigger:browser:url','recordingURL','md5','vTiger','idField','Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s','error','sessionName','last_name','split','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','Searching\x20end\x20user\x20with\x20phone','util','Normal','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','[vTiger],\x20%s,\x20%s,\x20%s','variable','%s/webservice.php','recordingFormat','request-promise-native','serverUrl','then','monitor_format','The\x20User\x20ID\x20is:','phone','[OUTBOUND]','Variable','userId','result'];(function(_0x503da5,_0x45ff92){const _0x257849=function(_0x16cc78){while(--_0x16cc78){_0x503da5['push'](_0x503da5['shift']());}};_0x257849(++_0x45ff92);}(a1144_0x45ff,0x1e5));const a1144_0x2578=function(_0x503da5,_0x45ff92){_0x503da5=_0x503da5-0x0;let _0x257849=a1144_0x45ff[_0x503da5];return _0x257849;};const _0x21d5ef=a1144_0x2578;'use strict';const _=require('lodash'),rp=require(_0x21d5ef('0x4b')),md5=require(_0x21d5ef('0x3a')),util=require(_0x21d5ef('0x44')),intUtil=require(_0x21d5ef('0x36')),logger=require('../../../../config/logger')(_0x21d5ef('0x3b')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x16cc78,_0x31a2df,_0xa9799f){const _0x360bc2=_0x21d5ef;io['to'](_0x16cc78)[_0x360bc2('0x13')](_0x31a2df,_0xa9799f);}function getCustomFields(_0x656fa9,_0x765ed5){const _0x159e2c=_0x21d5ef,_0x2cf8b1={};return _0x656fa9[_0x159e2c('0xa')]>0x0&&_['forEach'](_0x656fa9,function(_0x1c9d30){const _0x192d17=_0x159e2c;if(_0x1c9d30[_0x192d17('0x0')]===_0x192d17('0x16')&&_0x1c9d30[_0x192d17('0x3c')])_0x2cf8b1[_0x1c9d30[_0x192d17('0x3c')]]=_0x1c9d30['content'][_0x192d17('0xf')]();else{if(_0x1c9d30[_0x192d17('0x0')]===_0x192d17('0x48')&&_0x1c9d30[_0x192d17('0x28')]&&_0x1c9d30[_0x192d17('0x3c')]&&_0x765ed5[_0x1c9d30[_0x192d17('0x28')]])_0x2cf8b1[_0x1c9d30[_0x192d17('0x3c')]]=_0x765ed5[_0x1c9d30['variableName']]['toString']();else _0x1c9d30[_0x192d17('0x0')]===_0x192d17('0x1a')&&_0x1c9d30['Variable']&&_0x1c9d30[_0x192d17('0x52')][_0x192d17('0x37')]&&_0x1c9d30[_0x192d17('0x3c')]&&_0x765ed5[_0x1c9d30[_0x192d17('0x52')][_0x192d17('0x37')][_0x192d17('0x21')]()]&&(_0x2cf8b1[_0x1c9d30['idField']]=_0x765ed5[_0x1c9d30[_0x192d17('0x52')]['name'][_0x192d17('0x21')]()]['toString']());}}),_0x2cf8b1;}function createTicket(_0x11c277,_0x183e88,_0xd0ebc3,_0x3d2eea,_0x194e01,_0x2f6d56,_0xfb4d20){const _0x39cd48=_0x21d5ef;logger['info'](_0x39cd48('0x35'));const _0x48207b=_[_0x39cd48('0x20')]({'parent_id':'','assigned_user_id':_0x183e88['id'],'ticketpriorities':_0x39cd48('0x45'),'ticketstatus':_0x39cd48('0xe'),'ticket_title':intUtil[_0x39cd48('0x5d')](_0x3d2eea[_0x39cd48('0x25')],_0x194e01,'\x20'),'description':intUtil['getString'](_0x3d2eea[_0x39cd48('0x9')],_0x194e01,'\x0a'),'contact_id':_0xd0ebc3['id']},getCustomFields(_0x2f6d56,_0x194e01)),_0x1b4d16={'method':_0x39cd48('0x22'),'uri':util[_0x39cd48('0x5e')](_0x39cd48('0x49'),_0x11c277[_0x39cd48('0x5a')]),'form':{'operation':'create','username':_0x11c277[_0x39cd48('0xb')],'sessionName':_0xfb4d20[_0x39cd48('0x3f')],'elementType':_0x39cd48('0x30'),'element':JSON[_0x39cd48('0x2d')](_0x48207b)},'json':!![]};return request(_0x1b4d16)['then'](function(_0x2f7848){const _0x36f71f=_0x39cd48;if(_0x2f7848['success'])return Promise[_0x36f71f('0x5')]({'id':_0x2f7848[_0x36f71f('0x54')]['id']});else throw new Error(util[_0x36f71f('0x5e')](_0x36f71f('0x3d'),JSON[_0x36f71f('0x2d')](_0x2f7848[_0x36f71f('0x3e')])));})['catch'](function(_0x3eee49){const _0xbd65f3=_0x39cd48,_0x2dde66=_0x3eee49[_0xbd65f3('0x3')]||0x1f4;logger[_0xbd65f3('0x3e')](_0xbd65f3('0x47'),_0xbd65f3('0x8'),_0x2dde66,JSON[_0xbd65f3('0x2d')](_0x3eee49));});}function getUser(_0x3a9d11,_0x1d8987,_0xef1709){const _0x6795b4=_0x21d5ef;return intUtil[_0x6795b4('0x59')](_0x1d8987)?(logger[_0x6795b4('0x19')](_0x6795b4('0x17'),_0x1d8987),request({'method':'GET','uri':util[_0x6795b4('0x5e')](_0x6795b4('0x49'),_0x3a9d11[_0x6795b4('0x5a')]),'qs':{'operation':_0x6795b4('0x2'),'username':_0x3a9d11[_0x6795b4('0xb')],'sessionName':_0xef1709['sessionName'],'query':util[_0x6795b4('0x5e')](_0x6795b4('0x1f'),_0x1d8987)},'json':!![]})['then'](function(_0x49372f){const _0x907ddb=_0x6795b4;return _0x49372f[_0x907ddb('0x33')]&&_0x49372f[_0x907ddb('0x54')][_0x907ddb('0xa')]?(logger[_0x907ddb('0x19')]('Agent\x20found!'),Promise['resolve']({'id':_0x49372f['result'][0x0]['id'],'email':_0x49372f[_0x907ddb('0x54')][0x0]['email1'],'name':_0x49372f[_0x907ddb('0x54')][0x0][_0x907ddb('0x24')]+'\x20'+_0x49372f[_0x907ddb('0x54')][_0x907ddb('0x40')]})):(logger[_0x907ddb('0x19')](_0x907ddb('0x55')),Promise[_0x907ddb('0x5')]({'id':_0xef1709[_0x907ddb('0x53')],'email':_0x3a9d11[_0x907ddb('0xb')],'name':_0x907ddb('0x1b')}));})[_0x6795b4('0x2e')](function(_0x4c6aaa){const _0x1e4e5d=_0x6795b4,_0x1d07e9=_0x4c6aaa[_0x1e4e5d('0x3')]||0x1f4;logger[_0x1e4e5d('0x3e')](_0x1e4e5d('0x47'),_0x1e4e5d('0x34'),_0x1d07e9,JSON['stringify'](_0x4c6aaa));})):(logger['info'](_0x6795b4('0x55')),Promise[_0x6795b4('0x5')]({'id':_0xef1709[_0x6795b4('0x53')],'email':_0x3a9d11[_0x6795b4('0xb')],'name':_0x6795b4('0x1b')})[_0x6795b4('0x2e')](function(_0x2384e6){const _0x456638=_0x6795b4,_0x144c35=_0x2384e6[_0x456638('0x3')]||0x1f4;logger[_0x456638('0x3e')](_0x456638('0x47'),_0x456638('0x34'),_0x144c35,JSON[_0x456638('0x2d')](_0x2384e6));}));}function getEndUser(_0x27d921,_0x37d4fd,_0x10a03b,_0x530825){const _0x29de6d=_0x21d5ef;return logger[_0x29de6d('0x19')](_0x29de6d('0x43'),_0x10a03b),request({'method':_0x29de6d('0x5c'),'uri':util[_0x29de6d('0x5e')](_0x29de6d('0x49'),_0x27d921[_0x29de6d('0x5a')]),'qs':{'operation':'query','username':_0x27d921['username'],'sessionName':_0x530825['sessionName'],'query':util[_0x29de6d('0x5e')](_0x29de6d('0x57'),_0x10a03b,_0x10a03b,_0x10a03b,_0x10a03b,_0x10a03b)},'json':!![]})[_0x29de6d('0x4d')](function(_0x2ed7c3){const _0x42ed97=_0x29de6d;return _0x2ed7c3['success']&&_0x2ed7c3['result'][_0x42ed97('0xa')]?(logger['info'](_0x42ed97('0x10')),Promise[_0x42ed97('0x5')]({'id':_0x2ed7c3['result'][0x0]['id'],'name':_0x2ed7c3[_0x42ed97('0x54')][0x0][_0x42ed97('0x29')]+'\x20'+_0x2ed7c3[_0x42ed97('0x54')][0x0][_0x42ed97('0x2b')],'phone':_0x10a03b})):(logger['info'](_0x42ed97('0x42')),request({'method':_0x42ed97('0x22'),'uri':util[_0x42ed97('0x5e')](_0x42ed97('0x49'),_0x27d921[_0x42ed97('0x5a')]),'form':{'operation':_0x42ed97('0xd'),'sessionName':_0x530825[_0x42ed97('0x3f')],'elementType':'Contacts','element':JSON['stringify']({'lastname':_0x37d4fd,'phone':_0x10a03b,'assigned_user_id':'\x20'})},'json':!![]})[_0x42ed97('0x4d')](function(_0x55b6db){const _0x548f37=_0x42ed97;return logger[_0x548f37('0x19')]('Enduser\x20created.'),Promise[_0x548f37('0x5')]({'id':_0x55b6db['result']['id'],'name':_0x55b6db[_0x548f37('0x54')][_0x548f37('0x2b')],'phone':_0x55b6db[_0x548f37('0x54')][_0x548f37('0x50')]});})[_0x42ed97('0x2e')](function(_0x4d6b56){const _0x1259c4=_0x42ed97,_0x596c09=_0x4d6b56[_0x1259c4('0x3')]||0x1f4;logger[_0x1259c4('0x3e')](_0x1259c4('0x47'),_0x1259c4('0x2a'),_0x596c09,JSON[_0x1259c4('0x2d')](_0x4d6b56));}));});}function getConnection(_0x5a901f){const _0x2f75cf=_0x21d5ef,_0x44f7ca=_0x5a901f['username'],_0x299534=_0x5a901f[_0x2f75cf('0x2c')];return request({'method':_0x2f75cf('0x5c'),'uri':util[_0x2f75cf('0x5e')](_0x2f75cf('0x49'),_0x5a901f['remoteUri']),'qs':{'operation':_0x2f75cf('0x12'),'username':_0x44f7ca},'json':!![]})[_0x2f75cf('0x4d')](function(_0x2ab206){const _0x341f2f=_0x2f75cf;if(_0x2ab206[_0x341f2f('0x33')])return request({'method':_0x341f2f('0x22'),'uri':util[_0x341f2f('0x5e')](_0x341f2f('0x49'),_0x5a901f['remoteUri']),'form':{'operation':_0x341f2f('0x5b'),'username':_0x44f7ca,'accessKey':md5(_0x2ab206[_0x341f2f('0x54')][_0x341f2f('0x56')]+_0x299534)},'json':!![]});})['then'](function(_0x3bb566){if(_0x3bb566['success'])return Promise['resolve'](_0x3bb566['result']);else throw new Error(util['format']('Account\x20%d\x20is\x20not\x20valid',_0x5a901f['id']));})[_0x2f75cf('0x2e')](function(_0xb01827){const _0x5c81e0=_0x2f75cf,_0x9cce2b=_0xb01827[_0x5c81e0('0x3')]||0x1f4;logger[_0x5c81e0('0x3e')](_0x5c81e0('0x47'),_0x5c81e0('0x58'),_0x9cce2b,JSON[_0x5c81e0('0x2d')](_0xb01827));});}function request(_0x37915b){const _0x933235=_0x21d5ef;return logger['info']('[HTTP]',JSON[_0x933235('0x2d')](_0x37915b)),rp(_0x37915b);}exports[_0x21d5ef('0x1d')]=function(_0x5564e8,_0x48ae8e,_0x339f3c,_0x1fc855,_0x3d2e88,_0x35a95d){const _0x2cc32b=_0x21d5ef;let _0x5b9398,_0x5dbd7d,_0x2a0f01,_0x529f00;return _0x35a95d[_0x2cc32b('0x5a')]=intUtil[_0x2cc32b('0xc')](_0x35a95d['remoteUri']),_0x3d2e88&&_0x3d2e88['monitor_format']?(logger['info'](_0x2cc32b('0x32'),_0x2cc32b('0x27')),_0x48ae8e['recordingURL']=util[_0x2cc32b('0x5e')](_0x2cc32b('0x23'),_0x35a95d[_0x2cc32b('0x4c')],_0x48ae8e['uniqueid'],md5(_0x48ae8e[_0x2cc32b('0x14')]))):_0x48ae8e[_0x2cc32b('0x39')]='',getConnection(_0x35a95d)['then'](function(_0x5b1eaf){const _0xc14e18=_0x2cc32b;return _0x529f00=_0x5b1eaf,getUser(_0x35a95d,_0x1fc855[_0xc14e18('0x1c')],_0x529f00);})[_0x2cc32b('0x4d')](function(_0x190b3a){const _0x1876e6=_0x2cc32b;return _0x5b9398=_0x190b3a,logger[_0x1876e6('0x19')](_0x1876e6('0x4f'),_0x5b9398['id']),getEndUser(_0x35a95d,_0x48ae8e[_0x1876e6('0x26')],_0x48ae8e[_0x1876e6('0x6')],_0x529f00);})[_0x2cc32b('0x4d')](function(_0x57ff69){const _0x2451fa=_0x2cc32b;return _0x5dbd7d=_0x57ff69,logger['info'](_0x2451fa('0x31'),_0x5dbd7d['id']),createTicket(_0x35a95d,_0x5b9398,_0x5dbd7d,_0x339f3c,_0x48ae8e,_0x339f3c[_0x2451fa('0x1e')],_0x529f00);})[_0x2cc32b('0x4d')](function(_0x454bd4){const _0x4cfb27=_0x2cc32b;_0x2a0f01=_0x454bd4,logger[_0x4cfb27('0x19')](_0x4cfb27('0x1')),logger['info']('The\x20Ticket\x20ID\x20is:',_0x2a0f01['id']);const _0x292b81=util[_0x4cfb27('0x5e')](_0x4cfb27('0x46'),_0x35a95d['remoteUri'],_[_0x4cfb27('0x41')](_0x2a0f01['id'],'x')[0x1]);logger['info']('[QUEUE]',_0x4cfb27('0x2f')),emit(util[_0x4cfb27('0x5e')](_0x4cfb27('0x11'),_0x1fc855['name']),'trigger:browser:url',{'uri':_0x292b81});})[_0x2cc32b('0x2e')](function(_0x3883b8){const _0x2bf2d2=_0x2cc32b;logger[_0x2bf2d2('0x3e')](_0x2bf2d2('0x32'),JSON[_0x2bf2d2('0x2d')](_0x3883b8));});},exports[_0x21d5ef('0x18')]=function(_0x3e1728,_0x34a3a9,_0x191e06,_0x3a070f,_0x34b3e7,_0x33e3b5,_0x27bb7b){const _0x35f174=_0x21d5ef;let _0x5ef24c,_0x3b1c41,_0x484656,_0x30a215;return _0x33e3b5[_0x35f174('0x5a')]=intUtil[_0x35f174('0xc')](_0x33e3b5[_0x35f174('0x5a')]),_0x33e3b5['serverUrl']=intUtil[_0x35f174('0xc')](_0x33e3b5['serverUrl']),_0x27bb7b&&_0x27bb7b[_0x35f174('0x4a')]&&_0x27bb7b['recordingFormat']!=='none'&&(logger[_0x35f174('0x19')](_0x35f174('0x51'),_0x35f174('0x27')),_0x34a3a9[_0x35f174('0x39')]=util[_0x35f174('0x5e')](_0x35f174('0x23'),_0x33e3b5['serverUrl'],_0x34a3a9[_0x35f174('0x14')],md5(_0x34a3a9[_0x35f174('0x14')]))),getConnection(_0x33e3b5)['then'](function(_0x304737){return _0x30a215=_0x304737,getUser(_0x33e3b5,_0x3a070f['email'],_0x30a215);})[_0x35f174('0x4d')](function(_0x4f4c0a){const _0x36a533=_0x35f174;return _0x5ef24c=_0x4f4c0a,logger[_0x36a533('0x19')](_0x36a533('0x4f'),_0x5ef24c['id']),getEndUser(_0x33e3b5,_0x34a3a9['destcalleridname'],_0x34a3a9['destcalleridnum'],_0x30a215);})[_0x35f174('0x4d')](function(_0x50f0c0){const _0x15c661=_0x35f174;return _0x3b1c41=_0x50f0c0,logger[_0x15c661('0x19')]('The\x20Enduser\x20ID\x20is:',_0x3b1c41['id']),createTicket(_0x33e3b5,_0x5ef24c,_0x3b1c41,_0x191e06,_0x34a3a9,_0x191e06['Fields'],_0x30a215);})[_0x35f174('0x4d')](function(_0x25b86f){const _0x4b323e=_0x35f174;_0x484656=_0x25b86f,logger['info'](_0x4b323e('0x1')),logger[_0x4b323e('0x19')]('The\x20Ticket\x20ID\x20is:',_0x484656['id']);const _0x20038b=util[_0x4b323e('0x5e')](_0x4b323e('0x46'),_0x33e3b5[_0x4b323e('0x5a')],_['split'](_0x484656['id'],'x')[0x1]);logger[_0x4b323e('0x19')](_0x4b323e('0x51'),_0x4b323e('0x2f')),emit(util[_0x4b323e('0x5e')]('user:%s',_0x3a070f[_0x4b323e('0x37')]),_0x4b323e('0x38'),{'uri':_0x20038b});})[_0x35f174('0x2e')](function(_0x477687){const _0x4e0369=_0x35f174;logger[_0x4e0369('0x3e')](_0x4e0369('0x51'),JSON[_0x4e0369('0x2d')](_0x477687));});},exports[_0x21d5ef('0x15')]=function(_0x318820,_0x57b700,_0x2bed0e,_0x2c4187,_0x3934ad,_0x47400c){const _0x4b7670=_0x21d5ef;let _0x3cd25e,_0x5221cf,_0x403677,_0x2d2a19;return _0x47400c[_0x4b7670('0x5a')]=intUtil[_0x4b7670('0xc')](_0x47400c['remoteUri']),_0x47400c[_0x4b7670('0x4c')]=intUtil[_0x4b7670('0xc')](_0x47400c['serverUrl']),_0x3934ad&&_0x3934ad[_0x4b7670('0x4e')]?(logger[_0x4b7670('0x19')]('['+_0x57b700[_0x4b7670('0x4')][_0x4b7670('0x7')]()+']',_0x4b7670('0x27')),_0x57b700[_0x4b7670('0x39')]=util[_0x4b7670('0x5e')](_0x4b7670('0x23'),_0x47400c[_0x4b7670('0x4c')],_0x57b700[_0x4b7670('0x14')],md5(_0x57b700[_0x4b7670('0x14')]))):_0x57b700['recordingURL']='',getConnection(_0x47400c)[_0x4b7670('0x4d')](function(_0x43bed6){return _0x2d2a19=_0x43bed6,getUser(_0x47400c,'',_0x2d2a19);})[_0x4b7670('0x4d')](function(_0x1382bc){const _0xb2559e=_0x4b7670;return _0x3cd25e=_0x1382bc,logger[_0xb2559e('0x19')](_0xb2559e('0x4f'),_0x3cd25e['id']),getEndUser(_0x47400c,_0x57b700[_0xb2559e('0x26')],_0x57b700[_0xb2559e('0x6')],_0x2d2a19);})[_0x4b7670('0x4d')](function(_0x4863e6){const _0x23da43=_0x4b7670;return _0x5221cf=_0x4863e6,logger[_0x23da43('0x19')](_0x23da43('0x31'),_0x5221cf['id']),createTicket(_0x47400c,_0x3cd25e,_0x5221cf,_0x2bed0e,_0x57b700,_0x2bed0e[_0x23da43('0x1e')],_0x2d2a19);})['then'](function(_0x287386){const _0x21599e=_0x4b7670;_0x403677=_0x287386,logger['info'](_0x21599e('0x1')),logger[_0x21599e('0x19')]('The\x20Ticket\x20ID\x20is:',_0x403677['id']);})[_0x4b7670('0x2e')](function(_0x144324){const _0x1c85a7=_0x4b7670;logger[_0x1c85a7('0x3e')]('['+_0x57b700['lastevent'][_0x1c85a7('0x7')]()+']',JSON[_0x1c85a7('0x2d')](_0x144324));});}; \ No newline at end of file +const a1144_0x8069=['POST','lodash','admin','Open','calleridnum','unmanaged','format','resolve','result','GET','string','./util','Normal','vTiger','getString','remoteUri','Recording\x20is\x20enabled!','sessionName','lastname','recordingURL','Variable','phone','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','name','token','trigger:browser:url','stripTrailingSlash','Account\x20%d\x20is\x20not\x20valid','then','content','info','HelpDesk','error','../../../../config/logger','emit','statusCode','getConnection','calleridname','[OUTBOUND]','success','stringify','query','toLowerCase','variableName','variable','The\x20Ticket\x20ID\x20is:','recordingFormat','create','idField','split','type','getchallenge','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','monitor_format','Ticket\x20created!','user:%s','Getting\x20agent\x20with\x20email','toString','forEach','length','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','catch','Creating\x20new\x20ticket...','The\x20Enduser\x20ID\x20is:','customVariable','uniqueid','userId','firstname','Descriptions','../../../../rediscache','createTicket','getUser','The\x20User\x20ID\x20is:','last_name','[QUEUE]','Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s','login','Enduser\x20created.','username','destcalleridnum','destcalleridname','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','Fields','none','getEndUser','email','merge','%s/webservice.php','Contacts','SELECT\x20id,\x20firstname,\x20lastname,\x20email,\x20phone,\x20mobile,\x20homephone,\x20otherphone,\x20assistantphone\x20FROM\x20Contacts\x20WHERE\x20phone\x20=\x20\x27%s\x27\x20OR\x20mobile\x20=\x27%s\x27\x20OR\x20homephone\x20=\x27%s\x27\x20OR\x20otherphone\x20=\x27%s\x27\x20OR\x20assistantphone\x20=\x27%s\x27;','[HTTP]','[vTiger],\x20%s,\x20%s,\x20%s','validateEmail','serverUrl'];(function(_0x4fcf46,_0x80690a){const _0x65a6f7=function(_0x19a9ce){while(--_0x19a9ce){_0x4fcf46['push'](_0x4fcf46['shift']());}};_0x65a6f7(++_0x80690a);}(a1144_0x8069,0x1b1));const a1144_0x65a6=function(_0x4fcf46,_0x80690a){_0x4fcf46=_0x4fcf46-0x0;let _0x65a6f7=a1144_0x8069[_0x4fcf46];return _0x65a6f7;};const _0x2179e1=a1144_0x65a6;'use strict';const _=require(_0x2179e1('0x2b')),rp=require('request-promise-native'),md5=require('md5'),util=require('util'),intUtil=require(_0x2179e1('0x35')),logger=require(_0x2179e1('0x4b'))(_0x2179e1('0x37')),{getSocket}=require(_0x2179e1('0x10')),io=getSocket();function emit(_0x19a9ce,_0x51a4c1,_0x39891a){const _0x3dafc1=_0x2179e1;io['to'](_0x19a9ce)[_0x3dafc1('0x4c')](_0x51a4c1,_0x39891a);}function getCustomFields(_0x44329f,_0x49a846){const _0x46e7dd=_0x2179e1,_0x30f1f0={};return _0x44329f[_0x46e7dd('0x6')]>0x0&&_[_0x46e7dd('0x5')](_0x44329f,function(_0x523efc){const _0x18c355=_0x46e7dd;if(_0x523efc[_0x18c355('0x5c')]===_0x18c355('0x34')&&_0x523efc[_0x18c355('0x5a')])_0x30f1f0[_0x523efc['idField']]=_0x523efc[_0x18c355('0x47')][_0x18c355('0x4')]();else{if(_0x523efc[_0x18c355('0x5c')]===_0x18c355('0x56')&&_0x523efc[_0x18c355('0x55')]&&_0x523efc['idField']&&_0x49a846[_0x523efc[_0x18c355('0x55')]])_0x30f1f0[_0x523efc[_0x18c355('0x5a')]]=_0x49a846[_0x523efc[_0x18c355('0x55')]][_0x18c355('0x4')]();else _0x523efc[_0x18c355('0x5c')]===_0x18c355('0xb')&&_0x523efc['Variable']&&_0x523efc[_0x18c355('0x3e')]['name']&&_0x523efc['idField']&&_0x49a846[_0x523efc[_0x18c355('0x3e')]['name'][_0x18c355('0x54')]()]&&(_0x30f1f0[_0x523efc['idField']]=_0x49a846[_0x523efc[_0x18c355('0x3e')][_0x18c355('0x41')][_0x18c355('0x54')]()][_0x18c355('0x4')]());}}),_0x30f1f0;}function createTicket(_0x1a9624,_0x564773,_0x4edf15,_0x2844f5,_0x2443d3,_0x508901,_0x566c6c){const _0x420572=_0x2179e1;logger[_0x420572('0x48')](_0x420572('0x9'));const _0x486a76=_[_0x420572('0x22')]({'parent_id':'','assigned_user_id':_0x564773['id'],'ticketpriorities':_0x420572('0x36'),'ticketstatus':_0x420572('0x2d'),'ticket_title':intUtil[_0x420572('0x38')](_0x2844f5['Subjects'],_0x2443d3,'\x20'),'description':intUtil[_0x420572('0x38')](_0x2844f5[_0x420572('0xf')],_0x2443d3,'\x0a'),'contact_id':_0x4edf15['id']},getCustomFields(_0x508901,_0x2443d3)),_0x468c12={'method':_0x420572('0x2a'),'uri':util[_0x420572('0x30')](_0x420572('0x23'),_0x1a9624['remoteUri']),'form':{'operation':_0x420572('0x59'),'username':_0x1a9624[_0x420572('0x19')],'sessionName':_0x566c6c['sessionName'],'elementType':_0x420572('0x49'),'element':JSON[_0x420572('0x52')](_0x486a76)},'json':!![]};return request(_0x468c12)[_0x420572('0x46')](function(_0x2e681e){const _0x1b4349=_0x420572;if(_0x2e681e[_0x1b4349('0x51')])return Promise[_0x1b4349('0x31')]({'id':_0x2e681e[_0x1b4349('0x32')]['id']});else throw new Error(util[_0x1b4349('0x30')](_0x1b4349('0x16'),JSON[_0x1b4349('0x52')](_0x2e681e['error'])));})[_0x420572('0x8')](function(_0x384e82){const _0x459506=_0x420572,_0x46b5e8=_0x384e82['statusCode']||0x1f4;logger[_0x459506('0x4a')](_0x459506('0x27'),_0x459506('0x11'),_0x46b5e8,JSON[_0x459506('0x52')](_0x384e82));});}function getUser(_0x18329c,_0x557fa7,_0x128305){const _0x4de82e=_0x2179e1;return intUtil[_0x4de82e('0x28')](_0x557fa7)?(logger[_0x4de82e('0x48')](_0x4de82e('0x3'),_0x557fa7),request({'method':_0x4de82e('0x33'),'uri':util[_0x4de82e('0x30')](_0x4de82e('0x23'),_0x18329c[_0x4de82e('0x39')]),'qs':{'operation':_0x4de82e('0x53'),'username':_0x18329c['username'],'sessionName':_0x128305[_0x4de82e('0x3b')],'query':util[_0x4de82e('0x30')](_0x4de82e('0x1d'),_0x557fa7)},'json':!![]})[_0x4de82e('0x46')](function(_0x79a3dc){const _0x1a53d7=_0x4de82e;return _0x79a3dc[_0x1a53d7('0x51')]&&_0x79a3dc[_0x1a53d7('0x32')][_0x1a53d7('0x6')]?(logger[_0x1a53d7('0x48')]('Agent\x20found!'),Promise[_0x1a53d7('0x31')]({'id':_0x79a3dc[_0x1a53d7('0x32')][0x0]['id'],'email':_0x79a3dc[_0x1a53d7('0x32')][0x0]['email1'],'name':_0x79a3dc['result'][0x0]['first_name']+'\x20'+_0x79a3dc[_0x1a53d7('0x32')][_0x1a53d7('0x14')]})):(logger['info'](_0x1a53d7('0x5e')),Promise[_0x1a53d7('0x31')]({'id':_0x128305[_0x1a53d7('0xd')],'email':_0x18329c[_0x1a53d7('0x19')],'name':_0x1a53d7('0x2c')}));})[_0x4de82e('0x8')](function(_0xb6c422){const _0x28663a=_0x4de82e,_0x29057b=_0xb6c422[_0x28663a('0x4d')]||0x1f4;logger[_0x28663a('0x4a')](_0x28663a('0x27'),_0x28663a('0x12'),_0x29057b,JSON[_0x28663a('0x52')](_0xb6c422));})):(logger[_0x4de82e('0x48')](_0x4de82e('0x5e')),Promise[_0x4de82e('0x31')]({'id':_0x128305[_0x4de82e('0xd')],'email':_0x18329c['username'],'name':_0x4de82e('0x2c')})['catch'](function(_0x33014a){const _0x343342=_0x4de82e,_0xff9b9b=_0x33014a['statusCode']||0x1f4;logger[_0x343342('0x4a')]('[vTiger],\x20%s,\x20%s,\x20%s',_0x343342('0x12'),_0xff9b9b,JSON['stringify'](_0x33014a));}));}function getEndUser(_0x1772f5,_0x36903f,_0x71a69c,_0x58ce5e){const _0x173751=_0x2179e1;return logger[_0x173751('0x48')]('Searching\x20end\x20user\x20with\x20phone',_0x71a69c),request({'method':'GET','uri':util[_0x173751('0x30')](_0x173751('0x23'),_0x1772f5[_0x173751('0x39')]),'qs':{'operation':_0x173751('0x53'),'username':_0x1772f5[_0x173751('0x19')],'sessionName':_0x58ce5e[_0x173751('0x3b')],'query':util[_0x173751('0x30')](_0x173751('0x25'),_0x71a69c,_0x71a69c,_0x71a69c,_0x71a69c,_0x71a69c)},'json':!![]})[_0x173751('0x46')](function(_0x8680ab){const _0x439135=_0x173751;return _0x8680ab[_0x439135('0x51')]&&_0x8680ab['result'][_0x439135('0x6')]?(logger[_0x439135('0x48')]('Enduser\x20found!'),Promise[_0x439135('0x31')]({'id':_0x8680ab[_0x439135('0x32')][0x0]['id'],'name':_0x8680ab[_0x439135('0x32')][0x0][_0x439135('0xe')]+'\x20'+_0x8680ab[_0x439135('0x32')][0x0]['lastname'],'phone':_0x71a69c})):(logger[_0x439135('0x48')]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'method':_0x439135('0x2a'),'uri':util[_0x439135('0x30')](_0x439135('0x23'),_0x1772f5['remoteUri']),'form':{'operation':_0x439135('0x59'),'sessionName':_0x58ce5e['sessionName'],'elementType':_0x439135('0x24'),'element':JSON[_0x439135('0x52')]({'lastname':_0x36903f,'phone':_0x71a69c,'assigned_user_id':'\x20'})},'json':!![]})[_0x439135('0x46')](function(_0x1629c3){const _0x3efc0d=_0x439135;return logger['info'](_0x3efc0d('0x18')),Promise[_0x3efc0d('0x31')]({'id':_0x1629c3[_0x3efc0d('0x32')]['id'],'name':_0x1629c3['result'][_0x3efc0d('0x3c')],'phone':_0x1629c3[_0x3efc0d('0x32')][_0x3efc0d('0x3f')]});})['catch'](function(_0x5289ab){const _0x984df=_0x439135,_0x47bf7a=_0x5289ab['statusCode']||0x1f4;logger['error']('[vTiger],\x20%s,\x20%s,\x20%s',_0x984df('0x20'),_0x47bf7a,JSON[_0x984df('0x52')](_0x5289ab));}));});}function getConnection(_0xef360a){const _0x17dc55=_0x2179e1,_0x1b48bc=_0xef360a[_0x17dc55('0x19')],_0x2be469=_0xef360a['accessKey'];return request({'method':_0x17dc55('0x33'),'uri':util['format'](_0x17dc55('0x23'),_0xef360a[_0x17dc55('0x39')]),'qs':{'operation':_0x17dc55('0x5d'),'username':_0x1b48bc},'json':!![]})[_0x17dc55('0x46')](function(_0x47d41c){const _0x360884=_0x17dc55;if(_0x47d41c[_0x360884('0x51')])return request({'method':_0x360884('0x2a'),'uri':util[_0x360884('0x30')](_0x360884('0x23'),_0xef360a['remoteUri']),'form':{'operation':_0x360884('0x17'),'username':_0x1b48bc,'accessKey':md5(_0x47d41c[_0x360884('0x32')][_0x360884('0x42')]+_0x2be469)},'json':!![]});})[_0x17dc55('0x46')](function(_0xaa259e){const _0x1236d0=_0x17dc55;if(_0xaa259e[_0x1236d0('0x51')])return Promise[_0x1236d0('0x31')](_0xaa259e[_0x1236d0('0x32')]);else throw new Error(util[_0x1236d0('0x30')](_0x1236d0('0x45'),_0xef360a['id']));})[_0x17dc55('0x8')](function(_0x3a9a02){const _0x512948=_0x17dc55,_0x494ec8=_0x3a9a02[_0x512948('0x4d')]||0x1f4;logger[_0x512948('0x4a')](_0x512948('0x27'),_0x512948('0x4e'),_0x494ec8,JSON[_0x512948('0x52')](_0x3a9a02));});}function request(_0x2add77){const _0x4f2b5b=_0x2179e1;return logger[_0x4f2b5b('0x48')](_0x4f2b5b('0x26'),JSON[_0x4f2b5b('0x52')](_0x2add77)),rp(_0x2add77);}exports['queue']=function(_0x11d751,_0x5c7584,_0x5bea95,_0x2ab61e,_0x58226b,_0xaf6579){const _0x2e632b=_0x2179e1;let _0x4a7275,_0x1c02de,_0x45de6d,_0x3632b1;return _0xaf6579['remoteUri']=intUtil[_0x2e632b('0x44')](_0xaf6579['remoteUri']),_0x58226b&&_0x58226b['monitor_format']?(logger['info'](_0x2e632b('0x15'),_0x2e632b('0x3a')),_0x5c7584[_0x2e632b('0x3d')]=util[_0x2e632b('0x30')](_0x2e632b('0x1c'),_0xaf6579[_0x2e632b('0x29')],_0x5c7584['uniqueid'],md5(_0x5c7584[_0x2e632b('0xc')]))):_0x5c7584[_0x2e632b('0x3d')]='',getConnection(_0xaf6579)[_0x2e632b('0x46')](function(_0x10909f){const _0x2a532d=_0x2e632b;return _0x3632b1=_0x10909f,getUser(_0xaf6579,_0x2ab61e[_0x2a532d('0x21')],_0x3632b1);})[_0x2e632b('0x46')](function(_0x205c56){const _0x4fdfff=_0x2e632b;return _0x4a7275=_0x205c56,logger['info'](_0x4fdfff('0x13'),_0x4a7275['id']),getEndUser(_0xaf6579,_0x5c7584[_0x4fdfff('0x4f')],_0x5c7584['calleridnum'],_0x3632b1);})['then'](function(_0x288ebf){const _0x41e334=_0x2e632b;return _0x1c02de=_0x288ebf,logger[_0x41e334('0x48')](_0x41e334('0xa'),_0x1c02de['id']),createTicket(_0xaf6579,_0x4a7275,_0x1c02de,_0x5bea95,_0x5c7584,_0x5bea95['Fields'],_0x3632b1);})[_0x2e632b('0x46')](function(_0x3df2c4){const _0x49ffd9=_0x2e632b;_0x45de6d=_0x3df2c4,logger[_0x49ffd9('0x48')](_0x49ffd9('0x1')),logger['info'](_0x49ffd9('0x57'),_0x45de6d['id']);const _0x554761=util['format'](_0x49ffd9('0x7'),_0xaf6579[_0x49ffd9('0x39')],_[_0x49ffd9('0x5b')](_0x45de6d['id'],'x')[0x1]);logger[_0x49ffd9('0x48')](_0x49ffd9('0x15'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x49ffd9('0x30')](_0x49ffd9('0x2'),_0x2ab61e[_0x49ffd9('0x41')]),_0x49ffd9('0x43'),{'uri':_0x554761});})['catch'](function(_0x243403){const _0x1deb53=_0x2e632b;logger[_0x1deb53('0x4a')](_0x1deb53('0x15'),JSON[_0x1deb53('0x52')](_0x243403));});},exports['outbound']=function(_0x12079c,_0x16d3d8,_0x39de19,_0x5a264a,_0x462d5e,_0x32037a,_0x55ac17){const _0xf5cd2d=_0x2179e1;let _0xacc42b,_0x55de97,_0x198a4a,_0x6ad03a;return _0x32037a['remoteUri']=intUtil[_0xf5cd2d('0x44')](_0x32037a[_0xf5cd2d('0x39')]),_0x32037a[_0xf5cd2d('0x29')]=intUtil[_0xf5cd2d('0x44')](_0x32037a[_0xf5cd2d('0x29')]),_0x55ac17&&_0x55ac17[_0xf5cd2d('0x58')]&&_0x55ac17[_0xf5cd2d('0x58')]!==_0xf5cd2d('0x1f')&&(logger[_0xf5cd2d('0x48')](_0xf5cd2d('0x50'),'Recording\x20is\x20enabled!'),_0x16d3d8['recordingURL']=util[_0xf5cd2d('0x30')](_0xf5cd2d('0x1c'),_0x32037a[_0xf5cd2d('0x29')],_0x16d3d8[_0xf5cd2d('0xc')],md5(_0x16d3d8[_0xf5cd2d('0xc')]))),getConnection(_0x32037a)[_0xf5cd2d('0x46')](function(_0x49a2af){return _0x6ad03a=_0x49a2af,getUser(_0x32037a,_0x5a264a['email'],_0x6ad03a);})[_0xf5cd2d('0x46')](function(_0x211e6d){const _0x4968ae=_0xf5cd2d;return _0xacc42b=_0x211e6d,logger[_0x4968ae('0x48')](_0x4968ae('0x13'),_0xacc42b['id']),getEndUser(_0x32037a,_0x16d3d8[_0x4968ae('0x1b')],_0x16d3d8[_0x4968ae('0x1a')],_0x6ad03a);})[_0xf5cd2d('0x46')](function(_0x2c8327){const _0x5ec37e=_0xf5cd2d;return _0x55de97=_0x2c8327,logger[_0x5ec37e('0x48')](_0x5ec37e('0xa'),_0x55de97['id']),createTicket(_0x32037a,_0xacc42b,_0x55de97,_0x39de19,_0x16d3d8,_0x39de19[_0x5ec37e('0x1e')],_0x6ad03a);})['then'](function(_0x13e48f){const _0x4c63f5=_0xf5cd2d;_0x198a4a=_0x13e48f,logger[_0x4c63f5('0x48')](_0x4c63f5('0x1')),logger[_0x4c63f5('0x48')](_0x4c63f5('0x57'),_0x198a4a['id']);const _0x4e2a75=util['format'](_0x4c63f5('0x7'),_0x32037a[_0x4c63f5('0x39')],_[_0x4c63f5('0x5b')](_0x198a4a['id'],'x')[0x1]);logger[_0x4c63f5('0x48')](_0x4c63f5('0x50'),_0x4c63f5('0x40')),emit(util[_0x4c63f5('0x30')](_0x4c63f5('0x2'),_0x5a264a[_0x4c63f5('0x41')]),_0x4c63f5('0x43'),{'uri':_0x4e2a75});})[_0xf5cd2d('0x8')](function(_0x513bcf){const _0x224ff9=_0xf5cd2d;logger['error'](_0x224ff9('0x50'),JSON['stringify'](_0x513bcf));});},exports[_0x2179e1('0x2f')]=function(_0x1b49d3,_0x359f58,_0x970940,_0x3c5797,_0x4dd31c,_0x4c7be7){const _0x5ea099=_0x2179e1;let _0x273138,_0x91fcf7,_0x525de5,_0x1a96b7;return _0x4c7be7[_0x5ea099('0x39')]=intUtil[_0x5ea099('0x44')](_0x4c7be7[_0x5ea099('0x39')]),_0x4c7be7['serverUrl']=intUtil['stripTrailingSlash'](_0x4c7be7[_0x5ea099('0x29')]),_0x4dd31c&&_0x4dd31c[_0x5ea099('0x0')]?(logger['info']('['+_0x359f58['lastevent']['toUpperCase']()+']',_0x5ea099('0x3a')),_0x359f58['recordingURL']=util[_0x5ea099('0x30')](_0x5ea099('0x1c'),_0x4c7be7[_0x5ea099('0x29')],_0x359f58[_0x5ea099('0xc')],md5(_0x359f58[_0x5ea099('0xc')]))):_0x359f58[_0x5ea099('0x3d')]='',getConnection(_0x4c7be7)[_0x5ea099('0x46')](function(_0x7e644e){return _0x1a96b7=_0x7e644e,getUser(_0x4c7be7,'',_0x1a96b7);})[_0x5ea099('0x46')](function(_0x1b9b09){const _0x25b9af=_0x5ea099;return _0x273138=_0x1b9b09,logger['info'](_0x25b9af('0x13'),_0x273138['id']),getEndUser(_0x4c7be7,_0x359f58['calleridname'],_0x359f58[_0x25b9af('0x2e')],_0x1a96b7);})[_0x5ea099('0x46')](function(_0x5d5f47){const _0x41c5f6=_0x5ea099;return _0x91fcf7=_0x5d5f47,logger[_0x41c5f6('0x48')](_0x41c5f6('0xa'),_0x91fcf7['id']),createTicket(_0x4c7be7,_0x273138,_0x91fcf7,_0x970940,_0x359f58,_0x970940[_0x41c5f6('0x1e')],_0x1a96b7);})['then'](function(_0x589401){const _0x49ca3f=_0x5ea099;_0x525de5=_0x589401,logger['info'](_0x49ca3f('0x1')),logger[_0x49ca3f('0x48')](_0x49ca3f('0x57'),_0x525de5['id']);})[_0x5ea099('0x8')](function(_0x321adb){const _0x2f1f3b=_0x5ea099;logger['error']('['+_0x359f58['lastevent']['toUpperCase']()+']',JSON[_0x2f1f3b('0x52')](_0x321adb));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/zendesk.js b/server/services/ami/trigger/integration/zendesk.js index 9163db0..bd78a1f 100644 --- a/server/services/ami/trigger/integration/zendesk.js +++ b/server/services/ami/trigger/integration/zendesk.js @@ -1 +1 @@ -const a1145_0x47ac=['The\x20Ticket\x20ID\x20is:','replace','monitor_format','user','Recording\x20is\x20enabled!','%s/users.json','Descriptions','trigger:browser:url','Authorization','format','first','email','%s/token:%s','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','[OUTBOUND]','%s/users/me.json','custom_fields','toString','none','lastevent','username','remoteUri','length','unmanaged','string','The\x20User\x20ID\x20is:','/api/v2','Displaying\x20ticket\x20to\x20agent...','toLowerCase','[HTTP]','Zendesk\x20account\x20type\x20not\x20recognized','Fields','stringify','authType','integrationTab','request-promise-native','%s/search.json','type','variableName','ticket','../../../../rediscache','customField','newTab','Admin\x20account\x20selected.','%s/agent/tickets/%s','serverUrl','Tags','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','type:user\x20role:end-user\x20phone:%s','push','Basic\x20%s','Variable','POST','%s:%s','Getting\x20agent\x20with\x20email','%s/channels/voice/agents/%d/tickets/%d/display.json','Searching\x20enduser\x20with\x20phone','recordingURL','idField','variable','Agent\x20found!','find','info','../../../../config/logger','queue','util','count','results','Caller\x20-\x20%s','calleridnum','base64','getString','name','toUpperCase','[QUEUE]','end-user','destcalleridnum','token','outbound','content','The\x20Enduser\x20ID\x20is:','emit','inspect','then','password','stripTrailingSlash','uniqueid','error','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','defaults','forEach','catch','filter','Enduser\x20created.','destcalleridname','application/json','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Enduser\x20found!','zendesk'];(function(_0x4fadf7,_0x47ac01){const _0x4132df=function(_0x335c84){while(--_0x335c84){_0x4fadf7['push'](_0x4fadf7['shift']());}};_0x4132df(++_0x47ac01);}(a1145_0x47ac,0x17e));const a1145_0x4132=function(_0x4fadf7,_0x47ac01){_0x4fadf7=_0x4fadf7-0x0;let _0x4132df=a1145_0x47ac[_0x4fadf7];return _0x4132df;};const _0x3035c9=a1145_0x4132;'use strict';const _=require('lodash'),rp=require(_0x3035c9('0x31')),md5=require('md5'),util=require(_0x3035c9('0x4f')),intUtil=require('./util'),logger=require(_0x3035c9('0x4d'))(_0x3035c9('0xd')),{getSocket}=require(_0x3035c9('0x36')),io=getSocket();function emit(_0x335c84,_0x257d77,_0x416d67){const _0x4a88f6=_0x3035c9;io['to'](_0x335c84)[_0x4a88f6('0x5f')](_0x257d77,_0x416d67);}const headers={'Content-Type':_0x3035c9('0xa'),'Accept':_0x3035c9('0xa')};function getTicket(_0x3ccdb2,_0xd1fcbf,_0x5bbd23,_0x50e433,_0x2e1c76){const _0xde608b=_0x3035c9;return logger[_0xde608b('0x4c')]('Creating\x20new\x20ticket...'),request({'uri':util[_0xde608b('0x17')]('%s/tickets.json',_0x3ccdb2[_0xde608b('0x23')]),'method':_0xde608b('0x42'),'body':{'ticket':_['merge']({'requester_id':_0x5bbd23['id'],'submitter_id':_0xd1fcbf?_0xd1fcbf['id']:undefined,'assignee_id':_0xd1fcbf?_0xd1fcbf['id']:undefined,'tags':getTags(_0x50e433[_0xde608b('0x3c')],_0xde608b('0x56')),'subject':intUtil[_0xde608b('0x55')](_0x50e433['Subjects'],_0x2e1c76,'\x20'),'description':intUtil[_0xde608b('0x55')](_0x50e433['Descriptions'],_0x2e1c76,'\x0a'),'comment':{'public':![],'body':intUtil[_0xde608b('0x55')](_0x50e433[_0xde608b('0x14')],_0x2e1c76,'\x0a')}},getCustomFields(_0x50e433[_0xde608b('0x2d')],_0x2e1c76))}})[_0xde608b('0x61')](function(_0xc7a444){const _0xefd79d=_0xde608b;return logger[_0xefd79d('0x4c')]('Ticket\x20created!'),_0xc7a444[_0xefd79d('0x35')];});}function getUser(_0xc79ef1,_0x5c8409){const _0x5c7e24=_0x3035c9;return intUtil['validateEmail'](_0x5c8409)?(logger[_0x5c7e24('0x4c')](_0x5c7e24('0x44'),_0x5c8409),request({'uri':util[_0x5c7e24('0x17')](_0x5c7e24('0x32'),_0xc79ef1[_0x5c7e24('0x23')]),'qs':{'query':util[_0x5c7e24('0x17')]('type:user\x20role:agent\x20email:%s',_0x5c8409)}})['then'](function(_0x3b21d4){const _0x332ae5=_0x5c7e24;return _0x3b21d4[_0x332ae5('0x50')]?(logger[_0x332ae5('0x4c')](_0x332ae5('0x4a')),_[_0x332ae5('0x4b')](_0x3b21d4['results'],{'email':_0x5c8409,'role':'agent'})):(logger[_0x332ae5('0x4c')]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),request({'uri':util[_0x332ae5('0x17')](_0x332ae5('0x1d'),_0xc79ef1[_0x332ae5('0x23')])})[_0x332ae5('0x61')](function(_0x3f1ada){const _0x5cbd16=_0x332ae5;return logger[_0x5cbd16('0x4c')](_0x5cbd16('0x39')),_0x3f1ada['user'];}));})):(logger[_0x5c7e24('0x4c')](_0x5c7e24('0x1b')),request({'uri':util[_0x5c7e24('0x17')](_0x5c7e24('0x1d'),_0xc79ef1['remoteUri'])})['then'](function(_0xec271b){const _0x3b4234=_0x5c7e24;return logger[_0x3b4234('0x4c')](_0x3b4234('0x39')),_0xec271b[_0x3b4234('0x11')];}));}function getEndUser(_0x1d8515,_0x52cd7c,_0x214011){const _0x4c1e31=_0x3035c9;return logger[_0x4c1e31('0x4c')](_0x4c1e31('0x46'),_0x214011),request({'uri':util[_0x4c1e31('0x17')](_0x4c1e31('0x32'),_0x1d8515['remoteUri']),'qs':{'query':util[_0x4c1e31('0x17')](_0x4c1e31('0x3e'),_0x214011)}})[_0x4c1e31('0x61')](function(_0x437372){const _0x31efe5=_0x4c1e31;let _0x5e07da;return _0x437372[_0x31efe5('0x51')][_0x31efe5('0x24')]&&(_0x437372['results']=_[_0x31efe5('0x7')](_0x437372[_0x31efe5('0x51')],{'suspended':![],'role':_0x31efe5('0x59')}),_0x437372[_0x31efe5('0x51')][_0x31efe5('0x24')]&&(_0x5e07da=_[_0x31efe5('0x18')](_0x437372[_0x31efe5('0x51')]))),_0x5e07da?(logger[_0x31efe5('0x4c')](_0x31efe5('0xc')),_0x5e07da):(logger[_0x31efe5('0x4c')](_0x31efe5('0x3d')),request({'uri':util[_0x31efe5('0x17')](_0x31efe5('0x13'),_0x1d8515[_0x31efe5('0x23')]),'method':'POST','body':{'user':{'role':_0x31efe5('0x59'),'name':util['format'](_0x31efe5('0x52'),_0x52cd7c||_0x214011),'phone':_0x214011}}})[_0x31efe5('0x61')](function(_0x1fbd93){const _0x47dba6=_0x31efe5;return logger['info'](_0x47dba6('0x8')),_0x1fbd93[_0x47dba6('0x11')];}));});}function getAuth(_0xcaf2af){const _0xefea24=_0x3035c9;let _0x137465;if(_0xcaf2af[_0xefea24('0x2f')]===_0xefea24('0x62'))_0x137465=util['format'](_0xefea24('0x43'),_0xcaf2af[_0xefea24('0x22')],_0xcaf2af['password']);else _0xcaf2af[_0xefea24('0x2f')]==='token'&&(_0x137465=util[_0xefea24('0x17')](_0xefea24('0x1a'),_0xcaf2af[_0xefea24('0x22')],_0xcaf2af[_0xefea24('0x5b')]));return util[_0xefea24('0x17')](_0xefea24('0x40'),Buffer['from'](_0x137465)['toString'](_0xefea24('0x54')));}function request(_0x3231de){const _0x2068a9=_0x3035c9;return logger['debug'](_0x2068a9('0x2b'),JSON[_0x2068a9('0x2e')](_0x3231de)),rp(_[_0x2068a9('0x4')](_0x3231de,{'method':'GET','headers':headers,'json':!![]}));}function getTags(_0x542989,_0x434bd8){const _0x184cbb=_0x3035c9;let _0x3d100c=[];return _0x542989&&_0x542989[_0x184cbb('0x24')]>0x0&&(_0x3d100c=_['map'](_0x542989,_0x434bd8)),_0x3d100c;}function getCustomFields(_0x6f747f,_0x3a7929){const _0x2e8c6d=_0x3035c9,_0x9d5650={'custom_fields':[]};return _0x6f747f[_0x2e8c6d('0x24')]>0x0&&_[_0x2e8c6d('0x5')](_0x6f747f,function(_0x47301c){const _0x32fd3a=_0x2e8c6d;if(_0x47301c['type']===_0x32fd3a('0x26')&&_0x47301c['nameField']&&!_0x47301c[_0x32fd3a('0x37')])_0x9d5650[_0x47301c['nameField']['toLowerCase']()]=_0x47301c[_0x32fd3a('0x5d')][_0x32fd3a('0x1f')]();else{if(_0x47301c[_0x32fd3a('0x33')]===_0x32fd3a('0x26')&&_0x47301c[_0x32fd3a('0x48')]&&_0x47301c[_0x32fd3a('0x37')])_0x9d5650[_0x32fd3a('0x1e')][_0x32fd3a('0x3f')]({'id':_0x47301c[_0x32fd3a('0x48')],'value':_0x47301c[_0x32fd3a('0x5d')][_0x32fd3a('0x1f')]()});else{if(_0x47301c[_0x32fd3a('0x33')]===_0x32fd3a('0x49')&&_0x47301c[_0x32fd3a('0x34')]&&_0x47301c['idField']&&_0x47301c[_0x32fd3a('0x37')])_0x3a7929[_0x47301c['variableName']]&&_0x9d5650['custom_fields']['push']({'id':_0x47301c[_0x32fd3a('0x48')],'value':_0x3a7929[_0x47301c[_0x32fd3a('0x34')]][_0x32fd3a('0x1f')]()});else _0x47301c[_0x32fd3a('0x33')]==='customVariable'&&_0x47301c['Variable']&&_0x47301c[_0x32fd3a('0x41')][_0x32fd3a('0x56')]&&_0x47301c['idField']&&_0x47301c['customField']&&(_0x3a7929[_0x47301c[_0x32fd3a('0x41')][_0x32fd3a('0x56')][_0x32fd3a('0x2a')]()]&&_0x9d5650['custom_fields'][_0x32fd3a('0x3f')]({'id':_0x47301c[_0x32fd3a('0x48')],'value':_0x3a7929[_0x47301c[_0x32fd3a('0x41')][_0x32fd3a('0x56')][_0x32fd3a('0x2a')]()][_0x32fd3a('0x1f')]()}));}}}),_0x9d5650;}exports[_0x3035c9('0x4e')]=function(_0x2ae834,_0x141351,_0x16ed61,_0x39bd21,_0x34f71e,_0x16a6f0){const _0x45b7e2=_0x3035c9;let _0x1fdb97,_0x33c582;return _0x16a6f0[_0x45b7e2('0x23')]=intUtil[_0x45b7e2('0x0')](_0x16a6f0[_0x45b7e2('0x23')]),_0x16a6f0['serverUrl']=intUtil['stripTrailingSlash'](_0x16a6f0['serverUrl']),_0x34f71e&&_0x34f71e['monitor_format']?(logger[_0x45b7e2('0x4c')](_0x45b7e2('0x58'),_0x45b7e2('0x12')),_0x141351[_0x45b7e2('0x47')]=util[_0x45b7e2('0x17')](_0x45b7e2('0xb'),_0x16a6f0[_0x45b7e2('0x3b')],_0x141351[_0x45b7e2('0x1')],md5(_0x141351[_0x45b7e2('0x1')]))):_0x141351[_0x45b7e2('0x47')]='',headers[_0x45b7e2('0x16')]=getAuth(_0x16a6f0),getUser(_0x16a6f0,_0x39bd21[_0x45b7e2('0x19')])[_0x45b7e2('0x61')](function(_0x42e1cd){const _0x50c659=_0x45b7e2;return _0x1fdb97=_0x42e1cd,logger[_0x50c659('0x4c')](_0x50c659('0x27'),_0x1fdb97['id']),getEndUser(_0x16a6f0,_0x141351['calleridname'],_0x141351[_0x50c659('0x53')]);})['then'](function(_0x55fa53){const _0x230810=_0x45b7e2;return _0x33c582=_0x55fa53,logger[_0x230810('0x4c')](_0x230810('0x5e'),_0x33c582['id']),getTicket(_0x16a6f0,_0x1fdb97,_0x33c582,_0x16ed61,_0x141351);})['then'](function(_0x37f5be){const _0x5086ef=_0x45b7e2;if(_0x37f5be){logger[_0x5086ef('0x4c')](_0x5086ef('0xe'),_0x37f5be['id']);switch(_0x16a6f0[_0x5086ef('0x33')]){case _0x5086ef('0x30'):logger[_0x5086ef('0x4c')](_0x5086ef('0x58'),'Displaying\x20ticket\x20to\x20agent...');return request({'uri':util[_0x5086ef('0x17')](_0x5086ef('0x45'),_0x16a6f0[_0x5086ef('0x23')],_0x1fdb97['id'],_0x37f5be['id']),'method':_0x5086ef('0x42')});case _0x5086ef('0x38'):logger[_0x5086ef('0x4c')]('[QUEUE]',_0x5086ef('0x3')),emit(util[_0x5086ef('0x17')]('user:%s',_0x39bd21[_0x5086ef('0x56')]),_0x5086ef('0x15'),{'uri':util['format']('%s/agent/tickets/%s',_0x16a6f0[_0x5086ef('0x23')][_0x5086ef('0xf')](_0x5086ef('0x28')),_0x37f5be['id'])});break;default:logger['error'](_0x5086ef('0x58'),_0x5086ef('0x2c'));}}})[_0x45b7e2('0x6')](function(_0x449bbe){const _0x318ba7=_0x45b7e2;logger[_0x318ba7('0x2')]('[QUEUE]\x20Error\x20running\x20Zendesk\x20integration',util[_0x318ba7('0x60')](_0x449bbe,{'showHidden':!![],'depth':null}));});},exports[_0x3035c9('0x5c')]=function(_0x48142e,_0x43be19,_0x4d1511,_0x561ca3,_0x1cc7cd,_0x4e5e23,_0x3ebe5a){const _0x1fbdee=_0x3035c9;let _0x418bf1,_0x1987f1;return _0x4e5e23[_0x1fbdee('0x23')]=intUtil['stripTrailingSlash'](_0x4e5e23['remoteUri']),_0x4e5e23[_0x1fbdee('0x3b')]=intUtil['stripTrailingSlash'](_0x4e5e23[_0x1fbdee('0x3b')]),_0x3ebe5a&&_0x3ebe5a['recordingFormat']&&_0x3ebe5a['recordingFormat']!==_0x1fbdee('0x20')&&(logger[_0x1fbdee('0x4c')](_0x1fbdee('0x1c'),_0x1fbdee('0x12')),_0x43be19[_0x1fbdee('0x47')]=util[_0x1fbdee('0x17')](_0x1fbdee('0xb'),_0x4e5e23[_0x1fbdee('0x3b')],_0x43be19[_0x1fbdee('0x1')],md5(_0x43be19[_0x1fbdee('0x1')]))),headers[_0x1fbdee('0x16')]=getAuth(_0x4e5e23),getUser(_0x4e5e23,_0x561ca3[_0x1fbdee('0x19')])[_0x1fbdee('0x61')](function(_0x273e3e){const _0x386fe3=_0x1fbdee;return _0x418bf1=_0x273e3e,logger[_0x386fe3('0x4c')](_0x386fe3('0x27'),_0x418bf1['id']),getEndUser(_0x4e5e23,_0x43be19[_0x386fe3('0x9')],_0x43be19[_0x386fe3('0x5a')]);})[_0x1fbdee('0x61')](function(_0xb714c0){const _0x4b81ce=_0x1fbdee;return _0x1987f1=_0xb714c0,logger['info'](_0x4b81ce('0x5e'),_0x1987f1['id']),getTicket(_0x4e5e23,_0x418bf1,_0x1987f1,_0x4d1511,_0x43be19);})[_0x1fbdee('0x61')](function(_0x503f38){const _0x4cbafc=_0x1fbdee;if(_0x503f38){logger['info'](_0x4cbafc('0xe'),_0x503f38['id']);switch(_0x4e5e23[_0x4cbafc('0x33')]){case _0x4cbafc('0x30'):logger[_0x4cbafc('0x4c')](_0x4cbafc('0x1c'),_0x4cbafc('0x29'));return request({'uri':util[_0x4cbafc('0x17')](_0x4cbafc('0x45'),_0x4e5e23[_0x4cbafc('0x23')],_0x418bf1['id'],_0x503f38['id']),'method':'POST'});case _0x4cbafc('0x38'):logger['info']('[OUTBOUND]',_0x4cbafc('0x3')),emit(util['format']('user:%s',_0x561ca3[_0x4cbafc('0x56')]),_0x4cbafc('0x15'),{'uri':util[_0x4cbafc('0x17')](_0x4cbafc('0x3a'),_0x4e5e23[_0x4cbafc('0x23')][_0x4cbafc('0xf')](_0x4cbafc('0x28')),_0x503f38['id'])});break;default:logger[_0x4cbafc('0x2')](_0x4cbafc('0x1c'),_0x4cbafc('0x2c'));}}})[_0x1fbdee('0x6')](function(_0x4d6c45){const _0x9e2f4f=_0x1fbdee;logger[_0x9e2f4f('0x2')]('[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration',util[_0x9e2f4f('0x60')](_0x4d6c45,{'showHidden':!![],'depth':null}));});},exports[_0x3035c9('0x25')]=function(_0x3b1038,_0x419d33,_0x30101e,_0xcc7d96,_0x57e606,_0x104a65){const _0x3d5e1d=_0x3035c9;let _0x351be1,_0x193fa0;return _0x104a65[_0x3d5e1d('0x23')]=intUtil[_0x3d5e1d('0x0')](_0x104a65[_0x3d5e1d('0x23')]),_0x104a65[_0x3d5e1d('0x3b')]=intUtil[_0x3d5e1d('0x0')](_0x104a65[_0x3d5e1d('0x3b')]),_0x57e606&&_0x57e606[_0x3d5e1d('0x10')]?(logger[_0x3d5e1d('0x4c')]('['+_0x419d33[_0x3d5e1d('0x21')][_0x3d5e1d('0x57')]()+']',_0x3d5e1d('0x12')),_0x419d33[_0x3d5e1d('0x47')]=util[_0x3d5e1d('0x17')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x104a65[_0x3d5e1d('0x3b')],_0x419d33[_0x3d5e1d('0x1')],md5(_0x419d33['uniqueid']))):_0x419d33[_0x3d5e1d('0x47')]='',headers[_0x3d5e1d('0x16')]=getAuth(_0x104a65),getUser(_0x104a65)[_0x3d5e1d('0x61')](function(_0x25482a){const _0x35e605=_0x3d5e1d;return _0x351be1=_0x25482a,logger[_0x35e605('0x4c')]('The\x20User\x20ID\x20is:',_0x351be1['id']),getEndUser(_0x104a65,_0x419d33['calleridname'],_0x419d33[_0x35e605('0x53')]);})[_0x3d5e1d('0x61')](function(_0x1e8a8e){const _0x214b64=_0x3d5e1d;return _0x193fa0=_0x1e8a8e,logger[_0x214b64('0x4c')]('The\x20Enduser\x20ID\x20is:',_0x193fa0['id']),getTicket(_0x104a65,_0x351be1,_0x193fa0,_0x30101e,_0x419d33);})[_0x3d5e1d('0x61')](function(_0x25f6ef){const _0x140915=_0x3d5e1d;_0x25f6ef&&logger[_0x140915('0x4c')](_0x140915('0xe'),_0x25f6ef['id']);})['catch'](function(_0x16b70b){const _0x25362e=_0x3d5e1d;logger[_0x25362e('0x2')]('['+_0x419d33[_0x25362e('0x21')]['toUpperCase']()+']'+'\x20Error\x20running\x20Zendesk\x20integration',util[_0x25362e('0x60')](_0x16b70b,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1145_0x3fd9=['count','debug','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','lodash','push','Descriptions','defaults','calleridnum','stringify','format','end-user','Creating\x20new\x20ticket...','%s/tickets.json','POST','newTab','The\x20User\x20ID\x20is:','type:user\x20role:end-user\x20phone:%s','Fields','application/json','Displaying\x20ticket\x20to\x20agent...','validateEmail','from','authType','serverUrl','[QUEUE]','Zendesk\x20account\x20type\x20not\x20recognized','Authorization','password','email','remoteUri','toUpperCase','idField','%s/search.json','find','map','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','toLowerCase','recordingURL','./util','first','emit','variable','../../../../rediscache','agent','calleridname','replace','Basic\x20%s','base64','Enduser\x20created.','trigger:browser:url','monitor_format','uniqueid','getString','catch','filter','user','%s/users.json','length','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','lastevent','nameField','info','md5','inspect','type','\x20Error\x20running\x20Zendesk\x20integration','../../../../config/logger','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','toString','Enduser\x20found!','unmanaged','stripTrailingSlash','The\x20Ticket\x20ID\x20is:','/api/v2','[OUTBOUND]','customVariable','[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration','%s/users/me.json','The\x20Enduser\x20ID\x20is:','none','content','username','then','customField','recordingFormat','[HTTP]','queue','error','destcalleridname','GET','%s/agent/tickets/%s','variableName','Recording\x20is\x20enabled!','Searching\x20enduser\x20with\x20phone','results','%s/channels/voice/agents/%d/tickets/%d/display.json','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','Caller\x20-\x20%s','string','destcalleridnum','name','Admin\x20account\x20selected.','Variable','custom_fields'];(function(_0x4d2693,_0x3fd94d){const _0x9caeee=function(_0x3a2743){while(--_0x3a2743){_0x4d2693['push'](_0x4d2693['shift']());}};_0x9caeee(++_0x3fd94d);}(a1145_0x3fd9,0x1c4));const a1145_0x9cae=function(_0x4d2693,_0x3fd94d){_0x4d2693=_0x4d2693-0x0;let _0x9caeee=a1145_0x3fd9[_0x4d2693];return _0x9caeee;};const _0x14dec5=a1145_0x9cae;'use strict';const _=require(_0x14dec5('0x47')),rp=require('request-promise-native'),md5=require(_0x14dec5('0x1a')),util=require('util'),intUtil=require(_0x14dec5('0x2')),logger=require(_0x14dec5('0x1e'))('zendesk'),{getSocket}=require(_0x14dec5('0x6')),io=getSocket();function emit(_0x3a2743,_0x1ca01e,_0x1adc0){const _0x9a8268=_0x14dec5;io['to'](_0x3a2743)[_0x9a8268('0x4')](_0x1ca01e,_0x1adc0);}const headers={'Content-Type':'application/json','Accept':_0x14dec5('0x56')};function getTicket(_0xcdd16f,_0x404a76,_0x2a0889,_0x4c0621,_0xd53451){const _0x273e7a=_0x14dec5;return logger[_0x273e7a('0x19')](_0x273e7a('0x4f')),request({'uri':util['format'](_0x273e7a('0x50'),_0xcdd16f[_0x273e7a('0x61')]),'method':'POST','body':{'ticket':_['merge']({'requester_id':_0x2a0889['id'],'submitter_id':_0x404a76?_0x404a76['id']:undefined,'assignee_id':_0x404a76?_0x404a76['id']:undefined,'tags':getTags(_0x4c0621['Tags'],_0x273e7a('0x40')),'subject':intUtil[_0x273e7a('0x10')](_0x4c0621['Subjects'],_0xd53451,'\x20'),'description':intUtil[_0x273e7a('0x10')](_0x4c0621['Descriptions'],_0xd53451,'\x0a'),'comment':{'public':![],'body':intUtil[_0x273e7a('0x10')](_0x4c0621[_0x273e7a('0x49')],_0xd53451,'\x0a')}},getCustomFields(_0x4c0621[_0x273e7a('0x55')],_0xd53451))}})[_0x273e7a('0x2e')](function(_0x355de1){const _0x4ff676=_0x273e7a;return logger[_0x4ff676('0x19')]('Ticket\x20created!'),_0x355de1['ticket'];});}function getUser(_0x1f6f1e,_0x16882f){const _0x2289ee=_0x14dec5;return intUtil[_0x2289ee('0x58')](_0x16882f)?(logger[_0x2289ee('0x19')]('Getting\x20agent\x20with\x20email',_0x16882f),request({'uri':util[_0x2289ee('0x4d')](_0x2289ee('0x64'),_0x1f6f1e['remoteUri']),'qs':{'query':util[_0x2289ee('0x4d')]('type:user\x20role:agent\x20email:%s',_0x16882f)}})[_0x2289ee('0x2e')](function(_0x576ed9){const _0x220cb1=_0x2289ee;return _0x576ed9[_0x220cb1('0x44')]?(logger[_0x220cb1('0x19')]('Agent\x20found!'),_[_0x220cb1('0x65')](_0x576ed9[_0x220cb1('0x3a')],{'email':_0x16882f,'role':_0x220cb1('0x7')})):(logger[_0x220cb1('0x19')](_0x220cb1('0x1f')),request({'uri':util['format']('%s/users/me.json',_0x1f6f1e[_0x220cb1('0x61')])})[_0x220cb1('0x2e')](function(_0x54dee4){const _0x5cbc18=_0x220cb1;return logger[_0x5cbc18('0x19')](_0x5cbc18('0x41')),_0x54dee4[_0x5cbc18('0x13')];}));})):(logger[_0x2289ee('0x19')](_0x2289ee('0x1f')),request({'uri':util[_0x2289ee('0x4d')](_0x2289ee('0x29'),_0x1f6f1e['remoteUri'])})[_0x2289ee('0x2e')](function(_0x5eed88){const _0x46a577=_0x2289ee;return logger[_0x46a577('0x19')](_0x46a577('0x41')),_0x5eed88[_0x46a577('0x13')];}));}function getEndUser(_0x34d10e,_0x2632b9,_0x2b9345){const _0x403809=_0x14dec5;return logger[_0x403809('0x19')](_0x403809('0x39'),_0x2b9345),request({'uri':util['format'](_0x403809('0x64'),_0x34d10e[_0x403809('0x61')]),'qs':{'query':util[_0x403809('0x4d')](_0x403809('0x54'),_0x2b9345)}})[_0x403809('0x2e')](function(_0x1ea78e){const _0x4dc859=_0x403809;let _0x10e7b6;return _0x1ea78e[_0x4dc859('0x3a')]['length']&&(_0x1ea78e[_0x4dc859('0x3a')]=_[_0x4dc859('0x12')](_0x1ea78e[_0x4dc859('0x3a')],{'suspended':![],'role':_0x4dc859('0x4e')}),_0x1ea78e[_0x4dc859('0x3a')][_0x4dc859('0x15')]&&(_0x10e7b6=_[_0x4dc859('0x3')](_0x1ea78e[_0x4dc859('0x3a')]))),_0x10e7b6?(logger[_0x4dc859('0x19')](_0x4dc859('0x21')),_0x10e7b6):(logger['info'](_0x4dc859('0x16')),request({'uri':util[_0x4dc859('0x4d')](_0x4dc859('0x14'),_0x34d10e['remoteUri']),'method':'POST','body':{'user':{'role':'end-user','name':util[_0x4dc859('0x4d')](_0x4dc859('0x3d'),_0x2632b9||_0x2b9345),'phone':_0x2b9345}}})[_0x4dc859('0x2e')](function(_0x4d2c83){const _0x5457dc=_0x4dc859;return logger[_0x5457dc('0x19')](_0x5457dc('0xc')),_0x4d2c83[_0x5457dc('0x13')];}));});}function getAuth(_0x480986){const _0x77712f=_0x14dec5;let _0x3c66c6;if(_0x480986[_0x77712f('0x5a')]==='password')_0x3c66c6=util[_0x77712f('0x4d')]('%s:%s',_0x480986[_0x77712f('0x2d')],_0x480986[_0x77712f('0x5f')]);else _0x480986[_0x77712f('0x5a')]==='token'&&(_0x3c66c6=util[_0x77712f('0x4d')]('%s/token:%s',_0x480986['username'],_0x480986['token']));return util[_0x77712f('0x4d')](_0x77712f('0xa'),Buffer[_0x77712f('0x59')](_0x3c66c6)[_0x77712f('0x20')](_0x77712f('0xb')));}function request(_0x265e31){const _0x2633e5=_0x14dec5;return logger[_0x2633e5('0x45')](_0x2633e5('0x31'),JSON[_0x2633e5('0x4c')](_0x265e31)),rp(_[_0x2633e5('0x4a')](_0x265e31,{'method':_0x2633e5('0x35'),'headers':headers,'json':!![]}));}function getTags(_0x32a37f,_0x388e0c){const _0x128b89=_0x14dec5;let _0x220847=[];return _0x32a37f&&_0x32a37f[_0x128b89('0x15')]>0x0&&(_0x220847=_[_0x128b89('0x66')](_0x32a37f,_0x388e0c)),_0x220847;}function getCustomFields(_0x2a3bc7,_0x424f6e){const _0xd6b1ee={'custom_fields':[]};return _0x2a3bc7['length']>0x0&&_['forEach'](_0x2a3bc7,function(_0x33ad4d){const _0xfc2590=a1145_0x9cae;if(_0x33ad4d['type']===_0xfc2590('0x3e')&&_0x33ad4d[_0xfc2590('0x18')]&&!_0x33ad4d[_0xfc2590('0x2f')])_0xd6b1ee[_0x33ad4d[_0xfc2590('0x18')]['toLowerCase']()]=_0x33ad4d[_0xfc2590('0x2c')][_0xfc2590('0x20')]();else{if(_0x33ad4d[_0xfc2590('0x1c')]===_0xfc2590('0x3e')&&_0x33ad4d[_0xfc2590('0x63')]&&_0x33ad4d[_0xfc2590('0x2f')])_0xd6b1ee[_0xfc2590('0x43')][_0xfc2590('0x48')]({'id':_0x33ad4d[_0xfc2590('0x63')],'value':_0x33ad4d[_0xfc2590('0x2c')][_0xfc2590('0x20')]()});else{if(_0x33ad4d[_0xfc2590('0x1c')]===_0xfc2590('0x5')&&_0x33ad4d[_0xfc2590('0x37')]&&_0x33ad4d[_0xfc2590('0x63')]&&_0x33ad4d[_0xfc2590('0x2f')])_0x424f6e[_0x33ad4d[_0xfc2590('0x37')]]&&_0xd6b1ee[_0xfc2590('0x43')]['push']({'id':_0x33ad4d[_0xfc2590('0x63')],'value':_0x424f6e[_0x33ad4d[_0xfc2590('0x37')]][_0xfc2590('0x20')]()});else _0x33ad4d[_0xfc2590('0x1c')]===_0xfc2590('0x27')&&_0x33ad4d['Variable']&&_0x33ad4d[_0xfc2590('0x42')][_0xfc2590('0x40')]&&_0x33ad4d[_0xfc2590('0x63')]&&_0x33ad4d[_0xfc2590('0x2f')]&&(_0x424f6e[_0x33ad4d[_0xfc2590('0x42')][_0xfc2590('0x40')][_0xfc2590('0x0')]()]&&_0xd6b1ee[_0xfc2590('0x43')][_0xfc2590('0x48')]({'id':_0x33ad4d[_0xfc2590('0x63')],'value':_0x424f6e[_0x33ad4d[_0xfc2590('0x42')][_0xfc2590('0x40')][_0xfc2590('0x0')]()][_0xfc2590('0x20')]()}));}}}),_0xd6b1ee;}exports[_0x14dec5('0x32')]=function(_0x543b3d,_0x22795f,_0x4fe7b6,_0x20e214,_0x12e671,_0x4e2ed2){const _0x4779e9=_0x14dec5;let _0x4bc080,_0x446ca4;return _0x4e2ed2[_0x4779e9('0x61')]=intUtil['stripTrailingSlash'](_0x4e2ed2['remoteUri']),_0x4e2ed2[_0x4779e9('0x5b')]=intUtil[_0x4779e9('0x23')](_0x4e2ed2[_0x4779e9('0x5b')]),_0x12e671&&_0x12e671[_0x4779e9('0xe')]?(logger[_0x4779e9('0x19')](_0x4779e9('0x5c'),_0x4779e9('0x38')),_0x22795f[_0x4779e9('0x1')]=util[_0x4779e9('0x4d')](_0x4779e9('0x67'),_0x4e2ed2[_0x4779e9('0x5b')],_0x22795f[_0x4779e9('0xf')],md5(_0x22795f[_0x4779e9('0xf')]))):_0x22795f[_0x4779e9('0x1')]='',headers[_0x4779e9('0x5e')]=getAuth(_0x4e2ed2),getUser(_0x4e2ed2,_0x20e214['email'])[_0x4779e9('0x2e')](function(_0x1e69cc){const _0x13cc27=_0x4779e9;return _0x4bc080=_0x1e69cc,logger[_0x13cc27('0x19')](_0x13cc27('0x53'),_0x4bc080['id']),getEndUser(_0x4e2ed2,_0x22795f[_0x13cc27('0x8')],_0x22795f[_0x13cc27('0x4b')]);})[_0x4779e9('0x2e')](function(_0x54cdec){const _0x389d50=_0x4779e9;return _0x446ca4=_0x54cdec,logger[_0x389d50('0x19')](_0x389d50('0x2a'),_0x446ca4['id']),getTicket(_0x4e2ed2,_0x4bc080,_0x446ca4,_0x4fe7b6,_0x22795f);})[_0x4779e9('0x2e')](function(_0x2e18ed){const _0xd76040=_0x4779e9;if(_0x2e18ed){logger['info'](_0xd76040('0x24'),_0x2e18ed['id']);switch(_0x4e2ed2[_0xd76040('0x1c')]){case'integrationTab':logger[_0xd76040('0x19')](_0xd76040('0x5c'),'Displaying\x20ticket\x20to\x20agent...');return request({'uri':util[_0xd76040('0x4d')]('%s/channels/voice/agents/%d/tickets/%d/display.json',_0x4e2ed2[_0xd76040('0x61')],_0x4bc080['id'],_0x2e18ed['id']),'method':_0xd76040('0x51')});case _0xd76040('0x52'):logger[_0xd76040('0x19')](_0xd76040('0x5c'),_0xd76040('0x3c')),emit(util[_0xd76040('0x4d')]('user:%s',_0x20e214[_0xd76040('0x40')]),_0xd76040('0xd'),{'uri':util[_0xd76040('0x4d')](_0xd76040('0x36'),_0x4e2ed2[_0xd76040('0x61')][_0xd76040('0x9')](_0xd76040('0x25')),_0x2e18ed['id'])});break;default:logger[_0xd76040('0x33')](_0xd76040('0x5c'),_0xd76040('0x5d'));}}})['catch'](function(_0x122c49){const _0xb6ee0a=_0x4779e9;logger['error'](_0xb6ee0a('0x46'),util[_0xb6ee0a('0x1b')](_0x122c49,{'showHidden':!![],'depth':null}));});},exports['outbound']=function(_0x5e6ffc,_0x570d46,_0x1a7683,_0x16e77f,_0x4d227f,_0x4cf96b,_0x233172){const _0x50c6a8=_0x14dec5;let _0x50f9a6,_0x5e0d10;return _0x4cf96b[_0x50c6a8('0x61')]=intUtil[_0x50c6a8('0x23')](_0x4cf96b[_0x50c6a8('0x61')]),_0x4cf96b[_0x50c6a8('0x5b')]=intUtil[_0x50c6a8('0x23')](_0x4cf96b[_0x50c6a8('0x5b')]),_0x233172&&_0x233172[_0x50c6a8('0x30')]&&_0x233172[_0x50c6a8('0x30')]!==_0x50c6a8('0x2b')&&(logger['info'](_0x50c6a8('0x26'),'Recording\x20is\x20enabled!'),_0x570d46[_0x50c6a8('0x1')]=util[_0x50c6a8('0x4d')](_0x50c6a8('0x67'),_0x4cf96b[_0x50c6a8('0x5b')],_0x570d46[_0x50c6a8('0xf')],md5(_0x570d46['uniqueid']))),headers[_0x50c6a8('0x5e')]=getAuth(_0x4cf96b),getUser(_0x4cf96b,_0x16e77f[_0x50c6a8('0x60')])[_0x50c6a8('0x2e')](function(_0x3d48a4){const _0x3d2661=_0x50c6a8;return _0x50f9a6=_0x3d48a4,logger[_0x3d2661('0x19')]('The\x20User\x20ID\x20is:',_0x50f9a6['id']),getEndUser(_0x4cf96b,_0x570d46[_0x3d2661('0x34')],_0x570d46[_0x3d2661('0x3f')]);})[_0x50c6a8('0x2e')](function(_0x51d886){return _0x5e0d10=_0x51d886,logger['info']('The\x20Enduser\x20ID\x20is:',_0x5e0d10['id']),getTicket(_0x4cf96b,_0x50f9a6,_0x5e0d10,_0x1a7683,_0x570d46);})[_0x50c6a8('0x2e')](function(_0x45c250){const _0xbd3475=_0x50c6a8;if(_0x45c250){logger['info'](_0xbd3475('0x24'),_0x45c250['id']);switch(_0x4cf96b[_0xbd3475('0x1c')]){case'integrationTab':logger[_0xbd3475('0x19')](_0xbd3475('0x26'),_0xbd3475('0x57'));return request({'uri':util['format'](_0xbd3475('0x3b'),_0x4cf96b['remoteUri'],_0x50f9a6['id'],_0x45c250['id']),'method':'POST'});case _0xbd3475('0x52'):logger[_0xbd3475('0x19')]('[OUTBOUND]',_0xbd3475('0x3c')),emit(util[_0xbd3475('0x4d')]('user:%s',_0x16e77f[_0xbd3475('0x40')]),_0xbd3475('0xd'),{'uri':util[_0xbd3475('0x4d')](_0xbd3475('0x36'),_0x4cf96b[_0xbd3475('0x61')][_0xbd3475('0x9')](_0xbd3475('0x25')),_0x45c250['id'])});break;default:logger[_0xbd3475('0x33')](_0xbd3475('0x26'),_0xbd3475('0x5d'));}}})['catch'](function(_0x38a359){const _0x4ec67a=_0x50c6a8;logger[_0x4ec67a('0x33')](_0x4ec67a('0x28'),util[_0x4ec67a('0x1b')](_0x38a359,{'showHidden':!![],'depth':null}));});},exports[_0x14dec5('0x22')]=function(_0x13c04b,_0x220c06,_0x145862,_0x3c55e9,_0x391f35,_0x583c75){const _0x5df283=_0x14dec5;let _0x468877,_0x27e8cd;return _0x583c75['remoteUri']=intUtil[_0x5df283('0x23')](_0x583c75['remoteUri']),_0x583c75[_0x5df283('0x5b')]=intUtil[_0x5df283('0x23')](_0x583c75[_0x5df283('0x5b')]),_0x391f35&&_0x391f35[_0x5df283('0xe')]?(logger[_0x5df283('0x19')]('['+_0x220c06[_0x5df283('0x17')][_0x5df283('0x62')]()+']',_0x5df283('0x38')),_0x220c06[_0x5df283('0x1')]=util[_0x5df283('0x4d')](_0x5df283('0x67'),_0x583c75[_0x5df283('0x5b')],_0x220c06[_0x5df283('0xf')],md5(_0x220c06[_0x5df283('0xf')]))):_0x220c06[_0x5df283('0x1')]='',headers[_0x5df283('0x5e')]=getAuth(_0x583c75),getUser(_0x583c75)[_0x5df283('0x2e')](function(_0x2c79de){const _0x48fba5=_0x5df283;return _0x468877=_0x2c79de,logger[_0x48fba5('0x19')](_0x48fba5('0x53'),_0x468877['id']),getEndUser(_0x583c75,_0x220c06[_0x48fba5('0x8')],_0x220c06[_0x48fba5('0x4b')]);})[_0x5df283('0x2e')](function(_0x205a0e){const _0x20ab46=_0x5df283;return _0x27e8cd=_0x205a0e,logger['info'](_0x20ab46('0x2a'),_0x27e8cd['id']),getTicket(_0x583c75,_0x468877,_0x27e8cd,_0x145862,_0x220c06);})[_0x5df283('0x2e')](function(_0x1a3308){const _0x39fbf3=_0x5df283;_0x1a3308&&logger[_0x39fbf3('0x19')](_0x39fbf3('0x24'),_0x1a3308['id']);})[_0x5df283('0x11')](function(_0xc74070){const _0x3e7fda=_0x5df283;logger[_0x3e7fda('0x33')]('['+_0x220c06[_0x3e7fda('0x17')]['toUpperCase']()+']'+_0x3e7fda('0x1d'),util['inspect'](_0xc74070,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/integration/zoho.js b/server/services/ami/trigger/integration/zoho.js index 8a366b2..e106487 100644 --- a/server/services/ami/trigger/integration/zoho.js +++ b/server/services/ami/trigger/integration/zoho.js @@ -1 +1 @@ -const a1146_0x5741=['stripTrailingSlash','destcalleridname','Creating\x20new\x20call...','type','uri','Descriptions','YYYY-MM-DDTHH:mm:ss','https://accounts.zoho.com.au','Call\x20created!','agentcalledAt','administrator','calleridname','startCase','moduleSearch','format','SUCCESS','refreshToken','Zoho-oauthtoken\x20','stringify','toLowerCase','Failing\x20creating\x20the\x20access_token','log','variableName','Call_Type','isNil','https://accounts.zoho.in','util','isArrayLikeObject','err','Call_Duration','content','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','split','../../../../rediscache','nothing','https://www.zohoapis.','idField','[QUEUE]','monitor_format','Subject','Administrator','endtime','[OUTBOUND]','ActiveUsers','seconds','https://crm.','complete','profile','diff','GET','../../../../config/logger','isBefore','then','/oauth/v2/token','POST','/downloads?type=uniqueid&token=','Leads','talktime','clientSecret','indexOf','Contacts','refresh_token','The\x20failing\x20result\x20is','First_Name','The\x20User\x20ID\x20is:','utc','/crm/v2/','lastevent','Answered','/crm/v2/Calls','lead','trigger:browser:url','toString','The\x20Call\x20ID\x20is:','/api/voice/recordings/','string','users','last_name','Call_Start_Time','first_name','access_token','contact','debug','Call_Result','Last_Name','name','error','info','connect','user','recordingURL','stack','moduleCreate','answertime','timeout','Description','Timeout','Full_Name','/crm/EntityInfo.do?module=Calls&id=','getString','expires_in','findIndex','outbound','mm:ss','host','What_Id','abandoned','serverUrl','com','details','Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20','catch','Inbound','zoho','starttime','length','user:%s','md5','./util','/crm/v2/Contacts/search?criteria=((Phone:equals:','CREATE\x20ERROR','variable','Recording\x20is\x20enabled!','calleridnum','request-promise-native','recordingFormat','unmanaged','$se_module','data','Who_Id','email','forEach','https://accounts.zoho.eu','lodash','Variable','role','Search\x20user','zoho.eu','uniqueid','Fields','Using\x20the\x20admin\x20account!','customVariable','Subjects','/crm/v2/Leads/search?criteria=((Phone:equals:','enduserType','https://accounts.zoho.com','https://www.zohoapis.%s/crm/v2/users'];(function(_0x21cd30,_0x574186){const _0x1ccc42=function(_0x1cc831){while(--_0x1cc831){_0x21cd30['push'](_0x21cd30['shift']());}};_0x1ccc42(++_0x574186);}(a1146_0x5741,0x1a7));const a1146_0x1ccc=function(_0x21cd30,_0x574186){_0x21cd30=_0x21cd30-0x0;let _0x1ccc42=a1146_0x5741[_0x21cd30];return _0x1ccc42;};const _0xc329ee=a1146_0x1ccc;'use strict';const _=require(_0xc329ee('0x4')),rp=require(_0xc329ee('0x8e')),md5=require(_0xc329ee('0x87')),util=require(_0xc329ee('0x2c')),intUtil=require(_0xc329ee('0x88')),moment=require('moment'),logger=require(_0xc329ee('0x44'))(_0xc329ee('0x83')),{getSocket}=require(_0xc329ee('0x33')),io=getSocket();function emit(_0x1cc831,_0x202fcd,_0x59875d){io['to'](_0x1cc831)['emit'](_0x202fcd,_0x59875d);}function request(_0x475f5d){const _0x7d60ce=_0xc329ee;return logger[_0x7d60ce('0x64')]('[HTTP]',JSON['stringify'](_0x475f5d)),rp(_0x475f5d);}function getCustomFields(_0x2dc03b,_0x36b4aa){const _0x1e6790=_0xc329ee,_0x19a5e6={};return _0x2dc03b[_0x1e6790('0x85')]>0x0&&_[_0x1e6790('0x2')](_0x2dc03b,function(_0x35a77f){const _0x5be1bf=_0x1e6790;if(_0x35a77f[_0x5be1bf('0x15')]===_0x5be1bf('0x5d')&&_0x35a77f[_0x5be1bf('0x36')])_0x19a5e6[_0x35a77f['idField']]=_0x35a77f[_0x5be1bf('0x30')]['toString']();else{if(_0x35a77f[_0x5be1bf('0x15')]===_0x5be1bf('0x8b')&&_0x35a77f[_0x5be1bf('0x28')]&&_0x35a77f['idField']&&_0x36b4aa[_0x35a77f[_0x5be1bf('0x28')]])_0x19a5e6[_0x35a77f[_0x5be1bf('0x36')]]=_0x36b4aa[_0x35a77f[_0x5be1bf('0x28')]][_0x5be1bf('0x5a')]();else _0x35a77f[_0x5be1bf('0x15')]===_0x5be1bf('0xc')&&_0x35a77f[_0x5be1bf('0x5')]&&_0x35a77f[_0x5be1bf('0x5')]['name']&&_0x35a77f[_0x5be1bf('0x36')]&&_0x36b4aa[_0x35a77f[_0x5be1bf('0x5')][_0x5be1bf('0x67')][_0x5be1bf('0x25')]()]&&(_0x19a5e6[_0x35a77f[_0x5be1bf('0x36')]]=_0x36b4aa[_0x35a77f[_0x5be1bf('0x5')]['name'][_0x5be1bf('0x25')]()][_0x5be1bf('0x5a')]());}}),_0x19a5e6;}function getName(_0x116231){const _0x51771e=_0xc329ee;if(_0x116231[_0x51771e('0x4d')]('\x20')>0x0){const _0x12a4e5=_0x116231[_0x51771e('0x32')](/ (.+)/);if(_0x12a4e5[0x1])return _0x12a4e5;}return[_0x116231,_0x116231];}const accountsTokens={};function getAccessToken(_0x3a0713){return new Promise(function(_0x34b10d,_0x3954ef){const _0x17fe18=a1146_0x1ccc;!_['isNil'](accountsTokens[_0x3a0713['id']])&&!_[_0x17fe18('0x2a')](accountsTokens[_0x3a0713['id']][_0x17fe18('0x62')])&&(moment()[_0x17fe18('0x45')](accountsTokens[_0x3a0713['id']][_0x17fe18('0x76')])&&_0x34b10d(accountsTokens[_0x3a0713['id']]['access_token']));let _0x37ba46;switch(_0x3a0713['zone']){case'US':_0x37ba46=_0x17fe18('0x10');break;case'AU':_0x37ba46=_0x17fe18('0x19');break;case'EU':_0x37ba46=_0x17fe18('0x3');break;case'IN':_0x37ba46=_0x17fe18('0x2b');break;case'CN':_0x37ba46='https://accounts.zoho.com.cn';break;default:_0x37ba46=_0x17fe18('0x3');break;}const _0x37c826={'method':'POST','uri':_0x37ba46+_0x17fe18('0x47'),'qs':{'refresh_token':_0x3a0713[_0x17fe18('0x22')],'client_id':_0x3a0713['clientId'],'client_secret':_0x3a0713[_0x17fe18('0x4c')],'grant_type':_0x17fe18('0x4f')},'json':!![]};return rp(_0x37c826)['then'](function(_0x4de71a){const _0x1a4235=_0x17fe18;accountsTokens[_0x3a0713['id']]={'access_token':_0x4de71a[_0x1a4235('0x62')],'expires_in':moment()['add'](_0x4de71a[_0x1a4235('0x76')],_0x1a4235('0x3e'))},_0x34b10d(_0x4de71a[_0x1a4235('0x62')]);})['catch'](function(_0x351dc3){const _0x4cb130=_0x17fe18;logger['error'](_0x4cb130('0x26'),_0x351dc3[_0x4cb130('0x6d')]),_0x3954ef(_0x351dc3);});});}function getUser(_0x5c0111,_0x441649,_0x361efa,_0x45dafd){const _0x58f16c=_0xc329ee;return logger[_0x58f16c('0x69')](_0x58f16c('0x7')),request({'method':_0x58f16c('0x43'),'uri':util['format'](_0x58f16c('0x11'),_0x441649),'qs':{'type':_0x58f16c('0x3d')},'headers':{'Authorization':_0x58f16c('0x23')+_0x5c0111},'json':!![]})[_0x58f16c('0x46')](function(_0x5d2bdb){const _0x33c421=_0x58f16c;if(_0x5d2bdb['users']){let _0x387a56=-0x1;if(_[_0x33c421('0x2d')](_0x5d2bdb[_0x33c421('0x5e')]))return!_[_0x33c421('0x2a')](_0x45dafd)&&(_0x387a56=_[_0x33c421('0x77')](_0x5d2bdb[_0x33c421('0x5e')],function(_0x462f72){const _0x2dce8f=_0x33c421;return _0x462f72[_0x2dce8f('0x1')]===_0x45dafd;})),_0x387a56>=0x0?logger['info']('Agent\x20found!'):(logger[_0x33c421('0x69')]('Using\x20the\x20admin\x20account!'),_0x387a56=_[_0x33c421('0x77')](_0x5d2bdb[_0x33c421('0x5e')],function(_0x54d6de){const _0xb1e7a9=_0x33c421;return _0x54d6de['profile'][_0xb1e7a9('0x67')]===_0xb1e7a9('0x3a');})),_0x5d2bdb[_0x33c421('0x5e')][_0x387a56];else{if(_0x5d2bdb[_0x33c421('0x6b')][_0x33c421('0x41')][_0x33c421('0x67')]===_0x33c421('0x3a')){logger[_0x33c421('0x69')](_0x33c421('0xb'));const _0x106adb=_0x5d2bdb['user'];return _0x106adb;}else{logger[_0x33c421('0x68')](_0x33c421('0x50'),JSON[_0x33c421('0x24')](_0x5d2bdb));throw new Error(_0x33c421('0x80')+JSON[_0x33c421('0x24')](_0x5d2bdb));}}}else{logger[_0x33c421('0x68')]('The\x20failing\x20result\x20is',JSON[_0x33c421('0x24')](_0x5d2bdb));throw new Error(_0x33c421('0x80')+JSON['stringify'](_0x5d2bdb));}})[_0x58f16c('0x81')](function(_0x2c5078){const _0xf542a8=_0x58f16c;console[_0xf542a8('0x68')](_0x2c5078);});}function getZohoUser(_0x42c927,_0x583cbc){return new Promise(function(_0x391c03,_0x43e99c){request(_0x42c927)['then'](function(_0x54c369){const _0x20baa9=a1146_0x1ccc;let _0x1f001e=null;_0x54c369&&(_0x1f001e=_0x54c369[_0x20baa9('0x92')][0x0],_0x1f001e[_0x20baa9('0xf')]=_0x583cbc),_0x391c03(_0x1f001e);})['catch'](function(_0xc1471a){_0x43e99c(_0xc1471a);});});}function createEndUser(_0x240b07,_0x206511,_0x4a2fc1,_0x1b9d8b,_0x346f61,_0x279522){const _0x1e4bc6=_0xc329ee;return _0x4a2fc1=getName(_0x4a2fc1),request({'method':_0x1e4bc6('0x48'),'uri':_0x1e4bc6('0x35')+_0x206511+_0x1e4bc6('0x54')+_[_0x1e4bc6('0x1e')](_0x279522['moduleCreate'])+'s','body':{'data':[{'Last_Name':_0x4a2fc1[0x1],'First_Name':_0x4a2fc1[0x0],'Phone':_0x1b9d8b,'Owner':{'name':!_[_0x1e4bc6('0x2a')](_0x346f61[_0x1e4bc6('0x6')][_0x1e4bc6('0x67')])?_0x346f61[_0x1e4bc6('0x6')][_0x1e4bc6('0x67')]:!_[_0x1e4bc6('0x2a')](_0x346f61['first_name'])?_0x346f61[_0x1e4bc6('0x61')]+'\x20'+_0x346f61['last_name']:_0x346f61[_0x1e4bc6('0x5f')],'id':_0x346f61['id']}}]},'headers':{'Authorization':'Zoho-oauthtoken\x20'+_0x240b07},'json':!![]})[_0x1e4bc6('0x46')](function(_0x3f6437){const _0x1cdf40=_0x1e4bc6;if(_0x3f6437&&_0x3f6437['data'][0x0]['code']===_0x1cdf40('0x21')){const _0x254988=_0x3f6437[_0x1cdf40('0x92')][0x0][_0x1cdf40('0x7f')];return _0x254988['enduserType']=_[_0x1cdf40('0x1e')](_0x279522[_0x1cdf40('0x6e')])+'s',_0x254988;}const _0x518279=_0x3f6437[_0x1cdf40('0x92')];logger[_0x1cdf40('0x68')](_0x1cdf40('0x50'),JSON[_0x1cdf40('0x24')](_0x518279));throw new Error('Error:\x20'+JSON[_0x1cdf40('0x24')](_0x518279));})[_0x1e4bc6('0x81')](function(_0x1e68d2){const _0x3f4191=_0x1e4bc6;console[_0x3f4191('0x27')](_0x3f4191('0x8a'),_0x1e68d2);});}function getEndUser(_0x572dd3,_0x488580,_0x193b76,_0x399004,_0x2bd99f,_0x22a776,_0x7a672d){const _0xbda1dd=_0xc329ee,_0x525637={'method':_0xbda1dd('0x43'),'uri':'','headers':{'Authorization':'Zoho-oauthtoken\x20'+_0x572dd3},'json':!![]};switch(_0x7a672d[_0xbda1dd('0x1f')]){case'contact_lead':_0x525637[_0xbda1dd('0x16')]=_0xbda1dd('0x35')+_0x488580+'/crm/v2/Contacts/search?criteria=((Phone:equals:'+_0x2bd99f+'))';return getZohoUser(_0x525637,_0xbda1dd('0x4e'))[_0xbda1dd('0x46')](function(_0x1b4908){const _0x25ae68=_0xbda1dd;if(_0x1b4908)return _0x1b4908;return _0x525637[_0x25ae68('0x16')]=_0x25ae68('0x35')+_0x488580+_0x25ae68('0xe')+_0x2bd99f+'))',getZohoUser(_0x525637,'Leads')[_0x25ae68('0x46')](function(_0x1f222f){const _0x327214=_0x25ae68;if(_0x1f222f)return _0x1f222f;return _0x7a672d[_0x327214('0x6e')]!=_0x327214('0x34')?createEndUser(_0x572dd3,_0x488580,_0x399004,_0x2bd99f,_0x22a776,_0x7a672d):{};});});case _0xbda1dd('0x63'):_0x525637['uri']=_0xbda1dd('0x35')+_0x488580+_0xbda1dd('0x89')+_0x2bd99f+'))';return getZohoUser(_0x525637,'Contacts')[_0xbda1dd('0x46')](function(_0x2d4053){const _0x1230a1=_0xbda1dd;if(_0x2d4053)return _0x2d4053;return _0x7a672d[_0x1230a1('0x6e')]!=_0x1230a1('0x34')?createEndUser(_0x572dd3,_0x488580,_0x399004,_0x2bd99f,_0x22a776,_0x7a672d):{};});case _0xbda1dd('0x58'):_0x525637[_0xbda1dd('0x16')]=_0xbda1dd('0x35')+_0x488580+_0xbda1dd('0xe')+_0x2bd99f+'))';return getZohoUser(_0x525637,_0xbda1dd('0x4a'))[_0xbda1dd('0x46')](function(_0xb78145){const _0x40ba49=_0xbda1dd;if(_0xb78145)return _0xb78145;return _0x7a672d[_0x40ba49('0x6e')]!=_0x40ba49('0x34')?createEndUser(_0x572dd3,_0x488580,_0x399004,_0x2bd99f,_0x22a776,_0x7a672d):{};});}}function getCall(_0x115def,_0x1f52d5,_0x248c87,_0x4f56fc,_0x10a227,_0x2136a3,_0x2a8527,_0x523ea5){const _0x2093dc=_0xc329ee;logger[_0x2093dc('0x69')](_0x2093dc('0x14'));let _0x4ab601={};_0x4ab601['Owner']={'name':!_[_0x2093dc('0x2a')](_0x4f56fc[_0x2093dc('0x6')][_0x2093dc('0x67')])&&!_[_0x2093dc('0x2a')](_0x4f56fc[_0x2093dc('0x41')][_0x2093dc('0x67')])&&_0x4f56fc['profile']['name']===_0x2093dc('0x1c')?_0x4f56fc[_0x2093dc('0x6')]['name']:!_[_0x2093dc('0x2a')](_0x4f56fc[_0x2093dc('0x61')])?_0x4f56fc[_0x2093dc('0x61')]+'\x20'+_0x4f56fc['last_name']:_0x4f56fc['last_name'],'id':_0x4f56fc['id']},_0x4ab601[_0x2093dc('0x39')]=intUtil[_0x2093dc('0x75')](_0x2136a3[_0x2093dc('0xd')],_0x2a8527,'\x20'),_0x4ab601[_0x2093dc('0x71')]=intUtil[_0x2093dc('0x75')](_0x2136a3[_0x2093dc('0x17')],_0x2a8527,'\x0a');_0x10a227['enduserType']===_0x2093dc('0x4e')&&(_0x4ab601[_0x2093dc('0x0')]={'name':!_[_0x2093dc('0x2a')](_0x10a227[_0x2093dc('0x73')])?_0x10a227[_0x2093dc('0x73')]:!_['isNil'](_0x10a227['First_Name'])?_0x10a227['First_Name']+'\x20'+_0x10a227[_0x2093dc('0x66')]:_0x10a227[_0x2093dc('0x66')],'id':_0x10a227['id']});_0x10a227[_0x2093dc('0xf')]===_0x2093dc('0x4a')&&(_0x4ab601[_0x2093dc('0x7b')]={'name':!_[_0x2093dc('0x2a')](_0x10a227['Full_Name'])?_0x10a227[_0x2093dc('0x73')]:!_['isNil'](_0x10a227[_0x2093dc('0x51')])?_0x10a227['First_Name']+'\x20'+_0x10a227['Last_Name']:_0x10a227['Last_Name'],'id':_0x10a227['id']},_0x4ab601[_0x2093dc('0x91')]=_['startCase'](_0x10a227[_0x2093dc('0xf')]));if(_0x2a8527[_0x2093dc('0x4b')])_0x4ab601[_0x2093dc('0x2f')]=moment[_0x2093dc('0x53')](parseInt(_0x2a8527[_0x2093dc('0x4b')])*0x3e8)[_0x2093dc('0x20')](_0x2093dc('0x79'));else _0x2a8527[_0x2093dc('0x6f')]&&_0x2a8527[_0x2093dc('0x3b')]&&(_0x4ab601['Call_Duration']=moment[_0x2093dc('0x53')](moment(_0x2a8527[_0x2093dc('0x3b')],_0x2093dc('0x18'))[_0x2093dc('0x42')](moment(_0x2a8527[_0x2093dc('0x84')],_0x2093dc('0x18'))))[_0x2093dc('0x20')](_0x2093dc('0x79')));switch(_0x2a8527[_0x2093dc('0x55')]){case'called':_0x4ab601[_0x2093dc('0x65')]='Called';break;case _0x2093dc('0x40'):case _0x2093dc('0x6a'):_0x4ab601['Call_Result']=_0x2093dc('0x56');break;case'rejected':_0x4ab601[_0x2093dc('0x65')]='Rejected';break;case _0x2093dc('0x7c'):_0x4ab601[_0x2093dc('0x65')]='Abandoned';break;case _0x2093dc('0x70'):_0x4ab601[_0x2093dc('0x65')]=_0x2093dc('0x72');break;default:break;}return _0x4ab601[_0x2093dc('0x60')]=(_0x523ea5===_0x2093dc('0x78')?moment(_0x2a8527[_0x2093dc('0x84')])['format'](_0x2093dc('0x18')):moment(_0x2a8527[_0x2093dc('0x1b')])[_0x2093dc('0x20')](_0x2093dc('0x18')))||moment()[_0x2093dc('0x20')]('YYYY-MM-DDTHH:mm:ss'),_0x4ab601[_0x2093dc('0x29')]=_0x523ea5||_0x2093dc('0x82'),_0x4ab601=_['merge'](_0x4ab601,getCustomFields(_0x2136a3[_0x2093dc('0xa')],_0x2a8527)),request({'method':_0x2093dc('0x48'),'uri':_0x2093dc('0x35')+_0x1f52d5+_0x2093dc('0x57'),'headers':{'Authorization':_0x2093dc('0x23')+_0x115def},'body':{'data':[_0x4ab601]},'json':!![]})[_0x2093dc('0x46')](function(_0x58cdef){const _0x1a3b5b=_0x2093dc;if(_0x58cdef&&_0x58cdef['data'][0x0]['code']===_0x1a3b5b('0x21'))return logger[_0x1a3b5b('0x69')](_0x1a3b5b('0x1a')),{'id':_0x58cdef[_0x1a3b5b('0x92')][0x0][_0x1a3b5b('0x7f')]['id']};})[_0x2093dc('0x81')](function(_0x3ccf26){const _0x3c9299=_0x2093dc;logger[_0x3c9299('0x69')](_0x3c9299('0x2e'),_0x3ccf26[_0x3c9299('0x6d')]),console[_0x3c9299('0x27')](_0x3c9299('0x2e'),_0x3ccf26);});}exports['queue']=function(_0x477891,_0x52ffd3,_0x28e4c1,_0x23dae6,_0x2bc3db,_0x2af422){const _0x1b9db3=_0xc329ee;let _0x36aeba,_0x4bf552,_0x5c2e14;_0x2af422[_0x1b9db3('0x7a')]=intUtil[_0x1b9db3('0x12')](_0x2af422['host']),_0x2af422[_0x1b9db3('0x7d')]=intUtil[_0x1b9db3('0x12')](_0x2af422[_0x1b9db3('0x7d')]);_0x2bc3db&&_0x2bc3db[_0x1b9db3('0x38')]?(logger['info'](_0x1b9db3('0x37'),'Recording\x20is\x20enabled!'),_0x52ffd3[_0x1b9db3('0x6c')]=_0x2af422[_0x1b9db3('0x7d')]+_0x1b9db3('0x5c')+_0x52ffd3[_0x1b9db3('0x9')]+'/downloads?type=uniqueid&token='+md5(_0x52ffd3[_0x1b9db3('0x9')])):_0x52ffd3[_0x1b9db3('0x6c')]='';const _0x26d9b3=_0x2af422[_0x1b9db3('0x7a')]==='zoho.eu'?'eu':'com';return getAccessToken(_0x2af422)[_0x1b9db3('0x46')](function(_0x263945){const _0x14a382=_0x1b9db3;return _0x5c2e14=_0x263945,getUser(_0x5c2e14,_0x26d9b3,_0x2af422,_0x23dae6[_0x14a382('0x1')]);})['then'](function(_0xc02b77){const _0x2c7724=_0x1b9db3;return _0x36aeba=_0xc02b77,logger['info'](_0x2c7724('0x52'),_0x36aeba['id']),getEndUser(_0x5c2e14,_0x26d9b3,_0x2af422,_0x52ffd3[_0x2c7724('0x1d')],_0x52ffd3[_0x2c7724('0x8d')],_0x36aeba,_0x28e4c1);})['then'](function(_0x2869cf){return _0x4bf552=_0x2869cf,getCall(_0x5c2e14,_0x26d9b3,_0x2af422,_0x36aeba,_0x4bf552,_0x28e4c1,_0x52ffd3,'Inbound');})[_0x1b9db3('0x46')](function(_0x1907f0){const _0x1bb1a6=_0x1b9db3;_0x1907f0&&(logger[_0x1bb1a6('0x69')]('The\x20Call\x20ID\x20is:',_0x1907f0['id']),logger[_0x1bb1a6('0x69')]('[QUEUE]',_0x1bb1a6('0x31')),emit(util[_0x1bb1a6('0x20')]('user:%s',_0x23dae6[_0x1bb1a6('0x67')]),_0x1bb1a6('0x59'),{'uri':_0x1bb1a6('0x3f')+_0x2af422[_0x1bb1a6('0x7a')]+_0x1bb1a6('0x74')+_0x1907f0['id']}));})[_0x1b9db3('0x81')](function(_0x5bab5b){const _0x15f404=_0x1b9db3;logger[_0x15f404('0x68')](_0x15f404('0x37'),JSON[_0x15f404('0x24')](_0x5bab5b));});},exports['outbound']=function(_0x75f51,_0x4b0281,_0x1f3832,_0x3d9683,_0x2edc4e,_0xef2b8e,_0x1424a6){const _0xe8c4ae=_0xc329ee;let _0x37bb02,_0x3fe05d,_0xbd0100;_0xef2b8e[_0xe8c4ae('0x7a')]=intUtil[_0xe8c4ae('0x12')](_0xef2b8e[_0xe8c4ae('0x7a')]),_0xef2b8e[_0xe8c4ae('0x7d')]=intUtil['stripTrailingSlash'](_0xef2b8e['serverUrl']);_0x1424a6&&_0x1424a6[_0xe8c4ae('0x8f')]&&_0x1424a6[_0xe8c4ae('0x8f')]!=='none'&&(logger[_0xe8c4ae('0x69')](_0xe8c4ae('0x3c'),_0xe8c4ae('0x8c')),_0x4b0281['recordingURL']=_0xef2b8e[_0xe8c4ae('0x7d')]+_0xe8c4ae('0x5c')+_0x4b0281['uniqueid']+_0xe8c4ae('0x49')+md5(_0x4b0281[_0xe8c4ae('0x9')]));const _0x454b64=_0xef2b8e['host']===_0xe8c4ae('0x8')?'eu':_0xe8c4ae('0x7e');return getAccessToken(_0xef2b8e)[_0xe8c4ae('0x46')](function(_0x19a29c){return _0xbd0100=_0x19a29c,getUser(_0xbd0100,_0x454b64,_0xef2b8e,_0x3d9683['email']);})[_0xe8c4ae('0x46')](function(_0x2b7c75){const _0x5c87d6=_0xe8c4ae;return _0x37bb02=_0x2b7c75,logger['info'](_0x5c87d6('0x52'),_0x37bb02['id']),getEndUser(_0xbd0100,_0x454b64,_0xef2b8e,_0x4b0281[_0x5c87d6('0x13')],_0x4b0281['destcalleridnum'],_0x37bb02,_0x1f3832);})[_0xe8c4ae('0x46')](function(_0x1ac834){return _0x3fe05d=_0x1ac834,getCall(_0xbd0100,_0x454b64,_0xef2b8e,_0x37bb02,_0x3fe05d,_0x1f3832,_0x4b0281,'Outbound');})[_0xe8c4ae('0x46')](function(_0x22aa5f){const _0x1a4b59=_0xe8c4ae;_0x22aa5f&&(logger['info'](_0x1a4b59('0x5b'),_0x22aa5f['id']),logger[_0x1a4b59('0x69')](_0x1a4b59('0x3c'),_0x1a4b59('0x31')),emit(util[_0x1a4b59('0x20')](_0x1a4b59('0x86'),_0x3d9683[_0x1a4b59('0x67')]),_0x1a4b59('0x59'),{'uri':_0x1a4b59('0x3f')+_0xef2b8e[_0x1a4b59('0x7a')]+'/crm/EntityInfo.do?module=Calls&id='+_0x22aa5f['id']}));})['catch'](function(_0x174af1){const _0x3667c6=_0xe8c4ae;logger[_0x3667c6('0x68')](_0x3667c6('0x3c'),JSON[_0x3667c6('0x24')](_0x174af1));});},exports[_0xc329ee('0x90')]=function(_0x539235,_0x529a67,_0x1b3418,_0x7e5880,_0x3a485d,_0x31ca43){const _0x52adfe=_0xc329ee;let _0x3624a0,_0xc0278c,_0xb6b0cf;_0x31ca43[_0x52adfe('0x7a')]=intUtil['stripTrailingSlash'](_0x31ca43[_0x52adfe('0x7a')]),_0x31ca43['serverUrl']=intUtil[_0x52adfe('0x12')](_0x31ca43[_0x52adfe('0x7d')]);_0x3a485d&&_0x3a485d[_0x52adfe('0x38')]?(logger[_0x52adfe('0x69')]('['+_0x529a67[_0x52adfe('0x55')]['toUpperCase']()+']','Recording\x20is\x20enabled!'),_0x529a67[_0x52adfe('0x6c')]=_0x31ca43[_0x52adfe('0x7d')]+_0x52adfe('0x5c')+_0x529a67[_0x52adfe('0x9')]+'/downloads?type=uniqueid&token='+md5(_0x529a67[_0x52adfe('0x9')])):_0x529a67[_0x52adfe('0x6c')]='';const _0x533af3=_0x31ca43[_0x52adfe('0x7a')]==='zoho.eu'?'eu':_0x52adfe('0x7e');return getAccessToken(_0x31ca43)[_0x52adfe('0x46')](function(_0x4096e5){return _0xb6b0cf=_0x4096e5,getUser(_0xb6b0cf,_0x533af3,_0x31ca43);})[_0x52adfe('0x46')](function(_0x51e6bb){const _0x2b2294=_0x52adfe;return _0x3624a0=_0x51e6bb,logger[_0x2b2294('0x69')]('The\x20User\x20ID\x20is:',_0x3624a0['id']),getEndUser(_0xb6b0cf,_0x533af3,_0x31ca43,_0x529a67[_0x2b2294('0x1d')],_0x529a67[_0x2b2294('0x8d')],_0x3624a0,_0x1b3418);})[_0x52adfe('0x46')](function(_0x1860e9){return _0xc0278c=_0x1860e9,getCall(_0xb6b0cf,_0x533af3,_0x31ca43,_0x3624a0,_0xc0278c,_0x1b3418,_0x529a67,'Inbound');})[_0x52adfe('0x46')](function(_0x4f5b90){const _0x35bed9=_0x52adfe;_0x4f5b90&&logger[_0x35bed9('0x69')]('The\x20Call\x20ID\x20is:',_0x4f5b90['id']);})[_0x52adfe('0x81')](function(_0x1b15a6){const _0x5c17a9=_0x52adfe;logger[_0x5c17a9('0x68')]('['+_0x529a67[_0x5c17a9('0x55')]['toUpperCase']()+']',JSON['stringify'](_0x1b15a6));});}; \ No newline at end of file +const a1146_0x3067=['Last_Name','isNil','/crm/v2/','Timeout','The\x20Call\x20ID\x20is:','moduleCreate','[OUTBOUND]','CREATE\x20ERROR','clientSecret','Zoho-oauthtoken\x20','agentcalledAt','serverUrl','endtime','calleridname','https://www.zohoapis.','timeout','[HTTP]','/oauth/v2/token','Administrator','Search\x20user','Subjects','rejected','Owner','refresh_token','refreshToken','trigger:browser:url','$se_module','Using\x20the\x20admin\x20account!','recordingFormat','uniqueid','access_token','abandoned','POST','err','log','The\x20failing\x20result\x20is','debug','error','mm:ss','GET','clientId','role','isArrayLikeObject','SUCCESS','/crm/v2/Leads/search?criteria=((Phone:equals:','/downloads?type=uniqueid&token=','lead','Description','Answered','The\x20User\x20ID\x20is:','../../../../rediscache','Failing\x20creating\x20the\x20access_token','moduleSearch','toString','destcalleridnum','zoho.eu','com','outbound','YYYY-MM-DDTHH:mm:ss','Full_Name','https://crm.','/api/voice/recordings/','nothing','lastevent','What_Id','Contacts','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','lodash','variableName','answertime','variable','moment','/crm/v2/Contacts/search?criteria=((Phone:equals:','format','catch','Call_Start_Time','Outbound','seconds','administrator','utc','connect','customVariable','idField','Error:\x20','called','enduserType','Fields','toLowerCase','recordingURL','Inbound','findIndex','Call_Result','startCase','md5','last_name','calleridnum','Leads','https://accounts.zoho.com','first_name','host','emit','unmanaged','user:%s','./util','data','Agent\x20found!','info','/crm/EntityInfo.do?module=Calls&id=','monitor_format','profile','name','users','add','stack','[QUEUE]','expires_in','talktime','util','zone','Creating\x20new\x20call...','Abandoned','toUpperCase','Who_Id','stripTrailingSlash','Recording\x20is\x20enabled!','First_Name','https://accounts.zoho.eu','type','isBefore','then','/crm/v2/Calls','Variable','Descriptions','Call_Duration','stringify','none','split','email','request-promise-native','../../../../config/logger','indexOf','destcalleridname','user','Call_Type','getString','uri','details','Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20','starttime'];(function(_0x4d33f9,_0x3067ad){const _0x533a96=function(_0x46ac4a){while(--_0x46ac4a){_0x4d33f9['push'](_0x4d33f9['shift']());}};_0x533a96(++_0x3067ad);}(a1146_0x3067,0x12e));const a1146_0x533a=function(_0x4d33f9,_0x3067ad){_0x4d33f9=_0x4d33f9-0x0;let _0x533a96=a1146_0x3067[_0x4d33f9];return _0x533a96;};const _0x329c8c=a1146_0x533a;'use strict';const _=require(_0x329c8c('0x3f')),rp=require(_0x329c8c('0x86')),md5=require(_0x329c8c('0x59')),util=require(_0x329c8c('0x71')),intUtil=require(_0x329c8c('0x63')),moment=require(_0x329c8c('0x43')),logger=require(_0x329c8c('0x87'))('zoho'),{getSocket}=require(_0x329c8c('0x2e')),io=getSocket();function emit(_0x46ac4a,_0x58be1e,_0xd1f7d){const _0x2e8696=_0x329c8c;io['to'](_0x46ac4a)[_0x2e8696('0x60')](_0x58be1e,_0xd1f7d);}function request(_0x21fae6){const _0x52bbf6=_0x329c8c;return logger[_0x52bbf6('0x20')](_0x52bbf6('0xc'),JSON[_0x52bbf6('0x82')](_0x21fae6)),rp(_0x21fae6);}function getCustomFields(_0x2c3899,_0x267e18){const _0x392fc1={};return _0x2c3899['length']>0x0&&_['forEach'](_0x2c3899,function(_0x4187f3){const _0x440293=a1146_0x533a;if(_0x4187f3['type']==='string'&&_0x4187f3['idField'])_0x392fc1[_0x4187f3[_0x440293('0x4e')]]=_0x4187f3['content']['toString']();else{if(_0x4187f3[_0x440293('0x7b')]===_0x440293('0x42')&&_0x4187f3[_0x440293('0x40')]&&_0x4187f3[_0x440293('0x4e')]&&_0x267e18[_0x4187f3[_0x440293('0x40')]])_0x392fc1[_0x4187f3[_0x440293('0x4e')]]=_0x267e18[_0x4187f3[_0x440293('0x40')]][_0x440293('0x31')]();else _0x4187f3[_0x440293('0x7b')]===_0x440293('0x4d')&&_0x4187f3[_0x440293('0x7f')]&&_0x4187f3[_0x440293('0x7f')][_0x440293('0x6a')]&&_0x4187f3['idField']&&_0x267e18[_0x4187f3[_0x440293('0x7f')]['name'][_0x440293('0x53')]()]&&(_0x392fc1[_0x4187f3[_0x440293('0x4e')]]=_0x267e18[_0x4187f3[_0x440293('0x7f')]['name'][_0x440293('0x53')]()][_0x440293('0x31')]());}}),_0x392fc1;}function getName(_0x2a2a2e){const _0x443b72=_0x329c8c;if(_0x2a2a2e[_0x443b72('0x88')]('\x20')>0x0){const _0x38f70c=_0x2a2a2e[_0x443b72('0x84')](/ (.+)/);if(_0x38f70c[0x1])return _0x38f70c;}return[_0x2a2a2e,_0x2a2a2e];}const accountsTokens={};function getAccessToken(_0x546a78){return new Promise(function(_0x13f9f0,_0x110f2e){const _0x5ebfc5=a1146_0x533a;!_[_0x5ebfc5('0x92')](accountsTokens[_0x546a78['id']])&&!_[_0x5ebfc5('0x92')](accountsTokens[_0x546a78['id']][_0x5ebfc5('0x1a')])&&(moment()[_0x5ebfc5('0x7c')](accountsTokens[_0x546a78['id']][_0x5ebfc5('0x6f')])&&_0x13f9f0(accountsTokens[_0x546a78['id']][_0x5ebfc5('0x1a')]));let _0x2c7a46;switch(_0x546a78[_0x5ebfc5('0x72')]){case'US':_0x2c7a46=_0x5ebfc5('0x5d');break;case'AU':_0x2c7a46='https://accounts.zoho.com.au';break;case'EU':_0x2c7a46='https://accounts.zoho.eu';break;case'IN':_0x2c7a46='https://accounts.zoho.in';break;case'CN':_0x2c7a46='https://accounts.zoho.com.cn';break;default:_0x2c7a46=_0x5ebfc5('0x7a');break;}const _0x2914ce={'method':_0x5ebfc5('0x1c'),'uri':_0x2c7a46+_0x5ebfc5('0xd'),'qs':{'refresh_token':_0x546a78[_0x5ebfc5('0x14')],'client_id':_0x546a78[_0x5ebfc5('0x24')],'client_secret':_0x546a78[_0x5ebfc5('0x4')],'grant_type':_0x5ebfc5('0x13')},'json':!![]};return rp(_0x2914ce)[_0x5ebfc5('0x7d')](function(_0xe3b2f6){const _0x525189=_0x5ebfc5;accountsTokens[_0x546a78['id']]={'access_token':_0xe3b2f6[_0x525189('0x1a')],'expires_in':moment()[_0x525189('0x6c')](_0xe3b2f6[_0x525189('0x6f')],_0x525189('0x49'))},_0x13f9f0(_0xe3b2f6[_0x525189('0x1a')]);})[_0x5ebfc5('0x46')](function(_0x44728a){const _0x419e49=_0x5ebfc5;logger['error'](_0x419e49('0x2f'),_0x44728a[_0x419e49('0x6d')]),_0x110f2e(_0x44728a);});});}function getUser(_0x37a64b,_0x1bb2bc,_0x91077e,_0x1e83a7){const _0x3cdfc5=_0x329c8c;return logger[_0x3cdfc5('0x66')](_0x3cdfc5('0xf')),request({'method':_0x3cdfc5('0x23'),'uri':util[_0x3cdfc5('0x45')]('https://www.zohoapis.%s/crm/v2/users',_0x1bb2bc),'qs':{'type':'ActiveUsers'},'headers':{'Authorization':_0x3cdfc5('0x5')+_0x37a64b},'json':!![]})[_0x3cdfc5('0x7d')](function(_0x4c3183){const _0x3a415e=_0x3cdfc5;if(_0x4c3183[_0x3a415e('0x6b')]){let _0x1540f0=-0x1;if(_[_0x3a415e('0x26')](_0x4c3183[_0x3a415e('0x6b')]))return!_[_0x3a415e('0x92')](_0x1e83a7)&&(_0x1540f0=_[_0x3a415e('0x56')](_0x4c3183[_0x3a415e('0x6b')],function(_0x21d97d){const _0x5cf44a=_0x3a415e;return _0x21d97d[_0x5cf44a('0x85')]===_0x1e83a7;})),_0x1540f0>=0x0?logger[_0x3a415e('0x66')](_0x3a415e('0x65')):(logger[_0x3a415e('0x66')](_0x3a415e('0x17')),_0x1540f0=_[_0x3a415e('0x56')](_0x4c3183[_0x3a415e('0x6b')],function(_0x60a729){const _0x1b1b19=_0x3a415e;return _0x60a729['profile'][_0x1b1b19('0x6a')]==='Administrator';})),_0x4c3183[_0x3a415e('0x6b')][_0x1540f0];else{if(_0x4c3183[_0x3a415e('0x8a')][_0x3a415e('0x69')][_0x3a415e('0x6a')]===_0x3a415e('0xe')){logger['info'](_0x3a415e('0x17'));const _0x7086e7=_0x4c3183['user'];return _0x7086e7;}else{logger[_0x3a415e('0x21')](_0x3a415e('0x1f'),JSON[_0x3a415e('0x82')](_0x4c3183));throw new Error(_0x3a415e('0x8f')+JSON['stringify'](_0x4c3183));}}}else{logger['error'](_0x3a415e('0x1f'),JSON[_0x3a415e('0x82')](_0x4c3183));throw new Error(_0x3a415e('0x8f')+JSON[_0x3a415e('0x82')](_0x4c3183));}})[_0x3cdfc5('0x46')](function(_0x263c71){const _0x22be9b=_0x3cdfc5;console[_0x22be9b('0x21')](_0x263c71);});}function getZohoUser(_0x303196,_0x53d2bf){return new Promise(function(_0x9f2a8a,_0x2a97a9){const _0x2bb8e9=a1146_0x533a;request(_0x303196)['then'](function(_0x45b91b){const _0x5774f2=a1146_0x533a;let _0x5b61b5=null;_0x45b91b&&(_0x5b61b5=_0x45b91b[_0x5774f2('0x64')][0x0],_0x5b61b5[_0x5774f2('0x51')]=_0x53d2bf),_0x9f2a8a(_0x5b61b5);})[_0x2bb8e9('0x46')](function(_0x521c72){_0x2a97a9(_0x521c72);});});}function createEndUser(_0x408c35,_0x13c420,_0x1bb58e,_0xf9b24d,_0x39ee34,_0x540c99){const _0x34a53b=_0x329c8c;return _0x1bb58e=getName(_0x1bb58e),request({'method':_0x34a53b('0x1c'),'uri':_0x34a53b('0xa')+_0x13c420+_0x34a53b('0x93')+_['startCase'](_0x540c99['moduleCreate'])+'s','body':{'data':[{'Last_Name':_0x1bb58e[0x1],'First_Name':_0x1bb58e[0x0],'Phone':_0xf9b24d,'Owner':{'name':!_[_0x34a53b('0x92')](_0x39ee34[_0x34a53b('0x25')]['name'])?_0x39ee34[_0x34a53b('0x25')]['name']:!_['isNil'](_0x39ee34[_0x34a53b('0x5e')])?_0x39ee34[_0x34a53b('0x5e')]+'\x20'+_0x39ee34['last_name']:_0x39ee34[_0x34a53b('0x5a')],'id':_0x39ee34['id']}}]},'headers':{'Authorization':_0x34a53b('0x5')+_0x408c35},'json':!![]})[_0x34a53b('0x7d')](function(_0x2a8c8d){const _0x562b93=_0x34a53b;if(_0x2a8c8d&&_0x2a8c8d['data'][0x0]['code']===_0x562b93('0x27')){const _0x5b9f0a=_0x2a8c8d[_0x562b93('0x64')][0x0][_0x562b93('0x8e')];return _0x5b9f0a[_0x562b93('0x51')]=_['startCase'](_0x540c99[_0x562b93('0x1')])+'s',_0x5b9f0a;}const _0x83d712=_0x2a8c8d[_0x562b93('0x64')];logger['error'](_0x562b93('0x1f'),JSON[_0x562b93('0x82')](_0x83d712));throw new Error(_0x562b93('0x4f')+JSON[_0x562b93('0x82')](_0x83d712));})[_0x34a53b('0x46')](function(_0x174aa4){const _0x3f52e2=_0x34a53b;console[_0x3f52e2('0x1e')](_0x3f52e2('0x3'),_0x174aa4);});}function getEndUser(_0x391e48,_0x4a2608,_0x4a1b5d,_0x128eb2,_0x15762f,_0xda5355,_0xaaeccd){const _0x41c3f3=_0x329c8c,_0xa5065f={'method':_0x41c3f3('0x23'),'uri':'','headers':{'Authorization':_0x41c3f3('0x5')+_0x391e48},'json':!![]};switch(_0xaaeccd[_0x41c3f3('0x30')]){case'contact_lead':_0xa5065f['uri']=_0x41c3f3('0xa')+_0x4a2608+_0x41c3f3('0x44')+_0x15762f+'))';return getZohoUser(_0xa5065f,_0x41c3f3('0x3d'))[_0x41c3f3('0x7d')](function(_0x4b3585){const _0x1a0edb=_0x41c3f3;if(_0x4b3585)return _0x4b3585;return _0xa5065f[_0x1a0edb('0x8d')]='https://www.zohoapis.'+_0x4a2608+_0x1a0edb('0x28')+_0x15762f+'))',getZohoUser(_0xa5065f,'Leads')[_0x1a0edb('0x7d')](function(_0x1a6ee0){const _0xd87f1f=_0x1a0edb;if(_0x1a6ee0)return _0x1a6ee0;return _0xaaeccd['moduleCreate']!=_0xd87f1f('0x3a')?createEndUser(_0x391e48,_0x4a2608,_0x128eb2,_0x15762f,_0xda5355,_0xaaeccd):{};});});case'contact':_0xa5065f[_0x41c3f3('0x8d')]=_0x41c3f3('0xa')+_0x4a2608+_0x41c3f3('0x44')+_0x15762f+'))';return getZohoUser(_0xa5065f,_0x41c3f3('0x3d'))['then'](function(_0x148a29){const _0x36487f=_0x41c3f3;if(_0x148a29)return _0x148a29;return _0xaaeccd[_0x36487f('0x1')]!='nothing'?createEndUser(_0x391e48,_0x4a2608,_0x128eb2,_0x15762f,_0xda5355,_0xaaeccd):{};});case _0x41c3f3('0x2a'):_0xa5065f[_0x41c3f3('0x8d')]=_0x41c3f3('0xa')+_0x4a2608+_0x41c3f3('0x28')+_0x15762f+'))';return getZohoUser(_0xa5065f,_0x41c3f3('0x5c'))['then'](function(_0x1f3d85){const _0x21b636=_0x41c3f3;if(_0x1f3d85)return _0x1f3d85;return _0xaaeccd[_0x21b636('0x1')]!='nothing'?createEndUser(_0x391e48,_0x4a2608,_0x128eb2,_0x15762f,_0xda5355,_0xaaeccd):{};});}}function getCall(_0x535fd3,_0x379121,_0xf93d0c,_0x400845,_0x51a611,_0x297b0b,_0x3f2bc7,_0x413ba4){const _0x42b326=_0x329c8c;logger[_0x42b326('0x66')](_0x42b326('0x73'));let _0x242da7={};_0x242da7[_0x42b326('0x12')]={'name':!_['isNil'](_0x400845[_0x42b326('0x25')]['name'])&&!_[_0x42b326('0x92')](_0x400845['profile'][_0x42b326('0x6a')])&&_0x400845[_0x42b326('0x69')][_0x42b326('0x6a')]===_0x42b326('0x4a')?_0x400845[_0x42b326('0x25')][_0x42b326('0x6a')]:!_[_0x42b326('0x92')](_0x400845[_0x42b326('0x5e')])?_0x400845[_0x42b326('0x5e')]+'\x20'+_0x400845[_0x42b326('0x5a')]:_0x400845[_0x42b326('0x5a')],'id':_0x400845['id']},_0x242da7['Subject']=intUtil['getString'](_0x297b0b[_0x42b326('0x10')],_0x3f2bc7,'\x20'),_0x242da7[_0x42b326('0x2b')]=intUtil[_0x42b326('0x8c')](_0x297b0b[_0x42b326('0x80')],_0x3f2bc7,'\x0a');_0x51a611['enduserType']===_0x42b326('0x3d')&&(_0x242da7[_0x42b326('0x76')]={'name':!_[_0x42b326('0x92')](_0x51a611[_0x42b326('0x37')])?_0x51a611['Full_Name']:!_[_0x42b326('0x92')](_0x51a611[_0x42b326('0x79')])?_0x51a611[_0x42b326('0x79')]+'\x20'+_0x51a611[_0x42b326('0x91')]:_0x51a611[_0x42b326('0x91')],'id':_0x51a611['id']});_0x51a611[_0x42b326('0x51')]===_0x42b326('0x5c')&&(_0x242da7[_0x42b326('0x3c')]={'name':!_[_0x42b326('0x92')](_0x51a611[_0x42b326('0x37')])?_0x51a611[_0x42b326('0x37')]:!_[_0x42b326('0x92')](_0x51a611['First_Name'])?_0x51a611[_0x42b326('0x79')]+'\x20'+_0x51a611[_0x42b326('0x91')]:_0x51a611[_0x42b326('0x91')],'id':_0x51a611['id']},_0x242da7[_0x42b326('0x16')]=_[_0x42b326('0x58')](_0x51a611[_0x42b326('0x51')]));if(_0x3f2bc7[_0x42b326('0x70')])_0x242da7[_0x42b326('0x81')]=moment[_0x42b326('0x4b')](parseInt(_0x3f2bc7[_0x42b326('0x70')])*0x3e8)['format'](_0x42b326('0x22'));else _0x3f2bc7[_0x42b326('0x41')]&&_0x3f2bc7[_0x42b326('0x8')]&&(_0x242da7['Call_Duration']=moment[_0x42b326('0x4b')](moment(_0x3f2bc7[_0x42b326('0x8')],_0x42b326('0x36'))['diff'](moment(_0x3f2bc7[_0x42b326('0x90')],_0x42b326('0x36'))))['format'](_0x42b326('0x22')));switch(_0x3f2bc7[_0x42b326('0x3b')]){case _0x42b326('0x50'):_0x242da7[_0x42b326('0x57')]='Called';break;case'complete':case _0x42b326('0x4c'):_0x242da7[_0x42b326('0x57')]=_0x42b326('0x2c');break;case _0x42b326('0x11'):_0x242da7[_0x42b326('0x57')]='Rejected';break;case _0x42b326('0x1b'):_0x242da7[_0x42b326('0x57')]=_0x42b326('0x74');break;case _0x42b326('0xb'):_0x242da7[_0x42b326('0x57')]=_0x42b326('0x94');break;default:break;}return _0x242da7[_0x42b326('0x47')]=(_0x413ba4===_0x42b326('0x35')?moment(_0x3f2bc7[_0x42b326('0x90')])['format'](_0x42b326('0x36')):moment(_0x3f2bc7[_0x42b326('0x6')])['format'](_0x42b326('0x36')))||moment()['format'](_0x42b326('0x36')),_0x242da7[_0x42b326('0x8b')]=_0x413ba4||_0x42b326('0x55'),_0x242da7=_['merge'](_0x242da7,getCustomFields(_0x297b0b[_0x42b326('0x52')],_0x3f2bc7)),request({'method':_0x42b326('0x1c'),'uri':'https://www.zohoapis.'+_0x379121+_0x42b326('0x7e'),'headers':{'Authorization':_0x42b326('0x5')+_0x535fd3},'body':{'data':[_0x242da7]},'json':!![]})['then'](function(_0x22520f){const _0x3497c0=_0x42b326;if(_0x22520f&&_0x22520f[_0x3497c0('0x64')][0x0]['code']===_0x3497c0('0x27'))return logger[_0x3497c0('0x66')]('Call\x20created!'),{'id':_0x22520f[_0x3497c0('0x64')][0x0][_0x3497c0('0x8e')]['id']};})[_0x42b326('0x46')](function(_0x58b745){const _0x430bf5=_0x42b326;logger[_0x430bf5('0x66')](_0x430bf5('0x1d'),_0x58b745['stack']),console[_0x430bf5('0x1e')](_0x430bf5('0x1d'),_0x58b745);});}exports['queue']=function(_0x289a35,_0x527fea,_0x2dfa2c,_0x3f84ad,_0x55483a,_0x53f2a2){const _0x340c70=_0x329c8c;let _0x5a03d6,_0x53fa6b,_0x2acccf;_0x53f2a2[_0x340c70('0x5f')]=intUtil[_0x340c70('0x77')](_0x53f2a2['host']),_0x53f2a2[_0x340c70('0x7')]=intUtil['stripTrailingSlash'](_0x53f2a2[_0x340c70('0x7')]);_0x55483a&&_0x55483a[_0x340c70('0x68')]?(logger[_0x340c70('0x66')](_0x340c70('0x6e'),_0x340c70('0x78')),_0x527fea['recordingURL']=_0x53f2a2[_0x340c70('0x7')]+_0x340c70('0x39')+_0x527fea['uniqueid']+_0x340c70('0x29')+md5(_0x527fea[_0x340c70('0x19')])):_0x527fea[_0x340c70('0x54')]='';const _0x3f5866=_0x53f2a2[_0x340c70('0x5f')]==='zoho.eu'?'eu':_0x340c70('0x34');return getAccessToken(_0x53f2a2)[_0x340c70('0x7d')](function(_0x4bb016){const _0x504c45=_0x340c70;return _0x2acccf=_0x4bb016,getUser(_0x2acccf,_0x3f5866,_0x53f2a2,_0x3f84ad[_0x504c45('0x85')]);})['then'](function(_0x208e2f){const _0x291910=_0x340c70;return _0x5a03d6=_0x208e2f,logger[_0x291910('0x66')](_0x291910('0x2d'),_0x5a03d6['id']),getEndUser(_0x2acccf,_0x3f5866,_0x53f2a2,_0x527fea[_0x291910('0x9')],_0x527fea[_0x291910('0x5b')],_0x5a03d6,_0x2dfa2c);})[_0x340c70('0x7d')](function(_0x100e2f){const _0x445242=_0x340c70;return _0x53fa6b=_0x100e2f,getCall(_0x2acccf,_0x3f5866,_0x53f2a2,_0x5a03d6,_0x53fa6b,_0x2dfa2c,_0x527fea,_0x445242('0x55'));})[_0x340c70('0x7d')](function(_0x50a073){const _0x5890d9=_0x340c70;_0x50a073&&(logger[_0x5890d9('0x66')](_0x5890d9('0x0'),_0x50a073['id']),logger[_0x5890d9('0x66')](_0x5890d9('0x6e'),_0x5890d9('0x3e')),emit(util['format'](_0x5890d9('0x62'),_0x3f84ad[_0x5890d9('0x6a')]),_0x5890d9('0x15'),{'uri':_0x5890d9('0x38')+_0x53f2a2[_0x5890d9('0x5f')]+_0x5890d9('0x67')+_0x50a073['id']}));})[_0x340c70('0x46')](function(_0x34173d){const _0x53c216=_0x340c70;logger[_0x53c216('0x21')](_0x53c216('0x6e'),JSON['stringify'](_0x34173d));});},exports['outbound']=function(_0x2850ab,_0x16dddc,_0x17859a,_0xf7ba12,_0x389843,_0x22bdaa,_0x40726b){const _0x3fcb38=_0x329c8c;let _0x30534d,_0x26c732,_0x19f8e5;_0x22bdaa[_0x3fcb38('0x5f')]=intUtil['stripTrailingSlash'](_0x22bdaa[_0x3fcb38('0x5f')]),_0x22bdaa['serverUrl']=intUtil[_0x3fcb38('0x77')](_0x22bdaa[_0x3fcb38('0x7')]);_0x40726b&&_0x40726b[_0x3fcb38('0x18')]&&_0x40726b[_0x3fcb38('0x18')]!==_0x3fcb38('0x83')&&(logger[_0x3fcb38('0x66')](_0x3fcb38('0x2'),_0x3fcb38('0x78')),_0x16dddc[_0x3fcb38('0x54')]=_0x22bdaa[_0x3fcb38('0x7')]+_0x3fcb38('0x39')+_0x16dddc[_0x3fcb38('0x19')]+_0x3fcb38('0x29')+md5(_0x16dddc[_0x3fcb38('0x19')]));const _0x5a2edf=_0x22bdaa['host']===_0x3fcb38('0x33')?'eu':_0x3fcb38('0x34');return getAccessToken(_0x22bdaa)['then'](function(_0x41d05e){const _0x2ca4b6=_0x3fcb38;return _0x19f8e5=_0x41d05e,getUser(_0x19f8e5,_0x5a2edf,_0x22bdaa,_0xf7ba12[_0x2ca4b6('0x85')]);})[_0x3fcb38('0x7d')](function(_0x24d1a0){const _0x57a0e2=_0x3fcb38;return _0x30534d=_0x24d1a0,logger[_0x57a0e2('0x66')](_0x57a0e2('0x2d'),_0x30534d['id']),getEndUser(_0x19f8e5,_0x5a2edf,_0x22bdaa,_0x16dddc[_0x57a0e2('0x89')],_0x16dddc[_0x57a0e2('0x32')],_0x30534d,_0x17859a);})[_0x3fcb38('0x7d')](function(_0x1ae366){const _0x569e2a=_0x3fcb38;return _0x26c732=_0x1ae366,getCall(_0x19f8e5,_0x5a2edf,_0x22bdaa,_0x30534d,_0x26c732,_0x17859a,_0x16dddc,_0x569e2a('0x48'));})[_0x3fcb38('0x7d')](function(_0x429000){const _0x36127e=_0x3fcb38;_0x429000&&(logger['info'](_0x36127e('0x0'),_0x429000['id']),logger[_0x36127e('0x66')](_0x36127e('0x2'),_0x36127e('0x3e')),emit(util[_0x36127e('0x45')](_0x36127e('0x62'),_0xf7ba12['name']),_0x36127e('0x15'),{'uri':_0x36127e('0x38')+_0x22bdaa['host']+_0x36127e('0x67')+_0x429000['id']}));})[_0x3fcb38('0x46')](function(_0x4b1acd){const _0x598bd1=_0x3fcb38;logger[_0x598bd1('0x21')](_0x598bd1('0x2'),JSON['stringify'](_0x4b1acd));});},exports[_0x329c8c('0x61')]=function(_0x13926c,_0x124a32,_0x2457b6,_0x41531e,_0x287683,_0x3768a0){const _0x3b42c8=_0x329c8c;let _0x6ce4e4,_0x364220,_0xbf9a0f;_0x3768a0[_0x3b42c8('0x5f')]=intUtil[_0x3b42c8('0x77')](_0x3768a0[_0x3b42c8('0x5f')]),_0x3768a0[_0x3b42c8('0x7')]=intUtil['stripTrailingSlash'](_0x3768a0[_0x3b42c8('0x7')]);_0x287683&&_0x287683[_0x3b42c8('0x68')]?(logger[_0x3b42c8('0x66')]('['+_0x124a32[_0x3b42c8('0x3b')][_0x3b42c8('0x75')]()+']',_0x3b42c8('0x78')),_0x124a32[_0x3b42c8('0x54')]=_0x3768a0[_0x3b42c8('0x7')]+_0x3b42c8('0x39')+_0x124a32[_0x3b42c8('0x19')]+'/downloads?type=uniqueid&token='+md5(_0x124a32[_0x3b42c8('0x19')])):_0x124a32[_0x3b42c8('0x54')]='';const _0x552da9=_0x3768a0['host']===_0x3b42c8('0x33')?'eu':_0x3b42c8('0x34');return getAccessToken(_0x3768a0)['then'](function(_0x1618ea){return _0xbf9a0f=_0x1618ea,getUser(_0xbf9a0f,_0x552da9,_0x3768a0);})['then'](function(_0x384682){const _0x189ef8=_0x3b42c8;return _0x6ce4e4=_0x384682,logger[_0x189ef8('0x66')](_0x189ef8('0x2d'),_0x6ce4e4['id']),getEndUser(_0xbf9a0f,_0x552da9,_0x3768a0,_0x124a32[_0x189ef8('0x9')],_0x124a32['calleridnum'],_0x6ce4e4,_0x2457b6);})[_0x3b42c8('0x7d')](function(_0xc3ab6f){return _0x364220=_0xc3ab6f,getCall(_0xbf9a0f,_0x552da9,_0x3768a0,_0x6ce4e4,_0x364220,_0x2457b6,_0x124a32,'Inbound');})[_0x3b42c8('0x7d')](function(_0x3e0592){const _0x4dbcd5=_0x3b42c8;_0x3e0592&&logger[_0x4dbcd5('0x66')]('The\x20Call\x20ID\x20is:',_0x3e0592['id']);})[_0x3b42c8('0x46')](function(_0x5c4be3){const _0x4475ec=_0x3b42c8;logger['error']('['+_0x124a32['lastevent'][_0x4475ec('0x75')]()+']',JSON[_0x4475ec('0x82')](_0x5c4be3));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/script/index.js b/server/services/ami/trigger/script/index.js index 109a0e8..c31545a 100644 --- a/server/services/ami/trigger/script/index.js +++ b/server/services/ami/trigger/script/index.js @@ -1 +1 @@ -const a1147_0x4dd5=['mustache','Script','data2','util','exec','render','error','data3','shelljs','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','../../../../config/logger','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info'];(function(_0x329326,_0x4dd559){const _0x3ea85c=function(_0x1c54b5){while(--_0x1c54b5){_0x329326['push'](_0x329326['shift']());}};_0x3ea85c(++_0x4dd559);}(a1147_0x4dd5,0x70));const a1147_0x3ea8=function(_0x329326,_0x4dd559){_0x329326=_0x329326-0x0;let _0x3ea85c=a1147_0x4dd5[_0x329326];return _0x3ea85c;};const _0x5b1be8=a1147_0x3ea8;'use strict';const util=require(_0x5b1be8('0x8')),sh=require(_0x5b1be8('0x0')),Mustache=require(_0x5b1be8('0x5')),logger=require(_0x5b1be8('0x2'))('trigger');exports[_0x5b1be8('0x9')]=function(_0x1c54b5,_0x22f97d){const _0x1331f3=_0x5b1be8,_0x29c4c3=_0x1c54b5[_0x1331f3('0x7')]?_0x1c54b5[_0x1331f3('0x7')]:_0x1331f3('0x6'),_0x489354=_0x1c54b5[_0x1331f3('0xc')]?Mustache[_0x1331f3('0xa')](_0x1c54b5[_0x1331f3('0xc')],_0x22f97d):_0x22f97d;sh[_0x1331f3('0x9')](_0x489354,function(_0x4a8e6b,_0x41dfa1,_0x5df9d2){const _0x1f96ff=_0x1331f3;_0x4a8e6b!==0x0?logger[_0x1f96ff('0xb')](util['format'](_0x1f96ff('0x3'),_0x29c4c3,_0x489354,_0x4a8e6b,_0x5df9d2)):logger[_0x1f96ff('0x4')](util['format'](_0x1f96ff('0x1'),_0x29c4c3,_0x489354,_0x41dfa1));});}; \ No newline at end of file +const a1147_0x95d0=['data2','render','Script','mustache','info','exec','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','format'];(function(_0x235c77,_0x95d077){const _0x1c55f9=function(_0x3e0700){while(--_0x3e0700){_0x235c77['push'](_0x235c77['shift']());}};_0x1c55f9(++_0x95d077);}(a1147_0x95d0,0x8a));const a1147_0x1c55=function(_0x235c77,_0x95d077){_0x235c77=_0x235c77-0x0;let _0x1c55f9=a1147_0x95d0[_0x235c77];return _0x1c55f9;};const _0x4d49ed=a1147_0x1c55;'use strict';const util=require('util'),sh=require('shelljs'),Mustache=require(_0x4d49ed('0x1')),logger=require('../../../../config/logger')('trigger');exports[_0x4d49ed('0x3')]=function(_0x3e0700,_0xcd6b39){const _0x7ac285=_0x4d49ed,_0x3032c8=_0x3e0700[_0x7ac285('0x6')]?_0x3e0700[_0x7ac285('0x6')]:_0x7ac285('0x0'),_0x40cf35=_0x3e0700['data3']?Mustache[_0x7ac285('0x7')](_0x3e0700['data3'],_0xcd6b39):_0xcd6b39;sh[_0x7ac285('0x3')](_0x40cf35,function(_0x2f59e1,_0x3845bd,_0x42a6e0){const _0x4ad967=_0x7ac285;_0x2f59e1!==0x0?logger['error'](util['format']('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x3032c8,_0x40cf35,_0x2f59e1,_0x42a6e0)):logger[_0x4ad967('0x2')](util[_0x4ad967('0x5')](_0x4ad967('0x4'),_0x3032c8,_0x40cf35,_0x3845bd));});}; \ No newline at end of file diff --git a/server/services/ami/trigger/urlforward/index.js b/server/services/ami/trigger/urlforward/index.js index 691cbfe..ea1f1c5 100644 --- a/server/services/ami/trigger/urlforward/index.js +++ b/server/services/ami/trigger/urlforward/index.js @@ -1 +1 @@ -const a1148_0xe357=['stack','headers','info','body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format','data6','%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','util','DELETE','number','PUT','trigger','GET','lodash','POST','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s','data1','data2','data7','request-promise-native','statusCode','render','format','catch','toUpperCase','body','error','name','exec','parse','data5','then','stringify'];(function(_0x941687,_0xe3570d){const _0x46c453=function(_0x5bb562){while(--_0x5bb562){_0x941687['push'](_0x941687['shift']());}};_0x46c453(++_0xe3570d);}(a1148_0xe357,0x1c8));const a1148_0x46c4=function(_0x941687,_0xe3570d){_0x941687=_0x941687-0x0;let _0x46c453=a1148_0xe357[_0x941687];return _0x46c453;};const _0x53772e=a1148_0x46c4;'use strict';const rp=require(_0x53772e('0xa')),util=require(_0x53772e('0x1e')),_=require(_0x53772e('0x4')),Mustache=require('mustache'),logger=require('../../../../config/logger')(_0x53772e('0x2'));exports[_0x53772e('0x13')]=function(_0x5bb562,_0x2074ab){const _0x554c9b=_0x53772e;let _0x364a85,_0xe4f8d3;const _0x3f6734={'method':_0x5bb562[_0x554c9b('0x7')]['toUpperCase'](),'uri':Mustache[_0x554c9b('0xc')](_0x5bb562[_0x554c9b('0x8')],_0x2074ab),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x5bb562[_0x554c9b('0x15')])===_0x554c9b('0x0')&&parseInt(_0x5bb562[_0x554c9b('0x15')])>=0x1&&parseInt(_0x5bb562['data5'])<=0xa?parseInt(_0x5bb562[_0x554c9b('0x15')])*0x3e8:0x5*0x3e8};try{_0x3f6734[_0x554c9b('0x19')]=_0x5bb562[_0x554c9b('0x1c')]?JSON[_0x554c9b('0x14')](Mustache[_0x554c9b('0xc')](_0x5bb562[_0x554c9b('0x1c')],_0x2074ab)):{};}catch(_0x3586a4){logger['error'](_0x3586a4[_0x554c9b('0x18')]);}switch(_0x5bb562['data1'][_0x554c9b('0xf')]()){case _0x554c9b('0x3'):case _0x554c9b('0x1f'):_0x364a85=null,_0x3f6734['qs']=_0x2074ab;break;case _0x554c9b('0x5'):case _0x554c9b('0x1'):if(_0x5bb562[_0x554c9b('0x9')])try{_0x364a85=JSON['parse'](Mustache['render'](_0x5bb562[_0x554c9b('0x9')],_0x2074ab)),_0x3f6734['body']=_0x364a85;}catch(_0xb78cf5){logger[_0x554c9b('0x11')](_0xb78cf5['stack']),logger['error'](_0x554c9b('0x1b'));}else _0x364a85=_0x2074ab,_0x3f6734[_0x554c9b('0x10')]=_0x364a85;break;}logger['info'](util[_0x554c9b('0xd')](_0x554c9b('0x1d'),_0x5bb562[_0x554c9b('0x7')],_0x5bb562[_0x554c9b('0x8')],JSON[_0x554c9b('0x17')](_0x3f6734))),rp(_0x3f6734)[_0x554c9b('0x16')](function(_0xbb766d){const _0xf31315=_0x554c9b;_0x364a85=!_['isNil'](_0x364a85)?',\x20request\x20body:\x20'+_0x364a85:'',_0xe4f8d3=typeof _0xbb766d[_0xf31315('0x10')]==='object'?JSON[_0xf31315('0x17')](_0xbb766d['body']):_0xbb766d[_0xf31315('0x10')],logger[_0xf31315('0x1a')](util[_0xf31315('0xd')](_0xf31315('0x6'),_0x5bb562[_0xf31315('0x7')],_0x5bb562[_0xf31315('0x8')],_0xbb766d[_0xf31315('0xb')],_0xe4f8d3));})[_0x554c9b('0xe')](function(_0x436035){const _0x172e46=_0x554c9b;logger[_0x172e46('0x11')](util[_0x172e46('0xd')]('%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s',_0x5bb562['data1'],_0x5bb562['data2'],_0x436035['statusCode'],_0x436035[_0x172e46('0x12')],_0x436035['message']));});}; \ No newline at end of file +const a1148_0x3841=['data5','lodash','DELETE','number','isNil','data2','stack','POST','body','data7','parse','PUT','stringify','catch','info','trigger','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s',',\x20request\x20body:\x20','GET','render','toUpperCase','then','error','../../../../config/logger','data1','data6','exec','headers','statusCode','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','format','name','request-promise-native'];(function(_0x2e91f0,_0x3841d0){const _0x5b02b9=function(_0x5704b1){while(--_0x5704b1){_0x2e91f0['push'](_0x2e91f0['shift']());}};_0x5b02b9(++_0x3841d0);}(a1148_0x3841,0x161));const a1148_0x5b02=function(_0x2e91f0,_0x3841d0){_0x2e91f0=_0x2e91f0-0x0;let _0x5b02b9=a1148_0x3841[_0x2e91f0];return _0x5b02b9;};const _0x797d33=a1148_0x5b02;'use strict';const rp=require(_0x797d33('0x9')),util=require('util'),_=require(_0x797d33('0xb')),Mustache=require('mustache'),logger=require(_0x797d33('0x0'))(_0x797d33('0x19'));exports[_0x797d33('0x3')]=function(_0x5704b1,_0x40239e){const _0x3be421=_0x797d33;let _0x68b260,_0x2e429a;const _0x2ec0cb={'method':_0x5704b1[_0x3be421('0x1')][_0x3be421('0x1e')](),'uri':Mustache[_0x3be421('0x1d')](_0x5704b1[_0x3be421('0xf')],_0x40239e),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x5704b1[_0x3be421('0xa')])===_0x3be421('0xd')&&parseInt(_0x5704b1[_0x3be421('0xa')])>=0x1&&parseInt(_0x5704b1[_0x3be421('0xa')])<=0xa?parseInt(_0x5704b1['data5'])*0x3e8:0x5*0x3e8};try{_0x2ec0cb[_0x3be421('0x4')]=_0x5704b1[_0x3be421('0x2')]?JSON['parse'](Mustache['render'](_0x5704b1[_0x3be421('0x2')],_0x40239e)):{};}catch(_0x1dc712){logger[_0x3be421('0x20')](_0x1dc712[_0x3be421('0x10')]);}switch(_0x5704b1[_0x3be421('0x1')][_0x3be421('0x1e')]()){case _0x3be421('0x1c'):case _0x3be421('0xc'):_0x68b260=null,_0x2ec0cb['qs']=_0x40239e;break;case _0x3be421('0x11'):case _0x3be421('0x15'):if(_0x5704b1['data7'])try{_0x68b260=JSON[_0x3be421('0x14')](Mustache[_0x3be421('0x1d')](_0x5704b1[_0x3be421('0x13')],_0x40239e)),_0x2ec0cb[_0x3be421('0x12')]=_0x68b260;}catch(_0x91b342){logger[_0x3be421('0x20')](_0x91b342['stack']),logger['error']('body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format');}else _0x68b260=_0x40239e,_0x2ec0cb['body']=_0x68b260;break;}logger[_0x3be421('0x18')](util[_0x3be421('0x7')]('%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s',_0x5704b1['data1'],_0x5704b1[_0x3be421('0xf')],JSON[_0x3be421('0x16')](_0x2ec0cb))),rp(_0x2ec0cb)[_0x3be421('0x1f')](function(_0x1665b5){const _0x1f1d99=_0x3be421;_0x68b260=!_[_0x1f1d99('0xe')](_0x68b260)?_0x1f1d99('0x1b')+_0x68b260:'',_0x2e429a=typeof _0x1665b5[_0x1f1d99('0x12')]==='object'?JSON[_0x1f1d99('0x16')](_0x1665b5[_0x1f1d99('0x12')]):_0x1665b5[_0x1f1d99('0x12')],logger[_0x1f1d99('0x18')](util['format'](_0x1f1d99('0x1a'),_0x5704b1[_0x1f1d99('0x1')],_0x5704b1[_0x1f1d99('0xf')],_0x1665b5[_0x1f1d99('0x5')],_0x2e429a));})[_0x3be421('0x17')](function(_0x4b3997){const _0x4bfc31=_0x3be421;logger[_0x4bfc31('0x20')](util['format'](_0x4bfc31('0x6'),_0x5704b1[_0x4bfc31('0x1')],_0x5704b1[_0x4bfc31('0xf')],_0x4b3997[_0x4bfc31('0x5')],_0x4b3997[_0x4bfc31('0x8')],_0x4b3997['message']));});}; \ No newline at end of file diff --git a/server/services/email/client.js b/server/services/email/client.js index a28c31b..4627794 100644 --- a/server/services/email/client.js +++ b/server/services/email/client.js @@ -1 +1 @@ -const a1149_0x166a=['error','catch','routing','client','Request','request','debug','message','result','rpc'];(function(_0x34375c,_0x166a18){const _0x371176=function(_0x822c4c){while(--_0x822c4c){_0x34375c['push'](_0x34375c['shift']());}};_0x371176(++_0x166a18);}(a1149_0x166a,0x16b));const a1149_0x3711=function(_0x34375c,_0x166a18){_0x34375c=_0x34375c-0x0;let _0x371176=a1149_0x166a[_0x34375c];return _0x371176;};const _0x147971=a1149_0x3711;'use strict';const jayson=require('jayson/promise'),logger=require('../../config/logger')(_0x147971('0x9')),client=jayson[_0x147971('0x0')]['http']({'port':0x2329});client[_0x147971('0x1')]=function(_0x822c4c,_0x365805){return new Promise(function(_0x33f8ab,_0x55293a){const _0x372c64=a1149_0x3711;return client[_0x372c64('0x2')](_0x822c4c,_0x365805)['then'](function(_0x22cbf4){const _0xe96ac9=_0x372c64;return logger[_0xe96ac9('0x3')]('rpc','routing',_0x822c4c,_0x365805,_0x22cbf4),_0x22cbf4['error']?(logger[_0xe96ac9('0x7')](_0xe96ac9('0x6'),_0xe96ac9('0x9'),_0x822c4c,_0x22cbf4[_0xe96ac9('0x7')][_0xe96ac9('0x4')],_0x365805),_0x55293a(_0x22cbf4[_0xe96ac9('0x7')][_0xe96ac9('0x4')])):_0x33f8ab(_0x22cbf4[_0xe96ac9('0x5')]);})[_0x372c64('0x8')](function(_0x3cfd54){const _0x558cfe=_0x372c64;return logger[_0x558cfe('0x7')]('rpc',_0x558cfe('0x9'),_0x822c4c,_0x3cfd54,_0x365805),_0x55293a(_0x3cfd54);});});},module['exports']=client; \ No newline at end of file +const a1149_0x2dce=['rpc','client','error','routing','message','result','Request','request','catch','jayson/promise','../../config/logger','debug'];(function(_0x5ef171,_0x2dce62){const _0x67ee3=function(_0x22519f){while(--_0x22519f){_0x5ef171['push'](_0x5ef171['shift']());}};_0x67ee3(++_0x2dce62);}(a1149_0x2dce,0x177));const a1149_0x67ee=function(_0x5ef171,_0x2dce62){_0x5ef171=_0x5ef171-0x0;let _0x67ee3=a1149_0x2dce[_0x5ef171];return _0x67ee3;};const _0x2f1088=a1149_0x67ee;'use strict';const jayson=require(_0x2f1088('0x6')),logger=require(_0x2f1088('0x7'))(_0x2f1088('0x0')),client=jayson[_0x2f1088('0xa')]['http']({'port':0x2329});client[_0x2f1088('0x3')]=function(_0x22519f,_0x2d52a2){return new Promise(function(_0x59bc4c,_0x16a021){const _0x30e9f2=a1149_0x67ee;return client[_0x30e9f2('0x4')](_0x22519f,_0x2d52a2)['then'](function(_0x2abb0b){const _0x15e18f=_0x30e9f2;return logger[_0x15e18f('0x8')](_0x15e18f('0x9'),_0x15e18f('0x0'),_0x22519f,_0x2d52a2,_0x2abb0b),_0x2abb0b['error']?(logger[_0x15e18f('0xb')](_0x15e18f('0x9'),_0x15e18f('0x0'),_0x22519f,_0x2abb0b[_0x15e18f('0xb')]['message'],_0x2d52a2),_0x16a021(_0x2abb0b['error'][_0x15e18f('0x1')])):_0x59bc4c(_0x2abb0b[_0x15e18f('0x2')]);})[_0x30e9f2('0x5')](function(_0x21b2cd){const _0x1236ed=_0x30e9f2;return logger['error'](_0x1236ed('0x9'),_0x1236ed('0x0'),_0x22519f,_0x21b2cd,_0x2d52a2),_0x16a021(_0x21b2cd);});});},module['exports']=client; \ No newline at end of file diff --git a/server/services/email/index.js b/server/services/email/index.js index 51b8c90..b3e2b2d 100644 --- a/server/services/email/index.js +++ b/server/services/email/index.js @@ -1 +1 @@ -const a1150_0x4956=['../../mysqldb','loginMailFrequency','then','catch','findOne','resolve','./lib/email','refresh','../../globals','Setting','initMailAccounts','./realtime','listen'];(function(_0x4539ac,_0x4956da){const _0x41d457=function(_0x44e2d0){while(--_0x44e2d0){_0x4539ac['push'](_0x4539ac['shift']());}};_0x41d457(++_0x4956da);}(a1150_0x4956,0x1d4));const a1150_0x41d4=function(_0x4539ac,_0x4956da){_0x4539ac=_0x4539ac-0x0;let _0x41d457=a1150_0x4956[_0x4539ac];return _0x41d457;};const _0x8ab9b9=a1150_0x41d4;'use strict';require(_0x8ab9b9('0x8'));const server=require('./server'),Realtime=require(_0x8ab9b9('0xb')),EmailChannel=require(_0x8ab9b9('0x6')),mailAccount=require('./rpc/mailAccount'),realtime=new Realtime(),email=new EmailChannel(realtime),db=require(_0x8ab9b9('0x0'))['db'];function initRealtime(){const _0x552a6f=_0x8ab9b9;return Promise[_0x552a6f('0x5')]()['then'](mailAccount['getMailAccounts']())[_0x552a6f('0x2')](realtime[_0x552a6f('0xa')]())[_0x552a6f('0x2')](function(){const _0xe748c=_0x552a6f;return email[_0xe748c('0x7')](realtime['mailAccounts']),realtime;});}function main(){const _0xf2a8af=_0x8ab9b9;return server[_0xf2a8af('0xc')](realtime,email)[_0xf2a8af('0x2')](function(){return initRealtime();})[_0xf2a8af('0x2')](function(){const _0x27bcbe=_0xf2a8af;return db[_0x27bcbe('0x9')][_0x27bcbe('0x4')]({'attributes':['id',_0x27bcbe('0x1')],'raw':!![]});})['then'](function(_0x44e2d0){return setInterval(initRealtime,_0x44e2d0['loginMailFrequency']*0x3e8);})[_0xf2a8af('0x3')](function(_0x45a319){console['log'](_0x45a319);});}main(); \ No newline at end of file +const a1150_0x4d2a=['loginMailFrequency','log','resolve','initMailAccounts','./lib/email','catch','refresh','./realtime','../../mysqldb','./rpc/mailAccount','./server','then'];(function(_0xfea1f1,_0x4d2a47){const _0x23088e=function(_0x2d3ec3){while(--_0x2d3ec3){_0xfea1f1['push'](_0xfea1f1['shift']());}};_0x23088e(++_0x4d2a47);}(a1150_0x4d2a,0x15e));const a1150_0x2308=function(_0xfea1f1,_0x4d2a47){_0xfea1f1=_0xfea1f1-0x0;let _0x23088e=a1150_0x4d2a[_0xfea1f1];return _0x23088e;};const _0x46bcad=a1150_0x2308;'use strict';require('../../globals');const server=require(_0x46bcad('0x8')),Realtime=require(_0x46bcad('0x5')),EmailChannel=require(_0x46bcad('0x2')),mailAccount=require(_0x46bcad('0x7')),realtime=new Realtime(),email=new EmailChannel(realtime),db=require(_0x46bcad('0x6'))['db'];function initRealtime(){const _0x141860=_0x46bcad;return Promise[_0x141860('0x0')]()[_0x141860('0x9')](mailAccount['getMailAccounts']())['then'](realtime[_0x141860('0x1')]())[_0x141860('0x9')](function(){const _0x1efaa2=_0x141860;return email[_0x1efaa2('0x4')](realtime['mailAccounts']),realtime;});}function main(){const _0x35e715=_0x46bcad;return server['listen'](realtime,email)[_0x35e715('0x9')](function(){return initRealtime();})[_0x35e715('0x9')](function(){const _0x55071e=_0x35e715;return db['Setting']['findOne']({'attributes':['id',_0x55071e('0xa')],'raw':!![]});})[_0x35e715('0x9')](function(_0x2d3ec3){return setInterval(initRealtime,_0x2d3ec3['loginMailFrequency']*0x3e8);})[_0x35e715('0x3')](function(_0xe0c54){const _0x25c091=_0x35e715;console[_0x25c091('0xb')](_0xe0c54);});}main(); \ No newline at end of file diff --git a/server/services/email/lib/email.js b/server/services/email/lib/email.js index b70f95b..68b827c 100644 --- a/server/services/email/lib/email.js +++ b/server/services/email/lib/email.js @@ -1 +1 @@ -const a1151_0x4b94=['notify','mailAccount:update','./smtp','refresh','prototype','total','box','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','Imap','smtp','handleImapEmail','error','status','Mail\x20not\x20accepted\x20from\x20routing\x20%s','messageStatus','email','sendMail','from','start\x20email\x20channel','undefined','connected','disabled','../../../config/logger','handleImapError','lastSync','verified','imapAccounts','info','mailAccounts','stringify','isNil','verifySmtp','lastName','Smtp','handleImapBox','messages','md5','active','firstName','catch','Mail\x20accepted\x20from\x20routing','exports','emit','key','bind','verify','then','name','end','../rpc/mailAccount'];(function(_0x205852,_0x4b94da){const _0x1d3e6c=function(_0x80315d){while(--_0x80315d){_0x205852['push'](_0x205852['shift']());}};_0x1d3e6c(++_0x4b94da);}(a1151_0x4b94,0x85));const a1151_0x1d3e=function(_0x205852,_0x4b94da){_0x205852=_0x205852-0x0;let _0x1d3e6c=a1151_0x4b94[_0x205852];return _0x1d3e6c;};const _0x33e51c=a1151_0x1d3e;'use strict';const _=require('lodash'),moment=require('moment'),md5=require('md5'),logger=require(_0x33e51c('0x27'))(_0x33e51c('0x20')),{getSocket}=require('../../../rediscache'),io=getSocket(),EmailImap=require('./imap'),EmailSmtp=require(_0x33e51c('0x13')),mailAccount=require(_0x33e51c('0x10')),md5Accounts={};function EmailChannel(_0x80315d){const _0x49b707=_0x33e51c;logger[_0x49b707('0x2c')](_0x49b707('0x23')),this[_0x49b707('0x2d')]=_0x80315d['mailAccounts'],this[_0x49b707('0x2b')]={},this[_0x49b707('0x1a')]=new EmailSmtp();}EmailChannel[_0x33e51c('0x15')][_0x33e51c('0x9')]=function(_0x42cb97){const _0x40760a=_0x33e51c,_0x10265a=this['mailAccounts'][_0x42cb97],_0xa0f15f={'id':_0x10265a['id'],'name':_0x10265a[_0x40760a('0xe')],'key':_0x10265a[_0x40760a('0xa')],'active':_0x10265a[_0x40760a('0x4')],'Imap':{'status':_0x10265a[_0x40760a('0x19')][_0x40760a('0x1d')],'messageStatus':_0x10265a[_0x40760a('0x19')][_0x40760a('0x1f')],'total':_0x10265a[_0x40760a('0x19')]['total']}};_[_0x40760a('0x2f')](md5Accounts[_0x42cb97])&&(md5Accounts[_0x42cb97]={});const _0x10ba80=md5(JSON[_0x40760a('0x2e')](_0xa0f15f));md5Accounts[_0x42cb97]['md5']!==_0x10ba80&&(md5Accounts[_0x42cb97][_0x40760a('0x3')]=_0x10ba80,io['emit'](_0x40760a('0x12'),_0xa0f15f));},EmailChannel['prototype'][_0x33e51c('0x14')]=function(_0x4b0e1f){const _0x5e0c8d=_0x33e51c;for(const _0x40c548 in _0x4b0e1f){if(typeof _0x4b0e1f[_0x40c548]!==_0x5e0c8d('0x24')){if(_0x4b0e1f[_0x40c548][_0x5e0c8d('0x19')]&&_0x4b0e1f[_0x40c548][_0x5e0c8d('0x4')]){const _0x399c02=_0x4b0e1f[_0x40c548][_0x5e0c8d('0x19')];typeof this[_0x5e0c8d('0x2b')][_0x399c02['id']]===_0x5e0c8d('0x24')&&(this[_0x5e0c8d('0x2b')][_0x399c02['id']]=new EmailImap(_0x399c02,_0x4b0e1f[_0x40c548]['email']),this[_0x5e0c8d('0x2b')][_0x399c02['id']]['on'](_0x5e0c8d('0x17'),this[_0x5e0c8d('0x1')][_0x5e0c8d('0xb')](this,_0x40c548)),this[_0x5e0c8d('0x2b')][_0x399c02['id']]['on'](_0x5e0c8d('0x20'),this[_0x5e0c8d('0x1b')][_0x5e0c8d('0xb')](this,_0x40c548)),this[_0x5e0c8d('0x2b')][_0x399c02['id']]['on'](_0x5e0c8d('0xf'),this['handleImapEnd']['bind'](this,_0x40c548)),this[_0x5e0c8d('0x2b')][_0x399c02['id']]['on'](_0x5e0c8d('0x1c'),this[_0x5e0c8d('0x28')]['bind'](this,_0x40c548)));}else _[_0x5e0c8d('0x2f')](this[_0x5e0c8d('0x2d')][_0x40c548]['Imap'])&&(this['mailAccounts'][_0x40c548][_0x5e0c8d('0x19')]={}),this[_0x5e0c8d('0x2d')][_0x40c548][_0x5e0c8d('0x19')][_0x5e0c8d('0x1d')]=_0x5e0c8d('0x26'),this[_0x5e0c8d('0x2d')][_0x40c548][_0x5e0c8d('0x19')][_0x5e0c8d('0x1f')]='',this[_0x5e0c8d('0x9')](_0x40c548);}}},EmailChannel['prototype'][_0x33e51c('0x1')]=function(_0xa86676,_0x4dd02e){const _0x56e531=_0x33e51c;if(this[_0x56e531('0x2d')][_0xa86676])return this['mailAccounts'][_0xa86676][_0x56e531('0x19')][_0x56e531('0x1d')]=_0x56e531('0x25'),this[_0x56e531('0x2d')][_0xa86676][_0x56e531('0x19')][_0x56e531('0x1f')]=_0x4dd02e[_0x56e531('0xe')],_0x4dd02e[_0x56e531('0x2')]&&(this[_0x56e531('0x2d')][_0xa86676][_0x56e531('0x19')][_0x56e531('0x16')]=_0x4dd02e[_0x56e531('0x2')]['total']),this[_0x56e531('0x9')](_0xa86676);},EmailChannel['prototype'][_0x33e51c('0x1b')]=function(_0x204d7a,_0x205d2f){const _0x10dff2=_0x33e51c;logger['info'](_0x10dff2('0x18'),_0x205d2f[_0x10dff2('0x5')],_0x205d2f[_0x10dff2('0x31')],_0x205d2f[_0x10dff2('0x22')],_0x204d7a);if(this[_0x10dff2('0x2d')][_0x204d7a])return mailAccount[_0x10dff2('0x11')](_0x204d7a,_0x205d2f)[_0x10dff2('0xd')](function(_0x250364){const _0x45eda8=_0x10dff2;_0x250364&&logger[_0x45eda8('0x2c')](_0x45eda8('0x7'));})[_0x10dff2('0x6')](function(_0x35f905){const _0x3e7292=_0x10dff2;logger['error'](_0x3e7292('0x1e'),JSON[_0x3e7292('0x2e')](_0x35f905));});},EmailChannel[_0x33e51c('0x15')]['handleImapEnd']=function(_0x1c5dcd){const _0x53a33f=_0x33e51c;this[_0x53a33f('0x2d')][_0x1c5dcd]&&this[_0x53a33f('0x2d')][_0x1c5dcd][_0x53a33f('0x19')]&&(this[_0x53a33f('0x2b')][this[_0x53a33f('0x2d')][_0x1c5dcd][_0x53a33f('0x19')]['id']]&&delete this[_0x53a33f('0x2b')][this['mailAccounts'][_0x1c5dcd]['Imap']['id']],this[_0x53a33f('0x2d')][_0x1c5dcd][_0x53a33f('0x19')][_0x53a33f('0x29')]=moment(),this[_0x53a33f('0x9')](_0x1c5dcd));},EmailChannel['prototype'][_0x33e51c('0x28')]=function(_0x460905,_0x575f72){const _0x1e642a=_0x33e51c;if(this[_0x1e642a('0x2d')][_0x460905])return this['mailAccounts'][_0x460905][_0x1e642a('0x19')]['status']=_0x1e642a('0x1c'),this[_0x1e642a('0x2d')][_0x460905]['Imap']['messageStatus']=_0x575f72,this[_0x1e642a('0x9')](_0x460905);},EmailChannel[_0x33e51c('0x15')][_0x33e51c('0x21')]=function(_0x22b66c,_0x5e8881){const _0x2e09c3=_0x33e51c;return this[_0x2e09c3('0x1a')]['send'](_0x22b66c,_0x5e8881);},EmailChannel[_0x33e51c('0x15')][_0x33e51c('0x30')]=function(_0x3bfcb9){const _0x1d393b=_0x33e51c,_0xf8ebc4=this;if(this[_0x1d393b('0x2d')][_0x3bfcb9['id']])return _['isNil'](this[_0x1d393b('0x2d')][_0x3bfcb9['id']][_0x1d393b('0x0')])&&(this[_0x1d393b('0x2d')][_0x3bfcb9['id']]['Smtp']={}),this[_0x1d393b('0x2d')][_0x3bfcb9['id']][_0x1d393b('0x0')][_0x1d393b('0x29')]=moment(),new Promise(function(_0x10d46d,_0x5ef5d7){const _0xdea6fa=_0x1d393b;return _0xf8ebc4[_0xdea6fa('0x1a')]['verify'](_0x3bfcb9)[_0xdea6fa('0xd')](function(_0x3bbc21){const _0x3fcd21=_0xdea6fa;_0xf8ebc4['mailAccounts'][_0x3bfcb9['id']][_0x3fcd21('0x0')]['status']=_0x3fcd21('0x2a'),_0xf8ebc4[_0x3fcd21('0x2d')][_0x3bfcb9['id']]['Smtp'][_0x3fcd21('0x1f')]='',_0xf8ebc4[_0x3fcd21('0x9')](_0x3bfcb9['id']),_0x10d46d(_0x3bbc21);})[_0xdea6fa('0x6')](function(_0x3b1f77){const _0x6f5dfe=_0xdea6fa;_0xf8ebc4[_0x6f5dfe('0x2d')][_0x3bfcb9['id']][_0x6f5dfe('0x0')][_0x6f5dfe('0x1d')]=_0x6f5dfe('0x1c'),_0xf8ebc4[_0x6f5dfe('0x2d')][_0x3bfcb9['id']]['Smtp'][_0x6f5dfe('0x1f')]=_0x3b1f77,_0xf8ebc4[_0x6f5dfe('0x9')](_0x3bfcb9['id']),_0x5ef5d7(_0x3b1f77);});});return this[_0x1d393b('0x1a')][_0x1d393b('0xc')](_0x3bfcb9);},module[_0x33e51c('0x8')]=EmailChannel; \ No newline at end of file +const a1151_0x2c10=['messageStatus','info','../../../rediscache','error','lastSync','md5','prototype','./smtp','../../../config/logger','handleImapError','then','smtp','verified','lastName','notify','imapAccounts','disabled','firstName','from','emit','messages','sendMail','active','bind','./imap','email','total','Imap','Mail\x20not\x20accepted\x20from\x20routing\x20%s','isNil','status','key','handleImapBox','verifySmtp','name','mailAccounts','../rpc/mailAccount','handleImapEmail','refresh','undefined','verify','start\x20email\x20channel','Smtp','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','box','handleImapEnd','catch'];(function(_0x450b72,_0x2c1086){const _0x1f340e=function(_0x99d5e9){while(--_0x99d5e9){_0x450b72['push'](_0x450b72['shift']());}};_0x1f340e(++_0x2c1086);}(a1151_0x2c10,0x11c));const a1151_0x1f34=function(_0x450b72,_0x2c1086){_0x450b72=_0x450b72-0x0;let _0x1f340e=a1151_0x2c10[_0x450b72];return _0x1f340e;};const _0x4c8128=a1151_0x1f34;'use strict';const _=require('lodash'),moment=require('moment'),md5=require(_0x4c8128('0x3')),logger=require(_0x4c8128('0x6'))('email'),{getSocket}=require(_0x4c8128('0x0')),io=getSocket(),EmailImap=require(_0x4c8128('0x16')),EmailSmtp=require(_0x4c8128('0x5')),mailAccount=require(_0x4c8128('0x22')),md5Accounts={};function EmailChannel(_0x99d5e9){const _0x3bda47=_0x4c8128;logger[_0x3bda47('0x2e')](_0x3bda47('0x27')),this[_0x3bda47('0x21')]=_0x99d5e9['mailAccounts'],this[_0x3bda47('0xd')]={},this[_0x3bda47('0x9')]=new EmailSmtp();}EmailChannel[_0x4c8128('0x4')][_0x4c8128('0x11')]=function(_0x256e38){const _0x2e00a6=_0x4c8128,_0x2c4ac0=this[_0x2e00a6('0x21')][_0x256e38],_0x5f3509={'id':_0x2c4ac0['id'],'name':_0x2c4ac0[_0x2e00a6('0x20')],'key':_0x2c4ac0[_0x2e00a6('0x1d')],'active':_0x2c4ac0[_0x2e00a6('0x14')],'Imap':{'status':_0x2c4ac0['Imap'][_0x2e00a6('0x1c')],'messageStatus':_0x2c4ac0[_0x2e00a6('0x19')][_0x2e00a6('0x2d')],'total':_0x2c4ac0['Imap'][_0x2e00a6('0x18')]}};_[_0x2e00a6('0x1b')](md5Accounts[_0x256e38])&&(md5Accounts[_0x256e38]={});const _0x1ae8d8=md5(JSON['stringify'](_0x5f3509));md5Accounts[_0x256e38]['md5']!==_0x1ae8d8&&(md5Accounts[_0x256e38]['md5']=_0x1ae8d8,io[_0x2e00a6('0x11')]('mailAccount:update',_0x5f3509));},EmailChannel[_0x4c8128('0x4')][_0x4c8128('0x24')]=function(_0x42c45e){const _0x464f05=_0x4c8128;for(const _0x3f2b56 in _0x42c45e){if(typeof _0x42c45e[_0x3f2b56]!=='undefined'){if(_0x42c45e[_0x3f2b56][_0x464f05('0x19')]&&_0x42c45e[_0x3f2b56]['active']){const _0x4b2123=_0x42c45e[_0x3f2b56][_0x464f05('0x19')];typeof this[_0x464f05('0xd')][_0x4b2123['id']]===_0x464f05('0x25')&&(this[_0x464f05('0xd')][_0x4b2123['id']]=new EmailImap(_0x4b2123,_0x42c45e[_0x3f2b56][_0x464f05('0x17')]),this[_0x464f05('0xd')][_0x4b2123['id']]['on'](_0x464f05('0x2a'),this[_0x464f05('0x1e')]['bind'](this,_0x3f2b56)),this[_0x464f05('0xd')][_0x4b2123['id']]['on'](_0x464f05('0x17'),this[_0x464f05('0x23')]['bind'](this,_0x3f2b56)),this['imapAccounts'][_0x4b2123['id']]['on']('end',this[_0x464f05('0x2b')][_0x464f05('0x15')](this,_0x3f2b56)),this['imapAccounts'][_0x4b2123['id']]['on']('error',this[_0x464f05('0x7')]['bind'](this,_0x3f2b56)));}else _[_0x464f05('0x1b')](this['mailAccounts'][_0x3f2b56][_0x464f05('0x19')])&&(this[_0x464f05('0x21')][_0x3f2b56][_0x464f05('0x19')]={}),this[_0x464f05('0x21')][_0x3f2b56]['Imap']['status']=_0x464f05('0xe'),this[_0x464f05('0x21')][_0x3f2b56]['Imap']['messageStatus']='',this[_0x464f05('0x11')](_0x3f2b56);}}},EmailChannel['prototype']['handleImapBox']=function(_0x186a25,_0x4428e7){const _0x57b92d=_0x4c8128;if(this['mailAccounts'][_0x186a25])return this[_0x57b92d('0x21')][_0x186a25][_0x57b92d('0x19')]['status']='connected',this[_0x57b92d('0x21')][_0x186a25][_0x57b92d('0x19')]['messageStatus']=_0x4428e7[_0x57b92d('0x20')],_0x4428e7[_0x57b92d('0x12')]&&(this[_0x57b92d('0x21')][_0x186a25]['Imap'][_0x57b92d('0x18')]=_0x4428e7[_0x57b92d('0x12')]['total']),this['emit'](_0x186a25);},EmailChannel[_0x4c8128('0x4')]['handleImapEmail']=function(_0x586f0b,_0x6de3e2){const _0x18e68e=_0x4c8128;logger[_0x18e68e('0x2e')](_0x18e68e('0x29'),_0x6de3e2[_0x18e68e('0xf')],_0x6de3e2[_0x18e68e('0xb')],_0x6de3e2[_0x18e68e('0x10')],_0x586f0b);if(this[_0x18e68e('0x21')][_0x586f0b])return mailAccount[_0x18e68e('0xc')](_0x586f0b,_0x6de3e2)[_0x18e68e('0x8')](function(_0xdbddcf){const _0x771f6f=_0x18e68e;_0xdbddcf&&logger[_0x771f6f('0x2e')]('Mail\x20accepted\x20from\x20routing');})[_0x18e68e('0x2c')](function(_0x3aa1b0){const _0x100039=_0x18e68e;logger[_0x100039('0x1')](_0x100039('0x1a'),JSON['stringify'](_0x3aa1b0));});},EmailChannel['prototype'][_0x4c8128('0x2b')]=function(_0xce35a0){const _0x4db582=_0x4c8128;this['mailAccounts'][_0xce35a0]&&this[_0x4db582('0x21')][_0xce35a0]['Imap']&&(this[_0x4db582('0xd')][this['mailAccounts'][_0xce35a0]['Imap']['id']]&&delete this['imapAccounts'][this[_0x4db582('0x21')][_0xce35a0][_0x4db582('0x19')]['id']],this[_0x4db582('0x21')][_0xce35a0][_0x4db582('0x19')][_0x4db582('0x2')]=moment(),this[_0x4db582('0x11')](_0xce35a0));},EmailChannel[_0x4c8128('0x4')][_0x4c8128('0x7')]=function(_0x3b7a75,_0x482d2f){const _0x57d0a2=_0x4c8128;if(this[_0x57d0a2('0x21')][_0x3b7a75])return this[_0x57d0a2('0x21')][_0x3b7a75][_0x57d0a2('0x19')][_0x57d0a2('0x1c')]=_0x57d0a2('0x1'),this[_0x57d0a2('0x21')][_0x3b7a75][_0x57d0a2('0x19')][_0x57d0a2('0x2d')]=_0x482d2f,this[_0x57d0a2('0x11')](_0x3b7a75);},EmailChannel[_0x4c8128('0x4')][_0x4c8128('0x13')]=function(_0xfe94e2,_0x3e290f){const _0xae6f37=_0x4c8128;return this[_0xae6f37('0x9')]['send'](_0xfe94e2,_0x3e290f);},EmailChannel['prototype'][_0x4c8128('0x1f')]=function(_0x1a8018){const _0x51111f=_0x4c8128,_0x485501=this;if(this[_0x51111f('0x21')][_0x1a8018['id']])return _['isNil'](this['mailAccounts'][_0x1a8018['id']][_0x51111f('0x28')])&&(this[_0x51111f('0x21')][_0x1a8018['id']][_0x51111f('0x28')]={}),this[_0x51111f('0x21')][_0x1a8018['id']][_0x51111f('0x28')]['lastSync']=moment(),new Promise(function(_0x41cdfb,_0x4efc75){const _0x3362b2=_0x51111f;return _0x485501[_0x3362b2('0x9')][_0x3362b2('0x26')](_0x1a8018)[_0x3362b2('0x8')](function(_0xb51845){const _0x4c1c18=_0x3362b2;_0x485501['mailAccounts'][_0x1a8018['id']][_0x4c1c18('0x28')][_0x4c1c18('0x1c')]=_0x4c1c18('0xa'),_0x485501[_0x4c1c18('0x21')][_0x1a8018['id']][_0x4c1c18('0x28')][_0x4c1c18('0x2d')]='',_0x485501[_0x4c1c18('0x11')](_0x1a8018['id']),_0x41cdfb(_0xb51845);})[_0x3362b2('0x2c')](function(_0x2aed4d){const _0x41b0d8=_0x3362b2;_0x485501[_0x41b0d8('0x21')][_0x1a8018['id']][_0x41b0d8('0x28')]['status']=_0x41b0d8('0x1'),_0x485501[_0x41b0d8('0x21')][_0x1a8018['id']][_0x41b0d8('0x28')][_0x41b0d8('0x2d')]=_0x2aed4d,_0x485501['emit'](_0x1a8018['id']),_0x4efc75(_0x2aed4d);});});return this['smtp'][_0x51111f('0x26')](_0x1a8018);},module['exports']=EmailChannel; \ No newline at end of file diff --git a/server/services/email/lib/imap.js b/server/services/email/lib/imap.js index ed80726..e40813f 100644 --- a/server/services/email/lib/imap.js +++ b/server/services/email/lib/imap.js @@ -1 +1 @@ -const a1152_0x29ae=['../../../config/logger','handleReady','connTimeout','handleOpenBox','handleCloseBox','util','imap','handleMessageBody','textCode','user','service','box','authTimeout','./utils','getAccount','once','anonymous@xcally.com','message','UNSEEN','connect','handleMessageEnd','bind','account','stringify','mailparser','INBOX','readUnseen','undefined','fetch','password','handleError','mailbox','authentication','handleReadUnseen','host','end','simpleParser','handleEnd','events','port','tls','emit','handleFetchMessage','body','Iconv','handleMessageAttributes','openBox','prototype','handleSimpleParser','EventEmitter','error','handleFetchEnd','autotls','closeBox','handleFetchError','isNil','search','email'];(function(_0x30da93,_0x29ae99){const _0x10b0cb=function(_0x17aabe){while(--_0x17aabe){_0x30da93['push'](_0x30da93['shift']());}};_0x10b0cb(++_0x29ae99);}(a1152_0x29ae,0xa4));const a1152_0x10b0=function(_0x30da93,_0x29ae99){_0x30da93=_0x30da93-0x0;let _0x10b0cb=a1152_0x29ae[_0x30da93];return _0x10b0cb;};const _0x495ab2=a1152_0x10b0;'use strict';const util=require(_0x495ab2('0xf')),Imap=require(_0x495ab2('0x10')),_=require('lodash'),simpleParser=require(_0x495ab2('0x22'))[_0x495ab2('0x2e')],Iconv=require('iconv')[_0x495ab2('0x36')],EventEmitter=require(_0x495ab2('0x30'))[_0x495ab2('0x1')],utils=require(_0x495ab2('0x17')),logger=require(_0x495ab2('0xa'))(_0x495ab2('0x9'));function EmailImap(_0x17aabe,_0x4278d0){const _0x289644=_0x495ab2;this[_0x289644('0x29')]=_0x289644('0x23'),this[_0x289644('0x20')]=this[_0x289644('0x18')](_0x17aabe,_0x4278d0),this[_0x289644('0x10')]=new Imap(this[_0x289644('0x20')]),this['imap'][_0x289644('0x19')]('ready',this[_0x289644('0xb')][_0x289644('0x1f')](this)),this[_0x289644('0x10')]['once'](_0x289644('0x2d'),this[_0x289644('0x2f')]['bind'](this)),this['imap']['on']('error',this['handleError'][_0x289644('0x1f')](this)),this[_0x289644('0x10')][_0x289644('0x1d')]();}util['inherits'](EmailImap,EventEmitter),EmailImap[_0x495ab2('0x39')]['getAccount']=function(_0x275fdd,_0xa0cce8){const _0x49c46b=_0x495ab2,_0x36247b={'connTimeout':_0x275fdd['connTimeout']?_0x275fdd[_0x49c46b('0xc')]*0x3e8:0x2710,'authTimeout':_0x275fdd['authTimeout']?_0x275fdd[_0x49c46b('0x16')]*0x3e8:0x1388};return _[_0x49c46b('0x7')](_0x275fdd[_0x49c46b('0x14')])?(_0x275fdd[_0x49c46b('0x2a')]&&(_0x36247b[_0x49c46b('0x13')]=_0x275fdd[_0x49c46b('0x13')],_0x36247b[_0x49c46b('0x27')]=_0x275fdd[_0x49c46b('0x27')]),_0x36247b[_0x49c46b('0x2c')]=_0x275fdd[_0x49c46b('0x2c')],_0x36247b[_0x49c46b('0x31')]=_0x275fdd[_0x49c46b('0x31')]||0x3e1,_0x275fdd[_0x49c46b('0x32')]?_0x36247b[_0x49c46b('0x32')]=!![]:(_0x36247b[_0x49c46b('0x32')]=![],_0x36247b[_0x49c46b('0x4')]='required')):(_0x36247b[_0x49c46b('0x13')]=_0x275fdd[_0x49c46b('0x13')],_0x36247b[_0x49c46b('0x27')]=_0x275fdd['password'],_0x36247b['host']=utils['getHost'](_0x275fdd[_0x49c46b('0x14')]),_0x36247b['port']=0x3e1,_0x36247b[_0x49c46b('0x32')]=!![]),_0x36247b[_0x49c46b('0x9')]=_0xa0cce8||_0x275fdd[_0x49c46b('0x13')]||_0x49c46b('0x1a'),_0x36247b;},EmailImap['prototype']['handleReady']=function(){const _0x1d4416=_0x495ab2;this[_0x1d4416('0x10')][_0x1d4416('0x38')](this['mailbox'],![],this['handleOpenBox'][_0x1d4416('0x1f')](this));},EmailImap[_0x495ab2('0x39')][_0x495ab2('0xd')]=function(_0xee5745,_0x31619f){const _0x1696d1=_0x495ab2;_0xee5745?this[_0x1696d1('0x28')](_0xee5745,!![]):(this['emit'](_0x1696d1('0x15'),_0x31619f),this[_0x1696d1('0x24')]());},EmailImap[_0x495ab2('0x39')][_0x495ab2('0xe')]=function(_0x5dee5a){const _0x385eb6=_0x495ab2;_0x5dee5a?this[_0x385eb6('0x28')](_0x5dee5a,!![]):this['imap'][_0x385eb6('0x2d')]();},EmailImap[_0x495ab2('0x39')][_0x495ab2('0x24')]=function(){const _0x592b8c=_0x495ab2;this[_0x592b8c('0x10')][_0x592b8c('0x8')]([_0x592b8c('0x1c')],this[_0x592b8c('0x2b')][_0x592b8c('0x1f')](this));},EmailImap[_0x495ab2('0x39')][_0x495ab2('0x2b')]=function(_0x13ab75,_0x117c61){const _0x13cd29=_0x495ab2;if(_0x13ab75)this['handleError'](_0x13ab75,!![]);else{if(_0x117c61['length'])try{const _0x5b7fd2=this[_0x13cd29('0x10')][_0x13cd29('0x26')](_0x117c61,{'bodies':'','markSeen':!![]});_0x5b7fd2['on'](_0x13cd29('0x1b'),this[_0x13cd29('0x34')][_0x13cd29('0x1f')](this)),_0x5b7fd2[_0x13cd29('0x19')](_0x13cd29('0x2'),this[_0x13cd29('0x6')][_0x13cd29('0x1f')](this)),_0x5b7fd2[_0x13cd29('0x19')]('end',this[_0x13cd29('0x3')]['bind'](this));}catch(_0xb06fd7){logger[_0x13cd29('0x2')](_0xb06fd7);}else this[_0x13cd29('0x10')][_0x13cd29('0x5')](!![],this['handleCloseBox'][_0x13cd29('0x1f')](this));}},EmailImap[_0x495ab2('0x39')][_0x495ab2('0x34')]=function(_0x1297d5){const _0x26a8bd=_0x495ab2;_0x1297d5['on'](_0x26a8bd('0x35'),this['handleMessageBody'][_0x26a8bd('0x1f')](this)),_0x1297d5[_0x26a8bd('0x19')]('attributes',this[_0x26a8bd('0x37')][_0x26a8bd('0x1f')](this)),_0x1297d5[_0x26a8bd('0x19')](_0x26a8bd('0x2d'),this[_0x26a8bd('0x1e')]['bind'](this));},EmailImap['prototype'][_0x495ab2('0x11')]=function(_0x569309){const _0x13a463=_0x495ab2;simpleParser(_0x569309,{'Iconv':Iconv},this[_0x13a463('0x0')][_0x13a463('0x1f')](this));},EmailImap['prototype'][_0x495ab2('0x37')]=function(){},EmailImap[_0x495ab2('0x39')][_0x495ab2('0x1e')]=function(){},EmailImap[_0x495ab2('0x39')]['handleSimpleParser']=function(_0xff0a9e,_0x4e309f){const _0x20f978=_0x495ab2;if(_0xff0a9e)logger[_0x20f978('0x2')](_0xff0a9e);else{const _0x3bd26f=this;utils['parser'](this[_0x20f978('0x20')],_0x4e309f,function(_0x55cd4c){const _0x4325ce=_0x20f978;_0x3bd26f[_0x4325ce('0x33')](_0x4325ce('0x9'),_0x55cd4c);});}},EmailImap[_0x495ab2('0x39')][_0x495ab2('0x3')]=function(){const _0x1511fa=_0x495ab2;this[_0x1511fa('0x10')][_0x1511fa('0x5')](!![],this[_0x1511fa('0xe')][_0x1511fa('0x1f')](this));},EmailImap['prototype']['handleFetchError']=function(_0x294a13){const _0x5a6db8=_0x495ab2;this['handleError'](_0x294a13),this[_0x5a6db8('0x10')][_0x5a6db8('0x5')](!![],this[_0x5a6db8('0xe')][_0x5a6db8('0x1f')](this));},EmailImap[_0x495ab2('0x39')][_0x495ab2('0x2f')]=function(){const _0xf55bea=_0x495ab2;this[_0xf55bea('0x33')](_0xf55bea('0x2d'));},EmailImap[_0x495ab2('0x39')][_0x495ab2('0x28')]=function(_0x4e1234,_0x3e55a2){const _0x1a51f8=_0x495ab2;logger[_0x1a51f8('0x2')]('handleError',this[_0x1a51f8('0x20')]['email'],JSON[_0x1a51f8('0x21')](_0x4e1234));let _0x384ac7='';if(_0x4e1234){if(_0x4e1234[_0x1a51f8('0x12')])_0x384ac7=_0x4e1234[_0x1a51f8('0x12')];else for(const _0x2715e9 in _0x4e1234){typeof _0x4e1234[_0x2715e9]!==_0x1a51f8('0x25')&&(_0x384ac7+=_['upperFirst'](_0x2715e9)+':\x20'+_0x4e1234[_0x2715e9]+'\x0a');}}_0x3e55a2?this[_0x1a51f8('0x10')][_0x1a51f8('0x2d')]():(this[_0x1a51f8('0x33')](_0x1a51f8('0x2'),_0x384ac7),this['emit'](_0x1a51f8('0x2d')));},module['exports']=EmailImap; \ No newline at end of file +const a1152_0x17ea=['error','iconv','handleFetchEnd','getHost','inherits','handleFetchError','connect','message','openBox','lodash','handleOpenBox','./utils','search','Iconv','isNil','util','box','textCode','body','handleReady','mailparser','anonymous@xcally.com','readUnseen','handleMessageAttributes','handleFetchMessage','undefined','handleSimpleParser','handleMessageBody','service','user','authentication','mailbox','upperFirst','once','port','INBOX','handleCloseBox','getAccount','ready','length','email','end','imap','tls','parser','host','EventEmitter','bind','UNSEEN','stringify','attributes','prototype','required','closeBox','account','handleMessageEnd','handleEnd','emit','password','handleError','connTimeout','authTimeout'];(function(_0x5cd670,_0x17ea35){const _0x3705dd=function(_0x37c344){while(--_0x37c344){_0x5cd670['push'](_0x5cd670['shift']());}};_0x3705dd(++_0x17ea35);}(a1152_0x17ea,0x1ef));const a1152_0x3705=function(_0x5cd670,_0x17ea35){_0x5cd670=_0x5cd670-0x0;let _0x3705dd=a1152_0x17ea[_0x5cd670];return _0x3705dd;};const _0x25f25b=a1152_0x3705;'use strict';const util=require(_0x25f25b('0x10')),Imap=require(_0x25f25b('0x2b')),_=require(_0x25f25b('0xa')),simpleParser=require(_0x25f25b('0x15'))['simpleParser'],Iconv=require(_0x25f25b('0x2'))[_0x25f25b('0xe')],EventEmitter=require('events')[_0x25f25b('0x2f')],utils=require(_0x25f25b('0xc')),logger=require('../../../config/logger')(_0x25f25b('0x29'));function EmailImap(_0x37c344,_0x4c6bc9){const _0x1bc85f=_0x25f25b;this[_0x1bc85f('0x20')]=_0x1bc85f('0x24'),this['account']=this[_0x1bc85f('0x26')](_0x37c344,_0x4c6bc9),this[_0x1bc85f('0x2b')]=new Imap(this[_0x1bc85f('0x37')]),this[_0x1bc85f('0x2b')]['once'](_0x1bc85f('0x27'),this[_0x1bc85f('0x14')]['bind'](this)),this['imap']['once'](_0x1bc85f('0x2a'),this[_0x1bc85f('0x39')][_0x1bc85f('0x30')](this)),this[_0x1bc85f('0x2b')]['on'](_0x1bc85f('0x1'),this[_0x1bc85f('0x3c')][_0x1bc85f('0x30')](this)),this[_0x1bc85f('0x2b')][_0x1bc85f('0x7')]();}util[_0x25f25b('0x5')](EmailImap,EventEmitter),EmailImap[_0x25f25b('0x34')][_0x25f25b('0x26')]=function(_0x793719,_0x90520){const _0x1abe03=_0x25f25b,_0x2f134a={'connTimeout':_0x793719['connTimeout']?_0x793719[_0x1abe03('0x3d')]*0x3e8:0x2710,'authTimeout':_0x793719['authTimeout']?_0x793719[_0x1abe03('0x0')]*0x3e8:0x1388};return _[_0x1abe03('0xf')](_0x793719[_0x1abe03('0x1d')])?(_0x793719[_0x1abe03('0x1f')]&&(_0x2f134a['user']=_0x793719[_0x1abe03('0x1e')],_0x2f134a[_0x1abe03('0x3b')]=_0x793719[_0x1abe03('0x3b')]),_0x2f134a['host']=_0x793719[_0x1abe03('0x2e')],_0x2f134a[_0x1abe03('0x23')]=_0x793719[_0x1abe03('0x23')]||0x3e1,_0x793719['tls']?_0x2f134a['tls']=!![]:(_0x2f134a[_0x1abe03('0x2c')]=![],_0x2f134a['autotls']=_0x1abe03('0x35'))):(_0x2f134a['user']=_0x793719[_0x1abe03('0x1e')],_0x2f134a['password']=_0x793719['password'],_0x2f134a[_0x1abe03('0x2e')]=utils[_0x1abe03('0x4')](_0x793719[_0x1abe03('0x1d')]),_0x2f134a[_0x1abe03('0x23')]=0x3e1,_0x2f134a['tls']=!![]),_0x2f134a[_0x1abe03('0x29')]=_0x90520||_0x793719[_0x1abe03('0x1e')]||_0x1abe03('0x16'),_0x2f134a;},EmailImap[_0x25f25b('0x34')][_0x25f25b('0x14')]=function(){const _0x3c3b35=_0x25f25b;this[_0x3c3b35('0x2b')][_0x3c3b35('0x9')](this[_0x3c3b35('0x20')],![],this[_0x3c3b35('0xb')]['bind'](this));},EmailImap[_0x25f25b('0x34')][_0x25f25b('0xb')]=function(_0x5c5870,_0x191cac){const _0x4c8c36=_0x25f25b;_0x5c5870?this['handleError'](_0x5c5870,!![]):(this[_0x4c8c36('0x3a')](_0x4c8c36('0x11'),_0x191cac),this[_0x4c8c36('0x17')]());},EmailImap[_0x25f25b('0x34')][_0x25f25b('0x25')]=function(_0x17bbab){const _0x540719=_0x25f25b;_0x17bbab?this[_0x540719('0x3c')](_0x17bbab,!![]):this[_0x540719('0x2b')][_0x540719('0x2a')]();},EmailImap[_0x25f25b('0x34')][_0x25f25b('0x17')]=function(){const _0x5d65a7=_0x25f25b;this[_0x5d65a7('0x2b')][_0x5d65a7('0xd')]([_0x5d65a7('0x31')],this['handleReadUnseen'][_0x5d65a7('0x30')](this));},EmailImap['prototype']['handleReadUnseen']=function(_0x2e1831,_0x56b932){const _0x1762ce=_0x25f25b;if(_0x2e1831)this[_0x1762ce('0x3c')](_0x2e1831,!![]);else{if(_0x56b932[_0x1762ce('0x28')])try{const _0x3b91da=this['imap']['fetch'](_0x56b932,{'bodies':'','markSeen':!![]});_0x3b91da['on'](_0x1762ce('0x8'),this[_0x1762ce('0x19')][_0x1762ce('0x30')](this)),_0x3b91da[_0x1762ce('0x22')](_0x1762ce('0x1'),this['handleFetchError'][_0x1762ce('0x30')](this)),_0x3b91da[_0x1762ce('0x22')](_0x1762ce('0x2a'),this[_0x1762ce('0x3')][_0x1762ce('0x30')](this));}catch(_0x1b1a67){logger[_0x1762ce('0x1')](_0x1b1a67);}else this['imap'][_0x1762ce('0x36')](!![],this[_0x1762ce('0x25')][_0x1762ce('0x30')](this));}},EmailImap[_0x25f25b('0x34')]['handleFetchMessage']=function(_0x4f1e89){const _0x1a06a6=_0x25f25b;_0x4f1e89['on'](_0x1a06a6('0x13'),this[_0x1a06a6('0x1c')][_0x1a06a6('0x30')](this)),_0x4f1e89[_0x1a06a6('0x22')](_0x1a06a6('0x33'),this[_0x1a06a6('0x18')][_0x1a06a6('0x30')](this)),_0x4f1e89[_0x1a06a6('0x22')]('end',this[_0x1a06a6('0x38')]['bind'](this));},EmailImap[_0x25f25b('0x34')][_0x25f25b('0x1c')]=function(_0x2f3548){const _0x2f323e=_0x25f25b;simpleParser(_0x2f3548,{'Iconv':Iconv},this['handleSimpleParser'][_0x2f323e('0x30')](this));},EmailImap[_0x25f25b('0x34')][_0x25f25b('0x18')]=function(){},EmailImap['prototype']['handleMessageEnd']=function(){},EmailImap[_0x25f25b('0x34')][_0x25f25b('0x1b')]=function(_0x4a3169,_0x4aaef8){const _0x29aafc=_0x25f25b;if(_0x4a3169)logger['error'](_0x4a3169);else{const _0x41d70e=this;utils[_0x29aafc('0x2d')](this[_0x29aafc('0x37')],_0x4aaef8,function(_0x3260c7){const _0x14d8e8=_0x29aafc;_0x41d70e[_0x14d8e8('0x3a')](_0x14d8e8('0x29'),_0x3260c7);});}},EmailImap['prototype'][_0x25f25b('0x3')]=function(){const _0x4a9d14=_0x25f25b;this[_0x4a9d14('0x2b')][_0x4a9d14('0x36')](!![],this[_0x4a9d14('0x25')]['bind'](this));},EmailImap['prototype'][_0x25f25b('0x6')]=function(_0x5a84bb){const _0x4f2620=_0x25f25b;this[_0x4f2620('0x3c')](_0x5a84bb),this[_0x4f2620('0x2b')]['closeBox'](!![],this[_0x4f2620('0x25')][_0x4f2620('0x30')](this));},EmailImap['prototype'][_0x25f25b('0x39')]=function(){const _0x515bd2=_0x25f25b;this[_0x515bd2('0x3a')]('end');},EmailImap[_0x25f25b('0x34')]['handleError']=function(_0x26bbed,_0xba910d){const _0x513152=_0x25f25b;logger[_0x513152('0x1')](_0x513152('0x3c'),this['account'][_0x513152('0x29')],JSON[_0x513152('0x32')](_0x26bbed));let _0x3d5a51='';if(_0x26bbed){if(_0x26bbed[_0x513152('0x12')])_0x3d5a51=_0x26bbed[_0x513152('0x12')];else for(const _0x43d116 in _0x26bbed){typeof _0x26bbed[_0x43d116]!==_0x513152('0x1a')&&(_0x3d5a51+=_[_0x513152('0x21')](_0x43d116)+':\x20'+_0x26bbed[_0x43d116]+'\x0a');}}_0xba910d?this[_0x513152('0x2b')][_0x513152('0x2a')]():(this[_0x513152('0x3a')](_0x513152('0x1'),_0x3d5a51),this[_0x513152('0x3a')]('end'));},module['exports']=EmailImap; \ No newline at end of file diff --git a/server/services/email/lib/smtp.js b/server/services/email/lib/smtp.js index 23a440c..79b7029 100644 --- a/server/services/email/lib/smtp.js +++ b/server/services/email/lib/smtp.js @@ -1 +1 @@ -const a1153_0x5410=['verify','exports','createTransport','send','sendMail','use','Not\x20verifired','nodemailer-plugin-inline-base64','nodemailer','toString'];(function(_0xe4e677,_0x54108e){const _0x517ea9=function(_0x24596b){while(--_0x24596b){_0xe4e677['push'](_0xe4e677['shift']());}};_0x517ea9(++_0x54108e);}(a1153_0x5410,0xec));const a1153_0x517e=function(_0xe4e677,_0x54108e){_0xe4e677=_0xe4e677-0x0;let _0x517ea9=a1153_0x5410[_0xe4e677];return _0x517ea9;};const _0x10e834=a1153_0x517e;'use strict';const nodemailer=require(_0x10e834('0x2')),inlineBase64=require(_0x10e834('0x1'));function EmailSmtp(){}EmailSmtp['prototype'][_0x10e834('0x7')]=function(_0x24596b,_0x5c9f02){return new Promise(function(_0x2457cd,_0x2deca5){const _0x4dd609=a1153_0x517e,_0x5baf8c=nodemailer[_0x4dd609('0x6')](_0x24596b);_0x5baf8c[_0x4dd609('0x9')]('compile',inlineBase64()),_0x5baf8c[_0x4dd609('0x8')](_0x5c9f02,function(_0x59cd59,_0x511b6c){const _0xe0b06c=_0x4dd609;_0x59cd59?_0x2deca5(_0x59cd59[_0xe0b06c('0x3')]()):_0x2457cd(_0x511b6c);});});},EmailSmtp['prototype'][_0x10e834('0x4')]=function(_0x461e0c){return new Promise(function(_0x30d4c2,_0x3a8c5d){const _0x1cc80e=a1153_0x517e,_0x1eb688=nodemailer[_0x1cc80e('0x6')](_0x461e0c);_0x1eb688[_0x1cc80e('0x4')](function(_0x4af90e,_0x93baa4){const _0x3e6256=_0x1cc80e;_0x4af90e?_0x3a8c5d(_0x4af90e[_0x3e6256('0x3')]()):_0x93baa4?_0x30d4c2(_0x93baa4):_0x3a8c5d(_0x3e6256('0x0'));});});},module[_0x10e834('0x5')]=EmailSmtp; \ No newline at end of file +const a1153_0x24ae=['exports','nodemailer','prototype','toString','verify','compile','createTransport','nodemailer-plugin-inline-base64','use'];(function(_0x36b060,_0x24aef7){const _0x4dfffa=function(_0x5dd92e){while(--_0x5dd92e){_0x36b060['push'](_0x36b060['shift']());}};_0x4dfffa(++_0x24aef7);}(a1153_0x24ae,0x96));const a1153_0x4dff=function(_0x36b060,_0x24aef7){_0x36b060=_0x36b060-0x0;let _0x4dfffa=a1153_0x24ae[_0x36b060];return _0x4dfffa;};const _0x1e2ba3=a1153_0x4dff;'use strict';const nodemailer=require(_0x1e2ba3('0x4')),inlineBase64=require(_0x1e2ba3('0x1'));function EmailSmtp(){}EmailSmtp[_0x1e2ba3('0x5')]['send']=function(_0x5dd92e,_0xbe7a2c){return new Promise(function(_0x552a20,_0x1da160){const _0x4b7a50=a1153_0x4dff,_0x4e6c0c=nodemailer['createTransport'](_0x5dd92e);_0x4e6c0c[_0x4b7a50('0x2')](_0x4b7a50('0x8'),inlineBase64()),_0x4e6c0c['sendMail'](_0xbe7a2c,function(_0x2fb4ff,_0x2ae726){const _0x2fbfa5=_0x4b7a50;_0x2fb4ff?_0x1da160(_0x2fb4ff[_0x2fbfa5('0x6')]()):_0x552a20(_0x2ae726);});});},EmailSmtp[_0x1e2ba3('0x5')][_0x1e2ba3('0x7')]=function(_0x52c30f){return new Promise(function(_0x374ec1,_0x494b13){const _0x317629=a1153_0x4dff,_0x5eae24=nodemailer[_0x317629('0x0')](_0x52c30f);_0x5eae24['verify'](function(_0x1dc2f8,_0x31ebd2){const _0x5c1ae5=_0x317629;_0x1dc2f8?_0x494b13(_0x1dc2f8[_0x5c1ae5('0x6')]()):_0x31ebd2?_0x374ec1(_0x31ebd2):_0x494b13('Not\x20verifired');});});},module[_0x1e2ba3('0x3')]=EmailSmtp; \ No newline at end of file diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index 31a1d90..fd83c8a 100644 --- a/server/services/email/lib/utils.js +++ b/server/services/email/lib/utils.js @@ -1 +1 @@ -const a1154_0x1fe2=['outlook365','replace','from','format','%s-%s','imap.mail.yahoo.com','originTo','lodash','content','anonymous','node-tnef','moment','hotmail','date','textAsHtml','getHost','YYYY-MM-DD\x20HH:mm:ss','type','pop','parseBuffer','Empty\x20message

','body','name','originCc','BodyHTML','parser','Title','html','length','filter','filename','yahoo','imap.gmail.com','@xcally.com','includes','email','join'];(function(_0x2fdda2,_0x1fe204){const _0x3ce547=function(_0x3131bd){while(--_0x3131bd){_0x2fdda2['push'](_0x2fdda2['shift']());}};_0x3ce547(++_0x1fe204);}(a1154_0x1fe2,0x183));const a1154_0x3ce5=function(_0x2fdda2,_0x1fe204){_0x2fdda2=_0x2fdda2-0x0;let _0x3ce547=a1154_0x1fe2[_0x2fdda2];return _0x3ce547;};const _0x1818bd=a1154_0x3ce5;'use strict';const _=require(_0x1818bd('0x28')),moment=require(_0x1818bd('0x2c')),random=require('randomstring'),fs=require('fs'),path=require(_0x1818bd('0x3')),util=require(_0x1818bd('0x37')),tnef=require(_0x1818bd('0x2b')),logger=require(_0x1818bd('0x6'))(_0x1818bd('0x1f')),config=require('../../../config/environment');function getAddress(_0x3131bd){const _0x31c835=_0x1818bd,_0x25b43e=_['head'](_0x3131bd[_0x31c835('0xf')]);return _0x25b43e&&_0x25b43e['address']?_0x25b43e[_0x31c835('0xe')]:'anonymous'+random[_0x31c835('0x1')](0x6)+_0x31c835('0x1d');}function getFirstName(_0x220f8b){const _0x63a63f=_0x1818bd,_0x33751f=_[_0x63a63f('0xa')](_0x220f8b[_0x63a63f('0xf')]);if(_0x33751f&&_0x33751f['name']){const _0x4a6ed7=_0x33751f[_0x63a63f('0x12')]['split'](/\s+/);return _0x4a6ed7[_0x63a63f('0x18')]?_0x4a6ed7['slice'](0x0,-0x1)[_0x63a63f('0x20')]('\x20'):_0x33751f[_0x63a63f('0x12')];}return'Anonymous';}function getLastName(_0x23aebf){const _0x2eb6aa=_0x1818bd,_0x55fa49=_[_0x2eb6aa('0xa')](_0x23aebf[_0x2eb6aa('0xf')]);if(_0x55fa49&&_0x55fa49[_0x2eb6aa('0x12')]){const _0x341478=_0x55fa49[_0x2eb6aa('0x12')][_0x2eb6aa('0xb')](/\s+/);return _0x341478['length']>0x1?_0x341478[_0x2eb6aa('0x33')]():'';}return'';}function getMails(_0x43052d,_0x9873ca){const _0x31f327=_0x1818bd;let _0x3350a5='';for(let _0x43c216=0x0;_0x43c216<_0x9873ca[_0x31f327('0xf')][_0x31f327('0x18')];_0x43c216+=0x1){_0x9873ca[_0x31f327('0xf')][_0x43c216][_0x31f327('0xe')]!==_0x43052d&&(!_['isEmpty'](_0x3350a5)&&(_0x3350a5+=','),_0x3350a5+=_0x9873ca[_0x31f327('0xf')][_0x43c216][_0x31f327('0x12')]||_0x9873ca[_0x31f327('0xf')][_0x43c216][_0x31f327('0xe')]||'',_0x3350a5+='\x20<',_0x3350a5+=_0x9873ca[_0x31f327('0xf')][_0x43c216]['address']?_0x9873ca[_0x31f327('0xf')][_0x43c216][_0x31f327('0xe')]:_0x31f327('0x2a')+random['generate'](0x6)+_0x31f327('0x1d'),_0x3350a5+='>');}return _0x3350a5;}function parseEmail(_0x4393bb,_0x2efbff,_0x5bed59){const _0x54ee3a=_0x1818bd;if(_0x2efbff['html']){const _0xf180ce=/)<[^<]*)*<\/script>/gi;while(_0xf180ce['test'](_0x2efbff[_0x54ee3a('0x17')])){_0x2efbff[_0x54ee3a('0x17')]=_0x2efbff[_0x54ee3a('0x17')][_0x54ee3a('0x22')](_0xf180ce,'');}_0x5bed59['body']=_0x2efbff[_0x54ee3a('0x17')];}else _0x5bed59[_0x54ee3a('0x11')]=_0x2efbff['textAsHtml'];_0x5bed59[_0x54ee3a('0x11')]&&(_0x5bed59[_0x54ee3a('0x11')]=_0x5bed59[_0x54ee3a('0x11')][_0x54ee3a('0x22')](/Empty\x20message

',_0xc3eef2(parseEmail(_0x358df4,_0x438732,_0x4b2194)));}else _0xc3eef2(parseEmail(_0x358df4,_0x438732,_0x4b2194));},exports[_0x1818bd('0x30')]=function(_0x5f0b8e){const _0x46d7fb=_0x1818bd;switch(_0x5f0b8e){case'gmail':return _0x46d7fb('0x1c');case _0x46d7fb('0x1b'):return _0x46d7fb('0x26');case _0x46d7fb('0x2d'):return'imap-mail.outlook.com';case _0x46d7fb('0x21'):return'outlook.office365.com';}return'127.0.0.1';}; \ No newline at end of file +const a1154_0x3688=['info','getHost','filename','attachment','Attachments','join','first','subject','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','@xcally.com','Data','format','YYYY-MM-DD\x20HH:mm:ss','push','imap.gmail.com','root','split','../../../config/logger','parseBuffer','Title','127.0.0.1','originTo','now','head','imap-mail.outlook.com','html','textAsHtml','slice','from','%s-%s','parser','server/files/attachments/','type','generate','outlook.office365.com','email','name','originCc','length','attachments','randomstring','body','anonymous','outlook365','contentType','messageId','

Empty\x20message

','includes','bcc','message','../../../config/environment','path','filter','hotmail','isEmpty','address','BodyHTML','Anonymous','writeFileSync','replace','attachment-','value'];(function(_0x2406fe,_0x368833){const _0x30fa1a=function(_0xcbc48f){while(--_0xcbc48f){_0x2406fe['push'](_0x2406fe['shift']());}};_0x30fa1a(++_0x368833);}(a1154_0x3688,0x6e));const a1154_0x30fa=function(_0x2406fe,_0x368833){_0x2406fe=_0x2406fe-0x0;let _0x30fa1a=a1154_0x3688[_0x2406fe];return _0x30fa1a;};const _0x3d6c75=a1154_0x30fa;'use strict';const _=require('lodash'),moment=require('moment'),random=require(_0x3d6c75('0x36')),fs=require('fs'),path=require(_0x3d6c75('0x3')),util=require('util'),tnef=require('node-tnef'),logger=require(_0x3d6c75('0x1f'))(_0x3d6c75('0x31')),config=require(_0x3d6c75('0x2'));function getAddress(_0xcbc48f){const _0x4851cd=_0x3d6c75,_0x26e403=_[_0x4851cd('0x25')](_0xcbc48f[_0x4851cd('0xd')]);return _0x26e403&&_0x26e403[_0x4851cd('0x7')]?_0x26e403[_0x4851cd('0x7')]:_0x4851cd('0x38')+random[_0x4851cd('0x2f')](0x6)+_0x4851cd('0x17');}function getFirstName(_0x3663e8){const _0x1a8249=_0x3d6c75,_0x11e370=_[_0x1a8249('0x25')](_0x3663e8['value']);if(_0x11e370&&_0x11e370[_0x1a8249('0x32')]){const _0x3f517c=_0x11e370[_0x1a8249('0x32')]['split'](/\s+/);return _0x3f517c[_0x1a8249('0x34')]?_0x3f517c[_0x1a8249('0x29')](0x0,-0x1)[_0x1a8249('0x13')]('\x20'):_0x11e370[_0x1a8249('0x32')];}return _0x1a8249('0x9');}function getLastName(_0x2db5c){const _0x2c2568=_0x3d6c75,_0x1a2438=_[_0x2c2568('0x25')](_0x2db5c[_0x2c2568('0xd')]);if(_0x1a2438&&_0x1a2438['name']){const _0x503675=_0x1a2438[_0x2c2568('0x32')][_0x2c2568('0x1e')](/\s+/);return _0x503675['length']>0x1?_0x503675['pop']():'';}return'';}function getMails(_0x15fa29,_0x4fc583){const _0x2519cc=_0x3d6c75;let _0x592b2b='';for(let _0x1e944a=0x0;_0x1e944a<_0x4fc583['value'][_0x2519cc('0x34')];_0x1e944a+=0x1){_0x4fc583[_0x2519cc('0xd')][_0x1e944a][_0x2519cc('0x7')]!==_0x15fa29&&(!_[_0x2519cc('0x6')](_0x592b2b)&&(_0x592b2b+=','),_0x592b2b+=_0x4fc583['value'][_0x1e944a][_0x2519cc('0x32')]||_0x4fc583[_0x2519cc('0xd')][_0x1e944a]['address']||'',_0x592b2b+='\x20<',_0x592b2b+=_0x4fc583[_0x2519cc('0xd')][_0x1e944a][_0x2519cc('0x7')]?_0x4fc583[_0x2519cc('0xd')][_0x1e944a][_0x2519cc('0x7')]:_0x2519cc('0x38')+random[_0x2519cc('0x2f')](0x6)+_0x2519cc('0x17'),_0x592b2b+='>');}return _0x592b2b;}function parseEmail(_0x3956fd,_0x3cd1d7,_0x591a01){const _0x3f3a2f=_0x3d6c75;if(_0x3cd1d7[_0x3f3a2f('0x27')]){const _0x28e121=/)<[^<]*)*<\/script>/gi;while(_0x28e121['test'](_0x3cd1d7['html'])){_0x3cd1d7['html']=_0x3cd1d7['html'][_0x3f3a2f('0xb')](_0x28e121,'');}_0x591a01[_0x3f3a2f('0x37')]=_0x3cd1d7['html'];}else _0x591a01[_0x3f3a2f('0x37')]=_0x3cd1d7[_0x3f3a2f('0x28')];_0x591a01[_0x3f3a2f('0x37')]&&(_0x591a01[_0x3f3a2f('0x37')]=_0x591a01['body'][_0x3f3a2f('0xb')](/0x0?this[_0x167ef8+_0x5f2fd3('0x3')]>0x0&&this[_0x167ef8+'CurrentCapacity']>=this[_0x167ef8+_0x5f2fd3('0x3')]?'maxcapacity':_0x5f2fd3('0x17'):_0x5f2fd3('0x2d');},Agent[_0x484fc7('0x0')]['updateRealtime']=function(){const _0x1e005b=_0x484fc7,_0x265936=[_0x1e005b('0xc'),_0x1e005b('0x14'),'openchannel',_0x1e005b('0x29'),_0x1e005b('0x23'),_0x1e005b('0x1c')];for(let _0x418b29=0x0;_0x418b29<_0x265936['length'];_0x418b29+=0x1){const _0x52feb8=this[_0x1e005b('0x30')](_0x265936[_0x418b29]);this[_0x265936[_0x418b29]+_0x1e005b('0x24')]!==_0x52feb8&&(this[_0x265936[_0x418b29]+_0x1e005b('0x32')]=_[_0x1e005b('0x33')](moment()[_0x1e005b('0x1e')]('x'))),this[_0x265936[_0x418b29]+_0x1e005b('0x24')]=_0x52feb8;}const _0x56814d={'id':this['id'],'name':this['name'],'online':this['online'],'voicePause':this[_0x1e005b('0x28')],'chatPause':this[_0x1e005b('0x34')],'mailPause':this['mailPause'],'smsPause':this[_0x1e005b('0x35')],'faxPause':this['faxPause'],'openchannelPause':this[_0x1e005b('0x2a')],'chatStatus':this[_0x1e005b('0x5')],'chatStatusTime':this[_0x1e005b('0x1f')],'chatCapacity':this[_0x1e005b('0x27')],'chatCurrentCapacity':this['chatCurrentCapacity'],'mailStatus':this['mailStatus'],'mailStatusTime':this[_0x1e005b('0x1')],'mailCapacity':this[_0x1e005b('0x2b')],'mailCurrentCapacity':this[_0x1e005b('0x16')],'faxStatus':this['faxStatus'],'faxStatusTime':this['faxStatusTime'],'faxCapacity':this[_0x1e005b('0x22')],'faxCurrentCapacity':this[_0x1e005b('0x2e')],'smsStatus':this[_0x1e005b('0xd')],'smsStatusTime':this['smsStatusTime'],'smsCapacity':this[_0x1e005b('0xb')],'smsCurrentCapacity':this[_0x1e005b('0x26')],'whatsappStatus':this[_0x1e005b('0xe')],'whatsappStatusTime':this[_0x1e005b('0x2c')],'whatsappCapacity':this['whatsappCapacity'],'whatsappCurrentCapacity':this[_0x1e005b('0xf')],'openchannelStatus':this['openchannelStatus'],'openchannelStatusTime':this[_0x1e005b('0x7')],'openchannelCapacity':this[_0x1e005b('0x12')],'openchannelCurrentCapacity':this['openchannelCurrentCapacity'],'busy':this['busy'],'busyQueue':this[_0x1e005b('0x21')]},_0x2d45b4=md5(JSON[_0x1e005b('0x1b')](_0x56814d));this[_0x1e005b('0x13')]!==_0x2d45b4&&(this[_0x1e005b('0x13')]=_0x2d45b4,io[_0x1e005b('0x1a')](_0x1e005b('0x9'),_0x56814d));},module[_0x484fc7('0x2f')]=Agent; \ No newline at end of file +const a1164_0x293d=['Capacity','faxStatus','faxCurrentCapacity','whatsappCapacity','openchannelCurrentCapacity','getChannelStatus','faxPause','busyQueue','chatPause','unknown','chatCapacity','Status','updateRealtime','format','name','smsStatus','md5','fax','openchannelPause','openchannelCapacity','lodash','smsPause','whatsappCurrentCapacity','openchannelStatus','whatsappStatus','idle','emit','openchannel','smsCapacity','mailPause','whatsapp','smsCurrentCapacity','chatStatus','mailCurrentCapacity','online','whatsappStatusTime','mailCapacity','prototype','user:save','busy','chatStatusTime','../../../rediscache','working','mailStatusTime','smsStatusTime','mailStatus','length','CurrentCapacity','chatCurrentCapacity','openchannelStatusTime','mail','faxStatusTime'];(function(_0x447384,_0x293db4){const _0x4ad1b0=function(_0x424d8a){while(--_0x424d8a){_0x447384['push'](_0x447384['shift']());}};_0x4ad1b0(++_0x293db4);}(a1164_0x293d,0x9b));const a1164_0x4ad1=function(_0x447384,_0x293db4){_0x447384=_0x447384-0x0;let _0x4ad1b0=a1164_0x293d[_0x447384];return _0x4ad1b0;};const _0x5ad6dc=a1164_0x4ad1;'use strict';const _=require(_0x5ad6dc('0x15')),moment=require('moment'),md5=require(_0x5ad6dc('0x11')),{getSocket}=require(_0x5ad6dc('0x2a')),io=getSocket();function Agent(_0x424d8a){const _0x432ff3=_0x5ad6dc;this['id']=_0x424d8a['id']||0x0,this[_0x432ff3('0xf')]=_0x424d8a[_0x432ff3('0xf')]||'',this['online']=_0x424d8a[_0x432ff3('0x23')]||!![],this['voicePause']=_0x424d8a['voicePause']||![],this[_0x432ff3('0x9')]=_0x424d8a[_0x432ff3('0x9')]||![],this['mailPause']=_0x424d8a[_0x432ff3('0x1e')]||![],this['faxPause']=_0x424d8a[_0x432ff3('0x7')]||![],this['smsPause']=_0x424d8a['smsPause']||![],this[_0x432ff3('0x13')]=_0x424d8a['openchannelPause']||![],this['chatStatus']=_0x432ff3('0xa'),this[_0x432ff3('0x29')]=0x0,this[_0x432ff3('0xb')]=_0x424d8a[_0x432ff3('0xb')]||0x0,this['chatCurrentCapacity']=0x0,this['mailStatus']=_0x432ff3('0xa'),this[_0x432ff3('0x2c')]=0x0,this[_0x432ff3('0x25')]=_0x424d8a[_0x432ff3('0x25')]||0x0,this[_0x432ff3('0x22')]=0x0,this[_0x432ff3('0x2')]=_0x432ff3('0xa'),this[_0x432ff3('0x0')]=0x0,this['faxCapacity']=_0x424d8a['faxCapacity']||0x0,this[_0x432ff3('0x3')]=0x0,this['smsStatus']=_0x432ff3('0xa'),this[_0x432ff3('0x2d')]=0x0,this['smsCapacity']=_0x424d8a[_0x432ff3('0x1d')]||0x0,this['smsCurrentCapacity']=0x0,this[_0x432ff3('0x19')]='unknown',this['whatsappStatusTime']=0x0,this[_0x432ff3('0x4')]=_0x424d8a[_0x432ff3('0x4')]||0x0,this[_0x432ff3('0x17')]=0x0,this[_0x432ff3('0x18')]=_0x432ff3('0xa'),this[_0x432ff3('0x32')]=0x0,this['openchannelCapacity']=_0x424d8a[_0x432ff3('0x14')]||0x0,this['openchannelCurrentCapacity']=0x0,this['busy']=![],this[_0x432ff3('0x8')]=undefined,this[_0x432ff3('0x11')]='',this[_0x432ff3('0xd')]();}Agent[_0x5ad6dc('0x26')][_0x5ad6dc('0x6')]=function(_0x14526a){const _0xb9fac9=_0x5ad6dc;return this[_0x14526a+'CurrentCapacity']>0x0?this[_0x14526a+_0xb9fac9('0x1')]>0x0&&this[_0x14526a+_0xb9fac9('0x30')]>=this[_0x14526a+_0xb9fac9('0x1')]?'maxcapacity':_0xb9fac9('0x2b'):_0xb9fac9('0x1a');},Agent['prototype'][_0x5ad6dc('0xd')]=function(){const _0x284298=_0x5ad6dc,_0x3949f0=[_0x284298('0x33'),'chat',_0x284298('0x1c'),_0x284298('0x12'),'sms',_0x284298('0x1f')];for(let _0x107747=0x0;_0x107747<_0x3949f0[_0x284298('0x2f')];_0x107747+=0x1){const _0x3c2cc5=this[_0x284298('0x6')](_0x3949f0[_0x107747]);this[_0x3949f0[_0x107747]+'Status']!==_0x3c2cc5&&(this[_0x3949f0[_0x107747]+'StatusTime']=_['toNumber'](moment()[_0x284298('0xe')]('x'))),this[_0x3949f0[_0x107747]+_0x284298('0xc')]=_0x3c2cc5;}const _0x13faad={'id':this['id'],'name':this[_0x284298('0xf')],'online':this[_0x284298('0x23')],'voicePause':this['voicePause'],'chatPause':this['chatPause'],'mailPause':this['mailPause'],'smsPause':this[_0x284298('0x16')],'faxPause':this[_0x284298('0x7')],'openchannelPause':this[_0x284298('0x13')],'chatStatus':this[_0x284298('0x21')],'chatStatusTime':this['chatStatusTime'],'chatCapacity':this['chatCapacity'],'chatCurrentCapacity':this[_0x284298('0x31')],'mailStatus':this[_0x284298('0x2e')],'mailStatusTime':this[_0x284298('0x2c')],'mailCapacity':this[_0x284298('0x25')],'mailCurrentCapacity':this[_0x284298('0x22')],'faxStatus':this[_0x284298('0x2')],'faxStatusTime':this['faxStatusTime'],'faxCapacity':this['faxCapacity'],'faxCurrentCapacity':this[_0x284298('0x3')],'smsStatus':this[_0x284298('0x10')],'smsStatusTime':this['smsStatusTime'],'smsCapacity':this[_0x284298('0x1d')],'smsCurrentCapacity':this[_0x284298('0x20')],'whatsappStatus':this[_0x284298('0x19')],'whatsappStatusTime':this[_0x284298('0x24')],'whatsappCapacity':this[_0x284298('0x4')],'whatsappCurrentCapacity':this[_0x284298('0x17')],'openchannelStatus':this['openchannelStatus'],'openchannelStatusTime':this[_0x284298('0x32')],'openchannelCapacity':this[_0x284298('0x14')],'openchannelCurrentCapacity':this[_0x284298('0x5')],'busy':this[_0x284298('0x28')],'busyQueue':this[_0x284298('0x8')]},_0x594b49=md5(JSON['stringify'](_0x13faad));this[_0x284298('0x11')]!==_0x594b49&&(this[_0x284298('0x11')]=_0x594b49,io[_0x284298('0x1b')](_0x284298('0x27'),_0x13faad));},module['exports']=Agent; \ No newline at end of file diff --git a/server/services/routing/model/chatQueue.js b/server/services/routing/model/chatQueue.js index 0fca95a..3f5edb4 100644 --- a/server/services/routing/model/chatQueue.js +++ b/server/services/routing/model/chatQueue.js @@ -1 +1 @@ -const a1165_0x262e=['stringify','waiting','chat_queue:save','updateRealtime','name','md5','paused','Agents','map','updateRouting','mapAgentsId','../../../rediscache','beepall','length','loggedIn','timeout','chat:queue:%s','exports','format','online','lodash','_rr','strategy','prototype','available','util','chatPause'];(function(_0x557587,_0x262ee4){const _0x5ba907=function(_0x4e570c){while(--_0x4e570c){_0x557587['push'](_0x557587['shift']());}};_0x5ba907(++_0x262ee4);}(a1165_0x262e,0xd5));const a1165_0x5ba9=function(_0x557587,_0x262ee4){_0x557587=_0x557587-0x0;let _0x5ba907=a1165_0x262e[_0x557587];return _0x5ba907;};const _0x2f7f9c=a1165_0x5ba9;'use strict';const _=require(_0x2f7f9c('0x17')),md5=require('md5'),util=require(_0x2f7f9c('0x1')),{getSocket}=require(_0x2f7f9c('0xe')),io=getSocket();function ChatQueue(_0x4e570c){const _0x3d4bb9=_0x2f7f9c;this['id']=_0x4e570c['id']||0x0,this['name']=_0x4e570c[_0x3d4bb9('0x7')]||'',this[_0x3d4bb9('0x12')]=_0x4e570c[_0x3d4bb9('0x12')]||0xa,this[_0x3d4bb9('0x19')]=_0x4e570c[_0x3d4bb9('0x19')]||_0x3d4bb9('0xf'),this['Agents']=_0x4e570c[_0x3d4bb9('0xa')],this[_0x3d4bb9('0xd')]={},this[_0x3d4bb9('0x4')]=0x0,this['md5']='',this[_0x3d4bb9('0xc')](),this[_0x3d4bb9('0x6')]();}ChatQueue['prototype'][_0x2f7f9c('0xc')]=function(){const _0x36bdf0=_0x2f7f9c,_0x4dfbce=this[_0x36bdf0('0xd')][_0x36bdf0('0x18')];this[_0x36bdf0('0xd')]=_[_0x36bdf0('0xb')](this[_0x36bdf0('0xa')],'id'),this[_0x36bdf0('0xd')][_0x36bdf0('0x18')]=_0x4dfbce;},ChatQueue[_0x2f7f9c('0x1a')][_0x2f7f9c('0x6')]=function(){const _0xb20456=_0x2f7f9c;this[_0xb20456('0x11')]=0x0,this[_0xb20456('0x9')]=0x0;for(let _0x3249cb=0x0;_0x3249cb=0x0?this[_0xb20456('0x0')]:0x0;const _0x3a2e4c={'id':this['id'],'available':this['available'],'loggedIn':this['loggedIn'],'name':this[_0xb20456('0x7')],'paused':this['paused'],'waiting':this[_0xb20456('0x4')]},_0x10f55b=md5(JSON[_0xb20456('0x3')](_0x3a2e4c));this[_0xb20456('0x8')]!==_0x10f55b&&(this[_0xb20456('0x8')]=_0x10f55b,io['to'](util[_0xb20456('0x15')](_0xb20456('0x13'),_0x3a2e4c[_0xb20456('0x7')]))['emit'](_0xb20456('0x5'),_0x3a2e4c));},module[_0x2f7f9c('0x14')]=ChatQueue; \ No newline at end of file +const a1165_0x40aa=['available','prototype','strategy','md5','name','timeout','mapAgentsId','chat_queue:save','Agents','paused','loggedIn','map','../../../rediscache','updateRouting','online','length','chat:queue:%s','_rr','util','beepall','chatPause','waiting','format','emit','updateRealtime'];(function(_0x561264,_0x40aa37){const _0x8951fd=function(_0x450051){while(--_0x450051){_0x561264['push'](_0x561264['shift']());}};_0x8951fd(++_0x40aa37);}(a1165_0x40aa,0x108));const a1165_0x8951=function(_0x561264,_0x40aa37){_0x561264=_0x561264-0x0;let _0x8951fd=a1165_0x40aa[_0x561264];return _0x8951fd;};const _0x55f0f6=a1165_0x8951;'use strict';const _=require('lodash'),md5=require('md5'),util=require(_0x55f0f6('0x4')),{getSocket}=require(_0x55f0f6('0x17')),io=getSocket();function ChatQueue(_0x450051){const _0x549ddf=_0x55f0f6;this['id']=_0x450051['id']||0x0,this['name']=_0x450051[_0x549ddf('0xf')]||'',this[_0x549ddf('0x10')]=_0x450051[_0x549ddf('0x10')]||0xa,this[_0x549ddf('0xd')]=_0x450051[_0x549ddf('0xd')]||_0x549ddf('0x5'),this[_0x549ddf('0x13')]=_0x450051[_0x549ddf('0x13')],this[_0x549ddf('0x11')]={},this[_0x549ddf('0x7')]=0x0,this[_0x549ddf('0xe')]='',this[_0x549ddf('0x18')](),this[_0x549ddf('0xa')]();}ChatQueue[_0x55f0f6('0xc')]['updateRouting']=function(){const _0x2583a6=_0x55f0f6,_0x3a0480=this[_0x2583a6('0x11')][_0x2583a6('0x3')];this[_0x2583a6('0x11')]=_[_0x2583a6('0x16')](this[_0x2583a6('0x13')],'id'),this[_0x2583a6('0x11')][_0x2583a6('0x3')]=_0x3a0480;},ChatQueue['prototype'][_0x55f0f6('0xa')]=function(){const _0x405584=_0x55f0f6;this[_0x405584('0x15')]=0x0,this[_0x405584('0x14')]=0x0;for(let _0x3a3e2c=0x0;_0x3a3e2c=0x0?this['available']:0x0;const _0x1f4ada={'id':this['id'],'available':this[_0x405584('0xb')],'loggedIn':this[_0x405584('0x15')],'name':this[_0x405584('0xf')],'paused':this[_0x405584('0x14')],'waiting':this[_0x405584('0x7')]},_0xc0c51a=md5(JSON['stringify'](_0x1f4ada));this[_0x405584('0xe')]!==_0xc0c51a&&(this[_0x405584('0xe')]=_0xc0c51a,io['to'](util[_0x405584('0x8')](_0x405584('0x2'),_0x1f4ada['name']))[_0x405584('0x9')](_0x405584('0x12'),_0x1f4ada));},module['exports']=ChatQueue; \ No newline at end of file diff --git a/server/services/routing/model/faxQueue.js b/server/services/routing/model/faxQueue.js index a8ce50b..8b92f33 100644 --- a/server/services/routing/model/faxQueue.js +++ b/server/services/routing/model/faxQueue.js @@ -1 +1 @@ -const a1166_0x3164=['online','../../../rediscache','strategy','fax:queue:%s','mapAgentsId','paused','_rr','md5','faxPause','map','Agents','fax_queue:save','name','available','loggedIn','updateRealtime','util','waiting','emit','exports','beepall','format','stringify','lodash'];(function(_0x9ed88c,_0x316471){const _0xdf1299=function(_0x2daad9){while(--_0x2daad9){_0x9ed88c['push'](_0x9ed88c['shift']());}};_0xdf1299(++_0x316471);}(a1166_0x3164,0x125));const a1166_0xdf12=function(_0x9ed88c,_0x316471){_0x9ed88c=_0x9ed88c-0x0;let _0xdf1299=a1166_0x3164[_0x9ed88c];return _0xdf1299;};const _0x2dfb2e=a1166_0xdf12;'use strict';const _=require(_0x2dfb2e('0x12')),md5=require('md5'),util=require(_0x2dfb2e('0xb')),{getSocket}=require(_0x2dfb2e('0x14')),io=getSocket();function FaxQueue(_0x2daad9){const _0x2e56b6=_0x2dfb2e;this['id']=_0x2daad9['id']||0x0,this[_0x2e56b6('0x7')]=_0x2daad9[_0x2e56b6('0x7')]||'',this['timeout']=_0x2daad9['timeout']||0xa,this[_0x2e56b6('0x15')]=_0x2daad9[_0x2e56b6('0x15')]||_0x2e56b6('0xf'),this[_0x2e56b6('0x5')]=_0x2daad9[_0x2e56b6('0x5')],this[_0x2e56b6('0x17')]={},this[_0x2e56b6('0xc')]=0x0,this['md5']='',this['updateRouting'](),this[_0x2e56b6('0xa')]();}FaxQueue['prototype']['updateRouting']=function(){const _0x201d4e=_0x2dfb2e,_0x2613db=this[_0x201d4e('0x17')][_0x201d4e('0x1')];this[_0x201d4e('0x17')]=_[_0x201d4e('0x4')](this['Agents'],'id'),this[_0x201d4e('0x17')][_0x201d4e('0x1')]=_0x2613db;},FaxQueue['prototype'][_0x2dfb2e('0xa')]=function(){const _0x486ff6=_0x2dfb2e;this[_0x486ff6('0x9')]=0x0,this['paused']=0x0;for(let _0x5ec3ea=0x0;_0x5ec3ea=0x0?this[_0x486ff6('0x8')]:0x0;const _0x4db21e={'id':this['id'],'available':this['available'],'loggedIn':this[_0x486ff6('0x9')],'name':this[_0x486ff6('0x7')],'paused':this[_0x486ff6('0x0')],'waiting':this['waiting']},_0x25294b=md5(JSON[_0x486ff6('0x11')](_0x4db21e));this[_0x486ff6('0x2')]!==_0x25294b&&(this[_0x486ff6('0x2')]=_0x25294b,io['to'](util[_0x486ff6('0x10')](_0x486ff6('0x16'),_0x4db21e[_0x486ff6('0x7')]))[_0x486ff6('0xd')](_0x486ff6('0x6'),_0x4db21e));},module[_0x2dfb2e('0xe')]=FaxQueue; \ No newline at end of file +const a1166_0x15aa=['length','stringify','name','fax_queue:save','waiting','online','prototype','format','available','beepall','md5','lodash','Agents','loggedIn','paused','emit','util','map','updateRouting','faxPause','timeout','updateRealtime','_rr','fax:queue:%s','exports','mapAgentsId'];(function(_0xfa01ee,_0x15aab2){const _0x19cb53=function(_0x7d3e70){while(--_0x7d3e70){_0xfa01ee['push'](_0xfa01ee['shift']());}};_0x19cb53(++_0x15aab2);}(a1166_0x15aa,0x107));const a1166_0x19cb=function(_0xfa01ee,_0x15aab2){_0xfa01ee=_0xfa01ee-0x0;let _0x19cb53=a1166_0x15aa[_0xfa01ee];return _0x19cb53;};const _0x17d269=a1166_0x19cb;'use strict';const _=require(_0x17d269('0x8')),md5=require(_0x17d269('0x7')),util=require(_0x17d269('0xd')),{getSocket}=require('../../../rediscache'),io=getSocket();function FaxQueue(_0x7d3e70){const _0x20cbb4=_0x17d269;this['id']=_0x7d3e70['id']||0x0,this[_0x20cbb4('0x19')]=_0x7d3e70[_0x20cbb4('0x19')]||'',this[_0x20cbb4('0x11')]=_0x7d3e70['timeout']||0xa,this['strategy']=_0x7d3e70['strategy']||_0x20cbb4('0x6'),this[_0x20cbb4('0x9')]=_0x7d3e70[_0x20cbb4('0x9')],this[_0x20cbb4('0x16')]={},this[_0x20cbb4('0x1')]=0x0,this[_0x20cbb4('0x7')]='',this[_0x20cbb4('0xf')](),this[_0x20cbb4('0x12')]();}FaxQueue['prototype'][_0x17d269('0xf')]=function(){const _0x586622=_0x17d269,_0x4d0943=this['mapAgentsId'][_0x586622('0x13')];this[_0x586622('0x16')]=_[_0x586622('0xe')](this[_0x586622('0x9')],'id'),this[_0x586622('0x16')][_0x586622('0x13')]=_0x4d0943;},FaxQueue[_0x17d269('0x3')]['updateRealtime']=function(){const _0x537055=_0x17d269;this[_0x537055('0xa')]=0x0,this['paused']=0x0;for(let _0x5ced6=0x0;_0x5ced6=0x0?this[_0x537055('0x5')]:0x0;const _0x1387c3={'id':this['id'],'available':this['available'],'loggedIn':this['loggedIn'],'name':this['name'],'paused':this['paused'],'waiting':this[_0x537055('0x1')]},_0x28309d=md5(JSON[_0x537055('0x18')](_0x1387c3));this['md5']!==_0x28309d&&(this[_0x537055('0x7')]=_0x28309d,io['to'](util[_0x537055('0x4')](_0x537055('0x14'),_0x1387c3[_0x537055('0x19')]))[_0x537055('0xc')](_0x537055('0x0'),_0x1387c3));},module[_0x17d269('0x15')]=FaxQueue; \ No newline at end of file diff --git a/server/services/routing/model/interval.js b/server/services/routing/model/interval.js index 7771ef1..1362c51 100644 --- a/server/services/routing/model/interval.js +++ b/server/services/routing/model/interval.js @@ -1 +1 @@ -var a1167_0x3045=['Intervals','name','exports'];(function(_0x3343e0,_0x3045b9){var _0xf3cc37=function(_0xac78e1){while(--_0xac78e1){_0x3343e0['push'](_0x3343e0['shift']());}};_0xf3cc37(++_0x3045b9);}(a1167_0x3045,0x17a));var a1167_0xf3cc=function(_0x3343e0,_0x3045b9){_0x3343e0=_0x3343e0-0x0;var _0xf3cc37=a1167_0x3045[_0x3343e0];return _0xf3cc37;};var _0x49a99d=a1167_0xf3cc;'use strict';function Interval(_0xac78e1){var _0x24cfe2=a1167_0xf3cc;this['id']=_0xac78e1['id']||0x0,this[_0x24cfe2('0x1')]=_0xac78e1[_0x24cfe2('0x1')]||'',this[_0x24cfe2('0x0')]=_0xac78e1[_0x24cfe2('0x0')]||{};}module[_0x49a99d('0x2')]=Interval; \ No newline at end of file +var a1167_0x51cf=['name','exports','Intervals'];(function(_0x5cb8f4,_0x51cfa2){var _0x1328e7=function(_0x1cc793){while(--_0x1cc793){_0x5cb8f4['push'](_0x5cb8f4['shift']());}};_0x1328e7(++_0x51cfa2);}(a1167_0x51cf,0x11e));var a1167_0x1328=function(_0x5cb8f4,_0x51cfa2){_0x5cb8f4=_0x5cb8f4-0x0;var _0x1328e7=a1167_0x51cf[_0x5cb8f4];return _0x1328e7;};var _0x18fbc9=a1167_0x1328;'use strict';function Interval(_0x1cc793){var _0x43a1e3=a1167_0x1328;this['id']=_0x1cc793['id']||0x0,this[_0x43a1e3('0x2')]=_0x1cc793[_0x43a1e3('0x2')]||'',this[_0x43a1e3('0x1')]=_0x1cc793['Intervals']||{};}module[_0x18fbc9('0x0')]=Interval; \ No newline at end of file diff --git a/server/services/routing/model/mailQueue.js b/server/services/routing/model/mailQueue.js index ce1a423..95d00b3 100644 --- a/server/services/routing/model/mailQueue.js +++ b/server/services/routing/model/mailQueue.js @@ -1 +1 @@ -const a1168_0x2f02=['lodash','online','_rr','loggedIn','mapAgentsId','stringify','name','mailPause','exports','util','Agents','format','strategy','beepall','updateRealtime','timeout','paused','waiting','emit','length','md5','available','updateRouting','prototype','../../../rediscache','mail_queue:save','mail:queue:%s'];(function(_0x537954,_0x2f02a3){const _0x4ce910=function(_0x87cbc){while(--_0x87cbc){_0x537954['push'](_0x537954['shift']());}};_0x4ce910(++_0x2f02a3);}(a1168_0x2f02,0x1c4));const a1168_0x4ce9=function(_0x537954,_0x2f02a3){_0x537954=_0x537954-0x0;let _0x4ce910=a1168_0x2f02[_0x537954];return _0x4ce910;};const _0x3da2a8=a1168_0x4ce9;'use strict';const _=require(_0x3da2a8('0x7')),md5=require('md5'),util=require(_0x3da2a8('0x10')),{getSocket}=require(_0x3da2a8('0x4')),io=getSocket();function MailQueue(_0x87cbc){const _0x822dcf=_0x3da2a8;this['id']=_0x87cbc['id']||0x0,this[_0x822dcf('0xd')]=_0x87cbc[_0x822dcf('0xd')]||'',this[_0x822dcf('0x16')]=_0x87cbc['timeout']||0xa,this[_0x822dcf('0x13')]=_0x87cbc[_0x822dcf('0x13')]||_0x822dcf('0x14'),this['Agents']=_0x87cbc[_0x822dcf('0x11')],this[_0x822dcf('0xb')]={},this[_0x822dcf('0x18')]=0x0,this[_0x822dcf('0x0')]='',this[_0x822dcf('0x2')](),this[_0x822dcf('0x15')]();}MailQueue[_0x3da2a8('0x3')]['updateRouting']=function(){const _0x56527e=_0x3da2a8,_0x5dbc43=this['mapAgentsId'][_0x56527e('0x9')];this[_0x56527e('0xb')]=_['map'](this[_0x56527e('0x11')],'id'),this['mapAgentsId']['_rr']=_0x5dbc43;},MailQueue[_0x3da2a8('0x3')][_0x3da2a8('0x15')]=function(){const _0x5090c6=_0x3da2a8;this[_0x5090c6('0xa')]=0x0,this[_0x5090c6('0x17')]=0x0;for(let _0x487501=0x0;_0x487501=0x0?this[_0x5090c6('0x1')]:0x0;const _0x2dd9b3={'id':this['id'],'available':this[_0x5090c6('0x1')],'loggedIn':this['loggedIn'],'name':this[_0x5090c6('0xd')],'paused':this[_0x5090c6('0x17')],'waiting':this['waiting']},_0x27f10d=md5(JSON[_0x5090c6('0xc')](_0x2dd9b3));this['md5']!==_0x27f10d&&(this[_0x5090c6('0x0')]=_0x27f10d,io['to'](util[_0x5090c6('0x12')](_0x5090c6('0x6'),_0x2dd9b3[_0x5090c6('0xd')]))[_0x5090c6('0x19')](_0x5090c6('0x5'),_0x2dd9b3));},module[_0x3da2a8('0xf')]=MailQueue; \ No newline at end of file +const a1168_0x4112=['length','updateRouting','updateRealtime','map','strategy','waiting','loggedIn','stringify','mail:queue:%s','name','../../../rediscache','md5','util','paused','prototype','_rr','available','Agents','mailPause','lodash','mapAgentsId','beepall'];(function(_0x55324,_0x41124b){const _0x51de0d=function(_0x43ed5c){while(--_0x43ed5c){_0x55324['push'](_0x55324['shift']());}};_0x51de0d(++_0x41124b);}(a1168_0x4112,0x1c2));const a1168_0x51de=function(_0x55324,_0x41124b){_0x55324=_0x55324-0x0;let _0x51de0d=a1168_0x4112[_0x55324];return _0x51de0d;};const _0x521712=a1168_0x51de;'use strict';const _=require(_0x521712('0x9')),md5=require('md5'),util=require(_0x521712('0x2')),{getSocket}=require(_0x521712('0x0')),io=getSocket();function MailQueue(_0x43ed5c){const _0x7a42d0=_0x521712;this['id']=_0x43ed5c['id']||0x0,this['name']=_0x43ed5c[_0x7a42d0('0x15')]||'',this['timeout']=_0x43ed5c['timeout']||0xa,this[_0x7a42d0('0x10')]=_0x43ed5c[_0x7a42d0('0x10')]||_0x7a42d0('0xb'),this[_0x7a42d0('0x7')]=_0x43ed5c[_0x7a42d0('0x7')],this[_0x7a42d0('0xa')]={},this[_0x7a42d0('0x11')]=0x0,this[_0x7a42d0('0x1')]='',this[_0x7a42d0('0xd')](),this[_0x7a42d0('0xe')]();}MailQueue['prototype']['updateRouting']=function(){const _0x45cb12=_0x521712,_0x14d660=this[_0x45cb12('0xa')][_0x45cb12('0x5')];this[_0x45cb12('0xa')]=_[_0x45cb12('0xf')](this[_0x45cb12('0x7')],'id'),this['mapAgentsId'][_0x45cb12('0x5')]=_0x14d660;},MailQueue[_0x521712('0x4')][_0x521712('0xe')]=function(){const _0x20a851=_0x521712;this[_0x20a851('0x12')]=0x0,this['paused']=0x0;for(let _0x79e555=0x0;_0x79e555=0x0?this[_0x20a851('0x6')]:0x0;const _0x59bdcf={'id':this['id'],'available':this[_0x20a851('0x6')],'loggedIn':this[_0x20a851('0x12')],'name':this['name'],'paused':this[_0x20a851('0x3')],'waiting':this[_0x20a851('0x11')]},_0x331966=md5(JSON[_0x20a851('0x13')](_0x59bdcf));this[_0x20a851('0x1')]!==_0x331966&&(this['md5']=_0x331966,io['to'](util['format'](_0x20a851('0x14'),_0x59bdcf[_0x20a851('0x15')]))['emit']('mail_queue:save',_0x59bdcf));},module['exports']=MailQueue; \ No newline at end of file diff --git a/server/services/routing/model/openchannelQueue.js b/server/services/routing/model/openchannelQueue.js index bc9b7d6..0dcba39 100644 --- a/server/services/routing/model/openchannelQueue.js +++ b/server/services/routing/model/openchannelQueue.js @@ -1 +1 @@ -const a1169_0x378b=['lodash','exports','mapAgentsId','updateRealtime','util','timeout','stringify','strategy','../../../rediscache','loggedIn','format','length','openchannel_queue:save','paused','waiting','online','openchannelPause','Agents','updateRouting','openchannel:queue:%s','map','md5','available','_rr','name'];(function(_0x6aaf16,_0x378b61){const _0x440002=function(_0x1b8d5c){while(--_0x1b8d5c){_0x6aaf16['push'](_0x6aaf16['shift']());}};_0x440002(++_0x378b61);}(a1169_0x378b,0x1ad));const a1169_0x4400=function(_0x6aaf16,_0x378b61){_0x6aaf16=_0x6aaf16-0x0;let _0x440002=a1169_0x378b[_0x6aaf16];return _0x440002;};const _0x54f05d=a1169_0x4400;'use strict';const _=require(_0x54f05d('0x15')),md5=require(_0x54f05d('0x11')),util=require(_0x54f05d('0x0')),{getSocket}=require(_0x54f05d('0x4')),io=getSocket();function OpenchannelQueue(_0x1b8d5c){const _0x240249=_0x54f05d;this['id']=_0x1b8d5c['id']||0x0,this[_0x240249('0x14')]=_0x1b8d5c[_0x240249('0x14')]||'',this[_0x240249('0x1')]=_0x1b8d5c[_0x240249('0x1')]||0xa,this[_0x240249('0x3')]=_0x1b8d5c['strategy']||'beepall',this[_0x240249('0xd')]=_0x1b8d5c[_0x240249('0xd')],this[_0x240249('0x17')]={},this[_0x240249('0xa')]=0x0,this[_0x240249('0x11')]='',this[_0x240249('0xe')](),this['updateRealtime']();}OpenchannelQueue['prototype'][_0x54f05d('0xe')]=function(){const _0x564ee8=_0x54f05d,_0x244c74=this[_0x564ee8('0x17')][_0x564ee8('0x13')];this[_0x564ee8('0x17')]=_[_0x564ee8('0x10')](this[_0x564ee8('0xd')],'id'),this[_0x564ee8('0x17')]['_rr']=_0x244c74;},OpenchannelQueue['prototype'][_0x54f05d('0x18')]=function(){const _0xfbabaf=_0x54f05d;this[_0xfbabaf('0x5')]=0x0,this['paused']=0x0;for(let _0xd436b1=0x0;_0xd436b1=0x0?this[_0xfbabaf('0x12')]:0x0;const _0x72b366={'id':this['id'],'available':this[_0xfbabaf('0x12')],'loggedIn':this[_0xfbabaf('0x5')],'name':this[_0xfbabaf('0x14')],'paused':this[_0xfbabaf('0x9')],'waiting':this[_0xfbabaf('0xa')]},_0x3fdc73=md5(JSON[_0xfbabaf('0x2')](_0x72b366));this[_0xfbabaf('0x11')]!==_0x3fdc73&&(this[_0xfbabaf('0x11')]=_0x3fdc73,io['to'](util[_0xfbabaf('0x6')](_0xfbabaf('0xf'),_0x72b366['name']))['emit'](_0xfbabaf('0x8'),_0x72b366));},module[_0x54f05d('0x16')]=OpenchannelQueue; \ No newline at end of file +const a1169_0x12b8=['lodash','length','../../../rediscache','stringify','md5','openchannel:queue:%s','paused','emit','name','available','strategy','waiting','prototype','timeout','Agents','_rr','loggedIn','openchannel_queue:save','format','online','beepall','mapAgentsId','map','updateRouting','openchannelPause','updateRealtime','util'];(function(_0x4142a5,_0x12b867){const _0x315c0d=function(_0xb19443){while(--_0xb19443){_0x4142a5['push'](_0x4142a5['shift']());}};_0x315c0d(++_0x12b867);}(a1169_0x12b8,0xd5));const a1169_0x315c=function(_0x4142a5,_0x12b867){_0x4142a5=_0x4142a5-0x0;let _0x315c0d=a1169_0x12b8[_0x4142a5];return _0x315c0d;};const _0x53b9ee=a1169_0x315c;'use strict';const _=require(_0x53b9ee('0x3')),md5=require(_0x53b9ee('0x7')),util=require(_0x53b9ee('0x2')),{getSocket}=require(_0x53b9ee('0x5')),io=getSocket();function OpenchannelQueue(_0xb19443){const _0x33946e=_0x53b9ee;this['id']=_0xb19443['id']||0x0,this[_0x33946e('0xb')]=_0xb19443[_0x33946e('0xb')]||'',this[_0x33946e('0x10')]=_0xb19443[_0x33946e('0x10')]||0xa,this[_0x33946e('0xd')]=_0xb19443[_0x33946e('0xd')]||_0x33946e('0x17'),this[_0x33946e('0x11')]=_0xb19443['Agents'],this[_0x33946e('0x18')]={},this[_0x33946e('0xe')]=0x0,this['md5']='',this[_0x33946e('0x1a')](),this[_0x33946e('0x1')]();}OpenchannelQueue['prototype'][_0x53b9ee('0x1a')]=function(){const _0x452aa9=_0x53b9ee,_0x266b08=this[_0x452aa9('0x18')][_0x452aa9('0x12')];this[_0x452aa9('0x18')]=_[_0x452aa9('0x19')](this['Agents'],'id'),this[_0x452aa9('0x18')][_0x452aa9('0x12')]=_0x266b08;},OpenchannelQueue[_0x53b9ee('0xf')]['updateRealtime']=function(){const _0x36f421=_0x53b9ee;this[_0x36f421('0x13')]=0x0,this[_0x36f421('0x9')]=0x0;for(let _0x11d92b=0x0;_0x11d92b=0x0?this[_0x36f421('0xc')]:0x0;const _0x4dfa29={'id':this['id'],'available':this[_0x36f421('0xc')],'loggedIn':this['loggedIn'],'name':this[_0x36f421('0xb')],'paused':this[_0x36f421('0x9')],'waiting':this['waiting']},_0x4b27a9=md5(JSON[_0x36f421('0x6')](_0x4dfa29));this['md5']!==_0x4b27a9&&(this[_0x36f421('0x7')]=_0x4b27a9,io['to'](util[_0x36f421('0x15')](_0x36f421('0x8'),_0x4dfa29['name']))[_0x36f421('0xa')](_0x36f421('0x14'),_0x4dfa29));},module['exports']=OpenchannelQueue; \ No newline at end of file diff --git a/server/services/routing/model/smsQueue.js b/server/services/routing/model/smsQueue.js index 623bed8..3d1f5a3 100644 --- a/server/services/routing/model/smsQueue.js +++ b/server/services/routing/model/smsQueue.js @@ -1 +1 @@ -const a1170_0x58cd=['paused','exports','beepall','prototype','updateRouting','updateRealtime','map','Agents','strategy','smsPause','../../../rediscache','online','waiting','available','sms:queue:%s','mapAgentsId','md5','loggedIn','timeout','name','sms_queue:save'];(function(_0xd24bbf,_0x58cd63){const _0x5644a5=function(_0x4b414a){while(--_0x4b414a){_0xd24bbf['push'](_0xd24bbf['shift']());}};_0x5644a5(++_0x58cd63);}(a1170_0x58cd,0x1c8));const a1170_0x5644=function(_0xd24bbf,_0x58cd63){_0xd24bbf=_0xd24bbf-0x0;let _0x5644a5=a1170_0x58cd[_0xd24bbf];return _0x5644a5;};const _0x388d3e=a1170_0x5644;'use strict';const _=require('lodash'),md5=require(_0x388d3e('0x1')),util=require('util'),{getSocket}=require(_0x388d3e('0x10')),io=getSocket();function SmsQueue(_0x4b414a){const _0x146ceb=_0x388d3e;this['id']=_0x4b414a['id']||0x0,this[_0x146ceb('0x4')]=_0x4b414a['name']||'',this[_0x146ceb('0x3')]=_0x4b414a[_0x146ceb('0x3')]||0xa,this[_0x146ceb('0xe')]=_0x4b414a[_0x146ceb('0xe')]||_0x146ceb('0x8'),this[_0x146ceb('0xd')]=_0x4b414a[_0x146ceb('0xd')],this[_0x146ceb('0x0')]={},this[_0x146ceb('0x12')]=0x0,this[_0x146ceb('0x1')]='',this[_0x146ceb('0xa')](),this[_0x146ceb('0xb')]();}SmsQueue['prototype'][_0x388d3e('0xa')]=function(){const _0x184f40=_0x388d3e,_0x3ac246=this[_0x184f40('0x0')]['_rr'];this['mapAgentsId']=_[_0x184f40('0xc')](this[_0x184f40('0xd')],'id'),this[_0x184f40('0x0')]['_rr']=_0x3ac246;},SmsQueue[_0x388d3e('0x9')]['updateRealtime']=function(){const _0x1bfd70=_0x388d3e;this[_0x1bfd70('0x2')]=0x0,this[_0x1bfd70('0x6')]=0x0;for(let _0x384693=0x0;_0x384693=0x0?this[_0x1bfd70('0x13')]:0x0;const _0x4c3bca={'id':this['id'],'available':this[_0x1bfd70('0x13')],'loggedIn':this[_0x1bfd70('0x2')],'name':this['name'],'paused':this['paused'],'waiting':this[_0x1bfd70('0x12')]},_0x121552=md5(JSON['stringify'](_0x4c3bca));this['md5']!==_0x121552&&(this[_0x1bfd70('0x1')]=_0x121552,io['to'](util['format'](_0x1bfd70('0x14'),_0x4c3bca[_0x1bfd70('0x4')]))['emit'](_0x1bfd70('0x5'),_0x4c3bca));},module[_0x388d3e('0x7')]=SmsQueue; \ No newline at end of file +const a1170_0x5507=['map','sms_queue:save','md5','updateRealtime','Agents','updateRouting','stringify','available','_rr','online','emit','paused','strategy','smsPause','timeout','exports','../../../rediscache','mapAgentsId','format','util','beepall','waiting','name','prototype','loggedIn'];(function(_0x9b799e,_0x55073f){const _0xe776fc=function(_0x12f3bf){while(--_0x12f3bf){_0x9b799e['push'](_0x9b799e['shift']());}};_0xe776fc(++_0x55073f);}(a1170_0x5507,0x159));const a1170_0xe776=function(_0x9b799e,_0x55073f){_0x9b799e=_0x9b799e-0x0;let _0xe776fc=a1170_0x5507[_0x9b799e];return _0xe776fc;};const _0x7fa48c=a1170_0xe776;'use strict';const _=require('lodash'),md5=require(_0x7fa48c('0x7')),util=require(_0x7fa48c('0x18')),{getSocket}=require(_0x7fa48c('0x15')),io=getSocket();function SmsQueue(_0x12f3bf){const _0x299388=_0x7fa48c;this['id']=_0x12f3bf['id']||0x0,this['name']=_0x12f3bf[_0x299388('0x2')]||'',this[_0x299388('0x13')]=_0x12f3bf[_0x299388('0x13')]||0xa,this['strategy']=_0x12f3bf[_0x299388('0x11')]||_0x299388('0x0'),this[_0x299388('0x9')]=_0x12f3bf[_0x299388('0x9')],this[_0x299388('0x16')]={},this['waiting']=0x0,this[_0x299388('0x7')]='',this['updateRouting'](),this[_0x299388('0x8')]();}SmsQueue['prototype'][_0x7fa48c('0xa')]=function(){const _0x141afe=_0x7fa48c,_0x2d5dc9=this[_0x141afe('0x16')][_0x141afe('0xd')];this[_0x141afe('0x16')]=_[_0x141afe('0x5')](this['Agents'],'id'),this[_0x141afe('0x16')][_0x141afe('0xd')]=_0x2d5dc9;},SmsQueue[_0x7fa48c('0x3')]['updateRealtime']=function(){const _0x423d4c=_0x7fa48c;this[_0x423d4c('0x4')]=0x0,this[_0x423d4c('0x10')]=0x0;for(let _0x584ab5=0x0;_0x584ab5=0x0?this[_0x423d4c('0xc')]:0x0;const _0x3d8dd6={'id':this['id'],'available':this[_0x423d4c('0xc')],'loggedIn':this[_0x423d4c('0x4')],'name':this[_0x423d4c('0x2')],'paused':this[_0x423d4c('0x10')],'waiting':this[_0x423d4c('0x1')]},_0xf252f3=md5(JSON[_0x423d4c('0xb')](_0x3d8dd6));this[_0x423d4c('0x7')]!==_0xf252f3&&(this[_0x423d4c('0x7')]=_0xf252f3,io['to'](util[_0x423d4c('0x17')]('sms:queue:%s',_0x3d8dd6[_0x423d4c('0x2')]))[_0x423d4c('0xf')](_0x423d4c('0x6'),_0x3d8dd6));},module[_0x7fa48c('0x14')]=SmsQueue; \ No newline at end of file diff --git a/server/services/routing/model/whatsappQueue.js b/server/services/routing/model/whatsappQueue.js index 220b5c4..58082bf 100644 --- a/server/services/routing/model/whatsappQueue.js +++ b/server/services/routing/model/whatsappQueue.js @@ -1 +1 @@ -const a1171_0x5563=['format','paused','updateRealtime','_rr','emit','timeout','name','md5','Agents','exports','whatsappPause','whatsapp:queue:%s','updateRouting','online','available','beepall','util','prototype','whatsapp_queue:save','map','mapAgentsId','strategy','loggedIn'];(function(_0x21b732,_0x556387){const _0xe5c7d0=function(_0x15d89a){while(--_0x15d89a){_0x21b732['push'](_0x21b732['shift']());}};_0xe5c7d0(++_0x556387);}(a1171_0x5563,0xbd));const a1171_0xe5c7=function(_0x21b732,_0x556387){_0x21b732=_0x21b732-0x0;let _0xe5c7d0=a1171_0x5563[_0x21b732];return _0xe5c7d0;};const _0x5e3c2b=a1171_0xe5c7;'use strict';const _=require('lodash'),md5=require(_0x5e3c2b('0x2')),util=require(_0x5e3c2b('0xb')),{getSocket}=require('../../../rediscache'),io=getSocket();function WhatsappQueue(_0x15d89a){const _0x3f2bb7=_0x5e3c2b;this['id']=_0x15d89a['id']||0x0,this[_0x3f2bb7('0x1')]=_0x15d89a[_0x3f2bb7('0x1')]||'',this['timeout']=_0x15d89a[_0x3f2bb7('0x0')]||0xa,this['strategy']=_0x15d89a[_0x3f2bb7('0x10')]||_0x3f2bb7('0xa'),this[_0x3f2bb7('0x3')]=_0x15d89a[_0x3f2bb7('0x3')],this['mapAgentsId']={},this['waiting']=0x0,this[_0x3f2bb7('0x2')]='',this['updateRouting'](),this[_0x3f2bb7('0x14')]();}WhatsappQueue[_0x5e3c2b('0xc')][_0x5e3c2b('0x7')]=function(){const _0x27063a=_0x5e3c2b,_0x262d8f=this[_0x27063a('0xf')][_0x27063a('0x15')];this[_0x27063a('0xf')]=_[_0x27063a('0xe')](this[_0x27063a('0x3')],'id'),this[_0x27063a('0xf')][_0x27063a('0x15')]=_0x262d8f;},WhatsappQueue[_0x5e3c2b('0xc')][_0x5e3c2b('0x14')]=function(){const _0x14e984=_0x5e3c2b;this['loggedIn']=0x0,this[_0x14e984('0x13')]=0x0;for(let _0x1494e4=0x0;_0x1494e4=0x0?this[_0x14e984('0x9')]:0x0;const _0x3c0997={'id':this['id'],'available':this['available'],'loggedIn':this[_0x14e984('0x11')],'name':this[_0x14e984('0x1')],'paused':this['paused'],'waiting':this['waiting']},_0x2aca35=md5(JSON['stringify'](_0x3c0997));this['md5']!==_0x2aca35&&(this[_0x14e984('0x2')]=_0x2aca35,io['to'](util[_0x14e984('0x12')](_0x14e984('0x6'),_0x3c0997[_0x14e984('0x1')]))[_0x14e984('0x16')](_0x14e984('0xd'),_0x3c0997));},module[_0x5e3c2b('0x4')]=WhatsappQueue; \ No newline at end of file +const a1171_0x51a0=['online','mapAgentsId','exports','_rr','prototype','util','md5','beepall','updateRealtime','format','Agents','map','available','paused','length','whatsapp_queue:save','timeout','stringify','lodash','whatsapp:queue:%s','name','loggedIn','waiting','strategy','whatsappPause','emit','../../../rediscache'];(function(_0x3a922a,_0x51a08a){const _0x10a5a3=function(_0x13b5c4){while(--_0x13b5c4){_0x3a922a['push'](_0x3a922a['shift']());}};_0x10a5a3(++_0x51a08a);}(a1171_0x51a0,0x1ce));const a1171_0x10a5=function(_0x3a922a,_0x51a08a){_0x3a922a=_0x3a922a-0x0;let _0x10a5a3=a1171_0x51a0[_0x3a922a];return _0x10a5a3;};const _0x3fbe0f=a1171_0x10a5;'use strict';const _=require(_0x3fbe0f('0xf')),md5=require('md5'),util=require(_0x3fbe0f('0x2')),{getSocket}=require(_0x3fbe0f('0x17')),io=getSocket();function WhatsappQueue(_0x13b5c4){const _0x38ded5=_0x3fbe0f;this['id']=_0x13b5c4['id']||0x0,this['name']=_0x13b5c4[_0x38ded5('0x11')]||'',this[_0x38ded5('0xd')]=_0x13b5c4[_0x38ded5('0xd')]||0xa,this[_0x38ded5('0x14')]=_0x13b5c4[_0x38ded5('0x14')]||_0x38ded5('0x4'),this[_0x38ded5('0x7')]=_0x13b5c4[_0x38ded5('0x7')],this[_0x38ded5('0x19')]={},this['waiting']=0x0,this[_0x38ded5('0x3')]='',this['updateRouting'](),this[_0x38ded5('0x5')]();}WhatsappQueue['prototype']['updateRouting']=function(){const _0x169509=_0x3fbe0f,_0x2718e6=this[_0x169509('0x19')][_0x169509('0x0')];this['mapAgentsId']=_[_0x169509('0x8')](this[_0x169509('0x7')],'id'),this[_0x169509('0x19')][_0x169509('0x0')]=_0x2718e6;},WhatsappQueue[_0x3fbe0f('0x1')][_0x3fbe0f('0x5')]=function(){const _0x2e545d=_0x3fbe0f;this[_0x2e545d('0x12')]=0x0,this['paused']=0x0;for(let _0xca23e8=0x0;_0xca23e8=0x0?this[_0x2e545d('0x9')]:0x0;const _0xe377f9={'id':this['id'],'available':this[_0x2e545d('0x9')],'loggedIn':this[_0x2e545d('0x12')],'name':this[_0x2e545d('0x11')],'paused':this[_0x2e545d('0xa')],'waiting':this[_0x2e545d('0x13')]},_0x510143=md5(JSON[_0x2e545d('0xe')](_0xe377f9));this[_0x2e545d('0x3')]!==_0x510143&&(this['md5']=_0x510143,io['to'](util[_0x2e545d('0x6')](_0x2e545d('0x10'),_0xe377f9['name']))[_0x2e545d('0x16')](_0x2e545d('0xc'),_0xe377f9));},module[_0x3fbe0f('0x1a')]=WhatsappQueue; \ No newline at end of file diff --git a/server/services/routing/realtime/index.js b/server/services/routing/realtime/index.js index 6a8d716..626ce4f 100644 --- a/server/services/routing/realtime/index.js +++ b/server/services/routing/realtime/index.js @@ -1 +1 @@ -const a1172_0x1e9b=['updateRealtime','intervals','smsQueues','isUndefined','faxQueuesWaitingInteractions','openchannelQueues','whatsappQueuesWaitingInteractions','exports','smsQueuesWaitingInteractions','updateRouting','chatQueues','../model/mailQueue','initAgents','initChatQueues','faxQueues','length','mergeFromDatabase','../model/whatsappQueue','prototype','mailQueues','../model/faxQueue','openchannelQueuesWaitingInteractions','undefined','../model/openchannelQueue','initIntervals','initWhatsappQueues','whatsappQueues','agents','lodash','../model/smsQueue'];(function(_0x43e186,_0x1e9b62){const _0x5d9762=function(_0x27cc9a){while(--_0x27cc9a){_0x43e186['push'](_0x43e186['shift']());}};_0x5d9762(++_0x1e9b62);}(a1172_0x1e9b,0xe8));const a1172_0x5d97=function(_0x43e186,_0x1e9b62){_0x43e186=_0x43e186-0x0;let _0x5d9762=a1172_0x1e9b[_0x43e186];return _0x5d9762;};const _0x5922a7=a1172_0x5d97;'use strict';const _=require(_0x5922a7('0x6')),Agent=require('../model/agent'),Interval=require('../model/interval'),OpenchannelQueue=require(_0x5922a7('0x1')),ChatQueue=require('../model/chatQueue'),SmsQueue=require(_0x5922a7('0x7')),MailQueue=require(_0x5922a7('0x13')),FaxQueue=require(_0x5922a7('0x1c')),WhatsappQueue=require(_0x5922a7('0x19')),Realtime=function(){const _0xe999b2=_0x5922a7;this[_0xe999b2('0x5')]={},this[_0xe999b2('0x9')]={},this['openchannelQueues']={},this[_0xe999b2('0x12')]={},this[_0xe999b2('0xa')]={},this[_0xe999b2('0x1b')]={},this[_0xe999b2('0x16')]={},this[_0xe999b2('0x4')]={},this['chatQueuesWaitingInteractions']={},this['mailQueuesWaitingInteractions']={},this[_0xe999b2('0x1d')]={},this[_0xe999b2('0x10')]={},this[_0xe999b2('0xc')]={},this[_0xe999b2('0xe')]={};};function freeIsNotKey(_0x27cc9a,_0x56ecf3,_0x1d7c36){const _0x438ad7=_0x5922a7,_0x37852f=_['mapKeys'](_0x27cc9a,function(_0x3592a2){return _0x3592a2[_0x1d7c36];});for(const _0x4fa1bf in _0x56ecf3){typeof _0x56ecf3[_0x4fa1bf]!==_0x438ad7('0x0')&&(!_0x37852f[_0x4fa1bf]&&delete _0x56ecf3[_0x4fa1bf]);}}Realtime['prototype'][_0x5922a7('0x18')]=function(_0x41e664,_0x2730ad){const _0x5d7cf4=_0x5922a7;for(const _0x4c2204 in _0x2730ad){typeof _0x41e664[_0x4c2204]!==_0x5d7cf4('0x0')&&(_0x41e664[_0x4c2204]=_0x2730ad[_0x4c2204]);}},Realtime[_0x5922a7('0x1a')][_0x5922a7('0x14')]=function(){const _0x50428b=this;return function(_0x46a16b){const _0x58c0b0=a1172_0x5d97;if(_0x46a16b){freeIsNotKey(_0x46a16b,_0x50428b[_0x58c0b0('0x5')],'id');for(let _0x208dd7=0x0,_0x5ef877={};_0x208dd7<_0x46a16b[_0x58c0b0('0x17')];_0x208dd7+=0x1){_0x5ef877=_0x46a16b[_0x208dd7],_[_0x58c0b0('0xb')](_0x50428b['agents'][_0x5ef877['id']])?_0x50428b[_0x58c0b0('0x5')][_0x5ef877['id']]=new Agent(_0x5ef877):_0x50428b[_0x58c0b0('0x18')](_0x50428b[_0x58c0b0('0x5')][_0x5ef877['id']],_0x5ef877);}}return _0x50428b[_0x58c0b0('0x5')];};},Realtime[_0x5922a7('0x1a')][_0x5922a7('0x2')]=function(){const _0x496816=this;return function(_0x5e6857){const _0x1ad175=a1172_0x5d97;if(_0x5e6857){freeIsNotKey(_0x5e6857,_0x496816[_0x1ad175('0x9')],'id');for(let _0x46a26b=0x0,_0x51993b={};_0x46a26b<_0x5e6857[_0x1ad175('0x17')];_0x46a26b+=0x1){_0x51993b=_0x5e6857[_0x46a26b],_[_0x1ad175('0xb')](_0x496816[_0x1ad175('0x9')][_0x51993b['id']])?_0x496816[_0x1ad175('0x9')][_0x51993b['id']]=new Interval(_0x51993b):_0x496816[_0x1ad175('0x18')](_0x496816[_0x1ad175('0x9')][_0x51993b['id']],_0x51993b);}}return _0x496816['intervals'];};},Realtime[_0x5922a7('0x1a')]['initOpenchannelQueues']=function(){const _0x18a480=this;return function(_0x740a9c){const _0xc5b228=a1172_0x5d97;if(_0x740a9c){freeIsNotKey(_0x740a9c,_0x18a480[_0xc5b228('0xd')],'id');for(let _0x19128f=0x0,_0x2e10d1={};_0x19128f<_0x740a9c['length'];_0x19128f+=0x1){_0x2e10d1=_0x740a9c[_0x19128f],_[_0xc5b228('0xb')](_0x18a480['openchannelQueues'][_0x2e10d1['id']])?_0x18a480['openchannelQueues'][_0x2e10d1['id']]=new OpenchannelQueue(_0x2e10d1):_0x18a480[_0xc5b228('0x18')](_0x18a480[_0xc5b228('0xd')][_0x2e10d1['id']],_0x2e10d1),_0x18a480[_0xc5b228('0xd')][_0x2e10d1['id']][_0xc5b228('0x11')](),_0x18a480[_0xc5b228('0xd')][_0x2e10d1['id']][_0xc5b228('0x8')]();}}return _0x18a480[_0xc5b228('0xd')];};},Realtime[_0x5922a7('0x1a')][_0x5922a7('0x15')]=function(){const _0xcb172=this;return function(_0x24c514){const _0x1b8edb=a1172_0x5d97;if(_0x24c514){freeIsNotKey(_0x24c514,_0xcb172[_0x1b8edb('0x12')],'id');for(let _0x9f486e=0x0,_0x2dae0c={};_0x9f486e<_0x24c514[_0x1b8edb('0x17')];_0x9f486e+=0x1){_0x2dae0c=_0x24c514[_0x9f486e],_[_0x1b8edb('0xb')](_0xcb172[_0x1b8edb('0x12')][_0x2dae0c['id']])?_0xcb172[_0x1b8edb('0x12')][_0x2dae0c['id']]=new ChatQueue(_0x2dae0c):_0xcb172[_0x1b8edb('0x18')](_0xcb172[_0x1b8edb('0x12')][_0x2dae0c['id']],_0x2dae0c),_0xcb172[_0x1b8edb('0x12')][_0x2dae0c['id']][_0x1b8edb('0x11')](),_0xcb172[_0x1b8edb('0x12')][_0x2dae0c['id']]['updateRealtime']();}}return _0xcb172[_0x1b8edb('0x12')];};},Realtime[_0x5922a7('0x1a')]['initSmsQueues']=function(){const _0x1f65ab=this;return function(_0x3cb9d5){const _0x23cef1=a1172_0x5d97;if(_0x3cb9d5){freeIsNotKey(_0x3cb9d5,_0x1f65ab[_0x23cef1('0xa')],'id');for(let _0x400038=0x0,_0x1ec64a={};_0x400038<_0x3cb9d5[_0x23cef1('0x17')];_0x400038+=0x1){_0x1ec64a=_0x3cb9d5[_0x400038],_[_0x23cef1('0xb')](_0x1f65ab[_0x23cef1('0xa')][_0x1ec64a['id']])?_0x1f65ab[_0x23cef1('0xa')][_0x1ec64a['id']]=new SmsQueue(_0x1ec64a):_0x1f65ab[_0x23cef1('0x18')](_0x1f65ab[_0x23cef1('0xa')][_0x1ec64a['id']],_0x1ec64a),_0x1f65ab[_0x23cef1('0xa')][_0x1ec64a['id']][_0x23cef1('0x11')](),_0x1f65ab[_0x23cef1('0xa')][_0x1ec64a['id']]['updateRealtime']();}}return _0x1f65ab['smsQueues'];};},Realtime[_0x5922a7('0x1a')]['initMailQueues']=function(){const _0x2268ea=this;return function(_0x18287b){const _0x1f9743=a1172_0x5d97;if(_0x18287b){freeIsNotKey(_0x18287b,_0x2268ea[_0x1f9743('0x1b')],'id');for(let _0x1a2271=0x0,_0x112dc8={};_0x1a2271<_0x18287b[_0x1f9743('0x17')];_0x1a2271+=0x1){_0x112dc8=_0x18287b[_0x1a2271],_[_0x1f9743('0xb')](_0x2268ea[_0x1f9743('0x1b')][_0x112dc8['id']])?_0x2268ea[_0x1f9743('0x1b')][_0x112dc8['id']]=new MailQueue(_0x112dc8):_0x2268ea[_0x1f9743('0x18')](_0x2268ea[_0x1f9743('0x1b')][_0x112dc8['id']],_0x112dc8),_0x2268ea[_0x1f9743('0x1b')][_0x112dc8['id']][_0x1f9743('0x11')](),_0x2268ea[_0x1f9743('0x1b')][_0x112dc8['id']][_0x1f9743('0x8')]();}}return _0x2268ea[_0x1f9743('0x1b')];};},Realtime['prototype']['initFaxQueues']=function(){const _0x57cd7d=this;return function(_0x12876c){const _0x50bfdf=a1172_0x5d97;if(_0x12876c){freeIsNotKey(_0x12876c,_0x57cd7d[_0x50bfdf('0x16')],'id');for(let _0xb12267=0x0,_0x5a318c={};_0xb12267<_0x12876c[_0x50bfdf('0x17')];_0xb12267+=0x1){_0x5a318c=_0x12876c[_0xb12267],_[_0x50bfdf('0xb')](_0x57cd7d[_0x50bfdf('0x16')][_0x5a318c['id']])?_0x57cd7d[_0x50bfdf('0x16')][_0x5a318c['id']]=new FaxQueue(_0x5a318c):_0x57cd7d[_0x50bfdf('0x18')](_0x57cd7d[_0x50bfdf('0x16')][_0x5a318c['id']],_0x5a318c),_0x57cd7d[_0x50bfdf('0x16')][_0x5a318c['id']][_0x50bfdf('0x11')](),_0x57cd7d[_0x50bfdf('0x16')][_0x5a318c['id']][_0x50bfdf('0x8')]();}}return _0x57cd7d['faxQueues'];};},Realtime[_0x5922a7('0x1a')][_0x5922a7('0x3')]=function(){const _0xb6062a=this;return function(_0x3fd0ed){const _0x2e0e96=a1172_0x5d97;if(_0x3fd0ed){freeIsNotKey(_0x3fd0ed,_0xb6062a[_0x2e0e96('0x4')],'id');for(let _0x70821=0x0,_0x3072cc={};_0x70821<_0x3fd0ed[_0x2e0e96('0x17')];_0x70821+=0x1){_0x3072cc=_0x3fd0ed[_0x70821],_[_0x2e0e96('0xb')](_0xb6062a[_0x2e0e96('0x4')][_0x3072cc['id']])?_0xb6062a[_0x2e0e96('0x4')][_0x3072cc['id']]=new WhatsappQueue(_0x3072cc):_0xb6062a['mergeFromDatabase'](_0xb6062a['whatsappQueues'][_0x3072cc['id']],_0x3072cc),_0xb6062a[_0x2e0e96('0x4')][_0x3072cc['id']][_0x2e0e96('0x11')](),_0xb6062a[_0x2e0e96('0x4')][_0x3072cc['id']][_0x2e0e96('0x8')]();}}return _0xb6062a[_0x2e0e96('0x4')];};},module[_0x5922a7('0xf')]=Realtime; \ No newline at end of file +const a1172_0x37f2=['smsQueuesWaitingInteractions','whatsappQueues','chatQueues','exports','openchannelQueuesWaitingInteractions','mailQueues','initChatQueues','intervals','../model/openchannelQueue','whatsappQueuesWaitingInteractions','../model/mailQueue','mailQueuesWaitingInteractions','undefined','initAgents','lodash','length','initMailQueues','updateRouting','../model/agent','prototype','agents','mergeFromDatabase','smsQueues','faxQueues','faxQueuesWaitingInteractions','isUndefined','../model/interval','initSmsQueues','mapKeys','openchannelQueues','chatQueuesWaitingInteractions','updateRealtime'];(function(_0x1be9ec,_0x37f2de){const _0xe81ef7=function(_0x3b033e){while(--_0x3b033e){_0x1be9ec['push'](_0x1be9ec['shift']());}};_0xe81ef7(++_0x37f2de);}(a1172_0x37f2,0x183));const a1172_0xe81e=function(_0x1be9ec,_0x37f2de){_0x1be9ec=_0x1be9ec-0x0;let _0xe81ef7=a1172_0x37f2[_0x1be9ec];return _0xe81ef7;};const _0x38d74a=a1172_0xe81e;'use strict';const _=require(_0x38d74a('0xb')),Agent=require(_0x38d74a('0xf')),Interval=require(_0x38d74a('0x17')),OpenchannelQueue=require(_0x38d74a('0x5')),ChatQueue=require('../model/chatQueue'),SmsQueue=require('../model/smsQueue'),MailQueue=require(_0x38d74a('0x7')),FaxQueue=require('../model/faxQueue'),WhatsappQueue=require('../model/whatsappQueue'),Realtime=function(){const _0x3f2644=_0x38d74a;this[_0x3f2644('0x11')]={},this[_0x3f2644('0x4')]={},this['openchannelQueues']={},this['chatQueues']={},this[_0x3f2644('0x13')]={},this[_0x3f2644('0x2')]={},this['faxQueues']={},this[_0x3f2644('0x1e')]={},this[_0x3f2644('0x1b')]={},this[_0x3f2644('0x8')]={},this[_0x3f2644('0x1')]={},this[_0x3f2644('0x1d')]={},this[_0x3f2644('0x15')]={},this[_0x3f2644('0x6')]={};};function freeIsNotKey(_0x3b033e,_0x408e34,_0x3976a0){const _0x4044ee=_0x38d74a,_0x50fc23=_[_0x4044ee('0x19')](_0x3b033e,function(_0x4a0f6f){return _0x4a0f6f[_0x3976a0];});for(const _0x348f81 in _0x408e34){typeof _0x408e34[_0x348f81]!==_0x4044ee('0x9')&&(!_0x50fc23[_0x348f81]&&delete _0x408e34[_0x348f81]);}}Realtime['prototype'][_0x38d74a('0x12')]=function(_0x696088,_0x5e1247){const _0x367e3e=_0x38d74a;for(const _0x5e3361 in _0x5e1247){typeof _0x696088[_0x5e3361]!==_0x367e3e('0x9')&&(_0x696088[_0x5e3361]=_0x5e1247[_0x5e3361]);}},Realtime[_0x38d74a('0x10')][_0x38d74a('0xa')]=function(){const _0x4edef1=this;return function(_0x21908e){const _0x3303e7=a1172_0xe81e;if(_0x21908e){freeIsNotKey(_0x21908e,_0x4edef1[_0x3303e7('0x11')],'id');for(let _0x1864f3=0x0,_0x321523={};_0x1864f3<_0x21908e[_0x3303e7('0xc')];_0x1864f3+=0x1){_0x321523=_0x21908e[_0x1864f3],_[_0x3303e7('0x16')](_0x4edef1[_0x3303e7('0x11')][_0x321523['id']])?_0x4edef1[_0x3303e7('0x11')][_0x321523['id']]=new Agent(_0x321523):_0x4edef1[_0x3303e7('0x12')](_0x4edef1[_0x3303e7('0x11')][_0x321523['id']],_0x321523);}}return _0x4edef1[_0x3303e7('0x11')];};},Realtime['prototype']['initIntervals']=function(){const _0x5b84bd=this;return function(_0x23b626){const _0x11ea60=a1172_0xe81e;if(_0x23b626){freeIsNotKey(_0x23b626,_0x5b84bd[_0x11ea60('0x4')],'id');for(let _0xc32a7a=0x0,_0x282990={};_0xc32a7a<_0x23b626[_0x11ea60('0xc')];_0xc32a7a+=0x1){_0x282990=_0x23b626[_0xc32a7a],_[_0x11ea60('0x16')](_0x5b84bd[_0x11ea60('0x4')][_0x282990['id']])?_0x5b84bd['intervals'][_0x282990['id']]=new Interval(_0x282990):_0x5b84bd[_0x11ea60('0x12')](_0x5b84bd[_0x11ea60('0x4')][_0x282990['id']],_0x282990);}}return _0x5b84bd[_0x11ea60('0x4')];};},Realtime[_0x38d74a('0x10')]['initOpenchannelQueues']=function(){const _0x418463=this;return function(_0x391dad){const _0x372b2e=a1172_0xe81e;if(_0x391dad){freeIsNotKey(_0x391dad,_0x418463[_0x372b2e('0x1a')],'id');for(let _0x25deeb=0x0,_0x4b17f6={};_0x25deeb<_0x391dad[_0x372b2e('0xc')];_0x25deeb+=0x1){_0x4b17f6=_0x391dad[_0x25deeb],_[_0x372b2e('0x16')](_0x418463[_0x372b2e('0x1a')][_0x4b17f6['id']])?_0x418463['openchannelQueues'][_0x4b17f6['id']]=new OpenchannelQueue(_0x4b17f6):_0x418463['mergeFromDatabase'](_0x418463[_0x372b2e('0x1a')][_0x4b17f6['id']],_0x4b17f6),_0x418463['openchannelQueues'][_0x4b17f6['id']][_0x372b2e('0xe')](),_0x418463[_0x372b2e('0x1a')][_0x4b17f6['id']]['updateRealtime']();}}return _0x418463['openchannelQueues'];};},Realtime[_0x38d74a('0x10')][_0x38d74a('0x3')]=function(){const _0x1e213d=this;return function(_0x15b589){const _0x4af7a2=a1172_0xe81e;if(_0x15b589){freeIsNotKey(_0x15b589,_0x1e213d[_0x4af7a2('0x1f')],'id');for(let _0x2990f2=0x0,_0x15fa84={};_0x2990f2<_0x15b589[_0x4af7a2('0xc')];_0x2990f2+=0x1){_0x15fa84=_0x15b589[_0x2990f2],_[_0x4af7a2('0x16')](_0x1e213d['chatQueues'][_0x15fa84['id']])?_0x1e213d['chatQueues'][_0x15fa84['id']]=new ChatQueue(_0x15fa84):_0x1e213d[_0x4af7a2('0x12')](_0x1e213d[_0x4af7a2('0x1f')][_0x15fa84['id']],_0x15fa84),_0x1e213d['chatQueues'][_0x15fa84['id']]['updateRouting'](),_0x1e213d[_0x4af7a2('0x1f')][_0x15fa84['id']][_0x4af7a2('0x1c')]();}}return _0x1e213d[_0x4af7a2('0x1f')];};},Realtime['prototype'][_0x38d74a('0x18')]=function(){const _0x45ac70=this;return function(_0x195e07){const _0x54f0a1=a1172_0xe81e;if(_0x195e07){freeIsNotKey(_0x195e07,_0x45ac70[_0x54f0a1('0x13')],'id');for(let _0x409cb6=0x0,_0xc41a50={};_0x409cb6<_0x195e07['length'];_0x409cb6+=0x1){_0xc41a50=_0x195e07[_0x409cb6],_[_0x54f0a1('0x16')](_0x45ac70[_0x54f0a1('0x13')][_0xc41a50['id']])?_0x45ac70[_0x54f0a1('0x13')][_0xc41a50['id']]=new SmsQueue(_0xc41a50):_0x45ac70['mergeFromDatabase'](_0x45ac70[_0x54f0a1('0x13')][_0xc41a50['id']],_0xc41a50),_0x45ac70[_0x54f0a1('0x13')][_0xc41a50['id']]['updateRouting'](),_0x45ac70[_0x54f0a1('0x13')][_0xc41a50['id']][_0x54f0a1('0x1c')]();}}return _0x45ac70[_0x54f0a1('0x13')];};},Realtime['prototype'][_0x38d74a('0xd')]=function(){const _0x332de1=this;return function(_0x4d70d2){const _0x31a7b1=a1172_0xe81e;if(_0x4d70d2){freeIsNotKey(_0x4d70d2,_0x332de1['mailQueues'],'id');for(let _0xcda6ee=0x0,_0x20be71={};_0xcda6ee<_0x4d70d2[_0x31a7b1('0xc')];_0xcda6ee+=0x1){_0x20be71=_0x4d70d2[_0xcda6ee],_[_0x31a7b1('0x16')](_0x332de1[_0x31a7b1('0x2')][_0x20be71['id']])?_0x332de1[_0x31a7b1('0x2')][_0x20be71['id']]=new MailQueue(_0x20be71):_0x332de1[_0x31a7b1('0x12')](_0x332de1[_0x31a7b1('0x2')][_0x20be71['id']],_0x20be71),_0x332de1[_0x31a7b1('0x2')][_0x20be71['id']][_0x31a7b1('0xe')](),_0x332de1[_0x31a7b1('0x2')][_0x20be71['id']]['updateRealtime']();}}return _0x332de1['mailQueues'];};},Realtime[_0x38d74a('0x10')]['initFaxQueues']=function(){const _0x304d14=this;return function(_0x5640a9){const _0x4fee52=a1172_0xe81e;if(_0x5640a9){freeIsNotKey(_0x5640a9,_0x304d14[_0x4fee52('0x14')],'id');for(let _0x3e11e0=0x0,_0x16438d={};_0x3e11e0<_0x5640a9[_0x4fee52('0xc')];_0x3e11e0+=0x1){_0x16438d=_0x5640a9[_0x3e11e0],_[_0x4fee52('0x16')](_0x304d14['faxQueues'][_0x16438d['id']])?_0x304d14[_0x4fee52('0x14')][_0x16438d['id']]=new FaxQueue(_0x16438d):_0x304d14[_0x4fee52('0x12')](_0x304d14[_0x4fee52('0x14')][_0x16438d['id']],_0x16438d),_0x304d14[_0x4fee52('0x14')][_0x16438d['id']]['updateRouting'](),_0x304d14[_0x4fee52('0x14')][_0x16438d['id']][_0x4fee52('0x1c')]();}}return _0x304d14[_0x4fee52('0x14')];};},Realtime[_0x38d74a('0x10')]['initWhatsappQueues']=function(){const _0x4cecca=this;return function(_0x5d704a){const _0x200e98=a1172_0xe81e;if(_0x5d704a){freeIsNotKey(_0x5d704a,_0x4cecca[_0x200e98('0x1e')],'id');for(let _0x4b7289=0x0,_0x3cf8c6={};_0x4b7289<_0x5d704a[_0x200e98('0xc')];_0x4b7289+=0x1){_0x3cf8c6=_0x5d704a[_0x4b7289],_[_0x200e98('0x16')](_0x4cecca['whatsappQueues'][_0x3cf8c6['id']])?_0x4cecca[_0x200e98('0x1e')][_0x3cf8c6['id']]=new WhatsappQueue(_0x3cf8c6):_0x4cecca[_0x200e98('0x12')](_0x4cecca['whatsappQueues'][_0x3cf8c6['id']],_0x3cf8c6),_0x4cecca[_0x200e98('0x1e')][_0x3cf8c6['id']][_0x200e98('0xe')](),_0x4cecca[_0x200e98('0x1e')][_0x3cf8c6['id']]['updateRealtime']();}}return _0x4cecca['whatsappQueues'];};},module[_0x38d74a('0x0')]=Realtime; \ No newline at end of file diff --git a/server/services/routing/rpc/chatInteraction.js b/server/services/routing/rpc/chatInteraction.js index 9029121..f2cac0d 100644 --- a/server/services/routing/rpc/chatInteraction.js +++ b/server/services/routing/rpc/chatInteraction.js @@ -1 +1 @@ -const a1173_0xb4a6=['Request','../client','updateChatInteraction','AddTagsToChatInteraction','addTagsToChatInteraction','addTags','UpdateChatInteraction'];(function(_0x3b480a,_0xb4a693){const _0x4b3b66=function(_0x17abc5){while(--_0x17abc5){_0x3b480a['push'](_0x3b480a['shift']());}};_0x4b3b66(++_0xb4a693);}(a1173_0xb4a6,0x94));const a1173_0x4b3b=function(_0x3b480a,_0xb4a693){_0x3b480a=_0x3b480a-0x0;let _0x4b3b66=a1173_0xb4a6[_0x3b480a];return _0x4b3b66;};const _0x291f96=a1173_0x4b3b;'use strict';const client=require(_0x291f96('0x0'));exports['update']=function(_0x17abc5,_0x4d9351){const _0x41ac94=_0x291f96;return client[_0x41ac94('0x6')](_0x41ac94('0x5'),{'body':_0x4d9351,'options':{'where':{'id':_0x17abc5}},'log':_0x41ac94('0x1')});},exports[_0x291f96('0x4')]=function(_0x3cac06,_0x501a92){const _0x1972a0=_0x291f96;return client['Request'](_0x1972a0('0x2'),{'body':_0x501a92,'options':{'where':{'id':_0x3cac06}},'log':_0x1972a0('0x3')});}; \ No newline at end of file +const a1173_0x1634=['UpdateChatInteraction','AddTagsToChatInteraction','../client','Request','addTags'];(function(_0x2c64b6,_0x163400){const _0x33ba9f=function(_0x4e9547){while(--_0x4e9547){_0x2c64b6['push'](_0x2c64b6['shift']());}};_0x33ba9f(++_0x163400);}(a1173_0x1634,0x1f0));const a1173_0x33ba=function(_0x2c64b6,_0x163400){_0x2c64b6=_0x2c64b6-0x0;let _0x33ba9f=a1173_0x1634[_0x2c64b6];return _0x33ba9f;};const _0x5931c0=a1173_0x33ba;'use strict';const client=require(_0x5931c0('0x1'));exports['update']=function(_0x4e9547,_0x1cc8ed){const _0x24592b=_0x5931c0;return client[_0x24592b('0x2')](_0x24592b('0x4'),{'body':_0x1cc8ed,'options':{'where':{'id':_0x4e9547}},'log':'updateChatInteraction'});},exports[_0x5931c0('0x3')]=function(_0x5caa2c,_0x3b87a5){const _0x383dc5=_0x5931c0;return client[_0x383dc5('0x2')](_0x383dc5('0x0'),{'body':_0x3b87a5,'options':{'where':{'id':_0x5caa2c}},'log':'addTagsToChatInteraction'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatMessage.js b/server/services/routing/rpc/chatMessage.js index e82bfe0..7de45e5 100644 --- a/server/services/routing/rpc/chatMessage.js +++ b/server/services/routing/rpc/chatMessage.js @@ -1 +1 @@ -const a1174_0x93a2=['CreateChatMessage','createChatMessage','Request','create'];(function(_0x5134d0,_0x93a24b){const _0x149636=function(_0xb5b853){while(--_0xb5b853){_0x5134d0['push'](_0x5134d0['shift']());}};_0x149636(++_0x93a24b);}(a1174_0x93a2,0x10c));const a1174_0x1496=function(_0x5134d0,_0x93a24b){_0x5134d0=_0x5134d0-0x0;let _0x149636=a1174_0x93a2[_0x5134d0];return _0x149636;};const _0x41b109=a1174_0x1496;'use strict';const client=require('../client');exports[_0x41b109('0x3')]=function(_0xb5b853){const _0x3e997c=_0x41b109;return client[_0x3e997c('0x2')](_0x3e997c('0x0'),{'body':_0xb5b853,'log':_0x3e997c('0x1')});}; \ No newline at end of file +const a1174_0x3378=['Request','createChatMessage','../client','CreateChatMessage','create'];(function(_0xba1f69,_0x3378d2){const _0x237196=function(_0x2b1dcd){while(--_0x2b1dcd){_0xba1f69['push'](_0xba1f69['shift']());}};_0x237196(++_0x3378d2);}(a1174_0x3378,0xe6));const a1174_0x2371=function(_0xba1f69,_0x3378d2){_0xba1f69=_0xba1f69-0x0;let _0x237196=a1174_0x3378[_0xba1f69];return _0x237196;};const _0x316b01=a1174_0x2371;'use strict';const client=require(_0x316b01('0x2'));exports[_0x316b01('0x4')]=function(_0x2b1dcd){const _0x497254=_0x316b01;return client[_0x497254('0x0')](_0x497254('0x3'),{'body':_0x2b1dcd,'log':_0x497254('0x1')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatQueue.js b/server/services/routing/rpc/chatQueue.js index c3a4d35..c04e023 100644 --- a/server/services/routing/rpc/chatQueue.js +++ b/server/services/routing/rpc/chatQueue.js @@ -1 +1 @@ -const a1175_0x4c1d=['strategy','GetChatQueue','timeout','Request','getChatQueues','User','chatPause','name','Agents'];(function(_0x9c3dcf,_0x4c1dda){const _0x3198c8=function(_0x47f83b){while(--_0x47f83b){_0x9c3dcf['push'](_0x9c3dcf['shift']());}};_0x3198c8(++_0x4c1dda);}(a1175_0x4c1d,0xda));const a1175_0x3198=function(_0x9c3dcf,_0x4c1dda){_0x9c3dcf=_0x9c3dcf-0x0;let _0x3198c8=a1175_0x4c1d[_0x9c3dcf];return _0x3198c8;};const _0x6c357c=a1175_0x3198;'use strict';const client=require('../client');exports[_0x6c357c('0x2')]=function(){return function(){const _0xf12641=a1175_0x3198;return client[_0xf12641('0x1')](_0xf12641('0x8'),{'options':{'raw':![],'attributes':['id','name',_0xf12641('0x0'),_0xf12641('0x7')],'include':[{'model':_0xf12641('0x3'),'as':_0xf12641('0x6'),'attributes':['id',_0xf12641('0x5'),'online',_0xf12641('0x4')]}]},'log':_0xf12641('0x2')});};}; \ No newline at end of file +const a1175_0x2ab1=['getChatQueues','../client','Agents','User','timeout','GetChatQueue','name','Request','chatPause'];(function(_0x2349cb,_0x2ab1a8){const _0x5d2aa9=function(_0x143d99){while(--_0x143d99){_0x2349cb['push'](_0x2349cb['shift']());}};_0x5d2aa9(++_0x2ab1a8);}(a1175_0x2ab1,0x83));const a1175_0x5d2a=function(_0x2349cb,_0x2ab1a8){_0x2349cb=_0x2349cb-0x0;let _0x5d2aa9=a1175_0x2ab1[_0x2349cb];return _0x5d2aa9;};const _0x35bf11=a1175_0x5d2a;'use strict';const client=require(_0x35bf11('0x5'));exports['getChatQueues']=function(){return function(){const _0x3b213a=a1175_0x5d2a;return client[_0x3b213a('0x2')](_0x3b213a('0x0'),{'options':{'raw':![],'attributes':['id','name',_0x3b213a('0x8'),'strategy'],'include':[{'model':_0x3b213a('0x7'),'as':_0x3b213a('0x6'),'attributes':['id',_0x3b213a('0x1'),'online',_0x3b213a('0x3')]}]},'log':_0x3b213a('0x4')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatQueueReport.js b/server/services/routing/rpc/chatQueueReport.js index 9bd4ec9..391c07f 100644 --- a/server/services/routing/rpc/chatQueueReport.js +++ b/server/services/routing/rpc/chatQueueReport.js @@ -1 +1 @@ -const a1176_0x1d80=['update','create','CreateChatQueueReport','DESC','UpdateChatQueueReport','Request'];(function(_0x3d65d3,_0x1d80c4){const _0x448db2=function(_0x1d966a){while(--_0x1d966a){_0x3d65d3['push'](_0x3d65d3['shift']());}};_0x448db2(++_0x1d80c4);}(a1176_0x1d80,0x75));const a1176_0x448d=function(_0x3d65d3,_0x1d80c4){_0x3d65d3=_0x3d65d3-0x0;let _0x448db2=a1176_0x1d80[_0x3d65d3];return _0x448db2;};const _0x502280=a1176_0x448d;'use strict';const client=require('../client');exports[_0x502280('0x4')]=function(_0x1d966a){const _0x4730de=_0x502280;return client[_0x4730de('0x2')]('CreateChatQueueReport',{'body':_0x1d966a,'log':_0x4730de('0x5')});},exports[_0x502280('0x3')]=function(_0x1daa42,_0x23ef6d){const _0x10e3cf=_0x502280;return client[_0x10e3cf('0x2')]('UpdateChatQueueReport',{'body':_0x23ef6d,'options':{'where':{'uniqueid':_0x1daa42},'order':[['id',_0x10e3cf('0x0')]],'limit':0x1},'log':_0x10e3cf('0x1')});}; \ No newline at end of file +const a1176_0xc62c=['update','Request','CreateChatQueueReport','../client','create','UpdateChatQueueReport'];(function(_0x41a818,_0xc62ca1){const _0x1d2828=function(_0x109028){while(--_0x109028){_0x41a818['push'](_0x41a818['shift']());}};_0x1d2828(++_0xc62ca1);}(a1176_0xc62c,0x10e));const a1176_0x1d28=function(_0x41a818,_0xc62ca1){_0x41a818=_0x41a818-0x0;let _0x1d2828=a1176_0xc62c[_0x41a818];return _0x1d2828;};const _0x3f5853=a1176_0x1d28;'use strict';const client=require(_0x3f5853('0x3'));exports[_0x3f5853('0x4')]=function(_0x109028){const _0x524cbf=_0x3f5853;return client[_0x524cbf('0x1')](_0x524cbf('0x2'),{'body':_0x109028,'log':_0x524cbf('0x2')});},exports[_0x3f5853('0x0')]=function(_0x287865,_0x3667f7){const _0x3be504=_0x3f5853;return client[_0x3be504('0x1')](_0x3be504('0x5'),{'body':_0x3667f7,'options':{'where':{'uniqueid':_0x287865},'order':[['id','DESC']],'limit':0x1},'log':_0x3be504('0x5')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxInteraction.js b/server/services/routing/rpc/faxInteraction.js index 8e66b1d..6dc9f06 100644 --- a/server/services/routing/rpc/faxInteraction.js +++ b/server/services/routing/rpc/faxInteraction.js @@ -1 +1 @@ -const a1177_0x2f37=['UpdateFaxInteraction','Request','../client','addTagsToFaxInteraction','update'];(function(_0x358645,_0x2f37de){const _0xe3cbf1=function(_0x5578ed){while(--_0x5578ed){_0x358645['push'](_0x358645['shift']());}};_0xe3cbf1(++_0x2f37de);}(a1177_0x2f37,0x13d));const a1177_0xe3cb=function(_0x358645,_0x2f37de){_0x358645=_0x358645-0x0;let _0xe3cbf1=a1177_0x2f37[_0x358645];return _0xe3cbf1;};const _0x3ba69b=a1177_0xe3cb;'use strict';const client=require(_0x3ba69b('0x0'));exports[_0x3ba69b('0x2')]=function(_0x5578ed,_0x12e6a5){const _0x7efa64=_0x3ba69b;return client[_0x7efa64('0x4')](_0x7efa64('0x3'),{'body':_0x12e6a5,'options':{'where':{'id':_0x5578ed}},'log':'updateFaxInteraction'});},exports['addTags']=function(_0x50a28b,_0x24c964){const _0xc5fa22=_0x3ba69b;return client[_0xc5fa22('0x4')]('AddTagsToFaxInteraction',{'body':_0x24c964,'options':{'where':{'id':_0x50a28b}},'log':_0xc5fa22('0x1')});}; \ No newline at end of file +const a1177_0x3441=['Request','addTagsToFaxInteraction','addTags','../client','update'];(function(_0x2ffbcf,_0x344160){const _0x223e16=function(_0x4ba278){while(--_0x4ba278){_0x2ffbcf['push'](_0x2ffbcf['shift']());}};_0x223e16(++_0x344160);}(a1177_0x3441,0x67));const a1177_0x223e=function(_0x2ffbcf,_0x344160){_0x2ffbcf=_0x2ffbcf-0x0;let _0x223e16=a1177_0x3441[_0x2ffbcf];return _0x223e16;};const _0x22d23=a1177_0x223e;'use strict';const client=require(_0x22d23('0x0'));exports[_0x22d23('0x1')]=function(_0x4ba278,_0x3b4929){const _0xe27532=_0x22d23;return client[_0xe27532('0x2')]('UpdateFaxInteraction',{'body':_0x3b4929,'options':{'where':{'id':_0x4ba278}},'log':'updateFaxInteraction'});},exports[_0x22d23('0x4')]=function(_0x169dc6,_0x2ebd75){const _0x53fbcf=_0x22d23;return client[_0x53fbcf('0x2')]('AddTagsToFaxInteraction',{'body':_0x2ebd75,'options':{'where':{'id':_0x169dc6}},'log':_0x53fbcf('0x3')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxMessage.js b/server/services/routing/rpc/faxMessage.js index a83db91..aaa4644 100644 --- a/server/services/routing/rpc/faxMessage.js +++ b/server/services/routing/rpc/faxMessage.js @@ -1 +1 @@ -const a1178_0x48c5=['createFaxMessage','CreateFaxMessage','../client','Request'];(function(_0x43a1b4,_0x48c56b){const _0x24447f=function(_0x146950){while(--_0x146950){_0x43a1b4['push'](_0x43a1b4['shift']());}};_0x24447f(++_0x48c56b);}(a1178_0x48c5,0x1b5));const a1178_0x2444=function(_0x43a1b4,_0x48c56b){_0x43a1b4=_0x43a1b4-0x0;let _0x24447f=a1178_0x48c5[_0x43a1b4];return _0x24447f;};const _0x2e8838=a1178_0x2444;'use strict';const client=require(_0x2e8838('0x1'));exports['create']=function(_0x146950){const _0x4a675a=_0x2e8838;return client[_0x4a675a('0x2')](_0x4a675a('0x0'),{'body':_0x146950,'log':_0x4a675a('0x3')});}; \ No newline at end of file +const a1178_0x364c=['create','CreateFaxMessage','Request','../client'];(function(_0x5de777,_0x364c96){const _0xa4eb7d=function(_0x386ebe){while(--_0x386ebe){_0x5de777['push'](_0x5de777['shift']());}};_0xa4eb7d(++_0x364c96);}(a1178_0x364c,0x68));const a1178_0xa4eb=function(_0x5de777,_0x364c96){_0x5de777=_0x5de777-0x0;let _0xa4eb7d=a1178_0x364c[_0x5de777];return _0xa4eb7d;};const _0x41419f=a1178_0xa4eb;'use strict';const client=require(_0x41419f('0x3'));exports[_0x41419f('0x0')]=function(_0x386ebe){const _0x384117=_0x41419f;return client[_0x384117('0x2')](_0x384117('0x1'),{'body':_0x386ebe,'log':'createFaxMessage'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxQueue.js b/server/services/routing/rpc/faxQueue.js index bec46b7..bbd5471 100644 --- a/server/services/routing/rpc/faxQueue.js +++ b/server/services/routing/rpc/faxQueue.js @@ -1 +1 @@ -const a1179_0x29d0=['GetFaxQueue','strategy','../client','getFaxQueues','Request','faxPause','timeout','name','User','Agents'];(function(_0x829f05,_0x29d071){const _0x2d55ba=function(_0x266185){while(--_0x266185){_0x829f05['push'](_0x829f05['shift']());}};_0x2d55ba(++_0x29d071);}(a1179_0x29d0,0x68));const a1179_0x2d55=function(_0x829f05,_0x29d071){_0x829f05=_0x829f05-0x0;let _0x2d55ba=a1179_0x29d0[_0x829f05];return _0x2d55ba;};const _0x2454a7=a1179_0x2d55;'use strict';const client=require(_0x2454a7('0x8'));exports[_0x2454a7('0x9')]=function(){return function(){const _0x3f225d=a1179_0x2d55;return client[_0x3f225d('0x0')](_0x3f225d('0x6'),{'options':{'raw':![],'attributes':['id',_0x3f225d('0x3'),_0x3f225d('0x2'),_0x3f225d('0x7')],'include':[{'model':_0x3f225d('0x4'),'as':_0x3f225d('0x5'),'attributes':['id',_0x3f225d('0x3'),'online',_0x3f225d('0x1')]}]},'log':_0x3f225d('0x9')});};}; \ No newline at end of file +const a1179_0xd907=['../client','timeout','online','getFaxQueues','GetFaxQueue','User','name'];(function(_0x5413ba,_0xd907c6){const _0x5eaffc=function(_0x418f04){while(--_0x418f04){_0x5413ba['push'](_0x5413ba['shift']());}};_0x5eaffc(++_0xd907c6);}(a1179_0xd907,0xed));const a1179_0x5eaf=function(_0x5413ba,_0xd907c6){_0x5413ba=_0x5413ba-0x0;let _0x5eaffc=a1179_0xd907[_0x5413ba];return _0x5eaffc;};const _0xeb8f46=a1179_0x5eaf;'use strict';const client=require(_0xeb8f46('0x1'));exports[_0xeb8f46('0x4')]=function(){return function(){const _0x4dd8ba=a1179_0x5eaf;return client['Request'](_0x4dd8ba('0x5'),{'options':{'raw':![],'attributes':['id',_0x4dd8ba('0x0'),_0x4dd8ba('0x2'),'strategy'],'include':[{'model':_0x4dd8ba('0x6'),'as':'Agents','attributes':['id',_0x4dd8ba('0x0'),_0x4dd8ba('0x3'),'faxPause']}]},'log':_0x4dd8ba('0x4')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxQueueReport.js b/server/services/routing/rpc/faxQueueReport.js index fff2bc8..b734a38 100644 --- a/server/services/routing/rpc/faxQueueReport.js +++ b/server/services/routing/rpc/faxQueueReport.js @@ -1 +1 @@ -const a1180_0x5f58=['../client','DESC','UpdateFaxQueueReport','update','CreateFaxQueueReport','Request'];(function(_0x152af2,_0x5f5871){const _0x3e78fb=function(_0xc7ad47){while(--_0xc7ad47){_0x152af2['push'](_0x152af2['shift']());}};_0x3e78fb(++_0x5f5871);}(a1180_0x5f58,0x6b));const a1180_0x3e78=function(_0x152af2,_0x5f5871){_0x152af2=_0x152af2-0x0;let _0x3e78fb=a1180_0x5f58[_0x152af2];return _0x3e78fb;};const _0x48768e=a1180_0x3e78;'use strict';const client=require(_0x48768e('0x1'));exports['create']=function(_0xc7ad47){const _0x2c71ce=_0x48768e;return client['Request'](_0x2c71ce('0x5'),{'body':_0xc7ad47,'log':_0x2c71ce('0x5')});},exports[_0x48768e('0x4')]=function(_0x18b7e0,_0xaf3a06){const _0x395ce1=_0x48768e;return client[_0x395ce1('0x0')](_0x395ce1('0x3'),{'body':_0xaf3a06,'options':{'where':{'uniqueid':_0x18b7e0},'order':[['id',_0x395ce1('0x2')]],'limit':0x1},'log':_0x395ce1('0x3')});}; \ No newline at end of file +const a1180_0x8d2a=['DESC','../client','update','create','CreateFaxQueueReport','UpdateFaxQueueReport','Request'];(function(_0x1661ec,_0x8d2abb){const _0xc34fb5=function(_0x260f69){while(--_0x260f69){_0x1661ec['push'](_0x1661ec['shift']());}};_0xc34fb5(++_0x8d2abb);}(a1180_0x8d2a,0x134));const a1180_0xc34f=function(_0x1661ec,_0x8d2abb){_0x1661ec=_0x1661ec-0x0;let _0xc34fb5=a1180_0x8d2a[_0x1661ec];return _0xc34fb5;};const _0x40eeba=a1180_0xc34f;'use strict';const client=require(_0x40eeba('0x1'));exports[_0x40eeba('0x3')]=function(_0x260f69){const _0x5b4554=_0x40eeba;return client['Request'](_0x5b4554('0x4'),{'body':_0x260f69,'log':'CreateFaxQueueReport'});},exports[_0x40eeba('0x2')]=function(_0x3add74,_0x1ca781){const _0x3f458=_0x40eeba;return client[_0x3f458('0x6')](_0x3f458('0x5'),{'body':_0x1ca781,'options':{'where':{'uniqueid':_0x3add74},'order':[['id',_0x3f458('0x0')]],'limit':0x1},'log':_0x3f458('0x5')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/interval.js b/server/services/routing/rpc/interval.js index 59ae122..de5317e 100644 --- a/server/services/routing/rpc/interval.js +++ b/server/services/routing/rpc/interval.js @@ -1 +1 @@ -const a1181_0x521a=['Interval','GetInterval','../client','Request','Intervals','name'];(function(_0x4a7765,_0x521ada){const _0x33adf9=function(_0xdcd3df){while(--_0xdcd3df){_0x4a7765['push'](_0x4a7765['shift']());}};_0x33adf9(++_0x521ada);}(a1181_0x521a,0x90));const a1181_0x33ad=function(_0x4a7765,_0x521ada){_0x4a7765=_0x4a7765-0x0;let _0x33adf9=a1181_0x521a[_0x4a7765];return _0x33adf9;};const _0x22692b=a1181_0x33ad;'use strict';const client=require(_0x22692b('0x2'));exports['getIntervals']=function(){return function(){const _0x28cbb8=a1181_0x33ad;return client[_0x28cbb8('0x3')](_0x28cbb8('0x1'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x28cbb8('0x5')],'include':[{'model':_0x28cbb8('0x0'),'as':_0x28cbb8('0x4'),'attributes':['id',_0x28cbb8('0x5'),'interval']}]},'log':'getIntervals'});};}; \ No newline at end of file +const a1181_0x4d03=['name','GetInterval','Request','Interval','Intervals','../client','getIntervals','interval'];(function(_0x10241e,_0x4d039c){const _0x38e56c=function(_0x331234){while(--_0x331234){_0x10241e['push'](_0x10241e['shift']());}};_0x38e56c(++_0x4d039c);}(a1181_0x4d03,0xd1));const a1181_0x38e5=function(_0x10241e,_0x4d039c){_0x10241e=_0x10241e-0x0;let _0x38e56c=a1181_0x4d03[_0x10241e];return _0x38e56c;};const _0x674f48=a1181_0x38e5;'use strict';const client=require(_0x674f48('0x4'));exports[_0x674f48('0x5')]=function(){return function(){const _0x353782=a1181_0x38e5;return client[_0x353782('0x1')](_0x353782('0x0'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x353782('0x7')],'include':[{'model':_0x353782('0x2'),'as':_0x353782('0x3'),'attributes':['id',_0x353782('0x7'),_0x353782('0x6')]}]},'log':'getIntervals'});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailInteraction.js b/server/services/routing/rpc/mailInteraction.js index 15f1850..bd08367 100644 --- a/server/services/routing/rpc/mailInteraction.js +++ b/server/services/routing/rpc/mailInteraction.js @@ -1 +1 @@ -const a1182_0x1547=['AddTagsToMailInteraction'];(function(_0x536a7b,_0x154743){const _0x4e73f3=function(_0x12185e){while(--_0x12185e){_0x536a7b['push'](_0x536a7b['shift']());}};_0x4e73f3(++_0x154743);}(a1182_0x1547,0x12d));const a1182_0x4e73=function(_0x536a7b,_0x154743){_0x536a7b=_0x536a7b-0x0;let _0x4e73f3=a1182_0x1547[_0x536a7b];return _0x4e73f3;};'use strict';const client=require('../client');exports['update']=function(_0x12185e,_0x7ba93b){return client['Request']('UpdateMailInteraction',{'body':_0x7ba93b,'options':{'where':{'id':_0x12185e}},'log':'updateMailInteraction'});},exports['addTags']=function(_0x54b100,_0x5b28bf){const _0x136f93=a1182_0x4e73;return client['Request'](_0x136f93('0x0'),{'body':_0x5b28bf,'options':{'where':{'id':_0x54b100}},'log':'addTagsToChatInteraction'});}; \ No newline at end of file +const a1182_0x2b73=['addTagsToChatInteraction','../client','updateMailInteraction','addTags','UpdateMailInteraction','Request','AddTagsToMailInteraction'];(function(_0x3b2a52,_0x2b731b){const _0x14f8f4=function(_0x3559f6){while(--_0x3559f6){_0x3b2a52['push'](_0x3b2a52['shift']());}};_0x14f8f4(++_0x2b731b);}(a1182_0x2b73,0x80));const a1182_0x14f8=function(_0x3b2a52,_0x2b731b){_0x3b2a52=_0x3b2a52-0x0;let _0x14f8f4=a1182_0x2b73[_0x3b2a52];return _0x14f8f4;};const _0x4351c7=a1182_0x14f8;'use strict';const client=require(_0x4351c7('0x6'));exports['update']=function(_0x3559f6,_0x561ec0){const _0x5e2cb0=_0x4351c7;return client[_0x5e2cb0('0x3')](_0x5e2cb0('0x2'),{'body':_0x561ec0,'options':{'where':{'id':_0x3559f6}},'log':_0x5e2cb0('0x0')});},exports[_0x4351c7('0x1')]=function(_0x5960c0,_0x4afef3){const _0x5a4956=_0x4351c7;return client[_0x5a4956('0x3')](_0x5a4956('0x4'),{'body':_0x4afef3,'options':{'where':{'id':_0x5960c0}},'log':_0x5a4956('0x5')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailMessage.js b/server/services/routing/rpc/mailMessage.js index 86f8f94..2621fd1 100644 --- a/server/services/routing/rpc/mailMessage.js +++ b/server/services/routing/rpc/mailMessage.js @@ -1 +1 @@ -const a1183_0x1525=['../client','createMailMessage','create','Request'];(function(_0x1b7acb,_0x152536){const _0x3704c8=function(_0x25e6d0){while(--_0x25e6d0){_0x1b7acb['push'](_0x1b7acb['shift']());}};_0x3704c8(++_0x152536);}(a1183_0x1525,0x11a));const a1183_0x3704=function(_0x1b7acb,_0x152536){_0x1b7acb=_0x1b7acb-0x0;let _0x3704c8=a1183_0x1525[_0x1b7acb];return _0x3704c8;};const _0x1eb65e=a1183_0x3704;'use strict';const client=require(_0x1eb65e('0x2'));exports[_0x1eb65e('0x0')]=function(_0x25e6d0){const _0x2bb5dc=_0x1eb65e;return client[_0x2bb5dc('0x1')]('CreateMailMessage',{'body':_0x25e6d0,'log':_0x2bb5dc('0x3')});}; \ No newline at end of file +const a1183_0x2a8e=['create','CreateMailMessage','createMailMessage'];(function(_0xcb0277,_0x2a8e8f){const _0x261a3d=function(_0x18b93a){while(--_0x18b93a){_0xcb0277['push'](_0xcb0277['shift']());}};_0x261a3d(++_0x2a8e8f);}(a1183_0x2a8e,0x7d));const a1183_0x261a=function(_0xcb0277,_0x2a8e8f){_0xcb0277=_0xcb0277-0x0;let _0x261a3d=a1183_0x2a8e[_0xcb0277];return _0x261a3d;};const _0x326b68=a1183_0x261a;'use strict';const client=require('../client');exports[_0x326b68('0x1')]=function(_0x18b93a){const _0x12cd65=_0x326b68;return client['Request'](_0x12cd65('0x2'),{'body':_0x18b93a,'log':_0x12cd65('0x0')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailQueue.js b/server/services/routing/rpc/mailQueue.js index 0a300fa..f7f113f 100644 --- a/server/services/routing/rpc/mailQueue.js +++ b/server/services/routing/rpc/mailQueue.js @@ -1 +1 @@ -const a1184_0x4a28=['Request','mailPause','../client','Agents','getMailQueues','User','name'];(function(_0x41b495,_0x4a281f){const _0x49bcd3=function(_0x3c478d){while(--_0x3c478d){_0x41b495['push'](_0x41b495['shift']());}};_0x49bcd3(++_0x4a281f);}(a1184_0x4a28,0xbb));const a1184_0x49bc=function(_0x41b495,_0x4a281f){_0x41b495=_0x41b495-0x0;let _0x49bcd3=a1184_0x4a28[_0x41b495];return _0x49bcd3;};const _0x605e27=a1184_0x49bc;'use strict';const client=require(_0x605e27('0x4'));exports[_0x605e27('0x6')]=function(){return function(){const _0x4fa794=a1184_0x49bc;return client[_0x4fa794('0x2')]('GetMailQueue',{'options':{'raw':![],'attributes':['id','name','timeout','strategy'],'include':[{'model':_0x4fa794('0x0'),'as':_0x4fa794('0x5'),'attributes':['id',_0x4fa794('0x1'),'online',_0x4fa794('0x3')]}]},'log':'getMailQueues'});};}; \ No newline at end of file +const a1184_0x7ea8=['timeout','../client','strategy','getMailQueues','User','name','mailPause','online'];(function(_0xce7c89,_0x7ea8bd){const _0x1a2de1=function(_0x201417){while(--_0x201417){_0xce7c89['push'](_0xce7c89['shift']());}};_0x1a2de1(++_0x7ea8bd);}(a1184_0x7ea8,0x185));const a1184_0x1a2d=function(_0xce7c89,_0x7ea8bd){_0xce7c89=_0xce7c89-0x0;let _0x1a2de1=a1184_0x7ea8[_0xce7c89];return _0x1a2de1;};const _0x5aa4a0=a1184_0x1a2d;'use strict';const client=require(_0x5aa4a0('0x4'));exports[_0x5aa4a0('0x6')]=function(){return function(){const _0x47099e=a1184_0x1a2d;return client['Request']('GetMailQueue',{'options':{'raw':![],'attributes':['id',_0x47099e('0x0'),_0x47099e('0x3'),_0x47099e('0x5')],'include':[{'model':_0x47099e('0x7'),'as':'Agents','attributes':['id',_0x47099e('0x0'),_0x47099e('0x2'),_0x47099e('0x1')]}]},'log':_0x47099e('0x6')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailQueueReport.js b/server/services/routing/rpc/mailQueueReport.js index 21ec923..e054cab 100644 --- a/server/services/routing/rpc/mailQueueReport.js +++ b/server/services/routing/rpc/mailQueueReport.js @@ -1 +1 @@ -const a1185_0x28dd=['DESC','CreateMailQueueReport','update','../client','UpdateMailQueueReport','Request','create'];(function(_0x16b33,_0x28ddce){const _0x482e03=function(_0x3f4b37){while(--_0x3f4b37){_0x16b33['push'](_0x16b33['shift']());}};_0x482e03(++_0x28ddce);}(a1185_0x28dd,0xb0));const a1185_0x482e=function(_0x16b33,_0x28ddce){_0x16b33=_0x16b33-0x0;let _0x482e03=a1185_0x28dd[_0x16b33];return _0x482e03;};const _0x5d1059=a1185_0x482e;'use strict';const client=require(_0x5d1059('0x2'));exports[_0x5d1059('0x5')]=function(_0x3f4b37){const _0x343f9e=_0x5d1059;return client[_0x343f9e('0x4')](_0x343f9e('0x0'),{'body':_0x3f4b37,'log':_0x343f9e('0x0')});},exports[_0x5d1059('0x1')]=function(_0x847c41,_0x417c93){const _0x7ac33=_0x5d1059;return client[_0x7ac33('0x4')](_0x7ac33('0x3'),{'body':_0x417c93,'options':{'where':{'uniqueid':_0x847c41},'order':[['id',_0x7ac33('0x6')]],'limit':0x1},'log':_0x7ac33('0x3')});}; \ No newline at end of file +const a1185_0x4d5a=['create','UpdateMailQueueReport','CreateMailQueueReport','Request','DESC','../client'];(function(_0x305e57,_0x4d5aee){const _0x3a4b78=function(_0x3b99f5){while(--_0x3b99f5){_0x305e57['push'](_0x305e57['shift']());}};_0x3a4b78(++_0x4d5aee);}(a1185_0x4d5a,0x126));const a1185_0x3a4b=function(_0x305e57,_0x4d5aee){_0x305e57=_0x305e57-0x0;let _0x3a4b78=a1185_0x4d5a[_0x305e57];return _0x3a4b78;};const _0x123fc2=a1185_0x3a4b;'use strict';const client=require(_0x123fc2('0x5'));exports[_0x123fc2('0x0')]=function(_0x3b99f5){const _0x4d3f6e=_0x123fc2;return client[_0x4d3f6e('0x3')]('CreateMailQueueReport',{'body':_0x3b99f5,'log':_0x4d3f6e('0x2')});},exports['update']=function(_0x297bc8,_0x1c72c4){const _0x4e3cb8=_0x123fc2;return client['Request'](_0x4e3cb8('0x1'),{'body':_0x1c72c4,'options':{'where':{'uniqueid':_0x297bc8},'order':[['id',_0x4e3cb8('0x4')]],'limit':0x1},'log':_0x4e3cb8('0x1')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelInteraction.js b/server/services/routing/rpc/openchannelInteraction.js index 74c5aec..a11511c 100644 --- a/server/services/routing/rpc/openchannelInteraction.js +++ b/server/services/routing/rpc/openchannelInteraction.js @@ -1 +1 @@ -const a1186_0x5a7c=['AddTagsToOpenchannelInteraction','update','addTagsToChatInteraction','Request','updateOpenchannelInteraction','../client','UpdateOpenchannelInteraction'];(function(_0x3b133a,_0x5a7cc9){const _0x3c2aa1=function(_0x13a12b){while(--_0x13a12b){_0x3b133a['push'](_0x3b133a['shift']());}};_0x3c2aa1(++_0x5a7cc9);}(a1186_0x5a7c,0xf0));const a1186_0x3c2a=function(_0x3b133a,_0x5a7cc9){_0x3b133a=_0x3b133a-0x0;let _0x3c2aa1=a1186_0x5a7c[_0x3b133a];return _0x3c2aa1;};const _0x5e9c11=a1186_0x3c2a;'use strict';const client=require(_0x5e9c11('0x3'));exports[_0x5e9c11('0x6')]=function(_0x13a12b,_0x45505e){const _0x3a2094=_0x5e9c11;return client[_0x3a2094('0x1')](_0x3a2094('0x4'),{'body':_0x45505e,'options':{'where':{'id':_0x13a12b}},'log':_0x3a2094('0x2')});},exports['addTags']=function(_0x1681be,_0xcc9ac6){const _0x45d313=_0x5e9c11;return client[_0x45d313('0x1')](_0x45d313('0x5'),{'body':_0xcc9ac6,'options':{'where':{'id':_0x1681be}},'log':_0x45d313('0x0')});}; \ No newline at end of file +const a1186_0x4328=['UpdateOpenchannelInteraction','addTags','addTagsToChatInteraction','Request','../client','AddTagsToOpenchannelInteraction'];(function(_0x4a1fb3,_0x4328b1){const _0x3ca873=function(_0xbb75d7){while(--_0xbb75d7){_0x4a1fb3['push'](_0x4a1fb3['shift']());}};_0x3ca873(++_0x4328b1);}(a1186_0x4328,0x6f));const a1186_0x3ca8=function(_0x4a1fb3,_0x4328b1){_0x4a1fb3=_0x4a1fb3-0x0;let _0x3ca873=a1186_0x4328[_0x4a1fb3];return _0x3ca873;};const _0x115f3c=a1186_0x3ca8;'use strict';const client=require(_0x115f3c('0x1'));exports['update']=function(_0xbb75d7,_0x13617b){const _0x561b98=_0x115f3c;return client[_0x561b98('0x0')](_0x561b98('0x3'),{'body':_0x13617b,'options':{'where':{'id':_0xbb75d7}},'log':'updateOpenchannelInteraction'});},exports[_0x115f3c('0x4')]=function(_0x2437a8,_0x140fbf){const _0x409821=_0x115f3c;return client[_0x409821('0x0')](_0x409821('0x2'),{'body':_0x140fbf,'options':{'where':{'id':_0x2437a8}},'log':_0x409821('0x5')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelMessage.js b/server/services/routing/rpc/openchannelMessage.js index ee58fb1..454330c 100644 --- a/server/services/routing/rpc/openchannelMessage.js +++ b/server/services/routing/rpc/openchannelMessage.js @@ -1 +1 @@ -const a1187_0x260e=['createOpenchannelMessage','Request','CreateOpenchannelMessage','../client'];(function(_0x4511ca,_0x260ede){const _0x92f9a2=function(_0x4250de){while(--_0x4250de){_0x4511ca['push'](_0x4511ca['shift']());}};_0x92f9a2(++_0x260ede);}(a1187_0x260e,0x100));const a1187_0x92f9=function(_0x4511ca,_0x260ede){_0x4511ca=_0x4511ca-0x0;let _0x92f9a2=a1187_0x260e[_0x4511ca];return _0x92f9a2;};const _0x390f58=a1187_0x92f9;'use strict';const client=require(_0x390f58('0x3'));exports['create']=function(_0x4250de){const _0x4544b8=_0x390f58;return client[_0x4544b8('0x1')](_0x4544b8('0x2'),{'body':_0x4250de,'log':_0x4544b8('0x0')});}; \ No newline at end of file +const a1187_0xc0dd=['../client','createOpenchannelMessage','Request','create'];(function(_0x189e19,_0xc0dd04){const _0x1c3a56=function(_0x572489){while(--_0x572489){_0x189e19['push'](_0x189e19['shift']());}};_0x1c3a56(++_0xc0dd04);}(a1187_0xc0dd,0x1cd));const a1187_0x1c3a=function(_0x189e19,_0xc0dd04){_0x189e19=_0x189e19-0x0;let _0x1c3a56=a1187_0xc0dd[_0x189e19];return _0x1c3a56;};const _0x285bc4=a1187_0x1c3a;'use strict';const client=require(_0x285bc4('0x3'));exports[_0x285bc4('0x2')]=function(_0x572489){const _0x5c27ce=_0x285bc4;return client[_0x5c27ce('0x1')]('CreateOpenchannelMessage',{'body':_0x572489,'log':_0x5c27ce('0x0')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelQueue.js b/server/services/routing/rpc/openchannelQueue.js index 07d0460..85324c1 100644 --- a/server/services/routing/rpc/openchannelQueue.js +++ b/server/services/routing/rpc/openchannelQueue.js @@ -1 +1 @@ -const a1188_0x366b=['Agents','strategy','name','openchannelPause','getOpenchannelQueues','Request','User','../client','online'];(function(_0x4a42bb,_0x366bd3){const _0x170cae=function(_0x250c89){while(--_0x250c89){_0x4a42bb['push'](_0x4a42bb['shift']());}};_0x170cae(++_0x366bd3);}(a1188_0x366b,0x159));const a1188_0x170c=function(_0x4a42bb,_0x366bd3){_0x4a42bb=_0x4a42bb-0x0;let _0x170cae=a1188_0x366b[_0x4a42bb];return _0x170cae;};const _0x1a5b21=a1188_0x170c;'use strict';const client=require(_0x1a5b21('0x4'));exports[_0x1a5b21('0x1')]=function(){return function(){const _0x1e6626=a1188_0x170c;return client[_0x1e6626('0x2')]('GetOpenchannelQueue',{'options':{'raw':![],'attributes':['id',_0x1e6626('0x8'),'timeout',_0x1e6626('0x7')],'include':[{'model':_0x1e6626('0x3'),'as':_0x1e6626('0x6'),'attributes':['id','name',_0x1e6626('0x5'),_0x1e6626('0x0')]}]},'log':'getOpenchannelQueues'});};}; \ No newline at end of file +const a1188_0x4d4f=['online','name','timeout','openchannelPause','../client','Agents','strategy'];(function(_0x13edfc,_0x4d4f90){const _0x54cbff=function(_0x2957f2){while(--_0x2957f2){_0x13edfc['push'](_0x13edfc['shift']());}};_0x54cbff(++_0x4d4f90);}(a1188_0x4d4f,0x116));const a1188_0x54cb=function(_0x13edfc,_0x4d4f90){_0x13edfc=_0x13edfc-0x0;let _0x54cbff=a1188_0x4d4f[_0x13edfc];return _0x54cbff;};const _0x5c3af2=a1188_0x54cb;'use strict';const client=require(_0x5c3af2('0x6'));exports['getOpenchannelQueues']=function(){return function(){const _0x2bdf6c=a1188_0x54cb;return client['Request']('GetOpenchannelQueue',{'options':{'raw':![],'attributes':['id',_0x2bdf6c('0x3'),_0x2bdf6c('0x4'),_0x2bdf6c('0x1')],'include':[{'model':'User','as':_0x2bdf6c('0x0'),'attributes':['id',_0x2bdf6c('0x3'),_0x2bdf6c('0x2'),_0x2bdf6c('0x5')]}]},'log':'getOpenchannelQueues'});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelQueueReport.js b/server/services/routing/rpc/openchannelQueueReport.js index 167166f..28f361b 100644 --- a/server/services/routing/rpc/openchannelQueueReport.js +++ b/server/services/routing/rpc/openchannelQueueReport.js @@ -1 +1 @@ -const a1189_0x4680=['../client','CreateOpenchannelQueueReport','Request','UpdateOpenchannelQueueReport','update'];(function(_0x84a1b8,_0x468090){const _0x13cab4=function(_0x44e411){while(--_0x44e411){_0x84a1b8['push'](_0x84a1b8['shift']());}};_0x13cab4(++_0x468090);}(a1189_0x4680,0x1ac));const a1189_0x13ca=function(_0x84a1b8,_0x468090){_0x84a1b8=_0x84a1b8-0x0;let _0x13cab4=a1189_0x4680[_0x84a1b8];return _0x13cab4;};const _0x2bce01=a1189_0x13ca;'use strict';const client=require(_0x2bce01('0x2'));exports['create']=function(_0x44e411){const _0x4b9890=_0x2bce01;return client[_0x4b9890('0x4')](_0x4b9890('0x3'),{'body':_0x44e411,'log':_0x4b9890('0x3')});},exports[_0x2bce01('0x1')]=function(_0x5bef8a,_0x56b22c){const _0x2eb03a=_0x2bce01;return client['Request']('UpdateOpenchannelQueueReport',{'body':_0x56b22c,'options':{'where':{'uniqueid':_0x5bef8a},'order':[['id','DESC']],'limit':0x1},'log':_0x2eb03a('0x0')});}; \ No newline at end of file +const a1189_0x312e=['../client','CreateOpenchannelQueueReport','create','UpdateOpenchannelQueueReport','Request'];(function(_0x2d11dc,_0x312e76){const _0x1bd790=function(_0x38b124){while(--_0x38b124){_0x2d11dc['push'](_0x2d11dc['shift']());}};_0x1bd790(++_0x312e76);}(a1189_0x312e,0x137));const a1189_0x1bd7=function(_0x2d11dc,_0x312e76){_0x2d11dc=_0x2d11dc-0x0;let _0x1bd790=a1189_0x312e[_0x2d11dc];return _0x1bd790;};const _0xc45e60=a1189_0x1bd7;'use strict';const client=require(_0xc45e60('0x4'));exports[_0xc45e60('0x1')]=function(_0x38b124){const _0x209d87=_0xc45e60;return client['Request'](_0x209d87('0x0'),{'body':_0x38b124,'log':_0x209d87('0x0')});},exports['update']=function(_0xdc7fb5,_0x2a6455){const _0x1425ac=_0xc45e60;return client[_0x1425ac('0x3')](_0x1425ac('0x2'),{'body':_0x2a6455,'options':{'where':{'uniqueid':_0xdc7fb5},'order':[['id','DESC']],'limit':0x1},'log':'UpdateOpenchannelQueueReport'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsInteraction.js b/server/services/routing/rpc/smsInteraction.js index de52be7..190893f 100644 --- a/server/services/routing/rpc/smsInteraction.js +++ b/server/services/routing/rpc/smsInteraction.js @@ -1 +1 @@ -const a1190_0x5c0a=['UpdateSmsInteraction','updateSmsInteraction','update','AddTagsToSmsInteraction','Request','addTags','addTagsToSmsInteraction'];(function(_0x259f62,_0x5c0a41){const _0x239f1a=function(_0x3fbeeb){while(--_0x3fbeeb){_0x259f62['push'](_0x259f62['shift']());}};_0x239f1a(++_0x5c0a41);}(a1190_0x5c0a,0xc4));const a1190_0x239f=function(_0x259f62,_0x5c0a41){_0x259f62=_0x259f62-0x0;let _0x239f1a=a1190_0x5c0a[_0x259f62];return _0x239f1a;};const _0xc0aa57=a1190_0x239f;'use strict';const client=require('../client');exports[_0xc0aa57('0x2')]=function(_0x3fbeeb,_0x38931e){const _0x352e26=_0xc0aa57;return client[_0x352e26('0x4')](_0x352e26('0x0'),{'body':_0x38931e,'options':{'where':{'id':_0x3fbeeb}},'log':_0x352e26('0x1')});},exports[_0xc0aa57('0x5')]=function(_0x4e281c,_0x1e94fa){const _0x5e56e6=_0xc0aa57;return client['Request'](_0x5e56e6('0x3'),{'body':_0x1e94fa,'options':{'where':{'id':_0x4e281c}},'log':_0x5e56e6('0x6')});}; \ No newline at end of file +const a1190_0x5d45=['AddTagsToSmsInteraction','addTags','update','UpdateSmsInteraction','Request'];(function(_0x24fc80,_0x5d45c4){const _0x1e2f15=function(_0x5c9d0d){while(--_0x5c9d0d){_0x24fc80['push'](_0x24fc80['shift']());}};_0x1e2f15(++_0x5d45c4);}(a1190_0x5d45,0x1ef));const a1190_0x1e2f=function(_0x24fc80,_0x5d45c4){_0x24fc80=_0x24fc80-0x0;let _0x1e2f15=a1190_0x5d45[_0x24fc80];return _0x1e2f15;};const _0xdbda9a=a1190_0x1e2f;'use strict';const client=require('../client');exports[_0xdbda9a('0x2')]=function(_0x5c9d0d,_0x3a1ca9){const _0x5659ed=_0xdbda9a;return client[_0x5659ed('0x4')](_0x5659ed('0x3'),{'body':_0x3a1ca9,'options':{'where':{'id':_0x5c9d0d}},'log':'updateSmsInteraction'});},exports[_0xdbda9a('0x1')]=function(_0x11ace3,_0x826b0f){const _0x24c80b=_0xdbda9a;return client['Request'](_0x24c80b('0x0'),{'body':_0x826b0f,'options':{'where':{'id':_0x11ace3}},'log':'addTagsToSmsInteraction'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsMessage.js b/server/services/routing/rpc/smsMessage.js index 18eef63..7193468 100644 --- a/server/services/routing/rpc/smsMessage.js +++ b/server/services/routing/rpc/smsMessage.js @@ -1 +1 @@ -const a1191_0x2764=['Request','create','../client','createSmsMessage'];(function(_0x62b25b,_0x276422){const _0x1553a2=function(_0xa6f0c4){while(--_0xa6f0c4){_0x62b25b['push'](_0x62b25b['shift']());}};_0x1553a2(++_0x276422);}(a1191_0x2764,0x159));const a1191_0x1553=function(_0x62b25b,_0x276422){_0x62b25b=_0x62b25b-0x0;let _0x1553a2=a1191_0x2764[_0x62b25b];return _0x1553a2;};const _0x577cbf=a1191_0x1553;'use strict';const client=require(_0x577cbf('0x1'));exports[_0x577cbf('0x0')]=function(_0xa6f0c4){const _0x4a5909=_0x577cbf;return client[_0x4a5909('0x3')]('CreateSmsMessage',{'body':_0xa6f0c4,'log':_0x4a5909('0x2')});}; \ No newline at end of file +const a1191_0x56a0=['../client','Request','create','CreateSmsMessage'];(function(_0x4d91cf,_0x56a04c){const _0x50a079=function(_0x158577){while(--_0x158577){_0x4d91cf['push'](_0x4d91cf['shift']());}};_0x50a079(++_0x56a04c);}(a1191_0x56a0,0x8e));const a1191_0x50a0=function(_0x4d91cf,_0x56a04c){_0x4d91cf=_0x4d91cf-0x0;let _0x50a079=a1191_0x56a0[_0x4d91cf];return _0x50a079;};const _0x2f95b0=a1191_0x50a0;'use strict';const client=require(_0x2f95b0('0x2'));exports[_0x2f95b0('0x0')]=function(_0x158577){const _0x52b6f5=_0x2f95b0;return client[_0x52b6f5('0x3')](_0x52b6f5('0x1'),{'body':_0x158577,'log':'createSmsMessage'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsQueue.js b/server/services/routing/rpc/smsQueue.js index 6bbf0db..0581a9b 100644 --- a/server/services/routing/rpc/smsQueue.js +++ b/server/services/routing/rpc/smsQueue.js @@ -1 +1 @@ -const a1192_0x453d=['getSmsQueues','smsPause','../client','timeout','Request','strategy'];(function(_0x435ee1,_0x453d0d){const _0xc95882=function(_0x388dd8){while(--_0x388dd8){_0x435ee1['push'](_0x435ee1['shift']());}};_0xc95882(++_0x453d0d);}(a1192_0x453d,0xdc));const a1192_0xc958=function(_0x435ee1,_0x453d0d){_0x435ee1=_0x435ee1-0x0;let _0xc95882=a1192_0x453d[_0x435ee1];return _0xc95882;};const _0x3bdd56=a1192_0xc958;'use strict';const client=require(_0x3bdd56('0x4'));exports['getSmsQueues']=function(){return function(){const _0x37c5a7=a1192_0xc958;return client[_0x37c5a7('0x0')]('GetSmsQueue',{'options':{'raw':![],'attributes':['id','name',_0x37c5a7('0x5'),_0x37c5a7('0x1')],'include':[{'model':'User','as':'Agents','attributes':['id','name','online',_0x37c5a7('0x3')]}]},'log':_0x37c5a7('0x2')});};}; \ No newline at end of file +const a1192_0x88a4=['strategy','User','GetSmsQueue','online','name','Request','getSmsQueues','smsPause','../client','timeout','Agents'];(function(_0x52b2cf,_0x88a4ea){const _0x4555a8=function(_0x2d07c4){while(--_0x2d07c4){_0x52b2cf['push'](_0x52b2cf['shift']());}};_0x4555a8(++_0x88a4ea);}(a1192_0x88a4,0x67));const a1192_0x4555=function(_0x52b2cf,_0x88a4ea){_0x52b2cf=_0x52b2cf-0x0;let _0x4555a8=a1192_0x88a4[_0x52b2cf];return _0x4555a8;};const _0x37ac8c=a1192_0x4555;'use strict';const client=require(_0x37ac8c('0x4'));exports[_0x37ac8c('0x2')]=function(){return function(){const _0x143650=a1192_0x4555;return client[_0x143650('0x1')](_0x143650('0x9'),{'options':{'raw':![],'attributes':['id',_0x143650('0x0'),_0x143650('0x5'),_0x143650('0x7')],'include':[{'model':_0x143650('0x8'),'as':_0x143650('0x6'),'attributes':['id','name',_0x143650('0xa'),_0x143650('0x3')]}]},'log':_0x143650('0x2')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsQueueReport.js b/server/services/routing/rpc/smsQueueReport.js index 8b29892..1c91712 100644 --- a/server/services/routing/rpc/smsQueueReport.js +++ b/server/services/routing/rpc/smsQueueReport.js @@ -1 +1 @@ -const a1193_0x198d=['UpdateSmsQueueReport','CreateSmsQueueReport','update','Request','DESC','../client'];(function(_0x4a60ca,_0x198d3a){const _0x1985df=function(_0x3a72c9){while(--_0x3a72c9){_0x4a60ca['push'](_0x4a60ca['shift']());}};_0x1985df(++_0x198d3a);}(a1193_0x198d,0x16b));const a1193_0x1985=function(_0x4a60ca,_0x198d3a){_0x4a60ca=_0x4a60ca-0x0;let _0x1985df=a1193_0x198d[_0x4a60ca];return _0x1985df;};const _0x4736a5=a1193_0x1985;'use strict';const client=require(_0x4736a5('0x2'));exports['create']=function(_0x3a72c9){const _0x6c2396=_0x4736a5;return client[_0x6c2396('0x0')](_0x6c2396('0x4'),{'body':_0x3a72c9,'log':_0x6c2396('0x4')});},exports[_0x4736a5('0x5')]=function(_0x35f394,_0x3f8c65){const _0x110c8e=_0x4736a5;return client[_0x110c8e('0x0')](_0x110c8e('0x3'),{'body':_0x3f8c65,'options':{'where':{'uniqueid':_0x35f394},'order':[['id',_0x110c8e('0x1')]],'limit':0x1},'log':'UpdateSmsQueueReport'});}; \ No newline at end of file +const a1193_0x235f=['create','DESC','UpdateSmsQueueReport','Request','../client','update','CreateSmsQueueReport'];(function(_0x1c9d49,_0x235fe6){const _0x37ca46=function(_0x2c6aee){while(--_0x2c6aee){_0x1c9d49['push'](_0x1c9d49['shift']());}};_0x37ca46(++_0x235fe6);}(a1193_0x235f,0x1b4));const a1193_0x37ca=function(_0x1c9d49,_0x235fe6){_0x1c9d49=_0x1c9d49-0x0;let _0x37ca46=a1193_0x235f[_0x1c9d49];return _0x37ca46;};const _0x1c64fc=a1193_0x37ca;'use strict';const client=require(_0x1c64fc('0x2'));exports[_0x1c64fc('0x5')]=function(_0x2c6aee){const _0x317f45=_0x1c64fc;return client['Request'](_0x317f45('0x4'),{'body':_0x2c6aee,'log':'CreateSmsQueueReport'});},exports[_0x1c64fc('0x3')]=function(_0x473c3e,_0x42cbea){const _0x48c8e2=_0x1c64fc;return client[_0x48c8e2('0x1')](_0x48c8e2('0x0'),{'body':_0x42cbea,'options':{'where':{'uniqueid':_0x473c3e},'order':[['id',_0x48c8e2('0x6')]],'limit':0x1},'log':'UpdateSmsQueueReport'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/user.js b/server/services/routing/rpc/user.js index 529bc90..450fac7 100644 --- a/server/services/routing/rpc/user.js +++ b/server/services/routing/rpc/user.js @@ -1 +1 @@ -const a1194_0x14a0=['lastPauseAt','faxPause','getAgents','pauseType','GetUser','chatCapacity','smsCapacity','name','chatPause','faxCapacity','Request','openchannelPause','voicePause','whatsappPause','whatsappCapacity','smsPause','mailCapacity','../client','agent','mailPause'];(function(_0x1b749d,_0x14a032){const _0x23658d=function(_0x35b3c8){while(--_0x35b3c8){_0x1b749d['push'](_0x1b749d['shift']());}};_0x23658d(++_0x14a032);}(a1194_0x14a0,0x15d));const a1194_0x2365=function(_0x1b749d,_0x14a032){_0x1b749d=_0x1b749d-0x0;let _0x23658d=a1194_0x14a0[_0x1b749d];return _0x23658d;};const _0x24a219=a1194_0x2365;'use strict';const client=require(_0x24a219('0x8'));exports[_0x24a219('0xd')]=function(){return function(){const _0x234bf8=a1194_0x2365;return client[_0x234bf8('0x1')](_0x234bf8('0xf'),{'options':{'raw':!![],'where':{'role':_0x234bf8('0x9')},'attributes':['id',_0x234bf8('0x12'),'online',_0x234bf8('0xe'),_0x234bf8('0xb'),_0x234bf8('0x3'),_0x234bf8('0x13'),_0x234bf8('0xa'),_0x234bf8('0xc'),_0x234bf8('0x6'),_0x234bf8('0x4'),_0x234bf8('0x2'),_0x234bf8('0x10'),_0x234bf8('0x7'),_0x234bf8('0x0'),_0x234bf8('0x11'),_0x234bf8('0x5'),'openchannelCapacity']},'log':_0x234bf8('0xd')});};}; \ No newline at end of file +const a1194_0x49df=['name','lastPauseAt','Request','openchannelPause','agent','getAgents','pauseType','openchannelCapacity','chatCapacity','../client','voicePause','whatsappPause','faxPause','smsCapacity'];(function(_0x5244d1,_0x49df47){const _0xe316a8=function(_0x3217be){while(--_0x3217be){_0x5244d1['push'](_0x5244d1['shift']());}};_0xe316a8(++_0x49df47);}(a1194_0x49df,0x11d));const a1194_0xe316=function(_0x5244d1,_0x49df47){_0x5244d1=_0x5244d1-0x0;let _0xe316a8=a1194_0x49df[_0x5244d1];return _0xe316a8;};const _0x2730e3=a1194_0xe316;'use strict';const client=require(_0x2730e3('0x4'));exports[_0x2730e3('0x0')]=function(){return function(){const _0x1a2962=a1194_0xe316;return client[_0x1a2962('0xb')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x1a2962('0xd')},'attributes':['id',_0x1a2962('0x9'),'online',_0x1a2962('0x1'),_0x1a2962('0xa'),_0x1a2962('0x5'),'chatPause','mailPause',_0x1a2962('0x7'),'smsPause',_0x1a2962('0x6'),_0x1a2962('0xc'),_0x1a2962('0x3'),'mailCapacity','faxCapacity',_0x1a2962('0x8'),'whatsappCapacity',_0x1a2962('0x2')]},'log':_0x1a2962('0x0')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappInteraction.js b/server/services/routing/rpc/whatsappInteraction.js index ff271b8..ee1c239 100644 --- a/server/services/routing/rpc/whatsappInteraction.js +++ b/server/services/routing/rpc/whatsappInteraction.js @@ -1 +1 @@ -const a1195_0x5b35=['updateWhatsappInteraction','../client','UpdateWhatsappInteraction','Request','addTagsToWhatsappInteraction'];(function(_0x47dca6,_0x5b35d5){const _0xc1a686=function(_0x489de1){while(--_0x489de1){_0x47dca6['push'](_0x47dca6['shift']());}};_0xc1a686(++_0x5b35d5);}(a1195_0x5b35,0x80));const a1195_0xc1a6=function(_0x47dca6,_0x5b35d5){_0x47dca6=_0x47dca6-0x0;let _0xc1a686=a1195_0x5b35[_0x47dca6];return _0xc1a686;};const _0x1d9a47=a1195_0xc1a6;'use strict';const client=require(_0x1d9a47('0x3'));exports['update']=function(_0x489de1,_0x166563){const _0x351fd0=_0x1d9a47;return client[_0x351fd0('0x0')](_0x351fd0('0x4'),{'body':_0x166563,'options':{'where':{'id':_0x489de1}},'log':_0x351fd0('0x2')});},exports['addTags']=function(_0x1b2bbe,_0x3391b4){const _0x5a3c66=_0x1d9a47;return client['Request']('AddTagsToWhatsappInteraction',{'body':_0x3391b4,'options':{'where':{'id':_0x1b2bbe}},'log':_0x5a3c66('0x1')});}; \ No newline at end of file +const a1195_0x156d=['addTagsToWhatsappInteraction','../client','update','Request','UpdateWhatsappInteraction'];(function(_0x30b37b,_0x156dee){const _0x4e0b18=function(_0x5109f8){while(--_0x5109f8){_0x30b37b['push'](_0x30b37b['shift']());}};_0x4e0b18(++_0x156dee);}(a1195_0x156d,0x10b));const a1195_0x4e0b=function(_0x30b37b,_0x156dee){_0x30b37b=_0x30b37b-0x0;let _0x4e0b18=a1195_0x156d[_0x30b37b];return _0x4e0b18;};const _0x39ab94=a1195_0x4e0b;'use strict';const client=require(_0x39ab94('0x4'));exports[_0x39ab94('0x0')]=function(_0x5109f8,_0xc8b92){const _0x225c8c=_0x39ab94;return client[_0x225c8c('0x1')](_0x225c8c('0x2'),{'body':_0xc8b92,'options':{'where':{'id':_0x5109f8}},'log':'updateWhatsappInteraction'});},exports['addTags']=function(_0x598c6c,_0x37d820){const _0x1240c4=_0x39ab94;return client[_0x1240c4('0x1')]('AddTagsToWhatsappInteraction',{'body':_0x37d820,'options':{'where':{'id':_0x598c6c}},'log':_0x1240c4('0x3')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappMessage.js b/server/services/routing/rpc/whatsappMessage.js index e13901b..97110eb 100644 --- a/server/services/routing/rpc/whatsappMessage.js +++ b/server/services/routing/rpc/whatsappMessage.js @@ -1 +1 @@ -const a1196_0x3bf2=['Request','create'];(function(_0xf0bc12,_0x3bf20c){const _0x487e84=function(_0x11c41c){while(--_0x11c41c){_0xf0bc12['push'](_0xf0bc12['shift']());}};_0x487e84(++_0x3bf20c);}(a1196_0x3bf2,0x9c));const a1196_0x487e=function(_0xf0bc12,_0x3bf20c){_0xf0bc12=_0xf0bc12-0x0;let _0x487e84=a1196_0x3bf2[_0xf0bc12];return _0x487e84;};const _0x4d4e46=a1196_0x487e;'use strict';const client=require('../client');exports[_0x4d4e46('0x1')]=function(_0x11c41c){const _0x238e03=_0x4d4e46;return client[_0x238e03('0x0')]('CreateWhatsappMessage',{'body':_0x11c41c,'log':'createWhatsappMessage'});}; \ No newline at end of file +const a1196_0x131a=['create','../client'];(function(_0x3a21a1,_0x131a4d){const _0x754e05=function(_0x28ced5){while(--_0x28ced5){_0x3a21a1['push'](_0x3a21a1['shift']());}};_0x754e05(++_0x131a4d);}(a1196_0x131a,0xd6));const a1196_0x754e=function(_0x3a21a1,_0x131a4d){_0x3a21a1=_0x3a21a1-0x0;let _0x754e05=a1196_0x131a[_0x3a21a1];return _0x754e05;};const _0x179a61=a1196_0x754e;'use strict';const client=require(_0x179a61('0x1'));exports[_0x179a61('0x0')]=function(_0x28ced5){return client['Request']('CreateWhatsappMessage',{'body':_0x28ced5,'log':'createWhatsappMessage'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappQueue.js b/server/services/routing/rpc/whatsappQueue.js index 96d51b9..afb02c1 100644 --- a/server/services/routing/rpc/whatsappQueue.js +++ b/server/services/routing/rpc/whatsappQueue.js @@ -1 +1 @@ -const a1197_0x2828=['getWhatsappQueues','../client','timeout','online','Agents','whatsappPause','GetWhatsappQueue','strategy','name'];(function(_0x3008cb,_0x2828e7){const _0x4b496b=function(_0x141728){while(--_0x141728){_0x3008cb['push'](_0x3008cb['shift']());}};_0x4b496b(++_0x2828e7);}(a1197_0x2828,0xeb));const a1197_0x4b49=function(_0x3008cb,_0x2828e7){_0x3008cb=_0x3008cb-0x0;let _0x4b496b=a1197_0x2828[_0x3008cb];return _0x4b496b;};const _0x1b38a5=a1197_0x4b49;'use strict';const client=require(_0x1b38a5('0x0'));exports[_0x1b38a5('0x8')]=function(){return function(){const _0x488b64=a1197_0x4b49;return client['Request'](_0x488b64('0x5'),{'options':{'raw':![],'attributes':['id',_0x488b64('0x7'),_0x488b64('0x1'),_0x488b64('0x6')],'include':[{'model':'User','as':_0x488b64('0x3'),'attributes':['id',_0x488b64('0x7'),_0x488b64('0x2'),_0x488b64('0x4')]}]},'log':_0x488b64('0x8')});};}; \ No newline at end of file +const a1197_0x568c=['online','timeout','GetWhatsappQueue','Request','User','getWhatsappQueues','strategy','../client','name','whatsappPause'];(function(_0x33ce08,_0x568ca0){const _0x2ed5b3=function(_0xba98a7){while(--_0xba98a7){_0x33ce08['push'](_0x33ce08['shift']());}};_0x2ed5b3(++_0x568ca0);}(a1197_0x568c,0x160));const a1197_0x2ed5=function(_0x33ce08,_0x568ca0){_0x33ce08=_0x33ce08-0x0;let _0x2ed5b3=a1197_0x568c[_0x33ce08];return _0x2ed5b3;};const _0x34aeb8=a1197_0x2ed5;'use strict';const client=require(_0x34aeb8('0x5'));exports[_0x34aeb8('0x3')]=function(){return function(){const _0x51d691=a1197_0x2ed5;return client[_0x51d691('0x1')](_0x51d691('0x0'),{'options':{'raw':![],'attributes':['id',_0x51d691('0x6'),_0x51d691('0x9'),_0x51d691('0x4')],'include':[{'model':_0x51d691('0x2'),'as':'Agents','attributes':['id',_0x51d691('0x6'),_0x51d691('0x8'),_0x51d691('0x7')]}]},'log':'getWhatsappQueues'});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappQueueReport.js b/server/services/routing/rpc/whatsappQueueReport.js index 309af5c..42d678b 100644 --- a/server/services/routing/rpc/whatsappQueueReport.js +++ b/server/services/routing/rpc/whatsappQueueReport.js @@ -1 +1 @@ -const a1198_0x5cde=['CreateWhatsappQueueReport','create','update','DESC','../client','Request'];(function(_0x29a5e0,_0x5cdef8){const _0x534300=function(_0x3a35ea){while(--_0x3a35ea){_0x29a5e0['push'](_0x29a5e0['shift']());}};_0x534300(++_0x5cdef8);}(a1198_0x5cde,0x1a4));const a1198_0x5343=function(_0x29a5e0,_0x5cdef8){_0x29a5e0=_0x29a5e0-0x0;let _0x534300=a1198_0x5cde[_0x29a5e0];return _0x534300;};const _0x29f960=a1198_0x5343;'use strict';const client=require(_0x29f960('0x4'));exports[_0x29f960('0x1')]=function(_0x3a35ea){const _0x41d270=_0x29f960;return client['Request'](_0x41d270('0x0'),{'body':_0x3a35ea,'log':'CreateWhatsappQueueReport'});},exports[_0x29f960('0x2')]=function(_0x529db7,_0x1da065){const _0x156d3d=_0x29f960;return client[_0x156d3d('0x5')]('UpdateWhatsappQueueReport',{'body':_0x1da065,'options':{'where':{'uniqueid':_0x529db7},'order':[['id',_0x156d3d('0x3')]],'limit':0x1},'log':'UpdateWhatsappQueueReport'});}; \ No newline at end of file +const a1198_0x2d96=['update','UpdateWhatsappQueueReport','Request','CreateWhatsappQueueReport','../client','create'];(function(_0x48987f,_0x2d9627){const _0x4d6093=function(_0x561297){while(--_0x561297){_0x48987f['push'](_0x48987f['shift']());}};_0x4d6093(++_0x2d9627);}(a1198_0x2d96,0x160));const a1198_0x4d60=function(_0x48987f,_0x2d9627){_0x48987f=_0x48987f-0x0;let _0x4d6093=a1198_0x2d96[_0x48987f];return _0x4d6093;};const _0x57267b=a1198_0x4d60;'use strict';const client=require(_0x57267b('0x0'));exports[_0x57267b('0x1')]=function(_0x561297){const _0x1658f6=_0x57267b;return client[_0x1658f6('0x4')](_0x1658f6('0x5'),{'body':_0x561297,'log':'CreateWhatsappQueueReport'});},exports[_0x57267b('0x2')]=function(_0x4c207a,_0x2ea864){const _0x36d243=_0x57267b;return client[_0x36d243('0x4')]('UpdateWhatsappQueueReport',{'body':_0x2ea864,'options':{'where':{'uniqueid':_0x4c207a},'order':[['id','DESC']],'limit':0x1},'log':_0x36d243('0x3')});}; \ No newline at end of file diff --git a/server/services/routing/server/applications/agent.js b/server/services/routing/server/applications/agent.js index fc45464..697f3d4 100644 --- a/server/services/routing/server/applications/agent.js +++ b/server/services/routing/server/applications/agent.js @@ -1 +1 @@ -const a1199_0x3440=['validate','consequence','name','seq-queue','next','START:%s','join','util','lodash','channel','log','toLowerCase','[%s][AGENT]\x20ROUTING\x20STOPPED','format','atimeout','createQueue','[%s][AGENT]\x20ROUTING\x20END','agents','string','rules','[%s][QUEUE]\x20%s','close','../../../../config/logger','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','error','find','./strategy','info','agent','message','stop','timeout\x20is\x20a\x20number','stack','timeout','number'];(function(_0x594267,_0x34406d){const _0x175862=function(_0x319e5b){while(--_0x319e5b){_0x594267['push'](_0x594267['shift']());}};_0x175862(++_0x34406d);}(a1199_0x3440,0x114));const a1199_0x1758=function(_0x594267,_0x34406d){_0x594267=_0x594267-0x0;let _0x175862=a1199_0x3440[_0x594267];return _0x175862;};const _0x4282fa=a1199_0x1758;'use strict';const schema=require(_0x4282fa('0x4')),_=require(_0x4282fa('0xc')),util=require(_0x4282fa('0xb')),seqqueue=require(_0x4282fa('0x7')),logger=require(_0x4282fa('0x1a'))('routing'),strategy=require(_0x4282fa('0x1e')),queue=schema({'name':{'type':_0x4282fa('0x16'),'required':!![],'message':_0x4282fa('0x1b')},'timeout':{'type':_0x4282fa('0x3'),'message':_0x4282fa('0x0')}});function writeLog(_0x319e5b,_0x2c41be,_0x3353bd){const _0x342dd8=_0x4282fa;return logger[_0x342dd8('0x1f')](util['format']('[%s][AGENT][NAME:%s][STATUS:%s]',_0x319e5b,_0x2c41be[_0x342dd8('0x6')],_0x3353bd));}function handleFindAgent(_0x2b14c9){return function(_0x41e5e0){const _0x4b5160=a1199_0x1758;return _0x41e5e0['name']['toLowerCase']()===_0x2b14c9[_0x4b5160('0xf')]();};}exports[_0x4282fa('0x5')]=function(_0x4787bd,_0x1065eb,_0x2ad881,_0x5175a7){return function(_0x1aac3e){const _0x263ddc=a1199_0x1758;try{const _0x54d923={'name':_0x1065eb[0x0],'timeout':_0x1065eb[0x1]},_0x240b61=queue['validate'](_0x54d923,{'typecast':!![]});if(_0x240b61['length'])logger[_0x263ddc('0x1c')]('[%s][AGENT]\x20%s',_0x4787bd,_['map'](_0x240b61,_0x263ddc('0x21'))[_0x263ddc('0xa')](',\x20')),_0x1aac3e['stop']();else{const _0x547d33=_[_0x263ddc('0x1d')](_0x2ad881[_0x263ddc('0x15')],handleFindAgent(_0x54d923[_0x263ddc('0x6')]));if(_0x547d33){const _0x1e4232=(_0x54d923[_0x263ddc('0x2')]||0xa)*0x3e8;let _0x47af06;const _0x5dc0d0=seqqueue[_0x263ddc('0x13')](_0x1e4232);_0x5dc0d0['id']=_0x4787bd,_0x5dc0d0[_0x263ddc('0x12')]=_0x1e4232,_0x5dc0d0['channel']=_0x5175a7[_0x263ddc('0xd')],writeLog(_0x4787bd,_0x547d33,util[_0x263ddc('0x11')](_0x263ddc('0x9'),_0x1e4232)),_0x2ad881[_0x263ddc('0x17')][_0x4787bd]['on']('end',function(){const _0x292ab1=_0x263ddc;logger[_0x292ab1('0x1f')](_0x292ab1('0x10'),_0x4787bd),clearTimeout(_0x47af06),_0x47af06=undefined,_0x5dc0d0[_0x292ab1('0x19')](),_0x2ad881[_0x292ab1('0x17')][_0x4787bd]&&delete _0x2ad881[_0x292ab1('0x17')][_0x4787bd],_0x1aac3e[_0x292ab1('0x22')]();}),_0x2ad881[_0x263ddc('0x17')][_0x4787bd]['on']('complete',function(){const _0x245154=_0x263ddc;_0x2ad881['rules'][_0x4787bd]&&delete _0x2ad881[_0x245154('0x17')][_0x4787bd];}),_0x47af06=setTimeout(function(){const _0xef964d=_0x263ddc;logger[_0xef964d('0x1f')](_0xef964d('0x14'),_0x4787bd),clearTimeout(_0x47af06),_0x5dc0d0['close'](),_0x1aac3e[_0xef964d('0x8')]();},_0x1e4232),strategy[_0x263ddc('0x20')](_0x5dc0d0,_0x547d33,_0x2ad881,_0x5175a7);}else logger[_0x263ddc('0x1c')]('[%s][AGENT]\x20agent\x20not\x20found\x20%s',_0x4787bd,_0x54d923[_0x263ddc('0x6')]),_0x1aac3e[_0x263ddc('0x22')]();}}catch(_0x7cd1f2){console[_0x263ddc('0xe')](_0x7cd1f2),logger['error'](_0x263ddc('0x18'),_0x4787bd,_0x7cd1f2[_0x263ddc('0x1')]),_0x1aac3e['stop']();}};}; \ No newline at end of file +const a1199_0x1386=['agents','format','validate','consequence','next','agent','map','[%s][AGENT]\x20ROUTING\x20STOPPED','stack','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','./strategy','[%s][QUEUE]\x20%s','string','error','channel','[%s][AGENT]\x20ROUTING\x20END','[%s][AGENT]\x20%s','rules','name','toLowerCase','number','find','join','end','atimeout','stop','../../../../config/logger','message','log','[%s][AGENT][NAME:%s][STATUS:%s]','length','info','seq-queue','close'];(function(_0x489030,_0x138641){const _0x257d55=function(_0xc92c12){while(--_0xc92c12){_0x489030['push'](_0x489030['shift']());}};_0x257d55(++_0x138641);}(a1199_0x1386,0xf8));const a1199_0x257d=function(_0x489030,_0x138641){_0x489030=_0x489030-0x0;let _0x257d55=a1199_0x1386[_0x489030];return _0x257d55;};const _0x163f5f=a1199_0x257d;'use strict';const schema=require('validate'),_=require('lodash'),util=require('util'),seqqueue=require(_0x163f5f('0x16')),logger=require(_0x163f5f('0x10'))('routing'),strategy=require(_0x163f5f('0x0')),queue=schema({'name':{'type':_0x163f5f('0x2'),'required':!![],'message':_0x163f5f('0x21')},'timeout':{'type':_0x163f5f('0xa'),'message':'timeout\x20is\x20a\x20number'}});function writeLog(_0xc92c12,_0x4fee57,_0x5a6e84){const _0x5c3ff0=_0x163f5f;return logger[_0x5c3ff0('0x15')](util[_0x5c3ff0('0x19')](_0x5c3ff0('0x13'),_0xc92c12,_0x4fee57[_0x5c3ff0('0x8')],_0x5a6e84));}function handleFindAgent(_0x518896){return function(_0xc249c){const _0x5667af=a1199_0x257d;return _0xc249c[_0x5667af('0x8')][_0x5667af('0x9')]()===_0x518896[_0x5667af('0x9')]();};}exports[_0x163f5f('0x1b')]=function(_0x35ed46,_0x439d99,_0xcec4af,_0x543ead){return function(_0x298d9e){const _0x3f8d98=a1199_0x257d;try{const _0x2534ec={'name':_0x439d99[0x0],'timeout':_0x439d99[0x1]},_0xe81e49=queue[_0x3f8d98('0x1a')](_0x2534ec,{'typecast':!![]});if(_0xe81e49[_0x3f8d98('0x14')])logger[_0x3f8d98('0x3')](_0x3f8d98('0x6'),_0x35ed46,_[_0x3f8d98('0x1e')](_0xe81e49,_0x3f8d98('0x11'))[_0x3f8d98('0xc')](',\x20')),_0x298d9e[_0x3f8d98('0xf')]();else{const _0x3ec084=_[_0x3f8d98('0xb')](_0xcec4af[_0x3f8d98('0x18')],handleFindAgent(_0x2534ec[_0x3f8d98('0x8')]));if(_0x3ec084){const _0x584ddc=(_0x2534ec['timeout']||0xa)*0x3e8;let _0x3082cf;const _0x3dc2ee=seqqueue['createQueue'](_0x584ddc);_0x3dc2ee['id']=_0x35ed46,_0x3dc2ee[_0x3f8d98('0xe')]=_0x584ddc,_0x3dc2ee[_0x3f8d98('0x4')]=_0x543ead['channel'],writeLog(_0x35ed46,_0x3ec084,util['format']('START:%s',_0x584ddc)),_0xcec4af['rules'][_0x35ed46]['on'](_0x3f8d98('0xd'),function(){const _0x895426=_0x3f8d98;logger['info'](_0x895426('0x1f'),_0x35ed46),clearTimeout(_0x3082cf),_0x3082cf=undefined,_0x3dc2ee[_0x895426('0x17')](),_0xcec4af[_0x895426('0x7')][_0x35ed46]&&delete _0xcec4af[_0x895426('0x7')][_0x35ed46],_0x298d9e[_0x895426('0xf')]();}),_0xcec4af[_0x3f8d98('0x7')][_0x35ed46]['on']('complete',function(){const _0x444392=_0x3f8d98;_0xcec4af['rules'][_0x35ed46]&&delete _0xcec4af[_0x444392('0x7')][_0x35ed46];}),_0x3082cf=setTimeout(function(){const _0x53c168=_0x3f8d98;logger['info'](_0x53c168('0x5'),_0x35ed46),clearTimeout(_0x3082cf),_0x3dc2ee[_0x53c168('0x17')](),_0x298d9e[_0x53c168('0x1c')]();},_0x584ddc),strategy[_0x3f8d98('0x1d')](_0x3dc2ee,_0x3ec084,_0xcec4af,_0x543ead);}else logger[_0x3f8d98('0x3')]('[%s][AGENT]\x20agent\x20not\x20found\x20%s',_0x35ed46,_0x2534ec[_0x3f8d98('0x8')]),_0x298d9e[_0x3f8d98('0xf')]();}}catch(_0x4a9c7b){console[_0x3f8d98('0x12')](_0x4a9c7b),logger[_0x3f8d98('0x3')](_0x3f8d98('0x1'),_0x35ed46,_0x4a9c7b[_0x3f8d98('0x20')]),_0x298d9e[_0x3f8d98('0xf')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/amazonlex.js b/server/services/routing/server/applications/amazonlex.js index a688c59..e06bba6 100644 --- a/server/services/routing/server/applications/amazonlex.js +++ b/server/services/routing/server/applications/amazonlex.js @@ -1 +1 @@ -const a1200_0x49a6=['./utils','../../rpc/chatMessage','isEmpty','stop','consequence','AccountId','aws-sdk','ChatWebsiteId','../../rpc/smsMessage','message','LexRuntime','chat','InteractionId','error','info','getMustacheRender','format','../../rpc/openchannelMessage','create','routing','Message','amazonlex','YYYY-MM-DD\x20HH:mm:ss','out','Failed','channel','account','stringify','[%s][AMAZONLEX]\x20%s','moment','then','upperFirst','finally','interaction','body','[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!','$LATEST','postText','catch','next','lodash','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','../../../../config/logger','created'];(function(_0x52e56d,_0x49a629){const _0xf95d0b=function(_0x1b29b9){while(--_0x1b29b9){_0x52e56d['push'](_0x52e56d['shift']());}};_0xf95d0b(++_0x49a629);}(a1200_0x49a6,0x78));const a1200_0xf95d=function(_0x52e56d,_0x49a629){_0x52e56d=_0x52e56d-0x0;let _0xf95d0b=a1200_0x49a6[_0x52e56d];return _0xf95d0b;};const _0x425d8a=a1200_0xf95d;'use strict';const _=require(_0x425d8a('0xa')),moment=require(_0x425d8a('0x2c')),AWS=require(_0x425d8a('0x15')),utils=require(_0x425d8a('0xf')),logger=require(_0x425d8a('0xd'))(_0x425d8a('0x22')),rpc={'chatMessage':require(_0x425d8a('0x10')),'openchannelMessage':require(_0x425d8a('0x20')),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(_0x425d8a('0x17')),'faxMessage':require('../../rpc/faxMessage'),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[_0x425d8a('0x13')]=function(_0x1b29b9,_0x2ba018){return function(_0x3319aa){const _0x3bcdf6=a1200_0xf95d;try{if(!_['isNil'](this[_0x3bcdf6('0x3')]['UserId']))return logger[_0x3bcdf6('0x1d')](_0x3bcdf6('0x2b'),_0x1b29b9,_0x3bcdf6('0xb')),_0x3319aa[_0x3bcdf6('0x9')]();const _0x75890a={'ContactId':this['contact']['id'],'sentAt':moment()[_0x3bcdf6('0x1f')](_0x3bcdf6('0x25')),'direction':_0x3bcdf6('0x26')},_0x33d19f=this[_0x3bcdf6('0x28')];_0x33d19f===_0x3bcdf6('0x1a')?_0x75890a[_0x3bcdf6('0x16')]=this['account']['id']:_0x75890a[_[_0x3bcdf6('0x1')](_0x33d19f)+_0x3bcdf6('0x14')]=this[_0x3bcdf6('0x29')]['id'];_0x75890a[_['upperFirst'](_0x33d19f)+_0x3bcdf6('0x1b')]=this['interaction']['id'];if(this[_0x3bcdf6('0x3')][_0x3bcdf6('0xe')]){const _0x1ca4aa=_0x2ba018[0x4];if(!_[_0x3bcdf6('0x11')](_0x1ca4aa))return _0x75890a[_0x3bcdf6('0x4')]=utils[_0x3bcdf6('0x1e')](_0x1ca4aa,this),rpc[_0x33d19f+_0x3bcdf6('0x23')]['create'](_0x75890a)[_0x3bcdf6('0x0')](function(){const _0x107144=_0x3bcdf6;logger[_0x107144('0x1d')](_0x107144('0x2b'),_0x1b29b9,_0x75890a['body']);})[_0x3bcdf6('0x8')](function(_0x428a41){const _0x105207=_0x3bcdf6;logger[_0x105207('0x1c')]('[%s][AMAZONLEX]\x20%s',_0x1b29b9,JSON[_0x105207('0x2a')](_0x428a41));})[_0x3bcdf6('0x2')](function(){const _0x48ef20=_0x3bcdf6;logger[_0x48ef20('0x1d')](_0x48ef20('0x5'),_0x1b29b9),_0x3319aa[_0x48ef20('0x12')]();});else logger[_0x3bcdf6('0x1d')](_0x3bcdf6('0xc'),_0x1b29b9),_0x3319aa[_0x3bcdf6('0x12')]();}else{const _0x3aa270=this,_0x475948=new AWS[(_0x3bcdf6('0x19'))]({'accessKeyId':_0x2ba018[0x0],'secretAccessKey':_0x2ba018[0x1],'region':_0x2ba018[0x2]}),_0x2a1272={'botAlias':_0x3bcdf6('0x6'),'botName':_0x2ba018[0x3],'inputText':this[_0x3bcdf6('0x18')][_0x3bcdf6('0x4')],'userId':this[_0x3bcdf6('0x28')]+':'+this[_0x3bcdf6('0x3')]['id']['toString']()};_0x475948[_0x3bcdf6('0x7')](_0x2a1272,function(_0x2ecefb,_0x33d14e){const _0x3ee2ae=_0x3bcdf6;if(_0x2ecefb)logger['error'](_0x3ee2ae('0x2b'),_0x1b29b9,_0x2ecefb[_0x3ee2ae('0x18')]),_0x3319aa[_0x3ee2ae('0x9')]();else{if(_0x33d14e&&_0x33d14e[_0x3ee2ae('0x18')])return _0x3aa270[_0x3ee2ae('0x4')][_0x3ee2ae('0x24')]=_0x33d14e,_0x75890a[_0x3ee2ae('0x4')]=_0x33d14e[_0x3ee2ae('0x18')],rpc[_0x33d19f+_0x3ee2ae('0x23')][_0x3ee2ae('0x21')](_0x75890a)[_0x3ee2ae('0x0')](function(){const _0x16e8aa=_0x3ee2ae;logger[_0x16e8aa('0x1d')](_0x16e8aa('0x2b'),_0x1b29b9,_0x75890a[_0x16e8aa('0x4')]),_0x33d14e['dialogState']==_0x16e8aa('0x27')?_0x3319aa[_0x16e8aa('0x9')]():_0x3319aa[_0x16e8aa('0x12')]();})[_0x3ee2ae('0x8')](function(_0x870f5d){const _0x34aede=_0x3ee2ae;logger[_0x34aede('0x1c')](_0x34aede('0x2b'),_0x1b29b9,JSON[_0x34aede('0x2a')](_0x870f5d)),_0x3319aa[_0x34aede('0x9')]();});else _0x3319aa[_0x3ee2ae('0x9')]();}});}}catch(_0x25d671){logger[_0x3bcdf6('0x1c')]('[%s][AMAZONLEX]\x20%s',_0x1b29b9,JSON[_0x3bcdf6('0x2a')](_0x25d671)),_0x3319aa[_0x3bcdf6('0x12')]();}};}; \ No newline at end of file +const a1200_0xfdc6=['created','consequence','channel','../../../../config/logger','UserId','stringify','ChatWebsiteId','../../rpc/smsMessage','AccountId','Message','contact','[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','account','$LATEST','info','../../rpc/openchannelMessage','message','[%s][AMAZONLEX]\x20%s','interaction','aws-sdk','body','error','LexRuntime','InteractionId','../../rpc/faxMessage','next','format','./utils','chat','catch','isNil','lodash','then','../../rpc/chatMessage','routing','moment','isEmpty','stop','Failed','create'];(function(_0x5289dc,_0xfdc61b){const _0x41f99b=function(_0x4059b9){while(--_0x4059b9){_0x5289dc['push'](_0x5289dc['shift']());}};_0x41f99b(++_0xfdc61b);}(a1200_0xfdc6,0xd0));const a1200_0x41f9=function(_0x5289dc,_0xfdc61b){_0x5289dc=_0x5289dc-0x0;let _0x41f99b=a1200_0xfdc6[_0x5289dc];return _0x41f99b;};const _0x2710a5=a1200_0x41f9;'use strict';const _=require(_0x2710a5('0x17')),moment=require(_0x2710a5('0x1b')),AWS=require(_0x2710a5('0xb')),utils=require(_0x2710a5('0x13')),logger=require(_0x2710a5('0x23'))(_0x2710a5('0x1a')),rpc={'chatMessage':require(_0x2710a5('0x19')),'openchannelMessage':require(_0x2710a5('0x7')),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(_0x2710a5('0x27')),'faxMessage':require(_0x2710a5('0x10')),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[_0x2710a5('0x21')]=function(_0x4059b9,_0x956714){return function(_0x424b6a){const _0xbf97f2=a1200_0x41f9;try{if(!_[_0xbf97f2('0x16')](this[_0xbf97f2('0xa')][_0xbf97f2('0x24')]))return logger[_0xbf97f2('0x6')](_0xbf97f2('0x9'),_0x4059b9,'Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.'),_0x424b6a[_0xbf97f2('0x11')]();const _0x2e3476={'ContactId':this[_0xbf97f2('0x2')]['id'],'sentAt':moment()[_0xbf97f2('0x12')]('YYYY-MM-DD\x20HH:mm:ss'),'direction':'out'},_0x1a3480=this[_0xbf97f2('0x22')];_0x1a3480===_0xbf97f2('0x14')?_0x2e3476[_0xbf97f2('0x26')]=this[_0xbf97f2('0x4')]['id']:_0x2e3476[_['upperFirst'](_0x1a3480)+_0xbf97f2('0x0')]=this[_0xbf97f2('0x4')]['id'];_0x2e3476[_['upperFirst'](_0x1a3480)+_0xbf97f2('0xf')]=this['interaction']['id'];if(this[_0xbf97f2('0xa')][_0xbf97f2('0x20')]){const _0x1479b4=_0x956714[0x4];if(!_[_0xbf97f2('0x1c')](_0x1479b4))return _0x2e3476['body']=utils['getMustacheRender'](_0x1479b4,this),rpc[_0x1a3480+'Message'][_0xbf97f2('0x1f')](_0x2e3476)[_0xbf97f2('0x18')](function(){const _0x3fc73c=_0xbf97f2;logger[_0x3fc73c('0x6')]('[%s][AMAZONLEX]\x20%s',_0x4059b9,_0x2e3476[_0x3fc73c('0xc')]);})[_0xbf97f2('0x15')](function(_0x34b107){const _0x4d08c9=_0xbf97f2;logger['error']('[%s][AMAZONLEX]\x20%s',_0x4059b9,JSON[_0x4d08c9('0x25')](_0x34b107));})['finally'](function(){const _0x3cc618=_0xbf97f2;logger[_0x3cc618('0x6')]('[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!',_0x4059b9),_0x424b6a[_0x3cc618('0x1d')]();});else logger[_0xbf97f2('0x6')](_0xbf97f2('0x3'),_0x4059b9),_0x424b6a[_0xbf97f2('0x1d')]();}else{const _0x39d072=this,_0x54a110=new AWS[(_0xbf97f2('0xe'))]({'accessKeyId':_0x956714[0x0],'secretAccessKey':_0x956714[0x1],'region':_0x956714[0x2]}),_0xa39b0f={'botAlias':_0xbf97f2('0x5'),'botName':_0x956714[0x3],'inputText':this[_0xbf97f2('0x8')]['body'],'userId':this['channel']+':'+this['interaction']['id']['toString']()};_0x54a110['postText'](_0xa39b0f,function(_0x17ab93,_0x5eba86){const _0x176ddd=_0xbf97f2;if(_0x17ab93)logger[_0x176ddd('0xd')]('[%s][AMAZONLEX]\x20%s',_0x4059b9,_0x17ab93['message']),_0x424b6a['next']();else{if(_0x5eba86&&_0x5eba86[_0x176ddd('0x8')])return _0x39d072[_0x176ddd('0xc')]['amazonlex']=_0x5eba86,_0x2e3476[_0x176ddd('0xc')]=_0x5eba86[_0x176ddd('0x8')],rpc[_0x1a3480+_0x176ddd('0x1')]['create'](_0x2e3476)[_0x176ddd('0x18')](function(){const _0x52a57c=_0x176ddd;logger[_0x52a57c('0x6')](_0x52a57c('0x9'),_0x4059b9,_0x2e3476[_0x52a57c('0xc')]),_0x5eba86['dialogState']==_0x52a57c('0x1e')?_0x424b6a['next']():_0x424b6a[_0x52a57c('0x1d')]();})['catch'](function(_0x5465e9){const _0x30f189=_0x176ddd;logger[_0x30f189('0xd')](_0x30f189('0x9'),_0x4059b9,JSON[_0x30f189('0x25')](_0x5465e9)),_0x424b6a[_0x30f189('0x11')]();});else _0x424b6a[_0x176ddd('0x11')]();}});}}catch(_0x11194e){logger['error']('[%s][AMAZONLEX]\x20%s',_0x4059b9,JSON[_0xbf97f2('0x25')](_0x11194e)),_0x424b6a[_0xbf97f2('0x1d')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/autoreply.js b/server/services/routing/server/applications/autoreply.js index 7b5d7bb..d9eaf06 100644 --- a/server/services/routing/server/applications/autoreply.js +++ b/server/services/routing/server/applications/autoreply.js @@ -1 +1 @@ -const a1201_0x1a78=['mail','account','host','consequence','from','routing','../../rpc/whatsappMessage','format','catch','create','secure','then','inReplyTo','upperFirst','Message','startsWith','Autoreply\x20already\x20sent','','isNil','','port','body','html','service','../../rpc/openchannelMessage','Smtp','created','interaction','Re:','AccountId','lodash','../../rpc/smsMessage','out','error','contact','../../../../config/logger','finally'];(function(_0x5a2cae,_0x1a78dd){const _0x3cb0f8=function(_0x3ce300){while(--_0x3ce300){_0x5a2cae['push'](_0x5a2cae['shift']());}};_0x3cb0f8(++_0x1a78dd);}(a1201_0x1a78,0x19f));const a1201_0x3cb0=function(_0x5a2cae,_0x1a78dd){_0x5a2cae=_0x5a2cae-0x0;let _0x3cb0f8=a1201_0x1a78[_0x5a2cae];return _0x3cb0f8;};const _0x4a728a=a1201_0x3cb0;'use strict';const _=require(_0x4a728a('0x2a')),moment=require(_0x4a728a('0xa')),utils=require('./utils'),logger=require(_0x4a728a('0x2f'))(_0x4a728a('0x36')),rpc={'chatMessage':require('../../rpc/chatMessage'),'openchannelMessage':require(_0x4a728a('0x24')),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(_0x4a728a('0x2b')),'faxMessage':require('../../rpc/faxMessage'),'whatsappMessage':require(_0x4a728a('0x37'))},mailRpc=require(_0x4a728a('0xd'));exports[_0x4a728a('0x34')]=function(_0x3ce300,_0x2ed3d0){return function(_0x335499){const _0x292154=a1201_0x3cb0;try{if(_0x2ed3d0[0x0]==='1'&&(_[_0x292154('0x1e')](this[_0x292154('0x27')][_0x292154('0x26')])||!this[_0x292154('0x27')][_0x292154('0x26')]))return logger['info'](_0x292154('0x16'),_0x3ce300,_0x292154('0x7')),_0x335499[_0x292154('0xb')]();const _0x1ddfb8=this[_0x292154('0x9')],_0x118df0={'body':utils[_0x292154('0x17')](_0x2ed3d0[0x1],this),'ContactId':this[_0x292154('0x2e')]['id'],'sentAt':moment()[_0x292154('0x38')]('YYYY-MM-DD\x20HH:mm:ss'),'direction':_0x292154('0x2c')};this[_0x292154('0x1c')]&&(_0x118df0['to']=this[_0x292154('0x1c')][_0x292154('0x35')]||'',_0x118df0['cc']=this[_0x292154('0x1c')]['cc']||'',_0x118df0[_0x292154('0x35')]=this[_0x292154('0x1c')]['to']||'',_0x118df0[_0x292154('0x14')]=this['message']['phone']||'',_0x118df0[_0x292154('0x10')]=!![],this[_0x292154('0x1c')][_0x292154('0x13')]&&(_0x118df0[_0x292154('0x13')]='',_0x118df0[_0x292154('0x13')]+=_[_0x292154('0x6')](this[_0x292154('0x1c')][_0x292154('0x13')],_0x292154('0x28'))?'':_0x292154('0x11'),_0x118df0['subject']+=this['message'][_0x292154('0x13')]));this[_0x292154('0x9')]==='chat'?_0x118df0[_0x292154('0xc')]=this[_0x292154('0x32')]['id']:_0x118df0[_[_0x292154('0x4')](this[_0x292154('0x9')])+_0x292154('0x29')]=this['account']['id'];_0x118df0[_[_0x292154('0x4')](this[_0x292154('0x9')])+'InteractionId']=this['interaction']['id'];if(rpc[this[_0x292154('0x9')]+_0x292154('0x5')]){if(this[_0x292154('0x9')]===_0x292154('0x31')){const _0xeb98ae={'tls':{'rejectUnauthorized':![]}};return this[_0x292154('0x32')][_0x292154('0x25')][_0x292154('0x23')]?_0xeb98ae['service']=this['account']['Smtp'][_0x292154('0x23')]:(_0xeb98ae[_0x292154('0x33')]=this[_0x292154('0x32')][_0x292154('0x25')][_0x292154('0x33')],_0xeb98ae['port']=this[_0x292154('0x32')][_0x292154('0x25')][_0x292154('0x20')],_0xeb98ae[_0x292154('0x1')]=this['account'][_0x292154('0x25')][_0x292154('0x1')]),this[_0x292154('0x32')][_0x292154('0x25')][_0x292154('0x15')]&&(_0xeb98ae['auth']={'user':this['account']['Smtp'][_0x292154('0x18')],'pass':this[_0x292154('0x32')][_0x292154('0x25')][_0x292154('0xe')]}),_0x118df0[_0x292154('0x3')]=this[_0x292154('0x1c')][_0x292154('0x1b')],_0x118df0[_0x292154('0x22')]=_0x292154('0x1d')+_['replace'](_0x118df0[_0x292154('0x21')],_0x292154('0x8'),_0x292154('0x12'))+_0x292154('0x1f'),mailRpc['sendMailMessage'](_0xeb98ae,_0x118df0)[_0x292154('0x2')](function(_0x464ec8){const _0x4cddde=_0x292154;return logger['info']('[%s][AUTOREPLY]\x20SMTP\x20SENT',_0x3ce300),_0x118df0[_0x4cddde('0x1b')]=_0x464ec8[_0x4cddde('0x1c')][_0x4cddde('0x1b')],rpc[_0x1ddfb8+_0x4cddde('0x5')][_0x4cddde('0x0')](_0x118df0);})[_0x292154('0x2')](function(_0x4a38bb){const _0x2f1e62=_0x292154;logger[_0x2f1e62('0x19')](_0x2f1e62('0x16'),_0x3ce300,JSON[_0x2f1e62('0xf')](_0x4a38bb));})[_0x292154('0x39')](function(_0xfe31ff){const _0x1c28b9=_0x292154;logger[_0x1c28b9('0x2d')](_0x1c28b9('0x1a'),_0x3ce300,JSON[_0x1c28b9('0xf')](_0xfe31ff));})['finally'](function(){const _0x535acb=_0x292154;_0x335499[_0x535acb('0xb')]();});}else return rpc[this[_0x292154('0x9')]+_0x292154('0x5')]['create'](_0x118df0)[_0x292154('0x2')](function(){const _0x4aa8ba=_0x292154;logger[_0x4aa8ba('0x19')](_0x4aa8ba('0x16'),_0x3ce300,_0x118df0[_0x4aa8ba('0x21')]);})[_0x292154('0x39')](function(_0x131ea6){const _0x5bd2d6=_0x292154;logger[_0x5bd2d6('0x2d')](_0x5bd2d6('0x16'),_0x3ce300,JSON['stringify'](_0x131ea6));})[_0x292154('0x30')](function(){const _0x5d6273=_0x292154;_0x335499[_0x5d6273('0xb')]();});}}catch(_0x41bcc1){logger[_0x292154('0x2d')]('[%s][AUTOREPLY]\x20%s',_0x3ce300,JSON['stringify'](_0x41bcc1)),_0x335499['stop']();}};}; \ No newline at end of file +const a1201_0x3bb1=['host','','../../rpc/mailMessage','stop','upperFirst','../../rpc/faxMessage','finally','routing','inReplyTo','isNil','InteractionId','../../rpc/smsMessage','../../mailRpc','consequence','read','then','channel','format','../../rpc/chatMessage','Re:','../../../../config/logger','account','Message','port','Smtp','[%s][AUTOREPLY]\x20%s','Autoreply\x20already\x20sent','user','message','messageId','stringify','../../rpc/openchannelMessage','body','startsWith','next','pass','html','out','created','auth','',mailRpc[_0x309c9e('0x1e')](_0x23a34d,_0x26c12d)[_0x309c9e('0x34')](function(_0x3f69b2){const _0x2a62b6=_0x309c9e;return logger[_0x2a62b6('0x16')](_0x2a62b6('0x21'),_0x18e779),_0x26c12d['messageId']=_0x3f69b2['message'][_0x2a62b6('0x2')],rpc[_0x32f7b8+'Message'][_0x2a62b6('0x15')](_0x26c12d);})[_0x309c9e('0x34')](function(_0x379ef5){const _0x344427=_0x309c9e;logger[_0x344427('0x16')](_0x344427('0x3e'),_0x18e779,JSON[_0x344427('0x3')](_0x379ef5));})[_0x309c9e('0x10')](function(_0x12395d){const _0x5b7e9c=_0x309c9e;logger[_0x5b7e9c('0x25')]('[RPC][%s][AUTOREPLY]\x20%s',_0x18e779,JSON[_0x5b7e9c('0x3')](_0x12395d));})[_0x309c9e('0x2b')](function(){const _0x5e589a=_0x309c9e;_0xc3b776[_0x5e589a('0x7')]();});}else return rpc[this['channel']+_0x309c9e('0x3b')][_0x309c9e('0x15')](_0x26c12d)['then'](function(){const _0xea688d=_0x309c9e;logger[_0xea688d('0x16')](_0xea688d('0x3e'),_0x18e779,_0x26c12d[_0xea688d('0x5')]);})['catch'](function(_0x25112e){const _0x3eb692=_0x309c9e;logger['error'](_0x3eb692('0x3e'),_0x18e779,JSON['stringify'](_0x25112e));})[_0x309c9e('0x2b')](function(){const _0x16ca3b=_0x309c9e;_0xc3b776[_0x16ca3b('0x7')]();});}}catch(_0x2ab133){logger[_0x309c9e('0x25')](_0x309c9e('0x3e'),_0x18e779,JSON[_0x309c9e('0x3')](_0x2ab133)),_0xc3b776[_0x309c9e('0x28')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/close.js b/server/services/routing/server/applications/close.js index 1512e3f..ccdd3ac 100644 --- a/server/services/routing/server/applications/close.js +++ b/server/services/routing/server/applications/close.js @@ -1 +1 @@ -const a1202_0x3e21=['Interaction','../../../../config/logger','../../rpc/faxInteraction','../../rpc/chatInteraction','../../rpc/mailInteraction','../../rpc/openchannelInteraction','update','[%s][CLOSE]\x20interaction\x20%s\x20has\x20been\x20closed!','moment','channel','info','error','catch','interaction','routing','format','../../rpc/whatsappInteraction','[%s][CLOSE]\x20reason\x20%s','then','YYYY-MM-DD\x20HH:mm:ss','[%s][CLOSE]\x20%s','stringify','stop'];(function(_0x3b8236,_0x3e2188){const _0x465a72=function(_0x59fe51){while(--_0x59fe51){_0x3b8236['push'](_0x3b8236['shift']());}};_0x465a72(++_0x3e2188);}(a1202_0x3e21,0x19f));const a1202_0x465a=function(_0x3b8236,_0x3e2188){_0x3b8236=_0x3b8236-0x0;let _0x465a72=a1202_0x3e21[_0x3b8236];return _0x465a72;};const _0x1dc41d=a1202_0x465a;'use strict';const moment=require(_0x1dc41d('0x7')),logger=require(_0x1dc41d('0x0'))(_0x1dc41d('0xd')),rpc={'chatInteraction':require(_0x1dc41d('0x2')),'openchannelInteraction':require(_0x1dc41d('0x4')),'smsInteraction':require('../../rpc/smsInteraction'),'mailInteraction':require(_0x1dc41d('0x3')),'faxInteraction':require(_0x1dc41d('0x1')),'whatsappInteraction':require(_0x1dc41d('0xf'))};exports['consequence']=function(_0x59fe51,_0x1beda8,_0x1e793b,_0x15070d){return function(_0x35942d){const _0x23569d=a1202_0x465a;try{logger[_0x23569d('0x9')](_0x23569d('0x10'),_0x59fe51,_0x1beda8[0x0]);const _0x51d851={'closed':0x1,'closedAt':moment()[_0x23569d('0xe')](_0x23569d('0x12')),'closeReason':'system','disposition':_0x1beda8[0x0]};rpc[_0x15070d[_0x23569d('0x8')]+_0x23569d('0x16')]&&rpc[_0x15070d['channel']+_0x23569d('0x16')][_0x23569d('0x5')](_0x15070d[_0x23569d('0xc')]['id'],_0x51d851)[_0x23569d('0x11')](function(){const _0x55b5e3=_0x23569d;logger['info'](_0x55b5e3('0x6'),_0x59fe51,_0x15070d[_0x55b5e3('0xc')]['id']);})[_0x23569d('0xb')](function(_0x209fe6){const _0x4d812c=_0x23569d;logger[_0x4d812c('0xa')](_0x4d812c('0x13'),_0x59fe51,JSON[_0x4d812c('0x14')](_0x209fe6));})['finally'](function(){_0x35942d['stop']();});}catch(_0x309d80){logger['error'](_0x23569d('0x13'),_0x59fe51,JSON[_0x23569d('0x14')](_0x309d80)),_0x35942d[_0x23569d('0x15')]();}};}; \ No newline at end of file +const a1202_0x41f4=['[%s][CLOSE]\x20%s','then','[%s][CLOSE]\x20interaction\x20%s\x20has\x20been\x20closed!','consequence','interaction','routing','../../rpc/chatInteraction','moment','YYYY-MM-DD\x20HH:mm:ss','../../rpc/smsInteraction','../../rpc/whatsappInteraction','../../rpc/openchannelInteraction','info','channel','stop','Interaction','[%s][CLOSE]\x20reason\x20%s','error','system','catch'];(function(_0x44978d,_0x41f4fc){const _0x2ee837=function(_0x5a8e05){while(--_0x5a8e05){_0x44978d['push'](_0x44978d['shift']());}};_0x2ee837(++_0x41f4fc);}(a1202_0x41f4,0x95));const a1202_0x2ee8=function(_0x44978d,_0x41f4fc){_0x44978d=_0x44978d-0x0;let _0x2ee837=a1202_0x41f4[_0x44978d];return _0x2ee837;};const _0x5aa898=a1202_0x2ee8;'use strict';const moment=require(_0x5aa898('0x12')),logger=require('../../../../config/logger')(_0x5aa898('0x10')),rpc={'chatInteraction':require(_0x5aa898('0x11')),'openchannelInteraction':require(_0x5aa898('0x2')),'smsInteraction':require(_0x5aa898('0x0')),'mailInteraction':require('../../rpc/mailInteraction'),'faxInteraction':require('../../rpc/faxInteraction'),'whatsappInteraction':require(_0x5aa898('0x1'))};exports[_0x5aa898('0xe')]=function(_0x5a8e05,_0x22827d,_0xdb1e75,_0x18bdf4){return function(_0x322603){const _0x2128c2=a1202_0x2ee8;try{logger[_0x2128c2('0x3')](_0x2128c2('0x7'),_0x5a8e05,_0x22827d[0x0]);const _0x51a552={'closed':0x1,'closedAt':moment()['format'](_0x2128c2('0x13')),'closeReason':_0x2128c2('0x9'),'disposition':_0x22827d[0x0]};rpc[_0x18bdf4[_0x2128c2('0x4')]+'Interaction']&&rpc[_0x18bdf4['channel']+_0x2128c2('0x6')]['update'](_0x18bdf4['interaction']['id'],_0x51a552)[_0x2128c2('0xc')](function(){const _0x22e153=_0x2128c2;logger[_0x22e153('0x3')](_0x22e153('0xd'),_0x5a8e05,_0x18bdf4[_0x22e153('0xf')]['id']);})[_0x2128c2('0xa')](function(_0x23c0cf){const _0x50a91d=_0x2128c2;logger['error'](_0x50a91d('0xb'),_0x5a8e05,JSON['stringify'](_0x23c0cf));})['finally'](function(){const _0x3221e1=_0x2128c2;_0x322603[_0x3221e1('0x5')]();});}catch(_0x5bd859){logger[_0x2128c2('0x8')]('[%s][CLOSE]\x20%s',_0x5a8e05,JSON['stringify'](_0x5bd859)),_0x322603[_0x2128c2('0x5')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/dialogflow.js b/server/services/routing/server/applications/dialogflow.js index 59658d0..57f1d69 100644 --- a/server/services/routing/server/applications/dialogflow.js +++ b/server/services/routing/server/applications/dialogflow.js @@ -1 +1 @@ -const a1203_0x55f4=['md5','finally','YYYY-MM-DD\x20HH:mm:ss','create','../../rpc/smsMessage','interaction','info','../../rpc/whatsappMessage','next','contact','then','error','./utils','upperFirst','../../rpc/openchannelMessage','catch','format','../../rpc/mailMessage','lodash','../../../../config/logger','stop','routing','[%s][DIALOGFLOW]\x20%s','message','../../rpc/chatMessage','stringify','fulfillment','apiai-promise','UserId','account','body','getMustacheRender','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','result','ChatWebsiteId','chat','Message'];(function(_0xfbbf1f,_0x55f487){const _0x1495d5=function(_0x44b5fc){while(--_0x44b5fc){_0xfbbf1f['push'](_0xfbbf1f['shift']());}};_0x1495d5(++_0x55f487);}(a1203_0x55f4,0x1ce));const a1203_0x1495=function(_0xfbbf1f,_0x55f487){_0xfbbf1f=_0xfbbf1f-0x0;let _0x1495d5=a1203_0x55f4[_0xfbbf1f];return _0x1495d5;};const _0x1a5ab9=a1203_0x1495;'use strict';const _=require(_0x1a5ab9('0x0')),moment=require('moment'),apiai=require(_0x1a5ab9('0x9')),md5=require(_0x1a5ab9('0x13')),utils=require(_0x1a5ab9('0x1f')),logger=require(_0x1a5ab9('0x1'))(_0x1a5ab9('0x3')),rpc={'chatMessage':require(_0x1a5ab9('0x6')),'openchannelMessage':require(_0x1a5ab9('0x21')),'mailMessage':require(_0x1a5ab9('0x24')),'smsMessage':require(_0x1a5ab9('0x17')),'faxMessage':require('../../rpc/faxMessage'),'whatsappMessage':require(_0x1a5ab9('0x1a'))};exports['consequence']=function(_0x44b5fc,_0x55af55){return function(_0x55a937){const _0x585231=a1203_0x1495;try{if(!_['isNil'](this[_0x585231('0x18')][_0x585231('0xa')]))return logger[_0x585231('0x19')]('[%s][DIALOGFLOW]\x20%s',_0x44b5fc,_0x585231('0xe')),_0x55a937[_0x585231('0x1b')]();const _0x71bb6c={'ContactId':this[_0x585231('0x1c')]['id'],'sentAt':moment()[_0x585231('0x23')](_0x585231('0x15')),'direction':'out'},_0x2a5448=this['channel'];_0x2a5448===_0x585231('0x11')?_0x71bb6c[_0x585231('0x10')]=this['account']['id']:_0x71bb6c[_['upperFirst'](_0x2a5448)+'AccountId']=this[_0x585231('0xb')]['id'];_0x71bb6c[_[_0x585231('0x20')](_0x2a5448)+'InteractionId']=this[_0x585231('0x18')]['id'];if(this[_0x585231('0x18')]['created']){const _0x157940=_0x55af55[0x2];if(!_['isEmpty'](_0x157940))return _0x71bb6c[_0x585231('0xc')]=utils[_0x585231('0xd')](_0x157940,this),rpc[_0x2a5448+_0x585231('0x12')]['create'](_0x71bb6c)[_0x585231('0x1d')](function(){const _0x3c1e93=_0x585231;logger[_0x3c1e93('0x19')](_0x3c1e93('0x4'),_0x44b5fc,_0x71bb6c['body']);})['catch'](function(_0x5c331c){const _0x186cbc=_0x585231;logger[_0x186cbc('0x1e')](_0x186cbc('0x4'),_0x44b5fc,JSON[_0x186cbc('0x7')](_0x5c331c));})[_0x585231('0x14')](function(){const _0x1d26f0=_0x585231;logger[_0x1d26f0('0x19')]('[%s][DIALOGFLOW]\x20Welcome\x20Message\x20has\x20been\x20sent!',_0x44b5fc),_0x55a937[_0x1d26f0('0x2')]();});else logger['info']('[%s][DIALOGFLOW]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!',_0x44b5fc),_0x55a937[_0x585231('0x2')]();}else{const _0x111c5b=this,_0x45d48=apiai(_0x55af55[0x0],{'language':_0x55af55[0x1]||'en'});return _0x45d48['textRequest'](this[_0x585231('0x5')]['body'],{'sessionId':md5(this[_0x585231('0x18')]['id'])})[_0x585231('0x1d')](function(_0x5efd9f){const _0x4a3579=_0x585231;return _0x111c5b['body']['dialogflow']=_0x5efd9f,_0x71bb6c[_0x4a3579('0xc')]=_0x5efd9f[_0x4a3579('0xf')][_0x4a3579('0x8')]['speech'],rpc[_0x2a5448+_0x4a3579('0x12')][_0x4a3579('0x16')](_0x71bb6c)['then'](function(){const _0x453629=_0x4a3579;logger[_0x453629('0x19')](_0x453629('0x4'),_0x44b5fc,_0x71bb6c[_0x453629('0xc')]),_0x5efd9f[_0x453629('0xf')]['metadata']['endConversation']?_0x55a937[_0x453629('0x1b')]():_0x55a937['stop']();})[_0x4a3579('0x22')](function(_0x2573a7){const _0x4a262b=_0x4a3579;logger[_0x4a262b('0x1e')](_0x4a262b('0x4'),_0x44b5fc,JSON['stringify'](_0x2573a7)),_0x55a937[_0x4a262b('0x1b')]();});})[_0x585231('0x22')](function(_0x4bccff){const _0x139fe5=_0x585231;logger[_0x139fe5('0x1e')](_0x139fe5('0x4'),_0x44b5fc,_0x4bccff[_0x139fe5('0x5')]),_0x55a937['next']();});}}catch(_0x41979d){logger[_0x585231('0x1e')](_0x585231('0x4'),_0x44b5fc,JSON[_0x585231('0x7')](_0x41979d)),_0x55a937['stop']();}};}; \ No newline at end of file +const a1203_0x2806=['../../rpc/faxMessage','info','[%s][DIALOGFLOW]\x20%s','chat','error','dialogflow','../../rpc/chatMessage','create','stop','out','moment','result','isNil','YYYY-MM-DD\x20HH:mm:ss','fulfillment','metadata','routing','body','account','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','catch','speech','textRequest','./utils','ChatWebsiteId','format','AccountId','lodash','md5','../../rpc/openchannelMessage','consequence','endConversation','Message','interaction','../../rpc/whatsappMessage','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20has\x20been\x20sent!','../../rpc/mailMessage','stringify','UserId','upperFirst','../../../../config/logger','message','apiai-promise','isEmpty','next','../../rpc/smsMessage','then'];(function(_0x883d79,_0x28069f){const _0x93a851=function(_0x43f8e1){while(--_0x43f8e1){_0x883d79['push'](_0x883d79['shift']());}};_0x93a851(++_0x28069f);}(a1203_0x2806,0x115));const a1203_0x93a8=function(_0x883d79,_0x28069f){_0x883d79=_0x883d79-0x0;let _0x93a851=a1203_0x2806[_0x883d79];return _0x93a851;};const _0x1a844f=a1203_0x93a8;'use strict';const _=require(_0x1a844f('0x20')),moment=require(_0x1a844f('0xf')),apiai=require(_0x1a844f('0x0')),md5=require(_0x1a844f('0x21')),utils=require(_0x1a844f('0x1c')),logger=require(_0x1a844f('0x2d'))(_0x1a844f('0x15')),rpc={'chatMessage':require(_0x1a844f('0xb')),'openchannelMessage':require(_0x1a844f('0x22')),'mailMessage':require(_0x1a844f('0x29')),'smsMessage':require(_0x1a844f('0x3')),'faxMessage':require(_0x1a844f('0x5')),'whatsappMessage':require(_0x1a844f('0x27'))};exports[_0x1a844f('0x23')]=function(_0x43f8e1,_0xb29bd){return function(_0x43cf5f){const _0x55b17e=a1203_0x93a8;try{if(!_[_0x55b17e('0x11')](this[_0x55b17e('0x26')][_0x55b17e('0x2b')]))return logger[_0x55b17e('0x6')](_0x55b17e('0x7'),_0x43f8e1,_0x55b17e('0x18')),_0x43cf5f['next']();const _0x2e17f4={'ContactId':this['contact']['id'],'sentAt':moment()[_0x55b17e('0x1e')](_0x55b17e('0x12')),'direction':_0x55b17e('0xe')},_0x558af3=this['channel'];_0x558af3===_0x55b17e('0x8')?_0x2e17f4[_0x55b17e('0x1d')]=this[_0x55b17e('0x17')]['id']:_0x2e17f4[_[_0x55b17e('0x2c')](_0x558af3)+_0x55b17e('0x1f')]=this[_0x55b17e('0x17')]['id'];_0x2e17f4[_[_0x55b17e('0x2c')](_0x558af3)+'InteractionId']=this[_0x55b17e('0x26')]['id'];if(this[_0x55b17e('0x26')]['created']){const _0x3c76be=_0xb29bd[0x2];if(!_[_0x55b17e('0x1')](_0x3c76be))return _0x2e17f4[_0x55b17e('0x16')]=utils['getMustacheRender'](_0x3c76be,this),rpc[_0x558af3+'Message']['create'](_0x2e17f4)[_0x55b17e('0x4')](function(){const _0x205e9d=_0x55b17e;logger['info'](_0x205e9d('0x7'),_0x43f8e1,_0x2e17f4[_0x205e9d('0x16')]);})[_0x55b17e('0x19')](function(_0x3484e3){const _0x23098e=_0x55b17e;logger[_0x23098e('0x9')](_0x23098e('0x7'),_0x43f8e1,JSON[_0x23098e('0x2a')](_0x3484e3));})['finally'](function(){const _0x19202e=_0x55b17e;logger['info'](_0x19202e('0x28'),_0x43f8e1),_0x43cf5f[_0x19202e('0xd')]();});else logger[_0x55b17e('0x6')]('[%s][DIALOGFLOW]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!',_0x43f8e1),_0x43cf5f['stop']();}else{const _0x4a10eb=this,_0x46bce6=apiai(_0xb29bd[0x0],{'language':_0xb29bd[0x1]||'en'});return _0x46bce6[_0x55b17e('0x1b')](this[_0x55b17e('0x2e')][_0x55b17e('0x16')],{'sessionId':md5(this[_0x55b17e('0x26')]['id'])})[_0x55b17e('0x4')](function(_0x12d44b){const _0x4ba9ac=_0x55b17e;return _0x4a10eb['body'][_0x4ba9ac('0xa')]=_0x12d44b,_0x2e17f4[_0x4ba9ac('0x16')]=_0x12d44b[_0x4ba9ac('0x10')][_0x4ba9ac('0x13')][_0x4ba9ac('0x1a')],rpc[_0x558af3+_0x4ba9ac('0x25')][_0x4ba9ac('0xc')](_0x2e17f4)['then'](function(){const _0x67c621=_0x4ba9ac;logger[_0x67c621('0x6')](_0x67c621('0x7'),_0x43f8e1,_0x2e17f4[_0x67c621('0x16')]),_0x12d44b['result'][_0x67c621('0x14')][_0x67c621('0x24')]?_0x43cf5f[_0x67c621('0x2')]():_0x43cf5f[_0x67c621('0xd')]();})[_0x4ba9ac('0x19')](function(_0x37c209){const _0x4c4634=_0x4ba9ac;logger[_0x4c4634('0x9')](_0x4c4634('0x7'),_0x43f8e1,JSON[_0x4c4634('0x2a')](_0x37c209)),_0x43cf5f[_0x4c4634('0x2')]();});})[_0x55b17e('0x19')](function(_0x1e263d){const _0x4dfb11=_0x55b17e;logger[_0x4dfb11('0x9')](_0x4dfb11('0x7'),_0x43f8e1,_0x1e263d[_0x4dfb11('0x2e')]),_0x43cf5f[_0x4dfb11('0x2')]();});}}catch(_0x4b4bcc){logger[_0x55b17e('0x9')](_0x55b17e('0x7'),_0x43f8e1,JSON[_0x55b17e('0x2a')](_0x4b4bcc)),_0x43cf5f[_0x55b17e('0xd')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/gotoif.js b/server/services/routing/server/applications/gotoif.js index 2f5a3ed..4a9843c 100644 --- a/server/services/routing/server/applications/gotoif.js +++ b/server/services/routing/server/applications/gotoif.js @@ -1 +1 @@ -const a1204_0x9d02=['stringify','lodash','rules','findIndex','join','priority\x20true\x20is\x20a\x20number','length','getMustacheRender','routing','consequence','priorityTrue','validate','info','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','stop','error','string','html-to-text','fromString','replace','[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','priority\x20false\x20is\x20a\x20number','condition','next','number','message','./utils','[%s][GOTOIF]\x20eval\x20error:\x20%s','[%s][GOTOIF]\x20%s'];(function(_0x464e3f,_0x9d02f2){const _0x3f9357=function(_0x4a9eb1){while(--_0x4a9eb1){_0x464e3f['push'](_0x464e3f['shift']());}};_0x3f9357(++_0x9d02f2);}(a1204_0x9d02,0x6d));const a1204_0x3f93=function(_0x464e3f,_0x9d02f2){_0x464e3f=_0x464e3f-0x0;let _0x3f9357=a1204_0x9d02[_0x464e3f];return _0x3f9357;};const _0x2a6baf=a1204_0x3f93;'use strict';const schema=require(_0x2a6baf('0x16')),_=require(_0x2a6baf('0xc')),htmlToText=require(_0x2a6baf('0x1d')),utils=require(_0x2a6baf('0x8')),logger=require('../../../../config/logger')(_0x2a6baf('0x13')),gotoif=schema({'condition':{'type':_0x2a6baf('0x1c'),'required':!![],'message':_0x2a6baf('0x19')},'priorityTrue':{'type':_0x2a6baf('0x6'),'message':_0x2a6baf('0x10')},'priorityFalse':{'type':_0x2a6baf('0x6'),'message':_0x2a6baf('0x3')}});exports[_0x2a6baf('0x14')]=function(_0x4a9eb1,_0x347626){return function(_0x239ff7){const _0x5e3f1c=a1204_0x3f93;try{const _0x399361={'condition':htmlToText[_0x5e3f1c('0x0')](utils[_0x5e3f1c('0x12')](_0x347626[0x0],this),{'wordwrap':![]})[_0x5e3f1c('0x1')](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x347626[0x1],'priorityFalse':_0x347626[0x2]},_0x5fa58d=gotoif['validate'](_0x399361,{'typecast':!![]});if(_0x5fa58d[_0x5e3f1c('0x11')])logger[_0x5e3f1c('0x1b')](_0x5e3f1c('0xa'),_0x4a9eb1,_['map'](_0x5fa58d,_0x5e3f1c('0x7'))[_0x5e3f1c('0xf')](',\x20')),_0x239ff7[_0x5e3f1c('0x1a')]();else try{const _0x16b780=eval('('+_0x399361[_0x5e3f1c('0x4')]+')'),_0x6827a8=_0x16b780?_0x399361[_0x5e3f1c('0x15')]:_0x399361['priorityFalse'];logger[_0x5e3f1c('0x17')]('[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s',_0x4a9eb1,_0x399361['condition'],_0x16b780,_0x6827a8||_0x5e3f1c('0x5'));if(_0x6827a8){const _0x28c879=_[_0x5e3f1c('0xe')](_0x239ff7[_0x5e3f1c('0xd')](),{'p':_0x6827a8});_0x28c879>=0x0?(logger[_0x5e3f1c('0x17')](_0x5e3f1c('0x18'),_0x4a9eb1,_0x6827a8||_0x5e3f1c('0x5'),_0x28c879),_0x239ff7['next'](_0x28c879)):(logger[_0x5e3f1c('0x17')](_0x5e3f1c('0x2'),_0x4a9eb1,_0x6827a8||_0x5e3f1c('0x5')),_0x239ff7[_0x5e3f1c('0x1a')]());}else _0x239ff7['next']();}catch(_0x185a58){logger[_0x5e3f1c('0x1b')](_0x5e3f1c('0x9'),_0x4a9eb1,_0x185a58[_0x5e3f1c('0x7')]),_0x239ff7[_0x5e3f1c('0x1a')]();}}catch(_0x371bf9){logger[_0x5e3f1c('0x1b')](_0x5e3f1c('0xa'),_0x4a9eb1,JSON[_0x5e3f1c('0xb')](_0x371bf9)),_0x239ff7[_0x5e3f1c('0x1a')]();}};}; \ No newline at end of file +const a1204_0x1d6a=['next','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','validate','priority\x20true\x20is\x20a\x20number','stringify','stop','rules','map','[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','string','../../../../config/logger','message','error','condition','[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s','getMustacheRender','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','[%s][GOTOIF]\x20%s','number','./utils','consequence','info','findIndex','priorityTrue','lodash','replace','priorityFalse','length','html-to-text'];(function(_0x520bb7,_0x1d6a7a){const _0x18b4de=function(_0x36f1b1){while(--_0x36f1b1){_0x520bb7['push'](_0x520bb7['shift']());}};_0x18b4de(++_0x1d6a7a);}(a1204_0x1d6a,0x94));const a1204_0x18b4=function(_0x520bb7,_0x1d6a7a){_0x520bb7=_0x520bb7-0x0;let _0x18b4de=a1204_0x1d6a[_0x520bb7];return _0x18b4de;};const _0x1efa4e=a1204_0x18b4;'use strict';const schema=require(_0x1efa4e('0x1c')),_=require(_0x1efa4e('0x15')),htmlToText=require(_0x1efa4e('0x19')),utils=require(_0x1efa4e('0x10')),logger=require(_0x1efa4e('0x7'))('routing'),gotoif=schema({'condition':{'type':_0x1efa4e('0x6'),'required':!![],'message':_0x1efa4e('0x1b')},'priorityTrue':{'type':_0x1efa4e('0xf'),'message':_0x1efa4e('0x0')},'priorityFalse':{'type':'number','message':'priority\x20false\x20is\x20a\x20number'}});exports[_0x1efa4e('0x11')]=function(_0x36f1b1,_0x5c6af2){return function(_0x5f0047){const _0x1a0311=a1204_0x18b4;try{const _0xe99cef={'condition':htmlToText['fromString'](utils[_0x1a0311('0xc')](_0x5c6af2[0x0],this),{'wordwrap':![]})[_0x1a0311('0x16')](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x5c6af2[0x1],'priorityFalse':_0x5c6af2[0x2]},_0x1fb780=gotoif[_0x1a0311('0x1c')](_0xe99cef,{'typecast':!![]});if(_0x1fb780[_0x1a0311('0x18')])logger[_0x1a0311('0x9')](_0x1a0311('0xe'),_0x36f1b1,_[_0x1a0311('0x4')](_0x1fb780,_0x1a0311('0x8'))['join'](',\x20')),_0x5f0047[_0x1a0311('0x2')]();else try{const _0x8aa9d8=eval('('+_0xe99cef[_0x1a0311('0xa')]+')'),_0x56c487=_0x8aa9d8?_0xe99cef[_0x1a0311('0x14')]:_0xe99cef[_0x1a0311('0x17')];logger[_0x1a0311('0x12')](_0x1a0311('0xb'),_0x36f1b1,_0xe99cef['condition'],_0x8aa9d8,_0x56c487||'next');if(_0x56c487){const _0x236411=_[_0x1a0311('0x13')](_0x5f0047[_0x1a0311('0x3')](),{'p':_0x56c487});_0x236411>=0x0?(logger[_0x1a0311('0x12')](_0x1a0311('0xd'),_0x36f1b1,_0x56c487||_0x1a0311('0x1a'),_0x236411),_0x5f0047[_0x1a0311('0x1a')](_0x236411)):(logger[_0x1a0311('0x12')](_0x1a0311('0x5'),_0x36f1b1,_0x56c487||'next'),_0x5f0047[_0x1a0311('0x2')]());}else _0x5f0047[_0x1a0311('0x1a')]();}catch(_0x4f1183){logger[_0x1a0311('0x9')]('[%s][GOTOIF]\x20eval\x20error:\x20%s',_0x36f1b1,_0x4f1183[_0x1a0311('0x8')]),_0x5f0047[_0x1a0311('0x2')]();}}catch(_0x369676){logger[_0x1a0311('0x9')]('[%s][GOTOIF]\x20%s',_0x36f1b1,JSON[_0x1a0311('0x1')](_0x369676)),_0x5f0047['stop']();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/gotop.js b/server/services/routing/server/applications/gotop.js index dc4164d..0718032 100644 --- a/server/services/routing/server/applications/gotop.js +++ b/server/services/routing/server/applications/gotop.js @@ -1 +1 @@ -const a1205_0x2a34=['[%s][GOTOP]\x20priority\x20%s','join','message','../../../../config/logger','info','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','validate','priority','error','lodash','stop','routing','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','map','[%s][GOTOP]\x20%s'];(function(_0x1f4cd1,_0x2a341d){const _0x4a143c=function(_0xafacc2){while(--_0xafacc2){_0x1f4cd1['push'](_0x1f4cd1['shift']());}};_0x4a143c(++_0x2a341d);}(a1205_0x2a34,0x184));const a1205_0x4a14=function(_0x1f4cd1,_0x2a341d){_0x1f4cd1=_0x1f4cd1-0x0;let _0x4a143c=a1205_0x2a34[_0x1f4cd1];return _0x4a143c;};const _0x494337=a1205_0x4a14;'use strict';const schema=require(_0x494337('0x3')),_=require(_0x494337('0x6')),logger=require(_0x494337('0xf'))(_0x494337('0x8')),gotop=schema({'priority':{'type':'number','required':!![],'message':_0x494337('0x9')}});exports['consequence']=function(_0xafacc2,_0x33f299){return function(_0x736c5a){const _0x237706=a1205_0x4a14;try{const _0x10c5c5={'priority':_0x33f299[0x0]},_0x53a3c5=gotop[_0x237706('0x3')](_0x10c5c5,{'typecast':!![]});if(_0x53a3c5['length'])logger[_0x237706('0x5')](_0x237706('0xb'),_0xafacc2,_[_0x237706('0xa')](_0x53a3c5,_0x237706('0xe'))[_0x237706('0xd')](',\x20')),_0x736c5a[_0x237706('0x7')]();else{logger[_0x237706('0x0')](_0x237706('0xc'),_0xafacc2,_0x10c5c5[_0x237706('0x4')]);if(_0x10c5c5[_0x237706('0x4')]){const _0x5dc2fb=_['findIndex'](_0x736c5a['rules'](),{'p':_0x10c5c5[_0x237706('0x4')]});_0x5dc2fb>=0x0?(logger[_0x237706('0x0')]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0xafacc2,_0x10c5c5[_0x237706('0x4')]||'next',_0x5dc2fb),_0x736c5a[_0x237706('0x1')](_0x5dc2fb)):(logger['info'](_0x237706('0x2'),_0xafacc2,_0x10c5c5[_0x237706('0x4')]||_0x237706('0x1')),_0x736c5a['stop']());}else _0x736c5a[_0x237706('0x1')]();}}catch(_0x59a829){logger['error'](_0x237706('0xb'),_0xafacc2,JSON['stringify'](_0x59a829)),_0x736c5a[_0x237706('0x7')]();}};}; \ No newline at end of file +const a1205_0x4dd4=['validate','info','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','[%s][GOTOP]\x20priority\x20%s','routing','../../../../config/logger','number','findIndex','priority','message','join','next','stop','[%s][GOTOP]\x20%s','map','length','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','consequence','error'];(function(_0x9e6bdb,_0x4dd48b){const _0x3a7861=function(_0x29579f){while(--_0x29579f){_0x9e6bdb['push'](_0x9e6bdb['shift']());}};_0x3a7861(++_0x4dd48b);}(a1205_0x4dd4,0x1f0));const a1205_0x3a78=function(_0x9e6bdb,_0x4dd48b){_0x9e6bdb=_0x9e6bdb-0x0;let _0x3a7861=a1205_0x4dd4[_0x9e6bdb];return _0x3a7861;};const _0xda56e0=a1205_0x3a78;'use strict';const schema=require(_0xda56e0('0x11')),_=require('lodash'),logger=require(_0xda56e0('0x3'))(_0xda56e0('0x2')),gotop=schema({'priority':{'type':_0xda56e0('0x4'),'required':!![],'message':'priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required'}});exports[_0xda56e0('0xf')]=function(_0x29579f,_0x448a05){return function(_0x59112e){const _0x5be857=a1205_0x3a78;try{const _0x3c254a={'priority':_0x448a05[0x0]},_0x39fa23=gotop['validate'](_0x3c254a,{'typecast':!![]});if(_0x39fa23[_0x5be857('0xd')])logger[_0x5be857('0x10')](_0x5be857('0xb'),_0x29579f,_[_0x5be857('0xc')](_0x39fa23,_0x5be857('0x7'))[_0x5be857('0x8')](',\x20')),_0x59112e[_0x5be857('0xa')]();else{logger[_0x5be857('0x12')](_0x5be857('0x1'),_0x29579f,_0x3c254a[_0x5be857('0x6')]);if(_0x3c254a['priority']){const _0x425719=_[_0x5be857('0x5')](_0x59112e['rules'](),{'p':_0x3c254a[_0x5be857('0x6')]});_0x425719>=0x0?(logger['info'](_0x5be857('0xe'),_0x29579f,_0x3c254a[_0x5be857('0x6')]||_0x5be857('0x9'),_0x425719),_0x59112e[_0x5be857('0x9')](_0x425719)):(logger[_0x5be857('0x12')](_0x5be857('0x0'),_0x29579f,_0x3c254a[_0x5be857('0x6')]||_0x5be857('0x9')),_0x59112e['stop']());}else _0x59112e['next']();}}catch(_0x1e1bd){logger[_0x5be857('0x10')](_0x5be857('0xb'),_0x29579f,JSON['stringify'](_0x1e1bd)),_0x59112e[_0x5be857('0xa')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/message.js b/server/services/routing/server/applications/message.js index 434c42c..5720a12 100644 --- a/server/services/routing/server/applications/message.js +++ b/server/services/routing/server/applications/message.js @@ -1 +1 @@ -const a1206_0x4a8f=['catch','info','channel','error','stop','next','[%s][MESSAGE]\x20%s','../../rpc/whatsappMessage','then','body','AccountId','account','chat','lodash','upperFirst','stringify','getMustacheRender','ChatWebsiteId','../../../../config/logger','consequence','../../rpc/chatMessage','./utils','../../rpc/faxMessage'];(function(_0x30e534,_0x4a8f00){const _0x3cc2f4=function(_0x1afa9d){while(--_0x1afa9d){_0x30e534['push'](_0x30e534['shift']());}};_0x3cc2f4(++_0x4a8f00);}(a1206_0x4a8f,0x150));const a1206_0x3cc2=function(_0x30e534,_0x4a8f00){_0x30e534=_0x30e534-0x0;let _0x3cc2f4=a1206_0x4a8f[_0x30e534];return _0x3cc2f4;};const _0x52bfd5=a1206_0x3cc2;'use strict';const _=require(_0x52bfd5('0x16')),utils=require(_0x52bfd5('0x7')),logger=require(_0x52bfd5('0x4'))('routing'),rpc={'chatMessage':require(_0x52bfd5('0x6')),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require('../../rpc/smsMessage'),'faxMessage':require(_0x52bfd5('0x8')),'whatsappMessage':require(_0x52bfd5('0x10'))};exports[_0x52bfd5('0x5')]=function(_0x1afa9d,_0x5caea4){return function(_0x595f51){const _0x56ae94=a1206_0x3cc2;try{const _0x2cf58b={'body':utils[_0x56ae94('0x2')](_0x5caea4[0x0],this),'ContactId':this['contact']['id']};this[_0x56ae94('0xb')]===_0x56ae94('0x15')?_0x2cf58b[_0x56ae94('0x3')]=this[_0x56ae94('0x14')]['id']:_0x2cf58b[_[_0x56ae94('0x0')](this[_0x56ae94('0xb')])+_0x56ae94('0x13')]=this[_0x56ae94('0x14')]['id'];_0x2cf58b[_[_0x56ae94('0x0')](this[_0x56ae94('0xb')])+'InteractionId']=this['interaction']['id'];if(rpc[this[_0x56ae94('0xb')]+'Message'])return rpc[this[_0x56ae94('0xb')]+'Message']['create'](_0x2cf58b)[_0x56ae94('0x11')](function(){const _0x3789d3=_0x56ae94;logger[_0x3789d3('0xa')](_0x3789d3('0xf'),_0x1afa9d,_0x2cf58b[_0x3789d3('0x12')]),_0x595f51[_0x3789d3('0xe')]();})[_0x56ae94('0x9')](function(_0x4319d5){const _0x5bd7a0=_0x56ae94;logger[_0x5bd7a0('0xc')](_0x5bd7a0('0xf'),_0x1afa9d,JSON[_0x5bd7a0('0x1')](_0x4319d5)),_0x595f51[_0x5bd7a0('0xd')]();});}catch(_0x2fb2ee){logger[_0x56ae94('0xc')]('[%s][MESSAGE]\x20%s',_0x1afa9d,JSON[_0x56ae94('0x1')](_0x2fb2ee)),_0x595f51[_0x56ae94('0xd')]();}};}; \ No newline at end of file +const a1206_0x4794=['create','routing','[%s][MESSAGE]\x20%s','../../rpc/smsMessage','upperFirst','../../rpc/openchannelMessage','../../rpc/chatMessage','Message','../../rpc/whatsappMessage','info','error','channel','account','../../rpc/faxMessage','stringify','getMustacheRender','AccountId','then','./utils','../../../../config/logger','InteractionId','consequence','stop'];(function(_0x330f20,_0x479489){const _0x5e7ab4=function(_0x11c078){while(--_0x11c078){_0x330f20['push'](_0x330f20['shift']());}};_0x5e7ab4(++_0x479489);}(a1206_0x4794,0x114));const a1206_0x5e7a=function(_0x330f20,_0x479489){_0x330f20=_0x330f20-0x0;let _0x5e7ab4=a1206_0x4794[_0x330f20];return _0x5e7ab4;};const _0x26bf04=a1206_0x5e7a;'use strict';const _=require('lodash'),utils=require(_0x26bf04('0x12')),logger=require(_0x26bf04('0x13'))(_0x26bf04('0x1')),rpc={'chatMessage':require(_0x26bf04('0x6')),'openchannelMessage':require(_0x26bf04('0x5')),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(_0x26bf04('0x3')),'faxMessage':require(_0x26bf04('0xd')),'whatsappMessage':require(_0x26bf04('0x8'))};exports[_0x26bf04('0x15')]=function(_0x11c078,_0x402b1d){return function(_0x4a0b15){const _0x217cee=a1206_0x5e7a;try{const _0x2eb2f9={'body':utils[_0x217cee('0xf')](_0x402b1d[0x0],this),'ContactId':this['contact']['id']};this['channel']==='chat'?_0x2eb2f9['ChatWebsiteId']=this['account']['id']:_0x2eb2f9[_[_0x217cee('0x4')](this[_0x217cee('0xb')])+_0x217cee('0x10')]=this[_0x217cee('0xc')]['id'];_0x2eb2f9[_[_0x217cee('0x4')](this['channel'])+_0x217cee('0x14')]=this['interaction']['id'];if(rpc[this['channel']+_0x217cee('0x7')])return rpc[this[_0x217cee('0xb')]+'Message'][_0x217cee('0x0')](_0x2eb2f9)[_0x217cee('0x11')](function(){const _0x5177b9=_0x217cee;logger[_0x5177b9('0x9')]('[%s][MESSAGE]\x20%s',_0x11c078,_0x2eb2f9['body']),_0x4a0b15['next']();})['catch'](function(_0x3b25f8){const _0x438d59=_0x217cee;logger['error'](_0x438d59('0x2'),_0x11c078,JSON[_0x438d59('0xe')](_0x3b25f8)),_0x4a0b15[_0x438d59('0x16')]();});}catch(_0x12191f){logger[_0x217cee('0xa')]('[%s][MESSAGE]\x20%s',_0x11c078,JSON[_0x217cee('0xe')](_0x12191f)),_0x4a0b15[_0x217cee('0x16')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/noop.js b/server/services/routing/server/applications/noop.js index df27d30..e3f0d04 100644 --- a/server/services/routing/server/applications/noop.js +++ b/server/services/routing/server/applications/noop.js @@ -1 +1 @@ -const a1207_0x1b62=['error','stop','getMustacheRender','consequence','routing','next','info','../../../../config/logger'];(function(_0x39ecac,_0x1b62f9){const _0x250001=function(_0x5736c8){while(--_0x5736c8){_0x39ecac['push'](_0x39ecac['shift']());}};_0x250001(++_0x1b62f9);}(a1207_0x1b62,0xb7));const a1207_0x2500=function(_0x39ecac,_0x1b62f9){_0x39ecac=_0x39ecac-0x0;let _0x250001=a1207_0x1b62[_0x39ecac];return _0x250001;};const _0x50c1f0=a1207_0x2500;'use strict';const utils=require('./utils'),logger=require(_0x50c1f0('0x0'))(_0x50c1f0('0x5'));exports[_0x50c1f0('0x4')]=function(_0x5736c8,_0x1c9bfc){return function(_0x2c9032){const _0x40440d=a1207_0x2500;try{logger[_0x40440d('0x7')]('[%s][NOOP]\x20%s',_0x5736c8,utils[_0x40440d('0x3')](_0x1c9bfc[0x0],this)),_0x2c9032[_0x40440d('0x6')]();}catch(_0xd0e699){logger[_0x40440d('0x1')]('[%s][NOOP]\x20%s',_0x5736c8,JSON['stringify'](_0xd0e699)),_0x2c9032[_0x40440d('0x2')]();}};}; \ No newline at end of file +const a1207_0x4ebb=['stringify','./utils','[%s][NOOP]\x20%s','stop','next','info','getMustacheRender'];(function(_0xed582c,_0x4ebb12){const _0x5a2107=function(_0x2e7cc3){while(--_0x2e7cc3){_0xed582c['push'](_0xed582c['shift']());}};_0x5a2107(++_0x4ebb12);}(a1207_0x4ebb,0xfa));const a1207_0x5a21=function(_0xed582c,_0x4ebb12){_0xed582c=_0xed582c-0x0;let _0x5a2107=a1207_0x4ebb[_0xed582c];return _0x5a2107;};const _0x4c7c4e=a1207_0x5a21;'use strict';const utils=require(_0x4c7c4e('0x3')),logger=require('../../../../config/logger')('routing');exports['consequence']=function(_0x2e7cc3,_0x3f7eb0){return function(_0x2ca487){const _0xa1f87c=a1207_0x5a21;try{logger[_0xa1f87c('0x0')](_0xa1f87c('0x4'),_0x2e7cc3,utils[_0xa1f87c('0x1')](_0x3f7eb0[0x0],this)),_0x2ca487[_0xa1f87c('0x6')]();}catch(_0x13330c){logger['error']('[%s][NOOP]\x20%s',_0x2e7cc3,JSON[_0xa1f87c('0x2')](_0x13330c)),_0x2ca487[_0xa1f87c('0x5')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/queue.js b/server/services/routing/server/applications/queue.js index e3d624a..493ea39 100644 --- a/server/services/routing/server/applications/queue.js +++ b/server/services/routing/server/applications/queue.js @@ -1 +1 @@ -const a1208_0x8de5=['accepted','validate','stack','timeout','stop','string','end','update','close','log','YYYY-MM-DD\x20HH:mm:ss','joinAt','[%s][START:QUEUE][NAME:%s]','body','util','format','../../../../config/logger','WebsiteId','from','[%s][QUEUE]\x20APPLICATION\x20END','list','seq-queue','queue_id','number','%s_queue_waiting_interaction:%s','waiting','length','[%s][QUEUE]\x20%s','update\x20queue\x20report','catch','message','name','join','interaction','InteractionId','AccountId','remove','channel','upperFirst','Queues','error','toLowerCase','save','map','complete','atimeout','rules','beepall','rrmemory','contact','../../rpc/smsQueueReport','[%s][END:QUEUE][NAME:%s]','timeout\x20is\x20a\x20number','account','clone','QueueId','queue','../../rpc/openchannelQueueReport','[%s][STOP:QUEUE][NAME:%s]','../../rpc/whatsappQueueReport','create\x20queue\x20report','createQueue','QueueReport','pick','info','create','emit','chat','%sQueuesWaitingInteractions','[%s][QUEUE]\x20ROUTING\x20STOPPED','../../rpc/mailQueueReport'];(function(_0x3c6e2f,_0x8de597){const _0x2506a3=function(_0xb9b389){while(--_0xb9b389){_0x3c6e2f['push'](_0x3c6e2f['shift']());}};_0x2506a3(++_0x8de597);}(a1208_0x8de5,0xc7));const a1208_0x2506=function(_0x3c6e2f,_0x8de597){_0x3c6e2f=_0x3c6e2f-0x0;let _0x2506a3=a1208_0x8de5[_0x3c6e2f];return _0x2506a3;};const _0x3cdf85=a1208_0x2506;'use strict';const schema=require(_0x3cdf85('0xf')),_=require('lodash'),util=require(_0x3cdf85('0x1c')),seqqueue=require(_0x3cdf85('0x23')),moment=require('moment'),logger=require(_0x3cdf85('0x1e'))('routing'),strategy=require('./strategy'),{getSocket}=require('../../../../rediscache'),io=getSocket(),attributes=['id',_0x3cdf85('0x24'),'account',_0x3cdf85('0x46'),'from',_0x3cdf85('0x19')];function emit(_0xb9b389,_0x44ba7a,_0x40a886){const _0xf7aae6=_0x3cdf85;io['to'](_0xb9b389)[_0xf7aae6('0x9')](_0x44ba7a,_0x40a886);}function emitChannelQueueInteraction(_0x30f1c1,_0x5036bf,_0x411182,_0x298b3a,_0x13acca,_0x418428,_0x4faaea,_0x284bf8){const _0x1c5d71=_0x3cdf85,_0x2ad30e=_[_0x1c5d71('0x44')](_0x411182);_0x2ad30e[_0x1c5d71('0x24')]=_0x284bf8,_0x2ad30e[_0x1c5d71('0x46')]=_0x5036bf,_0x2ad30e[_0x1c5d71('0x43')]=_0x298b3a,_0x2ad30e['id']=_0x13acca,_0x418428?_0x4faaea[util['format'](_0x1c5d71('0xb'),_0x30f1c1)][_0x13acca]=_['pick'](_0x2ad30e,attributes):delete _0x4faaea[util['format']('%sQueuesWaitingInteractions',_0x30f1c1)][_0x13acca],emit(util[_0x1c5d71('0x1d')]('%s:queue:%s',_0x30f1c1,_0x5036bf),util[_0x1c5d71('0x1d')](_0x1c5d71('0x26'),_0x30f1c1,_0x418428?_0x1c5d71('0x38'):_0x1c5d71('0x32')),_[_0x1c5d71('0x6')](_0x2ad30e,attributes));}const rpc={'openchannelQueueReport':require(_0x3cdf85('0x0')),'mailQueueReport':require(_0x3cdf85('0xd')),'chatQueueReport':require('../../rpc/chatQueueReport'),'smsQueueReport':require(_0x3cdf85('0x40')),'faxQueueReport':require('../../rpc/faxQueueReport'),'whatsappQueueReport':require(_0x3cdf85('0x2'))},queue=schema({'name':{'type':_0x3cdf85('0x13'),'required':!![],'message':'name\x20is\x20a\x20string\x20and\x20it\x20is\x20required'},'timeout':{'type':_0x3cdf85('0x25'),'message':_0x3cdf85('0x42')}});function startRouting(_0x28f10,_0x1efc3e,_0x36d82d,_0x4da193){const _0x5a7290=_0x3cdf85;if(_0x28f10&&_0x1efc3e&&_0x36d82d){_0x1efc3e[_0x5a7290('0x27')]+=0x1;const _0x1faa0f={'uniqueid':_0x28f10,'from':_0x36d82d[_0x5a7290('0x1b')]?_0x36d82d[_0x5a7290('0x1b')][_0x5a7290('0x20')]:'','joinAt':moment()['format'](_0x5a7290('0x18')),'ContactId':_0x36d82d['contact']?_0x36d82d[_0x5a7290('0x3f')]['id']:null,'ListId':_0x36d82d[_0x5a7290('0x22')]?_0x36d82d['list']['id']:null};_0x1faa0f[_[_0x5a7290('0x34')](_0x36d82d[_0x5a7290('0x33')])+_0x5a7290('0x45')]=_0x1efc3e['id']||null,_0x1faa0f[_[_0x5a7290('0x34')](_0x36d82d[_0x5a7290('0x33')])+_0x5a7290('0x30')]=_0x36d82d[_0x5a7290('0x2f')]?_0x36d82d[_0x5a7290('0x2f')]['id']:null,_0x1faa0f[_[_0x5a7290('0x34')](_0x36d82d[_0x5a7290('0x33')])+'MessageId']=_0x36d82d[_0x5a7290('0x2c')]?_0x36d82d['message']['id']:null,_0x1faa0f[_['upperFirst'](_0x36d82d[_0x5a7290('0x33')])+(_0x36d82d[_0x5a7290('0x33')]!==_0x5a7290('0xa')?_0x5a7290('0x31'):_0x5a7290('0x1f'))]=_0x36d82d[_0x5a7290('0x43')]?_0x36d82d[_0x5a7290('0x43')]['id']:null,logger[_0x5a7290('0x7')](util['format'](_0x5a7290('0x1a'),_0x28f10,_0x1efc3e[_0x5a7290('0x2d')])),emitChannelQueueInteraction(_0x36d82d['channel'],_0x1efc3e[_0x5a7290('0x2d')],_0x1faa0f,_0x36d82d[_0x5a7290('0x43')]['name'],_0x36d82d[_0x5a7290('0x2c')]['id'],!![],_0x4da193,_0x1efc3e['id']);if(rpc[_0x36d82d[_0x5a7290('0x33')]+'QueueReport'])return rpc[_0x36d82d[_0x5a7290('0x33')]+_0x5a7290('0x5')][_0x5a7290('0x8')](_0x1faa0f)[_0x5a7290('0x2b')](function(){const _0x50b57a=_0x5a7290;logger[_0x50b57a('0x36')](_0x50b57a('0x3'));});}}function stopRouting(_0x47d4c5,_0x765fba,_0x53baad,_0x5b0c3d){const _0x1f29b7=_0x3cdf85;if(_0x47d4c5&&_0x765fba){_0x765fba[_0x1f29b7('0x27')]-=0x1;const _0x2b4986={'leaveAt':moment()[_0x1f29b7('0x1d')](_0x1f29b7('0x18')),'acceptAt':moment()[_0x1f29b7('0x1d')](_0x1f29b7('0x18')),'reason':_0x1f29b7('0xe')};logger['info'](util['format'](_0x1f29b7('0x1'),_0x47d4c5,_0x765fba[_0x1f29b7('0x2d')])),emitChannelQueueInteraction(_0x53baad[_0x1f29b7('0x33')],_0x765fba['name'],_0x53baad[_0x1f29b7('0x1b')],_0x53baad[_0x1f29b7('0x43')]['name'],_0x53baad[_0x1f29b7('0x2c')]['id'],![],_0x5b0c3d,_0x765fba['id']);if(rpc[_0x53baad['channel']+'QueueReport'])return rpc[_0x53baad[_0x1f29b7('0x33')]+_0x1f29b7('0x5')][_0x1f29b7('0x15')](_0x47d4c5,_0x2b4986)[_0x1f29b7('0x2b')](function(){const _0x69f7e8=_0x1f29b7;logger['error'](_0x69f7e8('0x2a'));});}}function endRouting(_0x772931,_0x217caa,_0x58fb03,_0x573a3b){const _0x17c338=_0x3cdf85;if(_0x772931&&_0x217caa){_0x217caa[_0x17c338('0x27')]-=0x1;const _0x85af23={'leaveAt':moment()[_0x17c338('0x1d')](_0x17c338('0x18')),'exitAt':moment()[_0x17c338('0x1d')](_0x17c338('0x18')),'reason':'timeout'};logger[_0x17c338('0x7')](util['format'](_0x17c338('0x41'),_0x772931,_0x217caa['name'])),emitChannelQueueInteraction(_0x58fb03[_0x17c338('0x33')],_0x217caa[_0x17c338('0x2d')],_0x58fb03[_0x17c338('0x1b')],_0x58fb03['account']['name'],_0x58fb03[_0x17c338('0x2c')]['id'],![],_0x573a3b);if(rpc[_0x58fb03[_0x17c338('0x33')]+_0x17c338('0x5')])return rpc[_0x58fb03[_0x17c338('0x33')]+_0x17c338('0x5')][_0x17c338('0x15')](_0x772931,_0x85af23)[_0x17c338('0x2b')](function(){logger['error']('update\x20queue\x20report');});}}function handleFindQueue(_0x43e526){return function(_0x30db8a){const _0x1754a3=a1208_0x2506;return _0x30db8a['name'][_0x1754a3('0x37')]()===_0x43e526[_0x1754a3('0x37')]();};}exports['consequence']=function(_0x35a2d3,_0x138bc3,_0xeec0d8,_0x293424){return function(_0x5de8b3){const _0x3be1a7=a1208_0x2506;try{const _0x254622={'name':_0x138bc3[0x0],'timeout':_0x138bc3[0x1]},_0x40ff51=queue[_0x3be1a7('0xf')](_0x254622,{'typecast':!![]});if(_0x40ff51[_0x3be1a7('0x28')])logger['error'](_0x3be1a7('0x29'),_0x35a2d3,_[_0x3be1a7('0x39')](_0x40ff51,_0x3be1a7('0x2c'))[_0x3be1a7('0x2e')](',\x20')),_0x5de8b3[_0x3be1a7('0x12')]();else{const _0x1b1ea8=_['find'](_0xeec0d8[_0x293424[_0x3be1a7('0x33')]+_0x3be1a7('0x35')],handleFindQueue(_0x254622[_0x3be1a7('0x2d')]));if(_0x1b1ea8){startRouting(_0x35a2d3,_0x1b1ea8,_0x293424,_0xeec0d8);const _0x1ce443=(_0x1b1ea8['timeout']||0xa)*0x3e8;let _0x1d9818=(_0x254622[_0x3be1a7('0x11')]||0x14)*0x3e8,_0x54ec47;_0x1ce443>_0x1d9818&&(_0x1d9818=_0x1ce443);const _0x258b66=seqqueue[_0x3be1a7('0x4')](_0x1ce443);_0x258b66['id']=_0x35a2d3,_0x258b66[_0x3be1a7('0x3b')]=_0x1ce443,_0x258b66['qtimeout']=_0x1d9818,_0x258b66[_0x3be1a7('0x33')]=_0x293424['channel'],_0xeec0d8[_0x3be1a7('0x3c')][_0x35a2d3]['on'](_0x3be1a7('0x14'),function(){const _0x5df8be=_0x3be1a7;logger[_0x5df8be('0x7')](_0x5df8be('0xc'),_0x35a2d3),stopRouting(_0x35a2d3,_0x1b1ea8,_0x293424,_0xeec0d8),clearTimeout(_0x54ec47),_0x54ec47=undefined,_0x258b66[_0x5df8be('0x16')](!![]),_0xeec0d8[_0x5df8be('0x3c')][_0x35a2d3]&&delete _0xeec0d8[_0x5df8be('0x3c')][_0x35a2d3],_0x5de8b3[_0x5df8be('0x12')]();}),_0xeec0d8[_0x3be1a7('0x3c')][_0x35a2d3]['on'](_0x3be1a7('0x3a'),function(){const _0x5891b5=_0x3be1a7;_0xeec0d8[_0x5891b5('0x3c')][_0x35a2d3]&&delete _0xeec0d8[_0x5891b5('0x3c')][_0x35a2d3];}),_0x54ec47=setTimeout(function(){const _0xd25c0e=_0x3be1a7;logger[_0xd25c0e('0x7')](_0xd25c0e('0x21'),_0x35a2d3),endRouting(_0x35a2d3,_0x1b1ea8,_0x293424,_0xeec0d8),clearTimeout(_0x54ec47),_0x258b66[_0xd25c0e('0x16')](!![]),_0x5de8b3['next']();},_0x1d9818);switch(_0x1b1ea8['strategy']){case _0x3be1a7('0x3e'):strategy['rrmemory'](_0x258b66,_0x1b1ea8,_0xeec0d8,_0x293424);break;default:strategy[_0x3be1a7('0x3d')](_0x258b66,_0x1b1ea8,_0xeec0d8,_0x293424);}}else logger[_0x3be1a7('0x36')]('[%s][QUEUE]\x20queue\x20not\x20found\x20%s',_0x35a2d3,_0x254622[_0x3be1a7('0x2d')]),_0x5de8b3[_0x3be1a7('0x12')]();}}catch(_0x3545c6){console[_0x3be1a7('0x17')](_0x3545c6),logger['error']('[%s][QUEUE]\x20%s',_0x35a2d3,_0x3545c6[_0x3be1a7('0x10')]),_0x5de8b3[_0x3be1a7('0x12')]();}};}; \ No newline at end of file +const a1208_0x3b36=['[%s][QUEUE]\x20APPLICATION\x20END','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','update\x20queue\x20report','contact','waiting','createQueue','rules','accepted','emit','InteractionId','string','pick','channel','body','from','Queues','remove','chat','timeout\x20is\x20a\x20number','%sQueuesWaitingInteractions','catch','message','save','qtimeout','info','[%s][START:QUEUE][NAME:%s]','routing','end','QueueReport','timeout','number','../../rpc/mailQueueReport','[%s][QUEUE]\x20%s','toLowerCase','update','YYYY-MM-DD\x20HH:mm:ss','complete','QueueId','../../../../config/logger','util','[%s][STOP:QUEUE][NAME:%s]','../../rpc/smsQueueReport','log','next','close','queue','moment','format','list','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','rrmemory','joinAt','error','[%s][QUEUE]\x20ROUTING\x20STOPPED','../../rpc/whatsappQueueReport','stack','WebsiteId','upperFirst','MessageId','./strategy','strategy','queue_id','interaction','../../../../rediscache','name','stop','atimeout','account','lodash'];(function(_0x579baa,_0x3b3666){const _0x42b019=function(_0x25a759){while(--_0x25a759){_0x579baa['push'](_0x579baa['shift']());}};_0x42b019(++_0x3b3666);}(a1208_0x3b36,0x1d8));const a1208_0x42b0=function(_0x579baa,_0x3b3666){_0x579baa=_0x579baa-0x0;let _0x42b019=a1208_0x3b36[_0x579baa];return _0x42b019;};const _0x4ede70=a1208_0x42b0;'use strict';const schema=require('validate'),_=require(_0x4ede70('0xa')),util=require(_0x4ede70('0x32')),seqqueue=require('seq-queue'),moment=require(_0x4ede70('0x39')),logger=require(_0x4ede70('0x31'))(_0x4ede70('0x25')),strategy=require(_0x4ede70('0x1')),{getSocket}=require(_0x4ede70('0x5')),io=getSocket(),attributes=['id',_0x4ede70('0x3'),_0x4ede70('0x9'),_0x4ede70('0x38'),_0x4ede70('0x19'),_0x4ede70('0x3e')];function emit(_0x25a759,_0x63fd51,_0x1f3eac){const _0x4011f9=_0x4ede70;io['to'](_0x25a759)[_0x4011f9('0x13')](_0x63fd51,_0x1f3eac);}function emitChannelQueueInteraction(_0x417a18,_0x3363a8,_0x4b364a,_0x2a387b,_0x1efeca,_0x269322,_0x57072e,_0x66aa80){const _0x2874ba=_0x4ede70,_0x3ca4bf=_['clone'](_0x4b364a);_0x3ca4bf[_0x2874ba('0x3')]=_0x66aa80,_0x3ca4bf[_0x2874ba('0x38')]=_0x3363a8,_0x3ca4bf['account']=_0x2a387b,_0x3ca4bf['id']=_0x1efeca,_0x269322?_0x57072e[util[_0x2874ba('0x3a')](_0x2874ba('0x1e'),_0x417a18)][_0x1efeca]=_[_0x2874ba('0x16')](_0x3ca4bf,attributes):delete _0x57072e[util[_0x2874ba('0x3a')](_0x2874ba('0x1e'),_0x417a18)][_0x1efeca],emit(util[_0x2874ba('0x3a')]('%s:queue:%s',_0x417a18,_0x3363a8),util[_0x2874ba('0x3a')]('%s_queue_waiting_interaction:%s',_0x417a18,_0x269322?_0x2874ba('0x21'):_0x2874ba('0x1b')),_[_0x2874ba('0x16')](_0x3ca4bf,attributes));}const rpc={'openchannelQueueReport':require('../../rpc/openchannelQueueReport'),'mailQueueReport':require(_0x4ede70('0x2a')),'chatQueueReport':require('../../rpc/chatQueueReport'),'smsQueueReport':require(_0x4ede70('0x34')),'faxQueueReport':require('../../rpc/faxQueueReport'),'whatsappQueueReport':require(_0x4ede70('0x41'))},queue=schema({'name':{'type':_0x4ede70('0x15'),'required':!![],'message':_0x4ede70('0xc')},'timeout':{'type':_0x4ede70('0x29'),'message':_0x4ede70('0x1d')}});function startRouting(_0x4e0fd2,_0x4c695c,_0x38ca0d,_0x2251ed){const _0x56c055=_0x4ede70;if(_0x4e0fd2&&_0x4c695c&&_0x38ca0d){_0x4c695c['waiting']+=0x1;const _0x236ad2={'uniqueid':_0x4e0fd2,'from':_0x38ca0d[_0x56c055('0x18')]?_0x38ca0d['body'][_0x56c055('0x19')]:'','joinAt':moment()[_0x56c055('0x3a')](_0x56c055('0x2e')),'ContactId':_0x38ca0d['contact']?_0x38ca0d[_0x56c055('0xe')]['id']:null,'ListId':_0x38ca0d[_0x56c055('0x3b')]?_0x38ca0d[_0x56c055('0x3b')]['id']:null};_0x236ad2[_['upperFirst'](_0x38ca0d[_0x56c055('0x17')])+_0x56c055('0x30')]=_0x4c695c['id']||null,_0x236ad2[_[_0x56c055('0x44')](_0x38ca0d[_0x56c055('0x17')])+_0x56c055('0x14')]=_0x38ca0d[_0x56c055('0x4')]?_0x38ca0d['interaction']['id']:null,_0x236ad2[_['upperFirst'](_0x38ca0d[_0x56c055('0x17')])+_0x56c055('0x0')]=_0x38ca0d[_0x56c055('0x20')]?_0x38ca0d['message']['id']:null,_0x236ad2[_[_0x56c055('0x44')](_0x38ca0d[_0x56c055('0x17')])+(_0x38ca0d[_0x56c055('0x17')]!==_0x56c055('0x1c')?'AccountId':_0x56c055('0x43'))]=_0x38ca0d[_0x56c055('0x9')]?_0x38ca0d[_0x56c055('0x9')]['id']:null,logger[_0x56c055('0x23')](util[_0x56c055('0x3a')](_0x56c055('0x24'),_0x4e0fd2,_0x4c695c['name'])),emitChannelQueueInteraction(_0x38ca0d[_0x56c055('0x17')],_0x4c695c[_0x56c055('0x6')],_0x236ad2,_0x38ca0d[_0x56c055('0x9')][_0x56c055('0x6')],_0x38ca0d[_0x56c055('0x20')]['id'],!![],_0x2251ed,_0x4c695c['id']);if(rpc[_0x38ca0d['channel']+_0x56c055('0x27')])return rpc[_0x38ca0d[_0x56c055('0x17')]+_0x56c055('0x27')]['create'](_0x236ad2)[_0x56c055('0x1f')](function(){const _0x419a51=_0x56c055;logger[_0x419a51('0x3f')]('create\x20queue\x20report');});}}function stopRouting(_0x341ae3,_0x1cf9bd,_0x298b4a,_0x518d9c){const _0x305168=_0x4ede70;if(_0x341ae3&&_0x1cf9bd){_0x1cf9bd['waiting']-=0x1;const _0x59fa31={'leaveAt':moment()[_0x305168('0x3a')](_0x305168('0x2e')),'acceptAt':moment()[_0x305168('0x3a')](_0x305168('0x2e')),'reason':_0x305168('0x12')};logger[_0x305168('0x23')](util['format'](_0x305168('0x33'),_0x341ae3,_0x1cf9bd[_0x305168('0x6')])),emitChannelQueueInteraction(_0x298b4a[_0x305168('0x17')],_0x1cf9bd[_0x305168('0x6')],_0x298b4a[_0x305168('0x18')],_0x298b4a['account']['name'],_0x298b4a[_0x305168('0x20')]['id'],![],_0x518d9c,_0x1cf9bd['id']);if(rpc[_0x298b4a[_0x305168('0x17')]+_0x305168('0x27')])return rpc[_0x298b4a[_0x305168('0x17')]+'QueueReport'][_0x305168('0x2d')](_0x341ae3,_0x59fa31)[_0x305168('0x1f')](function(){const _0x2f7f40=_0x305168;logger[_0x2f7f40('0x3f')]('update\x20queue\x20report');});}}function endRouting(_0x251b5b,_0x3d7932,_0x33d43d,_0x5af1d3){const _0x4932d4=_0x4ede70;if(_0x251b5b&&_0x3d7932){_0x3d7932[_0x4932d4('0xf')]-=0x1;const _0xab04dd={'leaveAt':moment()[_0x4932d4('0x3a')](_0x4932d4('0x2e')),'exitAt':moment()[_0x4932d4('0x3a')]('YYYY-MM-DD\x20HH:mm:ss'),'reason':'timeout'};logger[_0x4932d4('0x23')](util['format']('[%s][END:QUEUE][NAME:%s]',_0x251b5b,_0x3d7932[_0x4932d4('0x6')])),emitChannelQueueInteraction(_0x33d43d[_0x4932d4('0x17')],_0x3d7932[_0x4932d4('0x6')],_0x33d43d[_0x4932d4('0x18')],_0x33d43d['account'][_0x4932d4('0x6')],_0x33d43d[_0x4932d4('0x20')]['id'],![],_0x5af1d3);if(rpc[_0x33d43d[_0x4932d4('0x17')]+_0x4932d4('0x27')])return rpc[_0x33d43d[_0x4932d4('0x17')]+_0x4932d4('0x27')][_0x4932d4('0x2d')](_0x251b5b,_0xab04dd)[_0x4932d4('0x1f')](function(){const _0x2788f4=_0x4932d4;logger['error'](_0x2788f4('0xd'));});}}function handleFindQueue(_0x192885){return function(_0x39c75f){const _0x20cf2a=a1208_0x42b0;return _0x39c75f['name'][_0x20cf2a('0x2c')]()===_0x192885[_0x20cf2a('0x2c')]();};}exports['consequence']=function(_0x3401c7,_0x205ffa,_0x307ea1,_0x26fa94){return function(_0x326ace){const _0x860465=a1208_0x42b0;try{const _0x46f1b8={'name':_0x205ffa[0x0],'timeout':_0x205ffa[0x1]},_0x46fc54=queue['validate'](_0x46f1b8,{'typecast':!![]});if(_0x46fc54['length'])logger[_0x860465('0x3f')](_0x860465('0x2b'),_0x3401c7,_['map'](_0x46fc54,_0x860465('0x20'))['join'](',\x20')),_0x326ace[_0x860465('0x7')]();else{const _0xab60a7=_['find'](_0x307ea1[_0x26fa94[_0x860465('0x17')]+_0x860465('0x1a')],handleFindQueue(_0x46f1b8['name']));if(_0xab60a7){startRouting(_0x3401c7,_0xab60a7,_0x26fa94,_0x307ea1);const _0x4a2c68=(_0xab60a7[_0x860465('0x28')]||0xa)*0x3e8;let _0x2a3fbb=(_0x46f1b8[_0x860465('0x28')]||0x14)*0x3e8,_0x276b30;_0x4a2c68>_0x2a3fbb&&(_0x2a3fbb=_0x4a2c68);const _0x163aa7=seqqueue[_0x860465('0x10')](_0x4a2c68);_0x163aa7['id']=_0x3401c7,_0x163aa7[_0x860465('0x8')]=_0x4a2c68,_0x163aa7[_0x860465('0x22')]=_0x2a3fbb,_0x163aa7['channel']=_0x26fa94[_0x860465('0x17')],_0x307ea1[_0x860465('0x11')][_0x3401c7]['on'](_0x860465('0x26'),function(){const _0x543d6a=_0x860465;logger[_0x543d6a('0x23')](_0x543d6a('0x40'),_0x3401c7),stopRouting(_0x3401c7,_0xab60a7,_0x26fa94,_0x307ea1),clearTimeout(_0x276b30),_0x276b30=undefined,_0x163aa7[_0x543d6a('0x37')](!![]),_0x307ea1[_0x543d6a('0x11')][_0x3401c7]&&delete _0x307ea1[_0x543d6a('0x11')][_0x3401c7],_0x326ace[_0x543d6a('0x7')]();}),_0x307ea1[_0x860465('0x11')][_0x3401c7]['on'](_0x860465('0x2f'),function(){const _0x398bf8=_0x860465;_0x307ea1[_0x398bf8('0x11')][_0x3401c7]&&delete _0x307ea1[_0x398bf8('0x11')][_0x3401c7];}),_0x276b30=setTimeout(function(){const _0x3ae522=_0x860465;logger[_0x3ae522('0x23')](_0x3ae522('0xb'),_0x3401c7),endRouting(_0x3401c7,_0xab60a7,_0x26fa94,_0x307ea1),clearTimeout(_0x276b30),_0x163aa7[_0x3ae522('0x37')](!![]),_0x326ace[_0x3ae522('0x36')]();},_0x2a3fbb);switch(_0xab60a7[_0x860465('0x2')]){case _0x860465('0x3d'):strategy[_0x860465('0x3d')](_0x163aa7,_0xab60a7,_0x307ea1,_0x26fa94);break;default:strategy['beepall'](_0x163aa7,_0xab60a7,_0x307ea1,_0x26fa94);}}else logger[_0x860465('0x3f')](_0x860465('0x3c'),_0x3401c7,_0x46f1b8[_0x860465('0x6')]),_0x326ace[_0x860465('0x7')]();}}catch(_0x4e59a7){console[_0x860465('0x35')](_0x4e59a7),logger['error']('[%s][QUEUE]\x20%s',_0x3401c7,_0x4e59a7[_0x860465('0x42')]),_0x326ace[_0x860465('0x7')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/strategy/agent.js b/server/services/routing/server/applications/strategy/agent.js index c5767ca..6683f87 100644 --- a/server/services/routing/server/applications/strategy/agent.js +++ b/server/services/routing/server/applications/strategy/agent.js @@ -1 +1 @@ -const a1209_0x355a=['isNil','agent','writeLog','realtime','exports','../../../../../config/logger','handleTimeout','RINGING','bind','[%s][AGENT]\x20try\x20with\x20%s','info','isAgentAvailable','handleRun','notificationId','lodash','[%s][AGENT]\x20timeout\x20with\x20%s','prototype','forcedOwnership','timeout','agents',':FORCED','handleDrained','drained','showNotification','uuid','routing','busy','busyQueue','squeue','push'];(function(_0x2d7f1e,_0x355ac8){const _0x13a2ec=function(_0x5bd6c1){while(--_0x5bd6c1){_0x2d7f1e['push'](_0x2d7f1e['shift']());}};_0x13a2ec(++_0x355ac8);}(a1209_0x355a,0xe8));const a1209_0x13a2=function(_0x2d7f1e,_0x355ac8){_0x2d7f1e=_0x2d7f1e-0x0;let _0x13a2ec=a1209_0x355a[_0x2d7f1e];return _0x13a2ec;};const _0x5feec2=a1209_0x13a2;'use strict';const _=require(_0x5feec2('0x16')),uuid=require(_0x5feec2('0x2')),util=require('./util'),logger=require(_0x5feec2('0xd'))(_0x5feec2('0x3')),Agent=function(_0x5bd6c1,_0x13d5c1,_0x1b5c82,_0x4ec4ee){const _0xfa8401=_0x5feec2;this[_0xfa8401('0x15')]=uuid['v4'](),this['squeue']=_0x5bd6c1,this[_0xfa8401('0x9')]=_0x13d5c1,this['realtime']=_0x1b5c82,this[_0xfa8401('0x3')]=_0x4ec4ee,this[_0xfa8401('0x6')]['push'](this[_0xfa8401('0x14')]['bind'](this),this[_0xfa8401('0xe')][_0xfa8401('0x10')](this)),this[_0xfa8401('0x6')]['on'](_0xfa8401('0x1a'),this[_0xfa8401('0xe')]['bind'](this)),this[_0xfa8401('0x6')]['on'](_0xfa8401('0x0'),this[_0xfa8401('0x1d')][_0xfa8401('0x10')](this));};Agent[_0x5feec2('0x18')]['push']=function(){const _0x12c40b=_0x5feec2;this[_0x12c40b('0x6')][_0x12c40b('0x7')](this[_0x12c40b('0x14')][_0x12c40b('0x10')](this),this[_0x12c40b('0xe')][_0x12c40b('0x10')](this));},Agent[_0x5feec2('0x18')][_0x5feec2('0x1d')]=function(){this['handleTimeout'](!![]);},Agent[_0x5feec2('0x18')]['handleRun']=function(){const _0x4cc9f4=_0x5feec2;logger[_0x4cc9f4('0x12')](_0x4cc9f4('0x11'),this['squeue']['id'],this[_0x4cc9f4('0x9')]['id']),_[_0x4cc9f4('0x8')](this[_0x4cc9f4('0xb')]['agents'][this[_0x4cc9f4('0x9')]['id']])?(logger[_0x4cc9f4('0x12')]('[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s',this[_0x4cc9f4('0x6')]['id'],this[_0x4cc9f4('0x9')]['id']),setTimeout(this[_0x4cc9f4('0x7')][_0x4cc9f4('0x10')](this),0x3e8)):this[_0x4cc9f4('0x3')][_0x4cc9f4('0x19')]||util[_0x4cc9f4('0x13')](this[_0x4cc9f4('0x6')]['id'],this['realtime'][_0x4cc9f4('0x1b')][this[_0x4cc9f4('0x9')]['id']],this[_0x4cc9f4('0x6')]['channel'],![])?(this[_0x4cc9f4('0xb')]['agents'][this[_0x4cc9f4('0x9')]['id']][_0x4cc9f4('0x4')]=!![],this[_0x4cc9f4('0xb')][_0x4cc9f4('0x1b')][this[_0x4cc9f4('0x9')]['id']]['busyQueue']=undefined,util[_0x4cc9f4('0x1')](this[_0x4cc9f4('0x15')],this[_0x4cc9f4('0x6')]['id'],this[_0x4cc9f4('0xb')][_0x4cc9f4('0x1b')][this['agent']['id']],null,this[_0x4cc9f4('0x3')]),util[_0x4cc9f4('0xa')](this[_0x4cc9f4('0x6')]['id'],this['realtime'][_0x4cc9f4('0x1b')][this[_0x4cc9f4('0x9')]['id']],_0x4cc9f4('0xf')+(this[_0x4cc9f4('0x3')][_0x4cc9f4('0x19')]?_0x4cc9f4('0x1c'):''))):(logger['info']('[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available',this[_0x4cc9f4('0x6')]['id'],this['agent']['id']),setTimeout(this[_0x4cc9f4('0x7')][_0x4cc9f4('0x10')](this),0x3e8));},Agent[_0x5feec2('0x18')][_0x5feec2('0xe')]=function(_0x29908a){const _0x216024=_0x5feec2;if(_[_0x216024('0x8')](this[_0x216024('0xb')]['agents'][this[_0x216024('0x9')]['id']]))return logger[_0x216024('0x12')]('[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s',this[_0x216024('0x6')]['id'],this[_0x216024('0x9')]['id']);else logger['info'](_0x216024('0x17'),this['squeue']['id'],this[_0x216024('0x9')]['id']),util['hideNotification'](this[_0x216024('0x15')],this[_0x216024('0x6')]['id'],this[_0x216024('0xb')][_0x216024('0x1b')][this['agent']['id']],null,this[_0x216024('0x3')]),this[_0x216024('0xb')][_0x216024('0x1b')][this[_0x216024('0x9')]['id']][_0x216024('0x4')]=![],this[_0x216024('0xb')][_0x216024('0x1b')][this['agent']['id']][_0x216024('0x5')]=undefined,util[_0x216024('0xa')](this[_0x216024('0x6')]['id'],this[_0x216024('0xb')][_0x216024('0x1b')][this[_0x216024('0x9')]['id']],_0x29908a?'STOP':'TIMEOUT');!_0x29908a&&setTimeout(this[_0x216024('0x7')][_0x216024('0x10')](this),0x3e8);};function agent(_0x4316d8,_0x4a6c93,_0x1a2a45,_0x1c4a11){return new Agent(_0x4316d8,_0x4a6c93,_0x1a2a45,_0x1c4a11);}module[_0x5feec2('0xc')]=agent; \ No newline at end of file +const a1209_0x4263=['handleTimeout','[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available',':FORCED','handleRun','routing','agents','lodash','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','prototype','squeue','channel','busyQueue','realtime','busy','info','[%s][AGENT]\x20try\x20with\x20%s','push','../../../../../config/logger','notificationId','bind','uuid','handleDrained','[%s][AGENT]\x20timeout\x20with\x20%s','./util','isNil','writeLog','forcedOwnership','STOP','TIMEOUT','agent','drained'];(function(_0x5849f1,_0x426320){const _0x410957=function(_0x1a2ee2){while(--_0x1a2ee2){_0x5849f1['push'](_0x5849f1['shift']());}};_0x410957(++_0x426320);}(a1209_0x4263,0x16b));const a1209_0x4109=function(_0x5849f1,_0x426320){_0x5849f1=_0x5849f1-0x0;let _0x410957=a1209_0x4263[_0x5849f1];return _0x410957;};const _0x370461=a1209_0x4109;'use strict';const _=require(_0x370461('0xf')),uuid=require(_0x370461('0x1d')),util=require(_0x370461('0x1')),logger=require(_0x370461('0x1a'))(_0x370461('0xd')),Agent=function(_0x1a2ee2,_0x2c1073,_0x2abb37,_0x45ab95){const _0x27199e=_0x370461;this['notificationId']=uuid['v4'](),this[_0x27199e('0x12')]=_0x1a2ee2,this[_0x27199e('0x7')]=_0x2c1073,this[_0x27199e('0x15')]=_0x2abb37,this[_0x27199e('0xd')]=_0x45ab95,this['squeue'][_0x27199e('0x19')](this[_0x27199e('0xc')]['bind'](this),this['handleTimeout'][_0x27199e('0x1c')](this)),this['squeue']['on']('timeout',this[_0x27199e('0x9')]['bind'](this)),this[_0x27199e('0x12')]['on'](_0x27199e('0x8'),this[_0x27199e('0x1e')][_0x27199e('0x1c')](this));};Agent[_0x370461('0x11')][_0x370461('0x19')]=function(){const _0x3d2f01=_0x370461;this['squeue'][_0x3d2f01('0x19')](this[_0x3d2f01('0xc')]['bind'](this),this[_0x3d2f01('0x9')][_0x3d2f01('0x1c')](this));},Agent[_0x370461('0x11')][_0x370461('0x1e')]=function(){const _0x4b0bb3=_0x370461;this[_0x4b0bb3('0x9')](!![]);},Agent[_0x370461('0x11')][_0x370461('0xc')]=function(){const _0x400aee=_0x370461;logger[_0x400aee('0x17')](_0x400aee('0x18'),this['squeue']['id'],this[_0x400aee('0x7')]['id']),_[_0x400aee('0x2')](this[_0x400aee('0x15')]['agents'][this[_0x400aee('0x7')]['id']])?(logger[_0x400aee('0x17')](_0x400aee('0x10'),this[_0x400aee('0x12')]['id'],this[_0x400aee('0x7')]['id']),setTimeout(this[_0x400aee('0x19')][_0x400aee('0x1c')](this),0x3e8)):this[_0x400aee('0xd')][_0x400aee('0x4')]||util['isAgentAvailable'](this['squeue']['id'],this['realtime'][_0x400aee('0xe')][this[_0x400aee('0x7')]['id']],this[_0x400aee('0x12')][_0x400aee('0x13')],![])?(this[_0x400aee('0x15')]['agents'][this[_0x400aee('0x7')]['id']]['busy']=!![],this[_0x400aee('0x15')][_0x400aee('0xe')][this[_0x400aee('0x7')]['id']][_0x400aee('0x14')]=undefined,util['showNotification'](this[_0x400aee('0x1b')],this[_0x400aee('0x12')]['id'],this[_0x400aee('0x15')]['agents'][this[_0x400aee('0x7')]['id']],null,this[_0x400aee('0xd')]),util[_0x400aee('0x3')](this[_0x400aee('0x12')]['id'],this[_0x400aee('0x15')][_0x400aee('0xe')][this[_0x400aee('0x7')]['id']],'RINGING'+(this[_0x400aee('0xd')][_0x400aee('0x4')]?_0x400aee('0xb'):''))):(logger[_0x400aee('0x17')](_0x400aee('0xa'),this[_0x400aee('0x12')]['id'],this['agent']['id']),setTimeout(this[_0x400aee('0x19')][_0x400aee('0x1c')](this),0x3e8));},Agent[_0x370461('0x11')][_0x370461('0x9')]=function(_0xfed0bc){const _0x12fbfb=_0x370461;if(_[_0x12fbfb('0x2')](this[_0x12fbfb('0x15')][_0x12fbfb('0xe')][this['agent']['id']]))return logger[_0x12fbfb('0x17')]('[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s',this[_0x12fbfb('0x12')]['id'],this[_0x12fbfb('0x7')]['id']);else logger[_0x12fbfb('0x17')](_0x12fbfb('0x0'),this['squeue']['id'],this[_0x12fbfb('0x7')]['id']),util['hideNotification'](this['notificationId'],this['squeue']['id'],this[_0x12fbfb('0x15')][_0x12fbfb('0xe')][this['agent']['id']],null,this[_0x12fbfb('0xd')]),this['realtime'][_0x12fbfb('0xe')][this[_0x12fbfb('0x7')]['id']][_0x12fbfb('0x16')]=![],this[_0x12fbfb('0x15')][_0x12fbfb('0xe')][this[_0x12fbfb('0x7')]['id']][_0x12fbfb('0x14')]=undefined,util[_0x12fbfb('0x3')](this[_0x12fbfb('0x12')]['id'],this['realtime'][_0x12fbfb('0xe')][this['agent']['id']],_0xfed0bc?_0x12fbfb('0x5'):_0x12fbfb('0x6'));!_0xfed0bc&&setTimeout(this[_0x12fbfb('0x19')][_0x12fbfb('0x1c')](this),0x3e8);};function agent(_0x21df75,_0x74307b,_0xde29d1,_0x126b9a){return new Agent(_0x21df75,_0x74307b,_0xde29d1,_0x126b9a);}module['exports']=agent; \ No newline at end of file diff --git a/server/services/routing/server/applications/strategy/beepall.js b/server/services/routing/server/applications/strategy/beepall.js index 0bc2332..9cf9b4b 100644 --- a/server/services/routing/server/applications/strategy/beepall.js +++ b/server/services/routing/server/applications/strategy/beepall.js @@ -1 +1 @@ -const a1210_0x4aae=['TIMEOUT','bind','length','showNotification','drained','isNil','[%s][QUEUE]\x20ALL\x20AGENTS\x20ARE\x20BUSY','./util','handleRun','agents','queue','isAgentAvailable','uuid','notificationId','busyQueue','squeue','exports','prototype','RINGING','name','Agents','writeLog','timeout','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s','push','info','realtime','routing','handleTimeout','[%s][QUEUE]\x20EMPTY','handleDrained'];(function(_0xdb3937,_0x4aae6e){const _0x2991df=function(_0x5934b4){while(--_0x5934b4){_0xdb3937['push'](_0xdb3937['shift']());}};_0x2991df(++_0x4aae6e);}(a1210_0x4aae,0x115));const a1210_0x2991=function(_0xdb3937,_0x4aae6e){_0xdb3937=_0xdb3937-0x0;let _0x2991df=a1210_0x4aae[_0xdb3937];return _0x2991df;};const _0xbc9083=a1210_0x2991;'use strict';const _=require('lodash'),uuid=require(_0xbc9083('0xe')),util=require(_0xbc9083('0x9')),logger=require('../../../../../config/logger')('routing'),Beepall=function(_0x5934b4,_0x90455e,_0x4b44d3,_0x4cd98e){const _0x3994fe=_0xbc9083;this[_0x3994fe('0xf')]=uuid['v4'](),this['squeue']=_0x5934b4,this[_0x3994fe('0xc')]=_0x90455e,this[_0x3994fe('0x1c')]=_0x4b44d3,this[_0x3994fe('0x1d')]=_0x4cd98e,this[_0x3994fe('0x11')][_0x3994fe('0x1a')](this['handleRun'][_0x3994fe('0x3')](this),this[_0x3994fe('0x1e')][_0x3994fe('0x3')](this)),this[_0x3994fe('0x11')]['on'](_0x3994fe('0x18'),this[_0x3994fe('0x1e')][_0x3994fe('0x3')](this)),this[_0x3994fe('0x11')]['on'](_0x3994fe('0x6'),this[_0x3994fe('0x1')]['bind'](this));};Beepall[_0xbc9083('0x13')]['push']=function(){const _0x2d7ab0=_0xbc9083;this['squeue'][_0x2d7ab0('0x1a')](this[_0x2d7ab0('0xa')][_0x2d7ab0('0x3')](this),this[_0x2d7ab0('0x1e')][_0x2d7ab0('0x3')](this));},Beepall[_0xbc9083('0x13')][_0xbc9083('0x1')]=function(){this['handleTimeout'](!![]);},Beepall[_0xbc9083('0x13')]['handleRun']=function(){const _0x22fbbe=_0xbc9083;let _0x5266af=!![];if(!_['isNil'](this[_0x22fbbe('0xc')])&&!_[_0x22fbbe('0x7')](this['queue'][_0x22fbbe('0x16')])&&this[_0x22fbbe('0xc')][_0x22fbbe('0x16')][_0x22fbbe('0x4')]>0x0){for(let _0x3be114=0x0,_0x35b6fa;_0x3be1140x0){for(let _0x3d53e2=0x0,_0x162380;_0x3d53e20x0&&_0x3ee991[_0x372512+_0x2d8236('0x1f')]>=_0x3ee991[_0x372512+_0x2d8236('0x12')])return writeLog(_0x23e159,_0x3ee991,_0x372512[_0x2d8236('0xa')]()+_0x2d8236('0xe')),![];}return!![];},exports[_0x2de200('0xf')]=function(_0x2ee0ed,_0x44428e,_0x2c76e3,_0x35b58e,_0x39e26b){return sendNotification(!![],_0x2ee0ed,_0x44428e,_0x2c76e3,_0x35b58e,_0x39e26b);},exports['hideNotification']=function(_0x1c5eed,_0x594d77,_0x424199,_0x5352ff,_0x4ffb41){return sendNotification(![],_0x1c5eed,_0x594d77,_0x424199,_0x5352ff,_0x4ffb41);},exports['writeLog']=writeLog; \ No newline at end of file +const a1213_0x2bdf=['Capacity','queue','../utils','[%s][QUEUE]\x20%s','msg','body','notificationTemplate','user:%s','online','OFFLINE','util','remove','[%s][QUEUE][AGENT:%s][STATUS:%s]','PAUSE','emit','user:save','format','isAgentAvailable','CurrentCapacity','save','getMustacheRender','writeLog','\x20interaction','split','name','undefined','Pause','notificationSound','hideNotification'];(function(_0x18fc7d,_0x2bdfca){const _0x5a9db2=function(_0x596423){while(--_0x596423){_0x18fc7d['push'](_0x18fc7d['shift']());}};_0x5a9db2(++_0x2bdfca);}(a1213_0x2bdf,0xf5));const a1213_0x5a9d=function(_0x18fc7d,_0x2bdfca){_0x18fc7d=_0x18fc7d-0x0;let _0x5a9db2=a1213_0x2bdf[_0x18fc7d];return _0x5a9db2;};const _0xf4c74e=a1213_0x5a9d;'use strict';const util=require(_0xf4c74e('0x1a')),utils=require(_0xf4c74e('0x12')),logger=require('../../../../../config/logger')('routing'),{getSocket}=require('../../../../../rediscache'),io=getSocket();function sendNotification(_0x596423,_0x5c61ca,_0x2bf076,_0x2e2677,_0x155e28,_0x56663c){const _0x456979=_0xf4c74e;io['to'](util[_0x456979('0x3')](_0x456979('0x17'),_0x2e2677['name']))[_0x456979('0x1')](_0x456979('0x2'),_0x2e2677);const _0xb8a295=_0x56663c||{},_0x5c921a=_0x2bf076[_0x456979('0xa')]('.'),_0x55abb2={'uniqueid':_0x5c61ca,'channel':_0x5c921a[0x0],'id':_0x5c921a[0x1],'title':_0x5c921a[0x0]+_0x456979('0x9'),'interactionId':_0x5c921a[0x2],'queue':_0x155e28?_0x155e28[_0x456979('0xb')]:null,'sound':_0xb8a295['account'][_0x456979('0xe')],'shake':_0xb8a295['account']['notificationShake']};try{!_0xb8a295['body']&&(_0xb8a295[_0x456979('0x15')]={});if(_0x155e28)_0xb8a295[_0x456979('0x15')][_0x456979('0x11')]=_0x155e28;else _0xb8a295[_0x456979('0x15')][_0x456979('0x11')]&&delete _0xb8a295[_0x456979('0x15')]['queue'];_0x55abb2['msg']=utils[_0x456979('0x7')](_0xb8a295['account'][_0x456979('0x16')],_0xb8a295);}catch(_0x1af362){_0x55abb2[_0x456979('0x14')]='I\x20can\x27t\x20render\x20your\x20template',logger['error'](util[_0x456979('0x3')](_0x456979('0x13'),_0x5c61ca,_0x1af362['message']));}io['to'](util[_0x456979('0x3')]('user:%s',_0x2e2677[_0x456979('0xb')]))[_0x456979('0x1')](util[_0x456979('0x3')]('notification:%s',_0x596423?_0x456979('0x6'):_0x456979('0x1b')),_0x55abb2);}function writeLog(_0x583b0d,_0x305517,_0x1ecddd){const _0x2e4d8d=_0xf4c74e;return logger['info'](util[_0x2e4d8d('0x3')](_0x2e4d8d('0x1c'),_0x583b0d,_0x305517[_0x2e4d8d('0xb')],_0x1ecddd));}exports[_0xf4c74e('0x4')]=function(_0x4be3e1,_0x5ef014,_0x1c2732,_0x36ebce){const _0x29b972=_0xf4c74e;if(_0x5ef014['busy'])return writeLog(_0x4be3e1,_0x5ef014,'BUSY'),![];if(!_0x5ef014[_0x29b972('0x18')])return writeLog(_0x4be3e1,_0x5ef014,_0x29b972('0x19')),![];if(_0x5ef014[_0x1c2732+_0x29b972('0xd')])return writeLog(_0x4be3e1,_0x5ef014,_0x29b972('0x0')),![];if(_0x36ebce&&typeof _0x5ef014[_0x1c2732+_0x29b972('0x10')]!==_0x29b972('0xc')&&typeof _0x5ef014[_0x1c2732+_0x29b972('0x5')]!==_0x29b972('0xc')){if(_0x5ef014[_0x1c2732+'Capacity']>0x0&&_0x5ef014[_0x1c2732+_0x29b972('0x5')]>=_0x5ef014[_0x1c2732+'Capacity'])return writeLog(_0x4be3e1,_0x5ef014,_0x1c2732['toUpperCase']()+'\x20MAXCAPACITY'),![];}return!![];},exports['showNotification']=function(_0x121f33,_0x3a21cb,_0x54d4b7,_0x43252b,_0x156984){return sendNotification(!![],_0x121f33,_0x3a21cb,_0x54d4b7,_0x43252b,_0x156984);},exports[_0xf4c74e('0xf')]=function(_0xacc1bb,_0x2195a5,_0x100094,_0x4e06bd,_0x2ffe83){return sendNotification(![],_0xacc1bb,_0x2195a5,_0x100094,_0x4e06bd,_0x2ffe83);},exports[_0xf4c74e('0x8')]=writeLog; \ No newline at end of file diff --git a/server/services/routing/server/applications/system.js b/server/services/routing/server/applications/system.js index c0cfd94..ad8dc1f 100644 --- a/server/services/routing/server/applications/system.js +++ b/server/services/routing/server/applications/system.js @@ -1 +1 @@ -const a1214_0x1a3e=['next','string','[%s][SYSTEM]\x20commnad:\x20%s','getMustacheRender','message','join','isEmpty','exec','shelljs','[%s][SYSTEM]\x20no\x20variable','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','length','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','consequence','error','../../../../config/logger','lodash','routing','./utils','isObject','[%s][SYSTEM]\x20%s','[%s][SYSTEM]\x20result\x20code:\x20%s','info','trim','replace','body','stringify'];(function(_0x3924fb,_0x1a3e9a){const _0x5b996a=function(_0x1fb44f){while(--_0x1fb44f){_0x3924fb['push'](_0x3924fb['shift']());}};_0x5b996a(++_0x1a3e9a);}(a1214_0x1a3e,0x16c));const a1214_0x5b99=function(_0x3924fb,_0x1a3e9a){_0x3924fb=_0x3924fb-0x0;let _0x5b996a=a1214_0x1a3e[_0x3924fb];return _0x5b996a;};const _0x1608e6=a1214_0x5b99;'use strict';const schema=require('validate'),sh=require(_0x1608e6('0x16')),_=require(_0x1608e6('0x3')),utils=require(_0x1608e6('0x5')),logger=require(_0x1608e6('0x2'))(_0x1608e6('0x4')),system=schema({'command':{'type':_0x1608e6('0xf'),'required':!![],'message':'command\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[_0x1608e6('0x0')]=function(_0x1fb44f,_0x31a318){return function(_0x52dc78){const _0x58f75f=a1214_0x5b99;try{const _0x3d9deb={'command':_0x31a318[0x0]},_0x26c0aa=system['validate'](_0x3d9deb,{'typecast':!![]});if(_0x26c0aa[_0x58f75f('0x19')])logger[_0x58f75f('0x1')](_0x58f75f('0x7'),_0x1fb44f,_['map'](_0x26c0aa,_0x58f75f('0x12'))[_0x58f75f('0x13')](',\x20')),logger[_0x58f75f('0x9')](_0x58f75f('0x1a'),_0x1fb44f),_0x52dc78[_0x58f75f('0xe')]();else{const _0x3be6f7=this,_0x59a154=utils[_0x58f75f('0x11')](_0x31a318[0x0],this);logger['info'](_0x58f75f('0x10'),_0x1fb44f,_0x59a154),sh[_0x58f75f('0x15')](_[_0x58f75f('0xa')](_0x59a154),function(_0x23a4a2,_0x260ded){const _0x2981d6=_0x58f75f;logger[_0x2981d6('0x9')](_0x2981d6('0x8'),_0x1fb44f,_0x23a4a2);if(_0x23a4a2==0x0){const _0x1af0ce=_0x260ded[_0x2981d6('0xb')](/(\r\n|\n|\r)/gm,'');_['isNil'](_0x31a318[0x1])||_[_0x2981d6('0x14')](_0x31a318[0x1])?(logger[_0x2981d6('0x9')](_0x2981d6('0x17'),_0x1fb44f),_0x3be6f7[_0x2981d6('0xc')][_0x31a318[0x1]]=_0x1af0ce):(logger['info'](_0x2981d6('0x18'),_0x1fb44f,_0x31a318[0x1],_0x1af0ce),_0x3be6f7[_0x2981d6('0xc')][_0x31a318[0x1]]=_0x1af0ce);}_0x52dc78['next']();});}}catch(_0x590060){logger[_0x58f75f('0x1')](_0x58f75f('0x7'),_0x1fb44f,_[_0x58f75f('0x6')](_0x590060)?JSON[_0x58f75f('0xd')](_0x590060):_0x590060),logger[_0x58f75f('0x9')](_0x58f75f('0x1a'),_0x1fb44f),_0x52dc78[_0x58f75f('0xe')]();}};}; \ No newline at end of file +const a1214_0x8c2c=['[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','[%s][SYSTEM]\x20%s','[%s][SYSTEM]\x20result\x20code:\x20%s','body','isObject','map','../../../../config/logger','exec','[%s][SYSTEM]\x20commnad:\x20%s','replace','consequence','./utils','trim','message','getMustacheRender','routing','info','stringify','command\x20is\x20a\x20string\x20and\x20it\x20is\x20required','error','lodash','length','validate','isNil','next','shelljs'];(function(_0x20c06f,_0x8c2c72){const _0x41f3b5=function(_0x345a82){while(--_0x345a82){_0x20c06f['push'](_0x20c06f['shift']());}};_0x41f3b5(++_0x8c2c72);}(a1214_0x8c2c,0x101));const a1214_0x41f3=function(_0x20c06f,_0x8c2c72){_0x20c06f=_0x20c06f-0x0;let _0x41f3b5=a1214_0x8c2c[_0x20c06f];return _0x41f3b5;};const _0x4b7f08=a1214_0x41f3;'use strict';const schema=require(_0x4b7f08('0x9')),sh=require(_0x4b7f08('0xc')),_=require(_0x4b7f08('0x7')),utils=require(_0x4b7f08('0x19')),logger=require(_0x4b7f08('0x14'))(_0x4b7f08('0x2')),system=schema({'command':{'type':'string','required':!![],'message':_0x4b7f08('0x5')}});exports[_0x4b7f08('0x18')]=function(_0x345a82,_0x3e17d7){return function(_0x3a30eb){const _0x44665e=a1214_0x41f3;try{const _0x2e3dad={'command':_0x3e17d7[0x0]},_0x37d7c3=system[_0x44665e('0x9')](_0x2e3dad,{'typecast':!![]});if(_0x37d7c3[_0x44665e('0x8')])logger[_0x44665e('0x6')](_0x44665e('0xf'),_0x345a82,_[_0x44665e('0x13')](_0x37d7c3,_0x44665e('0x0'))['join'](',\x20')),logger[_0x44665e('0x3')](_0x44665e('0xe'),_0x345a82),_0x3a30eb[_0x44665e('0xb')]();else{const _0x2978d4=this,_0x376700=utils[_0x44665e('0x1')](_0x3e17d7[0x0],this);logger['info'](_0x44665e('0x16'),_0x345a82,_0x376700),sh[_0x44665e('0x15')](_[_0x44665e('0x1a')](_0x376700),function(_0x2a5a9d,_0x2d8b3d){const _0x12a02b=_0x44665e;logger[_0x12a02b('0x3')](_0x12a02b('0x10'),_0x345a82,_0x2a5a9d);if(_0x2a5a9d==0x0){const _0x4ca907=_0x2d8b3d[_0x12a02b('0x17')](/(\r\n|\n|\r)/gm,'');_[_0x12a02b('0xa')](_0x3e17d7[0x1])||_['isEmpty'](_0x3e17d7[0x1])?(logger[_0x12a02b('0x3')]('[%s][SYSTEM]\x20no\x20variable',_0x345a82),_0x2978d4['body'][_0x3e17d7[0x1]]=_0x4ca907):(logger['info'](_0x12a02b('0xd'),_0x345a82,_0x3e17d7[0x1],_0x4ca907),_0x2978d4[_0x12a02b('0x11')][_0x3e17d7[0x1]]=_0x4ca907);}_0x3a30eb[_0x12a02b('0xb')]();});}}catch(_0x5bbcce){logger[_0x44665e('0x6')]('[%s][SYSTEM]\x20%s',_0x345a82,_[_0x44665e('0x12')](_0x5bbcce)?JSON[_0x44665e('0x4')](_0x5bbcce):_0x5bbcce),logger[_0x44665e('0x3')](_0x44665e('0xe'),_0x345a82),_0x3a30eb[_0x44665e('0xb')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/tag.js b/server/services/routing/server/applications/tag.js index a17481e..fbc10c8 100644 --- a/server/services/routing/server/applications/tag.js +++ b/server/services/routing/server/applications/tag.js @@ -1 +1 @@ -const a1215_0x3f04=['length','../../../../config/logger','../../rpc/mailInteraction','validate','../../rpc/chatInteraction','message','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','info','catch','stringify','addTags','../../rpc/faxInteraction','channel','routing','error','next','lodash','[%s][TAG]\x20%s','Interaction','isObject','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','join','interaction','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s'];(function(_0x348d5f,_0x3f04f1){const _0x3c826c=function(_0x5ebef1){while(--_0x5ebef1){_0x348d5f['push'](_0x348d5f['shift']());}};_0x3c826c(++_0x3f04f1);}(a1215_0x3f04,0xaf));const a1215_0x3c82=function(_0x348d5f,_0x3f04f1){_0x348d5f=_0x348d5f-0x0;let _0x3c826c=a1215_0x3f04[_0x348d5f];return _0x3c826c;};const _0x192e50=a1215_0x3c82;'use strict';const schema=require(_0x192e50('0x14')),_=require(_0x192e50('0x9')),rpc={'chatInteraction':require(_0x192e50('0x15')),'openchannelInteraction':require('../../rpc/openchannelInteraction'),'smsInteraction':require('../../rpc/smsInteraction'),'mailInteraction':require(_0x192e50('0x13')),'faxInteraction':require(_0x192e50('0x4')),'whatsappInteraction':require('../../rpc/whatsappInteraction')},logger=require(_0x192e50('0x12'))(_0x192e50('0x6')),tag=schema({'tag':{'type':'number','required':!![],'message':_0x192e50('0x17')}});exports['consequence']=function(_0x5ebef1,_0x405c95,_0x249683,_0x4d5309){return function(_0xe6010b){const _0x1863fa=a1215_0x3c82;try{const _0x2e7972={'tag':_0x405c95[0x0]},_0x3bd136=tag[_0x1863fa('0x14')](_0x2e7972,{'typecast':!![]});if(_0x3bd136[_0x1863fa('0x11')])logger[_0x1863fa('0x7')](_0x1863fa('0xa'),_0x5ebef1,_['map'](_0x3bd136,_0x1863fa('0x16'))[_0x1863fa('0xe')](',\x20')),logger[_0x1863fa('0x0')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x5ebef1),_0xe6010b[_0x1863fa('0x8')]();else{const _0x2bc229={'ids':[_0x405c95[0x0]]};rpc[_0x4d5309['channel']+'Interaction']&&rpc[_0x4d5309['channel']+_0x1863fa('0xb')][_0x1863fa('0x3')](_0x4d5309[_0x1863fa('0xf')]['id'],_0x2bc229)['then'](function(){const _0x196c64=_0x1863fa;logger[_0x196c64('0x0')](_0x196c64('0x10'),_0x5ebef1,_0x405c95[0x1],_0x4d5309[_0x196c64('0x5')],_0x4d5309[_0x196c64('0xf')]['id']);})[_0x1863fa('0x1')](function(_0x25ec63){const _0x1c8994=_0x1863fa;logger[_0x1c8994('0x7')]('[%s][TAG]\x20%s',_0x5ebef1,JSON[_0x1c8994('0x2')](_0x25ec63)),logger['info'](_0x1c8994('0xd'),_0x5ebef1);})['finally'](function(){const _0x5f3a2d=_0x1863fa;_0xe6010b[_0x5f3a2d('0x8')]();});}}catch(_0x25574c){logger[_0x1863fa('0x7')](_0x1863fa('0xa'),_0x5ebef1,_[_0x1863fa('0xc')](_0x25574c)?JSON[_0x1863fa('0x2')](_0x25574c):_0x25574c),logger['info'](_0x1863fa('0xd'),_0x5ebef1),_0xe6010b[_0x1863fa('0x8')]();}};}; \ No newline at end of file +const a1215_0x32a7=['interaction','validate','next','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','../../rpc/mailInteraction','../../../../config/logger','lodash','length','../../rpc/openchannelInteraction','../../rpc/smsInteraction','then','stringify','../../rpc/faxInteraction','error','message','Interaction','[%s][TAG]\x20%s','consequence','../../rpc/whatsappInteraction','catch','channel','join','number','info','finally'];(function(_0x2cacfb,_0x32a783){const _0x11120a=function(_0x315c61){while(--_0x315c61){_0x2cacfb['push'](_0x2cacfb['shift']());}};_0x11120a(++_0x32a783);}(a1215_0x32a7,0x1f2));const a1215_0x1112=function(_0x2cacfb,_0x32a783){_0x2cacfb=_0x2cacfb-0x0;let _0x11120a=a1215_0x32a7[_0x2cacfb];return _0x11120a;};const _0x58cab5=a1215_0x1112;'use strict';const schema=require(_0x58cab5('0x3')),_=require(_0x58cab5('0x8')),rpc={'chatInteraction':require('../../rpc/chatInteraction'),'openchannelInteraction':require(_0x58cab5('0xa')),'smsInteraction':require(_0x58cab5('0xb')),'mailInteraction':require(_0x58cab5('0x6')),'faxInteraction':require(_0x58cab5('0xe')),'whatsappInteraction':require(_0x58cab5('0x14'))},logger=require(_0x58cab5('0x7'))('routing'),tag=schema({'tag':{'type':_0x58cab5('0x18'),'required':!![],'message':'TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[_0x58cab5('0x13')]=function(_0x315c61,_0x18dfb0,_0x3d0c67,_0x1cec5b){return function(_0x5e668d){const _0xf183db=a1215_0x1112;try{const _0x663ff3={'tag':_0x18dfb0[0x0]},_0x55638c=tag['validate'](_0x663ff3,{'typecast':!![]});if(_0x55638c[_0xf183db('0x9')])logger[_0xf183db('0xf')](_0xf183db('0x12'),_0x315c61,_['map'](_0x55638c,_0xf183db('0x10'))[_0xf183db('0x17')](',\x20')),logger[_0xf183db('0x0')](_0xf183db('0x5'),_0x315c61),_0x5e668d[_0xf183db('0x4')]();else{const _0x6fd683={'ids':[_0x18dfb0[0x0]]};rpc[_0x1cec5b[_0xf183db('0x16')]+'Interaction']&&rpc[_0x1cec5b['channel']+_0xf183db('0x11')]['addTags'](_0x1cec5b[_0xf183db('0x2')]['id'],_0x6fd683)[_0xf183db('0xc')](function(){const _0x17cf68=_0xf183db;logger[_0x17cf68('0x0')]('[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s',_0x315c61,_0x18dfb0[0x1],_0x1cec5b[_0x17cf68('0x16')],_0x1cec5b[_0x17cf68('0x2')]['id']);})[_0xf183db('0x15')](function(_0x277ebc){const _0x59d683=_0xf183db;logger[_0x59d683('0xf')](_0x59d683('0x12'),_0x315c61,JSON['stringify'](_0x277ebc)),logger[_0x59d683('0x0')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x315c61);})[_0xf183db('0x1')](function(){const _0x2f35e5=_0xf183db;_0x5e668d[_0x2f35e5('0x4')]();});}}catch(_0xadce5f){logger['error']('[%s][TAG]\x20%s',_0x315c61,_['isObject'](_0xadce5f)?JSON[_0xf183db('0xd')](_0xadce5f):_0xadce5f),logger[_0xf183db('0x0')](_0xf183db('0x5'),_0x315c61),_0x5e668d[_0xf183db('0x4')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/utils.js b/server/services/routing/server/applications/utils.js index b14ed25..847a802 100644 --- a/server/services/routing/server/applications/utils.js +++ b/server/services/routing/server/applications/utils.js @@ -1 +1 @@ -const a1216_0x5c35=['merge','message','body','mustache'];(function(_0x2716a1,_0x5c3534){const _0x227faa=function(_0x58a5fb){while(--_0x58a5fb){_0x2716a1['push'](_0x2716a1['shift']());}};_0x227faa(++_0x5c3534);}(a1216_0x5c35,0xcf));const a1216_0x227f=function(_0x2716a1,_0x5c3534){_0x2716a1=_0x2716a1-0x0;let _0x227faa=a1216_0x5c35[_0x2716a1];return _0x227faa;};const _0x222bf2=a1216_0x227f;'use strict';const Mustache=require(_0x222bf2('0x0')),_=require('lodash');module['exports']={'getMustacheRender':function(_0x58a5fb,_0x2d8790){const _0x1b199c=_0x222bf2;return Mustache['render'](_0x58a5fb,_[_0x1b199c('0x1')](_0x2d8790[_0x1b199c('0x3')],{'contact':_0x2d8790['contact'],'message':_0x2d8790[_0x1b199c('0x2')],'account':_0x2d8790['account'],'interaction':_0x2d8790['interaction'],'list':_0x2d8790['list']}))||'';}}; \ No newline at end of file +const a1216_0x4ac6=['list','render','interaction','account','lodash','body','message','contact','exports'];(function(_0x2fde71,_0x4ac6cb){const _0x3ba1b5=function(_0x10701a){while(--_0x10701a){_0x2fde71['push'](_0x2fde71['shift']());}};_0x3ba1b5(++_0x4ac6cb);}(a1216_0x4ac6,0x15f));const a1216_0x3ba1=function(_0x2fde71,_0x4ac6cb){_0x2fde71=_0x2fde71-0x0;let _0x3ba1b5=a1216_0x4ac6[_0x2fde71];return _0x3ba1b5;};const _0x43ee32=a1216_0x3ba1;'use strict';const Mustache=require('mustache'),_=require(_0x43ee32('0x4'));module[_0x43ee32('0x8')]={'getMustacheRender':function(_0x10701a,_0x55ffbc){const _0x1020a7=_0x43ee32;return Mustache[_0x1020a7('0x1')](_0x10701a,_['merge'](_0x55ffbc[_0x1020a7('0x5')],{'contact':_0x55ffbc[_0x1020a7('0x7')],'message':_0x55ffbc[_0x1020a7('0x6')],'account':_0x55ffbc[_0x1020a7('0x3')],'interaction':_0x55ffbc[_0x1020a7('0x2')],'list':_0x55ffbc[_0x1020a7('0x0')]}))||'';}}; \ No newline at end of file diff --git a/server/services/routing/server/index.js b/server/services/routing/server/index.js index 26ff4a1..fc65c12 100644 --- a/server/services/routing/server/index.js +++ b/server/services/routing/server/index.js @@ -1 +1 @@ -const a1217_0x45a0=['on\x20interval','Please\x20create\x20a\x20new\x20file\x20under','dialogflow','undefined','QueueReport','emit','whatsappQueuesWaitingInteractions','routing','busyQueue','message\x20is\x20empty','end','log','path','priority','agents','../rpc/mailQueueReport','routing\x20is\x20empty','isNil','mailQueues','values','error','Intervals','CurrentCapacity','complete','\x20|\x20','available','length','consequence','.js','amazonlex','IntervalId','info','No\x20applications\x20to\x20execute','split','loggedIn','util','error\x20update\x20queue\x20report','whatsappQueues','chatQueuesWaitingInteractions','server','faxQueues','interaction','map','isArray','catch','update','stack','updateRealtime','../rpc/openchannelQueueReport','../rpc/faxQueueReport','jayson/promise','rules','interval','appdata','../rpc/smsQueueReport','../rpc/whatsappQueueReport','channel','capacity','intervals','smsQueuesWaitingInteractions','openchannelQueues','matchPath','paused','execute','applications','%s.%s.%s','listen','Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','slice','chatQueues','busy','openchannelQueuesWaitingInteractions','faxQueuesWaitingInteractions','condition','agent','push','message','name','mailQueuesWaitingInteractions','app','tag','TagId','../lib/rule-engine','autoreply','waiting','../rpc/chatQueueReport','Applications\x20executed','stringify','lodash','127.0.0.1','join','smsQueues','format'];(function(_0x45186c,_0x45a0e2){const _0xa29037=function(_0x30e2ad){while(--_0x30e2ad){_0x45186c['push'](_0x45186c['shift']());}};_0xa29037(++_0x45a0e2);}(a1217_0x45a0,0x12f));const a1217_0xa290=function(_0x45186c,_0x45a0e2){_0x45186c=_0x45186c-0x0;let _0xa29037=a1217_0x45a0[_0x45186c];return _0xa29037;};const _0x460505=a1217_0xa290;'use strict';const _=require(_0x460505('0x40')),util=require(_0x460505('0xb')),path=require(_0x460505('0x51')),fs=require('fs'),jayson=require(_0x460505('0x1a')),logger=require('../../../config/logger')(_0x460505('0x4c')),rpc={'openchannelQueueReport':require(_0x460505('0x18')),'mailQueueReport':require(_0x460505('0x54')),'chatQueueReport':require(_0x460505('0x3d')),'smsQueueReport':require(_0x460505('0x1e')),'faxQueueReport':require(_0x460505('0x19')),'whatsappQueueReport':require(_0x460505('0x1f'))},RuleEngine=require(_0x460505('0x3a'));function getId(_0x30e2ad,_0x46faf2,_0x120eb0){const _0x307095=_0x460505;return util[_0x307095('0x44')](_0x307095('0x29'),_0x30e2ad,_0x46faf2||0x0,_0x120eb0||0x0);}function getIntervals(_0x5f16d4,_0x4f9376){const _0x469bd5=_0x460505;let _0x1cc82e=[];if(!_[_0x469bd5('0x56')](_0x4f9376[_0x469bd5('0x6')])&&!_['isNil'](_0x5f16d4[_0x4f9376[_0x469bd5('0x6')]])&&!_[_0x469bd5('0x56')](_0x5f16d4[_0x4f9376['IntervalId']][_0x469bd5('0x5a')]))_0x1cc82e=_[_0x469bd5('0x12')](_0x5f16d4[_0x4f9376[_0x469bd5('0x6')]][_0x469bd5('0x5a')],_0x469bd5('0x1c'));else!_['isNil'](_0x4f9376[_0x469bd5('0x1c')])&&(_0x1cc82e=[_0x4f9376[_0x469bd5('0x1c')]]);return _0x1cc82e;}exports['listen']=function(_0x204235){const _0xcd53c1=_0x460505;return _0x204235[_0xcd53c1('0x1b')]={},new Promise(function(_0x209e9b,_0x4699de){const _0x4c04ec=_0xcd53c1,_0x5504ee={'Start':function(_0x1eb176){const _0x1b7c44=this;return new Promise(function(_0x277ee9,_0x4bff2f){const _0x267394=a1217_0xa290;if(_0x1eb176)try{const _0x235a3f=[],_0x569197=getId(_0x1eb176[_0x267394('0x20')],_0x1eb176[_0x267394('0x34')]?_0x1eb176['message']['id']:0x0,_0x1eb176[_0x267394('0x11')]?_0x1eb176[_0x267394('0x11')]['id']:0x0);if(_0x1eb176[_0x267394('0x28')]&&_[_0x267394('0x13')](_0x1eb176['applications'])&&_0x1eb176[_0x267394('0x28')][_0x267394('0x2')]){for(let _0x1a2c10=0x0;_0x1a2c10<_0x1eb176[_0x267394('0x28')][_0x267394('0x2')];_0x1a2c10+=0x1){const _0x528468=_0x1eb176[_0x267394('0x28')][_0x1a2c10];if(fs['existsSync'](path[_0x267394('0x42')](__dirname,_0x267394('0x28'),_0x528468[_0x267394('0x37')]+_0x267394('0x4')))){let _0x3dce9f=[];switch(_0x528468['app']['toLowerCase']()){case _0x267394('0x3b'):{const _0x27e0eb=_0x528468[_0x267394('0x1d')]['split'](',');_0x3dce9f[_0x267394('0x33')](_0x27e0eb[0x0]),_0x3dce9f[_0x267394('0x33')](_0x27e0eb['slice'](0x1,_0x27e0eb[_0x267394('0x2')])[_0x267394('0x42')](','));}break;case _0x267394('0x47'):{const _0x346f1e=_0x528468['appdata']['split'](',');_0x3dce9f[_0x267394('0x33')](_0x346f1e[0x0]),_0x3dce9f[_0x267394('0x33')](_0x346f1e[0x1]),_0x3dce9f[_0x267394('0x33')](_0x346f1e['slice'](0x2,_0x346f1e['length'])[_0x267394('0x42')](','));}break;case _0x267394('0x5'):{const _0x511d62=_0x528468[_0x267394('0x1d')]['split'](',');_0x3dce9f['push'](_0x511d62[0x0]),_0x3dce9f[_0x267394('0x33')](_0x511d62[0x1]),_0x3dce9f[_0x267394('0x33')](_0x511d62[0x2]),_0x3dce9f[_0x267394('0x33')](_0x511d62[0x3]),_0x3dce9f[_0x267394('0x33')](_0x511d62[_0x267394('0x2c')](0x4,_0x511d62['length'])[_0x267394('0x42')](','));}break;case _0x267394('0x34'):_0x3dce9f['push'](_0x528468['appdata']);break;case _0x267394('0x38'):_0x3dce9f[_0x267394('0x33')](_0x528468[_0x267394('0x39')]),_0x3dce9f[_0x267394('0x33')](_0x528468['appdata']);break;default:_0x3dce9f=_[_0x267394('0x56')](_0x528468[_0x267394('0x1d')])?[]:_0x528468[_0x267394('0x1d')][_0x267394('0x9')](',');}const _0x57dfe8={'id':util['format']('%s:%s:%s',_0x569197,_0x528468['id'],_0x528468['app']),'condition':require('./interval')[_0x267394('0x31')](_0x569197,getIntervals(_0x204235[_0x267394('0x22')],_0x528468),_0x204235),'consequence':require('./applications/'+_0x528468[_0x267394('0x37')])[_0x267394('0x3')](_0x569197,_0x3dce9f,_0x204235,_0x1eb176),'p':_0x528468[_0x267394('0x52')]||0x0};logger['info']('Push\x20new\x20rule',_0x57dfe8['id'],_0x267394('0x45'),getIntervals(_0x204235[_0x267394('0x22')],_0x528468)[_0x267394('0x42')](_0x267394('0x0'))),_0x235a3f['push'](_0x57dfe8);}else logger['error'](_0x267394('0x46'),path[_0x267394('0x42')](__dirname,_0x267394('0x28'),_0x528468[_0x267394('0x37')]+'.js'));}return _0x204235[_0x267394('0x1b')][_0x569197]=new RuleEngine(_0x235a3f),_0x204235[_0x267394('0x1b')][_0x569197][_0x267394('0x27')](_0x1eb176,function(_0x5053e1){const _0x11549f=_0x267394;logger[_0x11549f('0x7')](_0x11549f('0x3e'),JSON[_0x11549f('0x3f')](_0x5053e1[_0x11549f('0x25')])),_0x204235[_0x11549f('0x1b')][_0x569197]&&_0x204235[_0x11549f('0x1b')][_0x569197]['emit'](_0x11549f('0x5c'));}),_0x277ee9({'code':0xc8,'message':_0x1eb176});}else return logger[_0x267394('0x7')](_0x267394('0x8')),_0x277ee9({'code':0xc8,'message':_0x1eb176});}catch(_0x562dd3){return logger[_0x267394('0x59')](_0x562dd3[_0x267394('0x16')]),_0x4bff2f(_0x1b7c44['error'](0x1f4,_0x562dd3));}return _0x4bff2f(_0x267394('0x55'));});},'AcceptMessage':function(_0x3f5b72){const _0x2c1d59=this;return new Promise(function(_0xea065,_0x1a6a7f){const _0x16460c=a1217_0xa290;if(_0x3f5b72[_0x16460c('0x34')]&&_0x3f5b72[_0x16460c('0x34')]['id'])try{const _0x2d30f3=getId(_0x3f5b72['channel'],_0x3f5b72[_0x16460c('0x34')]?_0x3f5b72[_0x16460c('0x34')]['id']:0x0,_0x3f5b72[_0x16460c('0x11')]?_0x3f5b72['interaction']['id']:0x0);return _0x204235[_0x16460c('0x1b')][_0x2d30f3]&&(_0x204235[_0x16460c('0x1b')][_0x2d30f3]['emit'](_0x16460c('0x4f')),rpc[_0x3f5b72[_0x16460c('0x20')]+_0x16460c('0x49')]&&rpc[_0x3f5b72[_0x16460c('0x20')]+_0x16460c('0x49')][_0x16460c('0x15')](_0x2d30f3,{'UserId':_0x3f5b72[_0x16460c('0x34')]['UserId']})[_0x16460c('0x14')](function(){const _0x31907e=_0x16460c;logger[_0x31907e('0x59')](_0x31907e('0xc'));})),_0xea065({'code':0xc8,'message':_0x3f5b72});}catch(_0x4c2aff){return logger[_0x16460c('0x59')](_0x4c2aff['stack']),_0x1a6a7f(_0x2c1d59[_0x16460c('0x59')](0x1f4,_0x4c2aff));}return logger[_0x16460c('0x59')](_0x16460c('0x4e')),_0x1a6a7f(_0x2c1d59[_0x16460c('0x59')](0x1f4,'message\x20is\x20empty'));});},'RejectMessage':function(_0x417a1f){const _0x2030c8=this;return new Promise(function(_0x35f930,_0x5f0151){const _0x5c5fc0=a1217_0xa290;if(_0x417a1f['agent']&&_0x417a1f[_0x5c5fc0('0x32')]['id'])try{return _0x204235[_0x5c5fc0('0x53')][_0x417a1f[_0x5c5fc0('0x32')]['id']]&&(_0x204235[_0x5c5fc0('0x53')][_0x417a1f[_0x5c5fc0('0x32')]['id']][_0x5c5fc0('0x2e')]=![],_0x204235[_0x5c5fc0('0x53')][_0x417a1f[_0x5c5fc0('0x32')]['id']][_0x5c5fc0('0x4d')]=undefined),_0x35f930({'code':0xc8,'message':_0x417a1f});}catch(_0x177f78){return logger[_0x5c5fc0('0x59')](_0x177f78['stack']),_0x5f0151(_0x2030c8[_0x5c5fc0('0x59')](0x1f4,_0x177f78));}return logger[_0x5c5fc0('0x59')](_0x5c5fc0('0x4e')),_0x5f0151(_0x2030c8[_0x5c5fc0('0x59')](0x1f4,'message\x20is\x20empty'));});},'AbandonInteraction':function(_0x46653e){const _0x353f7b=this;return new Promise(function(_0x24156a,_0x4baa9c){const _0x41018c=a1217_0xa290;if(_0x46653e[_0x41018c('0x20')]&&_0x46653e[_0x41018c('0x11')]&&_0x46653e[_0x41018c('0x11')]['id'])try{const _0x8e27a7=getId(_0x46653e[_0x41018c('0x20')],_0x46653e[_0x41018c('0x34')]?_0x46653e[_0x41018c('0x34')]['id']:0x0,_0x46653e[_0x41018c('0x11')]?_0x46653e[_0x41018c('0x11')]['id']:0x0);return _0x204235['rules'][_0x8e27a7]&&_0x204235[_0x41018c('0x1b')][_0x8e27a7][_0x41018c('0x4a')](_0x41018c('0x4f')),_0x24156a({'code':0xc8,'message':_0x46653e});}catch(_0xb2353a){return logger[_0x41018c('0x59')](_0xb2353a[_0x41018c('0x16')]),_0x4baa9c(_0x353f7b[_0x41018c('0x59')](0x1f4,_0xb2353a));}return logger['error'](_0x41018c('0x4e')),_0x4baa9c(_0x353f7b[_0x41018c('0x59')](0x1f4,'message\x20is\x20empty'));});},'AgentCapacity':function(_0xc5c9cb){const _0x36232d=this;return new Promise(function(_0x2c831e,_0xde07){const _0x52005d=a1217_0xa290;if(typeof _0x204235[_0x52005d('0x53')][_0xc5c9cb['id']]!=='undefined'){for(const _0x2c104b in _0xc5c9cb['capacity']){typeof _0xc5c9cb[_0x52005d('0x21')][_0x2c104b]!==_0x52005d('0x48')&&(typeof _0x204235['agents'][_0xc5c9cb['id']][_0x2c104b+_0x52005d('0x5b')]!==_0x52005d('0x48')&&(_0x204235[_0x52005d('0x53')][_0xc5c9cb['id']][_0x2c104b+_0x52005d('0x5b')]=parseInt(_0xc5c9cb[_0x52005d('0x21')][_0x2c104b],0xa)));}return _0x204235[_0x52005d('0x53')][_0xc5c9cb['id']][_0x52005d('0x17')](),_0x2c831e({'code':0xc8,'message':_0x204235[_0x52005d('0x53')][_0xc5c9cb['id']]});}else return _0xde07(_0x36232d[_0x52005d('0x59')](0x1f4,'agent\x20not\x20found'));});},'Agents':function(){return new Promise(function(_0x16d6eb){const _0x5956f4=a1217_0xa290,_0x4f9cd8=_['values'](_0x204235[_0x5956f4('0x53')]);_0x16d6eb({'count':_0x4f9cd8[_0x5956f4('0x2')],'rows':_0x4f9cd8});});},'ChatQueues':function(){return new Promise(function(_0x2bb2e1){const _0x5e2d66=a1217_0xa290,_0x1010b5=[];for(const _0x36c202 in _0x204235[_0x5e2d66('0x2d')]){if(typeof _0x204235[_0x5e2d66('0x2d')][_0x36c202]!==_0x5e2d66('0x48')){const _0x153638=_0x204235[_0x5e2d66('0x2d')][_0x36c202],_0x1a9017={'id':_0x153638['id'],'available':_0x153638[_0x5e2d66('0x1')],'loggedIn':_0x153638[_0x5e2d66('0xa')],'name':_0x153638[_0x5e2d66('0x35')],'paused':_0x153638[_0x5e2d66('0x26')],'waiting':_0x153638[_0x5e2d66('0x3c')]};_0x1010b5['push'](_0x1a9017);}}_0x2bb2e1({'count':_0x1010b5[_0x5e2d66('0x2')],'rows':_0x1010b5});});},'MailQueues':function(){return new Promise(function(_0x4a7922){const _0x5a5533=a1217_0xa290,_0x543a66=[];for(const _0x48f1bc in _0x204235['mailQueues']){if(typeof _0x204235[_0x5a5533('0x57')][_0x48f1bc]!==_0x5a5533('0x48')){const _0x3fa358=_0x204235[_0x5a5533('0x57')][_0x48f1bc],_0x25a9c9={'id':_0x3fa358['id'],'available':_0x3fa358['available'],'loggedIn':_0x3fa358[_0x5a5533('0xa')],'name':_0x3fa358[_0x5a5533('0x35')],'paused':_0x3fa358[_0x5a5533('0x26')],'waiting':_0x3fa358[_0x5a5533('0x3c')]};_0x543a66['push'](_0x25a9c9);}}_0x4a7922({'count':_0x543a66[_0x5a5533('0x2')],'rows':_0x543a66});});},'OpenchannelQueues':function(){return new Promise(function(_0xee746f){const _0xbacf15=a1217_0xa290,_0x18bf28=[];for(const _0x5773b6 in _0x204235[_0xbacf15('0x24')]){if(typeof _0x204235[_0xbacf15('0x24')][_0x5773b6]!==_0xbacf15('0x48')){const _0x5eeb1c=_0x204235['openchannelQueues'][_0x5773b6],_0x17430e={'id':_0x5eeb1c['id'],'available':_0x5eeb1c[_0xbacf15('0x1')],'loggedIn':_0x5eeb1c[_0xbacf15('0xa')],'name':_0x5eeb1c[_0xbacf15('0x35')],'paused':_0x5eeb1c[_0xbacf15('0x26')],'waiting':_0x5eeb1c[_0xbacf15('0x3c')]};_0x18bf28['push'](_0x17430e);}}_0xee746f({'count':_0x18bf28[_0xbacf15('0x2')],'rows':_0x18bf28});});},'SmsQueues':function(){return new Promise(function(_0x5382e5){const _0x559096=a1217_0xa290,_0x240bdc=[];for(const _0x211b4a in _0x204235[_0x559096('0x43')]){if(typeof _0x204235[_0x559096('0x43')][_0x211b4a]!==_0x559096('0x48')){const _0x25aa25=_0x204235[_0x559096('0x43')][_0x211b4a],_0x4e9984={'id':_0x25aa25['id'],'available':_0x25aa25[_0x559096('0x1')],'loggedIn':_0x25aa25[_0x559096('0xa')],'name':_0x25aa25[_0x559096('0x35')],'paused':_0x25aa25[_0x559096('0x26')],'waiting':_0x25aa25[_0x559096('0x3c')]};_0x240bdc['push'](_0x4e9984);}}_0x5382e5({'count':_0x240bdc[_0x559096('0x2')],'rows':_0x240bdc});});},'FaxQueues':function(){return new Promise(function(_0x3648ec){const _0xf12135=a1217_0xa290,_0x598872=[];for(const _0x31322e in _0x204235[_0xf12135('0x10')]){if(typeof _0x204235[_0xf12135('0x10')][_0x31322e]!=='undefined'){const _0x288067=_0x204235[_0xf12135('0x10')][_0x31322e],_0x50d0a9={'id':_0x288067['id'],'available':_0x288067[_0xf12135('0x1')],'loggedIn':_0x288067[_0xf12135('0xa')],'name':_0x288067[_0xf12135('0x35')],'paused':_0x288067['paused'],'waiting':_0x288067[_0xf12135('0x3c')]};_0x598872[_0xf12135('0x33')](_0x50d0a9);}}_0x3648ec({'count':_0x598872[_0xf12135('0x2')],'rows':_0x598872});});},'WhatsappQueues':function(){return new Promise(function(_0x51d284){const _0x529102=a1217_0xa290,_0x38a61d=[];for(const _0x2540aa in _0x204235[_0x529102('0xd')]){if(typeof _0x204235['whatsappQueues'][_0x2540aa]!=='undefined'){const _0x32c35a=_0x204235['whatsappQueues'][_0x2540aa],_0x262526={'id':_0x32c35a['id'],'available':_0x32c35a[_0x529102('0x1')],'loggedIn':_0x32c35a[_0x529102('0xa')],'name':_0x32c35a[_0x529102('0x35')],'paused':_0x32c35a['paused'],'waiting':_0x32c35a[_0x529102('0x3c')]};_0x38a61d[_0x529102('0x33')](_0x262526);}}_0x51d284({'count':_0x38a61d['length'],'rows':_0x38a61d});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x5c8562){const _0x2c4fef=a1217_0xa290,_0x5c09a8=_[_0x2c4fef('0x58')](_0x204235[_0x2c4fef('0xe')]);_0x5c8562({'count':_0x5c09a8[_0x2c4fef('0x2')],'rows':_0x5c09a8});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x456d75){const _0x198e1c=a1217_0xa290,_0x2c851a=_[_0x198e1c('0x58')](_0x204235[_0x198e1c('0x36')]);_0x456d75({'count':_0x2c851a[_0x198e1c('0x2')],'rows':_0x2c851a});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0x54e42d){const _0x53535e=a1217_0xa290,_0x31bc51=_['values'](_0x204235[_0x53535e('0x2f')]);_0x54e42d({'count':_0x31bc51['length'],'rows':_0x31bc51});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x44b9c4){const _0xde2183=a1217_0xa290,_0x3f059a=_[_0xde2183('0x58')](_0x204235[_0xde2183('0x23')]);_0x44b9c4({'count':_0x3f059a[_0xde2183('0x2')],'rows':_0x3f059a});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x46420d){const _0x598834=a1217_0xa290,_0x3a6c5b=_['values'](_0x204235[_0x598834('0x30')]);_0x46420d({'count':_0x3a6c5b[_0x598834('0x2')],'rows':_0x3a6c5b});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x58e0c4){const _0x2e011c=a1217_0xa290,_0x61a532=_[_0x2e011c('0x58')](_0x204235[_0x2e011c('0x4b')]);_0x58e0c4({'count':_0x61a532[_0x2e011c('0x2')],'rows':_0x61a532});});}},_0x4822a5=jayson[_0x4c04ec('0xf')](_0x5504ee)['http']();_0x4822a5['on'](_0x4c04ec('0x59'),function(_0x18762b){const _0x183f40=_0x4c04ec;return logger[_0x183f40('0x59')](JSON[_0x183f40('0x3f')](_0x18762b)),_0x4699de(_0x18762b);}),_0x4822a5[_0x4c04ec('0x2a')](0x232c,_0x4c04ec('0x41'),function(){const _0x13a404=_0x4c04ec;return console[_0x13a404('0x50')](_0x13a404('0x2b'),0x232c),_0x209e9b('RPC\x20listening\x20on\x20port:'+0x232c);});});}; \ No newline at end of file +const a1217_0x420c=['channel','values','emit','chatQueues','interaction','faxQueuesWaitingInteractions','agent','stringify','error\x20update\x20queue\x20report','busyQueue','../lib/rule-engine','../rpc/mailQueueReport','./interval','openchannelQueues','intervals','whatsappQueues','execute','capacity','stack','on\x20interval','127.0.0.1','isNil','Please\x20create\x20a\x20new\x20file\x20under','paused','../rpc/openchannelQueueReport','jayson/promise','lodash','./applications/','Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','consequence','complete','slice','split','push','IntervalId','listen','catch','tag','undefined','waiting','loggedIn','QueueReport','../rpc/smsQueueReport','UserId','interval','autoreply','join','Push\x20new\x20rule','app','name','faxQueues','available','routing','rules','format','appdata','\x20|\x20','existsSync','whatsappQueuesWaitingInteractions','No\x20applications\x20to\x20execute','error','../rpc/whatsappQueueReport','routing\x20is\x20empty','CurrentCapacity','message\x20is\x20empty','agents','../rpc/chatQueueReport','smsQueues','map','path','../rpc/faxQueueReport','message','length','priority','matchPath','mailQueues','applications','dialogflow','info','openchannelQueuesWaitingInteractions','isArray','smsQueuesWaitingInteractions','.js'];(function(_0x22d1c8,_0x420c84){const _0x2558cd=function(_0x3ace90){while(--_0x3ace90){_0x22d1c8['push'](_0x22d1c8['shift']());}};_0x2558cd(++_0x420c84);}(a1217_0x420c,0x183));const a1217_0x2558=function(_0x22d1c8,_0x420c84){_0x22d1c8=_0x22d1c8-0x0;let _0x2558cd=a1217_0x420c[_0x22d1c8];return _0x2558cd;};const _0x407145=a1217_0x2558;'use strict';const _=require(_0x407145('0x36')),util=require('util'),path=require(_0x407145('0xe')),fs=require('fs'),jayson=require(_0x407145('0x35')),logger=require('../../../config/logger')(_0x407145('0x50')),rpc={'openchannelQueueReport':require(_0x407145('0x34')),'mailQueueReport':require(_0x407145('0x27')),'chatQueueReport':require(_0x407145('0xb')),'smsQueueReport':require(_0x407145('0x46')),'faxQueueReport':require(_0x407145('0xf')),'whatsappQueueReport':require(_0x407145('0x6'))},RuleEngine=require(_0x407145('0x26'));function getId(_0x3ace90,_0x44f186,_0x19515e){const _0xde4ff9=_0x407145;return util[_0xde4ff9('0x52')]('%s.%s.%s',_0x3ace90,_0x44f186||0x0,_0x19515e||0x0);}function getIntervals(_0x5029b9,_0x382dd4){const _0x1a226a=_0x407145;let _0x49f0be=[];if(!_[_0x1a226a('0x31')](_0x382dd4[_0x1a226a('0x3e')])&&!_[_0x1a226a('0x31')](_0x5029b9[_0x382dd4[_0x1a226a('0x3e')]])&&!_[_0x1a226a('0x31')](_0x5029b9[_0x382dd4[_0x1a226a('0x3e')]]['Intervals']))_0x49f0be=_[_0x1a226a('0xd')](_0x5029b9[_0x382dd4[_0x1a226a('0x3e')]]['Intervals'],'interval');else!_[_0x1a226a('0x31')](_0x382dd4[_0x1a226a('0x48')])&&(_0x49f0be=[_0x382dd4['interval']]);return _0x49f0be;}exports[_0x407145('0x3f')]=function(_0x113284){const _0x20ad55=_0x407145;return _0x113284[_0x20ad55('0x51')]={},new Promise(function(_0x1323e4,_0x1c8100){const _0x374170=_0x20ad55,_0x49dd42={'Start':function(_0x29f67b){const _0x367e2b=this;return new Promise(function(_0x5adee9,_0x141e60){const _0x3f7acd=a1217_0x2558;if(_0x29f67b)try{const _0x34270e=[],_0x5eb2f2=getId(_0x29f67b['channel'],_0x29f67b[_0x3f7acd('0x10')]?_0x29f67b[_0x3f7acd('0x10')]['id']:0x0,_0x29f67b[_0x3f7acd('0x20')]?_0x29f67b[_0x3f7acd('0x20')]['id']:0x0);if(_0x29f67b[_0x3f7acd('0x15')]&&_[_0x3f7acd('0x19')](_0x29f67b['applications'])&&_0x29f67b['applications'][_0x3f7acd('0x11')]){for(let _0x1ee53a=0x0;_0x1ee53a<_0x29f67b['applications'][_0x3f7acd('0x11')];_0x1ee53a+=0x1){const _0x4ab48e=_0x29f67b['applications'][_0x1ee53a];if(fs[_0x3f7acd('0x2')](path['join'](__dirname,_0x3f7acd('0x15'),_0x4ab48e[_0x3f7acd('0x4c')]+_0x3f7acd('0x1b')))){let _0x584988=[];switch(_0x4ab48e['app']['toLowerCase']()){case _0x3f7acd('0x49'):{const _0x2cc76=_0x4ab48e['appdata'][_0x3f7acd('0x3c')](',');_0x584988[_0x3f7acd('0x3d')](_0x2cc76[0x0]),_0x584988['push'](_0x2cc76[_0x3f7acd('0x3b')](0x1,_0x2cc76[_0x3f7acd('0x11')])[_0x3f7acd('0x4a')](','));}break;case _0x3f7acd('0x16'):{const _0x1e7310=_0x4ab48e[_0x3f7acd('0x0')][_0x3f7acd('0x3c')](',');_0x584988[_0x3f7acd('0x3d')](_0x1e7310[0x0]),_0x584988[_0x3f7acd('0x3d')](_0x1e7310[0x1]),_0x584988['push'](_0x1e7310[_0x3f7acd('0x3b')](0x2,_0x1e7310[_0x3f7acd('0x11')])['join'](','));}break;case'amazonlex':{const _0x47875b=_0x4ab48e[_0x3f7acd('0x0')][_0x3f7acd('0x3c')](',');_0x584988['push'](_0x47875b[0x0]),_0x584988[_0x3f7acd('0x3d')](_0x47875b[0x1]),_0x584988['push'](_0x47875b[0x2]),_0x584988[_0x3f7acd('0x3d')](_0x47875b[0x3]),_0x584988[_0x3f7acd('0x3d')](_0x47875b[_0x3f7acd('0x3b')](0x4,_0x47875b[_0x3f7acd('0x11')])[_0x3f7acd('0x4a')](','));}break;case _0x3f7acd('0x10'):_0x584988[_0x3f7acd('0x3d')](_0x4ab48e[_0x3f7acd('0x0')]);break;case _0x3f7acd('0x41'):_0x584988['push'](_0x4ab48e['TagId']),_0x584988[_0x3f7acd('0x3d')](_0x4ab48e[_0x3f7acd('0x0')]);break;default:_0x584988=_[_0x3f7acd('0x31')](_0x4ab48e[_0x3f7acd('0x0')])?[]:_0x4ab48e['appdata'][_0x3f7acd('0x3c')](',');}const _0x505c87={'id':util[_0x3f7acd('0x52')]('%s:%s:%s',_0x5eb2f2,_0x4ab48e['id'],_0x4ab48e[_0x3f7acd('0x4c')]),'condition':require(_0x3f7acd('0x28'))['condition'](_0x5eb2f2,getIntervals(_0x113284[_0x3f7acd('0x2a')],_0x4ab48e),_0x113284),'consequence':require(_0x3f7acd('0x37')+_0x4ab48e[_0x3f7acd('0x4c')])[_0x3f7acd('0x39')](_0x5eb2f2,_0x584988,_0x113284,_0x29f67b),'p':_0x4ab48e[_0x3f7acd('0x12')]||0x0};logger[_0x3f7acd('0x17')](_0x3f7acd('0x4b'),_0x505c87['id'],_0x3f7acd('0x2f'),getIntervals(_0x113284[_0x3f7acd('0x2a')],_0x4ab48e)['join'](_0x3f7acd('0x1'))),_0x34270e[_0x3f7acd('0x3d')](_0x505c87);}else logger[_0x3f7acd('0x5')](_0x3f7acd('0x32'),path[_0x3f7acd('0x4a')](__dirname,_0x3f7acd('0x15'),_0x4ab48e[_0x3f7acd('0x4c')]+_0x3f7acd('0x1b')));}return _0x113284[_0x3f7acd('0x51')][_0x5eb2f2]=new RuleEngine(_0x34270e),_0x113284[_0x3f7acd('0x51')][_0x5eb2f2][_0x3f7acd('0x2c')](_0x29f67b,function(_0x48c813){const _0x14f4a0=_0x3f7acd;logger[_0x14f4a0('0x17')]('Applications\x20executed',JSON[_0x14f4a0('0x23')](_0x48c813[_0x14f4a0('0x13')])),_0x113284[_0x14f4a0('0x51')][_0x5eb2f2]&&_0x113284[_0x14f4a0('0x51')][_0x5eb2f2][_0x14f4a0('0x1e')](_0x14f4a0('0x3a'));}),_0x5adee9({'code':0xc8,'message':_0x29f67b});}else return logger[_0x3f7acd('0x17')](_0x3f7acd('0x4')),_0x5adee9({'code':0xc8,'message':_0x29f67b});}catch(_0x5e1f46){return logger['error'](_0x5e1f46[_0x3f7acd('0x2e')]),_0x141e60(_0x367e2b[_0x3f7acd('0x5')](0x1f4,_0x5e1f46));}return _0x141e60(_0x3f7acd('0x7'));});},'AcceptMessage':function(_0x465dea){const _0x5c1cb1=this;return new Promise(function(_0x283bd6,_0x4aff19){const _0x943dcc=a1217_0x2558;if(_0x465dea[_0x943dcc('0x10')]&&_0x465dea[_0x943dcc('0x10')]['id'])try{const _0x3c345d=getId(_0x465dea[_0x943dcc('0x1c')],_0x465dea[_0x943dcc('0x10')]?_0x465dea['message']['id']:0x0,_0x465dea[_0x943dcc('0x20')]?_0x465dea[_0x943dcc('0x20')]['id']:0x0);return _0x113284[_0x943dcc('0x51')][_0x3c345d]&&(_0x113284[_0x943dcc('0x51')][_0x3c345d][_0x943dcc('0x1e')]('end'),rpc[_0x465dea[_0x943dcc('0x1c')]+_0x943dcc('0x45')]&&rpc[_0x465dea['channel']+_0x943dcc('0x45')]['update'](_0x3c345d,{'UserId':_0x465dea[_0x943dcc('0x10')][_0x943dcc('0x47')]})[_0x943dcc('0x40')](function(){const _0x55a820=_0x943dcc;logger['error'](_0x55a820('0x24'));})),_0x283bd6({'code':0xc8,'message':_0x465dea});}catch(_0x115fa7){return logger['error'](_0x115fa7['stack']),_0x4aff19(_0x5c1cb1[_0x943dcc('0x5')](0x1f4,_0x115fa7));}return logger[_0x943dcc('0x5')]('message\x20is\x20empty'),_0x4aff19(_0x5c1cb1[_0x943dcc('0x5')](0x1f4,_0x943dcc('0x9')));});},'RejectMessage':function(_0x32c8b5){const _0x262e98=this;return new Promise(function(_0x58b0f6,_0x5d9380){const _0x5abc52=a1217_0x2558;if(_0x32c8b5['agent']&&_0x32c8b5[_0x5abc52('0x22')]['id'])try{return _0x113284['agents'][_0x32c8b5['agent']['id']]&&(_0x113284[_0x5abc52('0xa')][_0x32c8b5[_0x5abc52('0x22')]['id']]['busy']=![],_0x113284[_0x5abc52('0xa')][_0x32c8b5[_0x5abc52('0x22')]['id']][_0x5abc52('0x25')]=undefined),_0x58b0f6({'code':0xc8,'message':_0x32c8b5});}catch(_0x245680){return logger[_0x5abc52('0x5')](_0x245680['stack']),_0x5d9380(_0x262e98[_0x5abc52('0x5')](0x1f4,_0x245680));}return logger[_0x5abc52('0x5')](_0x5abc52('0x9')),_0x5d9380(_0x262e98['error'](0x1f4,_0x5abc52('0x9')));});},'AbandonInteraction':function(_0x418d1b){const _0x97666e=this;return new Promise(function(_0xa542b7,_0x3d5916){const _0xcb07df=a1217_0x2558;if(_0x418d1b[_0xcb07df('0x1c')]&&_0x418d1b[_0xcb07df('0x20')]&&_0x418d1b['interaction']['id'])try{const _0x34e855=getId(_0x418d1b['channel'],_0x418d1b[_0xcb07df('0x10')]?_0x418d1b[_0xcb07df('0x10')]['id']:0x0,_0x418d1b['interaction']?_0x418d1b[_0xcb07df('0x20')]['id']:0x0);return _0x113284['rules'][_0x34e855]&&_0x113284[_0xcb07df('0x51')][_0x34e855][_0xcb07df('0x1e')]('end'),_0xa542b7({'code':0xc8,'message':_0x418d1b});}catch(_0x44f2d2){return logger[_0xcb07df('0x5')](_0x44f2d2['stack']),_0x3d5916(_0x97666e[_0xcb07df('0x5')](0x1f4,_0x44f2d2));}return logger['error'](_0xcb07df('0x9')),_0x3d5916(_0x97666e[_0xcb07df('0x5')](0x1f4,_0xcb07df('0x9')));});},'AgentCapacity':function(_0x44d2ca){const _0x388844=this;return new Promise(function(_0x2024f6,_0x384b30){const _0x4178b0=a1217_0x2558;if(typeof _0x113284[_0x4178b0('0xa')][_0x44d2ca['id']]!=='undefined'){for(const _0x2e9350 in _0x44d2ca['capacity']){typeof _0x44d2ca['capacity'][_0x2e9350]!==_0x4178b0('0x42')&&(typeof _0x113284[_0x4178b0('0xa')][_0x44d2ca['id']][_0x2e9350+_0x4178b0('0x8')]!==_0x4178b0('0x42')&&(_0x113284['agents'][_0x44d2ca['id']][_0x2e9350+_0x4178b0('0x8')]=parseInt(_0x44d2ca[_0x4178b0('0x2d')][_0x2e9350],0xa)));}return _0x113284['agents'][_0x44d2ca['id']]['updateRealtime'](),_0x2024f6({'code':0xc8,'message':_0x113284[_0x4178b0('0xa')][_0x44d2ca['id']]});}else return _0x384b30(_0x388844['error'](0x1f4,'agent\x20not\x20found'));});},'Agents':function(){return new Promise(function(_0x283641){const _0x4dd40e=a1217_0x2558,_0x5a09bb=_[_0x4dd40e('0x1d')](_0x113284[_0x4dd40e('0xa')]);_0x283641({'count':_0x5a09bb['length'],'rows':_0x5a09bb});});},'ChatQueues':function(){return new Promise(function(_0x36a55f){const _0x56a43d=a1217_0x2558,_0x2398b9=[];for(const _0xde7aa in _0x113284[_0x56a43d('0x1f')]){if(typeof _0x113284[_0x56a43d('0x1f')][_0xde7aa]!=='undefined'){const _0x3ab369=_0x113284[_0x56a43d('0x1f')][_0xde7aa],_0x417eb5={'id':_0x3ab369['id'],'available':_0x3ab369[_0x56a43d('0x4f')],'loggedIn':_0x3ab369[_0x56a43d('0x44')],'name':_0x3ab369[_0x56a43d('0x4d')],'paused':_0x3ab369[_0x56a43d('0x33')],'waiting':_0x3ab369[_0x56a43d('0x43')]};_0x2398b9[_0x56a43d('0x3d')](_0x417eb5);}}_0x36a55f({'count':_0x2398b9[_0x56a43d('0x11')],'rows':_0x2398b9});});},'MailQueues':function(){return new Promise(function(_0x3fc592){const _0x425549=a1217_0x2558,_0x5c3781=[];for(const _0x49f7ec in _0x113284[_0x425549('0x14')]){if(typeof _0x113284[_0x425549('0x14')][_0x49f7ec]!==_0x425549('0x42')){const _0x2a2822=_0x113284[_0x425549('0x14')][_0x49f7ec],_0xb8b0ae={'id':_0x2a2822['id'],'available':_0x2a2822[_0x425549('0x4f')],'loggedIn':_0x2a2822['loggedIn'],'name':_0x2a2822[_0x425549('0x4d')],'paused':_0x2a2822[_0x425549('0x33')],'waiting':_0x2a2822[_0x425549('0x43')]};_0x5c3781[_0x425549('0x3d')](_0xb8b0ae);}}_0x3fc592({'count':_0x5c3781[_0x425549('0x11')],'rows':_0x5c3781});});},'OpenchannelQueues':function(){return new Promise(function(_0x9841ae){const _0x15fe4f=a1217_0x2558,_0x529ddf=[];for(const _0x4b7b72 in _0x113284[_0x15fe4f('0x29')]){if(typeof _0x113284[_0x15fe4f('0x29')][_0x4b7b72]!==_0x15fe4f('0x42')){const _0x22b94f=_0x113284[_0x15fe4f('0x29')][_0x4b7b72],_0x5b086d={'id':_0x22b94f['id'],'available':_0x22b94f['available'],'loggedIn':_0x22b94f['loggedIn'],'name':_0x22b94f[_0x15fe4f('0x4d')],'paused':_0x22b94f[_0x15fe4f('0x33')],'waiting':_0x22b94f[_0x15fe4f('0x43')]};_0x529ddf[_0x15fe4f('0x3d')](_0x5b086d);}}_0x9841ae({'count':_0x529ddf[_0x15fe4f('0x11')],'rows':_0x529ddf});});},'SmsQueues':function(){return new Promise(function(_0x22e128){const _0x4c3186=a1217_0x2558,_0x5d65a5=[];for(const _0x317658 in _0x113284[_0x4c3186('0xc')]){if(typeof _0x113284['smsQueues'][_0x317658]!==_0x4c3186('0x42')){const _0x53b5ae=_0x113284[_0x4c3186('0xc')][_0x317658],_0x306588={'id':_0x53b5ae['id'],'available':_0x53b5ae[_0x4c3186('0x4f')],'loggedIn':_0x53b5ae[_0x4c3186('0x44')],'name':_0x53b5ae[_0x4c3186('0x4d')],'paused':_0x53b5ae[_0x4c3186('0x33')],'waiting':_0x53b5ae[_0x4c3186('0x43')]};_0x5d65a5[_0x4c3186('0x3d')](_0x306588);}}_0x22e128({'count':_0x5d65a5[_0x4c3186('0x11')],'rows':_0x5d65a5});});},'FaxQueues':function(){return new Promise(function(_0x1364b9){const _0x5a3c31=a1217_0x2558,_0x3296f3=[];for(const _0x4cb9b6 in _0x113284[_0x5a3c31('0x4e')]){if(typeof _0x113284[_0x5a3c31('0x4e')][_0x4cb9b6]!==_0x5a3c31('0x42')){const _0x15d1e9=_0x113284[_0x5a3c31('0x4e')][_0x4cb9b6],_0xc86011={'id':_0x15d1e9['id'],'available':_0x15d1e9[_0x5a3c31('0x4f')],'loggedIn':_0x15d1e9[_0x5a3c31('0x44')],'name':_0x15d1e9[_0x5a3c31('0x4d')],'paused':_0x15d1e9[_0x5a3c31('0x33')],'waiting':_0x15d1e9[_0x5a3c31('0x43')]};_0x3296f3[_0x5a3c31('0x3d')](_0xc86011);}}_0x1364b9({'count':_0x3296f3[_0x5a3c31('0x11')],'rows':_0x3296f3});});},'WhatsappQueues':function(){return new Promise(function(_0x3b068c){const _0x387116=a1217_0x2558,_0x2e066e=[];for(const _0x34e889 in _0x113284[_0x387116('0x2b')]){if(typeof _0x113284[_0x387116('0x2b')][_0x34e889]!=='undefined'){const _0x229d9c=_0x113284[_0x387116('0x2b')][_0x34e889],_0x4bc86e={'id':_0x229d9c['id'],'available':_0x229d9c['available'],'loggedIn':_0x229d9c[_0x387116('0x44')],'name':_0x229d9c[_0x387116('0x4d')],'paused':_0x229d9c[_0x387116('0x33')],'waiting':_0x229d9c[_0x387116('0x43')]};_0x2e066e[_0x387116('0x3d')](_0x4bc86e);}}_0x3b068c({'count':_0x2e066e['length'],'rows':_0x2e066e});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x4a14bf){const _0x71a8e8=a1217_0x2558,_0x1145a2=_['values'](_0x113284['chatQueuesWaitingInteractions']);_0x4a14bf({'count':_0x1145a2[_0x71a8e8('0x11')],'rows':_0x1145a2});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x2ab578){const _0x3590e2=a1217_0x2558,_0x2472fb=_['values'](_0x113284['mailQueuesWaitingInteractions']);_0x2ab578({'count':_0x2472fb[_0x3590e2('0x11')],'rows':_0x2472fb});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0x48fc64){const _0x5d9304=a1217_0x2558,_0x3aa314=_[_0x5d9304('0x1d')](_0x113284[_0x5d9304('0x18')]);_0x48fc64({'count':_0x3aa314[_0x5d9304('0x11')],'rows':_0x3aa314});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0xb2383e){const _0x460382=a1217_0x2558,_0x540e56=_[_0x460382('0x1d')](_0x113284[_0x460382('0x1a')]);_0xb2383e({'count':_0x540e56[_0x460382('0x11')],'rows':_0x540e56});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x53af62){const _0x1af248=a1217_0x2558,_0x4877fd=_[_0x1af248('0x1d')](_0x113284[_0x1af248('0x21')]);_0x53af62({'count':_0x4877fd[_0x1af248('0x11')],'rows':_0x4877fd});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x4e8793){const _0x200113=a1217_0x2558,_0x58f652=_[_0x200113('0x1d')](_0x113284[_0x200113('0x3')]);_0x4e8793({'count':_0x58f652[_0x200113('0x11')],'rows':_0x58f652});});}},_0x4bded3=jayson['server'](_0x49dd42)['http']();_0x4bded3['on'](_0x374170('0x5'),function(_0x330d99){const _0x4e9d1f=_0x374170;return logger[_0x4e9d1f('0x5')](JSON[_0x4e9d1f('0x23')](_0x330d99)),_0x1c8100(_0x330d99);}),_0x4bded3['listen'](0x232c,_0x374170('0x30'),function(){const _0x1dcecd=_0x374170;return console['log'](_0x1dcecd('0x38'),0x232c),_0x1323e4('RPC\x20listening\x20on\x20port:'+0x232c);});});}; \ No newline at end of file diff --git a/server/services/routing/server/interval.js b/server/services/routing/server/interval.js index e2032d8..65a32fd 100644 --- a/server/services/routing/server/interval.js +++ b/server/services/routing/server/interval.js @@ -1 +1 @@ -const a1218_0x2b8f=['error','[%s][INTERVAL]\x20%s\x20%s','format','rules','true','when','client','routing','push','stack','join','length','Command','[%s][INTERVAL]\x20%s','condition','iftime\x20%s','lodash','\x20|\x20','indexOf','log','../../../config/logger','catch','util','all','request','info','then','stop','message','some','result','jayson/promise'];(function(_0x4393cf,_0x2b8fa0){const _0x19e1fd=function(_0x1da87a){while(--_0x1da87a){_0x4393cf['push'](_0x4393cf['shift']());}};_0x19e1fd(++_0x2b8fa0);}(a1218_0x2b8f,0x1d5));const a1218_0x19e1=function(_0x4393cf,_0x2b8fa0){_0x4393cf=_0x4393cf-0x0;let _0x19e1fd=a1218_0x2b8f[_0x4393cf];return _0x19e1fd;};const _0x524914=a1218_0x19e1;'use strict';const util=require(_0x524914('0x1')),jayson=require(_0x524914('0xa')),_=require(_0x524914('0x1b')),logger=require(_0x524914('0x1f'))(_0x524914('0x12')),client=jayson[_0x524914('0x11')]['http']({'port':0x232a});function request(_0x1da87a,_0x1589df){return new Promise(function(_0x487fc7,_0x27299d){const _0x2de7b1=a1218_0x19e1;return client[_0x2de7b1('0x3')](_0x1da87a,_0x1589df)['then'](function(_0x4e7784){const _0x3c2119=_0x2de7b1;return _0x4e7784[_0x3c2119('0xb')]?_0x27299d(_0x4e7784[_0x3c2119('0xb')][_0x3c2119('0x7')]):_0x487fc7(_0x4e7784[_0x3c2119('0x9')]);})[_0x2de7b1('0x0')](function(_0x3d2cfb){return _0x27299d(_0x3d2cfb);});});}exports[_0x524914('0x19')]=function(_0x13f5b9,_0x4dfd8e,_0x4851fb){return function(_0x5a6a1c){const _0x4ae690=a1218_0x19e1;if(_0x4851fb[_0x4ae690('0xe')]&&!_0x4851fb['rules'][_0x13f5b9])return logger[_0x4ae690('0x4')]('[%s][INTERVAL]\x20ROUTING\x20STOPPED',_0x13f5b9),_0x5a6a1c['stop']();const _0x1ebc19=[];for(let _0xde10aa=0x0;_0xde10aa<_0x4dfd8e[_0x4ae690('0x16')];_0xde10aa+=0x1){_0x1ebc19[_0x4ae690('0x13')](request(_0x4ae690('0x17'),{'command':util[_0x4ae690('0xd')](_0x4ae690('0x1a'),_0x4dfd8e[_0xde10aa])})[_0x4ae690('0x5')](function(_0x28a766){const _0x444196=_0x4ae690;return _0x28a766&&_0x28a766[_0x444196('0x7')]&&_0x28a766[_0x444196('0x7')][_0x444196('0x1d')](_0x444196('0xf'))>=0x0?!![]:![];})[_0x4ae690('0x0')](function(){const _0x5f2455=_0x4ae690;logger[_0x5f2455('0xb')](_0x5f2455('0x18'),_0x13f5b9,_0x4dfd8e[_0xde10aa]);}));}Promise[_0x4ae690('0x2')](_0x1ebc19)[_0x4ae690('0x5')](function(_0x586bdd){const _0x1387cc=_0x4ae690,_0x5d64ab=_[_0x1387cc('0x8')](_0x586bdd);logger[_0x1387cc('0x4')](_0x1387cc('0xc'),_0x13f5b9,_0x4dfd8e['join'](_0x1387cc('0x1c')),_0x5d64ab),_0x5a6a1c[_0x1387cc('0x10')](_0x5d64ab);})[_0x4ae690('0x0')](function(_0x3c6eeb){const _0x43f6fc=_0x4ae690;console[_0x43f6fc('0x1e')](_0x3c6eeb),logger[_0x43f6fc('0xb')]('[%s][INTERVAL]\x20%s\x20%s',_0x13f5b9,_0x4dfd8e[_0x43f6fc('0x15')](_0x43f6fc('0x1c')),_0x3c6eeb[_0x43f6fc('0x14')]),_0x5a6a1c[_0x43f6fc('0x6')]();});};}; \ No newline at end of file +const a1218_0x2576=['info','some','push','[%s][INTERVAL]\x20%s','result','iftime\x20%s','when','Command','lodash','all','format','\x20|\x20','[%s][INTERVAL]\x20%s\x20%s','util','join','catch','routing','http','[%s][INTERVAL]\x20ROUTING\x20STOPPED','error','then','indexOf','message','stack','true','rules'];(function(_0x21d699,_0x257689){const _0x9ce1f9=function(_0x52577a){while(--_0x52577a){_0x21d699['push'](_0x21d699['shift']());}};_0x9ce1f9(++_0x257689);}(a1218_0x2576,0xbb));const a1218_0x9ce1=function(_0x21d699,_0x257689){_0x21d699=_0x21d699-0x0;let _0x9ce1f9=a1218_0x2576[_0x21d699];return _0x9ce1f9;};const _0x2a4f54=a1218_0x9ce1;'use strict';const util=require(_0x2a4f54('0x8')),jayson=require('jayson/promise'),_=require(_0x2a4f54('0x3')),logger=require('../../../config/logger')(_0x2a4f54('0xb')),client=jayson['client'][_0x2a4f54('0xc')]({'port':0x232a});function request(_0x52577a,_0x2e3f37){return new Promise(function(_0x3fb1ce,_0x538433){const _0x5e4572=a1218_0x9ce1;return client['request'](_0x52577a,_0x2e3f37)['then'](function(_0x42ee6d){const _0x267cde=a1218_0x9ce1;return _0x42ee6d[_0x267cde('0xe')]?_0x538433(_0x42ee6d[_0x267cde('0xe')]['message']):_0x3fb1ce(_0x42ee6d[_0x267cde('0x19')]);})[_0x5e4572('0xa')](function(_0x2bd9e8){return _0x538433(_0x2bd9e8);});});}exports['condition']=function(_0x3a5ea3,_0x19aea0,_0x9b28d7){return function(_0x40473b){const _0x79f42c=a1218_0x9ce1;if(_0x9b28d7[_0x79f42c('0x14')]&&!_0x9b28d7['rules'][_0x3a5ea3])return logger[_0x79f42c('0x15')](_0x79f42c('0xd'),_0x3a5ea3),_0x40473b['stop']();const _0x4785f2=[];for(let _0x1ba4df=0x0;_0x1ba4df<_0x19aea0['length'];_0x1ba4df+=0x1){_0x4785f2[_0x79f42c('0x17')](request(_0x79f42c('0x2'),{'command':util[_0x79f42c('0x5')](_0x79f42c('0x0'),_0x19aea0[_0x1ba4df])})[_0x79f42c('0xf')](function(_0x1d7383){const _0x40a7d0=_0x79f42c;return _0x1d7383&&_0x1d7383[_0x40a7d0('0x11')]&&_0x1d7383[_0x40a7d0('0x11')][_0x40a7d0('0x10')](_0x40a7d0('0x13'))>=0x0?!![]:![];})[_0x79f42c('0xa')](function(){const _0x43fdb2=_0x79f42c;logger['error'](_0x43fdb2('0x18'),_0x3a5ea3,_0x19aea0[_0x1ba4df]);}));}Promise[_0x79f42c('0x4')](_0x4785f2)[_0x79f42c('0xf')](function(_0x2352f7){const _0x542706=_0x79f42c,_0x2fc890=_[_0x542706('0x16')](_0x2352f7);logger[_0x542706('0x15')]('[%s][INTERVAL]\x20%s\x20%s',_0x3a5ea3,_0x19aea0[_0x542706('0x9')](_0x542706('0x6')),_0x2fc890),_0x40473b[_0x542706('0x1')](_0x2fc890);})['catch'](function(_0x14cc9f){const _0x491ad4=_0x79f42c;console['log'](_0x14cc9f),logger[_0x491ad4('0xe')](_0x491ad4('0x7'),_0x3a5ea3,_0x19aea0[_0x491ad4('0x9')](_0x491ad4('0x6')),_0x14cc9f[_0x491ad4('0x12')]),_0x40473b['stop']();});};}; \ No newline at end of file diff --git a/server/services/xdr/agents.controller.js b/server/services/xdr/agents.controller.js index c48f7a6..a552961 100644 --- a/server/services/xdr/agents.controller.js +++ b/server/services/xdr/agents.controller.js @@ -1 +1 @@ -const a1219_0x41cc=['acwTimeout','answeredelsewheredestinationuniqueid','secondtransfereruniqueid','info','abandoned','stack','AGENT|%s|%s|%s|%s|%s|%s|%s|%s','transfertype','CreateVoiceAgentReport','includes','agentacw','extension','getVoiceQueueByName','complete','transferexten','connectedlinenum','ringtime','indexOf','connect','answeredelsewheremembername','queue','request','secondtransfererlinkedid','transfertargetuniqueid','clone','transferuniqueid','acwtime','agentconnectAt','secondtransfererexten','agentcompleteAt','transfereeuniqueid','diffTime','destuniqueid','transfereruniqueid','queuecallerabandon','reason','holdtime','origtransfereruniqueid','origtransfererexten','error','agent','agentcomplete','agentringnoanswer','talktime','transfer','forIn','calleridname','agententerreason','uniqueid','push','connectedlinename','ATTENDED','rejected','origtransfererlinkedid','now','channel','answered_elsewhere','timeout','isNil','blind','attendedtransfer','agentcalledAt','membername','type','blindtransfer','lastevent','agentringnoanswerAt'];(function(_0x179dc9,_0x41cce4){const _0x90a501=function(_0x475f9f){while(--_0x475f9f){_0x179dc9['push'](_0x179dc9['shift']());}};_0x90a501(++_0x41cce4);}(a1219_0x41cc,0xf5));const a1219_0x90a5=function(_0x179dc9,_0x41cce4){_0x179dc9=_0x179dc9-0x0;let _0x90a501=a1219_0x41cc[_0x179dc9];return _0x90a501;};const _0x4cb56f=a1219_0x90a5;'use strict';const _=require('lodash'),util=require('util'),utils=require('./utils'),agents={},transfers={},unanswered=[];function writeDB(_0x475f9f,_0x204095){const _0x99b900=a1219_0x90a5;utils[_0x99b900('0x1a')](util['format'](_0x99b900('0x1d'),_0x475f9f['uniqueid'],_0x475f9f[_0x99b900('0xb')],_0x475f9f[_0x99b900('0x2b')],_0x475f9f['membername'],_0x475f9f['interface'],_0x475f9f['calleridnum'],_0x475f9f[_0x99b900('0x26')],_0x475f9f['lastevent'])),_0x475f9f['queue']?utils[_0x99b900('0x23')](_0x475f9f['queue'])['then'](function(_0x3fa38f){const _0x55b1ce=_0x99b900;_0x3fa38f&&(_0x475f9f[_0x55b1ce('0x13')]=_0x3fa38f[_0x55b1ce('0x13')],_0x475f9f[_0x55b1ce('0x21')]=_0x475f9f[_0x55b1ce('0x40')]?_0x3fa38f['acw']:![],_0x475f9f[_0x55b1ce('0x31')]=_0x475f9f[_0x55b1ce('0x21')]?_0x3fa38f[_0x55b1ce('0x17')]:0x0),utils[_0x55b1ce('0x2c')]('CreateVoiceAgentReport',_0x475f9f);}):utils[_0x99b900('0x2c')](_0x99b900('0x1f'),_0x475f9f),_0x204095?delete transfers[_0x475f9f[_0x99b900('0x4')]]:delete agents[_0x475f9f[_0x99b900('0x37')]];}exports['agentcalled']=function(_0x525626){const _0x4a264a=a1219_0x90a5;try{agents[_0x525626[_0x4a264a('0x37')]]=_0x525626,agents[_0x525626['destuniqueid']]['agentcalledAt']=utils[_0x4a264a('0xa')](),agents[_0x525626[_0x4a264a('0x37')]][_0x4a264a('0x15')]='called',agents[_0x525626['destuniqueid']][_0x4a264a('0x26')]=null,agents[_0x525626['destuniqueid']]['connectedlinename']=null;}catch(_0x255585){utils['error'](_0x255585['stack']);}},exports[_0x4cb56f('0x41')]=function(_0xee3117){const _0x5bc2fd=_0x4cb56f;try{!_[_0x5bc2fd('0xe')](agents[_0xee3117[_0x5bc2fd('0x37')]])&&(agents[_0xee3117[_0x5bc2fd('0x37')]][_0x5bc2fd('0x41')]=!![],agents[_0xee3117[_0x5bc2fd('0x37')]][_0x5bc2fd('0x16')]=utils[_0x5bc2fd('0xa')](),agents[_0xee3117[_0x5bc2fd('0x37')]]['lastevent']=_0x5bc2fd('0xd'),agents[_0xee3117[_0x5bc2fd('0x37')]][_0x5bc2fd('0x3a')]=_0x5bc2fd('0xd'),agents[_0xee3117['destuniqueid']][_0x5bc2fd('0x3b')]=_0xee3117[_0x5bc2fd('0x27')]?parseInt(_0xee3117[_0x5bc2fd('0x27')])/0x3e8:0x0,agents[_0xee3117['destuniqueid']][_0x5bc2fd('0x42')]=0x0,unanswered[_0x5bc2fd('0x5')](_0xee3117[_0x5bc2fd('0x37')]));}catch(_0x3018c6){utils[_0x5bc2fd('0x3e')](_0x3018c6['stack']);}},exports[_0x4cb56f('0x39')]=function(_0x4646f9){const _0x45de7a=_0x4cb56f;try{_[_0x45de7a('0x1')](agents,function(_0x4ad724){const _0x20b3f7=_0x45de7a;_0x4ad724[_0x20b3f7('0x4')]==_0x4646f9[_0x20b3f7('0x4')]&&!_[_0x20b3f7('0x20')](unanswered,_0x4ad724[_0x20b3f7('0x37')])&&(_0x4ad724[_0x20b3f7('0x41')]=!![],_0x4ad724[_0x20b3f7('0x16')]=utils[_0x20b3f7('0xa')](),_0x4ad724['lastevent']=_0x20b3f7('0x1b'),_0x4ad724[_0x20b3f7('0x3a')]='abandoned',_0x4ad724[_0x20b3f7('0x3b')]=_0x4646f9[_0x20b3f7('0x3b')],_0x4ad724[_0x20b3f7('0x42')]=0x0,writeDB(_0x4ad724));});}catch(_0x3e2a1f){utils['error'](_0x3e2a1f[_0x45de7a('0x1c')]);}},exports['agentconnect']=function(_0x5215d7){const _0x182dbe=_0x4cb56f;try{agents[_0x5215d7[_0x182dbe('0x37')]]&&(agents[_0x5215d7[_0x182dbe('0x37')]][_0x182dbe('0x32')]=utils['now'](),agents[_0x5215d7[_0x182dbe('0x37')]][_0x182dbe('0x26')]=_0x5215d7[_0x182dbe('0x26')],agents[_0x5215d7[_0x182dbe('0x37')]][_0x182dbe('0x6')]=_0x5215d7[_0x182dbe('0x6')],agents[_0x5215d7[_0x182dbe('0x37')]]['holdtime']=_0x5215d7[_0x182dbe('0x27')],agents[_0x5215d7[_0x182dbe('0x37')]][_0x182dbe('0x15')]=_0x182dbe('0x29'),_[_0x182dbe('0x1')](agents,function(_0x4ef5a3){const _0x475587=_0x182dbe;_0x4ef5a3[_0x475587('0x37')]!=_0x5215d7['destuniqueid']&&_0x4ef5a3['uniqueid']==_0x5215d7[_0x475587('0x4')]&&(_0x4ef5a3['talktime']=0x0,_0x4ef5a3['holdtime']=_0x5215d7[_0x475587('0x27')],_0x4ef5a3['agentringnoanswer']=!![],_0x4ef5a3[_0x475587('0x16')]=utils[_0x475587('0xa')](),_0x4ef5a3[_0x475587('0x15')]=_0x475587('0xc'),_0x4ef5a3[_0x475587('0x3a')]=_0x475587('0xc'),_0x4ef5a3[_0x475587('0x18')]=_0x5215d7[_0x475587('0x37')],_0x4ef5a3[_0x475587('0x2a')]=_0x5215d7[_0x475587('0x12')],writeDB(_0x4ef5a3));}));}catch(_0x32526e){utils['error'](_0x32526e[_0x182dbe('0x1c')]);}},exports['agentcomplete']=function(_0x303399){const _0x554520=_0x4cb56f;try{!_[_0x554520('0xe')](agents[_0x303399['destuniqueid']])&&(agents[_0x303399[_0x554520('0x37')]]['agentcomplete']=!![],agents[_0x303399[_0x554520('0x37')]][_0x554520('0x34')]=utils[_0x554520('0xa')](),agents[_0x303399[_0x554520('0x37')]][_0x554520('0x42')]=utils[_0x554520('0x36')](agents[_0x303399['destuniqueid']]['agentcompleteAt'],agents[_0x303399[_0x554520('0x37')]][_0x554520('0x32')]),agents[_0x303399['destuniqueid']][_0x554520('0x3a')]=_0x303399[_0x554520('0x3a')],agents[_0x303399[_0x554520('0x37')]]['lastevent']=_0x554520('0x24'),writeDB(agents[_0x303399[_0x554520('0x37')]]));}catch(_0x988147){utils[_0x554520('0x3e')](_0x988147[_0x554520('0x1c')]);}},exports[_0x4cb56f('0x14')]=function(_0xe97094){const _0x4348fe=_0x4cb56f;try{!_[_0x4348fe('0xe')](agents[_0xe97094[_0x4348fe('0x38')]])&&(agents[_0xe97094[_0x4348fe('0x38')]][_0x4348fe('0x0')]=!![],agents[_0xe97094[_0x4348fe('0x38')]][_0x4348fe('0x1e')]=_0x4348fe('0xf'),agents[_0xe97094[_0x4348fe('0x38')]][_0x4348fe('0x25')]=_0xe97094[_0x4348fe('0x22')],agents[_0xe97094[_0x4348fe('0x38')]][_0x4348fe('0x30')]=agents[_0xe97094[_0x4348fe('0x38')]]['uniqueid']);}catch(_0x287c4e){utils[_0x4348fe('0x3e')](_0x287c4e[_0x4348fe('0x1c')]);}},exports[_0x4cb56f('0x10')]=function(_0x3a1b7e){const _0x52a420=_0x4cb56f;try{if(_0x3a1b7e[_0x52a420('0x3c')]==_0x3a1b7e[_0x52a420('0x9')])!_[_0x52a420('0xe')](agents[_0x3a1b7e[_0x52a420('0x19')]])&&(agents[_0x3a1b7e['secondtransfereruniqueid']][_0x52a420('0x0')]=!![],agents[_0x3a1b7e['secondtransfereruniqueid']][_0x52a420('0x1e')]=_0x52a420('0x7'),agents[_0x3a1b7e[_0x52a420('0x19')]]['transferexten']=_0x3a1b7e[_0x52a420('0x3d')],agents[_0x3a1b7e[_0x52a420('0x19')]][_0x52a420('0x30')]=_0x3a1b7e[_0x52a420('0x3c')]),_0x3a1b7e[_0x52a420('0x35')]&&agents[_0x3a1b7e[_0x52a420('0x35')]]&&(agents[_0x3a1b7e[_0x52a420('0x35')]][_0x52a420('0x3')]=0x1,transfers[_0x3a1b7e['transfereeuniqueid']]=_[_0x52a420('0x2f')](agents[_0x3a1b7e[_0x52a420('0x35')]]),transfers[_0x3a1b7e['transfereeuniqueid']]['calleridnum']=agents[_0x3a1b7e['secondtransfereruniqueid']]['calleridnum'],transfers[_0x3a1b7e[_0x52a420('0x35')]][_0x52a420('0x2')]=agents[_0x3a1b7e[_0x52a420('0x19')]][_0x52a420('0x2')],transfers[_0x3a1b7e['transfereeuniqueid']][_0x52a420('0x11')]=utils[_0x52a420('0xa')](),transfers[_0x3a1b7e[_0x52a420('0x35')]][_0x52a420('0x32')]=utils['now'](),transfers[_0x3a1b7e[_0x52a420('0x35')]]['holdtime']=0x0,transfers[_0x3a1b7e[_0x52a420('0x35')]][_0x52a420('0x3')]=0x2);else _0x3a1b7e['secondtransfereruniqueid']==_0x3a1b7e[_0x52a420('0x2d')]&&(!_[_0x52a420('0xe')](agents[_0x3a1b7e['origtransfereruniqueid']])&&(agents[_0x3a1b7e[_0x52a420('0x3c')]][_0x52a420('0x0')]=!![],agents[_0x3a1b7e['origtransfereruniqueid']][_0x52a420('0x1e')]='ATTENDED',agents[_0x3a1b7e[_0x52a420('0x3c')]][_0x52a420('0x25')]=_0x3a1b7e[_0x52a420('0x33')],agents[_0x3a1b7e[_0x52a420('0x3c')]]['transferuniqueid']=_0x3a1b7e['secondtransfereruniqueid']),_0x3a1b7e[_0x52a420('0x2e')]&&agents[_0x3a1b7e[_0x52a420('0x2e')]]&&(agents[_0x3a1b7e[_0x52a420('0x2e')]][_0x52a420('0x3')]=0x1,transfers[_0x3a1b7e[_0x52a420('0x2e')]]=_[_0x52a420('0x2f')](agents[_0x3a1b7e['transfertargetuniqueid']]),transfers[_0x3a1b7e[_0x52a420('0x2e')]]['calleridnum']=agents[_0x3a1b7e[_0x52a420('0x3c')]]['calleridnum'],transfers[_0x3a1b7e[_0x52a420('0x2e')]][_0x52a420('0x2')]=agents[_0x3a1b7e[_0x52a420('0x3c')]][_0x52a420('0x2')],transfers[_0x3a1b7e[_0x52a420('0x2e')]][_0x52a420('0x11')]=utils[_0x52a420('0xa')](),transfers[_0x3a1b7e[_0x52a420('0x2e')]]['agentconnectAt']=utils[_0x52a420('0xa')](),transfers[_0x3a1b7e['transfertargetuniqueid']]['holdtime']=0x0,transfers[_0x3a1b7e[_0x52a420('0x2e')]][_0x52a420('0x3')]=0x2));}catch(_0x64146a){utils[_0x52a420('0x3e')](_0x64146a[_0x52a420('0x1c')]);}},exports['hangup']=function(_0x559b89){const _0x1cb75d=_0x4cb56f;try{if(agents[_0x559b89[_0x1cb75d('0x4')]]&&agents[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x3a')]==='timeout'){_0x559b89['cause']==='21'&&(agents[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x3a')]=_0x1cb75d('0x8'),agents[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x15')]='rejected');writeDB(agents[_0x559b89[_0x1cb75d('0x4')]]);const _0x2751b6=unanswered[_0x1cb75d('0x28')](_0x559b89[_0x1cb75d('0x4')]);if(_0x2751b6>-0x1)unanswered['splice'](_0x2751b6,0x1);}transfers[_0x559b89[_0x1cb75d('0x4')]]&&(transfers[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x40')]=!![],transfers[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x34')]=utils[_0x1cb75d('0xa')](),transfers[_0x559b89['uniqueid']][_0x1cb75d('0x42')]=utils[_0x1cb75d('0x36')](transfers[_0x559b89['uniqueid']][_0x1cb75d('0x34')],transfers[_0x559b89[_0x1cb75d('0x4')]]['agentconnectAt']),transfers[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x3a')]=_0x1cb75d('0x3f'),transfers[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x15')]='complete',writeDB(transfers[_0x559b89[_0x1cb75d('0x4')]],!![])),agents[_0x559b89[_0x1cb75d('0x4')]]&&agents[_0x559b89['uniqueid']][_0x1cb75d('0x32')]&&(agents[_0x559b89[_0x1cb75d('0x4')]]['agentcomplete']=!![],agents[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x34')]=utils[_0x1cb75d('0xa')](),agents[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x42')]=utils[_0x1cb75d('0x36')](agents[_0x559b89[_0x1cb75d('0x4')]]['agentcompleteAt'],agents[_0x559b89[_0x1cb75d('0x4')]]['agentconnectAt']),agents[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x3a')]=agents[_0x559b89[_0x1cb75d('0x4')]]['transfer']?'transfer':_0x1cb75d('0x3f'),agents[_0x559b89[_0x1cb75d('0x4')]][_0x1cb75d('0x15')]='complete',writeDB(agents[_0x559b89[_0x1cb75d('0x4')]]));}catch(_0x18437){utils[_0x1cb75d('0x3e')](_0x18437['stack']);}}; \ No newline at end of file +const a1219_0x3db2=['agent','uniqueid','indexOf','abandoned','calleridname','diffTime','origtransfererexten','AGENT|%s|%s|%s|%s|%s|%s|%s|%s','ringtime','queue','destuniqueid','transferexten','info','request','acw','stack','answeredelsewheremembername','queuecallerabandon','ATTENDED','blind','agentcalled','agentcomplete','transferuniqueid','reason','extension','answeredelsewheredestinationuniqueid','transfertargetuniqueid','connectedlinenum','calleridnum','holdtime','error','agententerreason','origtransfereruniqueid','agentcompleteAt','transfertype','membername','agentacw','secondtransfereruniqueid','isNil','transfer','includes','hangup','connectedlinename','agentringnoanswerAt','transfereruniqueid','getVoiceQueueByName','push','secondtransfererexten','agentconnectAt','cause','interface','now','forIn','complete','lastevent','transfereeuniqueid','talktime','clone','./utils','lodash','called','agentconnect','timeout','agentcalledAt','blindtransfer','CreateVoiceAgentReport','attendedtransfer','secondtransfererlinkedid'];(function(_0x27e573,_0x3db257){const _0x246cd3=function(_0xa72f3){while(--_0xa72f3){_0x27e573['push'](_0x27e573['shift']());}};_0x246cd3(++_0x3db257);}(a1219_0x3db2,0x14e));const a1219_0x246c=function(_0x27e573,_0x3db257){_0x27e573=_0x27e573-0x0;let _0x246cd3=a1219_0x3db2[_0x27e573];return _0x246cd3;};const _0x4f2082=a1219_0x246c;'use strict';const _=require(_0x4f2082('0x41')),util=require('util'),utils=require(_0x4f2082('0x40')),agents={},transfers={},unanswered=[];function writeDB(_0xa72f3,_0x1c917e){const _0xe80d79=_0x4f2082;utils[_0xe80d79('0x12')](util['format'](_0xe80d79('0xd'),_0xa72f3[_0xe80d79('0x7')],_0xa72f3['channel'],_0xa72f3[_0xe80d79('0xf')],_0xa72f3['membername'],_0xa72f3[_0xe80d79('0x38')],_0xa72f3[_0xe80d79('0x22')],_0xa72f3['connectedlinenum'],_0xa72f3['lastevent'])),_0xa72f3[_0xe80d79('0xf')]?utils[_0xe80d79('0x33')](_0xa72f3[_0xe80d79('0xf')])['then'](function(_0x4ce87d){const _0x465e67=_0xe80d79;_0x4ce87d&&(_0xa72f3['type']=_0x4ce87d['type'],_0xa72f3['agentacw']=_0xa72f3[_0x465e67('0x1b')]?_0x4ce87d[_0x465e67('0x14')]:![],_0xa72f3['acwtime']=_0xa72f3[_0x465e67('0x2a')]?_0x4ce87d['acwTimeout']:0x0),utils[_0x465e67('0x13')](_0x465e67('0x3'),_0xa72f3);}):utils['request'](_0xe80d79('0x3'),_0xa72f3),_0x1c917e?delete transfers[_0xa72f3[_0xe80d79('0x7')]]:delete agents[_0xa72f3['destuniqueid']];}exports[_0x4f2082('0x1a')]=function(_0x5b1c28){const _0x317ddd=_0x4f2082;try{agents[_0x5b1c28[_0x317ddd('0x10')]]=_0x5b1c28,agents[_0x5b1c28['destuniqueid']]['agentcalledAt']=utils[_0x317ddd('0x39')](),agents[_0x5b1c28[_0x317ddd('0x10')]][_0x317ddd('0x3c')]=_0x317ddd('0x42'),agents[_0x5b1c28['destuniqueid']][_0x317ddd('0x21')]=null,agents[_0x5b1c28[_0x317ddd('0x10')]][_0x317ddd('0x30')]=null;}catch(_0x59f9df){utils[_0x317ddd('0x24')](_0x59f9df[_0x317ddd('0x15')]);}},exports['agentringnoanswer']=function(_0x26ad57){const _0x5b4d56=_0x4f2082;try{!_[_0x5b4d56('0x2c')](agents[_0x26ad57[_0x5b4d56('0x10')]])&&(agents[_0x26ad57[_0x5b4d56('0x10')]]['agentringnoanswer']=!![],agents[_0x26ad57['destuniqueid']][_0x5b4d56('0x31')]=utils['now'](),agents[_0x26ad57['destuniqueid']]['lastevent']=_0x5b4d56('0x0'),agents[_0x26ad57[_0x5b4d56('0x10')]][_0x5b4d56('0x1d')]=_0x5b4d56('0x0'),agents[_0x26ad57['destuniqueid']][_0x5b4d56('0x23')]=_0x26ad57[_0x5b4d56('0xe')]?parseInt(_0x26ad57['ringtime'])/0x3e8:0x0,agents[_0x26ad57['destuniqueid']][_0x5b4d56('0x3e')]=0x0,unanswered[_0x5b4d56('0x34')](_0x26ad57['destuniqueid']));}catch(_0x814320){utils[_0x5b4d56('0x24')](_0x814320[_0x5b4d56('0x15')]);}},exports[_0x4f2082('0x17')]=function(_0x3e2fa7){const _0x4914f6=_0x4f2082;try{_[_0x4914f6('0x3a')](agents,function(_0x259373){const _0x156604=_0x4914f6;_0x259373[_0x156604('0x7')]==_0x3e2fa7[_0x156604('0x7')]&&!_[_0x156604('0x2e')](unanswered,_0x259373[_0x156604('0x10')])&&(_0x259373['agentringnoanswer']=!![],_0x259373[_0x156604('0x31')]=utils['now'](),_0x259373[_0x156604('0x3c')]=_0x156604('0x9'),_0x259373[_0x156604('0x1d')]=_0x156604('0x9'),_0x259373['holdtime']=_0x3e2fa7['holdtime'],_0x259373['talktime']=0x0,writeDB(_0x259373));});}catch(_0x4b5528){utils[_0x4914f6('0x24')](_0x4b5528['stack']);}},exports[_0x4f2082('0x43')]=function(_0xcb6471){const _0x4ada5e=_0x4f2082;try{agents[_0xcb6471[_0x4ada5e('0x10')]]&&(agents[_0xcb6471['destuniqueid']][_0x4ada5e('0x36')]=utils[_0x4ada5e('0x39')](),agents[_0xcb6471[_0x4ada5e('0x10')]][_0x4ada5e('0x21')]=_0xcb6471[_0x4ada5e('0x21')],agents[_0xcb6471[_0x4ada5e('0x10')]][_0x4ada5e('0x30')]=_0xcb6471[_0x4ada5e('0x30')],agents[_0xcb6471[_0x4ada5e('0x10')]][_0x4ada5e('0x23')]=_0xcb6471['ringtime'],agents[_0xcb6471[_0x4ada5e('0x10')]][_0x4ada5e('0x3c')]='connect',_[_0x4ada5e('0x3a')](agents,function(_0x26a291){const _0x5b1487=_0x4ada5e;_0x26a291[_0x5b1487('0x10')]!=_0xcb6471[_0x5b1487('0x10')]&&_0x26a291[_0x5b1487('0x7')]==_0xcb6471[_0x5b1487('0x7')]&&(_0x26a291['talktime']=0x0,_0x26a291['holdtime']=_0xcb6471[_0x5b1487('0xe')],_0x26a291['agentringnoanswer']=!![],_0x26a291[_0x5b1487('0x31')]=utils[_0x5b1487('0x39')](),_0x26a291[_0x5b1487('0x3c')]='answered_elsewhere',_0x26a291['reason']='answered_elsewhere',_0x26a291[_0x5b1487('0x1f')]=_0xcb6471[_0x5b1487('0x10')],_0x26a291[_0x5b1487('0x16')]=_0xcb6471[_0x5b1487('0x29')],writeDB(_0x26a291));}));}catch(_0x4458bc){utils[_0x4ada5e('0x24')](_0x4458bc[_0x4ada5e('0x15')]);}},exports[_0x4f2082('0x1b')]=function(_0x28c553){const _0x3b5dfe=_0x4f2082;try{!_['isNil'](agents[_0x28c553['destuniqueid']])&&(agents[_0x28c553[_0x3b5dfe('0x10')]]['agentcomplete']=!![],agents[_0x28c553['destuniqueid']][_0x3b5dfe('0x27')]=utils[_0x3b5dfe('0x39')](),agents[_0x28c553[_0x3b5dfe('0x10')]]['talktime']=utils['diffTime'](agents[_0x28c553['destuniqueid']][_0x3b5dfe('0x27')],agents[_0x28c553[_0x3b5dfe('0x10')]][_0x3b5dfe('0x36')]),agents[_0x28c553['destuniqueid']][_0x3b5dfe('0x1d')]=_0x28c553['reason'],agents[_0x28c553['destuniqueid']][_0x3b5dfe('0x3c')]=_0x3b5dfe('0x3b'),writeDB(agents[_0x28c553['destuniqueid']]));}catch(_0x50c777){utils[_0x3b5dfe('0x24')](_0x50c777['stack']);}},exports[_0x4f2082('0x2')]=function(_0x1ea1ea){const _0x502001=_0x4f2082;try{!_['isNil'](agents[_0x1ea1ea[_0x502001('0x32')]])&&(agents[_0x1ea1ea[_0x502001('0x32')]][_0x502001('0x2d')]=!![],agents[_0x1ea1ea[_0x502001('0x32')]][_0x502001('0x28')]=_0x502001('0x19'),agents[_0x1ea1ea[_0x502001('0x32')]]['transferexten']=_0x1ea1ea[_0x502001('0x1e')],agents[_0x1ea1ea[_0x502001('0x32')]][_0x502001('0x1c')]=agents[_0x1ea1ea[_0x502001('0x32')]][_0x502001('0x7')]);}catch(_0x5a49c9){utils['error'](_0x5a49c9[_0x502001('0x15')]);}},exports[_0x4f2082('0x4')]=function(_0x2cf451){const _0x5922c5=_0x4f2082;try{if(_0x2cf451[_0x5922c5('0x26')]==_0x2cf451['origtransfererlinkedid'])!_['isNil'](agents[_0x2cf451[_0x5922c5('0x2b')]])&&(agents[_0x2cf451[_0x5922c5('0x2b')]][_0x5922c5('0x2d')]=!![],agents[_0x2cf451[_0x5922c5('0x2b')]][_0x5922c5('0x28')]='ATTENDED',agents[_0x2cf451['secondtransfereruniqueid']][_0x5922c5('0x11')]=_0x2cf451[_0x5922c5('0xc')],agents[_0x2cf451[_0x5922c5('0x2b')]][_0x5922c5('0x1c')]=_0x2cf451['origtransfereruniqueid']),_0x2cf451[_0x5922c5('0x3d')]&&agents[_0x2cf451[_0x5922c5('0x3d')]]&&(agents[_0x2cf451['transfereeuniqueid']][_0x5922c5('0x25')]=0x1,transfers[_0x2cf451[_0x5922c5('0x3d')]]=_[_0x5922c5('0x3f')](agents[_0x2cf451[_0x5922c5('0x3d')]]),transfers[_0x2cf451[_0x5922c5('0x3d')]][_0x5922c5('0x22')]=agents[_0x2cf451[_0x5922c5('0x2b')]][_0x5922c5('0x22')],transfers[_0x2cf451[_0x5922c5('0x3d')]][_0x5922c5('0xa')]=agents[_0x2cf451[_0x5922c5('0x2b')]][_0x5922c5('0xa')],transfers[_0x2cf451[_0x5922c5('0x3d')]][_0x5922c5('0x1')]=utils['now'](),transfers[_0x2cf451[_0x5922c5('0x3d')]][_0x5922c5('0x36')]=utils[_0x5922c5('0x39')](),transfers[_0x2cf451[_0x5922c5('0x3d')]][_0x5922c5('0x23')]=0x0,transfers[_0x2cf451['transfereeuniqueid']][_0x5922c5('0x25')]=0x2);else _0x2cf451[_0x5922c5('0x2b')]==_0x2cf451[_0x5922c5('0x5')]&&(!_[_0x5922c5('0x2c')](agents[_0x2cf451['origtransfereruniqueid']])&&(agents[_0x2cf451[_0x5922c5('0x26')]]['transfer']=!![],agents[_0x2cf451['origtransfereruniqueid']][_0x5922c5('0x28')]=_0x5922c5('0x18'),agents[_0x2cf451['origtransfereruniqueid']]['transferexten']=_0x2cf451[_0x5922c5('0x35')],agents[_0x2cf451[_0x5922c5('0x26')]][_0x5922c5('0x1c')]=_0x2cf451[_0x5922c5('0x2b')]),_0x2cf451[_0x5922c5('0x20')]&&agents[_0x2cf451['transfertargetuniqueid']]&&(agents[_0x2cf451[_0x5922c5('0x20')]]['agententerreason']=0x1,transfers[_0x2cf451['transfertargetuniqueid']]=_[_0x5922c5('0x3f')](agents[_0x2cf451[_0x5922c5('0x20')]]),transfers[_0x2cf451[_0x5922c5('0x20')]]['calleridnum']=agents[_0x2cf451[_0x5922c5('0x26')]][_0x5922c5('0x22')],transfers[_0x2cf451[_0x5922c5('0x20')]][_0x5922c5('0xa')]=agents[_0x2cf451[_0x5922c5('0x26')]]['calleridname'],transfers[_0x2cf451[_0x5922c5('0x20')]]['agentcalledAt']=utils['now'](),transfers[_0x2cf451[_0x5922c5('0x20')]]['agentconnectAt']=utils[_0x5922c5('0x39')](),transfers[_0x2cf451[_0x5922c5('0x20')]][_0x5922c5('0x23')]=0x0,transfers[_0x2cf451[_0x5922c5('0x20')]][_0x5922c5('0x25')]=0x2));}catch(_0x1bd29a){utils[_0x5922c5('0x24')](_0x1bd29a[_0x5922c5('0x15')]);}},exports[_0x4f2082('0x2f')]=function(_0x46bfc0){const _0x22e9ae=_0x4f2082;try{if(agents[_0x46bfc0[_0x22e9ae('0x7')]]&&agents[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x1d')]===_0x22e9ae('0x0')){_0x46bfc0[_0x22e9ae('0x37')]==='21'&&(agents[_0x46bfc0['uniqueid']][_0x22e9ae('0x1d')]='rejected',agents[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x3c')]='rejected');writeDB(agents[_0x46bfc0[_0x22e9ae('0x7')]]);const _0x1989c6=unanswered[_0x22e9ae('0x8')](_0x46bfc0['uniqueid']);if(_0x1989c6>-0x1)unanswered['splice'](_0x1989c6,0x1);}transfers[_0x46bfc0['uniqueid']]&&(transfers[_0x46bfc0['uniqueid']][_0x22e9ae('0x1b')]=!![],transfers[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x27')]=utils['now'](),transfers[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x3e')]=utils[_0x22e9ae('0xb')](transfers[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x27')],transfers[_0x46bfc0['uniqueid']][_0x22e9ae('0x36')]),transfers[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x1d')]=_0x22e9ae('0x6'),transfers[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x3c')]=_0x22e9ae('0x3b'),writeDB(transfers[_0x46bfc0[_0x22e9ae('0x7')]],!![])),agents[_0x46bfc0[_0x22e9ae('0x7')]]&&agents[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x36')]&&(agents[_0x46bfc0['uniqueid']][_0x22e9ae('0x1b')]=!![],agents[_0x46bfc0['uniqueid']][_0x22e9ae('0x27')]=utils['now'](),agents[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x3e')]=utils[_0x22e9ae('0xb')](agents[_0x46bfc0[_0x22e9ae('0x7')]]['agentcompleteAt'],agents[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x36')]),agents[_0x46bfc0['uniqueid']][_0x22e9ae('0x1d')]=agents[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x2d')]?_0x22e9ae('0x2d'):_0x22e9ae('0x6'),agents[_0x46bfc0[_0x22e9ae('0x7')]][_0x22e9ae('0x3c')]=_0x22e9ae('0x3b'),writeDB(agents[_0x46bfc0['uniqueid']]));}catch(_0x32a6b2){utils[_0x22e9ae('0x24')](_0x32a6b2[_0x22e9ae('0x15')]);}}; \ No newline at end of file diff --git a/server/services/xdr/calls.controller.js b/server/services/xdr/calls.controller.js index e912128..29f7b79 100644 --- a/server/services/xdr/calls.controller.js +++ b/server/services/xdr/calls.controller.js @@ -1 +1 @@ -const a1220_0x4258=['endtime','split','info','xmd-contactid','xmd-queue','application','musiconholdstart','appdata','cdr','xmd-originatecalleridnum','channelstate','calleridname','xmd-cdrtype','includes','\x22\x20<','variable','transfertargetchannel','FAILED','channel','systemanswertime','source','disposition','lastapplication','diffTime','newstate','stack','ContactId','uniqueid','CALL|%s|%s|%s|%s|%s|%s|%s|%s','musiconholdstop','CreateVoiceCallReport','error','isNil','lodash','xmd-callerid','newexten','lastdata','destination','then','duration','startsWith','mohtime','type','attendedtransfer','calleridnum','substring','gotoif','Queue','localtwolinkedid','sipcallid','now','format','linkedid','exten','xmcs-queue','userfield','request','newchannel','value','set','hangup','toLowerCase','BUSY','_attended','execif','toNumber','./utils','billableseconds','ANSWERED','context','origtransfererchannel','routeid','answertime','lastIndexOf','accountcode','musiconholdstartAt','destinationchannel','xmd-callerid-preview','callerid','NO\x20ANSWER'];(function(_0x5118ca,_0x4258b9){const _0x5845ae=function(_0x820458){while(--_0x820458){_0x5118ca['push'](_0x5118ca['shift']());}};_0x5845ae(++_0x4258b9);}(a1220_0x4258,0x176));const a1220_0x5845=function(_0x5118ca,_0x4258b9){_0x5118ca=_0x5118ca-0x0;let _0x5845ae=a1220_0x4258[_0x5118ca];return _0x5845ae;};const _0x36a863=a1220_0x5845;'use strict';const _=require(_0x36a863('0x3b')),util=require('util'),utils=require(_0x36a863('0xc')),dispositions=[_0x36a863('0x19'),'FAILED','FAILED',_0x36a863('0x19'),_0x36a863('0x19'),_0x36a863('0x19'),'ANSWERED',_0x36a863('0x8'),_0x36a863('0x2b'),'FAILED','FAILED'],channels={};function writeDB(_0x820458){const _0x54a3fb=_0x36a863;utils[_0x54a3fb('0x1c')](util[_0x54a3fb('0x4d')](_0x54a3fb('0x36'),_0x820458[_0x54a3fb('0x35')],_0x820458['channel'],_0x820458['type'],_0x820458[_0x54a3fb('0x14')],_0x820458[_0x54a3fb('0x2e')],_0x820458[_0x54a3fb('0x3f')],_0x820458[_0x54a3fb('0x18')],_0x820458[_0x54a3fb('0x2f')])),_0x820458[_0x54a3fb('0x14')]?utils['getUserByInternal'](_0x820458['accountcode'])[_0x54a3fb('0x40')](function(_0x44213d){const _0x572ec7=_0x54a3fb;_0x44213d&&(_0x820458['UserId']=_0x44213d['id']),utils[_0x572ec7('0x2')]('CreateVoiceCallReport',_0x820458);}):utils[_0x54a3fb('0x2')](_0x54a3fb('0x38'),_0x820458),channels[_0x820458[_0x54a3fb('0x35')]]&&delete channels[_0x820458[_0x54a3fb('0x35')]];}exports[_0x36a863('0x3')]=function(_0x19d6e8){const _0x186b8=_0x36a863;try{_0x19d6e8[_0x186b8('0x35')]==_0x19d6e8[_0x186b8('0x4e')]&&_0x19d6e8[_0x186b8('0x2c')]!='OutgoingSpoolFailed'&&(channels[_0x19d6e8['uniqueid']]={'uniqueid':_0x19d6e8[_0x186b8('0x35')],'accountcode':_0x19d6e8['accountcode'],'source':_0x19d6e8['calleridnum'],'destination':_0x19d6e8[_0x186b8('0x4f')],'destinationcontext':_0x19d6e8[_0x186b8('0xf')],'channel':_0x19d6e8[_0x186b8('0x2c')],'starttime':utils['now'](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x186b8('0x19'),'amaflags':'DOCUMENTATION'});}catch(_0x1faa39){utils[_0x186b8('0x39')](_0x1faa39[_0x186b8('0x33')]);}},exports[_0x36a863('0x32')]=function(_0x3a3953){const _0x21e2b5=_0x36a863;try{if(!_[_0x21e2b5('0x3a')](channels[_0x3a3953[_0x21e2b5('0x35')]])&&_0x3a3953[_0x21e2b5('0x24')]==0x6)_[_0x21e2b5('0x3a')](channels[_0x3a3953[_0x21e2b5('0x35')]]['systemanswertime'])&&(channels[_0x3a3953['uniqueid']][_0x21e2b5('0x2d')]=utils[_0x21e2b5('0x4c')]());else!_['isNil'](channels[_0x3a3953[_0x21e2b5('0x4e')]])&&_0x3a3953[_0x21e2b5('0x24')]==0x6&&_0x3a3953[_0x21e2b5('0xf')]!='transfer'&&(channels[_0x3a3953['linkedid']]['accountcode']=_0x3a3953[_0x21e2b5('0x14')],channels[_0x3a3953['linkedid']][_0x21e2b5('0x16')]=_0x3a3953[_0x21e2b5('0x2c')],_[_0x21e2b5('0x3a')](channels[_0x3a3953[_0x21e2b5('0x4e')]][_0x21e2b5('0x12')])&&(channels[_0x3a3953[_0x21e2b5('0x4e')]][_0x21e2b5('0x12')]=utils['now']()),channels[_0x3a3953[_0x21e2b5('0x4e')]][_0x21e2b5('0x2f')]=dispositions[_[_0x21e2b5('0xb')](_0x3a3953[_0x21e2b5('0x24')])]||_0x21e2b5('0xe'));}catch(_0x32dbf8){utils[_0x21e2b5('0x39')](_0x32dbf8[_0x21e2b5('0x33')]);}},exports[_0x36a863('0x6')]=function(_0x437f5b){const _0x4b4757=_0x36a863;try{!_[_0x4b4757('0x3a')](channels[_0x437f5b['uniqueid']])&&(_[_0x4b4757('0x3a')](channels[_0x437f5b[_0x4b4757('0x35')]][_0x4b4757('0x18')])&&(channels[_0x437f5b['uniqueid']][_0x4b4757('0x18')]=_0x437f5b[_0x4b4757('0x25')]+'\x20<'+_0x437f5b[_0x4b4757('0x46')]+'>'),channels[_0x437f5b['uniqueid']][_0x4b4757('0x1a')]=utils[_0x4b4757('0x4c')](),channels[_0x437f5b[_0x4b4757('0x35')]][_0x4b4757('0x41')]=utils[_0x4b4757('0x31')](channels[_0x437f5b[_0x4b4757('0x35')]][_0x4b4757('0x1a')],channels[_0x437f5b[_0x4b4757('0x35')]]['starttime']),channels[_0x437f5b['uniqueid']][_0x4b4757('0xd')]=channels[_0x437f5b[_0x4b4757('0x35')]][_0x4b4757('0x12')]?utils[_0x4b4757('0x31')](channels[_0x437f5b[_0x4b4757('0x35')]][_0x4b4757('0x1a')],channels[_0x437f5b[_0x4b4757('0x35')]][_0x4b4757('0x12')]):0x0,writeDB(channels[_0x437f5b[_0x4b4757('0x35')]]));}catch(_0x1b18fc){utils[_0x4b4757('0x39')](_0x1b18fc[_0x4b4757('0x33')]);}},exports[_0x36a863('0x45')]=function(_0xd09ff9){const _0x255922=_0x36a863;try{if(!_[_0x255922('0x3a')](channels[_0xd09ff9[_0x255922('0x4a')]])){if(channels[_0xd09ff9[_0x255922('0x4a')]][_0x255922('0x2c')]==_0xd09ff9['transfereechannel'])channels[_0xd09ff9[_0x255922('0x4a')]][_0x255922('0x16')]=_0xd09ff9['secondtransfererchannel'],channels[_0xd09ff9[_0x255922('0x4a')]][_0x255922('0x1')]=_0x255922('0x9');else(channels[_0xd09ff9[_0x255922('0x4a')]]['channel']=_0xd09ff9[_0x255922('0x2a')])&&(channels[_0xd09ff9[_0x255922('0x4a')]][_0x255922('0x16')]=_0xd09ff9[_0x255922('0x10')],channels[_0xd09ff9[_0x255922('0x4a')]][_0x255922('0x1')]='_attended');}}catch(_0x4e64b9){utils[_0x255922('0x39')](_0x4e64b9[_0x255922('0x33')]);}},exports[_0x36a863('0x20')]=function(_0x14c5e1){const _0x2345cb=_0x36a863;try{!_[_0x2345cb('0x3a')](channels[_0x14c5e1['uniqueid']])&&(channels[_0x14c5e1['uniqueid']][_0x2345cb('0x15')]=utils[_0x2345cb('0x4c')]());}catch(_0x4a1a6b){utils[_0x2345cb('0x39')](_0x4a1a6b[_0x2345cb('0x33')]);}},exports[_0x36a863('0x37')]=function(_0x30e44c){const _0x12ef8a=_0x36a863;try{!_[_0x12ef8a('0x3a')](channels[_0x30e44c[_0x12ef8a('0x35')]])&&(!_[_0x12ef8a('0x3a')](channels[_0x30e44c[_0x12ef8a('0x35')]]['musiconholdstartAt'])&&(channels[_0x30e44c['uniqueid']][_0x12ef8a('0x43')]+=utils[_0x12ef8a('0x31')](utils[_0x12ef8a('0x4c')](),channels[_0x30e44c[_0x12ef8a('0x35')]][_0x12ef8a('0x15')]),delete channels[_0x30e44c[_0x12ef8a('0x35')]][_0x12ef8a('0x15')]));}catch(_0x30cade){utils[_0x12ef8a('0x39')](_0x30cade[_0x12ef8a('0x33')]);}},exports['varset']=function(_0x5f00b3){const _0x14151a=_0x36a863;try{!_[_0x14151a('0x3a')](channels[_0x5f00b3[_0x14151a('0x35')]])&&(!_[_0x14151a('0x3a')](_0x5f00b3[_0x14151a('0x29')][_0x14151a('0x23')])&&(channels[_0x5f00b3[_0x14151a('0x35')]][_0x14151a('0x2e')]=_0x5f00b3[_0x14151a('0x4')]),!_[_0x14151a('0x3a')](_0x5f00b3[_0x14151a('0x29')]['xmd-phone'])&&(channels[_0x5f00b3[_0x14151a('0x35')]]['destination']=_0x5f00b3[_0x14151a('0x4')],channels[_0x5f00b3[_0x14151a('0x35')]][_0x14151a('0x18')]='\x22'+_0x5f00b3[_0x14151a('0x4')]+_0x14151a('0x28')+_0x5f00b3[_0x14151a('0x4')]+'>'),(!_[_0x14151a('0x3a')](_0x5f00b3[_0x14151a('0x29')][_0x14151a('0x17')])||!_[_0x14151a('0x3a')](_0x5f00b3[_0x14151a('0x29')][_0x14151a('0x3c')]))&&(channels[_0x5f00b3['uniqueid']][_0x14151a('0x18')]=_0x5f00b3[_0x14151a('0x4')]),(!_[_0x14151a('0x3a')](_0x5f00b3[_0x14151a('0x29')][_0x14151a('0x1e')])||!_[_0x14151a('0x3a')](_0x5f00b3[_0x14151a('0x29')][_0x14151a('0x0')]))&&(channels[_0x5f00b3[_0x14151a('0x35')]]['lastapplication']=_0x14151a('0x49'),channels[_0x5f00b3[_0x14151a('0x35')]]['lastdata']=_0x5f00b3[_0x14151a('0x4')],channels[_0x5f00b3[_0x14151a('0x35')]]['queue']=!![]),!_['isNil'](_0x5f00b3[_0x14151a('0x29')][_0x14151a('0x1d')])&&(channels[_0x5f00b3[_0x14151a('0x35')]][_0x14151a('0x34')]=_0x5f00b3[_0x14151a('0x4')]),!_['isNil'](_0x5f00b3['variable'][_0x14151a('0x26')])&&(channels[_0x5f00b3[_0x14151a('0x35')]][_0x14151a('0x44')]=_0x5f00b3['value']),!_[_0x14151a('0x3a')](_0x5f00b3[_0x14151a('0x29')]['outboundrouteid'])&&(channels[_0x5f00b3[_0x14151a('0x35')]][_0x14151a('0x11')]=_0x5f00b3[_0x14151a('0x4')]),!_[_0x14151a('0x3a')](_0x5f00b3[_0x14151a('0x29')][_0x14151a('0x4b')])&&(channels[_0x5f00b3[_0x14151a('0x35')]][_0x14151a('0x4b')]=_0x5f00b3['value']));}catch(_0xc280eb){utils[_0x14151a('0x39')](_0xc280eb[_0x14151a('0x33')]);}},exports[_0x36a863('0x3d')]=function(_0x3c7467){const _0x2f12f5=_0x36a863;try{if(!_[_0x2f12f5('0x3a')](channels[_0x3c7467[_0x2f12f5('0x35')]])){if(_0x3c7467['application'][_0x2f12f5('0x7')]()==_0x2f12f5('0x5')&&_[_0x2f12f5('0x42')](_0x3c7467[_0x2f12f5('0x21')][_0x2f12f5('0x7')](),_0x2f12f5('0x22'))){const _0x4750ce=_0x3c7467[_0x2f12f5('0x21')][_0x2f12f5('0x1b')]('='),_0x11f916=_0x4750ce[0x0][_0x2f12f5('0x47')](_0x4750ce[0x0][_0x2f12f5('0x13')]('(')+0x1,_0x4750ce[0x0][_0x2f12f5('0x13')](')')),_0xb9c129=_0x4750ce[0x1];channels[_0x3c7467[_0x2f12f5('0x35')]][_0x11f916]=_0xb9c129;}!_[_0x2f12f5('0x27')]([_0x2f12f5('0x6'),'noop',_0x2f12f5('0xa'),'set',_0x2f12f5('0x48')],_0x3c7467[_0x2f12f5('0x1f')][_0x2f12f5('0x7')]())&&(channels[_0x3c7467[_0x2f12f5('0x35')]][_0x2f12f5('0x30')]=_0x3c7467['application'],channels[_0x3c7467['uniqueid']][_0x2f12f5('0x3e')]=_0x3c7467[_0x2f12f5('0x21')]);}}catch(_0x5227f6){utils[_0x2f12f5('0x39')](_0x5227f6[_0x2f12f5('0x33')]);}}; \ No newline at end of file +const a1220_0x2cc8=['ANSWERED','ContactId','DOCUMENTATION','noop','toNumber','transfer','BUSY','xmd-callerid','CreateVoiceCallReport','exten','callerid','xmd-phone','gotoif','destination','channelstate','context','UserId','diffTime','answertime','linkedid','newexten','lastIndexOf','appdata','stack','hangup','value','error','lastapplication','lastdata','split','endtime','Queue','type','transfertargetchannel','then','calleridnum','systemanswertime','getUserByInternal','disposition','substring','lodash','application','xmcs-queue','xmd-originatecalleridnum','toLowerCase','now','mohtime','outboundrouteid','channel','set','format','execif','musiconholdstartAt','cdr','CALL|%s|%s|%s|%s|%s|%s|%s|%s','routeid','attendedtransfer','xmd-queue','isNil','queue','accountcode','util','destinationchannel','musiconholdstop','varset','info','xmd-cdrtype','FAILED','musiconholdstart','uniqueid','secondtransfererchannel','newchannel','OutgoingSpoolFailed','variable','source','userfield','NO\x20ANSWER','localtwolinkedid'];(function(_0x3adbc3,_0x2cc84c){const _0x637d87=function(_0x721364){while(--_0x721364){_0x3adbc3['push'](_0x3adbc3['shift']());}};_0x637d87(++_0x2cc84c);}(a1220_0x2cc8,0x1c9));const a1220_0x637d=function(_0x3adbc3,_0x2cc84c){_0x3adbc3=_0x3adbc3-0x0;let _0x637d87=a1220_0x2cc8[_0x3adbc3];return _0x637d87;};const _0x151bb8=a1220_0x637d;'use strict';const _=require(_0x151bb8('0x33')),util=require(_0x151bb8('0x48')),utils=require('./utils'),dispositions=[_0x151bb8('0x9'),_0x151bb8('0x0'),'FAILED',_0x151bb8('0x9'),_0x151bb8('0x9'),_0x151bb8('0x9'),_0x151bb8('0xb'),_0x151bb8('0x11'),'FAILED',_0x151bb8('0x0'),'FAILED'],channels={};function writeDB(_0x721364){const _0xe34aef=_0x151bb8;utils[_0xe34aef('0x4c')](util[_0xe34aef('0x3d')](_0xe34aef('0x41'),_0x721364[_0xe34aef('0x2')],_0x721364[_0xe34aef('0x3b')],_0x721364['type'],_0x721364[_0xe34aef('0x47')],_0x721364[_0xe34aef('0x7')],_0x721364[_0xe34aef('0x18')],_0x721364['callerid'],_0x721364[_0xe34aef('0x31')])),_0x721364[_0xe34aef('0x47')]?utils[_0xe34aef('0x30')](_0x721364[_0xe34aef('0x47')])[_0xe34aef('0x2d')](function(_0x562bc5){const _0x2da679=_0xe34aef;_0x562bc5&&(_0x721364[_0x2da679('0x1b')]=_0x562bc5['id']),utils['request'](_0x2da679('0x13'),_0x721364);}):utils['request']('CreateVoiceCallReport',_0x721364),channels[_0x721364[_0xe34aef('0x2')]]&&delete channels[_0x721364[_0xe34aef('0x2')]];}exports[_0x151bb8('0x4')]=function(_0x114284){const _0x530c7b=_0x151bb8;try{_0x114284[_0x530c7b('0x2')]==_0x114284[_0x530c7b('0x1e')]&&_0x114284['channel']!=_0x530c7b('0x5')&&(channels[_0x114284[_0x530c7b('0x2')]]={'uniqueid':_0x114284[_0x530c7b('0x2')],'accountcode':_0x114284[_0x530c7b('0x47')],'source':_0x114284[_0x530c7b('0x2e')],'destination':_0x114284[_0x530c7b('0x14')],'destinationcontext':_0x114284[_0x530c7b('0x1a')],'channel':_0x114284[_0x530c7b('0x3b')],'starttime':utils[_0x530c7b('0x38')](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':'NO\x20ANSWER','amaflags':_0x530c7b('0xd')});}catch(_0x434fb4){utils[_0x530c7b('0x25')](_0x434fb4[_0x530c7b('0x22')]);}},exports['newstate']=function(_0x5d8b34){const _0x17ffd5=_0x151bb8;try{if(!_[_0x17ffd5('0x45')](channels[_0x5d8b34[_0x17ffd5('0x2')]])&&_0x5d8b34[_0x17ffd5('0x19')]==0x6)_['isNil'](channels[_0x5d8b34[_0x17ffd5('0x2')]][_0x17ffd5('0x2f')])&&(channels[_0x5d8b34['uniqueid']][_0x17ffd5('0x2f')]=utils[_0x17ffd5('0x38')]());else!_['isNil'](channels[_0x5d8b34[_0x17ffd5('0x1e')]])&&_0x5d8b34[_0x17ffd5('0x19')]==0x6&&_0x5d8b34[_0x17ffd5('0x1a')]!=_0x17ffd5('0x10')&&(channels[_0x5d8b34[_0x17ffd5('0x1e')]][_0x17ffd5('0x47')]=_0x5d8b34[_0x17ffd5('0x47')],channels[_0x5d8b34[_0x17ffd5('0x1e')]][_0x17ffd5('0x49')]=_0x5d8b34[_0x17ffd5('0x3b')],_[_0x17ffd5('0x45')](channels[_0x5d8b34[_0x17ffd5('0x1e')]][_0x17ffd5('0x1d')])&&(channels[_0x5d8b34['linkedid']][_0x17ffd5('0x1d')]=utils[_0x17ffd5('0x38')]()),channels[_0x5d8b34['linkedid']][_0x17ffd5('0x31')]=dispositions[_[_0x17ffd5('0xf')](_0x5d8b34[_0x17ffd5('0x19')])]||_0x17ffd5('0xb'));}catch(_0x1a9868){utils['error'](_0x1a9868[_0x17ffd5('0x22')]);}},exports[_0x151bb8('0x23')]=function(_0x26df8b){const _0x3172ec=_0x151bb8;try{!_['isNil'](channels[_0x26df8b[_0x3172ec('0x2')]])&&(_[_0x3172ec('0x45')](channels[_0x26df8b[_0x3172ec('0x2')]][_0x3172ec('0x15')])&&(channels[_0x26df8b[_0x3172ec('0x2')]][_0x3172ec('0x15')]=_0x26df8b['calleridname']+'\x20<'+_0x26df8b['calleridnum']+'>'),channels[_0x26df8b[_0x3172ec('0x2')]][_0x3172ec('0x29')]=utils[_0x3172ec('0x38')](),channels[_0x26df8b[_0x3172ec('0x2')]]['duration']=utils[_0x3172ec('0x1c')](channels[_0x26df8b[_0x3172ec('0x2')]]['endtime'],channels[_0x26df8b[_0x3172ec('0x2')]]['starttime']),channels[_0x26df8b['uniqueid']]['billableseconds']=channels[_0x26df8b[_0x3172ec('0x2')]][_0x3172ec('0x1d')]?utils[_0x3172ec('0x1c')](channels[_0x26df8b[_0x3172ec('0x2')]][_0x3172ec('0x29')],channels[_0x26df8b[_0x3172ec('0x2')]][_0x3172ec('0x1d')]):0x0,writeDB(channels[_0x26df8b['uniqueid']]));}catch(_0x356876){utils['error'](_0x356876['stack']);}},exports[_0x151bb8('0x43')]=function(_0x5d5d40){const _0x3e412e=_0x151bb8;try{if(!_['isNil'](channels[_0x5d5d40['localtwolinkedid']])){if(channels[_0x5d5d40['localtwolinkedid']][_0x3e412e('0x3b')]==_0x5d5d40['transfereechannel'])channels[_0x5d5d40[_0x3e412e('0xa')]][_0x3e412e('0x49')]=_0x5d5d40[_0x3e412e('0x3')],channels[_0x5d5d40[_0x3e412e('0xa')]]['userfield']='_attended';else(channels[_0x5d5d40['localtwolinkedid']]['channel']=_0x5d5d40[_0x3e412e('0x2c')])&&(channels[_0x5d5d40['localtwolinkedid']]['destinationchannel']=_0x5d5d40['origtransfererchannel'],channels[_0x5d5d40['localtwolinkedid']][_0x3e412e('0x8')]='_attended');}}catch(_0x2dd772){utils[_0x3e412e('0x25')](_0x2dd772[_0x3e412e('0x22')]);}},exports[_0x151bb8('0x1')]=function(_0x511502){const _0xa59300=_0x151bb8;try{!_[_0xa59300('0x45')](channels[_0x511502[_0xa59300('0x2')]])&&(channels[_0x511502[_0xa59300('0x2')]]['musiconholdstartAt']=utils['now']());}catch(_0x32c66e){utils[_0xa59300('0x25')](_0x32c66e[_0xa59300('0x22')]);}},exports[_0x151bb8('0x4a')]=function(_0x4bca2b){const _0x43d412=_0x151bb8;try{!_[_0x43d412('0x45')](channels[_0x4bca2b['uniqueid']])&&(!_[_0x43d412('0x45')](channels[_0x4bca2b[_0x43d412('0x2')]][_0x43d412('0x3f')])&&(channels[_0x4bca2b[_0x43d412('0x2')]][_0x43d412('0x39')]+=utils[_0x43d412('0x1c')](utils['now'](),channels[_0x4bca2b['uniqueid']][_0x43d412('0x3f')]),delete channels[_0x4bca2b[_0x43d412('0x2')]]['musiconholdstartAt']));}catch(_0x56b28f){utils[_0x43d412('0x25')](_0x56b28f[_0x43d412('0x22')]);}},exports[_0x151bb8('0x4b')]=function(_0x33cef3){const _0x7c5a7f=_0x151bb8;try{!_['isNil'](channels[_0x33cef3[_0x7c5a7f('0x2')]])&&(!_[_0x7c5a7f('0x45')](_0x33cef3['variable'][_0x7c5a7f('0x36')])&&(channels[_0x33cef3[_0x7c5a7f('0x2')]][_0x7c5a7f('0x7')]=_0x33cef3[_0x7c5a7f('0x24')]),!_['isNil'](_0x33cef3['variable'][_0x7c5a7f('0x16')])&&(channels[_0x33cef3['uniqueid']][_0x7c5a7f('0x18')]=_0x33cef3[_0x7c5a7f('0x24')],channels[_0x33cef3['uniqueid']]['callerid']='\x22'+_0x33cef3[_0x7c5a7f('0x24')]+'\x22\x20<'+_0x33cef3[_0x7c5a7f('0x24')]+'>'),(!_[_0x7c5a7f('0x45')](_0x33cef3[_0x7c5a7f('0x6')]['xmd-callerid-preview'])||!_[_0x7c5a7f('0x45')](_0x33cef3[_0x7c5a7f('0x6')][_0x7c5a7f('0x12')]))&&(channels[_0x33cef3[_0x7c5a7f('0x2')]]['callerid']=_0x33cef3[_0x7c5a7f('0x24')]),(!_[_0x7c5a7f('0x45')](_0x33cef3[_0x7c5a7f('0x6')][_0x7c5a7f('0x44')])||!_[_0x7c5a7f('0x45')](_0x33cef3[_0x7c5a7f('0x6')][_0x7c5a7f('0x35')]))&&(channels[_0x33cef3['uniqueid']]['lastapplication']=_0x7c5a7f('0x2a'),channels[_0x33cef3[_0x7c5a7f('0x2')]][_0x7c5a7f('0x27')]=_0x33cef3[_0x7c5a7f('0x24')],channels[_0x33cef3[_0x7c5a7f('0x2')]][_0x7c5a7f('0x46')]=!![]),!_[_0x7c5a7f('0x45')](_0x33cef3[_0x7c5a7f('0x6')]['xmd-contactid'])&&(channels[_0x33cef3['uniqueid']][_0x7c5a7f('0xc')]=_0x33cef3[_0x7c5a7f('0x24')]),!_[_0x7c5a7f('0x45')](_0x33cef3[_0x7c5a7f('0x6')][_0x7c5a7f('0x4d')])&&(channels[_0x33cef3[_0x7c5a7f('0x2')]][_0x7c5a7f('0x2b')]=_0x33cef3[_0x7c5a7f('0x24')]),!_[_0x7c5a7f('0x45')](_0x33cef3[_0x7c5a7f('0x6')][_0x7c5a7f('0x3a')])&&(channels[_0x33cef3[_0x7c5a7f('0x2')]][_0x7c5a7f('0x42')]=_0x33cef3[_0x7c5a7f('0x24')]),!_[_0x7c5a7f('0x45')](_0x33cef3['variable']['sipcallid'])&&(channels[_0x33cef3[_0x7c5a7f('0x2')]]['sipcallid']=_0x33cef3['value']));}catch(_0x352225){utils[_0x7c5a7f('0x25')](_0x352225[_0x7c5a7f('0x22')]);}},exports[_0x151bb8('0x1f')]=function(_0x31ce05){const _0xf0d994=_0x151bb8;try{if(!_['isNil'](channels[_0x31ce05[_0xf0d994('0x2')]])){if(_0x31ce05[_0xf0d994('0x34')]['toLowerCase']()==_0xf0d994('0x3c')&&_['startsWith'](_0x31ce05['appdata'][_0xf0d994('0x37')](),_0xf0d994('0x40'))){const _0x40de41=_0x31ce05[_0xf0d994('0x21')][_0xf0d994('0x28')]('='),_0x2ad200=_0x40de41[0x0][_0xf0d994('0x32')](_0x40de41[0x0][_0xf0d994('0x20')]('(')+0x1,_0x40de41[0x0]['lastIndexOf'](')')),_0x4502cd=_0x40de41[0x1];channels[_0x31ce05[_0xf0d994('0x2')]][_0x2ad200]=_0x4502cd;}!_['includes']([_0xf0d994('0x23'),_0xf0d994('0xe'),_0xf0d994('0x3e'),'set',_0xf0d994('0x17')],_0x31ce05['application'][_0xf0d994('0x37')]())&&(channels[_0x31ce05[_0xf0d994('0x2')]][_0xf0d994('0x26')]=_0x31ce05[_0xf0d994('0x34')],channels[_0x31ce05[_0xf0d994('0x2')]][_0xf0d994('0x27')]=_0x31ce05['appdata']);}}catch(_0x40cf8b){utils[_0xf0d994('0x25')](_0x40cf8b['stack']);}}; \ No newline at end of file diff --git a/server/services/xdr/core.controller.js b/server/services/xdr/core.controller.js index 99996d9..10f6c76 100644 --- a/server/services/xdr/core.controller.js +++ b/server/services/xdr/core.controller.js @@ -1 +1 @@ -const a1221_0xf927=['fullybooted','error','close','FULLYBOOTED','CLOSE','info','./utils','SHUTDOWN','CONNECTED'];(function(_0x4a6466,_0xf9272c){const _0x3e04ae=function(_0xe41973){while(--_0xe41973){_0x4a6466['push'](_0x4a6466['shift']());}};_0x3e04ae(++_0xf9272c);}(a1221_0xf927,0x174));const a1221_0x3e04=function(_0x4a6466,_0xf9272c){_0x4a6466=_0x4a6466-0x0;let _0x3e04ae=a1221_0xf927[_0x4a6466];return _0x3e04ae;};const _0x379683=a1221_0x3e04;'use strict';const utils=require(_0x379683('0x3'));exports['connect']=function(){const _0x3fdf52=_0x379683;utils[_0x3fdf52('0x2')](_0x3fdf52('0x5'));},exports['shutdown']=function(){const _0x221ef5=_0x379683;utils['info'](_0x221ef5('0x4'));},exports[_0x379683('0x6')]=function(){const _0x1e90a2=_0x379683;utils[_0x1e90a2('0x2')](_0x1e90a2('0x0'));},exports[_0x379683('0x7')]=function(_0xe41973){const _0x458d80=_0x379683;utils[_0x458d80('0x7')](_0xe41973);},exports[_0x379683('0x8')]=function(){const _0x1d81eb=_0x379683;utils[_0x1d81eb('0x2')](_0x1d81eb('0x1'));},exports['managerevent']=function(){}; \ No newline at end of file +const a1221_0x2109=['shutdown','FULLYBOOTED','CLOSE','close','connect','CONNECTED','fullybooted','managerevent','./utils','info','error'];(function(_0x20c7b1,_0x210961){const _0x262c28=function(_0x2865d5){while(--_0x2865d5){_0x20c7b1['push'](_0x20c7b1['shift']());}};_0x262c28(++_0x210961);}(a1221_0x2109,0x19d));const a1221_0x262c=function(_0x20c7b1,_0x210961){_0x20c7b1=_0x20c7b1-0x0;let _0x262c28=a1221_0x2109[_0x20c7b1];return _0x262c28;};const _0x5310e2=a1221_0x262c;'use strict';const utils=require(_0x5310e2('0x2'));exports[_0x5310e2('0x9')]=function(){const _0x4447b9=_0x5310e2;utils['info'](_0x4447b9('0xa'));},exports[_0x5310e2('0x5')]=function(){const _0x389f0e=_0x5310e2;utils[_0x389f0e('0x3')]('SHUTDOWN');},exports[_0x5310e2('0x0')]=function(){const _0x10e48e=_0x5310e2;utils[_0x10e48e('0x3')](_0x10e48e('0x6'));},exports[_0x5310e2('0x4')]=function(_0x2865d5){const _0x1c448f=_0x5310e2;utils[_0x1c448f('0x4')](_0x2865d5);},exports[_0x5310e2('0x8')]=function(){const _0x4c27ed=_0x5310e2;utils['info'](_0x4c27ed('0x7'));},exports[_0x5310e2('0x1')]=function(){}; \ No newline at end of file diff --git a/server/services/xdr/dials.controller.js b/server/services/xdr/dials.controller.js index 31256ca..4af16c1 100644 --- a/server/services/xdr/dials.controller.js +++ b/server/services/xdr/dials.controller.js @@ -1 +1 @@ -const a1222_0xf3ae=['answertime','./utils','now','appdata','assign','ANSWER','toLowerCase','calleridnum','outboundrouteid','stack','channel','application','startsWith','format','dialstatus','holdtime','hangup','error','DIAL|%s|%s|%s|%s|%s|%s','duration','endtime','dialbegin','billableseconds','varset','complete','starttime','lastevent','connectedlinenum','diffTime','uniqueid','value','isNil','util','dialstring','dialend'];(function(_0x1a4a0b,_0xf3aef){const _0x1fca62=function(_0x5c267c){while(--_0x5c267c){_0x1a4a0b['push'](_0x1a4a0b['shift']());}};_0x1fca62(++_0xf3aef);}(a1222_0xf3ae,0x106));const a1222_0x1fca=function(_0x1a4a0b,_0xf3aef){_0x1a4a0b=_0x1a4a0b-0x0;let _0x1fca62=a1222_0xf3ae[_0x1a4a0b];return _0x1fca62;};const _0x550646=a1222_0x1fca;'use strict';const _=require('lodash'),util=require(_0x550646('0xf')),utils=require(_0x550646('0x13')),dials={};function writeDB(_0x5c267c){const _0x186ee6=_0x550646;utils['info'](util[_0x186ee6('0x1f')](_0x186ee6('0x1'),_0x5c267c['uniqueid'],_0x5c267c[_0x186ee6('0x1c')],_0x5c267c[_0x186ee6('0x10')],_0x5c267c[_0x186ee6('0x19')],_0x5c267c[_0x186ee6('0xa')],_0x5c267c[_0x186ee6('0x20')])),utils['request']('CreateVoiceDialReport',_0x5c267c),delete dials[_0x5c267c[_0x186ee6('0xc')]];}exports['newexten']=function(_0x122126){const _0x4bba4d=_0x550646;try{if(_0x122126[_0x4bba4d('0x1d')][_0x4bba4d('0x18')]()=='set'&&_[_0x4bba4d('0x1e')](_0x122126[_0x4bba4d('0x15')]['toLowerCase'](),'cdr(routeid)')){const _0x291445=_0x122126[_0x4bba4d('0x15')]['split']('=');dials[_0x122126[_0x4bba4d('0xc')]]={'routeId':_0x291445[0x1]};}}catch(_0x2d09f2){utils[_0x4bba4d('0x0')](_0x2d09f2['stack']);}},exports[_0x550646('0x6')]=function(_0x39bbc7){const _0x391135=_0x550646;try{!_[_0x391135('0xe')](_0x39bbc7['variable'][_0x391135('0x1a')])&&(dials[_0x39bbc7[_0x391135('0xc')]]={'routeId':_0x39bbc7[_0x391135('0xd')]});}catch(_0x33b9fb){utils[_0x391135('0x0')](_0x33b9fb[_0x391135('0x1b')]);}},exports[_0x550646('0x4')]=function(_0x273e9f){const _0x7e899=_0x550646;try{!_[_0x7e899('0xe')](dials[_0x273e9f[_0x7e899('0xc')]])&&(dials[_0x273e9f['uniqueid']]=_['assign'](dials[_0x273e9f[_0x7e899('0xc')]],_0x273e9f),dials[_0x273e9f[_0x7e899('0xc')]][_0x7e899('0x8')]=utils[_0x7e899('0x14')](),dials[_0x273e9f['uniqueid']]['lastevent']='called');}catch(_0x2b9bad){utils[_0x7e899('0x0')](_0x2b9bad[_0x7e899('0x1b')]);}},exports[_0x550646('0x11')]=function(_0x2b1eef){const _0x285620=_0x550646;try{!_['isNil'](dials[_0x2b1eef['uniqueid']])&&(dials[_0x2b1eef[_0x285620('0xc')]][_0x285620('0x20')]=_0x2b1eef['dialstatus'],_0x2b1eef[_0x285620('0x20')]==_0x285620('0x17')&&(dials[_0x2b1eef[_0x285620('0xc')]]=_[_0x285620('0x16')](dials[_0x2b1eef[_0x285620('0xc')]],_0x2b1eef),dials[_0x2b1eef[_0x285620('0xc')]]['answertime']=utils[_0x285620('0x14')](),dials[_0x2b1eef[_0x285620('0xc')]][_0x285620('0x9')]='connect'));}catch(_0x21a3a8){utils[_0x285620('0x0')](_0x21a3a8['stack']);}},exports[_0x550646('0x22')]=function(_0x447601){const _0xda373a=_0x550646;try{!_['isNil'](dials[_0x447601['uniqueid']])&&(dials[_0x447601[_0xda373a('0xc')]]=_[_0xda373a('0x16')](dials[_0x447601[_0xda373a('0xc')]],{'endtime':utils[_0xda373a('0x14')](),'lastevent':_0xda373a('0x7')}),dials[_0x447601[_0xda373a('0xc')]][_0xda373a('0x2')]=utils[_0xda373a('0xb')](dials[_0x447601[_0xda373a('0xc')]]['endtime'],dials[_0x447601[_0xda373a('0xc')]][_0xda373a('0x8')]),dials[_0x447601[_0xda373a('0xc')]][_0xda373a('0x21')]=utils[_0xda373a('0xb')](dials[_0x447601[_0xda373a('0xc')]]['answertime']||dials[_0x447601['uniqueid']]['endtime'],dials[_0x447601[_0xda373a('0xc')]][_0xda373a('0x8')]),dials[_0x447601[_0xda373a('0xc')]][_0xda373a('0x5')]=dials[_0x447601['uniqueid']]['answertime']?utils[_0xda373a('0xb')](dials[_0x447601[_0xda373a('0xc')]][_0xda373a('0x3')],dials[_0x447601[_0xda373a('0xc')]][_0xda373a('0x12')]):0x0,writeDB(dials[_0x447601[_0xda373a('0xc')]]));}catch(_0x21b5c4){utils[_0xda373a('0x0')](_0x21b5c4['stack']);}}; \ No newline at end of file +const a1222_0x5df8=['starttime','cdr(routeid)','startsWith','split','variable','info','hangup','assign','newexten','lastevent','format','ANSWER','connectedlinenum','stack','diffTime','outboundrouteid','uniqueid','answertime','holdtime','util','lodash','dialend','error','now','dialstatus','duration','appdata','dialstring','request','CreateVoiceDialReport','isNil','endtime','channel','value','billableseconds','toLowerCase','./utils'];(function(_0x36b4c6,_0x5df8e5){const _0x518a36=function(_0x487003){while(--_0x487003){_0x36b4c6['push'](_0x36b4c6['shift']());}};_0x518a36(++_0x5df8e5);}(a1222_0x5df8,0xf6));const a1222_0x518a=function(_0x36b4c6,_0x5df8e5){_0x36b4c6=_0x36b4c6-0x0;let _0x518a36=a1222_0x5df8[_0x36b4c6];return _0x518a36;};const _0x3ea17f=a1222_0x518a;'use strict';const _=require(_0x3ea17f('0x21')),util=require(_0x3ea17f('0x20')),utils=require(_0x3ea17f('0xc')),dials={};function writeDB(_0x487003){const _0x467a27=_0x3ea17f;utils[_0x467a27('0x12')](util[_0x467a27('0x17')]('DIAL|%s|%s|%s|%s|%s|%s',_0x487003[_0x467a27('0x1d')],_0x487003[_0x467a27('0x8')],_0x487003[_0x467a27('0x3')],_0x487003['calleridnum'],_0x487003[_0x467a27('0x19')],_0x487003['dialstatus'])),utils[_0x467a27('0x4')](_0x467a27('0x5'),_0x487003),delete dials[_0x487003[_0x467a27('0x1d')]];}exports[_0x3ea17f('0x15')]=function(_0x450e96){const _0x3c3804=_0x3ea17f;try{if(_0x450e96['application'][_0x3c3804('0xb')]()=='set'&&_[_0x3c3804('0xf')](_0x450e96[_0x3c3804('0x2')]['toLowerCase'](),_0x3c3804('0xe'))){const _0x158218=_0x450e96['appdata'][_0x3c3804('0x10')]('=');dials[_0x450e96['uniqueid']]={'routeId':_0x158218[0x1]};}}catch(_0x2aa1be){utils[_0x3c3804('0x23')](_0x2aa1be[_0x3c3804('0x1a')]);}},exports['varset']=function(_0x4c17e9){const _0x324fce=_0x3ea17f;try{!_[_0x324fce('0x6')](_0x4c17e9[_0x324fce('0x11')][_0x324fce('0x1c')])&&(dials[_0x4c17e9[_0x324fce('0x1d')]]={'routeId':_0x4c17e9[_0x324fce('0x9')]});}catch(_0x592bbe){utils[_0x324fce('0x23')](_0x592bbe['stack']);}},exports['dialbegin']=function(_0x2a2ae3){const _0x5a0b0a=_0x3ea17f;try{!_['isNil'](dials[_0x2a2ae3[_0x5a0b0a('0x1d')]])&&(dials[_0x2a2ae3['uniqueid']]=_[_0x5a0b0a('0x14')](dials[_0x2a2ae3[_0x5a0b0a('0x1d')]],_0x2a2ae3),dials[_0x2a2ae3[_0x5a0b0a('0x1d')]][_0x5a0b0a('0xd')]=utils['now'](),dials[_0x2a2ae3[_0x5a0b0a('0x1d')]][_0x5a0b0a('0x16')]='called');}catch(_0x4ab7ea){utils['error'](_0x4ab7ea[_0x5a0b0a('0x1a')]);}},exports[_0x3ea17f('0x22')]=function(_0x10d2a6){const _0x4f5080=_0x3ea17f;try{!_[_0x4f5080('0x6')](dials[_0x10d2a6[_0x4f5080('0x1d')]])&&(dials[_0x10d2a6['uniqueid']]['dialstatus']=_0x10d2a6[_0x4f5080('0x0')],_0x10d2a6['dialstatus']==_0x4f5080('0x18')&&(dials[_0x10d2a6[_0x4f5080('0x1d')]]=_[_0x4f5080('0x14')](dials[_0x10d2a6['uniqueid']],_0x10d2a6),dials[_0x10d2a6[_0x4f5080('0x1d')]][_0x4f5080('0x1e')]=utils[_0x4f5080('0x24')](),dials[_0x10d2a6[_0x4f5080('0x1d')]][_0x4f5080('0x16')]='connect'));}catch(_0x319002){utils['error'](_0x319002['stack']);}},exports[_0x3ea17f('0x13')]=function(_0x4537c4){const _0x557ac3=_0x3ea17f;try{!_[_0x557ac3('0x6')](dials[_0x4537c4[_0x557ac3('0x1d')]])&&(dials[_0x4537c4[_0x557ac3('0x1d')]]=_[_0x557ac3('0x14')](dials[_0x4537c4[_0x557ac3('0x1d')]],{'endtime':utils['now'](),'lastevent':'complete'}),dials[_0x4537c4[_0x557ac3('0x1d')]][_0x557ac3('0x1')]=utils[_0x557ac3('0x1b')](dials[_0x4537c4[_0x557ac3('0x1d')]][_0x557ac3('0x7')],dials[_0x4537c4[_0x557ac3('0x1d')]]['starttime']),dials[_0x4537c4[_0x557ac3('0x1d')]][_0x557ac3('0x1f')]=utils[_0x557ac3('0x1b')](dials[_0x4537c4[_0x557ac3('0x1d')]][_0x557ac3('0x1e')]||dials[_0x4537c4[_0x557ac3('0x1d')]][_0x557ac3('0x7')],dials[_0x4537c4['uniqueid']][_0x557ac3('0xd')]),dials[_0x4537c4['uniqueid']][_0x557ac3('0xa')]=dials[_0x4537c4[_0x557ac3('0x1d')]][_0x557ac3('0x1e')]?utils['diffTime'](dials[_0x4537c4[_0x557ac3('0x1d')]]['endtime'],dials[_0x4537c4[_0x557ac3('0x1d')]]['answertime']):0x0,writeDB(dials[_0x4537c4['uniqueid']]));}catch(_0x468736){utils[_0x557ac3('0x23')](_0x468736[_0x557ac3('0x1a')]);}}; \ No newline at end of file diff --git a/server/services/xdr/index.js b/server/services/xdr/index.js index 85d6b4a..049ff03 100644 --- a/server/services/xdr/index.js +++ b/server/services/xdr/index.js @@ -1 +1 @@ -const a1223_0xc869=['username','queuecallerleave','managerevent','disabled','newchannel','dialbegin','./calls.controller','musiconholdstop','./utils','asterisk-manager','asterisk','agentcalled','xdr','./members.controller','hangup','../../globals','fullybooted','shutdown','blindtransfer','./transfers.controller','newexten','cdr','password','dialend','XDR\x20DISABLED','./recordings.controller','close','agentcomplete','queuecallerjoin','newstate','musiconholdstart','./agents.controller','devicestatechange','./dials.controller','agentringnoanswer','keepConnected','error','varset','attendedtransfer','./queues.controller','queuecallerabandon','connect','agentconnect','../../config/environment'];(function(_0x420855,_0xc869b0){const _0x10afbb=function(_0x316066){while(--_0x316066){_0x420855['push'](_0x420855['shift']());}};_0x10afbb(++_0xc869b0);}(a1223_0xc869,0x84));const a1223_0x10af=function(_0x420855,_0xc869b0){_0x420855=_0x420855-0x0;let _0x10afbb=a1223_0xc869[_0x420855];return _0x10afbb;};const _0x4039ec=a1223_0x10af;require(_0x4039ec('0xf'));const AsteriskManager=require(_0x4039ec('0x9')),config=require(_0x4039ec('0x2b')),utils=require(_0x4039ec('0x8')),ami=new AsteriskManager(config[_0x4039ec('0xa')]['port'],config['asterisk']['ip'],config[_0x4039ec('0xa')][_0x4039ec('0x0')],config['asterisk'][_0x4039ec('0x16')],!![]);ami[_0x4039ec('0x23')]();if(config[_0x4039ec('0xc')]&&config[_0x4039ec('0xc')][_0x4039ec('0x3')])utils['info'](_0x4039ec('0x18'));else{const agents=require(_0x4039ec('0x1f')),calls=require(_0x4039ec('0x6')),queues=require(_0x4039ec('0x27')),recordings=require(_0x4039ec('0x19')),members=require(_0x4039ec('0xd')),dials=require(_0x4039ec('0x21')),transfers=require(_0x4039ec('0x13')),core=require('./core.controller');ami['on']('connect',core[_0x4039ec('0x29')]),ami['on'](_0x4039ec('0x11'),core[_0x4039ec('0x11')]),ami['on'](_0x4039ec('0x10'),core['fullybooted']),ami['on'](_0x4039ec('0x24'),core[_0x4039ec('0x24')]),ami['on'](_0x4039ec('0x1a'),core[_0x4039ec('0x1a')]),ami['on'](_0x4039ec('0x2'),core[_0x4039ec('0x2')]),ami['on'](_0x4039ec('0x20'),function(_0x316066){const _0x5d0013=_0x4039ec;try{members[_0x5d0013('0x20')](_0x316066);}catch(_0x38b84f){utils['error'](_0x38b84f);}}),ami['on']('agentcalled',function(_0x2043cb){const _0x201682=_0x4039ec;try{agents[_0x201682('0xb')](_0x2043cb);}catch(_0x59bdea){utils[_0x201682('0x24')](_0x59bdea);}}),ami['on'](_0x4039ec('0x22'),function(_0x44dc27){const _0x582dea=_0x4039ec;try{agents[_0x582dea('0x22')](_0x44dc27);}catch(_0x332497){utils[_0x582dea('0x24')](_0x332497);}}),ami['on'](_0x4039ec('0x2a'),function(_0x16b753){const _0x4c1aa7=_0x4039ec;try{agents[_0x4c1aa7('0x2a')](_0x16b753),queues[_0x4c1aa7('0x2a')](_0x16b753);}catch(_0x1e2324){utils[_0x4c1aa7('0x24')](_0x1e2324);}}),ami['on']('agentcomplete',function(_0x4e81f6){const _0x1ba8c7=_0x4039ec;try{agents[_0x1ba8c7('0x1b')](_0x4e81f6),queues[_0x1ba8c7('0x1b')](_0x4e81f6),members['agentcomplete'](_0x4e81f6);}catch(_0x47f665){utils[_0x1ba8c7('0x24')](_0x47f665);}}),ami['on'](_0x4039ec('0x28'),function(_0xe3824c){const _0x3eb8ad=_0x4039ec;try{agents[_0x3eb8ad('0x28')](_0xe3824c),queues[_0x3eb8ad('0x28')](_0xe3824c);}catch(_0x481187){utils[_0x3eb8ad('0x24')](_0x481187);}}),ami['on'](_0x4039ec('0x1c'),function(_0x38a5e4){const _0x269f1d=_0x4039ec;try{queues[_0x269f1d('0x1c')](_0x38a5e4),recordings[_0x269f1d('0x1c')](_0x38a5e4);}catch(_0x568107){utils[_0x269f1d('0x24')](_0x568107);}}),ami['on'](_0x4039ec('0x1'),function(_0x324dc3){const _0x13194a=_0x4039ec;try{queues['queuecallerleave'](_0x324dc3);}catch(_0x4dd9f9){utils[_0x13194a('0x24')](_0x4dd9f9);}}),ami['on'](_0x4039ec('0x1e'),function(_0x119c08){const _0xe2e21c=_0x4039ec;try{queues[_0xe2e21c('0x1e')](_0x119c08),calls[_0xe2e21c('0x1e')](_0x119c08);}catch(_0x567184){utils['error'](_0x567184);}}),ami['on']('musiconholdstop',function(_0x47e62d){const _0x2792fd=_0x4039ec;try{queues[_0x2792fd('0x7')](_0x47e62d),calls['musiconholdstop'](_0x47e62d);}catch(_0x282994){utils[_0x2792fd('0x24')](_0x282994);}}),ami['on'](_0x4039ec('0x1d'),function(_0x535b21){const _0x892088=_0x4039ec;try{calls[_0x892088('0x1d')](_0x535b21),recordings[_0x892088('0x1d')](_0x535b21);}catch(_0x1fb764){utils[_0x892088('0x24')](_0x1fb764);}}),ami['on'](_0x4039ec('0xe'),function(_0x1f21a2){const _0x13cd3b=_0x4039ec;try{calls[_0x13cd3b('0xe')](_0x1f21a2),recordings[_0x13cd3b('0xe')](_0x1f21a2),dials[_0x13cd3b('0xe')](_0x1f21a2),agents[_0x13cd3b('0xe')](_0x1f21a2),queues[_0x13cd3b('0xe')](_0x1f21a2);}catch(_0x1e44f5){utils[_0x13cd3b('0x24')](_0x1e44f5);}}),ami['on'](_0x4039ec('0x15'),function(_0x200639){const _0x36ba1f=_0x4039ec;try{members[_0x36ba1f('0x15')](_0x200639);}catch(_0x3f302b){utils['error'](_0x3f302b);}}),ami['on'](_0x4039ec('0x12'),function(_0x3c828b){const _0x516170=_0x4039ec;try{queues[_0x516170('0x12')](_0x3c828b),agents[_0x516170('0x12')](_0x3c828b),transfers[_0x516170('0x12')](_0x3c828b);}catch(_0x3ca207){utils[_0x516170('0x24')](_0x3ca207);}}),ami['on']('attendedtransfer',function(_0x57a4ab){const _0xa98096=_0x4039ec;try{queues[_0xa98096('0x26')](_0x57a4ab),transfers[_0xa98096('0x26')](_0x57a4ab),agents[_0xa98096('0x26')](_0x57a4ab),calls[_0xa98096('0x26')](_0x57a4ab);}catch(_0x2e5a67){utils['error'](_0x2e5a67);}}),ami['on'](_0x4039ec('0x25'),function(_0x334edc){const _0x18c8cd=_0x4039ec;try{queues['varset'](_0x334edc),recordings['varset'](_0x334edc),calls['varset'](_0x334edc),dials[_0x18c8cd('0x25')](_0x334edc);}catch(_0x176796){utils[_0x18c8cd('0x24')](_0x176796);}}),ami['on']('newexten',function(_0x22e954){const _0x127803=_0x4039ec;try{calls[_0x127803('0x14')](_0x22e954),recordings[_0x127803('0x14')](_0x22e954),dials[_0x127803('0x14')](_0x22e954);}catch(_0x3a6302){utils['error'](_0x3a6302);}}),ami['on'](_0x4039ec('0x4'),function(_0x404527){const _0x32ff88=_0x4039ec;try{calls[_0x32ff88('0x4')](_0x404527),recordings[_0x32ff88('0x4')](_0x404527);}catch(_0x31f226){utils[_0x32ff88('0x24')](_0x31f226);}}),ami['on'](_0x4039ec('0x5'),function(_0x307a6d){const _0x54b3f7=_0x4039ec;try{dials['dialbegin'](_0x307a6d);}catch(_0x4d7316){utils[_0x54b3f7('0x24')](_0x4d7316);}}),ami['on'](_0x4039ec('0x17'),function(_0x74789){const _0x222680=_0x4039ec;try{dials[_0x222680('0x17')](_0x74789);}catch(_0xdc0efe){utils[_0x222680('0x24')](_0xdc0efe);}});} \ No newline at end of file +const a1223_0xa55a=['close','./members.controller','varset','xdr','dialend','queuecallerabandon','blindtransfer','./agents.controller','attendedtransfer','asterisk','error','dialbegin','queuecallerleave','../../config/environment','queuecallerjoin','agentconnect','fullybooted','shutdown','./transfers.controller','hangup','connect','musiconholdstop','devicestatechange','agentcomplete','agentcalled','newchannel','./calls.controller','port','cdr','keepConnected','musiconholdstart','password','./recordings.controller','disabled','./queues.controller','./dials.controller','./utils','../../globals','agentringnoanswer','username','./core.controller','newexten','newstate'];(function(_0xd5a54e,_0xa55a60){const _0x1182e8=function(_0x2721d8){while(--_0x2721d8){_0xd5a54e['push'](_0xd5a54e['shift']());}};_0x1182e8(++_0xa55a60);}(a1223_0xa55a,0x132));const a1223_0x1182=function(_0xd5a54e,_0xa55a60){_0xd5a54e=_0xd5a54e-0x0;let _0x1182e8=a1223_0xa55a[_0xd5a54e];return _0x1182e8;};const _0xd8d0a0=a1223_0x1182;require(_0xd8d0a0('0x20'));const AsteriskManager=require('asterisk-manager'),config=require(_0xd8d0a0('0x8')),utils=require(_0xd8d0a0('0x1f')),ami=new AsteriskManager(config[_0xd8d0a0('0x4')][_0xd8d0a0('0x16')],config[_0xd8d0a0('0x4')]['ip'],config[_0xd8d0a0('0x4')][_0xd8d0a0('0x22')],config[_0xd8d0a0('0x4')][_0xd8d0a0('0x1a')],!![]);ami[_0xd8d0a0('0x18')]();if(config[_0xd8d0a0('0x29')]&&config[_0xd8d0a0('0x29')][_0xd8d0a0('0x1c')])utils['info']('XDR\x20DISABLED');else{const agents=require(_0xd8d0a0('0x2')),calls=require(_0xd8d0a0('0x15')),queues=require(_0xd8d0a0('0x1d')),recordings=require(_0xd8d0a0('0x1b')),members=require(_0xd8d0a0('0x27')),dials=require(_0xd8d0a0('0x1e')),transfers=require(_0xd8d0a0('0xd')),core=require(_0xd8d0a0('0x23'));ami['on'](_0xd8d0a0('0xf'),core[_0xd8d0a0('0xf')]),ami['on'](_0xd8d0a0('0xc'),core[_0xd8d0a0('0xc')]),ami['on'](_0xd8d0a0('0xb'),core[_0xd8d0a0('0xb')]),ami['on'](_0xd8d0a0('0x5'),core[_0xd8d0a0('0x5')]),ami['on'](_0xd8d0a0('0x26'),core[_0xd8d0a0('0x26')]),ami['on']('managerevent',core['managerevent']),ami['on']('devicestatechange',function(_0x2721d8){const _0x1347b2=_0xd8d0a0;try{members[_0x1347b2('0x11')](_0x2721d8);}catch(_0x3ee888){utils[_0x1347b2('0x5')](_0x3ee888);}}),ami['on']('agentcalled',function(_0x165a40){const _0x520d0b=_0xd8d0a0;try{agents[_0x520d0b('0x13')](_0x165a40);}catch(_0x2ed44c){utils[_0x520d0b('0x5')](_0x2ed44c);}}),ami['on'](_0xd8d0a0('0x21'),function(_0x537c18){const _0x4bfac2=_0xd8d0a0;try{agents['agentringnoanswer'](_0x537c18);}catch(_0x26fb4f){utils[_0x4bfac2('0x5')](_0x26fb4f);}}),ami['on'](_0xd8d0a0('0xa'),function(_0x2da285){const _0x297360=_0xd8d0a0;try{agents['agentconnect'](_0x2da285),queues['agentconnect'](_0x2da285);}catch(_0x552641){utils[_0x297360('0x5')](_0x552641);}}),ami['on']('agentcomplete',function(_0x3c9f37){const _0xe390f=_0xd8d0a0;try{agents[_0xe390f('0x12')](_0x3c9f37),queues[_0xe390f('0x12')](_0x3c9f37),members[_0xe390f('0x12')](_0x3c9f37);}catch(_0x5c0b4d){utils[_0xe390f('0x5')](_0x5c0b4d);}}),ami['on']('queuecallerabandon',function(_0x42d5e7){const _0x293c55=_0xd8d0a0;try{agents[_0x293c55('0x0')](_0x42d5e7),queues[_0x293c55('0x0')](_0x42d5e7);}catch(_0x3254a1){utils[_0x293c55('0x5')](_0x3254a1);}}),ami['on'](_0xd8d0a0('0x9'),function(_0x3db279){const _0x15210b=_0xd8d0a0;try{queues[_0x15210b('0x9')](_0x3db279),recordings[_0x15210b('0x9')](_0x3db279);}catch(_0x790ae3){utils[_0x15210b('0x5')](_0x790ae3);}}),ami['on'](_0xd8d0a0('0x7'),function(_0x4dd282){try{queues['queuecallerleave'](_0x4dd282);}catch(_0xae97ec){utils['error'](_0xae97ec);}}),ami['on'](_0xd8d0a0('0x19'),function(_0x298458){const _0xaa864f=_0xd8d0a0;try{queues[_0xaa864f('0x19')](_0x298458),calls[_0xaa864f('0x19')](_0x298458);}catch(_0xd443b4){utils['error'](_0xd443b4);}}),ami['on']('musiconholdstop',function(_0x3d8315){const _0x2d54e8=_0xd8d0a0;try{queues[_0x2d54e8('0x10')](_0x3d8315),calls[_0x2d54e8('0x10')](_0x3d8315);}catch(_0x5d3f80){utils[_0x2d54e8('0x5')](_0x5d3f80);}}),ami['on'](_0xd8d0a0('0x25'),function(_0x2b0d86){const _0x9e4a4c=_0xd8d0a0;try{calls[_0x9e4a4c('0x25')](_0x2b0d86),recordings[_0x9e4a4c('0x25')](_0x2b0d86);}catch(_0x393ee9){utils[_0x9e4a4c('0x5')](_0x393ee9);}}),ami['on'](_0xd8d0a0('0xe'),function(_0x3f33f1){const _0x42f84a=_0xd8d0a0;try{calls[_0x42f84a('0xe')](_0x3f33f1),recordings[_0x42f84a('0xe')](_0x3f33f1),dials[_0x42f84a('0xe')](_0x3f33f1),agents[_0x42f84a('0xe')](_0x3f33f1),queues[_0x42f84a('0xe')](_0x3f33f1);}catch(_0x30a5ba){utils['error'](_0x30a5ba);}}),ami['on'](_0xd8d0a0('0x17'),function(_0x59c868){try{members['cdr'](_0x59c868);}catch(_0x4e24ec){utils['error'](_0x4e24ec);}}),ami['on'](_0xd8d0a0('0x1'),function(_0x2ac402){const _0x18a1f7=_0xd8d0a0;try{queues[_0x18a1f7('0x1')](_0x2ac402),agents[_0x18a1f7('0x1')](_0x2ac402),transfers['blindtransfer'](_0x2ac402);}catch(_0x457da8){utils[_0x18a1f7('0x5')](_0x457da8);}}),ami['on'](_0xd8d0a0('0x3'),function(_0x4691c5){const _0x3a4426=_0xd8d0a0;try{queues['attendedtransfer'](_0x4691c5),transfers[_0x3a4426('0x3')](_0x4691c5),agents[_0x3a4426('0x3')](_0x4691c5),calls[_0x3a4426('0x3')](_0x4691c5);}catch(_0x558b38){utils[_0x3a4426('0x5')](_0x558b38);}}),ami['on'](_0xd8d0a0('0x28'),function(_0x2fe13a){const _0x3281c0=_0xd8d0a0;try{queues[_0x3281c0('0x28')](_0x2fe13a),recordings['varset'](_0x2fe13a),calls['varset'](_0x2fe13a),dials[_0x3281c0('0x28')](_0x2fe13a);}catch(_0x542602){utils['error'](_0x542602);}}),ami['on']('newexten',function(_0x1bd5de){const _0x330438=_0xd8d0a0;try{calls[_0x330438('0x24')](_0x1bd5de),recordings['newexten'](_0x1bd5de),dials[_0x330438('0x24')](_0x1bd5de);}catch(_0x5876b5){utils['error'](_0x5876b5);}}),ami['on'](_0xd8d0a0('0x14'),function(_0x2365a2){const _0x572b01=_0xd8d0a0;try{calls[_0x572b01('0x14')](_0x2365a2),recordings[_0x572b01('0x14')](_0x2365a2);}catch(_0x3d079a){utils[_0x572b01('0x5')](_0x3d079a);}}),ami['on'](_0xd8d0a0('0x6'),function(_0x2c9363){const _0x2810cf=_0xd8d0a0;try{dials[_0x2810cf('0x6')](_0x2c9363);}catch(_0xc2aeb5){utils[_0x2810cf('0x5')](_0xc2aeb5);}}),ami['on']('dialend',function(_0xff431c){const _0x5db1fa=_0xd8d0a0;try{dials[_0x5db1fa('0x2a')](_0xff431c);}catch(_0x229c7e){utils[_0x5db1fa('0x5')](_0x229c7e);}});} \ No newline at end of file diff --git a/server/services/xdr/members.controller.js b/server/services/xdr/members.controller.js index 46b1684..a48b78e 100644 --- a/server/services/xdr/members.controller.js +++ b/server/services/xdr/members.controller.js @@ -1 +1 @@ -const a1224_0x1b05=['lodash','CreateMemberReport','uniqueid','TALKING','some','cdr','agent','startsWith','source','exitAt','then','getUserByInterface','split','membername','agentcomplete','error','data3','util','Queue:','internal','getUserByName','destination','channel','queue','request','diffTime','type','info','data2','MEMBER|%s|%s|%s|%s|%s|%s','catch','data1','isNil','assign','NOT_INUSE','Local/_attended@transfer','device','destinationchannel','interface','devicestatechange','name','now'];(function(_0x4c2c1f,_0x1b05e2){const _0x27da01=function(_0x2d9b75){while(--_0x2d9b75){_0x4c2c1f['push'](_0x4c2c1f['shift']());}};_0x27da01(++_0x1b05e2);}(a1224_0x1b05,0xe5));const a1224_0x27da=function(_0x4c2c1f,_0x1b05e2){_0x4c2c1f=_0x4c2c1f-0x0;let _0x27da01=a1224_0x1b05[_0x4c2c1f];return _0x27da01;};const _0x2e077d=a1224_0x27da;'use strict';const _=require(_0x2e077d('0x17')),util=require(_0x2e077d('0x28')),utils=require('./utils'),members={},exclude=[_0x2e077d('0x10'),_0x2e077d('0x29')];function writeDB(_0x2d9b75){const _0xcad23c=_0x2e077d;utils[_0xcad23c('0x8')](util['format'](_0xcad23c('0xa'),_0x2d9b75[_0xcad23c('0x19')],_0x2d9b75[_0xcad23c('0x13')],_0x2d9b75[_0xcad23c('0x3')],_0x2d9b75[_0xcad23c('0x9')],_0x2d9b75[_0xcad23c('0x24')],_0x2d9b75[_0xcad23c('0x7')])),_0x2d9b75['interface']&&utils[_0xcad23c('0x22')](_0x2d9b75[_0xcad23c('0x13')])[_0xcad23c('0x21')](function(_0x31e70e){const _0x10ffb8=_0xcad23c;_0x31e70e?(_0x2d9b75[_0x10ffb8('0x24')]=_0x31e70e[_0x10ffb8('0x15')],_0x2d9b75['internal']=_0x31e70e[_0x10ffb8('0x0')],utils[_0x10ffb8('0x5')]('CreateMemberReport',_0x2d9b75)):utils[_0x10ffb8('0x1')](_0x2d9b75[_0x10ffb8('0x13')][_0x10ffb8('0x23')]('/')[0x1])[_0x10ffb8('0x21')](function(_0x573426){const _0x1d52c2=_0x10ffb8;_0x573426&&(_0x2d9b75[_0x1d52c2('0x24')]=_0x573426[_0x1d52c2('0x15')],_0x2d9b75[_0x1d52c2('0x0')]=_0x573426[_0x1d52c2('0x0')],utils[_0x1d52c2('0x5')](_0x1d52c2('0x18'),_0x2d9b75));});})[_0xcad23c('0xb')](function(_0x73f8c3){const _0x52546c=_0xcad23c;utils[_0x52546c('0x26')](_0x73f8c3);}),delete members[_0x2d9b75[_0xcad23c('0x13')]];}function startsWith(_0x40d8e7,_0x2e5f03){const _0x2164d8=_0x2e077d;return _[_0x2164d8('0x1b')](_0x40d8e7,function(_0x3d7b13){const _0x45fcf5=_0x2164d8;return _[_0x45fcf5('0x1e')](_0x2e5f03,_0x3d7b13);});}exports[_0x2e077d('0x14')]=function(_0x188a7b){const _0x1eb2f8=_0x2e077d;switch(_0x188a7b['state']){case'INUSE':case'BUSY':!startsWith(exclude,_0x188a7b[_0x1eb2f8('0x11')])&&(members[_0x188a7b[_0x1eb2f8('0x11')]]={'channel':'voice','interface':_0x188a7b['device'],'type':_0x1eb2f8('0x1a'),'enterAt':utils[_0x1eb2f8('0x16')](),'role':_0x1eb2f8('0x1d')});break;case _0x1eb2f8('0xf'):!_[_0x1eb2f8('0xd')](members[_0x188a7b[_0x1eb2f8('0x11')]])&&(members[_0x188a7b[_0x1eb2f8('0x11')]][_0x1eb2f8('0x20')]=utils[_0x1eb2f8('0x16')](),members[_0x188a7b[_0x1eb2f8('0x11')]]['duration']=utils[_0x1eb2f8('0x6')](members[_0x188a7b[_0x1eb2f8('0x11')]][_0x1eb2f8('0x20')],members[_0x188a7b[_0x1eb2f8('0x11')]]['enterAt']),members[_0x188a7b[_0x1eb2f8('0x11')]]['uniqueid']&&writeDB(members[_0x188a7b[_0x1eb2f8('0x11')]]));break;default:break;}},exports[_0x2e077d('0x25')]=function(_0x566106){const _0x350b9e=_0x2e077d;!_[_0x350b9e('0xd')](members[_0x566106[_0x350b9e('0x13')]])&&(members[_0x566106[_0x350b9e('0x13')]]=_[_0x350b9e('0xe')](members[_0x566106[_0x350b9e('0x13')]],{'data4':_0x566106[_0x350b9e('0x4')],'uniqueid':_0x566106[_0x350b9e('0x19')]}));},exports[_0x2e077d('0x1c')]=function(_0x299504){const _0x364f0b=_0x2e077d;if(_0x299504['channel']){const _0x566ec7=_0x299504[_0x364f0b('0x3')][_0x364f0b('0x23')]('-')[0x0];!_[_0x364f0b('0xd')](members[_0x566ec7])&&(members[_0x566ec7]=_[_0x364f0b('0xe')](members[_0x566ec7],{'data1':members[_0x566ec7]['data1']||_0x299504[_0x364f0b('0x7')],'data2':members[_0x566ec7]['data2']||_0x299504[_0x364f0b('0x1f')],'data3':members[_0x566ec7]['data3']||_0x299504[_0x364f0b('0x2')],'uniqueid':members[_0x566ec7][_0x364f0b('0x19')]||_0x299504[_0x364f0b('0x19')]}),members[_0x566ec7][_0x364f0b('0x20')]&&writeDB(members[_0x566ec7]));}if(_0x299504[_0x364f0b('0x12')]){const _0xf09553=_0x299504[_0x364f0b('0x12')][_0x364f0b('0x23')]('-')[0x0];!_[_0x364f0b('0xd')](members[_0xf09553])&&(members[_0xf09553]=_[_0x364f0b('0xe')](members[_0xf09553],{'data1':members[_0xf09553][_0x364f0b('0xc')]||_0x299504[_0x364f0b('0x7')],'data2':members[_0xf09553][_0x364f0b('0x9')]||_0x299504[_0x364f0b('0x1f')],'data3':members[_0xf09553][_0x364f0b('0x27')]||_0x299504[_0x364f0b('0x2')],'uniqueid':members[_0xf09553][_0x364f0b('0x19')]||_0x299504['uniqueid']}),members[_0xf09553][_0x364f0b('0x20')]&&writeDB(members[_0xf09553]));}}; \ No newline at end of file +const a1224_0x14f1=['request','Local/_attended@transfer','then','util','channel','INUSE','BUSY','internal','uniqueid','data3','MEMBER|%s|%s|%s|%s|%s|%s','split','diffTime','data2','format','destinationchannel','name','catch','startsWith','cdr','getUserByInterface','exitAt','assign','NOT_INUSE','./utils','getUserByName','some','now','type','membername','info','agent','source','CreateMemberReport','devicestatechange','isNil','error','interface','lodash','Queue:','data1','device'];(function(_0x2cffed,_0x14f1d9){const _0x2c24a2=function(_0x13cb7d){while(--_0x13cb7d){_0x2cffed['push'](_0x2cffed['shift']());}};_0x2c24a2(++_0x14f1d9);}(a1224_0x14f1,0x1bb));const a1224_0x2c24=function(_0x2cffed,_0x14f1d9){_0x2cffed=_0x2cffed-0x0;let _0x2c24a2=a1224_0x14f1[_0x2cffed];return _0x2c24a2;};const _0x2ddd92=a1224_0x2c24;'use strict';const _=require(_0x2ddd92('0xf')),util=require(_0x2ddd92('0x16')),utils=require(_0x2ddd92('0x1')),members={},exclude=[_0x2ddd92('0x14'),_0x2ddd92('0x10')];function writeDB(_0x13cb7d){const _0x1f8a8f=_0x2ddd92;utils[_0x1f8a8f('0x7')](util[_0x1f8a8f('0x21')](_0x1f8a8f('0x1d'),_0x13cb7d[_0x1f8a8f('0x1b')],_0x13cb7d['interface'],_0x13cb7d['channel'],_0x13cb7d[_0x1f8a8f('0x20')],_0x13cb7d['membername'],_0x13cb7d[_0x1f8a8f('0x5')])),_0x13cb7d[_0x1f8a8f('0xe')]&&utils[_0x1f8a8f('0x27')](_0x13cb7d['interface'])[_0x1f8a8f('0x15')](function(_0x57abab){const _0x57f9b4=_0x1f8a8f;_0x57abab?(_0x13cb7d[_0x57f9b4('0x6')]=_0x57abab[_0x57f9b4('0x23')],_0x13cb7d['internal']=_0x57abab[_0x57f9b4('0x1a')],utils[_0x57f9b4('0x13')]('CreateMemberReport',_0x13cb7d)):utils[_0x57f9b4('0x2')](_0x13cb7d['interface'][_0x57f9b4('0x1e')]('/')[0x1])[_0x57f9b4('0x15')](function(_0x5235fc){const _0x1f01c5=_0x57f9b4;_0x5235fc&&(_0x13cb7d[_0x1f01c5('0x6')]=_0x5235fc[_0x1f01c5('0x23')],_0x13cb7d[_0x1f01c5('0x1a')]=_0x5235fc[_0x1f01c5('0x1a')],utils[_0x1f01c5('0x13')](_0x1f01c5('0xa'),_0x13cb7d));});})[_0x1f8a8f('0x24')](function(_0x11c356){const _0x30ac4a=_0x1f8a8f;utils[_0x30ac4a('0xd')](_0x11c356);}),delete members[_0x13cb7d[_0x1f8a8f('0xe')]];}function startsWith(_0x32e121,_0x3d7215){const _0x5469ca=_0x2ddd92;return _[_0x5469ca('0x3')](_0x32e121,function(_0x2d0483){const _0x29c50c=_0x5469ca;return _[_0x29c50c('0x25')](_0x3d7215,_0x2d0483);});}exports[_0x2ddd92('0xb')]=function(_0x26ee52){const _0xfc66ce=_0x2ddd92;switch(_0x26ee52['state']){case _0xfc66ce('0x18'):case _0xfc66ce('0x19'):!startsWith(exclude,_0x26ee52['device'])&&(members[_0x26ee52['device']]={'channel':'voice','interface':_0x26ee52[_0xfc66ce('0x12')],'type':'TALKING','enterAt':utils[_0xfc66ce('0x4')](),'role':_0xfc66ce('0x8')});break;case _0xfc66ce('0x0'):!_[_0xfc66ce('0xc')](members[_0x26ee52['device']])&&(members[_0x26ee52[_0xfc66ce('0x12')]][_0xfc66ce('0x28')]=utils[_0xfc66ce('0x4')](),members[_0x26ee52[_0xfc66ce('0x12')]]['duration']=utils[_0xfc66ce('0x1f')](members[_0x26ee52[_0xfc66ce('0x12')]][_0xfc66ce('0x28')],members[_0x26ee52['device']]['enterAt']),members[_0x26ee52[_0xfc66ce('0x12')]]['uniqueid']&&writeDB(members[_0x26ee52[_0xfc66ce('0x12')]]));break;default:break;}},exports['agentcomplete']=function(_0x2fe306){const _0x4d19f4=_0x2ddd92;!_[_0x4d19f4('0xc')](members[_0x2fe306[_0x4d19f4('0xe')]])&&(members[_0x2fe306[_0x4d19f4('0xe')]]=_[_0x4d19f4('0x29')](members[_0x2fe306['interface']],{'data4':_0x2fe306['queue'],'uniqueid':_0x2fe306['uniqueid']}));},exports[_0x2ddd92('0x26')]=function(_0x3cd8cc){const _0x15e26f=_0x2ddd92;if(_0x3cd8cc[_0x15e26f('0x17')]){const _0x4cc5cf=_0x3cd8cc['channel'][_0x15e26f('0x1e')]('-')[0x0];!_['isNil'](members[_0x4cc5cf])&&(members[_0x4cc5cf]=_['assign'](members[_0x4cc5cf],{'data1':members[_0x4cc5cf][_0x15e26f('0x11')]||_0x3cd8cc[_0x15e26f('0x5')],'data2':members[_0x4cc5cf][_0x15e26f('0x20')]||_0x3cd8cc[_0x15e26f('0x9')],'data3':members[_0x4cc5cf][_0x15e26f('0x1c')]||_0x3cd8cc['destination'],'uniqueid':members[_0x4cc5cf][_0x15e26f('0x1b')]||_0x3cd8cc[_0x15e26f('0x1b')]}),members[_0x4cc5cf][_0x15e26f('0x28')]&&writeDB(members[_0x4cc5cf]));}if(_0x3cd8cc[_0x15e26f('0x22')]){const _0x5386fd=_0x3cd8cc[_0x15e26f('0x22')]['split']('-')[0x0];!_['isNil'](members[_0x5386fd])&&(members[_0x5386fd]=_['assign'](members[_0x5386fd],{'data1':members[_0x5386fd]['data1']||_0x3cd8cc[_0x15e26f('0x5')],'data2':members[_0x5386fd][_0x15e26f('0x20')]||_0x3cd8cc['source'],'data3':members[_0x5386fd]['data3']||_0x3cd8cc['destination'],'uniqueid':members[_0x5386fd]['uniqueid']||_0x3cd8cc['uniqueid']}),members[_0x5386fd][_0x15e26f('0x28')]&&writeDB(members[_0x5386fd]));}}; \ No newline at end of file diff --git a/server/services/xdr/queues.controller.js b/server/services/xdr/queues.controller.js index 0ae5f37..fe961e4 100644 --- a/server/services/xdr/queues.controller.js +++ b/server/services/xdr/queues.controller.js @@ -1 +1 @@ -const a1225_0x57ae=['assign','uniqueid','queuecallerexitreason','connectedlinenum','queuecallerexit','lastAssignedTo','queuestatus','transfertargetuniqueid','BLIND','agentconnect','musiconholdstartAt','EXITWITHKEY','now','attendedtransfer','queuecallerjoinAt','COMPLETEDBYAGENT','transfertargetlinkedid','queuecallerabandonAt','queuecallerleave','transferuniqueid','lodash','position','varset','origtransfereruniqueid','holdtime','queuecallercompleteAt','transferexten','mohtime','transfereduniqueid','queuecallercomplete','musiconholdstart','connectedlinename','queuecallerenterreason','isNil','clone','QUEUE|%s|%s|%s|%s|%s|%s|%s','hangup','toUpperCase','format','origtransfererlinkedid','accountcode','secondtransfererlinkedid','stack','membername','CreateVoiceQueueReport','transfereeuniqueid','queuecallerleaveAt','queue','error','transfer','secondtransfereruniqueid','calleridnum','transfertype','assigned','queuecallerexitAt','getVoiceQueueByName','calleridname','request','musiconholdstop','./utils','extension','count','secondtransfererexten','util','transfereelinkedid','blindtransfer','ATTENDEDTRANSFER','variable','then','value','destaccountcode','type','queuecallerabandon','reason'];(function(_0x3d36a1,_0x57aeb4){const _0x253cbc=function(_0x115d43){while(--_0x115d43){_0x3d36a1['push'](_0x3d36a1['shift']());}};_0x253cbc(++_0x57aeb4);}(a1225_0x57ae,0x6c));const a1225_0x253c=function(_0x3d36a1,_0x57aeb4){_0x3d36a1=_0x3d36a1-0x0;let _0x253cbc=a1225_0x57ae[_0x3d36a1];return _0x253cbc;};const _0x68aa3b=a1225_0x253c;'use strict';const _=require(_0x68aa3b('0x3c')),util=require(_0x68aa3b('0x1d')),utils=require(_0x68aa3b('0x19')),queues={};function writeDB(_0x115d43){const _0x4ed097=_0x68aa3b;utils['info'](util[_0x4ed097('0x4')](_0x4ed097('0x1'),_0x115d43['uniqueid'],_0x115d43['channel'],_0x115d43[_0x4ed097('0xd')],_0x115d43[_0x4ed097('0x2d')],_0x115d43[_0x4ed097('0x11')],_0x115d43[_0x4ed097('0x6')],_0x115d43['queuecallerexitreason'])),_0x115d43[_0x4ed097('0xd')]?utils[_0x4ed097('0x15')](_0x115d43[_0x4ed097('0xd')])[_0x4ed097('0x22')](function(_0x515554){const _0x3e4423=_0x4ed097;_0x515554&&(_0x115d43[_0x3e4423('0x25')]=_0x515554[_0x3e4423('0x25')]),utils[_0x3e4423('0x17')](_0x3e4423('0xa'),_0x115d43);}):utils['request'](_0x4ed097('0xa'),_0x115d43),_0x115d43[_0x4ed097('0x44')]?delete queues[_0x115d43[_0x4ed097('0x44')]]:delete queues[_0x115d43['uniqueid']];}exports['queuecallerjoin']=function(_0x23a6ae){const _0x13c34f=_0x68aa3b;queues[_0x23a6ae[_0x13c34f('0x29')]]=_[_0x13c34f('0x28')](_0x23a6ae,{'originalposition':_0x23a6ae[_0x13c34f('0x3d')],'queuecallerjoinAt':utils['now'](),'mohtime':0x0});},exports[_0x68aa3b('0x2')]=function(_0xe58af4){const _0x22b0a4=_0x68aa3b;!_[_0x22b0a4('0x49')](queues[_0xe58af4[_0x22b0a4('0x29')]])&&(queues[_0xe58af4[_0x22b0a4('0x29')]][_0x22b0a4('0xc')]?(!queues[_0xe58af4[_0x22b0a4('0x29')]]['queuecallerabandon']&&!queues[_0xe58af4[_0x22b0a4('0x29')]][_0x22b0a4('0x2c')]&&(queues[_0xe58af4['uniqueid']][_0x22b0a4('0x45')]=!![],queues[_0xe58af4[_0x22b0a4('0x29')]]['queuecallercompleteAt']=utils['now'](),queues[_0xe58af4[_0x22b0a4('0x29')]][_0x22b0a4('0x2a')]=_0x22b0a4('0x37')),writeDB(queues[_0xe58af4[_0x22b0a4('0x29')]])):queues[_0xe58af4[_0x22b0a4('0x29')]][_0x22b0a4('0x44')]&&(queues[queues[_0xe58af4[_0x22b0a4('0x29')]]['transfereduniqueid']]=queues[_0xe58af4[_0x22b0a4('0x29')]],queues[queues[_0xe58af4[_0x22b0a4('0x29')]][_0x22b0a4('0x44')]]['queuecallerenterreason']=0x2,delete queues[_0xe58af4[_0x22b0a4('0x29')]]));},exports[_0x68aa3b('0x3e')]=function(_0x1157f9){const _0x2db760=_0x68aa3b;if(!_['isNil'](_0x1157f9[_0x2db760('0x21')][_0x2db760('0x2e')])&&_0x1157f9[_0x2db760('0x23')][_0x2db760('0x3')]()!=='CONTINUE')!_[_0x2db760('0x49')](queues[_0x1157f9[_0x2db760('0x29')]])&&(queues[_0x1157f9[_0x2db760('0x29')]][_0x2db760('0x26')]=![],queues[_0x1157f9['uniqueid']][_0x2db760('0x39')]=null,queues[_0x1157f9[_0x2db760('0x29')]]['queuecallerexit']=!![],queues[_0x1157f9['uniqueid']][_0x2db760('0x14')]=utils[_0x2db760('0x34')](),queues[_0x1157f9[_0x2db760('0x29')]][_0x2db760('0x2a')]=_0x1157f9[_0x2db760('0x23')][_0x2db760('0x3')](),writeDB(queues[_0x1157f9[_0x2db760('0x29')]]));else!_[_0x2db760('0x49')](_0x1157f9[_0x2db760('0x21')]['queueposition'])&&(!_['isNil'](queues[_0x1157f9[_0x2db760('0x29')]])&&!queues[_0x1157f9[_0x2db760('0x29')]][_0x2db760('0x26')]&&(queues[_0x1157f9['uniqueid']][_0x2db760('0x26')]=![],queues[_0x1157f9[_0x2db760('0x29')]]['queuecallerabandonAt']=null,queues[_0x1157f9[_0x2db760('0x29')]][_0x2db760('0x2c')]=!![],queues[_0x1157f9[_0x2db760('0x29')]][_0x2db760('0x14')]=utils['now'](),queues[_0x1157f9[_0x2db760('0x29')]][_0x2db760('0x2a')]=_0x2db760('0x33')));},exports[_0x68aa3b('0x26')]=function(_0x46303b){const _0x1575d6=_0x68aa3b;!_[_0x1575d6('0x49')](queues[_0x46303b[_0x1575d6('0x29')]])&&(queues[_0x46303b['uniqueid']][_0x1575d6('0x2c')]=![],queues[_0x46303b[_0x1575d6('0x29')]][_0x1575d6('0x14')]=null,queues[_0x46303b['uniqueid']][_0x1575d6('0x26')]=!![],queues[_0x46303b[_0x1575d6('0x29')]][_0x1575d6('0x39')]=utils[_0x1575d6('0x34')](),queues[_0x46303b[_0x1575d6('0x29')]][_0x1575d6('0x2a')]='ABANDONED');},exports['queuecallerleave']=function(_0x4e23d0){const _0x468bf3=_0x68aa3b;!_[_0x468bf3('0x49')](queues[_0x4e23d0[_0x468bf3('0x29')]])&&(queues[_0x4e23d0[_0x468bf3('0x29')]][_0x468bf3('0x3a')]=!![],queues[_0x4e23d0['uniqueid']]['queuecallerleaveAt']=utils[_0x468bf3('0x34')](),queues[_0x4e23d0['uniqueid']]['holdtime']=utils['diffTime'](queues[_0x4e23d0[_0x468bf3('0x29')]][_0x468bf3('0xc')],queues[_0x4e23d0['uniqueid']][_0x468bf3('0x36')]),queues[_0x4e23d0[_0x468bf3('0x29')]][_0x468bf3('0x3d')]=_0x4e23d0[_0x468bf3('0x3d')],queues[_0x4e23d0[_0x468bf3('0x29')]][_0x468bf3('0x1b')]=_0x4e23d0[_0x468bf3('0x1b')],queues[_0x4e23d0[_0x468bf3('0x29')]][_0x468bf3('0x2b')]=_0x4e23d0[_0x468bf3('0x2b')],queues[_0x4e23d0['uniqueid']][_0x468bf3('0x47')]=_0x4e23d0['connectedlinename']);},exports[_0x68aa3b('0x31')]=function(_0x1ba905){const _0x6e7208=_0x68aa3b;!_[_0x6e7208('0x49')](queues[_0x1ba905[_0x6e7208('0x29')]])&&(queues[_0x1ba905[_0x6e7208('0x29')]][_0x6e7208('0x26')]=![],queues[_0x1ba905['uniqueid']][_0x6e7208('0x26')]=![],queues[_0x1ba905[_0x6e7208('0x29')]]['queuecallerabandonAt']=null,queues[_0x1ba905[_0x6e7208('0x29')]][_0x6e7208('0x2c')]=![],queues[_0x1ba905[_0x6e7208('0x29')]][_0x6e7208('0x2a')]=null,queues[_0x1ba905['uniqueid']][_0x6e7208('0x14')]=null,queues[_0x1ba905[_0x6e7208('0x29')]][_0x6e7208('0x13')]=!![],queues[_0x1ba905[_0x6e7208('0x29')]][_0x6e7208('0x6')]=_0x1ba905[_0x6e7208('0x24')],queues[_0x1ba905[_0x6e7208('0x29')]][_0x6e7208('0x2d')]=_0x1ba905[_0x6e7208('0x9')]);},exports['agentcomplete']=function(_0x1b0698){const _0x3938f0=_0x68aa3b;!_[_0x3938f0('0x49')](queues[_0x1b0698[_0x3938f0('0x29')]])&&(queues[_0x1b0698[_0x3938f0('0x29')]][_0x3938f0('0xc')]&&(queues[_0x1b0698['uniqueid']][_0x3938f0('0x26')]=![],queues[_0x1b0698[_0x3938f0('0x29')]]['queuecallerabandon']=![],queues[_0x1b0698[_0x3938f0('0x29')]][_0x3938f0('0x39')]=null,queues[_0x1b0698[_0x3938f0('0x29')]]['queuecallerexit']=![],queues[_0x1b0698['uniqueid']][_0x3938f0('0x14')]=null,queues[_0x1b0698[_0x3938f0('0x29')]][_0x3938f0('0x13')]=!![],queues[_0x1b0698[_0x3938f0('0x29')]][_0x3938f0('0x2d')]=_0x1b0698['membername'],queues[_0x1b0698[_0x3938f0('0x29')]]['queuecallercomplete']=!![],queues[_0x1b0698[_0x3938f0('0x29')]][_0x3938f0('0x41')]=utils[_0x3938f0('0x34')](),_0x1b0698[_0x3938f0('0x27')]=='transfer'?!queues[_0x1b0698[_0x3938f0('0x29')]][_0x3938f0('0xf')]&&(queues[_0x1b0698[_0x3938f0('0x29')]][_0x3938f0('0x2a')]='TRANSFER'):queues[_0x1b0698[_0x3938f0('0x29')]][_0x3938f0('0x2a')]='COMPLETEDBY'+_0x1b0698[_0x3938f0('0x27')][_0x3938f0('0x3')](),writeDB(queues[_0x1b0698['uniqueid']])));},exports[_0x68aa3b('0x1f')]=function(_0x56fe64){const _0x56ef02=_0x68aa3b;!_[_0x56ef02('0x49')](queues[_0x56fe64['transfereeuniqueid']])&&(queues[_0x56fe64[_0x56ef02('0xb')]]['transfer']=!![],queues[_0x56fe64['transfereeuniqueid']][_0x56ef02('0x12')]=_0x56ef02('0x30'),queues[_0x56fe64[_0x56ef02('0xb')]][_0x56ef02('0x42')]=_0x56fe64[_0x56ef02('0x1a')],queues[_0x56fe64[_0x56ef02('0xb')]][_0x56ef02('0x3b')]=_0x56fe64['transfereeuniqueid'],queues[_0x56fe64[_0x56ef02('0xb')]]['queuecallerexitreason']='BLINDTRANSFER');},exports[_0x68aa3b('0x35')]=function(_0x1f88bf){const _0x3919b5=_0x68aa3b;try{if(_0x1f88bf[_0x3919b5('0x3f')]==_0x1f88bf[_0x3919b5('0x5')])!_['isNil'](queues[_0x1f88bf[_0x3919b5('0x7')]])&&(queues[_0x1f88bf[_0x3919b5('0x7')]]['transfer']=!![],queues[_0x1f88bf[_0x3919b5('0x7')]]['transfertype']='ATTENDED',queues[_0x1f88bf[_0x3919b5('0x7')]]['transferexten']=_0x1f88bf['origtransfererexten'],queues[_0x1f88bf['secondtransfererlinkedid']][_0x3919b5('0x3b')]=_0x1f88bf['origtransfereruniqueid'],queues[_0x1f88bf[_0x3919b5('0x7')]][_0x3919b5('0x2a')]=_0x3919b5('0x20')),!_[_0x3919b5('0x49')](queues[_0x1f88bf[_0x3919b5('0x5')]])&&(_0x1f88bf[_0x3919b5('0x1e')]&&queues[_0x1f88bf['transfereelinkedid']]?(queues[_0x1f88bf['transfereelinkedid']]['queuecallerenterreason']=0x1,queues[_0x1f88bf[_0x3919b5('0xb')]]=_[_0x3919b5('0x0')](queues[_0x1f88bf[_0x3919b5('0x1e')]]),queues[_0x1f88bf[_0x3919b5('0xb')]][_0x3919b5('0x44')]=_0x1f88bf[_0x3919b5('0x2f')],queues[_0x1f88bf['transfereeuniqueid']]['queuecallerenterreason']=0x2,queues[_0x1f88bf['transfereeuniqueid']][_0x3919b5('0x11')]=queues[_0x1f88bf[_0x3919b5('0x7')]][_0x3919b5('0x11')],queues[_0x1f88bf[_0x3919b5('0xb')]][_0x3919b5('0x16')]=queues[_0x1f88bf[_0x3919b5('0x7')]][_0x3919b5('0x16')],queues[_0x1f88bf[_0x3919b5('0xb')]][_0x3919b5('0x36')]=utils['now'](),queues[_0x1f88bf[_0x3919b5('0xb')]]['queuecallerleaveAt']=utils[_0x3919b5('0x34')](),queues[_0x1f88bf[_0x3919b5('0xb')]][_0x3919b5('0x40')]=0x0,queues[_0x1f88bf[_0x3919b5('0xb')]]['mohtime']=0x0):queues[_0x1f88bf['origtransfererlinkedid']][_0x3919b5('0x44')]=_0x1f88bf[_0x3919b5('0x7')]);else _0x1f88bf[_0x3919b5('0x10')]==_0x1f88bf[_0x3919b5('0x7')]&&(!_[_0x3919b5('0x49')](queues[_0x1f88bf[_0x3919b5('0x5')]])&&(queues[_0x1f88bf[_0x3919b5('0x5')]][_0x3919b5('0xf')]=!![],queues[_0x1f88bf[_0x3919b5('0x5')]][_0x3919b5('0x12')]='ATTENDED',queues[_0x1f88bf[_0x3919b5('0x5')]][_0x3919b5('0x42')]=_0x1f88bf[_0x3919b5('0x1c')],queues[_0x1f88bf['origtransfererlinkedid']]['transferuniqueid']=_0x1f88bf['secondtransfereruniqueid'],queues[_0x1f88bf['origtransfererlinkedid']][_0x3919b5('0x2a')]=_0x3919b5('0x20')),!_[_0x3919b5('0x49')](queues[_0x1f88bf[_0x3919b5('0x7')]])&&(_0x1f88bf[_0x3919b5('0x38')]&&queues[_0x1f88bf[_0x3919b5('0x38')]]?(queues[_0x1f88bf[_0x3919b5('0x38')]]['queuecallerenterreason']=0x1,queues[_0x1f88bf['transfertargetuniqueid']]=_[_0x3919b5('0x0')](queues[_0x1f88bf['transfertargetlinkedid']]),queues[_0x1f88bf[_0x3919b5('0x2f')]]['transfereduniqueid']=_0x1f88bf[_0x3919b5('0x2f')],queues[_0x1f88bf[_0x3919b5('0x2f')]][_0x3919b5('0x48')]=0x2,queues[_0x1f88bf[_0x3919b5('0x2f')]]['calleridnum']=queues[_0x1f88bf['origtransfererlinkedid']][_0x3919b5('0x11')],queues[_0x1f88bf[_0x3919b5('0x2f')]]['calleridname']=queues[_0x1f88bf[_0x3919b5('0x5')]][_0x3919b5('0x16')],queues[_0x1f88bf[_0x3919b5('0x2f')]][_0x3919b5('0x36')]=utils[_0x3919b5('0x34')](),queues[_0x1f88bf[_0x3919b5('0x2f')]][_0x3919b5('0xc')]=utils[_0x3919b5('0x34')](),queues[_0x1f88bf[_0x3919b5('0x2f')]][_0x3919b5('0x40')]=0x0,queues[_0x1f88bf['transfertargetuniqueid']]['mohtime']=0x0):queues[_0x1f88bf[_0x3919b5('0x7')]]['transfereduniqueid']=_0x1f88bf['origtransfererlinkedid']));}catch(_0x541e4b){utils[_0x3919b5('0xe')](_0x541e4b[_0x3919b5('0x8')]);}},exports[_0x68aa3b('0x46')]=function(_0x2527c3){const _0x38479b=_0x68aa3b;!_[_0x38479b('0x49')](queues[_0x2527c3['uniqueid']])&&(queues[_0x2527c3[_0x38479b('0x29')]][_0x38479b('0x32')]=utils[_0x38479b('0x34')]());},exports[_0x68aa3b('0x18')]=function(_0x5cacde){const _0x4d0992=_0x68aa3b;!_[_0x4d0992('0x49')](queues[_0x5cacde[_0x4d0992('0x29')]])&&(!_[_0x4d0992('0x49')](queues[_0x5cacde['uniqueid']]['musiconholdstartAt'])&&(queues[_0x5cacde[_0x4d0992('0x29')]][_0x4d0992('0x43')]+=utils['diffTime'](utils[_0x4d0992('0x34')](),queues[_0x5cacde[_0x4d0992('0x29')]][_0x4d0992('0x32')]),delete queues[_0x5cacde['uniqueid']][_0x4d0992('0x32')]));}; \ No newline at end of file +const a1225_0x2f43=['secondtransfererlinkedid','musiconholdstop','varset','ABANDONED','transfertargetuniqueid','queue','secondtransfererexten','count','ATTENDEDTRANSFER','agentconnect','musiconholdstartAt','blindtransfer','CONTINUE','membername','util','transfertype','transfereelinkedid','attendedtransfer','agentcomplete','queuecallercomplete','error','transfer','clone','mohtime','queuecallerjoin','transferuniqueid','holdtime','info','connectedlinenum','./utils','COMPLETEDBY','transfereduniqueid','accountcode','QUEUE|%s|%s|%s|%s|%s|%s|%s','lastAssignedTo','queuecallercompleteAt','queuecallerabandonAt','reason','now','ATTENDED','secondtransfereruniqueid','stack','transfereeuniqueid','calleridnum','value','queuecallerexitAt','queuecallerenterreason','calleridname','position','hangup','extension','request','transferexten','CreateVoiceQueueReport','queuecallerjoinAt','isNil','type','queuecallerabandon','lodash','BLIND','getVoiceQueueByName','toUpperCase','assign','queueposition','EXITWITHKEY','format','origtransfererlinkedid','BLINDTRANSFER','queuecallerleave','variable','queuecallerleaveAt','musiconholdstart','uniqueid','COMPLETEDBYAGENT','assigned','queuecallerexit','then','transfertargetlinkedid','channel','diffTime','queuecallerexitreason'];(function(_0x5cfa29,_0x2f43e7){const _0x4ff82f=function(_0x22878e){while(--_0x22878e){_0x5cfa29['push'](_0x5cfa29['shift']());}};_0x4ff82f(++_0x2f43e7);}(a1225_0x2f43,0xeb));const a1225_0x4ff8=function(_0x5cfa29,_0x2f43e7){_0x5cfa29=_0x5cfa29-0x0;let _0x4ff82f=a1225_0x2f43[_0x5cfa29];return _0x4ff82f;};const _0x23369e=a1225_0x4ff8;'use strict';const _=require(_0x23369e('0x42')),util=require(_0x23369e('0x16')),utils=require(_0x23369e('0x25')),queues={};function writeDB(_0x22878e){const _0x2e533c=_0x23369e;utils[_0x2e533c('0x23')](util[_0x2e533c('0x49')](_0x2e533c('0x29'),_0x22878e['uniqueid'],_0x22878e[_0x2e533c('0x5')],_0x22878e['queue'],_0x22878e[_0x2e533c('0x2a')],_0x22878e['calleridnum'],_0x22878e[_0x2e533c('0x28')],_0x22878e[_0x2e533c('0x7')])),_0x22878e['queue']?utils[_0x2e533c('0x44')](_0x22878e[_0x2e533c('0xd')])[_0x2e533c('0x3')](function(_0x4762f0){const _0x4fcf2d=_0x2e533c;_0x4762f0&&(_0x22878e[_0x4fcf2d('0x40')]=_0x4762f0[_0x4fcf2d('0x40')]),utils[_0x4fcf2d('0x3b')](_0x4fcf2d('0x3d'),_0x22878e);}):utils['request'](_0x2e533c('0x3d'),_0x22878e),_0x22878e[_0x2e533c('0x27')]?delete queues[_0x22878e[_0x2e533c('0x27')]]:delete queues[_0x22878e[_0x2e533c('0x50')]];}exports[_0x23369e('0x20')]=function(_0x3bc419){const _0xfe5f0e=_0x23369e;queues[_0x3bc419[_0xfe5f0e('0x50')]]=_[_0xfe5f0e('0x46')](_0x3bc419,{'originalposition':_0x3bc419[_0xfe5f0e('0x38')],'queuecallerjoinAt':utils[_0xfe5f0e('0x2e')](),'mohtime':0x0});},exports[_0x23369e('0x39')]=function(_0x5521df){const _0x8dd0dc=_0x23369e;!_[_0x8dd0dc('0x3f')](queues[_0x5521df[_0x8dd0dc('0x50')]])&&(queues[_0x5521df[_0x8dd0dc('0x50')]][_0x8dd0dc('0x4e')]?(!queues[_0x5521df[_0x8dd0dc('0x50')]]['queuecallerabandon']&&!queues[_0x5521df[_0x8dd0dc('0x50')]][_0x8dd0dc('0x2')]&&(queues[_0x5521df['uniqueid']][_0x8dd0dc('0x1b')]=!![],queues[_0x5521df[_0x8dd0dc('0x50')]][_0x8dd0dc('0x2b')]=utils[_0x8dd0dc('0x2e')](),queues[_0x5521df[_0x8dd0dc('0x50')]][_0x8dd0dc('0x7')]=_0x8dd0dc('0x0')),writeDB(queues[_0x5521df[_0x8dd0dc('0x50')]])):queues[_0x5521df[_0x8dd0dc('0x50')]][_0x8dd0dc('0x27')]&&(queues[queues[_0x5521df[_0x8dd0dc('0x50')]]['transfereduniqueid']]=queues[_0x5521df['uniqueid']],queues[queues[_0x5521df[_0x8dd0dc('0x50')]]['transfereduniqueid']][_0x8dd0dc('0x36')]=0x2,delete queues[_0x5521df[_0x8dd0dc('0x50')]]));},exports[_0x23369e('0xa')]=function(_0x121713){const _0x1468ff=_0x23369e;if(!_[_0x1468ff('0x3f')](_0x121713[_0x1468ff('0x4d')]['queuestatus'])&&_0x121713['value'][_0x1468ff('0x45')]()!==_0x1468ff('0x14'))!_[_0x1468ff('0x3f')](queues[_0x121713[_0x1468ff('0x50')]])&&(queues[_0x121713[_0x1468ff('0x50')]][_0x1468ff('0x41')]=![],queues[_0x121713['uniqueid']][_0x1468ff('0x2c')]=null,queues[_0x121713['uniqueid']][_0x1468ff('0x2')]=!![],queues[_0x121713[_0x1468ff('0x50')]][_0x1468ff('0x35')]=utils[_0x1468ff('0x2e')](),queues[_0x121713[_0x1468ff('0x50')]][_0x1468ff('0x7')]=_0x121713[_0x1468ff('0x34')]['toUpperCase'](),writeDB(queues[_0x121713['uniqueid']]));else!_['isNil'](_0x121713[_0x1468ff('0x4d')][_0x1468ff('0x47')])&&(!_[_0x1468ff('0x3f')](queues[_0x121713[_0x1468ff('0x50')]])&&!queues[_0x121713['uniqueid']]['queuecallerabandon']&&(queues[_0x121713[_0x1468ff('0x50')]][_0x1468ff('0x41')]=![],queues[_0x121713['uniqueid']][_0x1468ff('0x2c')]=null,queues[_0x121713[_0x1468ff('0x50')]][_0x1468ff('0x2')]=!![],queues[_0x121713[_0x1468ff('0x50')]][_0x1468ff('0x35')]=utils['now'](),queues[_0x121713[_0x1468ff('0x50')]]['queuecallerexitreason']=_0x1468ff('0x48')));},exports[_0x23369e('0x41')]=function(_0x2ac3ff){const _0x5227ce=_0x23369e;!_[_0x5227ce('0x3f')](queues[_0x2ac3ff['uniqueid']])&&(queues[_0x2ac3ff[_0x5227ce('0x50')]]['queuecallerexit']=![],queues[_0x2ac3ff[_0x5227ce('0x50')]][_0x5227ce('0x35')]=null,queues[_0x2ac3ff[_0x5227ce('0x50')]]['queuecallerabandon']=!![],queues[_0x2ac3ff[_0x5227ce('0x50')]][_0x5227ce('0x2c')]=utils[_0x5227ce('0x2e')](),queues[_0x2ac3ff['uniqueid']][_0x5227ce('0x7')]=_0x5227ce('0xb'));},exports[_0x23369e('0x4c')]=function(_0x192f8a){const _0x467e07=_0x23369e;!_[_0x467e07('0x3f')](queues[_0x192f8a[_0x467e07('0x50')]])&&(queues[_0x192f8a[_0x467e07('0x50')]][_0x467e07('0x4c')]=!![],queues[_0x192f8a[_0x467e07('0x50')]]['queuecallerleaveAt']=utils[_0x467e07('0x2e')](),queues[_0x192f8a[_0x467e07('0x50')]][_0x467e07('0x22')]=utils[_0x467e07('0x6')](queues[_0x192f8a['uniqueid']][_0x467e07('0x4e')],queues[_0x192f8a['uniqueid']][_0x467e07('0x3e')]),queues[_0x192f8a[_0x467e07('0x50')]][_0x467e07('0x38')]=_0x192f8a[_0x467e07('0x38')],queues[_0x192f8a[_0x467e07('0x50')]]['count']=_0x192f8a[_0x467e07('0xf')],queues[_0x192f8a[_0x467e07('0x50')]][_0x467e07('0x24')]=_0x192f8a[_0x467e07('0x24')],queues[_0x192f8a['uniqueid']]['connectedlinename']=_0x192f8a['connectedlinename']);},exports[_0x23369e('0x11')]=function(_0x163d92){const _0x3c112c=_0x23369e;!_[_0x3c112c('0x3f')](queues[_0x163d92['uniqueid']])&&(queues[_0x163d92['uniqueid']][_0x3c112c('0x41')]=![],queues[_0x163d92[_0x3c112c('0x50')]][_0x3c112c('0x41')]=![],queues[_0x163d92['uniqueid']]['queuecallerabandonAt']=null,queues[_0x163d92[_0x3c112c('0x50')]][_0x3c112c('0x2')]=![],queues[_0x163d92['uniqueid']]['queuecallerexitreason']=null,queues[_0x163d92['uniqueid']][_0x3c112c('0x35')]=null,queues[_0x163d92['uniqueid']]['assigned']=!![],queues[_0x163d92[_0x3c112c('0x50')]][_0x3c112c('0x28')]=_0x163d92['destaccountcode'],queues[_0x163d92['uniqueid']]['lastAssignedTo']=_0x163d92['membername']);},exports[_0x23369e('0x1a')]=function(_0x5e0ad4){const _0x42a46c=_0x23369e;!_[_0x42a46c('0x3f')](queues[_0x5e0ad4[_0x42a46c('0x50')]])&&(queues[_0x5e0ad4[_0x42a46c('0x50')]][_0x42a46c('0x4e')]&&(queues[_0x5e0ad4[_0x42a46c('0x50')]]['queuecallerabandon']=![],queues[_0x5e0ad4[_0x42a46c('0x50')]][_0x42a46c('0x41')]=![],queues[_0x5e0ad4['uniqueid']][_0x42a46c('0x2c')]=null,queues[_0x5e0ad4['uniqueid']]['queuecallerexit']=![],queues[_0x5e0ad4['uniqueid']]['queuecallerexitAt']=null,queues[_0x5e0ad4[_0x42a46c('0x50')]][_0x42a46c('0x1')]=!![],queues[_0x5e0ad4[_0x42a46c('0x50')]][_0x42a46c('0x2a')]=_0x5e0ad4[_0x42a46c('0x15')],queues[_0x5e0ad4[_0x42a46c('0x50')]][_0x42a46c('0x1b')]=!![],queues[_0x5e0ad4['uniqueid']][_0x42a46c('0x2b')]=utils[_0x42a46c('0x2e')](),_0x5e0ad4['reason']=='transfer'?!queues[_0x5e0ad4[_0x42a46c('0x50')]][_0x42a46c('0x1d')]&&(queues[_0x5e0ad4['uniqueid']][_0x42a46c('0x7')]='TRANSFER'):queues[_0x5e0ad4[_0x42a46c('0x50')]][_0x42a46c('0x7')]=_0x42a46c('0x26')+_0x5e0ad4[_0x42a46c('0x2d')][_0x42a46c('0x45')](),writeDB(queues[_0x5e0ad4['uniqueid']])));},exports[_0x23369e('0x13')]=function(_0x33f751){const _0xd7fee2=_0x23369e;!_[_0xd7fee2('0x3f')](queues[_0x33f751['transfereeuniqueid']])&&(queues[_0x33f751[_0xd7fee2('0x32')]][_0xd7fee2('0x1d')]=!![],queues[_0x33f751[_0xd7fee2('0x32')]][_0xd7fee2('0x17')]=_0xd7fee2('0x43'),queues[_0x33f751[_0xd7fee2('0x32')]][_0xd7fee2('0x3c')]=_0x33f751[_0xd7fee2('0x3a')],queues[_0x33f751[_0xd7fee2('0x32')]][_0xd7fee2('0x21')]=_0x33f751[_0xd7fee2('0x32')],queues[_0x33f751[_0xd7fee2('0x32')]][_0xd7fee2('0x7')]=_0xd7fee2('0x4b'));},exports[_0x23369e('0x19')]=function(_0xa3075a){const _0x4248a3=_0x23369e;try{if(_0xa3075a['origtransfereruniqueid']==_0xa3075a[_0x4248a3('0x4a')])!_[_0x4248a3('0x3f')](queues[_0xa3075a[_0x4248a3('0x8')]])&&(queues[_0xa3075a[_0x4248a3('0x8')]][_0x4248a3('0x1d')]=!![],queues[_0xa3075a['secondtransfererlinkedid']][_0x4248a3('0x17')]='ATTENDED',queues[_0xa3075a['secondtransfererlinkedid']][_0x4248a3('0x3c')]=_0xa3075a['origtransfererexten'],queues[_0xa3075a[_0x4248a3('0x8')]][_0x4248a3('0x21')]=_0xa3075a['origtransfereruniqueid'],queues[_0xa3075a[_0x4248a3('0x8')]][_0x4248a3('0x7')]=_0x4248a3('0x10')),!_[_0x4248a3('0x3f')](queues[_0xa3075a['origtransfererlinkedid']])&&(_0xa3075a['transfereelinkedid']&&queues[_0xa3075a['transfereelinkedid']]?(queues[_0xa3075a[_0x4248a3('0x18')]][_0x4248a3('0x36')]=0x1,queues[_0xa3075a[_0x4248a3('0x32')]]=_[_0x4248a3('0x1e')](queues[_0xa3075a[_0x4248a3('0x18')]]),queues[_0xa3075a['transfereeuniqueid']][_0x4248a3('0x27')]=_0xa3075a[_0x4248a3('0xc')],queues[_0xa3075a['transfereeuniqueid']][_0x4248a3('0x36')]=0x2,queues[_0xa3075a[_0x4248a3('0x32')]][_0x4248a3('0x33')]=queues[_0xa3075a[_0x4248a3('0x8')]][_0x4248a3('0x33')],queues[_0xa3075a[_0x4248a3('0x32')]][_0x4248a3('0x37')]=queues[_0xa3075a[_0x4248a3('0x8')]][_0x4248a3('0x37')],queues[_0xa3075a[_0x4248a3('0x32')]]['queuecallerjoinAt']=utils[_0x4248a3('0x2e')](),queues[_0xa3075a[_0x4248a3('0x32')]][_0x4248a3('0x4e')]=utils[_0x4248a3('0x2e')](),queues[_0xa3075a[_0x4248a3('0x32')]]['holdtime']=0x0,queues[_0xa3075a[_0x4248a3('0x32')]][_0x4248a3('0x1f')]=0x0):queues[_0xa3075a['origtransfererlinkedid']]['transfereduniqueid']=_0xa3075a[_0x4248a3('0x8')]);else _0xa3075a[_0x4248a3('0x30')]==_0xa3075a[_0x4248a3('0x8')]&&(!_[_0x4248a3('0x3f')](queues[_0xa3075a['origtransfererlinkedid']])&&(queues[_0xa3075a[_0x4248a3('0x4a')]][_0x4248a3('0x1d')]=!![],queues[_0xa3075a['origtransfererlinkedid']][_0x4248a3('0x17')]=_0x4248a3('0x2f'),queues[_0xa3075a[_0x4248a3('0x4a')]]['transferexten']=_0xa3075a[_0x4248a3('0xe')],queues[_0xa3075a[_0x4248a3('0x4a')]][_0x4248a3('0x21')]=_0xa3075a[_0x4248a3('0x30')],queues[_0xa3075a[_0x4248a3('0x4a')]][_0x4248a3('0x7')]=_0x4248a3('0x10')),!_[_0x4248a3('0x3f')](queues[_0xa3075a['secondtransfererlinkedid']])&&(_0xa3075a['transfertargetlinkedid']&&queues[_0xa3075a[_0x4248a3('0x4')]]?(queues[_0xa3075a['transfertargetlinkedid']]['queuecallerenterreason']=0x1,queues[_0xa3075a[_0x4248a3('0xc')]]=_[_0x4248a3('0x1e')](queues[_0xa3075a[_0x4248a3('0x4')]]),queues[_0xa3075a['transfertargetuniqueid']][_0x4248a3('0x27')]=_0xa3075a[_0x4248a3('0xc')],queues[_0xa3075a[_0x4248a3('0xc')]]['queuecallerenterreason']=0x2,queues[_0xa3075a[_0x4248a3('0xc')]][_0x4248a3('0x33')]=queues[_0xa3075a[_0x4248a3('0x4a')]][_0x4248a3('0x33')],queues[_0xa3075a['transfertargetuniqueid']][_0x4248a3('0x37')]=queues[_0xa3075a[_0x4248a3('0x4a')]][_0x4248a3('0x37')],queues[_0xa3075a[_0x4248a3('0xc')]][_0x4248a3('0x3e')]=utils[_0x4248a3('0x2e')](),queues[_0xa3075a[_0x4248a3('0xc')]][_0x4248a3('0x4e')]=utils[_0x4248a3('0x2e')](),queues[_0xa3075a[_0x4248a3('0xc')]]['holdtime']=0x0,queues[_0xa3075a['transfertargetuniqueid']][_0x4248a3('0x1f')]=0x0):queues[_0xa3075a[_0x4248a3('0x8')]][_0x4248a3('0x27')]=_0xa3075a[_0x4248a3('0x4a')]));}catch(_0x2e58da){utils[_0x4248a3('0x1c')](_0x2e58da[_0x4248a3('0x31')]);}},exports[_0x23369e('0x4f')]=function(_0x1f4253){const _0x52b408=_0x23369e;!_[_0x52b408('0x3f')](queues[_0x1f4253[_0x52b408('0x50')]])&&(queues[_0x1f4253[_0x52b408('0x50')]][_0x52b408('0x12')]=utils['now']());},exports[_0x23369e('0x9')]=function(_0x2a7ac4){const _0x5e985b=_0x23369e;!_[_0x5e985b('0x3f')](queues[_0x2a7ac4[_0x5e985b('0x50')]])&&(!_[_0x5e985b('0x3f')](queues[_0x2a7ac4[_0x5e985b('0x50')]][_0x5e985b('0x12')])&&(queues[_0x2a7ac4['uniqueid']][_0x5e985b('0x1f')]+=utils['diffTime'](utils[_0x5e985b('0x2e')](),queues[_0x2a7ac4['uniqueid']]['musiconholdstartAt']),delete queues[_0x2a7ac4[_0x5e985b('0x50')]][_0x5e985b('0x12')]));}; \ No newline at end of file diff --git a/server/services/xdr/recordings.controller.js b/server/services/xdr/recordings.controller.js index b30a398..1f544f8 100644 --- a/server/services/xdr/recordings.controller.js +++ b/server/services/xdr/recordings.controller.js @@ -1 +1 @@ -const a1226_0x13be=['queue','newstate','error','./utils','connectedlinename','newexten','set','uniqueid','variable','cdr','transfer','application','calleridnum','getUserByInternal','stack','.WAV','monitors','UserId','outbound','calleridname','exten','isNil','context','forEach','toLowerCase','appdata','value','debug','newchannel','push','lastIndexOf','queuecallerjoin','replace','accountcode','request','then','linkedid','connectedlinenum','CreateVoiceRecording','.wav49','varset','hangup','type','channelstate'];(function(_0x5edcd6,_0x13beb2){const _0x10e8a4=function(_0x42312f){while(--_0x42312f){_0x5edcd6['push'](_0x5edcd6['shift']());}};_0x10e8a4(++_0x13beb2);}(a1226_0x13be,0x15b));const a1226_0x10e8=function(_0x5edcd6,_0x13beb2){_0x5edcd6=_0x5edcd6-0x0;let _0x10e8a4=a1226_0x13be[_0x5edcd6];return _0x10e8a4;};const _0x1a9de0=a1226_0x10e8;'use strict';const _=require('lodash'),utils=require(_0x1a9de0('0x8')),recordings={};function writeDB(_0x42312f){const _0x265dde=_0x1a9de0;utils[_0x265dde('0x20')](_0x42312f),_0x42312f['accountcode']?utils[_0x265dde('0x12')](_0x42312f['accountcode'])[_0x265dde('0x28')](function(_0x4a8661){const _0x6649d1=_0x265dde;_0x4a8661&&(_0x42312f['membername']=_0x4a8661['name'],_0x42312f[_0x6649d1('0x16')]=_0x4a8661['id']),utils[_0x6649d1('0x27')](_0x6649d1('0x2b'),_0x42312f);}):utils[_0x265dde('0x27')](_0x265dde('0x2b'),_0x42312f);}exports[_0x1a9de0('0x21')]=function(_0x100eaf){const _0x35c3ea=_0x1a9de0;try{_0x100eaf[_0x35c3ea('0xc')]==_0x100eaf['linkedid']&&(recordings[_0x100eaf[_0x35c3ea('0xc')]]={'uniqueid':_0x100eaf[_0x35c3ea('0xc')],'accountcode':_0x100eaf[_0x35c3ea('0x26')],'exten':_0x100eaf[_0x35c3ea('0x19')],'context':_0x100eaf[_0x35c3ea('0x1b')],'channel':_0x100eaf['channel'],'monitors':[]});}catch(_0x1e2944){utils[_0x35c3ea('0x7')](_0x1e2944[_0x35c3ea('0x13')]);}},exports[_0x1a9de0('0x6')]=function(_0x199f9c){const _0x12003=_0x1a9de0;try{if(!_[_0x12003('0x1a')](recordings[_0x199f9c[_0x12003('0xc')]])&&_0x199f9c[_0x12003('0x4')]==0x6){}else!_[_0x12003('0x1a')](recordings[_0x199f9c[_0x12003('0x29')]])&&_0x199f9c[_0x12003('0x4')]==0x6&&_0x199f9c[_0x12003('0x1b')]!=_0x12003('0xf')&&(recordings[_0x199f9c['linkedid']][_0x12003('0x26')]=_0x199f9c[_0x12003('0x26')]);}catch(_0x5e1c18){utils['error'](_0x5e1c18['stack']);}},exports[_0x1a9de0('0x1')]=function(_0x34074b){const _0x91501b=_0x1a9de0;try{if(!_[_0x91501b('0x1a')](_0x34074b[_0x91501b('0xd')])&&!_[_0x91501b('0x1a')](_0x34074b['variable']['mixmonitor_filename'])){_['endsWith'](_0x34074b[_0x91501b('0x1f')],_0x91501b('0x0'))&&(_0x34074b[_0x91501b('0x1f')]=_0x34074b['value'][_0x91501b('0x25')](_0x91501b('0x0'),_0x91501b('0x14')));if(recordings[_0x34074b['linkedid']]){const _0x2e9729=_['find'](recordings[_0x34074b['linkedid']][_0x91501b('0x15')],{'value':_0x34074b[_0x91501b('0x1f')]});_[_0x91501b('0x1a')](_0x2e9729)&&recordings[_0x34074b[_0x91501b('0x29')]]['monitors'][_0x91501b('0x22')]({'value':_0x34074b[_0x91501b('0x1f')]});}}}catch(_0x15ee61){utils[_0x91501b('0x7')](_0x15ee61['stack']);}},exports[_0x1a9de0('0x2')]=function(_0x2cebc3){const _0x5ee551=_0x1a9de0;try{!_[_0x5ee551('0x1a')](recordings[_0x2cebc3[_0x5ee551('0xc')]])&&(recordings[_0x2cebc3[_0x5ee551('0xc')]]['calleridnum']=_0x2cebc3[_0x5ee551('0x11')],recordings[_0x2cebc3[_0x5ee551('0xc')]][_0x5ee551('0x18')]=_0x2cebc3[_0x5ee551('0x18')],recordings[_0x2cebc3[_0x5ee551('0xc')]]['connectedlinenum']=_0x2cebc3[_0x5ee551('0x2a')],recordings[_0x2cebc3[_0x5ee551('0xc')]][_0x5ee551('0x9')]=_0x2cebc3[_0x5ee551('0x9')],recordings[_0x2cebc3[_0x5ee551('0xc')]][_0x5ee551('0x3')]==_0x5ee551('0x17')&&recordings[_0x2cebc3[_0x5ee551('0xc')]][_0x5ee551('0x26')]&&(recordings[_0x2cebc3[_0x5ee551('0xc')]][_0x5ee551('0x2a')]=recordings[_0x2cebc3['uniqueid']][_0x5ee551('0x26')],recordings[_0x2cebc3['uniqueid']][_0x5ee551('0x9')]=''),recordings[_0x2cebc3['uniqueid']][_0x5ee551('0x15')][_0x5ee551('0x1c')](_0x54726e=>{const _0x5778df=_0x5ee551,_0x3cc590=_['clone'](recordings[_0x2cebc3[_0x5778df('0xc')]]);_0x3cc590[_0x5778df('0x1f')]=_0x54726e[_0x5778df('0x1f')],writeDB(_0x3cc590);}),delete recordings[_0x2cebc3[_0x5ee551('0xc')]]);}catch(_0x20c23f){utils[_0x5ee551('0x7')](_0x20c23f['stack']);}},exports[_0x1a9de0('0xa')]=function(_0x2c64cd){const _0x49442e=_0x1a9de0;try{if(!_[_0x49442e('0x1a')](recordings[_0x2c64cd[_0x49442e('0xc')]])){if(_0x2c64cd[_0x49442e('0x10')][_0x49442e('0x1d')]()==_0x49442e('0xb')&&_['startsWith'](_0x2c64cd[_0x49442e('0x1e')][_0x49442e('0x1d')](),_0x49442e('0xe'))){const _0x142559=_0x2c64cd[_0x49442e('0x1e')]['split']('='),_0x3afb29=_0x142559[0x0]['substring'](_0x142559[0x0][_0x49442e('0x23')]('(')+0x1,_0x142559[0x0][_0x49442e('0x23')](')')),_0x108cc2=_0x142559[0x1];recordings[_0x2c64cd[_0x49442e('0xc')]][_0x3afb29]=_0x108cc2;}}}catch(_0x57be6b){utils['error'](_0x57be6b[_0x49442e('0x13')]);}},exports[_0x1a9de0('0x24')]=function(_0x52f98e){const _0x2ec635=_0x1a9de0;try{!_[_0x2ec635('0x1a')](recordings[_0x52f98e['uniqueid']])&&(recordings[_0x52f98e[_0x2ec635('0xc')]][_0x2ec635('0x5')]=_0x52f98e[_0x2ec635('0x5')]);}catch(_0xc80dfd){utils[_0x2ec635('0x7')](_0xc80dfd[_0x2ec635('0x13')]);}}; \ No newline at end of file +const a1226_0x3711=['uniqueid','exten','startsWith','endsWith','getUserByInternal','queuecallerjoin','transfer','type','toLowerCase','mixmonitor_filename','queue','set','CreateVoiceRecording','request','isNil','find','value','appdata','then','accountcode','lastIndexOf','.WAV','./utils','error','debug','split','push','stack','channelstate','.wav49','UserId','hangup','context','replace','linkedid','newstate','newchannel','forEach','monitors','application','connectedlinenum','calleridnum','lodash','calleridname','variable','channel'];(function(_0x5025e0,_0x3711d6){const _0x11867d=function(_0x5b08a7){while(--_0x5b08a7){_0x5025e0['push'](_0x5025e0['shift']());}};_0x11867d(++_0x3711d6);}(a1226_0x3711,0xb0));const a1226_0x1186=function(_0x5025e0,_0x3711d6){_0x5025e0=_0x5025e0-0x0;let _0x11867d=a1226_0x3711[_0x5025e0];return _0x11867d;};const _0x4aa4f8=a1226_0x1186;'use strict';const _=require(_0x4aa4f8('0x4')),utils=require(_0x4aa4f8('0x1e')),recordings={};function writeDB(_0x5b08a7){const _0x54d9cc=_0x4aa4f8;utils[_0x54d9cc('0x20')](_0x5b08a7),_0x5b08a7[_0x54d9cc('0x1b')]?utils[_0x54d9cc('0xc')](_0x5b08a7[_0x54d9cc('0x1b')])[_0x54d9cc('0x1a')](function(_0x56f5d7){const _0x4ad945=_0x54d9cc;_0x56f5d7&&(_0x5b08a7['membername']=_0x56f5d7['name'],_0x5b08a7[_0x4ad945('0x26')]=_0x56f5d7['id']),utils['request'](_0x4ad945('0x14'),_0x5b08a7);}):utils[_0x54d9cc('0x15')](_0x54d9cc('0x14'),_0x5b08a7);}exports[_0x4aa4f8('0x2c')]=function(_0x12c866){const _0x36df67=_0x4aa4f8;try{_0x12c866['uniqueid']==_0x12c866[_0x36df67('0x2a')]&&(recordings[_0x12c866[_0x36df67('0x8')]]={'uniqueid':_0x12c866[_0x36df67('0x8')],'accountcode':_0x12c866['accountcode'],'exten':_0x12c866[_0x36df67('0x9')],'context':_0x12c866[_0x36df67('0x28')],'channel':_0x12c866[_0x36df67('0x7')],'monitors':[]});}catch(_0x108ae0){utils[_0x36df67('0x1f')](_0x108ae0[_0x36df67('0x23')]);}},exports[_0x4aa4f8('0x2b')]=function(_0x1656a8){const _0x48f4ba=_0x4aa4f8;try{if(!_['isNil'](recordings[_0x1656a8[_0x48f4ba('0x8')]])&&_0x1656a8['channelstate']==0x6){}else!_[_0x48f4ba('0x16')](recordings[_0x1656a8[_0x48f4ba('0x2a')]])&&_0x1656a8[_0x48f4ba('0x24')]==0x6&&_0x1656a8[_0x48f4ba('0x28')]!=_0x48f4ba('0xe')&&(recordings[_0x1656a8['linkedid']][_0x48f4ba('0x1b')]=_0x1656a8[_0x48f4ba('0x1b')]);}catch(_0x1953fb){utils['error'](_0x1953fb[_0x48f4ba('0x23')]);}},exports['varset']=function(_0x49ea06){const _0x28b9dc=_0x4aa4f8;try{if(!_[_0x28b9dc('0x16')](_0x49ea06[_0x28b9dc('0x6')])&&!_[_0x28b9dc('0x16')](_0x49ea06[_0x28b9dc('0x6')][_0x28b9dc('0x11')])){_[_0x28b9dc('0xb')](_0x49ea06[_0x28b9dc('0x18')],_0x28b9dc('0x25'))&&(_0x49ea06[_0x28b9dc('0x18')]=_0x49ea06[_0x28b9dc('0x18')][_0x28b9dc('0x29')](_0x28b9dc('0x25'),_0x28b9dc('0x1d')));if(recordings[_0x49ea06[_0x28b9dc('0x2a')]]){const _0xb46bd5=_[_0x28b9dc('0x17')](recordings[_0x49ea06['linkedid']][_0x28b9dc('0x0')],{'value':_0x49ea06[_0x28b9dc('0x18')]});_['isNil'](_0xb46bd5)&&recordings[_0x49ea06[_0x28b9dc('0x2a')]][_0x28b9dc('0x0')][_0x28b9dc('0x22')]({'value':_0x49ea06[_0x28b9dc('0x18')]});}}}catch(_0x386b16){utils['error'](_0x386b16[_0x28b9dc('0x23')]);}},exports[_0x4aa4f8('0x27')]=function(_0x25ad2a){const _0x4460e8=_0x4aa4f8;try{!_[_0x4460e8('0x16')](recordings[_0x25ad2a[_0x4460e8('0x8')]])&&(recordings[_0x25ad2a[_0x4460e8('0x8')]][_0x4460e8('0x3')]=_0x25ad2a['calleridnum'],recordings[_0x25ad2a[_0x4460e8('0x8')]][_0x4460e8('0x5')]=_0x25ad2a[_0x4460e8('0x5')],recordings[_0x25ad2a['uniqueid']][_0x4460e8('0x2')]=_0x25ad2a[_0x4460e8('0x2')],recordings[_0x25ad2a[_0x4460e8('0x8')]]['connectedlinename']=_0x25ad2a['connectedlinename'],recordings[_0x25ad2a[_0x4460e8('0x8')]][_0x4460e8('0xf')]=='outbound'&&recordings[_0x25ad2a['uniqueid']]['accountcode']&&(recordings[_0x25ad2a['uniqueid']][_0x4460e8('0x2')]=recordings[_0x25ad2a[_0x4460e8('0x8')]][_0x4460e8('0x1b')],recordings[_0x25ad2a['uniqueid']]['connectedlinename']=''),recordings[_0x25ad2a[_0x4460e8('0x8')]][_0x4460e8('0x0')][_0x4460e8('0x2d')](_0x2bf60c=>{const _0x118b2b=_0x4460e8,_0x33b93c=_['clone'](recordings[_0x25ad2a[_0x118b2b('0x8')]]);_0x33b93c[_0x118b2b('0x18')]=_0x2bf60c[_0x118b2b('0x18')],writeDB(_0x33b93c);}),delete recordings[_0x25ad2a[_0x4460e8('0x8')]]);}catch(_0x25b205){utils[_0x4460e8('0x1f')](_0x25b205[_0x4460e8('0x23')]);}},exports['newexten']=function(_0x3b4a68){const _0x3e403f=_0x4aa4f8;try{if(!_['isNil'](recordings[_0x3b4a68['uniqueid']])){if(_0x3b4a68[_0x3e403f('0x1')][_0x3e403f('0x10')]()==_0x3e403f('0x13')&&_[_0x3e403f('0xa')](_0x3b4a68[_0x3e403f('0x19')][_0x3e403f('0x10')](),'cdr')){const _0x2801c6=_0x3b4a68['appdata'][_0x3e403f('0x21')]('='),_0x36b269=_0x2801c6[0x0]['substring'](_0x2801c6[0x0][_0x3e403f('0x1c')]('(')+0x1,_0x2801c6[0x0][_0x3e403f('0x1c')](')')),_0x42a1d4=_0x2801c6[0x1];recordings[_0x3b4a68['uniqueid']][_0x36b269]=_0x42a1d4;}}}catch(_0xc3f4be){utils[_0x3e403f('0x1f')](_0xc3f4be['stack']);}},exports[_0x4aa4f8('0xd')]=function(_0x80432b){const _0x4dd0fb=_0x4aa4f8;try{!_[_0x4dd0fb('0x16')](recordings[_0x80432b['uniqueid']])&&(recordings[_0x80432b[_0x4dd0fb('0x8')]][_0x4dd0fb('0x12')]=_0x80432b[_0x4dd0fb('0x12')]);}catch(_0x2401e1){utils['error'](_0x2401e1[_0x4dd0fb('0x23')]);}}; \ No newline at end of file diff --git a/server/services/xdr/transfers.controller.js b/server/services/xdr/transfers.controller.js index b85d4dd..2576ff3 100644 --- a/server/services/xdr/transfers.controller.js +++ b/server/services/xdr/transfers.controller.js @@ -1 +1 @@ -const a1227_0x2f43=['transfertargetexten','secondtransfererconnectedlinename','transfertargetcalleridname','transfertargetlinkedid','transfertargetconnectedlinename','transfereechannel','blind','secondtransfererconnectedlinenum','origtransferercalleridnum','TRANSFER|%s','origtransfererchannel','stack','secondtransferercontext','attended','lodash','isNil','type','CreateVoiceTransferReport','transfertargetconnectedlinenum','origtransferercontext','format','transfertargetaccountcode','assign','./utils','transfertargetchannel','attendedtransfer','error','origtransferercalleridname','origtransfererlinkedid','secondtransfererexten'];(function(_0x4052aa,_0x2f43b0){const _0x525363=function(_0x1640a8){while(--_0x1640a8){_0x4052aa['push'](_0x4052aa['shift']());}};_0x525363(++_0x2f43b0);}(a1227_0x2f43,0x179));const a1227_0x5253=function(_0x4052aa,_0x2f43b0){_0x4052aa=_0x4052aa-0x0;let _0x525363=a1227_0x2f43[_0x4052aa];return _0x525363;};const _0x3e662a=a1227_0x5253;'use strict';const _=require(_0x3e662a('0x1b')),util=require('util'),utils=require(_0x3e662a('0x6'));function writeDB(_0x1640a8){const _0x19277b=_0x3e662a;utils['info'](util[_0x19277b('0x3')](_0x19277b('0x16'),_0x1640a8[_0x19277b('0x1d')])),utils['request'](_0x19277b('0x0'),_0x1640a8);}exports['blindtransfer']=function(_0x155b21){const _0x2359d4=_0x3e662a;try{_0x155b21[_0x2359d4('0x1d')]=_0x2359d4('0x13'),writeDB(_0x155b21);}catch(_0x4dbc7a){utils[_0x2359d4('0x9')](_0x4dbc7a[_0x2359d4('0x18')]);}},exports[_0x3e662a('0x8')]=function(_0x41d2a3){const _0x4ecf6c=_0x3e662a;try{_0x41d2a3=_['assign'](_0x41d2a3,{'transfererchannel':_0x41d2a3[_0x4ecf6c('0x17')],'transferercalleridnum':_0x41d2a3[_0x4ecf6c('0x15')],'transferercalleridname':_0x41d2a3[_0x4ecf6c('0xa')],'transfererconnectedlinenum':_0x41d2a3[_0x4ecf6c('0x14')],'transfererconnectedlinename':_0x41d2a3[_0x4ecf6c('0xe')],'transfereraccountcode':_0x41d2a3['origtransfereraccountcode'],'transferercontext':_0x41d2a3[_0x4ecf6c('0x19')],'transfererexten':_0x41d2a3[_0x4ecf6c('0xc')],'transfererlinkedid':_0x41d2a3[_0x4ecf6c('0xb')],'context':_0x41d2a3[_0x4ecf6c('0x2')],'extension':_0x41d2a3['origtransfererexten'],'type':_0x4ecf6c('0x1a')}),_[_0x4ecf6c('0x1c')](_0x41d2a3[_0x4ecf6c('0x12')])&&(_0x41d2a3=_[_0x4ecf6c('0x5')](_0x41d2a3,{'transfereechannel':_0x41d2a3[_0x4ecf6c('0x7')],'transfereecalleridnum':_0x41d2a3['transfertargetcalleridnum'],'transfereecalleridname':_0x41d2a3[_0x4ecf6c('0xf')],'transfereeconnectedlinenum':_0x41d2a3[_0x4ecf6c('0x1')],'transfereeconnectedlinename':_0x41d2a3[_0x4ecf6c('0x11')],'transfereeaccountcode':_0x41d2a3[_0x4ecf6c('0x4')],'transfereecontext':_0x41d2a3['transfertargetcontext'],'transfereeexten':_0x41d2a3[_0x4ecf6c('0xd')],'transfereelinkedid':_0x41d2a3[_0x4ecf6c('0x10')]})),writeDB(_0x41d2a3);}catch(_0x1aa77f){utils['error'](_0x1aa77f[_0x4ecf6c('0x18')]);}}; \ No newline at end of file +const a1227_0x42ff=['transfertargetchannel','transfertargetconnectedlinenum','format','origtransfererchannel','attended','secondtransfererconnectedlinename','blindtransfer','transfertargetcalleridname','secondtransfererexten','attendedtransfer','origtransfererlinkedid','TRANSFER|%s','lodash','transfertargetlinkedid','transfertargetcalleridnum','error','isNil','CreateVoiceTransferReport','origtransferercontext','stack','info','assign','type','util','origtransferercalleridnum','transfertargetaccountcode','origtransfererexten','./utils','origtransfereraccountcode','origtransferercalleridname'];(function(_0x154743,_0x42ff00){const _0x43a615=function(_0x1765a7){while(--_0x1765a7){_0x154743['push'](_0x154743['shift']());}};_0x43a615(++_0x42ff00);}(a1227_0x42ff,0x7f));const a1227_0x43a6=function(_0x154743,_0x42ff00){_0x154743=_0x154743-0x0;let _0x43a615=a1227_0x42ff[_0x154743];return _0x43a615;};const _0x418289=a1227_0x43a6;'use strict';const _=require(_0x418289('0x5')),util=require(_0x418289('0x10')),utils=require(_0x418289('0x14'));function writeDB(_0x1765a7){const _0x508624=_0x418289;utils[_0x508624('0xd')](util[_0x508624('0x19')](_0x508624('0x4'),_0x1765a7[_0x508624('0xf')])),utils['request'](_0x508624('0xa'),_0x1765a7);}exports[_0x418289('0x1d')]=function(_0xe80df1){const _0x2d534f=_0x418289;try{_0xe80df1[_0x2d534f('0xf')]='blind',writeDB(_0xe80df1);}catch(_0x34c66a){utils[_0x2d534f('0x8')](_0x34c66a[_0x2d534f('0xc')]);}},exports[_0x418289('0x2')]=function(_0x4c28f8){const _0x3f1d71=_0x418289;try{_0x4c28f8=_[_0x3f1d71('0xe')](_0x4c28f8,{'transfererchannel':_0x4c28f8[_0x3f1d71('0x1a')],'transferercalleridnum':_0x4c28f8[_0x3f1d71('0x11')],'transferercalleridname':_0x4c28f8[_0x3f1d71('0x16')],'transfererconnectedlinenum':_0x4c28f8['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x4c28f8[_0x3f1d71('0x1c')],'transfereraccountcode':_0x4c28f8[_0x3f1d71('0x15')],'transferercontext':_0x4c28f8['secondtransferercontext'],'transfererexten':_0x4c28f8[_0x3f1d71('0x1')],'transfererlinkedid':_0x4c28f8[_0x3f1d71('0x3')],'context':_0x4c28f8[_0x3f1d71('0xb')],'extension':_0x4c28f8[_0x3f1d71('0x13')],'type':_0x3f1d71('0x1b')}),_[_0x3f1d71('0x9')](_0x4c28f8['transfereechannel'])&&(_0x4c28f8=_[_0x3f1d71('0xe')](_0x4c28f8,{'transfereechannel':_0x4c28f8[_0x3f1d71('0x17')],'transfereecalleridnum':_0x4c28f8[_0x3f1d71('0x7')],'transfereecalleridname':_0x4c28f8[_0x3f1d71('0x0')],'transfereeconnectedlinenum':_0x4c28f8[_0x3f1d71('0x18')],'transfereeconnectedlinename':_0x4c28f8['transfertargetconnectedlinename'],'transfereeaccountcode':_0x4c28f8[_0x3f1d71('0x12')],'transfereecontext':_0x4c28f8['transfertargetcontext'],'transfereeexten':_0x4c28f8['transfertargetexten'],'transfereelinkedid':_0x4c28f8[_0x3f1d71('0x6')]})),writeDB(_0x4c28f8);}catch(_0x3ce112){utils[_0x3f1d71('0x8')](_0x3ce112[_0x3f1d71('0xc')]);}}; \ No newline at end of file diff --git a/server/services/xdr/utils.js b/server/services/xdr/utils.js index 000c778..3ffb961 100644 --- a/server/services/xdr/utils.js +++ b/server/services/xdr/utils.js @@ -1 +1 @@ -const a1228_0x52f9=['catch','http','info','stringify','subtractTime','getUserByInternal','getUserByName','length','GETVOICEQUEUEBYNAME|','interface','result','error','subtract','then','xdr','format','diff','seconds','NOTFOUND','GetVoiceQueue','FOUND','debug','stack','YYYY-MM-DD\x20HH:mm:ss','type','client','isAfter','request','name','GETUSER|','add','addTime','../../config/logger','GetUser','isBefore'];(function(_0x229b52,_0x52f9a0){const _0xd5ae3c=function(_0x550a0b){while(--_0x550a0b){_0x229b52['push'](_0x229b52['shift']());}};_0xd5ae3c(++_0x52f9a0);}(a1228_0x52f9,0x154));const a1228_0xd5ae=function(_0x229b52,_0x52f9a0){_0x229b52=_0x229b52-0x0;let _0xd5ae3c=a1228_0x52f9[_0x229b52];return _0xd5ae3c;};const _0x3a72a2=a1228_0xd5ae;'use strict';const jayson=require('jayson/promise'),moment=require('moment'),client=jayson[_0x3a72a2('0x0')][_0x3a72a2('0xb')]({'port':0x2329}),logger=require(_0x3a72a2('0x7'))(_0x3a72a2('0x18'));exports[_0x3a72a2('0xc')]=function(_0x550a0b){logger['info'](_0x550a0b);},exports['debug']=function(_0x12e354){const _0x286f4c=_0x3a72a2;logger[_0x286f4c('0x1f')](JSON[_0x286f4c('0xd')](_0x12e354));},exports[_0x3a72a2('0x15')]=function(_0x1b9c42){const _0x14d9e2=_0x3a72a2;logger[_0x14d9e2('0x15')](_0x1b9c42[_0x14d9e2('0x20')]);},exports[_0x3a72a2('0x2')]=function(_0x1d6ce2,_0x17cc3d){const _0x562291=_0x3a72a2;return client[_0x562291('0x2')](_0x1d6ce2,{'body':_0x17cc3d})[_0x562291('0x17')](function(_0xd85bb){const _0x52ae89=_0x562291;logger[_0x52ae89('0x1f')](JSON[_0x52ae89('0xd')](_0xd85bb));})[_0x562291('0xa')](function(_0x57a992){const _0x14ad7c=_0x562291;logger[_0x14ad7c('0x15')](_0x57a992[_0x14ad7c('0x20')]);});};function getUser(_0x46126e){const _0x2aebef=_0x3a72a2;return client[_0x2aebef('0x2')](_0x2aebef('0x8'),{'options':{'raw':!![],'attributes':['id','internal',_0x2aebef('0x3'),_0x2aebef('0x13')],'where':_0x46126e,'limit':0x1}})[_0x2aebef('0x17')](function(_0x2003b4){const _0xc350a4=_0x2aebef;return logger[_0xc350a4('0xc')](_0xc350a4('0x4')+JSON[_0xc350a4('0xd')](_0x46126e)+'|'+(_0x2003b4['result'][_0xc350a4('0x11')]?'FOUND':_0xc350a4('0x1c'))),_0x2003b4[_0xc350a4('0x14')][_0xc350a4('0x11')]?_0x2003b4[_0xc350a4('0x14')][0x0]:null;});}exports[_0x3a72a2('0xf')]=function(_0x5346e6){return new Promise(function(_0x12a67b){const _0x29eee4=a1228_0xd5ae;return _0x5346e6?getUser({'internal':_0x5346e6})['then'](function(_0x30e663){return _0x12a67b(_0x30e663);})[_0x29eee4('0xa')](function(_0x195878){const _0xb83a29=_0x29eee4;return logger[_0xb83a29('0x15')](_0x195878[_0xb83a29('0x20')]),_0x12a67b(null);}):_0x12a67b(null);});},exports['getUserByInterface']=function(_0x4b40cf){return new Promise(function(_0x24092a){const _0x49c668=a1228_0xd5ae;return _0x4b40cf?getUser({'interface':_0x4b40cf})[_0x49c668('0x17')](function(_0x45d477){return _0x24092a(_0x45d477);})['catch'](function(_0x3ef93f){const _0x56c965=_0x49c668;return logger[_0x56c965('0x15')](_0x3ef93f[_0x56c965('0x20')]),_0x24092a(null);}):_0x24092a(null);});},exports[_0x3a72a2('0x10')]=function(_0x5a9868){return new Promise(function(_0x192af9){const _0x6f2530=a1228_0xd5ae;return _0x5a9868?getUser({'name':_0x5a9868})[_0x6f2530('0x17')](function(_0x576fc3){return _0x192af9(_0x576fc3);})['catch'](function(_0x2733a5){const _0x35e95e=_0x6f2530;return logger[_0x35e95e('0x15')](_0x2733a5['stack']),_0x192af9(null);}):_0x192af9(null);});},exports['getVoiceQueueByName']=function(_0x3b87cc){return new Promise(function(_0x4933ed){const _0x3350c1=a1228_0xd5ae;return _0x3b87cc?client[_0x3350c1('0x2')](_0x3350c1('0x1d'),{'options':{'raw':!![],'attributes':['id',_0x3350c1('0x3'),_0x3350c1('0x22'),'acw','acwTimeout'],'where':{'name':_0x3b87cc},'limit':0x1}})[_0x3350c1('0x17')](function(_0x4c6111){const _0x2680e0=_0x3350c1;return logger[_0x2680e0('0xc')](_0x2680e0('0x12')+_0x3b87cc+'|'+(_0x4c6111[_0x2680e0('0x14')][_0x2680e0('0x11')]?_0x2680e0('0x1e'):_0x2680e0('0x1c'))),_0x4933ed(_0x4c6111[_0x2680e0('0x14')][_0x2680e0('0x11')]?_0x4c6111[_0x2680e0('0x14')][0x0]:null);})['catch'](function(_0x76bef4){const _0x54c784=_0x3350c1;return logger[_0x54c784('0x15')](_0x76bef4[_0x54c784('0x20')]),_0x4933ed(null);}):_0x4933ed(null);});},exports[_0x3a72a2('0x6')]=function(_0x2f40f3,_0xf9ab10){const _0x17e7a8=_0x3a72a2;return moment(_0x2f40f3)[_0x17e7a8('0x5')](_0xf9ab10,'seconds')[_0x17e7a8('0x19')](_0x17e7a8('0x21'));},exports[_0x3a72a2('0xe')]=function(_0x117872,_0x3dce01){const _0xeca32c=_0x3a72a2;return moment(_0x117872)[_0xeca32c('0x16')](_0x3dce01,_0xeca32c('0x1b'))[_0xeca32c('0x19')](_0xeca32c('0x21'));},exports['diffTime']=function(_0x2c65fa,_0x4c072b){const _0x443ef2=_0x3a72a2;return moment(_0x2c65fa)[_0x443ef2('0x1a')](moment(_0x4c072b),'seconds');},exports['sumTime']=function(_0x51bdb7,_0x2ed236){return parseInt(_0x51bdb7,0xa)+parseInt(_0x2ed236,0xa);},exports['now']=function(){const _0x4ecd00=_0x3a72a2;return moment()[_0x4ecd00('0x19')]('YYYY-MM-DD\x20HH:mm:ss');},exports[_0x3a72a2('0x1')]=function(_0x132b93,_0x22a945){const _0x48293c=_0x3a72a2;return _0x22a945?moment(_0x132b93)[_0x48293c('0x1')](_0x22a945):!![];},exports[_0x3a72a2('0x9')]=function(_0x35fe30,_0x37ead0){if(_0x37ead0)return moment(_0x35fe30)['isBefore'](_0x37ead0);else return _0x35fe30?!![]:![];}; \ No newline at end of file +const a1228_0x21b2=['stack','client','getUserByName','GETUSER|','type','getUserByInternal','request','jayson/promise','moment','GetVoiceQueue','internal','diffTime','isAfter','format','then','length','NOTFOUND','YYYY-MM-DD\x20HH:mm:ss','subtract','info','sumTime','../../config/logger','subtractTime','error','GetUser','GETVOICEQUEUEBYNAME|','stringify','result','diff','isBefore','xdr','now','addTime','acwTimeout','catch','interface','debug','seconds','http'];(function(_0x133d83,_0x21b285){const _0x19c5c6=function(_0x21243a){while(--_0x21243a){_0x133d83['push'](_0x133d83['shift']());}};_0x19c5c6(++_0x21b285);}(a1228_0x21b2,0x1a1));const a1228_0x19c5=function(_0x133d83,_0x21b285){_0x133d83=_0x133d83-0x0;let _0x19c5c6=a1228_0x21b2[_0x133d83];return _0x19c5c6;};const _0x946e52=a1228_0x19c5;'use strict';const jayson=require(_0x946e52('0x13')),moment=require(_0x946e52('0x14')),client=jayson[_0x946e52('0xd')][_0x946e52('0xb')]({'port':0x2329}),logger=require(_0x946e52('0x21'))(_0x946e52('0x3'));exports['info']=function(_0x21243a){const _0x3626ac=_0x946e52;logger[_0x3626ac('0x1f')](_0x21243a);},exports[_0x946e52('0x9')]=function(_0x90de83){const _0x5742bc=_0x946e52;logger['debug'](JSON[_0x5742bc('0x26')](_0x90de83));},exports['error']=function(_0x16054f){const _0x382bbf=_0x946e52;logger['error'](_0x16054f[_0x382bbf('0xc')]);},exports[_0x946e52('0x12')]=function(_0x48c76a,_0x41389b){return client['request'](_0x48c76a,{'body':_0x41389b})['then'](function(_0x1ca330){const _0x162c94=a1228_0x19c5;logger['debug'](JSON[_0x162c94('0x26')](_0x1ca330));})['catch'](function(_0x150431){const _0x26f153=a1228_0x19c5;logger[_0x26f153('0x23')](_0x150431[_0x26f153('0xc')]);});};function getUser(_0x25f071){const _0x19ad1a=_0x946e52;return client[_0x19ad1a('0x12')](_0x19ad1a('0x24'),{'options':{'raw':!![],'attributes':['id',_0x19ad1a('0x16'),'name',_0x19ad1a('0x8')],'where':_0x25f071,'limit':0x1}})['then'](function(_0x48395e){const _0x56b597=_0x19ad1a;return logger['info'](_0x56b597('0xf')+JSON['stringify'](_0x25f071)+'|'+(_0x48395e[_0x56b597('0x0')][_0x56b597('0x1b')]?'FOUND':_0x56b597('0x1c'))),_0x48395e[_0x56b597('0x0')]['length']?_0x48395e[_0x56b597('0x0')][0x0]:null;});}exports[_0x946e52('0x11')]=function(_0x3f9df4){return new Promise(function(_0x410362){const _0x5eefb5=a1228_0x19c5;return _0x3f9df4?getUser({'internal':_0x3f9df4})[_0x5eefb5('0x1a')](function(_0x3cee66){return _0x410362(_0x3cee66);})[_0x5eefb5('0x7')](function(_0x3f7317){const _0x72db89=_0x5eefb5;return logger[_0x72db89('0x23')](_0x3f7317[_0x72db89('0xc')]),_0x410362(null);}):_0x410362(null);});},exports['getUserByInterface']=function(_0x3fa62d){return new Promise(function(_0x5c718f){const _0x574075=a1228_0x19c5;return _0x3fa62d?getUser({'interface':_0x3fa62d})['then'](function(_0x20b99c){return _0x5c718f(_0x20b99c);})[_0x574075('0x7')](function(_0x5b08db){const _0x3b057a=_0x574075;return logger[_0x3b057a('0x23')](_0x5b08db[_0x3b057a('0xc')]),_0x5c718f(null);}):_0x5c718f(null);});},exports[_0x946e52('0xe')]=function(_0x1de4ec){return new Promise(function(_0x3515f5){const _0x516d59=a1228_0x19c5;return _0x1de4ec?getUser({'name':_0x1de4ec})[_0x516d59('0x1a')](function(_0x48fee8){return _0x3515f5(_0x48fee8);})[_0x516d59('0x7')](function(_0x3d1116){return logger['error'](_0x3d1116['stack']),_0x3515f5(null);}):_0x3515f5(null);});},exports['getVoiceQueueByName']=function(_0xb9c35a){return new Promise(function(_0x31a0dc){const _0x2bb840=a1228_0x19c5;return _0xb9c35a?client['request'](_0x2bb840('0x15'),{'options':{'raw':!![],'attributes':['id','name',_0x2bb840('0x10'),'acw',_0x2bb840('0x6')],'where':{'name':_0xb9c35a},'limit':0x1}})[_0x2bb840('0x1a')](function(_0x209828){const _0x3ed336=_0x2bb840;return logger['info'](_0x3ed336('0x25')+_0xb9c35a+'|'+(_0x209828['result'][_0x3ed336('0x1b')]?'FOUND':'NOTFOUND')),_0x31a0dc(_0x209828[_0x3ed336('0x0')][_0x3ed336('0x1b')]?_0x209828[_0x3ed336('0x0')][0x0]:null);})[_0x2bb840('0x7')](function(_0x230904){const _0xedd851=_0x2bb840;return logger['error'](_0x230904[_0xedd851('0xc')]),_0x31a0dc(null);}):_0x31a0dc(null);});},exports[_0x946e52('0x5')]=function(_0x2dd00a,_0x11d9d1){const _0x2b70b2=_0x946e52;return moment(_0x2dd00a)['add'](_0x11d9d1,_0x2b70b2('0xa'))['format'](_0x2b70b2('0x1d'));},exports[_0x946e52('0x22')]=function(_0x225585,_0x2de084){const _0x101222=_0x946e52;return moment(_0x225585)[_0x101222('0x1e')](_0x2de084,_0x101222('0xa'))['format']('YYYY-MM-DD\x20HH:mm:ss');},exports[_0x946e52('0x17')]=function(_0x4da897,_0x42acc8){const _0x18b592=_0x946e52;return moment(_0x4da897)[_0x18b592('0x1')](moment(_0x42acc8),_0x18b592('0xa'));},exports[_0x946e52('0x20')]=function(_0x2d4274,_0x507abb){return parseInt(_0x2d4274,0xa)+parseInt(_0x507abb,0xa);},exports[_0x946e52('0x4')]=function(){const _0x5337f4=_0x946e52;return moment()[_0x5337f4('0x19')](_0x5337f4('0x1d'));},exports['isAfter']=function(_0x4942f9,_0x4e0433){const _0x4b0b69=_0x946e52;return _0x4e0433?moment(_0x4942f9)[_0x4b0b69('0x18')](_0x4e0433):!![];},exports[_0x946e52('0x2')]=function(_0x30a8b2,_0x5badad){if(_0x5badad)return moment(_0x30a8b2)['isBefore'](_0x5badad);else return _0x30a8b2?!![]:![];}; \ No newline at end of file
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Call\x20from:\x20','delete\x20Agents','CDR(destination)=','api.openchannelQueue.save','userVoiceQueue:save','src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html/ms-quick-filter-[chunkhash].html','controller','getElementById','WebRTC','goToFaxAccount','cm/contacts/:id/hoppers','Lithuanian','rpc/whatsapp/queues/waitinginteractions','notifications/describe','openchannelAccountApps','getTime','createdAt,updatedAt,id,name,type,selector,timeout','Stun','WHATSAPP.EDIT_','countdownattr','SYSTEM:DELETEvoiceChanSpy','src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog-[chunkhash].html','CreateOrEditDeskConfigurationDialogController','CreateOrEditSmsQueueDialogController','newsAlertHide','CustomDashboardController\x20as\x20vm','actions/:id/clone','deleteIvrCampaignHopperFinal','OwnerId','src/js/modules/main/apps/fax/views/realtime/agents/view.html/view-[chunkhash].html','AgentHomeFaxController','bg-BG','src/js/modules/main/apps/voice/views/realtime/outbound_calls/view.html/view-[chunkhash].html','getTelephones','DESC','freshdeskAccounts','customFieldsMap','src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html/import-[chunkhash].html','api.pm2.save','ZohoAccountsController\x20as\x20vm','selectedList','newVariable','cf_','newAgent','Chat\x20Offline\x20Messages','FaxQueue\x20properly\x20created','SETTINGS.EDIT_SMTP','selectedFaxQueues','Call\x20Report','apps.jscripty.projects','onSaveChatQueueChannel','loading...','getBaseUrl','CreateOrEditOpenchannelAccountDialogController','SYSTEM:DELETEwhatsappAccount','complete','\x27clicksend\x27','thu','analytics/field_reports/:id/create_many','voice/mails/:id/clone','read','Triggers','api.squareProject.update','gotogoto','uploadState','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE_NO_RESOURCES','exportSelectedMusicOnHoldMohSounds','onNewRTCSession\x20->\x20vm_pb.sessions','Invalid\x20extension:\x20','Vietnamese\x20(Vietnam)','INTEGRATIONS.NEW_VTIGERCONFIGURATION','STAFF.AGENTS','FreshsalesAccount\x20updated!','selectedExtractedReports','Delete\x20condition','ChatProactiveAction\x20properly\x20created','/api/jira','Serbian','SETTINGS.NEW_CLOUDPROVIDER','sounds','createOrEditTeam','WhatsappAccount','saveReport','trunk.name','appVersion','onInteractionSave','UserSmsQueue','amber-A200','integrations/freshsales/accounts/:id/fields','SmsCannedAnswer\x20properly\x20deleted!','exportSelectedInboundRoutes','sound','chatWebsites','MAILACCOUNT:SEND','zohoConfiguration','apps.contactmanager.globalCustomFields','newDeskConfiguration','addNewMusicOnHold','recallme','unknown-os','QueueCampaignController\x20as\x20vm','Smtp\x20verified!','ispeechAsrLanguage','onUpdateMailQueue','/generals','getOrderBy','CHAT.REALTIME','autocomplete','EditOpenchannelAccountAppintervalDialogController','apps.mail.realtime','SYSTEM:UPDATECONFIGURATIONFIELD','templates/:id/clone','Realtime','users/:id/chat_interactions','app.voice.voicemails.edit','\x272400\x27','api.intVtigerAccount.update','openchannelCannedAnswer','api.user.createApiKey','deleteSelectedTeams','onSaveUserSmsQueue','America/Argentina/Buenos_Aires','div_session_','.csv','motion','VOICE.NEW_VOICEPREFIX','French\x20(France)','EditInternalAppsetDialogController','code','currentUser','src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog-[chunkhash].html','message\x20#','apps.chat.realtime','firstLastDayMonth','get_path','pieChart','deleteSelectedChatWebsiteOfflineMessages','Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction','integrations/vtiger/fields/describe','orange-A700-bg','setHours','TrunkId','Datetime','English\x20(Australian)','ringingId','whatsapp/queues/describe','chatInternalMessage:save','formViewer','onRemoveUserChatQueue','Member\x20Report','src/js/modules/main/apps/staff/views/telephones/create/dialog.html/dialog-[chunkhash].html','Message\x20properly\x20sent!','openchannelMessage:save','createdAt,updatedAt,id,name,dsn,description','timeRangeTo','voiceTransferReport','toggleFolded','TOOLS.DISPOSITIONS','Outbound\x20Call','dashboards/items/:id/clone','loadingProgress','TOOLS.EDIT_TAG','api.condition.update','min','onIntegrationAccountSelection','MailAccount\x20properly\x20saved!','SYSTEM:GET_SECTIONS_PERMISSIONS','$setDirty','CloudProvider','createOrEditContext','is-IS','ar-JO','TOOLBAR.CHANGE_LANGUAGE_TITLE','help','delete\x20mailSubstatus','icon-crosshairs','Last\x20Week','close_all','Do\x20not\x20Disturb','mailAccountInteractions','source','Queue:\x20','api.variable.update','bottom_right','MARKETPLACE.UPLOAD_PLUGIN','CreateOrEditVoiceRecordingDialogController','UserSmsAccount','migrations/describe','getContexts','deselectChatWebsites','exportSelectedPauses','integrations/freshdesk/configurations/:id/tags','apps.integrations.servicenowAccounts','deleteInternalRoute','api.interval.update','treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20','deselectDispositions','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html/view-[chunkhash].html','monitor','baseUrl','deselectTelephones','DASHBOARDS.DASHBOARD','volume','\x274\x27','SYSTEM:DELETEnetwork','ScreenRecordingsController','The\x20faxAccount\x20will\x20be\x20deleted.','es-PR','Star','debug','DisposeCallDialogController','Delete\x20trigger','collapsable','QueueCampaignsController','src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog-[chunkhash].html','Error404Controller\x20as\x20vm','createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','@id','api.cmCompany.delete','America/Indiana/Petersburg','/outbound_calls','The\x20zohoAccount\x20will\x20be\x20deleted.','integrations/zoho/configurations/:id/subjects','selectedSmsAccountInteractions','Agentchange_avatarController','Numbers\x20to\x20999','SYSTEM:GETopenchannelAccount','Hangup','RESETPASSWORD.PASSWORD_RESET','outboundCongestionCallsDay','Asia/Manila','src/js/modules/main/apps/mail/views/realtime/accounts/view.html/view-[chunkhash].html','\x27report_openchannel_queue\x27','Sound\x20properly\x20created','selectedInboundRouteApps','sms/queues/:id/teams','The\x20extractedReport\x20will\x20be\x20deleted.','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html','basic','nolimit','closed\x20===\x200','chatAccounts','attrVoiceQueues','European\x20Danish\x20Female','America/Curacao','defaultEntry','ChatQueueagentaddController','app.fax','monitors','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20extractedReports?','Pause\x20properly\x20created','composeOpenchannelInteraction','selectedZohoAccounts','Inbound\x20Call','/dialer','Brian\x20(English,\x20British,\x20Male)','TOOLBAR.STAY_LOGGED','startcase','editSmsAccountApp','openchannel_queue_waiting_interaction:save','aws_access_key_id','ZendeskConfiguration\x20properly\x20created','TOOLS.NEW_DASHBOARDITEM','scrollEl','removeSquareProjects','AbandonedCallsVoiceRealtimeController','api.openchannelAccount.update','$translatePartialLoader','whatsapp/messages/:id/reject','cutdigits','getReportFields','a..','ListsController\x20as\x20vm','Firefox','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20','Are\x20you\x20sure\x20want\x20to\x20restart\x20the\x20plugin\x20attached\x20process?','Supported\x20extension:\x20','api.intDeskAccount.delete','eurturkishmale','addNewTag','screenRecordings','msScroll','temporarilyIgnoreMouseEvents','dispositions/:id/clone','saveCustomDashboard','Weight\x20Random','onVoiceChannelRemove\x20->\x20\x20key,\x20tab,\x20tab.calls','isNil','Indonesian','QueuesMotionDialerRealtimeController\x20as\x20vm','MailQueueController\x20as\x20vm','userProfileSection@get','src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.html/dialog-[chunkhash].html','app.tools.triggers','MsTimelineController','openchannelAccountApp','arraytrustrpid','version/fetch','analytics/metrics/:id/clone','Hausa','deleteOpenchannelAccountInteraction','settings/:id/gdpr','integrations/zoho/configurations/:id','msMasonry:relayoutFinished','getHeader','onIntegrationSelection','showOnPageHidden','America/Inuvik','ms-form-wizard-form','analytics/field_reports/destroy_many','offset','delete\x20description','csv','newList','analyticMetric',',xX,,,300,,,,,','blur','GET_MAIL_ACCOUNT','app.integrations.servicenowAccounts','getVoiceQueuesChannels','\x20deleted!','IvrCampaignHoppersController','/userProfiles','msFontFamily','COUNT\x20(','integrations/zendesk/fields/describe','outboundAbandonRate','createdAt,updatedAt,id,callerid,duration,audio,stamp,msg_id','saveOpenchannelCannedAnswer','vm_voice.query.filter','squareReport','app.voice.realtime.queue_calls','SYSTEM:GETintVtigerAccount','src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog-[chunkhash].html','cmContact@getHoppers','chip-disabled','keyCode','listOrderAsc','delete\x20CustomDashboards','Restore\x20Contact','UserChatQueue','DASHBOARDS.SUN','projects','onMessageUpdate','sugarcrmAccounts','setFolded','Greek\x20(Greece)','/dynamics365Accounts','api/','pull','iCab','outboundDial','deleteZendeskConfiguration','saveVoiceQueue','Catalan\x20(Spain)','userChatQueue:save','createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','selectedFreshsalesConfiguration','MARKETPLACE.MARKETPLACE','Indian/Kerguelen','app.whatsapp.whatsappQueues.edit','app/main/apps/callysquare','deleteList','openchannel/applications/:id/clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?','delete\x20tag','getSessions','..a','deleteWhatsappAccountApp','api.user.removeApiKey','exportSelectedFreshsalesAccounts','app.sms.realtime','voice/queues/:id/clone','intZohoConfiguration','shortinfo','CONTACTMANAGER.NEW_CONTACT','context.name','Spanish\x20(Panama)','safari','Pacific/Honolulu','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE','src/js/modules/core/directives/ms-phonebar/record/dialog.html/dialog-[chunkhash].html','Logout','notifications/:id','selectedChanSpies','random','apps.whatsapp.realtime','bn-IN','app.tools.pauses','templates','Carla\x20(Italian,\x20Female)','\x27report_call\x27','UserList','streets','DeskAccount\x20properly\x20deleted!','app.analytics.reports.edit','app.voice.outboundroutes','outboundDropRate','/plugin/:id','voice/mails/messages/describe','turn','CreateOrEditCannedAnswerDialogController','microphoneVolume','Whatsapp\x20Messages','app.dashboards.general.whatsapp','deleteSelectedFreshdeskAccounts','deleteSelectedSubjects','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?','src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.html/inboundroutes-[chunkhash].html','Polish\x20(Poland)','id,fullname','drafts','api.intZendeskAccount.delete','VOICE.RUNTRANSCRIBE_VOICERECORDING','exportSelectedTriggerAnyConditions','Agents','gotoChatQueues','selectedVtigerAccounts','ChatInternalMessageId','Chantal','teams/:id/users','globalStatusTime','variables/:id','IS\x20EMPTY','selectAllTeams','role','translate3d(','delete','faxInteraction','ChatWebsiteProactiveActionsController','chatGroup:remove','resetViewer','integrations/freshsales/accounts/describe','delete\x20openchannelAccount','SYSTEM:DELETEintFreshdeskAccount','Asia/Bangkok','\x27h264\x27','$notIn','scrollLeft','EditMailAccountApptagDialogController','getWhatsappQueues','WhatsappQueueagentaddController','exportSelectedContexts','bodyEl','vm.selectedList','deleteSelectedTelephones','INTEGRATIONS.EDIT_ZOHOACCOUNT','calendar','Marathi','ms-tab-scroll','Are\x20you\x20sure\x20want\x20to\x20stop\x20the\x20plugin\x20attached\x20process?','faxInteractionTags:save','header','The\x20dashboarditem\x20will\x20be\x20deleted.','delete\x20message','humanizeDoc','The\x20user\x20will\x20be\x20deleted.','Dynamics365AccountConfigurationsController','saveMailAccountApp','chat/websites/:id','deleteFaxQueue','association','CHAT.CHATWEBSITES','hue-3','#616161','\x27fax_messages\x27','CKEDITOR','api.whatsappQueue.save','vm_pb','api.jscriptyProject.getSummary','-05:00','injector','SYSTEM:DELETEmailSubstatus','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html/dialog-[chunkhash].html','onTransfer','Lucida\x20Sans\x20Unicode,Lucida\x20Grande,sans-serif','src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html/dialog-[chunkhash].html','appdata.name','fax/reports/queue/:id','src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html/openchannelAccounts-[chunkhash].html','src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html/edit-[chunkhash].html','jira','_interactions:remove','SmsQueueagentaddController','$cookies','+05:45','api.analyticFieldReport.save','userProfiles/:id/clone','Romanian','app.motiondialer.realtime.queue_calls','rpc@getTrunks','.zip','app.contactmanager.companies.edit','utc','#tab-container','TOOLBAR.POLISH','Esperanto','chat/websites/describe','isLoggedIn','intervals/describe','InternalRoute','api.voiceQueue.update','exportSelectedChatWebsiteOfflineMessages','AgentController','\x27gmail\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20sugarcrmConfiguration?','/api/chat/websites/:id/logo','src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog-[chunkhash].html','audioinput','saveIvrCampaign','selectedMailAccountApps','src/js/modules/main/apps/contactmanager/views/contacts/contacts.html/contacts-[chunkhash].html','Spanish\x20(Dominican\x20Republic)','selectedProjects','openchannelInteraction','hasDashboardPermissions','g722','userProfiles/:id/sections','png','hopperBlack','FaxQueue\x20properly\x20saved!','MOTIONDIALER.CLONE_IVRCAMPAIGN','SYSTEM:GETsmsQueue','intVtigerConfiguration','The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement
?','CreateOrEditSoundDialogController','FooterController\x20as\x20vm','MsSearchBarController','onSaveWhatsappQueueChannel','initializeRealtimeCampaign','yes','sounds/:id','journey','SystemController\x20as\x20vm','motion2.home.contacts:','icon-fire','Canadian\x20English\x20Female','dialogflow_language','pt-br','EditWhatsappAccountAppamazonlexDialogController','timer-clear','rfc2833','selectedUserProfiles','integrations/desk/configurations/:id/descriptions','initialize','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html','ta-IN','eurcatalanfemale','ro-RO','deselectReports','getQueueCampaigns','API\x20accept\x20message\x20not\x20found:\x20','CannedAnswersController','chanSpy','onhold','intSugarcrmField','^msHorizontalStepper','Spanish\x20(Mexico)','lt-LT','exportSelectedFaxQueues','=msNavigationNode','hiddenCC','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20outboundroutes?','api.openchannelQueue.delete','SYSTEM:DELETEintSugarcrmAccount','integrations/zendesk/configurations/:id/fields','lime-A700','integrations/dynamics365/accounts/:id/fields','
TODO\x20legend\x20status\x20+\x20state
','rpcVoiceQueues','cm/hopper_final/:id/clone','parse','deleteWhatsappQueuesWaitingInteractions','id,name,metric,table','cm/contacts/:id/jscripty_sessions','agentcalledAt','contrast2','createOrEditInternalRoute','createdAt,updatedAt,id,name,html,description','disableCustomScrollbars','America/Dawson_Creek','The\x20tag\x20will\x20be\x20deleted.','saveOpenchannelAccountApp','delete\x20chanSpy','cmHopperFinal','ur-PK','selectAllScheduler','Cancel','integrations/zoho/accounts/describe','Pacific/Chuuk','Latin','users/:id/mail_interactions','chatWebsiteOfflineMessages','MailQueue\x20updated!','removeApiKey','users/:id/square_projects','minute','English\x20(Australia)','app.tools.triggers.edit','scheduled','MusicOnHold','Comic\x20Sans\x20MS,cursive','vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html','moveContactsIvrCampaignHopperFinal','optionalStep','Time','Swedish\x20Female','tagInteraction','selectedSugarcrmAccounts','autocompleteRequireMatch','CustomReports','DASHBOARDS.HOME','America/Maceio','create_node','Naja\x20(Danish,\x20Female)','The\x20cannedAnswer\x20will\x20be\x20deleted.','concat','pause_id','voice/mohs/:id/sounds','api.network.delete','#2e62b1','Liv','Tatar','app','SYSTEM:DELETEpause','jscripty/projects/:id','TOTAL','xorBy','hasModulePermissions','deselectVoicemails','keys','src/js/modules/main/apps/voice/views/voicemails/edit/view.html/view-[chunkhash].html','src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','userProfiles/:id/resources','WHATSAPP.EDIT_WHATSAPPCANNEDANSWER','webkitNotification','Dial','size','api.jscripty.account','audiooutput','data3','src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.html/user.general.mail-[chunkhash].html','/openchannelQueues','CustomDashboardsController\x20as\x20vm','api.voiceMusicOnHold.update','Upload\x20error','whatsapp_queue_waiting_interaction:save','transferHook\x20->\x20payload','deleteSelectedFaxQueues','CustomField\x20deleted!','downloadfile','Joey','api.intZendeskConfiguration.delete','TrunksVoiceRealtimeController','faxStatusTime','hh:mm:ss','getVtigerAccounts','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html/dialog-[chunkhash].html','JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION','CONTACTMANAGER.EDIT_CUSTOMFIELD','#1a3865','it-IT','app.integrations.deskAccounts.edit','COUNT\x20DISTINCT','editOpenchannelAccountApp','all','both','pauses/:id/clone','selectedChatWebsiteInteractions','-createdAt','Sequence','integrations/zoho/configurations/:id/clone','sumBillable','selectedOpenchannelAccountApps','busy','integrations/freshsales/fields/:id/clone','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','addNewQueueCampaign','subsections','\x20MMM','api.intDeskConfiguration.save','saveSchedule','exportSelectedFaxAccountInteractions','Telephone\x20updated!','Asia/Almaty','MSIE','api.cannedAnswer.delete','Ring','SYSTEM:GET_','\x27fax_accounts\x27','api.faxQueue.update','MailQueueteamaddController','bull','queueCampaignHopperBlacks','SIP/','Invisible','rpc@getSmsQueues','ChatWebsite\x20properly\x20deleted!','getSize','Mathieu\x20(French,\x20Male)','getMailSubstatuses','browser','pid\x20is\x20unknown','ms-widget-back','NetworksController','app.mail','resizable','Australia/Perth','openchannel/messages/:id/accept','addNewVtigerConfiguration','disposition@get','+01:00','CallySquare','\x27nl\x27','attachment','createOrEditReportField','stringify','testtestintegrationaccount','su-ID','src/js/modules/main/apps/mail/views/realtime/queues/view.html/view-[chunkhash].html','icon-phone-missed','addNewNetwork','Courier\x20New,Courier,monospace','createOrEditUserProfile','UNIX_TIMESTAMP\x20(','app.dashboards.general.sms','listsMap','_new','Report\x20Field\x20properly\x20saved!','MxGraphUpdateInfoController','tif','CreateOrEditVoicemailDialogController','getProactiveActions','createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','America/Toronto','km-KH','faxAccountApps','\x20will\x20be\x20restored.','CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD','exportSelectedSquareRecordings','\x27q\x27','msShortcuts','api.analyticMetric.update','Company\x20properly\x20created!','Type\x20the\x20file\x20name.','CONTACTMANAGER.LISTS','draftManager','voiceQueuesLog/:id','America/Caracas','priorities','isReschedule','chat/websites/:id/fields','CSV\x20stop\x20import\x20process\x20failed!','\x27password\x27','CustomDashboard\x20updated!','canGoInConference','whatsappCannedAnswer','selectAllIvrCampaigns','schedule@get','Asia/Anadyr','/assets/images/theme-options/vertical-nav-with-full-toolbar-2.jpg','name.name','sms/reports/transfer/:id','delete\x20voicemail','version/reset','getTrunks','api.intDynamics365Configuration.update','VoiceQueueagentaddController','day','*pause','OPENCHANNEL.EDIT_OPENCHANNELQUEUE','createOrEditvoicePrefix','ComposeOpenchannelInteractionDialogController','api.rpc.notify','deleteGlobalCustomField','trunks/describe','onWithoutApply','apps.integrations.freshsalesAccounts','$[${XCALLY-MOTION-ANSWER}=0]?Answer','selectedChatQueues','auth','DisposeInteractionDialogController','CreateOrEditIntervalDialogController','\x22\x20target=\x22_self\x22>','disposeInteraction','integrations/zendesk/accounts/describe','STAFF.QUEUEADD_AGENT_','searchOptions','incoming','api.intServicenowConfiguration.save','composeMailInteraction','Dynamics365Configuration\x20properly\x20deleted!','pluginUpdated','deleteSelectedServicenowAccounts','voicePrefix\x20properly\x20created','SmtpController','DASHBOARDS.YESTERDAY','Delete\x20ZohoAccount','lexregion','pt\x22>','SYSTEM:DELETEvoiceQueue','chat/offline_messages/describe','blue','sms/interactions/:id/clone','SmsAccountId','CONTACTMANAGER.COPY_CONTACT','ComposeFaxInteractionDialogController','Unable\x20to\x20shutdown\x20Jabra\x20library','motion2.home.whatsapp:','then','Romansh','settings','app.mail.realtime','onSaveMailInteraction','integrations/reports/:id/clone','sms/queues/:id','notification','listSelected','High','Zulu','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27ringing\x27','STAFF.PERMISSIONS_SECTION_TITLE','deleteOutboundRouteApp','AgentHomeMyContactsController','src/js/modules/main/apps/tools/views/trunks/edit/view.html/view-[chunkhash].html','hiddenBCC','Delete\x20Customization','src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.html/dialog-[chunkhash].html','SYSTEM:DELETEintFreshsalesAccount','User\x20updated!','UserFaxDashboardGeneralController\x20as\x20vm','user_has_mail_interactions:save','integrations/reports/describe','Odbc\x20properly\x20saved!','Korean\x20(Korea)','createOrEditIntervalInterval','voiceQueues','Swahili','Georgian\x20(Georgia)','onTabScroll','showLastMessage','msResponsiveTable','DASHBOARDS.SEPTEMBER','0.12','intZendeskAccount','TOOLS.TOOLS','Last','AgentHomeOpenchannelController','getCurrentUser','deselect_all','jscripty/questions/reports/:id/clone','DefaultReportId','openchannelQueue:save','Hacker','delete\x20customField','zh-CN','src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.html/permissionsmanage-[chunkhash].html','apps.settings.smtps','app.integrations.salesforceAccounts.edit','platform','setToggleItem','paramDefaults','crudPermissions','/staff','int','cmHopperHistory','grammar','firstName,lastName,phone,mobile','dateOfBirth','Report\x20properly\x20run!','app.integrations.freshsalesAccounts.edit','This\x20Year','exportSelectedDispositions','app.voice.realtime.telephones','ivrCampaignHoppers','SYSTEM:GET_CHATACCOUNTS','newHopper','month','Edit_permission','The\x20smtp\x20will\x20be\x20deleted.','app.errors_error-500','ChatWebsitecustomerAvatarController','reject','block','faxAccountApp','TOOLS.EDIT_TRUNK','Trunk\x20properly\x20created','IS_GREATER_THAN','\x27datetime\x27','smsQueue@get','CreateOrEditChatQueueDialogController','Progressive','selectAllServicenowAccounts','faxQueue','OPENCHANNEL.OPENCHANNEL','outboundUnknownCallsDay','Telugu\x20(India)','ToolbarController','MailQueues','dashboards','pm2','createdAt,updatedAt,id,save_name,converted_format,name,audio,description','ringing','deleteSelectedVoicePrefixes','chat/interactions/:id','ticks','uploadSound','downloadTranscribe','action','runTranscribe','BLACKLIST','voiceExtension:update','SYSTEM:GETsetting','EditFaxAccountAppnoopDialogController','DASHBOARDS.UNTITLED','selectedZendeskAccounts','substring','Spanish\x20(Argentina)','rgba(','lastDayMonth','VIDEO.NEW_SCREENRECORDING','mail/messages/:id/accept','app.marketplace.plugins','OpenchannelAccount\x20properly\x20saved!','CDR(type)=inbound','Asia/Qyzylorda','capacity','Intervals','InboundRouteActionsController','msNavigation::clearActive','triggerallConditions','skype','Delete\x20Dynamics365Configuration','DENIED','name,id','rpcChatQueuesWaitingInteractions','#content','Catalan','$destroy\x20event\x20fired','selectAllTrunks','General\x20properly\x20saved!','src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html/mailAccounts-[chunkhash].html','/voiceRecordings','rpcMailQueuesWaitingInteractions','createdAt,updatedAt,id,role,fullname,name,alias,showWebBar,email,phone,mobile,userpic,password,hotdesk,autointernal,internal,loginInPause,description,dtlscertfile,dtlsprivatekey,voicemail,transport,host,nat,type,allow,callerid,context,callgroup,pickupgroup,chanspy,videosupport,extensionMonitor,chatCapacity,mailCapacity,smsCapacity,openchannelCapacity,faxCapacity,whatsappCapacity,phoneBarEnableSettings,phoneBarAutoAnswer,phoneBarAutoAnswerDelay,phoneBarRingInUse,phoneBarEnableRecording,phoneBarEnableDtmfTone,phoneBarDnd,phoneBarUnansweredCallBadge,phoneBarEnableJaws,phoneBarOutboundProxy,phoneBarUnconditional,phoneBarUnconditionalNumber,phoneBarRemoteControl,phoneBarRemoteControlPort,phoneBarExpires,phoneBarListenPort,permissions,allowmessenger,phoneBarPrefixRequired,passwordResetAt,disabled,blocked,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','VOICE.NEW_OUTBOUNDROUTE','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html/dialog-[chunkhash].html','America/Chihuahua','ms-navigation-folded\x20ms-navigation-folded-open','7200','CloudProvider\x20properly\x20saved!','chat/interactions/:id/messages','chat/interactions/:id/close','addNewOpenchannelCannedAnswer','Asia/Rangoon','text','ja-JP','smsQueue:save','active','whatsapp_queue_waiting_interaction:remove','PrefixDialogController','chat/interactions/describe','fax/queues/describe','getVtigerConfiguration','EditInternalAppgotoDialogController','createdAt,updatedAt,id,name,description,createdAt,formData,enableUncompleteSave','America/Nipigon','setMinutes','app.voice.voiceQueues','Supported\x20extensions:\x20','state','The\x20voicemail\x20will\x20be\x20deleted.','gt-md','Caller_ID','square/recordings/:id','addNewWhatsappCannedAnswer','$mdComponentRegistry','SYSTEM:GETvariables','api.plugin.update','voice/queues/:id/lists','updateConfirm','ERROR\x20REMOVE\x20TAB','deleteDisposition','CONTACTS\x20NOT\x20AVAILABLE.\x20REWINDING\x20THE\x20LIST','{color}|*','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27loose\x27','deselectServicenowAccounts','OutboundRouteController','Metric\x20properly\x20deleted!','audio','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27yes\x27','telephone','src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields-[chunkhash].html','rpc','SYSTEM:RESETLIST','ZohoAccountController\x20as\x20vm','motion2.home.scheduled:','MailAccount','internalrouteApps','shortTime','saveSection','ScreenRecordingplayController','Yoruba','app.tools','SYSTEM:DELETEuser','PDF','processLimit','ap-southeast-1','Dora','AgentAlias','isInConference','mapValues','pt-PT','_options','gotoStep','deletePlugin','full-height','sms/interactions/:id/messages','loadedSection','users/:id/scheduled_calls','Field\x20has\x20been\x20deleted!','=>%3B=','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html','square/messages/:id','basicstyles','Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.','app.integrations.zohoAccounts.edit','webrtc::call','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html','newMailQueue','deleteFaxAccountApp','whatsapp/queues/:id/clone','The\x20vtigerConfiguration\x20will\x20be\x20deleted.','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog-[chunkhash].html','mailAccount','date','api.trunk.save','ng-sortable','uselessFields','integrations/freshdesk/fields/describe','api.staff.save','TriggerController\x20as\x20vm','motion-paleblue','w:\x20Enable\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel.','ProjectsController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20vtigerAccounts?','motionTheming','rpc/voice/channels','selectedIvrCampaignHopperBlacks','src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.html/chatWebsites-[chunkhash].html','deleteSelectedTriggerAnyConditions','removeLists','applyFilter','elementTag','squareRecording','MsStepperController','incident','getActiveItem','ContactId','auth/google','deleteListCustomField','The\x20trunk\x20will\x20be\x20deleted.','Openchannel\x20Interaction','saveSmsAccount','getSmsAccountApps','UserProfilecloneController','usersMap','/reports','src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine-[chunkhash].html','isDraft','fullPath','\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','exportSelectedDeskAccounts','CreateOrEditCompanyDialogController','salesforceAccounts','saveTag','referAttended','getAllConditions','NotFoundError','+06:30','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html/dialog-[chunkhash].html','America/Matamoros','cafrenchmale','America/Belem','SugarcrmConfiguration\x20properly\x20deleted!','newSound','gotoContacts',',height=','id,name,parent','differenceWith','CDR(type)=outbound','integrations/dynamics365/accounts/:id/configurations','route','webrtc::settings','chat/queues/:id/users','STAFF.CONFIRM','\x27eu-west-1\x27','The\x20file\x20is\x20too\x20big.\x20The\x20max\x20allowed\x20size\x20is\x20','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html/dialog-[chunkhash].html','newMailAccount','api.userProfile.save','CreateOrEditWhatsappCannedAnswerDialogController','America/Santo_Domingo','VOICE.EDIT_CONTEXT','sortable','resourceId','sms-interaction','openchannelAccountOpenchannelCannedAnswers','Windows','CreateOrEditFreshdeskConfigurationDialogController','INTEGRATIONS.NEW_ZENDESKACCOUNT','enabled','MailQueueId','onHold\x20->\x20session,\x20data','src/js/modules/core/directives/ms-phonebar/settings/settings.html/settings-[chunkhash].html','api.interval.save','\x27user\x27','Restored\x20Contacts','chanSpy\x20properly\x20created','America/Guyana','VoiceRecordingController\x20as\x20vm','isBetween','chat_queue:save','TOOLS.NOTIFICATIONS.','getMessages','left','token','selectedScheduler','ms-timeline','\x27pai\x27','daysOfWeek','expand','api.smsAccount.delete','users/:id/whatsapp_interactions','TOOLBAR.LATVIAN','deselectCompanies','countDown','app.openchannel.openchannelQueues.edit','rrmemory','trunk:save','MailSubstatusesController\x20as\x20vm','voice_queue_channel:save','faxAccount@get','clipboard','CHAT.NEW_CHATPROACTIVEACTION','\x20properly\x20created','us-west-1','selectedItems','+09:00','treeDefaultData','#3470ca','api.chatGroup.delete','VIDEO.WRONG_EXTENSION','Whatsapp\x20Queues','startTime','select','QUICKPANEL.NEW_INTERNAL_MESSAGE','ImportContactsDialogController','outboundanswerRate','America/Argentina/Mendoza','getVoiceQueuesReport','app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','standardDate','accesskeyid','browserName','getDateFromString','FORGOTPASSWORD.PASSWORD_RESET_ERROR','selectedFreshdeskConfiguration','createOrEditOpenchannelQueue','DASHBOARDS.OCTOBER','analytics/custom_reports/:id','deleteSelectedQueueCampaignHopperHistories','alert','prototype','api.smsQueue.delete','selectedTrunks','Delete\x20Sound','isSupported','whatsapp/accounts/:id/send','src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html/dialog-[chunkhash].html','Verdana,Geneva,sans-serif','getLockedItems','membername','EditChatWebsiteAppautoreplyDialogController','detailForm','api.intSalesforceAccount.delete','rules','office2013','MsTabScrollController','readAsDataURL','cm/hopper/preview','\x27zoho.eu\x27','onChange','/sugarcrmAccounts','app.motiondialer.queueCampaigns.edit','getSenders','mapAgentsId','arrayratingType','Arabic\x20(Morocco)','Danish','sms/applications/:id','Malayalam\x20(India)','app/core/directives/ms-widget-engine/ms-widget-engine-','deselectScheduler','runsentimentruntranscribesentiment','requestPermission','Raveena\x20(English,\x20Indian,\x20Female)','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','eurgermanmale','newSmsCannedAnswer','Europe/Sofia','SYSTEM:GETmusiconholds','defaultQueues','queryHopper','he-IL','app.motiondialer.realtime.queues','arraydialOrderByScheduledAt','onChangeVoiceQueues','users/:id/login','subjects','America/Yakutat','boxed','Trebuchet\x20MS','integrations/sugarcrm/configurations/:id/fields','intFreshsalesAccount','Timeout','valueReplacer','saveZendeskConfiguration','COUNT','api.cmHopper.save','TOOLBAR.INDONESIAN','GROUP_CONCAT\x20DESC','-03:30','primary','QueueCampaignresetlistController','erlangBusyFactor','voice/mohs/:id/clone','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html','Emma\x20(English,\x20British,\x20Female)','saveOrPublishProject','pendingChanges','en-ZA','UserProfile\x20properly\x20saved!','pid','ap-northeast-1','UserVoiceDashboardGeneralController\x20as\x20vm','#BDBDBD','MailAccountMailCannedAnswersController','getVoicemails','STAFF.NEW_AGENT','chat/internal/messages/:id','setFoldedOpen','Agents\x20association\x20has\x20been\x20updated!','$watchGroup','onValueChange','deselectContacts','\x27route\x27','arrayvideosupport','provider','Javanese','extension','voiceDialReportColumns','lastOut','SalesforceAccountController','chat/groups/:id/members','CreateOrEditCustomDashboardDialogController','app.plugins.plugin','chatQueues','SYSTEM:GET_VOICEMAILS','headers','src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html/view-[chunkhash].html','chat_queue_waiting_interaction:remove','VOICE.EDIT_VOICEQUEUE','$on','FaxRealtimeController','America/Porto_Velho','src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','TOOLBAR.FRENCH','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatCannedAnswer?','\x27r\x27','sms/accounts/:id','fax/messages/:id','The\x20report\x20will\x20be\x20deleted.','remote-audio','Arabic\x20(United\x20Arab\x20Emirates)','\x22resource\x22\x20must\x20be\x20an\x20array\x20and\x20it\x20must\x20follow\x20$resource\x20definition','\x27zh-HK\x27','moveContactsQueueCampaignHopperFinal','maxdigit','id,firstName,lastName,phone,email','api.whatsappQueue.delete','faxApplication','attrReport','api.analyticReport.update','getIvrCampaignHopperBlacks','Canada\x20(Central)','.ms-stepper-step-content','addNewProject','getMembers','openchannelPause','Always','/voiceQueues','app.analytics','dayOfWeekTo','identity','shake','onRemove','cannedAnswer@get','grey-fg\x20icon-phone-hangup','Email\x20Queues','openchannelMessage','addNewUser','Russian\x20(Russia)','CreateOrEditTeamDialogController','$gte','openchannel/reports/queue/describe','stateRegistry','Javanese\x20(Indonesia)','deleteChatQueuesWaitingInteractions','mr-IN','openchannel/interactions/:id/clone','onUpdateVoiceQueue','/assets/images/theme-options/vertical-nav-with-full-toolbar.jpg','addons','campaigns/:id/hopper_histories','Delete\x20OpenchannelCannedAnswer','$transitions','INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION','HopperFinal\x20deleted!','Subject\x20deleted!','agentCapacity','wss://','#chat-dialog','saveCustomization','responseData','$translate','\x277200\x27','Tag\x20name','Error','accent','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html','saveProjectAs','flow','IvrCampaignsMotionDialerRealtimeController','STAFF.EDIT_USERPROFILE','img','finish','Faroese','deleteSelectedTriggerActions','createOrEditZohoAccount','src/js/modules/main/apps/tools/views/intervals/create/dialog.html/dialog-[chunkhash].html','deleteProject','api.user.changePassword','UserSmsDashboardGeneralController','tue','Delete\x20User','USERPROFILE:GETRESOURCES(','@token','deleteWhatsappAccount','/assets/images/theme-options/content-only.jpg','createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','Hopper\x20properly\x20deleted!','createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','CreateOrEditDispositionDialogController','Delete_permission','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html/dialog-[chunkhash].html','fax/queues/:id/clone','delete\x20item','Delete\x20CloudProvider','delete\x20servicenowAccount','result','wide','src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html/freshsalesAccounts-[chunkhash].html','\x20has\x20been\x20deleted!','||FIELD||OLD||NEW||\x0a','analyticMetric@get','results','chatWebsiteApps','Message:update','oldPasswordMatch','ivrCampaignHopperBlacks','Mandarin\x20Chinese','home.mail','addNewZohoAccount','onStart','delete\x20dynamics365Account','delete\x20mohSounds','ChatQueuesController','createOrEditVtigerConfiguration','src/js/modules/auth/services/hotdesk/dialog.html/dialog-[chunkhash].html','Unable\x20to\x20open\x20the\x20contact','OpenchannelAccount\x20properly\x20created','whoami','whatsappInteractionTags:save','WHATSAPP.NEW_WHATSAPPQUEUE','Danish\x20(Denmark)','models','deleteSelectedOutboundRouteApps','isAdmin','createdAt,updatedAt,id,name,type,strategy,timeout,maxlen,retry,wrapuptime,weight,joinempty,leavewhenempty,musiconhold,announce,description,periodic_announce,queue_reporthold,queue_youarenext,queue_thereare,queue_callswaiting,queue_holdtime,queue_minutes,queue_minute,queue_seconds,queue_thankyou,announce_frequency,min_announce_frequency,periodic_announce_frequency,random_periodic_announce,announce_holdtime,announce_position,announce_position_limit,reportholdtime,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,servicelevel,mandatoryDisposition,mandatoryDispositionPauseId','\x0a\x20\x20\x20\x20\x20payload','teal-bg','/sms','$animate','associatedReports','run','msScrollConfig','apps.integrations','MsWidgetEngineCounterController','Telephone\x20properly\x20saved!','cm/contacts/csv','icon-fish','MAIL.MAILQUEUES','addNewDynamics365Account','msRandomClass','setting@get','delete\x20ChatWebsites','app.fax.faxQueues.edit','TOOLBAR.WEBRTC_LICENSE_NOT_ENABELD','Delete\x20FreshdeskAccount','maxTimeUnit','newCannedAnswer','onFinish','Asia/Oral','Corsican','VoiceQueue\x20updated!','NEVER','selectedWhatsappAccountInteractions','apps.tools.pauses','filter','mar','integrations/dynamics365/fields/:id/clone','Agi','api.voiceContext.update','api.intZohoAccount.update','cmContact','voice/chanspy/:id/clone','setItem','Some\x20resources\x20enabled','app.motiondialer.realtime.agents','SYSTEM:UPDATEVOICERECORDING','deleteSelectedScreenRecordings','DASHBOARDS.READ','contexts','icon-sitemap','Australia/Lindeman','selectAllAiTools','src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog-[chunkhash].html','\x20has\x20been\x20created!','onCollapse','Company\x20name','America/Sitka','allDispositions','is-mobile','/jscripty','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20teams?','07:00-22:00,*,*,*','chat/websites/:id/canned_answers','app.voice.inboundroutes.edit','UpdatesController\x20as\x20vm','opera','SYSTEM:DELETECONFIGURATIONFIELD','SYSTEM:UNPAUSEUSER','app.tools.trunks','integrations/dynamics365/accounts/describe','America/Indiana/Winamac','newFreshsalesAccount','Fax\x20Report\x20Transfer','webrtc::transfer','Pacific/Tarawa','jscripty/questions/reports/:id','Gecko','ShowMessageInfoDialogController','from-sip','user@get','delete\x20Voicemails','addContactTab','Configuration','src/js/modules/main/apps/analytics/views/reports/preview/dialog.html/dialog-[chunkhash].html','msMasonryController','directive','lastMessageAt','TOOLS.SOUNDS','Extension','duration','GeneralsController\x20as\x20vm','opt1','node','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','reload','ne-NP','exportSelectedODBC','mailQueue:update','VoiceMusicOnHoldId','address','inReplyTo','msFormWizardForm','Spanish\x20(United\x20States)','getResponseSheetRow','onUpdateVoiceQueueReport','America/Fort_Nelson','VtigerAccountsController','app.voice.chanSpies','Date','openchannelAccountInteractions','DeskAccount\x20properly\x20tested','America/New_York','ChatGroupId','WhatsappQueuesController','EditFaxAccountAppintervalDialogController','selectedVoicemails','jscripty/projects/:id/summary','replaceWith','ERROR\x20UPDATE\x20LOCAL\x20TABS','newWindow','AllCondition\x20properly\x20deleted!','Project\x20has\x20been\x20','/var/opt/motion2/server/files/sounds/converted/','success','requestSucceeded','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html','dashboard@get','Asia/Tokyo','STARTS_WITH','Persian','404','cmContact@get','selectedUsers','ChatGroupController','form','top\x20right','api.disposition.update','newMetric','addNewContact','UserVoiceQueue','contactRelationUpdate','downloadfile2','resetPassword','Dynamics365Account\x20properly\x20tested','America/Barbados','queue','chatWebsiteInteractions','whatsapp/queues/:id/users','apps.settings.customizations','IS\x20NOT\x20EMPTY','deleteServicenowAccount','createOrEditFreshsalesAccount','CreateOrEditServicenowConfigurationDialogController','target','chat/websites/:id/snippet','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog-[chunkhash].html','app/core/directives/ms-phonebar/sounds/incoming-call.ogg','faxAccountInteractions','CALLYSQUARE.SELECTED_USERS','America/Argentina/Salta','MainController','Unlicensed','analytics/default_reports/:id/clone','Lucida\x20Sans\x20Unicode','CustomDashboard\x20properly\x20cloned','api.voiceExtension.update','downloadSmsInteraction','tail','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?','Europe/Monaco','apps.analytics.metrics','VoiceRecordingsController','getTriggerAllConditions','api.faxAccount.delete','selectAllLists','application','Email\x20Interaction','phoneBarExpires','square/odbc/:id','\x27info\x27','9600','app/reset','whatsappAccountInteractions','selectedIvrCampaignHoppers','evt','whatsappInteractions','/mailAccounts','cmHopper','app/footer','unhold\x20->\x20session','rpc/mail/queues/:id/notify','chatCapacity','ChatWebsiteChatCannedAnswersController','getCustomFields','green-300-fg\x20icon-phone-in-talk','outboundRoutes','SETTINGS.CUSTOMIZATIONS','\x27openchannel_queues\x27','selectedTab','\x27mouseOver\x27','analytics','WhatsappAccounts','\x27loose\x27','integrations/freshdesk/accounts/:id/fields','dark','Occitan','phoneBarEnableSettings','Contact\x20ID\x20','faxInteraction:save','SYSTEM:GETTAGS','sectionColor','teal-fg','id,name,enabled,includeAll,autoAssociation,crudPermissions','newvoicePrefix','src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html/screenRecordings-[chunkhash].html','appType','src/js/modules/main/apps/tools/views/triggers/edit/view.html/view-[chunkhash].html','SmsAccountagentaddController','delete\x20CloudProviders','SYSTEM:GETpauses','arrayrole','integrations/freshsales/configurations/describe','socket','first','0.3','condition','src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html/view-[chunkhash].html','src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html/dialog-[chunkhash].html','findBy','Explorer','dashboardItem','EditChatWebsiteAppnoopDialogController','addNewAgent','selectedColor','SmsQueue\x20properly\x20created','loggedInDb','\x27agent_fullname\x27','SYSTEM:DELETEintVtigerAccount','Attachments','src/js/modules/main/apps/settings/views/license/update/dialog.html/dialog-[chunkhash].html','deselectWhatsappAccounts','integrations/servicenow/configurations/:id','openDraft','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html/dialog-[chunkhash].html','Europe/Luxembourg','ngEmbed','Cross\x20Join','campaign','/api/chat/websites/','createOrEditInboundRoute','jscripty/projects/:id/answers','arrayImap.service','motionbar','composeSmsInteraction','OPENCHANNEL.SELECTED_AGENTS','getWhatsappAccounts','/smtps','canScroll','write','columns','CreateOrEditNetworkDialogController','onConnect','intervalAttr','userSmsQueue:save','find','INTEGRATIONS.EDIT_DESKCONFIGURATION','queryHopper.filter','src/js/modules/main/apps/staff/views/userProfiles/edit/view.html/view-[chunkhash].html','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html/dialog-[chunkhash].html','delete\x20trunk','Asia/Jakarta','Century\x20Gothic,Futura,Didact\x20Gothic,san-serif','Dynamics365Configuration\x20deleted!','newUserProfile','faxCurrentCapacity','app.contactmanager','$mdThemingProvider','Bengali','Penelope','zip','selectedOutboundRoutes','Least\x20Recent','ChanSpiesController','flippable','delete\x20faxQueue','mohSounds','chatStatus','src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html/dialog-[chunkhash].html','CONTAINS','-stamp','Chinese\x20(Hong\x20Kong)','api.intFreshdeskConfiguration.delete','getSubjects','arrayqualify','startProgressive','users/:id/clone','Asia/Baghdad','apps.settings','getInboundRoutes','queryFinal','/contacts?ListId&CompanyId','InboundRouteController','version/migrations','Odbc\x20properly\x20created','pink','converted_format','cm/custom_fields/:id','advancedQuery','second','src/js/modules/main/apps/voice/views/voicemails/voicemails.html/voicemails-[chunkhash].html','SYSTEM:DELETEsquareOdbc','/accounts','Message\x20properly\x20rejected!','data5','onUpdateFaxQueue','openChannel','cs-CZ','Module\x20updated!','America/Godthab','rpc/voice/queues/preview/:id','deleteSelectedSquareRecordings','\x27report_mail_transfer\x27','preload','onSelectListSuccess','vm.options.isOpen','Fields\x20has\x20been\x20saved!','findIndex','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html','onRemoveChatQueueChannel','X-Answer-After','ListId','resetlistdialog','SmtpController\x20as\x20vm','TOOLS.SCHEDULER','voiceMusicOnHold@get','RescheduleCallDialogController','ta-SG','1st','api.whatsappQueue.update','getPlugins','MAIL.EDIT_MAILCANNEDANSWER','intDynamics365Account@get','Mobile','callerId','gotoWhatsappAccounts','motion.authenticationtype','saveVoiceRecording','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailSubtatuses?','\x27ja\x27','recordingURL','QUICKPANEL.NEW_CHATGROUP','WhatsappQueuesController\x20as\x20vm','WhatsappAccountWhatsappCannedAnswersController','saveMailQueue','-08:00','track','queueaddchannel','Liv\x20(Norwegian,\x20Female)','delete\x20fields','integrations/salesforce/configurations/:id/fields','selectedLanguage','agent','Delete\x20','talking','rpcChatQueues','X-callback-url:\x20','searchReport','NavigationController','home.openchannel','SYSTEM:DELETEtemplate','countBy','OpenchannelInteractionId','delete\x20session','apps.openchannel.openchannelQueues','WhatsappQueue\x20properly\x20deleted!','OPENCHANNEL.OPENCHANNELACCOUNTS','category','TOOLS.NOTIFICATIONS.TRIGGERS_DELETED_SUCCESS_TITLE','VOICE.CONTEXTS','exportSelectedMailAccountInteractions','ngMaterial','predictiveIntervalTotalCalls','English\x20(India)','findLast','chunk','deselectLists','interactionId','Voicemail\x20properly\x20saved!','vm.selectedTab','internalControl','OPENCHANNEL.UNKNOWN','gotoSmsQueues','users/:id/queues','exportSelectedOpenchannelAccountOpenchannelCannedAnswers','selectAllDeskAccounts','WebsiteAlias','createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','onSaveFaxQueue','MOTIONDIALER.IVRCAMPAIGNS','MOTIONDIALER.EDIT_QUEUECAMPAIGN','Desk','UNIX_TIMESTAMP','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?','STAFF.EDIT_TEAM','out-left-aligned','Website','faxAccounts','rpc@getVoiceQueues','UserWhatsappDashboardGeneralController','treeConfig','Plugin\x20not\x20deleted!','Not\x20Found','CALLYSQUARE.NEW_SQUARERECORDING','mminutes','fax/reports/queue/describe','src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog-[chunkhash].html','delete\x20Metrics','onRemoveUserFaxQueue','AgentGeneralJscriptyController','selectedDeskConfiguration','SYSTEM:DELETEvoicePrefix','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','-07:00','DASHBOARDS.SELECT_DATE','integrations/desk/configurations/:id/fields','api.tag.update','arraysetinterfacevar','DASHBOARDS.DRAFT_SAVE_WARNING_TITLE','getAgentStatus','voice/queues/:id/hopper_histories','ChatWebsiteagentaddController','src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker-[chunkhash].html','integrations/desk/accounts/:id/fields','ilbc','getHoppers','ta-MY','quickFilterManager','app.dashboards.general.user','selectedFaxAccountInteractions','limit','_blank','Template\x20properly\x20deleted!','app.motiondialer.realtime.abandonedcalls','hideLoadingIndicator','America/Swift_Current','delete\x20hopperFinal','EditFaxAccountAppgotoifDialogController','api.voiceMail.save','EditInternalAppvoicemailDialogController','intZendeskConfiguration','WhatsappQueue','selectAllPauses','PLUGINS.PLUGINS','queuecallerleaveAt','metrics','delete\x20messages','2400','src/js/modules/main/apps/analytics/views/reports/copy/dialog.html/dialog-[chunkhash].html','PREVIOUS\x20CONTACTS\x20NOT\x20AVAILABLE','VOICE.EDIT_CHANSPY','Years','src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.html/user.general.sms-[chunkhash].html','motion2.home.fax:','app.reset','\x20ORDER\x20BY\x20','Node','deselectTriggers','Europe/Zurich','app.staff.telephones','MergeContactDialogController','completed','remove','src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','ms-target','integrations/desk/fields/describe','gotoOutboundRoutes','saveHopper','users/:id','Portuguese\x20(Nrazilian)','AbandonedCallsVoiceRealtimeController\x20as\x20vm','webtransfer','startPredictive','deleteOpenchannelAccountApp','chatProactiveAction\x20#','Company','eu-ES','jscriptySessionReport@getQuestions','selectedSubjects','smsMessage','src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog-[chunkhash].html','chat/proactive_actions/:id/clone','voice/recordings/:id/transcribe','$resource','icon-cloud-download','arrayusereqphone','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribeStatus,UserId','VOICE.NEW_VOICEQUEUE','delete\x20hopperHistories','arrayringinuse','STAFF.USERS','America/Denver','Icelandic\x20(Iceland)','Predictive','/api/settings/1/favicon','Delete\x20conditions','Task','#1e2129','collapseOnBlur','addNewOdbc','UserapikeymanagerController','chat/groups/:id/messages','CALLYSQUARE.PROJECTS','deleteDeskAccount','chatMessage:save','layoutStyle','src/js/modules/main/apps/openchannel/views/realtime/realtime.html/realtime-[chunkhash].html','odbcs','\x27connectel\x27','app.jscripty.projects.edit','sounds/describe','filterSingleByTags','You\x20can\x27t\x20remove\x20service\x20account','deleteMailAccount','Attached\x20pm2\x20process\x20successfully\x20stopped','saveSmtp','allCondition','saveUserProfile','app.fax.faxAccounts.edit','delete\x20voiceQueue','deleteSelectedChatWebsiteProactiveActions','onInteractionOpen','addShortcut','\x27adminOnly\x27','dial','createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength','File\x20too\x20big','app.sms.realtime.queues','src/js/modules/main/apps/tools/views/customDashboards/edit/view.html/view-[chunkhash].html','stop','newVoiceRecording','whatsapp/accounts/:id/canned_answers','openchannel/accounts/:id/users','\x27tcp\x27','onUpdateMailInteraction','addNewReportField','\x27d\x27','apps.voice.voicemails','MOTIONDIALER.SELECTED_AGENTS','Value','STAFF.NEW_USER','selectedMetrics','ENTER_BR','CreateOrEditVtigerAccountDialogController','integrations/salesforce/fields/:id/clone','isStepCurrent','motion-blue','selectAllOpenchannelAccounts','integrations/sugarcrm/accounts/:id/configurations','msNavigationHorizontal','TOOLS.EDIT_SCHEDULE','arraysort','openchannel_queue_waiting_interaction:remove','whatsapp/reports/transfer/:id','members/reports/:id/clone','Portuguese','exportSelectedFaxAccounts','outboundNoSuchCallsDay','delete\x20subjects','match','onBefore','onExpand','hold\x20->\x20session','The\x20dynamics365Configuration\x20will\x20be\x20deleted.','America/Rainy_River','found','SYSTEM:GET_REPORTS','whatsappQueues','users/:id/openchannel/interactions','toJson','deleteOpenchannelCannedAnswer','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html/dialog-[chunkhash].html','api.intDynamics365Configuration.delete','ServicenowAccount\x20properly\x20deleted!','=ngModel','script','ap-southeast-2','hue-2','id,body','app.voice.voiceRecordings.edit','nonat','HELP.ABOUT','addNewCustomField','canned_answers/:id/clone','-starttime','src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html/dialog-[chunkhash].html','deselectNetworks','whatsapp/messages/describe','None','openSettings','app.mail.mailSubtatuses','MailRealtimeController\x20as\x20vm','avgHoldTime','SYSTEM:DELETEsound','Error\x20creating\x20notification\x20for\x20incoming\x20call','delete\x20hopperBlack','Asia/Aqtau','save_name','STAFF.USERPROFILES','Call\x20%s\x20not\x20found\x20or\x20already\x20completed','addNewUserProfile','faxInteractions','CDR(tag)=','api.intDeskConfiguration.update','selectedItem','chat/websites/:id/proactive_actions','parseCrudPermissions','ChatInteractionId','Mailbox@Context','allowedStandardFields','Dynamics365AccountsController','EditInboundAppintervalDialogController','green-A700-bg','delete\x20chanSpys','msNav::expandMatchingToggles','Trident/7','FAX.FAX','EditOpenchannelAccountAppamazonlexDialogController','443','currentConferenceSessions','FreshdeskAccountsController','selectAllOutboundRoutes','jscripty/answers/reports/:id/clone','America/Anchorage','mouseenter','CustomReportId','CreateOrEditFaxAccountDialogController','English\x20(US)','Delete\x20FreshsalesAccount','mailTransferReport','sort','scriptName','http://127.0.0.1:','Checkboxes','preview','activateHueSelection','getWhatsappAccountInteractions','after','awsPollyVoice','UserController','agentAdd','api.schedule.save','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20